mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 17:40:23 +03:00
3 lines
No EOL
1.2 MiB
3 lines
No EOL
1.2 MiB
/*! For license information please see main.79e03c0e.js.LICENSE.txt */
|
|
!function(){var e={7757:function(e,t,n){e.exports=n(4596)},8025:function(e,t,n){e.exports=n(9244)},9505:function(e,t,n){"use strict";var r=n(4271),i=n(1126),a=n(6223),o=n(2070),s=n(102),l=n(5074),u=n(7134),c=n(3926),d=n(728),f=n(5426);e.exports=function(e){return new Promise((function(t,n){var h,p=e.data,m=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(p)&&delete m["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+x)}var _=s(e.baseURL,e.url);function w(){if(y){var r="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,a={data:v&&"text"!==v&&"json"!==v?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};i((function(e){t(e),g()}),(function(e){n(e),g()}),a),y=null}}if(y.open(e.method.toUpperCase(),o(_,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(w)},y.onabort=function(){y&&(n(c("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(c("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(_))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;k&&(m[e.xsrfHeaderName]=k)}"setRequestHeader"in y&&r.forEach(m,(function(e,t){"undefined"===typeof p&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),v&&"json"!==v&&(y.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){y&&(n(!e||e&&e.type?new f("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),p||(p=null),y.send(p)}))}},9244:function(e,t,n){"use strict";var r=n(4271),i=n(3981),a=n(1985),o=n(5322);var s=function e(t){var n=new a(t),s=i(a.prototype.request,n);return r.extend(s,a.prototype,n),r.extend(s,n),s.create=function(n){return e(o(t,n))},s}(n(728));s.Axios=a,s.Cancel=n(5426),s.CancelToken=n(2025),s.isCancel=n(6544),s.VERSION=n(846).version,s.all=function(e){return Promise.all(e)},s.spread=n(587),s.isAxiosError=n(5),e.exports=s,e.exports.default=s},5426:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},2025:function(e,t,n){"use strict";var r=n(5426);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},6544:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},1985:function(e,t,n){"use strict";var r=n(4271),i=n(2070),a=n(8723),o=n(878),s=n(5322),l=n(6535),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new a,response:new a}}c.prototype.request=function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var a,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!i){var d=[o,void 0];for(Array.prototype.unshift.apply(d,r),d=d.concat(c),a=Promise.resolve(t);d.length;)a=a.then(d.shift(),d.shift());return a}for(var f=t;r.length;){var h=r.shift(),p=r.shift();try{f=h(f)}catch(m){p(m);break}}try{a=o(f)}catch(m){return Promise.reject(m)}for(;c.length;)a=a.then(c.shift(),c.shift());return a},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},8723:function(e,t,n){"use strict";var r=n(4271);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},102:function(e,t,n){"use strict";var r=n(7230),i=n(5930);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},3926:function(e,t,n){"use strict";var r=n(9020);e.exports=function(e,t,n,i,a){var o=new Error(e);return r(o,t,n,i,a)}},878:function(e,t,n){"use strict";var r=n(4271),i=n(6996),a=n(6544),o=n(728),s=n(5426);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},9020:function(e){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},5322:function(e,t,n){"use strict";var r=n(4271);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function o(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function l(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||a,i=t(e);r.isUndefined(i)&&t!==l||(n[e]=i)})),n}},1126:function(e,t,n){"use strict";var r=n(3926);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},6996:function(e,t,n){"use strict";var r=n(4271),i=n(728);e.exports=function(e,t,n){var a=this||i;return r.forEach(n,(function(n){e=n.call(a,e,t)})),e}},728:function(e,t,n){"use strict";var r=n(4271),i=n(8147),a=n(9020),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(9505)),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(o){if("SyntaxError"===s.name)throw a(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(o)})),e.exports=l},846:function(e){e.exports={version:"0.26.0"}},3981:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},2070:function(e,t,n){"use strict";var r=n(4271);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},5930:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},6223:function(e,t,n){"use strict";var r=n(4271);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},7230:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5:function(e,t,n){"use strict";var r=n(4271);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},7134:function(e,t,n){"use strict";var r=n(4271);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},8147:function(e,t,n){"use strict";var r=n(4271);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},5074:function(e,t,n){"use strict";var r=n(4271),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},587:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},6535:function(e,t,n){"use strict";var r=n(846).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],o=t[a];if(o){var s=e[a],l=void 0===s||o(s,a,e);if(!0!==l)throw new TypeError("option "+a+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:i}},4271:function(e,t,n){"use strict";var r=n(3981),i=Object.prototype.toString;function a(e){return Array.isArray(e)}function o(e){return"undefined"===typeof e}function s(e){return"[object ArrayBuffer]"===i.call(e)}function l(e){return null!==e&&"object"===typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function d(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:a,isArrayBuffer:s,isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===i.call(e)},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer)},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:l,isPlainObject:u,isUndefined:o,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return l(e)&&c(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===i.call(e)},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:d,merge:function e(){var t={};function n(n,r){u(t[r])&&u(n)?t[r]=e(t[r],n):u(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)d(arguments[r],n);return t},extend:function(e,t,n){return d(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},449:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";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}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[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}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),a=e.getVersionPrecision(n),o=Math.max(i,a),s=0,l=e.map([t,n],(function(t){var n=o-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=o-Math.min(i,a)),o-=1;o>=s;){if(l[0][o]>l[1][o])return 1;if(l[0][o]===l[1][o]){if(o===s)return 0;o-=1}else if(l[0][o]<l[1][o])return-1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}},e.assign=function(e){for(var t,n,r=e,i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];if(Object.assign)return Object.assign.apply(Object,[e].concat(a));var s=function(){var e=a[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=a.length;t<n;t+=1)s();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"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"},t.BROWSER_MAP={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"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={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"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(91))&&r.__esModule?r:{default:r},a=n(18);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){}var t,n,r;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,r=[{key:"BROWSER_MAP",get:function(){return a.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return a.ENGINE_MAP}},{key:"OS_MAP",get:function(){return a.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return a.PLATFORMS_MAP}}],(n=null)&&o(t.prototype,n),r&&o(t,r),e}();t.default=s,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=l(n(92)),i=l(n(93)),a=l(n(94)),o=l(n(95)),s=l(n(17));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,i={},a=0;if(Object.keys(e).forEach((function(t){var o=e[t];"string"==typeof o?(i[t]=o,a+=1):"object"==typeof o&&(n[t]=o,r+=1)})),r>0){var o=Object.keys(n),l=s.default.find(o,(function(e){return t.isOS(e)}));if(l){var u=this.satisfies(n[l]);if(void 0!==u)return u}var c=s.default.find(o,(function(e){return t.isPlatform(e)}));if(c){var d=this.satisfies(n[c]);if(void 0!==d)return d}}if(a>0){var f=Object.keys(i),h=s.default.find(f,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=/version\/(\d+(\.?_?\d+)+)/i,o=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=o,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18),o=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:a.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:a.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:a.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:a.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:a.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:a.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:a.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:a.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:a.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:a.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.PlayStation4,version:t}}}];t.default=o,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18),o=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:a.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:a.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.tv}}}];t.default=o,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18),o=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:a.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:a.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:a.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:a.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:a.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:a.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:a.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=o,e.exports=t.default}})},4758:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var o=i.apply(null,n);o&&e.push(o)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},5240:function(e,t,n){"use strict";var r=n(3147),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,o,s,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(o=r(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=i[t.format]||i.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),o()}return c}},3856:function(e,t,n){var r=n(3449),i=n(7874);r.stream=i,e.exports=r},3449:function(e,t,n){var r=n(7770);e.exports={toObject:function(e,t){var n=(t=t||{}).delimiter||",",i=r.getQuoteChar(t.quote),a=e,o=null;if("string"!==typeof a)throw new Error("Invalid input, input data should be a string");a=a.split(/[\n\r]+/gi),"string"===typeof t.headers?(o=t.headers.split(/[\n\r]+/gi),o=i?r.convertArray(o.shift(),n,i):o.shift().split(n)):o=i?r.convertArray(a.shift(),n,i):a.shift().split(n);var s=[];return a.forEach((function(e){if(e){e=i?r.convertArray(e,n,i):e.split(n);var t={};o.forEach((function(n,i){t[n]=r.removeQuote(e[i])})),s.push(t)}})),s},toArray:function(e,t){var n=(t=t||{}).delimiter||",",i=r.getQuoteChar(t.quote),a=e;if("string"!==typeof a)throw new Error("Invalid input, input data should be a string");a=a.split(/[\n\r]+/gi);var o=[];return a.forEach((function(e){e&&(e=(e=i?r.convertArray(e,n,i):e.split(n)).map((function(e){return r.removeQuote(e)})),o.push(e))})),o},toColumnArray:function(e,t){var n=(t=t||{}).delimiter||",",i=r.getQuoteChar(t.quote),a=e,o=null;if("string"!==typeof a)throw new Error("Invalid input, input data should be a string");a=a.split(/[\n\r]+/gi),"string"===typeof t.headers?(o=t.headers.split(/[\n\r]+/gi),o=i?r.convertArray(o.shift(),n,i):o.shift().split(n)):o=i?r.convertArray(a.shift(),n,i):a.shift().split(n);var s={};return o.forEach((function(e){s[e]=[]})),a.forEach((function(e){e&&(e=i?r.convertArray(e,n,i):e.split(n)).forEach((function(e,t){s[o[t]].push(r.removeQuote(e))}))})),s},toSchemaObject:function(e,t){var n=(t=t||{}).delimiter||",",i=r.getQuoteChar(t.quote),a=e,o=null;if("string"!==typeof a)throw new Error("Invalid input, input should be a string");a=a.split(/[\n\r]+/gi),"string"===typeof t.headers?(o=t.headers.split(/[\n\r]+/gi),o=i?r.convertArray(o.shift(),n,i):o.shift().split(n)):o=i?r.convertArray(a.shift(),n,i):a.shift().split(n);var s=[];return a.forEach((function(e){if(e){e=i?r.convertArray(e,n,i):e.split(n);var t={};e.forEach((function(e,a){r.addDataInSchema(o[a],e,t,n,i)})),s.push(t)}})),s},toCSV:function(e,t){(t=t||{}).delimiter=t.delimiter||",",t.wrap=t.wrap||"",t.arrayDenote=t.arrayDenote&&String(t.arrayDenote).trim()?t.arrayDenote:"[]",t.objectDenote=t.objectDenote&&String(t.objectDenote).trim()?t.objectDenote:".",t.detailedOutput="boolean"!==typeof t.detailedOutput||t.detailedOutput,t.headers=String(t.headers).toLowerCase();var n={},i="";t.headers.match(/none|full|relative|key/)?t.headers=t.headers.match(/none|full|relative|key/)[0]:t.headers="full";!0===t.wrap&&(t.wrap='"');"string"===typeof e&&(e=JSON.parse(e));r.toCsv(e,n,"",0,t);var a=r.getHeaders(t.headers,n,t);a&&(t.wrap&&(a=a.map((function(e){return t.wrap+e+t.wrap}))),i=a.join(t.delimiter));var o=r.getLengthyItem(n),s=Object.keys(n),l=[],u=/\n|\r/g;t.wrap||(u=new RegExp("\n|\r|"+t.delimiter,"g"));for(var c=0;c<o;c++){l=[];for(var d=0;d<s.length;d++)n[s[d]][c]?(n[s[d]][c]=n[s[d]][c].replace(u,"\t"),t.wrap&&(n[s[d]][c]=t.wrap+n[s[d]][c]+t.wrap),l[l.length]=n[s[d]][c]):l[l.length]="";i+="\n"+l.join(t.delimiter)}return i}}},7770:function(e){function t(e){if(null===e)return"null";if(e&&(1===e.nodeType||9===e.nodeType))return"element";var t=Object.prototype.toString.call(e).match(/\[object (.*?)\]/)[1].toLowerCase();if("number"===t){if(isNaN(e))return"nan";if(!isFinite(e))return"infinity"}return t}function n(e,n,i,a,l){return"undefined"===t(e)?r("",n,i,a,l):"null"===t(e)?r("null",n,i,a,l):Array.isArray(e)?o(e,n,i,a,l):"object"===typeof e?s(e,n,i,a,l):r(String(e),n,i,a,l)}function r(e,t,n,r,i){return t&&t[n]||(t[n]=[]),r<t[n].length&&(r=t[n].length),t[n][r]=e,t}function i(e){return e.every((function(e){return!t(e).match(/array|object/)}))}function a(e){return e?String(e).trim().replace(/^["|'](.*)["|']$/,"$1"):""}function o(e,t,a,o,s){if(i(e))return r(e.join(";"),t,a+s.arrayDenote,o);e.forEach((function(e,r){return n(e,t,a+s.arrayDenote,r,s)}))}function s(e,t,r,i,a){Object.keys(e).forEach((function(o){return n(e[o],t,r+a.objectDenote+o,i,a)}))}function l(e,t,n){if(n&&-1!==e.indexOf(n))return u(e,t,n);var r=[];return e.split(t).forEach((function(e){var t=e.trim();r.push(t)})),r}function u(e,t,n){t=t||",",n=n||'"';var r=new RegExp("(?!\\s*$)\\s*(?:"+n+"([^"+n+"\\\\]*(?:\\\\[\\S\\s][^"+n+"\\\\]*)*)"+n+"|([^"+t+n+"\\s\\\\]*(?:\\s+[^"+t+n+"\\s\\\\]+)*))\\s*(?:"+t+"|$)","g"),i=[];return e.replace(r,(function(e,t,n){return void 0!==t?i.push(t.replace(/\\'/g,"'")):void 0!==n&&i.push(n),""})),/,\s*$/.test(e)&&i.push(""),i}e.exports={getQuoteChar:function(e){if("string"===typeof e)return e;if(!0===e)return'"';return null},dataType:t,toCsv:n,putData:r,allObjsOrArray:i,getHeaders:function(e,t,n){var r=/([^\[\]\.]+)$/,i=/\[\]\.?([^\[\]]+)$/;switch(e){case"none":return null;case"full":return Object.keys(t);case"key":return Object.keys(t).map((function(e){var t=e.match(r);return t&&2===t.length?t[1]:e}));case"relative":return Object.keys(t).map((function(e){var t=e.match(i);return t&&2===t.length?t[1]:e}))}},getLengthyItem:function(e){var t=0;return Object.keys(e).forEach((function(n){Array.isArray(e[n])&&e[n].length>t&&(t=e[n].length)})),t},addDataInSchema:function e(t,n,r,i,o){var s,u,c=t.match(/\[*[\d]\]\.(\w+)|\.|\[\]|\[(.)\]|-|\+/gi);if(c){var d=c[0];if(-1!==c.indexOf("-"))return!0;if(-1!==c.indexOf(".")){var f=t.split(".");u=f.shift(),r[u]=r[u]||{},e(f.join("."),n,r[u],i,o)}else if(-1!==c.indexOf("[]"))s=t.replace(/\[\]/gi,""),r[s]||(r[s]=[]),r[s].push(n);else if(/\[*[\d]\]\.(\w+)/.test(d)){s=t.split("[").shift();var h=parseInt(d.match(/\[(.)\]/).pop(),10);u=t.split(".").pop(),r[s]=r[s]||[],r[s][h]=r[s][h]||{},r[s][h][u]=n}else if(/\[(.)\]/.test(d)){i=d.match(/\[(.)\]/).pop();s=t.replace(/\[(.)\]/gi,""),r[s]=l(n,i,o)}else-1!==c.indexOf("+")&&(s=t.replace(/\+/gi,""),r[s]=Number(n))}else r[t]=a(n);return r},removeQuote:a,arrayToCsv:o,objectToCsv:s,convertArray:l,csvToArray:u}},7874:function(e,t,n){var r=n(3449);function i(e){return e.split(/[\n\r]/gi)}function a(e){return new(n(5034).Transform)({readableObjectMode:!0,writableObjectMode:!0,transform:e})}function o(e,t,n,a){var o=i(e.toString());if(!a._head){var s=o.shift();a._head=s,a._opts.headers=s}this.push(r.toColumnArray(o.join("\n"),a._opts)),n()}function s(e,t,n,a){var o=i(e.toString());if(!a._head){var s=o.shift();a._head=s,a._opts.headers=s}this.push(r.toObject(o.join("\n"),a._opts)),n()}function l(e,t,n,a){var o=i(e.toString());if(!a._head){var s=o.shift();a._head=s,a._opts.headers=s}this.push(r.toSchemaObject(o.join("\n"),a._opts)),n()}function u(e,t,n,a){var o=i(e.toString());this.push(r.toArray(o.join("\n"),a._opts)),n()}e.exports={toColumnArray:function(e){e=e||{};var t=a((function(e,n,r){o.call(this,e,n,r,t)}));return t._head=e.headers?e.headers:null,t._opts=e,t},toObject:function(e){e=e||{};var t=a((function(e,n,r){s.call(this,e,n,r,t)}));return t._head=e.headers?e.headers:null,t._opts=e,t},toSchemaObject:function(e){e=e||{};var t=a((function(e,n,r){l.call(this,e,n,r,t)}));return t._head=e.headers?e.headers:null,t._opts=e,t},toArray:function(e){e=e||{};var t=a((function(e,n,r){u.call(this,e,n,r,t)}));return t._opts=e,t},transform:a,stringify:function(e){return a((function(t,n,r){this.push(JSON.stringify(t,null,e)),r()}))}}},949:function(e,t,n){"use strict";function r(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}n.d(t,{Z:function(){return r}})},4557:function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}n.d(t,{Z:function(){return r}})},2099:function(e,t){"use strict";function n(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function r(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var i={p:r,P:function(e,t){var i,a=e.match(/(P+)(p+)?/)||[],o=a[1],s=a[2];if(!s)return n(e,t);switch(o){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",n(o,t)).replace("{{time}}",r(s,t))}};t.Z=i},3878:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return r}})},611:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2952),i=n(1545),a=n(366),o=n(825);function s(e){(0,o.Z)(1,arguments);var t=(0,a.Z)(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=(0,i.Z)(n);return r}var l=6048e5;function u(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=(0,i.Z)(t).getTime()-s(t).getTime();return Math.round(n/l)+1}},366:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2952),i=n(825),a=n(1545);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var s=(0,a.Z)(o),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var u=(0,a.Z)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}},1809:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2952),i=n(3932),a=n(2076),o=n(825),s=n(6634);function l(e,t){(0,o.Z)(1,arguments);var n=t||{},r=n.locale,l=r&&r.options&&r.options.firstWeekContainsDate,u=null==l?1:(0,s.Z)(l),c=null==n.firstWeekContainsDate?u:(0,s.Z)(n.firstWeekContainsDate),d=(0,a.Z)(e,t),f=new Date(0);f.setUTCFullYear(d,0,c),f.setUTCHours(0,0,0,0);var h=(0,i.Z)(f,t);return h}var u=6048e5;function c(e,t){(0,o.Z)(1,arguments);var n=(0,r.default)(e),a=(0,i.Z)(n,t).getTime()-l(n,t).getTime();return Math.round(a/u)+1}},2076:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2952),i=n(825),a=n(3932),o=n(6634);function s(e,t){(0,i.Z)(1,arguments);var n=(0,r.default)(e),s=n.getUTCFullYear(),l=t||{},u=l.locale,c=u&&u.options&&u.options.firstWeekContainsDate,d=null==c?1:(0,o.Z)(c),f=null==l.firstWeekContainsDate?d:(0,o.Z)(l.firstWeekContainsDate);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(s+1,0,f),h.setUTCHours(0,0,0,0);var p=(0,a.Z)(h,t),m=new Date(0);m.setUTCFullYear(s,0,f),m.setUTCHours(0,0,0,0);var v=(0,a.Z)(m,t);return n.getTime()>=p.getTime()?s+1:n.getTime()>=v.getTime()?s:s-1}},7019:function(e,t,n){"use strict";n.d(t,{Do:function(){return o},Iu:function(){return a},qp:function(){return s}});var r=["D","DD"],i=["YY","YYYY"];function a(e){return-1!==r.indexOf(e)}function o(e){return-1!==i.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}},825:function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},1545:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=1,n=(0,r.default)(e),a=n.getUTCDay(),o=(a<t?7:0)+a-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}},3932:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2952),i=n(825),a=n(6634);function o(e,t){(0,i.Z)(1,arguments);var n=t||{},o=n.locale,s=o&&o.options&&o.options.weekStartsOn,l=null==s?0:(0,a.Z)(s),u=null==n.weekStartsOn?l:(0,a.Z)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,r.default)(e),d=c.getUTCDay(),f=(d<u?7:0)+d-u;return c.setUTCDate(c.getUTCDate()-f),c.setUTCHours(0,0,0,0),c}},6634:function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:function(){return r}})},9996:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(2952),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,i.default)(e),o=(0,r.Z)(t);return isNaN(o)?new Date(NaN):o?(n.setDate(n.getDate()+o),n):n}},6869:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(6634),i=n(483),a=n(825),o=36e5;function s(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,n*o)}},483:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(6634),i=n(2952),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,i.default)(e).getTime(),o=(0,r.Z)(t);return new Date(n+o)}},1489:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(483),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,6e4*n)}},1437:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(2952),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,i.default)(e),o=(0,r.Z)(t);if(isNaN(o))return new Date(NaN);if(!o)return n;var s=n.getDate(),l=new Date(n.getTime());l.setMonth(n.getMonth()+o+1,0);var u=l.getDate();return s>=u?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}},3923:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(9996),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t),o=7*n;return(0,i.default)(e,o)}},3159:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(1437),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,12*n)}},1089:function(e,t,n){"use strict";n.d(t,{vh:function(){return i},yJ:function(){return r}});Math.pow(10,8);var r=6e4,i=36e5},3514:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(3878),i=n(121),a=n(825),o=864e5;function s(e,t){(0,a.Z)(2,arguments);var n=(0,i.default)(e),s=(0,i.default)(t),l=n.getTime()-(0,r.Z)(n),u=s.getTime()-(0,r.Z)(s);return Math.round((l-u)/o)}},2228:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t),o=n.getFullYear()-a.getFullYear(),s=n.getMonth()-a.getMonth();return 12*o+s}},6312:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(9279),i=n(3878),a=n(825),o=6048e5;function s(e,t,n){(0,a.Z)(2,arguments);var s=(0,r.default)(e,n),l=(0,r.default)(t,n),u=s.getTime()-(0,i.Z)(s),c=l.getTime()-(0,i.Z)(l);return Math.round((u-c)/o)}},7308:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getFullYear()-a.getFullYear()}},3358:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(23,59,59,999),t}},4829:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},3712:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(6634),a=n(825);function o(e,t){(0,a.Z)(1,arguments);var n=t||{},o=n.locale,s=o&&o.options&&o.options.weekStartsOn,l=null==s?0:(0,i.Z)(s),u=null==n.weekStartsOn?l:(0,i.Z)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,r.default)(e),d=c.getDay(),f=6+(d<u?-7:0)-(d-u);return c.setDate(c.getDate()+f),c.setHours(23,59,59,999),c}},2612:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return A}});var r=n(6663),i=n(5235),a=n(6047),o=n(2952),s=n(825),l=864e5;var u=n(611),c=n(366),d=n(1809),f=n(2076),h=n(949),p={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return(0,h.Z)("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,h.Z)(n+1,2)},d:function(e,t){return(0,h.Z)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,h.Z)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,h.Z)(e.getUTCHours(),t.length)},m:function(e,t){return(0,h.Z)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,h.Z)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return(0,h.Z)(i,t.length)}},m="midnight",v="noon",g="morning",y="afternoon",b="evening",x="night",_={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return p.y(e,t)},Y:function(e,t,n,r){var i=(0,f.Z)(e,r),a=i>0?i:1-i;if("YY"===t){var o=a%100;return(0,h.Z)(o,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):(0,h.Z)(a,t.length)},R:function(e,t){var n=(0,c.Z)(e);return(0,h.Z)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,h.Z)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,h.Z)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,h.Z)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,h.Z)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,d.Z)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):(0,h.Z)(i,t.length)},I:function(e,t,n){var r=(0,u.Z)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,h.Z)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,n){var r=function(e){(0,s.Z)(1,arguments);var t=(0,o.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/l)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,h.Z)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return(0,h.Z)(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return(0,h.Z)(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return(0,h.Z)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?v:0===i?m:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?b:i>=12?y:i>=4?g:x,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return p.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,h.Z)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,h.Z)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return k(i);case"XXXX":case"XX":return C(i);default:return C(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return k(i);case"xxxx":case"xx":return C(i);default:return C(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w(i,":");default:return"GMT"+C(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w(i,":");default:return"GMT"+C(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e,a=Math.floor(i.getTime()/1e3);return(0,h.Z)(a,t.length)},T:function(e,t,n,r){var i=(r._originalDate||e).getTime();return(0,h.Z)(i,t.length)}};function w(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;if(0===a)return n+String(i);var o=t||"";return n+String(i)+o+(0,h.Z)(a,2)}function k(e,t){return e%60===0?(e>0?"-":"+")+(0,h.Z)(Math.abs(e)/60,2):C(e,t)}function C(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+(0,h.Z)(Math.floor(i/60),2)+n+(0,h.Z)(i%60,2)}var S=_,E=n(2099),M=n(3878),T=n(7019),O=n(6634),N=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,P=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,j=/^'([^]*?)'?$/,D=/''/g,L=/[a-zA-Z]/;function A(e,t,n){(0,s.Z)(2,arguments);var l=String(t),u=n||{},c=u.locale||i.Z,d=c.options&&c.options.firstWeekContainsDate,f=null==d?1:(0,O.Z)(d),h=null==u.firstWeekContainsDate?f:(0,O.Z)(u.firstWeekContainsDate);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=c.options&&c.options.weekStartsOn,m=null==p?0:(0,O.Z)(p),v=null==u.weekStartsOn?m:(0,O.Z)(u.weekStartsOn);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!c.localize)throw new RangeError("locale must contain localize property");if(!c.formatLong)throw new RangeError("locale must contain formatLong property");var g=(0,o.default)(e);if(!(0,r.default)(g))throw new RangeError("Invalid time value");var y=(0,M.Z)(g),b=(0,a.Z)(g,y),x={firstWeekContainsDate:h,weekStartsOn:v,locale:c,_originalDate:g},_=l.match(P).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,E.Z[t])(e,c.formatLong,x):e})).join("").match(N).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return R(n);var i=S[r];if(i)return!u.useAdditionalWeekYearTokens&&(0,T.Do)(n)&&(0,T.qp)(n,t,e),!u.useAdditionalDayOfYearTokens&&(0,T.Iu)(n)&&(0,T.qp)(n,t,e),i(b,n,c.localize,x);if(r.match(L))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return _}function R(e){return e.match(j)[1].replace(D,"'")}},1477:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getDate();return n}},5955:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getDay();return n}},7518:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getHours();return n}},4073:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(2952),i=n(4552),a=n(825);function o(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var s=(0,i.Z)(o),l=new Date(0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);var u=(0,i.Z)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function s(e){(0,a.Z)(1,arguments);var t=o(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=(0,i.Z)(n);return r}var l=6048e5;function u(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=(0,i.Z)(t).getTime()-s(t).getTime();return Math.round(n/l)+1}},6038:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMinutes();return n}},1523:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return n}},2620:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=Math.floor(t.getMonth()/3)+1;return n}},1002:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getSeconds();return n}},3558:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getTime();return n}},8603:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){return(0,i.Z)(1,arguments),(0,r.default)(e).getFullYear()}},8601:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getTime()>a.getTime()}},1328:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getTime()<a.getTime()}},6238:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(825);function i(e){return(0,r.Z)(1,arguments),e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}},5560:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getTime()===a.getTime()}},6776:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(121),i=n(825);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getTime()===a.getTime()}},2201:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()}},171:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(356),i=n(825);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getTime()===a.getTime()}},3138:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getFullYear()===a.getFullYear()}},6663:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6238),i=n(2952),a=n(825);function o(e){if((0,a.Z)(1,arguments),!(0,r.default)(e)&&"number"!==typeof e)return!1;var t=(0,i.default)(e);return!isNaN(Number(t))}},4773:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e).getTime(),a=(0,r.default)(t.start).getTime(),o=(0,r.default)(t.end).getTime();if(!(a<=o))throw new RangeError("Invalid interval");return n>=a&&n<=o}},5235:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r={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"}},i=function(e,t,n){var i,a=r[e];return i="string"===typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function a(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var o={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l=function(e,t,n,r){return s[e]};function u(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=i.width?String(i.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var c={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:u({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:u({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:u({values:{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"]},defaultWidth:"wide"}),day:u({values:{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"]},defaultWidth:"wide"}),dayPeriod:u({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})};function d(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o,s=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?h(l,(function(e){return e.test(s)})):f(l,(function(e){return e.test(s)}));o=e.valueCallback?e.valueCallback(u):u,o=n.valueCallback?n.valueCallback(o):o;var c=t.slice(s.length);return{value:o,rest:c}}}function f(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function h(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var p,m={ordinalNumber:(p={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(p.matchPattern);if(!n)return null;var r=n[0],i=e.match(p.parsePattern);if(!i)return null;var a=p.valueCallback?p.valueCallback(i[0]):i[0];a=t.valueCallback?t.valueCallback(a):a;var o=e.slice(r.length);return{value:a,rest:o}}),era:d({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:d({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:d({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:d({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:d({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},v={code:"en-US",formatDistance:i,formatLong:o,formatRelative:l,localize:c,match:m,options:{weekStartsOn:0,firstWeekContainsDate:1}}},3:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){var t,n;if((0,i.Z)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,r.default)(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}},471:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){var t,n;if((0,i.Z)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,r.default)(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}},1648:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return oe}});var r=n(5235),i=n(6047),a=n(2952),o=n(4557),s=n(2099),l=n(3878),u=n(7019),c=n(6634),d=n(2076),f=n(825);function h(e,t,n){(0,f.Z)(2,arguments);var r=n||{},i=r.locale,o=i&&i.options&&i.options.weekStartsOn,s=null==o?0:(0,c.Z)(o),l=null==r.weekStartsOn?s:(0,c.Z)(r.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=(0,a.default)(e),d=(0,c.Z)(t),h=u.getUTCDay(),p=d%7,m=(p+7)%7,v=(m<l?7:0)+d-h;return u.setUTCDate(u.getUTCDate()+v),u}var p=n(611);var m=n(1809);var v=n(1545),g=n(3932),y=/^(1[0-2]|0?\d)/,b=/^(3[0-1]|[0-2]?\d)/,x=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,_=/^(5[0-3]|[0-4]?\d)/,w=/^(2[0-3]|[0-1]?\d)/,k=/^(2[0-4]|[0-1]?\d)/,C=/^(1[0-1]|0?\d)/,S=/^(1[0-2]|0?\d)/,E=/^[0-5]?\d/,M=/^[0-5]?\d/,T=/^\d/,O=/^\d{1,2}/,N=/^\d{1,3}/,P=/^\d{1,4}/,j=/^-?\d+/,D=/^-?\d/,L=/^-?\d{1,2}/,A=/^-?\d{1,3}/,R=/^-?\d{1,4}/,I=/^([+-])(\d{2})(\d{2})?|Z/,z=/^([+-])(\d{2})(\d{2})|Z/,F=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,U=/^([+-])(\d{2}):(\d{2})|Z/,B=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function V(e,t,n){var r=t.match(e);if(!r)return null;var i=parseInt(r[0],10);return{value:n?n(i):i,rest:t.slice(r[0].length)}}function H(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function W(e,t){return V(j,e,t)}function Z(e,t,n){switch(e){case 1:return V(T,t,n);case 2:return V(O,t,n);case 3:return V(N,t,n);case 4:return V(P,t,n);default:return V(new RegExp("^\\d{1,"+e+"}"),t,n)}}function Y(e,t,n){switch(e){case 1:return V(D,t,n);case 2:return V(L,t,n);case 3:return V(A,t,n);case 4:return V(R,t,n);default:return V(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function q(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function G(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var a=i+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}var K=[31,28,31,30,31,30,31,31,30,31,30,31],Q=[31,29,31,30,31,30,31,31,30,31,30,31];function X(e){return e%400===0||e%4===0&&e%100!==0}var $={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return Z(4,e,i);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return Z(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=e.getUTCFullYear();if(n.isTwoDigitYear){var a=G(n.year,i);return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return Z(4,e,i);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return Z(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=(0,d.Z)(e,r);if(n.isTwoDigitYear){var a=G(n.year,i);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,g.Z)(e,r)}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,g.Z)(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return Y("R"===t?4:t.length,e)},set:function(e,t,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),(0,v.Z)(i)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return Y("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return Z(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return Z(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"M":return V(y,e,i);case"MM":return Z(2,e,i);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"L":return V(y,e,i);case"LL":return Z(2,e,i);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return V(_,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return(0,g.Z)(function(e,t,n){(0,f.Z)(2,arguments);var r=(0,a.default)(e),i=(0,c.Z)(t),o=(0,m.Z)(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return V(_,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return(0,v.Z)(function(e,t){(0,f.Z)(2,arguments);var n=(0,a.default)(e),r=(0,c.Z)(t),i=(0,p.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"d":return V(b,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Z(t.length,e)}},validate:function(e,t,n){var r=X(e.getUTCFullYear()),i=e.getUTCMonth();return r?t>=1&&t<=Q[i]:t>=1&&t<=K[i]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"D":case"DD":return V(x,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Z(t.length,e)}},validate:function(e,t,n){return X(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=h(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Z(t.length,e,i);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=h(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Z(t.length,e,i);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=h(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var i=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Z(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});default:return n.day(e,{width:"wide",context:"formatting",valueCallback:i})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return e=function(e,t){(0,f.Z)(2,arguments);var n=(0,c.Z)(t);n%7===0&&(n-=7);var r=1,i=(0,a.default)(e),o=i.getUTCDay(),s=((n%7+7)%7<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+s),i}(e,n,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(q(n),0,0,0),e},incompatibleTokens:["b","B","H","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(q(n),0,0,0),e},incompatibleTokens:["a","B","H","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(q(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return V(S,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):i||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return V(w,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return V(C,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return V(k,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var i=n<=24?n%24:n;return e.setUTCHours(i,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return V(E,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return V(M,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return Z(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return H(I,e);case"XX":return H(z,e);case"XXXX":return H(F,e);case"XXXXX":return H(B,e);default:return H(U,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return H(I,e);case"xx":return H(z,e);case"xxxx":return H(F,e);case"xxxxx":return H(B,e);default:return H(U,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return W(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return W(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},J=$,ee=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,te=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ne=/^'([^]*?)'?$/,re=/''/g,ie=/\S/,ae=/[a-zA-Z]/;function oe(e,t,n,d){(0,f.Z)(3,arguments);var h=String(e),p=String(t),m=d||{},v=m.locale||r.Z;if(!v.match)throw new RangeError("locale must contain match property");var g=v.options&&v.options.firstWeekContainsDate,y=null==g?1:(0,c.Z)(g),b=null==m.firstWeekContainsDate?y:(0,c.Z)(m.firstWeekContainsDate);if(!(b>=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=v.options&&v.options.weekStartsOn,_=null==x?0:(0,c.Z)(x),w=null==m.weekStartsOn?_:(0,c.Z)(m.weekStartsOn);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===p)return""===h?(0,a.default)(n):new Date(NaN);var k,C={firstWeekContainsDate:b,weekStartsOn:w,locale:v},S=[{priority:10,subPriority:-1,set:se,index:0}],E=p.match(te).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,s.Z[t])(e,v.formatLong,C):e})).join("").match(ee),M=[];for(k=0;k<E.length;k++){var T=E[k];!m.useAdditionalWeekYearTokens&&(0,u.Do)(T)&&(0,u.qp)(T,p,e),!m.useAdditionalDayOfYearTokens&&(0,u.Iu)(T)&&(0,u.qp)(T,p,e);var O=T[0],N=J[O];if(N){var P=N.incompatibleTokens;if(Array.isArray(P)){for(var j=void 0,D=0;D<M.length;D++){var L=M[D].token;if(-1!==P.indexOf(L)||L===O){j=M[D];break}}if(j)throw new RangeError("The format string mustn't contain `".concat(j.fullToken,"` and `").concat(T,"` at the same time"))}else if("*"===N.incompatibleTokens&&M.length)throw new RangeError("The format string mustn't contain `".concat(T,"` and any other token at the same time"));M.push({token:O,fullToken:T});var A=N.parse(h,T,v.match,C);if(!A)return new Date(NaN);S.push({priority:N.priority,subPriority:N.subPriority||0,set:N.set,validate:N.validate,value:A.value,index:S.length}),h=A.rest}else{if(O.match(ae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");if("''"===T?T="'":"'"===O&&(T=le(T)),0!==h.indexOf(T))return new Date(NaN);h=h.slice(T.length)}}if(h.length>0&&ie.test(h))return new Date(NaN);var R=S.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return S.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),I=(0,a.default)(n);if(isNaN(I))return new Date(NaN);var z=(0,i.Z)(I,(0,l.Z)(I)),F={};for(k=0;k<R.length;k++){var U=R[k];if(U.validate&&!U.validate(z,U.value,C))return new Date(NaN);var B=U.set(z,F,U.value,C);B[0]?(z=B[0],(0,o.Z)(F,B[1])):z=B}return z}function se(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function le(e){return e.match(ne)[1].replace(re,"'")}},4892:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(1089),i=n(825),a=n(6634);function o(e,t){(0,i.Z)(1,arguments);var n=t||{},r=null==n.additionalDigits?2:(0,a.Z)(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,s=d(e);if(s.date){var l=f(s.date,r);o=h(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var u,c=o.getTime(),p=0;if(s.time&&(p=m(s.time),isNaN(p)))return new Date(NaN);if(!s.timezone){var v=new Date(c+p),y=new Date(0);return y.setFullYear(v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate()),y.setHours(v.getUTCHours(),v.getUTCMinutes(),v.getUTCSeconds(),v.getUTCMilliseconds()),y}return u=g(s.timezone),isNaN(u)?new Date(NaN):new Date(c+p+u)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){var t,n={},r=e.split(s.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var i=s.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}function f(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?i:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function h(e,t){if(null===t)return new Date(NaN);var n=e.match(l);if(!n)return new Date(NaN);var r=!!n[4],i=p(n[1]),a=p(n[2])-1,o=p(n[3]),s=p(n[4]),u=p(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,u)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,a=7*(t-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}(t,s,u):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(y[t]||(b(e)?29:28))}(t,a,o)&&function(e,t){return t>=1&&t<=(b(e)?366:365)}(t,i)?(c.setUTCFullYear(t,a,Math.max(i,o)),c):new Date(NaN)}function p(e){return e?parseInt(e):1}function m(e){var t=e.match(u);if(!t)return NaN;var n=v(t[1]),i=v(t[2]),a=v(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,a)?n*r.vh+i*r.yJ+1e3*a:NaN}function v(e){return e&&parseFloat(e.replace(",","."))||0}function g(e){if("Z"===e)return 0;var t=e.match(c);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,a)?n*(i*r.vh+a*r.yJ):NaN}var y=[31,null,31,30,31,30,31,31,30,31,30,31];function b(e){return e%400===0||e%4===0&&e%100!==0}},9462:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(2952),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,i.default)(e),o=(0,r.Z)(t);return n.setHours(o),n}},7436:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(2952),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,i.default)(e),o=(0,r.Z)(t);return n.setMinutes(o),n}},9374:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(6634),i=n(2952),a=n(825);function o(e){(0,a.Z)(1,arguments);var t=(0,i.default)(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function s(e,t){(0,a.Z)(2,arguments);var n=(0,i.default)(e),s=(0,r.Z)(t),l=n.getFullYear(),u=n.getDate(),c=new Date(0);c.setFullYear(l,s,15),c.setHours(0,0,0,0);var d=o(c);return n.setMonth(s,Math.min(u,d)),n}},3197:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(6634),i=n(2952),a=n(9374),o=n(825);function s(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),s=(0,r.Z)(t),l=Math.floor(n.getMonth()/3)+1,u=s-l;return(0,a.default)(n,n.getMonth()+3*u)}},9964:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(2952),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,i.default)(e),o=(0,r.Z)(t);return n.setSeconds(o),n}},4548:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(2952),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,i.default)(e),o=(0,r.Z)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(o),n)}},121:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(0,0,0,0),t}},4552:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9279),i=n(825);function a(e){return(0,i.Z)(1,arguments),(0,r.default)(e,{weekStartsOn:1})}},93:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},356:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth(),a=n-n%3;return t.setMonth(a,1),t.setHours(0,0,0,0),t}},9279:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(6634),a=n(825);function o(e,t){(0,a.Z)(1,arguments);var n=t||{},o=n.locale,s=o&&o.options&&o.options.weekStartsOn,l=null==s?0:(0,i.Z)(s),u=null==n.weekStartsOn?l:(0,i.Z)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,r.default)(e),d=c.getDay(),f=(d<u?7:0)+d-u;return c.setDate(c.getDate()-f),c.setHours(0,0,0,0),c}},410:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(825);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},1776:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(9996),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},9316:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(6869),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},6047:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(6634),i=n(483),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,-n)}},5101:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(1489),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},1454:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(1437),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},3824:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(3923),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},1461:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6634),i=n(3159),a=n(825);function o(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},2952:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(825);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(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://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},9478:function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[e]=this._callbacks[e]||[]).push(t),this},t.prototype.once=function(e,t){var n=this;function r(){n.off(e,r),t.apply(this,arguments)}return this._callbacks=this._callbacks||{},r.fn=t,this.on(e,r),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks[e];if(!r)return this;if(1==arguments.length)return delete this._callbacks[e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks[e];if(n)for(var r=0,i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t);return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},1919:function(e,t){var n,r,i;!function(a){"use strict";var o=a.setTimeout,s=a.clearTimeout,l=a.XMLHttpRequest,u=a.XDomainRequest,c=a.ActiveXObject,d=a.EventSource,f=a.document,h=a.Promise,p=a.fetch,m=a.Response,v=a.TextDecoder,g=a.TextEncoder,y=a.AbortController;if("undefined"===typeof window||"undefined"===typeof f||"readyState"in f||null!=f.body||(f.readyState="loading",window.addEventListener("load",(function(e){f.readyState="complete"}),!1)),null==l&&null!=c&&(l=function(){return new c("Microsoft.XMLHTTP")}),void 0==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),void 0==y){var b=p;p=function(e,t){var n=t.signal;return b(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},y=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function x(){this.bitsNeeded=0,this.codePoint=0}x.prototype.decode=function(e){function t(e,t,n){if(1===n)return e>=128>>t&&e<<t<=2047;if(2===n)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===n)return e>=65536>>t&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var r=65533,i="",a=this.bitsNeeded,o=this.codePoint,s=0;s<e.length;s+=1){var l=e[s];0!==a&&(l<128||l>191||!t(o<<6|63&l,a-6,n(a,o)))&&(a=0,o=r,i+=String.fromCharCode(o)),0===a?(l>=0&&l<=127?(a=0,o=l):l>=192&&l<=223?(a=6,o=31&l):l>=224&&l<=239?(a=12,o=15&l):l>=240&&l<=247?(a=18,o=7&l):(a=0,o=r),0===a||t(o,a,n(a,o))||(a=0,o=r)):(a-=6,o=o<<6|63&l),0===a&&(o<=65535?i+=String.fromCharCode(o):(i+=String.fromCharCode(55296+(o-65535-1>>10)),i+=String.fromCharCode(56320+(o-65535-1&1023))))}return this.bitsNeeded=a,this.codePoint=o,i};void 0!=v&&void 0!=g&&function(){try{return"test"===(new v).decode((new g).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(v=x);var _=function(){};function w(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=_,this.onload=_,this.onerror=_,this.onreadystatechange=_,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=_}function k(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function C(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var i=n[r].split(": "),a=i.shift(),o=i.join(": ");t[k(a)]=o}this._map=t}function S(){}function E(e){this._headers=e}function M(){}function T(){this._listeners=Object.create(null)}function O(e){o((function(){throw e}),0)}function N(e){this.type=e,this.target=void 0}function P(e,t){N.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function j(e,t){N.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){N.call(this,e),this.error=t.error}w.prototype.open=function(e,t){this._abort(!0);var n=this,r=this._xhr,i=1,a=0;this._abort=function(e){0!==n._sendTimeout&&(s(n._sendTimeout),n._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,r.onload=_,r.onerror=_,r.onabort=_,r.onprogress=_,r.onreadystatechange=_,r.abort(),0!==a&&(s(a),a=0),e||(n.readyState=4,n.onabort(null),n.onreadystatechange())),i=0};var u=function(){if(1===i){var e=0,t="",a=void 0;if("contentType"in r)e=200,t="OK",a=r.contentType;else try{e=r.status,t=r.statusText,a=r.getResponseHeader("Content-Type")}catch(o){e=0,t="",a=void 0}0!==e&&(i=2,n.readyState=2,n.status=e,n.statusText=t,n._contentType=a,n.onreadystatechange())}},c=function(){if(u(),2===i||3===i){i=3;var e="";try{e=r.responseText}catch(t){}n.readyState=3,n.responseText=e,n.onprogress()}},d=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:_}),c(),1===i||2===i||3===i){if(i=4,0!==a&&(s(a),a=0),n.readyState=4,"load"===e)n.onload(t);else if("error"===e)n.onerror(t);else{if("abort"!==e)throw new TypeError;n.onabort(t)}n.onreadystatechange()}},f=function e(){a=o((function(){e()}),500),3===r.readyState&&c()};"onload"in r&&(r.onload=function(e){d("load",e)}),"onerror"in r&&(r.onerror=function(e){d("error",e)}),"onabort"in r&&(r.onabort=function(e){d("abort",e)}),"onprogress"in r&&(r.onprogress=c),"onreadystatechange"in r&&(r.onreadystatechange=function(e){!function(e){void 0!=r&&(4===r.readyState?"onload"in r&&"onerror"in r&&"onabort"in r||d(""===r.responseText?"error":"load",e):3===r.readyState?"onprogress"in r||c():2===r.readyState&&u())}(e)}),!("contentType"in r)&&"ontimeout"in l.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),r.open(e,t,!0),"readyState"in r&&(a=o((function(){f()}),0))},w.prototype.abort=function(){this._abort(!1)},w.prototype.getResponseHeader=function(e){return this._contentType},w.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},w.prototype.getAllResponseHeaders=function(){return void 0!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},w.prototype.send=function(){if("ontimeout"in l.prototype&&("sendAsBinary"in l.prototype||"mozAnon"in l.prototype)||void 0==f||void 0==f.readyState||"complete"===f.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(n){throw n}}else{var t=this;t._sendTimeout=o((function(){t._sendTimeout=0,t.send()}),4)}},C.prototype.get=function(e){return this._map[k(e)]},null!=l&&null==l.HEADERS_RECEIVED&&(l.HEADERS_RECEIVED=2),S.prototype.open=function(e,t,n,r,i,a,o){e.open("GET",i);var s=0;for(var u in e.onprogress=function(){var t=e.responseText.slice(s);s+=t.length,n(t)},e.onerror=function(e){e.preventDefault(),r(new Error("NetworkError"))},e.onload=function(){r(null)},e.onabort=function(){r(null)},e.onreadystatechange=function(){if(e.readyState===l.HEADERS_RECEIVED){var n=e.status,r=e.statusText,i=e.getResponseHeader("Content-Type"),a=e.getAllResponseHeaders();t(n,r,i,new C(a))}},e.withCredentials=a,o)Object.prototype.hasOwnProperty.call(o,u)&&e.setRequestHeader(u,o[u]);return e.send(),e},E.prototype.get=function(e){return this._headers.get(e)},M.prototype.open=function(e,t,n,r,i,a,o){var s=null,l=new y,u=l.signal,c=new v;return p(i,{headers:o,credentials:a?"include":"same-origin",signal:u,cache:"no-store"}).then((function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new E(e.headers)),new h((function(e,t){!function r(){s.read().then((function(t){if(t.done)e(void 0);else{var i=c.decode(t.value,{stream:!0});n(i),r()}})).catch((function(e){t(e)}))}()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){r(e)})),{abort:function(){null!=s&&s.cancel(),l.abort()}}},T.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(void 0!=t)for(var n=t.length,r=0;r<n;r+=1){var i=t[r];try{"function"===typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(a){O(a)}}},T.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];void 0==r&&(r=[],n[e]=r);for(var i=!1,a=0;a<r.length;a+=1)r[a]===t&&(i=!0);i||r.push(t)},T.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(void 0!=r){for(var i=[],a=0;a<r.length;a+=1)r[a]!==t&&i.push(r[a]);0===i.length?delete n[e]:n[e]=i}},P.prototype=Object.create(N.prototype),j.prototype=Object.create(N.prototype),D.prototype=Object.create(N.prototype);var L=-1,A=-1,R=/^text\/event\-stream(;.*)?$/i,I=function(e,t){var n=null==e?t:parseInt(e,10);return n!==n&&(n=t),z(n)},z=function(e){return Math.min(Math.max(e,1e3),18e6)},F=function(e,t,n){try{"function"===typeof t&&t.call(e,n)}catch(r){O(r)}};function U(e,t){T.call(this),t=t||{},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,function(e,t,n){t=String(t);var r=Boolean(n.withCredentials),i=n.lastEventIdQueryParameterName||"lastEventId",a=z(1e3),c=I(n.heartbeatTimeout,45e3),d="",f=a,h=!1,p=0,m=n.headers||{},v=n.Transport,g=B&&void 0==v?void 0:new w(void 0!=v?new v:void 0!=l&&"withCredentials"in l.prototype||void 0==u?new l:new u),y=null!=v&&"string"!==typeof v?new v:void 0==g?new M:new S,b=void 0,x=0,_=L,k="",C="",E="",T="",O=0,N=0,U=0,V=function(t,n,r,i){if(0===_)if(200===t&&void 0!=r&&R.test(r)){_=1,h=Date.now(),f=a,e.readyState=1;var o=new j("open",{status:t,statusText:n,headers:i});e.dispatchEvent(o),F(e,e.onopen,o)}else{var s="";200!==t?(n&&(n=n.replace(/\s+/g," ")),s="EventSource's response has a status "+t+" "+n+" that is not 200. Aborting the connection."):s="EventSource's response has a Content-Type specifying an unsupported type: "+(void 0==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",Z();o=new j("error",{status:t,statusText:n,headers:i});e.dispatchEvent(o),F(e,e.onerror,o),console.error(s)}},H=function(t){if(1===_){for(var n=-1,r=0;r<t.length;r+=1){(u=t.charCodeAt(r))!=="\n".charCodeAt(0)&&u!=="\r".charCodeAt(0)||(n=r)}var i=(-1!==n?T:"")+t.slice(0,n+1);T=(-1===n?T:"")+t.slice(n+1),""!==t&&(h=Date.now(),p+=t.length);for(var l=0;l<i.length;l+=1){var u=i.charCodeAt(l);if(O===A&&u==="\n".charCodeAt(0))O=0;else if(O===A&&(O=0),u==="\r".charCodeAt(0)||u==="\n".charCodeAt(0)){if(0!==O){1===O&&(U=l+1);var m=i.slice(N,U-1),v=i.slice(U+(U<l&&i.charCodeAt(U)===" ".charCodeAt(0)?1:0),l);"data"===m?(k+="\n",k+=v):"id"===m?C=v:"event"===m?E=v:"retry"===m?(a=I(v,a),f=a):"heartbeatTimeout"===m&&(c=I(v,c),0!==x&&(s(x),x=o((function(){Y()}),c)))}if(0===O){if(""!==k){d=C,""===E&&(E="message");var g=new P(E,{data:k.slice(1),lastEventId:C});if(e.dispatchEvent(g),"open"===E?F(e,e.onopen,g):"message"===E?F(e,e.onmessage,g):"error"===E&&F(e,e.onerror,g),2===_)return}k="",E=""}O=u==="\r".charCodeAt(0)?A:0}else 0===O&&(N=l,O=1),1===O?u===":".charCodeAt(0)&&(U=l+1,O=2):2===O&&(O=3)}}},W=function(t){if(1===_||0===_){_=L,0!==x&&(s(x),x=0),x=o((function(){Y()}),f),f=z(Math.min(16*a,2*f)),e.readyState=0;var n=new D("error",{error:t});e.dispatchEvent(n),F(e,e.onerror,n),void 0!=t&&console.error(t)}},Z=function(){_=2,void 0!=b&&(b.abort(),b=void 0),0!==x&&(s(x),x=0),e.readyState=2},Y=function n(){if(x=0,_===L){h=!1,p=0,x=o((function(){n()}),c),_=0,k="",E="",C=d,T="",N=0,U=0,O=0;var r=t;if("data:"!==t.slice(0,5)&&"blob:"!==t.slice(0,5)&&""!==d){var a=t.indexOf("?");r=-1===a?t:t.slice(0,a+1)+t.slice(a+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===i?"":e})),r+=(-1===t.indexOf("?")?"?":"&")+i+"="+encodeURIComponent(d)}var s=e.withCredentials,l={Accept:"text/event-stream"},u=e.headers;if(void 0!=u)for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(l[f]=u[f]);try{b=y.open(g,V,H,W,r,s,l)}catch(v){throw Z(),v}}else if(h||void 0==b){var m=Math.max((h||Date.now())+c-Date.now(),1);h=!1,x=o((function(){n()}),m)}else W(new Error("No activity within "+c+" milliseconds. "+(0===_?"No response received.":p+" chars received.")+" Reconnecting.")),void 0!=b&&(b.abort(),b=void 0)};e.url=t,e.readyState=0,e.withCredentials=r,e.headers=m,e._close=Z,Y()}(this,e,t)}var B=void 0!=p&&void 0!=m&&"body"in m.prototype;U.prototype=Object.create(T.prototype),U.prototype.CONNECTING=0,U.prototype.OPEN=1,U.prototype.CLOSED=2,U.prototype.close=function(){this._close()},U.CONNECTING=0,U.OPEN=1,U.CLOSED=2,U.prototype.withCredentials=void 0;var V=d;void 0==l||void 0!=d&&"withCredentials"in d.prototype||(V=U),function(a){if("object"===typeof e.exports){var o=a(t);void 0!==o&&(e.exports=o)}else r=[t],void 0===(i="function"===typeof(n=a)?n.apply(t,r):n)||(e.exports=i)}((function(e){e.EventSourcePolyfill=U,e.NativeEventSource=d,e.EventSource=V}))}("undefined"===typeof globalThis?"undefined"!==typeof window?window:"undefined"!==typeof self?self:this:globalThis)},8192:function(e,t,n){"use strict";var r=n(91),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var o=c(n);d&&(o=o.concat(d(n)));for(var s=l(t),m=l(n),v=0;v<o.length;++v){var g=o[v];if(!a[g]&&(!r||!r[g])&&(!m||!m[g])&&(!s||!s[g])){var y=f(n,g);try{u(t,g,y)}catch(b){}}}}return t}},470:function(e,t){!function(e){"use strict";var t="1.7.1";function n(e){var t,n,r,i;for(n=1,r=arguments.length;n<r;n++)for(t in i=arguments[n])e[t]=i[t];return e}var r=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function i(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var r=n.call(arguments,2);return function(){return e.apply(t,r.length?r.concat(n.call(arguments)):arguments)}}var a=0;function o(e){return e._leaflet_id=e._leaflet_id||++a,e._leaflet_id}function s(e,t,n){var r,i,a,o;return o=function(){r=!1,i&&(a.apply(n,i),i=!1)},a=function(){r?i=arguments:(e.apply(n,arguments),setTimeout(o,t),r=!0)},a}function l(e,t,n){var r=t[1],i=t[0],a=r-i;return e===r&&n?e:((e-i)%a+a)%a+i}function u(){return!1}function c(e,t){var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}function d(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function f(e){return d(e).split(/\s+/)}function h(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?r(e.options):{}),t)e.options[n]=t[n];return e.options}function p(e,t,n){var r=[];for(var i in e)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(e[i]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")}var m=/\{ *([\w_-]+) *\}/g;function v(e,t){return e.replace(m,(function(e,n){var r=t[n];if(void 0===r)throw new Error("No value provided for variable "+e);return"function"===typeof r&&(r=r(t)),r}))}var g=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function y(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function x(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var _=0;function w(e){var t=+new Date,n=Math.max(0,16-(t-_));return _=t+n,window.setTimeout(e,n)}var k=window.requestAnimationFrame||x("RequestAnimationFrame")||w,C=window.cancelAnimationFrame||x("CancelAnimationFrame")||x("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function S(e,t,n){if(!n||k!==w)return k.call(window,i(e,t));e.call(t)}function E(e){e&&C.call(window,e)}var M={extend:n,create:r,bind:i,lastId:a,stamp:o,throttle:s,wrapNum:l,falseFn:u,formatNum:c,trim:d,splitWords:f,setOptions:h,getParamString:p,template:v,isArray:g,indexOf:y,emptyImageUrl:b,requestFn:k,cancelFn:C,requestAnimFrame:S,cancelAnimFrame:E};function T(){}function O(e){if("undefined"!==typeof L&&L&&L.Mixin){e=g(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===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)}}T.extend=function(e){var t=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=t.__super__=this.prototype,a=r(i);for(var o in a.constructor=t,t.prototype=a,this)Object.prototype.hasOwnProperty.call(this,o)&&"prototype"!==o&&"__super__"!==o&&(t[o]=this[o]);return e.statics&&(n(t,e.statics),delete e.statics),e.includes&&(O(e.includes),n.apply(null,[a].concat(e.includes)),delete e.includes),a.options&&(e.options=n(r(a.options),e.options)),n(a,e),a._initHooks=[],a.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=a._initHooks.length;e<t;e++)a._initHooks[e].call(this)}},t},T.include=function(e){return n(this.prototype,e),this},T.mergeOptions=function(e){return n(this.prototype.options,e),this},T.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"===typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var N={on:function(e,t,n){if("object"===typeof e)for(var r in e)this._on(r,e[r],t);else for(var i=0,a=(e=f(e)).length;i<a;i++)this._on(e[i],t,n);return this},off:function(e,t,n){if(e)if("object"===typeof e)for(var r in e)this._off(r,e[r],t);else for(var i=0,a=(e=f(e)).length;i<a;i++)this._off(e[i],t,n);else delete this._events;return this},_on:function(e,t,n){this._events=this._events||{};var r=this._events[e];r||(r=[],this._events[e]=r),n===this&&(n=void 0);for(var i={fn:t,ctx:n},a=r,o=0,s=a.length;o<s;o++)if(a[o].fn===t&&a[o].ctx===n)return;a.push(i)},_off:function(e,t,n){var r,i,a;if(this._events&&(r=this._events[e]))if(t){if(n===this&&(n=void 0),r)for(i=0,a=r.length;i<a;i++){var o=r[i];if(o.ctx===n&&o.fn===t)return o.fn=u,this._firingCount&&(this._events[e]=r=r.slice()),void r.splice(i,1)}}else{for(i=0,a=r.length;i<a;i++)r[i].fn=u;delete this._events[e]}},fire:function(e,t,r){if(!this.listens(e,r))return this;var i=n({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var a=this._events[e];if(a){this._firingCount=this._firingCount+1||1;for(var o=0,s=a.length;o<s;o++){var l=a[o];l.fn.call(l.ctx||this,i)}this._firingCount--}}return r&&this._propagateEvent(i),this},listens:function(e,t){var n=this._events&&this._events[e];if(n&&n.length)return!0;if(t)for(var r in this._eventParents)if(this._eventParents[r].listens(e,t))return!0;return!1},once:function(e,t,n){if("object"===typeof e){for(var r in e)this.once(r,e[r],t);return this}var a=i((function(){this.off(e,t,n).off(e,a,n)}),this);return this.on(e,t,n).on(e,a,n)},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[o(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[o(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,n({layer:e.target,propagatedFrom:e.target},e),!0)}};N.addEventListener=N.on,N.removeEventListener=N.clearAllEventListeners=N.off,N.addOneTimeEventListener=N.once,N.fireEvent=N.fire,N.hasEventListeners=N.listens;var P=T.extend(N);function j(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var D=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};function A(e,t,n){return e instanceof j?e:g(e)?new j(e[0],e[1]):void 0===e||null===e?e:"object"===typeof e&&"x"in e&&"y"in e?new j(e.x,e.y):new j(e,t,n)}function R(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function I(e,t){return!e||e instanceof R?e:new R(e,t)}function z(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function F(e,t){return e instanceof z?e:new z(e,t)}function U(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function B(e,t,n){return e instanceof U?e:g(e)&&"object"!==typeof e[0]?3===e.length?new U(e[0],e[1],e[2]):2===e.length?new U(e[0],e[1]):null:void 0===e||null===e?e:"object"===typeof e&&"lat"in e?new U(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new U(e,t,n)}j.prototype={clone:function(){return new j(this.x,this.y)},add:function(e){return this.clone()._add(A(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(A(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new j(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new j(this.x/e.x,this.y/e.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=D(this.x),this.y=D(this.y),this},distanceTo:function(e){var t=(e=A(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return(e=A(e)).x===this.x&&e.y===this.y},contains:function(e){return e=A(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},R.prototype={extend:function(e){return e=A(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new j((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new j(this.min.x,this.max.y)},getTopRight:function(){return new j(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(e){var t,n;return(e="number"===typeof e[0]||e instanceof j?A(e):I(e))instanceof R?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=I(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>=t.x&&r.x<=n.x,o=i.y>=t.y&&r.y<=n.y;return a&&o},overlaps:function(e){e=I(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>t.x&&r.x<n.x,o=i.y>t.y&&r.y<n.y;return a&&o},isValid:function(){return!(!this.min||!this.max)}},z.prototype={extend:function(e){var t,n,r=this._southWest,i=this._northEast;if(e instanceof U)t=e,n=e;else{if(!(e instanceof z))return e?this.extend(B(e)||F(e)):this;if(t=e._southWest,n=e._northEast,!t||!n)return this}return r||i?(r.lat=Math.min(t.lat,r.lat),r.lng=Math.min(t.lng,r.lng),i.lat=Math.max(n.lat,i.lat),i.lng=Math.max(n.lng,i.lng)):(this._southWest=new U(t.lat,t.lng),this._northEast=new U(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,i=Math.abs(t.lng-n.lng)*e;return new z(new U(t.lat-r,t.lng-i),new U(n.lat+r,n.lng+i))},getCenter:function(){return new U((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 U(this.getNorth(),this.getWest())},getSouthEast:function(){return new U(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(e){e="number"===typeof e[0]||e instanceof U||"lat"in e?B(e):F(e);var t,n,r=this._southWest,i=this._northEast;return e instanceof z?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=i.lat&&t.lng>=r.lng&&n.lng<=i.lng},intersects:function(e){e=F(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>=t.lat&&r.lat<=n.lat,o=i.lng>=t.lng&&r.lng<=n.lng;return a&&o},overlaps:function(e){e=F(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>t.lat&&r.lat<n.lat,o=i.lng>t.lng&&r.lng<n.lng;return a&&o},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=F(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}},U.prototype={equals:function(e,t){return!!e&&(e=B(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+c(this.lat,e)+", "+c(this.lng,e)+")"},distanceTo:function(e){return H.distance(this,B(e))},wrap:function(){return H.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return F([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new U(this.lat,this.lng,this.alt)}};var V={latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new R(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?l(e.lng,this.wrapLng,!0):e.lng;return new U(this.wrapLat?l(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),r=t.lat-n.lat,i=t.lng-n.lng;if(0===r&&0===i)return e;var a=e.getSouthWest(),o=e.getNorthEast();return new z(new U(a.lat-r,a.lng-i),new U(o.lat-r,o.lng-i))}},H=n({},V,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,r=e.lat*n,i=t.lat*n,a=Math.sin((t.lat-e.lat)*n/2),o=Math.sin((t.lng-e.lng)*n/2),s=a*a+Math.cos(r)*Math.cos(i)*o*o,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),W=6378137,Z={R:W,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),i=Math.sin(r*t);return new j(this.R*e.lng*t,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(e){var t=180/Math.PI;return new U((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:function(){var e=W*Math.PI;return new R([-e,-e],[e,e])}()};function Y(e,t,n,r){if(g(e))return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=n,this._d=r}function q(e,t,n,r){return new Y(e,t,n,r)}Y.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new j((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var G=n({},H,{code:"EPSG:3857",projection:Z,transformation:function(){var e=.5/(Math.PI*Z.R);return q(e,.5,-e,.5)}()}),K=n({},G,{code:"EPSG:900913"});function Q(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function X(e,t){var n,r,i,a,o,s,l="";for(n=0,i=e.length;n<i;n++){for(r=0,a=(o=e[n]).length;r<a;r++)l+=(r?"L":"M")+(s=o[r]).x+" "+s.y;l+=t?Oe?"z":"x":""}return l||"M0 0"}var $=document.documentElement.style,J="ActiveXObject"in window,ee=J&&!document.addEventListener,te="msLaunchUri"in navigator&&!("documentMode"in document),ne=Pe("webkit"),re=Pe("android"),ie=Pe("android 2")||Pe("android 3"),ae=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),oe=re&&Pe("Google")&&ae<537&&!("AudioNode"in window),se=!!window.opera,le=!te&&Pe("chrome"),ue=Pe("gecko")&&!ne&&!se&&!J,ce=!le&&Pe("safari"),de=Pe("phantom"),fe="OTransition"in $,he=0===navigator.platform.indexOf("Win"),pe=J&&"transition"in $,me="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ie,ve="MozPerspective"in $,ge=!window.L_DISABLE_3D&&(pe||me||ve)&&!fe&&!de,ye="undefined"!==typeof orientation||Pe("mobile"),be=ye&&ne,xe=ye&&me,_e=!window.PointerEvent&&window.MSPointerEvent,we=!(!window.PointerEvent&&!_e),ke=!window.L_NO_TOUCH&&(we||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Ce=ye&&se,Se=ye&&ue,Ee=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Me=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",u,t),window.removeEventListener("testPassiveEventSupport",u,t)}catch(n){}return e}(),Te=!!document.createElement("canvas").getContext,Oe=!(!document.createElementNS||!Q("svg").createSVGRect),Ne=!Oe&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"===typeof t.adj}catch(n){return!1}}();function Pe(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var je={ie:J,ielt9:ee,edge:te,webkit:ne,android:re,android23:ie,androidStock:oe,opera:se,chrome:le,gecko:ue,safari:ce,phantom:de,opera12:fe,win:he,ie3d:pe,webkit3d:me,gecko3d:ve,any3d:ge,mobile:ye,mobileWebkit:be,mobileWebkit3d:xe,msPointer:_e,pointer:we,touch:ke,mobileOpera:Ce,mobileGecko:Se,retina:Ee,passiveEvents:Me,canvas:Te,svg:Oe,vml:Ne},De=_e?"MSPointerDown":"pointerdown",Le=_e?"MSPointerMove":"pointermove",Ae=_e?"MSPointerUp":"pointerup",Re=_e?"MSPointerCancel":"pointercancel",Ie={},ze=!1;function Fe(e,t,n,r){return"touchstart"===t?Be(e,n,r):"touchmove"===t?Ye(e,n,r):"touchend"===t&&qe(e,n,r),this}function Ue(e,t,n){var r=e["_leaflet_"+t+n];return"touchstart"===t?e.removeEventListener(De,r,!1):"touchmove"===t?e.removeEventListener(Le,r,!1):"touchend"===t&&(e.removeEventListener(Ae,r,!1),e.removeEventListener(Re,r,!1)),this}function Be(e,t,n){var r=i((function(e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ht(e),Ze(e,t)}));e["_leaflet_touchstart"+n]=r,e.addEventListener(De,r,!1),ze||(document.addEventListener(De,Ve,!0),document.addEventListener(Le,He,!0),document.addEventListener(Ae,We,!0),document.addEventListener(Re,We,!0),ze=!0)}function Ve(e){Ie[e.pointerId]=e}function He(e){Ie[e.pointerId]&&(Ie[e.pointerId]=e)}function We(e){delete Ie[e.pointerId]}function Ze(e,t){for(var n in e.touches=[],Ie)e.touches.push(Ie[n]);e.changedTouches=[e],t(e)}function Ye(e,t,n){var r=function(e){e.pointerType===(e.MSPOINTER_TYPE_MOUSE||"mouse")&&0===e.buttons||Ze(e,t)};e["_leaflet_touchmove"+n]=r,e.addEventListener(Le,r,!1)}function qe(e,t,n){var r=function(e){Ze(e,t)};e["_leaflet_touchend"+n]=r,e.addEventListener(Ae,r,!1),e.addEventListener(Re,r,!1)}var Ge=_e?"MSPointerDown":we?"pointerdown":"touchstart",Ke=_e?"MSPointerUp":we?"pointerup":"touchend",Qe="_leaflet_";function Xe(e,t,n){var r,i,a=!1,o=250;function s(e){if(we){if(!e.isPrimary)return;if("mouse"===e.pointerType)return}else if(e.touches.length>1)return;var t=Date.now(),n=t-(r||t);i=e.touches?e.touches[0]:e,a=n>0&&n<=o,r=t}function l(e){if(a&&!i.cancelBubble){if(we){if("mouse"===e.pointerType)return;var n,o,s={};for(o in i)n=i[o],s[o]=n&&n.bind?n.bind(i):n;i=s}i.type="dblclick",i.button=0,t(i),r=null}}return e[Qe+Ge+n]=s,e[Qe+Ke+n]=l,e[Qe+"dblclick"+n]=t,e.addEventListener(Ge,s,!!Me&&{passive:!1}),e.addEventListener(Ke,l,!!Me&&{passive:!1}),e.addEventListener("dblclick",t,!1),this}function $e(e,t){var n=e[Qe+Ge+t],r=e[Qe+Ke+t],i=e[Qe+"dblclick"+t];return e.removeEventListener(Ge,n,!!Me&&{passive:!1}),e.removeEventListener(Ke,r,!!Me&&{passive:!1}),e.removeEventListener("dblclick",i,!1),this}var Je,et,tt,nt,rt,it=_t(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),at=_t(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ot="webkitTransition"===at||"OTransition"===at?at+"End":"transitionend";function st(e){return"string"===typeof e?document.getElementById(e):e}function lt(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}function ut(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}function ct(e){var t=e.parentNode;t&&t.removeChild(e)}function dt(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ft(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function ht(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function pt(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=yt(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function mt(e,t){if(void 0!==e.classList)for(var n=f(t),r=0,i=n.length;r<i;r++)e.classList.add(n[r]);else if(!pt(e,t)){var a=yt(e);gt(e,(a?a+" ":"")+t)}}function vt(e,t){void 0!==e.classList?e.classList.remove(t):gt(e,d((" "+yt(e)+" ").replace(" "+t+" "," ")))}function gt(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function yt(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function bt(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&xt(e,t)}function xt(e,t){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(r)}catch(i){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}function _t(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function wt(e,t,n){var r=t||new j(0,0);e.style[it]=(pe?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function kt(e,t){e._leaflet_pos=t,ge?wt(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function Ct(e){return e._leaflet_pos||new j(0,0)}if("onselectstart"in document)Je=function(){Dt(window,"selectstart",Ht)},et=function(){At(window,"selectstart",Ht)};else{var St=_t(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Je=function(){if(St){var e=document.documentElement.style;tt=e[St],e[St]="none"}},et=function(){St&&(document.documentElement.style[St]=tt,tt=void 0)}}function Et(){Dt(window,"dragstart",Ht)}function Mt(){At(window,"dragstart",Ht)}function Tt(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(Ot(),nt=e,rt=e.style.outline,e.style.outline="none",Dt(window,"keydown",Ot))}function Ot(){nt&&(nt.style.outline=rt,nt=void 0,rt=void 0,At(window,"keydown",Ot))}function Nt(e){do{e=e.parentNode}while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function Pt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var jt={TRANSFORM:it,TRANSITION:at,TRANSITION_END:ot,get:st,getStyle:lt,create:ut,remove:ct,empty:dt,toFront:ft,toBack:ht,hasClass:pt,addClass:mt,removeClass:vt,setClass:gt,getClass:yt,setOpacity:bt,testProp:_t,setTransform:wt,setPosition:kt,getPosition:Ct,disableTextSelection:Je,enableTextSelection:et,disableImageDrag:Et,enableImageDrag:Mt,preventOutline:Tt,restoreOutline:Ot,getSizedParentNode:Nt,getScale:Pt};function Dt(e,t,n,r){if("object"===typeof t)for(var i in t)zt(e,i,t[i],n);else for(var a=0,o=(t=f(t)).length;a<o;a++)zt(e,t[a],n,r);return this}var Lt="_leaflet_events";function At(e,t,n,r){if("object"===typeof t)for(var i in t)Ft(e,i,t[i],n);else if(t)for(var a=0,o=(t=f(t)).length;a<o;a++)Ft(e,t[a],n,r);else{for(var s in e[Lt])Ft(e,s,e[Lt][s]);delete e[Lt]}return this}function Rt(){if(we)return!(te||ce)}var It={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function zt(e,t,n,r){var i=t+o(n)+(r?"_"+o(r):"");if(e[Lt]&&e[Lt][i])return this;var a=function(t){return n.call(r||e,t||window.event)},s=a;we&&0===t.indexOf("touch")?Fe(e,t,a,i):ke&&"dblclick"===t&&!Rt()?Xe(e,a,i):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(It[t]||t,a,!!Me&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(a=function(t){t=t||window.event,Xt(e,t)&&s(t)},e.addEventListener(It[t],a,!1)):e.addEventListener(t,s,!1):"attachEvent"in e&&e.attachEvent("on"+t,a),e[Lt]=e[Lt]||{},e[Lt][i]=a}function Ft(e,t,n,r){var i=t+o(n)+(r?"_"+o(r):""),a=e[Lt]&&e[Lt][i];if(!a)return this;we&&0===t.indexOf("touch")?Ue(e,t,i):ke&&"dblclick"===t&&!Rt()?$e(e,i):"removeEventListener"in e?e.removeEventListener(It[t]||t,a,!1):"detachEvent"in e&&e.detachEvent("on"+t,a),e[Lt][i]=null}function Ut(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,Qt(e),this}function Bt(e){return zt(e,"wheel",Ut),this}function Vt(e){return Dt(e,"mousedown touchstart dblclick",Ut),zt(e,"click",Kt),this}function Ht(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Wt(e){return Ht(e),Ut(e),this}function Zt(e,t){if(!t)return new j(e.clientX,e.clientY);var n=Pt(t),r=n.boundingClientRect;return new j((e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}var Yt=he&&le?2*window.devicePixelRatio:ue?window.devicePixelRatio:1;function qt(e){return te?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/Yt:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}var Gt={};function Kt(e){Gt[e.type]=!0}function Qt(e){var t=Gt[e.type];return Gt[e.type]=!1,t}function Xt(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(r){return!1}return n!==e}var $t={on:Dt,off:At,stopPropagation:Ut,disableScrollPropagation:Bt,disableClickPropagation:Vt,preventDefault:Ht,stop:Wt,getMousePosition:Zt,getWheelDelta:qt,fakeStop:Kt,skipped:Qt,isExternalTarget:Xt,addListener:Dt,removeListener:At},Jt=P.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=Ct(e),this._offset=t.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=S(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),kt(this._el,n),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),en=P.extend({options:{crs:G,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(e,t){t=h(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(B(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=at&&ge&&!Ce&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Dt(this._proxy,ot,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,t,r){return t=void 0===t?this._zoom:this._limitZoom(t),e=this._limitCenter(B(e),t,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=n({animate:r.animate},r.zoom),r.pan=n({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,r.zoom):this._tryAnimatedPan(e,r.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,t),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(ge?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(ge?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),i=this.getSize().divideBy(2),a=(e instanceof j?e:this.latLngToContainerPoint(e)).subtract(i).multiplyBy(1-1/r),o=this.containerPointToLatLng(i.add(a));return this.setView(o,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():F(e);var n=A(t.paddingTopLeft||t.padding||[0,0]),r=A(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(e,!1,n.add(r));if((i="number"===typeof t.maxZoom?Math.min(t.maxZoom,i):i)===1/0)return{center:e.getCenter(),zoom:i};var a=r.subtract(n).divideBy(2),o=this.project(e.getSouthWest(),i),s=this.project(e.getNorthEast(),i);return{center:this.unproject(o.add(s).divideBy(2).add(a),i),zoom:i}},fitBounds:function(e,t){if(!(e=F(e)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(t=t||{},!(e=A(e).round()).x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Jt,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){mt(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!ge)return this.setView(e,t,n);this._stop();var r=this.project(this.getCenter()),i=this.project(e),a=this.getSize(),o=this._zoom;e=B(e),t=void 0===t?o:t;var s=Math.max(a.x,a.y),l=s*this.getZoomScale(o,t),u=i.distanceTo(r)||1,c=1.42,d=c*c;function f(e){var t=(l*l-s*s+(e?-1:1)*d*d*u*u)/(2*(e?l:s)*d*u),n=Math.sqrt(t*t+1)-t;return n<1e-9?-18:Math.log(n)}function h(e){return(Math.exp(e)-Math.exp(-e))/2}function p(e){return(Math.exp(e)+Math.exp(-e))/2}function m(e){return h(e)/p(e)}var v=f(0);function g(e){return s*(p(v)/p(v+c*e))}function y(e){return s*(p(v)*m(v+c*e)-h(v))/d}function b(e){return 1-Math.pow(1-e,1.5)}var x=Date.now(),_=(f(1)-v)/c,w=n.duration?1e3*n.duration:1e3*_*.8;function k(){var n=(Date.now()-x)/w,a=b(n)*_;n<=1?(this._flyToFrame=S(k,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(y(a)/u)),o),this.getScaleZoom(s/g(a),o),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),k.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return(e=F(e)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,F(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=A((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=A(t.paddingBottomRight||t.padding||[0,0]),i=this.getCenter(),a=this.project(i),o=this.project(e),s=this.getPixelBounds(),l=s.getSize().divideBy(2),u=I([s.min.add(n),s.max.subtract(r)]);if(!u.contains(o)){this._enforcingBounds=!0;var c=a.subtract(o),d=A(o.x+c.x,o.y+c.y);(o.x<u.min.x||o.x>u.max.x)&&(d.x=a.x-c.x,c.x>0?d.x+=l.x-n.x:d.x-=l.x-r.x),(o.y<u.min.y||o.y>u.max.y)&&(d.y=a.y-c.y,c.y>0?d.y+=l.y-n.y:d.y-=l.y-r.y),this.panTo(this.unproject(d),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},!0===e?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),a=t.divideBy(2).round(),o=r.divideBy(2).round(),s=a.subtract(o);return s.x||s.y?(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,r,e):navigator.geolocation.getCurrentPosition(t,r,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(e){var t=new U(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),r=this._locateOptions;if(r.setView){var i=this.getBoundsZoom(n);this.setView(t,r.maxZoom?Math.min(i,r.maxZoom):i)}var a={latlng:t,bounds:n,timestamp:e.timestamp};for(var o in e.coords)"number"===typeof e.coords[o]&&(a[o]=e.coords[o]);this.fire("locationfound",a)},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),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(t){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ct(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)ct(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=ut("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new z(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=F(e),n=A(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),a=this.getMaxZoom(),o=e.getNorthWest(),s=e.getSouthEast(),l=this.getSize().subtract(n),u=I(this.project(s,r),this.project(o,r)).getSize(),c=ge?this.options.zoomSnap:1,d=l.x/u.x,f=l.y/u.y,h=t?Math.max(d,f):Math.min(d,f);return r=this.getScaleZoom(h,r),c&&(r=Math.round(r/(c/100))*(c/100),r=t?Math.ceil(r/c)*c:Math.floor(r/c)*c),Math.max(i,Math.min(a,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new j(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new R(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"===typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(B(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(A(e),t)},layerPointToLatLng:function(e){var t=A(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(B(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(B(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(F(e))},distance:function(e,t){return this.options.crs.distance(B(e),B(t))},containerPointToLayerPoint:function(e){return A(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return A(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(A(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(B(e)))},mouseEventToContainerPoint:function(e){return Zt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=st(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");Dt(t,"scroll",this._onScroll,this),this._containerId=o(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&ge,mt(e,"leaflet-container"+(ke?" leaflet-touch":"")+(Ee?" leaflet-retina":"")+(ee?" leaflet-oldie":"")+(ce?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=lt(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),kt(this._mapPane,new j(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(mt(e.markerPane,"leaflet-zoom-hide"),mt(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){kt(this._mapPane,new j(0,0));var n=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var r=this._zoom!==t;this._moveStart(r,!1)._move(e,t)._moveEnd(r),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n){void 0===t&&(t=this._zoom);var r=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),(r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){kt(this._mapPane,this._getMapPanePos().subtract(e))},_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(e){this._targets={},this._targets[o(this._container)]=this;var t=e?At:Dt;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),ge&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=S((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],i="mouseout"===t||"mouseover"===t,a=e.target||e.srcElement,s=!1;a;){if((n=this._targets[o(a)])&&("click"===t||"preclick"===t)&&!e._simulated&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(t,!0)){if(i&&!Xt(a,e))break;if(r.push(n),i)break}if(a===this._container)break;a=a.parentNode}return r.length||s||i||!Xt(a,e)||(r=[this]),r},_handleDOMEvent:function(e){if(this._loaded&&!Qt(e)){var t=e.type;"mousedown"!==t&&"keypress"!==t&&"keyup"!==t&&"keydown"!==t||Tt(e.target||e.srcElement),this._fireDOMEvent(e,t)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,r){if("click"===e.type){var i=n({},e);i.type="preclick",this._fireDOMEvent(i,i.type,r)}if(!e._stopped&&(r=(r||[]).concat(this._findEventTargets(e,t))).length){var a=r[0];"contextmenu"===t&&a.listens(t,!0)&&Ht(e);var o={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var s=a.getLatLng&&(!a._radius||a._radius<=10);o.containerPoint=s?this.latLngToContainerPoint(a.getLatLng()):this.mouseEventToContainerPoint(e),o.layerPoint=this.containerPointToLayerPoint(o.containerPoint),o.latlng=s?a.getLatLng():this.layerPointToLatLng(o.layerPoint)}for(var l=0;l<r.length;l++)if(r[l].fire(t,o,!0),o.originalEvent._stopped||!1===r[l].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,t))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return Ct(this._mapPane)||new j(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(r)},_latLngBoundsToNewLayerBounds:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return I([this.project(e.getSouthWest(),t)._subtract(r),this.project(e.getNorthWest(),t)._subtract(r),this.project(e.getSouthEast(),t)._subtract(r),this.project(e.getNorthEast(),t)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),i=this.getSize().divideBy(2),a=new R(r.subtract(i),r.add(i)),o=this._getBoundsOffset(a,n,t);return o.round().equals([0,0])?e:this.unproject(r.add(o),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new R(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,n){var r=I(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),i=r.min.subtract(e.min),a=r.max.subtract(e.max);return new j(this._rebound(i.x,-a.x),this._rebound(i.y,-a.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=ge?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){vt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n))&&(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=ut("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=it,n=this._proxy.style[t];wt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ct(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();wt(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(i))&&(S((function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)}),this),!0)},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,mt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:r}),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&vt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),S((function(){this._moveEnd(!0)}),this))}});function tn(e,t){return new en(e,t)}var nn=T.extend({options:{position:"topright"},initialize:function(e){h(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return mt(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ct(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),rn=function(e){return new nn(e)};en.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=ut("div",t+"control-container",this._container);function r(r,i){var a=t+r+" "+t+i;e[r+i]=ut("div",a,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)ct(this._controlCorners[e]);ct(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var an=nn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n<r?-1:r<n?1:0}},initialize:function(e,t,n){for(var r in h(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return nn.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(o(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){mt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(mt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):vt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return vt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=ut("div",e),n=this.options.collapsed;t.setAttribute("aria-haspopup",!0),Vt(t),Bt(t);var r=this._section=ut("section",e+"-list");n&&(this._map.on("click",this.collapse,this),re||Dt(t,{mouseenter:this.expand,mouseleave:this.collapse},this));var i=this._layersLink=ut("a",e+"-toggle",t);i.href="#",i.title="Layers",ke?(Dt(i,"click",Wt),Dt(i,"click",this.expand,this)):Dt(i,"focus",this.expand,this),n||this.expand(),this._baseLayersList=ut("div",e+"-base",r),this._separator=ut("div",e+"-separator",r),this._overlaysList=ut("div",e+"-overlays",r),t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&o(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(i((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;dt(this._baseLayersList),dt(this._overlaysList),this._layerControlInputs=[];var e,t,n,r,i=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),t=t||r.overlay,e=e||!r.overlay,i+=r.overlay?0:1;return this.options.hideSingleBase&&(e=e&&i>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(o(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+o(this),r),this._layerControlInputs.push(t),t.layerId=o(e.layer),Dt(t,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+e.name;var a=document.createElement("div");return n.appendChild(a),a.appendChild(t),a.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var e,t,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var a=n.length-1;a>=0;a--)e=n[a],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.checked||i.push(t);for(a=0;a<i.length;a++)this._map.hasLayer(i[a])&&this._map.removeLayer(i[a]);for(a=0;a<r.length;a++)this._map.hasLayer(r[a])||this._map.addLayer(r[a]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,r=this._map.getZoom(),i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&r<t.options.minZoom||void 0!==t.options.maxZoom&&r>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),on=function(e,t,n){return new an(e,t,n)},sn=nn.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=ut("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.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(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var a=ut("a",n,r);return a.innerHTML=e,a.href="#",a.title=t,a.setAttribute("role","button"),a.setAttribute("aria-label",t),Vt(a),Dt(a,"click",Wt),Dt(a,"click",i,this),Dt(a,"click",this._refocusOnMap,this),a},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";vt(this._zoomInButton,t),vt(this._zoomOutButton,t),(this._disabled||e._zoom===e.getMinZoom())&&mt(this._zoomOutButton,t),(this._disabled||e._zoom===e.getMaxZoom())&&mt(this._zoomInButton,t)}});en.mergeOptions({zoomControl:!0}),en.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new sn,this.addControl(this.zoomControl))}));var ln=function(e){return new sn(e)},un=nn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=ut("div",t),r=this.options;return this._addScales(r,t+"-line",n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=ut("div",t,n)),e.imperial&&(this._iScale=ut("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,r,i=3.2808399*e;i>5280?(t=i/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),cn=function(e){return new un(e)},dn=nn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(e){h(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=ut("div","leaflet-control-attribution"),Vt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),this._container},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(" | ")}}});en.mergeOptions({attributionControl:!0}),en.addInitHook((function(){this.options.attributionControl&&(new dn).addTo(this)}));var fn=function(e){return new dn(e)};nn.Layers=an,nn.Zoom=sn,nn.Scale=un,nn.Attribution=dn,rn.layers=on,rn.zoom=ln,rn.scale=cn,rn.attribution=fn;var hn=T.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});hn.addTo=function(e,t){return e.addHandler(t,this),this};var pn,mn={Events:N},vn=ke?"touchstart mousedown":"mousedown",gn={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},yn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},bn=P.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){h(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(Dt(this._dragStartTarget,vn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(bn._dragging===this&&this.finishDrag(),At(this._dragStartTarget,vn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(!e._simulated&&this._enabled&&(this._moved=!1,!pt(this._element,"leaflet-zoom-anim")&&!(bn._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches)&&(bn._dragging=this,this._preventOutline&&Tt(this._element),Et(),Je(),!this._moving))){this.fire("down");var t=e.touches?e.touches[0]:e,n=Nt(this._element);this._startPoint=new j(t.clientX,t.clientY),this._parentScale=Pt(n),Dt(document,yn[e.type],this._onMove,this),Dt(document,gn[e.type],this._onUp,this)}},_onMove:function(e){if(!e._simulated&&this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new j(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Ht(e),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=Ct(this._element).subtract(n),mt(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),mt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,E(this._animRequest),this._lastEvent=e,this._animRequest=S(this._updatePosition,this,!0)))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),kt(this._element,this._newPos),this.fire("drag",e)},_onUp:function(e){!e._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var e in vt(document.body,"leaflet-dragging"),this._lastTarget&&(vt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),yn)At(document,yn[e],this._onMove,this),At(document,gn[e],this._onUp,this);Mt(),et(),this._moved&&this._moving&&(E(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,bn._dragging=!1}});function xn(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=kn(e=Sn(e,n),n)}function _n(e,t,n){return Math.sqrt(Nn(e,t,n,!0))}function wn(e,t,n){return Nn(e,t,n)}function kn(e,t){var n=e.length,r=new(typeof Uint8Array!==void 0+""?Uint8Array:Array)(n);r[0]=r[n-1]=1,Cn(e,r,t,0,n-1);var i,a=[];for(i=0;i<n;i++)r[i]&&a.push(e[i]);return a}function Cn(e,t,n,r,i){var a,o,s,l=0;for(o=r+1;o<=i-1;o++)(s=Nn(e[o],e[r],e[i],!0))>l&&(a=o,l=s);l>n&&(t[a]=1,Cn(e,t,n,r,a),Cn(e,t,n,a,i))}function Sn(e,t){for(var n=[e[0]],r=1,i=0,a=e.length;r<a;r++)On(e[r],e[i])>t&&(n.push(e[r]),i=r);return i<a-1&&n.push(e[a-1]),n}function En(e,t,n,r,i){var a,o,s,l=r?pn:Tn(e,n),u=Tn(t,n);for(pn=u;;){if(!(l|u))return[e,t];if(l&u)return!1;s=Tn(o=Mn(e,t,a=l||u,n,i),n),a===l?(e=o,l=s):(t=o,u=s)}}function Mn(e,t,n,r,i){var a,o,s=t.x-e.x,l=t.y-e.y,u=r.min,c=r.max;return 8&n?(a=e.x+s*(c.y-e.y)/l,o=c.y):4&n?(a=e.x+s*(u.y-e.y)/l,o=u.y):2&n?(a=c.x,o=e.y+l*(c.x-e.x)/s):1&n&&(a=u.x,o=e.y+l*(u.x-e.x)/s),new j(a,o,i)}function Tn(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function On(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function Nn(e,t,n,r){var i,a=t.x,o=t.y,s=n.x-a,l=n.y-o,u=s*s+l*l;return u>0&&((i=((e.x-a)*s+(e.y-o)*l)/u)>1?(a=n.x,o=n.y):i>0&&(a+=s*i,o+=l*i)),s=e.x-a,l=e.y-o,r?s*s+l*l:new j(a,o)}function Pn(e){return!g(e[0])||"object"!==typeof e[0][0]&&"undefined"!==typeof e[0][0]}function jn(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Pn(e)}var Dn={simplify:xn,pointToSegmentDistance:_n,closestPointOnSegment:wn,clipSegment:En,_getEdgeIntersection:Mn,_getBitCode:Tn,_sqClosestPointOnSegment:Nn,isFlat:Pn,_flat:jn};function Ln(e,t,n){var r,i,a,o,s,l,u,c,d,f=[1,4,2,8];for(i=0,u=e.length;i<u;i++)e[i]._code=Tn(e[i],t);for(o=0;o<4;o++){for(c=f[o],r=[],i=0,a=(u=e.length)-1;i<u;a=i++)s=e[i],l=e[a],s._code&c?l._code&c||((d=Mn(l,s,c,t,n))._code=Tn(d,t),r.push(d)):(l._code&c&&((d=Mn(l,s,c,t,n))._code=Tn(d,t),r.push(d)),r.push(s));e=r}return e}var An={clipPolygon:Ln},Rn={project:function(e){return new j(e.lng,e.lat)},unproject:function(e){return new U(e.y,e.x)},bounds:new R([-180,-90],[180,90])},In={R:6378137,R_MINOR:6356752.314245179,bounds:new R([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,a=Math.sqrt(1-i*i),o=a*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-o)/(1+o),a/2);return r=-n*Math.log(Math.max(s,1e-10)),new j(e.lng*t*n,r)},unproject:function(e){for(var t,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,a=Math.sqrt(1-i*i),o=Math.exp(-e.y/r),s=Math.PI/2-2*Math.atan(o),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)t=a*Math.sin(s),t=Math.pow((1-t)/(1+t),a/2),s+=u=Math.PI/2-2*Math.atan(o*t)-s;return new U(s*n,e.x*n/r)}},zn={LonLat:Rn,Mercator:In,SphericalMercator:Z},Fn=n({},H,{code:"EPSG:3395",projection:In,transformation:function(){var e=.5/(Math.PI*In.R);return q(e,.5,-e,.5)}()}),Un=n({},H,{code:"EPSG:4326",projection:Rn,transformation:q(1/180,1,-1/180,.5)}),Bn=n({},V,{projection:Rn,transformation:q(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});V.Earth=H,V.EPSG3395=Fn,V.EPSG3857=G,V.EPSG900913=K,V.EPSG4326=Un,V.Simple=Bn;var Vn=P.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[o(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[o(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.getAttribution&&t.attributionControl&&t.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),t.fire("layeradd",{layer:this})}}});en.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=o(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=o(e);return this._layers[t]?(this._loaded&&e.onRemove(this),e.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(e.getAttribution()),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return!!e&&o(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?g(e)?e:[e]:[]).length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){!isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[o(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=o(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;e=void 0===i.minZoom?e:Math.min(e,i.minZoom),t=void 0===i.maxZoom?t:Math.max(t,i.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Hn=Vn.extend({initialize:function(e,t){var n,r;if(h(this,t),this._layers={},e)for(n=0,r=e.length;n<r;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return!!e&&("number"===typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,r);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return o(e)}}),Wn=function(e,t){return new Hn(e,t)},Zn=Hn.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Hn.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Hn.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new z;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),Yn=function(e,t){return new Zn(e,t)},qn=T.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(e){h(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(r,e),r},_setIconStyles:function(e,t){var n=this.options,r=n[t+"Size"];"number"===typeof r&&(r=[r,r]);var i=A(r),a=A("shadow"===t&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),a&&(e.style.marginLeft=-a.x+"px",e.style.marginTop=-a.y+"px"),i&&(e.style.width=i.x+"px",e.style.height=i.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Ee&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function Gn(e){return new qn(e)}var Kn=qn.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(e){return Kn.imagePath||(Kn.imagePath=this._detectIconPath()),(this.options.imagePath||Kn.imagePath)+qn.prototype._getIconUrl.call(this,e)},_detectIconPath:function(){var e=ut("div","leaflet-default-icon-path",document.body),t=lt(e,"background-image")||lt(e,"backgroundImage");return document.body.removeChild(e),t=null===t||0!==t.indexOf("url")?"":t.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Qn=hn.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new bn(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),mt(e,"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&&vt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,a=Ct(t._icon),o=n.getPixelBounds(),s=n.getPixelOrigin(),l=I(o.min._subtract(s).add(i),o.max._subtract(s).subtract(i));if(!l.contains(a)){var u=A((Math.max(l.max.x,a.x)-l.max.x)/(o.max.x-l.max.x)-(Math.min(l.min.x,a.x)-l.min.x)/(o.min.x-l.min.x),(Math.max(l.max.y,a.y)-l.max.y)/(o.max.y-l.max.y)-(Math.min(l.min.y,a.y)-l.min.y)/(o.min.y-l.min.y)).multiplyBy(r);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),kt(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=S(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=S(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,r=Ct(t._icon),i=t._map.layerPointToLatLng(r);n&&kt(n,r),t._latlng=i,e.latlng=i,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),Xn=Vn.extend({options:{icon:new Kn,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){h(this,t),this._latlng=B(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.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(e){var t=this._latlng;return this._latlng=B(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,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 e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),mt(n,t),e.keyboard&&(n.tabIndex="0"),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var i=e.icon.createShadow(this._shadow),a=!1;i!==this._shadow&&(this._removeShadow(),a=!0),i&&(mt(i,t),i.alt=""),this._shadow=i,e.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&a&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ct(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ct(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&kt(this._icon,e),this._shadow&&kt(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(mt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Qn)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Qn(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&bt(this._icon,e),this._shadow&&bt(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function $n(e,t){return new Xn(e,t)}var Jn=Vn.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(e){this._renderer=e.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(e){return h(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"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}}),er=Jn.extend({options:{fill:!0,radius:10},initialize:function(e,t){h(this,t),this._latlng=B(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=B(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return Jn.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),r=[e+n,t+n];this._pxBounds=new R(this._point.subtract(r),this._point.add(r))},_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(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function tr(e,t){return new er(e,t)}var nr=er.extend({initialize:function(e,t,r){if("number"===typeof t&&(t=n({},r,{radius:t})),h(this,t),this._latlng=B(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new z(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:Jn.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===H.distance){var i=Math.PI/180,a=this._mRadius/H.R/i,o=n.project([t+a,e]),s=n.project([t-a,e]),l=o.add(s).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(a*i)-Math.sin(t*i)*Math.sin(u*i))/(Math.cos(t*i)*Math.cos(u*i)))/i;(isNaN(c)||0===c)&&(c=a/Math.cos(Math.PI/180*t)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,e-c]).x,this._radiusY=l.y-o.y}else{var d=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}});function rr(e,t,n){return new nr(e,t,n)}var ir=Jn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){h(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,n,r=1/0,i=null,a=Nn,o=0,s=this._parts.length;o<s;o++)for(var l=this._parts[o],u=1,c=l.length;u<c;u++){var d=a(e,t=l[u-1],n=l[u],!0);d<r&&(r=d,i=a(e,t,n))}return i&&(i.distance=Math.sqrt(r)),i},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,r,i,a,o,s=this._rings[0],l=s.length;if(!l)return null;for(e=0,t=0;e<l-1;e++)t+=s[e].distanceTo(s[e+1])/2;if(0===t)return this._map.layerPointToLatLng(s[0]);for(e=0,r=0;e<l-1;e++)if(i=s[e],a=s[e+1],(r+=n=i.distanceTo(a))>t)return o=(r-t)/n,this._map.layerPointToLatLng([a.x-o*(a.x-i.x),a.y-o*(a.y-i.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=B(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new z,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return Pn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=Pn(e),r=0,i=e.length;r<i;r++)n?(t[r]=B(e[r]),this._bounds.extend(t[r])):t[r]=this._convertLatLngs(e[r]);return t},_project:function(){var e=new R;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new j(e,e);this._pxBounds=new R([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)])},_projectLatlngs:function(e,t,n){var r,i,a=e[0]instanceof U,o=e.length;if(a){for(i=[],r=0;r<o;r++)i[r]=this._map.latLngToLayerPoint(e[r]),n.extend(i[r]);t.push(i)}else for(r=0;r<o;r++)this._projectLatlngs(e[r],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else{var t,n,r,i,a,o,s,l=this._parts;for(t=0,r=0,i=this._rings.length;t<i;t++)for(n=0,a=(s=this._rings[t]).length;n<a-1;n++)(o=En(s[n],s[n+1],e,n,!0))&&(l[r]=l[r]||[],l[r].push(o[0]),o[1]===s[n+1]&&n!==a-2||(l[r].push(o[1]),r++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,r=e.length;n<r;n++)e[n]=xn(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,r,i,a,o,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,a=this._parts.length;n<a;n++)for(r=0,i=(o=(s=this._parts[n]).length)-1;r<o;i=r++)if((t||0!==r)&&_n(e,s[i],s[r])<=l)return!0;return!1}});function ar(e,t){return new ir(e,t)}ir._flat=jn;var or=ir.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()");var e,t,n,r,i,a,o,s,l,u=this._rings[0],c=u.length;if(!c)return null;for(a=o=s=0,e=0,t=c-1;e<c;t=e++)n=u[e],r=u[t],i=n.y*r.x-r.y*n.x,o+=(n.x+r.x)*i,s+=(n.y+r.y)*i,a+=3*i;return l=0===a?u[0]:[o/a,s/a],this._map.layerPointToLatLng(l)},_convertLatLngs:function(e){var t=ir.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof U&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){ir.prototype._setLatLngs.call(this,e),Pn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Pn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new j(t,t);if(e=new R(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var r,i=0,a=this._rings.length;i<a;i++)(r=Ln(this._rings[i],e,!0)).length&&this._parts.push(r)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,r,i,a,o,s,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(i=0,s=this._parts.length;i<s;i++)for(a=0,o=(l=(t=this._parts[i]).length)-1;a<l;o=a++)n=t[a],r=t[o],n.y>e.y!==r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(u=!u);return u||ir.prototype._containsPoint.call(this,e,!0)}});function sr(e,t){return new or(e,t)}var lr=Zn.extend({initialize:function(e,t){h(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,i=g(e)?e:e.features;if(i){for(t=0,n=i.length;t<n;t++)((r=i[t]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var a=this.options;if(a.filter&&!a.filter(e))return this;var o=ur(e,a);return o?(o.feature=vr(e),o.defaultOptions=o.options,this.resetStyle(o),a.onEachFeature&&a.onEachFeature(e,o),this.addLayer(o)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=n({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"===typeof t&&(t=t(e.feature)),e.setStyle(t))}});function ur(e,t){var n,r,i,a,o="Feature"===e.type?e.geometry:e,s=o?o.coordinates:null,l=[],u=t&&t.pointToLayer,c=t&&t.coordsToLatLng||dr;if(!s&&!o)return null;switch(o.type){case"Point":return cr(u,e,n=c(s),t);case"MultiPoint":for(i=0,a=s.length;i<a;i++)n=c(s[i]),l.push(cr(u,e,n,t));return new Zn(l);case"LineString":case"MultiLineString":return r=fr(s,"LineString"===o.type?0:1,c),new ir(r,t);case"Polygon":case"MultiPolygon":return r=fr(s,"Polygon"===o.type?1:2,c),new or(r,t);case"GeometryCollection":for(i=0,a=o.geometries.length;i<a;i++){var d=ur({geometry:o.geometries[i],type:"Feature",properties:e.properties},t);d&&l.push(d)}return new Zn(l);default:throw new Error("Invalid GeoJSON object.")}}function cr(e,t,n,r){return e?e(t,n):new Xn(n,r&&r.markersInheritOptions&&r)}function dr(e){return new U(e[1],e[0],e[2])}function fr(e,t,n){for(var r,i=[],a=0,o=e.length;a<o;a++)r=t?fr(e[a],t-1,n):(n||dr)(e[a]),i.push(r);return i}function hr(e,t){return t="number"===typeof t?t:6,void 0!==e.alt?[c(e.lng,t),c(e.lat,t),c(e.alt,t)]:[c(e.lng,t),c(e.lat,t)]}function pr(e,t,n,r){for(var i=[],a=0,o=e.length;a<o;a++)i.push(t?pr(e[a],t-1,n,r):hr(e[a],r));return!t&&n&&i.push(i[0]),i}function mr(e,t){return e.feature?n({},e.feature,{geometry:t}):vr(t)}function vr(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var gr={toGeoJSON:function(e){return mr(this,{type:"Point",coordinates:hr(this.getLatLng(),e)})}};function yr(e,t){return new lr(e,t)}Xn.include(gr),nr.include(gr),er.include(gr),ir.include({toGeoJSON:function(e){var t=!Pn(this._latlngs);return mr(this,{type:(t?"Multi":"")+"LineString",coordinates:pr(this._latlngs,t?1:0,!1,e)})}}),or.include({toGeoJSON:function(e){var t=!Pn(this._latlngs),n=t&&!Pn(this._latlngs[0]),r=pr(this._latlngs,n?2:t?1:0,!0,e);return t||(r=[r]),mr(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),Hn.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),mr(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,r=[];return this.eachLayer((function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var a=vr(i);"FeatureCollection"===a.type?r.push.apply(r,a.features):r.push(a)}}})),n?mr(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var br=yr,xr=Vn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=F(t),h(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(mt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ct(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&ft(this._image),this},bringToBack:function(){return this._map&&ht(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=F(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:ut("img");mt(t,"leaflet-image-layer"),this._zoomAnimated&&mt(t,"leaflet-zoom-animated"),this.options.className&&mt(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onload=i(this.fire,this,"load"),t.onerror=i(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;wt(this._image,n,t)},_reset:function(){var e=this._image,t=new R(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();kt(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){bt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)}}),_r=function(e,t,n){return new xr(e,t,n)},wr=xr.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:ut("video");if(mt(t,"leaflet-image-layer"),this._zoomAnimated&&mt(t,"leaflet-zoom-animated"),this.options.className&&mt(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onloadeddata=i(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),r=[],a=0;a<n.length;a++)r.push(n[a].src);this._url=n.length>0?r:[t.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted;for(var o=0;o<this._url.length;o++){var s=ut("source");s.src=this._url[o],t.appendChild(s)}}}});function kr(e,t,n){return new wr(e,t,n)}var Cr=xr.extend({_initImage:function(){var e=this._image=this._url;mt(e,"leaflet-image-layer"),this._zoomAnimated&&mt(e,"leaflet-zoom-animated"),this.options.className&&mt(e,this.options.className),e.onselectstart=u,e.onmousemove=u}});function Sr(e,t,n){return new Cr(e,t,n)}var Er=Vn.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(e,t){h(this,e),this._source=t},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&bt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&bt(this._container,1),this.bringToFront()},onRemove:function(e){e._fadeAnimated?(bt(this._container,0),this._removeTimeout=setTimeout(i(ct,void 0,this._container),200)):ct(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=B(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,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 e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ft(this._container),this},bringToBack:function(){return this._map&&ht(this._container),this},_prepareOpen:function(e,t,n){if(t instanceof Vn||(n=t,t=e),t instanceof Zn)for(var r in e._layers){t=e._layers[r];break}if(!n)if(t.getCenter)n=t.getCenter();else{if(!t.getLatLng)throw new Error("Unable to get source layer LatLng.");n=t.getLatLng()}return this._source=t,this.update(),n},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"===typeof this._content?this._content(this._source||this):this._content;if("string"===typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=A(this.options.offset),n=this._getAnchor();this._zoomAnimated?kt(this._container,e.add(n)):t=t.add(e).add(n);var r=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=r+"px",this._container.style.left=i+"px"}},_getAnchor:function(){return[0,0]}}),Mr=Er.extend({options:{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(e){return e.openPopup(this),this},onAdd:function(e){Er.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Jn||this._source.on("preclick",Ut))},onRemove:function(e){Er.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Jn||this._source.off("preclick",Ut))},getEvents:function(){var e=Er.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this._close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var e="leaflet-popup",t=this._container=ut("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=ut("div",e+"-content-wrapper",t);if(this._contentNode=ut("div",e+"-content",n),Vt(t),Bt(this._contentNode),Dt(t,"contextmenu",Ut),this._tipContainer=ut("div",e+"-tip-container",t),this._tip=ut("div",e+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=ut("a",e+"-close-button",t);r.href="#close",r.innerHTML="×",Dt(r,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var r=e.offsetHeight,i=this.options.maxHeight,a="leaflet-popup-scrolled";i&&r>i?(t.height=i+"px",mt(e,a)):vt(e,a),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();kt(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var e=this._map,t=parseInt(lt(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,i=new j(this._containerLeft,-n-this._containerBottom);i._add(Ct(this._container));var a=e.layerPointToContainerPoint(i),o=A(this.options.autoPanPadding),s=A(this.options.autoPanPaddingTopLeft||o),l=A(this.options.autoPanPaddingBottomRight||o),u=e.getSize(),c=0,d=0;a.x+r+l.x>u.x&&(c=a.x+r-u.x+l.x),a.x-c-s.x<0&&(c=a.x-s.x),a.y+n+l.y>u.y&&(d=a.y+n-u.y+l.y),a.y-d-s.y<0&&(d=a.y-s.y),(c||d)&&e.fire("autopanstart").panBy([c,d])}},_onCloseButtonClick:function(e){this._close(),Wt(e)},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Tr=function(e,t){return new Mr(e,t)};en.mergeOptions({closePopupOnClick:!0}),en.include({openPopup:function(e,t,n){return e instanceof Mr||(e=new Mr(n).setContent(e)),t&&e.setLatLng(t),this.hasLayer(e)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=e,this.addLayer(e))},closePopup:function(e){return e&&e!==this._popup||(e=this._popup,this._popup=null),e&&this.removeLayer(e),this}}),Vn.include({bindPopup:function(e,t){return e instanceof Mr?(h(e,t),this._popup=e,e._source=this):(this._popup&&!t||(this._popup=new Mr(t,this)),this._popup.setContent(e)),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(e,t){return this._popup&&this._map&&(t=this._popup._prepareOpen(this,e,t),this._map.openPopup(this._popup,t)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(e){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(e)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){var t=e.layer||e.target;this._popup&&this._map&&(Wt(e),t instanceof Jn?this.openPopup(e.layer||e.target,e.latlng):this._map.hasLayer(this._popup)&&this._popup._source===t?this.closePopup():this.openPopup(t,e.latlng))},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var Or=Er.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(e){Er.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(e){Er.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var e=Er.prototype.getEvents.call(this);return ke&&!this.options.permanent&&(e.preclick=this._close),e},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ut("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,i=this._container,a=r.latLngToContainerPoint(r.getCenter()),o=r.layerPointToContainerPoint(e),s=this.options.direction,l=i.offsetWidth,u=i.offsetHeight,c=A(this.options.offset),d=this._getAnchor();"top"===s?(t=l/2,n=u):"bottom"===s?(t=l/2,n=0):"center"===s?(t=l/2,n=u/2):"right"===s?(t=0,n=u/2):"left"===s?(t=l,n=u/2):o.x<a.x?(s="right",t=0,n=u/2):(s="left",t=l+2*(c.x+d.x),n=u/2),e=e.subtract(A(t,n,!0)).add(c).add(d),vt(i,"leaflet-tooltip-right"),vt(i,"leaflet-tooltip-left"),vt(i,"leaflet-tooltip-top"),vt(i,"leaflet-tooltip-bottom"),mt(i,"leaflet-tooltip-"+s),kt(i,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&bt(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return A(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Nr=function(e,t){return new Or(e,t)};en.include({openTooltip:function(e,t,n){return e instanceof Or||(e=new Or(n).setContent(e)),t&&e.setLatLng(t),this.hasLayer(e)?this:this.addLayer(e)},closeTooltip:function(e){return e&&this.removeLayer(e),this}}),Vn.include({bindTooltip:function(e,t){return e instanceof Or?(h(e,t),this._tooltip=e,e._source=this):(this._tooltip&&!t||(this._tooltip=new Or(t,this)),this._tooltip.setContent(e)),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(e){if(e||!this._tooltipHandlersAdded){var t=e?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),ke&&(n.click=this._openTooltip)),this[t](n),this._tooltipHandlersAdded=!e}},openTooltip:function(e,t){return this._tooltip&&this._map&&(t=this._tooltip._prepareOpen(this,e,t),this._map.openTooltip(this._tooltip,t),this._tooltip.options.interactive&&this._tooltip._container&&(mt(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(vt(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(e){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(e)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_openTooltip:function(e){var t=e.layer||e.target;this._tooltip&&this._map&&this.openTooltip(t,this._tooltip.options.sticky?e.latlng:void 0)},_moveTooltip:function(e){var t,n,r=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var Pr=qn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(dt(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=A(n.bgPos);t.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});function jr(e){return new Pr(e)}qn.Default=Kn;var Dr=Vn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ye,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(e){h(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),ct(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ft(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ht(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof j?e:new j(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,r=-e(-1/0,1/0),i=0,a=n.length;i<a;i++)t=n[i].style.zIndex,n[i]!==this._container&&t&&(r=e(r,+t));isFinite(r)&&(this.options.zIndex=r+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ee){bt(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var r in this._tiles){var i=this._tiles[r];if(i.current&&i.loaded){var a=Math.min(1,(e-i.loaded)/200);bt(i.el,a),a<1?t=!0:(i.active?n=!0:this._onOpaqueTile(i),i.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(E(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=ut("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(ct(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[e],i=this._map;return r||((r=this._levels[e]={}).el=ut("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=t,r.origin=i.project(i.unproject(i.getPixelOrigin()),e).round(),r.zoom=e,this._setZoomTransform(r,i.getCenter(),i.getZoom()),u(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var r=t.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)ct(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,r){var i=Math.floor(e/2),a=Math.floor(t/2),o=n-1,s=new j(+i,+a);s.z=+o;var l=this._tileCoordsToKey(s),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),o>r&&this._retainParent(i,a,o,r))},_retainChildren:function(e,t,n,r){for(var i=2*e;i<2*e+2;i++)for(var a=2*t;a<2*t+2;a++){var o=new j(i,a);o.z=n+1;var s=this._tileCoordsToKey(o),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<r&&this._retainChildren(i,a,n+1,r))}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,r){var i=Math.round(t);i=void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom?void 0:this._clampZoom(i);var a=this.options.updateWhenZooming&&i!==this._tileZoom;r&&!a||(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var r=this._map.getZoomScale(n,e.zoom),i=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,n)).round();ge?wt(e.el,i,r):kt(e.el,i)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),r=t.getZoomScale(n,this._tileZoom),i=t.project(e,this._tileZoom).floor(),a=t.getSize().divideBy(2*r);return new R(i.subtract(a),i.add(a))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(e),i=this._pxBoundsToTileRange(r),a=i.getCenter(),o=[],s=this.options.keepBuffer,l=new R(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new j(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(e,n);else{for(var d=i.min.y;d<=i.max.y;d++)for(var f=i.min.x;f<=i.max.x;f++){var h=new j(f,d);if(h.z=this._tileZoom,this._isValidTile(h)){var p=this._tiles[this._tileCoordsToKey(h)];p?p.current=!0:o.push(h)}}if(o.sort((function(e,t){return e.distanceTo(a)-t.distanceTo(a)})),0!==o.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(f=0;f<o.length;f++)this._addTile(o[f],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return F(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),i=r.add(n);return[t.unproject(r,e.z),t.unproject(i,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new z(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new j(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(ct(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){mt(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=u,e.onmousemove=u,ee&&this.options.opacity<1&&bt(e,this.options.opacity),re&&!ie&&(e.style.WebkitBackfaceVisibility="hidden")},_addTile:function(e,t){var n=this._getTilePos(e),r=this._tileCoordsToKey(e),a=this.createTile(this._wrapCoords(e),i(this._tileReady,this,e));this._initTile(a),this.createTile.length<2&&S(i(this._tileReady,this,e,null,a)),kt(a,n),this._tiles[r]={el:a,coords:e,current:!0},t.appendChild(a),this.fire("tileloadstart",{tile:a,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var r=this._tileCoordsToKey(e);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(bt(n.el,0),E(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(mt(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ee||!this._map._fadeAnimated?S(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new j(this._wrapX?l(e.x,this._wrapX):e.x,this._wrapY?l(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new R(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Lr(e){return new Dr(e)}var Ar=Dr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(e,t){this._url=e,(t=h(this,t)).detectRetina&&Ee&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"===typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),re||this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return Dt(n,"load",i(this._tileOnLoad,this,t,n)),Dt(n,"error",i(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(e),n},getTileUrl:function(e){var t={r:Ee?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(t.y=r),t["-y"]=r}return v(this._url,n(t,this.options))},_tileOnLoad:function(e,t){ee?setTimeout(i(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=u,t.onerror=u,t.complete||(t.src=b,ct(t),delete this._tiles[e]))},_removeTile:function(e){var t=this._tiles[e];if(t)return oe||t.el.setAttribute("src",b),Dr.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==b))return Dr.prototype._tileReady.call(this,e,t,n)}});function Rr(e,t){return new Ar(e,t)}var Ir=Ar.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,t){this._url=e;var r=n({},this.defaultWmsParams);for(var i in t)i in this.options||(r[i]=t[i]);var a=(t=h(this,t)).detectRetina&&Ee?2:1,o=this.getTileSize();r.width=o.x*a,r.height=o.y*a,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,Ar.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=I(n.project(t[0]),n.project(t[1])),i=r.min,a=r.max,o=(this._wmsVersion>=1.3&&this._crs===Un?[i.y,i.x,a.y,a.x]:[i.x,i.y,a.x,a.y]).join(","),s=Ar.prototype.getTileUrl.call(this,e);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(e,t){return n(this.wmsParams,e),t||this.redraw(),this}});function zr(e,t){return new Ir(e,t)}Ar.WMS=Ir,Rr.wms=zr;var Fr=Vn.extend({options:{padding:.1,tolerance:0},initialize:function(e){h(this,e),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&mt(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 e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=Ct(this._container),i=this._map.getSize().multiplyBy(.5+this.options.padding),a=this._map.project(this._center,t),o=this._map.project(e,t).subtract(a),s=i.multiplyBy(-n).add(r).add(i).subtract(o);ge?wt(this._container,s,n):kt(this._container,s)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new R(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Ur=Fr.extend({getEvents:function(){var e=Fr.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Fr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Dt(e,"mousemove",this._onMouseMove,this),Dt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Dt(e,"mouseout",this._handleMouseOut,this),this._ctx=e.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,ct(this._container),At(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Fr.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=Ee?2:1;kt(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",Ee&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Fr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[o(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[o(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"===typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),i=[];for(n=0;n<r.length;n++){if(t=Number(r[n]),isNaN(t))return;i.push(t)}e.options._dashArray=i}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||S(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new R,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_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 e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.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 e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)e=r.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,r,i,a,o=e._parts,s=o.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(r=0,i=o[n].length;r<i;r++)a=o[n][r],l[r?"lineTo":"moveTo"](a.x,a.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,n=this._ctx,r=Math.max(Math.round(e._radius),1),i=(Math.max(Math.round(e._radiusY),1)||r)/r;1!==i&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(t.x,t.y/i,r,0,2*Math.PI,!1),1!==i&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,r=this._map.mouseEventToLayerPoint(e),i=this._drawFirst;i;i=i.next)(t=i.layer).options.interactive&&t._containsPoint(r)&&("click"!==e.type&&"preclick"===e.type||!this._map._draggableMoved(t))&&(n=t);n&&(Kt(e),this._fireEvent([n],e))},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(vt(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,r,a=this._drawFirst;a;a=a.next)(n=a.layer).options.interactive&&n._containsPoint(t)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(e),r&&(mt(this._container,"leaflet-interactive"),this._fireEvent([r],e,"mouseover"),this._hoveredLayer=r)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(i((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;n&&(n.prev=r,r?r.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e))}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;r&&(r.next=n,n?n.prev=r:r&&(this._drawLast=r),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e))}}});function Br(e){return Te?new Ur(e):null}var Vr=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),Hr={_initContainer:function(){this._container=ut("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Fr.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=Vr("shape");mt(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=Vr("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[o(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;ct(t),e.removeInteractiveTarget(t),delete this._layers[o(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,i=e._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(t||(t=e._stroke=Vr("stroke")),i.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=g(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(i.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=Vr("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){ft(e._container)},_bringToBack:function(e){ht(e._container)}},Wr=Ne?Vr:Q,Zr=Fr.extend({getEvents:function(){var e=Fr.prototype.getEvents.call(this);return e.zoomstart=this._onZoomStart,e},_initContainer:function(){this._container=Wr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Wr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ct(this._container),At(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){Fr.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),kt(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=Wr("path");e.options.className&&mt(t,e.options.className),e.options.interactive&&mt(t,"leaflet-interactive"),this._updateStyle(e),this._layers[o(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){ct(e._path),e.removeInteractiveTarget(e._path),delete this._layers[o(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,X(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",i=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(e,i)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){ft(e._path)},_bringToBack:function(e){ht(e._path)}});function Yr(e){return Oe||Ne?new Zr(e):null}Ne&&Zr.include(Hr),en.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&Br(e)||Yr(e)}});var qr=or.extend({initialize:function(e,t){or.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=F(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function Gr(e,t){return new qr(e,t)}Zr.create=Wr,Zr.pointsToPath=X,lr.geometryToLayer=ur,lr.coordsToLatLng=dr,lr.coordsToLatLngs=fr,lr.latLngToCoords=hr,lr.latLngsToCoords=pr,lr.getFeature=mr,lr.asFeature=vr,en.mergeOptions({boxZoom:!0});var Kr=hn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){Dt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){At(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ct(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),Je(),Et(),this._startPoint=this._map.mouseEventToContainerPoint(e),Dt(document,{contextmenu:Wt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=ut("div","leaflet-zoom-box",this._container),mt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new R(this._point,this._startPoint),n=t.getSize();kt(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ct(this._box),vt(this._container,"leaflet-crosshair")),et(),Mt(),At(document,{contextmenu:Wt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var t=new z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&this._finish()}});en.addInitHook("addHandler","boxZoom",Kr),en.mergeOptions({doubleClickZoom:!0});var Qr=hn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,i=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(i):t.setZoomAround(e.containerPoint,i)}});en.addInitHook("addHandler","doubleClickZoom",Qr),en.mergeOptions({dragging:!0,inertia:!ie,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Xr=hn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new bn(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}mt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){vt(this._map._container,"leaflet-grab"),vt(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 e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=F(this._map.options.maxBounds);this._offsetLimit=I(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-t+n)%e+t-n,a=(r+t+n)%e-t-n,o=Math.abs(i+n)<Math.abs(a+n)?i:a;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=o},_onDragEnd:function(e){var t=this._map,n=t.options,r=!n.inertia||this._times.length<2;if(t.fire("dragend",e),r)t.fire("moveend");else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,o=n.easeLinearity,s=i.multiplyBy(o/a),l=s.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=s.multiplyBy(u/l),d=u/(n.inertiaDeceleration*o),f=c.multiplyBy(-d/2).round();f.x||f.y?(f=t._limitOffset(f,t.options.maxBounds),S((function(){t.panBy(f,{duration:d,easeLinearity:o,noMoveStart:!0,animate:!0})}))):t.fire("moveend")}}});en.addInitHook("addHandler","dragging",Xr),en.mergeOptions({keyboard:!0,keyboardPanDelta:80});var $r=hn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),Dt(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),At(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 e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,r=this._panKeys={},i=this.keyCodes;for(t=0,n=i.left.length;t<n;t++)r[i.left[t]]=[-1*e,0];for(t=0,n=i.right.length;t<n;t++)r[i.right[t]]=[e,0];for(t=0,n=i.down.length;t<n;t++)r[i.down[t]]=[0,e];for(t=0,n=i.up.length;t<n;t++)r[i.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,r=this._zoomKeys={},i=this.keyCodes;for(t=0,n=i.zoomIn.length;t<n;t++)r[i.zoomIn[t]]=e;for(t=0,n=i.zoomOut.length;t<n;t++)r[i.zoomOut[t]]=-e},_addHooks:function(){Dt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){At(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,n=e.keyCode,r=this._map;if(n in this._panKeys)r._panAnim&&r._panAnim._inProgress||(t=this._panKeys[n],e.shiftKey&&(t=A(t).multiplyBy(3)),r.panBy(t),r.options.maxBounds&&r.panInsideBounds(r.options.maxBounds));else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}Wt(e)}}});en.addInitHook("addHandler","keyboard",$r),en.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Jr=hn.extend({addHooks:function(){Dt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){At(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=qt(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),r),Wt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var r=this._delta/(4*this._map.options.wheelPxPerZoomLevel),i=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,a=n?Math.ceil(i/n)*n:i,o=e._limitZoom(t+(this._delta>0?a:-a))-t;this._delta=0,this._startTime=null,o&&("center"===e.options.scrollWheelZoom?e.setZoom(t+o):e.setZoomAround(this._lastMousePos,t+o))}});en.addInitHook("addHandler","scrollWheelZoom",Jr),en.mergeOptions({tap:!0,tapTolerance:15});var ei=hn.extend({addHooks:function(){Dt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){At(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(e.touches){if(Ht(e),this._fireClick=!0,e.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var t=e.touches[0],n=t.target;this._startPos=this._newPos=new j(t.clientX,t.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&mt(n,"leaflet-active"),this._holdTimeout=setTimeout(i((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",t))}),this),1e3),this._simulateEvent("mousedown",t),Dt(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(e){if(clearTimeout(this._holdTimeout),At(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&e&&e.changedTouches){var t=e.changedTouches[0],n=t.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&vt(n,"leaflet-active"),this._simulateEvent("mouseup",t),this._isTapValid()&&this._simulateEvent("click",t)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(e){var t=e.touches[0];this._newPos=new j(t.clientX,t.clientY),this._simulateEvent("mousemove",t)},_simulateEvent:function(e,t){var n=document.createEvent("MouseEvents");n._simulated=!0,t.target._simulatedClick=!0,n.initMouseEvent(e,!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}});!ke||we&&!ce||en.addInitHook("addHandler","tap",ei),en.mergeOptions({touchZoom:ke&&!ie,bounceAtZoomLimits:!0});var ti=hn.extend({addHooks:function(){mt(this._map._container,"leaflet-touch-zoom"),Dt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){vt(this._map._container,"leaflet-touch-zoom"),At(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),Dt(document,"touchmove",this._onTouchMove,this),Dt(document,"touchend",this._onTouchEnd,this),Ht(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),a=n.distanceTo(r)/this._startDist;if(this._zoom=t.getScaleZoom(a,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&a<1||this._zoom>t.getMaxZoom()&&a>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===a)return}else{var o=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===a&&0===o.x&&0===o.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var s=i(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=S(s,this,!0),Ht(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),At(document,"touchmove",this._onTouchMove,this),At(document,"touchend",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))):this._zooming=!1}});en.addInitHook("addHandler","touchZoom",ti),en.BoxZoom=Kr,en.DoubleClickZoom=Qr,en.Drag=Xr,en.Keyboard=$r,en.ScrollWheelZoom=Jr,en.Tap=ei,en.TouchZoom=ti,e.version=t,e.Control=nn,e.control=rn,e.Browser=je,e.Evented=P,e.Mixin=mn,e.Util=M,e.Class=T,e.Handler=hn,e.extend=n,e.bind=i,e.stamp=o,e.setOptions=h,e.DomEvent=$t,e.DomUtil=jt,e.PosAnimation=Jt,e.Draggable=bn,e.LineUtil=Dn,e.PolyUtil=An,e.Point=j,e.point=A,e.Bounds=R,e.bounds=I,e.Transformation=Y,e.transformation=q,e.Projection=zn,e.LatLng=U,e.latLng=B,e.LatLngBounds=z,e.latLngBounds=F,e.CRS=V,e.GeoJSON=lr,e.geoJSON=yr,e.geoJson=br,e.Layer=Vn,e.LayerGroup=Hn,e.layerGroup=Wn,e.FeatureGroup=Zn,e.featureGroup=Yn,e.ImageOverlay=xr,e.imageOverlay=_r,e.VideoOverlay=wr,e.videoOverlay=kr,e.SVGOverlay=Cr,e.svgOverlay=Sr,e.DivOverlay=Er,e.Popup=Mr,e.popup=Tr,e.Tooltip=Or,e.tooltip=Nr,e.Icon=qn,e.icon=Gn,e.DivIcon=Pr,e.divIcon=jr,e.Marker=Xn,e.marker=$n,e.TileLayer=Ar,e.tileLayer=Rr,e.GridLayer=Dr,e.gridLayer=Lr,e.SVG=Zr,e.svg=Yr,e.Renderer=Fr,e.Canvas=Ur,e.canvas=Br,e.Path=Jn,e.CircleMarker=er,e.circleMarker=tr,e.Circle=nr,e.circle=rr,e.Polyline=ir,e.polyline=ar,e.Polygon=or,e.polygon=sr,e.Rectangle=qr,e.rectangle=Gr,e.Map=en,e.map=tn;var ni=window.L;e.noConflict=function(){return window.L=ni,this},window.L=e}(t)},2393:function(e,t){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.apply(void 0,e)}function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l(!0===e[0],!1,e)}function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l(!0===e[0],!0,e)}function a(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;++n)t.push(a(e[n]));return t}if(o(e)){t={};for(var n in e)t[n]=a(e[n]);return t}return e}function o(e){return e&&"object"===typeof e&&!Array.isArray(e)}function s(e,t){if(!o(e))return t;for(var n in t)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=o(e[n])&&o(t[n])?s(e[n],t[n]):t[n]);return e}function l(e,t,n){var r;!e&&o(r=n.shift())||(r={});for(var i=0;i<n.length;++i){var l=n[i];if(o(l))for(var u in l)if("__proto__"!==u&&"constructor"!==u&&"prototype"!==u){var c=e?a(l[u]):l[u];r[u]=t?s(r[u],c):c}}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=n,t.default=n,t.main=n,n.clone=a,n.isPlainObject=o,n.recursive=i,t.merge=r,t.recursive=i,t.clone=a,t.isPlainObject=o},5443:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,a){for(var o,s,l=i(e),u=1;u<arguments.length;u++){for(var c in o=Object(arguments[u]))n.call(o,c)&&(l[c]=o[c]);if(t){s=t(o);for(var d=0;d<s.length;d++)r.call(o,s[d])&&(l[s[d]]=o[s[d]])}}return l}},3422:function(e,t,n){"use strict";var r=n(9452);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},8731:function(e,t,n){e.exports=n(3422)()},9452:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7418:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},8663:function(e,t,n){"use strict";var r=n(5398),i=n(54),a=n(7418);e.exports={formats:a,parse:i,stringify:r}},54:function(e,t,n){"use strict";var r=n(9116),i=Object.prototype.hasOwnProperty,a=Array.isArray,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,n,r){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),u=s?a.slice(0,s.index):a,c=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var d=0;n.depth>0&&null!==(s=o.exec(a))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+a.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:l(t,n),a=e.length-1;a>=0;--a){var o,s=e[a];if("[]"===s&&n.parseArrays)o=[].concat(i);else{o=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(o=[])[c]=i:o[u]=i:o={0:i}}i=o}return i}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?o.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:o.comma,decoder:"function"===typeof e.decoder?e.decoder:o.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var c="string"===typeof e?function(e,t){var n,u={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),h=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?p="utf-8":"utf8=%26%2310003%3B"===f[n]&&(p="iso-8859-1"),h=n,n=f.length);for(n=0;n<f.length;++n)if(n!==h){var m,v,g=f[n],y=g.indexOf("]="),b=-1===y?g.indexOf("="):y+1;-1===b?(m=t.decoder(g,o.decoder,p,"key"),v=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,b),o.decoder,p,"key"),v=r.maybeMap(l(g.slice(b+1),t),(function(e){return t.decoder(e,o.decoder,p,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===p&&(v=s(v)),g.indexOf("[]=")>-1&&(v=a(v)?[v]:v),i.call(u,m)?u[m]=r.combine(u[m],v):u[m]=v}return u}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(c),h=0;h<f.length;++h){var p=f[h],m=u(p,c[p],n,"string"===typeof e);d=r.merge(d,m,n)}return r.compact(d)}},5398:function(e,t,n){"use strict";var r=n(9116),i=n(7418),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,s(t)?t:[t])},c=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},h=function e(t,n,i,a,o,l,c,d,h,p,m,v,g,y){var b,x=t;if("function"===typeof c?x=c(n,x):x instanceof Date?x=p(x):"comma"===i&&s(x)&&(x=r.maybeMap(x,(function(e){return e instanceof Date?p(e):e}))),null===x){if(a)return l&&!g?l(n,f.encoder,y,"key",m):n;x=""}if("string"===typeof(b=x)||"number"===typeof b||"boolean"===typeof b||"symbol"===typeof b||"bigint"===typeof b||r.isBuffer(x))return l?[v(g?n:l(n,f.encoder,y,"key",m))+"="+v(l(x,f.encoder,y,"value",m))]:[v(n)+"="+v(String(x))];var _,w=[];if("undefined"===typeof x)return w;if("comma"===i&&s(x))_=[{value:x.length>0?x.join(",")||null:void 0}];else if(s(c))_=c;else{var k=Object.keys(x);_=d?k.sort(d):k}for(var C=0;C<_.length;++C){var S=_[C],E="object"===typeof S&&void 0!==S.value?S.value:x[S];if(!o||null!==E){var M=s(x)?"function"===typeof i?i(n,S):n:n+(h?"."+S:"["+S+"]");u(w,e(E,M,i,a,o,l,c,d,h,p,m,v,g,y))}}return w};e.exports=function(e,t){var n,r=e,l=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if("undefined"!==typeof e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],o=f.filter;return("function"===typeof e.filter||s(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?f.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:f.encode,encoder:"function"===typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"===typeof l.filter?r=(0,l.filter)("",r):s(l.filter)&&(n=l.filter);var c,d=[];if("object"!==typeof r||null===r)return"";c=t&&t.arrayFormat in o?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=o[c];n||(n=Object.keys(r)),l.sort&&n.sort(l.sort);for(var m=0;m<n.length;++m){var v=n[m];l.skipNulls&&null===r[v]||u(d,h(r[v],v,p,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset))}var g=d.join(l.delimiter),y=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),g.length>0?y+g:""}},9116:function(e,t,n){"use strict";var r=n(7418),i=Object.prototype.hasOwnProperty,a=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],s=Object.keys(o),l=0;l<s.length;++l){var u=s[l],c=o[u];"object"===typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:o,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,a){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;++u){var c=s.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||a===r.RFC1738&&(40===c||41===c)?l+=s.charAt(u):c<128?l+=o[c]:c<2048?l+=o[192|c>>6]+o[128|63&c]:c<55296||c>=57344?l+=o[224|c>>12]+o[128|c>>6&63]+o[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(u)),l+=o[240|c>>18]+o[128|c>>12&63]+o[128|c>>6&63]+o[128|63&c])}return l},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(a(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var o=t;return a(t)&&!a(n)&&(o=s(t,r)),a(t)&&a(n)?(n.forEach((function(n,a){if(i.call(t,a)){var o=t[a];o&&"object"===typeof o&&n&&"object"===typeof n?t[a]=e(o,n,r):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var o=n[a];return i.call(t,a)?t[a]=e(t[a],o,r):t[a]=o,t}),o)}}},6328:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=a(n(9867)),i=a(n(5240));function a(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?h(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){function t(){var e,n;u(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return m(h(n=d(this,(e=f(t)).call.apply(e,[this].concat(o)))),"onClick",(function(e){var t=n.props,a=t.text,o=t.onCopy,s=t.children,l=t.options,u=r.default.Children.only(s),c=(0,i.default)(a,l);o&&o(a,c),u&&u.props&&"function"===typeof u.props.onClick&&u.props.onClick(e)})),n}var n,a,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,a=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=l(e,["text","onCopy","options","children"]),i=r.default.Children.only(t);return r.default.cloneElement(i,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{onClick:this.onClick}))}}],a&&c(n.prototype,a),o&&c(n,o),t}(r.default.PureComponent);t.CopyToClipboard=v,m(v,"defaultProps",{onCopy:void 0,options:void 0})},5176:function(e,t,n){"use strict";var r=n(6328).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},577:function(e,t,n){!function(e,t,n,r,i,a,o,s,l,u,c,d,f,h,p,m,v,g,y,b,x,_,w,k,C,S,E,M,T,O,N,P,j,D,L,A,R,I,z,F,U,B,V,H,W,Z,Y,q,G,K,Q,X,$,J,ee,te,ne,re,ie,ae,oe,se,le){"use strict";function ue(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var ce=ue(t),de=ue(r),fe=ue(i),he=ue(a),pe=ue(o),me=ue(s),ve=ue(l),ge=ue(u),ye=ue(c),be=ue(d),xe=ue(f),_e=ue(m),we=ue(v),ke=ue(g),Ce=ue(y),Se=ue(b),Ee=ue(x),Me=ue(_),Te=ue(w),Oe=ue(k),Ne=ue(C),Pe=ue(S),je=ue(E),De=ue(M),Le=ue(T),Ae=ue(O),Re=ue(N),Ie=ue(P),ze=ue(j),Fe=ue(D),Ue=ue(L),Be=ue(A),Ve=ue(R),He=ue(I),We=ue(z),Ze=ue(U),Ye=ue(B),qe=ue(V),Ge=ue(H),Ke=ue(W),Qe=ue(Z),Xe=ue(Y),$e=ue(K),Je=ue(Q),et=ue(X),tt=ue($),nt=ue(J),rt=ue(ee),it=ue(te),at=ue(ne),ot=ue(re),st=ue(ie),lt=ue(ae),ut=ue(oe),ct=ue(se);function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach((function(t){gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ht(e){return(ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t,n){return t&&mt(e.prototype,t),n&&mt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(){return(yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function bt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&_t(e,t)}function xt(e){return(xt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _t(e,t){return(_t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wt(e)}function Ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xt(e);if(t){var i=xt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kt(this,n)}}function St(e){return function(e){if(Array.isArray(e))return Et(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Et(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mt(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function Tt(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var Ot={p:Tt,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return Mt(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Mt(i,t)).replace("{{time}}",Tt(a,t))}},Nt=12,Pt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function jt(e){var t=e?"string"==typeof e||e instanceof String?lt.default(e):ot.default(e):new Date;return Lt(t)?t:null}function Dt(e,t,n,r,i){var a=null,o=$t(n)||$t(Xt()),s=!0;return Array.isArray(t)?(t.forEach((function(t){var l=st.default(e,t,new Date,{locale:o});r&&(s=Lt(l,i)&&e===At(l,t,n)),Lt(l,i)&&s&&(a=l)})),a):(a=st.default(e,t,new Date,{locale:o}),r?s=Lt(a)&&e===At(a,t,n):Lt(a)||(t=t.match(Pt).map((function(e){var t=e[0];return"p"===t||"P"===t?o?(0,Ot[t])(e,o.formatLong):t:e})).join(""),e.length>0&&(a=st.default(e,t.slice(0,e.length),new Date)),Lt(a)||(a=new Date(e))),Lt(a)&&s?a:null)}function Lt(e,t){return t=t||new Date("1/1/1000"),he.default(e)&&!it.default(e,t)}function At(e,t,n){if("en"===n)return pe.default(e,t,{awareOfUnicodeTokens:!0});var r=$t(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Xt()&&$t(Xt())&&(r=$t(Xt())),pe.default(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function Rt(e,t){var n=t.dateFormat,r=t.locale;return e&&At(e,Array.isArray(n)?n[0]:n,r)||""}function It(e,t){var n=t.hour,r=void 0===n?0:n,i=t.minute,a=void 0===i?0:i,o=t.second,s=void 0===o?0:o;return Ie.default(Re.default(Ae.default(e,s),a),r)}function zt(e,t){var n=t&&$t(t)||Xt()&&$t(Xt());return Ne.default(e,n?{locale:n}:null)}function Ft(e,t){return At(e,"ddd",t)}function Ut(e){return Ye.default(e)}function Bt(e,t,n){var r=$t(t||Xt());return qe.default(e,{locale:r,weekStartsOn:n})}function Vt(e){return Ge.default(e)}function Ht(e){return Qe.default(e)}function Wt(e){return Ke.default(e)}function Zt(e,t){return e&&t?tt.default(e,t):!e&&!t}function Yt(e,t){return e&&t?et.default(e,t):!e&&!t}function qt(e,t){return e&&t?nt.default(e,t):!e&&!t}function Gt(e,t){return e&&t?Je.default(e,t):!e&&!t}function Kt(e,t){return e&&t?$e.default(e,t):!e&&!t}function Qt(e,t,n){var r,i=Ye.default(t),a=Xe.default(n);try{r=at.default(e,{start:i,end:a})}catch(e){r=!1}return r}function Xt(){return("undefined"!=typeof window?window:globalThis).__localeId__}function $t(e){if("string"==typeof e){var t="undefined"!=typeof window?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function Jt(e,t){return At(ze.default(jt(),e),"LLLL",t)}function en(e,t){return At(ze.default(jt(),e),"LLL",t)}function tn(e,t){return At(Fe.default(jt(),e),"QQQ",t)}function nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,a=t.excludeDateIntervals,o=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return cn(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return Gt(e,t)}))||a&&a.some((function(t){var n=t.start,r=t.end;return at.default(e,{start:n,end:r})}))||o&&!o.some((function(t){return Gt(e,t)}))||s&&!s.some((function(t){var n=t.start,r=t.end;return at.default(e,{start:n,end:r})}))||l&&!l(jt(e))||!1}function rn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some((function(t){var n=t.start,r=t.end;return at.default(e,{start:n,end:r})})):n&&n.some((function(t){return Gt(e,t)}))||!1}function an(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,a=t.includeDates,o=t.filterDate;return cn(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return Yt(e,t)}))||a&&!a.some((function(t){return Yt(e,t)}))||o&&!o(jt(e))||!1}function on(e,t,n,r){var i=De.default(e),a=Pe.default(e),o=De.default(t),s=Pe.default(t),l=De.default(r);return i===o&&i===l?a<=n&&n<=s:i<o?l===i&&a<=n||l===o&&s>=n||l<o&&l>i:void 0}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,a=t.includeDates,o=t.filterDate;return cn(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return qt(e,t)}))||a&&!a.some((function(t){return qt(e,t)}))||o&&!o(jt(e))||!1}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return cn(new Date(e,0,1),{minDate:n,maxDate:r})||!1}function un(e,t,n,r){var i=De.default(e),a=je.default(e),o=De.default(t),s=je.default(t),l=De.default(r);return i===o&&i===l?a<=n&&n<=s:i<o?l===i&&a<=n||l===o&&s>=n||l<o&&l>i:void 0}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&He.default(e,n)<0||r&&He.default(e,r)>0}function dn(e,t){return t.some((function(t){return Me.default(t)===Me.default(e)&&Ee.default(t)===Ee.default(e)}))}function fn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&dn(e,n)||r&&!dn(e,r)||i&&!i(e)||!1}function hn(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,a=jt(),o=Ie.default(Re.default(a,Ee.default(e)),Me.default(e)),s=Ie.default(Re.default(a,Ee.default(n)),Me.default(n)),l=Ie.default(Re.default(a,Ee.default(r)),Me.default(r));try{i=!at.default(o,{start:s,end:l})}catch(e){i=!1}return i}function pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,i=ke.default(e,1);return n&&We.default(n,i)>0||r&&r.every((function(e){return We.default(e,i)>0}))||!1}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=be.default(e,1);return n&&We.default(i,n)>0||r&&r.every((function(e){return We.default(i,e)>0}))||!1}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Ce.default(e,1);return n&&Ze.default(n,i)>0||r&&r.every((function(e){return Ze.default(e,i)>0}))||!1}function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=xe.default(e,1);return n&&Ze.default(i,n)>0||r&&r.every((function(e){return Ze.default(i,e)>0}))||!1}function yn(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return He.default(e,t)>=0}));return Be.default(r)}return n?Be.default(n):t}function bn(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return He.default(e,t)<=0}));return Ve.default(r)}return n?Ve.default(n):t}function xn(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r<i;r++){var a=e[r];if(fe.default(a)){var o=At(a,"MM.dd.yyyy"),s=n.get(o)||[];s.includes(t)||(s.push(t),n.set(o,s))}else if("object"===ht(a)){var l=Object.keys(a),u=l[0],c=a[l[0]];if("string"==typeof u&&c.constructor===Array)for(var d=0,f=c.length;d<f;d++){var h=At(c[d],"MM.dd.yyyy"),p=n.get(h)||[];p.includes(u)||(p.push(u),n.set(h,p))}}}return n}function _n(e,t,n,r,i){for(var a=i.length,o=[],s=0;s<a;s++){var l=me.default(ve.default(e,Me.default(i[s])),Ee.default(i[s])),u=me.default(e,(n+1)*r);rt.default(l,t)&&it.default(l,u)&&o.push(i[s])}return o}function wn(e){return e<10?"0".concat(e):"".concat(e)}function kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nt,n=Math.ceil(De.default(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function Cn(e,t,n,r){for(var i=[],a=0;a<2*t+1;a++){var o=e+t-a,s=!0;n&&(s=De.default(n)<=o),r&&s&&(s=De.default(r)>=o),s&&i.push(o)}return i}var Sn=function(e){bt(r,e);var n=Ct(r);function r(e){var i;pt(this,r),gt(wt(i=n.call(this,e)),"renderOptions",(function(){var e=i.props.year,t=i.state.yearsList.map((function(t){return ce.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:i.onChange.bind(wt(i),t),"aria-selected":e===t?"true":void 0},e===t?ce.default.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",t)})),n=i.props.minDate?De.default(i.props.minDate):null,r=i.props.maxDate?De.default(i.props.maxDate):null;return r&&i.state.yearsList.find((function(e){return e===r}))||t.unshift(ce.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},ce.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&i.state.yearsList.find((function(e){return e===n}))||t.push(ce.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},ce.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),gt(wt(i),"onChange",(function(e){i.props.onChange(e)})),gt(wt(i),"handleClickOutside",(function(){i.props.onCancel()})),gt(wt(i),"shiftYears",(function(e){var t=i.state.yearsList.map((function(t){return t+e}));i.setState({yearsList:t})})),gt(wt(i),"incrementYears",(function(){return i.shiftYears(1)})),gt(wt(i),"decrementYears",(function(){return i.shiftYears(-1)}));var a=e.yearDropdownItemNumber,o=e.scrollableYearDropdown,s=a||(o?10:5);return i.state={yearsList:Cn(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=t.createRef(),i}return vt(r,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;e&&(e.scrollTop=e.scrollHeight/2-e.clientHeight/2)}},{key:"render",value:function(){var e=de.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ce.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),r}(ce.default.Component),En=ut.default(Sn),Mn=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return gt(wt(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),gt(wt(e),"renderSelectOptions",(function(){for(var t=e.props.minDate?De.default(e.props.minDate):1900,n=e.props.maxDate?De.default(e.props.maxDate):2100,r=[],i=t;i<=n;i++)r.push(ce.default.createElement("option",{key:i,value:i},i));return r})),gt(wt(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),gt(wt(e),"renderSelectMode",(function(){return ce.default.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),gt(wt(e),"renderReadView",(function(t){return ce.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(t){return e.toggleDropdown(t)}},ce.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),ce.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))})),gt(wt(e),"renderDropdown",(function(){return ce.default.createElement(En,{key:"dropdown",year:e.props.year,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})})),gt(wt(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),gt(wt(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)})),gt(wt(e),"toggleDropdown",(function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},(function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)}))})),gt(wt(e),"handleYearChange",(function(t,n){e.onSelect(t,n),e.setOpen()})),gt(wt(e),"onSelect",(function(t,n){e.props.onSelect&&e.props.onSelect(t,n)})),gt(wt(e),"setOpen",(function(){e.props.setOpen&&e.props.setOpen(!0)})),e}return vt(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return ce.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(ce.default.Component),Tn=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return gt(wt(e=t.call.apply(t,[this].concat(i))),"isSelectedMonth",(function(t){return e.props.month===t})),gt(wt(e),"renderOptions",(function(){return e.props.monthNames.map((function(t,n){return ce.default.createElement("div",{className:e.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(wt(e),n),"aria-selected":e.isSelectedMonth(n)?"true":void 0},e.isSelectedMonth(n)?ce.default.createElement("span",{className:"react-datepicker__month-option--selected"},"\u2713"):"",t)}))})),gt(wt(e),"onChange",(function(t){return e.props.onChange(t)})),gt(wt(e),"handleClickOutside",(function(){return e.props.onCancel()})),e}return vt(n,[{key:"render",value:function(){return ce.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}(ce.default.Component),On=ut.default(Tn),Nn=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return gt(wt(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),gt(wt(e),"renderSelectOptions",(function(e){return e.map((function(e,t){return ce.default.createElement("option",{key:t,value:t},e)}))})),gt(wt(e),"renderSelectMode",(function(t){return ce.default.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(t){return e.onChange(t.target.value)}},e.renderSelectOptions(t))})),gt(wt(e),"renderReadView",(function(t,n){return ce.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},ce.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),ce.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[e.props.month]))})),gt(wt(e),"renderDropdown",(function(t){return ce.default.createElement(On,{key:"dropdown",month:e.props.month,monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown})})),gt(wt(e),"renderScrollMode",(function(t){var n=e.state.dropdownVisible,r=[e.renderReadView(!n,t)];return n&&r.unshift(e.renderDropdown(t)),r})),gt(wt(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)})),gt(wt(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return vt(n,[{key:"render",value:function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return en(e,t.props.locale)}:function(e){return Jt(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return ce.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(ce.default.Component);function Pn(e,t){for(var n=[],r=Vt(e),i=Vt(t);!rt.default(r,i);)n.push(jt(r)),r=be.default(r,1);return n}var jn=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"renderOptions",(function(){return r.state.monthYearsList.map((function(e){var t=Le.default(e),n=Zt(r.props.date,e)&&Yt(r.props.date,e);return ce.default.createElement("div",{className:n?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:r.onChange.bind(wt(r),t),"aria-selected":n?"true":void 0},n?ce.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"\u2713"):"",At(e,r.props.dateFormat,r.props.locale))}))})),gt(wt(r),"onChange",(function(e){return r.props.onChange(e)})),gt(wt(r),"handleClickOutside",(function(){r.props.onCancel()})),r.state={monthYearsList:Pn(r.props.minDate,r.props.maxDate)},r}return vt(n,[{key:"render",value:function(){var e=de.default({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return ce.default.createElement("div",{className:e},this.renderOptions())}}]),n}(ce.default.Component),Dn=ut.default(jn),Ln=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return gt(wt(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),gt(wt(e),"renderSelectOptions",(function(){for(var t=Vt(e.props.minDate),n=Vt(e.props.maxDate),r=[];!rt.default(t,n);){var i=Le.default(t);r.push(ce.default.createElement("option",{key:i,value:i},At(t,e.props.dateFormat,e.props.locale))),t=be.default(t,1)}return r})),gt(wt(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),gt(wt(e),"renderSelectMode",(function(){return ce.default.createElement("select",{value:Le.default(Vt(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),gt(wt(e),"renderReadView",(function(t){var n=At(e.props.date,e.props.dateFormat,e.props.locale);return ce.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(t){return e.toggleDropdown(t)}},ce.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),ce.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))})),gt(wt(e),"renderDropdown",(function(){return ce.default.createElement(Dn,{key:"dropdown",date:e.props.date,dateFormat:e.props.dateFormat,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,locale:e.props.locale})})),gt(wt(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),gt(wt(e),"onChange",(function(t){e.toggleDropdown();var n=jt(parseInt(t));Zt(e.props.date,n)&&Yt(e.props.date,n)||e.props.onChange(n)})),gt(wt(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return vt(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return ce.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(ce.default.Component),An=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return gt(wt(e=t.call.apply(t,[this].concat(i))),"dayEl",ce.default.createRef()),gt(wt(e),"handleClick",(function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)})),gt(wt(e),"handleMouseEnter",(function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)})),gt(wt(e),"handleOnKeyDown",(function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)})),gt(wt(e),"isSameDay",(function(t){return Gt(e.props.day,t)})),gt(wt(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!e.isSameDay(e.props.selected)&&e.isSameDay(e.props.preSelection)})),gt(wt(e),"isDisabled",(function(){return nn(e.props.day,e.props)})),gt(wt(e),"isExcluded",(function(){return rn(e.props.day,e.props)})),gt(wt(e),"getHighLightedClass",(function(t){var n=e.props,r=n.day,i=n.highlightDates;if(!i)return!1;var a=At(r,"MM.dd.yyyy");return i.get(a)})),gt(wt(e),"isInRange",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Qt(n,r,i)})),gt(wt(e),"isInSelectingRange",(function(){var t,n=e.props,r=n.day,i=n.selectsStart,a=n.selectsEnd,o=n.selectsRange,s=n.selectsDisabledDaysInRange,l=n.startDate,u=n.endDate,c=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return!(!(i||a||o)||!c||!s&&e.isDisabled())&&(i&&u&&(it.default(c,u)||Kt(c,u))?Qt(r,c,u):(a&&l&&(rt.default(c,l)||Kt(c,l))||!(!o||!l||u||!rt.default(c,l)&&!Kt(c,l)))&&Qt(r,l,c))})),gt(wt(e),"isSelectingRangeStart",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,i=n.startDate,a=n.selectsStart,o=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return Gt(r,a?o:i)})),gt(wt(e),"isSelectingRangeEnd",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,i=n.endDate,a=n.selectsEnd,o=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return Gt(r,a?o:i)})),gt(wt(e),"isRangeStart",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Gt(r,n)})),gt(wt(e),"isRangeEnd",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Gt(i,n)})),gt(wt(e),"isWeekend",(function(){var t=Te.default(e.props.day);return 0===t||6===t})),gt(wt(e),"isAfterMonth",(function(){return void 0!==e.props.month&&(e.props.month+1)%12===Pe.default(e.props.day)})),gt(wt(e),"isBeforeMonth",(function(){return void 0!==e.props.month&&(Pe.default(e.props.day)+1)%12===e.props.month})),gt(wt(e),"isCurrentDay",(function(){return e.isSameDay(jt())})),gt(wt(e),"isSelected",(function(){return e.isSameDay(e.props.selected)})),gt(wt(e),"getClassNames",(function(t){var n=e.props.dayClassName?e.props.dayClassName(t):void 0;return de.default("react-datepicker__day",n,"react-datepicker__day--"+Ft(e.props.day),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"))})),gt(wt(e),"getAriaLabel",(function(){var t=e.props,n=t.day,r=t.ariaLabelPrefixWhenEnabled,i=void 0===r?"Choose":r,a=t.ariaLabelPrefixWhenDisabled,o=void 0===a?"Not available":a,s=e.isDisabled()||e.isExcluded()?o:i;return"".concat(s," ").concat(At(n,"PPPP",e.props.locale))})),gt(wt(e),"getTabIndex",(function(t,n){var r=t||e.props.selected,i=n||e.props.preSelection;return e.isKeyboardSelected()||e.isSameDay(r)&&Gt(i,r)?0:-1})),gt(wt(e),"handleFocusDay",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(n=!0)),n&&e.dayEl.current.focus({preventScroll:!0})})),gt(wt(e),"renderDayContents",(function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(Oe.default(e.props.day),e.props.day):Oe.default(e.props.day)})),gt(wt(e),"render",(function(){return ce.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option","aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()},e.renderDayContents())})),e}return vt(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(ce.default.Component),Rn=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return gt(wt(e=t.call.apply(t,[this].concat(i))),"handleClick",(function(t){e.props.onClick&&e.props.onClick(t)})),e}return vt(n,[{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,r=void 0===n?"week ":n,i={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick};return ce.default.createElement("div",{className:de.default(i),"aria-label":"".concat(r," ").concat(this.props.weekNumber),onClick:this.handleClick},t)}}]),n}(ce.default.Component),In=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return gt(wt(e=t.call.apply(t,[this].concat(i))),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n)})),gt(wt(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),gt(wt(e),"handleWeekClick",(function(t,n,r){"function"==typeof e.props.onWeekSelect&&e.props.onWeekSelect(t,n,r),e.props.shouldCloseOnSelect&&e.props.setOpen(!1)})),gt(wt(e),"formatWeekNumber",(function(t){return e.props.formatWeekNumber?e.props.formatWeekNumber(t):zt(t)})),gt(wt(e),"renderDays",(function(){var t=Bt(e.props.day,e.props.locale,e.props.calendarStartDay),n=[],r=e.formatWeekNumber(t);if(e.props.showWeekNumber){var i=e.props.onWeekSelect?e.handleWeekClick.bind(wt(e),t,r):void 0;n.push(ce.default.createElement(Rn,{key:"W",weekNumber:r,onClick:i,ariaLabelPrefix:e.props.ariaLabelPrefix}))}return n.concat([0,1,2,3,4,5,6].map((function(n){var r=ge.default(t,n);return ce.default.createElement(An,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:r.valueOf(),day:r,month:e.props.month,onClick:e.handleDayClick.bind(wt(e),r),onMouseEnter:e.handleDayMouseEnter.bind(wt(e),r),minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,renderDayContents:e.props.renderDayContents,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart,locale:e.props.locale})})))})),e}return vt(n,[{key:"render",value:function(){return ce.default.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(ce.default.Component),zn=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return gt(wt(e=t.call.apply(t,[this].concat(i))),"MONTH_REFS",St(Array(12)).map((function(){return ce.default.createRef()}))),gt(wt(e),"isDisabled",(function(t){return nn(t,e.props)})),gt(wt(e),"isExcluded",(function(t){return rn(t,e.props)})),gt(wt(e),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n,e.props.orderInDisplay)})),gt(wt(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),gt(wt(e),"handleMouseLeave",(function(){e.props.onMouseLeave&&e.props.onMouseLeave()})),gt(wt(e),"isRangeStartMonth",(function(t){var n=e.props,r=n.day,i=n.startDate,a=n.endDate;return!(!i||!a)&&Yt(ze.default(r,t),i)})),gt(wt(e),"isRangeStartQuarter",(function(t){var n=e.props,r=n.day,i=n.startDate,a=n.endDate;return!(!i||!a)&&qt(Fe.default(r,t),i)})),gt(wt(e),"isRangeEndMonth",(function(t){var n=e.props,r=n.day,i=n.startDate,a=n.endDate;return!(!i||!a)&&Yt(ze.default(r,t),a)})),gt(wt(e),"isRangeEndQuarter",(function(t){var n=e.props,r=n.day,i=n.startDate,a=n.endDate;return!(!i||!a)&&qt(Fe.default(r,t),a)})),gt(wt(e),"isWeekInMonth",(function(t){var n=e.props.day,r=ge.default(t,6);return Yt(t,n)||Yt(r,n)})),gt(wt(e),"isCurrentMonth",(function(e,t){return De.default(e)===De.default(jt())&&t===Pe.default(jt())})),gt(wt(e),"isSelectedMonth",(function(e,t,n){return Pe.default(e)===t&&De.default(e)===De.default(n)})),gt(wt(e),"isSelectedQuarter",(function(e,t,n){return je.default(e)===t&&De.default(e)===De.default(n)})),gt(wt(e),"renderWeeks",(function(){for(var t=[],n=e.props.fixedHeight,r=0,i=!1,a=Bt(Vt(e.props.day),e.props.locale,e.props.calendarStartDay);t.push(ce.default.createElement(In,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,key:r,day:a,month:Pe.default(e.props.day),onDayClick:e.handleDayClick,onDayMouseEnter:e.handleDayMouseEnter,onWeekSelect:e.props.onWeekSelect,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,showWeekNumber:e.props.showWeekNumbers,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderDayContents:e.props.renderDayContents,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,calendarStartDay:e.props.calendarStartDay,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart})),!i;){r++,a=ye.default(a,1);var o=n&&r>=6,s=!n&&!e.isWeekInMonth(a);if(o||s){if(!e.props.peekNextMonth)break;i=!0}}return t})),gt(wt(e),"onMonthClick",(function(t,n){e.handleDayClick(Vt(ze.default(e.props.day,n)),t)})),gt(wt(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),gt(wt(e),"onMonthKeyDown",(function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onMonthClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,be.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,ke.default(e.props.preSelection,1))}})),gt(wt(e),"onQuarterClick",(function(t,n){e.handleDayClick(Wt(Fe.default(e.props.day,n)),t)})),gt(wt(e),"getMonthClassNames",(function(t){var n=e.props,r=n.day,i=n.startDate,a=n.endDate,o=n.selected,s=n.minDate,l=n.maxDate,u=n.preSelection,c=n.monthClassName,d=c?c(r):void 0;return de.default("react-datepicker__month-text","react-datepicker__month-".concat(t),d,{"react-datepicker__month--disabled":(s||l)&&an(ze.default(r,t),e.props),"react-datepicker__month--selected":e.isSelectedMonth(r,t,o),"react-datepicker__month-text--keyboard-selected":Pe.default(u)===t,"react-datepicker__month--in-range":on(i,a,t,r),"react-datepicker__month--range-start":e.isRangeStartMonth(t),"react-datepicker__month--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--today":e.isCurrentMonth(r,t)})})),gt(wt(e),"getTabIndex",(function(t){var n=Pe.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),gt(wt(e),"getAriaLabel",(function(t){var n=e.props,r=n.ariaLabelPrefix,i=void 0===r?"Choose":r,a=n.disabledDayAriaLabelPrefix,o=void 0===a?"Not available":a,s=n.day,l=ze.default(s,t),u=e.isDisabled(l)||e.isExcluded(l)?o:i;return"".concat(u," ").concat(At(l,"MMMM yyyy"))})),gt(wt(e),"getQuarterClassNames",(function(t){var n=e.props,r=n.day,i=n.startDate,a=n.endDate,o=n.selected,s=n.minDate,l=n.maxDate;return de.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter--disabled":(s||l)&&sn(Fe.default(r,t),e.props),"react-datepicker__quarter--selected":e.isSelectedQuarter(r,t,o),"react-datepicker__quarter--in-range":un(i,a,t,r),"react-datepicker__quarter--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter--range-end":e.isRangeEndQuarter(t)})})),gt(wt(e),"renderMonths",(function(){var t=e.props,n=t.showFullMonthYearPicker,r=t.showTwoColumnMonthYearPicker,i=t.showFourColumnMonthYearPicker,a=t.locale,o=t.day,s=t.selected;return(i?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:r?[[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(t,r){return ce.default.createElement("div",{className:"react-datepicker__month-wrapper",key:r},t.map((function(t,r){return ce.default.createElement("div",{ref:e.MONTH_REFS[t],key:r,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(o,t)?"date":void 0,"aria-selected":e.isSelectedMonth(o,t,s)},n?Jt(t,a):en(t,a))})))}))})),gt(wt(e),"renderQuarters",(function(){var t=e.props,n=t.day,r=t.selected;return ce.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,i){return ce.default.createElement("div",{key:i,role:"option",onClick:function(n){e.onQuarterClick(n,t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r)},tn(t,e.props.locale))})))})),gt(wt(e),"getClassNames",(function(){var t=e.props;t.day;var n=t.selectingDate,r=t.selectsStart,i=t.selectsEnd,a=t.showMonthYearPicker,o=t.showQuarterYearPicker;return de.default("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||i)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":o})})),e}return vt(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,i=e.ariaLabelPrefix,a=void 0===i?"month ":i;return ce.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(a," ").concat(At(r,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(ce.default.Component),Fn=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return gt(wt(e=t.call.apply(t,[this].concat(i))),"state",{height:null}),gt(wt(e),"handleClick",(function(t){(e.props.minTime||e.props.maxTime)&&hn(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&fn(t,e.props)||e.props.onChange(t)})),gt(wt(e),"isSelectedTime",(function(t,n,r){return e.props.selected&&n===Me.default(t)&&r===Ee.default(t)})),gt(wt(e),"liClasses",(function(t,n,r){var i=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t,n,r):void 0];return e.isSelectedTime(t,n,r)&&i.push("react-datepicker__time-list-item--selected"),((e.props.minTime||e.props.maxTime)&&hn(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&fn(t,e.props))&&i.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(60*Me.default(t)+Ee.default(t))%e.props.intervals!=0&&i.push("react-datepicker__time-list-item--injected"),i.join(" ")})),gt(wt(e),"handleOnKeyDown",(function(t,n){" "===t.key&&(t.preventDefault(),t.key="Enter"),"Enter"===t.key&&e.handleClick(n),e.props.handleOnKeyDown(t)})),gt(wt(e),"renderTimes",(function(){for(var t=[],n=e.props.format?e.props.format:"p",r=e.props.intervals,i=Ut(jt(e.props.selected)),a=1440/r,o=e.props.injectTimes&&e.props.injectTimes.sort((function(e,t){return e-t})),s=e.props.selected||e.props.openToDate||jt(),l=Me.default(s),u=Ee.default(s),c=Ie.default(Re.default(i,u),l),d=0;d<a;d++){var f=me.default(i,d*r);if(t.push(f),o){var h=_n(i,f,d,r,o);t=t.concat(h)}}return t.map((function(t,r){return ce.default.createElement("li",{key:r,onClick:e.handleClick.bind(wt(e),t),className:e.liClasses(t,l,u),ref:function(n){(it.default(t,c)||Kt(t,c))&&(e.centerLi=n)},onKeyDown:function(n){e.handleOnKeyDown(n,t)},tabIndex:"0","aria-selected":e.isSelectedTime(t,l,u)?"true":void 0},At(t,n,e.props.locale))}))})),e}return vt(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 e=this,t=this.state.height;return ce.default.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},ce.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(t){e.header=t}},ce.default.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),ce.default.createElement("div",{className:"react-datepicker__time"},ce.default.createElement("div",{className:"react-datepicker__time-box"},ce.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{},tabIndex:"0"},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}(ce.default.Component);gt(Fn,"calcCenterPosition",(function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)}));var Un=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"YEAR_REFS",St(Array(r.props.yearItemNumber)).map((function(){return ce.default.createRef()}))),gt(wt(r),"isDisabled",(function(e){return nn(e,r.props)})),gt(wt(r),"isExcluded",(function(e){return rn(e,r.props)})),gt(wt(r),"updateFocusOnPaginate",(function(e){var t=function(){this.YEAR_REFS[e].current.focus()}.bind(wt(r));window.requestAnimationFrame(t)})),gt(wt(r),"handleYearClick",(function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)})),gt(wt(r),"handleYearNavigation",(function(e,t){var n=r.props,i=n.date,a=n.yearItemNumber,o=kn(i,a).startPeriod;r.isDisabled(t)||r.isExcluded(t)||(r.props.setPreSelection(t),e-o==-1?r.updateFocusOnPaginate(a-1):e-o===a?r.updateFocusOnPaginate(0):r.YEAR_REFS[e-o].current.focus())})),gt(wt(r),"isSameDay",(function(e,t){return Gt(e,t)})),gt(wt(r),"isCurrentYear",(function(e){return e===De.default(jt())})),gt(wt(r),"isKeyboardSelected",(function(e){var t=Ht(Ue.default(r.props.date,e));return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!Gt(t,Ht(r.props.selected))&&Gt(t,Ht(r.props.preSelection))})),gt(wt(r),"onYearClick",(function(e,t){var n=r.props.date;r.handleYearClick(Ht(Ue.default(n,t)),e)})),gt(wt(r),"onYearKeyDown",(function(e,t){var n=e.key;if(!r.props.disabledKeyboardNavigation)switch(n){case"Enter":r.onYearClick(e,t),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleYearNavigation(t+1,xe.default(r.props.preSelection,1));break;case"ArrowLeft":r.handleYearNavigation(t-1,Ce.default(r.props.preSelection,1))}})),gt(wt(r),"getYearClassNames",(function(e){var t=r.props,n=t.minDate,i=t.maxDate,a=t.selected;return de.default("react-datepicker__year-text",{"react-datepicker__year-text--selected":e===De.default(a),"react-datepicker__year-text--disabled":(n||i)&&ln(e,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(e),"react-datepicker__year-text--today":r.isCurrentYear(e)})})),gt(wt(r),"getYearTabIndex",(function(e){return r.props.disabledKeyboardNavigation?"-1":e===De.default(r.props.preSelection)?"0":"-1"})),r}return vt(n,[{key:"render",value:function(){for(var e=this,t=[],n=this.props,r=kn(n.date,n.yearItemNumber),i=r.startPeriod,a=r.endPeriod,o=function(n){t.push(ce.default.createElement("div",{ref:e.YEAR_REFS[n-i],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){e.onYearKeyDown(t,n)},tabIndex:e.getYearTabIndex(n),className:e.getYearClassNames(n),key:n,"aria-current":e.isCurrentYear(n)?"date":void 0},n))},s=i;s<=a;s++)o(s);return ce.default.createElement("div",{className:"react-datepicker__year"},ce.default.createElement("div",{className:"react-datepicker__year-wrapper"},t))}}]),n}(ce.default.Component),Bn=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"onTimeChange",(function(e){r.setState({time:e});var t=new Date;t.setHours(e.split(":")[0]),t.setMinutes(e.split(":")[1]),r.props.onChange(t)})),gt(wt(r),"renderTimeInput",(function(){var e=r.state.time,t=r.props,n=t.date,i=t.timeString,a=t.customTimeInput;return a?ce.default.cloneElement(a,{date:n,value:e,onChange:r.onTimeChange}):ce.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||i)}})})),r.state={time:r.props.timeString},r}return vt(n,[{key:"render",value:function(){return ce.default.createElement("div",{className:"react-datepicker__input-time-container"},ce.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),ce.default.createElement("div",{className:"react-datepicker-time__input-container"},ce.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.timeString!==t.time?{time:e.timeString}:null}}]),n}(ce.default.Component);function Vn(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps,a=void 0===i?{}:i;return ce.default.createElement("div",{className:t},r&&ce.default.createElement("div",yt({className:"react-datepicker__triangle"},a)),n)}var Hn=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Wn=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"handleClickOutside",(function(e){r.props.onClickOutside(e)})),gt(wt(r),"setClickOutsideRef",(function(){return r.containerRef.current})),gt(wt(r),"handleDropdownFocus",(function(e){(function(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return Hn.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&r.props.onDropdownFocus()})),gt(wt(r),"getDateInView",(function(){var e=r.props,t=e.preSelection,n=e.selected,i=e.openToDate,a=yn(r.props),o=bn(r.props),s=jt();return i||n||t||(a&&it.default(s,a)?a:o&&rt.default(s,o)?o:s)})),gt(wt(r),"increaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:be.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),gt(wt(r),"decreaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:ke.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),gt(wt(r),"handleDayClick",(function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)})),gt(wt(r),"handleDayMouseEnter",(function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)})),gt(wt(r),"handleMonthMouseLeave",(function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()})),gt(wt(r),"handleYearChange",(function(e){r.props.onYearChange&&r.props.onYearChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),gt(wt(r),"handleMonthChange",(function(e){r.props.onMonthChange&&r.props.onMonthChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),gt(wt(r),"handleMonthYearChange",(function(e){r.handleYearChange(e),r.handleMonthChange(e)})),gt(wt(r),"changeYear",(function(e){r.setState((function(t){var n=t.date;return{date:Ue.default(n,e)}}),(function(){return r.handleYearChange(r.state.date)}))})),gt(wt(r),"changeMonth",(function(e){r.setState((function(t){var n=t.date;return{date:ze.default(n,e)}}),(function(){return r.handleMonthChange(r.state.date)}))})),gt(wt(r),"changeMonthYear",(function(e){r.setState((function(t){var n=t.date;return{date:Ue.default(ze.default(n,Pe.default(e)),De.default(e))}}),(function(){return r.handleMonthYearChange(r.state.date)}))})),gt(wt(r),"header",(function(){var e=Bt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,r.props.locale,r.props.calendarStartDay),t=[];return r.props.showWeekNumbers&&t.push(ce.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map((function(t){var n=ge.default(e,t),i=r.formatWeekday(n,r.props.locale),a=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return ce.default.createElement("div",{key:t,className:de.default("react-datepicker__day-name",a)},i)})))})),gt(wt(r),"formatWeekday",(function(e,t){return r.props.formatWeekDay?function(e,t,n){return t(At(e,"EEEE",n))}(e,r.props.formatWeekDay,t):r.props.useWeekdaysShort?function(e,t){return At(e,"EEE",t)}(e,t):function(e,t){return At(e,"EEEEEE",t)}(e,t)})),gt(wt(r),"decreaseYear",(function(){r.setState((function(e){var t=e.date;return{date:Ce.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),gt(wt(r),"renderPreviousButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=vn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,i=void 0===r?Nt:r,a=kn(Ht(Ce.default(e,i)),i).endPeriod,o=n&&De.default(n);return o&&o>a||!1}(r.state.date,r.props);break;default:e=pn(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var i=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,a=r.props,o=a.previousMonthButtonLabel,s=a.previousYearButtonLabel,l=r.props,u=l.previousMonthAriaLabel,c=void 0===u?"string"==typeof o?o:"Previous Month":u,d=l.previousYearAriaLabel,f=void 0===d?"string"==typeof s?s:"Previous Year":d;return ce.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":i?f:c},ce.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},i?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel))}}})),gt(wt(r),"increaseYear",(function(){r.setState((function(e){var t=e.date;return{date:xe.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),gt(wt(r),"renderNextButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=gn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,i=void 0===r?Nt:r,a=kn(xe.default(e,i),i).startPeriod,o=n&&De.default(n);return o&&o<a||!1}(r.state.date,r.props);break;default:e=mn(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.increaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null);var i=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,a=r.props,o=a.nextMonthButtonLabel,s=a.nextYearButtonLabel,l=r.props,u=l.nextMonthAriaLabel,c=void 0===u?"string"==typeof o?o:"Next Month":u,d=l.nextYearAriaLabel,f=void 0===d?"string"==typeof s?s:"Next Year":d;return ce.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":i?f:c},ce.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},i?r.props.nextYearButtonLabel:r.props.nextMonthButtonLabel))}}})),gt(wt(r),"renderCurrentMonth",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),ce.default.createElement("div",{className:t.join(" ")},At(e,r.props.dateFormat,r.props.locale))})),gt(wt(r),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return ce.default.createElement(Mn,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:De.default(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})})),gt(wt(r),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return ce.default.createElement(Nn,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:Pe.default(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})})),gt(wt(r),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return ce.default.createElement(Ln,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})})),gt(wt(r),"renderTodayButton",(function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return ce.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.props.onSelect(Ye.default(jt()),e)}},r.props.todayButton)})),gt(wt(r),"renderDefaultHeader",(function(e){var t=e.monthDate,n=e.i;return ce.default.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),ce.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),ce.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),gt(wt(r),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var i=pn(r.state.date,r.props),a=mn(r.state.date,r.props),o=vn(r.state.date,r.props),s=gn(r.state.date,r.props),l=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return ce.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(ft(ft({},r.state),{},{customHeaderCount:n,monthDate:t,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:i,nextMonthButtonDisabled:a,prevYearButtonDisabled:o,nextYearButtonDisabled:s})),l&&ce.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),gt(wt(r),"renderYearHeader",(function(){var e=r.state.date,t=r.props,n=t.showYearPicker,i=kn(e,t.yearItemNumber),a=i.startPeriod,o=i.endPeriod;return ce.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(a," - ").concat(o):De.default(e))})),gt(wt(r),"renderHeader",(function(e){switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(e);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(e);default:return r.renderDefaultHeader(e)}})),gt(wt(r),"renderMonths",(function(){if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var e=[],t=r.props.showPreviousMonths?r.props.monthsShown-1:0,n=ke.default(r.state.date,t),i=0;i<r.props.monthsShown;++i){var a=i-r.props.monthSelectedIn,o=be.default(n,a),s="month-".concat(i),l=i<r.props.monthsShown-1,u=i>0;e.push(ce.default.createElement("div",{key:s,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.renderHeader({monthDate:o,i:i}),ce.default.createElement(zn,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,onChange:r.changeMonthYear,day:o,dayClassName:r.props.dayClassName,calendarStartDay:r.props.calendarStartDay,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:i,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,highlightDates:r.props.highlightDates,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:l,monthShowsDuplicateDaysStart:u})))}return e}})),gt(wt(r),"renderYears",(function(){if(!r.props.showTimeSelectOnly)return r.props.showYearPicker?ce.default.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader(),ce.default.createElement(Un,yt({onDayClick:r.handleDayClick,date:r.state.date},r.props))):void 0})),gt(wt(r),"renderTimeSection",(function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return ce.default.createElement(Fn,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,handleOnKeyDown:r.props.handleOnKeyDown,showTimeSelectOnly:r.props.showTimeSelectOnly})})),gt(wt(r),"renderInputTimeSection",(function(){var e=new Date(r.props.selected),t=Lt(e)&&Boolean(r.props.selected)?"".concat(wn(e.getHours()),":").concat(wn(e.getMinutes())):"";if(r.props.showTimeInput)return ce.default.createElement(Bn,{date:e,timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})})),r.containerRef=ce.default.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null},r}return vt(n,[{key:"componentDidMount",value:function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))}},{key:"componentDidUpdate",value:function(e){this.props.preSelection&&!Gt(this.props.preSelection,e.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!Gt(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var e=this.props.container||Vn;return ce.default.createElement("div",{ref:this.containerRef},ce.default.createElement(e,{className:de.default("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:Nt}}}]),n}(ce.default.Component),Zn=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return vt(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 ct.default.createPortal(this.props.children,this.el)}}]),n}(ce.default.Component),Yn=function(e){return!e.disabled&&-1!==e.tabIndex},qn=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(Yn)})),gt(wt(r),"handleFocusStart",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[t.length-1].focus()})),gt(wt(r),"handleFocusEnd",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[0].focus()})),r.tabLoopRef=ce.default.createRef(),r}return vt(n,[{key:"render",value:function(){return this.props.enableTabLoop?ce.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},ce.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,ce.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(ce.default.Component),Gn=function(e){bt(n,e);var t=Ct(n);function n(){return pt(this,n),t.apply(this,arguments)}return vt(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,i=t.hidePopper,a=t.popperComponent,o=t.popperModifiers,s=t.popperPlacement,l=t.popperProps,u=t.targetComponent,c=t.enableTabLoop,d=t.popperOnKeyDown,f=t.portalId,h=t.portalHost;if(!i){var p=de.default("react-datepicker-popper",n);e=ce.default.createElement(le.Popper,yt({modifiers:o,placement:s},l),(function(e){var t=e.ref,n=e.style,r=e.placement,i=e.arrowProps;return ce.default.createElement(qn,{enableTabLoop:c},ce.default.createElement("div",{ref:t,style:n,className:p,"data-placement":r,onKeyDown:d},ce.default.cloneElement(a,{arrowProps:i})))}))}this.props.popperContainer&&(e=ce.default.createElement(this.props.popperContainer,{},e)),f&&!i&&(e=ce.default.createElement(Zn,{portalId:f,portalHost:h},e));var m=de.default("react-datepicker-wrapper",r);return ce.default.createElement(le.Manager,{className:"react-datepicker-manager"},ce.default.createElement(le.Reference,null,(function(e){var t=e.ref;return ce.default.createElement("div",{ref:t,className:m},u)})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(ce.default.Component),Kn="react-datepicker-ignore-onclickoutside",Qn=ut.default(Wn),Xn="Date input not valid.",$n=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"getPreSelection",(function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:jt()})),gt(wt(r),"calcInitialState",(function(){var e,t=r.getPreSelection(),n=yn(r.props),i=bn(r.props),a=n&&it.default(t,Ye.default(n))?n:i&&rt.default(t,Xe.default(i))?i:t;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:a,highlightDates:xn(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1}})),gt(wt(r),"clearPreventFocusTimeout",(function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)})),gt(wt(r),"setFocus",(function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})})),gt(wt(r),"setBlur",(function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()})),gt(wt(r),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:er},(function(){e||r.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&r.setBlur(),r.setState({inputValue:null})}))}))})),gt(wt(r),"inputOk",(function(){return fe.default(r.state.preSelection)})),gt(wt(r),"isCalendarOpen",(function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open})),gt(wt(r),"handleFocus",(function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})})),gt(wt(r),"cancelFocusInput",(function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null})),gt(wt(r),"deferFocusInput",(function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout((function(){return r.setFocus()}),1)})),gt(wt(r),"handleDropdownFocus",(function(){r.cancelFocusInput()})),gt(wt(r),"handleBlur",(function(e){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(e),r.setState({focused:!1})})),gt(wt(r),"handleCalendarClickOutside",(function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()})),gt(wt(r),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0];if(!r.props.onChangeRaw||(r.props.onChangeRaw.apply(wt(r),t),"function"==typeof i.isDefaultPrevented&&!i.isDefaultPrevented())){r.setState({inputValue:i.target.value,lastPreSelectChange:Jn});var a=Dt(i.target.value,r.props.dateFormat,r.props.locale,r.props.strictParsing,r.props.minDate);!a&&i.target.value||r.setSelected(a,i,!0)}})),gt(wt(r),"handleSelect",(function(e,t,n){if(r.setState({preventFocus:!0},(function(){return r.preventFocusTimeout=setTimeout((function(){return r.setState({preventFocus:!1})}),50),r.preventFocusTimeout})),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.setSelected(e,t,!1,n),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(e);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var i=r.props,a=i.startDate,o=i.endDate;!a||o||it.default(e,a)||r.setOpen(!1)}})),gt(wt(r),"setSelected",(function(e,t,n,i){var a=e;if(null===a||!nn(a,r.props)){var o=r.props,s=o.onChange,l=o.selectsRange,u=o.startDate,c=o.endDate;if(!Kt(r.props.selected,a)||r.props.allowSameDay||l)if(null!==a&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(a=It(a,{hour:Me.default(r.props.selected),minute:Ee.default(r.props.selected),second:Se.default(r.props.selected)})),r.props.inline||r.setState({preSelection:a}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:i})),l){var d=u&&c;u||c?u&&!c&&(it.default(a,u)?s([a,null],t):s([u,a],t)):s([a,null],t),d&&s([a,null],t)}else s(a,t);n||(r.props.onSelect(a,t),r.setState({inputValue:null}))}})),gt(wt(r),"setPreSelection",(function(e){var t=void 0!==r.props.minDate,n=void 0!==r.props.maxDate,i=!0;if(e){var a=Ye.default(e);if(t&&n)i=Qt(e,r.props.minDate,r.props.maxDate);else if(t){var o=Ye.default(r.props.minDate);i=rt.default(e,o)||Kt(a,o)}else if(n){var s=Xe.default(r.props.maxDate);i=it.default(e,s)||Kt(a,s)}}i&&r.setState({preSelection:e})})),gt(wt(r),"handleTimeChange",(function(e){var t=It(r.props.selected?r.props.selected:r.getPreSelection(),{hour:Me.default(e),minute:Ee.default(e)});r.setState({preSelection:t}),r.props.onChange(t),r.props.shouldCloseOnSelect&&r.setOpen(!1),r.props.showTimeInput&&r.setOpen(!0),r.setState({inputValue:null})})),gt(wt(r),"onInputClick",(function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()})),gt(wt(r),"onInputKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){if(r.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=r.calendar.componentNode&&r.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(n&&n.focus({preventScroll:!0}))}var i=jt(r.state.preSelection);"Enter"===t?(e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===er?(r.handleSelect(i,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(i)):r.setOpen(!1)):"Escape"===t&&(e.preventDefault(),r.setOpen(!1)),r.inputOk()||r.props.onInputError({code:1,msg:Xn})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||r.onInputClick()})),gt(wt(r),"onDayKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key,n=jt(r.state.preSelection);if("Enter"===t)e.preventDefault(),r.handleSelect(n,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(n);else if("Escape"===t)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:Xn});else if(!r.props.disabledKeyboardNavigation){var i;switch(t){case"ArrowLeft":i=_e.default(n,1);break;case"ArrowRight":i=ge.default(n,1);break;case"ArrowUp":i=we.default(n,1);break;case"ArrowDown":i=ye.default(n,1);break;case"PageUp":i=ke.default(n,1);break;case"PageDown":i=be.default(n,1);break;case"Home":i=Ce.default(n,1);break;case"End":i=xe.default(n,1)}if(!i)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:Xn}));if(e.preventDefault(),r.setState({lastPreSelectChange:er}),r.props.adjustDateOnChange&&r.setSelected(i),r.setPreSelection(i),r.props.inline){var a=Pe.default(n),o=Pe.default(i),s=De.default(n),l=De.default(i);a!==o||s!==l?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}})),gt(wt(r),"onPopperKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},(function(){r.setOpen(!1),setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))})))})),gt(wt(r),"onClearClick",(function(e){e&&e.preventDefault&&e.preventDefault(),r.props.selectsRange?r.props.onChange([null,null],e):r.props.onChange(null,e),r.setState({inputValue:null})})),gt(wt(r),"clear",(function(){r.onClearClick()})),gt(wt(r),"onScroll",(function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)})),gt(wt(r),"renderCalendar",(function(){return r.props.inline||r.isCalendarOpen()?ce.default.createElement(Qn,{ref:function(e){r.calendar=e},locale:r.props.locale,calendarStartDay:r.props.calendarStartDay,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,shouldFocusDayInline:r.state.shouldFocusDayInline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,showPreviousMonths:r.props.showPreviousMonths,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:Kn,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,weekDayClassName:r.props.weekDayClassName,monthClassName:r.props.monthClassName,timeClassName:r.props.timeClassName,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearItemNumber:r.props.yearItemNumber,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthAriaLabel:r.props.previousMonthAriaLabel,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthAriaLabel:r.props.nextMonthAriaLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,previousYearAriaLabel:r.props.previousYearAriaLabel,previousYearButtonLabel:r.props.previousYearButtonLabel,nextYearAriaLabel:r.props.nextYearAriaLabel,nextYearButtonLabel:r.props.nextYearButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showPopperArrow:r.props.showPopperArrow,excludeScrollbar:r.props.excludeScrollbar,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,isInputFocused:r.state.focused,customTimeInput:r.props.customTimeInput,setPreSelection:r.setPreSelection},r.props.children):null})),gt(wt(r),"renderDateInput",(function(){var e,t=de.default(r.props.className,gt({},Kn,r.state.open)),n=r.props.customInput||ce.default.createElement("input",{type:"text"}),i=r.props.customInputRef||"ref",a="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:r.props.selectsRange?function(e,t,n){if(!e)return"";var r=Rt(e,n),i=t?Rt(t,n):"";return"".concat(r," - ").concat(i)}(r.props.startDate,r.props.endDate,r.props):Rt(r.props.selected,r.props);return ce.default.cloneElement(n,(gt(e={},i,(function(e){r.input=e})),gt(e,"value",a),gt(e,"onBlur",r.handleBlur),gt(e,"onChange",r.handleChange),gt(e,"onClick",r.onInputClick),gt(e,"onFocus",r.handleFocus),gt(e,"onKeyDown",r.onInputKeyDown),gt(e,"id",r.props.id),gt(e,"name",r.props.name),gt(e,"autoFocus",r.props.autoFocus),gt(e,"placeholder",r.props.placeholderText),gt(e,"disabled",r.props.disabled),gt(e,"autoComplete",r.props.autoComplete),gt(e,"className",de.default(n.props.className,t)),gt(e,"title",r.props.title),gt(e,"readOnly",r.props.readOnly),gt(e,"required",r.props.required),gt(e,"tabIndex",r.props.tabIndex),gt(e,"aria-describedby",r.props.ariaDescribedBy),gt(e,"aria-invalid",r.props.ariaInvalid),gt(e,"aria-labelledby",r.props.ariaLabelledBy),gt(e,"aria-required",r.props.ariaRequired),e))})),gt(wt(r),"renderClearButton",(function(){var e=r.props,t=e.isClearable,n=e.selected,i=e.startDate,a=e.endDate,o=e.clearButtonTitle,s=e.clearButtonClassName,l=void 0===s?"":s,u=e.ariaLabelClose,c=void 0===u?"Close":u;return!t||null==n&&null==i&&null==a?null:ce.default.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(l).trim(),"aria-label":c,onClick:r.onClearClick,title:o,tabIndex:-1})})),r.state=r.calcInitialState(),r}return vt(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?Pe.default(n)!==Pe.default(r)||De.default(n)!==De.default(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:xn(this.props.highlightDates)}),t.focused||Kt(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){return ce.default.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?ce.default.createElement("div",{className:"react-datepicker__portal"},e):null;return this.state.open&&this.props.portalId&&(t=ce.default.createElement(Zn,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),ce.default.createElement("div",null,this.renderInputContainer(),t)}return ce.default.createElement(Gn,{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:e,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:Nt,renderDayContents:function(e){return e},focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(ce.default.Component),Jn="input",er="navigate";e.CalendarContainer=Vn,e.default=$n,e.getDefaultLocale=Xt,e.registerLocale=function(e,t){var n="undefined"!=typeof window?window:globalThis;n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:globalThis).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(9867),n(8731),n(4758),n(6238),n(6663),n(2612),n(1489),n(6869),n(9996),n(3923),n(1437),n(3159),n(5101),n(9316),n(1776),n(3824),n(1454),n(1461),n(1002),n(6038),n(7518),n(5955),n(1477),n(4073),n(1523),n(2620),n(8603),n(3558),n(9964),n(7436),n(9462),n(9374),n(3197),n(4548),n(471),n(3),n(3514),n(2228),n(6312),n(7308),n(121),n(9279),n(93),n(356),n(410),n(3358),n(3712),n(4829),n(5560),n(6776),n(2201),n(3138),n(171),n(8601),n(1328),n(4773),n(2952),n(1648),n(4892),n(2928),n(8544),n(5088))},9772:function(e,t,n){"use strict";var r=n(9867),i=n(5443),a=n(2882);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var s=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,p={},m={};function v(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,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(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(m,e)||!h.call(p,e)&&(f.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=60103,k=60106,C=60107,S=60108,E=60114,M=60109,T=60110,O=60112,N=60113,P=60120,j=60115,D=60116,L=60121,A=60128,R=60129,I=60130,z=60131;if("function"===typeof Symbol&&Symbol.for){var F=Symbol.for;w=F("react.element"),k=F("react.portal"),C=F("react.fragment"),S=F("react.strict_mode"),E=F("react.profiler"),M=F("react.provider"),T=F("react.context"),O=F("react.forward_ref"),N=F("react.suspense"),P=F("react.suspense_list"),j=F("react.memo"),D=F("react.lazy"),L=F("react.block"),F("react.scope"),A=F("react.opaque.id"),R=F("react.debug_trace_mode"),I=F("react.offscreen"),z=F("react.legacy_hidden")}var U,B="function"===typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=B&&e[B]||e["@@iterator"])?e:null}function H(e){if(void 0===U)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var W=!1;function Z(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var i=l.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function Y(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=Z(e.type,!1);case 11:return e=Z(e.type.render,!1);case 22:return e=Z(e.type._render,!1);case 1:return e=Z(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case C:return"Fragment";case k:return"Portal";case E:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case M:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case j:return q(e.type);case L:return q(e._render);case D:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&$(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ue(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",fe="http://www.w3.org/2000/svg";function he(e){switch(e){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 pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==fe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!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},be=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function _e(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var we=i({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 ke(e,t){if(t){if(we[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function Ce(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){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}}function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Me=null,Te=null;function Oe(e){if(e=Jr(e)){if("function"!==typeof Ee)throw Error(o(280));var t=e.stateNode;t&&(t=ti(t),Ee(e.stateNode,e.type,t))}}function Ne(e){Me?Te?Te.push(e):Te=[e]:Me=e}function Pe(){if(Me){var e=Me,t=Te;if(Te=Me=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function je(e,t){return e(t)}function De(e,t,n,r,i){return e(t,n,r,i)}function Le(){}var Ae=je,Re=!1,Ie=!1;function ze(){null===Me&&null===Te||(Le(),Pe())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=ti(n);if(null===r)return null;n=r[t];e:switch(t){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)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Ue=!1;if(d)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(lu){Ue=!1}function Ve(e,t,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var He=!1,We=null,Ze=!1,Ye=null,qe={onError:function(e){He=!0,We=e}};function Ge(e,t,n,r,i,a,o,s,l){He=!1,We=null,Ve.apply(qe,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ke(e)!==e)throw Error(o(188))}function $e(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Xe(i),e;if(a===r)return Xe(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Je(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,at=[],ot=null,st=null,lt=null,ut=new Map,ct=new Map,dt=[],ft="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 ht(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function pt(e,t){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=ht(t,n,r,i,a),null!==t&&(null!==(t=Jr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=$r(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){gt(e)&&n.delete(t)}function bt(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==ot&>(ot)&&(ot=null),null!==st&>(st)&&(st=null),null!==lt&>(lt)&&(lt=null),ut.forEach(yt),ct.forEach(yt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,bt)))}function _t(e){function t(t){return xt(t,e)}if(0<at.length){xt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ot&&xt(ot,e),null!==st&&xt(st,e),null!==lt&&xt(lt,e),ut.forEach(t),ct.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)vt(n),null===n.blockedOn&&dt.shift()}function wt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kt={animationend:wt("Animation","AnimationEnd"),animationiteration:wt("Animation","AnimationIteration"),animationstart:wt("Animation","AnimationStart"),transitionend:wt("Transition","TransitionEnd")},Ct={},St={};function Et(e){if(Ct[e])return Ct[e];if(!kt[e])return e;var t,n=kt[e];for(t in n)if(n.hasOwnProperty(t)&&t in St)return Ct[e]=n[t];return e}d&&(St=document.createElement("div").style,"AnimationEvent"in window||(delete kt.animationend.animation,delete kt.animationiteration.animation,delete kt.animationstart.animation),"TransitionEvent"in window||delete kt.transitionend.transition);var Mt=Et("animationend"),Tt=Et("animationiteration"),Ot=Et("animationstart"),Nt=Et("transitionend"),Pt=new Map,jt=new Map,Dt=["abort","abort",Mt,"animationEnd",Tt,"animationIteration",Ot,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Nt,"transitionEnd","waiting","waiting"];function Lt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),jt.set(r,t),Pt.set(r,i),u(i,[r])}}(0,a.unstable_now)();var At=8;function Rt(e){if(0!==(1&e))return At=15,1;if(0!==(2&e))return At=14,2;if(0!==(4&e))return At=13,4;var t=24&e;return 0!==t?(At=12,t):0!==(32&e)?(At=11,32):0!==(t=192&e)?(At=10,t):0!==(256&e)?(At=9,256):0!==(t=3584&e)?(At=8,t):0!==(4096&e)?(At=7,4096):0!==(t=4186112&e)?(At=6,t):0!==(t=62914560&e)?(At=5,t):67108864&e?(At=4,67108864):0!==(134217728&e)?(At=3,134217728):0!==(t=805306368&e)?(At=2,t):0!==(1073741824&e)?(At=1,1073741824):(At=8,e)}function It(e,t){var n=e.pendingLanes;if(0===n)return At=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=At=15;else if(0!==(a=134217727&n)){var l=a&~o;0!==l?(r=Rt(l),i=At):0!==(s&=a)&&(r=Rt(s),i=At)}else 0!==(a=n&~o)?(r=Rt(a),i=At):0!==s&&(r=Rt(s),i=At);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&o)){if(Rt(t),i<=At)return t;At=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Ht(t)),r|=e[n],t&=~i;return r}function zt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Ft(10,t):e;case 10:return 0===(e=Ut(192&~t))?Ft(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function Ut(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/Zt|0)|0},Wt=Math.log,Zt=Math.LN2;var Yt=a.unstable_UserBlockingPriority,qt=a.unstable_runWithPriority,Gt=!0;function Kt(e,t,n,r){Re||Le();var i=Xt,a=Re;Re=!0;try{De(i,e,t,n,r)}finally{(Re=a)||ze()}}function Qt(e,t,n,r){qt(Yt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var i;if(Gt)if((i=0===(4&t))&&0<at.length&&-1<ft.indexOf(e))e=ht(null,e,t,n,r),at.push(e);else{var a=$t(e,t,n,r);if(null===a)i&&pt(e,r);else{if(i){if(-1<ft.indexOf(e))return e=ht(a,e,t,n,r),void at.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return ot=mt(ot,e,t,n,r,i),!0;case"dragenter":return st=mt(st,e,t,n,r,i),!0;case"mouseover":return lt=mt(lt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ut.set(a,mt(ut.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,ct.set(a,mt(ct.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;pt(e,r)}Pr(e,t,r,null,n)}}}function $t(e,t,n,r){var i=Se(r);if(null!==(i=$r(i))){var a=Ke(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Qe(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Pr(e,t,r,i,n),null}var Jt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Jt?Jt.value:Jt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function on(){return!1}function sn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?an:on,this.isPropagationStopped=on,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var ln,un,cn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=sn(dn),hn=i({},dn,{view:0,detail:0}),pn=sn(hn),mn=i({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(ln=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=ln=0,cn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:un}}),vn=sn(mn),gn=sn(i({},mn,{dataTransfer:0})),yn=sn(i({},hn,{relatedTarget:0})),bn=sn(i({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=sn(i({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),_n=sn(i({},dn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={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"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function En(){return Sn}var Mn=sn(i({},hn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Tn=sn(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=sn(i({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Nn=sn(i({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=sn(i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),jn=[9,13,27,32],Dn=d&&"CompositionEvent"in window,Ln=null;d&&"documentMode"in document&&(Ln=document.documentMode);var An=d&&"TextEvent"in window&&!Ln,Rn=d&&(!Dn||Ln&&8<Ln&&11>=Ln),In=String.fromCharCode(32),zn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Vn={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Wn(e,t,n,r){Ne(r),0<(t=Dr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Yn=null;function qn(e){Sr(e,0)}function Gn(e){if(X(ei(e)))return e}function Kn(e,t){if("change"===e)return t}var Qn=!1;if(d){var Xn;if(d){var $n="oninput"in document;if(!$n){var Jn=document.createElement("div");Jn.setAttribute("oninput","return;"),$n="function"===typeof Jn.oninput}Xn=$n}else Xn=!1;Qn=Xn&&(!document.documentMode||9<document.documentMode)}function er(){Zn&&(Zn.detachEvent("onpropertychange",tr),Yn=Zn=null)}function tr(e){if("value"===e.propertyName&&Gn(Yn)){var t=[];if(Wn(t,Yn,e,Se(e)),e=qn,Re)e(t);else{Re=!0;try{je(e,t)}finally{Re=!1,ze()}}}}function nr(e,t,n){"focusin"===e?(er(),Yn=n,(Zn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Yn)}function ir(e,t){if("click"===e)return Gn(t)}function ar(e,t){if("input"===e||"change"===e)return Gn(t)}var or="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},sr=Object.prototype.hasOwnProperty;function lr(e,t){if(or(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!sr.call(t,n[r])||!or(e[n[r]],t[n[r]]))return!1;return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=$();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=$((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=d&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,gr=null,yr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==mr||mr!==$(r)||("selectionStart"in(r=mr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&lr(gr,r)||(gr=r,0<(r=Dr(vr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}Lt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Lt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Lt(Dt,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<xr.length;_r++)jt.set(xr[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(Ge.apply(this,arguments),He){if(!He)throw Error(o(198));var c=We;He=!1,We=null,Ze||(Ze=!0,Ye=c)}}(r,t,void 0,e),e.currentTarget=null}function Sr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;Cr(i,s,u),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;Cr(i,s,u),a=l}}}if(Ze)throw e=Ye,Ze=!1,Ye=null,e}function Er(e,t){var n=ni(t),r=e+"__bubble";n.has(r)||(Nr(t,e,2,!1),n.add(r))}var Mr="_reactListening"+Math.random().toString(36).slice(2);function Tr(e){e[Mr]||(e[Mr]=!0,s.forEach((function(t){kr.has(t)||Or(t,!1,e,null),Or(t,!0,e,null)})))}function Or(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ni(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),Nr(a,e,i,t),o.add(s))}function Nr(e,t,n,r){var i=jt.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Qt;break;default:i=Xt}n=i.bind(null,t,n,e),i=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Pr(e,t,n,r,i){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=$r(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Ie)return e(t,n);Ie=!0;try{Ae(e,t,n)}finally{Ie=!1,ze()}}((function(){var r=a,i=Se(n),o=[];e:{var s=Pt.get(e);if(void 0!==s){var l=fn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=Mn;break;case"focusin":u="focus",l=yn;break;case"focusout":u="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=On;break;case Mt:case Tt:case Ot:l=bn;break;case Nt:l=Nn;break;case"scroll":l=pn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=0!==(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=Fe(p,f))&&c.push(jr(p,m,h)))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(u=n.relatedTarget||n.fromElement)||!$r(u)&&!u[Qr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?$r(u):null)&&(u!==(d=Ke(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=vn,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:ei(l),h=null==u?s:ei(u),(s=new c(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,$r(i)===r&&((c=new c(f,p+"enter",u,n,i)).target=h,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,p=0,h=c=l;h;h=Lr(h))p++;for(h=0,m=f;m;m=Lr(m))h++;for(;0<p-h;)c=Lr(c),p--;for(;0<h-p;)f=Lr(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=Lr(c),f=Lr(f)}c=null}else c=null;null!==l&&Ar(o,s,l,c,!1),null!==u&&null!==d&&Ar(o,d,u,c,!0)}if("select"===(l=(s=r?ei(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Kn;else if(Hn(s))if(Qn)v=ar;else{v=rr;var g=nr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ir);switch(v&&(v=v(e,r))?Wn(o,v,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ie(s,"number",s.value)),g=r?ei(r):window,e){case"focusin":(Hn(g)||"true"===g.contentEditable)&&(mr=g,vr=r,gr=null);break;case"focusout":gr=vr=mr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,br(o,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":br(o,n,i)}var y;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Rn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=nn()):(en="value"in(Jt=i)?Jt.value:Jt.textContent,Bn=!0)),0<(g=Dr(r,b)).length&&(b=new _n(b,e,null,n,i),o.push({event:b,listeners:g}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=An?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(zn=!0,In);case"textInput":return(e=t.data)===In&&zn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Dn&&Fn(e,t)?(e=nn(),tn=en=Jt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Dr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=y))}Sr(o,t)}))}function jr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Fe(e,n))&&r.unshift(jr(e,a,i)),null!=(a=Fe(e,t))&&r.push(jr(e,a,i))),e=e.return}return r}function Lr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ar(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Fe(n,a))&&o.unshift(jr(n,l,s)):i||null!=(l=Fe(n,a))&&o.push(jr(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Rr(){}var Ir=null,zr=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ur(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Br="function"===typeof setTimeout?setTimeout:void 0,Vr="function"===typeof clearTimeout?clearTimeout:void 0;function Hr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Zr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Yr=0;var qr=Math.random().toString(36).slice(2),Gr="__reactFiber$"+qr,Kr="__reactProps$"+qr,Qr="__reactContainer$"+qr,Xr="__reactEvents$"+qr;function $r(e){var t=e[Gr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qr]||n[Gr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Zr(e);null!==e;){if(n=e[Gr])return n;e=Zr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[Gr]||e[Qr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ei(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ti(e){return e[Kr]||null}function ni(e){var t=e[Xr];return void 0===t&&(t=e[Xr]=new Set),t}var ri=[],ii=-1;function ai(e){return{current:e}}function oi(e){0>ii||(e.current=ri[ii],ri[ii]=null,ii--)}function si(e,t){ii++,ri[ii]=e.current,e.current=t}var li={},ui=ai(li),ci=ai(!1),di=li;function fi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function hi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function pi(){oi(ci),oi(ui)}function mi(e,t,n){if(ui.current!==li)throw Error(o(168));si(ui,t),si(ci,n)}function vi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,q(t)||"Unknown",a));return i({},n,r)}function gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,di=ui.current,si(ui,e),si(ci,ci.current),!0}function yi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=vi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,oi(ci),oi(ui),si(ui,e)):oi(ci),si(ci,n)}var bi=null,xi=null,_i=a.unstable_runWithPriority,wi=a.unstable_scheduleCallback,ki=a.unstable_cancelCallback,Ci=a.unstable_shouldYield,Si=a.unstable_requestPaint,Ei=a.unstable_now,Mi=a.unstable_getCurrentPriorityLevel,Ti=a.unstable_ImmediatePriority,Oi=a.unstable_UserBlockingPriority,Ni=a.unstable_NormalPriority,Pi=a.unstable_LowPriority,ji=a.unstable_IdlePriority,Di={},Li=void 0!==Si?Si:function(){},Ai=null,Ri=null,Ii=!1,zi=Ei(),Fi=1e4>zi?Ei:function(){return Ei()-zi};function Ui(){switch(Mi()){case Ti:return 99;case Oi:return 98;case Ni:return 97;case Pi:return 96;case ji:return 95;default:throw Error(o(332))}}function Bi(e){switch(e){case 99:return Ti;case 98:return Oi;case 97:return Ni;case 96:return Pi;case 95:return ji;default:throw Error(o(332))}}function Vi(e,t){return e=Bi(e),_i(e,t)}function Hi(e,t,n){return e=Bi(e),wi(e,t,n)}function Wi(){if(null!==Ri){var e=Ri;Ri=null,ki(e)}Zi()}function Zi(){if(!Ii&&null!==Ai){Ii=!0;var e=0;try{var t=Ai;Vi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ai=null}catch(n){throw null!==Ai&&(Ai=Ai.slice(e+1)),wi(Ti,Wi),n}finally{Ii=!1}}}var Yi=_.ReactCurrentBatchConfig;function qi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Gi=ai(null),Ki=null,Qi=null,Xi=null;function $i(){Xi=Qi=Ki=null}function Ji(e){var t=Gi.current;oi(Gi),e.type._context._currentValue=t}function ea(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ta(e,t){Ki=e,Xi=Qi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Do=!0),e.firstContext=null)}function na(e,t){if(Xi!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Xi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qi){if(null===Ki)throw Error(o(308));Qi=t,Ki.dependencies={lanes:0,firstContext:t,responders:null}}else Qi=Qi.next=t;return e._currentValue}var ra=!1;function ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function aa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sa(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function la(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ua(e,t,n,r){var a=e.updateQueue;ra=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?o=c:s.next=c,s=u;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=c:f.next=c,d.lastBaseUpdate=u)}}if(null!==o){for(f=a.baseState,s=0,d=c=u=null;;){l=o.lane;var h=o.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,m=o;switch(l=t,h=n,m.tag){case 1:if("function"===typeof(p=m.payload)){f=p.call(h,f,l);break e}f=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null===(l="function"===typeof(p=m.payload)?p.call(h,f,l):p)||void 0===l)break e;f=i({},f,l);break e;case 2:ra=!0}}null!==o.callback&&(e.flags|=32,null===(l=a.effects)?a.effects=[o]:l.push(o))}else h={eventTime:h,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===d?(c=d=h,u=f):d=d.next=h,s|=l;if(null===(o=o.next)){if(null===(l=a.shared.pending))break;o=l.next,l.next=null,a.lastBaseUpdate=l,a.shared.pending=null}}null===d&&(u=f),a.baseState=u,a.firstBaseUpdate=c,a.lastBaseUpdate=d,Is|=s,e.lanes=s,e.memoizedState=f}}function ca(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var da=(new r.Component).refs;function fa(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ha={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ll(),i=ul(e),a=oa(r,i);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),sa(e,a),cl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ll(),i=ul(e),a=oa(r,i);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),sa(e,a),cl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ll(),r=ul(e),i=oa(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),sa(e,i),cl(e,r,n)}};function pa(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,a))}function ma(e,t,n){var r=!1,i=li,a=t.contextType;return"object"===typeof a&&null!==a?a=na(a):(i=hi(t)?di:ui.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?fi(e,i):li),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ha,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function va(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ha.enqueueReplaceState(t,t.state,null)}function ga(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=da,ia(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=na(a):(a=hi(t)?di:ui.current,i.context=fi(e,a)),ua(e,n,i,r),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(fa(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ha.enqueueReplaceState(i,i.state,null),ua(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var ya=Array.isArray;function ba(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===da&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function xa(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _a(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Vl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Yl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=ba(e,t,n),r.return=e,r):((r=Hl(n.type,n.key,n.props,null,e.mode,r)).ref=ba(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ql(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Wl(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Yl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Hl(t.type,t.key,t.props,null,e.mode,n)).ref=ba(e,null,t),n.return=e,n;case k:return(t=ql(t,e.mode,n)).return=e,t}if(ya(t)||V(t))return(t=Wl(t,e.mode,n,null)).return=e,t;xa(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?n.type===C?d(e,t,n.props.children,r,i):u(e,t,n,r):null;case k:return n.key===i?c(e,t,n,r):null}if(ya(n)||V(n))return null!==i?null:d(e,t,n,r,null);xa(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return e=e.get(null===r.key?n:r.key)||null,r.type===C?d(t,e,r.props.children,i,r.key):u(t,e,r,i);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ya(r)||V(r))return d(t,e=e.get(n)||null,r,i,null);xa(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,d=o,m=o=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=h(i,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(i,d),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g,d=v}if(m===s.length)return n(i,d),u;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(i,d);m<s.length;m++)null!==(v=p(d,i,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach((function(e){return t(i,e)})),u}function v(i,s,l,u){var c=V(l);if("function"!==typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var d=c=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=h(i,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,v),null===d?c=b:d.sibling=b,d=b,m=g}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,v),null===d?c=y:d.sibling=y,d=y);return c}for(m=r(i,m);!y.done;v++,y=l.next())null!==(y=p(m,i,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=a(y,s,v),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,a,l){var u="object"===typeof a&&null!==a&&a.type===C&&null===a.key;u&&(a=a.props.children);var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case w:e:{for(c=a.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(a.type===C){n(e,u.sibling),(r=i(u,a.props.children)).return=e,e=r;break e}}else if(u.elementType===a.type){n(e,u.sibling),(r=i(u,a.props)).ref=ba(e,u,a),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===C?((r=Wl(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=Hl(a.type,a.key,a.props,null,e.mode,l)).ref=ba(e,r,a),l.return=e,e=l)}return s(e);case k:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=ql(a,e.mode,l)).return=e,e=r}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=Yl(a,e.mode,l)).return=e,e=r),s(e);if(ya(a))return m(e,r,a,l);if(V(a))return v(e,r,a,l);if(c&&xa(e,a),"undefined"===typeof a&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,q(e.type)||"Component"))}return n(e,r)}}var wa=_a(!0),ka=_a(!1),Ca={},Sa=ai(Ca),Ea=ai(Ca),Ma=ai(Ca);function Ta(e){if(e===Ca)throw Error(o(174));return e}function Oa(e,t){switch(si(Ma,t),si(Ea,e),si(Sa,Ca),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}oi(Sa),si(Sa,t)}function Na(){oi(Sa),oi(Ea),oi(Ma)}function Pa(e){Ta(Ma.current);var t=Ta(Sa.current),n=pe(t,e.type);t!==n&&(si(Ea,e),si(Sa,n))}function ja(e){Ea.current===e&&(oi(Sa),oi(Ea))}var Da=ai(0);function La(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Aa=null,Ra=null,Ia=!1;function za(e,t){var n=Ul(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Fa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ua(e){if(Ia){var t=Ra;if(t){var n=t;if(!Fa(e,t)){if(!(t=Wr(n.nextSibling))||!Fa(e,t))return e.flags=-1025&e.flags|2,Ia=!1,void(Aa=e);za(Aa,n)}Aa=e,Ra=Wr(t.firstChild)}else e.flags=-1025&e.flags|2,Ia=!1,Aa=e}}function Ba(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Aa=e}function Va(e){if(e!==Aa)return!1;if(!Ia)return Ba(e),Ia=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ur(t,e.memoizedProps))for(t=Ra;t;)za(e,t),t=Wr(t.nextSibling);if(Ba(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ra=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ra=null}}else Ra=Aa?Wr(e.stateNode.nextSibling):null;return!0}function Ha(){Ra=Aa=null,Ia=!1}var Wa=[];function Za(){for(var e=0;e<Wa.length;e++)Wa[e]._workInProgressVersionPrimary=null;Wa.length=0}var Ya=_.ReactCurrentDispatcher,qa=_.ReactCurrentBatchConfig,Ga=0,Ka=null,Qa=null,Xa=null,$a=!1,Ja=!1;function eo(){throw Error(o(321))}function to(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function no(e,t,n,r,i,a){if(Ga=a,Ka=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ya.current=null===e||null===e.memoizedState?Oo:No,e=n(r,i),Ja){a=0;do{if(Ja=!1,!(25>a))throw Error(o(301));a+=1,Xa=Qa=null,t.updateQueue=null,Ya.current=Po,e=n(r,i)}while(Ja)}if(Ya.current=To,t=null!==Qa&&null!==Qa.next,Ga=0,Xa=Qa=Ka=null,$a=!1,t)throw Error(o(300));return e}function ro(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Xa?Ka.memoizedState=Xa=e:Xa=Xa.next=e,Xa}function io(){if(null===Qa){var e=Ka.alternate;e=null!==e?e.memoizedState:null}else e=Qa.next;var t=null===Xa?Ka.memoizedState:Xa.next;if(null!==t)Xa=t,Qa=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Qa=e).memoizedState,baseState:Qa.baseState,baseQueue:Qa.baseQueue,queue:Qa.queue,next:null},null===Xa?Ka.memoizedState=Xa=e:Xa=Xa.next=e}return Xa}function ao(e,t){return"function"===typeof t?t(e):t}function oo(e){var t=io(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Qa,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=a=null,u=i;do{var c=u.lane;if((Ga&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,Ka.lanes|=c,Is|=c}u=u.next}while(null!==u&&u!==i);null===l?a=r:l.next=s,or(r,t.memoizedState)||(Do=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function so(e){var t=io(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);or(a,t.memoizedState)||(Do=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function lo(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Ga&e)===e)&&(t._workInProgressVersionPrimary=r,Wa.push(t))),e)return n(t._source);throw Wa.push(t),Error(o(350))}function uo(e,t,n,r){var i=Os;if(null===i)throw Error(o(349));var a=t._getVersion,s=a(t._source),l=Ya.current,u=l.useState((function(){return lo(i,t,n)})),c=u[1],d=u[0];u=Xa;var f=e.memoizedState,h=f.refs,p=h.getSnapshot,m=f.source;f=f.subscribe;var v=Ka;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect((function(){h.getSnapshot=n,h.setSnapshot=c;var e=a(t._source);if(!or(s,e)){e=n(t._source),or(d,e)||(c(e),e=ul(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,o=e;0<o;){var l=31-Ht(o),u=1<<l;r[l]|=e,o&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=ul(v);i.mutableReadLanes|=r&i.pendingLanes}catch(a){n((function(){throw a}))}}))}),[t,r]),or(p,n)&&or(m,t)&&or(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ao,lastRenderedState:d}).dispatch=c=Mo.bind(null,Ka,e),u.queue=e,u.baseQueue=null,d=lo(i,t,n),u.memoizedState=u.baseState=d),d}function co(e,t,n){return uo(io(),e,t,n)}function fo(e){var t=ro();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ao,lastRenderedState:e}).dispatch=Mo.bind(null,Ka,e),[t.memoizedState,e]}function ho(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ka.updateQueue)?(t={lastEffect:null},Ka.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function po(e){return e={current:e},ro().memoizedState=e}function mo(){return io().memoizedState}function vo(e,t,n,r){var i=ro();Ka.flags|=e,i.memoizedState=ho(1|t,n,void 0,void 0===r?null:r)}function go(e,t,n,r){var i=io();r=void 0===r?null:r;var a=void 0;if(null!==Qa){var o=Qa.memoizedState;if(a=o.destroy,null!==r&&to(r,o.deps))return void ho(t,n,a,r)}Ka.flags|=e,i.memoizedState=ho(1|t,n,a,r)}function yo(e,t){return vo(516,4,e,t)}function bo(e,t){return go(516,4,e,t)}function xo(e,t){return go(4,2,e,t)}function _o(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function wo(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,go(4,2,_o.bind(null,t,e),n)}function ko(){}function Co(e,t){var n=io();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&to(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function So(e,t){var n=io();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&to(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Eo(e,t){var n=Ui();Vi(98>n?98:n,(function(){e(!0)})),Vi(97<n?97:n,(function(){var n=qa.transition;qa.transition=1;try{e(!1),t()}finally{qa.transition=n}}))}function Mo(e,t,n){var r=ll(),i=ul(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Ka||null!==o&&o===Ka)Ja=$a=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=o(s,n);if(a.eagerReducer=o,a.eagerState=l,or(l,s))return}catch(u){}cl(e,i,r)}}var To={readContext:na,useCallback:eo,useContext:eo,useEffect:eo,useImperativeHandle:eo,useLayoutEffect:eo,useMemo:eo,useReducer:eo,useRef:eo,useState:eo,useDebugValue:eo,useDeferredValue:eo,useTransition:eo,useMutableSource:eo,useOpaqueIdentifier:eo,unstable_isNewReconciler:!1},Oo={readContext:na,useCallback:function(e,t){return ro().memoizedState=[e,void 0===t?null:t],e},useContext:na,useEffect:yo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,vo(4,2,_o.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vo(4,2,e,t)},useMemo:function(e,t){var n=ro();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ro();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Mo.bind(null,Ka,e),[r.memoizedState,e]},useRef:po,useState:fo,useDebugValue:ko,useDeferredValue:function(e){var t=fo(e),n=t[0],r=t[1];return yo((function(){var t=qa.transition;qa.transition=1;try{r(e)}finally{qa.transition=t}}),[e]),n},useTransition:function(){var e=fo(!1),t=e[0];return po(e=Eo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ro();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},uo(r,e,t,n)},useOpaqueIdentifier:function(){if(Ia){var e=!1,t=function(e){return{$$typeof:A,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Yr++).toString(36))),Error(o(355))})),n=fo(t)[1];return 0===(2&Ka.mode)&&(Ka.flags|=516,ho(5,(function(){n("r:"+(Yr++).toString(36))}),void 0,null)),t}return fo(t="r:"+(Yr++).toString(36)),t},unstable_isNewReconciler:!1},No={readContext:na,useCallback:Co,useContext:na,useEffect:bo,useImperativeHandle:wo,useLayoutEffect:xo,useMemo:So,useReducer:oo,useRef:mo,useState:function(){return oo(ao)},useDebugValue:ko,useDeferredValue:function(e){var t=oo(ao),n=t[0],r=t[1];return bo((function(){var t=qa.transition;qa.transition=1;try{r(e)}finally{qa.transition=t}}),[e]),n},useTransition:function(){var e=oo(ao)[0];return[mo().current,e]},useMutableSource:co,useOpaqueIdentifier:function(){return oo(ao)[0]},unstable_isNewReconciler:!1},Po={readContext:na,useCallback:Co,useContext:na,useEffect:bo,useImperativeHandle:wo,useLayoutEffect:xo,useMemo:So,useReducer:so,useRef:mo,useState:function(){return so(ao)},useDebugValue:ko,useDeferredValue:function(e){var t=so(ao),n=t[0],r=t[1];return bo((function(){var t=qa.transition;qa.transition=1;try{r(e)}finally{qa.transition=t}}),[e]),n},useTransition:function(){var e=so(ao)[0];return[mo().current,e]},useMutableSource:co,useOpaqueIdentifier:function(){return so(ao)[0]},unstable_isNewReconciler:!1},jo=_.ReactCurrentOwner,Do=!1;function Lo(e,t,n,r){t.child=null===e?ka(t,null,n,r):wa(t,e.child,n,r)}function Ao(e,t,n,r,i){n=n.render;var a=t.ref;return ta(t,i),r=no(e,t,n,r,a,i),null===e||Do?(t.flags|=1,Lo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ts(e,t,i))}function Ro(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!==typeof o||Bl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Hl(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Io(e,t,o,r,i,a))}return o=e.child,0===(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)?ts(e,t,a):(t.flags|=1,(e=Vl(o,r)).ref=t.ref,e.return=t,t.child=e)}function Io(e,t,n,r,i,a){if(null!==e&&lr(e.memoizedProps,r)&&e.ref===t.ref){if(Do=!1,0===(a&i))return t.lanes=e.lanes,ts(e,t,a);0!==(16384&e.flags)&&(Do=!0)}return Uo(e,t,n,r,a)}function zo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},yl(t,n);else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},yl(t,e),null;t.memoizedState={baseLanes:0},yl(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,yl(t,r);return Lo(e,t,i,n),t.child}function Fo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Uo(e,t,n,r,i){var a=hi(n)?di:ui.current;return a=fi(t,a),ta(t,i),n=no(e,t,n,r,a,i),null===e||Do?(t.flags|=1,Lo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ts(e,t,i))}function Bo(e,t,n,r,i){if(hi(n)){var a=!0;gi(t)}else a=!1;if(ta(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ma(t,n,r),ga(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;"object"===typeof u&&null!==u?u=na(u):u=fi(t,u=hi(n)?di:ui.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;d||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||l!==u)&&va(t,o,r,u),ra=!1;var f=t.memoizedState;o.state=f,ua(t,r,o,i),l=t.memoizedState,s!==r||f!==l||ci.current||ra?("function"===typeof c&&(fa(t,n,c,r),l=t.memoizedState),(s=ra||pa(t,n,s,r,f,l,u))?(d||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4)):("function"===typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"===typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,aa(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:qi(t.type,s),o.props=u,d=t.pendingProps,f=o.context,"object"===typeof(l=n.contextType)&&null!==l?l=na(l):l=fi(t,l=hi(n)?di:ui.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==d||f!==l)&&va(t,o,r,l),ra=!1,f=t.memoizedState,o.state=f,ua(t,r,o,i);var p=t.memoizedState;s!==d||f!==p||ci.current||ra?("function"===typeof h&&(fa(t,n,h,r),p=t.memoizedState),(u=ra||pa(t,n,u,r,f,p,l))?(c||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,l),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=u):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Vo(e,t,n,r,a,i)}function Vo(e,t,n,r,i,a){Fo(e,t);var o=0!==(64&t.flags);if(!r&&!o)return i&&yi(t,n,!1),ts(e,t,a);r=t.stateNode,jo.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=wa(t,e.child,null,a),t.child=wa(t,null,s,a)):Lo(e,t,s,a),t.memoizedState=r.state,i&&yi(t,n,!0),t.child}function Ho(e){var t=e.stateNode;t.pendingContext?mi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&mi(0,t.context,!1),Oa(e,t.containerInfo)}var Wo,Zo,Yo,qo={dehydrated:null,retryLane:0};function Go(e,t,n){var r,i=t.pendingProps,a=Da.current,o=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),si(Da,1&a),null===e?(void 0!==i.fallback&&Ua(t),e=i.children,a=i.fallback,o?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qo,e):"number"===typeof i.unstable_expectedLoadTime?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qo,t.lanes=33554432,e):((n=Zl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=Xo(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=qo,i):(n=Qo(e,t,i.children,n),t.memoizedState=null,n))}function Ko(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0===(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Zl(t,i,0,null),n=Wl(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Qo(e,t,n,r){var i=e.child;return e=i.sibling,n=Vl(i,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Xo(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0===(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Vl(o,s),null!==e?r=Vl(e,r):(r=Wl(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function $o(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ea(e.return,t)}function Jo(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function es(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Lo(e,t,r.children,n),0!==(2&(r=Da.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$o(e,n);else if(19===e.tag)$o(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(si(Da,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===La(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Jo(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===La(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Jo(t,!0,n,null,a,t.lastEffect);break;case"together":Jo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ts(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Is|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Vl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ns(e,t){if(!Ia)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function rs(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return hi(t.type)&&pi(),null;case 3:return Na(),oi(ci),oi(ui),Za(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Va(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:ja(t);var a=Ta(Ma.current);if(n=t.type,null!==e&&null!=t.stateNode)Zo(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Ta(Sa.current),Va(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Gr]=t,r[Kr]=s,n){case"dialog":Er("cancel",r),Er("close",r);break;case"iframe":case"object":case"embed":Er("load",r);break;case"video":case"audio":for(e=0;e<wr.length;e++)Er(wr[e],r);break;case"source":Er("error",r);break;case"img":case"image":case"link":Er("error",r),Er("load",r);break;case"details":Er("toggle",r);break;case"input":ee(r,s),Er("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Er("invalid",r);break;case"textarea":le(r,s),Er("invalid",r)}for(var u in ke(n,s),e=null,s)s.hasOwnProperty(u)&&(a=s[u],"children"===u?"string"===typeof a?r.textContent!==a&&(e=["children",a]):"number"===typeof a&&r.textContent!==""+a&&(e=["children",""+a]):l.hasOwnProperty(u)&&null!=a&&"onScroll"===u&&Er("scroll",r));switch(n){case"input":Q(r),re(r,s,!0);break;case"textarea":Q(r),ce(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Rr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===a.nodeType?a:a.ownerDocument,e===de&&(e=he(n)),e===de?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Gr]=t,e[Kr]=r,Wo(e,t),t.stateNode=e,u=Ce(n,r),n){case"dialog":Er("cancel",e),Er("close",e),a=r;break;case"iframe":case"object":case"embed":Er("load",e),a=r;break;case"video":case"audio":for(a=0;a<wr.length;a++)Er(wr[a],e);a=r;break;case"source":Er("error",e),a=r;break;case"img":case"image":case"link":Er("error",e),Er("load",e),a=r;break;case"details":Er("toggle",e),a=r;break;case"input":ee(e,r),a=J(e,r),Er("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=i({},r,{value:void 0}),Er("invalid",e);break;case"textarea":le(e,r),a=se(e,r),Er("invalid",e);break;default:a=r}ke(n,a);var c=a;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?_e(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ve(e,d):"children"===s?"string"===typeof d?("textarea"!==n||""!==d)&&ge(e,d):"number"===typeof d&&ge(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Er("scroll",e):null!=d&&x(e,s,d,u))}switch(n){case"input":Q(e),re(e,r,!1);break;case"textarea":Q(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?oe(e,!!r.multiple,s,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Rr)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Yo(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));n=Ta(Ma.current),Ta(Sa.current),Va(t)?(r=t.stateNode,n=t.memoizedProps,r[Gr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Gr]=t,t.stateNode=r)}return null;case 13:return oi(Da),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Va(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Da.current)?0===Ls&&(Ls=3):(0!==Ls&&3!==Ls||(Ls=4),null===Os||0===(134217727&Is)&&0===(134217727&zs)||pl(Os,Ps))),(r||n)&&(t.flags|=4),null);case 4:return Na(),null===e&&Tr(t.stateNode.containerInfo),null;case 10:return Ji(t),null;case 19:if(oi(Da),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(u=r.rendering))if(s)ns(r,!1);else{if(0!==Ls||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=La(e))){for(t.flags|=64,ns(r,!1),null!==(s=u.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(u=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return si(Da,1&Da.current|2),t.child}e=e.sibling}null!==r.tail&&Fi()>Vs&&(t.flags|=64,s=!0,ns(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=La(u))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ns(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Ia)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>Vs&&1073741824!==n&&(t.flags|=64,s=!0,ns(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=Da.current,si(Da,s?1&t|2:1&t),n):null;case 23:case 24:return bl(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function is(e){switch(e.tag){case 1:hi(e.type)&&pi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Na(),oi(ci),oi(ui),Za(),0!==(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return ja(e),null;case 13:return oi(Da),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return oi(Da),null;case 4:return Na(),null;case 10:return Ji(e),null;case 23:case 24:return bl(),null;default:return null}}function as(e,t){try{var n="",r=t;do{n+=Y(r),r=r.return}while(r);var i=n}catch(a){i="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:i}}function os(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Wo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Zo=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Ta(Sa.current);var o,s=null;switch(n){case"input":a=J(e,a),r=J(e,r),s=[];break;case"option":a=ae(e,a),r=ae(e,r),s=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":a=se(e,a),r=se(e,r),s=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Rr)}for(d in ke(n,r),n=null,a)if(!r.hasOwnProperty(d)&&a.hasOwnProperty(d)&&null!=a[d])if("style"===d){var u=a[d];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var c=r[d];if(u=null!=a?a[d]:void 0,r.hasOwnProperty(d)&&c!==u&&(null!=c||null!=u))if("style"===d)if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&u[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(d,c)):"children"===d?"string"!==typeof c&&"number"!==typeof c||(s=s||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Er("scroll",e),s||u===c||(s=[])):"object"===typeof c&&null!==c&&c.$$typeof===A?c.toString():(s=s||[]).push(d,c))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Yo=function(e,t,n,r){n!==r&&(t.flags|=4)};var ss="function"===typeof WeakMap?WeakMap:Map;function ls(e,t,n){(n=oa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,qs=r),os(0,t)},n}function us(e,t,n){(n=oa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return os(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this),os(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var cs="function"===typeof WeakSet?WeakSet:Set;function ds(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Rl(e,n)}else t.current=null}function fs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Hr(t.stateNode.containerInfo))}throw Error(o(163))}function hs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Dl(n,e),jl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:qi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ca(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ca(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&_t(n)))))}throw Error(o(163))}function ps(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=xe("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ms(e,t){if(xi&&"function"===typeof xi.onCommitFiberUnmount)try{xi.onCommitFiberUnmount(bi,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Dl(t,n);else{r=t;try{i()}catch(a){Rl(r,a)}}n=n.next}while(n!==e)}break;case 1:if(ds(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Rl(t,a)}break;case 5:ds(t);break;case 4:_s(e,t)}}function vs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gs(e){return 5===e.tag||3===e.tag||4===e.tag}function ys(e){e:{for(var t=e.return;null!==t;){if(gs(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?bs(e,n,t):xs(e,n,t)}function bs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Rr));else if(4!==r&&null!==(e=e.child))for(bs(e,t,n),e=e.sibling;null!==e;)bs(e,t,n),e=e.sibling}function xs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function _s(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var s=e,l=i,u=l;;)if(ms(s,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(ms(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function ws(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ce(e,i),t=Ce(e,r),i=0;i<a.length;i+=2){var s=a[i],l=a[i+1];"style"===s?_e(n,l):"dangerouslySetInnerHTML"===s?ve(n,l):"children"===s?ge(n,l):x(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?oe(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,_t(n.containerInfo)));case 13:return null!==t.memoizedState&&(Bs=Fi(),ps(t.child,!0)),void ks(t);case 19:return void ks(t);case 23:case 24:return void ps(t,null!==t.memoizedState)}throw Error(o(163))}function ks(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new cs),t.forEach((function(t){var r=zl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Cs(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ss=Math.ceil,Es=_.ReactCurrentDispatcher,Ms=_.ReactCurrentOwner,Ts=0,Os=null,Ns=null,Ps=0,js=0,Ds=ai(0),Ls=0,As=null,Rs=0,Is=0,zs=0,Fs=0,Us=null,Bs=0,Vs=1/0;function Hs(){Vs=Fi()+500}var Ws,Zs=null,Ys=!1,qs=null,Gs=null,Ks=!1,Qs=null,Xs=90,$s=[],Js=[],el=null,tl=0,nl=null,rl=-1,il=0,al=0,ol=null,sl=!1;function ll(){return 0!==(48&Ts)?Fi():-1!==rl?rl:rl=Fi()}function ul(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Ui()?1:2;if(0===il&&(il=Rs),0!==Yi.transition){0!==al&&(al=null!==Us?Us.pendingLanes:0),e=il;var t=4186112&~al;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Ui(),0!==(4&Ts)&&98===e?e=Ft(12,il):e=Ft(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),il),e}function cl(e,t,n){if(50<tl)throw tl=0,nl=null,Error(o(185));if(null===(e=dl(e,t)))return null;Vt(e,t,n),e===Os&&(zs|=t,4===Ls&&pl(e,Ps));var r=Ui();1===t?0!==(8&Ts)&&0===(48&Ts)?ml(e):(fl(e,n),0===Ts&&(Hs(),Wi())):(0===(4&Ts)||98!==r&&99!==r||(null===el?el=new Set([e]):el.add(e)),fl(e,n)),Us=e}function dl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function fl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ht(s),u=1<<l,c=a[l];if(-1===c){if(0===(u&r)||0!==(u&i)){c=t,Rt(u);var d=At;a[l]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);s&=~u}if(r=It(e,e===Os?Ps:0),t=At,0===r)null!==n&&(n!==Di&&ki(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Di&&ki(n)}15===t?(n=ml.bind(null,e),null===Ai?(Ai=[n],Ri=wi(Ti,Zi)):Ai.push(n),n=Di):14===t?n=Hi(99,ml.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),n=Hi(n,hl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function hl(e){if(rl=-1,al=il=0,0!==(48&Ts))throw Error(o(327));var t=e.callbackNode;if(Pl()&&e.callbackNode!==t)return null;var n=It(e,e===Os?Ps:0);if(0===n)return null;var r=n,i=Ts;Ts|=16;var a=wl();for(Os===e&&Ps===r||(Hs(),xl(e,r));;)try{Sl();break}catch(l){_l(e,l)}if($i(),Es.current=a,Ts=i,null!==Ns?r=0:(Os=null,Ps=0,r=Ls),0!==(Rs&zs))xl(e,0);else if(0!==r){if(2===r&&(Ts|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(n=zt(e))&&(r=kl(e,n))),1===r)throw t=As,xl(e,0),pl(e,n),fl(e,Fi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:case 5:Tl(e);break;case 3:if(pl(e,n),(62914560&n)===n&&10<(r=Bs+500-Fi())){if(0!==It(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ll(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Br(Tl.bind(null,e),r);break}Tl(e);break;case 4:if(pl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Ht(n);a=1<<s,(s=r[s])>i&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=Fi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ss(n/1960))-n)){e.timeoutHandle=Br(Tl.bind(null,e),n);break}Tl(e);break;default:throw Error(o(329))}}return fl(e,Fi()),e.callbackNode===t?hl.bind(null,e):null}function pl(e,t){for(t&=~Fs,t&=~zs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function ml(e){if(0!==(48&Ts))throw Error(o(327));if(Pl(),e===Os&&0!==(e.expiredLanes&Ps)){var t=Ps,n=kl(e,t);0!==(Rs&zs)&&(n=kl(e,t=It(e,t)))}else n=kl(e,t=It(e,0));if(0!==e.tag&&2===n&&(Ts|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(t=zt(e))&&(n=kl(e,t))),1===n)throw n=As,xl(e,0),pl(e,t),fl(e,Fi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tl(e),fl(e,Fi()),null}function vl(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(Hs(),Wi())}}function gl(e,t){var n=Ts;Ts&=-2,Ts|=8;try{return e(t)}finally{0===(Ts=n)&&(Hs(),Wi())}}function yl(e,t){si(Ds,js),js|=t,Rs|=t}function bl(){js=Ds.current,oi(Ds)}function xl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Vr(n)),null!==Ns)for(n=Ns.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&pi();break;case 3:Na(),oi(ci),oi(ui),Za();break;case 5:ja(r);break;case 4:Na();break;case 13:case 19:oi(Da);break;case 10:Ji(r);break;case 23:case 24:bl()}n=n.return}Os=e,Ns=Vl(e.current,null),Ps=js=Rs=t,Ls=0,As=null,Fs=zs=Is=0}function _l(e,t){for(;;){var n=Ns;try{if($i(),Ya.current=To,$a){for(var r=Ka.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}$a=!1}if(Ga=0,Xa=Qa=Ka=null,Ja=!1,Ms.current=null,null===n||null===n.return){Ls=1,As=t,Ns=null;break}e:{var a=e,o=n.return,s=n,l=t;if(t=Ps,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var u=l;if(0===(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!==(1&Da.current),f=o;do{var h;if(h=13===f.tag){var p=f.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var m=f.memoizedProps;h=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(h){var v=f.updateQueue;if(null===v){var g=new Set;g.add(u),f.updateQueue=g}else v.add(u);if(0===(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=oa(-1,1);y.tag=2,sa(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new ss,l=new Set,b.set(u,l)):void 0===(l=b.get(u))&&(l=new Set,b.set(u,l)),!l.has(s)){l.add(s);var x=Il.bind(null,a,u,s);u.then(x,x)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);l=Error((q(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ls&&(Ls=2),l=as(l,s),f=o;do{switch(f.tag){case 3:a=l,f.flags|=4096,t&=-t,f.lanes|=t,la(f,ls(0,a,t));break e;case 1:a=l;var _=f.type,w=f.stateNode;if(0===(64&f.flags)&&("function"===typeof _.getDerivedStateFromError||null!==w&&"function"===typeof w.componentDidCatch&&(null===Gs||!Gs.has(w)))){f.flags|=4096,t&=-t,f.lanes|=t,la(f,us(f,a,t));break e}}f=f.return}while(null!==f)}Ml(n)}catch(k){t=k,Ns===n&&null!==n&&(Ns=n=n.return);continue}break}}function wl(){var e=Es.current;return Es.current=To,null===e?To:e}function kl(e,t){var n=Ts;Ts|=16;var r=wl();for(Os===e&&Ps===t||xl(e,t);;)try{Cl();break}catch(i){_l(e,i)}if($i(),Ts=n,Es.current=r,null!==Ns)throw Error(o(261));return Os=null,Ps=0,Ls}function Cl(){for(;null!==Ns;)El(Ns)}function Sl(){for(;null!==Ns&&!Ci();)El(Ns)}function El(e){var t=Ws(e.alternate,e,js);e.memoizedProps=e.pendingProps,null===t?Ml(e):Ns=t,Ms.current=null}function Ml(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=rs(n,t,js)))return void(Ns=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&js)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=is(t)))return n.flags&=2047,void(Ns=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ns=t);Ns=t=e}while(null!==t);0===Ls&&(Ls=5)}function Tl(e){var t=Ui();return Vi(99,Ol.bind(null,e,t)),null}function Ol(e,t){do{Pl()}while(null!==Qs);if(0!==(48&Ts))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<a;){var u=31-Ht(a),c=1<<u;i[u]=0,s[u]=-1,l[u]=-1,a&=~c}if(null!==el&&0===(24&r)&&el.has(e)&&el.delete(e),e===Os&&(Ns=Os=null,Ps=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Ts,Ts|=32,Ms.current=null,Ir=Gt,hr(s=fr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,a=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(E){l=null;break e}var d=0,f=-1,h=-1,p=0,m=0,v=s,g=null;t:for(;;){for(var y;v!==l||0!==a&&3!==v.nodeType||(f=d+a),v!==u||0!==c&&3!==v.nodeType||(h=d+c),3===v.nodeType&&(d+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===s)break t;if(g===l&&++p===a&&(f=d),g===u&&++m===c&&(h=d),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}l=-1===f||-1===h?null:{start:f,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;zr={focusedElem:s,selectionRange:l},Gt=!1,ol=null,sl=!1,Zs=r;do{try{Nl()}catch(E){if(null===Zs)throw Error(o(330));Rl(Zs,E),Zs=Zs.nextEffect}}while(null!==Zs);ol=null,Zs=r;do{try{for(s=e;null!==Zs;){var b=Zs.flags;if(16&b&&ge(Zs.stateNode,""),128&b){var x=Zs.alternate;if(null!==x){var _=x.ref;null!==_&&("function"===typeof _?_(null):_.current=null)}}switch(1038&b){case 2:ys(Zs),Zs.flags&=-3;break;case 6:ys(Zs),Zs.flags&=-3,ws(Zs.alternate,Zs);break;case 1024:Zs.flags&=-1025;break;case 1028:Zs.flags&=-1025,ws(Zs.alternate,Zs);break;case 4:ws(Zs.alternate,Zs);break;case 8:_s(s,l=Zs);var w=l.alternate;vs(l),null!==w&&vs(w)}Zs=Zs.nextEffect}}catch(E){if(null===Zs)throw Error(o(330));Rl(Zs,E),Zs=Zs.nextEffect}}while(null!==Zs);if(_=zr,x=fr(),b=_.focusedElem,s=_.selectionRange,x!==b&&b&&b.ownerDocument&&dr(b.ownerDocument.documentElement,b)){null!==s&&hr(b)&&(x=s.start,void 0===(_=s.end)&&(_=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(_,b.value.length)):(_=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(_=_.getSelection(),l=b.textContent.length,w=Math.min(s.start,l),s=void 0===s.end?w:Math.min(s.end,l),!_.extend&&w>s&&(l=s,s=w,w=l),l=cr(b,w),a=cr(b,s),l&&a&&(1!==_.rangeCount||_.anchorNode!==l.node||_.anchorOffset!==l.offset||_.focusNode!==a.node||_.focusOffset!==a.offset)&&((x=x.createRange()).setStart(l.node,l.offset),_.removeAllRanges(),w>s?(_.addRange(x),_.extend(a.node,a.offset)):(x.setEnd(a.node,a.offset),_.addRange(x))))),x=[];for(_=b;_=_.parentNode;)1===_.nodeType&&x.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<x.length;b++)(_=x[b]).element.scrollLeft=_.left,_.element.scrollTop=_.top}Gt=!!Ir,zr=Ir=null,e.current=n,Zs=r;do{try{for(b=e;null!==Zs;){var k=Zs.flags;if(36&k&&hs(b,Zs.alternate,Zs),128&k){x=void 0;var C=Zs.ref;if(null!==C){var S=Zs.stateNode;Zs.tag,x=S,"function"===typeof C?C(x):C.current=x}}Zs=Zs.nextEffect}}catch(E){if(null===Zs)throw Error(o(330));Rl(Zs,E),Zs=Zs.nextEffect}}while(null!==Zs);Zs=null,Li(),Ts=i}else e.current=n;if(Ks)Ks=!1,Qs=e,Xs=t;else for(Zs=r;null!==Zs;)t=Zs.nextEffect,Zs.nextEffect=null,8&Zs.flags&&((k=Zs).sibling=null,k.stateNode=null),Zs=t;if(0===(r=e.pendingLanes)&&(Gs=null),1===r?e===nl?tl++:(tl=0,nl=e):tl=0,n=n.stateNode,xi&&"function"===typeof xi.onCommitFiberRoot)try{xi.onCommitFiberRoot(bi,n,void 0,64===(64&n.current.flags))}catch(E){}if(fl(e,Fi()),Ys)throw Ys=!1,e=qs,qs=null,e;return 0!==(8&Ts)||Wi(),null}function Nl(){for(;null!==Zs;){var e=Zs.alternate;sl||null===ol||(0!==(8&Zs.flags)?Je(Zs,ol)&&(sl=!0):13===Zs.tag&&Cs(e,Zs)&&Je(Zs,ol)&&(sl=!0));var t=Zs.flags;0!==(256&t)&&fs(e,Zs),0===(512&t)||Ks||(Ks=!0,Hi(97,(function(){return Pl(),null}))),Zs=Zs.nextEffect}}function Pl(){if(90!==Xs){var e=97<Xs?97:Xs;return Xs=90,Vi(e,Ll)}return!1}function jl(e,t){$s.push(t,e),Ks||(Ks=!0,Hi(97,(function(){return Pl(),null})))}function Dl(e,t){Js.push(t,e),Ks||(Ks=!0,Hi(97,(function(){return Pl(),null})))}function Ll(){if(null===Qs)return!1;var e=Qs;if(Qs=null,0!==(48&Ts))throw Error(o(331));var t=Ts;Ts|=32;var n=Js;Js=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"===typeof s)try{s()}catch(u){if(null===a)throw Error(o(330));Rl(a,u)}}for(n=$s,$s=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var l=i.create;i.destroy=l()}catch(u){if(null===a)throw Error(o(330));Rl(a,u)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ts=t,Wi(),!0}function Al(e,t,n){sa(e,t=ls(0,t=as(n,t),1)),t=ll(),null!==(e=dl(e,1))&&(Vt(e,1,t),fl(e,t))}function Rl(e,t){if(3===e.tag)Al(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Al(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){var i=us(n,e=as(t,e),1);if(sa(n,i),i=ll(),null!==(n=dl(n,1)))Vt(n,1,i),fl(n,i);else if("function"===typeof r.componentDidCatch&&(null===Gs||!Gs.has(r)))try{r.componentDidCatch(t,e)}catch(a){}break}}n=n.return}}function Il(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ll(),e.pingedLanes|=e.suspendedLanes&n,Os===e&&(Ps&n)===n&&(4===Ls||3===Ls&&(62914560&Ps)===Ps&&500>Fi()-Bs?xl(e,0):Fs|=n),fl(e,t)}function zl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Ui()?1:2:(0===il&&(il=Rs),0===(t=Ut(62914560&~il))&&(t=4194304))),n=ll(),null!==(e=dl(e,t))&&(Vt(e,t,n),fl(e,n))}function Fl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ul(e,t,n,r){return new Fl(e,t,n,r)}function Bl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vl(e,t){var n=e.alternate;return null===n?((n=Ul(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hl(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Bl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case C:return Wl(n.children,i,a,t);case R:s=8,i|=16;break;case S:s=8,i|=1;break;case E:return(e=Ul(12,n,t,8|i)).elementType=E,e.type=E,e.lanes=a,e;case N:return(e=Ul(13,n,t,i)).type=N,e.elementType=N,e.lanes=a,e;case P:return(e=Ul(19,n,t,i)).elementType=P,e.lanes=a,e;case I:return Zl(n,i,a,t);case z:return(e=Ul(24,n,t,i)).elementType=z,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case M:s=10;break e;case T:s=9;break e;case O:s=11;break e;case j:s=14;break e;case D:s=16,r=null;break e;case L:s=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ul(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Wl(e,t,n,r){return(e=Ul(7,e,r,t)).lanes=n,e}function Zl(e,t,n,r){return(e=Ul(23,e,r,t)).elementType=I,e.lanes=n,e}function Yl(e,t,n){return(e=Ul(6,e,null,t)).lanes=n,e}function ql(e,t,n){return(t=Ul(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Kl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Ql(e,t,n,r){var i=t.current,a=ll(),s=ul(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(hi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(o(171))}if(1===n.tag){var u=n.type;if(hi(u)){n=vi(n,u,l);break e}}n=l}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=oa(a,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),sa(i,t),cl(i,s,a),s}function Xl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $l(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Jl(e,t){$l(e,t),(e=e.alternate)&&$l(e,t)}function eu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Gl(e,t,null!=n&&!0===n.hydrate),t=Ul(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ia(t),e[Qr]=n.current,Tr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function tu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function nu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=Xl(o);s.call(e)}}Ql(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new eu(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"===typeof i){var l=i;i=function(){var e=Xl(o);l.call(e)}}gl((function(){Ql(t,o,e,i)}))}return Xl(o)}function ru(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!tu(t))throw Error(o(200));return Kl(e,t,null,n)}Ws=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ci.current)Do=!0;else{if(0===(n&r)){switch(Do=!1,t.tag){case 3:Ho(t),Ha();break;case 5:Pa(t);break;case 1:hi(t.type)&&gi(t);break;case 4:Oa(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;si(Gi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Go(e,t,n):(si(Da,1&Da.current),null!==(t=ts(e,t,n))?t.sibling:null);si(Da,1&Da.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return es(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),si(Da,Da.current),r)break;return null;case 23:case 24:return t.lanes=0,zo(e,t,n)}return ts(e,t,n)}Do=0!==(16384&e.flags)}else Do=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=fi(t,ui.current),ta(t,n),i=no(null,t,r,e,i,n),t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,hi(r)){var a=!0;gi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ia(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&fa(t,r,s,e),i.updater=ha,t.stateNode=i,i._reactInternals=t,ga(t,r,e,n),t=Vo(null,t,r,!0,a,n)}else t.tag=0,Lo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"===typeof e)return Bl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===O)return 11;if(e===j)return 14}return 2}(i),e=qi(i,e),a){case 0:t=Uo(null,t,i,e,n);break e;case 1:t=Bo(null,t,i,e,n);break e;case 11:t=Ao(null,t,i,e,n);break e;case 14:t=Ro(null,t,i,qi(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Uo(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Bo(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 3:if(Ho(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,aa(e,t),ua(t,r,null,n),(r=t.memoizedState.element)===i)Ha(),t=ts(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Ra=Wr(t.stateNode.containerInfo.firstChild),Aa=t,a=Ia=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],Wa.push(a);for(n=ka(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Lo(e,t,r,n),Ha();t=t.child}return t;case 5:return Pa(t),null===e&&Ua(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,Ur(r,i)?s=null:null!==a&&Ur(r,a)&&(t.flags|=16),Fo(e,t),Lo(e,t,s,n),t.child;case 6:return null===e&&Ua(t),null;case 13:return Go(e,t,n);case 4:return Oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wa(t,null,r,n):Lo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ao(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 7:return Lo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Lo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value;var l=t.type._context;if(si(Gi,l._currentValue),l._currentValue=a,null!==s)if(l=s.value,0===(a=or(l,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(s.children===i.children&&!ci.current){t=ts(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&a)){1===l.tag&&((c=oa(-1,n&-n)).tag=2,sa(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),ea(l.return,n),u.lanes|=n;break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Lo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,ta(t,n),r=r(i=na(i,a.unstable_observedBits)),t.flags|=1,Lo(e,t,r,n),t.child;case 14:return a=qi(i=t.type,t.pendingProps),Ro(e,t,i,a=qi(i.type,a),r,n);case 15:return Io(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,hi(r)?(e=!0,gi(t)):e=!1,ta(t,n),ma(t,r,i),ga(t,r,i,n),Vo(null,t,r,!0,e,n);case 19:return es(e,t,n);case 23:case 24:return zo(e,t,n)}throw Error(o(156,t.tag))},eu.prototype.render=function(e){Ql(e,this._internalRoot,null,null)},eu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ql(null,e,null,(function(){t[Qr]=null}))},et=function(e){13===e.tag&&(cl(e,4,ll()),Jl(e,4))},tt=function(e){13===e.tag&&(cl(e,67108864,ll()),Jl(e,67108864))},nt=function(e){if(13===e.tag){var t=ll(),n=ul(e);cl(e,n,t),Jl(e,n)}},rt=function(e,t){return t()},Ee=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ti(r);if(!i)throw Error(o(90));X(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},je=vl,De=function(e,t,n,r,i){var a=Ts;Ts|=4;try{return Vi(98,e.bind(null,t,n,r,i))}finally{0===(Ts=a)&&(Hs(),Wi())}},Le=function(){0===(49&Ts)&&(function(){if(null!==el){var e=el;el=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,fl(e,Fi())}))}Wi()}(),Pl())},Ae=function(e,t){var n=Ts;Ts|=2;try{return e(t)}finally{0===(Ts=n)&&(Hs(),Wi())}};var iu={Events:[Jr,ei,ti,Ne,Pe,Pl,{current:!1}]},au={findFiberByHostInstance:$r,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ou={bundleType:au.bundleType,version:au.version,rendererPackageName:au.rendererPackageName,rendererConfig:au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:au.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{bi=su.inject(ou),xi=su}catch(lu){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iu,t.createPortal=ru,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ts;if(0!==(48&n))return e(t);Ts|=1;try{if(e)return Vi(99,e.bind(null,t))}finally{Ts=n,Wi()}},t.hydrate=function(e,t,n){if(!tu(t))throw Error(o(200));return nu(null,e,t,!0,n)},t.render=function(e,t,n){if(!tu(t))throw Error(o(200));return nu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!tu(e))throw Error(o(40));return!!e._reactRootContainer&&(gl((function(){nu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Qr]=null}))})),!0)},t.unstable_batchedUpdates=vl,t.unstable_createPortal=function(e,t){return ru(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!tu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return nu(e,t,n,!1,r)},t.version="17.0.2"},8544:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(9772)},6847:function(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=o.length)return!1;for(l=s;0!==l--;)if(!a(e[l],o[l]))return!1;return!0}if(n&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!o.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!a(l.value[1],o.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((s=e.length)!=o.length)return!1;for(l=s;0!==l--;)if(e[l]!==o[l])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===o.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(o,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!a(e[u[l]],o[u[l]]))return!1;return!0}return e!==e&&o!==o}e.exports=function(e,t){try{return a(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},1424:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case a:case s:case o:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case l:return e;default:return t}}case i:return t}}}function w(e){return _(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||_(e)===c},t.isConcurrentMode=w,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===o},t.isSuspense=function(e){return _(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===s||e===o||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},t.typeOf=_},91:function(e,t,n){"use strict";e.exports=n(1424)},2928:function(e,t,n){"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:function(){return p}});var r=n(9867),i=n(8544);function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var l,u,c=(void 0===l&&(l=0),function(){return++l}),d={},f={},h=["touchstart","touchmove"],p="ignore-react-onclickoutside";function m(e,t){var n=null;return-1!==h.indexOf(t)&&u&&(n={passive:!e.props.preventDefault}),n}t.default=function(e,t){var n,l,h=e.displayName||e.name||"Component";return l=n=function(n){var l,p;function v(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!==typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!==typeof t.props.handleClickOutside){if("function"!==typeof t.handleClickOutside)throw new Error("WrappedComponent: "+h+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"===typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"===typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,i.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!==typeof document&&!f[r._uid]){"undefined"===typeof u&&(u=function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),f[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),d[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&s(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,d[r._uid],m(o(r),e))}))}},r.disableOnClickOutside=function(){delete f[r._uid];var e=d[r._uid];if(e&&"undefined"!==typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,m(o(r),t))})),delete d[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=c(),r}p=n,(l=v).prototype=Object.create(p.prototype),l.prototype.constructor=l,a(l,p);var g=v.prototype;return g.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},g.componentDidMount=function(){if("undefined"!==typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"===typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!==typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+h+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},g.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},g.componentWillUnmount=function(){this.disableOnClickOutside()},g.render=function(){var t=this.props;t.excludeScrollbar;var n=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,r.createElement)(e,n)},v}(r.Component),n.displayName="OnClickOutside("+h+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:p,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},l}},239:function(e,t,n){"use strict";n.d(t,{C8:function(){return i},dK:function(){return o},mq:function(){return a}});var r=n(9867),i=r.createContext(),a=r.createContext();function o(e){var t=e.children,n=r.useState(null),o=n[0],s=n[1],l=r.useRef(!1);r.useEffect((function(){return function(){l.current=!0}}),[]);var u=r.useCallback((function(e){l.current||s(e)}),[]);return r.createElement(i.Provider,{value:o},r.createElement(a.Provider,{value:u},t))}},2661:function(e,t,n){"use strict";n.d(t,{r:function(){return c}});var r=n(9867),i=n(239),a=n(6515),o=n(5086),s=function(){},l=function(){return Promise.resolve(null)},u=[];function c(e){var t=e.placement,n=void 0===t?"bottom":t,c=e.strategy,d=void 0===c?"absolute":c,f=e.modifiers,h=void 0===f?u:f,p=e.referenceElement,m=e.onFirstUpdate,v=e.innerRef,g=e.children,y=r.useContext(i.C8),b=r.useState(null),x=b[0],_=b[1],w=r.useState(null),k=w[0],C=w[1];r.useEffect((function(){(0,a.k$)(v,x)}),[v,x]);var S=r.useMemo((function(){return{placement:n,strategy:d,onFirstUpdate:m,modifiers:[].concat(h,[{name:"arrow",enabled:null!=k,options:{element:k}}])}}),[n,d,m,h,k]),E=(0,o.D)(p||y,x,S),M=E.state,T=E.styles,O=E.forceUpdate,N=E.update,P=r.useMemo((function(){return{ref:_,style:T.popper,placement:M?M.placement:n,hasPopperEscaped:M&&M.modifiersData.hide?M.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:M&&M.modifiersData.hide?M.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:T.arrow,ref:C},forceUpdate:O||s,update:N||l}}),[_,C,n,M,T,N,O]);return(0,a.$p)(g)(P)}},1354:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var r=n(9867),i=n(944),a=n.n(i),o=n(239),s=n(6515);function l(e){var t=e.children,n=e.innerRef,i=r.useContext(o.mq),l=r.useCallback((function(e){(0,s.k$)(n,e),(0,s.DL)(i,e)}),[n,i]);return r.useEffect((function(){return function(){return(0,s.k$)(n,null)}})),r.useEffect((function(){a()(Boolean(i),"`Reference` should not be used outside of a `Manager` component.")}),[i]),(0,s.$p)(t)({ref:l})}},5088:function(e,t,n){"use strict";n.r(t),n.d(t,{Manager:function(){return i.dK},Popper:function(){return r.r},Reference:function(){return a.s},usePopper:function(){return o.D}});var r=n(2661),i=n(239),a=n(1354),o=n(5086)},5086:function(e,t,n){"use strict";n.d(t,{D:function(){return be}});var r=n(9867);function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function a(e){return e instanceof i(e).Element||e instanceof Element}function o(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!==typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)}var l=Math.max,u=Math.min,c=Math.round;function d(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(o(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(r=c(n.width)/s||1),a>0&&(i=c(n.height)/a||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function f(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function p(e){return((a(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return d(p(e)).left+f(e).scrollLeft}function v(e){return i(e).getComputedStyle(e)}function g(e){var t=v(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function y(e,t,n){void 0===n&&(n=!1);var r=o(t),a=o(t)&&function(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,r=c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=p(t),l=d(e,a),u={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(r||!r&&!n)&&(("body"!==h(t)||g(s))&&(u=function(e){return e!==i(e)&&o(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:f(e);var t}(t)),o(t)?((v=d(t,!0)).x+=t.clientLeft,v.y+=t.clientTop):s&&(v.x=m(s))),{x:l.left+u.scrollLeft-v.x,y:l.top+u.scrollTop-v.y,width:l.width,height:l.height}}function b(e){var t=d(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function x(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||p(e)}function _(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:o(e)&&g(e)?e:_(x(e))}function w(e,t){var n;void 0===t&&(t=[]);var r=_(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=i(r),s=a?[o].concat(o.visualViewport||[],g(r)?r:[]):r,l=t.concat(s);return a?l:l.concat(w(x(s)))}function k(e){return["table","td","th"].indexOf(h(e))>=0}function C(e){return o(e)&&"fixed"!==v(e).position?e.offsetParent:null}function S(e){for(var t=i(e),n=C(e);n&&k(n)&&"static"===v(n).position;)n=C(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===v(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&o(e)&&"fixed"===v(e).position)return null;for(var n=x(e);o(n)&&["html","body"].indexOf(h(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var E="top",M="bottom",T="right",O="left",N="auto",P=[E,M,T,O],j="start",D="end",L="viewport",A="popper",R=P.reduce((function(e,t){return e.concat([t+"-"+j,t+"-"+D])}),[]),I=[].concat(P,[N]).reduce((function(e,t){return e.concat([t,t+"-"+j,t+"-"+D])}),[]),z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function F(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function U(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var B={placement:"bottom",modifiers:[],strategy:"absolute"};function V(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function H(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?B:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},B,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,u={state:i,setOptions:function(n){var l="function"===typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,l),i.scrollParents={reference:a(e)?w(e):e.contextElement?w(e.contextElement):[],popper:w(t)};var d=function(e){var t=F(e);return z.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=d.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"===typeof a){var o=a({state:i,name:t,instance:u,options:r}),l=function(){};s.push(o||l)}})),u.update()},forceUpdate:function(){if(!l){var e=i.elements,t=e.reference,n=e.popper;if(V(t,n)){i.rects={reference:y(t,S(n),"fixed"===i.options.strategy),popper:b(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var a=i.orderedModifiers[r],o=a.fn,s=a.options,c=void 0===s?{}:s,d=a.name;"function"===typeof o&&(i=o({state:i,options:c,name:d,instance:u})||i)}else i.reset=!1,r=-1}}},update:U((function(){return new Promise((function(e){u.forceUpdate(),e(i)}))})),destroy:function(){c(),l=!0}};if(!V(e,t))return u;function c(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var W={passive:!0};function Z(e){return e.split("-")[0]}function Y(e){return e.split("-")[1]}function q(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?Z(i):null,o=i?Y(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case E:t={x:s,y:n.y-r.height};break;case M:t={x:s,y:n.y+n.height};break;case T:t={x:n.x+n.width,y:l};break;case O:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=a?q(a):null;if(null!=u){var c="y"===u?"height":"width";switch(o){case j:t[u]=t[u]-(n[c]/2-r[c]/2);break;case D:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var K={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,h=e.isFixed,m=s.x,g=void 0===m?0:m,y=s.y,b=void 0===y?0:y,x="function"===typeof f?f({x:g,y:b}):{x:g,y:b};g=x.x,b=x.y;var _=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),k=O,C=E,N=window;if(d){var P=S(n),j="clientHeight",L="clientWidth";if(P===i(n)&&"static"!==v(P=p(n)).position&&"absolute"===l&&(j="scrollHeight",L="scrollWidth"),P=P,a===E||(a===O||a===T)&&o===D)C=M,b-=(h&&N.visualViewport?N.visualViewport.height:P[j])-r.height,b*=u?1:-1;if(a===O||(a===E||a===M)&&o===D)k=T,g-=(h&&N.visualViewport?N.visualViewport.width:P[L])-r.width,g*=u?1:-1}var A,R=Object.assign({position:l},d&&K),I=!0===f?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:c(t*r)/r||0,y:c(n*r)/r||0}}({x:g,y:b}):{x:g,y:b};return g=I.x,b=I.y,u?Object.assign({},R,((A={})[C]=w?"0":"",A[k]=_?"0":"",A.transform=(N.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",A)):Object.assign({},R,((t={})[C]=w?b+"px":"",t[k]=_?g+"px":"",t.transform="",t))}var X={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=I.reduce((function(e,n){return e[n]=function(e,t,n){var r=Z(e),i=[O,E].indexOf(r)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[O,T].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}(n,t.rects,a),e}),{}),s=o[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}},$={left:"right",right:"left",bottom:"top",top:"bottom"};function J(e){return e.replace(/left|right|bottom|top/g,(function(e){return $[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ie(e,t){return t===L?re(function(e){var t=i(e),n=p(e),r=t.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,l=0;return r&&(a=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,l=r.offsetTop)),{width:a,height:o,x:s+m(e),y:l}}(e)):a(t)?function(e){var t=d(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):re(function(e){var t,n=p(e),r=f(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=l(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=l(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+m(e),u=-r.scrollTop;return"rtl"===v(i||n).direction&&(s+=l(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}(p(e)))}function ae(e,t,n){var r="clippingParents"===t?function(e){var t=w(x(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&o(e)?S(e):e;return a(n)?t.filter((function(e){return a(e)&&ne(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),s=i[0],c=i.reduce((function(t,n){var r=ie(e,n);return t.top=l(r.top,t.top),t.right=u(r.right,t.right),t.bottom=u(r.bottom,t.bottom),t.left=l(r.left,t.left),t}),ie(e,s));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function oe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function se(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function le(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.boundary,s=void 0===o?"clippingParents":o,l=n.rootBoundary,u=void 0===l?L:l,c=n.elementContext,f=void 0===c?A:c,h=n.altBoundary,m=void 0!==h&&h,v=n.padding,g=void 0===v?0:v,y=oe("number"!==typeof g?g:se(g,P)),b=f===A?"reference":A,x=e.rects.popper,_=e.elements[m?b:f],w=ae(a(_)?_:_.contextElement||p(e.elements.popper),s,u),k=d(e.elements.reference),C=G({reference:k,element:x,strategy:"absolute",placement:i}),S=re(Object.assign({},x,C)),O=f===A?S:k,N={top:w.top-O.top+y.top,bottom:O.bottom-w.bottom+y.bottom,left:w.left-O.left+y.left,right:O.right-w.right+y.right},j=e.modifiersData.offset;if(f===A&&j){var D=j[i];Object.keys(N).forEach((function(e){var t=[T,M].indexOf(e)>=0?1:-1,n=[E,M].indexOf(e)>=0?"y":"x";N[e]+=D[n]*t}))}return N}function ue(e,t,n){return l(e,u(t,n))}var ce={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0!==o&&o,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,m=void 0===p||p,v=n.tetherOffset,g=void 0===v?0:v,y=le(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:f}),x=Z(t.placement),_=Y(t.placement),w=!_,k=q(x),C="x"===k?"y":"x",N=t.modifiersData.popperOffsets,P=t.rects.reference,D=t.rects.popper,L="function"===typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,A="number"===typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(N){if(a){var z,F="y"===k?E:O,U="y"===k?M:T,B="y"===k?"height":"width",V=N[k],H=V+y[F],W=V-y[U],G=m?-D[B]/2:0,K=_===j?P[B]:D[B],Q=_===j?-D[B]:-P[B],X=t.elements.arrow,$=m&&X?b(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[F],te=J[U],ne=ue(0,P[B],$[B]),re=w?P[B]/2-G-ne-ee-A.mainAxis:K-ne-ee-A.mainAxis,ie=w?-P[B]/2+G+ne+te+A.mainAxis:Q+ne+te+A.mainAxis,ae=t.elements.arrow&&S(t.elements.arrow),oe=ae?"y"===k?ae.clientTop||0:ae.clientLeft||0:0,se=null!=(z=null==R?void 0:R[k])?z:0,ce=V+ie-se,de=ue(m?u(H,V+re-se-oe):H,V,m?l(W,ce):W);N[k]=de,I[k]=de-V}if(s){var fe,he="x"===k?E:O,pe="x"===k?M:T,me=N[C],ve="y"===C?"height":"width",ge=me+y[he],ye=me-y[pe],be=-1!==[E,O].indexOf(x),xe=null!=(fe=null==R?void 0:R[C])?fe:0,_e=be?ge:me-P[ve]-D[ve]-xe+A.altAxis,we=be?me+P[ve]+D[ve]-xe-A.altAxis:ye,ke=m&&be?function(e,t,n){var r=ue(e,t,n);return r>n?n:r}(_e,me,we):ue(m?_e:ge,me,m?we:ye);N[C]=ke,I[C]=ke-me}t.modifiersData[r]=I}},requiresIfExists:["offset"]};var de={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Z(n.placement),l=q(s),u=[O,T].indexOf(s)>=0?"height":"width";if(a&&o){var c=function(e,t){return oe("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:se(e,P))}(i.padding,n),d=b(a),f="y"===l?E:O,h="y"===l?M:T,p=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],m=o[l]-n.rects.reference[l],v=S(a),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=p/2-m/2,x=c[f],_=g-d[u]-c[h],w=g/2-d[u]/2+y,k=ue(x,w,_),C=l;n.modifiersData[r]=((t={})[C]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&ne(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fe(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function he(e){return[E,T,M,O].some((function(t){return e[t]>=0}))}var pe=H({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=void 0===a||a,s=r.resize,l=void 0===s||s,u=i(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,W)})),l&&u.addEventListener("resize",n.update,W),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,W)})),l&&u.removeEventListener("resize",n.update,W)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=G({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,a=n.adaptive,o=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,u={placement:Z(t.placement),variation:Y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Q(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];o(i)&&h(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(r)&&h(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},X,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,v=t.options.placement,g=Z(v),y=l||(g===v||!p?[J(v)]:function(e){if(Z(e)===N)return[];var t=J(e);return[te(e),t,te(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(Z(n)===N?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?I:l,c=Y(r),d=c?s?R:R.filter((function(e){return Y(e)===c})):P,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var h=f.reduce((function(t,n){return t[n]=le(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Z(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,_=t.rects.popper,w=new Map,k=!0,C=b[0],S=0;S<b.length;S++){var D=b[S],L=Z(D),A=Y(D)===j,z=[E,M].indexOf(L)>=0,F=z?"width":"height",U=le(t,{placement:D,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),B=z?A?T:O:A?M:E;x[F]>_[F]&&(B=J(B));var V=J(B),H=[];if(a&&H.push(U[L]<=0),s&&H.push(U[B]<=0,U[V]<=0),H.every((function(e){return e}))){C=D,k=!1;break}w.set(D,H)}if(k)for(var W=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},q=p?3:1;q>0;q--){if("break"===W(q))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ce,de,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=le(t,{elementContext:"reference"}),s=le(t,{altBoundary:!0}),l=fe(o,r),u=fe(s,i,a),c=he(l),d=he(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),me=n(6847),ve=n.n(me),ge=n(6515),ye=[],be=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ye},o=r.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=o[0],l=o[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);l({styles:(0,ge.sq)(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:(0,ge.sq)(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),c=r.useMemo((function(){var e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[u,{name:"applyStyles",enabled:!1}])};return ve()(i.current,e)?i.current||e:(i.current=e,e)}),[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,u]),d=r.useRef();return(0,ge.LI)((function(){d.current&&d.current.setOptions(c)}),[c]),(0,ge.LI)((function(){if(null!=e&&null!=t){var r=(n.createPopper||pe)(e,t,c);return d.current=r,function(){r.destroy(),d.current=null}}}),[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}}},6515:function(e,t,n){"use strict";n.d(t,{$p:function(){return i},DL:function(){return a},LI:function(){return l},k$:function(){return o},sq:function(){return s}});var r=n(9867),i=function(e){return Array.isArray(e)?e[0]:e},a=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},o=function(e,t){if("function"===typeof e)return a(e,t);null!=e&&(e.current=t)},s=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},l="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect},4631:function(e,t){"use strict";var n=60103,r=60106,i=60107,a=60108,o=60114,s=60109,l=60110,u=60112,c=60113,d=60120,f=60115,h=60116,p=60121,m=60122,v=60117,g=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),a=b("react.strict_mode"),o=b("react.profiler"),s=b("react.provider"),l=b("react.context"),u=b("react.forward_ref"),c=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),h=b("react.lazy"),p=b("react.block"),m=b("react.server.block"),v=b("react.fundamental"),g=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case o:case a:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case f:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return x(e)===l}},1686:function(e,t,n){"use strict";e.exports=n(4631)},2854:function(e,t,n){!function(e,t){function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,t}var r=n(t);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var a="Left",o="Right",s="Up",l="Down",u={delta:10,preventDefaultTouchmoveEvent:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0},c={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},d="mousemove",f="mouseup",h="touchend",p="touchmove",m="touchstart";function v(e,t,n,r){return e>t?n>0?o:a:r>0?l:s}function g(e,t){if(0===t)return e;var n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function y(e,t){var n=function(t){t&&"touches"in t&&t.touches.length>1||e((function(e,n){n.trackMouse&&(document.addEventListener(d,r),document.addEventListener(f,s));var a="touches"in t?t.touches[0]:t,o=g([a.clientX,a.clientY],n.rotationAngle);return i({},e,c,{initial:[].concat(o),xy:o,start:t.timeStamp||0})}))},r=function(t){e((function(e,n){if("touches"in t&&t.touches.length>1)return e;var r="touches"in t?t.touches[0]:t,a=g([r.clientX,r.clientY],n.rotationAngle),o=a[0],s=a[1],l=o-e.xy[0],c=s-e.xy[1],d=Math.abs(l),f=Math.abs(c),h=(t.timeStamp||0)-e.start,p=Math.sqrt(d*d+f*f)/(h||1),m=[l/(h||1),c/(h||1)],y=v(d,f,l,c),b="number"===typeof n.delta?n.delta:n.delta[y.toLowerCase()]||u.delta;if(d<b&&f<b&&!e.swiping)return e;var x={absX:d,absY:f,deltaX:l,deltaY:c,dir:y,event:t,first:e.first,initial:e.initial,velocity:p,vxvy:m};x.first&&n.onSwipeStart&&n.onSwipeStart(x),n.onSwiping&&n.onSwiping(x);var _=!1;return(n.onSwiping||n.onSwiped||"onSwiped"+y in n)&&(_=!0),_&&n.preventDefaultTouchmoveEvent&&n.trackTouch&&t.cancelable&&t.preventDefault(),i({},e,{first:!1,eventData:x,swiping:!0})}))},a=function(t){e((function(e,n){var r;if(e.swiping&&e.eventData){r=i({},e.eventData,{event:t}),n.onSwiped&&n.onSwiped(r);var a=n["onSwiped"+r.dir];a&&a(r)}else n.onTap&&n.onTap({event:t});return i({},e,c,{eventData:r})}))},o=function(){document.removeEventListener(d,r),document.removeEventListener(f,s)},s=function(e){o(),a(e)},l=function(e,t){var i=function(){};if(e&&e.addEventListener){var o=[[m,n],[p,r],[h,a]];o.forEach((function(n){var r=n[0],i=n[1];return e.addEventListener(r,i,{passive:t})})),i=function(){return o.forEach((function(t){var n=t[0],r=t[1];return e.removeEventListener(n,r)}))}}return i},y={ref:function(t){null!==t&&e((function(e,n){if(e.el===t)return e;var r={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),r.cleanUpTouch=void 0),n.trackTouch&&t&&(r.cleanUpTouch=l(t,!n.preventDefaultTouchmoveEvent)),i({},e,{el:t},r)}))}};return t.trackMouse&&(y.onMouseDown=n),[y,l]}function b(e,t,n){var r={};return!t.trackTouch&&e.cleanUpTouch?(e.cleanUpTouch(),r.cleanUpTouch=void 0):t.trackTouch&&!e.cleanUpTouch&&e.el&&(r.cleanUpTouch=n(e.el,!t.preventDefaultTouchmoveEvent)),i({},e,r)}function x(e){var t=e.trackMouse,n=r.useRef(i({},c)),a=r.useRef(i({},u));a.current=i({},u,e);var o=r.useMemo((function(){return y((function(e){return n.current=e(n.current,a.current)}),{trackMouse:t})}),[t]),s=o[0],l=o[1];return n.current=b(n.current,a.current,l),s}e.DOWN=l,e.LEFT=a,e.RIGHT=o,e.UP=s,e.useSwipeable=x}(t,n(9867))},4581:function(e,t,n){e.exports=function(e,t){"use strict";function n(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var r=n(e),i=n(t);function a(e){return r.default.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},r.default.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}var o={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},s=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"],l=function(e){function t(t){e.call(this,t),this.state={inputWidth:null},this.input=r.default.createRef(),this.sizer=r.default.createRef()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth())},t.prototype.componentDidUpdate=function(e){var t=e.query,n=e.placeholderText;t===this.props.query&&n===this.props.placeholderText||this.updateInputWidth()},t.prototype.copyInputStyles=function(){var e=this,t=window.getComputedStyle(this.input.current);s.forEach((function(n){e.sizer.current.style[n]=t[n]}))},t.prototype.updateInputWidth=function(){var e;this.props.autoresize&&(e=Math.ceil(this.sizer.current.scrollWidth)+2),e!==this.state.inputWidth&&this.setState({inputWidth:e})},t.prototype.render=function(){var e=this.props,t=e.id,n=e.query,i=e.ariaLabelText,a=e.placeholderText,s=e.expanded,l=e.classNames,u=e.inputAttributes,c=e.inputEventHandlers,d=e.index;return r.default.createElement("div",{className:l.searchWrapper},r.default.createElement("input",Object.assign({},u,c,{ref:this.input,value:n,placeholder:a,className:l.searchInput,role:"combobox","aria-autocomplete":"list","aria-label":i||a,"aria-owns":t,"aria-activedescendant":d>-1?t+"-"+d:null,"aria-expanded":s,style:{width:this.state.inputWidth}})),r.default.createElement("div",{ref:this.sizer,style:o},n||a))},t}(r.default.Component);function u(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function c(e){return new RegExp(u(e),"gi")}function d(e){return new RegExp("(?:^|\\s)"+u(e),"i")}function f(e){return new RegExp("^"+u(e)+"$","i")}function h(e,t){var n=c(t);return e.replace(n,"<mark>$&</mark>")}function p(e){var t=e.item,n=e.query;return r.default.createElement("span",{dangerouslySetInnerHTML:{__html:h(t.name,n)}})}function m(e){var t=e.suggestionComponent||p,n=e.options.map((function(n,i){var a=e.id+"-"+i,o=[];return e.index===i&&o.push(e.classNames.suggestionActive),n.disabled&&o.push(e.classNames.suggestionDisabled),r.default.createElement("li",{id:a,key:a,role:"option",className:o.join(" "),"aria-disabled":Boolean(n.disabled),onMouseDown:function(e){return e.preventDefault()},onClick:function(){return e.addTag(n)}},n.prefix?r.default.createElement("span",{className:e.classNames.suggestionPrefix},n.prefix," "):null,n.disableMarkIt?n.name:r.default.createElement(t,{item:n,query:e.query}))}));return r.default.createElement("div",{className:e.classNames.suggestions},r.default.createElement("ul",{role:"listbox",id:e.id},n))}function v(e,t){var n=e.querySelectorAll("a,button,input"),r=Array.prototype.findIndex.call(n,(function(e){return e===t})),i=n[r-1]||n[r+1];i&&i.focus()}var g={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},y={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 b(e,t){return e.findIndex((function(e){return f(t).test(e.name)}))}function x(){if(this.state.query.length>=this.props.minQueryLength){var e=b(this.state.options,this.state.query),t=-1===this.state.index?e:this.state.index,n=t>-1?this.state.options[t]:null;n?this.addTag(n):this.props.allowNew&&this.addTag({name:this.state.query})}}function _(e){e.preventDefault();var t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function w(e){e.preventDefault();var t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function k(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function C(e,t){return d(t).test(e.name)}function S(e,t){var n;return n=(n=e.suggestionsTransform?e.suggestionsTransform(t.query,e.suggestions):e.suggestions.filter((function(n){return e.suggestionsFilter(n,t.query)}))).slice(0,e.maxSuggestionsLength),e.allowNew&&e.newTagText&&-1===b(n,t.query)?n.push({id:0,name:t.query,prefix:e.newTagText,disableMarkIt:!0}):e.noSuggestionsText&&0===n.length&&n.push({id:0,name:e.noSuggestionsText,disabled:!0,disableMarkIt:!0}),n}var E=function(e){function t(t){e.call(this,t),this.state={query:"",focused:!1,index:-1},this.inputEventHandlers={onChange:function(){},onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.container=r.default.createRef(),this.input=r.default.createRef()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.onInput=function(e){var t=e.target.value;this.props.onInput&&this.props.onInput(t),t.length===this.state.query.length+1&&this.props.delimiters.indexOf(t.slice(-1))>-1?x.call(this):t!==this.state.query&&this.setState({query:t})},t.prototype.onKeyDown=function(e){this.props.delimiters.indexOf(e.key)>-1&&((this.state.query||this.state.index>-1)&&e.preventDefault(),x.call(this)),e.key===g.BACKSPACE&&this.props.allowBackspace&&k.call(this,e),e.key!==g.UP_ARROW&&e.key!==g.UP_ARROW_COMPAT||_.call(this,e),e.key!==g.DOWN_ARROW&&e.key!==g.DOWN_ARROW_COMPAT||w.call(this,e)},t.prototype.onClick=function(e){document.activeElement!==e.target&&this.focusInput()},t.prototype.onBlur=function(){this.setState({focused:!1,index:-1}),this.props.onBlur&&this.props.onBlur(),this.props.addOnBlur&&x.call(this)},t.prototype.onFocus=function(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()},t.prototype.onDeleteTag=function(e,t){this.container.current&&v(this.container.current,t.currentTarget),this.deleteTag(e)},t.prototype.addTag=function(e){e.disabled||("function"!==typeof this.props.onValidate||this.props.onValidate(e))&&(this.props.onAddition({id:e.id,name:e.name}),this.clearInput())},t.prototype.deleteTag=function(e){this.props.onDelete(e)},t.prototype.clearInput=function(){this.setState({query:"",index:-1})},t.prototype.clearSelectedIndex=function(){this.setState({index:-1})},t.prototype.focusInput=function(){this.input.current&&this.input.current.input.current&&this.input.current.input.current.focus()},t.prototype.render=function(){var e=this,t=this.props.tagComponent||a,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,i=Object.assign({},y,this.props.classNames),o=[i.root];return this.state.focused&&o.push(i.rootFocused),r.default.createElement("div",{ref:this.container,className:o.join(" "),onClick:this.onClick.bind(this)},r.default.createElement("div",{className:i.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((function(n,a){return r.default.createElement(t,{key:a,tag:n,removeButtonText:e.props.removeButtonText,classNames:i,onDelete:e.onDeleteTag.bind(e,a)})}))),r.default.createElement("div",{className:i.search},r.default.createElement(l,Object.assign({},this.state,{id:this.props.id,ref:this.input,classNames:i,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?r.default.createElement(m,Object.assign({},this.state,{id:this.props.id,classNames:i,expanded:n,addTag:this.addTag.bind(this),suggestionComponent:this.props.suggestionComponent})):null))},t.getDerivedStateFromProps=function(e,t){return t.prevQuery!==t.query||t.prevSuggestions!==e.suggestions?{prevQuery:t.query,prevSuggestions:e.suggestions,options:S(e,t)}:null},t}(r.default.Component);return E.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:C,suggestionsTransform:null,autoresize:!0,classNames:y,delimiters:[g.TAB,g.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}},E.propTypes={id:i.default.string,tags:i.default.arrayOf(i.default.object),placeholderText:i.default.string,ariaLabelText:i.default.string,removeButtonText:i.default.string,noSuggestionsText:i.default.string,newTagText:i.default.string,suggestions:i.default.arrayOf(i.default.object),suggestionsFilter:i.default.func,suggestionsTransform:i.default.func,autoresize:i.default.bool,delimiters:i.default.arrayOf(i.default.string),onDelete:i.default.func.isRequired,onAddition:i.default.func.isRequired,onInput:i.default.func,onFocus:i.default.func,onBlur:i.default.func,onValidate:i.default.func,minQueryLength:i.default.number,maxSuggestionsLength:i.default.number,classNames:i.default.object,allowNew:i.default.bool,allowBackspace:i.default.bool,addOnBlur:i.default.bool,tagComponent:i.default.oneOfType([i.default.func,i.default.element]),suggestionComponent:i.default.oneOfType([i.default.func,i.default.element]),inputAttributes:i.default.object},E}(n(9867),n(8731))},6482:function(e,t,n){"use strict";n(5443);var r=n(9867),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var a=Symbol.for;i=a("react.element"),t.Fragment=a("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:a,_owner:o.current}}t.jsx=u,t.jsxs=u},3285:function(e,t,n){"use strict";var r=n(5443),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),a=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),o=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var f="function"===typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var x={current:null},_=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)_.call(t,r)&&!w.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:x.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function E(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function M(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case a:l=!0}}if(l)return o=o(l=e),e=""===r?"."+E(l,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),M(o,t,n,"",(function(e){return e}))):null!=o&&(C(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+E(s=e[u],u);l+=M(s,t,n,c,o)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=M(s=s.value,t,n,c=r+E(s,u++),o);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function T(e,t,n){if(null==e)return e;var r=[],i=0;return M(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function O(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function P(){var e=N.current;if(null===e)throw Error(h(321));return e}var j={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error(h(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(h(267,e));var a=r({},e.props),o=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)_.call(t,c)&&!w.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];a.children=u}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().useState(e)},t.version="17.0.2"},9867:function(e,t,n){"use strict";e.exports=n(3285)},2834:function(e,t,n){"use strict";e.exports=n(6482)},7045:function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2393));function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a1=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.states,n=void 0===t?d:t,r=e.ignoreStates,i=void 0===r?f:r,a=e.namespace,o=void 0===a?u:a,s=e.namespaceSeparator,m=void 0===s?c:s,v=e.debounce,b=void 0===v?0:v,C=e.disableWarnings,E=void 0===C?h:C;return function(e){return function(t){return function(r){function a(){0===n.length?C.setItem(o,s):n.forEach((function(e){var t=o+m+e,n=function(e,t){return 1<e.split(".").length?y(e.split("."),t):y([e],t)}(e,s);n?C.setItem(t,n):C.removeItem(t)}))}var s,h=g(E),v=t(r);_(n)||(console.error(l,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),n=d),_(i)||(console.error(l,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),i=f),0<i.length&&(i=i.filter((function(e){return w(e)?e:void console.error(l,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")}))),w(o)||(console.error(l,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),o=u),w(m)||(console.error(l,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),m=c),k(b)||(console.error(l,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),b=0),s=0<i.length?S(i,e.getState()):e.getState();var C=new x(h);return b?(p&&clearTimeout(p),p=setTimeout((function(){a()}),b)):a(),v}}}},t.zD=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.states,n=void 0===t?d:t,i=e.immutablejs,a=void 0!==i&&i,o=e.namespace,s=void 0===o?u:o,f=e.namespaceSeparator,p=void 0===f?c:f,m=e.preloadedState,v=void 0===m?{}:m,y=e.disableWarnings,k=void 0===y?h:y,C=g(k);_(n)||(console.error(l,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),n=d),w(s)||(console.error(l,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),s=u),w(p)||(console.error(l,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),p=c),!0===a&&C("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 S=new x(C),E=v;if(0===n.length){var M=S.getItem(s);M&&(E=M)}else n.forEach((function(e){var t=s+p+e,n=S.getItem(t);n?E=r.default.recursive(E,b(e,n)):C("Invalid load '"+t+"' 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 E};var l="[Redux-LocalStorage-Simple]",u="redux_localstorage_simple",c="_",d=[],f=[],h=!1,p=null;function m(e){console.warn(l,e)}function v(){}var g=function(e){return e?v:m};function y(e,t){return void 0===t?null:1===e.length?t[e[0]]:y(e.slice(1),t[e[0]])}function b(e){function t(e,n){return 0===e.length?n:t(e.slice(1),s({},e[0],n))}var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t(e.split(".").reverse(),n)}function x(e){this.warnFn=e||m}function _(e){return"[object Array]"===Object.prototype.toString.call(e)}function w(e){return"string"==typeof e}function k(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function C(e){return null!==e&&"object"===o(e)}function S(e,t){return Object.entries(t).reduce((function(n,r){var a=i(r,2),o=a[0];a[1];return-1===e.indexOf(o)&&(n[o]=t[o]),n}),{})}Object.defineProperty(x.prototype,"length",{get:function(){try{return localStorage.length}catch(e){this.warnFn(e)}return 0},configurable:!0,enumerable:!0}),x.prototype.key=function(e){try{return localStorage.key(e)}catch(e){this.warnFn(e)}return null},x.prototype.setItem=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(e){this.warnFn(e)}},x.prototype.getItem=function(e){try{return JSON.parse(localStorage.getItem(e))}catch(e){this.warnFn(e)}return null},x.prototype.removeItem=function(e){try{localStorage.removeItem(e)}catch(e){this.warnFn(e)}}},4596:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(P){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),o=new T(r||[]);return a._invoke=function(e,t,n){var r=d;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw a;return N()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,o),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",m={};function v(){}function g(){}function y(){}var b={};l(b,a,(function(){return this}));var x=Object.getPrototypeOf,_=x&&x(x(O([])));_&&_!==n&&r.call(_,a)&&(b=_);var w=y.prototype=v.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,a,o,s){var l=c(e[i],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"===typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:N}}function N(){return{value:t,done:!0}}return g.prototype=y,l(w,"constructor",y),l(y,"constructor",g),g.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},k(C.prototype),l(C.prototype,o,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new C(u(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},k(w),l(w,s,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},6073:function(e,t){"use strict";var n,r,i,a;if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,c=null,d=function e(){if(null!==u)try{var n=t.unstable_now();u(!0,n),u=null}catch(r){throw setTimeout(e,0),r}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(d,0))},r=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if("undefined"!==typeof console){var p=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,v=null,g=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,_=x.port2;x.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+y;try{v(!0,e)?_.postMessage(null):(m=!1,v=null)}catch(n){throw _.postMessage(null),n}}else m=!1},n=function(e){v=e,m||(m=!0,_.postMessage(null))},r=function(e,n){g=f((function(){e(t.unstable_now())}),n)},i=function(){h(g),g=-1}}function w(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<S(i,t)))break e;e[r]=t,e[n]=i,n=r}}function k(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,l=e[s];if(void 0!==o&&0>S(o,n))void 0!==l&&0>S(l,o)?(e[r]=l,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==l&&0>S(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var E=[],M=[],T=1,O=null,N=3,P=!1,j=!1,D=!1;function L(e){for(var t=k(M);null!==t;){if(null===t.callback)C(M);else{if(!(t.startTime<=e))break;C(M),t.sortIndex=t.expirationTime,w(E,t)}t=k(M)}}function A(e){if(D=!1,L(e),!j)if(null!==k(E))j=!0,n(R);else{var t=k(M);null!==t&&r(A,t.startTime-e)}}function R(e,n){j=!1,D&&(D=!1,i()),P=!0;var a=N;try{for(L(n),O=k(E);null!==O&&(!(O.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=O.callback;if("function"===typeof o){O.callback=null,N=O.priorityLevel;var s=o(O.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?O.callback=s:O===k(E)&&C(E),L(n)}else C(E);O=k(E)}if(null!==O)var l=!0;else{var u=k(M);null!==u&&r(A,u.startTime-n),l=!1}return l}finally{O=null,N=a,P=!1}}var I=a;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(e){e.callback=null},t.unstable_continueExecution=function(){j||P||(j=!0,n(R))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return k(E)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=I,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,a,o){var s=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?s+o:s:o=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:T++,callback:a,priorityLevel:e,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>s?(e.sortIndex=o,w(M,e),null===k(E)&&e===k(M)&&(D?i():D=!0,r(A,o-s))):(e.sortIndex=l,w(E,e),j||P||(j=!0,n(R))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},2882:function(e,t,n){"use strict";e.exports=n(6073)},5034:function(e,t,n){var r=n(9478);function i(){r.call(this)}i.prototype=new r,e.exports=i,i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",o),n.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function l(e){if(u(),!this.hasListeners("error"))throw e}function u(){n.off("data",r),e.off("drain",i),n.off("end",o),n.off("close",s),n.off("error",l),e.off("error",l),n.off("end",u),n.off("close",u),e.off("end",u),e.off("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("end",u),e.on("close",u),e.emit("pipe",n),e}},3147:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},944:function(e){"use strict";var t=function(){};e.exports=t},6431:function(e){"use strict";e.exports="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=="},7093:function(e){"use strict";e.exports="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="},8858:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e={};n.r(e),n.d(e,{normalizeVisits:function(){return iP},processStatsFromVisits:function(){return rP}});var t=n(8544),r=n(9867),i=r.createContext(null);var a=function(e){e()},o=function(){return a};var s={notify:function(){},get:function(){return[]}};function l(e,t){var n,r=s;function i(){l.onStateChange&&l.onStateChange()}function a(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=o(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var l={addNestedSub:function(e){return a(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=s)},getListeners:function(){return r}};return l}var u="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;var c=function(e){var t=e.store,n=e.context,a=e.children,o=(0,r.useMemo)((function(){var e=l(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),s=(0,r.useMemo)((function(){return t.getState()}),[t]);u((function(){var e=o.subscription;return e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,s]);var c=n||i;return r.createElement(c.Provider,{value:o},a)};function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var h=n(8192),p=n.n(h),m=n(1686),v=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],g=["reactReduxForwardedRef"],y=[],b=[null,null];function x(e,t){var n=e[1];return[t.payload,n+1]}function _(e,t,n){u((function(){return e.apply(void 0,t)}),n)}function w(e,t,n,r,i,a,o){e.current=r,t.current=i,n.current=!1,a.current&&(a.current=null,o())}function k(e,t,n,r,i,a,o,s,l,u){if(e){var c=!1,d=null,f=function(){if(!c){var e,n,f=t.getState();try{e=r(f,i.current)}catch(h){n=h,d=h}n||(d=null),e===a.current?o.current||l():(a.current=e,s.current=e,o.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var C=function(){return[null,0]};function S(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,o=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,s=n.methodName,u=void 0===s?"connectAdvanced":s,c=n.renderCountProp,h=void 0===c?void 0:c,S=n.shouldHandleStateChanges,E=void 0===S||S,M=n.storeKey,T=void 0===M?"store":M,O=(n.withRef,n.forwardRef),N=void 0!==O&&O,P=n.context,j=void 0===P?i:P,D=f(n,v),L=j;return function(t){var n=t.displayName||t.name||"Component",i=o(n),a=d({},D,{getDisplayName:o,methodName:u,renderCountProp:h,shouldHandleStateChanges:E,storeKey:T,displayName:i,wrappedComponentName:n,WrappedComponent:t}),s=D.pure;var c=s?r.useMemo:function(e){return e()};function v(n){var i=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=f(n,g);return[n.context,e,t]}),[n]),o=i[0],s=i[1],u=i[2],h=(0,r.useMemo)((function(){return o&&o.Consumer&&(0,m.isContextConsumer)(r.createElement(o.Consumer,null))?o:L}),[o,L]),p=(0,r.useContext)(h),v=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var S=v?n.store:p.store,M=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(S)}),[S]),T=(0,r.useMemo)((function(){if(!E)return b;var e=l(S,v?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[S,v,p]),O=T[0],N=T[1],P=(0,r.useMemo)((function(){return v?p:d({},p,{subscription:O})}),[v,p,O]),j=(0,r.useReducer)(x,y,C),D=j[0][0],A=j[1];if(D&&D.error)throw D.error;var R=(0,r.useRef)(),I=(0,r.useRef)(u),z=(0,r.useRef)(),F=(0,r.useRef)(!1),U=c((function(){return z.current&&u===I.current?z.current:M(S.getState(),u)}),[S,D,u]);_(w,[I,R,F,u,U,z,N]),_(k,[E,S,O,M,I,R,F,z,N,A],[S,O,M]);var B=(0,r.useMemo)((function(){return r.createElement(t,d({},U,{ref:s}))}),[s,t,U]);return(0,r.useMemo)((function(){return E?r.createElement(h.Provider,{value:P},B):B}),[h,B,P])}var S=s?r.memo(v):v;if(S.WrappedComponent=t,S.displayName=v.displayName=i,N){var M=r.forwardRef((function(e,t){return r.createElement(S,d({},e,{reactReduxForwardedRef:t}))}));return M.displayName=i,M.WrappedComponent=t,p()(M,t)}return p()(S,t)}}function E(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function M(e,t){if(E(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!E(e[n[i]],t[n[i]]))return!1;return!0}function T(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function O(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function N(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=O(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=O(i),i=r(t,n)),i},r}}var P=[function(e){return"function"===typeof e?N(e):void 0},function(e){return e?void 0:T((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?T((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"===typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}];var j=[function(e){return"function"===typeof e?N(e):void 0},function(e){return e?void 0:T((function(){return{}}))}];function D(e,t,n){return d({},n,e,t)}var L=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,a=n.areMergedPropsEqual,o=!1;return function(t,n,s){var l=e(t,n,s);return o?i&&a(l,r)||(r=l):(o=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return D}}],A=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function R(e,t,n,r){return function(i,a){return n(e(i,a),t(r,a),a)}}function I(e,t,n,r,i){var a,o,s,l,u,c=i.areStatesEqual,d=i.areOwnPropsEqual,f=i.areStatePropsEqual,h=!1;function p(i,h){var p=!d(h,o),m=!c(i,a);return a=i,o=h,p&&m?(s=e(a,o),t.dependsOnOwnProps&&(l=t(r,o)),u=n(s,l,o)):p?(e.dependsOnOwnProps&&(s=e(a,o)),t.dependsOnOwnProps&&(l=t(r,o)),u=n(s,l,o)):m?function(){var t=e(a,o),r=!f(t,s);return s=t,r&&(u=n(s,l,o)),u}():u}return function(i,c){return h?p(i,c):(s=e(a=i,o=c),l=t(r,o),u=n(s,l,o),h=!0,u)}}function z(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,a=f(t,A),o=n(e,a),s=r(e,a),l=i(e,a);return(a.pure?I:R)(o,s,l,e,a)}var F=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function U(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function B(e,t){return e===t}function V(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?S:n,i=t.mapStateToPropsFactories,a=void 0===i?j:i,o=t.mapDispatchToPropsFactories,s=void 0===o?P:o,l=t.mergePropsFactories,u=void 0===l?L:l,c=t.selectorFactory,h=void 0===c?z:c;return function(e,t,n,i){void 0===i&&(i={});var o=i,l=o.pure,c=void 0===l||l,p=o.areStatesEqual,m=void 0===p?B:p,v=o.areOwnPropsEqual,g=void 0===v?M:v,y=o.areStatePropsEqual,b=void 0===y?M:y,x=o.areMergedPropsEqual,_=void 0===x?M:x,w=f(o,F),k=U(e,a,"mapStateToProps"),C=U(t,s,"mapDispatchToProps"),S=U(n,u,"mergeProps");return r(h,d({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:k,initMapDispatchToProps:C,initMergeProps:S,pure:c,areStatesEqual:m,areOwnPropsEqual:g,areStatePropsEqual:b,areMergedPropsEqual:_},w))}}var H=V();var W,Z;function Y(e){if(Array.isArray(e))return e}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function G(e,t){if(e){if("string"===typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}function K(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Q(e,t){return Y(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(l){s=!0,i=l}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||G(e,t)||K()}W=t.unstable_batchedUpdates,a=W,function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Z||(Z={}));var X=function(e){return e};var $="beforeunload",J="popstate";function ee(e){e.preventDefault(),e.returnValue=""}function te(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function ne(){return Math.random().toString(36).substr(2,8)}function re(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,a=e.hash,o=void 0===a?"":a;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),o&&"#"!==o&&(n+="#"===o.charAt(0)?o:"#"+o),n}function ie(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ae(e,t){if(!e)throw new Error(t)}var oe=(0,r.createContext)(null);var se=(0,r.createContext)(null);var le=(0,r.createContext)({outlet:null,matches:[]});function ue(e){var t=e.to,n=e.replace,i=e.state;pe()||ae(!1);var a=ve();return(0,r.useEffect)((function(){a(t,{replace:n,state:i})})),null}function ce(e){ae(!1)}function de(e){var t=e.basename,n=void 0===t?"/":t,i=e.children,a=void 0===i?null:i,o=e.location,s=e.navigationType,l=void 0===s?Z.Pop:s,u=e.navigator,c=e.static,d=void 0!==c&&c;pe()&&ae(!1);var f=Ne(n),h=(0,r.useMemo)((function(){return{basename:f,navigator:u,static:d}}),[f,u,d]);"string"===typeof o&&(o=ie(o));var p=o,m=p.pathname,v=void 0===m?"/":m,g=p.search,y=void 0===g?"":g,b=p.hash,x=void 0===b?"":b,_=p.state,w=void 0===_?null:_,k=p.key,C=void 0===k?"default":k,S=(0,r.useMemo)((function(){var e=Te(v,f);return null==e?null:{pathname:e,search:y,hash:x,state:w,key:C}}),[f,v,y,x,w,C]);return null==S?null:(0,r.createElement)(oe.Provider,{value:h},(0,r.createElement)(se.Provider,{children:a,value:{location:S,navigationType:l}}))}function fe(e){var t=e.children,n=e.location;return function(e,t){pe()||ae(!1);var n=(0,r.useContext)(le).matches,i=n[n.length-1],a=i?i.params:{},o=(i&&i.pathname,i?i.pathnameBase:"/");i&&i.route;0;var s,l=me();if(t){var u,c="string"===typeof t?ie(t):t;"/"===o||(null==(u=c.pathname)?void 0:u.startsWith(o))||ae(!1),s=c}else s=l;var d=s.pathname||"/",f="/"===o?d:d.slice(o.length)||"/",h=function(e,t,n){void 0===n&&(n="/");var r=Te(("string"===typeof t?ie(t):t).pathname||"/",n);if(null==r)return null;var i=xe(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var a=null,o=0;null==a&&o<i.length;++o)a=Ce(i[o],r);return a}(e,{pathname:f});0;return Se(h&&h.map((function(e){return Object.assign({},e,{params:Object.assign({},a,e.params),pathname:Oe([o,e.pathname]),pathnameBase:"/"===e.pathnameBase?o:Oe([o,e.pathnameBase])})})),n)}(be(t),n)}function he(e){pe()||ae(!1);var t=(0,r.useContext)(oe),n=t.basename,i=t.navigator,a=ye(e),o=a.hash,s=a.pathname,l=a.search,u=s;if("/"!==n){var c=function(e){return""===e||""===e.pathname?"/":"string"===typeof e?ie(e).pathname:e.pathname}(e),d=null!=c&&c.endsWith("/");u="/"===s?n+(d?"/":""):Oe([n,s])}return i.createHref({pathname:u,search:l,hash:o})}function pe(){return null!=(0,r.useContext)(se)}function me(){return pe()||ae(!1),(0,r.useContext)(se).location}function ve(){pe()||ae(!1);var e=(0,r.useContext)(oe),t=e.basename,n=e.navigator,i=(0,r.useContext)(le).matches,a=me().pathname,o=JSON.stringify(i.map((function(e){return e.pathnameBase}))),s=(0,r.useRef)(!1);(0,r.useEffect)((function(){s.current=!0}));var l=(0,r.useCallback)((function(e,r){if(void 0===r&&(r={}),s.current)if("number"!==typeof e){var i=Me(e,JSON.parse(o),a);"/"!==t&&(i.pathname=Oe([t,i.pathname])),(r.replace?n.replace:n.push)(i,r.state)}else n.go(e)}),[t,n,o,a]);return l}function ge(){var e=(0,r.useContext)(le).matches,t=e[e.length-1];return t?t.params:{}}function ye(e){var t=(0,r.useContext)(le).matches,n=me().pathname,i=JSON.stringify(t.map((function(e){return e.pathnameBase})));return(0,r.useMemo)((function(){return Me(e,JSON.parse(i),n)}),[e,i,n])}function be(e){var t=[];return r.Children.forEach(e,(function(e){if((0,r.isValidElement)(e))if(e.type!==r.Fragment){e.type!==ce&&ae(!1);var n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=be(e.props.children)),t.push(n)}else t.push.apply(t,be(e.props.children))})),t}function xe(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=""),e.forEach((function(e,i){var a={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(a.relativePath.startsWith(r)||ae(!1),a.relativePath=a.relativePath.slice(r.length));var o=Oe([r,a.relativePath]),s=n.concat(a);e.children&&e.children.length>0&&(!0===e.index&&ae(!1),xe(e.children,t,s,o)),(null!=e.path||e.index)&&t.push({path:o,score:ke(o,e.index),routesMeta:s})})),t}var _e=/^:\w+$/,we=function(e){return"*"===e};function ke(e,t){var n=e.split("/"),r=n.length;return n.some(we)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!we(e)})).reduce((function(e,t){return e+(_e.test(t)?3:""===t?1:10)}),r)}function Ce(e,t){for(var n=e.routesMeta,r={},i="/",a=[],o=0;o<n.length;++o){var s=n[o],l=o===n.length-1,u="/"===i?t:t.slice(i.length)||"/",c=Ee({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!c)return null;Object.assign(r,c.params);var d=s.route;a.push({params:r,pathname:Oe([i,c.pathname]),pathnameBase:Ne(Oe([i,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(i=Oe([i,c.pathnameBase]))}return a}function Se(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight((function(n,i,a){return(0,r.createElement)(le.Provider,{children:void 0!==i.route.element?i.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,a+1))}})}),null)}function Ee(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);var r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(function(e,t){return r.push(t),"([^\\/]+)"}));e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";return[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),r=Q(n,2),i=r[0],a=r[1],o=t.match(i);if(!o)return null;var s=o[0],l=s.replace(/(.)\/+$/,"$1"),u=o.slice(1),c=a.reduce((function(e,t,n){if("*"===t){var r=u[n]||"";l=s.slice(0,s.length-r.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return e}}(u[n]||""),e}),{});return{params:c,pathname:s,pathnameBase:l,pattern:e}}function Me(e,t,n){var r,i="string"===typeof e?ie(e):e,a=""===e||""===i.pathname?"/":i.pathname;if(null==a)r=n;else{var o=t.length-1;if(a.startsWith("..")){for(var s=a.split("/");".."===s[0];)s.shift(),o-=1;i.pathname=s.join("/")}r=o>=0?t[o]:"/"}var l=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?ie(e):e,r=n.pathname,i=n.search,a=void 0===i?"":i,o=n.hash,s=void 0===o?"":o,l=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:l,search:Pe(a),hash:je(s)}}(i,r);return a&&"/"!==a&&a.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}function Te(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}var Oe=function(e){return e.join("/").replace(/\/\/+/g,"/")},Ne=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},Pe=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},je=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};function De(){return De=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},De.apply(this,arguments)}function Le(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Ae=["onClick","reloadDocument","replace","state","target","to"],Re=["aria-current","caseSensitive","className","end","style","to","children"];function Ie(e){var t=e.basename,n=e.children,i=e.window,a=(0,r.useRef)();null==a.current&&(a.current=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function i(){var e=n.location,t=e.pathname,i=e.search,a=e.hash,o=r.state||{};return[o.idx,X({pathname:t,search:i,hash:a,state:o.usr||null,key:o.key||"default"})]}var a=null;n.addEventListener(J,(function(){if(a)f.call(a),a=null;else{var e=Z.Pop,t=i(),n=t[0],r=t[1];if(f.length){if(null!=n){var o=l-n;o&&(a={action:e,location:r,retry:function(){y(-1*o)}},y(o))}}else g(e)}}));var o=Z.Pop,s=i(),l=s[0],u=s[1],c=te(),f=te();function h(e){return"string"===typeof e?e:re(e)}function p(e,t){return void 0===t&&(t=null),X(d({pathname:u.pathname,hash:"",search:""},"string"===typeof e?ie(e):e,{state:t,key:ne()}))}function m(e,t){return[{usr:e.state,key:e.key,idx:t},h(e)]}function v(e,t,n){return!f.length||(f.call({action:e,location:t,retry:n}),!1)}function g(e){o=e;var t=i();l=t[0],u=t[1],c.call({action:o,location:u})}function y(e){r.go(e)}null==l&&(l=0,r.replaceState(d({},r.state,{idx:l}),""));var b={get action(){return o},get location(){return u},createHref:h,push:function e(t,i){var a=Z.Push,o=p(t,i);if(v(a,o,(function(){e(t,i)}))){var s=m(o,l+1),u=s[0],c=s[1];try{r.pushState(u,"",c)}catch(d){n.location.assign(c)}g(a)}},replace:function e(t,n){var i=Z.Replace,a=p(t,n);if(v(i,a,(function(){e(t,n)}))){var o=m(a,l),s=o[0],u=o[1];r.replaceState(s,"",u),g(i)}},go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return c.push(e)},block:function(e){var t=f.push(e);return 1===f.length&&n.addEventListener($,ee),function(){t(),f.length||n.removeEventListener($,ee)}}};return b}({window:i}));var o=a.current,s=Q((0,r.useState)({action:o.action,location:o.location}),2),l=s[0],u=s[1];return(0,r.useLayoutEffect)((function(){return o.listen(u)}),[o]),(0,r.createElement)(de,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o})}var ze=(0,r.forwardRef)((function(e,t){var n=e.onClick,i=e.reloadDocument,a=e.replace,o=void 0!==a&&a,s=e.state,l=e.target,u=e.to,c=Le(e,Ae),d=he(u),f=function(e,t){var n=void 0===t?{}:t,i=n.target,a=n.replace,o=n.state,s=ve(),l=me(),u=ye(e);return(0,r.useCallback)((function(t){if(0===t.button&&(!i||"_self"===i)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t)){t.preventDefault();var n=!!a||re(l)===re(u);s(e,{replace:n,state:o})}}),[l,s,u,a,o,i,e])}(u,{replace:o,state:s,target:l});return(0,r.createElement)("a",De({},c,{href:d,onClick:function(e){n&&n(e),e.defaultPrevented||i||f(e)},ref:t,target:l}))}));var Fe=(0,r.forwardRef)((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,a=e.caseSensitive,o=void 0!==a&&a,s=e.className,l=void 0===s?"":s,u=e.end,c=void 0!==u&&u,d=e.style,f=e.to,h=e.children,p=Le(e,Re),m=me(),v=ye(f),g=m.pathname,y=v.pathname;o||(g=g.toLowerCase(),y=y.toLowerCase());var b,x=g===y||!c&&g.startsWith(y)&&"/"===g.charAt(y.length),_=x?i:void 0;b="function"===typeof l?l({isActive:x}):[l,x?"active":null].filter(Boolean).join(" ");var w="function"===typeof d?d({isActive:x}):d;return(0,r.createElement)(ze,De({},p,{"aria-current":_,className:b,ref:t,style:w,to:f}),"function"===typeof h?h({isActive:x}):h)}));var Ue,Be=JSON.parse('{"Xh":"/shlink-web-client/feature/latest-error"}');function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){Ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ze=".",Ye="function",qe="string",Ge="__global__",Ke="Provider",Qe=0,Xe=Array.prototype.slice,$e=function(e,t){var n=e[t];if(void 0===n&&Ue.config.strict)throw new Error("Bottle was unable to resolve a service. `"+t+"` is undefined.");return n},Je=function(e){var t;return this.nested[e]||(t=Ue.pop(),this.nested[e]=t,this.factory(e,(function(){return t.container}))),this.nested[e]},et=function(e){return e.split(Ze).reduce($e,this)},tt=function(e,t){return t(e)},nt=function(e,t){return(e[t]||[]).concat(e.__global__||[])},rt=function(e,t){var n,r,i,a,o;return this.id,i=this.container,a=this.decorators,o=this.middlewares,n=e+Ke,(r=Object.create(null))[n]={configurable:!0,enumerable:!0,get:function(){var e=new t;return delete i[n],i[n]=e,e}},r[e]={configurable:!0,enumerable:!0,get:function(){var t,r=i[n];return r&&(t=nt(a,e).reduce(tt,r.$get(i)),delete i[n],delete i[e]),void 0===t?t:function(e,t,n,r){var i={configurable:!0,enumerable:!0};return e.length?i.get=function(){var t=0,r=function(i){if(i)throw i;e[t]&&e[t++](n,r)};return r(),n}:(i.value=n,i.writable=!0),Object.defineProperty(r,t,i),r[t]}(nt(o,e),e,t,i)}},Object.defineProperties(i,r),this},it=function(e,t){var n,r;return n=e.split(Ze),this.providerMap[e]&&1===n.length&&!this.container[e+Ke]?console.error(e+" provider already instantiated."):(this.originalProviders[e]=t,this.providerMap[e]=!0,r=n.shift(),n.length?(Je.call(this,r).provider(n.join(Ze),t),this):rt.call(this,r,t))},at=function(e,t){return it.call(this,e,(function(){this.$get=t}))},ot=function(e,t,n){var r=arguments.length>3?Xe.call(arguments,3):[],i=this;return at.call(this,e,(function(){var e=t,a=r.map(et,i.container);return n?new(t.bind.apply(t,[null].concat(a))):e.apply(null,a)}))},st=function(e,t){Object.defineProperty(this,e,{configurable:!0,enumerable:!0,value:t,writable:!0})},lt=function(e,t){var n=e[t];return n||st.call(e,t,n={}),n},ut=function(e,t){Object.defineProperty(this,e,{configurable:!1,enumerable:!0,value:t,writable:!1})},ct=function(e,t){var n,r;return typeof e===Ye&&(t=e,e=Ge),r=(n=e.split(Ze)).shift(),n.length?Je.call(this,r).decorator(n.join(Ze),t):(this.decorators[r]||(this.decorators[r]=[]),this.decorators[r].push(t)),this},dt=function(e){return!/^\$(?:decorator|register|list)$|Provider$/.test(e)},ft=function(e){return Object.keys(e||this.container||{}).filter(dt)},ht={},pt=function(e){var t=void 0===e.$value?e:e.$value;return this[e.$type||"service"].apply(this,[e.$name,t].concat(e.$inject||[]))},mt=function(e){delete this.providerMap[e],delete this.container[e],delete this.container[e+Ke]};(Ue=function e(t){if(!(this instanceof e))return e.pop(t);this.id=Qe++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:ct.bind(this),$register:pt.bind(this),$list:ft.bind(this)}}).prototype={constant:function(e,t){var n=e.split(Ze);return e=n.pop(),ut.call(n.reduce(lt,this.container),e,t),this},decorator:ct,defer:function(e){return this.deferred.push(e),this},digest:function(e){return(e||[]).map(et,this.container)},factory:at,instanceFactory:function(e,t){return at.call(this,e,(function(e){return{instance:t.bind(t,e)}}))},list:ft,middleware:function(e,t){var n,r;return typeof e===Ye&&(t=e,e=Ge),r=(n=e.split(Ze)).shift(),n.length?Je.call(this,r).middleware(n.join(Ze),t):(this.middlewares[r]||(this.middlewares[r]=[]),this.middlewares[r].push(t)),this},provider:it,resetProviders:function(e){var t=this.originalProviders,n=Array.isArray(e);Object.keys(this.originalProviders).forEach((function(r){if(!n||-1!==e.indexOf(r)){var i=r.split(Ze);i.length>1&&i.forEach(mt,Je.call(this,i[0])),mt.call(this,r),this.provider(r,t[r])}}),this)},register:pt,resolve:function(e){return this.deferred.forEach((function(t){t(e)})),this},service:function(e,t){return ot.apply(this,[e,t,!0].concat(Xe.call(arguments,2)))},serviceFactory:function(e,t){return ot.apply(this,[e,t,!1].concat(Xe.call(arguments,2)))},value:function(e,t){var n;return n=e.split(Ze),e=n.pop(),st.call(n.reduce(lt,this.container),e,t),this}},Ue.pop=function(e){var t;return typeof e===qe?((t=ht[e])||(ht[e]=t=new Ue,t.constant("BOTTLE_NAME",e)),t):new Ue},Ue.clear=function(e){typeof e===qe?delete ht[e]:ht={}},Ue.list=ft,Ue.config={strict:!1};var vt=Ue;function gt(e){return null!=e&&"object"===typeof e&&!0===e["@@functional/placeholder"]}function yt(e){return function t(n){return 0===arguments.length||gt(n)?t:e.apply(this,arguments)}}function bt(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return gt(n)?t:yt((function(t){return e(n,t)}));default:return gt(n)&>(r)?t:gt(n)?yt((function(t){return e(t,r)})):gt(r)?yt((function(t){return e(n,t)})):e(n,r)}}}var xt=bt((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})),_t=xt,wt=Number.isInteger||function(e){return e<<0===e};function kt(e){return"[object String]"===Object.prototype.toString.call(e)}var Ct=bt((function(e,t){var n=e<0?t.length+e:e;return kt(t)?t.charAt(n):t[n]})),St=Ct,Et=bt((function(e,t){return e.map((function(e){for(var n,r=t,i=0;i<e.length;){if(null==r)return;n=e[i],r=wt(n)?St(n,r):r[n],i+=1}return r}))})),Mt=Et,Tt=bt((function(e,t){return Mt([e],t)[0]})),Ot=bt((function(e,t){return Tt([e],t)})),Nt=Ot,Pt=bt((function(e,t){for(var n={},r={},i=0,a=e.length;i<a;)r[e[i]]=1,i+=1;for(var o in t)r.hasOwnProperty(o)||(n[o]=t[o]);return n})),jt=Pt,Dt=function(e){return!(null===e||void 0===e||!e.url)&&!(null===e||void 0===e||!e.apiKey)},Lt=function(e){return!(null===e||void 0===e||!e.id)},At=function(e){return!(null===e||void 0===e||!e.version)},Rt=function(e){return Lt(e)?e.id:""},It=function(e){return jt(["id","autoConnect"],e)};function zt(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Ft(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){zt(a,r,i,o,s,"next",e)}function s(e){zt(a,r,i,o,s,"throw",e)}o(void 0)}))}}function Ut(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bt(e,t,n){return t&&Ut(e.prototype,t),n&&Ut(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ht(e,t){if(null==e)return{};var n,r,i=f(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Wt=n(7757),Zt=n.n(Wt);var Yt=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function qt(e){return null!=e&&"function"===typeof e["@@transducer/step"]}function Gt(e,t,n){return function(){if(0===arguments.length)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!Yt(i)){for(var a=0;a<e.length;){if("function"===typeof i[e[a]])return i[e[a]].apply(i,r);a+=1}if(qt(i)){var o=t.apply(null,r);return o(i)}}return n.apply(this,arguments)}}function Kt(e){return"[object Object]"===Object.prototype.toString.call(e)}var Qt=yt((function(e){return!!Yt(e)||!!e&&("object"===typeof e&&(!kt(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),Xt=Qt,$t=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function Jt(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,a){return t.apply(this,arguments)};case 6:return function(e,n,r,i,a,o){return t.apply(this,arguments)};case 7:return function(e,n,r,i,a,o,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,a,o,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,i,a,o,s,l,u){return t.apply(this,arguments)};case 10:return function(e,n,r,i,a,o,s,l,u,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var en=bt((function(e,t){return Jt(e.length,(function(){return e.apply(t,arguments)}))})),tn=en;function nn(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function rn(e,t,n,r){return e["@@transducer/result"](n[r](tn(e["@@transducer/step"],e),t))}var an="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator";function on(e,t,n){if("function"===typeof e&&(e=function(e){return new $t(e)}(e)),Xt(n))return function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"===typeof n["fantasy-land/reduce"])return rn(e,t,n,"fantasy-land/reduce");if(null!=n[an])return nn(e,t,n[an]());if("function"===typeof n.next)return nn(e,t,n);if("function"===typeof n.reduce)return rn(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var sn=function(){return this.xf["@@transducer/init"]()},ln=function(e){return this.xf["@@transducer/result"](e)},un=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=sn,e.prototype["@@transducer/result"]=ln,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}(),cn=bt((function(e,t){return new un(e,t)})),dn=cn;function fn(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var hn=Object.prototype.toString,pn=function(){return"[object Arguments]"===hn.call(arguments)?function(e){return"[object Arguments]"===hn.call(e)}:function(e){return fn("callee",e)}}(),mn=pn,vn=!{toString:null}.propertyIsEnumerable("toString"),gn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],yn=function(){return arguments.propertyIsEnumerable("length")}(),bn=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},xn="function"!==typeof Object.keys||yn?yt((function(e){if(Object(e)!==e)return[];var t,n,r=[],i=yn&&mn(e);for(t in e)!fn(t,e)||i&&"length"===t||(r[r.length]=t);if(vn)for(n=gn.length-1;n>=0;)fn(t=gn[n],e)&&!bn(r,t)&&(r[r.length]=t),n-=1;return r})):yt((function(e){return Object(e)!==e?[]:Object.keys(e)})),_n=xn,wn=bt(Gt(["filter"],dn,(function(e,t){return Kt(t)?on((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},_n(t)):function(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}(e,t)}))),kn=wn,Cn=bt((function(e,t){return kn(function(e){return function(){return!e.apply(this,arguments)}}(e),t)})),Sn=Cn,En=yt((function(e){return null==e})),Mn=En,Tn=yt((function(e){return null!=e&&"function"===typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"===typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"===typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"===typeof e.constructor.empty?e.constructor.empty():Yt(e)?[]:kt(e)?"":Kt(e)?{}:mn(e)?function(){return arguments}():void 0})),On=Tn;function Nn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Pn(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}var jn="function"===typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t},Dn=yt((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Ln(e,t,n,r){var i=Nn(e);function a(e,t){return An(e,t,n.slice(),r.slice())}return!Pn((function(e,t){return!Pn(a,t,e)}),Nn(t),i)}function An(e,t,n,r){if(jn(e,t))return!0;var i=Dn(e);if(i!==Dn(t))return!1;if(null==e||null==t)return!1;if("function"===typeof e["fantasy-land/equals"]||"function"===typeof t["fantasy-land/equals"])return"function"===typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"===typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"===typeof e.equals||"function"===typeof t.equals)return"function"===typeof e.equals&&e.equals(t)&&"function"===typeof t.equals&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if("function"===typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!==typeof t||!jn(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!jn(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=n.length-1;a>=0;){if(n[a]===e)return r[a]===t;a-=1}switch(i){case"Map":return e.size===t.size&&Ln(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&Ln(e.values(),t.values(),n.concat([e]),r.concat([t]));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 o=_n(e);if(o.length!==_n(t).length)return!1;var s=n.concat([e]),l=r.concat([t]);for(a=o.length-1;a>=0;){var u=o[a];if(!fn(u,t)||!An(t[u],e[u],s,l))return!1;a-=1}return!0}var Rn=bt((function(e,t){return An(e,t,[],[])})),In=Rn,zn=yt((function(e){return null!=e&&In(e,On(e))})),Fn=zn,Un=n(8663),Bn=n.n(Un),Vn=function(e){return Bn().parse(e,{ignoreQueryPrefix:!0})},Hn=function(e){return Bn().stringify(e,{arrayFormat:"brackets"})},Wn=function(e,t,n){return e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC"},Zn=function(e,t){var n=t.field,r=t.dir;return n&&r?e.sort((function(e,t){var i="ASC"===r?1:-1,a="ASC"===r?-1:1;return e[n]>t[n]?i:a})):e},Yn=function(e){return e.dir?"".concat(e.field,"-").concat(e.dir):void 0},qn=["orderBy"],Gn=function(e){return e?"".concat(e,"/rest/v2"):""},Kn=Sn(Mn),Qn=function(e){var t=e.orderBy,n=void 0===t?{}:t;return We(We({},Ht(e,qn)),{},{orderBy:Yn(n)})},Xn=Bt((function e(t,n,r){var i=this;Vt(this,e),this.axios=t,this.baseUrl=n,this.apiKey=r,this.listShortUrls=Ft(Zt().mark((function e(){var t,n=arguments;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.abrupt("return",i.performRequest("/short-urls","GET",Qn(t)).then((function(e){return e.data.shortUrls})));case 2:case"end":return e.stop()}}),e)}))),this.createShortUrl=function(){var e=Ft(Zt().mark((function e(t){var n;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Sn((function(e){return Fn(e)||Mn(e)}),t),e.abrupt("return",i.performRequest("/short-urls","POST",{},n).then((function(e){return e.data})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getShortUrlVisits=function(){var e=Ft(Zt().mark((function e(t,n){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/short-urls/".concat(t,"/visits"),"GET",n).then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getTagVisits=function(){var e=Ft(Zt().mark((function e(t,n){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/tags/".concat(t,"/visits"),"GET",n).then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getOrphanVisits=function(){var e=Ft(Zt().mark((function e(t){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/visits/orphan","GET",t).then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getNonOrphanVisits=function(){var e=Ft(Zt().mark((function e(t){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/visits/non-orphan","GET",t).then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getVisitsOverview=Ft(Zt().mark((function e(){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/visits","GET").then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)}))),this.getShortUrl=function(){var e=Ft(Zt().mark((function e(t,n){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/short-urls/".concat(t),"GET",{domain:n}).then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.deleteShortUrl=function(){var e=Ft(Zt().mark((function e(t,n){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/short-urls/".concat(t),"DELETE",{domain:n}).then((function(){})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.updateShortUrlTags=function(){var e=Ft(Zt().mark((function e(t,n,r){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/short-urls/".concat(t,"/tags"),"PUT",{domain:n},{tags:r}).then((function(e){return e.data.tags})));case 1:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),this.updateShortUrl=function(){var e=Ft(Zt().mark((function e(t,n,r){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/short-urls/".concat(t),"PATCH",{domain:n},r).then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),this.listTags=Ft(Zt().mark((function e(){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/tags","GET",{withStats:"true"}).then((function(e){return e.data.tags})).then((function(e){return{tags:e.data,stats:e.stats}})));case 1:case"end":return e.stop()}}),e)}))),this.deleteTags=function(){var e=Ft(Zt().mark((function e(t){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/tags","DELETE",{tags:t}).then((function(){return{tags:t}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.editTag=function(){var e=Ft(Zt().mark((function e(t,n){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/tags","PUT",{},{oldName:t,newName:n}).then((function(){return{oldName:t,newName:n}})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.health=Ft(Zt().mark((function e(){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/health","GET").then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)}))),this.mercureInfo=Ft(Zt().mark((function e(){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/mercure-info","GET").then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)}))),this.listDomains=Ft(Zt().mark((function e(){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/domains","GET").then((function(e){return e.data.domains})));case 1:case"end":return e.stop()}}),e)}))),this.editDomainRedirects=function(){var e=Ft(Zt().mark((function e(t){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/domains/redirects","PATCH",{},t).then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.performRequest=function(){var e=Ft(Zt().mark((function e(t){var n,r,a,o=arguments;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:"GET",r=o.length>2&&void 0!==o[2]?o[2]:{},a=o.length>3&&void 0!==o[3]?o[3]:{},e.abrupt("return",i.axios({method:n,url:"".concat(Gn(i.baseUrl)).concat(t),headers:{"X-Api-Key":i.apiKey},params:Kn(r),data:a,paramsSerializer:Hn}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),$n={},Jn=function(e){return function(t){var n=function(e){return"function"===typeof e}(t)?Nt("selectedServer",t()):t;if(!Dt(n))throw new Error("There's no selected server or it is not found");var r=n.url,i=n.apiKey,a="".concat(r,"_").concat(i);return $n[a]||($n[a]=new Xn(e,r,i)),$n[a]}},er=function(e){e.serviceFactory("buildShlinkApiClient",Jn,"axios")},tr=n(8025),nr=n.n(tr),rr=n(2834),ir=function(){return function(e){var t=e.children,n=me();return(0,r.useEffect)((function(){scrollTo(0,0)}),[n]),(0,rr.jsx)(rr.Fragment,{children:t})}},ar={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M416 288h-95.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H416c17.67 0 32-14.33 32-32S433.7 288 416 288zM544 32h-223.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H544c17.67 0 32-14.33 32-32S561.7 32 544 32zM352 416h-32c-17.67 0-32 14.33-32 32s14.33 32 32 32h32c17.67 0 31.1-14.33 31.1-32S369.7 416 352 416zM480 160h-159.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H480c17.67 0 32-14.33 32-32S497.7 160 480 160zM192.4 330.7L160 366.1V64.03C160 46.33 145.7 32 128 32S96 46.33 96 64.03v302L63.6 330.7c-6.312-6.883-14.94-10.38-23.61-10.38c-7.719 0-15.47 2.781-21.61 8.414c-13.03 11.95-13.9 32.22-1.969 45.27l87.1 96.09c12.12 13.26 35.06 13.26 47.19 0l87.1-96.09c11.94-13.05 11.06-33.31-1.969-45.27C224.6 316.8 204.4 317.7 192.4 330.7z"]},or=ar,sr={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M447.1 256C447.1 273.7 433.7 288 416 288H109.3l105.4 105.4c12.5 12.5 12.5 32.75 0 45.25C208.4 444.9 200.2 448 192 448s-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25l160-160c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L109.3 224H416C433.7 224 447.1 238.3 447.1 256z"]},lr={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M480 256c0 123.4-100.5 223.9-223.9 223.9c-48.86 0-95.19-15.58-134.2-44.86c-14.14-10.59-17-30.66-6.391-44.81c10.61-14.09 30.69-16.97 44.8-6.375c27.84 20.91 61 31.94 95.89 31.94C344.3 415.8 416 344.1 416 256s-71.67-159.8-159.8-159.8C205.9 96.22 158.6 120.3 128.6 160H192c17.67 0 32 14.31 32 32S209.7 224 192 224H48c-17.67 0-32-14.31-32-32V48c0-17.69 14.33-32 32-32s32 14.31 32 32v70.23C122.1 64.58 186.1 32.11 256.1 32.11C379.5 32.11 480 132.6 480 256z"]},ur=lr,cr={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M416 288h-95.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H416c17.67 0 32-14.33 32-32S433.7 288 416 288zM352 416h-32c-17.67 0-32 14.33-32 32s14.33 32 32 32h32c17.67 0 31.1-14.33 31.1-32S369.7 416 352 416zM480 160h-159.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H480c17.67 0 32-14.33 32-32S497.7 160 480 160zM544 32h-223.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H544c17.67 0 32-14.33 32-32S561.7 32 544 32zM151.6 41.95c-12.12-13.26-35.06-13.26-47.19 0l-87.1 96.09C4.475 151.1 5.35 171.4 18.38 183.3c6.141 5.629 13.89 8.414 21.61 8.414c8.672 0 17.3-3.504 23.61-10.39L96 145.9v302C96 465.7 110.3 480 128 480s32-14.33 32-32.03V145.9L192.4 181.3C204.4 194.3 224.6 195.3 237.6 183.3c13.03-11.95 13.9-32.22 1.969-45.27L151.6 41.95z"]},dr=cr,fr={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","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 256zM99.5 144.8C77.15 176.1 64 214.5 64 256C64 362 149.1 448 256 448C297.5 448 335.9 434.9 367.2 412.5L99.5 144.8zM448 256C448 149.1 362 64 256 64C214.5 64 176.1 77.15 144.8 99.5L412.5 367.2C434.9 335.9 448 297.5 448 256V256z"]},hr={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.33 14.33 64 32 64H416C433.7 64 448 78.33 448 96C448 113.7 433.7 128 416 128H32C14.33 128 0 113.7 0 96zM0 256C0 238.3 14.33 224 32 224H416C433.7 224 448 238.3 448 256C448 273.7 433.7 288 416 288H32C14.33 288 0 273.7 0 256zM416 448H32C14.33 448 0 433.7 0 416C0 398.3 14.33 384 32 384H416C433.7 384 448 398.3 448 416C448 433.7 433.7 448 416 448z"]},pr={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M160 32V64H288V32C288 14.33 302.3 0 320 0C337.7 0 352 14.33 352 32V64H400C426.5 64 448 85.49 448 112V160H0V112C0 85.49 21.49 64 48 64H96V32C96 14.33 110.3 0 128 0C145.7 0 160 14.33 160 32zM0 192H448V464C448 490.5 426.5 512 400 512H48C21.49 512 0 490.5 0 464V192zM64 304C64 312.8 71.16 320 80 320H112C120.8 320 128 312.8 128 304V272C128 263.2 120.8 256 112 256H80C71.16 256 64 263.2 64 272V304zM192 304C192 312.8 199.2 320 208 320H240C248.8 320 256 312.8 256 304V272C256 263.2 248.8 256 240 256H208C199.2 256 192 263.2 192 272V304zM336 256C327.2 256 320 263.2 320 272V304C320 312.8 327.2 320 336 320H368C376.8 320 384 312.8 384 304V272C384 263.2 376.8 256 368 256H336zM64 432C64 440.8 71.16 448 80 448H112C120.8 448 128 440.8 128 432V400C128 391.2 120.8 384 112 384H80C71.16 384 64 391.2 64 400V432zM208 384C199.2 384 192 391.2 192 400V432C192 440.8 199.2 448 208 448H240C248.8 448 256 440.8 256 432V400C256 391.2 248.8 384 240 384H208zM320 432C320 440.8 327.2 448 336 448H368C376.8 448 384 440.8 384 432V400C384 391.2 376.8 384 368 384H336C327.2 384 320 391.2 320 400V432z"]},mr=pr,vr={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M310.6 246.6l-127.1 128C176.4 380.9 168.2 384 160 384s-16.38-3.125-22.63-9.375l-127.1-128C.2244 237.5-2.516 223.7 2.438 211.8S19.07 192 32 192h255.1c12.94 0 24.62 7.781 29.58 19.75S319.8 237.5 310.6 246.6z"]},gr={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M9.39 265.4l127.1-128C143.6 131.1 151.8 128 160 128s16.38 3.125 22.63 9.375l127.1 128c9.156 9.156 11.9 22.91 6.943 34.88S300.9 320 287.1 320H32.01c-12.94 0-24.62-7.781-29.58-19.75S.2333 274.5 9.39 265.4z"]},yr={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 16.58C304 7.555 310.1 0 320 0C443.7 0 544 100.3 544 224C544 233 536.4 240 527.4 240H304V16.58zM32 272C32 150.7 122.1 50.34 238.1 34.25C248.2 32.99 256 40.36 256 49.61V288L412.5 444.5C419.2 451.2 418.7 462.2 411 467.7C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zM558.4 288C567.6 288 575 295.8 573.8 305C566.1 360.9 539.1 410.6 499.9 447.3C493.9 452.1 484.5 452.5 478.7 446.7L320 288H558.4z"]},br={prefix:"fas",iconName:"check",icon:[448,512,[10004,10003],"f00c","M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"]},xr={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"]},_r={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"]},wr={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 352C309 352 352 309 352 256C352 202.1 309 160 256 160C202.1 160 160 202.1 160 256C160 309 202.1 352 256 352z"]},kr=wr,Cr={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"]},Sr=Cr,Er={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM168 232C154.7 232 144 242.7 144 256C144 269.3 154.7 280 168 280H344C357.3 280 368 269.3 368 256C368 242.7 357.3 232 344 232H168z"]},Mr=Er,Tr={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.15C227.7 49.08 218.1 66.9 201.1 71.94C121.8 95.55 64 169.1 64 255.1C64 362 149.1 447.1 256 447.1C362 447.1 448 362 448 255.1C448 169.1 390.2 95.55 310.9 71.94C293.9 66.9 284.3 49.08 289.3 32.15C294.4 15.21 312.2 5.562 329.1 10.6C434.9 42.07 512 139.1 512 255.1C512 397.4 397.4 511.1 256 511.1C114.6 511.1 0 397.4 0 255.1C0 139.1 77.15 42.07 182.9 10.6C199.8 5.562 217.6 15.21 222.7 32.15V32.15z"]},Or={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360C94.93 360 120 385.1 120 416C120 446.9 94.93 472 64 472C33.07 472 8 446.9 8 416C8 385.1 33.07 360 64 360zM64 200C94.93 200 120 225.1 120 256C120 286.9 94.93 312 64 312C33.07 312 8 286.9 8 256C8 225.1 33.07 200 64 200zM64 152C33.07 152 8 126.9 8 96C8 65.07 33.07 40 64 40C94.93 40 120 65.07 120 96C120 126.9 94.93 152 64 152z"]},Nr=Or,Pr={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M279.6 160.4C282.4 160.1 285.2 160 288 160C341 160 384 202.1 384 256C384 309 341 352 288 352C234.1 352 192 309 192 256C192 253.2 192.1 250.4 192.4 247.6C201.7 252.1 212.5 256 224 256C259.3 256 288 227.3 288 192C288 180.5 284.1 169.7 279.6 160.4zM480.6 112.6C527.4 156 558.7 207.1 573.5 243.7C576.8 251.6 576.8 260.4 573.5 268.3C558.7 304 527.4 355.1 480.6 399.4C433.5 443.2 368.8 480 288 480C207.2 480 142.5 443.2 95.42 399.4C48.62 355.1 17.34 304 2.461 268.3C-.8205 260.4-.8205 251.6 2.461 243.7C17.34 207.1 48.62 156 95.42 112.6C142.5 68.84 207.2 32 288 32C368.8 32 433.5 68.84 480.6 112.6V112.6zM288 112C208.5 112 144 176.5 144 256C144 335.5 208.5 400 288 400C367.5 400 432 335.5 432 256C432 176.5 367.5 112 288 112z"]},jr={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M384 128h-128V0L384 128zM256 160H384v304c0 26.51-21.49 48-48 48h-288C21.49 512 0 490.5 0 464v-416C0 21.49 21.49 0 48 0H224l.0039 128C224 145.7 238.3 160 256 160zM255 295L216 334.1V232c0-13.25-10.75-24-24-24S168 218.8 168 232v102.1L128.1 295C124.3 290.3 118.2 288 112 288S99.72 290.3 95.03 295c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94S264.4 285.7 255 295z"]},Dr=jr,Lr={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM288.1 344.1C284.3 349.7 278.2 352 272 352s-12.28-2.344-16.97-7.031L216 305.9V408c0 13.25-10.75 24-24 24s-24-10.75-24-24V305.9l-39.03 39.03c-9.375 9.375-24.56 9.375-33.94 0s-9.375-24.56 0-33.94l80-80c9.375-9.375 24.56-9.375 33.94 0l80 80C298.3 320.4 298.3 335.6 288.1 344.1z"]},Ar=Lr,Rr={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M286.3 155.1C287.4 161.9 288 168.9 288 175.1C288 183.1 287.4 190.1 286.3 196.9L308.5 216.7C315.5 223 318.4 232.1 314.7 241.7C312.4 246.1 309.9 252.2 307.1 257.2L304 262.6C300.1 267.6 297.7 272.4 294.2 277.1C288.5 284.7 278.5 287.2 269.5 284.2L241.2 274.9C230.5 283.8 218.3 290.9 205 295.9L198.1 324.9C197 334.2 189.8 341.6 180.4 342.8C173.7 343.6 166.9 344 160 344C153.1 344 146.3 343.6 139.6 342.8C130.2 341.6 122.1 334.2 121 324.9L114.1 295.9C101.7 290.9 89.5 283.8 78.75 274.9L50.53 284.2C41.54 287.2 31.52 284.7 25.82 277.1C22.28 272.4 18.98 267.5 15.94 262.5L12.92 257.2C10.13 252.2 7.592 247 5.324 241.7C1.62 232.1 4.458 223 11.52 216.7L33.7 196.9C32.58 190.1 31.1 183.1 31.1 175.1C31.1 168.9 32.58 161.9 33.7 155.1L11.52 135.3C4.458 128.1 1.62 119 5.324 110.3C7.592 104.1 10.13 99.79 12.91 94.76L15.95 89.51C18.98 84.46 22.28 79.58 25.82 74.89C31.52 67.34 41.54 64.83 50.53 67.79L78.75 77.09C89.5 68.25 101.7 61.13 114.1 56.15L121 27.08C122.1 17.8 130.2 10.37 139.6 9.231C146.3 8.418 153.1 8 160 8C166.9 8 173.7 8.418 180.4 9.23C189.8 10.37 197 17.8 198.1 27.08L205 56.15C218.3 61.13 230.5 68.25 241.2 77.09L269.5 67.79C278.5 64.83 288.5 67.34 294.2 74.89C297.7 79.56 300.1 84.42 304 89.44L307.1 94.83C309.9 99.84 312.4 105 314.7 110.3C318.4 119 315.5 128.1 308.5 135.3L286.3 155.1zM160 127.1C133.5 127.1 112 149.5 112 175.1C112 202.5 133.5 223.1 160 223.1C186.5 223.1 208 202.5 208 175.1C208 149.5 186.5 127.1 160 127.1zM484.9 478.3C478.1 479.4 471.1 480 464 480C456.9 480 449.9 479.4 443.1 478.3L423.3 500.5C416.1 507.5 407 510.4 398.3 506.7C393 504.4 387.8 501.9 382.8 499.1L377.4 496C372.4 492.1 367.6 489.7 362.9 486.2C355.3 480.5 352.8 470.5 355.8 461.5L365.1 433.2C356.2 422.5 349.1 410.3 344.1 397L315.1 390.1C305.8 389 298.4 381.8 297.2 372.4C296.4 365.7 296 358.9 296 352C296 345.1 296.4 338.3 297.2 331.6C298.4 322.2 305.8 314.1 315.1 313L344.1 306.1C349.1 293.7 356.2 281.5 365.1 270.8L355.8 242.5C352.8 233.5 355.3 223.5 362.9 217.8C367.6 214.3 372.5 210.1 377.5 207.9L382.8 204.9C387.8 202.1 392.1 199.6 398.3 197.3C407 193.6 416.1 196.5 423.3 203.5L443.1 225.7C449.9 224.6 456.9 224 464 224C471.1 224 478.1 224.6 484.9 225.7L504.7 203.5C511 196.5 520.1 193.6 529.7 197.3C535 199.6 540.2 202.1 545.2 204.9L550.5 207.9C555.5 210.1 560.4 214.3 565.1 217.8C572.7 223.5 575.2 233.5 572.2 242.5L562.9 270.8C571.8 281.5 578.9 293.7 583.9 306.1L612.9 313C622.2 314.1 629.6 322.2 630.8 331.6C631.6 338.3 632 345.1 632 352C632 358.9 631.6 365.7 630.8 372.4C629.6 381.8 622.2 389 612.9 390.1L583.9 397C578.9 410.3 571.8 422.5 562.9 433.2L572.2 461.5C575.2 470.5 572.7 480.5 565.1 486.2C560.4 489.7 555.6 492.1 550.6 496L545.2 499.1C540.2 501.9 534.1 504.4 529.7 506.7C520.1 510.4 511 507.5 504.7 500.5L484.9 478.3zM512 352C512 325.5 490.5 304 464 304C437.5 304 416 325.5 416 352C416 378.5 437.5 400 464 400C490.5 400 512 378.5 512 352z"]},Ir=Rr,zr={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256C352 278.2 350.8 299.6 348.7 320H163.3C161.2 299.6 159.1 278.2 159.1 256C159.1 233.8 161.2 212.4 163.3 192H348.7C350.8 212.4 352 233.8 352 256zM503.9 192C509.2 212.5 512 233.9 512 256C512 278.1 509.2 299.5 503.9 320H380.8C382.9 299.4 384 277.1 384 256C384 234 382.9 212.6 380.8 192H503.9zM493.4 160H376.7C366.7 96.14 346.9 42.62 321.4 8.442C399.8 29.09 463.4 85.94 493.4 160zM344.3 160H167.7C173.8 123.6 183.2 91.38 194.7 65.35C205.2 41.74 216.9 24.61 228.2 13.81C239.4 3.178 248.7 0 256 0C263.3 0 272.6 3.178 283.8 13.81C295.1 24.61 306.8 41.74 317.3 65.35C328.8 91.38 338.2 123.6 344.3 160H344.3zM18.61 160C48.59 85.94 112.2 29.09 190.6 8.442C165.1 42.62 145.3 96.14 135.3 160H18.61zM131.2 192C129.1 212.6 127.1 234 127.1 256C127.1 277.1 129.1 299.4 131.2 320H8.065C2.8 299.5 0 278.1 0 256C0 233.9 2.8 212.5 8.065 192H131.2zM194.7 446.6C183.2 420.6 173.8 388.4 167.7 352H344.3C338.2 388.4 328.8 420.6 317.3 446.6C306.8 470.3 295.1 487.4 283.8 498.2C272.6 508.8 263.3 512 255.1 512C248.7 512 239.4 508.8 228.2 498.2C216.9 487.4 205.2 470.3 194.7 446.6H194.7zM190.6 503.6C112.2 482.9 48.59 426.1 18.61 352H135.3C145.3 415.9 165.1 469.4 190.6 503.6V503.6zM321.4 503.6C346.9 469.4 366.7 415.9 376.7 352H493.4C463.4 426.1 399.8 482.9 321.4 503.6V503.6z"]},Fr={prefix:"fas",iconName:"house",icon:[576,512,[63498,63500,127968,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"]},Ur=Fr,Br={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M172.5 131.1C228.1 75.51 320.5 75.51 376.1 131.1C426.1 181.1 433.5 260.8 392.4 318.3L391.3 319.9C381 334.2 361 337.6 346.7 327.3C332.3 317 328.9 297 339.2 282.7L340.3 281.1C363.2 249 359.6 205.1 331.7 177.2C300.3 145.8 249.2 145.8 217.7 177.2L105.5 289.5C73.99 320.1 73.99 372 105.5 403.5C133.3 431.4 177.3 435 209.3 412.1L210.9 410.1C225.3 400.7 245.3 404 255.5 418.4C265.8 432.8 262.5 452.8 248.1 463.1L246.5 464.2C188.1 505.3 110.2 498.7 60.21 448.8C3.741 392.3 3.741 300.7 60.21 244.3L172.5 131.1zM467.5 380C411 436.5 319.5 436.5 263 380C213 330 206.5 251.2 247.6 193.7L248.7 192.1C258.1 177.8 278.1 174.4 293.3 184.7C307.7 194.1 311.1 214.1 300.8 229.3L299.7 230.9C276.8 262.1 280.4 306.9 308.3 334.8C339.7 366.2 390.8 366.2 422.3 334.8L534.5 222.5C566 191 566 139.1 534.5 108.5C506.7 80.63 462.7 76.99 430.7 99.9L429.1 101C414.7 111.3 394.7 107.1 384.5 93.58C374.2 79.2 377.5 59.21 391.9 48.94L393.5 47.82C451 6.731 529.8 13.25 579.8 63.24C636.3 119.7 636.3 211.3 579.8 267.7L467.5 380z"]},Vr={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M88 48C101.3 48 112 58.75 112 72V120C112 133.3 101.3 144 88 144H40C26.75 144 16 133.3 16 120V72C16 58.75 26.75 48 40 48H88zM480 64C497.7 64 512 78.33 512 96C512 113.7 497.7 128 480 128H192C174.3 128 160 113.7 160 96C160 78.33 174.3 64 192 64H480zM480 224C497.7 224 512 238.3 512 256C512 273.7 497.7 288 480 288H192C174.3 288 160 273.7 160 256C160 238.3 174.3 224 192 224H480zM480 384C497.7 384 512 398.3 512 416C512 433.7 497.7 448 480 448H192C174.3 448 160 433.7 160 416C160 398.3 174.3 384 192 384H480zM16 232C16 218.7 26.75 208 40 208H88C101.3 208 112 218.7 112 232V280C112 293.3 101.3 304 88 304H40C26.75 304 16 293.3 16 280V232zM88 368C101.3 368 112 378.7 112 392V440C112 453.3 101.3 464 88 464H40C26.75 464 16 453.3 16 440V392C16 378.7 26.75 368 40 368H88z"]},Hr={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M500.3 443.7l-119.7-119.7c27.22-40.41 40.65-90.9 33.46-144.7C401.8 87.79 326.8 13.32 235.2 1.723C99.01-15.51-15.51 99.01 1.724 235.2c11.6 91.64 86.08 166.7 177.6 178.9c53.8 7.189 104.3-6.236 144.7-33.46l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7zM79.1 208c0-70.58 57.42-128 128-128s128 57.42 128 128c0 70.58-57.42 128-128 128S79.1 278.6 79.1 208z"]},Wr=Hr,Zr={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120C408 174.6 334.9 271.9 302.8 311.1C295.1 321.6 280.9 321.6 273.2 311.1C241.1 271.9 168 174.6 168 120C168 53.73 221.7 0 288 0C354.3 0 408 53.73 408 120zM288 152C310.1 152 328 134.1 328 112C328 89.91 310.1 72 288 72C265.9 72 248 89.91 248 112C248 134.1 265.9 152 288 152zM425.6 179.8C426.1 178.6 426.6 177.4 427.1 176.1L543.1 129.7C558.9 123.4 576 135 576 152V422.8C576 432.6 570 441.4 560.9 445.1L416 503V200.4C419.5 193.5 422.7 186.7 425.6 179.8zM150.4 179.8C153.3 186.7 156.5 193.5 160 200.4V451.8L32.91 502.7C17.15 508.1 0 497.4 0 480.4V209.6C0 199.8 5.975 190.1 15.09 187.3L137.6 138.3C140 152.5 144.9 166.6 150.4 179.8H150.4zM327.8 331.1C341.7 314.6 363.5 286.3 384 255V504.3L192 449.4V255C212.5 286.3 234.3 314.6 248.2 331.1C268.7 357.6 307.3 357.6 327.8 331.1L327.8 331.1z"]},Yr=Zr,qr={prefix:"fas",iconName:"moon",icon:[512,512,[127769,9214],"f186","M32 256c0-123.8 100.3-224 223.8-224c11.36 0 29.7 1.668 40.9 3.746c9.616 1.777 11.75 14.63 3.279 19.44C245 86.5 211.2 144.6 211.2 207.8c0 109.7 99.71 193 208.3 172.3c9.561-1.805 16.28 9.324 10.11 16.95C387.9 448.6 324.8 480 255.8 480C132.1 480 32 379.6 32 256z"]},Gr={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 255.1C512 256.9 511.1 257.8 511.1 258.7C511.6 295.2 478.4 319.1 441.9 319.1H344C317.5 319.1 296 341.5 296 368C296 371.4 296.4 374.7 297 377.9C299.2 388.1 303.5 397.1 307.9 407.8C313.9 421.6 320 435.3 320 449.8C320 481.7 298.4 510.5 266.6 511.8C263.1 511.9 259.5 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256V255.1zM96 255.1C78.33 255.1 64 270.3 64 287.1C64 305.7 78.33 319.1 96 319.1C113.7 319.1 128 305.7 128 287.1C128 270.3 113.7 255.1 96 255.1zM128 191.1C145.7 191.1 160 177.7 160 159.1C160 142.3 145.7 127.1 128 127.1C110.3 127.1 96 142.3 96 159.1C96 177.7 110.3 191.1 128 191.1zM256 63.1C238.3 63.1 224 78.33 224 95.1C224 113.7 238.3 127.1 256 127.1C273.7 127.1 288 113.7 288 95.1C288 78.33 273.7 63.1 256 63.1zM384 191.1C401.7 191.1 416 177.7 416 159.1C416 142.3 401.7 127.1 384 127.1C366.3 127.1 352 142.3 352 159.1C352 177.7 366.3 191.1 384 191.1z"]},Kr={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.32C387.7-5.678 428.3-5.678 453.3 19.32L492.7 58.75C517.7 83.74 517.7 124.3 492.7 149.3L444.3 197.7L314.3 67.72L362.7 19.32zM421.7 220.3L188.5 453.4C178.1 463.8 165.2 471.5 151.1 475.6L30.77 511C22.35 513.5 13.24 511.2 7.03 504.1C.8198 498.8-1.502 489.7 .976 481.2L36.37 360.9C40.53 346.8 48.16 333.9 58.57 323.5L291.7 90.34L421.7 220.3z"]},Qr={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M490.3 40.4C512.2 62.27 512.2 97.73 490.3 119.6L460.3 149.7L362.3 51.72L392.4 21.66C414.3-.2135 449.7-.2135 471.6 21.66L490.3 40.4zM172.4 241.7L339.7 74.34L437.7 172.3L270.3 339.6C264.2 345.8 256.7 350.4 248.4 353.2L159.6 382.8C150.1 385.6 141.5 383.4 135 376.1C128.6 370.5 126.4 361 129.2 352.4L158.8 263.6C161.6 255.3 166.2 247.8 172.4 241.7V241.7zM192 63.1C209.7 63.1 224 78.33 224 95.1C224 113.7 209.7 127.1 192 127.1H96C78.33 127.1 64 142.3 64 159.1V416C64 433.7 78.33 448 96 448H352C369.7 448 384 433.7 384 416V319.1C384 302.3 398.3 287.1 416 287.1C433.7 287.1 448 302.3 448 319.1V416C448 469 405 512 352 512H96C42.98 512 0 469 0 416V159.1C0 106.1 42.98 63.1 96 63.1H192z"]},Xr=Qr,$r={prefix:"fas",iconName:"pencil",icon:[512,512,[61504,9999,"pencil-alt"],"f303","M421.7 220.3L188.5 453.4L154.6 419.5L158.1 416H112C103.2 416 96 408.8 96 400V353.9L92.51 357.4C87.78 362.2 84.31 368 82.42 374.4L59.44 452.6L137.6 429.6C143.1 427.7 149.8 424.2 154.6 419.5L188.5 453.4C178.1 463.8 165.2 471.5 151.1 475.6L30.77 511C22.35 513.5 13.24 511.2 7.03 504.1C.8198 498.8-1.502 489.7 .976 481.2L36.37 360.9C40.53 346.8 48.16 333.9 58.57 323.5L291.7 90.34L421.7 220.3zM492.7 58.75C517.7 83.74 517.7 124.3 492.7 149.3L444.3 197.7L314.3 67.72L362.7 19.32C387.7-5.678 428.3-5.678 453.3 19.32L492.7 58.75z"]},Jr=$r,ei={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M320 32c0-17.62-14.38-32-32-32s-32 14.38-32 32v96h64V32zM368 159.1h-352c-8.875 0-16 7.125-16 16v32c0 8.875 7.125 16 16 16H32V256c0 76 53.5 141.6 128 156.8V512h64v-99.25C298.5 397.6 352 332 352 256V223.1h16c8.875 0 16-7.125 16-16v-32C384 167.1 376.9 159.1 368 159.1zM128 32c0-17.62-14.38-32-32-32S64 14.38 64 32v96h64V32z"]},ti={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"]},ni={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M144 32C170.5 32 192 53.49 192 80V176C192 202.5 170.5 224 144 224H48C21.49 224 0 202.5 0 176V80C0 53.49 21.49 32 48 32H144zM128 96H64V160H128V96zM144 288C170.5 288 192 309.5 192 336V432C192 458.5 170.5 480 144 480H48C21.49 480 0 458.5 0 432V336C0 309.5 21.49 288 48 288H144zM128 352H64V416H128V352zM256 80C256 53.49 277.5 32 304 32H400C426.5 32 448 53.49 448 80V176C448 202.5 426.5 224 400 224H304C277.5 224 256 202.5 256 176V80zM320 160H384V96H320V160zM352 448H384V480H352V448zM448 480H416V448H448V480zM416 288H448V416H352V384H320V480H256V288H352V320H416V288z"]},ri={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M9.375 233.4C3.375 239.4 0 247.5 0 256v128c0 8.5 3.375 16.62 9.375 22.62S23.5 416 32 416h32V224H32C23.5 224 15.38 227.4 9.375 233.4zM464 96H352V32c0-17.62-14.38-32-32-32S288 14.38 288 32v64H176C131.8 96 96 131.8 96 176V448c0 35.38 28.62 64 64 64h320c35.38 0 64-28.62 64-64V176C544 131.8 508.3 96 464 96zM256 416H192v-32h64V416zM224 296C201.9 296 184 278.1 184 256S201.9 216 224 216S264 233.9 264 256S246.1 296 224 296zM352 416H288v-32h64V416zM448 416h-64v-32h64V416zM416 296c-22.12 0-40-17.88-40-40S393.9 216 416 216S456 233.9 456 256S438.1 296 416 296zM630.6 233.4C624.6 227.4 616.5 224 608 224h-32v192h32c8.5 0 16.62-3.375 22.62-9.375S640 392.5 640 384V256C640 247.5 636.6 239.4 630.6 233.4z"]},ii={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M449.9 39.96l-48.5 48.53C362.5 53.19 311.4 32 256 32C161.5 32 78.59 92.34 49.58 182.2c-5.438 16.81 3.797 34.88 20.61 40.28c16.97 5.5 34.86-3.812 40.3-20.59C130.9 138.5 189.4 96 256 96c37.96 0 73 14.18 100.2 37.8L311.1 178C295.1 194.8 306.8 223.4 330.4 224h146.9C487.7 223.7 496 215.3 496 204.9V59.04C496 34.99 466.9 22.95 449.9 39.96zM441.8 289.6c-16.94-5.438-34.88 3.812-40.3 20.59C381.1 373.5 322.6 416 256 416c-37.96 0-73-14.18-100.2-37.8L200 334C216.9 317.2 205.2 288.6 181.6 288H34.66C24.32 288.3 16 296.7 16 307.1v145.9c0 24.04 29.07 36.08 46.07 19.07l48.5-48.53C149.5 458.8 200.6 480 255.1 480c94.45 0 177.4-60.34 206.4-150.2C467.9 313 458.6 294.1 441.8 289.6z"]},ai=ii,oi={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 288H32c-17.62 0-32 14.38-32 32v128c0 17.62 14.38 32 32 32h448c17.62 0 32-14.38 32-32v-128C512 302.4 497.6 288 480 288zM352 408c-13.25 0-24-10.75-24-24s10.75-24 24-24s24 10.75 24 24S365.3 408 352 408zM416 408c-13.25 0-24-10.75-24-24s10.75-24 24-24s24 10.75 24 24S429.3 408 416 408zM480 32H32C14.38 32 0 46.38 0 64v128c0 17.62 14.38 32 32 32h448c17.62 0 32-14.38 32-32V64C512 46.38 497.6 32 480 32zM352 152c-13.25 0-24-10.75-24-24S338.8 104 352 104S376 114.8 376 128S365.3 152 352 152zM416 152c-13.25 0-24-10.75-24-24S402.8 104 416 104S440 114.8 440 128S429.3 152 416 152z"]},si={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M256 159.1c-53.02 0-95.1 42.98-95.1 95.1S202.1 351.1 256 351.1s95.1-42.98 95.1-95.1S309 159.1 256 159.1zM509.3 347L446.1 255.1l63.15-91.01c6.332-9.125 1.104-21.74-9.826-23.72l-109-19.7l-19.7-109c-1.975-10.93-14.59-16.16-23.72-9.824L256 65.89L164.1 2.736c-9.125-6.332-21.74-1.107-23.72 9.824L121.6 121.6L12.56 141.3C1.633 143.2-3.596 155.9 2.736 164.1L65.89 256l-63.15 91.01c-6.332 9.125-1.105 21.74 9.824 23.72l109 19.7l19.7 109c1.975 10.93 14.59 16.16 23.72 9.824L256 446.1l91.01 63.15c9.127 6.334 21.75 1.107 23.72-9.822l19.7-109l109-19.7C510.4 368.8 515.6 356.1 509.3 347zM256 383.1c-70.69 0-127.1-57.31-127.1-127.1c0-70.69 57.31-127.1 127.1-127.1s127.1 57.3 127.1 127.1C383.1 326.7 326.7 383.1 256 383.1z"]},li={prefix:"fas",iconName:"table-cells-large",icon:[512,512,["th-large"],"f009","M448 32C483.3 32 512 60.65 512 96V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM448 96H288V224H448V96zM448 288H288V416H448V288zM224 224V96H64V224H224zM64 416H224V288H64V416z"]},ui=li,ci={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M472.8 168.4C525.1 221.4 525.1 306.6 472.8 359.6L360.8 472.9C351.5 482.3 336.3 482.4 326.9 473.1C317.4 463.8 317.4 448.6 326.7 439.1L438.6 325.9C472.5 291.6 472.5 236.4 438.6 202.1L310.9 72.87C301.5 63.44 301.6 48.25 311.1 38.93C320.5 29.61 335.7 29.7 344.1 39.13L472.8 168.4zM.0003 229.5V80C.0003 53.49 21.49 32 48 32H197.5C214.5 32 230.7 38.74 242.7 50.75L410.7 218.7C435.7 243.7 435.7 284.3 410.7 309.3L277.3 442.7C252.3 467.7 211.7 467.7 186.7 442.7L18.75 274.7C6.743 262.7 0 246.5 0 229.5L.0003 229.5zM112 112C94.33 112 80 126.3 80 144C80 161.7 94.33 176 112 176C129.7 176 144 161.7 144 144C144 126.3 129.7 112 112 112z"]},di={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.69C140.6 6.848 151.7 0 163.8 0H284.2C296.3 0 307.4 6.848 312.8 17.69L320 32H416C433.7 32 448 46.33 448 64C448 81.67 433.7 96 416 96H32C14.33 96 0 81.67 0 64C0 46.33 14.33 32 32 32H128L135.2 17.69zM394.8 466.1C393.2 492.3 372.3 512 346.9 512H101.1C75.75 512 54.77 492.3 53.19 466.1L31.1 128H416L394.8 466.1z"]},fi={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M384 320c-17.67 0-32 14.33-32 32v96H64V160h96c17.67 0 32-14.32 32-32s-14.33-32-32-32L64 96c-35.35 0-64 28.65-64 64V448c0 35.34 28.65 64 64 64h288c35.35 0 64-28.66 64-64v-96C416 334.3 401.7 320 384 320zM488 0H352c-12.94 0-24.62 7.797-29.56 19.75c-4.969 11.97-2.219 25.72 6.938 34.88L370.8 96L169.4 297.4c-12.5 12.5-12.5 32.75 0 45.25C175.6 348.9 183.8 352 192 352s16.38-3.125 22.62-9.375L416 141.3l41.38 41.38c9.156 9.141 22.88 11.84 34.88 6.938C504.2 184.6 512 172.9 512 160V24C512 10.74 501.3 0 488 0z"]},hi=fi,pi={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"]},mi=pi;function vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(n),!0).forEach((function(t){xi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yi(e){return yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yi(e)}function bi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(l){s=!0,i=l}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}(e,t)||ki(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wi(e){return function(e){if(Array.isArray(e))return Ci(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ki(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ki(e,t){if(e){if("string"===typeof e)return Ci(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ci(e,t):void 0}}function Ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Si=function(){},Ei={},Mi={},Ti=null,Oi={mark:Si,measure:Si};try{"undefined"!==typeof window&&(Ei=window),"undefined"!==typeof document&&(Mi=document),"undefined"!==typeof MutationObserver&&(Ti=MutationObserver),"undefined"!==typeof performance&&(Oi=performance)}catch(oR){}var Ni=(Ei.navigator||{}).userAgent,Pi=void 0===Ni?"":Ni,ji=Ei,Di=Mi,Li=Ti,Ai=Oi,Ri=(ji.document,!!Di.documentElement&&!!Di.head&&"function"===typeof Di.addEventListener&&"function"===typeof Di.createElement),Ii=~Pi.indexOf("MSIE")||~Pi.indexOf("Trident/"),zi="svg-inline--fa",Fi="data-fa-i2svg",Ui="data-fa-pseudo-element",Bi="data-prefix",Vi="data-icon",Hi="fontawesome-i2svg",Wi=["HTML","HEAD","STYLE","SCRIPT"],Zi=function(){try{return!0}catch(oR){return!1}}(),Yi={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",fa:"solid"},qi={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},Gi={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},Ki={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},Qi=/fa[srltdbk\-\ ]/,Xi="fa-layers-text",$i=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,Ji={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},ea=[1,2,3,4,5,6,7,8,9,10],ta=ea.concat([11,12,13,14,15,16,17,18,19,20]),na=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ra="duotone-group",ia="swap-opacity",aa="primary",oa="secondary",sa=[].concat(wi(Object.keys(qi)),["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",ra,ia,aa,oa]).concat(ea.map((function(e){return"".concat(e,"x")}))).concat(ta.map((function(e){return"w-".concat(e)}))),la=ji.FontAwesomeConfig||{};if(Di&&"function"===typeof Di.querySelector){[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=_i(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=Di.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));void 0!==i&&null!==i&&(la[r]=i)}))}var ua=gi(gi({},{familyPrefix:"fa",styleDefault:"solid",replacementClass:zi,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0}),la);ua.autoReplaceSvg||(ua.observeMutations=!1);var ca={};Object.keys(ua).forEach((function(e){Object.defineProperty(ca,e,{enumerable:!0,set:function(t){ua[e]=t,da.forEach((function(e){return e(ca)}))},get:function(){return ua[e]}})})),ji.FontAwesomeConfig=ca;var da=[];var fa=16,ha={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function pa(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function ma(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function va(e){return e.classList?ma(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function ga(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function ya(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function ba(e){return e.size!==ha.size||e.x!==ha.x||e.y!==ha.y||e.rotate!==ha.rotate||e.flipX||e.flipY}function xa(){var e="fa",t=zi,n=ca.familyPrefix,r=ca.replacementClass,i=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -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));\n 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));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -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));\n 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));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var _a=!1;function wa(){ca.autoAddCss&&!_a&&(!function(e){if(e&&Ri){var t=Di.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Di.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}Di.head.insertBefore(t,r)}}(xa()),_a=!0)}var ka={mixout:function(){return{dom:{css:xa,insertCss:wa}}},hooks:function(){return{beforeDOMElementCreation:function(){wa()},beforeI2svg:function(){wa()}}}},Ca=ji||{};Ca.___FONT_AWESOME___||(Ca.___FONT_AWESOME___={}),Ca.___FONT_AWESOME___.styles||(Ca.___FONT_AWESOME___.styles={}),Ca.___FONT_AWESOME___.hooks||(Ca.___FONT_AWESOME___.hooks={}),Ca.___FONT_AWESOME___.shims||(Ca.___FONT_AWESOME___.shims=[]);var Sa=Ca.___FONT_AWESOME___,Ea=[],Ma=!1;function Ta(e){Ri&&(Ma?setTimeout(e,0):Ea.push(e))}function Oa(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,a=void 0===i?[]:i;return"string"===typeof e?ga(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(ga(e[n]),'" ')}),"").trim()}(r),">").concat(a.map(Oa).join(""),"</").concat(t,">")}function Na(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Ri&&((Ma=(Di.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Di.readyState))||Di.addEventListener("DOMContentLoaded",(function e(){Di.removeEventListener("DOMContentLoaded",e),Ma=1,Ea.map((function(e){return e()}))})));var Pa=function(e,t,n,r){var i,a,o,s=Object.keys(e),l=s.length,u=void 0!==r?function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}}(t,r):t;for(void 0===n?(i=1,o=e[s[0]]):(i=0,o=n);i<l;i++)o=u(o,e[a=s[i]],a,e);return o};function ja(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function Da(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function La(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,a=Da(t);"function"!==typeof Sa.hooks.addPack||i?Sa.styles[e]=gi(gi({},Sa.styles[e]||{}),a):Sa.hooks.addPack(e,Da(t)),"fas"===e&&La("fa",t)}var Aa=Sa.styles,Ra=Sa.shims,Ia=Object.values(Gi),za=null,Fa={},Ua={},Ba={},Va={},Ha={},Wa=Object.keys(Yi);function Za(e,t){var n,r=t.split("-"),i=r[0],a=r.slice(1).join("-");return i!==e||""===a||(n=a,~sa.indexOf(n))?null:a}var Ya,qa=function(){var e=function(e){return Pa(Aa,(function(t,n,r){return t[r]=Pa(n,e,{}),t}),{})};Fa=e((function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter((function(e){return"number"===typeof e})).forEach((function(t){e[t.toString(16)]=n}));return e})),Ua=e((function(e,t,n){(e[n]=n,t[2])&&t[2].filter((function(e){return"string"===typeof e})).forEach((function(t){e[t]=n}));return e})),Ha=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in Aa||ca.autoFetchSvg,n=Pa(Ra,(function(e,n){var r=n[0],i=n[1],a=n[2];return"far"!==i||t||(i="fas"),"string"===typeof r&&(e.names[r]={prefix:i,iconName:a}),"number"===typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e}),{names:{},unicodes:{}});Ba=n.names,Va=n.unicodes,za=$a(ca.styleDefault)};function Ga(e,t){return(Fa[e]||{})[t]}function Ka(e,t){return(Ha[e]||{})[t]}function Qa(e){return Ba[e]||{prefix:null,iconName:null}}function Xa(){return za}Ya=function(e){za=$a(e.styleDefault)},da.push(Ya),qa();function $a(e){var t=qi[e]||qi[Yi[e]],n=e in Sa.styles?e:null;return t||n||null}function Ja(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.skipLookups,r=void 0!==n&&n,i=null,a=e.reduce((function(e,t){var n=Za(ca.familyPrefix,t);if(Aa[t]?(t=Ia.includes(t)?Ki[t]:t,i=t,e.prefix=t):Wa.indexOf(t)>-1?(i=t,e.prefix=$a(t)):n?e.iconName=n:t!==ca.replacementClass&&e.rest.push(t),!r&&e.prefix&&e.iconName){var a="fa"===i?Qa(e.iconName):{},o=Ka(e.prefix,e.iconName);a.prefix&&(i=null),e.iconName=a.iconName||o||e.iconName,e.prefix=a.prefix||e.prefix,"far"!==e.prefix||Aa.far||!Aa.fas||ca.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return"fa"!==a.prefix&&"fa"!==i||(a.prefix=Xa()||"fas"),a}var eo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach((function(t){e.definitions[t]=gi(gi({},e.definitions[t]||{}),i[t]),La(t,i[t]);var n=Gi[t];n&&La(n,i[t]),qa()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],i=r.prefix,a=r.iconName,o=r.icon,s=o[2];e[i]||(e[i]={}),s.length>0&&s.forEach((function(t){"string"===typeof t&&(e[i][t]=o)})),e[i][a]=o})),e}}],n&&bi(t.prototype,n),r&&bi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),to=[],no={},ro={},io=Object.keys(ro);function ao(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=no[e]||[];return a.forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function oo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=no[e]||[];i.forEach((function(e){e.apply(null,n)}))}function so(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ro[e]?ro[e].apply(null,t):void 0}function lo(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Xa();if(t)return t=Ka(n,t)||t,Na(uo.definitions,n,t)||Na(Sa.styles,n,t)}var uo=new eo,co={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ri?(oo("beforeI2svg",e),so("pseudoElements2svg",e),so("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot;!1===ca.autoReplaceSvg&&(ca.autoReplaceSvg=!0),ca.observeMutations=!0,Ta((function(){po({autoReplaceSvgRoot:t}),oo("watch",e)}))}},fo={icon:function(e){if(null===e)return null;if("object"===yi(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Ka(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=$a(e[0]);return{prefix:n,iconName:Ka(n,t)||t}}if("string"===typeof e&&(e.indexOf("".concat(ca.familyPrefix,"-"))>-1||e.match(Qi))){var r=Ja(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||Xa(),iconName:Ka(r.prefix,r.iconName)||r.iconName}}if("string"===typeof e){var i=Xa();return{prefix:i,iconName:Ka(i,e)||e}}}},ho={noAuto:function(){ca.autoReplaceSvg=!1,ca.observeMutations=!1,oo("noAuto")},config:ca,dom:co,parse:fo,library:uo,findIconDefinition:lo,toHtml:Oa},po=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?Di:t;(Object.keys(Sa.styles).length>0||ca.autoFetchSvg)&&Ri&&ca.autoReplaceSvg&&ho.dom.i2svg({node:n})};function mo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return Oa(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(Ri){var t=Di.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function vo(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,l=e.title,u=e.maskId,c=e.titleId,d=e.extra,f=e.watchable,h=void 0!==f&&f,p=r.found?r:n,m=p.width,v=p.height,g="fak"===i,y=[ca.replacementClass,a?"".concat(ca.familyPrefix,"-").concat(a):""].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),b={children:[],attributes:gi(gi({},d.attributes),{},{"data-prefix":i,"data-icon":a,class:y,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(v)})},x=g&&!~d.classes.indexOf("fa-fw")?{width:"".concat(m/v*16*.0625,"em")}:{};h&&(b.attributes[Fi]=""),l&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||pa())},children:[l]}),delete b.attributes.title);var _=gi(gi({},b),{},{prefix:i,iconName:a,main:n,mask:r,maskId:u,transform:o,symbol:s,styles:gi(gi({},x),d.styles)}),w=r.found&&n.found?so("generateAbstractMask",_)||{children:[],attributes:{}}:so("generateAbstractIcon",_)||{children:[],attributes:{}},k=w.children,C=w.attributes;return _.children=k,_.attributes=C,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=!0===a?"".concat(t,"-").concat(ca.familyPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:gi(gi({},i),{},{id:o}),children:r}]}]}(_):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(ba(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=ya(gi(gi({},a),{},{"transform-origin":"".concat(s.x+o.x/16,"em ").concat(s.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(_)}function go(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.title,o=e.extra,s=e.watchable,l=void 0!==s&&s,u=gi(gi(gi({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});l&&(u[Fi]="");var c=gi({},o.styles);ba(i)&&(c.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,i=e.height,a=void 0===i?16:i,o=e.startCentered,s=void 0!==o&&o,l="";return l+=s&&Ii?"translate(".concat(t.x/fa-r/2,"em, ").concat(t.y/fa-a/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/fa,"em), calc(-50% + ").concat(t.y/fa,"em)) "):"translate(".concat(t.x/fa,"em, ").concat(t.y/fa,"em) "),l+="scale(".concat(t.size/fa*(t.flipX?-1:1),", ").concat(t.size/fa*(t.flipY?-1:1),") "),l+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var d=ya(c);d.length>0&&(u.style=d);var f=[];return f.push({tag:"span",attributes:u,children:[t]}),a&&f.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),f}function yo(e){var t=e.content,n=e.title,r=e.extra,i=gi(gi(gi({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=ya(r.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var bo=Sa.styles;function xo(e){var t=e[0],n=e[1],r=_i(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(ca.familyPrefix,"-").concat(ra)},children:[{tag:"path",attributes:{class:"".concat(ca.familyPrefix,"-").concat(oa),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ca.familyPrefix,"-").concat(aa),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var _o={found:!1,width:512,height:512};function wo(e,t){var n=t;return"fa"===t&&null!==ca.styleDefault&&(t=Xa()),new Promise((function(r,i){so("missingIconAbstract");if("fa"===n){var a=Qa(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&bo[t]&&bo[t][e])return r(xo(bo[t][e]));!function(e,t){Zi||ca.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(gi(gi({},_o),{},{icon:ca.showMissingIcons&&e&&so("missingIconAbstract")||{}}))}))}var ko=function(){},Co=ca.measurePerformance&&Ai&&Ai.mark&&Ai.measure?Ai:{mark:ko,measure:ko},So='FA "6.0.0"',Eo=function(e){Co.mark("".concat(So," ").concat(e," ends")),Co.measure("".concat(So," ").concat(e),"".concat(So," ").concat(e," begins"),"".concat(So," ").concat(e," ends"))},Mo=function(e){return Co.mark("".concat(So," ").concat(e," begins")),function(){return Eo(e)}},To=function(){};function Oo(e){return"string"===typeof(e.getAttribute?e.getAttribute(Fi):null)}function No(e){return Di.createElementNS("http://www.w3.org/2000/svg",e)}function Po(e){return Di.createElement(e)}function jo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ceFn,r=void 0===n?"svg"===e.tag?No:Po:n;if("string"===typeof e)return Di.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach((function(t){i.setAttribute(t,e.attributes[t])}));var a=e.children||[];return a.forEach((function(e){i.appendChild(jo(e,{ceFn:r}))})),i}var Do={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(jo(e),t)})),null===t.getAttribute(Fi)&&ca.keepOriginalSource){var n=Di.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~va(t).indexOf(ca.replacementClass))return Do.replace(e);var r=new RegExp("".concat(ca.familyPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce((function(e,t){return t===ca.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var a=n.map((function(e){return Oa(e)})).join("\n");t.setAttribute(Fi,""),t.innerHTML=a}};function Lo(e){e()}function Ao(e,t){var n="function"===typeof t?t:To;if(0===e.length)n();else{var r=Lo;"async"===ca.mutateApproach&&(r=ji.requestAnimationFrame||Lo),r((function(){var t=!0===ca.autoReplaceSvg?Do.replace:Do[ca.autoReplaceSvg]||Do.replace,r=Mo("mutate");e.map(t),r(),n()}))}}var Ro=!1;function Io(){Ro=!0}function zo(){Ro=!1}var Fo=null;function Uo(e){if(Li&&ca.observeMutations){var t=e.treeCallback,n=void 0===t?To:t,r=e.nodeCallback,i=void 0===r?To:r,a=e.pseudoElementsCallback,o=void 0===a?To:a,s=e.observeMutationsRoot,l=void 0===s?Di:s;Fo=new Li((function(e){if(!Ro){var t=Xa();ma(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Oo(e.addedNodes[0])&&(ca.searchPseudoElements&&o(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&ca.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&Oo(e.target)&&~na.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Bi):null,n=e.getAttribute?e.getAttribute(Vi):null;return t&&n}(e.target)){var r=Ja(va(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(Bi,a||t),s&&e.target.setAttribute(Vi,s)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(ca.replacementClass)&&i(e.target);var l}))}})),Ri&&Fo.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Bo(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}function Vo(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=Ja(va(e));return i.prefix||(i.prefix=Xa()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||i.prefix&&r.length>0&&(i.iconName=function(e,t){return(Ua[e]||{})[t]}(i.prefix,e.innerText)||Ga(i.prefix,ja(e.innerText))),i}function Ho(e){var t=ma(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ca.autoA11y&&(n?t["aria-labelledby"]="".concat(ca.replacementClass,"-title-").concat(r||pa()):(t["aria-hidden"]="true",t.focusable="false")),t}function Wo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=Vo(e),r=n.iconName,i=n.prefix,a=n.rest,o=Ho(e),s=ao("parseNodeAttributes",{},e),l=t.styleParser?Bo(e):[];return gi({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:ha,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:l,attributes:o}},s)}var Zo=Sa.styles;function Yo(e){var t="nest"===ca.autoReplaceSvg?Wo(e,{styleParser:!1}):Wo(e);return~t.extra.classes.indexOf(Xi)?so("generateLayersText",e,t):so("generateSvgReplacementMutation",e,t)}function qo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Ri)return Promise.resolve();var n=Di.documentElement.classList,r=function(e){return n.add("".concat(Hi,"-").concat(e))},i=function(e){return n.remove("".concat(Hi,"-").concat(e))},a=ca.autoFetchSvg?Object.keys(Yi):Object.keys(Zo),o=[".".concat(Xi,":not([").concat(Fi,"])")].concat(a.map((function(e){return".".concat(e,":not([").concat(Fi,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=ma(e.querySelectorAll(o))}catch(oR){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var l=Mo("onTree"),u=s.reduce((function(e,t){try{var n=Yo(t);n&&e.push(n)}catch(oR){Zi||"MissingIcon"===oR.name&&console.error(oR)}return e}),[]);return new Promise((function(e,n){Promise.all(u).then((function(n){Ao(n,(function(){r("active"),r("complete"),i("pending"),"function"===typeof t&&t(),l(),e()}))})).catch((function(e){l(),n(e)}))}))}function Go(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Yo(e).then((function(e){e&&Ao([e],t)}))}var Ko=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?ha:n,i=t.symbol,a=void 0!==i&&i,o=t.mask,s=void 0===o?null:o,l=t.maskId,u=void 0===l?null:l,c=t.title,d=void 0===c?null:c,f=t.titleId,h=void 0===f?null:f,p=t.classes,m=void 0===p?[]:p,v=t.attributes,g=void 0===v?{}:v,y=t.styles,b=void 0===y?{}:y;if(e){var x=e.prefix,_=e.iconName,w=e.icon;return mo(gi({type:"icon"},e),(function(){return oo("beforeDOMElementCreation",{iconDefinition:e,params:t}),ca.autoA11y&&(d?g["aria-labelledby"]="".concat(ca.replacementClass,"-title-").concat(h||pa()):(g["aria-hidden"]="true",g.focusable="false")),vo({icons:{main:xo(w),mask:s?xo(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:x,iconName:_,transform:gi(gi({},ha),r),symbol:a,title:d,maskId:u,titleId:h,extra:{attributes:g,styles:b,classes:m}})}))}},Qo={mixout:function(){return{icon:(e=Ko,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:lo(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:lo(i||{})),e(r,gi(gi({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=qo,e.nodeCallback=Go,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?Di:t,r=e.callback;return qo(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,a=t.prefix,o=t.transform,s=t.symbol,l=t.mask,u=t.maskId,c=t.extra;return new Promise((function(t,d){Promise.all([wo(n,a),l.iconName?wo(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(l){var d=_i(l,2),f=d[0],h=d[1];t([e,vo({icons:{main:f,mask:h},prefix:a,iconName:n,transform:o,symbol:s,maskId:u,title:r,titleId:i,extra:c,watchable:!0})])})).catch(d)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.transform,o=ya(e.styles);return o.length>0&&(r.style=o),ba(a)&&(t=so("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},Xo={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return mo({type:"layer"},(function(){oo("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(ca.familyPrefix,"-layers")].concat(wi(r)).join(" ")},children:n}]}))}}}},$o={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,i=t.classes,a=void 0===i?[]:i,o=t.attributes,s=void 0===o?{}:o,l=t.styles,u=void 0===l?{}:l;return mo({type:"counter",content:e},(function(){return oo("beforeDOMElementCreation",{content:e,params:t}),yo({content:e.toString(),title:r,extra:{attributes:s,styles:u,classes:["".concat(ca.familyPrefix,"-layers-counter")].concat(wi(a))}})}))}}}},Jo={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?ha:n,i=t.title,a=void 0===i?null:i,o=t.classes,s=void 0===o?[]:o,l=t.attributes,u=void 0===l?{}:l,c=t.styles,d=void 0===c?{}:c;return mo({type:"text",content:e},(function(){return oo("beforeDOMElementCreation",{content:e,params:t}),go({content:e,transform:gi(gi({},ha),r),title:a,extra:{attributes:u,styles:d,classes:["".concat(ca.familyPrefix,"-layers-text")].concat(wi(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,a=null,o=null;if(Ii){var s=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();a=l.width/s,o=l.height/s}return ca.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,go({content:e.innerHTML,width:a,height:o,transform:r,title:n,extra:i,watchable:!0})])}}},es=new RegExp('"',"ug"),ts=[1105920,1112319];function ns(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,i){if(null!==e.getAttribute(n))return r();var a=ma(e.children).filter((function(e){return e.getAttribute(Ui)===t}))[0],o=ji.getComputedStyle(e,t),s=o.getPropertyValue("font-family").match($i),l=o.getPropertyValue("font-weight"),u=o.getPropertyValue("content");if(a&&!s)return e.removeChild(a),r();if(s&&"none"!==u&&""!==u){var c=o.getPropertyValue("content"),d=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?qi[s[2].toLowerCase()]:Ji[l],f=function(e){var t=e.replace(es,""),n=function(e,t){var n,r=e.length,i=e.charCodeAt(t);return i>=55296&&i<=56319&&r>t+1&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}(t,0),r=n>=ts[0]&&n<=ts[1],i=2===t.length&&t[0]===t[1];return{value:ja(i?t[0]:t),isSecondary:r||i}}(c),h=f.value,p=f.isSecondary,m=s[0].startsWith("FontAwesome"),v=Ga(d,h),g=v;if(m){var y=function(e){var t=Va[e],n=Ga("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(h);y.iconName&&y.prefix&&(v=y.iconName,d=y.prefix)}if(!v||p||a&&a.getAttribute(Bi)===d&&a.getAttribute(Vi)===g)r();else{e.setAttribute(n,g),a&&e.removeChild(a);var b={iconName:null,title:null,titleId:null,prefix:null,transform:ha,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},x=b.extra;x.attributes[Ui]=t,wo(v,d).then((function(i){var a=vo(gi(gi({},b),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:g,extra:x,watchable:!0})),o=Di.createElement("svg");"::before"===t?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=a.map((function(e){return Oa(e)})).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function rs(e){return Promise.all([ns(e,"::before"),ns(e,"::after")])}function is(e){return e.parentNode!==document.head&&!~Wi.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ui)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function as(e){if(Ri)return new Promise((function(t,n){var r=ma(e.querySelectorAll("*")).filter(is).map(rs),i=Mo("searchPseudoElements");Io(),Promise.all(r).then((function(){i(),zo(),t()})).catch((function(){i(),zo(),n()}))}))}var os=!1,ss=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},ls={mixout:function(){return{parse:{transform:function(e){return ss(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=ss(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),u={outer:a,inner:{transform:"".concat(o," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:gi({},u.outer),children:[{tag:"g",attributes:gi({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:gi(gi({},t.icon.attributes),u.path)}]}]}}}},us={x:0,y:0,width:"100%",height:"100%"};function cs(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var ds={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?Ja(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Xa()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.mask,o=e.maskId,s=e.transform,l=i.width,u=i.icon,c=a.width,d=a.icon,f=function(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(a," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:s,containerWidth:c,iconWidth:l}),h={tag:"rect",attributes:gi(gi({},us),{},{fill:"white"})},p=u.children?{children:u.children.map(cs)}:{},m={tag:"g",attributes:gi({},f.inner),children:[cs(gi({tag:u.tag,attributes:gi(gi({},u.attributes),f.path)},p))]},v={tag:"g",attributes:gi({},f.outer),children:[m]},g="mask-".concat(o||pa()),y="clip-".concat(o||pa()),b={tag:"mask",attributes:gi(gi({},us),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,v]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=d,"g"===t.tag?t.children:[t])},b]};return n.push(x,{tag:"rect",attributes:gi({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},us)}),{children:n,attributes:r}}}},fs={provides:function(e){var t=!1;ji.matchMedia&&(t=ji.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:gi(gi({},n),{},{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 i=gi(gi({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:gi(gi({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:gi(gi({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:gi(gi({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:gi(gi({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:gi(gi({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:gi(gi({},n),{},{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:gi(gi({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;to=e,no={},Object.keys(ro).forEach((function(e){-1===io.indexOf(e)&&delete ro[e]})),to.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"===typeof t[e]&&(n[e]=t[e]),"object"===yi(t[e])&&Object.keys(t[e]).forEach((function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){var r=e.hooks();Object.keys(r).forEach((function(e){no[e]||(no[e]=[]),no[e].push(r[e])}))}e.provides&&e.provides(ro)}))}([ka,Qo,Xo,$o,Jo,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=as,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?Di:t;ca.searchPseudoElements&&as(n)}}},{mixout:function(){return{dom:{unwatch:function(){Io(),os=!0}}}},hooks:function(){return{bootstrap:function(){Uo(ao("mutationObserverCallbacks",{}))},noAuto:function(){Fo&&Fo.disconnect()},watch:function(e){var t=e.observeMutationsRoot;os?zo():Uo(ao("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},ls,ds,fs,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],{mixoutsTo:ho});var hs=ho.parse,ps=ho.icon,ms=n(8731),vs=n.n(ms);function gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(n),!0).forEach((function(t){xs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bs(e){return bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bs(e)}function xs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ws(e){return function(e){if(Array.isArray(e))return ks(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return ks(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ks(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ks(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cs(e){return t=e,(t-=0)===t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Ss=["style"];function Es(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=Cs(t.slice(0,r)),a=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[i]=a,e}),{})}var Ms=!1;try{Ms=!0}catch(oR){}function Ts(e){return e&&"object"===bs(e)&&e.prefix&&e.iconName&&e.icon?e:hs.icon?hs.icon(e):null===e?null:e&&"object"===bs(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"===typeof e?{prefix:"fas",iconName:e}:void 0}function Os(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?xs({},e,t):{}}var Ns=["forwardedRef"];function Ps(e){var t=e.forwardedRef,n=_s(e,Ns),r=n.icon,i=n.mask,a=n.symbol,o=n.className,s=n.title,l=n.titleId,u=Ts(r),c=Os("classes",[].concat(ws(function(e){var t,n=e.beat,r=e.fade,i=e.flash,a=e.spin,o=e.spinPulse,s=e.spinReverse,l=e.pulse,u=e.fixedWidth,c=e.inverse,d=e.border,f=e.listItem,h=e.flip,p=e.size,m=e.rotation,v=e.pull,g=(xs(t={"fa-beat":n,"fa-fade":r,"fa-flash":i,"fa-spin":a,"fa-spin-reverse":s,"fa-spin-pulse":o,"fa-pulse":l,"fa-fw":u,"fa-inverse":c,"fa-border":d,"fa-li":f,"fa-flip-horizontal":"horizontal"===h||"both"===h,"fa-flip-vertical":"vertical"===h||"both"===h},"fa-".concat(p),"undefined"!==typeof p&&null!==p),xs(t,"fa-rotate-".concat(m),"undefined"!==typeof m&&null!==m&&0!==m),xs(t,"fa-pull-".concat(v),"undefined"!==typeof v&&null!==v),xs(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(g).map((function(e){return g[e]?e:null})).filter((function(e){return e}))}(n)),ws(o.split(" ")))),d=Os("transform","string"===typeof n.transform?hs.transform(n.transform):n.transform),f=Os("mask",Ts(i)),h=ps(u,ys(ys(ys(ys({},c),d),f),{},{symbol:a,title:s,titleId:l}));if(!h)return function(){var e;!Ms&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var p=h.abstract,m={ref:t};return Object.keys(n).forEach((function(e){Ps.defaultProps.hasOwnProperty(e)||(m[e]=n[e])})),js(p[0],m)}Ps.displayName="FontAwesomeIcon",Ps.propTypes={beat:vs().bool,border:vs().bool,className:vs().string,fade:vs().bool,flash:vs().bool,mask:vs().oneOfType([vs().object,vs().array,vs().string]),fixedWidth:vs().bool,inverse:vs().bool,flip:vs().oneOf(["horizontal","vertical","both"]),icon:vs().oneOfType([vs().object,vs().array,vs().string]),listItem:vs().bool,pull:vs().oneOf(["right","left"]),pulse:vs().bool,rotation:vs().oneOf([0,90,180,270]),size:vs().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:vs().bool,spinPulse:vs().bool,spinReverse:vs().bool,symbol:vs().oneOfType([vs().bool,vs().string]),title:vs().string,transform:vs().oneOfType([vs().string,vs().object]),swapOpacity:vs().bool},Ps.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var js=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),a=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=Es(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Cs(t)]=r}return e}),{attrs:{}}),o=r.style,s=void 0===o?{}:o,l=_s(r,Ss);return a.attrs.style=ys(ys({},a.attrs.style),s),t.apply(void 0,[n.tag,ys(ys({},a.attrs),l)].concat(ws(i)))}.bind(null,r.createElement);function Ds(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ls(e){return function(e){if(Array.isArray(e))return q(e)}(e)||Ds(e)||G(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function As(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rs(e,t){return Rs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Rs(e,t)}function Is(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rs(e,t)}function zs(e){return zs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zs(e)}function Fs(e){return Fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fs(e)}function Us(e,t){if(t&&("object"===Fs(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return As(e)}function Bs(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(oR){return!1}}();return function(){var n,r=zs(e);if(t){var i=zs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Us(this,n)}}var Vs=n(4758),Hs=n.n(Vs),Ws=n(239),Zs=n(2661),Ys=n(1354);var qs=!1,Gs=r.createContext(null),Ks="unmounted",Qs="exited",Xs="entering",$s="entered",Js="exiting",el=function(e){var n,i;function a(t,n){var r;r=e.call(this,t,n)||this;var i,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i=Qs,r.appearStatus=Xs):i=$s:i=t.unmountOnExit||t.mountOnEnter?Ks:Qs,r.state={status:i},r.nextCallback=null,r}i=e,(n=a).prototype=Object.create(i.prototype),n.prototype.constructor=n,Rs(n,i),a.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ks?{status:Qs}:null};var o=a.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Xs&&n!==$s&&(t=Xs):n!==Xs&&n!==$s||(t=Js)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Xs?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Qs&&this.setState({status:Ks})},o.performEnter=function(e){var n=this,r=this.props.enter,i=this.context?this.context.isMounting:e,a=this.props.nodeRef?[i]:[t.findDOMNode(this),i],o=a[0],s=a[1],l=this.getTimeouts(),u=i?l.appear:l.enter;!e&&!r||qs?this.safeSetState({status:$s},(function(){n.props.onEntered(o)})):(this.props.onEnter(o,s),this.safeSetState({status:Xs},(function(){n.props.onEntering(o,s),n.onTransitionEnd(u,(function(){n.safeSetState({status:$s},(function(){n.props.onEntered(o,s)}))}))})))},o.performExit=function(){var e=this,n=this.props.exit,r=this.getTimeouts(),i=this.props.nodeRef?void 0:t.findDOMNode(this);n&&!qs?(this.props.onExit(i),this.safeSetState({status:Js},(function(){e.props.onExiting(i),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Qs},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:Qs},(function(){e.props.onExited(i)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,n){this.setNextCallback(n);var r=this.props.nodeRef?this.props.nodeRef.current:t.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(r&&!i){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=a[0],s=a[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===Ks)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,f(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(Gs.Provider,{value:null},"function"===typeof n?n(e,i):r.cloneElement(r.Children.only(n),i))},a}(r.Component);function tl(){}el.contextType=Gs,el.propTypes={},el.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tl,onEntering:tl,onEntered:tl,onExit:tl,onExiting:tl,onExited:tl},el.UNMOUNTED=Ks,el.EXITED=Qs,el.ENTERING=Xs,el.ENTERED=$s,el.EXITING=Js;var nl,rl,il=el;function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?al(Object(n),!0).forEach((function(t){sl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ll(){return ll=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ll.apply(this,arguments)}function ul(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cl(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function dl(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function fl(){return document.body.clientWidth<window.innerWidth}function hl(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function pl(){var e=cl(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;fl()&&dl(n+e)}function ml(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rl;return t?e.split(" ").map((function(e){return t[e]||e})).join(" "):e}function vl(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function gl(e,t){for(var n,r=Array.isArray(t)?t:[t],i=r.length,a={};i>0;)a[n=r[i-=1]]=e[n];return a}var yl={};function bl(e){yl[e]||("undefined"!==typeof console&&console.error(e),yl[e]=!0)}function xl(e,t){return function(n,r,i){null!==n[r]&&"undefined"!==typeof n[r]&&bl('"'.concat(r,'" property of "').concat(i,'" has been deprecated.\n').concat(t));for(var a=arguments.length,o=new Array(a>3?a-3:0),s=3;s<a;s++)o[s-3]=arguments[s];return e.apply(void 0,[n,r,i].concat(o))}}var _l="object"===typeof window&&window.Element||function(){};function wl(e,t,n){if(!(e[t]instanceof _l))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var kl=ms.oneOfType([ms.string,ms.func,wl,ms.shape({current:ms.any})]),Cl=ms.oneOfType([ms.func,ms.string,ms.shape({$$typeof:ms.symbol,render:ms.func}),ms.arrayOf(ms.oneOfType([ms.func,ms.string,ms.shape({$$typeof:ms.symbol,render:ms.func})]))]),Sl={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},El=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Ml={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Tl={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},Ol=["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"],Nl=!("undefined"===typeof window||!window.document||!window.document.createElement);function Pl(e){return!(!e||"object"!==typeof e)&&"current"in e}function jl(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function Dl(e){var t=typeof e;if("number"===t)return e;if("symbol"===t||"object"===t&&"[object Symbol]"===jl(e))return NaN;if(Ll(e)){var n="function"===typeof e.valueOf?e.valueOf():e;e=Ll(n)?"".concat(n):n}if("string"!==t)return 0===e?e:+e;e=e.replace(/^\s+|\s+$/g,"");var r=/^0b[01]+$/i.test(e);return r||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),r?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?NaN:+e}function Ll(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)}function Al(e){if(!Ll(e))return!1;var t=jl(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object Proxy]"===t}function Rl(e){if(Pl(e))return e.current;if(Al(e))return e();if("string"===typeof e&&Nl){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#".concat(e))),!t.length)throw new Error("The target '".concat(e,"' could not be identified in the dom, tip: check spelling"));return t}return e}function Il(e){return null!==e&&(Array.isArray(e)||Nl&&"number"===typeof e.length)}function zl(e,t){var n=Rl(e);return t?Il(n)?n:null===n?[]:[n]:Il(n)?n[0]:n}var Fl=["touchstart","click"];function Ul(e,t,n,r){var i=e;Il(i)||(i=[i]);var a=n;if("string"===typeof a&&(a=a.split(/\s+/)),!Il(i)||"function"!==typeof t||!Array.isArray(a))throw new Error("\n The first argument of this function must be DOM node or an array on DOM nodes or NodeList.\n The second must be a function.\n The third is a string or an array of strings that represents DOM events\n ");return Array.prototype.forEach.call(a,(function(e){Array.prototype.forEach.call(i,(function(n){n.addEventListener(e,t,r)}))})),function(){Array.prototype.forEach.call(a,(function(e){Array.prototype.forEach.call(i,(function(n){n.removeEventListener(e,t,r)}))}))}}var Bl=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],Vl=["className","cssModule","fluid","tag"],Hl={tag:Cl,fluid:ms.oneOfType([ms.bool,ms.string]),className:ms.string,cssModule:ms.object},Wl=function(e){var t=e.className,n=e.cssModule,i=e.fluid,a=e.tag,o=ul(e,Vl),s="container";!0===i?s="container-fluid":i&&(s="container-".concat(i));var l=ml(Vs(t,s),n);return r.createElement(a,ll({},o,{className:l}))};Wl.propTypes=Hl,Wl.defaultProps={tag:"div"};var Zl=["className","cssModule","noGutters","tag","form","widths"],Yl=ms.oneOfType([ms.number,ms.string]),ql={tag:Cl,noGutters:xl(ms.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:ms.string,cssModule:ms.object,form:ms.bool,xs:Yl,sm:Yl,md:Yl,lg:Yl,xl:Yl,xxl:Yl},Gl={tag:"div",widths:["xs","sm","md","lg","xl","xxl"]},Kl=function(e){var t=e.className,n=e.cssModule,i=e.noGutters,a=e.tag,o=e.form,s=e.widths,l=ul(e,Zl),u=[];s.forEach((function(t,n){var r=e[t];if(delete l[t],r){var i=!n;u.push(i?"row-cols-".concat(r):"row-cols-".concat(t,"-").concat(r))}}));var c=ml(Vs(t,i?"gx-0":null,o?"form-row":"row",u),n);return r.createElement(a,ll({},l,{className:c}))};Kl.propTypes=ql,Kl.defaultProps=Gl;var Ql=Kl,Xl=["className","cssModule","widths","tag"],$l=["xs","sm","md","lg","xl","xxl"],Jl=ms.oneOfType([ms.number,ms.string]),eu=ms.oneOfType([ms.bool,ms.number,ms.string,ms.shape({size:ms.oneOfType([ms.bool,ms.number,ms.string]),order:Jl,offset:Jl})]),tu={tag:Cl,xs:eu,sm:eu,md:eu,lg:eu,xl:eu,xxl:eu,className:ms.string,cssModule:ms.object,widths:ms.array},nu={tag:"div",widths:$l},ru=function(e,t,n){return!0===n||""===n?e?"col":"col-".concat(t):"auto"===n?e?"col-auto":"col-".concat(t,"-auto"):e?"col-".concat(n):"col-".concat(t,"-").concat(n)},iu=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$l,r=[];return n.forEach((function(n,i){var a=e[n];if(delete e[n],a||""===a){var o=!i;if(Ll(a)){var s,l=o?"-":"-".concat(n,"-"),u=ru(o,n,a.size);r.push(ml(Vs((Ve(s={},u,a.size||""===a.size),Ve(s,"order".concat(l).concat(a.order),a.order||0===a.order),Ve(s,"offset".concat(l).concat(a.offset),a.offset||0===a.offset),s)),t))}else{var c=ru(o,n,a);r.push(c)}}})),{colClasses:r,attributes:e}},au=function(e){var t=e.className,n=e.cssModule,i=e.widths,a=e.tag,o=ul(e,Xl),s=iu(o,n,i),l=s.attributes,u=s.colClasses;u.length||u.push("col");var c=ml(Vs(t,u),n);return r.createElement(a,ll({},l,{className:c}))};au.propTypes=tu,au.defaultProps=nu;var ou=au,su=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"],lu={light:ms.bool,dark:ms.bool,full:ms.bool,fixed:ms.string,sticky:ms.string,color:ms.string,role:ms.string,tag:Cl,container:ms.oneOfType([ms.bool,ms.string]),className:ms.string,cssModule:ms.object,expand:ms.oneOfType([ms.bool,ms.string]),children:ms.node},uu=function(e){var t,n=e.expand,i=e.className,a=e.cssModule,o=e.light,s=e.dark,l=e.fixed,u=e.sticky,c=e.color,d=e.container,f=e.tag,h=e.children,p=ul(e,su),m=ml(Vs(i,"navbar",function(e){return!1!==e&&(!0===e||"xs"===e?"navbar-expand":"navbar-expand-".concat(e))}(n),(Ve(t={"navbar-light":o,"navbar-dark":s},"bg-".concat(c),c),Ve(t,"fixed-".concat(l),l),Ve(t,"sticky-".concat(u),u),t)),a),v=d&&!0===d?"container":"container-".concat(d);return r.createElement(f,ll({},p,{className:m}),d?r.createElement("div",{className:v},h):h)};uu.propTypes=lu,uu.defaultProps={tag:"nav",expand:!1,container:"fluid"};var cu=uu,du=["className","cssModule","tag"],fu={tag:Cl,className:ms.string,cssModule:ms.object},hu=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,du),o=ml(Vs(t,"navbar-brand"),n);return r.createElement(i,ll({},a,{className:o}))};hu.propTypes=fu,hu.defaultProps={tag:"a"};var pu=hu,mu=["className","cssModule","active","tag"],vu={tag:Cl,className:ms.string,cssModule:ms.object},gu=function(e){var t=e.className,n=e.cssModule,i=(e.active,e.tag),a=ul(e,mu),o=ml(Vs(t,"navbar-text"),n);return r.createElement(i,ll({},a,{className:o}))};gu.propTypes=vu,gu.defaultProps={tag:"span"};var yu=["className","cssModule","children","tag"],bu={tag:Cl,type:ms.string,className:ms.string,cssModule:ms.object,children:ms.node},xu=function(e){var t=e.className,n=e.cssModule,i=e.children,a=e.tag,o=ul(e,yu),s=ml(Vs(t,"navbar-toggler"),n);return r.createElement(a,ll({"aria-label":"Toggle navigation"},o,{className:s}),i||r.createElement("span",{className:ml("navbar-toggler-icon",n)}))};xu.propTypes=bu,xu.defaultProps={tag:"button",type:"button"};var _u=xu,wu=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"],ku={tabs:ms.bool,pills:ms.bool,vertical:ms.oneOfType([ms.bool,ms.string]),horizontal:ms.string,justified:ms.bool,fill:ms.bool,navbar:ms.bool,card:ms.bool,tag:Cl,className:ms.string,cssModule:ms.object},Cu=function(e){var t=e.className,n=e.cssModule,i=e.tabs,a=e.pills,o=e.vertical,s=e.horizontal,l=e.justified,u=e.fill,c=e.navbar,d=e.card,f=e.tag,h=ul(e,wu),p=ml(Vs(t,c?"navbar-nav":"nav",!!s&&"justify-content-".concat(s),function(e){return!1!==e&&(!0===e||"xs"===e?"flex-column":"flex-".concat(e,"-column"))}(o),{"nav-tabs":i,"card-header-tabs":d&&i,"nav-pills":a,"card-header-pills":d&&a,"nav-justified":l,"nav-fill":u}),n);return r.createElement(f,ll({},h,{className:p}))};Cu.propTypes=ku,Cu.defaultProps={tag:"ul",vertical:!1};var Su=Cu,Eu=["className","cssModule","active","tag"],Mu={tag:Cl,active:ms.bool,className:ms.string,cssModule:ms.object},Tu=function(e){var t=e.className,n=e.cssModule,i=e.active,a=e.tag,o=ul(e,Eu),s=ml(Vs(t,"nav-item",!!i&&"active"),n);return r.createElement(a,ll({},o,{className:s}))};Tu.propTypes=Mu,Tu.defaultProps={tag:"li"};var Ou=Tu,Nu=["className","cssModule","active","tag","innerRef"],Pu={tag:Cl,innerRef:ms.oneOfType([ms.object,ms.func,ms.string]),disabled:ms.bool,active:ms.bool,className:ms.string,cssModule:ms.object,onClick:ms.func,href:ms.any},ju=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).onClick=r.onClick.bind(As(r)),r}return Bt(n,[{key:"onClick",value:function(e){this.props.disabled?e.preventDefault():("#"===this.props.href&&e.preventDefault(),this.props.onClick&&this.props.onClick(e))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,i=e.active,a=e.tag,o=e.innerRef,s=ul(e,Nu),l=ml(Vs(t,"nav-link",{disabled:s.disabled,active:i}),n);return r.createElement(a,ll({},s,{ref:o,onClick:this.onClick,className:l}))}}]),n}(r.Component);ju.propTypes=Pu,ju.defaultProps={tag:"a"};var Du=ju,Lu=["className","listClassName","cssModule","children","tag","listTag","aria-label"],Au={tag:Cl,listTag:Cl,className:ms.string,listClassName:ms.string,cssModule:ms.object,children:ms.node,"aria-label":ms.string},Ru=function(e){var t=e.className,n=e.listClassName,i=e.cssModule,a=e.children,o=e.tag,s=e.listTag,l=e["aria-label"],u=ul(e,Lu),c=ml(Vs(t),i),d=ml(Vs("breadcrumb",n),i);return r.createElement(o,ll({},u,{className:c,"aria-label":l}),r.createElement(s,{className:d},a))};Ru.propTypes=Au,Ru.defaultProps={tag:"nav",listTag:"ol","aria-label":"breadcrumb"};var Iu=["className","cssModule","active","tag"],zu={tag:Cl,active:ms.bool,className:ms.string,cssModule:ms.object},Fu=function(e){var t=e.className,n=e.cssModule,i=e.active,a=e.tag,o=ul(e,Iu),s=ml(Vs(t,!!i&&"active","breadcrumb-item"),n);return r.createElement(a,ll({},o,{className:s,"aria-current":i?"page":void 0}))};Fu.propTypes=zu,Fu.defaultProps={tag:"li"};var Uu=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],Bu={active:ms.bool,"aria-label":ms.string,block:ms.bool,color:ms.string,disabled:ms.bool,outline:ms.bool,tag:Cl,innerRef:ms.oneOfType([ms.object,ms.func,ms.string]),onClick:ms.func,size:ms.string,children:ms.node,className:ms.string,cssModule:ms.object,close:ms.bool},Vu=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).onClick=r.onClick.bind(As(r)),r}return Bt(n,[{key:"onClick",value:function(e){if(!this.props.disabled)return this.props.onClick?this.props.onClick(e):void 0;e.preventDefault()}},{key:"render",value:function(){var e=this.props,t=e.active,n=e["aria-label"],i=e.block,a=e.className,o=e.close,s=e.cssModule,l=e.color,u=e.outline,c=e.size,d=e.tag,f=e.innerRef,h=ul(e,Uu),p="btn".concat(u?"-outline":"","-").concat(l),m=ml(Vs(a,o&&"btn-close",o||"btn",o||p,!!c&&"btn-".concat(c),!!i&&"d-block w-100",{active:t,disabled:this.props.disabled}),s);h.href&&"button"===d&&(d="a");var v=o?"Close":null;return r.createElement(d,ll({type:"button"===d&&h.onClick?"button":void 0},h,{className:m,ref:f,onClick:this.onClick,"aria-label":n||v}))}}]),n}(r.Component);Vu.propTypes=Bu,Vu.defaultProps={color:"secondary",tag:"button"};var Hu=Vu,Wu=["className"],Zu={onClick:ms.func,onBlur:ms.func,onFocus:ms.func,defaultValue:ms.bool},Yu=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).state={toggled:e.defaultValue,focus:!1},r.onBlur=r.onBlur.bind(As(r)),r.onFocus=r.onFocus.bind(As(r)),r.onClick=r.onClick.bind(As(r)),r}return Bt(n,[{key:"onBlur",value:function(e){this.props.onBlur&&this.props.onBlur(e),this.setState({focus:!1})}},{key:"onFocus",value:function(e){this.props.onFocus&&this.props.onFocus(e),this.setState({focus:!0})}},{key:"onClick",value:function(e){this.props.onClick&&this.props.onClick(e),this.setState((function(e){return{toggled:!e.toggled}}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=ul(e,Wu),i=ml(Vs(t,{focus:this.state.focus}),this.props.cssModule);return r.createElement(Hu,ll({active:this.state.toggled,onBlur:this.onBlur,onFocus:this.onFocus,onClick:this.onClick,className:i},n))}}]),n}(r.Component);Yu.propTypes=Zu,Yu.defaultProps={defaultValue:!1};var qu=r.createContext({}),Gu=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"],Ku={a11y:ms.bool,disabled:ms.bool,direction:ms.oneOf(["up","down","start","end","left","right"]),group:ms.bool,isOpen:ms.bool,nav:ms.bool,active:ms.bool,size:ms.string,tag:Cl,toggle:ms.func,children:ms.node,className:ms.string,cssModule:ms.object,inNavbar:ms.bool,setActiveFromChild:ms.bool,menuRole:ms.oneOf(["listbox","menu"])},Qu=[Tl.space,Tl.enter,Tl.up,Tl.down,Tl.end,Tl.home],Xu=function(e){Is(n,e);var t=Bs(n);function n(e){var i;return Vt(this,n),(i=t.call(this,e)).addEvents=i.addEvents.bind(As(i)),i.handleDocumentClick=i.handleDocumentClick.bind(As(i)),i.handleKeyDown=i.handleKeyDown.bind(As(i)),i.removeEvents=i.removeEvents.bind(As(i)),i.toggle=i.toggle.bind(As(i)),i.handleMenuRef=i.handleMenuRef.bind(As(i)),i.containerRef=r.createRef(),i.menuRef=r.createRef(),i}return Bt(n,[{key:"handleMenuRef",value:function(e){this.menuRef.current=e}},{key:"getContextValue",value:function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:"down"===this.props.direction&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,menuRole:this.props.menuRole}}},{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(e){this.props.isOpen!==e.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"getContainer",value:function(){return this.containerRef.current}},{key:"getMenu",value:function(){return this.menuRef.current}},{key:"getMenuCtrl",value:function(){return this._$menuCtrl||(this._$menuCtrl=this.getContainer().querySelector("[aria-expanded]")),this._$menuCtrl}},{key:"getItemType",value:function(){return"listbox"===this.context.menuRole?"option":"menuitem"}},{key:"getMenuItems",value:function(){var e=this.getMenu()||this.getContainer();return[].slice.call(e.querySelectorAll('[role="'.concat(this.getItemType(),'"]')))}},{key:"addEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach((function(t){return document.addEventListener(t,e.handleDocumentClick,!0)}))}},{key:"removeEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach((function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)}))}},{key:"handleDocumentClick",value:function(e){if(!e||3!==e.which&&("keyup"!==e.type||e.which===Tl.tab)){var t=this.getContainer(),n=this.getMenu(),r=t.contains(e.target)&&t!==e.target,i=t.classList.contains("input-group")&&t.classList.contains("dropdown")&&"INPUT"===e.target.tagName,a=n&&n.contains(e.target)&&n!==e.target;(!(r&&!i||a)||"keyup"===e.type&&e.which!==Tl.tab)&&this.toggle(e)}}},{key:"handleKeyDown",value:function(e){var t=this,n="menuitem"===e.target.getAttribute("role")||"option"===e.target.getAttribute("role"),r=this.getMenuCtrl()===e.target,i=Tl.tab===e.which;if(!(/input|textarea/i.test(e.target.tagName)||i&&!this.props.a11y||i&&!n&&!r)&&((-1!==Qu.indexOf(e.which)||e.which>=48&&e.which<=90)&&e.preventDefault(),!this.props.disabled&&(r&&([Tl.space,Tl.enter,Tl.up,Tl.down].indexOf(e.which)>-1?(this.props.isOpen||this.toggle(e),setTimeout((function(){return t.getMenuItems()[0].focus()}))):this.props.isOpen&&i?(e.preventDefault(),this.getMenuItems()[0].focus()):this.props.isOpen&&e.which===Tl.esc&&this.toggle(e)),this.props.isOpen&&n)))if([Tl.tab,Tl.esc].indexOf(e.which)>-1)this.toggle(e),this.getMenuCtrl().focus();else if([Tl.space,Tl.enter].indexOf(e.which)>-1)e.target.click(),this.getMenuCtrl().focus();else if([Tl.down,Tl.up].indexOf(e.which)>-1||[Tl.n,Tl.p].indexOf(e.which)>-1&&e.ctrlKey){var a=this.getMenuItems(),o=a.indexOf(e.target);Tl.up===e.which||Tl.p===e.which&&e.ctrlKey?o=0!==o?o-1:a.length-1:(Tl.down===e.which||Tl.n===e.which&&e.ctrlKey)&&(o=o===a.length-1?0:o+1),a[o].focus()}else if(Tl.end===e.which){var s=this.getMenuItems();s[s.length-1].focus()}else if(Tl.home===e.which){this.getMenuItems()[0].focus()}else if(e.which>=48&&e.which<=90)for(var l=this.getMenuItems(),u=String.fromCharCode(e.which).toLowerCase(),c=0;c<l.length;c+=1){if((l[c].textContent&&l[c].textContent[0].toLowerCase())===u){l[c].focus();break}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){var e,t,n=vl(this.props,["toggle","disabled","inNavbar","a11y"]),i=n.className,a=n.cssModule,o=n.direction,s=n.isOpen,l=n.group,u=n.size,c=n.nav,d=n.setActiveFromChild,f=n.active,h=n.tag,p=(n.menuRole,ul(n,Gu)),m=h||(c?"li":"div"),v=!1;d&&r.Children.map(this.props.children[1].props.children,(function(e){e&&e.props.active&&(v=!0)}));var g=ml(Vs(i,!(!c||!f)&&"active",!(!d||!v)&&"active",(Ve(e={"btn-group":l},"btn-group-".concat(u),!!u),Ve(e,"dropdown",!l),Ve(e,"dropup","up"===o),Ve(e,"dropstart","start"===o||"left"===o),Ve(e,"dropend","end"===o||"right"===o),Ve(e,"show",s),Ve(e,"nav-item",c),e)),a);return r.createElement(qu.Provider,{value:this.getContextValue()},r.createElement(Ws.dK,null,r.createElement(m,ll({},p,(Ve(t={},"string"===typeof m?"ref":"innerRef",this.containerRef),Ve(t,"onKeyDown",this.handleKeyDown),Ve(t,"className",g),t)))))}}]),n}(r.Component);Xu.propTypes=Ku,Xu.defaultProps={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1};var $u=Xu,Ju={children:ms.node},ec=function(e){return r.createElement($u,ll({group:!0},e))};ec.propTypes=Ju;var tc=ec,nc=["className","cssModule","size","vertical","tag"],rc={tag:Cl,"aria-label":ms.string,className:ms.string,cssModule:ms.object,role:ms.string,size:ms.string,vertical:ms.bool},ic=function(e){var t=e.className,n=e.cssModule,i=e.size,a=e.vertical,o=e.tag,s=ul(e,nc),l=ml(Vs(t,!!i&&"btn-group-"+i,a?"btn-group-vertical":"btn-group"),n);return r.createElement(o,ll({},s,{className:l}))};ic.propTypes=rc,ic.defaultProps={tag:"div",role:"group"};var ac=["className","cssModule","tag"],oc={tag:Cl,"aria-label":ms.string,className:ms.string,cssModule:ms.object,role:ms.string},sc=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,ac),o=ml(Vs(t,"btn-toolbar"),n);return r.createElement(i,ll({},a,{className:o}))};sc.propTypes=oc,sc.defaultProps={tag:"div",role:"toolbar"};var lc=["className","cssModule","divider","tag","header","active","text"],uc={children:ms.node,active:ms.bool,disabled:ms.bool,divider:ms.bool,tag:Cl,header:ms.bool,onClick:ms.func,className:ms.string,cssModule:ms.object,toggle:ms.bool,text:ms.bool},cc=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).onClick=r.onClick.bind(As(r)),r.getTabIndex=r.getTabIndex.bind(As(r)),r}return Bt(n,[{key:"getRole",value:function(){return"listbox"===this.context.menuRole?"option":"menuitem"}},{key:"onClick",value:function(e){var t=this.props,n=t.disabled,r=t.header,i=t.divider,a=t.text;n||r||i||a?e.preventDefault():(this.props.onClick&&this.props.onClick(e),this.props.toggle&&this.context.toggle(e))}},{key:"getTabIndex",value:function(){var e=this.props,t=e.disabled,n=e.header,r=e.divider,i=e.text;return t||n||r||i?"-1":"0"}},{key:"render",value:function(){var e=this.getTabIndex(),t=e>-1?this.getRole():void 0,n=vl(this.props,["toggle"]),i=n.className,a=n.cssModule,o=n.divider,s=n.tag,l=n.header,u=n.active,c=n.text,d=ul(n,lc),f=ml(Vs(i,{disabled:d.disabled,"dropdown-item":!o&&!l&&!c,active:u,"dropdown-header":l,"dropdown-divider":o,"dropdown-item-text":c}),a);return"button"===s&&(l?s="h6":o?s="div":d.href?s="a":c&&(s="span")),r.createElement(s,ll({type:"button"===s&&(d.onClick||this.props.toggle)?"button":void 0},d,{tabIndex:e,role:t,className:f,onClick:this.onClick}))}}]),n}(r.Component);cc.propTypes=uc,cc.defaultProps={tag:"button",toggle:!0},cc.contextType=qu;var dc=cc,fc=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container"],hc={tag:Cl,children:ms.node.isRequired,dark:ms.bool,end:ms.bool,flip:ms.bool,modifiers:ms.array,className:ms.string,cssModule:ms.object,persist:ms.bool,strategy:ms.string,container:kl,right:xl(ms.bool,'Please use "end" instead.')},pc={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},mc=function(e){Is(i,e);var n=Bs(i);function i(){return Vt(this,i),n.apply(this,arguments)}return Bt(i,[{key:"getRole",value:function(){return"listbox"===this.context.menuRole?"listbox":"menu"}},{key:"render",value:function(){var e=this,n=this.props,i=n.className,a=n.cssModule,o=n.dark,s=n.end,l=n.right,u=n.tag,c=n.flip,d=n.modifiers,f=n.persist,h=n.strategy,p=n.container,m=ul(n,fc),v=ml(Vs(i,"dropdown-menu",{"dropdown-menu-dark":o,"dropdown-menu-end":s||l,show:this.context.isOpen}),a),g=u;if(f||this.context.isOpen&&!this.context.inNavbar){var y=pc[this.context.direction]||"bottom",b=s||l?"end":"start",x="".concat(y,"-").concat(b),_=[].concat(Ls(d),[{name:"flip",enabled:!!c}]),w=r.createElement(Zs.r,{placement:x,modifiers:_,strategy:h},(function(t){var n=t.ref,i=t.style,a=t.placement,o=ol(ol({},e.props.style),i);return r.createElement(g,ll({tabIndex:"-1",role:e.getRole(),ref:function(t){n(t);var r=e.context.onMenuRef;r&&r(t)}},m,{style:o,"aria-hidden":!e.context.isOpen,className:v,"data-popper-placement":a}))}));return p?t.createPortal(w,zl(p)):w}return r.createElement(g,ll({tabIndex:"-1",role:this.getRole()},m,{"aria-hidden":!this.context.isOpen,className:v,"data-popper-placement":m.placement}))}}]),i}(r.Component);mc.propTypes=hc,mc.defaultProps={tag:"div",flip:!0,modifiers:[]},mc.contextType=qu;var vc=mc,gc=["className","color","cssModule","caret","split","nav","tag","innerRef"],yc={caret:ms.bool,color:ms.string,children:ms.node,className:ms.string,cssModule:ms.object,disabled:ms.bool,onClick:ms.func,"aria-haspopup":ms.bool,split:ms.bool,tag:Cl,nav:ms.bool},bc=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).onClick=r.onClick.bind(As(r)),r}return Bt(n,[{key:"onClick",value:function(e){this.props.disabled||this.context.disabled?e.preventDefault():(this.props.nav&&!this.props.tag&&e.preventDefault(),this.props.onClick&&this.props.onClick(e),this.context.toggle(e))}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var e,t=this,n=this.props,i=n.className,a=n.color,o=n.cssModule,s=n.caret,l=n.split,u=n.nav,c=n.tag,d=n.innerRef,f=ul(n,gc),h=f["aria-label"]||"Toggle Dropdown",p=ml(Vs(i,{"dropdown-toggle":s||l,"dropdown-toggle-split":l,"nav-link":u}),o),m="undefined"!==typeof f.children?f.children:r.createElement("span",{className:"visually-hidden"},h);return u&&!c?(e="a",f.href="#"):c?e=c:(e=Hu,f.color=a,f.cssModule=o),this.context.inNavbar?r.createElement(e,ll({},f,{className:p,onClick:this.onClick,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m})):r.createElement(Ys.s,{innerRef:d},(function(n){var i,a=n.ref;return r.createElement(e,ll({},f,(Ve(i={},"string"===typeof e?"ref":"innerRef",a),Ve(i,"className",p),Ve(i,"onClick",t.onClick),Ve(i,"aria-expanded",t.context.isOpen),Ve(i,"aria-haspopup",t.getRole()),Ve(i,"children",m),i)))}))}}]),n}(r.Component);bc.propTypes=yc,bc.defaultProps={color:"secondary","aria-haspopup":!0},bc.contextType=qu;var xc=bc,_c=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"],wc=ol(ol({},il.propTypes),{},{children:ms.oneOfType([ms.arrayOf(ms.node),ms.node]),tag:Cl,baseClass:ms.string,baseClassActive:ms.string,className:ms.string,cssModule:ms.object,innerRef:ms.oneOfType([ms.object,ms.string,ms.func])}),kc=ol(ol({},il.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:Sl.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Cc(e){var t=e.tag,n=e.baseClass,i=e.baseClassActive,a=e.className,o=e.cssModule,s=e.children,l=e.innerRef,u=ul(e,_c),c=gl(u,El),d=vl(u,El);return r.createElement(il,c,(function(e){var u=ml(Vs(a,n,"entered"===e&&i),o);return r.createElement(t,ll({className:u},d,{ref:l}),s)}))}Cc.propTypes=wc,Cc.defaultProps=kc;var Sc=r.createContext({}),Ec=["flush","open","toggle","className","cssModule","tag","innerRef"],Mc={tag:Cl,className:ms.string,cssModule:ms.object,innerRef:ms.oneOfType([ms.object,ms.string,ms.func]),children:ms.node,flush:ms.bool,open:ms.oneOfType([ms.array,ms.string]).isRequired,toggle:ms.func.isRequired},Tc=function(e){var t=e.flush,n=e.open,i=e.toggle,a=e.className,o=e.cssModule,s=e.tag,l=e.innerRef,u=ul(e,Ec),c=ml(Vs(a,"accordion",{"accordion-flush":t}),o),d=(0,r.useMemo)((function(){return{open:n,toggle:i}}));return r.createElement(Sc.Provider,{value:d},r.createElement(s,ll({},u,{className:c,ref:l})))};Tc.propTypes=Mc,Tc.defaultProps={tag:"div"};var Oc=Tc,Nc={tag:Cl,className:ms.string,cssModule:ms.object,innerRef:ms.oneOfType([ms.object,ms.string,ms.func]),children:ms.node,defaultOpen:ms.oneOfType([ms.array,ms.string]),stayOpen:ms.bool};Oc.propTypes=Nc,Oc.defaultProps={tag:"div"};var Pc=["className","cssModule","tag","innerRef","children","targetId"],jc={tag:Cl,className:ms.string,cssModule:ms.object,innerRef:ms.oneOfType([ms.object,ms.string,ms.func]),children:ms.node,targetId:ms.string.isRequired},Dc=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=e.innerRef,o=e.children,s=e.targetId,l=ul(e,Pc),u=(0,r.useContext)(Sc),c=u.open,d=u.toggle,f=ml(Vs(t,"accordion-header"),n),h=ml(Vs("accordion-button",{collapsed:!(Array.isArray(c)?c.includes(s):c===s)}),n);return r.createElement(i,ll({},l,{className:f,ref:a}),r.createElement("button",{type:"button",className:h,onClick:function(){return d(s)}},o))};Dc.propTypes=jc,Dc.defaultProps={tag:"h2"};var Lc=["className","cssModule","tag","innerRef"],Ac={tag:Cl,className:ms.string,cssModule:ms.object,innerRef:ms.oneOfType([ms.object,ms.string,ms.func]),children:ms.node},Rc=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=e.innerRef,o=ul(e,Lc),s=ml(Vs(t,"accordion-item"),n);return r.createElement(i,ll({},o,{className:s,ref:a}))};Rc.propTypes=Ac,Rc.defaultProps={tag:"div"};var Ic=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],zc=ol(ol({},il.propTypes),{},{horizontal:ms.bool,isOpen:ms.bool,children:ms.oneOfType([ms.arrayOf(ms.node),ms.node]),tag:Cl,className:ms.node,navbar:ms.bool,cssModule:ms.object,innerRef:ms.oneOfType([ms.func,ms.string,ms.object])}),Fc=ol(ol({},il.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:Sl.Collapse}),Uc=(Ve(nl={},Ml.ENTERING,"collapsing"),Ve(nl,Ml.ENTERED,"collapse show"),Ve(nl,Ml.EXITING,"collapsing"),Ve(nl,Ml.EXITED,"collapse"),nl);var Bc=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).state={dimension:null},["onEntering","onEntered","onExit","onExiting","onExited"].forEach((function(e){r[e]=r[e].bind(As(r))})),r}return Bt(n,[{key:"getDimension",value:function(e){return this.props.horizontal?e.scrollWidth:e.scrollHeight}},{key:"onEntering",value:function(e,t){this.setState({dimension:this.getDimension(e)}),this.props.onEntering(e,t)}},{key:"onEntered",value:function(e,t){this.setState({dimension:null}),this.props.onEntered(e,t)}},{key:"onExit",value:function(e){this.setState({dimension:this.getDimension(e)}),this.props.onExit(e)}},{key:"onExiting",value:function(e){this.getDimension(e),this.setState({dimension:0}),this.props.onExiting(e)}},{key:"onExited",value:function(e){this.setState({dimension:null}),this.props.onExited(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.tag,i=t.horizontal,a=t.isOpen,o=t.className,s=t.navbar,l=t.cssModule,u=t.children,c=(t.innerRef,ul(t,Ic)),d=this.state.dimension,f=gl(c,El),h=vl(c,El);return r.createElement(il,ll({},f,{in:a,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),(function(t){var a=function(e){return Uc[e]||"collapse"}(t),c=ml(Vs(o,i&&"collapse-horizontal",a,s&&"navbar-collapse"),l),f=null===d?null:Ve({},i?"width":"height",d);return r.createElement(n,ll({},h,{style:ol(ol({},h.style),f),className:c,ref:e.props.innerRef}),u)}))}}]),n}(r.Component);Bc.propTypes=zc,Bc.defaultProps=Fc;var Vc=Bc,Hc=["className","cssModule","tag","innerRef","children","accordionId"],Wc={tag:Cl,className:ms.string,cssModule:ms.object,innerRef:ms.oneOfType([ms.object,ms.string,ms.func]),children:ms.node,accordionId:ms.string.isRequired},Zc=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=e.innerRef,o=e.children,s=e.accordionId,l=ul(e,Hc),u=(0,r.useContext)(Sc).open,c=ml(Vs(t,"accordion-collapse"),n);return r.createElement(Vc,ll({},l,{className:c,ref:a,isOpen:Array.isArray(u)?u.includes(s):u===s}),r.createElement(i,{className:"accordion-body"},o))};Zc.propTypes=Wc,Zc.defaultProps={tag:"div"};var Yc=["className","cssModule","color","innerRef","pill","tag"],qc={color:ms.string,pill:ms.bool,tag:Cl,innerRef:ms.oneOfType([ms.object,ms.func,ms.string]),children:ms.node,className:ms.string,cssModule:ms.object},Gc=function(e){var t=e.className,n=e.cssModule,i=e.color,a=e.innerRef,o=e.pill,s=e.tag,l=ul(e,Yc),u=ml(Vs(t,"badge","bg-"+i,!!o&&"rounded-pill"),n);return l.href&&"span"===s&&(s="a"),r.createElement(s,ll({},l,{className:u,ref:a}))};Gc.propTypes=qc,Gc.defaultProps={color:"secondary",pill:!1,tag:"span"};var Kc=["className","cssModule","color","body","inverse","outline","tag","innerRef"],Qc={tag:Cl,inverse:ms.bool,color:ms.string,body:ms.bool,outline:ms.bool,className:ms.string,cssModule:ms.object,innerRef:ms.oneOfType([ms.object,ms.string,ms.func])},Xc=function(e){var t=e.className,n=e.cssModule,i=e.color,a=e.body,o=e.inverse,s=e.outline,l=e.tag,u=e.innerRef,c=ul(e,Kc),d=ml(Vs(t,"card",!!o&&"text-white",!!a&&"card-body",!!i&&"".concat(s?"border":"bg","-").concat(i)),n);return r.createElement(l,ll({},c,{className:d,ref:u}))};Xc.propTypes=Qc,Xc.defaultProps={tag:"div"};var $c=Xc,Jc=["className","cssModule","tag"],ed={tag:Cl,className:ms.string,cssModule:ms.object},td=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,Jc),o=ml(Vs(t,"card-group"),n);return r.createElement(i,ll({},a,{className:o}))};td.propTypes=ed,td.defaultProps={tag:"div"};var nd=["className","cssModule","tag"],rd={tag:Cl,className:ms.string,cssModule:ms.object},id=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,nd),o=ml(Vs(t,"card-deck"),n);return r.createElement(i,ll({},a,{className:o}))};id.propTypes=rd,id.defaultProps={tag:"div"};var ad=["className","cssModule","tag"],od={tag:Cl,className:ms.string,cssModule:ms.object},sd=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,ad),o=ml(Vs(t,"card-columns"),n);return r.createElement(i,ll({},a,{className:o}))};sd.propTypes=od,sd.defaultProps={tag:"div"};var ld=["className","cssModule","innerRef","tag"],ud={tag:Cl,className:ms.string,cssModule:ms.object,innerRef:ms.oneOfType([ms.object,ms.string,ms.func])},cd=function(e){var t=e.className,n=e.cssModule,i=e.innerRef,a=e.tag,o=ul(e,ld),s=ml(Vs(t,"card-body"),n);return r.createElement(a,ll({},o,{className:s,ref:i}))};cd.propTypes=ud,cd.defaultProps={tag:"div"};var dd=cd,fd=["className","cssModule","tag","innerRef"],hd={tag:Cl,innerRef:ms.oneOfType([ms.object,ms.func,ms.string]),className:ms.string,cssModule:ms.object},pd=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=e.innerRef,o=ul(e,fd),s=ml(Vs(t,"card-link"),n);return r.createElement(i,ll({},o,{ref:a,className:s}))};pd.propTypes=hd,pd.defaultProps={tag:"a"};var md=["className","cssModule","tag"],vd={tag:Cl,className:ms.string,cssModule:ms.object},gd=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,md),o=ml(Vs(t,"card-footer"),n);return r.createElement(i,ll({},a,{className:o}))};gd.propTypes=vd,gd.defaultProps={tag:"div"};var yd=gd,bd=["className","cssModule","tag"],xd={tag:Cl,className:ms.string,cssModule:ms.object},_d=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,bd),o=ml(Vs(t,"card-header"),n);return r.createElement(i,ll({},a,{className:o}))};_d.propTypes=xd,_d.defaultProps={tag:"div"};var wd=_d,kd=["className","cssModule","top","bottom","tag"],Cd={tag:Cl,top:ms.bool,bottom:ms.bool,className:ms.string,cssModule:ms.object},Sd=function(e){var t=e.className,n=e.cssModule,i=e.top,a=e.bottom,o=e.tag,s=ul(e,kd),l="card-img";i&&(l="card-img-top"),a&&(l="card-img-bottom");var u=ml(Vs(t,l),n);return r.createElement(o,ll({},s,{className:u}))};Sd.propTypes=Cd,Sd.defaultProps={tag:"img"};var Ed=["className","cssModule","tag"],Md={tag:Cl,className:ms.string,cssModule:ms.object},Td=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,Ed),o=ml(Vs(t,"card-img-overlay"),n);return r.createElement(i,ll({},a,{className:o}))};Td.propTypes=Md,Td.defaultProps={tag:"div"};var Od=["in","children","cssModule","slide","tag","className"],Nd=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).state={startAnimation:!1},r.onEnter=r.onEnter.bind(As(r)),r.onEntering=r.onEntering.bind(As(r)),r.onExit=r.onExit.bind(As(r)),r.onExiting=r.onExiting.bind(As(r)),r.onExited=r.onExited.bind(As(r)),r}return Bt(n,[{key:"onEnter",value:function(e,t){this.setState({startAnimation:!1}),this.props.onEnter(e,t)}},{key:"onEntering",value:function(e,t){var n=e.offsetHeight;return this.setState({startAnimation:!0}),this.props.onEntering(e,t),n}},{key:"onExit",value:function(e){this.setState({startAnimation:!1}),this.props.onExit(e)}},{key:"onExiting",value:function(e){this.setState({startAnimation:!0}),e.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(e)}},{key:"onExited",value:function(e){e.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.in,i=t.children,a=t.cssModule,o=t.slide,s=t.tag,l=t.className,u=ul(t,Od);return r.createElement(il,ll({},u,{enter:o,exit:o,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),(function(t){var n=e.context.direction,o=t===Ml.ENTERED||t===Ml.EXITING,u=(t===Ml.ENTERING||t===Ml.EXITING)&&e.state.startAnimation&&("end"===n?"carousel-item-start":"carousel-item-end"),c=ml(Vs(l,"carousel-item",o&&"active",u,t===Ml.ENTERING&&("end"===n?"carousel-item-next":"carousel-item-prev")),a);return r.createElement(s,{className:c},i)}))}}]),n}(r.Component);Nd.propTypes=ol(ol({},il.propTypes),{},{tag:Cl,in:ms.bool,cssModule:ms.object,children:ms.node,slide:ms.bool,className:ms.string}),Nd.defaultProps=ol(ol({},il.defaultProps),{},{tag:"div",timeout:Sl.Carousel,slide:!0}),Nd.contextTypes={direction:ms.string};var Pd=Nd,jd=r.createContext({}),Dd=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).handleKeyPress=r.handleKeyPress.bind(As(r)),r.renderItems=r.renderItems.bind(As(r)),r.hoverStart=r.hoverStart.bind(As(r)),r.hoverEnd=r.hoverEnd.bind(As(r)),r.handleTouchStart=r.handleTouchStart.bind(As(r)),r.handleTouchEnd=r.handleTouchEnd.bind(As(r)),r.touchStartX=0,r.touchStartY=0,r.state={activeIndex:r.props.activeIndex,direction:"end",indicatorClicked:!1},r}return Bt(n,[{key:"getContextValue",value:function(){return{direction:this.state.direction}}},{key:"componentDidMount",value:function(){"carousel"===this.props.ride&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}},{key:"componentDidUpdate",value:function(e,t){t.activeIndex!==this.state.activeIndex&&this.setInterval(this.props)}},{key:"componentWillUnmount",value:function(){this.clearInterval(),document.removeEventListener("keyup",this.handleKeyPress)}},{key:"setInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.clearInterval(),e.interval&&(this.cycleInterval=setInterval((function(){e.next()}),parseInt(e.interval,10)))}))},{key:"clearInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){clearInterval(this.cycleInterval)}))},{key:"hoverStart",value:function(){var e;("hover"===this.props.pause&&this.clearInterval(),this.props.mouseEnter)&&(e=this.props).mouseEnter.apply(e,arguments)}},{key:"hoverEnd",value:function(){var e;("hover"===this.props.pause&&this.setInterval(),this.props.mouseLeave)&&(e=this.props).mouseLeave.apply(e,arguments)}},{key:"handleKeyPress",value:function(e){this.props.keyboard&&(37===e.keyCode?this.props.previous():39===e.keyCode&&this.props.next())}},{key:"handleTouchStart",value:function(e){this.props.enableTouch&&(this.touchStartX=e.changedTouches[0].screenX,this.touchStartY=e.changedTouches[0].screenY)}},{key:"handleTouchEnd",value:function(e){if(this.props.enableTouch){var t=e.changedTouches[0].screenX,n=e.changedTouches[0].screenY,r=Math.abs(this.touchStartX-t);r<Math.abs(this.touchStartY-n)||r<40||(t<this.touchStartX?this.props.next():this.props.previous())}}},{key:"renderItems",value:function(e,t){var n=this,i=this.props.slide;return r.createElement("div",{className:t},e.map((function(e,t){var a=t===n.state.activeIndex;return r.cloneElement(e,{in:a,slide:i})})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.cssModule,i=t.slide,a=t.className,o=t.dark,s=t.fade,l=ml(Vs(a,"carousel",s,i&&"slide",o&&"carousel-dark"),n),u=ml(Vs("carousel-inner"),n),c=this.props.children.filter((function(e){return null!==e&&void 0!==e&&"boolean"!==typeof e}));if(c.every((function(e){return e.type===Pd})))return r.createElement("div",{className:l,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},r.createElement(jd.Provider,{value:this.getContextValue()},this.renderItems(c,u)));if(c[0]instanceof Array){var d=c[0],f=c[1],h=c[2];return r.createElement("div",{className:l,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},r.createElement(jd.Provider,{value:this.getContextValue()},this.renderItems(d,u),f,h))}var p=c[0],m=r.cloneElement(p,{onClickHandler:function(t){"function"===typeof p.props.onClickHandler&&e.setState({indicatorClicked:!0},(function(){return p.props.onClickHandler(t)}))}}),v=c[1],g=c[2],y=c[3];return r.createElement("div",{className:l,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},r.createElement(jd.Provider,{value:this.getContextValue()},m,this.renderItems(v,u),g,y))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=null,r=t.activeIndex,i=t.direction,a=t.indicatorClicked;return e.activeIndex!==r&&(e.activeIndex===r+1?i="end":e.activeIndex===r-1?i="start":e.activeIndex<r?i=a?"start":"end":e.activeIndex!==r&&(i=a?"end":"start"),n={activeIndex:e.activeIndex,direction:i,indicatorClicked:!1}),n}}]),n}(r.Component);Dd.propTypes={activeIndex:ms.number,next:ms.func.isRequired,previous:ms.func.isRequired,keyboard:ms.bool,pause:ms.oneOf(["hover",!1]),ride:ms.oneOf(["carousel"]),interval:ms.oneOfType([ms.number,ms.string,ms.bool]),children:ms.array,mouseEnter:ms.func,mouseLeave:ms.func,slide:ms.bool,dark:ms.bool,cssModule:ms.object,className:ms.string,enableTouch:ms.bool},Dd.defaultProps={interval:5e3,pause:"hover",keyboard:!0,slide:!0,enableTouch:!0,fade:!1},Dd.childContextTypes={direction:ms.string};var Ld=Dd,Ad=function(e){var t=e.direction,n=e.onClickHandler,i=e.cssModule,a=e.directionText,o=e.className,s=ml(Vs(o,"carousel-control-".concat(t)),i),l=ml(Vs("carousel-control-".concat(t,"-icon")),i),u=ml(Vs("visually-hidden"),i);return r.createElement("a",{className:s,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:function(e){e.preventDefault(),n()}},r.createElement("span",{className:l,"aria-hidden":"true"}),r.createElement("span",{className:u},a||t))};Ad.propTypes={direction:ms.oneOf(["prev","next"]).isRequired,onClickHandler:ms.func.isRequired,cssModule:ms.object,directionText:ms.string,className:ms.string};var Rd=Ad,Id=function(e){var t=e.items,n=e.activeIndex,i=e.cssModule,a=e.onClickHandler,o=e.className,s=ml(Vs(o,"carousel-indicators"),i),l=t.map((function(e,t){var o=ml(Vs({active:n===t}),i);return r.createElement("button",{"aria-label":e.caption,"data-bs-target":!0,key:"".concat(e.key||Object.values(e).join("")),onClick:function(e){e.preventDefault(),a(t)},className:o},e.caption)}));return r.createElement("div",{className:s},l)};Id.propTypes={items:ms.array.isRequired,activeIndex:ms.number.isRequired,cssModule:ms.object,onClickHandler:ms.func.isRequired,className:ms.string};var zd=Id,Fd=function(e){var t=e.captionHeader,n=e.captionText,i=e.cssModule,a=e.className,o=ml(Vs(a,"carousel-caption","d-none","d-md-block"),i);return r.createElement("div",{className:o},r.createElement("h3",null,t),r.createElement("p",null,n))};Fd.propTypes={captionHeader:ms.node,captionText:ms.node.isRequired,cssModule:ms.object,className:ms.string};var Ud=Fd,Bd=["defaultActiveIndex","autoPlay","indicators","controls","items","goToIndex"],Vd={items:ms.array.isRequired,indicators:ms.bool,controls:ms.bool,autoPlay:ms.bool,defaultActiveIndex:ms.number,activeIndex:ms.number,next:ms.func,previous:ms.func,goToIndex:ms.func},Hd=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).animating=!1,r.state={activeIndex:e.defaultActiveIndex||0},r.next=r.next.bind(As(r)),r.previous=r.previous.bind(As(r)),r.goToIndex=r.goToIndex.bind(As(r)),r.onExiting=r.onExiting.bind(As(r)),r.onExited=r.onExited.bind(As(r)),r}return Bt(n,[{key:"onExiting",value:function(){this.animating=!0}},{key:"onExited",value:function(){this.animating=!1}},{key:"next",value:function(){if(!this.animating){var e=this.state.activeIndex===this.props.items.length-1?0:this.state.activeIndex+1;this.setState({activeIndex:e})}}},{key:"previous",value:function(){if(!this.animating){var e=0===this.state.activeIndex?this.props.items.length-1:this.state.activeIndex-1;this.setState({activeIndex:e})}}},{key:"goToIndex",value:function(e){this.animating||this.setState({activeIndex:e})}},{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultActiveIndex,t.autoPlay),i=t.indicators,a=t.controls,o=t.items,s=t.goToIndex,l=ul(t,Bd),u=this.state.activeIndex,c=o.map((function(t){var n=t.key||t.src;return r.createElement(Pd,{onExiting:e.onExiting,onExited:e.onExited,key:n},r.createElement("img",{className:"d-block w-100",src:t.src,alt:t.altText}),r.createElement(Ud,{captionText:t.caption,captionHeader:t.header||t.caption}))}));return r.createElement(Ld,ll({activeIndex:u,next:this.next,previous:this.previous,ride:n?"carousel":void 0},l),i&&r.createElement(zd,{items:o,activeIndex:l.activeIndex||u,onClickHandler:s||this.goToIndex}),c,a&&r.createElement(Rd,{direction:"prev",directionText:"Previous",onClickHandler:l.previous||this.previous}),a&&r.createElement(Rd,{direction:"next",directionText:"Next",onClickHandler:l.next||this.next}))}}]),n}(r.Component);Hd.propTypes=Vd,Hd.defaultProps={controls:!0,indicators:!0,autoPlay:!0};var Wd=["className","cssModule","tag"],Zd={tag:Cl,className:ms.string,cssModule:ms.object},Yd=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,Wd),o=ml(Vs(t,"card-subtitle"),n);return r.createElement(i,ll({},a,{className:o}))};Yd.propTypes=Zd,Yd.defaultProps={tag:"div"};var qd=["className","cssModule","tag"],Gd={tag:Cl,className:ms.string,cssModule:ms.object},Kd=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,qd),o=ml(Vs(t,"card-text"),n);return r.createElement(i,ll({},a,{className:o}))};Kd.propTypes=Gd,Kd.defaultProps={tag:"p"};var Qd=Kd,Xd=["className","cssModule","tag"],$d={tag:Cl,className:ms.string,cssModule:ms.object},Jd=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,Xd),o=ml(Vs(t,"card-title"),n);return r.createElement(i,ll({},a,{className:o}))};Jd.propTypes=$d,Jd.defaultProps={tag:"div"};var ef=Jd,tf=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];var nf={children:ms.oneOfType([ms.node,ms.func]).isRequired,popperClassName:ms.string,placement:ms.string,placementPrefix:ms.string,arrowClassName:ms.string,hideArrow:ms.bool,tag:Cl,isOpen:ms.bool.isRequired,cssModule:ms.object,offset:ms.arrayOf(ms.number),fallbackPlacements:ms.array,flip:ms.bool,container:kl,target:kl.isRequired,modifiers:ms.array,strategy:ms.string,boundariesElement:ms.oneOfType([ms.string,wl]),onClosed:ms.func,fade:ms.bool,transition:ms.shape(Cc.propTypes)},rf={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:function(){},fade:!0,transition:ol({},Cc.defaultProps)},af=function(e){Is(i,e);var n=Bs(i);function i(e){var t;return Vt(this,i),(t=n.call(this,e)).setTargetNode=t.setTargetNode.bind(As(t)),t.getTargetNode=t.getTargetNode.bind(As(t)),t.getRef=t.getRef.bind(As(t)),t.onClosed=t.onClosed.bind(As(t)),t.state={isOpen:e.isOpen},t}return Bt(i,[{key:"componentDidUpdate",value:function(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"setTargetNode",value:function(e){this.targetNode="string"===typeof e?zl(e):e}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return zl(this.props.container)}},{key:"getRef",value:function(e){this._element=e}},{key:"onClosed",value:function(){this.props.onClosed(),this.setState({isOpen:!1})}},{key:"renderChildren",value:function(){var e=this.props,t=e.cssModule,n=e.children,i=e.isOpen,a=e.flip,o=(e.target,e.offset),s=e.fallbackPlacements,l=e.placementPrefix,u=e.arrowClassName,c=e.hideArrow,d=e.popperClassName,f=e.tag,h=(e.container,e.modifiers),p=e.strategy,m=e.boundariesElement,v=(e.onClosed,e.fade),g=e.transition,y=e.placement,b=ul(e,tf),x=ml(Vs("arrow",u),t),_=ml(Vs(d,l?"".concat(l,"-auto"):""),this.props.cssModule),w=h.map((function(e){return e.name})),k=[{name:"offset",options:{offset:o}},{name:"flip",enabled:a,options:{fallbackPlacements:s}},{name:"preventOverflow",options:{boundary:m}}].filter((function(e){return!w.includes(e.name)})),C=[].concat(Ls(k),Ls(h)),S=ol(ol(ol({},Cc.defaultProps),g),{},{baseClass:v?g.baseClass:"",timeout:v?g.timeout:0});return r.createElement(Cc,ll({},S,b,{in:i,onExited:this.onClosed,tag:f}),r.createElement(Zs.r,{referenceElement:this.targetNode,modifiers:C,placement:y,strategy:p},(function(e){var t=e.ref,i=e.style,a=e.placement,o=e.isReferenceHidden,s=e.arrowProps,l=e.update;return r.createElement("div",{ref:t,style:i,className:_,"data-popper-placement":a,"data-popper-reference-hidden":o?"true":void 0},"function"===typeof n?n({update:l}):n,!c&&r.createElement("span",{ref:s.ref,className:x,style:s.style}))})))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?"inline"===this.props.container?this.renderChildren():t.createPortal(r.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isOpen&&!t.isOpen?{isOpen:e.isOpen}:null}}]),i}(r.Component);af.propTypes=nf,af.defaultProps=rf;var of=af,sf=function(e,t){return t.popperManager.setTargetNode(zl(e.target)),null};sf.contextTypes={popperManager:ms.object.isRequired},sf.propTypes={target:kl.isRequired};var lf={children:ms.oneOfType([ms.node,ms.func]),placement:ms.oneOf(Ol),target:kl.isRequired,container:kl,isOpen:ms.bool,disabled:ms.bool,hideArrow:ms.bool,boundariesElement:ms.oneOfType([ms.string,wl]),className:ms.string,innerClassName:ms.string,arrowClassName:ms.string,popperClassName:ms.string,cssModule:ms.object,toggle:ms.func,autohide:ms.bool,placementPrefix:ms.string,delay:ms.oneOfType([ms.shape({show:ms.number,hide:ms.number}),ms.number]),modifiers:ms.array,strategy:ms.string,offset:ms.arrayOf(ms.number),innerRef:ms.oneOfType([ms.func,ms.string,ms.object]),trigger:ms.string,fade:ms.bool,flip:ms.bool},uf={show:0,hide:50},cf={isOpen:!1,hideArrow:!1,autohide:!1,delay:uf,toggle:function(){},trigger:"click",fade:!0};function df(e,t){return t&&(e===t||t.contains(e))}function ff(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&t.length&&t.filter((function(t){return df(e,t)}))[0]}var hf=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e))._targets=[],r.currentTargetElement=null,r.addTargetEvents=r.addTargetEvents.bind(As(r)),r.handleDocumentClick=r.handleDocumentClick.bind(As(r)),r.removeTargetEvents=r.removeTargetEvents.bind(As(r)),r.toggle=r.toggle.bind(As(r)),r.showWithDelay=r.showWithDelay.bind(As(r)),r.hideWithDelay=r.hideWithDelay.bind(As(r)),r.onMouseOverTooltipContent=r.onMouseOverTooltipContent.bind(As(r)),r.onMouseLeaveTooltipContent=r.onMouseLeaveTooltipContent.bind(As(r)),r.show=r.show.bind(As(r)),r.hide=r.hide.bind(As(r)),r.onEscKeyDown=r.onEscKeyDown.bind(As(r)),r.getRef=r.getRef.bind(As(r)),r.state={isOpen:e.isOpen},r._isMounted=!1,r}return Bt(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(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")))}},{key:"onEscKeyDown",value:function(e){"Escape"===e.key&&this.hide(e)}},{key:"getRef",value:function(e){var t=this.props.innerRef;t&&("function"===typeof t?t(e):"object"===typeof t&&(t.current=e)),this._popover=e}},{key:"getDelay",value:function(e){var t=this.props.delay;return"object"===typeof t?isNaN(t[e])?uf[e]:t[e]:t}},{key:"getCurrentTarget",value:function(e){if(!e)return null;var t=this._targets.indexOf(e);return t>=0?this._targets[t]:this.getCurrentTarget(e.parentElement)}},{key:"show",value:function(e){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=e?e.currentTarget||this.getCurrentTarget(e.target):null,e&&e.composedPath&&"function"===typeof e.composedPath){var t=e.composedPath();this.currentTargetElement=t&&t[0]||this.currentTargetElement}this.toggle(e)}}},{key:"showWithDelay",value:function(e){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,e),this.getDelay("show"))}},{key:"hide",value:function(e){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(e))}},{key:"hideWithDelay",value:function(e){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"handleDocumentClick",value:function(e){var t=this.props.trigger.split(" ");t.indexOf("legacy")>-1&&(this.props.isOpen||ff(e.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!df(e.target,this._popover)?this.hideWithDelay(e):this.props.isOpen||this.showWithDelay(e)):t.indexOf("click")>-1&&ff(e.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(e):this.showWithDelay(e))}},{key:"addEventOnTargets",value:function(e,t,n){this._targets.forEach((function(r){r.addEventListener(e,t,n)}))}},{key:"removeEventOnTargets",value:function(e,t,n){this._targets.forEach((function(r){r.removeEventListener(e,t,n)}))}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var e=this.props.trigger.split(" ");-1===e.indexOf("manual")&&((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)))}}},{key:"removeTargetEvents",value:function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"updateTarget",value:function(){var e=zl(this.props.target,!0);e!==this._targets&&(this.removeTargetEvents(),this._targets=e?Array.from(e):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(e){return this.props.disabled||!this._isMounted?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){var e=this;this.props.isOpen&&this.updateTarget();var t=this.currentTargetElement||this._targets[0];if(!t)return null;var n=this.props,i=n.className,a=n.cssModule,o=n.innerClassName,s=n.isOpen,l=n.hideArrow,u=n.boundariesElement,c=n.placement,d=n.placementPrefix,f=n.arrowClassName,h=n.popperClassName,p=n.container,m=n.modifiers,v=n.strategy,g=n.offset,y=n.fade,b=n.flip,x=n.children,_=vl(this.props,Object.keys(lf)),w=ml(h,a),k=ml(o,a);return r.createElement(of,{className:i,target:t,isOpen:s,hideArrow:l,boundariesElement:u,placement:c,placementPrefix:d,arrowClassName:f,popperClassName:w,container:p,modifiers:m,strategy:v,offset:g,cssModule:a,fade:y,flip:b},(function(t){var n=t.update;return r.createElement("div",ll({},_,{ref:e.getRef,className:k,role:"tooltip",onMouseOver:e.onMouseOverTooltipContent,onMouseLeave:e.onMouseLeaveTooltipContent,onKeyDown:e.onEscKeyDown}),"function"===typeof x?x({update:n}):x)}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isOpen&&!t.isOpen?{isOpen:e.isOpen}:null}}]),n}(r.Component);hf.propTypes=lf,hf.defaultProps=cf;var pf=hf,mf=function(e){var t=Vs("popover","show",e.popperClassName),n=Vs("popover-inner",e.innerClassName);return r.createElement(pf,ll({},e,{arrowClassName:"popover-arrow",popperClassName:t,innerClassName:n}))};mf.propTypes=lf,mf.defaultProps={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};var vf=mf,gf=["defaultOpen"];(function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).state={isOpen:e.defaultOpen||!1},r.toggle=r.toggle.bind(As(r)),r}return Bt(n,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return r.createElement(vf,ll({isOpen:this.state.isOpen,toggle:this.toggle},vl(this.props,gf)))}}]),n}(r.Component)).propTypes=ol({defaultOpen:ms.bool},vf.propTypes);var yf=["className","cssModule","tag"],bf={tag:Cl,className:ms.string,cssModule:ms.object},xf=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,yf),o=ml(Vs(t,"popover-header"),n);return r.createElement(i,ll({},a,{className:o}))};xf.propTypes=bf,xf.defaultProps={tag:"h3"};var _f=["className","cssModule","tag"],wf={tag:Cl,className:ms.string,cssModule:ms.object},kf=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,_f),o=ml(Vs(t,"popover-body"),n);return r.createElement(i,ll({},a,{className:o}))};kf.propTypes=wf,kf.defaultProps={tag:"div"};var Cf=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"],Sf={children:ms.node,bar:ms.bool,multi:ms.bool,tag:Cl,value:ms.oneOfType([ms.string,ms.number]),min:ms.oneOfType([ms.string,ms.number]),max:ms.oneOfType([ms.string,ms.number]),animated:ms.bool,striped:ms.bool,color:ms.string,className:ms.string,barClassName:ms.string,cssModule:ms.object,style:ms.object,barStyle:ms.object,barAriaValueText:ms.string,barAriaLabelledBy:ms.string},Ef=function(e){var t=e.children,n=e.className,i=e.barClassName,a=e.cssModule,o=e.value,s=e.min,l=e.max,u=e.animated,c=e.striped,d=e.color,f=e.bar,h=e.multi,p=e.tag,m=e.style,v=e.barStyle,g=e.barAriaValueText,y=e.barAriaLabelledBy,b=ul(e,Cf),x=Dl(o)/Dl(l)*100,_=ml(Vs(n,"progress"),a),w={className:ml(Vs("progress-bar",f&&n||i,u?"progress-bar-animated":null,d?"bg-".concat(d):null,c||u?"progress-bar-striped":null),a),style:ol(ol(ol({},f?m:{}),v),{},{width:"".concat(x,"%")}),role:"progressbar","aria-valuenow":o,"aria-valuemin":s,"aria-valuemax":l,"aria-valuetext":g,"aria-labelledby":y,children:t};return f?r.createElement(p,ll({},b,w)):r.createElement(p,ll({},b,{style:m,className:_}),h?t:r.createElement("div",w))};Ef.propTypes=Sf,Ef.defaultProps={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};var Mf=Ef,Tf={children:ms.node.isRequired,node:ms.any},Of=function(e){Is(r,e);var n=Bs(r);function r(){return Vt(this,r),n.apply(this,arguments)}return Bt(r,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return Nl?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),t.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),r}(r.Component);Of.propTypes=Tf;var Nf=Of;function Pf(){}var jf=ms.shape(Cc.propTypes),Df={isOpen:ms.bool,autoFocus:ms.bool,centered:ms.bool,fullscreen:ms.oneOfType([ms.bool,ms.oneOf(["sm","md","lg","xl"])]),scrollable:ms.bool,size:ms.string,toggle:ms.func,keyboard:ms.bool,role:ms.string,labelledBy:ms.string,backdrop:ms.oneOfType([ms.bool,ms.oneOf(["static"])]),onEnter:ms.func,onExit:ms.func,onOpened:ms.func,onClosed:ms.func,children:ms.node,className:ms.string,wrapClassName:ms.string,modalClassName:ms.string,backdropClassName:ms.string,contentClassName:ms.string,external:ms.node,fade:ms.bool,cssModule:ms.object,zIndex:ms.oneOfType([ms.number,ms.string]),backdropTransition:jf,modalTransition:jf,innerRef:ms.oneOfType([ms.object,ms.string,ms.func]),unmountOnClose:ms.bool,returnFocusAfterClose:ms.bool,container:kl,trapFocus:ms.bool},Lf=Object.keys(Df),Af={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Pf,onClosed:Pf,modalTransition:{timeout:Sl.Modal},backdropTransition:{mountOnEnter:!0,timeout:Sl.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},Rf=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e))._element=null,r._originalBodyPadding=null,r.getFocusableChildren=r.getFocusableChildren.bind(As(r)),r.handleBackdropClick=r.handleBackdropClick.bind(As(r)),r.handleBackdropMouseDown=r.handleBackdropMouseDown.bind(As(r)),r.handleEscape=r.handleEscape.bind(As(r)),r.handleStaticBackdropAnimation=r.handleStaticBackdropAnimation.bind(As(r)),r.handleTab=r.handleTab.bind(As(r)),r.onOpened=r.onOpened.bind(As(r)),r.onClosed=r.onClosed.bind(As(r)),r.manageFocusAfterClose=r.manageFocusAfterClose.bind(As(r)),r.clearBackdropAnimationTimeout=r.clearBackdropAnimationTimeout.bind(As(r)),r.trapFocus=r.trapFocus.bind(As(r)),r.state={isOpen:!1,showStaticBackdropAnimation:!1},r}return Bt(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isOpen,n=e.autoFocus,r=e.onEnter;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){if(this.props.isOpen&&!e.isOpen)return this.init(),void this.setState({isOpen:!0});this.props.autoFocus&&this.state.isOpen&&!t.isOpen&&this.setFocus(),this._element&&e.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"trapFocus",value:function(e){if(this.props.trapFocus&&this._element&&(!this._dialog||this._dialog.parentNode!==e.target)&&!(this.modalIndex<n.openCount-1)){for(var t=this.getFocusableChildren(),r=0;r<t.length;r++)if(t[r]===e.target)return;t.length>0&&(e.preventDefault(),e.stopPropagation(),t[0].focus())}}},{key:"onOpened",value:function(e,t){this.props.onOpened(),(this.props.modalTransition.onEntered||Pf)(e,t)}},{key:"onClosed",value:function(e){var t=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||Pf)(e),t&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&this._dialog.parentNode&&"function"===typeof this._dialog.parentNode.focus&&this._dialog.parentNode.focus()}},{key:"getFocusableChildren",value:function(){return this._element.querySelectorAll(Bl.join(", "))}},{key:"getFocusedChild",value:function(){var e,t=this.getFocusableChildren();try{e=document.activeElement}catch(n){e=t[0]}return e}},{key:"handleBackdropClick",value:function(e){if(e.target===this._mouseDownElement){e.stopPropagation();var t=this._dialog?this._dialog.parentNode:null;if(t&&e.target===t&&"static"===this.props.backdrop&&this.handleStaticBackdropAnimation(),!this.props.isOpen||!0!==this.props.backdrop)return;t&&e.target===t&&this.props.toggle&&this.props.toggle(e)}}},{key:"handleTab",value:function(e){if(9===e.which&&!(this.modalIndex<n.openCount-1)){var t=this.getFocusableChildren(),r=t.length;if(0!==r){for(var i=this.getFocusedChild(),a=0,o=0;o<r;o+=1)if(t[o]===i){a=o;break}e.shiftKey&&0===a?(e.preventDefault(),t[r-1].focus()):e.shiftKey||a!==r-1||(e.preventDefault(),t[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(e){this._mouseDownElement=e.target}},{key:"handleEscape",value:function(e){this.props.isOpen&&e.keyCode===Tl.esc&&this.props.toggle&&(this.props.keyboard?(e.preventDefault(),e.stopPropagation(),this.props.toggle(e)):"static"===this.props.backdrop&&(e.preventDefault(),e.stopPropagation(),this.handleStaticBackdropAnimation()))}},{key:"handleStaticBackdropAnimation",value:function(){var e=this;this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout((function(){e.setState({showStaticBackdropAnimation:!1})}),100)}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch(e){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=zl(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=hl(),pl(),0===n.openCount&&(document.body.className=Vs(document.body.className,ml("modal-open",this.props.cssModule))),this.modalIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var e=this.props.returnFocusAfterClose;this._triggeringElement.focus&&e&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(n.openCount<=1){var e=ml("modal-open",this.props.cssModule),t=new RegExp("(^| )".concat(e,"( |$)"));document.body.className=document.body.className.replace(t," ").trim()}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),dl(this._originalBodyPadding)}},{key:"renderModalDialog",value:function(){var e,t=this,n=vl(this.props,Lf),i="modal-dialog";return r.createElement("div",ll({},n,{className:ml(Vs(i,this.props.className,(e={},Ve(e,"modal-".concat(this.props.size),this.props.size),Ve(e,"".concat(i,"-centered"),this.props.centered),Ve(e,"".concat(i,"-scrollable"),this.props.scrollable),Ve(e,"modal-fullscreen",!0===this.props.fullscreen),Ve(e,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),"string"===typeof this.props.fullscreen),e)),this.props.cssModule),role:"document",ref:function(e){t._dialog=e}}),r.createElement("div",{className:ml(Vs("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var e=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!e)){var t=!!this._element&&!this.state.isOpen&&!e;this._element.style.display=t?"none":"block";var n=this.props,i=n.wrapClassName,a=n.modalClassName,o=n.backdropClassName,s=n.cssModule,l=n.isOpen,u=n.backdrop,c=n.role,d=n.labelledBy,f=n.external,h=n.innerRef,p={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":d,role:c,tabIndex:"-1"},m=this.props.fade,v=ol(ol(ol({},Cc.defaultProps),this.props.modalTransition),{},{baseClass:m?this.props.modalTransition.baseClass:"",timeout:m?this.props.modalTransition.timeout:0}),g=ol(ol(ol({},Cc.defaultProps),this.props.backdropTransition),{},{baseClass:m?this.props.backdropTransition.baseClass:"",timeout:m?this.props.backdropTransition.timeout:0}),y=u&&(m?r.createElement(Cc,ll({},g,{in:l&&!!u,cssModule:s,className:ml(Vs("modal-backdrop",o),s)})):r.createElement("div",{className:ml(Vs("modal-backdrop","show",o),s)}));return r.createElement(Nf,{node:this._element},r.createElement("div",{className:ml(i)},r.createElement(Cc,ll({},p,v,{in:l,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:ml(Vs("modal",a,this.state.showStaticBackdropAnimation&&"modal-static"),s),innerRef:h}),f,this.renderModalDialog()),y))}return null}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}}]),n}(r.Component);Rf.propTypes=Df,Rf.defaultProps=Af,Rf.openCount=0;var If=Rf,zf=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"],Ff={tag:Cl,wrapTag:Cl,toggle:ms.func,className:ms.string,cssModule:ms.object,children:ms.node,closeAriaLabel:ms.string,close:ms.object},Uf=function(e){var t,n=e.className,i=e.cssModule,a=e.children,o=e.toggle,s=e.tag,l=e.wrapTag,u=e.closeAriaLabel,c=e.close,d=ul(e,zf),f=ml(Vs(n,"modal-header"),i);return!c&&o&&(t=r.createElement("button",{type:"button",onClick:o,className:ml("btn-close",i),"aria-label":u})),r.createElement(l,ll({},d,{className:f}),r.createElement(s,{className:ml("modal-title",i)},a),c||t)};Uf.propTypes=Ff,Uf.defaultProps={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"};var Bf=Uf,Vf=["className","cssModule","tag"],Hf={tag:Cl,className:ms.string,cssModule:ms.object},Wf=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,Vf),o=ml(Vs(t,"modal-body"),n);return r.createElement(i,ll({},a,{className:o}))};Wf.propTypes=Hf,Wf.defaultProps={tag:"div"};var Zf=Wf,Yf=["className","cssModule","tag"],qf={tag:Cl,className:ms.string,cssModule:ms.object},Gf=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,Yf),o=ml(Vs(t,"modal-footer"),n);return r.createElement(i,ll({},a,{className:o}))};Gf.propTypes=qf,Gf.defaultProps={tag:"div"};var Kf=Gf,Qf=function(e){var t=Vs("tooltip","show",e.popperClassName),n=Vs("tooltip-inner",e.innerClassName);return r.createElement(pf,ll({},e,{arrowClassName:"tooltip-arrow",popperClassName:t,innerClassName:n}))};Qf.propTypes=lf,Qf.defaultProps={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};var Xf=Qf,$f=["className","cssModule","size","bordered","borderless","striped","dark","hover","responsive","tag","responsiveTag","innerRef"],Jf={className:ms.string,cssModule:ms.object,size:ms.string,bordered:ms.bool,borderless:ms.bool,striped:ms.bool,dark:ms.bool,hover:ms.bool,responsive:ms.oneOfType([ms.bool,ms.string]),tag:Cl,responsiveTag:Cl,innerRef:ms.oneOfType([ms.func,ms.string,ms.object])},eh=function(e){var t=e.className,n=e.cssModule,i=e.size,a=e.bordered,o=e.borderless,s=e.striped,l=e.dark,u=e.hover,c=e.responsive,d=e.tag,f=e.responsiveTag,h=e.innerRef,p=ul(e,$f),m=ml(Vs(t,"table",!!i&&"table-"+i,!!a&&"table-bordered",!!o&&"table-borderless",!!s&&"table-striped",!!l&&"table-dark",!!u&&"table-hover"),n),v=r.createElement(d,ll({},p,{ref:h,className:m}));if(c){var g=ml(!0===c?"table-responsive":"table-responsive-".concat(c),n);return r.createElement(f,{className:g},v)}return v};eh.propTypes=Jf,eh.defaultProps={tag:"table",responsiveTag:"div"};var th=["className","cssModule","tag","flush","horizontal","numbered"],nh={tag:Cl,flush:ms.bool,className:ms.string,cssModule:ms.object,horizontal:ms.oneOfType([ms.bool,ms.string]),numbered:ms.bool},rh=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=e.flush,o=e.horizontal,s=e.numbered,l=ul(e,th),u=ml(Vs(t,"list-group",a?"list-group-flush":function(e){return!1!==e&&(!0===e||"xs"===e?"list-group-horizontal":"list-group-horizontal-".concat(e))}(o),{"list-group-numbered":s}),n);return r.createElement(i,ll({},l,{className:u}))};rh.propTypes=nh,rh.defaultProps={tag:"ul",horizontal:!1,numbered:!1};var ih=rh,ah=["className","cssModule","inline","tag","innerRef"],oh={children:ms.node,inline:ms.bool,tag:Cl,innerRef:ms.oneOfType([ms.object,ms.func,ms.string]),className:ms.string,cssModule:ms.object},sh=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).getRef=r.getRef.bind(As(r)),r.submit=r.submit.bind(As(r)),r}return Bt(n,[{key:"getRef",value:function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e}},{key:"submit",value:function(){this.ref&&this.ref.submit()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,i=e.inline,a=e.tag,o=e.innerRef,s=ul(e,ah),l=ml(Vs(t,!!i&&"form-inline"),n);return r.createElement(a,ll({},s,{ref:o,className:l}))}}]),n}(r.Component);sh.propTypes=oh,sh.defaultProps={tag:"form"};var lh=["className","cssModule","valid","tooltip","tag"],uh={children:ms.node,tag:Cl,className:ms.string,cssModule:ms.object,valid:ms.bool,tooltip:ms.bool},ch={tag:"div",valid:void 0},dh=function(e){var t=e.className,n=e.cssModule,i=e.valid,a=e.tooltip,o=e.tag,s=ul(e,lh),l=a?"tooltip":"feedback",u=ml(Vs(t,i?"valid-".concat(l):"invalid-".concat(l)),n);return r.createElement(o,ll({},s,{className:u}))};dh.propTypes=uh,dh.defaultProps=ch;var fh=["className","cssModule","row","disabled","check","inline","floating","tag"],hh={children:ms.node,row:ms.bool,check:ms.bool,switch:ms.bool,inline:ms.bool,floating:ms.bool,disabled:ms.bool,tag:Cl,className:ms.string,cssModule:ms.object},ph=function(e){var t=e.className,n=e.cssModule,i=e.row,a=e.disabled,o=e.check,s=e.inline,l=e.floating,u=e.tag,c=ul(e,fh),d=o||e.switch,f=ml(Vs(t,!!i&&"row",d?"form-check":"mb-3",!!e.switch&&"form-switch",!(!d||!s)&&"form-check-inline",!(!d||!a)&&"disabled",l&&"form-floating"),n);return"fieldset"===u&&(c.disabled=a),r.createElement(u,ll({},c,{className:f}))};ph.propTypes=hh,ph.defaultProps={tag:"div"};var mh=ph,vh=["className","cssModule","inline","color","tag"],gh={children:ms.node,inline:ms.bool,tag:Cl,color:ms.string,className:ms.string,cssModule:ms.object},yh=function(e){var t=e.className,n=e.cssModule,i=e.inline,a=e.color,o=e.tag,s=ul(e,vh),l=ml(Vs(t,!i&&"form-text",!!a&&"text-".concat(a)),n);return r.createElement(o,ll({},s,{className:l}))};yh.propTypes=gh,yh.defaultProps={tag:"small",color:"muted"};var bh=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],xh={children:ms.node,type:ms.string,size:ms.oneOfType([ms.number,ms.string]),bsSize:ms.string,valid:ms.bool,invalid:ms.bool,tag:Cl,innerRef:ms.oneOfType([ms.object,ms.func,ms.string]),plaintext:ms.bool,addon:ms.bool,className:ms.string,cssModule:ms.object},_h=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).getRef=r.getRef.bind(As(r)),r.focus=r.focus.bind(As(r)),r}return Bt(n,[{key:"getRef",value:function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,i=e.type,a=e.bsSize,o=e.valid,s=e.invalid,l=e.tag,u=e.addon,c=e.plaintext,d=e.innerRef,f=ul(e,bh),h=["switch","radio","checkbox"].indexOf(i)>-1,p=new RegExp("\\D","g"),m="select"===i,v="range"===i,g=l||(m||"textarea"===i?i:"input"),y="form-control";c?(y="".concat(y,"-plaintext"),g=l||"input"):v?y="form-range":m?y="form-select":h&&(y=u?null:"form-check-input"),f.size&&p.test(f.size)&&(bl('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),a=f.size,delete f.size);var b=ml(Vs(t,s&&"is-invalid",o&&"is-valid",!!a&&(m?"form-select-".concat(a):"form-control-".concat(a)),y),n);return("input"===g||l&&"function"===typeof l)&&(f.type="switch"===i?"checkbox":i),f.children&&!c&&"select"!==i&&"string"===typeof g&&"select"!==g&&(bl('Input with a type of "'.concat(i,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete f.children),r.createElement(g,ll({},f,{ref:d,className:b,"aria-invalid":s}))}}]),n}(r.Component);_h.propTypes=xh,_h.defaultProps={type:"text"};var wh=_h,kh=["className","cssModule","tag","type","size"],Ch={tag:Cl,type:ms.bool,size:ms.string,className:ms.string,cssModule:ms.object},Sh=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=(e.type,e.size),o=ul(e,kh),s=ml(Vs(t,"input-group",a?"input-group-".concat(a):null),n);return"dropdown"===e.type?r.createElement($u,ll({},o,{className:s})):r.createElement(i,ll({},o,{className:s}))};Sh.propTypes=Ch,Sh.defaultProps={tag:"div"};var Eh=Sh,Mh=["className","cssModule","tag"],Th={tag:Cl,className:ms.string,cssModule:ms.object},Oh=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,Mh),o=ml(Vs(t,"input-group-text"),n);return r.createElement(i,ll({},a,{className:o}))};Oh.propTypes=Th,Oh.defaultProps={tag:"span"};var Nh=["className","cssModule","hidden","widths","tag","check","size","for"],Ph=ms.oneOfType([ms.number,ms.string]),jh=ms.oneOfType([ms.bool,ms.string,ms.number,ms.shape({size:Ph,order:Ph,offset:Ph})]),Dh={children:ms.node,hidden:ms.bool,check:ms.bool,size:ms.string,for:ms.string,tag:Cl,className:ms.string,cssModule:ms.object,xs:jh,sm:jh,md:jh,lg:jh,xl:jh,xxl:jh,widths:ms.array},Lh={tag:"label",widths:["xs","sm","md","lg","xl","xxl"]},Ah=function(e,t,n){return!0===n||""===n?e?"col":"col-".concat(t):"auto"===n?e?"col-auto":"col-".concat(t,"-auto"):e?"col-".concat(n):"col-".concat(t,"-").concat(n)},Rh=function(e){var t=e.className,n=e.cssModule,i=e.hidden,a=e.widths,o=e.tag,s=e.check,l=e.size,u=e.for,c=ul(e,Nh),d=[];a.forEach((function(t,r){var i=e[t];if(delete c[t],i||""===i){var a,o=!r;if(Ll(i)){var s,l=o?"-":"-".concat(t,"-");a=Ah(o,t,i.size),d.push(ml(Vs((Ve(s={},a,i.size||""===i.size),Ve(s,"order".concat(l).concat(i.order),i.order||0===i.order),Ve(s,"offset".concat(l).concat(i.offset),i.offset||0===i.offset),s))),n)}else a=Ah(o,t,i),d.push(a)}}));var f=ml(Vs(t,!!i&&"visually-hidden",!!s&&"form-check-label",!!l&&"col-form-label-".concat(l),d,d.length?"col-form-label":"form-label"),n);return r.createElement(o,ll({htmlFor:u},c,{className:f}))};Rh.propTypes=Dh,Rh.defaultProps=Lh;var Ih=["body","bottom","className","cssModule","heading","left","list","middle","object","right","tag","top"],zh={body:ms.bool,bottom:ms.bool,children:ms.node,className:ms.string,cssModule:ms.object,heading:ms.bool,left:ms.bool,list:ms.bool,middle:ms.bool,object:ms.bool,right:ms.bool,tag:Cl,top:ms.bool},Fh=function(e){var t,n=e.body,i=e.bottom,a=e.className,o=e.cssModule,s=e.heading,l=e.left,u=e.list,c=e.middle,d=e.object,f=e.right,h=e.tag,p=e.top,m=ul(e,Ih);t=s?"h4":m.href?"a":m.src||d?"img":u?"ul":"div";var v=h||t,g=ml(Vs(a,{"media-body":n,"media-heading":s,"media-left":l,"media-right":f,"media-top":p,"media-bottom":i,"media-middle":c,"media-object":d,"media-list":u,media:!n&&!s&&!l&&!f&&!p&&!i&&!c&&!d&&!u}),o);return r.createElement(v,ll({},m,{className:g}))};Fh.propTypes=zh;function Uh(){}var Bh=ms.shape(Cc.propTypes),Vh={autoFocus:ms.bool,backdrop:ms.bool,backdropClassName:ms.string,backdropTransition:Bh,children:ms.node,className:ms.string,container:kl,cssModule:ms.object,direction:ms.oneOf(["start","end","bottom","top","left","right"]),fade:ms.bool,innerRef:ms.oneOfType([ms.object,ms.string,ms.func]),isOpen:ms.bool,keyboard:ms.bool,labelledBy:ms.string,offcanvasTransition:Bh,onClosed:ms.func,onEnter:ms.func,onExit:ms.func,onOpened:ms.func,returnFocusAfterClose:ms.bool,role:ms.string,scrollable:ms.bool,toggle:ms.func,trapFocus:ms.bool,unmountOnClose:ms.bool,zIndex:ms.oneOfType([ms.number,ms.string])},Hh=Object.keys(Vh),Wh={isOpen:!1,autoFocus:!0,direction:"start",scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Uh,onClosed:Uh,offcanvasTransition:{timeout:Sl.Offcanvas},backdropTransition:{mountOnEnter:!0,timeout:Sl.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},Zh=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e))._element=null,r._originalBodyPadding=null,r.getFocusableChildren=r.getFocusableChildren.bind(As(r)),r.handleBackdropClick=r.handleBackdropClick.bind(As(r)),r.handleBackdropMouseDown=r.handleBackdropMouseDown.bind(As(r)),r.handleEscape=r.handleEscape.bind(As(r)),r.handleTab=r.handleTab.bind(As(r)),r.onOpened=r.onOpened.bind(As(r)),r.onClosed=r.onClosed.bind(As(r)),r.manageFocusAfterClose=r.manageFocusAfterClose.bind(As(r)),r.clearBackdropAnimationTimeout=r.clearBackdropAnimationTimeout.bind(As(r)),r.trapFocus=r.trapFocus.bind(As(r)),r.state={isOpen:!1},r}return Bt(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isOpen,n=e.autoFocus,r=e.onEnter;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){if(this.props.isOpen&&!e.isOpen)return this.init(),void this.setState({isOpen:!0});this.props.autoFocus&&this.state.isOpen&&!t.isOpen&&this.setFocus(),this._element&&e.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"trapFocus",value:function(e){if(this.props.trapFocus&&this._element&&this._dialog!==e.target&&!(this.offcanvasIndex<n.openCount-1)){for(var t=this.getFocusableChildren(),r=0;r<t.length;r++)if(t[r]===e.target)return;t.length>0&&(e.preventDefault(),e.stopPropagation(),t[0].focus())}}},{key:"onOpened",value:function(e,t){this.props.onOpened(),(this.props.offcanvasTransition.onEntered||Uh)(e,t)}},{key:"onClosed",value:function(e){var t=this.props.unmountOnClose;this.props.onClosed(),(this.props.offcanvasTransition.onExited||Uh)(e),t&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&"function"===typeof this._dialog.focus&&this._dialog.focus()}},{key:"getFocusableChildren",value:function(){return this._element.querySelectorAll(Bl.join(", "))}},{key:"getFocusedChild",value:function(){var e,t=this.getFocusableChildren();try{e=document.activeElement}catch(n){e=t[0]}return e}},{key:"handleBackdropClick",value:function(e){if(e.target===this._mouseDownElement){e.stopPropagation();var t=this._backdrop;if(!this.props.isOpen||!0!==this.props.backdrop)return;t&&e.target===t&&this.props.toggle&&this.props.toggle(e)}}},{key:"handleTab",value:function(e){if(9===e.which&&!(this.offcanvasIndex<n.openCount-1)){var t=this.getFocusableChildren(),r=t.length;if(0!==r){for(var i=this.getFocusedChild(),a=0,o=0;o<r;o+=1)if(t[o]===i){a=o;break}e.shiftKey&&0===a?(e.preventDefault(),t[r-1].focus()):e.shiftKey||a!==r-1||(e.preventDefault(),t[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(e){this._mouseDownElement=e.target}},{key:"handleEscape",value:function(e){this.props.isOpen&&e.keyCode===Tl.esc&&this.props.toggle&&this.props.keyboard&&(e.preventDefault(),e.stopPropagation(),this.props.toggle(e))}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch(e){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=zl(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=hl(),pl(),0===n.openCount&&this.props.backdrop&&!this.props.scrollable&&(document.body.style.overflow="hidden"),this.offcanvasIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var e=this.props.returnFocusAfterClose;this._triggeringElement.focus&&e&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),document.body.style.overflow=null,dl(this._originalBodyPadding)}},{key:"render",value:function(){var e=this,t=this.props,n=t.direction,i=t.unmountOnClose;if(this._element&&(this.state.isOpen||!i)){var a=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=a?"none":"block";var o=this.props,s=o.className,l=o.backdropClassName,u=o.cssModule,c=o.isOpen,d=o.backdrop,f=o.role,h=o.labelledBy,p=o.style,m={onKeyUp:this.handleEscape,onKeyDown:this.handleTab,"aria-labelledby":h,role:f,tabIndex:"-1"},v=this.props.fade,g=ol(ol(ol({},Cc.defaultProps),this.props.offcanvasTransition),{},{baseClass:v?this.props.offcanvasTransition.baseClass:"",timeout:v?this.props.offcanvasTransition.timeout:0}),y=ol(ol(ol({},Cc.defaultProps),this.props.backdropTransition),{},{baseClass:v?this.props.backdropTransition.baseClass:"",timeout:v?this.props.backdropTransition.timeout:0}),b=d&&(v?r.createElement(Cc,ll({},y,{in:c&&!!d,innerRef:function(t){e._backdrop=t},cssModule:u,className:ml(Vs("offcanvas-backdrop",l),u),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})):r.createElement("div",{className:ml(Vs("offcanvas-backdrop","show",l),u),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})),x=vl(this.props,Hh);return r.createElement(Nf,{node:this._element},r.createElement(Cc,ll({},x,m,g,{in:c,onEntered:this.onOpened,onExited:this.onClosed,cssModule:u,className:ml(Vs("offcanvas",s,"offcanvas-".concat(n)),u),innerRef:function(t){e._dialog=t},style:ol(ol({},p),{},{visibility:c?"visible":"hidden"})}),this.props.children),b)}return null}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}}]),n}(r.Component);Zh.propTypes=Vh,Zh.defaultProps=Wh,Zh.openCount=0;var Yh=["className","cssModule","tag"],qh={tag:Cl,className:ms.string,cssModule:ms.object},Gh=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,Yh),o=ml(Vs(t,"offcanvas-body"),n);return r.createElement(i,ll({},a,{className:o}))};Gh.propTypes=qh,Gh.defaultProps={tag:"div"};var Kh=["children","className","close","closeAriaLabel","cssModule","tag","toggle","wrapTag"],Qh={children:ms.node,className:ms.string,close:ms.object,closeAriaLabel:ms.string,cssModule:ms.object,tag:Cl,toggle:ms.func,wrapTag:Cl},Xh=function(e){var t,n=e.children,i=e.className,a=e.close,o=e.closeAriaLabel,s=e.cssModule,l=e.tag,u=e.toggle,c=e.wrapTag,d=ul(e,Kh),f=ml(Vs(i,"offcanvas-header"),s);return!a&&u&&(t=r.createElement("button",{type:"button",onClick:u,className:ml("btn-close",s),"aria-label":o})),r.createElement(c,ll({},d,{className:f}),r.createElement(l,{className:ml("offcanvas-title",s)},n),a||t)};Xh.propTypes=Qh,Xh.defaultProps={closeAriaLabel:"Close",tag:"h5",wrapTag:"div"};var $h=["className","listClassName","cssModule","size","tag","listTag","aria-label"],Jh={children:ms.node,className:ms.string,listClassName:ms.string,cssModule:ms.object,size:ms.string,tag:Cl,listTag:Cl,"aria-label":ms.string},ep=function(e){var t=e.className,n=e.listClassName,i=e.cssModule,a=e.size,o=e.tag,s=e.listTag,l=e["aria-label"],u=ul(e,$h),c=ml(Vs(t),i),d=ml(Vs(n,"pagination",Ve({},"pagination-".concat(a),!!a)),i);return r.createElement(o,{className:c,"aria-label":l},r.createElement(s,ll({},u,{className:d})))};ep.propTypes=Jh,ep.defaultProps={tag:"nav",listTag:"ul","aria-label":"pagination"};var tp=ep,np=["active","className","cssModule","disabled","tag"],rp={active:ms.bool,children:ms.node,className:ms.string,cssModule:ms.object,disabled:ms.bool,tag:Cl},ip=function(e){var t=e.active,n=e.className,i=e.cssModule,a=e.disabled,o=e.tag,s=ul(e,np),l=ml(Vs(n,"page-item",{active:t,disabled:a}),i);return r.createElement(o,ll({},s,{className:l}))};ip.propTypes=rp,ip.defaultProps={tag:"li"};var ap=ip,op=["className","cssModule","next","previous","first","last","tag"],sp={"aria-label":ms.string,children:ms.node,className:ms.string,cssModule:ms.object,next:ms.bool,previous:ms.bool,first:ms.bool,last:ms.bool,tag:Cl},lp=function(e){var t,n=e.className,i=e.cssModule,a=e.next,o=e.previous,s=e.first,l=e.last,u=e.tag,c=ul(e,op),d=ml(Vs(n,"page-link"),i);o?t="Previous":a?t="Next":s?t="First":l&&(t="Last");var f,h=e["aria-label"]||t;o?f="\u2039":a?f="\u203a":s?f="\xab":l&&(f="\xbb");var p=e.children;return p&&Array.isArray(p)&&0===p.length&&(p=null),c.href||"a"!==u||(u="button"),(o||a||s||l)&&(p=[r.createElement("span",{"aria-hidden":"true",key:"caret"},p||f),r.createElement("span",{className:"visually-hidden",key:"ariaLabel"},h)]),r.createElement(u,ll({},c,{className:d,"aria-label":h}),p)};lp.propTypes=sp,lp.defaultProps={tag:"a"};var up=lp,cp=r.createContext({}),dp={tag:Cl,activeTab:ms.any,className:ms.string,cssModule:ms.object},fp=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).state={activeTab:r.props.activeTab},r}return Bt(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,i=e.tag,a=vl(this.props,Object.keys(dp)),o=ml(Vs("tab-content",t),n);return r.createElement(cp.Provider,{value:{activeTabId:this.state.activeTab}},r.createElement(i,ll({},a,{className:o})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.activeTab!==e.activeTab?{activeTab:e.activeTab}:null}}]),n}(r.Component);fp.propTypes=dp,fp.defaultProps={tag:"div"};var hp=["className","cssModule","tabId","tag"],pp={tag:Cl,className:ms.string,cssModule:ms.object,tabId:ms.any};function mp(e){var t=e.className,n=e.cssModule,i=e.tabId,a=e.tag,o=ul(e,hp),s=function(e){return ml(Vs("tab-pane",t,{active:i===e}),n)};return r.createElement(cp.Consumer,null,(function(e){var t=e.activeTabId;return r.createElement(a,ll({},o,{className:s(t)}))}))}mp.propTypes=pp,mp.defaultProps={tag:"div"};var vp=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"],gp={children:ms.node,className:ms.string,closeClassName:ms.string,closeAriaLabel:ms.string,cssModule:ms.object,color:ms.string,fade:ms.bool,isOpen:ms.bool,toggle:ms.func,tag:Cl,transition:ms.shape(Cc.propTypes),innerRef:ms.oneOfType([ms.object,ms.string,ms.func])},yp={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:ol(ol({},Cc.defaultProps),{},{unmountOnExit:!0})};function bp(e){var t=e.className,n=e.closeClassName,i=e.closeAriaLabel,a=e.cssModule,o=e.tag,s=e.color,l=e.isOpen,u=e.toggle,c=e.children,d=e.transition,f=e.fade,h=e.innerRef,p=ul(e,vp),m=ml(Vs(t,"alert","alert-".concat(s),{"alert-dismissible":u}),a),v=ml(Vs("btn-close",n),a),g=ol(ol(ol({},Cc.defaultProps),d),{},{baseClass:f?d.baseClass:"",timeout:f?d.timeout:0});return r.createElement(Cc,ll({},p,g,{tag:o,className:m,in:l,role:"alert",innerRef:h}),u?r.createElement("button",{type:"button",className:v,"aria-label":i,onClick:u}):null,c)}bp.propTypes=gp,bp.defaultProps=yp;var xp=["className","cssModule","tag","isOpen","children","transition","fade","innerRef"],_p={children:ms.node,className:ms.string,cssModule:ms.object,fade:ms.bool,isOpen:ms.bool,tag:Cl,transition:ms.shape(Cc.propTypes),innerRef:ms.oneOfType([ms.object,ms.string,ms.func])},wp={isOpen:!0,tag:"div",fade:!0,transition:ol(ol({},Cc.defaultProps),{},{unmountOnExit:!0})};function kp(e){var t=e.className,n=e.cssModule,i=e.tag,a=e.isOpen,o=e.children,s=e.transition,l=e.fade,u=e.innerRef,c=ul(e,xp),d=ml(Vs(t,"toast"),n),f=ol(ol(ol({},Cc.defaultProps),s),{},{baseClass:l?s.baseClass:"",timeout:l?s.timeout:0});return r.createElement(Cc,ll({},c,f,{tag:i,className:d,in:a,role:"alert",innerRef:u}),o)}kp.propTypes=_p,kp.defaultProps=wp;var Cp=["className","cssModule","innerRef","tag"],Sp={tag:Cl,className:ms.string,cssModule:ms.object,innerRef:ms.oneOfType([ms.object,ms.string,ms.func])},Ep=function(e){var t=e.className,n=e.cssModule,i=e.innerRef,a=e.tag,o=ul(e,Cp),s=ml(Vs(t,"toast-body"),n);return r.createElement(a,ll({},o,{className:s,ref:i}))};Ep.propTypes=Sp,Ep.defaultProps={tag:"div"};var Mp=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close","tagClassName","icon"],Tp={tag:Cl,icon:ms.oneOfType([ms.string,ms.node]),wrapTag:Cl,toggle:ms.func,className:ms.string,cssModule:ms.object,children:ms.node,closeAriaLabel:ms.string,charCode:ms.oneOfType([ms.string,ms.number]),close:ms.object},Op=function(e){var t,n,i=e.className,a=e.cssModule,o=e.children,s=e.toggle,l=e.tag,u=e.wrapTag,c=e.closeAriaLabel,d=e.close,f=e.tagClassName,h=e.icon,p=ul(e,Mp),m=ml(Vs(i,"toast-header"),a);return!d&&s&&(t=r.createElement("button",{type:"button",onClick:s,className:ml("btn-close",a),"aria-label":c})),"string"===typeof h?n=r.createElement("svg",{className:ml("rounded text-".concat(h)),width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",focusable:"false",role:"img"},r.createElement("rect",{fill:"currentColor",width:"100%",height:"100%"})):h&&(n=h),r.createElement(u,ll({},p,{className:m}),n,r.createElement(l,{className:ml(Vs(f,{"ms-2":null!=n}),a)},o),d||t)};Op.propTypes=Tp,Op.defaultProps={tag:"strong",wrapTag:"div",tagClassName:"me-auto",closeAriaLabel:"Close"};var Np=["className","cssModule","tag","active","disabled","action","color"],Pp={tag:Cl,active:ms.bool,disabled:ms.bool,color:ms.string,action:ms.bool,className:ms.any,cssModule:ms.object},jp=function(e){e.preventDefault()},Dp=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=e.active,o=e.disabled,s=e.action,l=e.color,u=ul(e,Np),c=ml(Vs(t,!!a&&"active",!!o&&"disabled",!!s&&"list-group-item-action",!!l&&"list-group-item-".concat(l),"list-group-item"),n);return o&&(u.onClick=jp),r.createElement(i,ll({},u,{className:c}))};Dp.propTypes=Pp,Dp.defaultProps={tag:"li"};var Lp=Dp,Ap=["className","cssModule","tag"],Rp={tag:Cl,className:ms.any,cssModule:ms.object},Ip=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,Ap),o=ml(Vs(t,"list-group-item-heading"),n);return r.createElement(i,ll({},a,{className:o}))};Ip.propTypes=Rp,Ip.defaultProps={tag:"h5"};var zp=["className","cssModule","tag"],Fp={tag:Cl,className:ms.any,cssModule:ms.object},Up=function(e){var t=e.className,n=e.cssModule,i=e.tag,a=ul(e,zp),o=ml(Vs(t,"list-group-item-text"),n);return r.createElement(i,ll({},a,{className:o}))};Up.propTypes=Fp,Up.defaultProps={tag:"p"};var Bp=["className","cssModule","tag","type"],Vp={tag:Cl,className:ms.string,cssModule:ms.object,type:ms.string},Hp=(0,r.forwardRef)((function(e,t){var n=e.className,i=e.cssModule,a=e.tag,o=e.type,s=ul(e,Bp),l=ml(Vs(n,!!o&&"list-".concat(o)),i);return r.createElement(a,ll({},s,{className:l,ref:t}))}));Hp.name="List",Hp.propTypes=Vp,Hp.defaultProps={tag:"ul"};var Wp=["className","cssModule","tag"],Zp={tag:Cl,className:ms.string,cssModule:ms.object},Yp=(0,r.forwardRef)((function(e,t){var n=e.className,i=e.cssModule,a=e.tag,o=ul(e,Wp),s=ml(Vs(n,"list-inline-item"),i);return r.createElement(a,ll({},o,{className:s,ref:t}))}));Yp.name="ListInlineItem",Yp.propTypes=Zp,Yp.defaultProps={tag:"li"};r.Component;var qp=["defaultOpen"];(function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).state={isOpen:e.defaultOpen||!1},r.toggle=r.toggle.bind(As(r)),r}return Bt(n,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return r.createElement(tc,ll({isOpen:this.state.isOpen,toggle:this.toggle},vl(this.props,qp)))}}]),n}(r.Component)).propTypes=ol({defaultOpen:ms.bool},tc.propTypes);var Gp=["toggleEvents","defaultOpen"],Kp={defaultOpen:ms.bool,toggler:ms.string.isRequired,toggleEvents:ms.arrayOf(ms.string)},Qp={toggleEvents:Fl},Xp=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).togglers=null,r.removeEventListeners=null,r.toggle=r.toggle.bind(As(r)),r.state={isOpen:e.defaultOpen||!1},r}return Bt(n,[{key:"componentDidMount",value:function(){this.togglers=Rl(this.props.toggler),this.togglers.length&&(this.removeEventListeners=Ul(this.togglers,this.toggle,this.props.toggleEvents))}},{key:"componentWillUnmount",value:function(){this.togglers.length&&this.removeEventListeners&&this.removeEventListeners()}},{key:"toggle",value:function(e){this.setState((function(e){return{isOpen:!e.isOpen}})),e.preventDefault()}},{key:"render",value:function(){return r.createElement(Vc,ll({isOpen:this.state.isOpen},vl(this.props,Gp)))}}]),n}(r.Component);Xp.propTypes=Kp,Xp.defaultProps=Qp;var $p=["defaultOpen"],Jp=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).state={isOpen:e.defaultOpen||!1},r.toggle=r.toggle.bind(As(r)),r}return Bt(n,[{key:"toggle",value:function(e){var t=this,n=!this.state.isOpen;this.setState({isOpen:n},(function(){t.props.onToggle&&t.props.onToggle(e,n)}))}},{key:"render",value:function(){return r.createElement($u,ll({isOpen:this.state.isOpen,toggle:this.toggle},vl(this.props,$p)))}}]),n}(r.Component);Jp.propTypes=ol({defaultOpen:ms.bool,onToggle:ms.func},$u.propTypes);var em=["defaultOpen"],tm=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).state={isOpen:e.defaultOpen||!1},r.toggle=r.toggle.bind(As(r)),r}return Bt(n,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return r.createElement(Xf,ll({isOpen:this.state.isOpen,toggle:this.toggle},vl(this.props,em)))}}]),n}(r.Component);tm.propTypes=ol({defaultOpen:ms.bool},Xf.propTypes);var nm=["className","cssModule","type","size","color","children","tag"],rm={tag:Cl,type:ms.string,size:ms.string,color:ms.string,className:ms.string,cssModule:ms.object,children:ms.string},im=function(e){var t=e.className,n=e.cssModule,i=e.type,a=e.size,o=e.color,s=e.children,l=e.tag,u=ul(e,nm),c=ml(Vs(t,!!a&&"spinner-".concat(i,"-").concat(a),"spinner-".concat(i),!!o&&"text-".concat(o)),n);return r.createElement(l,ll({role:"status"},u,{className:c}),s&&r.createElement("span",{className:ml("visually-hidden",n)},s))};im.propTypes=rm,im.defaultProps={tag:"div",type:"border",children:"Loading..."};var am=["className","cssModule","color","innerRef","tag","animation","size","widths"],om=ol(ol({},ou.propTypes),{},{color:ms.string,tag:Cl,animation:ms.oneOf(["glow","wave"]),innerRef:ms.oneOfType([ms.object,ms.func,ms.string]),size:ms.oneOf(["lg","sm","xs"])}),sm=function(e){var t=e.className,n=e.cssModule,i=e.color,a=e.innerRef,o=e.tag,s=e.animation,l=e.size,u=e.widths,c=ul(e,am),d=iu(c,n,u),f=d.attributes,h=d.colClasses,p=ml(Vs(t,h,"placeholder"+(s?"-"+s:""),!!l&&"placeholder-"+l,!!i&&"bg-"+i),n);return r.createElement(o,ll({},f,{className:p,ref:a}))};sm.propTypes=om,sm.defaultProps={tag:"span"};var lm=["cssModule","className","tag"],um={size:ms.string,color:ms.string,outline:ms.bool,className:ms.string,tag:Cl},cm={color:"primary",tag:Hu},dm=function(e){var t=e.cssModule,n=e.className,i=(e.tag,ul(e,lm)),a=iu(i,t),o=a.attributes,s=a.colClasses,l=ml(Vs("placeholder",n,s),t);return r.createElement(Hu,ll({},o,{className:l,disabled:!0}))};dm.propTypes=um,dm.defaultProps=cm;!function(){if("object"===typeof window&&"function"!==typeof window.CustomEvent){window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}}(),function(){if("function"!==typeof Object.values){Object.values=function(e){return Object.keys(e).map((function(t){return e[t]}))}}}();var fm=n(2854),hm=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,a=(0,r.useState)(n),o=Q(a,2),s=o[0],l=o[1],u=(0,r.useRef)(void 0),c=function(){l(!n),u.current&&t(u.current),u.current=e((function(){return l(n)}),i)};return[s,c]}},pm=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,r.useState)(e),n=Q(t,2),i=n[0],a=n[1];return[i,function(){return a(!i)},function(){return a(!0)},function(){return a(!1)}]},mm=function(){var e=ve();return function(){return e(-1)}},vm="#4696e5",gm="#f77f28",ym=function(e){var t,n;return null===(t=document.getElementsByTagName("html"))||void 0===t||null===(n=t[0])||void 0===n?void 0:n.setAttribute("data-theme",e)},bm=function(){var e,t;return"dark"===(null===(e=document.getElementsByTagName("html"))||void 0===e||null===(t=e[0])||void 0===t?void 0:t.getAttribute("data-theme"))},xm=function(e){var t=e.color,n=void 0===t?vm:t,r=e.className;return(0,rr.jsx)("svg",{className:r,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,rr.jsxs)("g",{fill:n,children:[(0,rr.jsx)("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),(0,rr.jsx)("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),(0,rr.jsx)("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),(0,rr.jsx)("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})})},_m=function(e){return function(){var t=Q(pm(),4),n=t[0],i=t[1],a=t[3],o=me(),s=o.pathname;(0,r.useEffect)(a,[o]);var l="/settings",u=Hs()("main-header__toggle-icon",{"main-header__toggle-icon--opened":n});return(0,rr.jsxs)(cu,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[(0,rr.jsxs)(pu,{tag:ze,to:"/",children:[(0,rr.jsx)(xm,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),(0,rr.jsx)(_u,{onClick:i,children:(0,rr.jsx)(Ps,{icon:xr,className:u})}),(0,rr.jsx)(Vc,{navbar:!0,isOpen:n,children:(0,rr.jsxs)(Su,{navbar:!0,className:"ms-auto",children:[(0,rr.jsx)(Ou,{children:(0,rr.jsxs)(Du,{tag:ze,to:l,active:s.startsWith(l),children:[(0,rr.jsx)(Ps,{icon:Ir}),"\xa0 Settings"]})}),(0,rr.jsx)(e,{})]})})]})}},wm=yt((function(e){for(var t=_n(e),n=t.length,r=[],i=0;i<n;)r[i]=e[t[i]],i+=1;return r})),km=function(){return km=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},km.apply(this,arguments)};var Cm=function(e){var t=e.href,n=e.children,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["href","children"]);return r.createElement("a",km({target:"_blank",rel:"noopener noreferrer",href:t},i),null!==n&&void 0!==n?n:t)},Sm=function(e){var t=e.id,n=e.name;return(0,rr.jsxs)(Lp,{tag:ze,to:"/server/".concat(t),className:"servers-list__server-item",children:[n,(0,rr.jsx)(Ps,{icon:_r,className:"servers-list__server-item-icon"})]})},Em=function(e){var t=e.servers,n=e.children,r=e.embedded,i=void 0!==r&&r;return(0,rr.jsxs)(rr.Fragment,{children:[n&&(0,rr.jsx)("h5",{className:"mb-md-3",children:n}),t.length>0&&(0,rr.jsx)(ih,{className:Hs()("servers-list__list-group",{"servers-list__list-group--embedded":i}),children:t.map((function(e){var t=e.id,n=e.name;return(0,rr.jsx)(Sm,{id:t,name:n},t)}))})]})},Mm=function(e){var t=e.servers,n=ve(),i=wm(t),a=!Fn(i);return(0,r.useEffect)((function(){var e=i.find((function(e){return e.autoConnect}));e&&n("/server/".concat(e.id))}),[]),(0,rr.jsx)("div",{className:"home",children:(0,rr.jsx)($c,{className:"home__main-card",children:(0,rr.jsxs)(Ql,{className:"g-0",children:[(0,rr.jsx)("div",{className:"col-md-5 d-none d-md-block",children:(0,rr.jsx)("div",{className:"home__logo-wrapper",children:(0,rr.jsx)("div",{className:"home__logo",children:(0,rr.jsx)(xm,{})})})}),(0,rr.jsxs)("div",{className:"col-md-7 home__servers-container",children:[(0,rr.jsx)("div",{className:"home__title-wrapper",children:(0,rr.jsx)("h1",{className:"home__title",children:"Welcome!"})}),(0,rr.jsx)(Em,{embedded:!0,servers:i,children:!a&&(0,rr.jsxs)("div",{className:"p-4 text-center",children:[(0,rr.jsx)("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),(0,rr.jsx)("p",{children:(0,rr.jsxs)(ze,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[(0,rr.jsx)(Ps,{icon:ti})," ",(0,rr.jsx)("span",{className:"ms-1",children:"Add a server"})]})}),(0,rr.jsx)("p",{className:"mb-0 mt-5",children:(0,rr.jsx)(Cm,{href:"https://shlink.io/documentation",children:(0,rr.jsxs)("small",{children:[(0,rr.jsx)("span",{className:"me-1",children:"Learn more about Shlink"})," ",(0,rr.jsx)(Ps,{icon:hi})]})})})]})})]})]})})})},Tm=function(e){return{error:"border-danger",default:""}[e]},Om=function(e){return{error:"text-danger",default:"text-muted"}[e]},Nm=function(e){var t=e.className,n=e.children,r=e.loading,i=void 0!==r&&r,a=e.type,o=void 0===a?"default":a,s=e.fullWidth,l=void 0!==s&&s,u=Hs()({"col-md-12":l,"col-md-10 offset-md-1":!l});return(0,rr.jsx)(Ql,{className:Hs()("g-0",t),children:(0,rr.jsx)("div",{className:u,children:(0,rr.jsx)($c,{className:Tm(o),body:!0,children:(0,rr.jsxs)("h3",{className:Hs()("text-center mb-0",Om(o)),children:[i&&(0,rr.jsx)(Ps,{icon:Tr,spin:!0}),i&&(0,rr.jsx)("span",{className:"ms-2",children:null!==n&&void 0!==n?n:"Loading..."}),!i&&n]})})})})},Pm=function(e){var t=e.children;return(0,rr.jsx)("div",{className:"no-menu-wrapper container-xl",children:t})};function jm(e,t){return function(n){var i,a=ge(),o=n.selectServer,s=n.selectedServer;return(0,r.useEffect)((function(){a.serverId&&o(a.serverId)}),[a.serverId]),s?null!==(i=s)&&void 0!==i&&i.serverNotFound?(0,rr.jsx)(t,{}):(0,rr.jsx)(e,We({},n)):(0,rr.jsx)(Pm,{children:(0,rr.jsx)(Nm,{loading:!0})})}}function Dm(e,t){var n=Rm(e),r=Rm(t),i=n.pop(),a=r.pop(),o=Um(n,r);return 0!==o?o:i&&a?Um(i.split("."),a.split(".")):i||a?i?-1:1:0}var Lm=function(e,t,n){Hm(n);var r=Dm(e,t);return Bm[n].includes(r)};Dm.validate=function(e){return"string"===typeof e&&/^[v\d]/.test(e)&&Am.test(e)},Dm.compare=Lm,Dm.sastisfies=function(e,t){var n=t.match(/^([<>=~^]+)/),r=n?n[1]:"=";if("^"!==r&&"~"!==r)return Lm(e,t,r);var i=Q(Rm(e),3),a=i[0],o=i[1],s=i[2],l=Q(Rm(t),3),u=l[0],c=l[1],d=l[2];return 0===Fm(a,u)&&("^"===r?Um([o,s],[c,d])>=0:0===Fm(o,c)&&Fm(s,d)>=0)};var Am=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Rm=function(e){if("string"!==typeof e)throw new TypeError("Invalid argument expected string");var t=e.match(Am);if(!t)throw new Error("Invalid argument not valid semver ('".concat(e,"' received)"));return t.shift(),t},Im=function(e){return"*"===e||"x"===e||"X"===e},zm=function(e){var t=parseInt(e,10);return isNaN(t)?e:t},Fm=function(e,t){if(Im(e)||Im(t))return 0;var n=function(e,t){return typeof e!==typeof t?[String(e),String(t)]:[e,t]}(zm(e),zm(t)),r=Q(n,2),i=r[0],a=r[1];return i>a?1:i<a?-1:0},Um=function(e,t){for(var n=0;n<Math.max(e.length,t.length);n++){var r=Fm(e[n]||0,t[n]||0);if(0!==r)return r}return 0},Bm={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},Vm=Object.keys(Bm),Hm=function(e){if("string"!==typeof e)throw new TypeError("Invalid operator type, expected string but got ".concat(typeof e));if(-1===Vm.indexOf(e))throw new Error("Invalid operator, expected one of ".concat(Vm.join("|")))},Wm=bt((function(e,t){var n={};return Jt(t.length,(function(){var r=e.apply(this,arguments);return fn(r,n)||(n[r]=t.apply(this,arguments)),n[r]}))})),Zm=Wm;function Ym(e){return e}var qm=yt(Ym);function Gm(e){return"[object Number]"===Object.prototype.toString.call(e)}var Km=bt((function(e,t){if(!Gm(e)||!Gm(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n}));function Qm(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Xm(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return gt(n)?t:bt((function(t,r){return e(n,t,r)}));case 2:return gt(n)&>(r)?t:gt(n)?bt((function(t,n){return e(t,r,n)})):gt(r)?bt((function(t,r){return e(n,t,r)})):yt((function(t){return e(n,r,t)}));default:return gt(n)&>(r)&>(i)?t:gt(n)&>(r)?bt((function(t,n){return e(t,n,i)})):gt(n)&>(i)?bt((function(t,n){return e(t,r,n)})):gt(r)&>(i)?bt((function(t,r){return e(n,t,r)})):gt(n)?yt((function(t){return e(t,r,i)})):gt(r)?yt((function(t){return e(n,t,i)})):gt(i)?yt((function(t){return e(n,r,t)})):e(n,r,i)}}}var $m=Xm(on);function Jm(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return Yt(r)||"function"!==typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var ev=Xm(Jm("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)}))),tv=ev,nv=yt(Jm("tail",tv(1,1/0)));function rv(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Jt(arguments[0].length,$m(Qm,arguments[0],nv(arguments)))}var iv=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Km(n,e+1).map(t)},av=function(e){return!Mn(e)&&!Fn(e)},ov=function(e){return rv((function(e){return e.preventDefault()}),e)},sv=function(e){return Fn(e)?null:e},lv=function(e,t){var n=t.maxVersion,r=t.minVersion;if(!av(e))return!1;var i=!r||Lm(e,r,">=");return(!n||Lm(e,n,"<="))&&i},uv=Zm(qm,(function(e){try{return Lm(e,e,"=")}catch(oR){return!1}})),cv=function(e){return uv(e)?"v".concat(e):e},dv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"latest";return function(t){return uv(t)?t:e}},fv=function(e){return function(t){return At(t)&&lv(t.version,e)}},hv=fv({minVersion:"2.5.0"}),pv=fv({minVersion:"2.6.0"}),mv=pv,vv=pv,gv=pv,yv=fv({minVersion:"2.7.0"}),bv=yv,xv=fv({minVersion:"2.8.0"}),_v=xv,wv=fv({minVersion:"2.9.0"}),kv=fv({minVersion:"2.10.0"}),Cv=fv({minVersion:"3.0.0"}),Sv=Cv,Ev=["title","children","bodyClassName"],Mv=function(e){var t=e.title,n=e.children,r=e.bodyClassName,i=Ht(e,Ev);return(0,rr.jsxs)($c,We(We({},i),{},{children:[t&&(0,rr.jsx)(wd,{children:t}),(0,rr.jsx)(dd,{className:r,children:n})]}))},Tv=function(e){var t=e.to,n=void 0===t?"/":t,r=e.children,i=void 0===r?"Home":r;return(0,rr.jsx)("div",{className:"home",children:(0,rr.jsxs)(Mv,{className:"p-4",children:[(0,rr.jsx)("h2",{children:"Oops! We could not find requested route."}),(0,rr.jsx)("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),(0,rr.jsx)("br",{}),(0,rr.jsx)(ze,{to:n,className:"btn btn-outline-primary btn-lg",children:i})]})})},Ov=function(e,t,n,i,a,o,s,l,u,c,d,f){return jm((function(h){var p=h.selectedServer,m=h.sidebarNotPresent,v=h.sidebarPresent,g=me(),y=Q(pm(),4),b=y[0],x=y[1],_=y[2],w=y[3],k=At(p);if((0,r.useEffect)((function(){return w()}),[g]),(0,r.useEffect)((function(){return k&&v(),function(){return m()}}),[]),!k)return(0,rr.jsx)(u,{});var C=mv(p),S=Cv(p),E=_v(p),M=Hs()("menu-layout__burger-icon",{"menu-layout__burger-icon--active":b}),T=function(e,t){var n=function(e){return function(t){var n=t.event.composedPath().some((function(e){var t=e.classList;return null===t||void 0===t?void 0:t.contains("visits-table")}));n||document.querySelector(".modal")||e()}};return(0,fm.useSwipeable)({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})}(_,w);return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(Ps,{icon:hr,className:M,onClick:x}),(0,rr.jsx)("div",We(We({},T),{},{className:"menu-layout__swipeable",children:(0,rr.jsxs)("div",{className:"menu-layout__swipeable-inner",children:[(0,rr.jsx)(n,{selectedServer:p,showOnMobile:b}),(0,rr.jsx)("div",{className:"menu-layout__container",onClick:function(){return w()},children:(0,rr.jsx)("div",{className:"container-xl",children:(0,rr.jsxs)(fe,{children:[(0,rr.jsx)(ce,{index:!0,element:(0,rr.jsx)(ue,{replace:!0,to:"overview"})}),(0,rr.jsx)(ce,{path:"/overview",element:(0,rr.jsx)(c,{})}),(0,rr.jsx)(ce,{path:"/list-short-urls/:page",element:(0,rr.jsx)(t,{})}),(0,rr.jsx)(ce,{path:"/create-short-url",element:(0,rr.jsx)(i,{})}),(0,rr.jsx)(ce,{path:"/short-code/:shortCode/visits/*",element:(0,rr.jsx)(a,{})}),(0,rr.jsx)(ce,{path:"/short-code/:shortCode/edit",element:(0,rr.jsx)(d,{})}),(0,rr.jsx)(ce,{path:"/tag/:tag/visits/*",element:(0,rr.jsx)(o,{})}),C&&(0,rr.jsx)(ce,{path:"/orphan-visits/*",element:(0,rr.jsx)(s,{})}),S&&(0,rr.jsx)(ce,{path:"/non-orphan-visits/*",element:(0,rr.jsx)(l,{})}),(0,rr.jsx)(ce,{path:"/manage-tags",element:(0,rr.jsx)(e,{})}),E&&(0,rr.jsx)(ce,{path:"/manage-domains",element:(0,rr.jsx)(f,{})}),(0,rr.jsx)(ce,{path:"*",element:(0,rr.jsx)(Tv,{to:"/server/".concat(p.id,"/list-short-urls/1"),children:"List short URLs"})})]})})})]})}))]})}),u)},Nv=["children","to","className"],Pv=function(e){var t=e.children,n=e.to,r=e.className,i=Ht(e,Nv);return(0,rr.jsx)(Fe,We(We({className:function(e){var t=e.isActive;return Hs()("aside-menu__item",r,{"aside-menu__item--selected":t})},to:n},i),{},{children:t}))},jv=function(e){return function(t){var n=t.selectedServer,r=t.showOnMobile,i=void 0!==r&&r,a=Lt(n),o=a?n.id:"",s=me().pathname,l=_v(n),u=Hs()("aside-menu",{"aside-menu--hidden":!i}),c=function(e){return"/server/".concat(o).concat(e)};return(0,rr.jsx)("aside",{className:u,children:(0,rr.jsxs)("nav",{className:"nav flex-column aside-menu__nav",children:[(0,rr.jsxs)(Pv,{to:c("/overview"),children:[(0,rr.jsx)(Ps,{fixedWidth:!0,icon:Ur}),(0,rr.jsx)("span",{className:"aside-menu__item-text",children:"Overview"})]}),(0,rr.jsxs)(Pv,{to:c("/list-short-urls/1"),className:Hs()({"aside-menu__item--selected":null!==s.match("/list-short-urls")}),children:[(0,rr.jsx)(Ps,{fixedWidth:!0,icon:Vr}),(0,rr.jsx)("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),(0,rr.jsxs)(Pv,{to:c("/create-short-url"),children:[(0,rr.jsx)(Ps,{fixedWidth:!0,icon:Br,flip:"horizontal"}),(0,rr.jsx)("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),(0,rr.jsxs)(Pv,{to:c("/manage-tags"),children:[(0,rr.jsx)(Ps,{fixedWidth:!0,icon:ci}),(0,rr.jsx)("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),l&&(0,rr.jsxs)(Pv,{to:c("/manage-domains"),children:[(0,rr.jsx)(Ps,{fixedWidth:!0,icon:zr}),(0,rr.jsx)("span",{className:"aside-menu__item-text",children:"Manage domains"})]}),(0,rr.jsxs)(Pv,{to:c("/edit"),className:"aside-menu__item--push",children:[(0,rr.jsx)(Ps,{fixedWidth:!0,icon:Kr}),(0,rr.jsx)("span",{className:"aside-menu__item-text",children:"Edit this server"})]}),a&&(0,rr.jsx)(e,{className:"aside-menu__item aside-menu__item--danger",textClassName:"aside-menu__item-text",server:n})]})})}},Dv=function(e,t){var n=e.location,i=t.error;return function(e){Is(r,e);var t=Bs(r);function r(e){var n;return Vt(this,r),(n=t.call(this,e)).state={hasError:!1},n}return Bt(r,[{key:"componentDidCatch",value:function(e){i(e)}},{key:"render",value:function(){return this.state.hasError?(0,rr.jsx)("div",{className:"home",children:(0,rr.jsxs)(Mv,{className:"p-4",children:[(0,rr.jsx)("h1",{children:"Oops! This is awkward :S"}),(0,rr.jsx)("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),(0,rr.jsx)("br",{}),(0,rr.jsx)(Hu,{outline:!0,color:"primary",onClick:function(){return n.reload()},children:"Take me back"})]})}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),r}(r.Component)},Lv=rv(dv(),cv),Av=function(e){var t=e.project,n=e.version;return(0,rr.jsx)(Cm,{href:"https://github.com/shlinkio/".concat(t,"/releases/").concat(n),className:"text-muted",children:(0,rr.jsx)("b",{children:n})})},Rv=function(e){var t=e.selectedServer,n=e.clientVersion,r=Lv(void 0===n?"%_VERSION_%":n);return(0,rr.jsxs)("small",{className:"text-muted",children:[At(t)&&(0,rr.jsxs)(rr.Fragment,{children:["Server: ",(0,rr.jsx)(Av,{project:"shlink",version:t.printableVersion})," - "]}),"Client: ",(0,rr.jsx)(Av,{project:"shlink-web-client",version:r})]})},Iv=function(e){var t=e.selectedServer,n=e.sidebar,r=Hs()("text-center",{"shlink-versions-container--with-sidebar":n.sidebarPresent});return(0,rr.jsx)("div",{className:r,children:(0,rr.jsx)(Rv,{selectedServer:t})})};function zv(e){return function(t){var n=t.resetSelectedServer;return(0,r.useEffect)((function(){n()}),[]),(0,rr.jsx)(e,We({},t))}}var Fv,Uv,Bv=function(e,t){return function(n,r){var i=r.type,a=e[i],o=null!==n&&void 0!==n?n:t;return a?a(o,r):o}},Vv=function(e){return function(){return{type:e}}},Hv="shlink/common/SIDEBAR_PRESENT",Wv="shlink/common/SIDEBAR_NOT_PRESENT",Zv=Bv((Ve(Fv={},Hv,(function(){return{sidebarPresent:!0}})),Ve(Fv,Wv,(function(){return{sidebarPresent:!1}})),Fv),{sidebarPresent:!1}),Yv=Vv(Hv),qv=Vv(Wv),Gv=function(e,t,n){var r=e.document,i=r.createElement("a");i.setAttribute("href",t),i.setAttribute("download",n),i.style.visibility="hidden",r.body.appendChild(i),i.click(),r.body.removeChild(i)},Kv=function(e,t,n){var r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);Gv(e,i,n)},Qv=function(){function e(t,n){Vt(this,e),this.axios=t,this.window=n}return Bt(e,[{key:"saveImage",value:function(){var e=Ft(Zt().mark((function e(t,n){var r,i,a;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.axios.get(t,{responseType:"blob"});case 2:r=e.sent,i=r.data,a=URL.createObjectURL(i),Gv(this.window,a,n);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}(),Xv=Bt((function e(t,n){var r=this;Vt(this,e),this.window=t,this.csvjson=n,this.exportVisits=function(e,t){t.length&&r.exportCsv(e,t)},this.exportShortUrls=function(e){e.length&&r.exportCsv("short_urls.csv",e)},this.exportCsv=function(e,t){var n=r.csvjson.toCSV(t,{headers:"key",wrap:!0});Kv(r.window,n,e)}})),$v=function(e,t){e.constant("window",n.g.window),e.constant("console",n.g.console),e.constant("axios",nr()),e.service("ImageDownloader",Qv,"axios","window"),e.service("ReportExporter",Xv,"window","csvjson"),e.serviceFactory("ScrollToTop",ir),e.serviceFactory("MainHeader",_m,"ServersDropdown"),e.serviceFactory("Home",(function(){return Mm})),e.decorator("Home",zv),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("MenuLayout",Ov,"TagsList","ShortUrlsList","AsideMenu","CreateShortUrl","ShortUrlVisits","TagVisits","OrphanVisits","NonOrphanVisits","ServerError","Overview","EditShortUrl","ManageDomains"),e.decorator("MenuLayout",t(["selectedServer"],["selectServer","sidebarPresent","sidebarNotPresent"])),e.serviceFactory("AsideMenu",jv,"DeleteServerButton"),e.serviceFactory("ShlinkVersionsContainer",(function(){return Iv})),e.decorator("ShlinkVersionsContainer",t(["selectedServer","sidebar"])),e.serviceFactory("ErrorHandler",Dv,"window","console"),e.serviceFactory("sidebarPresent",(function(){return Yv})),e.serviceFactory("sidebarNotPresent",(function(){return qv}))},Jv=n(4892),eg=function(e){var t=e.onChange,n=e.className,i=e.large,a=void 0===i||i,o=e.noBorder,s=void 0!==o&&o,l=e.initialValue,u=void 0===l?"":l,c=Q((0,r.useState)(u),2),d=c[0],f=c[1],h=function(){Uv&&clearTimeout(Uv),Uv=null},p=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;f(e),h(),Uv=setTimeout((function(){t(e),h()}),n)};return(0,rr.jsxs)("div",{className:Hs()("search-field",n),children:[(0,rr.jsx)("input",{type:"text",className:Hs()("form-control search-field__input",{"form-control-lg":a,"search-field__input--no-border":s}),placeholder:"Search...",value:d,onChange:function(e){return p(e.target.value)}}),(0,rr.jsx)(Ps,{icon:Wr,className:"search-field__icon"}),(0,rr.jsx)("div",{className:"close search-field__close btn-close",hidden:""===d,id:"search-field__close",onClick:function(){return p("",0)}})]})},tg=function(e){var t=e.text,n=e.children,r=e.clearable,i=e.className,a=void 0===i?"":i,o=e.colorGenerator,s=e.onClick,l=e.onClose;return(0,rr.jsxs)("span",{className:Hs()("badge tag",a,{"tag--light-bg":o.isColorLightForKey(t)}),style:{backgroundColor:o.getColorForKey(t),cursor:r||!s?"auto":"pointer"},onClick:s,children:[null!==n&&void 0!==n?n:t,r&&(0,rr.jsx)("span",{className:"close tag__close-selected-tag",onClick:l,children:"\xd7"})]})},ng=function(e){var t=e.text,n=e.disabled,r=void 0!==n&&n,i=e.className,a=void 0===i?"":i,o=e.children,s=e.dropdownClassName,l=e.right,u=void 0!==l&&l,c=e.minWidth,d=Q(pm(),2),f=d[0],h=d[1],p="dropdown-btn__toggle btn-block ".concat(a),m={minWidth:c&&"".concat(c,"px")};return(0,rr.jsxs)($u,{isOpen:f,toggle:h,disabled:r,className:s,children:[(0,rr.jsx)(xc,{caret:!0,className:p,color:"primary",children:t}),(0,rr.jsx)(vc,{className:"w-100",end:u,style:m,children:o})]})},rg=n(121),ig=n(1776),ag=n(3358);function og(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}var sg=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=sn,e.prototype["@@transducer/result"]=ln,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),lg=bt((function(e,t){return new sg(e,t)})),ug=lg;function cg(e,t,n){return function(){for(var r=[],i=0,a=e,o=0;o<t.length||i<arguments.length;){var s;o<t.length&&(!gt(t[o])||i>=arguments.length)?s=t[o]:(s=arguments[i],i+=1),r[o]=s,gt(s)||(a-=1),o+=1}return a<=0?n.apply(this,r):Jt(a,cg(e,r,n))}}var dg=bt((function(e,t){return 1===e?yt(t):Jt(e,cg(e,[],t))})),fg=bt(Gt(["fantasy-land/map","map"],ug,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return dg(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return on((function(n,r){return n[r]=e(t[r]),n}),{},_n(t));default:return og(e,t)}}))),hg=fg,pg=bt((function(e,t){return t>e?t:e})),mg=pg,vg=yt((function(e){return Jt($m(mg,0,hg((function(e){return e[0].length}),e)),(function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}}))})),gg=vg,yg=function(){return!0},bg=n(2612),xg=n(2952),_g=n(949),wg=n(825);var kg,Cg=n(4773),Sg=n(5560),Eg=n(1328),Mg=function(e){return"string"!==typeof e},Tg=function(e,t){return e&&Mg(e)?t?(0,bg.default)(e,t):function(e,t){(0,wg.Z)(1,arguments);var n=(0,xg.default)(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");var r=null!==t&&void 0!==t&&t.format?String(t.format):"extended",i=null!==t&&void 0!==t&&t.representation?String(t.representation):"complete";if("extended"!==r&&"basic"!==r)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==i&&"time"!==i&&"complete"!==i)throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",o="",s="extended"===r?"-":"",l="extended"===r?":":"";if("time"!==i){var u=(0,_g.Z)(n.getDate(),2),c=(0,_g.Z)(n.getMonth()+1,2),d=(0,_g.Z)(n.getFullYear(),4);a="".concat(d).concat(s).concat(c).concat(s).concat(u)}if("date"!==i){var f=n.getTimezoneOffset();if(0!==f){var h=Math.abs(f),p=(0,_g.Z)(Math.floor(h/60),2),m=(0,_g.Z)(h%60,2);o="".concat(f<0?"+":"-").concat(p,":").concat(m)}else o="Z";var v=""===a?"":"T",g=[(0,_g.Z)(n.getHours(),2),(0,_g.Z)(n.getMinutes(),2),(0,_g.Z)(n.getSeconds(),2)].join(l);a="".concat(a).concat(v).concat(g).concat(o)}return a}(e):e},Og=function(e){return Tg(e,void 0)},Ng=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"yyyy-MM-dd";return function(t){return Tg(t,e)}}(),Pg=function(e){return Mg(e)?e:(0,Jv.default)(e)},jg=function(e,t,n){try{return(0,Cg.default)(Pg(e),{start:Pg(null!==t&&void 0!==t?t:e),end:Pg(null!==n&&void 0!==n?n:e)})}catch(oR){return!1}},Dg=function(e,t){return(0,Sg.default)(e,t)||(0,Eg.default)(e,t)},Lg=function(e){return void 0===e||Fn(kn(Boolean,e))},Ag=function(e){return"string"===typeof e},Rg={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",all:void 0},Ig=Object.keys(Rg).filter((function(e){return"all"!==e})),zg=function(e){if(e&&"all"!==e)return Ag(e)?Rg[e]:function(e){if(e&&!Lg(e))return e.startDate&&!e.endDate?"Since ".concat(Ng(e.startDate)):!e.startDate&&e.endDate?"Until ".concat(Ng(e.endDate)):"".concat(Ng(e.startDate)," - ").concat(Ng(e.endDate))}(e)},Fg=function(e){return(0,rg.default)((0,ig.default)(new Date,e))},Ug=function(e){return{startDate:e,endDate:(0,ag.default)(new Date)}},Bg=function(e){if(!e||"all"===e)return{};switch(e){case"today":return Ug((0,rg.default)(new Date));case"yesterday":return{startDate:Fg(1),endDate:(0,ag.default)((0,ig.default)(new Date,1))};case"last7Days":return Ug(Fg(7));case"last30Days":return Ug(Fg(30));case"last90Days":return Ug(Fg(90));case"last180Days":return Ug(Fg(180));case"last365Days":return Ug(Fg(365))}return{}},Vg=function(e){var t=Pg(e);return gg([[function(){return Dg((0,rg.default)(new Date),t)},function(){return"today"}],[function(){return Dg(Fg(1),t)},function(){return"yesterday"}],[function(){return Dg(Fg(7),t)},function(){return"last7Days"}],[function(){return Dg(Fg(30),t)},function(){return"last30Days"}],[function(){return Dg(Fg(90),t)},function(){return"last90Days"}],[function(){return Dg(Fg(180),t)},function(){return"last180Days"}],[function(){return Dg(Fg(365),t)},function(){return"last365Days"}],[yg,function(){return"all"}]])()},Hg=n(577),Wg=n.n(Hg),Zg={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"]},Yg=Zg,qg={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9898,9899,11044,61708,61915,9679],"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"]},Gg={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"]},Kg=Gg,Qg={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"]},Xg=function(e){var t=e.className,n=e.isClearable,i=e.selected,a=!n||Mn(i),o=(0,r.useRef)();return(0,rr.jsxs)("div",{className:"date-input-container",children:[(0,rr.jsx)(Wg(),We(We({},e),{},{dateFormat:"yyyy-MM-dd",className:Hs()("date-input-container__input form-control",t),ref:o})),a&&(0,rr.jsx)(Ps,{icon:Yg,className:"date-input-container__icon",onClick:function(){var e;return null===(e=o.current)||void 0===e?void 0:e.input.focus()}})]})},$g=function(e){var t=e.startDate,n=void 0===t?null:t,r=e.endDate,i=void 0===r?null:r,a=e.disabled,o=void 0!==a&&a,s=e.onStartDateChange,l=e.onEndDateChange;return(0,rr.jsxs)("div",{className:"row",children:[(0,rr.jsx)("div",{className:"col-md-6",children:(0,rr.jsx)(Xg,{selected:n,placeholderText:"Since...",isClearable:!0,maxDate:null!==i&&void 0!==i?i:void 0,disabled:o,onChange:s})}),(0,rr.jsx)("div",{className:"col-md-6",children:(0,rr.jsx)(Xg,{className:"mt-2 mt-md-0",selected:i,placeholderText:"Until...",isClearable:!0,minDate:null!==n&&void 0!==n?n:void 0,disabled:o,onChange:l})})]})},Jg=function(e){var t=e.active,n=e.allText,r=e.onChange;return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(dc,{active:"all"===t,onClick:function(){return r("all")},children:n}),(0,rr.jsx)(dc,{divider:!0}),Ig.map((function(e){return(0,rr.jsx)(dc,{active:t===e,onClick:function(){return r(e)},children:zg(e)},e)}))]})},ey=function(e){var t,n=e.onDatesChange,i=e.initialDateRange,a=e.defaultText,o=e.disabled,s=e.updatable,l=void 0!==s&&s,u=Ag(i),c=Q((0,r.useState)(u?i:void 0),2),d=c[0],f=c[1],h=Q((0,r.useState)(u?void 0:i),2),p=h[0],m=h[1],v=function(e){f(Lg(e)?"all":void 0),m(e),n(e)},g=function(e){f(e),m(void 0),n(Bg(e))};return l&&function(e,t){var n=(0,r.useRef)(!0);(0,r.useEffect)((function(){!n.current&&e(),n.current=!1}),t)}((function(){var e=Ag(i);e&&g(i),i&&!e&&v(i)}),[i]),(0,rr.jsxs)(ng,{disabled:o,text:null!==(t=zg(null!==d&&void 0!==d?d:p))&&void 0!==t?t:a,children:[(0,rr.jsx)(Jg,{allText:a,active:d,onChange:g}),(0,rr.jsx)(dc,{divider:!0}),(0,rr.jsx)(dc,{header:!0,children:"Custom:"}),(0,rr.jsx)(dc,{text:!0,children:(0,rr.jsx)($g,We(We({},p),{},{onStartDateChange:function(e){return v(We(We({},p),{},{startDate:e}))},onEndDateChange:function(e){return v(We(We({},p),{},{endDate:e}))}}))})]})},ty=new Uint8Array(16);function ny(){if(!kg&&!(kg="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return kg(ty)}var ry=/^(?:[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;for(var iy=function(e){return"string"===typeof e&&ry.test(e)},ay=[],oy=0;oy<256;++oy)ay.push((oy+256).toString(16).substr(1));var sy=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(ay[e[t+0]]+ay[e[t+1]]+ay[e[t+2]]+ay[e[t+3]]+"-"+ay[e[t+4]]+ay[e[t+5]]+"-"+ay[e[t+6]]+ay[e[t+7]]+"-"+ay[e[t+8]]+ay[e[t+9]]+"-"+ay[e[t+10]]+ay[e[t+11]]+ay[e[t+12]]+ay[e[t+13]]+ay[e[t+14]]+ay[e[t+15]]).toLowerCase();if(!iy(n))throw TypeError("Stringified UUID is invalid");return n};var ly=function(e,t,n){var r=(e=e||{}).random||(e.rng||ny)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return sy(r)},uy=function(e){var t=e.checked,n=void 0!==t&&t,i=e.onChange,a=void 0===i?qm:i,o=e.className,s=e.children,l=e.type,u=e.inline,c=void 0!==u&&u,d=(0,r.useRef)(ly()).current,f={"form-switch":"switch"===l,"form-checkbox":"checkbox"===l},h=c?{display:"inline-block"}:{};return(0,rr.jsxs)("span",{className:Hs()("form-check",f,o),style:h,children:[(0,rr.jsx)("input",{type:"checkbox",className:"form-check-input",id:d,checked:n,onChange:function(e){return a(e.target.checked,e)}}),(0,rr.jsx)("label",{className:"form-check-label",htmlFor:d,children:s})]})},cy=function(e){return(0,rr.jsx)(uy,We({type:"switch"},e))},dy=["children","tooltip"],fy=function(e){var t=e.children,n=e.tooltip,i=void 0===n?{}:n,a=Ht(e,dy),o=(0,r.useRef)();return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("span",{ref:function(e){o.current=null!==e&&void 0!==e?e:void 0},children:(0,rr.jsx)(cy,We({},a))}),(0,rr.jsx)(tm,We(We({target:function(){return o.current}},i),{},{children:t}))]})},hy=yt((function(e){var t=[];for(var n in e)fn(n,e)&&(t[t.length]=[n,e[n]]);return t})),py=hy;function my(e){var t,n=e.items,r=e.order,i=e.onChange,a=e.isButton,o=void 0===a||a,s=e.right,l=void 0!==s&&s,u=function(e){return function(){var t=Wn(e,r.field,r.dir);i(t?e:void 0,t)}};return(0,rr.jsxs)(Jp,{children:[(0,rr.jsxs)(xc,{caret:!0,color:o?"primary":"link",className:Hs()({"dropdown-btn__toggle btn-block":o,"btn-sm p-0":!o}),children:[!o&&(0,rr.jsx)(rr.Fragment,{children:"Order by"}),o&&!r.field&&(0,rr.jsx)(rr.Fragment,{children:"Order by..."}),o&&r.field&&'Order by: "'.concat(n[r.field],'" - "').concat(null!==(t=r.dir)&&void 0!==t?t:"DESC",'"')]}),(0,rr.jsxs)(vc,{end:l,className:Hs()("w-100",{"ordering-dropdown__menu--link":!o}),children:[py(n).map((function(e){var t=Q(e,2),n=t[0],i=t[1];return(0,rr.jsxs)(dc,{active:r.field===n,onClick:u(n),children:[i,r.field===n&&(0,rr.jsx)(Ps,{icon:"ASC"===r.dir?dr:or,className:"ordering-dropdown__sort-icon"})]},n)})),(0,rr.jsx)(dc,{divider:!0}),(0,rr.jsx)(dc,{disabled:!r.field,onClick:function(){return i()},children:(0,rr.jsx)("i",{children:"Clear selection"})})]})]})}var vy=["orderBy","tags"],gy=["orderBy","tags"],yy=function(){var e=ve(),t=me(),n=ge(),i=(0,r.useMemo)(rv((function(){return Vn(t.search)}),(function(e){var t,n=e.orderBy,r=e.tags,i=Ht(e,vy),a=n?function(e){var t=Q(e.split("-"),2);return{field:t[0],dir:t[1]}}(n):void 0,o=null!==(t=null===r||void 0===r?void 0:r.split(","))&&void 0!==t?t:[];return We(We({},i),{},{orderBy:a,tags:o})})),[t.search]);return[i,function(t){var r,a=We(We({},i),t),o=a.orderBy,s=a.tags,l=We(We({},Ht(a,gy)),{},{orderBy:o&&Yn(o),tags:s.length>0?s.join(","):void 0}),u=Hn(l),c=Fn(u)?"":"?".concat(u);e("/server/".concat(null!==(r=n.serverId)&&void 0!==r?r:"","/list-short-urls/1").concat(c))}]},by={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},xy=function(e){return e?(0,Jv.default)(e):null},_y=function(e,t){return function(n){var r=n.selectedServer,i=n.className,a=n.shortUrlsAmount,o=n.order,s=n.handleOrderBy,l=Q(yy(),2),u=l[0],c=u.search,d=u.tags,f=u.startDate,h=u.endDate,p=u.tagsMode,m=void 0===p?"any":p,v=l[1],g=rv((function(e){var t,n,r=e.startDate,i=e.endDate;return{startDate:null!==(t=Og(r))&&void 0!==t?t:void 0,endDate:null!==(n=Og(i))&&void 0!==n?n:void 0}}),v),y=rv((function(e){return Fn(e)?void 0:e}),(function(e){return v({search:e})})),b=rv((function(e){return d.filter((function(t){return t!==e}))}),(function(e){return v({tags:e})})),x=Sv(r),_=rv((function(){return"any"===m?"all":"any"}),(function(e){return v({tagsMode:e})}));return(0,rr.jsxs)("div",{className:Hs()("short-urls-filtering-bar-container",i),children:[(0,rr.jsx)(eg,{initialValue:c,onChange:y}),(0,rr.jsxs)(Ql,{className:"flex-column-reverse flex-lg-row",children:[(0,rr.jsx)("div",{className:"col-lg-4 col-xl-6 mt-3",children:(0,rr.jsx)(t,{amount:a})}),(0,rr.jsx)("div",{className:"col-12 d-block d-lg-none mt-3",children:(0,rr.jsx)(my,{items:by,order:o,onChange:s})}),(0,rr.jsx)("div",{className:"col-lg-8 col-xl-6 mt-3",children:(0,rr.jsx)(ey,{defaultText:"All short URLs",initialDateRange:{startDate:xy(f),endDate:xy(h)},onDatesChange:g})})]}),d.length>0&&(0,rr.jsxs)("h4",{className:"mt-3",children:[x&&d.length>1&&(0,rr.jsx)("div",{className:"float-end ms-2 mt-1",children:(0,rr.jsx)(fy,{checked:"all"===m,tooltip:{placement:"left"},onChange:_,children:"all"===m?"Short URLs including all tags.":"Short URLs including any tag."})}),(0,rr.jsx)(Ps,{icon:ci,className:"short-urls-filtering-bar__tags-icon me-1"}),d.map((function(t){return(0,rr.jsx)(tg,{colorGenerator:e,text:t,clearable:!0,onClose:function(){return b(t)}},t)}))]})]})}},wy=n(1919);function ky(e,t){var n=new Set;return function(i){var a=i.createNewVisits,o=i.loadMercureInfo,s=i.mercureInfo,l=s.interval,u=ge();return(0,r.useEffect)((function(){var e=t(i,u),r=function(e,t,n,r){var i=e.mercureHubUrl,a=e.token,o=e.loading,s=e.error;if(!o&&!s&&i){var l=function(e){var t=e.data;return n(JSON.parse(t))},u=function(e){return 401===e.status&&r()},c=t.map((function(e){var t=new URL(i);t.searchParams.append("topic",e);var n=new wy.EventSourcePolyfill(t,{headers:{Authorization:"Bearer ".concat(a)}});return n.onmessage=l,n.onerror=u,n}));return function(){return c.forEach((function(e){return e.close()}))}}}(s,e,(function(e){return l?n.add(e):a([e])}),o);if(!l)return r;var c=setInterval((function(){a(Ls(n)),n.clear()}),1e3*l*60);return rv((function(){return clearInterval(c)}),(function(){return null===r||void 0===r?void 0:r()}))}),[s]),(0,rr.jsx)(e,We({},i))}}var Cy=Bt((function e(){Vt(this,e)}));function Sy(e){var t=e.currentOrder,n=e.field,r=e.className,i=void 0===r?"ms-1":r;return t.dir&&t.field===n?(0,rr.jsx)(Ps,{icon:"ASC"===t.dir?gr:vr,className:i}):null}Cy.visits="https://shlink.io/new-visit",Cy.orphanVisits="https://shlink.io/new-orphan-visit",Cy.shortUrlVisits=function(e){return"https://shlink.io/new-visit/".concat(e)};var Ey=Xm((function(e,t,n){var r,i={};for(r in t)fn(r,t)&&(i[r]=fn(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)fn(r,n)&&!fn(r,i)&&(i[r]=n[r]);return i})),My=Ey,Ty=Xm((function e(t,n,r){return My((function(n,r,i){return Kt(r)&&Kt(i)?e(t,r,i):t(n,r,i)}),n,r)})),Oy=Ty,Ny=bt((function(e,t){return Oy((function(e,t,n){return n}),e,t)})),Py=bt((function(e,t){var n={};for(var r in t)n[r]=t[r];return delete n[e],n})),jy=Py,Dy="shlink/realTimeUpdates/SET_SETTINGS",Ly={field:"dateCreated",dir:"DESC"},Ay={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:Ly}},Ry=Bv(Ve({},Dy,(function(e,t){return Ny(e,jy("type",t))})),Ay),Iy=function(e){return{type:Dy,realTimeUpdates:{enabled:e}}},zy=function(e){return{type:Dy,realTimeUpdates:{interval:e}}},Fy=function(e){return{type:Dy,shortUrlCreation:e}},Uy=function(e){return{type:Dy,shortUrlsList:e}},By=function(e){return{type:Dy,ui:e}},Vy=function(e){return{type:Dy,visits:e}},Hy=function(e){return{type:Dy,tags:e}},Wy=bt((function(e,t){return t<e?t:e})),Zy=Wy,Yy=Math.ceil,qy=new Intl.NumberFormat("en-US"),Gy=function(e){return qy.format(Number(e))},Ky="...",Qy=function(e,t){var n=Km(mg(2,e-2),Zy(t-1,e+2)+1);return e-2>2&&n.unshift(Ky),e+2<t-1&&n.push(Ky),n.unshift(1),n.push(t),n},Xy=function(e){return e===Ky},$y=function(e){return Xy(e)?e:Gy(e)},Jy=function(e,t){return Xy(e)?"".concat(e,"_").concat(t):"".concat(e)},eb=function(e){var t=e.paginator,n=e.serverId,r=e.currentQueryString,i=void 0===r?"":r,a=null!==t&&void 0!==t?t:{},o=a.currentPage,s=void 0===o?0:o,l=a.pagesCount,u=void 0===l?0:l,c=function(e){return"/server/".concat(n,"/list-short-urls/").concat(e).concat(i)};if(u<=1)return null;return(0,rr.jsxs)(tp,{className:"sticky-card-paginator",listClassName:"flex-wrap justify-content-center mb-0",children:[(0,rr.jsx)(ap,{disabled:1===s,children:(0,rr.jsx)(up,{previous:!0,tag:ze,to:c(s-1)})}),Qy(s,u).map((function(e,t){return(0,rr.jsx)(ap,{disabled:Xy(e),active:s===e,children:(0,rr.jsx)(up,{tag:ze,to:c(e),children:$y(e)})},Jy(e,t))})),(0,rr.jsx)(ap,{disabled:s>=u,children:(0,rr.jsx)(up,{next:!0,tag:ze,to:c(s+1)})})]})},tb=function(e,t){return ky((function(n){var i,a,o,s,l=n.listShortUrls,u=n.shortUrlsList,c=n.selectedServer,d=n.settings,f=Rt(c),h=ge().page,p=me(),m=Q(yy(),2),v=m[0],g=v.tags,y=v.search,b=v.startDate,x=v.endDate,_=v.orderBy,w=v.tagsMode,k=m[1],C=Q((0,r.useState)(null!==(i=null!==_&&void 0!==_?_:null===(a=d.shortUrlsList)||void 0===a?void 0:a.defaultOrdering)&&void 0!==i?i:Ly),2),S=C[0],E=C[1],M=(null!==(o=null===u||void 0===u?void 0:u.shortUrls)&&void 0!==o?o:{}).pagination,T=function(e,t){k({orderBy:{field:e,dir:t}}),E({field:e,dir:t})},O=rv((function(e){return Ls(new Set([].concat(Ls(g),[e])))}),(function(e){return k({tags:e})}));return(0,r.useEffect)((function(){l({page:h,searchTerm:y,tags:g,startDate:b,endDate:x,orderBy:S,tagsMode:w})}),[h,y,g,b,x,S,w]),(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(t,{selectedServer:c,shortUrlsAmount:null===(s=u.shortUrls)||void 0===s?void 0:s.pagination.totalItems,order:S,handleOrderBy:T,className:"mb-3"}),(0,rr.jsxs)($c,{body:!0,className:"pb-1",children:[(0,rr.jsx)(e,{selectedServer:c,shortUrlsList:u,orderByColumn:function(e){return function(){return T(e,Wn(e,S.field,S.dir))}},renderOrderIcon:function(e){return(0,rr.jsx)(Sy,{currentOrder:S,field:e})},onTagClick:O}),(0,rr.jsx)(eb,{paginator:M,serverId:f,currentQueryString:p.search})]})]})}),(function(){return[Cy.visits]}))},nb=n(5176),rb=n.n(nb),ib=function(e){var t=e.text,n=e.onCopy;return(0,rr.jsx)(rb(),{text:t,onCopy:n,children:(0,rr.jsx)(Ps,{icon:Qg,className:"ms-2 copy-to-clipboard-icon"})})},ab=n(3558);function ob(e){return(0,wg.Z)(1,arguments),Math.floor((0,ab.default)(e)/1e3)}function sb(e,t){(0,wg.Z)(2,arguments);var n=(0,xg.default)(e),r=(0,xg.default)(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var lb=n(2228),ub=n(4829);function cb(e){(0,wg.Z)(1,arguments);var t=(0,xg.default)(e);return(0,ag.default)(t).getTime()===(0,ub.default)(t).getTime()}function db(e,t){(0,wg.Z)(2,arguments);var n,r=(0,xg.default)(e),i=(0,xg.default)(t),a=sb(r,i),o=Math.abs((0,lb.default)(r,i));if(o<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*o);var s=sb(r,i)===-a;cb((0,xg.default)(e))&&1===o&&1===sb(e,i)&&(s=!1),n=a*(o-Number(s))}return 0===n?0:n}function fb(e,t){return(0,wg.Z)(2,arguments),(0,xg.default)(e).getTime()-(0,xg.default)(t).getTime()}var hb={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function pb(e){return e?hb[e]:hb.trunc}function mb(e,t,n){(0,wg.Z)(2,arguments);var r=fb(e,t)/1e3;return pb(null===n||void 0===n?void 0:n.roundingMethod)(r)}var vb=n(5235),gb=n(4557);function yb(e){return(0,gb.Z)({},e)}var bb=n(3878),xb=1440,_b=43200;function wb(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,wg.Z)(2,arguments);var r=n.locale||vb.Z;if(!r.formatDistance)throw new RangeError("locale must contain formatDistance property");var i=sb(e,t);if(isNaN(i))throw new RangeError("Invalid time value");var a,o,s=yb(n);s.addSuffix=Boolean(n.addSuffix),s.comparison=i,i>0?(a=(0,xg.default)(t),o=(0,xg.default)(e)):(a=(0,xg.default)(e),o=(0,xg.default)(t));var l,u=mb(o,a),c=((0,bb.Z)(o)-(0,bb.Z)(a))/1e3,d=Math.round((u-c)/60);if(d<2)return n.includeSeconds?u<5?r.formatDistance("lessThanXSeconds",5,s):u<10?r.formatDistance("lessThanXSeconds",10,s):u<20?r.formatDistance("lessThanXSeconds",20,s):u<40?r.formatDistance("halfAMinute",null,s):u<60?r.formatDistance("lessThanXMinutes",1,s):r.formatDistance("xMinutes",1,s):0===d?r.formatDistance("lessThanXMinutes",1,s):r.formatDistance("xMinutes",d,s);if(d<45)return r.formatDistance("xMinutes",d,s);if(d<90)return r.formatDistance("aboutXHours",1,s);if(d<xb){var f=Math.round(d/60);return r.formatDistance("aboutXHours",f,s)}if(d<2520)return r.formatDistance("xDays",1,s);if(d<_b){var h=Math.round(d/xb);return r.formatDistance("xDays",h,s)}if(d<86400)return l=Math.round(d/_b),r.formatDistance("aboutXMonths",l,s);if((l=db(o,a))<12){var p=Math.round(d/_b);return r.formatDistance("xMonths",p,s)}var m=l%12,v=Math.floor(l/12);return m<3?r.formatDistance("aboutXYears",v,s):m<9?r.formatDistance("overXYears",v,s):r.formatDistance("almostXYears",v+1,s)}var kb,Cb,Sb,Eb,Mb,Tb=function(e){var t=e.date,n=e.format,r=void 0===n?"yyyy-MM-dd HH:mm":n,i=e.relative,a=void 0!==i&&i,o=Mg(t)?t:(0,Jv.default)(t);return(0,rr.jsx)("time",{dateTime:"".concat(ob(o),"000"),children:a?"".concat(wb(new Date,o)," ago"):(0,bg.default)(o,r)})},Ob=["selectedServer","shortUrl","suffix","children"],Nb=function(e,t,n){var r=e.id,i=t.shortCode,a=t.domain,o=a?"?domain=".concat(a):"";return"/server/".concat(r,"/short-code/").concat(i,"/").concat(n).concat(o)},Pb=function(e){var t=e.selectedServer,n=e.shortUrl,r=e.suffix,i=e.children,a=Ht(e,Ob);return t&&Lt(t)&&n?(0,rr.jsx)(ze,We(We({to:Nb(t,n,r)},a),{},{children:i})):(0,rr.jsx)("span",We(We({},a),{},{children:i}))},jb=function(e){var t,n=e.visitsCount,i=e.shortUrl,a=e.selectedServer,o=e.active,s=void 0!==o&&o,l=null===i||void 0===i||null===(t=i.meta)||void 0===t?void 0:t.maxVisits,u=(0,rr.jsx)(Pb,{selectedServer:a,shortUrl:i,suffix:"visits",children:(0,rr.jsx)("strong",{className:Hs()("short-url-visits-count__amount",{"short-url-visits-count__amount--big":s}),children:Gy(n)})});if(!l)return u;var c=Gy(l),d=(0,r.useRef)();return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsxs)("span",{className:"indivisible",children:[u,(0,rr.jsxs)("small",{className:"short-urls-visits-count__max-visits-control",ref:function(e){d.current=e},children:[" ","/ ",c," ",(0,rr.jsx)("sup",{children:(0,rr.jsx)(Ps,{icon:Sr})})]})]}),(0,rr.jsxs)(tm,{target:function(){return d.current},placement:"bottom",children:["This short URL will not accept more than ",(0,rr.jsx)("b",{children:c})," visits."]})]})},Db=function(e,t,n){return function(i){var a,o,s=i.shortUrl,l=i.selectedServer,u=i.onTagClick,c=Q(n(),2),d=c[0],f=c[1],h=Q(n(!1,500),2),p=h[0],m=h[1],v=(0,r.useRef)(!0);return(0,r.useEffect)((function(){v.current?v.current=!1:m()}),[s.visitsCount]),(0,rr.jsxs)("tr",{className:"responsive-table__row",children:[(0,rr.jsx)("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:(0,rr.jsx)(Tb,{date:s.dateCreated})}),(0,rr.jsx)("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:(0,rr.jsxs)("span",{className:"indivisible short-urls-row__cell--relative",children:[(0,rr.jsx)(Cm,{href:s.shortUrl}),(0,rr.jsx)(ib,{text:s.shortUrl,onCopy:f}),(0,rr.jsx)("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!d,children:"Copied short URL!"})]})}),(0,rr.jsx)("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":"".concat(s.title?"Title":"Long URL"),children:(0,rr.jsx)(Cm,{href:s.longUrl,children:null!==(a=s.title)&&void 0!==a?a:s.longUrl})}),s.title&&(0,rr.jsx)("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:(0,rr.jsx)(Cm,{href:s.longUrl})}),(0,rr.jsx)("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:(o=s.tags,Fn(o)?(0,rr.jsx)("i",{className:"indivisible",children:(0,rr.jsx)("small",{children:"No tags"})}):o.map((function(e){return(0,rr.jsx)(tg,{colorGenerator:t,text:e,onClick:function(){return null===u||void 0===u?void 0:u(e)}},e)})))}),(0,rr.jsx)("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:(0,rr.jsx)(jb,{visitsCount:s.visitsCount,shortUrl:s,selectedServer:l,active:p})}),(0,rr.jsx)("td",{className:"responsive-table__cell short-urls-row__cell",children:(0,rr.jsx)(e,{selectedServer:l,shortUrl:s})})]})}},Lb=function(e){var t=e.isOpen,n=e.toggle,r=e.children,i=e.right,a=void 0===i||i;return(0,rr.jsxs)(tc,{toggle:n,isOpen:t,children:[(0,rr.jsxs)(xc,{size:"sm",caret:!0,outline:!0,className:"dropdown-btn-menu__dropdown-toggle",children:["\xa0",(0,rr.jsx)(Ps,{icon:Nr}),"\xa0"]}),(0,rr.jsx)(vc,{end:a,children:r})]})},Ab=function(e,t){return function(n){var r=n.shortUrl,i=n.selectedServer,a=Q(pm(),2),o=a[0],s=a[1],l=Q(pm(),2),u=l[0],c=l[1],d=Q(pm(),2),f=d[0],h=d[1];return(0,rr.jsxs)(Lb,{toggle:s,isOpen:o,children:[(0,rr.jsxs)(dc,{tag:Pb,selectedServer:i,shortUrl:r,suffix:"visits",children:[(0,rr.jsx)(Ps,{icon:yr,fixedWidth:!0})," Visit stats"]}),(0,rr.jsxs)(dc,{tag:Pb,selectedServer:i,shortUrl:r,suffix:"edit",children:[(0,rr.jsx)(Ps,{icon:Xr,fixedWidth:!0})," Edit short URL"]}),(0,rr.jsxs)(dc,{onClick:c,children:[(0,rr.jsx)(Ps,{icon:ni,fixedWidth:!0})," QR code"]}),(0,rr.jsx)(t,{shortUrl:r,isOpen:u,toggle:c}),(0,rr.jsx)(dc,{divider:!0}),(0,rr.jsxs)(dc,{className:"dropdown-item--danger",onClick:h,children:[(0,rr.jsx)(Ps,{icon:Mr,fixedWidth:!0})," Delete short URL"]}),(0,rr.jsx)(e,{shortUrl:r,isOpen:f,toggle:h})]})}},Rb=function(e,t){return function(n){var i=n.createShortUrl,a=n.shortUrlCreationResult,o=n.resetCreateShortUrl,s=n.selectedServer,l=n.basicMode,u=void 0!==l&&l,c=n.settings.shortUrlCreation,d=(0,r.useMemo)((function(){return function(e){var t,n;return{longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:null!==(t=null===e||void 0===e?void 0:e.validateUrls)&&void 0!==t&&t,forwardQuery:null===(n=null===e||void 0===e?void 0:e.forwardQuery)||void 0===n||n}}(c)}),[c]);return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(e,{initialState:d,saving:a.saving,selectedServer:s,mode:u?"create-basic":"create",onSave:function(){var e=Ft(Zt().mark((function e(t){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(),e.abrupt("return",i(t));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),(0,rr.jsx)(t,We(We({},a),{},{resetCreateShortUrl:o,canBeClosed:u}))]})}},Ib=function(e){var t=e.children,n=e.type,r=e.className,i=e.small,a=void 0!==i&&i;return(0,rr.jsx)(Ql,{className:r,children:(0,rr.jsx)("div",{className:Hs()({"col-md-10 offset-md-1":!a,"col-12":a}),children:(0,rr.jsx)(Mv,{className:Hs()("text-center",{"bg-main":"success"===n,"bg-danger":"error"===n,"bg-warning":"warning"===n,"text-white":"warning"!==n}),bodyClassName:Hs()({"p-2":a}),children:t})})})},zb=function(e){var t;return null===(t=e.response)||void 0===t?void 0:t.data},Fb=function(e){return"INVALID_SHORTCODE_DELETION"===(null===e||void 0===e?void 0:e.type)||"INVALID_SHORT_URL_DELETION"===(null===e||void 0===e?void 0:e.type)},Ub=function(e){var t,n,r=e.errorData,i=e.fallbackMessage;return(0,rr.jsxs)(rr.Fragment,{children:[null!==(t=null===r||void 0===r?void 0:r.detail)&&void 0!==t?t:i,(n=r,"INVALID_ARGUMENT"===(null===n||void 0===n?void 0:n.type)&&(0,rr.jsxs)("p",{className:"mb-0",children:["Invalid elements: [",r.invalidElements.join(", "),"]"]}))]})},Bb=function(e){var t=e.shortUrl,n=e.toggle,i=e.isOpen,a=e.shortUrlDeletion,o=e.resetDeleteShortUrl,s=e.deleteShortUrl,l=Q((0,r.useState)(""),2),u=l[0],c=l[1];(0,r.useEffect)((function(){return o}),[]);var d=a.error,f=a.errorData,h=rv(o,n),p=ov((function(){var e=t.shortCode,r=t.domain;s(e,r).then(n).catch(qm)}));return(0,rr.jsx)(If,{isOpen:i,toggle:h,centered:!0,children:(0,rr.jsxs)("form",{onSubmit:p,children:[(0,rr.jsx)(Bf,{toggle:h,children:(0,rr.jsx)("span",{className:"text-danger",children:"Delete short URL"})}),(0,rr.jsxs)(Zf,{children:[(0,rr.jsxs)("p",{children:[(0,rr.jsx)("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),(0,rr.jsx)("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),(0,rr.jsxs)("p",{children:["Write ",(0,rr.jsx)("b",{children:t.shortCode})," to confirm deletion."]}),(0,rr.jsx)("input",{type:"text",className:"form-control",placeholder:"Insert the short code (".concat(t.shortCode,")"),value:u,onChange:function(e){return c(e.target.value)}}),d&&(0,rr.jsx)(Ib,{type:Fb(f)?"warning":"error",small:!0,className:"mt-2",children:(0,rr.jsx)(Ub,{errorData:f,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),(0,rr.jsxs)(Kf,{children:[(0,rr.jsx)("button",{type:"button",className:"btn btn-link",onClick:h,children:"Cancel"}),(0,rr.jsx)("button",{type:"submit",className:"btn btn-danger",disabled:u!==t.shortCode||a.loading,children:a.loading?"Deleting...":"Delete"})]})]})})},Vb=function(e){return function(t){var n=t.error,i=t.errorData,a=t.result,o=t.resetCreateShortUrl,s=t.canBeClosed,l=void 0!==s&&s,u=Q(e(),2),c=u[0],d=u[1];if((0,r.useEffect)((function(){o()}),[]),n)return(0,rr.jsxs)(Ib,{type:"error",className:"mt-3",children:[l&&(0,rr.jsx)(Ps,{icon:mi,className:"float-end pointer",onClick:o}),(0,rr.jsx)(Ub,{errorData:i,fallbackMessage:"An error occurred while creating the URL :("})]});if(Mn(a))return null;var f=a.shortUrl;return(0,rr.jsxs)(Ib,{type:"success",className:"mt-3",children:[l&&(0,rr.jsx)(Ps,{icon:mi,className:"float-end pointer",onClick:o}),(0,rr.jsx)("b",{children:"Great!"})," The short URL is ",(0,rr.jsx)("b",{children:f}),(0,rr.jsx)(rb(),{text:f,onCopy:d,children:(0,rr.jsxs)("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[(0,rr.jsx)(Ps,{icon:Qg})," Copy"]})}),(0,rr.jsx)(Xf,{placement:"left",isOpen:c,target:"copyBtn",children:"Copied!"})]})}},Hb=Xm((function(e,t,n){var r={};for(var i in n)r[i]=n[i];return r[e]=t,r})),Wb=Hb,Zb=Xm((function e(t,n,r){if(0===t.length)return n;var i=t[0];if(t.length>1){var a=!Mn(r)&&fn(i,r)?r[i]:wt(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,a)}if(wt(i)&&Yt(r)){var o=[].concat(r);return o[i]=n,o}return Wb(i,n,r)})),Yb=Zb,qb=St(-1),Gb=function(e,t,n){return Mn(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n},Kb="shlink/visitCreation/CREATE_VISITS",Qb=function(e){return{type:Kb,createdVisits:e}},Xb="shlink/deleteShortUrl/DELETE_SHORT_URL_START",$b="shlink/deleteShortUrl/DELETE_SHORT_URL_ERROR",Jb="shlink/deleteShortUrl/SHORT_URL_DELETED",ex="shlink/deleteShortUrl/RESET_DELETE_SHORT_URL",tx={shortCode:"",loading:!1,error:!1},nx=Bv((Ve(kb={},Xb,(function(e){return We(We({},e),{},{loading:!0,error:!1})})),Ve(kb,$b,(function(e,t){var n=t.errorData;return We(We({},e),{},{errorData:n,loading:!1,error:!0})})),Ve(kb,Jb,(function(e,t){var n=t.shortCode;return We(We({},e),{},{shortCode:n,loading:!1,error:!1})})),Ve(kb,ex,(function(){return tx})),kb),tx),rx=function(e){return function(t,n){return function(){var r=Ft(Zt().mark((function r(i,a){var o,s;return Zt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i({type:Xb}),o=e(a),s=o.deleteShortUrl,r.prev=2,r.next=5,s(t,n);case 5:i({type:Jb,shortCode:t,domain:n}),r.next=12;break;case 8:throw r.prev=8,r.t0=r.catch(2),i({type:$b,errorData:zb(r.t0)}),r.t0;case 12:case"end":return r.stop()}}),r,null,[[2,8]])})));return function(e,t){return r.apply(this,arguments)}}()}},ix=Vv(ex),ax="shlink/createShortUrl/CREATE_SHORT_URL_START",ox="shlink/createShortUrl/CREATE_SHORT_URL_ERROR",sx="shlink/createShortUrl/CREATE_SHORT_URL",lx="shlink/createShortUrl/RESET_CREATE_SHORT_URL",ux={result:null,saving:!1,error:!1},cx=Bv((Ve(Cb={},ax,(function(e){return We(We({},e),{},{saving:!0,error:!1})})),Ve(Cb,ox,(function(e,t){var n=t.errorData;return We(We({},e),{},{saving:!1,error:!0,errorData:n})})),Ve(Cb,sx,(function(e,t){return{result:t.result,saving:!1,error:!1}})),Ve(Cb,lx,(function(){return ux})),Cb),ux),dx=function(e){return function(t){return function(){var n=Ft(Zt().mark((function n(r,i){var a,o,s;return Zt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r({type:ax}),a=e(i),o=a.createShortUrl,n.prev=2,n.next=5,o(t);case 5:s=n.sent,r({type:sx,result:s}),n.next=13;break;case 9:throw n.prev=9,n.t0=n.catch(2),r({type:ox,errorData:zb(n.t0)}),n.t0;case 13:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(e,t){return n.apply(this,arguments)}}()}},fx=Vv(lx),hx="shlink/shortUrlEdition/EDIT_SHORT_URL_START",px="shlink/shortUrlEdition/EDIT_SHORT_URL_ERROR",mx="shlink/shortUrlEdition/SHORT_URL_EDITED",vx=Bv((Ve(Sb={},hx,(function(e){return We(We({},e),{},{saving:!0,error:!1})})),Ve(Sb,px,(function(e,t){var n=t.errorData;return We(We({},e),{},{saving:!1,error:!0,errorData:n})})),Ve(Sb,mx,(function(e,t){return{shortUrl:t.shortUrl,saving:!1,error:!1}})),Sb),{saving:!1,error:!1}),gx=function(e){return function(t,n,r){return function(){var i=Ft(Zt().mark((function i(a,o){var s,l,u,c,d,f,h,p,m;return Zt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a({type:hx}),s=o(),l=s.selectedServer,u=!gv(l),c=e(o),d=c.updateShortUrl,f=c.updateShortUrlTags,i.prev=4,i.next=7,Promise.all([d(t,n,r),u&&r.tags?f(t,n,r.tags):void 0]);case 7:h=i.sent,p=Q(h,1),m=p[0],a({shortUrl:m,type:mx}),i.next=17;break;case 13:throw i.prev=13,i.t0=i.catch(4),a({type:px,errorData:zb(i.t0)}),i.t0;case 17:case"end":return i.stop()}}),i,null,[[4,13]])})));return function(e,t){return i.apply(this,arguments)}}()}},yx="shlink/shortUrlsList/LIST_SHORT_URLS_START",bx="shlink/shortUrlsList/LIST_SHORT_URLS_ERROR",xx="shlink/shortUrlsList/LIST_SHORT_URLS",_x=Bv((Ve(Eb={},yx,(function(e){return We(We({},e),{},{loading:!0,error:!1})})),Ve(Eb,bx,(function(){return{loading:!1,error:!0}})),Ve(Eb,xx,(function(e,t){return{loading:!1,error:!1,shortUrls:t.shortUrls}})),Ve(Eb,Jb,rv((function(e,t){var n=t.shortCode,r=t.domain;return e.shortUrls?Yb(["shortUrls","data"],Sn((function(e){return Gb(e,n,r)}),e.shortUrls.data),e):e}),(function(e){return e.shortUrls?Yb(["shortUrls","pagination","totalItems"],e.shortUrls.pagination.totalItems-1,e):e}))),Ve(Eb,Kb,(function(e,t){var n,r,i=t.createdVisits;return Yb(["shortUrls","data"],null===(n=e.shortUrls)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.map((function(e){var t=qb(i.filter((function(t){var n=t.shortUrl;return n&&Gb(e,n.shortCode,n.domain)})));return null!==t&&void 0!==t&&t.shortUrl?Wb("visitsCount",t.shortUrl.visitsCount,e):e})),e)})),Ve(Eb,sx,rv((function(e,t){var n=t.result;return e.shortUrls?Yb(["shortUrls","data"],[n].concat(Ls(e.shortUrls.data.slice(0,4))),e):e}),(function(e){return e.shortUrls?Yb(["shortUrls","pagination","totalItems"],e.shortUrls.pagination.totalItems+1,e):e}))),Ve(Eb,mx,(function(e,t){var n=t.shortUrl;return e.shortUrls?Yb(["shortUrls","data"],e.shortUrls.data.map((function(e){var t=n.shortCode,r=n.domain;return Gb(e,t,r)?n:e})),e):e})),Eb),{loading:!0,error:!1}),wx=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=Ft(Zt().mark((function n(r,i){var a,o,s;return Zt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r({type:yx}),a=e(i),o=a.listShortUrls,n.prev=2,n.next=5,o(t);case 5:s=n.sent,r({type:xx,shortUrls:s}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),r({type:bx});case 12:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(e,t){return n.apply(this,arguments)}}()}},kx=function(e){return function(t){var n=t.orderByColumn,r=t.renderOrderIcon,i=t.shortUrlsList,a=t.onTagClick,o=t.selectedServer,s=t.className,l=i.error,u=i.loading,c=i.shortUrls,d=Hs()({"short-urls-table__header-cell--with-action":!!n}),f=Hs()("short-urls-table__header-cell",d),h=Hs()("table table-hover responsive-table",s),p=pv(o);return(0,rr.jsxs)("table",{className:h,children:[(0,rr.jsx)("thead",{className:"responsive-table__header short-urls-table__header",children:(0,rr.jsxs)("tr",{children:[(0,rr.jsxs)("th",{className:f,onClick:null===n||void 0===n?void 0:n("dateCreated"),children:["Created at ",null===r||void 0===r?void 0:r("dateCreated")]}),(0,rr.jsxs)("th",{className:f,onClick:null===n||void 0===n?void 0:n("shortCode"),children:["Short URL ",null===r||void 0===r?void 0:r("shortCode")]}),p?(0,rr.jsxs)("th",{className:"short-urls-table__header-cell",children:[(0,rr.jsxs)("span",{className:d,onClick:null===n||void 0===n?void 0:n("title"),children:["Title ",null===r||void 0===r?void 0:r("title")]}),"\xa0\xa0/\xa0\xa0",(0,rr.jsxs)("span",{className:d,onClick:null===n||void 0===n?void 0:n("longUrl"),children:[(0,rr.jsx)("span",{className:"indivisible",children:"Long URL"})," ",null===r||void 0===r?void 0:r("longUrl")]})]}):(0,rr.jsxs)("th",{className:f,onClick:null===n||void 0===n?void 0:n("longUrl"),children:["Long URL ",null===r||void 0===r?void 0:r("longUrl")]}),(0,rr.jsx)("th",{className:"short-urls-table__header-cell",children:"Tags"}),(0,rr.jsx)("th",{className:f,onClick:null===n||void 0===n?void 0:n("visits"),children:(0,rr.jsxs)("span",{className:"indivisible",children:["Visits ",null===r||void 0===r?void 0:r("visits")]})}),(0,rr.jsx)("th",{className:"short-urls-table__header-cell",children:"\xa0"})]})}),(0,rr.jsx)("tbody",{children:l?(0,rr.jsx)("tr",{children:(0,rr.jsx)("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):u?(0,rr.jsx)("tr",{children:(0,rr.jsx)("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!u&&Fn(null===c||void 0===c?void 0:c.data)?(0,rr.jsx)("tr",{children:(0,rr.jsx)("td",{colSpan:6,className:"text-center",children:"No results found"})}):null===c||void 0===c?void 0:c.data.map((function(t){return(0,rr.jsx)(e,{shortUrl:t,selectedServer:o,onTagClick:a},t.shortUrl)}))})]})}},Cx=function(e){var t=e.format,n=e.setFormat;return(0,rr.jsxs)(ng,{text:"Format (".concat(t,")"),children:[(0,rr.jsx)(dc,{active:"png"===t,onClick:function(){return n("png")},children:"PNG"}),(0,rr.jsx)(dc,{active:"svg"===t,onClick:function(){return n("svg")},children:"SVG"})]})},Sx=function(e){var t=e.errorCorrection,n=e.setErrorCorrection;return(0,rr.jsxs)(ng,{text:"Error correction (".concat(t,")"),children:[(0,rr.jsxs)(dc,{active:"L"===t,onClick:function(){return n("L")},children:[(0,rr.jsx)("b",{children:"L"}),"ow"]}),(0,rr.jsxs)(dc,{active:"M"===t,onClick:function(){return n("M")},children:[(0,rr.jsx)("b",{children:"M"}),"edium"]}),(0,rr.jsxs)(dc,{active:"Q"===t,onClick:function(){return n("Q")},children:[(0,rr.jsx)("b",{children:"Q"}),"uartile"]}),(0,rr.jsxs)(dc,{active:"H"===t,onClick:function(){return n("H")},children:[(0,rr.jsx)("b",{children:"H"}),"igh"]})]})},Ex=function(e,t){return function(n){var i=n.shortUrl,a=i.shortUrl,o=i.shortCode,s=n.toggle,l=n.isOpen,u=n.selectedServer,c=Q((0,r.useState)(300),2),d=c[0],f=c[1],h=Q((0,r.useState)(0),2),p=h[0],m=h[1],v=Q((0,r.useState)("png"),2),g=v[0],y=v[1],b=Q((0,r.useState)("L"),2),x=b[0],_=b[1],w=(0,r.useMemo)((function(){return{useSizeInPath:!hv(u),marginIsSupported:vv(u),errorCorrectionIsSupported:xv(u)}}),[u]),k=w.marginIsSupported!==w.errorCorrectionIsSupported,C=(0,r.useMemo)((function(){return function(e,t,n){var r=t.size,i=t.format,a=t.margin,o=t.errorCorrection,s=n.useSizeInPath,l=n.marginIsSupported,u=n.errorCorrectionIsSupported,c="".concat(e,"/qr-code").concat(s?"/".concat(r):""),d=Hn({size:s?void 0:r,format:i,margin:l&&a>0?a:void 0,errorCorrection:u?o:void 0});return"".concat(c).concat(Fn(d)?"":"?".concat(d))}(a,{size:d,format:g,margin:p,errorCorrection:x},w)}),[a,d,g,p,x,w]),S=(0,r.useMemo)((function(){return d+p}),[d,p]),E=(0,r.useMemo)((function(){if(!(S<500))return S<800?"lg":"xl"}),[S]);return(0,rr.jsxs)(If,{isOpen:l,toggle:s,centered:!0,size:E,children:[(0,rr.jsxs)(Bf,{toggle:s,children:["QR code for ",(0,rr.jsx)(Cm,{href:a,children:a})]}),(0,rr.jsxs)(Zf,{children:[(0,rr.jsxs)(Ql,{children:[(0,rr.jsxs)(mh,{className:"d-grid ".concat(k?"col-md-4":"col-md-6"),children:[(0,rr.jsxs)("label",{children:["Size: ",d,"px"]}),(0,rr.jsx)("input",{type:"range",className:"form-control-range",value:d,step:10,min:50,max:1e3,onChange:function(e){return f(Number(e.target.value))}})]}),w.marginIsSupported&&(0,rr.jsxs)(mh,{className:"d-grid ".concat(k?"col-md-4":"col-md-6"),children:[(0,rr.jsxs)("label",{htmlFor:"marginControl",children:["Margin: ",p,"px"]}),(0,rr.jsx)("input",{id:"marginControl",type:"range",className:"form-control-range",value:p,step:1,min:0,max:100,onChange:function(e){return m(Number(e.target.value))}})]}),(0,rr.jsx)(mh,{className:k?"col-md-4":"col-md-6",children:(0,rr.jsx)(Cx,{format:g,setFormat:y})}),w.errorCorrectionIsSupported&&(0,rr.jsx)(mh,{className:"col-md-6",children:(0,rr.jsx)(Sx,{errorCorrection:x,setErrorCorrection:_})})]}),(0,rr.jsxs)("div",{className:"text-center",children:[(0,rr.jsxs)("div",{className:"mb-3",children:[(0,rr.jsx)(Cm,{href:C}),(0,rr.jsx)(ib,{text:C})]}),(0,rr.jsx)("img",{src:C,className:"qr-code-modal__img",alt:"QR code"}),(0,rr.jsx)(t,{minVersion:"2.9.0",children:(0,rr.jsx)("div",{className:"mt-3",children:(0,rr.jsxs)(Hu,{block:!0,color:"primary",onClick:function(){e.saveImage(C,"".concat(o,"-qr-code.").concat(g)).catch((function(){}))},children:["Download ",(0,rr.jsx)(Ps,{icon:Dr,className:"ms-1"})]})})})]})]})]})}},Mx="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff",Tx=yt("function"===typeof String.prototype.trim&&!Mx.trim()&&"\u200b".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Mx+"]["+Mx+"]*"),n=new RegExp("["+Mx+"]["+Mx+"]*$");return e.replace(t,"").replace(n,"")}),Ox=Xm((function(e,t,n){return n.replace(e,t)})),Nx=function(e){return(0,rr.jsx)(uy,We({type:"checkbox"},e))},Px=function(e){var t=e.isOpen,n=e.toggle;return(0,rr.jsxs)(If,{isOpen:t,toggle:n,centered:!0,size:"lg",children:[(0,rr.jsx)(Bf,{toggle:n,children:"Info"}),(0,rr.jsxs)(Zf,{children:[(0,rr.jsxs)("p",{children:["When the\xa0",(0,rr.jsx)("b",{children:(0,rr.jsx)("i",{children:'"Use existing URL if found"'})}),"\xa0checkbox is checked, the server will return an existing short URL if it matches provided params."]}),(0,rr.jsx)("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),(0,rr.jsxs)("ul",{children:[(0,rr.jsx)("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),(0,rr.jsxs)("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",(0,rr.jsx)("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),(0,rr.jsx)("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]})},jx=function(){var e=Q(pm(),2),t=e[0],n=e[1];return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("span",{title:"What does this mean?",children:(0,rr.jsx)(Ps,{icon:Sr,style:{cursor:"pointer"},onClick:n})}),(0,rr.jsx)(Px,{isOpen:t,toggle:n})]})},Dx=function(e){var t=e.className,n=void 0===t?"":t,i=e.placement,a=e.children,o=(0,r.useRef)();return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("span",{className:n,ref:function(e){o.current=e},children:(0,rr.jsx)(Ps,{icon:Sr})}),(0,rr.jsx)(tm,{target:function(){return o.current},placement:i,children:a})]})},Lx=function(e){var t=e.children,n=e.infoTooltip,r=e.checked,i=e.onChange;return(0,rr.jsxs)("p",{children:[(0,rr.jsx)(Nx,{inline:!0,checked:r,className:n?"me-2":"",onChange:i,children:t}),n&&(0,rr.jsx)(Dx,{placement:"right",children:n})]})},Ax=rv(Tx,Ox(/ /g,"-")),Rx=function(e){return"string"===typeof e?(0,Jv.default)(e):e},Ix=function(e){return{"col-sm-6":e,"col-sm-12":!e}},zx=function(e,t){return function(n){var i,a=n.mode,o=n.saving,s=n.onSave,l=n.initialState,u=n.selectedServer,c=Q((0,r.useState)(l),2),d=c[0],f=c[1],h="edit"===a,p="create-basic"===a,m=av(l.title),v=function(){var e=av(d.title);return gg([[function(){return!e&&!m},function(){}],[function(){return!e&&m},function(){return null}],[yg,function(){return d.title}]])()},g=ov(Ft(Zt().mark((function e(){var t,n;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(We(We({},d),{},{validSince:null!==(t=Og(d.validSince))&&void 0!==t?t:null,validUntil:null!==(n=Og(d.validUntil))&&void 0!==n?n:null,maxVisits:av(d.maxVisits)?Number(d.maxVisits):null,title:v()})).then((function(){return!h&&f(l)})).catch((function(){})));case 1:case"end":return e.stop()}}),e)}))));(0,r.useEffect)((function(){f(l)}),[l]);var y=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return(0,rr.jsx)(mh,We(We({},a),{},{children:(0,rr.jsx)(wh,We({id:e,type:r,placeholder:t,value:null!==(n=d[e])&&void 0!==n?n:"",onChange:function(t){return f(We(We({},d),{},Ve({},e,t.target.value)))}},i))}))},b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,rr.jsx)(Xg,We({selected:d[e]?Rx(d[e]):null,placeholderText:t,isClearable:!0,onChange:function(t){return f(We(We({},d),{},Ve({},e,t)))}},n))},x=(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(mh,{children:(0,rr.jsx)(wh,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:d.longUrl,onChange:function(e){return f(We(We({},d),{},{longUrl:e.target.value}))}})}),(0,rr.jsxs)(Ql,{children:[p&&y("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),(0,rr.jsx)("div",{className:p?"col-lg-6 mb-3":"col-12",children:(0,rr.jsx)(e,{selectedTags:null!==(i=d.tags)&&void 0!==i?i:[],onChange:function(e){return f(We(We({},d),{},{tags:e.map(Ax)}))}})})]})]}),_=pv(u),w=_||!h,k=Hs()("mb-3",Ix(w)),C=bv(u),S=wv(u),E=C||S,M=Hs()("mb-3",Ix(E));return(0,rr.jsxs)("form",{className:"short-url-form",onSubmit:g,children:[p&&x,!p&&(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(Mv,{title:"Basic options",className:"mb-3",children:x}),(0,rr.jsxs)(Ql,{children:[w&&(0,rr.jsx)("div",{className:"col-sm-6 mb-3",children:(0,rr.jsxs)(Mv,{title:"Customize the short URL",children:[_&&y("title","Title"),!h&&(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsxs)(Ql,{children:[(0,rr.jsx)("div",{className:"col-lg-6",children:y("customSlug","Custom slug","text",{disabled:av(d.shortCodeLength)})}),(0,rr.jsx)("div",{className:"col-lg-6",children:y("shortCodeLength","Short code length","number",{min:4,disabled:av(d.customSlug)})})]}),(0,rr.jsx)(t,{value:d.domain,onChange:function(e){return f(We(We({},d),{},{domain:e}))}})]})]})}),(0,rr.jsx)("div",{className:k,children:(0,rr.jsxs)(Mv,{title:"Limit access to the short URL",children:[y("maxVisits","Maximum number of visits allowed","number",{min:1}),(0,rr.jsx)("div",{className:"mb-3",children:b("validSince","Enabled since...",{maxDate:d.validUntil?Rx(d.validUntil):void 0})}),b("validUntil","Enabled until...",{minDate:d.validSince?Rx(d.validSince):void 0})]})})]}),(0,rr.jsxs)(Ql,{children:[(0,rr.jsx)("div",{className:M,children:(0,rr.jsxs)(Mv,{title:"Extra checks",children:[(0,rr.jsx)(Lx,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:d.validateUrl,onChange:function(e){return f(We(We({},d),{},{validateUrl:e}))},children:"Validate URL"}),!h&&(0,rr.jsxs)("p",{children:[(0,rr.jsx)(Nx,{inline:!0,className:"me-2",checked:d.findIfExists,onChange:function(e){return f(We(We({},d),{},{findIfExists:e}))},children:"Use existing URL if found"}),(0,rr.jsx)(jx,{})]})]})}),E&&(0,rr.jsx)("div",{className:"col-sm-6 mb-3",children:(0,rr.jsxs)(Mv,{title:"Configure behavior",children:[C&&(0,rr.jsx)(Lx,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:d.crawlable,onChange:function(e){return f(We(We({},d),{},{crawlable:e}))},children:"Make it crawlable"}),S&&(0,rr.jsx)(Lx,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:d.forwardQuery,onChange:function(e){return f(We(We({},d),{},{forwardQuery:e}))},children:"Forward query params on redirect"})]})})]})]}),(0,rr.jsx)("div",{className:"text-center",children:(0,rr.jsx)(Hu,{outline:!0,color:"primary",disabled:o||Fn(d.longUrl),className:"btn-xs-block",children:o?"Saving...":"Save"})})]})}},Fx=function(e){return function(t){var n,i=t.settings.shortUrlCreation,a=t.selectedServer,o=t.shortUrlDetail,s=t.getShortUrlDetail,l=t.shortUrlEdition,u=t.editShortUrl,c=me().search,d=ge(),f=mm(),h=o.loading,p=o.error,m=o.errorData,v=o.shortUrl,g=l.saving,y=l.error,b=l.errorData,x=Vn(c).domain,_=(0,r.useMemo)((function(){return function(e,t){var n,r,i,a,o,s,l=null!==(n=null===t||void 0===t?void 0:t.validateUrls)&&void 0!==n&&n;return e?{longUrl:e.longUrl,tags:e.tags,title:null!==(r=e.title)&&void 0!==r?r:void 0,domain:null!==(i=e.domain)&&void 0!==i?i:void 0,validSince:null!==(a=e.meta.validSince)&&void 0!==a?a:void 0,validUntil:null!==(o=e.meta.validUntil)&&void 0!==o?o:void 0,maxVisits:null!==(s=e.meta.maxVisits)&&void 0!==s?s:void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,validateUrl:l}:{longUrl:"",validateUrl:l}}(v,i)}),[v,i]),w=Q(pm(),4),k=w[0],C=w[2],S=w[3];return(0,r.useEffect)((function(){d.shortCode&&s(d.shortCode,x)}),[]),h?(0,rr.jsx)(Nm,{loading:!0}):p?(0,rr.jsx)(Ib,{type:"error",children:(0,rr.jsx)(Ub,{errorData:m,fallbackMessage:"An error occurred while loading short URL detail :("})}):(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("header",{className:"mb-3",children:(0,rr.jsx)($c,{body:!0,children:(0,rr.jsxs)("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[(0,rr.jsx)(Hu,{color:"link",size:"lg",className:"p-0 me-3",onClick:f,children:(0,rr.jsx)(Ps,{icon:sr})}),(0,rr.jsx)("span",{className:"text-center",children:(0,rr.jsxs)("small",{children:["Edit ",(0,rr.jsx)(Cm,{href:null!==(n=null===v||void 0===v?void 0:v.shortUrl)&&void 0!==n?n:""})]})}),(0,rr.jsx)("span",{})]})})}),(0,rr.jsx)(e,{initialState:_,saving:g,selectedServer:a,mode:"edit",onSave:function(){var e=Ft(Zt().mark((function e(t){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v){e.next=2;break}return e.abrupt("return");case 2:S(),u(v.shortCode,v.domain,t).then(C).catch(S);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),y&&(0,rr.jsx)(Ib,{type:"error",className:"mt-3",children:(0,rr.jsx)(Ub,{errorData:b,fallbackMessage:"An error occurred while updating short URL :("})}),k&&(0,rr.jsx)(Ib,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})}},Ux="shlink/shortUrlDetail/GET_SHORT_URL_DETAIL_START",Bx="shlink/shortUrlDetail/GET_SHORT_URL_DETAIL_ERROR",Vx="shlink/shortUrlDetail/GET_SHORT_URL_DETAIL",Hx={loading:!1,error:!1},Wx=Bv((Ve(Mb={},Ux,(function(){return{loading:!0,error:!1}})),Ve(Mb,Bx,(function(e,t){return{loading:!1,error:!0,errorData:t.errorData}})),Ve(Mb,Vx,(function(e,t){return We({shortUrl:t.shortUrl},Hx)})),Mb),Hx),Zx=function(e){return function(t,n){return function(){var r=Ft(Zt().mark((function r(i,a){var o,s,l,u,c;return Zt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i({type:Ux}),r.prev=1,l=a(),u=l.shortUrlsList,null===(o=null===u||void 0===u||null===(s=u.shortUrls)||void 0===s?void 0:s.data.find((function(e){return Gb(e,t,n)})))||void 0===o){r.next=7;break}r.t0=o,r.next=10;break;case 7:return r.next=9,e(a).getShortUrl(t,n);case 9:r.t0=r.sent;case 10:c=r.t0,i({shortUrl:c,type:Vx}),r.next=17;break;case 14:r.prev=14,r.t1=r.catch(1),i({type:Bx,errorData:zb(r.t1)});case 17:case"end":return r.stop()}}),r,null,[[1,14]])})));return function(e,t){return r.apply(this,arguments)}}()}},Yx=["amount","loading"],qx=function(e){var t=e.amount,n=void 0===t?0:t,r=e.loading,i=void 0!==r&&r,a=Ht(e,Yx);return(0,rr.jsxs)(Hu,We(We({},a),{},{outline:!0,color:"primary",disabled:i,children:[(0,rr.jsx)(Ps,{icon:Dr})," ",i?"Exporting...":(0,rr.jsxs)(rr.Fragment,{children:["Export (",Gy(n),")"]})]}))},Gx=function(e,t){var n=t.exportShortUrls;return function(t){var r=t.amount,i=void 0===r?0:r,a=t.selectedServer,o=Q(yy(),1)[0],s=o.tags,l=o.search,u=o.startDate,c=o.endDate,d=o.orderBy,f=o.tagsMode,h=Q(pm(),4),p=h[0],m=h[2],v=h[3],g=function(){var t=Ft(Zt().mark((function t(){var r,o,h,p,g;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Lt(a)){t.next=2;break}return t.abrupt("return");case 2:return r=i/20,o=e(a),h=o.listShortUrls,p=function(){var e=Ft(Zt().mark((function e(){var t,n,i,a=arguments;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:1,e.next=3,h({page:"".concat(t),tags:s,searchTerm:l,startDate:u,endDate:c,orderBy:d,tagsMode:f,itemsPerPage:20});case 3:if(n=e.sent,i=n.data,!(t>=r)){e.next=7;break}return e.abrupt("return",i);case 7:return e.t0=i,e.next=10,p(t+1);case 10:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m(),t.next=8,p();case 8:g=t.sent,n(g.map((function(e){var t;return{createdAt:e.dateCreated,shortUrl:e.shortUrl,longUrl:e.longUrl,title:null!==(t=e.title)&&void 0!==t?t:"",tags:e.tags.join(","),visits:e.visitsCount}}))),v();case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,rr.jsx)(qx,{loading:p,className:"btn-md-block",amount:i,onClick:g})}},Kx=function(e,t){e.serviceFactory("ShortUrlsList",tb,"ShortUrlsTable","ShortUrlsFilteringBar"),e.decorator("ShortUrlsList",t(["selectedServer","mercureInfo","shortUrlsList","settings"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.serviceFactory("ShortUrlsTable",kx,"ShortUrlsRow"),e.serviceFactory("ShortUrlsRow",Db,"ShortUrlsRowMenu","ColorGenerator","useStateFlagTimeout"),e.serviceFactory("ShortUrlsRowMenu",Ab,"DeleteShortUrlModal","QrCodeModal"),e.serviceFactory("CreateShortUrlResult",Vb,"useStateFlagTimeout"),e.serviceFactory("ShortUrlForm",zx,"TagsSelector","DomainSelector"),e.serviceFactory("CreateShortUrl",Rb,"ShortUrlForm","CreateShortUrlResult"),e.decorator("CreateShortUrl",t(["shortUrlCreationResult","selectedServer","settings"],["createShortUrl","resetCreateShortUrl"])),e.serviceFactory("EditShortUrl",Fx,"ShortUrlForm"),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition","selectedServer","settings"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",(function(){return Bb})),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","resetDeleteShortUrl"])),e.serviceFactory("QrCodeModal",Ex,"ImageDownloader","ForServerVersion"),e.decorator("QrCodeModal",t(["selectedServer"])),e.serviceFactory("ShortUrlsFilteringBar",_y,"ColorGenerator","ExportShortUrlsBtn"),e.serviceFactory("ExportShortUrlsBtn",Gx,"buildShlinkApiClient","ReportExporter"),e.decorator("ExportShortUrlsBtn",t(["selectedServer"])),e.serviceFactory("listShortUrls",wx,"buildShlinkApiClient"),e.serviceFactory("createShortUrl",dx,"buildShlinkApiClient"),e.serviceFactory("resetCreateShortUrl",(function(){return fx})),e.serviceFactory("deleteShortUrl",rx,"buildShlinkApiClient"),e.serviceFactory("resetDeleteShortUrl",(function(){return ix})),e.serviceFactory("getShortUrlDetail",Zx,"buildShlinkApiClient"),e.serviceFactory("editShortUrl",gx,"buildShlinkApiClient")},Qx=n(3856),Xx=n.n(Qx),$x=function(e){var t=e.children,n=e.label,r=e.className,i=void 0===r?"":r,a=e.labelClassName,o=void 0===a?"":a,s=e.noMargin,l=void 0!==s&&s;return(0,rr.jsxs)("div",{className:"".concat(i," ").concat(l?"":"mb-3"),children:[(0,rr.jsx)("label",{className:"form-label ".concat(o),children:n}),t]})},Jx=function(e){var t=e.children,n=e.value,r=e.onChange,i=e.type,a=e.required,o=e.placeholder,s=e.className,l=e.labelClassName;return(0,rr.jsx)($x,{label:(0,rr.jsxs)(rr.Fragment,{children:[t,":"]}),className:null!==s&&void 0!==s?s:"",labelClassName:l,children:(0,rr.jsx)("input",{className:"form-control",type:null!==i&&void 0!==i?i:"text",value:n,required:null===a||void 0===a||a,placeholder:o,onChange:function(e){return r(e.target.value)}})})},e_=function(e){var t=e.onSubmit,n=e.initialValues,i=e.children,a=e.title,o=Q((0,r.useState)(""),2),s=o[0],l=o[1],u=Q((0,r.useState)(""),2),c=u[0],d=u[1],f=Q((0,r.useState)(""),2),h=f[0],p=f[1],m=ov((function(){return t({name:s,url:c,apiKey:h})}));return(0,r.useEffect)((function(){n&&l(n.name),n&&d(n.url),n&&p(n.apiKey)}),[n]),(0,rr.jsxs)("form",{className:"server-form",onSubmit:m,children:[(0,rr.jsxs)(Mv,{className:"mb-3",title:a,children:[(0,rr.jsx)(Jx,{value:s,onChange:l,children:"Name"}),(0,rr.jsx)(Jx,{type:"url",value:c,onChange:d,children:"URL"}),(0,rr.jsx)(Jx,{value:h,onChange:p,children:"API key"})]}),(0,rr.jsx)("div",{className:"text-end",children:i})]})},t_=function(e){var t=e.isOpen,n=e.duplicatedServers,i=e.onDiscard,a=e.onSave,o=n.length>1;return(0,rr.jsxs)(If,{centered:!0,isOpen:t,children:[(0,rr.jsxs)(Bf,{children:["Duplicated server",o&&"s"]}),(0,rr.jsxs)(Zf,{children:[(0,rr.jsx)("p",{children:o?"The next servers already exist:":"There is already a server with:"}),(0,rr.jsx)("ul",{children:n.map((function(e,t){var n=e.url,i=e.apiKey;return o?(0,rr.jsxs)("li",{children:[(0,rr.jsx)("b",{children:n})," - ",(0,rr.jsx)("b",{children:i})]},t):(0,rr.jsxs)(r.Fragment,{children:[(0,rr.jsxs)("li",{children:["URL: ",(0,rr.jsx)("b",{children:n})]}),(0,rr.jsxs)("li",{children:["API key: ",(0,rr.jsx)("b",{children:i})]})]},t)}))}),(0,rr.jsxs)("span",{children:[o?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),(0,rr.jsxs)(Kf,{children:[(0,rr.jsx)(Hu,{color:"link",onClick:i,children:o?"Ignore duplicated":"Discard"}),(0,rr.jsx)(Hu,{color:"primary",onClick:a,children:"Save anyway"})]})]})},n_=function(e){var t=e.type;return(0,rr.jsx)("div",{className:"mt-3",children:(0,rr.jsxs)(Ib,{type:t,children:["success"===t&&"Servers properly imported. You can now select one from the list :)","error"===t&&"The servers could not be imported. Make sure the format is correct."]})})},r_=function(e,t){return function(n){var i=n.servers,a=n.createServer,o=ve(),s=mm(),l=!!Object.keys(i).length,u=Q(t(!1,4e3),2),c=u[0],d=u[1],f=Q(t(!1,4e3),2),h=f[0],p=f[1],m=Q(pm(),2),v=m[0],g=m[1],y=Q((0,r.useState)(),2),b=y[0],x=y[1],_=function(){if(b){var e=ly();a(We(We({},b),{},{id:e})),o("/server/".concat(e))}};return(0,r.useEffect)((function(){Object.values(i).some((function(e){var t=e.url,n=e.apiKey;return(null===b||void 0===b?void 0:b.url)===t&&(null===b||void 0===b?void 0:b.apiKey)===n}))?g():_()}),[b]),(0,rr.jsxs)(Pm,{children:[(0,rr.jsxs)(e_,{title:(0,rr.jsx)("h5",{className:"mb-0",children:"Add new server"}),onSubmit:x,children:[!l&&(0,rr.jsx)(e,{tooltipPlacement:"top",onImport:d,onImportError:p}),l&&(0,rr.jsx)(Hu,{outline:!0,onClick:s,children:"Cancel"}),(0,rr.jsx)(Hu,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),c&&(0,rr.jsx)(n_,{type:"success"}),h&&(0,rr.jsx)(n_,{type:"error"}),(0,rr.jsx)(t_,{isOpen:v,duplicatedServers:b?[b]:[],onDiscard:s,onSave:_})]})}},i_=function(e){var t=e.servers,n=e.selectedServer,r=wm(t);return(0,rr.jsxs)(Jp,{nav:!0,inNavbar:!0,children:[(0,rr.jsxs)(xc,{nav:!0,caret:!0,children:[(0,rr.jsx)(Ps,{icon:oi})," ",(0,rr.jsx)("span",{className:"ms-1",children:"Servers"})]}),(0,rr.jsx)(vc,{end:!0,style:{right:0},children:Fn(r)?(0,rr.jsxs)(dc,{tag:ze,to:"/server/create",children:[(0,rr.jsx)(Ps,{icon:ti})," ",(0,rr.jsx)("span",{className:"ms-1",children:"Add a server"})]}):(0,rr.jsxs)(rr.Fragment,{children:[r.map((function(e){var t=e.name,r=e.id;return(0,rr.jsx)(dc,{tag:ze,to:"/server/".concat(r),active:Rt(n)===r,children:t},r)})),(0,rr.jsx)(dc,{divider:!0}),(0,rr.jsxs)(dc,{tag:ze,to:"/manage-servers",children:[(0,rr.jsx)(Ps,{icon:oi})," ",(0,rr.jsx)("span",{className:"ms-1",children:"Manage servers"})]})]})})]})},a_=function(e){var t=e.server,n=e.toggle,r=e.isOpen,i=e.deleteServer,a=e.redirectHome,o=void 0===a||a,s=ve();return(0,rr.jsxs)(If,{isOpen:r,toggle:n,centered:!0,children:[(0,rr.jsx)(Bf,{toggle:n,children:(0,rr.jsx)("span",{className:"text-danger",children:"Remove server"})}),(0,rr.jsxs)(Zf,{children:[(0,rr.jsxs)("p",{children:["Are you sure you want to remove ",(0,rr.jsx)("b",{children:t?t.name:""}),"?"]}),(0,rr.jsx)("p",{children:(0,rr.jsx)("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),(0,rr.jsxs)(Kf,{children:[(0,rr.jsx)(Hu,{color:"link",onClick:n,children:"Cancel"}),(0,rr.jsx)(Hu,{color:"danger",onClick:function(){return i(t),n(),void(o&&s("/"))},children:"Delete"})]})]})},o_=function(e){return function(t){var n=t.server,r=t.className,i=t.children,a=t.textClassName,o=Q(pm(),4),s=o[0],l=o[2],u=o[3];return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsxs)("span",{className:r,onClick:l,children:[!i&&(0,rr.jsx)(Ps,{fixedWidth:!0,icon:Mr}),(0,rr.jsx)("span",{className:a,children:null!==i&&void 0!==i?i:"Remove this server"})]}),(0,rr.jsx)(e,{server:n,isOpen:s,toggle:u})]})}},s_=function(e){return jm((function(e){var t=e.editServer,n=e.selectedServer,r=mm();if(!Lt(n))return null;return(0,rr.jsx)(Pm,{children:(0,rr.jsxs)(e_,{title:(0,rr.jsxs)("h5",{className:"mb-0",children:['Edit "',n.name,'"']}),initialValues:n,onSubmit:function(e){t(n.id,e),r()},children:[(0,rr.jsx)(Hu,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),(0,rr.jsx)(Hu,{outline:!0,color:"primary",children:"Save"})]})})}),e)};var l_,u_,c_=bt((function(e,t){return"function"===typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"===typeof e.ap?e.ap(t):"function"===typeof e?function(n){return e(n)(t(n))}:on((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,i=t.length,a=[];for(n=0;n<r;)a[a.length]=e[n],n+=1;for(n=0;n<i;)a[a.length]=t[n],n+=1;return a}(e,hg(n,t))}),[],e)})),d_=c_,f_=bt((function(e,t){var n=dg(e,t);return dg(e,(function(){return on(d_,hg(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),h_=f_,p_=yt((function(e){return h_(e.length,e)}))(yt((function(e){return!e}))),m_=function(e){return function(t){var n=t.url,r=t.apiKey;return e.some((function(e){return e.url===n&&e.apiKey===r}))}},v_=function(e){var t=e.importServersFromFile;return function(e){var n=e.createServers,i=e.servers,a=e.fileRef,o=e.children,s=e.onImport,l=void 0===s?function(){}:s,u=e.onImportError,c=void 0===u?function(){}:u,d=e.tooltipPlacement,f=void 0===d?"bottom":d,h=e.className,p=void 0===h?"":h,m=null!==a&&void 0!==a?a:(0,r.useRef)(),v=Q((0,r.useState)(),2),g=v[0],y=v[1],b=Q((0,r.useState)([]),2),x=b[0],_=b[1],w=Q(pm(),4),k=w[0],C=w[2],S=w[3],E=rv(n,l),M=rv((function(){return E(null!==g&&void 0!==g?g:[])}),S),T=rv((function(){return E((null!==g&&void 0!==g?g:[]).filter(p_(m_(x))))}),S),O=function(){var e=Ft(Zt().mark((function e(n){var r,i;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.target,e.abrupt("return",t(null===(r=i.files)||void 0===r?void 0:r[0]).then(y).then((function(){i.value=null})).catch(c));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,r.useEffect)((function(){if(g){var e=Object.values(i),t=g.filter(m_(e)),n=!!t.length;n?_(t):E(g),n&&C()}}),[g]),(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsxs)(Hu,{outline:!0,id:"importBtn",className:p,onClick:function(){var e;return null===(e=m.current)||void 0===e?void 0:e.click()},children:[(0,rr.jsx)(Ps,{icon:Ar,fixedWidth:!0})," ",null!==o&&void 0!==o?o:"Import from file"]}),(0,rr.jsxs)(tm,{placement:f,target:"importBtn",children:["You can create servers by importing a CSV file with columns ",(0,rr.jsx)("b",{children:"name"}),", ",(0,rr.jsx)("b",{children:"apiKey"})," and ",(0,rr.jsx)("b",{children:"url"}),"."]}),(0,rr.jsx)("input",{type:"file",accept:"text/csv",className:"import-servers-btn__csv-select",ref:m,onChange:O}),(0,rr.jsx)(t_,{isOpen:k,duplicatedServers:x,onDiscard:T,onSave:M})]})}},g_="shlink/selectedServer/SELECT_SERVER",y_="shlink/selectedServer/RESET_SELECTED_SERVER",b_=rv((function(e){return"latest"===e?"999.999.999":e}),dv("1.0.0")),x_=Zm(qm,function(){var e=Ft(Zt().mark((function e(t,n){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n().then((function(e){var t=e.version;return{version:b_(t),printableVersion:cv(t)}})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),__=Bv((Ve(l_={},y_,(function(){return null})),Ve(l_,g_,(function(e,t){return t.selectedServer})),l_),null),w_=Vv(y_),k_=function(e,t){return function(n){return function(){var r=Ft(Zt().mark((function r(i,a){var o,s,l,u,c,d,f,h;return Zt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i(w_()),o=a(),s=o.servers,l=s[n]){r.next=6;break}return i({type:g_,selectedServer:{serverNotFound:!0}}),r.abrupt("return");case 6:return r.prev=6,u=e(l),c=u.health,r.next=10,x_(n,c);case 10:d=r.sent,f=d.version,h=d.printableVersion,i({type:g_,selectedServer:We(We({},l),{},{version:f,printableVersion:h})}),i(t()),r.next=20;break;case 17:r.prev=17,r.t0=r.catch(6),i({type:g_,selectedServer:We(We({},l),{},{serverNotReachable:!0})});case 20:case"end":return r.stop()}}),r,null,[[6,17]])})));return function(e,t){return r.apply(this,arguments)}}()}},C_=yt((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t})),S_="shlink/servers/EDIT_SERVER",E_="shlink/servers/DELETE_SERVER",M_="shlink/servers/CREATE_SERVERS",T_="shlink/servers/SET_AUTO_CONNECT",O_=Bv((Ve(u_={},M_,(function(e,t){var n=t.newServers;return We(We({},e),n)})),Ve(u_,E_,(function(e,t){var n=t.serverId;return jy(n,e)})),Ve(u_,S_,(function(e,t){var n=t.serverId,r=t.serverData;return e[n]?Wb(n,We(We({},e[n]),r),e):e})),Ve(u_,T_,(function(e,t){var n=t.serverId,r=t.autoConnect;return e[n]?r?C_(py(e).map((function(e){var t=Q(e,2),r=t[0];return[r,We(We({},t[1]),{},{autoConnect:r===n})]}))):Wb(n,We(We({},e[n]),{},{autoConnect:r}),e):e})),u_),{}),N_=$m((function(e,t){return Wb(t.id,t,e)}),{}),P_=rv(hg((function(e){return e.id?e:Wb("id",ly(),e)})),N_,(function(e){return{type:M_,newServers:e}})),j_=function(e){return P_([e])},D_=function(e,t){return{type:S_,serverId:e,serverData:t}},L_=function(e){var t=e.id;return{type:E_,serverId:t}},A_=function(e,t){var n=e.id;return{type:T_,serverId:n,autoConnect:t}},R_=rv(Nt("data"),(function(e){return Array.isArray(e)?e.filter(Dt):[]})),I_=function(e){var t=e.get;return function(){return function(){var e=Ft(Zt().mark((function e(n){var r,i;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("".concat(Be.Xh,"/servers.json"));case 2:r=e.sent,i=R_(r),n(P_(i));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}},z_=function(e){var t=e.minVersion,n=e.maxVersion,r=e.selectedServer,i=e.children;if(!At(r))return null;var a=r.version;return lv(a,{maxVersion:n,minVersion:t})?(0,rr.jsx)(rr.Fragment,{children:i}):null},F_=function(e){return function(t){var n=t.servers,r=t.selectedServer;return(0,rr.jsx)(Pm,{children:(0,rr.jsxs)("div",{className:"server-error__container flex-column",children:[(0,rr.jsxs)(Nm,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Lt(r)&&"Could not find this Shlink server.",Lt(r)&&(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),(0,rr.jsxs)(Em,{servers:Object.values(n),children:["These are the Shlink servers currently configured. Choose one of them or ",(0,rr.jsx)(ze,{to:"/server/create",children:"add a new one"}),"."]}),Lt(r)&&(0,rr.jsx)("div",{className:"container mt-3 mt-md-5",children:(0,rr.jsxs)("h5",{children:["Alternatively, if you think you may have miss-configured this server, you can ",(0,rr.jsx)(e,{server:r,className:"server-error__delete-btn",children:"remove it"})," or\xa0",(0,rr.jsx)(ze,{to:"/server/".concat(r.id,"/edit"),children:"edit it"}),"."]})})]})})}},U_=function(e){var t=e.children,n=e.title,r=e.link;return(0,rr.jsxs)($c,We(We({className:"highlight-card",body:!0},function(e){return e?{tag:ze,to:e}:{}}(r)),{},{children:[r&&(0,rr.jsx)(Ps,{size:"3x",className:"highlight-card__link-icon",icon:Kg}),(0,rr.jsx)(ef,{tag:"h5",className:"highlight-card__title",children:n}),(0,rr.jsx)(Qd,{tag:"h2",children:t})]}))},B_=function(e,t,n){return ky((function(i){var a,o=i.shortUrlsList,s=i.listShortUrls,l=i.listTags,u=i.tagsList,c=i.selectedServer,d=i.loadVisitsOverview,f=i.visitsOverview,h=o.loading,p=o.shortUrls,m=u.loading,v=f.loading,g=f.visitsCount,y=f.orphanVisitsCount,b=Rt(c),x=mv(c),_=Cv(c),w=ve();return(0,r.useEffect)((function(){s({itemsPerPage:5,orderBy:{field:"dateCreated",dir:"DESC"}}),l(),d()}),[]),(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsxs)(Ql,{children:[(0,rr.jsx)("div",{className:"col-lg-6 col-xl-3 mb-3",children:(0,rr.jsx)(U_,{title:"Visits",link:_&&"/server/".concat(b,"/non-orphan-visits"),children:v?"Loading...":Gy(g)})}),(0,rr.jsx)("div",{className:"col-lg-6 col-xl-3 mb-3",children:(0,rr.jsxs)(U_,{title:"Orphan visits",link:x&&"/server/".concat(b,"/orphan-visits"),children:[(0,rr.jsx)(n,{minVersion:"2.6.0",children:v?"Loading...":Gy(null!==y&&void 0!==y?y:0)}),(0,rr.jsx)(n,{maxVersion:"2.5.*",children:(0,rr.jsx)("small",{className:"text-muted",children:(0,rr.jsx)("i",{children:"Shlink 2.6 is needed"})})})]})}),(0,rr.jsx)("div",{className:"col-lg-6 col-xl-3 mb-3",children:(0,rr.jsx)(U_,{title:"Short URLs",link:"/server/".concat(b,"/list-short-urls/1"),children:h?"Loading...":Gy(null!==(a=null===p||void 0===p?void 0:p.pagination.totalItems)&&void 0!==a?a:0)})}),(0,rr.jsx)("div",{className:"col-lg-6 col-xl-3 mb-3",children:(0,rr.jsx)(U_,{title:"Tags",link:"/server/".concat(b,"/manage-tags"),children:m?"Loading...":Gy(u.tags.length)})})]}),(0,rr.jsxs)($c,{className:"mb-3",children:[(0,rr.jsxs)(wd,{children:[(0,rr.jsx)("span",{className:"d-sm-none",children:"Create a short URL"}),(0,rr.jsx)("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),(0,rr.jsx)(ze,{className:"float-end",to:"/server/".concat(b,"/create-short-url"),children:"Advanced options \xbb"})]}),(0,rr.jsx)(dd,{children:(0,rr.jsx)(t,{basicMode:!0})})]}),(0,rr.jsxs)($c,{children:[(0,rr.jsxs)(wd,{children:[(0,rr.jsx)("span",{className:"d-sm-none",children:"Recently created URLs"}),(0,rr.jsx)("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),(0,rr.jsx)(ze,{className:"float-end",to:"/server/".concat(b,"/list-short-urls/1"),children:"See all \xbb"})]}),(0,rr.jsx)(dd,{children:(0,rr.jsx)(e,{shortUrlsList:o,selectedServer:c,className:"mb-0",onTagClick:function(e){return w("/server/".concat(b,"/list-short-urls/1?tags=").concat(encodeURIComponent(e)))}})})]})]})}),(function(){return[Cy.visits,Cy.orphanVisits]}))},V_=function(e,t,n,i){return function(a){var o=a.servers,s=Object.values(o),l=Q((0,r.useState)(s),2),u=l[0],c=l[1],d=u.some((function(e){return!!e.autoConnect})),f=Q(n(!1,4e3),2),h=f[0],p=f[1];return(0,r.useEffect)((function(){c(Object.values(o))}),[o]),(0,rr.jsxs)(Pm,{children:[(0,rr.jsx)(eg,{className:"mb-3",onChange:function(e){return c(s.filter((function(t){var n=t.name,r=t.url;return"".concat(n," ").concat(r).match(e)})))}}),(0,rr.jsxs)(Ql,{className:"mb-3",children:[(0,rr.jsxs)("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[(0,rr.jsx)(t,{className:"flex-fill",onImportError:p,children:"Import servers"}),s.length>0&&(0,rr.jsxs)(Hu,{outline:!0,className:"ms-2 flex-fill",onClick:Ft(Zt().mark((function t(){return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.exportServers());case 1:case"end":return t.stop()}}),t)}))),children:[(0,rr.jsx)(Ps,{icon:Dr,fixedWidth:!0})," Export servers"]})]}),(0,rr.jsx)("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:(0,rr.jsxs)(Hu,{outline:!0,color:"primary",className:"flex-fill",tag:ze,to:"/server/create",children:[(0,rr.jsx)(Ps,{icon:ti,fixedWidth:!0})," Add a server"]})})]}),(0,rr.jsx)(Mv,{children:(0,rr.jsxs)("table",{className:"table table-hover responsive-table mb-0",children:[(0,rr.jsx)("thead",{className:"responsive-table__header",children:(0,rr.jsxs)("tr",{children:[d&&(0,rr.jsx)("th",{"aria-label":"Auto-connect",style:{width:"50px"}}),(0,rr.jsx)("th",{children:"Name"}),(0,rr.jsx)("th",{children:"Base URL"}),(0,rr.jsx)("th",{"aria-label":"Options"})]})}),(0,rr.jsxs)("tbody",{children:[!u.length&&(0,rr.jsx)("tr",{className:"text-center",children:(0,rr.jsx)("td",{colSpan:4,children:"No servers found."})}),u.map((function(e){return(0,rr.jsx)(i,{server:e,hasAutoConnect:d},e.id)}))]})]})}),h&&(0,rr.jsx)("div",{className:"mt-3",children:(0,rr.jsx)(Ib,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})}},H_=function(e){return function(t){var n=t.server,r=t.hasAutoConnect;return(0,rr.jsxs)("tr",{className:"responsive-table__row",children:[r&&(0,rr.jsx)("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:n.autoConnect&&(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(Ps,{icon:br,className:"text-primary",id:"autoConnectIcon"}),(0,rr.jsx)(tm,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),(0,rr.jsx)("th",{className:"responsive-table__cell","data-th":"Name",children:(0,rr.jsx)(ze,{to:"/server/".concat(n.id),children:n.name})}),(0,rr.jsx)("td",{className:"responsive-table__cell","data-th":"Base URL",children:n.url}),(0,rr.jsx)("td",{className:"responsive-table__cell text-end",children:(0,rr.jsx)(e,{server:n})})]})}},W_=function(e){return function(t){var n=t.server,r=t.setAutoConnect,i=Q(pm(),2),a=i[0],o=i[1],s=Q(pm(),4),l=s[0],u=s[2],c=s[3],d="/server/".concat(n.id),f=n.autoConnect,h=f?fr:qg;return(0,rr.jsxs)(Lb,{isOpen:a,toggle:o,children:[(0,rr.jsxs)(dc,{tag:ze,to:d,children:[(0,rr.jsx)(Ps,{icon:ei,fixedWidth:!0})," Connect"]}),(0,rr.jsxs)(dc,{tag:ze,to:"".concat(d,"/edit"),children:[(0,rr.jsx)(Ps,{icon:Xr,fixedWidth:!0})," Edit server"]}),(0,rr.jsxs)(dc,{onClick:function(){return r(n,!n.autoConnect)},children:[(0,rr.jsx)(Ps,{icon:h,fixedWidth:!0})," ",f?"Do not a":"A","uto-connect"]}),(0,rr.jsx)(dc,{divider:!0}),(0,rr.jsxs)(dc,{className:"dropdown-item--danger",onClick:u,children:[(0,rr.jsx)(Ps,{icon:Mr,fixedWidth:!0})," Remove server"]}),(0,rr.jsx)(e,{redirectHome:!1,server:n,isOpen:l,toggle:c})]})}},Z_=function(e){return"string"===typeof e.url&&"string"===typeof e.apiKey&&"string"===typeof e.name},Y_=function(e){return Array.isArray(e)&&e.every(Z_)},q_=Bt((function e(t,n){var r=this;Vt(this,e),this.csvJson=t,this.fileReaderFactory=n,this.importServersFromFile=function(){var e=Ft(Zt().mark((function e(t){var n;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new Error("No file provided");case 2:return n=r.fileReaderFactory(),e.abrupt("return",new Promise((function(e,i){n.addEventListener("loadend",(function(t){try{var n,a,o,s=null!==(n=null===(a=t.target)||void 0===a||null===(o=a.result)||void 0===o?void 0:o.toString())&&void 0!==n?n:"",l=r.csvJson.toObject(s);if(!Y_(l))throw new Error("Provided file does not have the right format.");e(l)}catch(u){i(u)}})),n.readAsText(t)})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),G_=Bt((function e(t,n,r){var i=this;Vt(this,e),this.storage=t,this.window=n,this.csvjson=r,this.exportServers=Ft(Zt().mark((function e(){var t,n,r;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=wm(null!==(t=i.storage.get("servers"))&&void 0!==t?t:{}).map(It);try{r=i.csvjson.toCSV(n,{headers:"key"}),Kv(i.window,r,"shlink-servers.csv")}catch(oR){console.error(oR)}case 2:case"end":return e.stop()}}),e)})))})),K_=function(e,t){e.serviceFactory("ManageServers",V_,"ServersExporter","ImportServersBtn","useStateFlagTimeout","ManageServersRow"),e.decorator("ManageServers",zv),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.serviceFactory("ManageServersRow",H_,"ManageServersRowDropdown"),e.serviceFactory("ManageServersRowDropdown",W_,"DeleteServerModal"),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.serviceFactory("CreateServer",r_,"ImportServersBtn","useStateFlagTimeout"),e.decorator("CreateServer",zv),e.decorator("CreateServer",t(["selectedServer","servers"],["createServer","resetSelectedServer"])),e.serviceFactory("EditServer",s_,"ServerError"),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",(function(){return i_})),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",(function(){return a_})),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.serviceFactory("DeleteServerButton",o_,"DeleteServerModal"),e.serviceFactory("ImportServersBtn",v_,"ServersImporter"),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.serviceFactory("ForServerVersion",(function(){return z_})),e.decorator("ForServerVersion",t(["selectedServer"])),e.serviceFactory("ServerError",F_,"DeleteServerButton"),e.decorator("ServerError",t(["servers","selectedServer"])),e.serviceFactory("Overview",B_,"ShortUrlsTable","CreateShortUrl","ForServerVersion"),e.decorator("Overview",t(["shortUrlsList","tagsList","selectedServer","mercureInfo","visitsOverview"],["listShortUrls","listTags","createNewVisits","loadMercureInfo","loadVisitsOverview"])),e.constant("csvjson",Xx()),e.constant("fileReaderFactory",(function(){return new FileReader})),e.service("ServersImporter",q_,"csvjson","fileReaderFactory"),e.service("ServersExporter",G_,"Storage","window","csvjson"),e.serviceFactory("selectServer",k_,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServer",(function(){return j_})),e.serviceFactory("createServers",(function(){return P_})),e.serviceFactory("deleteServer",(function(){return L_})),e.serviceFactory("editServer",(function(){return D_})),e.serviceFactory("setAutoConnect",(function(){return A_})),e.serviceFactory("fetchServers",I_,"axios"),e.serviceFactory("resetSelectedServer",(function(){return w_}))},Q_=(0,r.createContext)(null),X_=Q_.Provider;function $_(){var e=(0,r.useContext)(Q_);if(null==e)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function J_(e,t){return null==t?function(t,n){return(0,r.useRef)(e(t,n))}:function(n,i){var a=(0,r.useRef)(e(n,i)),o=(0,r.useRef)(n),s=a.current.instance;return(0,r.useEffect)((function(){o.current!==n&&(t(s,n,o.current),o.current=n)}),[s,n,i]),a}}function ew(e,t){var n=(0,r.useRef)(t);(0,r.useEffect)((function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t}),[e,t])}function tw(e,t){var n=(0,r.useRef)();(0,r.useEffect)((function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}}),[e,t])}function nw(e,t){var n,r=null!==(n=e.pane)&&void 0!==n?n:t.pane;return r?We(We({},e),{},{pane:r}):e}function rw(e){return function(t){var n=$_(),i=e(nw(t,n),n);return ew(n.map,t.attribution),tw(i.current,t.eventHandlers),function(e,t){(0,r.useEffect)((function(){var n;return(null!==(n=t.layerContainer)&&void 0!==n?n:t.map).addLayer(e.instance),function(){var n;null==(n=t.layerContainer)||n.removeLayer(e.instance),t.map.removeLayer(e.instance)}}),[t,e])}(i.current,n),i}}var iw=n(470),aw=n.n(iw),ow=["url"],sw=function(e,t){return function(e){function t(t,n){var i=e(t).current.instance;return(0,r.useImperativeHandle)(n,(function(){return i})),null}return(0,r.forwardRef)(t)}(rw(J_(e,t)))}((function(e,t){var n=e.url,r=Ht(e,ow);return{instance:new iw.TileLayer(n,nw(r,t)),context:t}}),(function(e,t,n){var r=t.opacity,i=t.zIndex;null!=r&&r!==n.opacity&&e.setOpacity(r),null!=i&&i!==n.zIndex&&e.setZIndex(i)})),lw=["children","className","id","placeholder","style","whenCreated"];function uw(){return uw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uw.apply(this,arguments)}function cw(e){var t=e.children,n=e.className,i=e.id,a=e.placeholder,o=e.style,s=e.whenCreated,l=Ht(e,lw),u=(0,r.useRef)(null),c=function(e,t){var n=Q((0,r.useState)(null),2),i=n[0],a=n[1];return(0,r.useEffect)((function(){if(null!==e.current&&null===i){var n=new iw.Map(e.current,t);null!=t.center&&null!=t.zoom?n.setView(t.center,t.zoom):null!=t.bounds&&n.fitBounds(t.bounds,t.boundsOptions),null!=t.whenReady&&n.whenReady(t.whenReady),a(n)}}),[e,i,t]),i}(u,l),d=(0,r.useRef)(!1);(0,r.useEffect)((function(){null!=c&&!1===d.current&&null!=s&&(d.current=!0,s(c))}),[c,s]),(0,r.useEffect)((function(){return function(){null==c||c.remove()}}),[c]);var f=Q((0,r.useState)({className:n,id:i,style:o}),1)[0],h=(0,r.useMemo)((function(){return c?{__version:1,map:c}:null}),[c]),p=h?r.createElement(X_,{value:h},t):null!==a&&void 0!==a?a:null;return r.createElement("div",uw({},f,{ref:u}),p)}var dw=["position"],fw=function(e,t){return function(e){function t(t,n){var i=e(t).current,a=i.instance,o=i.context;return(0,r.useImperativeHandle)(n,(function(){return a})),null==t.children?null:r.createElement(X_,{value:o},t.children)}return(0,r.forwardRef)(t)}(rw(J_(e,t)))}((function(e,t){var n=e.position,r=Ht(e,dw),i=new iw.Marker(n,r);return{instance:i,context:We(We({},t),{},{overlayContainer:i})}}),(function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())})),hw=function(e,n){var i=function(e,t){return function(n,r){var i=$_(),a=e(nw(n,i),i);return ew(i.map,n.attribution),tw(a.current,n.eventHandlers),t(a.current,i,n,r),a}}(J_(e),n);return function(e){function n(n,i){var a=Q((0,r.useState)(!1),2),o=a[0],s=a[1],l=e(n,s).current.instance;(0,r.useImperativeHandle)(i,(function(){return l})),(0,r.useEffect)((function(){o&&l.update()}),[l,o,n.children]);var u=l._contentNode;return u?(0,t.createPortal)(n.children,u):null}return(0,r.forwardRef)(n)}(i)}((function(e,t){return{instance:new iw.Popup(e,t.overlayContainer),context:t}}),(function(e,t,n,i){var a=n.onClose,o=n.onOpen,s=n.position;(0,r.useEffect)((function(){var n=e.instance;function r(e){e.popup===n&&(n.update(),i(!0),null==o||o())}function l(e){e.popup===n&&(i(!1),null==a||a())}return t.map.on({popupopen:r,popupclose:l}),null==t.overlayContainer?(null!=s&&n.setLatLng(s),n.openOn(t.map)):t.overlayContainer.bindPopup(n),function(){var e;t.map.off({popupopen:r,popupclose:l}),null==(e=t.overlayContainer)||e.unbindPopup(),t.map.removeLayer(n)}}),[e,t,i,a,o,s])})),pw=function(){return(0,rr.jsx)(sw,{attribution:'© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"})},mw=function(e){return 0===e.length?{}:e.length>1?{bounds:e.map(Nt("latLong"))}:{zoom:10,center:Q(e,1)[0].latLong}},vw=function(e){var t=e.toggle,n=e.isOpen,r=e.title,i=e.locations,a=void 0===i?[]:i;return(0,rr.jsx)(If,{toggle:t,isOpen:n,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:(0,rr.jsxs)(Zf,{className:"map-modal__modal-body",children:[(0,rr.jsxs)("h3",{className:"map-modal__modal-title",children:[r,(0,rr.jsx)("button",{type:"button",className:"btn-close float-end",onClick:t})]}),(0,rr.jsxs)(cw,We(We({},mw(a)),{},{children:[(0,rr.jsx)(pw,{}),a.map((function(e,t){var n=e.cityName,r=e.latLong,i=e.count;return(0,rr.jsx)(fw,{position:r,children:(0,rr.jsxs)(hw,{children:[(0,rr.jsx)("b",{children:i})," visit",i>1?"s":""," from ",(0,rr.jsx)("b",{children:n})]})},t)}))]}))]})})},gw=function(e){var t=e.visits,n=e.goBack,r=e.shortUrl,i=e.children,a=e.title;return(0,rr.jsx)("header",{children:(0,rr.jsxs)($c,{body:!0,children:[(0,rr.jsxs)("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[(0,rr.jsx)(Hu,{color:"link",size:"lg",className:"p-0 me-3",onClick:n,children:(0,rr.jsx)(Ps,{icon:sr})}),(0,rr.jsx)("span",{className:"text-center d-none d-sm-block",children:(0,rr.jsx)("small",{children:a})}),(0,rr.jsxs)("span",{className:"badge badge-main ms-3",children:["Visits:"," ",(0,rr.jsx)(jb,{visitsCount:t.length,shortUrl:r})]})]}),(0,rr.jsx)("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:(0,rr.jsx)("small",{children:a})}),i&&(0,rr.jsx)("div",{className:"mt-md-2",children:i})]})})},yw=function(e){var t,n,r=e.shortUrlDetail,i=e.shortUrlVisits,a=e.goBack,o=r.shortUrl,s=r.loading,l=i.visits,u=null!==(t=null===o||void 0===o?void 0:o.shortUrl)&&void 0!==t?t:"",c=null!==(n=null===o||void 0===o?void 0:o.longUrl)&&void 0!==n?n:"",d=null===o||void 0===o?void 0:o.title,f=(0,rr.jsxs)(rr.Fragment,{children:["Visits for ",(0,rr.jsx)(Cm,{href:u})]});return(0,rr.jsxs)(gw,{title:f,goBack:a,visits:l,shortUrl:o,children:[(0,rr.jsx)("hr",{}),(0,rr.jsxs)("div",{children:["Created: ",o?(0,rr.jsxs)("span",{children:[(0,rr.jsx)("b",{id:"created",className:"short-url-visits-header__created-at",children:(0,rr.jsx)(Tb,{date:o.dateCreated,relative:!0})}),(0,rr.jsx)(tm,{placement:"bottom",target:"created",children:(0,rr.jsx)(Tb,{date:o.dateCreated})})]}):(0,rr.jsx)("small",{children:"Loading..."})]}),(0,rr.jsxs)("div",{children:["".concat(d?"Title":"Long URL",": "),s&&(0,rr.jsx)("small",{children:"Loading..."}),!s&&(0,rr.jsx)(Cm,{href:c,children:null!==d&&void 0!==d?d:c})]})]})},bw=Xm((function(e,t,n){return In(t,n[e])})),xw=["children"],_w=function(e){var t=e.children,n=Ht(e,xw);return(0,rr.jsx)(Du,We(We({className:"nav-pills__nav-link",tag:Fe},n),{},{children:t}))},ww=function(e){var t=e.children,n=e.fill,i=void 0!==n&&n,a=e.className,o=void 0===a?"":a;return(0,rr.jsx)($c,{className:"nav-pills__nav p-0 overflow-hidden ".concat(o),body:!0,children:(0,rr.jsx)(Su,{pills:!0,fill:i,children:r.Children.map(t,(function(e){if(!(0,r.isValidElement)(e)||e.type!==_w)throw new Error("Only NavPillItem children are allowed inside NavPills.");return e}))})})};function kw(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=zs(e)););return e}function Cw(){return Cw="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=kw(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Cw.apply(this,arguments)}function Sw(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=G(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}var Ew="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function Mw(e,t,n){var r=n||function(e){return Array.prototype.slice.call(e)},i=!1,a=[];return function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];a=r(o),i||(i=!0,Ew.call(window,(function(){i=!1,e.apply(t,a)})))}}var Tw=function(e){return"start"===e?"left":"end"===e?"right":"center"},Ow=function(e,t,n){return"start"===e?t:"end"===e?n:(t+n)/2};function Nw(){}var Pw=function(){var e=0;return function(){return e++}}();function jw(e){return null===e||"undefined"===typeof e}function Dw(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function Lw(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}var Aw=function(e){return("number"===typeof e||e instanceof Number)&&isFinite(+e)};function Rw(e,t){return Aw(e)?e:t}function Iw(e,t){return"undefined"===typeof e?t:e}var zw=function(e,t){return"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e};function Fw(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function Uw(e,t,n,r){var i,a,o;if(Dw(e))if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<a;i++)t.call(n,e[i],i);else if(Lw(e))for(a=(o=Object.keys(e)).length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function Bw(e,t){var n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function Vw(e){if(Dw(e))return e.map(Vw);if(Lw(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=Vw(e[n[i]]);return t}return e}function Hw(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Ww(e,t,n,r){if(Hw(e)){var i=t[e],a=n[e];Lw(i)&&Lw(a)?Zw(i,a,r):t[e]=Vw(a)}}function Zw(e,t,n){var r=Dw(t)?t:[t],i=r.length;if(!Lw(e))return e;for(var a=(n=n||{}).merger||Ww,o=0;o<i;++o)if(Lw(t=r[o]))for(var s=Object.keys(t),l=0,u=s.length;l<u;++l)a(s[l],e,t,n);return e}function Yw(e,t){return Zw(e,t,{merger:qw})}function qw(e,t,n){if(Hw(e)){var r=t[e],i=n[e];Lw(r)&&Lw(i)?Yw(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Vw(i))}}function Gw(e,t){var n=e.indexOf(".",t);return-1===n?e.length:n}function Kw(e,t){if(""===t)return e;for(var n=0,r=Gw(t,n);e&&r>n;)e=e[t.substr(n,r-n)],r=Gw(t,n=r+1);return e}function Qw(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Xw=function(e){return"undefined"!==typeof e},$w=function(e){return"function"===typeof e},Jw=function(e,t){if(e.size!==t.size)return!1;var n,r=Sw(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!t.has(i))return!1}}catch(a){r.e(a)}finally{r.f()}return!0};var ek=Math.PI,tk=2*ek,nk=tk+ek,rk=Number.POSITIVE_INFINITY,ik=ek/180,ak=ek/2,ok=ek/4,sk=2*ek/3,lk=Math.log10,uk=Math.sign;function ck(e){var t=Math.round(e);e=fk(e,t,e/1e3)?t:e;var n=Math.pow(10,Math.floor(lk(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function dk(e){return!isNaN(parseFloat(e))&&isFinite(e)}function fk(e,t,n){return Math.abs(e-t)<n}function hk(e,t,n){var r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function pk(e){return e*(ek/180)}function mk(e){return e*(180/ek)}function vk(e){if(Aw(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}}function gk(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*ek&&(a+=tk),{angle:a,distance:i}}function yk(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function bk(e,t){return(e-t+nk)%tk-ek}function xk(e){return(e%tk+tk)%tk}function _k(e,t,n,r){var i=xk(e),a=xk(t),o=xk(n),s=xk(a-i),l=xk(o-i),u=xk(i-a),c=xk(i-o);return i===a||i===o||r&&a===o||s>l&&u<c}function wk(e,t,n){return Math.max(t,Math.min(n,e))}function kk(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}var Ck=function(e){return 0===e||1===e},Sk=function(e,t,n){return-Math.pow(2,10*(e-=1))*Math.sin((e-t)*tk/n)},Ek=function(e,t,n){return Math.pow(2,-10*e)*Math.sin((e-t)*tk/n)+1},Mk={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*ak)},easeOutSine:function(e){return Math.sin(e*ak)},easeInOutSine:function(e){return-.5*(Math.cos(ek*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return Ck(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1)))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){return Ck(e)?e:Sk(e,.075,.3)},easeOutElastic:function(e){return Ck(e)?e:Ek(e,.075,.3)},easeInOutElastic:function(e){var t=.1125;return Ck(e)?e:e<.5?.5*Sk(2*e,t,.45):.5+.5*Ek(2*e-1,t,.45)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-Mk.easeOutBounce(1-e)},easeOutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*Mk.easeInBounce(2*e):.5*Mk.easeOutBounce(2*e-1)+.5}},Tk={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},Ok="0123456789ABCDEF",Nk=function(e){return Ok[15&e]},Pk=function(e){return Ok[(240&e)>>4]+Ok[15&e]},jk=function(e){return(240&e)>>4===(15&e)};function Dk(e){var t=function(e){return jk(e.r)&&jk(e.g)&&jk(e.b)&&jk(e.a)}(e)?Nk:Pk;return e?"#"+t(e.r)+t(e.g)+t(e.b)+(e.a<255?t(e.a):""):e}function Lk(e){return e+.5|0}var Ak=function(e,t,n){return Math.max(Math.min(e,n),t)};function Rk(e){return Ak(Lk(2.55*e),0,255)}function Ik(e){return Ak(Lk(255*e),0,255)}function zk(e){return Ak(Lk(e/2.55)/100,0,1)}function Fk(e){return Ak(Lk(100*e),0,100)}var Uk=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var Bk=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Vk(e,t,n){var r=t*Math.min(n,1-n),i=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function Hk(e,t,n){var r=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function Wk(e,t,n){var r,i=Vk(e,1,.5);for(t+n>1&&(t*=r=1/(t+n),n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function Zk(e){var t,n,r,i=e.r/255,a=e.g/255,o=e.b/255,s=Math.max(i,a,o),l=Math.min(i,a,o),u=(s+l)/2;return s!==l&&(r=s-l,n=u>.5?r/(2-s-l):r/(s+l),t=60*(t=s===i?(a-o)/r+(a<o?6:0):s===a?(o-i)/r+2:(i-a)/r+4)+.5),[0|t,n||0,u]}function Yk(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Ik)}function qk(e,t,n){return Yk(Vk,e,t,n)}function Gk(e){return(e%360+360)%360}function Kk(e){var t,n=Bk.exec(e),r=255;if(n){n[5]!==t&&(r=n[6]?Rk(+n[5]):Ik(+n[5]));var i=Gk(+n[2]),a=+n[3]/100,o=+n[4]/100;return t="hwb"===n[1]?function(e,t,n){return Yk(Wk,e,t,n)}(i,a,o):"hsv"===n[1]?function(e,t,n){return Yk(Hk,e,t,n)}(i,a,o):qk(i,a,o),{r:t[0],g:t[1],b:t[2],a:r}}}var Qk,Xk={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"},$k={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 Jk(e){Qk||(Qk=function(){var e,t,n,r,i,a={},o=Object.keys($k),s=Object.keys(Xk);for(e=0;e<o.length;e++){for(r=i=o[e],t=0;t<s.length;t++)n=s[t],i=i.replace(n,Xk[n]);n=parseInt($k[r],16),a[i]=[n>>16&255,n>>8&255,255&n]}return a}(),Qk.transparent=[0,0,0,0]);var t=Qk[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}function eC(e,t,n){if(e){var r=Zk(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=qk(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function tC(e,t){return e?Object.assign(t||{},e):e}function nC(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Ik(e[3]))):(t=tC(e,{r:0,g:0,b:0,a:1})).a=Ik(t.a),t}function rC(e){return"r"===e.charAt(0)?function(e){var t,n,r,i=Uk.exec(e),a=255;if(i){if(i[7]!==t){var o=+i[7];a=255&(i[8]?Rk(o):255*o)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?Rk(t):t),g:n=255&(i[4]?Rk(n):n),b:r=255&(i[6]?Rk(r):r),a:a}}}(e):Kk(e)}var iC=function(){function e(t){if(Vt(this,e),t instanceof e)return t;var n,r=typeof t;"object"===r?n=nC(t):"string"===r&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*Tk[e[1]],g:255&17*Tk[e[2]],b:255&17*Tk[e[3]],a:5===n?17*Tk[e[4]]:255}:7!==n&&9!==n||(t={r:Tk[e[1]]<<4|Tk[e[2]],g:Tk[e[3]]<<4|Tk[e[4]],b:Tk[e[5]]<<4|Tk[e[6]],a:9===n?Tk[e[7]]<<4|Tk[e[8]]:255})),t}(t)||Jk(t)||rC(t)),this._rgb=n,this._valid=!!n}return Bt(e,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var e=tC(this._rgb);return e&&(e.a=zk(e.a)),e},set:function(e){this._rgb=nC(e)}},{key:"rgbString",value:function(){return this._valid?function(e){return e&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(zk(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")"))}(this._rgb):this._rgb}},{key:"hexString",value:function(){return this._valid?Dk(this._rgb):this._rgb}},{key:"hslString",value:function(){return this._valid?function(e){if(e){var t=Zk(e),n=t[0],r=Fk(t[1]),i=Fk(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(zk(e.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)")}}(this._rgb):this._rgb}},{key:"mix",value:function(e,t){var n=this;if(e){var r,i=n.rgb,a=e.rgb,o=t===r?.5:t,s=2*o-1,l=i.a-a.a,u=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;r=1-u,i.r=255&u*i.r+r*a.r+.5,i.g=255&u*i.g+r*a.g+.5,i.b=255&u*i.b+r*a.b+.5,i.a=o*i.a+(1-o)*a.a,n.rgb=i}return n}},{key:"clone",value:function(){return new e(this.rgb)}},{key:"alpha",value:function(e){return this._rgb.a=Ik(e),this}},{key:"clearer",value:function(e){return this._rgb.a*=1-e,this}},{key:"greyscale",value:function(){var e=this._rgb,t=Lk(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}},{key:"opaquer",value:function(e){return this._rgb.a*=1+e,this}},{key:"negate",value:function(){var e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}},{key:"lighten",value:function(e){return eC(this._rgb,2,e),this}},{key:"darken",value:function(e){return eC(this._rgb,2,-e),this}},{key:"saturate",value:function(e){return eC(this._rgb,1,e),this}},{key:"desaturate",value:function(e){return eC(this._rgb,1,-e),this}},{key:"rotate",value:function(e){return function(e,t){var n=Zk(e);n[0]=Gk(n[0]+t),n=qk(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}]),e}();function aC(e){return new iC(e)}var oC=function(e){return e instanceof CanvasGradient||e instanceof CanvasPattern};function sC(e){return oC(e)?e:aC(e)}function lC(e){return oC(e)?e:aC(e).saturate(.5).darken(.1).hexString()}var uC=Object.create(null),cC=Object.create(null);function dC(e,t){if(!t)return e;for(var n=t.split("."),r=0,i=n.length;r<i;++r){var a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function fC(e,t,n){return"string"===typeof t?Zw(dC(e,t),n):Zw(dC(e,""),t)}var hC=function(){function e(t){Vt(this,e),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=function(e){return e.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=function(e,t){return lC(t.backgroundColor)},this.hoverBorderColor=function(e,t){return lC(t.borderColor)},this.hoverColor=function(e,t){return lC(t.color)},this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},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(t)}return Bt(e,[{key:"set",value:function(e,t){return fC(this,e,t)}},{key:"get",value:function(e){return dC(this,e)}},{key:"describe",value:function(e,t){return fC(cC,e,t)}},{key:"override",value:function(e,t){return fC(uC,e,t)}},{key:"route",value:function(e,t,n,r){var i,a=dC(this,e),o=dC(this,n),s="_"+t;Object.defineProperties(a,(Ve(i={},s,{value:a[t],writable:!0}),Ve(i,t,{enumerable:!0,get:function(){var e=this[s],t=o[r];return Lw(e)?Object.assign({},t,e):Iw(e,t)},set:function(e){this[s]=e}}),i))}}]),e}(),pC=new hC({_scriptable:function(e){return!e.startsWith("on")},_indexable:function(e){return"events"!==e},hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function mC(e,t,n,r,i){var a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function vC(e,t,n,r){var i=(r=r||{}).data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;var o,s,l,u,c,d=0,f=n.length;for(o=0;o<f;o++)if(void 0!==(u=n[o])&&null!==u&&!0!==Dw(u))d=mC(e,i,a,d,u);else if(Dw(u))for(s=0,l=u.length;s<l;s++)void 0===(c=u[s])||null===c||Dw(c)||(d=mC(e,i,a,d,c));e.restore();var h=a.length/2;if(h>n.length){for(o=0;o<h;o++)delete i[a[o]];a.splice(0,h)}return d}function gC(e,t,n){var r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function yC(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function bC(e,t,n,r){var i,a,o,s,l,u=t.pointStyle,c=t.rotation,d=t.radius,f=(c||0)*ik;if(u&&"object"===typeof u&&("[object HTMLImageElement]"===(i=u.toString())||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,r),e.rotate(f),e.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),void e.restore();if(!(isNaN(d)||d<=0)){switch(e.beginPath(),u){default:e.arc(n,r,d,0,tk),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(f)*d,r-Math.cos(f)*d),f+=sk,e.lineTo(n+Math.sin(f)*d,r-Math.cos(f)*d),f+=sk,e.lineTo(n+Math.sin(f)*d,r-Math.cos(f)*d),e.closePath();break;case"rectRounded":s=d-(l=.516*d),a=Math.cos(f+ok)*s,o=Math.sin(f+ok)*s,e.arc(n-a,r-o,l,f-ek,f-ak),e.arc(n+o,r-a,l,f-ak,f),e.arc(n+a,r+o,l,f,f+ak),e.arc(n-o,r+a,l,f+ak,f+ek),e.closePath();break;case"rect":if(!c){s=Math.SQRT1_2*d,e.rect(n-s,r-s,2*s,2*s);break}f+=ok;case"rectRot":a=Math.cos(f)*d,o=Math.sin(f)*d,e.moveTo(n-a,r-o),e.lineTo(n+o,r-a),e.lineTo(n+a,r+o),e.lineTo(n-o,r+a),e.closePath();break;case"crossRot":f+=ok;case"cross":a=Math.cos(f)*d,o=Math.sin(f)*d,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o),e.moveTo(n+o,r-a),e.lineTo(n-o,r+a);break;case"star":a=Math.cos(f)*d,o=Math.sin(f)*d,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o),e.moveTo(n+o,r-a),e.lineTo(n-o,r+a),f+=ok,a=Math.cos(f)*d,o=Math.sin(f)*d,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o),e.moveTo(n+o,r-a),e.lineTo(n-o,r+a);break;case"line":a=Math.cos(f)*d,o=Math.sin(f)*d,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(f)*d,r+Math.sin(f)*d)}e.fill(),t.borderWidth>0&&e.stroke()}}function xC(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function _C(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function wC(e){e.restore()}function kC(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){var a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else"after"===i!==!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function CC(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function SC(e,t,n,r,i){var a,o,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=Dw(t)?t:[t],u=s.strokeWidth>0&&""!==s.strokeColor;for(e.save(),e.font=i.string,EC(e,s),a=0;a<l.length;++a)o=l[a],u&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),jw(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(o,n,r,s.maxWidth)),e.fillText(o,n,r,s.maxWidth),MC(e,n,r,o,s),r+=i.lineHeight;e.restore()}function EC(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),jw(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function MC(e,t,n,r,i){if(i.strikethrough||i.underline){var a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,u=n+a.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,c),e.lineTo(s,c),e.stroke()}}function TC(e,t){var n=t.x,r=t.y,i=t.w,a=t.h,o=t.radius;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,-ak,ek,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,ek,ak,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,ak,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-ak,!0),e.lineTo(n+o.topLeft,r)}var OC=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),NC=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function PC(e,t){var n=(""+e).match(OC);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}var jC=function(e){return+e||0};function DC(e,t){var n,r={},i=Lw(t),a=i?Object.keys(t):t,o=Lw(e)?i?function(n){return Iw(e[n],e[t[n]])}:function(t){return e[t]}:function(){return e},s=Sw(a);try{for(s.s();!(n=s.n()).done;){var l=n.value;r[l]=jC(o(l))}}catch(u){s.e(u)}finally{s.f()}return r}function LC(e){return DC(e,{top:"y",right:"x",bottom:"y",left:"x"})}function AC(e){return DC(e,["topLeft","topRight","bottomLeft","bottomRight"])}function RC(e){var t=LC(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function IC(e,t){e=e||{},t=t||pC.font;var n=Iw(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));var r=Iw(e.style,t.style);r&&!(""+r).match(NC)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");var i={family:Iw(e.family,t.family),lineHeight:PC(Iw(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Iw(e.weight,t.weight),string:""};return i.string=function(e){return!e||jw(e.size)||jw(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i}function zC(e,t,n,r){var i,a,o,s=!0;for(i=0,a=e.length;i<a;++i)if(void 0!==(o=e[i])&&(void 0!==t&&"function"===typeof o&&(o=o(t),s=!1),void 0!==n&&Dw(o)&&(o=o[n%o.length],s=!1),void 0!==o))return r&&!s&&(r.cacheable=!1),o}function FC(e,t){return Object.assign(Object.create(e),t)}function UC(e,t,n){n=n||function(n){return e[n]<t};for(var r,i=e.length-1,a=0;i-a>1;)n(r=a+i>>1)?a=r:i=r;return{lo:a,hi:i}}var BC=function(e,t,n){return UC(e,n,(function(r){return e[r][t]<n}))},VC=function(e,t,n){return UC(e,n,(function(r){return e[r][t]>=n}))};var HC=["push","pop","shift","splice","unshift"];function WC(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(HC.forEach((function(t){delete e[t]})),delete e._chartjs)}}function ZC(e){var t,n,r=new Set;for(t=0,n=e.length;t<n;++t)r.add(e[t]);return r.size===n?e:Array.from(r)}function YC(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return e[0]};Xw(i)||(i=iS("_fallback",e));var o=(Ve(t={},Symbol.toStringTag,"Object"),Ve(t,"_cacheable",!0),Ve(t,"_scopes",e),Ve(t,"_rootScopes",r),Ve(t,"_fallback",i),Ve(t,"_getTarget",a),Ve(t,"override",(function(t){return YC([t].concat(Ls(e)),n,r,i)})),t);return new Proxy(o,{deleteProperty:function(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get:function(t,r){return XC(t,r,(function(){return rS(r,n,e,t)}))},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e[0])},has:function(e,t){return aS(e).includes(t)},ownKeys:function(e){return aS(e)},set:function(e,t,n){var r=e._storage||(e._storage=a());return e[t]=r[t]=n,delete e._keys,!0}})}function qC(e,t,n,r){var i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:GC(e,r),setContext:function(t){return qC(e,t,n,r)},override:function(i){return qC(e.override(i),t,n,r)}};return new Proxy(i,{deleteProperty:function(t,n){return delete t[n],delete e[n],!0},get:function(e,t,n){return XC(e,t,(function(){return function(e,t,n){var r=e._proxy,i=e._context,a=e._subProxy,o=e._descriptors,s=r[t];$w(s)&&o.isScriptable(t)&&(s=function(e,t,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._stack;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e),t=t(a,o||r),s.delete(e),QC(e,t)&&(t=tS(i._scopes,i,e,t));return t}(t,s,e,n));Dw(s)&&s.length&&(s=function(e,t,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._descriptors;if(Xw(a.index)&&r(e))t=t[a.index%t.length];else if(Lw(t[0])){var l=t,u=i._scopes.filter((function(e){return e!==l}));t=[];var c,d=Sw(l);try{for(d.s();!(c=d.n()).done;){var f=tS(u,i,e,c.value);t.push(qC(f,a,o&&o[e],s))}}catch(h){d.e(h)}finally{d.f()}}return t}(t,s,e,o.isIndexable));QC(t,s)&&(s=qC(s,i,a&&a[t],o));return s}(e,t,n)}))},getOwnPropertyDescriptor:function(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e)},has:function(t,n){return Reflect.has(e,n)},ownKeys:function(){return Reflect.ownKeys(e)},set:function(t,n,r){return e[n]=r,delete t[n],!0}})}function GC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},n=e._scriptable,r=void 0===n?t.scriptable:n,i=e._indexable,a=void 0===i?t.indexable:i,o=e._allKeys,s=void 0===o?t.allKeys:o;return{allKeys:s,scriptable:r,indexable:a,isScriptable:$w(r)?r:function(){return r},isIndexable:$w(a)?a:function(){return a}}}var KC=function(e,t){return e?e+Qw(t):t},QC=function(e,t){return Lw(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object)};function XC(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];var r=n();return e[t]=r,r}function $C(e,t,n){return $w(e)?e(t,n):e}var JC=function(e,t){return!0===e?t:"string"===typeof e?Kw(t,e):void 0};function eS(e,t,n,r,i){var a,o=Sw(t);try{for(o.s();!(a=o.n()).done;){var s=a.value,l=JC(n,s);if(l){e.add(l);var u=$C(l._fallback,n,i);if(Xw(u)&&u!==n&&u!==r)return u}else if(!1===l&&Xw(r)&&n!==r)return null}}catch(c){o.e(c)}finally{o.f()}return!1}function tS(e,t,n,r){var i=t._rootScopes,a=$C(t._fallback,n,r),o=[].concat(Ls(e),Ls(i)),s=new Set;s.add(r);var l=nS(s,o,n,a||n,r);return null!==l&&((!Xw(a)||a===n||null!==(l=nS(s,o,a,l,r)))&&YC(Array.from(s),[""],i,a,(function(){return function(e,t,n){var r=e._getTarget();t in r||(r[t]={});var i=r[t];if(Dw(i)&&Lw(n))return n;return i}(t,n,r)})))}function nS(e,t,n,r,i){for(;n;)n=eS(e,t,n,r,i);return n}function rS(e,t,n,r){var i,a,o=Sw(t);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(i=iS(KC(s,e),n),Xw(i))return QC(e,i)?tS(n,r,e,i):i}}catch(l){o.e(l)}finally{o.f()}}function iS(e,t){var n,r=Sw(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i){var a=i[e];if(Xw(a))return a}}}catch(o){r.e(o)}finally{r.f()}}function aS(e){var t=e._keys;return t||(t=e._keys=function(e){var t,n=new Set,r=Sw(e);try{for(r.s();!(t=r.n()).done;){var i,a=t.value,o=Sw(Object.keys(a).filter((function(e){return!e.startsWith("_")})));try{for(o.s();!(i=o.n()).done;){var s=i.value;n.add(s)}}catch(l){o.e(l)}finally{o.f()}}}catch(l){r.e(l)}finally{r.f()}return Array.from(n)}(e._scopes)),t}var oS=Number.EPSILON||1e-14,sS=function(e,t){return t<e.length&&!e[t].skip&&e[t]},lS=function(e){return"x"===e?"y":"x"};function uS(e,t,n,r){var i=e.skip?t:e,a=t,o=n.skip?t:n,s=yk(a,i),l=yk(o,a),u=s/(s+l),c=l/(s+l),d=r*(u=isNaN(u)?0:u),f=r*(c=isNaN(c)?0:c);return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}}function cS(e,t,n){for(var r,i,a,o,s,l=e.length,u=sS(e,0),c=0;c<l-1;++c)s=u,u=sS(e,c+1),s&&u&&(fk(t[c],0,oS)?n[c]=n[c+1]=0:(r=n[c]/t[c],i=n[c+1]/t[c],(o=Math.pow(r,2)+Math.pow(i,2))<=9||(a=3/Math.sqrt(o),n[c]=r*a*t[c],n[c+1]=i*a*t[c])))}function dS(e,t){for(var n,r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x",o=lS(a),s=e.length,l=sS(e,0),u=0;u<s;++u)if(r=i,i=l,l=sS(e,u+1),i){var c=i[a],d=i[o];r&&(n=(c-r[a])/3,i["cp1".concat(a)]=c-n,i["cp1".concat(o)]=d-n*t[u]),l&&(n=(l[a]-c)/3,i["cp2".concat(a)]=c+n,i["cp2".concat(o)]=d+n*t[u])}}function fS(e,t,n){return Math.max(Math.min(e,n),t)}function hS(e,t,n,r,i){var a,o,s,l;if(t.spanGaps&&(e=e.filter((function(e){return!e.skip}))),"monotone"===t.cubicInterpolationMode)!function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",a=lS(i),o=e.length,s=Array(o).fill(0),l=Array(o),u=sS(e,0);for(t=0;t<o;++t)if(n=r,r=u,u=sS(e,t+1),r){if(u){var c=u[i]-r[i];s[t]=0!==c?(u[a]-r[a])/c:0}l[t]=n?u?uk(s[t-1])!==uk(s[t])?0:(s[t-1]+s[t])/2:s[t-1]:s[t]}cS(e,s,l),dS(e,l,i)}(e,i);else{var u=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)l=uS(u,s=e[a],e[Math.min(a+1,o-(r?0:1))%o],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,u=s}t.capBezierPoints&&function(e,t){var n,r,i,a,o,s=xC(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&xC(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=fS(i.cp1x,t.left,t.right),i.cp1y=fS(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=fS(i.cp2x,t.left,t.right),i.cp2y=fS(i.cp2y,t.top,t.bottom)))}(e,n)}function pS(){return"undefined"!==typeof window&&"undefined"!==typeof document}function mS(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function vS(e,t,n){var r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}var gS=function(e){return window.getComputedStyle(e,null)};var yS=["top","right","bottom","left"];function bS(e,t,n){var r={};n=n?"-"+n:"";for(var i=0;i<4;i++){var a=yS[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function xS(e,t){var n=t.canvas,r=t.currentDevicePixelRatio,i=gS(n),a="border-box"===i.boxSizing,o=bS(i,"padding"),s=bS(i,"border","width"),l=function(e,t){var n,r,i=e.native||e,a=i.touches,o=a&&a.length?a[0]:i,s=o.offsetX,l=o.offsetY,u=!1;if(function(e,t,n){return(e>0||t>0)&&(!n||!n.shadowRoot)}(s,l,i.target))n=s,r=l;else{var c=t.getBoundingClientRect();n=o.clientX-c.left,r=o.clientY-c.top,u=!0}return{x:n,y:r,box:u}}(e,n),u=l.x,c=l.y,d=l.box,f=o.left+(d&&s.left),h=o.top+(d&&s.top),p=t.width,m=t.height;return a&&(p-=o.width+s.width,m-=o.height+s.height),{x:Math.round((u-f)/p*n.width/r),y:Math.round((c-h)/m*n.height/r)}}var _S=function(e){return Math.round(10*e)/10};function wS(e,t,n,r){var i=gS(e),a=bS(i,"margin"),o=vS(i.maxWidth,e,"clientWidth")||rk,s=vS(i.maxHeight,e,"clientHeight")||rk,l=function(e,t,n){var r,i;if(void 0===t||void 0===n){var a=mS(e);if(a){var o=a.getBoundingClientRect(),s=gS(a),l=bS(s,"border","width"),u=bS(s,"padding");t=o.width-u.width-l.width,n=o.height-u.height-l.height,r=vS(s.maxWidth,a,"clientWidth"),i=vS(s.maxHeight,a,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||rk,maxHeight:i||rk}}(e,t,n),u=l.width,c=l.height;if("content-box"===i.boxSizing){var d=bS(i,"border","width"),f=bS(i,"padding");u-=f.width+d.width,c-=f.height+d.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?Math.floor(u/r):c-a.height),u=_S(Math.min(u,o,l.maxWidth)),c=_S(Math.min(c,s,l.maxHeight)),u&&!c&&(c=_S(u/2)),{width:u,height:c}}function kS(e,t,n){var r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=i/r,e.width=a/r;var o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height="".concat(e.height,"px"),o.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a)&&(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0)}var CS=function(){var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(oR){}return e}();function SS(e,t){var n=function(e,t){return gS(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function ES(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function MS(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function TS(e,t,n,r){var i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=ES(e,i,n),s=ES(i,a,n),l=ES(a,t,n),u=ES(o,s,n),c=ES(s,l,n);return ES(u,c,n)}var OS=new Map;function NS(e,t,n){return function(e,t){t=t||{};var n=e+JSON.stringify(t),r=OS.get(n);return r||(r=new Intl.NumberFormat(e,t),OS.set(n,r)),r}(t,n).format(e)}function PS(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}}function jS(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function DS(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function LS(e){return"angle"===e?{between:_k,compare:bk,normalize:xk}:{between:kk,compare:function(e,t){return e-t},normalize:function(e){return e}}}function AS(e){var t=e.start,n=e.end,r=e.count;return{start:t%r,end:n%r,loop:e.loop&&(n-t+1)%r===0,style:e.style}}function RS(e,t,n){if(!n)return[e];for(var r,i,a,o=n.property,s=n.start,l=n.end,u=t.length,c=LS(o),d=c.compare,f=c.between,h=c.normalize,p=function(e,t,n){var r,i,a=n.property,o=n.start,s=n.end,l=LS(a),u=l.between,c=l.normalize,d=t.length,f=e.start,h=e.end,p=e.loop;if(p){for(f+=d,h+=d,r=0,i=d;r<i&&u(c(t[f%d][a]),o,s);++r)f--,h--;f%=d,h%=d}return h<f&&(h+=d),{start:f,end:h,loop:p,style:e.style}}(e,t,n),m=p.start,v=p.end,g=p.loop,y=p.style,b=[],x=!1,_=null,w=function(){return x||f(s,a,r)&&0!==d(s,a)},k=function(){return!x||0===d(l,r)||f(l,a,r)},C=m,S=m;C<=v;++C)(i=t[C%u]).skip||(r=h(i[o]))!==a&&(x=f(r,s,l),null===_&&w()&&(_=0===d(r,s)?C:S),null!==_&&k()&&(b.push(AS({start:_,end:C,loop:g,count:u,style:y})),_=null),S=C,a=r);return null!==_&&b.push(AS({start:_,end:v,loop:g,count:u,style:y})),b}function IS(e,t){for(var n=[],r=e.segments,i=0;i<r.length;i++){var a=RS(r[i],e.points,t);a.length&&n.push.apply(n,Ls(a))}return n}function zS(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){var i=e._chart.getContext(),a=FS(e.options),o=e._datasetIndex,s=e.options.spanGaps,l=n.length,u=[],c=a,d=t[0].start,f=d;function h(e,t,r,i){var a=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=a;for(;n[t%l].skip;)t+=a;e%l!==t%l&&(u.push({start:e%l,end:t%l,loop:r,style:i}),c=i,d=t%l)}}var p,m=Sw(t);try{for(m.s();!(p=m.n()).done;){var v=p.value;d=s?d:v.start;var g=n[d%l],y=void 0;for(f=d+1;f<=v.end;f++){var b=n[f%l];US(y=FS(r.setContext(FC(i,{type:"segment",p0:g,p1:b,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:o}))),c)&&h(d,f-1,v.loop,c),g=b,c=y}d<f-1&&h(d,f-1,v.loop,c)}}catch(x){m.e(x)}finally{m.f()}return u}(e,t,n,r):t}function FS(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function US(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}var BS=function(){function e(){Vt(this,e),this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}return Bt(e,[{key:"_notify",value:function(e,t,n,r){var i=t.listeners[r],a=t.duration;i.forEach((function(r){return r({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)})}))}},{key:"_refresh",value:function(){var e=this;this._request||(this._running=!0,this._request=Ew.call(window,(function(){e._update(),e._request=null,e._running&&e._refresh()})))}},{key:"_update",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),n=0;this._charts.forEach((function(r,i){if(r.running&&r.items.length){for(var a,o=r.items,s=o.length-1,l=!1;s>=0;--s)(a=o[s])._active?(a._total>r.duration&&(r.duration=a._total),a.tick(t),l=!0):(o[s]=o[o.length-1],o.pop());l&&(i.draw(),e._notify(i,r,t,"progress")),o.length||(r.running=!1,e._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}})),this._lastDate=t,0===n&&(this._running=!1)}},{key:"_getAnims",value:function(e){var t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}},{key:"listen",value:function(e,t,n){this._getAnims(e).listeners[t].push(n)}},{key:"add",value:function(e,t){var n;t&&t.length&&(n=this._getAnims(e).items).push.apply(n,Ls(t))}},{key:"has",value:function(e){return this._getAnims(e).items.length>0}},{key:"start",value:function(e){var t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((function(e,t){return Math.max(e,t._duration)}),0),this._refresh())}},{key:"running",value:function(e){if(!this._running)return!1;var t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}},{key:"stop",value:function(e){var t=this._charts.get(e);if(t&&t.items.length){for(var n=t.items,r=n.length-1;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}}},{key:"remove",value:function(e){return this._charts.delete(e)}}]),e}(),VS=new BS,HS="transparent",WS={boolean:function(e,t,n){return n>.5?t:e},color:function(e,t,n){var r=sC(e||HS),i=r.valid&&sC(t||HS);return i&&i.valid?i.mix(r,n).hexString():t},number:function(e,t,n){return e+(t-e)*n}},ZS=function(){function e(t,n,r,i){Vt(this,e);var a=n[r];i=zC([t.to,i,a,t.from]);var o=zC([t.from,a,i]);this._active=!0,this._fn=t.fn||WS[t.type||typeof o],this._easing=Mk[t.easing]||Mk.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}return Bt(e,[{key:"active",value:function(){return this._active}},{key:"update",value:function(e,t,n){if(this._active){this._notify(!1);var r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=zC([e.to,t,r,e.from]),this._from=zC([e.from,r,t])}}},{key:"cancel",value:function(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}},{key:"tick",value:function(e){var t,n=e-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;if(this._active=a!==s&&(o||n<r),!this._active)return this._target[i]=s,void this._notify(!0);n<0?this._target[i]=a:(t=n/r%2,t=o&&t>1?2-t:t,t=this._easing(Math.min(1,Math.max(0,t))),this._target[i]=this._fn(a,s,t))}},{key:"wait",value:function(){var e=this._promises||(this._promises=[]);return new Promise((function(t,n){e.push({res:t,rej:n})}))}},{key:"_notify",value:function(e){for(var t=e?"res":"rej",n=this._promises||[],r=0;r<n.length;r++)n[r][t]()}}]),e}();pC.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});var YS=Object.keys(pC.animation);pC.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:function(e){return"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}}),pC.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),pC.describe("animations",{_fallback:"animation"}),pC.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:function(e){return 0|e}}}}});var qS=function(){function e(t,n){Vt(this,e),this._chart=t,this._properties=new Map,this.configure(n)}return Bt(e,[{key:"configure",value:function(e){if(Lw(e)){var t=this._properties;Object.getOwnPropertyNames(e).forEach((function(n){var r=e[n];if(Lw(r)){var i,a={},o=Sw(YS);try{for(o.s();!(i=o.n()).done;){var s=i.value;a[s]=r[s]}}catch(l){o.e(l)}finally{o.f()}(Dw(r.properties)&&r.properties||[n]).forEach((function(e){e!==n&&t.has(e)||t.set(e,a)}))}}))}}},{key:"_animateOptions",value:function(e,t){var n=t.options,r=function(e,t){if(!t)return;var n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];var i=this._createAnimations(r,n);return n.$shared&&function(e,t){for(var n=[],r=Object.keys(t),i=0;i<r.length;i++){var a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}(e.options.$animations,n).then((function(){e.options=n}),(function(){})),i}},{key:"_createAnimations",value:function(e,t){var n,r=this._properties,i=[],a=e.$animations||(e.$animations={}),o=Object.keys(t),s=Date.now();for(n=o.length-1;n>=0;--n){var l=o[n];if("$"!==l.charAt(0))if("options"!==l){var u=t[l],c=a[l],d=r.get(l);if(c){if(d&&c.active()){c.update(d,u,s);continue}c.cancel()}d&&d.duration?(a[l]=c=new ZS(d,e,l,u),i.push(c)):e[l]=u}else i.push.apply(i,Ls(this._animateOptions(e,t)))}return i}},{key:"update",value:function(e,t){if(0!==this._properties.size){var n=this._createAnimations(e,t);return n.length?(VS.add(this._chart,n),!0):void 0}Object.assign(e,t)}}]),e}();function GS(e,t){var n=e&&e.options||{},r=n.reverse,i=void 0===n.min?t:0,a=void 0===n.max?t:0;return{start:r?a:i,end:r?i:a}}function KS(e,t){var n,r,i=[],a=e._getSortedDatasetMetas(t);for(n=0,r=a.length;n<r;++n)i.push(a[n].index);return i}function QS(e,t,n){var r,i,a,o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=e.keys,u="single"===s.mode;if(null!==t){for(r=0,i=l.length;r<i;++r){if((a=+l[r])===n){if(s.all)continue;break}o=e.values[a],Aw(o)&&(u||0===t||uk(t)===uk(o))&&(t+=o)}return t}}function XS(e,t){var n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function $S(e,t,n){var r=e[t]||(e[t]={});return r[n]||(r[n]={})}function JS(e,t,n,r){var i,a=Sw(t.getMatchingVisibleMetas(r).reverse());try{for(a.s();!(i=a.n()).done;){var o=i.value,s=e[o.index];if(n&&s>0||!n&&s<0)return o.index}}catch(l){a.e(l)}finally{a.f()}return null}function eE(e,t){for(var n,r=e.chart,i=e._cachedMeta,a=r._stacks||(r._stacks={}),o=i.iScale,s=i.vScale,l=i.index,u=o.axis,c=s.axis,d=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(o,s,i),f=t.length,h=0;h<f;++h){var p=t[h],m=p[u],v=p[c];(n=(p._stacks||(p._stacks={}))[c]=$S(a,d,m))[l]=v,n._top=JS(n,s,!0,i.type),n._bottom=JS(n,s,!1,i.type)}}function tE(e,t){var n=e.scales;return Object.keys(n).filter((function(e){return n[e].axis===t})).shift()}function nE(e,t){var n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){var i,a=Sw(t=t||e._parsed);try{for(a.s();!(i=a.n()).done;){var o=i.value._stacks;if(!o||void 0===o[r]||void 0===o[r][n])return;delete o[r][n]}}catch(s){a.e(s)}finally{a.f()}}}var rE=function(e){return"reset"===e||"none"===e},iE=function(e,t){return t?e:Object.assign({},e)},aE=function(){function e(t,n){Vt(this,e),this.chart=t,this._ctx=t.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.$context=void 0,this._syncList=[],this.initialize()}return Bt(e,[{key:"initialize",value:function(){var e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=XS(e.vScale,e),this.addElements()}},{key:"updateIndex",value:function(e){this.index!==e&&nE(this._cachedMeta),this.index=e}},{key:"linkScales",value:function(){var e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=function(e,t,n,r){return"x"===e?t:"r"===e?r:n},i=t.xAxisID=Iw(n.xAxisID,tE(e,"x")),a=t.yAxisID=Iw(n.yAxisID,tE(e,"y")),o=t.rAxisID=Iw(n.rAxisID,tE(e,"r")),s=t.indexAxis,l=t.iAxisID=r(s,i,a,o),u=t.vAxisID=r(s,a,i,o);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(u)}},{key:"getDataset",value:function(){return this.chart.data.datasets[this.index]}},{key:"getMeta",value:function(){return this.chart.getDatasetMeta(this.index)}},{key:"getScaleForId",value:function(e){return this.chart.scales[e]}},{key:"_getOtherScale",value:function(e){var t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}},{key:"reset",value:function(){this._update("reset")}},{key:"_destroy",value:function(){var e=this._cachedMeta;this._data&&WC(this._data,this),e._stacked&&nE(e)}},{key:"_dataCheck",value:function(){var e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(Lw(t))this._data=function(e){var t,n,r,i=Object.keys(e),a=new Array(i.length);for(t=0,n=i.length;t<n;++t)r=i[t],a[t]={x:r,y:e[r]};return a}(t);else if(n!==t){if(n){WC(n,this);var r=this._cachedMeta;nE(r),r._parsed=[]}t&&Object.isExtensible(t)&&function(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),HC.forEach((function(t){var n="_onData"+Qw(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];var o=r.apply(this,i);return e._chartjs.listeners.forEach((function(e){"function"===typeof e[n]&&e[n].apply(e,i)})),o}})})))}(t,this),this._syncList=[],this._data=t}}},{key:"addElements",value:function(){var e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}},{key:"buildOrUpdateElements",value:function(e){var t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();var i=t._stacked;t._stacked=XS(t.vScale,t),t.stack!==n.stack&&(r=!0,nE(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&eE(this,t._parsed)}},{key:"configure",value:function(){var e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}},{key:"parse",value:function(e,t){var n,r,i,a=this._cachedMeta,o=this._data,s=a.iScale,l=a._stacked,u=s.axis,c=0===e&&t===o.length||a._sorted,d=e>0&&a._parsed[e-1];if(!1===this._parsing)a._parsed=o,a._sorted=!0,i=o;else{i=Dw(o[e])?this.parseArrayData(a,o,e,t):Lw(o[e])?this.parseObjectData(a,o,e,t):this.parsePrimitiveData(a,o,e,t);for(n=0;n<t;++n)a._parsed[n+e]=r=i[n],c&&((null===r[u]||d&&r[u]<d[u])&&(c=!1),d=r);a._sorted=c}l&&eE(this,i)}},{key:"parsePrimitiveData",value:function(e,t,n,r){var i,a,o,s=e.iScale,l=e.vScale,u=s.axis,c=l.axis,d=s.getLabels(),f=s===l,h=new Array(r);for(i=0,a=r;i<a;++i){var p;o=i+n,h[i]=(Ve(p={},u,f||s.parse(d[o],o)),Ve(p,c,l.parse(t[o],o)),p)}return h}},{key:"parseArrayData",value:function(e,t,n,r){var i,a,o,s,l=e.xScale,u=e.yScale,c=new Array(r);for(i=0,a=r;i<a;++i)s=t[o=i+n],c[i]={x:l.parse(s[0],o),y:u.parse(s[1],o)};return c}},{key:"parseObjectData",value:function(e,t,n,r){var i,a,o,s,l=e.xScale,u=e.yScale,c=this._parsing,d=c.xAxisKey,f=void 0===d?"x":d,h=c.yAxisKey,p=void 0===h?"y":h,m=new Array(r);for(i=0,a=r;i<a;++i)s=t[o=i+n],m[i]={x:l.parse(Kw(s,f),o),y:u.parse(Kw(s,p),o)};return m}},{key:"getParsed",value:function(e){return this._cachedMeta._parsed[e]}},{key:"getDataElement",value:function(e){return this._cachedMeta.data[e]}},{key:"applyStack",value:function(e,t,n){var r=this.chart,i=this._cachedMeta,a=t[e.axis];return QS({keys:KS(r,!0),values:t._stacks[e.axis]},a,i.index,{mode:n})}},{key:"updateRangeFromParsed",value:function(e,t,n,r){var i=n[t.axis],a=null===i?NaN:i,o=r&&n._stacks[t.axis];r&&o&&(r.values=o,a=QS(r,i,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}},{key:"getMinMax",value:function(e,t){var n,r,i=this._cachedMeta,a=i._parsed,o=i._sorted&&e===i.iScale,s=a.length,l=this._getOtherScale(e),u=function(e,t,n){return e&&!t.hidden&&t._stacked&&{keys:KS(n,!0),values:null}}(t,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},d=function(e){var t=e.getUserBounds(),n=t.min,r=t.max,i=t.minDefined,a=t.maxDefined;return{min:i?n:Number.NEGATIVE_INFINITY,max:a?r:Number.POSITIVE_INFINITY}}(l),f=d.min,h=d.max;function p(){var t=(r=a[n])[l.axis];return!Aw(r[e.axis])||f>t||h<t}for(n=0;n<s&&(p()||(this.updateRangeFromParsed(c,e,r,u),!o));++n);if(o)for(n=s-1;n>=0;--n)if(!p()){this.updateRangeFromParsed(c,e,r,u);break}return c}},{key:"getAllParsedValues",value:function(e){var t,n,r,i=this._cachedMeta._parsed,a=[];for(t=0,n=i.length;t<n;++t)r=i[t][e.axis],Aw(r)&&a.push(r);return a}},{key:"getMaxOverflow",value:function(){return!1}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}},{key:"_update",value:function(e){var t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){var t,n,r,i;return Lw(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:!1===e}}(Iw(this.options.clip,function(e,t,n){if(!1===n)return!1;var r=GS(e,n),i=GS(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}},{key:"update",value:function(e){}},{key:"draw",value:function(){var e,t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;for(r.dataset&&r.dataset.draw(t,a,s,l),e=s;e<s+l;++e){var c=i[e];c.hidden||(c.active&&u?o.push(c):c.draw(t,a))}for(e=0;e<o.length;++e)o[e].draw(t,a)}},{key:"getStyle",value:function(e,t){var n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}},{key:"getContext",value:function(e,t,n){var r,i=this.getDataset();if(e>=0&&e<this._cachedMeta.data.length){var a=this._cachedMeta.data[e];r=a.$context||(a.$context=function(e,t,n){return FC(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,a)),r.parsed=this.getParsed(e),r.raw=i.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return FC(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}},{key:"resolveDatasetElementOptions",value:function(e){return this._resolveElementOptions(this.datasetElementType.id,e)}},{key:"resolveDataElementOptions",value:function(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}},{key:"_resolveElementOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2?arguments[2]:void 0,i="active"===n,a=this._cachedDataOpts,o=e+"-"+n,s=a[o],l=this.enableOptionSharing&&Xw(r);if(s)return iE(s,l);var u=this.chart.config,c=u.datasetElementScopeKeys(this._type,e),d=i?["".concat(e,"Hover"),"hover",e,""]:[e,""],f=u.getOptionScopes(this.getDataset(),c),h=Object.keys(pC.elements[e]),p=function(){return t.getContext(r,i)},m=u.resolveNamedOptions(f,h,p,d);return m.$shared&&(m.$shared=l,a[o]=Object.freeze(iE(m,l))),m}},{key:"_resolveAnimations",value:function(e,t,n){var r,i=this.chart,a=this._cachedDataOpts,o="animation-".concat(t),s=a[o];if(s)return s;if(!1!==i.options.animation){var l=this.chart.config,u=l.datasetAnimationScopeKeys(this._type,t),c=l.getOptionScopes(this.getDataset(),u);r=l.createResolver(c,this.getContext(e,n,t))}var d=new qS(i,r&&r.animations);return r&&r._cacheable&&(a[o]=Object.freeze(d)),d}},{key:"getSharedOptions",value:function(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}},{key:"includeOptions",value:function(e,t){return!t||rE(e)||this.chart._animationsDisabled}},{key:"updateElement",value:function(e,t,n,r){rE(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}},{key:"updateSharedOptions",value:function(e,t,n){e&&!rE(t)&&this._resolveAnimations(void 0,t).update(e,n)}},{key:"_setStyle",value:function(e,t,n,r){e.active=r;var i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}},{key:"removeHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!1)}},{key:"setHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!0)}},{key:"_removeDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}},{key:"_setDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}},{key:"_resyncElements",value:function(e){var t,n=this._data,r=this._cachedMeta.data,i=Sw(this._syncList);try{for(i.s();!(t=i.n()).done;){var a=Q(t.value,3),o=a[0],s=a[1],l=a[2];this[o](s,l)}}catch(f){i.e(f)}finally{i.f()}this._syncList=[];var u=r.length,c=n.length,d=Math.min(c,u);d&&this.parse(0,d),c>u?this._insertElements(u,c-u,e):c<u&&this._removeElements(c,u-c)}},{key:"_insertElements",value:function(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this._cachedMeta,a=i.data,o=e+t,s=function(e){for(e.length+=t,n=e.length-1;n>=o;n--)e[n]=e[n-t]};for(s(a),n=e;n<o;++n)a[n]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(e,t),r&&this.updateElements(a,e,t,"reset")}},{key:"updateElements",value:function(e,t,n,r){}},{key:"_removeElements",value:function(e,t){var n=this._cachedMeta;if(this._parsing){var r=n._parsed.splice(e,t);n._stacked&&nE(n,r)}n.data.splice(e,t)}},{key:"_sync",value:function(e){if(this._parsing)this._syncList.push(e);else{var t=Q(e,3),n=t[0],r=t[1],i=t[2];this[n](r,i)}this.chart._dataChanges.push([this.index].concat(Ls(e)))}},{key:"_onDataPush",value:function(){var e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}},{key:"_onDataPop",value:function(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}},{key:"_onDataShift",value:function(){this._sync(["_removeElements",0,1])}},{key:"_onDataSplice",value:function(e,t){t&&this._sync(["_removeElements",e,t]);var n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}},{key:"_onDataUnshift",value:function(){this._sync(["_insertElements",0,arguments.length])}}]),e}();function oE(e){var t,n,r,i,a=e.iScale,o=function(e,t){if(!e._cache.$bar){for(var n=e.getMatchingVisibleMetas(t),r=[],i=0,a=n.length;i<a;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=ZC(r.sort((function(e,t){return e-t})))}return e._cache.$bar}(a,e.type),s=a._length,l=function(){32767!==r&&-32768!==r&&(Xw(i)&&(s=Math.min(s,Math.abs(r-i)||s)),i=r)};for(t=0,n=o.length;t<n;++t)r=a.getPixelForValue(o[t]),l();for(i=void 0,t=0,n=a.ticks.length;t<n;++t)r=a.getPixelForTick(t),l();return s}function sE(e,t,n,r){return Dw(e)?function(e,t,n,r){var i=n.parse(e[0],r),a=n.parse(e[1],r),o=Math.min(i,a),s=Math.max(i,a),l=o,u=s;Math.abs(o)>Math.abs(s)&&(l=s,u=o),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:a,min:o,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function lE(e,t,n,r){var i,a,o,s,l=e.iScale,u=e.vScale,c=l.getLabels(),d=l===u,f=[];for(i=n,a=n+r;i<a;++i)s=t[i],(o={})[l.axis]=d||l.parse(c[i],i),f.push(sE(s,o,u,i));return f}function uE(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function cE(e,t,n,r){var i=t.borderSkipped,a={};if(i){var o=function(e){var t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:t,top:i,bottom:a}}(e),s=o.start,l=o.end,u=o.reverse,c=o.top,d=o.bottom;"middle"===i&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=d:(a[dE(d,s,l,u)]=!0,i=c)),a[dE(i,s,l,u)]=!0,e.borderSkipped=a}else e.borderSkipped=a}function dE(e,t,n,r){var i,a,o;return r?(o=n,e=fE(e=(i=e)===(a=t)?o:i===o?a:i,n,t)):e=fE(e,t,n),e}function fE(e,t,n){return"start"===e?t:"end"===e?n:e}function hE(e,t,n){var r=t.inflateAmount;e.inflateAmount="auto"===r?1===n?.33:0:r}aE.defaults={},aE.prototype.datasetElementType=null,aE.prototype.dataElementType=null;var pE=function(e){Is(n,e);var t=Bs(n);function n(){return Vt(this,n),t.apply(this,arguments)}return Bt(n,[{key:"parsePrimitiveData",value:function(e,t,n,r){return lE(e,t,n,r)}},{key:"parseArrayData",value:function(e,t,n,r){return lE(e,t,n,r)}},{key:"parseObjectData",value:function(e,t,n,r){var i,a,o,s,l=e.iScale,u=e.vScale,c=this._parsing,d=c.xAxisKey,f=void 0===d?"x":d,h=c.yAxisKey,p=void 0===h?"y":h,m="x"===l.axis?f:p,v="x"===u.axis?f:p,g=[];for(i=n,a=n+r;i<a;++i)s=t[i],(o={})[l.axis]=l.parse(Kw(s,m),i),g.push(sE(Kw(s,v),o,u,i));return g}},{key:"updateRangeFromParsed",value:function(e,t,r,i){Cw(zs(n.prototype),"updateRangeFromParsed",this).call(this,e,t,r,i);var a=r._custom;a&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}},{key:"getMaxOverflow",value:function(){return 0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e),a=i._custom,o=uE(a)?"["+a.start+", "+a.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n.axis]),value:o}}},{key:"initialize",value:function(){this.enableOptionSharing=!0,Cw(zs(n.prototype),"initialize",this).call(this),this._cachedMeta.stack=this.getDataset().stack}},{key:"update",value:function(e){var t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}},{key:"updateElements",value:function(e,t,n,r){var i="reset"===r,a=this.index,o=this._cachedMeta.vScale,s=o.getBasePixel(),l=o.isHorizontal(),u=this._getRuler(),c=this.resolveDataElementOptions(t,r),d=this.getSharedOptions(c),f=this.includeOptions(r,d);this.updateSharedOptions(d,r,c);for(var h=t;h<t+n;h++){var p=this.getParsed(h),m=i||jw(p[o.axis])?{base:s,head:s}:this._calculateBarValuePixels(h),v=this._calculateBarIndexPixels(h,u),g=(p._stacks||{})[o.axis],y={horizontal:l,base:m.base,enableBorderRadius:!g||uE(p._custom)||a===g._top||a===g._bottom,x:l?m.head:v.center,y:l?v.center:m.head,height:l?v.size:Math.abs(m.size),width:l?Math.abs(m.size):v.size};f&&(y.options=d||this.resolveDataElementOptions(h,e[h].active?"active":r));var b=y.options||e[h].options;cE(y,b,g,a),hE(y,b,u.ratio),this.updateElement(e[h],h,y,r)}}},{key:"_getStacks",value:function(e,t){var n,r,i=this._cachedMeta.iScale,a=i.getMatchingVisibleMetas(this._type),o=i.options.stacked,s=a.length,l=[];for(n=0;n<s;++n)if((r=a[n]).controller.options.grouped){if("undefined"!==typeof t){var u=r.controller.getParsed(t)[r.controller._cachedMeta.vScale.axis];if(jw(u)||isNaN(u))continue}if((!1===o||-1===l.indexOf(r.stack)||void 0===o&&void 0===r.stack)&&l.push(r.stack),r.index===e)break}return l.length||l.push(void 0),l}},{key:"_getStackCount",value:function(e){return this._getStacks(void 0,e).length}},{key:"_getStackIndex",value:function(e,t,n){var r=this._getStacks(e,n),i=void 0!==t?r.indexOf(t):-1;return-1===i?r.length-1:i}},{key:"_getRuler",value:function(){var e,t,n=this.options,r=this._cachedMeta,i=r.iScale,a=[];for(e=0,t=r.data.length;e<t;++e)a.push(i.getPixelForValue(this.getParsed(e)[i.axis],e));var o=n.barThickness;return{min:o||oE(r),pixels:a,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:n.grouped,ratio:o?1:n.categoryPercentage*n.barPercentage}}},{key:"_calculateBarValuePixels",value:function(e){var t,n,r=this._cachedMeta,i=r.vScale,a=r._stacked,o=this.options,s=o.base,l=o.minBarLength,u=s||0,c=this.getParsed(e),d=c._custom,f=uE(d),h=c[i.axis],p=0,m=a?this.applyStack(i,c,a):h;m!==h&&(p=m-h,m=h),f&&(h=d.barStart,m=d.barEnd-d.barStart,0!==h&&uk(h)!==uk(d.barEnd)&&(p=0),p+=h);var v=jw(s)||f?p:s,g=i.getPixelForValue(v);if(n=(t=this.chart.getDataVisibility(e)?i.getPixelForValue(p+m):g)-g,Math.abs(n)<l&&(n=function(e,t,n){return 0!==e?uk(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(n,i,u)*l,h===u&&(g-=n/2),t=g+n),g===i.getPixelForValue(u)){var y=uk(n)*i.getLineWidthForValue(u)/2;g+=y,n-=y}return{size:n,base:g,head:t,center:t+n/2}}},{key:"_calculateBarIndexPixels",value:function(e,t){var n,r,i=t.scale,a=this.options,o=a.skipNull,s=Iw(a.maxBarThickness,1/0);if(t.grouped){var l=o?this._getStackCount(e):t.stackCount,u="flex"===a.barThickness?function(e,t,n,r){var i=t.pixels,a=i[e],o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,l=n.categoryPercentage;null===o&&(o=a-(null===s?t.end-t.start:s-a)),null===s&&(s=a+a-o);var u=a-(a-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/r,ratio:n.barPercentage,start:u}}(e,t,a,l):function(e,t,n,r){var i,a,o=n.barThickness;return jw(o)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:t.pixels[e]-i/2}}(e,t,a,l),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void 0);n=u.start+u.chunk*c+u.chunk/2,r=Math.min(s,u.chunk*u.ratio)}else n=i.getPixelForValue(this.getParsed(e)[i.axis],e),r=Math.min(s,t.min*t.ratio);return{base:n-r/2,head:n+r/2,center:n,size:r}}},{key:"draw",value:function(){for(var e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length,i=0;i<r;++i)null!==this.getParsed(i)[t.axis]&&n[i].draw(this._ctx)}}]),n}(aE);pE.id="bar",pE.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},pE.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};var mE=function(e){Is(n,e);var t=Bs(n);function n(){return Vt(this,n),t.apply(this,arguments)}return Bt(n,[{key:"initialize",value:function(){this.enableOptionSharing=!0,Cw(zs(n.prototype),"initialize",this).call(this)}},{key:"parsePrimitiveData",value:function(e,t,r,i){for(var a=Cw(zs(n.prototype),"parsePrimitiveData",this).call(this,e,t,r,i),o=0;o<a.length;o++)a[o]._custom=this.resolveDataElementOptions(o+r).radius;return a}},{key:"parseArrayData",value:function(e,t,r,i){for(var a=Cw(zs(n.prototype),"parseArrayData",this).call(this,e,t,r,i),o=0;o<a.length;o++){var s=t[r+o];a[o]._custom=Iw(s[2],this.resolveDataElementOptions(o+r).radius)}return a}},{key:"parseObjectData",value:function(e,t,r,i){for(var a=Cw(zs(n.prototype),"parseObjectData",this).call(this,e,t,r,i),o=0;o<a.length;o++){var s=t[r+o];a[o]._custom=Iw(s&&s.r&&+s.r,this.resolveDataElementOptions(o+r).radius)}return a}},{key:"getMaxOverflow",value:function(){for(var e=this._cachedMeta.data,t=0,n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.xScale,r=t.yScale,i=this.getParsed(e),a=n.getLabelForValue(i.x),o=r.getLabelForValue(i.y),s=i._custom;return{label:t.label,value:"("+a+", "+o+(s?", "+s:"")+")"}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,a=this._cachedMeta,o=a.iScale,s=a.vScale,l=this.resolveDataElementOptions(t,r),u=this.getSharedOptions(l),c=this.includeOptions(r,u),d=o.axis,f=s.axis,h=t;h<t+n;h++){var p=e[h],m=!i&&this.getParsed(h),v={},g=v[d]=i?o.getPixelForDecimal(.5):o.getPixelForValue(m[d]),y=v[f]=i?s.getBasePixel():s.getPixelForValue(m[f]);v.skip=isNaN(g)||isNaN(y),c&&(v.options=this.resolveDataElementOptions(h,p.active?"active":r),i&&(v.options.radius=0)),this.updateElement(p,h,v,r)}this.updateSharedOptions(u,r,l)}},{key:"resolveDataElementOptions",value:function(e,t){var r=this.getParsed(e),i=Cw(zs(n.prototype),"resolveDataElementOptions",this).call(this,e,t);i.$shared&&(i=Object.assign({},i,{$shared:!1}));var a=i.radius;return"active"!==t&&(i.radius=0),i.radius+=Iw(r&&r._custom,a),i}}]),n}(aE);mE.id="bubble",mE.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},mE.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:function(){return""}}}}};var vE=function(e){Is(n,e);var t=Bs(n);function n(e,r){var i;return Vt(this,n),(i=t.call(this,e,r)).enableOptionSharing=!0,i.innerRadius=void 0,i.outerRadius=void 0,i.offsetX=void 0,i.offsetY=void 0,i}return Bt(n,[{key:"linkScales",value:function(){}},{key:"parse",value:function(e,t){var n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{var i,a,o=function(e){return+n[e]};if(Lw(n[e])){var s=this._parsing.key,l=void 0===s?"value":s;o=function(e){return+Kw(n[e],l)}}for(i=e,a=e+t;i<a;++i)r._parsed[i]=o(i)}}},{key:"_getRotation",value:function(){return pk(this.options.rotation-90)}},{key:"_getCircumference",value:function(){return pk(this.options.circumference)}},{key:"_getRotationExtents",value:function(){for(var e=tk,t=-tk,n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){var r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),a=r._getCircumference();e=Math.min(e,i),t=Math.max(t,i+a)}return{rotation:e,circumference:t-e}}},{key:"update",value:function(e){var t=this.chart.chartArea,n=this._cachedMeta,r=n.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(t.width,t.height)-i)/2,0),o=Math.min(function(e,t){return"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100:e/t}(this.options.cutout,a),1),s=this._getRingWeight(this.index),l=this._getRotationExtents(),u=l.circumference,c=function(e,t,n){var r=1,i=1,a=0,o=0;if(t<tk){var s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),d=Math.cos(l),f=Math.sin(l),h=function(e,t,r){return _k(e,s,l,!0)?1:Math.max(t,t*n,r,r*n)},p=function(e,t,r){return _k(e,s,l,!0)?-1:Math.min(t,t*n,r,r*n)},m=h(0,u,d),v=h(ak,c,f),g=p(ek,u,d),y=p(ek+ak,c,f);r=(m-g)/2,i=(v-y)/2,a=-(m+g)/2,o=-(v+y)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}(l.rotation,u,o),d=c.ratioX,f=c.ratioY,h=c.offsetX,p=c.offsetY,m=(t.width-i)/d,v=(t.height-i)/f,g=Math.max(Math.min(m,v)/2,0),y=zw(this.options.radius,g),b=(y-Math.max(y*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=h*y,this.offsetY=p*y,n.total=this.calculateTotal(),this.outerRadius=y-b*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-b*s,0),this.updateElements(r,0,r.length,e)}},{key:"_circumference",value:function(e,t){var n=this.options,r=this._cachedMeta,i=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===r._parsed[e]||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*i/tk)}},{key:"updateElements",value:function(e,t,n,r){var i,a="reset"===r,o=this.chart,s=o.chartArea,l=o.options.animation,u=(s.left+s.right)/2,c=(s.top+s.bottom)/2,d=a&&l.animateScale,f=d?0:this.innerRadius,h=d?0:this.outerRadius,p=this.resolveDataElementOptions(t,r),m=this.getSharedOptions(p),v=this.includeOptions(r,m),g=this._getRotation();for(i=0;i<t;++i)g+=this._circumference(i,a);for(i=t;i<t+n;++i){var y=this._circumference(i,a),b=e[i],x={x:u+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+y,circumference:y,outerRadius:h,innerRadius:f};v&&(x.options=m||this.resolveDataElementOptions(i,b.active?"active":r)),g+=y,this.updateElement(b,i,x,r)}this.updateSharedOptions(m,r,p)}},{key:"calculateTotal",value:function(){var e,t=this._cachedMeta,n=t.data,r=0;for(e=0;e<n.length;e++){var i=t._parsed[e];null===i||isNaN(i)||!this.chart.getDataVisibility(e)||n[e].hidden||(r+=Math.abs(i))}return r}},{key:"calculateCircumference",value:function(e){var t=this._cachedMeta.total;return t>0&&!isNaN(e)?tk*(Math.abs(e)/t):0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=NS(t._parsed[e],n.options.locale);return{label:r[e]||"",value:i}}},{key:"getMaxBorderWidth",value:function(e){var t,n,r,i,a,o=0,s=this.chart;if(!e)for(t=0,n=s.data.datasets.length;t<n;++t)if(s.isDatasetVisible(t)){e=(r=s.getDatasetMeta(t)).data,i=r.controller;break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)"inner"!==(a=i.resolveDataElementOptions(t)).borderAlign&&(o=Math.max(o,a.borderWidth||0,a.hoverBorderWidth||0));return o}},{key:"getMaxOffset",value:function(e){for(var t=0,n=0,r=e.length;n<r;++n){var i=this.resolveDataElementOptions(n);t=Math.max(t,i.offset||0,i.hoverOffset||0)}return t}},{key:"_getRingWeightOffset",value:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}},{key:"_getRingWeight",value:function(e){return Math.max(Iw(this.chart.data.datasets[e].weight,1),0)}},{key:"_getVisibleDatasetWeightTotal",value:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}]),n}(aE);vE.id="doughnut",vE.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"},vE.descriptors={_scriptable:function(e){return"spacing"!==e},_indexable:function(e){return"spacing"!==e}},vE.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(e){var t=e.data;if(t.labels.length&&t.datasets.length){var n=e.legend.options.labels.pointStyle;return t.labels.map((function(t,r){var i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick:function(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:function(){return""},label:function(e){var t=e.label,n=": "+e.formattedValue;return Dw(t)?(t=t.slice())[0]+=n:t+=n,t}}}}};var gE=function(e){Is(n,e);var t=Bs(n);function n(){return Vt(this,n),t.apply(this,arguments)}return Bt(n,[{key:"initialize",value:function(){this.enableOptionSharing=!0,Cw(zs(n.prototype),"initialize",this).call(this)}},{key:"update",value:function(e){var t=this._cachedMeta,n=t.dataset,r=t.data,i=void 0===r?[]:r,a=t._dataset,o=this.chart._animationsDisabled,s=function(e,t,n){var r=t.length,i=0,a=r;if(e._sorted){var o=e.iScale,s=e._parsed,l=o.axis,u=o.getUserBounds(),c=u.min,d=u.max,f=u.minDefined,h=u.maxDefined;f&&(i=wk(Math.min(BC(s,o.axis,c).lo,n?r:BC(t,l,o.getPixelForValue(c)).lo),0,r-1)),a=h?wk(Math.max(BC(s,o.axis,d).hi+1,n?0:BC(t,l,o.getPixelForValue(d)).hi+1),i,r)-i:r-i}return{start:i,count:a}}(t,i,o),l=s.start,u=s.count;this._drawStart=l,this._drawCount=u,function(e){var t=e.xScale,n=e.yScale,r=e._scaleRanges,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;var a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}(t)&&(l=0,u=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=i;var c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:c},e),this.updateElements(i,l,u,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,a=this._cachedMeta,o=a.iScale,s=a.vScale,l=a._stacked,u=a._dataset,c=this.resolveDataElementOptions(t,r),d=this.getSharedOptions(c),f=this.includeOptions(r,d),h=o.axis,p=s.axis,m=this.options,v=m.spanGaps,g=m.segment,y=dk(v)?v:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||i||"none"===r,x=t>0&&this.getParsed(t-1),_=t;_<t+n;++_){var w=e[_],k=this.getParsed(_),C=b?w:{},S=jw(k[p]),E=C[h]=o.getPixelForValue(k[h],_),M=C[p]=i||S?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,k,l):k[p],_);C.skip=isNaN(E)||isNaN(M)||S,C.stop=_>0&&k[h]-x[h]>y,g&&(C.parsed=k,C.raw=u.data[_]),f&&(C.options=d||this.resolveDataElementOptions(_,w.active?"active":r)),b||this.updateElement(w,_,C,r),x=k}this.updateSharedOptions(d,r,c)}},{key:"getMaxOverflow",value:function(){var e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;var i=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,a)/2}},{key:"draw",value:function(){var e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),Cw(zs(n.prototype),"draw",this).call(this)}}]),n}(aE);gE.id="line",gE.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},gE.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};var yE=function(e){Is(n,e);var t=Bs(n);function n(e,r){var i;return Vt(this,n),(i=t.call(this,e,r)).innerRadius=void 0,i.outerRadius=void 0,i}return Bt(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=NS(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:i}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}},{key:"_updateRadius",value:function(){var e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),a=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}},{key:"updateElements",value:function(e,t,n,r){var i,a="reset"===r,o=this.chart,s=this.getDataset(),l=o.options.animation,u=this._cachedMeta.rScale,c=u.xCenter,d=u.yCenter,f=u.getIndexAngle(0)-.5*ek,h=f,p=360/this.countVisibleElements();for(i=0;i<t;++i)h+=this._computeAngle(i,r,p);for(i=t;i<t+n;i++){var m=e[i],v=h,g=h+this._computeAngle(i,r,p),y=o.getDataVisibility(i)?u.getDistanceFromCenterForValue(s.data[i]):0;h=g,a&&(l.animateScale&&(y=0),l.animateRotate&&(v=g=f));var b={x:c,y:d,innerRadius:0,outerRadius:y,startAngle:v,endAngle:g,options:this.resolveDataElementOptions(i,m.active?"active":r)};this.updateElement(m,i,b,r)}}},{key:"countVisibleElements",value:function(){var e=this,t=this.getDataset(),n=this._cachedMeta,r=0;return n.data.forEach((function(n,i){!isNaN(t.data[i])&&e.chart.getDataVisibility(i)&&r++})),r}},{key:"_computeAngle",value:function(e,t,n){return this.chart.getDataVisibility(e)?pk(this.resolveDataElementOptions(e,t).angle||n):0}}]),n}(aE);yE.id="polarArea",yE.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},yE.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(e){var t=e.data;if(t.labels.length&&t.datasets.length){var n=e.legend.options.labels.pointStyle;return t.labels.map((function(t,r){var i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick:function(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:function(){return""},label:function(e){return e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};var bE=function(e){Is(n,e);var t=Bs(n);function n(){return Vt(this,n),t.apply(this,arguments)}return Bt(n)}(vE);bE.id="pie",bE.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};var xE=function(e){Is(n,e);var t=Bs(n);function n(){return Vt(this,n),t.apply(this,arguments)}return Bt(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}},{key:"update",value:function(e){var t=this._cachedMeta,n=t.dataset,r=t.data||[],i=t.iScale.getLabels();if(n.points=r,"resize"!==e){var a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0);var o={_loop:!0,_fullLoop:i.length===r.length,options:a};this.updateElement(n,void 0,o,e)}this.updateElements(r,0,r.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i=this.getDataset(),a=this._cachedMeta.rScale,o="reset"===r,s=t;s<t+n;s++){var l=e[s],u=this.resolveDataElementOptions(s,l.active?"active":r),c=a.getPointPositionForValue(s,i.data[s]),d=o?a.xCenter:c.x,f=o?a.yCenter:c.y,h={x:d,y:f,angle:c.angle,skip:isNaN(d)||isNaN(f),options:u};this.updateElement(l,s,h,r)}}}]),n}(aE);xE.id="radar",xE.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},xE.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};var _E=function(e){Is(n,e);var t=Bs(n);function n(){return Vt(this,n),t.apply(this,arguments)}return Bt(n)}(gE);_E.id="scatter",_E.defaults={showLine:!1,fill:!1},_E.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:function(){return""},label:function(e){return"("+e.label+", "+e.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var wE=Object.freeze({__proto__:null,BarController:pE,BubbleController:mE,DoughnutController:vE,LineController:gE,PolarAreaController:yE,PieController:bE,RadarController:xE,ScatterController:_E});function kE(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var CE=function(){function e(t){Vt(this,e),this.options=t||{}}return Bt(e,[{key:"formats",value:function(){return kE()}},{key:"parse",value:function(e,t){return kE()}},{key:"format",value:function(e,t){return kE()}},{key:"add",value:function(e,t,n){return kE()}},{key:"diff",value:function(e,t,n){return kE()}},{key:"startOf",value:function(e,t,n){return kE()}},{key:"endOf",value:function(e,t){return kE()}}]),e}();CE.override=function(e){Object.assign(CE.prototype,e)};var SE={_date:CE};function EE(e,t){return"native"in e?{x:e.x,y:e.y}:xS(e,t)}function ME(e,t,n,r){var i=e.controller,a=e.data,o=e._sorted,s=i._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&o&&a.length){var l=s._reversePixels?VC:BC;if(!r)return l(a,t,n);if(i._sharedOptions){var u=a[0],c="function"===typeof u.getRange&&u.getRange(t);if(c){var d=l(a,t,n-c),f=l(a,t,n+c);return{lo:d.lo,hi:f.hi}}}}return{lo:0,hi:a.length-1}}function TE(e,t,n,r,i){for(var a=e.getSortedVisibleDatasetMetas(),o=n[t],s=0,l=a.length;s<l;++s)for(var u=a[s],c=u.index,d=u.data,f=ME(a[s],t,o,i),h=f.lo,p=f.hi,m=h;m<=p;++m){var v=d[m];v.skip||r(v,c,m)}}function OE(e,t,n,r){var i=[];if(!xC(t,e.chartArea,e._minPadding))return i;return TE(e,n,t,(function(e,n,a){e.inRange(t.x,t.y,r)&&i.push({element:e,datasetIndex:n,index:a})}),!0),i}function NE(e,t,n,r,i){var a=[],o=function(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var i=t?Math.abs(e.x-r.x):0,a=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(a,2))}}(n),s=Number.POSITIVE_INFINITY;return TE(e,n,t,(function(n,l,u){var c=n.inRange(t.x,t.y,i);if(!r||c){var d=n.getCenterPoint(i);if(xC(d,e.chartArea,e._minPadding)||c){var f=o(t,d);f<s?(a=[{element:n,datasetIndex:l,index:u}],s=f):f===s&&a.push({element:n,datasetIndex:l,index:u})}}})),a}function PE(e,t,n,r,i){return xC(t,e.chartArea,e._minPadding)?"r"!==n||r?NE(e,t,n,r,i):function(e,t,n,r){var i=[];return TE(e,n,t,(function(e,n,a){var o=e.getProps(["startAngle","endAngle"],r),s=o.startAngle,l=o.endAngle;_k(gk(e,{x:t.x,y:t.y}).angle,s,l)&&i.push({element:e,datasetIndex:n,index:a})})),i}(e,t,n,i):[]}function jE(e,t,n,r){var i=EE(t,e),a=[],o=n.axis,s="x"===o?"inXRange":"inYRange",l=!1;return function(e,t){for(var n,r,i,a=e.getSortedVisibleDatasetMetas(),o=0,s=a.length;o<s;++o){var l=a[o];n=l.index;for(var u=0,c=(r=l.data).length;u<c;++u)(i=r[u]).skip||t(i,n,u)}}(e,(function(e,t,n){e[s](i[o],r)&&a.push({element:e,datasetIndex:t,index:n}),e.inRange(i.x,i.y,r)&&(l=!0)})),n.intersect&&!l?[]:a}var DE={modes:{index:function(e,t,n,r){var i=EE(t,e),a=n.axis||"x",o=n.intersect?OE(e,i,a,r):PE(e,i,a,!1,r),s=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach((function(e){var t=o[0].index,n=e.data[t];n&&!n.skip&&s.push({element:n,datasetIndex:e.index,index:t})})),s):[]},dataset:function(e,t,n,r){var i=EE(t,e),a=n.axis||"xy",o=n.intersect?OE(e,i,a,r):PE(e,i,a,!1,r);if(o.length>0){var s=o[0].datasetIndex,l=e.getDatasetMeta(s).data;o=[];for(var u=0;u<l.length;++u)o.push({element:l[u],datasetIndex:s,index:u})}return o},point:function(e,t,n,r){return OE(e,EE(t,e),n.axis||"xy",r)},nearest:function(e,t,n,r){return PE(e,EE(t,e),n.axis||"xy",n.intersect,r)},x:function(e,t,n,r){return jE(e,t,{axis:"x",intersect:n.intersect},r)},y:function(e,t,n,r){return jE(e,t,{axis:"y",intersect:n.intersect},r)}}},LE=["left","top","right","bottom"];function AE(e,t){return e.filter((function(e){return e.pos===t}))}function RE(e,t){return e.filter((function(e){return-1===LE.indexOf(e.pos)&&e.box.axis===t}))}function IE(e,t){return e.sort((function(e,n){var r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function zE(e,t){var n,r,i,a=function(e){var t,n={},r=Sw(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,a=i.stack,o=i.pos,s=i.stackWeight;if(a&&LE.includes(o)){var l=n[a]||(n[a]={count:0,placed:0,weight:0,size:0});l.count++,l.weight+=s}}}catch(u){r.e(u)}finally{r.f()}return n}(e),o=t.vBoxMaxWidth,s=t.hBoxMaxHeight;for(n=0,r=e.length;n<r;++n){var l=(i=e[n]).box.fullSize,u=a[i.stack],c=u&&i.stackWeight/u.weight;i.horizontal?(i.width=c?c*o:l&&t.availableWidth,i.height=s):(i.width=o,i.height=c?c*s:l&&t.availableHeight)}return a}function FE(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function UE(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function BE(e,t,n,r){var i=n.pos,a=n.box,o=e.maxPadding;if(!Lw(i)){n.size&&(e[i]-=n.size);var s=r[n.stack]||{size:0,count:1};s.size=Math.max(s.size,n.horizontal?a.height:a.width),n.size=s.size/s.count,e[i]+=n.size}a.getPadding&&UE(o,a.getPadding());var l=Math.max(0,t.outerWidth-FE(o,e,"left","right")),u=Math.max(0,t.outerHeight-FE(o,e,"top","bottom")),c=l!==e.w,d=u!==e.h;return e.w=l,e.h=u,n.horizontal?{same:c,other:d}:{same:d,other:c}}function VE(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function HE(e,t,n,r){var i,a,o,s,l,u,c=[];for(i=0,a=e.length,l=0;i<a;++i){(s=(o=e[i]).box).update(o.width||t.w,o.height||t.h,VE(o.horizontal,t));var d=BE(t,n,o,r),f=d.same,h=d.other;l|=f&&c.length,u=u||h,s.fullSize||c.push(o)}return l&&HE(c,t,n,r)||u}function WE(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function ZE(e,t,n,r){var i,a=n.padding,o=t.x,s=t.y,l=Sw(e);try{for(l.s();!(i=l.n()).done;){var u=i.value,c=u.box,d=r[u.stack]||{count:1,placed:0,weight:1},f=u.stackWeight/d.weight||1;if(u.horizontal){var h=t.w*f,p=d.size||c.height;Xw(d.start)&&(s=d.start),c.fullSize?WE(c,a.left,s,n.outerWidth-a.right-a.left,p):WE(c,t.left+d.placed,s,h,p),d.start=s,d.placed+=h,s=c.bottom}else{var m=t.h*f,v=d.size||c.width;Xw(d.start)&&(o=d.start),c.fullSize?WE(c,o,a.top,v,n.outerHeight-a.bottom-a.top):WE(c,o,t.top+d.placed,v,m),d.start=o,d.placed+=m,o=c.right}}}catch(g){l.e(g)}finally{l.f()}t.x=o,t.y=s}pC.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var YE=function(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(e){t.draw(e)}}]},e.boxes.push(t)},qE=function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},GE=function(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},KE=function(e,t,n,r){if(e){var i=RC(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=function(e){var t=function(e){var t,n,r,i,a,o,s=[];for(t=0,n=(e||[]).length;t<n;++t){var l=r=e[t];i=l.position;var u=l.options;a=u.stack;var c=u.stackWeight;o=void 0===c?1:c,s.push({index:t,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&i+a,stackWeight:o})}return s}(e),n=IE(t.filter((function(e){return e.box.fullSize})),!0),r=IE(AE(t,"left"),!0),i=IE(AE(t,"right")),a=IE(AE(t,"top"),!0),o=IE(AE(t,"bottom")),s=RE(t,"x"),l=RE(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:AE(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}(e.boxes),l=s.vertical,u=s.horizontal;Uw(e.boxes,(function(e){"function"===typeof e.beforeLayout&&e.beforeLayout()}));var c=l.reduce((function(e,t){return t.box.options&&!1===t.box.options.display?e:e+1}),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/c,hBoxMaxHeight:o/2}),f=Object.assign({},i);UE(f,RC(r));var h=Object.assign({maxPadding:f,w:a,h:o,x:i.left,y:i.top},i),p=zE(l.concat(u),d);HE(s.fullSize,h,d,p),HE(l,h,d,p),HE(u,h,d,p)&&HE(l,h,d,p),function(e){var t=e.maxPadding;function n(n){var r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),ZE(s.leftAndTop,h,d,p),h.x+=h.w,h.y+=h.h,ZE(s.rightAndBottom,h,d,p),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Uw(s.chartArea,(function(t){var n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}},QE=function(){function e(){Vt(this,e)}return Bt(e,[{key:"acquireContext",value:function(e,t){}},{key:"releaseContext",value:function(e){return!1}},{key:"addEventListener",value:function(e,t,n){}},{key:"removeEventListener",value:function(e,t,n){}},{key:"getDevicePixelRatio",value:function(){return 1}},{key:"getMaximumSize",value:function(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}},{key:"isAttached",value:function(e){return!0}},{key:"updateConfig",value:function(e){}}]),e}(),XE=function(e){Is(n,e);var t=Bs(n);function n(){return Vt(this,n),t.apply(this,arguments)}return Bt(n,[{key:"acquireContext",value:function(e){return e&&e.getContext&&e.getContext("2d")||null}},{key:"updateConfig",value:function(e){e.options.animation=!1}}]),n}(QE),$E={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},JE=function(e){return null===e||""===e};var eM=!!CS&&{passive:!0};function tM(e,t,n){e.canvas.removeEventListener(t,n,eM)}function nM(e,t){var n,r=Sw(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i===t||i.contains(t))return!0}}catch(a){r.e(a)}finally{r.f()}}function rM(e,t,n){var r=e.canvas,i=new MutationObserver((function(e){var t,i=!1,a=Sw(e);try{for(a.s();!(t=a.n()).done;){var o=t.value;i=(i=i||nM(o.addedNodes,r))&&!nM(o.removedNodes,r)}}catch(s){a.e(s)}finally{a.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function iM(e,t,n){var r=e.canvas,i=new MutationObserver((function(e){var t,i=!1,a=Sw(e);try{for(a.s();!(t=a.n()).done;){var o=t.value;i=(i=i||nM(o.removedNodes,r))&&!nM(o.addedNodes,r)}}catch(s){a.e(s)}finally{a.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}var aM=new Map,oM=0;function sM(){var e=window.devicePixelRatio;e!==oM&&(oM=e,aM.forEach((function(t,n){n.currentDevicePixelRatio!==e&&t()})))}function lM(e,t,n){var r=e.canvas,i=r&&mS(r);if(i){var a=Mw((function(e,t){var r=i.clientWidth;n(e,t),r<i.clientWidth&&n()}),window),o=new ResizeObserver((function(e){var t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||a(n,r)}));return o.observe(i),function(e,t){aM.size||window.addEventListener("resize",sM),aM.set(e,t)}(e,a),o}}function uM(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){aM.delete(e),aM.size||window.removeEventListener("resize",sM)}(e)}function cM(e,t,n){var r=e.canvas,i=Mw((function(t){null!==e.ctx&&n(function(e,t){var n=$E[e.type]||e.type,r=xS(e,t),i=r.x,a=r.y;return{type:n,chart:t,native:e,x:void 0!==i?i:null,y:void 0!==a?a:null}}(t,e))}),e,(function(e){var t=e[0];return[t,t.offsetX,t.offsetY]}));return function(e,t,n){e.addEventListener(t,n,eM)}(r,t,i),i}var dM=function(e){Is(n,e);var t=Bs(n);function n(){return Vt(this,n),t.apply(this,arguments)}return Bt(n,[{key:"acquireContext",value:function(e,t){var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){var n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e.$chartjs={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",JE(i)){var a=SS(e,"width");void 0!==a&&(e.width=a)}if(JE(r))if(""===e.style.height)e.height=e.width/(t||2);else{var o=SS(e,"height");void 0!==o&&(e.height=o)}}(e,t),n):null}},{key:"releaseContext",value:function(e){var t=e.canvas;if(!t.$chartjs)return!1;var n=t.$chartjs.initial;["height","width"].forEach((function(e){var r=n[e];jw(r)?t.removeAttribute(e):t.setAttribute(e,r)}));var r=n.style||{};return Object.keys(r).forEach((function(e){t.style[e]=r[e]})),t.width=t.width,delete t.$chartjs,!0}},{key:"addEventListener",value:function(e,t,n){this.removeEventListener(e,t);var r=e.$proxies||(e.$proxies={}),i={attach:rM,detach:iM,resize:lM}[t]||cM;r[t]=i(e,t,n)}},{key:"removeEventListener",value:function(e,t){var n=e.$proxies||(e.$proxies={}),r=n[t];r&&(({attach:uM,detach:uM,resize:uM}[t]||tM)(e,t,r),n[t]=void 0)}},{key:"getDevicePixelRatio",value:function(){return window.devicePixelRatio}},{key:"getMaximumSize",value:function(e,t,n,r){return wS(e,t,n,r)}},{key:"isAttached",value:function(e){var t=mS(e);return!(!t||!t.isConnected)}}]),n}(QE);var fM=function(){function e(){Vt(this,e),this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}return Bt(e,[{key:"tooltipPosition",value:function(e){var t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}},{key:"hasValue",value:function(){return dk(this.x)&&dk(this.y)}},{key:"getProps",value:function(e,t){var n=this,r=this.$animations;if(!t||!r)return this;var i={};return e.forEach((function(e){i[e]=r[e]&&r[e].active()?r[e]._to:n[e]})),i}}]),e}();fM.defaults={},fM.defaultRoutes=void 0;var hM={values:function(e){return Dw(e)?e:""+e},numeric:function(e,t,n){if(0===e)return"0";var r,i=this.chart.options.locale,a=e;if(n.length>1){var o=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(o<1e-4||o>1e15)&&(r="scientific"),a=function(e,t){var n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}var s=lk(Math.abs(a)),l=Math.max(Math.min(-1*Math.floor(s),20),0),u={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(u,this.options.ticks.format),NS(e,i,u)},logarithmic:function(e,t,n){if(0===e)return"0";var r=e/Math.pow(10,Math.floor(lk(e)));return 1===r||2===r||5===r?hM.numeric.call(this,e,t,n):""}};var pM={formatters:hM};function mM(e,t){var n=e.options.ticks,r=n.maxTicksLimit||function(e){var t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}(e),i=n.major.enabled?function(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++)e[t].major&&r.push(t);return r}(t):[],a=i.length,o=i[0],s=i[a-1],l=[];if(a>r)return function(e,t,n,r){var i,a=0,o=n[0];for(r=Math.ceil(r),i=0;i<e.length;i++)i===o&&(t.push(e[i]),o=n[++a*r])}(t,l,i,a/r),l;var u=function(e,t,n){var r=function(e){var t,n,r=e.length;if(r<2)return!1;for(n=e[0],t=1;t<r;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),i=t.length/n;if(!r)return Math.max(i,1);for(var a=function(e){var t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t===0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((function(e,t){return e-t})).pop(),n}(r),o=0,s=a.length-1;o<s;o++){var l=a[o];if(l>i)return l}return Math.max(i,1)}(i,t,r);if(a>0){var c,d,f=a>1?Math.round((s-o)/(a-1)):null;for(vM(t,l,u,jw(f)?0:o-f,o),c=0,d=a-1;c<d;c++)vM(t,l,u,i[c],i[c+1]);return vM(t,l,u,s,jw(f)?t.length:s+f),l}return vM(t,l,u),l}function vM(e,t,n,r,i){var a,o,s,l=Iw(r,0),u=Math.min(Iw(i,e.length),e.length),c=0;for(n=Math.ceil(n),i&&(n=(a=i-r)/Math.floor(a/n)),s=l;s<0;)c++,s=Math.round(l+c*n);for(o=Math.max(l,0);o<u;o++)o===s&&(t.push(e[o]),c++,s=Math.round(l+c*n))}pC.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:function(e,t){return t.lineWidth},tickColor:function(e,t){return t.color},offset:!1,borderDash:[],borderDashOffset:0,borderWidth: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:pM.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),pC.route("scale.ticks","color","","color"),pC.route("scale.grid","color","","borderColor"),pC.route("scale.grid","borderColor","","borderColor"),pC.route("scale.title","color","","color"),pC.describe("scale",{_fallback:!1,_scriptable:function(e){return!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e},_indexable:function(e){return"borderDash"!==e&&"tickBorderDash"!==e}}),pC.describe("scales",{_fallback:"scale"}),pC.describe("scale.ticks",{_scriptable:function(e){return"backdropPadding"!==e&&"callback"!==e},_indexable:function(e){return"backdropPadding"!==e}});var gM=function(e,t,n){return"top"===t||"left"===t?e[t]+n:e[t]-n};function yM(e,t){for(var n=[],r=e.length/t,i=e.length,a=0;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function bM(e,t,n){var r,i=e.ticks.length,a=Math.min(t,i-1),o=e._startPixel,s=e._endPixel,l=1e-6,u=e.getPixelForTick(a);if(!(n&&(r=1===i?Math.max(u-o,s-u):0===t?(e.getPixelForTick(1)-u)/2:(u-e.getPixelForTick(a-1))/2,(u+=a<t?r:-r)<o-l||u>s+l)))return u}function xM(e){return e.drawTicks?e.tickLength:0}function _M(e,t){if(!e.display)return 0;var n=IC(e.font,t),r=RC(e.padding);return(Dw(e.text)?e.text.length:1)*n.lineHeight+r.height}function wM(e,t,n){var r=Tw(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=function(e){return"left"===e?"right":"right"===e?"left":e}(r)),r}var kM=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this)).id=e.id,r.type=e.type,r.options=void 0,r.ctx=e.ctx,r.chart=e.chart,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r._margins={left:0,right:0,top:0,bottom:0},r.maxWidth=void 0,r.maxHeight=void 0,r.paddingTop=void 0,r.paddingBottom=void 0,r.paddingLeft=void 0,r.paddingRight=void 0,r.axis=void 0,r.labelRotation=void 0,r.min=void 0,r.max=void 0,r._range=void 0,r.ticks=[],r._gridLineItems=null,r._labelItems=null,r._labelSizes=null,r._length=0,r._maxLength=0,r._longestTextCache={},r._startPixel=void 0,r._endPixel=void 0,r._reversePixels=!1,r._userMax=void 0,r._userMin=void 0,r._suggestedMax=void 0,r._suggestedMin=void 0,r._ticksLength=0,r._borderValue=0,r._cache={},r._dataLimitsCached=!1,r.$context=void 0,r}return Bt(n,[{key:"init",value:function(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)}},{key:"parse",value:function(e,t){return e}},{key:"getUserBounds",value:function(){var e=this._userMin,t=this._userMax,n=this._suggestedMin,r=this._suggestedMax;return e=Rw(e,Number.POSITIVE_INFINITY),t=Rw(t,Number.NEGATIVE_INFINITY),n=Rw(n,Number.POSITIVE_INFINITY),r=Rw(r,Number.NEGATIVE_INFINITY),{min:Rw(e,n),max:Rw(t,r),minDefined:Aw(e),maxDefined:Aw(t)}}},{key:"getMinMax",value:function(e){var t,n=this.getUserBounds(),r=n.min,i=n.max,a=n.minDefined,o=n.maxDefined;if(a&&o)return{min:r,max:i};for(var s=this.getMatchingVisibleMetas(),l=0,u=s.length;l<u;++l)t=s[l].controller.getMinMax(this,e),a||(r=Math.min(r,t.min)),o||(i=Math.max(i,t.max));return{min:Rw(r=o&&r>i?i:r,Rw(i=a&&r>i?r:i,r)),max:Rw(i,Rw(r,i))}}},{key:"getPadding",value:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}},{key:"getTicks",value:function(){return this.ticks}},{key:"getLabels",value:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}},{key:"beforeLayout",value:function(){this._cache={},this._dataLimitsCached=!1}},{key:"beforeUpdate",value:function(){Fw(this.options.beforeUpdate,[this])}},{key:"update",value:function(e,t,n){var r=this.options,i=r.beginAtZero,a=r.grace,o=r.ticks,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){var r=e.min,i=e.max,a=zw(t,(i-r)/2),o=function(e,t){return n&&0===e?0:e+t};return{min:o(r,-Math.abs(a)),max:o(i,a)}}(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();var l=s<this.ticks.length;this._convertTicksToLabels(l?yM(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=mM(this,this.ticks),this._labelSizes=null),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}},{key:"configure",value:function(){var e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}},{key:"afterUpdate",value:function(){Fw(this.options.afterUpdate,[this])}},{key:"beforeSetDimensions",value:function(){Fw(this.options.beforeSetDimensions,[this])}},{key:"setDimensions",value:function(){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}},{key:"afterSetDimensions",value:function(){Fw(this.options.afterSetDimensions,[this])}},{key:"_callHooks",value:function(e){this.chart.notifyPlugins(e,this.getContext()),Fw(this.options[e],[this])}},{key:"beforeDataLimits",value:function(){this._callHooks("beforeDataLimits")}},{key:"determineDataLimits",value:function(){}},{key:"afterDataLimits",value:function(){this._callHooks("afterDataLimits")}},{key:"beforeBuildTicks",value:function(){this._callHooks("beforeBuildTicks")}},{key:"buildTicks",value:function(){return[]}},{key:"afterBuildTicks",value:function(){this._callHooks("afterBuildTicks")}},{key:"beforeTickToLabelConversion",value:function(){Fw(this.options.beforeTickToLabelConversion,[this])}},{key:"generateTickLabels",value:function(e){var t,n,r,i=this.options.ticks;for(t=0,n=e.length;t<n;t++)(r=e[t]).label=Fw(i.callback,[r.value,t,e],this)}},{key:"afterTickToLabelConversion",value:function(){Fw(this.options.afterTickToLabelConversion,[this])}},{key:"beforeCalculateLabelRotation",value:function(){Fw(this.options.beforeCalculateLabelRotation,[this])}},{key:"calculateLabelRotation",value:function(){var e,t,n,r=this.options,i=r.ticks,a=this.ticks.length,o=i.minRotation||0,s=i.maxRotation,l=o;if(!this._isVisible()||!i.display||o>=s||a<=1||!this.isHorizontal())this.labelRotation=o;else{var u=this._getLabelSizes(),c=u.widest.width,d=u.highest.height,f=wk(this.chart.width-c,0,this.maxWidth);c+6>(e=r.offset?this.maxWidth/a:f/(a-1))&&(e=f/(a-(r.offset?.5:1)),t=this.maxHeight-xM(r.grid)-i.padding-_M(r.title,this.chart.options.font),n=Math.sqrt(c*c+d*d),l=mk(Math.min(Math.asin(wk((u.highest.height+6)/e,-1,1)),Math.asin(wk(t/n,-1,1))-Math.asin(wk(d/n,-1,1)))),l=Math.max(o,Math.min(s,l))),this.labelRotation=l}}},{key:"afterCalculateLabelRotation",value:function(){Fw(this.options.afterCalculateLabelRotation,[this])}},{key:"beforeFit",value:function(){Fw(this.options.beforeFit,[this])}},{key:"fit",value:function(){var e={width:0,height:0},t=this.chart,n=this.options,r=n.ticks,i=n.title,a=n.grid,o=this._isVisible(),s=this.isHorizontal();if(o){var l=_M(i,t.options.font);if(s?(e.width=this.maxWidth,e.height=xM(a)+l):(e.height=this.maxHeight,e.width=xM(a)+l),r.display&&this.ticks.length){var u=this._getLabelSizes(),c=u.first,d=u.last,f=u.widest,h=u.highest,p=2*r.padding,m=pk(this.labelRotation),v=Math.cos(m),g=Math.sin(m);if(s){var y=r.mirror?0:g*f.width+v*h.height;e.height=Math.min(this.maxHeight,e.height+y+p)}else{var b=r.mirror?0:v*f.width+g*h.height;e.width=Math.min(this.maxWidth,e.width+b+p)}this._calculatePadding(c,d,g,v)}}this._handleMargins(),s?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}},{key:"_calculatePadding",value:function(e,t,n,r){var i=this.options,a=i.ticks,o=a.align,s=a.padding,l=i.position,u=0!==this.labelRotation,c="top"!==l&&"x"===this.axis;if(this.isHorizontal()){var d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1),h=0,p=0;u?c?(h=r*e.width,p=n*t.height):(h=n*e.height,p=r*t.width):"start"===o?p=t.width:"end"===o?h=e.width:(h=e.width/2,p=t.width/2),this.paddingLeft=Math.max((h-d+s)*this.width/(this.width-d),0),this.paddingRight=Math.max((p-f+s)*this.width/(this.width-f),0)}else{var m=t.height/2,v=e.height/2;"start"===o?(m=0,v=e.height):"end"===o&&(m=t.height,v=0),this.paddingTop=m+s,this.paddingBottom=v+s}}},{key:"_handleMargins",value:function(){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))}},{key:"afterFit",value:function(){Fw(this.options.afterFit,[this])}},{key:"isHorizontal",value:function(){var e=this.options,t=e.axis,n=e.position;return"top"===n||"bottom"===n||"x"===t}},{key:"isFullSize",value:function(){return this.options.fullSize}},{key:"_convertTicksToLabels",value:function(e){var t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)jw(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}},{key:"_getLabelSizes",value:function(){var e=this._labelSizes;if(!e){var t=this.options.ticks.sampleSize,n=this.ticks;t<n.length&&(n=yM(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length)}return e}},{key:"_computeLabelSizes",value:function(e,t){var n,r,i,a,o,s,l,u,c,d,f,h=this.ctx,p=this._longestTextCache,m=[],v=[],g=0,y=0;for(n=0;n<t;++n){if(a=e[n].label,o=this._resolveTickFontOptions(n),h.font=s=o.string,l=p[s]=p[s]||{data:{},gc:[]},u=o.lineHeight,c=d=0,jw(a)||Dw(a)){if(Dw(a))for(r=0,i=a.length;r<i;++r)jw(f=a[r])||Dw(f)||(c=mC(h,l.data,l.gc,c,f),d+=u)}else c=mC(h,l.data,l.gc,c,a),d=u;m.push(c),v.push(d),g=Math.max(c,g),y=Math.max(d,y)}!function(e,t){Uw(e,(function(e){var n,r=e.gc,i=r.length/2;if(i>t){for(n=0;n<i;++n)delete e.data[r[n]];r.splice(0,i)}}))}(p,t);var b=m.indexOf(g),x=v.indexOf(y),_=function(e){return{width:m[e]||0,height:v[e]||0}};return{first:_(0),last:_(t-1),widest:_(b),highest:_(x),widths:m,heights:v}}},{key:"getLabelForValue",value:function(e){return e}},{key:"getPixelForValue",value:function(e,t){return NaN}},{key:"getValueForPixel",value:function(e){}},{key:"getPixelForTick",value:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getPixelForDecimal",value:function(e){this._reversePixels&&(e=1-e);var t=this._startPixel+e*this._length;return function(e){return wk(e,-32768,32767)}(this._alignToPixels?gC(this.chart,t,0):t)}},{key:"getDecimalForPixel",value:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}},{key:"getBasePixel",value:function(){return this.getPixelForValue(this.getBaseValue())}},{key:"getBaseValue",value:function(){var e=this.min,t=this.max;return e<0&&t<0?t:e>0&&t>0?e:0}},{key:"getContext",value:function(e){var t=this.ticks||[];if(e>=0&&e<t.length){var n=t[e];return n.$context||(n.$context=function(e,t,n){return FC(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=FC(this.chart.getContext(),{scale:this,type:"scale"}))}},{key:"_tickSize",value:function(){var e=this.options.ticks,t=pk(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),i=this._getLabelSizes(),a=e.autoSkipPadding||0,o=i?i.widest.width+a:0,s=i?i.highest.height+a:0;return this.isHorizontal()?s*n>o*r?o/n:s/r:s*r<o*n?s/n:o/r}},{key:"_isVisible",value:function(){var e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}},{key:"_computeGridLineItems",value:function(e){var t,n,r,i,a,o,s,l,u,c,d,f,h=this.axis,p=this.chart,m=this.options,v=m.grid,g=m.position,y=v.offset,b=this.isHorizontal(),x=this.ticks.length+(y?1:0),_=xM(v),w=[],k=v.setContext(this.getContext()),C=k.drawBorder?k.borderWidth:0,S=C/2,E=function(e){return gC(p,e,C)};if("top"===g)t=E(this.bottom),o=this.bottom-_,l=t-S,c=E(e.top)+S,f=e.bottom;else if("bottom"===g)t=E(this.top),c=e.top,f=E(e.bottom)-S,o=t+S,l=this.top+_;else if("left"===g)t=E(this.right),a=this.right-_,s=t-S,u=E(e.left)+S,d=e.right;else if("right"===g)t=E(this.left),u=e.left,d=E(e.right)-S,a=t+S,s=this.left+_;else if("x"===h){if("center"===g)t=E((e.top+e.bottom)/2+.5);else if(Lw(g)){var M=Object.keys(g)[0],T=g[M];t=E(this.chart.scales[M].getPixelForValue(T))}c=e.top,f=e.bottom,l=(o=t+S)+_}else if("y"===h){if("center"===g)t=E((e.left+e.right)/2);else if(Lw(g)){var O=Object.keys(g)[0],N=g[O];t=E(this.chart.scales[O].getPixelForValue(N))}s=(a=t-S)-_,u=e.left,d=e.right}var P=Iw(m.ticks.maxTicksLimit,x),j=Math.max(1,Math.ceil(x/P));for(n=0;n<x;n+=j){var D=v.setContext(this.getContext(n)),L=D.lineWidth,A=D.color,R=v.borderDash||[],I=D.borderDashOffset,z=D.tickWidth,F=D.tickColor,U=D.tickBorderDash||[],B=D.tickBorderDashOffset;void 0!==(r=bM(this,n,y))&&(i=gC(p,r,L),b?a=s=u=d=i:o=l=c=f=i,w.push({tx1:a,ty1:o,tx2:s,ty2:l,x1:u,y1:c,x2:d,y2:f,width:L,color:A,borderDash:R,borderDashOffset:I,tickWidth:z,tickColor:F,tickBorderDash:U,tickBorderDashOffset:B}))}return this._ticksLength=x,this._borderValue=t,w}},{key:"_computeLabelItems",value:function(e){var t,n,r,i,a,o,s,l,u,c,d,f=this.axis,h=this.options,p=h.position,m=h.ticks,v=this.isHorizontal(),g=this.ticks,y=m.align,b=m.crossAlign,x=m.padding,_=m.mirror,w=xM(h.grid),k=w+x,C=_?-x:k,S=-pk(this.labelRotation),E=[],M="middle";if("top"===p)a=this.bottom-C,o=this._getXAxisLabelAlignment();else if("bottom"===p)a=this.top+C,o=this._getXAxisLabelAlignment();else if("left"===p){var T=this._getYAxisLabelAlignment(w);o=T.textAlign,i=T.x}else if("right"===p){var O=this._getYAxisLabelAlignment(w);o=O.textAlign,i=O.x}else if("x"===f){if("center"===p)a=(e.top+e.bottom)/2+k;else if(Lw(p)){var N=Object.keys(p)[0],P=p[N];a=this.chart.scales[N].getPixelForValue(P)+k}o=this._getXAxisLabelAlignment()}else if("y"===f){if("center"===p)i=(e.left+e.right)/2-k;else if(Lw(p)){var j=Object.keys(p)[0],D=p[j];i=this.chart.scales[j].getPixelForValue(D)}o=this._getYAxisLabelAlignment(w).textAlign}"y"===f&&("start"===y?M="top":"end"===y&&(M="bottom"));var L=this._getLabelSizes();for(t=0,n=g.length;t<n;++t){r=g[t].label;var A=m.setContext(this.getContext(t));s=this.getPixelForTick(t)+m.labelOffset,u=(l=this._resolveTickFontOptions(t)).lineHeight;var R=(c=Dw(r)?r.length:1)/2,I=A.color,z=A.textStrokeColor,F=A.textStrokeWidth;v?(i=s,d="top"===p?"near"===b||0!==S?-c*u+u/2:"center"===b?-L.highest.height/2-R*u+u:-L.highest.height+u/2:"near"===b||0!==S?u/2:"center"===b?L.highest.height/2-R*u:L.highest.height-c*u,_&&(d*=-1)):(a=s,d=(1-c)*u/2);var U=void 0;if(A.showLabelBackdrop){var B=RC(A.backdropPadding),V=L.heights[t],H=L.widths[t],W=a+d-B.top,Z=i-B.left;switch(M){case"middle":W-=V/2;break;case"bottom":W-=V}switch(o){case"center":Z-=H/2;break;case"right":Z-=H}U={left:Z,top:W,width:H+B.width,height:V+B.height,color:A.backdropColor}}E.push({rotation:S,label:r,font:l,color:I,strokeColor:z,strokeWidth:F,textOffset:d,textAlign:o,textBaseline:M,translation:[i,a],backdrop:U})}return E}},{key:"_getXAxisLabelAlignment",value:function(){var e=this.options,t=e.position,n=e.ticks;if(-pk(this.labelRotation))return"top"===t?"left":"right";var r="center";return"start"===n.align?r="left":"end"===n.align&&(r="right"),r}},{key:"_getYAxisLabelAlignment",value:function(e){var t,n,r=this.options,i=r.position,a=r.ticks,o=a.crossAlign,s=a.mirror,l=a.padding,u=e+l,c=this._getLabelSizes().widest.width;return"left"===i?s?(n=this.right+l,"near"===o?t="left":"center"===o?(t="center",n+=c/2):(t="right",n+=c)):(n=this.right-u,"near"===o?t="right":"center"===o?(t="center",n-=c/2):(t="left",n=this.left)):"right"===i?s?(n=this.left+l,"near"===o?t="right":"center"===o?(t="center",n-=c/2):(t="left",n-=c)):(n=this.left+u,"near"===o?t="left":"center"===o?(t="center",n+=c/2):(t="right",n=this.right)):t="right",{textAlign:t,x:n}}},{key:"_computeLabelArea",value:function(){if(!this.options.ticks.mirror){var e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}}},{key:"drawBackground",value:function(){var e=this.ctx,t=this.options.backgroundColor,n=this.left,r=this.top,i=this.width,a=this.height;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,a),e.restore())}},{key:"getLineWidthForValue",value:function(e){var t=this.options.grid;if(!this._isVisible()||!t.display)return 0;var n=this.ticks.findIndex((function(t){return t.value===e}));return n>=0?t.setContext(this.getContext(n)).lineWidth:0}},{key:"drawGrid",value:function(e){var t,n,r=this.options.grid,i=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e)),o=function(e,t,n){n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.stroke(),i.restore())};if(r.display)for(t=0,n=a.length;t<n;++t){var s=a[t];r.drawOnChartArea&&o({x:s.x1,y:s.y1},{x:s.x2,y:s.y2},s),r.drawTicks&&o({x:s.tx1,y:s.ty1},{x:s.tx2,y:s.ty2},{color:s.tickColor,width:s.tickWidth,borderDash:s.tickBorderDash,borderDashOffset:s.tickBorderDashOffset})}}},{key:"drawBorder",value:function(){var e=this.chart,t=this.ctx,n=this.options.grid,r=n.setContext(this.getContext()),i=n.drawBorder?r.borderWidth:0;if(i){var a,o,s,l,u=n.setContext(this.getContext(0)).lineWidth,c=this._borderValue;this.isHorizontal()?(a=gC(e,this.left,i)-i/2,o=gC(e,this.right,u)+u/2,s=l=c):(s=gC(e,this.top,i)-i/2,l=gC(e,this.bottom,u)+u/2,a=o=c),t.save(),t.lineWidth=r.borderWidth,t.strokeStyle=r.borderColor,t.beginPath(),t.moveTo(a,s),t.lineTo(o,l),t.stroke(),t.restore()}}},{key:"drawLabels",value:function(e){if(this.options.ticks.display){var t=this.ctx,n=this._computeLabelArea();n&&_C(t,n);var r,i,a=this._labelItems||(this._labelItems=this._computeLabelItems(e));for(r=0,i=a.length;r<i;++r){var o=a[r],s=o.font,l=o.label;o.backdrop&&(t.fillStyle=o.backdrop.color,t.fillRect(o.backdrop.left,o.backdrop.top,o.backdrop.width,o.backdrop.height)),SC(t,l,0,o.textOffset,s,o)}n&&wC(t)}}},{key:"drawTitle",value:function(){var e=this.ctx,t=this.options,n=t.position,r=t.title,i=t.reverse;if(r.display){var a=IC(r.font),o=RC(r.padding),s=r.align,l=a.lineHeight/2;"bottom"===n||"center"===n||Lw(n)?(l+=o.bottom,Dw(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;var u=function(e,t,n,r){var i,a,o,s=e.top,l=e.left,u=e.bottom,c=e.right,d=e.chart,f=d.chartArea,h=d.scales,p=0,m=u-s,v=c-l;if(e.isHorizontal()){if(a=Ow(r,l,c),Lw(n)){var g=Object.keys(n)[0],y=n[g];o=h[g].getPixelForValue(y)+m-t}else o="center"===n?(f.bottom+f.top)/2+m-t:gM(e,n,t);i=c-l}else{if(Lw(n)){var b=Object.keys(n)[0],x=n[b];a=h[b].getPixelForValue(x)-v+t}else a="center"===n?(f.left+f.right)/2-v+t:gM(e,n,t);o=Ow(r,u,s),p="left"===n?-ak:ak}return{titleX:a,titleY:o,maxWidth:i,rotation:p}}(this,l,n,s),c=u.titleX,d=u.titleY,f=u.maxWidth,h=u.rotation;SC(e,r.text,0,0,a,{color:r.color,maxWidth:f,rotation:h,textAlign:wM(s,n,i),textBaseline:"middle",translation:[c,d]})}}},{key:"draw",value:function(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}},{key:"_layers",value:function(){var e=this,t=this.options,r=t.ticks&&t.ticks.z||0,i=Iw(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===n.prototype.draw?[{z:i,draw:function(t){e.drawBackground(),e.drawGrid(t),e.drawTitle()}},{z:i+1,draw:function(){e.drawBorder()}},{z:r,draw:function(t){e.drawLabels(t)}}]:[{z:r,draw:function(t){e.draw(t)}}]}},{key:"getMatchingVisibleMetas",value:function(e){var t,n,r=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",a=[];for(t=0,n=r.length;t<n;++t){var o=r[t];o[i]!==this.id||e&&o.type!==e||a.push(o)}return a}},{key:"_resolveTickFontOptions",value:function(e){return IC(this.options.ticks.setContext(this.getContext(e)).font)}},{key:"_maxDigits",value:function(){var e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}]),n}(fM),CM=function(){function e(t,n,r){Vt(this,e),this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}return Bt(e,[{key:"isForType",value:function(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}},{key:"register",value:function(e){var t,n=Object.getPrototypeOf(e);(function(e){return"id"in e&&"defaults"in e})(n)&&(t=this.register(n));var r=this.items,i=e.id,a=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in r||(r[i]=e,function(e,t,n){var r=Zw(Object.create(null),[n?pC.get(n):{},pC.get(t),e.defaults]);pC.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((function(n){var r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");pC.route(a,i,l,s)}))}(t,e.defaultRoutes);e.descriptors&&pC.describe(t,e.descriptors)}(e,a,t),this.override&&pC.override(e.id,e.overrides)),a}},{key:"get",value:function(e){return this.items[e]}},{key:"unregister",value:function(e){var t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in pC[r]&&(delete pC[r][n],this.override&&delete uC[n])}}]),e}();var SM=function(){function e(){Vt(this,e),this.controllers=new CM(aE,"datasets",!0),this.elements=new CM(fM,"elements"),this.plugins=new CM(Object,"plugins"),this.scales=new CM(kM,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}return Bt(e,[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t)}},{key:"remove",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t)}},{key:"addControllers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.controllers)}},{key:"addElements",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.elements)}},{key:"addPlugins",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.plugins)}},{key:"addScales",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.scales)}},{key:"getController",value:function(e){return this._get(e,this.controllers,"controller")}},{key:"getElement",value:function(e){return this._get(e,this.elements,"element")}},{key:"getPlugin",value:function(e){return this._get(e,this.plugins,"plugin")}},{key:"getScale",value:function(e){return this._get(e,this.scales,"scale")}},{key:"removeControllers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.controllers)}},{key:"removeElements",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.elements)}},{key:"removePlugins",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.plugins)}},{key:"removeScales",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.scales)}},{key:"_each",value:function(e,t,n){var r=this;Ls(t).forEach((function(t){var i=n||r._getRegistryForType(t);n||i.isForType(t)||i===r.plugins&&t.id?r._exec(e,i,t):Uw(t,(function(t){var i=n||r._getRegistryForType(t);r._exec(e,i,t)}))}))}},{key:"_exec",value:function(e,t,n){var r=Qw(e);Fw(n["before"+r],[],n),t[e](n),Fw(n["after"+r],[],n)}},{key:"_getRegistryForType",value:function(e){for(var t=0;t<this._typedRegistries.length;t++){var n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}},{key:"_get",value:function(e,t,n){var r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}]),e}(),EM=new SM,MM=function(){function e(){Vt(this,e),this._init=[]}return Bt(e,[{key:"notify",value:function(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));var i=r?this._descriptors(e).filter(r):this._descriptors(e),a=this._notify(i,e,t,n);return"afterDestroy"===t&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),a}},{key:"_notify",value:function(e,t,n,r){r=r||{};var i,a=Sw(e);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.plugin;if(!1===Fw(s[n],[t,r,o.options],s)&&r.cancelable)return!1}}catch(l){a.e(l)}finally{a.f()}return!0}},{key:"invalidate",value:function(){jw(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}},{key:"_descriptors",value:function(e){if(this._cache)return this._cache;var t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}},{key:"_createDescriptors",value:function(e,t){var n=e&&e.config,r=Iw(n.options&&n.options.plugins,{}),i=function(e){for(var t=[],n=Object.keys(EM.plugins.items),r=0;r<n.length;r++)t.push(EM.getPlugin(n[r]));for(var i=e.plugins||[],a=0;a<i.length;a++){var o=i[a];-1===t.indexOf(o)&&t.push(o)}return t}(n);return!1!==r||t?function(e,t,n,r){for(var i=[],a=e.getContext(),o=0;o<t.length;o++){var s=t[o],l=TM(n[s.id],r);null!==l&&i.push({plugin:s,options:OM(e.config,s,l,a)})}return i}(e,i,r,t):[]}},{key:"_notifyStateChanges",value:function(e){var t=this._oldCache||[],n=this._cache,r=function(e,t){return e.filter((function(e){return!t.some((function(t){return e.plugin.id===t.plugin.id}))}))};this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}]),e}();function TM(e,t){return t||!1!==e?!0===e?{}:e:null}function OM(e,t,n,r){var i=e.pluginScopeKeys(t),a=e.getOptionScopes(n,i);return e.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function NM(e,t){var n=pC.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function PM(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(n=t.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.charAt(0).toLowerCase();var n}function jM(e){var t=e.options||(e.options={});t.plugins=Iw(t.plugins,{}),t.scales=function(e,t){var n=uC[e.type]||{scales:{}},r=t.scales||{},i=NM(e.type,t),a=Object.create(null),o=Object.create(null);return Object.keys(r).forEach((function(e){var t=r[e];if(!Lw(t))return console.error("Invalid scale configuration for scale: ".concat(e));if(t._proxy)return console.warn("Ignoring resolver passed as options for scale: ".concat(e));var s=PM(e,t),l=function(e,t){return e===t?"_index_":"_value_"}(s,i),u=n.scales||{};a[s]=a[s]||e,o[e]=Yw(Object.create(null),[{axis:s},t,u[s],u[l]])})),e.data.datasets.forEach((function(n){var i=n.type||e.type,s=n.indexAxis||NM(i,t),l=(uC[i]||{}).scales||{};Object.keys(l).forEach((function(e){var t=function(e,t){var n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,s),i=n[t+"AxisID"]||a[t]||t;o[i]=o[i]||Object.create(null),Yw(o[i],[{axis:t},r[i],l[e]])}))})),Object.keys(o).forEach((function(e){var t=o[e];Yw(t,[pC.scales[t.type],pC.scale])})),o}(e,t)}function DM(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}var LM=new Map,AM=new Set;function RM(e,t){var n=LM.get(e);return n||(n=t(),LM.set(e,n),AM.add(n)),n}var IM=function(e,t,n){var r=Kw(t,n);void 0!==r&&e.add(r)},zM=function(){function e(t){Vt(this,e),this._config=function(e){return(e=e||{}).data=DM(e.data),jM(e),e}(t),this._scopeCache=new Map,this._resolverCache=new Map}return Bt(e,[{key:"platform",get:function(){return this._config.platform}},{key:"type",get:function(){return this._config.type},set:function(e){this._config.type=e}},{key:"data",get:function(){return this._config.data},set:function(e){this._config.data=DM(e)}},{key:"options",get:function(){return this._config.options},set:function(e){this._config.options=e}},{key:"plugins",get:function(){return this._config.plugins}},{key:"update",value:function(){var e=this._config;this.clearCache(),jM(e)}},{key:"clearCache",value:function(){this._scopeCache.clear(),this._resolverCache.clear()}},{key:"datasetScopeKeys",value:function(e){return RM(e,(function(){return[["datasets.".concat(e),""]]}))}},{key:"datasetAnimationScopeKeys",value:function(e,t){return RM("".concat(e,".transition.").concat(t),(function(){return[["datasets.".concat(e,".transitions.").concat(t),"transitions.".concat(t)],["datasets.".concat(e),""]]}))}},{key:"datasetElementScopeKeys",value:function(e,t){return RM("".concat(e,"-").concat(t),(function(){return[["datasets.".concat(e,".elements.").concat(t),"datasets.".concat(e),"elements.".concat(t),""]]}))}},{key:"pluginScopeKeys",value:function(e){var t=e.id,n=this.type;return RM("".concat(n,"-plugin-").concat(t),(function(){return[["plugins.".concat(t)].concat(Ls(e.additionalOptionScopes||[]))]}))}},{key:"_cachedScopes",value:function(e,t){var n=this._scopeCache,r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}},{key:"getOptionScopes",value:function(e,t,n){var r=this.options,i=this.type,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;var s=new Set;t.forEach((function(t){e&&(s.add(e),t.forEach((function(t){return IM(s,e,t)}))),t.forEach((function(e){return IM(s,r,e)})),t.forEach((function(e){return IM(s,uC[i]||{},e)})),t.forEach((function(e){return IM(s,pC,e)})),t.forEach((function(e){return IM(s,cC,e)}))}));var l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),AM.has(t)&&a.set(t,l),l}},{key:"chartOptionScopes",value:function(){var e=this.options,t=this.type;return[e,uC[t]||{},pC.datasets[t]||{},{type:t},pC,cC]}},{key:"resolveNamedOptions",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""],i={$shared:!0},a=FM(this._resolverCache,e,r),o=a.resolver,s=a.subPrefixes,l=o;if(BM(o,t)){i.$shared=!1,n=$w(n)?n():n;var u=this.createResolver(e,n,s);l=qC(o,n,u)}var c,d=Sw(t);try{for(d.s();!(c=d.n()).done;){var f=c.value;i[f]=l[f]}}catch(h){d.e(h)}finally{d.f()}return i}},{key:"createResolver",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0,i=FM(this._resolverCache,e,n),a=i.resolver;return Lw(t)?qC(a,t,void 0,r):a}}]),e}();function FM(e,t,n){var r=e.get(t);r||(r=new Map,e.set(t,r));var i=n.join(),a=r.get(i);a||(a={resolver:YC(t,n),subPrefixes:n.filter((function(e){return!e.toLowerCase().includes("hover")}))},r.set(i,a));return a}var UM=function(e){return Lw(e)&&Object.getOwnPropertyNames(e).reduce((function(t,n){return t||$w(e[n])}),!1)};function BM(e,t){var n,r=GC(e),i=r.isScriptable,a=r.isIndexable,o=Sw(t);try{for(o.s();!(n=o.n()).done;){var s=n.value,l=i(s),u=a(s),c=(u||l)&&e[s];if(l&&($w(c)||UM(c))||u&&Dw(c))return!0}}catch(d){o.e(d)}finally{o.f()}return!1}var VM=["top","bottom","left","right","chartArea"];function HM(e,t){return"top"===e||"bottom"===e||-1===VM.indexOf(e)&&"x"===t}function WM(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function ZM(e){var t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Fw(n&&n.onComplete,[e],t)}function YM(e){var t=e.chart,n=t.options.animation;Fw(n&&n.onProgress,[e],t)}function qM(e){return pS()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var GM={},KM=function(e){var t=qM(e);return Object.values(GM).filter((function(e){return e.canvas===t})).pop()};function QM(e,t,n){for(var r=0,i=Object.keys(e);r<i.length;r++){var a=i[r],o=+a;if(o>=t){var s=e[a];delete e[a],(n>0||o>t)&&(e[o+n]=s)}}}var XM=function(){function e(t,n){var r=this;Vt(this,e);var i=this.config=new zM(n),a=qM(t),o=KM(a);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas can be reused.");var s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(e){return!pS()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?XE:dM}(a)),this.platform.updateConfig(i);var l=this.platform.acquireContext(a,s.aspectRatio),u=l&&l.canvas,c=u&&u.height,d=u&&u.width;this.id=Pw(),this.ctx=l,this.canvas=u,this.width=d,this.height=c,this._options=s,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 MM,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){var n;return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}((function(e){return r.update(e)}),s.resizeDelay||0),this._dataChanges=[],GM[this.id]=this,l&&u?(VS.listen(this,"complete",ZM),VS.listen(this,"progress",YM),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}return Bt(e,[{key:"aspectRatio",get:function(){var e=this.options,t=e.aspectRatio,n=e.maintainAspectRatio,r=this.width,i=this.height,a=this._aspectRatio;return jw(t)?n&&a?a:i?r/i:null:t}},{key:"data",get:function(){return this.config.data},set:function(e){this.config.data=e}},{key:"options",get:function(){return this._options},set:function(e){this.config.options=e}},{key:"_initialize",value:function(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():kS(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}},{key:"clear",value:function(){return yC(this.canvas,this.ctx),this}},{key:"stop",value:function(){return VS.stop(this),this}},{key:"resize",value:function(e,t){VS.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}},{key:"_resize",value:function(e,t){var n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,kS(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),Fw(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}},{key:"ensureScalesHaveIDs",value:function(){Uw(this.options.scales||{},(function(e,t){e.id=t}))}},{key:"buildOrUpdateScales",value:function(){var e=this,t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((function(e,t){return e[t]=!1,e}),{}),a=[];n&&(a=a.concat(Object.keys(n).map((function(e){var t=n[e],r=PM(e,t),i="r"===r,a="x"===r;return{options:t,dposition:i?"chartArea":a?"bottom":"left",dtype:i?"radialLinear":a?"category":"linear"}})))),Uw(a,(function(n){var a=n.options,o=a.id,s=PM(o,a),l=Iw(a.type,n.dtype);void 0!==a.position&&HM(a.position,s)===HM(n.dposition)||(a.position=n.dposition),i[o]=!0;var u=null;o in r&&r[o].type===l?u=r[o]:(u=new(EM.getScale(l))({id:o,type:l,ctx:e.ctx,chart:e}),r[u.id]=u);u.init(a,t)})),Uw(i,(function(e,t){e||delete r[t]})),Uw(r,(function(t){GE(e,t,t.options),YE(e,t)}))}},{key:"_updateMetasets",value:function(){var e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((function(e,t){return e.index-t.index})),n>t){for(var r=t;r<n;++r)this._destroyDatasetMeta(r);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(WM("order","index"))}},{key:"_removeUnreferencedMetasets",value:function(){var e=this,t=this._metasets,n=this.data.datasets;t.length>n.length&&delete this._stacks,t.forEach((function(t,r){0===n.filter((function(e){return e===t._dataset})).length&&e._destroyDatasetMeta(r)}))}},{key:"buildOrUpdateControllers",value:function(){var e,t,n=[],r=this.data.datasets;for(this._removeUnreferencedMetasets(),e=0,t=r.length;e<t;e++){var i=r[e],a=this.getDatasetMeta(e),o=i.type||this.config.type;if(a.type&&a.type!==o&&(this._destroyDatasetMeta(e),a=this.getDatasetMeta(e)),a.type=o,a.indexAxis=i.indexAxis||NM(o,this.options),a.order=i.order||0,a.index=e,a.label=""+i.label,a.visible=this.isDatasetVisible(e),a.controller)a.controller.updateIndex(e),a.controller.linkScales();else{var s=EM.getController(o),l=pC.datasets[o],u=l.datasetElementType,c=l.dataElementType;Object.assign(s.prototype,{dataElementType:EM.getElement(c),datasetElementType:u&&EM.getElement(u)}),a.controller=new s(this,e),n.push(a.controller)}}return this._updateMetasets(),n}},{key:"_resetElements",value:function(){var e=this;Uw(this.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),this)}},{key:"reset",value:function(){this._resetElements(),this.notifyPlugins("reset")}},{key:"update",value:function(e){var t=this.config;t.update();var n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1!==this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})){var i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");for(var a=0,o=0,s=this.data.datasets.length;o<s;o++){var l=this.getDatasetMeta(o).controller,u=!r&&-1===i.indexOf(l);l.buildOrUpdateElements(u),a=Math.max(+l.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),r||Uw(i,(function(e){e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(WM("z","_idx"));var c=this._active,d=this._lastEvent;d?this._eventHandler(d,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}}},{key:"_updateScales",value:function(){var e=this;Uw(this.scales,(function(t){qE(e,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}},{key:"_checkEventBindings",value:function(){var e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);Jw(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}},{key:"_updateHiddenIndices",value:function(){var e,t=this._hiddenIndices,n=Sw(this._getUniformDataChanges()||[]);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.method,a=r.start,o=r.count;QM(t,a,"_removeElements"===i?-o:o)}}catch(s){n.e(s)}finally{n.f()}}},{key:"_getUniformDataChanges",value:function(){var e=this._dataChanges;if(e&&e.length){this._dataChanges=[];for(var t=this.data.datasets.length,n=function(t){return new Set(e.filter((function(e){return e[0]===t})).map((function(e,t){return t+","+e.splice(1).join(",")})))},r=n(0),i=1;i<t;i++)if(!Jw(r,n(i)))return;return Array.from(r).map((function(e){return e.split(",")})).map((function(e){return{method:e[1],start:+e[2],count:+e[3]}}))}}},{key:"_updateLayout",value:function(e){var t=this;if(!1!==this.notifyPlugins("beforeLayout",{cancelable:!0})){KE(this,this.width,this.height,e);var n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Uw(this.boxes,(function(e){var n;r&&"chartArea"===e.position||(e.configure&&e.configure(),(n=t._layers).push.apply(n,Ls(e._layers())))}),this),this._layers.forEach((function(e,t){e._idx=t})),this.notifyPlugins("afterLayout")}}},{key:"_updateDatasets",value:function(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(var t=0,n=this.data.datasets.length;t<n;++t)this.getDatasetMeta(t).controller.configure();for(var r=0,i=this.data.datasets.length;r<i;++r)this._updateDataset(r,$w(e)?e({datasetIndex:r}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}},{key:"_updateDataset",value:function(e,t){var n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}},{key:"render",value:function(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(VS.has(this)?this.attached&&!VS.running(this)&&VS.start(this):(this.draw(),ZM({chart:this})))}},{key:"draw",value:function(){var e;if(this._resizeBeforeDraw){var t=this._resizeBeforeDraw,n=t.width,r=t.height;this._resize(n,r),this._resizeBeforeDraw=null}if(this.clear(),!(this.width<=0||this.height<=0)&&!1!==this.notifyPlugins("beforeDraw",{cancelable:!0})){var i=this._layers;for(e=0;e<i.length&&i[e].z<=0;++e)i[e].draw(this.chartArea);for(this._drawDatasets();e<i.length;++e)i[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}}},{key:"_getSortedDatasetMetas",value:function(e){var t,n,r=this._sortedMetasets,i=[];for(t=0,n=r.length;t<n;++t){var a=r[t];e&&!a.visible||i.push(a)}return i}},{key:"getSortedVisibleDatasetMetas",value:function(){return this._getSortedDatasetMetas(!0)}},{key:"_drawDatasets",value:function(){if(!1!==this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})){for(var e=this.getSortedVisibleDatasetMetas(),t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}}},{key:"_drawDataset",value:function(e){var t=this.ctx,n=e._clip,r=!n.disabled,i=this.chartArea,a={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(r&&_C(t,{left:!1===n.left?0:i.left-n.left,right:!1===n.right?this.width:i.right+n.right,top:!1===n.top?0:i.top-n.top,bottom:!1===n.bottom?this.height:i.bottom+n.bottom}),e.controller.draw(),r&&wC(t),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}},{key:"getElementsAtEventForMode",value:function(e,t,n,r){var i=DE.modes[t];return"function"===typeof i?i(this,e,n,r):[]}},{key:"getDatasetMeta",value:function(e){var t=this.data.datasets[e],n=this._metasets,r=n.filter((function(e){return e&&e._dataset===t})).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}},{key:"getContext",value:function(){return this.$context||(this.$context=FC(null,{chart:this,type:"chart"}))}},{key:"getVisibleDatasetCount",value:function(){return this.getSortedVisibleDatasetMetas().length}},{key:"isDatasetVisible",value:function(e){var t=this.data.datasets[e];if(!t)return!1;var n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}},{key:"setDatasetVisibility",value:function(e,t){this.getDatasetMeta(e).hidden=!t}},{key:"toggleDataVisibility",value:function(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}},{key:"getDataVisibility",value:function(e){return!this._hiddenIndices[e]}},{key:"_updateVisibility",value:function(e,t,n){var r=n?"show":"hide",i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);Xw(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update((function(t){return t.datasetIndex===e?r:void 0})))}},{key:"hide",value:function(e,t){this._updateVisibility(e,t,!1)}},{key:"show",value:function(e,t){this._updateVisibility(e,t,!0)}},{key:"_destroyDatasetMeta",value:function(e){var t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}},{key:"_stop",value:function(){var e,t;for(this.stop(),VS.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}},{key:"destroy",value:function(){this.notifyPlugins("beforeDestroy");var e=this.canvas,t=this.ctx;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),yC(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete GM[this.id],this.notifyPlugins("afterDestroy")}},{key:"toBase64Image",value:function(){var e;return(e=this.canvas).toDataURL.apply(e,arguments)}},{key:"bindEvents",value:function(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}},{key:"bindUserEvents",value:function(){var e=this,t=this._listeners,n=this.platform,r=function(t,n,r){t.offsetX=n,t.offsetY=r,e._eventHandler(t)};Uw(this.options.events,(function(i){return function(r,i){n.addEventListener(e,r,i),t[r]=i}(i,r)}))}},{key:"bindResponsiveEvents",value:function(){var e=this;this._responsiveListeners||(this._responsiveListeners={});var t,n=this._responsiveListeners,r=this.platform,i=function(t,i){r.addEventListener(e,t,i),n[t]=i},a=function(t,i){n[t]&&(r.removeEventListener(e,t,i),delete n[t])},o=function(t,n){e.canvas&&e.resize(t,n)},s=function n(){a("attach",n),e.attached=!0,e.resize(),i("resize",o),i("detach",t)};t=function(){e.attached=!1,a("resize",o),e._stop(),e._resize(0,0),i("attach",s)},r.isAttached(this.canvas)?s():t()}},{key:"unbindEvents",value:function(){var e=this;Uw(this._listeners,(function(t,n){e.platform.removeEventListener(e,n,t)})),this._listeners={},Uw(this._responsiveListeners,(function(t,n){e.platform.removeEventListener(e,n,t)})),this._responsiveListeners=void 0}},{key:"updateHoverStyle",value:function(e,t,n){var r,i,a,o=n?"set":"remove";for("dataset"===t&&this.getDatasetMeta(e[0].datasetIndex).controller["_"+o+"DatasetHoverStyle"](),i=0,a=e.length;i<a;++i){var s=(r=e[i])&&this.getDatasetMeta(r.datasetIndex).controller;s&&s[o+"HoverStyle"](r.element,r.datasetIndex,r.index)}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e){var t=this,n=this._active||[],r=e.map((function(e){var n=e.datasetIndex,r=e.index,i=t.getDatasetMeta(n);if(!i)throw new Error("No dataset found at index "+n);return{datasetIndex:n,element:i.data[r],index:r}}));!Bw(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}},{key:"notifyPlugins",value:function(e,t,n){return this._plugins.notify(this,e,t,n)}},{key:"_updateHoverStyles",value:function(e,t,n){var r=this.options.hover,i=function(e,t){return e.filter((function(e){return!t.some((function(t){return e.datasetIndex===t.datasetIndex&&e.index===t.index}))}))},a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}},{key:"_eventHandler",value:function(e,t){var n=this,r={event:e,replay:t,cancelable:!0,inChartArea:xC(e,this.chartArea,this._minPadding)},i=function(t){return(t.options.events||n.options.events).includes(e.native.type)};if(!1!==this.notifyPlugins("beforeEvent",r,i)){var a=this._handleEvent(e,t,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}}},{key:"_handleEvent",value:function(e,t,n){var r=this._active,i=void 0===r?[]:r,a=this.options,o=t,s=this._getActiveElements(e,i,n,o),l=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),u=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,l);n&&(this._lastEvent=null,Fw(a.onHover,[e,s,this],this),l&&Fw(a.onClick,[e,s,this],this));var c=!Bw(s,i);return(c||t)&&(this._active=s,this._updateHoverStyles(s,i,t)),this._lastEvent=u,c}},{key:"_getActiveElements",value:function(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;var i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}}]),e}(),$M=function(){return Uw(XM.instances,(function(e){return e._plugins.invalidate()}))},JM=!0;function eT(e,t,n){var r=t.startAngle,i=t.pixelMargin,a=t.x,o=t.y,s=t.outerRadius,l=t.innerRadius,u=i/s;e.beginPath(),e.arc(a,o,s,r-u,n+u),l>i?(u=i/l,e.arc(a,o,l,n+u,r-u,!0)):e.arc(a,o,i,n+ak,r-ak),e.closePath(),e.clip()}function tT(e,t,n,r){var i=function(e){return DC(e,["outerStart","outerEnd","innerStart","innerEnd"])}(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=function(e){var t=(n-Math.min(a,e))*r/2;return wk(e,0,Math.min(a,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:wk(i.innerStart,0,o),innerEnd:wk(i.innerEnd,0,o)}}function nT(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function rT(e,t,n,r,i){var a=t.x,o=t.y,s=t.startAngle,l=t.pixelMargin,u=t.innerRadius,c=Math.max(t.outerRadius+r+n-l,0),d=u>0?u+r+n+l:0,f=0,h=i-s;if(r){var p=((u>0?u-r:0)+(c>0?c-r:0))/2;f=(h-(0!==p?h*p/(p+r):h))/2}var m=(h-Math.max(.001,h*c-n/ek)/c)/2,v=s+m+f,g=i-m-f,y=tT(t,d,c,g-v),b=y.outerStart,x=y.outerEnd,_=y.innerStart,w=y.innerEnd,k=c-b,C=c-x,S=v+b/k,E=g-x/C,M=d+_,T=d+w,O=v+_/M,N=g-w/T;if(e.beginPath(),e.arc(a,o,c,S,E),x>0){var P=nT(C,E,a,o);e.arc(P.x,P.y,x,E,g+ak)}var j=nT(T,g,a,o);if(e.lineTo(j.x,j.y),w>0){var D=nT(T,N,a,o);e.arc(D.x,D.y,w,g+ak,N+Math.PI)}if(e.arc(a,o,d,g-w/d,v+_/d,!0),_>0){var L=nT(M,O,a,o);e.arc(L.x,L.y,_,O+Math.PI,v-ak)}var A=nT(k,v,a,o);if(e.lineTo(A.x,A.y),b>0){var R=nT(k,S,a,o);e.arc(R.x,R.y,b,v-ak,S)}e.closePath()}function iT(e,t,n,r,i){var a=t.options,o=a.borderWidth,s=a.borderJoinStyle,l="inner"===a.borderAlign;o&&(l?(e.lineWidth=2*o,e.lineJoin=s||"round"):(e.lineWidth=o,e.lineJoin=s||"bevel"),t.fullCircles&&function(e,t,n){var r,i=t.x,a=t.y,o=t.startAngle,s=t.pixelMargin,l=t.fullCircles,u=Math.max(t.outerRadius-s,0),c=t.innerRadius+s;for(n&&eT(e,t,o+tk),e.beginPath(),e.arc(i,a,c,o+tk,o,!0),r=0;r<l;++r)e.stroke();for(e.beginPath(),e.arc(i,a,u,o,o+tk),r=0;r<l;++r)e.stroke()}(e,t,l),l&&eT(e,t,i),rT(e,t,n,r,i),e.stroke())}Object.defineProperties(XM,{defaults:{enumerable:JM,value:pC},instances:{enumerable:JM,value:GM},overrides:{enumerable:JM,value:uC},registry:{enumerable:JM,value:EM},version:{enumerable:JM,value:"3.7.1"},getChart:{enumerable:JM,value:KM},register:{enumerable:JM,value:function(){EM.add.apply(EM,arguments),$M()}},unregister:{enumerable:JM,value:function(){EM.remove.apply(EM,arguments),$M()}}});var aT=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this)).options=void 0,r.circumference=void 0,r.startAngle=void 0,r.endAngle=void 0,r.innerRadius=void 0,r.outerRadius=void 0,r.pixelMargin=0,r.fullCircles=0,e&&Object.assign(As(r),e),r}return Bt(n,[{key:"inRange",value:function(e,t,n){var r=gk(this.getProps(["x","y"],n),{x:e,y:t}),i=r.angle,a=r.distance,o=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),s=o.startAngle,l=o.endAngle,u=o.innerRadius,c=o.outerRadius,d=o.circumference,f=this.options.spacing/2,h=Iw(d,l-s)>=tk||_k(i,s,l),p=kk(a,u+f,c+f);return h&&p}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),n=t.x,r=t.y,i=t.startAngle,a=t.endAngle,o=t.innerRadius,s=t.outerRadius,l=this.options,u=l.offset,c=(i+a)/2,d=(o+s+l.spacing+u)/2;return{x:n+Math.cos(c)*d,y:r+Math.sin(c)*d}}},{key:"tooltipPosition",value:function(e){return this.getCenterPoint(e)}},{key:"draw",value:function(e){var t=this.options,n=this.circumference,r=(t.offset||0)/2,i=(t.spacing||0)/2;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>tk?Math.floor(n/tk):0,!(0===n||this.innerRadius<0||this.outerRadius<0)){e.save();var a=0;if(r){a=r/2;var o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*a,Math.sin(o)*a),this.circumference>=ek&&(a=r)}e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor;var s=function(e,t,n,r){var i=t.fullCircles,a=t.startAngle,o=t.circumference,s=t.endAngle;if(i){rT(e,t,n,r,a+tk);for(var l=0;l<i;++l)e.fill();isNaN(o)||(s=a+o%tk,o%tk===0&&(s+=tk))}return rT(e,t,n,r,s),e.fill(),s}(e,this,a,i);iT(e,this,a,i,s),e.restore()}}}]),n}(fM);function oT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=Iw(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Iw(n.borderDash,t.borderDash)),e.lineDashOffset=Iw(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Iw(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Iw(n.borderWidth,t.borderWidth),e.strokeStyle=Iw(n.borderColor,t.borderColor)}function sT(e,t,n){e.lineTo(n.x,n.y)}function lT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.length,i=n.start,a=void 0===i?0:i,o=n.end,s=void 0===o?r-1:o,l=t.start,u=t.end,c=Math.max(a,l),d=Math.min(s,u),f=a<l&&s<l||a>u&&s>u;return{count:r,start:c,loop:t.loop,ilen:d<c&&!f?r+d-c:d-c}}function uT(e,t,n,r){var i,a,o,s=t.points,l=t.options,u=lT(s,n,r),c=u.count,d=u.start,f=u.loop,h=u.ilen,p=function(e){return e.stepped?kC:e.tension||"monotone"===e.cubicInterpolationMode?CC:sT}(l),m=r||{},v=m.move,g=void 0===v||v,y=m.reverse;for(i=0;i<=h;++i)(a=s[(d+(y?h-i:i))%c]).skip||(g?(e.moveTo(a.x,a.y),g=!1):p(e,o,a,y,l.stepped),o=a);return f&&p(e,o,a=s[(d+(y?h:0))%c],y,l.stepped),!!f}function cT(e,t,n,r){var i,a,o,s,l,u,c=t.points,d=lT(c,n,r),f=d.count,h=d.start,p=d.ilen,m=r||{},v=m.move,g=void 0===v||v,y=m.reverse,b=0,x=0,_=function(e){return(h+(y?p-e:e))%f},w=function(){s!==l&&(e.lineTo(b,l),e.lineTo(b,s),e.lineTo(b,u))};for(g&&(a=c[_(0)],e.moveTo(a.x,a.y)),i=0;i<=p;++i)if(!(a=c[_(i)]).skip){var k=a.x,C=a.y,S=0|k;S===o?(C<s?s=C:C>l&&(l=C),b=(x*b+k)/++x):(w(),e.lineTo(k,C),o=S,x=0,s=l=C),u=C}w()}function dT(e){var t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?cT:uT}aT.id="arc",aT.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},aT.defaultRoutes={backgroundColor:"backgroundColor"};var fT="function"===typeof Path2D;function hT(e,t,n,r){fT&&!t.options.segment?function(e,t,n,r){var i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),oT(e,t.options),e.stroke(i)}(e,t,n,r):function(e,t,n,r){var i,a=t.segments,o=t.options,s=dT(t),l=Sw(a);try{for(l.s();!(i=l.n()).done;){var u=i.value;oT(e,o,u.style),e.beginPath(),s(e,t,u,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}}catch(c){l.e(c)}finally{l.f()}}(e,t,n,r)}var pT=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this)).animated=!0,r.options=void 0,r._chart=void 0,r._loop=void 0,r._fullLoop=void 0,r._path=void 0,r._points=void 0,r._segments=void 0,r._decimated=!1,r._pointsUpdated=!1,r._datasetIndex=void 0,e&&Object.assign(As(r),e),r}return Bt(n,[{key:"updateControlPoints",value:function(e,t){var n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){var r=n.spanGaps?this._loop:this._fullLoop;hS(this._points,n,e,r,t),this._pointsUpdated=!0}}},{key:"points",get:function(){return this._points},set:function(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}},{key:"segments",get:function(){return this._segments||(this._segments=function(e,t){var n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];var a=!!e._loop,o=function(e,t,n,r){var i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return{start:i,end:a%=t}}(n,i,a,r),s=o.start,l=o.end;return zS(e,!0===r?[{start:s,end:l,loop:a}]:function(e,t,n,r){var i,a=e.length,o=[],s=t,l=e[t];for(i=t+1;i<=n;++i){var u=e[i%a];u.skip||u.stop?l.skip||(r=!1,o.push({start:t%a,end:(i-1)%a,loop:r}),t=s=u.stop?i:null):(s=i,l.skip&&(t=i)),l=u}return null!==s&&o.push({start:t%a,end:s%a,loop:r}),o}(n,s,l<s?l+i:l,!!e._fullLoop&&0===s&&l===i-1),n,t)}(this,this.options.segment))}},{key:"first",value:function(){var e=this.segments,t=this.points;return e.length&&t[e[0].start]}},{key:"last",value:function(){var e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}},{key:"interpolate",value:function(e,t){var n=this.options,r=e[t],i=this.points,a=IS(this,{property:t,start:r,end:r});if(a.length){var o,s,l=[],u=function(e){return e.stepped?MS:e.tension||"monotone"===e.cubicInterpolationMode?TS:ES}(n);for(o=0,s=a.length;o<s;++o){var c=a[o],d=c.start,f=c.end,h=i[d],p=i[f];if(h!==p){var m=u(h,p,Math.abs((r-h[t])/(p[t]-h[t])),n.stepped);m[t]=e[t],l.push(m)}else l.push(h)}return 1===l.length?l[0]:l}}},{key:"pathSegment",value:function(e,t,n){return dT(this)(e,this,t,n)}},{key:"path",value:function(e,t,n){var r=this.segments,i=dT(this),a=this._loop;t=t||0,n=n||this.points.length-t;var o,s=Sw(r);try{for(s.s();!(o=s.n()).done;){a&=i(e,this,o.value,{start:t,end:t+n-1})}}catch(l){s.e(l)}finally{s.f()}return!!a}},{key:"draw",value:function(e,t,n,r){var i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),hT(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}]),n}(fM);function mT(e,t,n,r){var i=e.options,a=e.getProps([n],r)[n];return Math.abs(t-a)<i.radius+i.hitRadius}pT.id="line",pT.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},pT.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},pT.descriptors={_scriptable:!0,_indexable:function(e){return"borderDash"!==e&&"fill"!==e}};var vT=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this)).options=void 0,r.parsed=void 0,r.skip=void 0,r.stop=void 0,e&&Object.assign(As(r),e),r}return Bt(n,[{key:"inRange",value:function(e,t,n){var r=this.options,i=this.getProps(["x","y"],n),a=i.x,o=i.y;return Math.pow(e-a,2)+Math.pow(t-o,2)<Math.pow(r.hitRadius+r.radius,2)}},{key:"inXRange",value:function(e,t){return mT(this,e,"x",t)}},{key:"inYRange",value:function(e,t){return mT(this,e,"y",t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}},{key:"size",value:function(e){var t=(e=e||this.options||{}).radius||0;return 2*((t=Math.max(t,t&&e.hoverRadius||0))+(t&&e.borderWidth||0))}},{key:"draw",value:function(e,t){var n=this.options;this.skip||n.radius<.1||!xC(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,bC(e,n,this.x,this.y))}},{key:"getRange",value:function(){var e=this.options||{};return e.radius+e.hitRadius}}]),n}(fM);function gT(e,t){var n,r,i,a,o,s=e.getProps(["x","y","base","width","height"],t),l=s.x,u=s.y,c=s.base,d=s.width,f=s.height;return e.horizontal?(o=f/2,n=Math.min(l,c),r=Math.max(l,c),i=u-o,a=u+o):(n=l-(o=d/2),r=l+o,i=Math.min(u,c),a=Math.max(u,c)),{left:n,top:i,right:r,bottom:a}}function yT(e,t,n,r){return e?0:wk(t,n,r)}function bT(e){var t=gT(e),n=t.right-t.left,r=t.bottom-t.top,i=function(e,t,n){var r=e.options.borderWidth,i=e.borderSkipped,a=LC(r);return{t:yT(i.top,a.top,0,n),r:yT(i.right,a.right,0,t),b:yT(i.bottom,a.bottom,0,n),l:yT(i.left,a.left,0,t)}}(e,n/2,r/2),a=function(e,t,n){var r=e.getProps(["enableBorderRadius"]).enableBorderRadius,i=e.options.borderRadius,a=AC(i),o=Math.min(t,n),s=e.borderSkipped,l=r||Lw(i);return{topLeft:yT(!l||s.top||s.left,a.topLeft,0,o),topRight:yT(!l||s.top||s.right,a.topRight,0,o),bottomLeft:yT(!l||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:yT(!l||s.bottom||s.right,a.bottomRight,0,o)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function xT(e,t,n,r){var i=null===t,a=null===n,o=e&&!(i&&a)&&gT(e,r);return o&&(i||kk(t,o.left,o.right))&&(a||kk(n,o.top,o.bottom))}function _T(e,t){e.rect(t.x,t.y,t.w,t.h)}function wT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,o=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}vT.id="point",vT.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},vT.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var kT=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this)).options=void 0,r.horizontal=void 0,r.base=void 0,r.width=void 0,r.height=void 0,r.inflateAmount=void 0,e&&Object.assign(As(r),e),r}return Bt(n,[{key:"draw",value:function(e){var t,n=this.inflateAmount,r=this.options,i=r.borderColor,a=r.backgroundColor,o=bT(this),s=o.inner,l=o.outer,u=(t=l.radius).topLeft||t.topRight||t.bottomLeft||t.bottomRight?TC:_T;e.save(),l.w===s.w&&l.h===s.h||(e.beginPath(),u(e,wT(l,n,s)),e.clip(),u(e,wT(s,-n,l)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),u(e,wT(s,n)),e.fillStyle=a,e.fill(),e.restore()}},{key:"inRange",value:function(e,t,n){return xT(this,e,t,n)}},{key:"inXRange",value:function(e,t){return xT(this,e,null,t)}},{key:"inYRange",value:function(e,t){return xT(this,null,e,t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","base","horizontal"],e),n=t.x,r=t.y,i=t.base,a=t.horizontal;return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}},{key:"getRange",value:function(e){return"x"===e?this.width/2:this.height/2}}]),n}(fM);kT.id="bar",kT.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},kT.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var CT=Object.freeze({__proto__:null,ArcElement:aT,LineElement:pT,PointElement:vT,BarElement:kT});function ST(e){if(e._decimated){var t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function ET(e){e.data.datasets.forEach((function(e){ST(e)}))}var MT={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:function(e,t,n){if(n.enabled){var r=e.width;e.data.datasets.forEach((function(t,i){var a=t._data,o=t.indexAxis,s=e.getDatasetMeta(i),l=a||t.data;if("y"!==zC([o,e.options.indexAxis])&&"line"===s.type){var u=e.scales[s.xAxisID];if(("linear"===u.type||"time"===u.type)&&!e.options.parsing){var c=function(e,t){var n=t.length,r=0,i=e.iScale,a=i.getUserBounds(),o=a.min,s=a.max,l=a.minDefined,u=a.maxDefined;return l&&(r=wk(BC(t,i.axis,o).lo,0,n-1)),{start:r,count:u?wk(BC(t,i.axis,s).hi+1,r,n)-r:n-r}}(s,l),d=c.start,f=c.count;if(f<=(n.threshold||4*r))ST(t);else{var h;switch(jw(a)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":h=function(e,t,n,r,i){var a=i.samples||r;if(a>=n)return e.slice(t,t+n);var o,s,l,u,c,d=[],f=(n-2)/(a-2),h=0,p=t+n-1,m=t;for(d[h++]=e[m],o=0;o<a-2;o++){var v=0,g=0,y=void 0,b=Math.floor((o+1)*f)+1+t,x=Math.min(Math.floor((o+2)*f)+1,n)+t,_=x-b;for(y=b;y<x;y++)v+=e[y].x,g+=e[y].y;v/=_,g/=_;var w=Math.floor(o*f)+1+t,k=Math.min(Math.floor((o+1)*f)+1,n)+t,C=e[m],S=C.x,E=C.y;for(l=u=-1,y=w;y<k;y++)(u=.5*Math.abs((S-v)*(e[y].y-E)-(S-e[y].x)*(g-E)))>l&&(l=u,s=e[y],c=y);d[h++]=s,m=c}return d[h++]=e[p],d}(l,d,f,r,n);break;case"min-max":h=function(e,t,n,r){var i,a,o,s,l,u,c,d,f,h,p=0,m=0,v=[],g=t+n-1,y=e[t].x,b=e[g].x-y;for(i=t;i<t+n;++i){o=((a=e[i]).x-y)/b*r,s=a.y;var x=0|o;if(x===l)s<f?(f=s,u=i):s>h&&(h=s,c=i),p=(m*p+a.x)/++m;else{var _=i-1;if(!jw(u)&&!jw(c)){var w=Math.min(u,c),k=Math.max(u,c);w!==d&&w!==_&&v.push(We(We({},e[w]),{},{x:p})),k!==d&&k!==_&&v.push(We(We({},e[k]),{},{x:p}))}i>0&&_!==d&&v.push(e[_]),v.push(a),l=x,m=0,f=h=s,u=c=d=i}}return v}(l,d,f,r);break;default:throw new Error("Unsupported decimation algorithm '".concat(n.algorithm,"'"))}t._decimated=h}}}}))}else ET(e)},destroy:function(e){ET(e)}};function TT(e,t,n){var r=function(e){var t=e.options,n=t.fill,r=Iw(n&&n.target,n);return void 0===r&&(r=!!t.backgroundColor),!1!==r&&null!==r&&(!0===r?"origin":r)}(e);if(Lw(r))return!isNaN(r.value)&&r;var i=parseFloat(r);return Aw(i)&&Math.floor(i)===i?("-"!==r[0]&&"+"!==r[0]||(i=t+i),!(i===t||i<0||i>=n)&&i):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}var OT=function(){function e(t){Vt(this,e),this.x=t.x,this.y=t.y,this.radius=t.radius}return Bt(e,[{key:"pathSegment",value:function(e,t,n){var r=this.x,i=this.y,a=this.radius;return t=t||{start:0,end:tk},e.arc(r,i,a,t.end,t.start,!0),!n.bounds}},{key:"interpolate",value:function(e){var t=this.x,n=this.y,r=this.radius,i=e.angle;return{x:t+Math.cos(i)*r,y:n+Math.sin(i)*r,angle:i}}}]),e}();function NT(e){return(e.scale||{}).getPointPositionForValue?function(e){var t,n,r,i=e.scale,a=e.fill,o=i.options,s=i.getLabels().length,l=[],u=o.reverse?i.max:i.min,c=o.reverse?i.min:i.max;if(r="start"===a?u:"end"===a?c:Lw(a)?a.value:i.getBaseValue(),o.grid.circular)return n=i.getPointPositionForValue(0,u),new OT({x:n.x,y:n.y,radius:i.getDistanceFromCenterForValue(r)});for(t=0;t<s;++t)l.push(i.getPointPositionForValue(t,r));return l}(e):function(e){var t,n=e.scale,r=void 0===n?{}:n,i=e.fill,a=null;return"start"===i?a=r.bottom:"end"===i?a=r.top:Lw(i)?a=r.getPixelForValue(i.value):r.getBasePixel&&(a=r.getBasePixel()),Aw(a)?{x:(t=r.isHorizontal())?a:null,y:t?null:a}:null}(e)}function PT(e,t,n){for(;t>e;t--){var r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function jT(e,t,n){for(var r=[],i=0;i<n.length;i++){var a=DT(n[i],t,"x"),o=a.first,s=a.last,l=a.point;if(!(!l||o&&s))if(o)r.unshift(l);else if(e.push(l),!s)break}e.push.apply(e,r)}function DT(e,t,n){var r=e.interpolate(t,n);if(!r)return{};for(var i=r[n],a=e.segments,o=e.points,s=!1,l=!1,u=0;u<a.length;u++){var c=a[u],d=o[c.start][n],f=o[c.end][n];if(kk(i,d,f)){s=i===d,l=i===f;break}}return{first:s,last:l,point:r}}function LT(e){var t=e.chart,n=e.fill,r=e.line;if(Aw(n))return function(e,t){var n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}(t,n);if("stack"===n)return function(e){var t=e.scale,n=e.index,r=e.line,i=[],a=r.segments,o=r.points,s=function(e,t){for(var n=[],r=e.getMatchingVisibleMetas("line"),i=0;i<r.length;i++){var a=r[i];if(a.index===t)break;a.hidden||n.unshift(a.dataset)}return n}(t,n);s.push(AT({x:null,y:t.bottom},r));for(var l=0;l<a.length;l++)for(var u=a[l],c=u.start;c<=u.end;c++)jT(i,o[c],s);return new pT({points:i,options:{}})}(e);if("shape"===n)return!0;var i=NT(e);return i instanceof OT?i:AT(i,r)}function AT(e,t){var n=[],r=!1;return Dw(e)?(r=!0,n=e):n=function(e,t){var n=e||{},r=n.x,i=void 0===r?null:r,a=n.y,o=void 0===a?null:a,s=t.points,l=[];return t.segments.forEach((function(e){var t=e.start,n=e.end;n=PT(t,n,s);var r=s[t],a=s[n];null!==o?(l.push({x:r.x,y:o}),l.push({x:a.x,y:o})):null!==i&&(l.push({x:i,y:r.y}),l.push({x:i,y:a.y}))})),l}(e,t),n.length?new pT({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function RT(e,t,n){var r,i=e[t].fill,a=[t];if(!n)return i;for(;!1!==i&&-1===a.indexOf(i);){if(!Aw(i))return i;if(!(r=e[i]))return!1;if(r.visible)return i;a.push(i),i=r.fill}return!1}function IT(e,t,n){var r=t.segments,i=t.points,a=!0,o=!1;e.beginPath();var s,l=Sw(r);try{for(l.s();!(s=l.n()).done;){var u=s.value,c=u.start,d=u.end,f=i[c],h=i[PT(c,d,i)];a?(e.moveTo(f.x,f.y),a=!1):(e.lineTo(f.x,n),e.lineTo(f.x,f.y)),(o=!!t.pathSegment(e,u,{move:o}))?e.closePath():e.lineTo(h.x,n)}}catch(p){l.e(p)}finally{l.f()}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function zT(e,t,n,r){if(!r){var i=t[e],a=n[e];return"angle"===e&&(i=xk(i),a=xk(a)),{property:e,start:i,end:a}}}function FT(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function UT(e,t,n){var r=t.chart.chartArea,i=r.top,a=r.bottom,o=n||{},s=o.property,l=o.start,u=o.end;"x"===s&&(e.beginPath(),e.rect(l,i,u-l,a-i),e.clip())}function BT(e,t,n,r){var i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}function VT(e,t){var n,r=t.line,i=t.target,a=t.property,o=t.color,s=t.scale,l=function(e,t,n){var r,i=e.segments,a=e.points,o=t.points,s=[],l=Sw(i);try{for(l.s();!(r=l.n()).done;){var u=r.value,c=u.start,d=u.end;d=PT(c,d,a);var f=zT(n,a[c],a[d],u.loop);if(t.segments){var h,p=Sw(IS(t,f));try{for(p.s();!(h=p.n()).done;){var m,v=h.value,g=zT(n,o[v.start],o[v.end],v.loop),y=Sw(RS(u,a,g));try{for(y.s();!(m=y.n()).done;){var b=m.value;s.push({source:b,target:v,start:Ve({},n,FT(f,g,"start",Math.max)),end:Ve({},n,FT(f,g,"end",Math.min))})}}catch(x){y.e(x)}finally{y.f()}}}catch(x){p.e(x)}finally{p.f()}}else s.push({source:u,target:f,start:a[c],end:a[d]})}}catch(x){l.e(x)}finally{l.f()}return s}(r,i,a),u=Sw(l);try{for(u.s();!(n=u.n()).done;){var c=n.value,d=c.source,f=c.target,h=c.start,p=c.end,m=d.style,v=(m=void 0===m?{}:m).backgroundColor,g=void 0===v?o:v,y=!0!==i;e.save(),e.fillStyle=g,UT(e,s,y&&zT(a,h,p)),e.beginPath();var b=!!r.pathSegment(e,d),x=void 0;if(y){b?e.closePath():BT(e,i,p,a);var _=!!i.pathSegment(e,f,{move:b,reverse:!0});(x=b&&_)||BT(e,i,h,a)}e.closePath(),e.fill(x?"evenodd":"nonzero"),e.restore()}}catch(w){u.e(w)}finally{u.f()}}function HT(e,t,n){var r=LT(t),i=t.line,a=t.scale,o=t.axis,s=i.options,l=s.fill,u=s.backgroundColor,c=l||{},d=c.above,f=void 0===d?u:d,h=c.below,p=void 0===h?u:h;r&&i.points.length&&(_C(e,n),function(e,t){var n=t.line,r=t.target,i=t.above,a=t.below,o=t.area,s=t.scale,l=n._loop?"angle":t.axis;e.save(),"x"===l&&a!==i&&(IT(e,r,o.top),VT(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore(),e.save(),IT(e,r,o.bottom)),VT(e,{line:n,target:r,color:a,scale:s,property:l}),e.restore()}(e,{line:i,target:r,above:f,below:p,area:n,scale:a,axis:o}),wC(e))}var WT={id:"filler",afterDatasetsUpdate:function(e,t,n){var r,i,a,o,s=(e.data.datasets||[]).length,l=[];for(i=0;i<s;++i)o=null,(a=(r=e.getDatasetMeta(i)).dataset)&&a.options&&a instanceof pT&&(o={visible:e.isDatasetVisible(i),index:i,fill:TT(a,i,s),chart:e,axis:r.controller.options.indexAxis,scale:r.vScale,line:a}),r.$filler=o,l.push(o);for(i=0;i<s;++i)(o=l[i])&&!1!==o.fill&&(o.fill=RT(l,i,n.propagate))},beforeDraw:function(e,t,n){for(var r="beforeDraw"===n.drawTime,i=e.getSortedVisibleDatasetMetas(),a=e.chartArea,o=i.length-1;o>=0;--o){var s=i[o].$filler;s&&(s.line.updateControlPoints(a,s.axis),r&&HT(e.ctx,s,a))}},beforeDatasetsDraw:function(e,t,n){if("beforeDatasetsDraw"===n.drawTime)for(var r=e.getSortedVisibleDatasetMetas(),i=r.length-1;i>=0;--i){var a=r[i].$filler;a&&HT(e.ctx,a,e.chartArea)}},beforeDatasetDraw:function(e,t,n){var r=t.meta.$filler;r&&!1!==r.fill&&"beforeDatasetDraw"===n.drawTime&&HT(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},ZT=function(e,t){var n=e.boxHeight,r=void 0===n?t:n,i=e.boxWidth,a=void 0===i?t:i;return e.usePointStyle&&(r=Math.min(r,t),a=Math.min(a,t)),{boxWidth:a,boxHeight:r,itemHeight:Math.max(t,r)}},YT=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this))._added=!1,r.legendHitBoxes=[],r._hoveredItem=null,r.doughnutMode=!1,r.chart=e.chart,r.options=e.options,r.ctx=e.ctx,r.legendItems=void 0,r.columnSizes=void 0,r.lineWidths=void 0,r.maxHeight=void 0,r.maxWidth=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.height=void 0,r.width=void 0,r._margins=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Bt(n,[{key:"update",value:function(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}},{key:"setDimensions",value:function(){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)}},{key:"buildLabels",value:function(){var e=this,t=this.options.labels||{},n=Fw(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),t.sort&&(n=n.sort((function(n,r){return t.sort(n,r,e.chart.data)}))),this.options.reverse&&n.reverse(),this.legendItems=n}},{key:"fit",value:function(){var e=this.options,t=this.ctx;if(e.display){var n,r,i=e.labels,a=IC(i.font),o=a.size,s=this._computeTitleHeight(),l=ZT(i,o),u=l.boxWidth,c=l.itemHeight;t.font=a.string,this.isHorizontal()?(n=this.maxWidth,r=this._fitRows(s,o,u,c)+10):(r=this.maxHeight,n=this._fitCols(s,o,u,c)+10),this.width=Math.min(n,e.maxWidth||this.maxWidth),this.height=Math.min(r,e.maxHeight||this.maxHeight)}else this.width=this.height=0}},{key:"_fitRows",value:function(e,t,n,r){var i=this.ctx,a=this.maxWidth,o=this.options.labels.padding,s=this.legendHitBoxes=[],l=this.lineWidths=[0],u=r+o,c=e;i.textAlign="left",i.textBaseline="middle";var d=-1,f=-u;return this.legendItems.forEach((function(e,h){var p=n+t/2+i.measureText(e.text).width;(0===h||l[l.length-1]+p+2*o>a)&&(c+=u,l[l.length-(h>0?0:1)]=0,f+=u,d++),s[h]={left:0,top:f,row:d,width:p,height:r},l[l.length-1]+=p+o})),c}},{key:"_fitCols",value:function(e,t,n,r){var i=this.ctx,a=this.maxHeight,o=this.options.labels.padding,s=this.legendHitBoxes=[],l=this.columnSizes=[],u=a-e,c=o,d=0,f=0,h=0,p=0;return this.legendItems.forEach((function(e,a){var m=n+t/2+i.measureText(e.text).width;a>0&&f+r+2*o>u&&(c+=d+o,l.push({width:d,height:f}),h+=d+o,p++,d=f=0),s[a]={left:h,top:f,col:p,width:m,height:r},d=Math.max(d,m),f+=r+o})),c+=d,l.push({width:d,height:f}),c}},{key:"adjustHitBoxes",value:function(){if(this.options.display){var e=this._computeTitleHeight(),t=this.legendHitBoxes,n=this.options,r=n.align,i=n.labels.padding,a=PS(n.rtl,this.left,this.width);if(this.isHorizontal()){var o,s=0,l=Ow(r,this.left+i,this.right-this.lineWidths[s]),u=Sw(t);try{for(u.s();!(o=u.n()).done;){var c=o.value;s!==c.row&&(s=c.row,l=Ow(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}}catch(v){u.e(v)}finally{u.f()}}else{var d,f=0,h=Ow(r,this.top+e+i,this.bottom-this.columnSizes[f].height),p=Sw(t);try{for(p.s();!(d=p.n()).done;){var m=d.value;m.col!==f&&(f=m.col,h=Ow(r,this.top+e+i,this.bottom-this.columnSizes[f].height)),m.top=h,m.left+=this.left+i,m.left=a.leftForLtr(a.x(m.left),m.width),h+=m.height+i}}catch(v){p.e(v)}finally{p.f()}}}}},{key:"isHorizontal",value:function(){return"top"===this.options.position||"bottom"===this.options.position}},{key:"draw",value:function(){if(this.options.display){var e=this.ctx;_C(e,this),this._draw(),wC(e)}}},{key:"_draw",value:function(){var e,t=this,n=this.options,r=this.columnSizes,i=this.lineWidths,a=this.ctx,o=n.align,s=n.labels,l=pC.color,u=PS(n.rtl,this.left,this.width),c=IC(s.font),d=s.color,f=s.padding,h=c.size,p=h/2;this.drawTitle(),a.textAlign=u.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=c.string;var m=ZT(s,h),v=m.boxWidth,g=m.boxHeight,y=m.itemHeight,b=this.isHorizontal(),x=this._computeTitleHeight();e=b?{x:Ow(o,this.left+f,this.right-i[0]),y:this.top+f+x,line:0}:{x:this.left+f,y:Ow(o,this.top+x+f,this.bottom-r[0].height),line:0},jS(this.ctx,n.textDirection);var _=y+f;this.legendItems.forEach((function(m,w){a.strokeStyle=m.fontColor||d,a.fillStyle=m.fontColor||d;var k=a.measureText(m.text).width,C=u.textAlign(m.textAlign||(m.textAlign=s.textAlign)),S=v+p+k,E=e.x,M=e.y;u.setWidth(t.width),b?w>0&&E+S+f>t.right&&(M=e.y+=_,e.line++,E=e.x=Ow(o,t.left+f,t.right-i[e.line])):w>0&&M+_>t.bottom&&(E=e.x=E+r[e.line].width+f,e.line++,M=e.y=Ow(o,t.top+x+f,t.bottom-r[e.line].height)),function(e,t,n){if(!(isNaN(v)||v<=0||isNaN(g)||g<0)){a.save();var r=Iw(n.lineWidth,1);if(a.fillStyle=Iw(n.fillStyle,l),a.lineCap=Iw(n.lineCap,"butt"),a.lineDashOffset=Iw(n.lineDashOffset,0),a.lineJoin=Iw(n.lineJoin,"miter"),a.lineWidth=r,a.strokeStyle=Iw(n.strokeStyle,l),a.setLineDash(Iw(n.lineDash,[])),s.usePointStyle){var i={radius:v*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},o=u.xPlus(e,v/2);bC(a,i,o,t+p)}else{var c=t+Math.max((h-g)/2,0),d=u.leftForLtr(e,v),f=AC(n.borderRadius);a.beginPath(),Object.values(f).some((function(e){return 0!==e}))?TC(a,{x:d,y:c,w:v,h:g,radius:f}):a.rect(d,c,v,g),a.fill(),0!==r&&a.stroke()}a.restore()}}(u.x(E),M,m),E=function(e,t,n,r){return e===(r?"left":"right")?n:"center"===e?(t+n)/2:t}(C,E+v+p,b?E+S:t.right,n.rtl),function(e,t,n){SC(a,n.text,e,t+y/2,c,{strikethrough:n.hidden,textAlign:u.textAlign(n.textAlign)})}(u.x(E),M,m),b?e.x+=S+f:e.y+=_})),DS(this.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var e=this.options,t=e.title,n=IC(t.font),r=RC(t.padding);if(t.display){var i,a=PS(e.rtl,this.left,this.width),o=this.ctx,s=t.position,l=n.size/2,u=r.top+l,c=this.left,d=this.width;if(this.isHorizontal())d=Math.max.apply(Math,Ls(this.lineWidths)),i=this.top+u,c=Ow(e.align,c,this.right-d);else{var f=this.columnSizes.reduce((function(e,t){return Math.max(e,t.height)}),0);i=u+Ow(e.align,this.top,this.bottom-f-e.labels.padding-this._computeTitleHeight())}var h=Ow(s,c,c+d);o.textAlign=a.textAlign(Tw(s)),o.textBaseline="middle",o.strokeStyle=t.color,o.fillStyle=t.color,o.font=n.string,SC(o,t.text,h,i,n)}}},{key:"_computeTitleHeight",value:function(){var e=this.options.title,t=IC(e.font),n=RC(e.padding);return e.display?t.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(e,t){var n,r,i;if(kk(e,this.left,this.right)&&kk(t,this.top,this.bottom))for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(kk(e,(r=i[n]).left,r.left+r.width)&&kk(t,r.top,r.top+r.height))return this.legendItems[n];return null}},{key:"handleEvent",value:function(e){var t=this.options;if(function(e,t){if("mousemove"===e&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t)){var n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type){var r=this._hoveredItem,i=function(e,t){return null!==e&&null!==t&&e.datasetIndex===t.datasetIndex&&e.index===t.index}(r,n);r&&!i&&Fw(t.onLeave,[e,r,this],this),this._hoveredItem=n,n&&!i&&Fw(t.onHover,[e,n,this],this)}else n&&Fw(t.onClick,[e,n,this],this)}}}]),n}(fM);var qT={id:"legend",_element:YT,start:function(e,t,n){var r=e.legend=new YT({ctx:e.ctx,options:n,chart:e});GE(e,r,n),YE(e,r)},stop:function(e){qE(e,e.legend),delete e.legend},beforeUpdate:function(e,t,n){var r=e.legend;GE(e,r,n),r.options=n},afterUpdate:function(e){var t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent:function(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick:function(e,t,n){var r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:function(e){return e.chart.options.color},boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.legend.options.labels,r=n.usePointStyle,i=n.pointStyle,a=n.textAlign,o=n.color;return e._getSortedDatasetMetas().map((function(e){var n=e.controller.getStyle(r?0:void 0),s=RC(n.borderWidth);return{text:t[e.index].label,fillStyle:n.backgroundColor,fontColor:o,hidden:!e.visible,lineCap:n.borderCapStyle,lineDash:n.borderDash,lineDashOffset:n.borderDashOffset,lineJoin:n.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:n.borderColor,pointStyle:i||n.pointStyle,rotation:n.rotation,textAlign:a||n.textAlign,borderRadius:0,datasetIndex:e.index}}),this)}},title:{color:function(e){return e.chart.options.color},display:!1,position:"center",text:""}},descriptors:{_scriptable:function(e){return!e.startsWith("on")},labels:{_scriptable:function(e){return!["generateLabels","filter","sort"].includes(e)}}}},GT=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this)).chart=e.chart,r.options=e.options,r.ctx=e.ctx,r._padding=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Bt(n,[{key:"update",value:function(e,t){var n=this.options;if(this.left=0,this.top=0,n.display){this.width=this.right=e,this.height=this.bottom=t;var r=Dw(n.text)?n.text.length:1;this._padding=RC(n.padding);var i=r*IC(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}else this.width=this.height=this.right=this.bottom=0}},{key:"isHorizontal",value:function(){var e=this.options.position;return"top"===e||"bottom"===e}},{key:"_drawArgs",value:function(e){var t,n,r,i=this.top,a=this.left,o=this.bottom,s=this.right,l=this.options,u=l.align,c=0;return this.isHorizontal()?(n=Ow(u,a,s),r=i+e,t=s-a):("left"===l.position?(n=a+e,r=Ow(u,o,i),c=-.5*ek):(n=s-e,r=Ow(u,i,o),c=.5*ek),t=o-i),{titleX:n,titleY:r,maxWidth:t,rotation:c}}},{key:"draw",value:function(){var e=this.ctx,t=this.options;if(t.display){var n=IC(t.font),r=n.lineHeight/2+this._padding.top,i=this._drawArgs(r),a=i.titleX,o=i.titleY,s=i.maxWidth,l=i.rotation;SC(e,t.text,0,0,n,{color:t.color,maxWidth:s,rotation:l,textAlign:Tw(t.align),textBaseline:"middle",translation:[a,o]})}}}]),n}(fM);var KT={id:"title",_element:GT,start:function(e,t,n){!function(e,t){var n=new GT({ctx:e.ctx,options:t,chart:e});GE(e,n,t),YE(e,n),e.titleBlock=n}(e,n)},stop:function(e){var t=e.titleBlock;qE(e,t),delete e.titleBlock},beforeUpdate:function(e,t,n){var r=e.titleBlock;GE(e,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}},QT=new WeakMap,XT={id:"subtitle",start:function(e,t,n){var r=new GT({ctx:e.ctx,options:n,chart:e});GE(e,r,n),YE(e,r),QT.set(e,r)},stop:function(e){qE(e,QT.get(e)),QT.delete(e)},beforeUpdate:function(e,t,n){var r=QT.get(e);GE(e,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}},$T={average:function(e){if(!e.length)return!1;var t,n,r=0,i=0,a=0;for(t=0,n=e.length;t<n;++t){var o=e[t].element;if(o&&o.hasValue()){var s=o.tooltipPosition();r+=s.x,i+=s.y,++a}}return{x:r/a,y:i/a}},nearest:function(e,t){if(!e.length)return!1;var n,r,i,a=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var l=e[n].element;if(l&&l.hasValue()){var u=yk(t,l.getCenterPoint());u<s&&(s=u,i=l)}}if(i){var c=i.tooltipPosition();a=c.x,o=c.y}return{x:a,y:o}}};function JT(e,t){return t&&(Dw(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function eO(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function tO(e,t){var n=t.element,r=t.datasetIndex,i=t.index,a=e.getDatasetMeta(r).controller,o=a.getLabelAndValue(i),s=o.label,l=o.value;return{chart:e,label:s,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:l,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function nO(e,t){var n=e.chart.ctx,r=e.body,i=e.footer,a=e.title,o=t.boxWidth,s=t.boxHeight,l=IC(t.bodyFont),u=IC(t.titleFont),c=IC(t.footerFont),d=a.length,f=i.length,h=r.length,p=RC(t.padding),m=p.height,v=0,g=r.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);(g+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),g)&&(m+=h*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(g-h)*l.lineHeight+(g-1)*t.bodySpacing);f&&(m+=t.footerMarginTop+f*c.lineHeight+(f-1)*t.footerSpacing);var y=0,b=function(e){v=Math.max(v,n.measureText(e).width+y)};return n.save(),n.font=u.string,Uw(e.title,b),n.font=l.string,Uw(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?o+2+t.boxPadding:0,Uw(r,(function(e){Uw(e.before,b),Uw(e.lines,b),Uw(e.after,b)})),y=0,n.font=c.string,Uw(e.footer,b),n.restore(),{width:v+=p.width,height:m}}function rO(e,t,n,r){var i=n.x,a=n.width,o=e.width,s=e.chartArea,l=s.left,u=s.right,c="center";return"center"===r?c=i<=(l+u)/2?"left":"right":i<=a/2?c="left":i>=o-a/2&&(c="right"),function(e,t,n,r){var i=r.x,a=r.width,o=n.caretSize+n.caretPadding;return"left"===e&&i+a+o>t.width||"right"===e&&i-a-o<0||void 0}(c,e,t,n)&&(c="center"),c}function iO(e,t,n){var r=n.yAlign||t.yAlign||function(e,t){var n=t.y,r=t.height;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||rO(e,t,n,r),yAlign:r}}function aO(e,t,n,r){var i=e.caretSize,a=e.caretPadding,o=e.cornerRadius,s=n.xAlign,l=n.yAlign,u=i+a,c=AC(o),d=c.topLeft,f=c.topRight,h=c.bottomLeft,p=c.bottomRight,m=function(e,t){var n=e.x,r=e.width;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,s),v=function(e,t,n){var r=e.y,i=e.height;return"top"===t?r+=n:r-="bottom"===t?i+n:i/2,r}(t,l,u);return"center"===l?"left"===s?m+=u:"right"===s&&(m-=u):"left"===s?m-=Math.max(d,h)+i:"right"===s&&(m+=Math.max(f,p)+i),{x:wk(m,0,r.width-t.width),y:wk(v,0,r.height-t.height)}}function oO(e,t,n){var r=RC(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function sO(e){return JT([],eO(e))}function lO(e,t){var n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var uO=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this)).opacity=0,r._active=[],r._eventPosition=void 0,r._size=void 0,r._cachedAnimations=void 0,r._tooltipItems=[],r.$animations=void 0,r.$context=void 0,r.chart=e.chart||e._chart,r._chart=r.chart,r.options=e.options,r.dataPoints=void 0,r.title=void 0,r.beforeBody=void 0,r.body=void 0,r.afterBody=void 0,r.footer=void 0,r.xAlign=void 0,r.yAlign=void 0,r.x=void 0,r.y=void 0,r.height=void 0,r.width=void 0,r.caretX=void 0,r.caretY=void 0,r.labelColors=void 0,r.labelPointStyles=void 0,r.labelTextColors=void 0,r}return Bt(n,[{key:"initialize",value:function(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}},{key:"_resolveAnimations",value:function(){var e=this._cachedAnimations;if(e)return e;var t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,i=new qS(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}},{key:"getContext",value:function(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,FC(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}},{key:"getTitle",value:function(e,t){var n=t.callbacks,r=n.beforeTitle.apply(this,[e]),i=n.title.apply(this,[e]),a=n.afterTitle.apply(this,[e]),o=[];return o=JT(o,eO(r)),o=JT(o,eO(i)),o=JT(o,eO(a))}},{key:"getBeforeBody",value:function(e,t){return sO(t.callbacks.beforeBody.apply(this,[e]))}},{key:"getBody",value:function(e,t){var n=this,r=t.callbacks,i=[];return Uw(e,(function(e){var t={before:[],lines:[],after:[]},a=lO(r,e);JT(t.before,eO(a.beforeLabel.call(n,e))),JT(t.lines,a.label.call(n,e)),JT(t.after,eO(a.afterLabel.call(n,e))),i.push(t)})),i}},{key:"getAfterBody",value:function(e,t){return sO(t.callbacks.afterBody.apply(this,[e]))}},{key:"getFooter",value:function(e,t){var n=t.callbacks,r=n.beforeFooter.apply(this,[e]),i=n.footer.apply(this,[e]),a=n.afterFooter.apply(this,[e]),o=[];return o=JT(o,eO(r)),o=JT(o,eO(i)),o=JT(o,eO(a))}},{key:"_createItems",value:function(e){var t,n,r=this,i=this._active,a=this.chart.data,o=[],s=[],l=[],u=[];for(t=0,n=i.length;t<n;++t)u.push(tO(this.chart,i[t]));return e.filter&&(u=u.filter((function(t,n,r){return e.filter(t,n,r,a)}))),e.itemSort&&(u=u.sort((function(t,n){return e.itemSort(t,n,a)}))),Uw(u,(function(t){var n=lO(e.callbacks,t);o.push(n.labelColor.call(r,t)),s.push(n.labelPointStyle.call(r,t)),l.push(n.labelTextColor.call(r,t))})),this.labelColors=o,this.labelPointStyles=s,this.labelTextColors=l,this.dataPoints=u,u}},{key:"update",value:function(e,t){var n,r=this.options.setContext(this.getContext()),i=this._active,a=[];if(i.length){var o=$T[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);var s=this._size=nO(this,r),l=Object.assign({},o,s),u=iO(this.chart,r,l),c=aO(r,l,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,n={opacity:1,x:c.x,y:c.y,width:s.width,height:s.height,caretX:o.x,caretY:o.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=a,this.$context=void 0,n&&this._resolveAnimations().update(this,n),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:t})}},{key:"drawCaret",value:function(e,t,n,r){var i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}},{key:"getCaretPosition",value:function(e,t,n){var r,i,a,o,s,l,u=this.xAlign,c=this.yAlign,d=n.caretSize,f=AC(n.cornerRadius),h=f.topLeft,p=f.topRight,m=f.bottomLeft,v=f.bottomRight,g=e.x,y=e.y,b=t.width,x=t.height;return"center"===c?(s=y+x/2,"left"===u?(i=(r=g)-d,o=s+d,l=s-d):(i=(r=g+b)+d,o=s-d,l=s+d),a=r):(i="left"===u?g+Math.max(h,m)+d:"right"===u?g+b-Math.max(p,v)-d:this.caretX,"top"===c?(s=(o=y)-d,r=i-d,a=i+d):(s=(o=y+x)+d,r=i+d,a=i-d),l=o),{x1:r,x2:i,x3:a,y1:o,y2:s,y3:l}}},{key:"drawTitle",value:function(e,t,n){var r,i,a,o=this.title,s=o.length;if(s){var l=PS(n.rtl,this.x,this.width);for(e.x=oO(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",r=IC(n.titleFont),i=n.titleSpacing,t.fillStyle=n.titleColor,t.font=r.string,a=0;a<s;++a)t.fillText(o[a],l.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+i,a+1===s&&(e.y+=n.titleMarginBottom-i)}}},{key:"_drawColorBox",value:function(e,t,n,r,i){var a=this.labelColors[n],o=this.labelPointStyles[n],s=i.boxHeight,l=i.boxWidth,u=i.boxPadding,c=IC(i.bodyFont),d=oO(this,"left",i),f=r.x(d),h=s<c.lineHeight?(c.lineHeight-s)/2:0,p=t.y+h;if(i.usePointStyle){var m={radius:Math.min(l,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},v=r.leftForLtr(f,l)+l/2,g=p+s/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,bC(e,m,v,g),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,bC(e,m,v,g)}else{e.lineWidth=a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;var y=r.leftForLtr(f,l-u),b=r.leftForLtr(r.xPlus(f,1),l-u-2),x=AC(a.borderRadius);Object.values(x).some((function(e){return 0!==e}))?(e.beginPath(),e.fillStyle=i.multiKeyBackground,TC(e,{x:y,y:p,w:l,h:s,radius:x}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),TC(e,{x:b,y:p+1,w:l-2,h:s-2,radius:x}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(y,p,l,s),e.strokeRect(y,p,l,s),e.fillStyle=a.backgroundColor,e.fillRect(b,p+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}},{key:"drawBody",value:function(e,t,n){var r,i,a,o,s,l,u,c=this.body,d=n.bodySpacing,f=n.bodyAlign,h=n.displayColors,p=n.boxHeight,m=n.boxWidth,v=n.boxPadding,g=IC(n.bodyFont),y=g.lineHeight,b=0,x=PS(n.rtl,this.x,this.width),_=function(n){t.fillText(n,x.x(e.x+b),e.y+y/2),e.y+=y+d},w=x.textAlign(f);for(t.textAlign=f,t.textBaseline="middle",t.font=g.string,e.x=oO(this,w,n),t.fillStyle=n.bodyColor,Uw(this.beforeBody,_),b=h&&"right"!==w?"center"===f?m/2+v:m+2+v:0,o=0,l=c.length;o<l;++o){for(r=c[o],i=this.labelTextColors[o],t.fillStyle=i,Uw(r.before,_),a=r.lines,h&&a.length&&(this._drawColorBox(t,e,o,x,n),y=Math.max(g.lineHeight,p)),s=0,u=a.length;s<u;++s)_(a[s]),y=g.lineHeight;Uw(r.after,_)}b=0,y=g.lineHeight,Uw(this.afterBody,_),e.y-=d}},{key:"drawFooter",value:function(e,t,n){var r,i,a=this.footer,o=a.length;if(o){var s=PS(n.rtl,this.x,this.width);for(e.x=oO(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",r=IC(n.footerFont),t.fillStyle=n.footerColor,t.font=r.string,i=0;i<o;++i)t.fillText(a[i],s.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+n.footerSpacing}}},{key:"drawBackground",value:function(e,t,n,r){var i=this.xAlign,a=this.yAlign,o=e.x,s=e.y,l=n.width,u=n.height,c=AC(r.cornerRadius),d=c.topLeft,f=c.topRight,h=c.bottomLeft,p=c.bottomRight;t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(o+d,s),"top"===a&&this.drawCaret(e,t,n,r),t.lineTo(o+l-f,s),t.quadraticCurveTo(o+l,s,o+l,s+f),"center"===a&&"right"===i&&this.drawCaret(e,t,n,r),t.lineTo(o+l,s+u-p),t.quadraticCurveTo(o+l,s+u,o+l-p,s+u),"bottom"===a&&this.drawCaret(e,t,n,r),t.lineTo(o+h,s+u),t.quadraticCurveTo(o,s+u,o,s+u-h),"center"===a&&"left"===i&&this.drawCaret(e,t,n,r),t.lineTo(o,s+d),t.quadraticCurveTo(o,s,o+d,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}},{key:"_updateAnimationTarget",value:function(e){var t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){var a=$T[e.position].call(this,this._active,this._eventPosition);if(!a)return;var o=this._size=nO(this,e),s=Object.assign({},a,this._size),l=iO(t,e,s),u=aO(e,s,l,t);r._to===u.x&&i._to===u.y||(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=o.width,this.height=o.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}},{key:"draw",value:function(e){var t=this.options.setContext(this.getContext()),n=this.opacity;if(n){this._updateAnimationTarget(t);var r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;var a=RC(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),jS(e,t.textDirection),i.y+=a.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),DS(e,t.textDirection),e.restore())}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e,t){var n=this,r=this._active,i=e.map((function(e){var t=e.datasetIndex,r=e.index,i=n.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[r],index:r}})),a=!Bw(r,i),o=this._positionChanged(i,t);(a||o)&&(this._active=i,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}},{key:"handleEvent",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;var r=this.options,i=this._active||[],a=this._getActiveElements(e,i,t,n),o=this._positionChanged(a,e),s=t||!Bw(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}},{key:"_getActiveElements",value:function(e,t,n,r){var i=this.options;if("mouseout"===e.type)return[];if(!r)return t;var a=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&a.reverse(),a}},{key:"_positionChanged",value:function(e,t){var n=this.caretX,r=this.caretY,i=this.options,a=$T[i.position].call(this,e,t);return!1!==a&&(n!==a.x||r!==a.y)}}]),n}(fM);uO.positioners=$T;var cO={id:"tooltip",_element:uO,positioners:$T,afterInit:function(e,t,n){n&&(e.tooltip=new uO({chart:e,options:n}))},beforeUpdate:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw:function(e){var t=e.tooltip,n={tooltip:t};!1!==e.notifyPlugins("beforeTooltipDraw",n)&&(t&&t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n))},afterEvent:function(e,t){if(e.tooltip){var n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.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:function(e,t){return t.bodyFont.size},boxWidth:function(e,t){return t.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:{beforeTitle:Nw,title:function(e){if(e.length>0){var t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Nw,beforeBody:Nw,beforeLabel:Nw,label:function(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;var t=e.dataset.label||"";t&&(t+=": ");var n=e.formattedValue;return jw(n)||(t+=n),t},labelColor:function(e){var t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor:function(){return this.options.bodyColor},labelPointStyle:function(e){var t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Nw,afterBody:Nw,beforeFooter:Nw,footer:Nw,afterFooter:Nw}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:function(e){return"filter"!==e&&"itemSort"!==e&&"external"!==e},_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},dO=Object.freeze({__proto__:null,Decimation:MT,Filler:WT,Legend:qT,SubTitle:XT,Title:KT,Tooltip:cO});function fO(e,t,n,r){var i=e.indexOf(t);return-1===i?function(e,t,n,r){return"string"===typeof t?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n}(e,t,n,r):i!==e.lastIndexOf(t)?n:i}var hO=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e))._startValue=void 0,r._valueRange=0,r._addedLabels=[],r}return Bt(n,[{key:"init",value:function(e){var t=this._addedLabels;if(t.length){var r,i=this.getLabels(),a=Sw(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=o.index,l=o.label;i[s]===l&&i.splice(s,1)}}catch(u){a.e(u)}finally{a.f()}this._addedLabels=[]}Cw(zs(n.prototype),"init",this).call(this,e)}},{key:"parse",value:function(e,t){if(jw(e))return null;var n=this.getLabels();return function(e,t){return null===e?null:wk(Math.round(e),0,t)}(t=isFinite(t)&&n[t]===e?t:fO(n,e,Iw(t,e),this._addedLabels),n.length-1)}},{key:"determineDataLimits",value:function(){var e=this.getUserBounds(),t=e.minDefined,n=e.maxDefined,r=this.getMinMax(!0),i=r.min,a=r.max;"ticks"===this.options.bounds&&(t||(i=0),n||(a=this.getLabels().length-1)),this.min=i,this.max=a}},{key:"buildTicks",value:function(){var e=this.min,t=this.max,n=this.options.offset,r=[],i=this.getLabels();i=0===e&&t===i.length-1?i:i.slice(e,t+1),this._valueRange=Math.max(i.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(var a=e;a<=t;a++)r.push({value:a});return r}},{key:"getLabelForValue",value:function(e){var t=this.getLabels();return e>=0&&e<t.length?t[e]:e}},{key:"configure",value:function(){Cw(zs(n.prototype),"configure",this).call(this),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}},{key:"getPixelForValue",value:function(e){return"number"!==typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}},{key:"getPixelForTick",value:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getValueForPixel",value:function(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}},{key:"getBasePixel",value:function(){return this.bottom}}]),n}(kM);function pO(e,t){var n,r,i,a,o=[],s=e.bounds,l=e.step,u=e.min,c=e.max,d=e.precision,f=e.count,h=e.maxTicks,p=e.maxDigits,m=e.includeBounds,v=l||1,g=h-1,y=t.min,b=t.max,x=!jw(u),_=!jw(c),w=!jw(f),k=(b-y)/(p+1),C=ck((b-y)/g/v)*v;if(C<1e-14&&!x&&!_)return[{value:y},{value:b}];(a=Math.ceil(b/C)-Math.floor(y/C))>g&&(C=ck(a*C/g/v)*v),jw(d)||(n=Math.pow(10,d),C=Math.ceil(C*n)/n),"ticks"===s?(r=Math.floor(y/C)*C,i=Math.ceil(b/C)*C):(r=y,i=b),x&&_&&l&&function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e}((c-u)/l,C/1e3)?(C=(c-u)/(a=Math.round(Math.min((c-u)/C,h))),r=u,i=c):w?C=((i=_?c:i)-(r=x?u:r))/(a=f-1):a=fk(a=(i-r)/C,Math.round(a),C/1e3)?Math.round(a):Math.ceil(a);var S=Math.max(vk(C),vk(r));n=Math.pow(10,jw(d)?S:d),r=Math.round(r*n)/n,i=Math.round(i*n)/n;var E=0;for(x&&(m&&r!==u?(o.push({value:u}),r<u&&E++,fk(Math.round((r+E*C)*n)/n,u,mO(u,k,e))&&E++):r<u&&E++);E<a;++E)o.push({value:Math.round((r+E*C)*n)/n});return _&&m&&i!==c?o.length&&fk(o[o.length-1].value,c,mO(c,k,e))?o[o.length-1].value=c:o.push({value:c}):_&&i!==c||o.push({value:i}),o}function mO(e,t,n){var r=n.horizontal,i=pk(n.minRotation),a=(r?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}hO.id="category",hO.defaults={ticks:{callback:hO.prototype.getLabelForValue}};var vO=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).start=void 0,r.end=void 0,r._startValue=void 0,r._endValue=void 0,r._valueRange=0,r}return Bt(n,[{key:"parse",value:function(e,t){return jw(e)||("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}},{key:"handleTickRangeOptions",value:function(){var e=this.options.beginAtZero,t=this.getUserBounds(),n=t.minDefined,r=t.maxDefined,i=this.min,a=this.max,o=function(e){return i=n?i:e},s=function(e){return a=r?a:e};if(e){var l=uk(i),u=uk(a);l<0&&u<0?s(0):l>0&&u>0&&o(0)}if(i===a){var c=1;(a>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(c=Math.abs(.05*a)),s(a+c),e||o(i-c)}this.min=i,this.max=a}},{key:"getTickLimit",value:function(){var e,t=this.options.ticks,n=t.maxTicksLimit,r=t.stepSize;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1)>1e3&&(console.warn("scales.".concat(this.id,".ticks.stepSize: ").concat(r," would result generating up to ").concat(e," ticks. Limiting to 1000.")),e=1e3):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}},{key:"computeTickLimit",value:function(){return Number.POSITIVE_INFINITY}},{key:"buildTicks",value:function(){var e=this.options,t=e.ticks,n=this.getTickLimit(),r=pO({maxTicks:n=Math.max(2,n),bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&hk(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}},{key:"configure",value:function(){var e=this.ticks,t=this.min,r=this.max;if(Cw(zs(n.prototype),"configure",this).call(this),this.options.offset&&e.length){var i=(r-t)/Math.max(e.length-1,1)/2;t-=i,r+=i}this._startValue=t,this._endValue=r,this._valueRange=r-t}},{key:"getLabelForValue",value:function(e){return NS(e,this.chart.options.locale,this.options.ticks.format)}}]),n}(kM),gO=function(e){Is(n,e);var t=Bs(n);function n(){return Vt(this,n),t.apply(this,arguments)}return Bt(n,[{key:"determineDataLimits",value:function(){var e=this.getMinMax(!0),t=e.min,n=e.max;this.min=Aw(t)?t:0,this.max=Aw(n)?n:1,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){var e=this.isHorizontal(),t=e?this.width:this.height,n=pk(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}},{key:"getPixelForValue",value:function(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}]),n}(vO);function yO(e){return 1===e/Math.pow(10,Math.floor(lk(e)))}gO.id="linear",gO.defaults={ticks:{callback:pM.formatters.numeric}};var bO=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).start=void 0,r.end=void 0,r._startValue=void 0,r._valueRange=0,r}return Bt(n,[{key:"parse",value:function(e,t){var n=vO.prototype.parse.apply(this,[e,t]);if(0!==n)return Aw(n)&&n>0?n:null;this._zero=!0}},{key:"determineDataLimits",value:function(){var e=this.getMinMax(!0),t=e.min,n=e.max;this.min=Aw(t)?Math.max(0,t):null,this.max=Aw(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}},{key:"handleTickRangeOptions",value:function(){var e=this.getUserBounds(),t=e.minDefined,n=e.maxDefined,r=this.min,i=this.max,a=function(e){return r=t?r:e},o=function(e){return i=n?i:e},s=function(e,t){return Math.pow(10,Math.floor(lk(e))+t)};r===i&&(r<=0?(a(1),o(10)):(a(s(r,-1)),o(s(i,1)))),r<=0&&a(s(i,-1)),i<=0&&o(s(r,1)),this._zero&&this.min!==this._suggestedMin&&r===s(this.min,0)&&a(s(r,-1)),this.min=r,this.max=i}},{key:"buildTicks",value:function(){var e=this.options,t=function(e,t){var n=Math.floor(lk(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),i=[],a=Rw(e.min,Math.pow(10,Math.floor(lk(t.min)))),o=Math.floor(lk(a)),s=Math.floor(a/Math.pow(10,o)),l=o<0?Math.pow(10,Math.abs(o)):1;do{i.push({value:a,major:yO(a)}),10===++s&&(s=1,l=++o>=0?1:l),a=Math.round(s*Math.pow(10,o)*l)/l}while(o<n||o===n&&s<r);var u=Rw(e.max,a);return i.push({value:u,major:yO(a)}),i}({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&hk(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}},{key:"getLabelForValue",value:function(e){return void 0===e?"0":NS(e,this.chart.options.locale,this.options.ticks.format)}},{key:"configure",value:function(){var e=this.min;Cw(zs(n.prototype),"configure",this).call(this),this._startValue=lk(e),this._valueRange=lk(this.max)-lk(e)}},{key:"getPixelForValue",value:function(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(lk(e)-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(e){var t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}]),n}(kM);function xO(e){var t=e.ticks;if(t.display&&e.display){var n=RC(t.backdropPadding);return Iw(t.font&&t.font.size,pC.font.size)+n.height}return 0}function _O(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function wO(e){for(var t,n,r,i={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},a=Object.assign({},i),o=[],s=[],l=e._pointLabels.length,u=e.options.pointLabels,c=u.centerPointLabels?ek/l:0,d=0;d<l;d++){var f=u.setContext(e.getPointLabelContext(d));s[d]=f.padding;var h=e.getPointPosition(d,e.drawingArea+s[d],c),p=IC(f.font),m=(t=e.ctx,n=p,r=Dw(r=e._pointLabels[d])?r:[r],{w:vC(t,n.string,r),h:r.length*n.lineHeight});o[d]=m;var v=xk(e.getIndexAngle(d)+c),g=Math.round(mk(v));kO(a,i,v,_O(g,h.x,m.w,0,180),_O(g,h.y,m.h,90,270))}e.setCenterPoint(i.l-a.l,a.r-i.r,i.t-a.t,a.b-i.b),e._pointLabelItems=function(e,t,n){for(var r=[],i=e._pointLabels.length,a=e.options,o=xO(a)/2,s=e.drawingArea,l=a.pointLabels.centerPointLabels?ek/i:0,u=0;u<i;u++){var c=e.getPointPosition(u,s+o+n[u],l),d=Math.round(mk(xk(c.angle+ak))),f=t[u],h=EO(c.y,f.h,d),p=CO(d),m=SO(c.x,f.w,p);r.push({x:c.x,y:h,textAlign:p,left:m,top:h,right:m+f.w,bottom:h+f.h})}return r}(e,o,s)}function kO(e,t,n,r,i){var a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n)),s=0,l=0;r.start<t.l?(s=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(l=(t.t-i.start)/o,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+l))}function CO(e){return 0===e||180===e?"center":e<180?"left":"right"}function SO(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function EO(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function MO(e,t,n,r){var i=e.ctx;if(n)i.arc(e.xCenter,e.yCenter,t,0,tk);else{var a=e.getPointPosition(0,t);i.moveTo(a.x,a.y);for(var o=1;o<r;o++)a=e.getPointPosition(o,t),i.lineTo(a.x,a.y)}}bO.id="logarithmic",bO.defaults={ticks:{callback:pM.formatters.logarithmic,major:{enabled:!0}}};var TO=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e)).xCenter=void 0,r.yCenter=void 0,r.drawingArea=void 0,r._pointLabels=[],r._pointLabelItems=[],r}return Bt(n,[{key:"setDimensions",value:function(){var e=this._padding=RC(xO(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}},{key:"determineDataLimits",value:function(){var e=this.getMinMax(!1),t=e.min,n=e.max;this.min=Aw(t)&&!isNaN(t)?t:0,this.max=Aw(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){return Math.ceil(this.drawingArea/xO(this.options))}},{key:"generateTickLabels",value:function(e){var t=this;vO.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((function(e,n){var r=Fw(t.options.pointLabels.callback,[e,n],t);return r||0===r?r:""})).filter((function(e,n){return t.chart.getDataVisibility(n)}))}},{key:"fit",value:function(){var e=this.options;e.display&&e.pointLabels.display?wO(this):this.setCenterPoint(0,0,0,0)}},{key:"setCenterPoint",value:function(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}},{key:"getIndexAngle",value:function(e){return xk(e*(tk/(this._pointLabels.length||1))+pk(this.options.startAngle||0))}},{key:"getDistanceFromCenterForValue",value:function(e){if(jw(e))return NaN;var t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}},{key:"getValueForDistanceFromCenter",value:function(e){if(jw(e))return NaN;var t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}},{key:"getPointLabelContext",value:function(e){var t=this._pointLabels||[];if(e>=0&&e<t.length){var n=t[e];return function(e,t,n){return FC(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}},{key:"getPointPosition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getIndexAngle(e)-ak+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}},{key:"getPointPositionForValue",value:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}},{key:"getBasePosition",value:function(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}},{key:"getPointLabelPosition",value:function(e){var t=this._pointLabelItems[e];return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}},{key:"drawBackground",value:function(){var e=this.options,t=e.backgroundColor,n=e.grid.circular;if(t){var r=this.ctx;r.save(),r.beginPath(),MO(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}},{key:"drawGrid",value:function(){var e,t,n,r=this,i=this.ctx,a=this.options,o=a.angleLines,s=a.grid,l=this._pointLabels.length;if(a.pointLabels.display&&function(e,t){for(var n=e.ctx,r=e.options.pointLabels,i=t-1;i>=0;i--){var a=r.setContext(e.getPointLabelContext(i)),o=IC(a.font),s=e._pointLabelItems[i],l=s.x,u=s.y,c=s.textAlign,d=s.left,f=s.top,h=s.right,p=s.bottom,m=a.backdropColor;if(!jw(m)){var v=RC(a.backdropPadding);n.fillStyle=m,n.fillRect(d-v.left,f-v.top,h-d+v.width,p-f+v.height)}SC(n,e._pointLabels[i],l,u+o.lineHeight/2,o,{color:a.color,textAlign:c,textBaseline:"middle"})}}(this,l),s.display&&this.ticks.forEach((function(e,n){if(0!==n){t=r.getDistanceFromCenterForValue(e.value);var i=s.setContext(r.getContext(n-1));!function(e,t,n,r){var i=e.ctx,a=t.circular,o=t.color,s=t.lineWidth;!a&&!r||!o||!s||n<0||(i.save(),i.strokeStyle=o,i.lineWidth=s,i.setLineDash(t.borderDash),i.lineDashOffset=t.borderDashOffset,i.beginPath(),MO(e,n,a,r),i.closePath(),i.stroke(),i.restore())}(r,i,t,l)}})),o.display){for(i.save(),e=l-1;e>=0;e--){var u=o.setContext(this.getPointLabelContext(e)),c=u.color,d=u.lineWidth;d&&c&&(i.lineWidth=d,i.strokeStyle=c,i.setLineDash(u.borderDash),i.lineDashOffset=u.borderDashOffset,t=this.getDistanceFromCenterForValue(a.ticks.reverse?this.min:this.max),n=this.getPointPosition(e,t),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(n.x,n.y),i.stroke())}i.restore()}}},{key:"drawBorder",value:function(){}},{key:"drawLabels",value:function(){var e=this,t=this.ctx,n=this.options,r=n.ticks;if(r.display){var i,a,o=this.getIndexAngle(0);t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((function(o,s){if(0!==s||n.reverse){var l=r.setContext(e.getContext(s)),u=IC(l.font);if(i=e.getDistanceFromCenterForValue(e.ticks[s].value),l.showLabelBackdrop){t.font=u.string,a=t.measureText(o.label).width,t.fillStyle=l.backdropColor;var c=RC(l.backdropPadding);t.fillRect(-a/2-c.left,-i-u.size/2-c.top,a+c.width,u.size+c.height)}SC(t,o.label,0,-i,u,{color:l.color})}})),t.restore()}}},{key:"drawTitle",value:function(){}}]),n}(vO);TO.id="radialLinear",TO.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:pM.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:function(e){return e},padding:5,centerPointLabels:!1}},TO.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},TO.descriptors={angleLines:{_fallback:"grid"}};var OO={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}},NO=Object.keys(OO);function PO(e,t){return e-t}function jO(e,t){if(jw(t))return null;var n=e._adapter,r=e._parseOpts,i=r.parser,a=r.round,o=r.isoWeekday,s=t;return"function"===typeof i&&(s=i(s)),Aw(s)||(s="string"===typeof i?n.parse(s,i):n.parse(s)),null===s?null:(a&&(s="week"!==a||!dk(o)&&!0!==o?n.startOf(s,a):n.startOf(s,"isoWeek",o)),+s)}function DO(e,t,n,r){for(var i=NO.length,a=NO.indexOf(e);a<i-1;++a){var o=OO[NO[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return NO[a]}return NO[i-1]}function LO(e,t,n){if(n){if(n.length){var r=UC(n,t),i=r.lo,a=r.hi;e[n[i]>=t?n[i]:n[a]]=!0}}else e[t]=!0}function AO(e,t,n){var r,i,a=[],o={},s=t.length;for(r=0;r<s;++r)o[i=t[r]]=r,a.push({value:i,major:!1});return 0!==s&&n?function(e,t,n,r){var i,a,o=e._adapter,s=+o.startOf(t[0].value,r),l=t[t.length-1].value;for(i=s;i<=l;i=+o.add(i,1,r))(a=n[i])>=0&&(t[a].major=!0);return t}(e,a,o,n):a}var RO=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e))._cache={data:[],labels:[],all:[]},r._unit="day",r._majorUnit=void 0,r._offsets={},r._normalized=!1,r._parseOpts=void 0,r}return Bt(n,[{key:"init",value:function(e,t){var r=e.time||(e.time={}),i=this._adapter=new SE._date(e.adapters.date);Yw(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},Cw(zs(n.prototype),"init",this).call(this,e),this._normalized=t.normalized}},{key:"parse",value:function(e,t){return void 0===e?null:jO(this,e)}},{key:"beforeLayout",value:function(){Cw(zs(n.prototype),"beforeLayout",this).call(this),this._cache={data:[],labels:[],all:[]}}},{key:"determineDataLimits",value:function(){var e=this.options,t=this._adapter,n=e.time.unit||"day",r=this.getUserBounds(),i=r.min,a=r.max,o=r.minDefined,s=r.maxDefined;function l(e){o||isNaN(e.min)||(i=Math.min(i,e.min)),s||isNaN(e.max)||(a=Math.max(a,e.max))}o&&s||(l(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||l(this.getMinMax(!1))),i=Aw(i)&&!isNaN(i)?i:+t.startOf(Date.now(),n),a=Aw(a)&&!isNaN(a)?a:+t.endOf(Date.now(),n)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}},{key:"_getLabelBounds",value:function(){var e=this.getLabelTimestamps(),t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}},{key:"buildTicks",value:function(){var e=this.options,t=e.time,n=e.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);var i=this.min,a=function(e,t,n){for(var r=0,i=e.length;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}(r,i,this.max);return this._unit=t.unit||(n.autoSkip?DO(t.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(e,t,n,r,i){for(var a=NO.length-1;a>=NO.indexOf(n);a--){var o=NO[a];if(OO[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return NO[n?NO.indexOf(n):0]}(this,a.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(var t=NO.indexOf(e)+1,n=NO.length;t<n;++t)if(OO[NO[t]].common)return NO[t]}(this._unit):void 0,this.initOffsets(r),e.reverse&&a.reverse(),AO(this,a,this._majorUnit)}},{key:"initOffsets",value:function(e){var t,n,r=0,i=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),r=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,n=this.getDecimalForValue(e[e.length-1]),i=1===e.length?n:(n-this.getDecimalForValue(e[e.length-2]))/2);var a=e.length<3?.5:.25;r=wk(r,0,a),i=wk(i,0,a),this._offsets={start:r,end:i,factor:1/(r+1+i)}}},{key:"_generate",value:function(){var e,t,n=this._adapter,r=this.min,i=this.max,a=this.options,o=a.time,s=o.unit||DO(o.minUnit,r,i,this._getLabelCapacity(r)),l=Iw(o.stepSize,1),u="week"===s&&o.isoWeekday,c=dk(u)||!0===u,d={},f=r;if(c&&(f=+n.startOf(f,"isoWeek",u)),f=+n.startOf(f,c?"day":s),n.diff(i,r,s)>1e5*l)throw new Error(r+" and "+i+" are too far apart with stepSize of "+l+" "+s);var h="data"===a.ticks.source&&this.getDataTimestamps();for(e=f,t=0;e<i;e=+n.add(e,l,s),t++)LO(d,e,h);return e!==i&&"ticks"!==a.bounds&&1!==t||LO(d,e,h),Object.keys(d).sort((function(e,t){return e-t})).map((function(e){return+e}))}},{key:"getLabelForValue",value:function(e){var t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}},{key:"_tickFormatFunction",value:function(e,t,n,r){var i=this.options,a=i.time.displayFormats,o=this._unit,s=this._majorUnit,l=o&&a[o],u=s&&a[s],c=n[t],d=s&&u&&c&&c.major,f=this._adapter.format(e,r||(d?u:l)),h=i.ticks.callback;return h?Fw(h,[f,t,n],this):f}},{key:"generateTickLabels",value:function(e){var t,n,r;for(t=0,n=e.length;t<n;++t)(r=e[t]).label=this._tickFormatFunction(r.value,t,e)}},{key:"getDecimalForValue",value:function(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}},{key:"getPixelForValue",value:function(e){var t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}},{key:"getValueForPixel",value:function(e){var t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}},{key:"_getLabelSize",value:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,r=pk(this.isHorizontal()?t.maxRotation:t.minRotation),i=Math.cos(r),a=Math.sin(r),o=this._resolveTickFontOptions(0).size;return{w:n*i+o*a,h:n*a+o*i}}},{key:"_getLabelCapacity",value:function(e){var t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,i=this._tickFormatFunction(e,0,AO(this,[e],this._majorUnit),r),a=this._getLabelSize(i),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}},{key:"getDataTimestamps",value:function(){var e,t,n=this._cache.data||[];if(n.length)return n;var r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e<t;++e)n=n.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}},{key:"getLabelTimestamps",value:function(){var e,t,n=this._cache.labels||[];if(n.length)return n;var r=this.getLabels();for(e=0,t=r.length;e<t;++e)n.push(jO(this,r[e]));return this._cache.labels=this._normalized?n:this.normalize(n)}},{key:"normalize",value:function(e){return ZC(e.sort(PO))}}]),n}(kM);function IO(e,t,n){var r,i,a,o,s=0,l=e.length-1;if(n){if(t>=e[s].pos&&t<=e[l].pos){var u=BC(e,"pos",t);s=u.lo,l=u.hi}var c=e[s];r=c.pos,a=c.time;var d=e[l];i=d.pos,o=d.time}else{if(t>=e[s].time&&t<=e[l].time){var f=BC(e,"time",t);s=f.lo,l=f.hi}var h=e[s];r=h.time,a=h.pos;var p=e[l];i=p.time,o=p.pos}var m=i-r;return m?a+(o-a)*(t-r)/m:a}RO.id="time",RO.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};var zO=function(e){Is(n,e);var t=Bs(n);function n(e){var r;return Vt(this,n),(r=t.call(this,e))._table=[],r._minPos=void 0,r._tableRange=void 0,r}return Bt(n,[{key:"initOffsets",value:function(){var e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=IO(t,this.min),this._tableRange=IO(t,this.max)-this._minPos,Cw(zs(n.prototype),"initOffsets",this).call(this,e)}},{key:"buildLookupTable",value:function(e){var t,n,r,i,a,o=this.min,s=this.max,l=[],u=[];for(t=0,n=e.length;t<n;++t)(i=e[t])>=o&&i<=s&&l.push(i);if(l.length<2)return[{time:o,pos:0},{time:s,pos:1}];for(t=0,n=l.length;t<n;++t)a=l[t+1],r=l[t-1],i=l[t],Math.round((a+r)/2)!==i&&u.push({time:i,pos:t/(n-1)});return u}},{key:"_getTimestampsForTable",value:function(){var e=this._cache.all||[];if(e.length)return e;var t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e}},{key:"getDecimalForValue",value:function(e){return(IO(this._table,e)-this._minPos)/this._tableRange}},{key:"getValueForPixel",value:function(e){var t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return IO(this._table,n*this._tableRange+this._minPos,!0)}}]),n}(RO);zO.id="timeseries",zO.defaults=RO.defaults;var FO=[wE,CT,dO,Object.freeze({__proto__:null,CategoryScale:hO,LinearScale:gO,LogarithmicScale:bO,RadialLinearScale:TO,TimeScale:RO,TimeSeriesScale:zO})];XM.register.apply(XM,Ls(FO));var UO=XM;function BO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VO(e){for(var t=arguments,n=function(n){var r=null!=t[n]?t[n]:{},i=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),i.forEach((function(t){BO(e,t,r[t])}))},r=1;r<arguments.length;r++)n(r);return e}function HO(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function WO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ZO(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function YO(e,t){e.labels=t}function qO(e,t){e.datasets=t.map((function(t){var n=e.datasets.find((function(e){return e.label===t.label&&e.type===t.type}));return n&&t.data?(Object.assign(n,t),n):VO({},t)}))}function GO(e){var t={labels:[],datasets:[]};return YO(t,e.labels),qO(t,e.datasets),t}var KO={datasets:[]};function QO(e,t){var n=e.height,i=void 0===n?150:n,a=e.width,o=void 0===a?300:a,s=e.redraw,l=void 0!==s&&s,u=e.type,c=e.data,d=e.options,f=e.plugins,h=void 0===f?[]:f,p=e.getDatasetAtEvent,m=e.getElementAtEvent,v=e.getElementsAtEvent,g=e.fallbackContent,y=e.onClick,b=HO(e,["height","width","redraw","type","data","options","plugins","getDatasetAtEvent","getElementAtEvent","getElementsAtEvent","fallbackContent","onClick"]),x=(0,r.useRef)(null),_=(0,r.useRef)(),w=WO((0,r.useState)()),k=w[0],C=w[1],S=k||("function"===typeof c?KO:c),E=function(){x.current&&(_.current=new UO(x.current,{type:u,data:GO(S),options:d,plugins:h}),ZO(t,_.current))},M=function(){ZO(t,null),_.current&&(_.current.destroy(),_.current=null)};return(0,r.useEffect)((function(){"function"===typeof c&&x.current&&C(c(x.current))}),[c]),(0,r.useEffect)((function(){var e,t;!l&&_.current&&d&&(e=_.current,t=d,e.options=VO({},t))}),[l,d]),(0,r.useEffect)((function(){!l&&_.current&&YO(_.current.config.data,S.labels)}),[l,S.labels]),(0,r.useEffect)((function(){!l&&_.current&&S.datasets&&qO(_.current.config.data,S.datasets)}),[l,S.datasets]),(0,r.useEffect)((function(){_.current&&(l?(M(),setTimeout(E)):_.current.update())}),[l,d,S.labels,S.datasets]),(0,r.useEffect)((function(){return E(),function(){return M()}}),[]),r.createElement("canvas",Object.assign({ref:x,role:"img",height:i,width:o,onClick:function(e){y&&y(e);var t=_.current;t&&(p&&p(t.getElementsAtEventForMode(e.nativeEvent,"dataset",{intersect:!0},!1),e),m&&m(t.getElementsAtEventForMode(e.nativeEvent,"nearest",{intersect:!0},!1),e),v&&v(t.getElementsAtEventForMode(e.nativeEvent,"index",{intersect:!0},!1),e))}},b),g)}var XO=(0,r.forwardRef)(QO);function $O(e){return(0,r.forwardRef)((function(t,n){return r.createElement(XO,Object.assign({},t,{ref:n,type:e}))}))}var JO=$O("line"),eN=$O("bar"),tN=($O("radar"),$O("doughnut")),nN=($O("polarArea"),$O("bubble"),$O("pie"),$O("scatter"),yt((function(e){return function(){return e}})));function rN(e,t,n,r){var i,a=function(i){for(var a=t.length,o=0;o<a;){if(e===t[o])return n[o];o+=1}for(var s in t[o+1]=e,n[o+1]=i,e)i[s]=r?rN(e[s],t,n,!0):e[s];return i};switch(Dn(e)){case"Object":return a({});case"Array":return a([]);case"Date":return new Date(e.valueOf());case"RegExp":return i=e,new RegExp(i.source,(i.global?"g":"")+(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.sticky?"y":"")+(i.unicode?"u":""));default:return e}}var iN=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype["@@transducer/init"]=sn,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(fn(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}(),aN=cg(4,[],Gt([],cg(4,[],(function(e,t,n,r){return new iN(e,t,n,r)})),(function(e,t,n,r){return on((function(r,i){var a=n(i);return r[a]=e(fn(a,r)?r[a]:rN(t,[],[],!1),i),r}),{},r)}))),oN=aN,sN=oN((function(e,t){return e+1}),0),lN=yt((function(e){return kt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()})),uN=lN,cN=n(1089);var dN=n(3514);function fN(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function hN(e,t){(0,wg.Z)(2,arguments);var n=(0,xg.default)(e),r=(0,xg.default)(t),i=fN(n,r),a=Math.abs((0,dN.default)(n,r));n.setDate(n.getDate()-i*a);var o=Number(fN(n,r)===-i),s=i*(a-o);return 0===s?0:s}var pN=n(4552),mN=n(3712);var vN=n(9996),gN=n(1437),yN=n(6634);var bN=n(449),xN=n.n(bN),_N=bt((function(e,t){for(var n=0,r=Math.min(e.length,t.length),i={};n<r;)i[e[n]]=t[n],n+=1;return i})),wN=_N,kN="Others",CN=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],SN=function(e){var t,n;return av(e)?null!==(t=null===(n=e.split("/")[e.includes("://")?2:0])||void 0===n?void 0:n.split(":")[0])&&void 0!==t?t:"":"Direct"},EN=function(e,t){return Object.values(We(We({},wN(t,t.map((function(){return 0})))),e))},MN=function(e,t){var n=e.native,r=Q(t,1)[0];null!==n&&void 0!==n&&n.target&&(n.target.style.cursor=r?"pointer":"default")},TN=function(e){var t=e.dataset,n=e.formattedValue;return"".concat(t.label,": ").concat(Gy(n))},ON=function(e){var t=e.label,n=e.formattedValue;return"".concat(t,": ").concat(Gy(n))},NN={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},PN={hourly:function(e){return{hours:e}},daily:function(e){return{days:e}},weekly:function(e){return{weeks:e}},monthly:function(e){return{months:e}}},jN={hourly:function(e,t,n){(0,wg.Z)(2,arguments);var r=fb(e,t)/cN.vh;return pb(null===n||void 0===n?void 0:n.roundingMethod)(r)},daily:hN,weekly:function(e,t,n){(0,wg.Z)(2,arguments);var r=hN(e,t)/7;return pb(null===n||void 0===n?void 0:n.roundingMethod)(r)},monthly:db},DN={hourly:function(e){return(0,bg.default)(e,"yyyy-MM-dd HH:00")},daily:function(e){return(0,bg.default)(e,"yyyy-MM-dd")},weekly:function(e){var t=(0,bg.default)((0,pN.Z)(e),"yyyy-MM-dd"),n=(0,bg.default)(function(e){return(0,wg.Z)(1,arguments),(0,mN.default)(e,{weekStartsOn:1})}(e),"yyyy-MM-dd");return"".concat(t," - ").concat(n)},monthly:function(e){return(0,bg.default)(e,"yyyy-MM")}},LN=function(e,t){return sN((function(t){return DN[e]((0,Jv.default)(t.date))}),t)},AN=function(e,t){var n=jN[e],r=DN[e],i=(0,Jv.default)(t[0].date),a=(0,Jv.default)(t[t.length-1].date),o=n(i,a),s=PN[e];return[r(a)].concat(Ls(iv(o,(function(e){return r(function(e,t){if((0,wg.Z)(2,arguments),!t||"object"!==typeof t)return new Date(NaN);var n=t.years?(0,yN.Z)(t.years):0,r=t.months?(0,yN.Z)(t.months):0,i=t.weeks?(0,yN.Z)(t.weeks):0,a=t.days?(0,yN.Z)(t.days):0,o=t.hours?(0,yN.Z)(t.hours):0,s=t.minutes?(0,yN.Z)(t.minutes):0,l=t.seconds?(0,yN.Z)(t.seconds):0,u=(0,xg.default)(e),c=r||n?(0,gN.default)(u,r+12*n):u,d=a||i?(0,vN.default)(c,a+7*i):c,f=1e3*(l+60*(s+60*o));return new Date(d.getTime()+f)}(a,s(e)))}))))},RN=function(e,t,n){return{label:t,data:e,fill:!1,tension:.2,borderColor:n,backgroundColor:n}},IN=null,zN=function(e,t,n){return function(r){var i=Q(r,1)[0];if(n&&i){var a,o=i.index;if(IN===e[o])n([]),IN=null;else n(e[o]?t[e[o]]:[]),IN=null!==(a=e[o])&&void 0!==a?a:null}}},FN=function(e){var t=e.title,n=e.visits,i=e.highlightedVisits,a=e.highlightedLabel,o=void 0===a?"Selected":a,s=e.setSelectedVisits,l=Q((0,r.useState)(n.length>0?function(e){var t,n=new Date,r=(0,Jv.default)(e);return null!==(t=gg([[function(){return hN(n,r)<=2},nN("hourly")],[function(){return db(n,r)<=1},nN("daily")],[function(){return db(n,r)<=6},nN("weekly")]])())&&void 0!==t?t:"monthly"}(n[n.length-1].date):"monthly"),2),u=l[0],c=l[1],d=Q(pm(!0),2),f=d[0],h=d[1],p=(0,r.useMemo)((function(){return function(e,t){return t.reduce((function(t,n){var r,i=DN[e]((0,Jv.default)(n.date));return t[i]=null!==(r=t[i])&&void 0!==r?r:[],t[i].push(n),t}),{})}(u,n)}),[u,n]),m=(0,r.useMemo)((function(){return LN(u,uN(n))}),[u,n]),v=(0,r.useMemo)((function(){return function(e,t,n,r){if(r)return[Object.keys(t),Object.values(t)];var i=AN(n,e);return[i,EN(t,i)]}(n,m,u,f)}),[n,u,f]),g=Q(v,2),y=g[0],b=g[1],x=(0,r.useMemo)((function(){return EN(LN(u,uN(i)),y)}),[i,u,y]),_=function(){var e=RN(b,"Visits",vm);return 0===i.length?[e]:[e,RN(x,o,gm)]},w={maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{intersect:!1,axis:"x",callbacks:{label:TN}}},scales:{y:{beginAtZero:!0,ticks:{precision:0,callback:Gy}},x:{title:{display:!0,text:NN[u]}}},onHover:MN},k=function(){return(0,rr.jsx)(JO,{data:{labels:y,datasets:_()},options:w,getElementAtEvent:zN(y,p,s)})};return(0,rr.jsxs)($c,{children:[(0,rr.jsxs)(wd,{children:[t,(0,rr.jsx)("div",{className:"float-end",children:(0,rr.jsxs)(Jp,{children:[(0,rr.jsx)(xc,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),(0,rr.jsx)(vc,{end:!0,children:Object.entries(NN).map((function(e){var t=Q(e,2),n=t[0],r=t[1];return(0,rr.jsx)(dc,{active:u===n,onClick:function(){return c(n)},children:r},n)}))})]})}),(0,rr.jsx)("div",{className:"float-end me-2",children:(0,rr.jsx)(cy,{checked:f,onChange:h,children:(0,rr.jsx)("small",{children:"Skip dates with no visits"})})})]}),(0,rr.jsxs)(dd,{className:"line-chart-card__body",children:[i.length>0&&k(),0===i.length&&k()]})]})},UN=bt((function(e,t){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r<t.length;)n.push(tv(r,r+=e,t));return n})),BN=UN,VN=function(e){var t=e.pagesCount,n=e.currentPage,r=e.setCurrentPage,i=e.centered,a=void 0===i||i;if(t<2)return null;var o=function(e){return function(){return!Xy(e)&&r(e)}};return(0,rr.jsxs)(tp,{listClassName:Hs()("flex-wrap mb-0 simple-paginator",{"justify-content-center":a}),children:[(0,rr.jsx)(ap,{disabled:n<=1,children:(0,rr.jsx)(up,{previous:!0,tag:"span",onClick:o(n-1)})}),Qy(n,t).map((function(e,t){return(0,rr.jsx)(ap,{disabled:Xy(e),active:n===e,children:(0,rr.jsx)(up,{tag:"span",onClick:o(e),children:$y(e)})},Jy(e,t))})),(0,rr.jsx)(ap,{disabled:n>=t,children:(0,rr.jsx)(up,{next:!0,tag:"span",onClick:o(n+1)})})]})},HN=["browser","os","referer","country","city"],WN=function(e,t){return t.filter((function(t){return function(e,t){var n=e.browser,r=e.os,i=e.referer,a=e.country,o=e.city,s=Ht(e,HN);return"".concat(n," ").concat(r," ").concat(i," ").concat(a," ").concat(o," ").concat(s.visitedUrl).toLowerCase().includes(t.toLowerCase())}(t,e)}))},ZN=function(e,t,n){var r=function(e,t){return Zn(t,e)}(n,t?WN(t,e):Ls(e)),i=r.length;return{visitsGroups:BN(20,r),total:i}},YN=function(e){var t,n,i=e.visits,a=e.selectedVisits,o=void 0===a?[]:a,s=e.setSelectedVisits,l=e.selectedServer,u=e.matchMedia,c=void 0===u?window.matchMedia:u,d=e.isOrphanVisits,f=void 0!==d&&d,h="visits-table__header-cell visits-table__sticky",p=function(){return c("(max-width: 767px)").matches},m=Q((0,r.useState)(p()),2),v=m[0],g=m[1],y=Q((0,r.useState)(void 0),2),b=y[0],x=y[1],_=Q((0,r.useState)({}),2),w=_[0],k=_[1],C=(0,r.useMemo)((function(){return ZN(i,b,w)}),[b,w]),S=(0,r.useRef)(!0),E=Q((0,r.useState)(1),2),M=E[0],T=E[1],O=20*M,N=O-20,P=yv(l),j=7+Number(P)+Number(f),D=function(e){return function(){return k({field:e,dir:Wn(e,w.field,w.dir)})}},L=function(e){return(0,rr.jsx)(Sy,{currentOrder:w,field:e,className:"visits-table__header-icon"})};return(0,r.useEffect)((function(){var e=function(){return g(p())};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),(0,r.useEffect)((function(){T(1),!S.current&&s([]),S.current=!1}),[b]),(0,rr.jsx)("div",{className:"table-responsive-md",children:(0,rr.jsxs)("table",{className:"table table-bordered table-hover table-sm visits-table",children:[(0,rr.jsxs)("thead",{className:"visits-table__header",children:[(0,rr.jsxs)("tr",{children:[(0,rr.jsx)("th",{className:"".concat(h," text-center"),onClick:function(){return s(o.length<C.total?C.visitsGroups.flat():[])},children:(0,rr.jsx)(Ps,{icon:br,className:Hs()({"text-primary":o.length>0})})}),P&&(0,rr.jsxs)("th",{className:"".concat(h," text-center"),onClick:D("potentialBot"),children:[(0,rr.jsx)(Ps,{icon:ri}),L("potentialBot")]}),(0,rr.jsxs)("th",{className:h,onClick:D("date"),children:["Date",L("date")]}),(0,rr.jsxs)("th",{className:h,onClick:D("country"),children:["Country",L("country")]}),(0,rr.jsxs)("th",{className:h,onClick:D("city"),children:["City",L("city")]}),(0,rr.jsxs)("th",{className:h,onClick:D("browser"),children:["Browser",L("browser")]}),(0,rr.jsxs)("th",{className:h,onClick:D("os"),children:["OS",L("os")]}),(0,rr.jsxs)("th",{className:h,onClick:D("referer"),children:["Referrer",L("referer")]}),f&&(0,rr.jsxs)("th",{className:h,onClick:D("visitedUrl"),children:["Visited URL",L("visitedUrl")]})]}),(0,rr.jsx)("tr",{children:(0,rr.jsx)("td",{colSpan:j,className:"p-0",children:(0,rr.jsx)(eg,{noBorder:!0,large:!1,onChange:x})})})]}),(0,rr.jsxs)("tbody",{children:[!(null!==(t=C.visitsGroups[M-1])&&void 0!==t&&t.length)&&(0,rr.jsx)("tr",{children:(0,rr.jsx)("td",{colSpan:j,className:"text-center",children:"No visits found with current filtering"})}),null===(n=C.visitsGroups[M-1])||void 0===n?void 0:n.map((function(e,t){var n=o.includes(e);return(0,rr.jsxs)("tr",{style:{cursor:"pointer"},className:Hs()({"table-active":n}),onClick:function(){return s(n?o.filter((function(t){return t!==e})):[].concat(Ls(o),[e]))},children:[(0,rr.jsx)("td",{className:"text-center",children:n&&(0,rr.jsx)(Ps,{icon:br,className:"text-primary"})}),P&&(0,rr.jsx)("td",{className:"text-center",children:e.potentialBot&&(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(Ps,{icon:ri,id:"botIcon".concat(t)}),(0,rr.jsx)(tm,{placement:"right",target:"botIcon".concat(t),children:"Potentially a visit from a bot or crawler"})]})}),(0,rr.jsx)("td",{children:(0,rr.jsx)(Tb,{date:e.date})}),(0,rr.jsx)("td",{children:e.country}),(0,rr.jsx)("td",{children:e.city}),(0,rr.jsx)("td",{children:e.browser}),(0,rr.jsx)("td",{children:e.os}),(0,rr.jsx)("td",{children:e.referer}),f&&(0,rr.jsx)("td",{children:e.visitedUrl})]},t)}))]}),C.total>20&&(0,rr.jsx)("tfoot",{children:(0,rr.jsx)("tr",{children:(0,rr.jsx)("td",{colSpan:j,className:"visits-table__footer-cell visits-table__sticky",children:(0,rr.jsxs)("div",{className:"row",children:[(0,rr.jsx)("div",{className:"col-md-6",children:(0,rr.jsx)(VN,{pagesCount:Math.ceil(C.total/20),currentPage:M,setCurrentPage:T,centered:v})}),(0,rr.jsx)("div",{className:Hs()("col-md-6",{"d-flex align-items-center flex-row-reverse":!v,"text-center mt-3":v}),children:(0,rr.jsxs)("div",{children:["Visits ",(0,rr.jsx)("b",{children:Gy(N+1)})," to"," ",(0,rr.jsx)("b",{children:Gy(Zy(O,C.total))})," of"," ",(0,rr.jsx)("b",{children:Gy(C.total)})]})})]})})})})]})})},qN=function(e){var t=e.modalTitle,n=e.activeCities,i=e.locations,a=void 0===i?[]:i,o=Q(pm(),4),s=o[0],l=o[2],u=o[3],c=Q(pm(),3),d=c[0],f=c[1],h=c[2],p=Q((0,r.useState)([]),2),m=p[0],v=p[1],g=(0,r.useRef)(),y=function(e){return function(){v(e?a.filter((function(e){var t=e.cityName;return n.includes(t)})):a),l()}};return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(Hu,{color:"link",className:"open-map-modal-btn__btn",ref:g,onClick:function(){if(!n)return v(a),void l();h()},children:(0,rr.jsx)(Ps,{icon:Yr})}),(0,rr.jsx)(tm,{placement:"left",target:function(){return g.current},children:"Show in map"}),(0,rr.jsx)($u,{isOpen:d,toggle:f,inNavbar:!0,children:(0,rr.jsxs)(vc,{end:!0,children:[(0,rr.jsx)(dc,{onClick:y(!1),children:"Show all locations"}),(0,rr.jsx)(dc,{onClick:y(!0),children:"Show locations in current page"})]})}),(0,rr.jsx)(vw,{toggle:u,isOpen:s,title:t,locations:m})]})},GN=function(e){return void 0!==e.visitedUrl},KN=rv(bt(Jm("groupBy",oN((function(e,t){return null==e&&(e=[]),e.push(t),e}),null)))((function(e){return GN(e.visit)?"orphanVisits":"regularVisits"})),(function(e){return We({orphanVisits:[],regularVisits:[]},e)})),QN=function(e,t){return sN(Nt(t),e)},XN=function(e){var t,n,r=e.page,i=e.itemsPerPage,a=e.filter,o=e.dateRange;return{page:r,itemsPerPage:i,startDate:null!==(t=(null===o||void 0===o?void 0:o.startDate)&&Og(null===o||void 0===o?void 0:o.startDate))&&void 0!==t?t:void 0,endDate:null!==(n=(null===o||void 0===o?void 0:o.endDate)&&Og(null===o||void 0===o?void 0:o.endDate))&&void 0!==n?n:void 0,excludeBots:(null===a||void 0===a?void 0:a.excludeBots)||void 0}},$N=function(e,t){return!Mn(e)&&av(e[t])},JN=function(e){return"number"===typeof e?e:e?parseFloat(e):0},eP=function(e){return function(t,n){var r=$N(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1}},tP=eP("country"),nP=eP("city"),rP=function(e){return e.reduce((function(e,t){return function(e,t){var n=t.os;e[n]=(e[n]||0)+1}(e.os,t),function(e,t){var n=t.browser;e[n]=(e[n]||0)+1}(e.browsers,t),function(e,t){var n=t.referer;e[n]=(e[n]||0)+1}(e.referrers,t),tP(e.countries,t),nP(e.cities,t),function(e,t){if($N(t,"city")&&"Unknown"!==t.city){var n=t.city,r=t.latitude,i=t.longitude,a=e[n]||{cityName:n,count:0,latLong:[JN(r),JN(i)]};a.count+=1,e[n]=a}}(e.citiesForMap,t),function(e,t){if(function(e){return void 0!==e.visitedUrl}(t)){var n=t.visitedUrl;e[n]=(e[n]||0)+1}}(e.visitedUrls,t),e}),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}})},iP=hg((function(e){var t=e.userAgent,n=e.date,r=e.referer,i=e.visitLocation,a=e.potentialBot,o=We(We({date:n,potentialBot:void 0!==a&&a},function(e){if(!av(e))return{browser:kN,os:kN};var t=xN().parse(e),n=t.browser.name,r=t.os.name;return{os:null!==r&&void 0!==r?r:kN,browser:n&&CN.includes(n)?n:kN}}(t)),{},{referer:SN(r),country:(null===i||void 0===i?void 0:i.countryName)||"Unknown",city:(null===i||void 0===i?void 0:i.cityName)||"Unknown",latitude:null===i||void 0===i?void 0:i.latitude,longitude:null===i||void 0===i?void 0:i.longitude});return GN(e)?We(We({},o),{},{type:e.type,visitedUrl:e.visitedUrl}):o})),aP=function(e){var t=e.onChange,n=e.selected,r=void 0===n?{}:n,i=e.className,a=e.isOrphanVisits,o=e.botsSupported;if(!o&&!a)return null;var s=r.orphanVisitsType,l=r.excludeBots,u=void 0!==l&&l,c=function(e){return{active:s===e,onClick:function(){return t(We(We({},r),{},{orphanVisitsType:e===(null===r||void 0===r?void 0:r.orphanVisitsType)?void 0:e}))}}};return(0,rr.jsxs)(ng,{text:"Filters",dropdownClassName:i,className:"me-3",right:!0,minWidth:250,children:[o&&(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(dc,{header:!0,children:"Bots:"}),(0,rr.jsx)(dc,{active:u,onClick:function(){return t(We(We({},r),{},{excludeBots:!(null!==r&&void 0!==r&&r.excludeBots)}))},children:"Exclude potential bots"})]}),o&&a&&(0,rr.jsx)(dc,{divider:!0}),a&&(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(dc,{header:!0,children:"Orphan visits type:"}),(0,rr.jsx)(dc,We(We({},c("base_url")),{},{children:"Base URL"})),(0,rr.jsx)(dc,We(We({},c("invalid_short_url")),{},{children:"Invalid short URL"})),(0,rr.jsx)(dc,We(We({},c("regular_404")),{},{children:"Regular 404"}))]}),(0,rr.jsx)(dc,{divider:!0}),(0,rr.jsx)(dc,{disabled:!av(r),onClick:function(){return t({})},children:(0,rr.jsx)("i",{children:"Clear filters"})})]})},oP=function(e){var t,n,r=e.chart.config,i=null!==(t=r.data)&&void 0!==t?t:{},a=i.labels,o=void 0===a?[]:a,s=i.datasets,l=Q(void 0===s?[]:s,1)[0].backgroundColor,u=(null!==(n=r.options)&&void 0!==n?n:{}).defaultColor;return(0,rr.jsx)("ul",{className:"doughnut-chart-legend",children:o.map((function(e,t){var n;return(0,rr.jsxs)("li",{className:"doughnut-chart-legend__item d-flex",children:[(0,rr.jsx)("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:null!==(n=l[t])&&void 0!==n?n:u}}),(0,rr.jsx)("small",{className:"doughnut-chart-legend__item-text flex-fill",children:e})]},e)}))})},sP=function(e){return[{data:e,backgroundColor:["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],borderColor:bm()?"#161b22":"white",borderWidth:2}]},lP=(0,r.memo)((function(e){var t=e.stats,n=Q((0,r.useState)(),2),i=n[0],a=n[1],o=_n(t),s=wm(t),l={plugins:{legend:{display:!1},tooltip:{intersect:!0,callbacks:{label:ON}}}},u=function(e,t){return{labels:e,datasets:sP(t)}}(o,s);return(0,rr.jsxs)("div",{className:"row",children:[(0,rr.jsx)("div",{className:"col-sm-12 col-md-7",children:(0,rr.jsx)(tN,{height:300,data:u,options:l,ref:function(e){a(null!==e&&void 0!==e?e:void 0)}})}),(0,rr.jsx)("div",{className:"col-sm-12 col-md-5",children:i&&(0,rr.jsx)(oP,{chart:i})})]})})),uP=function(e){var t=e.title,n=e.footer,r=e.children;return(0,rr.jsxs)($c,{children:[(0,rr.jsx)(wd,{className:"chart-card__header",children:"function"===typeof t?t():t}),(0,rr.jsx)(dd,{children:r}),n&&(0,rr.jsx)(yd,{className:"chart-card__footer--sticky",children:n})]})},cP=function(e){var t=e.title,n=e.stats;return(0,rr.jsx)(uP,{title:t,children:(0,rr.jsx)(lP,{stats:n})})};function dP(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}function fP(e,t){return function(e,t,n){var r,i;if("function"===typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(i=e[n])&&1/i===r)return n;n+=1}return-1}if(t!==t){for(;n<e.length;){if("number"===typeof(i=e[n])&&i!==i)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(In(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function hP(e){return'"'+e.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").replace(/"/g,'\\"')+'"'}var pP=function(e){return(e<10?"0":"")+e},mP="function"===typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+pP(e.getUTCMonth()+1)+"-"+pP(e.getUTCDate())+"T"+pP(e.getUTCHours())+":"+pP(e.getUTCMinutes())+":"+pP(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},vP=mP;function gP(e,t){var n=function(n){var r=t.concat([e]);return fP(n,r)?"<Circular>":gP(n,r)},r=function(e,t){return og((function(t){return hP(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+og(n,e).join(", ")+"))";case"[object Array]":return"["+og(n,e).concat(r(e,Sn((function(e){return/^\d+$/.test(e)}),_n(e)))).join(", ")+"]";case"[object Boolean]":return"object"===typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):hP(vP(e)))+")";case"[object Null]":return"null";case"[object Number]":return"object"===typeof e?"new Number("+n(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return"object"===typeof e?"new String("+n(e.valueOf())+")":hP(e);case"[object Undefined]":return"undefined";default:if("function"===typeof e.toString){var i=e.toString();if("[object Object]"!==i)return i}return"{"+r(e,_n(e)).join(", ")+"}"}}var yP,bP=yt((function(e){return gP(e,[])})),xP=bt((function(e,t){return dg(e+1,(function(){var n=arguments[e];if(null!=n&&dP(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(bP(n)+' does not have a method named "'+t+'"')}))})),_P=xP(0,"toLowerCase"),wP=bt((function(e,t){return Array.prototype.slice.call(t,0).sort((function(t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0}))})),kP=wP,CP=function(e){var t=e.toggleClassName,n=e.ranges,r=e.value,i=e.setValue;return(0,rr.jsxs)(Jp,{children:[(0,rr.jsx)(xc,{caret:!0,color:"link",className:t,children:"Paginate"}),(0,rr.jsxs)(vc,{end:!0,children:[n.map((function(e){return(0,rr.jsxs)(dc,{active:e===r,onClick:function(){return i(e)},children:[(0,rr.jsx)("b",{children:e})," items per page"]},e)})),(0,rr.jsx)(dc,{divider:!0}),(0,rr.jsx)(dc,{disabled:r===1/0,onClick:function(){return i(1/0)},children:(0,rr.jsx)("i",{children:"Clear pagination"})})]})]})},SP=function(e){return e.startsWith("hidden")?"":e},EP=function(e,t,n){var r={data:e,label:n?"Non-selected":"Visits",backgroundColor:"rgba(70, 150, 229, 0.4)",borderColor:vm,borderWidth:2};return t.every((function(e){return 0===e}))?[r]:[r,{label:null!==n&&void 0!==n?n:"Selected",data:t,backgroundColor:"rgba(247, 127, 40, 0.4)",borderColor:gm,borderWidth:2}]},MP=function(e,t){return function(n){var r=Q(n,1)[0];t&&r&&t(e[r.index])}},TP=function(e){var t=e.stats,n=e.highlightedStats,r=e.highlightedLabel,i=e.onClick,a=e.max,o=_n(t).map(SP),s=wm(function(e){return!!e&&Object.keys(e).length>0}(n)?_n(n).reduce((function(e,t){return e[t]&&(e[t]-=n[t]),e}),We({},t)):t),l=EN(null!==n&&void 0!==n?n:{},o),u={plugins:{legend:{display:!1},tooltip:{mode:"y",filter:function(e){return""!==e.label},callbacks:{label:TN}}},scales:{x:{beginAtZero:!0,stacked:!0,max:a,ticks:{precision:0,callback:Gy}},y:{stacked:!0}},onHover:MN,indexAxis:"y"},c=function(e,t,n,r){return{labels:e,datasets:EP(t,n,r)}}(o,s,l,r),d=function(e){return e.length>20?10*e.length:void 0}(o),f=function(e){return(0,rr.jsx)(eN,{data:c,options:u,height:d,getElementAtEvent:MP(o,i)},"".concat(d,"_").concat(e))};return(0,rr.jsxs)(rr.Fragment,{children:[void 0!==n&&f("with_stats"),void 0===n&&f("without_stats")]})},OP=["stats","highlightedStats","title","sortingItems","extraHeaderContent","withPagination"],NP=function(e){return"String"===Dn(e)?_P(e):e},PP=function(e){return Q(e,1)[0]},jP=function(e){return Q(e,2)[1]},DP=function(e){var t=e.stats,n=e.highlightedStats,i=e.title,a=e.sortingItems,o=e.extraHeaderContent,s=e.withPagination,l=void 0===s||s,u=Ht(e,OP),c=Q((0,r.useState)({}),2),d=c[0],f=c[1],h=Q((0,r.useState)(1),2),p=h[0],m=h[1],v=Q((0,r.useState)(50),2),g=v[0],y=v[1],b=function(e){var t=e[p-1];if(p<e.length)return t;var n=e[0].length;return[].concat(Ls(t),Ls(iv(n-t.length,(function(e){return["hidden_".concat(e),0]}))))},x=function(e,t,n){var r=function(e,t){var n=py(e),r=d.field?kP(rv(d.field===Object.keys(t)[0]?PP:jP,NP),n):n;return d.dir&&"ASC"!==d.dir?uN(r):r}(e,t),i=r.map(PP),a=n&&py(We(We({},wN(i,i.map((function(){return 0})))),n));if(r.length<=g)return{currentPageStats:C_(r),currentPageHighlightedStats:a&&C_(a)};var o,s,l=BN(g,r),u=a&&BN(g,a);return{currentPageStats:C_(b(l)),currentPageHighlightedStats:u&&C_(b(u)),pagination:(s=l.length,(0,rr.jsx)(VN,{currentPage:p,pagesCount:s,setCurrentPage:m})),max:(o=Math.max.apply(Math,Ls(r.map(jP))),10*Yy(o/10))}}(t,a,n&&Object.keys(n).length>0?n:void 0),_=x.currentPageStats,w=x.currentPageHighlightedStats,k=x.pagination,C=x.max,S=Object.keys(_);return(0,rr.jsx)(uP,{title:function(){return(0,rr.jsxs)(rr.Fragment,{children:[i,(0,rr.jsx)("div",{className:"float-end",children:(0,rr.jsx)(my,{isButton:!1,right:!0,items:a,order:d,onChange:function(e,t){f({field:e,dir:t}),m(1)}})}),l&&Object.keys(t).length>50&&(0,rr.jsx)("div",{className:"float-end",children:(0,rr.jsx)(CP,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:g,setValue:function(e){y(e),m(1)}})}),o&&(0,rr.jsx)("div",{className:"float-end",children:o(k?S:void 0)})]})},footer:k,children:(0,rr.jsx)(TP,We({stats:_,highlightedStats:w,max:C},u))})},LP={byTime:{title:"By time",subPath:"by-time",icon:mr},byContext:{title:"By context",subPath:"by-context",icon:yr},byLocation:{title:"By location",subPath:"by-location",icon:Yr},list:{title:"List",subPath:"list",icon:Vr}},AP=function(e){var t,n,i=e.children,a=e.visitsInfo,o=e.getVisits,s=e.cancelGetVisits,l=e.domain,u=e.settings,c=e.exportCsv,d=e.selectedServer,f=e.isOrphanVisits,h=void 0!==f&&f,p=a.visits,m=a.loading,v=a.loadingLarge,g=a.error,y=a.errorData,b=a.progress,x=a.fallbackInterval,_=Q((0,r.useState)(null!==(t=null!==x&&void 0!==x?x:null===(n=u.visits)||void 0===n?void 0:n.defaultInterval)&&void 0!==t?t:"last30Days"),2),w=_[0],k=_[1],C=Q((0,r.useState)(Bg(w)),2),S=C[0],E=C[1],M=Q((0,r.useState)([]),2),T=M[0],O=M[1],N=Q((0,r.useState)(),2),P=N[0],j=N[1],D=Q((0,r.useState)({}),2),L=D[0],A=D[1],R=yv(d),I=(0,r.useRef)(!0),z=function(e){var t=l?"?domain=".concat(l):"";return e?"".concat(e).concat(t):"".concat(t)},F=(0,r.useMemo)((function(){return iP(p)}),[p]),U=(0,r.useMemo)((function(){return rP(F)}),[F]),B=U.os,V=U.browsers,H=U.referrers,W=U.countries,Z=U.cities,Y=U.citiesForMap,q=U.visitedUrls,G=wm(Y),K=function(e){yP=void 0,O(e)},X=function(e){return function(t){var n="".concat(e,"_").concat(t);yP===n?(O([]),j(void 0),yP=void 0):(O(F.filter(bw(e,t))),j(t),yP=n)}};(0,r.useEffect)((function(){return s}),[]),(0,r.useEffect)((function(){o({dateRange:S,filter:L},I.current),I.current=!1}),[S,L]),(0,r.useEffect)((function(){x&&k(x)}),[x]);return(0,rr.jsxs)(rr.Fragment,{children:[i,(0,rr.jsx)("section",{className:"mt-3",children:(0,rr.jsxs)("div",{className:"row flex-md-row-reverse",children:[(0,rr.jsx)("div",{className:"col-lg-7 col-xl-6",children:(0,rr.jsxs)("div",{className:"d-md-flex",children:[(0,rr.jsx)("div",{className:"flex-fill",children:(0,rr.jsx)(ey,{updatable:!0,disabled:m,initialDateRange:w,defaultText:"All visits",onDatesChange:E})}),(0,rr.jsx)(aP,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:h,botsSupported:R,selected:L,onChange:A})]})}),p.length>0&&(0,rr.jsx)("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:(0,rr.jsxs)("div",{className:"d-flex",children:[(0,rr.jsxs)(Hu,{outline:!0,disabled:0===T.length,className:"btn-md-block me-2",onClick:function(){return K([])},children:["Clear selection ",T.length>0&&(0,rr.jsxs)(rr.Fragment,{children:["(",Gy(T.length),")"]})]}),(0,rr.jsx)(qx,{className:"btn-md-block",amount:F.length,onClick:function(){return c(F)}})]})})]})}),(0,rr.jsx)("section",{className:"mt-3",children:v?(0,rr.jsxs)(Nm,{loading:!0,children:["This is going to take a while... :S",(0,rr.jsx)(Mf,{value:b,striped:100===b,className:"mt-3"})]}):m?(0,rr.jsx)(Nm,{loading:!0}):g?(0,rr.jsx)(Ib,{type:"error",children:(0,rr.jsx)(Ub,{errorData:y,fallbackMessage:"An error occurred while loading visits :("})}):Fn(p)?(0,rr.jsx)(Nm,{children:"There are no visits matching current filter :("}):(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(ww,{fill:!0,children:Object.values(LP).map((function(e,t){var n=e.title,r=e.icon,i=e.subPath;return(0,rr.jsxs)(_w,{to:z(i),replace:!0,children:[(0,rr.jsx)(Ps,{icon:r}),(0,rr.jsx)("span",{className:"ms-2 d-none d-sm-inline",children:n})]},t)}))}),(0,rr.jsx)(Ql,{children:(0,rr.jsxs)(fe,{children:[(0,rr.jsx)(ce,{path:LP.byTime.subPath,element:(0,rr.jsx)("div",{className:"col-12 mt-3",children:(0,rr.jsx)(FN,{title:"Visits during time",visits:F,highlightedVisits:T,highlightedLabel:P,setSelectedVisits:K})})}),(0,rr.jsx)(ce,{path:LP.byContext.subPath,element:(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("div",{className:Hs()("mt-3 col-lg-6",{"col-xl-4":!h}),children:(0,rr.jsx)(cP,{title:"Operating systems",stats:B})}),(0,rr.jsx)("div",{className:Hs()("mt-3 col-lg-6",{"col-xl-4":!h}),children:(0,rr.jsx)(cP,{title:"Browsers",stats:V})}),(0,rr.jsx)("div",{className:Hs()("mt-3",{"col-xl-4":!h,"col-lg-6":h}),children:(0,rr.jsx)(DP,{title:"Referrers",stats:H,withPagination:!1,highlightedStats:QN(T,"referer"),highlightedLabel:P,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:X("referer")})}),h&&(0,rr.jsx)("div",{className:"mt-3 col-lg-6",children:(0,rr.jsx)(DP,{title:"Visited URLs",stats:q,highlightedLabel:P,highlightedStats:QN(T,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:X("visitedUrl")})})]})}),(0,rr.jsx)(ce,{path:LP.byLocation.subPath,element:(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("div",{className:"col-lg-6 mt-3",children:(0,rr.jsx)(DP,{title:"Countries",stats:W,highlightedStats:QN(T,"country"),highlightedLabel:P,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:X("country")})}),(0,rr.jsx)("div",{className:"col-lg-6 mt-3",children:(0,rr.jsx)(DP,{title:"Cities",stats:Z,highlightedStats:QN(T,"city"),highlightedLabel:P,extraHeaderContent:function(e){return G.length>0&&(0,rr.jsx)(qN,{modalTitle:"Cities",locations:G,activeCities:e})},sortingItems:{name:"City name",amount:"Visits amount"},onClick:X("city")})})]})}),(0,rr.jsx)(ce,{path:LP.list.subPath,element:(0,rr.jsx)("div",{className:"col-12",children:(0,rr.jsx)(YN,{visits:F,selectedVisits:T,setSelectedVisits:K,isOrphanVisits:h,selectedServer:d})})}),(0,rr.jsx)(ce,{path:"*",element:(0,rr.jsx)(ue,{replace:!0,to:z(LP.byTime.subPath)})})]})})]})})]})},RP=function(e){var t=e.exportVisits;return ky((function(e){var n=e.shortUrlVisits,i=e.shortUrlDetail,a=e.getShortUrlVisits,o=e.getShortUrlDetail,s=e.cancelGetShortUrlVisits,l=e.settings,u=e.selectedServer,c=ge().shortCode,d=void 0===c?"":c,f=me().search,h=mm(),p=Vn(f).domain;return(0,r.useEffect)((function(){o(d,p)}),[]),(0,rr.jsx)(AP,{getVisits:function(e,t){return a(d,We(We({},XN(e)),{},{domain:p}),t)},cancelGetVisits:s,visitsInfo:n,domain:p,settings:l,exportCsv:function(e){var n;return t("short-url_".concat(null===(n=i.shortUrl)||void 0===n?void 0:n.shortUrl.replace(/https?:\/\//g,""),"_visits.csv"),e)},selectedServer:u,children:(0,rr.jsx)(yw,{shortUrlDetail:i,shortUrlVisits:n,goBack:h})})}),(function(e,t){return[Cy.shortUrlVisits(t.shortCode)]}))},IP=function(e){var t=e.tagVisits,n=e.goBack,r=e.colorGenerator,i=t.visits,a=t.tag,o=(0,rr.jsxs)("span",{className:"d-flex align-items-center justify-content-center",children:[(0,rr.jsx)("span",{className:"me-2",children:"Visits for"}),(0,rr.jsx)(tg,{text:a,colorGenerator:r})]});return(0,rr.jsx)(gw,{title:o,goBack:n,visits:i})},zP=function(e,t){var n=t.exportVisits;return ky((function(t){var r=t.getTagVisits,i=t.tagVisits,a=t.cancelGetTagVisits,o=t.settings,s=t.selectedServer,l=mm(),u=ge().tag,c=void 0===u?"":u;return(0,rr.jsx)(AP,{getVisits:function(e,t){return r(c,XN(e),t)},cancelGetVisits:a,visitsInfo:i,settings:o,exportCsv:function(e){return n("tag_".concat(c,"_visits.csv"),e)},selectedServer:s,children:(0,rr.jsx)(IP,{tagVisits:i,goBack:l,colorGenerator:e})})}),(function(){return[Cy.visits]}))},FP=function(e){var t=e.orphanVisits,n=e.goBack,r=t.visits;return(0,rr.jsx)(gw,{title:"Orphan visits",goBack:n,visits:r})},UP=function(e){var t=e.exportVisits;return ky((function(e){var n=e.getOrphanVisits,r=e.orphanVisits,i=e.cancelGetOrphanVisits,a=e.settings,o=e.selectedServer,s=mm();return(0,rr.jsx)(AP,{getVisits:function(e,t){var r;return n(XN(e),null===(r=e.filter)||void 0===r?void 0:r.orphanVisitsType,t)},cancelGetVisits:i,visitsInfo:r,settings:a,exportCsv:function(e){return t("orphan_visits.csv",e)},selectedServer:o,isOrphanVisits:!0,children:(0,rr.jsx)(FP,{orphanVisits:r,goBack:s})})}),(function(){return[Cy.orphanVisits]}))},BP=function(e){var t=e.nonOrphanVisits,n=e.goBack,r=t.visits;return(0,rr.jsx)(gw,{title:"Non-orphan visits",goBack:n,visits:r})},VP=function(e){var t=e.exportVisits;return ky((function(e){var n=e.getNonOrphanVisits,r=e.nonOrphanVisits,i=e.cancelGetNonOrphanVisits,a=e.settings,o=e.selectedServer,s=mm();return(0,rr.jsx)(AP,{getVisits:function(e,t){return n(XN(e),t)},cancelGetVisits:i,visitsInfo:r,settings:a,exportCsv:function(e){return t("non_orphan_visits.csv",e)},selectedServer:o,children:(0,rr.jsx)(BP,{nonOrphanVisits:r,goBack:s})})}),(function(){return[Cy.visits]}))};function HP(e){return function t(n){for(var r,i,a,o=[],s=0,l=n.length;s<l;){if(Xt(n[s]))for(a=0,i=(r=e?t(n[s]):n[s]).length;a<i;)o[o.length]=r[a],a+=1;else o[o.length]=n[s];s+=1}return o}}var WP,ZP,YP,qP,GP,KP=yt(HP(!0)),QP=5e3,XP=function(e){return e.currentPage>=e.pagesCount},$P=function(e,t){return 100*t/e},JP=function(){var e=Ft(Zt().mark((function e(t,n,r,i,a,o){var s,l,u,c,d,f,h;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a({type:i.start}),s=function(){var e=Ft(Zt().mark((function e(n){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(n.map(function(){var e=Ft(Zt().mark((function e(n){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t(n,QP).then(Nt("data")));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())).then(KP));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=Ft(Zt().mark((function e(t){var n,r,u=arguments;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=u.length>1&&void 0!==u[1]?u[1]:0,!o()){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,s(t[n]);case 5:if(r=e.sent,a({type:i.progress,progress:$P(t.length,n+2)}),!(n<t.length-1)){e.next=13;break}return e.t0=r,e.next=11,l(t,n+1);case 11:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 13:return e.abrupt("return",r);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=Ft(Zt().mark((function e(){var n,r,o,s,u,c,d=arguments;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=d.length>0&&void 0!==d[0]?d[0]:1,e.next=3,t(n,QP);case 3:if(r=e.sent,o=r.pagination,s=r.data,o&&!XP(o)){e.next=8;break}return e.abrupt("return",s);case 8:return u=Km(2,o.pagesCount+1),c=BN(4,u),o.pagesCount-1>4&&a({type:i.large}),e.t0=s,e.next=14,l(c);case 14:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.prev=4,e.next=7,Promise.all([u(),n()]);case 7:c=e.sent,d=Q(c,2),f=d[0],h=d[1],a(!f.length&&h?{type:i.fallbackToInterval,fallbackInterval:Vg(h.date)}:We(We({},r),{},{visits:f,type:i.finish})),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),a({type:i.error,errorData:zb(e.t0)});case 17:case"end":return e.stop()}}),e,null,[[4,14]])})));return function(t,n,r,i,a,o){return e.apply(this,arguments)}}(),ej=function(e,t){return Ft(e?Zt().mark((function e(){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t({page:1,itemsPerPage:1}).then((function(e){return e.data[0]})));case 1:case"end":return e.stop()}}),e)})):Zt().mark((function e(){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve(void 0));case 1:case"end":return e.stop()}}),e)})))},tj="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_START",nj="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_ERROR",rj="shlink/shortUrlVisits/GET_SHORT_URL_VISITS",ij="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_LARGE",aj="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_CANCEL",oj="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_PROGRESS_CHANGED",sj="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_FALLBACK_TO_INTERVAL",lj={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},uj=Bv((Ve(WP={},tj,(function(){return We(We({},lj),{},{loading:!0})})),Ve(WP,nj,(function(e,t){var n=t.errorData;return We(We({},lj),{},{error:!0,errorData:n})})),Ve(WP,rj,(function(e,t){var n=t.visits,r=t.query,i=t.shortCode,a=t.domain;return We(We({},e),{},{visits:n,shortCode:i,domain:a,query:r,loading:!1,error:!1})})),Ve(WP,ij,(function(e){return We(We({},e),{},{loadingLarge:!0})})),Ve(WP,aj,(function(e){return We(We({},e),{},{cancelLoad:!0})})),Ve(WP,oj,(function(e,t){var n=t.progress;return We(We({},e),{},{progress:n})})),Ve(WP,sj,(function(e,t){var n=t.fallbackInterval;return We(We({},e),{},{fallbackInterval:n})})),Ve(WP,Kb,(function(e,t){var n=t.createdVisits,r=e.shortCode,i=e.domain,a=e.visits,o=e.query,s=void 0===o?{}:o,l=s.startDate,u=s.endDate,c=n.filter((function(e){var t=e.shortUrl,n=e.visit;return t&&Gb(t,r,i)&&jg(n.date,l,u)})).map((function(e){return e.visit}));return 0===c.length?e:We(We({},e),{},{visits:[].concat(Ls(c),Ls(a))})})),WP),lj),cj=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var i=Ft(Zt().mark((function i(a,o){var s,l,u,c,d,f,h;return Zt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=e(o),l=s.getShortUrlVisits,u=function(){var e=Ft(Zt().mark((function e(r,i){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,We(We({},n),{},{page:r,itemsPerPage:i})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),c=ej(r,function(){var e=Ft(Zt().mark((function e(r){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,We(We({},r),{},{domain:n.domain})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),d=function(){return o().shortUrlVisits.cancelLoad},f={shortCode:t,query:n,domain:n.domain},h={start:tj,large:ij,finish:rj,error:nj,progress:oj,fallbackToInterval:sj},i.abrupt("return",JP(u,c,f,h,a,d));case 7:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}()}},dj=Vv(aj),fj="shlink/tagVisits/GET_TAG_VISITS_START",hj="shlink/tagVisits/GET_TAG_VISITS_ERROR",pj="shlink/tagVisits/GET_TAG_VISITS",mj="shlink/tagVisits/GET_TAG_VISITS_LARGE",vj="shlink/tagVisits/GET_TAG_VISITS_CANCEL",gj="shlink/tagVisits/GET_TAG_VISITS_PROGRESS_CHANGED",yj="shlink/tagVisits/GET_TAG_VISITS_FALLBACK_TO_INTERVAL",bj={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},xj=Bv((Ve(ZP={},fj,(function(){return We(We({},bj),{},{loading:!0})})),Ve(ZP,hj,(function(e,t){var n=t.errorData;return We(We({},bj),{},{error:!0,errorData:n})})),Ve(ZP,pj,(function(e,t){var n=t.visits,r=t.tag,i=t.query;return We(We({},e),{},{visits:n,tag:r,query:i,loading:!1,error:!1})})),Ve(ZP,mj,(function(e){return We(We({},e),{},{loadingLarge:!0})})),Ve(ZP,vj,(function(e){return We(We({},e),{},{cancelLoad:!0})})),Ve(ZP,gj,(function(e,t){var n=t.progress;return We(We({},e),{},{progress:n})})),Ve(ZP,yj,(function(e,t){var n=t.fallbackInterval;return We(We({},e),{},{fallbackInterval:n})})),Ve(ZP,Kb,(function(e,t){var n=t.createdVisits,r=e.tag,i=e.visits,a=e.query,o=void 0===a?{}:a,s=o.startDate,l=o.endDate,u=n.filter((function(e){var t=e.shortUrl,n=e.visit;return(null===t||void 0===t?void 0:t.tags.includes(r))&&jg(n.date,s,l)})).map((function(e){return e.visit}));return We(We({},e),{},{visits:[].concat(Ls(u),Ls(i))})})),ZP),bj),_j=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var i=Ft(Zt().mark((function i(a,o){var s,l,u,c,d,f,h;return Zt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=e(o),l=s.getTagVisits,u=function(){var e=Ft(Zt().mark((function e(r,i){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,We(We({},n),{},{page:r,itemsPerPage:i})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),c=ej(r,function(){var e=Ft(Zt().mark((function e(n){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,n));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),d=function(){return o().tagVisits.cancelLoad},f={tag:t,query:n},h={start:fj,large:mj,finish:pj,error:hj,progress:gj,fallbackToInterval:yj},i.abrupt("return",JP(u,c,f,h,a,d));case 7:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}()}},wj=Vv(vj),kj="shlink/orphanVisits/GET_ORPHAN_VISITS_START",Cj="shlink/orphanVisits/GET_ORPHAN_VISITS_ERROR",Sj="shlink/orphanVisits/GET_ORPHAN_VISITS",Ej="shlink/orphanVisits/GET_ORPHAN_VISITS_LARGE",Mj="shlink/orphanVisits/GET_ORPHAN_VISITS_CANCEL",Tj="shlink/orphanVisits/GET_ORPHAN_VISITS_PROGRESS_CHANGED",Oj="shlink/orphanVisits/GET_ORPHAN_VISITS_FALLBACK_TO_INTERVAL",Nj={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Pj=Bv((Ve(YP={},kj,(function(){return We(We({},Nj),{},{loading:!0})})),Ve(YP,Cj,(function(e,t){var n=t.errorData;return We(We({},Nj),{},{error:!0,errorData:n})})),Ve(YP,Sj,(function(e,t){var n=t.visits,r=t.query;return We(We({},e),{},{visits:n,query:r,loading:!1,error:!1})})),Ve(YP,Ej,(function(e){return We(We({},e),{},{loadingLarge:!0})})),Ve(YP,Mj,(function(e){return We(We({},e),{},{cancelLoad:!0})})),Ve(YP,Tj,(function(e,t){var n=t.progress;return We(We({},e),{},{progress:n})})),Ve(YP,Oj,(function(e,t){var n=t.fallbackInterval;return We(We({},e),{},{fallbackInterval:n})})),Ve(YP,Kb,(function(e,t){var n=t.createdVisits,r=e.visits,i=e.query,a=void 0===i?{}:i,o=a.startDate,s=a.endDate,l=n.filter((function(e){var t=e.visit;return!e.shortUrl&&jg(t.date,o,s)})).map((function(e){return e.visit}));return We(We({},e),{},{visits:[].concat(Ls(l),Ls(r))})})),YP),Nj),jj=function(e,t){return!t||t===e.type},Dj=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var i=Ft(Zt().mark((function i(a,o){var s,l,u,c,d,f,h;return Zt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=e(o),l=s.getOrphanVisits,u=function(){var e=Ft(Zt().mark((function e(r,i){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(We(We({},t),{},{page:r,itemsPerPage:i})).then((function(e){var t=e.data.filter((function(e){return GN(e)&&jj(e,n)}));return We(We({},e),{},{data:t})})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),c=ej(r,l),d=function(){return o().orphanVisits.cancelLoad},f={query:t},h={start:kj,large:Ej,finish:Sj,error:Cj,progress:Tj,fallbackToInterval:Oj},i.abrupt("return",JP(u,c,f,h,a,d));case 7:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}()}},Lj=Vv(Mj),Aj="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_START",Rj="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_ERROR",Ij="shlink/orphanVisits/GET_NON_ORPHAN_VISITS",zj="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_LARGE",Fj="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_CANCEL",Uj="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_PROGRESS_CHANGED",Bj="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_FALLBACK_TO_INTERVAL",Vj={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Hj=Bv((Ve(qP={},Aj,(function(){return We(We({},Vj),{},{loading:!0})})),Ve(qP,Rj,(function(e,t){var n=t.errorData;return We(We({},Vj),{},{error:!0,errorData:n})})),Ve(qP,Ij,(function(e,t){var n=t.visits,r=t.query;return We(We({},e),{},{visits:n,query:r,loading:!1,error:!1})})),Ve(qP,zj,(function(e){return We(We({},e),{},{loadingLarge:!0})})),Ve(qP,Fj,(function(e){return We(We({},e),{},{cancelLoad:!0})})),Ve(qP,Uj,(function(e,t){var n=t.progress;return We(We({},e),{},{progress:n})})),Ve(qP,Bj,(function(e,t){var n=t.fallbackInterval;return We(We({},e),{},{fallbackInterval:n})})),Ve(qP,Kb,(function(e,t){var n=t.createdVisits,r=e.visits,i=e.query,a=void 0===i?{}:i,o=a.startDate,s=a.endDate,l=n.filter((function(e){var t=e.visit;return jg(t.date,o,s)})).map((function(e){return e.visit}));return We(We({},e),{},{visits:[].concat(Ls(l),Ls(r))})})),qP),Vj),Wj=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(){var r=Ft(Zt().mark((function r(i,a){var o,s,l,u,c,d,f;return Zt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(a),s=o.getNonOrphanVisits,l=function(){var e=Ft(Zt().mark((function e(n,r){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(We(We({},t),{},{page:n,itemsPerPage:r})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),u=ej(n,s),c=function(){return a().orphanVisits.cancelLoad},d={query:t},f={start:Aj,large:zj,finish:Ij,error:Rj,progress:Uj,fallbackToInterval:Bj},r.abrupt("return",JP(l,u,d,f,i,c));case 7:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}()}},Zj=Vv(Fj),Yj=["visitsCount","orphanVisitsCount"],qj="shlink/visitsOverview/GET_OVERVIEW_START",Gj="shlink/visitsOverview/GET_OVERVIEW_ERROR",Kj="shlink/visitsOverview/GET_OVERVIEW",Qj={visitsCount:0,orphanVisitsCount:0,loading:!1,error:!1},Xj=Bv((Ve(GP={},qj,(function(){return We(We({},Qj),{},{loading:!0})})),Ve(GP,Gj,(function(){return We(We({},Qj),{},{error:!0})})),Ve(GP,Kj,(function(e,t){var n=t.visitsCount,r=t.orphanVisitsCount;return We(We({},Qj),{},{visitsCount:n,orphanVisitsCount:r})})),Ve(GP,Kb,(function(e,t){var n=e.visitsCount,r=e.orphanVisitsCount,i=void 0===r?0:r,a=Ht(e,Yj),o=t.createdVisits,s=KN(o),l=s.regularVisits,u=s.orphanVisits;return We(We({},a),{},{visitsCount:n+l.length,orphanVisitsCount:i+u.length})})),GP),Qj),$j=function(e){return function(){return function(){var t=Ft(Zt().mark((function t(n,r){var i,a,o;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n({type:qj}),t.prev=1,i=e(r),a=i.getVisitsOverview,t.next=5,a();case 5:o=t.sent,n(We({type:Kj},o)),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1),n({type:Gj});case 12:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(e,n){return t.apply(this,arguments)}}()}},Jj=function(t,n){t.serviceFactory("MapModal",(function(){return vw})),t.serviceFactory("ShortUrlVisits",RP,"ReportExporter"),t.decorator("ShortUrlVisits",n(["shortUrlVisits","shortUrlDetail","mercureInfo","settings","selectedServer"],["getShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("TagVisits",zP,"ColorGenerator","ReportExporter"),t.decorator("TagVisits",n(["tagVisits","mercureInfo","settings","selectedServer"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("OrphanVisits",UP,"ReportExporter"),t.decorator("OrphanVisits",n(["orphanVisits","mercureInfo","settings","selectedServer"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("NonOrphanVisits",VP,"ReportExporter"),t.decorator("NonOrphanVisits",n(["nonOrphanVisits","mercureInfo","settings","selectedServer"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("VisitsParser",(function(){return e})),t.serviceFactory("getShortUrlVisits",cj,"buildShlinkApiClient"),t.serviceFactory("cancelGetShortUrlVisits",(function(){return dj})),t.serviceFactory("getTagVisits",_j,"buildShlinkApiClient"),t.serviceFactory("cancelGetTagVisits",(function(){return wj})),t.serviceFactory("getOrphanVisits",Dj,"buildShlinkApiClient"),t.serviceFactory("cancelGetOrphanVisits",(function(){return Lj})),t.serviceFactory("getNonOrphanVisits",Wj,"buildShlinkApiClient"),t.serviceFactory("cancelGetNonOrphanVisits",(function(){return Zj})),t.serviceFactory("createNewVisits",(function(){return Qb})),t.serviceFactory("loadVisitsOverview",$j,"buildShlinkApiClient")},eD=n(4581),tD=n.n(eD),nD=function(e){var t=e.tag,n=e.colorGenerator;return(0,rr.jsx)("div",{style:{backgroundColor:n.getColorForKey(t)},className:"tag-bullet"})},rD=function(e){return{id:e,name:e}},iD=function(e){return function(t){var n,i,a=t.selectedTags,o=t.onChange,s=t.placeholder,l=t.listTags,u=t.tagsList,c=t.settings;(0,r.useEffect)((function(){l()}),[]);var d=null!==(n=null===(i=c.shortUrlCreation)||void 0===i?void 0:i.tagFilteringMode)&&void 0!==n?n:"startsWith";return(0,rr.jsx)(tD(),{tags:a.map(rD),tagComponent:function(t){var n=t.tag,r=t.onDelete;return(0,rr.jsx)(tg,{colorGenerator:e,text:n.name,clearable:!0,className:"react-tags__tag",onClose:r})},suggestions:u.tags.filter((function(e){return!a.includes(e)})).map(rD),suggestionComponent:function(t){var n=t.item;return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(nD,{tag:"".concat(n.name),colorGenerator:e}),n.name]})},allowNew:!0,addOnBlur:!0,placeholderText:null!==s&&void 0!==s?s:"Add tags to the URL",minQueryLength:1,delimiters:["Enter","Tab",","],suggestionsTransform:"includes"===d?function(e,t){return t.filter((function(t){return t.name.includes(e)}))}:void 0,onDelete:function(e){var t=Ls(a);t.splice(e,1),o(t)},onAddition:function(e){var t=e.name;return o(Ls(new Set([].concat(Ls(a),Ls(t.toLowerCase().split(","))))))}})}},aD=function(e,t,n){return function(i){var a=i.tag,o=i.selectedServer,s=i.displayed,l=i.toggle,u=Q(pm(),2),c=u[0],d=u[1],f=Q(pm(),2),h=f[0],p=f[1],m=Q(pm(),3),v=m[0],g=m[2],y=(0,r.useRef)(),b=Rt(o);return(0,r.useEffect)((function(){var e;(e=y.current)&&e.scrollWidth>e.clientWidth&&g()}),[y.current]),(0,rr.jsxs)($c,{className:"tag-card",children:[(0,rr.jsxs)(wd,{className:"tag-card__header",children:[(0,rr.jsx)(Hu,{color:"link",size:"sm",className:"tag-card__btn tag-card__btn--last",onClick:d,children:(0,rr.jsx)(Ps,{icon:di})}),(0,rr.jsx)(Hu,{color:"link",size:"sm",className:"tag-card__btn",onClick:p,children:(0,rr.jsx)(Ps,{icon:Jr})}),(0,rr.jsxs)("h5",{className:"tag-card__tag-title text-ellipsis",title:v?a.tag:void 0,ref:function(e){y.current=null!==e&&void 0!==e?e:void 0},children:[(0,rr.jsx)(nD,{tag:a.tag,colorGenerator:n}),(0,rr.jsx)("span",{className:"tag-card__tag-name",onClick:l,children:a.tag})]})]}),(0,rr.jsx)(Vc,{isOpen:s,children:(0,rr.jsxs)(dd,{className:"tag-card__body",children:[(0,rr.jsxs)(ze,{to:"/server/".concat(b,"/list-short-urls/1?tags=").concat(encodeURIComponent(a.tag)),className:"btn btn-outline-secondary btn-block d-flex justify-content-between align-items-center mb-1",children:[(0,rr.jsxs)("span",{className:"text-ellipsis",children:[(0,rr.jsx)(Ps,{icon:Br,className:"me-2"}),"Short URLs"]}),(0,rr.jsx)("b",{children:Gy(a.shortUrls)})]}),(0,rr.jsxs)(ze,{to:"/server/".concat(b,"/tag/").concat(a.tag,"/visits"),className:"btn btn-outline-secondary btn-block d-flex justify-content-between align-items-center",children:[(0,rr.jsxs)("span",{className:"text-ellipsis",children:[(0,rr.jsx)(Ps,{icon:Pr,className:"me-2"}),"Visits"]}),(0,rr.jsx)("b",{children:Gy(a.visits)})]})]})}),(0,rr.jsx)(e,{tag:a.tag,toggle:d,isOpen:c}),(0,rr.jsx)(t,{tag:a.tag,toggle:p,isOpen:h})]})}},oD=function(e){var t=e.tag,n=e.toggle,r=e.isOpen,i=e.deleteTag,a=e.tagDelete,o=e.tagDeleted,s=a.deleting,l=a.error,u=a.errorData,c=function(){var e=Ft(Zt().mark((function e(){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i(t);case 2:o(t),n();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,rr.jsxs)(If,{toggle:n,isOpen:r,centered:!0,children:[(0,rr.jsx)(Bf,{toggle:n,children:(0,rr.jsx)("span",{className:"text-danger",children:"Delete tag"})}),(0,rr.jsxs)(Zf,{children:["Are you sure you want to delete tag ",(0,rr.jsx)("b",{children:t}),"?",l&&(0,rr.jsx)(Ib,{type:"error",small:!0,className:"mt-2",children:(0,rr.jsx)(Ub,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),(0,rr.jsxs)(Kf,{children:[(0,rr.jsx)(Hu,{color:"link",onClick:n,children:"Cancel"}),(0,rr.jsx)(Hu,{color:"danger",disabled:s,onClick:c,children:s?"Deleting tag...":"Delete tag"})]})]})};function sD(){return(sD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function lD(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}function uD(e){var t=(0,r.useRef)(e),n=(0,r.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var cD=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},dD=function(e){return"touches"in e},fD=function(e){return e&&e.ownerDocument.defaultView||self},hD=function(e,t,n){var r=e.getBoundingClientRect(),i=dD(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:cD((i.pageX-(r.left+fD(e).pageXOffset))/r.width),top:cD((i.pageY-(r.top+fD(e).pageYOffset))/r.height)}},pD=function(e){!dD(e)&&e.preventDefault()},mD=r.memo((function(e){var t=e.onMove,n=e.onKey,i=lD(e,["onMove","onKey"]),a=(0,r.useRef)(null),o=uD(t),s=uD(n),l=(0,r.useRef)(null),u=(0,r.useRef)(!1),c=(0,r.useMemo)((function(){var e=function(e){pD(e),(dD(e)?e.touches.length>0:e.buttons>0)&&a.current?o(hD(a.current,e,l.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=u.current,i=fD(a.current),o=n?i.addEventListener:i.removeEventListener;o(r?"touchmove":"mousemove",e),o(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=a.current;if(r&&(pD(t),!function(e,t){return t&&!dD(e)}(t,u.current)&&r)){if(dD(t)){u.current=!0;var i=t.changedTouches||[];i.length&&(l.current=i[0].identifier)}r.focus(),o(hD(r,t,l.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),s({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[s,o]),d=c[0],f=c[1],h=c[2];return(0,r.useEffect)((function(){return h}),[h]),r.createElement("div",sD({},i,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:a,onKeyDown:f,tabIndex:0,role:"slider"}))})),vD=function(e){return e.filter(Boolean).join(" ")},gD=function(e){var t=e.color,n=e.left,i=e.top,a=void 0===i?.5:i,o=vD(["react-colorful__pointer",e.className]);return r.createElement("div",{className:o,style:{top:100*a+"%",left:100*n+"%"}},r.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},yD=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},bD=(Math.PI,function(e){return"#"===e[0]&&(e=e.substr(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:1}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:1}}),xD=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:yD(e.h),s:yD(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:yD(i/2),a:yD(r,2)}},_D=function(e){var t=xD(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},wD=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),o=r*(1-n),s=r*(1-(t-a)*n),l=r*(1-(1-t+a)*n),u=a%6;return{r:yD(255*[r,s,o,o,l,r][u]),g:yD(255*[l,r,r,s,o,o][u]),b:yD(255*[o,o,l,r,r,s][u]),a:yD(i,2)}},kD=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},CD=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,a=Math.max(t,n,r),o=a-Math.min(t,n,r),s=o?a===t?(n-r)/o:a===n?2+(r-t)/o:4+(t-n)/o:0;return{h:yD(60*(s<0?s+6:s)),s:yD(a?o/a*100:0),v:yD(a/255*100),a:i}},SD=r.memo((function(e){var t=e.hue,n=e.onChange,i=vD(["react-colorful__hue",e.className]);return r.createElement("div",{className:i},r.createElement(mD,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:cD(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":yD(t)},r.createElement(gD,{className:"react-colorful__hue-pointer",left:t/360,color:_D({h:t,s:100,v:100,a:1})})))})),ED=r.memo((function(e){var t=e.hsva,n=e.onChange,i={backgroundColor:_D({h:t.h,s:100,v:100,a:1})};return r.createElement("div",{className:"react-colorful__saturation",style:i},r.createElement(mD,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:cD(t.s+100*e.left,0,100),v:cD(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+yD(t.s)+"%, Brightness "+yD(t.v)+"%"},r.createElement(gD,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:_D(t)})))})),MD=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function TD(e,t,n){var i=uD(n),a=(0,r.useState)((function(){return e.toHsva(t)})),o=a[0],s=a[1],l=(0,r.useRef)({color:t,hsva:o});(0,r.useEffect)((function(){if(!e.equal(t,l.current.color)){var n=e.toHsva(t);l.current={hsva:n,color:t},s(n)}}),[t,e]),(0,r.useEffect)((function(){var t;MD(o,l.current.hsva)||e.equal(t=e.fromHsva(o),l.current.color)||(l.current={hsva:o,color:t},i(t))}),[o,e,i]);var u=(0,r.useCallback)((function(e){s((function(t){return Object.assign({},t,e)}))}),[]);return[o,u]}var OD,ND,PD,jD,DD,LD="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,AD=new Map,RD=function(e){LD((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!AD.has(t)){var r=t.createElement("style");r.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}',AD.set(t,r);var i=OD||n.nc;i&&r.setAttribute("nonce",i),t.head.appendChild(r)}}),[])},ID=function(e){var t=e.className,n=e.colorModel,i=e.color,a=void 0===i?n.defaultColor:i,o=e.onChange,s=lD(e,["className","colorModel","color","onChange"]),l=(0,r.useRef)(null);RD(l);var u=TD(n,a,o),c=u[0],d=u[1],f=vD(["react-colorful",t]);return r.createElement("div",sD({},s,{ref:l,className:f}),r.createElement(ED,{hsva:c,onChange:d}),r.createElement(SD,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},zD={defaultColor:"000",toHsva:function(e){return CD(bD(e))},fromHsva:function(e){return n=(t=wD(e)).g,r=t.b,"#"+kD(t.r)+kD(n)+kD(r);var t,n,r},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||MD(bD(e),bD(t))}},FD=function(e){return r.createElement(ID,sD({},e,{colorModel:zD}))},UD=function(e){var t=e.getColorForKey;return function(e){var n=e.tag,i=e.editTag,a=e.toggle,o=e.tagEdited,s=e.isOpen,l=e.tagEdit,u=Q((0,r.useState)(n),2),c=u[0],d=u[1],f=Q((0,r.useState)(t(n)),2),h=f[0],p=f[1],m=Q(pm(),4),v=m[0],g=m[1],y=m[3],b=l.editing,x=l.error,_=l.errorData,w=ov(Ft(Zt().mark((function e(){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i(n,c,h).then((function(){return o(n,c,h)})).then(a).catch((function(){})));case 1:case"end":return e.stop()}}),e)}))));return(0,rr.jsx)(If,{isOpen:s,toggle:a,centered:!0,onClosed:y,children:(0,rr.jsxs)("form",{onSubmit:w,children:[(0,rr.jsx)(Bf,{toggle:a,children:"Edit tag"}),(0,rr.jsxs)(Zf,{children:[(0,rr.jsxs)(Eh,{children:[(0,rr.jsx)("div",{id:"colorPickerBtn",className:"input-group-text edit-tag-modal__color-picker-toggle",style:{backgroundColor:h,borderColor:h},onClick:g,children:(0,rr.jsx)(Ps,{icon:Gr,className:"edit-tag-modal__color-icon"})}),(0,rr.jsx)(vf,{isOpen:v,toggle:g,target:"colorPickerBtn",placement:"right",hideArrow:!0,popperClassName:"edit-tag-modal__popover",children:(0,rr.jsx)(FD,{color:h,onChange:p})}),(0,rr.jsx)(wh,{value:c,placeholder:"Tag",required:!0,onChange:function(e){var t=e.target;return d(t.value)}})]}),x&&(0,rr.jsx)(Ib,{type:"error",small:!0,className:"mt-2",children:(0,rr.jsx)(Ub,{errorData:_,fallbackMessage:"Something went wrong while editing the tag :("})})]}),(0,rr.jsxs)(Kf,{children:[(0,rr.jsx)(Hu,{type:"button",color:"link",onClick:a,children:"Cancel"}),(0,rr.jsx)(Hu,{color:"primary",disabled:b,children:b?"Saving...":"Save"})]})]})})}},BD={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},VD=function(e){var t,n=e.mode,r=e.onChange,i=e.renderTitle;return(0,rr.jsxs)(ng,{text:null!==(t=null===i||void 0===i?void 0:i(n))&&void 0!==t?t:"Display mode: ".concat(n),children:[(0,rr.jsxs)(dc,{active:"cards"===n,onClick:function(){return r("cards")},children:[(0,rr.jsx)(Ps,{icon:ui,fixedWidth:!0,className:"me-1"})," Cards"]}),(0,rr.jsxs)(dc,{active:"list"===n,onClick:function(){return r("list")},children:[(0,rr.jsx)(Ps,{icon:hr,fixedWidth:!0,className:"me-1"})," List"]})]})},HD=function(e,t){return ky((function(n){var i,a,o,s,l=n.filterTags,u=n.forceListTags,c=n.tagsList,d=n.selectedServer,f=n.settings,h=Q((0,r.useState)(null!==(i=null===(a=f.tags)||void 0===a?void 0:a.defaultMode)&&void 0!==i?i:"cards"),2),p=h[0],m=h[1],v=Q((0,r.useState)(null!==(o=null===(s=f.tags)||void 0===s?void 0:s.defaultOrdering)&&void 0!==o?o:{}),2),g=v[0],y=v[1],b=rv((function(){return c.filteredTags.map((function(e){var t,n,r,i;return{tag:e,shortUrls:null!==(t=null===(n=c.stats[e])||void 0===n?void 0:n.shortUrlsCount)&&void 0!==t?t:0,visits:null!==(r=null===(i=c.stats[e])||void 0===i?void 0:i.visitsCount)&&void 0!==r?r:0}}))}),(function(e){return Zn(e,g)}));if((0,r.useEffect)((function(){u()}),[]),c.loading)return(0,rr.jsx)(Nm,{loading:!0});if(c.error)return(0,rr.jsx)(Ib,{type:"error",children:(0,rr.jsx)(Ub,{errorData:c.errorData,fallbackMessage:"Error loading tags :("})});var x=function(e){return function(){var t=Wn(e,g.field,g.dir);y({field:t?e:void 0,dir:t})}};return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(eg,{className:"mb-3",onChange:l}),(0,rr.jsxs)(Ql,{className:"mb-3",children:[(0,rr.jsx)("div",{className:"col-lg-6",children:(0,rr.jsx)(VD,{mode:p,onChange:m})}),(0,rr.jsx)("div",{className:"col-lg-6 mt-3 mt-lg-0",children:(0,rr.jsx)(my,{items:BD,order:g,onChange:function(e,t){return y({field:e,dir:t})}})})]}),function(){if(c.filteredTags.length<1)return(0,rr.jsx)(Nm,{children:"No tags found"});var n=b();return"cards"===p?(0,rr.jsx)(e,{sortedTags:n,selectedServer:d}):(0,rr.jsx)(t,{sortedTags:n,selectedServer:d,currentOrder:g,orderByColumn:x})}()]})}),(function(){return[Cy.visits]}))},WD="shlink/deleteTag/DELETE_TAG_START",ZD="shlink/deleteTag/DELETE_TAG_ERROR",YD="shlink/deleteTag/DELETE_TAG",qD="shlink/deleteTag/TAG_DELETED",GD=Bv((Ve(ND={},WD,(function(){return{deleting:!0,error:!1}})),Ve(ND,ZD,(function(e,t){return{deleting:!1,error:!0,errorData:t.errorData}})),Ve(ND,YD,(function(){return{deleting:!1,error:!1}})),ND),{deleting:!1,error:!1}),KD=function(e){return function(t){return function(){var n=Ft(Zt().mark((function n(r,i){var a,o;return Zt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r({type:WD}),a=e(i),o=a.deleteTags,n.prev=2,n.next=5,o([t]);case 5:r({type:YD}),n.next=12;break;case 8:throw n.prev=8,n.t0=n.catch(2),r({type:ZD,errorData:zb(n.t0)}),n.t0;case 12:case"end":return n.stop()}}),n,null,[[2,8]])})));return function(e,t){return n.apply(this,arguments)}}()}},QD=function(e){return{type:qD,tag:e}},XD="shlink/editTag/EDIT_TAG_START",$D="shlink/editTag/EDIT_TAG_ERROR",JD="shlink/editTag/EDIT_TAG",eL="shlink/editTag/TAG_EDITED",tL=Bv((Ve(PD={},XD,(function(e){return We(We({},e),{},{editing:!0,error:!1})})),Ve(PD,$D,(function(e,t){var n=t.errorData;return We(We({},e),{},{editing:!1,error:!0,errorData:n})})),Ve(PD,JD,(function(e,t){return We(We({},_t(["oldName","newName"],t)),{},{editing:!1,error:!1})})),PD),{oldName:"",newName:"",editing:!1,error:!1}),nL=function(e,t){return function(n,r,i){return function(){var a=Ft(Zt().mark((function a(o,s){var l,u;return Zt().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return o({type:XD}),l=e(s),u=l.editTag,a.prev=2,a.next=5,u(n,r);case 5:t.setColorForKey(r,i),o({type:JD,oldName:n,newName:r}),a.next=13;break;case 9:throw a.prev=9,a.t0=a.catch(2),o({type:$D,errorData:zb(a.t0)}),a.t0;case 13:case"end":return a.stop()}}),a,null,[[2,9]])})));return function(e,t){return a.apply(this,arguments)}}()}},rL=function(e,t,n){return{type:eL,oldName:e,newName:t,color:n}},iL=["tags"],aL="shlink/tagsList/LIST_TAGS_START",oL="shlink/tagsList/LIST_TAGS_ERROR",sL="shlink/tagsList/LIST_TAGS",lL="shlink/tagsList/FILTER_TAGS",uL={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},cL=function(e,t){return function(n){return n===e?t:n}},dL=function(e,t){return Sn((function(e){return e===t}),e)},fL=function(e){return Object.entries(e.reduce((function(e,t){var n=t.shortUrl;return null===n||void 0===n||n.tags.forEach((function(t){e[t]=(e[t]||0)+1})),e}),{}))},hL=Bv((Ve(jD={},aL,(function(){return We(We({},uL),{},{loading:!0})})),Ve(jD,oL,(function(e,t){var n=t.errorData;return We(We({},uL),{},{error:!0,errorData:n})})),Ve(jD,sL,(function(e,t){var n=t.tags,r=t.stats;return We(We({},uL),{},{stats:r,tags:n,filteredTags:n})})),Ve(jD,qD,(function(e,t){var n=t.tag;return We(We({},e),{},{tags:dL(e.tags,n),filteredTags:dL(e.filteredTags,n)})})),Ve(jD,eL,(function(e,t){var n=t.oldName,r=t.newName;return We(We({},e),{},{tags:e.tags.map(cL(n,r)).sort(),filteredTags:e.filteredTags.map(cL(n,r)).sort()})})),Ve(jD,lL,(function(e,t){var n=t.searchTerm;return We(We({},e),{},{filteredTags:e.tags.filter((function(e){return e.toLowerCase().match(n)}))})})),Ve(jD,Kb,(function(e,t){var n,r,i=t.createdVisits;return We(We({},e),{},{stats:(n=fL(i),r=e.stats,n.reduce((function(e,t){var n=Q(t,2),r=n[0],i=n[1];if(!e[r])return e;var a=e[r];return a.visitsCount+=i,e[r]=a,e}),We({},r)))})})),Ve(jD,sx,(function(e,t){var n=e.tags,r=Ht(e,iL),i=t.result;return We(We({},r),{},{tags:n.concat(i.tags.filter((function(e){return!n.includes(e)})))})})),jD),uL),pL=function(e){return{type:lL,searchTerm:e}},mL=Math.ceil,vL=function(e){return function(t){var n=t.sortedTags,i=t.selectedServer,a=Q((0,r.useState)(),2),o=a[0],s=a[1],l=n.length,u=BN(mL(l/4),n);return(0,rr.jsx)(Ql,{children:u.map((function(t,n){return(0,rr.jsx)("div",{className:"col-md-6 col-xl-3",children:t.map((function(t){return(0,rr.jsx)(e,{tag:t,selectedServer:i,displayed:o===t.tag,toggle:function(){return s(o!==t.tag?t.tag:void 0)}},t.tag)}))},n)}))})}},gL=function(e){return function(t){var n,i=t.sortedTags,a=t.selectedServer,o=t.orderByColumn,s=t.currentOrder,l=(0,r.useRef)(!0),u=me().search,c=Vn(u).page,d=function(e,t){var n=Q((0,r.useState)(t),2),i=n[0],a=n[1];return[i,function(t){var n=window,r=n.location,i=n.history,o=Vn(r.search);o[e]=t,i.pushState(null,"","".concat(r.pathname,"?").concat(Hn(o))),a(t)}]}("page",Number(void 0===c?1:c)),f=Q(d,2),h=f[0],p=f[1],m=BN(20,i),v=m.length>1,g=null!==(n=m[h-1])&&void 0!==n?n:[];return(0,r.useEffect)((function(){!l.current&&p(1),l.current=!1}),[i]),(0,r.useEffect)((function(){scrollTo(0,0)}),[h]),(0,rr.jsxs)(Mv,{bodyClassName:v?"pb-1":"",children:[(0,rr.jsxs)("table",{className:"table table-hover responsive-table mb-0",children:[(0,rr.jsxs)("thead",{className:"responsive-table__header",children:[(0,rr.jsxs)("tr",{children:[(0,rr.jsxs)("th",{className:"tags-table__header-cell",onClick:o("tag"),children:["Tag ",(0,rr.jsx)(Sy,{currentOrder:s,field:"tag"})]}),(0,rr.jsxs)("th",{className:"tags-table__header-cell text-lg-end",onClick:o("shortUrls"),children:["Short URLs ",(0,rr.jsx)(Sy,{currentOrder:s,field:"shortUrls"})]}),(0,rr.jsxs)("th",{className:"tags-table__header-cell text-lg-end",onClick:o("visits"),children:["Visits ",(0,rr.jsx)(Sy,{currentOrder:s,field:"visits"})]}),(0,rr.jsx)("th",{"aria-label":"Options",className:"tags-table__header-cell"})]}),(0,rr.jsx)("tr",{children:(0,rr.jsx)("th",{"aria-label":"Separator",colSpan:4,className:"p-0 border-top-0"})})]}),(0,rr.jsxs)("tbody",{children:[0===g.length&&(0,rr.jsx)("tr",{children:(0,rr.jsx)("td",{colSpan:4,className:"text-center",children:"No results found"})}),g.map((function(t){return(0,rr.jsx)(e,{tag:t,selectedServer:a},t.tag)}))]})]}),v&&(0,rr.jsx)("div",{className:"sticky-card-paginator",children:(0,rr.jsx)(VN,{pagesCount:m.length,currentPage:h,setCurrentPage:p})})]},h)}},yL=function(e,t,n){return function(r){var i=r.tag,a=r.selectedServer,o=Q(pm(),2),s=o[0],l=o[1],u=Q(pm(),2),c=u[0],d=u[1],f=Q(pm(),2),h=f[0],p=f[1],m=Rt(a);return(0,rr.jsxs)("tr",{className:"responsive-table__row",children:[(0,rr.jsxs)("th",{className:"responsive-table__cell","data-th":"Tag",children:[(0,rr.jsx)(nD,{tag:i.tag,colorGenerator:n})," ",i.tag]}),(0,rr.jsx)("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:(0,rr.jsx)(ze,{to:"/server/".concat(m,"/list-short-urls/1?tags=").concat(encodeURIComponent(i.tag)),children:Gy(i.shortUrls)})}),(0,rr.jsx)("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:(0,rr.jsx)(ze,{to:"/server/".concat(m,"/tag/").concat(i.tag,"/visits"),children:Gy(i.visits)})}),(0,rr.jsx)("td",{className:"responsive-table__cell text-lg-end",children:(0,rr.jsxs)(Lb,{toggle:p,isOpen:h,children:[(0,rr.jsxs)(dc,{onClick:d,children:[(0,rr.jsx)(Ps,{icon:Jr,fixedWidth:!0,className:"me-1"})," Edit"]}),(0,rr.jsxs)(dc,{onClick:l,children:[(0,rr.jsx)(Ps,{icon:di,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),(0,rr.jsx)(t,{tag:i.tag,toggle:d,isOpen:c}),(0,rr.jsx)(e,{tag:i.tag,toggle:l,isOpen:s})]})}},bL=function(e,t){e.serviceFactory("TagsSelector",iD,"ColorGenerator"),e.decorator("TagsSelector",t(["tagsList","settings"],["listTags"])),e.serviceFactory("TagCard",aD,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.serviceFactory("DeleteTagConfirmModal",(function(){return oD})),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.serviceFactory("EditTagModal",UD,"ColorGenerator"),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.serviceFactory("TagsCards",vL,"TagCard"),e.serviceFactory("TagsTableRow",yL,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.serviceFactory("TagsTable",gL,"TagsTableRow"),e.serviceFactory("TagsList",HD,"TagsCards","TagsTable"),e.decorator("TagsList",t(["tagsList","selectedServer","mercureInfo","settings"],["forceListTags","filterTags","createNewVisits","loadMercureInfo"]));var n=function(e){return function(t){return function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(){return function(){var n=Ft(Zt().mark((function n(r,i){var a,o,s,l,u,c,d,f;return Zt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=i(),o=a.tagsList,t||!o.loading&&Fn(o.tags)){n.next=3;break}return n.abrupt("return");case 3:return r({type:aL}),n.prev=4,s=e(i),l=s.listTags,n.next=8,l();case 8:u=n.sent,c=u.tags,d=u.stats,f=(void 0===d?[]:d).reduce((function(e,t){var n=t.tag,r=t.shortUrlsCount,i=t.visitsCount;return e[n]={shortUrlsCount:r,visitsCount:i},e}),{}),r({tags:c,stats:f,type:sL}),n.next=19;break;case 16:n.prev=16,n.t0=n.catch(4),r({type:oL,errorData:zb(n.t0)});case 19:case"end":return n.stop()}}),n,null,[[4,16]])})));return function(e,t){return n.apply(this,arguments)}}()}}(t.buildShlinkApiClient,e)}};e.factory("listTags",n(!1)),e.factory("forceListTags",n(!0)),e.serviceFactory("filterTags",(function(){return pL})),e.serviceFactory("tagDeleted",(function(){return QD})),e.serviceFactory("tagEdited",(function(){return rL})),e.serviceFactory("deleteTag",KD,"buildShlinkApiClient"),e.serviceFactory("editTag",nL,"buildShlinkApiClient","ColorGenerator")},xL=function(e){return"".concat("shlink",".").concat(e)},_L=Bt((function e(t){var n=this;Vt(this,e),this.localStorage=t,this.get=function(e){var t=n.localStorage.getItem(xL(e));return t?JSON.parse(t):void 0},this.set=function(e,t){return n.localStorage.setItem(xL(e),JSON.stringify(t))}})),wL="0123456789ABCDEF",kL=Math.floor,CL=Math.random,SL=Math.sqrt,EL=Math.round,ML=function(e){return e.toLowerCase().trim()},TL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return EL(SL(.299*Math.pow(e,2)+.587*Math.pow(t,2)+.114*Math.pow(n,2)))},OL=Bt((function e(t){var n,r=this;Vt(this,e),this.storage=t,this.colors=void 0,this.lights=void 0,this.getColorForKey=function(e){var t=ML(e),n=r.colors[t];return n||r.setColorForKey(t,"#".concat(iv(6,(function(){return wL[kL(CL()*wL.length)]})).join("")))},this.setColorForKey=function(e,t){var n=ML(e);return r.colors[n]=t,r.storage.set("colors",r.colors),t},this.isColorLightForKey=function(e){var t=r.getColorForKey(e).substring(1);if(Mn(r.lights[t])){var n=function(e){var t;return(null!==(t=e.match(/../g))&&void 0!==t?t:[]).map((function(e){return parseInt(e,16)||0}))}(t);r.lights[t]=TL.apply(void 0,Ls(n))>=128}return r.lights[t]},this.colors=null!==(n=this.storage.get("colors"))&&void 0!==n?n:{},this.lights={}})),NL=function(e){e.constant("localStorage",n.g.localStorage),e.service("Storage",_L,"localStorage"),e.service("ColorGenerator",OL,"Storage"),e.constant("setTimeout",n.g.setTimeout),e.constant("clearTimeout",n.g.clearTimeout),e.serviceFactory("useStateFlagTimeout",hm,"setTimeout","clearTimeout")},PL="shlink/mercure/GET_MERCURE_INFO_START",jL="shlink/mercure/GET_MERCURE_INFO_ERROR",DL="shlink/mercure/GET_MERCURE_INFO",LL=Bv((Ve(DD={},PL,(function(e){return We(We({},e),{},{loading:!0,error:!1})})),Ve(DD,jL,(function(e){return We(We({},e),{},{loading:!1,error:!0})})),Ve(DD,DL,(function(e,t){return We(We({},t),{},{loading:!1,error:!1})})),DD),{loading:!0,error:!1}),AL=function(e){return function(){return function(){var t=Ft(Zt().mark((function t(n,r){var i,a,o,s,l;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n({type:PL}),i=r(),a=i.settings,o=e(r),s=o.mercureInfo,a.realTimeUpdates.enabled){t.next=6;break}return n({type:jL}),t.abrupt("return");case 6:return t.prev=6,t.next=9,s();case 9:l=t.sent,n(We({type:DL,interval:a.realTimeUpdates.interval},l)),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(6),n({type:jL});case 16:case"end":return t.stop()}}),t,null,[[6,13]])})));return function(e,n){return t.apply(this,arguments)}}()}},RL=function(e){e.serviceFactory("loadMercureInfo",AL,"buildShlinkApiClient")},IL=function(e){var t=e.children;return(0,rr.jsx)("small",{className:"form-text text-muted d-block",children:t})},zL=function(e){var t,n=e.settings.realTimeUpdates,r=e.toggleRealTimeUpdates,i=e.setRealTimeUpdatesInterval;return(0,rr.jsxs)(Mv,{title:"Real-time updates",className:"h-100",children:[(0,rr.jsx)(mh,{children:(0,rr.jsxs)(cy,{checked:n.enabled,onChange:r,children:["Enable or disable real-time updates.",(0,rr.jsxs)(IL,{children:["Real-time updates are currently being ",(0,rr.jsx)("b",{children:n.enabled?"processed":"ignored"}),"."]})]})}),(0,rr.jsxs)($x,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:Hs()("form-label",{"text-muted":!n.enabled}),children:[(0,rr.jsx)(wh,{type:"number",min:0,placeholder:"Immediate",disabled:!n.enabled,value:(t=n.interval,t?"".concat(t):""),onChange:function(e){var t=e.target;return i(Number(t.value))}}),n.enabled&&(0,rr.jsxs)(IL,{children:[void 0!==n.interval&&n.interval>0&&(0,rr.jsxs)("span",{children:["Updates will be reflected in the UI every ",(0,rr.jsx)("b",{children:n.interval})," minute",n.interval>1&&"s","."]}),!n.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},FL=function(e){var t=e.items;return(0,rr.jsx)(rr.Fragment,{children:t.map((function(e,t){return(0,rr.jsx)("div",{className:"mb-3",children:e},t)}))})},UL=function(e,t,n,r,i,a){return function(){return(0,rr.jsxs)(Pm,{children:[(0,rr.jsxs)(ww,{className:"mb-3",children:[(0,rr.jsx)(_w,{to:"general",children:"General"}),(0,rr.jsx)(_w,{to:"short-urls",children:"Short URLs"}),(0,rr.jsx)(_w,{to:"other-items",children:"Other items"})]}),(0,rr.jsxs)(fe,{children:[(0,rr.jsx)(ce,{path:"general",element:(0,rr.jsx)(FL,{items:[(0,rr.jsx)(r,{}),(0,rr.jsx)(e,{})]})}),(0,rr.jsx)(ce,{path:"short-urls",element:(0,rr.jsx)(FL,{items:[(0,rr.jsx)(t,{}),(0,rr.jsx)(n,{})]})}),(0,rr.jsx)(ce,{path:"other-items",element:(0,rr.jsx)(FL,{items:[(0,rr.jsx)(a,{}),(0,rr.jsx)(i,{})]})}),(0,rr.jsx)(ce,{path:"*",element:(0,rr.jsx)(ue,{replace:!0,to:"general"})})]})]})}},BL=function(e){return"includes"===e?"Suggest tags including input":"Suggest tags starting with input"},VL=function(e){var t,n,r,i,a,o=e.settings,s=e.setShortUrlCreationSettings,l=null!==(t=o.shortUrlCreation)&&void 0!==t?t:{validateUrls:!1},u=function(e){return function(){return s(We(We({},null!==l&&void 0!==l?l:{validateUrls:!1}),{},{tagFilteringMode:e}))}};return(0,rr.jsxs)(Mv,{title:"Short URLs form",className:"h-100",children:[(0,rr.jsx)(mh,{children:(0,rr.jsxs)(cy,{checked:null!==(n=l.validateUrls)&&void 0!==n&&n,onChange:function(e){return s(We(We({},l),{},{validateUrls:e}))},children:["Request validation on long URLs when creating new short URLs.",(0,rr.jsxs)(IL,{children:["The initial state of the ",(0,rr.jsx)("b",{children:"Validate URL"})," checkbox will be ",(0,rr.jsx)("b",{children:l.validateUrls?"checked":"unchecked"}),"."]})]})}),(0,rr.jsx)(mh,{children:(0,rr.jsxs)(cy,{checked:null===(r=l.forwardQuery)||void 0===r||r,onChange:function(e){return s(We(We({},l),{},{forwardQuery:e}))},children:["Make all new short URLs forward their query params to the long URL.",(0,rr.jsxs)(IL,{children:["The initial state of the ",(0,rr.jsx)("b",{children:"Forward query params on redirect"})," checkbox will be ",(0,rr.jsx)("b",{children:null===(i=l.forwardQuery)||void 0===i||i?"checked":"unchecked"}),"."]})]})}),(0,rr.jsxs)($x,{noMargin:!0,label:"Tag suggestions search mode:",children:[(0,rr.jsxs)(ng,{text:BL(l.tagFilteringMode),children:[(0,rr.jsx)(dc,{active:!l.tagFilteringMode||"startsWith"===l.tagFilteringMode,onClick:u("startsWith"),children:BL("startsWith")}),(0,rr.jsx)(dc,{active:"includes"===l.tagFilteringMode,onClick:u("includes"),children:BL("includes")})]}),(0,rr.jsx)(IL,{children:(a=l.tagFilteringMode,"includes"===a?(0,rr.jsxs)(rr.Fragment,{children:["The list of suggested tags will contain those ",(0,rr.jsx)("b",{children:"including"})," provided input."]}):(0,rr.jsxs)(rr.Fragment,{children:["The list of suggested tags will contain those ",(0,rr.jsx)("b",{children:"starting with"})," provided input."]}))})]})]})},HL=function(e){var t=e.settings.ui,n=e.setUiSettings;return(0,rr.jsxs)(Mv,{title:"User interface",className:"h-100",children:[(0,rr.jsx)(Ps,{icon:"dark"===(null===t||void 0===t?void 0:t.theme)?qr:si,className:"user-interface__theme-icon"}),(0,rr.jsx)(cy,{checked:"dark"===(null===t||void 0===t?void 0:t.theme),onChange:function(e){var r=e?"dark":"light";n(We(We({},t),{},{theme:r})),ym(r)},children:"Use dark theme."})]})},WL=function(e){var t,n=e.onChange,r=e.active,i=e.allText;return(0,rr.jsx)(ng,{text:null!==(t=zg(r))&&void 0!==t?t:i,children:(0,rr.jsx)(Jg,{allText:i,active:r,onChange:n})})},ZL=function(e){var t,n,r=e.settings,i=e.setVisitsSettings;return(0,rr.jsx)(Mv,{title:"Visits",className:"h-100",children:(0,rr.jsx)($x,{noMargin:!0,label:"Default interval to load on visits sections:",children:(0,rr.jsx)(WL,{allText:"All visits",active:null!==(t=null===(n=r.visits)||void 0===n?void 0:n.defaultInterval)&&void 0!==t?t:"last30Days",onChange:function(e){return i({defaultInterval:e})}})})})},YL=function(e){var t,n,r,i=e.settings.tags,a=e.setTagsSettings;return(0,rr.jsxs)(Mv,{title:"Tags",className:"h-100",children:[(0,rr.jsxs)($x,{label:"Default display mode when managing tags:",children:[(0,rr.jsx)(VD,{mode:null!==(t=null===i||void 0===i?void 0:i.defaultMode)&&void 0!==t?t:"cards",renderTitle:function(e){return function(e){return"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))}(e)},onChange:function(e){return a(We(We({},i),{},{defaultMode:e}))}}),(0,rr.jsxs)(IL,{children:["Tags will be displayed as ",(0,rr.jsx)("b",{children:null!==(n=null===i||void 0===i?void 0:i.defaultMode)&&void 0!==n?n:"cards"}),"."]})]}),(0,rr.jsx)($x,{noMargin:!0,label:"Default ordering for tags list:",children:(0,rr.jsx)(my,{items:BD,order:null!==(r=null===i||void 0===i?void 0:i.defaultOrdering)&&void 0!==r?r:{},onChange:function(e,t){return a(We(We({},i),{},{defaultOrdering:{field:e,dir:t}}))}})})]})},qL=function(e){var t,n=e.settings.shortUrlsList,r=e.setShortUrlsListSettings;return(0,rr.jsx)(Mv,{title:"Short URLs list",className:"h-100",children:(0,rr.jsx)($x,{noMargin:!0,label:"Default ordering for short URLs list:",children:(0,rr.jsx)(my,{items:by,order:null!==(t=null===n||void 0===n?void 0:n.defaultOrdering)&&void 0!==t?t:Ly,onChange:function(e,t){return r({defaultOrdering:{field:e,dir:t}})}})})})},GL=function(e,t){e.serviceFactory("Settings",UL,"RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"),e.decorator("Settings",zv),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",(function(){return zL})),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",(function(){return VL})),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",(function(){return HL})),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",(function(){return ZL})),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",(function(){return YL})),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",(function(){return qL})),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",(function(){return Iy})),e.serviceFactory("setRealTimeUpdatesInterval",(function(){return zy})),e.serviceFactory("setShortUrlCreationSettings",(function(){return Fy})),e.serviceFactory("setShortUrlsListSettings",(function(){return Uy})),e.serviceFactory("setUiSettings",(function(){return By})),e.serviceFactory("setVisitsSettings",(function(){return Vy})),e.serviceFactory("setTagsSettings",(function(){return Hy}))};var KL,QL,XL=function(e,t){var n,r=Q(e.split("://"),2),i=r[0],a=r[1].split("/"),o=(Y(n=a)||Ds(n)||G(n)||K()).slice(1),s=o.length?"/".concat(o.join("/")):"";return"".concat(i,"://").concat(t).concat(s)},$L="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",JL=function(e){return function(t,n){return function(){var r=Ft(Zt().mark((function r(i,a){var o,s,l;return Zt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i({type:"shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS_START"}),o=e(a),s=o.editDomainRedirects,r.prev=2,r.next=5,s(We({domain:t},n));case 5:l=r.sent,i({type:$L,domain:t,redirects:l}),r.next=12;break;case 9:r.prev=9,r.t0=r.catch(2),i({type:"shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS_ERROR",errorData:zb(r.t0)});case 12:case"end":return r.stop()}}),r,null,[[2,9]])})));return function(e,t){return r.apply(this,arguments)}}()}},eA=["url"],tA="shlink/domainsList/LIST_DOMAINS_START",nA="shlink/domainsList/LIST_DOMAINS_ERROR",rA="shlink/domainsList/LIST_DOMAINS",iA="shlink/domainsList/FILTER_DOMAINS",aA="shlink/domainsList/VALIDATE_DOMAIN",oA={domains:[],filteredDomains:[],loading:!1,error:!1},sA=function(e,t){return function(n){return n.domain!==e?n:We(We({},n),{},{redirects:t})}},lA=function(e,t){return function(n){return n.domain!==e?n:We(We({},n),{},{status:t})}},uA=Bv((Ve(KL={},tA,(function(){return We(We({},oA),{},{loading:!0})})),Ve(KL,nA,(function(e){var t=e.errorData;return We(We({},oA),{},{error:!0,errorData:t})})),Ve(KL,rA,(function(e,t){var n=t.domains,r=t.defaultRedirects;return We(We({},oA),{},{domains:n,filteredDomains:n,defaultRedirects:r})})),Ve(KL,iA,(function(e,t){var n=t.searchTerm;return We(We({},e),{},{filteredDomains:e.domains.filter((function(e){return e.domain.toLowerCase().match(n)}))})})),Ve(KL,$L,(function(e,t){var n=t.domain,r=t.redirects;return We(We({},e),{},{domains:e.domains.map(sA(n,r)),filteredDomains:e.filteredDomains.map(sA(n,r))})})),Ve(KL,aA,(function(e,t){var n=t.domain,r=t.status;return We(We({},e),{},{domains:e.domains.map(lA(n,r)),filteredDomains:e.filteredDomains.map(lA(n,r))})})),KL),oA),cA=function(e){return function(){return function(){var t=Ft(Zt().mark((function t(n,r){var i,a,o;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n({type:tA}),i=e(r),a=i.listDomains,t.prev=2,t.next=5,a().then((function(e){var t=e.data,n=e.defaultRedirects;return{domains:t.map((function(e){return We(We({},e),{},{status:"validating"})})),defaultRedirects:n}}));case 5:o=t.sent,n(We({type:rA},o)),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),n({type:nA,errorData:zb(t.t0)});case 12:case"end":return t.stop()}}),t,null,[[2,9]])})));return function(e,n){return t.apply(this,arguments)}}()}},dA=function(e){return{type:iA,searchTerm:e}},fA=function(e){return function(t){return function(){var n=Ft(Zt().mark((function n(r,i){var a,o,s,l,u,c,d,f;return Zt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=i(),o=a.selectedServer,Dt(o)){n.next=4;break}return r({type:aA,domain:t,status:"invalid"}),n.abrupt("return");case 4:return n.prev=4,s=o.url,l=Ht(o,eA),u=e(We(We({},l),{},{url:XL(s,t)})),c=u.health,n.next=9,c();case 9:d=n.sent,f=d.status,r({type:aA,domain:t,status:"pass"===f?"valid":"invalid"}),n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),r({type:aA,domain:t,status:"invalid"});case 17:case"end":return n.stop()}}),n,null,[[4,14]])})));return function(e,t){return n.apply(this,arguments)}}()}},hA=function(e){var t=e.listDomains,n=e.value,i=e.domainsList,a=e.onChange,o=Q(pm(),4),s=o[0],l=o[2],u=o[3],c=i.domains,d=Fn(n),f=function(){return a("")};return(0,r.useEffect)((function(){t()}),[]),s?(0,rr.jsxs)(Eh,{children:[(0,rr.jsx)(wh,{value:null!==n&&void 0!==n?n:"",placeholder:"Domain",onChange:function(e){return a(e.target.value)}}),(0,rr.jsx)(Hu,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn",onClick:rv(f,u),children:(0,rr.jsx)(Ps,{icon:ur})}),(0,rr.jsx)(tm,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):(0,rr.jsxs)(ng,{text:d?"Domain":"Domain: ".concat(n),className:d?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[c.map((function(e){var t=e.domain,r=e.isDefault;return(0,rr.jsxs)(dc,{active:(n===t||r)&&d,onClick:function(){return a(t)},children:[t,r&&(0,rr.jsx)("span",{className:"float-end text-muted",children:"default"})]},t)})),(0,rr.jsx)(dc,{divider:!0}),(0,rr.jsx)(dc,{onClick:rv(f,l),children:(0,rr.jsx)("i",{children:"New domain"})})]})},pA=["isLast"],mA=function(e){var t=e.isLast,n=Ht(e,pA);return(0,rr.jsx)(Jx,We(We({},n),{},{required:!1,type:"url",placeholder:"No redirect",className:t?"mb-0":""}))},vA=function(e){var t,n,i,a,o,s,l=e.isOpen,u=e.toggle,c=e.domain,d=e.editDomainRedirects,f=Q((0,r.useState)(null!==(t=null===(n=c.redirects)||void 0===n?void 0:n.baseUrlRedirect)&&void 0!==t?t:""),2),h=f[0],p=f[1],m=Q((0,r.useState)(null!==(i=null===(a=c.redirects)||void 0===a?void 0:a.regular404Redirect)&&void 0!==i?i:""),2),v=m[0],g=m[1],y=Q((0,r.useState)(null!==(o=null===(s=c.redirects)||void 0===s?void 0:s.invalidShortUrlRedirect)&&void 0!==o?o:""),2),b=y[0],x=y[1],_=ov(Ft(Zt().mark((function e(){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",d(c.domain,{baseUrlRedirect:sv(h),regular404Redirect:sv(v),invalidShortUrlRedirect:sv(b)}).then(u));case 1:case"end":return e.stop()}}),e)}))));return(0,rr.jsx)(If,{isOpen:l,toggle:u,centered:!0,children:(0,rr.jsxs)("form",{onSubmit:_,children:[(0,rr.jsxs)(Bf,{toggle:u,children:["Edit redirects for ",(0,rr.jsx)("b",{children:c.domain})]}),(0,rr.jsxs)(Zf,{children:[(0,rr.jsxs)(mA,{value:h,onChange:p,children:[(0,rr.jsxs)(Dx,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",(0,rr.jsxs)("b",{children:["https://",c.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),(0,rr.jsxs)(mA,{value:v,onChange:g,children:[(0,rr.jsxs)(Dx,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",(0,rr.jsxs)("b",{children:["https://",c.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),(0,rr.jsxs)(mA,{value:b,isLast:!0,onChange:x,children:[(0,rr.jsx)(Dx,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),(0,rr.jsxs)(Kf,{children:[(0,rr.jsx)(Hu,{color:"link",type:"button",onClick:u,children:"Cancel"}),(0,rr.jsx)(Hu,{color:"primary",children:"Save"})]})]})})},gA=function(e){var t=e.status,n=e.matchMedia,i=void 0===n?window.matchMedia:n,a=(0,r.useRef)(),o=function(){return i("(max-width: 991px)").matches},s=Q((0,r.useState)(o()),2),l=s[0],u=s[1];return(0,r.useEffect)((function(){var e=function(){return u(o())};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),"validating"===t?(0,rr.jsx)(Ps,{fixedWidth:!0,icon:Tr,spin:!0}):(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("span",{ref:function(e){a.current=e},children:"valid"===t?(0,rr.jsx)(Ps,{fixedWidth:!0,icon:br,className:"text-muted"}):(0,rr.jsx)(Ps,{fixedWidth:!0,icon:mi,className:"text-danger"})}),(0,rr.jsx)(tm,{target:function(){return a.current},placement:l?"top-start":"left",autohide:"valid"===t,children:"valid"===t?"Congratulations! This domain is properly configured.":(0,rr.jsxs)("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",(0,rr.jsx)("br",{}),"Check the ",(0,rr.jsx)(Cm,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},yA=function(e){var t=e.fallback;return(0,rr.jsxs)("span",{className:"text-muted",children:[!t&&(0,rr.jsx)("small",{children:"No redirect"}),t&&(0,rr.jsxs)(rr.Fragment,{children:[t," ",(0,rr.jsx)("small",{children:"(as fallback)"})]})]})},bA=function(){return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(Ps,{fixedWidth:!0,icon:kr,className:"text-primary",id:"defaultDomainIcon"}),(0,rr.jsx)(tm,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]})},xA=function(e){var t,n,i,a=e.domain,o=e.editDomainRedirects,s=e.checkDomainHealth,l=e.defaultRedirects,u=e.selectedServer,c=Q(pm(),2),d=c[0],f=c[1],h=a.domain,p=a.isDefault,m=a.redirects,v=a.status,g=!p||kv(u);return(0,r.useEffect)((function(){s(a.domain)}),[]),(0,rr.jsxs)("tr",{className:"responsive-table__row",children:[(0,rr.jsx)("td",{className:"responsive-table__cell","data-th":"Is default domain",children:p&&(0,rr.jsx)(bA,{})}),(0,rr.jsx)("th",{className:"responsive-table__cell","data-th":"Domain",children:h}),(0,rr.jsx)("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:null!==(t=null===m||void 0===m?void 0:m.baseUrlRedirect)&&void 0!==t?t:(0,rr.jsx)(yA,{fallback:null===l||void 0===l?void 0:l.baseUrlRedirect})}),(0,rr.jsx)("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:null!==(n=null===m||void 0===m?void 0:m.regular404Redirect)&&void 0!==n?n:(0,rr.jsx)(yA,{fallback:null===l||void 0===l?void 0:l.regular404Redirect})}),(0,rr.jsx)("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:null!==(i=null===m||void 0===m?void 0:m.invalidShortUrlRedirect)&&void 0!==i?i:(0,rr.jsx)(yA,{fallback:null===l||void 0===l?void 0:l.invalidShortUrlRedirect})}),(0,rr.jsx)("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:(0,rr.jsx)(gA,{status:v})}),(0,rr.jsxs)("td",{className:"responsive-table__cell text-end",children:[(0,rr.jsx)("span",{id:g?void 0:"defaultDomainBtn",children:(0,rr.jsx)(Hu,{outline:!0,size:"sm",disabled:!g,onClick:g?f:void 0,children:(0,rr.jsx)(Ps,{fixedWidth:!0,icon:g?Xr:fr})})}),!g&&(0,rr.jsxs)(tm,{target:"defaultDomainBtn",placement:"left",children:["Redirects for default domain cannot be edited here.",(0,rr.jsx)("br",{}),"Use config options or env vars directly on the server."]})]}),(0,rr.jsx)(vA,{domain:a,isOpen:d,toggle:f,editDomainRedirects:o})]})},_A=["","Domain","Base path redirect","Regular 404 redirect","Invalid short URL redirect","",""],wA=function(e){var t,n=e.listDomains,i=e.domainsList,a=e.filterDomains,o=e.editDomainRedirects,s=e.checkDomainHealth,l=e.selectedServer,u=i.filteredDomains,c=i.defaultRedirects,d=i.loading,f=i.error,h=i.errorData,p=null!==c&&void 0!==c?c:null===(t=u.find((function(e){return e.isDefault})))||void 0===t?void 0:t.redirects;if((0,r.useEffect)((function(){n()}),[]),d)return(0,rr.jsx)(Nm,{loading:!0});return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(eg,{className:"mb-3",onChange:a}),f?(0,rr.jsx)(Ib,{type:"error",children:(0,rr.jsx)(Ub,{errorData:h,fallbackMessage:"Error loading domains :("})}):(0,rr.jsx)(Mv,{children:(0,rr.jsxs)("table",{className:"table table-hover responsive-table mb-0",children:[(0,rr.jsx)("thead",{className:"responsive-table__header",children:(0,rr.jsx)("tr",{children:_A.map((function(e,t){return(0,rr.jsx)("th",{children:e},t)}))})}),(0,rr.jsxs)("tbody",{children:[u.length<1&&(0,rr.jsx)("tr",{children:(0,rr.jsx)("td",{colSpan:_A.length,className:"text-center",children:"No results found"})}),u.map((function(e){return(0,rr.jsx)(xA,{domain:e,editDomainRedirects:o,checkDomainHealth:s,defaultRedirects:p,selectedServer:l},e.domain)}))]})]})})]})},kA=function(e,t){e.serviceFactory("DomainSelector",(function(){return hA})),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",(function(){return wA})),e.decorator("ManageDomains",t(["domainsList","selectedServer"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("listDomains",cA,"buildShlinkApiClient"),e.serviceFactory("filterDomains",(function(){return dA})),e.serviceFactory("editDomainRedirects",JL,"buildShlinkApiClient"),e.serviceFactory("checkDomainHealth",fA,"buildShlinkApiClient")},CA="shlink/appUpdates/APP_UPDATE_AVAILABLE",SA="shlink/appUpdates/RESET_APP_UPDATE",EA=Bv((Ve(QL={},CA,(function(){return!0})),Ve(QL,SA,(function(){return!1})),QL),!1),MA=Vv(CA),TA=Vv(SA),OA=function(e){var t=e.isOpen,n=e.toggle,r=e.forceUpdate,i=Q(pm(),3),a=i[0],o=i[2];return(0,rr.jsxs)(bp,{className:"app-update-banner",isOpen:t,toggle:n,tag:Mv,color:"secondary",children:[(0,rr.jsx)("h4",{className:"mb-4",children:"This app has just been updated!"}),(0,rr.jsxs)("p",{className:"mb-0",children:["Restart it to enjoy the new features.",(0,rr.jsxs)(Hu,{disabled:a,className:"ms-2",color:"secondary",size:"sm",onClick:function(){o(),r()},children:[!a&&(0,rr.jsxs)(rr.Fragment,{children:["Restart now ",(0,rr.jsx)(Ps,{icon:ai,className:"ms-1"})]}),a&&(0,rr.jsx)(rr.Fragment,{children:"Restarting..."})]})]})]})},NA=function(){var e=Ft(Zt().mark((function e(){var t,n;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=navigator.serviceWorker)||void 0===n?void 0:n.getRegistrations();case 2:if(e.t1=t=e.sent,e.t0=null!==e.t1,!e.t0){e.next=6;break}e.t0=void 0!==t;case 6:if(!e.t0){e.next=10;break}e.t2=t,e.next=11;break;case 10:e.t2=[];case 11:e.t2.forEach((function(e){var t=e.waiting;null===t||void 0===t||t.addEventListener("statechange",(function(e){var t;"activated"===(null===(t=e.target)||void 0===t?void 0:t.state)&&window.location.reload()})),null===t||void 0===t||t.postMessage({type:"SKIP_WAITING"})}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),PA=function(e,t,n,i,a,o,s,l){return function(u){var c=u.fetchServers,d=u.servers,f=u.settings,h=u.appUpdated,p=u.resetAppUpdate,m="/"===me().pathname;return(0,r.useEffect)((function(){var e,t;0===Object.keys(d).length&&c(),ym(null!==(e=null===(t=f.ui)||void 0===t?void 0:t.theme)&&void 0!==e?e:"light")}),[]),(0,rr.jsxs)("div",{className:"container-fluid app-container",children:[(0,rr.jsx)(e,{}),(0,rr.jsxs)("div",{className:"app",children:[(0,rr.jsx)("div",{className:Hs()("shlink-wrapper",{"d-flex d-md-block align-items-center":m}),children:(0,rr.jsxs)(fe,{children:[(0,rr.jsx)(ce,{index:!0,element:(0,rr.jsx)(t,{})}),(0,rr.jsx)(ce,{path:"/settings/*",element:(0,rr.jsx)(o,{})}),(0,rr.jsx)(ce,{path:"/manage-servers",element:(0,rr.jsx)(s,{})}),(0,rr.jsx)(ce,{path:"/server/create",element:(0,rr.jsx)(i,{})}),(0,rr.jsx)(ce,{path:"/server/:serverId/edit",element:(0,rr.jsx)(a,{})}),(0,rr.jsx)(ce,{path:"/server/:serverId/*",element:(0,rr.jsx)(n,{})}),(0,rr.jsx)(ce,{path:"*",element:(0,rr.jsx)(Tv,{})})]})}),(0,rr.jsx)("div",{className:"shlink-footer",children:(0,rr.jsx)(l,{})})]}),(0,rr.jsx)(OA,{isOpen:h,toggle:p,forceUpdate:NA})]})}},jA=function(e,t){e.serviceFactory("App",PA,"MainHeader","Home","MenuLayout","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",(function(){return MA})),e.serviceFactory("resetAppUpdate",(function(){return TA}))},DA=new vt,LA=DA.container,AA=function(e,t){return We(We({},e),{},Ve({},t,(n=LA,r=t,function(){return n[r].apply(n,arguments)})));var n,r},RA=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return H(e?_t(e):null,t.reduce(AA,{}))};function IA(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"===typeof i?i(n,r,e):t(i)}}}}jA(DA,RA),$v(DA,RA),er(DA),Kx(DA,RA),K_(DA,RA),bL(DA,RA),Jj(DA,RA),NL(DA),RL(DA),GL(DA,RA),kA(DA,RA);var zA=IA();zA.withExtraArgument=IA;var FA=zA;function UA(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var BA="function"===typeof Symbol&&Symbol.observable||"@@observable",VA=function(){return Math.random().toString(36).substring(7).split("").join(".")},HA={INIT:"@@redux/INIT"+VA(),REPLACE:"@@redux/REPLACE"+VA(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+VA()}};function WA(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ZA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var YA=n(7045),qA=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var a,o=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:HA.INIT}))throw new Error(UA(12));if("undefined"===typeof n(void 0,{type:HA.PROBE_UNKNOWN_ACTION()}))throw new Error(UA(13))}))}(n)}catch(oR){a=oR}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},s=0;s<o.length;s++){var l=o[s],u=n[l],c=e[l],d=u(c,t);if("undefined"===typeof d){t&&t.type;throw new Error(UA(14))}i[l]=d,r=r||d!==c}return(r=r||o.length!==Object.keys(e).length)?i:e}}({servers:O_,selectedServer:__,shortUrlsList:_x,shortUrlCreationResult:cx,shortUrlDeletion:nx,shortUrlEdition:vx,shortUrlVisits:uj,tagVisits:xj,orphanVisits:Pj,nonOrphanVisits:Hj,shortUrlDetail:Wx,tagsList:hL,tagDelete:GD,tagEdit:tL,mercureInfo:LL,settings:Ry,domainsList:uA,visitsOverview:Xj,appUpdated:EA,sidebar:Zv}),GA=ZA,KA={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},QA=function e(t,n,r){var i;if("function"===typeof n&&"function"===typeof r||"function"===typeof r&&"function"===typeof arguments[3])throw new Error(UA(0));if("function"===typeof n&&"undefined"===typeof r&&(r=n,n=void 0),"undefined"!==typeof r){if("function"!==typeof r)throw new Error(UA(1));return r(e)(t,n)}if("function"!==typeof t)throw new Error(UA(2));var a=t,o=n,s=[],l=s,u=!1;function c(){l===s&&(l=s.slice())}function d(){if(u)throw new Error(UA(3));return o}function f(e){if("function"!==typeof e)throw new Error(UA(4));if(u)throw new Error(UA(5));var t=!0;return c(),l.push(e),function(){if(t){if(u)throw new Error(UA(6));t=!1,c();var n=l.indexOf(e);l.splice(n,1),s=null}}}function h(e){if(!WA(e))throw new Error(UA(7));if("undefined"===typeof e.type)throw new Error(UA(8));if(u)throw new Error(UA(9));try{u=!0,o=a(o,e)}finally{u=!1}for(var t=s=l,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!==typeof e)throw new Error(UA(10));a=e,h({type:HA.REPLACE})}function m(){var e,t=f;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(UA(11));function n(){e.next&&e.next(d())}return n(),{unsubscribe:t(n)}}})[BA]=function(){return this},e}return h({type:HA.INIT}),(i={dispatch:h,subscribe:f,getState:d,replaceReducer:p})[BA]=m,i}(qA,function(e){var t,n,r,i;return e.settings?("last180days"===(null===(t=e.settings.visits)||void 0===t?void 0:t.defaultInterval)&&e.settings.visits&&(e.settings.visits.defaultInterval="last180Days"),e.settings.tags=We(We({},e.settings.tags),{},{defaultMode:null!==(n=null===(r=e.settings.tags)||void 0===r?void 0:r.defaultMode)&&void 0!==n?n:null===(i=e.settings.ui)||void 0===i?void 0:i.tagsMode}),e.settings.ui&&delete e.settings.ui.tagsMode,e):e}((0,YA.zD)(KA)),GA(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(UA(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(i)}));return r=ZA.apply(void 0,a)(n.dispatch),We(We({},n),{},{dispatch:r})}}}((0,YA.a1)(KA),FA))),XA=n(6431),$A=n(7093),JA=n(8858),eR=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function tR(e,t){navigator.serviceWorker.register(e).then((function(e){e.onupdatefound=function(){var n=e.installing;null!=n&&(n.onstatechange=function(){"installed"===n.state&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(e)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(e)))})}})).catch((function(e){console.error("Error during service worker registration:",e)}))}delete aw().Icon.Default.prototype._getIconUrl,aw().Icon.Default.mergeOptions({iconRetinaUrl:XA,iconUrl:$A,shadowUrl:JA});var nR=LA.App,rR=LA.ScrollToTop,iR=LA.ErrorHandler,aR=LA.appUpdateAvailable;(0,t.render)((0,rr.jsx)(c,{store:QA,children:(0,rr.jsx)(Ie,{basename:Be.Xh,children:(0,rr.jsx)(iR,{children:(0,rr.jsx)(rR,{children:(0,rr.jsx)(nR,{})})})})}),document.getElementById("root")),function(e){if("serviceWorker"in navigator){var t;if(new URL(null!==(t="/shlink-web-client/feature/latest-error")?t:"",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(function(){var t="".concat("/shlink-web-client/feature/latest-error","/service-worker.js");eR?(!function(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then((function(n){var r=n.headers.get("content-type");404===n.status||null!=r&&-1===r.indexOf("javascript")?navigator.serviceWorker.ready.then((function(e){e.unregister().then((function(){window.location.reload()}))})):tR(e,t)})).catch((function(){console.log("No internet connection found. App is running in offline mode.")}))}(t,e),navigator.serviceWorker.ready.then((function(){console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")}))):tR(t,e)}))}}({onUpdate:function(){QA.dispatch(aR())}})}()}();
|
|
//# sourceMappingURL=main.79e03c0e.js.map |