@sisense/sdk-ui 1.11.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/api/chat-rest-api.d.ts +3 -4
- package/dist/ai/api/hooks.d.ts +2 -2
- package/dist/ai/api/types.d.ts +2 -16
- package/dist/ai/buttons/scroll-to-bottom-button.d.ts +3 -0
- package/dist/ai/buttons/thumbs-down-button.d.ts +2 -1
- package/dist/ai/buttons/thumbs-up-button.d.ts +2 -1
- package/dist/ai/chat-config.d.ts +18 -0
- package/dist/ai/chat-dropup.d.ts +2 -1
- package/dist/ai/chat-input.d.ts +3 -1
- package/dist/ai/common/constants.d.ts +1 -0
- package/dist/ai/common/icon-button.d.ts +2 -3
- package/dist/ai/common/tooltip.d.ts +2 -2
- package/dist/ai/data-topics/data-topic-list.d.ts +0 -1
- package/dist/ai/icons/light-bulb-icon.d.ts +1 -3
- package/dist/ai/icons/scroll-to-bottom-icon.d.ts +1 -0
- package/dist/ai/index.d.ts +1 -0
- package/dist/ai/messages/clickable-message.d.ts +2 -1
- package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
- package/dist/ai/messages/text-message.d.ts +5 -0
- package/dist/ai/scroll-to-bottom.d.ts +7 -0
- package/dist/ai/use-last-nlq-response.d.ts +19 -0
- package/dist/ai.cjs +471 -0
- package/dist/ai.js +1143 -1228
- package/dist/api/types/dashboard-dto.d.ts +2 -1
- package/dist/app/client-application.d.ts +1 -0
- package/dist/chart/helpers/use-chart-renderer-props.d.ts +1 -0
- package/dist/chart/helpers/use-synced-data.d.ts +1 -1
- package/dist/chart-options-processor/chart-options-service.d.ts +4 -0
- package/dist/chart-options-processor/subtype-to-design-options.d.ts +13 -1
- package/dist/chart-options-processor/translations/funnel-plot-options.d.ts +2 -1
- package/dist/chart-options-processor/translations/pie-plot-options.d.ts +2 -1
- package/dist/chart-options-processor/translations/tooltip-utils.d.ts +2 -0
- package/dist/common/components/loading-indicator.d.ts +17 -4
- package/dist/common/components/loading-overlay.d.ts +1 -0
- package/dist/common/hooks/use-fetch.d.ts +1 -1
- package/dist/common/hooks/use-has-changed.d.ts +9 -0
- package/dist/common/hooks/use-should-load.d.ts +12 -0
- package/dist/common-filters/common-filters-connector.d.ts +9 -0
- package/dist/common-filters/selection-utils.d.ts +11 -0
- package/dist/common-filters/types.d.ts +14 -0
- package/dist/common-filters/use-common-filters.d.ts +13 -0
- package/dist/common-filters/utils.d.ts +9 -0
- package/dist/common-filters/widget-header-clear-selection-button.d.ts +3 -0
- package/dist/dashboard/components/content-panel.d.ts +41 -0
- package/dist/dashboard/components/dashboard-container.d.ts +2 -0
- package/dist/dashboard/components/dashboard-header.d.ts +2 -0
- package/dist/dashboard/components/plugin-service.d.ts +21 -0
- package/dist/dashboard/constants.d.ts +2 -0
- package/dist/dashboard/dashboard-by-id.d.ts +7 -0
- package/dist/dashboard/dashboard.d.ts +8 -0
- package/dist/dashboard/types.d.ts +44 -0
- package/dist/dashboard/utils.d.ts +2 -0
- package/dist/dashboard-widget/translate-dashboard-filters.d.ts +4772 -2
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
- package/dist/dashboard-widget/translate-widget-filters.d.ts +200 -37
- package/dist/dashboard-widget/types.d.ts +1 -0
- package/dist/dashboard-widget/utils.d.ts +3 -1
- package/dist/dynamic-size-container/dynamic-size-container.d.ts +8 -0
- package/dist/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +25 -0
- package/dist/filters/components/cascading-filter-tile/cascading-level-filter.d.ts +21 -0
- package/dist/filters/components/cascading-filter-tile/index.d.ts +1 -0
- package/dist/filters/components/common/date-range-field-button.d.ts +3 -6
- package/dist/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +2 -2
- package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +6 -0
- package/dist/filters/components/custom-filter-tile.d.ts +43 -0
- package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +15 -0
- package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-display.d.ts +6 -0
- package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +12 -0
- package/dist/filters/components/date-filter/date-range-filter-tile/editable-date-range-filter.d.ts +14 -0
- package/dist/filters/components/date-filter/date-range-filter-tile/use-date-limits.d.ts +1 -2
- package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +8 -2
- package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +4 -4
- package/dist/filters/components/filter-tile.d.ts +21 -1
- package/dist/filters/components/filters-panel/filters-panel-tile.d.ts +4 -2
- package/dist/filters/components/filters-panel/filters-panel.d.ts +4 -2
- package/dist/filters/components/icons/arrow-icon.d.ts +6 -0
- package/dist/filters/components/icons/double-arrow-icon.d.ts +6 -0
- package/dist/filters/components/member-filter-tile/member-filter-tile.d.ts +4 -1
- package/dist/filters/components/member-filter-tile/member-list.d.ts +1 -1
- package/dist/filters/hooks/use-synchronized-filter.d.ts +12 -0
- package/dist/filters/index.d.ts +2 -0
- package/dist/filters/utils.d.ts +7 -0
- package/dist/highcharts-memorized.d.ts +1 -1
- package/dist/index.cjs +830 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +25012 -20426
- package/dist/models/dashboard/dashboard-model.d.ts +66 -0
- package/dist/models/dashboard/get-dashboard-model.d.ts +3 -1
- package/dist/models/dashboard/get-dashboard-models.d.ts +2 -1
- package/dist/models/dashboard/index.d.ts +1 -1
- package/dist/models/dashboard/translate-dashboard-utils.d.ts +7 -0
- package/dist/models/dashboard/types.d.ts +5 -14
- package/dist/models/dashboard/use-get-dashboard-model.d.ts +1 -1
- package/dist/models/dashboard/use-get-dashboard-models.d.ts +1 -1
- package/dist/models/widget/get-widget-model.d.ts +2 -1
- package/dist/models/widget/translate-widget.d.ts +5 -2
- package/dist/models/widget/types.d.ts +9 -0
- package/dist/models/widget/widget-model.d.ts +31 -1
- package/dist/query/query-result-date-formatting.d.ts +1 -0
- package/dist/query-execution/query-params-comparator.d.ts +1 -7
- package/dist/query-execution/use-execute-pivot-query.d.ts +2 -5
- package/dist/query-execution/use-execute-query-by-widget-id.d.ts +3 -4
- package/dist/translation/resources/en.d.ts +5 -0
- package/dist/translation/resources/index.d.ts +10 -0
- package/dist/types.d.ts +40 -13
- package/dist/useQuery-C8plkncQ.cjs +603 -0
- package/dist/{debounce-BbwkW3DX.js → useQuery-D5W0RM1R.js} +21443 -21103
- package/dist/utils/create-cache.d.ts +0 -1
- package/dist/utils/utility-types.d.ts +1 -0
- package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
- package/package.json +12 -8
- package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +0 -2
- package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +0 -2
- package/dist/ai/messages/clear-history-success-message.d.ts +0 -1
- package/dist/filters/components/icons/arrow-right-icon.d.ts +0 -2
- package/dist/filters/components/icons/double-arrow-right-icon.d.ts +0 -2
- package/dist/models/dashboard/translate-dashboard.d.ts +0 -4
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,830 @@
|
|
|
1
|
+
"use strict";var i$=Object.defineProperty,a$=Object.defineProperties;var s$=Object.getOwnPropertyDescriptors;var Ud=Object.getOwnPropertySymbols;var NS=Object.prototype.hasOwnProperty,LS=Object.prototype.propertyIsEnumerable;var xm=(e,t,n)=>t in e?i$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,he=(e,t)=>{for(var n in t||(t={}))NS.call(t,n)&&xm(e,n,t[n]);if(Ud)for(var n of Ud(t))LS.call(t,n)&&xm(e,n,t[n]);return e},Te=(e,t)=>a$(e,s$(t));var qr=(e,t)=>{var n={};for(var r in e)NS.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ud)for(var r of Ud(e))t.indexOf(r)<0&&LS.call(e,r)&&(n[r]=e[r]);return n};var Ct=(e,t,n)=>(xm(e,typeof t!="symbol"?t+"":t,n),n);var bo=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{s(n.next(c))}catch(l){o(l)}},a=c=>{try{s(n.throw(c))}catch(l){o(l)}},s=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,a);s((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./useQuery-C8plkncQ.cjs"),Y=require("react"),mr=require("react-dom"),A=require("react/jsx-runtime");function fP(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const B=fP(Y),gP=fP(mr),l$={errorPrefix:"[request-error]",errors:{networkError:"Network error. Probably you forgot to add your domain to 'CORS Allowed Origins' in Sisense Admin Panel -> Security Settings.",ssoNotEnabled:"SSO is not enabled on target instance, please choose another authentication method.",ssoNoLoginUrl:"Can not fetch login URL on target instance. Check SSO settings.",passwordAuthFailed:"$t(errorPrefix) Username and password authentication was not successful. Check credentials.",tokenAuthFailed:"$t(errorPrefix) Token authentication was not successful. Check credentials.",responseError_onlyStatus:"$t(errorPrefix) Status: {{status}}",responseError_withStatusText:"$t(errorPrefix) Status: {{status}} - {{statusText}}"}},c$={errorPrefix:"[request-error]",errors:{networkError:"Помилка мережі. Можливо ви забули додати свій домен до «CORS Allowed Origins» в панелі адміністратора Sisense -> Security Settings.",ssoNotEnabled:"SSO не ввімкнено на цьому сервері, будь ласка, виберіть інший метод аутентифікації",ssoNoLoginUrl:"Неможливо отримати loginUrl з сервера. Перевірте налаштування SSO.",passwordAuthFailed:"$t(errorPrefix) Помилка автентифікації за допомогою імені користувача та пароля. Перевірте дані для входу.",tokenAuthFailed:"$t(errorPrefix) Помилка автентифікації за допомогою токена. Перевірте дані для входу.",responseError_onlyStatus:"$t(errorPrefix) Статус: {{status}}",responseError_withStatusText:"$t(errorPrefix) Статус: {{status}} - {{statusText}}"}},mP="sdkRestClient",u$={en:l$,uk:c$};function d$(){return m.initI18next({resource:u$,language:"en",namespace:mP})}const{i18nextInstance:p$}=d$(),B1=(e,t)=>{for(const[n,r]of Object.entries(t))e instanceof Headers?e.set(n,r):Array.isArray(e)?e.push([n,r]):e[n]=r},h$=(e,t)=>{const n=new URL(e);for(const[r,o]of Object.entries(t))n.searchParams.append(r,o);return n.toString().replace(/\/([?&])/,"$1")};var f$=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(d){try{l(r.next(d))}catch(p){a(p)}}function c(d){try{l(r.throw(d))}catch(p){a(p)}}function l(d){d.done?i(d.value):o(d.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};class g${constructor(t,n,r){this.type="password",this._authenticating=!1,this._valid=!0,this._authheader=void 0,this.url=t,this.user=n,this.pass=r}isValid(){return this._valid}invalidate(){this._valid=!1}isAuthenticating(){return this._authenticating}applyHeader(t){const n="Bearer "+this._authheader;B1(t,{Authorization:n})}authenticate(){return f$(this,void 0,void 0,function*(){this._authenticating=!0;const t=`${this.url}${this.url.endsWith("/")?"":"/"}api/v1/authentication/login`,n=encodeURIComponent(this.user),r=encodeURIComponent(this.pass);return yield fetch(t,{method:"POST",headers:{accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:`username=${n}&password=${r}`}).then(o=>o.json()).then(o=>{this._authheader=o.access_token,this._authenticating=!1}),!!this._authheader})}}let Gl=class extends m.AbstractTranslatableError{constructor(t,n){super(mP,{key:t,interpolationOptions:n},p$.t)}get status(){return this.interpolationOptions.status}};var Cm=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(d){try{l(r.next(d))}catch(p){a(p)}}function c(d){try{l(r.throw(d))}catch(p){a(p)}}function l(d){d.done?i(d.value):o(d.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};class H1{constructor(t,n=!1){this.type="sso",this._valid=!0,this._authenticating=!1,this.url=t,this._enableSilentPreAuth=n}isValid(){return this._valid}invalidate(){this._valid=!1}isAuthenticating(){return this._authenticating}applyHeader(t){return t}authenticateSilent(t){return Cm(this,void 0,void 0,function*(){const n=document.createElement("iframe");n.style.display="none",document.body.appendChild(n),n.src=`${t}?return_to=${window.location.href}`,yield new Promise(r=>{n.onload=()=>{r(!0)}}),document.body.removeChild(n)})}checkAuthentication(){return Cm(this,void 0,void 0,function*(){const t=`${this.url}${this.url.endsWith("/")?"":"/"}api/auth/isauth`,r=yield(yield fetch(t,{headers:{Internal:"true"},credentials:"include"})).json();if(!r.isAuthenticated){if(!r.ssoEnabled)throw new Gl("errors.ssoNotEnabled");if(!r.loginUrl)throw new Gl("errors.ssoNoLoginUrl")}return{isAuthenticated:r.isAuthenticated,loginUrl:`${r.loginUrl}?return_to=${window.location.href}`}})}authenticate(t=!0){var n;return Cm(this,void 0,void 0,function*(){this._authenticating=!0;const{isAuthenticated:r,loginUrl:o}=yield this.checkAuthentication();return r?(this._authenticating=!1,!0):this._enableSilentPreAuth&&t?(yield this.authenticateSilent(o),this.authenticate(!1)):((n=window==null?void 0:window.location)===null||n===void 0||n.assign(o),!1)})}}var m$=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(d){try{l(r.next(d))}catch(p){a(p)}}function c(d){try{l(r.throw(d))}catch(p){a(p)}}function l(d){d.done?i(d.value):o(d.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};class vP{constructor(t,n){this.type="bearer",this._valid=!0,this.bearer=n,this.url=t}isValid(){return this._valid}invalidate(){this._valid=!1}isAuthenticating(){return!1}applyHeader(t){const n="Bearer "+this.bearer;B1(t,{Authorization:n})}authenticate(){return m$(this,void 0,void 0,function*(){return Promise.resolve(!0)})}}var v$=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(d){try{l(r.next(d))}catch(p){a(p)}}function c(d){try{l(r.throw(d))}catch(p){a(p)}}function l(d){d.done?i(d.value):o(d.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};class bP{constructor(t,n){this.type="wat",this._authenticating=!1,this._valid=!0,this._initialiser=void 0,this.url=t,this.wat=n}isValid(){return this._valid}invalidate(){this._valid=!1}isAuthenticating(){return this._authenticating}applyHeader(t){if(this._webSessionToken&&this._initialiser){const n=this._webSessionToken,r=this._initialiser;B1(t,{Authorization:n,Initialiser:r})}}authenticate(){return v$(this,void 0,void 0,function*(){this._authenticating=!0;const t=`${this.url}${this.url.endsWith("/")?"":"/"}api/v1/wat/sessionToken`;try{const n=yield fetch(t,{method:"POST",headers:{accept:"application/json","Content-Type":"application/json"},body:`{"webAccessToken": "${this.wat}"}`});if(n.ok){const r=yield n.json();this._initialiser=r.initialiser,this._webSessionToken=r.webSessionToken,this._authenticating=!1}else return!1}catch(n){return this._initialiser=void 0,this._authenticating=!1,!1}return!0})}}function b$(e,t,n,r,o,i,a=!1){return i?new H1(e,a):r?new vP(e,r):o?new bP(e,o):null}var Jn=typeof globalThis!="undefined"&&globalThis||typeof self!="undefined"&&self||typeof global!="undefined"&&global||{},hr={searchParams:"URLSearchParams"in Jn,iterable:"Symbol"in Jn&&"iterator"in Symbol,blob:"FileReader"in Jn&&"Blob"in Jn&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in Jn,arrayBuffer:"ArrayBuffer"in Jn};function y$(e){return e&&DataView.prototype.isPrototypeOf(e)}if(hr.arrayBuffer)var w$=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],_$=ArrayBuffer.isView||function(e){return e&&w$.indexOf(Object.prototype.toString.call(e))>-1};function pc(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function $1(e){return typeof e!="string"&&(e=String(e)),e}function z1(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return hr.iterable&&(t[Symbol.iterator]=function(){return t}),t}function On(e){this.map={},e instanceof On?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){if(t.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}On.prototype.append=function(e,t){e=pc(e),t=$1(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};On.prototype.delete=function(e){delete this.map[pc(e)]};On.prototype.get=function(e){return e=pc(e),this.has(e)?this.map[e]:null};On.prototype.has=function(e){return this.map.hasOwnProperty(pc(e))};On.prototype.set=function(e,t){this.map[pc(e)]=$1(t)};On.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};On.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),z1(e)};On.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),z1(e)};On.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),z1(e)};hr.iterable&&(On.prototype[Symbol.iterator]=On.prototype.entries);function Sm(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}}function yP(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function x$(e){var t=new FileReader,n=yP(t);return t.readAsArrayBuffer(e),n}function C$(e){var t=new FileReader,n=yP(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8";return t.readAsText(e,o),n}function S$(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function jS(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function wP(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:hr.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:hr.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:hr.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():hr.arrayBuffer&&hr.blob&&y$(e)?(this._bodyArrayBuffer=jS(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):hr.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||_$(e))?this._bodyArrayBuffer=jS(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):hr.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},hr.blob&&(this.blob=function(){var e=Sm(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Sm(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(hr.blob)return this.blob().then(x$);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var e=Sm(this);if(e)return e;if(this._bodyBlob)return C$(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(S$(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},hr.formData&&(this.formData=function(){return this.text().then(E$)}),this.json=function(){return this.text().then(JSON.parse)},this}var k$=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function T$(e){var t=e.toUpperCase();return k$.indexOf(t)>-1?t:e}function La(e,t){if(!(this instanceof La))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof La){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new On(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new On(t.headers)),this.method=T$(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in Jn){var i=new AbortController;return i.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}La.prototype.clone=function(){return new La(this,{body:this._bodyInit})};function E$(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),o=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function A$(e){var t=new On,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(`
|
|
2
|
+
`)===0?r.substr(1,r.length):r}).forEach(function(r){var o=r.split(":"),i=o.shift().trim();if(i){var a=o.join(":").trim();try{t.append(i,a)}catch(s){console.warn("Response "+s.message)}}}),t}wP.call(La.prototype);function Go(e,t){if(!(this instanceof Go))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new On(t.headers),this.url=t.url||"",this._initBody(e)}wP.call(Go.prototype);Go.prototype.clone=function(){return new Go(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new On(this.headers),url:this.url})};Go.error=function(){var e=new Go(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var O$=[301,302,303,307,308];Go.redirect=function(e,t){if(O$.indexOf(t)===-1)throw new RangeError("Invalid status code");return new Go(null,{status:t,headers:{location:e}})};var Ca=Jn.DOMException;try{new Ca}catch(e){Ca=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},Ca.prototype=Object.create(Error.prototype),Ca.prototype.constructor=Ca}function W1(e,t){return new Promise(function(n,r){var o=new La(e,t);if(o.signal&&o.signal.aborted)return r(new Ca("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var l={statusText:i.statusText,headers:A$(i.getAllResponseHeaders()||"")};o.url.indexOf("file://")===0&&(i.status<200||i.status>599)?l.status=200:l.status=i.status,l.url="responseURL"in i?i.responseURL:l.headers.get("X-Request-URL");var d="response"in i?i.response:i.responseText;setTimeout(function(){n(new Go(d,l))},0)},i.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request timed out"))},0)},i.onabort=function(){setTimeout(function(){r(new Ca("Aborted","AbortError"))},0)};function s(l){try{return l===""&&Jn.location.href?Jn.location.href:l}catch(d){return l}}if(i.open(o.method,s(o.url),!0),o.credentials==="include"?i.withCredentials=!0:o.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&(hr.blob?i.responseType="blob":hr.arrayBuffer&&(i.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof On||Jn.Headers&&t.headers instanceof Jn.Headers)){var c=[];Object.getOwnPropertyNames(t.headers).forEach(function(l){c.push(pc(l)),i.setRequestHeader(l,$1(t.headers[l]))}),o.headers.forEach(function(l,d){c.indexOf(d)===-1&&i.setRequestHeader(d,l)})}else o.headers.forEach(function(l,d){i.setRequestHeader(d,l)});o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){i.readyState===4&&o.signal.removeEventListener("abort",a)}),i.send(typeof o._bodyInit=="undefined"?null:o._bodyInit)})}W1.polyfill=!0;Jn.fetch||(Jn.fetch=W1,Jn.Headers=On,Jn.Request=La,Jn.Response=Go);const R$=Object.freeze(Object.defineProperty({__proto__:null,get DOMException(){return Ca},Headers:On,Request:La,Response:Go,fetch:W1},Symbol.toStringTag,{value:"Module"})),D$=m.getAugmentedNamespace(R$);var M$=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){var r=n(1),o=typeof importScripts=="function";e.exports=r(o?self:window)},function(e,t,n){function r(a){if(Array.isArray(a)){for(var s=0,c=Array(a.length);s<a.length;s++)c[s]=a[s];return c}else return Array.from(a)}var o=[];function i(a){for(var s=arguments.length,c=Array(s>1?s-1:0),l=1;l<s;l++)c[l-1]=arguments[l];var d=o.reduce(function(f,v){return[v].concat(f)},[]),p=Promise.resolve(c);return d.forEach(function(f){var v=f.request,b=f.requestError;(v||b)&&(p=p.then(function(_){return v.apply(void 0,r(_))},b))}),p=p.then(function(f){var v=new(Function.prototype.bind.apply(Request,[null].concat(r(f))));return a(v).then(function(b){return b.request=v,b}).catch(function(b){return b.request=v,Promise.reject(b)})}),d.forEach(function(f){var v=f.response,b=f.responseError;(v||b)&&(p=p.then(v,b))}),p}e.exports=function(s){if(!s.fetch)try{n(2)}catch(c){throw Error("No fetch available. Unable to register fetch-intercept")}return s.fetch=function(c){return function(){for(var l=arguments.length,d=Array(l),p=0;p<l;p++)d[p]=arguments[p];return i.apply(void 0,[c].concat(d))}}(s.fetch),{register:function(l){return o.push(l),function(){var d=o.indexOf(l);d>=0&&o.splice(d,1)}},clear:function(){o=[]}}}},function(e,t){e.exports=D$}]);const P$=m.getDefaultExportFromCjs(M$);function I$(e){if(!e.ok)throw new Gl("errors.responseError",{status:e.status.toString(),statusText:e.statusText,context:e.statusText?"withStatusText":"onlyStatus"});return e}function N$(e,t){if(t.invalidate(),t instanceof g$)throw new Gl("errors.passwordAuthFailed");if(t instanceof vP||t instanceof bP)throw new Gl("errors.tokenAuthFailed");return t instanceof H1&&!t.isAuthenticating()&&t.authenticate(),e}function L$(e){return e.message==="Failed to fetch"&&e.name==="TypeError"}function j$(){return Promise.reject(new Gl("errors.networkError"))}const F$=e=>t=>t.status===401?N$(t,e):t.ok?t:I$(t),B$=e=>L$(e)?j$():Promise.reject(e);var jc=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(d){try{l(r.next(d))}catch(p){a(p)}}function c(d){try{l(r.throw(d))}catch(p){a(p)}}function l(d){d.done?i(d.value):o(d.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};class H${constructor(t,n,r){t.endsWith("/")||(t+="/"),this.url=t,this.auth=n,this.env=r,P$.register({response:F$(n),responseError:B$})}login(){return jc(this,void 0,void 0,function*(){return this.auth.authenticate()})}call(t,n,r){return jc(this,void 0,void 0,function*(){if(this.auth.isAuthenticating())return new Promise(a=>{const s=()=>{if(this.auth.isAuthenticating()){setTimeout(s,10);return}this.call(t,n,r).then(c=>a(c))};s()});n.headers=n.headers||{},this.auth instanceof H1&&(n.credentials="include"),this.auth.applyHeader(n.headers);const o=h$(t,{trc:this.env}),i=yield fetch(r!=null&&r.skipTrackingParam?t:o,n);if(!(i.status===204||i.status===304))try{return r!=null&&r.returnBlob?yield i.blob():yield i.json()}catch(a){if(a instanceof Error&&a.message.includes("Unexpected end of JSON input"))return;throw a}})}post(t,n,r={},o,i){return jc(this,void 0,void 0,function*(){const a=Object.assign({method:"POST",body:i!=null&&i.nonJSONBody?n:JSON.stringify(n),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json;charset=UTF-8"},signal:o},r);return this.call(this.url+t,a,i)})}get(t,n={},r){return jc(this,void 0,void 0,function*(){return n.method="GET",this.call(this.url+t,n,r)})}delete(t,n={},r){return jc(this,void 0,void 0,function*(){return n.method="DELETE",this.call(this.url+t,n,r)})}}const $$={errors:{invalidAttribute:"Invalid attribute {{attributeName}}. Hint: attributes for query should be extracted from the data model generated by the CLI tool.",noDimensionsOrMeasures:"Neither dimensions nor measures found. Query should have at least one dimension or measure.",invalidMeasure:'Invalid measure "{{measureName}}". Hint: measures for the query can be constructed using the "measureFactory" functions.',invalidFilter:'Invalid filter "{{filterName}}". Hint: filters for the query can be constructed using the "filterFactory" functions.',invalidHighlight:'Invalid highlight "{{highlightName}}". Hint: highlights for the query can be constructed using the "filterFactory" functions.',invalidCountNegative:'Invalid count "{{count}}". Count should be non-negative.',invalidOffset:'Invalid offset "{{offset}}". Offset should be non-negative.',missingHttpClient:"Query requires httpClient to work properly.",missingPostMethod:'httpClient must provide "post" method.'}},z$={errors:{invalidAttribute:"Недійсний атрибут {{attributeName}}. Підказка: атрибути для запиту повинні бути витягнуті з моделі даних, створеної за допомогою CLI-інструменту.",noDimensionsOrMeasures:"Не знайдено ні вимірів, ні показників. Запит повинен мати щонайменше один вимір або показник.",invalidMeasure:'Недійсний показник "{{measureName}}". Підказка: показники для запиту можна створити за допомогою функцій "measureFactory".',invalidFilter:'Недійсний фільтр "{{filterName}}". Підказка: фільтри для запиту можна створити за допомогою функцій "filterFactory".',invalidHighlight:'Недійсне виділення "{{highlightName}}". Підказка: виділення для запиту можна створити за допомогою функцій "filterFactory".',invalidCountNegative:`Недійсний count "{{count}}". Count повинен бути не від'ємним.`,invalidOffset:`Недійсний offset "{{offset}}". Offset повинен бути не від'ємним.`,missingHttpClient:"Для запиту потрібен httpClient, щоб працювати належним чином.",missingPostMethod:'httpClient повинен мати метод "post".'}},_P="sdkQueryClient",W$={en:$$,uk:z$};function U$(){return m.initI18next({resource:W$,language:"en",namespace:_P})}const{i18nextInstance:q$}=U$();var Vr={},xP={},Kh={},U1={};(function(e){var t=m.commonjsGlobal&&m.commonjsGlobal.__awaiter||function(o,i,a,s){function c(l){return l instanceof a?l:new a(function(d){d(l)})}return new(a||(a=Promise))(function(l,d){function p(b){try{v(s.next(b))}catch(_){d(_)}}function f(b){try{v(s.throw(b))}catch(_){d(_)}}function v(b){b.done?l(b.value):c(b.value).then(p,f)}v((s=s.apply(o,i||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Task=e.ExecutionResultStatus=void 0;var n;(function(o){o.SUCCESS="SUCCESS",o.ERROR="ERROR"})(n=e.ExecutionResultStatus||(e.ExecutionResultStatus={}));class r{constructor(i,a,s){this.steps=i,this.passport=a,this.addons=s,this.statistics={startTime:new Date,steps:[],runtimeInfo:{}},this.currentStep=void 0}run(i){return t(this,void 0,void 0,function*(){let a=i,s;for(let l=0;l<this.steps.length;l+=1){this.currentStep=this.steps[l];const{resultValue:d,info:p}=yield this.currentStep.run(this,a);if(this.statistics.steps.push(p),p.success)a=d;else{s=p.error;break}}const c=this.statistics.steps.length===this.steps.length&&this.statistics.steps.every(l=>l.success);return this.statistics.endTime=new Date,{status:c?n.SUCCESS:n.ERROR,error:s,result:c?a:void 0,statistics:this.statistics}})}cancel(i){var a;return t(this,void 0,void 0,function*(){yield(a=this.currentStep)===null||a===void 0?void 0:a.cancel(this,i)})}addRuntimeInfo(i,a){this.statistics.runtimeInfo[i]=a}emitAddonEvent(i,...a){var s;const c=i.split("."),l=c[0],d=c[1],p=(s=this.addons)===null||s===void 0?void 0:s.find(v=>v.addonName===l),f=(p==null?void 0:p.events)[d];f(...a)}}e.Task=r})(U1);var km=m.commonjsGlobal&&m.commonjsGlobal.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(d){try{l(r.next(d))}catch(p){a(p)}}function c(d){try{l(r.throw(d))}catch(p){a(p)}}function l(d){d.done?i(d.value):o(d.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(Kh,"__esModule",{value:!0});Kh.AbstractTaskManager=void 0;const Y$=U1;class V${constructor(t){this.runningTasks=new Map,this.addons=t||[]}runTask(t){return km(this,void 0,void 0,function*(){const{taskId:n}=t.passport;this.runningTasks.set(n,t);const r=yield t.run();return this.runningTasks.delete(n),r})}createFlow(t){return n=>km(this,void 0,void 0,function*(){const r=new Y$.Task(t,n,this.addons);return this.runTask(r)})}cancel(t,n){return km(this,void 0,void 0,function*(){const r=this.runningTasks.get(t);r&&(yield r.cancel(n))})}}Kh.AbstractTaskManager=V$;var Xh={},zu={};Object.defineProperty(zu,"__esModule",{value:!0});zu.TaskCanceledError=void 0;class G$ extends Error{constructor(t){const n=`Task was canceled due to: "${t}"`;super(n)}}zu.TaskCanceledError=G$;var FS=m.commonjsGlobal&&m.commonjsGlobal.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(d){try{l(r.next(d))}catch(p){a(p)}}function c(d){try{l(r.throw(d))}catch(p){a(p)}}function l(d){d.done?i(d.value):o(d.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(Xh,"__esModule",{value:!0});Xh.Step=void 0;const Q$=zu;class J${constructor(t,n,r){this.taskSelfResolvers=new Map,this.taskStepInfos=new Map,this.name=t,this.runLogic=n,this.cancelLogic=r}run(t,n){return FS(this,void 0,void 0,function*(){return this.addStepInfo(t,{name:this.name}),new Promise(r=>{const o=new Date,i=(a,s)=>{const c=new Date,l=c.getTime()-o.getTime();this.addStepInfo(t,{startTime:o,endTime:c,duration:l}),this.addStepInfo(t,s?{success:!1,error:s}:{success:!0}),r({resultValue:a,info:this.getStepInfo(t)})};this.taskSelfResolvers.set(t,i),this.runLogic(t,n).then(a=>i(a)).finally(()=>{this.taskSelfResolvers.delete(t),this.taskStepInfos.delete(t)}).catch(a=>i(void 0,a))})})}cancel(t,n){return FS(this,void 0,void 0,function*(){this.addStepInfo(t,{wasCanceled:!0,cancelingReason:n});const r=this.taskSelfResolvers.get(t);r==null||r(void 0,new Q$.TaskCanceledError(n)),this.taskSelfResolvers.delete(t),this.taskStepInfos.delete(t),yield this.cancelLogic(t,n)})}addStepInfo(t,n){const r=this.taskStepInfos.get(t)||{},o=Object.assign(Object.assign({},r),n);this.taskStepInfos.set(t,o)}getStepInfo(t){return this.taskStepInfos.get(t)}}Xh.Step=J$;var ef={};Object.defineProperty(ef,"__esModule",{value:!0});ef.Addon=void 0;class Z${constructor(){this.events={}}}ef.Addon=Z$;var tf={},qd,K$=new Uint8Array(16);function CP(){if(!qd&&(qd=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!qd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qd(K$)}const X$=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function nf(e){return typeof e=="string"&&X$.test(e)}var qn=[];for(var Tm=0;Tm<256;++Tm)qn.push((Tm+256).toString(16).substr(1));function rf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(qn[e[t+0]]+qn[e[t+1]]+qn[e[t+2]]+qn[e[t+3]]+"-"+qn[e[t+4]]+qn[e[t+5]]+"-"+qn[e[t+6]]+qn[e[t+7]]+"-"+qn[e[t+8]]+qn[e[t+9]]+"-"+qn[e[t+10]]+qn[e[t+11]]+qn[e[t+12]]+qn[e[t+13]]+qn[e[t+14]]+qn[e[t+15]]).toLowerCase();if(!nf(n))throw TypeError("Stringified UUID is invalid");return n}var BS,Em,Am=0,Om=0;function e8(e,t,n){var r=t&&n||0,o=t||new Array(16);e=e||{};var i=e.node||BS,a=e.clockseq!==void 0?e.clockseq:Em;if(i==null||a==null){var s=e.random||(e.rng||CP)();i==null&&(i=BS=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]),a==null&&(a=Em=(s[6]<<8|s[7])&16383)}var c=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:Om+1,d=c-Am+(l-Om)/1e4;if(d<0&&e.clockseq===void 0&&(a=a+1&16383),(d<0||c>Am)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Am=c,Om=l,Em=a,c+=122192928e5;var p=((c&268435455)*1e4+l)%4294967296;o[r++]=p>>>24&255,o[r++]=p>>>16&255,o[r++]=p>>>8&255,o[r++]=p&255;var f=c/4294967296*1e4&268435455;o[r++]=f>>>8&255,o[r++]=f&255,o[r++]=f>>>24&15|16,o[r++]=f>>>16&255,o[r++]=a>>>8|128,o[r++]=a&255;for(var v=0;v<6;++v)o[r+v]=i[v];return t||rf(o)}function SP(e){if(!nf(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}function t8(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var n8="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r8="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function kP(e,t,n){function r(o,i,a,s){if(typeof o=="string"&&(o=t8(o)),typeof i=="string"&&(i=SP(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+o.length);if(c.set(i),c.set(o,i.length),c=n(c),c[6]=c[6]&15|t,c[8]=c[8]&63|128,a){s=s||0;for(var l=0;l<16;++l)a[s+l]=c[l];return a}return rf(c)}try{r.name=e}catch(o){}return r.DNS=n8,r.URL=r8,r}function o8(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return i8(a8(s8(e),e.length*8))}function i8(e){for(var t=[],n=e.length*32,r="0123456789abcdef",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(a)}return t}function TP(e){return(e+64>>>9<<4)+14+1}function a8(e,t){e[t>>5]|=128<<t%32,e[TP(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=n,c=r,l=o,d=i;n=nr(n,r,o,i,e[a],7,-680876936),i=nr(i,n,r,o,e[a+1],12,-389564586),o=nr(o,i,n,r,e[a+2],17,606105819),r=nr(r,o,i,n,e[a+3],22,-1044525330),n=nr(n,r,o,i,e[a+4],7,-176418897),i=nr(i,n,r,o,e[a+5],12,1200080426),o=nr(o,i,n,r,e[a+6],17,-1473231341),r=nr(r,o,i,n,e[a+7],22,-45705983),n=nr(n,r,o,i,e[a+8],7,1770035416),i=nr(i,n,r,o,e[a+9],12,-1958414417),o=nr(o,i,n,r,e[a+10],17,-42063),r=nr(r,o,i,n,e[a+11],22,-1990404162),n=nr(n,r,o,i,e[a+12],7,1804603682),i=nr(i,n,r,o,e[a+13],12,-40341101),o=nr(o,i,n,r,e[a+14],17,-1502002290),r=nr(r,o,i,n,e[a+15],22,1236535329),n=rr(n,r,o,i,e[a+1],5,-165796510),i=rr(i,n,r,o,e[a+6],9,-1069501632),o=rr(o,i,n,r,e[a+11],14,643717713),r=rr(r,o,i,n,e[a],20,-373897302),n=rr(n,r,o,i,e[a+5],5,-701558691),i=rr(i,n,r,o,e[a+10],9,38016083),o=rr(o,i,n,r,e[a+15],14,-660478335),r=rr(r,o,i,n,e[a+4],20,-405537848),n=rr(n,r,o,i,e[a+9],5,568446438),i=rr(i,n,r,o,e[a+14],9,-1019803690),o=rr(o,i,n,r,e[a+3],14,-187363961),r=rr(r,o,i,n,e[a+8],20,1163531501),n=rr(n,r,o,i,e[a+13],5,-1444681467),i=rr(i,n,r,o,e[a+2],9,-51403784),o=rr(o,i,n,r,e[a+7],14,1735328473),r=rr(r,o,i,n,e[a+12],20,-1926607734),n=or(n,r,o,i,e[a+5],4,-378558),i=or(i,n,r,o,e[a+8],11,-2022574463),o=or(o,i,n,r,e[a+11],16,1839030562),r=or(r,o,i,n,e[a+14],23,-35309556),n=or(n,r,o,i,e[a+1],4,-1530992060),i=or(i,n,r,o,e[a+4],11,1272893353),o=or(o,i,n,r,e[a+7],16,-155497632),r=or(r,o,i,n,e[a+10],23,-1094730640),n=or(n,r,o,i,e[a+13],4,681279174),i=or(i,n,r,o,e[a],11,-358537222),o=or(o,i,n,r,e[a+3],16,-722521979),r=or(r,o,i,n,e[a+6],23,76029189),n=or(n,r,o,i,e[a+9],4,-640364487),i=or(i,n,r,o,e[a+12],11,-421815835),o=or(o,i,n,r,e[a+15],16,530742520),r=or(r,o,i,n,e[a+2],23,-995338651),n=ir(n,r,o,i,e[a],6,-198630844),i=ir(i,n,r,o,e[a+7],10,1126891415),o=ir(o,i,n,r,e[a+14],15,-1416354905),r=ir(r,o,i,n,e[a+5],21,-57434055),n=ir(n,r,o,i,e[a+12],6,1700485571),i=ir(i,n,r,o,e[a+3],10,-1894986606),o=ir(o,i,n,r,e[a+10],15,-1051523),r=ir(r,o,i,n,e[a+1],21,-2054922799),n=ir(n,r,o,i,e[a+8],6,1873313359),i=ir(i,n,r,o,e[a+15],10,-30611744),o=ir(o,i,n,r,e[a+6],15,-1560198380),r=ir(r,o,i,n,e[a+13],21,1309151649),n=ir(n,r,o,i,e[a+4],6,-145523070),i=ir(i,n,r,o,e[a+11],10,-1120210379),o=ir(o,i,n,r,e[a+2],15,718787259),r=ir(r,o,i,n,e[a+9],21,-343485551),n=Ta(n,s),r=Ta(r,c),o=Ta(o,l),i=Ta(i,d)}return[n,r,o,i]}function s8(e){if(e.length===0)return[];for(var t=e.length*8,n=new Uint32Array(TP(t)),r=0;r<t;r+=8)n[r>>5]|=(e[r/8]&255)<<r%32;return n}function Ta(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function l8(e,t){return e<<t|e>>>32-t}function of(e,t,n,r,o,i){return Ta(l8(Ta(Ta(t,e),Ta(r,i)),o),n)}function nr(e,t,n,r,o,i,a){return of(t&n|~t&r,e,t,o,i,a)}function rr(e,t,n,r,o,i,a){return of(t&r|n&~r,e,t,o,i,a)}function or(e,t,n,r,o,i,a){return of(t^n^r,e,t,o,i,a)}function ir(e,t,n,r,o,i,a){return of(n^(t|~r),e,t,o,i,a)}var c8=kP("v3",48,o8);const u8=c8;function d8(e,t,n){e=e||{};var r=e.random||(e.rng||CP)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return rf(r)}function p8(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function Rm(e,t){return e<<t|e>>>32-t}function h8(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),d=0;d<16;++d)l[d]=e[c*64+d*4]<<24|e[c*64+d*4+1]<<16|e[c*64+d*4+2]<<8|e[c*64+d*4+3];s[c]=l}s[a-1][14]=(e.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(e.length-1)*8&4294967295;for(var p=0;p<a;++p){for(var f=new Uint32Array(80),v=0;v<16;++v)f[v]=s[p][v];for(var b=16;b<80;++b)f[b]=Rm(f[b-3]^f[b-8]^f[b-14]^f[b-16],1);for(var _=n[0],y=n[1],C=n[2],k=n[3],T=n[4],x=0;x<80;++x){var E=Math.floor(x/20),O=Rm(_,5)+p8(E,y,C,k)+T+t[E]+f[x]>>>0;T=k,k=C,C=Rm(y,30)>>>0,y=_,_=O}n[0]=n[0]+_>>>0,n[1]=n[1]+y>>>0,n[2]=n[2]+C>>>0,n[3]=n[3]+k>>>0,n[4]=n[4]+T>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var f8=kP("v5",80,h8);const g8=f8,m8="00000000-0000-0000-0000-000000000000";function v8(e){if(!nf(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const b8=Object.freeze(Object.defineProperty({__proto__:null,NIL:m8,parse:SP,stringify:rf,v1:e8,v3:u8,v4:d8,v5:g8,validate:nf,version:v8},Symbol.toStringTag,{value:"Module"})),y8=m.getAugmentedNamespace(b8);Object.defineProperty(tf,"__esModule",{value:!0});tf.TaskPassport=void 0;const w8=y8;class _8{constructor(){this.taskId=(0,w8.v4)()}}tf.TaskPassport=_8;(function(e){var t=m.commonjsGlobal&&m.commonjsGlobal.__createBinding||(Object.create?function(r,o,i,a){a===void 0&&(a=i);var s=Object.getOwnPropertyDescriptor(o,i);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(r,a,s)}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]}),n=m.commonjsGlobal&&m.commonjsGlobal.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(Kh,e),n(Xh,e),n(U1,e),n(ef,e),n(tf,e),n(zu,e)})(xP);(function(e){var t=m.commonjsGlobal&&m.commonjsGlobal.__createBinding||(Object.create?function(r,o,i,a){a===void 0&&(a=i);var s=Object.getOwnPropertyDescriptor(o,i);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(r,a,s)}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]}),n=m.commonjsGlobal&&m.commonjsGlobal.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(xP,e)})(Vr);const EP=e=>{if(e!==void 0)return`${e}`},AP=e=>{if(e!==void 0)return new Date(e).toISOString()},q1=()=>!1;function HS(e,t){const n=t.filter;return"or"in n?r=>n.or.map(o=>e(Object.assign(Object.assign({},t),{filter:o}))).reduce((o,i)=>o||i(r),!1):"and"in n?r=>n.and.map(o=>e(Object.assign(Object.assign({},t),{filter:o}))).reduce((o,i)=>o&&i(r),!0):e(t)}function x8(e){const{datatype:t}=e,n=e.filter,r=t==="datetime"?AP:EP;return o=>{const i=n.members.map(r),a=r(o);return i.includes(a)}}function C8(e){const{datatype:t}=e,n=e.filter,r=t==="datetime"?AP:EP;return o=>{var i,a;const s=((a=(i=n.exclude)===null||i===void 0?void 0:i.members)===null||a===void 0?void 0:a.map(r))||[],c=r(o);return!s.includes(c)}}function S8(e){const t=e.filter,n=m.getSelectedConditionOption(t);return n===m.ConditionFilterType.STARTS_WITH?r=>new RegExp(`^${t.startsWith}`,"i").test(r):n===m.ConditionFilterType.ENDS_WITH?r=>new RegExp(`${t.endsWith}$`,"i").test(r):n===m.ConditionFilterType.CONTAINS?r=>new RegExp(t.contains,"i").test(r):n===m.ConditionFilterType.EQUALS?r=>r.localeCompare(t.equals,void 0,{sensitivity:"base"})===0:n===m.ConditionFilterType.DOESNT_START_WITH?r=>!new RegExp(`^${t.doesntStartWith}`,"i").test(r):n===m.ConditionFilterType.DOESNT_END_WITH?r=>!new RegExp(`${t.doesntEndWith}$`,"i").test(r):n===m.ConditionFilterType.DOESNT_CONTAIN?r=>!new RegExp(t.doesntContain,"i").test(r):n===m.ConditionFilterType.DOESNT_EQUAL?r=>r.localeCompare(t.doesntEqual,void 0,{sensitivity:"base"})!==0:q1}function k8(e){const t=e.filter,n=m.getSelectedConditionOption(t);return n===m.ConditionFilterType.EQUALS?r=>Number(t.equals)===Number(r):n===m.ConditionFilterType.DOESNT_EQUAL?r=>Number(t.doesntEqual)!==Number(r):n===m.ConditionFilterType.LESS_THAN?r=>Number(r)<Number(t.toNotEqual):n===m.ConditionFilterType.GREATER_THAN?r=>Number(r)>Number(t.fromNotEqual):n===m.ConditionFilterType.BETWEEN?r=>Number(t.to)>=Number(r)&&Number(r)>=Number(t.from):n===m.ConditionFilterType.GREATER_THAN_OR_EQUAL?r=>Number(r)>=Number(t.from):n===m.ConditionFilterType.LESS_THAN_OR_EQUAL?r=>Number(t.to)>=Number(r):q1}function T8(e){const t=e,{datatype:n}=t,r=t.filter;return m.isSpecificItemsFilter(r)?x8(t):m.isConditionFilter(r)&&m.getSelectedConditionOption(r)===m.ConditionFilterType.IS_NOT?C8(t):n==="text"?HS(S8,t):n==="numeric"?HS(k8,t):q1}var OP={exports:{}};/*! @preserve
|
|
3
|
+
* numeral.js
|
|
4
|
+
* version : 2.0.6
|
|
5
|
+
* author : Adam Draper
|
|
6
|
+
* license : MIT
|
|
7
|
+
* http://adamwdraper.github.com/Numeral-js/
|
|
8
|
+
*/(function(e){(function(t,n){e.exports?e.exports=n():t.numeral=n()})(m.commonjsGlobal,function(){var t,n,r="2.0.6",o={},i={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function c(l,d){this._input=l,this._value=d}return t=function(l){var d,p,f,v;if(t.isNumeral(l))d=l.value();else if(l===0||typeof l=="undefined")d=0;else if(l===null||n.isNaN(l))d=null;else if(typeof l=="string")if(s.zeroFormat&&l===s.zeroFormat)d=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)d=null;else{for(p in o)if(v=typeof o[p].regexps.unformat=="function"?o[p].regexps.unformat():o[p].regexps.unformat,v&&l.match(v)){f=o[p].unformat;break}f=f||t._.stringToNumber,d=f(l)}else d=Number(l)||null;return new c(l,d)},t.version=r,t.isNumeral=function(l){return l instanceof c},t._=n={numberToFormat:function(l,d,p){var f=i[t.options.currentLocale],v=!1,b=!1,_=0,y="",C=1e12,k=1e9,T=1e6,x=1e3,E="",O=!1,S,R,D,P,I,j,W;if(l=l||0,R=Math.abs(l),t._.includes(d,"(")?(v=!0,d=d.replace(/[\(|\)]/g,"")):(t._.includes(d,"+")||t._.includes(d,"-"))&&(I=t._.includes(d,"+")?d.indexOf("+"):l<0?d.indexOf("-"):-1,d=d.replace(/[\+|\-]/g,"")),t._.includes(d,"a")&&(S=d.match(/a(k|m|b|t)?/),S=S?S[1]:!1,t._.includes(d," a")&&(y=" "),d=d.replace(new RegExp(y+"a[kmbt]?"),""),R>=C&&!S||S==="t"?(y+=f.abbreviations.trillion,l=l/C):R<C&&R>=k&&!S||S==="b"?(y+=f.abbreviations.billion,l=l/k):R<k&&R>=T&&!S||S==="m"?(y+=f.abbreviations.million,l=l/T):(R<T&&R>=x&&!S||S==="k")&&(y+=f.abbreviations.thousand,l=l/x)),t._.includes(d,"[.]")&&(b=!0,d=d.replace("[.]",".")),D=l.toString().split(".")[0],P=d.split(".")[1],j=d.indexOf(","),_=(d.split(".")[0].split(",")[0].match(/0/g)||[]).length,P?(t._.includes(P,"[")?(P=P.replace("]",""),P=P.split("["),E=t._.toFixed(l,P[0].length+P[1].length,p,P[1].length)):E=t._.toFixed(l,P.length,p),D=E.split(".")[0],t._.includes(E,".")?E=f.delimiters.decimal+E.split(".")[1]:E="",b&&Number(E.slice(1))===0&&(E="")):D=t._.toFixed(l,0,p),y&&!S&&Number(D)>=1e3&&y!==f.abbreviations.trillion)switch(D=String(Number(D)/1e3),y){case f.abbreviations.thousand:y=f.abbreviations.million;break;case f.abbreviations.million:y=f.abbreviations.billion;break;case f.abbreviations.billion:y=f.abbreviations.trillion;break}if(t._.includes(D,"-")&&(D=D.slice(1),O=!0),D.length<_)for(var F=_-D.length;F>0;F--)D="0"+D;return j>-1&&(D=D.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),d.indexOf(".")===0&&(D=""),W=D+E+(y||""),v?W=(v&&O?"(":"")+W+(v&&O?")":""):I>=0?W=I===0?(O?"-":"+")+W:W+(O?"-":"+"):O&&(W="-"+W),W},stringToNumber:function(l){var d=i[s.currentLocale],p=l,f={thousand:3,million:6,billion:9,trillion:12},v,b,_;if(s.zeroFormat&&l===s.zeroFormat)b=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)b=null;else{b=1,d.delimiters.decimal!=="."&&(l=l.replace(/\./g,"").replace(d.delimiters.decimal,"."));for(v in f)if(_=new RegExp("[^a-zA-Z]"+d.abbreviations[v]+"(?:\\)|(\\"+d.currency.symbol+")?(?:\\))?)?$"),p.match(_)){b*=Math.pow(10,f[v]);break}b*=(l.split("-").length+Math.min(l.split("(").length-1,l.split(")").length-1))%2?1:-1,l=l.replace(/[^0-9\.]+/g,""),b*=Number(l)}return b},isNaN:function(l){return typeof l=="number"&&isNaN(l)},includes:function(l,d){return l.indexOf(d)!==-1},insert:function(l,d,p){return l.slice(0,p)+d+l.slice(p)},reduce:function(l,d){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof d!="function")throw new TypeError(d+" is not a function");var p=Object(l),f=p.length>>>0,v=0,b;if(arguments.length===3)b=arguments[2];else{for(;v<f&&!(v in p);)v++;if(v>=f)throw new TypeError("Reduce of empty array with no initial value");b=p[v++]}for(;v<f;v++)v in p&&(b=d(b,p[v],v,p));return b},multiplier:function(l){var d=l.toString().split(".");return d.length<2?1:Math.pow(10,d[1].length)},correctionFactor:function(){var l=Array.prototype.slice.call(arguments);return l.reduce(function(d,p){var f=n.multiplier(p);return d>f?d:f},1)},toFixed:function(l,d,p,f){var v=l.toString().split("."),b=d-(f||0),_,y,C,k;return v.length===2?_=Math.min(Math.max(v[1].length,b),d):_=b,C=Math.pow(10,_),k=(p(l+"e+"+_)/C).toFixed(_),f>d-_&&(y=new RegExp("\\.?0{1,"+(f-(d-_))+"}$"),k=k.replace(y,"")),k}},t.options=s,t.formats=o,t.locales=i,t.locale=function(l){return l&&(s.currentLocale=l.toLowerCase()),s.currentLocale},t.localeData=function(l){if(!l)return i[s.currentLocale];if(l=l.toLowerCase(),!i[l])throw new Error("Unknown locale : "+l);return i[l]},t.reset=function(){for(var l in a)s[l]=a[l]},t.zeroFormat=function(l){s.zeroFormat=typeof l=="string"?l:null},t.nullFormat=function(l){s.nullFormat=typeof l=="string"?l:null},t.defaultFormat=function(l){s.defaultFormat=typeof l=="string"?l:"0.0"},t.register=function(l,d,p){if(d=d.toLowerCase(),this[l+"s"][d])throw new TypeError(d+" "+l+" already registered.");return this[l+"s"][d]=p,p},t.validate=function(l,d){var p,f,v,b,_,y,C,k;if(typeof l!="string"&&(l+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",l)),l=l.trim(),l.match(/^\d+$/))return!0;if(l==="")return!1;try{C=t.localeData(d)}catch(T){C=t.localeData(t.locale())}return v=C.currency.symbol,_=C.abbreviations,p=C.delimiters.decimal,C.delimiters.thousands==="."?f="\\.":f=C.delimiters.thousands,k=l.match(/^[^\d]+/),k!==null&&(l=l.substr(1),k[0]!==v)||(k=l.match(/[^\d]+$/),k!==null&&(l=l.slice(0,-1),k[0]!==_.thousand&&k[0]!==_.million&&k[0]!==_.billion&&k[0]!==_.trillion))?!1:(y=new RegExp(f+"{2}"),l.match(/[^\d.,]/g)?!1:(b=l.split(p),b.length>2?!1:b.length<2?!!b[0].match(/^\d+.*\d$/)&&!b[0].match(y):b[0].length===1?!!b[0].match(/^\d+$/)&&!b[0].match(y)&&!!b[1].match(/^\d+$/):!!b[0].match(/^\d+.*\d$/)&&!b[0].match(y)&&!!b[1].match(/^\d+$/)))},t.fn=c.prototype={clone:function(){return t(this)},format:function(l,d){var p=this._value,f=l||s.defaultFormat,v,b,_;if(d=d||Math.round,p===0&&s.zeroFormat!==null)b=s.zeroFormat;else if(p===null&&s.nullFormat!==null)b=s.nullFormat;else{for(v in o)if(f.match(o[v].regexps.format)){_=o[v].format;break}_=_||t._.numberToFormat,b=_(p,f,d)}return b},value:function(){return this._value},input:function(){return this._input},set:function(l){return this._value=Number(l),this},add:function(l){var d=n.correctionFactor.call(null,this._value,l);function p(f,v,b,_){return f+Math.round(d*v)}return this._value=n.reduce([this._value,l],p,0)/d,this},subtract:function(l){var d=n.correctionFactor.call(null,this._value,l);function p(f,v,b,_){return f-Math.round(d*v)}return this._value=n.reduce([l],p,Math.round(this._value*d))/d,this},multiply:function(l){function d(p,f,v,b){var _=n.correctionFactor(p,f);return Math.round(p*_)*Math.round(f*_)/Math.round(_*_)}return this._value=n.reduce([this._value,l],d,1),this},divide:function(l){function d(p,f,v,b){var _=n.correctionFactor(p,f);return Math.round(p*_)/Math.round(f*_)}return this._value=n.reduce([this._value,l],d),this},difference:function(l){return Math.abs(t(this._value).subtract(l).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(l){var d=l%10;return~~(l%100/10)===1?"th":d===1?"st":d===2?"nd":d===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(l,d,p){var f=t._.includes(d," BPS")?" ":"",v;return l=l*1e4,d=d.replace(/\s?BPS/,""),v=t._.numberToFormat(l,d,p),t._.includes(v,")")?(v=v.split(""),v.splice(-1,0,f+"BPS"),v=v.join("")):v=v+f+"BPS",v},unformat:function(l){return+(t._.stringToNumber(l)*1e-4).toFixed(15)}})}(),function(){var l={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},d={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},p=l.suffixes.concat(d.suffixes.filter(function(v){return l.suffixes.indexOf(v)<0})),f=p.join("|");f="("+f.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(f)},format:function(v,b,_){var y,C=t._.includes(b,"ib")?d:l,k=t._.includes(b," b")||t._.includes(b," ib")?" ":"",T,x,E;for(b=b.replace(/\s?i?b/,""),T=0;T<=C.suffixes.length;T++)if(x=Math.pow(C.base,T),E=Math.pow(C.base,T+1),v===null||v===0||v>=x&&v<E){k+=C.suffixes[T],x>0&&(v=v/x);break}return y=t._.numberToFormat(v,b,_),y+k},unformat:function(v){var b=t._.stringToNumber(v),_,y;if(b){for(_=l.suffixes.length-1;_>=0;_--){if(t._.includes(v,l.suffixes[_])){y=Math.pow(l.base,_);break}if(t._.includes(v,d.suffixes[_])){y=Math.pow(d.base,_);break}}b*=y||1}return b}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(l,d,p){var f=t.locales[t.options.currentLocale],v={before:d.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:d.match(/([\+|\-|\)|\s|\$]*)$/)[0]},b,_,y;for(d=d.replace(/\s?\$\s?/,""),b=t._.numberToFormat(l,d,p),l>=0?(v.before=v.before.replace(/[\-\(]/,""),v.after=v.after.replace(/[\-\)]/,"")):l<0&&!t._.includes(v.before,"-")&&!t._.includes(v.before,"(")&&(v.before="-"+v.before),y=0;y<v.before.length;y++)switch(_=v.before[y],_){case"$":b=t._.insert(b,f.currency.symbol,y);break;case" ":b=t._.insert(b," ",y+f.currency.symbol.length-1);break}for(y=v.after.length-1;y>=0;y--)switch(_=v.after[y],_){case"$":b=y===v.after.length-1?b+f.currency.symbol:t._.insert(b,f.currency.symbol,-(v.after.length-(1+y)));break;case" ":b=y===v.after.length-1?b+" ":t._.insert(b," ",-(v.after.length-(1+y)+f.currency.symbol.length-1));break}return b}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,d,p){var f,v=typeof l=="number"&&!t._.isNaN(l)?l.toExponential():"0e+0",b=v.split("e");return d=d.replace(/e[\+|\-]{1}0/,""),f=t._.numberToFormat(Number(b[0]),d,p),f+"e"+b[1]},unformat:function(l){var d=t._.includes(l,"e+")?l.split("e+"):l.split("e-"),p=Number(d[0]),f=Number(d[1]);f=t._.includes(l,"e-")?f*=-1:f;function v(b,_,y,C){var k=t._.correctionFactor(b,_),T=b*k*(_*k)/(k*k);return T}return t._.reduce([p,Math.pow(10,f)],v,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,d,p){var f=t.locales[t.options.currentLocale],v,b=t._.includes(d," o")?" ":"";return d=d.replace(/\s?o/,""),b+=f.ordinal(l),v=t._.numberToFormat(l,d,p),v+b}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,d,p){var f=t._.includes(d," %")?" ":"",v;return t.options.scalePercentBy100&&(l=l*100),d=d.replace(/\s?\%/,""),v=t._.numberToFormat(l,d,p),t._.includes(v,")")?(v=v.split(""),v.splice(-1,0,f+"%"),v=v.join("")):v=v+f+"%",v},unformat:function(l){var d=t._.stringToNumber(l);return t.options.scalePercentBy100?d*.01:d}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(l,d,p){var f=Math.floor(l/60/60),v=Math.floor((l-f*60*60)/60),b=Math.round(l-f*60*60-v*60);return f+":"+(v<10?"0"+v:v)+":"+(b<10?"0"+b:b)},unformat:function(l){var d=l.split(":"),p=0;return d.length===3?(p=p+Number(d[0])*60*60,p=p+Number(d[1])*60,p=p+Number(d[2])):d.length===2&&(p=p+Number(d[0])*60,p=p+Number(d[1])),Number(p)}})}(),t})})(OP);var E8=OP.exports;const A8=m.getDefaultExportFromCjs(E8),O8=(e,t)=>{const n=M8(e);return R8(n,t)};function R8(e,t){return{columns:t==null?void 0:t.map(n=>({name:n.name,type:m.simpleColumnType(n.type)})),rows:D8(e)}}function D8(e){var t;const n=(t=e[0])===null||t===void 0?void 0:t.map((r,o)=>e.some(i=>"selected"in i[o]));return e.map(r=>{const o=n.some((i,a)=>i&&!r[a].selected);return r.map(i=>({data:i.data,text:i.text,blur:o}))})}function M8({values:e=[],metadata:t=[]}){var n,r,o,i;e[0]&&!Array.isArray(e[0])&&(e=[e]);for(let a=0;a<e.length;a++){const s=e[a];for(let c=0;c<s.length;c++)t[c].format&&(!((r=(n=t[c])===null||n===void 0?void 0:n.format)===null||r===void 0)&&r.number)&&(s[c].text=A8(s[c].data).format((i=(o=t[c])===null||o===void 0?void 0:o.format)===null||i===void 0?void 0:i.number))}return e}var us=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(d){try{l(r.next(d))}catch(p){a(p)}}function c(d){try{l(r.throw(d))}catch(p){a(p)}}function l(d){d.done?i(d.value):o(d.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};class P8 extends Vr.AbstractTaskManager{constructor(t,n){super(),this.sentRequestsAbortersMap=new Map,this.executeQuerySending=super.createFlow([new Vr.Step("PREPARE_JAQL_PAYLOAD",this.prepareJaqlPayload.bind(this),()=>us(this,void 0,void 0,function*(){})),new Vr.Step("SEND_JAQL_QUERY",this.sendJaqlQuery.bind(this),this.cancelDataRetrievalQuery.bind(this))]),this.executeDownloadCsvSending=super.createFlow([new Vr.Step("PREPARE_JAQL_PAYLOAD",this.prepareJaqlPayload.bind(this),()=>us(this,void 0,void 0,function*(){})),new Vr.Step("SEND_DOWNLOAD_CSV_QUERY",this.sendCsvQuery.bind(this),this.cancelDataRetrievalQuery.bind(this))]),this.executePivotQuerySending=super.createFlow([new Vr.Step("PREPARE_JAQL_PAYLOAD",this.preparePivotJaqlPayload.bind(this),()=>us(this,void 0,void 0,function*(){})),new Vr.Step("SEND_JAQL_QUERY",this.sendPivotJaqlQuery.bind(this),this.cancelPivotJaqlQuery.bind(this))]),this.queryApi=t,this.pivotClient=n}prepareJaqlPayload(t){return us(this,void 0,void 0,function*(){const{queryDescription:n,executionConfig:r}=t.passport,o=m.getJaqlQueryPayload(n,r.shouldSkipHighlightsWithoutAttributes),i=t.passport.executionConfig.onBeforeQuery;return i?i(o):o})}sendJaqlQuery(t,n){return us(this,void 0,void 0,function*(){const{queryDescription:r,taskId:o}=t.passport,{responsePromise:i,abortHttpRequest:a}=this.queryApi.sendJaqlRequest(t.passport.queryDescription.dataSource,n);this.sentRequestsAbortersMap.set(o,a);const s=yield i.finally(()=>{this.sentRequestsAbortersMap.delete(o)});I8(s);const c=[...r.attributes,...r.measures],l=(s.headers||[]).slice(c.length).map(d=>({name:d,type:"number"}));return O8(s,[...c,...l])})}sendCsvQuery(t,n){return us(this,void 0,void 0,function*(){const{taskId:r}=t.passport,{responsePromise:o,abortHttpRequest:i}=this.queryApi.sendDownloadCsvRequest(t.passport.queryDescription.dataSource,n);return this.sentRequestsAbortersMap.set(r,i),o.finally(()=>{this.sentRequestsAbortersMap.delete(r)})})}cancelDataRetrievalQuery(t){const n=t.passport.taskId,r=this.sentRequestsAbortersMap.get(n);return r&&(r(),this.sentRequestsAbortersMap.delete(n)),this.queryApi.sendCancelJaqlQueryRequest(n,t.passport.queryDescription.dataSource)}preparePivotJaqlPayload(t){return us(this,void 0,void 0,function*(){const{pivotQueryDescription:n,executionConfig:r}=t.passport,o=m.getPivotJaqlQueryPayload(n,r.shouldSkipHighlightsWithoutAttributes),i=t.passport.executionConfig.onBeforeQuery;return i?i(o):o})}sendPivotJaqlQuery(t,n){var r;const{pivotQueryDescription:o}=t.passport;return this.pivotClient.queryData(n,!0,(r=o.count)!==null&&r!==void 0?r:Nae,!1)}cancelPivotJaqlQuery(t){const n=t.passport.taskId,r=this.sentRequestsAbortersMap.get(n);return r&&(r(),this.sentRequestsAbortersMap.delete(n)),this.queryApi.sendCancelJaqlQueryRequest(n,t.passport.pivotQueryDescription.dataSource)}}function I8(e){var t;if(e.error)throw new Error(`${e.details} ${(t=e.database)!==null&&t!==void 0?t:""} ${e.extraDetails?JSON.stringify(e.extraDetails):""}`);return!0}class $S extends Vr.TaskPassport{constructor(t,n,r){super(),this.queryDescription=n,this.type=t,this.executionConfig=r}}class N8 extends Vr.TaskPassport{constructor(t,n,r){super(),this.pivotQueryDescription=n,this.type=t,this.executionConfig=r}}var Yd=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(d){try{l(r.next(d))}catch(p){a(p)}}function c(d){try{l(r.throw(d))}catch(p){a(p)}}function l(d){d.done?i(d.value):o(d.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};const wu="api/datasources",L8="api/v2/datamodels";class j8{constructor(t){this.httpClient=t}getDataSourceFields(t,n=9999,r=0){return Yd(this,void 0,void 0,function*(){const o=m.getDataSourceName(t),i=`${wu}/${encodeURIComponent(o)}/fields/search`;try{return yield this.httpClient.post(i,{offset:r,count:n})}catch(a){throw new Error(`Failed to get fields for data source "${t}". Please make sure the data source exists and is accessible.`)}})}getDataSourceList(){return Yd(this,void 0,void 0,function*(){const t=`${wu}/?sharedWith=r,w`;return this.httpClient.get(t)})}getDataSourceSchema(t){return Yd(this,void 0,void 0,function*(){const n=`${L8}/schema?title=${encodeURIComponent(t)}`;return this.httpClient.get(n)})}sendJaqlRequest(t,n){const r=RP(t),o=new AbortController;return{responsePromise:this.httpClient.post(r,n,void 0,o.signal).then(i=>Array.isArray(i)?{values:[],metadata:[]}:i),abortHttpRequest:i=>o.abort(i)}}sendDownloadCsvRequest(t,n){const r=H8(t),o=new AbortController,i=new URLSearchParams;return i.append("data",encodeURIComponent(JSON.stringify(n))),{responsePromise:this.httpClient.post(r,i,{headers:{"Content-Type":"application/x-www-form-urlencoded"}},o.signal,{nonJSONBody:!0,returnBlob:!0}),abortHttpRequest:a=>o.abort(a)}}sendCancelJaqlQueryRequest(t,n){return this.sendCancelMultipleJaqlQueriesRequest([t],n)}sendCancelMultipleJaqlQueriesRequest(t,n){return Yd(this,void 0,void 0,function*(){const r={queries:t.join(";")},o=F8(n);try{yield this.httpClient.post(o,r)}catch(i){if(i.status==="404"){const a=B8(n);yield this.httpClient.post(a,r)}else throw i}})}}function F8(e){const t=encodeURIComponent(m.getDataSourceName(e));return`${wu}/localhost/${t}/cancel_queries`}function B8(e){const t=encodeURIComponent(m.getDataSourceName(e));return`${wu}/live/${t}/cancel_queries`}function RP(e){const t=encodeURIComponent(m.getDataSourceName(e));return`${wu}/${t}/jaql`}function H8(e){return`${RP(e)}/csv`}class Ar extends m.AbstractTranslatableError{constructor(t,n){super(_P,{key:t,interpolationOptions:n},q$.t)}get status(){return this.interpolationOptions.status}}var $8=Object.defineProperty,z8=Object.defineProperties,W8=Object.getOwnPropertyDescriptors,Wp=Object.getOwnPropertySymbols,DP=Object.prototype.hasOwnProperty,MP=Object.prototype.propertyIsEnumerable,Vo=Math.pow,ew=(e,t,n)=>t in e?$8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,de=(e,t)=>{for(var n in t||(t={}))DP.call(t,n)&&ew(e,n,t[n]);if(Wp)for(var n of Wp(t))MP.call(t,n)&&ew(e,n,t[n]);return e},$e=(e,t)=>z8(e,W8(t)),Dn=(e,t)=>{var n={};for(var r in e)DP.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Wp)for(var r of Wp(e))t.indexOf(r)<0&&MP.call(e,r)&&(n[r]=e[r]);return n},q=(e,t,n)=>(ew(e,typeof t!="symbol"?t+"":t,n),n),PP=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{s(n.next(c))}catch(l){o(l)}},a=c=>{try{s(n.throw(c))}catch(l){o(l)}},s=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,a);s((n=n.apply(e,t)).next())}),ys=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Oo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ti(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var cu={},U8={get exports(){return cu},set exports(e){cu=e}},zS;function q8(){if(zS)return cu;zS=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(x,E,O){return Function.prototype.apply.call(x,E,O)},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function(x){return Object.getOwnPropertyNames(x).concat(Object.getOwnPropertySymbols(x))}:n=function(x){return Object.getOwnPropertyNames(x)};function r(x){console&&console.warn&&console.warn(x)}var o=Number.isNaN||function(x){return x!==x};function i(){i.init.call(this)}U8.exports=i,cu.once=C,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(x){if(typeof x!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof x)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(x){if(typeof x!="number"||x<0||o(x))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+x+".");a=x}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(x){if(typeof x!="number"||x<0||o(x))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+x+".");return this._maxListeners=x,this};function c(x){return x._maxListeners===void 0?i.defaultMaxListeners:x._maxListeners}i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(x){for(var E=[],O=1;O<arguments.length;O++)E.push(arguments[O]);var S=x==="error",R=this._events;if(R!==void 0)S=S&&R.error===void 0;else if(!S)return!1;if(S){var D;if(E.length>0&&(D=E[0]),D instanceof Error)throw D;var P=new Error("Unhandled error."+(D?" ("+D.message+")":""));throw P.context=D,P}var I=R[x];if(I===void 0)return!1;if(typeof I=="function")t(I,this,E);else for(var j=I.length,W=b(I,j),O=0;O<j;++O)t(W[O],this,E);return!0};function l(x,E,O,S){var R,D,P;if(s(O),D=x._events,D===void 0?(D=x._events=Object.create(null),x._eventsCount=0):(D.newListener!==void 0&&(x.emit("newListener",E,O.listener?O.listener:O),D=x._events),P=D[E]),P===void 0)P=D[E]=O,++x._eventsCount;else if(typeof P=="function"?P=D[E]=S?[O,P]:[P,O]:S?P.unshift(O):P.push(O),R=c(x),R>0&&P.length>R&&!P.warned){P.warned=!0;var I=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");I.name="MaxListenersExceededWarning",I.emitter=x,I.type=E,I.count=P.length,r(I)}return x}i.prototype.addListener=function(x,E){return l(this,x,E,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(x,E){return l(this,x,E,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(x,E,O){var S={fired:!1,wrapFn:void 0,target:x,type:E,listener:O},R=d.bind(S);return R.listener=O,S.wrapFn=R,R}i.prototype.once=function(x,E){return s(E),this.on(x,p(this,x,E)),this},i.prototype.prependOnceListener=function(x,E){return s(E),this.prependListener(x,p(this,x,E)),this},i.prototype.removeListener=function(x,E){var O,S,R,D,P;if(s(E),S=this._events,S===void 0)return this;if(O=S[x],O===void 0)return this;if(O===E||O.listener===E)--this._eventsCount===0?this._events=Object.create(null):(delete S[x],S.removeListener&&this.emit("removeListener",x,O.listener||E));else if(typeof O!="function"){for(R=-1,D=O.length-1;D>=0;D--)if(O[D]===E||O[D].listener===E){P=O[D].listener,R=D;break}if(R<0)return this;R===0?O.shift():_(O,R),O.length===1&&(S[x]=O[0]),S.removeListener!==void 0&&this.emit("removeListener",x,P||E)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(x){var E,O,S;if(O=this._events,O===void 0)return this;if(O.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):O[x]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete O[x]),this;if(arguments.length===0){var R=Object.keys(O),D;for(S=0;S<R.length;++S)D=R[S],D!=="removeListener"&&this.removeAllListeners(D);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(E=O[x],typeof E=="function")this.removeListener(x,E);else if(E!==void 0)for(S=E.length-1;S>=0;S--)this.removeListener(x,E[S]);return this};function f(x,E,O){var S=x._events;if(S===void 0)return[];var R=S[E];return R===void 0?[]:typeof R=="function"?O?[R.listener||R]:[R]:O?y(R):b(R,R.length)}i.prototype.listeners=function(x){return f(this,x,!0)},i.prototype.rawListeners=function(x){return f(this,x,!1)},i.listenerCount=function(x,E){return typeof x.listenerCount=="function"?x.listenerCount(E):v.call(x,E)},i.prototype.listenerCount=v;function v(x){var E=this._events;if(E!==void 0){var O=E[x];if(typeof O=="function")return 1;if(O!==void 0)return O.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function b(x,E){for(var O=new Array(E),S=0;S<E;++S)O[S]=x[S];return O}function _(x,E){for(;E+1<x.length;E++)x[E]=x[E+1];x.pop()}function y(x){for(var E=new Array(x.length),O=0;O<E.length;++O)E[O]=x[O].listener||x[O];return E}function C(x,E){return new Promise(function(O,S){function R(P){x.removeListener(E,D),S(P)}function D(){typeof x.removeListener=="function"&&x.removeListener("error",R),O([].slice.call(arguments))}T(x,E,D,{once:!0}),E!=="error"&&k(x,R,{once:!0})})}function k(x,E,O){typeof x.on=="function"&&T(x,"error",E,O)}function T(x,E,O,S){if(typeof x.on=="function")S.once?x.once(E,O):x.on(E,O);else if(typeof x.addEventListener=="function")x.addEventListener(E,function R(D){S.once&&x.removeEventListener(E,R),O(D)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof x)}return cu}var Y8=q8();const Wu=Oo(Y8);var ml={},WS;function V8(){if(WS)return ml;WS=1;var e=mr;if(process.env.NODE_ENV==="production")ml.createRoot=e.createRoot,ml.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ml.createRoot=function(n,r){t.usingClientEntryPoint=!0;try{return e.createRoot(n,r)}finally{t.usingClientEntryPoint=!1}},ml.hydrateRoot=function(n,r,o){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(n,r,o)}finally{t.usingClientEntryPoint=!1}}}return ml}var G8=V8();const Q8=Oo(G8);var Dm,US;function J8(){if(US)return Dm;US=1;function e(){this.__data__=[],this.size=0}return Dm=e,Dm}var Mm,qS;function Y1(){if(qS)return Mm;qS=1;function e(t,n){return t===n||t!==t&&n!==n}return Mm=e,Mm}var Pm,YS;function af(){if(YS)return Pm;YS=1;var e=Y1();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return Pm=t,Pm}var Im,VS;function Z8(){if(VS)return Im;VS=1;var e=af(),t=Array.prototype,n=t.splice;function r(o){var i=this.__data__,a=e(i,o);if(a<0)return!1;var s=i.length-1;return a==s?i.pop():n.call(i,a,1),--this.size,!0}return Im=r,Im}var Nm,GS;function K8(){if(GS)return Nm;GS=1;var e=af();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return Nm=t,Nm}var Lm,QS;function X8(){if(QS)return Lm;QS=1;var e=af();function t(n){return e(this.__data__,n)>-1}return Lm=t,Lm}var jm,JS;function ez(){if(JS)return jm;JS=1;var e=af();function t(n,r){var o=this.__data__,i=e(o,n);return i<0?(++this.size,o.push([n,r])):o[i][1]=r,this}return jm=t,jm}var Fm,ZS;function sf(){if(ZS)return Fm;ZS=1;var e=J8(),t=Z8(),n=K8(),r=X8(),o=ez();function i(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var l=a[s];this.set(l[0],l[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Fm=i,Fm}var Bm,KS;function tz(){if(KS)return Bm;KS=1;var e=sf();function t(){this.__data__=new e,this.size=0}return Bm=t,Bm}var Hm,XS;function nz(){if(XS)return Hm;XS=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Hm=e,Hm}var $m,ek;function rz(){if(ek)return $m;ek=1;function e(t){return this.__data__.get(t)}return $m=e,$m}var zm,tk;function oz(){if(tk)return zm;tk=1;function e(t){return this.__data__.has(t)}return zm=e,zm}var Wm,nk;function IP(){if(nk)return Wm;nk=1;var e=typeof ys=="object"&&ys&&ys.Object===Object&&ys;return Wm=e,Wm}var Um,rk;function Zo(){if(rk)return Um;rk=1;var e=IP(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Um=n,Um}var qm,ok;function Uu(){if(ok)return qm;ok=1;var e=Zo(),t=e.Symbol;return qm=t,qm}var Ym,ik;function iz(){if(ik)return Ym;ik=1;var e=Uu(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function i(a){var s=n.call(a,o),c=a[o];try{a[o]=void 0;var l=!0}catch(p){}var d=r.call(a);return l&&(s?a[o]=c:delete a[o]),d}return Ym=i,Ym}var Vm,ak;function az(){if(ak)return Vm;ak=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Vm=n,Vm}var Gm,sk;function qu(){if(sk)return Gm;sk=1;var e=Uu(),t=iz(),n=az(),r="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?o:r:i&&i in Object(s)?t(s):n(s)}return Gm=a,Gm}var Qm,lk;function Ba(){if(lk)return Qm;lk=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Qm=e,Qm}var Jm,ck;function NP(){if(ck)return Jm;ck=1;var e=qu(),t=Ba(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function a(s){if(!t(s))return!1;var c=e(s);return c==r||c==o||c==n||c==i}return Jm=a,Jm}var Zm,uk;function sz(){if(uk)return Zm;uk=1;var e=Zo(),t=e["__core-js_shared__"];return Zm=t,Zm}var Km,dk;function lz(){if(dk)return Km;dk=1;var e=sz(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return Km=n,Km}var Xm,pk;function LP(){if(pk)return Xm;pk=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch(o){}try{return r+""}catch(o){}}return""}return Xm=n,Xm}var ev,hk;function cz(){if(hk)return ev;hk=1;var e=NP(),t=lz(),n=Ba(),r=LP(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,d=RegExp("^"+c.call(l).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(f){if(!n(f)||t(f))return!1;var v=e(f)?d:i;return v.test(r(f))}return ev=p,ev}var tv,fk;function uz(){if(fk)return tv;fk=1;function e(t,n){return t==null?void 0:t[n]}return tv=e,tv}var nv,gk;function js(){if(gk)return nv;gk=1;var e=cz(),t=uz();function n(r,o){var i=t(r,o);return e(i)?i:void 0}return nv=n,nv}var rv,mk;function V1(){if(mk)return rv;mk=1;var e=js(),t=Zo(),n=e(t,"Map");return rv=n,rv}var ov,vk;function lf(){if(vk)return ov;vk=1;var e=js(),t=e(Object,"create");return ov=t,ov}var iv,bk;function dz(){if(bk)return iv;bk=1;var e=lf();function t(){this.__data__=e?e(null):{},this.size=0}return iv=t,iv}var av,yk;function pz(){if(yk)return av;yk=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return av=e,av}var sv,wk;function hz(){if(wk)return sv;wk=1;var e=lf(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(i){var a=this.__data__;if(e){var s=a[i];return s===t?void 0:s}return r.call(a,i)?a[i]:void 0}return sv=o,sv}var lv,_k;function fz(){if(_k)return lv;_k=1;var e=lf(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var i=this.__data__;return e?i[o]!==void 0:n.call(i,o)}return lv=r,lv}var cv,xk;function gz(){if(xk)return cv;xk=1;var e=lf(),t="__lodash_hash_undefined__";function n(r,o){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=e&&o===void 0?t:o,this}return cv=n,cv}var uv,Ck;function mz(){if(Ck)return uv;Ck=1;var e=dz(),t=pz(),n=hz(),r=fz(),o=gz();function i(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var l=a[s];this.set(l[0],l[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,uv=i,uv}var dv,Sk;function vz(){if(Sk)return dv;Sk=1;var e=mz(),t=sf(),n=V1();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return dv=r,dv}var pv,kk;function bz(){if(kk)return pv;kk=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return pv=e,pv}var hv,Tk;function cf(){if(Tk)return hv;Tk=1;var e=bz();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return hv=t,hv}var fv,Ek;function yz(){if(Ek)return fv;Ek=1;var e=cf();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return fv=t,fv}var gv,Ak;function wz(){if(Ak)return gv;Ak=1;var e=cf();function t(n){return e(this,n).get(n)}return gv=t,gv}var mv,Ok;function _z(){if(Ok)return mv;Ok=1;var e=cf();function t(n){return e(this,n).has(n)}return mv=t,mv}var vv,Rk;function xz(){if(Rk)return vv;Rk=1;var e=cf();function t(n,r){var o=e(this,n),i=o.size;return o.set(n,r),this.size+=o.size==i?0:1,this}return vv=t,vv}var bv,Dk;function G1(){if(Dk)return bv;Dk=1;var e=vz(),t=yz(),n=wz(),r=_z(),o=xz();function i(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var l=a[s];this.set(l[0],l[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,bv=i,bv}var yv,Mk;function Cz(){if(Mk)return yv;Mk=1;var e=sf(),t=V1(),n=G1(),r=200;function o(i,a){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<r-1)return c.push([i,a]),this.size=++s.size,this;s=this.__data__=new n(c)}return s.set(i,a),this.size=s.size,this}return yv=o,yv}var wv,Pk;function Q1(){if(Pk)return wv;Pk=1;var e=sf(),t=tz(),n=nz(),r=rz(),o=oz(),i=Cz();function a(s){var c=this.__data__=new e(s);this.size=c.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=o,a.prototype.set=i,wv=a,wv}var _v,Ik;function Sz(){if(Ik)return _v;Ik=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return _v=t,_v}var xv,Nk;function kz(){if(Nk)return xv;Nk=1;function e(t){return this.__data__.has(t)}return xv=e,xv}var Cv,Lk;function Tz(){if(Lk)return Cv;Lk=1;var e=G1(),t=Sz(),n=kz();function r(o){var i=-1,a=o==null?0:o.length;for(this.__data__=new e;++i<a;)this.add(o[i])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Cv=r,Cv}var Sv,jk;function Ez(){if(jk)return Sv;jk=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return Sv=e,Sv}var kv,Fk;function Az(){if(Fk)return kv;Fk=1;function e(t,n){return t.has(n)}return kv=e,kv}var Tv,Bk;function jP(){if(Bk)return Tv;Bk=1;var e=Tz(),t=Ez(),n=Az(),r=1,o=2;function i(a,s,c,l,d,p){var f=c&r,v=a.length,b=s.length;if(v!=b&&!(f&&b>v))return!1;var _=p.get(a),y=p.get(s);if(_&&y)return _==s&&y==a;var C=-1,k=!0,T=c&o?new e:void 0;for(p.set(a,s),p.set(s,a);++C<v;){var x=a[C],E=s[C];if(l)var O=f?l(E,x,C,s,a,p):l(x,E,C,a,s,p);if(O!==void 0){if(O)continue;k=!1;break}if(T){if(!t(s,function(S,R){if(!n(T,R)&&(x===S||d(x,S,c,l,p)))return T.push(R)})){k=!1;break}}else if(!(x===E||d(x,E,c,l,p))){k=!1;break}}return p.delete(a),p.delete(s),k}return Tv=i,Tv}var Ev,Hk;function FP(){if(Hk)return Ev;Hk=1;var e=Zo(),t=e.Uint8Array;return Ev=t,Ev}var Av,$k;function Oz(){if($k)return Av;$k=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,i){r[++n]=[i,o]}),r}return Av=e,Av}var Ov,zk;function Rz(){if(zk)return Ov;zk=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return Ov=e,Ov}var Rv,Wk;function Dz(){if(Wk)return Rv;Wk=1;var e=Uu(),t=FP(),n=Y1(),r=jP(),o=Oz(),i=Rz(),a=1,s=2,c="[object Boolean]",l="[object Date]",d="[object Error]",p="[object Map]",f="[object Number]",v="[object RegExp]",b="[object Set]",_="[object String]",y="[object Symbol]",C="[object ArrayBuffer]",k="[object DataView]",T=e?e.prototype:void 0,x=T?T.valueOf:void 0;function E(O,S,R,D,P,I,j){switch(R){case k:if(O.byteLength!=S.byteLength||O.byteOffset!=S.byteOffset)return!1;O=O.buffer,S=S.buffer;case C:return!(O.byteLength!=S.byteLength||!I(new t(O),new t(S)));case c:case l:case f:return n(+O,+S);case d:return O.name==S.name&&O.message==S.message;case v:case _:return O==S+"";case p:var W=o;case b:var F=D&a;if(W||(W=i),O.size!=S.size&&!F)return!1;var H=j.get(O);if(H)return H==S;D|=s,j.set(O,S);var $=r(W(O),W(S),D,P,I,j);return j.delete(O),$;case y:if(x)return x.call(O)==x.call(S)}return!1}return Rv=E,Rv}var Dv,Uk;function BP(){if(Uk)return Dv;Uk=1;function e(t,n){for(var r=-1,o=n.length,i=t.length;++r<o;)t[i+r]=n[r];return t}return Dv=e,Dv}var Mv,qk;function Ki(){if(qk)return Mv;qk=1;var e=Array.isArray;return Mv=e,Mv}var Pv,Yk;function HP(){if(Yk)return Pv;Yk=1;var e=BP(),t=Ki();function n(r,o,i){var a=o(r);return t(r)?a:e(a,i(r))}return Pv=n,Pv}var Iv,Vk;function Mz(){if(Vk)return Iv;Vk=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,i=0,a=[];++r<o;){var s=t[r];n(s,r,t)&&(a[i++]=s)}return a}return Iv=e,Iv}var Nv,Gk;function $P(){if(Gk)return Nv;Gk=1;function e(){return[]}return Nv=e,Nv}var Lv,Qk;function J1(){if(Qk)return Lv;Qk=1;var e=Mz(),t=$P(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,i=o?function(a){return a==null?[]:(a=Object(a),e(o(a),function(s){return r.call(a,s)}))}:t;return Lv=i,Lv}var jv,Jk;function Pz(){if(Jk)return jv;Jk=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return jv=e,jv}var Fv,Zk;function Fs(){if(Zk)return Fv;Zk=1;function e(t){return t!=null&&typeof t=="object"}return Fv=e,Fv}var Bv,Kk;function Iz(){if(Kk)return Bv;Kk=1;var e=qu(),t=Fs(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return Bv=r,Bv}var Hv,Xk;function zP(){if(Xk)return Hv;Xk=1;var e=Iz(),t=Fs(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(a){return t(a)&&r.call(a,"callee")&&!o.call(a,"callee")};return Hv=i,Hv}var Up={},Nz={get exports(){return Up},set exports(e){Up=e}},$v,eT;function Lz(){if(eT)return $v;eT=1;function e(){return!1}return $v=e,$v}var tT;function Z1(){return tT||(tT=1,function(e,t){var n=Zo(),r=Lz(),o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?n.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||r;e.exports=l}(Nz,Up)),Up}var zv,nT;function WP(){if(nT)return zv;nT=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,o){var i=typeof r;return o=o==null?e:o,!!o&&(i=="number"||i!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<o}return zv=n,zv}var Wv,rT;function K1(){if(rT)return Wv;rT=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Wv=t,Wv}var Uv,oT;function jz(){if(oT)return Uv;oT=1;var e=qu(),t=K1(),n=Fs(),r="[object Arguments]",o="[object Array]",i="[object Boolean]",a="[object Date]",s="[object Error]",c="[object Function]",l="[object Map]",d="[object Number]",p="[object Object]",f="[object RegExp]",v="[object Set]",b="[object String]",_="[object WeakMap]",y="[object ArrayBuffer]",C="[object DataView]",k="[object Float32Array]",T="[object Float64Array]",x="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",S="[object Uint8Array]",R="[object Uint8ClampedArray]",D="[object Uint16Array]",P="[object Uint32Array]",I={};I[k]=I[T]=I[x]=I[E]=I[O]=I[S]=I[R]=I[D]=I[P]=!0,I[r]=I[o]=I[y]=I[i]=I[C]=I[a]=I[s]=I[c]=I[l]=I[d]=I[p]=I[f]=I[v]=I[b]=I[_]=!1;function j(W){return n(W)&&t(W.length)&&!!I[e(W)]}return Uv=j,Uv}var qv,iT;function X1(){if(iT)return qv;iT=1;function e(t){return function(n){return t(n)}}return qv=e,qv}var qp={},Fz={get exports(){return qp},set exports(e){qp=e}},aT;function e_(){return aT||(aT=1,function(e,t){var n=IP(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var c=o&&o.require&&o.require("util").types;return c||a&&a.binding&&a.binding("util")}catch(l){}}();e.exports=s}(Fz,qp)),qp}var Yv,sT;function UP(){if(sT)return Yv;sT=1;var e=jz(),t=X1(),n=e_(),r=n&&n.isTypedArray,o=r?t(r):e;return Yv=o,Yv}var Vv,lT;function qP(){if(lT)return Vv;lT=1;var e=Pz(),t=zP(),n=Ki(),r=Z1(),o=WP(),i=UP(),a=Object.prototype,s=a.hasOwnProperty;function c(l,d){var p=n(l),f=!p&&t(l),v=!p&&!f&&r(l),b=!p&&!f&&!v&&i(l),_=p||f||v||b,y=_?e(l.length,String):[],C=y.length;for(var k in l)(d||s.call(l,k))&&!(_&&(k=="length"||v&&(k=="offset"||k=="parent")||b&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||o(k,C)))&&y.push(k);return y}return Vv=c,Vv}var Gv,cT;function t_(){if(cT)return Gv;cT=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return Gv=t,Gv}var Qv,uT;function YP(){if(uT)return Qv;uT=1;function e(t,n){return function(r){return t(n(r))}}return Qv=e,Qv}var Jv,dT;function Bz(){if(dT)return Jv;dT=1;var e=YP(),t=e(Object.keys,Object);return Jv=t,Jv}var Zv,pT;function Hz(){if(pT)return Zv;pT=1;var e=t_(),t=Bz(),n=Object.prototype,r=n.hasOwnProperty;function o(i){if(!e(i))return t(i);var a=[];for(var s in Object(i))r.call(i,s)&&s!="constructor"&&a.push(s);return a}return Zv=o,Zv}var Kv,hT;function VP(){if(hT)return Kv;hT=1;var e=NP(),t=K1();function n(r){return r!=null&&t(r.length)&&!e(r)}return Kv=n,Kv}var Xv,fT;function Yu(){if(fT)return Xv;fT=1;var e=qP(),t=Hz(),n=VP();function r(o){return n(o)?e(o):t(o)}return Xv=r,Xv}var eb,gT;function GP(){if(gT)return eb;gT=1;var e=HP(),t=J1(),n=Yu();function r(o){return e(o,n,t)}return eb=r,eb}var tb,mT;function $z(){if(mT)return tb;mT=1;var e=GP(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(i,a,s,c,l,d){var p=s&t,f=e(i),v=f.length,b=e(a),_=b.length;if(v!=_&&!p)return!1;for(var y=v;y--;){var C=f[y];if(!(p?C in a:r.call(a,C)))return!1}var k=d.get(i),T=d.get(a);if(k&&T)return k==a&&T==i;var x=!0;d.set(i,a),d.set(a,i);for(var E=p;++y<v;){C=f[y];var O=i[C],S=a[C];if(c)var R=p?c(S,O,C,a,i,d):c(O,S,C,i,a,d);if(!(R===void 0?O===S||l(O,S,s,c,d):R)){x=!1;break}E||(E=C=="constructor")}if(x&&!E){var D=i.constructor,P=a.constructor;D!=P&&"constructor"in i&&"constructor"in a&&!(typeof D=="function"&&D instanceof D&&typeof P=="function"&&P instanceof P)&&(x=!1)}return d.delete(i),d.delete(a),x}return tb=o,tb}var nb,vT;function zz(){if(vT)return nb;vT=1;var e=js(),t=Zo(),n=e(t,"DataView");return nb=n,nb}var rb,bT;function Wz(){if(bT)return rb;bT=1;var e=js(),t=Zo(),n=e(t,"Promise");return rb=n,rb}var ob,yT;function Uz(){if(yT)return ob;yT=1;var e=js(),t=Zo(),n=e(t,"Set");return ob=n,ob}var ib,wT;function qz(){if(wT)return ib;wT=1;var e=js(),t=Zo(),n=e(t,"WeakMap");return ib=n,ib}var ab,_T;function uf(){if(_T)return ab;_T=1;var e=zz(),t=V1(),n=Wz(),r=Uz(),o=qz(),i=qu(),a=LP(),s="[object Map]",c="[object Object]",l="[object Promise]",d="[object Set]",p="[object WeakMap]",f="[object DataView]",v=a(e),b=a(t),_=a(n),y=a(r),C=a(o),k=i;return(e&&k(new e(new ArrayBuffer(1)))!=f||t&&k(new t)!=s||n&&k(n.resolve())!=l||r&&k(new r)!=d||o&&k(new o)!=p)&&(k=function(T){var x=i(T),E=x==c?T.constructor:void 0,O=E?a(E):"";if(O)switch(O){case v:return f;case b:return s;case _:return l;case y:return d;case C:return p}return x}),ab=k,ab}var sb,xT;function Yz(){if(xT)return sb;xT=1;var e=Q1(),t=jP(),n=Dz(),r=$z(),o=uf(),i=Ki(),a=Z1(),s=UP(),c=1,l="[object Arguments]",d="[object Array]",p="[object Object]",f=Object.prototype,v=f.hasOwnProperty;function b(_,y,C,k,T,x){var E=i(_),O=i(y),S=E?d:o(_),R=O?d:o(y);S=S==l?p:S,R=R==l?p:R;var D=S==p,P=R==p,I=S==R;if(I&&a(_)){if(!a(y))return!1;E=!0,D=!1}if(I&&!D)return x||(x=new e),E||s(_)?t(_,y,C,k,T,x):n(_,y,S,C,k,T,x);if(!(C&c)){var j=D&&v.call(_,"__wrapped__"),W=P&&v.call(y,"__wrapped__");if(j||W){var F=j?_.value():_,H=W?y.value():y;return x||(x=new e),T(F,H,C,k,x)}}return I?(x||(x=new e),r(_,y,C,k,T,x)):!1}return sb=b,sb}var lb,CT;function n_(){if(CT)return lb;CT=1;var e=Yz(),t=Fs();function n(r,o,i,a,s){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,i,a,n,s)}return lb=n,lb}var cb,ST;function Vz(){if(ST)return cb;ST=1;var e=n_();function t(n,r){return e(n,r)}return cb=t,cb}var Gz=Vz();const tw=Oo(Gz),tt={HEADERS:"headers",METADATA:"metadata",DATA:"data",GRAND:"grand",FINISH:"finish",ERROR:"error",TOTAL_ROWS:"totalRows",DATA_FINISH:"dataFinish",DATABARS:"dataBars",RANGE_MIN_MAX:"rangeMinMax"},Qz=[tt.ERROR,tt.HEADERS,tt.GRAND,tt.METADATA,tt.DATA,tt.DATA_FINISH,tt.TOTAL_ROWS,tt.DATABARS,tt.RANGE_MIN_MAX,tt.FINISH],Ze={ROWS:"rows",COLUMNS:"columns",MEASURES:"measures",SCOPE:"scope"},yn={ASC:"asc",DESC:"desc"},Lt={SUB_TOTAL:"subTotal",GRAND_TOTAL:"grandTotal",MEASURE_TOP:"measureTop",MEASURE_BOTTOM:"measureBottom",CORNER:"corner"},kT={COLOR:"color",CONDITION:"condition"},Ui={DATETIME:"datetime",TEXT:"text",NUMERIC:"numeric"},vl={MEMBER:"member",VALUE:"value",SUB_TOTAL:"subtotal",GRAND_TOTAL:"grandtotal"},Ea={MEMBER:"member",INDEX:"index",TITLE:"title",NAME:"name",AGG:"agg",DIM:"dim"};class Jz{constructor(t,n,r,o){q(this,"rowIndex"),q(this,"colIndex"),q(this,"node"),q(this,"parent"),q(this,"childColCells",[]),q(this,"childRowCells",[]),q(this,"indexInParent",-1),q(this,"siblingCount",0),this.rowIndex=t,this.colIndex=n,this.node=r,this.parent=o}isChild(){return!this.node}hasChildren(){return!!(this.childColCells.length||this.childRowCells.length)}hasColCell(){return this.childColCells.length>0}addColCell(t){this.childColCells.push(t)}getColCell(){return this.childColCells||[]}hasRowCell(){return this.childRowCells.length>0}addRowCell(t){this.childRowCells.push(t)}getRowCell(){return this.childRowCells||[]}getStopRowIndex(){return this.hasRowCell()?this.rowIndex+this.getRowCell().length:this.rowIndex}getStopColIndex(){return this.hasColCell()?this.colIndex+this.getColCell().length:this.colIndex}setIndexInParent(t,n){this.indexInParent=t,this.siblingCount=n}getIndexInParent(){return{indexInParent:this.indexInParent,siblingCount:this.siblingCount}}getParenPosition(){if(!this.parent)return;const t=(this.parent||"").match(/\d+/g)||[];return[Number(t[0]),Number(t[1])]}}const Yp=["S&PManager","Cache"],Vp=["null"];let QP=class nw{constructor(t=""){q(this,"name"),q(this,"log"),q(this,"warn"),q(this,"error"),q(this,"console"),this.name=t,this.log=()=>{},this.warn=()=>{},this.error=()=>{},this.console=nw.createMockConsole(),this.createLogFn()}setName(t){this.name=t,this.createLogFn()}getName(){return this.name}createLogFn(){this.log=()=>{},this.warn=()=>{},this.error=()=>{}}isExcludedName(){return Vp.length&&!this.hasNamePartsInList(Vp)?!0:Yp.length?this.hasNamePartsInList(Yp):!1}hasNamePartsInList(t){const n=this.name.toLowerCase();return t.some(r=>n.includes(r.toLowerCase()))}static createMockConsole(){return{log:()=>{},warn:()=>{},error:()=>{}}}static createMock(){const t=nw.createMockConsole();return $e(de({setName:()=>{},getName:()=>""},t),{console:t})}};const Zz=e=>new QP(e),Kz=(e="")=>{Yp.push(e.toLowerCase())},Xz=(e="")=>{Vp.push(e.toLowerCase())},eW=()=>{Yp.length=0,Vp.length=0},Ha={Logger:QP,create:Zz,excludeLogs:Kz,includeLogs:Xz,clearIncludeExclude:eW},JP=[Date,Error,RegExp,Promise];function ZP(e,t=JP){return t.some(n=>e instanceof n)}function TT(e,t=[]){let n=!1;return t.forEach(r=>{e.includes(r)&&(n=!0)}),n}function KP(e=[],t,n){const r=[];return n&&e.forEach(o=>{r.push(`${o}.$`)}),e.length?e.forEach(o=>{r.push(`${o}.${t}`)}):r.push(t),r}function uu(e){return!(e===null||typeof e=="undefined"||typeof e!="object")}function tW(e,t){return uu(e)&&e?Array.isArray(e)?!e.length:ZP(e,t)?!1:!Object.keys(e).length:e==null}function nW(e=""){const t=e.split(".");return t.length>1?(t.pop(),t.join(".")):t[0]}function ET(e,t,n){return e.length?TT(e,n):t.length?!TT(t,n):!0}function XP(e,t=[],n=[],r=[],o={},i={},a=[],s=[]){if(!uu(e))return{commonIncludeKeys:[],commonExcludeKeys:[]};const c=a.indexOf(e);if(c!==-1)return s[c];a.push(e);const l=Object.keys(e),d=Array.isArray(e);let p=[],f=[];const v=[],b=[];if(l.forEach(_=>{const y=e[_],C=KP(r,_,d),k=r[0]||"&";o[k]=o[k]||[],i[k]=i[k]||[],C.forEach(T=>{(t||[]).includes(T)&&(o[k].push(T),p.push(T)),(t||[]).forEach(x=>{const E=nW(x);(`${E}.$`===k||E===k)&&(o[k].includes(x)||o[k].push(x),p.includes(x)||p.push(x))}),(n||[]).includes(T)&&(i[k].push(T),f.push(T))}),uu(y)&&XP(y,t,n,C,o,i,a,s)}),uu(e)){let _=r[0]||"&";Array.isArray(e)&&(_=`${_}.$`),o[_]=(o[_]||[]).concat(v),p=p.concat(v),i[_]=(i[_]||[]).concat(b),f=p.concat(b)}return s.push({commonIncludeKeys:p,commonExcludeKeys:f}),{commonIncludeKeys:p,commonExcludeKeys:f}}function eI(e,t,n=new WeakMap){const{includeKeys:r,includeKeysObj:o,excludeKeys:i,excludeKeysObj:a,parentKeys:s=[],excludeEmpty:c,referenceClone:l}=t||{};if(!uu(e)||ZP(e,l))return e;if(n.has(e))return n.get(e);const d=Object.keys(e),p=Array.isArray(e),f=p?[]:{};n.set(e,f);const v=s[0]||"&",b=(o||{})[v]||[],_=(a||{})[v]||[];return d.forEach(y=>{const C=e[y];let k=[],T=!0;if(r||i?T=ET(r||[],i||[],[y]):(o||a)&&(k=KP(s,y,p),T=ET(b,_,k)),T){const x=eI(C,$e(de({},t),{parentKeys:k}),n);(!c||!tW(x,l))&&(p?f.push(x):f[y]=x)}}),f}function Er(e,t){const n=t||{},{include:r,exclude:o}=n,i=Dn(n,["include","exclude"]);let a,s;(r||o)&&(a={},s={},XP(e,r,o,[],a,s));const c=$e(de({},i),{includeKeysObj:a,excludeKeysObj:s});return eI(e,c)}Er.REFERENCE_CLONE_TYPES=JP;const ub=e=>t=>e.replace(/{{(\w+)}}/g,(n,r)=>typeof t[r]!="undefined"?t[r]:r),tI=(e,t)=>{let n,r,o=null;const i=(...a)=>{n?o=a:(e(...a),n=!0,o=null,r=setTimeout(()=>{n=!1,o&&(e(...o),o=null)},t))};return i.cancel=()=>{clearTimeout(r),n=!1},i},nI=(e,t)=>{const n={};return Object.keys(e).forEach(r=>{e[r]!==t[r]&&(n[r]=t[r])}),Object.keys(t).forEach(r=>{typeof n[r]=="undefined"&&e[r]!==t[r]&&(n[r]=t[r])}),n};function rw(e=!0){let t={},n=null;return({callback:r,indices:o})=>{const i=Object.keys(o),a=!e||i.every(c=>{const l=o[c];return Array.isArray(l)?l.length>0:l>=0}),s=i.length!==Object.keys(t).length||i.some(c=>{const l=t[c],d=o[c];return Array.isArray(d)?l.join(",")!==d.join(","):l!==d});return t=o,a&&s&&(n=r(o)),n}}function AT(e,t,n=0){for(let r=n;r<e.length;r+=1){const o=e[r];if(t(o,r,e))return r}return-1}const _u="$*$root$*$";function rW(e,t,n,r){const o={value:e};return t&&(o.children=t),n&&(o.data=n),typeof r!="undefined"&&(o.index=r),o}function df(e){return!!(e&&e.children&&e.children.length)}function Qo(e){return e&&e.children||[]}function ow(e,t){e&&t&&Array.isArray(t)&&(e.children=t)}function oW(e,t){e&&(e.level=t)}function iW(e){return e&&typeof e.level!="undefined"?e.level||0:-1}function Ml(e){if(!e)return;if(e&&!Array.isArray(e)&&e.value===_u)return e;const t={value:_u,children:[]};return Array.isArray(e)?t.children=e:(t.children||[])[0]=e,t}function rI(e,t,n=0){let r;if(!e||!t)return r;if(t(e,n)&&(r=e),df(e)){const o=Qo(e),i=o.length;for(let a=0;a<i;a+=1){const s=rI(o[a],t,n+1);if(s){r=s;break}}}return r}function aW(e,t){if(!e&&!t)return;if(!e&&t)return Ml(t);if(e&&!t)return Ml(e);const n=Ml(e),r=Ml(t),o=n&&n.children||[],i=r&&r.children||[],a=o.concat(i);return Ml(a)}const oI=(e,t=0)=>{if(!e||!e.isPart)return;e.level=t;const n=Qo(e),r=n[n.length-1];return r&&oI(r,t+1)||e},iI=(e,t,n=0)=>{if(!e||!e.isPart)return;if(e.level=n,e&&t&&e.value===t.value&&e.level===t.level)return e;const r=Qo(e)[0];return r&&iI(r,t,n+1)||e};function sW(e,t){let n=oI(e),r=iI(t,n);n&&n.children&&Array.isArray(n.children)&&r&&r.children&&Array.isArray(r.children)&&r.children.length>0&&(n.children=n.children.concat(r.children),r.isHandled=!0);let o=!1;for(n=e,r=t;n&&n.children&&Array.isArray(n.children)&&r&&r.children&&Array.isArray(r.children)&&!r.isHandled;){const i=n.children;n=n.children[n.children.length-1];let a=0;for(r.children[0]&&!o&&(o=!Qo(r.children[0]).some(s=>s.isPart),a=1);a<r.children.length;)i.push(r.children[a]),a+=1;r=r.children[0]}return e}function aI(e,t,n){!e||!t||e.forEach(r=>{t(r,n),df(r)&&aI(Qo(r),t,r)})}function sI(e,t=[],n=0,r={maxLevel:0}){return e.forEach(o=>{r.maxLevel<n&&(r.maxLevel=n),df(o)?sI(Qo(o),t,n+1,r):t.push(o)}),t}function pf(e,t={}){if(t||(t={}),typeof t.callCount!="number"?t.callCount=1:t.callCount+=1,!e)return 0;let n=t.clearCache||!1;!Array.isArray(e)&&e.value===_u&&(n=!0);let r=1,o=[];return Array.isArray(e)?(r=0,o=e):e.children&&(o=Qo(e)),o&&o.length&&(!n&&!Array.isArray(e)&&typeof e.childCount=="number"?r=e.childCount:(r=0,o.forEach(i=>{r+=pf(i,t)}),Array.isArray(e)||(e.childCount=r))),r}function lI(e,t={}){if(t||(t={}),typeof t.callCount!="number"?t.callCount=1:t.callCount+=1,!e)return 0;let n=t.clearCache||!1;!Array.isArray(e)&&e.value===_u&&(n=!0);let r=0,o=[];if(e&&!Array.isArray(e)&&typeof e.value!="undefined"&&(r=1),Array.isArray(e)?(r=0,o=e):e.children&&(o=Qo(e)),o&&o.length)if(!n&&!Array.isArray(e)&&typeof e.childDeep=="number")r+=e.childDeep;else{let i=0;o.forEach(a=>{const s=lI(a,t);s>i&&(i=s)}),r+=i,Array.isArray(e)||(e.childDeep=i)}return r}function cI(e=[],t=0,n){const r=[];let o=0,i=-1,a=-1;const s=e.length;if(typeof t=="number"&&typeof n=="number"&&t>n)throw new Error('Wrong "getNodesByChildCount" diapason');if(typeof t=="number"&&t<0)throw new Error('Wrong "from" index for "getNodesByChildCount"');for(let c=0;c<s;c+=1){const l=e[c],d=pf(l);if(o+d>t&&(i<0&&(i=o),r.push(l),typeof n=="number"&&o+d>=n)){a=o+d;break}a=o+d,o+=d}return{nodes:r,start:i,stop:a}}function lW(e){e.isMapped!==void 0&&(e.isMapped=void 0),e.minLevel!==void 0&&(e.minLevel=void 0),e.childCount!==void 0&&(e.childCount=void 0),e.childDeep!==void 0&&(e.childDeep=void 0)}function iw(e=[],t=0,n,r){const{cloneFn:o=Er}=r||{},i=[],{nodes:a,start:s,stop:c}=cI(e,t,n),l=a.length;let d,p,f=!0;if(s<t){const v=a[0]||{},b=t-s;let _;l===1&&typeof n=="number"&&(_=n-s,f=!1),d=o(v,!0);const y=iw(Qo(v),b,_,r);ow(d,y)}if(typeof n=="number"&&c>n&&f){const v=a[l-1]||{},b=0,_=pf(v)-(c-n);p=o(v,!0);const y=iw(Qo(v),b,_,r);ow(p,y)}return a.forEach((v,b)=>{if(d&&b===0)i.push(d);else if(p&&b===l-1)i.push(p);else{const _=o(v);i.push(_)}}),i}const Ne={ROOT:_u,create:rW,hasChildren:df,getChildren:Qo,setChildren:ow,setLevel:oW,getLevel:iW,getLastLevelNodes:sI,iterateThroughTree:aI,wrapInRootNode:Ml,findNode:rI,merge:aW,deepMerge:sW,getChildLength:pf,getDeepLength:lI,getNodesByChildCount:cI,getCutNodesByChildCount:iw,clearNodeCache:lW},Vn={FIRST:"first",LAST:"last",EVEN:"even",ODD:"odd"},bl=(e,t)=>`${e}-${t}`;class cW{constructor(t,n=!1,r){q(this,"tree"),q(this,"hasGrandTotals",!1),q(this,"isVertical",!1),q(this,"deep"),q(this,"columns",[]),q(this,"lastLevel",[]),q(this,"map",{}),q(this,"metadataCache",{}),q(this,"valueNode"),q(this,"grid"),this.isVertical=n,this.deep=r,t&&(this.tree=t,this.columns=this.cacheLevels(Ne.getChildren(this.tree)))}destroy(){this.tree=void 0,this.columns=[],this.lastLevel=[],this.map={},this.metadataCache={},this.valueNode=void 0,this.grid=void 0}getMainCellWidth(t,n,r,o,i={offsetTop:-1,columnsOffset:0}){const{columnsOffset:a=0}=i,s=this.getItem(t,n),c=s&&s.hasChildren()&&s.hasColCell();let l=Number.NaN,d=!0;if(s&&c){const p=s.getColCell(),f=r({index:n+a});l=p.reduce((v,b)=>{const _=r({index:b.colIndex+a});return _||(d=!1),v+_},f),l-=o,l=Math.ceil(l)}return d?l:Number.NaN}extend(t){t&&(this.grid=void 0,this.tree=Ne.merge(this.tree,t),this.columns=this.cacheLevels(Ne.getChildren(t),this.columns))}getGrid(){if(this.grid)return this.grid;let t=this.getTreeDeepsLength(),n=this.getTreeChildLength();return this.isVertical?([t,n]=[n,t],this.map=this.fillMapVertical(Ne.getChildren(this.tree),n,this.map)):this.map=this.fillMap(Ne.getChildren(this.tree),t,this.map),this.grid=Array.from(Array(t)).map((r,o)=>Array.from(Array(n)).map((i,a)=>{const s=bl(o,a),c=this.map[s];if(!c)throw new Error(`Key "${s}" does not found in TreeService`);return c.node?c.node:c.parent})),this.grid}getPartialGrid(t,n){if(!this.isVertical)throw new Error('"getPartialGrid" can only be used for "vertical" tree');const r=this.getTreeDeepsLength(),o=Ne.getChildren(this.tree),{nodes:i,start:a,stop:s}=Ne.getNodesByChildCount(o,t,n);this.fillMapVertical(i,r,this.map,{parentRowIndex:a,parentColIndex:0,prevChildren:0,parentKey:""});const c=Math.max(a,t),l=Math.min(s,n),d=Math.max(0,l-t);return Array.from(Array(d)).map((p,f)=>Array.from(Array(r)).map((v,b)=>{const _=c+f,y=bl(_,b),C=this.map[y];if(!C)throw new Error(`Key "${y}" does not found in TreeService`);return C.node?C.node:C.parent||""}))}getPartialTree(t,n,r){const o=Ne.getChildren(this.tree);return Ne.getCutNodesByChildCount(o,t,n,r)}getTreeNode(t,n){const r=this.getItem(t,n);if(r&&r.node)return r.node}isChildren(t,n){const r=this.getItem(t,n);if(r)return r.isChild();if(typeof this.deep=="number"&&(this.isVertical?n:t)<this.deep)return!0;throw new Error(`Item "${t}-${n}" does not found in TreeService`)}hasChildren(t,n){const r=this.getItem(t,n);if(r)return r.hasChildren();throw new Error(`Item "${t}-${n}" does not found in TreeService`)}getMainCellSpans(t,n){const r={},o=this.getItem(t,n);return o&&o.hasColCell()&&(r.colSpan=o.getColCell().length+1),o&&o.hasRowCell()&&(r.rowSpan=o.getRowCell().length+1),r}alignStartIndex(t,n=!1){let r=0,o=t;if(n&&(r=t,o=0),this.isVertical===n){let i=this.getItem(r,o);if(i&&i.isChild()&&(i=this.getItemByKey(i.parent||"")),i)return n?i.rowIndex:i.colIndex}return t}alignStopIndex(t,n=!1){let r=0,o=t;if(n&&(r=t,o=0),this.isVertical===n){let i=this.getItem(r,o);if(i&&i.isChild()&&(i=this.getItemByKey(i.parent||"")),i)return n?i.getStopRowIndex():i.getStopColIndex()}return t}getTreeChildLength(t=Ne.getChildren(this.tree),n){return Ne.getChildLength(t,n)}getTreeDeepsLength(t=Ne.getChildren(this.tree),n){return typeof this.deep!="undefined"&&this.deep!==void 0?this.deep:Ne.getDeepLength(t,n)}getLastLevelNodes(){return this.lastLevel}extractData(t){if(!t)return[];const n=t.getLastLevelNodes().map(r=>r.index);return this.getLastLevelNodes().map(r=>typeof r.data=="undefined"?[r.data]:n?n.map(o=>{let i;return typeof o!="undefined"&&r.data&&(i=r.data[o]),i}):r.data)}getMetadata(t,n,r){const o=this.getTreeDeepsLength();t===1/0&&(t=o&&o-1),n===1/0&&(n=o&&o-1);const i=`${t}-${n}`;if(this.metadataCache[i])return this.metadataCache[i];let a=this.getItemByKey(i);if(!a)throw new Error(`Can not find metadata info for ${i} cell`);let s=a?a.node:void 0;if(s||(a=this.getItemByKey(a.parent||"")),!a)throw new Error(`Can not find metadata info for parent ${i} cell`);s=a?a.node:void 0;const c=this.getItemByKey(`${t+1}-${n}`),l=c?c.node:void 0,d=s&&s.level||0,p=this.isVertical?a.getStopColIndex():a.getStopRowIndex();let{indexInParent:f,siblingCount:v}=a.getIndexInParent(),b=f;if(d===0&&(v=this.getTreeChildLength(),f=this.isVertical?a.rowIndex:a.colIndex,b=f+(this.isVertical?a.getRowCell().length:a.getColCell().length)),r){const k=r.to-r.from;v<=k&&b>k-1&&(b=k-1)}const _={levels:[],siblings:[],root:void 0,parent:void 0,valueNode:this.valueNode,nextNode:l},{indexDivergence:y}=s||{};if(typeof y=="number"){const k=y===0?Vn.EVEN:Vn.ODD;_.siblings.push(k)}if(d===0&&_.levels.push(Vn.FIRST),p===o-1&&_.levels.push(Vn.LAST),f===0&&_.siblings.push(Vn.FIRST),b===v-1&&_.siblings.push(Vn.LAST),s&&d!==0){const k=this.isVertical?t:0,T=this.isVertical?0:n;_.root=this.getMetadata(k,T,r)}const C=this.getItemByKey(a.parent||"");if(C&&d!==0&&(_.parent=this.getMetadata(C.rowIndex,C.colIndex,r)),r){const k=this.isVertical?a.rowIndex:a.colIndex,T=this.isVertical?a.getStopRowIndex():a.getStopColIndex();let x;C&&(x=this.isVertical?C.getStopRowIndex():C.getStopColIndex()),x!==void 0&&x>=r.to-r.from&&T>=r.to-r.from-1&&!_.siblings.includes(Vn.LAST)&&_.siblings.push(Vn.LAST),k===0&&!_.siblings.includes(Vn.FIRST)&&_.siblings.push(Vn.FIRST)}return this.metadataCache[i]=_,_}setValueNode(t){typeof t=="object"&&(this.valueNode=t)}cacheLevels(t,n=[],r={level:0}){const{level:o}=r;return t.forEach(i=>{if(n[o]||(n[o]=[]),Ne.setLevel(i,o),n[o].push(i),Ne.hasChildren(i)){const a=o+1;this.cacheLevels(Ne.getChildren(i),n,{level:a})}else this.lastLevel.push(i)}),n}fillMap(t,n,r={},o){const i=o||{parentRowIndex:0,parentColIndex:0,prevChildren:0,parentKey:""},a=t.length;return t.forEach((s,c)=>{const{parentRowIndex:l,parentColIndex:d,prevChildren:p,parentKey:f}=i,v=Ne.getLevel(s)+l,b=c+d+p,_=bl(v,b),y=this.createTreeCellMap({rowIndex:v,colIndex:b,node:s,parent:f});y.setIndexInParent(c,a),r[_]=y;let C=0,k=0;if(Ne.hasChildren(s)?(C=this.getTreeChildLength(s),typeof s.minLevel=="number"&&(k=s.minLevel+1-v||0)):k=(n||0)-(v||0),(C>1||k>1)&&this.fillChildMap(r,_,v,b,k,C),Ne.hasChildren(s)){const T=$e(de({},i),{parentRowIndex:k>1?k-1:0,parentColIndex:c+d,parentKey:_});this.fillMap(Ne.getChildren(s),n,r,T),C>1&&(i.prevChildren+=C-1)}}),r}fillMapVertical(t,n,r={},o){const i=o||{parentRowIndex:0,parentColIndex:0,prevChildren:0,parentKey:""},a=t.length;return t.forEach((s,c)=>{if(s.isMapped){i.parentRowIndex+=Ne.getChildLength(s)-1;return}s.isMapped=!0;const{parentRowIndex:l,prevChildren:d,parentKey:p}=i,f=Ne.getLevel(s),v=c+l+d,b=bl(v,f),_=this.createTreeCellMap({rowIndex:v,colIndex:f,node:s,parent:p});_.setIndexInParent(c,a),r[b]=_;let y=0,C=0;if(Ne.hasChildren(s)?C=this.getTreeChildLength(s):y=(n||0)-(f||0),(y>1||C>1)&&this.fillChildMap(r,b,v,f,C,y),Ne.hasChildren(s)){const k=$e(de({},i),{parentRowIndex:c+l,parentKey:b});this.fillMapVertical(Ne.getChildren(s),n,r,k),C>1&&(i.prevChildren+=C-1)}}),r}fillChildMap(t,n,r,o,i,a){const s=t[n],c=Math.max(1,i),l=Math.max(1,a);Array.from(Array(c)).forEach((d,p)=>{Array.from(Array(l)).forEach((f,v)=>{if(p===0&&v===0)return;const b=r+p,_=o+v,y=bl(b,_),C=this.createTreeCellMap({rowIndex:b,colIndex:_,parent:n});t[y]=C,!(p!==0&&v!==0)&&(v===0&&s.addRowCell(C),p===0&&s.addColCell(C))})})}createTreeCellMap({rowIndex:t,colIndex:n,node:r,parent:o}){return new Jz(t,n,r,o)}getItemByKey(t){return this.map[t]}getItem(t,n){const r=bl(t,n);return this.getItemByKey(r)}}class ds extends cW{}class Il extends Error{constructor(t="Loading canceled"){super(t),this.name="LoadingCanceledError";const n=new.target.prototype;Object.setPrototypeOf&&Object.setPrototypeOf(this,n)}}class OT{constructor(t=[],n){q(this,"divergence",0);const r=n?n.getDivergence():0,o=Ne.getLastLevelNodes(t);this.divergence=(r+o.length)%2;for(let i=0;i<o.length;i+=1)o[i].indexDivergence=(i+r)%2}getDivergence(){return this.divergence}}function hf(e=[]){const t={};return e.forEach(n=>{const{index:r=1/0}=n.field||{},o=`${r}`;t[o]=n.jaql.datatype||Ui.TEXT}),t}function aw(e,t){if(e&&t===Ui.DATETIME)try{return new Date(e).toISOString()}catch(n){return e}return e}function RT(e){if(e!==null&&!tw(e,{}))return e}function Gp(e,t,n={}){const r=RT(e),o=RT(t);let i=!1;if(typeof r=="object"&&r!==null&&typeof o=="object"&&o!==null){i=!0;const a=Object.keys(r),s=Object.keys(o);a.length!==s.length?i=!1:a.forEach(c=>{const l=n[c]||"";let d=(r||{})[c],p=(o||{})[c];if(typeof d=="undefined"||typeof p=="undefined"){i=!1;return}l===Ui.DATETIME&&(d=aw(d,l),p=aw(p,l)),d!==p&&(i=!1)})}else i=r===o;return i}function uI(e,t,n=aw){if(!e||typeof e!="object")return e;const r={};return Object.keys(e).forEach(o=>{const i=t[o],a=(e||{})[o],s=n(a,i);r[o]=s}),r}const Gi=(e,t)=>{let n=e&&e.metadata||[];return t&&(n=n.filter(r=>r.panel===t)),n.sort((r,o)=>{const i={index:1/0},a=r.field||i,s=o.field||i;return a.index-s.index}),n},Vu=(e,t,n)=>typeof t=="undefined"?void 0:Gi(e,n).filter(r=>(r.field||{index:1/0}).index===t)[0],uW=(e,t)=>{const n=e.field||{index:1/0};if(e.panel===Ze.MEASURES)return!0;if(e.panel===Ze.ROWS){const r=Gi(t,Ze.ROWS),o=(r[r.length-1]||{}).field||{index:1/0};if(r.length&&o.index===n.index)return!0;r.length||console.error("Missing rows panel in jaql!")}return!1};function dW(e,t){return!e||typeof e.field!="number"?!1:e.field!==t}const pW=(e,t=Ze.ROWS)=>{const n=Gi(e,t).map((r,o)=>{const i=Ne.create(r.jaql.title,void 0,void 0,o),a=Kn(i,t);switch(a.jaqlIndex=r.field?r.field.index:void 0,t){case Ze.ROWS:{a.measurePath=void 0;const s=dW(r.jaql.sortDetails,a.jaqlIndex);r.jaql.sort&&!s?a.dir=r.jaql.sort:a.dir=null;break}case Ze.MEASURES:a.databars=r.format?r.format.databars:!1,a.measureJaqlIndex=a.jaqlIndex,Gi(e,Ze.COLUMNS).length||(a.measurePath=void 0,r.jaql.sortDetails&&r.jaql.sortDetails.measurePath===null?a.dir=r.jaql.sortDetails.dir:a.dir=null);break}return a});return Ne.wrapInRootNode(n)},dI=e=>{(e&&e.metadata?e.metadata:[]).forEach(t=>{t&&t.jaql&&t.jaql.sort&&t.jaql.sortDetails&&t.jaql.sortDetails.sortingLastDimension&&(t.jaql.sort=null,delete t.jaql.sortDetails)})},pI=e=>{e&&e.jaql&&(e.jaql.sort=null,delete e.jaql.sortDetails)},hI=e=>{(e&&e.metadata?e.metadata:[]).forEach(t=>pI(t))},hW=e=>(e.metadata||[]).reverse().find(t=>!!t.jaql.sortDetails),fW=e=>(e.metadata||[]).find(t=>!!(t.jaql.sortDetails&&t.jaql.sortDetails.isLastApplied)),gW=e=>{const t=fW(e)||hW(e);if(!t)return;const n=t.field&&t.field.index;(e.metadata||[]).forEach(r=>{(r.field&&r.field.index)!==n&&pI(r)})},fI=(e,t)=>{e.metadata.forEach(n=>{const r=n.field&&n.field.index;if(t.field===r){n.jaql.sortDetails=n.jaql.sortDetails||t,n.jaql.sortDetails.isLastApplied=!0;return}n.jaql.sortDetails&&n.jaql.sortDetails&&delete n.jaql.sortDetails.isLastApplied})},mW=(e,t,n)=>{const{isSingleRowTree:r=!1,formatter:o}=n||{};if(!t){console.warn("jaql is undefined or null!");return}const i=Vu(t,e.field);if(i&&i.panel===Ze.COLUMNS){console.warn('Should not be sorted by "COLUMN" type panels!');return}if(!i)return;const a=uW(i,t);switch(r?hI(t):a&&dI(t),e.dir){case yn.DESC:case null:i.jaql.sort=yn.ASC;break;case yn.ASC:i.jaql.sort=yn.DESC;break;default:i.jaql.sort=void 0}const s=i.field||{index:1/0};if(i.jaql.sort){let{measurePath:c}=e;if(c){const l=Gi(t),d=hf(l);c=uI(c,d,o)}i.jaql.sortDetails={field:s.index,dir:i.jaql.sort,sortingLastDimension:a,measurePath:c,initialized:!0}}else i.jaql.sortDetails=void 0;t&&t.metadata&&s.index!==void 0&&(t.metadata[s.index]=i),fI(t,e)},vW=(e,t,n)=>{if(!e)return;const r=Vu(e,t);r&&(r.format=r.format||{},r.format.width=n)},bW=e=>{const t={};return e&&Gi(e).forEach(n=>{const r=n.field||{index:1/0};n.format&&typeof n.format.width!="undefined"&&typeof r.index!="undefined"&&(t[r.index]=n.format.width)}),t},yW=(e,t)=>{if(typeof t.measureJaqlIndex!="undefined"){const n=Gi(e),r=hf(n),o=n.filter(a=>a.panel===Ze.ROWS).find(a=>{const s=a.jaql.sortDetails;return!s||s.field!==t.measureJaqlIndex?!1:!!Gp(t.measurePath,s.measurePath,r)});if(o){t.dir=o.jaql.sort?o.jaql.sort:null;return}const i=Vu(e,t.measureJaqlIndex);if(i&&i.jaql.sortDetails){const a=i.jaql.sortDetails.measurePath,s=t.measurePath;if(Gp(a,s,r)){t.dir=i.jaql.sort||null;return}}}t.dir=null};function wW(e,t,n,r){const{isSingleRowTree:o,formatter:i}=r;o&&hI(e),e.metadata.forEach(a=>{a.jaql.sortDetails&&delete a.jaql.sortDetails.isLastApplied}),t.forEach((a,s)=>{let c;s===t.length-1?(a.selected&&dI(e),c=n.field):c=a.indexInJaql;const l=Vu(e,c);if(!l){console.warn(new Error("Panel not found"));return}a.selected&&!a.direction&&console.warn(new Error("Direction should be defined and equal to 'asc' or 'desc'"));const d=Gi(e),p=hf(d);if(!a.direction||!a.selected){const{sortDetails:f}=l.jaql;f&&n.field===f.field&&Gp(n.measurePath,f.measurePath,p)&&(delete l.jaql.sort,delete l.jaql.sortDetails)}if(a.selected&&a.direction){l.jaql.sort=a.direction;let{measurePath:f}=n;f&&(f=uI(f,p,i)),n.measurePath===void 0&&l.field&&l.panel==="rows"&&n.field!==l.field.index&&(f={}),l.jaql.sortDetails={field:n.field,dir:a.direction,sortingLastDimension:!1,measurePath:f,isLastApplied:!0,initialized:!0}}})}function _W(e,t,n,r){return e.jaql.sortDetails?!1:n?wn.isMeasurePathEqual(t.measurePath,n.measurePath,r):!1}function sw(e){const t=e&&e.dir;switch(t){case"asc":case"desc":return t;default:return null}}function xW(e,t){var n,r;const o=e.metadata.filter(b=>b.panel==="rows"),i=wn.getMetadataPanelByIndex(e,t.field),a=i.jaql.datatype,s=i.jaql.sortDetails,c=wn.getDataTypes(wn.getMetadataPanels(e)),l=[];for(let b=0;b<o.length-1;b+=1){const _=o[b],y=!!(_.jaql.sortDetails&&_.jaql.sortDetails.field===t.field&&wn.isMeasurePathEqual(t.measurePath,_.jaql.sortDetails.measurePath,c)),C=sw(_.jaql.sortDetails);l.push({title:_.jaql.title,datatype:a,selected:y,direction:C,indexInJaql:(n=_.field)==null?void 0:n.index})}const d=o[o.length-1],p=_W(d,t,s,c),f=sw(s),v={title:d.jaql.title,datatype:a,selected:p,direction:f,indexInJaql:(r=i.field)==null?void 0:r.index};return l.push(v),l}function CW(e,t,n){return e.filter(r=>r.field&&t.field===r.field.index).map(r=>{const{sortDetails:o}=r.jaql,i=!!(o&&wn.isMeasurePathEqual(t.measurePath,o.measurePath,n)),a=i?sw(o):null;return{title:r.jaql.title,datatype:r.jaql.datatype,selected:i,direction:a}})[0]}const wn={isMeasurePathEqual:Gp,getDataTypes:hf,updatePanelsSortingMetadata:mW,getMetadataTree:pW,getMetadataPanels:Gi,getMetadataPanelByIndex:Vu,setResizeWidthToJaql:vW,getResizeWidthFromJaql:bW,markSortedNode:yW,normalizeSingleBranchTreeSortDetails:gW,updateLastAppliedSortingFlag:fI,handleComplexSortingSettingsUpdate:wW,mapWidgetJaqlToSimpleSortingSettings:CW,mapWidgetJaqlToComplexSortingSettings:xW};function gI(e,t){if(!Ne.hasChildren(e))return!1;let n=!1;t===Ze.COLUMNS&&e&&e.isPart&&(n=!0);const r=Ne.getChildren(e);if(r.length>1||n)return!0;const[o]=r;return gI(o)}function SW(e){return e==null}const r_=(e,t,n,r,o)=>{const i=[];return e.forEach(a=>{if(i.push(a),Ne.hasChildren(a)){const s=Ne.getChildren(a),c=r_(s,t,n,r,o);Ne.setChildren(a,c);let l=!1;if((o||gI(a,n))&&(n===Ze.COLUMNS?typeof a.index!="undefined"&&a.index>-1&&(l=!0):n===Ze.ROWS&&typeof a.data!="undefined"&&(l=!0)),l){const{value:d,index:p,data:f,jaqlIndex:v,measurePath:b}=a;let _;if(n===Ze.COLUMNS?_=Ne.create(d,void 0,void 0,p):n===Ze.ROWS&&(_=Ne.create(d,void 0,f)),_){const y=Kn(_,n);y.userType=Lt.SUB_TOTAL,y.jaqlIndex=v,y.measurePath=b,y.master=a,i.push(y)}}}}),i},mI=(e,t)=>{e.userType===Lt.SUB_TOTAL&&e.master&&(e.measurePath=e.master.measurePath)},vI=(e,t,n,r)=>{const o=e;if(n===Ze.COLUMNS&&t){const i=Kn(t);if(typeof i.index=="number"){const a=wn.getMetadataTree(r,Ze.MEASURES);Ne.getChildren(a).forEach((s,c)=>{const l=$e(de({},s),{index:(i.index||0)+c}),d=Kn(l,n);d.userType=Lt.GRAND_TOTAL,d.measureJaqlIndex=d.jaqlIndex,o.push(d)})}}return o},bI=(e,t)=>{e.userType===Lt.GRAND_TOTAL&&(e.measurePath=void 0,e.metadataType===Ze.ROWS&&(e.parent=void 0,e.jaqlIndex=0))},yI=(e,t,n,r)=>{let o=e;if(n===Ze.COLUMNS){const i=wn.getMetadataTree(r,Ze.MEASURES),a=Ne.getChildLength(i),s={maxLevel:0},c=Ne.getLastLevelNodes(o,[],0,s);if(a>1)c.forEach(l=>{if(l.userType===Lt.GRAND_TOTAL)return;const d=Ne.getChildren(i),p=[];for(let f=0;f<d.length;f+=1){if(typeof l.maxChilds=="number"&&f>=l.maxChilds)continue;const v=$e(de({},d[f]),{index:(l.index||0)+f,measurePath:l.measurePath}),b=Kn(v,Ze.MEASURES);b.userType=Lt.MEASURE_BOTTOM,b.measureJaqlIndex=b.jaqlIndex,p.push(b)}l.minLevel=s.maxLevel,Ne.setChildren(l,p)});else if(a===1){const l=Ne.getChildren(i)[0];if(l){const d=de({},l),p=Kn(d,Ze.MEASURES);p.userType=Lt.MEASURE_TOP,Ne.setChildren(p,o),o=[p],c.forEach(f=>{f.measureJaqlIndex=l.jaqlIndex})}}}return o},wI=(e,t)=>{!Ne.hasChildren(e)&&typeof e.measureJaqlIndex!="undefined"&&wn.markSortedNode(t,e)},kW=(e,t,n,r)=>{let o={};if(t.userType===Lt.SUB_TOTAL||t.userType===Lt.GRAND_TOTAL||n.userType===Lt.SUB_TOTAL||n.userType===Lt.GRAND_TOTAL||n.parent&&n.parent.userType===Lt.SUB_TOTAL||n.parent&&n.parent.userType===Lt.GRAND_TOTAL)return;const i=r&&r.format&&r.format.color||null;if(!i)return;const{value:a,cf:s=-1}=e;if(i.type===kT.COLOR&&i.color&&i.color!=="transparent"&&(o.backgroundColor=i.color),i.type===kT.CONDITION&&i.conditions&&i.conditions.length)for(let c=0,l=i.conditions.length;c<l&&!SW(a);c+=1){const d=i.conditions||[],{color:p}=d[c]||{};if(p&&s===c){o.backgroundColor=p;break}}Object.keys(o).length>0&&(e.style=e.style||{},Object.assign(e.style,o)),o=void 0},_I=(e,t,n,r)=>{const o=[],{level:i=0,measurePath:a={}}=r||{};let s;Array.isArray(e)?s=e:s=Ne.getChildren(e);const c=wn.getMetadataPanels(n,t)[i],l=c?(c.field||{index:1/0}).index:void 0;return s.forEach(d=>{const p=Kn(d,t);if(p.jaqlIndex=l,typeof l!="undefined"&&(p.measurePath=$e(de({},a),{[l]:p.value})),o.push(p),Ne.hasChildren(p)){const f=Ne.getChildren(p),v={level:i+1,measurePath:p.measurePath},b=_I(f,t,n,v);Ne.setChildren(p,b)}}),o},xI=(e,t,n)=>{const{skipFormatEvent:r=!1,onlyFormatEvents:o=!1,iterateFn:i,emitFn:a}=n||{};e.forEach(s=>{if(i&&i(s),(r||!o)&&(mI(s),bI(s),wI(s,t)),a&&(o||!r)){const c=wn.getMetadataPanelByIndex(t,s.jaqlIndex,s.metadataType||"");a(s,c,t)}if(Ne.hasChildren(s)){const c=Ne.getChildren(s);xI(c,t,n)}})},TW=(e,t,n,r)=>{const{originalData:o,applyIndexDivergence:i,subtotalsForSingleRow:a}=r||{};i&&i(e);let s=r_(e,o,t,n,a);return s=vI(s,o,t,n),s=yI(s,o,t,n),Ne.iterateThroughTree(s,(c,l)=>{c.parent=l}),s},Fc={insertSubTotals:r_,postProcessSubTotal:mI,insertGrandTotals:vI,postProcessGrandTotal:bI,insertMeasureNodes:yI,postProcessMeasureNode:wI,applyColorFormatting:kW,preProcessTree:_I,modifyTree:TW,postProcessTree:xI},Kn=(e,t)=>{const n=e;return t&&(n.metadataType=t),n};function ql(e,t,n){return!t||!t.length?!1:t.some(r=>{let o=!0;return n&&n.fields&&n.fields.length&&n.fields.forEach(i=>{e[i]!==void 0&&r[i]===void 0?o=!1:e[i]!==void 0&&r[i]!==void 0&&(Array.isArray(e[i])?o=o&&e[i].indexOf(r[i])!==-1:o=o&&e[i]===r[i])}),o})}const EW=(e,t=[])=>{let n=!1;return!t||!t.length?!1:e.length===0?!0:(e.forEach(r=>{t.includes(r)&&(n=!0)}),n)},DT=(e,t)=>{let n=!0;return!t||!t.length?n=!1:e.forEach(r=>{if(r.index){const o=t[t.length-1];n=n&&ql(r,[o],{fields:[Ea.INDEX]})}if(r.dim&&(r.name=r.dim,r.members&&(r.member=r.members),n=n&&ql(r,t,{fields:[Ea.NAME,Ea.MEMBER]})),r.title){const o=t[t.length-1];n=n&&ql(r,[o],{fields:[Ea.TITLE]})}}),n},AW=(e,t)=>{let n=!0;return!t||!t.length?n=!1:e.forEach(r=>{r.index&&(n=n&&ql(r,t,{fields:[Ea.INDEX]})),r.dim&&(r.name=r.dim,n=n&&ql(r,t,{fields:[Ea.DIM,Ea.AGG]})),r.title&&(n=n&&ql(r,t,{fields:[Ea.TITLE]}))}),n},OW=(e,t)=>{let n=!0;if(e.type&&n&&(n=n&&EW(e.type,t.type)),e.rows&&e.rows.length&&n){const r=t.rows?t.rows:[];n=n&&DT(e.rows,r)}if(e.columns&&n){const r=t.columns?t.columns:[];n=n&&DT(e.columns,r)}if(e.values&&n){const r=t.measure?[t.measure]:[];n=n&&AW(e.values,r)}return n},RW=(e,t)=>e.metadata.find(n=>n.field&&n.field.index===t),yp=(e,t,n=[],r=[])=>{if(!t||!e||typeof e.jaqlIndex=="undefined")return{dimensionsMeta:n,type:r};const o=RW(t,e.jaqlIndex);if(o&&o.jaql&&e.metadataType!==Ze.MEASURES&&n.unshift({title:o.jaql.title,name:o.jaql.dim,member:e.value,index:e.jaqlIndex}),e&&e.userType&&(e.userType===Lt.SUB_TOTAL||e.userType===Lt.GRAND_TOTAL)){const i=e.userType.toLowerCase();r.push(i)}return e.parent&&e.parent.metadataType!==Ze.MEASURES?yp(e.parent,t,n,r):{dimensionsMeta:n,type:r}},MT=e=>{let t={};if(e){const n=e.jaql;t=Dn(n,["type","datatype","table","column"]),e.field&&(t.index=e.field.index)}return t},Gn={CORNER:"corner",COLUMNS:"columns",ROWS:"rows",DATA:"data"};function db(e,t="",n=""){let r="";return e&&(e.levels.length&&e.levels.forEach(o=>{r+=` ${t}--${n?`${n}-`:""}level-${o}`}),e.siblings.length&&e.siblings.forEach(o=>{r+=` ${t}--${n?`${n}-`:""}sibling-${o}`}),e.root&&e.root.siblings&&e.root.siblings.length&&e.root.siblings.forEach(o=>{r+=` ${t}--${n?`${n}-root-`:"root-"}sibling-${o}`}),e.parent&&e.parent.siblings&&e.parent.siblings.length&&e.parent.siblings.forEach(o=>{r+=` ${t}--${n?`${n}-parent-`:"parent-"}sibling-${o}`})),r}function DW(e,t){const{metadata:n,rowMetadata:r,rowTreeNode:o,columnTreeNode:i,merge:a}=t||{},s={t:!0,r:!0,b:!0,l:!0};if(e===Gn.CORNER||e===Gn.COLUMNS)return s;if(e===Gn.ROWS){const c=a&&a.colSpan,l=n&&n.nextNode&&n.nextNode.userType===Lt.GRAND_TOTAL;n&&n.levels.includes(Vn.LAST)&&!n.siblings.includes(Vn.LAST)&&!c&&!l&&(s.b=!1),n&&n.levels.includes(Vn.FIRST)&&n.levels.includes(Vn.LAST)&&!n.siblings.includes(Vn.LAST)&&!c&&!l&&(s.b=!1)}if(e===Gn.DATA){const c=o&&o.userType===Lt.SUB_TOTAL,l=i&&i.userType===Lt.SUB_TOTAL,d=i&&i.userType===Lt.GRAND_TOTAL,p=r&&r.nextNode&&r.nextNode.userType===Lt.GRAND_TOTAL;r&&r.levels.includes(Vn.LAST)&&!r.siblings.includes(Vn.LAST)&&!c&&!l&&!d&&!p&&(s.b=!1)}return s}function pb(e,t="",n=""){let r="";return e&&e.userType&&(r=`${t}--${n?`${n}-`:""}user-type-${e.userType}`),r}function hb(e,t="",n=""){let r="";return e&&e.colSpan&&(r=`${t}--${n?`${n}-`:""}merged-columns`),e&&e.rowSpan&&(r=` ${t}--${n?`${n}-`:""}merged-rows`),r}function fb(e){return e&&e.colSpan?e.colSpan-1:0}function PT(e,t){if(e===void 0)return e;let n=typeof e=="number"?e:parseInt(e,10);return n-=t||1,n}function Bc(e){const{isDataCell:t,dataNode:n,treeNode:r}=e,o=t?n:r;return o&&o.style||{}}const MW=e=>{const t={};return Object.keys(e).forEach(n=>{(!n.startsWith("border")||n==="borderColor")&&(t[n]=e[n])}),t},PW=e=>{const t={};return Object.keys(e).forEach(n=>{(!n.startsWith("color")&&!n.startsWith("padding")&&!n.startsWith("border")&&!n.startsWith("font")&&!n.startsWith("lineHeight")&&!n.startsWith("databarColor")||n==="borderColor")&&(t[n]=e[n])}),t},IW=e=>{const t={};return Object.keys(e).forEach(n=>{(n.startsWith("color")||n.startsWith("padding")||n.startsWith("font")||n.startsWith("lineHeight"))&&(t[n]=e[n])}),t},NW=e=>{const t={};return e.databarColor&&(t.backgroundColor=e.databarColor),t},LW=(e,t,n)=>{if(!e||!t||!n||n.measureJaqlIndex===void 0)return;const[r,o]=e[n.measureJaqlIndex]||[];if(r==null)return;const i=t&&t.store&&t.store.compileRange,a=t&&t.store&&t.store.compileRangeContext,s=t&&t.store&&t.store.compileRangeArgs;if(!i||!s||!a||!t||!t.value)return;const c=$e(de({},s),{minvalue:r,midvalue:r+(o-r)/2,maxvalue:o});let l,d;return c.min===void 0&&(c.maxvalue<=0&&(d=!0),c.min=c.minDef),c.max===void 0&&(c.minvalue>=0&&(l=!0),c.max=c.maxDef),d&&(c.max=c.maxGray),l&&(c.min=c.minGray),i.call(a,c)(t.value)},Hc="text";class o_{constructor(t,n,r){q(this,"plugins",[]),q(this,"globalStyles"),q(this,"jaql"),q(this,"indexHelper"),q(this,"columnsMetadata",[]),q(this,"metadataCache",new Map),this.plugins=t,this.jaql=n,this.globalStyles=r,this.indexHelper={measuresLevel:this.getMeasuresLevel(),columnStartFrom:0,rowStartFrom:0},this.globalStyles&&(this.globalStyles=MW(this.globalStyles))}getJaqlPanels(t){if(!this.jaql)throw new Error("No Jaql in Plugin service!");return this.jaql.metadata.filter(n=>n.panel===t)}getMeasuresLevel(){const t=this.getJaqlPanels(Ze.COLUMNS);return this.getJaqlPanels(Ze.MEASURES).length>1?t.length:0}getRowsColumnLength(){return this.getJaqlPanels(Ze.ROWS).length}getTotalTypes(t){const n=t.filter(r=>r===vl.SUB_TOTAL||r===vl.GRAND_TOTAL);return n&&n.length?n.filter((r,o,i)=>i.indexOf(r)===o):[]}getMeasureMetaByIndex(t){const n=this.getJaqlPanels(Ze.MEASURES);if(n.length===1)return MT(n[0]);const r=t%n.length;return MT(n[r])}resetRowStartFrom(){this.indexHelper.rowStartFrom=1}applyToColumns(t){t.length!==0&&(this.indexHelper.columnStartFrom===0&&(this.indexHelper.columnStartFrom=this.getRowsColumnLength()),this._applyToColumns(t,{row:-1}))}_applyToColumns(t,n){t.forEach((r,o)=>{const{dimensionsMeta:i,type:a}=yp(r,this.jaql);a.push(vl.MEMBER);let s=n.row>=0?n.row+1:0;s>=this.indexHelper.rowStartFrom&&(this.indexHelper.rowStartFrom=s+1),r.metadataType===Ze.MEASURES&&(s=this.indexHelper.measuresLevel);let c=o===0?0:1;c+=this.indexHelper.columnStartFrom;const l={type:a,rowIndex:s,colIndex:c,index:r.jaqlIndex,columns:i};r.metadataType===Ze.MEASURES&&(l.measure=this.getMeasureMetaByIndex(r.index||0));const d={value:r.value||"",content:r.content||"",contentType:r.contentType||Hc,style:r.style||{},store:r.store||{},state:r.state};if(this.applyGlobal(d),this.apply(l,d),this.addToMetadata(l,d,l.rowIndex,l.colIndex),Object.assign(r,d),this.indexHelper.columnStartFrom=c,r.children){const p={row:s,column:c};this._applyToColumns(r.children,p)}else this.columnsMetadata.push({type:a,metadata:i});return!0})}applyToHeaders(t){!t||!t.children||t.children.length===0||t.children.forEach(n=>{const{dimensionsMeta:r}=yp(n,this.jaql),o={type:[vl.MEMBER],rowIndex:0,colIndex:n.index||0,index:n.jaqlIndex,rows:r},i={value:n.value,content:n.content||"",contentType:n.contentType||Hc,style:n.style?n.style:{},store:n.store||{},state:n.state};this.applyGlobal(i),this.apply(o,i),this.addToMetadata(o,i,o.rowIndex,o.colIndex),Object.assign(n,i)})}applyToRows(t){if(t.length===0)return;const n=this.getJaqlPanels(Ze.ROWS),r=this.getJaqlPanels(Ze.MEASURES),o=this.getJaqlPanels(Ze.COLUMNS);this.indexHelper.rowStartFrom=o_.getRowStartFromForPage(n.length,r.length,o.length),this._applyToRows(t)}static getRowStartFromForPage(t,n,r){if(t===0&&r===0)return 0;const o=r+(n===0?0:1);return o===0?1:o}_applyToRows(t){t.forEach((n,r)=>{const{dimensionsMeta:o,type:i}=yp(n,this.jaql);i.push(vl.MEMBER);const a=n.level?n.level:0,s=r===0?this.indexHelper.rowStartFrom:this.indexHelper.rowStartFrom+1,c={type:i,rowIndex:s,colIndex:a,index:n.jaqlIndex,rows:o},l={value:n.value,content:n.content||"",contentType:n.contentType||Hc,style:n.style||{},store:n.store||{},state:n.state};return this.applyGlobal(l),this.apply(c,l),this.addToMetadata(c,l,c.rowIndex,c.colIndex),this.indexHelper.rowStartFrom=s,n.children?this._applyToRows(n.children):n.data&&n.data.length&&this.applyToValues(n.data,{type:i,metadata:o},{rowIndex:s,colIndex:this.getRowsColumnLength()}),Object.assign(n,l),!0})}applyToValues(t,n,r){t.length&&t.forEach((o,i)=>{const a=[vl.VALUE],s=this.columnsMetadata[i];if(!s)return;const c=this.getTotalTypes([...n.type,...s.type]),l=this.getMeasureMetaByIndex(i),d={type:a.concat(c),rows:n.metadata,columns:s.metadata,measure:l,colIndex:i+r.colIndex,rowIndex:r.rowIndex,index:l&&l.index?l.index:0};let p={value:o,content:o,contentType:Hc,style:{},store:o&&o.store||{},state:o&&o.state||void 0};o!=null&&typeof o=="object"&&(p={value:o.value?o.value:null,content:o.content||"",contentType:o.contentType||Hc,style:o.style||{},store:o.store||{},state:o.state}),this.applyGlobal(p),this.apply(d,p),this.addToMetadata(d,p,d.rowIndex,d.colIndex),t[i]=p})}addToMetadata(t,n,r,o){const i=de({cellData:{value:n.value,content:n.content}},t);this.metadataCache.set(`${r}-${o}`,i)}applyGlobal(t){const{globalStyles:n}=this;n&&(t.style=de(de({},t.style),n))}apply(t,n){this.plugins&&this.plugins.length&&this.plugins.forEach(r=>{if(OW(r.target,t)){const o=r.handler;o(t,n)}})}}const gb=(e,t)=>{const n=e||{metadata:[],grandTotals:null};let{metadata:r}=n;return r=r.map(o=>{const i=o.field||{},a=t.find(({field:c})=>c&&c.index===i.index),s=a?a.format:null;return s?$e(de({},o),{format:s}):o}),$e(de({},n),{metadata:r})},IT=100,jW="dataLoad",lw="dataChunkLoaded",FW="dataBarChunkLoaded",BW="rangeMinMaxChunkLoaded",cw="grandChunkLoaded",HW="dataFinishChunkLoaded",$W="finishChunkLoaded",wp="progressError",Qp="headerCellFormat",uw="dataCellFormat",dw="totalRowsCountLoaded",pw="totalColumnsCountLoaded",NT=1e3,zW=0,WW={throttle:tI,throttleTime:zW,PluginService:o_,skipInternalColorFormatting:!1,subtotalsForSingleRow:!1};let CI=class wo{constructor(t,n,r,o){q(this,"logger"),q(this,"events"),q(this,"loadService"),q(this,"options"),q(this,"tempDataChunks",[]),q(this,"lastNotHandledChunkIndex",0),q(this,"lastReadyNotHandledChunkIndex",0),q(this,"rowsGrand"),q(this,"rowsTreeService"),q(this,"columnsTreeService"),q(this,"cornerTreeService"),q(this,"pageSize",IT),q(this,"isPaginated",!1),q(this,"loadedPagesCount",0),q(this,"isLoadInProgress",!1),q(this,"loadPromiseResolve"),q(this,"loadPromiseReject"),q(this,"loadPromiseCache"),q(this,"loadAllPromise"),q(this,"loadAllPromiseResolve"),q(this,"loadAllPromiseReject"),q(this,"isWholeDataLoaded",!1),q(this,"hasDataFinishEvent",!1),q(this,"isDataHandlerThrottled",!1),q(this,"onDataHandlerThrottle"),q(this,"metadata",[]),q(this,"dataBars"),q(this,"rangeMinMax"),q(this,"divergenceComparator",new OT),q(this,"pluginService"),q(this,"rawJaql"),q(this,"triggeredEventsData",{}),q(this,"callPlugins",[]),q(this,"globalStyles"),q(this,"columnsCount"),q(this,"totalColumnsCount"),q(this,"rowsCount"),q(this,"totalRowsCount"),q(this,"totalRecordsCount"),q(this,"limitReached"),q(this,"onMetadataHandler",()=>{const i={metadata:this.getMetadata()};this.isSingleRowTree()&&wn.normalizeSingleBranchTreeSortDetails(i)}),q(this,"onHeadersHandler",i=>{const a=this.getJaql.bind(this),s=this.getRawJaql.bind(this),c=this.applyIndexDivergence.bind(this),l=(v,b,_)=>this.emit(Qp,v,b,_,this.options),d=wo.createColumnsTreeServiceBuilder({getJaql:a,getRawJaql:s,pluginService:this.pluginService,applyIndexDivergence:c},{emitHeaderCellFormatEvent:l})(i);this.columnsTreeService=d.columnsTreeService,this.columnsCount=d.columnsCount,this.totalColumnsCount=d.totalColumnsCount,this.emit(pw,{columnsCount:this.columnsCount||0,totalColumnsCount:this.totalColumnsCount||0});const p=wo.createCornerTreeServiceBuilder({getJaql:a,getRawJaql:s,pluginService:this.pluginService,columnsTreeService:this.columnsTreeService},{emitHeaderCellFormatEvent:l}),{cornerTreeService:f}=p();this.cornerTreeService=f}),q(this,"onDataHandler",i=>{this.tempDataChunks=this.tempDataChunks||[],Array.isArray(i)?(i||[]).forEach(a=>{wo.fillDataChunks(this.tempDataChunks,a,this.pageSize)}):wo.fillDataChunks(this.tempDataChunks,i,this.pageSize),this.tempDataChunks.length&&(this.isDataHandlerThrottled=!0,this.onDataHandlerThrottle())}),q(this,"onGrandHandler",i=>{const a=this.preProcessTree([i],Ze.ROWS)[0],s="Rows grand total",c=a?a.data:[],l=Ne.create(s,void 0,c),d=Kn(l,Ze.ROWS);d.userType=Lt.GRAND_TOTAL,this.postProcessTree([d]),this.postProcessData([d]),this.rowsGrand=d,this.emit(cw,Ne.wrapInRootNode(this.rowsGrand))}),q(this,"onFinishHandler",()=>{this.emit($W,{totalRows:typeof this.totalRowsCount=="number"?this.totalRowsCount:this.getTotalItemsCount(),totalColumns:typeof this.totalColumnsCount=="number"?this.totalColumnsCount:this.getLoadedColumnsCount()})}),q(this,"onTotalRowsHandler",i=>{const{rowsCount:a,queryRowsCount:s,limitReached:c}=i||{};this.totalRowsCount=a,this.totalRecordsCount=s,this.limitReached=c,this.emit(dw,i)}),q(this,"onDataBarsHandler",i=>{const{data:a=[]}=i;let s=0;this.cornerTreeService&&(s=this.cornerTreeService.getTreeChildLength()),this.dataBars=[...Array(s),...a],this.emit(FW,this.dataBars)}),q(this,"onRangeMinMaxHandler",i=>{const{data:a=[]}=i,s=this.getJaql(),c=wn.getMetadataTree(s,Ze.MEASURES),l=Ne.getChildren(c),d=[];l.forEach((p,f)=>{d[p.measureJaqlIndex||0]=a[f]}),this.rangeMinMax=d,this.emit(BW,this.rangeMinMax)}),q(this,"onDataFinishHandler",({rowsCount:i}={})=>{if(this.finishRequest(),this.rowsCount=i,this.tempDataChunks.length){const a=this.tempDataChunks[this.tempDataChunks.length-1];a.ready=!0}this.onDataHandlerThrottle(),this.checkLoadPromise(),this.emit(HW,{limitedRows:this.rowsCount,limitedColumns:this.columnsCount})}),q(this,"onErrorHandler",i=>{process.env.NODE_ENV!=="production"&&this.logger.console.warn(`${this.logger.getName()} data loading error "${JSON.stringify(i)}"`),!this.isLoadInProgress&&!this.isWholeDataLoaded&&!(i instanceof Il)&&this.emit(wp,i)}),this.loadService=t,this.events=n||new Wu,this.logger=o||Ha.create("DataService"),this.options=de(de({},WW),r),this.attachEvent(),this.onDataHandlerThrottle=this.options.throttle(()=>{const i=AT(this.tempDataChunks,p=>p.ready&&!p.handled,this.lastReadyNotHandledChunkIndex);if(i===-1)return;this.lastReadyNotHandledChunkIndex=i;const a=this.tempDataChunks[i],s=this.preProcessTree(a.list,Ze.ROWS),c=this.modifyTree(s,Ze.ROWS);this.postProcessTree(c,{skipFormatEvent:!0}),this.postProcessData(c,{skipFormatEvent:!0});const l=Ne.wrapInRootNode(c);this.rowsTreeService?this.rowsTreeService.extend(l):this.rowsTreeService=new ds(l,!0),this.emit(lw,this.getLoadedElementsCount()),a.handled=!0;const d=AT(this.tempDataChunks,p=>!p.handled,this.lastNotHandledChunkIndex);if(d!==-1?(this.lastNotHandledChunkIndex=d,this.onDataHandlerThrottle()):this.isDataHandlerThrottled=!1,this.hasDataFinishEvent&&this.tempDataChunks.length){const p=this.tempDataChunks[this.tempDataChunks.length-1];p.ready=!0}this.hasDataFinishEvent&&d===-1?(this.finishRequest(),this.checkLoadPromise()):this.checkLoadPromise()},this.options.throttleTime)}destroy(){this.detachEvent(),this.rowsGrand=void 0,this.rowsTreeService=void 0,this.columnsTreeService=void 0,this.cornerTreeService=void 0,this.tempDataChunks=[],this.lastNotHandledChunkIndex=0,this.lastReadyNotHandledChunkIndex=0,this.events.removeAllListeners()}on(t,n){this.events.on(t,n),this.triggeredEventsData[t]&&(this.triggeredEventsData[t].forEach(r=>{this.events.emit(t,...r)}),delete this.triggeredEventsData[t])}emit(t,...n){this.events.listeners(t).length===0?(this.triggeredEventsData[t]=this.triggeredEventsData[t]||[],this.triggeredEventsData[t].push(n)):this.events.emit(t,...n)}off(t,n){this.events.removeListener(t,n),this.triggeredEventsData[t]&&delete this.triggeredEventsData[t]}loadData(t,n){const{pageSize:r=IT,isPaginated:o=!1,cacheResult:i=!1,metadata:a}=n||{},s=this.pageSize===r;if(this.clearLoadAllPromise(),t&&this.clearCache(),this.pageSize=r,this.isPaginated=o,this.emit(jW),this.loadPromiseCache&&s){const l=Promise.resolve(this.loadPromiseCache);return this.loadPromiseCache=void 0,l}this.isLoadInProgress=!0,t&&(this.metadata=a||[],this.rawJaql=gb(t,this.metadata),this.initPluginService(this.rawJaql),this.loadService.load(t).then(l=>{if(l==null)return;const d=!("data"in l);if(l.dataFinish[0]&&d)throw{error:{error:!0,details:"metadata undefined."}}}).catch(l=>{this.loadPromiseReject&&this.loadPromiseReject(l.error)}));const c=new Promise((l,d)=>{this.loadPromiseResolve=l,this.loadPromiseReject=d}).then(l=>this.sendInitPage(l)).then(l=>(i&&(this.loadPromiseCache=l),this.loadedPagesCount=1,l)).catch(l=>{throw l instanceof Il&&this.clearLoadPromise(),l});return this.checkLoadPromise(),c}loadAllData(){if(this.isWholeDataLoaded){const t={loadedRowsCount:this.getLoadedElementsCount(),totalItemsCount:typeof this.totalRowsCount=="number"?this.totalRowsCount:this.getTotalItemsCount(),totalRecordsCount:this.totalRecordsCount,limitReached:this.limitReached,dataBars:this.dataBars,rangeMinMax:this.rangeMinMax};return this.columnsCount!==0&&this.totalColumnsCount!==0&&(t.columnsCount=this.columnsCount,t.totalColumnsCount=this.totalColumnsCount),Promise.resolve(t)}return this.loadAllPromise||(this.loadAllPromise=new Promise((t,n)=>{this.loadAllPromiseResolve=t,this.loadAllPromiseReject=n}).then(()=>({loadedRowsCount:this.getLoadedElementsCount(),totalItemsCount:typeof this.totalRowsCount=="number"?this.totalRowsCount:this.getTotalItemsCount(),totalRecordsCount:this.totalRecordsCount,limitReached:this.limitReached,dataBars:this.dataBars,rangeMinMax:this.rangeMinMax})).catch(t=>{throw t instanceof Il&&this.clearLoadAllPromise(),t})),this.loadAllPromise}getSelectedPageData(t,n){return Promise.resolve(this.sendPaginatedPage(t,n))}getIndexedPageData(t,n,r=!1){return Promise.resolve(this.sendPartialPage(t,n,r))}getJaql(){return this.loadService.getJaql()||{metadata:[],grandTotals:null}}isSingleRowTree(){return this.loadService.isSingleRowTree()}setPluginHandlers(t){this.callPlugins=t}setGlobalStyles(t){this.globalStyles=t}getRawJaql(){return this.rawJaql||this.getJaql()}getMetadata(){return this.metadata.length>0?this.metadata:this.getJaql().metadata}preProcessTree(t,n,r){return Fc.preProcessTree(t,n,this.getJaql(),r)}postProcessTree(t,n){const r=(i,a,s)=>this.emit(Qp,i,a,s,this.options),o=$e(de({},n||{}),{emitFn:r});return Fc.postProcessTree(t,this.getRawJaql(),o)}postProcessData(t,n){const{skipFormatEvent:r=!1,onlyFormatEvents:o=!1}=n||{},i=this.columnsTreeService?this.columnsTreeService.getLastLevelNodes():[],a=Ne.getLastLevelNodes(t),s=this.getRawJaql();r||a.forEach(c=>{const l=Kn(c);i.forEach(d=>{const p=Kn(d),f=wn.getMetadataPanelByIndex(s,p.measureJaqlIndex,Ze.MEASURES);if(typeof l.data!="undefined"&&typeof p.index!="undefined"){const{data:v=[]}=l,{index:b}=p,_=v[b],y=typeof _=="object"&&_!==null&&_!==void 0?_:{value:_};if(v[b]=y,o||!r){const{skipInternalColorFormatting:C=!1}=this.options;C||Fc.applyColorFormatting(y,l,p,f),this.emit(uw,y,l,p,f,s,this.options)}}})})}modifyTree(t,n,r){const o=this.getJaql();return Fc.modifyTree(t,n,o,{originalData:r,applyIndexDivergence:this.applyIndexDivergence.bind(this),subtotalsForSingleRow:this.options.subtotalsForSingleRow})}applyIndexDivergence(t){this.divergenceComparator=new OT(t,this.divergenceComparator)}initPluginService(t){this.pluginService=new this.options.PluginService(this.callPlugins,t,this.globalStyles)}cancelLoading(){const t=new Il;this.loadPromiseReject&&typeof this.loadPromiseReject=="function"&&this.loadPromiseReject(t),this.loadAllPromiseReject&&typeof this.loadAllPromiseReject=="function"&&this.loadAllPromiseReject(t),this.detachEvent()}getPageSize(){return this.pageSize}sendInitPage(t){if(this.loadService.hasError()||!this.loadService.hasData())return wo.getEmptyPage();let n,r;const o=this.getPageSize();if(this.rowsTreeService){const a=o>t?t:o,s=wo.cloneTreeNode,c=this.rowsTreeService.getPartialTree(0,a,{cloneFn:s});this.rowsGrand&&c.push(Er(this.rowsGrand)),this.postProcessTree(c,{onlyFormatEvents:!0,iterateFn:Ne.clearNodeCache}),this.postProcessData(c,{onlyFormatEvents:!0});const l=this.rowsTreeService?this.rowsTreeService.getTreeDeepsLength():0,d=Ne.wrapInRootNode(c);this.pluginService&&d&&d.children&&(this.pluginService.applyToRows(d.children),r=this.pluginService.metadataCache),n=new ds(d,!0,l),n.hasGrandTotals=!!this.rowsGrand}const i=this.isWholeDataLoaded&&o>=t;return{rowsTreeService:n,columnsTreeService:this.columnsTreeService,cornerTreeService:this.cornerTreeService,isLastPage:i,cellsMetadata:r}}sendPaginatedPage(t,n){if(this.loadService.hasError()||!this.loadService.hasData())return wo.getEmptyPage();n&&(this.pageSize=n);const r=this.getPageSize(),o=this.getLoadedElementsCount();if(t*r>=o)throw new Error("Selected page is out of elements range!");if(t<0)throw new Error("Selected page must be >= 0");let i,a;if(this.rowsTreeService){const s=t>=0?t*r:0,c=(t+1)*r>o?o:(t+1)*r,l=wo.cloneTreeNode,d=this.rowsTreeService.getPartialTree(s,c,{cloneFn:l});this.rowsGrand&&d.push(Er(this.rowsGrand)),this.postProcessTree(d,{onlyFormatEvents:!0,iterateFn:Ne.clearNodeCache}),this.postProcessData(d,{onlyFormatEvents:!0});const p=this.rowsTreeService?this.rowsTreeService.getTreeDeepsLength():0,f=Ne.wrapInRootNode(d);this.pluginService&&f&&f.children&&(this.pluginService.applyToRows(f.children),a=this.pluginService.metadataCache),i=new ds(f,!0,p),i.hasGrandTotals=!!this.rowsGrand}return{rowsTreeService:i,columnsTreeService:this.columnsTreeService,cornerTreeService:this.cornerTreeService,isLastPage:!0,cellsMetadata:a}}sendPartialPage(t,n,r){if(this.loadService.hasError()||!this.loadService.hasData())return wo.getEmptyPage();const o=this.getLoadedElementsCount();let[i,a]=[Math.min(t,n),Math.max(t,n)];i=i>=0?i:0,a=a>=0?a:0,a=a<o?a:o;let s,c;if(i>o)s=void 0;else{let l;if(this.rowsTreeService){const f=wo.cloneTreeNode;l=this.rowsTreeService.getPartialTree(i,a,{cloneFn:f}),r&&this.rowsGrand&&l.push(Er(this.rowsGrand)),this.postProcessTree(l,{onlyFormatEvents:!0,iterateFn:Ne.clearNodeCache}),this.postProcessData(l,{onlyFormatEvents:!0})}const d=this.rowsTreeService?this.rowsTreeService.getTreeDeepsLength():0,p=Ne.wrapInRootNode(l);this.pluginService&&p&&p.children&&(this.pluginService.applyToRows(p.children),c=this.pluginService.metadataCache),s=new ds(p,!0,d),s.hasGrandTotals=!!(r&&this.rowsGrand)}return{rowsTreeService:s,columnsTreeService:this.columnsTreeService,cornerTreeService:this.cornerTreeService,isLastPage:!0,cellsMetadata:c}}getLoadedElementsCount(){return this.rowsTreeService?this.rowsTreeService.getTreeChildLength():0}getTotalItemsCount(){return this.loadService.getTotalItemsCount()}getLoadedColumnsCount(){return this.columnsTreeService?this.columnsTreeService.getTreeChildLength():0}attachEvent(){this.loadService.listenerCount(tt.HEADERS)&&this.loadService.offAll(tt.HEADERS),this.loadService.on(tt.HEADERS,this.onHeadersHandler),this.loadService.on(tt.METADATA,this.onMetadataHandler),this.loadService.on(tt.DATA,this.onDataHandler),this.loadService.on(tt.GRAND,this.onGrandHandler),this.loadService.on(tt.DATA_FINISH,this.onDataFinishHandler),this.loadService.on(tt.TOTAL_ROWS,this.onTotalRowsHandler),this.loadService.on(tt.DATABARS,this.onDataBarsHandler),this.loadService.on(tt.RANGE_MIN_MAX,this.onRangeMinMaxHandler),this.loadService.on(tt.FINISH,this.onFinishHandler),this.loadService.on(tt.ERROR,this.onErrorHandler)}detachEvent(){this.loadService.off(tt.HEADERS,this.onHeadersHandler),this.loadService.off(tt.METADATA,this.onMetadataHandler),this.loadService.off(tt.DATA,this.onDataHandler),this.loadService.off(tt.GRAND,this.onGrandHandler),this.loadService.off(tt.DATA_FINISH,this.onDataFinishHandler),this.loadService.off(tt.TOTAL_ROWS,this.onTotalRowsHandler),this.loadService.off(tt.DATABARS,this.onDataBarsHandler),this.loadService.off(tt.RANGE_MIN_MAX,this.onRangeMinMaxHandler),this.loadService.off(tt.FINISH,this.onFinishHandler),this.loadService.off(tt.ERROR,this.onErrorHandler)}checkLoadPromise(){if(!this.isLoadInProgress)return;const t=this.getLoadedElementsCount();(t>=this.getPageSize()||this.isWholeDataLoaded)&&(this.isLoadInProgress=!1,typeof this.loadPromiseResolve=="function"&&(this.loadPromiseResolve(t),this.clearLoadPromise()))}clearLoadAllPromise(){this.loadAllPromise=void 0,this.loadAllPromiseReject=void 0,this.loadAllPromiseResolve=void 0}clearLoadPromise(){this.loadPromiseReject=void 0,this.loadPromiseResolve=void 0}finishRequest(){this.logger.log("finishRequest"),this.hasDataFinishEvent=!0,!this.isDataHandlerThrottled&&(this.isWholeDataLoaded=!0,this.loadAllPromiseResolve&&typeof this.loadAllPromiseResolve=="function"&&(this.loadAllPromiseResolve(),this.clearLoadAllPromise()))}clearCache(){this.rowsGrand=void 0,this.rowsTreeService=void 0,this.columnsTreeService=void 0,this.loadedPagesCount=0,this.hasDataFinishEvent=!1,this.isWholeDataLoaded=!1,this.isLoadInProgress=!1,this.tempDataChunks=[],this.lastNotHandledChunkIndex=0,this.lastReadyNotHandledChunkIndex=0,this.isDataHandlerThrottled=!1}static getEmptyPage(){return{isLastPage:!0}}static fillDataChunks(t,n,r=NT,o=NT){const i=t.length<2?r:o;let a=t[Math.max(0,t.length-1)],s,c=!a;if(!n||typeof n.children=="undefined"&&typeof n.value=="undefined"&&n.data&&!n.data.length){a&&(a.ready=!0);return}if(a){const l=Math.max(0,a.list.length-1);s=a.list[l];const d=a.size?`${a.size}`:"0",p=parseInt(d,10)+(n.size||1);(a.handled||p>i&&!(s.isPart&&s.value===n.value))&&(c=!0)}n&&n.isPart&&s&&(!s.isPart||s.value!==n.value)&&(c=!0,s.value!==n.value&&(s=void 0)),c&&(a&&(a.ready=!0),a={list:[],size:0,ready:!1,handled:!1},t.push(a)),a&&(s&&s.isPart&&n&&n.isPart?(Ne.deepMerge(s,n),a.size+=n.size||1):(a.list.push(n),a.size+=n.size||1))}static cloneTreeNode(t,n){const r=t,{children:o,isMapped:i,minLevel:a,childCount:s,childDeep:c,parent:l,master:d,data:p,state:f,style:v,store:b}=r,_=Dn(r,["children","isMapped","minLevel","childCount","childDeep","parent","master","data","state","style","store"]),y=Er(_);return l&&(y.parent=l),d&&(y.master=d),p&&(y.data=Er(p)),f&&(y.state=Er(f)),v&&(y.style=Er(v)),b&&(y.store=Er(b)),!n&&o&&(y.children=o.map(C=>{const k=wo.cloneTreeNode(C);return k.parent=y,k})),y}static createColumnsTreeServiceBuilder(t,n){return r=>{const o=t.getJaql(),i=t.getRawJaql?t.getRawJaql():gb(o,o.metadata||[]),a=wn.getMetadataTree(o,Ze.MEASURES),s=Ne.getChildren(a),{preProcessTree:c,modifyTree:l,postProcessTree:d}=Fc;let p,f,v=0,b=0;if(Ne.hasChildren(r)){r.columnsCount&&r.totalColumnsCount&&(v=r.columnsCount,b=r.totalColumnsCount);const _=c(r,Ze.COLUMNS,o),y=l(_,Ze.COLUMNS,o,{originalData:r,applyIndexDivergence:t.applyIndexDivergence});d(y,i,{emitFn:n&&n.emitHeaderCellFormatEvent});const C=Ne.wrapInRootNode(y);t.pluginService&&C&&C.children&&t.pluginService.applyToColumns(C.children),p=C,f=new ds(C),s.length===1&&f.setValueNode(s[0])}else Ne.hasChildren(a)?(r.columnsCount&&r.totalColumnsCount&&(v=r.columnsCount,b=r.totalColumnsCount),typeof r.maxChilds=="number"&&(v=r.maxChilds,a.children=Ne.getChildren(a).filter((_,y)=>y<r.maxChilds)),t.pluginService&&a.children&&t.pluginService.applyToColumns(a.children),d(Ne.getChildren(a),i,{emitFn:n&&n.emitHeaderCellFormatEvent}),p=a,f=new ds(a)):(t.pluginService&&t.pluginService.resetRowStartFrom(),p=void 0,f=void 0,v=0,b=0);return{columnsTree:p,columnsTreeService:f,columnsCount:v,totalColumnsCount:b}}}static createCornerTreeServiceBuilder(t,n){return()=>{const r=t.getJaql(),o=t.getRawJaql?t.getRawJaql():gb(r,r.metadata||[]),i=wn.getMetadataTree(r,Ze.ROWS);let a;if(Ne.hasChildren(i)){Ne.iterateThroughTree(Ne.getChildren(i),c=>{c.userType=Lt.CORNER;const l=wn.getMetadataPanelByIndex(o,c.jaqlIndex,c.metadataType||"");n&&n.emitHeaderCellFormatEvent&&n.emitHeaderCellFormatEvent(c,l,o)});let s;t.columnsTreeService&&(s=t.columnsTreeService.getTreeDeepsLength()),t.pluginService&&t.pluginService.applyToHeaders(i),a=new ds(i,!1,s)}return{cornerTree:i,cornerTreeService:a}}}};var hw={},UW={get exports(){return hw},set exports(e){hw=e}};/*!
|
|
9
|
+
Copyright (c) 2018 Jed Watson.
|
|
10
|
+
Licensed under the MIT License (MIT), see
|
|
11
|
+
http://jedwatson.github.io/classnames
|
|
12
|
+
*/var LT;function qW(){return LT||(LT=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var s=n.apply(null,i);s&&r.push(s)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var c in i)t.call(i,c)&&i[c]&&r.push(c)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(UW)),hw}var YW=qW();const Je=Oo(YW);var mb,jT;function VW(){if(jT)return mb;jT=1;var e=Zo(),t=function(){return e.Date.now()};return mb=t,mb}var vb,FT;function GW(){if(FT)return vb;FT=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return vb=t,vb}var bb,BT;function QW(){if(BT)return bb;BT=1;var e=GW(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return bb=n,bb}var yb,HT;function ff(){if(HT)return yb;HT=1;var e=qu(),t=Fs(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return yb=r,yb}var wb,$T;function JW(){if($T)return wb;$T=1;var e=QW(),t=Ba(),n=ff(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function c(l){if(typeof l=="number")return l;if(n(l))return r;if(t(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=t(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=e(l);var p=i.test(l);return p||a.test(l)?s(l.slice(2),p?2:8):o.test(l)?r:+l}return wb=c,wb}var _b,zT;function ZW(){if(zT)return _b;zT=1;var e=Ba(),t=VW(),n=JW(),r="Expected a function",o=Math.max,i=Math.min;function a(s,c,l){var d,p,f,v,b,_,y=0,C=!1,k=!1,T=!0;if(typeof s!="function")throw new TypeError(r);c=n(c)||0,e(l)&&(C=!!l.leading,k="maxWait"in l,f=k?o(n(l.maxWait)||0,c):f,T="trailing"in l?!!l.trailing:T);function x(W){var F=d,H=p;return d=p=void 0,y=W,v=s.apply(H,F),v}function E(W){return y=W,b=setTimeout(R,c),C?x(W):v}function O(W){var F=W-_,H=W-y,$=c-F;return k?i($,f-H):$}function S(W){var F=W-_,H=W-y;return _===void 0||F>=c||F<0||k&&H>=f}function R(){var W=t();if(S(W))return D(W);b=setTimeout(R,O(W))}function D(W){return b=void 0,T&&d?x(W):(d=p=void 0,v)}function P(){b!==void 0&&clearTimeout(b),y=0,d=_=p=b=void 0}function I(){return b===void 0?v:D(t())}function j(){var W=t(),F=S(W);if(d=arguments,p=this,_=W,F){if(b===void 0)return E(_);if(k)return clearTimeout(b),b=setTimeout(R,c),x(_)}return b===void 0&&(b=setTimeout(R,c)),v}return j.cancel=P,j.flush=I,j}return _b=a,_b}var KW=ZW();const XW=Oo(KW),eu="getSize",fw="change",tu="dataBars",nu="rangeMinMax";class eU{constructor(t,n){q(this,"events"),q(this,"colsWidth",{}),q(this,"rowsHeight",{}),q(this,"initialFixedWidth",{}),q(this,"dataBarsCols",[]),q(this,"dataBarsColsCache"),q(this,"dataBarsMinMax"),q(this,"rangeMinMax"),q(this,"notifyChangeTimer",0),q(this,"notifySizeChangeTimer",0),q(this,"notifyDataBarsChangeTimer",0),q(this,"notifyRangeMinMaxChangeTimer",0),q(this,"logger"),q(this,"columnWidth",({index:r})=>this.initialFixedWidth[r]!==void 0?this.initialFixedWidth[r]:this.colsWidth[r]||Number.NaN),q(this,"rowHeight",({index:r})=>this.rowsHeight[r]||Number.NaN),this.events=new Wu,this.events.setMaxListeners(1/0),this.logger=Ha.create("TableSize"),this.dataBarsMinMax=t,this.rangeMinMax=n}updateDataBars(t,n,r){this.dataBarsCols[t]=this.dataBarsCols[t]||[];const o=this.dataBarsCols[t];o[n]=r,this.dataBarsMinMax&&this.notifyDataBarsChange()}updateDataBarsMinMax(t){this.dataBarsMinMax=t,this.notifyDataBarsChange()}updateRangeMinMax(t){this.rangeMinMax=t,this.notifyRangeMinMaxChange()}updateWidth(t,n){this.logger.log("updateWidth",t,n),this.colsWidth[t]=n,this.notifySizesChange()}updateHeight(t,n){this.logger.log("updateHeight",t,n),this.rowsHeight[t]=n,this.notifySizesChange()}notifyChange(){this.notifyChangeTimer&&(clearTimeout(this.notifyChangeTimer),this.notifyChangeTimer=0),this.notifyChangeTimer=window.setTimeout(()=>{this.notifyChangeTimer=0,this.events.emit(eu)})}setFixedWidth(t,n){this.logger.log("setFixedWidth",t,n),this.initialFixedWidth[t]=n,this.notifySizesChange()}setInitialFixedWidth(t){this.logger.log("setInitialFixedWidth",t),Array.isArray(t)&&t.forEach(n=>{const[r,o]=n;this.initialFixedWidth[r]=o})}hasInitialFixedWidth(t){return typeof this.initialFixedWidth[t]!="undefined"}hasPendingChanges(){return!!(this.notifyChangeTimer||this.notifySizeChangeTimer)}fitWidths(t){const n=[];Object.keys(this.colsWidth).forEach(i=>{const a=parseInt(i,10);n.push([a,this.columnWidth({index:a})])});const r=n.reduce((i,[,a=0]=[])=>i+a,0),o=n.map(([i,a])=>{const s=Math.floor(t*a/r);return[i,s]});this.setInitialFixedWidth(o),this.notifySizesChange()}notifySizesChange(){this.notifySizeChangeTimer&&(clearTimeout(this.notifySizeChangeTimer),this.notifySizeChangeTimer=0),this.notifySizeChangeTimer=window.setTimeout(()=>{this.notifySizeChangeTimer=0;const t={};Object.keys(this.colsWidth).forEach(n=>{const r=parseInt(n,10);let o=this.colsWidth[r];const i=this.initialFixedWidth[r];typeof i=="number"&&(o=i),t[r]=o}),this.colsWidth=t,this.events.emit(fw,this.colsWidth,this.rowsHeight)})}notifyDataBarsChange(){this.notifyDataBarsChangeTimer&&(clearTimeout(this.notifyDataBarsChangeTimer),this.notifyDataBarsChangeTimer=0),this.notifyDataBarsChangeTimer=window.setTimeout(()=>{this.notifyDataBarsChangeTimer=0,this.dataBarsColsCache=this.dataBarsCols.map(t=>t.reduce((n,r)=>n>r?n:r,0)),this.events.emit(tu,{colsWidth:this.dataBarsColsCache,minMaxs:this.dataBarsMinMax})})}notifyRangeMinMaxChange(){this.notifyRangeMinMaxChangeTimer&&(clearTimeout(this.notifyRangeMinMaxChangeTimer),this.notifyRangeMinMaxChangeTimer=0),this.notifyRangeMinMaxChangeTimer=window.setTimeout(()=>{this.notifyRangeMinMaxChangeTimer=0,this.events.emit(nu,{rangeMinMax:this.rangeMinMax})})}getDataBars(){if(!(!this.dataBarsMinMax||!this.dataBarsColsCache))return{colsWidth:this.dataBarsColsCache,minMaxs:this.dataBarsMinMax}}getRangeMinMax(){if(this.rangeMinMax)return{rangeMinMax:this.rangeMinMax}}on(t,n){this.events.on(t,n)}off(t,n){this.events.off(t,n)}}const _p=class extends B.PureComponent{constructor(e){super(e),q(this,"height",0),q(this,"width",0),q(this,"content"),q(this,"tdElement"),q(this,"cellStyle"),q(this,"contentStyle"),q(this,"contentRef",t=>{t&&(this.content=t)}),q(this,"tdRef",t=>{t&&(this.tdElement=t)}),q(this,"onGetSize",()=>{const{type:t,rowIndex:n,colIndex:r}=this.props,o=this.tdElement;if(!o)return;let i,a;if(t===_p.type.COL){if(!this.content)return;i=o.getBoundingClientRect().width,this.props.tableSize.updateWidth(r,i)}else a=o.getBoundingClientRect().height,this.props.tableSize.updateHeight(n,a)}),this.contentStyle={},this.cellStyle={}}componentDidMount(){this.props.tableSize.on(eu,this.onGetSize)}UNSAFE_componentWillReceiveProps(e){e.tableSize!==this.props.tableSize&&(this.props.tableSize.off(eu,this.onGetSize),e.tableSize.on(eu,this.onGetSize)),e.width!==this.props.width&&(this.contentStyle={},this.props.type===_p.type.COL&&(this.contentStyle.height=0)),e.height!==this.props.height&&(this.cellStyle={})}componentWillUnmount(){this.props.tableSize.off(eu,this.onGetSize)}getIndex(){return this.props.type===_p.type.COL?this.props.colIndex:this.props.rowIndex}render(){const{type:e}=this.props,t=this.getIndex(),n=`table-grid__cell-anchor
|
|
13
|
+
table-grid__cell-anchor--${e}
|
|
14
|
+
table-grid__cell-anchor--${e}-${t}
|
|
15
|
+
`.trim();return A.jsx("td",{className:n,style:this.cellStyle,ref:this.tdRef,children:A.jsx("div",{ref:this.contentRef,className:"table-grid__cell-anchor-content",style:this.contentStyle})},`${e}-${t}`)}};let ru=_p;q(ru,"type",{ROW:"row",COL:"col"});const tU="multi-grid",nU="multi-grid--new",WT="multi-grid--no-rows",rU="multi-grid--no-columns",UT="multi-grid--no-corner",oU="multi-grid--no-fixed-left",Vd="table-grid",iU="table-grid--data",aU="table-grid--rows",sU="table-grid--columns",lU="table-grid--corner",qT="table-grid--top",YT="table-grid--right",VT="table-grid--bottom",GT="table-grid--left",xb="table-grid--fixed",cU="table-grid__table table-grid--table-native",uU="table-grid__colgroup",QT="table-grid__column",dU="table-grid__tbody",Cb="table-grid__row",kr="table-grid__cell",pU="table-grid__cell--selected",hU="table-grid__cell--drilled",fU="table-grid__cell--sorted",gU="table-grid__cell--sorted-inactive",mU="table-grid__cell--sorted--asc",vU="table-grid__cell--sorted--desc",bU="table-grid__cell--default-sorted--asc",yU="table-grid__cell--default-sorted--desc",wU="table-grid__cell--fixed-width",_U="table-grid__cell-corner",xU="table-grid__content",CU="table-grid__content__wrapper",Gd="table-grid__content__inner",SU="table-grid__sorting-settings-icon",kU="table-grid__cell--sort-icon-persistent";class ou extends B.PureComponent{constructor(){super(...arguments),q(this,"tableStyles")}UNSAFE_componentWillReceiveProps(t){t.borderColor!==this.props.borderColor&&(this.tableStyles=void 0)}componentDidUpdate(){this.props.onGridUpdated&&this.props.onGridUpdated()}getTableStyles(){return this.tableStyles===void 0&&(this.props.borderColor?this.tableStyles={borderColor:this.props.borderColor}:this.tableStyles=null),this.tableStyles}getColumns(t=10){return Array.from(Array(t+1)).map((n,r)=>A.jsx("col",{className:`${QT} ${QT}-${r}`},`col-${r}`))}getRows(t=10,n=10,r,o){const{clone:i,borderWidth:a}=this.props;return A.jsxs(A.Fragment,{children:[Array.from(Array(t)).map((s,c)=>{const l=o[c];return this.getRow(n,c,l,r)}),i?null:A.jsx("tr",{className:Cb,style:{height:0},children:Array.from(Array(n+1)).map((s,c)=>{const l=r[c];return A.jsx(ru,{type:ru.type.COL,colIndex:c,tableSize:this.props.tableSize,width:l,borderWidth:a},`anchor-${c}`)})},"anchor")]})}getRow(t=10,n=0,r,o){const{clone:i,borderWidth:a}=this.props,s=i&&typeof r=="number"?r:"auto";return A.jsxs("tr",{className:`${Cb} ${Cb}-${n}`,style:{height:s},children:[Array.from(Array(t)).map((c,l)=>{const d=o[l];return this.getCell({rowHeight:r,colWidth:d,rowIndex:n,colIndex:l})}),i?null:A.jsx(ru,{type:ru.type.ROW,rowIndex:n,tableSize:this.props.tableSize,height:r,borderWidth:a})]},n)}getCell(t){const{rowIndex:n,colIndex:r,rowHeight:o,colWidth:i}=t||{},{clone:a,type:s,cellRenderer:c,borderWidth:l,isMobile:d}=this.props;return c({rowIndex:n,colIndex:r,rowHeight:o,colWidth:i,borderWidth:l,clone:a,type:s,isMobile:d})}render(){const{widths:t,heights:n,colsCount:r,rowsCount:o,className:i}=this.props,a=this.getTableStyles()||void 0;return A.jsxs("table",{className:`${cU} ${i}`,style:a,children:[A.jsx("colgroup",{className:uU,children:this.getColumns(r)}),A.jsx("tbody",{className:dU,children:this.getRows(o,r,t,n)})]})}}q(ou,"defaultProps",{clone:!1,borderWidth:1,borderColor:""});var Nl={},TU={get exports(){return Nl},set exports(e){Nl=e}},gw={},Qd={get exports(){return gw},set exports(e){gw=e}},JT;function SI(){return JT||(JT=1,function(){var e,t,n,r,o,i;typeof performance!="undefined"&&performance!==null&&performance.now?Qd.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(Qd.exports=function(){return(e()-o)/1e6},t=process.hrtime,e=function(){var a;return a=t(),a[0]*1e9+a[1]},r=e(),i=process.uptime()*1e9,o=r-i):Date.now?(Qd.exports=function(){return Date.now()-n},n=Date.now()):(Qd.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}.call(ys)),gw}var ZT;function EU(){if(ZT)return Nl;ZT=1;for(var e=SI(),t=typeof window=="undefined"?ys:window,n=["moz","webkit"],r="AnimationFrame",o=t["request"+r],i=t["cancel"+r]||t["cancelRequest"+r],a=0;!o&&a<n.length;a++)o=t[n[a]+"Request"+r],i=t[n[a]+"Cancel"+r]||t[n[a]+"CancelRequest"+r];if(!o||!i){var s=0,c=0,l=[],d=1e3/60;o=function(p){if(l.length===0){var f=e(),v=Math.max(0,d-(f-s));s=v+f,setTimeout(function(){var b=l.slice(0);l.length=0;for(var _=0;_<b.length;_++)if(!b[_].cancelled)try{b[_].callback(s)}catch(y){setTimeout(function(){throw y},0)}},Math.round(v))}return l.push({handle:++c,callback:p,cancelled:!1}),c},i=function(p){for(var f=0;f<l.length;f++)l[f].handle===p&&(l[f].cancelled=!0)}}return TU.exports=function(p){return o.call(t,p)},Nl.cancel=function(){i.apply(t,arguments)},Nl.polyfill=function(p){p||(p=t),p.requestAnimationFrame=o,p.cancelAnimationFrame=i},Nl}var kI=EU();const KT=Oo(kI);var Ll={},AU={get exports(){return Ll},set exports(e){Ll=e}},Sb,XT;function OU(){if(XT)return Sb;XT=1;var e=null,t=["Webkit","Moz","O","ms"];return Sb=function(n){e||(e=document.createElement("div"));var r=e.style;if(n in r)return n;for(var o=n.charAt(0).toUpperCase()+n.slice(1),i=t.length;i>=0;i--){var a=t[i]+o;if(a in r)return a}return!1},Sb}var kb,eE;function RU(){if(eE)return kb;eE=1,kb=r;var e=/\s/,t=/(_|-|\.|:)/,n=/([a-z][A-Z]|[A-Z][a-z])/;function r(c){return e.test(c)?c.toLowerCase():t.test(c)?(i(c)||c).toLowerCase():n.test(c)?s(c).toLowerCase():c.toLowerCase()}var o=/[\W_]+(.|$)/g;function i(c){return c.replace(o,function(l,d){return d?" "+d:""})}var a=/(.)([A-Z]+)/g;function s(c){return c.replace(a,function(l,d,p){return d+" "+p.toLowerCase().split("").join(" ")})}return kb}var Tb,tE;function DU(){if(tE)return Tb;tE=1;var e=RU();Tb=t;function t(n){return e(n).replace(/[\W_]+(.|$)/g,function(r,o){return o?" "+o:""}).trim()}return Tb}var Eb,nE;function MU(){if(nE)return Eb;nE=1;var e=DU();Eb=t;function t(n){return e(n).replace(/\s(\w)/g,function(r,o){return o.toUpperCase()})}return Eb}var Ab,rE;function PU(){if(rE)return Ab;rE=1;var e={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return Ab=function(t,n){return typeof n=="number"&&!e[t]?n+"px":n},Ab}var oE;function i_(){if(oE)return Ll;oE=1;var e=OU(),t=MU(),n={float:"cssFloat"},r=PU();function o(c,l,d){var p=n[l];if(typeof p=="undefined"&&(p=a(l)),p){if(d===void 0)return c.style[p];c.style[p]=r(p,d)}}function i(c,l){for(var d in l)l.hasOwnProperty(d)&&o(c,d,l[d])}function a(c){var l=t(c),d=e(l);return n[l]=n[c]=n[d]=d,d}function s(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:i(arguments[0],arguments[1]):o(arguments[0],arguments[1],arguments[2])}return AU.exports=s,Ll.set=s,Ll.get=function(c,l){return Array.isArray(l)?l.reduce(function(d,p){return d[p]=o(c,p||""),d},{}):o(c,l||"")},Ll}var IU=i_();const Uo=Oo(IU);function Ob(e){const{clientHeight:t}=e,{paddingTop:n,paddingBottom:r}=getComputedStyle(e);return t-parseFloat(n||"")-parseFloat(r||"")}function Rb(e){const{clientWidth:t}=e,{paddingLeft:n,paddingRight:r}=getComputedStyle(e);return t-parseFloat(n||"")-parseFloat(r||"")}let Db=!1;function NU(){if(typeof document!="undefined"){const e=document.createElement("div");Uo(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"});let t=document.querySelector(".pivot-container");t||(t=document.body),t.appendChild(e),Db=e.offsetWidth-e.clientWidth,t.removeChild(e)}else Db=0;return Db||0}function iE(e){return typeof e=="string"}const aE={position:"relative",overflow:"hidden",width:"100%",height:"100%"},sE={height:"auto"},LU={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},jU={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},FU={position:"absolute",height:6},BU={position:"absolute",width:6},HU={position:"relative",display:"block",height:"100%"},$U={position:"relative",display:"block",width:"100%"},zU={userSelect:"none"},WU={userSelect:"auto"};function UU(e){const t=e||{},{style:n,key:r}=t,o=Dn(t,["style","key"]),i=$e(de({},n),{right:2,bottom:2,left:2,borderRadius:3});return A.jsx("div",de({style:i},o),r)}function qU(e){const t=e||{},{style:n,key:r}=t,o=Dn(t,["style","key"]),i=$e(de({},n),{right:2,bottom:2,top:2,borderRadius:3});return A.jsx("div",de({style:i},o),r)}function YU(e){const t=e||{},{style:n,key:r}=t,o=Dn(t,["style","key"]),i=$e(de({},n),{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return A.jsx("div",de({style:i},o),r)}function VU(e){const t=e||{},{style:n,key:r}=t,o=Dn(t,["style","key"]),i=$e(de({},n),{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return A.jsx("div",de({style:i},o),r)}class a_ extends B.PureComponent{constructor(){super(...arguments),q(this,"view",document.createElement("div")),q(this,"trackHorizontal",document.createElement("div")),q(this,"trackVertical",document.createElement("div")),q(this,"thumbHorizontal",document.createElement("div")),q(this,"thumbVertical",document.createElement("div")),q(this,"requestFrame"),q(this,"prevPageX",0),q(this,"prevPageY",0),q(this,"dragging",!1),q(this,"hideTracksTimeout",null),q(this,"detectScrollingInterval",null),q(this,"trackMouseOver",!1),q(this,"viewScrollTop",0),q(this,"lastViewScrollTop",0),q(this,"viewScrollLeft",0),q(this,"lastViewScrollLeft",0),q(this,"scrolling",!1),q(this,"handleScroll",t=>{const{onScroll:n}=this.props;n&&n(t),this.update(r=>{const{scrollLeft:o,scrollTop:i}=r;this.viewScrollLeft=o,this.viewScrollTop=i}),this.detectScrolling()}),q(this,"handleWindowResize",()=>{this.update()}),q(this,"handleDrag",t=>{if(this.prevPageX){const{clientX:n}=t,{left:r}=this.trackHorizontal.getBoundingClientRect(),o=this.getThumbHorizontalWidth()-this.prevPageX,i=-r+n-o;this.view.scrollLeft=this.getScrollLeftForOffset(i)}if(this.prevPageY){const{clientY:n}=t,{top:r}=this.trackVertical.getBoundingClientRect(),o=this.getThumbVerticalHeight()-this.prevPageY,i=-r+n-o;this.view.scrollTop=this.getScrollTopForOffset(i)}return!1}),q(this,"handleDragEnd",()=>{this.dragging=!1,this.prevPageY=0,this.prevPageX=0,this.teardownDragging(),this.handleDragEndAutoHide()}),q(this,"handleHorizontalTrackMouseDown",t=>{t.preventDefault();const{target:n,clientX:r}=t;if(n instanceof HTMLElement){const{left:o}=n.getBoundingClientRect(),i=this.getThumbHorizontalWidth(),a=Math.abs(o-r)-i/2;this.view.scrollLeft=this.getScrollLeftForOffset(a)}}),q(this,"handleVerticalTrackMouseDown",t=>{t.preventDefault();const{target:n,clientY:r}=t;if(n instanceof HTMLElement){const{top:o}=n.getBoundingClientRect(),i=this.getThumbVerticalHeight(),a=Math.abs(o-r)-i/2;this.view.scrollTop=this.getScrollTopForOffset(a)}}),q(this,"handleHorizontalThumbMouseDown",t=>{t.preventDefault(),this.handleDragStart(t);const{target:n,clientX:r}=t;if(n instanceof HTMLElement){const{offsetWidth:o}=n,{left:i}=n.getBoundingClientRect();this.prevPageX=o-(r-i)}}),q(this,"handleVerticalThumbMouseDown",t=>{t.preventDefault(),this.handleDragStart(t);const{target:n,clientY:r}=t;if(n instanceof HTMLElement){const{offsetHeight:o}=n,{top:i}=n.getBoundingClientRect();this.prevPageY=o-(r-i)}}),q(this,"handleTrackMouseEnter",()=>{this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}),q(this,"handleTrackMouseLeave",()=>{this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}),q(this,"setTrackVerticalRef",t=>{t&&(this.trackVertical=t)}),q(this,"setThumbVerticalRef",t=>{t&&(this.thumbVertical=t)}),q(this,"setTrackHorizontalRef",t=>{t&&(this.trackHorizontal=t)}),q(this,"setThumbHorizontalRef",t=>{t&&(this.thumbHorizontal=t)}),q(this,"setViewRef",t=>{t&&(this.view=t)})}componentDidMount(){this.addListeners(),this.update()}componentDidUpdate(){this.update()}componentWillUnmount(){this.removeListeners(),kI.cancel(this.requestFrame),this.hideTracksTimeout&&clearTimeout(this.hideTracksTimeout),this.detectScrollingInterval&&clearInterval(this.detectScrollingInterval)}getMeasurements(){const{scrollLeft:t=0,scrollTop:n=0,scrollWidth:r=0,scrollHeight:o=0,clientWidth:i=0,clientHeight:a=0}=this.view||{};return{left:t/(r-i)||0,top:n/(o-a)||0,scrollLeft:t,scrollTop:n,scrollWidth:r,scrollHeight:o,clientWidth:i,clientHeight:a}}getThumbHorizontalWidth(){const{scrollWidth:t,clientWidth:n}=this.view;return this.getThumbDimension(t,n,!1)}getThumbVerticalHeight(){const{scrollHeight:t,clientHeight:n}=this.view;return this.getThumbDimension(t,n,!0)}getThumbDimension(t,n,r){const{thumbSize:o,thumbMinSize:i}=this.props,a=r?Ob(this.trackVertical):Rb(this.trackHorizontal),s=Math.ceil(n/t*a);return Math.abs(a-s)<=2?0:o||Math.max(s,i)}getScrollLeftForOffset(t){const{scrollWidth:n,clientWidth:r}=this.view,o=Rb(this.trackHorizontal),i=this.getThumbHorizontalWidth();return t/(o-i)*(n-r)}getScrollTopForOffset(t){const{scrollHeight:n,clientHeight:r}=this.view,o=Ob(this.trackVertical),i=this.getThumbVerticalHeight();return t/(o-i)*(n-r)}addListeners(){if(typeof document=="undefined"||!this.view)return;const{view:t,trackHorizontal:n,trackVertical:r,thumbHorizontal:o,thumbVertical:i}=this;t.addEventListener("scroll",this.handleScroll),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),r.addEventListener("mouseenter",this.handleTrackMouseEnter),r.addEventListener("mouseleave",this.handleTrackMouseLeave),r.addEventListener("mousedown",this.handleVerticalTrackMouseDown),o.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize)}removeListeners(){if(typeof document=="undefined"||!this.view)return;const{view:t,trackHorizontal:n,trackVertical:r,thumbHorizontal:o,thumbVertical:i}=this;t.removeEventListener("scroll",this.handleScroll),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),r.removeEventListener("mouseenter",this.handleTrackMouseEnter),r.removeEventListener("mouseleave",this.handleTrackMouseLeave),r.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),o.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging()}handleScrollAutoHide(t=!0){const{autoHide:n}=this.props;n&&(t?this.showTracks():this.hideTracks())}setupDragging(){Uo(document.body,zU),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=()=>!1}teardownDragging(){Uo(document.body,WU),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}handleDragStart(t){this.dragging=!0,t.stopImmediatePropagation(),this.setupDragging()}handleDragEndAutoHide(){const{autoHide:t}=this.props;t&&this.hideTracks()}handleTrackMouseEnterAutoHide(){const{autoHide:t}=this.props;t&&this.showTracks()}handleTrackMouseLeaveAutoHide(){const{autoHide:t}=this.props;t&&this.hideTracks()}showTracks(){clearTimeout(this.hideTracksTimeout),Uo(this.trackHorizontal,{opacity:1}),Uo(this.trackVertical,{opacity:1})}hideTracks(){if(this.dragging||this.trackMouseOver||this.scrolling)return;const{autoHideTimeout:t}=this.props;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(()=>{Uo(this.trackHorizontal,{opacity:0}),Uo(this.trackVertical,{opacity:0})},t)}detectScrolling(){this.scrolling||(this.scrolling=!0,this.handleScrollAutoHide(!0),this.detectScrollingInterval=setInterval(()=>{this.lastViewScrollLeft===this.viewScrollLeft&&this.lastViewScrollTop===this.viewScrollTop&&(clearInterval(this.detectScrollingInterval),this.scrolling=!1,this.handleScrollAutoHide(!1)),this.lastViewScrollLeft=this.viewScrollLeft,this.lastViewScrollTop=this.viewScrollTop},100))}raf(t){this.requestFrame&&KT.cancel(this.requestFrame),this.requestFrame=KT(()=>{this.requestFrame=void 0,t()})}handleUpdate(t){const{hideTracksWhenNotNeeded:n}=this.props,r=this.getMeasurements(),{scrollLeft:o,clientWidth:i,scrollWidth:a}=r,s=Rb(this.trackHorizontal),c=this.getThumbHorizontalWidth(),l=o/(a-i)*(s-c),d={width:c,transform:`translateX(${l}px)`},{scrollTop:p,clientHeight:f,scrollHeight:v}=r,b=Ob(this.trackVertical),_=this.getThumbVerticalHeight(),y=p/(v-f)*(b-_),C={height:_,transform:`translateY(${y}px)`};if(n){const k={visibility:a>i?"visible":"hidden"},T={visibility:v>f?"visible":"hidden"};Uo(this.trackHorizontal,k),Uo(this.trackVertical,T)}Uo(this.thumbHorizontal,d),Uo(this.thumbVertical,C),typeof t=="function"&&t(r)}update(t){this.raf(()=>this.handleUpdate(t))}scrollLeft(t=0){this.view&&(this.view.scrollLeft=t)}scrollTop(t=0){this.view&&(this.view.scrollTop=t)}renderTracks(){const{renderThumbVertical:t,renderThumbHorizontal:n,renderTrackHorizontal:r,renderTrackVertical:o,autoHideDuration:i,autoHide:a}=this.props,s={transition:`opacity ${i}ms`,opacity:0},c=de(de({},FU),a&&s),l=de(de({},BU),a&&s),d=t({style:$U,ref:this.setThumbVerticalRef}),p=o({key:"trackVertical",style:l,ref:this.setTrackVerticalRef,children:d,className:"scroll-elem__vertical-track"}),f=n({style:HU,ref:this.setThumbHorizontalRef});return[r({key:"trackHorizontal",style:c,ref:this.setTrackHorizontalRef,children:f,className:"scroll-elem__horizontal-track"}),p]}render(){const t=NU(),n=this.props,{autoHeight:r,autoHeightMin:o,autoHeightMax:i,style:a,children:s}=n,c=Dn(n,["autoHeight","autoHeightMin","autoHeightMax","style","children"]),l=de(de(de({},aE),r&&$e(de({},sE),{minHeight:o,maxHeight:i})),a),d=de(de(de({},aE),r&&$e(de({},sE),{minHeight:o,maxHeight:i})),a);typeof d.height=="number"&&(d.height-=c.scrollOffset||0);const p=de($e(de({},LU),{marginRight:t?-t:0,marginBottom:t?-t:0}),r&&$e(de({},jU),{minHeight:iE(o)?`calc(${o} + ${t}px)`:o+t,maxHeight:iE(i)?`calc(${i} + ${t}px)`:i+t}));t||(p.scrollbarWidth="none");const f=c.className||"pivot-scroller",v=`${f}__container`,b=`${f}__view`;return A.jsxs("div",{className:f,style:l,children:[A.jsx("div",{className:v,style:d,children:A.jsx("div",{className:b,style:p,ref:this.setViewRef,children:s})}),this.renderTracks()]})}}q(a_,"defaultProps",{renderTrackHorizontal:UU,renderTrackVertical:qU,renderThumbHorizontal:YU,renderThumbVertical:VU,thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,scrollOffset:0});class TI extends B.PureComponent{constructor(){super(...arguments),q(this,"container"),q(this,"containerRef",t=>{this.container=t}),q(this,"onMouseWheel",t=>{if(!this.props.activated)return;const n=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail)),r=t.wheelDeltaX,o=t.wheelDeltaY;this.props.onMouseScroll&&this.props.onMouseScroll(t,n,r,o)})}componentDidMount(){this.container&&(this.container.addEventListener("mousewheel",this.onMouseWheel),this.container.addEventListener("DOMMouseScroll",this.onMouseWheel))}componentWillUnmount(){this.container&&(this.container.removeEventListener("mousewheel",this.onMouseWheel),this.container.removeEventListener("DOMMouseScroll",this.onMouseWheel))}render(){const t=this.props,{children:n,activated:r,onMouseScroll:o}=t,i=Dn(t,["children","activated","onMouseScroll"]);return A.jsx("div",$e(de({},i),{ref:this.containerRef,children:n}))}}q(TI,"defaultProps",{activated:!0});function Mb(e){if(!document)return e;const t=document.createElement("div");if(t.getBoundingClientRect){t.style.width="1px",t.style.height="1px",t.style.boxSizing="content-box",t.style.border=`solid ${e}px black`,document.body.appendChild(t);const n=t.getBoundingClientRect();return document.body.removeChild(t),(n.width-1)/2}return e}function lE(e){let t=[],n=[];return e.cornerTreeService&&(t=e.cornerTreeService.getLastLevelNodes()),e.columnsTreeService&&(n=e.columnsTreeService.getLastLevelNodes()),[...t,...n].map(r=>Kn(r))}class EI extends B.PureComponent{constructor(t){super(t),q(this,"logger"),q(this,"data",[]),q(this,"cellsMetadata",new Map),q(this,"cornerTable",[]),q(this,"columnsTable",[]),q(this,"rowsTable",[]),q(this,"dataBars",[]),q(this,"rangeMinMax",[]),q(this,"fixRowsCount",0),q(this,"fixColsCount",0),q(this,"rowsCount",0),q(this,"colsCount",0),q(this,"scrollContainer"),q(this,"leftContainer"),q(this,"topContainer"),q(this,"rightContainer"),q(this,"resetScroll"),q(this,"isMainGridUpdateSkiped",!1),q(this,"isFullWidthRefreshed",!1),q(this,"isDomReadyTriggered",!1),q(this,"domReadyTriggerTime",0),q(this,"measure"),q(this,"styleObj"),q(this,"cellDomReadyPromises"),q(this,"addCellDomReadyPromise",r=>{this.cellDomReadyPromises=this.cellDomReadyPromises||[],r&&this.cellDomReadyPromises.push(r.promise)}),q(this,"removeCellDomReadyPromise",r=>{this.cellDomReadyPromises=this.cellDomReadyPromises||[],r&&(this.cellDomReadyPromises=this.cellDomReadyPromises.filter(o=>o!==r.promise))}),q(this,"onChange",(r,o)=>{this.setState({widths:r,heights:o}),this.topContainer&&this.topContainer.classList.add("active"),this.leftContainer&&this.leftContainer.classList.add("active"),this.rightContainer&&this.rightContainer.classList.add("active"),this.isMainGridUpdateSkiped&&(this.isMainGridUpdateSkiped=!1,this.onMainGridUpdated())}),q(this,"onResize",()=>{const r=window.devicePixelRatio||1;this.state.zoomRatio!==r&&this.setState({zoomRatio:r,borderWidth:Mb(this.props.borderWidth||1)})}),q(this,"onScroll",r=>{const o=r.target,i=o.scrollTop,a=o.scrollLeft;this.leftContainer&&(this.leftContainer.scrollTop=i),this.topContainer&&(this.topContainer.scrollLeft=a),this.scrollContainer&&this.scrollContainer.view&&(this.scrollContainer.view.scrollTop=i)}),q(this,"onMouseScroll",(r,o)=>{let i=0,a=0;if(this.scrollContainer&&this.scrollContainer.view){const{offsetHeight:s,scrollHeight:c}=this.scrollContainer.view;i=this.scrollContainer.view.scrollTop,a=i+-o*40,o>0?a>0&&r.preventDefault():a<c-s&&r.preventDefault(),this.scrollContainer.view.scrollTop=a}}),q(this,"onMainGridUpdated",()=>{if(this.state.tableSize.hasPendingChanges()){this.isMainGridUpdateSkiped=!0;return}if(this.isMainGridUpdateSkiped=!1,this.props.onGridUpdated&&this.props.onGridUpdated(),this.props.onInitLoadingFinish&&!this.isDomReadyTriggered&&this.props.onInitLoadingFinish(),this.props.onTotalSizeChange&&this.scrollContainer&&this.scrollContainer.view){const r=this.scrollContainer.view.children[0].scrollHeight+this.props.scrollBarsMargin;this.props.onTotalSizeChange(r)}if(this.props.isFullWidth&&!this.isDomReadyTriggered&&!this.isFullWidthRefreshed){this.isFullWidthRefreshed=!0;const{width:r,scrollBarsMargin:o=0}=this.props,{tableSize:i}=this.state;i.fitWidths(r-o);return}if(this.props.onDomReady&&this.cellDomReadyPromises&&!this.isDomReadyTriggered){this.isDomReadyTriggered=!0;const{onDomReady:r}=this.props,o=new Date().getTime();Promise.all(this.cellDomReadyPromises).catch(i=>{this.logger.warn(`Cell "domready" promise rejected with "${i.message}"`)}).then(()=>{this.domReadyTriggerTime===o&&r()}),this.domReadyTriggerTime=o}}),q(this,"cellRenderer",r=>{const{type:o,clone:i,rowIndex:a,colIndex:s,isMobile:c,colWidth:l}=r,{borderWidth:d,tableSize:p}=this.state,{columnWidth:f}=p,v=this.props.addCellDomReadyPromise||this.addCellDomReadyPromise,b=this.props.removeCellDomReadyPromise||this.removeCellDomReadyPromise;let _=o,y,C=a,k=s,T,x,E,O,S,R,D,P,I,j=0,W=0,F,H;if(a>=this.fixRowsCount&&s>=this.fixColsCount){k-=this.fixColsCount,C-=this.fixRowsCount;try{x=this.data[C][k]}catch(se){throw new Error(`cellRenderer can't find data item for ${a}-${k}`)}if(H=`${C+this.fixRowsCount}-${k+this.fixColsCount}`,T=this.cellsMetadata.get(H),this.state.rowsTreeService){O=this.state.rowsTreeService.getMetadata(C,1/0);const se=this.state.rowsTreeService.getLastLevelNodes();E=Kn(se[C])}if(this.state.columnsTreeService){R=this.state.columnsTreeService.getMetadata(1/0,k);const se=this.state.columnsTreeService.getLastLevelNodes();S=Kn(se[k]),S&&S.metadataType===Ze.MEASURES?(D=S,S.parent&&(S=Kn(S.parent))):R&&R.valueNode&&(D=Kn(R.valueNode))}}else s>=this.fixColsCount?(_=Gn.COLUMNS,y=this.state.columnsTreeService,k-=this.fixColsCount,j=this.fixColsCount):a>=this.fixRowsCount?(_=Gn.ROWS,y=this.state.rowsTreeService,C-=this.fixRowsCount,W=this.fixRowsCount):(_=Gn.CORNER,y=this.state.cornerTreeService);if(y){const se=y.getTreeNode(C,k);P=se?Kn(se):void 0,I=y.getMetadata(C,k),H=`${C}-${k}`,s>=this.fixColsCount?H=`${C}-${k+this.fixColsCount}`:a>=this.fixRowsCount&&(H=`${C+this.fixRowsCount}-${k}`),T=this.cellsMetadata.get(H),F=y.getMainCellWidth(C,k,f,d,{columnsOffset:j,offsetTop:W})}const $=(P||x||{}).store||{};this.addCellDomReadyPromise($.domReadyDefer||$.domReadyDeffer);let G={},K=!1,Z=f({index:s}),X=!1;return y&&y.isChildren(C,k)?K=!0:y&&y.hasChildren(C,k)&&(G=y.getMainCellSpans(C,k),F&&(Z=F)),(this.state.tableSize.hasInitialFixedWidth(s)||i)&&(X=!0),X&&isNaN(Z)&&l&&(Z=l),K?null:A.jsx(nL,$e(de({isDataCell:!!x,tdComponent:"td",measure:this.measure,onSortingMetadataUpdate:this.props.onSortingMetadataUpdate,styleObj:this.styleObj,onSortingSettingsChanged:this.props.onSortingSettingsChanged,getSortingPopupContainer:this.props.getSortingPopupContainer,borderWidth:d,borderColor:this.props.borderColor,dataNode:x,cellMetadata:T,metadata:I,treeNode:P,rowIndex:a,columnIndex:s,tableType:_,rowTreeNode:E,rowMetadata:O,columnTreeNode:S,columnMetadata:R,measureTreeNode:D,parent:this,fixedWidth:X,tableSize:this.state.tableSize,isSelectedMode:this.props.isSelectedMode,allowHtml:this.props.allowHtml,onCellClick:this.props.onCellClick,onCellEnter:this.props.onCellEnter,onCellLeave:this.props.onCellLeave},G),{colWidth:Z,clone:i,zoomRatio:this.state.zoomRatio,rowHeight:this.props.rowHeight,imageColumns:this.props.imageColumns,fallbackImageUrl:this.props.fallbackImageUrl,addCellDomReadyPromise:v,removeCellDomReadyPromise:b,isMobile:c}),H)}),q(this,"scrollContainerRef",r=>{r&&(this.scrollContainer=r,this.resetScroll&&this.scrollContainer&&this.scrollContainer.view&&(this.resetScroll=!1,this.scrollContainer.view.scrollTop=0,this.scrollContainer.view.scrollLeft=0))}),q(this,"leftContainerRef",r=>{r&&(this.leftContainer=r)}),q(this,"topContainerRef",r=>{r&&(this.topContainer=r)}),q(this,"rightContainerRef",r=>{r&&(this.rightContainer=r)}),this.logger=Ha.create("PivotTable");const n=window.devicePixelRatio||1;this.state={tableSize:this.createTableSize(),widths:{},heights:{},borderWidth:Mb(t.borderWidth||1),isResizeInProgress:!1,rowsTreeService:void 0,columnsTreeService:void 0,cornerTreeService:void 0,zoomRatio:n},this.measure=()=>{},this.styleObj={},this.resetScroll=!1,t.dataBars&&t.dataBars.length&&this.notifyDataBars(t.dataBars),t.rangeMinMax&&t.rangeMinMax.length&&this.notifyRangeMinMax(t.rangeMinMax)}componentDidMount(){window.addEventListener("resize",this.onResize),this.props.onGetInitialData&&this.props.onGetInitialData(),this.resetScroll&&this.scrollContainer&&this.scrollContainer.view&&(this.resetScroll=!1,this.scrollContainer.view.scrollTop=0,this.scrollContainer.view.scrollLeft=0,this.topContainer&&this.topContainer.classList.remove("active"),this.leftContainer&&this.leftContainer.classList.remove("active"),this.rightContainer&&this.rightContainer.classList.remove("active"))}UNSAFE_componentWillReceiveProps(t){if(t.borderWidth!==this.props.borderWidth){const n=window.devicePixelRatio||1;this.setState({borderWidth:Mb(t.borderWidth||1),zoomRatio:n})}t.dataBars!==this.props.dataBars&&this.notifyDataBars(t.dataBars),t.rangeMinMax!==this.props.rangeMinMax&&this.notifyRangeMinMax(t.rangeMinMax)}componentDidUpdate(){this.resetScroll&&this.scrollContainer&&this.scrollContainer.view&&(this.resetScroll=!1,this.scrollContainer.view.scrollTop=0,this.scrollContainer.view.scrollLeft=0,this.topContainer&&this.topContainer.classList.remove("active"),this.leftContainer&&this.leftContainer.classList.remove("active"),this.rightContainer&&this.rightContainer.classList.remove("active")),this.notifyDataBars(this.props.dataBars)}componentWillUnmount(){window.removeEventListener("resize",this.onResize)}initialize(t,n,r,o){const{cellsMetadata:i=new Map}=o||{};i!==null&&(this.cellsMetadata=i),this.isDomReadyTriggered=!1,this.isFullWidthRefreshed=!1,this.resetScroll=!0;const a={rowsTreeService:t,columnsTreeService:n,cornerTreeService:r};this.initTableSize(a);const s=this.createTableSize(),c=lE(a);if(this.props.onUpdatePredefinedColumnWidth){const l=this.props.onUpdatePredefinedColumnWidth(c,void 0);s.setInitialFixedWidth(l)}this.cellDomReadyPromises=void 0,!t&&!n&&(this.cellDomReadyPromises=[]),this.setState(de({tableSize:s},a))}addMore(t,n){return this.initialize(t,this.state.columnsTreeService,this.state.cornerTreeService,{isLastPage:n,cellsMetadata:null})}notifyDataBars(t){this.dataBars=(t||[]).map(n=>{if(!n)return n;const[r,o]=n;return[parseFloat(r),parseFloat(o)]}),this.state&&this.state.tableSize&&this.state.tableSize.updateDataBarsMinMax(this.dataBars)}notifyRangeMinMax(t){this.rangeMinMax=(t||[]).map(n=>{if(!n)return n;const[r,o]=n;return[parseFloat(r),parseFloat(o)]}),this.state&&this.state.tableSize&&this.state.tableSize.updateRangeMinMax(this.rangeMinMax)}createTableSize(){this.state&&this.state.tableSize&&this.state.tableSize.off(fw,this.onChange);const t=new eU(this.dataBars,this.rangeMinMax);return t.on(fw,this.onChange),t}hasContent(){return!(this.rowsCount===0&&this.colsCount===0)}getDimensions(){const t={getTreeChildLength:()=>0,getTreeDeepsLength:()=>0},{columnsTreeService:n=t,cornerTreeService:r=t,rowsTreeService:o=t}=this.state;if(o){let i=n===void 0?0:n.getTreeChildLength();r&&(i+=r.getTreeChildLength());const a=o.getTreeChildLength()+(n===void 0?0:n.getTreeDeepsLength());return{height:Array.from({length:a},(s,c)=>[c,this.getRowHeight(c)]),width:Array.from({length:i},(s,c)=>[c,this.getColumnWidth(c)])}}return{height:[],width:[]}}getColumnWidth(t){return this.state.tableSize.columnWidth({index:t})}getRowHeight(t){return this.state.tableSize.rowHeight({index:t})}initTableSize(t){this.data=[],t.rowsTreeService&&(this.data=t.rowsTreeService.extractData(t.columnsTreeService)),this.rowsCount=0,this.colsCount=0,this.fixRowsCount=0,this.fixColsCount=0,this.cornerTable=[],t.cornerTreeService&&(this.cornerTable=t.cornerTreeService.getGrid(),this.fixRowsCount=this.cornerTable.length,this.rowsCount+=this.fixRowsCount,this.cornerTable[0]&&(this.fixColsCount=this.cornerTable[0].length,this.colsCount+=this.fixColsCount)),this.columnsTable=[],t.columnsTreeService&&(this.columnsTable=t.columnsTreeService.getGrid(),this.columnsTable[0]&&(this.colsCount+=this.columnsTable[0].length),t.cornerTreeService||(this.fixRowsCount=this.columnsTable.length,this.rowsCount+=this.fixRowsCount)),this.rowsTable=[],t.rowsTreeService&&(this.rowsTable=t.rowsTreeService.getGrid(),this.rowsCount+=this.rowsTable.length)}resizeColumnStart(){this.setState({isResizeInProgress:!0})}resizeColumn(t,n,r){const[o,i]=t[0];this.state.tableSize.setFixedWidth(o,i)}resizeColumnEnd(t,n){this.setState({isResizeInProgress:!1});const r=[n,t],o=lE(this.state);if(this.props.onUpdatePredefinedColumnWidth){const i=this.props.onUpdatePredefinedColumnWidth(o,r);this.state.tableSize.setInitialFixedWidth(i),this.state.tableSize.notifyChange()}else this.state.tableSize.setFixedWidth(n,t)}render(){const{widths:t,heights:n,borderWidth:r,rowsTreeService:o,columnsTreeService:i,cornerTreeService:a}=this.state,{width:s,height:c,borderColor:l,scrollBarsMargin:d,className:p,isFixedEnabled:f,isMobile:v}=this.props,{rowsCount:b,colsCount:_,fixRowsCount:y,fixColsCount:C}=this,k={width:s,height:c},T=k.height-d,x=k.width-d;let E=0,O=0;t[0]&&(E=Array.from(Array(C)).reduce((D,P,I)=>D+t[I],0),E+=r||1,O=Array.from(Array(y)).reduce((D,P,I)=>D+n[I],0),O+=r||1),E=Math.ceil(E),O=Math.ceil(O);const S=E/x>.75?oU:"";let R="";return y===0&&C===0?R+=`${WT} ${rU} ${UT}`:C===0&&(R+=`${WT} ${UT}`),A.jsxs(TI,{onMouseScroll:this.onMouseScroll,className:`${tU} ${nU} ${S} ${R} ${p}`,children:[A.jsx(a_,{ref:this.scrollContainerRef,style:k,scrollOffset:d,onScroll:this.onScroll,children:A.jsx("div",{className:`${Vd} ${iU} ${VT} ${YT}`,children:A.jsx(ou,{type:Gn.DATA,rowsCount:b,colsCount:_,widths:t,heights:n,rowsTreeService:o,columnsTreeService:i,cornerTreeService:a,borderWidth:r,borderColor:l,tableSize:this.state.tableSize,cellRenderer:this.cellRenderer,zoomRatio:this.state.zoomRatio,onGridUpdated:this.onMainGridUpdated,isMobile:v})})}),f?A.jsxs(A.Fragment,{children:[A.jsx("div",{ref:this.leftContainerRef,className:`${Vd} ${xb} ${aU} ${VT} ${GT}`,style:{width:E,height:T},children:A.jsx(ou,{clone:!0,type:Gn.ROWS,rowsCount:b,colsCount:C,widths:t,heights:n,rowsTreeService:o,borderWidth:r,borderColor:l,tableSize:this.state.tableSize,cellRenderer:this.cellRenderer,zoomRatio:this.state.zoomRatio,isMobile:v})}),A.jsx("div",{ref:this.topContainerRef,className:`${Vd} ${xb} ${sU} ${qT} ${YT}`,style:{height:O,width:x},children:A.jsx(ou,{clone:!0,type:Gn.COLUMNS,rowsCount:y,colsCount:_,widths:t,heights:n,columnsTreeService:i,borderWidth:r,borderColor:l,tableSize:this.state.tableSize,cellRenderer:this.cellRenderer,zoomRatio:this.state.zoomRatio,isMobile:v})}),A.jsx("div",{ref:this.rightContainerRef,className:`${Vd} ${xb} ${lU} ${qT} ${GT}`,style:{width:E,height:O},children:A.jsx(ou,{clone:!0,type:Gn.CORNER,rowsCount:y,colsCount:C,widths:t,heights:n,cornerTreeService:a,borderWidth:r,borderColor:l,tableSize:this.state.tableSize,cellRenderer:this.cellRenderer,zoomRatio:this.state.zoomRatio,isMobile:v})})]}):null]})}}q(EI,"defaultProps",{borderWidth:1,borderColor:"",isFullWidth:!1,isFixedEnabled:!0});const GU="sisense-pivot__pagination-panel",QU="sisense-pivot__pagination-panel-wrapper",JU="sisense-pivot__pagination-panel--showed",ZU="sisense-pivot__pagination-panel--hidden",KU="sisense-pivot__pagination-panel--desktop",XU="sisense-pivot__pagination-panel--limits-only",e9="sisense-pivot__pagination-panel--mobile",t9="sisense-pivot__pagination-panel--notification-only",n9="sisense-pivot__pagination-panel-list-wrapper",r9="sisense-pivot__pagination-panel-notification";function We(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function te(){return te=Object.assign?Object.assign.bind():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},te.apply(this,arguments)}var Jp={},cE={get exports(){return Jp},set exports(e){Jp=e}},mw={},o9={get exports(){return mw},set exports(e){mw=e}},Rt={};/** @license React v16.13.1
|
|
16
|
+
* react-is.production.min.js
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the MIT license found in the
|
|
21
|
+
* LICENSE file in the root directory of this source tree.
|
|
22
|
+
*/var uE;function i9(){if(uE)return Rt;uE=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function T(E){if(typeof E=="object"&&E!==null){var O=E.$$typeof;switch(O){case t:switch(E=E.type,E){case c:case l:case r:case i:case o:case p:return E;default:switch(E=E&&E.$$typeof,E){case s:case d:case b:case v:case a:return E;default:return O}}case n:return O}}}function x(E){return T(E)===l}return Rt.AsyncMode=c,Rt.ConcurrentMode=l,Rt.ContextConsumer=s,Rt.ContextProvider=a,Rt.Element=t,Rt.ForwardRef=d,Rt.Fragment=r,Rt.Lazy=b,Rt.Memo=v,Rt.Portal=n,Rt.Profiler=i,Rt.StrictMode=o,Rt.Suspense=p,Rt.isAsyncMode=function(E){return x(E)||T(E)===c},Rt.isConcurrentMode=x,Rt.isContextConsumer=function(E){return T(E)===s},Rt.isContextProvider=function(E){return T(E)===a},Rt.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Rt.isForwardRef=function(E){return T(E)===d},Rt.isFragment=function(E){return T(E)===r},Rt.isLazy=function(E){return T(E)===b},Rt.isMemo=function(E){return T(E)===v},Rt.isPortal=function(E){return T(E)===n},Rt.isProfiler=function(E){return T(E)===i},Rt.isStrictMode=function(E){return T(E)===o},Rt.isSuspense=function(E){return T(E)===p},Rt.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===l||E===i||E===o||E===p||E===f||typeof E=="object"&&E!==null&&(E.$$typeof===b||E.$$typeof===v||E.$$typeof===a||E.$$typeof===s||E.$$typeof===d||E.$$typeof===y||E.$$typeof===C||E.$$typeof===k||E.$$typeof===_)},Rt.typeOf=T,Rt}var Pt={};/** @license React v16.13.1
|
|
23
|
+
* react-is.development.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/var dE;function a9(){return dE||(dE=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function T(re){return typeof re=="string"||typeof re=="function"||re===r||re===l||re===i||re===o||re===p||re===f||typeof re=="object"&&re!==null&&(re.$$typeof===b||re.$$typeof===v||re.$$typeof===a||re.$$typeof===s||re.$$typeof===d||re.$$typeof===y||re.$$typeof===C||re.$$typeof===k||re.$$typeof===_)}function x(re){if(typeof re=="object"&&re!==null){var ue=re.$$typeof;switch(ue){case t:var ie=re.type;switch(ie){case c:case l:case r:case i:case o:case p:return ie;default:var be=ie&&ie.$$typeof;switch(be){case s:case d:case b:case v:case a:return be;default:return ue}}case n:return ue}}}var E=c,O=l,S=s,R=a,D=t,P=d,I=r,j=b,W=v,F=n,H=i,$=o,G=p,K=!1;function Z(re){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),X(re)||x(re)===c}function X(re){return x(re)===l}function se(re){return x(re)===s}function ve(re){return x(re)===a}function fe(re){return typeof re=="object"&&re!==null&&re.$$typeof===t}function me(re){return x(re)===d}function ge(re){return x(re)===r}function Se(re){return x(re)===b}function _e(re){return x(re)===v}function oe(re){return x(re)===n}function N(re){return x(re)===i}function z(re){return x(re)===o}function Q(re){return x(re)===p}Pt.AsyncMode=E,Pt.ConcurrentMode=O,Pt.ContextConsumer=S,Pt.ContextProvider=R,Pt.Element=D,Pt.ForwardRef=P,Pt.Fragment=I,Pt.Lazy=j,Pt.Memo=W,Pt.Portal=F,Pt.Profiler=H,Pt.StrictMode=$,Pt.Suspense=G,Pt.isAsyncMode=Z,Pt.isConcurrentMode=X,Pt.isContextConsumer=se,Pt.isContextProvider=ve,Pt.isElement=fe,Pt.isForwardRef=me,Pt.isFragment=ge,Pt.isLazy=Se,Pt.isMemo=_e,Pt.isPortal=oe,Pt.isProfiler=N,Pt.isStrictMode=z,Pt.isSuspense=Q,Pt.isValidElementType=T,Pt.typeOf=x}()),Pt}var pE;function AI(){return pE||(pE=1,function(e){process.env.NODE_ENV==="production"?e.exports=i9():e.exports=a9()}(o9)),mw}/*
|
|
30
|
+
object-assign
|
|
31
|
+
(c) Sindre Sorhus
|
|
32
|
+
@license MIT
|
|
33
|
+
*/var Pb,hE;function s9(){if(hE)return Pb;hE=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(d){l[d]=d}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch(d){return!1}}return Pb=o()?Object.assign:function(i,a){for(var s,c=r(i),l,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var p in s)t.call(s,p)&&(c[p]=s[p]);if(e){l=e(s);for(var f=0;f<l.length;f++)n.call(s,l[f])&&(c[l[f]]=s[l[f]])}}return c},Pb}var Ib,fE;function s_(){if(fE)return Ib;fE=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ib=e,Ib}var gE,mE;function OI(){return mE||(mE=1,gE=Function.call.bind(Object.prototype.hasOwnProperty)),gE}var Nb,vE;function l9(){if(vE)return Nb;vE=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=s_(),n={},r=OI();e=function(i){var a="Warning: "+i;typeof console!="undefined"&&console.error(a);try{throw new Error(a)}catch(s){}}}function o(i,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var p;try{if(typeof i[d]!="function"){var f=Error((c||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}p=i[d](a,d,c,s,null,t)}catch(b){p=b}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var v=l?l():"";e("Failed "+s+" type: "+p.message+(v!=null?v:""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Nb=o,Nb}var Lb,bE;function c9(){if(bE)return Lb;bE=1;var e=AI(),t=s9(),n=s_(),r=OI(),o=l9(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console!="undefined"&&console.error(c);try{throw new Error(c)}catch(l){}});function a(){return null}return Lb=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(X){var se=X&&(l&&X[l]||X[d]);if(typeof se=="function")return se}var f="<<anonymous>>",v={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:k(),arrayOf:T,element:x(),elementType:E(),instanceOf:O,node:P(),objectOf:R,oneOf:S,oneOfType:D,shape:j,exact:W};function b(X,se){return X===se?X!==0||1/X===1/se:X!==X&&se!==se}function _(X,se){this.message=X,this.data=se&&typeof se=="object"?se:{},this.stack=""}_.prototype=Error.prototype;function y(X){if(process.env.NODE_ENV!=="production")var se={},ve=0;function fe(ge,Se,_e,oe,N,z,Q){if(oe=oe||f,z=z||_e,Q!==n){if(c){var re=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 re.name="Invariant Violation",re}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var ue=oe+":"+_e;!se[ue]&&ve<3&&(i("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+oe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),se[ue]=!0,ve++)}}return Se[_e]==null?ge?Se[_e]===null?new _("The "+N+" `"+z+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new _("The "+N+" `"+z+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:X(Se,_e,oe,N,z)}var me=fe.bind(null,!1);return me.isRequired=fe.bind(null,!0),me}function C(X){function se(ve,fe,me,ge,Se,_e){var oe=ve[fe],N=$(oe);if(N!==X){var z=G(oe);return new _("Invalid "+ge+" `"+Se+"` of type "+("`"+z+"` supplied to `"+me+"`, expected ")+("`"+X+"`."),{expectedType:X})}return null}return y(se)}function k(){return y(a)}function T(X){function se(ve,fe,me,ge,Se){if(typeof X!="function")return new _("Property `"+Se+"` of component `"+me+"` has invalid PropType notation inside arrayOf.");var _e=ve[fe];if(!Array.isArray(_e)){var oe=$(_e);return new _("Invalid "+ge+" `"+Se+"` of type "+("`"+oe+"` supplied to `"+me+"`, expected an array."))}for(var N=0;N<_e.length;N++){var z=X(_e,N,me,ge,Se+"["+N+"]",n);if(z instanceof Error)return z}return null}return y(se)}function x(){function X(se,ve,fe,me,ge){var Se=se[ve];if(!s(Se)){var _e=$(Se);return new _("Invalid "+me+" `"+ge+"` of type "+("`"+_e+"` supplied to `"+fe+"`, expected a single ReactElement."))}return null}return y(X)}function E(){function X(se,ve,fe,me,ge){var Se=se[ve];if(!e.isValidElementType(Se)){var _e=$(Se);return new _("Invalid "+me+" `"+ge+"` of type "+("`"+_e+"` supplied to `"+fe+"`, expected a single ReactElement type."))}return null}return y(X)}function O(X){function se(ve,fe,me,ge,Se){if(!(ve[fe]instanceof X)){var _e=X.name||f,oe=Z(ve[fe]);return new _("Invalid "+ge+" `"+Se+"` of type "+("`"+oe+"` supplied to `"+me+"`, expected ")+("instance of `"+_e+"`."))}return null}return y(se)}function S(X){if(!Array.isArray(X))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function se(ve,fe,me,ge,Se){for(var _e=ve[fe],oe=0;oe<X.length;oe++)if(b(_e,X[oe]))return null;var N=JSON.stringify(X,function(z,Q){var re=G(Q);return re==="symbol"?String(Q):Q});return new _("Invalid "+ge+" `"+Se+"` of value `"+String(_e)+"` "+("supplied to `"+me+"`, expected one of "+N+"."))}return y(se)}function R(X){function se(ve,fe,me,ge,Se){if(typeof X!="function")return new _("Property `"+Se+"` of component `"+me+"` has invalid PropType notation inside objectOf.");var _e=ve[fe],oe=$(_e);if(oe!=="object")return new _("Invalid "+ge+" `"+Se+"` of type "+("`"+oe+"` supplied to `"+me+"`, expected an object."));for(var N in _e)if(r(_e,N)){var z=X(_e,N,me,ge,Se+"."+N,n);if(z instanceof Error)return z}return null}return y(se)}function D(X){if(!Array.isArray(X))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var se=0;se<X.length;se++){var ve=X[se];if(typeof ve!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(ve)+" at index "+se+"."),a}function fe(me,ge,Se,_e,oe){for(var N=[],z=0;z<X.length;z++){var Q=X[z],re=Q(me,ge,Se,_e,oe,n);if(re==null)return null;re.data&&r(re.data,"expectedType")&&N.push(re.data.expectedType)}var ue=N.length>0?", expected one of type ["+N.join(", ")+"]":"";return new _("Invalid "+_e+" `"+oe+"` supplied to "+("`"+Se+"`"+ue+"."))}return y(fe)}function P(){function X(se,ve,fe,me,ge){return F(se[ve])?null:new _("Invalid "+me+" `"+ge+"` supplied to "+("`"+fe+"`, expected a ReactNode."))}return y(X)}function I(X,se,ve,fe,me){return new _((X||"React class")+": "+se+" type `"+ve+"."+fe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+me+"`.")}function j(X){function se(ve,fe,me,ge,Se){var _e=ve[fe],oe=$(_e);if(oe!=="object")return new _("Invalid "+ge+" `"+Se+"` of type `"+oe+"` "+("supplied to `"+me+"`, expected `object`."));for(var N in X){var z=X[N];if(typeof z!="function")return I(me,ge,Se,N,G(z));var Q=z(_e,N,me,ge,Se+"."+N,n);if(Q)return Q}return null}return y(se)}function W(X){function se(ve,fe,me,ge,Se){var _e=ve[fe],oe=$(_e);if(oe!=="object")return new _("Invalid "+ge+" `"+Se+"` of type `"+oe+"` "+("supplied to `"+me+"`, expected `object`."));var N=t({},ve[fe],X);for(var z in N){var Q=X[z];if(r(X,z)&&typeof Q!="function")return I(me,ge,Se,z,G(Q));if(!Q)return new _("Invalid "+ge+" `"+Se+"` key `"+z+"` supplied to `"+me+"`.\nBad object: "+JSON.stringify(ve[fe],null," ")+`
|
|
34
|
+
Valid keys: `+JSON.stringify(Object.keys(X),null," "));var re=Q(_e,z,me,ge,Se+"."+z,n);if(re)return re}return null}return y(se)}function F(X){switch(typeof X){case"number":case"string":case"undefined":return!0;case"boolean":return!X;case"object":if(Array.isArray(X))return X.every(F);if(X===null||s(X))return!0;var se=p(X);if(se){var ve=se.call(X),fe;if(se!==X.entries){for(;!(fe=ve.next()).done;)if(!F(fe.value))return!1}else for(;!(fe=ve.next()).done;){var me=fe.value;if(me&&!F(me[1]))return!1}}else return!1;return!0;default:return!1}}function H(X,se){return X==="symbol"?!0:se?se["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&se instanceof Symbol:!1}function $(X){var se=typeof X;return Array.isArray(X)?"array":X instanceof RegExp?"object":H(se,X)?"symbol":se}function G(X){if(typeof X=="undefined"||X===null)return""+X;var se=$(X);if(se==="object"){if(X instanceof Date)return"date";if(X instanceof RegExp)return"regexp"}return se}function K(X){var se=G(X);switch(se){case"array":case"object":return"an "+se;case"boolean":case"date":case"regexp":return"a "+se;default:return se}}function Z(X){return!X.constructor||!X.constructor.name?f:X.constructor.name}return v.checkPropTypes=o,v.resetWarningCache=o.resetWarningCache,v.PropTypes=v,v},Lb}var jb,yE;function u9(){if(yE)return jb;yE=1;var e=s_();function t(){}function n(){}return n.resetWarningCache=t,jb=function(){function r(a,s,c,l,d,p){if(p!==e){var f=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 f.name="Invariant Violation",f}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},jb}var wE;function RI(){if(wE)return Jp;if(wE=1,process.env.NODE_ENV!=="production"){var e=AI(),t=!0;cE.exports=c9()(e.isElement,t)}else cE.exports=u9()();return Jp}var d9=RI();const g=Oo(d9);function DI(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=DI(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Xe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=DI(e))&&(r&&(r+=" "),r+=t);return r}function p9(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function h9(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const f9=Number.isInteger||h9;function MI(e,t,n,r){const o=e[t];if(o==null||!f9(o)){const i=p9(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function PI(e,t,...n){return e[t]===void 0?null:MI(e,t,...n)}function vw(){return null}PI.isRequired=MI;vw.isRequired=vw;const hi=process.env.NODE_ENV==="production"?vw:PI;function $a(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function xu(e){return typeof e=="string"}function iu(e,t,n){return e===void 0||xu(e)?t:te({},t,{ownerState:te({},t.ownerState,n)})}const g9={disableDefaultClasses:!1},II=B.createContext(g9);process.env.NODE_ENV!=="production"&&(II.displayName="ClassNameConfiguratorContext");function m9(e){const{disableDefaultClasses:t}=B.useContext(II);return n=>t?"":e(n)}function NI(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function v9(e,t,n){return typeof e=="function"?e(t,n):e}function Sa(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function LI(e){if(!Sa(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=LI(e[n])}),t}function Jr(e,t,n={clone:!0}){const r=n.clone?te({},e):e;return Sa(e)&&Sa(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Sa(t[o])&&o in e&&Sa(e[o])?r[o]=Jr(e[o],t[o],n):n.clone?r[o]=Sa(t[o])?LI(t[o]):t[o]:r[o]=t[o])}),r}const b9=Object.freeze(Object.defineProperty({__proto__:null,default:Jr,isPlainObject:Sa},Symbol.toStringTag,{value:"Module"}));function y9(e){const{prototype:t={}}=e;return!!t.isReactComponent}function jI(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window=="undefined")return null;let s;const c=i.type;return typeof c=="function"&&!y9(c)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const FI=$a(g.element,jI);FI.isRequired=$a(g.element.isRequired,jI);const Gu=FI;function w9(e){const{prototype:t={}}=e;return!!t.isReactComponent}function _9(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window=="undefined")return null;let s;return typeof i=="function"&&!w9(i)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const l_=$a(g.elementType,_9),x9="exact-prop: ";function gf(e){return process.env.NODE_ENV==="production"?e:te({},e,{[x9]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function As(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const C9=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"}));var bw={},S9={get exports(){return bw},set exports(e){bw=e}},Dt={};/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-is.production.min.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var _E;function k9(){if(_E)return Dt;_E=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function _(y){if(typeof y=="object"&&y!==null){var C=y.$$typeof;switch(C){case e:switch(y=y.type,y){case n:case o:case r:case l:case d:return y;default:switch(y=y&&y.$$typeof,y){case s:case a:case c:case f:case p:case i:return y;default:return C}}case t:return C}}}return Dt.ContextConsumer=a,Dt.ContextProvider=i,Dt.Element=e,Dt.ForwardRef=c,Dt.Fragment=n,Dt.Lazy=f,Dt.Memo=p,Dt.Portal=t,Dt.Profiler=o,Dt.StrictMode=r,Dt.Suspense=l,Dt.SuspenseList=d,Dt.isAsyncMode=function(){return!1},Dt.isConcurrentMode=function(){return!1},Dt.isContextConsumer=function(y){return _(y)===a},Dt.isContextProvider=function(y){return _(y)===i},Dt.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Dt.isForwardRef=function(y){return _(y)===c},Dt.isFragment=function(y){return _(y)===n},Dt.isLazy=function(y){return _(y)===f},Dt.isMemo=function(y){return _(y)===p},Dt.isPortal=function(y){return _(y)===t},Dt.isProfiler=function(y){return _(y)===o},Dt.isStrictMode=function(y){return _(y)===r},Dt.isSuspense=function(y){return _(y)===l},Dt.isSuspenseList=function(y){return _(y)===d},Dt.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===o||y===r||y===l||y===d||y===v||typeof y=="object"&&y!==null&&(y.$$typeof===f||y.$$typeof===p||y.$$typeof===i||y.$$typeof===a||y.$$typeof===c||y.$$typeof===b||y.getModuleId!==void 0)},Dt.typeOf=_,Dt}var It={};/**
|
|
43
|
+
* @license React
|
|
44
|
+
* react-is.development.js
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/var xE;function T9(){return xE||(xE=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),b=!1,_=!1,y=!1,C=!1,k=!1,T;T=Symbol.for("react.module.reference");function x(ie){return!!(typeof ie=="string"||typeof ie=="function"||ie===n||ie===o||k||ie===r||ie===l||ie===d||C||ie===v||b||_||y||typeof ie=="object"&&ie!==null&&(ie.$$typeof===f||ie.$$typeof===p||ie.$$typeof===i||ie.$$typeof===a||ie.$$typeof===c||ie.$$typeof===T||ie.getModuleId!==void 0))}function E(ie){if(typeof ie=="object"&&ie!==null){var be=ie.$$typeof;switch(be){case e:var De=ie.type;switch(De){case n:case o:case r:case l:case d:return De;default:var we=De&&De.$$typeof;switch(we){case s:case a:case c:case f:case p:case i:return we;default:return be}}case t:return be}}}var O=a,S=i,R=e,D=c,P=n,I=f,j=p,W=t,F=o,H=r,$=l,G=d,K=!1,Z=!1;function X(ie){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function se(ie){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ve(ie){return E(ie)===a}function fe(ie){return E(ie)===i}function me(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===e}function ge(ie){return E(ie)===c}function Se(ie){return E(ie)===n}function _e(ie){return E(ie)===f}function oe(ie){return E(ie)===p}function N(ie){return E(ie)===t}function z(ie){return E(ie)===o}function Q(ie){return E(ie)===r}function re(ie){return E(ie)===l}function ue(ie){return E(ie)===d}It.ContextConsumer=O,It.ContextProvider=S,It.Element=R,It.ForwardRef=D,It.Fragment=P,It.Lazy=I,It.Memo=j,It.Portal=W,It.Profiler=F,It.StrictMode=H,It.Suspense=$,It.SuspenseList=G,It.isAsyncMode=X,It.isConcurrentMode=se,It.isContextConsumer=ve,It.isContextProvider=fe,It.isElement=me,It.isForwardRef=ge,It.isFragment=Se,It.isLazy=_e,It.isMemo=oe,It.isPortal=N,It.isProfiler=z,It.isStrictMode=Q,It.isSuspense=re,It.isSuspenseList=ue,It.isValidElementType=x,It.typeOf=E}()),It}var CE;function E9(){return CE||(CE=1,function(e){process.env.NODE_ENV==="production"?e.exports=k9():e.exports=T9()}(S9)),bw}var qi=E9();const A9=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function BI(e){const t=`${e}`.match(A9);return t&&t[1]||""}function HI(e,t=""){return e.displayName||e.name||BI(e)||t}function SE(e,t,n){const r=HI(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function O9(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return HI(e,"Component");if(typeof e=="object")switch(e.$$typeof){case qi.ForwardRef:return SE(e,e.render,"ForwardRef");case qi.Memo:return SE(e,e.type,"memo");default:return}}}const R9=Object.freeze(Object.defineProperty({__proto__:null,default:O9,getFunctionName:BI},Symbol.toStringTag,{value:"Module"}));function Qi(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const D9=g.oneOfType([g.func,g.object]),Ro=D9;function ot(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":As(7));return e.charAt(0).toUpperCase()+e.slice(1)}const M9=Object.freeze(Object.defineProperty({__proto__:null,default:ot},Symbol.toStringTag,{value:"Module"}));function kE(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function $I(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function vr(e){return e&&e.ownerDocument||document}function Os(e){return vr(e).defaultView||window}function yw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const P9=typeof window!="undefined"?B.useLayoutEffect:B.useEffect,Si=P9;let TE=0;function I9(e){const[t,n]=B.useState(e),r=e||t;return B.useEffect(()=>{t==null&&(TE+=1,n(`mui-${TE}`))},[t]),r}const EE=B[`useId${Math.random()}`.slice(0,5)];function Zp(e){if(EE!==void 0){const t=EE();return e!=null?e:t}return I9(e)}function Cu({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=B.useRef(e!==void 0),[i,a]=B.useState(t),s=o?e:i;if(process.env.NODE_ENV!=="production"){B.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
51
|
+
`))},[r,n,e]);const{current:l}=B.useRef(t);B.useEffect(()=>{!o&&l!==t&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
52
|
+
`))},[JSON.stringify(t)])}const c=B.useCallback(l=>{o||a(l)},[]);return[s,c]}function Aa(e){const t=B.useRef(e);return Si(()=>{t.current=e}),B.useRef((...n)=>(0,t.current)(...n)).current}function jn(...e){return B.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{yw(n,t)})},e)}const AE={};function N9(e,t){const n=B.useRef(AE);return n.current===AE&&(n.current=e(t)),n}const L9=[];function j9(e){B.useEffect(e,L9)}class Qu{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Qu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function jl(){const e=N9(Qu.create).current;return j9(e.disposeEffect),e}let mf=!0,ww=!1;const F9=new Qu,B9={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function H9(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&B9[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function $9(e){e.metaKey||e.altKey||e.ctrlKey||(mf=!0)}function Fb(){mf=!1}function z9(){this.visibilityState==="hidden"&&ww&&(mf=!0)}function W9(e){e.addEventListener("keydown",$9,!0),e.addEventListener("mousedown",Fb,!0),e.addEventListener("pointerdown",Fb,!0),e.addEventListener("touchstart",Fb,!0),e.addEventListener("visibilitychange",z9,!0)}function U9(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return mf||H9(t)}function zI(){const e=B.useCallback(o=>{o!=null&&W9(o.ownerDocument)},[]),t=B.useRef(!1);function n(){return t.current?(ww=!0,F9.start(100,()=>{ww=!1}),t.current=!1,!0):!1}function r(o){return U9(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function WI(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function UI(e,t){const n=te({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=te({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=te({},i),Object.keys(o).forEach(a=>{n[r][a]=UI(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function qt(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const OE=e=>e,q9=()=>{let e=OE;return{configure(t){e=t},generate(t){return e(t)},reset(){e=OE}}},Y9=q9(),V9=Y9,qI={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function $t(e,t,n="Mui"){const r=qI[t];return r?`${n}-${r}`:`${V9.generate(e)}-${t}`}function jt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=$t(e,o,n)}),r}function G9(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Q9=Object.freeze(Object.defineProperty({__proto__:null,default:G9},Symbol.toStringTag,{value:"Module"}));function RE(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function J9(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=Xe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),b=te({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),_=te({},n,o,r);return v.length>0&&(_.className=v),Object.keys(b).length>0&&(_.style=b),{props:_,internalRef:void 0}}const a=NI(te({},o,r)),s=RE(r),c=RE(o),l=t(a),d=Xe(l==null?void 0:l.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p=te({},l==null?void 0:l.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=te({},l,n,c,s);return d.length>0&&(f.className=d),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:l.ref}}const Z9=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Rs(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=We(e,Z9),s=i?{}:v9(r,o),{props:c,internalRef:l}=J9(te({},a,{externalSlotProps:s})),d=jn(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return iu(n,te({},c,{ref:d}),o)}var ps={},_w={},K9={get exports(){return _w},set exports(e){_w=e}},DE;function YI(){return DE||(DE=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(K9)),_w}var xw={},X9={get exports(){return xw},set exports(e){xw=e}},ME;function e7(){return ME||(ME=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(X9)),xw}var Cw={},t7={get exports(){return Cw},set exports(e){Cw=e}},PE;function n7(){return PE||(PE=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(t7)),Cw}function r7(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function o7(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var i7=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(o7(this));var r=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
53
|
+
`+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var i=r7(r);try{i.insertRule(n,i.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',a)}}else r.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),sr="-ms-",Kp="-moz-",St="-webkit-",c_="comm",u_="rule",d_="decl",a7="@import",VI="@keyframes",s7="@layer",l7=Math.abs,vf=String.fromCharCode,c7=Object.assign;function u7(e,t){return Qn(e,0)^45?(((t<<2^Qn(e,0))<<2^Qn(e,1))<<2^Qn(e,2))<<2^Qn(e,3):0}function GI(e){return e.trim()}function d7(e,t){return(e=t.exec(e))?e[0]:e}function kt(e,t,n){return e.replace(t,n)}function Sw(e,t){return e.indexOf(t)}function Qn(e,t){return e.charCodeAt(t)|0}function Su(e,t,n){return e.slice(t,n)}function pi(e){return e.length}function p_(e){return e.length}function Jd(e,t){return t.push(e),e}function p7(e,t){return e.map(t).join("")}var bf=1,Ql=1,QI=0,Ir=0,An=0,hc="";function yf(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:bf,column:Ql,length:a,return:""}}function $c(e,t){return c7(yf("",null,null,"",null,null,0),e,{length:-e.length},t)}function h7(){return An}function f7(){return An=Ir>0?Qn(hc,--Ir):0,Ql--,An===10&&(Ql=1,bf--),An}function Zr(){return An=Ir<QI?Qn(hc,Ir++):0,Ql++,An===10&&(Ql=1,bf++),An}function vi(){return Qn(hc,Ir)}function xp(){return Ir}function Ju(e,t){return Su(hc,e,t)}function ku(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function JI(e){return bf=Ql=1,QI=pi(hc=e),Ir=0,[]}function ZI(e){return hc="",e}function Cp(e){return GI(Ju(Ir-1,kw(e===91?e+2:e===40?e+1:e)))}function g7(e){for(;(An=vi())&&An<33;)Zr();return ku(e)>2||ku(An)>3?"":" "}function m7(e,t){for(;--t&&Zr()&&!(An<48||An>102||An>57&&An<65||An>70&&An<97););return Ju(e,xp()+(t<6&&vi()==32&&Zr()==32))}function kw(e){for(;Zr();)switch(An){case e:return Ir;case 34:case 39:e!==34&&e!==39&&kw(An);break;case 40:e===41&&kw(e);break;case 92:Zr();break}return Ir}function v7(e,t){for(;Zr()&&e+An!==57&&!(e+An===84&&vi()===47););return"/*"+Ju(t,Ir-1)+"*"+vf(e===47?e:Zr())}function b7(e){for(;!ku(vi());)Zr();return Ju(e,Ir)}function y7(e){return ZI(Sp("",null,null,null,[""],e=JI(e),0,[0],e))}function Sp(e,t,n,r,o,i,a,s,c){for(var l=0,d=0,p=a,f=0,v=0,b=0,_=1,y=1,C=1,k=0,T="",x=o,E=i,O=r,S=T;y;)switch(b=k,k=Zr()){case 40:if(b!=108&&Qn(S,p-1)==58){Sw(S+=kt(Cp(k),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:S+=Cp(k);break;case 9:case 10:case 13:case 32:S+=g7(b);break;case 92:S+=m7(xp()-1,7);continue;case 47:switch(vi()){case 42:case 47:Jd(w7(v7(Zr(),xp()),t,n),c);break;default:S+="/"}break;case 123*_:s[l++]=pi(S)*C;case 125*_:case 59:case 0:switch(k){case 0:case 125:y=0;case 59+d:C==-1&&(S=kt(S,/\f/g,"")),v>0&&pi(S)-p&&Jd(v>32?NE(S+";",r,n,p-1):NE(kt(S," ","")+";",r,n,p-2),c);break;case 59:S+=";";default:if(Jd(O=IE(S,t,n,l,d,o,s,T,x=[],E=[],p),i),k===123)if(d===0)Sp(S,t,O,O,x,i,p,s,E);else switch(f===99&&Qn(S,3)===110?100:f){case 100:case 108:case 109:case 115:Sp(e,O,O,r&&Jd(IE(e,O,O,0,0,o,s,T,o,x=[],p),E),o,E,p,s,r?x:E);break;default:Sp(S,O,O,O,[""],E,0,s,E)}}l=d=v=0,_=C=1,T=S="",p=a;break;case 58:p=1+pi(S),v=b;default:if(_<1){if(k==123)--_;else if(k==125&&_++==0&&f7()==125)continue}switch(S+=vf(k),k*_){case 38:C=d>0?1:(S+="\f",-1);break;case 44:s[l++]=(pi(S)-1)*C,C=1;break;case 64:vi()===45&&(S+=Cp(Zr())),f=vi(),d=p=pi(T=S+=b7(xp())),k++;break;case 45:b===45&&pi(S)==2&&(_=0)}}return i}function IE(e,t,n,r,o,i,a,s,c,l,d){for(var p=o-1,f=o===0?i:[""],v=p_(f),b=0,_=0,y=0;b<r;++b)for(var C=0,k=Su(e,p+1,p=l7(_=a[b])),T=e;C<v;++C)(T=GI(_>0?f[C]+" "+k:kt(k,/&\f/g,f[C])))&&(c[y++]=T);return yf(e,t,n,o===0?u_:s,c,l,d)}function w7(e,t,n){return yf(e,t,n,c_,vf(h7()),Su(e,2,-2),0)}function NE(e,t,n,r){return yf(e,t,n,d_,Su(e,0,r),Su(e,r+1,-1),r)}function Yl(e,t){for(var n="",r=p_(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function _7(e,t,n,r){switch(e.type){case s7:if(e.children.length)break;case a7:case d_:return e.return=e.return||e.value;case c_:return"";case VI:return e.return=e.value+"{"+Yl(e.children,r)+"}";case u_:e.value=e.props.join(",")}return pi(n=Yl(e.children,r))?e.return=e.value+"{"+n+"}":""}function x7(e){var t=p_(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function C7(e){return function(t){t.root||(t=t.return)&&e(t)}}var S7=function(e,t,n){for(var r=0,o=0;r=o,o=vi(),r===38&&o===12&&(t[n]=1),!ku(o);)Zr();return Ju(e,Ir)},k7=function(e,t){var n=-1,r=44;do switch(ku(r)){case 0:r===38&&vi()===12&&(t[n]=1),e[n]+=S7(Ir-1,t,n);break;case 2:e[n]+=Cp(r);break;case 4:if(r===44){e[++n]=vi()===58?"&\f":"",t[n]=e[n].length;break}default:e[n]+=vf(r)}while(r=Zr());return e},T7=function(e,t){return ZI(k7(JI(e),t))},LE=new WeakMap,E7=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!LE.get(n))&&!r){LE.set(e,!0);for(var o=[],i=T7(t,o),a=n.props,s=0,c=0;s<i.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[l]):a[l]+" "+i[s]}}},A7=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},O7="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",R7=function(e){return e.type==="comm"&&e.children.indexOf(O7)>-1},D7=function(e){return function(t,n,r){if(!(t.type!=="rule"||e.compat)){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=!!t.parent,a=i?t.parent.children:r,s=a.length-1;s>=0;s--){var c=a[s];if(c.line<t.line)break;if(c.column<t.column){if(R7(c))return;break}}o.forEach(function(l){console.error('The pseudo class "'+l+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+l.split("-child")[0]+'-of-type".')})}}}},KI=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},M7=function(e,t){for(var n=e-1;n>=0;n--)if(!KI(t[n]))return!0;return!1},jE=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},P7=function(e,t,n){KI(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),jE(e)):M7(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),jE(e)))};function XI(e,t){switch(u7(e,t)){case 5103:return St+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return St+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return St+e+Kp+e+sr+e+e;case 6828:case 4268:return St+e+sr+e+e;case 6165:return St+e+sr+"flex-"+e+e;case 5187:return St+e+kt(e,/(\w+).+(:[^]+)/,St+"box-$1$2"+sr+"flex-$1$2")+e;case 5443:return St+e+sr+"flex-item-"+kt(e,/flex-|-self/,"")+e;case 4675:return St+e+sr+"flex-line-pack"+kt(e,/align-content|flex-|-self/,"")+e;case 5548:return St+e+sr+kt(e,"shrink","negative")+e;case 5292:return St+e+sr+kt(e,"basis","preferred-size")+e;case 6060:return St+"box-"+kt(e,"-grow","")+St+e+sr+kt(e,"grow","positive")+e;case 4554:return St+kt(e,/([^-])(transform)/g,"$1"+St+"$2")+e;case 6187:return kt(kt(kt(e,/(zoom-|grab)/,St+"$1"),/(image-set)/,St+"$1"),e,"")+e;case 5495:case 3959:return kt(e,/(image-set\([^]*)/,St+"$1$`$1");case 4968:return kt(kt(e,/(.+:)(flex-)?(.*)/,St+"box-pack:$3"+sr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+St+e+e;case 4095:case 3583:case 4068:case 2532:return kt(e,/(.+)-inline(.+)/,St+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(pi(e)-1-t>6)switch(Qn(e,t+1)){case 109:if(Qn(e,t+4)!==45)break;case 102:return kt(e,/(.+:)(.+)-([^]+)/,"$1"+St+"$2-$3$1"+Kp+(Qn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Sw(e,"stretch")?XI(kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Qn(e,t+1)!==115)break;case 6444:switch(Qn(e,pi(e)-3-(~Sw(e,"!important")&&10))){case 107:return kt(e,":",":"+St)+e;case 101:return kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+St+(Qn(e,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+sr+"$2box$3")+e}break;case 5936:switch(Qn(e,t+11)){case 114:return St+e+sr+kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return St+e+sr+kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return St+e+sr+kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return St+e+sr+e+e}return e}var I7=function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case d_:e.return=XI(e.value,e.length);break;case VI:return Yl([$c(e,{value:kt(e.value,"@","@"+St)})],r);case u_:if(e.length)return p7(e.props,function(o){switch(d7(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yl([$c(e,{props:[kt(o,/:(read-\w+)/,":"+Kp+"$1")]})],r);case"::placeholder":return Yl([$c(e,{props:[kt(o,/:(plac\w+)/,":"+St+"input-$1")]}),$c(e,{props:[kt(o,/:(plac\w+)/,":"+Kp+"$1")]}),$c(e,{props:[kt(o,/:(plac\w+)/,sr+"input-$1")]})],r)}return""})}},N7=[I7],L7=function(e){var t=e.key;if(process.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
54
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var _=b.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var r=e.stylisPlugins||N7;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(b){for(var _=b.getAttribute("data-emotion").split(" "),y=1;y<_.length;y++)o[_[y]]=!0;a.push(b)});var s,c=[E7,A7];process.env.NODE_ENV!=="production"&&c.push(D7({get compat(){return v.compat}}),P7);{var l,d=[_7,process.env.NODE_ENV!=="production"?function(b){b.root||(b.return?l.insert(b.return):b.value&&b.type!==c_&&l.insert(b.value+"{}"))}:C7(function(b){l.insert(b)})],p=x7(c.concat(r,d)),f=function(b){return Yl(y7(b),p)};s=function(b,_,y,C){l=y,process.env.NODE_ENV!=="production"&&_.map!==void 0&&(l={insert:function(k){y.insert(k+_.map)}}),f(b?b+"{"+_.styles+"}":_.styles),C&&(v.inserted[_.name]=!0)}}var v={key:t,sheet:new i7({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return v.sheet.hydrate(a),v};let Tw;typeof document=="object"&&(Tw=L7({key:"css",prepend:!0}));function eN(e){const{injectFirst:t,children:n}=e;return t&&Tw?A.jsx(m.CacheProvider,{value:Tw,children:n}):n}process.env.NODE_ENV!=="production"&&(eN.propTypes={children:g.node,injectFirst:g.bool});function j7(e){return e==null||Object.keys(e).length===0}function h_(e){const{styles:t,defaultTheme:n={}}=e;return A.jsx(m.Global,{styles:typeof t=="function"?r=>t(j7(r)?n:r):t})}process.env.NODE_ENV!=="production"&&(h_.propTypes={defaultTheme:g.object,styles:g.oneOfType([g.array,g.string,g.object,g.func])});/**
|
|
55
|
+
* @mui/styled-engine v5.15.14
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
* This source code is licensed under the MIT license found in the
|
|
59
|
+
* LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/function F7(e,t){const n=m.newStyled(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
61
|
+
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const B7=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},H7=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:h_,StyledEngineProvider:eN,ThemeContext:m.ThemeContext,css:m.css,default:F7,internal_processStyles:B7,keyframes:m.keyframes},Symbol.toStringTag,{value:"Module"})),tN=Ti(H7),$7=Ti(b9),z7=Ti(M9),W7=Ti(R9),U7=["values","unit","step"],q7=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>te({},n,{[r.key]:r.val}),{})};function nN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=We(e,U7),i=q7(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function l(f,v){const b=a.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:v)-r/100}${n})`}function d(f){return a.indexOf(f)+1<a.length?l(f,a[a.indexOf(f)+1]):s(f)}function p(f){const v=a.indexOf(f);return v===0?s(a[1]):v===a.length-1?c(a[v]):l(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return te({keys:a,values:i,up:s,down:c,between:l,only:d,not:p,unit:n},o)}const Y7={borderRadius:4},V7=Y7,G7=process.env.NODE_ENV!=="production"?g.oneOfType([g.number,g.string,g.object,g.array]):{},za=G7;function du(e,t){return t?Jr(e,t,{clone:!1}):e}const f_={xs:0,sm:600,md:900,lg:1200,xl:1536},FE={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${f_[e]}px)`};function Ji(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||FE;return t.reduce((i,a,s)=>(i[o.up(o.keys[s])]=n(t[s]),i),{})}if(typeof t=="object"){const o=r.breakpoints||FE;return Object.keys(t).reduce((i,a)=>{if(Object.keys(o.values||f_).indexOf(a)!==-1){const s=o.up(a);i[s]=n(t[a],a)}else{const s=a;i[s]=t[s]}return i},{})}return n(t)}function Q7(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{}))||{}}function J7(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function wf(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Xp(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=wf(e,n)||r,t&&(o=t(o,r,e)),o}function Sn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],c=a.theme,l=wf(c,r)||{};return Ji(a,s,d=>{let p=Xp(l,o,d);return d===p&&typeof d=="string"&&(p=Xp(l,o,`${t}${d==="default"?"":ot(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:za}:{},i.filterProps=[t],i}function Z7(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const K7={m:"margin",p:"padding"},X7={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},BE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},eq=Z7(e=>{if(e.length>2)if(BE[e])e=BE[e];else return[e];const[t,n]=e.split(""),r=K7[t],o=X7[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),_f=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],tq=[..._f,...xf];function Zu(e,t,n,r){var o;const i=(o=wf(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
62
|
+
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
63
|
+
`))),i[a]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
64
|
+
`)),()=>{})}function rN(e){return Zu(e,"spacing",8,"spacing")}function Ku(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function nq(e,t){return n=>e.reduce((r,o)=>(r[o]=Ku(t,n),r),{})}function rq(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=eq(n),i=nq(o,r),a=e[n];return Ji(e,a,i)}function oN(e,t){const n=rN(e.theme);return Object.keys(e).map(r=>rq(e,t,r,n)).reduce(du,{})}function pn(e){return oN(e,_f)}pn.propTypes=process.env.NODE_ENV!=="production"?_f.reduce((e,t)=>(e[t]=za,e),{}):{};pn.filterProps=_f;function hn(e){return oN(e,xf)}hn.propTypes=process.env.NODE_ENV!=="production"?xf.reduce((e,t)=>(e[t]=za,e),{}):{};hn.filterProps=xf;process.env.NODE_ENV!=="production"&&tq.reduce((e,t)=>(e[t]=za,e),{});function oq(e=8){if(e.mui)return e;const t=rN({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function Cf(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?du(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Co(e){return typeof e!="number"?e:`${e}px solid`}function Do(e,t){return Sn({prop:e,themeKey:"borders",transform:t})}const iq=Do("border",Co),aq=Do("borderTop",Co),sq=Do("borderRight",Co),lq=Do("borderBottom",Co),cq=Do("borderLeft",Co),uq=Do("borderColor"),dq=Do("borderTopColor"),pq=Do("borderRightColor"),hq=Do("borderBottomColor"),fq=Do("borderLeftColor"),gq=Do("outline",Co),mq=Do("outlineColor"),Sf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Zu(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Ku(t,r)});return Ji(e,e.borderRadius,n)}return null};Sf.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:za}:{};Sf.filterProps=["borderRadius"];Cf(iq,aq,sq,lq,cq,uq,dq,pq,hq,fq,Sf,gq,mq);const kf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Zu(e.theme,"spacing",8,"gap"),n=r=>({gap:Ku(t,r)});return Ji(e,e.gap,n)}return null};kf.propTypes=process.env.NODE_ENV!=="production"?{gap:za}:{};kf.filterProps=["gap"];const Tf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Zu(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Ku(t,r)});return Ji(e,e.columnGap,n)}return null};Tf.propTypes=process.env.NODE_ENV!=="production"?{columnGap:za}:{};Tf.filterProps=["columnGap"];const Ef=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Zu(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Ku(t,r)});return Ji(e,e.rowGap,n)}return null};Ef.propTypes=process.env.NODE_ENV!=="production"?{rowGap:za}:{};Ef.filterProps=["rowGap"];const vq=Sn({prop:"gridColumn"}),bq=Sn({prop:"gridRow"}),yq=Sn({prop:"gridAutoFlow"}),wq=Sn({prop:"gridAutoColumns"}),_q=Sn({prop:"gridAutoRows"}),xq=Sn({prop:"gridTemplateColumns"}),Cq=Sn({prop:"gridTemplateRows"}),Sq=Sn({prop:"gridTemplateAreas"}),kq=Sn({prop:"gridArea"});Cf(kf,Tf,Ef,vq,bq,yq,wq,_q,xq,Cq,Sq,kq);function Vl(e,t){return t==="grey"?t:e}const Tq=Sn({prop:"color",themeKey:"palette",transform:Vl}),Eq=Sn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vl}),Aq=Sn({prop:"backgroundColor",themeKey:"palette",transform:Vl});Cf(Tq,Eq,Aq);function Qr(e){return e<=1&&e!==0?`${e*100}%`:e}const Oq=Sn({prop:"width",transform:Qr}),g_=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||f_[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Qr(n)}};return Ji(e,e.maxWidth,t)}return null};g_.filterProps=["maxWidth"];const Rq=Sn({prop:"minWidth",transform:Qr}),Dq=Sn({prop:"height",transform:Qr}),Mq=Sn({prop:"maxHeight",transform:Qr}),Pq=Sn({prop:"minHeight",transform:Qr});Sn({prop:"size",cssProperty:"width",transform:Qr});Sn({prop:"size",cssProperty:"height",transform:Qr});const Iq=Sn({prop:"boxSizing"});Cf(Oq,g_,Rq,Dq,Mq,Pq,Iq);const Nq={border:{themeKey:"borders",transform:Co},borderTop:{themeKey:"borders",transform:Co},borderRight:{themeKey:"borders",transform:Co},borderBottom:{themeKey:"borders",transform:Co},borderLeft:{themeKey:"borders",transform:Co},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Co},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Sf},color:{themeKey:"palette",transform:Vl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vl},backgroundColor:{themeKey:"palette",transform:Vl},p:{style:hn},pt:{style:hn},pr:{style:hn},pb:{style:hn},pl:{style:hn},px:{style:hn},py:{style:hn},padding:{style:hn},paddingTop:{style:hn},paddingRight:{style:hn},paddingBottom:{style:hn},paddingLeft:{style:hn},paddingX:{style:hn},paddingY:{style:hn},paddingInline:{style:hn},paddingInlineStart:{style:hn},paddingInlineEnd:{style:hn},paddingBlock:{style:hn},paddingBlockStart:{style:hn},paddingBlockEnd:{style:hn},m:{style:pn},mt:{style:pn},mr:{style:pn},mb:{style:pn},ml:{style:pn},mx:{style:pn},my:{style:pn},margin:{style:pn},marginTop:{style:pn},marginRight:{style:pn},marginBottom:{style:pn},marginLeft:{style:pn},marginX:{style:pn},marginY:{style:pn},marginInline:{style:pn},marginInlineStart:{style:pn},marginInlineEnd:{style:pn},marginBlock:{style:pn},marginBlockStart:{style:pn},marginBlockEnd:{style:pn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:kf},rowGap:{style:Ef},columnGap:{style:Tf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qr},maxWidth:{style:g_},minWidth:{transform:Qr},height:{transform:Qr},maxHeight:{transform:Qr},minHeight:{transform:Qr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Xu=Nq;function Lq(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function jq(e,t){return typeof e=="function"?e(t):e}function iN(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:c=n,themeKey:l,transform:d,style:p}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const f=wf(o,l)||{};return p?p(a):Ji(a,r,v=>{let b=Xp(f,d,v);return v===b&&typeof v=="string"&&(b=Xp(f,d,`${n}${v==="default"?"":ot(v)}`,v)),c===!1?b:{[c]:b}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Xu;function s(c){let l=c;if(typeof c=="function")l=c(i);else if(typeof c!="object")return c;if(!l)return null;const d=Q7(i.breakpoints),p=Object.keys(d);let f=d;return Object.keys(l).forEach(v=>{const b=jq(l[v],i);if(b!=null)if(typeof b=="object")if(a[v])f=du(f,e(v,b,i,a));else{const _=Ji({theme:i},b,y=>({[v]:y}));Lq(_,b)?f[v]=t({sx:b,theme:i}):f=du(f,_)}else f=du(f,e(v,b,i,a))}),J7(p,f)}return Array.isArray(o)?o.map(s):s(o)}return t}const aN=iN();aN.filterProps=["sx"];const m_=aN;function sN(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Fq=["breakpoints","palette","spacing","shape"];function v_(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=We(e,Fq),s=nN(n),c=oq(o);let l=Jr({breakpoints:s,direction:"ltr",components:{},palette:te({mode:"light"},r),spacing:c,shape:te({},V7,i)},a);return l.applyStyles=sN,l=t.reduce((d,p)=>Jr(d,p),l),l.unstable_sxConfig=te({},Xu,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(d){return m_({sx:d,theme:this})},l}const Bq=Object.freeze(Object.defineProperty({__proto__:null,default:v_,private_createBreakpoints:nN,unstable_applyStyles:sN},Symbol.toStringTag,{value:"Module"})),Hq=Ti(Bq),$q=["sx"],zq=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Xu;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function lN(e){const{sx:t}=e,n=We(e,$q),{systemProps:r,otherProps:o}=zq(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Sa(s)?te({},r,s):r}:i=te({},r,t),te({},o,{sx:i})}const Wq=Object.freeze(Object.defineProperty({__proto__:null,default:m_,extendSxProp:lN,unstable_createStyleFunctionSx:iN,unstable_defaultSxConfig:Xu},Symbol.toStringTag,{value:"Module"})),Uq=Ti(Wq);var HE;function qq(){if(HE)return ps;HE=1;var e=YI();Object.defineProperty(ps,"__esModule",{value:!0}),ps.default=O,ps.shouldForwardProp=y,ps.systemDefaultTheme=void 0;var t=e(e7()),n=e(n7()),r=v(tN),o=$7,i=e(z7),a=e(W7),s=e(Hq),c=e(Uq);const l=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function f(S){if(typeof WeakMap!="function")return null;var R=new WeakMap,D=new WeakMap;return(f=function(P){return P?D:R})(S)}function v(S,R){if(S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var D=f(R);if(D&&D.has(S))return D.get(S);var P={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in S)if(j!=="default"&&Object.prototype.hasOwnProperty.call(S,j)){var W=I?Object.getOwnPropertyDescriptor(S,j):null;W&&(W.get||W.set)?Object.defineProperty(P,j,W):P[j]=S[j]}return P.default=S,D&&D.set(S,P),P}function b(S){return Object.keys(S).length===0}function _(S){return typeof S=="string"&&S.charCodeAt(0)>96}function y(S){return S!=="ownerState"&&S!=="theme"&&S!=="sx"&&S!=="as"}const C=ps.systemDefaultTheme=(0,s.default)(),k=S=>S&&S.charAt(0).toLowerCase()+S.slice(1);function T({defaultTheme:S,theme:R,themeId:D}){return b(R)?S:R[D]||R}function x(S){return S?(R,D)=>D[S]:null}function E(S,R){let{ownerState:D}=R,P=(0,n.default)(R,l);const I=typeof S=="function"?S((0,t.default)({ownerState:D},P)):S;if(Array.isArray(I))return I.flatMap(j=>E(j,(0,t.default)({ownerState:D},P)));if(I&&typeof I=="object"&&Array.isArray(I.variants)){const{variants:j=[]}=I;let W=(0,n.default)(I,d);return j.forEach(F=>{let H=!0;typeof F.props=="function"?H=F.props((0,t.default)({ownerState:D},P,D)):Object.keys(F.props).forEach($=>{(D==null?void 0:D[$])!==F.props[$]&&P[$]!==F.props[$]&&(H=!1)}),H&&(Array.isArray(W)||(W=[W]),W.push(typeof F.style=="function"?F.style((0,t.default)({ownerState:D},P,D)):F.style))}),W}return I}function O(S={}){const{themeId:R,defaultTheme:D=C,rootShouldForwardProp:P=y,slotShouldForwardProp:I=y}=S,j=W=>(0,c.default)((0,t.default)({},W,{theme:T((0,t.default)({},W,{defaultTheme:D,themeId:R}))}));return j.__mui_systemSx=!0,(W,F={})=>{(0,r.internal_processStyles)(W,oe=>oe.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:H,slot:$,skipVariantsResolver:G,skipSx:K,overridesResolver:Z=x(k($))}=F,X=(0,n.default)(F,p),se=G!==void 0?G:$&&$!=="Root"&&$!=="root"||!1,ve=K||!1;let fe;process.env.NODE_ENV!=="production"&&H&&(fe=`${H}-${k($||"Root")}`);let me=y;$==="Root"||$==="root"?me=P:$?me=I:_(W)&&(me=void 0);const ge=(0,r.default)(W,(0,t.default)({shouldForwardProp:me,label:fe},X)),Se=oe=>typeof oe=="function"&&oe.__emotion_real!==oe||(0,o.isPlainObject)(oe)?N=>E(oe,(0,t.default)({},N,{theme:T({theme:N.theme,defaultTheme:D,themeId:R})})):oe,_e=(oe,...N)=>{let z=Se(oe);const Q=N?N.map(Se):[];H&&Z&&Q.push(ie=>{const be=T((0,t.default)({},ie,{defaultTheme:D,themeId:R}));if(!be.components||!be.components[H]||!be.components[H].styleOverrides)return null;const De=be.components[H].styleOverrides,we={};return Object.entries(De).forEach(([Be,Ee])=>{we[Be]=E(Ee,(0,t.default)({},ie,{theme:be}))}),Z(ie,we)}),H&&!se&&Q.push(ie=>{var be;const De=T((0,t.default)({},ie,{defaultTheme:D,themeId:R})),we=De==null||(be=De.components)==null||(be=be[H])==null?void 0:be.variants;return E({variants:we},(0,t.default)({},ie,{theme:De}))}),ve||Q.push(j);const re=Q.length-N.length;if(Array.isArray(oe)&&re>0){const ie=new Array(re).fill("");z=[...oe,...ie],z.raw=[...oe.raw,...ie]}const ue=ge(z,...Q);if(process.env.NODE_ENV!=="production"){let ie;H&&(ie=`${H}${(0,i.default)($||"")}`),ie===void 0&&(ie=`Styled(${(0,a.default)(W)})`),ue.displayName=ie}return W.muiName&&(ue.muiName=W.muiName),ue};return ge.withConfig&&(_e.withConfig=ge.withConfig),_e}}return ps}var Yq=qq();const Vq=Oo(Yq);function Gq(e,t){return te({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var on={};const Qq=Ti(C9),Jq=Ti(Q9);var $E;function Zq(){if($E)return on;$E=1;var e=YI();Object.defineProperty(on,"__esModule",{value:!0}),on.alpha=b,on.blend=O,on.colorChannel=void 0,on.darken=y,on.decomposeColor=a,on.emphasize=x,on.getContrastRatio=v,on.getLuminance=f,on.hexToRgb=o,on.hslToRgb=p,on.lighten=k,on.private_safeAlpha=_,on.private_safeColorChannel=void 0,on.private_safeDarken=C,on.private_safeEmphasize=E,on.private_safeLighten=T,on.recomposeColor=l,on.rgbToHex=d;var t=e(Qq),n=e(Jq);function r(S,R=0,D=1){return process.env.NODE_ENV!=="production"&&(S<R||S>D)&&console.error(`MUI: The value provided ${S} is out of range [${R}, ${D}].`),(0,n.default)(S,R,D)}function o(S){S=S.slice(1);const R=new RegExp(`.{1,${S.length>=6?2:1}}`,"g");let D=S.match(R);return D&&D[0].length===1&&(D=D.map(P=>P+P)),D?`rgb${D.length===4?"a":""}(${D.map((P,I)=>I<3?parseInt(P,16):Math.round(parseInt(P,16)/255*1e3)/1e3).join(", ")})`:""}function i(S){const R=S.toString(16);return R.length===1?`0${R}`:R}function a(S){if(S.type)return S;if(S.charAt(0)==="#")return a(o(S));const R=S.indexOf("("),D=S.substring(0,R);if(["rgb","rgba","hsl","hsla","color"].indexOf(D)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${S}\` color.
|
|
65
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,S));let P=S.substring(R+1,S.length-1),I;if(D==="color"){if(P=P.split(" "),I=P.shift(),P.length===4&&P[3].charAt(0)==="/"&&(P[3]=P[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(I)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${I}\` color space.
|
|
66
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,I))}else P=P.split(",");return P=P.map(j=>parseFloat(j)),{type:D,values:P,colorSpace:I}}const s=S=>{const R=a(S);return R.values.slice(0,3).map((D,P)=>R.type.indexOf("hsl")!==-1&&P!==0?`${D}%`:D).join(" ")};on.colorChannel=s;const c=(S,R)=>{try{return s(S)}catch(D){return R&&process.env.NODE_ENV!=="production"&&console.warn(R),S}};on.private_safeColorChannel=c;function l(S){const{type:R,colorSpace:D}=S;let{values:P}=S;return R.indexOf("rgb")!==-1?P=P.map((I,j)=>j<3?parseInt(I,10):I):R.indexOf("hsl")!==-1&&(P[1]=`${P[1]}%`,P[2]=`${P[2]}%`),R.indexOf("color")!==-1?P=`${D} ${P.join(" ")}`:P=`${P.join(", ")}`,`${R}(${P})`}function d(S){if(S.indexOf("#")===0)return S;const{values:R}=a(S);return`#${R.map((D,P)=>i(P===3?Math.round(255*D):D)).join("")}`}function p(S){S=a(S);const{values:R}=S,D=R[0],P=R[1]/100,I=R[2]/100,j=P*Math.min(I,1-I),W=($,G=($+D/30)%12)=>I-j*Math.max(Math.min(G-3,9-G,1),-1);let F="rgb";const H=[Math.round(W(0)*255),Math.round(W(8)*255),Math.round(W(4)*255)];return S.type==="hsla"&&(F+="a",H.push(R[3])),l({type:F,values:H})}function f(S){S=a(S);let R=S.type==="hsl"||S.type==="hsla"?a(p(S)).values:S.values;return R=R.map(D=>(S.type!=="color"&&(D/=255),D<=.03928?D/12.92:Vo((D+.055)/1.055,2.4))),Number((.2126*R[0]+.7152*R[1]+.0722*R[2]).toFixed(3))}function v(S,R){const D=f(S),P=f(R);return(Math.max(D,P)+.05)/(Math.min(D,P)+.05)}function b(S,R){return S=a(S),R=r(R),(S.type==="rgb"||S.type==="hsl")&&(S.type+="a"),S.type==="color"?S.values[3]=`/${R}`:S.values[3]=R,l(S)}function _(S,R,D){try{return b(S,R)}catch(P){return D&&process.env.NODE_ENV!=="production"&&console.warn(D),S}}function y(S,R){if(S=a(S),R=r(R),S.type.indexOf("hsl")!==-1)S.values[2]*=1-R;else if(S.type.indexOf("rgb")!==-1||S.type.indexOf("color")!==-1)for(let D=0;D<3;D+=1)S.values[D]*=1-R;return l(S)}function C(S,R,D){try{return y(S,R)}catch(P){return D&&process.env.NODE_ENV!=="production"&&console.warn(D),S}}function k(S,R){if(S=a(S),R=r(R),S.type.indexOf("hsl")!==-1)S.values[2]+=(100-S.values[2])*R;else if(S.type.indexOf("rgb")!==-1)for(let D=0;D<3;D+=1)S.values[D]+=(255-S.values[D])*R;else if(S.type.indexOf("color")!==-1)for(let D=0;D<3;D+=1)S.values[D]+=(1-S.values[D])*R;return l(S)}function T(S,R,D){try{return k(S,R)}catch(P){return D&&process.env.NODE_ENV!=="production"&&console.warn(D),S}}function x(S,R=.15){return f(S)>.5?y(S,R):k(S,R)}function E(S,R,D){try{return x(S,R)}catch(P){return D&&process.env.NODE_ENV!=="production"&&console.warn(D),S}}function O(S,R,D,P=1){const I=(H,$)=>Math.round(Vo(Vo(H,1/P)*(1-D)+Vo($,1/P)*D,P)),j=a(S),W=a(R),F=[I(j.values[0],W.values[0]),I(j.values[1],W.values[1]),I(j.values[2],W.values[2])];return l({type:"rgb",values:F})}return on}var Qt=Zq();const Kq={black:"#000",white:"#fff"},Tu=Kq,Xq={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},eY=Xq,tY={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},yl=tY,nY={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},wl=nY,rY={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},zc=rY,oY={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},_l=oY,iY={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},xl=iY,aY={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Cl=aY,sY=["mode","contrastThreshold","tonalOffset"],zE={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Tu.white,default:Tu.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Bb={text:{primary:Tu.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Tu.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function WE(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Qt.lighten(e.main,o):t==="dark"&&(e.dark=Qt.darken(e.main,i)))}function lY(e="light"){return e==="dark"?{main:_l[200],light:_l[50],dark:_l[400]}:{main:_l[700],light:_l[400],dark:_l[800]}}function cY(e="light"){return e==="dark"?{main:yl[200],light:yl[50],dark:yl[400]}:{main:yl[500],light:yl[300],dark:yl[700]}}function uY(e="light"){return e==="dark"?{main:wl[500],light:wl[300],dark:wl[700]}:{main:wl[700],light:wl[400],dark:wl[800]}}function dY(e="light"){return e==="dark"?{main:xl[400],light:xl[300],dark:xl[700]}:{main:xl[700],light:xl[500],dark:xl[900]}}function pY(e="light"){return e==="dark"?{main:Cl[400],light:Cl[300],dark:Cl[700]}:{main:Cl[800],light:Cl[500],dark:Cl[900]}}function hY(e="light"){return e==="dark"?{main:zc[400],light:zc[300],dark:zc[700]}:{main:"#ed6c02",light:zc[500],dark:zc[900]}}function fY(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=We(e,sY),i=e.primary||lY(t),a=e.secondary||cY(t),s=e.error||uY(t),c=e.info||dY(t),l=e.success||pY(t),d=e.warning||hY(t);function p(b){const _=Qt.getContrastRatio(b,Bb.text.primary)>=n?Bb.text.primary:zE.text.primary;if(process.env.NODE_ENV!=="production"){const y=Qt.getContrastRatio(b,_);y<3&&console.error([`MUI: The contrast ratio of ${y}:1 for ${_} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
67
|
+
`))}return _}const f=({color:b,name:_,mainShade:y=500,lightShade:C=300,darkShade:k=700})=>{if(b=te({},b),!b.main&&b[y]&&(b.main=b[y]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
|
|
68
|
+
The color object needs to have a \`main\` property or a \`${y}\` property.`:As(11,_?` (${_})`:"",y));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
|
|
69
|
+
\`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
|
|
70
|
+
|
|
71
|
+
Did you intend to use one of the following approaches?
|
|
72
|
+
|
|
73
|
+
import { green } from "@mui/material/colors";
|
|
74
|
+
|
|
75
|
+
const theme1 = createTheme({ palette: {
|
|
76
|
+
primary: green,
|
|
77
|
+
} });
|
|
78
|
+
|
|
79
|
+
const theme2 = createTheme({ palette: {
|
|
80
|
+
primary: { main: green[500] },
|
|
81
|
+
} });`:As(12,_?` (${_})`:"",JSON.stringify(b.main)));return WE(b,"light",C,r),WE(b,"dark",k,r),b.contrastText||(b.contrastText=p(b.main)),b},v={dark:Bb,light:zE};return process.env.NODE_ENV!=="production"&&(v[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Jr(te({common:te({},Tu),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:l,name:"success"}),grey:eY,contrastThreshold:n,getContrastText:p,augmentColor:f,tonalOffset:r},v[t]),o)}const gY=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function mY(e){return Math.round(e*1e5)/1e5}const UE={textTransform:"uppercase"},qE='"Roboto", "Helvetica", "Arial", sans-serif';function vY(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=qE,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:d,pxToRem:p}=n,f=We(n,gY);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const v=o/14,b=p||(C=>`${C/l*v}rem`),_=(C,k,T,x,E)=>te({fontFamily:r,fontWeight:C,fontSize:b(k),lineHeight:T},r===qE?{letterSpacing:`${mY(x/k)}em`}:{},E,d),y={h1:_(i,96,1.167,-1.5),h2:_(i,60,1.2,-.5),h3:_(a,48,1.167,0),h4:_(a,34,1.235,.25),h5:_(a,24,1.334,0),h6:_(s,20,1.6,.15),subtitle1:_(a,16,1.75,.15),subtitle2:_(s,14,1.57,.1),body1:_(a,16,1.5,.15),body2:_(a,14,1.43,.15),button:_(s,14,1.75,.4,UE),caption:_(a,12,1.66,.4),overline:_(a,12,2.66,1,UE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jr(te({htmlFontSize:l,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c},y),f,{clone:!1})}const bY=.2,yY=.14,wY=.12;function Xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${bY})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${yY})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wY})`].join(",")}const _Y=["none",Xt(0,2,1,-1,0,1,1,0,0,1,3,0),Xt(0,3,1,-2,0,2,2,0,0,1,5,0),Xt(0,3,3,-2,0,3,4,0,0,1,8,0),Xt(0,2,4,-1,0,4,5,0,0,1,10,0),Xt(0,3,5,-1,0,5,8,0,0,1,14,0),Xt(0,3,5,-1,0,6,10,0,0,1,18,0),Xt(0,4,5,-2,0,7,10,1,0,2,16,1),Xt(0,5,5,-3,0,8,10,1,0,3,14,2),Xt(0,5,6,-3,0,9,12,1,0,3,16,2),Xt(0,6,6,-3,0,10,14,1,0,4,18,3),Xt(0,6,7,-4,0,11,15,1,0,4,20,3),Xt(0,7,8,-4,0,12,17,2,0,5,22,4),Xt(0,7,8,-4,0,13,19,2,0,5,24,4),Xt(0,7,9,-4,0,14,21,2,0,5,26,4),Xt(0,8,9,-5,0,15,22,2,0,6,28,5),Xt(0,8,10,-5,0,16,24,2,0,6,30,5),Xt(0,8,11,-5,0,17,26,2,0,6,32,5),Xt(0,9,11,-5,0,18,28,2,0,7,34,6),Xt(0,9,12,-6,0,19,29,2,0,7,36,6),Xt(0,10,13,-6,0,20,31,3,0,8,38,7),Xt(0,10,13,-6,0,21,33,3,0,8,40,7),Xt(0,10,14,-6,0,22,35,3,0,8,42,7),Xt(0,11,14,-7,0,23,36,3,0,9,44,8),Xt(0,11,15,-7,0,24,38,3,0,9,46,8)],xY=_Y,CY=["duration","easing","delay"],SY={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},kY={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function YE(e){return`${Math.round(e)}ms`}function TY(e){if(!e)return 0;const t=e/36;return Math.round((4+15*Vo(t,.25)+t/5)*10)}function EY(e){const t=te({},SY,e.easing),n=te({},kY,e.duration);return te({getAutoHeightDuration:TY,create:(r=["all"],o={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:s=0}=o,c=We(o,CY);if(process.env.NODE_ENV!=="production"){const l=p=>typeof p=="string",d=p=>!isNaN(parseFloat(p));!l(r)&&!Array.isArray(r)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(i)&&!l(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),l(a)||console.error('MUI: Argument "easing" must be a string.'),!d(s)&&!l(s)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
82
|
+
`)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(r)?r:[r]).map(l=>`${l} ${typeof i=="string"?i:YE(i)} ${a} ${typeof s=="string"?s:YE(s)}`).join(",")}},e,{easing:t,duration:n})}const AY={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},OY=AY,RY=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Wa(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=We(e,RY);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":As(18));const s=fY(r),c=v_(e);let l=Jr(c,{mixins:Gq(c.breakpoints,n),palette:s,shadows:xY.slice(),typography:vY(s,i),transitions:EY(o),zIndex:te({},OY)});if(l=Jr(l,a),l=t.reduce((d,p)=>Jr(d,p),l),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(f,v)=>{let b;for(b in f){const _=f[b];if(d.indexOf(b)!==-1&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const y=$t("",b);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${y}' syntax:`,JSON.stringify({root:{[`&.${y}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
83
|
+
`))}f[b]={}}}};Object.keys(l.components).forEach(f=>{const v=l.components[f].styleOverrides;v&&f.indexOf("Mui")===0&&p(v,f)})}return l.unstable_sxConfig=te({},Xu,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(d){return m_({sx:d,theme:this})},l}const DY=Wa(),Af=DY,Jl="$$material";function cN(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const MY=e=>cN(e)&&e!=="classes",Mo=MY,PY=Vq({themeId:Jl,defaultTheme:Af,rootShouldForwardProp:Mo}),ze=PY;function IY(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:UI(t.components[n].defaultProps,r)}function NY(e){return Object.keys(e).length===0}function uN(e=null){const t=B.useContext(m.ThemeContext);return!t||NY(t)?e:t}const LY=v_();function b_(e=LY){return uN(e)}function jY({props:e,name:t,defaultTheme:n,themeId:r}){let o=b_(n);return r&&(o=o[r]||o),IY({theme:o,name:t,props:e})}function Zt({props:e,name:t}){return jY({props:e,name:t,defaultTheme:Af,themeId:Jl})}const dN="base";function FY(e){return`${dN}--${e}`}function BY(e,t){return`${dN}-${e}-${t}`}function pN(e,t){const n=qI[t];return n?FY(n):BY(e,t)}function HY(e,t){const n={};return t.forEach(r=>{n[r]=pN(e,r)}),n}const $Y=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function zY(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function WY(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function UY(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||WY(e))}function qY(e){const t=[],n=[];return Array.from(e.querySelectorAll($Y)).forEach((r,o)=>{const i=zY(r);i===-1||!UY(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function YY(){return!0}function eh(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=qY,isEnabled:a=YY,open:s}=e,c=B.useRef(!1),l=B.useRef(null),d=B.useRef(null),p=B.useRef(null),f=B.useRef(null),v=B.useRef(!1),b=B.useRef(null),_=jn(t.ref,b),y=B.useRef(null);B.useEffect(()=>{!s||!b.current||(v.current=!n)},[n,s]),B.useEffect(()=>{if(!s||!b.current)return;const T=vr(b.current);return b.current.contains(T.activeElement)||(b.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
84
|
+
`)),b.current.setAttribute("tabIndex","-1")),v.current&&b.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[s]),B.useEffect(()=>{if(!s||!b.current)return;const T=vr(b.current),x=S=>{y.current=S,!(r||!a()||S.key!=="Tab")&&T.activeElement===b.current&&S.shiftKey&&(c.current=!0,d.current&&d.current.focus())},E=()=>{const S=b.current;if(S===null)return;if(!T.hasFocus()||!a()||c.current){c.current=!1;return}if(S.contains(T.activeElement)||r&&T.activeElement!==l.current&&T.activeElement!==d.current)return;if(T.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!v.current)return;let R=[];if((T.activeElement===l.current||T.activeElement===d.current)&&(R=i(b.current)),R.length>0){var D,P;const I=!!((D=y.current)!=null&&D.shiftKey&&((P=y.current)==null?void 0:P.key)==="Tab"),j=R[0],W=R[R.length-1];typeof j!="string"&&typeof W!="string"&&(I?W.focus():j.focus())}else S.focus()};T.addEventListener("focusin",E),T.addEventListener("keydown",x,!0);const O=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(O),T.removeEventListener("focusin",E),T.removeEventListener("keydown",x,!0)}},[n,r,o,a,s,i]);const C=T=>{p.current===null&&(p.current=T.relatedTarget),v.current=!0,f.current=T.target;const x=t.props.onFocus;x&&x(T)},k=T=>{p.current===null&&(p.current=T.relatedTarget),v.current=!0};return A.jsxs(B.Fragment,{children:[A.jsx("div",{tabIndex:s?0:-1,onFocus:k,ref:l,"data-testid":"sentinelStart"}),B.cloneElement(t,{ref:_,onFocus:C}),A.jsx("div",{tabIndex:s?0:-1,onFocus:k,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(eh.propTypes={children:Gu,disableAutoFocus:g.bool,disableEnforceFocus:g.bool,disableRestoreFocus:g.bool,getTabbable:g.func,isEnabled:g.func,open:g.bool.isRequired});process.env.NODE_ENV!=="production"&&(eh.propTypes=gf(eh.propTypes));function VY(e){return typeof e=="function"?e():e}const Eu=B.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=B.useState(null),s=jn(B.isValidElement(n)?n.ref:null,t);if(Si(()=>{o||a(VY(r)||document.body)},[r,o]),Si(()=>{if(i&&!o)return yw(t,i),()=>{yw(t,null)}},[t,i,o]),o){if(B.isValidElement(n)){const c={ref:s};return B.cloneElement(n,c)}return A.jsx(B.Fragment,{children:n})}return A.jsx(B.Fragment,{children:i&&gP.createPortal(n,i)})});process.env.NODE_ENV!=="production"&&(Eu.propTypes={children:g.node,container:g.oneOfType([Qi,g.func]),disablePortal:g.bool});process.env.NODE_ENV!=="production"&&(Eu.propTypes=gf(Eu.propTypes));function GY(e){const t=vr(e);return t.body===e?Os(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pu(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function VE(e){return parseInt(Os(e).getComputedStyle(e).paddingRight,10)||0}function QY(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return t||n}function GE(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,c=!QY(a);s&&c&&pu(a,o)})}function Hb(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function JY(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(GY(r)){const i=WI(vr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${VE(r)+i}px`;const a=vr(r).querySelectorAll(".mui-fixed");[].forEach.call(a,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${VE(s)+i}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=vr(r).body;else{const i=r.parentElement,a=Os(r);o=(i==null?void 0:i.nodeName)==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:i,property:a})=>{o?i.style.setProperty(a,o):i.style.removeProperty(a)})}}function ZY(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class KY{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&pu(t.modalRef,!1);const o=ZY(n);GE(n,t.mount,t.modalRef,o,!0);const i=Hb(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Hb(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=JY(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Hb(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&pu(t.modalRef,n),GE(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&pu(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function XY(e){return typeof e=="function"?e():e}function eV(e){return e?e.props.hasOwnProperty("in"):!1}const tV=new KY;function nV(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=tV,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:c,onClose:l,open:d,rootRef:p}=e,f=B.useRef({}),v=B.useRef(null),b=B.useRef(null),_=jn(b,p),[y,C]=B.useState(!d),k=eV(c);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const x=()=>vr(v.current),E=()=>(f.current.modalRef=b.current,f.current.mount=v.current,f.current),O=()=>{o.mount(E(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},S=Aa(()=>{const W=XY(t)||x().body;o.add(E(),W),b.current&&O()}),R=B.useCallback(()=>o.isTopModal(E()),[o]),D=Aa(W=>{v.current=W,W&&(d&&R()?O():b.current&&pu(b.current,T))}),P=B.useCallback(()=>{o.remove(E(),T)},[T,o]);B.useEffect(()=>()=>{P()},[P]),B.useEffect(()=>{d?S():(!k||!i)&&P()},[d,P,k,i,S]);const I=W=>F=>{var H;(H=W.onKeyDown)==null||H.call(W,F),!(F.key!=="Escape"||F.which===229||!R())&&(n||(F.stopPropagation(),l&&l(F,"escapeKeyDown")))},j=W=>F=>{var H;(H=W.onClick)==null||H.call(W,F),F.target===F.currentTarget&&l&&l(F,"backdropClick")};return{getRootProps:(W={})=>{const F=NI(e);delete F.onTransitionEnter,delete F.onTransitionExited;const H=te({},F,W);return te({role:"presentation"},H,{onKeyDown:I(H),ref:_})},getBackdropProps:(W={})=>{const F=W;return te({"aria-hidden":!0},F,{onClick:j(F),open:d})},getTransitionProps:()=>{const W=()=>{C(!1),a&&a()},F=()=>{C(!0),s&&s(),i&&P()};return{onEnter:kE(W,c==null?void 0:c.props.onEnter),onExited:kE(F,c==null?void 0:c.props.onExited)}},rootRef:_,portalRef:D,isTopModal:R,exited:y,hasTransition:k}}var Mr="top",ko="bottom",To="right",Pr="left",y_="auto",ed=[Mr,ko,To,Pr],Zl="start",Au="end",rV="clippingParents",hN="viewport",Wc="popper",oV="reference",QE=ed.reduce(function(e,t){return e.concat([t+"-"+Zl,t+"-"+Au])},[]),fN=[].concat(ed,[y_]).reduce(function(e,t){return e.concat([t,t+"-"+Zl,t+"-"+Au])},[]),iV="beforeRead",aV="read",sV="afterRead",lV="beforeMain",cV="main",uV="afterMain",dV="beforeWrite",pV="write",hV="afterWrite",fV=[iV,aV,sV,lV,cV,uV,dV,pV,hV];function ki(e){return e?(e.nodeName||"").toLowerCase():null}function Kr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ds(e){var t=Kr(e).Element;return e instanceof t||e instanceof Element}function So(e){var t=Kr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function w_(e){if(typeof ShadowRoot=="undefined")return!1;var t=Kr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function gV(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!So(i)||!ki(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function mV(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(c,l){return c[l]="",c},{});!So(o)||!ki(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const vV={name:"applyStyles",enabled:!0,phase:"write",fn:gV,effect:mV,requires:["computeStyles"]};function bi(e){return e.split("-")[0]}var Ss=Math.max,th=Math.min,Kl=Math.round;function Ew(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function gN(){return!/^((?!chrome|android).)*safari/i.test(Ew())}function Xl(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&So(e)&&(o=e.offsetWidth>0&&Kl(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Kl(r.height)/e.offsetHeight||1);var a=Ds(e)?Kr(e):window,s=a.visualViewport,c=!gN()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/o,d=(r.top+(c&&s?s.offsetTop:0))/i,p=r.width/o,f=r.height/i;return{width:p,height:f,top:d,right:l+p,bottom:d+f,left:l,x:l,y:d}}function __(e){var t=Xl(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 mN(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&w_(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Zi(e){return Kr(e).getComputedStyle(e)}function bV(e){return["table","td","th"].indexOf(ki(e))>=0}function Ua(e){return((Ds(e)?e.ownerDocument:e.document)||window.document).documentElement}function Of(e){return ki(e)==="html"?e:e.assignedSlot||e.parentNode||(w_(e)?e.host:null)||Ua(e)}function JE(e){return!So(e)||Zi(e).position==="fixed"?null:e.offsetParent}function yV(e){var t=/firefox/i.test(Ew()),n=/Trident/i.test(Ew());if(n&&So(e)){var r=Zi(e);if(r.position==="fixed")return null}var o=Of(e);for(w_(o)&&(o=o.host);So(o)&&["html","body"].indexOf(ki(o))<0;){var i=Zi(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function td(e){for(var t=Kr(e),n=JE(e);n&&bV(n)&&Zi(n).position==="static";)n=JE(n);return n&&(ki(n)==="html"||ki(n)==="body"&&Zi(n).position==="static")?t:n||yV(e)||t}function x_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function hu(e,t,n){return Ss(e,th(t,n))}function wV(e,t,n){var r=hu(e,t,n);return r>n?n:r}function vN(){return{top:0,right:0,bottom:0,left:0}}function bN(e){return Object.assign({},vN(),e)}function yN(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var _V=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,bN(typeof e!="number"?e:yN(e,ed))};function xV(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=bi(n.placement),c=x_(s),l=[Pr,To].indexOf(s)>=0,d=l?"height":"width";if(!(!i||!a)){var p=_V(o.padding,n),f=__(i),v=c==="y"?Mr:Pr,b=c==="y"?ko:To,_=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],C=td(i),k=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,T=_/2-y/2,x=p[v],E=k-f[d]-p[b],O=k/2-f[d]/2+T,S=hu(x,O,E),R=c;n.modifiersData[r]=(t={},t[R]=S,t.centerOffset=S-O,t)}}function CV(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||mN(t.elements.popper,o)&&(t.elements.arrow=o))}const SV={name:"arrow",enabled:!0,phase:"main",fn:xV,effect:CV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ec(e){return e.split("-")[1]}var kV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function TV(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Kl(n*o)/o||0,y:Kl(r*o)/o||0}}function ZE(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,d=e.roundOffsets,p=e.isFixed,f=a.x,v=f===void 0?0:f,b=a.y,_=b===void 0?0:b,y=typeof d=="function"?d({x:v,y:_}):{x:v,y:_};v=y.x,_=y.y;var C=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),T=Pr,x=Mr,E=window;if(l){var O=td(n),S="clientHeight",R="clientWidth";if(O===Kr(n)&&(O=Ua(n),Zi(O).position!=="static"&&s==="absolute"&&(S="scrollHeight",R="scrollWidth")),O=O,o===Mr||(o===Pr||o===To)&&i===Au){x=ko;var D=p&&O===E&&E.visualViewport?E.visualViewport.height:O[S];_-=D-r.height,_*=c?1:-1}if(o===Pr||(o===Mr||o===ko)&&i===Au){T=To;var P=p&&O===E&&E.visualViewport?E.visualViewport.width:O[R];v-=P-r.width,v*=c?1:-1}}var I=Object.assign({position:s},l&&kV),j=d===!0?TV({x:v,y:_},Kr(n)):{x:v,y:_};if(v=j.x,_=j.y,c){var W;return Object.assign({},I,(W={},W[x]=k?"0":"",W[T]=C?"0":"",W.transform=(E.devicePixelRatio||1)<=1?"translate("+v+"px, "+_+"px)":"translate3d("+v+"px, "+_+"px, 0)",W))}return Object.assign({},I,(t={},t[x]=k?_+"px":"",t[T]=C?v+"px":"",t.transform="",t))}function EV(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:bi(t.placement),variation:ec(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ZE(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ZE(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const AV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:EV,data:{}};var Zd={passive:!0};function OV(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,c=Kr(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach(function(d){d.addEventListener("scroll",n.update,Zd)}),s&&c.addEventListener("resize",n.update,Zd),function(){i&&l.forEach(function(d){d.removeEventListener("scroll",n.update,Zd)}),s&&c.removeEventListener("resize",n.update,Zd)}}const RV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:OV,data:{}};var DV={left:"right",right:"left",bottom:"top",top:"bottom"};function kp(e){return e.replace(/left|right|bottom|top/g,function(t){return DV[t]})}var MV={start:"end",end:"start"};function KE(e){return e.replace(/start|end/g,function(t){return MV[t]})}function C_(e){var t=Kr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function S_(e){return Xl(Ua(e)).left+C_(e).scrollLeft}function PV(e,t){var n=Kr(e),r=Ua(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var l=gN();(l||!l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+S_(e),y:c}}function IV(e){var t,n=Ua(e),r=C_(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ss(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ss(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+S_(e),c=-r.scrollTop;return Zi(o||n).direction==="rtl"&&(s+=Ss(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function k_(e){var t=Zi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function wN(e){return["html","body","#document"].indexOf(ki(e))>=0?e.ownerDocument.body:So(e)&&k_(e)?e:wN(Of(e))}function fu(e,t){var n;t===void 0&&(t=[]);var r=wN(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Kr(r),a=o?[i].concat(i.visualViewport||[],k_(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(fu(Of(a)))}function Aw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function NV(e,t){var n=Xl(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function XE(e,t,n){return t===hN?Aw(PV(e,n)):Ds(t)?NV(t,n):Aw(IV(Ua(e)))}function LV(e){var t=fu(Of(e)),n=["absolute","fixed"].indexOf(Zi(e).position)>=0,r=n&&So(e)?td(e):e;return Ds(r)?t.filter(function(o){return Ds(o)&&mN(o,r)&&ki(o)!=="body"}):[]}function jV(e,t,n,r){var o=t==="clippingParents"?LV(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(c,l){var d=XE(e,l,r);return c.top=Ss(d.top,c.top),c.right=th(d.right,c.right),c.bottom=th(d.bottom,c.bottom),c.left=Ss(d.left,c.left),c},XE(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function _N(e){var t=e.reference,n=e.element,r=e.placement,o=r?bi(r):null,i=r?ec(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(o){case Mr:c={x:a,y:t.y-n.height};break;case ko:c={x:a,y:t.y+t.height};break;case To:c={x:t.x+t.width,y:s};break;case Pr:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=o?x_(o):null;if(l!=null){var d=l==="y"?"height":"width";switch(i){case Zl:c[l]=c[l]-(t[d]/2-n[d]/2);break;case Au:c[l]=c[l]+(t[d]/2-n[d]/2);break}}return c}function Ou(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,c=s===void 0?rV:s,l=n.rootBoundary,d=l===void 0?hN:l,p=n.elementContext,f=p===void 0?Wc:p,v=n.altBoundary,b=v===void 0?!1:v,_=n.padding,y=_===void 0?0:_,C=bN(typeof y!="number"?y:yN(y,ed)),k=f===Wc?oV:Wc,T=e.rects.popper,x=e.elements[b?k:f],E=jV(Ds(x)?x:x.contextElement||Ua(e.elements.popper),c,d,a),O=Xl(e.elements.reference),S=_N({reference:O,element:T,strategy:"absolute",placement:o}),R=Aw(Object.assign({},T,S)),D=f===Wc?R:O,P={top:E.top-D.top+C.top,bottom:D.bottom-E.bottom+C.bottom,left:E.left-D.left+C.left,right:D.right-E.right+C.right},I=e.modifiersData.offset;if(f===Wc&&I){var j=I[o];Object.keys(P).forEach(function(W){var F=[To,ko].indexOf(W)>=0?1:-1,H=[Mr,ko].indexOf(W)>=0?"y":"x";P[W]+=j[H]*F})}return P}function FV(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?fN:c,d=ec(r),p=d?s?QE:QE.filter(function(b){return ec(b)===d}):ed,f=p.filter(function(b){return l.indexOf(b)>=0});f.length===0&&(f=p);var v=f.reduce(function(b,_){return b[_]=Ou(e,{placement:_,boundary:o,rootBoundary:i,padding:a})[bi(_)],b},{});return Object.keys(v).sort(function(b,_){return v[b]-v[_]})}function BV(e){if(bi(e)===y_)return[];var t=kp(e);return[KE(e),t,KE(t)]}function HV(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,c=n.fallbackPlacements,l=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,v=n.flipVariations,b=v===void 0?!0:v,_=n.allowedAutoPlacements,y=t.options.placement,C=bi(y),k=C===y,T=c||(k||!b?[kp(y)]:BV(y)),x=[y].concat(T).reduce(function(me,ge){return me.concat(bi(ge)===y_?FV(t,{placement:ge,boundary:d,rootBoundary:p,padding:l,flipVariations:b,allowedAutoPlacements:_}):ge)},[]),E=t.rects.reference,O=t.rects.popper,S=new Map,R=!0,D=x[0],P=0;P<x.length;P++){var I=x[P],j=bi(I),W=ec(I)===Zl,F=[Mr,ko].indexOf(j)>=0,H=F?"width":"height",$=Ou(t,{placement:I,boundary:d,rootBoundary:p,altBoundary:f,padding:l}),G=F?W?To:Pr:W?ko:Mr;E[H]>O[H]&&(G=kp(G));var K=kp(G),Z=[];if(i&&Z.push($[j]<=0),s&&Z.push($[G]<=0,$[K]<=0),Z.every(function(me){return me})){D=I,R=!1;break}S.set(I,Z)}if(R)for(var X=b?3:1,se=function(me){var ge=x.find(function(Se){var _e=S.get(Se);if(_e)return _e.slice(0,me).every(function(oe){return oe})});if(ge)return D=ge,"break"},ve=X;ve>0;ve--){var fe=se(ve);if(fe==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const $V={name:"flip",enabled:!0,phase:"main",fn:HV,requiresIfExists:["offset"],data:{_skip:!1}};function eA(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function tA(e){return[Mr,To,ko,Pr].some(function(t){return e[t]>=0})}function zV(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ou(t,{elementContext:"reference"}),s=Ou(t,{altBoundary:!0}),c=eA(a,r),l=eA(s,o,i),d=tA(c),p=tA(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const WV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zV};function UV(e,t,n){var r=bi(e),o=[Pr,Mr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Pr,To].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function qV(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=fN.reduce(function(d,p){return d[p]=UV(p,t.rects,i),d},{}),s=a[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}const YV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:qV};function VV(e){var t=e.state,n=e.name;t.modifiersData[n]=_N({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const GV={name:"popperOffsets",enabled:!0,phase:"read",fn:VV,data:{}};function QV(e){return e==="x"?"y":"x"}function JV(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,c=n.boundary,l=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,v=f===void 0?!0:f,b=n.tetherOffset,_=b===void 0?0:b,y=Ou(t,{boundary:c,rootBoundary:l,padding:p,altBoundary:d}),C=bi(t.placement),k=ec(t.placement),T=!k,x=x_(C),E=QV(x),O=t.modifiersData.popperOffsets,S=t.rects.reference,R=t.rects.popper,D=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,P=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(O){if(i){var W,F=x==="y"?Mr:Pr,H=x==="y"?ko:To,$=x==="y"?"height":"width",G=O[x],K=G+y[F],Z=G-y[H],X=v?-R[$]/2:0,se=k===Zl?S[$]:R[$],ve=k===Zl?-R[$]:-S[$],fe=t.elements.arrow,me=v&&fe?__(fe):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vN(),Se=ge[F],_e=ge[H],oe=hu(0,S[$],me[$]),N=T?S[$]/2-X-oe-Se-P.mainAxis:se-oe-Se-P.mainAxis,z=T?-S[$]/2+X+oe+_e+P.mainAxis:ve+oe+_e+P.mainAxis,Q=t.elements.arrow&&td(t.elements.arrow),re=Q?x==="y"?Q.clientTop||0:Q.clientLeft||0:0,ue=(W=I==null?void 0:I[x])!=null?W:0,ie=G+N-ue-re,be=G+z-ue,De=hu(v?th(K,ie):K,G,v?Ss(Z,be):Z);O[x]=De,j[x]=De-G}if(s){var we,Be=x==="x"?Mr:Pr,Ee=x==="x"?ko:To,Oe=O[E],Ae=E==="y"?"height":"width",Le=Oe+y[Be],Fe=Oe-y[Ee],lt=[Mr,Pr].indexOf(C)!==-1,_t=(we=I==null?void 0:I[E])!=null?we:0,wt=lt?Le:Oe-S[Ae]-R[Ae]-_t+P.altAxis,Ge=lt?Oe+S[Ae]+R[Ae]-_t-P.altAxis:Fe,Me=v&<?wV(wt,Oe,Ge):hu(v?wt:Le,Oe,v?Ge:Fe);O[E]=Me,j[E]=Me-Oe}t.modifiersData[r]=j}}const ZV={name:"preventOverflow",enabled:!0,phase:"main",fn:JV,requiresIfExists:["offset"]};function KV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function XV(e){return e===Kr(e)||!So(e)?C_(e):KV(e)}function eG(e){var t=e.getBoundingClientRect(),n=Kl(t.width)/e.offsetWidth||1,r=Kl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function tG(e,t,n){n===void 0&&(n=!1);var r=So(t),o=So(t)&&eG(t),i=Ua(t),a=Xl(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ki(t)!=="body"||k_(i))&&(s=XV(t)),So(t)?(c=Xl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=S_(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function nG(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function rG(e){var t=nG(e);return fV.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function oG(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function iG(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var nA={placement:"bottom",modifiers:[],strategy:"absolute"};function rA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function aG(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?nA:o;return function(a,s,c){c===void 0&&(c=i);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},nA,i),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},d=[],p=!1,f={state:l,setOptions:function(_){var y=typeof _=="function"?_(l.options):_;b(),l.options=Object.assign({},i,l.options,y),l.scrollParents={reference:Ds(a)?fu(a):a.contextElement?fu(a.contextElement):[],popper:fu(s)};var C=rG(iG([].concat(r,l.options.modifiers)));return l.orderedModifiers=C.filter(function(k){return k.enabled}),v(),f.update()},forceUpdate:function(){if(!p){var _=l.elements,y=_.reference,C=_.popper;if(rA(y,C)){l.rects={reference:tG(y,td(C),l.options.strategy==="fixed"),popper:__(C)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(R){return l.modifiersData[R.name]=Object.assign({},R.data)});for(var k=0;k<l.orderedModifiers.length;k++){if(l.reset===!0){l.reset=!1,k=-1;continue}var T=l.orderedModifiers[k],x=T.fn,E=T.options,O=E===void 0?{}:E,S=T.name;typeof x=="function"&&(l=x({state:l,options:O,name:S,instance:f})||l)}}}},update:oG(function(){return new Promise(function(_){f.forceUpdate(),_(l)})}),destroy:function(){b(),p=!0}};if(!rA(a,s))return f;f.setOptions(c).then(function(_){!p&&c.onFirstUpdate&&c.onFirstUpdate(_)});function v(){l.orderedModifiers.forEach(function(_){var y=_.name,C=_.options,k=C===void 0?{}:C,T=_.effect;if(typeof T=="function"){var x=T({state:l,name:y,instance:f,options:k}),E=function(){};d.push(x||E)}})}function b(){d.forEach(function(_){return _()}),d=[]}return f}}var sG=[RV,GV,AV,vV,YV,$V,ZV,SV,WV],lG=aG({defaultModifiers:sG});const xN="Popper";function cG(e){return pN(xN,e)}HY(xN,["root"]);const uG=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],dG=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function pG(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function nh(e){return typeof e=="function"?e():e}function Rf(e){return e.nodeType!==void 0}function hG(e){return!Rf(e)}const fG=()=>qt({root:["root"]},m9(cG)),gG={},mG=B.forwardRef(function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:c,placement:l,popperOptions:d,popperRef:p,slotProps:f={},slots:v={},TransitionProps:b}=e,_=We(e,uG),y=B.useRef(null),C=jn(y,t),k=B.useRef(null),T=jn(k,p),x=B.useRef(T);Si(()=>{x.current=T},[T]),B.useImperativeHandle(p,()=>k.current,[]);const E=pG(l,i),[O,S]=B.useState(E),[R,D]=B.useState(nh(r));B.useEffect(()=>{k.current&&k.current.forceUpdate()}),B.useEffect(()=>{r&&D(nh(r))},[r]),Si(()=>{if(!R||!c)return;const F=G=>{S(G.placement)};if(process.env.NODE_ENV!=="production"&&R&&Rf(R)&&R.nodeType===1){const G=R.getBoundingClientRect();process.env.NODE_ENV!=="test"&&G.top===0&&G.left===0&&G.right===0&&G.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
85
|
+
`))}let H=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:G})=>{F(G)}}];s!=null&&(H=H.concat(s)),d&&d.modifiers!=null&&(H=H.concat(d.modifiers));const $=lG(R,y.current,te({placement:E},d,{modifiers:H}));return x.current($),()=>{$.destroy(),x.current(null)}},[R,a,s,c,d,E]);const P={placement:O};b!==null&&(P.TransitionProps=b);const I=fG(),j=(n=v.root)!=null?n:"div",W=Rs({elementType:j,externalSlotProps:f.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:C},ownerState:e,className:I.root});return A.jsx(j,te({},W,{children:typeof o=="function"?o(P):o}))}),CN=B.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:c,open:l,placement:d="bottom",popperOptions:p=gG,popperRef:f,style:v,transition:b=!1,slotProps:_={},slots:y={}}=e,C=We(e,dG),[k,T]=B.useState(!0),x=()=>{T(!1)},E=()=>{T(!0)};if(!s&&!l&&(!b||k))return null;let O;if(o)O=o;else if(n){const D=nh(n);O=D&&Rf(D)?vr(D).body:vr(null).body}const S=!l&&s&&(!b||k)?"none":void 0,R=b?{in:l,onEnter:x,onExited:E}:void 0;return A.jsx(Eu,{disablePortal:a,container:O,children:A.jsx(mG,te({anchorEl:n,direction:i,disablePortal:a,modifiers:c,ref:t,open:b?!k:l,placement:d,popperOptions:p,popperRef:f,slotProps:_,slots:y},C,{style:te({position:"fixed",top:0,left:0,display:S},v),TransitionProps:R,children:r}))})});process.env.NODE_ENV!=="production"&&(CN.propTypes={anchorEl:$a(g.oneOfType([Qi,g.object,g.func]),e=>{if(e.open){const t=nh(e.anchorEl);if(t&&Rf(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
86
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||hG(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
87
|
+
`))}return null}),children:g.oneOfType([g.node,g.func]),container:g.oneOfType([Qi,g.func]),direction:g.oneOf(["ltr","rtl"]),disablePortal:g.bool,keepMounted:g.bool,modifiers:g.arrayOf(g.shape({data:g.object,effect:g.func,enabled:g.bool,fn:g.func,name:g.any,options:g.object,phase:g.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:g.arrayOf(g.string),requiresIfExists:g.arrayOf(g.string)})),open:g.bool.isRequired,placement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:g.shape({modifiers:g.array,onFirstUpdate:g.func,placement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:g.oneOf(["absolute","fixed"])}),popperRef:Ro,slotProps:g.shape({root:g.oneOfType([g.func,g.object])}),slots:g.shape({root:g.elementType}),transition:g.bool});const vG=["onChange","maxRows","minRows","style","value"];function Kd(e){return parseInt(e,10)||0}const bG={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function yG(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const SN=B.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=We(e,vG),{current:c}=B.useRef(a!=null),l=B.useRef(null),d=jn(t,l),p=B.useRef(null),f=B.useCallback(()=>{const _=l.current,y=Os(_).getComputedStyle(_);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};const C=p.current;C.style.width=y.width,C.value=_.value||e.placeholder||"x",C.value.slice(-1)===`
|
|
88
|
+
`&&(C.value+=" ");const k=y.boxSizing,T=Kd(y.paddingBottom)+Kd(y.paddingTop),x=Kd(y.borderBottomWidth)+Kd(y.borderTopWidth),E=C.scrollHeight;C.value="x";const O=C.scrollHeight;let S=E;o&&(S=Math.max(Number(o)*O,S)),r&&(S=Math.min(Number(r)*O,S)),S=Math.max(S,O);const R=S+(k==="border-box"?T+x:0),D=Math.abs(S-E)<=1;return{outerHeightStyle:R,overflowing:D}},[r,o,e.placeholder]),v=B.useCallback(()=>{const _=f();if(yG(_))return;const y=l.current;y.style.height=`${_.outerHeightStyle}px`,y.style.overflow=_.overflowing?"hidden":""},[f]);Si(()=>{const _=()=>{v()};let y;const C=()=>{cancelAnimationFrame(y),y=requestAnimationFrame(()=>{_()})},k=$I(_),T=l.current,x=Os(T);x.addEventListener("resize",k);let E;return typeof ResizeObserver!="undefined"&&(E=new ResizeObserver(process.env.NODE_ENV==="test"?C:_),E.observe(T)),()=>{k.clear(),cancelAnimationFrame(y),x.removeEventListener("resize",k),E&&E.disconnect()}},[f,v]),Si(()=>{v()});const b=_=>{c||v(),n&&n(_)};return A.jsxs(B.Fragment,{children:[A.jsx("textarea",te({value:a,onChange:b,ref:d,rows:o,style:i},s)),A.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:te({},bG.shadow,i,{paddingTop:0,paddingBottom:0})})]})});process.env.NODE_ENV!=="production"&&(SN.propTypes={className:g.string,maxRows:g.oneOfType([g.number,g.string]),minRows:g.oneOfType([g.number,g.string]),onChange:g.func,placeholder:g.string,style:g.object,value:g.oneOfType([g.arrayOf(g.string),g.number,g.string])});function T_({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]=="undefined"&&(r[o]=n[o]),r),{})}const kN=B.createContext(void 0);process.env.NODE_ENV!=="production"&&(kN.displayName="FormControlContext");const TN=kN;function Df(){return B.useContext(TN)}function EN({styles:e,themeId:t,defaultTheme:n={}}){const r=b_(n),o=typeof e=="function"?e(t&&r[t]||r):e;return A.jsx(h_,{styles:o})}process.env.NODE_ENV!=="production"&&(EN.propTypes={defaultTheme:g.object,styles:g.oneOfType([g.array,g.func,g.number,g.object,g.string,g.bool]),themeId:g.string});const AN=B.createContext(null);process.env.NODE_ENV!=="production"&&(AN.displayName="ThemeContext");const ON=AN;function RN(){const e=B.useContext(ON);return process.env.NODE_ENV!=="production"&&B.useDebugValue(e),e}const wG=typeof Symbol=="function"&&Symbol.for,_G=wG?Symbol.for("mui.nested"):"__THEME_NESTED__";function xG(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
|
|
89
|
+
`))),n}return te({},e,t)}function rh(e){const{children:t,theme:n}=e,r=RN();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
90
|
+
`));const o=B.useMemo(()=>{const i=r===null?n:xG(r,n);return i!=null&&(i[_G]=r!==null),i},[n,r]);return A.jsx(ON.Provider,{value:o,children:t})}process.env.NODE_ENV!=="production"&&(rh.propTypes={children:g.node,theme:g.oneOfType([g.object,g.func]).isRequired});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(rh.propTypes=gf(rh.propTypes));const CG=["value"],DN=B.createContext();function MN(e){let{value:t}=e,n=We(e,CG);return A.jsx(DN.Provider,te({value:t!=null?t:!0},n))}process.env.NODE_ENV!=="production"&&(MN.propTypes={children:g.node,value:g.bool});const Mf=()=>{const e=B.useContext(DN);return e!=null?e:!1},oA={};function iA(e,t,n,r=!1){return B.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?te({},t,{[e]:i}):i;return r?()=>a:a}return e?te({},t,{[e]:n}):te({},t,n)},[e,t,n,r])}function oh(e){const{children:t,theme:n,themeId:r}=e,o=uN(oA),i=RN()||oA;process.env.NODE_ENV!=="production"&&(o===null&&typeof n=="function"||r&&o&&!o[r]&&typeof n=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
91
|
+
`));const a=iA(r,o,n),s=iA(r,i,n,!0),c=a.direction==="rtl";return A.jsx(rh,{theme:s,children:A.jsx(m.ThemeContext.Provider,{value:a,children:A.jsx(MN,{value:c,children:t})})})}process.env.NODE_ENV!=="production"&&(oh.propTypes={children:g.node,theme:g.oneOfType([g.func,g.object]).isRequired,themeId:g.string});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(oh.propTypes=gf(oh.propTypes));function Eo(e){return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eo(e)}function SG(e,t){if(Eo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Eo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PN(e){var t=SG(e,"string");return Eo(t)=="symbol"?t:t+""}function IN(e){return A.jsx(EN,te({},e,{defaultTheme:Af,themeId:Jl}))}process.env.NODE_ENV!=="production"&&(IN.propTypes={styles:g.oneOfType([g.array,g.func,g.number,g.object,g.string,g.bool])});function aA(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function NN(e,t=!1){return e&&(aA(e.value)&&e.value!==""||t&&aA(e.defaultValue)&&e.defaultValue!=="")}function kG(e){return $t("MuiInputBase",e)}const TG=jt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),tc=TG,EG=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Pf=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ot(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},If=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},AG=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:c,hiddenLabel:l,multiline:d,readOnly:p,size:f,startAdornment:v,type:b}=e,_={root:["root",`color${ot(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${ot(f)}`,d&&"multiline",v&&"adornedStart",i&&"adornedEnd",l&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",d&&"inputMultiline",f==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return qt(_,kG,t)},Nf=ze("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Pf})(({theme:e,ownerState:t})=>te({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${tc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&te({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Lf=ze("input",{name:"MuiInputBase",slot:"Input",overridesResolver:If})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=te({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return te({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${tc.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${tc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),OG=A.jsx(IN,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),LN=B.forwardRef(function(e,t){var n;const r=Zt({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:c={},componentsProps:l={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:v,fullWidth:b=!1,id:_,inputComponent:y="input",inputProps:C={},inputRef:k,maxRows:T,minRows:x,multiline:E=!1,name:O,onBlur:S,onChange:R,onClick:D,onFocus:P,onKeyDown:I,onKeyUp:j,placeholder:W,readOnly:F,renderSuffix:H,rows:$,slotProps:G={},slots:K={},startAdornment:Z,type:X="text",value:se}=r,ve=We(r,EG),fe=C.value!=null?C.value:se,{current:me}=B.useRef(fe!=null),ge=B.useRef(),Se=B.useCallback(Ge=>{process.env.NODE_ENV!=="production"&&Ge&&Ge.nodeName!=="INPUT"&&!Ge.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
92
|
+
`))},[]),_e=jn(ge,k,C.ref,Se),[oe,N]=B.useState(!1),z=Df();process.env.NODE_ENV!=="production"&&B.useEffect(()=>{if(z)return z.registerEffect()},[z]);const Q=T_({props:r,muiFormControl:z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=z?z.focused:oe,B.useEffect(()=>{!z&&p&&oe&&(N(!1),S&&S())},[z,p,oe,S]);const re=z&&z.onFilled,ue=z&&z.onEmpty,ie=B.useCallback(Ge=>{NN(Ge)?re&&re():ue&&ue()},[re,ue]);Si(()=>{me&&ie({value:fe})},[fe,ie,me]);const be=Ge=>{if(Q.disabled){Ge.stopPropagation();return}P&&P(Ge),C.onFocus&&C.onFocus(Ge),z&&z.onFocus?z.onFocus(Ge):N(!0)},De=Ge=>{S&&S(Ge),C.onBlur&&C.onBlur(Ge),z&&z.onBlur?z.onBlur(Ge):N(!1)},we=(Ge,...Me)=>{if(!me){const at=Ge.target||ge.current;if(at==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":As(1));ie({value:at.value})}C.onChange&&C.onChange(Ge,...Me),R&&R(Ge,...Me)};B.useEffect(()=>{ie(ge.current)},[]);const Be=Ge=>{ge.current&&Ge.currentTarget===Ge.target&&ge.current.focus(),D&&D(Ge)};let Ee=y,Oe=C;E&&Ee==="input"&&($?(process.env.NODE_ENV!=="production"&&(x||T)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Oe=te({type:void 0,minRows:$,maxRows:$},Oe)):Oe=te({type:void 0,maxRows:T,minRows:x},Oe),Ee=SN);const Ae=Ge=>{ie(Ge.animationName==="mui-auto-fill-cancel"?ge.current:{value:"x"})};B.useEffect(()=>{z&&z.setAdornedStart(!!Z)},[z,Z]);const Le=te({},r,{color:Q.color||"primary",disabled:Q.disabled,endAdornment:v,error:Q.error,focused:Q.focused,formControl:z,fullWidth:b,hiddenLabel:Q.hiddenLabel,multiline:E,size:Q.size,startAdornment:Z,type:X}),Fe=AG(Le),lt=K.root||c.Root||Nf,_t=G.root||l.root||{},wt=K.input||c.Input||Lf;return Oe=te({},Oe,(n=G.input)!=null?n:l.input),A.jsxs(B.Fragment,{children:[!f&&OG,A.jsxs(lt,te({},_t,!xu(lt)&&{ownerState:te({},Le,_t.ownerState)},{ref:t,onClick:Be},ve,{className:Xe(Fe.root,_t.className,s,F&&"MuiInputBase-readOnly"),children:[Z,A.jsx(TN.Provider,{value:null,children:A.jsx(wt,te({ownerState:Le,"aria-invalid":Q.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Q.disabled,id:_,onAnimationStart:Ae,name:O,placeholder:W,readOnly:F,required:Q.required,rows:$,value:fe,onKeyDown:I,onKeyUp:j,type:X},Oe,!xu(wt)&&{as:Ee,ownerState:te({},Le,Oe.ownerState)},{ref:_e,className:Xe(Fe.input,Oe.className,F&&"MuiInputBase-readOnly"),onBlur:De,onChange:we,onFocus:be}))}),v,H?H(te({},Q,{startAdornment:Z})):null]}))]})});process.env.NODE_ENV!=="production"&&(LN.propTypes={"aria-describedby":g.string,autoComplete:g.string,autoFocus:g.bool,classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["primary","secondary","error","info","success","warning"]),g.string]),components:g.shape({Input:g.elementType,Root:g.elementType}),componentsProps:g.shape({input:g.object,root:g.object}),defaultValue:g.any,disabled:g.bool,disableInjectingGlobalStyles:g.bool,endAdornment:g.node,error:g.bool,fullWidth:g.bool,id:g.string,inputComponent:l_,inputProps:g.object,inputRef:Ro,margin:g.oneOf(["dense","none"]),maxRows:g.oneOfType([g.number,g.string]),minRows:g.oneOfType([g.number,g.string]),multiline:g.bool,name:g.string,onBlur:g.func,onChange:g.func,onClick:g.func,onFocus:g.func,onInvalid:g.func,onKeyDown:g.func,onKeyUp:g.func,placeholder:g.string,readOnly:g.bool,renderSuffix:g.func,required:g.bool,rows:g.oneOfType([g.number,g.string]),size:g.oneOfType([g.oneOf(["medium","small"]),g.string]),slotProps:g.shape({input:g.object,root:g.object}),slots:g.shape({input:g.elementType,root:g.elementType}),startAdornment:g.node,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),type:g.string,value:g.any});const jf=LN,jN=B.createContext({});process.env.NODE_ENV!=="production"&&(jN.displayName="ListContext");const Ow=jN;function ih(e,t){return ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ih(e,t)}function FN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ih(e,t)}const sA={disabled:!1};var RG=process.env.NODE_ENV!=="production"?g.oneOfType([g.number,g.shape({enter:g.number,exit:g.number,appear:g.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&g.oneOfType([g.string,g.shape({enter:g.string,exit:g.string,active:g.string}),g.shape({enter:g.string,enterDone:g.string,enterActive:g.string,exit:g.string,exitDone:g.string,exitActive:g.string})]);const ah=Y.createContext(null);var au="unmounted",fs="exited",gs="entering",Pl="entered",Rw="exiting",Xi=function(e){FN(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?s?(c=fs,i.appearStatus=gs):c=Pl:r.unmountOnExit||r.mountOnEnter?c=au:c=fs,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,o){var i=r.in;return i&&o.status===au?{status:fs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var i=this.state.status;this.props.in?i!==gs&&i!==Pl&&(o=gs):(i===gs||i===Pl)&&(o=Rw)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,i,a;return o=i=a=r,r!=null&&typeof r!="number"&&(o=r.exit,i=r.enter,a=r.appear!==void 0?r.appear:i),{exit:o,enter:i,appear:a}},n.updateStatus=function(r,o){r===void 0&&(r=!1),o!==null?(this.cancelNextCallback(),o===gs?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:mr.findDOMNode(this)),this.performEnter(r)):this.performExit()):this.props.unmountOnExit&&this.state.status===fs&&this.setState({status:au})},n.performEnter=function(r){var o=this,i=this.props.enter,a=this.context?this.context.isMounting:r,s=this.props.nodeRef?[a]:[mr.findDOMNode(this),a],c=s[0],l=s[1],d=this.getTimeouts(),p=a?d.appear:d.enter;if(!r&&!i||sA.disabled){this.safeSetState({status:Pl},function(){o.props.onEntered(c)});return}this.props.onEnter(c,l),this.safeSetState({status:gs},function(){o.props.onEntering(c,l),o.onTransitionEnd(p,function(){o.safeSetState({status:Pl},function(){o.props.onEntered(c,l)})})})},n.performExit=function(){var r=this,o=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:mr.findDOMNode(this);if(!o||sA.disabled){this.safeSetState({status:fs},function(){r.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Rw},function(){r.props.onExiting(a),r.onTransitionEnd(i.exit,function(){r.safeSetState({status:fs},function(){r.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,o.nextCallback=null,r(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:mr.findDOMNode(this),a=r==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=s[0],l=s[1];this.props.addEndListener(c,l)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===au)return null;var o=this.props,i=o.children,a=We(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Y.createElement(ah.Provider,{value:null},typeof i=="function"?i(r,a):Y.cloneElement(Y.Children.only(i),a))},t}(Y.Component);Xi.contextType=ah;Xi.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:g.shape({current:typeof Element=="undefined"?g.any:function(e,t,n,r,o,i){var a=e[t];return g.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:g.oneOfType([g.func.isRequired,g.element.isRequired]).isRequired,in:g.bool,mountOnEnter:g.bool,unmountOnExit:g.bool,appear:g.bool,enter:g.bool,exit:g.bool,timeout:function(e){var t=RG;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:g.func,onEnter:g.func,onEntering:g.func,onEntered:g.func,onExit:g.func,onExiting:g.func,onExited:g.func}:{};function Sl(){}Xi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Sl,onEntering:Sl,onEntered:Sl,onExit:Sl,onExiting:Sl,onExited:Sl};Xi.UNMOUNTED=au;Xi.EXITED=fs;Xi.ENTERING=gs;Xi.ENTERED=Pl;Xi.EXITING=Rw;const BN=Xi;function sh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E_(e,t){var n=function(o){return t&&Y.isValidElement(o)?t(o):o},r=Object.create(null);return e&&Y.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function DG(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var l=r[c][a];s[r[c][a]]=n(l)}s[c]=n(c)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}function ws(e,t,n){return n[t]!=null?n[t]:e.props[t]}function MG(e,t){return E_(e.children,function(n){return Y.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ws(n,"appear",e),enter:ws(n,"enter",e),exit:ws(n,"exit",e)})})}function PG(e,t,n){var r=E_(e.children),o=DG(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(Y.isValidElement(a)){var s=i in t,c=i in r,l=t[i],d=Y.isValidElement(l)&&!l.props.in;c&&(!s||d)?o[i]=Y.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:ws(a,"exit",e),enter:ws(a,"enter",e)}):!c&&s&&!d?o[i]=Y.cloneElement(a,{in:!1}):c&&s&&Y.isValidElement(l)&&(o[i]=Y.cloneElement(a,{onExited:n.bind(null,a),in:l.props.in,exit:ws(a,"exit",e),enter:ws(a,"enter",e)}))}}),o}var IG=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},NG={component:"div",childFactory:function(e){return e}},A_=function(e){FN(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(sh(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,o){var i=o.children,a=o.handleExited,s=o.firstRender;return{children:s?MG(r,a):PG(r,i,a),firstRender:!1}},n.handleExited=function(r,o){var i=E_(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(a){var s=te({},a.children);return delete s[r.key],{children:s}}))},n.render=function(){var r=this.props,o=r.component,i=r.childFactory,a=We(r,["component","childFactory"]),s=this.state.contextValue,c=IG(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,o===null?Y.createElement(ah.Provider,{value:s},c):Y.createElement(ah.Provider,{value:s},Y.createElement(o,a,c))},t}(Y.Component);A_.propTypes=process.env.NODE_ENV!=="production"?{component:g.any,children:g.node,appear:g.bool,enter:g.bool,exit:g.bool,childFactory:g.func}:{};A_.defaultProps=NG;const LG=A_;function HN(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:c,timeout:l}=e,[d,p]=B.useState(!1),f=Xe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},b=Xe(n.child,d&&n.childLeaving,r&&n.childPulsate);return!s&&!d&&p(!0),B.useEffect(()=>{if(!s&&c!=null){const _=setTimeout(c,l);return()=>{clearTimeout(_)}}},[c,s,l]),A.jsx("span",{className:f,style:v,children:A.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(HN.propTypes={classes:g.object.isRequired,className:g.string,in:g.bool,onExited:g.func,pulsate:g.bool,rippleSize:g.number,rippleX:g.number,rippleY:g.number,timeout:g.number.isRequired});const jG=jt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),xo=jG,FG=["center","classes","className"];let Ff=e=>e,lA,cA,uA,dA;const Dw=550,BG=80,HG=m.keyframes(lA||(lA=Ff`
|
|
93
|
+
0% {
|
|
94
|
+
transform: scale(0);
|
|
95
|
+
opacity: 0.1;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
100% {
|
|
99
|
+
transform: scale(1);
|
|
100
|
+
opacity: 0.3;
|
|
101
|
+
}
|
|
102
|
+
`)),$G=m.keyframes(cA||(cA=Ff`
|
|
103
|
+
0% {
|
|
104
|
+
opacity: 1;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
100% {
|
|
108
|
+
opacity: 0;
|
|
109
|
+
}
|
|
110
|
+
`)),zG=m.keyframes(uA||(uA=Ff`
|
|
111
|
+
0% {
|
|
112
|
+
transform: scale(1);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
50% {
|
|
116
|
+
transform: scale(0.92);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
100% {
|
|
120
|
+
transform: scale(1);
|
|
121
|
+
}
|
|
122
|
+
`)),WG=ze("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),UG=ze(HN,{name:"MuiTouchRipple",slot:"Ripple"})(dA||(dA=Ff`
|
|
123
|
+
opacity: 0;
|
|
124
|
+
position: absolute;
|
|
125
|
+
|
|
126
|
+
&.${0} {
|
|
127
|
+
opacity: 0.3;
|
|
128
|
+
transform: scale(1);
|
|
129
|
+
animation-name: ${0};
|
|
130
|
+
animation-duration: ${0}ms;
|
|
131
|
+
animation-timing-function: ${0};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&.${0} {
|
|
135
|
+
animation-duration: ${0}ms;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
& .${0} {
|
|
139
|
+
opacity: 1;
|
|
140
|
+
display: block;
|
|
141
|
+
width: 100%;
|
|
142
|
+
height: 100%;
|
|
143
|
+
border-radius: 50%;
|
|
144
|
+
background-color: currentColor;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
& .${0} {
|
|
148
|
+
opacity: 0;
|
|
149
|
+
animation-name: ${0};
|
|
150
|
+
animation-duration: ${0}ms;
|
|
151
|
+
animation-timing-function: ${0};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
& .${0} {
|
|
155
|
+
position: absolute;
|
|
156
|
+
/* @noflip */
|
|
157
|
+
left: 0px;
|
|
158
|
+
top: 0;
|
|
159
|
+
animation-name: ${0};
|
|
160
|
+
animation-duration: 2500ms;
|
|
161
|
+
animation-timing-function: ${0};
|
|
162
|
+
animation-iteration-count: infinite;
|
|
163
|
+
animation-delay: 200ms;
|
|
164
|
+
}
|
|
165
|
+
`),xo.rippleVisible,HG,Dw,({theme:e})=>e.transitions.easing.easeInOut,xo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,xo.child,xo.childLeaving,$G,Dw,({theme:e})=>e.transitions.easing.easeInOut,xo.childPulsate,zG,({theme:e})=>e.transitions.easing.easeInOut),$N=B.forwardRef(function(e,t){const n=Zt({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=We(n,FG),[s,c]=B.useState([]),l=B.useRef(0),d=B.useRef(null);B.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const p=B.useRef(!1),f=jl(),v=B.useRef(null),b=B.useRef(null),_=B.useCallback(T=>{const{pulsate:x,rippleX:E,rippleY:O,rippleSize:S,cb:R}=T;c(D=>[...D,A.jsx(UG,{classes:{ripple:Xe(o.ripple,xo.ripple),rippleVisible:Xe(o.rippleVisible,xo.rippleVisible),ripplePulsate:Xe(o.ripplePulsate,xo.ripplePulsate),child:Xe(o.child,xo.child),childLeaving:Xe(o.childLeaving,xo.childLeaving),childPulsate:Xe(o.childPulsate,xo.childPulsate)},timeout:Dw,pulsate:x,rippleX:E,rippleY:O,rippleSize:S},l.current)]),l.current+=1,d.current=R},[o]),y=B.useCallback((T={},x={},E=()=>{})=>{const{pulsate:O=!1,center:S=r||x.pulsate,fakeElement:R=!1}=x;if((T==null?void 0:T.type)==="mousedown"&&p.current){p.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(p.current=!0);const D=R?null:b.current,P=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,j,W;if(S||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)I=Math.round(P.width/2),j=Math.round(P.height/2);else{const{clientX:F,clientY:H}=T.touches&&T.touches.length>0?T.touches[0]:T;I=Math.round(F-P.left),j=Math.round(H-P.top)}if(S)W=Math.sqrt((2*Vo(P.width,2)+Vo(P.height,2))/3),W%2===0&&(W+=1);else{const F=Math.max(Math.abs((D?D.clientWidth:0)-I),I)*2+2,H=Math.max(Math.abs((D?D.clientHeight:0)-j),j)*2+2;W=Math.sqrt(Vo(F,2)+Vo(H,2))}T!=null&&T.touches?v.current===null&&(v.current=()=>{_({pulsate:O,rippleX:I,rippleY:j,rippleSize:W,cb:E})},f.start(BG,()=>{v.current&&(v.current(),v.current=null)})):_({pulsate:O,rippleX:I,rippleY:j,rippleSize:W,cb:E})},[r,_,f]),C=B.useCallback(()=>{y({},{pulsate:!0})},[y]),k=B.useCallback((T,x)=>{if(f.clear(),(T==null?void 0:T.type)==="touchend"&&v.current){v.current(),v.current=null,f.start(0,()=>{k(T,x)});return}v.current=null,c(E=>E.length>0?E.slice(1):E),d.current=x},[f]);return B.useImperativeHandle(t,()=>({pulsate:C,start:y,stop:k}),[C,y,k]),A.jsx(WG,te({className:Xe(xo.root,o.root,i),ref:b},a,{children:A.jsx(LG,{component:null,exit:!0,children:s})}))});process.env.NODE_ENV!=="production"&&($N.propTypes={center:g.bool,classes:g.object,className:g.string});const qG=$N;function YG(e){return $t("MuiButtonBase",e)}const VG=jt("MuiButtonBase",["root","disabled","focusVisible"]),GG=VG,QG=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],JG=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=qt({root:["root",t&&"disabled",n&&"focusVisible"]},YG,o);return n&&r&&(i.root+=` ${r}`),i},ZG=ze("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${GG.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),zN=B.forwardRef(function(e,t){const n=Zt({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:c=!1,disableRipple:l=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:v,onClick:b,onContextMenu:_,onDragLeave:y,onFocus:C,onFocusVisible:k,onKeyDown:T,onKeyUp:x,onMouseDown:E,onMouseLeave:O,onMouseUp:S,onTouchEnd:R,onTouchMove:D,onTouchStart:P,tabIndex:I=0,TouchRippleProps:j,touchRippleRef:W,type:F}=n,H=We(n,QG),$=B.useRef(null),G=B.useRef(null),K=jn(G,W),{isFocusVisibleRef:Z,onFocus:X,onBlur:se,ref:ve}=zI(),[fe,me]=B.useState(!1);c&&fe&&me(!1),B.useImperativeHandle(r,()=>({focusVisible:()=>{me(!0),$.current.focus()}}),[]);const[ge,Se]=B.useState(!1);B.useEffect(()=>{Se(!0)},[]);const _e=ge&&!l&&!c;B.useEffect(()=>{fe&&p&&!l&&ge&&G.current.pulsate()},[l,p,fe,ge]);function oe(Me,at,Ft=d){return Aa(tn=>(at&&at(tn),!Ft&&G.current&&G.current[Me](tn),!0))}const N=oe("start",E),z=oe("stop",_),Q=oe("stop",y),re=oe("stop",S),ue=oe("stop",Me=>{fe&&Me.preventDefault(),O&&O(Me)}),ie=oe("start",P),be=oe("stop",R),De=oe("stop",D),we=oe("stop",Me=>{se(Me),Z.current===!1&&me(!1),v&&v(Me)},!1),Be=Aa(Me=>{$.current||($.current=Me.currentTarget),X(Me),Z.current===!0&&(me(!0),k&&k(Me)),C&&C(Me)}),Ee=()=>{const Me=$.current;return s&&s!=="button"&&!(Me.tagName==="A"&&Me.href)},Oe=B.useRef(!1),Ae=Aa(Me=>{p&&!Oe.current&&fe&&G.current&&Me.key===" "&&(Oe.current=!0,G.current.stop(Me,()=>{G.current.start(Me)})),Me.target===Me.currentTarget&&Ee()&&Me.key===" "&&Me.preventDefault(),T&&T(Me),Me.target===Me.currentTarget&&Ee()&&Me.key==="Enter"&&!c&&(Me.preventDefault(),b&&b(Me))}),Le=Aa(Me=>{p&&Me.key===" "&&G.current&&fe&&!Me.defaultPrevented&&(Oe.current=!1,G.current.stop(Me,()=>{G.current.pulsate(Me)})),x&&x(Me),b&&Me.target===Me.currentTarget&&Ee()&&Me.key===" "&&!Me.defaultPrevented&&b(Me)});let Fe=s;Fe==="button"&&(H.href||H.to)&&(Fe=f);const lt={};Fe==="button"?(lt.type=F===void 0?"button":F,lt.disabled=c):(!H.href&&!H.to&&(lt.role="button"),c&&(lt["aria-disabled"]=c));const _t=jn(t,ve,$);process.env.NODE_ENV!=="production"&&B.useEffect(()=>{_e&&!G.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(`
|
|
166
|
+
`))},[_e]);const wt=te({},n,{centerRipple:o,component:s,disabled:c,disableRipple:l,disableTouchRipple:d,focusRipple:p,tabIndex:I,focusVisible:fe}),Ge=JG(wt);return A.jsxs(ZG,te({as:Fe,className:Xe(Ge.root,a),ownerState:wt,onBlur:we,onClick:b,onContextMenu:z,onFocus:Be,onKeyDown:Ae,onKeyUp:Le,onMouseDown:N,onMouseLeave:ue,onMouseUp:re,onDragLeave:Q,onTouchEnd:be,onTouchMove:De,onTouchStart:ie,ref:_t,tabIndex:c?-1:I,type:F},lt,H,{children:[i,_e?A.jsx(qG,te({ref:K,center:o},j)):null]}))});process.env.NODE_ENV!=="production"&&(zN.propTypes={action:Ro,centerRipple:g.bool,children:g.node,classes:g.object,className:g.string,component:l_,disabled:g.bool,disableRipple:g.bool,disableTouchRipple:g.bool,focusRipple:g.bool,focusVisibleClassName:g.string,href:g.any,LinkComponent:g.elementType,onBlur:g.func,onClick:g.func,onContextMenu:g.func,onDragLeave:g.func,onFocus:g.func,onFocusVisible:g.func,onKeyDown:g.func,onKeyUp:g.func,onMouseDown:g.func,onMouseLeave:g.func,onMouseUp:g.func,onTouchEnd:g.func,onTouchMove:g.func,onTouchStart:g.func,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),tabIndex:g.number,TouchRippleProps:g.object,touchRippleRef:g.oneOfType([g.func,g.shape({current:g.shape({pulsate:g.func.isRequired,start:g.func.isRequired,stop:g.func.isRequired})})]),type:g.oneOfType([g.oneOf(["button","reset","submit"]),g.string])});const Bf=zN,KG=jt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),pA=KG,XG=jt("MuiListItemIcon",["root","alignItemsFlexStart"]),hA=XG;function eQ(e){return $t("MuiTypography",e)}jt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tQ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],nQ=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${ot(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return qt(s,eQ,a)},rQ=ze("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ot(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>te({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),fA={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},oQ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},iQ=e=>oQ[e]||e,WN=B.forwardRef(function(e,t){const n=Zt({props:e,name:"MuiTypography"}),r=iQ(n.color),o=lN(te({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:c=!1,noWrap:l=!1,paragraph:d=!1,variant:p="body1",variantMapping:f=fA}=o,v=We(o,tQ),b=te({},o,{align:i,color:r,className:a,component:s,gutterBottom:c,noWrap:l,paragraph:d,variant:p,variantMapping:f}),_=s||(d?"p":f[p]||fA[p])||"span",y=nQ(b);return A.jsx(rQ,te({as:_,ref:t,ownerState:b,className:Xe(y.root,a)},v))});process.env.NODE_ENV!=="production"&&(WN.propTypes={align:g.oneOf(["center","inherit","justify","left","right"]),children:g.node,classes:g.object,className:g.string,component:g.elementType,gutterBottom:g.bool,noWrap:g.bool,paragraph:g.bool,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),variant:g.oneOfType([g.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),g.string]),variantMapping:g.object});const aQ=WN,sQ=jt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),gA=sQ;function lQ(e){return $t("MuiMenuItem",e)}const cQ=jt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Uc=cQ,uQ=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],dQ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},pQ=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,s=qt({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},lQ,a);return te({},a,s)},hQ=ze(Bf,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:dQ})(({theme:e,ownerState:t})=>te({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Uc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Uc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Uc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Uc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Uc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${pA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${pA.inset}`]:{marginLeft:52},[`& .${gA.root}`]:{marginTop:0,marginBottom:0},[`& .${gA.inset}`]:{paddingLeft:36},[`& .${hA.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&te({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${hA.root} svg`]:{fontSize:"1.25rem"}}))),UN=B.forwardRef(function(e,t){const n=Zt({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l="menuitem",tabIndex:d,className:p}=n,f=We(n,uQ),v=B.useContext(Ow),b=B.useMemo(()=>({dense:i||v.dense||!1,disableGutters:s}),[v.dense,i,s]),_=B.useRef(null);Si(()=>{r&&(_.current?_.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[r]);const y=te({},n,{dense:b.dense,divider:a,disableGutters:s}),C=pQ(n),k=jn(_,t);let T;return n.disabled||(T=d!==void 0?d:-1),A.jsx(Ow.Provider,{value:b,children:A.jsx(hQ,te({ref:k,role:l,tabIndex:T,component:o,focusVisibleClassName:Xe(C.focusVisible,c),className:Xe(C.root,p)},f,{ownerState:y,classes:C}))})});process.env.NODE_ENV!=="production"&&(UN.propTypes={autoFocus:g.bool,children:g.node,classes:g.object,className:g.string,component:g.elementType,dense:g.bool,disabled:g.bool,disableGutters:g.bool,divider:g.bool,focusVisibleClassName:g.string,role:g.string,selected:g.bool,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),tabIndex:g.number});const fQ=UN;function gQ(e){return $t("MuiList",e)}jt("MuiList",["root","padding","dense","subheader"]);const mQ=["children","className","component","dense","disablePadding","subheader"],vQ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return qt({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},gQ,t)},bQ=ze("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>te({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),qN=B.forwardRef(function(e,t){const n=Zt({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:c}=n,l=We(n,mQ),d=B.useMemo(()=>({dense:a}),[a]),p=te({},n,{component:i,dense:a,disablePadding:s}),f=vQ(p);return A.jsx(Ow.Provider,{value:d,children:A.jsxs(bQ,te({as:i,className:Xe(f.root,o),ref:t,ownerState:p},l,{children:[c,r]}))})});process.env.NODE_ENV!=="production"&&(qN.propTypes={children:g.node,classes:g.object,className:g.string,component:g.elementType,dense:g.bool,disablePadding:g.bool,subheader:g.node,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object])});const yQ=qN,wQ=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function $b(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function mA(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function YN(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function qc(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const c=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!YN(s,i)||c)s=o(e,s,n);else return s.focus(),!0}return!1}const VN=B.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:d="selectedMenu"}=e,p=We(e,wQ),f=B.useRef(null),v=B.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Si(()=>{r&&f.current.focus()},[r]),B.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(k,{direction:T})=>{const x=!f.current.style.width;if(k.clientHeight<f.current.clientHeight&&x){const E=`${WI(vr(k))}px`;f.current.style[T==="rtl"?"paddingLeft":"paddingRight"]=E,f.current.style.width=`calc(100% + ${E})`}return f.current}}),[]);const b=k=>{const T=f.current,x=k.key,E=vr(T).activeElement;if(x==="ArrowDown")k.preventDefault(),qc(T,E,c,s,$b);else if(x==="ArrowUp")k.preventDefault(),qc(T,E,c,s,mA);else if(x==="Home")k.preventDefault(),qc(T,null,c,s,$b);else if(x==="End")k.preventDefault(),qc(T,null,c,s,mA);else if(x.length===1){const O=v.current,S=x.toLowerCase(),R=performance.now();O.keys.length>0&&(R-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&S!==O.keys[0]&&(O.repeating=!1)),O.lastTime=R,O.keys.push(S);const D=E&&!O.repeating&&YN(E,O);O.previousKeyMatched&&(D||qc(T,E,!1,s,$b,O))?k.preventDefault():O.previousKeyMatched=!1}l&&l(k)},_=jn(f,t);let y=-1;B.Children.forEach(i,(k,T)=>{if(!B.isValidElement(k)){y===T&&(y+=1,y>=i.length&&(y=-1));return}process.env.NODE_ENV!=="production"&&qi.isFragment(k)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
167
|
+
`)),k.props.disabled||(d==="selectedMenu"&&k.props.selected||y===-1)&&(y=T),y===T&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(y+=1,y>=i.length&&(y=-1))});const C=B.Children.map(i,(k,T)=>{if(T===y){const x={};return o&&(x.autoFocus=!0),k.props.tabIndex===void 0&&d==="selectedMenu"&&(x.tabIndex=0),B.cloneElement(k,x)}return k});return A.jsx(yQ,te({role:"menu",ref:_,className:a,onKeyDown:b,tabIndex:r?0:-1},p,{children:C}))});process.env.NODE_ENV!=="production"&&(VN.propTypes={autoFocus:g.bool,autoFocusItem:g.bool,children:g.node,className:g.string,disabledItemsFocusable:g.bool,disableListWrap:g.bool,onKeyDown:g.func,variant:g.oneOf(["menu","selectedMenu"])});const _Q=VN;function Hf(){const e=b_(Af);return process.env.NODE_ENV!=="production"&&B.useDebugValue(e),e[Jl]||e}function lh(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}const xQ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Mw(e){return`scale(${e}, ${Vo(e,2)})`}const CQ={entering:{opacity:1,transform:Mw(1)},entered:{opacity:1,transform:"none"}},zb=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),O_=B.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:c,onEntering:l,onExit:d,onExited:p,onExiting:f,style:v,timeout:b="auto",TransitionComponent:_=BN}=e,y=We(e,xQ),C=jl(),k=B.useRef(),T=Hf(),x=B.useRef(null),E=jn(x,o.ref,t),O=W=>F=>{if(W){const H=x.current;F===void 0?W(H):W(H,F)}},S=O(l),R=O((W,F)=>{const{duration:H,delay:$,easing:G}=lh({style:v,timeout:b,easing:i},{mode:"enter"});let K;b==="auto"?(K=T.transitions.getAutoHeightDuration(W.clientHeight),k.current=K):K=H,W.style.transition=[T.transitions.create("opacity",{duration:K,delay:$}),T.transitions.create("transform",{duration:zb?K:K*.666,delay:$,easing:G})].join(","),s&&s(W,F)}),D=O(c),P=O(f),I=O(W=>{const{duration:F,delay:H,easing:$}=lh({style:v,timeout:b,easing:i},{mode:"exit"});let G;b==="auto"?(G=T.transitions.getAutoHeightDuration(W.clientHeight),k.current=G):G=F,W.style.transition=[T.transitions.create("opacity",{duration:G,delay:H}),T.transitions.create("transform",{duration:zb?G:G*.666,delay:zb?H:H||G*.333,easing:$})].join(","),W.style.opacity=0,W.style.transform=Mw(.75),d&&d(W)}),j=O(p);return A.jsx(_,te({appear:r,in:a,nodeRef:x,onEnter:R,onEntered:D,onEntering:S,onExit:I,onExited:j,onExiting:P,addEndListener:W=>{b==="auto"&&C.start(k.current||0,W),n&&n(x.current,W)},timeout:b==="auto"?null:b},y,{children:(W,F)=>B.cloneElement(o,te({style:te({opacity:0,transform:Mw(.75),visibility:W==="exited"&&!a?"hidden":void 0},CQ[W],v,o.props.style),ref:E},F))}))});process.env.NODE_ENV!=="production"&&(O_.propTypes={addEndListener:g.func,appear:g.bool,children:Gu.isRequired,easing:g.oneOfType([g.shape({enter:g.string,exit:g.string}),g.string]),in:g.bool,onEnter:g.func,onEntered:g.func,onEntering:g.func,onExit:g.func,onExited:g.func,onExiting:g.func,style:g.object,timeout:g.oneOfType([g.oneOf(["auto"]),g.number,g.shape({appear:g.number,enter:g.number,exit:g.number})])});O_.muiSupportAuto=!0;const Pw=O_,SQ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],kQ={entering:{opacity:1},entered:{opacity:1}},GN=B.forwardRef(function(e,t){const n=Hf(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:c,onEnter:l,onEntered:d,onEntering:p,onExit:f,onExited:v,onExiting:b,style:_,timeout:y=r,TransitionComponent:C=BN}=e,k=We(e,SQ),T=B.useRef(null),x=jn(T,a.ref,t),E=j=>W=>{if(j){const F=T.current;W===void 0?j(F):j(F,W)}},O=E(p),S=E((j,W)=>{const F=lh({style:_,timeout:y,easing:s},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",F),j.style.transition=n.transitions.create("opacity",F),l&&l(j,W)}),R=E(d),D=E(b),P=E(j=>{const W=lh({style:_,timeout:y,easing:s},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",W),j.style.transition=n.transitions.create("opacity",W),f&&f(j)}),I=E(v);return A.jsx(C,te({appear:i,in:c,nodeRef:T,onEnter:S,onEntered:R,onEntering:O,onExit:P,onExited:I,onExiting:D,addEndListener:j=>{o&&o(T.current,j)},timeout:y},k,{children:(j,W)=>B.cloneElement(a,te({style:te({opacity:0,visibility:j==="exited"&&!c?"hidden":void 0},kQ[j],_,a.props.style),ref:x},W))}))});process.env.NODE_ENV!=="production"&&(GN.propTypes={addEndListener:g.func,appear:g.bool,children:Gu.isRequired,easing:g.oneOfType([g.shape({enter:g.string,exit:g.string}),g.string]),in:g.bool,onEnter:g.func,onEntered:g.func,onEntering:g.func,onExit:g.func,onExited:g.func,onExiting:g.func,style:g.object,timeout:g.oneOfType([g.number,g.shape({appear:g.number,enter:g.number,exit:g.number})])});const TQ=GN;function EQ(e){return $t("MuiBackdrop",e)}jt("MuiBackdrop",["root","invisible"]);const AQ=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],OQ=e=>{const{classes:t,invisible:n}=e;return qt({root:["root",n&&"invisible"]},EQ,t)},RQ=ze("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>te({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),QN=B.forwardRef(function(e,t){var n,r,o;const i=Zt({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:c="div",components:l={},componentsProps:d={},invisible:p=!1,open:f,slotProps:v={},slots:b={},TransitionComponent:_=TQ,transitionDuration:y}=i,C=We(i,AQ),k=te({},i,{component:c,invisible:p}),T=OQ(k),x=(n=v.root)!=null?n:d.root;return A.jsx(_,te({in:f,timeout:y},C,{children:A.jsx(RQ,te({"aria-hidden":!0},x,{as:(r=(o=b.root)!=null?o:l.Root)!=null?r:c,className:Xe(T.root,s,x==null?void 0:x.className),ownerState:te({},k,x==null?void 0:x.ownerState),classes:T,ref:t,children:a}))}))});process.env.NODE_ENV!=="production"&&(QN.propTypes={children:g.node,classes:g.object,className:g.string,component:g.elementType,components:g.shape({Root:g.elementType}),componentsProps:g.shape({root:g.object}),invisible:g.bool,open:g.bool.isRequired,slotProps:g.shape({root:g.object}),slots:g.shape({root:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),TransitionComponent:g.elementType,transitionDuration:g.oneOfType([g.number,g.shape({appear:g.number,enter:g.number,exit:g.number})])});const DQ=QN;function MQ(e){return $t("MuiModal",e)}jt("MuiModal",["root","hidden","backdrop"]);const PQ=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],IQ=e=>{const{open:t,exited:n,classes:r}=e;return qt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},MQ,r)},NQ=ze("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>te({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),LQ=ze(DQ,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),JN=B.forwardRef(function(e,t){var n,r,o,i,a,s;const c=Zt({name:"MuiModal",props:e}),{BackdropComponent:l=LQ,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:v,container:b,component:_,components:y={},componentsProps:C={},disableAutoFocus:k=!1,disableEnforceFocus:T=!1,disableEscapeKeyDown:x=!1,disablePortal:E=!1,disableRestoreFocus:O=!1,disableScrollLock:S=!1,hideBackdrop:R=!1,keepMounted:D=!1,onBackdropClick:P,open:I,slotProps:j,slots:W}=c,F=We(c,PQ),H=te({},c,{closeAfterTransition:f,disableAutoFocus:k,disableEnforceFocus:T,disableEscapeKeyDown:x,disablePortal:E,disableRestoreFocus:O,disableScrollLock:S,hideBackdrop:R,keepMounted:D}),{getRootProps:$,getBackdropProps:G,getTransitionProps:K,portalRef:Z,isTopModal:X,exited:se,hasTransition:ve}=nV(te({},H,{rootRef:t})),fe=te({},H,{exited:se}),me=IQ(fe),ge={};if(v.props.tabIndex===void 0&&(ge.tabIndex="-1"),ve){const{onEnter:re,onExited:ue}=K();ge.onEnter=re,ge.onExited=ue}const Se=(n=(r=W==null?void 0:W.root)!=null?r:y.Root)!=null?n:NQ,_e=(o=(i=W==null?void 0:W.backdrop)!=null?i:y.Backdrop)!=null?o:l,oe=(a=j==null?void 0:j.root)!=null?a:C.root,N=(s=j==null?void 0:j.backdrop)!=null?s:C.backdrop,z=Rs({elementType:Se,externalSlotProps:oe,externalForwardedProps:F,getSlotProps:$,additionalProps:{ref:t,as:_},ownerState:fe,className:Xe(p,oe==null?void 0:oe.className,me==null?void 0:me.root,!fe.open&&fe.exited&&(me==null?void 0:me.hidden))}),Q=Rs({elementType:_e,externalSlotProps:N,additionalProps:d,getSlotProps:re=>G(te({},re,{onClick:ue=>{P&&P(ue),re!=null&&re.onClick&&re.onClick(ue)}})),className:Xe(N==null?void 0:N.className,d==null?void 0:d.className,me==null?void 0:me.backdrop),ownerState:fe});return!D&&!I&&(!ve||se)?null:A.jsx(Eu,{ref:Z,container:b,disablePortal:E,children:A.jsxs(Se,te({},z,{children:[!R&&l?A.jsx(_e,te({},Q)):null,A.jsx(eh,{disableEnforceFocus:T,disableAutoFocus:k,disableRestoreFocus:O,isEnabled:X,open:I,children:B.cloneElement(v,ge)})]}))})});process.env.NODE_ENV!=="production"&&(JN.propTypes={BackdropComponent:g.elementType,BackdropProps:g.object,children:Gu.isRequired,classes:g.object,className:g.string,closeAfterTransition:g.bool,component:g.elementType,components:g.shape({Backdrop:g.elementType,Root:g.elementType}),componentsProps:g.shape({backdrop:g.oneOfType([g.func,g.object]),root:g.oneOfType([g.func,g.object])}),container:g.oneOfType([Qi,g.func]),disableAutoFocus:g.bool,disableEnforceFocus:g.bool,disableEscapeKeyDown:g.bool,disablePortal:g.bool,disableRestoreFocus:g.bool,disableScrollLock:g.bool,hideBackdrop:g.bool,keepMounted:g.bool,onBackdropClick:g.func,onClose:g.func,onTransitionEnter:g.func,onTransitionExited:g.func,open:g.bool.isRequired,slotProps:g.shape({backdrop:g.oneOfType([g.func,g.object]),root:g.oneOfType([g.func,g.object])}),slots:g.shape({backdrop:g.elementType,root:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object])});const jQ=JN,FQ=e=>{let t;return e<1?t=5.11916*Vo(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},vA=FQ;function BQ(e){return $t("MuiPaper",e)}jt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const HQ=["className","component","elevation","square","variant"],$Q=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return qt(i,BQ,o)},zQ=ze("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return te({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&te({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Qt.alpha("#fff",vA(t.elevation))}, ${Qt.alpha("#fff",vA(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),ZN=B.forwardRef(function(e,t){const n=Zt({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,c=We(n,HQ),l=te({},n,{component:o,elevation:i,square:a,variant:s}),d=$Q(l);return process.env.NODE_ENV!=="production"&&Hf().shadows[i]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${i}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${i}]\` is defined.`].join(`
|
|
168
|
+
`)),A.jsx(zQ,te({as:o,ownerState:l,className:Xe(d.root,r),ref:t},c))});process.env.NODE_ENV!=="production"&&(ZN.propTypes={children:g.node,classes:g.object,className:g.string,component:g.elementType,elevation:$a(hi,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:g.bool,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),variant:g.oneOfType([g.oneOf(["elevation","outlined"]),g.string])});const WQ=ZN;function UQ(e){return $t("MuiPopover",e)}jt("MuiPopover",["root","paper"]);const qQ=["onEntering"],YQ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],VQ=["slotProps"];function bA(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function yA(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function wA(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Tp(e){return typeof e=="function"?e():e}const GQ=e=>{const{classes:t}=e;return qt({root:["root"],paper:["paper"]},UQ,t)},QQ=ze(jQ,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),KN=ze(WQ,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),XN=B.forwardRef(function(e,t){var n,r,o;const i=Zt({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:p,className:f,container:v,elevation:b=8,marginThreshold:_=16,open:y,PaperProps:C={},slots:k,slotProps:T,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:E=Pw,transitionDuration:O="auto",TransitionProps:{onEntering:S}={},disableScrollLock:R=!1}=i,D=We(i.TransitionProps,qQ),P=We(i,YQ),I=(n=T==null?void 0:T.paper)!=null?n:C,j=B.useRef(),W=jn(j,I.ref),F=te({},i,{anchorOrigin:c,anchorReference:d,elevation:b,marginThreshold:_,externalPaperSlotProps:I,transformOrigin:x,TransitionComponent:E,transitionDuration:O,TransitionProps:D}),H=GQ(F),$=B.useCallback(()=>{if(d==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const re=Tp(s),ue=re&&re.nodeType===1?re:vr(j.current).body,ie=ue.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const be=ue.getBoundingClientRect();process.env.NODE_ENV!=="test"&&be.top===0&&be.left===0&&be.right===0&&be.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
169
|
+
`))}return{top:ie.top+bA(ie,c.vertical),left:ie.left+yA(ie,c.horizontal)}},[s,c.horizontal,c.vertical,l,d]),G=B.useCallback(re=>({vertical:bA(re,x.vertical),horizontal:yA(re,x.horizontal)}),[x.horizontal,x.vertical]),K=B.useCallback(re=>{const ue={width:re.offsetWidth,height:re.offsetHeight},ie=G(ue);if(d==="none")return{top:null,left:null,transformOrigin:wA(ie)};const be=$();let De=be.top-ie.vertical,we=be.left-ie.horizontal;const Be=De+ue.height,Ee=we+ue.width,Oe=Os(Tp(s)),Ae=Oe.innerHeight-_,Le=Oe.innerWidth-_;if(_!==null&&De<_){const Fe=De-_;De-=Fe,ie.vertical+=Fe}else if(_!==null&&Be>Ae){const Fe=Be-Ae;De-=Fe,ie.vertical+=Fe}if(process.env.NODE_ENV!=="production"&&ue.height>Ae&&ue.height&&Ae&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ue.height-Ae}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
170
|
+
`)),_!==null&&we<_){const Fe=we-_;we-=Fe,ie.horizontal+=Fe}else if(Ee>Le){const Fe=Ee-Le;we-=Fe,ie.horizontal+=Fe}return{top:`${Math.round(De)}px`,left:`${Math.round(we)}px`,transformOrigin:wA(ie)}},[s,d,$,G,_]),[Z,X]=B.useState(y),se=B.useCallback(()=>{const re=j.current;if(!re)return;const ue=K(re);ue.top!==null&&(re.style.top=ue.top),ue.left!==null&&(re.style.left=ue.left),re.style.transformOrigin=ue.transformOrigin,X(!0)},[K]);B.useEffect(()=>(R&&window.addEventListener("scroll",se),()=>window.removeEventListener("scroll",se)),[s,R,se]);const ve=(re,ue)=>{S&&S(re,ue),se()},fe=()=>{X(!1)};B.useEffect(()=>{y&&se()}),B.useImperativeHandle(a,()=>y?{updatePosition:()=>{se()}}:null,[y,se]),B.useEffect(()=>{if(!y)return;const re=$I(()=>{se()}),ue=Os(s);return ue.addEventListener("resize",re),()=>{re.clear(),ue.removeEventListener("resize",re)}},[s,y,se]);let me=O;O==="auto"&&!E.muiSupportAuto&&(me=void 0);const ge=v||(s?vr(Tp(s)).body:void 0),Se=(r=k==null?void 0:k.root)!=null?r:QQ,_e=(o=k==null?void 0:k.paper)!=null?o:KN,oe=Rs({elementType:_e,externalSlotProps:te({},I,{style:Z?I.style:te({},I.style,{opacity:0})}),additionalProps:{elevation:b,ref:W},ownerState:F,className:Xe(H.paper,I==null?void 0:I.className)}),N=Rs({elementType:Se,externalSlotProps:(T==null?void 0:T.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:ge,open:y},ownerState:F,className:Xe(H.root,f)}),{slotProps:z}=N,Q=We(N,VQ);return A.jsx(Se,te({},Q,!xu(Se)&&{slotProps:z,disableScrollLock:R},{children:A.jsx(E,te({appear:!0,in:y,onEntering:ve,onExited:fe,timeout:me},D,{children:A.jsx(_e,te({},oe,{children:p}))}))}))});process.env.NODE_ENV!=="production"&&(XN.propTypes={action:Ro,anchorEl:$a(g.oneOfType([Qi,g.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Tp(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
171
|
+
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
172
|
+
`))}return null}),anchorOrigin:g.shape({horizontal:g.oneOfType([g.oneOf(["center","left","right"]),g.number]).isRequired,vertical:g.oneOfType([g.oneOf(["bottom","center","top"]),g.number]).isRequired}),anchorPosition:g.shape({left:g.number.isRequired,top:g.number.isRequired}),anchorReference:g.oneOf(["anchorEl","anchorPosition","none"]),children:g.node,classes:g.object,className:g.string,container:g.oneOfType([Qi,g.func]),disableScrollLock:g.bool,elevation:hi,marginThreshold:g.number,onClose:g.func,open:g.bool.isRequired,PaperProps:g.shape({component:l_}),slotProps:g.shape({paper:g.oneOfType([g.func,g.object]),root:g.oneOfType([g.func,g.object])}),slots:g.shape({paper:g.elementType,root:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),transformOrigin:g.shape({horizontal:g.oneOfType([g.oneOf(["center","left","right"]),g.number]).isRequired,vertical:g.oneOfType([g.oneOf(["bottom","center","top"]),g.number]).isRequired}),TransitionComponent:g.elementType,transitionDuration:g.oneOfType([g.oneOf(["auto"]),g.number,g.shape({appear:g.number,enter:g.number,exit:g.number})]),TransitionProps:g.object});const JQ=XN;function ZQ(e){return $t("MuiMenu",e)}jt("MuiMenu",["root","paper","list"]);const KQ=["onEntering"],XQ=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],eJ={vertical:"top",horizontal:"right"},tJ={vertical:"top",horizontal:"left"},nJ=e=>{const{classes:t}=e;return qt({root:["root"],paper:["paper"],list:["list"]},ZQ,t)},rJ=ze(JQ,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oJ=ze(KN,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),iJ=ze(_Q,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),e2=B.forwardRef(function(e,t){var n,r;const o=Zt({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:c=!1,MenuListProps:l={},onClose:d,open:p,PaperProps:f={},PopoverClasses:v,transitionDuration:b="auto",TransitionProps:{onEntering:_}={},variant:y="selectedMenu",slots:C={},slotProps:k={}}=o,T=We(o.TransitionProps,KQ),x=We(o,XQ),E=Mf(),O=te({},o,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:l,onEntering:_,PaperProps:f,transitionDuration:b,TransitionProps:T,variant:y}),S=nJ(O),R=i&&!c&&p,D=B.useRef(null),P=(G,K)=>{D.current&&D.current.adjustStyleForScrollbar(G,{direction:E?"rtl":"ltr"}),_&&_(G,K)},I=G=>{G.key==="Tab"&&(G.preventDefault(),d&&d(G,"tabKeyDown"))};let j=-1;B.Children.map(a,(G,K)=>{B.isValidElement(G)&&(process.env.NODE_ENV!=="production"&&qi.isFragment(G)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
173
|
+
`)),G.props.disabled||(y==="selectedMenu"&&G.props.selected||j===-1)&&(j=K))});const W=(n=C.paper)!=null?n:oJ,F=(r=k.paper)!=null?r:f,H=Rs({elementType:C.root,externalSlotProps:k.root,ownerState:O,className:[S.root,s]}),$=Rs({elementType:W,externalSlotProps:F,ownerState:O,className:S.paper});return A.jsx(rJ,te({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?eJ:tJ,slots:{paper:W,root:C.root},slotProps:{root:H,paper:$},open:p,ref:t,transitionDuration:b,TransitionProps:te({onEntering:P},T),ownerState:O},x,{classes:v,children:A.jsx(iJ,te({onKeyDown:I,actions:D,autoFocus:i&&(j===-1||c),autoFocusItem:R,variant:y},l,{className:Xe(S.list,l.className),children:a}))}))});process.env.NODE_ENV!=="production"&&(e2.propTypes={anchorEl:g.oneOfType([Qi,g.func]),autoFocus:g.bool,children:g.node,classes:g.object,className:g.string,disableAutoFocusItem:g.bool,MenuListProps:g.object,onClose:g.func,open:g.bool.isRequired,PaperProps:g.object,PopoverClasses:g.object,slotProps:g.shape({paper:g.oneOfType([g.func,g.object]),root:g.oneOfType([g.func,g.object])}),slots:g.shape({paper:g.elementType,root:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),transitionDuration:g.oneOfType([g.oneOf(["auto"]),g.number,g.shape({appear:g.number,enter:g.number,exit:g.number})]),TransitionProps:g.object,variant:g.oneOf(["menu","selectedMenu"])});const aJ=e2;function sJ(e){return $t("MuiNativeSelect",e)}const lJ=jt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),R_=lJ,cJ=["className","disabled","error","IconComponent","inputRef","variant"],uJ=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ot(n)}`,i&&"iconOpen",r&&"disabled"]};return qt(s,sJ,t)},t2=({ownerState:e,theme:t})=>te({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":te({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${R_.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),dJ=ze("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${R_.multiple}`]:t.multiple}]}})(t2),n2=({ownerState:e,theme:t})=>te({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${R_.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),pJ=ze("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ot(n.variant)}`],n.open&&t.iconOpen]}})(n2),r2=B.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,c=We(e,cJ),l=te({},e,{disabled:r,variant:s,error:o}),d=uJ(l);return A.jsxs(B.Fragment,{children:[A.jsx(dJ,te({ownerState:l,className:Xe(d.select,n),disabled:r,ref:a||t},c)),e.multiple?null:A.jsx(pJ,{as:i,ownerState:l,className:d.icon})]})});process.env.NODE_ENV!=="production"&&(r2.propTypes={children:g.node,classes:g.object,className:g.string,disabled:g.bool,error:g.bool,IconComponent:g.elementType.isRequired,inputRef:Ro,multiple:g.bool,name:g.string,onChange:g.func,value:g.any,variant:g.oneOf(["standard","outlined","filled"])});const hJ=r2;function fJ(e){return $t("MuiSelect",e)}const gJ=jt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Yc=gJ;var _A;const mJ=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],vJ=ze("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Yc.select}`]:t.select},{[`&.${Yc.select}`]:t[n.variant]},{[`&.${Yc.error}`]:t.error},{[`&.${Yc.multiple}`]:t.multiple}]}})(t2,{[`&.${Yc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),bJ=ze("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ot(n.variant)}`],n.open&&t.iconOpen]}})(n2),yJ=ze("input",{shouldForwardProp:e=>cN(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function xA(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function wJ(e){return e==null||typeof e=="string"&&!e.trim()}const _J=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ot(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return qt(s,fJ,t)},o2=B.forwardRef(function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:c,defaultOpen:l,defaultValue:d,disabled:p,displayEmpty:f,error:v=!1,IconComponent:b,inputRef:_,labelId:y,MenuProps:C={},multiple:k,name:T,onBlur:x,onChange:E,onClose:O,onFocus:S,onOpen:R,open:D,readOnly:P,renderValue:I,SelectDisplayProps:j={},tabIndex:W,value:F,variant:H="standard"}=e,$=We(e,mJ),[G,K]=Cu({controlled:F,default:d,name:"Select"}),[Z,X]=Cu({controlled:D,default:l,name:"Select"}),se=B.useRef(null),ve=B.useRef(null),[fe,me]=B.useState(null),{current:ge}=B.useRef(D!=null),[Se,_e]=B.useState(),oe=jn(t,_),N=B.useCallback(Pe=>{ve.current=Pe,Pe&&me(Pe)},[]),z=fe==null?void 0:fe.parentNode;B.useImperativeHandle(oe,()=>({focus:()=>{ve.current.focus()},node:se.current,value:G}),[G]),B.useEffect(()=>{l&&Z&&fe&&!ge&&(_e(a?null:z.clientWidth),ve.current.focus())},[fe,a]),B.useEffect(()=>{i&&ve.current.focus()},[i]),B.useEffect(()=>{if(!y)return;const Pe=vr(ve.current).getElementById(y);if(Pe){const Ue=()=>{getSelection().isCollapsed&&ve.current.focus()};return Pe.addEventListener("click",Ue),()=>{Pe.removeEventListener("click",Ue)}}},[y]);const Q=(Pe,Ue)=>{Pe?R&&R(Ue):O&&O(Ue),ge||(_e(a?null:z.clientWidth),X(Pe))},re=Pe=>{Pe.button===0&&(Pe.preventDefault(),ve.current.focus(),Q(!0,Pe))},ue=Pe=>{Q(!1,Pe)},ie=B.Children.toArray(s),be=Pe=>{const Ue=ie.find(Et=>Et.props.value===Pe.target.value);Ue!==void 0&&(K(Ue.props.value),E&&E(Pe,Ue))},De=Pe=>Ue=>{let Et;if(Ue.currentTarget.hasAttribute("tabindex")){if(k){Et=Array.isArray(G)?G.slice():[];const gn=G.indexOf(Pe.props.value);gn===-1?Et.push(Pe.props.value):Et.splice(gn,1)}else Et=Pe.props.value;if(Pe.props.onClick&&Pe.props.onClick(Ue),G!==Et&&(K(Et),E)){const gn=Ue.nativeEvent||Ue,ln=new gn.constructor(gn.type,gn);Object.defineProperty(ln,"target",{writable:!0,value:{value:Et,name:T}}),E(ln,Pe)}k||Q(!1,Ue)}},we=Pe=>{P||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Pe.key)!==-1&&(Pe.preventDefault(),Q(!0,Pe))},Be=fe!==null&&Z,Ee=Pe=>{!Be&&x&&(Object.defineProperty(Pe,"target",{writable:!0,value:{value:G,name:T}}),x(Pe))};delete $["aria-invalid"];let Oe,Ae;const Le=[];let Fe=!1,lt=!1;(NN({value:G})||f)&&(I?Oe=I(G):Fe=!0);const _t=ie.map(Pe=>{if(!B.isValidElement(Pe))return null;process.env.NODE_ENV!=="production"&&qi.isFragment(Pe)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
174
|
+
`));let Ue;if(k){if(!Array.isArray(G))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":As(2));Ue=G.some(Et=>xA(Et,Pe.props.value)),Ue&&Fe&&Le.push(Pe.props.children)}else Ue=xA(G,Pe.props.value),Ue&&Fe&&(Ae=Pe.props.children);return Ue&&(lt=!0),B.cloneElement(Pe,{"aria-selected":Ue?"true":"false",onClick:De(Pe),onKeyUp:Et=>{Et.key===" "&&Et.preventDefault(),Pe.props.onKeyUp&&Pe.props.onKeyUp(Et)},role:"option",selected:Ue,value:void 0,"data-value":Pe.props.value})});process.env.NODE_ENV!=="production"&&B.useEffect(()=>{if(!lt&&!k&&G!==""){const Pe=ie.map(Ue=>Ue.props.value);console.warn([`MUI: You have provided an out-of-range value \`${G}\` for the select ${T?`(name="${T}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Pe.filter(Ue=>Ue!=null).map(Ue=>`\`${Ue}\``).join(", ")||'""'}.`].join(`
|
|
175
|
+
`))}},[lt,ie,k,T,G]),Fe&&(k?Le.length===0?Oe=null:Oe=Le.reduce((Pe,Ue,Et)=>(Pe.push(Ue),Et<Le.length-1&&Pe.push(", "),Pe),[]):Oe=Ae);let wt=Se;!a&&ge&&fe&&(wt=z.clientWidth);let Ge;typeof W!="undefined"?Ge=W:Ge=p?null:0;const Me=j.id||(T?`mui-component-select-${T}`:void 0),at=te({},e,{variant:H,value:G,open:Be,error:v}),Ft=_J(at),tn=te({},C.PaperProps,(n=C.slotProps)==null?void 0:n.paper),zt=Zp();return A.jsxs(B.Fragment,{children:[A.jsx(vJ,te({ref:N,tabIndex:Ge,role:"combobox","aria-controls":zt,"aria-disabled":p?"true":void 0,"aria-expanded":Be?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[y,Me].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:we,onMouseDown:p||P?null:re,onBlur:Ee,onFocus:S},j,{ownerState:at,className:Xe(j.className,Ft.select,c),id:Me,children:wJ(Oe)?_A||(_A=A.jsx("span",{className:"notranslate",children:""})):Oe})),A.jsx(yJ,te({"aria-invalid":v,value:Array.isArray(G)?G.join(","):G,name:T,ref:se,"aria-hidden":!0,onChange:be,tabIndex:-1,disabled:p,className:Ft.nativeInput,autoFocus:i,ownerState:at},$)),A.jsx(bJ,{as:b,className:Ft.icon,ownerState:at}),A.jsx(aJ,te({id:`menu-${T||""}`,anchorEl:z,open:Be,onClose:ue,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},C,{MenuListProps:te({"aria-labelledby":y,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:zt},C.MenuListProps),slotProps:te({},C.slotProps,{paper:te({},tn,{style:te({minWidth:wt},tn!=null?tn.style:null)})}),children:_t}))]})});process.env.NODE_ENV!=="production"&&(o2.propTypes={"aria-describedby":g.string,"aria-label":g.string,autoFocus:g.bool,autoWidth:g.bool,children:g.node,classes:g.object,className:g.string,defaultOpen:g.bool,defaultValue:g.any,disabled:g.bool,displayEmpty:g.bool,error:g.bool,IconComponent:g.elementType.isRequired,inputRef:Ro,labelId:g.string,MenuProps:g.object,multiple:g.bool,name:g.string,onBlur:g.func,onChange:g.func,onClose:g.func,onFocus:g.func,onOpen:g.func,open:g.bool,readOnly:g.bool,renderValue:g.func,SelectDisplayProps:g.object,tabIndex:g.oneOfType([g.number,g.string]),type:g.any,value:g.any,variant:g.oneOf(["standard","outlined","filled"])});const xJ=o2;function CJ(e){return $t("MuiSvgIcon",e)}jt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const SJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],kJ=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ot(t)}`,`fontSize${ot(n)}`]};return qt(o,CJ,r)},TJ=ze("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ot(n.color)}`],t[`fontSize${ot(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,c,l,d,p,f,v,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(c=s.pxToRem)==null?void 0:c.call(s,24))||"1.5rem",large:((l=e.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,35))||"2.1875rem"}[t.fontSize],color:(p=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?p:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),D_=B.forwardRef(function(e,t){const n=Zt({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:c,inheritViewBox:l=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,f=We(n,SJ),v=B.isValidElement(r)&&r.type==="svg",b=te({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:p,hasSvgAsChild:v}),_={};l||(_.viewBox=p);const y=kJ(b);return A.jsxs(TJ,te({as:a,className:Xe(y.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:t},_,f,v&&r.props,{ownerState:b,children:[v?r.props.children:r,d?A.jsx("title",{children:d}):null]}))});process.env.NODE_ENV!=="production"&&(D_.propTypes={children:g.node,classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),g.string]),component:g.elementType,fontSize:g.oneOfType([g.oneOf(["inherit","large","medium","small"]),g.string]),htmlColor:g.string,inheritViewBox:g.bool,shapeRendering:g.string,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),titleAccess:g.string,viewBox:g.string});D_.muiName="SvgIcon";const Iw=D_;function Ei(e,t){function n(r,o){return A.jsx(Iw,te({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Iw.muiName,B.memo(B.forwardRef(n))}const EJ=Ei(A.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function AJ(e){return $t("MuiInput",e)}const OJ=te({},tc,jt("MuiInput",["root","underline","input"])),Vc=OJ,RJ=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],DJ=e=>{const{classes:t,disableUnderline:n}=e,r=qt({root:["root",!n&&"underline"],input:["input"]},AJ,t);return te({},t,r)},MJ=ze(Nf,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pf(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),te({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Vc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Vc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Vc.disabled}, .${Vc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Vc.disabled}:before`]:{borderBottomStyle:"dotted"}})}),PJ=ze(Lf,{name:"MuiInput",slot:"Input",overridesResolver:If})({}),M_=B.forwardRef(function(e,t){var n,r,o,i;const a=Zt({props:e,name:"MuiInput"}),{disableUnderline:s,components:c={},componentsProps:l,fullWidth:d=!1,inputComponent:p="input",multiline:f=!1,slotProps:v,slots:b={},type:_="text"}=a,y=We(a,RJ),C=DJ(a),k={root:{ownerState:{disableUnderline:s}}},T=(v!=null?v:l)?Jr(v!=null?v:l,k):k,x=(n=(r=b.root)!=null?r:c.Root)!=null?n:MJ,E=(o=(i=b.input)!=null?i:c.Input)!=null?o:PJ;return A.jsx(jf,te({slots:{root:x,input:E},slotProps:T,fullWidth:d,inputComponent:p,multiline:f,ref:t,type:_},y,{classes:C}))});process.env.NODE_ENV!=="production"&&(M_.propTypes={autoComplete:g.string,autoFocus:g.bool,classes:g.object,color:g.oneOfType([g.oneOf(["primary","secondary"]),g.string]),components:g.shape({Input:g.elementType,Root:g.elementType}),componentsProps:g.shape({input:g.object,root:g.object}),defaultValue:g.any,disabled:g.bool,disableUnderline:g.bool,endAdornment:g.node,error:g.bool,fullWidth:g.bool,id:g.string,inputComponent:g.elementType,inputProps:g.object,inputRef:Ro,margin:g.oneOf(["dense","none"]),maxRows:g.oneOfType([g.number,g.string]),minRows:g.oneOfType([g.number,g.string]),multiline:g.bool,name:g.string,onChange:g.func,placeholder:g.string,readOnly:g.bool,required:g.bool,rows:g.oneOfType([g.number,g.string]),slotProps:g.shape({input:g.object,root:g.object}),slots:g.shape({input:g.elementType,root:g.elementType}),startAdornment:g.node,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),type:g.string,value:g.any});M_.muiName="Input";const IJ=M_;function NJ(e){return $t("MuiFilledInput",e)}const LJ=te({},tc,jt("MuiFilledInput",["root","underline","input"])),hs=LJ,jJ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],FJ=e=>{const{classes:t,disableUnderline:n}=e,r=qt({root:["root",!n&&"underline"],input:["input"]},NJ,t);return te({},t,r)},BJ=ze(Nf,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pf(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return te({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${hs.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${hs.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${hs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${hs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${hs.disabled}, .${hs.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${hs.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&te({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),HJ=ze(Lf,{name:"MuiFilledInput",slot:"Input",overridesResolver:If})(({theme:e,ownerState:t})=>te({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),P_=B.forwardRef(function(e,t){var n,r,o,i;const a=Zt({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:c,fullWidth:l=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:v={},type:b="text"}=a,_=We(a,jJ),y=te({},a,{fullWidth:l,inputComponent:d,multiline:p,type:b}),C=FJ(a),k={root:{ownerState:y},input:{ownerState:y}},T=(f!=null?f:c)?Jr(k,f!=null?f:c):k,x=(n=(r=v.root)!=null?r:s.Root)!=null?n:BJ,E=(o=(i=v.input)!=null?i:s.Input)!=null?o:HJ;return A.jsx(jf,te({slots:{root:x,input:E},componentsProps:T,fullWidth:l,inputComponent:d,multiline:p,ref:t,type:b},_,{classes:C}))});process.env.NODE_ENV!=="production"&&(P_.propTypes={autoComplete:g.string,autoFocus:g.bool,classes:g.object,color:g.oneOfType([g.oneOf(["primary","secondary"]),g.string]),components:g.shape({Input:g.elementType,Root:g.elementType}),componentsProps:g.shape({input:g.object,root:g.object}),defaultValue:g.any,disabled:g.bool,disableUnderline:g.bool,endAdornment:g.node,error:g.bool,fullWidth:g.bool,hiddenLabel:g.bool,id:g.string,inputComponent:g.elementType,inputProps:g.object,inputRef:Ro,margin:g.oneOf(["dense","none"]),maxRows:g.oneOfType([g.number,g.string]),minRows:g.oneOfType([g.number,g.string]),multiline:g.bool,name:g.string,onChange:g.func,placeholder:g.string,readOnly:g.bool,required:g.bool,rows:g.oneOfType([g.number,g.string]),slotProps:g.shape({input:g.object,root:g.object}),slots:g.shape({input:g.elementType,root:g.elementType}),startAdornment:g.node,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),type:g.string,value:g.any});P_.muiName="Input";const $J=P_;var CA;const zJ=["children","classes","className","label","notched"],WJ=ze("fieldset",{shouldForwardProp:Mo})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),UJ=ze("legend",{shouldForwardProp:Mo})(({ownerState:e,theme:t})=>te({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&te({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function i2(e){const{className:t,label:n,notched:r}=e,o=We(e,zJ),i=n!=null&&n!=="",a=te({},e,{notched:r,withLabel:i});return A.jsx(WJ,te({"aria-hidden":!0,className:t,ownerState:a},o,{children:A.jsx(UJ,{ownerState:a,children:i?A.jsx("span",{children:n}):CA||(CA=A.jsx("span",{className:"notranslate",children:""}))})}))}process.env.NODE_ENV!=="production"&&(i2.propTypes={children:g.node,classes:g.object,className:g.string,label:g.node,notched:g.bool.isRequired,style:g.object});function qJ(e){return $t("MuiOutlinedInput",e)}const YJ=te({},tc,jt("MuiOutlinedInput",["root","notchedOutline","input"])),fa=YJ,VJ=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],GJ=e=>{const{classes:t}=e,n=qt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qJ,t);return te({},t,n)},QJ=ze(Nf,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Pf})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return te({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${fa.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${fa.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${fa.focused} .${fa.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${fa.error} .${fa.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${fa.disabled} .${fa.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&te({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),JJ=ze(i2,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),ZJ=ze(Lf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:If})(({theme:e,ownerState:t})=>te({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),I_=B.forwardRef(function(e,t){var n,r,o,i,a;const s=Zt({props:e,name:"MuiOutlinedInput"}),{components:c={},fullWidth:l=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:v,slots:b={},type:_="text"}=s,y=We(s,VJ),C=GJ(s),k=Df(),T=T_({props:s,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=te({},s,{color:T.color||"primary",disabled:T.disabled,error:T.error,focused:T.focused,formControl:k,fullWidth:l,hiddenLabel:T.hiddenLabel,multiline:f,size:T.size,type:_}),E=(n=(r=b.root)!=null?r:c.Root)!=null?n:QJ,O=(o=(i=b.input)!=null?i:c.Input)!=null?o:ZJ;return A.jsx(jf,te({slots:{root:E,input:O},renderSuffix:S=>A.jsx(JJ,{ownerState:x,className:C.notchedOutline,label:p!=null&&p!==""&&T.required?a||(a=A.jsxs(B.Fragment,{children:[p," ","*"]})):p,notched:typeof v!="undefined"?v:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:l,inputComponent:d,multiline:f,ref:t,type:_},y,{classes:te({},C,{notchedOutline:null})}))});process.env.NODE_ENV!=="production"&&(I_.propTypes={autoComplete:g.string,autoFocus:g.bool,classes:g.object,color:g.oneOfType([g.oneOf(["primary","secondary"]),g.string]),components:g.shape({Input:g.elementType,Root:g.elementType}),defaultValue:g.any,disabled:g.bool,endAdornment:g.node,error:g.bool,fullWidth:g.bool,id:g.string,inputComponent:g.elementType,inputProps:g.object,inputRef:Ro,label:g.node,margin:g.oneOf(["dense","none"]),maxRows:g.oneOfType([g.number,g.string]),minRows:g.oneOfType([g.number,g.string]),multiline:g.bool,name:g.string,notched:g.bool,onChange:g.func,placeholder:g.string,readOnly:g.bool,required:g.bool,rows:g.oneOfType([g.number,g.string]),slots:g.shape({input:g.elementType,root:g.elementType}),startAdornment:g.node,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),type:g.string,value:g.any});I_.muiName="Input";const KJ=I_,XJ=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],eZ=["root"],tZ=e=>{const{classes:t}=e;return t},N_={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mo(e)&&e!=="variant",slot:"Root"},nZ=ze(IJ,N_)(""),rZ=ze(KJ,N_)(""),oZ=ze($J,N_)(""),L_=B.forwardRef(function(e,t){const n=Zt({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:l=EJ,id:d,input:p,inputProps:f,label:v,labelId:b,MenuProps:_,multiple:y=!1,native:C=!1,onClose:k,onOpen:T,open:x,renderValue:E,SelectDisplayProps:O,variant:S="outlined"}=n,R=We(n,XJ),D=C?hJ:xJ,P=Df(),I=T_({props:n,muiFormControl:P,states:["variant","error"]}),j=I.variant||S,W=te({},n,{variant:j,classes:i}),F=tZ(W),H=We(F,eZ),$=p||{standard:A.jsx(nZ,{ownerState:W}),outlined:A.jsx(rZ,{label:v,ownerState:W}),filled:A.jsx(oZ,{ownerState:W})}[j],G=jn(t,$.ref);return A.jsx(B.Fragment,{children:B.cloneElement($,te({inputComponent:D,inputProps:te({children:o,error:I.error,IconComponent:l,variant:j,type:void 0,multiple:y},C?{id:d}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:b,MenuProps:_,onClose:k,onOpen:T,open:x,renderValue:E,SelectDisplayProps:te({id:d},O)},f,{classes:f?Jr(H,f.classes):H},p?p.props.inputProps:{})},(y&&C||c)&&j==="outlined"?{notched:!0}:{},{ref:G,className:Xe($.props.className,a,F.root)},!p&&{variant:j},R))})});process.env.NODE_ENV!=="production"&&(L_.propTypes={autoWidth:g.bool,children:g.node,classes:g.object,className:g.string,defaultOpen:g.bool,defaultValue:g.any,displayEmpty:g.bool,IconComponent:g.elementType,id:g.string,input:g.element,inputProps:g.object,label:g.node,labelId:g.string,MenuProps:g.object,multiple:g.bool,native:g.bool,onChange:g.func,onClose:g.func,onOpen:g.func,open:g.bool,renderValue:g.func,SelectDisplayProps:g.object,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),value:g.oneOfType([g.oneOf([""]),g.any]),variant:g.oneOf(["filled","outlined","standard"])});L_.muiName="Select";const iZ=L_,a2=B.createContext();process.env.NODE_ENV!=="production"&&(a2.displayName="TableContext");const aZ=a2,s2=B.createContext();process.env.NODE_ENV!=="production"&&(s2.displayName="Tablelvl2Context");const sZ=s2;function lZ(e){return $t("MuiTableCell",e)}const cZ=jt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),uZ=cZ,dZ=["align","className","component","padding","scope","size","sortDirection","variant"],pZ=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ot(r)}`,o!=="normal"&&`padding${ot(o)}`,`size${ot(i)}`]};return qt(s,lZ,t)},hZ=ze("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ot(n.size)}`],n.padding!=="normal"&&t[`padding${ot(n.padding)}`],n.align!=="inherit"&&t[`align${ot(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>te({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
176
|
+
${e.palette.mode==="light"?Qt.lighten(Qt.alpha(e.palette.divider,1),.88):Qt.darken(Qt.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${uZ.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),l2=B.forwardRef(function(e,t){const n=Zt({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:s,size:c,sortDirection:l,variant:d}=n,p=We(n,dZ),f=B.useContext(aZ),v=B.useContext(sZ),b=v&&v.variant==="head";let _;i?_=i:_=b?"th":"td";let y=s;_==="td"?y=void 0:!y&&b&&(y="col");const C=d||v&&v.variant,k=te({},n,{align:r,component:_,padding:a||(f&&f.padding?f.padding:"normal"),size:c||(f&&f.size?f.size:"medium"),sortDirection:l,stickyHeader:C==="head"&&f&&f.stickyHeader,variant:C}),T=pZ(k);let x=null;return l&&(x=l==="asc"?"ascending":"descending"),A.jsx(hZ,te({as:_,ref:t,className:Xe(T.root,o),"aria-sort":x,scope:y,ownerState:k},p))});process.env.NODE_ENV!=="production"&&(l2.propTypes={align:g.oneOf(["center","inherit","justify","left","right"]),children:g.node,classes:g.object,className:g.string,component:g.elementType,padding:g.oneOf(["checkbox","none","normal"]),scope:g.string,size:g.oneOfType([g.oneOf(["medium","small"]),g.string]),sortDirection:g.oneOf(["asc","desc",!1]),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),variant:g.oneOfType([g.oneOf(["body","footer","head"]),g.string])});const Nw=l2;function fZ(e){return $t("MuiToolbar",e)}jt("MuiToolbar",["root","gutters","regular","dense"]);const gZ=["className","component","disableGutters","variant"],mZ=e=>{const{classes:t,disableGutters:n,variant:r}=e;return qt({root:["root",!n&&"gutters",r]},fZ,t)},vZ=ze("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>te({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),c2=B.forwardRef(function(e,t){const n=Zt({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:i=!1,variant:a="regular"}=n,s=We(n,gZ),c=te({},n,{component:o,disableGutters:i,variant:a}),l=mZ(c);return A.jsx(vZ,te({as:o,className:Xe(l.root,r),ref:t,ownerState:c},s))});process.env.NODE_ENV!=="production"&&(c2.propTypes={children:g.node,classes:g.object,className:g.string,component:g.elementType,disableGutters:g.bool,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),variant:g.oneOfType([g.oneOf(["dense","regular"]),g.string])});const bZ=c2,yZ=Ei(A.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),wZ=Ei(A.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function _Z(e){return $t("MuiIconButton",e)}const xZ=jt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),CZ=xZ,SZ=["edge","children","className","color","disabled","disableFocusRipple","size"],kZ=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${ot(r)}`,o&&`edge${ot(o)}`,`size${ot(i)}`]};return qt(a,_Z,t)},TZ=ze(Bf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ot(n.color)}`],n.edge&&t[`edge${ot(n.edge)}`],t[`size${ot(n.size)}`]]}})(({theme:e,ownerState:t})=>te({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qt.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return te({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&te({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":te({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qt.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${CZ.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),u2=B.forwardRef(function(e,t){const n=Zt({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:c=!1,size:l="medium"}=n,d=We(n,SZ),p=te({},n,{edge:r,color:a,disabled:s,disableFocusRipple:c,size:l}),f=kZ(p);return A.jsx(TZ,te({className:Xe(f.root,i),centerRipple:!0,focusRipple:!c,disabled:s,ref:t},d,{ownerState:p,children:o}))});process.env.NODE_ENV!=="production"&&(u2.propTypes={children:$a(g.node,e=>B.Children.toArray(e.children).some(t=>B.isValidElement(t)&&t.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
177
|
+
`)):null),classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),g.string]),disabled:g.bool,disableFocusRipple:g.bool,disableRipple:g.bool,edge:g.oneOf(["end","start",!1]),size:g.oneOfType([g.oneOf(["small","medium","large"]),g.string]),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object])});const Xd=u2,Lw=Ei(A.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),jw=Ei(A.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),EZ=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],d2=B.forwardRef(function(e,t){var n,r,o,i,a,s,c,l;const{backIconButtonProps:d,count:p,disabled:f=!1,getItemAriaLabel:v,nextIconButtonProps:b,onPageChange:_,page:y,rowsPerPage:C,showFirstButton:k,showLastButton:T,slots:x={},slotProps:E={}}=e,O=We(e,EZ),S=Mf(),R=oe=>{_(oe,0)},D=oe=>{_(oe,y-1)},P=oe=>{_(oe,y+1)},I=oe=>{_(oe,Math.max(0,Math.ceil(p/C)-1))},j=(n=x.firstButton)!=null?n:Xd,W=(r=x.lastButton)!=null?r:Xd,F=(o=x.nextButton)!=null?o:Xd,H=(i=x.previousButton)!=null?i:Xd,$=(a=x.firstButtonIcon)!=null?a:jw,G=(s=x.lastButtonIcon)!=null?s:Lw,K=(c=x.nextButtonIcon)!=null?c:wZ,Z=(l=x.previousButtonIcon)!=null?l:yZ,X=S?W:j,se=S?F:H,ve=S?H:F,fe=S?j:W,me=S?E.lastButton:E.firstButton,ge=S?E.nextButton:E.previousButton,Se=S?E.previousButton:E.nextButton,_e=S?E.firstButton:E.lastButton;return A.jsxs("div",te({ref:t},O,{children:[k&&A.jsx(X,te({onClick:R,disabled:f||y===0,"aria-label":v("first",y),title:v("first",y)},me,{children:S?A.jsx(G,te({},E.lastButtonIcon)):A.jsx($,te({},E.firstButtonIcon))})),A.jsx(se,te({onClick:D,disabled:f||y===0,color:"inherit","aria-label":v("previous",y),title:v("previous",y)},ge!=null?ge:d,{children:S?A.jsx(K,te({},E.nextButtonIcon)):A.jsx(Z,te({},E.previousButtonIcon))})),A.jsx(ve,te({onClick:P,disabled:f||(p!==-1?y>=Math.ceil(p/C)-1:!1),color:"inherit","aria-label":v("next",y),title:v("next",y)},Se!=null?Se:b,{children:S?A.jsx(Z,te({},E.previousButtonIcon)):A.jsx(K,te({},E.nextButtonIcon))})),T&&A.jsx(fe,te({onClick:I,disabled:f||y>=Math.ceil(p/C)-1,"aria-label":v("last",y),title:v("last",y)},_e,{children:S?A.jsx($,te({},E.firstButtonIcon)):A.jsx(G,te({},E.lastButtonIcon))}))]}))});process.env.NODE_ENV!=="production"&&(d2.propTypes={backIconButtonProps:g.object,count:g.number.isRequired,disabled:g.bool,getItemAriaLabel:g.func.isRequired,nextIconButtonProps:g.object,onPageChange:g.func.isRequired,page:g.number.isRequired,rowsPerPage:g.number.isRequired,showFirstButton:g.bool.isRequired,showLastButton:g.bool.isRequired,slotProps:g.shape({firstButton:g.object,firstButtonIcon:g.object,lastButton:g.object,lastButtonIcon:g.object,nextButton:g.object,nextButtonIcon:g.object,previousButton:g.object,previousButtonIcon:g.object}),slots:g.shape({firstButton:g.elementType,firstButtonIcon:g.elementType,lastButton:g.elementType,lastButtonIcon:g.elementType,nextButton:g.elementType,nextButtonIcon:g.elementType,previousButton:g.elementType,previousButtonIcon:g.elementType})});const AZ=d2;function OZ(e){return $t("MuiTablePagination",e)}const RZ=jt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),gu=RZ;var SA;const DZ=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],MZ=ze(Nw,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),PZ=ze(bZ,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>te({[`& .${gu.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${gu.actions}`]:{flexShrink:0,marginLeft:20}})),IZ=ze("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),NZ=ze("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>te({},e.typography.body2,{flexShrink:0})),LZ=ze(iZ,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>te({[`& .${gu.selectIcon}`]:t.selectIcon,[`& .${gu.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${gu.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),jZ=ze(fQ,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),FZ=ze("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>te({},e.typography.body2,{flexShrink:0}));function BZ({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function HZ(e){return`Go to ${e} page`}const $Z=e=>{const{classes:t}=e;return qt({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},OZ,t)},p2=B.forwardRef(function(e,t){var n;const r=Zt({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=AZ,backIconButtonProps:i,className:a,colSpan:s,component:c=Nw,count:l,disabled:d=!1,getItemAriaLabel:p=HZ,labelDisplayedRows:f=BZ,labelRowsPerPage:v="Rows per page:",nextIconButtonProps:b,onPageChange:_,onRowsPerPageChange:y,page:C,rowsPerPage:k,rowsPerPageOptions:T=[10,25,50,100],SelectProps:x={},showFirstButton:E=!1,showLastButton:O=!1,slotProps:S={},slots:R={}}=r,D=We(r,DZ),P=r,I=$Z(P),j=(n=S==null?void 0:S.select)!=null?n:x,W=j.native?"option":jZ;let F;(c===Nw||c==="td")&&(F=s||1e3);const H=Zp(j.id),$=Zp(j.labelId),G=()=>l===-1?(C+1)*k:k===-1?l:Math.min(l,(C+1)*k);return A.jsx(MZ,te({colSpan:F,ref:t,as:c,ownerState:P,className:Xe(I.root,a)},D,{children:A.jsxs(PZ,{className:I.toolbar,children:[A.jsx(IZ,{className:I.spacer}),T.length>1&&A.jsx(NZ,{className:I.selectLabel,id:$,children:v}),T.length>1&&A.jsx(LZ,te({variant:"standard"},!j.variant&&{input:SA||(SA=A.jsx(jf,{}))},{value:k,onChange:y,id:H,labelId:$},j,{classes:te({},j.classes,{root:Xe(I.input,I.selectRoot,(j.classes||{}).root),select:Xe(I.select,(j.classes||{}).select),icon:Xe(I.selectIcon,(j.classes||{}).icon)}),disabled:d,children:T.map(K=>Y.createElement(W,te({},!xu(W)&&{ownerState:P},{className:I.menuItem,key:K.label?K.label:K,value:K.value?K.value:K}),K.label?K.label:K))})),A.jsx(FZ,{className:I.displayedRows,children:f({from:l===0?0:C*k+1,to:G(),count:l===-1?-1:l,page:C})}),A.jsx(o,{className:I.actions,backIconButtonProps:i,count:l,nextIconButtonProps:b,onPageChange:_,page:C,rowsPerPage:k,showFirstButton:E,showLastButton:O,slotProps:S.actions,slots:R.actions,getItemAriaLabel:p,disabled:d})]})}))});process.env.NODE_ENV!=="production"&&(p2.propTypes={ActionsComponent:g.elementType,backIconButtonProps:g.object,classes:g.object,className:g.string,colSpan:g.number,component:g.elementType,count:hi.isRequired,disabled:g.bool,getItemAriaLabel:g.func,labelDisplayedRows:g.func,labelRowsPerPage:g.node,nextIconButtonProps:g.object,onPageChange:g.func.isRequired,onRowsPerPageChange:g.func,page:$a(hi.isRequired,e=>{const{count:t,page:n,rowsPerPage:r}=e;if(t===-1)return null;const o=Math.max(0,Math.ceil(t/r)-1);return n<0||n>o?new Error(`MUI: The page prop of a TablePagination is out of range (0 to ${o}, but page is ${n}).`):null}),rowsPerPage:hi.isRequired,rowsPerPageOptions:g.arrayOf(g.oneOfType([g.number,g.shape({label:g.string.isRequired,value:g.number.isRequired})]).isRequired),SelectProps:g.object,showFirstButton:g.bool,showLastButton:g.bool,slotProps:g.shape({actions:g.shape({firstButton:g.object,firstButtonIcon:g.object,lastButton:g.object,lastButtonIcon:g.object,nextButton:g.object,nextButtonIcon:g.object,previousButton:g.object,previousButtonIcon:g.object}),select:g.object}),slots:g.shape({actions:g.shape({firstButton:g.elementType,firstButtonIcon:g.elementType,lastButton:g.elementType,lastButtonIcon:g.elementType,nextButton:g.elementType,nextButtonIcon:g.elementType,previousButton:g.elementType,previousButtonIcon:g.elementType})}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object])});const zZ=p2,WZ=["theme"];function Bs(e){let{theme:t}=e,n=We(e,WZ);const r=t[Jl];return A.jsx(oh,te({},n,{themeId:r?Jl:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(Bs.propTypes={children:g.node,theme:g.oneOfType([g.object,g.func]).isRequired});var UZ=function(){},h2=typeof window!="undefined",qZ=h2?Y.useLayoutEffect:Y.useEffect;const YZ=qZ;var f2={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function VZ(){var e=Y.useState(null),t=e[0],n=e[1],r=Y.useState(f2),o=r[0],i=r[1],a=Y.useMemo(function(){return new window.ResizeObserver(function(s){if(s[0]){var c=s[0].contentRect,l=c.x,d=c.y,p=c.width,f=c.height,v=c.top,b=c.left,_=c.bottom,y=c.right;i({x:l,y:d,width:p,height:f,top:v,left:b,bottom:_,right:y})}})},[]);return YZ(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,o]}const GZ=h2&&typeof window.ResizeObserver!="undefined"?VZ:function(){return[UZ,f2]},g2=Y.createContext({}),QZ="responsive-table-pagination",ui={xs:0,sm:200,md:439,lg:600,xl:1536},JZ=e=>ep(ui.xs,ui.sm,e)?"xs":ep(ui.sm,ui.md,e)?"sm":ep(ui.md,ui.lg,e)?"md":ep(ui.lg,ui.xl,e)?"lg":"xl",ep=(e,t,n)=>n>=e&&n<t;function ZZ(e){return $t("MuiPagination",e)}jt("MuiPagination",["root","ul","outlined","text"]);const KZ=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function XZ(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:i=!1,hideNextButton:a=!1,hidePrevButton:s=!1,onChange:c,page:l,showFirstButton:d=!1,showLastButton:p=!1,siblingCount:f=1}=e,v=We(e,KZ),[b,_]=Cu({controlled:l,default:o,name:n,state:"page"}),y=(D,P)=>{l||_(P),c&&c(D,P)},C=(D,P)=>{const I=P-D+1;return Array.from({length:I},(j,W)=>D+W)},k=C(1,Math.min(t,r)),T=C(Math.max(r-t+1,t+1),r),x=Math.max(Math.min(b-f,r-t-f*2-1),t+2),E=Math.min(Math.max(b+f,t+f*2+2),T.length>0?T[0]-2:r-1),O=[...d?["first"]:[],...s?[]:["previous"],...k,...x>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...C(x,E),...E<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...T,...a?[]:["next"],...p?["last"]:[]],S=D=>{switch(D){case"first":return 1;case"previous":return b-1;case"next":return b+1;case"last":return r;default:return null}},R=O.map(D=>typeof D=="number"?{onClick:P=>{y(P,D)},type:"page",page:D,selected:D===b,disabled:i,"aria-current":D===b?"true":void 0}:{onClick:P=>{y(P,S(D))},type:D,page:S(D),selected:!1,disabled:i||D.indexOf("ellipsis")===-1&&(D==="next"||D==="last"?b>=r:b<=1)});return te({items:R},v)}function eK(e){return $t("MuiPaginationItem",e)}const tK=jt("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),_o=tK,kA=Ei(A.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),TA=Ei(A.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),nK=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],m2=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ot(n.size)}`],n.variant==="text"&&t[`text${ot(n.color)}`],n.variant==="outlined"&&t[`outlined${ot(n.color)}`],n.shape==="rounded"&&t.rounded,n.type==="page"&&t.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&t.ellipsis,(n.type==="previous"||n.type==="next")&&t.previousNext,(n.type==="first"||n.type==="last")&&t.firstLast]},rK=e=>{const{classes:t,color:n,disabled:r,selected:o,size:i,shape:a,type:s,variant:c}=e,l={root:["root",`size${ot(i)}`,c,a,n!=="standard"&&`color${ot(n)}`,n!=="standard"&&`${c}${ot(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return qt(l,eK,t)},oK=ze("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:m2})(({theme:e,ownerState:t})=>te({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${_o.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),iK=ze(Bf,{name:"MuiPaginationItem",slot:"Root",overridesResolver:m2})(({theme:e,ownerState:t})=>te({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${_o.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_o.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_o.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qt.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${_o.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qt.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${_o.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>te({},t.variant==="text"&&{[`&.${_o.selected}`]:te({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${_o.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${_o.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${_o.selected}`]:te({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:Qt.alpha(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:Qt.alpha(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qt.alpha(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_o.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qt.alpha(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${_o.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),aK=ze("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>te({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),v2=B.forwardRef(function(e,t){const n=Zt({props:e,name:"MuiPaginationItem"}),{className:r,color:o="standard",component:i,components:a={},disabled:s=!1,page:c,selected:l=!1,shape:d="circular",size:p="medium",slots:f={},type:v="page",variant:b="text"}=n,_=We(n,nK),y=te({},n,{color:o,disabled:s,selected:l,shape:d,size:p,type:v,variant:b}),C=Mf(),k=rK(y),T=(C?{previous:f.next||a.next||TA,next:f.previous||a.previous||kA,last:f.first||a.first||jw,first:f.last||a.last||Lw}:{previous:f.previous||a.previous||kA,next:f.next||a.next||TA,first:f.first||a.first||jw,last:f.last||a.last||Lw})[v];return v==="start-ellipsis"||v==="end-ellipsis"?A.jsx(oK,{ref:t,ownerState:y,className:Xe(k.root,r),children:"…"}):A.jsxs(iK,te({ref:t,ownerState:y,component:i,disabled:s,className:Xe(k.root,r)},_,{children:[v==="page"&&c,T?A.jsx(aK,{as:T,ownerState:y,className:k.icon}):null]}))});process.env.NODE_ENV!=="production"&&(v2.propTypes={children:g.node,classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["primary","secondary","standard"]),g.string]),component:g.elementType,components:g.shape({first:g.elementType,last:g.elementType,next:g.elementType,previous:g.elementType}),disabled:g.bool,page:g.node,selected:g.bool,shape:g.oneOf(["circular","rounded"]),size:g.oneOfType([g.oneOf(["small","medium","large"]),g.string]),slots:g.shape({first:g.elementType,last:g.elementType,next:g.elementType,previous:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),type:g.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:g.oneOfType([g.oneOf(["outlined","text"]),g.string])});const b2=v2,sK=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],lK=e=>{const{classes:t,variant:n}=e;return qt({root:["root",n],ul:["ul"]},ZZ,t)},cK=ze("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),uK=ze("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function dK(e,t,n){return e==="page"?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const y2=B.forwardRef(function(e,t){const n=Zt({props:e,name:"MuiPagination"}),{boundaryCount:r=1,className:o,color:i="standard",count:a=1,defaultPage:s=1,disabled:c=!1,getItemAriaLabel:l=dK,hideNextButton:d=!1,hidePrevButton:p=!1,renderItem:f=S=>A.jsx(b2,te({},S)),shape:v="circular",showFirstButton:b=!1,showLastButton:_=!1,siblingCount:y=1,size:C="medium",variant:k="text"}=n,T=We(n,sK),{items:x}=XZ(te({},n,{componentName:"Pagination"})),E=te({},n,{boundaryCount:r,color:i,count:a,defaultPage:s,disabled:c,getItemAriaLabel:l,hideNextButton:d,hidePrevButton:p,renderItem:f,shape:v,showFirstButton:b,showLastButton:_,siblingCount:y,size:C,variant:k}),O=lK(E);return A.jsx(cK,te({"aria-label":"pagination navigation",className:Xe(O.root,o),ownerState:E,ref:t},T,{children:A.jsx(uK,{className:O.ul,ownerState:E,children:x.map((S,R)=>A.jsx("li",{children:f(te({},S,{color:i,"aria-label":l(S.type,S.page,S.selected),shape:v,size:C,variant:k}))},R))})}))});process.env.NODE_ENV!=="production"&&(y2.propTypes={boundaryCount:hi,classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["primary","secondary","standard"]),g.string]),count:hi,defaultPage:hi,disabled:g.bool,getItemAriaLabel:g.func,hideNextButton:g.bool,hidePrevButton:g.bool,onChange:g.func,page:hi,renderItem:g.func,shape:g.oneOf(["circular","rounded"]),showFirstButton:g.bool,showLastButton:g.bool,siblingCount:hi,size:g.oneOfType([g.oneOf(["small","medium","large"]),g.string]),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),variant:g.oneOfType([g.oneOf(["outlined","text"]),g.string])});const pK=y2,tp={$ABBEY:" #45464a",$ALABASTER:" #f7f7f7",$ALTO:" #d3d3d3",$ALTO2:" #dadada",$ALUMINIUM:" #a4a8b0",$ATHENS_GRAY_DARK:" #edeef1",$ATHENS_GRAY_DARK2:" #e3e5ea",$ATHENS_GRAY_LIGHT:" #f9f9fb",$ATHENS_GRAY:" #f4f4f8",$BLACK:" #000000",$BRIGHT_GRAY:" #373c48",$CARNATION:" #fa5556",$CHARADE:" #272a34",$DODGER_BLUE:" #1faff3",$EMPEROR:" #4f4f4f",$EBONY:" #080e18",$EBONY_CLAY:" #272d39",$FRENCH_GRAY:" #bdc1c7",$GALLERY_DARK:" #ebebeb",$GALLERY:" #efefef",$GHOST2:" #c6c9ce",$GRAY_CHATEAU:" #9ea2ab",$HALF_AND_HALF:" #ffffde",$MAKO:" #444a55",$MERCURY:" #e5e5e5",$MISCHKA:" #d1d1d7",$NEVADA:" #686a6c",$NOBEL:" #b6b6b6",$OSLO_GRAY:" #888c92",$OXFORD_BLUE:" #3a4356",$PALE_CANERY:" #ffff9c",$PALE_SKY:" #6e7785",$PORCELAIN:"rgba(165, 168, 173, 0.25)",$PROCELAIN_GRAY:" #e7e8ea",$POWDER_BLUE:" #b1e4d7",$REGENT_GREY:" #7f899c",$SEASHELL:" #f1f1f1",$SELECTIVE_YELLOW:" #fbbc04",$SELECTIVE_YELLOW2:" #f2b900",$SHARK:" #23252d",$SHUTTLE_GRAY_DARK:" #5b6372",$SHUTTLE_GRAY:" #5c6372",$SILVER:" #bbbbbb",$SILVER2:" #c5c5c5",$SILVER_CHALICE:" #acacac",$SUPERNOVA_YELLOW:" #ffcb05",$TURQUOISE:" #35d7be",$TROPICAL_BLUE:" #c1e1f6",$TROUT:" #515866",$WILD_SAND:" #f5f5f5",$WISTFUL:" #a4a4d5",$WHITE:" #ffffff",$GHOST:" #c7c9d5",$SCIENCE_BLUE:" #0065e3",$ALABASTER_DARK:"#f7f7f7",$EASTERN_BLUE:"#22ab9f",$HONEY_FLOWER:"#53206b",$MANATEE:"#9898a4",$MIRAGE:"#131326",$RUM:"#735482",$STORM_GRAY:"#6a6a7c",$TUNA:"#363649",$MORTAR:"#463a4c",$SPARTAN_GRAY:"#e0e1eb",$LIGHT_WISTERIA:"#bface1",$EAST_SIDE:"#a087cd",$MOON_RAKER:"#cbb7ef",$DULL_LAVENDAR:"#b297e3"},mt={StTextColors:{active:"rgba(38, 46, 61, 1)",content:"rgba(38, 46, 61, 0.8)",secondary:"rgba(38, 46, 61, 0.55)",link:"rgba(54, 163, 217, 1)",accented:"rgba(12, 14, 18, 1)",disabled:"rgba(38, 46, 61, 0.3)"},StTextColorsDark:{active:"rgba(235, 239, 247, 1)",content:"rgba(235, 239, 247, 0.8)",secondary:"rgba(235, 239, 247, 0.55)",disabled:"rgba(235, 239, 247, 0.3)",accented:"rgba(255, 255, 255, 1)"},StUiColors:{default:"rgba(38, 46, 61, 0.67)",additional:"rgba(38, 46, 61, 0.4)",guiding:"rgba(38, 46, 61, 0.1)"},StUiColorsDark:{default:"rgba(235, 239, 247, 0.67)",additional:"rgba(235, 239, 247, 0.35)",guiding:"rgba(235, 239, 247, 0.17)"},StBackgroundColors:{workspace:"#FFFFFF",supporting:"#F9F9FB",priority:"#F4F4F8",themeAgnostic:"rgba(174, 174, 180, 0.3)"},StBackgroundColorsDark:{workspace:"rgba(20, 21, 23, 1)",supporting:"rgba(10, 10, 11, 1)",priority:"rgba(9, 9, 10, 1)"},StPrimaryColors:{primary:"#FFC805"},StInteractionColors:{defaultHover:"rgba(12, 14, 18, 0.07)",guidingHover:"rgba(38, 46, 61, 0.17)",linkHovered:"rgba(50, 147, 197, 1)",primaryHovered:"rgba(242, 185, 0, 1)"},StInteractionColorsDark:{defaultHover:"rgba(255, 255, 255, 0.15)",guidingHover:"rgba(235, 239, 247, 0.17)",linkHovered:"rgba(54, 163, 217, 1)"},StSemanticColors:{info:"rgba(52, 150, 200, 1)",success:"rgba(34, 195, 195, 1)",warning:"rgba(242, 185, 0, 1)",error:"rgba(231, 71, 39, 1)",infoBG:"rgba(52, 150, 200, 0.1)",successBG:"rgba(34, 195, 195, 0.1)",warningBG:"rgba(242, 185, 0, 0.1)",errorBG:"rgba(231, 71, 39, 0.1)"}},hK={Shadows:{level1:"0px 1px 2px rgba(9, 9, 10, 0.1), 0px 2px 4px rgba(9, 9, 10, 0.1)",level2:"drop-shadow(0px 1px 4px rgba(9, 9, 10, 0.1)) drop-shadow(0px 1px 8px rgba(9, 9, 10, 0.15))"}},w2=Wa({components:{MuiButton:{variants:[{props:{variant:"gray"},style:{backgroundColor:mt.StUiColors.guiding,color:mt.StInteractionColors.linkHovered,"&:hover":{backgroundColor:mt.StInteractionColors.guidingHover},"&:disabled":{backgroundColor:"#EDEEF2"}}},{props:{variant:"contained"},style:{"&:disabled":{backgroundColor:mt.StPrimaryColors.primary}}},{props:{variant:"outlined"},style:{backgroundColor:mt.StBackgroundColors.workspace,color:mt.StInteractionColors.linkHovered,border:`1px solid ${tp.$SHUTTLE_GRAY_DARK}`,"&:hover":{backgroundColor:mt.StBackgroundColors.workspace,border:`1px solid ${tp.$SHUTTLE_GRAY_DARK}`},"&:disabled":{backgroundColor:mt.StBackgroundColors.workspace}}},{props:{variant:"text"},style:{color:mt.StTextColors.link,"&:hover":{backgroundColor:mt.StInteractionColors.guidingHover},"&:disabled":{backgroundColor:mt.StBackgroundColors.workspace}}}],styleOverrides:{root:{borderRadius:"4px",height:"28px",lineHeight:"24px",minHeight:0,textTransform:"none",color:mt.StTextColors.active,boxShadow:"none","&:hover":{backgroundColor:mt.StInteractionColors.primaryHovered,boxShadow:"none"},"&:disabled":{color:tp.$SHUTTLE_GRAY_DARK,opacity:".3"}}}},MuiLink:{styleOverrides:{root:{color:"#1FAFF3","&:hover":{color:"#0065e3",textDecoration:"none"}}}},MuiTypography:{defaultProps:{color:tp.$SHUTTLE_GRAY_DARK}}},typography:{fontFamily:"Open Sans",fontSize:13},palette:{primary:{light:"#757ce8",main:mt.StPrimaryColors.primary,dark:mt.StPrimaryColors.primary,contrastText:mt.StBackgroundColors.workspace},secondary:{light:"#ff7961",main:"#f44336",dark:"#ba000d",contrastText:"#000"},success:{light:"#5BE584",main:"#00AB55",dark:"#007B55"}}});w2.shadows[1]="0px 0px 5px rgba(58, 67, 86, 0.2)";w2.shadows[2]="0 1px 3px 1px rgba(58, 67, 86, 0.3)";const fK=Wa({components:{MuiIcon:{styleOverrides:{root:{color:`${mt.StPrimaryColors.primary}`,top:0}}},MuiSvgIcon:{}}}),gK=e=>{const{name:t,sx:n}=e,r=Je("app-icon__svg");return A.jsxs(Iw,{classes:{root:r},sx:n,inheritViewBox:!0,children:[A.jsx("use",{xlinkHref:`#${t}`}),A.jsx("symbol",{id:"general-arrow-big-down",viewBox:"0 0 24 24",children:A.jsx("path",{fill:"currentColor",d:"M7.589 10L7 10.777 11.99 15 17 10.777 16.413 10l-4.422 3.727z"})}),A.jsx("symbol",{id:"general-arrow-left",viewBox:"0 0 24 24",children:A.jsx("path",{fill:"currentColor",d:"M13.878 9.325a.5.5 0 1 0-.76-.65l-2.998 3.5a.5.5 0 0 0 0 .65l2.999 3.5a.5.5 0 1 0 .76-.65l-2.72-3.175 2.72-3.175z"})}),A.jsx("symbol",{id:"general-arrow-long-right",viewBox:"0 0 29 8",children:A.jsx("path",{d:"M28.354 4.354a.5.5 0 0 0 0-.708L25.172.464a.5.5 0 1 0-.707.708L27.293 4l-2.828 2.828a.5.5 0 1 0 .707.708l3.182-3.182zM0 4.5h28v-1H0v1z",fill:"#3A4356"})}),A.jsx("symbol",{id:"general-arrow-right",viewBox:"0 0 24 24",children:A.jsx("path",{fill:"currentColor",d:"M13.34 12.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})}),A.jsx("symbol",{id:"general-arrow-up",viewBox:"0 0 24 24",children:A.jsx("path",{fill:"currentColor",d:"M12 10.16l-3.174 2.719a.5.5 0 0 1-.65-.76l3.5-2.998a.5.5 0 0 1 .65 0l3.5 2.998a.5.5 0 1 1-.65.76L12 10.159z"})}),A.jsx("symbol",{id:"general-arrow-up-down",viewBox:"0 0 24 24",children:A.jsx("path",{fill:"currentColor",d:"M15.646 14.646a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L12 18.293l3.646-3.647zm0-5.292L12 5.707 8.354 9.354a.5.5 0 1 1-.708-.708l4-4a.5.5 0 0 1 .708 0l4 4a.5.5 0 0 1-.708.708z"})}),A.jsx("symbol",{id:"general-double-arrow-back",viewBox:"0 0 24 24",children:A.jsx("path",{fill:"currentColor",d:"M9.658 12.5l2.72 3.175a.5.5 0 1 1-.76.65l-2.998-3.5a.5.5 0 0 1 0-.65l2.999-3.5a.5.5 0 1 1 .76.65L9.658 12.5zm5.719-3.175l-2.72 3.175 2.72 3.175a.5.5 0 1 1-.76.65l-2.998-3.5a.5.5 0 0 1 0-.65l2.998-3.5a.5.5 0 1 1 .76.65z"})}),A.jsx("symbol",{id:"general-double-arrow-front",viewBox:"0 0 24 24",children:A.jsx("path",{fill:"currentColor",d:"M11.34 12.5L8.62 9.325a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175zm.279-3.175a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.999 3.5a.5.5 0 1 1-.76-.65l2.72-3.175-2.72-3.175z"})}),A.jsx("symbol",{id:"general-double-big-arrow-back",viewBox:"0 0 31 31",children:A.jsxs("g",{fill:"currentColor",children:[A.jsx("path",{d:"M16 11.825l-3.842 4.297 3.662 4.087a.5.5 0 1 1-.76.65l-3.94-4.412a.5.5 0 0 1 0-.65l4.12-4.622a.5.5 0 1 1 .76.65zm5 0l-3.842 4.297 3.662 4.087a.5.5 0 1 1-.76.65l-3.94-4.412a.5.5 0 0 1 0-.65l4.12-4.622a.5.5 0 1 1 .76.65z"}),A.jsx("path",{d:"M10 11.5a.5.5 0 0 1 1 0v9a.5.5 0 0 1-1 0v-9z"})]})}),A.jsx("symbol",{id:"general-double-big-arrow-front",viewBox:"0 0 31 31",children:A.jsxs("g",{fill:"currentColor",children:[A.jsx("path",{d:"M15 20.175l3.842-4.297-3.662-4.087a.5.5 0 1 1 .76-.65l3.94 4.412a.5.5 0 0 1 0 .65l-4.12 4.622a.5.5 0 1 1-.76-.65zm-5 0l3.842-4.297-3.662-4.087a.5.5 0 1 1 .76-.65l3.94 4.412a.5.5 0 0 1 0 .65l-4.12 4.622a.5.5 0 1 1-.76-.65z"}),A.jsx("path",{d:"M21 20.5a.5.5 0 0 1-1 0v-9a.5.5 0 0 1 1 0v9z"})]})}),A.jsx("symbol",{id:"general-x",viewBox:"0 0 24 24",children:A.jsx("path",{fill:"currentColor",d:"M12 12.293L6.854 7.146a.5.5 0 1 0-.708.708L11.293 13l-5.147 5.146a.5.5 0 0 0 .708.708L12 13.707l5.146 5.147a.5.5 0 0 0 .708-.708L12.707 13l5.147-5.146a.5.5 0 0 0-.708-.708L12 12.293z"})})]})},Fl=Y.forwardRef((e,t)=>{const{dataTestId:n,name:r,className:o}=e,i=A.jsx(gK,de({},e)),a=Je("app-icon",`app-icon--${r}`,o);return A.jsx(Bs,{theme:fK,children:A.jsx("span",$e(de({"data-testid":n},e),{ref:t,className:a,children:i}))})}),EA="24px",mK="24px",vK=Wa({components:{MuiPagination:{styleOverrides:{root:{display:"flex",justifyContent:"space-around",flexGrow:1,".MuiPagination-ul":{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",height:EA}}}},MuiPaginationItem:{styleOverrides:{root:{height:EA,minWidth:mK,margin:"0 2px","&.Mui-selected":{border:`1px solid ${mt.StUiColors.default}`,borderRadius:"12px",backgroundColor:"transparent","&:hover":{backgroundColor:mt.StBackgroundColors.themeAgnostic}},"&:hover":{backgroundColor:mt.StBackgroundColors.themeAgnostic},"&.MuiPaginationItem-ellipsis":{background:"transparent",fontFamily:"Open Sans",fontWeight:"400",fontSize:"13px",lineHeight:"18px",paddingTop:"4px"},"&.MuiPaginationItem-firstLast":{display:"none"},"&.MuiPaginationItem-previousNext":{width:"40px"}}}}}}),bK=Wa({components:{MuiTypography:{variants:[{props:{variant:"titleHero"},style:{fontWeight:600,fontSize:30,lineHeight:"36px",letterSpacing:-.5}},{props:{variant:"titleBig"},style:{fontWeight:400,fontSize:21,lineHeight:"24px",letterSpacing:-.2}},{props:{variant:"titleMedium"},style:{fontWeight:600,fontSize:"18px",lineHeight:"24px"}},{props:{variant:"titleSmall"},style:{fontWeight:600,fontSize:"15px",lineHeight:"20px"}},{props:{variant:"subTitle"},style:{fontWeight:700,fontSize:"13px",lineHeight:"16px",letterSpacing:"0.2px"}},{props:{variant:"bodyLabel"},style:{fontWeight:400,fontSize:"13px",lineHeight:"16px",letterSpacing:"0.1px"}},{props:{variant:"laccent"},style:{fontWeight:600,fontSize:"13px",lineHeight:"16px",letterSpacing:"0.1px"}},{props:{variant:"bodyParagraph"},style:{fontWeight:400,fontSize:"13px",lineHeight:"18px"}},{props:{variant:"paccent"},style:{fontWeight:600,fontSize:"13px",lineHeight:"18px"}},{props:{variant:"bodyUI"},style:{fontWeight:400,fontSize:"13px",lineHeight:"20px",letterSpacing:"0.3px"}},{props:{variant:"overline"},style:{fontWeight:400,fontSize:"11px",lineHeight:"16px",letterSpacing:"1.5px"}},{props:{variant:"caption"},style:{fontWeight:700,fontSize:"11px",lineHeight:"14px",letterSpacing:"0.5px"}},{props:{variant:"annotation"},style:{fontWeight:400,fontSize:"11px",lineHeight:"16px",letterSpacing:"0.3px"}},{props:{variant:"code"},style:{fontFamily:"Hack",fontWeight:400,fontSize:"13px",lineHeight:"20px"}}],styleOverrides:{root:{display:"inline-block",fontFamily:"Open Sans",color:mt.StTextColors.content,"::first-letter":{textTransform:"capitalize"}}}}}}),Ep=Y.forwardRef((e,t)=>{var n=e,{children:r,theme:o=bK,dataTestId:i}=n,a=Dn(n,["children","theme","dataTestId"]);return A.jsx(Bs,{theme:o,children:A.jsx(aQ,$e(de({ref:t},a),{"data-testid":i,children:r}))})}),AA=1,yK=Y.forwardRef(({onPageChange:e,count:t,rowsPerPage:n,page:r},o)=>{const i=Y.useContext(g2),a=(s,c)=>e(null,c);return A.jsx(Bs,{theme:vK,children:A.jsx(pK,{ref:o,count:Math.ceil(t/n),page:r+AA,siblingCount:i.siblingCount,onChange:a,showFirstButton:!0,showLastButton:!0,size:"small",boundaryCount:AA,renderItem:s=>A.jsx(b2,$e(de({components:{first:()=>A.jsx(Fl,{sx:{color:mt.StUiColors.additional},name:"general-double-arrow-back"}),last:()=>A.jsx(Fl,{sx:{color:mt.StUiColors.additional},name:"general-double-arrow-front"}),next:()=>A.jsx(Fl,{sx:{color:mt.StUiColors.additional},name:"general-arrow-right"}),previous:()=>A.jsx(Fl,{sx:{color:mt.StUiColors.additional},name:"general-arrow-left"})}},s),{page:A.jsx(Ep,{variant:"bodyLabel",dataTestId:`PaginationPage-${s.page}`,children:s.page})})),"data-testid":"PaginationActionsComponent"})})}),wK=Wa({breakpoints:{values:ui},components:{MuiTablePagination:{styleOverrides:{root:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%"},toolbar:{"&.MuiTablePagination-toolbar":{display:"flex",flexDirection:"row",padding:"0px 20px 0 20px",alignItems:"center",height:"30px",width:"100%"},".Mui-selected":{margin:0}},spacer:{display:"none"},displayedRows:{whiteSpace:"nowrap"},selectLabel:{order:4,paddingLeft:"20px"},input:{order:5,display:"flex",flexDirection:"row",alignItems:"center",borderRadius:"4px",marginRight:"0"},select:{"&.MuiTablePagination-select":{background:"transparent"}},selectIcon:{top:"8%"},menuItem:{paddingLeft:"10px","&.MuiTablePagination-menuItem.Mui-selected":{position:"relative",background:"transparent","&:after":{marginLeft:"15px",content:'""',display:"block",position:"absolute",width:"24px",height:"24px",top:"3px",backgroundImage:`url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.2604 8.58124L10.9174 16.0615L7 12.1442L7.70711 11.4371L10.7898 14.5197L15.4467 8L16.2604 8.58124Z' fill='%235B6372'/%3E%3C/svg%3E%0A")`}},"&.MuiTablePagination-menuItem":{fontFamily:"Open Sans",fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:mt.StTextColors.content},"&:hover":{backgroundColor:mt.StBackgroundColors.priority}},actions:{marginLeft:0}}},MuiPaper:{styleOverrides:{root:{display:"flex",flexDirection:"column",alignItems:"flex-start",padding:"4px 0px",gap:"4px",marginTop:"4px",background:mt.StBackgroundColors.workspace,boxShadow:hK.Shadows.level1,borderRadius:"4px"}}},MuiList:{styleOverrides:{root:{padding:0,width:"100%"}}}}}),_K=1,xK=Y.forwardRef((e,t)=>{var n=e,{count:r,page:o,rowsPerPage:i,onRowsPerPageChange:a,displayedLabelRows:s,onPageChange:c,labelRowsPerPage:l,labelRowsPerPageShort:d="Rows",rowsPerPageOptions:p=[10,25,50,75],theme:f=wK,dataTestId:v}=n;Dn(n,["count","page","rowsPerPage","onRowsPerPageChange","displayedLabelRows","onPageChange","labelRowsPerPage","labelRowsPerPageShort","rowsPerPageOptions","theme","dataTestId"]);const[b,{width:_}]=GZ(),y=_<ui.lg,C=({from:O,to:S,count:R})=>{const D=y?`${O}-${S} / ${R}`:`${O}-${S} ${s.conjunction} ${R} ${s.result}`;return A.jsx(Ep,{variant:"bodyParagraph",sx:{color:mt.StTextColors.secondary},children:D})},k=(O,S)=>c(S),T=O=>a(Number(O.target.value)),x=JZ(_),E={siblingCount:y?0:1};return A.jsx(Bs,{theme:f,children:A.jsx(g2.Provider,{value:E,children:A.jsx("div",{className:`${QZ} ${x}`,ref:b,children:A.jsx(zZ,{ref:t,component:"div",count:r,page:o-_K,ActionsComponent:yK,onPageChange:k,onRowsPerPageChange:T,rowsPerPage:i,rowsPerPageOptions:p,labelDisplayedRows:C,SelectProps:{SelectDisplayProps:{"data-testid":"TablePaginationSelect"},IconComponent:O=>A.jsx(Fl,$e(de({},O),{name:"general-arrow-big-down"})),renderValue:O=>A.jsx(Ep,{variant:"bodyParagraph",children:String(O)})},labelRowsPerPage:A.jsx(Ep,{variant:"bodyParagraph",children:y?d:l}),"data-testid":v})})})})}),Fw={isMobile:!1,conjunctionLabel:"of",resultLabel:"Results",rowsPerPageLabel:"Results per page",rowsPerPageLabelShort:"Rows",notifyRowsLimitLabel:"The Pivot table is limited to {{recordsCount}} records",notifyColumnsLimitLabel:"The Pivot table is limited to {{columnsCount}} columns",notifyRowsAndColumnsLimitLabel:"The Pivot table is limited to {{recordsCount}} records and {{columnsCount}} columns",alertIcon:"<div>!</div>",numberFormatter:null,onNotificationMoreClick:null};class _2 extends B.PureComponent{constructor(t){super(t),q(this,"logger"),q(this,"panel"),q(this,"listFirst"),q(this,"listLast"),q(this,"listNumbers"),q(this,"rowsEl"),q(this,"totalEl"),q(this,"notificationEl"),q(this,"oldSize"),q(this,"notificationStr"),q(this,"notificationFallback"),q(this,"onHeightChangeMemoizer",rw(!1)),q(this,"handlePageSelected",s=>{const c=s===0?s:s-1;this.props.activePage!==c&&this.notifyOnPageChange(c)}),q(this,"onRowsPerPageChange",s=>{const{onItemsPerPageChange:c}=this.props;typeof c!="undefined"&&typeof c=="function"&&c(s)}),q(this,"onNotificationMoreClick",s=>{const{columnsCount:c,itemsCount:l,limitCount:d}=this.props;if(this.props.options){const{onNotificationMoreClick:p}=this.props.options;p&&p(s,{columnsCount:c,columnsLimitReached:this.isColumnsLimitReached(this.props),rowsCount:l,rowsLimitReached:this.isRowsLimitReached(this.props),recordsCount:d})}}),q(this,"panelRef",s=>{s&&(this.panel=s)});const{itemsCount:n,itemsPerPage:r,options:o}=this.props;this.logger=Ha.create("PaginationPanel");const i=Math.ceil(n/r)||0,a=de(de({},Fw),o);this.state={pagesCount:i,options:a}}componentDidMount(){const{activePage:t,disableInitialCallback:n}=this.props;this.provideHeightUpdate(),n||this.notifyOnPageChange(t)}UNSAFE_componentWillReceiveProps(t){let n=null;if(t.itemsCount!==this.props.itemsCount||t.itemsPerPage!==this.props.itemsPerPage){n=n||{};const i=Math.ceil(t.itemsCount/t.itemsPerPage)||0;n.pagesCount=i}if((t.itemsCount!==this.props.itemsCount||t.itemsPerPage!==this.props.itemsPerPage||t.activePage!==this.props.activePage||t.totalItemsCount!==this.props.totalItemsCount||t.columnsCount!==this.props.columnsCount||t.totalColumnsCount!==this.props.totalColumnsCount||t.limitReached!==this.props.limitReached||t.limitCount!==this.props.limitCount)&&(this.notificationStr=void 0),t.options!==this.props.options){n=n||{};const i=de(de({},Fw),t.options);n.options=i}const r=t.options||{},o=this.props.options||{};(t.width!==this.props.width||t.itemsCount!==this.props.itemsCount||t.totalItemsCount!==this.props.totalItemsCount||t.columnsCount!==this.props.columnsCount||t.totalColumnsCount!==this.props.totalColumnsCount||t.limitReached!==this.props.limitReached||t.limitCount!==this.props.limitCount||t.itemsPerPage!==this.props.itemsPerPage||t.activePage!==this.props.activePage||r.isMobile!==o.isMobile)&&(this.oldSize=void 0),n&&this.setState(n)}componentDidUpdate(){this.provideHeightUpdate()}getHeight(){return this.panel&&this.panel.offsetHeight||0}getNotificationStr(){const{itemsCount:t,itemsPerPage:n,activePage:r,totalColumnsCount:o,columnsCount:i,limitCount:a}=this.props,{options:s}=this.state,{notifyRowsLimitLabel:c,notifyColumnsLimitLabel:l,notifyRowsAndColumnsLimitLabel:d}=s||{},p=this.isRowsLimitReached(this.props),f=this.isColumnsLimitReached(this.props);let v=()=>"";p&&f?v=ub(d||""):p?v=ub(c||""):f&&(v=ub(l||""));let b=t,_=a;if(this.props.options){const y={type:"number",separated:!0,abbreviations:{k:!0,m:!0}},{numberFormatter:C}=this.props.options;C&&(b=C(b,y),_=C(_,y))}return this.notificationStr=v({columnsCount:i,totalColumnsCount:o,rowsCount:b,recordsCount:_}),this.notificationFallback=A.jsx("div",{}),o===0&&i===0&&(this.notificationFallback=null),{notificationStr:this.notificationStr,notificationFallback:this.notificationFallback}}isRowsLimitReached(t=this.props){return t.limitReached}isColumnsLimitReached(t=this.props){return t.totalColumnsCount>t.columnsCount}provideHeightUpdate(){const{onHeightChange:t}=this.props;t&&this.panel&&this.onHeightChangeMemoizer({callback:({offsetHeight:n})=>{t(n)},indices:{offsetHeight:this.getHeight()}})}notifyOnPageChange(t){const{onPageChange:n}=this.props;typeof n!="undefined"&&typeof n=="function"&&n({selected:t})}render(){const{className:t,activePage:n,itemsPerPage:r,itemsCount:o,totalItemsCount:i}=this.props,{pagesCount:a,options:s}=this.state,{isMobile:c,alertIcon:l,conjunctionLabel:d,resultLabel:p,rowsPerPageLabel:f,rowsPerPageLabelShort:v}=s,b=i>o&&a===1,_=n>-1&&a>1,y=this.isRowsLimitReached(this.props)||this.isColumnsLimitReached(this.props),C=Je(t,GU,!_&&!b&&!y?ZU:"",_?JU:"",c?e9:KU,b?XU:"",y?t9:""),{notificationStr:k,notificationFallback:T}=this.getNotificationStr(),x={width:"100%",height:""};return A.jsx("div",{className:C,"data-html2canvas-ignore":"true",ref:this.panelRef,children:A.jsx(a_,{style:x,autoHeight:!0,children:A.jsxs("div",{className:QU,children:[k?A.jsx("div",{className:r9,title:k,children:A.jsx("div",{role:"button",tabIndex:0,onClick:this.onNotificationMoreClick,onKeyPress:this.onNotificationMoreClick,dangerouslySetInnerHTML:{__html:l},"aria-label":"alert"})}):T,A.jsx("div",{className:n9,children:A.jsx(xK,{count:o,page:n+1,rowsPerPage:r,displayedLabelRows:{conjunction:d,result:p},rowsPerPageOptions:[10,25,50,75],labelRowsPerPage:f,labelRowsPerPageShort:v,dataTestId:"TablePagination",onPageChange:this.handlePageSelected,onRowsPerPageChange:this.onRowsPerPageChange})})]})})})}}q(_2,"defaultProps",{isAllDataLoaded:!1,activePage:0,disableInitialCallback:!0,className:"",options:de({},Fw),onHeightChange:null,onPageChange:null});const j_=e=>{switch(e.metadataType){case Ze.MEASURES:return yn.ASC;default:return yn.DESC}},OA="sisense-pivot",CK="sisense-pivot__multi-grid",SK="sisense-pivot__overlay",Tn="#5B6372",Wo="rgba(244, 244, 244, 1)",ga="rgba(239, 239, 239, 1)",kK=m.newStyled.div`
|
|
178
|
+
&,
|
|
179
|
+
.table-grid {
|
|
180
|
+
background-color: ${e=>e.backgroundColor};
|
|
181
|
+
font-family: ${e=>e.fontFamily};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.table-grid__row > .table-grid__cell {
|
|
185
|
+
color: ${e=>e.textColor||Tn};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
${e=>{var t;return((t=e.fillOptions)==null?void 0:t.alternatingRows)&&m.css`
|
|
189
|
+
.table-grid__cell--data.table-grid__cell--row-level-last.table-grid__cell--row-sibling-odd:not(
|
|
190
|
+
.table-grid__cell--row-user-type-subTotal
|
|
191
|
+
):not(.table-grid__cell--row-user-type-grandTotal):not(.table-grid__cell--drilled):not(
|
|
192
|
+
.table-grid__cell--selected
|
|
193
|
+
) {
|
|
194
|
+
background-color: ${e.fillColor||Wo};
|
|
195
|
+
color: ${e.textColor||Tn};
|
|
196
|
+
}
|
|
197
|
+
.table-grid__cell--rows.table-grid__cell--level-last.table-grid__cell--sibling-odd:not(
|
|
198
|
+
.table-grid__cell--user-type-subTotal
|
|
199
|
+
):not(.table-grid__cell--user-type-grandTotal):not(.table-grid__cell--drilled):not(
|
|
200
|
+
.table-grid__cell--selected
|
|
201
|
+
) {
|
|
202
|
+
background-color: ${e.fillColor||Wo};
|
|
203
|
+
color: ${e.textColor||Tn};
|
|
204
|
+
}
|
|
205
|
+
.table-grid--bottom.table-grid--right
|
|
206
|
+
.table-grid__cell--row-level-last.table-grid__cell--row-sibling-odd:not(
|
|
207
|
+
.table-grid__cell--row-user-type-subTotal
|
|
208
|
+
):not(.table-grid__cell--row-user-type-grandTotal):not(.table-grid__cell--drilled):not(
|
|
209
|
+
.table-grid__cell--selected
|
|
210
|
+
) {
|
|
211
|
+
background-color: ${e.fillColor||Wo};
|
|
212
|
+
color: ${e.textColor||Tn};
|
|
213
|
+
}
|
|
214
|
+
.table-grid--bottom.table-grid--left
|
|
215
|
+
.table-grid__cell--level-last.table-grid__cell--sibling-odd:not(
|
|
216
|
+
.table-grid__cell--user-type-subTotal
|
|
217
|
+
):not(.table-grid__cell--user-type-grandTotal):not(.table-grid__cell--drilled):not(
|
|
218
|
+
.table-grid__cell--selected
|
|
219
|
+
) {
|
|
220
|
+
background-color: ${e.fillColor||Wo};
|
|
221
|
+
color: ${e.textColor||Tn};
|
|
222
|
+
}
|
|
223
|
+
`}}
|
|
224
|
+
|
|
225
|
+
${e=>{var t;return((t=e.fillOptions)==null?void 0:t.alternatingColumns)&&m.css`
|
|
226
|
+
.table-grid--bottom.table-grid--left .table-grid__column:nth-of-type(even),
|
|
227
|
+
.table-grid--bottom.table-grid--right .table-grid__column:nth-of-type(even) {
|
|
228
|
+
background-color: ${e.fillColor||Wo};
|
|
229
|
+
color: ${e.textColor||Tn};
|
|
230
|
+
}
|
|
231
|
+
`}}
|
|
232
|
+
|
|
233
|
+
${e=>{var t;return((t=e.fillOptions)==null?void 0:t.columnsHeaders)&&m.css`
|
|
234
|
+
.table-grid--top.table-grid--left
|
|
235
|
+
.table-grid__cell:not(.table-grid__cell--drilled):not(.table-grid__cell--selected),
|
|
236
|
+
.table-grid--top.table-grid--right
|
|
237
|
+
.table-grid__cell:not(.table-grid__cell--drilled):not(.table-grid__cell--selected) {
|
|
238
|
+
background-color: ${e.fillColor||Wo};
|
|
239
|
+
color: ${e.textColor||Tn};
|
|
240
|
+
}
|
|
241
|
+
.table-grid__cell--corner.table-grid__cell:not(.table-grid__cell--drilled):not(
|
|
242
|
+
.table-grid__cell--selected
|
|
243
|
+
),
|
|
244
|
+
.table-grid__cell--columns.table-grid__cell:not(.table-grid__cell--drilled):not(
|
|
245
|
+
.table-grid__cell--selected
|
|
246
|
+
) {
|
|
247
|
+
background-color: ${e.fillColor||Wo};
|
|
248
|
+
color: ${e.textColor||Tn};
|
|
249
|
+
}
|
|
250
|
+
`}}
|
|
251
|
+
|
|
252
|
+
${e=>{var t;return((t=e.fillOptions)==null?void 0:t.rowMembers)&&m.css`
|
|
253
|
+
.table-grid--bottom.table-grid--left
|
|
254
|
+
.table-grid__cell:not(.table-grid__cell--drilled):not(.table-grid__cell--selected):not(
|
|
255
|
+
.table-grid__cell--user-type-subTotal
|
|
256
|
+
):not(.table-grid__cell--user-type-grandTotal) {
|
|
257
|
+
background-color: ${e.fillColor||Wo};
|
|
258
|
+
color: ${e.textColor||Tn};
|
|
259
|
+
}
|
|
260
|
+
.table-grid__cell--rows.table-grid__cell:not(.table-grid__cell--drilled):not(
|
|
261
|
+
.table-grid__cell--selected
|
|
262
|
+
):not(.table-grid__cell--user-type-subTotal):not(.table-grid__cell--user-type-grandTotal) {
|
|
263
|
+
background-color: ${e.fillColor||Wo};
|
|
264
|
+
color: ${e.textColor||Tn};
|
|
265
|
+
}
|
|
266
|
+
`}}
|
|
267
|
+
|
|
268
|
+
${e=>{var t;return((t=e.fillOptions)==null?void 0:t.rowMembers)&&m.css`
|
|
269
|
+
.table-grid--bottom.table-grid--left
|
|
270
|
+
.table-grid__cell:not(.table-grid__cell--drilled):not(.table-grid__cell--selected):not(
|
|
271
|
+
.table-grid__cell--user-type-subTotal
|
|
272
|
+
):not(.table-grid__cell--user-type-grandTotal) {
|
|
273
|
+
background-color: ${e.fillColor||Wo};
|
|
274
|
+
color: ${e.textColor||Tn};
|
|
275
|
+
}
|
|
276
|
+
.table-grid__cell--rows.table-grid__cell:not(.table-grid__cell--drilled):not(
|
|
277
|
+
.table-grid__cell--selected
|
|
278
|
+
):not(.table-grid__cell--user-type-subTotal):not(.table-grid__cell--user-type-grandTotal) {
|
|
279
|
+
background-color: ${e.fillColor||Wo};
|
|
280
|
+
color: ${e.textColor||Tn};
|
|
281
|
+
}
|
|
282
|
+
`}}
|
|
283
|
+
|
|
284
|
+
${e=>{var t;return((t=e.fillOptions)==null?void 0:t.totals)&&m.css`
|
|
285
|
+
.table-grid--bottom.table-grid--left .table-grid__cell--user-type-subTotal,
|
|
286
|
+
.table-grid--bottom.table-grid--left .table-grid__cell--user-type-grandTotal {
|
|
287
|
+
background-color: ${e.additionalFillColor||ga};
|
|
288
|
+
color: ${e.textColor||Tn};
|
|
289
|
+
}
|
|
290
|
+
.table-grid--bottom.table-grid--right {
|
|
291
|
+
.table-grid__cell--row-user-type-subTotal,
|
|
292
|
+
.table-grid__cell--row-user-type-grandTotal,
|
|
293
|
+
.table-grid__cell--col-user-type-subTotal,
|
|
294
|
+
.table-grid__cell--col-user-type-grandTotal {
|
|
295
|
+
background-color: ${e.additionalFillColor||ga};
|
|
296
|
+
color: ${e.textColor||Tn};
|
|
297
|
+
}
|
|
298
|
+
.table-grid__cell--row-user-type-subTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-odd,
|
|
299
|
+
.table-grid__cell--row-user-type-subTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-even,
|
|
300
|
+
.table-grid__cell--row-user-type-grandTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-odd,
|
|
301
|
+
.table-grid__cell--row-user-type-grandTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-even,
|
|
302
|
+
.table-grid__cell--col-user-type-subTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-odd,
|
|
303
|
+
.table-grid__cell--col-user-type-subTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-even,
|
|
304
|
+
.table-grid__cell--col-user-type-grandTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-odd,
|
|
305
|
+
.table-grid__cell--col-user-type-grandTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-even {
|
|
306
|
+
background-color: ${e.additionalFillColor||ga};
|
|
307
|
+
color: ${e.textColor||Tn};
|
|
308
|
+
}
|
|
309
|
+
.table-grid__cell--row-user-type-subTotal.table-grid__cell--col-user-type-subTotal,
|
|
310
|
+
.table-grid__cell--row-user-type-subTotal.table-grid__cell--col-user-type-grandTotal,
|
|
311
|
+
.table-grid__cell--row-user-type-grandTotal.table-grid__cell--col-user-type-subTotal,
|
|
312
|
+
.table-grid__cell--row-user-type-grandTotal.table-grid__cell--col-user-type-grandTotal {
|
|
313
|
+
background-color: ${e.additionalFillColor||ga};
|
|
314
|
+
color: ${e.textColor||Tn};
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
.table-grid__cell--rows.table-grid__cell--user-type-subTotal,
|
|
318
|
+
.table-grid__cell--rows.table-grid__cell--user-type-grandTotal {
|
|
319
|
+
background-color: ${e.additionalFillColor||ga};
|
|
320
|
+
color: ${e.textColor||Tn};
|
|
321
|
+
}
|
|
322
|
+
.table-grid__cell--data.table-grid__cell--row-user-type-subTotal,
|
|
323
|
+
.table-grid__cell--data.table-grid__cell--row-user-type-grandTotal,
|
|
324
|
+
.table-grid__cell--data.table-grid__cell--col-user-type-subTotal,
|
|
325
|
+
.table-grid__cell--data.table-grid__cell--col-user-type-grandTotal {
|
|
326
|
+
background-color: ${e.additionalFillColor||ga};
|
|
327
|
+
color: ${e.textColor||Tn};
|
|
328
|
+
&.table-grid__cell {
|
|
329
|
+
&.table-grid__cell--row-level-last.table-grid__cell--row-sibling-odd,
|
|
330
|
+
&.table-grid__cell--row-level-last.table-grid__cell--row-sibling-even {
|
|
331
|
+
background-color: ${e.additionalFillColor||ga};
|
|
332
|
+
color: ${e.textColor||Tn};
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
.table-grid__cell--data.table-grid__cell--row-user-type-subTotal.table-grid__cell--col-user-type-subTotal,
|
|
337
|
+
.table-grid__cell--data.table-grid__cell--row-user-type-subTotal.table-grid__cell--col-user-type-grandTotal,
|
|
338
|
+
.table-grid__cell--data.table-grid__cell--row-user-type-grandTotal.table-grid__cell--col-user-type-subTotal,
|
|
339
|
+
.table-grid__cell--data.table-grid__cell--row-user-type-grandTotal.table-grid__cell--col-user-type-grandTotal {
|
|
340
|
+
background-color: ${e.additionalFillColor||ga};
|
|
341
|
+
color: ${e.textColor||Tn};
|
|
342
|
+
}
|
|
343
|
+
`}}
|
|
344
|
+
|
|
345
|
+
.MuiTablePagination-root {
|
|
346
|
+
.MuiTypography-root,
|
|
347
|
+
.MuiPaginationItem-root {
|
|
348
|
+
color: ${e=>e.navigationPrimaryColor};
|
|
349
|
+
}
|
|
350
|
+
.Mui-selected {
|
|
351
|
+
border-color: ${e=>e.navigationSecondaryColor};
|
|
352
|
+
}
|
|
353
|
+
.MuiSvgIcon-root {
|
|
354
|
+
color: ${e=>e.navigationSecondaryColor};
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
.table-grid__cell--selected {
|
|
358
|
+
background-color: ${e=>e.selectionColor};
|
|
359
|
+
}
|
|
360
|
+
`;class Bw extends B.PureComponent{constructor(t){super(t),q(this,"logger"),q(this,"pivotTable"),q(this,"paginationPanel"),q(this,"forceNotifyAboutHeightChange",!1),q(this,"onEmptyChangeMemoizer",rw()),q(this,"onTotalHeightChangeMemoizer",rw()),q(this,"pivotContainer"),q(this,"childrenReadyStateInitial",{pivotDomReady:!1,paginationDomReady:!1,isDebouncing:!1}),q(this,"childrenReadyState",this.childrenReadyStateInitial),q(this,"domReadyEvent",XW(()=>this.onDomReadyEvent(),500)),q(this,"onPivotDomReady",()=>{this.childrenReadyState=$e(de({},this.childrenReadyState),{pivotDomReady:!0,isDebouncing:!0}),this.domReadyEvent()}),q(this,"pivotTableRef",n=>{n&&(this.pivotTable=n)}),q(this,"paginationPanelRef",n=>{n&&(this.paginationPanel=n)}),q(this,"onPaginationHeightChange",n=>{this.setState({paginationPanelHeight:n,pivotHeight:this.calculatePivotHeight({paginationPanelHeight:n})})}),q(this,"onTableTotalSizeChange",n=>{this.setState({pivotTableHeight:n,pivotHeight:this.calculatePivotHeight({pivotTableHeight:n})})}),q(this,"onSortingMetadataUpdate",(n,r)=>{const{measurePath:o,dir:i}=n,a={measurePath:o,dir:i||j_(n),field:r?r.jaqlIndex:n.jaqlIndex};this.props.onSortingMetadataUpdate&&this.props.onSortingMetadataUpdate(a)}),q(this,"setPivotContainerRef",n=>{n&&this.pivotContainer!==n&&(this.pivotContainer=n,this.forceUpdate())}),this.logger=Ha.create("Pivot"),this.state={pivotHeight:t.height}}componentDidMount(){const{onEmptyChange:t}=this.props;t&&this.onEmptyChangeMemoizer({callback:({isEmpty:n})=>{t(n)},indices:{isEmpty:!(this.pivotTable&&this.pivotTable.hasContent())}})}UNSAFE_componentWillReceiveProps(t){const n=nI(this.props,t);(typeof n.width!="undefined"||typeof n.height!="undefined"||typeof n.isAutoHeight!="undefined"||typeof n.isPaginated!="undefined"||typeof n.itemsCount!="undefined"||typeof n.itemsPerPage!="undefined")&&(this.forceNotifyAboutHeightChange=!0,this.setState({pivotHeight:this.calculatePivotHeight({isAutoHeight:t.isAutoHeight,holderHeight:t.height})}))}componentDidUpdate(){const{onEmptyChange:t,onTotalHeightChange:n,scrollBarsMargin:r=0}=this.props;if(t&&this.onEmptyChangeMemoizer({callback:({isEmpty:o})=>{t(o)},indices:{isEmpty:!(this.pivotTable&&this.pivotTable.hasContent())}}),n&&this.isPaginationReady()){const{pivotTableHeight:o,paginationPanelHeight:i}=this.state;if(this.forceNotifyAboutHeightChange){if(this.forceNotifyAboutHeightChange=!1,typeof o!="undefined"&&typeof i!="undefined"){const a=o+i+r;n(a)}}else this.onTotalHeightChangeMemoizer({callback:({tableHeight:a,paginationHeight:s}={tableHeight:0,paginationHeight:0})=>{const c=a+s+r;n(c)},indices:{tableHeight:o,paginationHeight:i}})}}componentWillUnmount(){this.pivotTable=void 0,this.paginationPanel=void 0}initialize(t,n,r,o){this.pivotTable&&this.pivotTable.initialize(t,n,r,o)}addMore(t,n=!1){this.pivotTable&&t&&this.pivotTable.addMore(t,n)}getDimensions(){return this.pivotTable?this.pivotTable.getDimensions():{width:[],height:[]}}isPaginationReady(){const{paginationPanelHeight:t}=this.state,n=typeof t=="number"&&t>=0,r=this.props.isPaginated?n:!0;return this.childrenReadyState=$e(de({},this.childrenReadyState),{paginationDomReady:r,isDebouncing:!0}),this.domReadyEvent(),r}calculatePivotHeight({isAutoHeight:t=this.props.isAutoHeight,holderHeight:n=this.props.height,pivotTableHeight:r=this.state.pivotTableHeight||0,paginationPanelHeight:o=this.state.paginationPanelHeight||0}){const{scrollBarsMargin:i=0}=this.props,a=n-o,s=a?a-i:1;return t?r||s:a}onDomReadyEvent(){if(this.childrenReadyState.pivotDomReady&&this.childrenReadyState.paginationDomReady&&this.childrenReadyState.isDebouncing){this.domReadyEvent.cancel(),this.childrenReadyState=de({},this.childrenReadyStateInitial);const{onDomReady:t}=this.props;t&&t()}}render(){const t=this.props,{className:n,fontFamily:r,textColor:o,backgroundColor:i,fillColor:a,additionalFillColor:s,fillOptions:c,navigationPrimaryColor:l,navigationSecondaryColor:d,selectionColor:p,isPaginated:f,overlay:v,itemsCount:b,itemsPerPage:_,paginationOptions:y,totalItemsCount:C,totalRecordsCount:k,limitReached:T,totalColumnsCount:x,columnsCount:E,scrollBarsMargin:O=0,rowHeight:S,imageColumns:R,fallbackImageUrl:D,dataBars:P,rangeMinMax:I,isMobile:j,addCellDomReadyPromise:W,removeCellDomReadyPromise:F}=t,H=Dn(t,["className","fontFamily","textColor","backgroundColor","fillColor","additionalFillColor","fillOptions","navigationPrimaryColor","navigationSecondaryColor","selectionColor","isPaginated","overlay","itemsCount","itemsPerPage","paginationOptions","totalItemsCount","totalRecordsCount","limitReached","totalColumnsCount","columnsCount","scrollBarsMargin","rowHeight","imageColumns","fallbackImageUrl","dataBars","rangeMinMax","isMobile","addCellDomReadyPromise","removeCellDomReadyPromise"]),{pivotHeight:$}=this.state;return A.jsx(kK,{fontFamily:r,textColor:o,backgroundColor:i,fillColor:a,additionalFillColor:s,fillOptions:c,navigationPrimaryColor:l,navigationSecondaryColor:d,selectionColor:p,children:A.jsxs("div",{className:Je(OA,`${OA}--new`,n),ref:this.setPivotContainerRef,children:[this.pivotContainer&&A.jsx(EI,$e(de({},H),{className:CK,rowHeight:S,imageColumns:R,fallbackImageUrl:D,addCellDomReadyPromise:W,removeCellDomReadyPromise:F,onSortingMetadataUpdate:this.onSortingMetadataUpdate,onSortingSettingsChanged:this.props.onSortingSettingsChanged,ref:this.pivotTableRef,height:$,onTotalSizeChange:this.onTableTotalSizeChange,scrollBarsMargin:O,dataBars:P,rangeMinMax:I,isMobile:j,onDomReady:this.onPivotDomReady})),f?A.jsx(_2,$e(de({},H),{ref:this.paginationPanelRef,itemsCount:b,itemsPerPage:_,options:y,totalItemsCount:C,limitReached:T,limitCount:k,totalColumnsCount:x,columnsCount:E,onHeightChange:this.onPaginationHeightChange})):null,v?A.jsx("div",{className:SK}):null]})})}}q(Bw,"defaultProps",{isAutoHeight:!1,isFullWidth:!1,isFixedEnabled:!0,isPaginated:!1,overlay:!1,itemsCount:0,totalItemsCount:0,totalRecordsCount:0,limitReached:!1,totalColumnsCount:0,columnsCount:0,itemsPerPage:0,borderWidth:1,scrollBarsMargin:9});const TK="sisense-pivot__resize-control",EK=e=>typeof e=="undefined"?!0:!!e;class AK extends B.Component{constructor(){super(...arguments),q(this,"resizeControlPosition",0),q(this,"widthAfterResize",0),q(this,"currentElementWidth",0),q(this,"onMouseDown",t=>{t.preventDefault(),this.currentElementWidth=this.props.onResizeStart(),this.resizeControlPosition=t.clientX,window.addEventListener("mouseup",this.onHandleUp),window.addEventListener("mousemove",this.onHandleResize)}),q(this,"onClick",t=>{t.stopPropagation()}),q(this,"onHandleUp",t=>{const{clientX:n}=t;if(!this.widthAfterResize){const r=n,o=this.resizeControlPosition-this.currentElementWidth;this.widthAfterResize=r-o}this.props.onResizeEnd(this.widthAfterResize),window.removeEventListener("mousemove",this.onHandleResize,!1),window.removeEventListener("mouseup",this.onHandleUp,!1)}),q(this,"onHandleResize",t=>{this.resizeElement(t)})}shouldComponentUpdate(){return!1}resizeElement(t){const{onResize:n}=this.props,{movementX:r,clientX:o}=t;if(EK(r)){const i=o,a=this.resizeControlPosition-this.currentElementWidth;this.widthAfterResize=i-a,n(this.widthAfterResize)}}render(){return A.jsx("div",{className:TK,onMouseDownCapture:this.onMouseDown,onClick:this.onClick,role:"button","aria-label":"Resize control",tabIndex:0,onKeyPress:this.onClick})}}const OK="sisense-pivot__data-bar",RA="sisense-pivot__data-bar--show",DA="sisense-pivot__data-bar--show-active",RK="sisense-pivot__data-bar-inner",DK="sisense-pivot__data-bar-bar",MK=(e,t,n)=>{if(typeof e=="undefined"||e===null||e==="0"||typeof t=="undefined"||t===null||typeof n=="undefined"||n===null)return[];const r=parseFloat(e);let o=0,i=0;if(t===n)return[];const a=(r-t)/(n-t)*100;if(t>=0&&n>=0)o=0,i=a;else if(t<0&&n<0)o=100,i=(100-a)*-1;else{const s=t*-1/(n-t)*100;o=s,i=a-s}return[o,i,r<0?-1:1]};class PK extends B.Component{constructor(t){super(t),q(this,"root"),q(this,"style"),q(this,"innerStyle"),q(this,"timerShow"),q(this,"timerShowInner"),q(this,"onWidthChange",n=>{const{columnIndex:r,dataNode:o}=this.props,{colsWidth:i,minMaxs:a}=n;let s=i[r];s+=8;const[c,l]=a[r]||[],d=o?o.value:void 0,[p,f,v]=MK(d,c,l);this.style=void 0,this.innerStyle=void 0,this.setState({width:s,left:p,size:f,sign:v}),!(typeof p=="undefined"&&typeof f=="undefined")&&(this.root&&this.root.classList.add(RA),this.timerShow&&cancelAnimationFrame(this.timerShow),this.timerShow=requestAnimationFrame(()=>{this.timerShowInner&&cancelAnimationFrame(this.timerShowInner),this.timerShowInner=requestAnimationFrame(()=>{this.root&&this.root.classList.add(DA)})}))}),q(this,"rootRef",n=>{n&&(this.root=n)}),this.state={width:0,left:0,size:0}}componentDidMount(){if(this.props.tableSize){this.props.tableSize.on(tu,this.onWidthChange);const t=this.props.tableSize.getDataBars();t&&this.onWidthChange(t)}}UNSAFE_componentWillReceiveProps(t){if((t.tableSize!==this.props.tableSize||t.columnIndex!==this.props.columnIndex||t.dataNode!==this.props.dataNode||t.style!==this.props.style)&&(this.style=void 0,this.innerStyle=void 0,this.root&&(this.root.classList.remove(RA),this.root.classList.remove(DA))),t.tableSize!==this.props.tableSize&&(this.props.tableSize&&this.props.tableSize.off(tu,this.onWidthChange),t.tableSize)){t.tableSize.on(tu,this.onWidthChange);const n=t.tableSize.getDataBars();n&&this.onWidthChange(n)}}componentWillUnmount(){this.root=void 0,this.props.tableSize&&this.props.tableSize.off(tu,this.onWidthChange),this.timerShow&&cancelAnimationFrame(this.timerShow),this.timerShowInner&&cancelAnimationFrame(this.timerShowInner)}getStyle(){if(!this.style){const{width:t}=this.state;if(typeof t=="undefined")return this.style={},this.style;this.style={width:`calc(100% - ${t}px)`}}return this.style}getInnerStyle(){if(!this.innerStyle){const{style:t}=this.props,{left:n,size:r,sign:o}=this.state;if(typeof n=="undefined"||typeof r=="undefined")return this.innerStyle={},this.innerStyle;o===1?this.innerStyle=$e(de({},t),{left:`${n}%`,width:`${r}%`}):this.innerStyle=$e(de({},t),{right:`${100-n}%`,width:`${-1*r}%`})}return this.innerStyle}render(){const{dataNode:t}=this.props;if(!t||t.value===null)return null;const n=this.getStyle(),r=this.getInnerStyle();return A.jsx("div",{className:OK,style:n,ref:this.rootRef,children:A.jsx("div",{className:RK,children:A.jsx("div",{className:DK,style:r})})})}}class x2 extends B.PureComponent{constructor(t){super(t),q(this,"cellPadding"),q(this,"ratio"),q(this,"defaultHeight"),q(this,"style",{}),q(this,"domReadyDefer"),q(this,"setDefer",()=>{const n={promise:Promise.resolve(),resolve(){return!0},reject(){return!1}},r=new Promise((o,i)=>{n.resolve=o,n.reject=i});this.domReadyDefer=$e(de({},n),{promise:r}),this.props.addCellDomReadyPromise&&this.props.addCellDomReadyPromise(this.domReadyDefer)}),q(this,"onLoad",n=>{const r=n.currentTarget.naturalWidth,o=n.currentTarget.naturalHeight;this.ratio=r/o,this.setImageStyle(),setTimeout(()=>{this.domReadyDefer&&this.domReadyDefer.resolve()},0)}),q(this,"onError",n=>{const r=(this.props.defaultHeight||this.defaultHeight)-this.cellPadding;this.setState({imageUrl:this.props.fallbackImageUrl||"",imageStyle:{position:"absolute",top:"0",left:"0",display:"block",width:r,height:r}}),setTimeout(()=>{this.domReadyDefer&&this.domReadyDefer.resolve(n)},0)}),this.cellPadding=7,this.ratio=0,this.defaultHeight=60,this.setStyle(),this.state={imageUrl:t.imageUrl,imageStyle:{position:"absolute",top:"0",left:"0",display:"block",width:this.getHeight()*this.ratio,height:"100%"}},this.setDefer()}UNSAFE_componentWillReceiveProps(t){this.props.rowHeight!==t.rowHeight&&(this.setStyle(t),this.setImageStyle(t)),this.props.imageUrl!==t.imageUrl&&this.setState({imageUrl:t.imageUrl})}componentWillUnmount(){this.props.removeCellDomReadyPromise&&this.props.removeCellDomReadyPromise(this.domReadyDefer)}getHeight(t){return((t?t.rowHeight:this.props.rowHeight)||this.defaultHeight)-this.cellPadding}setStyle(t){this.style={position:"relative",display:"block",width:"100%",height:this.getHeight(t),fontSize:0,lineHeight:0}}setImageStyle(t){const n=this.ratio*this.getHeight(t);this.setState({imageStyle:{position:"absolute",top:"0",left:"0",display:"block",width:n,height:"100%"}})}render(){return A.jsx("div",{style:this.style,children:A.jsx("img",{src:this.state.imageUrl,alt:"",style:this.state.imageStyle,onLoad:this.onLoad,onError:this.onError})})}}q(x2,"defaultProps",{rowHeight:60,fallbackImageUrl:""});var Hw={},IK={get exports(){return Hw},set exports(e){Hw=e}};/*!
|
|
361
|
+
Copyright (c) 2018 Jed Watson.
|
|
362
|
+
Licensed under the MIT License (MIT), see
|
|
363
|
+
http://jedwatson.github.io/classnames
|
|
364
|
+
*/var MA;function NK(){return MA||(MA=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(IK)),Hw}var LK=NK();const Ia=Oo(LK);function jK(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return B.createElement("div",{className:Ia("".concat(n,"-content"),i),style:a},B.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}function gr(e,t,n){return t=PN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PA(Object(n),!0).forEach(function(r){gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ch(e,t){if(e==null)return{};var n=We(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FK(e){if(Array.isArray(e))return e}function BK(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){l=!0,o=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function $w(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C2(e,t){if(e){if(typeof e=="string")return $w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $w(e,t)}}function HK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
365
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vt(e,t){return FK(e)||BK(e,t)||C2(e,t)||HK()}function yi(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var zw={},F_=[],$K=function(e){F_.push(e)};function uh(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=F_.reduce(function(r,o){return o(r!=null?r:"","warning")},t);n&&console.error("Warning: ".concat(n))}}function zK(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=F_.reduce(function(r,o){return o(r!=null?r:"","note")},t);n&&console.warn("Note: ".concat(n))}}function WK(){zw={}}function S2(e,t,n){!t&&!zw[n]&&(e(!1,n),zw[n]=!0)}function $f(e,t){S2(uh,e,t)}function UK(e,t){S2(zK,e,t)}$f.preMessage=$K;$f.resetWarned=WK;$f.noteOnce=UK;function qK(e,t,n){var r=B.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var B_=function(e,t){typeof e=="function"?e(t):Eo(e)==="object"&&e&&"current"in e&&(e.current=t)},k2=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(o){t.forEach(function(i){B_(i,o)})}},H_=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return qK(function(){return k2.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(i,a){return i!==o[a]})})},zf=function(e){var t,n,r=qi.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)&&r.$$typeof!==qi.ForwardRef||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render)&&e.$$typeof!==qi.ForwardRef)},T2=B.createContext(null);function YK(e){if(Array.isArray(e))return $w(e)}function VK(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
366
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ww(e){return YK(e)||VK(e)||C2(e)||GK()}var IA=process.env.NODE_ENV!=="test"&&yi()?B.useLayoutEffect:B.useEffect,Gr=function(e,t){var n=B.useRef(!0);IA(function(){return e(n.current)},t),IA(function(){return n.current=!1,function(){n.current=!0}},[])},NA=[];function QK(e,t){var n=B.useState(function(){if(!yi())return null;var b=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&b.setAttribute("data-debug",t),b}),r=vt(n,1),o=r[0],i=B.useRef(!1),a=B.useContext(T2),s=B.useState(NA),c=vt(s,2),l=c[0],d=c[1],p=a||(i.current?void 0:function(b){d(function(_){var y=[b].concat(Ww(_));return y})});function f(){o.parentElement||document.body.appendChild(o),i.current=!0}function v(){var b;(b=o.parentElement)===null||b===void 0||b.removeChild(o),i.current=!1}return Gr(function(){return e?a?a(f):f():v(),v},[e]),Gr(function(){l.length&&(l.forEach(function(b){return b()}),d(NA))},[l]),[o,p]}function JK(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var LA="data-rc-order",jA="data-rc-priority",ZK="rc-util-key",Uw=new Map;function E2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):ZK}function Wf(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function KK(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function $_(e){return Array.from((Uw.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function A2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!yi())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=KK(r),s=a==="prependQueue",c=document.createElement("style");c.setAttribute(LA,a),s&&i&&c.setAttribute(jA,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var l=Wf(t),d=l.firstChild;if(r){if(s){var p=(t.styles||$_(l)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(LA)))return!1;var v=Number(f.getAttribute(jA)||0);return i>=v});if(p.length)return l.insertBefore(c,p[p.length-1].nextSibling),c}l.insertBefore(c,d)}else l.appendChild(c);return c}function O2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Wf(t);return(t.styles||$_(n)).find(function(r){return r.getAttribute(E2(t))===e})}function qw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=O2(e,t);if(n){var r=Wf(t);r.removeChild(n)}}function XK(e,t){var n=Uw.get(e);if(!n||!JK(document,n)){var r=A2("",t),o=r.parentNode;Uw.set(e,o),e.removeChild(r)}}function R2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Wf(n),o=$_(r),i=Ke(Ke({},n),{},{styles:o});XK(r,i);var a=O2(t,i);if(a){var s,c;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((c=i.csp)===null||c===void 0?void 0:c.nonce)){var l;a.nonce=(l=i.csp)===null||l===void 0?void 0:l.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var d=A2(e,i);return d.setAttribute(E2(i),t),d}function eX(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),l=parseInt(s.height,10);try{var d=c?"width: ".concat(s.width,";"):"",p=l?"height: ".concat(s.height,";"):"";R2(`
|
|
367
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
368
|
+
`).concat(d,`
|
|
369
|
+
`).concat(p,`
|
|
370
|
+
}`),t)}catch(b){console.error(b),o=c,i=l}}document.body.appendChild(n);var f=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,v=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),qw(t),{width:f,height:v}}function tX(e){return typeof document=="undefined"||!e||!(e instanceof Element)?{width:0,height:0}:eX(e)}function nX(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var rX="rc-util-locker-".concat(Date.now()),FA=0;function oX(e){var t=!!e,n=B.useState(function(){return FA+=1,"".concat(rX,"_").concat(FA)}),r=vt(n,1),o=r[0];Gr(function(){if(t){var i=tX(document.body).width,a=nX();R2(`
|
|
371
|
+
html body {
|
|
372
|
+
overflow-y: hidden;
|
|
373
|
+
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
374
|
+
}`),o)}else qw(o);return function(){qw(o)}},[t,o])}var iX=!1;function aX(e){return iX}var BA=function(e){return e===!1?!1:!yi()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},z_=B.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,c=e.children,l=B.useState(n),d=vt(l,2),p=d[0],f=d[1],v=p||n;process.env.NODE_ENV!=="production"&&$f(yi()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),B.useEffect(function(){(s||n)&&f(n)},[n,s]);var b=B.useState(function(){return BA(o)}),_=vt(b,2),y=_[0],C=_[1];B.useEffect(function(){var j=BA(o);C(j!=null?j:null)});var k=QK(v&&!y,i),T=vt(k,2),x=T[0],E=T[1],O=y!=null?y:x;oX(r&&n&&yi()&&(O===x||O===document.body));var S=null;if(c&&zf(c)&&t){var R=c;S=R.ref}var D=H_(S,t);if(!v||!yi()||y===void 0)return null;var P=O===!1||aX(),I=c;return t&&(I=B.cloneElement(c,{ref:D})),B.createElement(T2.Provider,{value:E},P?I:mr.createPortal(I,O))});process.env.NODE_ENV!=="production"&&(z_.displayName="Portal");function Yw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Y.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Yw(r)):qi.isFragment(r)&&r.props?n=n.concat(Yw(r.props.children,t)):n.push(r))}),n}function Ru(e){return e instanceof HTMLElement||e instanceof SVGElement}function sX(e){return e&&Eo(e)==="object"&&Ru(e.nativeElement)?e.nativeElement:Ru(e)?e:null}function Ap(e){var t=sX(e);if(t)return t;if(e instanceof Y.Component){var n;return(n=mr.findDOMNode)===null||n===void 0?void 0:n.call(mr,e)}return null}var Vw=B.createContext(null);function lX(e){var t=e.children,n=e.onBatchResize,r=B.useRef(0),o=B.useRef([]),i=B.useContext(Vw),a=B.useCallback(function(s,c,l){r.current+=1;var d=r.current;o.current.push({size:s,element:c,data:l}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(s,c,l)},[n,i]);return B.createElement(Vw.Provider,{value:a},t)}var D2=function(){if(typeof Map!="undefined")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),Gw=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,dh=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),cX=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(dh):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),uX=2;function dX(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){cX(i)}function s(){var c=Date.now();if(n){if(c-o<uX)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=c}return s}var pX=20,hX=["top","right","bottom","left","width","height","size","weight"],fX=typeof MutationObserver!="undefined",gX=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=dX(this.refresh.bind(this),pX)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Gw||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fX?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Gw||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=hX.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),M2=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},nc=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||dh},P2=Uf(0,0,0,0);function ph(e){return parseFloat(e)||0}function HA(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+ph(i)},0)}function mX(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=ph(a)}return n}function vX(e){var t=e.getBBox();return Uf(0,0,t.width,t.height)}function bX(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return P2;var r=nc(e).getComputedStyle(e),o=mX(r),i=o.left+o.right,a=o.top+o.bottom,s=ph(r.width),c=ph(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=HA(r,"left","right")+i),Math.round(c+a)!==n&&(c-=HA(r,"top","bottom")+a)),!wX(e)){var l=Math.round(s+i)-t,d=Math.round(c+a)-n;Math.abs(l)!==1&&(s-=l),Math.abs(d)!==1&&(c-=d)}return Uf(o.left,o.top,s,c)}var yX=function(){return typeof SVGGraphicsElement!="undefined"?function(e){return e instanceof nc(e).SVGGraphicsElement}:function(e){return e instanceof nc(e).SVGElement&&typeof e.getBBox=="function"}}();function wX(e){return e===nc(e).document.documentElement}function _X(e){return Gw?yX(e)?vX(e):bX(e):P2}function xX(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return M2(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function Uf(e,t,n,r){return{x:e,y:t,width:n,height:r}}var CX=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Uf(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=_X(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),SX=function(){function e(t,n){var r=xX(n);M2(this,{target:t,contentRect:r})}return e}(),kX=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new D2,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof nc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new CX(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof nc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new SX(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),I2=typeof WeakMap!="undefined"?new WeakMap:new D2,N2=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=gX.getInstance(),r=new kX(t,n,this);I2.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){N2.prototype[e]=function(){var t;return(t=I2.get(this))[e].apply(t,arguments)}});var TX=function(){return typeof dh.ResizeObserver!="undefined"?dh.ResizeObserver:N2}(),Oa=new Map;function EX(e){e.forEach(function(t){var n,r=t.target;(n=Oa.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var L2=new TX(EX);function AX(e,t){Oa.has(e)||(Oa.set(e,new Set),L2.observe(e)),Oa.get(e).add(t)}function OX(e,t){Oa.has(e)&&(Oa.get(e).delete(t),Oa.get(e).size||(L2.unobserve(e),Oa.delete(e)))}function W_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $A(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,PN(r.key),r)}}function U_(e,t,n){return t&&$A(e.prototype,t),n&&$A(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function q_(e,t){if(typeof t!="function"&&t!==null)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&&ih(e,t)}function hh(e){return hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hh(e)}function j2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(j2=function(){return!!e})()}function RX(e,t){if(t&&(Eo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sh(e)}function Y_(e){var t=j2();return function(){var n=hh(e),r;if(t){var o=hh(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return RX(this,r)}}var DX=function(e){q_(n,e);var t=Y_(n);function n(){return W_(this,n),t.apply(this,arguments)}return U_(n,[{key:"render",value:function(){return this.props.children}}]),n}(B.Component);function MX(e,t){var n=e.children,r=e.disabled,o=B.useRef(null),i=B.useRef(null),a=B.useContext(Vw),s=typeof n=="function",c=s?n(o):n,l=B.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&B.isValidElement(c)&&zf(c),p=d?c.ref:null,f=H_(p,o),v=function(){var y;return Ap(o.current)||(o.current&&Eo(o.current)==="object"?Ap((y=o.current)===null||y===void 0?void 0:y.nativeElement):null)||Ap(i.current)};B.useImperativeHandle(t,function(){return v()});var b=B.useRef(e);b.current=e;var _=B.useCallback(function(y){var C=b.current,k=C.onResize,T=C.data,x=y.getBoundingClientRect(),E=x.width,O=x.height,S=y.offsetWidth,R=y.offsetHeight,D=Math.floor(E),P=Math.floor(O);if(l.current.width!==D||l.current.height!==P||l.current.offsetWidth!==S||l.current.offsetHeight!==R){var I={width:D,height:P,offsetWidth:S,offsetHeight:R};l.current=I;var j=S===Math.round(E)?E:S,W=R===Math.round(O)?O:R,F=Ke(Ke({},I),{},{offsetWidth:j,offsetHeight:W});a==null||a(F,y,T),k&&Promise.resolve().then(function(){k(F,y)})}},[]);return B.useEffect(function(){var y=v();return y&&!r&&AX(y,_),function(){return OX(y,_)}},[o.current,r]),B.createElement(DX,{ref:i},d?B.cloneElement(c,{ref:f}):c)}var F2=B.forwardRef(MX);process.env.NODE_ENV!=="production"&&(F2.displayName="SingleObserver");var PX="rc-observer-key";function IX(e,t){var n=e.children,r=typeof n=="function"?[n]:Yw(n);return process.env.NODE_ENV!=="production"&&(r.length>1?uh(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&uh(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(PX,"-").concat(i);return B.createElement(F2,te({},e,{key:a,ref:i===0?t:void 0}),o)})}var qf=B.forwardRef(IX);process.env.NODE_ENV!=="production"&&(qf.displayName="ResizeObserver");qf.Collection=lX;function B2(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function NX(e){return B2(e)instanceof ShadowRoot}function Qw(e){return NX(e)?B2(e):null}function _a(e){var t=B.useRef();t.current=e;var n=B.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function LX(){var e=Ke({},B);return e.useId}var zA=0,WA=LX();const jX=WA?function(e){var t=WA();return e||(process.env.NODE_ENV==="test"?"test-id":t)}:function(e){var t=B.useState("ssr-id"),n=vt(t,2),r=n[0],o=n[1];return B.useEffect(function(){var i=zA;zA+=1,o("rc_unique_".concat(i))},[]),e||(process.env.NODE_ENV==="test"?"test-id":r)},FX=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var BX=B.createContext({}),HX=function(e){q_(n,e);var t=Y_(n);function n(){return W_(this,n),t.apply(this,arguments)}return U_(n,[{key:"render",value:function(){return this.props.children}}]),n}(B.Component);function Op(e){var t=B.useRef(!1),n=B.useState(e),r=vt(n,2),o=r[0],i=r[1];B.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,c){c&&t.current||i(s)}return[o,a]}var wa="none",np="appear",rp="enter",op="leave",UA="none",qo="prepare",Bl="start",Hl="active",V_="end",H2="prepared";function qA(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function $X(e,t){var n={animationend:qA("Animation","AnimationEnd"),transitionend:qA("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var zX=$X(yi(),typeof window!="undefined"?window:{}),$2={};if(yi()){var WX=document.createElement("div");$2=WX.style}var ip={};function z2(e){if(ip[e])return ip[e];var t=zX[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in $2)return ip[e]=t[i],ip[e]}return""}var W2=z2("animationend"),U2=z2("transitionend"),q2=!!(W2&&U2),YA=W2||"animationend",VA=U2||"transitionend";function GA(e,t){if(!e)return null;if(Eo(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const UX=function(e){var t=Y.useRef();function n(o){o&&(o.removeEventListener(VA,e),o.removeEventListener(YA,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(VA,e),o.addEventListener(YA,e),t.current=o)}return B.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var Y2=yi()?Y.useLayoutEffect:Y.useEffect,V2=function(e){return+setTimeout(e,16)},G2=function(e){return clearTimeout(e)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(V2=function(e){return window.requestAnimationFrame(e)},G2=function(e){return window.cancelAnimationFrame(e)});var QA=0,Yf=new Map;function Q2(e){Yf.delete(e)}var fh=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;QA+=1;var n=QA;function r(o){if(o===0)Q2(n),e();else{var i=V2(function(){r(o-1)});Yf.set(n,i)}}return r(t),n};fh.cancel=function(e){var t=Yf.get(e);return Q2(e),G2(t)};process.env.NODE_ENV!=="production"&&(fh.ids=function(){return Yf});const qX=function(){var e=B.useRef(null);function t(){fh.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=fh(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return B.useEffect(function(){return function(){t()}},[]),[n,t]};var YX=[qo,Bl,Hl,V_],VX=[qo,H2],J2=!1,GX=!0;function Z2(e){return e===Hl||e===V_}const QX=function(e,t,n){var r=Op(UA),o=vt(r,2),i=o[0],a=o[1],s=qX(),c=vt(s,2),l=c[0],d=c[1];function p(){a(qo,!0)}var f=t?VX:YX;return Y2(function(){if(i!==UA&&i!==V_){var v=f.indexOf(i),b=f[v+1],_=n(i);_===J2?a(b,!0):b&&l(function(y){function C(){y.isCanceled()||a(b,!0)}_===!0?C():Promise.resolve(_).then(C)})}},[e,i]),B.useEffect(function(){return function(){d()}},[]),[p,i]};function JX(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,c=r.motionLeave,l=c===void 0?!0:c,d=r.motionDeadline,p=r.motionLeaveImmediately,f=r.onAppearPrepare,v=r.onEnterPrepare,b=r.onLeavePrepare,_=r.onAppearStart,y=r.onEnterStart,C=r.onLeaveStart,k=r.onAppearActive,T=r.onEnterActive,x=r.onLeaveActive,E=r.onAppearEnd,O=r.onEnterEnd,S=r.onLeaveEnd,R=r.onVisibleChanged,D=Op(),P=vt(D,2),I=P[0],j=P[1],W=Op(wa),F=vt(W,2),H=F[0],$=F[1],G=Op(null),K=vt(G,2),Z=K[0],X=K[1],se=Y.useRef(!1),ve=Y.useRef(null);function fe(){return n()}var me=Y.useRef(!1);function ge(){$(wa,!0),X(null,!0)}var Se=_a(function(Ee){if(H!==wa){var Oe=fe();if(!(Ee&&!Ee.deadline&&Ee.target!==Oe)){var Ae=me.current,Le;H===np&&Ae?Le=E==null?void 0:E(Oe,Ee):H===rp&&Ae?Le=O==null?void 0:O(Oe,Ee):H===op&&Ae&&(Le=S==null?void 0:S(Oe,Ee)),Ae&&Le!==!1&&ge()}}}),_e=UX(Se),oe=vt(_e,1),N=oe[0],z=function(Ee){switch(Ee){case np:return gr(gr(gr({},qo,f),Bl,_),Hl,k);case rp:return gr(gr(gr({},qo,v),Bl,y),Hl,T);case op:return gr(gr(gr({},qo,b),Bl,C),Hl,x);default:return{}}},Q=B.useMemo(function(){return z(H)},[H]),re=QX(H,!e,function(Ee){if(Ee===qo){var Oe=Q[qo];return Oe?Oe(fe()):J2}if(be in Q){var Ae;X(((Ae=Q[be])===null||Ae===void 0?void 0:Ae.call(Q,fe(),null))||null)}return be===Hl&&H!==wa&&(N(fe()),d>0&&(clearTimeout(ve.current),ve.current=setTimeout(function(){Se({deadline:!0})},d))),be===H2&&ge(),GX}),ue=vt(re,2),ie=ue[0],be=ue[1],De=Z2(be);me.current=De,Y2(function(){j(t);var Ee=se.current;se.current=!0;var Oe;!Ee&&t&&s&&(Oe=np),Ee&&t&&i&&(Oe=rp),(Ee&&!t&&l||!Ee&&p&&!t&&l)&&(Oe=op);var Ae=z(Oe);Oe&&(e||Ae[qo])?($(Oe),ie()):$(wa)},[t]),Y.useEffect(function(){(H===np&&!s||H===rp&&!i||H===op&&!l)&&$(wa)},[s,i,l]),Y.useEffect(function(){return function(){se.current=!1,clearTimeout(ve.current)}},[]);var we=B.useRef(!1);Y.useEffect(function(){I&&(we.current=!0),I!==void 0&&H===wa&&((we.current||I)&&(R==null||R(I)),we.current=!0)},[I,H]);var Be=Z;return Q[qo]&&be===Bl&&(Be=Ke({transition:"none"},Be)),[H,be,Be,I!=null?I:t]}function ZX(e){var t=e;Eo(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=B.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,c=o.removeOnLeave,l=c===void 0?!0:c,d=o.forceRender,p=o.children,f=o.motionName,v=o.leavedClassName,b=o.eventProps,_=B.useContext(BX),y=_.motion,C=n(o,y),k=Y.useRef(),T=Y.useRef();function x(){try{return k.current instanceof HTMLElement?k.current:Ap(T.current)}catch(Z){return null}}var E=JX(C,s,x,o),O=vt(E,4),S=O[0],R=O[1],D=O[2],P=O[3],I=B.useRef(P);P&&(I.current=!0);var j=B.useCallback(function(Z){k.current=Z,B_(i,Z)},[i]),W,F=Ke(Ke({},b),{},{visible:s});if(!p)W=null;else if(S===wa)P?W=p(Ke({},F),j):!l&&I.current&&v?W=p(Ke(Ke({},F),{},{className:v}),j):d||!l&&!v?W=p(Ke(Ke({},F),{},{style:{display:"none"}}),j):W=null;else{var H;R===qo?H="prepare":Z2(R)?H="active":R===Bl&&(H="start");var $=GA(f,"".concat(S,"-").concat(H));W=p(Ke(Ke({},F),{},{className:Ia(GA(f,S),gr(gr({},$,$&&H),f,typeof f=="string")),style:D}),j)}if(B.isValidElement(W)&&zf(W)){var G=W,K=G.ref;K||(W=B.cloneElement(W,{ref:j}))}return B.createElement(HX,{ref:T},W)});return r.displayName="CSSMotion",r}const G_=ZX(q2);var Jw="add",Zw="keep",Kw="remove",Wb="removed";function KX(e){var t;return e&&Eo(e)==="object"&&"key"in e?t=e:t={key:e},Ke(Ke({},t),{},{key:String(t.key)})}function Xw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(KX)}function XX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=Xw(e),a=Xw(t);i.forEach(function(l){for(var d=!1,p=r;p<o;p+=1){var f=a[p];if(f.key===l.key){r<p&&(n=n.concat(a.slice(r,p).map(function(v){return Ke(Ke({},v),{},{status:Jw})})),r=p),n.push(Ke(Ke({},f),{},{status:Zw})),r+=1,d=!0;break}}d||n.push(Ke(Ke({},l),{},{status:Kw}))}),r<o&&(n=n.concat(a.slice(r).map(function(l){return Ke(Ke({},l),{},{status:Jw})})));var s={};n.forEach(function(l){var d=l.key;s[d]=(s[d]||0)+1});var c=Object.keys(s).filter(function(l){return s[l]>1});return c.forEach(function(l){n=n.filter(function(d){var p=d.key,f=d.status;return p!==l||f!==Kw}),n.forEach(function(d){d.key===l&&(d.status=Zw)})}),n}var eee=["component","children","onVisibleChanged","onAllRemoved"],tee=["status"],nee=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ree(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G_,n=function(r){q_(i,r);var o=Y_(i);function i(){var a;W_(this,i);for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];return a=o.call.apply(o,[this].concat(c)),gr(sh(a),"state",{keyEntities:[]}),gr(sh(a),"removeKey",function(d){var p=a.state.keyEntities,f=p.map(function(v){return v.key!==d?v:Ke(Ke({},v),{},{status:Wb})});return a.setState({keyEntities:f}),f.filter(function(v){var b=v.status;return b!==Wb}).length}),a}return U_(i,[{key:"render",value:function(){var a=this,s=this.state.keyEntities,c=this.props,l=c.component,d=c.children,p=c.onVisibleChanged,f=c.onAllRemoved,v=ch(c,eee),b=l||B.Fragment,_={};return nee.forEach(function(y){_[y]=v[y],delete v[y]}),delete v.keys,B.createElement(b,v,s.map(function(y,C){var k=y.status,T=ch(y,tee),x=k===Jw||k===Zw;return B.createElement(t,te({},_,{key:T.key,visible:x,eventProps:T,onVisibleChanged:function(E){if(p==null||p(E,{key:T.key}),!E){var O=a.removeKey(T.key);O===0&&f&&f()}}}),function(E,O){return d(Ke(Ke({},E),{},{index:C}),O)})}))}}],[{key:"getDerivedStateFromProps",value:function(a,s){var c=a.keys,l=s.keyEntities,d=Xw(c),p=XX(l,d);return{keyEntities:p.filter(function(f){var v=l.find(function(b){var _=b.key;return f.key===_});return!(v&&v.status===Wb&&f.status===Kw)})}}}]),i}(B.Component);return gr(n,"defaultProps",{component:"div"}),n}ree(q2);function oee(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,c=o.x,l=c===void 0?0:c,d=o.y,p=d===void 0?0:d,f=B.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var b=n.points[0],_=n.points[1],y=b[0],C=b[1],k=_[0],T=_[1];y===k||!["t","b"].includes(y)?v.top=p:y==="t"?v.top=0:v.bottom=0,C===T||!["l","r"].includes(C)?v.left=l:C==="l"?v.left=0:v.right=0}return B.createElement("div",{ref:f,className:Ia("".concat(t,"-arrow"),a),style:v},s)}function iee(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?B.createElement(G_,te({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return B.createElement("div",{style:{zIndex:r},className:Ia("".concat(t,"-mask"),s)})}):null}var K2=B.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(K2.displayName="PopupContent");var X2=B.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,c=e.open,l=e.keepDom,d=e.fresh,p=e.onClick,f=e.mask,v=e.arrow,b=e.arrowPos,_=e.align,y=e.motion,C=e.maskMotion,k=e.forceRender,T=e.getPopupContainer,x=e.autoDestroy,E=e.portal,O=e.zIndex,S=e.onMouseEnter,R=e.onMouseLeave,D=e.onPointerEnter,P=e.ready,I=e.offsetX,j=e.offsetY,W=e.offsetR,F=e.offsetB,H=e.onAlign,$=e.onPrepare,G=e.stretch,K=e.targetWidth,Z=e.targetHeight,X=typeof n=="function"?n():n,se=c||l,ve=(T==null?void 0:T.length)>0,fe=B.useState(!T||!ve),me=vt(fe,2),ge=me[0],Se=me[1];if(Gr(function(){!ge&&ve&&a&&Se(!0)},[ge,ve,a]),!ge)return null;var _e="auto",oe={left:"-1000vw",top:"-1000vh",right:_e,bottom:_e};if(P||!c){var N,z=_.points,Q=_.dynamicInset||((N=_._experimental)===null||N===void 0?void 0:N.dynamicInset),re=Q&&z[0][1]==="r",ue=Q&&z[0][0]==="b";re?(oe.right=W,oe.left=_e):(oe.left=I,oe.right=_e),ue?(oe.bottom=F,oe.top=_e):(oe.top=j,oe.bottom=_e)}var ie={};return G&&(G.includes("height")&&Z?ie.height=Z:G.includes("minHeight")&&Z&&(ie.minHeight=Z),G.includes("width")&&K?ie.width=K:G.includes("minWidth")&&K&&(ie.minWidth=K)),c||(ie.pointerEvents="none"),B.createElement(E,{open:k||se,getContainer:T&&function(){return T(a)},autoDestroy:x},B.createElement(iee,{prefixCls:o,open:c,zIndex:O,mask:f,motion:C}),B.createElement(qf,{onResize:H,disabled:!c},function(be){return B.createElement(G_,te({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:k,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:$,onEnterPrepare:$,visible:c,onVisibleChanged:function(De){var we;y==null||(we=y.onVisibleChanged)===null||we===void 0||we.call(y,De),s(De)}}),function(De,we){var Be=De.className,Ee=De.style,Oe=Ia(o,Be,r);return B.createElement("div",{ref:k2(be,t,we),className:Oe,style:Ke(Ke(Ke(Ke({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},oe),ie),Ee),{},{boxSizing:"border-box",zIndex:O},i),onMouseEnter:S,onMouseLeave:R,onPointerEnter:D,onClick:p},v&&B.createElement(oee,{prefixCls:o,arrow:v,arrowPos:b,align:_}),B.createElement(K2,{cache:!c&&!d},X))})}))});process.env.NODE_ENV!=="production"&&(X2.displayName="Popup");var eL=B.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=zf(n),i=B.useCallback(function(s){B_(t,r?r(s):s)},[r]),a=H_(i,n.ref);return o?B.cloneElement(n,{ref:a}):n});process.env.NODE_ENV!=="production"&&(eL.displayName="TriggerWrapper");var JA=B.createContext(null);function ZA(e){return e?Array.isArray(e)?e:[e]:[]}function aee(e,t,n,r){return B.useMemo(function(){var o=ZA(n!=null?n:t),i=ZA(r!=null?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}const see=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function lee(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function cee(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,c=i[a];if(lee((s=e[c])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function KA(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function nd(e){return e.ownerDocument.defaultView}function e1(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=nd(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function Du(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Gc(e){return Du(parseFloat(e),0)}function XA(e,t){var n=Ke({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=nd(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,c=o.borderBottomWidth,l=o.borderLeftWidth,d=o.borderRightWidth,p=r.getBoundingClientRect(),f=r.offsetHeight,v=r.clientHeight,b=r.offsetWidth,_=r.clientWidth,y=Gc(s),C=Gc(c),k=Gc(l),T=Gc(d),x=Du(Math.round(p.width/b*1e3)/1e3),E=Du(Math.round(p.height/f*1e3)/1e3),O=(b-_-k-T)*x,S=(f-v-y-C)*E,R=y*E,D=C*E,P=k*x,I=T*x,j=0,W=0;if(i==="clip"){var F=Gc(a);j=F*x,W=F*E}var H=p.x+P-j,$=p.y+R-W,G=H+p.width+2*j-P-I-O,K=$+p.height+2*W-R-D-S;n.left=Math.max(n.left,H),n.top=Math.max(n.top,$),n.right=Math.min(n.right,G),n.bottom=Math.min(n.bottom,K)}}),n}function eO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function tO(e,t){var n=t||[],r=vt(n,2),o=r[0],i=r[1];return[eO(e.width,o),eO(e.height,i)]}function nO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function kl(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function ma(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function uee(e,t,n,r,o,i,a){var s=B.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=vt(s,2),l=c[0],d=c[1],p=B.useRef(0),f=B.useMemo(function(){return t?e1(t):[]},[t]),v=B.useRef({}),b=function(){v.current={}};e||b();var _=_a(function(){if(t&&n&&e){let Mn=function(oi,ii){var Pi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Oe,Ka=X.x+oi,Ii=X.y+ii,Xa=Ka+N,es=Ii+oe,el=Math.max(Ka,Pi.left),yc=Math.max(Ii,Pi.top),tl=Math.min(Xa,Pi.right),wc=Math.min(es,Pi.bottom);return Math.max(0,(tl-el)*(wc-yc))},Za=function(){io=X.y+Vt,ao=io+oe,wr=X.x+Yt,No=wr+N};var k,T,x=t,E=x.ownerDocument,O=nd(x),S=O.getComputedStyle(x),R=S.width,D=S.height,P=S.position,I=x.style.left,j=x.style.top,W=x.style.right,F=x.style.bottom,H=x.style.overflow,$=Ke(Ke({},o[r]),i),G=E.createElement("div");(k=x.parentElement)===null||k===void 0||k.appendChild(G),G.style.left="".concat(x.offsetLeft,"px"),G.style.top="".concat(x.offsetTop,"px"),G.style.position=P,G.style.height="".concat(x.offsetHeight,"px"),G.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var K;if(Array.isArray(n))K={x:n[0],y:n[1],width:0,height:0};else{var Z=n.getBoundingClientRect();K={x:Z.x,y:Z.y,width:Z.width,height:Z.height}}var X=x.getBoundingClientRect(),se=E.documentElement,ve=se.clientWidth,fe=se.clientHeight,me=se.scrollWidth,ge=se.scrollHeight,Se=se.scrollTop,_e=se.scrollLeft,oe=X.height,N=X.width,z=K.height,Q=K.width,re={left:0,top:0,right:ve,bottom:fe},ue={left:-_e,top:-Se,right:me-_e,bottom:ge-Se},ie=$.htmlRegion,be="visible",De="visibleFirst";ie!=="scroll"&&ie!==De&&(ie=be);var we=ie===De,Be=XA(ue,f),Ee=XA(re,f),Oe=ie===be?Ee:Be,Ae=we?Ee:Oe;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Le=x.getBoundingClientRect();x.style.left=I,x.style.top=j,x.style.right=W,x.style.bottom=F,x.style.overflow=H,(T=x.parentElement)===null||T===void 0||T.removeChild(G);var Fe=Du(Math.round(N/parseFloat(R)*1e3)/1e3),lt=Du(Math.round(oe/parseFloat(D)*1e3)/1e3);if(Fe===0||lt===0||Ru(n)&&!see(n))return;var _t=$.offset,wt=$.targetOffset,Ge=tO(X,_t),Me=vt(Ge,2),at=Me[0],Ft=Me[1],tn=tO(K,wt),zt=vt(tn,2),Pe=zt[0],Ue=zt[1];K.x-=Pe,K.y-=Ue;var Et=$.points||[],gn=vt(Et,2),ln=gn[0],ro=gn[1],Nr=nO(ro),zn=nO(ln),Ko=kl(K,Nr),Xo=kl(X,zn),br=Ke({},$),Yt=Ko.x-Xo.x+at,Vt=Ko.y-Xo.y+Ft,Gt=Mn(Yt,Vt),Po=Mn(Yt,Vt,Ee),yr=kl(K,["t","l"]),Io=kl(X,["t","l"]),Lr=kl(K,["b","r"]),jr=kl(X,["b","r"]),cn=$.overflow||{},mn=cn.adjustX,Ya=cn.adjustY,Fr=cn.shiftX,oo=cn.shiftY,ei=function(oi){return typeof oi=="boolean"?oi:oi>=0},io,ao,wr,No;Za();var Ai=ei(Ya),Oi=zn[0]===Nr[0];if(Ai&&zn[0]==="t"&&(ao>Ae.bottom||v.current.bt)){var so=Vt;Oi?so-=oe-z:so=yr.y-jr.y-Ft;var Qe=Mn(Yt,so),un=Mn(Yt,so,Ee);Qe>Gt||Qe===Gt&&(!we||un>=Po)?(v.current.bt=!0,Vt=so,Ft=-Ft,br.points=[ma(zn,0),ma(Nr,0)]):v.current.bt=!1}if(Ai&&zn[0]==="b"&&(io<Ae.top||v.current.tb)){var Ri=Vt;Oi?Ri+=oe-z:Ri=Lr.y-Io.y-Ft;var Xn=Mn(Yt,Ri),ta=Mn(Yt,Ri,Ee);Xn>Gt||Xn===Gt&&(!we||ta>=Po)?(v.current.tb=!0,Vt=Ri,Ft=-Ft,br.points=[ma(zn,0),ma(Nr,0)]):v.current.tb=!1}var Ws=ei(mn),Di=zn[1]===Nr[1];if(Ws&&zn[1]==="l"&&(No>Ae.right||v.current.rl)){var Mi=Yt;Di?Mi-=N-Q:Mi=yr.x-jr.x-at;var Us=Mn(Mi,Vt),bc=Mn(Mi,Vt,Ee);Us>Gt||Us===Gt&&(!we||bc>=Po)?(v.current.rl=!0,Yt=Mi,at=-at,br.points=[ma(zn,1),ma(Nr,1)]):v.current.rl=!1}if(Ws&&zn[1]==="r"&&(wr<Ae.left||v.current.lr)){var ti=Yt;Di?ti+=N-Q:ti=Lr.x-Io.x-at;var Va=Mn(ti,Vt),qs=Mn(ti,Vt,Ee);Va>Gt||Va===Gt&&(!we||qs>=Po)?(v.current.lr=!0,Yt=ti,at=-at,br.points=[ma(zn,1),ma(Nr,1)]):v.current.lr=!1}Za();var lo=Fr===!0?0:Fr;typeof lo=="number"&&(wr<Ee.left&&(Yt-=wr-Ee.left-at,K.x+Q<Ee.left+lo&&(Yt+=K.x-Ee.left+Q-lo)),No>Ee.right&&(Yt-=No-Ee.right-at,K.x>Ee.right-lo&&(Yt+=K.x-Ee.right+lo)));var Lo=oo===!0?0:oo;typeof Lo=="number"&&(io<Ee.top&&(Vt-=io-Ee.top-Ft,K.y+z<Ee.top+Lo&&(Vt+=K.y-Ee.top+z-Lo)),ao>Ee.bottom&&(Vt-=ao-Ee.bottom-Ft,K.y>Ee.bottom-Lo&&(Vt+=K.y-Ee.bottom+Lo)));var Ga=X.x+Yt,Ys=Ga+N,jo=X.y+Vt,ni=jo+oe,na=K.x,ri=na+Q,Fo=K.y,Vs=Fo+z,ra=Math.max(Ga,na),Gs=Math.min(Ys,ri),Qs=(ra+Gs)/2,Js=Qs-Ga,Zs=Math.max(jo,Fo),Qa=Math.min(ni,Vs),Ks=(Zs+Qa)/2,Xs=Ks-jo;a==null||a(t,br);var Ja=Le.right-X.x-(Yt+X.width),oa=Le.bottom-X.y-(Vt+X.height);d({ready:!0,offsetX:Yt/Fe,offsetY:Vt/lt,offsetR:Ja/Fe,offsetB:oa/lt,arrowX:Js/Fe,arrowY:Xs/lt,scaleX:Fe,scaleY:lt,align:br})}}),y=function(){p.current+=1;var k=p.current;Promise.resolve().then(function(){p.current===k&&_()})},C=function(){d(function(k){return Ke(Ke({},k),{},{ready:!1})})};return Gr(C,[r]),Gr(function(){e||C()},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,y]}function dee(e,t,n,r,o){Gr(function(){if(e&&t&&n){let p=function(){r(),o()};var i=t,a=n,s=e1(i),c=e1(a),l=nd(a),d=new Set([l].concat(Ww(s),Ww(c)));return d.forEach(function(f){f.addEventListener("scroll",p,{passive:!0})}),l.addEventListener("resize",p,{passive:!0}),r(),function(){d.forEach(function(f){f.removeEventListener("scroll",p),l.removeEventListener("resize",p)})}}},[e,t,n])}function pee(e,t,n,r,o,i,a,s){var c=B.useRef(e);c.current=e,B.useEffect(function(){if(t&&r&&(!o||i)){var l=function(y){var C=y.target;c.current&&!a(C)&&s(!1)},d=nd(r);d.addEventListener("mousedown",l,!0),d.addEventListener("contextmenu",l,!0);var p=Qw(n);if(p&&(p.addEventListener("mousedown",l,!0),p.addEventListener("contextmenu",l,!0)),process.env.NODE_ENV!=="production"){var f,v,b=n==null||(f=n.getRootNode)===null||f===void 0?void 0:f.call(n),_=(v=r.getRootNode)===null||v===void 0?void 0:v.call(r);uh(b===_,"trigger element and popup element should in same shadow root.")}return function(){d.removeEventListener("mousedown",l,!0),d.removeEventListener("contextmenu",l,!0),p&&(p.removeEventListener("mousedown",l,!0),p.removeEventListener("contextmenu",l,!0))}}},[t,n,r,o,i])}var hee=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function fee(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z_,t=B.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,c=s===void 0?"hover":s,l=n.showAction,d=n.hideAction,p=n.popupVisible,f=n.defaultPopupVisible,v=n.onPopupVisibleChange,b=n.afterPopupVisibleChange,_=n.mouseEnterDelay,y=n.mouseLeaveDelay,C=y===void 0?.1:y,k=n.focusDelay,T=n.blurDelay,x=n.mask,E=n.maskClosable,O=E===void 0?!0:E,S=n.getPopupContainer,R=n.forceRender,D=n.autoDestroy,P=n.destroyPopupOnHide,I=n.popup,j=n.popupClassName,W=n.popupStyle,F=n.popupPlacement,H=n.builtinPlacements,$=H===void 0?{}:H,G=n.popupAlign,K=n.zIndex,Z=n.stretch,X=n.getPopupClassNameFromAlign,se=n.fresh,ve=n.alignPoint,fe=n.onPopupClick,me=n.onPopupAlign,ge=n.arrow,Se=n.popupMotion,_e=n.maskMotion,oe=n.popupTransitionName,N=n.popupAnimation,z=n.maskTransitionName,Q=n.maskAnimation,re=n.className,ue=n.getTriggerDOMNode,ie=ch(n,hee),be=D||P||!1,De=B.useState(!1),we=vt(De,2),Be=we[0],Ee=we[1];Gr(function(){Ee(FX())},[]);var Oe=B.useRef({}),Ae=B.useContext(JA),Le=B.useMemo(function(){return{registerSubPopup:function(Ie,dt){Oe.current[Ie]=dt,Ae==null||Ae.registerSubPopup(Ie,dt)}}},[Ae]),Fe=jX(),lt=B.useState(null),_t=vt(lt,2),wt=_t[0],Ge=_t[1],Me=B.useRef(null),at=_a(function(Ie){Me.current=Ie,Ru(Ie)&&wt!==Ie&&Ge(Ie),Ae==null||Ae.registerSubPopup(Fe,Ie)}),Ft=B.useState(null),tn=vt(Ft,2),zt=tn[0],Pe=tn[1],Ue=B.useRef(null),Et=_a(function(Ie){Ru(Ie)&&zt!==Ie&&(Pe(Ie),Ue.current=Ie)}),gn=B.Children.only(a),ln=(gn==null?void 0:gn.props)||{},ro={},Nr=_a(function(Ie){var dt,kn,Pn=zt;return(Pn==null?void 0:Pn.contains(Ie))||((dt=Qw(Pn))===null||dt===void 0?void 0:dt.host)===Ie||Ie===Pn||(wt==null?void 0:wt.contains(Ie))||((kn=Qw(wt))===null||kn===void 0?void 0:kn.host)===Ie||Ie===wt||Object.values(Oe.current).some(function(nn){return(nn==null?void 0:nn.contains(Ie))||Ie===nn})}),zn=KA(i,Se,N,oe),Ko=KA(i,_e,Q,z),Xo=B.useState(f||!1),br=vt(Xo,2),Yt=br[0],Vt=br[1],Gt=p!=null?p:Yt,Po=_a(function(Ie){p===void 0&&Vt(Ie)});Gr(function(){Vt(p||!1)},[p]);var yr=B.useRef(Gt);yr.current=Gt;var Io=B.useRef([]);Io.current=[];var Lr=_a(function(Ie){var dt;Po(Ie),((dt=Io.current[Io.current.length-1])!==null&&dt!==void 0?dt:Gt)!==Ie&&(Io.current.push(Ie),v==null||v(Ie))}),jr=B.useRef(),cn=function(){clearTimeout(jr.current)},mn=function(Ie){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;cn(),dt===0?Lr(Ie):jr.current=setTimeout(function(){Lr(Ie)},dt*1e3)};B.useEffect(function(){return cn},[]);var Ya=B.useState(!1),Fr=vt(Ya,2),oo=Fr[0],ei=Fr[1];Gr(function(Ie){(!Ie||Gt)&&ei(!0)},[Gt]);var io=B.useState(null),ao=vt(io,2),wr=ao[0],No=ao[1],Ai=B.useState([0,0]),Oi=vt(Ai,2),so=Oi[0],Qe=Oi[1],un=function(Ie){Qe([Ie.clientX,Ie.clientY])},Ri=uee(Gt,wt,ve?so:zt,F,$,G,me),Xn=vt(Ri,11),ta=Xn[0],Ws=Xn[1],Di=Xn[2],Mi=Xn[3],Us=Xn[4],bc=Xn[5],ti=Xn[6],Va=Xn[7],qs=Xn[8],lo=Xn[9],Lo=Xn[10],Ga=aee(Be,c,l,d),Ys=vt(Ga,2),jo=Ys[0],ni=Ys[1],na=jo.has("click"),ri=ni.has("click")||ni.has("contextMenu"),Fo=_a(function(){oo||Lo()}),Vs=function(){yr.current&&ve&&ri&&mn(!1)};dee(Gt,zt,wt,Fo,Vs),Gr(function(){Fo()},[so,F]),Gr(function(){Gt&&!($!=null&&$[F])&&Fo()},[JSON.stringify(G)]);var ra=B.useMemo(function(){var Ie=cee($,i,lo,ve);return Ia(Ie,X==null?void 0:X(lo))},[lo,X,$,i,ve]);B.useImperativeHandle(r,function(){return{nativeElement:Ue.current,popupElement:Me.current,forceAlign:Fo}});var Gs=B.useState(0),Qs=vt(Gs,2),Js=Qs[0],Zs=Qs[1],Qa=B.useState(0),Ks=vt(Qa,2),Xs=Ks[0],Ja=Ks[1],oa=function(){if(Z&&zt){var Ie=zt.getBoundingClientRect();Zs(Ie.width),Ja(Ie.height)}},Mn=function(){oa(),Fo()},Za=function(Ie){ei(!1),Lo(),b==null||b(Ie)},oi=function(){return new Promise(function(Ie){oa(),No(function(){return Ie})})};Gr(function(){wr&&(Lo(),wr(),No(null))},[wr]);function ii(Ie,dt,kn,Pn){ro[Ie]=function(nn){var nl;Pn==null||Pn(nn),mn(dt,kn);for(var _c=arguments.length,od=new Array(_c>1?_c-1:0),At=1;At<_c;At++)od[At-1]=arguments[At];(nl=ln[Ie])===null||nl===void 0||nl.call.apply(nl,[ln,nn].concat(od))}}(na||ri)&&(ro.onClick=function(Ie){var dt;yr.current&&ri?mn(!1):!yr.current&&na&&(un(Ie),mn(!0));for(var kn=arguments.length,Pn=new Array(kn>1?kn-1:0),nn=1;nn<kn;nn++)Pn[nn-1]=arguments[nn];(dt=ln.onClick)===null||dt===void 0||dt.call.apply(dt,[ln,Ie].concat(Pn))}),pee(Gt,ri,zt,wt,x,O,Nr,mn);var Pi=jo.has("hover"),Ka=ni.has("hover"),Ii,Xa;Pi&&(ii("onMouseEnter",!0,_,function(Ie){un(Ie)}),ii("onPointerEnter",!0,_,function(Ie){un(Ie)}),Ii=function(Ie){(Gt||oo)&&wt!==null&&wt!==void 0&&wt.contains(Ie.target)&&mn(!0,_)},ve&&(ro.onMouseMove=function(Ie){var dt;(dt=ln.onMouseMove)===null||dt===void 0||dt.call(ln,Ie)})),Ka&&(ii("onMouseLeave",!1,C),ii("onPointerLeave",!1,C),Xa=function(){mn(!1,C)}),jo.has("focus")&&ii("onFocus",!0,k),ni.has("focus")&&ii("onBlur",!1,T),jo.has("contextMenu")&&(ro.onContextMenu=function(Ie){var dt;yr.current&&ni.has("contextMenu")?mn(!1):(un(Ie),mn(!0)),Ie.preventDefault();for(var kn=arguments.length,Pn=new Array(kn>1?kn-1:0),nn=1;nn<kn;nn++)Pn[nn-1]=arguments[nn];(dt=ln.onContextMenu)===null||dt===void 0||dt.call.apply(dt,[ln,Ie].concat(Pn))}),re&&(ro.className=Ia(ln.className,re));var es=Ke(Ke({},ln),ro),el={},yc=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];yc.forEach(function(Ie){ie[Ie]&&(el[Ie]=function(){for(var dt,kn=arguments.length,Pn=new Array(kn),nn=0;nn<kn;nn++)Pn[nn]=arguments[nn];(dt=es[Ie])===null||dt===void 0||dt.call.apply(dt,[es].concat(Pn)),ie[Ie].apply(ie,Pn)})});var tl=B.cloneElement(gn,Ke(Ke({},es),el)),wc={x:bc,y:ti},mg=ge?Ke({},ge!==!0?ge:{}):null;return B.createElement(B.Fragment,null,B.createElement(qf,{disabled:!Gt,ref:Et,onResize:Mn},B.createElement(eL,{getTriggerDOMNode:ue},tl)),B.createElement(JA.Provider,{value:Le},B.createElement(X2,{portal:e,ref:at,prefixCls:i,popup:I,className:Ia(j,ra),style:W,target:zt,onMouseEnter:Ii,onMouseLeave:Xa,onPointerEnter:Ii,zIndex:K,open:Gt,keepDom:oo,fresh:se,onClick:fe,mask:x,motion:zn,maskMotion:Ko,onVisibleChanged:Za,onPrepare:oi,forceRender:R,autoDestroy:be,getPopupContainer:S,align:lo,arrow:mg,arrowPos:wc,ready:ta,offsetX:Ws,offsetY:Di,offsetR:Mi,offsetB:Us,onAlign:Fo,stretch:Z,targetWidth:Js/Va,targetHeight:Xs/qs})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const gee=fee(z_);var Tl={shiftX:64,adjustY:1},El={adjustX:1,shiftY:!0},yo=[0,0],mee={left:{points:["cr","cl"],overflow:El,offset:[-4,0],targetOffset:yo},right:{points:["cl","cr"],overflow:El,offset:[4,0],targetOffset:yo},top:{points:["bc","tc"],overflow:Tl,offset:[0,-4],targetOffset:yo},bottom:{points:["tc","bc"],overflow:Tl,offset:[0,4],targetOffset:yo},topLeft:{points:["bl","tl"],overflow:Tl,offset:[0,-4],targetOffset:yo},leftTop:{points:["tr","tl"],overflow:El,offset:[-4,0],targetOffset:yo},topRight:{points:["br","tr"],overflow:Tl,offset:[0,-4],targetOffset:yo},rightTop:{points:["tl","tr"],overflow:El,offset:[4,0],targetOffset:yo},bottomRight:{points:["tr","br"],overflow:Tl,offset:[0,4],targetOffset:yo},rightBottom:{points:["bl","br"],overflow:El,offset:[4,0],targetOffset:yo},bottomLeft:{points:["tl","bl"],overflow:Tl,offset:[0,4],targetOffset:yo},leftBottom:{points:["br","bl"],overflow:El,offset:[-4,0],targetOffset:yo}},vee=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],bee=function(e,t){var n=e.overlayClassName,r=e.trigger,o=r===void 0?["hover"]:r,i=e.mouseEnterDelay,a=i===void 0?0:i,s=e.mouseLeaveDelay,c=s===void 0?.1:s,l=e.overlayStyle,d=e.prefixCls,p=d===void 0?"rc-tooltip":d,f=e.children,v=e.onVisibleChange,b=e.afterVisibleChange,_=e.transitionName,y=e.animation,C=e.motion,k=e.placement,T=k===void 0?"right":k,x=e.align,E=x===void 0?{}:x,O=e.destroyTooltipOnHide,S=O===void 0?!1:O,R=e.defaultVisible,D=e.getTooltipContainer,P=e.overlayInnerStyle,I=e.overlay,j=e.id,W=e.showArrow,F=W===void 0?!0:W,H=ch(e,vee),$=Y.useRef(null);Y.useImperativeHandle(t,function(){return $.current});var G=Ke({},H);"visible"in e&&(G.popupVisible=e.visible);var K=function(){return B.createElement(jK,{key:"content",prefixCls:p,id:j,overlayInnerStyle:P},I)};return B.createElement(gee,te({popupClassName:n,prefixCls:p,popup:K,action:o,builtinPlacements:mee,popupPlacement:T,ref:$,popupAlign:E,getPopupContainer:D,onPopupVisibleChange:v,afterPopupVisibleChange:b,popupTransitionName:_,popupAnimation:y,popupMotion:C,defaultPopupVisible:R,autoDestroy:S,mouseLeaveDelay:c,popupStyle:l,mouseEnterDelay:a,arrow:F},G),f)};const yee=Y.forwardRef(bee),wee="_breakLongWord_1947o_272",_ee="_rcToolTipZoomIn_1947o_1",xee="_rcToolTipZoomOut_1947o_1",Ub={breakLongWord:wee,rcToolTipZoomIn:_ee,rcToolTipZoomOut:xee},Ra=Object.freeze({SISENSE_NAMESPACE:"sis-scope",TEXT_PRIMARY:"slf-text-primary",TEXT_SECONDARY:"slf-text-secondary",TEXT_SECONDARY_HOVER:"slf-text-secondary-hov",TEXT_HREF:"slf-text-href",TEXT_HREF_HOVER:"slf-text-href-hov"}),tL=e=>{const t=e,{breakingLongWord:n,hideArrow:r=!1,overlayClassName:o,overlay:i,imgOverlay:a=!1,semanticText:s}=t,c=Dn(t,["breakingLongWord","hideArrow","overlayClassName","overlay","imgOverlay","semanticText"]),l=Je(o,"slf-default",Ra.SISENSE_NAMESPACE,{"hide-arrow":r,[Ub.breakLongWord]:n,[Ub.semanticText]:s,[Ub.semanticText]:s});return A.jsx(yee,$e(de({destroyTooltipOnHide:!0,overlay:typeof i=="string"?a?A.jsx("img",{src:i}):A.jsx("div",{dangerouslySetInnerHTML:{__html:i}}):i},c),{overlayClassName:l}))},Cee="_popover_wakdx_1",See="_popoverMask_wakdx_6",rO={popover:Cee,popoverMask:See},kee=()=>{},Tee=1069,mu=e=>{const{bubbleMouseEvents:t=!1,level:n=0,mask:r=!0,onRequestClose:o=kee,visible:i=!1,zIndex:a=Tee,maskClassName:s,getTooltipContainer:c}=e,l=()=>{let p=document.body;return c&&(p=c()),p},d=p=>{t||(p.preventDefault(),p.stopPropagation())};return A.jsxs(A.Fragment,{children:[i&&r&&A.jsx(Eee,{portalRootEl:l(),children:A.jsx("div",{className:Je(rO.popoverMask,s),style:{zIndex:(a+n).toString()},onClick:p=>o==null?void 0:o(p.nativeEvent)})}),A.jsx(tL,$e(de({},e),{overlayClassName:rO.popover,hideArrow:!0,onClick:d,zIndex:a+n+1,align:e.align}))]})},Eee=e=>mr.createPortal(e.children,e.portalRootEl);var t1=(e=>(e.topLeft="tl",e.topCenter="tc",e.topRight="tr",e.centerLeft="cl",e.centerCenter="cc",e.centerRight="cr",e.bottomLeft="bl",e.bottomCenter="bc",e.bottomRight="br",e))(t1||{});const Aee=e=>{const{onRequestClose:t,onClick:n,onKeyPress:r,sortingPopup:o,className:i,getTooltipContainer:a}=e;return A.jsx(mu,{bubbleMouseEvents:!0,level:0,mask:!0,placement:"bottom",onVisibleChange:s=>{},trigger:["click"],overlay:()=>o,onRequestClose:t,getTooltipContainer:a,visible:o!==null,align:{points:[t1.topLeft,t1.bottomRight]},children:A.jsx("span",{role:"button","aria-label":"Show sorting settings pop-up",tabIndex:0,onClick:n,onKeyPress:r,className:i})})},oO=50,Oee=new RegExp(`<\\/?[\\w\\s="/.':;#-\\/\\?]+>`),qb={TEXT:"text",HTML:"html",COMPONENT:"component"};class nL extends B.PureComponent{constructor(t){super(t),q(this,"cellEl"),q(this,"metadataClassName"),q(this,"virtualBorderStyle"),q(this,"cellStyle"),q(this,"cellContentStyle"),q(this,"databarStyle"),q(this,"cachedHtml"),q(this,"timeoutId"),q(this,"isMouseInCell"),q(this,"onCellClick",n=>{const{isDataCell:r,dataNode:o,treeNode:i,columnTreeNode:a,rowTreeNode:s,measureTreeNode:c,cellMetadata:l,onCellClick:d}=this.props;let p;a?p=o:i&&(p=i),d&&d({event:n,isDataCell:r,dataNode:p,rowTreeNode:s,columnTreeNode:a,measureTreeNode:c,cellMetadata:l,cell:this})}),q(this,"onCellEnter",n=>{const{onCellEnter:r,cellMetadata:o}=this.props,i={domEvent:n,metadata:o,cell:o?o.cellData:void 0};this.isMouseInCell||(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),n.persist(),this.timeoutId=setTimeout(()=>{r&&r(i),this.timeoutId=void 0,this.isMouseInCell=!0},100))}),q(this,"onCellLeave",n=>{const{onCellLeave:r,cellMetadata:o}=this.props,i={domEvent:n,metadata:o,cell:o?o.cellData:void 0};this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),n.persist(),r&&this.isMouseInCell&&(r(i),this.isMouseInCell=!1)}),q(this,"onResizeStartHandler",()=>{const{parent:n}=this.props,{merge:r}=this.state;n&&n.resizeColumnStart&&n.resizeColumnStart();const o=this.props.columnIndex+fb(r);let i=0;return n&&n.getColumnWidth&&(i=n.getColumnWidth(o)),i}),q(this,"onResizeHandler",n=>{const{parent:r,columnIndex:o}=this.props,{merge:i}=this.state;if(r&&r.resizeColumn){const a=o+fb(i),s=Math.max(oO,n),c=[[a,s]],l={columnIndex:a},d={width:!0};r.resizeColumn(c,l,d)}}),q(this,"onResizeEndHandler",n=>{const{parent:r,columnIndex:o}=this.props,{merge:i}=this.state;if(r&&r.resizeColumnEnd){const a=o+fb(i),s=Math.max(oO,n);r.resizeColumnEnd(s,a)}}),q(this,"onRangeMinMaxChange",(n,r=this.props)=>{const{dataNode:o,measureTreeNode:i}=r,a=LW(n.rangeMinMax,o,i);a&&(this.cellStyle=void 0,this.setState({backgroundColor:a}))}),q(this,"setSortingPopup",n=>{const r=n!==null;this.setState(o=>$e(de({},o),{sortIconShouldBeVisible:r,sortingPopup:n}))}),q(this,"handleSortingIconClick",n=>{n.preventDefault(),n.stopPropagation(),this.props.onSortingSettingsChanged(this.props.treeNode,this.props.metadata,this)}),q(this,"createMarkup",n=>((!this.cachedHtml||n!==this.cachedHtml.data)&&(this.cachedHtml={data:n,html:{__html:n}}),this.cachedHtml.html)),q(this,"onCellRef",n=>{n&&(this.cellEl=n)}),this.state={isDrilled:!1,isSelected:this.getSelectStatus(),sortIconShouldBeVisible:!1,sortingPopup:null,merge:t.merge?t.merge:{colSpan:t.colSpan,rowSpan:t.rowSpan},isEmbedImage:this.getIsEmbedImageStatus(t)}}componentDidMount(){if(this.props.tableSize){this.props.tableSize.notifyChange(),this.props.tableSize.on(nu,this.onRangeMinMaxChange);const t=this.props.tableSize.getRangeMinMax();t&&this.onRangeMinMaxChange(t)}this.dataBarsCheck()}UNSAFE_componentWillReceiveProps(t){if((this.props.metadata!==t.metadata||this.props.rowMetadata!==t.rowMetadata||this.props.columnMetadata!==t.columnMetadata||this.props.rowIndex!==t.rowIndex||this.props.columnIndex!==t.columnIndex||this.props.fixedWidth!==t.fixedWidth)&&(this.metadataClassName=void 0),(this.props.borderWidth!==t.borderWidth||this.props.borderColor!==t.borderColor||this.props.colWidth!==t.colWidth)&&(this.virtualBorderStyle=void 0,this.cellStyle=void 0,this.cellContentStyle=void 0,this.databarStyle=void 0),(this.props.isDataCell!==t.isDataCell||this.props.treeNode!==t.treeNode||this.props.dataNode!==t.dataNode||Bc(this.props)!==Bc(t))&&(this.cellStyle=void 0,this.cellContentStyle=void 0,this.databarStyle=void 0,this.setState({isSelected:!1,backgroundColor:void 0})),this.props.tableSize!==t.tableSize&&(this.props.tableSize&&this.props.tableSize.off(nu,this.onRangeMinMaxChange),t.tableSize)){t.tableSize.on(nu,this.onRangeMinMaxChange);const r=t.tableSize.getRangeMinMax();r&&this.onRangeMinMaxChange(r,t)}(this.props.merge!==t.merge||this.props.colSpan!==t.colSpan||this.props.rowSpan!==t.rowSpan)&&(this.cellStyle=void 0,this.cellContentStyle=void 0,this.databarStyle=void 0,this.setState({merge:t.merge?t.merge:{colSpan:t.colSpan,rowSpan:t.rowSpan}}));const n=t.isDataCell?t.dataNode:t.treeNode;this.props.isSelectedMode&&n&&n.state&&!n.state.sliced&&this.select("isSelected"),(this.props.imageColumns!==t.imageColumns||this.props.treeNode!==t.treeNode)&&this.setState({isEmbedImage:this.getIsEmbedImageStatus(t)})}componentDidUpdate(){this.props.tableSize&&this.props.tableSize.notifyChange(),this.dataBarsCheck()}componentWillUnmount(){this.metadataClassName=void 0,this.virtualBorderStyle=void 0,this.cellStyle=void 0,this.cellContentStyle=void 0,this.databarStyle=void 0,this.props.tableSize&&this.props.tableSize.off(nu,this.onRangeMinMaxChange)}dataBarsCheck(){const{tableSize:t,columnIndex:n,rowIndex:r}=this.props;if(this.hasDataBars()&&this.cellEl&&t){let o=0;const i=this.cellEl.querySelector(`.${Gd}`);i&&(o=i.offsetWidth),t.updateDataBars(n,r,o)}}getSelectStatus(){let t;return this.props.columnTreeNode?t=this.props.dataNode:this.props.treeNode&&(t=this.props.treeNode),!!(this.props.isSelectedMode&&t&&t.state&&t.state.selected)}getIsEmbedImageStatus(t){const{isDataCell:n,tableType:r,imageColumns:o}=t,{columnIndex:i}=this.props;return n?!1:!!(r===Gn.ROWS&&o&&o.includes(i))}select(t){const n={[t]:!0};this.setState(r=>de(de({},r),n))}unselect(t){const n={[t]:!1};this.setState(r=>de(de({},r),n))}isDrilled(){return this.state.isDrilled}hasDataBars(){const{tableType:t,rowTreeNode:n,columnTreeNode:r,measureTreeNode:o}=this.props;return!(t!==Gn.DATA||!o||!o.databars||n&&(n.userType===Lt.SUB_TOTAL||n.userType===Lt.GRAND_TOTAL)||r&&(r.userType===Lt.SUB_TOTAL||r.userType===Lt.GRAND_TOTAL))}getClassName(){const{isDataCell:t,rowIndex:n,columnIndex:r,metadata:o,rowMetadata:i,columnMetadata:a,treeNode:s,rowTreeNode:c,columnTreeNode:l,fixedWidth:d,tableType:p=""}=this.props,{merge:f}=this.state;if(this.metadataClassName===void 0){const v=`${kr}--row-${n}`,b=`${kr}--col-${r}`;let _="",y="",C="";t?(y=`
|
|
375
|
+
${db(i,kr,"row")}
|
|
376
|
+
${db(a,kr,"col")}
|
|
377
|
+
`.trim(),C=`
|
|
378
|
+
${pb(c,kr,"row")}
|
|
379
|
+
${pb(l,kr,"col")}
|
|
380
|
+
`.trim(),_=`
|
|
381
|
+
${hb(f,kr,"row")}
|
|
382
|
+
${hb(f,kr,"col")}
|
|
383
|
+
`.trim()):(y=db(o,kr),C=pb(s,kr),_=hb(f,kr)),this.metadataClassName=Je(kr,`${kr}--new`,`${kr}--${p}`,v,b,y,C,_,d?wU:"")}return this.metadataClassName}getCellStyle(){if(this.cellStyle===void 0){const{treeNode:t,rowTreeNode:n,columnTreeNode:r,metadata:o,rowMetadata:i,columnMetadata:a,tableType:s=""}=this.props,{merge:c,backgroundColor:l}=this.state,d=DW(s,{metadata:o,rowMetadata:i,columnMetadata:a,treeNode:t,rowTreeNode:n,columnTreeNode:r,merge:c}),p=Bc(this.props);this.cellStyle=PW(p),this.cellStyle.borderWidth=this.props.borderWidth,this.cellStyle.borderColor===void 0&&delete this.cellStyle.borderColor,d.b||(this.cellStyle.borderColor&&(this.cellStyle.borderTopColor=this.cellStyle.borderColor,this.cellStyle.borderLeftColor=this.cellStyle.borderColor,this.cellStyle.borderRightColor=this.cellStyle.borderColor,delete this.cellStyle.borderColor),this.cellStyle.borderBottomColor="transparent"),l&&!this.cellStyle.backgroundColor&&(this.cellStyle.backgroundColor=l)}return this.cellStyle}getCellContentStyle(){if(this.cellContentStyle===void 0){const{fixedWidth:t,styleObj:n,colWidth:r,rowHeight:o,tableType:i}=this.props,a=Bc(this.props);this.cellContentStyle=IW(a),(t||this.state.isEmbedImage)&&(n.width!==void 0||r)&&(this.cellContentStyle=this.cellContentStyle||{},this.cellContentStyle.width=PT(n.width||r,this.props.borderWidth)),o&&(i===Gn.ROWS||i===Gn.DATA)&&(this.cellContentStyle=this.cellContentStyle||{},this.cellContentStyle.height=o),!o&&this.state.isEmbedImage&&(this.cellContentStyle=this.cellContentStyle||{},this.cellContentStyle.lineHeight=0),this.state.isEmbedImage&&(this.cellContentStyle.borderRight=`solid ${this.props.borderWidth||1}px transparent`)}return this.cellContentStyle}getDatabarsStyle(){if(this.databarStyle===void 0){const t=Bc(this.props);this.databarStyle=NW(t)}return this.databarStyle}getContentNode(){const{colWidth:t,styleObj:n,isDataCell:r,dataNode:o,treeNode:i,borderWidth:a}=this.props,s=r?o:i,c=s?s.content||s.value:"",l=(s||{}).store||{},d=(s||{}).contentType||qb.TEXT;if(typeof c=="string"&&(d===qb.HTML||this.props.allowHtml&&Oee.test(c)))return A.jsx("div",{className:Gd,dangerouslySetInnerHTML:this.createMarkup(c)});if(this.state.isEmbedImage){const{rowHeight:p,fallbackImageUrl:f}=this.props;return A.jsx(x2,{imageUrl:c,fallbackImageUrl:f,rowHeight:p,addCellDomReadyPromise:this.props.addCellDomReadyPromise,removeCellDomReadyPromise:this.props.removeCellDomReadyPromise})}if(d===qb.COMPONENT){const p=l,{domReadyDefer:f}=p,v=Dn(p,["domReadyDefer"]);return A.jsx("div",{className:Gd,children:A.jsx(c,$e(de({},v),{width:PT(n.width||t,a),domReadyDefer:f}))})}return A.jsx("div",{className:Gd,children:c})}render(){const{isDataCell:t,treeNode:n,tableType:r,tdComponent:o,isMobile:i}=this.props,{merge:a}=this.state,s=this.getCellStyle(),c=this.getCellContentStyle(),l=this.getDatabarsStyle();let d=this.getClassName()||"",p=!1;if(n){p=typeof n.dir!="undefined",d=p?`${d} ${fU}`:d,i&&(d=`${d} ${gU}`);let k="";n.dir?k=n.dir===yn.ASC?mU:vU:p&&!n.dir&&(k=j_(n)===yn.ASC?bU:yU),d=`${d} ${k}`;const{sortIconShouldBeVisible:T}=this.state;T&&(d=`${d} ${kU}`)}const f=r===Gn.CORNER||r===Gn.COLUMNS,v=this.hasDataBars(),b=this.state.isSelected&&!t?pU:"",_=this.state.isDrilled?hU:"",y=this.getContentNode();let C=null;return p&&(C=A.jsx(Aee,{onRequestClose:()=>this.setSortingPopup(null),onClick:this.handleSortingIconClick,onKeyPress:this.handleSortingIconClick,sortingPopup:this.state.sortingPopup,className:SU,getTooltipContainer:this.props.getSortingPopupContainer})),B.createElement(o,{ref:this.onCellRef,onClick:this.onCellClick,onContextMenu:this.onCellClick,onMouseEnter:this.onCellEnter,onMouseLeave:this.onCellLeave,className:Je(d,_,b),style:s,colSpan:a?a.colSpan:void 0,rowSpan:a?a.rowSpan:void 0},[A.jsxs("div",{className:_U,children:[C,f&&A.jsx(AK,{onResizeStart:this.onResizeStartHandler,onResize:this.onResizeHandler,onResizeEnd:this.onResizeEndHandler}),v&&A.jsx(PK,{columnIndex:this.props.columnIndex,tableSize:this.props.tableSize,dataNode:this.props.dataNode,style:l})]},"corner"),A.jsx("div",{className:xU,style:c,children:A.jsx("div",{className:CU,children:y})},"content")])}}q(nL,"defaultProps",{isDataCell:!1,fixedWidth:!1,borderWidth:1,onSortingMetadataUpdate:()=>{}});var rL=Symbol.for("immer-nothing"),iO=Symbol.for("immer-draftable"),Xr=Symbol.for("immer-state"),Ree=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Or(e,...t){if(process.env.NODE_ENV!=="production"){const n=Ree[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var rc=Object.getPrototypeOf;function oc(e){return!!e&&!!e[Xr]}function Ms(e){var t;return e?oL(e)||Array.isArray(e)||!!e[iO]||!!((t=e.constructor)!=null&&t[iO])||Gf(e)||Qf(e):!1}var Dee=Object.prototype.constructor.toString();function oL(e){if(!e||typeof e!="object")return!1;const t=rc(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Dee}function gh(e,t){Vf(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Vf(e){const t=e[Xr];return t?t.type_:Array.isArray(e)?1:Gf(e)?2:Qf(e)?3:0}function n1(e,t){return Vf(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function iL(e,t,n){const r=Vf(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Mee(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Gf(e){return e instanceof Map}function Qf(e){return e instanceof Set}function ms(e){return e.copy_||e.base_}function r1(e,t){if(Gf(e))return new Map(e);if(Qf(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=oL(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Xr];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(rc(e),r)}else{const r=rc(e);if(r!==null&&n)return de({},e);const o=Object.create(r);return Object.assign(o,e)}}function Q_(e,t=!1){return Jf(e)||oc(e)||!Ms(e)||(Vf(e)>1&&(e.set=e.add=e.clear=e.delete=Pee),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Q_(r,!0))),e}function Pee(){Or(2)}function Jf(e){return Object.isFrozen(e)}var Iee={};function Ps(e){const t=Iee[e];return t||Or(0,e),t}var Mu;function aL(){return Mu}function Nee(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function aO(e,t){t&&(Ps("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function o1(e){i1(e),e.drafts_.forEach(Lee),e.drafts_=null}function i1(e){e===Mu&&(Mu=e.parent_)}function sO(e){return Mu=Nee(Mu,e)}function Lee(e){const t=e[Xr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function lO(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Xr].modified_&&(o1(t),Or(4)),Ms(e)&&(e=mh(t,e),t.parent_||vh(t,e)),t.patches_&&Ps("Patches").generateReplacementPatches_(n[Xr].base_,e,t.patches_,t.inversePatches_)):e=mh(t,n,[]),o1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==rL?e:void 0}function mh(e,t,n){if(Jf(t))return t;const r=t[Xr];if(!r)return gh(t,(o,i)=>cO(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return vh(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),gh(i,(s,c)=>cO(e,r,o,s,c,n,a)),vh(e,o,!1),n&&e.patches_&&Ps("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function cO(e,t,n,r,o,i,a){if(process.env.NODE_ENV!=="production"&&o===n&&Or(5),oc(o)){const s=i&&t&&t.type_!==3&&!n1(t.assigned_,r)?i.concat(r):void 0,c=mh(e,o,s);if(iL(n,r,c),oc(c))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(Ms(o)&&!Jf(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;mh(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&vh(e,o)}}function vh(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Q_(t,n)}function jee(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:aL(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=J_;n&&(o=[r],i=Pu);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var J_={get(e,t){if(t===Xr)return e;const n=ms(e);if(!n1(n,t))return Fee(e,n,t);const r=n[t];return e.finalized_||!Ms(r)?r:r===Yb(e.base_,t)?(Vb(e),e.copy_[t]=s1(r,e)):r},has(e,t){return t in ms(e)},ownKeys(e){return Reflect.ownKeys(ms(e))},set(e,t,n){const r=sL(ms(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Yb(ms(e),t),i=o==null?void 0:o[Xr];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Mee(n,o)&&(n!==void 0||n1(e.base_,t)))return!0;Vb(e),a1(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Yb(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Vb(e),a1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ms(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Or(11)},getPrototypeOf(e){return rc(e.base_)},setPrototypeOf(){Or(12)}},Pu={};gh(J_,(e,t)=>{Pu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Pu.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Or(13),Pu.set.call(this,e,t,void 0)};Pu.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Or(14),J_.set.call(this,e[0],t,n,e[0])};function Yb(e,t){const n=e[Xr];return(n?ms(n):e)[t]}function Fee(e,t,n){var r;const o=sL(t,n);return o?"value"in o?o.value:(r=o.get)==null?void 0:r.call(e.draft_):void 0}function sL(e,t){if(!(t in e))return;let n=rc(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=rc(n)}}function a1(e){e.modified_||(e.modified_=!0,e.parent_&&a1(e.parent_))}function Vb(e){e.copy_||(e.copy_=r1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Bee=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(s=i,...c){return a.produce(s,l=>n.call(this,l,...c))}}typeof n!="function"&&Or(6),r!==void 0&&typeof r!="function"&&Or(7);let o;if(Ms(t)){const i=sO(this),a=s1(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?o1(i):i1(i)}return aO(i,r),lO(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===rL&&(o=void 0),this.autoFreeze_&&Q_(o,!0),r){const i=[],a=[];Ps("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else Or(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(i,...a)=>this.produceWithPatches(i,s=>t(s,...a));let r,o;return[this.produce(t,n,(i,a)=>{r=i,o=a}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ms(e)||Or(8),oc(e)&&(e=Hee(e));const t=sO(this),n=s1(e,void 0);return n[Xr].isManual_=!0,i1(t),n}finishDraft(e,t){const n=e&&e[Xr];(!n||!n.isManual_)&&Or(9);const{scope_:r}=n;return aO(r,t),lO(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Ps("Patches").applyPatches_;return oc(e)?r(e,t):this.produce(e,o=>r(o,t))}};function s1(e,t){const n=Gf(e)?Ps("MapSet").proxyMap_(e,t):Qf(e)?Ps("MapSet").proxySet_(e,t):jee(e,t);return(t?t.scope_:aL()).drafts_.push(n),n}function Hee(e){return oc(e)||Or(10,e),lL(e)}function lL(e){if(!Ms(e)||Jf(e))return e;const t=e[Xr];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=r1(e,t.scope_.immer_.useStrictShallowCopy_)}else n=r1(e,!0);return gh(n,(r,o)=>{iL(n,r,lL(o))}),t&&(t.finalized_=!1),n}var eo=new Bee,l1=eo.produce;eo.produceWithPatches.bind(eo);eo.setAutoFreeze.bind(eo);eo.setUseStrictShallowCopy.bind(eo);eo.applyPatches.bind(eo);eo.createDraft.bind(eo);eo.finishDraft.bind(eo);var Qc={},uO;function $ee(){if(uO)return Qc;uO=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.default=void 0;var e=r(Y),t=tN;function n(a){if(typeof WeakMap!="function")return null;var s=new WeakMap,c=new WeakMap;return(n=function(l){return l?c:s})(a)}function r(a,s){if(a&&a.__esModule)return a;if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var c=n(s);if(c&&c.has(a))return c.get(a);var l={__proto__:null},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in a)if(p!=="default"&&Object.prototype.hasOwnProperty.call(a,p)){var f=d?Object.getOwnPropertyDescriptor(a,p):null;f&&(f.get||f.set)?Object.defineProperty(l,p,f):l[p]=a[p]}return l.default=a,c&&c.set(a,l),l}function o(a){return Object.keys(a).length===0}function i(a=null){const s=e.useContext(t.ThemeContext);return!s||o(s)?a:s}return Qc.default=i,Qc}var zee=$ee();const Wee=Oo(zee),Uee=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],qee=ze(CN,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cL=B.forwardRef(function(e,t){var n;const r=Wee(),o=Zt({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:c,container:l,disablePortal:d,keepMounted:p,modifiers:f,open:v,placement:b,popperOptions:_,popperRef:y,transition:C,slots:k,slotProps:T}=o,x=We(o,Uee),E=(n=k==null?void 0:k.root)!=null?n:s==null?void 0:s.Root,O=te({anchorEl:i,container:l,disablePortal:d,keepMounted:p,modifiers:f,open:v,placement:b,popperOptions:_,popperRef:y,transition:C},x);return A.jsx(qee,te({as:a,direction:r==null?void 0:r.direction,slots:{root:E},slotProps:T!=null?T:c},O,{ref:t}))});process.env.NODE_ENV!=="production"&&(cL.propTypes={anchorEl:g.oneOfType([Qi,g.object,g.func]),children:g.oneOfType([g.node,g.func]),component:g.elementType,components:g.shape({Root:g.elementType}),componentsProps:g.shape({root:g.oneOfType([g.func,g.object])}),container:g.oneOfType([Qi,g.func]),disablePortal:g.bool,keepMounted:g.bool,modifiers:g.arrayOf(g.shape({data:g.object,effect:g.func,enabled:g.bool,fn:g.func,name:g.any,options:g.object,phase:g.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:g.arrayOf(g.string),requiresIfExists:g.arrayOf(g.string)})),open:g.bool.isRequired,placement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:g.shape({modifiers:g.array,onFirstUpdate:g.func,placement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:g.oneOf(["absolute","fixed"])}),popperRef:Ro,slotProps:g.shape({root:g.oneOfType([g.func,g.object])}),slots:g.shape({root:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),transition:g.bool});const uL=cL;function Yee(e){return $t("MuiTooltip",e)}const Vee=jt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Da=Vee,Gee=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Qee(e){return Math.round(e*1e5)/1e5}const Jee=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ot(i.split("-")[0])}`],arrow:["arrow"]};return qt(a,Yee,t)},Zee=ze(uL,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>te({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Da.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Da.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Da.arrow}`]:te({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Da.arrow}`]:te({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Kee=ze("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ot(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>te({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Qt.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Qee(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Da.popper}[data-popper-placement*="left"] &`]:te({transformOrigin:"right center"},t.isRtl?te({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):te({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Da.popper}[data-popper-placement*="right"] &`]:te({transformOrigin:"left center"},t.isRtl?te({marginRight:"14px"},t.touch&&{marginRight:"24px"}):te({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Da.popper}[data-popper-placement*="top"] &`]:te({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Da.popper}[data-popper-placement*="bottom"] &`]:te({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Xee=ze("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Qt.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ap=!1;const dO=new Qu;let Jc={x:0,y:0};function sp(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const dL=B.forwardRef(function(e,t){var n,r,o,i,a,s,c,l,d,p,f,v,b,_,y,C,k,T,x;const E=Zt({props:e,name:"MuiTooltip"}),{arrow:O=!1,children:S,components:R={},componentsProps:D={},describeChild:P=!1,disableFocusListener:I=!1,disableHoverListener:j=!1,disableInteractive:W=!1,disableTouchListener:F=!1,enterDelay:H=100,enterNextDelay:$=0,enterTouchDelay:G=700,followCursor:K=!1,id:Z,leaveDelay:X=0,leaveTouchDelay:se=1500,onClose:ve,onOpen:fe,open:me,placement:ge="bottom",PopperComponent:Se,PopperProps:_e={},slotProps:oe={},slots:N={},title:z,TransitionComponent:Q=Pw,TransitionProps:re}=E,ue=We(E,Gee),ie=B.isValidElement(S)?S:A.jsx("span",{children:S}),be=Hf(),De=Mf(),[we,Be]=B.useState(),[Ee,Oe]=B.useState(null),Ae=B.useRef(!1),Le=W||K,Fe=jl(),lt=jl(),_t=jl(),wt=jl(),[Ge,Me]=Cu({controlled:me,default:!1,name:"Tooltip",state:"open"});let at=Ge;if(process.env.NODE_ENV!=="production"){const{current:Qe}=B.useRef(me!==void 0);B.useEffect(()=>{we&&we.disabled&&!Qe&&z!==""&&we.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
384
|
+
`))},[z,we,Qe])}const Ft=Zp(Z),tn=B.useRef(),zt=Aa(()=>{tn.current!==void 0&&(document.body.style.WebkitUserSelect=tn.current,tn.current=void 0),wt.clear()});B.useEffect(()=>zt,[zt]);const Pe=Qe=>{dO.clear(),ap=!0,Me(!0),fe&&!at&&fe(Qe)},Ue=Aa(Qe=>{dO.start(800+X,()=>{ap=!1}),Me(!1),ve&&at&&ve(Qe),Fe.start(be.transitions.duration.shortest,()=>{Ae.current=!1})}),Et=Qe=>{Ae.current&&Qe.type!=="touchstart"||(we&&we.removeAttribute("title"),lt.clear(),_t.clear(),H||ap&&$?lt.start(ap?$:H,()=>{Pe(Qe)}):Pe(Qe))},gn=Qe=>{lt.clear(),_t.start(X,()=>{Ue(Qe)})},{isFocusVisibleRef:ln,onBlur:ro,onFocus:Nr,ref:zn}=zI(),[,Ko]=B.useState(!1),Xo=Qe=>{ro(Qe),ln.current===!1&&(Ko(!1),gn(Qe))},br=Qe=>{we||Be(Qe.currentTarget),Nr(Qe),ln.current===!0&&(Ko(!0),Et(Qe))},Yt=Qe=>{Ae.current=!0;const un=ie.props;un.onTouchStart&&un.onTouchStart(Qe)},Vt=Qe=>{Yt(Qe),_t.clear(),Fe.clear(),zt(),tn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",wt.start(G,()=>{document.body.style.WebkitUserSelect=tn.current,Et(Qe)})},Gt=Qe=>{ie.props.onTouchEnd&&ie.props.onTouchEnd(Qe),zt(),_t.start(se,()=>{Ue(Qe)})};B.useEffect(()=>{if(!at)return;function Qe(un){(un.key==="Escape"||un.key==="Esc")&&Ue(un)}return document.addEventListener("keydown",Qe),()=>{document.removeEventListener("keydown",Qe)}},[Ue,at]);const Po=jn(ie.ref,zn,Be,t);!z&&z!==0&&(at=!1);const yr=B.useRef(),Io=Qe=>{const un=ie.props;un.onMouseMove&&un.onMouseMove(Qe),Jc={x:Qe.clientX,y:Qe.clientY},yr.current&&yr.current.update()},Lr={},jr=typeof z=="string";P?(Lr.title=!at&&jr&&!j?z:null,Lr["aria-describedby"]=at?Ft:null):(Lr["aria-label"]=jr?z:null,Lr["aria-labelledby"]=at&&!jr?Ft:null);const cn=te({},Lr,ue,ie.props,{className:Xe(ue.className,ie.props.className),onTouchStart:Yt,ref:Po},K?{onMouseMove:Io}:{});process.env.NODE_ENV!=="production"&&(cn["data-mui-internal-clone-element"]=!0,B.useEffect(()=>{we&&!we.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
385
|
+
`))},[we]));const mn={};F||(cn.onTouchStart=Vt,cn.onTouchEnd=Gt),j||(cn.onMouseOver=sp(Et,cn.onMouseOver),cn.onMouseLeave=sp(gn,cn.onMouseLeave),Le||(mn.onMouseOver=Et,mn.onMouseLeave=gn)),I||(cn.onFocus=sp(br,cn.onFocus),cn.onBlur=sp(Xo,cn.onBlur),Le||(mn.onFocus=br,mn.onBlur=Xo)),process.env.NODE_ENV!=="production"&&ie.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${ie.props.title}\` or the Tooltip component.`].join(`
|
|
386
|
+
`));const Ya=B.useMemo(()=>{var Qe;let un=[{name:"arrow",enabled:!!Ee,options:{element:Ee,padding:4}}];return(Qe=_e.popperOptions)!=null&&Qe.modifiers&&(un=un.concat(_e.popperOptions.modifiers)),te({},_e.popperOptions,{modifiers:un})},[Ee,_e]),Fr=te({},E,{isRtl:De,arrow:O,disableInteractive:Le,placement:ge,PopperComponentProp:Se,touch:Ae.current}),oo=Jee(Fr),ei=(n=(r=N.popper)!=null?r:R.Popper)!=null?n:Zee,io=(o=(i=(a=N.transition)!=null?a:R.Transition)!=null?i:Q)!=null?o:Pw,ao=(s=(c=N.tooltip)!=null?c:R.Tooltip)!=null?s:Kee,wr=(l=(d=N.arrow)!=null?d:R.Arrow)!=null?l:Xee,No=iu(ei,te({},_e,(p=oe.popper)!=null?p:D.popper,{className:Xe(oo.popper,_e==null?void 0:_e.className,(f=(v=oe.popper)!=null?v:D.popper)==null?void 0:f.className)}),Fr),Ai=iu(io,te({},re,(b=oe.transition)!=null?b:D.transition),Fr),Oi=iu(ao,te({},(_=oe.tooltip)!=null?_:D.tooltip,{className:Xe(oo.tooltip,(y=(C=oe.tooltip)!=null?C:D.tooltip)==null?void 0:y.className)}),Fr),so=iu(wr,te({},(k=oe.arrow)!=null?k:D.arrow,{className:Xe(oo.arrow,(T=(x=oe.arrow)!=null?x:D.arrow)==null?void 0:T.className)}),Fr);return A.jsxs(B.Fragment,{children:[B.cloneElement(ie,cn),A.jsx(ei,te({as:Se!=null?Se:uL,placement:ge,anchorEl:K?{getBoundingClientRect:()=>({top:Jc.y,left:Jc.x,right:Jc.x,bottom:Jc.y,width:0,height:0})}:we,popperRef:yr,open:we?at:!1,id:Ft,transition:!0},mn,No,{popperOptions:Ya,children:({TransitionProps:Qe})=>A.jsx(io,te({timeout:be.transitions.duration.shorter},Qe,Ai,{children:A.jsxs(ao,te({},Oi,{children:[z,O?A.jsx(wr,te({},so,{ref:Oe})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(dL.propTypes={arrow:g.bool,children:Gu.isRequired,classes:g.object,className:g.string,components:g.shape({Arrow:g.elementType,Popper:g.elementType,Tooltip:g.elementType,Transition:g.elementType}),componentsProps:g.shape({arrow:g.object,popper:g.object,tooltip:g.object,transition:g.object}),describeChild:g.bool,disableFocusListener:g.bool,disableHoverListener:g.bool,disableInteractive:g.bool,disableTouchListener:g.bool,enterDelay:g.number,enterNextDelay:g.number,enterTouchDelay:g.number,followCursor:g.bool,id:g.string,leaveDelay:g.number,leaveTouchDelay:g.number,onClose:g.func,onOpen:g.func,open:g.bool,placement:g.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:g.elementType,PopperProps:g.object,slotProps:g.shape({arrow:g.object,popper:g.object,tooltip:g.object,transition:g.object}),slots:g.shape({arrow:g.elementType,popper:g.elementType,tooltip:g.elementType,transition:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),title:g.node,TransitionComponent:g.elementType,TransitionProps:g.object});const ete=dL,tte=Wa({components:{MuiTooltip:{styleOverrides:{arrow:{color:mt.StBackgroundColors.workspace},tooltip:{color:mt.StTextColors.content,maxWidth:"432px",borderRadius:"4px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",padding:"12px 16px",gap:"10px",backgroundColor:mt.StBackgroundColors.workspace,filter:"drop-shadow(0px 1px 4px rgba(9, 9, 10, 0.1)) drop-shadow(0px 4px 12px rgba(9, 9, 10, 0.2));"}}}}}),nte="#2c3342",rte="#f4f4f8",ote="#dee1e7",ite="#fff",ate="_breakLongWord_1dxah_307",ste="_semanticText_1dxah_311",lte="_tooltip_1dxah_315",cte="_rcToolTipZoomIn_1dxah_1",ute="_rcToolTipZoomOut_1dxah_1",dte={loginDarkColor:nte,darkBtnHoverColor:rte,greyHoverColor:ote,defaultBackgroundColor:ite,breakLongWord:ate,semanticText:ste,tooltip:lte,rcToolTipZoomIn:cte,rcToolTipZoomOut:ute},pL=Y.forwardRef((e,t)=>{var n=e,{title:r,children:o,arrow:i,theme:a=tte}=n,s=Dn(n,["title","children","arrow","theme"]);const{classes:c={}}=s,l=$e(de({},c),{tooltip:Je(dte.tooltip,c.tooltip,Ra.SISENSE_NAMESPACE)});return A.jsx(Bs,{theme:a,children:A.jsx(ete,$e(de({},s),{title:r,arrow:i,ref:t,classes:l,children:o}))})});function pO(e){return`‘${e}’`}function pte(e){return e[e.length-1]}const hte=e=>{const{hierarchy:t,prependedText:n}=e,r=Y.useRef(null),o=Y.useRef(null),i=t.map(pO).join(" → "),[a,s]=Y.useState(i);return Y.useLayoutEffect(()=>{if(r.current&&o.current){const c=r.current.offsetWidth;if(o.current.offsetWidth>c){const l=pO(pte(t));s(l)}}},[t]),A.jsxs("div",{className:"header-text",children:[A.jsx("span",{className:"header-text__sort-by",children:n}),A.jsx(pL,{placement:"top",title:a,arrow:!0,children:A.jsx("span",{ref:r,className:"header-text__hierarchy-container",children:A.jsx("span",{ref:o,children:a})})})]})},hL=e=>{const{onCrossIconClick:t,className:n,prependedText:r,hierarchy:o}=e,i=!!t;return A.jsxs("div",{className:n,children:[A.jsx(hte,{hierarchy:o,prependedText:r}),i&&A.jsx(Fl,{onClick:t,name:"general-x",className:"cross-icon"})]})};var hO={},fO={},$l={},fte={get exports(){return $l},set exports(e){$l=e}},gO;function gte(){if(gO)return $l;gO=1;for(var e=SI(),t=typeof window=="undefined"?ys:window,n=["moz","webkit"],r="AnimationFrame",o=t["request"+r],i=t["cancel"+r]||t["cancelRequest"+r],a=0;!o&&a<n.length;a++)o=t[n[a]+"Request"+r],i=t[n[a]+"Cancel"+r]||t[n[a]+"CancelRequest"+r];if(!o||!i){var s=0,c=0,l=[],d=1e3/60;o=function(p){if(l.length===0){var f=e(),v=Math.max(0,d-(f-s));s=v+f,setTimeout(function(){var b=l.slice(0);l.length=0;for(var _=0;_<b.length;_++)if(!b[_].cancelled)try{b[_].callback(s)}catch(y){setTimeout(function(){throw y},0)}},Math.round(v))}return l.push({handle:++c,callback:p,cancelled:!1}),c},i=function(p){for(var f=0;f<l.length;f++)l[f].handle===p&&(l[f].cancelled=!0)}}return fte.exports=function(p){return o.call(t,p)},$l.cancel=function(){i.apply(t,arguments)},$l.polyfill=function(p){p||(p=t),p.requestAnimationFrame=o,p.cancelAnimationFrame=i},$l}var mO={},vO;function mte(){return vO||(vO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return typeof n=="string"}}(mO)),mO}var bO={},yO;function vte(){return yO||(yO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=i_(),n=r(t);function r(a){return a&&a.__esModule?a:{default:a}}var o=!1;function i(){if(o!==!1)return o;if(typeof document!="undefined"){var a=document.createElement("div");(0,n.default)(a,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(a),o=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}else o=0;return o||0}}(bO)),bO}var wO={},_O;function bte(){return _O||(_O=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}}(wO)),wO}var xO={},CO;function yte(){return CO||(CO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){var r=n.clientWidth,o=getComputedStyle(n),i=o.paddingLeft,a=o.paddingRight;return r-parseFloat(i)-parseFloat(a)}}(xO)),xO}var SO={},kO;function wte(){return kO||(kO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){var r=n.clientHeight,o=getComputedStyle(n),i=o.paddingTop,a=o.paddingBottom;return r-parseFloat(i)-parseFloat(a)}}(SO)),SO}var Yr={},TO;function _te(){return TO||(TO=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},Yr.containerStyleAutoHeight={height:"auto"},Yr.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},Yr.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},Yr.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},Yr.trackHorizontalStyleDefault={position:"absolute",height:6},Yr.trackVerticalStyleDefault={position:"absolute",width:6},Yr.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},Yr.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},Yr.disableSelectStyle={userSelect:"none"},Yr.disableSelectStyleReset={userSelect:""}),Yr}var va={},EO;function xte(){if(EO)return va;EO=1,Object.defineProperty(va,"__esModule",{value:!0});var e=Object.assign||function(d){for(var p=1;p<arguments.length;p++){var f=arguments[p];for(var v in f)Object.prototype.hasOwnProperty.call(f,v)&&(d[v]=f[v])}return d};va.renderViewDefault=i,va.renderTrackHorizontalDefault=a,va.renderTrackVerticalDefault=s,va.renderThumbHorizontalDefault=c,va.renderThumbVerticalDefault=l;var t=Y,n=r(t);function r(d){return d&&d.__esModule?d:{default:d}}function o(d,p){var f={};for(var v in d)p.indexOf(v)>=0||Object.prototype.hasOwnProperty.call(d,v)&&(f[v]=d[v]);return f}function i(d){return n.default.createElement("div",d)}function a(d){var p=d.style,f=o(d,["style"]),v=e({},p,{right:2,bottom:2,left:2,borderRadius:3});return n.default.createElement("div",e({style:v},f))}function s(d){var p=d.style,f=o(d,["style"]),v=e({},p,{right:2,bottom:2,top:2,borderRadius:3});return n.default.createElement("div",e({style:v},f))}function c(d){var p=d.style,f=o(d,["style"]),v=e({},p,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return n.default.createElement("div",e({style:v},f))}function l(d){var p=d.style,f=o(d,["style"]),v=e({},p,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return n.default.createElement("div",e({style:v},f))}return va}var AO;function Cte(){return AO||(AO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(j){for(var W=1;W<arguments.length;W++){var F=arguments[W];for(var H in F)Object.prototype.hasOwnProperty.call(F,H)&&(j[H]=F[H])}return j},n=function(){function j(W,F){for(var H=0;H<F.length;H++){var $=F[H];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(W,$.key,$)}}return function(W,F,H){return F&&j(W.prototype,F),H&&j(W,H),W}}(),r=gte(),o=O(r),i=i_(),a=O(i),s=Y,c=RI(),l=O(c),d=mte(),p=O(d),f=vte(),v=O(f),b=bte(),_=O(b),y=yte(),C=O(y),k=wte(),T=O(k),x=_te(),E=xte();function O(j){return j&&j.__esModule?j:{default:j}}function S(j,W){var F={};for(var H in j)W.indexOf(H)>=0||Object.prototype.hasOwnProperty.call(j,H)&&(F[H]=j[H]);return F}function R(j,W){if(!(j instanceof W))throw new TypeError("Cannot call a class as a function")}function D(j,W){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:j}function P(j,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);j.prototype=Object.create(W&&W.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(j,W):j.__proto__=W)}var I=function(j){P(W,j);function W(F){var H;R(this,W);for(var $=arguments.length,G=Array($>1?$-1:0),K=1;K<$;K++)G[K-1]=arguments[K];var Z=D(this,(H=W.__proto__||Object.getPrototypeOf(W)).call.apply(H,[this,F].concat(G)));return Z.getScrollLeft=Z.getScrollLeft.bind(Z),Z.getScrollTop=Z.getScrollTop.bind(Z),Z.getScrollWidth=Z.getScrollWidth.bind(Z),Z.getScrollHeight=Z.getScrollHeight.bind(Z),Z.getClientWidth=Z.getClientWidth.bind(Z),Z.getClientHeight=Z.getClientHeight.bind(Z),Z.getValues=Z.getValues.bind(Z),Z.getThumbHorizontalWidth=Z.getThumbHorizontalWidth.bind(Z),Z.getThumbVerticalHeight=Z.getThumbVerticalHeight.bind(Z),Z.getScrollLeftForOffset=Z.getScrollLeftForOffset.bind(Z),Z.getScrollTopForOffset=Z.getScrollTopForOffset.bind(Z),Z.scrollLeft=Z.scrollLeft.bind(Z),Z.scrollTop=Z.scrollTop.bind(Z),Z.scrollToLeft=Z.scrollToLeft.bind(Z),Z.scrollToTop=Z.scrollToTop.bind(Z),Z.scrollToRight=Z.scrollToRight.bind(Z),Z.scrollToBottom=Z.scrollToBottom.bind(Z),Z.handleTrackMouseEnter=Z.handleTrackMouseEnter.bind(Z),Z.handleTrackMouseLeave=Z.handleTrackMouseLeave.bind(Z),Z.handleHorizontalTrackMouseDown=Z.handleHorizontalTrackMouseDown.bind(Z),Z.handleVerticalTrackMouseDown=Z.handleVerticalTrackMouseDown.bind(Z),Z.handleHorizontalThumbMouseDown=Z.handleHorizontalThumbMouseDown.bind(Z),Z.handleVerticalThumbMouseDown=Z.handleVerticalThumbMouseDown.bind(Z),Z.handleWindowResize=Z.handleWindowResize.bind(Z),Z.handleScroll=Z.handleScroll.bind(Z),Z.handleDrag=Z.handleDrag.bind(Z),Z.handleDragEnd=Z.handleDragEnd.bind(Z),Z.state={didMountUniversal:!1},Z}return n(W,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var F=this.props.universal;F&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,r.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var F=this.view||{},H=F.scrollLeft,$=H===void 0?0:H,G=F.scrollTop,K=G===void 0?0:G,Z=F.scrollWidth,X=Z===void 0?0:Z,se=F.scrollHeight,ve=se===void 0?0:se,fe=F.clientWidth,me=fe===void 0?0:fe,ge=F.clientHeight,Se=ge===void 0?0:ge;return{left:$/(X-me)||0,top:K/(ve-Se)||0,scrollLeft:$,scrollTop:K,scrollWidth:X,scrollHeight:ve,clientWidth:me,clientHeight:Se}}},{key:"getThumbHorizontalWidth",value:function(){var F=this.props,H=F.thumbSize,$=F.thumbMinSize,G=this.view,K=G.scrollWidth,Z=G.clientWidth,X=(0,C.default)(this.trackHorizontal),se=Math.ceil(Z/K*X);return X===se?0:H||Math.max(se,$)}},{key:"getThumbVerticalHeight",value:function(){var F=this.props,H=F.thumbSize,$=F.thumbMinSize,G=this.view,K=G.scrollHeight,Z=G.clientHeight,X=(0,T.default)(this.trackVertical),se=Math.ceil(Z/K*X);return X===se?0:H||Math.max(se,$)}},{key:"getScrollLeftForOffset",value:function(F){var H=this.view,$=H.scrollWidth,G=H.clientWidth,K=(0,C.default)(this.trackHorizontal),Z=this.getThumbHorizontalWidth();return F/(K-Z)*($-G)}},{key:"getScrollTopForOffset",value:function(F){var H=this.view,$=H.scrollHeight,G=H.clientHeight,K=(0,T.default)(this.trackVertical),Z=this.getThumbVerticalHeight();return F/(K-Z)*($-G)}},{key:"scrollLeft",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=F)}},{key:"scrollTop",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=F)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document=="undefined"||!this.view)){var F=this.view,H=this.trackHorizontal,$=this.trackVertical,G=this.thumbHorizontal,K=this.thumbVertical;F.addEventListener("scroll",this.handleScroll),(0,v.default)()&&(H.addEventListener("mouseenter",this.handleTrackMouseEnter),H.addEventListener("mouseleave",this.handleTrackMouseLeave),H.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),$.addEventListener("mouseenter",this.handleTrackMouseEnter),$.addEventListener("mouseleave",this.handleTrackMouseLeave),$.addEventListener("mousedown",this.handleVerticalTrackMouseDown),G.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),K.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document=="undefined"||!this.view)){var F=this.view,H=this.trackHorizontal,$=this.trackVertical,G=this.thumbHorizontal,K=this.thumbVertical;F.removeEventListener("scroll",this.handleScroll),(0,v.default)()&&(H.removeEventListener("mouseenter",this.handleTrackMouseEnter),H.removeEventListener("mouseleave",this.handleTrackMouseLeave),H.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),$.removeEventListener("mouseenter",this.handleTrackMouseEnter),$.removeEventListener("mouseleave",this.handleTrackMouseLeave),$.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),G.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),K.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(F){var H=this,$=this.props,G=$.onScroll,K=$.onScrollFrame;G&&G(F),this.update(function(Z){var X=Z.scrollLeft,se=Z.scrollTop;H.viewScrollLeft=X,H.viewScrollTop=se,K&&K(Z)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var F=this.props.onScrollStart;F&&F(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var F=this.props.autoHide;F&&this.showTracks()}},{key:"handleScrollStop",value:function(){var F=this.props.onScrollStop;F&&F(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var F=this.props.autoHide;F&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(F){F.preventDefault();var H=F.target,$=F.clientX,G=H.getBoundingClientRect(),K=G.left,Z=this.getThumbHorizontalWidth(),X=Math.abs(K-$)-Z/2;this.view.scrollLeft=this.getScrollLeftForOffset(X)}},{key:"handleVerticalTrackMouseDown",value:function(F){F.preventDefault();var H=F.target,$=F.clientY,G=H.getBoundingClientRect(),K=G.top,Z=this.getThumbVerticalHeight(),X=Math.abs(K-$)-Z/2;this.view.scrollTop=this.getScrollTopForOffset(X)}},{key:"handleHorizontalThumbMouseDown",value:function(F){F.preventDefault(),this.handleDragStart(F);var H=F.target,$=F.clientX,G=H.offsetWidth,K=H.getBoundingClientRect(),Z=K.left;this.prevPageX=G-($-Z)}},{key:"handleVerticalThumbMouseDown",value:function(F){F.preventDefault(),this.handleDragStart(F);var H=F.target,$=F.clientY,G=H.offsetHeight,K=H.getBoundingClientRect(),Z=K.top;this.prevPageY=G-($-Z)}},{key:"setupDragging",value:function(){(0,a.default)(document.body,x.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=_.default}},{key:"teardownDragging",value:function(){(0,a.default)(document.body,x.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(F){this.dragging=!0,F.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(F){if(this.prevPageX){var H=F.clientX,$=this.trackHorizontal.getBoundingClientRect(),G=$.left,K=this.getThumbHorizontalWidth(),Z=K-this.prevPageX,X=-G+H-Z;this.view.scrollLeft=this.getScrollLeftForOffset(X)}if(this.prevPageY){var se=F.clientY,ve=this.trackVertical.getBoundingClientRect(),fe=ve.top,me=this.getThumbVerticalHeight(),ge=me-this.prevPageY,Se=-fe+se-ge;this.view.scrollTop=this.getScrollTopForOffset(Se)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var F=this.props.autoHide;F&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var F=this.props.autoHide;F&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var F=this.props.autoHide;F&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,a.default)(this.trackHorizontal,{opacity:1}),(0,a.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var F=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var H=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,a.default)(F.trackHorizontal,{opacity:0}),(0,a.default)(F.trackVertical,{opacity:0})},H)}}},{key:"detectScrolling",value:function(){var F=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){F.lastViewScrollLeft===F.viewScrollLeft&&F.lastViewScrollTop===F.viewScrollTop&&(clearInterval(F.detectScrollingInterval),F.scrolling=!1,F.handleScrollStop()),F.lastViewScrollLeft=F.viewScrollLeft,F.lastViewScrollTop=F.viewScrollTop},100))}},{key:"raf",value:function(F){var H=this;this.requestFrame&&o.default.cancel(this.requestFrame),this.requestFrame=(0,o.default)(function(){H.requestFrame=void 0,F()})}},{key:"update",value:function(F){var H=this;this.raf(function(){return H._update(F)})}},{key:"_update",value:function(F){var H=this.props,$=H.onUpdate,G=H.hideTracksWhenNotNeeded,K=this.getValues();if((0,v.default)()){var Z=K.scrollLeft,X=K.clientWidth,se=K.scrollWidth,ve=(0,C.default)(this.trackHorizontal),fe=this.getThumbHorizontalWidth(),me=Z/(se-X)*(ve-fe),ge={width:fe,transform:"translateX("+me+"px)"},Se=K.scrollTop,_e=K.clientHeight,oe=K.scrollHeight,N=(0,T.default)(this.trackVertical),z=this.getThumbVerticalHeight(),Q=Se/(oe-_e)*(N-z),re={height:z,transform:"translateY("+Q+"px)"};if(G){var ue={visibility:se>X?"visible":"hidden"},ie={visibility:oe>_e?"visible":"hidden"};(0,a.default)(this.trackHorizontal,ue),(0,a.default)(this.trackVertical,ie)}(0,a.default)(this.thumbHorizontal,ge),(0,a.default)(this.thumbVertical,re)}$&&$(K),typeof F=="function"&&F(K)}},{key:"render",value:function(){var F=this,H=(0,v.default)(),$=this.props,G=$.renderView,K=$.renderTrackHorizontal,Z=$.renderTrackVertical,X=$.renderThumbHorizontal,se=$.renderThumbVertical,ve=$.tagName,fe=$.autoHide,me=$.autoHideDuration,ge=$.universal,Se=$.autoHeight,_e=$.autoHeightMin,oe=$.autoHeightMax,N=$.style,z=$.children,Q=S($,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),re=this.state.didMountUniversal,ue=t({},x.containerStyleDefault,Se&&t({},x.containerStyleAutoHeight,{minHeight:_e,maxHeight:oe}),N),ie=t({},x.viewStyleDefault,{marginRight:H?-H:0,marginBottom:H?-H:0},Se&&t({},x.viewStyleAutoHeight,{minHeight:(0,p.default)(_e)?"calc("+_e+" + "+H+"px)":_e+H,maxHeight:(0,p.default)(oe)?"calc("+oe+" + "+H+"px)":oe+H}),Se&&ge&&!re&&{minHeight:_e,maxHeight:oe},ge&&!re&&x.viewStyleUniversalInitial),be={transition:"opacity "+me+"ms",opacity:0},De=t({},x.trackHorizontalStyleDefault,fe&&be,(!H||ge&&!re)&&{display:"none"}),we=t({},x.trackVerticalStyleDefault,fe&&be,(!H||ge&&!re)&&{display:"none"});return(0,s.createElement)(ve,t({},Q,{style:ue,ref:function(Be){F.container=Be}}),[(0,s.cloneElement)(G({style:ie}),{key:"view",ref:function(Be){F.view=Be}},z),(0,s.cloneElement)(K({style:De}),{key:"trackHorizontal",ref:function(Be){F.trackHorizontal=Be}},(0,s.cloneElement)(X({style:x.thumbHorizontalStyleDefault}),{ref:function(Be){F.thumbHorizontal=Be}})),(0,s.cloneElement)(Z({style:we}),{key:"trackVertical",ref:function(Be){F.trackVertical=Be}},(0,s.cloneElement)(se({style:x.thumbVerticalStyleDefault}),{ref:function(Be){F.thumbVertical=Be}}))])}}]),W}(s.Component);e.default=I,I.propTypes={onScroll:l.default.func,onScrollFrame:l.default.func,onScrollStart:l.default.func,onScrollStop:l.default.func,onUpdate:l.default.func,renderView:l.default.func,renderTrackHorizontal:l.default.func,renderTrackVertical:l.default.func,renderThumbHorizontal:l.default.func,renderThumbVertical:l.default.func,tagName:l.default.string,thumbSize:l.default.number,thumbMinSize:l.default.number,hideTracksWhenNotNeeded:l.default.bool,autoHide:l.default.bool,autoHideTimeout:l.default.number,autoHideDuration:l.default.number,autoHeight:l.default.bool,autoHeightMin:l.default.oneOfType([l.default.number,l.default.string]),autoHeightMax:l.default.oneOfType([l.default.number,l.default.string]),universal:l.default.bool,style:l.default.object,children:l.default.node},I.defaultProps={renderView:E.renderViewDefault,renderTrackHorizontal:E.renderTrackHorizontalDefault,renderTrackVertical:E.renderTrackVerticalDefault,renderThumbHorizontal:E.renderThumbHorizontalDefault,renderThumbVertical:E.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}(fO)),fO}var OO;function Ste(){return OO||(OO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=Cte(),n=r(t);function r(o){return o&&o.__esModule?o:{default:o}}e.default=n.default,e.Scrollbars=n.default}(hO)),hO}var kte=Ste();const Tte="_loader_1uppi_1",Ete="_caption_1uppi_7",Zc={loader:Tte,caption:Ete},Ate=e=>{const{className:t="",caption:n="",isLoading:r=!1}=e,o=Je(Zc["loader-two-dots"],{[Zc["loader-two-dots--inactive"]]:!r},t),i=Je(Zc.loader,Zc["loader-two-dots-indicator"]),a=Je(Zc.caption);return A.jsx("div",{className:o,children:r&&A.jsx("div",{"data-testid":"loader-component",className:i,children:n&&A.jsx("div",{className:a,children:A.jsx("span",{children:n})})})})},Ote="_clickable_19yrx_1",Rte="_disabled_19yrx_5",RO={clickable:Ote,disabled:Rte},lp=()=>{},Dr=e=>{const[t,n]=Y.useState(!1),{className:r="",disabled:o=!1,name:i,hoverSuffix:a="",onClick:s=lp,onMouseEnter:c=lp,onMouseLeave:l=lp,title:d=""}=e,p=O=>{t||n(!0),c(O)},f=O=>{t&&n(!1),l(O)},v={top:"auto"},b=!o&&t&&a?`${i}${a}`:i,_=Je("app-icon",`app-icon--${b}`),y=Je("app-icon__svg"),C=Je(_,r,{[RO.clickable]:s!==lp,[RO.disabled]:o}),k=e,{dataTestId:T}=k,x=Dn(k,["dataTestId"]),E=de({disabled:o,onClick:s},x);return d&&!o&&(E.title=d),delete E.hoverSuffix,A.jsx("span",$e(de({},E),{className:C,onMouseEnter:p,onMouseLeave:f,"data-testid":T,children:A.jsxs("svg",{className:y,style:v,children:[A.jsx("use",{xlinkHref:`#${b}`}),A.jsx("symbol",{id:"general-arrow-down",viewBox:"0 0 24 24",children:A.jsx("path",{fill:"currentColor",d:"M12 13.84l3.174-2.719a.5.5 0 0 1 .65.76l-3.5 2.998a.5.5 0 0 1-.65 0l-3.5-2.998a.5.5 0 1 1 .65-.76L12 13.841z"})}),A.jsx("symbol",{id:"general-vi-small-white",viewBox:"0 0 24 24",children:A.jsx("path",{fill:"currentColor",d:"M8.354 11.646l-.708.708 3.418 3.417 5.343-7.48-.814-.582-4.657 6.52z"})})]})}))},Dte="_sharedComponentsInputRadioButton_195lt_1",Mte="_disabled_195lt_15",DO={sharedComponentsInputRadioButton:Dte,disabled:Mte},Pte=({checked:e,text:t,disabled:n=!1,inline:r=!1,title:o="",name:i="",value:a,onChange:s,preventClick:c,inputRadioButtonClassName:l,className:d,textClassName:p,dataTestId:f=void 0})=>{const v=de({disabled:n,name:i,value:a},o&&!n&&{title:o}),b=y=>{if(c){y.preventDefault(),y.stopPropagation();return}s(y)},_=Je("custom-radiobtn",{"custom-radiobtn--inline":r,[DO.disabled]:n},d);return A.jsx("div",{className:_,children:A.jsxs("label",{className:"custom-radiobtn__label",children:[A.jsxs("div",{className:Je(DO.sharedComponentsInputRadioButton,l,{}),children:[A.jsx("input",de({className:"custom-radiobtn__input",type:"radio",onChange:b,checked:e,"data-testid":f},v)),A.jsx("span",{className:"custom-radiobtn__icon"})]}),A.jsx("span",{className:Je("custom-radiobtn__text",p),children:t})]})})},Ite=({checked:e,onChange:t,className:n="",disabled:r=!1,inline:o=!1,text:i=""})=>{const a={checked:e,disabled:r,onChange:t},s="custom-togglebtn",c=Je(s,{[`${s}--inline`]:o},n),l=`${s}__icon`;return A.jsx("div",{className:c,children:A.jsxs("label",{className:`${s}__label`,children:[A.jsx("input",de({type:"checkbox",className:`${s}__input`},a)),A.jsx("span",{className:l}),i&&A.jsx("span",{className:`${s}__text`,children:i})]})})},Nte="_transparent_i81lr_1",Lte="_icon_i81lr_12",jte="_disabled_i81lr_17",Fte="_sharedComponentsInputCheckbox_i81lr_27",cp={transparent:Nte,icon:Lte,disabled:jte,sharedComponentsInputCheckbox:Fte},Bte=e=>{const t=e,{className:n,disabled:r,inline:o,text:i,textClassName:a,title:s,transparent:c,dataTestId:l,iconName:d,onDescriptionClick:p,inputCheckboxClassName:f}=t,v=Dn(t,["className","disabled","inline","text","textClassName","title","transparent","dataTestId","iconName","onDescriptionClick","inputCheckboxClassName"]),b=de({disabled:r},v);s&&!r&&(b.title=s);const _="custom-checkbox",y=Je(_,{"custom-checkbox--inline":o,[cp.disabled]:r},n),C=Je(`${_}__icon`,"app-icon app-icon--form-checkbox-mark",{[cp.transparent]:c}),k=Je(`${_}__text`,a),T=p?x=>{p(),x.preventDefault()}:void 0;return A.jsx("div",{className:y,children:A.jsxs("label",{className:`${_}__label`,children:[A.jsxs("div",{className:Je(cp.sharedComponentsInputCheckbox,f),children:[A.jsx("input",de({type:"checkbox",className:`${_}__input`,"data-testid":l},b)),A.jsx("span",{className:C,children:A.jsx("svg",{className:"app-icon__svg",children:A.jsx("use",{xlinkHref:"#form-checkbox-mark"})})})]}),d&&A.jsx(Dr,{name:d,className:cp.icon,onClick:T}),A.jsx("span",{className:k,onClick:T,children:i})]})})},Hte="_container_v8yrt_7",$te="_disabled_v8yrt_27",zte="_groupHeader_v8yrt_31",Wte="_isDrill_v8yrt_36",Ute="_separator_v8yrt_45",qte="_noIcon_v8yrt_48",Yte="_item_v8yrt_52",Vte="_checked_v8yrt_52",Gte="_radio_v8yrt_62",Qte="_checkbox_v8yrt_68",Jte="_icon_v8yrt_74",Zte="_itemType_v8yrt_77",Kte="_nestedType_v8yrt_86",Xte="_nestedIcon_v8yrt_90",ene="_menuItemText_v8yrt_93",tne="_separateGroup_v8yrt_99",nne="_itemCheckBox_v8yrt_103",rne="_itemRadioButton_v8yrt_108",one="_scrollbar_v8yrt_113",ine="_itemContainer_v8yrt_120",ane="_inlineConfirmation_v8yrt_125",sne="_menuItemTooltip_v8yrt_129",lne="_toggleButtonMenu_v8yrt_138",cne="_loader_v8yrt_146",En={container:Hte,disabled:$te,groupHeader:zte,isDrill:Wte,separator:Ute,noIcon:qte,item:Yte,checked:Vte,radio:Gte,checkbox:Qte,icon:Jte,itemType:Zte,nestedType:Kte,nestedIcon:Xte,menuItemText:ene,separateGroup:tne,itemCheckBox:nne,itemRadioButton:rne,scrollbar:one,itemContainer:ine,inlineConfirmation:ane,menuItemTooltip:sne,toggleButtonMenu:lne,loader:cne},su=Object.freeze({ITEM:"item",RADIO:"radio",CHECKBOX:"checkbox",TOGGLE:"toggle",NESTED:"nested"});class fL extends Y.Component{constructor(t){super(t),q(this,"renderRegularMenuItem",()=>{const{dataTestId:n,iconName:r,iconClass:o,isDrill:i}=this.props;return A.jsxs("span",{className:En.itemContainer,children:[r&&A.jsx(Dr,{name:r,className:o}),A.jsx("span",{"data-testid":n,className:Je(En.menuItemText,Ra.TEXT_PRIMARY),children:this.getContent()}),i&&A.jsx(Dr,{name:"general-arrow-right"})]})}),q(this,"renderMenuItem",()=>{const{tooltip:n,classNameTooltip:r,level:o}=this.props,i=this.renderRegularMenuItem();return n?A.jsx(tL,{overlay:A.jsx("div",{children:n}),placement:"right",overlayClassName:Je(r,En.menuItemTooltip),mouseLeaveDelay:0,align:{offset:[o?5:10,0]},children:i}):i}),this.state={inInlineConfirmation:!1}}getContent(){const{type:t,caption:n,subCaption:r,checked:o,selected:i}=this.props;switch(t){case su.RADIO:return A.jsx(Pte,{text:n,name:n,onChange:()=>null,value:n,checked:!!o,preventClick:!0});case su.CHECKBOX:return A.jsx(Bte,{title:n,text:n,onChange:()=>null,checked:!!o,className:En.itemCheckBox});case su.TOGGLE:return A.jsxs("div",{children:[A.jsx("span",{children:n}),A.jsx(Ite,{onChange:()=>null,className:En.toggleButtonMenu,checked:!!o})]});case su.NESTED:return A.jsxs("div",{className:En.nestedType,children:[A.jsx("div",{children:n}),A.jsx(Dr,{className:En.nestedIcon,name:"general-double-arrow-front"}),A.jsx("div",{children:r})]});default:return A.jsxs("div",{className:En.itemType,children:[n,i&&A.jsx(Dr,{name:"general-vi-small-white"})]})}}handleClick(t){t.stopPropagation();const{handleClick:n,disabled:r}=this.props;r||n()}render(){const{checked:t,className:n,iconName:r,handleOver:o,handleOut:i,disabled:a}=this.props,s=!1,c=Je(n,{[En.checked]:t,[En.noIcon]:!r||s,[En.disabled]:a,[Ra.TEXT_PRIMARY]:t,[Ra.TEXT_SECONDARY_HOVER]:!t&&!a,[Ra.TEXT_SECONDARY]:a});return A.jsx("li",{"data-menu-item":!0,className:c,onClick:this.handleClick.bind(this),onMouseOver:o,onMouseOut:i,children:this.renderMenuItem()})}}q(fL,"defaultProps",{className:""});const une="_container_v9uof_1",dne="_message_v9uof_9",pne="_buttons_v9uof_16",hne="_button_v9uof_16",fne="_confirm_v9uof_34",gne="_cancel_v9uof_39",ba={container:une,message:dne,buttons:pne,button:hne,confirm:fne,cancel:gne},mne=({message:e,title:t,onCancel:n,onConfirm:r})=>{const o=Je(ba.button,ba.confirm),i=Je(ba.button,ba.cancel);return A.jsxs("div",{className:ba.container,children:[A.jsx("div",{className:ba.title,children:t}),A.jsx("div",{className:Je(ba.message,Ra.TEXT_SECONDARY),children:e}),A.jsxs("div",{className:ba.buttons,children:[A.jsx("button",{className:o,onClick:r,children:"Yes"}),A.jsx("button",{className:i,onClick:n,children:"No"})]})]})};function vne(e,t){const n={};return e.reduce(function(r,o){const i=t(o);return r[i]||(r[i]=[]),r[i].push(o),r},n)}const MO=()=>{},gL=class extends Y.Component{constructor(e){super(e),q(this,"timeoutIn"),q(this,"handleClick",t=>{if(t.subItems||t.actionableComponent){this.clearTimeout(),this.state.activeSubMenu===t.id?this.closeSubMenu():this.setState({activeSubMenu:t.id});return}else if(t.confirmation&&!t.confirmation.inline){this.clearTimeout(),this.setState({activeSubMenu:t.id});return}const{onItemSelected:n}=this.props;n(t,t.value)}),q(this,"handleOver",t=>{this.clearTimeout(),this.setState({isHoverSubMenu:!1});const n=t.subItems||t.actionableComponent?t.id:null;this.timeoutIn=window.setTimeout(()=>{this.setState({activeSubMenu:n})},900)}),q(this,"handleOut",t=>{(t.subItems||t.actionableComponent)&&this.state.activeSubMenu&&this.clearTimeout()}),q(this,"onSubMenuMouseEnter",()=>{this.clearTimeout(),this.setState({isHoverSubMenu:!0})}),q(this,"onSubMenuMouseLeave",()=>{this.setState({isHoverSubMenu:!1})}),q(this,"closeSubMenu",()=>{this.setState({activeSubMenu:null})}),q(this,"onConfirm",t=>{const{onItemSelected:n}=this.props;this.closeSubMenu(),n(t)}),q(this,"renderMenuItem",t=>{const{onItemSelected:n,onRequestClose:r,level:o,classNameTooltip:i,zIndex:a,className:s}=this.props;let c=Je(En[t.type],{[En.isDrill]:t.subItems,[En.separator]:t.separator,fakeHover:t.checked,[En.groupHeader]:t.groupTitle});const l=p=>{const f=Je(t.iconClass,En.icon);return A.jsx(fL,{className:p,checked:t.checked,dataTestId:t.dataTestId,disabled:t.disabled,type:t.type,caption:t.caption,subCaption:t.subCaption,tooltip:t.tooltip,classNameTooltip:i,iconName:t.iconName,iconClass:f,isDrill:!!t.subItems||!!t.actionableComponent,level:o,selected:t.selected,handleClick:()=>this.handleClick(t),handleOver:()=>this.handleOver(t),handleOut:()=>this.handleOut(t)},t.id)};let d=t.subItems;if(d){const p=this.state.activeSubMenu===t.id;let f=this.handleClick;return c=Je(c,{fakeHover:p&&this.state.isHoverSubMenu}),t.value!==void 0&&(d=d.map(function(v){return $e(de({},v),{checked:v.value===t.value})}),f=v=>n(t,v.value)),A.jsx(mu,{visible:p,level:1,mask:!1,trigger:[],placement:"rightTop",align:{offset:[0,0]},overlay:()=>A.jsx(gL,{items:d||[],className:s,onItemSelected:f,onMouseEnter:this.onSubMenuMouseEnter,scrollbarProps:{className:t.subItemScrollbarClassName},level:(o||0)+1,zIndex:(a||1)+1}),onRequestClose:r,zIndex:(a||1)+1,children:l(c)},t.id)}else if(t.actionableComponent){const{componentProps:p}=t.actionableComponent,f=t.actionableComponent.component,v=this.state.activeSubMenu===t.id;return A.jsx(mu,{visible:v,level:1,mask:!1,trigger:[],placement:"rightTop",align:{offset:[10,0]},overlay:()=>A.jsx(f,$e(de({},p),{onRequestClose:r})),onRequestClose:r,children:l(c)},t.id)}else if(t.confirmation&&!t.confirmation.inline){const p=t.confirmation,f=this.state.activeSubMenu===t.id;return A.jsx(mu,{visible:f,level:1,mask:!0,trigger:[],placement:"rightBottom",align:{offset:[10,0]},overlay:()=>A.jsx(mne,{title:p.title,message:p.message,onCancel:this.closeSubMenu,onConfirm:()=>this.onConfirm(t)}),onRequestClose:this.closeSubMenu,children:l(c)},t.id)}return l(c)}),this.state={activeSubMenu:null,isHoverSubMenu:!1},this.timeoutIn=null}componentWillUnmount(){this.clearTimeout()}clearTimeout(){this.timeoutIn&&(clearTimeout(this.timeoutIn),this.timeoutIn=null)}getSeparateGroups(e){const t=vne(e,r=>r.groupId||""),n=Object.values(t);return n.slice(1).forEach(r=>r[0].separator=!0),n}render(){const e=this.props,{items:t,className:n,onMouseEnter:r,scrollbarProps:o}=e,i=o,{className:a}=i,s=Dn(i,["className"]),{width:c,isLoading:l}=e;let d=t.filter(_=>!_.hidden);d=d.map((_,y)=>(_.separator&&!d[y-1]&&(_.separator=!1),_));const p=Je(En.container,n),f=Je(En.scrollbar,a),v=c?{width:`${c}px`,minWidth:"inherit"}:{},b=l?En.loader:"";return A.jsx("div",{className:p,onMouseEnter:r,style:v,children:A.jsxs(kte.Scrollbars,$e(de({className:f},s),{hideTracksWhenNotNeeded:!0,children:[this.getSeparateGroups(d).map((_,y)=>A.jsx("div",{className:En.separateGroup,children:_.map(this.renderMenuItem)},y)),A.jsx("div",{className:b,children:A.jsx(Ate,{isLoading:l})})]}))})}};let mL=gL;q(mL,"defaultProps",{onMouseEnter:MO,onRequestClose:MO,scrollbarProps:{},level:0,isLoading:!1,zIndex:1});const bne="#2c3342",yne="#f4f4f8",wne="#dee1e7",_ne="#fff",xne="_component_lx560_8",Cne="_searchIcon_lx560_13",Sne="_large_lx560_19",kne="_clearIcon_lx560_22",Tne="_clearIconHidden_lx560_34",Ene="_passwordVisibilityIcon_lx560_43",Ane="_customIcon_lx560_54",One="_isLeft_lx560_59",Rne="_input_lx560_66",Dne="_withLeftIcon_lx560_76",Tr={loginDarkColor:bne,darkBtnHoverColor:yne,greyHoverColor:wne,defaultBackgroundColor:_ne,component:xne,searchIcon:Cne,large:Sne,clearIcon:kne,clearIconHidden:Tne,passwordVisibilityIcon:Ene,customIcon:Ane,isLeft:One,input:Rne,withLeftIcon:Dne},Mne=e=>{const{className:t,inputClassName:n,onChange:r,onClicked:o,onBlur:i=()=>{},placeholder:a,search:s,dataTestId:c,defaultValue:l,value:d,autoFocus:p,clearable:f,password:v,disabled:b=!1,size:_,icon:y,trimInput:C,ariaLabel:k="input"}=e,[T,x]=Y.useState(l||d||""),[E,O]=Y.useState(!1),S=Y.useRef(null),{name:R="",placement:D}=y||{};return Y.useEffect(()=>{x(d||"")},[d]),A.jsxs("div",{className:Je(Tr.component,t),children:[s&&A.jsx(Dr,{className:Je(Tr.searchIcon,{[Tr.large]:_==="large"}),name:"general-search-small"}),A.jsx("input",{className:Je(Tr.input,n,{[Tr.withLeftIcon]:s||y&&D==="left",[Tr.large]:_==="large"}),placeholder:a,disabled:b,onChange:P=>{r(C?P.target.value.trim():P.target.value),x(P.target.value)},onClick:o,onBlur:i,"data-testid":c,defaultValue:l,value:d!=null?d:T,autoFocus:p,type:v&&!E?"password":"text",ref:S,"aria-label":k}),f&&!v&&!y&&A.jsx(Dr,{className:Je(Tr.clearIcon,{[Tr.clearIconHidden]:T==="",[Tr.large]:_==="large"}),name:"general-x",onClick:()=>{x(""),r("")},onMouseDown:P=>P.preventDefault()}),v&&A.jsx(Dr,{className:Je(Tr.passwordVisibilityIcon,{[Tr.large]:_==="large"}),name:E?"general-unhide":"general-show",onClick:()=>{O(!E)},onMouseDown:P=>P.preventDefault()}),y&&!f&&!v&&A.jsx(Dr,{className:Je(Tr.customIcon,{[Tr.large]:_==="large",[Tr.isLeft]:D==="left"}),name:R})]})},Pne=136,Ine="_searchInputWrapper_otzmq_1",Nne={searchInputWrapper:Ine},PO=()=>{},Lne=Y.forwardRef(({width:e=Pne,onClick:t=PO,inputProps:n={onChange:PO},className:r=""},o)=>{const i=Je(r||Nne.searchInputWrapper);return A.jsx("div",{ref:o,style:{width:e},className:i,"data-testid":"search_input_container",children:A.jsx(Mne,de({onClicked:t},n))})}),jne="#2c3342",Fne="#f4f4f8",Bne="#dee1e7",Hne="#fff",$ne="_dropdownButton_xulrt_21",zne="_inlineVariant_xulrt_30",Wne="_open_xulrt_37",Une="_disabled_xulrt_43",qne="_selectedIcon_xulrt_48",Yne="_chosenTitle_xulrt_51",Vne="_clickIcon_xulrt_58",_s={loginDarkColor:jne,darkBtnHoverColor:Fne,greyHoverColor:Bne,defaultBackgroundColor:Hne,dropdownButton:$ne,inlineVariant:zne,open:Wne,disabled:Une,selectedIcon:qne,chosenTitle:Yne,clickIcon:Vne},Gne=({selectedItem:e,width:t,dropDownButtonClasses:n,selectedShowIcon:r=!0,placeholder:o=""})=>{const{caption:i,iconName:a}=e||{};return A.jsxs("div",{className:n,title:i,style:t?{width:t,minWidth:"inherit"}:{},children:[r&&a&&A.jsx(Dr,{className:_s.selectedIcon,name:a}),A.jsx("div",{className:_s.chosenTitle,children:i||o}),A.jsx("div",{className:_s.clickIcon,children:A.jsx(Dr,{name:"general-arrow-down"})})]})},Qne=(e,t,n,r)=>{const[o,i]=Y.useState($e(de({},n),{value:t==null?void 0:t.caption})),a=l=>{l.stopPropagation()},s=l=>{n==null||n.onChange(l),i($e(de({},n),{value:l}))},c=()=>{var l;const d=(l=r==null?void 0:r.current)==null?void 0:l.getElementsByTagName("input")[0];d==null||d.select()};return Y.useEffect(()=>{e?(i($e(de({},n),{value:t==null?void 0:t.caption})),c()):n==null||n.onChange("")},[e]),Y.useEffect(()=>{e&&o.value!==(n==null?void 0:n.value)&&c()},[o.value]),{handlers:{handleOnSearchInputClick:a,handleOnSearchInputChange:s},inputProps:o}},Jne=({items:e=[],selectedShowIcon:t=!0,placeholder:n="",disabled:r,selectedItemId:o,width:i,inlineVariant:a,classNameDropdown:s,classNameButton:c,classNameSearch:l,searchInputProps:d,isOpen:p=!1})=>{const f=e.find(k=>k.id===o),v=Y.useRef(null),{inputProps:b,handlers:{handleOnSearchInputClick:_,handleOnSearchInputChange:y}}=Qne(p,f,d,v),C=Je(c,_s.dropdownButton,{[_s.disabled]:r,[_s.open]:p,[_s.inlineVariant]:a},s);return A.jsx(A.Fragment,{children:d&&p&&!r?A.jsx(Lne,{ref:v,width:i,onClick:_,inputProps:$e(de({},b),{onChange:y}),className:l}):A.jsx(Gne,{selectedItem:f,width:i,placeholder:n,selectedShowIcon:t,dropDownButtonClasses:C})})},Zne=(e,t,n)=>{const[r,o]=Y.useState(t),i=()=>{n||o(!r)};return{handlers:{handleOnSelectItem:a=>{e(a),i()},handleDropdownClick:i},isOpen:r}},Kne="_menu_1lxhu_1",Xne={menu:Kne},ere=()=>{},tre=Y.forwardRef(({bubblePopoverMouseEvents:e=!1,items:t=[],onSelectItem:n=ere,popoverOverlayLevel:r=0,selectedShowIcon:o=!0,mask:i=!0,placeholder:a="",placement:s="bottomLeft",disabled:c=!1,selectedItemId:l,width:d,scrollbarProps:p,classNameMenu:f,inlineVariant:v,classNameDropdown:b,classNameButton:_,classNameSearch:y,classNameTooltip:C,zIndex:k,searchInputProps:T,open:x=!1,isLoading:E=!1},O)=>{const S=v?12:0,R=t.map(j=>({id:j.id,caption:j.caption||j.id,type:su.ITEM,iconName:j.iconName,iconClass:j.iconClass,selected:j.id===l,tooltip:j.tooltip,disabled:j.disabled})),{isOpen:D,handlers:{handleOnSelectItem:P,handleDropdownClick:I}}=Zne(n,x,c);return A.jsx("div",{ref:O,"data-testid":"popover_container",children:A.jsx(mu,{zIndex:k,bubbleMouseEvents:e,trigger:["click"],visible:D,placement:s,overlay:()=>{const j=Je(Xne.menu,Ra.SISENSE_NAMESPACE,f);return A.jsx(mL,{items:R,onItemSelected:P,className:j,width:d,scrollbarProps:p,isLoading:E,classNameTooltip:C})},level:r,onVisibleChange:I,onRequestClose:I,align:{offset:[0,S]},mask:i,children:A.jsx("div",{children:A.jsx(Jne,{isOpen:D,items:t,selectedShowIcon:o,placeholder:a,width:d,disabled:c,classNameButton:_,classNameDropdown:b,classNameSearch:y,inlineVariant:v,searchInputProps:T,selectedItemId:l})})})})}),nre=e=>{const{direction:t,items:n,onChange:r}=e;return A.jsx(tre,{classNameDropdown:"direction-selector",classNameMenu:"sis-scope direction-selector__menu",items:n,selectedItemId:t,onSelectItem:o=>{r(o.id)},mask:!1,scrollbarProps:{style:{marginBottom:"-8px"}}})};function rre(e){return $t("PrivateSwitchBase",e)}jt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ore=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],ire=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${ot(o)}`],input:["input"]};return qt(i,rre,t)},are=ze(Bf)(({ownerState:e})=>te({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),sre=ze("input",{shouldForwardProp:Mo})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),vL=B.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:c=!1,edge:l=!1,icon:d,id:p,inputProps:f,inputRef:v,name:b,onBlur:_,onChange:y,onFocus:C,readOnly:k,required:T=!1,tabIndex:x,type:E,value:O}=e,S=We(e,ore),[R,D]=Cu({controlled:r,default:!!a,name:"SwitchBase",state:"checked"}),P=Df(),I=K=>{C&&C(K),P&&P.onFocus&&P.onFocus(K)},j=K=>{_&&_(K),P&&P.onBlur&&P.onBlur(K)},W=K=>{if(K.nativeEvent.defaultPrevented)return;const Z=K.target.checked;D(Z),y&&y(K,Z)};let F=s;P&&typeof F=="undefined"&&(F=P.disabled);const H=E==="checkbox"||E==="radio",$=te({},e,{checked:R,disabled:F,disableFocusRipple:c,edge:l}),G=ire($);return A.jsxs(are,te({component:"span",className:Xe(G.root,i),centerRipple:!0,focusRipple:!c,disabled:F,tabIndex:null,role:void 0,onFocus:I,onBlur:j,ownerState:$,ref:t},S,{children:[A.jsx(sre,te({autoFocus:n,checked:r,defaultChecked:a,className:G.input,disabled:F,id:H?p:void 0,name:b,onChange:W,readOnly:k,ref:v,required:T,ownerState:$,tabIndex:x,type:E},E==="checkbox"&&O===void 0?{}:{value:O},f)),R?o:d]}))});process.env.NODE_ENV!=="production"&&(vL.propTypes={autoFocus:g.bool,checked:g.bool,checkedIcon:g.node.isRequired,classes:g.object,className:g.string,defaultChecked:g.bool,disabled:g.bool,disableFocusRipple:g.bool,edge:g.oneOf(["end","start",!1]),icon:g.node.isRequired,id:g.string,inputProps:g.object,inputRef:Ro,name:g.string,onBlur:g.func,onChange:g.func,onFocus:g.func,readOnly:g.bool,required:g.bool,sx:g.object,tabIndex:g.oneOfType([g.number,g.string]),type:g.string.isRequired,value:g.any});const lre=vL,cre=Ei(A.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),ure=Ei(A.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),dre=Ei(A.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function pre(e){return $t("MuiCheckbox",e)}const hre=jt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Gb=hre,fre=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],gre=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${ot(r)}`,`size${ot(o)}`]},a=qt(i,pre,t);return te({},t,a)},mre=ze(lre,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ot(n.size)}`],n.color!=="default"&&t[`color${ot(n.color)}`]]}})(({theme:e,ownerState:t})=>te({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qt.alpha(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Gb.checked}, &.${Gb.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Gb.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),vre=A.jsx(ure,{}),bre=A.jsx(cre,{}),yre=A.jsx(dre,{}),bL=B.forwardRef(function(e,t){var n,r;const o=Zt({props:e,name:"MuiCheckbox"}),{checkedIcon:i=vre,color:a="primary",icon:s=bre,indeterminate:c=!1,indeterminateIcon:l=yre,inputProps:d,size:p="medium",className:f}=o,v=We(o,fre),b=c?l:s,_=c?l:i,y=te({},o,{color:a,indeterminate:c,size:p}),C=gre(y);return A.jsx(mre,te({type:"checkbox",inputProps:te({"data-indeterminate":c},d),icon:B.cloneElement(b,{fontSize:(n=b.props.fontSize)!=null?n:p}),checkedIcon:B.cloneElement(_,{fontSize:(r=_.props.fontSize)!=null?r:p}),ownerState:y,ref:t,className:Xe(C.root,f)},v,{classes:C}))});process.env.NODE_ENV!=="production"&&(bL.propTypes={checked:g.bool,checkedIcon:g.node,classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["default","primary","secondary","error","info","success","warning"]),g.string]),defaultChecked:g.bool,disabled:g.bool,disableRipple:g.bool,icon:g.node,id:g.string,indeterminate:g.bool,indeterminateIcon:g.node,inputProps:g.object,inputRef:Ro,onChange:g.func,required:g.bool,size:g.oneOfType([g.oneOf(["medium","small"]),g.string]),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),value:g.any});const wre=bL,_re=Wa({components:{MuiCheckbox:{styleOverrides:{root:{width:"28px",height:"28px","&.Mui-disabled":{opacity:.5},"&:hover":{backgroundColor:mt.StInteractionColors.defaultHover},"& .MuiSvgIcon-root":{fontSize:14,fill:mt.StUiColors.default}}}}}}),xre=Y.forwardRef((e,t)=>{var n=e,{theme:r=_re,dataTestId:o}=n,i=Dn(n,["theme","dataTestId"]);return A.jsx(Bs,{theme:r,children:A.jsx(wre,de({"data-testid":o,ref:t},i))})}),Cre=e=>{const{title:t,fieldTypes:n,selected:r,onSettingsItemStateChange:o,subtotalsCaption:i}=e,[a,s]=Y.useState(r),c=e.direction||yn.ASC,l=()=>{s(!a),o({title:t,selected:!a,direction:c})},d=a===!1?null:A.jsx(nre,{direction:c,items:n,onChange:x=>{o({title:t,selected:a,direction:x})}}),p=Y.useRef(null),f=Y.useRef(null),[v,b]=Y.useState(!1),_=()=>{const x=p.current,E=f.current;x===null||E===null||x.offsetWidth<E.offsetWidth&&b(!0)},y=()=>{const x=p.current,E=f.current;x===null||E===null||x.offsetWidth<E.offsetWidth&&b(!1)},C=()=>{s(!a),o({title:t,selected:!a,direction:c})},[k,T]=Y.useState(!1);return A.jsxs("div",{className:"settings-item",children:[A.jsxs("div",{className:"checkbox-input",children:[A.jsx(xre,{checked:a,onChange:l}),A.jsxs("div",{className:"checkbox-input__label",tabIndex:0,role:"button","aria-pressed":"false",onClick:C,onKeyUp:C,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),children:[A.jsx(pL,{placement:"top",title:t,children:A.jsx("div",{ref:p,className:"checkbox-input__text-wrapper",onMouseEnter:_,onMouseLeave:y,children:A.jsx("span",{ref:f,children:t})})}),i]})]}),d]},t)};function yL(e){const t={[yn.ASC]:{[Ui.TEXT]:e.ascAZ,[Ui.NUMERIC]:e.asc19,[Ui.DATETIME]:e.asc19},[yn.DESC]:{[Ui.TEXT]:e.descZA,[Ui.NUMERIC]:e.desc91,[Ui.DATETIME]:e.desc91}};return function(n,r){return t[r][n]}}const ar=e=>e.getBoundingClientRect(),IO=(e,t)=>({get collidedTop(){return ar(e).top<ar(t).top},get collidedBottom(){return ar(e).bottom>ar(t).bottom},get collidedLeft(){return ar(e).left<ar(t).left},get collidedRight(){return ar(e).right>ar(t).right},get overflowTop(){return ar(t).top-ar(e).top},get overflowBottom(){return ar(e).bottom-ar(t).bottom},get overflowLeft(){return ar(t).left-ar(e).left},get overflowRight(){return ar(e).right-ar(t).right}}),Sre="_sharedComponentsButton_t1p0l_31",kre="_sharedComponentsButtonText_t1p0l_34",Tre="_btnSecondary_t1p0l_37",Qb={sharedComponentsButton:Sre,sharedComponentsButtonText:kre,btnSecondary:Tre},Ere=" ",bh=e=>{const t=e,{allowDisabledTitle:n,className:r,disabled:o,hoverSuffix:i,iconClassName:a,iconName:s,transparent:c,text:l,trailingIconName:d,title:p,dark:f,gray:v,secondary:b,dataTestId:_,ariaLabel:y="button"}=t,C=Dn(t,["allowDisabledTitle","className","disabled","hoverSuffix","iconClassName","iconName","transparent","text","trailingIconName","title","dark","gray","secondary","dataTestId","ariaLabel"]),k=Je("btn",{"btn--disabled":o,"btn--transp":c,"btn--dark":f,"btn--icon":!l,"btn--gray":v,[Qb.btnSecondary]:b},Qb.sharedComponentsButton,r),T=Je("btn__icon",a),x=s&&A.jsx(Dr,{className:T,name:s,disabled:o,hoverSuffix:i}),E=Je("btn__text",Qb.sharedComponentsButtonText),O=l&&A.jsx("span",{className:E,children:l}),S=x&&O&&Ere,R=d&&A.jsx(Dr,{className:T,name:d,disabled:o,hoverSuffix:i}),D=de({disabled:o,title:p&&(!o||n)?p:void 0},C);return A.jsxs("button",$e(de({},D),{className:k,"data-testid":_,"aria-label":y,children:[x,S,O,R]}))};bh.propTypes={allowDisabledTitle:g.bool,className:g.string,disabled:g.bool,hoverSuffix:g.string,iconClassName:g.string,iconName:g.string,onClick:g.func.isRequired,text:g.string,title:g.string,trailingIconName:g.string,transparent:g.bool,dark:g.bool,gray:g.bool};bh.defaultProps={allowDisabledTitle:!1};const Are=e=>{const{titleOfPopUp:t,currentSortingSettings:n,onSortingSettingsUpdate:r,onCrossIconClick:o,messages:i}=e,a=yL(i),[s,c]=Y.useState(n),l=()=>r(s),d=()=>{const T=l1(s,x=>{x.forEach(E=>{E.direction=null,E.selected=!1})});r(T)},p=T=>{const x=l1(s,E=>{const O=E.findIndex(({title:S})=>T.title===S);O!==-1&&(E[O].selected=T.selected,E[O].direction=T.direction,T.selected||(E[O].direction=null))});c(x)},f=s.map((T,x)=>{const{datatype:E,selected:O,direction:S}=T,{title:R}=T,D=x===s.length-1?null:A.jsx("span",{className:"subtotals-caption",children:i.subtotals}),P=[{caption:a(E,yn.ASC),id:yn.ASC},{caption:a(E,yn.DESC),id:yn.DESC}];return A.jsx(Cre,{title:R,fieldTypes:P,selected:O,direction:S,onSettingsItemStateChange:p,subtotalsCaption:D},R)}),v=n.some(T=>T.selected)?A.jsx(bh,{text:i.clearSorting,gray:!0,onClick:d}):null,b=Y.useRef(null),_=Y.useRef(null),y=Y.useRef(null),[C,k]=Y.useState({});return Y.useLayoutEffect(()=>{const T=b.current;if(T===null)return;const x=_.current;if(x===null)return;const E=y.current;if(E===null)return;const O=IO(x,T),S=IO(E,T);S.collidedBottom||O.collidedTop||S.collidedTop||O.collidedBottom?k({borderTop:"1px #E7E8EA solid",paddingTop:"16px"}):k({})},s.map(({selected:T})=>T)),A.jsx("div",{className:"sis-scope",children:A.jsxs("div",{className:"complex-sorting-settings",children:[A.jsx(hL,{className:"sorting-settings-header",prependedText:i.sortBy,hierarchy:t,onCrossIconClick:o}),A.jsxs("div",{ref:b,className:"complex-sorting-settings__body",children:[A.jsx("span",{ref:_,style:{fontWeight:600},children:i.selectToSort}),A.jsx("ul",{ref:y,className:"settings-checkboxes",children:f})]}),A.jsx("div",{className:"complex-sorting-settings__actions",style:C,children:A.jsxs("div",{className:"sp-buttons",children:[A.jsx(bh,{onClick:l,text:i.apply}),v]})})]})})},Ore="_item_fvqjc_1",Rre="_icon_fvqjc_10",Jb={item:Ore,icon:Rre},Dre=({items:e,className:t,onChange:n})=>A.jsx("div",{className:t,children:e.map(r=>A.jsxs("div",{className:Jb.item,onClick:()=>n(r.value),"data-testid":r.dataTestId,children:[A.jsx("span",{className:Jb.name,children:r.name}),r.checked&&A.jsx(Dr,{className:Jb.icon,name:"general-vi-small-white"})]},r.value))}),Mre=e=>{const{titleOfPopUp:t,currentSortingSettings:n,onSortingSettingsUpdate:r,messages:o}=e,i=yL(o),{datatype:a,direction:s}=n,c=l=>{const d=l1(n,p=>{p.selected=!0,p.direction=l});r(d)};return A.jsx("div",{className:"sis-scope",children:A.jsxs("div",{className:"simple-sorting-settings",children:[A.jsx(hL,{className:"sorting-settings-header",prependedText:`${o.sort} - `,hierarchy:t}),A.jsx("div",{className:"simple-sorting-settings__actions",children:A.jsx(Dre,{styles:{margin:"16px"},onChange:c,items:[{name:`${o.sort} ${i(a,yn.ASC)}`,value:yn.ASC,checked:s===yn.ASC,dataTestId:"sort-ascending"},{name:`${o.sort} ${i(a,yn.DESC)}`,value:yn.DESC,checked:s===yn.DESC,dataTestId:"sort-descending"}]})})]})})};function Pre(e){let t=e;const n=[];for(;t.content&&typeof t.content!=typeof B.Component?n.push(t.content):n.push(t.value),t.parent;)t=t.parent;return n.reverse()}const NO="queryStart",LO="queryEnd",Ire="loadingStart",Nre="loadingFinish",Lre="sortUpdate",yh="sortingSettingsChanged",jre="pageChange",Fre="emptyChange",Bre="totalHeightChange",Hre="domReady",$re="firstPageRendered",zre="totalWidgetRendered",up=0,jO={isFirstPageRendered:!1,isGrandTotalRowRendered:!1,isTotalRowsCountRendered:!1,isReceivedRowsCountCalculated:!1};class Wre{constructor(t,n,r=new Wu){q(this,"events"),q(this,"domElem"),q(this,"pivot"),q(this,"dataService"),q(this,"currentRowsTreeService"),q(this,"isLoadPageInProgress",!1),q(this,"isFirstPageRenderInProgress",!1),q(this,"onDataChunkReceivedThrottle"),q(this,"loadedItemsCount"),q(this,"totalItemsCount",0),q(this,"totalRecordsCount",0),q(this,"totalColumnsCount",0),q(this,"columnsCount",0),q(this,"limitReached",!1),q(this,"appearanceState",de({},jO)),q(this,"props"),q(this,"rootDom"),q(this,"onDataChunkReceived",o=>{this.onDataChunkReceivedThrottle(o)}),q(this,"onGrandChunkReceived",o=>{const{isPaginated:i}=this.props;i&&this.currentRowsTreeService&&!this.currentRowsTreeService.hasGrandTotals&&(this.currentRowsTreeService.extend(o),this.currentRowsTreeService.hasGrandTotals=!0,this.pivot&&this.pivot.addMore(this.currentRowsTreeService,!0)),this.setAppearanceState({isGrandTotalRowRendered:!0})}),q(this,"onTotalRowsChunkReceived",o=>{const{rowsCount:i,queryRowsCount:a,limitReached:s=!1}=o;this.updateProps({totalItemsCount:i,totalRecordsCount:a,limitReached:s}),this.setAppearanceState({isTotalRowsCountRendered:!0})}),q(this,"onTotalColumnsChunkReceived",o=>{const{columnsCount:i,totalColumnsCount:a}=o;this.columnsCount=i,this.totalColumnsCount=a,this.updateProps({columnsCount:i,totalColumnsCount:a})}),q(this,"onProgressError",o=>{this.emit(wp,o)}),q(this,"onSortingMetadataUpdate",o=>{const i=this.dataService?this.dataService.isSingleRowTree():!1;this.emit(Lre,o,{isSingleRowTree:i})}),q(this,"handleSortingSettingsChanged",(o,i,a)=>{if(!o||o.dir===void 0)return;const s=i&&i.valueNode?Kn(i.valueNode):void 0,c={measurePath:o.measurePath,dir:o.dir||j_(o),field:s?s.jaqlIndex:o.jaqlIndex},l=o.metadataType==="rows"&&o.jaqlIndex===c.field,d=this.dataService?this.dataService.isSingleRowTree():!1,p=l||d,f=Pre(o);p?this.showSimpleSortingPopup(c,a,d,f):this.showComplexSortingPopup(c,a,d,f)}),q(this,"onMoreLoadingFinish",()=>{this.hideLoading()}),q(this,"onPageChange",o=>{this.emit(jre),this.loadPageData(o.selected)}),q(this,"onItemsPerPageChange",o=>{this.updateProps({activePage:up,itemsPerPage:o})}),q(this,"onEmptyChange",o=>{this.emit(Fre,o)}),q(this,"onTotalHeightChange",o=>{this.emit(Bre,o)}),q(this,"onDomReady",()=>{this.emit(Hre)}),q(this,"onGridUpdated",()=>{this.isFirstPageRenderInProgress&&(this.isFirstPageRenderInProgress=!1,this.setAppearanceState({isFirstPageRendered:!0})),this.hideLoading()}),this.events=r,t&&(this.registerDataServiceListeners(t),this.dataService=t),this.props=de({className:"",width:800,height:400,isPaginated:!0,isAutoHeight:!1,itemsCount:0,loadedItemsCount:0,totalItemsCount:0,totalRecordsCount:0,limitReached:!1,totalColumnsCount:0,columnsCount:0,itemsPerPage:25,activePage:up,isFullWidth:!1,isFixedEnabled:!0,isAllDataLoaded:!1,getSortingPopupMessages:()=>({clearSorting:"Clear sorting",selectToSort:"Select column (level) to sort:",sortBy:"Sort by",sort:"Sort",subtotals:"(Subtotals)",apply:"Apply",cancel:"Cancel",ascAZ:"Ascending (A-Z)",descZA:"Descending (Z-A)",asc19:"Ascending (1-9)",desc91:"Descending (9-1)"}),paginationOptions:void 0,onGetInitialData:()=>{},onMoreLoadingFinish:this.onMoreLoadingFinish,onPageChange:this.onPageChange,onItemsPerPageChange:this.onItemsPerPageChange,onSortingSettingsChanged:this.handleSortingSettingsChanged,onSortingMetadataUpdate:this.onSortingMetadataUpdate,onEmptyChange:this.onEmptyChange,onTotalHeightChange:this.onTotalHeightChange,onGridUpdated:this.onGridUpdated,onDomReady:this.onDomReady},n),this.onDataChunkReceivedThrottle=tI(o=>{const{activePage:i}=this.props;let a=o;this.loadedItemsCount&&this.loadedItemsCount>o&&(a=this.loadedItemsCount),this.updateProps({itemsCount:a,activePage:i>-1?i:0})},500)}destroy(){if(this.onDataChunkReceivedThrottle.cancel(),this.dataService){const t=this.dataService;this.destroyDataServiceListeners(t)}if(this.domElem)try{this.rootDom.unmount()}catch(t){mr.unmountComponentAtNode(this.domElem)}this.currentRowsTreeService&&(this.currentRowsTreeService.destroy(),this.currentRowsTreeService=void 0),this.pivot=void 0}on(t,n){this.events.on(t,n)}off(t,n){this.events.removeListener(t,n)}emit(t,...n){const r=[t,...n];this.events.emit(...r)}render(t,n){this.domElem=t;const r=$e(de(de({},this.props),n),{ref:i=>this.pivot=i}),o=B.createElement(Bw,r,null);try{this.rootDom||(this.rootDom=Q8.createRoot(this.domElem)),this.rootDom.render(o)}catch(i){mr.render(o,this.domElem)}this.props=r}updateDataService(t){if(this.dataService){const n=this.dataService;this.destroyDataServiceListeners(n)}if(this.dataService=t,this.onDataChunkReceivedThrottle.cancel(),this.dataService){const n=this.dataService;this.resetAppearanceState(),this.registerDataServiceListeners(n)}}registerDataServiceListeners(t){t.on(lw,this.onDataChunkReceived),t.on(cw,this.onGrandChunkReceived),t.on(dw,this.onTotalRowsChunkReceived),t.on(pw,this.onTotalColumnsChunkReceived),t.on(wp,this.onProgressError)}destroyDataServiceListeners(t){t.off(lw,this.onDataChunkReceived),t.off(cw,this.onGrandChunkReceived),t.off(dw,this.onTotalRowsChunkReceived),t.off(pw,this.onTotalColumnsChunkReceived),t.off(wp,this.onProgressError)}getCurrentState(){return de({},this.props)}updateJaql(t){this.totalItemsCount=0,this.totalColumnsCount=0,this.totalRecordsCount=0,this.columnsCount=0,this.limitReached=!1,this.loadedItemsCount=void 0,this.updateProps({totalItemsCount:this.totalItemsCount,totalColumnsCount:this.totalColumnsCount,totalRecordsCount:this.totalRecordsCount,columnsCount:this.columnsCount,limitReached:this.limitReached}),this.loadInitData(t)}updateProps(t){if(!this.domElem)return;const n=$e(de(de({},this.props),t),{ref:i=>this.pivot=i}),r=nI(this.props,n);(typeof r.isPaginated!="undefined"||typeof r.itemsPerPage!="undefined")&&(this.totalItemsCount=0,this.totalRecordsCount=0,this.loadedItemsCount=void 0,this.loadInitData(void 0,n));const o=B.createElement(Bw,n,null);try{this.rootDom.render(o)}catch(i){mr.render(o,this.domElem)}this.props=n}loadInitData(t,n=this.props){var r,o;if(((o=(r=this.dataService)==null?void 0:r.getJaql())==null?void 0:o.queryGuid)===(t==null?void 0:t.queryGuid))return;const{dataService:i}=this,{isPaginated:a,itemsPerPage:s}=n,c=a?s:void 0;if(this.onDataChunkReceivedThrottle.cancel(),!i){this.pivot&&this.pivot.initialize(),this.currentRowsTreeService&&(this.currentRowsTreeService.destroy(),this.currentRowsTreeService=void 0);return}this.updateProps({itemsCount:0,totalItemsCount:0,totalColumnsCount:0,totalRecordsCount:0,columnsCount:0,activePage:up,isAllDataLoaded:!1,limitReached:!1}),this.currentRowsTreeService=void 0,this.isLoadPageInProgress=!1,this.isFirstPageRenderInProgress=!1,this.showLoading(),this.events.emit(NO),i.loadData(t,{pageSize:c,isPaginated:a}).then(({rowsTreeService:l,columnsTreeService:d,cornerTreeService:p,isLastPage:f,cellsMetadata:v})=>{this.events.emit(LO),this.loadedItemsCount!==null&&this.updateProps({itemsCount:this.loadedItemsCount,totalItemsCount:this.totalItemsCount,totalRecordsCount:this.totalRecordsCount,limitReached:this.limitReached,activePage:up,isAllDataLoaded:!0}),this.pivot&&(this.isFirstPageRenderInProgress=!0,this.pivot.initialize(l,d,p,{isLastPage:f,cellsMetadata:v}),this.currentRowsTreeService=l)}).catch(l=>{if(!(l instanceof Il))throw l}),i.loadAllData().then(l=>{this.totalItemsCount=l.totalItemsCount,this.loadedItemsCount=l.loadedRowsCount,this.totalRecordsCount=l.totalRecordsCount,this.limitReached=l.limitReached,l.columnsCount&&l.totalColumnsCount&&(this.columnsCount=l.columnsCount,this.totalColumnsCount=l.totalColumnsCount);const d=de({isAllDataLoaded:!0},l);this.updateProps(d),this.setAppearanceState({isReceivedRowsCountCalculated:!0})}).catch(l=>{if(!(l instanceof Il))throw l})}loadPageData(t){if(this.isLoadPageInProgress||!this.props.isPaginated)return;const{dataService:n}=this;if(!n){console.warn("DataService instance not defined");return}this.isLoadPageInProgress=!0,this.showLoading(),this.events.emit(NO),n.getSelectedPageData(t,this.props.itemsPerPage).then(({rowsTreeService:r,columnsTreeService:o,cornerTreeService:i,isLastPage:a,cellsMetadata:s})=>{this.events.emit(LO),this.isLoadPageInProgress=!1,this.pivot&&(this.pivot.initialize(r,o,i,{isLastPage:a,cellsMetadata:s}),this.currentRowsTreeService=r),this.updateProps({activePage:t})})}showLoading(){this.emit(Ire)}hideLoading(){this.emit(Nre)}showSimpleSortingPopup(t,n,r,o){const i=this.dataService&&this.dataService.getJaql();if(!i)return;const a=wn.getMetadataPanels(i),s=wn.getDataTypes(a),c=wn.mapWidgetJaqlToSimpleSortingSettings(a,t,s);if(c===void 0)return;const l=p=>{n.setSortingPopup(null),!tw(c,p)&&this.emit(yh,{type:"simple",settings:[p],sortDetails:t,isSingleRowTree:r})},d=B.createElement(Mre,{titleOfPopUp:o,currentSortingSettings:c,onSortingSettingsUpdate:l,messages:this.props.getSortingPopupMessages()});n.setSortingPopup(d)}showComplexSortingPopup(t,n,r,o){const i=this.dataService&&this.dataService.getJaql();if(!i)return;const a=wn.mapWidgetJaqlToComplexSortingSettings(i,t),s=l=>{n.setSortingPopup(null),!tw(a,l)&&this.emit(yh,{type:"complex",settings:l,sortDetails:t,isSingleRowTree:r})},c=B.createElement(Are,{titleOfPopUp:o,currentSortingSettings:a,onSortingSettingsUpdate:s,onCrossIconClick:()=>n.setSortingPopup(null),messages:this.props.getSortingPopupMessages()});n.setSortingPopup(c)}onAppearanceStateUpdated(t,n){!t.isFirstPageRendered&&n.isFirstPageRendered&&this.emit($re),!this.isTotallyRendered(t)&&this.isTotallyRendered(n)&&this.emit(zre)}setAppearanceState(t={}){const n=Object.freeze(de({},this.appearanceState)),r=Object.freeze(de(de({},this.appearanceState),t));this.onAppearanceStateUpdated(n,r),this.appearanceState=r}resetAppearanceState(){const t=Object.freeze(de({},this.appearanceState)),n=Object.freeze(de({},jO));this.onAppearanceStateUpdated(t,n),this.appearanceState=n}isTotallyRendered(t=this.appearanceState){const n=this.dataService&&this.dataService.getJaql()||{grandTotals:{rows:void 0}},r=!!(n.grandTotals&&n.grandTotals.rows);return t.isFirstPageRendered&&t.isTotalRowsCountRendered&&t.isReceivedRowsCountCalculated&&(!r||t.isGrandTotalRowRendered)}}var wh={},Ure={get exports(){return wh},set exports(e){wh=e}},Zb,FO;function wL(){if(FO)return Zb;FO=1;var e=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,t=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];Zb=function(o){var i=o,a=o.indexOf("["),s=o.indexOf("]");a!=-1&&s!=-1&&(o=o.substring(0,a)+o.substring(a,s).replace(/:/g,";")+o.substring(s,o.length));for(var c=e.exec(o||""),l={},d=14;d--;)l[t[d]]=c[d]||"";return a!=-1&&s!=-1&&(l.source=i,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=n(l,l.path),l.queryKey=r(l,l.query),l};function n(o,i){var a=/\/{2,9}/g,s=i.replace(a,"/").split("/");return(i.substr(0,1)=="/"||i.length===0)&&s.splice(0,1),i.substr(i.length-1,1)=="/"&&s.splice(s.length-1,1),s}function r(o,i){var a={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,c,l){c&&(a[c]=l)}),a}return Zb}var _h={},qre={get exports(){return _h},set exports(e){_h=e}},xh={},Yre={get exports(){return xh},set exports(e){xh=e}},Kb,BO;function Vre(){if(BO)return Kb;BO=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*365.25;Kb=function(l,d){d=d||{};var p=typeof l;if(p==="string"&&l.length>0)return i(l);if(p==="number"&&isNaN(l)===!1)return d.long?s(l):a(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function i(l){if(l=String(l),!(l.length>100)){var d=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(d){var p=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return p*o;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function a(l){return l>=r?Math.round(l/r)+"d":l>=n?Math.round(l/n)+"h":l>=t?Math.round(l/t)+"m":l>=e?Math.round(l/e)+"s":l+"ms"}function s(l){return c(l,r,"day")||c(l,n,"hour")||c(l,t,"minute")||c(l,e,"second")||l+" ms"}function c(l,d,p){if(!(l<d))return l<d*1.5?Math.floor(l/d)+" "+p:Math.ceil(l/d)+" "+p+"s"}return Kb}var HO;function Gre(){return HO||(HO=1,function(e,t){t=e.exports=r.debug=r.default=r,t.coerce=c,t.disable=a,t.enable=i,t.enabled=s,t.humanize=Vre(),t.instances=[],t.names=[],t.skips=[],t.formatters={};function n(l){var d=0,p;for(p in l)d=(d<<5)-d+l.charCodeAt(p),d|=0;return t.colors[Math.abs(d)%t.colors.length]}function r(l){var d;function p(){if(p.enabled){var f=p,v=+new Date,b=v-(d||v);f.diff=b,f.prev=d,f.curr=v,d=v;for(var _=new Array(arguments.length),y=0;y<_.length;y++)_[y]=arguments[y];_[0]=t.coerce(_[0]),typeof _[0]!="string"&&_.unshift("%O");var C=0;_[0]=_[0].replace(/%([a-zA-Z%])/g,function(T,x){if(T==="%%")return T;C++;var E=t.formatters[x];if(typeof E=="function"){var O=_[C];T=E.call(f,O),_.splice(C,1),C--}return T}),t.formatArgs.call(f,_);var k=p.log||t.log||console.log.bind(console);k.apply(f,_)}}return p.namespace=l,p.enabled=t.enabled(l),p.useColors=t.useColors(),p.color=n(l),p.destroy=o,typeof t.init=="function"&&t.init(p),t.instances.push(p),p}function o(){var l=t.instances.indexOf(this);return l!==-1?(t.instances.splice(l,1),!0):!1}function i(l){t.save(l),t.names=[],t.skips=[];var d,p=(typeof l=="string"?l:"").split(/[\s,]+/),f=p.length;for(d=0;d<f;d++)p[d]&&(l=p[d].replace(/\*/g,".*?"),l[0]==="-"?t.skips.push(new RegExp("^"+l.substr(1)+"$")):t.names.push(new RegExp("^"+l+"$")));for(d=0;d<t.instances.length;d++){var v=t.instances[d];v.enabled=t.enabled(v.namespace)}}function a(){t.enable("")}function s(l){if(l[l.length-1]==="*")return!0;var d,p;for(d=0,p=t.skips.length;d<p;d++)if(t.skips[d].test(l))return!1;for(d=0,p=t.names.length;d<p;d++)if(t.names[d].test(l))return!0;return!1}function c(l){return l instanceof Error?l.stack||l.message:l}}(Yre,xh)),xh}var $O;function Zf(){return $O||($O=1,function(e,t){t=e.exports=Gre(),t.log=o,t.formatArgs=r,t.save=i,t.load=a,t.useColors=n,t.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:s(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}};function r(c){var l=this.useColors;if(c[0]=(l?"%c":"")+this.namespace+(l?" %c":" ")+c[0]+(l?"%c ":" ")+"+"+t.humanize(this.diff),!!l){var d="color: "+this.color;c.splice(1,0,d,"color: inherit");var p=0,f=0;c[0].replace(/%[a-zA-Z%]/g,function(v){v!=="%%"&&(p++,v==="%c"&&(f=p))}),c.splice(f,0,d)}}function o(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch(l){}}function a(){var c;try{c=t.storage.debug}catch(l){}return!c&&typeof process!="undefined"&&"env"in process&&(c=process.env.DEBUG),c}t.enable(a());function s(){try{return window.localStorage}catch(c){}}}(qre,_h)),_h}var Xb,zO;function Qre(){if(zO)return Xb;zO=1;var e=wL(),t=Zf()("socket.io-client:url");Xb=n;function n(r,o){var i=r;o=o||typeof location!="undefined"&&location,r==null&&(r=o.protocol+"//"+o.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=o.protocol+r:r=o.host+r),/^(https?|wss?):\/\//.test(r)||(t("protocol-less url %s",r),typeof o!="undefined"?r=o.protocol+"//"+r:r="https://"+r),t("parse %s",r),i=e(r)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";var a=i.host.indexOf(":")!==-1,s=a?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+s+":"+i.port,i.href=i.protocol+"://"+s+(o&&o.port===i.port?"":":"+i.port),i}return Xb}var WO={},Ch={},Jre={get exports(){return Ch},set exports(e){Ch=e}},Sh={},Zre={get exports(){return Sh},set exports(e){Sh=e}},ey,UO;function Kre(){if(UO)return ey;UO=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*365.25;ey=function(l,d){d=d||{};var p=typeof l;if(p==="string"&&l.length>0)return i(l);if(p==="number"&&isNaN(l)===!1)return d.long?s(l):a(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function i(l){if(l=String(l),!(l.length>100)){var d=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(d){var p=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return p*o;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function a(l){return l>=r?Math.round(l/r)+"d":l>=n?Math.round(l/n)+"h":l>=t?Math.round(l/t)+"m":l>=e?Math.round(l/e)+"s":l+"ms"}function s(l){return c(l,r,"day")||c(l,n,"hour")||c(l,t,"minute")||c(l,e,"second")||l+" ms"}function c(l,d,p){if(!(l<d))return l<d*1.5?Math.floor(l/d)+" "+p:Math.ceil(l/d)+" "+p+"s"}return ey}var qO;function Xre(){return qO||(qO=1,function(e,t){t=e.exports=r.debug=r.default=r,t.coerce=c,t.disable=a,t.enable=i,t.enabled=s,t.humanize=Kre(),t.instances=[],t.names=[],t.skips=[],t.formatters={};function n(l){var d=0,p;for(p in l)d=(d<<5)-d+l.charCodeAt(p),d|=0;return t.colors[Math.abs(d)%t.colors.length]}function r(l){var d;function p(){if(p.enabled){var f=p,v=+new Date,b=v-(d||v);f.diff=b,f.prev=d,f.curr=v,d=v;for(var _=new Array(arguments.length),y=0;y<_.length;y++)_[y]=arguments[y];_[0]=t.coerce(_[0]),typeof _[0]!="string"&&_.unshift("%O");var C=0;_[0]=_[0].replace(/%([a-zA-Z%])/g,function(T,x){if(T==="%%")return T;C++;var E=t.formatters[x];if(typeof E=="function"){var O=_[C];T=E.call(f,O),_.splice(C,1),C--}return T}),t.formatArgs.call(f,_);var k=p.log||t.log||console.log.bind(console);k.apply(f,_)}}return p.namespace=l,p.enabled=t.enabled(l),p.useColors=t.useColors(),p.color=n(l),p.destroy=o,typeof t.init=="function"&&t.init(p),t.instances.push(p),p}function o(){var l=t.instances.indexOf(this);return l!==-1?(t.instances.splice(l,1),!0):!1}function i(l){t.save(l),t.names=[],t.skips=[];var d,p=(typeof l=="string"?l:"").split(/[\s,]+/),f=p.length;for(d=0;d<f;d++)p[d]&&(l=p[d].replace(/\*/g,".*?"),l[0]==="-"?t.skips.push(new RegExp("^"+l.substr(1)+"$")):t.names.push(new RegExp("^"+l+"$")));for(d=0;d<t.instances.length;d++){var v=t.instances[d];v.enabled=t.enabled(v.namespace)}}function a(){t.enable("")}function s(l){if(l[l.length-1]==="*")return!0;var d,p;for(d=0,p=t.skips.length;d<p;d++)if(t.skips[d].test(l))return!1;for(d=0,p=t.names.length;d<p;d++)if(t.names[d].test(l))return!0;return!1}function c(l){return l instanceof Error?l.stack||l.message:l}}(Zre,Sh)),Sh}var YO;function eoe(){return YO||(YO=1,function(e,t){t=e.exports=Xre(),t.log=o,t.formatArgs=r,t.save=i,t.load=a,t.useColors=n,t.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:s(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}};function r(c){var l=this.useColors;if(c[0]=(l?"%c":"")+this.namespace+(l?" %c":" ")+c[0]+(l?"%c ":" ")+"+"+t.humanize(this.diff),!!l){var d="color: "+this.color;c.splice(1,0,d,"color: inherit");var p=0,f=0;c[0].replace(/%[a-zA-Z%]/g,function(v){v!=="%%"&&(p++,v==="%c"&&(f=p))}),c.splice(f,0,d)}}function o(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch(l){}}function a(){var c;try{c=t.storage.debug}catch(l){}return!c&&typeof process!="undefined"&&"env"in process&&(c=process.env.DEBUG),c}t.enable(a());function s(){try{return window.localStorage}catch(c){}}}(Jre,Ch)),Ch}var c1={},toe={get exports(){return c1},set exports(e){c1=e}},VO;function fc(){return VO||(VO=1,function(e){e.exports=t;function t(r){if(r)return n(r)}function n(r){for(var o in t.prototype)r[o]=t.prototype[o];return r}t.prototype.on=t.prototype.addEventListener=function(r,o){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(o),this},t.prototype.once=function(r,o){function i(){this.off(r,i),o.apply(this,arguments)}return i.fn=o,this.on(r,i),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(r,o){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+r];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var a,s=0;s<i.length;s++)if(a=i[s],a===o||a.fn===o){i.splice(s,1);break}return i.length===0&&delete this._callbacks["$"+r],this},t.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var o=new Array(arguments.length-1),i=this._callbacks["$"+r],a=1;a<arguments.length;a++)o[a-1]=arguments[a];if(i){i=i.slice(0);for(var a=0,s=i.length;a<s;++a)i[a].apply(this,o)}return this},t.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]},t.prototype.hasListeners=function(r){return!!this.listeners(r).length}}(toe)),c1}var Kc={},ty,GO;function _L(){if(GO)return ty;GO=1;var e={}.toString;return ty=Array.isArray||function(t){return e.call(t)=="[object Array]"},ty}var ny,QO;function xL(){if(QO)return ny;QO=1,ny=r;var e=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",t=typeof ArrayBuffer=="function",n=function(o){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(o):o.buffer instanceof ArrayBuffer};function r(o){return e&&Buffer.isBuffer(o)||t&&(o instanceof ArrayBuffer||n(o))}return ny}var JO;function noe(){if(JO)return Kc;JO=1;var e=_L(),t=xL(),n=Object.prototype.toString,r=typeof Blob=="function"||typeof Blob!="undefined"&&n.call(Blob)==="[object BlobConstructor]",o=typeof File=="function"||typeof File!="undefined"&&n.call(File)==="[object FileConstructor]";Kc.deconstructPacket=function(s){var c=[],l=s.data,d=s;return d.data=i(l,c),d.attachments=c.length,{packet:d,buffers:c}};function i(s,c){if(!s)return s;if(t(s)){var l={_placeholder:!0,num:c.length};return c.push(s),l}else if(e(s)){for(var d=new Array(s.length),p=0;p<s.length;p++)d[p]=i(s[p],c);return d}else if(typeof s=="object"&&!(s instanceof Date)){var d={};for(var f in s)d[f]=i(s[f],c);return d}return s}Kc.reconstructPacket=function(s,c){return s.data=a(s.data,c),s.attachments=void 0,s};function a(s,c){if(!s)return s;if(s&&s._placeholder===!0){var l=typeof s.num=="number"&&s.num>=0&&s.num<c.length;if(l)return c[s.num];throw new Error("illegal attachments")}else if(e(s))for(var d=0;d<s.length;d++)s[d]=a(s[d],c);else if(typeof s=="object")for(var p in s)s[p]=a(s[p],c);return s}return Kc.removeBlobs=function(s,c){function l(f,v,b){if(!f)return f;if(r&&f instanceof Blob||o&&f instanceof File){d++;var _=new FileReader;_.onload=function(){b?b[v]=this.result:p=this.result,--d||c(p)},_.readAsArrayBuffer(f)}else if(e(f))for(var y=0;y<f.length;y++)l(f[y],y,f);else if(typeof f=="object"&&!t(f))for(var C in f)l(f[C],C,f)}var d=0,p=s;l(p),d||c(p)},Kc}var ZO;function Z_(){return ZO||(ZO=1,function(e){var t=eoe()("socket.io-parser"),n=fc(),r=noe(),o=_L(),i=xL();e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=a,e.Decoder=p;function a(){}var s=e.ERROR+'"encode error"';a.prototype.encode=function(y,C){if(t("encoding packet %j",y),e.BINARY_EVENT===y.type||e.BINARY_ACK===y.type)d(y,C);else{var k=c(y);C([k])}};function c(y){var C=""+y.type;if((e.BINARY_EVENT===y.type||e.BINARY_ACK===y.type)&&(C+=y.attachments+"-"),y.nsp&&y.nsp!=="/"&&(C+=y.nsp+","),y.id!=null&&(C+=y.id),y.data!=null){var k=l(y.data);if(k!==!1)C+=k;else return s}return t("encoded %j as %s",y,C),C}function l(y){try{return JSON.stringify(y)}catch(C){return!1}}function d(y,C){function k(T){var x=r.deconstructPacket(T),E=c(x.packet),O=x.buffers;O.unshift(E),C(O)}r.removeBlobs(y,k)}function p(){this.reconstructor=null}n(p.prototype),p.prototype.add=function(y){var C;if(typeof y=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");C=f(y),e.BINARY_EVENT===C.type||e.BINARY_ACK===C.type?(this.reconstructor=new b(C),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",C)):this.emit("decoded",C)}else if(i(y)||y.base64)if(this.reconstructor)C=this.reconstructor.takeBinaryData(y),C&&(this.reconstructor=null,this.emit("decoded",C));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+y)};function f(y){var C=0,k={type:Number(y.charAt(0))};if(e.types[k.type]==null)return _("unknown packet type "+k.type);if(e.BINARY_EVENT===k.type||e.BINARY_ACK===k.type){for(var T=C+1;y.charAt(++C)!=="-"&&C!=y.length;);var x=y.substring(T,C);if(x!=Number(x)||y.charAt(C)!=="-")throw new Error("Illegal attachments");k.attachments=Number(x)}if(y.charAt(C+1)==="/"){for(var T=C+1;++C;){var E=y.charAt(C);if(E===","||C===y.length)break}k.nsp=y.substring(T,C)}else k.nsp="/";var O=y.charAt(C+1);if(O!==""&&Number(O)==O){for(var T=C+1;++C;){var E=y.charAt(C);if(E==null||Number(E)!=E){--C;break}if(C===y.length)break}k.id=Number(y.substring(T,C+1))}if(y.charAt(++C)){var S=v(y.substr(C)),R=S!==!1&&(k.type===e.ERROR||o(S));if(R)k.data=S;else return _("invalid payload")}return t("decoded %s as %j",y,k),k}function v(y){try{return JSON.parse(y)}catch(C){return!1}}p.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function b(y){this.reconPack=y,this.buffers=[]}b.prototype.takeBinaryData=function(y){if(this.buffers.push(y),this.buffers.length===this.reconPack.attachments){var C=r.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),C}return null},b.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function _(y){return{type:e.ERROR,data:"parser error: "+y}}}(WO)),WO}var u1={},roe={get exports(){return u1},set exports(e){u1=e}},dp={},kh={},KO={get exports(){return kh},set exports(e){kh=e}},XO;function ooe(){if(XO)return kh;XO=1;try{KO.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){KO.exports=!1}return kh}var eR,tR;function K_(){return tR||(tR=1,eR=function(){return typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")()}()),eR}var ry,nR;function X_(){if(nR)return ry;nR=1;var e=ooe(),t=K_();return ry=function(n){var r=n.xdomain,o=n.xscheme,i=n.enablesXDR;try{if(typeof XMLHttpRequest!="undefined"&&(!r||e))return new XMLHttpRequest}catch(a){}try{if(typeof XDomainRequest!="undefined"&&!o&&i)return new XDomainRequest}catch(a){}if(!r)try{return new t[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(a){}},ry}var vu={},ioe={get exports(){return vu},set exports(e){vu=e}},rR={},oR,iR;function aoe(){return iR||(iR=1,oR=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}),oR}var oy,aR;function soe(){if(aR)return oy;aR=1;var e={}.toString;return oy=Array.isArray||function(t){return e.call(t)=="[object Array]"},oy}var iy,sR;function CL(){if(sR)return iy;sR=1;var e=soe(),t=Object.prototype.toString,n=typeof Blob=="function"||typeof Blob!="undefined"&&t.call(Blob)==="[object BlobConstructor]",r=typeof File=="function"||typeof File!="undefined"&&t.call(File)==="[object FileConstructor]";iy=o;function o(i){if(!i||typeof i!="object")return!1;if(e(i)){for(var a=0,s=i.length;a<s;a++)if(o(i[a]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(i)||typeof ArrayBuffer=="function"&&i instanceof ArrayBuffer||n&&i instanceof Blob||r&&i instanceof File)return!0;if(i.toJSON&&typeof i.toJSON=="function"&&arguments.length===1)return o(i.toJSON(),!0);for(var c in i)if(Object.prototype.hasOwnProperty.call(i,c)&&o(i[c]))return!0;return!1}return iy}var lR,cR;function loe(){return cR||(cR=1,lR=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||r===0)return new ArrayBuffer(0);for(var o=new Uint8Array(e),i=new Uint8Array(n-t),a=t,s=0;a<n;a++,s++)i[s]=o[a];return i.buffer}),lR}var ay,uR;function coe(){if(uR)return ay;uR=1,ay=e;function e(n,r,o){var i=!1;return o=o||t,a.count=n,n===0?r():a;function a(s,c){if(a.count<=0)throw new Error("after called too many times");--a.count,s?(i=!0,r(s),r=o):a.count===0&&!i&&r(null,c)}}function t(){}return ay}/*! https://mths.be/utf8js v2.1.2 by @mathias */var sy,dR;function uoe(){if(dR)return sy;dR=1;var e=String.fromCharCode;function t(v){for(var b=[],_=0,y=v.length,C,k;_<y;)C=v.charCodeAt(_++),C>=55296&&C<=56319&&_<y?(k=v.charCodeAt(_++),(k&64512)==56320?b.push(((C&1023)<<10)+(k&1023)+65536):(b.push(C),_--)):b.push(C);return b}function n(v){for(var b=v.length,_=-1,y,C="";++_<b;)y=v[_],y>65535&&(y-=65536,C+=e(y>>>10&1023|55296),y=56320|y&1023),C+=e(y);return C}function r(v,b){if(v>=55296&&v<=57343){if(b)throw Error("Lone surrogate U+"+v.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function o(v,b){return e(v>>b&63|128)}function i(v,b){if(!(v&4294967168))return e(v);var _="";return v&4294965248?v&4294901760?v&4292870144||(_=e(v>>18&7|240),_+=o(v,12),_+=o(v,6)):(r(v,b)||(v=65533),_=e(v>>12&15|224),_+=o(v,6)):_=e(v>>6&31|192),_+=e(v&63|128),_}function a(v,b){b=b||{};for(var _=b.strict!==!1,y=t(v),C=y.length,k=-1,T,x="";++k<C;)T=y[k],x+=i(T,_);return x}function s(){if(p>=d)throw Error("Invalid byte index");var v=l[p]&255;if(p++,(v&192)==128)return v&63;throw Error("Invalid continuation byte")}function c(v){var b,_,y,C,k;if(p>d)throw Error("Invalid byte index");if(p==d)return!1;if(b=l[p]&255,p++,!(b&128))return b;if((b&224)==192){if(_=s(),k=(b&31)<<6|_,k>=128)return k;throw Error("Invalid continuation byte")}if((b&240)==224){if(_=s(),y=s(),k=(b&15)<<12|_<<6|y,k>=2048)return r(k,v)?k:65533;throw Error("Invalid continuation byte")}if((b&248)==240&&(_=s(),y=s(),C=s(),k=(b&7)<<18|_<<12|y<<6|C,k>=65536&&k<=1114111))return k;throw Error("Invalid UTF-8 detected")}var l,d,p;function f(v,b){b=b||{};var _=b.strict!==!1;l=t(v),d=l.length,p=0;for(var y=[],C;(C=c(_))!==!1;)y.push(C);return n(y)}return sy={version:"2.1.2",encode:a,decode:f},sy}var ly={},pR;function doe(){return pR||(pR=1,function(e){ly.encode=function(t){var n=new Uint8Array(t),r,o=n.length,i="";for(r=0;r<o;r+=3)i+=e[n[r]>>2],i+=e[(n[r]&3)<<4|n[r+1]>>4],i+=e[(n[r+1]&15)<<2|n[r+2]>>6],i+=e[n[r+2]&63];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i},ly.decode=function(t){var n=t.length*.75,r=t.length,o,i=0,a,s,c,l;t[t.length-1]==="="&&(n--,t[t.length-2]==="="&&n--);var d=new ArrayBuffer(n),p=new Uint8Array(d);for(o=0;o<r;o+=4)a=e.indexOf(t[o]),s=e.indexOf(t[o+1]),c=e.indexOf(t[o+2]),l=e.indexOf(t[o+3]),p[i++]=a<<2|s>>4,p[i++]=(s&15)<<4|c>>2,p[i++]=(c&3)<<6|l&63;return d}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),ly}var cy,hR;function poe(){if(hR)return cy;hR=1;var e=typeof e!="undefined"?e:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:!1,t=function(){try{var s=new Blob(["hi"]);return s.size===2}catch(c){return!1}}(),n=t&&function(){try{var s=new Blob([new Uint8Array([1,2])]);return s.size===2}catch(c){return!1}}(),r=e&&e.prototype.append&&e.prototype.getBlob;function o(s){return s.map(function(c){if(c.buffer instanceof ArrayBuffer){var l=c.buffer;if(c.byteLength!==l.byteLength){var d=new Uint8Array(c.byteLength);d.set(new Uint8Array(l,c.byteOffset,c.byteLength)),l=d.buffer}return l}return c})}function i(s,c){c=c||{};var l=new e;return o(s).forEach(function(d){l.append(d)}),c.type?l.getBlob(c.type):l.getBlob()}function a(s,c){return new Blob(o(s),c||{})}return typeof Blob!="undefined"&&(i.prototype=Blob.prototype,a.prototype=Blob.prototype),cy=function(){return t?n?Blob:a:r?i:void 0}(),cy}var fR;function ic(){return fR||(fR=1,function(e){var t=aoe(),n=CL(),r=loe(),o=coe(),i=uoe(),a;typeof ArrayBuffer!="undefined"&&(a=doe());var s=typeof navigator!="undefined"&&/Android/i.test(navigator.userAgent),c=typeof navigator!="undefined"&&/PhantomJS/i.test(navigator.userAgent),l=s||c;e.protocol=3;var d=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=t(d),f={type:"error",data:"parser error"},v=poe();e.encodePacket=function(x,E,O,S){typeof E=="function"&&(S=E,E=!1),typeof O=="function"&&(S=O,O=null);var R=x.data===void 0?void 0:x.data.buffer||x.data;if(typeof ArrayBuffer!="undefined"&&R instanceof ArrayBuffer)return _(x,E,S);if(typeof v!="undefined"&&R instanceof v)return C(x,E,S);if(R&&R.base64)return b(x,S);var D=d[x.type];return x.data!==void 0&&(D+=O?i.encode(String(x.data),{strict:!1}):String(x.data)),S(""+D)};function b(x,E){var O="b"+e.packets[x.type]+x.data.data;return E(O)}function _(x,E,O){if(!E)return e.encodeBase64Packet(x,O);var S=x.data,R=new Uint8Array(S),D=new Uint8Array(1+S.byteLength);D[0]=d[x.type];for(var P=0;P<R.length;P++)D[P+1]=R[P];return O(D.buffer)}function y(x,E,O){if(!E)return e.encodeBase64Packet(x,O);var S=new FileReader;return S.onload=function(){e.encodePacket({type:x.type,data:S.result},E,!0,O)},S.readAsArrayBuffer(x.data)}function C(x,E,O){if(!E)return e.encodeBase64Packet(x,O);if(l)return y(x,E,O);var S=new Uint8Array(1);S[0]=d[x.type];var R=new v([S.buffer,x.data]);return O(R)}e.encodeBase64Packet=function(x,E){var O="b"+e.packets[x.type];if(typeof v!="undefined"&&x.data instanceof v){var S=new FileReader;return S.onload=function(){var j=S.result.split(",")[1];E(O+j)},S.readAsDataURL(x.data)}var R;try{R=String.fromCharCode.apply(null,new Uint8Array(x.data))}catch(j){for(var D=new Uint8Array(x.data),P=new Array(D.length),I=0;I<D.length;I++)P[I]=D[I];R=String.fromCharCode.apply(null,P)}return O+=btoa(R),E(O)},e.decodePacket=function(x,E,O){if(x===void 0)return f;if(typeof x=="string"){if(x.charAt(0)==="b")return e.decodeBase64Packet(x.substr(1),E);if(O&&(x=k(x),x===!1))return f;var R=x.charAt(0);return Number(R)!=R||!p[R]?f:x.length>1?{type:p[R],data:x.substring(1)}:{type:p[R]}}var S=new Uint8Array(x),R=S[0],D=r(x,1);return v&&E==="blob"&&(D=new v([D])),{type:p[R],data:D}};function k(x){try{x=i.decode(x,{strict:!1})}catch(E){return!1}return x}e.decodeBase64Packet=function(x,E){var O=p[x.charAt(0)];if(!a)return{type:O,data:{base64:!0,data:x.substr(1)}};var S=a.decode(x.substr(1));return E==="blob"&&v&&(S=new v([S])),{type:O,data:S}},e.encodePayload=function(x,E,O){typeof E=="function"&&(O=E,E=null);var S=n(x);if(E&&S)return v&&!l?e.encodePayloadAsBlob(x,O):e.encodePayloadAsArrayBuffer(x,O);if(!x.length)return O("0:");function R(P){return P.length+":"+P}function D(P,I){e.encodePacket(P,S?E:!1,!1,function(j){I(null,R(j))})}T(x,D,function(P,I){return O(I.join(""))})};function T(x,E,O){for(var S=new Array(x.length),R=o(x.length,O),D=function(I,j,W){E(j,function(F,H){S[I]=H,W(F,S)})},P=0;P<x.length;P++)D(P,x[P],R)}e.decodePayload=function(x,E,O){if(typeof x!="string")return e.decodePayloadAsBinary(x,E,O);typeof E=="function"&&(O=E,E=null);var S;if(x==="")return O(f,0,1);for(var R="",D,P,I=0,j=x.length;I<j;I++){var W=x.charAt(I);if(W!==":"){R+=W;continue}if(R===""||R!=(D=Number(R))||(P=x.substr(I+1,D),R!=P.length))return O(f,0,1);if(P.length){if(S=e.decodePacket(P,E,!1),f.type===S.type&&f.data===S.data)return O(f,0,1);var F=O(S,I+D,j);if(F===!1)return}I+=D,R=""}if(R!=="")return O(f,0,1)},e.encodePayloadAsArrayBuffer=function(x,E){if(!x.length)return E(new ArrayBuffer(0));function O(S,R){e.encodePacket(S,!0,!0,function(D){return R(null,D)})}T(x,O,function(S,R){var D=R.reduce(function(j,W){var F;return typeof W=="string"?F=W.length:F=W.byteLength,j+F.toString().length+F+2},0),P=new Uint8Array(D),I=0;return R.forEach(function(j){var W=typeof j=="string",F=j;if(W){for(var H=new Uint8Array(j.length),$=0;$<j.length;$++)H[$]=j.charCodeAt($);F=H.buffer}W?P[I++]=0:P[I++]=1;for(var G=F.byteLength.toString(),$=0;$<G.length;$++)P[I++]=parseInt(G[$]);P[I++]=255;for(var H=new Uint8Array(F),$=0;$<H.length;$++)P[I++]=H[$]}),E(P.buffer)})},e.encodePayloadAsBlob=function(x,E){function O(S,R){e.encodePacket(S,!0,!0,function(D){var P=new Uint8Array(1);if(P[0]=1,typeof D=="string"){for(var I=new Uint8Array(D.length),j=0;j<D.length;j++)I[j]=D.charCodeAt(j);D=I.buffer,P[0]=0}for(var W=D instanceof ArrayBuffer?D.byteLength:D.size,F=W.toString(),H=new Uint8Array(F.length+1),j=0;j<F.length;j++)H[j]=parseInt(F[j]);if(H[F.length]=255,v){var $=new v([P.buffer,H.buffer,D]);R(null,$)}})}T(x,O,function(S,R){return E(new v(R))})},e.decodePayloadAsBinary=function(x,E,O){typeof E=="function"&&(O=E,E=null);for(var S=x,R=[];S.byteLength>0;){for(var D=new Uint8Array(S),P=D[0]===0,I="",j=1;D[j]!==255;j++){if(I.length>310)return O(f,0,1);I+=D[j]}S=r(S,2+I.length),I=parseInt(I);var W=r(S,0,I);if(P)try{W=String.fromCharCode.apply(null,new Uint8Array(W))}catch($){var F=new Uint8Array(W);W="";for(var j=0;j<F.length;j++)W+=String.fromCharCode(F[j])}R.push(W),S=r(S,I)}var H=R.length;R.forEach(function($,G){O(e.decodePacket($,E,!0),G,H)})}}(rR)),rR}var uy,gR;function ex(){if(gR)return uy;gR=1;var e=ic(),t=fc();uy=n;function n(r){this.path=r.path,this.hostname=r.hostname,this.port=r.port,this.secure=r.secure,this.query=r.query,this.timestampParam=r.timestampParam,this.timestampRequests=r.timestampRequests,this.readyState="",this.agent=r.agent||!1,this.socket=r.socket,this.enablesXDR=r.enablesXDR,this.withCredentials=r.withCredentials,this.pfx=r.pfx,this.key=r.key,this.passphrase=r.passphrase,this.cert=r.cert,this.ca=r.ca,this.ciphers=r.ciphers,this.rejectUnauthorized=r.rejectUnauthorized,this.forceNode=r.forceNode,this.isReactNative=r.isReactNative,this.extraHeaders=r.extraHeaders,this.localAddress=r.localAddress}return t(n.prototype),n.prototype.onError=function(r,o){var i=new Error(r);return i.type="TransportError",i.description=o,this.emit("error",i),this},n.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},n.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},n.prototype.send=function(r){if(this.readyState==="open")this.write(r);else throw new Error("Transport not open")},n.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},n.prototype.onData=function(r){var o=e.decodePacket(r,this.socket.binaryType);this.onPacket(o)},n.prototype.onPacket=function(r){this.emit("packet",r)},n.prototype.onClose=function(){this.readyState="closed",this.emit("close")},uy}var dy={},mR;function Kf(){return mR||(mR=1,dy.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},dy.decode=function(e){for(var t={},n=e.split("&"),r=0,o=n.length;r<o;r++){var i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}),dy}var vR,bR;function Xf(){return bR||(bR=1,vR=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}),vR}var py,yR;function SL(){if(yR)return py;yR=1;var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,n={},r=0,o=0,i;function a(l){var d="";do d=e[l%t]+d,l=Math.floor(l/t);while(l>0);return d}function s(l){var d=0;for(o=0;o<l.length;o++)d=d*t+n[l.charAt(o)];return d}function c(){var l=a(+new Date);return l!==i?(r=0,i=l):l+"."+a(r++)}for(;o<t;o++)n[e[o]]=o;return c.encode=a,c.decode=s,py=c,py}var Th={},hoe={get exports(){return Th},set exports(e){Th=e}},Eh={},foe={get exports(){return Eh},set exports(e){Eh=e}},hy,wR;function goe(){if(wR)return hy;wR=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*365.25;hy=function(l,d){d=d||{};var p=typeof l;if(p==="string"&&l.length>0)return i(l);if(p==="number"&&isNaN(l)===!1)return d.long?s(l):a(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function i(l){if(l=String(l),!(l.length>100)){var d=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(d){var p=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return p*o;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function a(l){return l>=r?Math.round(l/r)+"d":l>=n?Math.round(l/n)+"h":l>=t?Math.round(l/t)+"m":l>=e?Math.round(l/e)+"s":l+"ms"}function s(l){return c(l,r,"day")||c(l,n,"hour")||c(l,t,"minute")||c(l,e,"second")||l+" ms"}function c(l,d,p){if(!(l<d))return l<d*1.5?Math.floor(l/d)+" "+p:Math.ceil(l/d)+" "+p+"s"}return hy}var _R;function moe(){return _R||(_R=1,function(e,t){t=e.exports=r.debug=r.default=r,t.coerce=c,t.disable=a,t.enable=i,t.enabled=s,t.humanize=goe(),t.instances=[],t.names=[],t.skips=[],t.formatters={};function n(l){var d=0,p;for(p in l)d=(d<<5)-d+l.charCodeAt(p),d|=0;return t.colors[Math.abs(d)%t.colors.length]}function r(l){var d;function p(){if(p.enabled){var f=p,v=+new Date,b=v-(d||v);f.diff=b,f.prev=d,f.curr=v,d=v;for(var _=new Array(arguments.length),y=0;y<_.length;y++)_[y]=arguments[y];_[0]=t.coerce(_[0]),typeof _[0]!="string"&&_.unshift("%O");var C=0;_[0]=_[0].replace(/%([a-zA-Z%])/g,function(T,x){if(T==="%%")return T;C++;var E=t.formatters[x];if(typeof E=="function"){var O=_[C];T=E.call(f,O),_.splice(C,1),C--}return T}),t.formatArgs.call(f,_);var k=p.log||t.log||console.log.bind(console);k.apply(f,_)}}return p.namespace=l,p.enabled=t.enabled(l),p.useColors=t.useColors(),p.color=n(l),p.destroy=o,typeof t.init=="function"&&t.init(p),t.instances.push(p),p}function o(){var l=t.instances.indexOf(this);return l!==-1?(t.instances.splice(l,1),!0):!1}function i(l){t.save(l),t.names=[],t.skips=[];var d,p=(typeof l=="string"?l:"").split(/[\s,]+/),f=p.length;for(d=0;d<f;d++)p[d]&&(l=p[d].replace(/\*/g,".*?"),l[0]==="-"?t.skips.push(new RegExp("^"+l.substr(1)+"$")):t.names.push(new RegExp("^"+l+"$")));for(d=0;d<t.instances.length;d++){var v=t.instances[d];v.enabled=t.enabled(v.namespace)}}function a(){t.enable("")}function s(l){if(l[l.length-1]==="*")return!0;var d,p;for(d=0,p=t.skips.length;d<p;d++)if(t.skips[d].test(l))return!1;for(d=0,p=t.names.length;d<p;d++)if(t.names[d].test(l))return!0;return!1}function c(l){return l instanceof Error?l.stack||l.message:l}}(foe,Eh)),Eh}var xR;function eg(){return xR||(xR=1,function(e,t){t=e.exports=moe(),t.log=o,t.formatArgs=r,t.save=i,t.load=a,t.useColors=n,t.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:s(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}};function r(c){var l=this.useColors;if(c[0]=(l?"%c":"")+this.namespace+(l?" %c":" ")+c[0]+(l?"%c ":" ")+"+"+t.humanize(this.diff),!!l){var d="color: "+this.color;c.splice(1,0,d,"color: inherit");var p=0,f=0;c[0].replace(/%[a-zA-Z%]/g,function(v){v!=="%%"&&(p++,v==="%c"&&(f=p))}),c.splice(f,0,d)}}function o(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch(l){}}function a(){var c;try{c=t.storage.debug}catch(l){}return!c&&typeof process!="undefined"&&"env"in process&&(c=process.env.DEBUG),c}t.enable(a());function s(){try{return window.localStorage}catch(c){}}}(hoe,Th)),Th}var fy,CR;function kL(){if(CR)return fy;CR=1;var e=ex(),t=Kf(),n=ic(),r=Xf(),o=SL(),i=eg()("engine.io-client:polling");fy=s;var a=function(){var c=X_(),l=new c({xdomain:!1});return l.responseType!=null}();function s(c){var l=c&&c.forceBase64;(!a||l)&&(this.supportsBinary=!1),e.call(this,c)}return r(s,e),s.prototype.name="polling",s.prototype.doOpen=function(){this.poll()},s.prototype.pause=function(c){var l=this;this.readyState="pausing";function d(){i("paused"),l.readyState="paused",c()}if(this.polling||!this.writable){var p=0;this.polling&&(i("we are currently polling - waiting to pause"),p++,this.once("pollComplete",function(){i("pre-pause polling complete"),--p||d()})),this.writable||(i("we are currently writing - waiting to pause"),p++,this.once("drain",function(){i("pre-pause writing complete"),--p||d()}))}else d()},s.prototype.poll=function(){i("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},s.prototype.onData=function(c){var l=this;i("polling got data %s",c);var d=function(p,f,v){if(l.readyState==="opening"&&p.type==="open"&&l.onOpen(),p.type==="close")return l.onClose(),!1;l.onPacket(p)};n.decodePayload(c,this.socket.binaryType,d),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():i('ignoring poll - transport state "%s"',this.readyState))},s.prototype.doClose=function(){var c=this;function l(){i("writing close packet"),c.write([{type:"close"}])}this.readyState==="open"?(i("transport open - closing"),l()):(i("transport not open - deferring close"),this.once("open",l))},s.prototype.write=function(c){var l=this;this.writable=!1;var d=function(){l.writable=!0,l.emit("drain")};n.encodePayload(c,this.supportsBinary,function(p){l.doWrite(p,d)})},s.prototype.uri=function(){var c=this.query||{},l=this.secure?"https":"http",d="";this.timestampRequests!==!1&&(c[this.timestampParam]=o()),!this.supportsBinary&&!c.sid&&(c.b64=1),c=t.encode(c),this.port&&(l==="https"&&Number(this.port)!==443||l==="http"&&Number(this.port)!==80)&&(d=":"+this.port),c.length&&(c="?"+c);var p=this.hostname.indexOf(":")!==-1;return l+"://"+(p?"["+this.hostname+"]":this.hostname)+d+this.path+c},fy}var SR;function voe(){if(SR)return vu;SR=1;var e=X_(),t=kL(),n=fc(),r=Xf(),o=eg()("engine.io-client:polling-xhr"),i=K_();ioe.exports=s,vu.Request=c;function a(){}function s(p){if(t.call(this,p),this.requestTimeout=p.requestTimeout,this.extraHeaders=p.extraHeaders,typeof location!="undefined"){var f=location.protocol==="https:",v=location.port;v||(v=f?443:80),this.xd=typeof location!="undefined"&&p.hostname!==location.hostname||v!==p.port,this.xs=p.secure!==f}}r(s,t),s.prototype.supportsBinary=!0,s.prototype.request=function(p){return p=p||{},p.uri=this.uri(),p.xd=this.xd,p.xs=this.xs,p.agent=this.agent||!1,p.supportsBinary=this.supportsBinary,p.enablesXDR=this.enablesXDR,p.withCredentials=this.withCredentials,p.pfx=this.pfx,p.key=this.key,p.passphrase=this.passphrase,p.cert=this.cert,p.ca=this.ca,p.ciphers=this.ciphers,p.rejectUnauthorized=this.rejectUnauthorized,p.requestTimeout=this.requestTimeout,p.extraHeaders=this.extraHeaders,new c(p)},s.prototype.doWrite=function(p,f){var v=typeof p!="string"&&p!==void 0,b=this.request({method:"POST",data:p,isBinary:v}),_=this;b.on("success",f),b.on("error",function(y){_.onError("xhr post error",y)}),this.sendXhr=b},s.prototype.doPoll=function(){o("xhr poll");var p=this.request(),f=this;p.on("data",function(v){f.onData(v)}),p.on("error",function(v){f.onError("xhr poll error",v)}),this.pollXhr=p};function c(p){this.method=p.method||"GET",this.uri=p.uri,this.xd=!!p.xd,this.xs=!!p.xs,this.async=p.async!==!1,this.data=p.data!==void 0?p.data:null,this.agent=p.agent,this.isBinary=p.isBinary,this.supportsBinary=p.supportsBinary,this.enablesXDR=p.enablesXDR,this.withCredentials=p.withCredentials,this.requestTimeout=p.requestTimeout,this.pfx=p.pfx,this.key=p.key,this.passphrase=p.passphrase,this.cert=p.cert,this.ca=p.ca,this.ciphers=p.ciphers,this.rejectUnauthorized=p.rejectUnauthorized,this.extraHeaders=p.extraHeaders,this.create()}if(n(c.prototype),c.prototype.create=function(){var p={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};p.pfx=this.pfx,p.key=this.key,p.passphrase=this.passphrase,p.cert=this.cert,p.ca=this.ca,p.ciphers=this.ciphers,p.rejectUnauthorized=this.rejectUnauthorized;var f=this.xhr=new e(p),v=this;try{o("xhr open %s: %s",this.method,this.uri),f.open(this.method,this.uri,this.async);try{if(this.extraHeaders){f.setDisableHeaderCheck&&f.setDisableHeaderCheck(!0);for(var b in this.extraHeaders)this.extraHeaders.hasOwnProperty(b)&&f.setRequestHeader(b,this.extraHeaders[b])}}catch(_){}if(this.method==="POST")try{this.isBinary?f.setRequestHeader("Content-type","application/octet-stream"):f.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(_){}try{f.setRequestHeader("Accept","*/*")}catch(_){}"withCredentials"in f&&(f.withCredentials=this.withCredentials),this.requestTimeout&&(f.timeout=this.requestTimeout),this.hasXDR()?(f.onload=function(){v.onLoad()},f.onerror=function(){v.onError(f.responseText)}):f.onreadystatechange=function(){if(f.readyState===2)try{var _=f.getResponseHeader("Content-Type");(v.supportsBinary&&_==="application/octet-stream"||_==="application/octet-stream; charset=UTF-8")&&(f.responseType="arraybuffer")}catch(y){}f.readyState===4&&(f.status===200||f.status===1223?v.onLoad():setTimeout(function(){v.onError(typeof f.status=="number"?f.status:0)},0))},o("xhr data %s",this.data),f.send(this.data)}catch(_){setTimeout(function(){v.onError(_)},0);return}typeof document!="undefined"&&(this.index=c.requestsCount++,c.requests[this.index]=this)},c.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},c.prototype.onData=function(p){this.emit("data",p),this.onSuccess()},c.prototype.onError=function(p){this.emit("error",p),this.cleanup(!0)},c.prototype.cleanup=function(p){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=a:this.xhr.onreadystatechange=a,p)try{this.xhr.abort()}catch(f){}typeof document!="undefined"&&delete c.requests[this.index],this.xhr=null}},c.prototype.onLoad=function(){var p;try{var f;try{f=this.xhr.getResponseHeader("Content-Type")}catch(v){}f==="application/octet-stream"||f==="application/octet-stream; charset=UTF-8"?p=this.xhr.response||this.xhr.responseText:p=this.xhr.responseText}catch(v){this.onError(v)}p!=null&&this.onData(p)},c.prototype.hasXDR=function(){return typeof XDomainRequest!="undefined"&&!this.xs&&this.enablesXDR},c.prototype.abort=function(){this.cleanup()},c.requestsCount=0,c.requests={},typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",d);else if(typeof addEventListener=="function"){var l="onpagehide"in i?"pagehide":"unload";addEventListener(l,d,!1)}}function d(){for(var p in c.requests)c.requests.hasOwnProperty(p)&&c.requests[p].abort()}return vu}var gy,kR;function boe(){if(kR)return gy;kR=1;var e=kL(),t=Xf(),n=K_();gy=s;var r=/\n/g,o=/\\n/g,i;function a(){}function s(c){e.call(this,c),this.query=this.query||{},i||(i=n.___eio=n.___eio||[]),this.index=i.length;var l=this;i.push(function(d){l.onData(d)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){l.script&&(l.script.onerror=a)},!1)}return t(s,e),s.prototype.supportsBinary=!1,s.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),e.prototype.doClose.call(this)},s.prototype.doPoll=function(){var c=this,l=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),l.async=!0,l.src=this.uri(),l.onerror=function(f){c.onError("jsonp poll error",f)};var d=document.getElementsByTagName("script")[0];d?d.parentNode.insertBefore(l,d):(document.head||document.body).appendChild(l),this.script=l;var p=typeof navigator!="undefined"&&/gecko/i.test(navigator.userAgent);p&&setTimeout(function(){var f=document.createElement("iframe");document.body.appendChild(f),document.body.removeChild(f)},100)},s.prototype.doWrite=function(c,l){var d=this;if(!this.form){var p=document.createElement("form"),f=document.createElement("textarea"),v=this.iframeId="eio_iframe_"+this.index,b;p.className="socketio",p.style.position="absolute",p.style.top="-1000px",p.style.left="-1000px",p.target=v,p.method="POST",p.setAttribute("accept-charset","utf-8"),f.name="d",p.appendChild(f),document.body.appendChild(p),this.form=p,this.area=f}this.form.action=this.uri();function _(){y(),l()}function y(){if(d.iframe)try{d.form.removeChild(d.iframe)}catch(k){d.onError("jsonp polling iframe removal error",k)}try{var C='<iframe src="javascript:0" name="'+d.iframeId+'">';b=document.createElement(C)}catch(k){b=document.createElement("iframe"),b.name=d.iframeId,b.src="javascript:0"}b.id=d.iframeId,d.form.appendChild(b),d.iframe=b}y(),c=c.replace(o,`\\
|
|
387
|
+
`),this.area.value=c.replace(r,"\\n");try{this.form.submit()}catch(C){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){d.iframe.readyState==="complete"&&_()}:this.iframe.onload=_},gy}const yoe={},woe=Object.freeze(Object.defineProperty({__proto__:null,default:yoe},Symbol.toStringTag,{value:"Module"})),_oe=Ti(woe);var my,TR;function xoe(){if(TR)return my;TR=1;var e=ex(),t=ic(),n=Kf(),r=Xf(),o=SL(),i=eg()("engine.io-client:websocket"),a,s;if(typeof WebSocket!="undefined"?a=WebSocket:typeof self!="undefined"&&(a=self.WebSocket||self.MozWebSocket),typeof window=="undefined")try{s=_oe}catch(d){}var c=a||s;my=l;function l(d){var p=d&&d.forceBase64;p&&(this.supportsBinary=!1),this.perMessageDeflate=d.perMessageDeflate,this.usingBrowserWebSocket=a&&!d.forceNode,this.protocols=d.protocols,this.usingBrowserWebSocket||(c=s),e.call(this,d)}return r(l,e),l.prototype.name="websocket",l.prototype.supportsBinary=!0,l.prototype.doOpen=function(){if(this.check()){var d=this.uri(),p=this.protocols,f={};this.isReactNative||(f.agent=this.agent,f.perMessageDeflate=this.perMessageDeflate,f.pfx=this.pfx,f.key=this.key,f.passphrase=this.passphrase,f.cert=this.cert,f.ca=this.ca,f.ciphers=this.ciphers,f.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(f.headers=this.extraHeaders),this.localAddress&&(f.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?p?new c(d,p):new c(d):new c(d,p,f)}catch(v){return this.emit("error",v)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},l.prototype.addEventListeners=function(){var d=this;this.ws.onopen=function(){d.onOpen()},this.ws.onclose=function(){d.onClose()},this.ws.onmessage=function(p){d.onData(p.data)},this.ws.onerror=function(p){d.onError("websocket error",p)}},l.prototype.write=function(d){var p=this;this.writable=!1;for(var f=d.length,v=0,b=f;v<b;v++)(function(y){t.encodePacket(y,p.supportsBinary,function(C){if(!p.usingBrowserWebSocket){var k={};if(y.options&&(k.compress=y.options.compress),p.perMessageDeflate){var T=typeof C=="string"?Buffer.byteLength(C):C.length;T<p.perMessageDeflate.threshold&&(k.compress=!1)}}try{p.usingBrowserWebSocket?p.ws.send(C):p.ws.send(C,k)}catch(x){i("websocket closed before onclose event")}--f||_()})})(d[v]);function _(){p.emit("flush"),setTimeout(function(){p.writable=!0,p.emit("drain")},0)}},l.prototype.onClose=function(){e.prototype.onClose.call(this)},l.prototype.doClose=function(){typeof this.ws!="undefined"&&this.ws.close()},l.prototype.uri=function(){var d=this.query||{},p=this.secure?"wss":"ws",f="";this.port&&(p==="wss"&&Number(this.port)!==443||p==="ws"&&Number(this.port)!==80)&&(f=":"+this.port),this.timestampRequests&&(d[this.timestampParam]=o()),this.supportsBinary||(d.b64=1),d=n.encode(d),d.length&&(d="?"+d);var v=this.hostname.indexOf(":")!==-1;return p+"://"+(v?"["+this.hostname+"]":this.hostname)+f+this.path+d},l.prototype.check=function(){return!!c&&!("__initialize"in c&&this.name===l.prototype.name)},my}var ER;function AR(){if(ER)return dp;ER=1;var e=X_(),t=voe(),n=boe(),r=xoe();dp.polling=o,dp.websocket=r;function o(i){var a,s=!1,c=!1,l=i.jsonp!==!1;if(typeof location!="undefined"){var d=location.protocol==="https:",p=location.port;p||(p=d?443:80),s=i.hostname!==location.hostname||p!==i.port,c=i.secure!==d}if(i.xdomain=s,i.xscheme=c,a=new e(i),"open"in a&&!i.forceJSONP)return new t(i);if(!l)throw new Error("JSONP disabled");return new n(i)}return dp}var vy,OR;function TL(){if(OR)return vy;OR=1;var e=[].indexOf;return vy=function(t,n){if(e)return t.indexOf(n);for(var r=0;r<t.length;++r)if(t[r]===n)return r;return-1},vy}var by,RR;function Coe(){if(RR)return by;RR=1;var e=AR(),t=fc(),n=eg()("engine.io-client:socket"),r=TL(),o=ic(),i=wL(),a=Kf();by=s;function s(l,d){if(!(this instanceof s))return new s(l,d);d=d||{},l&&typeof l=="object"&&(d=l,l=null),l?(l=i(l),d.hostname=l.host,d.secure=l.protocol==="https"||l.protocol==="wss",d.port=l.port,l.query&&(d.query=l.query)):d.host&&(d.hostname=i(d.host).host),this.secure=d.secure!=null?d.secure:typeof location!="undefined"&&location.protocol==="https:",d.hostname&&!d.port&&(d.port=this.secure?"443":"80"),this.agent=d.agent||!1,this.hostname=d.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=d.port||(typeof location!="undefined"&&location.port?location.port:this.secure?443:80),this.query=d.query||{},typeof this.query=="string"&&(this.query=a.decode(this.query)),this.upgrade=d.upgrade!==!1,this.path=(d.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!d.forceJSONP,this.jsonp=d.jsonp!==!1,this.forceBase64=!!d.forceBase64,this.enablesXDR=!!d.enablesXDR,this.withCredentials=d.withCredentials!==!1,this.timestampParam=d.timestampParam||"t",this.timestampRequests=d.timestampRequests,this.transports=d.transports||["polling","websocket"],this.transportOptions=d.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=d.policyPort||843,this.rememberUpgrade=d.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=d.onlyBinaryUpgrades,this.perMessageDeflate=d.perMessageDeflate!==!1?d.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=d.pfx||void 0,this.key=d.key||void 0,this.passphrase=d.passphrase||void 0,this.cert=d.cert||void 0,this.ca=d.ca||void 0,this.ciphers=d.ciphers||void 0,this.rejectUnauthorized=d.rejectUnauthorized===void 0?!0:d.rejectUnauthorized,this.forceNode=!!d.forceNode,this.isReactNative=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self=="undefined"||this.isReactNative)&&(d.extraHeaders&&Object.keys(d.extraHeaders).length>0&&(this.extraHeaders=d.extraHeaders),d.localAddress&&(this.localAddress=d.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}s.priorWebsocketSuccess=!1,t(s.prototype),s.protocol=o.protocol,s.Socket=s,s.Transport=ex(),s.transports=AR(),s.parser=ic(),s.prototype.createTransport=function(l){n('creating transport "%s"',l);var d=c(this.query);d.EIO=o.protocol,d.transport=l;var p=this.transportOptions[l]||{};this.id&&(d.sid=this.id);var f=new e[l]({query:d,socket:this,agent:p.agent||this.agent,hostname:p.hostname||this.hostname,port:p.port||this.port,secure:p.secure||this.secure,path:p.path||this.path,forceJSONP:p.forceJSONP||this.forceJSONP,jsonp:p.jsonp||this.jsonp,forceBase64:p.forceBase64||this.forceBase64,enablesXDR:p.enablesXDR||this.enablesXDR,withCredentials:p.withCredentials||this.withCredentials,timestampRequests:p.timestampRequests||this.timestampRequests,timestampParam:p.timestampParam||this.timestampParam,policyPort:p.policyPort||this.policyPort,pfx:p.pfx||this.pfx,key:p.key||this.key,passphrase:p.passphrase||this.passphrase,cert:p.cert||this.cert,ca:p.ca||this.ca,ciphers:p.ciphers||this.ciphers,rejectUnauthorized:p.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:p.perMessageDeflate||this.perMessageDeflate,extraHeaders:p.extraHeaders||this.extraHeaders,forceNode:p.forceNode||this.forceNode,localAddress:p.localAddress||this.localAddress,requestTimeout:p.requestTimeout||this.requestTimeout,protocols:p.protocols||void 0,isReactNative:this.isReactNative});return f};function c(l){var d={};for(var p in l)l.hasOwnProperty(p)&&(d[p]=l[p]);return d}return s.prototype.open=function(){var l;if(this.rememberUpgrade&&s.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)l="websocket";else if(this.transports.length===0){var d=this;setTimeout(function(){d.emit("error","No transports available")},0);return}else l=this.transports[0];this.readyState="opening";try{l=this.createTransport(l)}catch(p){this.transports.shift(),this.open();return}l.open(),this.setTransport(l)},s.prototype.setTransport=function(l){n("setting transport %s",l.name);var d=this;this.transport&&(n("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=l,l.on("drain",function(){d.onDrain()}).on("packet",function(p){d.onPacket(p)}).on("error",function(p){d.onError(p)}).on("close",function(){d.onClose("transport close")})},s.prototype.probe=function(l){n('probing transport "%s"',l);var d=this.createTransport(l,{probe:1}),p=!1,f=this;s.priorWebsocketSuccess=!1;function v(){if(f.onlyBinaryUpgrades){var x=!this.supportsBinary&&f.transport.supportsBinary;p=p||x}p||(n('probe transport "%s" opened',l),d.send([{type:"ping",data:"probe"}]),d.once("packet",function(E){if(!p)if(E.type==="pong"&&E.data==="probe"){if(n('probe transport "%s" pong',l),f.upgrading=!0,f.emit("upgrading",d),!d)return;s.priorWebsocketSuccess=d.name==="websocket",n('pausing current transport "%s"',f.transport.name),f.transport.pause(function(){p||f.readyState!=="closed"&&(n("changing transport and sending upgrade packet"),T(),f.setTransport(d),d.send([{type:"upgrade"}]),f.emit("upgrade",d),d=null,f.upgrading=!1,f.flush())})}else{n('probe transport "%s" failed',l);var O=new Error("probe error");O.transport=d.name,f.emit("upgradeError",O)}}))}function b(){p||(p=!0,T(),d.close(),d=null)}function _(x){var E=new Error("probe error: "+x);E.transport=d.name,b(),n('probe transport "%s" failed because of error: %s',l,x),f.emit("upgradeError",E)}function y(){_("transport closed")}function C(){_("socket closed")}function k(x){d&&x.name!==d.name&&(n('"%s" works - aborting "%s"',x.name,d.name),b())}function T(){d.removeListener("open",v),d.removeListener("error",_),d.removeListener("close",y),f.removeListener("close",C),f.removeListener("upgrading",k)}d.once("open",v),d.once("error",_),d.once("close",y),this.once("close",C),this.once("upgrading",k),d.open()},s.prototype.onOpen=function(){if(n("socket open"),this.readyState="open",s.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){n("starting upgrade probes");for(var l=0,d=this.upgrades.length;l<d;l++)this.probe(this.upgrades[l])}},s.prototype.onPacket=function(l){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(n('socket receive: type "%s", data "%s"',l.type,l.data),this.emit("packet",l),this.emit("heartbeat"),l.type){case"open":this.onHandshake(JSON.parse(l.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var d=new Error("server error");d.code=l.data,this.onError(d);break;case"message":this.emit("data",l.data),this.emit("message",l.data);break}else n('packet received with socket readyState "%s"',this.readyState)},s.prototype.onHandshake=function(l){this.emit("handshake",l),this.id=l.sid,this.transport.query.sid=l.sid,this.upgrades=this.filterUpgrades(l.upgrades),this.pingInterval=l.pingInterval,this.pingTimeout=l.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},s.prototype.onHeartbeat=function(l){clearTimeout(this.pingTimeoutTimer);var d=this;d.pingTimeoutTimer=setTimeout(function(){d.readyState!=="closed"&&d.onClose("ping timeout")},l||d.pingInterval+d.pingTimeout)},s.prototype.setPing=function(){var l=this;clearTimeout(l.pingIntervalTimer),l.pingIntervalTimer=setTimeout(function(){n("writing ping packet - expecting pong within %sms",l.pingTimeout),l.ping(),l.onHeartbeat(l.pingTimeout)},l.pingInterval)},s.prototype.ping=function(){var l=this;this.sendPacket("ping",function(){l.emit("ping")})},s.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()},s.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(n("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},s.prototype.write=s.prototype.send=function(l,d,p){return this.sendPacket("message",l,d,p),this},s.prototype.sendPacket=function(l,d,p,f){if(typeof d=="function"&&(f=d,d=void 0),typeof p=="function"&&(f=p,p=null),!(this.readyState==="closing"||this.readyState==="closed")){p=p||{},p.compress=p.compress!==!1;var v={type:l,data:d,options:p};this.emit("packetCreate",v),this.writeBuffer.push(v),f&&this.once("flush",f),this.flush()}},s.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var l=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?f():d()}):this.upgrading?f():d()}function d(){l.onClose("forced close"),n("socket closing - telling transport to close"),l.transport.close()}function p(){l.removeListener("upgrade",p),l.removeListener("upgradeError",p),d()}function f(){l.once("upgrade",p),l.once("upgradeError",p)}return this},s.prototype.onError=function(l){n("socket error %j",l),s.priorWebsocketSuccess=!1,this.emit("error",l),this.onClose("transport error",l)},s.prototype.onClose=function(l,d){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){n('socket close with reason: "%s"',l);var p=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",l,d),p.writeBuffer=[],p.prevBufferLen=0}},s.prototype.filterUpgrades=function(l){for(var d=[],p=0,f=l.length;p<f;p++)~r(this.transports,l[p])&&d.push(l[p]);return d},by}var DR;function Soe(){return DR||(DR=1,function(e){e.exports=Coe(),e.exports.parser=ic()}(roe)),u1}var d1={},koe={get exports(){return d1},set exports(e){d1=e}},yy,MR;function Toe(){if(MR)return yy;MR=1,yy=e;function e(t,n){var r=[];n=n||0;for(var o=n||0;o<t.length;o++)r[o-n]=t[o];return r}return yy}var wy,PR;function EL(){if(PR)return wy;PR=1,wy=e;function e(t,n,r){return t.on(n,r),{destroy:function(){t.removeListener(n,r)}}}return wy}var _y,IR;function AL(){if(IR)return _y;IR=1;var e=[].slice;return _y=function(t,n){if(typeof n=="string"&&(n=t[n]),typeof n!="function")throw new Error("bind() requires a function");var r=e.call(arguments,2);return function(){return n.apply(t,r.concat(e.call(arguments)))}},_y}var NR;function OL(){return NR||(NR=1,function(e,t){var n=Z_(),r=fc(),o=Toe(),i=EL(),a=AL(),s=Zf()("socket.io-client:socket"),c=Kf(),l=CL();e.exports=f;var d={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=r.prototype.emit;function f(v,b,_){this.io=v,this.nsp=b,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},_&&_.query&&(this.query=_.query),this.io.autoConnect&&this.open()}r(f.prototype),f.prototype.subEvents=function(){if(!this.subs){var v=this.io;this.subs=[i(v,"open",a(this,"onopen")),i(v,"packet",a(this,"onpacket")),i(v,"close",a(this,"onclose"))]}},f.prototype.open=f.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},f.prototype.send=function(){var v=o(arguments);return v.unshift("message"),this.emit.apply(this,v),this},f.prototype.emit=function(v){if(d.hasOwnProperty(v))return p.apply(this,arguments),this;var b=o(arguments),_={type:(this.flags.binary!==void 0?this.flags.binary:l(b))?n.BINARY_EVENT:n.EVENT,data:b};return _.options={},_.options.compress=!this.flags||this.flags.compress!==!1,typeof b[b.length-1]=="function"&&(s("emitting packet with ack id %d",this.ids),this.acks[this.ids]=b.pop(),_.id=this.ids++),this.connected?this.packet(_):this.sendBuffer.push(_),this.flags={},this},f.prototype.packet=function(v){v.nsp=this.nsp,this.io.packet(v)},f.prototype.onopen=function(){if(s("transport is open - connecting"),this.nsp!=="/")if(this.query){var v=typeof this.query=="object"?c.encode(this.query):this.query;s("sending connect packet with query %s",v),this.packet({type:n.CONNECT,query:v})}else this.packet({type:n.CONNECT})},f.prototype.onclose=function(v){s("close (%s)",v),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",v)},f.prototype.onpacket=function(v){var b=v.nsp===this.nsp,_=v.type===n.ERROR&&v.nsp==="/";if(!(!b&&!_))switch(v.type){case n.CONNECT:this.onconnect();break;case n.EVENT:this.onevent(v);break;case n.BINARY_EVENT:this.onevent(v);break;case n.ACK:this.onack(v);break;case n.BINARY_ACK:this.onack(v);break;case n.DISCONNECT:this.ondisconnect();break;case n.ERROR:this.emit("error",v.data);break}},f.prototype.onevent=function(v){var b=v.data||[];s("emitting event %j",b),v.id!=null&&(s("attaching ack callback to event"),b.push(this.ack(v.id))),this.connected?p.apply(this,b):this.receiveBuffer.push(b)},f.prototype.ack=function(v){var b=this,_=!1;return function(){if(!_){_=!0;var y=o(arguments);s("sending ack %j",y),b.packet({type:l(y)?n.BINARY_ACK:n.ACK,id:v,data:y})}}},f.prototype.onack=function(v){var b=this.acks[v.id];typeof b=="function"?(s("calling ack %s with %j",v.id,v.data),b.apply(this,v.data),delete this.acks[v.id]):s("bad ack %s",v.id)},f.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},f.prototype.emitBuffered=function(){var v;for(v=0;v<this.receiveBuffer.length;v++)p.apply(this,this.receiveBuffer[v]);for(this.receiveBuffer=[],v=0;v<this.sendBuffer.length;v++)this.packet(this.sendBuffer[v]);this.sendBuffer=[]},f.prototype.ondisconnect=function(){s("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},f.prototype.destroy=function(){if(this.subs){for(var v=0;v<this.subs.length;v++)this.subs[v].destroy();this.subs=null}this.io.destroy(this)},f.prototype.close=f.prototype.disconnect=function(){return this.connected&&(s("performing disconnect (%s)",this.nsp),this.packet({type:n.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},f.prototype.compress=function(v){return this.flags.compress=v,this},f.prototype.binary=function(v){return this.flags.binary=v,this}}(koe)),d1}var xy,LR;function Eoe(){if(LR)return xy;LR=1,xy=e;function e(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}return e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*t);t=Math.floor(n*10)&1?t+r:t-r}return Math.min(t,this.max)|0},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t},xy}var Cy,jR;function FR(){if(jR)return Cy;jR=1;var e=Soe(),t=OL(),n=fc(),r=Z_(),o=EL(),i=AL(),a=Zf()("socket.io-client:manager"),s=TL(),c=Eoe(),l=Object.prototype.hasOwnProperty;Cy=d;function d(p,f){if(!(this instanceof d))return new d(p,f);p&&typeof p=="object"&&(f=p,p=void 0),f=f||{},f.path=f.path||"/socket.io",this.nsps={},this.subs=[],this.opts=f,this.reconnection(f.reconnection!==!1),this.reconnectionAttempts(f.reconnectionAttempts||1/0),this.reconnectionDelay(f.reconnectionDelay||1e3),this.reconnectionDelayMax(f.reconnectionDelayMax||5e3),this.randomizationFactor(f.randomizationFactor||.5),this.backoff=new c({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(f.timeout==null?2e4:f.timeout),this.readyState="closed",this.uri=p,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var v=f.parser||r;this.encoder=new v.Encoder,this.decoder=new v.Decoder,this.autoConnect=f.autoConnect!==!1,this.autoConnect&&this.open()}return d.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var p in this.nsps)l.call(this.nsps,p)&&this.nsps[p].emit.apply(this.nsps[p],arguments)},d.prototype.updateSocketIds=function(){for(var p in this.nsps)l.call(this.nsps,p)&&(this.nsps[p].id=this.generateId(p))},d.prototype.generateId=function(p){return(p==="/"?"":p+"#")+this.engine.id},n(d.prototype),d.prototype.reconnection=function(p){return arguments.length?(this._reconnection=!!p,this):this._reconnection},d.prototype.reconnectionAttempts=function(p){return arguments.length?(this._reconnectionAttempts=p,this):this._reconnectionAttempts},d.prototype.reconnectionDelay=function(p){return arguments.length?(this._reconnectionDelay=p,this.backoff&&this.backoff.setMin(p),this):this._reconnectionDelay},d.prototype.randomizationFactor=function(p){return arguments.length?(this._randomizationFactor=p,this.backoff&&this.backoff.setJitter(p),this):this._randomizationFactor},d.prototype.reconnectionDelayMax=function(p){return arguments.length?(this._reconnectionDelayMax=p,this.backoff&&this.backoff.setMax(p),this):this._reconnectionDelayMax},d.prototype.timeout=function(p){return arguments.length?(this._timeout=p,this):this._timeout},d.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()},d.prototype.open=d.prototype.connect=function(p,f){if(a("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;a("opening %s",this.uri),this.engine=e(this.uri,this.opts);var v=this.engine,b=this;this.readyState="opening",this.skipReconnect=!1;var _=o(v,"open",function(){b.onopen(),p&&p()}),y=o(v,"error",function(T){if(a("connect_error"),b.cleanup(),b.readyState="closed",b.emitAll("connect_error",T),p){var x=new Error("Connection error");x.data=T,p(x)}else b.maybeReconnectOnOpen()});if(this._timeout!==!1){var C=this._timeout;a("connect attempt will timeout after %d",C),C===0&&_.destroy();var k=setTimeout(function(){a("connect attempt timed out after %d",C),_.destroy(),v.close(),v.emit("error","timeout"),b.emitAll("connect_timeout",C)},C);this.subs.push({destroy:function(){clearTimeout(k)}})}return this.subs.push(_),this.subs.push(y),this},d.prototype.onopen=function(){a("open"),this.cleanup(),this.readyState="open",this.emit("open");var p=this.engine;this.subs.push(o(p,"data",i(this,"ondata"))),this.subs.push(o(p,"ping",i(this,"onping"))),this.subs.push(o(p,"pong",i(this,"onpong"))),this.subs.push(o(p,"error",i(this,"onerror"))),this.subs.push(o(p,"close",i(this,"onclose"))),this.subs.push(o(this.decoder,"decoded",i(this,"ondecoded")))},d.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},d.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},d.prototype.ondata=function(p){this.decoder.add(p)},d.prototype.ondecoded=function(p){this.emit("packet",p)},d.prototype.onerror=function(p){a("error",p),this.emitAll("error",p)},d.prototype.socket=function(p,f){var v=this.nsps[p];if(!v){v=new t(this,p,f),this.nsps[p]=v;var b=this;v.on("connecting",_),v.on("connect",function(){v.id=b.generateId(p)}),this.autoConnect&&_()}function _(){~s(b.connecting,v)||b.connecting.push(v)}return v},d.prototype.destroy=function(p){var f=s(this.connecting,p);~f&&this.connecting.splice(f,1),!this.connecting.length&&this.close()},d.prototype.packet=function(p){a("writing packet %j",p);var f=this;p.query&&p.type===0&&(p.nsp+="?"+p.query),f.encoding?f.packetBuffer.push(p):(f.encoding=!0,this.encoder.encode(p,function(v){for(var b=0;b<v.length;b++)f.engine.write(v[b],p.options);f.encoding=!1,f.processPacketQueue()}))},d.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var p=this.packetBuffer.shift();this.packet(p)}},d.prototype.cleanup=function(){a("cleanup");for(var p=this.subs.length,f=0;f<p;f++){var v=this.subs.shift();v.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},d.prototype.close=d.prototype.disconnect=function(){a("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},d.prototype.onclose=function(p){a("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",p),this._reconnection&&!this.skipReconnect&&this.reconnect()},d.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var p=this;if(this.backoff.attempts>=this._reconnectionAttempts)a("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var f=this.backoff.duration();a("will wait %dms before reconnect attempt",f),this.reconnecting=!0;var v=setTimeout(function(){p.skipReconnect||(a("attempting reconnect"),p.emitAll("reconnect_attempt",p.backoff.attempts),p.emitAll("reconnecting",p.backoff.attempts),!p.skipReconnect&&p.open(function(b){b?(a("reconnect attempt error"),p.reconnecting=!1,p.reconnect(),p.emitAll("reconnect_error",b.data)):(a("reconnect success"),p.onreconnect())}))},f);this.subs.push({destroy:function(){clearTimeout(v)}})}},d.prototype.onreconnect=function(){var p=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",p)},Cy}var BR;function Aoe(){return BR||(BR=1,function(e,t){var n=Qre(),r=Z_(),o=FR(),i=Zf()("socket.io-client");e.exports=t=s;var a=t.managers={};function s(c,l){typeof c=="object"&&(l=c,c=void 0),l=l||{};var d=n(c),p=d.source,f=d.id,v=d.path,b=a[f]&&v in a[f].nsps,_=l.forceNew||l["force new connection"]||l.multiplex===!1||b,y;return _?(i("ignoring socket cache for %s",p),y=o(p,l)):(a[f]||(i("new io instance for %s",p),a[f]=o(p,l)),y=a[f]),d.query&&!l.query&&(l.query=d.query),y.socket(d.path,l)}t.protocol=r.protocol,t.connect=s,t.Manager=FR(),t.Socket=OL()}(Ure,wh)),wh}var Ooe=Aoe();const Roe=Oo(Ooe);class tx{constructor(t,n){q(this,"socket"),q(this,"onMessageCallback"),typeof t=="string"?this.socket=tx.createNewSocket(t,n):this.socket=t}isReady(){return this.socket.connected}on(t,n){this.socket.on(t,n)}off(t,n){this.socket.off(t,n)}send(t,...n){const r=n[0];this.socket.emit(t,JSON.stringify(r))}onMessage(t,n,r){this.onMessageCallback=r;const o=t||"",i=n||"",a=i?`${o}-${i}`:o,s=c=>{let l=null;try{l=JSON.parse(c)}catch(d){throw new Error("Error parsing response message")}r(o,l)};return this.on(a,s),()=>{this.off(a,s)}}trigger(t,n){this.onMessageCallback&&this.onMessageCallback(t,n)}static createNewSocket(t,n){const r=Roe.connect(t,{path:"/gateway",transports:["websocket"],reconnection:!0,query:n});return r.on("connect_error",o=>{console.log(`connect_error due to ${o.message}`)}),r.on("connect",()=>{r.emit("register",{})}),r.on("register",()=>{r.emit('{"eventName": "_registerEvent", "data": "pivot2"}'),r.connected=!0}),r.on("error",o=>{console.warn(`"SisenseSocket" socket error "${o}"`)}),r}}const pp={INCLUDE:["metadata.$.jaql","metadata.$.field","metadata.$.panel","metadata.$.hierarchies","metadata.$.format","metadata.$.disabled","metadata.$.distinctTotals"],EXCLUDE:["metadata.$.jaql.title","metadata.$.format.mask","metadata.$.format.width","queryGuid","widget","dashboard","grandTotals.title"]};class Doe{constructor(t){q(this,"logger"),q(this,"events"),q(this,"jaql"),q(this,"data"),q(this,"isLoadInProgress",!1),q(this,"loadPromiseResolve"),q(this,"loadPromiseReject"),q(this,"loadFromCacheState"),q(this,"loadFromCacheInitialTimer"),q(this,"loadFromCacheTimer"),q(this,"isSingleBranchTree",!1),q(this,"loadedItemsCount",0),q(this,"totalItemsCount",0),q(this,"isLimited",!1),q(this,"isFinishEventReceived",!1),this.events=t||new Wu,this.logger=Ha.create("AbstractDataLoadService")}destroy(){this.data=void 0,this.events.removeAllListeners()}clone(){const t=this.logger.getName();throw new Error(`"${t}.clone" should be overridden in subclass`)}load(t){if(!t)throw new Error(`${this.logger.getName()} "jaql" is not defined for "load" method`);const n=!!this.data,r=this.jaql;this.jaql=t,n&&r&&(this.jaql.queryGuid=r.queryGuid),this.isLoadInProgress=!0;const o=new Promise((i,a)=>{this.loadPromiseResolve=i,this.loadPromiseReject=a});this.loadFromCacheInitialTimer&&clearTimeout(this.loadFromCacheInitialTimer);try{n?this.loadFromCache():this.loadFromServer()}catch(i){this.notifyAboutDataError(i)}return o}clear(){this.data=void 0}getJaql(){return this.jaql}isSingleRowTree(){return this.isSingleBranchTree}getTotalItemsCount(){return this.totalItemsCount}isFormattingChanges(t){const n=Er(this.jaql,{include:pp.INCLUDE,exclude:pp.EXCLUDE,excludeEmpty:!0}),r=Er(t,{include:pp.INCLUDE,exclude:pp.EXCLUDE,excludeEmpty:!0});return[...(n==null?void 0:n.metadata)||[],...(r==null?void 0:r.metadata)||[]].forEach(o=>{o&&o.panel===Ze.SCOPE&&delete o.field}),JSON.stringify(n)===JSON.stringify(r)}hasData(){return!!(this.data&&this.data[tt.DATA])}hasError(){return this.data?!!this.data[tt.ERROR]:!1}loadFromServer(){const t=this.logger.getName();throw new Error(`"${t}.loadFromServer" should be overridden in subclass`)}cancelQuery(){const t=this.logger.getName(),n=new Error(`"${t}.cancelQuery" should be overridden in subclass.`);return Promise.reject(n)}isCancelQueryNeeded(){return!this.isFinishEventReceived}loadFromCache(){return Promise.resolve().then(()=>(this.loadFromCacheInitialTimer&&clearTimeout(this.loadFromCacheInitialTimer),new Promise(t=>{this.loadFromCacheInitialTimer=setTimeout(t)}))).then(()=>new Promise(t=>{this.loadFromCacheTimer&&clearImmediate(this.loadFromCacheTimer),this.loadFromCacheState=void 0,this.loadMessageFromCache(()=>{this.loadFromCacheState=void 0,this.loadFromCacheTimer&&clearImmediate(this.loadFromCacheTimer),t()})}))}loadMessageFromCache(t){this.loadFromCacheState=this.loadFromCacheState||{};const n=this.loadFromCacheState;let r="",o=0;if(Qz.forEach(i=>{r||(n[i]=n[i]||0,n[i]<((this.data||{})[i]||[]).length&&(r=i,o=n[i]))}),r){const i=((this.data||{})[r]||[])[o];this.notifyAboutDataChunk(r||"",i,!0),n[r]=o+1,this.loadMessageFromCache(t)}else t&&t()}cacheData(t,n){this.data=this.data||{};const r=this.data;r&&(r[t]=r[t]||[],r[t].push(n||!0))}notifyAboutDataChunk(t,n,r=!1){this.logger.log("notifyAboutDataChunk",t,n,r);const o=n&&n.data&&t===tt.DATA?n.data:n;if(r||this.cacheData(t,n),!r&&this.loadFromCacheState)return;t===tt.METADATA&&(this.isSingleBranchTree=!!(o&&o.isSingleBranchTree)),t===tt.ERROR&&this.notifyAboutDataError(o),t===tt.DATA_FINISH&&(this.loadedItemsCount=o?o.rowsCount:0,this.notifyAboutDataLoaded(this.data)),t===tt.TOTAL_ROWS&&(this.totalItemsCount=o?o.rowsCount:0,this.totalItemsCount!==this.loadedItemsCount&&(this.isLimited=!0)),t===tt.FINISH&&(this.isFinishEventReceived=!0);const i=Er(o);this.events.emit(t,i)}notifyAboutDataLoaded(t){this.isLoadInProgress&&(this.isLoadInProgress=!1,typeof this.loadPromiseResolve=="function"&&(this.loadPromiseResolve(t),this.logger.log("notifyAboutDataLoaded")),this.loadPromiseReject=void 0,this.loadPromiseResolve=void 0)}notifyAboutDataError(t){this.isLoadInProgress&&(this.isLoadInProgress=!1,typeof this.loadPromiseReject=="function"&&(this.loadPromiseReject(t),this.logger.log("notifyAboutDataError")),this.loadPromiseReject=void 0,this.loadPromiseResolve=void 0)}on(t,n){this.events.on(t,n)}off(t,n){this.events.removeListener(t,n)}offAll(t){this.events.removeAllListeners(t)}listenerCount(t){return this.events.listenerCount(t)}emit(t,...n){this.events.emit(t,...n)}}class nx extends Doe{constructor(t,n,r){if(super(n),q(this,"socket"),q(this,"initPromise"),q(this,"isInitInProgress",!1),q(this,"onMessageCancel"),q(this,"onSocketError",o=>{this.emit("error",{error:!0,type:500,details:`Socket error: ${o.message}`})}),q(this,"onSocketDisconnect",()=>{this.emit("error",{error:!0,type:500,details:"Socket disconnected"})}),this.logger=r||Ha.create("DataLoadService"),!t)throw new Error(`${this.logger.getName()} "socket" not defined.`);this.socket=t,this.socket.on("error",this.onSocketError),this.socket.on("disconnect",this.onSocketDisconnect),this.on(tt.ERROR,o=>{const i=JSON.stringify(o,null,4);process.env.NODE_ENV!=="production"&&this.logger.console.warn(`${this.logger.getName()} error message:
|
|
388
|
+
${i}`)})}destroy(){super.destroy(),this.onMessageCancel&&(this.onMessageCancel(),this.onMessageCancel=void 0),this.socket.off("error",this.onSocketError),this.socket.off("disconnect",this.onSocketDisconnect)}clone(){const t=Er(this.data);t[tt.HEADERS]||(t[tt.HEADERS]=[{}]);const n=new nx(this.socket);return n.data=t,n.jaql=this.jaql,n.isFinishEventReceived=this.isFinishEventReceived,n.isSingleBranchTree=this.isSingleBranchTree,n.loadedItemsCount=this.loadedItemsCount,n.totalItemsCount=this.totalItemsCount,n.isLimited=this.isLimited,n}loadFromServer(){this.waitForSocketReady().then(()=>{this.onMessageCancel&&this.onMessageCancel(),this.onMessageCancel=this.socket.onMessage(void 0,void 0,(t,n)=>{this.logger.log("handleMessage",t,n),this.notifyAboutDataChunk(t,n)}),this.socket.send("pivot",this.jaql)})}cancelQuery(){return this.isCancelQueryNeeded()?this.waitForSocketReady().then(()=>{this.socket.send("pivot/cancel-query",{queryGuid:this.jaql&&this.jaql.queryGuid})}):Promise.resolve()}waitForSocketReady(){return this.socket.isReady()?Promise.resolve():this.isInitInProgress&&this.initPromise?this.initPromise:(this.isInitInProgress=!0,this.initPromise=new Promise((t,n)=>{this.socket.on("open",()=>{this.socket&&this.socket.isReady()?t():n(new Error("Can not open WebSocket connection"))})}),this.initPromise)}}let hp;const Moe=new Uint8Array(16);function Poe(){if(!hp&&(hp=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!hp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return hp(Moe)}const Yn=[];for(let e=0;e<256;++e)Yn.push((e+256).toString(16).slice(1));function Ioe(e,t=0){return Yn[e[t+0]]+Yn[e[t+1]]+Yn[e[t+2]]+Yn[e[t+3]]+"-"+Yn[e[t+4]]+Yn[e[t+5]]+"-"+Yn[e[t+6]]+Yn[e[t+7]]+"-"+Yn[e[t+8]]+Yn[e[t+9]]+"-"+Yn[e[t+10]]+Yn[e[t+11]]+Yn[e[t+12]]+Yn[e[t+13]]+Yn[e[t+14]]+Yn[e[t+15]]}const Noe=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),HR={randomUUID:Noe};function Loe(e,t,n){if(HR.randomUUID&&!t&&!e)return HR.randomUUID();e=e||{};const r=e.random||(e.rng||Poe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ioe(r)}class RL extends nx{constructor(t,n,r={}){super(t,n),q(this,"options"),q(this,"registrationWaitTimer"),q(this,"onMessageCancels",[]),this.options=r,this.logger=Ha.create("SisenseDataLoadService")}destroy(){super.destroy(),this.onMessageCancels.length&&(this.onMessageCancels.forEach(t=>{t&&t()}),this.onMessageCancels.length=0)}loadFromServer(){this.waitForSocketReady().then(()=>{const t=de({queryGuid:Loe()},this.jaql),{queryGuid:n}=t;this.onMessageCancels.length&&(this.onMessageCancels.forEach(r=>{r&&r()}),this.onMessageCancels.length=0),Object.values(tt).forEach(r=>{const o=this.socket.onMessage(r,n,(i,a)=>{this.logger.log("handleMessage",i,a),this.notifyAboutDataChunk(i,a)});this.onMessageCancels.push(o)}),this.socket.send("pivot",t)})}waitForSocketReady(){return this.socket.isReady()?Promise.resolve():new Promise(t=>{const{socketRegisterCheckInterval:n=100}=this.options;this.registrationWaitTimer&&clearInterval(this.registrationWaitTimer);const r=()=>{this.socket.isReady()&&(clearInterval(this.registrationWaitTimer),t())};this.registrationWaitTimer=setInterval(r,n)})}}const joe={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Ah{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||joe,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Ah(this.logger,de({prefix:`${this.prefix}:${t}:`},this.options))}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ah(this.logger,t)}}var mi=new Ah;class tg{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&[].concat(this.observers[t]).forEach(i=>{i(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(i=>{i.apply(i,[t,...r])})}}function Xc(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function $R(e){return e==null?"":""+e}function Foe(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function rx(e,t,n){function r(a){return a&&a.indexOf("###")>-1?a.replace(/###/g,"."):a}function o(){return!e||typeof e=="string"}const i=typeof t!="string"?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};const a=r(i.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return o()?{}:{obj:e,k:r(i.shift())}}function zR(e,t,n){const{obj:r,k:o}=rx(e,t,Object);r[o]=n}function Boe(e,t,n,r){const{obj:o,k:i}=rx(e,t,Object);o[i]=o[i]||[],o[i].push(n)}function Oh(e,t){const{obj:n,k:r}=rx(e,t);if(n)return n[r]}function Hoe(e,t,n){const r=Oh(e,n);return r!==void 0?r:Oh(t,n)}function DL(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):DL(e[r],t[r],n):e[r]=t[r]);return e}function Al(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var $oe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function zoe(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>$oe[t]):e}const Woe=[" ",",","?","!",";"];function Uoe(e,t,n){t=t||"",n=n||"";const r=Woe.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const o=new RegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!o.test(e);if(!i){const a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}function Rh(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){let a=2,s=r.slice(i,i+a).join(n),c=o[s];for(;c===void 0&&r.length>i+a;)a++,s=r.slice(i,i+a).join(n),c=o[s];if(c===void 0)return;if(c===null)return null;if(t.endsWith(s)){if(typeof c=="string")return c;if(s&&typeof c[s]=="string")return c[s]}const l=r.slice(i+a).join(n);return l?Rh(c,l,n):void 0}o=o[r[i]]}return o}function Dh(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class WR extends tg{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,a=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s=[t,n];r&&typeof r!="string"&&(s=s.concat(r)),r&&typeof r=="string"&&(s=s.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(s=t.split("."));const c=Oh(this.data,s);return c||!a||typeof r!="string"?c:Rh(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."),o=n,n=s[1]),this.addNamespaces(n),zR(this.data,s,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),o=r,r=n,n=s[1]),this.addNamespaces(n);let c=Oh(this.data,s)||{};o?DL(c,r,i):c=de(de({},c),r),zR(this.data,s,c),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?de({},this.getResource(t,n)):this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var ML={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,o))}),t}};const UR={};class Mh extends tg{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Foe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=mi.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Uoe(t,r,o);if(a&&!s){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:i};const l=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),t=l.join(o)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n=de({},n)),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],l=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()==="cimode"){if(d){const T=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${T}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:c}:`${c}${T}${a}`}return o?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:c}:a}const p=this.resolve(t,n);let f=p&&p.res;const v=p&&p.usedKey||a,b=p&&p.exactUsedKey||a,_=Object.prototype.toString.apply(f),y=["[object Number]","[object Function]","[object RegExp]"],C=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject;if(k&&f&&typeof f!="string"&&typeof f!="boolean"&&typeof f!="number"&&y.indexOf(_)<0&&!(typeof C=="string"&&_==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const T=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,f,$e(de({},n),{ns:s})):`key '${a} (${this.language})' returned an object instead of string.`;return o?(p.res=T,p):T}if(i){const T=_==="[object Array]",x=T?[]:{},E=T?b:v;for(const O in f)if(Object.prototype.hasOwnProperty.call(f,O)){const S=`${E}${i}${O}`;x[O]=this.translate(S,$e(de({},n),{joinArrays:!1,ns:s})),x[O]===S&&(x[O]=f[O])}f=x}}else if(k&&typeof C=="string"&&_==="[object Array]")f=f.join(C),f&&(f=this.extendTranslation(f,t,n,r));else{let T=!1,x=!1;const E=n.count!==void 0&&typeof n.count!="string",O=Mh.hasDefaultValue(n),S=E?this.pluralResolver.getSuffix(l,n.count,n):"",R=n.ordinal&&E?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):"",D=n[`defaultValue${S}`]||n[`defaultValue${R}`]||n.defaultValue;!this.isValidLookup(f)&&O&&(T=!0,f=D),this.isValidLookup(f)||(x=!0,f=a);const P=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:f,I=O&&D!==f&&this.options.updateMissing;if(x||T||I){if(this.logger.log(I?"updateKey":"missingKey",l,c,a,I?D:f),i){const H=this.resolve(a,$e(de({},n),{keySeparator:!1}));H&&H.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let j=[];const W=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&W&&W[0])for(let H=0;H<W.length;H++)j.push(W[H]);else this.options.saveMissingTo==="all"?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);const F=(H,$,G)=>{const K=O&&G!==f?G:P;this.options.missingKeyHandler?this.options.missingKeyHandler(H,c,$,K,I,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(H,c,$,K,I,n),this.emit("missingKey",H,c,$,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?j.forEach(H=>{this.pluralResolver.getSuffixes(H,n).forEach($=>{F([H],a+$,n[`defaultValue${$}`]||D)})}):F(j,a,D))}f=this.extendTranslation(f,t,n,p,r),x&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${a}`),(x||T)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${a}`:a,T?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(p.res=f,p):f}extendTranslation(t,n,r,o,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,de(de({},this.options.interpolation.defaultVariables),r),o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init($e(de({},r),{interpolation:de(de({},this.options.interpolation),r.interpolation)}));const l=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(l){const f=t.match(this.interpolator.nestingRegexp);d=f&&f.length}let p=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(p=de(de({},this.options.interpolation.defaultVariables),p)),t=this.interpolator.interpolate(t,p,r.lng||this.language,r),l){const f=t.match(this.interpolator.nestingRegexp),v=f&&f.length;d<v&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,v=new Array(f),b=0;b<f;b++)v[b]=arguments[b];return i&&i[0]===v[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):a.translate(...v,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,c=typeof s=="string"?[s]:s;return t!=null&&c&&c.length&&r.applyPostProcessor!==!1&&(t=ML.handle(c,t,n,this.options&&this.options.postProcessPassResolved?de({i18nResolved:o},r):r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,a,s;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const l=this.extractFromKey(c,n),d=l.key;o=d;let p=l.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const f=n.count!==void 0&&typeof n.count!="string",v=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",_=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(y=>{this.isValidLookup(r)||(s=y,!UR[`${_[0]}-${y}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(UR[`${_[0]}-${y}`]=!0,this.logger.warn(`key "${o}" for languages "${_.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(C=>{if(this.isValidLookup(r))return;a=C;const k=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(k,d,C,y,n);else{let x;f&&(x=this.pluralResolver.getSuffix(C,n.count,n));const E=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(k.push(d+x),n.ordinal&&x.indexOf(O)===0&&k.push(d+x.replace(O,this.options.pluralSeparator)),v&&k.push(d+E)),b){const S=`${d}${this.options.contextSeparator}${n.context}`;k.push(S),f&&(k.push(S+x),n.ordinal&&x.indexOf(O)===0&&k.push(S+x.replace(O,this.options.pluralSeparator)),v&&k.push(S+E))}}let T;for(;T=k.pop();)this.isValidLookup(r)||(i=T,r=this.getResource(C,y,T,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function Sy(e){return e.charAt(0).toUpperCase()+e.slice(1)}class qR{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=mi.create("languageUtils")}getScriptPartFromCode(t){if(t=Dh(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Dh(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Sy(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Sy(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Sy(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>{if(i===o||!(i.indexOf("-")<0&&o.indexOf("-")<0)&&i.indexOf(o)===0)return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],i=a=>{a&&(this.isSupportedCode(a)?o.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(a=>{o.indexOf(a)<0&&i(this.formatLanguageCode(a))}),o}}let qoe=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Yoe={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const Voe=["v1","v2","v3"],Goe=["v4"],YR={zero:0,one:1,two:2,few:3,many:4,other:5};function Qoe(){const e={};return qoe.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Yoe[t.fc]}})}),e}class Joe{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=mi.create("pluralResolver"),(!this.options.compatibilityJSON||Goe.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Qoe()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Dh(t),{type:n.ordinal?"ordinal":"cardinal"})}catch(r){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>YR[o]-YR[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Voe.includes(this.options.compatibilityJSON)}}function VR(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Hoe(e,t,n);return!i&&o&&typeof n=="string"&&(i=Rh(e,n,r),i===void 0&&(i=Rh(t,n,r))),i}class Zoe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=mi.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:zoe,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Al(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Al(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Al(n.nestingPrefix):n.nestingPrefixEscaped||Al("$t("),this.nestingSuffix=n.nestingSuffix?Al(n.nestingSuffix):n.nestingSuffixEscaped||Al(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,o){let i,a,s;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(v){return v.replace(/\$/g,"$$$$")}const d=v=>{if(v.indexOf(this.formatSeparator)<0){const C=VR(n,c,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(C,void 0,r,$e(de(de({},o),n),{interpolationkey:v})):C}const b=v.split(this.formatSeparator),_=b.shift().trim(),y=b.join(this.formatSeparator).trim();return this.format(VR(n,c,_,this.options.keySeparator,this.options.ignoreJSONStructure),y,r,$e(de(de({},o),n),{interpolationkey:_}))};this.resetRegExp();const p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>l(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?l(this.escape(v)):l(v)}].forEach(v=>{for(s=0;i=v.regex.exec(t);){const b=i[1].trim();if(a=d(b),a===void 0)if(typeof p=="function"){const y=p(t,i,o);a=typeof y=="string"?y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,b))a="";else if(f){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=$R(a));const _=v.safeValue(a);if(t=t.replace(i[0],_),f?(v.regex.lastIndex+=a.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,a;function s(c,l){const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const p=c.split(new RegExp(`${d}[ ]*{`));let f=`{${p[1]}`;c=p[0],f=this.interpolate(f,a);const v=f.match(/'/g),b=f.match(/"/g);(v&&v.length%2===0&&!b||b.length%2!==0)&&(f=f.replace(/'/g,'"'));try{a=JSON.parse(f),l&&(a=de(de({},l),a))}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,_),`${c}${d}${f}`}return delete a.defaultValue,c}for(;o=this.nestingRegexp.exec(t);){let c=[];a=de({},r),a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let l=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(p=>p.trim());o[1]=d.shift(),c=d,l=!0}if(i=n(s.call(this,o[1].trim(),a),a),i&&o[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=$R(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),l&&(i=c.reduce((d,p)=>this.format(d,p,r.lng,$e(de({},r),{interpolationkey:o[1].trim()})),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}function Koe(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(i=>{if(!i)return;const[a,...s]=i.split(":"),c=s.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=c),c==="false"&&(n[a.trim()]=!1),c==="true"&&(n[a.trim()]=!0),isNaN(c)||(n[a.trim()]=parseInt(c,10))})}return{formatName:t,formatOptions:n}}function Ol(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let a=t[i];return a||(a=e(Dh(r),o),t[i]=a),a(n)}}class Xoe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=mi.create("formatter"),this.options=t,this.formats={number:Ol((n,r)=>{const o=new Intl.NumberFormat(n,de({},r));return i=>o.format(i)}),currency:Ol((n,r)=>{const o=new Intl.NumberFormat(n,$e(de({},r),{style:"currency"}));return i=>o.format(i)}),datetime:Ol((n,r)=>{const o=new Intl.DateTimeFormat(n,de({},r));return i=>o.format(i)}),relativetime:Ol((n,r)=>{const o=new Intl.RelativeTimeFormat(n,de({},r));return i=>o.format(i,r.range||"day")}),list:Ol((n,r)=>{const o=new Intl.ListFormat(n,de({},r));return i=>o.format(i)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Ol(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((i,a)=>{const{formatName:s,formatOptions:c}=Koe(a);if(this.formats[s]){let l=i;try{const d=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},p=d.locale||d.lng||o.locale||o.lng||r;l=this.formats[s](i,p,de(de(de({},c),o),d))}catch(d){this.logger.warn(d)}return l}else this.logger.warn(`there was no format function for ${s}`);return i},t)}}function eie(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class tie extends tg{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=mi.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const i={},a={},s={},c={};return t.forEach(l=>{let d=!0;n.forEach(p=>{const f=`${l}|${p}`;!r.reload&&this.store.hasResourceBundle(l,p)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?a[f]===void 0&&(a[f]=!0):(this.state[f]=1,d=!1,a[f]===void 0&&(a[f]=!0),i[f]===void 0&&(i[f]=!0),c[p]===void 0&&(c[p]=!0)))}),d||(s[l]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const o=t.split("|"),i=o[0],a=o[1];n&&this.emit("failedLoading",i,a,n),r&&this.store.addResourceBundle(i,a,r),this.state[t]=n?-1:2;const s={};this.queue.forEach(c=>{Boe(c.loaded,[i],a),eie(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(l=>{s[l]||(s[l]={});const d=c.loaded[l];d.length&&d.forEach(p=>{s[l][p]===void 0&&(s[l][p]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:a});return}this.readingCalls++;const s=(l,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(l&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,i*2,a)},i);return}a(l,d)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const l=c(t,n);l&&typeof l.then=="function"?l.then(d=>s(null,d)).catch(s):s(null,l)}catch(l){s(l)}return}return c(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,s),this.loaded(t,a,s)})}saveMissing(t,n,r,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const c=$e(de({},a),{isUpdate:i}),l=this.backend.create.bind(this.backend);if(l.length<6)try{let d;l.length===5?d=l(t,n,r,o,c):d=l(t,n,r,o),d&&typeof d.then=="function"?d.then(p=>s(null,p)).catch(s):s(null,d)}catch(d){s(d)}else l(t,n,r,o,s,c)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}function GR(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function QR(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function fp(){}function nie(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})}class Iu extends tg{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=QR(t),this.services={},this.logger=mi,this.modules={external:[]},nie(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=GR();this.options=de(de(de({},o),this.options),QR(n)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=de(de({},o.interpolation),this.options.interpolation)),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?mi.init(i(this.modules.logger),this.options):mi.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl!="undefined"&&(c=Xoe);const l=new qR(this.options);this.store=new WR(this.options.resources,this.options);const d=this.services;d.logger=mi,d.resourceStore=this.store,d.languageUtils=l,d.pluralResolver=new Joe(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(d.formatter=i(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Zoe(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new tie(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(p){for(var f=arguments.length,v=new Array(f>1?f-1:0),b=1;b<f;b++)v[b-1]=arguments[b];t.emit(p,...v)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Mh(this.services,this.options),this.translator.on("*",function(p){for(var f=arguments.length,v=new Array(f>1?f-1:0),b=1;b<f;b++)v[b-1]=arguments[b];t.emit(p,...v)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=fp),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const a=Xc(),s=()=>{const c=(l,d)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(d),r(l,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),a}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fp;const r=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode")return n();const o=[],i=a=>{a&&this.services.languageUtils.toResolveHierarchy(a).forEach(s=>{o.indexOf(s)<0&&o.push(s)})};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>i(a)),this.options.preload&&this.options.preload.forEach(a=>i(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(t,n,r){const o=Xc();return t||(t=this.languages),n||(n=this.options.ns),r||(r=fp),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ML.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=Xc();this.emit("languageChanging",t);const i=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},a=(c,l)=>{l?(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},s=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const l=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);l&&(this.language||i(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(l)),this.loadResources(l,d=>{a(d,l)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),o}getFixedT(t,n,r){var o=this;const i=function(a,s){let c;if(typeof s!="object"){for(var l=arguments.length,d=new Array(l>2?l-2:0),p=2;p<l;p++)d[p-2]=arguments[p];c=o.options.overloadTranslationOptionHandler([a,s].concat(d))}else c=de({},s);c.lng=c.lng||i.lng,c.lngs=c.lngs||i.lngs,c.ns=c.ns||i.ns,c.keyPrefix=c.keyPrefix||r||i.keyPrefix;const f=o.options.keySeparator||".";let v;return c.keyPrefix&&Array.isArray(a)?v=a.map(b=>`${c.keyPrefix}${f}${b}`):v=c.keyPrefix?`${c.keyPrefix}${f}${a}`:a,o.t(v,c)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,c)=>{const l=this.services.backendConnector.state[`${s}|${c}`];return l===-1||l===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!o||a(i,t)))}loadNamespaces(t,n){const r=Xc();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Xc();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],i=t.filter(a=>o.indexOf(a)<0);return i.length?(this.options.preload=o.concat(i),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new qR(GR());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Iu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fp;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o=$e(de(de({},this.options),t),{isClone:!0}),i=new Iu(o);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services=de({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new WR(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Mh(i.services,o),i.translator.on("*",function(a){for(var s=arguments.length,c=new Array(s>1?s-1:0),l=1;l<s;l++)c[l-1]=arguments[l];i.emit(a,...c)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const PL=Iu.createInstance();PL.createInstance=Iu.createInstance;const rie={error:"Error"},oie={error:"Помилка"},JR="common",iie={en:rie,uk:oie},di=PL.createInstance({defaultNS:JR,resources:aie(iie,JR),lng:"en",fallbackLng:"en"}),IL={i18nextInstance:di,initPromise:di.init().then(()=>di)},Rp=new Map;Rp.set("common",IL);const NL=e=>{if(Rp.has(e.namespace))return Rp.get(e.namespace);if(e.plugins)for(const i of e.plugins)di.use(i);Object.keys(e.resource).forEach(i=>{di.addResourceBundle(i,e.namespace,e.resource[i])});const t=di.cloneInstance({defaultNS:e.namespace});let n=IL.initPromise.then(()=>t);t.on("languageChanged",i=>{di.language!==i&&di.changeLanguage(i)}),di.on("languageChanged",i=>{t.language!==i&&t.changeLanguage(i)});const r=e.language||"en";di.language!==r&&(n=n.then(()=>t.changeLanguage(r)).then(()=>t));const o={initPromise:n,i18nextInstance:t};return Rp.set(e.namespace,o),o};function aie(e,t){return Object.keys(e).reduce((n,r)=>(n[r]={[t]:e[r]},n),{})}const sie={errors:{measure:{unsupportedType:"Unsupported measure type",dimensionalCalculatedMeasure:{noContext:"DimensionalCalculatedMeasure must have 'context' property"},dimensionalBaseMeasure:{noAttributeDimExpression:"DimensionalBaseMeasure must have 'attribute'/'dim'/'expression' property",noAggAggregation:"DimensionalBaseMeasure must have 'agg' or 'aggregation' property"}},dataModelConfig:{noName:"'name' must be specified in config for DataModel",noMetadata:"'metadata' must be specified in config for DataModel"},filter:{unsupportedType:"Unsupported filter type: {{filterType}}",unsupportedDatetimeLevel:'Filters do not support the next "datetime" levels: Hours, MinutesRoundTo30, MinutesRoundTo15',membersFilterNullMember:"MembersFilter of {{attributeId}} - member cannot be null"},unsupportedDimensionalElement:"Unsupported dimensional element type"}},lie={errors:{measure:{unsupportedType:"Непідтримуваний тип measure",dimensionalCalculatedMeasure:{noContext:"DimensionalCalculatedMeasure має мати властивість 'context'"},dimensionalBaseMeasure:{noAttributeDimExpression:"DimensionalBaseMeasure має мати властивість 'attribute'/'dim'/'expression'",noAggAggregation:"DimensionalBaseMeasure має мати властивість 'agg' або 'aggregation'"}},dataModelConfig:{noName:"'name' має бути вказано в конфігурації для DataModel",noMetadata:"'metadata' має бути вказано в конфігурації для DataModel"},filter:{unsupportedType:"Непідтримуваний тип фільтра: {{filterType}}",unsupportedDatetimeLevel:'Фільтри не підтримують наступні рівні "datetime": Hours, MinutesRoundTo30, MinutesRoundTo15',membersFilterNullMember:"MembersFilter у {{attributeId}} - member не може бути нульовим"},unsupportedDimensionalElement:"Непідтримуваний тип елемента"}},cie="sdkData",uie={en:sie,uk:lie};function die(){return NL({resource:uie,language:"en",namespace:cie})}die();const ZR={table:{columns:[],rows:[]}};var ky;(function(e){e[e.None=0]="None",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"})(ky=ky||(ky={}));var Ty;(function(e){e.TEXT="text",e.NUMERIC="numeric",e.DATETIME="datetime"})(Ty=Ty||(Ty={}));var Ey;(function(e){e.ASC="asc",e.DESC="desc"})(Ey=Ey||(Ey={}));var Ay,KR;function pie(){if(KR)return Ay;KR=1;var e=js(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch(r){}}();return Ay=t,Ay}var Oy,XR;function ox(){if(XR)return Oy;XR=1;var e=pie();function t(n,r,o){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[r]=o}return Oy=t,Oy}var Ry,eD;function hie(){if(eD)return Ry;eD=1;function e(t){return function(n,r,o){for(var i=-1,a=Object(n),s=o(n),c=s.length;c--;){var l=s[t?c:++i];if(r(a[l],l,a)===!1)break}return n}}return Ry=e,Ry}var Dy,tD;function fie(){if(tD)return Dy;tD=1;var e=hie(),t=e();return Dy=t,Dy}var My,nD;function gie(){if(nD)return My;nD=1;var e=fie(),t=Yu();function n(r,o){return r&&e(r,o,t)}return My=n,My}var Py,rD;function mie(){if(rD)return Py;rD=1;var e=Q1(),t=n_(),n=1,r=2;function o(i,a,s,c){var l=s.length,d=l,p=!c;if(i==null)return!d;for(i=Object(i);l--;){var f=s[l];if(p&&f[2]?f[1]!==i[f[0]]:!(f[0]in i))return!1}for(;++l<d;){f=s[l];var v=f[0],b=i[v],_=f[1];if(p&&f[2]){if(b===void 0&&!(v in i))return!1}else{var y=new e;if(c)var C=c(b,_,v,i,a,y);if(!(C===void 0?t(_,b,n|r,c,y):C))return!1}}return!0}return Py=o,Py}var Iy,oD;function LL(){if(oD)return Iy;oD=1;var e=Ba();function t(n){return n===n&&!e(n)}return Iy=t,Iy}var Ny,iD;function vie(){if(iD)return Ny;iD=1;var e=LL(),t=Yu();function n(r){for(var o=t(r),i=o.length;i--;){var a=o[i],s=r[a];o[i]=[a,s,e(s)]}return o}return Ny=n,Ny}var Ly,aD;function jL(){if(aD)return Ly;aD=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return Ly=e,Ly}var jy,sD;function bie(){if(sD)return jy;sD=1;var e=mie(),t=vie(),n=jL();function r(o){var i=t(o);return i.length==1&&i[0][2]?n(i[0][0],i[0][1]):function(a){return a===o||e(a,o,i)}}return jy=r,jy}var Fy,lD;function ix(){if(lD)return Fy;lD=1;var e=Ki(),t=ff(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(i,a){if(e(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||t(i)?!0:r.test(i)||!n.test(i)||a!=null&&i in Object(a)}return Fy=o,Fy}var By,cD;function yie(){if(cD)return By;cD=1;var e=G1(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var i=function(){var a=arguments,s=o?o.apply(this,a):a[0],c=i.cache;if(c.has(s))return c.get(s);var l=r.apply(this,a);return i.cache=c.set(s,l)||c,l};return i.cache=new(n.Cache||e),i}return n.Cache=e,By=n,By}var Hy,uD;function wie(){if(uD)return Hy;uD=1;var e=yie(),t=500;function n(r){var o=e(r,function(a){return i.size===t&&i.clear(),a}),i=o.cache;return o}return Hy=n,Hy}var $y,dD;function _ie(){if(dD)return $y;dD=1;var e=wie(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var i=[];return o.charCodeAt(0)===46&&i.push(""),o.replace(t,function(a,s,c,l){i.push(c?l.replace(n,"$1"):s||a)}),i});return $y=r,$y}var zy,pD;function xie(){if(pD)return zy;pD=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,i=Array(o);++r<o;)i[r]=n(t[r],r,t);return i}return zy=e,zy}var Wy,hD;function Cie(){if(hD)return Wy;hD=1;var e=Uu(),t=xie(),n=Ki(),r=ff(),o=1/0,i=e?e.prototype:void 0,a=i?i.toString:void 0;function s(c){if(typeof c=="string")return c;if(n(c))return t(c,s)+"";if(r(c))return a?a.call(c):"";var l=c+"";return l=="0"&&1/c==-o?"-0":l}return Wy=s,Wy}var Uy,fD;function Sie(){if(fD)return Uy;fD=1;var e=Cie();function t(n){return n==null?"":e(n)}return Uy=t,Uy}var qy,gD;function FL(){if(gD)return qy;gD=1;var e=Ki(),t=ix(),n=_ie(),r=Sie();function o(i,a){return e(i)?i:t(i,a)?[i]:n(r(i))}return qy=o,qy}var Yy,mD;function ng(){if(mD)return Yy;mD=1;var e=ff(),t=1/0;function n(r){if(typeof r=="string"||e(r))return r;var o=r+"";return o=="0"&&1/r==-t?"-0":o}return Yy=n,Yy}var Vy,vD;function BL(){if(vD)return Vy;vD=1;var e=FL(),t=ng();function n(r,o){o=e(o,r);for(var i=0,a=o.length;r!=null&&i<a;)r=r[t(o[i++])];return i&&i==a?r:void 0}return Vy=n,Vy}var Gy,bD;function kie(){if(bD)return Gy;bD=1;var e=BL();function t(n,r,o){var i=n==null?void 0:e(n,r);return i===void 0?o:i}return Gy=t,Gy}var Qy,yD;function Tie(){if(yD)return Qy;yD=1;function e(t,n){return t!=null&&n in Object(t)}return Qy=e,Qy}var Jy,wD;function Eie(){if(wD)return Jy;wD=1;var e=FL(),t=zP(),n=Ki(),r=WP(),o=K1(),i=ng();function a(s,c,l){c=e(c,s);for(var d=-1,p=c.length,f=!1;++d<p;){var v=i(c[d]);if(!(f=s!=null&&l(s,v)))break;s=s[v]}return f||++d!=p?f:(p=s==null?0:s.length,!!p&&o(p)&&r(v,p)&&(n(s)||t(s)))}return Jy=a,Jy}var Zy,_D;function Aie(){if(_D)return Zy;_D=1;var e=Tie(),t=Eie();function n(r,o){return r!=null&&t(r,o,e)}return Zy=n,Zy}var Ky,xD;function Oie(){if(xD)return Ky;xD=1;var e=n_(),t=kie(),n=Aie(),r=ix(),o=LL(),i=jL(),a=ng(),s=1,c=2;function l(d,p){return r(d)&&o(p)?i(a(d),p):function(f){var v=t(f,d);return v===void 0&&v===p?n(f,d):e(p,v,s|c)}}return Ky=l,Ky}var Xy,CD;function Rie(){if(CD)return Xy;CD=1;function e(t){return t}return Xy=e,Xy}var e0,SD;function Die(){if(SD)return e0;SD=1;function e(t){return function(n){return n==null?void 0:n[t]}}return e0=e,e0}var t0,kD;function Mie(){if(kD)return t0;kD=1;var e=BL();function t(n){return function(r){return e(r,n)}}return t0=t,t0}var n0,TD;function Pie(){if(TD)return n0;TD=1;var e=Die(),t=Mie(),n=ix(),r=ng();function o(i){return n(i)?e(r(i)):t(i)}return n0=o,n0}var r0,ED;function Iie(){if(ED)return r0;ED=1;var e=bie(),t=Oie(),n=Rie(),r=Ki(),o=Pie();function i(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?t(a[0],a[1]):e(a):o(a)}return r0=i,r0}var o0,AD;function Nie(){if(AD)return o0;AD=1;var e=ox(),t=gie(),n=Iie();function r(o,i){var a={};return i=n(i,3),t(o,function(s,c,l){e(a,c,i(s,c,l))}),a}return o0=r,o0}Nie();function gp(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var p1={},Lie={get exports(){return p1},set exports(e){p1=e}},OD;function jie(){return OD||(OD=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(r,o,i){function a(l,d){if(!o[l]){if(!r[l]){var p=typeof gp=="function"&&gp;if(!d&&p)return p(l,!0);if(s)return s(l,!0);throw new Error("Cannot find module '"+l+"'")}d=o[l]={exports:{}},r[l][0].call(d.exports,function(f){var v=r[l][1][f];return a(v||f)},d,d.exports,n,r,o,i)}return o[l].exports}for(var s=typeof gp=="function"&&gp,c=0;c<i.length;c++)a(i[c]);return a}({1:[function(n,r,o){(function(i,a,s,c,l,d,p,f,v){var b=n("crypto");function _(O,S){S=k(O,S);var R;return(R=S.algorithm!=="passthrough"?b.createHash(S.algorithm):new E).write===void 0&&(R.write=R.update,R.end=R.update),x(S,R).dispatch(O),R.update||R.end(""),R.digest?R.digest(S.encoding==="buffer"?void 0:S.encoding):(O=R.read(),S.encoding!=="buffer"?O.toString(S.encoding):O)}(o=r.exports=_).sha1=function(O){return _(O)},o.keys=function(O){return _(O,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},o.MD5=function(O){return _(O,{algorithm:"md5",encoding:"hex"})},o.keysMD5=function(O){return _(O,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var y=b.getHashes?b.getHashes().slice():["sha1","md5"],C=(y.push("passthrough"),["buffer","hex","binary","base64"]);function k(O,S){var R={};if(R.algorithm=(S=S||{}).algorithm||"sha1",R.encoding=S.encoding||"hex",R.excludeValues=!!S.excludeValues,R.algorithm=R.algorithm.toLowerCase(),R.encoding=R.encoding.toLowerCase(),R.ignoreUnknown=S.ignoreUnknown===!0,R.respectType=S.respectType!==!1,R.respectFunctionNames=S.respectFunctionNames!==!1,R.respectFunctionProperties=S.respectFunctionProperties!==!1,R.unorderedArrays=S.unorderedArrays===!0,R.unorderedSets=S.unorderedSets!==!1,R.unorderedObjects=S.unorderedObjects!==!1,R.replacer=S.replacer||void 0,R.excludeKeys=S.excludeKeys||void 0,O===void 0)throw new Error("Object argument required.");for(var D=0;D<y.length;++D)y[D].toLowerCase()===R.algorithm.toLowerCase()&&(R.algorithm=y[D]);if(y.indexOf(R.algorithm)===-1)throw new Error('Algorithm "'+R.algorithm+'" not supported. supported values: '+y.join(", "));if(C.indexOf(R.encoding)===-1&&R.algorithm!=="passthrough")throw new Error('Encoding "'+R.encoding+'" not supported. supported values: '+C.join(", "));return R}function T(O){if(typeof O=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(O))!=null}function x(O,S,R){R=R||[];function D(P){return S.update?S.update(P,"utf8"):S.write(P,"utf8")}return{dispatch:function(P){return this["_"+((P=O.replacer?O.replacer(P):P)===null?"null":typeof P)](P)},_object:function(P){var I,j=Object.prototype.toString.call(P),W=/\[object (.*)\]/i.exec(j);if(W=(W=W?W[1]:"unknown:["+j+"]").toLowerCase(),0<=(j=R.indexOf(P)))return this.dispatch("[CIRCULAR:"+j+"]");if(R.push(P),s!==void 0&&s.isBuffer&&s.isBuffer(P))return D("buffer:"),D(P);if(W==="object"||W==="function"||W==="asyncfunction")return j=Object.keys(P),O.unorderedObjects&&(j=j.sort()),O.respectType===!1||T(P)||j.splice(0,0,"prototype","__proto__","constructor"),O.excludeKeys&&(j=j.filter(function(F){return!O.excludeKeys(F)})),D("object:"+j.length+":"),I=this,j.forEach(function(F){I.dispatch(F),D(":"),O.excludeValues||I.dispatch(P[F]),D(",")});if(!this["_"+W]){if(O.ignoreUnknown)return D("["+W+"]");throw new Error('Unknown object type "'+W+'"')}this["_"+W](P)},_array:function(P,F){F=F!==void 0?F:O.unorderedArrays!==!1;var j=this;if(D("array:"+P.length+":"),!F||P.length<=1)return P.forEach(function(H){return j.dispatch(H)});var W=[],F=P.map(function(H){var $=new E,G=R.slice();return x(O,$,G).dispatch(H),W=W.concat(G.slice(R.length)),$.read().toString()});return R=R.concat(W),F.sort(),this._array(F,!1)},_date:function(P){return D("date:"+P.toJSON())},_symbol:function(P){return D("symbol:"+P.toString())},_error:function(P){return D("error:"+P.toString())},_boolean:function(P){return D("bool:"+P.toString())},_string:function(P){D("string:"+P.length+":"),D(P.toString())},_function:function(P){D("fn:"),T(P)?this.dispatch("[native]"):this.dispatch(P.toString()),O.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(P.name)),O.respectFunctionProperties&&this._object(P)},_number:function(P){return D("number:"+P.toString())},_xml:function(P){return D("xml:"+P.toString())},_null:function(){return D("Null")},_undefined:function(){return D("Undefined")},_regexp:function(P){return D("regex:"+P.toString())},_uint8array:function(P){return D("uint8array:"),this.dispatch(Array.prototype.slice.call(P))},_uint8clampedarray:function(P){return D("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(P))},_int8array:function(P){return D("int8array:"),this.dispatch(Array.prototype.slice.call(P))},_uint16array:function(P){return D("uint16array:"),this.dispatch(Array.prototype.slice.call(P))},_int16array:function(P){return D("int16array:"),this.dispatch(Array.prototype.slice.call(P))},_uint32array:function(P){return D("uint32array:"),this.dispatch(Array.prototype.slice.call(P))},_int32array:function(P){return D("int32array:"),this.dispatch(Array.prototype.slice.call(P))},_float32array:function(P){return D("float32array:"),this.dispatch(Array.prototype.slice.call(P))},_float64array:function(P){return D("float64array:"),this.dispatch(Array.prototype.slice.call(P))},_arraybuffer:function(P){return D("arraybuffer:"),this.dispatch(new Uint8Array(P))},_url:function(P){return D("url:"+P.toString())},_map:function(P){return D("map:"),P=Array.from(P),this._array(P,O.unorderedSets!==!1)},_set:function(P){return D("set:"),P=Array.from(P),this._array(P,O.unorderedSets!==!1)},_file:function(P){return D("file:"),this.dispatch([P.name,P.size,P.type,P.lastModfied])},_blob:function(){if(O.ignoreUnknown)return D("[blob]");throw Error(`Hashing Blob objects is currently not supported
|
|
389
|
+
(see https://github.com/puleos/object-hash/issues/26)
|
|
390
|
+
Use "options.replacer" or "options.ignoreUnknown"
|
|
391
|
+
`)},_domwindow:function(){return D("domwindow")},_bigint:function(P){return D("bigint:"+P.toString())},_process:function(){return D("process")},_timer:function(){return D("timer")},_pipe:function(){return D("pipe")},_tcp:function(){return D("tcp")},_udp:function(){return D("udp")},_tty:function(){return D("tty")},_statwatcher:function(){return D("statwatcher")},_securecontext:function(){return D("securecontext")},_connection:function(){return D("connection")},_zlib:function(){return D("zlib")},_context:function(){return D("context")},_nodescript:function(){return D("nodescript")},_httpparser:function(){return D("httpparser")},_dataview:function(){return D("dataview")},_signal:function(){return D("signal")},_fsevent:function(){return D("fsevent")},_tlswrap:function(){return D("tlswrap")}}}function E(){return{buf:"",write:function(O){this.buf+=O},end:function(O){this.buf+=O},read:function(){return this.buf}}}o.writeToStream=function(O,S,R){return R===void 0&&(R=S,S={}),x(S=k(O,S),R).dispatch(O)}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(n,r,o){(function(i,a,s,c,l,d,p,f,v){(function(b){var _=typeof Uint8Array!="undefined"?Uint8Array:Array,y=43,C=47,k=48,T=97,x=65,E=45,O=95;function S(R){return R=R.charCodeAt(0),R===y||R===E?62:R===C||R===O?63:R<k?-1:R<k+10?R-k+26+26:R<x+26?R-x:R<T+26?R-T+26:void 0}b.toByteArray=function(R){var D,P;if(0<R.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var I=R.length,I=R.charAt(I-2)==="="?2:R.charAt(I-1)==="="?1:0,j=new _(3*R.length/4-I),W=0<I?R.length-4:R.length,F=0;function H($){j[F++]=$}for(D=0;D<W;D+=4,0)H((16711680&(P=S(R.charAt(D))<<18|S(R.charAt(D+1))<<12|S(R.charAt(D+2))<<6|S(R.charAt(D+3))))>>16),H((65280&P)>>8),H(255&P);return I==2?H(255&(P=S(R.charAt(D))<<2|S(R.charAt(D+1))>>4)):I==1&&(H((P=S(R.charAt(D))<<10|S(R.charAt(D+1))<<4|S(R.charAt(D+2))>>2)>>8&255),H(255&P)),j},b.fromByteArray=function(R){var D,P,I,j,W=R.length%3,F="";function H($){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt($)}for(D=0,I=R.length-W;D<I;D+=3)P=(R[D]<<16)+(R[D+1]<<8)+R[D+2],F+=H((j=P)>>18&63)+H(j>>12&63)+H(j>>6&63)+H(63&j);switch(W){case 1:F=(F+=H((P=R[R.length-1])>>2))+H(P<<4&63)+"==";break;case 2:F=(F=(F+=H((P=(R[R.length-2]<<8)+R[R.length-1])>>10))+H(P>>4&63))+H(P<<2&63)+"="}return F}})(o===void 0?this.base64js={}:o)}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(n,r,o){(function(i,a,y,c,l,d,p,f,v){var b=n("base64-js"),_=n("ieee754");function y(N,z,Q){if(!(this instanceof y))return new y(N,z,Q);var re,ue,ie,be,De=typeof N;if(z==="base64"&&De=="string")for(N=(be=N).trim?be.trim():be.replace(/^\s+|\s+$/g,"");N.length%4!=0;)N+="=";if(De=="number")re=K(N);else if(De=="string")re=y.byteLength(N,z);else{if(De!="object")throw new Error("First argument needs to be a number, array or string.");re=K(N.length)}if(y._useTypedArrays?ue=y._augment(new Uint8Array(re)):((ue=this).length=re,ue._isBuffer=!0),y._useTypedArrays&&typeof N.byteLength=="number")ue._set(N);else if(Z(be=N)||y.isBuffer(be)||be&&typeof be=="object"&&typeof be.length=="number")for(ie=0;ie<re;ie++)y.isBuffer(N)?ue[ie]=N.readUInt8(ie):ue[ie]=N[ie];else if(De=="string")ue.write(N,0,z);else if(De=="number"&&!y._useTypedArrays&&!Q)for(ie=0;ie<re;ie++)ue[ie]=0;return ue}function C(N,z,Q,re){return y._charsWritten=fe(function(ue){for(var ie=[],be=0;be<ue.length;be++)ie.push(255&ue.charCodeAt(be));return ie}(z),N,Q,re)}function k(N,z,Q,re){return y._charsWritten=fe(function(ue){for(var ie,be,De=[],we=0;we<ue.length;we++)be=ue.charCodeAt(we),ie=be>>8,be=be%256,De.push(be),De.push(ie);return De}(z),N,Q,re)}function T(N,z,Q){var re="";Q=Math.min(N.length,Q);for(var ue=z;ue<Q;ue++)re+=String.fromCharCode(N[ue]);return re}function x(N,z,Q,ie){ie||(oe(typeof Q=="boolean","missing or invalid endian"),oe(z!=null,"missing offset"),oe(z+1<N.length,"Trying to read beyond buffer length"));var ue,ie=N.length;if(!(ie<=z))return Q?(ue=N[z],z+1<ie&&(ue|=N[z+1]<<8)):(ue=N[z]<<8,z+1<ie&&(ue|=N[z+1])),ue}function E(N,z,Q,ie){ie||(oe(typeof Q=="boolean","missing or invalid endian"),oe(z!=null,"missing offset"),oe(z+3<N.length,"Trying to read beyond buffer length"));var ue,ie=N.length;if(!(ie<=z))return Q?(z+2<ie&&(ue=N[z+2]<<16),z+1<ie&&(ue|=N[z+1]<<8),ue|=N[z],z+3<ie&&(ue+=N[z+3]<<24>>>0)):(z+1<ie&&(ue=N[z+1]<<16),z+2<ie&&(ue|=N[z+2]<<8),z+3<ie&&(ue|=N[z+3]),ue+=N[z]<<24>>>0),ue}function O(N,z,Q,re){if(re||(oe(typeof Q=="boolean","missing or invalid endian"),oe(z!=null,"missing offset"),oe(z+1<N.length,"Trying to read beyond buffer length")),!(N.length<=z))return re=x(N,z,Q,!0),32768&re?-1*(65535-re+1):re}function S(N,z,Q,re){if(re||(oe(typeof Q=="boolean","missing or invalid endian"),oe(z!=null,"missing offset"),oe(z+3<N.length,"Trying to read beyond buffer length")),!(N.length<=z))return re=E(N,z,Q,!0),2147483648&re?-1*(4294967295-re+1):re}function R(N,z,Q,re){return re||(oe(typeof Q=="boolean","missing or invalid endian"),oe(z+3<N.length,"Trying to read beyond buffer length")),_.read(N,z,Q,23,4)}function D(N,z,Q,re){return re||(oe(typeof Q=="boolean","missing or invalid endian"),oe(z+7<N.length,"Trying to read beyond buffer length")),_.read(N,z,Q,52,8)}function P(N,z,Q,re,ue){if(ue||(oe(z!=null,"missing value"),oe(typeof re=="boolean","missing or invalid endian"),oe(Q!=null,"missing offset"),oe(Q+1<N.length,"trying to write beyond buffer length"),ge(z,65535)),ue=N.length,!(ue<=Q))for(var ie=0,be=Math.min(ue-Q,2);ie<be;ie++)N[Q+ie]=(z&255<<8*(re?ie:1-ie))>>>8*(re?ie:1-ie)}function I(N,z,Q,re,ue){if(ue||(oe(z!=null,"missing value"),oe(typeof re=="boolean","missing or invalid endian"),oe(Q!=null,"missing offset"),oe(Q+3<N.length,"trying to write beyond buffer length"),ge(z,4294967295)),ue=N.length,!(ue<=Q))for(var ie=0,be=Math.min(ue-Q,4);ie<be;ie++)N[Q+ie]=z>>>8*(re?ie:3-ie)&255}function j(N,z,Q,re,ue){ue||(oe(z!=null,"missing value"),oe(typeof re=="boolean","missing or invalid endian"),oe(Q!=null,"missing offset"),oe(Q+1<N.length,"Trying to write beyond buffer length"),Se(z,32767,-32768)),N.length<=Q||P(N,0<=z?z:65535+z+1,Q,re,ue)}function W(N,z,Q,re,ue){ue||(oe(z!=null,"missing value"),oe(typeof re=="boolean","missing or invalid endian"),oe(Q!=null,"missing offset"),oe(Q+3<N.length,"Trying to write beyond buffer length"),Se(z,2147483647,-2147483648)),N.length<=Q||I(N,0<=z?z:4294967295+z+1,Q,re,ue)}function F(N,z,Q,re,ue){ue||(oe(z!=null,"missing value"),oe(typeof re=="boolean","missing or invalid endian"),oe(Q!=null,"missing offset"),oe(Q+3<N.length,"Trying to write beyond buffer length"),_e(z,34028234663852886e22,-34028234663852886e22)),N.length<=Q||_.write(N,z,Q,re,23,4)}function H(N,z,Q,re,ue){ue||(oe(z!=null,"missing value"),oe(typeof re=="boolean","missing or invalid endian"),oe(Q!=null,"missing offset"),oe(Q+7<N.length,"Trying to write beyond buffer length"),_e(z,17976931348623157e292,-17976931348623157e292)),N.length<=Q||_.write(N,z,Q,re,52,8)}o.Buffer=y,o.SlowBuffer=y,o.INSPECT_MAX_BYTES=50,y.poolSize=8192,y._useTypedArrays=function(){try{var N=new ArrayBuffer(0),z=new Uint8Array(N);return z.foo=function(){return 42},z.foo()===42&&typeof z.subarray=="function"}catch(Q){return!1}}(),y.isEncoding=function(N){switch(String(N).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},y.isBuffer=function(N){return!(N==null||!N._isBuffer)},y.byteLength=function(N,z){var Q;switch(N+="",z||"utf8"){case"hex":Q=N.length/2;break;case"utf8":case"utf-8":Q=se(N).length;break;case"ascii":case"binary":case"raw":Q=N.length;break;case"base64":Q=ve(N).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":Q=2*N.length;break;default:throw new Error("Unknown encoding")}return Q},y.concat=function(N,z){if(oe(Z(N),`Usage: Buffer.concat(list, [totalLength])
|
|
392
|
+
list should be an Array.`),N.length===0)return new y(0);if(N.length===1)return N[0];if(typeof z!="number")for(ue=z=0;ue<N.length;ue++)z+=N[ue].length;for(var Q=new y(z),re=0,ue=0;ue<N.length;ue++){var ie=N[ue];ie.copy(Q,re),re+=ie.length}return Q},y.prototype.write=function(N,z,Q,re){isFinite(z)?isFinite(Q)||(re=Q,Q=void 0):(we=re,re=z,z=Q,Q=we),z=Number(z)||0;var ue,ie,be,De,we=this.length-z;switch((!Q||we<(Q=Number(Q)))&&(Q=we),re=String(re||"utf8").toLowerCase()){case"hex":ue=function(Be,Ee,Oe,Ae){Oe=Number(Oe)||0;var Le=Be.length-Oe;(!Ae||Le<(Ae=Number(Ae)))&&(Ae=Le),oe((Le=Ee.length)%2==0,"Invalid hex string"),Le/2<Ae&&(Ae=Le/2);for(var Fe=0;Fe<Ae;Fe++){var lt=parseInt(Ee.substr(2*Fe,2),16);oe(!isNaN(lt),"Invalid hex string"),Be[Oe+Fe]=lt}return y._charsWritten=2*Fe,Fe}(this,N,z,Q);break;case"utf8":case"utf-8":ie=this,be=z,De=Q,ue=y._charsWritten=fe(se(N),ie,be,De);break;case"ascii":case"binary":ue=C(this,N,z,Q);break;case"base64":ie=this,be=z,De=Q,ue=y._charsWritten=fe(ve(N),ie,be,De);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ue=k(this,N,z,Q);break;default:throw new Error("Unknown encoding")}return ue},y.prototype.toString=function(N,z,Q){var re,ue,ie,be,De=this;if(N=String(N||"utf8").toLowerCase(),z=Number(z)||0,(Q=Q!==void 0?Number(Q):De.length)===z)return"";switch(N){case"hex":re=function(we,Be,Ee){var Oe=we.length;(!Be||Be<0)&&(Be=0),(!Ee||Ee<0||Oe<Ee)&&(Ee=Oe);for(var Ae="",Le=Be;Le<Ee;Le++)Ae+=X(we[Le]);return Ae}(De,z,Q);break;case"utf8":case"utf-8":re=function(we,Be,Ee){var Oe="",Ae="";Ee=Math.min(we.length,Ee);for(var Le=Be;Le<Ee;Le++)we[Le]<=127?(Oe+=me(Ae)+String.fromCharCode(we[Le]),Ae=""):Ae+="%"+we[Le].toString(16);return Oe+me(Ae)}(De,z,Q);break;case"ascii":case"binary":re=T(De,z,Q);break;case"base64":ue=De,be=Q,re=(ie=z)===0&&be===ue.length?b.fromByteArray(ue):b.fromByteArray(ue.slice(ie,be));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":re=function(we,Be,Ee){for(var Oe=we.slice(Be,Ee),Ae="",Le=0;Le<Oe.length;Le+=2)Ae+=String.fromCharCode(Oe[Le]+256*Oe[Le+1]);return Ae}(De,z,Q);break;default:throw new Error("Unknown encoding")}return re},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},y.prototype.copy=function(N,z,Q,re){if(z=z||0,(re=re||re===0?re:this.length)!==(Q=Q||0)&&N.length!==0&&this.length!==0){oe(Q<=re,"sourceEnd < sourceStart"),oe(0<=z&&z<N.length,"targetStart out of bounds"),oe(0<=Q&&Q<this.length,"sourceStart out of bounds"),oe(0<=re&&re<=this.length,"sourceEnd out of bounds"),re>this.length&&(re=this.length);var ue=(re=N.length-z<re-Q?N.length-z+Q:re)-Q;if(ue<100||!y._useTypedArrays)for(var ie=0;ie<ue;ie++)N[ie+z]=this[ie+Q];else N._set(this.subarray(Q,Q+ue),z)}},y.prototype.slice=function(N,z){var Q=this.length;if(N=G(N,Q,0),z=G(z,Q,Q),y._useTypedArrays)return y._augment(this.subarray(N,z));for(var re=z-N,ue=new y(re,void 0,!0),ie=0;ie<re;ie++)ue[ie]=this[ie+N];return ue},y.prototype.get=function(N){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(N)},y.prototype.set=function(N,z){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(N,z)},y.prototype.readUInt8=function(N,z){if(z||(oe(N!=null,"missing offset"),oe(N<this.length,"Trying to read beyond buffer length")),!(N>=this.length))return this[N]},y.prototype.readUInt16LE=function(N,z){return x(this,N,!0,z)},y.prototype.readUInt16BE=function(N,z){return x(this,N,!1,z)},y.prototype.readUInt32LE=function(N,z){return E(this,N,!0,z)},y.prototype.readUInt32BE=function(N,z){return E(this,N,!1,z)},y.prototype.readInt8=function(N,z){if(z||(oe(N!=null,"missing offset"),oe(N<this.length,"Trying to read beyond buffer length")),!(N>=this.length))return 128&this[N]?-1*(255-this[N]+1):this[N]},y.prototype.readInt16LE=function(N,z){return O(this,N,!0,z)},y.prototype.readInt16BE=function(N,z){return O(this,N,!1,z)},y.prototype.readInt32LE=function(N,z){return S(this,N,!0,z)},y.prototype.readInt32BE=function(N,z){return S(this,N,!1,z)},y.prototype.readFloatLE=function(N,z){return R(this,N,!0,z)},y.prototype.readFloatBE=function(N,z){return R(this,N,!1,z)},y.prototype.readDoubleLE=function(N,z){return D(this,N,!0,z)},y.prototype.readDoubleBE=function(N,z){return D(this,N,!1,z)},y.prototype.writeUInt8=function(N,z,Q){Q||(oe(N!=null,"missing value"),oe(z!=null,"missing offset"),oe(z<this.length,"trying to write beyond buffer length"),ge(N,255)),z>=this.length||(this[z]=N)},y.prototype.writeUInt16LE=function(N,z,Q){P(this,N,z,!0,Q)},y.prototype.writeUInt16BE=function(N,z,Q){P(this,N,z,!1,Q)},y.prototype.writeUInt32LE=function(N,z,Q){I(this,N,z,!0,Q)},y.prototype.writeUInt32BE=function(N,z,Q){I(this,N,z,!1,Q)},y.prototype.writeInt8=function(N,z,Q){Q||(oe(N!=null,"missing value"),oe(z!=null,"missing offset"),oe(z<this.length,"Trying to write beyond buffer length"),Se(N,127,-128)),z>=this.length||(0<=N?this.writeUInt8(N,z,Q):this.writeUInt8(255+N+1,z,Q))},y.prototype.writeInt16LE=function(N,z,Q){j(this,N,z,!0,Q)},y.prototype.writeInt16BE=function(N,z,Q){j(this,N,z,!1,Q)},y.prototype.writeInt32LE=function(N,z,Q){W(this,N,z,!0,Q)},y.prototype.writeInt32BE=function(N,z,Q){W(this,N,z,!1,Q)},y.prototype.writeFloatLE=function(N,z,Q){F(this,N,z,!0,Q)},y.prototype.writeFloatBE=function(N,z,Q){F(this,N,z,!1,Q)},y.prototype.writeDoubleLE=function(N,z,Q){H(this,N,z,!0,Q)},y.prototype.writeDoubleBE=function(N,z,Q){H(this,N,z,!1,Q)},y.prototype.fill=function(N,z,Q){if(z=z||0,Q=Q||this.length,oe(typeof(N=typeof(N=N||0)=="string"?N.charCodeAt(0):N)=="number"&&!isNaN(N),"value is not a number"),oe(z<=Q,"end < start"),Q!==z&&this.length!==0){oe(0<=z&&z<this.length,"start out of bounds"),oe(0<=Q&&Q<=this.length,"end out of bounds");for(var re=z;re<Q;re++)this[re]=N}},y.prototype.inspect=function(){for(var N=[],z=this.length,Q=0;Q<z;Q++)if(N[Q]=X(this[Q]),Q===o.INSPECT_MAX_BYTES){N[Q+1]="...";break}return"<Buffer "+N.join(" ")+">"},y.prototype.toArrayBuffer=function(){if(typeof Uint8Array=="undefined")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(y._useTypedArrays)return new y(this).buffer;for(var N=new Uint8Array(this.length),z=0,Q=N.length;z<Q;z+=1)N[z]=this[z];return N.buffer};var $=y.prototype;function G(N,z,Q){return typeof N!="number"?Q:z<=(N=~~N)?z:0<=N||0<=(N+=z)?N:0}function K(N){return(N=~~Math.ceil(+N))<0?0:N}function Z(N){return(Array.isArray||function(z){return Object.prototype.toString.call(z)==="[object Array]"})(N)}function X(N){return N<16?"0"+N.toString(16):N.toString(16)}function se(N){for(var z=[],Q=0;Q<N.length;Q++){var re=N.charCodeAt(Q);if(re<=127)z.push(N.charCodeAt(Q));else for(var ue=Q,ie=(55296<=re&&re<=57343&&Q++,encodeURIComponent(N.slice(ue,Q+1)).substr(1).split("%")),be=0;be<ie.length;be++)z.push(parseInt(ie[be],16))}return z}function ve(N){return b.toByteArray(N)}function fe(N,z,Q,re){for(var ue=0;ue<re&&!(ue+Q>=z.length||ue>=N.length);ue++)z[ue+Q]=N[ue];return ue}function me(N){try{return decodeURIComponent(N)}catch(z){return"�"}}function ge(N,z){oe(typeof N=="number","cannot write a non-number as a number"),oe(0<=N,"specified a negative value for writing an unsigned value"),oe(N<=z,"value is larger than maximum value for type"),oe(Math.floor(N)===N,"value has a fractional component")}function Se(N,z,Q){oe(typeof N=="number","cannot write a non-number as a number"),oe(N<=z,"value larger than maximum allowed value"),oe(Q<=N,"value smaller than minimum allowed value"),oe(Math.floor(N)===N,"value has a fractional component")}function _e(N,z,Q){oe(typeof N=="number","cannot write a non-number as a number"),oe(N<=z,"value larger than maximum allowed value"),oe(Q<=N,"value smaller than minimum allowed value")}function oe(N,z){if(!N)throw new Error(z||"Failed assertion")}y._augment=function(N){return N._isBuffer=!0,N._get=N.get,N._set=N.set,N.get=$.get,N.set=$.set,N.write=$.write,N.toString=$.toString,N.toLocaleString=$.toString,N.toJSON=$.toJSON,N.copy=$.copy,N.slice=$.slice,N.readUInt8=$.readUInt8,N.readUInt16LE=$.readUInt16LE,N.readUInt16BE=$.readUInt16BE,N.readUInt32LE=$.readUInt32LE,N.readUInt32BE=$.readUInt32BE,N.readInt8=$.readInt8,N.readInt16LE=$.readInt16LE,N.readInt16BE=$.readInt16BE,N.readInt32LE=$.readInt32LE,N.readInt32BE=$.readInt32BE,N.readFloatLE=$.readFloatLE,N.readFloatBE=$.readFloatBE,N.readDoubleLE=$.readDoubleLE,N.readDoubleBE=$.readDoubleBE,N.writeUInt8=$.writeUInt8,N.writeUInt16LE=$.writeUInt16LE,N.writeUInt16BE=$.writeUInt16BE,N.writeUInt32LE=$.writeUInt32LE,N.writeUInt32BE=$.writeUInt32BE,N.writeInt8=$.writeInt8,N.writeInt16LE=$.writeInt16LE,N.writeInt16BE=$.writeInt16BE,N.writeInt32LE=$.writeInt32LE,N.writeInt32BE=$.writeInt32BE,N.writeFloatLE=$.writeFloatLE,N.writeFloatBE=$.writeFloatBE,N.writeDoubleLE=$.writeDoubleLE,N.writeDoubleBE=$.writeDoubleBE,N.fill=$.fill,N.inspect=$.inspect,N.toArrayBuffer=$.toArrayBuffer,N}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(n,r,o){(function(i,a,b,c,l,d,p,f,v){var b=n("buffer").Buffer,_=4,y=new b(_);y.fill(0),r.exports={hash:function(C,k,T,x){for(var E=k(function(P,I){P.length%_!=0&&(j=P.length+(_-P.length%_),P=b.concat([P,y],j));for(var j,W=[],F=I?P.readInt32BE:P.readInt32LE,H=0;H<P.length;H+=_)W.push(F.call(P,H));return W}(C=b.isBuffer(C)?C:new b(C),x),8*C.length),k=x,O=new b(T),S=k?O.writeInt32BE:O.writeInt32LE,R=0;R<E.length;R++)S.call(O,E[R],4*R,!0);return O}}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(n,r,o){(function(i,a,b,c,l,d,p,f,v){var b=n("buffer").Buffer,_=n("./sha"),y=n("./sha256"),C=n("./rng"),k={sha1:_,sha256:y,md5:n("./md5")},T=64,x=new b(T);function E(P,I){var j=k[P=P||"sha1"],W=[];return j||O("algorithm:",P,"is not yet supported"),{update:function(F){return b.isBuffer(F)||(F=new b(F)),W.push(F),this},digest:function(F){var H=b.concat(W),H=I?function($,G,K){b.isBuffer(G)||(G=new b(G)),b.isBuffer(K)||(K=new b(K)),G.length>T?G=$(G):G.length<T&&(G=b.concat([G,x],T));for(var Z=new b(T),X=new b(T),se=0;se<T;se++)Z[se]=54^G[se],X[se]=92^G[se];return K=$(b.concat([Z,K])),$(b.concat([X,K]))}(j,I,H):j(H);return W=null,F?H.toString(F):H}}}function O(){var P=[].slice.call(arguments).join(" ");throw new Error([P,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
393
|
+
`))}x.fill(0),o.createHash=function(P){return E(P)},o.createHmac=E,o.randomBytes=function(P,I){if(!I||!I.call)return new b(C(P));try{I.call(this,void 0,new b(C(P)))}catch(j){I(j)}};var S,R=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],D=function(P){o[P]=function(){O("sorry,",P,"is not implemented yet")}};for(S in R)D(R[S])}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(n,r,o){(function(i,a,s,c,l,d,p,f,v){var b=n("./helpers");function _(O,S){O[S>>5]|=128<<S%32,O[14+(S+64>>>9<<4)]=S;for(var R=1732584193,D=-271733879,P=-1732584194,I=271733878,j=0;j<O.length;j+=16){var W=R,F=D,H=P,$=I,R=C(R,D,P,I,O[j+0],7,-680876936),I=C(I,R,D,P,O[j+1],12,-389564586),P=C(P,I,R,D,O[j+2],17,606105819),D=C(D,P,I,R,O[j+3],22,-1044525330);R=C(R,D,P,I,O[j+4],7,-176418897),I=C(I,R,D,P,O[j+5],12,1200080426),P=C(P,I,R,D,O[j+6],17,-1473231341),D=C(D,P,I,R,O[j+7],22,-45705983),R=C(R,D,P,I,O[j+8],7,1770035416),I=C(I,R,D,P,O[j+9],12,-1958414417),P=C(P,I,R,D,O[j+10],17,-42063),D=C(D,P,I,R,O[j+11],22,-1990404162),R=C(R,D,P,I,O[j+12],7,1804603682),I=C(I,R,D,P,O[j+13],12,-40341101),P=C(P,I,R,D,O[j+14],17,-1502002290),R=k(R,D=C(D,P,I,R,O[j+15],22,1236535329),P,I,O[j+1],5,-165796510),I=k(I,R,D,P,O[j+6],9,-1069501632),P=k(P,I,R,D,O[j+11],14,643717713),D=k(D,P,I,R,O[j+0],20,-373897302),R=k(R,D,P,I,O[j+5],5,-701558691),I=k(I,R,D,P,O[j+10],9,38016083),P=k(P,I,R,D,O[j+15],14,-660478335),D=k(D,P,I,R,O[j+4],20,-405537848),R=k(R,D,P,I,O[j+9],5,568446438),I=k(I,R,D,P,O[j+14],9,-1019803690),P=k(P,I,R,D,O[j+3],14,-187363961),D=k(D,P,I,R,O[j+8],20,1163531501),R=k(R,D,P,I,O[j+13],5,-1444681467),I=k(I,R,D,P,O[j+2],9,-51403784),P=k(P,I,R,D,O[j+7],14,1735328473),R=T(R,D=k(D,P,I,R,O[j+12],20,-1926607734),P,I,O[j+5],4,-378558),I=T(I,R,D,P,O[j+8],11,-2022574463),P=T(P,I,R,D,O[j+11],16,1839030562),D=T(D,P,I,R,O[j+14],23,-35309556),R=T(R,D,P,I,O[j+1],4,-1530992060),I=T(I,R,D,P,O[j+4],11,1272893353),P=T(P,I,R,D,O[j+7],16,-155497632),D=T(D,P,I,R,O[j+10],23,-1094730640),R=T(R,D,P,I,O[j+13],4,681279174),I=T(I,R,D,P,O[j+0],11,-358537222),P=T(P,I,R,D,O[j+3],16,-722521979),D=T(D,P,I,R,O[j+6],23,76029189),R=T(R,D,P,I,O[j+9],4,-640364487),I=T(I,R,D,P,O[j+12],11,-421815835),P=T(P,I,R,D,O[j+15],16,530742520),R=x(R,D=T(D,P,I,R,O[j+2],23,-995338651),P,I,O[j+0],6,-198630844),I=x(I,R,D,P,O[j+7],10,1126891415),P=x(P,I,R,D,O[j+14],15,-1416354905),D=x(D,P,I,R,O[j+5],21,-57434055),R=x(R,D,P,I,O[j+12],6,1700485571),I=x(I,R,D,P,O[j+3],10,-1894986606),P=x(P,I,R,D,O[j+10],15,-1051523),D=x(D,P,I,R,O[j+1],21,-2054922799),R=x(R,D,P,I,O[j+8],6,1873313359),I=x(I,R,D,P,O[j+15],10,-30611744),P=x(P,I,R,D,O[j+6],15,-1560198380),D=x(D,P,I,R,O[j+13],21,1309151649),R=x(R,D,P,I,O[j+4],6,-145523070),I=x(I,R,D,P,O[j+11],10,-1120210379),P=x(P,I,R,D,O[j+2],15,718787259),D=x(D,P,I,R,O[j+9],21,-343485551),R=E(R,W),D=E(D,F),P=E(P,H),I=E(I,$)}return Array(R,D,P,I)}function y(O,S,R,D,P,I){return E((S=E(E(S,O),E(D,I)))<<P|S>>>32-P,R)}function C(O,S,R,D,P,I,j){return y(S&R|~S&D,O,S,P,I,j)}function k(O,S,R,D,P,I,j){return y(S&D|R&~D,O,S,P,I,j)}function T(O,S,R,D,P,I,j){return y(S^R^D,O,S,P,I,j)}function x(O,S,R,D,P,I,j){return y(R^(S|~D),O,S,P,I,j)}function E(O,S){var R=(65535&O)+(65535&S);return(O>>16)+(S>>16)+(R>>16)<<16|65535&R}r.exports=function(O){return b.hash(O,_,16)}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(n,r,o){(function(i,a,s,c,l,d,p,f,v){r.exports=function(b){for(var _,y=new Array(b),C=0;C<b;C++)!(3&C)&&(_=4294967296*Math.random()),y[C]=_>>>((3&C)<<3)&255;return y}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(n,r,o){(function(i,a,s,c,l,d,p,f,v){var b=n("./helpers");function _(k,T){k[T>>5]|=128<<24-T%32,k[15+(T+64>>9<<4)]=T;for(var x,E,O,S=Array(80),R=1732584193,D=-271733879,P=-1732584194,I=271733878,j=-1009589776,W=0;W<k.length;W+=16){for(var F=R,H=D,$=P,G=I,K=j,Z=0;Z<80;Z++){S[Z]=Z<16?k[W+Z]:C(S[Z-3]^S[Z-8]^S[Z-14]^S[Z-16],1);var X=y(y(C(R,5),(X=D,E=P,O=I,(x=Z)<20?X&E|~X&O:!(x<40)&&x<60?X&E|X&O|E&O:X^E^O)),y(y(j,S[Z]),(x=Z)<20?1518500249:x<40?1859775393:x<60?-1894007588:-899497514)),j=I,I=P,P=C(D,30),D=R,R=X}R=y(R,F),D=y(D,H),P=y(P,$),I=y(I,G),j=y(j,K)}return Array(R,D,P,I,j)}function y(k,T){var x=(65535&k)+(65535&T);return(k>>16)+(T>>16)+(x>>16)<<16|65535&x}function C(k,T){return k<<T|k>>>32-T}r.exports=function(k){return b.hash(k,_,20,!0)}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(n,r,o){(function(i,a,s,c,l,d,p,f,v){function b(T,x){var E=(65535&T)+(65535&x);return(T>>16)+(x>>16)+(E>>16)<<16|65535&E}function _(T,x){var E,O=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),S=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),R=new Array(64);T[x>>5]|=128<<24-x%32,T[15+(x+64>>9<<4)]=x;for(var D,P,I=0;I<T.length;I+=16){for(var j=S[0],W=S[1],F=S[2],H=S[3],$=S[4],G=S[5],K=S[6],Z=S[7],X=0;X<64;X++)R[X]=X<16?T[X+I]:b(b(b((P=R[X-2],C(P,17)^C(P,19)^k(P,10)),R[X-7]),(P=R[X-15],C(P,7)^C(P,18)^k(P,3))),R[X-16]),E=b(b(b(b(Z,C(P=$,6)^C(P,11)^C(P,25)),$&G^~$&K),O[X]),R[X]),D=b(C(D=j,2)^C(D,13)^C(D,22),j&W^j&F^W&F),Z=K,K=G,G=$,$=b(H,E),H=F,F=W,W=j,j=b(E,D);S[0]=b(j,S[0]),S[1]=b(W,S[1]),S[2]=b(F,S[2]),S[3]=b(H,S[3]),S[4]=b($,S[4]),S[5]=b(G,S[5]),S[6]=b(K,S[6]),S[7]=b(Z,S[7])}return S}var y=n("./helpers"),C=function(T,x){return T>>>x|T<<32-x},k=function(T,x){return T>>>x};r.exports=function(T){return y.hash(T,_,32,!0)}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(n,r,o){(function(i,a,s,c,l,d,p,f,v){o.read=function(b,_,y,C,I){var T,x,E=8*I-C-1,O=(1<<E)-1,S=O>>1,R=-7,D=y?I-1:0,P=y?-1:1,I=b[_+D];for(D+=P,T=I&(1<<-R)-1,I>>=-R,R+=E;0<R;T=256*T+b[_+D],D+=P,R-=8);for(x=T&(1<<-R)-1,T>>=-R,R+=C;0<R;x=256*x+b[_+D],D+=P,R-=8);if(T===0)T=1-S;else{if(T===O)return x?NaN:1/0*(I?-1:1);x+=Math.pow(2,C),T-=S}return(I?-1:1)*x*Math.pow(2,T-C)},o.write=function(b,_,y,C,k,j){var x,E,O=8*j-k-1,S=(1<<O)-1,R=S>>1,D=k===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=C?0:j-1,I=C?1:-1,j=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(E=isNaN(_)?1:0,x=S):(x=Math.floor(Math.log(_)/Math.LN2),_*(C=Math.pow(2,-x))<1&&(x--,C*=2),2<=(_+=1<=x+R?D/C:D*Math.pow(2,1-R))*C&&(x++,C/=2),S<=x+R?(E=0,x=S):1<=x+R?(E=(_*C-1)*Math.pow(2,k),x+=R):(E=_*Math.pow(2,R-1)*Math.pow(2,k),x=0));8<=k;b[y+P]=255&E,P+=I,E/=256,k-=8);for(x=x<<k|E,O+=k;0<O;b[y+P]=255&x,P+=I,x/=256,O-=8);b[y+P-I]|=128*j}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(n,r,o){(function(i,a,s,c,l,d,p,f,v){var b,_,y;function C(){}(i=r.exports={}).nextTick=(_=typeof window!="undefined"&&window.setImmediate,y=typeof window!="undefined"&&window.postMessage&&window.addEventListener,_?function(k){return window.setImmediate(k)}:y?(b=[],window.addEventListener("message",function(k){var T=k.source;T!==window&&T!==null||k.data!=="process-tick"||(k.stopPropagation(),0<b.length&&b.shift()())},!0),function(k){b.push(k),window.postMessage("process-tick","*")}):function(k){setTimeout(k,0)}),i.title="browser",i.browser=!0,i.env={},i.argv=[],i.on=C,i.addListener=C,i.once=C,i.off=C,i.removeListener=C,i.removeAllListeners=C,i.emit=C,i.binding=function(k){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(k){throw new Error("process.chdir is not supported")}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})}(Lie)),p1}jie();var i0,RD;function Fie(){if(RD)return i0;RD=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o&&n(t[r],r,t)!==!1;);return t}return i0=e,i0}var a0,DD;function HL(){if(DD)return a0;DD=1;var e=ox(),t=Y1(),n=Object.prototype,r=n.hasOwnProperty;function o(i,a,s){var c=i[a];(!(r.call(i,a)&&t(c,s))||s===void 0&&!(a in i))&&e(i,a,s)}return a0=o,a0}var s0,MD;function rg(){if(MD)return s0;MD=1;var e=HL(),t=ox();function n(r,o,i,a){var s=!i;i||(i={});for(var c=-1,l=o.length;++c<l;){var d=o[c],p=a?a(i[d],r[d],d,i,r):void 0;p===void 0&&(p=r[d]),s?t(i,d,p):e(i,d,p)}return i}return s0=n,s0}var l0,PD;function Bie(){if(PD)return l0;PD=1;var e=rg(),t=Yu();function n(r,o){return r&&e(o,t(o),r)}return l0=n,l0}var c0,ID;function Hie(){if(ID)return c0;ID=1;function e(t){var n=[];if(t!=null)for(var r in Object(t))n.push(r);return n}return c0=e,c0}var u0,ND;function $ie(){if(ND)return u0;ND=1;var e=Ba(),t=t_(),n=Hie(),r=Object.prototype,o=r.hasOwnProperty;function i(a){if(!e(a))return n(a);var s=t(a),c=[];for(var l in a)l=="constructor"&&(s||!o.call(a,l))||c.push(l);return c}return u0=i,u0}var d0,LD;function ax(){if(LD)return d0;LD=1;var e=qP(),t=$ie(),n=VP();function r(o){return n(o)?e(o,!0):t(o)}return d0=r,d0}var p0,jD;function zie(){if(jD)return p0;jD=1;var e=rg(),t=ax();function n(r,o){return r&&e(o,t(o),r)}return p0=n,p0}var Ph={},Wie={get exports(){return Ph},set exports(e){Ph=e}},FD;function Uie(){return FD||(FD=1,function(e,t){var n=Zo(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function c(l,d){if(d)return l.slice();var p=l.length,f=s?s(p):new l.constructor(p);return l.copy(f),f}e.exports=c}(Wie,Ph)),Ph}var h0,BD;function qie(){if(BD)return h0;BD=1;function e(t,n){var r=-1,o=t.length;for(n||(n=Array(o));++r<o;)n[r]=t[r];return n}return h0=e,h0}var f0,HD;function Yie(){if(HD)return f0;HD=1;var e=rg(),t=J1();function n(r,o){return e(r,t(r),o)}return f0=n,f0}var g0,$D;function $L(){if($D)return g0;$D=1;var e=YP(),t=e(Object.getPrototypeOf,Object);return g0=t,g0}var m0,zD;function zL(){if(zD)return m0;zD=1;var e=BP(),t=$L(),n=J1(),r=$P(),o=Object.getOwnPropertySymbols,i=o?function(a){for(var s=[];a;)e(s,n(a)),a=t(a);return s}:r;return m0=i,m0}var v0,WD;function Vie(){if(WD)return v0;WD=1;var e=rg(),t=zL();function n(r,o){return e(r,t(r),o)}return v0=n,v0}var b0,UD;function Gie(){if(UD)return b0;UD=1;var e=HP(),t=zL(),n=ax();function r(o){return e(o,n,t)}return b0=r,b0}var y0,qD;function Qie(){if(qD)return y0;qD=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r){var o=r.length,i=new r.constructor(o);return o&&typeof r[0]=="string"&&t.call(r,"index")&&(i.index=r.index,i.input=r.input),i}return y0=n,y0}var w0,YD;function sx(){if(YD)return w0;YD=1;var e=FP();function t(n){var r=new n.constructor(n.byteLength);return new e(r).set(new e(n)),r}return w0=t,w0}var _0,VD;function Jie(){if(VD)return _0;VD=1;var e=sx();function t(n,r){var o=r?e(n.buffer):n.buffer;return new n.constructor(o,n.byteOffset,n.byteLength)}return _0=t,_0}var x0,GD;function Zie(){if(GD)return x0;GD=1;var e=/\w*$/;function t(n){var r=new n.constructor(n.source,e.exec(n));return r.lastIndex=n.lastIndex,r}return x0=t,x0}var C0,QD;function Kie(){if(QD)return C0;QD=1;var e=Uu(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;function r(o){return n?Object(n.call(o)):{}}return C0=r,C0}var S0,JD;function Xie(){if(JD)return S0;JD=1;var e=sx();function t(n,r){var o=r?e(n.buffer):n.buffer;return new n.constructor(o,n.byteOffset,n.length)}return S0=t,S0}var k0,ZD;function eae(){if(ZD)return k0;ZD=1;var e=sx(),t=Jie(),n=Zie(),r=Kie(),o=Xie(),i="[object Boolean]",a="[object Date]",s="[object Map]",c="[object Number]",l="[object RegExp]",d="[object Set]",p="[object String]",f="[object Symbol]",v="[object ArrayBuffer]",b="[object DataView]",_="[object Float32Array]",y="[object Float64Array]",C="[object Int8Array]",k="[object Int16Array]",T="[object Int32Array]",x="[object Uint8Array]",E="[object Uint8ClampedArray]",O="[object Uint16Array]",S="[object Uint32Array]";function R(D,P,I){var j=D.constructor;switch(P){case v:return e(D);case i:case a:return new j(+D);case b:return t(D,I);case _:case y:case C:case k:case T:case x:case E:case O:case S:return o(D,I);case s:return new j;case c:case p:return new j(D);case l:return n(D);case d:return new j;case f:return r(D)}}return k0=R,k0}var T0,KD;function tae(){if(KD)return T0;KD=1;var e=Ba(),t=Object.create,n=function(){function r(){}return function(o){if(!e(o))return{};if(t)return t(o);r.prototype=o;var i=new r;return r.prototype=void 0,i}}();return T0=n,T0}var E0,XD;function nae(){if(XD)return E0;XD=1;var e=tae(),t=$L(),n=t_();function r(o){return typeof o.constructor=="function"&&!n(o)?e(t(o)):{}}return E0=r,E0}var A0,eM;function rae(){if(eM)return A0;eM=1;var e=uf(),t=Fs(),n="[object Map]";function r(o){return t(o)&&e(o)==n}return A0=r,A0}var O0,tM;function oae(){if(tM)return O0;tM=1;var e=rae(),t=X1(),n=e_(),r=n&&n.isMap,o=r?t(r):e;return O0=o,O0}var R0,nM;function iae(){if(nM)return R0;nM=1;var e=uf(),t=Fs(),n="[object Set]";function r(o){return t(o)&&e(o)==n}return R0=r,R0}var D0,rM;function aae(){if(rM)return D0;rM=1;var e=iae(),t=X1(),n=e_(),r=n&&n.isSet,o=r?t(r):e;return D0=o,D0}var M0,oM;function sae(){if(oM)return M0;oM=1;var e=Q1(),t=Fie(),n=HL(),r=Bie(),o=zie(),i=Uie(),a=qie(),s=Yie(),c=Vie(),l=GP(),d=Gie(),p=uf(),f=Qie(),v=eae(),b=nae(),_=Ki(),y=Z1(),C=oae(),k=Ba(),T=aae(),x=Yu(),E=ax(),O=1,S=2,R=4,D="[object Arguments]",P="[object Array]",I="[object Boolean]",j="[object Date]",W="[object Error]",F="[object Function]",H="[object GeneratorFunction]",$="[object Map]",G="[object Number]",K="[object Object]",Z="[object RegExp]",X="[object Set]",se="[object String]",ve="[object Symbol]",fe="[object WeakMap]",me="[object ArrayBuffer]",ge="[object DataView]",Se="[object Float32Array]",_e="[object Float64Array]",oe="[object Int8Array]",N="[object Int16Array]",z="[object Int32Array]",Q="[object Uint8Array]",re="[object Uint8ClampedArray]",ue="[object Uint16Array]",ie="[object Uint32Array]",be={};be[D]=be[P]=be[me]=be[ge]=be[I]=be[j]=be[Se]=be[_e]=be[oe]=be[N]=be[z]=be[$]=be[G]=be[K]=be[Z]=be[X]=be[se]=be[ve]=be[Q]=be[re]=be[ue]=be[ie]=!0,be[W]=be[F]=be[fe]=!1;function De(we,Be,Ee,Oe,Ae,Le){var Fe,lt=Be&O,_t=Be&S,wt=Be&R;if(Ee&&(Fe=Ae?Ee(we,Oe,Ae,Le):Ee(we)),Fe!==void 0)return Fe;if(!k(we))return we;var Ge=_(we);if(Ge){if(Fe=f(we),!lt)return a(we,Fe)}else{var Me=p(we),at=Me==F||Me==H;if(y(we))return i(we,lt);if(Me==K||Me==D||at&&!Ae){if(Fe=_t||at?{}:b(we),!lt)return _t?c(we,o(Fe,we)):s(we,r(Fe,we))}else{if(!be[Me])return Ae?we:{};Fe=v(we,Me,lt)}}Le||(Le=new e);var Ft=Le.get(we);if(Ft)return Ft;Le.set(we,Fe),T(we)?we.forEach(function(Pe){Fe.add(De(Pe,Be,Ee,Pe,we,Le))}):C(we)&&we.forEach(function(Pe,Ue){Fe.set(Ue,De(Pe,Be,Ee,Ue,we,Le))});var tn=wt?_t?d:l:_t?E:x,zt=Ge?void 0:tn(we);return t(zt||we,function(Pe,Ue){zt&&(Ue=Pe,Pe=we[Ue]),n(Fe,Ue,De(Pe,Be,Ee,Ue,we,Le))}),Fe}return M0=De,M0}var P0,iM;function lae(){if(iM)return P0;iM=1;var e=sae(),t=1,n=4;function r(o){return e(o,t|n)}return P0=r,P0}lae();var Dp;(function(e){e.INCLUDE_ALL="INCLUDE_ALL",e.ADVANCED="ADVANCED",e.INVALID="INVALID",e.CONDITION="CONDITION",e.SPECIFIC_ITEMS="SPECIFIC_ITEMS"})(Dp=Dp||(Dp={}));var Mp;(function(e){e.PERIOD="PERIOD",e.DATE_RANGE="DATE_RANGE"})(Mp=Mp||(Mp={}));var Pp;(function(e){e.NUMERIC_RANGE="NUMERIC_RANGE"})(Pp=Pp||(Pp={}));var I0;(function(e){e.YEARS="years",e.QUARTERS="quarters",e.MONTHS="months",e.WEEKS="weeks",e.DAYS="days",e.HOURS="hours",e.MINUTES="minutes"})(I0=I0||(I0={}));var N0;(function(e){e.DATE_TIME="datetime",e.NUMERIC="numeric",e.TEXT="text"})(N0=N0||(N0={}));Object.assign(Object.assign(Object.assign({},Dp),Mp),Pp);var L0;(function(e){e.IS="members",e.IS_NOT="exclude",e.IS_WITHIN="isWithin",e.TOP="top",e.BOTTOM="bottom",e.AFTER="after",e.BEFORE="before",e.STARTS_WITH="startsWith",e.DOESNT_START_WITH="doesntStartWith",e.ENDS_WITH="endsWith",e.DOESNT_END_WITH="doesntEndWith",e.CONTAINS="contains",e.DOESNT_CONTAIN="doesntContain",e.EQUALS="equals",e.DOESNT_EQUAL="doesntEqual",e.IS_EMPTY="isEmpty",e.IS_NOT_EMPTY="isNotEmpty",e.GREATER_THAN="fromNotEqual",e.GREATER_THAN_OR_EQUAL="from",e.LESS_THAN="toNotEqual",e.LESS_THAN_OR_EQUAL="to",e.BETWEEN="between",e.IS_NOT_BETWEEN="isNotBetween",e.MULTIPLE_CONDITION="multipleCondition",e.NONE="none"})(L0=L0||(L0={}));const xs=e=>{if(Array.isArray(e)){const[t,...n]=e;return n.length===0?xs(t):{operator:"AND",left:xs(t),right:xs(n)}}return e};var j0;(function(e){e.and=(t,n)=>({operator:"AND",left:xs(t),right:xs(n)}),e.or=(t,n)=>({operator:"OR",left:xs(t),right:xs(n)})})(j0=j0||(j0={}));class cae{constructor(t){q(this,"dataLoadService"),q(this,"socket"),this.socket=t}destroy(){}prepareRequest(t){return Promise.resolve(t)}prepareLoadService(t,n=!1){return this.dataLoadService&&(n||this.dataLoadService.isFormattingChanges(t))?this.dataLoadService:new RL(this.socket)}prepareDataService(t){const n=new CI(t);return{loadData:(r,o,i)=>{if(!n)throw new Error('No DataService defined during "prepareDataService"');return n.loadData(r,{pageSize:o,isPaginated:i})}}}loadInitData(t,n=!0,r=100,o=!1){return PP(this,null,function*(){const i=n?r:void 0;try{const a=yield this.prepareRequest(t);this.dataLoadService=this.prepareLoadService(a,o);const{loadData:s}=this.prepareDataService(this.dataLoadService),{rowsTreeService:c,columnsTreeService:l,cornerTreeService:d,isLastPage:p}=yield s(o?void 0:a,i,n);return this.transformTreeStructuresToResultData({rowsTreeService:c,columnsTreeService:l,cornerTreeService:d,isLastPage:p})}catch(a){console.error('Error during loading initial page"',a)}return ZR})}buildColumnsHelper(t,n,r,o){var i;const a=`${r}${r===""?"":" | "}${(i=o.value)==null?void 0:i.toString()}`;o.children?o.children.forEach(s=>{this.buildColumnsHelper(t,n,a,s)}):n.push({name:a,type:t})}transformGridToColumns(t,n){const r=[];return n==null||n[0].forEach(o=>{typeof o!="string"&&this.buildColumnsHelper(t,r,"",o)}),r||[]}transformTreeStructuresToResultData(t){const{rowsTreeService:n,columnsTreeService:r,cornerTreeService:o}=t;if(!n||!r||!o)return ZR;let i=[];i=o.getGrid();let a=[];a=r.getGrid();let s=[];s=n.getGrid();const c=this.transformGridToColumns("string",i),l=this.transformGridToColumns("number",a),d=[...c,...l];let p=[];p=n.extractData(r);const f=p.length,v=d.length,b=[];let _=0,y=0;return Array.from(Array(f)).map((C,k)=>{const T=[];Array.from(Array(v)).map((x,E)=>{var O,S;let R;if(E<c.length){_=k,y=E;try{R=s[_][y]}catch(P){throw new Error(`Can't find data item for ${_}-${y}`)}}else{_=k,y=E-c.length;try{R=p[_][y]}catch(P){throw new Error(`Can't find data item for ${_}-${y}`)}}let D;if(typeof R=="string"){const P=R.split("-");if(P.length===2){const I=Number(P[0]),j=Number(P[1]);R=s[I][j],D=((O=R.value)==null?void 0:O.toString())||""}else D=""}else D=((S=R.value)==null?void 0:S.toString())||"";T.push({data:D,text:D})}),b.push(T)}),{table:{columns:d,rows:b},grids:{corner:i,rows:s,columns:a,values:p}}}}const uae={errorPrefix:"[request-error]",errors:{networkError:"Network error. Probably you forgot to add your domain to 'CORS Allowed Origins' in Sisense Admin Panel -> Security Settings.",ssoNotEnabled:"SSO is not enabled on target instance, please choose another authentication method.",ssoNoLoginUrl:"Can not fetch login URL on target instance. Check SSO settings.",passwordAuthFailed:"$t(errorPrefix) Username and password authentication was not successful. Check credentials.",tokenAuthFailed:"$t(errorPrefix) Token authentication was not successful. Check credentials.",responseError_onlyStatus:"$t(errorPrefix) Status: {{status}}",responseError_withStatusText:"$t(errorPrefix) Status: {{status}} - {{statusText}}"}},dae={errorPrefix:"[request-error]",errors:{networkError:"Помилка мережі. Можливо ви забули додати свій домен до «CORS Allowed Origins» в панелі адміністратора Sisense -> Security Settings.",ssoNotEnabled:"SSO не ввімкнено на цьому сервері, будь ласка, виберіть інший метод аутентифікації",ssoNoLoginUrl:"Неможливо отримати loginUrl з сервера. Перевірте налаштування SSO.",passwordAuthFailed:"$t(errorPrefix) Помилка автентифікації за допомогою імені користувача та пароля. Перевірте дані для входу.",tokenAuthFailed:"$t(errorPrefix) Помилка автентифікації за допомогою токена. Перевірте дані для входу.",responseError_onlyStatus:"$t(errorPrefix) Статус: {{status}}",responseError_withStatusText:"$t(errorPrefix) Статус: {{status}} - {{statusText}}"}},pae="sdkRestClient",hae={en:uae,uk:dae};function fae(){return NL({resource:hae,language:"en",namespace:pae})}fae();function gae(e){return e.type==="sso"}function mae(e){return e.type==="bearer"}function vae(e){return e.type==="wat"}var Zn=typeof globalThis!="undefined"&&globalThis||typeof self!="undefined"&&self||typeof global!="undefined"&&global||{},fr={searchParams:"URLSearchParams"in Zn,iterable:"Symbol"in Zn&&"iterator"in Symbol,blob:"FileReader"in Zn&&"Blob"in Zn&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in Zn,arrayBuffer:"ArrayBuffer"in Zn};function bae(e){return e&&DataView.prototype.isPrototypeOf(e)}if(fr.arrayBuffer)var yae=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],wae=ArrayBuffer.isView||function(e){return e&&yae.indexOf(Object.prototype.toString.call(e))>-1};function gc(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function lx(e){return typeof e!="string"&&(e=String(e)),e}function cx(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return fr.iterable&&(t[Symbol.iterator]=function(){return t}),t}function Rn(e){this.map={},e instanceof Rn?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){if(t.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}Rn.prototype.append=function(e,t){e=gc(e),t=lx(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};Rn.prototype.delete=function(e){delete this.map[gc(e)]};Rn.prototype.get=function(e){return e=gc(e),this.has(e)?this.map[e]:null};Rn.prototype.has=function(e){return this.map.hasOwnProperty(gc(e))};Rn.prototype.set=function(e,t){this.map[gc(e)]=lx(t)};Rn.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};Rn.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),cx(e)};Rn.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),cx(e)};Rn.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),cx(e)};fr.iterable&&(Rn.prototype[Symbol.iterator]=Rn.prototype.entries);function F0(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}}function WL(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function _ae(e){var t=new FileReader,n=WL(t);return t.readAsArrayBuffer(e),n}function xae(e){var t=new FileReader,n=WL(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8";return t.readAsText(e,o),n}function Cae(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function aM(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function UL(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:fr.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:fr.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:fr.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():fr.arrayBuffer&&fr.blob&&bae(e)?(this._bodyArrayBuffer=aM(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):fr.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||wae(e))?this._bodyArrayBuffer=aM(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):fr.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},fr.blob&&(this.blob=function(){var e=F0(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=F0(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(fr.blob)return this.blob().then(_ae);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var e=F0(this);if(e)return e;if(this._bodyBlob)return xae(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Cae(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},fr.formData&&(this.formData=function(){return this.text().then(Tae)}),this.json=function(){return this.text().then(JSON.parse)},this}var Sae=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function kae(e){var t=e.toUpperCase();return Sae.indexOf(t)>-1?t:e}function ja(e,t){if(!(this instanceof ja))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof ja){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Rn(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new Rn(t.headers)),this.method=kae(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in Zn){var i=new AbortController;return i.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ja.prototype.clone=function(){return new ja(this,{body:this._bodyInit})};function Tae(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),o=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function Eae(e){var t=new Rn,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(`
|
|
394
|
+
`)===0?r.substr(1,r.length):r}).forEach(function(r){var o=r.split(":"),i=o.shift().trim();if(i){var a=o.join(":").trim();try{t.append(i,a)}catch(s){console.warn("Response "+s.message)}}}),t}UL.call(ja.prototype);function Jo(e,t){if(!(this instanceof Jo))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new Rn(t.headers),this.url=t.url||"",this._initBody(e)}UL.call(Jo.prototype);Jo.prototype.clone=function(){return new Jo(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Rn(this.headers),url:this.url})};Jo.error=function(){var e=new Jo(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var Aae=[301,302,303,307,308];Jo.redirect=function(e,t){if(Aae.indexOf(t)===-1)throw new RangeError("Invalid status code");return new Jo(null,{status:t,headers:{location:e}})};var ka=Zn.DOMException;try{new ka}catch(e){ka=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},ka.prototype=Object.create(Error.prototype),ka.prototype.constructor=ka}function ux(e,t){return new Promise(function(n,r){var o=new ja(e,t);if(o.signal&&o.signal.aborted)return r(new ka("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var l={statusText:i.statusText,headers:Eae(i.getAllResponseHeaders()||"")};o.url.indexOf("file://")===0&&(i.status<200||i.status>599)?l.status=200:l.status=i.status,l.url="responseURL"in i?i.responseURL:l.headers.get("X-Request-URL");var d="response"in i?i.response:i.responseText;setTimeout(function(){n(new Jo(d,l))},0)},i.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request timed out"))},0)},i.onabort=function(){setTimeout(function(){r(new ka("Aborted","AbortError"))},0)};function s(l){try{return l===""&&Zn.location.href?Zn.location.href:l}catch(d){return l}}if(i.open(o.method,s(o.url),!0),o.credentials==="include"?i.withCredentials=!0:o.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&(fr.blob?i.responseType="blob":fr.arrayBuffer&&(i.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof Rn||Zn.Headers&&t.headers instanceof Zn.Headers)){var c=[];Object.getOwnPropertyNames(t.headers).forEach(function(l){c.push(gc(l)),i.setRequestHeader(l,lx(t.headers[l]))}),o.headers.forEach(function(l,d){c.indexOf(d)===-1&&i.setRequestHeader(d,l)})}else o.headers.forEach(function(l,d){i.setRequestHeader(d,l)});o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){i.readyState===4&&o.signal.removeEventListener("abort",a)}),i.send(typeof o._bodyInit=="undefined"?null:o._bodyInit)})}ux.polyfill=!0;Zn.fetch||(Zn.fetch=ux,Zn.Headers=Rn,Zn.Request=ja,Zn.Response=Jo);const Oae=Object.freeze(Object.defineProperty({__proto__:null,get DOMException(){return ka},Headers:Rn,Request:ja,Response:Jo,fetch:ux},Symbol.toStringTag,{value:"Module"})),Rae=Ti(Oae);var sM,lM;function Dae(){return lM||(lM=1,sM=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){var r=n(1),o=typeof importScripts=="function";e.exports=r(o?self:window)},function(e,t,n){function r(a){if(Array.isArray(a)){for(var s=0,c=Array(a.length);s<a.length;s++)c[s]=a[s];return c}else return Array.from(a)}var o=[];function i(a){for(var s=arguments.length,c=Array(s>1?s-1:0),l=1;l<s;l++)c[l-1]=arguments[l];var d=o.reduce(function(f,v){return[v].concat(f)},[]),p=Promise.resolve(c);return d.forEach(function(f){var v=f.request,b=f.requestError;(v||b)&&(p=p.then(function(_){return v.apply(void 0,r(_))},b))}),p=p.then(function(f){var v=new(Function.prototype.bind.apply(Request,[null].concat(r(f))));return a(v).then(function(b){return b.request=v,b}).catch(function(b){return b.request=v,Promise.reject(b)})}),d.forEach(function(f){var v=f.response,b=f.responseError;(v||b)&&(p=p.then(v,b))}),p}e.exports=function(a){if(!a.fetch)try{n(2)}catch(s){throw Error("No fetch available. Unable to register fetch-intercept")}return a.fetch=function(s){return function(){for(var c=arguments.length,l=Array(c),d=0;d<c;d++)l[d]=arguments[d];return i.apply(void 0,[s].concat(l))}}(a.fetch),{register:function(s){return o.push(s),function(){var c=o.indexOf(s);c>=0&&o.splice(c,1)}},clear:function(){o=[]}}}},function(e,t){e.exports=Rae}])),sM}Dae();class Mae{constructor(){q(this,"events"),q(this,"ready",!0),q(this,"onMessageCallback"),this.events=new Wu,this.ready=!0}isReady(){return this.ready}on(t,n){this.events.on(t,n)}off(t,n){this.events.removeListener(t,n)}send(t,...n){const r=t||n;this.ready=!!r||!0}onMessage(t,n,r){this.onMessageCallback=r;const o=()=>{};return this.on("message",o),()=>{this.off("message",o)}}trigger(t,n){return new Promise(r=>{setTimeout(()=>{this.onMessageCallback&&this.onMessageCallback(t,n),r()},10)})}}const Pae="pivot2";class Iae{constructor(t,n=!1){q(this,"_socket"),q(this,"_httpClient"),q(this,"_mockSocket"),this._httpClient=t,this._mockSocket=n}getQueryOptionsSso(t){return{}}getQueryOptionsBearer(t){const n=t.bearer;if(!n)throw new Error("Missing bearer token");return{token:n}}getQueryOptionsWat(t){const n=new Headers;t.applyHeader(n);const r=n.get("Authorization"),o=n.get("Initialiser");if(!r||!o)throw new Error("Missing auth header");return{authorization:r,initialiser:o}}get socket(){if(!this._socket){if(this._mockSocket)return this._socket=new Mae,this._socket;const t=this._httpClient.auth,n=this._httpClient.url;let r={};mae(t)?r=this.getQueryOptionsBearer(t):vae(t)?r=this.getQueryOptionsWat(t):gae(t)&&(r=this.getQueryOptionsSso(t)),this._socket=new tx(n+Pae,r)}return this._socket}}class qL{constructor(t,n=!1){q(this,"socketBuilder"),this.socketBuilder=new Iae(t,n)}queryData(t,n,r,o){return PP(this,null,function*(){return new cae(this.socketBuilder.socket).loadInitData(t,n,r,o)})}prepareDataService(){const t=new RL(this.socketBuilder.socket);return new CI(t)}preparePivotBuilder(){const t=this.prepareDataService();return new Wre(t)}}(function(){try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('.multi-grid{position:relative;display:block;overflow:hidden}.table-grid{position:relative;direction:ltr;will-change:transform;-webkit-overflow-scrolling:touch;background:#fff;user-select:text;-webkit-touch-callout:text;overflow-x:hidden;overflow-y:hidden}.table-grid,.table-grid *{box-sizing:border-box}.table-grid--top.table-grid--left,.table-grid--top.table-grid--right,.table-grid--bottom.table-grid--left,.table-grid--bottom.table-grid--right{position:absolute}.table-grid--top.table-grid--left,.table-grid--top.table-grid--right,.table-grid--bottom.table-grid--left{overflow-x:hidden;overflow-y:hidden}.table-grid__table{position:relative;display:table;table-layout:fixed;border-spacing:0;border-collapse:collapse}.table-grid__tbody{border-style:inherit;border-color:inherit;border-width:inherit;display:table-row-group}.table-grid__colgroup{display:table-column-group}.table-grid__column{display:table-column}.table-grid__row{border-style:inherit;border-color:inherit;border-width:inherit;display:table-row}.table-grid__cell{position:static!important;display:table-cell;vertical-align:top;box-sizing:border-box;white-space:nowrap;font-size:0;line-height:0;max-width:100%;margin:0;padding:0;border:solid 0 black;border-color:inherit;border-top-color:transparent;border-left-color:transparent}.table-grid__cell--row-0{border-top-color:inherit}.table-grid__cell--col-0,.table-grid__cell--columns{border-left-color:inherit}.table-grid__cell--fixed-width{white-space:normal}.table-grid__cell--fixed-width .table-grid__content{text-overflow:ellipsis}.table-grid__cell--fixed-width .table-grid__content__inner{display:inline;margin-right:0}.table-grid__cell-corner{border-style:inherit;border-color:inherit;border-width:inherit;position:relative;top:0;left:0;border-width:0}.table-grid__content{display:inline-block;font-size:15px;line-height:16px;position:relative;z-index:1}.table-grid__content__wrapper{display:inline;position:relative;z-index:1}.table-grid__content__inner{display:inline;position:relative;margin-right:1px;z-index:1}.table-grid__cell-corner{position:relative}.table-grid__cell-anchor{border-width:0;line-height:0;font-size:0;margin:0;padding:0}.table-grid__cell-anchor-content{width:0;height:0;line-height:0;font-size:0;overflow:hidden}.table-grid__cell--sorted .table-grid__content__inner{margin-right:16px}.table-grid__cell--sorted.table-grid__cell--fixed-width .table-grid__content__inner{margin-right:15px}.table-grid__cell--sorted .table-grid__icon--sorted,.table-grid__cell--sorted .table-grid__sorting-settings-icon{z-index:2;top:4px;right:3px;outline:none;display:inline-block;position:absolute;width:16px;height:12px}.table-grid__cell--sorted .table-grid__icon--sorted:after,.table-grid__cell--sorted .table-grid__sorting-settings-icon:after{display:inline-block;position:absolute;left:20%;top:25%;font-size:15px}.table-grid__cell--sorted .table-grid__icon--sorted:hover,.table-grid__cell--sorted .table-grid__sorting-settings-icon:hover{cursor:pointer}.table-grid--data{left:0!important;overflow-x:visible!important;overflow-y:visible!important}.multi-grid--no-fixed-left .table-grid--fixed.table-grid--rows,.multi-grid--no-fixed-left .table-grid--fixed.table-grid--corner,.multi-grid--no-rows .table-grid--fixed.table-grid--rows,.multi-grid--no-columns .table-grid--fixed.table-grid--columns,.multi-grid--no-corner .table-grid--fixed.table-grid--corner{opacity:0;visibility:hidden}.table-grid--fixed{position:absolute;display:block;opacity:0;transition:opacity 0s ease;background:#fff;overflow:hidden;z-index:10}.table-grid--fixed.active{opacity:1}.table-grid--fixed.table-grid--rows{top:0;left:0;bottom:0}.table-grid--fixed.table-grid--columns{top:0;left:0;right:0}.table-grid--fixed.table-grid--corner{top:0;left:0}.sis-scope .sisense-pivot__pagination-panel .MuiTablePagination-root{background-color:initial;overflow:initial}.sis-scope .sisense-pivot__pagination-panel .MuiTablePagination-root .MuiTablePagination-select{background-color:initial}.sis-scope .sisense-pivot__pagination-panel .MuiTablePagination-root .MuiTablePagination-toolbar{min-height:0}.sis-scope .sisense-pivot__pagination-panel{display:block;transition:opacity .3s ease}.sis-scope .sisense-pivot__pagination-panel--hidden{display:none}.sis-scope .sisense-pivot__pagination-panel .sisense-pivot__pagination-panel-list-wrapper,.sis-scope .sisense-pivot__pagination-panel .sisense-pivot__pagination-panel-total-wrapper,.sis-scope .sisense-pivot__pagination-panel .sisense-pivot__pagination-panel-notification{visibility:hidden;opacity:0}.sis-scope .sisense-pivot__pagination-panel-wrapper{display:flex;justify-content:space-between;align-items:center}.sis-scope .sisense-pivot__pagination-panel-list-wrapper{flex:1}.sis-scope .sisense-pivot__pagination-panel-list{display:flex;align-items:center;margin:0;padding:0;list-style:none}.sis-scope .sisense-pivot__pagination-panel-notification{display:flex;align-items:center;overflow:hidden;white-space:nowrap;cursor:pointer}.sis-scope .sisense-pivot__pagination-panel-notification-more{outline:none;margin-left:5px;margin-right:5px}.sis-scope .sisense-pivot__pagination-panel-total-wrapper{display:flex;overflow:hidden;white-space:nowrap;justify-content:flex-end}.sis-scope .sisense-pivot__pagination-panel-rows-count{padding-left:10px;margin-right:10px;border-left:1px solid #d8d8d8;pointer-events:none;overflow:hidden;text-overflow:ellipsis}.sis-scope .sisense-pivot__pagination-panel--showed .sisense-pivot__pagination-panel-list-wrapper,.sis-scope .sisense-pivot__pagination-panel--showed .sisense-pivot__pagination-panel-total-wrapper,.sis-scope .sisense-pivot__pagination-panel--notification-only .sisense-pivot__pagination-panel-notification,.sis-scope .sisense-pivot__pagination-panel--limits-only .sisense-pivot__pagination-panel-total-wrapper{visibility:visible;opacity:1}.sis-scope .sisense-pivot__pagination-panel--limits-only .sisense-pivot__pagination-panel-rows-count{border-left:none}.sis-scope .pivot-scroller,.sis-scope .pivot-scroller__container{height:40px}.sisense-pivot__resize-control{position:absolute;top:0;right:0;width:4px;height:50px;margin-left:-4px;cursor:col-resize;z-index:4}.sisense-pivot__data-bar{position:absolute;top:8px;left:0;width:50%;height:10px;padding:0 8px;opacity:0}.sisense-pivot__data-bar--show{opacity:0;transition:opacity .3s ease}.sisense-pivot__data-bar--show-active{opacity:1}.sisense-pivot__data-bar-inner{position:relative;height:100%;overflow:hidden}.sisense-pivot__data-bar-bar{position:absolute;top:0;height:100%;min-width:8px;background:green}.sisense-pivot{position:relative;height:100%;-webkit-text-size-adjust:none}.sisense-pivot .table-grid__content{overflow:hidden;max-width:100%}.sisense-pivot>.scroll-elem__horizontal-track,.sisense-pivot>.scroll-elem__vertical-track{z-index:5;opacity:0;transition:opacity .3s ease}.sisense-pivot ::-webkit-scrollbar{display:none}.sisense-pivot .scroll-elem__horizontal-track,.sisense-pivot .scroll-elem__vertical-track{opacity:0;transition:opacity .3s ease}.sisense-pivot:hover .scroll-elem__horizontal-track,.sisense-pivot:hover .scroll-elem__vertical-track{opacity:1}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--left .table-grid__border-bottom{display:block}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--left .table-grid__cell--level-last:not(.table-grid__cell--sibling-last):not(.table-grid__cell--merged-columns){border-bottom-color:transparent}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--left .table-grid__cell--level-first.table-grid__cell--level-last:not(.table-grid__cell--merged-columns):not(.table-grid__cell--sibling-last){border-bottom-color:transparent}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--left .table-grid__cell--level-first.table-grid__cell--level-last.table-grid__cell--user-type-grandTotal{border-bottom-color:transparent}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--left .table-grid__cell--level-first.table-grid__cell--level-last.table-grid__cell--user-type-grandTotal .table-grid__cell-virtual-border{position:absolute;bottom:100%;left:0;display:block;width:2000px;height:1px;border-style:inherit;border-bottom-color:inherit;border-width:0}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--right .table-grid__border-bottom{display:block}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--right .table-grid__cell--row-level-last:not(.table-grid__cell--row-sibling-last):not(.table-grid__cell--row-user-type-subTotal):not(.table-grid__cell--col-user-type-subTotal):not(.table-grid__cell--col-user-type-grandTotal){border-bottom-color:transparent}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--right .table-grid__cell--row-user-type-grandTotal{border-bottom-color:transparent}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--right .table-grid__cell--row-user-type-grandTotal .table-grid__cell-virtual-border{position:absolute;bottom:100%;left:0;display:block;width:2000px;height:1px;border-style:inherit;border-bottom-color:inherit;border-width:0}.sisense-pivot__multi-grid--resize-in-progress{cursor:col-resize}.sisense-pivot__overlay{position:absolute;inset:0;z-index:1000000}@media print{div#root{margin:0!important;padding:0!important}.print-preview div.print-layout{margin:0!important;padding:0!important;background:none}.print-preview.print-layout div.print-layout__page{margin:0!important;padding:0!important;box-shadow:none;page-break-inside:avoid;page-break-after:always}}.print-preview.print-layout.print-layout__with-footer .page-footer{visibility:visible}.print-preview.print-layout .print-layout__page{display:flex;flex-flow:column;padding:0}.print-preview.print-layout .page-footer{flex-shrink:0;display:flex;flex-flow:column;justify-content:center;visibility:hidden;height:16px;clear:both;box-sizing:border-box;padding-top:10px;text-align:center}.print-preview.print-layout .page-footer>span,.print-preview.print-layout .page-footer div{flex-shrink:0;font-size:10px}.print-preview [contenteditable]:empty:before{content:attr(placeholder);display:block}.print-preview .title::-ms-clear{display:none}.print-preview .page-header{overflow:initial;height:40px;flex-shrink:0}.print-preview .page-header.page-header__content--show .page-header__title-container,.print-preview .page-header.page-header__content--show .page-header__header-divider,.print-preview .page-header.page-header__content--show .page-header__title{display:block}.print-preview .page-header .page-header__content,.print-preview .page-header .page-header__title-container,.print-preview .page-header .page-header__header-divider,.print-preview .page-header .page-header__title{display:none}.print-preview .page-header .page-header__content{height:34px;display:flex;flex-flow:row wrap;position:relative;z-index:3}.print-preview .page-header .page-header__content .page-header__title{text-overflow:ellipsis;overflow:hidden;word-wrap:normal;word-break:keep-all;white-space:nowrap;flex-grow:0;flex-shrink:0;order:1;background:rgba(0,0,0,0);border:none;outline:0;cursor:text;margin-right:10px;padding-left:5px;-webkit-user-select:text;user-select:text}.print-preview .page-header .page-header__content.page-header__title-container--focused .page-header__rename-controls{display:block}.print-preview .page-header .page-header__content.page-header__title-container--focused .page-header__editors{display:flex;align-items:center}.print-preview .page-header .page-header__content.page-header__title-container--focused .page-header__title{text-overflow:ellipsis;overflow:hidden;word-wrap:normal;word-break:keep-all;white-space:nowrap;flex-grow:0;flex-shrink:0;order:1;background:rgba(0,0,0,0);border:none;outline:0;cursor:text;margin-right:10px;padding-left:5px;-webkit-user-select:text;user-select:text}.print-preview .page-header .page-header__content .page-header__title-container,.print-preview .page-header .page-header__content .page-header__rename-controls{float:left}.print-preview .page-header .page-header__content .page-header__title-container{text-overflow:ellipsis;overflow:hidden;word-wrap:normal;word-break:keep-all;white-space:nowrap;font-size:16px;height:26px;width:100%;display:flex;flex-flow:row;justify-content:flex-start}.print-preview .page-header .page-header__content .page-header__rename-controls{display:none;flex-basis:32px;flex-grow:0;flex-shrink:0;order:1}.print-preview .page-header .page-header__content .page-header__rename-controls .page-header__rename-controls__action{float:left;cursor:pointer;vertical-align:middle;width:16px;height:16px}.print-preview .page-header .page-header__content .page-header__rename-controls .page-header__rename-controls__action--ok:after{content:"V";color:#adff2f}.print-preview .page-header .page-header__content .page-header__rename-controls .page-header__rename-controls__action--ok:hover:after{content:"V";color:green}.print-preview .page-header .page-header__content .page-header__rename-controls .page-header__rename-controls__action--cancel:after{content:"X";color:orchid}.print-preview .page-header .page-header__content .page-header__rename-controls .page-header__rename-controls__action--cancel:hover:after{content:"X";color:red}.print-preview .page-header .page-header__content .page-header__header-divider{margin-top:6px;bottom:5px;border:1px solid #e5e5e5;position:relative;width:100%}.print-preview .page-header .page-header__content .page-header__editors{padding-left:10px;padding-right:10px;display:none;position:relative;width:275px;height:34px;background-color:#fff;border:solid 1px #e5e5e5}.print-preview .page-header .page-header__content .page-header__editors .page-header__vertical-line{margin-left:10px;border-left:1px solid #e5e5e5;height:16px}.print-preview .page-header .page-header__content .page-header__editors div{background:none;border:none;margin-left:15px}.print-preview .page-header .page-header__content .page-header__editors .page-header__editors__left-text,.print-preview .page-header .page-header__content .page-header__editors .page-header__editors__center-text,.print-preview .page-header .page-header__content .page-header__editors .page-header__editors__end-text{width:17px;height:16px}.print-preview .page-header .page-header__content .page-header__editors .page-header__editors__left-text:after{content:"L"}.print-preview .page-header .page-header__content .page-header__editors .page-header__editors__center-text:after{content:"C"}.print-preview .page-header .page-header__content .page-header__editors .page-header__editors__end-text:after{content:"R"}.sis-scope .sorting-settings-header{flex-shrink:0;background-color:#f4f4f8;width:100%;height:42px;padding:10px 10px 10px 16px;border-top-left-radius:4px;border-top-right-radius:4px;display:flex;flex-direction:row;justify-content:space-between;font-size:15px}.sis-scope .header-text{display:flex;flex-flow:row nowrap;width:calc(100% - 24px)}.sis-scope .header-text__sort-by{font-weight:700;flex-shrink:0}.sis-scope .header-text__hierarchy-container{flex-grow:1;text-overflow:ellipsis;padding:0 .5em;display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:top}.sis-scope .cross-icon{position:relative;top:-2px;color:#5b6372;border-radius:50%;min-width:24px}.sis-scope .cross-icon:hover{cursor:pointer;background-color:#d1d1d7}.sis-scope .direction-selector{margin-top:.2em;margin-left:2.4em;font-weight:400;min-width:152px;width:152px}.sis-scope.direction-selector__menu{background-color:#fff!important}.sis-scope .settings-item+.settings-item{margin-top:.9em}.sis-scope .checkbox-input{display:flex;align-items:center;padding-right:8px}.sis-scope .checkbox-input .wrapper-of-input-highlighted{background-color:#5b63721a;border-radius:50%}.sis-scope .checkbox-input .subtotals-caption{margin-left:.2em}.sis-scope .checkbox-input .custom-checkbox{width:28px;height:28px}.sis-scope .checkbox-input .custom-checkbox__label{cursor:pointer}.sis-scope .checkbox-input .checkbox-input__text-wrapper{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sis-scope .checkbox-input .checkbox-input__label{display:flex;align-items:center;height:28px;cursor:pointer;max-width:calc(100% - 28px)}.sis-scope .simple-sorting-settings{width:200px;box-shadow:0 0 5px #3a435633;border-radius:4px;display:flex;flex-direction:column;background-color:#fff}.sis-scope .simple-sorting-settings .header-text{width:100%}.sis-scope .simple-sorting-settings__actions{padding:10px 0;display:flex;flex-direction:column;align-items:flex-start}.sis-scope .simple-sorting-settings__actions>div{width:100%}.sis-scope .simple-sorting-settings__actions>div>div{width:100%;border-radius:0;padding:5px 16px;margin:0;height:auto;cursor:pointer}.sis-scope .simple-sorting-settings__actions>div>div:hover{background:rgba(91,99,114,.1)}.sis-scope .complex-sorting-settings{box-shadow:0 0 5px #3a435633;border-radius:4px;width:320px;height:100%;display:flex;justify-content:space-between;flex-direction:column;max-height:386px;background-color:#fff}.sis-scope .complex-sorting-settings__body{overflow:auto;flex-grow:1;padding:17px 17px 14px}.sis-scope .complex-sorting-settings__actions{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:8px 16px 14px}.sis-scope .complex-sorting-settings__actions .sp-buttons{margin:0 0 0 auto}.sis-scope .complex-sorting-settings__actions .sp-buttons button{min-width:74px}.sis-scope .complex-sorting-settings__actions .sp-buttons>button:first-child+button{margin-left:10px}.sis-scope .complex-sorting-settings .settings-checkboxes{margin-left:-3px;margin-top:15px}body .prism-widget-preview .sisense-pivot__pagination-panel-wrapper,div#idk .prism-widget-preview .sisense-pivot__pagination-panel-wrapper{padding-bottom:0}body .sisense-pivot__pagination-panel-list-wrapper,body .sisense-pivot__pagination-panel-rows-count,div#idk .sisense-pivot__pagination-panel-list-wrapper,div#idk .sisense-pivot__pagination-panel-rows-count{color:#acacac}body .sisense-pivot__pagination-panel-notification-more,div#idk .sisense-pivot__pagination-panel-notification-more{color:#1faff3}body .sisense-pivot__pagination-panel-notification-more:hover,div#idk .sisense-pivot__pagination-panel-notification-more:hover{cursor:pointer;text-decoration:underline}body .sisense-pivot__pagination-panel-page,div#idk .sisense-pivot__pagination-panel-page{margin:0}body .sisense-pivot__pagination-panel-page:hover,div#idk .sisense-pivot__pagination-panel-page:hover{text-decoration:none}body .sisense-pivot__pagination-panel-list--number .sisense-pivot__pagination-panel-page,div#idk .sisense-pivot__pagination-panel-list--number .sisense-pivot__pagination-panel-page{margin-right:6px}body .sisense-pivot__pagination-panel-list--number .sisense-pivot__pagination-panel-page:first-child,div#idk .sisense-pivot__pagination-panel-list--number .sisense-pivot__pagination-panel-page:first-child{margin-left:6px}body .sisense-pivot__pagination-panel-list--number .sisense-pivot__pagination-panel-page:not(.sisense-pivot__pagination-panel-page--disabled):hover,div#idk .sisense-pivot__pagination-panel-list--number .sisense-pivot__pagination-panel-page:not(.sisense-pivot__pagination-panel-page--disabled):hover{color:#272a34;text-decoration:underline}body .sisense-pivot__pagination-panel-page--active,div#idk .sisense-pivot__pagination-panel-page--active{font-weight:400;color:#272a34}body .sisense-pivot__pagination-panel-page--first.sisense-pivot__pagination-panel-page--disabled,body .sisense-pivot__pagination-panel-page--last.sisense-pivot__pagination-panel-page--disabled,body .sisense-pivot__pagination-panel-page--previous.sisense-pivot__pagination-panel-page--disabled,body .sisense-pivot__pagination-panel-page--next.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel-page--first.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel-page--last.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel-page--previous.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel-page--next.sisense-pivot__pagination-panel-page--disabled{opacity:.5}body .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button{display:block;width:16px;height:16px;text-indent:20px;overflow:hidden;background-repeat:no-repeat}body .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABACAYAAAATffeWAAABSUlEQVR42u2VsYrCQBCGc1pZiYVwYuBAbJLKPQvL7D1EHiRNQgJJwMrOUhBbGzux8Bm0tfVhblZWCMNOdptEjPkgxQfzj0ncXy3rE7B75U7z5TK+cZl3JNwg/Mvv4+nCVnh1YcuZ8XVxGLt+AeM7+MTrYDLvq9yELryovcv+LjKEvfYl/EC42ZIfZz4q8Zbm9f8BHJQznP8V5VpE60T7niHsr1jiLVWu5XvKhvD8N2fmbVVuFBbtEwXCXl1Y/gaeisPYtci+dyhveUuCIOiVeem/dJ7nmyzLjoQbhe9hGNoKry5sweC6OIzdZMEOrmsURX2Va/F9vwu3vIfrIkLY618Ct39QufGSJElGlLc0sv8P4LCc4bCsKNciWifa9wxhr39JmqZLlWuJ43gIz3+D0FblRmHRPlEg7NWF5dd2Kg5j1yL73qG8gfwDYL8rrp3YiQAAAAAASUVORK5CYII=);background-position:0 -32px}body .sisense-pivot__pagination-panel-page--first:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--first:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button{background-position:0 0}body .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABACAYAAAATffeWAAABSUlEQVR42u2VsYrCQBCGc1pZiYVwYuBAbJLKPQvL7D1EHiRNQgJJwMrOUhBbGzux8Bm0tfVhblZWCMNOdptEjPkgxQfzj0ncXy3rE7B75U7z5TK+cZl3JNwg/Mvv4+nCVnh1YcuZ8XVxGLt+AeM7+MTrYDLvq9yELryovcv+LjKEvfYl/EC42ZIfZz4q8Zbm9f8BHJQznP8V5VpE60T7niHsr1jiLVWu5XvKhvD8N2fmbVVuFBbtEwXCXl1Y/gaeisPYtci+dyhveUuCIOiVeem/dJ7nmyzLjoQbhe9hGNoKry5sweC6OIzdZMEOrmsURX2Va/F9vwu3vIfrIkLY618Ct39QufGSJElGlLc0sv8P4LCc4bCsKNciWifa9wxhr39JmqZLlWuJ43gIz3+D0FblRmHRPlEg7NWF5dd2Kg5j1yL73qG8gfwDYL8rrp3YiQAAAAAASUVORK5CYII=);background-position:0 -48px}body .sisense-pivot__pagination-panel-page--last:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--last:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button{background-position:0 -16px}body .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABACAYAAAATffeWAAABBklEQVR42mNgGAXEAC4tQ7u94up6iqRrFVTi1zS0P65p4DCBZL28kmoiGgaOJ9UNHTrIcTajpoH9ZTU920py/U2xARR7gfJApE40joKRDpiAqe+JjIalLtkmaBpYeYMMUdCyMCfbEHUtKydNI/vnSvrmNmQboqJrZgkyRFraTJj+BlDkBUoDkfJoHAWjABn4+Phw1dbW7i0pKSG9YklLS+Ovq6s7XlNTM4EczSJAm08CNZPXPgDafBmomfz2AaUGUOwFygORKtE4CkbbB8DE86S8vJz8iqWqqsobZEhFRQX57QOgZidgXngOdAn57YPKykpLkCHZ2dnC9DeAIi9QGoiUR+MIAgDRRntRFUnDLQAAAABJRU5ErkJggg==);background-position:0 -32px}body .sisense-pivot__pagination-panel-page--previous:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--previous:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button{background-position:0 0}body .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABACAYAAAATffeWAAABBklEQVR42mNgGAXEAC4tQ7u94up6iqRrFVTi1zS0P65p4DCBZL28kmoiGgaOJ9UNHTrIcTajpoH9ZTU920py/U2xARR7gfJApE40joKRDpiAqe+JjIalLtkmaBpYeYMMUdCyMCfbEHUtKydNI/vnSvrmNmQboqJrZgkyRFraTJj+BlDkBUoDkfJoHAWjABn4+Phw1dbW7i0pKSG9YklLS+Ovq6s7XlNTM4EczSJAm08CNZPXPgDafBmomfz2AaUGUOwFygORKtE4CkbbB8DE86S8vJz8iqWqqsobZEhFRQX57QOgZidgXngOdAn57YPKykpLkCHZ2dnC9DeAIi9QGoiUR+MIAgDRRntRFUnDLQAAAABJRU5ErkJggg==);background-position:0 -48px}body .sisense-pivot__pagination-panel-page--next:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--next:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button{background-position:0 -16px}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-wrapper,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-wrapper{padding:8px 0}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-list-wrapper:last-child .sisense-pivot__pagination-panel-page,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-list-wrapper:last-child .sisense-pivot__pagination-panel-page{margin-left:10px}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-list-wrapper:first-child .sisense-pivot__pagination-panel-page,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-list-wrapper:first-child .sisense-pivot__pagination-panel-page{margin-right:10px}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first.sisense-pivot__pagination-panel-page--disabled,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last.sisense-pivot__pagination-panel-page--disabled,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous.sisense-pivot__pagination-panel-page--disabled,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next.sisense-pivot__pagination-panel-page--disabled{opacity:.2}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button{text-indent:30px;width:24px;height:24px}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first:hover .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAABgCAYAAAAHBrJUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0YWZlODM2Ni1mMTA2LTQxYTctYjg1Yy05MDRiZWZkZDNjNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NzkyMzY4MDgwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzkyMzY4MDcwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YWZhZDgxMmYtNjU4Ni00OGUxLThkZWUtOGZlOTRhMGE4YjNjIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRhZmU4MzY2LWYxMDYtNDFhNy1iODVjLTkwNGJlZmRkM2M1MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pgh/ZNoAAAVtSURBVHja3JhfiFVVFMbvPd0enIeIHiuKECEIBLFSiQaRHuahP1rhRE1/wGQCQYYxUBLKB8XswXww6SkHSSlJpQlkHsQiiJICQSiCoEjmQd9CFIdMbr91+O7mdLhn77XHex/swGIzc9dea5+9v7PWt792t9ttDfVJJXhk9Qsj2Dls3BsT33XYvMXuJBzbDIdtHdiXzuDLGL7A3rG/Own/97A12OM//3BiwRH8boavsKP4fxxNoC15G3sS50uO4HcwHMcuYlO9/3canB9l+ASbIPh559YfwB7AVjPnZmMCgt/LMIvtwfGUc9/fYngFW8Wcv6q/deqIUfCvsb1exDDsx54m+G/134s+iPkH24RzNwMx0/if7efTGSRiGhMMCjGxN7AV7MpAzEvYKHZ/FTH9nt4ZfIBtZWX3OBPYV/07tiPl2EvwPnbB9pMkRWoSq77K8CI2if+GZAIh5jXsYWyn5xWY84slwGZIsrTJr20Vr91uV7/gb7FnCXDG+R18xPCEIZA51+uVuqit6ieGbdgxJt7nPI9p7G/sYPINKqv6lOEhbC1Jbzje4kGG8/rgZhrfoPLY3tqHtM95Hn9aYcQOkWx58g20KjvwH7HXCXDSeR57GDZiK5lzJfYGtqpfGd60+qSa43ne1dd9WLWtVSRe/XOGI1bQmLDEsVX2Vb+smjaVTKDHUGXwW+88j8vapu3hDIb5FK1hP/YGxmHUmby8Z1xcaSQVu/cGu3WQyzKqabeKllSxs35w1DqUOlXqIBd06GvUCV1nMCUMH1fHSiWxzvecdcIYrSxqGN4obnPACUmrP68ah1IljqNInOYZ4zjiOp4kxp2sRMyKU8VhKm5j3Wp/BrL2ikvN1pFVNKzqrOq8C1nqiJvEqf6DrFixGwiyUl/yLSOrcFbHUXEhL7J2iWu5atEOcSDvDce41VZxreQVaoPa5ypxoVTwQud2QVwresMxrmMNfFIcyPPsFLda2WPnTazCutf32Hc4bnFuzVO6W4yK/kRZxUFxnWlncONQx6z79YI3sgqc39CNZYXoSCr4nQzfYH/gP1HvB/UrlHGaQ1YqPMH17BOHmozecAh+F8MJ7EOCn3ZuzfMMm7HHmHOtsZpW7mcXxW28N3qbs1kcKnrDmVINWZG6sVRQZpe/I/h/5rlCbde+X3bu+3pxpW0px9ufFyUTzM3NjWDnMLdehO86bD5Z7HDK1ouYszi9aGxsbMERPNz+8Y/rRdqS8vaP8yVHcL9ehHPQiwierRcxp1kvInjQi3A85dz3oBcxp1kvMsTk6kWGmJ5eRPBmvaiCmFIvwrmbgZhp/P160WIR05hgUIhJ6kUZiAl6URUxSb2IlQ1fLyJJsj6x6qAX4Z/Wi4SYLL2IOUEvIslSVz/QF1zqRQQ44/wOgl7EnOvRco1D0IuYODi9qM+qgl5E0huOtwh6Ef4znoaTpRcRNOhFJFvu6sk4Br2IACed5xH0IuZcibZMHIJepJqTpReptsV7MkmCXsSEJY6tGr5eRJL/mV5U6PTn1Zm8vGdcXGnE+wa7dZDZelEPLaliF2716lSpg7w1vUgdK5Uk3OpjtLKoYThLL1IHLPUiVeJWqpoGvUhcx5Mk6EXiVHGYituUelEGsoJeVEdW0bCqoBd5kKWOGPSiKrJixW4gyHLrRYtFVuGsjm69SMganl4kbuXTi8R5JkXLrzqC+/UicZ1SLxIHytKLeuy8iVUEvQjHLc6tCXqR6E8URVl6kThUqRdVg/d9A5yDXiQ6kgoe9CL8J2IXkJY4TakXeYJn6UUED3oRwU87tyboRcy5FmuZ2XqRalSpF4lD+fSi1I2lgrJSL8LfrxeJ09xeetG/AgwAl90b0K18FOcAAAAASUVORK5CYII=);background-position:0 0}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last:hover .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAABgCAYAAAAHBrJUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0YWZlODM2Ni1mMTA2LTQxYTctYjg1Yy05MDRiZWZkZDNjNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NzkyMzY4MDgwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzkyMzY4MDcwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YWZhZDgxMmYtNjU4Ni00OGUxLThkZWUtOGZlOTRhMGE4YjNjIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRhZmU4MzY2LWYxMDYtNDFhNy1iODVjLTkwNGJlZmRkM2M1MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pgh/ZNoAAAVtSURBVHja3JhfiFVVFMbvPd0enIeIHiuKECEIBLFSiQaRHuahP1rhRE1/wGQCQYYxUBLKB8XswXww6SkHSSlJpQlkHsQiiJICQSiCoEjmQd9CFIdMbr91+O7mdLhn77XHex/swGIzc9dea5+9v7PWt792t9ttDfVJJXhk9Qsj2Dls3BsT33XYvMXuJBzbDIdtHdiXzuDLGL7A3rG/Own/97A12OM//3BiwRH8boavsKP4fxxNoC15G3sS50uO4HcwHMcuYlO9/3canB9l+ASbIPh559YfwB7AVjPnZmMCgt/LMIvtwfGUc9/fYngFW8Wcv6q/deqIUfCvsb1exDDsx54m+G/134s+iPkH24RzNwMx0/if7efTGSRiGhMMCjGxN7AV7MpAzEvYKHZ/FTH9nt4ZfIBtZWX3OBPYV/07tiPl2EvwPnbB9pMkRWoSq77K8CI2if+GZAIh5jXsYWyn5xWY84slwGZIsrTJr20Vr91uV7/gb7FnCXDG+R18xPCEIZA51+uVuqit6ieGbdgxJt7nPI9p7G/sYPINKqv6lOEhbC1Jbzje4kGG8/rgZhrfoPLY3tqHtM95Hn9aYcQOkWx58g20KjvwH7HXCXDSeR57GDZiK5lzJfYGtqpfGd60+qSa43ne1dd9WLWtVSRe/XOGI1bQmLDEsVX2Vb+smjaVTKDHUGXwW+88j8vapu3hDIb5FK1hP/YGxmHUmby8Z1xcaSQVu/cGu3WQyzKqabeKllSxs35w1DqUOlXqIBd06GvUCV1nMCUMH1fHSiWxzvecdcIYrSxqGN4obnPACUmrP68ah1IljqNInOYZ4zjiOp4kxp2sRMyKU8VhKm5j3Wp/BrL2ikvN1pFVNKzqrOq8C1nqiJvEqf6DrFixGwiyUl/yLSOrcFbHUXEhL7J2iWu5atEOcSDvDce41VZxreQVaoPa5ypxoVTwQud2QVwresMxrmMNfFIcyPPsFLda2WPnTazCutf32Hc4bnFuzVO6W4yK/kRZxUFxnWlncONQx6z79YI3sgqc39CNZYXoSCr4nQzfYH/gP1HvB/UrlHGaQ1YqPMH17BOHmozecAh+F8MJ7EOCn3ZuzfMMm7HHmHOtsZpW7mcXxW28N3qbs1kcKnrDmVINWZG6sVRQZpe/I/h/5rlCbde+X3bu+3pxpW0px9ufFyUTzM3NjWDnMLdehO86bD5Z7HDK1ouYszi9aGxsbMERPNz+8Y/rRdqS8vaP8yVHcL9ehHPQiwierRcxp1kvInjQi3A85dz3oBcxp1kvMsTk6kWGmJ5eRPBmvaiCmFIvwrmbgZhp/P160WIR05hgUIhJ6kUZiAl6URUxSb2IlQ1fLyJJsj6x6qAX4Z/Wi4SYLL2IOUEvIslSVz/QF1zqRQQ44/wOgl7EnOvRco1D0IuYODi9qM+qgl5E0huOtwh6Ef4znoaTpRcRNOhFJFvu6sk4Br2IACed5xH0IuZcibZMHIJepJqTpReptsV7MkmCXsSEJY6tGr5eRJL/mV5U6PTn1Zm8vGdcXGnE+wa7dZDZelEPLaliF2716lSpg7w1vUgdK5Uk3OpjtLKoYThLL1IHLPUiVeJWqpoGvUhcx5Mk6EXiVHGYituUelEGsoJeVEdW0bCqoBd5kKWOGPSiKrJixW4gyHLrRYtFVuGsjm69SMganl4kbuXTi8R5JkXLrzqC+/UicZ1SLxIHytKLeuy8iVUEvQjHLc6tCXqR6E8URVl6kThUqRdVg/d9A5yDXiQ6kgoe9CL8J2IXkJY4TakXeYJn6UUED3oRwU87tyboRcy5FmuZ2XqRalSpF4lD+fSi1I2lgrJSL8LfrxeJ09xeetG/AgwAl90b0K18FOcAAAAASUVORK5CYII=);background-position:0 -24px}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous:hover .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAABgCAYAAAAHBrJUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0YWZlODM2Ni1mMTA2LTQxYTctYjg1Yy05MDRiZWZkZDNjNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NzkyMzY4MDQwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzkyMzY4MDMwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YTc4ODUzN2EtOTBiYi00YzkwLWE5MzYtZDE5YWIxMTNkMjM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRhZmU4MzY2LWYxMDYtNDFhNy1iODVjLTkwNGJlZmRkM2M1MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Ps2i47QAAANcSURBVHja7Jg/aNNREMeNVEE3l6BjByc71D8lOjh0UAISsK2oVFoUpEOhZDLglCWLUAoFp44WnLRLl1CHDA4qBV10cqhCQQfHYpFW4+d+nI8g+fN++d1JAwaOt/zyvbt379193zfXbDYPef4O9/ogl8t1tJFLNwrYdiYHnX5nLk6dZFnDHnUNsNcWSaRtwI+wNLCtD6+fz3TD6DeDJewYNtfrw6E+tuYuy23sAtHvmjoAfIzlMVYC/LPJKWoBz2tRq4A3Yv8XVWTAJdMX2BfAp//+phtG7BYtYiewa2lrNhSxNTMsYueJ/ru5Ay3qA8A/ubQKPfNlMjnu5aCGfcOWXRywNT9Z7mATZHHTIwNxIh3zHraCk+E0DlI1O8BlmwrYZZzuxdyDtM2ugh3VuthnoFmcZnmLTZHFhnUGUo+PLPPYqg4d2wxaMnnCIg6K7189+2U+MjWLYa2L/Uxmq3ZYbmELmbbInba4OxDeI/ynGz/KmoHwnrWYI5llZK7qiRlvbRGWrWJOedCSVzcV/jMpfEh5kVs3HWdZ163aNO+myoeqWvS8SzfVTJ6ynMKu4HTfg/zeV5606HKTlR9dF76kvMml2QlPeqi8yeWFIzyp3OtuZGl2y8qXaqYPEI1e+NEENqq8yfSFIz1pRQqsfMn0Jsvj7yX2BvCyBy+qKS+qWNL3P9Ff1UF/juh/mHZTHTYyE+aVF9l1U8alBFHHvgI+2+6brG+0ik6zyX6OdIyDBX0X77jM5MHnRd1+9Xq9gPnoRQDb6EUdwINeVCwWXQaOn15E9EEvIvpd02MK+JhuTQnwhukpAjzoRbHg0RkAHvQiwKetW4WvXkT0QS8iej+9CHBfvYhMBlQvYmuCXkQWqfWi6IsGeEnn8lmcbrkMHJwEvQgnex7zwF4vapNF0IvIYsN8ogEa9CIdOj5DH/CgF/EbQL2IqP/rRaGY28J/PDNI9KKYI5llZAa9KLZFHCy9SPlPohcpL/Kh74AHvQinm+bHVPlQVYueN8+gJZOgF+F03+Oi+epFyo8SvUh5k0uz89WLlCcNqF6k/CjRi5Q3mQ596UnvpMCAr1vf5KAXAV72GDh+ehHRB72I6G31Ih02iV6kvMiumwIe9CLAZz1eOP9GL1IedPD0ot8CDAAbfrXxtNlPTAAAAABJRU5ErkJggg==);background-position:0 0}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next:hover .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAABgCAYAAAAHBrJUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0YWZlODM2Ni1mMTA2LTQxYTctYjg1Yy05MDRiZWZkZDNjNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NzkyMzY4MDQwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzkyMzY4MDMwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YTc4ODUzN2EtOTBiYi00YzkwLWE5MzYtZDE5YWIxMTNkMjM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRhZmU4MzY2LWYxMDYtNDFhNy1iODVjLTkwNGJlZmRkM2M1MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Ps2i47QAAANcSURBVHja7Jg/aNNREMeNVEE3l6BjByc71D8lOjh0UAISsK2oVFoUpEOhZDLglCWLUAoFp44WnLRLl1CHDA4qBV10cqhCQQfHYpFW4+d+nI8g+fN++d1JAwaOt/zyvbt379193zfXbDYPef4O9/ogl8t1tJFLNwrYdiYHnX5nLk6dZFnDHnUNsNcWSaRtwI+wNLCtD6+fz3TD6DeDJewYNtfrw6E+tuYuy23sAtHvmjoAfIzlMVYC/LPJKWoBz2tRq4A3Yv8XVWTAJdMX2BfAp//+phtG7BYtYiewa2lrNhSxNTMsYueJ/ru5Ay3qA8A/ubQKPfNlMjnu5aCGfcOWXRywNT9Z7mATZHHTIwNxIh3zHraCk+E0DlI1O8BlmwrYZZzuxdyDtM2ugh3VuthnoFmcZnmLTZHFhnUGUo+PLPPYqg4d2wxaMnnCIg6K7189+2U+MjWLYa2L/Uxmq3ZYbmELmbbInba4OxDeI/ynGz/KmoHwnrWYI5llZK7qiRlvbRGWrWJOedCSVzcV/jMpfEh5kVs3HWdZ163aNO+myoeqWvS8SzfVTJ6ynMKu4HTfg/zeV5606HKTlR9dF76kvMml2QlPeqi8yeWFIzyp3OtuZGl2y8qXaqYPEI1e+NEENqq8yfSFIz1pRQqsfMn0Jsvj7yX2BvCyBy+qKS+qWNL3P9Ff1UF/juh/mHZTHTYyE+aVF9l1U8alBFHHvgI+2+6brG+0ik6zyX6OdIyDBX0X77jM5MHnRd1+9Xq9gPnoRQDb6EUdwINeVCwWXQaOn15E9EEvIvpd02MK+JhuTQnwhukpAjzoRbHg0RkAHvQiwKetW4WvXkT0QS8iej+9CHBfvYhMBlQvYmuCXkQWqfWi6IsGeEnn8lmcbrkMHJwEvQgnex7zwF4vapNF0IvIYsN8ogEa9CIdOj5DH/CgF/EbQL2IqP/rRaGY28J/PDNI9KKYI5llZAa9KLZFHCy9SPlPohcpL/Kh74AHvQinm+bHVPlQVYueN8+gJZOgF+F03+Oi+epFyo8SvUh5k0uz89WLlCcNqF6k/CjRi5Q3mQ596UnvpMCAr1vf5KAXAV72GDh+ehHRB72I6G31Ih02iV6kvMiumwIe9CLAZz1eOP9GL1IedPD0ot8CDAAbfrXxtNlPTAAAAABJRU5ErkJggg==);background-position:0 -24px}@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (min--moz-device-pixel-ratio: 1.5),only screen and (min-device-pixel-ratio: 1.5){body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button{background-size:24px 96px}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first:hover .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last:hover .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAADACAYAAABCkOCeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0YWZlODM2Ni1mMTA2LTQxYTctYjg1Yy05MDRiZWZkZDNjNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZGNjM3QzEwMkYyMTFFNEEwOUZGODEwMEM5N0VBRkQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MzZGNjM3QzAwMkYyMTFFNEEwOUZGODEwMEM5N0VBRkQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NmUxOTlmYWUtMGRhNS00MTllLWJiZGQtMTVkNDlmNTkwMjE5IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRhZmU4MzY2LWYxMDYtNDFhNy1iODVjLTkwNGJlZmRkM2M1MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PhFMKHUAAAzuSURBVHja7FxrjFbFGZ79iinYUHrR6GIlWtpfrdrWSyFFS9JI9xcgS9tVCNeQaNKIpmo0GKBeoylGSbSJjUCNIOJy/SOptumFBlor9rImbbSxxYKtEqu2ZTeRsj4v5znHmbPf5Zwz7/u5S75J3pw9sDsz75mZ58y873OeruHhYTeWS9cp40BXV1dURV+Y1jsNl72wXS8d2L7EorNo4zO4/Ar274H9/V+RfxunVPEU6ThsEuzTRp0/HZc9sPNgH0n/vaZQ8cdw2Q07C/YabIVB52V6PA77MmwQNk/FAVb8BOxLsGOwOZg+/zQYgDtgvfx5Kdr4ndYI3A2by58XouIXDZ7+1bjcztvvo42n/P+vRVS8AJfbeLsKFe806PxluGzg7TZxIP87tQjEeYy3W2D3GiGOrK3xsBc4dYajYZSI81su2t/AZqLiIQPE2cdF+zrsErRxxP+drN9lHCDi7OOiFcS5THvREhie5qIVxLnCX7R5B2pjCXHqldpYQpzKDowWxKnkQJsQZ3IRxCm9mcshzvNcUBaI80vYxY0Qp15piUI5xDkMuxQVv26AOFth326GOM0cqBVAHKl4tnbnWdaw84UQp8wa8BFnESo+aDDvv0MHCiNOIQdyiLMaFfcbdP4SXDaWRZyWDuQQR+bmXUaIIweTCWURpykKfXH6/DzifB0VD44GxCm6iHew84e5TRg0WLTr2fkUGI7EVug7MIXXAZjFHkfK+bzK0/+zRoW+A4tkZGDfhN1q5MC1sP/CPgv7kaoDGM693qK9C/N1pnbv0cbLsmh524c2vqs5Ao5w9hz/fSsa6DZwQmD5Id4+wE2cjgOo/P+4LOBCPotOjDOYSjfD9sNOk8ML2viU1giIE2/gIm/J47I3gd1jMArvcQtxlOCxmduXeAfYwK9xuSV9Wqh8joET/8DlGtgJWI93kFHZC0l5kO8GKZvgxFQDJ57lEVLKWrTxDTUH+HoXxHgF9gnO1fEG6+FO2E/YlyfRxjlaIyBOvMsD9hBDHOsNRuEEgUOiHGfCnoITp6k4wAb+iMt1vF2ByhcbOHGUi1oW99dg95XezLWKC6HjsktdxpDKNDT6J4Od6vXeO6IXbeyodCJrUOSt+QeY7Ci3o7GJBiOxnkEtKRvRxudUwiqsfJDrQdbF570QiHZZDvsL7ON8UBO0AlvixF9xWcLb+aj8BoNR+I/Uzal6IexhlTWQm6s/wOV7XHRy8NlvsB5kd/zjdFTQxobYNeCXWxlyEbjbhsbOMBgJSSk9ytuH0cZF0VPIq/w490uyb5I4/hY0UDNYDythBxmxk/UwScUBOiHHwau5l7lSIhgGozDE9fA2bCqRqUvFATbwM6/jq1H5LAMnXsUlfXleBbtRzQEW2W4/IzjAqXSugRN7vLfzfWhjhpoD3PQthP3dJUnuHxq9H1bBfuGS5PxmzREQJ97iXuYd2JsWvedpsQ/2N7+Nrg5bpeNAx4EsuCtvvE/CLueBW70A/ja5JO/QgzYOxNRVby8k+5nzYHsYRbYoArOyHdjF/Ft08R0QDs4gz76PV43TtCgrePaVoNlu5uF0HGB+Ko1b9nrhDk0sl6j3HO71Jf/2ROyDyocWJU+VpntuZ+Zc24kX+eZ2XA93qznAIg5s488bYoOvDZzYya2BlNuYl9NxwAtovcB9+G5yd7SLZPy38OfHmJ+rDqN1Et2SjJN1ISF2GfYZcO6YMqzKA/o57Kuwf7mEvnOoDIy2ohpIOlSSchIZ2A77VkxGsYETZ7skuSjb8N/zQf2vynug3lwd9chUJLQ4qpGp6Hlg1CJTrWDl9ZBp8mhAprKkPx+ZxJkrjJBJgOPSZshUibVYB5lkWvUZIJM8IKE7nNMImSpH5nLIJOfgNQbrQTL5s7m5bIpMVSNzPjKtIfdH2wk5nyxqhUwxUQkfmTZyamk70e8FzuoiU0xo0UemCTwIWSCT0B+2NkKm6E9Q2oRMExjUypBpYH//IZXAFoO86YITLpBFJnOQ242UArFDNTLnEu5Pymo83+g8LXumAf48RdsB4f4IB0i4QNcaOSBJFeEyDXvopPIRkGQv+3i7lJwg7XDMTOdxmchtineAm7oHePuQEUWzmygkfX3O5SiaMd/QCMdHcrqSJ5Mk380GnR/HzqdkxAWMUsc5wNf6Zi6mkzQBcoC0iyRPhLN0MidHLpPKi0y4PcLxkfzYNRahSHKU0lG9hRym+K0EOT1reXsHOT/anZeE3ibeCuY/GHsiSyuW7e2T/Dvh+Nxp0PnxXFvCUXrFtaAml/kISBar7EKF0/MaF9QJg3kvb3KJz0qKtZecJacxApIlFC7Pe1y0Rw2evqRT049JryNXKf5IiYrnMS4kZSVpMdqdvwAXyRlIaH8D2lgeHRdixcLZSbn+Txt1fiIfkHReOEmFGb21AttYqVi4O8LhWW60zxEminCQ3uW8H1RxwCVcnQsZNZtPLo/20xfO0XzeLiEnqXBpFtwVflz6Ncdi0l+0Oz+dBxVBuHVo46aif9vqK6aL3AdMqUeNOn8Gz9TS+X2uIuW/3kdAkzjv5YUikYGVBp2vMQIneYc3uM85Hu0AN2mCOPIqf5vzfshg0Uqk4UpvL1X5U5T8CAgX5ypv3r9q8PRneaES+czrpzH11byKZziPk0OOjnbnz+XUkZF+xilQ+/0RkP39OKLCKiO8Fy6RJLuFW7RQI6bqf53xJudkX/7Uo1ikjXe4l3pLo8IOW6XjQMeBSAf27s1iTJm+kPuAIN6y9PT0lGkr0xfC3+npCzG8YqovhM7b6AuhmOsLofM2+kKsOFD7cDZfwgZqH5g+NvpCLiGFaD/9QO0DndfRF0LFgdoHbKdB5230hVCxudoHESdQ+8DTH452ABWniPNRl+gLyUF/2AhxhIpzMmeMzh+LDWxJxXnEmcsImiXiSOePVI1KNEUcVNxWxIkdgQBxUHHbEaeyA3nEQcUfCuJUcqBNiDO5COKU3swRcQJ9IVQ81GAzV7WMUPtotmgLj0AOcQ5z0WqHWNIwzsVFEKewAznESSs21xdqhThlRiDQF0LFBw06H+gLFUGcQg7kEGc1Ku436LyNvlAOcUz0hVBG6AsVRZymDuT2OII4y2IqboI40vnuVnucKiOwI4c45vpCsI6+0KmjL4QpE+gLYU3MNHAg0BdyJbKRRWE00BeCE90GTgT6QtzE6TiAURihL4QGzPWF0IaevhCcMNcXcqQrOE9fiNuXeAfoRKAvhMrnGDjRXn0hODHVwIlAXwht6OkL8S0c6AuhAXN9IbShpy8EJ8z1hdDGCH0hOKGnL4QGAn0hVL7YwInK+kK1gg1s8g7cj8CJCwycEK5QypW4EW3MU3OAJdAXQgMTDZwI9IXQhp6+EHenbdcXghN6+kJwItAXQuU3GIxCKX2hWoUGJKi1jrf3w6YbODHgAcdSPKhlag6wBPpCLvkeX9uJQF8ITujpC6HyEfpCTu9bBL8E+kJwQk9fiAEoU30hBtICfaH8pq8W2UCgLwSbZeBEe/WFXPJhs7YTgb4QRmGGpgNjX18IxVxfiKfFjr5Qx4GOA40cADRl+kJYMIU/6imZYpJzxVwe4g9wcaoFtjJ9IWbKLUqmL+S87yG1HAj0harGaVqUQF/IJVwjHQeYnzJV8XBJ1DtQ8Yh9UPnQYqDiwcy5dmmvvlBs8LVBCVQ8mJfTccALaGUqHuTuaJdAxYP5OZURcMxbSQpIMilnGyHTMA/wwjmSvNwu5uniHfAOLLONkWmI6yBDJjIE4h1oFzKRc1QZmYqEFs2Ridyj9ukLWSATwzWlkalobLQeMk0eDchUajfKTgcqHpy7MU8+38YIfSH8ziGVwFYOmSTjvpGHee1Qiq/i0RSZqoQWzfWFyE0K9IUaIVPVyFygL+SSKJ22E+3VF3IJB0jbiUBfqB4yxYQWR+gLuYQLpF0CfaE8MsWGFv09UzedOF15FORBSXj9+Xp7Jo3Alrm+ELNDHX2hZmXs6gu5JHuZ6Qu5hBOkWshdyrhM5DbFO8BNXaYv5BIukHbnbfSFyPEx1RciVynQF2KUOs4BvtYDfSGX0AS0S6AvRC6Tyoss0BdyCfdH++kH+kLkMMVvJcjpWctbOWI+a9B5G30hcnlM9YV4Hgj0hZoxiMt8BDRCX4hcH+0S6AuRs+Q0RiDQFyLHR/vpB/pC5CrFn4nJ3UnzszeR26PdeeEgPZIGDshRij/Uk7OT6QuR06PdeRt9IXJ12q4vVIY5X0pfiFwe7acf6AuRk+SiHSBHZ6m3oAYMnrxwje7nz+uqfGDX6CumQF+I3B3tYqMvRE6Oqb4Q2w30hchBinOAm7RAX8jg4zfncvpCZT9+azYCgb4QuTraJdAXQhs6+kLk4GScHHJ0tMuppS/kFD5lr6svlD/1KJZMX8glHKPo0mGrfNjlfQEGADUIi1Oja/93AAAAAElFTkSuQmCC)}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous:hover .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next:hover .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAADACAYAAABCkOCeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0YWZlODM2Ni1mMTA2LTQxYTctYjg1Yy05MDRiZWZkZDNjNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NzJCNzMxMDgwMkIyMTFFNEEwOUZGODEwMEM5N0VBRkQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzJCNzMxMDcwMkIyMTFFNEEwOUZGODEwMEM5N0VBRkQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDU0YTA2YzQtN2E3ZC00Y2E0LTk2MTUtNDA1MjIxYjFhZjNhIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRhZmU4MzY2LWYxMDYtNDFhNy1iODVjLTkwNGJlZmRkM2M1MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqAMdO4AAAeHSURBVHja7FxtaJVlGH5mCyQ2M4JBIAVigqbYD6UW9CuRQ1CUm3pshaGVGfrL+TEYbAvcv1L8+JG4OdfcJjjQP3H+RD8q1iqjD4uIjEFEJKJBZYuwdd0913k979l+5Dnv855zzXPDzbNH3Nlzvc97n+e+7/d6r7rp6WmnbPOcuNWX+wF1dXUl/+5Dj7bcg+F9+I2L42dXSe0AFm9/e9h+hN+reAv1wDPwv+EbpADg6j+LoZPTnV9/NDZe8i1c7rfQrcYAFr8cwwS8Ad6PxW+zfy91HfNSvvJ3YzjHxX8Mf03maxSLt616G/4g/Bf4elz9v5TOgS74UwzaViz+J5mDDFf/aQIw243Ff5DUZwcPYix+KYZP4Y3wU1j8i7P9v6oMYiy+kUHbSBCvyuRCDNpB+DL4ZQbtlFIyZwfVM5bnwLNY/I8y2Siu/pNMFczasfj3Ql2lxIMYi1+C4RP4QvgQFv/C//mcqghiLL6BQWuL/wz+ikxBw6AdYHp8Fd6Cq/+nUkW2zxYN/we+EYuflCkpcfXXYTjA6V4s/t208pOyg3hFc+tiHlJWHo5g8c+V8jmVDOIxLv4r+MuKXYlFHCdw9f9QBPBSfkQstMgBwFU/j+EopycA4gG1HTDbA/+CB9gIQNRLAWCWmYVbDDTDX1fbAQPxLYZdnO7HLqyVOAdmSeZOY7Cz4Gf4wwB2WSaZo1nVdQl+n5WQzJEkcqH8rfQbhk3sPljrcLcUAIK4YHHAaS92YY0UANpB+DvwO+GjALFACgB2waJyC4PZEr631HbAQFzB0MYaIYtd2CYFgCCsoO/l9DBALJMCQOuGfwi/C34GIOZLAcAuWG9oM/wafCX8TbUdcGxsbeV0B3ZhvRQAgrCWyzFO+wDifikAtHb4l0ml3qkDYOptqcZ1+GPuZgtSZgeKU+8O7MITUgAIot9uIcvILWst9XPqXWVtO79Wb1SsoKm0ybNVagAqbWUH8YrmVusH3QF/HN8s10r9nEoW9cb1sYcaw+QAyd1CGwoK+B45AOT67OS0k1yg1CyxxhYW3sd0+Xf4IwD2jUoM5M24P8YB+u9JZaguRDAA5P5YkWJcIOMEDYXuyiV+DpAD1MqgNm5Ql9xBRi5Qvp3YRa5Q9QdxsWHhA843tqxXuhrAvqv2IC4261LniU7nyB3SyYVYOlpQ2/MBa2YNhgjq0K1Fa6VkWbAYd6hTLhtla7Gd0x5yiao/iGcJauOMPg//Fb4GwL6v9iAuNuMOGYdoIYO6QaqgIXfInuRfZfo9kERQp91anMSw0fnnBQZmn1xJSS7RXk4PkGtU/UE8S1Db2xv5lvvqi+Nnf1Ar6o1bZBwj4xqNyXUlyC2a4HSRHAByiyKukRQAcopOcHqUnCMNAHygMcIDzXpKe6S+Rp3nEhmnyGIgWy6jPe2XgIxDlOdQ7OKDDplkrgnD587TcIax+DaZZI45zyku/pJL8E2OtG4hK/Lzrx1uIqdIAwC5QnmuxH5yiTQqMnbnRp3nDBl36KBaSWkcIeMKGWdoCzlEGgDIDcoy928jd0ijrUJO0GFOe0O+BDQvwOKNC3TGeW6QcYS6Q96jIXbAuEArWahsJldIAwA5QDs43Rrq5bcgAMj96eP0GLlBTgJAUYpsXKD2tBLEpHbAnk4a9+c6U4UpGQDk+nQkmSKnvQOWZVq2OUIOUKqWBF/oCr8yt1eivq7xhWoAbncAZQdxLpcr59cjfaFMJrNKbQdq+kKVBBDTF8LtM64EwPSFBvlzPxZ/XOlbSFdfiPlSTF8IrqsvBNfRF4LF9IXgiekLpQHA9IWGClLvI0qphK6+EIM2pi8E19UXguvoC8Fi+kJwndYizPSFTvMWsuA9pFQP6OoL8YoPuAJ9IbiuvhB8UqmkjOkLwVPTF0oCgD1CGuVnWX/0DbWifu7oCznPf5ADUMj5aVEEENMXguvrC7kUXzJNCoC+vhAspi8EX6sGwOyk8922fC3QpAbAuSJ9IYKRAqCvLwSL6QvB9fWF4AvUAOjrCzn/BDPSF4Lr6QuxoI/0hdhmkQJg1u0K9IXg89UA6OsLOd/YivSFnO/USQFwbLlE+kJwfX2hXC5XrwZAX1+oKPXuwC7o6QvBavpCZjW+UA3A7Q4gCb5QpC/EXOeWLJPJVHwHIn2hSuxoTV8IFtMXcp4LJBfEx3mymllDa7nit1BMXyhUFyIkgBn6Qi5wVy7EOaCvL+Q8FyjSF3KeKyR3Eh8pSJHtVlqqmErE9IU4SgGYoS8UIqhDH/36+kLOtxYjfSHnuURy6fShgnPBuERLFOuBmL4QT2wpADP0hZII6rTz90mnri/kPJco0hdCRbdODYCZcYpG+PdHAWKxYlGvrS/kPK9CV1+IQaypL+Q8pyjSF8pkMueVAMwtfSFc/SklADF9IecfdMgcZE0FNYF18U4q5UJzS1/IeU6RDICYvpDzXCKZgmZu6Qs5zyGSARDTF3KeOyTTVonpCzmxl4Dmlr6QK+MhdiUAxPSFXKCX30IBiOkLsXXiVADMLX0hF+Clz5AAYvpCSaTIaQOI9IXczSeVqZZ35VpNX0itJk7U/hVgAMJfpGlj0zW2AAAAAElFTkSuQmCC)}}body .narration-tooltip--pivot2-notification.narration-tooltip.bottom.show-add,div#idk .narration-tooltip--pivot2-notification.narration-tooltip.bottom.show-add{opacity:0;transform:translateY(5px);transition:opacity .3s,transform .3s}body .narration-tooltip--pivot2-notification.narration-tooltip.bottom.show-add-active,div#idk .narration-tooltip--pivot2-notification.narration-tooltip.bottom.show-add-active{opacity:1;transform:translate(0)}body .narration-tooltip--pivot2-notification.narration-tooltip.top.show-add,div#idk .narration-tooltip--pivot2-notification.narration-tooltip.top.show-add{opacity:0;transform:translateY(-5px);transition:opacity .3s,transform .3s}body .narration-tooltip--pivot2-notification.narration-tooltip.top.show-add-active,div#idk .narration-tooltip--pivot2-notification.narration-tooltip.top.show-add-active{opacity:1;transform:translate(0)}body .narration-tooltip--pivot2-notification.narration-tooltip.show-remove,div#idk .narration-tooltip--pivot2-notification.narration-tooltip.show-remove{visibility:visible;opacity:1;transition:opacity .3s}body .narration-tooltip--pivot2-notification.narration-tooltip.show-remove-active,div#idk .narration-tooltip--pivot2-notification.narration-tooltip.show-remove-active{opacity:0}body .narration-tooltip--pivot2-notification .narration-tooltip-host,div#idk .narration-tooltip--pivot2-notification .narration-tooltip-host{width:450px}body .narration-tooltip--pivot2-notification .narration-text,div#idk .narration-tooltip--pivot2-notification .narration-text{padding:7px 13px}body .new-widget-modal .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted,body .new-widget-modal .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon,div#idk .new-widget-modal .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted,div#idk .new-widget-modal .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon{display:none}body .pivot-container,div#idk .pivot-container{position:relative;height:100%;border-style:solid;border-width:8px;border-bottom-width:3px;z-index:1}body .sisense-pivot .table-grid--top.table-grid--left .table-grid__cell--level-first,body .sisense-pivot .table-grid--top.table-grid--right .table-grid__cell--level-first,body .sisense-pivot .table-grid--bottom.table-grid--left .table-grid__cell--level-first,div#idk .sisense-pivot .table-grid--top.table-grid--left .table-grid__cell--level-first,div#idk .sisense-pivot .table-grid--top.table-grid--right .table-grid__cell--level-first,div#idk .sisense-pivot .table-grid--bottom.table-grid--left .table-grid__cell--level-first,body .sisense-pivot .table-grid__cell--corner.table-grid__cell--level-first,body .sisense-pivot .table-grid__cell--columns.table-grid__cell--level-first,body .sisense-pivot .table-grid__cell--rows.table-grid__cell--level-first,div#idk .sisense-pivot .table-grid__cell--corner.table-grid__cell--level-first,div#idk .sisense-pivot .table-grid__cell--columns.table-grid__cell--level-first,div#idk .sisense-pivot .table-grid__cell--rows.table-grid__cell--level-first{font-weight:600}body .sisense-pivot .scroll-elem__horizontal-track,div#idk .sisense-pivot .scroll-elem__horizontal-track{margin-top:2px}body .sisense-pivot .scroll-elem__vertical-track,div#idk .sisense-pivot .scroll-elem__vertical-track{margin-left:2px;z-index:10000}body .sisense-pivot__multi-grid .table-grid,div#idk .sisense-pivot__multi-grid .table-grid{z-index:1}body .sisense-pivot__multi-grid .table-grid__cell,div#idk .sisense-pivot__multi-grid .table-grid__cell{text-align:left;transition:background-color ease .3s;font-weight:400}body .sisense-pivot__multi-grid .table-grid__cell.table-grid__cell--data,div#idk .sisense-pivot__multi-grid .table-grid__cell.table-grid__cell--data{text-align:right}body .sisense-pivot__multi-grid .table-grid__content,div#idk .sisense-pivot__multi-grid .table-grid__content{font-size:13px;line-height:normal;padding:3px 8px 4px}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__content,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__content{padding-right:25px}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted,body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon{display:block}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted:after,body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon:after{display:block;top:0;left:0;background-repeat:no-repeat;background-position:center}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted{top:4px;right:7px;width:16px;height:16px}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted:after{width:16px;height:16px}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon{top:1px;right:1px;width:22px;height:22px}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon:hover,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon:hover{background-color:#f2f2f2;border-radius:50%}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon:after{width:20px;height:20px;top:1px;left:1px}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent .table-grid__sorting-settings-icon,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent .table-grid__sorting-settings-icon{background-color:#f2f2f2;border-radius:50%}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--default-sorted--asc .table-grid__sorting-settings-icon:after,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--default-sorted--desc .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--default-sorted--asc .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--default-sorted--desc .table-grid__sorting-settings-icon:after{content:"";background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5IDdINVY4SDE5VjdaIiBmaWxsPSIjNUI2MzcyIi8+CjxwYXRoIGQ9Ik0xNyAxMEg3VjExSDE3VjEwWiIgZmlsbD0iIzVCNjM3MiIvPgo8cGF0aCBkPSJNOSAxM0gxNVYxNEg5VjEzWiIgZmlsbD0iIzVCNjM3MiIvPgo8cGF0aCBkPSJNMTMgMTZIMTFWMTdIMTNWMTZaIiBmaWxsPSIjNUI2MzcyIi8+Cjwvc3ZnPgo=)}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--sorted--asc .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--sorted--asc .table-grid__sorting-settings-icon:after{content:"";background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAIVBMVEUAAABVVVVgYHVaY3NYYHBbYnFbZHJcZHJbY3JbY3L///8+n+SvAAAACXRSTlMAAxgfIEZrwN7K99ocAAAAAWJLR0QKaND0VgAAADFJREFUGNNjYKApmAkBhJSZO3DCVTF3tiAkNDIzFOAcUU5WAYRZnMgGoHNmYpehHgAAbUUKxkfTjB4AAAAASUVORK5CYII=)}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--sorted--desc .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--sorted--desc .table-grid__sorting-settings-icon:after{content:"";background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAJFBMVEUAAABVVVVgYHVYYHBbYnFbY3FbZHJcZHJbY3JbY3JbY3L///8jVOI/AAAACnRSTlMAAxggRmprwN7fVBJwpAAAAAFiS0dECx/XxMAAAAAySURBVBjTY2CgKVgFAYSUcTEgqeJClUHlwFWJcLEIwCU0siIV4BzmrskMCBvNDWjiMQDhxAw5ye8LaQAAAABJRU5ErkJggg==)}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--asc:hover .table-grid__sorting-settings-icon:after,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--desc:hover .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--asc:hover .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--desc:hover .table-grid__sorting-settings-icon:after{content:"";background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5IDdINVY4SDE5VjdaIiBmaWxsPSIjNUI2MzcyIi8+CjxwYXRoIGQ9Ik0xNyAxMEg3VjExSDE3VjEwWiIgZmlsbD0iIzVCNjM3MiIvPgo8cGF0aCBkPSJNOSAxM0gxNVYxNEg5VjEzWiIgZmlsbD0iIzVCNjM3MiIvPgo8cGF0aCBkPSJNMTMgMTZIMTFWMTdIMTNWMTZaIiBmaWxsPSIjNUI2MzcyIi8+Cjwvc3ZnPgo=)}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--asc .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--asc .table-grid__sorting-settings-icon:after{content:"";background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAIVBMVEUAAABVVVVgYHVaY3NYYHBbYnFbZHJcZHJbY3JbY3L///8+n+SvAAAACXRSTlMAAxgfIEZrwN7K99ocAAAAAWJLR0QKaND0VgAAADFJREFUGNNjYKApmAkBhJSZO3DCVTF3tiAkNDIzFOAcUU5WAYRZnMgGoHNmYpehHgAAbUUKxkfTjB4AAAAASUVORK5CYII=)}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--desc .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--desc .table-grid__sorting-settings-icon:after{content:"";background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAJFBMVEUAAABVVVVgYHVYYHBbYnFbY3FbZHJcZHJbY3JbY3JbY3L///8jVOI/AAAACnRSTlMAAxggRmprwN7fVBJwpAAAAAFiS0dECx/XxMAAAAAySURBVBjTY2CgKVgFAYSUcTEgqeJClUHlwFWJcLEIwCU0siIV4BzmrskMCBvNDWjiMQDhxAw5ye8LaQAAAABJRU5ErkJggg==)}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--asc.table-grid__cell--sorted-inactive .table-grid__icon--sorted,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--asc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--desc.table-grid__cell--sorted-inactive .table-grid__icon--sorted,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--desc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--asc.table-grid__cell--sorted-inactive .table-grid__icon--sorted,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--asc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--desc.table-grid__cell--sorted-inactive .table-grid__icon--sorted,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--desc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon{display:none}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--asc.table-grid__cell--sorted-inactive .table-grid__icon--sorted:hover,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--asc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon:hover,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--desc.table-grid__cell--sorted-inactive .table-grid__icon--sorted:hover,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--desc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon:hover,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--asc.table-grid__cell--sorted-inactive .table-grid__icon--sorted:hover,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--asc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon:hover,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--desc.table-grid__cell--sorted-inactive .table-grid__icon--sorted:hover,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--desc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon:hover{background-color:inherit;border-radius:inherit;pointer-events:none}body .sisense-pivot__multi-grid .table-grid__cell--user-type-measureTop,div#idk .sisense-pivot__multi-grid .table-grid__cell--user-type-measureTop{text-align:center}@supports (-ms-ime-align: auto){body .sisense-pivot__multi-grid .scroll-elem>div:first-child,div#idk .sisense-pivot__multi-grid .scroll-elem>div:first-child{overflow:auto!important}}body .sisense-pivot__multi-grid .sisense-pivot__data-bar,div#idk .sisense-pivot__multi-grid .sisense-pivot__data-bar{padding:0 8px}body .sisense-pivot__multi-grid .sisense-pivot__data-bar-bar,div#idk .sisense-pivot__multi-grid .sisense-pivot__data-bar-bar{background:#34cee6}body .sisense-css-module .pivot-container,div#idk .sisense-css-module .pivot-container{overflow:hidden}body .sisense-css-module .pivot-container ::-webkit-scrollbar,div#idk .sisense-css-module .pivot-container ::-webkit-scrollbar{width:initial;height:initial}body .print-layout .table-grid__cell--sorted .table-grid__cell-corner,div#idk .print-layout .table-grid__cell--sorted .table-grid__cell-corner{display:none}body .print-layout .sisense-pivot--sorting-by-subtotals .table-grid__cell--sorted .table-grid__cell-corner,div#idk .print-layout .sisense-pivot--sorting-by-subtotals .table-grid__cell--sorted .table-grid__cell-corner{display:block}body .print-layout .table-grid__cell--sorted .table-grid__content,div#idk .print-layout .table-grid__cell--sorted .table-grid__content{padding:2px 8px 3px}body .print-layout .table-grid__content__wrapper,div#idk .print-layout .table-grid__content__wrapper{overflow:hidden;width:100%;text-overflow:ellipsis;position:relative;display:block;min-width:8px}body .widget-to-image .scroll-elem__horizontal-track,body .widget-to-image .scroll-elem__vertical-track,div#idk .widget-to-image .scroll-elem__horizontal-track,div#idk .widget-to-image .scroll-elem__vertical-track{display:none}body .widget-to-image .table-grid__content__wrapper,div#idk .widget-to-image .table-grid__content__wrapper{text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.subtotals-menu__host{width:254px;height:346px;background-color:#fff;border-radius:4px;box-shadow:0 0 5px #3a435633}.subtotals-menu__host .menu-item-host .menu-content{width:100%;max-width:100%;min-width:100%;border:none;box-shadow:none}.subtotals-menu__host .menu-item-host .menu-content .menu-item{width:100%;max-width:100%;min-width:100%;margin:1px 0;height:auto;min-height:29px}.subtotals-menu__host .menu-item-host .menu-content .menu-item .mi-icon{margin-left:12px}.subtotals-menu__host .menu-item-host .menu-content .menu-item .mi-caption__auto{margin-left:16px}.subtotals-menu__host .menu-item-host .menu-content .menu-item .menu-item-container{flex-flow:row wrap}.subtotals-menu__host .menu-item-host .menu-content .menu-item .break{flex-basis:100%;width:0px;height:0px;overflow:hidden}.subtotals-menu__host .menu-item-host .menu-content .menu-item.mi-separator{min-height:1px;margin:6px 0}.subtotals-menu__host .menu-item-host .menu-content .menu-item .mi-checker{margin:0 15px 0 0}.subtotals-menu__host .subtotals-menu__item-distinct{display:flex;justify-content:space-between;margin:7px 15px 7px 21px}.subtotals-menu__header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:42px;background-color:#f4f4f8;border-radius:4px 4px 0 0;font-size:13px;font-weight:600;padding:12px 13px 12px 16px;line-height:18px;margin-bottom:7px}.subtotals-menu__header-tooltip .info{margin-left:0}.subtotals-menu__header-tooltip .info:hover{background-color:#dee1e7;border-radius:50%}.subtotals-menu__actions{margin-top:6px;padding:16px;display:flex;justify-content:flex-end;border-top:1px solid #edeef1}.subtotals-menu__actions button.btn{margin-left:8px}.totals-tooltip-host{width:433px;height:200px}.totals-tooltip__container{font-size:13px;margin:4px 8px;line-height:19px}:export{loginDarkColor:#2c3342;darkBtnHoverColor:#f4f4f8;greyHoverColor:#dee1e7;defaultBackgroundColor:#fff}:where(.sis-scope) html,:where(.sis-scope) body,:where(.sis-scope) applet,:where(.sis-scope) object,:where(.sis-scope) iframe,:where(.sis-scope) h1,:where(.sis-scope) h2,:where(.sis-scope) h3,:where(.sis-scope) h4,:where(.sis-scope) h5,:where(.sis-scope) h6,:where(.sis-scope) p,:where(.sis-scope) blockquote,:where(.sis-scope) pre,:where(.sis-scope) a,:where(.sis-scope) abbr,:where(.sis-scope) acronym,:where(.sis-scope) address,:where(.sis-scope) big,:where(.sis-scope) cite,:where(.sis-scope) code,:where(.sis-scope) del,:where(.sis-scope) dfn,:where(.sis-scope) em,:where(.sis-scope) img,:where(.sis-scope) ins,:where(.sis-scope) kbd,:where(.sis-scope) q,:where(.sis-scope) s,:where(.sis-scope) samp,:where(.sis-scope) small,:where(.sis-scope) strike,:where(.sis-scope) strong,:where(.sis-scope) sub,:where(.sis-scope) sup,:where(.sis-scope) tt,:where(.sis-scope) var,:where(.sis-scope) b,:where(.sis-scope) u,:where(.sis-scope) i,:where(.sis-scope) center,:where(.sis-scope) dl,:where(.sis-scope) dt,:where(.sis-scope) dd,:where(.sis-scope) ol,:where(.sis-scope) ul,:where(.sis-scope) li,:where(.sis-scope) fieldset,:where(.sis-scope) form,:where(.sis-scope) label,:where(.sis-scope) legend,:where(.sis-scope) table,:where(.sis-scope) caption,:where(.sis-scope) article,:where(.sis-scope) aside,:where(.sis-scope) canvas,:where(.sis-scope) details,:where(.sis-scope) embed,:where(.sis-scope) figure,:where(.sis-scope) figcaption,:where(.sis-scope) footer,:where(.sis-scope) header,:where(.sis-scope) hgroup,:where(.sis-scope) menu,:where(.sis-scope) nav,:where(.sis-scope) output,:where(.sis-scope) ruby,:where(.sis-scope) section,:where(.sis-scope) summary,:where(.sis-scope) time,:where(.sis-scope) mark,:where(.sis-scope) audio,:where(.sis-scope) video{margin:0;padding:0;vertical-align:baseline;border:0;outline:none}:where(.sis-scope) article,:where(.sis-scope) aside,:where(.sis-scope) details,:where(.sis-scope) figcaption,:where(.sis-scope) figure,:where(.sis-scope) footer,:where(.sis-scope) header,:where(.sis-scope) hgroup,:where(.sis-scope) menu,:where(.sis-scope) nav,:where(.sis-scope) section{display:block}:where(.sis-scope) body{margin:0}:where(.sis-scope) ol,:where(.sis-scope) ul{list-style:none}:where(.sis-scope) blockquote,:where(.sis-scope) q{quotes:none}:where(.sis-scope) blockquote:before,:where(.sis-scope) blockquote:after{content:none}:where(.sis-scope) q:before,:where(.sis-scope) q:after{content:none}:where(.sis-scope) table{border-spacing:0;border-collapse:collapse}:where(.sis-scope) textarea,:where(.sis-scope) select{outline:none}.sis-scope{font-size:13px;line-height:normal;cursor:default;padding:0;margin:0;background:#fff;font-family:Open Sans;color:#5b6372}.sis-scope .btn{background-color:#ffcb05;color:#3a4356}.sis-scope *,.sis-scope *:before,.sis-scope *:after{box-sizing:border-box}.sis-scope ::-webkit-input-placeholder{opacity:1}.sis-scope ::-moz-placeholder{opacity:1}.sis-scope ::-ms-placeholder{opacity:1}.sis-scope ::placeholder{opacity:1}.sis-scope .app-icon{position:relative;display:inline-block;vertical-align:middle;width:24px;height:24px;box-sizing:content-box;text-align:left}.sis-scope .app-icon:after{content:"";position:absolute;top:0;left:0;display:block;width:100%;height:100%}.sis-scope .app-icon__svg{position:relative;display:block;width:100%;height:100%}.sis-scope .app-icon--build-failed .app-icon__svg,.sis-scope .app-icon--build-stopped .app-icon__svg,.sis-scope .app-icon--build-exlamation-mark-error-cancel .app-icon__svg,.sis-scope .app-icon--general-relationship-error .app-icon__svg,.sis-scope .app-icon--placeholder-mark-x .app-icon__svg{fill:#fa5656}.sis-scope .app-icon--placeholder-mark-info .app-icon__svg,.sis-scope .app-icon--build-vi-apply-aprrove .app-icon__svg,.sis-scope .app-icon--general-status-running .app-icon__svg{fill:#35d7be}.sis-scope .app-icon--general-x-sign .app-icon__svg,.sis-scope .app-icon--general-vi-sign .app-icon__svg{fill:transparent}.sis-scope .app-icon--general-status-pending,.sis-scope .app-icon--general-status-running{color:#d1d1d7}.sis-scope .app-icon--general-relationship-tool-tip{width:36px}.sis-scope .app-icon--header-pulse{width:28px}.sis-scope .app-icon--general-update,.sis-scope .app-icon--popup-interval-selected,.sis-scope .app-icon--popup-week-selected,.sis-scope .app-icon--popup-disable-selected{width:50px;height:50px}.sis-scope .app-icon--general-yellow-round-add{width:27px;height:27px}.sis-scope .app-icon--general-sampling-sample-big,.sis-scope .app-icon--general-sampling-top-big,.sis-scope .app-icon--general-sampling-bottom-big{width:35px;height:35px}.sis-scope .app-icon--general-drag-edit-relation,.sis-scope .app-icon--general-drag-new-relation,.sis-scope .app-icon--general-drag{width:36px;height:36px}.sis-scope .app-icon--popup-public-selected{width:49px;height:42px}.sis-scope .app-icon--header-git,.sis-scope .app-icon--general-git-add-branch,.sis-scope .app-icon--header-git .app-icon__svg,.sis-scope .app-icon--general-git-add-branch .app-icon__svg{fill:none}.sis-scope .app-icon--header-git,.sis-scope .app-icon--header-alarm,.sis-scope .app-icon--header-user,.sis-scope .app-icon--header-user-filled{width:30px;height:30px}.sis-scope .app-icon--general-git-add-branch{width:18px;height:18px}.sis-scope .app-icon--popup-lshare-selected,.sis-scope .app-icon--popup-lock-selected,.sis-scope .app-icon--hint-question-mark,.sis-scope .app-icon--hint-x{width:42px;height:42px}.sis-scope .app-icon--resource-guide,.sis-scope .app-icon--resource-help,.sis-scope .app-icon--resource-learn{width:26px;height:37px}.sis-scope .app-icon--schema-arrow-close-left,.sis-scope .app-icon--schema-arrow-close-right,.sis-scope .app-icon--schema-version-history,.sis-scope .app-icon--schema-compass{width:26px;height:26px}.sis-scope .app-icon--wizard-add-folder,.sis-scope .app-icon--wizard-connect,.sis-scope .app-icon--wizard-database,.sis-scope .app-icon--wizard-files,.sis-scope .app-icon--wizard-new-page,.sis-scope .app-icon--wizard-recent,.sis-scope .app-icon--wizard-recent-circle,.sis-scope .app-icon--wizard-rest,.sis-scope .app-icon--wizard-view,.sis-scope .app-icon--wizard-web,.sis-scope .app-icon--wizard-certified{width:35px;height:35px}.sis-scope .app-icon--nodes-delete,.sis-scope .app-icon--nodes-rename,.sis-scope .app-icon--nodes-edit,.sis-scope .app-icon--nodes-more,.sis-scope .app-icon--nodes-preview,.sis-scope .app-icon--nodes-ignored,.sis-scope .app-icon--nodes-accumulated,.sis-scope .app-icon--nodes-accumulated-2{width:37px;height:37px}.sis-scope .app-icon--placeholder-database,.sis-scope .app-icon--placeholder-database-x,.sis-scope .app-icon--placeholder-connection,.sis-scope .app-icon--placeholder-git-graph,.sis-scope .app-icon--placeholder-parameters,.sis-scope .app-icon--placeholder-search-x,.sis-scope .app-icon--placeholder-search,.sis-scope .app-icon--placeholder-table,.sis-scope .app-icon--placeholder-table-x,.sis-scope .app-icon--placeholder-table-init,.sis-scope .app-icon--placeholder-tools,.sis-scope .app-icon--placeholder-preview,.sis-scope .app-icon--placeholder-database-plus-black-white,.sis-scope .app-icon--placeholder-preview-inspect-black-white,.sis-scope .app-icon--placeholder-preview-plus-black-white,.sis-scope .app-icon--placeholder-generate-token,.sis-scope .app-icon--placeholder-key,.sis-scope .app-icon--placeholder-presentation{width:110px;height:110px}.sis-scope .app-icon--placeholder-filter{width:110px;height:130px}.sis-scope .app-icon--placeholder-sheet{width:89px;height:93px}.sis-scope .app-icon--placeholder-mark-info,.sis-scope .app-icon--placeholder-mark-exclamation,.sis-scope .app-icon--placeholder-mark-vi,.sis-scope .app-icon--placeholder-mark-x{width:66px;height:66px}.sis-scope .app-icon--placeholder-place-file,.sis-scope .app-icon--placeholder-place-text-add{width:120px;height:70px}.sis-scope .app-icon--illustration-build-succeeded,.sis-scope .app-icon--illustration-build-failed{width:225px;height:210px}.sis-scope .app-icon--homepages-video,.sis-scope .app-icon--homepages-tutorials,.sis-scope .app-icon--homepages-documentation,.sis-scope .app-icon--homepages-sample{width:65px;height:56px}.sis-scope .app-icon--homepages-play{width:61px;height:61px}.sis-scope .app-icon--widget-area-chart,.sis-scope .app-icon--widget-area-map,.sis-scope .app-icon--widget-bar-chart,.sis-scope .app-icon--widget-box-whisker-plot,.sis-scope .app-icon--widget-calendar-heatmap,.sis-scope .app-icon--widget-column-char,.sis-scope .app-icon--widget-indicator,.sis-scope .app-icon--widget-line-chart,.sis-scope .app-icon--widget-pie-chart,.sis-scope .app-icon--widget-pivot,.sis-scope .app-icon--widget-polar-chart,.sis-scope .app-icon--widget-scatter-chart,.sis-scope .app-icon--widget-scatter-map,.sis-scope .app-icon--widget-sunburst,.sis-scope .app-icon--widget-table,.sis-scope .app-icon--widget-treemap,.sis-scope .app-icon--widget-no-sort{width:26px;height:26px}.sis-scope .app-icon--buildpanel-replace-all,.sis-scope .app-icon--buildpanel-by-table,.sis-scope .app-icon--buildpanel-changes-only{width:64px;height:64px}.sis-scope .app-icon--ai-group-similar-big{width:88px;height:83px}.sis-scope :export{loginDarkColor:#2c3342;darkBtnHoverColor:#f4f4f8;greyHoverColor:#dee1e7;defaultBackgroundColor:#fff}.sis-scope .btn{opacity:1;font-family:inherit;font-style:normal;font-size:13px;line-height:24px;display:inline-block;box-sizing:border-box;margin:0;padding:0;cursor:pointer;transition:all .3s ease;vertical-align:middle;text-decoration:none;border:0;border-radius:4px;outline:none;white-space:nowrap;appearance:none}.sis-scope .btn .btn__icon{display:inline-block;padding-left:9px}.sis-scope .btn .btn__icon+.btn__text{vertical-align:middle;margin-left:-3px;padding-left:0;padding-right:13px;max-width:calc(100% - 24px)}.sis-scope .btn:hover{text-decoration:none;opacity:1}.sis-scope .btn:focus{outline:none}.sis-scope .btn::-moz-focus-inner{border:0}.sis-scope .btn.btn--disabled,.sis-scope .btn[disabled=disabled]{cursor:default;opacity:.4}.sis-scope .btn__text{position:relative;display:inline-block;vertical-align:top;padding:2px 20px;max-width:100%}.sis-scope .btn__icon{display:inline-block;padding:0}.sis-scope .btn--warning,.sis-scope .btn--warning:hover{opacity:1}.sis-scope .btn--warning.btn--disabled,.sis-scope .btn--warning[disabled=disabled]{opacity:.4}.sis-scope .btn--danger{background:#edeef1;opacity:1}.sis-scope .btn--danger:hover{color:#fff;background:#fa5656;opacity:1}.sis-scope .btn--danger.btn--disabled,.sis-scope .btn--danger[disabled=disabled]{color:#5b6372;background:#edeef1;opacity:.6}.sis-scope .btn--transp{color:#9ea2ab;background:none;opacity:1;line-height:1}.sis-scope .btn--transp:hover{background:none;opacity:1}.sis-scope .btn--transp.btn--disabled,.sis-scope .btn--transp[disabled=disabled]{background:none;opacity:.4}.sis-scope .btn--transp .btn__icon{padding-left:0}.sis-scope .btn--transp .btn__text,.sis-scope .btn--transp .btn__icon+.btn__text{padding-left:0;padding-right:0}.sis-scope .btn--gray,.sis-scope .btn--smart,.sis-scope .btn--gray:hover,.sis-scope .btn--smart:hover{opacity:1}.sis-scope .btn--gray.btn--disabled,.sis-scope .btn--gray[disabled=disabled],.sis-scope .btn--smart.btn--disabled,.sis-scope .btn--smart[disabled=disabled]{opacity:.6}.sis-scope .btn--white{background:#fff;opacity:1}.sis-scope .btn--white:hover{background:#f2b900;opacity:1}.sis-scope .btn--white.btn--disabled,.sis-scope .btn--white[disabled=disabled]{background:#fff;opacity:.6}.sis-scope .btn--icon .btn__text{display:none}.sis-scope .btn--icon .btn__icon{padding-left:5px;padding-right:5px}.sis-scope .btn--icon.btn--transp .btn__icon,.sis-scope .btn--icon.btn--dark .btn__icon{padding-left:0;padding-right:0}.sis-scope .btn--limited .btn__text{white-space:normal}.sis-scope .btns-holder{display:flex;align-items:center}.sis-scope .btns-holder>*{margin:0 5px}.sis-scope .btns-holder>*:first-child{margin-left:0}.sis-scope .btns-holder>*:last-child{margin-right:0}.sis-scope .btns-holder .btn--offset-ml{margin-left:15px}.sis-scope .btns-holder .btn:not(.btn--transp)+.btn--transp{margin-left:15px}.sis-scope .btns-holder .btn--transp+.btn:not(.btn--transp){margin-left:15px}.sis-scope .btn-icon-link{display:inline-block;vertical-align:middle;margin:0;padding:0;background:none;border:none;outline:none;font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;color:inherit;cursor:pointer}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.btn,.sis-scope .btn-icon-link:hover .btn-icon-link__icon.btn--warning{opacity:1}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.btn--danger{color:#fff;background:#fa5656;opacity:1}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.btn--transp{background:none;opacity:1}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.btn--gray,.sis-scope .btn-icon-link:hover .btn-icon-link__icon.btn--smart{opacity:1}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.btn--white{background:#f2b900;opacity:1}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.confirm-btn{opacity:1}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.confirm-btn.confirm-btn--apply{color:#fff;background:#35d7be;border-color:#35d7be}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.confirm-btn.confirm-btn--cancel{color:#fff;background:#fa5656;border-color:#fa5656}.sis-scope .btn-icon-link.btn-icon-link--disabled,.sis-scope .btn-icon-link[disabled=disabled],.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon{cursor:default}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.btn,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.btn,.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.btn--warning,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.btn--warning{opacity:.4}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.btn--danger,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.btn--danger{color:#5b6372;background:#edeef1;opacity:.6}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.btn--transp,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.btn--transp{background:none;opacity:.4}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.btn--gray,.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.btn--smart,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.btn--gray,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.btn--smart{opacity:.6}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.btn--white,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.btn--white{background:#fff;opacity:.6}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.confirm-btn,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.confirm-btn{opacity:.4}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.confirm-btn.confirm-btn--apply,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.confirm-btn.confirm-btn--apply{color:#35d7be;background:rgba(53,215,190,0);border-color:#35d7be}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.confirm-btn.confirm-btn--cancel,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.confirm-btn.confirm-btn--cancel{color:#fa5656;background:rgba(250,86,86,0);border-color:#fa5656}.sis-scope .btn-icon-link__icon{width:28px;margin-right:5px;border-radius:50%}.sis-scope .btn-icon-link__icon .btn__icon{vertical-align:top;padding:1px 0}.sis-scope .btn-icon-link__icon .btn__icon.app-icon--general-plus{padding-left:2px}.sis-scope .btn-icon-link__text{display:inline-block;vertical-align:middle}.sis-scope .btn--more:hover .btn__text{margin-left:-9px}.sis-scope .btn--more:hover .btn__icon{width:10px}.sis-scope .btn--more.btn--danger:hover .btn__icon,.sis-scope .btn--more.btn--danger:hover .btn__icon:before{border-color:#fff}.sis-scope .btn--more.btn--more-open .btn__text{margin-left:-9px}.sis-scope .btn--more.btn--more-open .btn__icon{width:10px}.sis-scope .btn--more .btn__text{position:relative;margin-left:0;padding-right:5px;transition:margin-left .3s linear}.sis-scope .btn--more .btn__icon{position:relative;top:2px;width:1px;height:9px;margin:0 10px 0 0;padding:0;border:solid 1px #3a4356;border-width:1px 0 1px 0;transition:width .3s linear,border-color .3s}.sis-scope .btn--more .btn__icon:before{content:"";position:absolute;left:0;top:3px;width:100%;height:1px;border-bottom:solid 1px #3a4356;transition:border-color .3s}.sis-scope .confirm-btns{display:flex;font-size:0}.sis-scope .confirm-btns .confirm-btn{opacity:1;padding:0;width:17px;height:17px;margin:0 4px;font-size:0;line-height:15px;text-align:center;border:solid 1px transparent;border-radius:50%}.sis-scope .confirm-btns .confirm-btn.confirm-btn--apply{color:#35d7be;background:rgba(53,215,190,0);border-color:#35d7be}.sis-scope .confirm-btns .confirm-btn.confirm-btn--cancel{color:#fa5656;background:rgba(250,86,86,0);border-color:#fa5656}.sis-scope .confirm-btns .confirm-btn:hover{opacity:1}.sis-scope .confirm-btns .confirm-btn:hover.confirm-btn--apply{color:#fff;background:#35d7be;border-color:#35d7be}.sis-scope .confirm-btns .confirm-btn:hover.confirm-btn--cancel{color:#fff;background:#fa5656;border-color:#fa5656}.sis-scope .confirm-btns .confirm-btn.btn--disabled,.sis-scope .confirm-btns .confirm-btn[disabled=disabled]{cursor:default;opacity:.4}.sis-scope .confirm-btns .confirm-btn.btn--disabled.confirm-btn--apply,.sis-scope .confirm-btns .confirm-btn[disabled=disabled].confirm-btn--apply{color:#35d7be;background:rgba(53,215,190,0);border-color:#35d7be}.sis-scope .confirm-btns .confirm-btn.btn--disabled.confirm-btn--cancel,.sis-scope .confirm-btns .confirm-btn[disabled=disabled].confirm-btn--cancel{color:#fa5656;background:rgba(250,86,86,0);border-color:#fa5656}.sis-scope .confirm-btns .confirm-btn .btn__icon{width:9px;height:9px;margin:3px;padding:0}.sis-scope .btn--dark{background:none;color:#5b6372;border-radius:4px;padding:0;transition:unset;line-height:1}.sis-scope .btn--dark .btn__text{padding:0}.sis-scope .btn--dark.btn--icon{display:flex;align-items:center;justify-content:center;height:28px;width:28px;padding:0;border-radius:50%}.sis-scope .btn--dark.btn--icon.btn--small{height:24px;width:24px}.sis-scope .btn--dark:hover{background-color:#f4f4f8;color:inherit}.sis-scope .btn--dark:hover.btn--on-grey{background-color:#dee1e7}.sis-scope .btn--dark:hover.btn--no-hover{background:none}.sis-scope .btn--dark.btn--disabled,.sis-scope .btn--dark[disabled=disabled]{cursor:default;background:none;opacity:.4}@keyframes _rcToolTipZoomIn_1947o_1{0%{opacity:0;transform-origin:50% 50%;transform:scale(0)}to{opacity:1;transform-origin:50% 50%;transform:scale(1)}}@keyframes _rcToolTipZoomOut_1947o_1{0%{opacity:1;transform-origin:50% 50%;transform:scale(1)}to{opacity:0;transform-origin:50% 50%;transform:scale(0)}}.rc-tooltip-inner{padding:6px 12px;min-height:0;border:0;border-radius:4px;pointer-events:none;color:red;font-size:14px}.rc-tooltip-arrow{border-width:0!important;width:8px;height:8px;background-color:#000;z-index:-1;transform:rotate(45deg)}.rc-tooltip-content:before{content:"";position:absolute;width:8px;height:8px;background-color:#000;transform:rotate(45deg)}._breakLongWord_1947o_272{word-break:break-all}._popover_wakdx_1 .rc-tooltip-inner{pointer-events:auto;overflow:hidden}._popoverMask_wakdx_6{position:absolute;width:100%;top:0;bottom:0}.rc-tooltip.rc-tooltip-zoom-appear,.rc-tooltip.rc-tooltip-zoom-enter{opacity:0}.rc-tooltip.rc-tooltip-zoom-enter,.rc-tooltip.rc-tooltip-zoom-leave{display:block}.rc-tooltip-zoom-enter,.rc-tooltip-zoom-appear{opacity:0;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.18,.89,.32,1.28);animation-play-state:paused}.rc-tooltip-zoom-leave{animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.6,-.3,.74,.05);animation-play-state:paused}.rc-tooltip-zoom-enter.rc-tooltip-zoom-enter-active,.rc-tooltip-zoom-appear.rc-tooltip-zoom-appear-active{animation-name:rcToolTipZoomIn;animation-play-state:running}.rc-tooltip-zoom-leave.rc-tooltip-zoom-leave-active{animation-name:rcToolTipZoomOut;animation-play-state:running}@keyframes _rcToolTipZoomIn_1dxah_1{0%{opacity:0;transform-origin:50% 50%;transform:scale(0)}to{opacity:1;transform-origin:50% 50%;transform:scale(1)}}@keyframes _rcToolTipZoomOut_1dxah_1{0%{opacity:1;transform-origin:50% 50%;transform:scale(1)}to{opacity:0;transform-origin:50% 50%;transform:scale(0)}}.rc-tooltip{position:absolute;z-index:1070;display:block;visibility:visible;line-height:1.5;font-size:12px;background-color:#0000000d;padding:1px;opacity:.9}.rc-tooltip-hidden{display:none}.rc-tooltip-inner{padding:8px 10px;color:#333;text-align:left;text-decoration:none;background-color:#fff;border-radius:3px;min-height:34px;border:1px solid #b1b1b1}.rc-tooltip-arrow,.rc-tooltip-arrow-inner{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.rc-tooltip-placement-top .rc-tooltip-arrow,.rc-tooltip-placement-topLeft .rc-tooltip-arrow,.rc-tooltip-placement-topRight .rc-tooltip-arrow{transform:translate(-50%,5px);margin-left:-6px;border-width:6px 6px 0;border-top-color:#b1b1b1}.rc-tooltip-placement-top .rc-tooltip-arrow-inner,.rc-tooltip-placement-topLeft .rc-tooltip-arrow-inner,.rc-tooltip-placement-topRight .rc-tooltip-arrow-inner{bottom:1px;margin-left:-6px;border-width:6px 6px 0;border-top-color:#fff}.rc-tooltip-placement-top .rc-tooltip-arrow{left:50%}.rc-tooltip-placement-topLeft .rc-tooltip-arrow{left:15%}.rc-tooltip-placement-topRight .rc-tooltip-arrow{right:15%}.rc-tooltip-placement-right .rc-tooltip-arrow,.rc-tooltip-placement-rightTop .rc-tooltip-arrow,.rc-tooltip-placement-rightBottom .rc-tooltip-arrow{left:-5px;margin-top:-6px;border-width:6px 6px 6px 0;border-right-color:#b1b1b1;transform:translate(calc(-100% + 1px))}.rc-tooltip-placement-right .rc-tooltip-arrow-inner,.rc-tooltip-placement-rightTop .rc-tooltip-arrow-inner,.rc-tooltip-placement-rightBottom .rc-tooltip-arrow-inner{left:1px;margin-top:-6px;border-width:6px 6px 6px 0;border-right-color:#fff}.rc-tooltip-placement-right .rc-tooltip-arrow{top:50%}.rc-tooltip-placement-rightTop .rc-tooltip-arrow{top:15%;margin-top:0}.rc-tooltip-placement-rightBottom .rc-tooltip-arrow{bottom:15%}.rc-tooltip-placement-left .rc-tooltip-arrow,.rc-tooltip-placement-leftTop .rc-tooltip-arrow,.rc-tooltip-placement-leftBottom .rc-tooltip-arrow{right:-5px;margin-top:-6px;border-width:6px 0 6px 6px;border-left-color:#b1b1b1;transform:translate(calc(100% - 1px))}.rc-tooltip-placement-left .rc-tooltip-arrow-inner,.rc-tooltip-placement-leftTop .rc-tooltip-arrow-inner,.rc-tooltip-placement-leftBottom .rc-tooltip-arrow-inner{right:1px;margin-top:-6px;border-width:6px 0 6px 6px;border-left-color:#fff}.rc-tooltip-placement-left .rc-tooltip-arrow{top:50%}.rc-tooltip-placement-leftTop .rc-tooltip-arrow{top:15%;margin-top:0}.rc-tooltip-placement-leftBottom .rc-tooltip-arrow{bottom:15%}.rc-tooltip-placement-bottom .rc-tooltip-arrow,.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow,.rc-tooltip-placement-bottomRight .rc-tooltip-arrow{transform:translate(-50%,-5px);margin-left:-6px;border-width:0 6px 6px;border-bottom-color:#b1b1b1}.rc-tooltip-placement-bottom .rc-tooltip-arrow-inner,.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow-inner,.rc-tooltip-placement-bottomRight .rc-tooltip-arrow-inner{top:1px;margin-left:-6px;border-width:0 6px 6px;border-bottom-color:#fff}.rc-tooltip-placement-bottom .rc-tooltip-arrow{left:50%}.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow{left:15%}.rc-tooltip-placement-bottomRight .rc-tooltip-arrow{right:15%}.rc-tooltip{padding:0;background-color:transparent;opacity:1}.rc-tooltip.hide-arrow .rc-tooltip-arrow,.rc-tooltip.hide-arrow .rc-tooltip-content:before{display:none}.rc-tooltip.hide-arrow.rc-tooltip-placement-top,.rc-tooltip.hide-arrow.rc-tooltip-placement-bottom,.rc-tooltip.hide-arrow.rc-tooltip-placement-left,.rc-tooltip.hide-arrow.rc-tooltip-placement-right,.rc-tooltip.hide-arrow .rc-tooltip-inner{padding:0}.rc-tooltip-content{position:relative}.rc-tooltip-inner{padding:6px 12px;min-height:0;border:0;border-radius:4px;box-shadow:0 -1px 5px 1px #3a435633;pointer-events:none;color:#7f899c;font-size:13px}.rc-tooltip-arrow{border-width:0!important;width:8px;height:8px;background-color:#fff;box-shadow:0 -1px 5px 1px #3a435633;z-index:-1;transform:rotate(45deg)}.rc-tooltip-content:before{content:"";position:absolute;width:8px;height:8px;background-color:#fff;transform:rotate(45deg)}.rc-tooltip-placement-top{padding-bottom:6px}.rc-tooltip-placement-top .rc-tooltip-arrow,.rc-tooltip-placement-top .rc-tooltip-content:before{left:50%;margin-left:-4px;bottom:-4px}.rc-tooltip-placement-bottom{padding-top:6px}.rc-tooltip-placement-bottom .rc-tooltip-arrow,.rc-tooltip-placement-bottom .rc-tooltip-content:before{left:50%;margin-left:-4px;top:-4px}.rc-tooltip-placement-right{padding-left:6px}.rc-tooltip-placement-right .rc-tooltip-arrow,.rc-tooltip-placement-right .rc-tooltip-content:before{top:50%;margin-top:-4px;left:-4px}.rc-tooltip-placement-left{padding-right:6px}.rc-tooltip-placement-left .rc-tooltip-arrow,.rc-tooltip-placement-left .rc-tooltip-content:before{top:50%;margin-top:-4px;right:-4px}._breakLongWord_1dxah_307{word-break:break-all}._semanticText_1dxah_311{max-width:432px}.sis-scope._tooltip_1dxah_315{padding:12px 16px}._loader_1uppi_1{display:flex;align-content:center;justify-content:center;align-items:center}._loader_1uppi_1 ._caption_1uppi_7{margin-top:50%;word-break:break-word;text-align:center}._loader_1uppi_1 ._caption_1uppi_7 span{position:unset}._clickable_19yrx_1{cursor:pointer}._disabled_19yrx_5{pointer-events:none}._sharedComponentsInputRadioButton_195lt_1{width:28px;height:28px;padding:8px}._sharedComponentsInputRadioButton_195lt_1:hover{background-color:#5b63721a;border-radius:50%}.sis-scope .custom-radiobtn__text{padding-left:4px}._disabled_195lt_15{pointer-events:none}._disabled_195lt_15 .custom-radiobtn__text{color:#5b637266}.sis-scope .custom-checkbox__icon.app-icon._transparent_i81lr_1{background:transparent!important;color:transparent}.sis-scope .custom-checkbox__input:checked+.custom-checkbox__icon._transparent_i81lr_1{color:#3a4356}.sis-scope .custom-checkbox__text{padding-left:4px}._icon_i81lr_12{margin:0 -5px 0 0;cursor:pointer}._disabled_i81lr_17{pointer-events:none}._disabled_i81lr_17 .custom-checkbox__text{color:#5b637266}._disabled_i81lr_17 .app-icon{opacity:.4}._sharedComponentsInputCheckbox_i81lr_27{width:28px;height:28px;padding:8px}._sharedComponentsInputCheckbox_i81lr_27:hover{background-color:#5b63721a;border-radius:50%}._container_v8yrt_7{min-width:128px;position:absolute;cursor:pointer;padding:0;background:#fff;box-shadow:0 0 5px #3a435633;border-radius:4px}._container_v8yrt_7 li{list-style-type:none;line-height:22px;display:flex;justify-content:flex-start;align-items:center;padding:4px 5px;position:relative;transition:background-color .3s eaSe;cursor:pointer}._container_v8yrt_7 li._disabled_v8yrt_27{opacity:.5;cursor:default}._container_v8yrt_7 li._groupHeader_v8yrt_31{pointer-events:none;font-style:italic;font-weight:600}._container_v8yrt_7 li._isDrill_v8yrt_36:hover,._container_v8yrt_7 li._isDrill_v8yrt_36.fakeHover{background-color:#f4f4f8}._container_v8yrt_7 li:hover:not(._disabled_v8yrt_27){background-color:#f4f4f8}._container_v8yrt_7 li:hover:not(._disabled_v8yrt_27):after{opacity:1}._container_v8yrt_7 li._separator_v8yrt_45{border-top:1px solid #e1e1e1}._container_v8yrt_7 li._noIcon_v8yrt_48{padding-left:16px;padding-right:16px}._container_v8yrt_7 li._item_v8yrt_52._checked_v8yrt_52:after{content:"";display:block;position:absolute;top:0;left:0;height:100%;width:2px;background-color:#3a4356}._container_v8yrt_7 li._radio_v8yrt_62{padding-left:8px;padding-right:0;line-height:22px;align-items:stretch}._container_v8yrt_7 li._checkbox_v8yrt_68{padding-left:0;padding-right:0;line-height:22px;align-items:stretch}._container_v8yrt_7 li ._icon_v8yrt_74{margin:0 10px 0 7px}._container_v8yrt_7 li ._itemType_v8yrt_77{display:flex;width:100%;margin-right:1px;white-space:nowrap}._container_v8yrt_7 li ._itemType_v8yrt_77 :last-child{margin-left:auto}._container_v8yrt_7 li ._nestedType_v8yrt_86{display:flex;width:100%}._container_v8yrt_7 li ._nestedType_v8yrt_86 ._nestedIcon_v8yrt_90{position:static!important}._container_v8yrt_7 li ._menuItemText_v8yrt_93{flex-grow:1;display:flex;align-items:center}._separateGroup_v8yrt_99{min-width:fit-content}._itemCheckBox_v8yrt_103{padding:0 5px 0 16px;width:100%}._itemRadioButton_v8yrt_108{padding:0 5px 0 8px;width:100%}._scrollbar_v8yrt_113{cursor:default}._scrollbar_v8yrt_113>div:first-child{position:relative!important}._itemContainer_v8yrt_120{display:flex;flex-grow:1}._inlineConfirmation_v8yrt_125{font-weight:600}._menuItemTooltip_v8yrt_129{max-width:180px;overflow-wrap:break-word}._menuItemTooltip_v8yrt_129.rc-tooltip-placement-left{max-width:195px;padding-right:15px}._toggleButtonMenu_v8yrt_138{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%);right:10px}._loader_v8yrt_146{height:25px;position:relative;margin:0 auto;width:90%}._container_v9uof_1{min-width:245px;max-width:350px;padding:12px 18px;font-size:13px;user-select:none}._message_v9uof_9{margin-top:10px;overflow:hidden;white-space:pre-line;text-overflow:ellipsis}._buttons_v9uof_16{margin-top:19px;width:100%;text-align:right}._button_v9uof_16{height:25px;width:auto;background:transparent;outline:none;cursor:pointer;border:none}._button_v9uof_16:hover{opacity:.7}._confirm_v9uof_34{color:green;margin-right:20px}._cancel_v9uof_39{color:red}._component_lx560_8{position:relative;display:flex;align-items:center}._component_lx560_8 ._searchIcon_lx560_13._searchIcon_lx560_13{position:absolute;left:8px;z-index:1;opacity:40%}._component_lx560_8 ._searchIcon_lx560_13._searchIcon_lx560_13._large_lx560_19{top:4px}._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22{width:15px;height:15px;position:absolute;top:3px;right:4px;border-radius:20px;padding:4px}._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22:hover{background-color:#d1d1d7}._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22._clearIconHidden_lx560_34{display:none}._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22._large_lx560_19{width:15px;height:15px;top:4px;padding:5px}._component_lx560_8 ._passwordVisibilityIcon_lx560_43._passwordVisibilityIcon_lx560_43{width:24px;height:24px;position:absolute;right:8px}._component_lx560_8 ._passwordVisibilityIcon_lx560_43._passwordVisibilityIcon_lx560_43._large_lx560_19{width:24px;height:24px;top:5px}._component_lx560_8 ._customIcon_lx560_54{position:absolute;top:3px;right:4px}._component_lx560_8 ._customIcon_lx560_54._isLeft_lx560_59{right:0;left:8px}._component_lx560_8 ._customIcon_lx560_54._large_lx560_19{top:5px}._component_lx560_8 ._input_lx560_66{border-radius:4px;outline:none;background:#f4f4f8;line-height:28px;height:28px;border:none;text-indent:8px;width:100%}._component_lx560_8 ._input_lx560_66._withLeftIcon_lx560_76{text-indent:32px}._component_lx560_8 ._input_lx560_66::placeholder{color:#b0b5bf}._component_lx560_8 ._input_lx560_66:focus{border:1px solid #5b6372}._component_lx560_8 ._input_lx560_66._large_lx560_19{height:34px;line-height:34px}._component_lx560_8 ._input_lx560_66::-ms-reveal{display:none}.sis-scope ._component_lx560_8{position:relative;display:flex;align-items:center}.sis-scope ._component_lx560_8 ._searchIcon_lx560_13._searchIcon_lx560_13{position:absolute;left:8px;z-index:1;opacity:40%}.sis-scope ._component_lx560_8 ._searchIcon_lx560_13._searchIcon_lx560_13._large_lx560_19{top:4px}.sis-scope ._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22{width:15px;height:15px;position:absolute;top:3px;right:4px;border-radius:20px;padding:4px}.sis-scope ._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22:hover{background-color:#d1d1d7}.sis-scope ._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22._clearIconHidden_lx560_34{display:none}.sis-scope ._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22._large_lx560_19{width:15px;height:15px;top:4px;padding:5px}.sis-scope ._component_lx560_8 ._passwordVisibilityIcon_lx560_43._passwordVisibilityIcon_lx560_43{width:24px;height:24px;position:absolute;right:8px}.sis-scope ._component_lx560_8 ._passwordVisibilityIcon_lx560_43._passwordVisibilityIcon_lx560_43._large_lx560_19{width:24px;height:24px;top:5px}.sis-scope ._component_lx560_8 ._customIcon_lx560_54{position:absolute;top:3px;right:4px}.sis-scope ._component_lx560_8 ._customIcon_lx560_54._isLeft_lx560_59{right:0;left:8px}.sis-scope ._component_lx560_8 ._customIcon_lx560_54._large_lx560_19{top:5px}.sis-scope ._component_lx560_8 ._input_lx560_66{border-radius:4px;outline:none;background:#f4f4f8;line-height:28px;height:28px;border:none;text-indent:8px;width:100%}.sis-scope ._component_lx560_8 ._input_lx560_66._withLeftIcon_lx560_76{text-indent:32px}.sis-scope ._component_lx560_8 ._input_lx560_66::placeholder{color:#b0b5bf}.sis-scope ._component_lx560_8 ._input_lx560_66:focus{border:1px solid #5b6372}.sis-scope ._component_lx560_8 ._input_lx560_66._large_lx560_19{height:34px;line-height:34px}.sis-scope ._component_lx560_8 ._input_lx560_66::-ms-reveal{display:none}._searchInputWrapper_otzmq_1 div{background:#f4f4f8;border-radius:4px;border:1px solid #5b6372}._searchInputWrapper_otzmq_1 div span{margin-left:-6px;z-index:1071!important}._searchInputWrapper_otzmq_1 div input{position:relative;z-index:1070;background:transparent;text-indent:0;border:none!important}._dropdownButton_xulrt_21{display:inline-flex;align-items:center;cursor:pointer;background:#f4f4f8;border-radius:4px;height:28px;min-width:192px}._dropdownButton_xulrt_21._inlineVariant_xulrt_30{background:none;height:18px;border:none;text-indent:0;min-width:initial}._dropdownButton_xulrt_21._inlineVariant_xulrt_30._open_xulrt_37{border:none}._dropdownButton_xulrt_21._open_xulrt_37{border:1px solid #5b6372}._dropdownButton_xulrt_21._disabled_xulrt_43{color:#bdc1c7;background:#f4f4f8;pointer-events:none}._dropdownButton_xulrt_21 ._selectedIcon_xulrt_48{flex-shrink:0}._dropdownButton_xulrt_21 ._chosenTitle_xulrt_51{margin-left:12px;flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._dropdownButton_xulrt_21 ._clickIcon_xulrt_58{flex-shrink:0;margin-right:2px}._menu_1lxhu_1{margin:0;position:initial;box-shadow:none}._menu_1lxhu_1 li{padding:0 5px;height:28px}.sis-scope .btn--dark .btn__text{padding:5px 20px}.sis-scope .btn--gray{background:#f4f4f8}.sis-scope .btn--gray:disabled{background:#f4f4f8;opacity:1}.sis-scope .btn--gray:disabled:hover{background:#d1d1d7}.sis-scope .btn--gray:disabled .app-icon,.sis-scope .btn--gray:disabled .btn__text{opacity:.4}.sis-scope ._sharedComponentsButton_t1p0l_31{line-height:18px}.sis-scope ._sharedComponentsButtonText_t1p0l_34{padding:5px 20px}.sis-scope .btn._btnSecondary_t1p0l_37{border:1px solid #5b6372;background-color:#fff}.sis-scope .btn._btnSecondary_t1p0l_37:hover{background-color:#f4f4f8}.sis-scope .btn._btnSecondary_t1p0l_37:disabled{background-color:#fff}.sis-scope .btn._btnSecondary_t1p0l_37:disabled:hover{background-color:#fff}._item_fvqjc_1{margin-bottom:12px;cursor:pointer;height:18px;user-select:none}._item_fvqjc_1:last-child{margin-bottom:0}._item_fvqjc_1 ._icon_fvqjc_10{margin-top:-3px}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();var B0=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(d){try{l(r.next(d))}catch(p){a(p)}}function c(d){try{l(r.throw(d))}catch(p){a(p)}}function l(d){d.done?i(d.value):o(d.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};const Nae=2e4,H0="Unspecified reason";class Lae{constructor(t,n=new qL(t),r){Fae(t),this.queryApi=new j8(t),this.taskManager=new P8(this.queryApi,n),this.shouldSkipHighlightsWithoutAttributes=r!=null?r:!1}executeQuery(t,n){cM(t);const r=new $S("SEND_JAQL_QUERY",t,Object.assign(Object.assign({},n||{}),{shouldSkipHighlightsWithoutAttributes:this.shouldSkipHighlightsWithoutAttributes||!1}));return{resultPromise:new Promise((o,i)=>{this.taskManager.executeQuerySending(r).then(a=>{a.status===Vr.ExecutionResultStatus.SUCCESS?o(a.result):i(a.error)})}),cancel:o=>this.taskManager.cancel(r.taskId,o||H0)}}executeCsvQuery(t,n){cM(t);const r=new $S("SEND_DOWNLOAD_CSV_QUERY",t,Object.assign(Object.assign({},n||{}),{shouldSkipHighlightsWithoutAttributes:this.shouldSkipHighlightsWithoutAttributes||!1}));return{resultPromise:new Promise((o,i)=>{this.taskManager.executeDownloadCsvSending(r).then(a=>{a.status===Vr.ExecutionResultStatus.SUCCESS?o(a.result):i(a.error)})}),cancel:o=>this.taskManager.cancel(r.taskId,o||H0)}}executePivotQuery(t,n){jae(t);const r=new N8("SEND_JAQL_QUERY",t,Object.assign(Object.assign({},n||{}),{shouldSkipHighlightsWithoutAttributes:this.shouldSkipHighlightsWithoutAttributes||!1}));return{resultPromise:new Promise((o,i)=>{this.taskManager.executePivotQuerySending(r).then(a=>{a.status===Vr.ExecutionResultStatus.SUCCESS?o(a.result):i(a.error)})}),cancel:o=>this.taskManager.cancel(r.taskId,o||H0)}}getDataSourceFields(t,n=9999,r=0){return B0(this,void 0,void 0,function*(){return this.queryApi.getDataSourceFields(t,n,r)})}getDataSourceSchema(t){return B0(this,void 0,void 0,function*(){return this.queryApi.getDataSourceSchema(t)})}getDataSourceList(){return B0(this,void 0,void 0,function*(){return this.queryApi.getDataSourceList()})}}function cM(e){const{attributes:t,measures:n,filters:r,highlights:o,count:i,offset:a}=e;if(i&&i<0)throw new Ar("errors.invalidCountNegative",{count:i.toString()});if(a&&a<0)throw new Ar("errors.invalidOffset",{offset:a.toString()});if(t.length+n.length===0)throw new Ar("errors.noDimensionsOrMeasures");t.forEach(s=>{if(!s.skipValidation&&!m.MetadataTypes.isAttribute(s))throw new Ar("errors.invalidAttribute",{attributeName:s.name})}),n.forEach(s=>{if(!s.skipValidation&&!m.MetadataTypes.isMeasure(s))throw new Ar("errors.invalidMeasure",{measureName:s.name})}),r.forEach(s=>{if(!s.skipValidation&&!m.MetadataTypes.isFilter(s))throw new Ar("errors.invalidFilter",{filterName:s.name})}),o.forEach(s=>{if(!s.skipValidation&&!m.MetadataTypes.isFilter(s))throw new Ar("errors.invalidHighlight",{highlightName:s.name})})}function jae(e){const{rowsAttributes:t,columnsAttributes:n,measures:r,filters:o,highlights:i,count:a,offset:s}=e;if(a&&a<0)throw new Ar("errors.invalidCountNegative",{count:a.toString()});if(s&&s<0)throw new Ar("errors.invalidOffset",{offset:s.toString()});if(t.length+n.length+r.length===0)throw new Ar("errors.noDimensionsOrMeasures");o.forEach(c=>{if(!c.skipValidation&&!m.MetadataTypes.isFilter(c))throw new Ar("errors.invalidFilter",{filterName:c.name})}),i.forEach(c=>{if(!c.skipValidation&&!m.MetadataTypes.isFilter(c))throw new Ar("errors.invalidHighlight",{highlightName:c.name})})}function Fae(e){if(!e)throw new Ar("errors.missingHttpClient");if(!e.post)throw new Ar("errors.missingPostMethod")}function ac(e,t){m.requiredArgs(2,arguments);var n=m.toInteger(t);return m.addMonths(e,-n)}function YL(e,t){var n,r,o,i,a,s,c,l;m.requiredArgs(1,arguments);var d=m.getDefaultOptions(),p=m.toInteger((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(c=d.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=m.toDate(e),v=f.getDay(),b=(v<p?7:0)+v-p;return f.setDate(f.getDate()-b),f.setHours(0,0,0,0),f}function mc(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e),r=m.toInteger(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function VL(e,t){m.requiredArgs(2,arguments);var n=m.toInteger(t),r=n*3;return m.addMonths(e,r)}function Ih(e,t){m.requiredArgs(2,arguments);var n=m.toInteger(t),r=n*7;return mc(e,r)}function og(e){return m.requiredArgs(1,arguments),e instanceof Date||m._typeof(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Nu(e){if(m.requiredArgs(1,arguments),!og(e)&&typeof e!="number")return!1;var t=m.toDate(e);return!isNaN(Number(t))}function dx(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e).getTime(),r=m.toInteger(t);return new Date(n+r)}function GL(e,t){m.requiredArgs(2,arguments);var n=m.toInteger(t);return dx(e,-n)}var Bae=864e5;function Hae(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/Bae)+1}function sc(e){m.requiredArgs(1,arguments);var t=1,n=m.toDate(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function QL(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=sc(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=sc(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function $ae(e){m.requiredArgs(1,arguments);var t=QL(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=sc(n);return r}var zae=6048e5;function JL(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=sc(t).getTime()-$ae(t).getTime();return Math.round(n/zae)+1}function px(e,t){var n,r,o,i,a,s,c,l;m.requiredArgs(1,arguments);var d=m.toDate(e),p=d.getUTCFullYear(),f=m.getDefaultOptions(),v=m.toInteger((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:f.firstWeekContainsDate)!==null&&r!==void 0?r:(c=f.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(p+1,0,v),b.setUTCHours(0,0,0,0);var _=m.startOfUTCWeek(b,t),y=new Date(0);y.setUTCFullYear(p,0,v),y.setUTCHours(0,0,0,0);var C=m.startOfUTCWeek(y,t);return d.getTime()>=_.getTime()?p+1:d.getTime()>=C.getTime()?p:p-1}function Wae(e,t){var n,r,o,i,a,s,c,l;m.requiredArgs(1,arguments);var d=m.getDefaultOptions(),p=m.toInteger((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(c=d.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=px(e,t),v=new Date(0);v.setUTCFullYear(f,0,p),v.setUTCHours(0,0,0,0);var b=m.startOfUTCWeek(v,t);return b}var Uae=6048e5;function ZL(e,t){m.requiredArgs(1,arguments);var n=m.toDate(e),r=m.startOfUTCWeek(n,t).getTime()-Wae(n,t).getTime();return Math.round(r/Uae)+1}function Nt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var ya={y:function(t,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return Nt(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Nt(r+1,2)},d:function(t,n){return Nt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Nt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Nt(t.getUTCHours(),n.length)},m:function(t,n){return Nt(t.getUTCMinutes(),n.length)},s:function(t,n){return Nt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return Nt(i,n.length)}},Rl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},qae={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return ya.y(t,n)},Y:function(t,n,r,o){var i=px(t,o),a=i>0?i:1-i;if(n==="YY"){var s=a%100;return Nt(s,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Nt(a,n.length)},R:function(t,n){var r=QL(t);return Nt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Nt(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return Nt(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return Nt(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return ya.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return Nt(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=ZL(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):Nt(i,n.length)},I:function(t,n,r){var o=JL(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):Nt(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):ya.d(t,n)},D:function(t,n,r){var o=Hae(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):Nt(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Nt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Nt(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return Nt(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=Rl.noon:o===0?i=Rl.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=Rl.evening:o>=12?i=Rl.afternoon:o>=4?i=Rl.morning:i=Rl.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return ya.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ya.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):Nt(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):Nt(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ya.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ya.s(t,n)},S:function(t,n){return ya.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return dM(a);case"XXXX":case"XX":return vs(a);case"XXXXX":case"XXX":default:return vs(a,":")}},x:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"x":return dM(a);case"xxxx":case"xx":return vs(a);case"xxxxx":case"xxx":default:return vs(a,":")}},O:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+uM(a,":");case"OOOO":default:return"GMT"+vs(a,":")}},z:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+uM(a,":");case"zzzz":default:return"GMT"+vs(a,":")}},t:function(t,n,r,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return Nt(a,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,a=i.getTime();return Nt(a,n.length)}};function uM(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t;return n+String(o)+a+Nt(i,2)}function dM(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Nt(Math.abs(e)/60,2)}return vs(e,t)}function vs(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=Nt(Math.floor(o/60),2),a=Nt(o%60,2);return r+i+n+a}var pM=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},KL=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Yae=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return pM(t,n);var a;switch(o){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",pM(o,n)).replace("{{time}}",KL(i,n))},h1={p:KL,P:Yae};function Nh(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()}var Vae=["D","DD"],Gae=["YY","YYYY"];function XL(e){return Vae.indexOf(e)!==-1}function ej(e){return Gae.indexOf(e)!==-1}function Lh(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Qae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zae=/^'([^]*?)'?$/,Kae=/''/g,Xae=/[a-zA-Z]/;function hM(e,t,n){var r,o,i,a,s,c,l,d,p,f,v,b,_,y,C,k,T,x;m.requiredArgs(2,arguments);var E=String(t),O=m.getDefaultOptions(),S=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:O.locale)!==null&&r!==void 0?r:m.locale,R=m.toInteger((i=(a=(s=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(l=n.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&s!==void 0?s:O.firstWeekContainsDate)!==null&&a!==void 0?a:(p=O.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=m.toInteger((v=(b=(_=(y=n==null?void 0:n.weekStartsOn)!==null&&y!==void 0?y:n==null||(C=n.locale)===null||C===void 0||(k=C.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&_!==void 0?_:O.weekStartsOn)!==null&&b!==void 0?b:(T=O.locale)===null||T===void 0||(x=T.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&v!==void 0?v:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var P=m.toDate(e);if(!Nu(P))throw new RangeError("Invalid time value");var I=Nh(P),j=GL(P,I),W={firstWeekContainsDate:R,weekStartsOn:D,locale:S,_originalDate:P},F=E.match(Jae).map(function(H){var $=H[0];if($==="p"||$==="P"){var G=h1[$];return G(H,S.formatLong)}return H}).join("").match(Qae).map(function(H){if(H==="''")return"'";var $=H[0];if($==="'")return ese(H);var G=qae[$];if(G)return!(n!=null&&n.useAdditionalWeekYearTokens)&&ej(H)&&Lh(H,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&XL(H)&&Lh(H,t,String(e)),G(j,H,S.localize,W);if($.match(Xae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return H}).join("");return F}function ese(e){var t=e.match(Zae);return t?t[1].replace(Kae,"'"):e}function tse(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=t.getDay();return n}function wi(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=t.getHours();return n}function lr(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=t.getMonth();return n}function zl(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=Math.floor(t.getMonth()/3)+1;return n}function f1(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=t.getTime();return n}function _i(e){m.requiredArgs(1,arguments);var t=m.toDate(e);return t.setHours(0,0,0,0),t}function tj(e){m.requiredArgs(1,arguments);var t=m.toDate(e);return t.setDate(1),t.setHours(0,0,0,0),t}function g1(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function nj(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function nse(e,t){m.requiredArgs(2,arguments);var n=m.toInteger(t);return mc(e,-n)}function rse(e,t){m.requiredArgs(2,arguments);var n=m.toInteger(t);return VL(e,-n)}function fM(e,t){m.requiredArgs(2,arguments);var n=m.toInteger(t);return Ih(e,-n)}var ose=36e5;function ise(e,t){m.requiredArgs(2,arguments);var n=m.toInteger(t);return dx(e,n*ose)}function jh(e){return m.requiredArgs(1,arguments),YL(e,{weekStartsOn:1})}function ase(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var o=jh(r),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var a=jh(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function sse(e){m.requiredArgs(1,arguments);var t=ase(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=jh(n);return r}var lse=864e5;function Fh(e,t){m.requiredArgs(2,arguments);var n=_i(e),r=_i(t),o=n.getTime()-Nh(n),i=r.getTime()-Nh(r);return Math.round((o-i)/lse)}var cse=6e4;function m1(e,t){m.requiredArgs(2,arguments);var n=m.toInteger(t);return dx(e,n*cse)}function gM(e){m.requiredArgs(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(m._typeof(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var o=m.toDate(r);(n===void 0||n<o||isNaN(Number(o)))&&(n=o)}),n||new Date(NaN)}function mM(e){m.requiredArgs(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(m._typeof(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var o=m.toDate(r);(n===void 0||n>o||isNaN(o.getDate()))&&(n=o)}),n||new Date(NaN)}function use(e,t){m.requiredArgs(2,arguments);var n=_i(e),r=_i(t);return n.getTime()===r.getTime()}function Bh(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e),r=m.toDate(t),o=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return o*12+i}function Hh(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e),r=m.toDate(t);return n.getFullYear()-r.getFullYear()}function v1(e){m.requiredArgs(1,arguments);var t=m.toDate(e);return t.setHours(23,59,59,999),t}function dse(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function pse(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function hse(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function vM(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=t.getDate();return n}var fse=6048e5;function gse(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=jh(t).getTime()-sse(t).getTime();return Math.round(n/fse)+1}function xi(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=t.getMinutes();return n}function bM(e){m.requiredArgs(1,arguments);var t=m.toDate(e),n=t.getSeconds();return n}function ct(e){return m.requiredArgs(1,arguments),m.toDate(e).getFullYear()}function Fa(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e),r=m.toDate(t);return n.getTime()>r.getTime()}function Ma(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e),r=m.toDate(t);return n.getTime()<r.getTime()}function mse(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e),r=m.toDate(t);return n.getTime()===r.getTime()}function yM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vse(e,t){if(e){if(typeof e=="string")return yM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yM(e,t)}}function wM(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=vse(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
395
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function bt(e,t){if(typeof t!="function"&&t!==null)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&&m._setPrototypeOf(e,t)}function $h(e){return $h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$h(e)}function rj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(rj=function(){return!!e})()}function bse(e,t){if(t&&(m._typeof(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m._assertThisInitialized(e)}function yt(e){var t=rj();return function(){var r=$h(e),o;if(t){var i=$h(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return bse(this,o)}}function ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yse(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,m.toPropertyKey(r.key),r)}}function gt(e,t,n){return t&&yse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var wse=10,oj=function(){function e(){ft(this,e),m._defineProperty(this,"priority",void 0),m._defineProperty(this,"subPriority",0)}return gt(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),_se=function(e){bt(n,e);var t=yt(n);function n(r,o,i,a,s){var c;return ft(this,n),c=t.call(this),c.value=r,c.validateValue=o,c.setValue=i,c.priority=a,s&&(c.subPriority=s),c}return gt(n,[{key:"validate",value:function(o,i){return this.validateValue(o,this.value,i)}},{key:"set",value:function(o,i,a){return this.setValue(o,i,this.value,a)}}]),n}(oj),xse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",wse),m._defineProperty(m._assertThisInitialized(r),"subPriority",-1),r}return gt(n,[{key:"set",value:function(o,i){if(i.timestampIsSet)return o;var a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}}]),n}(oj),Tt=function(){function e(){ft(this,e),m._defineProperty(this,"incompatibleTokens",void 0),m._defineProperty(this,"priority",void 0),m._defineProperty(this,"subPriority",void 0)}return gt(e,[{key:"run",value:function(n,r,o,i){var a=this.parse(n,r,o,i);return a?{setter:new _se(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(n,r,o){return!0}}]),e}(),Cse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",140),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["R","u","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"G":case"GG":case"GGG":return a.era(o,{width:"abbreviated"})||a.era(o,{width:"narrow"});case"GGGGG":return a.era(o,{width:"narrow"});case"GGGG":default:return a.era(o,{width:"wide"})||a.era(o,{width:"abbreviated"})||a.era(o,{width:"narrow"})}}},{key:"set",value:function(o,i,a){return i.era=a,o.setUTCFullYear(a,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(Tt),_n={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},fi={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function xn(e,t){return e&&{value:t(e.value),rest:e.rest}}function sn(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function gi(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*m.millisecondsInHour+i*m.millisecondsInMinute+a*m.millisecondsInSecond),rest:t.slice(n[0].length)}}function ij(e){return sn(_n.anyDigitsSigned,e)}function fn(e,t){switch(e){case 1:return sn(_n.singleDigit,t);case 2:return sn(_n.twoDigits,t);case 3:return sn(_n.threeDigits,t);case 4:return sn(_n.fourDigits,t);default:return sn(new RegExp("^\\d{1,"+e+"}"),t)}}function zh(e,t){switch(e){case 1:return sn(_n.singleDigitSigned,t);case 2:return sn(_n.twoDigitsSigned,t);case 3:return sn(_n.threeDigitsSigned,t);case 4:return sn(_n.fourDigitsSigned,t);default:return sn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function hx(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function aj(e,t){var n=t>0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,a=Math.floor(i/100)*100,s=e>=i%100;o=e+a-(s?100:0)}return n?o:1-o}function sj(e){return e%400===0||e%4===0&&e%100!==0}var Sse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",130),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){var s=function(l){return{year:l,isTwoDigitYear:i==="yy"}};switch(i){case"y":return xn(fn(4,o),s);case"yo":return xn(a.ordinalNumber(o,{unit:"year"}),s);default:return xn(fn(i.length,o),s)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,a){var s=o.getUTCFullYear();if(a.isTwoDigitYear){var c=aj(a.year,s);return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}var l=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(Tt),kse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",130),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){var s=function(l){return{year:l,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return xn(fn(4,o),s);case"Yo":return xn(a.ordinalNumber(o,{unit:"year"}),s);default:return xn(fn(i.length,o),s)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,a,s){var c=px(o,s);if(a.isTwoDigitYear){var l=aj(a.year,c);return o.setUTCFullYear(l,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),m.startOfUTCWeek(o,s)}var d=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(d,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),m.startOfUTCWeek(o,s)}}]),n}(Tt),Tse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",130),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i){return zh(i==="R"?4:i.length,o)}},{key:"set",value:function(o,i,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),sc(s)}}]),n}(Tt),Ese=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",130),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i){return zh(i==="u"?4:i.length,o)}},{key:"set",value:function(o,i,a){return o.setUTCFullYear(a,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(Tt),Ase=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",120),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"Q":case"QQ":return fn(i.length,o);case"Qo":return a.ordinalNumber(o,{unit:"quarter"});case"QQQ":return a.quarter(o,{width:"abbreviated",context:"formatting"})||a.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(o,{width:"wide",context:"formatting"})||a.quarter(o,{width:"abbreviated",context:"formatting"})||a.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Tt),Ose=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",120),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"q":case"qq":return fn(i.length,o);case"qo":return a.ordinalNumber(o,{unit:"quarter"});case"qqq":return a.quarter(o,{width:"abbreviated",context:"standalone"})||a.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(o,{width:"wide",context:"standalone"})||a.quarter(o,{width:"abbreviated",context:"standalone"})||a.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Tt),Rse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),m._defineProperty(m._assertThisInitialized(r),"priority",110),r}return gt(n,[{key:"parse",value:function(o,i,a){var s=function(l){return l-1};switch(i){case"M":return xn(sn(_n.month,o),s);case"MM":return xn(fn(2,o),s);case"Mo":return xn(a.ordinalNumber(o,{unit:"month"}),s);case"MMM":return a.month(o,{width:"abbreviated",context:"formatting"})||a.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(o,{width:"wide",context:"formatting"})||a.month(o,{width:"abbreviated",context:"formatting"})||a.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Tt),Dse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",110),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){var s=function(l){return l-1};switch(i){case"L":return xn(sn(_n.month,o),s);case"LL":return xn(fn(2,o),s);case"Lo":return xn(a.ordinalNumber(o,{unit:"month"}),s);case"LLL":return a.month(o,{width:"abbreviated",context:"standalone"})||a.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(o,{width:"wide",context:"standalone"})||a.month(o,{width:"abbreviated",context:"standalone"})||a.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Tt);function Mse(e,t,n){m.requiredArgs(2,arguments);var r=m.toDate(e),o=m.toInteger(t),i=ZL(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}var Pse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",100),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"w":return sn(_n.week,o);case"wo":return a.ordinalNumber(o,{unit:"week"});default:return fn(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=53}},{key:"set",value:function(o,i,a,s){return m.startOfUTCWeek(Mse(o,a,s),s)}}]),n}(Tt);function Ise(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e),r=m.toInteger(t),o=JL(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}var Nse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",100),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"I":return sn(_n.week,o);case"Io":return a.ordinalNumber(o,{unit:"week"});default:return fn(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=53}},{key:"set",value:function(o,i,a){return sc(Ise(o,a))}}]),n}(Tt),Lse=[31,28,31,30,31,30,31,31,30,31,30,31],jse=[31,29,31,30,31,30,31,31,30,31,30,31],Fse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",90),m._defineProperty(m._assertThisInitialized(r),"subPriority",1),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"d":return sn(_n.date,o);case"do":return a.ordinalNumber(o,{unit:"date"});default:return fn(i.length,o)}}},{key:"validate",value:function(o,i){var a=o.getUTCFullYear(),s=sj(a),c=o.getUTCMonth();return s?i>=1&&i<=jse[c]:i>=1&&i<=Lse[c]}},{key:"set",value:function(o,i,a){return o.setUTCDate(a),o.setUTCHours(0,0,0,0),o}}]),n}(Tt),Bse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",90),m._defineProperty(m._assertThisInitialized(r),"subpriority",1),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"D":case"DD":return sn(_n.dayOfYear,o);case"Do":return a.ordinalNumber(o,{unit:"date"});default:return fn(i.length,o)}}},{key:"validate",value:function(o,i){var a=o.getUTCFullYear(),s=sj(a);return s?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,a){return o.setUTCMonth(0,a),o.setUTCHours(0,0,0,0),o}}]),n}(Tt);function fx(e,t,n){var r,o,i,a,s,c,l,d;m.requiredArgs(2,arguments);var p=m.getDefaultOptions(),f=m.toInteger((r=(o=(i=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&i!==void 0?i:p.weekStartsOn)!==null&&o!==void 0?o:(l=p.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=m.toDate(e),b=m.toInteger(t),_=v.getUTCDay(),y=b%7,C=(y+7)%7,k=(C<f?7:0)+b-_;return v.setUTCDate(v.getUTCDate()+k),v}var Hse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",90),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"E":case"EE":case"EEE":return a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(o,{width:"wide",context:"formatting"})||a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,a,s){return o=fx(o,a,s),o.setUTCHours(0,0,0,0),o}}]),n}(Tt),$se=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",90),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a,s){var c=function(d){var p=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+p};switch(i){case"e":case"ee":return xn(fn(i.length,o),c);case"eo":return xn(a.ordinalNumber(o,{unit:"day"}),c);case"eee":return a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"});case"eeeee":return a.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(o,{width:"wide",context:"formatting"})||a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,a,s){return o=fx(o,a,s),o.setUTCHours(0,0,0,0),o}}]),n}(Tt),zse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",90),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a,s){var c=function(d){var p=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+p};switch(i){case"c":case"cc":return xn(fn(i.length,o),c);case"co":return xn(a.ordinalNumber(o,{unit:"day"}),c);case"ccc":return a.day(o,{width:"abbreviated",context:"standalone"})||a.day(o,{width:"short",context:"standalone"})||a.day(o,{width:"narrow",context:"standalone"});case"ccccc":return a.day(o,{width:"narrow",context:"standalone"});case"cccccc":return a.day(o,{width:"short",context:"standalone"})||a.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(o,{width:"wide",context:"standalone"})||a.day(o,{width:"abbreviated",context:"standalone"})||a.day(o,{width:"short",context:"standalone"})||a.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,a,s){return o=fx(o,a,s),o.setUTCHours(0,0,0,0),o}}]),n}(Tt);function Wse(e,t){m.requiredArgs(2,arguments);var n=m.toInteger(t);n%7===0&&(n=n-7);var r=1,o=m.toDate(e),i=o.getUTCDay(),a=n%7,s=(a+7)%7,c=(s<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+c),o}var Use=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",90),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){var s=function(l){return l===0?7:l};switch(i){case"i":case"ii":return fn(i.length,o);case"io":return a.ordinalNumber(o,{unit:"day"});case"iii":return xn(a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"}),s);case"iiiii":return xn(a.day(o,{width:"narrow",context:"formatting"}),s);case"iiiiii":return xn(a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"}),s);case"iiii":default:return xn(a.day(o,{width:"wide",context:"formatting"})||a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(o,i){return i>=1&&i<=7}},{key:"set",value:function(o,i,a){return o=Wse(o,a),o.setUTCHours(0,0,0,0),o}}]),n}(Tt),qse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",80),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"a":case"aa":case"aaa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})||a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,a){return o.setUTCHours(hx(a),0,0,0),o}}]),n}(Tt),Yse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",80),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"b":case"bb":case"bbb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})||a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,a){return o.setUTCHours(hx(a),0,0,0),o}}]),n}(Tt),Vse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",80),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["a","b","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"B":case"BB":case"BBB":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})||a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,a){return o.setUTCHours(hx(a),0,0,0),o}}]),n}(Tt),Gse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",70),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["H","K","k","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"h":return sn(_n.hour12h,o);case"ho":return a.ordinalNumber(o,{unit:"hour"});default:return fn(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=12}},{key:"set",value:function(o,i,a){var s=o.getUTCHours()>=12;return s&&a<12?o.setUTCHours(a+12,0,0,0):!s&&a===12?o.setUTCHours(0,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Tt),Qse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",70),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"H":return sn(_n.hour23h,o);case"Ho":return a.ordinalNumber(o,{unit:"hour"});default:return fn(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=23}},{key:"set",value:function(o,i,a){return o.setUTCHours(a,0,0,0),o}}]),n}(Tt),Jse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",70),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["h","H","k","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"K":return sn(_n.hour11h,o);case"Ko":return a.ordinalNumber(o,{unit:"hour"});default:return fn(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,a){var s=o.getUTCHours()>=12;return s&&a<12?o.setUTCHours(a+12,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Tt),Zse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",70),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"k":return sn(_n.hour24h,o);case"ko":return a.ordinalNumber(o,{unit:"hour"});default:return fn(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=24}},{key:"set",value:function(o,i,a){var s=a<=24?a%24:a;return o.setUTCHours(s,0,0,0),o}}]),n}(Tt),Kse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",60),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"m":return sn(_n.minute,o);case"mo":return a.ordinalNumber(o,{unit:"minute"});default:return fn(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCMinutes(a,0,0),o}}]),n}(Tt),Xse=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",50),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["t","T"]),r}return gt(n,[{key:"parse",value:function(o,i,a){switch(i){case"s":return sn(_n.second,o);case"so":return a.ordinalNumber(o,{unit:"second"});default:return fn(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCSeconds(a,0),o}}]),n}(Tt),ele=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",30),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["t","T"]),r}return gt(n,[{key:"parse",value:function(o,i){var a=function(c){return Math.floor(c*Math.pow(10,-i.length+3))};return xn(fn(i.length,o),a)}},{key:"set",value:function(o,i,a){return o.setUTCMilliseconds(a),o}}]),n}(Tt),tle=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",10),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["t","T","x"]),r}return gt(n,[{key:"parse",value:function(o,i){switch(i){case"X":return gi(fi.basicOptionalMinutes,o);case"XX":return gi(fi.basic,o);case"XXXX":return gi(fi.basicOptionalSeconds,o);case"XXXXX":return gi(fi.extendedOptionalSeconds,o);case"XXX":default:return gi(fi.extended,o)}}},{key:"set",value:function(o,i,a){return i.timestampIsSet?o:new Date(o.getTime()-a)}}]),n}(Tt),nle=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",10),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens",["t","T","X"]),r}return gt(n,[{key:"parse",value:function(o,i){switch(i){case"x":return gi(fi.basicOptionalMinutes,o);case"xx":return gi(fi.basic,o);case"xxxx":return gi(fi.basicOptionalSeconds,o);case"xxxxx":return gi(fi.extendedOptionalSeconds,o);case"xxx":default:return gi(fi.extended,o)}}},{key:"set",value:function(o,i,a){return i.timestampIsSet?o:new Date(o.getTime()-a)}}]),n}(Tt),rle=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",40),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens","*"),r}return gt(n,[{key:"parse",value:function(o){return ij(o)}},{key:"set",value:function(o,i,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),n}(Tt),ole=function(e){bt(n,e);var t=yt(n);function n(){var r;ft(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),m._defineProperty(m._assertThisInitialized(r),"priority",20),m._defineProperty(m._assertThisInitialized(r),"incompatibleTokens","*"),r}return gt(n,[{key:"parse",value:function(o){return ij(o)}},{key:"set",value:function(o,i,a){return[new Date(a),{timestampIsSet:!0}]}}]),n}(Tt),ile={G:new Cse,y:new Sse,Y:new kse,R:new Tse,u:new Ese,Q:new Ase,q:new Ose,M:new Rse,L:new Dse,w:new Pse,I:new Nse,d:new Fse,D:new Bse,E:new Hse,e:new $se,c:new zse,i:new Use,a:new qse,b:new Yse,B:new Vse,h:new Gse,H:new Qse,K:new Jse,k:new Zse,m:new Kse,s:new Xse,S:new ele,X:new tle,x:new nle,t:new rle,T:new ole},ale=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sle=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lle=/^'([^]*?)'?$/,cle=/''/g,ule=/\S/,dle=/[a-zA-Z]/;function $0(e,t,n,r){var o,i,a,s,c,l,d,p,f,v,b,_,y,C,k,T,x,E;m.requiredArgs(3,arguments);var O=String(e),S=String(t),R=m.getDefaultOptions(),D=(o=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:R.locale)!==null&&o!==void 0?o:m.locale;if(!D.match)throw new RangeError("locale must contain match property");var P=m.toInteger((a=(s=(c=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(d=r.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&c!==void 0?c:R.firstWeekContainsDate)!==null&&s!==void 0?s:(f=R.locale)===null||f===void 0||(v=f.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=m.toInteger((b=(_=(y=(C=r==null?void 0:r.weekStartsOn)!==null&&C!==void 0?C:r==null||(k=r.locale)===null||k===void 0||(T=k.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&y!==void 0?y:R.weekStartsOn)!==null&&_!==void 0?_:(x=R.locale)===null||x===void 0||(E=x.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&b!==void 0?b:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(S==="")return O===""?m.toDate(n):new Date(NaN);var j={firstWeekContainsDate:P,weekStartsOn:I,locale:D},W=[new xse],F=S.match(sle).map(function(oe){var N=oe[0];if(N in h1){var z=h1[N];return z(oe,D.formatLong)}return oe}).join("").match(ale),H=[],$=wM(F),G;try{var K=function(){var N=G.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&ej(N)&&Lh(N,S,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&XL(N)&&Lh(N,S,e);var z=N[0],Q=ile[z];if(Q){var re=Q.incompatibleTokens;if(Array.isArray(re)){var ue=H.find(function(be){return re.includes(be.token)||be.token===z});if(ue)throw new RangeError("The format string mustn't contain `".concat(ue.fullToken,"` and `").concat(N,"` at the same time"))}else if(Q.incompatibleTokens==="*"&&H.length>0)throw new RangeError("The format string mustn't contain `".concat(N,"` and any other token at the same time"));H.push({token:z,fullToken:N});var ie=Q.run(O,N,D.match,j);if(!ie)return{v:new Date(NaN)};W.push(ie.setter),O=ie.rest}else{if(z.match(dle))throw new RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");if(N==="''"?N="'":z==="'"&&(N=ple(N)),O.indexOf(N)===0)O=O.slice(N.length);else return{v:new Date(NaN)}}};for($.s();!(G=$.n()).done;){var Z=K();if(m._typeof(Z)==="object")return Z.v}}catch(oe){$.e(oe)}finally{$.f()}if(O.length>0&&ule.test(O))return new Date(NaN);var X=W.map(function(oe){return oe.priority}).sort(function(oe,N){return N-oe}).filter(function(oe,N,z){return z.indexOf(oe)===N}).map(function(oe){return W.filter(function(N){return N.priority===oe}).sort(function(N,z){return z.subPriority-N.subPriority})}).map(function(oe){return oe[0]}),se=m.toDate(n);if(isNaN(se.getTime()))return new Date(NaN);var ve=GL(se,Nh(se)),fe={},me=wM(X),ge;try{for(me.s();!(ge=me.n()).done;){var Se=ge.value;if(!Se.validate(ve,j))return new Date(NaN);var _e=Se.set(ve,fe,j);Array.isArray(_e)?(ve=_e[0],hse(fe,_e[1])):ve=_e}}catch(oe){me.e(oe)}finally{me.f()}return ve}function ple(e){return e.match(lle)[1].replace(cle,"'")}function hle(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e),r=m.toDate(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function fle(e,t){m.requiredArgs(2,arguments);var n=g1(e),r=g1(t);return n.getTime()===r.getTime()}function gle(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e),r=m.toDate(t);return n.getFullYear()===r.getFullYear()}function Lu(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e).getTime(),r=m.toDate(t.start).getTime(),o=m.toDate(t.end).getTime();if(!(r<=o))throw new RangeError("Invalid interval");return n>=r&&n<=o}function mle(e,t){if(m.requiredArgs(2,arguments),m._typeof(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=m.toDate(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=m.setMonth(n,t.month)),t.date!=null&&n.setDate(m.toInteger(t.date)),t.hours!=null&&n.setHours(m.toInteger(t.hours)),t.minutes!=null&&n.setMinutes(m.toInteger(t.minutes)),t.seconds!=null&&n.setSeconds(m.toInteger(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(m.toInteger(t.milliseconds)),n)}function Ip(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e),r=m.toInteger(t);return n.setHours(r),n}function Np(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e),r=m.toInteger(t);return n.setMinutes(r),n}function Dl(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e),r=m.toInteger(t),o=Math.floor(n.getMonth()/3)+1,i=r-o;return m.setMonth(n,n.getMonth()+i*3)}function vle(e,t){m.requiredArgs(2,arguments);var n=m.toDate(e),r=m.toInteger(t);return n.setSeconds(r),n}const ble=2e4,yle={enabled:!0,delay:500},wle={locale:m.getBaseDateFnsLocale(),dateConfig:m.defaultDateConfig,loadingIndicatorConfig:yle,language:"en",queryCacheConfig:{enabled:!1},queryLimit:ble,accessibilityConfig:{enabled:!1},errorBoundaryConfig:{alwaysShowErrorText:!1}};function _le(e,t,n){return bo(this,null,function*(){const r=yield xle(t,n);return m.merge.withOptions({mergeArrays:!1},wle,r,e)})}function xle(e,t=!1){return bo(this,null,function*(){const n=yield e.get("api/globals"),r=t?{colors:m.getDefaultThemeSettings().palette.variantColors}:yield m.getLegacyPalette(m.getPaletteName(n.designSettings),e);return{serverThemeSettings:m.convertToThemeSettings(n.designSettings,r),serverLanguage:n.language,serverVersion:n.version}})}class lj{constructor(t,n,r){Ct(this,"httpClient");Ct(this,"pivotClient");Ct(this,"queryClient");Ct(this,"defaultDataSource");Ct(this,"settings");Ct(this,"queryCache");window.addEventListener("unhandledrejection",o=>{o.reason instanceof Error?console.error(o.reason.message):console.error(o.reason)}),this.httpClient=new H$(t,n,"sdk-ui-1.13.0"),this.pivotClient=new qL(this.httpClient),this.queryClient=new Lae(this.httpClient,this.pivotClient),this.queryCache={clear:m.clearExecuteQueryCache},r!==void 0&&(this.defaultDataSource=r)}}const cj=s=>bo(exports,[s],function*({defaultDataSource:e,url:t,token:n,wat:r,ssoEnabled:o,appConfig:i,enableSilentPreAuth:a}){if(t!==void 0){const c=b$(t,void 0,void 0,n,r,o,a);if(c){const l=new lj(t,c,e),d=yield l.httpClient.login(),p="wat"in c||!d;return l.settings=yield _le(i||{},l.httpClient,p),l}}throw new m.TranslatableError("errors.sisenseContextNoAuthentication")}),Cle=e=>"levels"in e&&e.isCascading===!0;var ju=(e=>(e.HIGHLIGHT="highlight",e.FILTER="filter",e))(ju||{});const Sle=e=>({columns:e.columns.map(t=>({widthPercentage:t.width,rows:(t.cells||[]).map(n=>{const r=n.subcells.reduce((o,i)=>o+i.width,0);return{cells:n.subcells.map(o=>({widthPercentage:r<100?o.width/(r/100):o.width,height:o.elements[0].height,widgetId:o.elements[0].widgetid}))}})}))}),kle=e=>{var n;const t=m.createFilterFromJaql(e.jaql,e.instanceid);return t.disabled=(n=e.disabled)!=null?n:!1,t},Tle=e=>{var r;const t=e.levels.map(o=>m.createFilterFromJaql(o)),n=new m.CascadingFilter(t);return n.disabled=(r=e.disabled)!=null?r:!1,n};function Ele(e){return e.map(t=>Cle(t)?Tle(t):kle(t))}function Ale(e=[]){const t={};return e.forEach(n=>{var r,o,i,a;t[n.oid]={applyMode:((r=n.options)==null?void 0:r.dashboardFiltersMode)==="filter"?ju.FILTER:ju.HIGHLIGHT,shouldAffectFilters:(o=n.options)==null?void 0:o.selector,ignoreFilters:{all:(i=n.metadata.ignore)==null?void 0:i.all,ids:(a=n.metadata.ignore)==null?void 0:a.ids}}}),t}class uj{constructor(t,n){Ct(this,"oid");Ct(this,"title");Ct(this,"dataSource");Ct(this,"widgets");Ct(this,"layout");Ct(this,"filters");Ct(this,"widgetFilterOptions");const{oid:r,title:o,datasource:i,widgets:a,layout:s,filters:c}=t;this.oid=r,this.title=o,this.dataSource={title:i.title,type:i.live?"live":"elasticube"},this.widgets=(a==null?void 0:a.map(l=>Uce(l,n)))||[],this.layout=s?Sle(s):{columns:[]},this.filters=Ele(c||[]),this.widgetFilterOptions=Ale(a)}getDashboardProps(){return{title:this.title,defaultDataSource:this.dataSource,widgets:this.widgets,layout:this.layout,filters:this.filters,widgetFilterOptions:this.widgetFilterOptions}}}function dj(o,i){return bo(this,arguments,function*(e,t,n={},r){const{includeWidgets:a,includeFilters:s}=n,c=new m.RestApi(e),l=["oid","title","datasource"];a&&l.push("layout"),s&&l.push("filters");const d=[c.getDashboard(t,{fields:l})];a&&d.push(c.getDashboardWidgets(t));const[p,f]=yield Promise.all(d);return f&&(p.widgets=f),new uj(p,r)})}function pj(n){return bo(this,arguments,function*(e,t={}){const{includeWidgets:r,searchByTitle:o}=t,i=new m.RestApi(e),a=[];let s=["oid","title","datasource"];return r&&(s=[],a.push("widgets")),(yield i.getDashboards({fields:s,expand:a,searchByTitle:o})).map(l=>new uj(l))})}function Hs(e,t,n){const r=m.usePrevious(e);return!r||t.some(i=>!m.isEqual(r[i],e[i]))?!0:n?n(e,r):!1}function qa({enabled:e},t){const n=Y.useRef(!1);return Y.useCallback((r,o=!1)=>{const i=e===!1||!r,a=n.current;return n.current=i,!i&&(a||t||o)},[e,t])}function Ao(e,t){switch(t.type){case"loading":return Ole(e);case"success":return Rle(t.data);case"error":return Dle(t.error)}}function Ole(e){return Te(he({},e),{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0})}function Rle(e){return{isLoading:!1,isError:!1,isSuccess:!0,data:e,status:"success",error:void 0}}function Dle(e){return{isLoading:!1,isError:!0,isSuccess:!1,data:void 0,status:"error",error:e}}const hj=m.withTracking("useGetDashboardModel")(Mle);function Mle(e){const t=Hs(e,["dashboardOid"]),n=qa(e,t),[r,o]=Y.useReducer(Ao,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:i,app:a}=m.useSisenseContext(),{themeSettings:s}=m.useThemeContext();return Y.useEffect(()=>{if(i||o({type:"error",error:new m.TranslatableError("errors.sisenseContextNotFound")}),n(a)){o({type:"loading"});const{dashboardOid:c,includeWidgets:l,includeFilters:d}=e;dj(a.httpClient,c,{includeWidgets:l,includeFilters:d},s).then(p=>{o({type:"success",data:p})}).catch(p=>{o({type:"error",error:p})})}},[a,i,e,n,s]),r.data&&t?b1(Ao(r,{type:"loading"})):b1(r)}function b1(e){const r=e,{data:t}=r,n=qr(r,["data"]);return Te(he({},n),{dashboard:t})}const Ple=m.withTracking("useGetDashboardModels")(Ile);function Ile(e={}){const t=Hs(e,["includeWidgets"]),n=qa(e,t),[r,o]=Y.useReducer(Ao,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:i,app:a}=m.useSisenseContext();return Y.useEffect(()=>{i||o({type:"error",error:new m.TranslatableError("errors.sisenseContextNotFound")}),n(a)&&(o({type:"loading"}),pj(a.httpClient,e).then(s=>{o({type:"success",data:s})}).catch(s=>{o({type:"error",error:s})}))},[a,i,e,n]),r.data&&t?y1(Ao(r,{type:"loading"})):y1(r)}function y1(e){const r=e,{data:t}=r,n=qr(r,["data"]);return Te(he({},n),{dashboards:t})}function Is(e,t){return e===void 0&&t===void 0?!1:[e,t].some(n=>n===void 0)||e.length!==t.length?!0:e.length===0&&t.length===0?!1:e.some((n,r)=>!m.isEqualWith(n,t[r],(o,i)=>{const a=_M(o)?Te(he({},o.toJSON()),{name:void 0}):o,s=_M(i)?Te(he({},i.toJSON()),{name:void 0}):i;return m.isEqual(a,s)}))}function _M(e){return"toJSON"in e&&typeof e.toJSON=="function"}function Nle(e,t,n,r){if(n===void 0&&r===void 0)return!1;if([n,r].some(i=>i===void 0))return!0;function o(i,a){const s=i,c=i,l=a,d=a;return i===void 0&&a===void 0?!0:[i,a].some(p=>p===void 0)||s.operator!==l.operator?!1:c.instanceid&&d.instanceid?!Is(e==null?void 0:e.filter(p=>p.guid===c.instanceid),t==null?void 0:t.filter(p=>p.guid===d.instanceid)):o(s.left,l.left)&&o(s.right,l.right)||o(s.left,l.right)&&o(s.right,l.left)}return!o(n,r)}function xM(e,t){return Ao(e,t)}const Lle=m.withTracking("useExecutePivotQuery")(fj);function fj(e){const t=Fle(e),n=qa(e,t),[r,o]=Y.useReducer(xM,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:i,app:a}=m.useSisenseContext();return Y.useEffect(()=>{if(i||o({type:"error",error:new m.TranslatableError("errors.executeQueryNoSisenseContext")}),n(a)){o({type:"loading"});const{dataSource:s,rows:c,columns:l,values:d,grandTotals:p,filters:f,highlights:v,count:b,offset:_,onBeforeQuery:y}=e,{filters:C,relations:k}=m.getFilterListAndRelations(f);m.executePivotQuery({dataSource:s,rows:c,columns:l,values:d,grandTotals:p,filters:C,filterRelations:k,highlights:v,count:b,offset:_},a,{onBeforeQuery:y}).then(T=>{o({type:"success",data:T})}).catch(T=>{o({type:"error",error:T})})}},[a,i,e,n]),r.data&&t?xM(r,{type:"loading"}):r}const jle=["dataSource","rows","columns","values","grandTotals","count","offset","onBeforeQuery"];function Fle(e){return Hs(e,jle,(t,n)=>{const{filters:r}=m.getFilterListAndRelations(n.filters),{filters:o}=m.getFilterListAndRelations(t.filters);return Is(r,o)||Is(n.highlights,t.highlights)})}var Ble=m._baseGetTag,Hle=m.isArray_1,$le=m.isObjectLike_1,zle="[object String]";function Wle(e){return typeof e=="string"||!Hle(e)&&$le(e)&&Ble(e)==zle}var Ule=Wle;const qle=m.getDefaultExportFromCjs(Ule);function gj(e){return qle(e)?{direction:e}:e}function CM(e,t){return{valuesIndex:e.field-(t.rows||[]).length-(t.columns||[]).length,columnsMembersPath:Object.values(e.measurePath||{})}}function Yle({type:e,settings:t,sortDetails:n},r){return e==="simple"?n.field>=(r.rows||[]).length?[{rowIndex:0,sort:{direction:m.getSortType(t[0].direction),by:CM(n,r)}}]:[{rowIndex:n.field,sort:{direction:m.getSortType(t[0].direction)}}]:t.reduce((o,i,a)=>{var p;const s=(p=r.rows)==null?void 0:p[a],c=(s==null?void 0:s.sortType)&&gj(s==null?void 0:s.sortType),l={direction:m.getSortType(i.direction),by:CM(n,r)};return!i.selected&&m.isEqual(c==null?void 0:c.by,l.by)&&o.push({rowIndex:a,sort:null}),i.selected&&o.push({rowIndex:a,sort:l}),o},[])}const SM=e=>he({attribute:m.translateCategoryToAttribute(e),includeSubTotals:e.includeSubTotals||!1},e.sortType&&{sort:gj(e.sortType)}),Vle=e=>({measure:m.translateValueToMeasure(e),totalsCalculation:e.totalsCalculation,dataBars:e.dataBars||!1}),mj=e=>{const{rows:t=[],columns:n=[],values:r=[],grandTotals:o}=e,i=t.flatMap(SM),a=n.flatMap(SM),s=r.flatMap(Vle);return{rows:i,columns:a,values:s,grandTotals:o}},Gle=({dataSet:e,dataOptionsInternal:t,filters:n,highlights:r,refreshCounter:o})=>{const i=Y.useRef(null),{rows:a,columns:s,values:c,grandTotals:l}=mj(t),d=Y.useCallback(y=>{i.current=y},[o]),p={dataSource:e,rows:a,columns:s,values:c,grandTotals:l,filters:n,highlights:r,onBeforeQuery:d},{isLoading:f,isSuccess:v,isError:b,error:_}=fj(p);return{isLoading:f,isSuccess:v,isError:b,error:_,jaql:i.current}};var w1={exports:{}};/**
|
|
396
|
+
* @license
|
|
397
|
+
* Lodash <https://lodash.com/>
|
|
398
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
399
|
+
* Released under MIT license <https://lodash.com/license>
|
|
400
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
401
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
402
|
+
*/(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",l=500,d="__lodash_placeholder__",p=1,f=2,v=4,b=1,_=2,y=1,C=2,k=4,T=8,x=16,E=32,O=64,S=128,R=256,D=512,P=30,I="...",j=800,W=16,F=1,H=2,$=3,G=1/0,K=9007199254740991,Z=17976931348623157e292,X=NaN,se=4294967295,ve=se-1,fe=se>>>1,me=[["ary",S],["bind",y],["bindKey",C],["curry",T],["curryRight",x],["flip",D],["partial",E],["partialRight",O],["rearg",R]],ge="[object Arguments]",Se="[object Array]",_e="[object AsyncFunction]",oe="[object Boolean]",N="[object Date]",z="[object DOMException]",Q="[object Error]",re="[object Function]",ue="[object GeneratorFunction]",ie="[object Map]",be="[object Number]",De="[object Null]",we="[object Object]",Be="[object Promise]",Ee="[object Proxy]",Oe="[object RegExp]",Ae="[object Set]",Le="[object String]",Fe="[object Symbol]",lt="[object Undefined]",_t="[object WeakMap]",wt="[object WeakSet]",Ge="[object ArrayBuffer]",Me="[object DataView]",at="[object Float32Array]",Ft="[object Float64Array]",tn="[object Int8Array]",zt="[object Int16Array]",Pe="[object Int32Array]",Ue="[object Uint8Array]",Et="[object Uint8ClampedArray]",gn="[object Uint16Array]",ln="[object Uint32Array]",ro=/\b__p \+= '';/g,Nr=/\b(__p \+=) '' \+/g,zn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ko=/&(?:amp|lt|gt|quot|#39);/g,Xo=/[&<>"']/g,br=RegExp(Ko.source),Yt=RegExp(Xo.source),Vt=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,Po=/<%=([\s\S]+?)%>/g,yr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Io=/^\w*$/,Lr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jr=/[\\^$.*+?()[\]{}|]/g,cn=RegExp(jr.source),mn=/^\s+/,Ya=/\s/,Fr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oo=/\{\n\/\* \[wrapped with (.+)\] \*/,ei=/,? & /,io=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ao=/[()=,{}\[\]\/\s]/,wr=/\\(\\)?/g,No=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ai=/\w*$/,Oi=/^[-+]0x[0-9a-f]+$/i,so=/^0b[01]+$/i,Qe=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,Ri=/^(?:0|[1-9]\d*)$/,Xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ta=/($^)/,Ws=/['\n\r\u2028\u2029\\]/g,Di="\\ud800-\\udfff",Mi="\\u0300-\\u036f",Us="\\ufe20-\\ufe2f",bc="\\u20d0-\\u20ff",ti=Mi+Us+bc,Va="\\u2700-\\u27bf",qs="a-z\\xdf-\\xf6\\xf8-\\xff",lo="\\xac\\xb1\\xd7\\xf7",Lo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ga="\\u2000-\\u206f",Ys=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",jo="A-Z\\xc0-\\xd6\\xd8-\\xde",ni="\\ufe0e\\ufe0f",na=lo+Lo+Ga+Ys,ri="['’]",Fo="["+Di+"]",Vs="["+na+"]",ra="["+ti+"]",Gs="\\d+",Qs="["+Va+"]",Js="["+qs+"]",Zs="[^"+Di+na+Gs+Va+qs+jo+"]",Qa="\\ud83c[\\udffb-\\udfff]",Ks="(?:"+ra+"|"+Qa+")",Xs="[^"+Di+"]",Ja="(?:\\ud83c[\\udde6-\\uddff]){2}",oa="[\\ud800-\\udbff][\\udc00-\\udfff]",Mn="["+jo+"]",Za="\\u200d",oi="(?:"+Js+"|"+Zs+")",ii="(?:"+Mn+"|"+Zs+")",Pi="(?:"+ri+"(?:d|ll|m|re|s|t|ve))?",Ka="(?:"+ri+"(?:D|LL|M|RE|S|T|VE))?",Ii=Ks+"?",Xa="["+ni+"]?",es="(?:"+Za+"(?:"+[Xs,Ja,oa].join("|")+")"+Xa+Ii+")*",el="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yc="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tl=Xa+Ii+es,wc="(?:"+[Qs,Ja,oa].join("|")+")"+tl,mg="(?:"+[Xs+ra+"?",ra,Ja,oa,Fo].join("|")+")",Ie=RegExp(ri,"g"),dt=RegExp(ra,"g"),kn=RegExp(Qa+"(?="+Qa+")|"+mg+tl,"g"),Pn=RegExp([Mn+"?"+Js+"+"+Pi+"(?="+[Vs,Mn,"$"].join("|")+")",ii+"+"+Ka+"(?="+[Vs,Mn+oi,"$"].join("|")+")",Mn+"?"+oi+"+"+Pi,Mn+"+"+Ka,yc,el,Gs,wc].join("|"),"g"),nn=RegExp("["+Za+Di+ti+ni+"]"),nl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_c=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],od=-1,At={};At[at]=At[Ft]=At[tn]=At[zt]=At[Pe]=At[Ue]=At[Et]=At[gn]=At[ln]=!0,At[ge]=At[Se]=At[Ge]=At[oe]=At[Me]=At[N]=At[Q]=At[re]=At[ie]=At[be]=At[we]=At[Oe]=At[Ae]=At[Le]=At[_t]=!1;var Wt={};Wt[ge]=Wt[Se]=Wt[Ge]=Wt[Me]=Wt[oe]=Wt[N]=Wt[at]=Wt[Ft]=Wt[tn]=Wt[zt]=Wt[Pe]=Wt[ie]=Wt[be]=Wt[we]=Wt[Oe]=Wt[Ae]=Wt[Le]=Wt[Fe]=Wt[Ue]=Wt[Et]=Wt[gn]=Wt[ln]=!0,Wt[Q]=Wt[re]=Wt[_t]=!1;var _5={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},x5={"&":"&","<":"<",">":">",'"':""","'":"'"},C5={"&":"&","<":"<",">":">",""":'"',"'":"'"},S5={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},k5=parseFloat,T5=parseInt,Ax=typeof m.commonjsGlobal=="object"&&m.commonjsGlobal&&m.commonjsGlobal.Object===Object&&m.commonjsGlobal,E5=typeof self=="object"&&self&&self.Object===Object&&self,Wn=Ax||E5||Function("return this")(),vg=t&&!t.nodeType&&t,ts=vg&&!0&&e&&!e.nodeType&&e,Ox=ts&&ts.exports===vg,bg=Ox&&Ax.process,co=function(){try{var le=ts&&ts.require&&ts.require("util").types;return le||bg&&bg.binding&&bg.binding("util")}catch(ye){}}(),Rx=co&&co.isArrayBuffer,Dx=co&&co.isDate,Mx=co&&co.isMap,Px=co&&co.isRegExp,Ix=co&&co.isSet,Nx=co&&co.isTypedArray;function Br(le,ye,pe){switch(pe.length){case 0:return le.call(ye);case 1:return le.call(ye,pe[0]);case 2:return le.call(ye,pe[0],pe[1]);case 3:return le.call(ye,pe[0],pe[1],pe[2])}return le.apply(ye,pe)}function A5(le,ye,pe,je){for(var et=-1,xt=le==null?0:le.length;++et<xt;){var In=le[et];ye(je,In,pe(In),le)}return je}function uo(le,ye){for(var pe=-1,je=le==null?0:le.length;++pe<je&&ye(le[pe],pe,le)!==!1;);return le}function O5(le,ye){for(var pe=le==null?0:le.length;pe--&&ye(le[pe],pe,le)!==!1;);return le}function Lx(le,ye){for(var pe=-1,je=le==null?0:le.length;++pe<je;)if(!ye(le[pe],pe,le))return!1;return!0}function ia(le,ye){for(var pe=-1,je=le==null?0:le.length,et=0,xt=[];++pe<je;){var In=le[pe];ye(In,pe,le)&&(xt[et++]=In)}return xt}function id(le,ye){var pe=le==null?0:le.length;return!!pe&&rl(le,ye,0)>-1}function yg(le,ye,pe){for(var je=-1,et=le==null?0:le.length;++je<et;)if(pe(ye,le[je]))return!0;return!1}function Kt(le,ye){for(var pe=-1,je=le==null?0:le.length,et=Array(je);++pe<je;)et[pe]=ye(le[pe],pe,le);return et}function aa(le,ye){for(var pe=-1,je=ye.length,et=le.length;++pe<je;)le[et+pe]=ye[pe];return le}function wg(le,ye,pe,je){var et=-1,xt=le==null?0:le.length;for(je&&xt&&(pe=le[++et]);++et<xt;)pe=ye(pe,le[et],et,le);return pe}function R5(le,ye,pe,je){var et=le==null?0:le.length;for(je&&et&&(pe=le[--et]);et--;)pe=ye(pe,le[et],et,le);return pe}function _g(le,ye){for(var pe=-1,je=le==null?0:le.length;++pe<je;)if(ye(le[pe],pe,le))return!0;return!1}var D5=xg("length");function M5(le){return le.split("")}function P5(le){return le.match(io)||[]}function jx(le,ye,pe){var je;return pe(le,function(et,xt,In){if(ye(et,xt,In))return je=xt,!1}),je}function ad(le,ye,pe,je){for(var et=le.length,xt=pe+(je?1:-1);je?xt--:++xt<et;)if(ye(le[xt],xt,le))return xt;return-1}function rl(le,ye,pe){return ye===ye?q5(le,ye,pe):ad(le,Fx,pe)}function I5(le,ye,pe,je){for(var et=pe-1,xt=le.length;++et<xt;)if(je(le[et],ye))return et;return-1}function Fx(le){return le!==le}function Bx(le,ye){var pe=le==null?0:le.length;return pe?Sg(le,ye)/pe:X}function xg(le){return function(ye){return ye==null?n:ye[le]}}function Cg(le){return function(ye){return le==null?n:le[ye]}}function Hx(le,ye,pe,je,et){return et(le,function(xt,In,Bt){pe=je?(je=!1,xt):ye(pe,xt,In,Bt)}),pe}function N5(le,ye){var pe=le.length;for(le.sort(ye);pe--;)le[pe]=le[pe].value;return le}function Sg(le,ye){for(var pe,je=-1,et=le.length;++je<et;){var xt=ye(le[je]);xt!==n&&(pe=pe===n?xt:pe+xt)}return pe}function kg(le,ye){for(var pe=-1,je=Array(le);++pe<le;)je[pe]=ye(pe);return je}function L5(le,ye){return Kt(ye,function(pe){return[pe,le[pe]]})}function $x(le){return le&&le.slice(0,qx(le)+1).replace(mn,"")}function Hr(le){return function(ye){return le(ye)}}function Tg(le,ye){return Kt(ye,function(pe){return le[pe]})}function xc(le,ye){return le.has(ye)}function zx(le,ye){for(var pe=-1,je=le.length;++pe<je&&rl(ye,le[pe],0)>-1;);return pe}function Wx(le,ye){for(var pe=le.length;pe--&&rl(ye,le[pe],0)>-1;);return pe}function j5(le,ye){for(var pe=le.length,je=0;pe--;)le[pe]===ye&&++je;return je}var F5=Cg(_5),B5=Cg(x5);function H5(le){return"\\"+S5[le]}function $5(le,ye){return le==null?n:le[ye]}function ol(le){return nn.test(le)}function z5(le){return nl.test(le)}function W5(le){for(var ye,pe=[];!(ye=le.next()).done;)pe.push(ye.value);return pe}function Eg(le){var ye=-1,pe=Array(le.size);return le.forEach(function(je,et){pe[++ye]=[et,je]}),pe}function Ux(le,ye){return function(pe){return le(ye(pe))}}function sa(le,ye){for(var pe=-1,je=le.length,et=0,xt=[];++pe<je;){var In=le[pe];(In===ye||In===d)&&(le[pe]=d,xt[et++]=pe)}return xt}function sd(le){var ye=-1,pe=Array(le.size);return le.forEach(function(je){pe[++ye]=je}),pe}function U5(le){var ye=-1,pe=Array(le.size);return le.forEach(function(je){pe[++ye]=[je,je]}),pe}function q5(le,ye,pe){for(var je=pe-1,et=le.length;++je<et;)if(le[je]===ye)return je;return-1}function Y5(le,ye,pe){for(var je=pe+1;je--;)if(le[je]===ye)return je;return je}function il(le){return ol(le)?G5(le):D5(le)}function Bo(le){return ol(le)?Q5(le):M5(le)}function qx(le){for(var ye=le.length;ye--&&Ya.test(le.charAt(ye)););return ye}var V5=Cg(C5);function G5(le){for(var ye=kn.lastIndex=0;kn.test(le);)++ye;return ye}function Q5(le){return le.match(kn)||[]}function J5(le){return le.match(Pn)||[]}var Z5=function le(ye){ye=ye==null?Wn:al.defaults(Wn.Object(),ye,al.pick(Wn,_c));var pe=ye.Array,je=ye.Date,et=ye.Error,xt=ye.Function,In=ye.Math,Bt=ye.Object,Ag=ye.RegExp,K5=ye.String,po=ye.TypeError,ld=pe.prototype,X5=xt.prototype,sl=Bt.prototype,cd=ye["__core-js_shared__"],ud=X5.toString,Mt=sl.hasOwnProperty,e3=0,Yx=function(){var u=/[^.]+$/.exec(cd&&cd.keys&&cd.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),dd=sl.toString,t3=ud.call(Bt),n3=Wn._,r3=Ag("^"+ud.call(Mt).replace(jr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pd=Ox?ye.Buffer:n,la=ye.Symbol,hd=ye.Uint8Array,Vx=pd?pd.allocUnsafe:n,fd=Ux(Bt.getPrototypeOf,Bt),Gx=Bt.create,Qx=sl.propertyIsEnumerable,gd=ld.splice,Jx=la?la.isConcatSpreadable:n,Cc=la?la.iterator:n,ns=la?la.toStringTag:n,md=function(){try{var u=ss(Bt,"defineProperty");return u({},"",{}),u}catch(h){}}(),o3=ye.clearTimeout!==Wn.clearTimeout&&ye.clearTimeout,i3=je&&je.now!==Wn.Date.now&&je.now,a3=ye.setTimeout!==Wn.setTimeout&&ye.setTimeout,vd=In.ceil,bd=In.floor,Og=Bt.getOwnPropertySymbols,s3=pd?pd.isBuffer:n,Zx=ye.isFinite,l3=ld.join,c3=Ux(Bt.keys,Bt),Nn=In.max,er=In.min,u3=je.now,d3=ye.parseInt,Kx=In.random,p3=ld.reverse,Rg=ss(ye,"DataView"),Sc=ss(ye,"Map"),Dg=ss(ye,"Promise"),ll=ss(ye,"Set"),kc=ss(ye,"WeakMap"),Tc=ss(Bt,"create"),yd=kc&&new kc,cl={},h3=ls(Rg),f3=ls(Sc),g3=ls(Dg),m3=ls(ll),v3=ls(kc),wd=la?la.prototype:n,Ec=wd?wd.valueOf:n,Xx=wd?wd.toString:n;function U(u){if(dn(u)&&!nt(u)&&!(u instanceof pt)){if(u instanceof ho)return u;if(Mt.call(u,"__wrapped__"))return eS(u)}return new ho(u)}var ul=function(){function u(){}return function(h){if(!rn(h))return{};if(Gx)return Gx(h);u.prototype=h;var w=new u;return u.prototype=n,w}}();function _d(){}function ho(u,h){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}U.templateSettings={escape:Vt,evaluate:Gt,interpolate:Po,variable:"",imports:{_:U}},U.prototype=_d.prototype,U.prototype.constructor=U,ho.prototype=ul(_d.prototype),ho.prototype.constructor=ho;function pt(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=se,this.__views__=[]}function b3(){var u=new pt(this.__wrapped__);return u.__actions__=_r(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=_r(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=_r(this.__views__),u}function y3(){if(this.__filtered__){var u=new pt(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function w3(){var u=this.__wrapped__.value(),h=this.__dir__,w=nt(u),M=h<0,L=w?u.length:0,V=MF(0,L,this.__views__),ne=V.start,ae=V.end,ce=ae-ne,xe=M?ae:ne-1,Ce=this.__iteratees__,ke=Ce.length,Re=0,He=er(ce,this.__takeCount__);if(!w||!M&&L==ce&&He==ce)return CC(u,this.__actions__);var Ye=[];e:for(;ce--&&Re<He;){xe+=h;for(var it=-1,Ve=u[xe];++it<ke;){var ut=Ce[it],ht=ut.iteratee,Wr=ut.type,dr=ht(Ve);if(Wr==H)Ve=dr;else if(!dr){if(Wr==F)continue e;break e}}Ye[Re++]=Ve}return Ye}pt.prototype=ul(_d.prototype),pt.prototype.constructor=pt;function rs(u){var h=-1,w=u==null?0:u.length;for(this.clear();++h<w;){var M=u[h];this.set(M[0],M[1])}}function _3(){this.__data__=Tc?Tc(null):{},this.size=0}function x3(u){var h=this.has(u)&&delete this.__data__[u];return this.size-=h?1:0,h}function C3(u){var h=this.__data__;if(Tc){var w=h[u];return w===c?n:w}return Mt.call(h,u)?h[u]:n}function S3(u){var h=this.__data__;return Tc?h[u]!==n:Mt.call(h,u)}function k3(u,h){var w=this.__data__;return this.size+=this.has(u)?0:1,w[u]=Tc&&h===n?c:h,this}rs.prototype.clear=_3,rs.prototype.delete=x3,rs.prototype.get=C3,rs.prototype.has=S3,rs.prototype.set=k3;function Ni(u){var h=-1,w=u==null?0:u.length;for(this.clear();++h<w;){var M=u[h];this.set(M[0],M[1])}}function T3(){this.__data__=[],this.size=0}function E3(u){var h=this.__data__,w=xd(h,u);if(w<0)return!1;var M=h.length-1;return w==M?h.pop():gd.call(h,w,1),--this.size,!0}function A3(u){var h=this.__data__,w=xd(h,u);return w<0?n:h[w][1]}function O3(u){return xd(this.__data__,u)>-1}function R3(u,h){var w=this.__data__,M=xd(w,u);return M<0?(++this.size,w.push([u,h])):w[M][1]=h,this}Ni.prototype.clear=T3,Ni.prototype.delete=E3,Ni.prototype.get=A3,Ni.prototype.has=O3,Ni.prototype.set=R3;function Li(u){var h=-1,w=u==null?0:u.length;for(this.clear();++h<w;){var M=u[h];this.set(M[0],M[1])}}function D3(){this.size=0,this.__data__={hash:new rs,map:new(Sc||Ni),string:new rs}}function M3(u){var h=Id(this,u).delete(u);return this.size-=h?1:0,h}function P3(u){return Id(this,u).get(u)}function I3(u){return Id(this,u).has(u)}function N3(u,h){var w=Id(this,u),M=w.size;return w.set(u,h),this.size+=w.size==M?0:1,this}Li.prototype.clear=D3,Li.prototype.delete=M3,Li.prototype.get=P3,Li.prototype.has=I3,Li.prototype.set=N3;function os(u){var h=-1,w=u==null?0:u.length;for(this.__data__=new Li;++h<w;)this.add(u[h])}function L3(u){return this.__data__.set(u,c),this}function j3(u){return this.__data__.has(u)}os.prototype.add=os.prototype.push=L3,os.prototype.has=j3;function Ho(u){var h=this.__data__=new Ni(u);this.size=h.size}function F3(){this.__data__=new Ni,this.size=0}function B3(u){var h=this.__data__,w=h.delete(u);return this.size=h.size,w}function H3(u){return this.__data__.get(u)}function $3(u){return this.__data__.has(u)}function z3(u,h){var w=this.__data__;if(w instanceof Ni){var M=w.__data__;if(!Sc||M.length<o-1)return M.push([u,h]),this.size=++w.size,this;w=this.__data__=new Li(M)}return w.set(u,h),this.size=w.size,this}Ho.prototype.clear=F3,Ho.prototype.delete=B3,Ho.prototype.get=H3,Ho.prototype.has=$3,Ho.prototype.set=z3;function eC(u,h){var w=nt(u),M=!w&&cs(u),L=!w&&!M&&ha(u),V=!w&&!M&&!L&&fl(u),ne=w||M||L||V,ae=ne?kg(u.length,K5):[],ce=ae.length;for(var xe in u)(h||Mt.call(u,xe))&&!(ne&&(xe=="length"||L&&(xe=="offset"||xe=="parent")||V&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||Hi(xe,ce)))&&ae.push(xe);return ae}function tC(u){var h=u.length;return h?u[zg(0,h-1)]:n}function W3(u,h){return Nd(_r(u),is(h,0,u.length))}function U3(u){return Nd(_r(u))}function Mg(u,h,w){(w!==n&&!$o(u[h],w)||w===n&&!(h in u))&&ji(u,h,w)}function Ac(u,h,w){var M=u[h];(!(Mt.call(u,h)&&$o(M,w))||w===n&&!(h in u))&&ji(u,h,w)}function xd(u,h){for(var w=u.length;w--;)if($o(u[w][0],h))return w;return-1}function q3(u,h,w,M){return ca(u,function(L,V,ne){h(M,L,w(L),ne)}),M}function nC(u,h){return u&&si(h,Ln(h),u)}function Y3(u,h){return u&&si(h,Cr(h),u)}function ji(u,h,w){h=="__proto__"&&md?md(u,h,{configurable:!0,enumerable:!0,value:w,writable:!0}):u[h]=w}function Pg(u,h){for(var w=-1,M=h.length,L=pe(M),V=u==null;++w<M;)L[w]=V?n:hm(u,h[w]);return L}function is(u,h,w){return u===u&&(w!==n&&(u=u<=w?u:w),h!==n&&(u=u>=h?u:h)),u}function fo(u,h,w,M,L,V){var ne,ae=h&p,ce=h&f,xe=h&v;if(w&&(ne=L?w(u,M,L,V):w(u)),ne!==n)return ne;if(!rn(u))return u;var Ce=nt(u);if(Ce){if(ne=IF(u),!ae)return _r(u,ne)}else{var ke=tr(u),Re=ke==re||ke==ue;if(ha(u))return TC(u,ae);if(ke==we||ke==ge||Re&&!L){if(ne=ce||Re?{}:qC(u),!ae)return ce?CF(u,Y3(ne,u)):xF(u,nC(ne,u))}else{if(!Wt[ke])return L?u:{};ne=NF(u,ke,ae)}}V||(V=new Ho);var He=V.get(u);if(He)return He;V.set(u,ne),wS(u)?u.forEach(function(Ve){ne.add(fo(Ve,h,w,Ve,u,V))}):bS(u)&&u.forEach(function(Ve,ut){ne.set(ut,fo(Ve,h,w,ut,u,V))});var Ye=xe?ce?Xg:Kg:ce?Cr:Ln,it=Ce?n:Ye(u);return uo(it||u,function(Ve,ut){it&&(ut=Ve,Ve=u[ut]),Ac(ne,ut,fo(Ve,h,w,ut,u,V))}),ne}function V3(u){var h=Ln(u);return function(w){return rC(w,u,h)}}function rC(u,h,w){var M=w.length;if(u==null)return!M;for(u=Bt(u);M--;){var L=w[M],V=h[L],ne=u[L];if(ne===n&&!(L in u)||!V(ne))return!1}return!0}function oC(u,h,w){if(typeof u!="function")throw new po(a);return Nc(function(){u.apply(n,w)},h)}function Oc(u,h,w,M){var L=-1,V=id,ne=!0,ae=u.length,ce=[],xe=h.length;if(!ae)return ce;w&&(h=Kt(h,Hr(w))),M?(V=yg,ne=!1):h.length>=o&&(V=xc,ne=!1,h=new os(h));e:for(;++L<ae;){var Ce=u[L],ke=w==null?Ce:w(Ce);if(Ce=M||Ce!==0?Ce:0,ne&&ke===ke){for(var Re=xe;Re--;)if(h[Re]===ke)continue e;ce.push(Ce)}else V(h,ke,M)||ce.push(Ce)}return ce}var ca=DC(ai),iC=DC(Ng,!0);function G3(u,h){var w=!0;return ca(u,function(M,L,V){return w=!!h(M,L,V),w}),w}function Cd(u,h,w){for(var M=-1,L=u.length;++M<L;){var V=u[M],ne=h(V);if(ne!=null&&(ae===n?ne===ne&&!zr(ne):w(ne,ae)))var ae=ne,ce=V}return ce}function Q3(u,h,w,M){var L=u.length;for(w=rt(w),w<0&&(w=-w>L?0:L+w),M=M===n||M>L?L:rt(M),M<0&&(M+=L),M=w>M?0:xS(M);w<M;)u[w++]=h;return u}function aC(u,h){var w=[];return ca(u,function(M,L,V){h(M,L,V)&&w.push(M)}),w}function Un(u,h,w,M,L){var V=-1,ne=u.length;for(w||(w=jF),L||(L=[]);++V<ne;){var ae=u[V];h>0&&w(ae)?h>1?Un(ae,h-1,w,M,L):aa(L,ae):M||(L[L.length]=ae)}return L}var Ig=MC(),sC=MC(!0);function ai(u,h){return u&&Ig(u,h,Ln)}function Ng(u,h){return u&&sC(u,h,Ln)}function Sd(u,h){return ia(h,function(w){return $i(u[w])})}function as(u,h){h=da(h,u);for(var w=0,M=h.length;u!=null&&w<M;)u=u[li(h[w++])];return w&&w==M?u:n}function lC(u,h,w){var M=h(u);return nt(u)?M:aa(M,w(u))}function cr(u){return u==null?u===n?lt:De:ns&&ns in Bt(u)?DF(u):UF(u)}function Lg(u,h){return u>h}function J3(u,h){return u!=null&&Mt.call(u,h)}function Z3(u,h){return u!=null&&h in Bt(u)}function K3(u,h,w){return u>=er(h,w)&&u<Nn(h,w)}function jg(u,h,w){for(var M=w?yg:id,L=u[0].length,V=u.length,ne=V,ae=pe(V),ce=1/0,xe=[];ne--;){var Ce=u[ne];ne&&h&&(Ce=Kt(Ce,Hr(h))),ce=er(Ce.length,ce),ae[ne]=!w&&(h||L>=120&&Ce.length>=120)?new os(ne&&Ce):n}Ce=u[0];var ke=-1,Re=ae[0];e:for(;++ke<L&&xe.length<ce;){var He=Ce[ke],Ye=h?h(He):He;if(He=w||He!==0?He:0,!(Re?xc(Re,Ye):M(xe,Ye,w))){for(ne=V;--ne;){var it=ae[ne];if(!(it?xc(it,Ye):M(u[ne],Ye,w)))continue e}Re&&Re.push(Ye),xe.push(He)}}return xe}function X3(u,h,w,M){return ai(u,function(L,V,ne){h(M,w(L),V,ne)}),M}function Rc(u,h,w){h=da(h,u),u=QC(u,h);var M=u==null?u:u[li(mo(h))];return M==null?n:Br(M,u,w)}function cC(u){return dn(u)&&cr(u)==ge}function eF(u){return dn(u)&&cr(u)==Ge}function tF(u){return dn(u)&&cr(u)==N}function Dc(u,h,w,M,L){return u===h?!0:u==null||h==null||!dn(u)&&!dn(h)?u!==u&&h!==h:nF(u,h,w,M,Dc,L)}function nF(u,h,w,M,L,V){var ne=nt(u),ae=nt(h),ce=ne?Se:tr(u),xe=ae?Se:tr(h);ce=ce==ge?we:ce,xe=xe==ge?we:xe;var Ce=ce==we,ke=xe==we,Re=ce==xe;if(Re&&ha(u)){if(!ha(h))return!1;ne=!0,Ce=!1}if(Re&&!Ce)return V||(V=new Ho),ne||fl(u)?zC(u,h,w,M,L,V):OF(u,h,ce,w,M,L,V);if(!(w&b)){var He=Ce&&Mt.call(u,"__wrapped__"),Ye=ke&&Mt.call(h,"__wrapped__");if(He||Ye){var it=He?u.value():u,Ve=Ye?h.value():h;return V||(V=new Ho),L(it,Ve,w,M,V)}}return Re?(V||(V=new Ho),RF(u,h,w,M,L,V)):!1}function rF(u){return dn(u)&&tr(u)==ie}function Fg(u,h,w,M){var L=w.length,V=L,ne=!M;if(u==null)return!V;for(u=Bt(u);L--;){var ae=w[L];if(ne&&ae[2]?ae[1]!==u[ae[0]]:!(ae[0]in u))return!1}for(;++L<V;){ae=w[L];var ce=ae[0],xe=u[ce],Ce=ae[1];if(ne&&ae[2]){if(xe===n&&!(ce in u))return!1}else{var ke=new Ho;if(M)var Re=M(xe,Ce,ce,u,h,ke);if(!(Re===n?Dc(Ce,xe,b|_,M,ke):Re))return!1}}return!0}function uC(u){if(!rn(u)||BF(u))return!1;var h=$i(u)?r3:Qe;return h.test(ls(u))}function oF(u){return dn(u)&&cr(u)==Oe}function iF(u){return dn(u)&&tr(u)==Ae}function aF(u){return dn(u)&&$d(u.length)&&!!At[cr(u)]}function dC(u){return typeof u=="function"?u:u==null?Sr:typeof u=="object"?nt(u)?fC(u[0],u[1]):hC(u):PS(u)}function Bg(u){if(!Ic(u))return c3(u);var h=[];for(var w in Bt(u))Mt.call(u,w)&&w!="constructor"&&h.push(w);return h}function sF(u){if(!rn(u))return WF(u);var h=Ic(u),w=[];for(var M in u)M=="constructor"&&(h||!Mt.call(u,M))||w.push(M);return w}function Hg(u,h){return u<h}function pC(u,h){var w=-1,M=xr(u)?pe(u.length):[];return ca(u,function(L,V,ne){M[++w]=h(L,V,ne)}),M}function hC(u){var h=tm(u);return h.length==1&&h[0][2]?VC(h[0][0],h[0][1]):function(w){return w===u||Fg(w,u,h)}}function fC(u,h){return rm(u)&&YC(h)?VC(li(u),h):function(w){var M=hm(w,u);return M===n&&M===h?fm(w,u):Dc(h,M,b|_)}}function kd(u,h,w,M,L){u!==h&&Ig(h,function(V,ne){if(L||(L=new Ho),rn(V))lF(u,h,ne,w,kd,M,L);else{var ae=M?M(im(u,ne),V,ne+"",u,h,L):n;ae===n&&(ae=V),Mg(u,ne,ae)}},Cr)}function lF(u,h,w,M,L,V,ne){var ae=im(u,w),ce=im(h,w),xe=ne.get(ce);if(xe){Mg(u,w,xe);return}var Ce=V?V(ae,ce,w+"",u,h,ne):n,ke=Ce===n;if(ke){var Re=nt(ce),He=!Re&&ha(ce),Ye=!Re&&!He&&fl(ce);Ce=ce,Re||He||Ye?nt(ae)?Ce=ae:vn(ae)?Ce=_r(ae):He?(ke=!1,Ce=TC(ce,!0)):Ye?(ke=!1,Ce=EC(ce,!0)):Ce=[]:Lc(ce)||cs(ce)?(Ce=ae,cs(ae)?Ce=CS(ae):(!rn(ae)||$i(ae))&&(Ce=qC(ce))):ke=!1}ke&&(ne.set(ce,Ce),L(Ce,ce,M,V,ne),ne.delete(ce)),Mg(u,w,Ce)}function gC(u,h){var w=u.length;if(w)return h+=h<0?w:0,Hi(h,w)?u[h]:n}function mC(u,h,w){h.length?h=Kt(h,function(V){return nt(V)?function(ne){return as(ne,V.length===1?V[0]:V)}:V}):h=[Sr];var M=-1;h=Kt(h,Hr(qe()));var L=pC(u,function(V,ne,ae){var ce=Kt(h,function(xe){return xe(V)});return{criteria:ce,index:++M,value:V}});return N5(L,function(V,ne){return _F(V,ne,w)})}function cF(u,h){return vC(u,h,function(w,M){return fm(u,M)})}function vC(u,h,w){for(var M=-1,L=h.length,V={};++M<L;){var ne=h[M],ae=as(u,ne);w(ae,ne)&&Mc(V,da(ne,u),ae)}return V}function uF(u){return function(h){return as(h,u)}}function $g(u,h,w,M){var L=M?I5:rl,V=-1,ne=h.length,ae=u;for(u===h&&(h=_r(h)),w&&(ae=Kt(u,Hr(w)));++V<ne;)for(var ce=0,xe=h[V],Ce=w?w(xe):xe;(ce=L(ae,Ce,ce,M))>-1;)ae!==u&&gd.call(ae,ce,1),gd.call(u,ce,1);return u}function bC(u,h){for(var w=u?h.length:0,M=w-1;w--;){var L=h[w];if(w==M||L!==V){var V=L;Hi(L)?gd.call(u,L,1):qg(u,L)}}return u}function zg(u,h){return u+bd(Kx()*(h-u+1))}function dF(u,h,w,M){for(var L=-1,V=Nn(vd((h-u)/(w||1)),0),ne=pe(V);V--;)ne[M?V:++L]=u,u+=w;return ne}function Wg(u,h){var w="";if(!u||h<1||h>K)return w;do h%2&&(w+=u),h=bd(h/2),h&&(u+=u);while(h);return w}function st(u,h){return am(GC(u,h,Sr),u+"")}function pF(u){return tC(gl(u))}function hF(u,h){var w=gl(u);return Nd(w,is(h,0,w.length))}function Mc(u,h,w,M){if(!rn(u))return u;h=da(h,u);for(var L=-1,V=h.length,ne=V-1,ae=u;ae!=null&&++L<V;){var ce=li(h[L]),xe=w;if(ce==="__proto__"||ce==="constructor"||ce==="prototype")return u;if(L!=ne){var Ce=ae[ce];xe=M?M(Ce,ce,ae):n,xe===n&&(xe=rn(Ce)?Ce:Hi(h[L+1])?[]:{})}Ac(ae,ce,xe),ae=ae[ce]}return u}var yC=yd?function(u,h){return yd.set(u,h),u}:Sr,fF=md?function(u,h){return md(u,"toString",{configurable:!0,enumerable:!1,value:mm(h),writable:!0})}:Sr;function gF(u){return Nd(gl(u))}function go(u,h,w){var M=-1,L=u.length;h<0&&(h=-h>L?0:L+h),w=w>L?L:w,w<0&&(w+=L),L=h>w?0:w-h>>>0,h>>>=0;for(var V=pe(L);++M<L;)V[M]=u[M+h];return V}function mF(u,h){var w;return ca(u,function(M,L,V){return w=h(M,L,V),!w}),!!w}function Td(u,h,w){var M=0,L=u==null?M:u.length;if(typeof h=="number"&&h===h&&L<=fe){for(;M<L;){var V=M+L>>>1,ne=u[V];ne!==null&&!zr(ne)&&(w?ne<=h:ne<h)?M=V+1:L=V}return L}return Ug(u,h,Sr,w)}function Ug(u,h,w,M){var L=0,V=u==null?0:u.length;if(V===0)return 0;h=w(h);for(var ne=h!==h,ae=h===null,ce=zr(h),xe=h===n;L<V;){var Ce=bd((L+V)/2),ke=w(u[Ce]),Re=ke!==n,He=ke===null,Ye=ke===ke,it=zr(ke);if(ne)var Ve=M||Ye;else xe?Ve=Ye&&(M||Re):ae?Ve=Ye&&Re&&(M||!He):ce?Ve=Ye&&Re&&!He&&(M||!it):He||it?Ve=!1:Ve=M?ke<=h:ke<h;Ve?L=Ce+1:V=Ce}return er(V,ve)}function wC(u,h){for(var w=-1,M=u.length,L=0,V=[];++w<M;){var ne=u[w],ae=h?h(ne):ne;if(!w||!$o(ae,ce)){var ce=ae;V[L++]=ne===0?0:ne}}return V}function _C(u){return typeof u=="number"?u:zr(u)?X:+u}function $r(u){if(typeof u=="string")return u;if(nt(u))return Kt(u,$r)+"";if(zr(u))return Xx?Xx.call(u):"";var h=u+"";return h=="0"&&1/u==-G?"-0":h}function ua(u,h,w){var M=-1,L=id,V=u.length,ne=!0,ae=[],ce=ae;if(w)ne=!1,L=yg;else if(V>=o){var xe=h?null:EF(u);if(xe)return sd(xe);ne=!1,L=xc,ce=new os}else ce=h?[]:ae;e:for(;++M<V;){var Ce=u[M],ke=h?h(Ce):Ce;if(Ce=w||Ce!==0?Ce:0,ne&&ke===ke){for(var Re=ce.length;Re--;)if(ce[Re]===ke)continue e;h&&ce.push(ke),ae.push(Ce)}else L(ce,ke,w)||(ce!==ae&&ce.push(ke),ae.push(Ce))}return ae}function qg(u,h){return h=da(h,u),u=QC(u,h),u==null||delete u[li(mo(h))]}function xC(u,h,w,M){return Mc(u,h,w(as(u,h)),M)}function Ed(u,h,w,M){for(var L=u.length,V=M?L:-1;(M?V--:++V<L)&&h(u[V],V,u););return w?go(u,M?0:V,M?V+1:L):go(u,M?V+1:0,M?L:V)}function CC(u,h){var w=u;return w instanceof pt&&(w=w.value()),wg(h,function(M,L){return L.func.apply(L.thisArg,aa([M],L.args))},w)}function Yg(u,h,w){var M=u.length;if(M<2)return M?ua(u[0]):[];for(var L=-1,V=pe(M);++L<M;)for(var ne=u[L],ae=-1;++ae<M;)ae!=L&&(V[L]=Oc(V[L]||ne,u[ae],h,w));return ua(Un(V,1),h,w)}function SC(u,h,w){for(var M=-1,L=u.length,V=h.length,ne={};++M<L;){var ae=M<V?h[M]:n;w(ne,u[M],ae)}return ne}function Vg(u){return vn(u)?u:[]}function Gg(u){return typeof u=="function"?u:Sr}function da(u,h){return nt(u)?u:rm(u,h)?[u]:XC(Ot(u))}var vF=st;function pa(u,h,w){var M=u.length;return w=w===n?M:w,!h&&w>=M?u:go(u,h,w)}var kC=o3||function(u){return Wn.clearTimeout(u)};function TC(u,h){if(h)return u.slice();var w=u.length,M=Vx?Vx(w):new u.constructor(w);return u.copy(M),M}function Qg(u){var h=new u.constructor(u.byteLength);return new hd(h).set(new hd(u)),h}function bF(u,h){var w=h?Qg(u.buffer):u.buffer;return new u.constructor(w,u.byteOffset,u.byteLength)}function yF(u){var h=new u.constructor(u.source,Ai.exec(u));return h.lastIndex=u.lastIndex,h}function wF(u){return Ec?Bt(Ec.call(u)):{}}function EC(u,h){var w=h?Qg(u.buffer):u.buffer;return new u.constructor(w,u.byteOffset,u.length)}function AC(u,h){if(u!==h){var w=u!==n,M=u===null,L=u===u,V=zr(u),ne=h!==n,ae=h===null,ce=h===h,xe=zr(h);if(!ae&&!xe&&!V&&u>h||V&&ne&&ce&&!ae&&!xe||M&&ne&&ce||!w&&ce||!L)return 1;if(!M&&!V&&!xe&&u<h||xe&&w&&L&&!M&&!V||ae&&w&&L||!ne&&L||!ce)return-1}return 0}function _F(u,h,w){for(var M=-1,L=u.criteria,V=h.criteria,ne=L.length,ae=w.length;++M<ne;){var ce=AC(L[M],V[M]);if(ce){if(M>=ae)return ce;var xe=w[M];return ce*(xe=="desc"?-1:1)}}return u.index-h.index}function OC(u,h,w,M){for(var L=-1,V=u.length,ne=w.length,ae=-1,ce=h.length,xe=Nn(V-ne,0),Ce=pe(ce+xe),ke=!M;++ae<ce;)Ce[ae]=h[ae];for(;++L<ne;)(ke||L<V)&&(Ce[w[L]]=u[L]);for(;xe--;)Ce[ae++]=u[L++];return Ce}function RC(u,h,w,M){for(var L=-1,V=u.length,ne=-1,ae=w.length,ce=-1,xe=h.length,Ce=Nn(V-ae,0),ke=pe(Ce+xe),Re=!M;++L<Ce;)ke[L]=u[L];for(var He=L;++ce<xe;)ke[He+ce]=h[ce];for(;++ne<ae;)(Re||L<V)&&(ke[He+w[ne]]=u[L++]);return ke}function _r(u,h){var w=-1,M=u.length;for(h||(h=pe(M));++w<M;)h[w]=u[w];return h}function si(u,h,w,M){var L=!w;w||(w={});for(var V=-1,ne=h.length;++V<ne;){var ae=h[V],ce=M?M(w[ae],u[ae],ae,w,u):n;ce===n&&(ce=u[ae]),L?ji(w,ae,ce):Ac(w,ae,ce)}return w}function xF(u,h){return si(u,nm(u),h)}function CF(u,h){return si(u,WC(u),h)}function Ad(u,h){return function(w,M){var L=nt(w)?A5:q3,V=h?h():{};return L(w,u,qe(M,2),V)}}function dl(u){return st(function(h,w){var M=-1,L=w.length,V=L>1?w[L-1]:n,ne=L>2?w[2]:n;for(V=u.length>3&&typeof V=="function"?(L--,V):n,ne&&ur(w[0],w[1],ne)&&(V=L<3?n:V,L=1),h=Bt(h);++M<L;){var ae=w[M];ae&&u(h,ae,M,V)}return h})}function DC(u,h){return function(w,M){if(w==null)return w;if(!xr(w))return u(w,M);for(var L=w.length,V=h?L:-1,ne=Bt(w);(h?V--:++V<L)&&M(ne[V],V,ne)!==!1;);return w}}function MC(u){return function(h,w,M){for(var L=-1,V=Bt(h),ne=M(h),ae=ne.length;ae--;){var ce=ne[u?ae:++L];if(w(V[ce],ce,V)===!1)break}return h}}function SF(u,h,w){var M=h&y,L=Pc(u);function V(){var ne=this&&this!==Wn&&this instanceof V?L:u;return ne.apply(M?w:this,arguments)}return V}function PC(u){return function(h){h=Ot(h);var w=ol(h)?Bo(h):n,M=w?w[0]:h.charAt(0),L=w?pa(w,1).join(""):h.slice(1);return M[u]()+L}}function pl(u){return function(h){return wg(DS(RS(h).replace(Ie,"")),u,"")}}function Pc(u){return function(){var h=arguments;switch(h.length){case 0:return new u;case 1:return new u(h[0]);case 2:return new u(h[0],h[1]);case 3:return new u(h[0],h[1],h[2]);case 4:return new u(h[0],h[1],h[2],h[3]);case 5:return new u(h[0],h[1],h[2],h[3],h[4]);case 6:return new u(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new u(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var w=ul(u.prototype),M=u.apply(w,h);return rn(M)?M:w}}function kF(u,h,w){var M=Pc(u);function L(){for(var V=arguments.length,ne=pe(V),ae=V,ce=hl(L);ae--;)ne[ae]=arguments[ae];var xe=V<3&&ne[0]!==ce&&ne[V-1]!==ce?[]:sa(ne,ce);if(V-=xe.length,V<w)return FC(u,h,Od,L.placeholder,n,ne,xe,n,n,w-V);var Ce=this&&this!==Wn&&this instanceof L?M:u;return Br(Ce,this,ne)}return L}function IC(u){return function(h,w,M){var L=Bt(h);if(!xr(h)){var V=qe(w,3);h=Ln(h),w=function(ae){return V(L[ae],ae,L)}}var ne=u(h,w,M);return ne>-1?L[V?h[ne]:ne]:n}}function NC(u){return Bi(function(h){var w=h.length,M=w,L=ho.prototype.thru;for(u&&h.reverse();M--;){var V=h[M];if(typeof V!="function")throw new po(a);if(L&&!ne&&Pd(V)=="wrapper")var ne=new ho([],!0)}for(M=ne?M:w;++M<w;){V=h[M];var ae=Pd(V),ce=ae=="wrapper"?em(V):n;ce&&om(ce[0])&&ce[1]==(S|T|E|R)&&!ce[4].length&&ce[9]==1?ne=ne[Pd(ce[0])].apply(ne,ce[3]):ne=V.length==1&&om(V)?ne[ae]():ne.thru(V)}return function(){var xe=arguments,Ce=xe[0];if(ne&&xe.length==1&&nt(Ce))return ne.plant(Ce).value();for(var ke=0,Re=w?h[ke].apply(this,xe):Ce;++ke<w;)Re=h[ke].call(this,Re);return Re}})}function Od(u,h,w,M,L,V,ne,ae,ce,xe){var Ce=h&S,ke=h&y,Re=h&C,He=h&(T|x),Ye=h&D,it=Re?n:Pc(u);function Ve(){for(var ut=arguments.length,ht=pe(ut),Wr=ut;Wr--;)ht[Wr]=arguments[Wr];if(He)var dr=hl(Ve),Ur=j5(ht,dr);if(M&&(ht=OC(ht,M,L,He)),V&&(ht=RC(ht,V,ne,He)),ut-=Ur,He&&ut<xe){var bn=sa(ht,dr);return FC(u,h,Od,Ve.placeholder,w,ht,bn,ae,ce,xe-ut)}var zo=ke?w:this,Wi=Re?zo[u]:u;return ut=ht.length,ae?ht=qF(ht,ae):Ye&&ut>1&&ht.reverse(),Ce&&ce<ut&&(ht.length=ce),this&&this!==Wn&&this instanceof Ve&&(Wi=it||Pc(Wi)),Wi.apply(zo,ht)}return Ve}function LC(u,h){return function(w,M){return X3(w,u,h(M),{})}}function Rd(u,h){return function(w,M){var L;if(w===n&&M===n)return h;if(w!==n&&(L=w),M!==n){if(L===n)return M;typeof w=="string"||typeof M=="string"?(w=$r(w),M=$r(M)):(w=_C(w),M=_C(M)),L=u(w,M)}return L}}function Jg(u){return Bi(function(h){return h=Kt(h,Hr(qe())),st(function(w){var M=this;return u(h,function(L){return Br(L,M,w)})})})}function Dd(u,h){h=h===n?" ":$r(h);var w=h.length;if(w<2)return w?Wg(h,u):h;var M=Wg(h,vd(u/il(h)));return ol(h)?pa(Bo(M),0,u).join(""):M.slice(0,u)}function TF(u,h,w,M){var L=h&y,V=Pc(u);function ne(){for(var ae=-1,ce=arguments.length,xe=-1,Ce=M.length,ke=pe(Ce+ce),Re=this&&this!==Wn&&this instanceof ne?V:u;++xe<Ce;)ke[xe]=M[xe];for(;ce--;)ke[xe++]=arguments[++ae];return Br(Re,L?w:this,ke)}return ne}function jC(u){return function(h,w,M){return M&&typeof M!="number"&&ur(h,w,M)&&(w=M=n),h=zi(h),w===n?(w=h,h=0):w=zi(w),M=M===n?h<w?1:-1:zi(M),dF(h,w,M,u)}}function Md(u){return function(h,w){return typeof h=="string"&&typeof w=="string"||(h=vo(h),w=vo(w)),u(h,w)}}function FC(u,h,w,M,L,V,ne,ae,ce,xe){var Ce=h&T,ke=Ce?ne:n,Re=Ce?n:ne,He=Ce?V:n,Ye=Ce?n:V;h|=Ce?E:O,h&=~(Ce?O:E),h&k||(h&=~(y|C));var it=[u,h,L,He,ke,Ye,Re,ae,ce,xe],Ve=w.apply(n,it);return om(u)&&JC(Ve,it),Ve.placeholder=M,ZC(Ve,u,h)}function Zg(u){var h=In[u];return function(w,M){if(w=vo(w),M=M==null?0:er(rt(M),292),M&&Zx(w)){var L=(Ot(w)+"e").split("e"),V=h(L[0]+"e"+(+L[1]+M));return L=(Ot(V)+"e").split("e"),+(L[0]+"e"+(+L[1]-M))}return h(w)}}var EF=ll&&1/sd(new ll([,-0]))[1]==G?function(u){return new ll(u)}:ym;function BC(u){return function(h){var w=tr(h);return w==ie?Eg(h):w==Ae?U5(h):L5(h,u(h))}}function Fi(u,h,w,M,L,V,ne,ae){var ce=h&C;if(!ce&&typeof u!="function")throw new po(a);var xe=M?M.length:0;if(xe||(h&=~(E|O),M=L=n),ne=ne===n?ne:Nn(rt(ne),0),ae=ae===n?ae:rt(ae),xe-=L?L.length:0,h&O){var Ce=M,ke=L;M=L=n}var Re=ce?n:em(u),He=[u,h,w,M,L,Ce,ke,V,ne,ae];if(Re&&zF(He,Re),u=He[0],h=He[1],w=He[2],M=He[3],L=He[4],ae=He[9]=He[9]===n?ce?0:u.length:Nn(He[9]-xe,0),!ae&&h&(T|x)&&(h&=~(T|x)),!h||h==y)var Ye=SF(u,h,w);else h==T||h==x?Ye=kF(u,h,ae):(h==E||h==(y|E))&&!L.length?Ye=TF(u,h,w,M):Ye=Od.apply(n,He);var it=Re?yC:JC;return ZC(it(Ye,He),u,h)}function HC(u,h,w,M){return u===n||$o(u,sl[w])&&!Mt.call(M,w)?h:u}function $C(u,h,w,M,L,V){return rn(u)&&rn(h)&&(V.set(h,u),kd(u,h,n,$C,V),V.delete(h)),u}function AF(u){return Lc(u)?n:u}function zC(u,h,w,M,L,V){var ne=w&b,ae=u.length,ce=h.length;if(ae!=ce&&!(ne&&ce>ae))return!1;var xe=V.get(u),Ce=V.get(h);if(xe&&Ce)return xe==h&&Ce==u;var ke=-1,Re=!0,He=w&_?new os:n;for(V.set(u,h),V.set(h,u);++ke<ae;){var Ye=u[ke],it=h[ke];if(M)var Ve=ne?M(it,Ye,ke,h,u,V):M(Ye,it,ke,u,h,V);if(Ve!==n){if(Ve)continue;Re=!1;break}if(He){if(!_g(h,function(ut,ht){if(!xc(He,ht)&&(Ye===ut||L(Ye,ut,w,M,V)))return He.push(ht)})){Re=!1;break}}else if(!(Ye===it||L(Ye,it,w,M,V))){Re=!1;break}}return V.delete(u),V.delete(h),Re}function OF(u,h,w,M,L,V,ne){switch(w){case Me:if(u.byteLength!=h.byteLength||u.byteOffset!=h.byteOffset)return!1;u=u.buffer,h=h.buffer;case Ge:return!(u.byteLength!=h.byteLength||!V(new hd(u),new hd(h)));case oe:case N:case be:return $o(+u,+h);case Q:return u.name==h.name&&u.message==h.message;case Oe:case Le:return u==h+"";case ie:var ae=Eg;case Ae:var ce=M&b;if(ae||(ae=sd),u.size!=h.size&&!ce)return!1;var xe=ne.get(u);if(xe)return xe==h;M|=_,ne.set(u,h);var Ce=zC(ae(u),ae(h),M,L,V,ne);return ne.delete(u),Ce;case Fe:if(Ec)return Ec.call(u)==Ec.call(h)}return!1}function RF(u,h,w,M,L,V){var ne=w&b,ae=Kg(u),ce=ae.length,xe=Kg(h),Ce=xe.length;if(ce!=Ce&&!ne)return!1;for(var ke=ce;ke--;){var Re=ae[ke];if(!(ne?Re in h:Mt.call(h,Re)))return!1}var He=V.get(u),Ye=V.get(h);if(He&&Ye)return He==h&&Ye==u;var it=!0;V.set(u,h),V.set(h,u);for(var Ve=ne;++ke<ce;){Re=ae[ke];var ut=u[Re],ht=h[Re];if(M)var Wr=ne?M(ht,ut,Re,h,u,V):M(ut,ht,Re,u,h,V);if(!(Wr===n?ut===ht||L(ut,ht,w,M,V):Wr)){it=!1;break}Ve||(Ve=Re=="constructor")}if(it&&!Ve){var dr=u.constructor,Ur=h.constructor;dr!=Ur&&"constructor"in u&&"constructor"in h&&!(typeof dr=="function"&&dr instanceof dr&&typeof Ur=="function"&&Ur instanceof Ur)&&(it=!1)}return V.delete(u),V.delete(h),it}function Bi(u){return am(GC(u,n,rS),u+"")}function Kg(u){return lC(u,Ln,nm)}function Xg(u){return lC(u,Cr,WC)}var em=yd?function(u){return yd.get(u)}:ym;function Pd(u){for(var h=u.name+"",w=cl[h],M=Mt.call(cl,h)?w.length:0;M--;){var L=w[M],V=L.func;if(V==null||V==u)return L.name}return h}function hl(u){var h=Mt.call(U,"placeholder")?U:u;return h.placeholder}function qe(){var u=U.iteratee||vm;return u=u===vm?dC:u,arguments.length?u(arguments[0],arguments[1]):u}function Id(u,h){var w=u.__data__;return FF(h)?w[typeof h=="string"?"string":"hash"]:w.map}function tm(u){for(var h=Ln(u),w=h.length;w--;){var M=h[w],L=u[M];h[w]=[M,L,YC(L)]}return h}function ss(u,h){var w=$5(u,h);return uC(w)?w:n}function DF(u){var h=Mt.call(u,ns),w=u[ns];try{u[ns]=n;var M=!0}catch(V){}var L=dd.call(u);return M&&(h?u[ns]=w:delete u[ns]),L}var nm=Og?function(u){return u==null?[]:(u=Bt(u),ia(Og(u),function(h){return Qx.call(u,h)}))}:wm,WC=Og?function(u){for(var h=[];u;)aa(h,nm(u)),u=fd(u);return h}:wm,tr=cr;(Rg&&tr(new Rg(new ArrayBuffer(1)))!=Me||Sc&&tr(new Sc)!=ie||Dg&&tr(Dg.resolve())!=Be||ll&&tr(new ll)!=Ae||kc&&tr(new kc)!=_t)&&(tr=function(u){var h=cr(u),w=h==we?u.constructor:n,M=w?ls(w):"";if(M)switch(M){case h3:return Me;case f3:return ie;case g3:return Be;case m3:return Ae;case v3:return _t}return h});function MF(u,h,w){for(var M=-1,L=w.length;++M<L;){var V=w[M],ne=V.size;switch(V.type){case"drop":u+=ne;break;case"dropRight":h-=ne;break;case"take":h=er(h,u+ne);break;case"takeRight":u=Nn(u,h-ne);break}}return{start:u,end:h}}function PF(u){var h=u.match(oo);return h?h[1].split(ei):[]}function UC(u,h,w){h=da(h,u);for(var M=-1,L=h.length,V=!1;++M<L;){var ne=li(h[M]);if(!(V=u!=null&&w(u,ne)))break;u=u[ne]}return V||++M!=L?V:(L=u==null?0:u.length,!!L&&$d(L)&&Hi(ne,L)&&(nt(u)||cs(u)))}function IF(u){var h=u.length,w=new u.constructor(h);return h&&typeof u[0]=="string"&&Mt.call(u,"index")&&(w.index=u.index,w.input=u.input),w}function qC(u){return typeof u.constructor=="function"&&!Ic(u)?ul(fd(u)):{}}function NF(u,h,w){var M=u.constructor;switch(h){case Ge:return Qg(u);case oe:case N:return new M(+u);case Me:return bF(u,w);case at:case Ft:case tn:case zt:case Pe:case Ue:case Et:case gn:case ln:return EC(u,w);case ie:return new M;case be:case Le:return new M(u);case Oe:return yF(u);case Ae:return new M;case Fe:return wF(u)}}function LF(u,h){var w=h.length;if(!w)return u;var M=w-1;return h[M]=(w>1?"& ":"")+h[M],h=h.join(w>2?", ":" "),u.replace(Fr,`{
|
|
403
|
+
/* [wrapped with `+h+`] */
|
|
404
|
+
`)}function jF(u){return nt(u)||cs(u)||!!(Jx&&u&&u[Jx])}function Hi(u,h){var w=typeof u;return h=h==null?K:h,!!h&&(w=="number"||w!="symbol"&&Ri.test(u))&&u>-1&&u%1==0&&u<h}function ur(u,h,w){if(!rn(w))return!1;var M=typeof h;return(M=="number"?xr(w)&&Hi(h,w.length):M=="string"&&h in w)?$o(w[h],u):!1}function rm(u,h){if(nt(u))return!1;var w=typeof u;return w=="number"||w=="symbol"||w=="boolean"||u==null||zr(u)?!0:Io.test(u)||!yr.test(u)||h!=null&&u in Bt(h)}function FF(u){var h=typeof u;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?u!=="__proto__":u===null}function om(u){var h=Pd(u),w=U[h];if(typeof w!="function"||!(h in pt.prototype))return!1;if(u===w)return!0;var M=em(w);return!!M&&u===M[0]}function BF(u){return!!Yx&&Yx in u}var HF=cd?$i:_m;function Ic(u){var h=u&&u.constructor,w=typeof h=="function"&&h.prototype||sl;return u===w}function YC(u){return u===u&&!rn(u)}function VC(u,h){return function(w){return w==null?!1:w[u]===h&&(h!==n||u in Bt(w))}}function $F(u){var h=Bd(u,function(M){return w.size===l&&w.clear(),M}),w=h.cache;return h}function zF(u,h){var w=u[1],M=h[1],L=w|M,V=L<(y|C|S),ne=M==S&&w==T||M==S&&w==R&&u[7].length<=h[8]||M==(S|R)&&h[7].length<=h[8]&&w==T;if(!(V||ne))return u;M&y&&(u[2]=h[2],L|=w&y?0:k);var ae=h[3];if(ae){var ce=u[3];u[3]=ce?OC(ce,ae,h[4]):ae,u[4]=ce?sa(u[3],d):h[4]}return ae=h[5],ae&&(ce=u[5],u[5]=ce?RC(ce,ae,h[6]):ae,u[6]=ce?sa(u[5],d):h[6]),ae=h[7],ae&&(u[7]=ae),M&S&&(u[8]=u[8]==null?h[8]:er(u[8],h[8])),u[9]==null&&(u[9]=h[9]),u[0]=h[0],u[1]=L,u}function WF(u){var h=[];if(u!=null)for(var w in Bt(u))h.push(w);return h}function UF(u){return dd.call(u)}function GC(u,h,w){return h=Nn(h===n?u.length-1:h,0),function(){for(var M=arguments,L=-1,V=Nn(M.length-h,0),ne=pe(V);++L<V;)ne[L]=M[h+L];L=-1;for(var ae=pe(h+1);++L<h;)ae[L]=M[L];return ae[h]=w(ne),Br(u,this,ae)}}function QC(u,h){return h.length<2?u:as(u,go(h,0,-1))}function qF(u,h){for(var w=u.length,M=er(h.length,w),L=_r(u);M--;){var V=h[M];u[M]=Hi(V,w)?L[V]:n}return u}function im(u,h){if(!(h==="constructor"&&typeof u[h]=="function")&&h!="__proto__")return u[h]}var JC=KC(yC),Nc=a3||function(u,h){return Wn.setTimeout(u,h)},am=KC(fF);function ZC(u,h,w){var M=h+"";return am(u,LF(M,YF(PF(M),w)))}function KC(u){var h=0,w=0;return function(){var M=u3(),L=W-(M-w);if(w=M,L>0){if(++h>=j)return arguments[0]}else h=0;return u.apply(n,arguments)}}function Nd(u,h){var w=-1,M=u.length,L=M-1;for(h=h===n?M:h;++w<h;){var V=zg(w,L),ne=u[V];u[V]=u[w],u[w]=ne}return u.length=h,u}var XC=$F(function(u){var h=[];return u.charCodeAt(0)===46&&h.push(""),u.replace(Lr,function(w,M,L,V){h.push(L?V.replace(wr,"$1"):M||w)}),h});function li(u){if(typeof u=="string"||zr(u))return u;var h=u+"";return h=="0"&&1/u==-G?"-0":h}function ls(u){if(u!=null){try{return ud.call(u)}catch(h){}try{return u+""}catch(h){}}return""}function YF(u,h){return uo(me,function(w){var M="_."+w[0];h&w[1]&&!id(u,M)&&u.push(M)}),u.sort()}function eS(u){if(u instanceof pt)return u.clone();var h=new ho(u.__wrapped__,u.__chain__);return h.__actions__=_r(u.__actions__),h.__index__=u.__index__,h.__values__=u.__values__,h}function VF(u,h,w){(w?ur(u,h,w):h===n)?h=1:h=Nn(rt(h),0);var M=u==null?0:u.length;if(!M||h<1)return[];for(var L=0,V=0,ne=pe(vd(M/h));L<M;)ne[V++]=go(u,L,L+=h);return ne}function GF(u){for(var h=-1,w=u==null?0:u.length,M=0,L=[];++h<w;){var V=u[h];V&&(L[M++]=V)}return L}function QF(){var u=arguments.length;if(!u)return[];for(var h=pe(u-1),w=arguments[0],M=u;M--;)h[M-1]=arguments[M];return aa(nt(w)?_r(w):[w],Un(h,1))}var JF=st(function(u,h){return vn(u)?Oc(u,Un(h,1,vn,!0)):[]}),ZF=st(function(u,h){var w=mo(h);return vn(w)&&(w=n),vn(u)?Oc(u,Un(h,1,vn,!0),qe(w,2)):[]}),KF=st(function(u,h){var w=mo(h);return vn(w)&&(w=n),vn(u)?Oc(u,Un(h,1,vn,!0),n,w):[]});function XF(u,h,w){var M=u==null?0:u.length;return M?(h=w||h===n?1:rt(h),go(u,h<0?0:h,M)):[]}function e6(u,h,w){var M=u==null?0:u.length;return M?(h=w||h===n?1:rt(h),h=M-h,go(u,0,h<0?0:h)):[]}function t6(u,h){return u&&u.length?Ed(u,qe(h,3),!0,!0):[]}function n6(u,h){return u&&u.length?Ed(u,qe(h,3),!0):[]}function r6(u,h,w,M){var L=u==null?0:u.length;return L?(w&&typeof w!="number"&&ur(u,h,w)&&(w=0,M=L),Q3(u,h,w,M)):[]}function tS(u,h,w){var M=u==null?0:u.length;if(!M)return-1;var L=w==null?0:rt(w);return L<0&&(L=Nn(M+L,0)),ad(u,qe(h,3),L)}function nS(u,h,w){var M=u==null?0:u.length;if(!M)return-1;var L=M-1;return w!==n&&(L=rt(w),L=w<0?Nn(M+L,0):er(L,M-1)),ad(u,qe(h,3),L,!0)}function rS(u){var h=u==null?0:u.length;return h?Un(u,1):[]}function o6(u){var h=u==null?0:u.length;return h?Un(u,G):[]}function i6(u,h){var w=u==null?0:u.length;return w?(h=h===n?1:rt(h),Un(u,h)):[]}function a6(u){for(var h=-1,w=u==null?0:u.length,M={};++h<w;){var L=u[h];M[L[0]]=L[1]}return M}function oS(u){return u&&u.length?u[0]:n}function s6(u,h,w){var M=u==null?0:u.length;if(!M)return-1;var L=w==null?0:rt(w);return L<0&&(L=Nn(M+L,0)),rl(u,h,L)}function l6(u){var h=u==null?0:u.length;return h?go(u,0,-1):[]}var c6=st(function(u){var h=Kt(u,Vg);return h.length&&h[0]===u[0]?jg(h):[]}),u6=st(function(u){var h=mo(u),w=Kt(u,Vg);return h===mo(w)?h=n:w.pop(),w.length&&w[0]===u[0]?jg(w,qe(h,2)):[]}),d6=st(function(u){var h=mo(u),w=Kt(u,Vg);return h=typeof h=="function"?h:n,h&&w.pop(),w.length&&w[0]===u[0]?jg(w,n,h):[]});function p6(u,h){return u==null?"":l3.call(u,h)}function mo(u){var h=u==null?0:u.length;return h?u[h-1]:n}function h6(u,h,w){var M=u==null?0:u.length;if(!M)return-1;var L=M;return w!==n&&(L=rt(w),L=L<0?Nn(M+L,0):er(L,M-1)),h===h?Y5(u,h,L):ad(u,Fx,L,!0)}function f6(u,h){return u&&u.length?gC(u,rt(h)):n}var g6=st(iS);function iS(u,h){return u&&u.length&&h&&h.length?$g(u,h):u}function m6(u,h,w){return u&&u.length&&h&&h.length?$g(u,h,qe(w,2)):u}function v6(u,h,w){return u&&u.length&&h&&h.length?$g(u,h,n,w):u}var b6=Bi(function(u,h){var w=u==null?0:u.length,M=Pg(u,h);return bC(u,Kt(h,function(L){return Hi(L,w)?+L:L}).sort(AC)),M});function y6(u,h){var w=[];if(!(u&&u.length))return w;var M=-1,L=[],V=u.length;for(h=qe(h,3);++M<V;){var ne=u[M];h(ne,M,u)&&(w.push(ne),L.push(M))}return bC(u,L),w}function sm(u){return u==null?u:p3.call(u)}function w6(u,h,w){var M=u==null?0:u.length;return M?(w&&typeof w!="number"&&ur(u,h,w)?(h=0,w=M):(h=h==null?0:rt(h),w=w===n?M:rt(w)),go(u,h,w)):[]}function _6(u,h){return Td(u,h)}function x6(u,h,w){return Ug(u,h,qe(w,2))}function C6(u,h){var w=u==null?0:u.length;if(w){var M=Td(u,h);if(M<w&&$o(u[M],h))return M}return-1}function S6(u,h){return Td(u,h,!0)}function k6(u,h,w){return Ug(u,h,qe(w,2),!0)}function T6(u,h){var w=u==null?0:u.length;if(w){var M=Td(u,h,!0)-1;if($o(u[M],h))return M}return-1}function E6(u){return u&&u.length?wC(u):[]}function A6(u,h){return u&&u.length?wC(u,qe(h,2)):[]}function O6(u){var h=u==null?0:u.length;return h?go(u,1,h):[]}function R6(u,h,w){return u&&u.length?(h=w||h===n?1:rt(h),go(u,0,h<0?0:h)):[]}function D6(u,h,w){var M=u==null?0:u.length;return M?(h=w||h===n?1:rt(h),h=M-h,go(u,h<0?0:h,M)):[]}function M6(u,h){return u&&u.length?Ed(u,qe(h,3),!1,!0):[]}function P6(u,h){return u&&u.length?Ed(u,qe(h,3)):[]}var I6=st(function(u){return ua(Un(u,1,vn,!0))}),N6=st(function(u){var h=mo(u);return vn(h)&&(h=n),ua(Un(u,1,vn,!0),qe(h,2))}),L6=st(function(u){var h=mo(u);return h=typeof h=="function"?h:n,ua(Un(u,1,vn,!0),n,h)});function j6(u){return u&&u.length?ua(u):[]}function F6(u,h){return u&&u.length?ua(u,qe(h,2)):[]}function B6(u,h){return h=typeof h=="function"?h:n,u&&u.length?ua(u,n,h):[]}function lm(u){if(!(u&&u.length))return[];var h=0;return u=ia(u,function(w){if(vn(w))return h=Nn(w.length,h),!0}),kg(h,function(w){return Kt(u,xg(w))})}function aS(u,h){if(!(u&&u.length))return[];var w=lm(u);return h==null?w:Kt(w,function(M){return Br(h,n,M)})}var H6=st(function(u,h){return vn(u)?Oc(u,h):[]}),$6=st(function(u){return Yg(ia(u,vn))}),z6=st(function(u){var h=mo(u);return vn(h)&&(h=n),Yg(ia(u,vn),qe(h,2))}),W6=st(function(u){var h=mo(u);return h=typeof h=="function"?h:n,Yg(ia(u,vn),n,h)}),U6=st(lm);function q6(u,h){return SC(u||[],h||[],Ac)}function Y6(u,h){return SC(u||[],h||[],Mc)}var V6=st(function(u){var h=u.length,w=h>1?u[h-1]:n;return w=typeof w=="function"?(u.pop(),w):n,aS(u,w)});function sS(u){var h=U(u);return h.__chain__=!0,h}function G6(u,h){return h(u),u}function Ld(u,h){return h(u)}var Q6=Bi(function(u){var h=u.length,w=h?u[0]:0,M=this.__wrapped__,L=function(V){return Pg(V,u)};return h>1||this.__actions__.length||!(M instanceof pt)||!Hi(w)?this.thru(L):(M=M.slice(w,+w+(h?1:0)),M.__actions__.push({func:Ld,args:[L],thisArg:n}),new ho(M,this.__chain__).thru(function(V){return h&&!V.length&&V.push(n),V}))});function J6(){return sS(this)}function Z6(){return new ho(this.value(),this.__chain__)}function K6(){this.__values__===n&&(this.__values__=_S(this.value()));var u=this.__index__>=this.__values__.length,h=u?n:this.__values__[this.__index__++];return{done:u,value:h}}function X6(){return this}function eB(u){for(var h,w=this;w instanceof _d;){var M=eS(w);M.__index__=0,M.__values__=n,h?L.__wrapped__=M:h=M;var L=M;w=w.__wrapped__}return L.__wrapped__=u,h}function tB(){var u=this.__wrapped__;if(u instanceof pt){var h=u;return this.__actions__.length&&(h=new pt(this)),h=h.reverse(),h.__actions__.push({func:Ld,args:[sm],thisArg:n}),new ho(h,this.__chain__)}return this.thru(sm)}function nB(){return CC(this.__wrapped__,this.__actions__)}var rB=Ad(function(u,h,w){Mt.call(u,w)?++u[w]:ji(u,w,1)});function oB(u,h,w){var M=nt(u)?Lx:G3;return w&&ur(u,h,w)&&(h=n),M(u,qe(h,3))}function iB(u,h){var w=nt(u)?ia:aC;return w(u,qe(h,3))}var aB=IC(tS),sB=IC(nS);function lB(u,h){return Un(jd(u,h),1)}function cB(u,h){return Un(jd(u,h),G)}function uB(u,h,w){return w=w===n?1:rt(w),Un(jd(u,h),w)}function lS(u,h){var w=nt(u)?uo:ca;return w(u,qe(h,3))}function cS(u,h){var w=nt(u)?O5:iC;return w(u,qe(h,3))}var dB=Ad(function(u,h,w){Mt.call(u,w)?u[w].push(h):ji(u,w,[h])});function pB(u,h,w,M){u=xr(u)?u:gl(u),w=w&&!M?rt(w):0;var L=u.length;return w<0&&(w=Nn(L+w,0)),zd(u)?w<=L&&u.indexOf(h,w)>-1:!!L&&rl(u,h,w)>-1}var hB=st(function(u,h,w){var M=-1,L=typeof h=="function",V=xr(u)?pe(u.length):[];return ca(u,function(ne){V[++M]=L?Br(h,ne,w):Rc(ne,h,w)}),V}),fB=Ad(function(u,h,w){ji(u,w,h)});function jd(u,h){var w=nt(u)?Kt:pC;return w(u,qe(h,3))}function gB(u,h,w,M){return u==null?[]:(nt(h)||(h=h==null?[]:[h]),w=M?n:w,nt(w)||(w=w==null?[]:[w]),mC(u,h,w))}var mB=Ad(function(u,h,w){u[w?0:1].push(h)},function(){return[[],[]]});function vB(u,h,w){var M=nt(u)?wg:Hx,L=arguments.length<3;return M(u,qe(h,4),w,L,ca)}function bB(u,h,w){var M=nt(u)?R5:Hx,L=arguments.length<3;return M(u,qe(h,4),w,L,iC)}function yB(u,h){var w=nt(u)?ia:aC;return w(u,Hd(qe(h,3)))}function wB(u){var h=nt(u)?tC:pF;return h(u)}function _B(u,h,w){(w?ur(u,h,w):h===n)?h=1:h=rt(h);var M=nt(u)?W3:hF;return M(u,h)}function xB(u){var h=nt(u)?U3:gF;return h(u)}function CB(u){if(u==null)return 0;if(xr(u))return zd(u)?il(u):u.length;var h=tr(u);return h==ie||h==Ae?u.size:Bg(u).length}function SB(u,h,w){var M=nt(u)?_g:mF;return w&&ur(u,h,w)&&(h=n),M(u,qe(h,3))}var kB=st(function(u,h){if(u==null)return[];var w=h.length;return w>1&&ur(u,h[0],h[1])?h=[]:w>2&&ur(h[0],h[1],h[2])&&(h=[h[0]]),mC(u,Un(h,1),[])}),Fd=i3||function(){return Wn.Date.now()};function TB(u,h){if(typeof h!="function")throw new po(a);return u=rt(u),function(){if(--u<1)return h.apply(this,arguments)}}function uS(u,h,w){return h=w?n:h,h=u&&h==null?u.length:h,Fi(u,S,n,n,n,n,h)}function dS(u,h){var w;if(typeof h!="function")throw new po(a);return u=rt(u),function(){return--u>0&&(w=h.apply(this,arguments)),u<=1&&(h=n),w}}var cm=st(function(u,h,w){var M=y;if(w.length){var L=sa(w,hl(cm));M|=E}return Fi(u,M,h,w,L)}),pS=st(function(u,h,w){var M=y|C;if(w.length){var L=sa(w,hl(pS));M|=E}return Fi(h,M,u,w,L)});function hS(u,h,w){h=w?n:h;var M=Fi(u,T,n,n,n,n,n,h);return M.placeholder=hS.placeholder,M}function fS(u,h,w){h=w?n:h;var M=Fi(u,x,n,n,n,n,n,h);return M.placeholder=fS.placeholder,M}function gS(u,h,w){var M,L,V,ne,ae,ce,xe=0,Ce=!1,ke=!1,Re=!0;if(typeof u!="function")throw new po(a);h=vo(h)||0,rn(w)&&(Ce=!!w.leading,ke="maxWait"in w,V=ke?Nn(vo(w.maxWait)||0,h):V,Re="trailing"in w?!!w.trailing:Re);function He(bn){var zo=M,Wi=L;return M=L=n,xe=bn,ne=u.apply(Wi,zo),ne}function Ye(bn){return xe=bn,ae=Nc(ut,h),Ce?He(bn):ne}function it(bn){var zo=bn-ce,Wi=bn-xe,IS=h-zo;return ke?er(IS,V-Wi):IS}function Ve(bn){var zo=bn-ce,Wi=bn-xe;return ce===n||zo>=h||zo<0||ke&&Wi>=V}function ut(){var bn=Fd();if(Ve(bn))return ht(bn);ae=Nc(ut,it(bn))}function ht(bn){return ae=n,Re&&M?He(bn):(M=L=n,ne)}function Wr(){ae!==n&&kC(ae),xe=0,M=ce=L=ae=n}function dr(){return ae===n?ne:ht(Fd())}function Ur(){var bn=Fd(),zo=Ve(bn);if(M=arguments,L=this,ce=bn,zo){if(ae===n)return Ye(ce);if(ke)return kC(ae),ae=Nc(ut,h),He(ce)}return ae===n&&(ae=Nc(ut,h)),ne}return Ur.cancel=Wr,Ur.flush=dr,Ur}var EB=st(function(u,h){return oC(u,1,h)}),AB=st(function(u,h,w){return oC(u,vo(h)||0,w)});function OB(u){return Fi(u,D)}function Bd(u,h){if(typeof u!="function"||h!=null&&typeof h!="function")throw new po(a);var w=function(){var M=arguments,L=h?h.apply(this,M):M[0],V=w.cache;if(V.has(L))return V.get(L);var ne=u.apply(this,M);return w.cache=V.set(L,ne)||V,ne};return w.cache=new(Bd.Cache||Li),w}Bd.Cache=Li;function Hd(u){if(typeof u!="function")throw new po(a);return function(){var h=arguments;switch(h.length){case 0:return!u.call(this);case 1:return!u.call(this,h[0]);case 2:return!u.call(this,h[0],h[1]);case 3:return!u.call(this,h[0],h[1],h[2])}return!u.apply(this,h)}}function RB(u){return dS(2,u)}var DB=vF(function(u,h){h=h.length==1&&nt(h[0])?Kt(h[0],Hr(qe())):Kt(Un(h,1),Hr(qe()));var w=h.length;return st(function(M){for(var L=-1,V=er(M.length,w);++L<V;)M[L]=h[L].call(this,M[L]);return Br(u,this,M)})}),um=st(function(u,h){var w=sa(h,hl(um));return Fi(u,E,n,h,w)}),mS=st(function(u,h){var w=sa(h,hl(mS));return Fi(u,O,n,h,w)}),MB=Bi(function(u,h){return Fi(u,R,n,n,n,h)});function PB(u,h){if(typeof u!="function")throw new po(a);return h=h===n?h:rt(h),st(u,h)}function IB(u,h){if(typeof u!="function")throw new po(a);return h=h==null?0:Nn(rt(h),0),st(function(w){var M=w[h],L=pa(w,0,h);return M&&aa(L,M),Br(u,this,L)})}function NB(u,h,w){var M=!0,L=!0;if(typeof u!="function")throw new po(a);return rn(w)&&(M="leading"in w?!!w.leading:M,L="trailing"in w?!!w.trailing:L),gS(u,h,{leading:M,maxWait:h,trailing:L})}function LB(u){return uS(u,1)}function jB(u,h){return um(Gg(h),u)}function FB(){if(!arguments.length)return[];var u=arguments[0];return nt(u)?u:[u]}function BB(u){return fo(u,v)}function HB(u,h){return h=typeof h=="function"?h:n,fo(u,v,h)}function $B(u){return fo(u,p|v)}function zB(u,h){return h=typeof h=="function"?h:n,fo(u,p|v,h)}function WB(u,h){return h==null||rC(u,h,Ln(h))}function $o(u,h){return u===h||u!==u&&h!==h}var UB=Md(Lg),qB=Md(function(u,h){return u>=h}),cs=cC(function(){return arguments}())?cC:function(u){return dn(u)&&Mt.call(u,"callee")&&!Qx.call(u,"callee")},nt=pe.isArray,YB=Rx?Hr(Rx):eF;function xr(u){return u!=null&&$d(u.length)&&!$i(u)}function vn(u){return dn(u)&&xr(u)}function VB(u){return u===!0||u===!1||dn(u)&&cr(u)==oe}var ha=s3||_m,GB=Dx?Hr(Dx):tF;function QB(u){return dn(u)&&u.nodeType===1&&!Lc(u)}function JB(u){if(u==null)return!0;if(xr(u)&&(nt(u)||typeof u=="string"||typeof u.splice=="function"||ha(u)||fl(u)||cs(u)))return!u.length;var h=tr(u);if(h==ie||h==Ae)return!u.size;if(Ic(u))return!Bg(u).length;for(var w in u)if(Mt.call(u,w))return!1;return!0}function ZB(u,h){return Dc(u,h)}function KB(u,h,w){w=typeof w=="function"?w:n;var M=w?w(u,h):n;return M===n?Dc(u,h,n,w):!!M}function dm(u){if(!dn(u))return!1;var h=cr(u);return h==Q||h==z||typeof u.message=="string"&&typeof u.name=="string"&&!Lc(u)}function XB(u){return typeof u=="number"&&Zx(u)}function $i(u){if(!rn(u))return!1;var h=cr(u);return h==re||h==ue||h==_e||h==Ee}function vS(u){return typeof u=="number"&&u==rt(u)}function $d(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=K}function rn(u){var h=typeof u;return u!=null&&(h=="object"||h=="function")}function dn(u){return u!=null&&typeof u=="object"}var bS=Mx?Hr(Mx):rF;function e4(u,h){return u===h||Fg(u,h,tm(h))}function t4(u,h,w){return w=typeof w=="function"?w:n,Fg(u,h,tm(h),w)}function n4(u){return yS(u)&&u!=+u}function r4(u){if(HF(u))throw new et(i);return uC(u)}function o4(u){return u===null}function i4(u){return u==null}function yS(u){return typeof u=="number"||dn(u)&&cr(u)==be}function Lc(u){if(!dn(u)||cr(u)!=we)return!1;var h=fd(u);if(h===null)return!0;var w=Mt.call(h,"constructor")&&h.constructor;return typeof w=="function"&&w instanceof w&&ud.call(w)==t3}var pm=Px?Hr(Px):oF;function a4(u){return vS(u)&&u>=-K&&u<=K}var wS=Ix?Hr(Ix):iF;function zd(u){return typeof u=="string"||!nt(u)&&dn(u)&&cr(u)==Le}function zr(u){return typeof u=="symbol"||dn(u)&&cr(u)==Fe}var fl=Nx?Hr(Nx):aF;function s4(u){return u===n}function l4(u){return dn(u)&&tr(u)==_t}function c4(u){return dn(u)&&cr(u)==wt}var u4=Md(Hg),d4=Md(function(u,h){return u<=h});function _S(u){if(!u)return[];if(xr(u))return zd(u)?Bo(u):_r(u);if(Cc&&u[Cc])return W5(u[Cc]());var h=tr(u),w=h==ie?Eg:h==Ae?sd:gl;return w(u)}function zi(u){if(!u)return u===0?u:0;if(u=vo(u),u===G||u===-G){var h=u<0?-1:1;return h*Z}return u===u?u:0}function rt(u){var h=zi(u),w=h%1;return h===h?w?h-w:h:0}function xS(u){return u?is(rt(u),0,se):0}function vo(u){if(typeof u=="number")return u;if(zr(u))return X;if(rn(u)){var h=typeof u.valueOf=="function"?u.valueOf():u;u=rn(h)?h+"":h}if(typeof u!="string")return u===0?u:+u;u=$x(u);var w=so.test(u);return w||un.test(u)?T5(u.slice(2),w?2:8):Oi.test(u)?X:+u}function CS(u){return si(u,Cr(u))}function p4(u){return u?is(rt(u),-K,K):u===0?u:0}function Ot(u){return u==null?"":$r(u)}var h4=dl(function(u,h){if(Ic(h)||xr(h)){si(h,Ln(h),u);return}for(var w in h)Mt.call(h,w)&&Ac(u,w,h[w])}),SS=dl(function(u,h){si(h,Cr(h),u)}),Wd=dl(function(u,h,w,M){si(h,Cr(h),u,M)}),f4=dl(function(u,h,w,M){si(h,Ln(h),u,M)}),g4=Bi(Pg);function m4(u,h){var w=ul(u);return h==null?w:nC(w,h)}var v4=st(function(u,h){u=Bt(u);var w=-1,M=h.length,L=M>2?h[2]:n;for(L&&ur(h[0],h[1],L)&&(M=1);++w<M;)for(var V=h[w],ne=Cr(V),ae=-1,ce=ne.length;++ae<ce;){var xe=ne[ae],Ce=u[xe];(Ce===n||$o(Ce,sl[xe])&&!Mt.call(u,xe))&&(u[xe]=V[xe])}return u}),b4=st(function(u){return u.push(n,$C),Br(kS,n,u)});function y4(u,h){return jx(u,qe(h,3),ai)}function w4(u,h){return jx(u,qe(h,3),Ng)}function _4(u,h){return u==null?u:Ig(u,qe(h,3),Cr)}function x4(u,h){return u==null?u:sC(u,qe(h,3),Cr)}function C4(u,h){return u&&ai(u,qe(h,3))}function S4(u,h){return u&&Ng(u,qe(h,3))}function k4(u){return u==null?[]:Sd(u,Ln(u))}function T4(u){return u==null?[]:Sd(u,Cr(u))}function hm(u,h,w){var M=u==null?n:as(u,h);return M===n?w:M}function E4(u,h){return u!=null&&UC(u,h,J3)}function fm(u,h){return u!=null&&UC(u,h,Z3)}var A4=LC(function(u,h,w){h!=null&&typeof h.toString!="function"&&(h=dd.call(h)),u[h]=w},mm(Sr)),O4=LC(function(u,h,w){h!=null&&typeof h.toString!="function"&&(h=dd.call(h)),Mt.call(u,h)?u[h].push(w):u[h]=[w]},qe),R4=st(Rc);function Ln(u){return xr(u)?eC(u):Bg(u)}function Cr(u){return xr(u)?eC(u,!0):sF(u)}function D4(u,h){var w={};return h=qe(h,3),ai(u,function(M,L,V){ji(w,h(M,L,V),M)}),w}function M4(u,h){var w={};return h=qe(h,3),ai(u,function(M,L,V){ji(w,L,h(M,L,V))}),w}var P4=dl(function(u,h,w){kd(u,h,w)}),kS=dl(function(u,h,w,M){kd(u,h,w,M)}),I4=Bi(function(u,h){var w={};if(u==null)return w;var M=!1;h=Kt(h,function(V){return V=da(V,u),M||(M=V.length>1),V}),si(u,Xg(u),w),M&&(w=fo(w,p|f|v,AF));for(var L=h.length;L--;)qg(w,h[L]);return w});function N4(u,h){return TS(u,Hd(qe(h)))}var L4=Bi(function(u,h){return u==null?{}:cF(u,h)});function TS(u,h){if(u==null)return{};var w=Kt(Xg(u),function(M){return[M]});return h=qe(h),vC(u,w,function(M,L){return h(M,L[0])})}function j4(u,h,w){h=da(h,u);var M=-1,L=h.length;for(L||(L=1,u=n);++M<L;){var V=u==null?n:u[li(h[M])];V===n&&(M=L,V=w),u=$i(V)?V.call(u):V}return u}function F4(u,h,w){return u==null?u:Mc(u,h,w)}function B4(u,h,w,M){return M=typeof M=="function"?M:n,u==null?u:Mc(u,h,w,M)}var ES=BC(Ln),AS=BC(Cr);function H4(u,h,w){var M=nt(u),L=M||ha(u)||fl(u);if(h=qe(h,4),w==null){var V=u&&u.constructor;L?w=M?new V:[]:rn(u)?w=$i(V)?ul(fd(u)):{}:w={}}return(L?uo:ai)(u,function(ne,ae,ce){return h(w,ne,ae,ce)}),w}function $4(u,h){return u==null?!0:qg(u,h)}function z4(u,h,w){return u==null?u:xC(u,h,Gg(w))}function W4(u,h,w,M){return M=typeof M=="function"?M:n,u==null?u:xC(u,h,Gg(w),M)}function gl(u){return u==null?[]:Tg(u,Ln(u))}function U4(u){return u==null?[]:Tg(u,Cr(u))}function q4(u,h,w){return w===n&&(w=h,h=n),w!==n&&(w=vo(w),w=w===w?w:0),h!==n&&(h=vo(h),h=h===h?h:0),is(vo(u),h,w)}function Y4(u,h,w){return h=zi(h),w===n?(w=h,h=0):w=zi(w),u=vo(u),K3(u,h,w)}function V4(u,h,w){if(w&&typeof w!="boolean"&&ur(u,h,w)&&(h=w=n),w===n&&(typeof h=="boolean"?(w=h,h=n):typeof u=="boolean"&&(w=u,u=n)),u===n&&h===n?(u=0,h=1):(u=zi(u),h===n?(h=u,u=0):h=zi(h)),u>h){var M=u;u=h,h=M}if(w||u%1||h%1){var L=Kx();return er(u+L*(h-u+k5("1e-"+((L+"").length-1))),h)}return zg(u,h)}var G4=pl(function(u,h,w){return h=h.toLowerCase(),u+(w?OS(h):h)});function OS(u){return gm(Ot(u).toLowerCase())}function RS(u){return u=Ot(u),u&&u.replace(Xn,F5).replace(dt,"")}function Q4(u,h,w){u=Ot(u),h=$r(h);var M=u.length;w=w===n?M:is(rt(w),0,M);var L=w;return w-=h.length,w>=0&&u.slice(w,L)==h}function J4(u){return u=Ot(u),u&&Yt.test(u)?u.replace(Xo,B5):u}function Z4(u){return u=Ot(u),u&&cn.test(u)?u.replace(jr,"\\$&"):u}var K4=pl(function(u,h,w){return u+(w?"-":"")+h.toLowerCase()}),X4=pl(function(u,h,w){return u+(w?" ":"")+h.toLowerCase()}),eH=PC("toLowerCase");function tH(u,h,w){u=Ot(u),h=rt(h);var M=h?il(u):0;if(!h||M>=h)return u;var L=(h-M)/2;return Dd(bd(L),w)+u+Dd(vd(L),w)}function nH(u,h,w){u=Ot(u),h=rt(h);var M=h?il(u):0;return h&&M<h?u+Dd(h-M,w):u}function rH(u,h,w){u=Ot(u),h=rt(h);var M=h?il(u):0;return h&&M<h?Dd(h-M,w)+u:u}function oH(u,h,w){return w||h==null?h=0:h&&(h=+h),d3(Ot(u).replace(mn,""),h||0)}function iH(u,h,w){return(w?ur(u,h,w):h===n)?h=1:h=rt(h),Wg(Ot(u),h)}function aH(){var u=arguments,h=Ot(u[0]);return u.length<3?h:h.replace(u[1],u[2])}var sH=pl(function(u,h,w){return u+(w?"_":"")+h.toLowerCase()});function lH(u,h,w){return w&&typeof w!="number"&&ur(u,h,w)&&(h=w=n),w=w===n?se:w>>>0,w?(u=Ot(u),u&&(typeof h=="string"||h!=null&&!pm(h))&&(h=$r(h),!h&&ol(u))?pa(Bo(u),0,w):u.split(h,w)):[]}var cH=pl(function(u,h,w){return u+(w?" ":"")+gm(h)});function uH(u,h,w){return u=Ot(u),w=w==null?0:is(rt(w),0,u.length),h=$r(h),u.slice(w,w+h.length)==h}function dH(u,h,w){var M=U.templateSettings;w&&ur(u,h,w)&&(h=n),u=Ot(u),h=Wd({},h,M,HC);var L=Wd({},h.imports,M.imports,HC),V=Ln(L),ne=Tg(L,V),ae,ce,xe=0,Ce=h.interpolate||ta,ke="__p += '",Re=Ag((h.escape||ta).source+"|"+Ce.source+"|"+(Ce===Po?No:ta).source+"|"+(h.evaluate||ta).source+"|$","g"),He="//# sourceURL="+(Mt.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++od+"]")+`
|
|
405
|
+
`;u.replace(Re,function(Ve,ut,ht,Wr,dr,Ur){return ht||(ht=Wr),ke+=u.slice(xe,Ur).replace(Ws,H5),ut&&(ae=!0,ke+=`' +
|
|
406
|
+
__e(`+ut+`) +
|
|
407
|
+
'`),dr&&(ce=!0,ke+=`';
|
|
408
|
+
`+dr+`;
|
|
409
|
+
__p += '`),ht&&(ke+=`' +
|
|
410
|
+
((__t = (`+ht+`)) == null ? '' : __t) +
|
|
411
|
+
'`),xe=Ur+Ve.length,Ve}),ke+=`';
|
|
412
|
+
`;var Ye=Mt.call(h,"variable")&&h.variable;if(!Ye)ke=`with (obj) {
|
|
413
|
+
`+ke+`
|
|
414
|
+
}
|
|
415
|
+
`;else if(ao.test(Ye))throw new et(s);ke=(ce?ke.replace(ro,""):ke).replace(Nr,"$1").replace(zn,"$1;"),ke="function("+(Ye||"obj")+`) {
|
|
416
|
+
`+(Ye?"":`obj || (obj = {});
|
|
417
|
+
`)+"var __t, __p = ''"+(ae?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
|
|
418
|
+
function print() { __p += __j.call(arguments, '') }
|
|
419
|
+
`:`;
|
|
420
|
+
`)+ke+`return __p
|
|
421
|
+
}`;var it=MS(function(){return xt(V,He+"return "+ke).apply(n,ne)});if(it.source=ke,dm(it))throw it;return it}function pH(u){return Ot(u).toLowerCase()}function hH(u){return Ot(u).toUpperCase()}function fH(u,h,w){if(u=Ot(u),u&&(w||h===n))return $x(u);if(!u||!(h=$r(h)))return u;var M=Bo(u),L=Bo(h),V=zx(M,L),ne=Wx(M,L)+1;return pa(M,V,ne).join("")}function gH(u,h,w){if(u=Ot(u),u&&(w||h===n))return u.slice(0,qx(u)+1);if(!u||!(h=$r(h)))return u;var M=Bo(u),L=Wx(M,Bo(h))+1;return pa(M,0,L).join("")}function mH(u,h,w){if(u=Ot(u),u&&(w||h===n))return u.replace(mn,"");if(!u||!(h=$r(h)))return u;var M=Bo(u),L=zx(M,Bo(h));return pa(M,L).join("")}function vH(u,h){var w=P,M=I;if(rn(h)){var L="separator"in h?h.separator:L;w="length"in h?rt(h.length):w,M="omission"in h?$r(h.omission):M}u=Ot(u);var V=u.length;if(ol(u)){var ne=Bo(u);V=ne.length}if(w>=V)return u;var ae=w-il(M);if(ae<1)return M;var ce=ne?pa(ne,0,ae).join(""):u.slice(0,ae);if(L===n)return ce+M;if(ne&&(ae+=ce.length-ae),pm(L)){if(u.slice(ae).search(L)){var xe,Ce=ce;for(L.global||(L=Ag(L.source,Ot(Ai.exec(L))+"g")),L.lastIndex=0;xe=L.exec(Ce);)var ke=xe.index;ce=ce.slice(0,ke===n?ae:ke)}}else if(u.indexOf($r(L),ae)!=ae){var Re=ce.lastIndexOf(L);Re>-1&&(ce=ce.slice(0,Re))}return ce+M}function bH(u){return u=Ot(u),u&&br.test(u)?u.replace(Ko,V5):u}var yH=pl(function(u,h,w){return u+(w?" ":"")+h.toUpperCase()}),gm=PC("toUpperCase");function DS(u,h,w){return u=Ot(u),h=w?n:h,h===n?z5(u)?J5(u):P5(u):u.match(h)||[]}var MS=st(function(u,h){try{return Br(u,n,h)}catch(w){return dm(w)?w:new et(w)}}),wH=Bi(function(u,h){return uo(h,function(w){w=li(w),ji(u,w,cm(u[w],u))}),u});function _H(u){var h=u==null?0:u.length,w=qe();return u=h?Kt(u,function(M){if(typeof M[1]!="function")throw new po(a);return[w(M[0]),M[1]]}):[],st(function(M){for(var L=-1;++L<h;){var V=u[L];if(Br(V[0],this,M))return Br(V[1],this,M)}})}function xH(u){return V3(fo(u,p))}function mm(u){return function(){return u}}function CH(u,h){return u==null||u!==u?h:u}var SH=NC(),kH=NC(!0);function Sr(u){return u}function vm(u){return dC(typeof u=="function"?u:fo(u,p))}function TH(u){return hC(fo(u,p))}function EH(u,h){return fC(u,fo(h,p))}var AH=st(function(u,h){return function(w){return Rc(w,u,h)}}),OH=st(function(u,h){return function(w){return Rc(u,w,h)}});function bm(u,h,w){var M=Ln(h),L=Sd(h,M);w==null&&!(rn(h)&&(L.length||!M.length))&&(w=h,h=u,u=this,L=Sd(h,Ln(h)));var V=!(rn(w)&&"chain"in w)||!!w.chain,ne=$i(u);return uo(L,function(ae){var ce=h[ae];u[ae]=ce,ne&&(u.prototype[ae]=function(){var xe=this.__chain__;if(V||xe){var Ce=u(this.__wrapped__),ke=Ce.__actions__=_r(this.__actions__);return ke.push({func:ce,args:arguments,thisArg:u}),Ce.__chain__=xe,Ce}return ce.apply(u,aa([this.value()],arguments))})}),u}function RH(){return Wn._===this&&(Wn._=n3),this}function ym(){}function DH(u){return u=rt(u),st(function(h){return gC(h,u)})}var MH=Jg(Kt),PH=Jg(Lx),IH=Jg(_g);function PS(u){return rm(u)?xg(li(u)):uF(u)}function NH(u){return function(h){return u==null?n:as(u,h)}}var LH=jC(),jH=jC(!0);function wm(){return[]}function _m(){return!1}function FH(){return{}}function BH(){return""}function HH(){return!0}function $H(u,h){if(u=rt(u),u<1||u>K)return[];var w=se,M=er(u,se);h=qe(h),u-=se;for(var L=kg(M,h);++w<u;)h(w);return L}function zH(u){return nt(u)?Kt(u,li):zr(u)?[u]:_r(XC(Ot(u)))}function WH(u){var h=++e3;return Ot(u)+h}var UH=Rd(function(u,h){return u+h},0),qH=Zg("ceil"),YH=Rd(function(u,h){return u/h},1),VH=Zg("floor");function GH(u){return u&&u.length?Cd(u,Sr,Lg):n}function QH(u,h){return u&&u.length?Cd(u,qe(h,2),Lg):n}function JH(u){return Bx(u,Sr)}function ZH(u,h){return Bx(u,qe(h,2))}function KH(u){return u&&u.length?Cd(u,Sr,Hg):n}function XH(u,h){return u&&u.length?Cd(u,qe(h,2),Hg):n}var e$=Rd(function(u,h){return u*h},1),t$=Zg("round"),n$=Rd(function(u,h){return u-h},0);function r$(u){return u&&u.length?Sg(u,Sr):0}function o$(u,h){return u&&u.length?Sg(u,qe(h,2)):0}return U.after=TB,U.ary=uS,U.assign=h4,U.assignIn=SS,U.assignInWith=Wd,U.assignWith=f4,U.at=g4,U.before=dS,U.bind=cm,U.bindAll=wH,U.bindKey=pS,U.castArray=FB,U.chain=sS,U.chunk=VF,U.compact=GF,U.concat=QF,U.cond=_H,U.conforms=xH,U.constant=mm,U.countBy=rB,U.create=m4,U.curry=hS,U.curryRight=fS,U.debounce=gS,U.defaults=v4,U.defaultsDeep=b4,U.defer=EB,U.delay=AB,U.difference=JF,U.differenceBy=ZF,U.differenceWith=KF,U.drop=XF,U.dropRight=e6,U.dropRightWhile=t6,U.dropWhile=n6,U.fill=r6,U.filter=iB,U.flatMap=lB,U.flatMapDeep=cB,U.flatMapDepth=uB,U.flatten=rS,U.flattenDeep=o6,U.flattenDepth=i6,U.flip=OB,U.flow=SH,U.flowRight=kH,U.fromPairs=a6,U.functions=k4,U.functionsIn=T4,U.groupBy=dB,U.initial=l6,U.intersection=c6,U.intersectionBy=u6,U.intersectionWith=d6,U.invert=A4,U.invertBy=O4,U.invokeMap=hB,U.iteratee=vm,U.keyBy=fB,U.keys=Ln,U.keysIn=Cr,U.map=jd,U.mapKeys=D4,U.mapValues=M4,U.matches=TH,U.matchesProperty=EH,U.memoize=Bd,U.merge=P4,U.mergeWith=kS,U.method=AH,U.methodOf=OH,U.mixin=bm,U.negate=Hd,U.nthArg=DH,U.omit=I4,U.omitBy=N4,U.once=RB,U.orderBy=gB,U.over=MH,U.overArgs=DB,U.overEvery=PH,U.overSome=IH,U.partial=um,U.partialRight=mS,U.partition=mB,U.pick=L4,U.pickBy=TS,U.property=PS,U.propertyOf=NH,U.pull=g6,U.pullAll=iS,U.pullAllBy=m6,U.pullAllWith=v6,U.pullAt=b6,U.range=LH,U.rangeRight=jH,U.rearg=MB,U.reject=yB,U.remove=y6,U.rest=PB,U.reverse=sm,U.sampleSize=_B,U.set=F4,U.setWith=B4,U.shuffle=xB,U.slice=w6,U.sortBy=kB,U.sortedUniq=E6,U.sortedUniqBy=A6,U.split=lH,U.spread=IB,U.tail=O6,U.take=R6,U.takeRight=D6,U.takeRightWhile=M6,U.takeWhile=P6,U.tap=G6,U.throttle=NB,U.thru=Ld,U.toArray=_S,U.toPairs=ES,U.toPairsIn=AS,U.toPath=zH,U.toPlainObject=CS,U.transform=H4,U.unary=LB,U.union=I6,U.unionBy=N6,U.unionWith=L6,U.uniq=j6,U.uniqBy=F6,U.uniqWith=B6,U.unset=$4,U.unzip=lm,U.unzipWith=aS,U.update=z4,U.updateWith=W4,U.values=gl,U.valuesIn=U4,U.without=H6,U.words=DS,U.wrap=jB,U.xor=$6,U.xorBy=z6,U.xorWith=W6,U.zip=U6,U.zipObject=q6,U.zipObjectDeep=Y6,U.zipWith=V6,U.entries=ES,U.entriesIn=AS,U.extend=SS,U.extendWith=Wd,bm(U,U),U.add=UH,U.attempt=MS,U.camelCase=G4,U.capitalize=OS,U.ceil=qH,U.clamp=q4,U.clone=BB,U.cloneDeep=$B,U.cloneDeepWith=zB,U.cloneWith=HB,U.conformsTo=WB,U.deburr=RS,U.defaultTo=CH,U.divide=YH,U.endsWith=Q4,U.eq=$o,U.escape=J4,U.escapeRegExp=Z4,U.every=oB,U.find=aB,U.findIndex=tS,U.findKey=y4,U.findLast=sB,U.findLastIndex=nS,U.findLastKey=w4,U.floor=VH,U.forEach=lS,U.forEachRight=cS,U.forIn=_4,U.forInRight=x4,U.forOwn=C4,U.forOwnRight=S4,U.get=hm,U.gt=UB,U.gte=qB,U.has=E4,U.hasIn=fm,U.head=oS,U.identity=Sr,U.includes=pB,U.indexOf=s6,U.inRange=Y4,U.invoke=R4,U.isArguments=cs,U.isArray=nt,U.isArrayBuffer=YB,U.isArrayLike=xr,U.isArrayLikeObject=vn,U.isBoolean=VB,U.isBuffer=ha,U.isDate=GB,U.isElement=QB,U.isEmpty=JB,U.isEqual=ZB,U.isEqualWith=KB,U.isError=dm,U.isFinite=XB,U.isFunction=$i,U.isInteger=vS,U.isLength=$d,U.isMap=bS,U.isMatch=e4,U.isMatchWith=t4,U.isNaN=n4,U.isNative=r4,U.isNil=i4,U.isNull=o4,U.isNumber=yS,U.isObject=rn,U.isObjectLike=dn,U.isPlainObject=Lc,U.isRegExp=pm,U.isSafeInteger=a4,U.isSet=wS,U.isString=zd,U.isSymbol=zr,U.isTypedArray=fl,U.isUndefined=s4,U.isWeakMap=l4,U.isWeakSet=c4,U.join=p6,U.kebabCase=K4,U.last=mo,U.lastIndexOf=h6,U.lowerCase=X4,U.lowerFirst=eH,U.lt=u4,U.lte=d4,U.max=GH,U.maxBy=QH,U.mean=JH,U.meanBy=ZH,U.min=KH,U.minBy=XH,U.stubArray=wm,U.stubFalse=_m,U.stubObject=FH,U.stubString=BH,U.stubTrue=HH,U.multiply=e$,U.nth=f6,U.noConflict=RH,U.noop=ym,U.now=Fd,U.pad=tH,U.padEnd=nH,U.padStart=rH,U.parseInt=oH,U.random=V4,U.reduce=vB,U.reduceRight=bB,U.repeat=iH,U.replace=aH,U.result=j4,U.round=t$,U.runInContext=le,U.sample=wB,U.size=CB,U.snakeCase=sH,U.some=SB,U.sortedIndex=_6,U.sortedIndexBy=x6,U.sortedIndexOf=C6,U.sortedLastIndex=S6,U.sortedLastIndexBy=k6,U.sortedLastIndexOf=T6,U.startCase=cH,U.startsWith=uH,U.subtract=n$,U.sum=r$,U.sumBy=o$,U.template=dH,U.times=$H,U.toFinite=zi,U.toInteger=rt,U.toLength=xS,U.toLower=pH,U.toNumber=vo,U.toSafeInteger=p4,U.toString=Ot,U.toUpper=hH,U.trim=fH,U.trimEnd=gH,U.trimStart=mH,U.truncate=vH,U.unescape=bH,U.uniqueId=WH,U.upperCase=yH,U.upperFirst=gm,U.each=lS,U.eachRight=cS,U.first=oS,bm(U,function(){var u={};return ai(U,function(h,w){Mt.call(U.prototype,w)||(u[w]=h)}),u}(),{chain:!1}),U.VERSION=r,uo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){U[u].placeholder=U}),uo(["drop","take"],function(u,h){pt.prototype[u]=function(w){w=w===n?1:Nn(rt(w),0);var M=this.__filtered__&&!h?new pt(this):this.clone();return M.__filtered__?M.__takeCount__=er(w,M.__takeCount__):M.__views__.push({size:er(w,se),type:u+(M.__dir__<0?"Right":"")}),M},pt.prototype[u+"Right"]=function(w){return this.reverse()[u](w).reverse()}}),uo(["filter","map","takeWhile"],function(u,h){var w=h+1,M=w==F||w==$;pt.prototype[u]=function(L){var V=this.clone();return V.__iteratees__.push({iteratee:qe(L,3),type:w}),V.__filtered__=V.__filtered__||M,V}}),uo(["head","last"],function(u,h){var w="take"+(h?"Right":"");pt.prototype[u]=function(){return this[w](1).value()[0]}}),uo(["initial","tail"],function(u,h){var w="drop"+(h?"":"Right");pt.prototype[u]=function(){return this.__filtered__?new pt(this):this[w](1)}}),pt.prototype.compact=function(){return this.filter(Sr)},pt.prototype.find=function(u){return this.filter(u).head()},pt.prototype.findLast=function(u){return this.reverse().find(u)},pt.prototype.invokeMap=st(function(u,h){return typeof u=="function"?new pt(this):this.map(function(w){return Rc(w,u,h)})}),pt.prototype.reject=function(u){return this.filter(Hd(qe(u)))},pt.prototype.slice=function(u,h){u=rt(u);var w=this;return w.__filtered__&&(u>0||h<0)?new pt(w):(u<0?w=w.takeRight(-u):u&&(w=w.drop(u)),h!==n&&(h=rt(h),w=h<0?w.dropRight(-h):w.take(h-u)),w)},pt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},pt.prototype.toArray=function(){return this.take(se)},ai(pt.prototype,function(u,h){var w=/^(?:filter|find|map|reject)|While$/.test(h),M=/^(?:head|last)$/.test(h),L=U[M?"take"+(h=="last"?"Right":""):h],V=M||/^find/.test(h);L&&(U.prototype[h]=function(){var ne=this.__wrapped__,ae=M?[1]:arguments,ce=ne instanceof pt,xe=ae[0],Ce=ce||nt(ne),ke=function(ut){var ht=L.apply(U,aa([ut],ae));return M&&Re?ht[0]:ht};Ce&&w&&typeof xe=="function"&&xe.length!=1&&(ce=Ce=!1);var Re=this.__chain__,He=!!this.__actions__.length,Ye=V&&!Re,it=ce&&!He;if(!V&&Ce){ne=it?ne:new pt(this);var Ve=u.apply(ne,ae);return Ve.__actions__.push({func:Ld,args:[ke],thisArg:n}),new ho(Ve,Re)}return Ye&&it?u.apply(this,ae):(Ve=this.thru(ke),Ye?M?Ve.value()[0]:Ve.value():Ve)})}),uo(["pop","push","shift","sort","splice","unshift"],function(u){var h=ld[u],w=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",M=/^(?:pop|shift)$/.test(u);U.prototype[u]=function(){var L=arguments;if(M&&!this.__chain__){var V=this.value();return h.apply(nt(V)?V:[],L)}return this[w](function(ne){return h.apply(nt(ne)?ne:[],L)})}}),ai(pt.prototype,function(u,h){var w=U[h];if(w){var M=w.name+"";Mt.call(cl,M)||(cl[M]=[]),cl[M].push({name:h,func:w})}}),cl[Od(n,C).name]=[{name:"wrapper",func:n}],pt.prototype.clone=b3,pt.prototype.reverse=y3,pt.prototype.value=w3,U.prototype.at=Q6,U.prototype.chain=J6,U.prototype.commit=Z6,U.prototype.next=K6,U.prototype.plant=eB,U.prototype.reverse=tB,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=nB,U.prototype.first=U.prototype.head,Cc&&(U.prototype[Cc]=X6),U},al=Z5();ts?((ts.exports=al)._=al,vg._=al):Wn._=al}).call(m.commonjsGlobal)})(w1,w1.exports);var z0=w1.exports;function Qle(e,t,n){var r;return n(e,function(o,i,a){if(t(o,i,a))return r=i,!1}),r}var Jle=Qle,Zle=Jle,Kle=m._baseForOwn,Xle=m._baseIteratee;function ece(e,t){return Zle(e,Xle(t),Kle)}var tce=ece;const nce=m.getDefaultExportFromCjs(tce);function ig(e,t){var c,l;const n="formula"in e;let r;if(e.sort&&(r=e.sort==="asc"?m.Sort.Ascending:m.Sort.Descending),n){const d=m.mapValues((c=e.context)!=null?c:{},p=>typeof p=="string"?p:p&&ig(p));return new m.DimensionalCalculatedMeasure(e.title,e.formula,d,void 0,void 0,r)}const o=!!e.agg,i=e.datatype===m.DataType.DATETIME,a=e.datatype===m.DataType.NUMERIC?m.MetadataTypes.NumericAttribute:m.MetadataTypes.TextAttribute,s=i?new m.DimensionalLevelAttribute(e.title,e.dim,m.DimensionalLevelAttribute.translateJaqlToGranularity(e),(l=t==null?void 0:t.mask)==null?void 0:l[e.level],void 0,r):new m.DimensionalAttribute(e.title,e.dim,a,void 0,r);return o?new m.DimensionalBaseMeasure(e.title,s,m.DimensionalBaseMeasure.aggregationFromJAQL(e.agg||""),void 0,void 0,r):"filter"in e?m.createFilterFromJaql(e):s}function rce(e){return e.percent||e.type==="percent"?"Percent":e.currency?"Currency":"Numbers"}function oce(e){return e.decimals!==void 0&&e.decimals!=="auto"?typeof e.decimals=="string"?Number.parseFloat(e.decimals):e.decimals:"auto"}function ice(e){var r,o,i,a,s,c,l,d;const t=e.jaql.datatype==="numeric"||"context"in e.jaql,n=(r=e.format)==null?void 0:r.mask;return t&&n?{decimalScale:oce(n),kilo:(o=n.abbreviations)==null?void 0:o.k,million:(i=n.abbreviations)==null?void 0:i.m,billion:(a=n.abbreviations)==null?void 0:a.b,trillion:(s=n.abbreviations)==null?void 0:s.t,thousandSeparator:(c=n.number)==null?void 0:c.separated,prefix:((l=n.currency)==null?void 0:l.position)===m.CurrencyPosition.PRE,symbol:(d=n.currency)==null?void 0:d.symbol,name:rce(n)}:null}function lc(e,t){var a,s,c,l,d;const n=ig(e.jaql,e.format),r=m.getSortType((a=e.jaql.sort)!=null?a:e.categoriesSorting),o=ice(e),i=(s=e.format)==null?void 0:s.subtotal;if(m.MetadataTypes.isMeasure(n)){const p=m.createValueColorOptions((c=e.format)==null?void 0:c.color,t),f=e.y2,v=e.singleSeriesType,b="subtotalAgg"in e.jaql&&e.jaql.subtotalAgg,_=(l=e.format)==null?void 0:l.databars;return he(he(he(he(he(he(he({column:n},p&&{color:p}),f&&{showOnRightAxis:f}),r&&{sortType:r}),v&&{chartType:v}),o&&{numberFormatConfig:o}),b&&{totalsCalculation:b}),_&&{dataBars:_})}return he(he(he({column:n,isColored:(d=e.isColored)!=null?d:!1},r&&{sortType:r}),o&&{numberFormatConfig:o}),i&&{includeSubTotals:i})}const ace=(e,t)=>{const n={};return e.forEach(r=>{r.name!=="filters"&&(n[r.name.toLowerCase()]=Jt(e,r.name,t))}),n};function _1(e,t,n){return m.getEnabledPanelItems(e,t).map(m.getRootPanelItem).map(n)}function Jt(e,t,n){return _1(e,t,r=>lc(r,n))}function sce(e,t,n){var d,p;const o=["chart/line","chart/area"].includes(t)?"x-axis":"categories",i=Jt(e,o,n),a=Jt(e,"values",n),s=Jt(e,"break by",n),c=(p=(d=m.getEnabledPanelItems(e,"break by")[0])==null?void 0:d.format)==null?void 0:p.members,l=c&&m.createValueToColorMap(c);return he({category:i,value:a,breakBy:s},l&&{seriesToColorMap:l})}function lce(e,t,n){var c,l,d,p;const r=Jt(t,"categories",n),o=Jt(t,"values",n),i=Jt(t,"size",n);let a,s;return e==="sunburst"?s=m.createValueToColorMultiColumnsMap(m.getEnabledPanelItems(t,"categories")):(a=(l=(c=m.getEnabledPanelItems(t,"categories")[0])==null?void 0:c.format)==null?void 0:l.members,m.getEnabledPanelItems(t,"color").length&&(a=(p=(d=m.getEnabledPanelItems(t,"color")[0])==null?void 0:d.format)==null?void 0:p.members),s=a&&m.createValueToColorMap(a)),he({category:r,value:[...o,...i]},s&&{seriesToColorMap:s})}function cce(e,t){var l,d;const[n]=Jt(e,"x-axis",t),[r]=Jt(e,"y-axis",t),[o]=Jt(e,"point",t),[i]=Jt(e,"Break By / Color",t),[a]=Jt(e,"size",t),s=(d=(l=m.getEnabledPanelItems(e,"Break By / Color")[0])==null?void 0:l.format)==null?void 0:d.members,c=s&&m.createValueToColorMap(s);return he({x:n,y:r,breakByPoint:o,breakByColor:i,size:a},c&&{seriesToColorMap:c})}function uce(e,t){const n=Jt(e,"value",t),r=Jt(e,"secondary",t),o=Jt(e,"min",t),i=Jt(e,"max",t);return{value:n,secondary:r,min:o,max:i}}function dce(e,t){return{columns:Jt(e,"columns",t)}}function pce(e,t,n){let r;const o={},i=Jt(e,"columns",n),a=_1(e,"values",(c,l)=>{const{field:d,jaql:p}=c,{sortDetails:f}=p;return f&&(r=f),d&&(o[d.index]=l),lc(c,n)});return{rows:_1(e,"rows",(c,l,d)=>{var _;const p=l===d.length-1;let{sortDetails:f}=c==null?void 0:c.jaql;const v=lc(c,n);v.column=v.column.sort(m.Sort.None),p&&r&&(f=r);const b=(f==null?void 0:f.field)!==((_=c.field)==null?void 0:_.index);return f&&(v.sortType=he({direction:m.getSortType(f.dir)},b&&{by:{valuesIndex:o[f.field],columnsMembersPath:Object.values(f.measurePath||{})}})),v}),columns:i,values:a,grandTotals:{rows:t.rowsGrandTotal,columns:t.columnsGrandTotal}}}function hce(e){const t={"whisker/iqr":"iqr","whisker/extremums":"extremums","whisker/deviation":"standardDeviation"},n=nce(e.whisker,r=>r);return t[n]}function fce(e,t,n){const r=Jt(e,"category",n),o=Jt(e,"value",n),i=hce(t),a=t.outliers.enabled;return{category:r,value:o,boxType:i,outliersEnabled:a}}function gce(e,t){return m.getEnabledPanelItems(e,"geo").map(m.getRootPanelItem).map(n=>{const r=lc(n,t);return"geoLevel"in n?Te(he({},r),{level:n.geoLevel}):r})}function mce(e,t){const n=gce(e,t),r=Jt(e,"size",t)[0],o=Jt(e,"color",t)[0],i=Jt(e,"details",t)[0];return{geo:n,size:r,colorBy:o,details:i}}function vce(e,t){const n=[Jt(e,"geo",t)[0]],r=[Jt(e,"color",t)[0]];return{geo:n,color:r}}function bce(e,t,n,r){if(yce(e))return sce(t,e,r);if(wce(e))return lce(e,t,r);if(e==="chart/scatter")return cce(t,r);if(e==="indicator")return uce(t,r);if(m.isTableWidget(e))return dce(t,r);if(m.isPivotWidget(e))return pce(t,n,r);if(e==="chart/boxplot")return fce(t,n,r);if(e==="map/scatter")return mce(t,r);if(e==="map/area")return vce(t,r);throw new m.TranslatableError("errors.unsupportedWidgetType",{widgetType:e})}function yce(e){return["chart/line","chart/area","chart/bar","chart/column","chart/polar"].includes(e)}function wce(e){return["chart/pie","chart/funnel","treemap","sunburst"].includes(e)}const vj=e=>e!=null&&e.parent?[...vj(e.parent),lc(e).column]:[],bj=e=>{var t,n,r;if(e!=null&&e.parent&&e.through&&"filter"in e.through.jaql){const o=lc(e).column,{jaql:i,format:{mask:a}={}}=e.parent,s="level"in i&&i.level&&a&&a[i.level],c=(r=(n=(t=e.through.jaql.filter)==null?void 0:t.members)==null?void 0:n.map(s?l=>({categoryValue:l,categoryDisplayValue:m.applyDateFormat(m.parseISOWithDefaultUTCOffset(l),s)}):l=>({categoryValue:l})))!=null?r:[];return[...bj(e.parent),{nextDimension:o,points:c}]}return[]};function _ce(e){switch(e){case"chart/line":case"chart/area":return"x-axis";case"chart/boxplot":return"category";default:return"categories"}}const xce=(e,t)=>{const n=_ce(e),r=m.getEnabledPanelItems(t,n)[0],o=bj(r);return{drilldownDimensions:vj(r),drilldownSelections:o}};function gx(e){const a=e.filter,{filter:t}=a,n=qr(a,["filter"]),r=t&&"turnedOff"in t&&t.turnedOff;let o,i;return r?i=t:o=t,n.members&&n.members.length===0&&(n.all=!0),{filter:n,backgroundFilter:o,turnOffMembersFilter:i}}function Cce(e){const{filter:t,backgroundFilter:n,turnOffMembersFilter:r}=gx(e.jaql),o=[Te(he({},e),{jaql:Te(he({},e.jaql),{filter:he(he({},t),r&&{filter:r})})})];return n&&o.push(Te(he({},e),{jaql:Te(he({},e.jaql),{filter:n}),disabled:!1})),o}function Sce(e){const t=e.find(r=>r.name==="filters"),n=[];return t==null||t.items.forEach(r=>{n.push(...Cce(r).filter(({disabled:o})=>!o))}),n}function kce(e){return Sce(e).map(t=>m.createFilterFromJaql(t.jaql,t.instanceid))}function $s(e,t){const n=m.getChartSubtype(e);return he(he({},t),n&&{subtype:n})}function Yi(e){const{min:t,max:n}=e||{};return Te(he({},e),{min:typeof t=="number"?t:null,max:typeof n=="number"?n:null})}function Tce(e,t,n){var C,k,T,x,E,O,S,R,D,P;const r={xAxis:Yi(t.xAxis),yAxis:Yi(t.yAxis),y2Axis:Yi(t.y2Axis)},i=["chart/line","chart/area"].includes(e)?"x-axis":"categories",a=m.getEnabledPanelItems(n,i),s=m.getEnabledPanelItems(n,"values"),c=a.length===2;c&&(r.xAxis=Te(he({},r.xAxis),{title:(C=r.xAxis)==null?void 0:C.x2Title,x2Title:(k=r.xAxis)==null?void 0:k.title}));const l=!!((T=r.xAxis)!=null&&T.title&&"text"in r.xAxis.title),d=a[a.length-1];!l&&d&&(r.xAxis=Te(he({},r.xAxis),{title:Te(he({},(x=r.xAxis)==null?void 0:x.title),{text:d.jaql.title})}));const p=!!((E=r.xAxis)!=null&&E.x2Title&&"text"in r.xAxis.x2Title),f=a[0];!p&&c&&(r.xAxis=Te(he({},r.xAxis),{x2Title:Te(he({},(O=r.xAxis)==null?void 0:O.x2Title),{text:f.jaql.title})}));const v=!!((S=r.yAxis)!=null&&S.title&&"text"in r.yAxis.title),b=s.filter(I=>!I.y2);!v&&b.length===1&&(r.yAxis=Te(he({},r.yAxis),{title:Te(he({},(R=r.yAxis)==null?void 0:R.title),{text:b[0].jaql.title})}));const _=!!((D=r.y2Axis)!=null&&D.title&&"text"in r.y2Axis.title),y=s.filter(I=>I.y2);return!_&&y.length===1&&(r.y2Axis=Te(he({},r.y2Axis),{title:Te(he({},(P=r.y2Axis)==null?void 0:P.title),{text:y[0].jaql.title})})),r}function Ece(e,t){var i,a;const n={xAxis:Yi(e.categories),yAxis:Yi(e.axis)},r=m.getEnabledPanelItems(t,"categories")[0];return!!!((i=n.xAxis)!=null&&i.title&&"text"in n.xAxis.title)&&r&&(n.xAxis=Te(he({},n.xAxis),{title:Te(he({},(a=n.xAxis)==null?void 0:a.title),{text:r.jaql.title})})),n.yAxis=Te(he({},n.yAxis),{title:{enabled:!1}}),n}function Ace(e,t){var s,c,l,d;const n={xAxis:Yi(e.xAxis),yAxis:Yi(e.yAxis)},r=m.getEnabledPanelItems(t,"x-axis")[0],o=m.getEnabledPanelItems(t,"y-axis")[0];return!!!((s=n.xAxis)!=null&&s.title&&"text"in n.xAxis.title)&&r&&(n.xAxis=Te(he({},n.xAxis),{title:Te(he({},(c=n.xAxis)==null?void 0:c.title),{text:r.jaql.title})})),!!!((l=n.yAxis)!=null&&l.title&&"text"in n.yAxis.title)&&o&&(n.yAxis=Te(he({},n.yAxis),{title:Te(he({},(d=n.yAxis)==null?void 0:d.title),{text:o.jaql.title})})),n}function Oce(e,t){var s,c,l,d;const n={xAxis:Yi(e.xAxis),yAxis:Yi(e.yAxis)},r=m.getEnabledPanelItems(t,"category")[0],o=m.getEnabledPanelItems(t,"value")[0];return!!!((s=n.xAxis)!=null&&s.title&&"text"in n.xAxis.title)&&r&&(n.xAxis=Te(he({},n.xAxis),{title:Te(he({},(c=n.xAxis)==null?void 0:c.title),{text:r.jaql.title})})),!!!((l=n.yAxis)!=null&&l.title&&"text"in n.yAxis.title)&&o&&(n.yAxis=Te(he({},n.yAxis),{title:Te(he({},(d=n.yAxis)==null?void 0:d.title),{text:o.jaql.title})})),n}function Rce(e,t,n,r){return Te(he(he({},$s(t,n)),Tce(e,n,r)),{lineWidth:n.lineWidth,markers:n.markers})}function Dce(e,t,n){return he(he({},$s(e,t)),Ece(t,n))}function Mce(e,t,n){var r,o,i;return Te(he(he({},$s(e,t)),Ace(t,n)),{markerSize:{scatterDefaultSize:(r=t.markerSize)==null?void 0:r.defaultSize,scatterBubbleMinSize:(o=t.markerSize)==null?void 0:o.min,scatterBubbleMaxSize:(i=t.markerSize)==null?void 0:i.max}})}function Pce(e){return{header:{color:{enabled:e["colors/headers"]}},rows:{alternatingColor:{enabled:e["colors/rows"]}},columns:{alternatingColor:{enabled:e["colors/columns"]}}}}function Ice(e,t){return Te(he({},$s(e,t)),{funnelSize:t.size,funnelType:t.type,funnelDirection:t.direction,labels:t.labels,legend:t.legend})}const Nce=(e,t)=>{const n=m.getChartSubtype(e);return n==="indicator/gauge"?{subtype:n,skin:+t.skin}:t.subtype==="bar"?{subtype:n,numericSubtype:"numericBar"}:{subtype:n,numericSubtype:"numericSimple",skin:t.skin}};function Lce(e,t,n){var a,s,c,l,d,p,f,v;const r=Nce(e,t),o=(a=m.getEnabledPanelItems(n,"value")[0])==null?void 0:a.jaql.title,i=(s=m.getEnabledPanelItems(n,"secondary")[0])==null?void 0:s.jaql.title;return Te(he({},r),{indicatorComponents:{title:{shouldBeShown:((l=(c=t.components)==null?void 0:c.title)==null?void 0:l.enabled)||!1,text:o},secondaryTitle:{text:i||""},ticks:{shouldBeShown:((p=(d=t.components)==null?void 0:d.ticks)==null?void 0:p.enabled)||!1},labels:{shouldBeShown:((v=(f=t.components)==null?void 0:f.labels)==null?void 0:v.enabled)||!1}}})}function jce(e){var t,n,r,o;return{labels:{category:[{enabled:(t=e["title/1"])!=null?t:!0},{enabled:(n=e["title/2"])!=null?n:!0},{enabled:(r=e["title/3"])!=null?r:!0}]},tooltip:{mode:(o=e["tooltip/value"])==null||o?"value":"contribution"}}}function Fce(e){var t;return{legend:{enabled:e["legend/enabled"],position:e["legend/position"]},tooltip:{mode:(t=e["tooltip/value"])==null||t?"value":"contribution"}}}function Bce(e,t,n){return he(he({},$s(e,t)),Oce(t,n))}function Hce(e,t){return Te(he({},$s(e,t)),{markers:{fill:t.markers.fill,size:{defaultSize:t.markers.size.defaultSize,minSize:t.markers.size.min,maxSize:t.markers.size.max}}})}function $ce(e){let t;switch(e){case"areamap/world":t="world";break;case"areamap/usa":t="usa";break;default:throw new m.TranslatableError("errors.unsupportedWidgetType",{widgetSubtype:e})}return{mapType:t}}function zce(e){var t,n,r,o,i;return{rowsPerPage:parseInt(`${e.pageSize}`),isAutoHeight:e.automaticHeight,rowHeight:e.rowHeight,alternatingRowsColor:(t=e.colors)==null?void 0:t.rows,alternatingColumnsColor:(n=e.colors)==null?void 0:n.columns,headersColor:(r=e.colors)==null?void 0:r.headers,membersColor:(o=e.colors)==null?void 0:o.members,totalsColor:(i=e.colors)==null?void 0:i.totals}}function Wce(e,t,n,r){switch(e){case"chart/line":case"chart/area":case"chart/bar":case"chart/column":return Rce(e,t,n,r);case"chart/polar":return Dce(t,n,r);case"chart/scatter":return Mce(t,n,r);case"chart/funnel":return Ice(t,n);case"treemap":return jce(n);case"sunburst":return Fce(n);case"chart/pie":return $s(t,n);case"tablewidget":case"tablewidgetagg":return Pce(n);case"pivot":case"pivot2":return zce(n);case"indicator":return Lce(t,n,r);case"chart/boxplot":return Bce(t,n,r);case"map/scatter":return Hce(t,n);case"map/area":return $ce(t);default:throw new m.TranslatableError("errors.unsupportedWidgetType",{widgetType:e})}}class ag{constructor(t,n){Ct(this,"oid");Ct(this,"title");Ct(this,"description");Ct(this,"dataSource");Ct(this,"widgetType");Ct(this,"pluginType");Ct(this,"pluginPanels");Ct(this,"pluginStyles");Ct(this,"dataOptions");Ct(this,"styleOptions");Ct(this,"filters");Ct(this,"highlights");Ct(this,"chartType");Ct(this,"drilldownOptions");Ct(this,"componentDataPointClickHandler");Ct(this,"componentDataPointsSelectedHandler");this.oid=t.oid,this.title=t.title,this.dataSource=t.datasource.title,this.description=t.desc||"";const r=t.type;m.isSupportedWidgetType(r)?(this.widgetType=r,this.dataOptions=bce(this.widgetType,t.metadata.panels,t.style,n==null?void 0:n.palette.variantColors),this.styleOptions=Wce(r,t.subtype,t.style,t.metadata.panels)):(this.widgetType="plugin",this.pluginType=r,this.pluginPanels=t.metadata.panels,this.pluginStyles=t.style),this.drilldownOptions=xce(this.widgetType,t.metadata.panels),this.filters=kce(t.metadata.panels),this.chartType=m.isChartWidget(r)?m.getChartType(this.widgetType):void 0}getExecuteQueryParams(){if(m.isPivotWidget(this.widgetType))throw new W0("getExecuteQueryParams");let t,n,r,o;if(m.isTableWidget(this.widgetType)){const{attributes:i,measures:a}=m.getTableAttributesAndMeasures(m.translateTableDataOptions(this.dataOptions));t=i,n=a,r=m.DEFAULT_TABLE_ROWS_PER_PAGE*m.PAGES_BATCH_SIZE+1,o=!0}else{const{attributes:i,measures:a}=m.getTranslatedDataOptions(this.dataOptions,this.chartType);t=i,n=a}return{dataSource:this.dataSource,dimensions:t,measures:n,filters:this.filters,highlights:this.highlights,count:r,ungroup:o}}getExecutePivotQueryParams(){if(!m.isPivotWidget(this.widgetType))throw new m.TranslatableError("errors.widgetModel.onlyPivotWidgetSupported",{methodName:"getExecutePivotQueryParams"});const{rows:t,columns:n,values:r,grandTotals:o}=mj(m.translatePivotTableDataOptions(this.dataOptions));return{dataSource:this.dataSource,rows:t,columns:n,values:r,grandTotals:o,filters:this.filters,highlights:this.highlights}}getChartProps(){if(m.isPivotWidget(this.widgetType))throw new W0("getChartProps");return m.isTableWidget(this.widgetType)?he({chartType:this.chartType},this.getTableProps()):{chartType:this.chartType,dataOptions:this.dataOptions,styleOptions:this.styleOptions,dataSet:this.dataSource,filters:this.filters,highlights:this.highlights}}getTableProps(){if(!m.isTableWidget(this.widgetType))throw new m.TranslatableError("errors.widgetModel.onlyTableWidgetSupported",{methodName:"getTableProps"});return{dataOptions:this.dataOptions,styleOptions:this.styleOptions,dataSet:this.dataSource,filters:this.filters}}getPivotTableProps(){if(!m.isPivotWidget(this.widgetType))throw new m.TranslatableError("errors.widgetModel.onlyPivotWidgetSupported",{methodName:"getPivotTableProps"});return{dataOptions:this.dataOptions,styleOptions:this.styleOptions,dataSet:this.dataSource,filters:this.filters,highlights:this.highlights}}getChartWidgetProps(){if(m.isPivotWidget(this.widgetType))throw new W0("getChartWidgetProps");return{chartType:this.chartType,dataOptions:this.dataOptions,styleOptions:this.styleOptions,dataSource:this.dataSource,filters:this.filters,highlights:this.highlights,title:this.title,description:this.description||"",drilldownOptions:this.drilldownOptions,onDataPointClick:this.componentDataPointClickHandler,onDataPointsSelected:this.componentDataPointsSelectedHandler}}getTableWidgetProps(){if(!m.isTableWidget(this.widgetType))throw new m.TranslatableError("errors.widgetModel.onlyTableWidgetSupported",{methodName:"getTableWidgetProps"});return{dataOptions:this.dataOptions,styleOptions:this.styleOptions,dataSource:this.dataSource,filters:this.filters,title:this.title,description:this.description||""}}getPivotTableWidgetProps(){if(!m.isPivotWidget(this.widgetType))throw new m.TranslatableError("errors.widgetModel.onlyPivotWidgetSupported",{methodName:"getPivotTableWidgetProps"});return{dataOptions:this.dataOptions,styleOptions:this.styleOptions,dataSource:this.dataSource,filters:this.filters,highlights:this.highlights,title:this.title,description:this.description||""}}registerComponentDataPointClickHandler(t){const n=this.componentDataPointClickHandler?[this.componentDataPointClickHandler,t]:[t];this.componentDataPointClickHandler=z0.over(n)}registerComponentDataPointsSelectedHandler(t){const n=this.componentDataPointsSelectedHandler?[this.componentDataPointsSelectedHandler,t]:[t];this.componentDataPointsSelectedHandler=z0.over(n)}registerComponentRenderToolbarHandler(t){var o;const n=this.styleOptions,r=(o=n==null?void 0:n.header)!=null&&o.renderToolbar?[n.header.renderToolbar,t]:[t];this.styleOptions=Te(he({},n),{header:Te(he({},n.header),{renderToolbar:z0.over(r)})})}}class W0 extends m.TranslatableError{constructor(t){super("errors.widgetModel.pivotWidgetNotSupported",{methodName:t})}}function Uce(e,t){return new ag(e,t)}function qce(e){return e==="plugin"?"plugin":e==="pivot"||e==="pivot2"?"pivot":m.getChartType(e)}const mx=o=>bo(exports,[o],function*({widgetOid:e,dashboardOid:t,includeDashboard:n,api:r}){const[i,a]=yield Promise.all([r.getWidget(e,t),n?r.getDashboard(t):void 0]);return{widget:i,dashboard:a}}),Yce=({widgetOid:e,dashboardOid:t,includeDashboard:n})=>{const[r,o]=Y.useState(),i=m.useGetApi(),[a,s]=Y.useState();return Y.useEffect(()=>{mx({widgetOid:e,dashboardOid:t,includeDashboard:n,api:i}).then(({widget:c,dashboard:l})=>{s({widget:c,dashboard:l})}).catch(c=>{o(c)})},[e,t,i,n]),Te(he({},a),{error:r})};function yj(e,t,n,r){return bo(this,null,function*(){const o=new m.RestApi(e),{widget:i}=yield mx({widgetOid:n,dashboardOid:t,api:o});return new ag(i,r)})}const Vce=m.withTracking("useGetWidgetModel")(Gce);function Gce(e){const t=Hs(e,["dashboardOid","widgetOid"]),n=qa(e,t),{themeSettings:r}=m.useThemeContext(),[o,i]=Y.useReducer(Ao,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:a,app:s}=m.useSisenseContext();return Y.useEffect(()=>{if(a||i({type:"error",error:new m.TranslatableError("errors.sisenseContextNotFound")}),n(s)){i({type:"loading"});const{dashboardOid:c,widgetOid:l}=e;yj(s.httpClient,c,l,r).then(d=>{i({type:"success",data:d})}).catch(d=>{i({type:"error",error:d})})}},[s,a,e,n,r]),o.data&&t?kM(Ao(o,{type:"loading"})):kM(o)}function kM(e){const r=e,{data:t}=r,n=qr(r,["data"]);return Te(he({},n),{widget:t})}function Qce(e){return e!=="plugin"}const ks=(e,t)=>`${t}px solid ${e}`;var Jce=m._apply,Zce=m._arrayMap,Kce=m._baseIteratee,Xce=m._baseRest,eue=m._baseUnary,tue=m._flatRest;function nue(e){return tue(function(t){return t=Zce(t,eue(Kce)),Xce(function(n){var r=this;return e(t,function(o){return Jce(o,r,n)})})})}var rue=nue,oue=m._arrayMap,iue=rue,aue=iue(oue),sue=aue;const TM=m.getDefaultExportFromCjs(sue),wj=(e,t=-1)=>{var r,o,i;return[...(r=e.rows)!=null?r:[],...(o=e.columns)!=null?o:[],...(i=e.values)!=null?i:[]][t]},_j=e=>{const t=e&&"numberFormatConfig"in e?e.numberFormatConfig:void 0;return m.getCompleteNumberFormatConfig(t)},lue=e=>m.translateColumnToCategory(e).dateFormat,cue=e=>(t,n,r,o)=>{var c;const i=wj(e,(c=o==null?void 0:o.field)==null?void 0:c.index),a=_j(i),s=t.value===null||typeof t.value=="undefined";t.content=s?"":m.applyFormatPlainText(a,t.value)},uue="N\\A",due=(e,t)=>(n,r)=>{var s,c;const o=(r==null?void 0:r.panel)==="measures",i=n.userType===Lt.CORNER,a=wj(e,(s=r==null?void 0:r.field)==null?void 0:s.index);if(o||i||!a){n.content=n.value;return}switch((c=r==null?void 0:r.jaql)==null?void 0:c.datatype){case"numeric":n.content=m.applyFormatPlainText(_j(a),parseFloat(`${n.value}`));break;case"datetime":n.content=t(m.parseISOWithDefaultUTCOffset(n.value),lue(a));break;default:n.content=n.value}n.content===""&&(n.content=uue)},pue=()=>(e,t,n)=>{var l,d;const r=e.userType===Lt.CORNER,o=e.userType===Lt.SUB_TOTAL;if(!t||r||o)return;const i=n.metadata.find(({panel:p,jaql:f})=>{var C;const v=["rows","columns"].includes(p),b=f.dim===t.jaql.dim,_=t.jaql.datatype===f.datatype&&t.jaql.level===f.level,y=(C=f.in)==null?void 0:C.selected;return v&&b&&_&&y}),a=(d=(l=i==null?void 0:i.jaql)==null?void 0:l.in)==null?void 0:d.selected;if(!a)return;T8(a.jaql)(e.value)&&(e.state={isSelected:!0})},hue=({dataService:e,dataOptions:t})=>{const{app:n}=m.useSisenseContext(),r=Y.useCallback(TM([cue(t)]),[t]),o=Y.useCallback((a,s)=>m.applyDateFormat(a,s,n==null?void 0:n.settings.locale,n==null?void 0:n.settings.dateConfig),[n]),i=Y.useCallback(TM([due(t,o),pue()]),[t]);Y.useEffect(()=>(e.on(uw,r),e.on(Qp,i),()=>{e.off(uw,r),e.off(Qp,i)}),[e,r])},fue="#cbced7",gue="#ffff9c";function mue(e,t){var o,i,a,s,c,l,d,p,f,v,b;let n,r;if((o=t==null?void 0:t.chart)!=null&&o.backgroundColor){const _=m.getDarkFactor(m.toColor((i=t==null?void 0:t.chart)==null?void 0:i.backgroundColor))<.5?.07:-.07;n=m.getSlightlyDifferentColor((a=t==null?void 0:t.chart)==null?void 0:a.backgroundColor,_),r=m.getSlightlyDifferentColor((s=t==null?void 0:t.chart)==null?void 0:s.backgroundColor,_*1.5)}return{fontFamily:(c=t==null?void 0:t.typography)==null?void 0:c.fontFamily,textColor:(l=t==null?void 0:t.chart)==null?void 0:l.textColor,backgroundColor:(d=t==null?void 0:t.chart)==null?void 0:d.backgroundColor,borderColor:fue,fillColor:n,additionalFillColor:r,fillOptions:{alternatingRows:e==null?void 0:e.alternatingRowsColor,alternatingColumns:e==null?void 0:e.alternatingColumnsColor,columnsHeaders:e==null?void 0:e.headersColor,rowMembers:e==null?void 0:e.membersColor,totals:e==null?void 0:e.totalsColor},rowHeight:e==null?void 0:e.rowHeight,isAutoHeight:(p=e==null?void 0:e.isAutoHeight)!=null?p:!1,navigationPrimaryColor:(f=t==null?void 0:t.typography)==null?void 0:f.primaryTextColor,navigationSecondaryColor:(v=t==null?void 0:t.typography)==null?void 0:v.secondaryTextColor,selectionColor:(b=e==null?void 0:e.highlightColor)!=null?b:gue}}const vue=({dataOptions:e})=>{const[t,n]=Y.useState(m.translatePivotTableDataOptions(e));return{dataOptionsInternal:t,updateSort(r){var o;n(Te(he({},t),{rows:(o=t.rows)==null?void 0:o.map((i,a)=>{const s=r.rows.find(({rowIndex:c})=>c===a);return s?s.sort===null?m.safeCombine(i,{sortType:void 0}):m.safeCombine(i,{sortType:s.sort}):i})}))}}},bue=25,xj=m.asSisenseComponent({componentName:"PivotTable"})(e=>{const[t,n]=Y.useState(!1),{styleOptions:r={},dataSet:o,dataOptions:i,filters:a,highlights:s,refreshCounter:c=0}=e,l=Y.useRef(null),[d,p]=Y.useState(null),{app:f}=m.useSisenseContext(),{themeSettings:v}=m.useThemeContext(),b=f==null?void 0:f.pivotClient;if(!b)throw new Error("Pivot client not initialized");const{dataOptionsInternal:_,updateSort:y}=vue({dataOptions:i}),{isError:C,error:k,jaql:T}=Gle({dataSet:o,dataOptionsInternal:_,filters:a,highlights:s,refreshCounter:c});if(C)throw k;const x=Y.useMemo(()=>b.preparePivotBuilder(),[b]),E=Y.useMemo(()=>b.prepareDataService(),[b,T]);hue({dataService:E,dataOptions:i}),Y.useEffect(()=>{if(l.current&&T&&d){const{rowsPerPage:R=bue}=r,D=he({width:d.width,height:d.height,isPaginated:!0,itemsPerPage:R,isSelectedMode:!0},mue(r,v));l.current.children.length?x.updateProps(D):x.render(l.current,D),x.updateDataService(E),n(!0),E.loadData(T).then(()=>{x.updateJaql(),n(!1)}).catch(I=>{throw n(!1),I})}},[T,E,x,b,r,d,v]);const O=Y.useCallback(R=>{const D=Yle(R,_);y({rows:D})},[_,y]);Y.useEffect(()=>(x.on(yh,O),()=>{x.off(yh,O)}),[x,O]);const S=Y.useCallback(R=>{(R.width!==(d==null?void 0:d.width)||R.height!==(d==null?void 0:d.height))&&p(R)},[d,p]);return A.jsx(m.DynamicSizeContainer,{defaultSize:m.DEFAULT_PIVOT_TABLE_SIZE,size:{width:r==null?void 0:r.width,height:r==null?void 0:r.height},useContentSize:{height:r==null?void 0:r.isAutoHeight},onSizeChange:S,children:A.jsx(m.LoadingOverlay,{themeSettings:v,isVisible:t,children:A.jsx("div",{ref:l,"aria-label":"pivot-table-root"})})})}),Cj=m.asSisenseComponent({componentName:"PivotTableWidget"})(e=>{var p;const[t,n]=Y.useState(0),{app:r}=m.useSisenseContext(),{styleOptions:o,dataSource:i=r==null?void 0:r.defaultDataSource,dataOptions:a}=e,s=m.getWidgetDefaultSize("pivot",{hasHeader:!((p=o==null?void 0:o.header)!=null&&p.hidden)}),f=e.styleOptions||{},{width:c,height:l}=f,d=qr(f,["width","height"]);return a?A.jsx(m.DynamicSizeContainer,{defaultSize:s,size:{width:c,height:l},useContentSize:{height:o==null?void 0:o.isAutoHeight},children:A.jsx(m.WidgetContainer,Te(he({},e),{dataSetName:i&&m.getDataSourceName(i),onRefresh:()=>n(t+1),children:A.jsx(xj,{dataSet:e.dataSource,dataOptions:e.dataOptions,styleOptions:d,filters:e.filters,highlights:e.highlights,refreshCounter:t})}))}):null}),yu=class yu{static get(t){return yu.pluginMap.get(t)}static register(t,n){yu.pluginMap.set(t,n)}};Ct(yu,"pluginMap",new Map);let x1=yu;const C1="#f2f2f2",S1=4,EM=m.newStyled.div`
|
|
422
|
+
display: grid;
|
|
423
|
+
grid-template-columns: ${({widths:e})=>e.map(t=>`${t}%`).join(" ")};
|
|
424
|
+
`,yue=m.newStyled.div`
|
|
425
|
+
&:not(:first-of-type) {
|
|
426
|
+
border-left: ${ks(C1,S1)};
|
|
427
|
+
}
|
|
428
|
+
`,wue=m.newStyled.div`
|
|
429
|
+
border-bottom: ${ks(C1,S1)};
|
|
430
|
+
&:not(:first-of-type) {
|
|
431
|
+
border-left: ${ks(C1,S1)};
|
|
432
|
+
}
|
|
433
|
+
height: ${({height:e})=>`calc(${e} + 32px)`};
|
|
434
|
+
`;function _ue(e){const{widgetType:t}=e;return m.isTableWidget(t)?e.getTableWidgetProps():m.isPivotWidget(t)?e.getPivotTableWidgetProps():e.getChartWidgetProps()}const xue=(e,t)=>{if(!e)return null;if(e.widgetType==="plugin"){const r=x1.get(e.pluginType);if(!r){console.error(`Unknown plugin type: ${e.pluginType}`);return}const o=r.createChartProps(e,t);return A.jsx(m.DynamicSizeContainer,{defaultSize:m.getWidgetDefaultSize("line",{hasHeader:!0}),children:A.jsx(m.WidgetContainer,{title:e.title,description:e.description,dataSetName:e.dataSource,onRefresh:()=>console.log("DEBUG refresh"),children:A.jsx(r.Plugin,he({},o))})})}const n=_ue(e);return m.isTableWidget(e.widgetType)?A.jsx(m.TableWidget,he({},n)):m.isPivotWidget(e.widgetType)?A.jsx(Cj,he({},n)):A.jsx(m.ChartWidget,he({},n))},Cue=({layout:e,widgets:t})=>{const{themeSettings:n}=m.useThemeContext();return A.jsx(EM,{widths:e.columns.map(r=>r.widthPercentage),children:e.columns.map((r,o)=>{var i;return A.jsx(yue,{children:(i=r.rows)==null?void 0:i.map((a,s)=>A.jsx(EM,{widths:a.cells.map(c=>c.widthPercentage),children:a.cells.map(c=>A.jsx(wue,{height:c.height,children:xue(t.find(l=>l.oid===c.widgetId),n)},`${c.widgetId},${c.widthPercentage}`))},`${o},${s}`))},o)})})},Lp="#d5d5d5",jp=1,Sue=m.newStyled.div`
|
|
435
|
+
height: 48px;
|
|
436
|
+
font-family: ${({font:e})=>e};
|
|
437
|
+
background-color: ${({background:e})=>e};
|
|
438
|
+
color: ${({color:e})=>e};
|
|
439
|
+
border-bottom: ${ks(Lp,jp)};
|
|
440
|
+
padding: 10px 20px;
|
|
441
|
+
display: flex;
|
|
442
|
+
align-items: center;
|
|
443
|
+
box-sizing: border-box;
|
|
444
|
+
`,kue=m.newStyled.div`
|
|
445
|
+
font-size: 13px;
|
|
446
|
+
font-weight: 700;
|
|
447
|
+
`,Tue=({title:e})=>{const{themeSettings:t}=m.useThemeContext();return A.jsx(Sue,{font:t.typography.fontFamily,color:t.typography.primaryTextColor,background:t.general.backgroundColor,children:A.jsx(kue,{children:e})})};function Wh(e,t){return Ao(e,t)}const Eue=["dataSource","dimensions","measures","count","offset","onBeforeQuery"];function Sj(e){return Hs(e,Eue,(t,n)=>{const{filters:r,relations:o}=m.getFilterListAndRelations(n.filters),{filters:i,relations:a}=m.getFilterListAndRelations(t.filters);return Is(r,i)||Nle(r,i,o,a)||Is(n.highlights,t.highlights)})}const Aue=m.withTracking("useExecuteQuery")(vx);function vx(e){var _;const t=Sj(e),n=qa(e,t),[r,o]=Y.useState(!1),[i,a]=Y.useState(),{isInitialized:s,app:c}=m.useSisenseContext(),l=(_=c==null?void 0:c.settings.queryCacheConfig)==null?void 0:_.enabled,d=l?m.executeQueryWithCache:m.executeQuery,[p,f]=Y.useReducer(Wh,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),v=Y.useCallback(()=>{l&&i&&(m.clearExecuteQueryCache(i),a(void 0)),p.isLoading||o(!0)},[l,i,p.isLoading]),b=Y.useCallback((y,C)=>{const{dataSource:k,dimensions:T,measures:x,filters:E,highlights:O,count:S=y.settings.queryLimit,offset:R,ungroup:D,onBeforeQuery:P}=C,{filters:I,relations:j}=m.getFilterListAndRelations(E),W=[{dataSource:k,dimensions:T,measures:x,filters:I,filterRelations:j,highlights:O,count:S,offset:R,ungroup:D},y,{onBeforeQuery:P}];if(l){const F=m.createExecuteQueryCacheKey(...W);i!==F&&a(F)}d(...W).then(F=>{f({type:"success",data:F})}).catch(F=>{f({type:"error",error:F})})},[d,l,i]);return Y.useEffect(()=>{s||f({type:"error",error:new m.TranslatableError("errors.executeQueryNoSisenseContext")}),r&&o(!1),n(c,r)&&b(c,e)},[c,d,s,e,b,n,r]),p.data&&t?Te(he({},Wh(p,{type:"loading"})),{refetch:v}):Te(he({},p),{refetch:v})}const kj=Y.forwardRef((e,t)=>A.jsx("button",Te(he({},e),{ref:t,className:"csdk-rounded disabled:csdk-cursor-not-allowed csdk-leading-[18px] csdk-text-[13px] csdk-py-[5px] csdk-px-[8px] csdk-text-text-content disabled:csdk-opacity-30 "+(e.className||""),children:e.children}))),Oue=e=>{const a=e,{tooltipTitle:t,disableTooltip:n,children:r,disabled:o}=a,i=qr(a,["tooltipTitle","disableTooltip","children","disabled"]);return A.jsx(m.Tooltip,{title:t,disableHoverListener:n,children:A.jsx("span",{children:A.jsx(kj,Te(he({disabled:o,style:o?Te(he({},i.style||{}),{pointerEvents:"none"}):i.style},i),{children:r}))})})},Tj=e=>{const a=e,{wrapperClassName:t,label:n,isLabelInactive:r}=a,o=qr(a,["wrapperClassName","label","isLabelInactive"]),i=["csdk-border-l","csdk-pl-3"];return r&&i.push("csdk-opacity-50"),A.jsxs("label",{className:m.r("csdk-my-[2px] csdk-flex csdk-items-center csdk-leading-4 csdk-text-[13px]",t,{"csdk-cursor-pointer":!e.disabled}),children:[A.jsx("input",Te(he({},o),{type:"checkbox",className:m.r("csdk-accent-UI-default csdk-h-checkbox csdk-w-checkbox csdk-m-checkbox",{"csdk-cursor-pointer":!e.disabled})})),n&&A.jsx("span",{className:i.join(" "),children:n})]})},Rue=m.newStyled.input`
|
|
448
|
+
box-sizing: border-box;
|
|
449
|
+
height: 100%;
|
|
450
|
+
border-width: 1px;
|
|
451
|
+
border-style: solid;
|
|
452
|
+
background-color: transparent;
|
|
453
|
+
font-size: 13px;
|
|
454
|
+
color: inherit;
|
|
455
|
+
padding-left: 0.375rem;
|
|
456
|
+
border-radius: 0.375rem;
|
|
457
|
+
transition: border-color 250ms;
|
|
458
|
+
|
|
459
|
+
&:disabled {
|
|
460
|
+
cursor: not-allowed;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
&:invalid {
|
|
464
|
+
border-color: #fb7570;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
&::placeholder {
|
|
468
|
+
color: inherit;
|
|
469
|
+
opacity: 0.75;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
&:focus {
|
|
473
|
+
outline: none;
|
|
474
|
+
border-color: inherit;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
&::-webkit-outer-spin-button,
|
|
478
|
+
&::-webkit-inner-spin-button {
|
|
479
|
+
-webkit-appearance: none;
|
|
480
|
+
margin: 0;
|
|
481
|
+
}
|
|
482
|
+
`,Fu=e=>{var d;const l=e,{callback:t,className:n,value:r,disabled:o}=l,i=qr(l,["callback","className","value","disabled"]),[a,s]=Y.useState((d=r==null?void 0:r.toString())!=null?d:""),c=Y.createRef();return A.jsxs("div",{className:"csdk-flex csdk-items-center csdk-gap-x-2 csdk-justify-end csdk-h-6",children:[e.label&&A.jsx("label",{className:"csdk-min-w-fit",htmlFor:e.id,children:e.label}),A.jsx("div",{className:"csdk-h-full",children:A.jsx(Rue,Te(he({},i),{ref:c,className:["csdk-border-UI-default",n].join(" "),value:a,onChange:p=>{t(p.target.value),s(p.target.value)},disabled:o}))})]})},Due=e=>{const t=e.width||"24",n=e.height||"24";return A.jsx("svg",{viewBox:`0 0 ${t} ${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:t,height:n,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 5V3.5C9 3.22386 9.22386 3 9.5 3C9.77614 3 10 3.22386 10 3.5V5H13V3.5C13 3.22386 13.2239 3 13.5 3C13.7761 3 14 3.22386 14 3.5V5H17C18.1046 5 19 5.89543 19 7V8V9V17C19 18.1046 18.1046 19 17 19H6C4.89543 19 4 18.1046 4 17V9V8V7C4 5.89543 4.89543 5 6 5H9ZM10 6H13V6.5C13 6.77614 13.2239 7 13.5 7C13.7761 7 14 6.77614 14 6.5V6H17C17.5523 6 18 6.44772 18 7V8H5V7C5 6.44772 5.44772 6 6 6H9V6.5C9 6.77614 9.22386 7 9.5 7C9.77614 7 10 6.77614 10 6.5V6ZM5 17V9H18V17C18 17.5523 17.5523 18 17 18H6C5.44772 18 5 17.5523 5 17ZM14.5 12H8.5C8.22386 12 8 11.7761 8 11.5C8 11.2239 8.22386 11 8.5 11H14.5C14.7761 11 15 11.2239 15 11.5C15 11.7761 14.7761 12 14.5 12ZM8.5 14H14.5C14.7761 14 15 13.7761 15 13.5C15 13.2239 14.7761 13 14.5 13H8.5C8.22386 13 8 13.2239 8 13.5C8 13.7761 8.22386 14 8.5 14ZM14.5 16H8.5C8.22386 16 8 15.7761 8 15.5C8 15.2239 8.22386 15 8.5 15H14.5C14.7761 15 15 15.2239 15 15.5C15 15.7761 14.7761 16 14.5 16Z",fill:e.iconColor||"#5B6372"})})},Mue=e=>{var t;return A.jsx("svg",Te(he({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{children:A.jsx("path",{fill:(t=e.fill)!=null?t:"#000",fillRule:"nonzero",d:"M7.589 10L7 10.777 11.99 15 17 10.777 16.413 10l-4.422 3.727z"})}))},Pue=e=>A.jsxs("label",{children:[A.jsx("input",Te(he({},e),{className:"csdk-accent-UI-default csdk-text-UI-default csdk-w-radio csdk-h-radio csdk-m-radio "+e.className,type:"radio"})),e.label]}),Iue=m.newStyled("div")({"::-webkit-scrollbar":{width:"8px",height:"8px"},"::-webkit-scrollbar-track":{backgroundColor:"transparent"},"::-webkit-scrollbar-thumb":{backgroundColor:"#c2c2c2",borderRadius:"4px",border:"1px solid transparent",backgroundClip:"content-box",minHeight:"20px",minWidth:"20px"},"::-webkit-scrollbar-thumb:hover":{backgroundColor:"#7d7d7d",border:"none"}}),Nue=i=>{var a=i,{items:e,currentSelection:t,title:n,className:r}=a,o=qr(a,["items","currentSelection","title","className"]);return A.jsxs(Iue,{className:r,children:[A.jsx("div",{className:"csdk-ml-1.5",children:n}),e.map((s,c)=>A.jsx(Pue,he({value:s,label:s,checked:s===t},o),c))]})},Ej=B.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ej.displayName="FormControlContext");function Lue(){return B.useContext(Ej)}function jue(e){return m.generateUtilityClass("PrivateSwitchBase",e)}m.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Fue=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Bue=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${m.capitalize(o)}`],input:["input"]};return m.composeClasses(i,jue,t)},Hue=m.styled(m.ButtonBase)(({ownerState:e})=>m._extends({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),$ue=m.styled("input",{shouldForwardProp:m.rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Aj=B.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:c,disableFocusRipple:l=!1,edge:d=!1,icon:p,id:f,inputProps:v,inputRef:b,name:_,onBlur:y,onChange:C,onFocus:k,readOnly:T,required:x=!1,tabIndex:E,type:O,value:S}=t,R=m._objectWithoutPropertiesLoose(t,Fue),[D,P]=m.useControlled({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),I=Lue(),j=Z=>{k&&k(Z),I&&I.onFocus&&I.onFocus(Z)},W=Z=>{y&&y(Z),I&&I.onBlur&&I.onBlur(Z)},F=Z=>{if(Z.nativeEvent.defaultPrevented)return;const X=Z.target.checked;P(X),C&&C(Z,X)};let H=c;I&&typeof H=="undefined"&&(H=I.disabled);const $=O==="checkbox"||O==="radio",G=m._extends({},t,{checked:D,disabled:H,disableFocusRipple:l,edge:d}),K=Bue(G);return A.jsxs(Hue,m._extends({component:"span",className:m.clsx(K.root,a),centerRipple:!0,focusRipple:!l,disabled:H,tabIndex:null,role:void 0,onFocus:j,onBlur:W,ownerState:G,ref:n},R,{children:[A.jsx($ue,m._extends({autoFocus:r,checked:o,defaultChecked:s,className:K.input,disabled:H,id:$?f:void 0,name:_,onChange:F,readOnly:T,ref:b,required:x,ownerState:G,tabIndex:E,type:O},O==="checkbox"&&S===void 0?{}:{value:S},v)),D?i:p]}))});process.env.NODE_ENV!=="production"&&(Aj.propTypes={autoFocus:m.PropTypes.bool,checked:m.PropTypes.bool,checkedIcon:m.PropTypes.node.isRequired,classes:m.PropTypes.object,className:m.PropTypes.string,defaultChecked:m.PropTypes.bool,disabled:m.PropTypes.bool,disableFocusRipple:m.PropTypes.bool,edge:m.PropTypes.oneOf(["end","start",!1]),icon:m.PropTypes.node.isRequired,id:m.PropTypes.string,inputProps:m.PropTypes.object,inputRef:m.refType,name:m.PropTypes.string,onBlur:m.PropTypes.func,onChange:m.PropTypes.func,onFocus:m.PropTypes.func,readOnly:m.PropTypes.bool,required:m.PropTypes.bool,sx:m.PropTypes.object,tabIndex:m.PropTypes.oneOfType([m.PropTypes.number,m.PropTypes.string]),type:m.PropTypes.string.isRequired,value:m.PropTypes.any});function zue(e){return m.useThemeProps}function Wue(e){return m.generateUtilityClass("MuiSwitch",e)}const pr=m.generateUtilityClasses("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Uue=["className","color","edge","size","sx"],que=zue(),Yue=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${m.capitalize(n)}`,`size${m.capitalize(r)}`],switchBase:["switchBase",`color${m.capitalize(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=m.composeClasses(s,Wue,t);return m._extends({},t,c)},Vue=m.styled("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${m.capitalize(n.edge)}`],t[`size${m.capitalize(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${pr.thumb}`]:{width:16,height:16},[`& .${pr.switchBase}`]:{padding:4,[`&.${pr.checked}`]:{transform:"translateX(16px)"}}}}]}),Gue=m.styled(Aj,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${pr.input}`]:t.input},n.color!=="default"&&t[`color${m.capitalize(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${pr.checked}`]:{transform:"translateX(20px)"},[`&.${pr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${pr.checked} + .${pr.track}`]:{opacity:.5},[`&.${pr.disabled} + .${pr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${pr.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:m.alpha_1(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${pr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:m.alpha_1(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${pr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?m.lighten_1(e.palette[t].main,.62):m.darken_1(e.palette[t].main,.55)}`}},[`&.${pr.checked} + .${pr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Que=m.styled("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Jue=m.styled("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Oj=B.forwardRef(function(t,n){const r=que({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:c}=r,l=m._objectWithoutPropertiesLoose(r,Uue),d=m._extends({},r,{color:i,edge:a,size:s}),p=Yue(d),f=A.jsx(Jue,{className:p.thumb,ownerState:d});return A.jsxs(Vue,{className:m.clsx(p.root,o),sx:c,ownerState:d,children:[A.jsx(Gue,m._extends({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:d},l,{classes:m._extends({},p,{root:p.switchBase})})),A.jsx(Que,{className:p.track,ownerState:d})]})});process.env.NODE_ENV!=="production"&&(Oj.propTypes={checked:m.PropTypes.bool,checkedIcon:m.PropTypes.node,classes:m.PropTypes.object,className:m.PropTypes.string,color:m.PropTypes.oneOfType([m.PropTypes.oneOf(["default","primary","secondary","error","info","success","warning"]),m.PropTypes.string]),defaultChecked:m.PropTypes.bool,disabled:m.PropTypes.bool,disableRipple:m.PropTypes.bool,edge:m.PropTypes.oneOf(["end","start",!1]),icon:m.PropTypes.node,id:m.PropTypes.string,inputProps:m.PropTypes.object,inputRef:m.refType,onChange:m.PropTypes.func,required:m.PropTypes.bool,size:m.PropTypes.oneOfType([m.PropTypes.oneOf(["medium","small"]),m.PropTypes.string]),sx:m.PropTypes.oneOfType([m.PropTypes.arrayOf(m.PropTypes.oneOfType([m.PropTypes.func,m.PropTypes.object,m.PropTypes.bool])),m.PropTypes.func,m.PropTypes.object]),value:m.PropTypes.any});const Zue=m.newStyled(Oj)(({theme:e})=>{var t;return{height:"23px",width:"33px","& .MuiSwitch-switchBase":{transform:"translateX(1px)",top:"2px",transition:"all .3s ease","&.Mui-checked":{color:"#fff",transform:"translateX(13px)","& + .MuiSwitch-track":{opacity:1,backgroundColor:(t=e.general.brandColor)!=null?t:"#FFC805"},"&:hover":{background:"transparent"}},"&:hover":{background:"transparent"}},"&:hover":{"& .MuiSwitch-thumb":{transform:"scale(1.2)"}},"& .MuiSwitch-thumb":{backgroundColor:"#fff",width:11,height:11,border:"1px solid #c4c8cd",boxShadow:"none",transition:"all .3s ease",boxSizing:"border-box"},"& .MuiSwitch-track":{opacity:1,height:"9px",width:"19px",backgroundColor:"#6e737d",borderRadius:9}}}),Rj=()=>A.jsx("div",{className:"csdk-flex csdk-justify-center","data-testid":"triangle-indicator",children:A.jsx("div",{className:"csdk-border-l-[70px] csdk-border-l-[transparent] csdk-border-r-[70px] csdk-border-r-[transparent] csdk-border-t-[13px]"})}),Fp=e=>e==="white",AM="rgb(240, 240, 240)",Kue="rgba(0, 0, 0, 0.26)",Xue=m.newStyled.button`
|
|
483
|
+
cursor: pointer;
|
|
484
|
+
background-color: ${({theme:e,variant:t,disabled:n})=>n?AM:Fp(t)?e.general.backgroundColor:"#f4f4f8"};
|
|
485
|
+
border: ${({variant:e})=>Fp(e)?"1px solid rgb(110 115 125 / var(--tw-border-opacity))":"none"};
|
|
486
|
+
color: ${({theme:e,isActive:t,disabled:n})=>n?Kue:t?e.general.primaryButtonTextColor:e.typography.primaryTextColor};
|
|
487
|
+
border-radius: 0.375rem;
|
|
488
|
+
&:hover {
|
|
489
|
+
background-color: ${({theme:e,variant:t,disabled:n})=>n?AM:m.getSlightlyDifferentColor(Fp(t)?e.general.backgroundColor:"#f4f4f8")};
|
|
490
|
+
transition: 0.2s;
|
|
491
|
+
}
|
|
492
|
+
transition: color 250ms;
|
|
493
|
+
`,ede=m.newStyled.label`
|
|
494
|
+
color: ${({theme:e,variant:t})=>Fp(t)?e.typography.primaryTextColor:e.general.primaryButtonTextColor};
|
|
495
|
+
`,k1=e=>{const{variant:t="grey",label:n,isActive:r,theme:o}=e;return A.jsxs("div",{className:"csdk-relative csdk-flex csdk-mr-[5px] csdk-cursor-pointer","aria-label":"DateRangeField",children:[n&&A.jsx(ede,{htmlFor:e.id,className:"csdk-my-[5px] csdk-mr-[7px] csdk-text-[13px] csdk-leading-[18px]",theme:o,variant:t,children:n}),A.jsx("div",{className:"csdk-relative csdk-h-6",children:A.jsxs(Xue,Te(he({},e),{variant:t,"aria-label":"DateRangeFieldButton",className:"csdk-text-left csdk-w-[152px] csdk-bg-[#f4f4f8] csdk-text-[13px] csdk-outline-0 csdk-border csdk-border-transparent csdk-p-input csdk-h-6 csdk-rounded-[4px] "+"disabled:csdk-placeholder:csdk-opacity-30 disabled:csdk-cursor-not-allowed "+"focus:csdk-border-solid focus:csdk-border-input focus:csdk-border-UI-default "+"hover:csdk-border-guiding csdk-text-text-active "+"csdk-pl-2.5 csdk-pr-10 csdk-overflow-hidden "+(e.className||""),children:[e.value,A.jsx("div",{"aria-label":"DateRangeFieldIcon",className:"csdk-absolute csdk-right-[4px] csdk-top-1/2 csdk-transform -csdk-translate-y-1/2",children:A.jsx(Due,{className:"csdk-flex csdk-text-text-active","aria-hidden":"true",iconColor:r?o.general.primaryButtonTextColor:o.typography.primaryTextColor})})]}))})]})};function OM(e){return e.substring(2).toLowerCase()}function tde(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Uh(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=B.useRef(!1),s=B.useRef(null),c=B.useRef(!1),l=B.useRef(!1);B.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=m.useForkRef(t.ref,s),p=m.useEventCallback(b=>{const _=l.current;l.current=!1;const y=m.ownerDocument(s.current);if(!c.current||!s.current||"clientX"in b&&tde(b,y))return;if(a.current){a.current=!1;return}let C;b.composedPath?C=b.composedPath().indexOf(s.current)>-1:C=!y.documentElement.contains(b.target)||s.current.contains(b.target),!C&&(n||!_)&&o(b)}),f=b=>_=>{l.current=!0;const y=t.props[b];y&&y(_)},v={ref:d};return i!==!1&&(v[i]=f(i)),B.useEffect(()=>{if(i!==!1){const b=OM(i),_=m.ownerDocument(s.current),y=()=>{a.current=!0};return _.addEventListener(b,p),_.addEventListener("touchmove",y),()=>{_.removeEventListener(b,p),_.removeEventListener("touchmove",y)}}},[p,i]),r!==!1&&(v[r]=f(r)),B.useEffect(()=>{if(r!==!1){const b=OM(r),_=m.ownerDocument(s.current);return _.addEventListener(b,p),()=>{_.removeEventListener(b,p)}}},[p,r]),A.jsx(B.Fragment,{children:B.cloneElement(t,v)})}process.env.NODE_ENV!=="production"&&(Uh.propTypes={children:m.elementAcceptingRef.isRequired,disableReactTree:m.PropTypes.bool,mouseEvent:m.PropTypes.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:m.PropTypes.func.isRequired,touchEvent:m.PropTypes.oneOf(["onTouchEnd","onTouchStart",!1])});process.env.NODE_ENV!=="production"&&(Uh.propTypes=m.exactProp(Uh.propTypes));const T1=e=>{var l,d;const[t,n]=Y.useState(!1),{themeSettings:r}=m.useThemeContext(),o=()=>{n(!t)},i=Y.useRef(null),a=(l=e.selectedIdx)!=null?l:null,s={fontFamily:r.typography.fontFamily,fontWeight:400,textTransform:"none",fontSize:"13px",color:r.typography.primaryTextColor},c=e.elements.map((p,f)=>A.jsx(m.MenuItem,{onClick:()=>{n(!1)},sx:Te(he({},s),{minHeight:"unset","&:hover":{backgroundColor:m.getSlightlyDifferentColor(r.general.backgroundColor)}}),disabled:e.disabled,children:p},f));return A.jsxs(A.Fragment,{children:[A.jsx(m.Button,{ref:i,onClick:o,className:"csdk-h-full csdk-border-solid csdk-border-input csdk-box-border",sx:Te(he({},s),{border:"1px solid rgb(110 115 125 / var(--tw-border-opacity))",marginLeft:"5px",marginRight:"5px",borderRadius:"0.375rem",verticalAlign:"unset","&:hover":{backgroundColor:m.getSlightlyDifferentColor(r.general.backgroundColor)}}),disabled:e.disabled,children:((d=e.icon)!=null?d:a!==null)?e.elements[a!=null?a:0]:A.jsx("div",{children:"Select..."})}),A.jsx(m.Popper,{open:t,anchorEl:i.current,placement:"bottom-start",sx:{backgroundColor:r.general.backgroundColor,border:"1px solid #c4c8cd",borderRadius:"4px",boxShadow:"0px 2px 2px rgba(0, 0, 0, 0.25)"},children:A.jsx(Uh,{onClickAway:()=>n(!1),children:A.jsx(m.MenuList,{autoFocusItem:t,children:c})})})]})},Vi=e=>e==="vertical",nde={header:{shouldBeShown:!0,hasBorder:!0,isCollapsible:!0},border:{shouldBeShown:!0},footer:{shouldBeShown:!0}},rde=m.newStyled("div")({".MuiSwitch-root":{opacity:.55,transition:"all .3s ease"},"&:hover":{".MuiSwitch-root":{opacity:1}}}),ea=e=>{var b,_;const{title:t,renderContent:n,arrangement:r="vertical",disabled:o,onToggleDisabled:i,isDependent:a}=e,s=m.merge.withOptions({mergeArrays:!1},nde,(b=e.design)!=null?b:{}),[c,l]=Y.useState(!0),{themeSettings:d}=m.useThemeContext(),{backgroundColor:p}=d.general,{primaryTextColor:f}=d.typography,v=m.getSlightlyDifferentColor(p,.1);return A.jsx(rde,{children:A.jsxs("div",{className:`${Vi(r)?"csdk-min-w-[216px]":""} ${a?"":"csdk-p-px"} csdk-w-min csdk-text-text-content csdk-self-start ${(_=s.border)!=null&&_.shouldBeShown?"csdk-border csdk-border-solid csdk-border-[#dadada]":""}`,style:{backgroundColor:o?v:p},children:[Vi(r)&&s.header.shouldBeShown&&A.jsxs(A.Fragment,{children:[a&&A.jsx(Rj,{}),A.jsxs("header",{className:"csdk-flex csdk-items-center "+(s.header.hasBorder?"csdk-border-0 csdk-border-b csdk-border-solid csdk-border-b-[#dadada]":""),style:{color:f},children:[s.header.isCollapsible&&A.jsx(Mue,{"aria-label":"arrow-down",width:"16",height:"16",fill:`${f!=null?f:"#5B6372"}`,className:`csdk-transition csdk-ml-[4px] csdk-cursor-pointer ${c?"-csdk-rotate-90":""}`,onClick:()=>l(y=>!y)}),A.jsx("span",{className:"csdk-text-[13px] csdk-mt-[6px] csdk-mb-[4px] csdk-ml-[7px] csdk-leading-[16px]",style:{color:f},children:t})]})]}),A.jsx("main",{style:{color:f},children:n(c,o!=null?o:!1)}),Vi(r)&&s.footer.shouldBeShown&&A.jsx("footer",{className:"csdk-flex csdk-justify-end csdk-items-center csdk-min-h-[26px] csdk-border-0 csdk-border-t csdk-border-solid csdk-border-t-[#dadada]",children:A.jsx(Zue,{checked:!o,size:"small",onChange:()=>i==null?void 0:i(),inputProps:{role:"switch",name:"tile-switch"},theme:d})})]})})};function rd(e,t,n){if(!e&&!n)throw new Error("`useSynchronizedFilter` hook must take at least one of [non-null `filterFromProps`] or [`createEmptyFilter` function]");const r=e||n(),[o,i]=Y.useState(r),a=m.usePrevious(e);Y.useEffect(()=>{e&&(!a||!ode(a,e))&&i(e)},[e,a]);const s=Y.useCallback(c=>{i(c),t(c)},[t]);return{filter:o,updateFilter:s}}function ode(e,t){return e===t||e.name===t.name}const Dj=({name:e,active:t,disabled:n,onClick:r})=>{const{themeSettings:o}=m.useThemeContext(),i=t&&!n,a=i?o.general.brandColor:"#cbced7",s=i?o.general.primaryButtonTextColor:"#ffffff";return A.jsx("button",{onClick:r,className:"csdk-border-0 csdk-whitespace-nowrap csdk-text-ellipsis csdk-rounded-pill csdk-leading-[18px] csdk-text-pill csdk-px-2 csdk-py-[3px] csdk-tracking-[0.3px] csdk-select-none",style:{backgroundColor:a,color:s},disabled:n,children:e})},ide=({disabled:e})=>A.jsx(Dj,{name:"Include all",disabled:e,active:!0}),Mj=({selectedMembers:e,onToggleSelectedMember:t,disabled:n})=>{const r=e.length===0;return A.jsxs("div",{className:"csdk-flex csdk-flex-wrap csdk-p-3 csdk-gap-[5px] csdk-max-h-[150px] csdk-overflow-auto",children:[r&&A.jsx(ide,{disabled:n}),!r&&e.map(o=>A.jsx(Dj,{name:o.title,active:!o.inactive,onClick:()=>t(o.key),disabled:n},o.key))]})},ade=m.newStyled.input`
|
|
496
|
+
font-size: 13px;
|
|
497
|
+
padding-left: 0.75rem;
|
|
498
|
+
background-color: transparent;
|
|
499
|
+
color: inherit;
|
|
500
|
+
outline: none;
|
|
501
|
+
border: none;
|
|
502
|
+
appearance: none;
|
|
503
|
+
font-family: inherit;
|
|
504
|
+
|
|
505
|
+
&:focus {
|
|
506
|
+
outline: none;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
&::-webkit-search-cancel-button,
|
|
510
|
+
&::-webkit-search-decoration {
|
|
511
|
+
-webkit-appearance: none;
|
|
512
|
+
appearance: none;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
&::placeholder {
|
|
516
|
+
color: inherit;
|
|
517
|
+
opacity: 0.75;
|
|
518
|
+
}
|
|
519
|
+
`,sde=300,lde=({onChange:e,delayMs:t=sde,disabled:n})=>{const r=m.debounce(o=>e(o),t);return A.jsx(ade,{placeholder:"Start typing to search...",disabled:n,onChange:o=>{r(o.target.value)},type:"search"})},cde=({label:e,checked:t,onCheck:n,disabled:r,inactive:o})=>A.jsx(Tj,{wrapperClassName:"csdk-border-b hover:csdk-bg-row-hover",label:e,isLabelInactive:o,checked:t,readOnly:!0,onChange:i=>n(i.target.checked),disabled:r}),Pj=({members:e,selectedMembers:t,onSelectMember:n,selectAllMembers:r,clearAllMembers:o,disabled:i})=>{const[a,s]=Y.useState(""),c=Y.useMemo(()=>a&&a.trim().length>0?e.filter(d=>d.title.toLowerCase().includes(a.toLowerCase())):e,[e,a]),l=t.length===e.length;return A.jsxs("div",{className:"csdk-p-3",children:[A.jsxs("div",{className:"csdk-flex csdk-mb-[3px]",children:[A.jsx(Tj,{"aria-label":"change-all",checked:l,onChange:d=>{d.target.checked?r():o()},readOnly:!0,disabled:i}),A.jsx(lde,{onChange:d=>s(d),disabled:i})]}),A.jsx("div",{className:"csdk-max-h-[150px] csdk-overflow-auto",children:c.map(d=>A.jsx(cde,{label:d.title,checked:t.some(p=>d.key===p.key),onCheck:p=>n(d,p),disabled:i,inactive:t.some(p=>d.key===p.key&&p.inactive)},d.key))})]})},sg=e=>{const t=ude(e);return t.disabled=!e.disabled,t},ude=e=>{const t=m.cloneDeep(e);return Object.setPrototypeOf(t,e),t},bx=m.asSisenseComponent({componentName:"MemberFilterTile"})(e=>{const{title:t,attribute:n,filter:r,dataSource:o,onChange:i,parentFilters:a,tileDesignOptions:s}=e,{filter:c,updateFilter:l}=rd(r,i,()=>new m.MembersFilter(n,[])),d=Y.useMemo(()=>[n],[n]),{data:p,error:f}=vx({dataSource:o,dimensions:d,filters:a}),v=Y.useMemo(()=>p?p.rows.map(y=>y[0]):[],[p]),b=Y.useMemo(()=>{const y=RM(c.members,n.type),C=RM(c._deactivatedMembers,n.type);return v.filter(k=>y.includes(k.data)||C.includes(k.data)).map(k=>{var T;return{key:k.data.toString(),title:(T=k.text)!=null?T:k.data.toString(),inactive:C.includes(k.data)}})},[c._deactivatedMembers,c.members,v,n.type]),_=Y.useMemo(()=>v.map(y=>{var C;return{key:y.data.toString(),title:(C=y.text)!=null?C:y.data.toString()}}),[v]);if(f)throw f;return p?A.jsx(ea,{title:t,renderContent:(y,C)=>y?A.jsx(Mj,{selectedMembers:b,onToggleSelectedMember:k=>{const T=fde(b,k);l(mp(c,T))},disabled:C}):A.jsx(Pj,{members:_,selectedMembers:b,onSelectMember:(k,T)=>{const x=T?pde(b,k):hde(b,k);l(mp(c,x))},selectAllMembers:()=>l(mp(c,_)),clearAllMembers:()=>l(mp(c,[])),disabled:C}),disabled:c.disabled,onToggleDisabled:()=>{const y=sg(c);l(y)},isDependent:a&&a.length>0,design:s}):null});function mp(e,t){const{activeFilterMembers:n,inactiveFilterMembers:r}=dde(t);return new m.MembersFilter(e.attribute,n,r,e.guid)}function dde(e){const t={activeFilterMembers:[],inactiveFilterMembers:[]};return e.forEach(n=>{n.inactive?t.inactiveFilterMembers.push(n.key):t.activeFilterMembers.push(n.key)}),t}function pde(e,t){return e.some(n=>n.key===t.key)?e:[...e,t]}function hde(e,t){return e.filter(n=>n.key!==t.key)}function fde(e,t){return e.map(n=>n.key===t?Te(he({},n),{inactive:!n.inactive}):n)}function RM(e,t){return e.map(n=>m.isNumber(t)?Number(n):n.toString())}var Ij=Symbol.for("immer-nothing"),DM=Symbol.for("immer-draftable"),to=Symbol.for("immer-state"),gde=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Rr(e,...t){if(process.env.NODE_ENV!=="production"){const n=gde[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var cc=Object.getPrototypeOf;function uc(e){return!!e&&!!e[to]}function Ns(e){var t;return e?Nj(e)||Array.isArray(e)||!!e[DM]||!!((t=e.constructor)!=null&&t[DM])||cg(e)||ug(e):!1}var mde=Object.prototype.constructor.toString();function Nj(e){if(!e||typeof e!="object")return!1;const t=cc(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===mde}function qh(e,t){lg(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function lg(e){const t=e[to];return t?t.type_:Array.isArray(e)?1:cg(e)?2:ug(e)?3:0}function E1(e,t){return lg(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Lj(e,t,n){const r=lg(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function vde(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function cg(e){return e instanceof Map}function ug(e){return e instanceof Set}function bs(e){return e.copy_||e.base_}function A1(e,t){if(cg(e))return new Map(e);if(ug(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Nj(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[to];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(cc(e),r)}else{const r=cc(e);if(r!==null&&n)return he({},e);const o=Object.create(r);return Object.assign(o,e)}}function yx(e,t=!1){return dg(e)||uc(e)||!Ns(e)||(lg(e)>1&&(e.set=e.add=e.clear=e.delete=bde),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>yx(r,!0))),e}function bde(){Rr(2)}function dg(e){return Object.isFrozen(e)}var yde={};function Ls(e){const t=yde[e];return t||Rr(0,e),t}var Bu;function jj(){return Bu}function wde(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function MM(e,t){t&&(Ls("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function O1(e){R1(e),e.drafts_.forEach(_de),e.drafts_=null}function R1(e){e===Bu&&(Bu=e.parent_)}function PM(e){return Bu=wde(Bu,e)}function _de(e){const t=e[to];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function IM(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[to].modified_&&(O1(t),Rr(4)),Ns(e)&&(e=Yh(t,e),t.parent_||Vh(t,e)),t.patches_&&Ls("Patches").generateReplacementPatches_(n[to].base_,e,t.patches_,t.inversePatches_)):e=Yh(t,n,[]),O1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ij?e:void 0}function Yh(e,t,n){if(dg(t))return t;const r=t[to];if(!r)return qh(t,(o,i)=>NM(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Vh(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),qh(i,(s,c)=>NM(e,r,o,s,c,n,a)),Vh(e,o,!1),n&&e.patches_&&Ls("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function NM(e,t,n,r,o,i,a){if(process.env.NODE_ENV!=="production"&&o===n&&Rr(5),uc(o)){const s=i&&t&&t.type_!==3&&!E1(t.assigned_,r)?i.concat(r):void 0,c=Yh(e,o,s);if(Lj(n,r,c),uc(c))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(Ns(o)&&!dg(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Yh(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Vh(e,o)}}function Vh(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&yx(t,n)}function xde(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:jj(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=wx;n&&(o=[r],i=Hu);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var wx={get(e,t){if(t===to)return e;const n=bs(e);if(!E1(n,t))return Cde(e,n,t);const r=n[t];return e.finalized_||!Ns(r)?r:r===U0(e.base_,t)?(q0(e),e.copy_[t]=M1(r,e)):r},has(e,t){return t in bs(e)},ownKeys(e){return Reflect.ownKeys(bs(e))},set(e,t,n){const r=Fj(bs(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=U0(bs(e),t),i=o==null?void 0:o[to];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(vde(n,o)&&(n!==void 0||E1(e.base_,t)))return!0;q0(e),D1(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return U0(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,q0(e),D1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=bs(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Rr(11)},getPrototypeOf(e){return cc(e.base_)},setPrototypeOf(){Rr(12)}},Hu={};qh(wx,(e,t)=>{Hu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Hu.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Rr(13),Hu.set.call(this,e,t,void 0)};Hu.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Rr(14),wx.set.call(this,e[0],t,n,e[0])};function U0(e,t){const n=e[to];return(n?bs(n):e)[t]}function Cde(e,t,n){var o;const r=Fj(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function Fj(e,t){if(!(t in e))return;let n=cc(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=cc(n)}}function D1(e){e.modified_||(e.modified_=!0,e.parent_&&D1(e.parent_))}function q0(e){e.copy_||(e.copy_=A1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Sde=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(c=i,...l){return a.produce(c,d=>n.call(this,d,...l))}}typeof n!="function"&&Rr(6),r!==void 0&&typeof r!="function"&&Rr(7);let o;if(Ns(t)){const i=PM(this),a=M1(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?O1(i):R1(i)}return MM(i,r),IM(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Ij&&(o=void 0),this.autoFreeze_&&yx(o,!0),r){const i=[],a=[];Ls("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else Rr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,c=>t(c,...s));let r,o;return[this.produce(t,n,(a,s)=>{r=a,o=s}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ns(e)||Rr(8),uc(e)&&(e=kde(e));const t=PM(this),n=M1(e,void 0);return n[to].isManual_=!0,R1(t),n}finishDraft(e,t){const n=e&&e[to];(!n||!n.isManual_)&&Rr(9);const{scope_:r}=n;return MM(r,t),IM(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Ls("Patches").applyPatches_;return uc(e)?r(e,t):this.produce(e,o=>r(o,t))}};function M1(e,t){const n=cg(e)?Ls("MapSet").proxyMap_(e,t):ug(e)?Ls("MapSet").proxySet_(e,t):xde(e,t);return(t?t.scope_:jj()).drafts_.push(n),n}function kde(e){return uc(e)||Rr(10,e),Bj(e)}function Bj(e){if(!Ns(e)||dg(e))return e;const t=e[to];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=A1(e,t.scope_.immer_.useStrictShallowCopy_)}else n=A1(e,!0);return qh(n,(r,o)=>{Lj(n,r,Bj(o))}),t&&(t.finalized_=!1),n}var no=new Sde,zs=no.produce;no.produceWithPatches.bind(no);no.setAutoFreeze.bind(no);no.setUseStrictShallowCopy.bind(no);no.applyPatches.bind(no);no.createDraft.bind(no);no.finishDraft.bind(no);function Tde(e,t){switch(t.type){case"selectMember":return Ede(e,t.member);case"deselectMember":return Ade(e,t.memberIndex);case"selectAllMembers":return Ode(e);case"updateMembers":return Rde(e,t.members);case"clearAllMembers":return Mde(e);case"updatePossibleMembers":return Dde(e,t.members);case"toggleSelectedMember":return Pde(e,t.memberKey)}}function Ede(e,t){return zs(e,n=>{n.selectedMembers.push(t)})}function Ade(e,t){return zs(e,n=>{n.selectedMembers.splice(t,1)})}function Ode(e){return zs(e,t=>{t.selectedMembers=t.members})}function Rde(e,t){return zs(e,n=>{n.selectedMembers=t})}function Dde(e,t){return zs(e,n=>{n.members=t,t.some(r=>!n.selectedMembers.some(o=>r.key===o.key))?n.selectedMembers=[]:n.selectedMembers=n.selectedMembers.filter(r=>t.some(o=>o.key===r.key))})}function Mde(e){return zs(e,t=>{t.selectedMembers=[]})}function Pde(e,t){return zs(e,n=>{const r=n.selectedMembers.find(o=>o.key===t);r&&(r.inactive=!r.inactive)})}const Ide=({initialMembers:e,initialSelectedMembers:t,onUpdateSelectedMembers:n,disabled:r})=>{const[{members:o,selectedMembers:i},a]=Y.useReducer(Tde,{selectedMembers:t,members:e}),s=Y.useMemo(()=>i.filter(d=>!d.inactive).map(d=>d.key),[i]),c=Y.useRef(r);Y.useEffect(()=>{r!==c.current&&(c.current=r,n==null||n(r?[]:s,r))},[r,s,n]);const l=Y.useRef(i);return Y.useEffect(()=>{m.isEqual(i,l.current)||(l.current=i,n==null||n(s,r))},[i,s,n,r]),{members:o,selectedMembers:i,dispatch:a}},Nde=(e,t)=>{const n={};for(const r of e){const o=t(r);o in n||(n[o]=r)}return Object.values(n)},Lde=({allMembers:e,initialSelectedMembers:t,maxAllowedMembers:n})=>{const r=Y.useMemo(()=>e.length>n?(console.warn(`List of members exceeds max allowed size, limiting from ${e.length} to ${n} members`),[...e.slice(0,n-t.length),...t]):e,[e,n,t]);return Y.useMemo(()=>{const o=Nde(r,i=>i.key);return o.length!==r.length?(console.warn("Removing detected duplicate member(s)"),o):r},[r])},jde=({title:e,allMembers:t,initialSelectedMembers:n=[],onUpdateSelectedMembers:r,maxAllowedMembers:o=2e3,isDependent:i,shouldUpdateSelectedMembers:a,disabled:s})=>{const[c,l]=Y.useState(s!=null?s:!1),d=Lde({allMembers:t,initialSelectedMembers:n,maxAllowedMembers:o}),{members:p,selectedMembers:f,dispatch:v}=Ide({initialMembers:d,initialSelectedMembers:n,onUpdateSelectedMembers:r,disabled:c}),b=y=>{const C=f.findIndex(k=>k.key===y.key);v(C===-1?{type:"selectMember",member:y}:{type:"deselectMember",memberIndex:C})},_=Y.useMemo(()=>p.filter(y=>f.some(C=>y.key===C.key)||n.some(C=>y.key===C.key)).map(y=>Te(he({},y),{inactive:!n.some(C=>y.key===C.key)})),[n,p,f]);return Y.useEffect(()=>{const y=n.filter(T=>f.some(x=>T.key===x.key&&!!T.inactive==!!x.inactive)).length!==n.length,C=f.filter(T=>!n.some(x=>T.key===x.key)&&!T.inactive).length!==0;a&&(y||C)&&(v({type:"updateMembers",members:_}),c&&n.length>0&&l(T=>!T)),m.isEqual(t,p)||v({type:"updatePossibleMembers",members:t})},[t,c,v,n,p,_,f,e,a]),A.jsx(ea,{title:e,renderContent:(y,C)=>y?A.jsx(Mj,{selectedMembers:f,onToggleSelectedMember:k=>{v({type:"toggleSelectedMember",memberKey:k})},disabled:C}):A.jsx(Pj,{members:p,selectedMembers:f,onSelectMember:b,selectAllMembers:()=>v({type:"selectAllMembers"}),clearAllMembers:()=>v({type:"clearAllMembers"}),disabled:C}),disabled:c,onToggleDisabled:()=>l(y=>!y),isDependent:i})};var Hj={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(m.commonjsGlobal,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",c="hour",l="day",d="week",p="month",f="quarter",v="year",b="date",_="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var H=["th","st","nd","rd"],$=F%100;return"["+F+(H[($-20)%10]||H[$]||H[0])+"]"}},T=function(F,H,$){var G=String(F);return!G||G.length>=H?F:""+Array(H+1-G.length).join($)+F},x={s:T,z:function(F){var H=-F.utcOffset(),$=Math.abs(H),G=Math.floor($/60),K=$%60;return(H<=0?"+":"-")+T(G,2,"0")+":"+T(K,2,"0")},m:function F(H,$){if(H.date()<$.date())return-F($,H);var G=12*($.year()-H.year())+($.month()-H.month()),K=H.clone().add(G,p),Z=$-K<0,X=H.clone().add(G+(Z?-1:1),p);return+(-(G+($-K)/(Z?K-X:X-K))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:p,y:v,w:d,d:l,D:b,h:c,m:s,s:a,ms:i,Q:f}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},E="en",O={};O[E]=k;var S="$isDayjsObject",R=function(F){return F instanceof j||!(!F||!F[S])},D=function F(H,$,G){var K;if(!H)return E;if(typeof H=="string"){var Z=H.toLowerCase();O[Z]&&(K=Z),$&&(O[Z]=$,K=Z);var X=H.split("-");if(!K&&X.length>1)return F(X[0])}else{var se=H.name;O[se]=H,K=se}return!G&&K&&(E=K),K||!G&&E},P=function(F,H){if(R(F))return F.clone();var $=typeof H=="object"?H:{};return $.date=F,$.args=arguments,new j($)},I=x;I.l=D,I.i=R,I.w=function(F,H){return P(F,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var j=function(){function F($){this.$L=D($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[S]=!0}var H=F.prototype;return H.parse=function($){this.$d=function(G){var K=G.date,Z=G.utc;if(K===null)return new Date(NaN);if(I.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var X=K.match(y);if(X){var se=X[2]-1||0,ve=(X[7]||"0").substring(0,3);return Z?new Date(Date.UTC(X[1],se,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ve)):new Date(X[1],se,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ve)}}return new Date(K)}($),this.init()},H.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},H.$utils=function(){return I},H.isValid=function(){return this.$d.toString()!==_},H.isSame=function($,G){var K=P($);return this.startOf(G)<=K&&K<=this.endOf(G)},H.isAfter=function($,G){return P($)<this.startOf(G)},H.isBefore=function($,G){return this.endOf(G)<P($)},H.$g=function($,G,K){return I.u($)?this[G]:this.set(K,$)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function($,G){var K=this,Z=!!I.u(G)||G,X=I.p($),se=function(N,z){var Q=I.w(K.$u?Date.UTC(K.$y,z,N):new Date(K.$y,z,N),K);return Z?Q:Q.endOf(l)},ve=function(N,z){return I.w(K.toDate()[N].apply(K.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(z)),K)},fe=this.$W,me=this.$M,ge=this.$D,Se="set"+(this.$u?"UTC":"");switch(X){case v:return Z?se(1,0):se(31,11);case p:return Z?se(1,me):se(0,me+1);case d:var _e=this.$locale().weekStart||0,oe=(fe<_e?fe+7:fe)-_e;return se(Z?ge-oe:ge+(6-oe),me);case l:case b:return ve(Se+"Hours",0);case c:return ve(Se+"Minutes",1);case s:return ve(Se+"Seconds",2);case a:return ve(Se+"Milliseconds",3);default:return this.clone()}},H.endOf=function($){return this.startOf($,!1)},H.$set=function($,G){var K,Z=I.p($),X="set"+(this.$u?"UTC":""),se=(K={},K[l]=X+"Date",K[b]=X+"Date",K[p]=X+"Month",K[v]=X+"FullYear",K[c]=X+"Hours",K[s]=X+"Minutes",K[a]=X+"Seconds",K[i]=X+"Milliseconds",K)[Z],ve=Z===l?this.$D+(G-this.$W):G;if(Z===p||Z===v){var fe=this.clone().set(b,1);fe.$d[se](ve),fe.init(),this.$d=fe.set(b,Math.min(this.$D,fe.daysInMonth())).$d}else se&&this.$d[se](ve);return this.init(),this},H.set=function($,G){return this.clone().$set($,G)},H.get=function($){return this[I.p($)]()},H.add=function($,G){var K,Z=this;$=Number($);var X=I.p(G),se=function(me){var ge=P(Z);return I.w(ge.date(ge.date()+Math.round(me*$)),Z)};if(X===p)return this.set(p,this.$M+$);if(X===v)return this.set(v,this.$y+$);if(X===l)return se(1);if(X===d)return se(7);var ve=(K={},K[s]=r,K[c]=o,K[a]=n,K)[X]||1,fe=this.$d.getTime()+$*ve;return I.w(fe,this)},H.subtract=function($,G){return this.add(-1*$,G)},H.format=function($){var G=this,K=this.$locale();if(!this.isValid())return K.invalidDate||_;var Z=$||"YYYY-MM-DDTHH:mm:ssZ",X=I.z(this),se=this.$H,ve=this.$m,fe=this.$M,me=K.weekdays,ge=K.months,Se=K.meridiem,_e=function(z,Q,re,ue){return z&&(z[Q]||z(G,Z))||re[Q].slice(0,ue)},oe=function(z){return I.s(se%12||12,z,"0")},N=Se||function(z,Q,re){var ue=z<12?"AM":"PM";return re?ue.toLowerCase():ue};return Z.replace(C,function(z,Q){return Q||function(re){switch(re){case"YY":return String(G.$y).slice(-2);case"YYYY":return I.s(G.$y,4,"0");case"M":return fe+1;case"MM":return I.s(fe+1,2,"0");case"MMM":return _e(K.monthsShort,fe,ge,3);case"MMMM":return _e(ge,fe);case"D":return G.$D;case"DD":return I.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return _e(K.weekdaysMin,G.$W,me,2);case"ddd":return _e(K.weekdaysShort,G.$W,me,3);case"dddd":return me[G.$W];case"H":return String(se);case"HH":return I.s(se,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return N(se,ve,!0);case"A":return N(se,ve,!1);case"m":return String(ve);case"mm":return I.s(ve,2,"0");case"s":return String(G.$s);case"ss":return I.s(G.$s,2,"0");case"SSS":return I.s(G.$ms,3,"0");case"Z":return X}return null}(z)||X.replace(":","")})},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function($,G,K){var Z,X=this,se=I.p(G),ve=P($),fe=(ve.utcOffset()-this.utcOffset())*r,me=this-ve,ge=function(){return I.m(X,ve)};switch(se){case v:Z=ge()/12;break;case p:Z=ge();break;case f:Z=ge()/3;break;case d:Z=(me-fe)/6048e5;break;case l:Z=(me-fe)/864e5;break;case c:Z=me/o;break;case s:Z=me/r;break;case a:Z=me/n;break;default:Z=me}return K?Z:I.a(Z)},H.daysInMonth=function(){return this.endOf(p).$D},H.$locale=function(){return O[this.$L]},H.locale=function($,G){if(!$)return this.$L;var K=this.clone(),Z=D($,G,!0);return Z&&(K.$L=Z),K},H.clone=function(){return I.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},F}(),W=j.prototype;return P.prototype=W,[["$ms",i],["$s",a],["$m",s],["$H",c],["$W",l],["$M",p],["$y",v],["$D",b]].forEach(function(F){W[F[1]]=function(H){return this.$g(H,F[0],F[1])}}),P.extend=function(F,H){return F.$i||(F(H,j,P),F.$i=!0),P},P.locale=D,P.isDayjs=R,P.unix=function(F){return P(1e3*F)},P.en=O[E],P.Ls=O,P.p={},P})})(Hj);var Fde=Hj.exports;const Cn=m.getDefaultExportFromCjs(Fde);function Bde(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,P1(e,t)}function P1(e,t){return P1=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},P1(e,t)}function Hde(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function LM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $de(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function zde(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&$de(e,t,n))return!0;e=e.parentNode||e.host}return e}function Wde(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var Ude=function(){if(!(typeof window=="undefined"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function qde(e){return e===void 0&&(e=0),function(){return++e}}var Yde=qde(),I1,vp={},Y0={},Vde=["touchstart","touchmove"],Gde="ignore-react-onclickoutside";function jM(e,t){var n={},r=Vde.indexOf(t)!==-1;return r&&I1&&(n.passive=!e.props.preventDefault),n}function pg(e,t){var n,r,o=e.displayName||e.name||"Component";return r=n=function(i){Bde(a,i);function a(c){var l;return l=i.call(this,c)||this,l.__outsideClickHandler=function(d){if(typeof l.__clickOutsideHandlerProp=="function"){l.__clickOutsideHandlerProp(d);return}var p=l.getInstance();if(typeof p.props.handleClickOutside=="function"){p.props.handleClickOutside(d);return}if(typeof p.handleClickOutside=="function"){p.handleClickOutside(d);return}throw new Error("WrappedComponent: "+o+" lacks a handleClickOutside(event) function for processing outside click events.")},l.__getComponentNode=function(){var d=l.getInstance();return typeof d.setClickOutsideRef=="function"?d.setClickOutsideRef():mr.findDOMNode(d)},l.enableOnClickOutside=function(){if(!(typeof document=="undefined"||Y0[l._uid])){typeof I1=="undefined"&&(I1=Ude()),Y0[l._uid]=!0;var d=l.props.eventTypes;d.forEach||(d=[d]),vp[l._uid]=function(p){if(l.componentNode!==null&&(l.props.preventDefault&&p.preventDefault(),l.props.stopPropagation&&p.stopPropagation(),!(l.props.excludeScrollbar&&Wde(p)))){var f=p.composed&&p.composedPath&&p.composedPath().shift()||p.target;zde(f,l.componentNode,l.props.outsideClickIgnoreClass)===document&&l.__outsideClickHandler(p)}},d.forEach(function(p){document.addEventListener(p,vp[l._uid],jM(LM(l),p))})}},l.disableOnClickOutside=function(){delete Y0[l._uid];var d=vp[l._uid];if(d&&typeof document!="undefined"){var p=l.props.eventTypes;p.forEach||(p=[p]),p.forEach(function(f){return document.removeEventListener(f,d,jM(LM(l),f))}),delete vp[l._uid]}},l.getRef=function(d){return l.instanceRef=d},l._uid=Yde(),l}var s=a.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var l=this.instanceRef;return l.getInstance?l.getInstance():l},s.componentDidMount=function(){typeof document=="undefined"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var l=this.props,d=Hde(l,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?d.ref=this.getRef:d.wrappedRef=this.getRef,d.disableOnClickOutside=this.disableOnClickOutside,d.enableOnClickOutside=this.enableOnClickOutside,Y.createElement(e,d)},a}(Y.Component),n.displayName="OnClickOutside("+o+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:Gde,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var $j=B.createContext(),zj=B.createContext();function Qde(e){var t=e.children,n=B.useState(null),r=n[0],o=n[1],i=B.useRef(!1);B.useEffect(function(){return function(){i.current=!0}},[]);var a=B.useCallback(function(s){i.current||o(s)},[]);return B.createElement($j.Provider,{value:r},B.createElement(zj.Provider,{value:a},t))}var Wj=function(t){return Array.isArray(t)?t[0]:t},Uj=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,r)}},N1=function(t,n){if(typeof t=="function")return Uj(t,n);t!=null&&(t.current=n)},FM=function(t){return t.reduce(function(n,r){var o=r[0],i=r[1];return n[o]=i,n},{})},BM=typeof window!="undefined"&&window.document&&window.document.createElement?B.useLayoutEffect:B.useEffect,Jde=typeof Element!="undefined",Zde=typeof Map=="function",Kde=typeof Set=="function",Xde=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Bp(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Bp(e[r],t[r]))return!1;return!0}var i;if(Zde&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Bp(r.value[1],t.get(r.value[0])))return!1;return!0}if(Kde&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Xde&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Jde&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Bp(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var epe=function(t,n){try{return Bp(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const tpe=m.getDefaultExportFromCjs(epe);var npe=[],rpe=function(t,n,r){r===void 0&&(r={});var o=B.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||npe},a=B.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],c=a[1],l=B.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var b=v.state,_=Object.keys(b.elements);gP.flushSync(function(){c({styles:FM(_.map(function(y){return[y,b.styles[y]||{}]})),attributes:FM(_.map(function(y){return[y,b.attributes[y]]}))})})},requires:["computeStyles"]}},[]),d=B.useMemo(function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[l,{name:"applyStyles",enabled:!1}])};return tpe(o.current,f)?o.current||f:(o.current=f,f)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),p=B.useRef();return BM(function(){p.current&&p.current.setOptions(d)},[d]),BM(function(){if(!(t==null||n==null)){var f=r.createPopper||m.createPopper,v=f(t,n,d);return p.current=v,function(){v.destroy(),p.current=null}}},[t,n,r.createPopper]),{state:p.current?p.current.state:null,styles:s.styles,attributes:s.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}},ope=function(){},ipe=function(){return Promise.resolve(null)},ape=[];function spe(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,o=r===void 0?"absolute":r,i=e.modifiers,a=i===void 0?ape:i,s=e.referenceElement,c=e.onFirstUpdate,l=e.innerRef,d=e.children,p=B.useContext($j),f=B.useState(null),v=f[0],b=f[1],_=B.useState(null),y=_[0],C=_[1];B.useEffect(function(){N1(l,v)},[l,v]);var k=B.useMemo(function(){return{placement:n,strategy:o,onFirstUpdate:c,modifiers:[].concat(a,[{name:"arrow",enabled:y!=null,options:{element:y}}])}},[n,o,c,a,y]),T=rpe(s||p,v,k),x=T.state,E=T.styles,O=T.forceUpdate,S=T.update,R=B.useMemo(function(){return{ref:b,style:E.popper,placement:x?x.placement:n,hasPopperEscaped:x&&x.modifiersData.hide?x.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:x&&x.modifiersData.hide?x.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:E.arrow,ref:C},forceUpdate:O||ope,update:S||ipe}},[b,C,n,x,E,S,O]);return Wj(d)(R)}var lpe=process.env.NODE_ENV!=="production",qj=function(){};if(lpe){var cpe=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var o=1;o<r;o++)n[o-1]=arguments[o];var i=0,a="Warning: "+t.replace(/%s/g,function(){return n[i++]});typeof console!="undefined"&&console.error(a);try{throw new Error(a)}catch(s){}};qj=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var o=2;o<r;o++)n[o-2]=arguments[o];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||cpe.apply(null,[t].concat(n))}}var upe=qj;const dpe=m.getDefaultExportFromCjs(upe);function ppe(e){var t=e.children,n=e.innerRef,r=B.useContext(zj),o=B.useCallback(function(i){N1(n,i),Uj(r,i)},[n,r]);return B.useEffect(function(){return function(){return N1(n,null)}},[]),B.useEffect(function(){dpe(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),Wj(t)({ref:o})}function HM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Gh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HM(Object(n),!0).forEach(function(r){J(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L1(e){return L1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L1(e)}function Fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $M(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,Yj(r.key),r)}}function Bn(e,t,n){return t&&$M(e.prototype,t),n&&$M(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function J(e,t,n){return(t=Yj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dc(){return dc=Object.assign?Object.assign.bind():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},dc.apply(this,arguments)}function Hn(e,t){if(typeof t!="function"&&t!==null)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&&j1(e,t)}function Qh(e){return Qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qh(e)}function j1(e,t){return j1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},j1(e,t)}function ee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $n(e){var t=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Qh(e);if(t){var o=Qh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(i,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ee(i)}(this,n)}}function $u(e){return function(t){if(Array.isArray(t))return V0(t)}(e)||function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(t){if(typeof t=="string")return V0(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V0(t,n)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
520
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function V0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yj(e){var t=function(n,r){if(typeof n!="object"||n===null)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(e,"string");return typeof t=="symbol"?t:String(t)}var zM=function(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"})}},WM=function(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"})}},hpe={p:WM,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return zM(e,t);switch(o){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}}",zM(o,t)).replace("{{time}}",WM(i,t))}},bu=12,fpe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Ht(e){var t=e?typeof e=="string"||e instanceof String?m.parseISO(e):m.toDate(e):new Date;return xa(t)?t:null}function xa(e,t){return t=t||new Date("1/1/1000"),Nu(e)&&!Ma(e,t)}function en(e,t,n){if(n==="en")return hM(e,t,{awareOfUnicodeTokens:!0});var r=Es(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Ts()&&Es(Ts())&&(r=Es(Ts())),hM(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function ci(e,t){var n=t.dateFormat,r=t.locale;return e&&en(e,Array.isArray(n)?n[0]:n,r)||""}function UM(e,t){var n=t.hour,r=n===void 0?0:n,o=t.minute,i=o===void 0?0:o,a=t.second;return Ip(Np(vle(e,a===void 0?0:a),i),r)}function Ci(e,t,n){var r=Es(t||Ts());return YL(e,{locale:r,weekStartsOn:n})}function Na(e){return tj(e)}function lu(e){return nj(e)}function qM(e){return g1(e)}function YM(){return _i(Ht())}function Pa(e,t){return e&&t?gle(e,t):!e&&!t}function Yo(e,t){return e&&t?hle(e,t):!e&&!t}function Jh(e,t){return e&&t?fle(e,t):!e&&!t}function Ut(e,t){return e&&t?use(e,t):!e&&!t}function Cs(e,t){return e&&t?mse(e,t):!e&&!t}function Hp(e,t,n){var r,o=_i(t),i=v1(n);try{r=Lu(e,{start:o,end:i})}catch(a){r=!1}return r}function Ts(){return(typeof window!="undefined"?window:globalThis).__localeId__}function Es(e){if(typeof e=="string"){var t=typeof window!="undefined"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function _x(e,t){return en(m.setMonth(Ht(),e),"LLLL",t)}function Vj(e,t){return en(m.setMonth(Ht(),e),"LLL",t)}function hg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,c=t.filterDate;return fg(e,{minDate:n,maxDate:r})||o&&o.some(function(l){return Ut(e,l)})||i&&i.some(function(l){var d=l.start,p=l.end;return Lu(e,{start:d,end:p})})||a&&!a.some(function(l){return Ut(e,l)})||s&&!s.some(function(l){var d=l.start,p=l.end;return Lu(e,{start:d,end:p})})||c&&!c(Ht(e))||!1}function xx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(o){var i=o.start,a=o.end;return Lu(e,{start:i,end:a})}):n&&n.some(function(o){return Ut(e,o)})||!1}function Gj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return fg(e,{minDate:tj(n),maxDate:dse(r)})||o&&o.some(function(s){return Yo(e,s)})||i&&!i.some(function(s){return Yo(e,s)})||a&&!a(Ht(e))||!1}function G0(e,t,n,r){var o=ct(e),i=lr(e),a=ct(t),s=lr(t),c=ct(r);return o===a&&o===c?i<=n&&n<=s:o<a?c===o&&i<=n||c===a&&s>=n||c<a&&c>o:void 0}function gpe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return fg(e,{minDate:n,maxDate:r})||o&&o.some(function(s){return Jh(e,s)})||i&&!i.some(function(s){return Jh(e,s)})||a&&!a(Ht(e))||!1}function Q0(e,t,n){if(!Nu(t)||!Nu(n))return!1;var r=ct(t),o=ct(n);return r<=e&&o>=e}function Qj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate,s=new Date(e,0,1);return fg(s,{minDate:nj(n),maxDate:pse(r)})||o&&o.some(function(c){return Pa(s,c)})||i&&!i.some(function(c){return Pa(s,c)})||a&&!a(Ht(s))||!1}function J0(e,t,n,r){var o=ct(e),i=zl(e),a=ct(t),s=zl(t),c=ct(r);return o===a&&o===c?i<=n&&n<=s:o<a?c===o&&i<=n||c===a&&s>=n||c<a&&c>o:void 0}function fg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&Fh(e,n)<0||r&&Fh(e,r)>0}function VM(e,t){return t.some(function(n){return wi(n)===wi(e)&&xi(n)===xi(e)})}function GM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,o=t.filterTime;return n&&VM(e,n)||r&&!VM(e,r)||o&&!o(e)||!1}function QM(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var o,i=Ht(),a=Ip(Np(i,xi(e)),wi(e)),s=Ip(Np(i,xi(n)),wi(n)),c=Ip(Np(i,xi(r)),wi(r));try{o=!Lu(a,{start:s,end:c})}catch(l){o=!1}return o}function JM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,o=ac(e,1);return n&&Bh(n,o)>0||r&&r.every(function(i){return Bh(i,o)>0})||!1}function ZM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=m.addMonths(e,1);return n&&Bh(o,n)>0||r&&r.every(function(i){return Bh(o,i)>0})||!1}function KM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,o=m.subYears(e,1);return n&&Hh(n,o)>0||r&&r.every(function(i){return Hh(i,o)>0})||!1}function XM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=m.addYears(e,1);return n&&Hh(o,n)>0||r&&r.every(function(i){return Hh(o,i)>0})||!1}function Jj(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(o){return Fh(o,t)>=0});return mM(r)}return n?mM(n):t}function Zj(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(o){return Fh(o,t)<=0});return gM(r)}return n?gM(n):t}function eP(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,o=e.length;r<o;r++){var i=e[r];if(og(i)){var a=en(i,"MM.dd.yyyy"),s=n.get(a)||[];s.includes(t)||(s.push(t),n.set(a,s))}else if(L1(i)==="object"){var c=Object.keys(i),l=c[0],d=i[c[0]];if(typeof l=="string"&&d.constructor===Array)for(var p=0,f=d.length;p<f;p++){var v=en(d[p],"MM.dd.yyyy"),b=n.get(v)||[];b.includes(l)||(b.push(l),n.set(v,b))}}}return n}function mpe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach(function(r){var o=r.date,i=r.holidayName;if(og(o)){var a=en(o,"MM.dd.yyyy"),s=n.get(a)||{};if(!("className"in s)||s.className!==t||(c=s.holidayNames,l=[i],c.length!==l.length||!c.every(function(p,f){return p===l[f]}))){var c,l;s.className=t;var d=s.holidayNames;s.holidayNames=d?[].concat($u(d),[i]):[i],n.set(a,s)}}}),n}function vpe(e,t,n,r,o){for(var i=o.length,a=[],s=0;s<i;s++){var c=m1(ise(e,wi(o[s])),xi(o[s])),l=m1(e,(n+1)*r);Fa(c,t)&&Ma(c,l)&&a.push(o[s])}return a}function tP(e){return e<10?"0".concat(e):"".concat(e)}function Wl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bu,n=Math.ceil(ct(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function nP(e){var t=e.getSeconds(),n=e.getMilliseconds();return m.toDate(e.getTime()-1e3*t-n)}function bpe(e,t,n,r){for(var o=[],i=0;i<2*t+1;i++){var a=e+t-i,s=!0;n&&(s=ct(n)<=a),r&&s&&(s=ct(r)>=a),s&&o.push(a)}return o}var ype=pg(function(e){Hn(n,Y.Component);var t=$n(n);function n(r){var o;Fn(this,n),J(ee(o=t.call(this,r)),"renderOptions",function(){var c=o.props.year,l=o.state.yearsList.map(function(f){return Y.createElement("div",{className:c===f?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:f,onClick:o.onChange.bind(ee(o),f),"aria-selected":c===f?"true":void 0},c===f?Y.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",f)}),d=o.props.minDate?ct(o.props.minDate):null,p=o.props.maxDate?ct(o.props.maxDate):null;return p&&o.state.yearsList.find(function(f){return f===p})||l.unshift(Y.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:o.incrementYears},Y.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),d&&o.state.yearsList.find(function(f){return f===d})||l.push(Y.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:o.decrementYears},Y.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),l}),J(ee(o),"onChange",function(c){o.props.onChange(c)}),J(ee(o),"handleClickOutside",function(){o.props.onCancel()}),J(ee(o),"shiftYears",function(c){var l=o.state.yearsList.map(function(d){return d+c});o.setState({yearsList:l})}),J(ee(o),"incrementYears",function(){return o.shiftYears(1)}),J(ee(o),"decrementYears",function(){return o.shiftYears(-1)});var i=r.yearDropdownItemNumber,a=r.scrollableYearDropdown,s=i||(a?10:5);return o.state={yearsList:bpe(o.props.year,s,o.props.minDate,o.props.maxDate)},o.dropdownRef=Y.createRef(),o}return Bn(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;if(r){var o=r.children?Array.from(r.children):null,i=o?o.find(function(a){return a.ariaSelected}):null;r.scrollTop=i?i.offsetTop+(i.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}}},{key:"render",value:function(){var r=m.r({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return Y.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),wpe=function(e){Hn(n,Y.Component);var t=$n(n);function n(){var r;Fn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return J(ee(r=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),J(ee(r),"renderSelectOptions",function(){for(var s=r.props.minDate?ct(r.props.minDate):1900,c=r.props.maxDate?ct(r.props.maxDate):2100,l=[],d=s;d<=c;d++)l.push(Y.createElement("option",{key:d,value:d},d));return l}),J(ee(r),"onSelectChange",function(s){r.onChange(s.target.value)}),J(ee(r),"renderSelectMode",function(){return Y.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),J(ee(r),"renderReadView",function(s){return Y.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(c){return r.toggleDropdown(c)}},Y.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),Y.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))}),J(ee(r),"renderDropdown",function(){return Y.createElement(ype,{key:"dropdown",year:r.props.year,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})}),J(ee(r),"renderScrollMode",function(){var s=r.state.dropdownVisible,c=[r.renderReadView(!s)];return s&&c.unshift(r.renderDropdown()),c}),J(ee(r),"onChange",function(s){r.toggleDropdown(),s!==r.props.year&&r.props.onChange(s)}),J(ee(r),"toggleDropdown",function(s){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,s)})}),J(ee(r),"handleYearChange",function(s,c){r.onSelect(s,c),r.setOpen()}),J(ee(r),"onSelect",function(s,c){r.props.onSelect&&r.props.onSelect(s,c)}),J(ee(r),"setOpen",function(){r.props.setOpen&&r.props.setOpen(!0)}),r}return Bn(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return Y.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),_pe=pg(function(e){Hn(n,Y.Component);var t=$n(n);function n(){var r;Fn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return J(ee(r=t.call.apply(t,[this].concat(i))),"isSelectedMonth",function(s){return r.props.month===s}),J(ee(r),"renderOptions",function(){return r.props.monthNames.map(function(s,c){return Y.createElement("div",{className:r.isSelectedMonth(c)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:s,onClick:r.onChange.bind(ee(r),c),"aria-selected":r.isSelectedMonth(c)?"true":void 0},r.isSelectedMonth(c)?Y.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",s)})}),J(ee(r),"onChange",function(s){return r.props.onChange(s)}),J(ee(r),"handleClickOutside",function(){return r.props.onCancel()}),r}return Bn(n,[{key:"render",value:function(){return Y.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}()),xpe=function(e){Hn(n,Y.Component);var t=$n(n);function n(){var r;Fn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return J(ee(r=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),J(ee(r),"renderSelectOptions",function(s){return s.map(function(c,l){return Y.createElement("option",{key:l,value:l},c)})}),J(ee(r),"renderSelectMode",function(s){return Y.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(c){return r.onChange(c.target.value)}},r.renderSelectOptions(s))}),J(ee(r),"renderReadView",function(s,c){return Y.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},Y.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),Y.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},c[r.props.month]))}),J(ee(r),"renderDropdown",function(s){return Y.createElement(_pe,{key:"dropdown",month:r.props.month,monthNames:s,onChange:r.onChange,onCancel:r.toggleDropdown})}),J(ee(r),"renderScrollMode",function(s){var c=r.state.dropdownVisible,l=[r.renderReadView(!c,s)];return c&&l.unshift(r.renderDropdown(s)),l}),J(ee(r),"onChange",function(s){r.toggleDropdown(),s!==r.props.month&&r.props.onChange(s)}),J(ee(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Bn(n,[{key:"render",value:function(){var r,o=this,i=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(a){return Vj(a,o.props.locale)}:function(a){return _x(a,o.props.locale)});switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode(i);break;case"select":r=this.renderSelectMode(i)}return Y.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}();function Cpe(e,t){for(var n=[],r=Na(e),o=Na(t);!Fa(r,o);)n.push(Ht(r)),r=m.addMonths(r,1);return n}var Spe=pg(function(e){Hn(n,Y.Component);var t=$n(n);function n(r){var o;return Fn(this,n),J(ee(o=t.call(this,r)),"renderOptions",function(){return o.state.monthYearsList.map(function(i){var a=f1(i),s=Pa(o.props.date,i)&&Yo(o.props.date,i);return Y.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:o.onChange.bind(ee(o),a),"aria-selected":s?"true":void 0},s?Y.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",en(i,o.props.dateFormat,o.props.locale))})}),J(ee(o),"onChange",function(i){return o.props.onChange(i)}),J(ee(o),"handleClickOutside",function(){o.props.onCancel()}),o.state={monthYearsList:Cpe(o.props.minDate,o.props.maxDate)},o}return Bn(n,[{key:"render",value:function(){var r=m.r({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return Y.createElement("div",{className:r},this.renderOptions())}}]),n}()),kpe=function(e){Hn(n,Y.Component);var t=$n(n);function n(){var r;Fn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return J(ee(r=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),J(ee(r),"renderSelectOptions",function(){for(var s=Na(r.props.minDate),c=Na(r.props.maxDate),l=[];!Fa(s,c);){var d=f1(s);l.push(Y.createElement("option",{key:d,value:d},en(s,r.props.dateFormat,r.props.locale))),s=m.addMonths(s,1)}return l}),J(ee(r),"onSelectChange",function(s){r.onChange(s.target.value)}),J(ee(r),"renderSelectMode",function(){return Y.createElement("select",{value:f1(Na(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),J(ee(r),"renderReadView",function(s){var c=en(r.props.date,r.props.dateFormat,r.props.locale);return Y.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(l){return r.toggleDropdown(l)}},Y.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),Y.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},c))}),J(ee(r),"renderDropdown",function(){return Y.createElement(Spe,{key:"dropdown",date:r.props.date,dateFormat:r.props.dateFormat,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,locale:r.props.locale})}),J(ee(r),"renderScrollMode",function(){var s=r.state.dropdownVisible,c=[r.renderReadView(!s)];return s&&c.unshift(r.renderDropdown()),c}),J(ee(r),"onChange",function(s){r.toggleDropdown();var c=Ht(parseInt(s));Pa(r.props.date,c)&&Yo(r.props.date,c)||r.props.onChange(c)}),J(ee(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Bn(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return Y.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),Tpe=function(e){Hn(n,Y.Component);var t=$n(n);function n(){var r;Fn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return J(ee(r=t.call.apply(t,[this].concat(i))),"dayEl",Y.createRef()),J(ee(r),"handleClick",function(s){!r.isDisabled()&&r.props.onClick&&r.props.onClick(s)}),J(ee(r),"handleMouseEnter",function(s){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(s)}),J(ee(r),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)}),J(ee(r),"isSameDay",function(s){return Ut(r.props.day,s)}),J(ee(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!(r.isSameDay(r.props.selected)||r.isSameWeek(r.props.selected))&&(r.isSameDay(r.props.preSelection)||r.isSameWeek(r.props.preSelection))}),J(ee(r),"isDisabled",function(){return hg(r.props.day,r.props)}),J(ee(r),"isExcluded",function(){return xx(r.props.day,r.props)}),J(ee(r),"isStartOfWeek",function(){return Ut(r.props.day,Ci(r.props.day,r.props.locale,r.props.calendarStartDay))}),J(ee(r),"isSameWeek",function(s){return r.props.showWeekPicker&&Ut(s,Ci(r.props.day,r.props.locale,r.props.calendarStartDay))}),J(ee(r),"getHighLightedClass",function(){var s=r.props,c=s.day,l=s.highlightDates;if(!l)return!1;var d=en(c,"MM.dd.yyyy");return l.get(d)}),J(ee(r),"getHolidaysClass",function(){var s=r.props,c=s.day,l=s.holidays;if(!l)return!1;var d=en(c,"MM.dd.yyyy");return l.has(d)?[l.get(d).className]:void 0}),J(ee(r),"isInRange",function(){var s=r.props,c=s.day,l=s.startDate,d=s.endDate;return!(!l||!d)&&Hp(c,l,d)}),J(ee(r),"isInSelectingRange",function(){var s,c=r.props,l=c.day,d=c.selectsStart,p=c.selectsEnd,f=c.selectsRange,v=c.selectsDisabledDaysInRange,b=c.startDate,_=c.endDate,y=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return!(!(d||p||f)||!y||!v&&r.isDisabled())&&(d&&_&&(Ma(y,_)||Cs(y,_))?Hp(l,y,_):(p&&b&&(Fa(y,b)||Cs(y,b))||!(!f||!b||_||!Fa(y,b)&&!Cs(y,b)))&&Hp(l,b,y))}),J(ee(r),"isSelectingRangeStart",function(){var s;if(!r.isInSelectingRange())return!1;var c=r.props,l=c.day,d=c.startDate,p=c.selectsStart,f=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return Ut(l,p?f:d)}),J(ee(r),"isSelectingRangeEnd",function(){var s;if(!r.isInSelectingRange())return!1;var c=r.props,l=c.day,d=c.endDate,p=c.selectsEnd,f=c.selectsRange,v=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return Ut(l,p||f?v:d)}),J(ee(r),"isRangeStart",function(){var s=r.props,c=s.day,l=s.startDate,d=s.endDate;return!(!l||!d)&&Ut(l,c)}),J(ee(r),"isRangeEnd",function(){var s=r.props,c=s.day,l=s.startDate,d=s.endDate;return!(!l||!d)&&Ut(d,c)}),J(ee(r),"isWeekend",function(){var s=tse(r.props.day);return s===0||s===6}),J(ee(r),"isAfterMonth",function(){return r.props.month!==void 0&&(r.props.month+1)%12===lr(r.props.day)}),J(ee(r),"isBeforeMonth",function(){return r.props.month!==void 0&&(lr(r.props.day)+1)%12===r.props.month}),J(ee(r),"isCurrentDay",function(){return r.isSameDay(Ht())}),J(ee(r),"isSelected",function(){return r.isSameDay(r.props.selected)||r.isSameWeek(r.props.selected)}),J(ee(r),"getClassNames",function(s){var c,l=r.props.dayClassName?r.props.dayClassName(s):void 0;return m.r("react-datepicker__day",l,"react-datepicker__day--"+en(r.props.day,"ddd",c),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSelected(),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isCurrentDay(),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isAfterMonth()||r.isBeforeMonth()},r.getHighLightedClass("react-datepicker__day--highlighted"),r.getHolidaysClass())}),J(ee(r),"getAriaLabel",function(){var s=r.props,c=s.day,l=s.ariaLabelPrefixWhenEnabled,d=l===void 0?"Choose":l,p=s.ariaLabelPrefixWhenDisabled,f=p===void 0?"Not available":p,v=r.isDisabled()||r.isExcluded()?f:d;return"".concat(v," ").concat(en(c,"PPPP",r.props.locale))}),J(ee(r),"getTitle",function(){var s=r.props,c=s.day,l=s.holidays,d=l===void 0?new Map:l,p=en(c,"MM.dd.yyyy");return d.has(p)&&d.get(p).holidayNames.length>0?d.get(p).holidayNames.join(", "):""}),J(ee(r),"getTabIndex",function(s,c){var l=s||r.props.selected,d=c||r.props.preSelection;return(!r.props.showWeekPicker||!r.props.showWeekNumber&&r.isStartOfWeek())&&(r.isKeyboardSelected()||r.isSameDay(l)&&Ut(d,l))?0:-1}),J(ee(r),"handleFocusDay",function(){var s,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!c.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(l=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(l=!0),r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()&&(l=!1),r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()&&(l=!1)),l&&((s=r.dayEl.current)===null||s===void 0||s.focus({preventScroll:!0}))}),J(ee(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(vM(r.props.day),r.props.day):vM(r.props.day)}),J(ee(r),"render",function(){return Y.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option",title:r.getTitle(),"aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()||r.isInRange()},r.renderDayContents(),r.getTitle()!==""&&Y.createElement("span",{className:"holiday-overlay"},r.getTitle()))}),r}return Bn(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),Epe=function(e){Hn(n,Y.Component);var t=$n(n);function n(){var r;Fn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return J(ee(r=t.call.apply(t,[this].concat(i))),"weekNumberEl",Y.createRef()),J(ee(r),"handleClick",function(s){r.props.onClick&&r.props.onClick(s)}),J(ee(r),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)}),J(ee(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!Ut(r.props.date,r.props.selected)&&Ut(r.props.date,r.props.preSelection)}),J(ee(r),"getTabIndex",function(){return r.props.showWeekPicker&&r.props.showWeekNumber&&(r.isKeyboardSelected()||Ut(r.props.date,r.props.selected)&&Ut(r.props.preSelection,r.props.selected))?0:-1}),J(ee(r),"handleFocusWeekNumber",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=!1;r.getTabIndex()===0&&!s.isInputFocused&&Ut(r.props.date,r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(c=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(c=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(c=!0)),c&&r.weekNumberEl.current&&r.weekNumberEl.current.focus({preventScroll:!0})}),r}return Bn(n,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(r){this.handleFocusWeekNumber(r)}},{key:"render",value:function(){var r=this.props,o=r.weekNumber,i=r.ariaLabelPrefix,a=i===void 0?"week ":i,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!r.onClick,"react-datepicker__week-number--selected":Ut(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return Y.createElement("div",{ref:this.weekNumberEl,className:m.r(s),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},o)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n}(),Ape=function(e){Hn(n,Y.Component);var t=$n(n);function n(){var r;Fn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return J(ee(r=t.call.apply(t,[this].concat(i))),"handleDayClick",function(s,c){r.props.onDayClick&&r.props.onDayClick(s,c)}),J(ee(r),"handleDayMouseEnter",function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)}),J(ee(r),"handleWeekClick",function(s,c,l){if(typeof r.props.onWeekSelect=="function"&&r.props.onWeekSelect(s,c,l),r.props.showWeekPicker){var d=Ci(s,r.props.locale,r.props.calendarStartDay);r.handleDayClick(d,l)}r.props.shouldCloseOnSelect&&r.props.setOpen(!1)}),J(ee(r),"formatWeekNumber",function(s){return r.props.formatWeekNumber?r.props.formatWeekNumber(s):function(c,l){var d=Ts()&&Es(Ts());return gse(c,d?{locale:d}:null)}(s)}),J(ee(r),"renderDays",function(){var s=Ci(r.props.day,r.props.locale,r.props.calendarStartDay),c=[],l=r.formatWeekNumber(s);if(r.props.showWeekNumber){var d=r.props.onWeekSelect||r.props.showWeekPicker?r.handleWeekClick.bind(ee(r),s,l):void 0;c.push(Y.createElement(Epe,{key:"W",weekNumber:l,date:s,onClick:d,selected:r.props.selected,preSelection:r.props.preSelection,ariaLabelPrefix:r.props.ariaLabelPrefix,showWeekPicker:r.props.showWeekPicker,showWeekNumber:r.props.showWeekNumber,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef}))}return c.concat([0,1,2,3,4,5,6].map(function(p){var f=mc(s,p);return Y.createElement(Tpe,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:f.valueOf(),day:f,month:r.props.month,onClick:r.handleDayClick.bind(ee(r),f),onMouseEnter:r.handleDayMouseEnter.bind(ee(r),f),minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,showWeekPicker:r.props.showWeekPicker,showWeekNumber:r.props.showWeekNumber,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart,locale:r.props.locale})}))}),J(ee(r),"startOfWeek",function(){return Ci(r.props.day,r.props.locale,r.props.calendarStartDay)}),J(ee(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!Ut(r.startOfWeek(),r.props.selected)&&Ut(r.startOfWeek(),r.props.preSelection)}),r}return Bn(n,[{key:"render",value:function(){var r={"react-datepicker__week":!0,"react-datepicker__week--selected":Ut(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return Y.createElement("div",{className:m.r(r)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),Kj="two_columns",Xj="three_columns",e5="four_columns",Z0=J(J(J({},Kj,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),Xj,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),e5,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4});function rP(e,t){return e?e5:t?Kj:Xj}var Ope=function(e){Hn(n,Y.Component);var t=$n(n);function n(){var r;Fn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return J(ee(r=t.call.apply(t,[this].concat(i))),"MONTH_REFS",$u(Array(12)).map(function(){return Y.createRef()})),J(ee(r),"QUARTER_REFS",$u(Array(4)).map(function(){return Y.createRef()})),J(ee(r),"isDisabled",function(s){return hg(s,r.props)}),J(ee(r),"isExcluded",function(s){return xx(s,r.props)}),J(ee(r),"handleDayClick",function(s,c){r.props.onDayClick&&r.props.onDayClick(s,c,r.props.orderInDisplay)}),J(ee(r),"handleDayMouseEnter",function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)}),J(ee(r),"handleMouseLeave",function(){r.props.onMouseLeave&&r.props.onMouseLeave()}),J(ee(r),"isRangeStartMonth",function(s){var c=r.props,l=c.day,d=c.startDate,p=c.endDate;return!(!d||!p)&&Yo(m.setMonth(l,s),d)}),J(ee(r),"isRangeStartQuarter",function(s){var c=r.props,l=c.day,d=c.startDate,p=c.endDate;return!(!d||!p)&&Jh(Dl(l,s),d)}),J(ee(r),"isRangeEndMonth",function(s){var c=r.props,l=c.day,d=c.startDate,p=c.endDate;return!(!d||!p)&&Yo(m.setMonth(l,s),p)}),J(ee(r),"isRangeEndQuarter",function(s){var c=r.props,l=c.day,d=c.startDate,p=c.endDate;return!(!d||!p)&&Jh(Dl(l,s),p)}),J(ee(r),"isInSelectingRangeMonth",function(s){var c,l=r.props,d=l.day,p=l.selectsStart,f=l.selectsEnd,v=l.selectsRange,b=l.startDate,_=l.endDate,y=(c=r.props.selectingDate)!==null&&c!==void 0?c:r.props.preSelection;return!(!(p||f||v)||!y)&&(p&&_?G0(y,_,s,d):(f&&b||!(!v||!b||_))&&G0(b,y,s,d))}),J(ee(r),"isSelectingMonthRangeStart",function(s){var c;if(!r.isInSelectingRangeMonth(s))return!1;var l=r.props,d=l.day,p=l.startDate,f=l.selectsStart,v=m.setMonth(d,s),b=(c=r.props.selectingDate)!==null&&c!==void 0?c:r.props.preSelection;return Yo(v,f?b:p)}),J(ee(r),"isSelectingMonthRangeEnd",function(s){var c;if(!r.isInSelectingRangeMonth(s))return!1;var l=r.props,d=l.day,p=l.endDate,f=l.selectsEnd,v=l.selectsRange,b=m.setMonth(d,s),_=(c=r.props.selectingDate)!==null&&c!==void 0?c:r.props.preSelection;return Yo(b,f||v?_:p)}),J(ee(r),"isInSelectingRangeQuarter",function(s){var c,l=r.props,d=l.day,p=l.selectsStart,f=l.selectsEnd,v=l.selectsRange,b=l.startDate,_=l.endDate,y=(c=r.props.selectingDate)!==null&&c!==void 0?c:r.props.preSelection;return!(!(p||f||v)||!y)&&(p&&_?J0(y,_,s,d):(f&&b||!(!v||!b||_))&&J0(b,y,s,d))}),J(ee(r),"isWeekInMonth",function(s){var c=r.props.day,l=mc(s,6);return Yo(s,c)||Yo(l,c)}),J(ee(r),"isCurrentMonth",function(s,c){return ct(s)===ct(Ht())&&c===lr(Ht())}),J(ee(r),"isCurrentQuarter",function(s,c){return ct(s)===ct(Ht())&&c===zl(Ht())}),J(ee(r),"isSelectedMonth",function(s,c,l){return lr(l)===c&&ct(s)===ct(l)}),J(ee(r),"isSelectedQuarter",function(s,c,l){return zl(s)===c&&ct(s)===ct(l)}),J(ee(r),"renderWeeks",function(){for(var s=[],c=r.props.fixedHeight,l=0,d=!1,p=Ci(Na(r.props.day),r.props.locale,r.props.calendarStartDay);s.push(Y.createElement(Ape,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,key:l,day:p,month:lr(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onWeekSelect:r.props.onWeekSelect,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumber:r.props.showWeekNumbers,showWeekPicker:r.props.showWeekPicker,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderDayContents:r.props.renderDayContents,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,calendarStartDay:r.props.calendarStartDay,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart})),!d;){l++,p=Ih(p,1);var f=c&&l>=6,v=!c&&!r.isWeekInMonth(p);if(f||v){if(!r.props.peekNextMonth)break;d=!0}}return s}),J(ee(r),"onMonthClick",function(s,c){r.handleDayClick(Na(m.setMonth(r.props.day,c)),s)}),J(ee(r),"onMonthMouseEnter",function(s){r.handleDayMouseEnter(Na(m.setMonth(r.props.day,s)))}),J(ee(r),"handleMonthNavigation",function(s,c){r.isDisabled(c)||r.isExcluded(c)||(r.props.setPreSelection(c),r.MONTH_REFS[s].current&&r.MONTH_REFS[s].current.focus())}),J(ee(r),"onMonthKeyDown",function(s,c){var l=r.props,d=l.selected,p=l.preSelection,f=l.disabledKeyboardNavigation,v=l.showTwoColumnMonthYearPicker,b=l.showFourColumnMonthYearPicker,_=l.setPreSelection,y=s.key;if(y!=="Tab"&&s.preventDefault(),!f){var C=rP(b,v),k=Z0[C].verticalNavigationOffset,T=Z0[C].grid;switch(y){case"Enter":r.onMonthClick(s,c),_(d);break;case"ArrowRight":r.handleMonthNavigation(c===11?0:c+1,m.addMonths(p,1));break;case"ArrowLeft":r.handleMonthNavigation(c===0?11:c-1,ac(p,1));break;case"ArrowUp":r.handleMonthNavigation(T[0].includes(c)?c+12-k:c-k,ac(p,k));break;case"ArrowDown":r.handleMonthNavigation(T[T.length-1].includes(c)?c-12+k:c+k,m.addMonths(p,k))}}}),J(ee(r),"onQuarterClick",function(s,c){r.handleDayClick(qM(Dl(r.props.day,c)),s)}),J(ee(r),"onQuarterMouseEnter",function(s){r.handleDayMouseEnter(qM(Dl(r.props.day,s)))}),J(ee(r),"handleQuarterNavigation",function(s,c){r.isDisabled(c)||r.isExcluded(c)||(r.props.setPreSelection(c),r.QUARTER_REFS[s-1].current&&r.QUARTER_REFS[s-1].current.focus())}),J(ee(r),"onQuarterKeyDown",function(s,c){var l=s.key;if(!r.props.disabledKeyboardNavigation)switch(l){case"Enter":r.onQuarterClick(s,c),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleQuarterNavigation(c===4?1:c+1,VL(r.props.preSelection,1));break;case"ArrowLeft":r.handleQuarterNavigation(c===1?4:c-1,rse(r.props.preSelection,1))}}),J(ee(r),"getMonthClassNames",function(s){var c=r.props,l=c.day,d=c.startDate,p=c.endDate,f=c.selected,v=c.minDate,b=c.maxDate,_=c.preSelection,y=c.monthClassName,C=c.excludeDates,k=c.includeDates,T=y?y(m.setMonth(l,s)):void 0,x=m.setMonth(l,s);return m.r("react-datepicker__month-text","react-datepicker__month-".concat(s),T,{"react-datepicker__month-text--disabled":(v||b||C||k)&&Gj(x,r.props),"react-datepicker__month-text--selected":r.isSelectedMonth(l,s,f),"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&lr(_)===s,"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(s),"react-datepicker__month-text--in-range":G0(d,p,s,l),"react-datepicker__month-text--range-start":r.isRangeStartMonth(s),"react-datepicker__month-text--range-end":r.isRangeEndMonth(s),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(s),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(s),"react-datepicker__month-text--today":r.isCurrentMonth(l,s)})}),J(ee(r),"getTabIndex",function(s){var c=lr(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==c?"-1":"0"}),J(ee(r),"getQuarterTabIndex",function(s){var c=zl(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==c?"-1":"0"}),J(ee(r),"getAriaLabel",function(s){var c=r.props,l=c.chooseDayAriaLabelPrefix,d=l===void 0?"Choose":l,p=c.disabledDayAriaLabelPrefix,f=p===void 0?"Not available":p,v=c.day,b=m.setMonth(v,s),_=r.isDisabled(b)||r.isExcluded(b)?f:d;return"".concat(_," ").concat(en(b,"MMMM yyyy"))}),J(ee(r),"getQuarterClassNames",function(s){var c=r.props,l=c.day,d=c.startDate,p=c.endDate,f=c.selected,v=c.minDate,b=c.maxDate,_=c.preSelection,y=c.disabledKeyboardNavigation;return m.r("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter-text--disabled":(v||b)&&gpe(Dl(l,s),r.props),"react-datepicker__quarter-text--selected":r.isSelectedQuarter(l,s,f),"react-datepicker__quarter-text--keyboard-selected":!y&&zl(_)===s,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(s),"react-datepicker__quarter-text--in-range":J0(d,p,s,l),"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(s),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(s)})}),J(ee(r),"getMonthContent",function(s){var c=r.props,l=c.showFullMonthYearPicker,d=c.renderMonthContent,p=c.locale,f=c.day,v=Vj(s,p),b=_x(s,p);return d?d(s,v,b,f):l?b:v}),J(ee(r),"getQuarterContent",function(s){var c=r.props,l=c.renderQuarterContent,d=function(p,f){return en(Dl(Ht(),p),"QQQ",f)}(s,c.locale);return l?l(s,d):d}),J(ee(r),"renderMonths",function(){var s=r.props,c=s.showTwoColumnMonthYearPicker,l=s.showFourColumnMonthYearPicker,d=s.day,p=s.selected;return Z0[rP(l,c)].grid.map(function(f,v){return Y.createElement("div",{className:"react-datepicker__month-wrapper",key:v},f.map(function(b,_){return Y.createElement("div",{ref:r.MONTH_REFS[b],key:_,onClick:function(y){r.onMonthClick(y,b)},onKeyDown:function(y){r.onMonthKeyDown(y,b)},onMouseEnter:function(){return r.onMonthMouseEnter(b)},tabIndex:r.getTabIndex(b),className:r.getMonthClassNames(b),role:"option","aria-label":r.getAriaLabel(b),"aria-current":r.isCurrentMonth(d,b)?"date":void 0,"aria-selected":r.isSelectedMonth(d,b,p)},r.getMonthContent(b))}))})}),J(ee(r),"renderQuarters",function(){var s=r.props,c=s.day,l=s.selected;return Y.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(d,p){return Y.createElement("div",{key:p,ref:r.QUARTER_REFS[p],role:"option",onClick:function(f){r.onQuarterClick(f,d)},onKeyDown:function(f){r.onQuarterKeyDown(f,d)},onMouseEnter:function(){return r.onQuarterMouseEnter(d)},className:r.getQuarterClassNames(d),"aria-selected":r.isSelectedQuarter(c,d,l),tabIndex:r.getQuarterTabIndex(d),"aria-current":r.isCurrentQuarter(c,d)?"date":void 0},r.getQuarterContent(d))}))}),J(ee(r),"getClassNames",function(){var s=r.props,c=s.selectingDate,l=s.selectsStart,d=s.selectsEnd,p=s.showMonthYearPicker,f=s.showQuarterYearPicker,v=s.showWeekPicker;return m.r("react-datepicker__month",{"react-datepicker__month--selecting-range":c&&(l||d)},{"react-datepicker__monthPicker":p},{"react-datepicker__quarterPicker":f},{"react-datepicker__weekPicker":v})}),r}return Bn(n,[{key:"render",value:function(){var r=this.props,o=r.showMonthYearPicker,i=r.showQuarterYearPicker,a=r.day,s=r.ariaLabelPrefix,c=s===void 0?"month ":s;return Y.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(c," ").concat(en(a,"yyyy-MM")),role:"listbox"},o?this.renderMonths():i?this.renderQuarters():this.renderWeeks())}}]),n}(),t5=function(e){Hn(n,Y.Component);var t=$n(n);function n(){var r;Fn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return J(ee(r=t.call.apply(t,[this].concat(i))),"state",{height:null}),J(ee(r),"scrollToTheSelectedTime",function(){requestAnimationFrame(function(){r.list&&(r.list.scrollTop=r.centerLi&&n.calcCenterPosition(r.props.monthRef?r.props.monthRef.clientHeight-r.header.clientHeight:r.list.clientHeight,r.centerLi))})}),J(ee(r),"handleClick",function(s){(r.props.minTime||r.props.maxTime)&&QM(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&GM(s,r.props)||r.props.onChange(s)}),J(ee(r),"isSelectedTime",function(s){return r.props.selected&&(c=r.props.selected,l=s,nP(c).getTime()===nP(l).getTime());var c,l}),J(ee(r),"isDisabledTime",function(s){return(r.props.minTime||r.props.maxTime)&&QM(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&GM(s,r.props)}),J(ee(r),"liClasses",function(s){var c=["react-datepicker__time-list-item",r.props.timeClassName?r.props.timeClassName(s):void 0];return r.isSelectedTime(s)&&c.push("react-datepicker__time-list-item--selected"),r.isDisabledTime(s)&&c.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*wi(s)+xi(s))%r.props.intervals!=0&&c.push("react-datepicker__time-list-item--injected"),c.join(" ")}),J(ee(r),"handleOnKeyDown",function(s,c){s.key===" "&&(s.preventDefault(),s.key="Enter"),s.key!=="ArrowUp"&&s.key!=="ArrowLeft"||!s.target.previousSibling||(s.preventDefault(),s.target.previousSibling.focus()),s.key!=="ArrowDown"&&s.key!=="ArrowRight"||!s.target.nextSibling||(s.preventDefault(),s.target.nextSibling.focus()),s.key==="Enter"&&r.handleClick(c),r.props.handleOnKeyDown(s)}),J(ee(r),"renderTimes",function(){for(var s=[],c=r.props.format?r.props.format:"p",l=r.props.intervals,d=r.props.selected||r.props.openToDate||Ht(),p=_i(d),f=r.props.injectTimes&&r.props.injectTimes.sort(function(T,x){return T-x}),v=60*function(T){var x=new Date(T.getFullYear(),T.getMonth(),T.getDate()),E=new Date(T.getFullYear(),T.getMonth(),T.getDate(),24);return Math.round((+E-+x)/36e5)}(d),b=v/l,_=0;_<b;_++){var y=m1(p,_*l);if(s.push(y),f){var C=vpe(p,y,_,l,f);s=s.concat(C)}}var k=s.reduce(function(T,x){return x.getTime()<=d.getTime()?x:T},s[0]);return s.map(function(T,x){return Y.createElement("li",{key:x,onClick:r.handleClick.bind(ee(r),T),className:r.liClasses(T),ref:function(E){T===k&&(r.centerLi=E)},onKeyDown:function(E){r.handleOnKeyDown(E,T)},tabIndex:T===k?0:-1,role:"option","aria-selected":r.isSelectedTime(T)?"true":void 0,"aria-disabled":r.isDisabledTime(T)?"true":void 0},en(T,c,r.props.locale))})}),r}return Bn(n,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var r=this,o=this.state.height;return Y.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},Y.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(i){r.header=i}},Y.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),Y.createElement("div",{className:"react-datepicker__time"},Y.createElement("div",{className:"react-datepicker__time-box"},Y.createElement("ul",{className:"react-datepicker__time-list",ref:function(i){r.list=i},style:o?{height:o}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}();J(t5,"calcCenterPosition",function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)});var Rpe=function(e){Hn(n,Y.Component);var t=$n(n);function n(r){var o;return Fn(this,n),J(ee(o=t.call(this,r)),"YEAR_REFS",$u(Array(o.props.yearItemNumber)).map(function(){return Y.createRef()})),J(ee(o),"isDisabled",function(i){return hg(i,o.props)}),J(ee(o),"isExcluded",function(i){return xx(i,o.props)}),J(ee(o),"selectingDate",function(){var i;return(i=o.props.selectingDate)!==null&&i!==void 0?i:o.props.preSelection}),J(ee(o),"updateFocusOnPaginate",function(i){var a=function(){this.YEAR_REFS[i].current.focus()}.bind(ee(o));window.requestAnimationFrame(a)}),J(ee(o),"handleYearClick",function(i,a){o.props.onDayClick&&o.props.onDayClick(i,a)}),J(ee(o),"handleYearNavigation",function(i,a){var s=o.props,c=s.date,l=s.yearItemNumber,d=Wl(c,l).startPeriod;o.isDisabled(a)||o.isExcluded(a)||(o.props.setPreSelection(a),i-d==-1?o.updateFocusOnPaginate(l-1):i-d===l?o.updateFocusOnPaginate(0):o.YEAR_REFS[i-d].current.focus())}),J(ee(o),"isSameDay",function(i,a){return Ut(i,a)}),J(ee(o),"isCurrentYear",function(i){return i===ct(Ht())}),J(ee(o),"isRangeStart",function(i){return o.props.startDate&&o.props.endDate&&Pa(m.setYear(Ht(),i),o.props.startDate)}),J(ee(o),"isRangeEnd",function(i){return o.props.startDate&&o.props.endDate&&Pa(m.setYear(Ht(),i),o.props.endDate)}),J(ee(o),"isInRange",function(i){return Q0(i,o.props.startDate,o.props.endDate)}),J(ee(o),"isInSelectingRange",function(i){var a=o.props,s=a.selectsStart,c=a.selectsEnd,l=a.selectsRange,d=a.startDate,p=a.endDate;return!(!(s||c||l)||!o.selectingDate())&&(s&&p?Q0(i,o.selectingDate(),p):(c&&d||!(!l||!d||p))&&Q0(i,d,o.selectingDate()))}),J(ee(o),"isSelectingRangeStart",function(i){if(!o.isInSelectingRange(i))return!1;var a=o.props,s=a.startDate,c=a.selectsStart,l=m.setYear(Ht(),i);return Pa(l,c?o.selectingDate():s)}),J(ee(o),"isSelectingRangeEnd",function(i){if(!o.isInSelectingRange(i))return!1;var a=o.props,s=a.endDate,c=a.selectsEnd,l=a.selectsRange,d=m.setYear(Ht(),i);return Pa(d,c||l?o.selectingDate():s)}),J(ee(o),"isKeyboardSelected",function(i){var a=lu(m.setYear(o.props.date,i));return!o.props.disabledKeyboardNavigation&&!o.props.inline&&!Ut(a,lu(o.props.selected))&&Ut(a,lu(o.props.preSelection))}),J(ee(o),"onYearClick",function(i,a){var s=o.props.date;o.handleYearClick(lu(m.setYear(s,a)),i)}),J(ee(o),"onYearKeyDown",function(i,a){var s=i.key;if(!o.props.disabledKeyboardNavigation)switch(s){case"Enter":o.onYearClick(i,a),o.props.setPreSelection(o.props.selected);break;case"ArrowRight":o.handleYearNavigation(a+1,m.addYears(o.props.preSelection,1));break;case"ArrowLeft":o.handleYearNavigation(a-1,m.subYears(o.props.preSelection,1))}}),J(ee(o),"getYearClassNames",function(i){var a=o.props,s=a.minDate,c=a.maxDate,l=a.selected,d=a.excludeDates,p=a.includeDates,f=a.filterDate;return m.r("react-datepicker__year-text",{"react-datepicker__year-text--selected":i===ct(l),"react-datepicker__year-text--disabled":(s||c||d||p||f)&&Qj(i,o.props),"react-datepicker__year-text--keyboard-selected":o.isKeyboardSelected(i),"react-datepicker__year-text--range-start":o.isRangeStart(i),"react-datepicker__year-text--range-end":o.isRangeEnd(i),"react-datepicker__year-text--in-range":o.isInRange(i),"react-datepicker__year-text--in-selecting-range":o.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":o.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":o.isSelectingRangeEnd(i),"react-datepicker__year-text--today":o.isCurrentYear(i)})}),J(ee(o),"getYearTabIndex",function(i){return o.props.disabledKeyboardNavigation?"-1":i===ct(o.props.preSelection)?"0":"-1"}),J(ee(o),"getYearContainerClassNames",function(){var i=o.props,a=i.selectingDate,s=i.selectsStart,c=i.selectsEnd,l=i.selectsRange;return m.r("react-datepicker__year",{"react-datepicker__year--selecting-range":a&&(s||c||l)})}),J(ee(o),"getYearContent",function(i){return o.props.renderYearContent?o.props.renderYearContent(i):i}),o}return Bn(n,[{key:"render",value:function(){for(var r=this,o=[],i=this.props,a=i.date,s=i.yearItemNumber,c=i.onYearMouseEnter,l=i.onYearMouseLeave,d=Wl(a,s),p=d.startPeriod,f=d.endPeriod,v=function(_){o.push(Y.createElement("div",{ref:r.YEAR_REFS[_-p],onClick:function(y){r.onYearClick(y,_)},onKeyDown:function(y){r.onYearKeyDown(y,_)},tabIndex:r.getYearTabIndex(_),className:r.getYearClassNames(_),onMouseEnter:function(y){return c(y,_)},onMouseLeave:function(y){return l(y,_)},key:_,"aria-current":r.isCurrentYear(_)?"date":void 0},r.getYearContent(_)))},b=p;b<=f;b++)v(b);return Y.createElement("div",{className:this.getYearContainerClassNames()},Y.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.clearSelectingDate},o))}}]),n}(),Dpe=function(e){Hn(n,Y.Component);var t=$n(n);function n(r){var o;return Fn(this,n),J(ee(o=t.call(this,r)),"onTimeChange",function(i){o.setState({time:i});var a=o.props.date,s=a instanceof Date&&!isNaN(a)?a:new Date;s.setHours(i.split(":")[0]),s.setMinutes(i.split(":")[1]),o.props.onChange(s)}),J(ee(o),"renderTimeInput",function(){var i=o.state.time,a=o.props,s=a.date,c=a.timeString,l=a.customTimeInput;return l?Y.cloneElement(l,{date:s,value:i,onChange:o.onTimeChange}):Y.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:i,onChange:function(d){o.onTimeChange(d.target.value||c)}})}),o.state={time:o.props.timeString},o}return Bn(n,[{key:"render",value:function(){return Y.createElement("div",{className:"react-datepicker__input-time-container"},Y.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),Y.createElement("div",{className:"react-datepicker-time__input-container"},Y.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.timeString!==o.time?{time:r.timeString}:null}}]),n}();function Mpe(e){var t=e.className,n=e.children,r=e.showPopperArrow,o=e.arrowProps,i=o===void 0?{}:o;return Y.createElement("div",{className:t},r&&Y.createElement("div",dc({className:"react-datepicker__triangle"},i)),n)}var Ppe=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Ipe=function(e){Hn(n,Y.Component);var t=$n(n);function n(r){var o;return Fn(this,n),J(ee(o=t.call(this,r)),"handleClickOutside",function(i){o.props.onClickOutside(i)}),J(ee(o),"setClickOutsideRef",function(){return o.containerRef.current}),J(ee(o),"handleDropdownFocus",function(i){(function(){var a=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return Ppe.some(function(s){return a.indexOf(s)>=0})})(i.target)&&o.props.onDropdownFocus()}),J(ee(o),"getDateInView",function(){var i=o.props,a=i.preSelection,s=i.selected,c=i.openToDate,l=Jj(o.props),d=Zj(o.props),p=Ht(),f=c||s||a;return f||(l&&Ma(p,l)?l:d&&Fa(p,d)?d:p)}),J(ee(o),"increaseMonth",function(){o.setState(function(i){var a=i.date;return{date:m.addMonths(a,1)}},function(){return o.handleMonthChange(o.state.date)})}),J(ee(o),"decreaseMonth",function(){o.setState(function(i){var a=i.date;return{date:ac(a,1)}},function(){return o.handleMonthChange(o.state.date)})}),J(ee(o),"handleDayClick",function(i,a,s){o.props.onSelect(i,a,s),o.props.setPreSelection&&o.props.setPreSelection(i)}),J(ee(o),"handleDayMouseEnter",function(i){o.setState({selectingDate:i}),o.props.onDayMouseEnter&&o.props.onDayMouseEnter(i)}),J(ee(o),"handleMonthMouseLeave",function(){o.setState({selectingDate:null}),o.props.onMonthMouseLeave&&o.props.onMonthMouseLeave()}),J(ee(o),"handleYearMouseEnter",function(i,a){o.setState({selectingDate:m.setYear(Ht(),a)}),o.props.onYearMouseEnter&&o.props.onYearMouseEnter(i,a)}),J(ee(o),"handleYearMouseLeave",function(i,a){o.props.onYearMouseLeave&&o.props.onYearMouseLeave(i,a)}),J(ee(o),"handleYearChange",function(i){o.props.onYearChange&&(o.props.onYearChange(i),o.setState({isRenderAriaLiveMessage:!0})),o.props.adjustDateOnChange&&(o.props.onSelect&&o.props.onSelect(i),o.props.setOpen&&o.props.setOpen(!0)),o.props.setPreSelection&&o.props.setPreSelection(i)}),J(ee(o),"handleMonthChange",function(i){o.handleCustomMonthChange(i),o.props.adjustDateOnChange&&(o.props.onSelect&&o.props.onSelect(i),o.props.setOpen&&o.props.setOpen(!0)),o.props.setPreSelection&&o.props.setPreSelection(i)}),J(ee(o),"handleCustomMonthChange",function(i){o.props.onMonthChange&&(o.props.onMonthChange(i),o.setState({isRenderAriaLiveMessage:!0}))}),J(ee(o),"handleMonthYearChange",function(i){o.handleYearChange(i),o.handleMonthChange(i)}),J(ee(o),"changeYear",function(i){o.setState(function(a){var s=a.date;return{date:m.setYear(s,i)}},function(){return o.handleYearChange(o.state.date)})}),J(ee(o),"changeMonth",function(i){o.setState(function(a){var s=a.date;return{date:m.setMonth(s,i)}},function(){return o.handleMonthChange(o.state.date)})}),J(ee(o),"changeMonthYear",function(i){o.setState(function(a){var s=a.date;return{date:m.setYear(m.setMonth(s,lr(i)),ct(i))}},function(){return o.handleMonthYearChange(o.state.date)})}),J(ee(o),"header",function(){var i=Ci(arguments.length>0&&arguments[0]!==void 0?arguments[0]:o.state.date,o.props.locale,o.props.calendarStartDay),a=[];return o.props.showWeekNumbers&&a.push(Y.createElement("div",{key:"W",className:"react-datepicker__day-name"},o.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(s){var c=mc(i,s),l=o.formatWeekday(c,o.props.locale),d=o.props.weekDayClassName?o.props.weekDayClassName(c):void 0;return Y.createElement("div",{key:s,className:m.r("react-datepicker__day-name",d)},l)}))}),J(ee(o),"formatWeekday",function(i,a){return o.props.formatWeekDay?function(s,c,l){return c(en(s,"EEEE",l))}(i,o.props.formatWeekDay,a):o.props.useWeekdaysShort?function(s,c){return en(s,"EEE",c)}(i,a):function(s,c){return en(s,"EEEEEE",c)}(i,a)}),J(ee(o),"decreaseYear",function(){o.setState(function(i){var a=i.date;return{date:m.subYears(a,o.props.showYearPicker?o.props.yearItemNumber:1)}},function(){return o.handleYearChange(o.state.date)})}),J(ee(o),"clearSelectingDate",function(){o.setState({selectingDate:null})}),J(ee(o),"renderPreviousButton",function(){if(!o.props.renderCustomHeader){var i;switch(!0){case o.props.showMonthYearPicker:i=KM(o.state.date,o.props);break;case o.props.showYearPicker:i=function(C){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=k.minDate,x=k.yearItemNumber,E=x===void 0?bu:x,O=Wl(lu(m.subYears(C,E)),E).endPeriod,S=T&&ct(T);return S&&S>O||!1}(o.state.date,o.props);break;default:i=JM(o.state.date,o.props)}if((o.props.forceShowMonthNavigation||o.props.showDisabledMonthNavigation||!i)&&!o.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--previous"],s=o.decreaseMonth;(o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker)&&(s=o.decreaseYear),i&&o.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),s=null);var c=o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker,l=o.props,d=l.previousMonthButtonLabel,p=l.previousYearButtonLabel,f=o.props,v=f.previousMonthAriaLabel,b=v===void 0?typeof d=="string"?d:"Previous Month":v,_=f.previousYearAriaLabel,y=_===void 0?typeof p=="string"?p:"Previous Year":_;return Y.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:o.props.handleOnKeyDown,"aria-label":c?y:b},Y.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},c?o.props.previousYearButtonLabel:o.props.previousMonthButtonLabel))}}}),J(ee(o),"increaseYear",function(){o.setState(function(i){var a=i.date;return{date:m.addYears(a,o.props.showYearPicker?o.props.yearItemNumber:1)}},function(){return o.handleYearChange(o.state.date)})}),J(ee(o),"renderNextButton",function(){if(!o.props.renderCustomHeader){var i;switch(!0){case o.props.showMonthYearPicker:i=XM(o.state.date,o.props);break;case o.props.showYearPicker:i=function(C){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=k.maxDate,x=k.yearItemNumber,E=x===void 0?bu:x,O=Wl(m.addYears(C,E),E).startPeriod,S=T&&ct(T);return S&&S<O||!1}(o.state.date,o.props);break;default:i=ZM(o.state.date,o.props)}if((o.props.forceShowMonthNavigation||o.props.showDisabledMonthNavigation||!i)&&!o.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--next"];o.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),o.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var s=o.increaseMonth;(o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker)&&(s=o.increaseYear),i&&o.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),s=null);var c=o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker,l=o.props,d=l.nextMonthButtonLabel,p=l.nextYearButtonLabel,f=o.props,v=f.nextMonthAriaLabel,b=v===void 0?typeof d=="string"?d:"Next Month":v,_=f.nextYearAriaLabel,y=_===void 0?typeof p=="string"?p:"Next Year":_;return Y.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:o.props.handleOnKeyDown,"aria-label":c?y:b},Y.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},c?o.props.nextYearButtonLabel:o.props.nextMonthButtonLabel))}}}),J(ee(o),"renderCurrentMonth",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o.state.date,a=["react-datepicker__current-month"];return o.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),o.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),o.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),Y.createElement("div",{className:a.join(" ")},en(i,o.props.dateFormat,o.props.locale))}),J(ee(o),"renderYearDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(o.props.showYearDropdown&&!i)return Y.createElement(wpe,{adjustDateOnChange:o.props.adjustDateOnChange,date:o.state.date,onSelect:o.props.onSelect,setOpen:o.props.setOpen,dropdownMode:o.props.dropdownMode,onChange:o.changeYear,minDate:o.props.minDate,maxDate:o.props.maxDate,year:ct(o.state.date),scrollableYearDropdown:o.props.scrollableYearDropdown,yearDropdownItemNumber:o.props.yearDropdownItemNumber})}),J(ee(o),"renderMonthDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(o.props.showMonthDropdown&&!i)return Y.createElement(xpe,{dropdownMode:o.props.dropdownMode,locale:o.props.locale,onChange:o.changeMonth,month:lr(o.state.date),useShortMonthInDropdown:o.props.useShortMonthInDropdown})}),J(ee(o),"renderMonthYearDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(o.props.showMonthYearDropdown&&!i)return Y.createElement(kpe,{dropdownMode:o.props.dropdownMode,locale:o.props.locale,dateFormat:o.props.dateFormat,onChange:o.changeMonthYear,minDate:o.props.minDate,maxDate:o.props.maxDate,date:o.state.date,scrollableMonthYearDropdown:o.props.scrollableMonthYearDropdown})}),J(ee(o),"handleTodayButtonClick",function(i){o.props.onSelect(YM(),i),o.props.setPreSelection&&o.props.setPreSelection(YM())}),J(ee(o),"renderTodayButton",function(){if(o.props.todayButton&&!o.props.showTimeSelectOnly)return Y.createElement("div",{className:"react-datepicker__today-button",onClick:function(i){return o.handleTodayButtonClick(i)}},o.props.todayButton)}),J(ee(o),"renderDefaultHeader",function(i){var a=i.monthDate,s=i.i;return Y.createElement("div",{className:"react-datepicker__header ".concat(o.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},o.renderCurrentMonth(a),Y.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(o.props.dropdownMode),onFocus:o.handleDropdownFocus},o.renderMonthDropdown(s!==0),o.renderMonthYearDropdown(s!==0),o.renderYearDropdown(s!==0)),Y.createElement("div",{className:"react-datepicker__day-names"},o.header(a)))}),J(ee(o),"renderCustomHeader",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=i.monthDate,s=i.i;if(o.props.showTimeSelect&&!o.state.monthContainer||o.props.showTimeSelectOnly)return null;var c=JM(o.state.date,o.props),l=ZM(o.state.date,o.props),d=KM(o.state.date,o.props),p=XM(o.state.date,o.props),f=!o.props.showMonthYearPicker&&!o.props.showQuarterYearPicker&&!o.props.showYearPicker;return Y.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:o.props.onDropdownFocus},o.props.renderCustomHeader(Gh(Gh({},o.state),{},{customHeaderCount:s,monthDate:a,changeMonth:o.changeMonth,changeYear:o.changeYear,decreaseMonth:o.decreaseMonth,increaseMonth:o.increaseMonth,decreaseYear:o.decreaseYear,increaseYear:o.increaseYear,prevMonthButtonDisabled:c,nextMonthButtonDisabled:l,prevYearButtonDisabled:d,nextYearButtonDisabled:p})),f&&Y.createElement("div",{className:"react-datepicker__day-names"},o.header(a)))}),J(ee(o),"renderYearHeader",function(){var i=o.state.date,a=o.props,s=a.showYearPicker,c=Wl(i,a.yearItemNumber),l=c.startPeriod,d=c.endPeriod;return Y.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(l," - ").concat(d):ct(i))}),J(ee(o),"renderHeader",function(i){switch(!0){case o.props.renderCustomHeader!==void 0:return o.renderCustomHeader(i);case(o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker):return o.renderYearHeader(i);default:return o.renderDefaultHeader(i)}}),J(ee(o),"renderMonths",function(){var i;if(!o.props.showTimeSelectOnly&&!o.props.showYearPicker){for(var a=[],s=o.props.showPreviousMonths?o.props.monthsShown-1:0,c=ac(o.state.date,s),l=(i=o.props.monthSelectedIn)!==null&&i!==void 0?i:s,d=0;d<o.props.monthsShown;++d){var p=m.addMonths(c,d-l+s),f="month-".concat(d),v=d<o.props.monthsShown-1,b=d>0;a.push(Y.createElement("div",{key:f,ref:function(_){o.monthContainer=_},className:"react-datepicker__month-container"},o.renderHeader({monthDate:p,i:d}),Y.createElement(Ope,{chooseDayAriaLabelPrefix:o.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:o.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:o.props.weekAriaLabelPrefix,ariaLabelPrefix:o.props.monthAriaLabelPrefix,onChange:o.changeMonthYear,day:p,dayClassName:o.props.dayClassName,calendarStartDay:o.props.calendarStartDay,monthClassName:o.props.monthClassName,onDayClick:o.handleDayClick,handleOnKeyDown:o.props.handleOnDayKeyDown,onDayMouseEnter:o.handleDayMouseEnter,onMouseLeave:o.handleMonthMouseLeave,onWeekSelect:o.props.onWeekSelect,orderInDisplay:d,formatWeekNumber:o.props.formatWeekNumber,locale:o.props.locale,minDate:o.props.minDate,maxDate:o.props.maxDate,excludeDates:o.props.excludeDates,excludeDateIntervals:o.props.excludeDateIntervals,highlightDates:o.props.highlightDates,holidays:o.props.holidays,selectingDate:o.state.selectingDate,includeDates:o.props.includeDates,includeDateIntervals:o.props.includeDateIntervals,inline:o.props.inline,shouldFocusDayInline:o.props.shouldFocusDayInline,fixedHeight:o.props.fixedHeight,filterDate:o.props.filterDate,preSelection:o.props.preSelection,setPreSelection:o.props.setPreSelection,selected:o.props.selected,selectsStart:o.props.selectsStart,selectsEnd:o.props.selectsEnd,selectsRange:o.props.selectsRange,selectsDisabledDaysInRange:o.props.selectsDisabledDaysInRange,showWeekNumbers:o.props.showWeekNumbers,startDate:o.props.startDate,endDate:o.props.endDate,peekNextMonth:o.props.peekNextMonth,setOpen:o.props.setOpen,shouldCloseOnSelect:o.props.shouldCloseOnSelect,renderDayContents:o.props.renderDayContents,renderMonthContent:o.props.renderMonthContent,renderQuarterContent:o.props.renderQuarterContent,renderYearContent:o.props.renderYearContent,disabledKeyboardNavigation:o.props.disabledKeyboardNavigation,showMonthYearPicker:o.props.showMonthYearPicker,showFullMonthYearPicker:o.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:o.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:o.props.showFourColumnMonthYearPicker,showYearPicker:o.props.showYearPicker,showQuarterYearPicker:o.props.showQuarterYearPicker,showWeekPicker:o.props.showWeekPicker,isInputFocused:o.props.isInputFocused,containerRef:o.containerRef,monthShowsDuplicateDaysEnd:v,monthShowsDuplicateDaysStart:b})))}return a}}),J(ee(o),"renderYears",function(){if(!o.props.showTimeSelectOnly)return o.props.showYearPicker?Y.createElement("div",{className:"react-datepicker__year--container"},o.renderHeader(),Y.createElement(Rpe,dc({onDayClick:o.handleDayClick,selectingDate:o.state.selectingDate,clearSelectingDate:o.clearSelectingDate,date:o.state.date},o.props,{onYearMouseEnter:o.handleYearMouseEnter,onYearMouseLeave:o.handleYearMouseLeave}))):void 0}),J(ee(o),"renderTimeSection",function(){if(o.props.showTimeSelect&&(o.state.monthContainer||o.props.showTimeSelectOnly))return Y.createElement(t5,{selected:o.props.selected,openToDate:o.props.openToDate,onChange:o.props.onTimeChange,timeClassName:o.props.timeClassName,format:o.props.timeFormat,includeTimes:o.props.includeTimes,intervals:o.props.timeIntervals,minTime:o.props.minTime,maxTime:o.props.maxTime,excludeTimes:o.props.excludeTimes,filterTime:o.props.filterTime,timeCaption:o.props.timeCaption,todayButton:o.props.todayButton,showMonthDropdown:o.props.showMonthDropdown,showMonthYearDropdown:o.props.showMonthYearDropdown,showYearDropdown:o.props.showYearDropdown,withPortal:o.props.withPortal,monthRef:o.state.monthContainer,injectTimes:o.props.injectTimes,locale:o.props.locale,handleOnKeyDown:o.props.handleOnKeyDown,showTimeSelectOnly:o.props.showTimeSelectOnly})}),J(ee(o),"renderInputTimeSection",function(){var i=new Date(o.props.selected),a=xa(i)&&o.props.selected?"".concat(tP(i.getHours()),":").concat(tP(i.getMinutes())):"";if(o.props.showTimeInput)return Y.createElement(Dpe,{date:i,timeString:a,timeInputLabel:o.props.timeInputLabel,onChange:o.props.onTimeChange,customTimeInput:o.props.customTimeInput})}),J(ee(o),"renderAriaLiveRegion",function(){var i,a=Wl(o.state.date,o.props.yearItemNumber),s=a.startPeriod,c=a.endPeriod;return i=o.props.showYearPicker?"".concat(s," - ").concat(c):o.props.showMonthYearPicker||o.props.showQuarterYearPicker?ct(o.state.date):"".concat(_x(lr(o.state.date),o.props.locale)," ").concat(ct(o.state.date)),Y.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o.state.isRenderAriaLiveMessage&&i)}),J(ee(o),"renderChildren",function(){if(o.props.children)return Y.createElement("div",{className:"react-datepicker__children-container"},o.props.children)}),o.containerRef=Y.createRef(),o.state={date:o.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},o}return Bn(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){var o=this;if(!this.props.preSelection||Ut(this.props.preSelection,r.preSelection)&&this.props.monthSelectedIn===r.monthSelectedIn)this.props.openToDate&&!Ut(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate});else{var i=!Yo(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&o.handleCustomMonthChange(o.state.date)})}}},{key:"render",value:function(){var r=this.props.container||Mpe;return Y.createElement("div",{style:{display:"contents"},ref:this.containerRef},Y.createElement(r,{className:m.r("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:bu}}}]),n}(),Npe=function(e){var t=e.icon,n=e.className,r=n===void 0?"":n,o=e.onClick,i="react-datepicker__calendar-icon";return Y.isValidElement(t)?Y.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(i," ").concat(r),onClick:function(a){typeof t.props.onClick=="function"&&t.props.onClick(a),typeof o=="function"&&o(a)}}):typeof t=="string"?Y.createElement("i",{className:"".concat(i," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:o}):Y.createElement("svg",{className:"".concat(i," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},Y.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},n5=function(e){Hn(n,Y.Component);var t=$n(n);function n(r){var o;return Fn(this,n),(o=t.call(this,r)).el=document.createElement("div"),o}return Bn(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 mr.createPortal(this.props.children,this.el)}}]),n}(),Lpe=function(e){return!e.disabled&&e.tabIndex!==-1},r5=function(e){Hn(n,Y.Component);var t=$n(n);function n(r){var o;return Fn(this,n),J(ee(o=t.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(o.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(Lpe)}),J(ee(o),"handleFocusStart",function(){var i=o.getTabChildren();i&&i.length>1&&i[i.length-1].focus()}),J(ee(o),"handleFocusEnd",function(){var i=o.getTabChildren();i&&i.length>1&&i[0].focus()}),o.tabLoopRef=Y.createRef(),o}return Bn(n,[{key:"render",value:function(){return this.props.enableTabLoop?Y.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},Y.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,Y.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),jpe=function(e){Hn(n,Y.Component);var t=$n(n);function n(){return Fn(this,n),t.apply(this,arguments)}return Bn(n,[{key:"render",value:function(){var r,o=this.props,i=o.className,a=o.wrapperClassName,s=o.hidePopper,c=o.popperComponent,l=o.popperModifiers,d=o.popperPlacement,p=o.popperProps,f=o.targetComponent,v=o.enableTabLoop,b=o.popperOnKeyDown,_=o.portalId,y=o.portalHost;if(!s){var C=m.r("react-datepicker-popper",i);r=Y.createElement(spe,dc({modifiers:l,placement:d},p),function(T){var x=T.ref,E=T.style,O=T.placement,S=T.arrowProps;return Y.createElement(r5,{enableTabLoop:v},Y.createElement("div",{ref:x,style:E,className:C,"data-placement":O,onKeyDown:b},Y.cloneElement(c,{arrowProps:S})))})}this.props.popperContainer&&(r=Y.createElement(this.props.popperContainer,{},r)),_&&!s&&(r=Y.createElement(n5,{portalId:_,portalHost:y},r));var k=m.r("react-datepicker-wrapper",a);return Y.createElement(Qde,{className:"react-datepicker-manager"},Y.createElement(ppe,null,function(T){var x=T.ref;return Y.createElement("div",{ref:x,className:k},f)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),oP="react-datepicker-ignore-onclickoutside",Fpe=pg(Ipe),K0="Date input not valid.",Bpe=function(e){Hn(n,Y.Component);var t=$n(n);function n(r){var o;return Fn(this,n),J(ee(o=t.call(this,r)),"getPreSelection",function(){return o.props.openToDate?o.props.openToDate:o.props.selectsEnd&&o.props.startDate?o.props.startDate:o.props.selectsStart&&o.props.endDate?o.props.endDate:Ht()}),J(ee(o),"modifyHolidays",function(){var i;return(i=o.props.holidays)===null||i===void 0?void 0:i.reduce(function(a,s){var c=new Date(s.date);return Nu(c)?[].concat($u(a),[Gh(Gh({},s),{},{date:c})]):a},[])}),J(ee(o),"calcInitialState",function(){var i,a=o.getPreSelection(),s=Jj(o.props),c=Zj(o.props),l=s&&Ma(a,_i(s))?s:c&&Fa(a,v1(c))?c:a;return{open:o.props.startOpen||!1,preventFocus:!1,preSelection:(i=o.props.selectsRange?o.props.startDate:o.props.selected)!==null&&i!==void 0?i:l,highlightDates:eP(o.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),J(ee(o),"clearPreventFocusTimeout",function(){o.preventFocusTimeout&&clearTimeout(o.preventFocusTimeout)}),J(ee(o),"setFocus",function(){o.input&&o.input.focus&&o.input.focus({preventScroll:!0})}),J(ee(o),"setBlur",function(){o.input&&o.input.blur&&o.input.blur(),o.cancelFocusInput()}),J(ee(o),"setOpen",function(i){var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1];o.setState({open:i,preSelection:i&&o.state.open?o.state.preSelection:o.calcInitialState().preSelection,lastPreSelectChange:X0},function(){i||o.setState(function(s){return{focused:!!a&&s.focused}},function(){!a&&o.setBlur(),o.setState({inputValue:null})})})}),J(ee(o),"inputOk",function(){return og(o.state.preSelection)}),J(ee(o),"isCalendarOpen",function(){return o.props.open===void 0?o.state.open&&!o.props.disabled&&!o.props.readOnly:o.props.open}),J(ee(o),"handleFocus",function(i){o.state.preventFocus||(o.props.onFocus(i),o.props.preventOpenOnFocus||o.props.readOnly||o.setOpen(!0)),o.setState({focused:!0})}),J(ee(o),"sendFocusBackToInput",function(){o.preventFocusTimeout&&o.clearPreventFocusTimeout(),o.setState({preventFocus:!0},function(){o.preventFocusTimeout=setTimeout(function(){o.setFocus(),o.setState({preventFocus:!1})})})}),J(ee(o),"cancelFocusInput",function(){clearTimeout(o.inputFocusTimeout),o.inputFocusTimeout=null}),J(ee(o),"deferFocusInput",function(){o.cancelFocusInput(),o.inputFocusTimeout=setTimeout(function(){return o.setFocus()},1)}),J(ee(o),"handleDropdownFocus",function(){o.cancelFocusInput()}),J(ee(o),"handleBlur",function(i){(!o.state.open||o.props.withPortal||o.props.showTimeInput)&&o.props.onBlur(i),o.setState({focused:!1})}),J(ee(o),"handleCalendarClickOutside",function(i){o.props.inline||o.setOpen(!1),o.props.onClickOutside(i),o.props.withPortal&&i.preventDefault()}),J(ee(o),"handleChange",function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var c=a[0];if(!o.props.onChangeRaw||(o.props.onChangeRaw.apply(ee(o),a),typeof c.isDefaultPrevented=="function"&&!c.isDefaultPrevented())){o.setState({inputValue:c.target.value,lastPreSelectChange:Hpe});var l,d,p,f,v,b,_,y,C=(l=c.target.value,d=o.props.dateFormat,p=o.props.locale,f=o.props.strictParsing,v=o.props.minDate,b=null,_=Es(p)||Es(Ts()),y=!0,Array.isArray(d)?(d.forEach(function(k){var T=$0(l,k,new Date,{locale:_});f&&(y=xa(T,v)&&l===en(T,k,p)),xa(T,v)&&y&&(b=T)}),b):(b=$0(l,d,new Date,{locale:_}),f?y=xa(b)&&l===en(b,d,p):xa(b)||(d=d.match(fpe).map(function(k){var T=k[0];return T==="p"||T==="P"?_?(0,hpe[T])(k,_.formatLong):T:k}).join(""),l.length>0&&(b=$0(l,d.slice(0,l.length),new Date)),xa(b)||(b=new Date(l))),xa(b)&&y?b:null));o.props.showTimeSelectOnly&&o.props.selected&&C&&!Ut(C,o.props.selected)&&(C=mle(o.props.selected,{hours:wi(C),minutes:xi(C),seconds:bM(C)})),!C&&c.target.value||(o.props.showWeekPicker&&(C=Ci(C,o.props.locale,o.props.calendarStartDay)),o.setSelected(C,c,!0))}}),J(ee(o),"handleSelect",function(i,a,s){if(o.props.shouldCloseOnSelect&&!o.props.showTimeSelect&&o.sendFocusBackToInput(),o.props.onChangeRaw&&o.props.onChangeRaw(a),o.props.showWeekPicker&&(i=Ci(i,o.props.locale,o.props.calendarStartDay)),o.setSelected(i,a,!1,s),o.props.showDateSelect&&o.setState({isRenderAriaLiveMessage:!0}),!o.props.shouldCloseOnSelect||o.props.showTimeSelect)o.setPreSelection(i);else if(!o.props.inline){o.props.selectsRange||o.setOpen(!1);var c=o.props,l=c.startDate,d=c.endDate;!l||d||Ma(i,l)||o.setOpen(!1)}}),J(ee(o),"setSelected",function(i,a,s,c){var l=i;if(o.props.showYearPicker){if(l!==null&&Qj(ct(l),o.props))return}else if(o.props.showMonthYearPicker){if(l!==null&&Gj(l,o.props))return}else if(l!==null&&hg(l,o.props))return;var d=o.props,p=d.onChange,f=d.selectsRange,v=d.startDate,b=d.endDate;if(!Cs(o.props.selected,l)||o.props.allowSameDay||f)if(l!==null&&(!o.props.selected||s&&(o.props.showTimeSelect||o.props.showTimeSelectOnly||o.props.showTimeInput)||(l=UM(l,{hour:wi(o.props.selected),minute:xi(o.props.selected),second:bM(o.props.selected)})),o.props.inline||o.setState({preSelection:l}),o.props.focusSelectedMonth||o.setState({monthSelectedIn:c})),f){var _=v&&!b,y=v&&b;!v&&!b?p([l,null],a):_&&(Ma(l,v)?p([l,null],a):p([v,l],a)),y&&p([l,null],a)}else p(l,a);s||(o.props.onSelect(l,a),o.setState({inputValue:null}))}),J(ee(o),"setPreSelection",function(i){var a=o.props.minDate!==void 0,s=o.props.maxDate!==void 0,c=!0;if(i){o.props.showWeekPicker&&(i=Ci(i,o.props.locale,o.props.calendarStartDay));var l=_i(i);if(a&&s)c=Hp(i,o.props.minDate,o.props.maxDate);else if(a){var d=_i(o.props.minDate);c=Fa(i,d)||Cs(l,d)}else if(s){var p=v1(o.props.maxDate);c=Ma(i,p)||Cs(l,p)}}c&&o.setState({preSelection:i})}),J(ee(o),"toggleCalendar",function(){o.setOpen(!o.state.open)}),J(ee(o),"handleTimeChange",function(i){var a=o.props.selected?o.props.selected:o.getPreSelection(),s=o.props.selected?i:UM(a,{hour:wi(i),minute:xi(i)});o.setState({preSelection:s}),o.props.onChange(s),o.props.shouldCloseOnSelect&&(o.sendFocusBackToInput(),o.setOpen(!1)),o.props.showTimeInput&&o.setOpen(!0),(o.props.showTimeSelectOnly||o.props.showTimeSelect)&&o.setState({isRenderAriaLiveMessage:!0}),o.setState({inputValue:null})}),J(ee(o),"onInputClick",function(){o.props.disabled||o.props.readOnly||o.setOpen(!0),o.props.onInputClick()}),J(ee(o),"onInputKeyDown",function(i){o.props.onKeyDown(i);var a=i.key;if(o.state.open||o.props.inline||o.props.preventOpenOnFocus){if(o.state.open){if(a==="ArrowDown"||a==="ArrowUp"){i.preventDefault();var s=o.props.showWeekPicker&&o.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',c=o.calendar.componentNode&&o.calendar.componentNode.querySelector(s);return void(c&&c.focus({preventScroll:!0}))}var l=Ht(o.state.preSelection);a==="Enter"?(i.preventDefault(),o.inputOk()&&o.state.lastPreSelectChange===X0?(o.handleSelect(l,i),!o.props.shouldCloseOnSelect&&o.setPreSelection(l)):o.setOpen(!1)):a==="Escape"?(i.preventDefault(),o.sendFocusBackToInput(),o.setOpen(!1)):a==="Tab"&&o.setOpen(!1),o.inputOk()||o.props.onInputError({code:1,msg:K0})}}else a!=="ArrowDown"&&a!=="ArrowUp"&&a!=="Enter"||o.onInputClick()}),J(ee(o),"onPortalKeyDown",function(i){i.key==="Escape"&&(i.preventDefault(),o.setState({preventFocus:!0},function(){o.setOpen(!1),setTimeout(function(){o.setFocus(),o.setState({preventFocus:!1})})}))}),J(ee(o),"onDayKeyDown",function(i){o.props.onKeyDown(i);var a=i.key,s=Ht(o.state.preSelection);if(a==="Enter")i.preventDefault(),o.handleSelect(s,i),!o.props.shouldCloseOnSelect&&o.setPreSelection(s);else if(a==="Escape")i.preventDefault(),o.setOpen(!1),o.inputOk()||o.props.onInputError({code:1,msg:K0});else if(!o.props.disabledKeyboardNavigation){var c;switch(a){case"ArrowLeft":c=o.props.showWeekPicker?fM(s,1):nse(s,1);break;case"ArrowRight":c=o.props.showWeekPicker?Ih(s,1):mc(s,1);break;case"ArrowUp":c=fM(s,1);break;case"ArrowDown":c=Ih(s,1);break;case"PageUp":c=ac(s,1);break;case"PageDown":c=m.addMonths(s,1);break;case"Home":c=m.subYears(s,1);break;case"End":c=m.addYears(s,1);break;default:c=null}if(!c)return void(o.props.onInputError&&o.props.onInputError({code:1,msg:K0}));if(i.preventDefault(),o.setState({lastPreSelectChange:X0}),o.props.adjustDateOnChange&&o.setSelected(c),o.setPreSelection(c),o.props.inline){var l=lr(s),d=lr(c),p=ct(s),f=ct(c);l!==d||p!==f?o.setState({shouldFocusDayInline:!0}):o.setState({shouldFocusDayInline:!1})}}}),J(ee(o),"onPopperKeyDown",function(i){i.key==="Escape"&&(i.preventDefault(),o.sendFocusBackToInput())}),J(ee(o),"onClearClick",function(i){i&&i.preventDefault&&i.preventDefault(),o.sendFocusBackToInput(),o.props.selectsRange?o.props.onChange([null,null],i):o.props.onChange(null,i),o.setState({inputValue:null})}),J(ee(o),"clear",function(){o.onClearClick()}),J(ee(o),"onScroll",function(i){typeof o.props.closeOnScroll=="boolean"&&o.props.closeOnScroll?i.target!==document&&i.target!==document.documentElement&&i.target!==document.body||o.setOpen(!1):typeof o.props.closeOnScroll=="function"&&o.props.closeOnScroll(i)&&o.setOpen(!1)}),J(ee(o),"renderCalendar",function(){return o.props.inline||o.isCalendarOpen()?Y.createElement(Fpe,{ref:function(i){o.calendar=i},locale:o.props.locale,calendarStartDay:o.props.calendarStartDay,chooseDayAriaLabelPrefix:o.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:o.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:o.props.weekAriaLabelPrefix,monthAriaLabelPrefix:o.props.monthAriaLabelPrefix,adjustDateOnChange:o.props.adjustDateOnChange,setOpen:o.setOpen,shouldCloseOnSelect:o.props.shouldCloseOnSelect,dateFormat:o.props.dateFormatCalendar,useWeekdaysShort:o.props.useWeekdaysShort,formatWeekDay:o.props.formatWeekDay,dropdownMode:o.props.dropdownMode,selected:o.props.selected,preSelection:o.state.preSelection,onSelect:o.handleSelect,onWeekSelect:o.props.onWeekSelect,openToDate:o.props.openToDate,minDate:o.props.minDate,maxDate:o.props.maxDate,selectsStart:o.props.selectsStart,selectsEnd:o.props.selectsEnd,selectsRange:o.props.selectsRange,startDate:o.props.startDate,endDate:o.props.endDate,excludeDates:o.props.excludeDates,excludeDateIntervals:o.props.excludeDateIntervals,filterDate:o.props.filterDate,onClickOutside:o.handleCalendarClickOutside,formatWeekNumber:o.props.formatWeekNumber,highlightDates:o.state.highlightDates,holidays:mpe(o.modifyHolidays()),includeDates:o.props.includeDates,includeDateIntervals:o.props.includeDateIntervals,includeTimes:o.props.includeTimes,injectTimes:o.props.injectTimes,inline:o.props.inline,shouldFocusDayInline:o.state.shouldFocusDayInline,peekNextMonth:o.props.peekNextMonth,showMonthDropdown:o.props.showMonthDropdown,showPreviousMonths:o.props.showPreviousMonths,useShortMonthInDropdown:o.props.useShortMonthInDropdown,showMonthYearDropdown:o.props.showMonthYearDropdown,showWeekNumbers:o.props.showWeekNumbers,showYearDropdown:o.props.showYearDropdown,withPortal:o.props.withPortal,forceShowMonthNavigation:o.props.forceShowMonthNavigation,showDisabledMonthNavigation:o.props.showDisabledMonthNavigation,scrollableYearDropdown:o.props.scrollableYearDropdown,scrollableMonthYearDropdown:o.props.scrollableMonthYearDropdown,todayButton:o.props.todayButton,weekLabel:o.props.weekLabel,outsideClickIgnoreClass:oP,fixedHeight:o.props.fixedHeight,monthsShown:o.props.monthsShown,monthSelectedIn:o.state.monthSelectedIn,onDropdownFocus:o.handleDropdownFocus,onMonthChange:o.props.onMonthChange,onYearChange:o.props.onYearChange,dayClassName:o.props.dayClassName,weekDayClassName:o.props.weekDayClassName,monthClassName:o.props.monthClassName,timeClassName:o.props.timeClassName,showDateSelect:o.props.showDateSelect,showTimeSelect:o.props.showTimeSelect,showTimeSelectOnly:o.props.showTimeSelectOnly,onTimeChange:o.handleTimeChange,timeFormat:o.props.timeFormat,timeIntervals:o.props.timeIntervals,minTime:o.props.minTime,maxTime:o.props.maxTime,excludeTimes:o.props.excludeTimes,filterTime:o.props.filterTime,timeCaption:o.props.timeCaption,className:o.props.calendarClassName,container:o.props.calendarContainer,yearItemNumber:o.props.yearItemNumber,yearDropdownItemNumber:o.props.yearDropdownItemNumber,previousMonthAriaLabel:o.props.previousMonthAriaLabel,previousMonthButtonLabel:o.props.previousMonthButtonLabel,nextMonthAriaLabel:o.props.nextMonthAriaLabel,nextMonthButtonLabel:o.props.nextMonthButtonLabel,previousYearAriaLabel:o.props.previousYearAriaLabel,previousYearButtonLabel:o.props.previousYearButtonLabel,nextYearAriaLabel:o.props.nextYearAriaLabel,nextYearButtonLabel:o.props.nextYearButtonLabel,timeInputLabel:o.props.timeInputLabel,disabledKeyboardNavigation:o.props.disabledKeyboardNavigation,renderCustomHeader:o.props.renderCustomHeader,popperProps:o.props.popperProps,renderDayContents:o.props.renderDayContents,renderMonthContent:o.props.renderMonthContent,renderQuarterContent:o.props.renderQuarterContent,renderYearContent:o.props.renderYearContent,onDayMouseEnter:o.props.onDayMouseEnter,onMonthMouseLeave:o.props.onMonthMouseLeave,onYearMouseEnter:o.props.onYearMouseEnter,onYearMouseLeave:o.props.onYearMouseLeave,selectsDisabledDaysInRange:o.props.selectsDisabledDaysInRange,showTimeInput:o.props.showTimeInput,showMonthYearPicker:o.props.showMonthYearPicker,showFullMonthYearPicker:o.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:o.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:o.props.showFourColumnMonthYearPicker,showYearPicker:o.props.showYearPicker,showQuarterYearPicker:o.props.showQuarterYearPicker,showWeekPicker:o.props.showWeekPicker,showPopperArrow:o.props.showPopperArrow,excludeScrollbar:o.props.excludeScrollbar,handleOnKeyDown:o.props.onKeyDown,handleOnDayKeyDown:o.onDayKeyDown,isInputFocused:o.state.focused,customTimeInput:o.props.customTimeInput,setPreSelection:o.setPreSelection},o.props.children):null}),J(ee(o),"renderAriaLiveRegion",function(){var i,a=o.props,s=a.dateFormat,c=a.locale,l=o.props.showTimeInput||o.props.showTimeSelect?"PPPPp":"PPPP";return i=o.props.selectsRange?"Selected start date: ".concat(ci(o.props.startDate,{dateFormat:l,locale:c}),". ").concat(o.props.endDate?"End date: "+ci(o.props.endDate,{dateFormat:l,locale:c}):""):o.props.showTimeSelectOnly?"Selected time: ".concat(ci(o.props.selected,{dateFormat:s,locale:c})):o.props.showYearPicker?"Selected year: ".concat(ci(o.props.selected,{dateFormat:"yyyy",locale:c})):o.props.showMonthYearPicker?"Selected month: ".concat(ci(o.props.selected,{dateFormat:"MMMM yyyy",locale:c})):o.props.showQuarterYearPicker?"Selected quarter: ".concat(ci(o.props.selected,{dateFormat:"yyyy, QQQ",locale:c})):"Selected date: ".concat(ci(o.props.selected,{dateFormat:l,locale:c})),Y.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i)}),J(ee(o),"renderDateInput",function(){var i,a=m.r(o.props.className,J({},oP,o.state.open)),s=o.props.customInput||Y.createElement("input",{type:"text"}),c=o.props.customInputRef||"ref",l=typeof o.props.value=="string"?o.props.value:typeof o.state.inputValue=="string"?o.state.inputValue:o.props.selectsRange?function(d,p,f){if(!d)return"";var v=ci(d,f),b=p?ci(p,f):"";return"".concat(v," - ").concat(b)}(o.props.startDate,o.props.endDate,o.props):ci(o.props.selected,o.props);return Y.cloneElement(s,(J(J(J(J(J(J(J(J(J(J(i={},c,function(d){o.input=d}),"value",l),"onBlur",o.handleBlur),"onChange",o.handleChange),"onClick",o.onInputClick),"onFocus",o.handleFocus),"onKeyDown",o.onInputKeyDown),"id",o.props.id),"name",o.props.name),"form",o.props.form),J(J(J(J(J(J(J(J(J(J(i,"autoFocus",o.props.autoFocus),"placeholder",o.props.placeholderText),"disabled",o.props.disabled),"autoComplete",o.props.autoComplete),"className",m.r(s.props.className,a)),"title",o.props.title),"readOnly",o.props.readOnly),"required",o.props.required),"tabIndex",o.props.tabIndex),"aria-describedby",o.props.ariaDescribedBy),J(J(J(i,"aria-invalid",o.props.ariaInvalid),"aria-labelledby",o.props.ariaLabelledBy),"aria-required",o.props.ariaRequired)))}),J(ee(o),"renderClearButton",function(){var i=o.props,a=i.isClearable,s=i.disabled,c=i.selected,l=i.startDate,d=i.endDate,p=i.clearButtonTitle,f=i.clearButtonClassName,v=f===void 0?"":f,b=i.ariaLabelClose,_=b===void 0?"Close":b;return!a||c==null&&l==null&&d==null?null:Y.createElement("button",{type:"button",className:m.r("react-datepicker__close-icon",v,{"react-datepicker__close-icon--disabled":s}),disabled:s,"aria-label":_,onClick:o.onClearClick,title:p,tabIndex:-1})}),o.state=o.calcInitialState(),o.preventFocusTimeout=null,o}return Bn(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,o){var i,a;r.inline&&(i=r.selected,a=this.props.selected,i&&a?lr(i)!==lr(a)||ct(i)!==ct(a):i!==a)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&r.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),r.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:eP(this.props.highlightDates)}),o.focused||Cs(r.selected,this.props.selected)||this.setState({inputValue:null}),o.open!==this.state.open&&(o.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),o.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var r=this.props,o=r.showIcon,i=r.icon,a=r.calendarIconClassname,s=r.toggleCalendarOnIconClick,c=this.state.open;return Y.createElement("div",{className:"react-datepicker__input-container".concat(o?" react-datepicker__view-calendar-icon":"")},o&&Y.createElement(Npe,dc({icon:i,className:"".concat(a," ").concat(c&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var r=this.renderCalendar();if(this.props.inline)return r;if(this.props.withPortal){var o=this.state.open?Y.createElement(r5,{enableTabLoop:this.props.enableTabLoop},Y.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},r)):null;return this.state.open&&this.props.portalId&&(o=Y.createElement(n5,{portalId:this.props.portalId,portalHost:this.props.portalHost},o)),Y.createElement("div",null,this.renderInputContainer(),o)}return Y.createElement(jpe,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:r,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!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:bu,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),n}(),Hpe="input",X0="navigate";const $pe=n=>{var r=n,{className:e}=r,t=qr(r,["className"]);return A.jsx(Bpe,Te(he({},t),{calendarClassName:e}))},zpe=m.newStyled($pe)`
|
|
521
|
+
border: none;
|
|
522
|
+
background-color: ${({theme:e})=>e.general.backgroundColor};
|
|
523
|
+
display: flex;
|
|
524
|
+
align-items: stretch;
|
|
525
|
+
flex-direction: column;
|
|
526
|
+
padding-bottom: 5px;
|
|
527
|
+
.react-datepicker__header {
|
|
528
|
+
background-color: ${({theme:e})=>e.general.backgroundColor};
|
|
529
|
+
border-bottom: none;
|
|
530
|
+
padding-bottom: 0;
|
|
531
|
+
& > div > button {
|
|
532
|
+
height: 34px;
|
|
533
|
+
width: 34px;
|
|
534
|
+
&:hover {
|
|
535
|
+
background-color: ${({theme:e})=>m.getSlightlyDifferentColor(e.general.backgroundColor)};
|
|
536
|
+
transition: 0.1s;
|
|
537
|
+
}
|
|
538
|
+
&:disabled {
|
|
539
|
+
background-color: ${({theme:e})=>e.general.backgroundColor};
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
.react-datepicker__day-name {
|
|
544
|
+
color: ${({theme:e})=>e.typography.primaryTextColor};
|
|
545
|
+
font-weight: 700;
|
|
546
|
+
}
|
|
547
|
+
.react-datepicker__day {
|
|
548
|
+
width: 32px;
|
|
549
|
+
height: 32px;
|
|
550
|
+
line-height: 32px;
|
|
551
|
+
margin-left: 0;
|
|
552
|
+
margin-right: 0;
|
|
553
|
+
margin-top: 1px;
|
|
554
|
+
margin-bottom: 1px;
|
|
555
|
+
border-radius: 100%;
|
|
556
|
+
background-color: ${({theme:e})=>e.general.backgroundColor};
|
|
557
|
+
color: ${({theme:e})=>e.typography.primaryTextColor};
|
|
558
|
+
position: relative;
|
|
559
|
+
z-index: 1;
|
|
560
|
+
&:hover {
|
|
561
|
+
background-color: ${({theme:e})=>e.general.brandColor};
|
|
562
|
+
color: ${({theme:e})=>e.typography.primaryTextColor};
|
|
563
|
+
transition: 0.1s;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.react-datepicker__day {
|
|
568
|
+
&:before {
|
|
569
|
+
content: '';
|
|
570
|
+
position: absolute;
|
|
571
|
+
display: block;
|
|
572
|
+
background-color: ${({theme:e})=>m.applyOpacity(e.general.brandColor,.5)};
|
|
573
|
+
width: 100%;
|
|
574
|
+
height: 100%;
|
|
575
|
+
z-index: -1;
|
|
576
|
+
left: 0%;
|
|
577
|
+
visibility: hidden;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
// rounds ends of the week rows
|
|
581
|
+
&:first-child:before {
|
|
582
|
+
border-radius: 100% 0 0 100%;
|
|
583
|
+
}
|
|
584
|
+
&:last-child:before {
|
|
585
|
+
border-radius: 0 100% 100% 0;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
&:after {
|
|
589
|
+
content: '';
|
|
590
|
+
position: absolute;
|
|
591
|
+
display: block;
|
|
592
|
+
background-color: ${({theme:e})=>e.general.brandColor};
|
|
593
|
+
width: 100%;
|
|
594
|
+
padding-top: 100%;
|
|
595
|
+
top: 50%;
|
|
596
|
+
transform: translateY(-50%);
|
|
597
|
+
border-radius: 100%;
|
|
598
|
+
z-index: -1;
|
|
599
|
+
visibility: hidden;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
// ----------------- Days in range styling ------------------------------
|
|
604
|
+
.react-datepicker__day--in-range:before {
|
|
605
|
+
visibility: visible;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.react-datepicker__day--in-range.react-datepicker__day--selecting-range-start {
|
|
609
|
+
&:before {
|
|
610
|
+
border-radius: 100% 0 0 100%;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
.react-datepicker__day--in-range.react-datepicker__day--selecting-range-end {
|
|
614
|
+
&:before {
|
|
615
|
+
border-radius: 0 100% 100% 0;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
.react-datepicker__day--in-range.react-datepicker__day--selecting-range-start.react-datepicker__day--selecting-range-end {
|
|
619
|
+
border-radius: 100%;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
// Days in range that becomes out of selecting range when user is hovering dates in calendar
|
|
623
|
+
.react-datepicker__month--selecting-range .react-datepicker__day--in-range {
|
|
624
|
+
&:not(.react-datepicker__day--in-selecting-range) {
|
|
625
|
+
background-color: ${({theme:e})=>e.general.backgroundColor};
|
|
626
|
+
color: ${({theme:e})=>e.typography.secondaryTextColor};
|
|
627
|
+
&:before {
|
|
628
|
+
visibility: visible;
|
|
629
|
+
background-color: ${({theme:e})=>m.applyOpacity(e.general.brandColor,.15)};
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
// Selecting days out of existing range
|
|
635
|
+
.react-datepicker__month--selecting-range .react-datepicker__day--in-selecting-range {
|
|
636
|
+
&:not(.react-datepicker__day--in-range) {
|
|
637
|
+
&:before {
|
|
638
|
+
visibility: visible;
|
|
639
|
+
background-color: ${({theme:e})=>m.applyOpacity(e.general.brandColor,.15)};
|
|
640
|
+
}
|
|
641
|
+
color: ${({theme:e})=>e.typography.secondaryTextColor};
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
// ----------------- Range start and end styling ------------------------------
|
|
646
|
+
.react-datepicker__month--selecting-range .react-datepicker__day--selecting-range-start,
|
|
647
|
+
.react-datepicker__day--range-start,
|
|
648
|
+
.react-datepicker__day--range-end,
|
|
649
|
+
.react-datepicker__month--selecting-range .react-datepicker__day--selecting-range-end {
|
|
650
|
+
&:after {
|
|
651
|
+
visibility: visible;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
&:before {
|
|
655
|
+
visibility: visible;
|
|
656
|
+
background-color: ${({theme:e})=>m.applyOpacity(e.general.brandColor,.5)};
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
&.react-datepicker__day--range-start {
|
|
660
|
+
&:before {
|
|
661
|
+
border-radius: 100% 0 0 100%;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
&.react-datepicker__day--range-end {
|
|
666
|
+
&:before {
|
|
667
|
+
border-radius: 0 100% 100% 0;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
// Hide background highlighting if range-start and range-end is the same day
|
|
673
|
+
.react-datepicker__month:not(.react-datepicker__month--selecting-range)
|
|
674
|
+
.react-datepicker__day--range-start.react-datepicker__day--range-end {
|
|
675
|
+
&:before {
|
|
676
|
+
visibility: hidden;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
// Fix for a bug in react-datepicker with rangeeact-datepicker__day--selecting-range-start-start day in each month highlighted as a data-range-start
|
|
681
|
+
.react-datepicker__month:not(.react-datepicker__month--selecting-range) {
|
|
682
|
+
& .react-datepicker__day--selecting-range-start:not(.react-datepicker__day--range-start),
|
|
683
|
+
& .react-datepicker__day--selecting-range-end:not(.react-datepicker__day--range-end) {
|
|
684
|
+
&.react-datepicker__day--in-range {
|
|
685
|
+
&:not(.react-datepicker__day--range-start, .react-datepicker__day--range-end) {
|
|
686
|
+
&:after {
|
|
687
|
+
visibility: hidden;
|
|
688
|
+
}
|
|
689
|
+
&:before {
|
|
690
|
+
visibility: visible;
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
// ------------------------------------------------------
|
|
697
|
+
|
|
698
|
+
// Fix cases when selected the same day for start and end:
|
|
699
|
+
.react-datepicker__month--selecting-range
|
|
700
|
+
.react-datepicker__day--range-start.react-datepicker__day--range-end {
|
|
701
|
+
&.react-datepicker__day--selecting-range-end {
|
|
702
|
+
&:before {
|
|
703
|
+
background-color: ${({theme:e})=>m.applyOpacity(e.general.brandColor,.15)};
|
|
704
|
+
visibility: visible;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
&.react-datepicker__day--selecting-range-start {
|
|
708
|
+
&:before {
|
|
709
|
+
background-color: ${({theme:e})=>m.applyOpacity(e.general.brandColor,.15)};
|
|
710
|
+
visibility: visible;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.react-datepicker__day--disabled {
|
|
716
|
+
color: ${({theme:e})=>m.applyOpacity(e.typography.primaryTextColor,.5)};
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
// Hover on day out of the possible selecting range
|
|
720
|
+
// (trying to select 'start day' after selected 'end day' and vice versa)
|
|
721
|
+
.react-datepicker__month--selecting-range .react-datepicker__day {
|
|
722
|
+
&:not(.react-datepicker__day--in-range),
|
|
723
|
+
&:not(.react-datepicker__day--in-selecting-range) {
|
|
724
|
+
&:hover {
|
|
725
|
+
&:after {
|
|
726
|
+
visibility: visible;
|
|
727
|
+
background-color: ${({theme:e})=>e.general.brandColor};
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.react-datepicker__day--selected {
|
|
734
|
+
&:after {
|
|
735
|
+
visibility: visible;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
`,iP=e=>{var r;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",n=e.disabled?"csdk-opacity-0":"";return A.jsx("svg",Te(he({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,n].join(" "),children:A.jsx("path",{fill:(r=e.fill)!=null?r:e.theme.typography.primaryTextColor,fillRule:"nonzero",d:"M13.34 12.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})}))},aP=e=>{var r;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",n=e.disabled?"csdk-opacity-0":"";return A.jsx("svg",Te(he({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,n].join(" "),children:A.jsx("path",{fill:(r=e.fill)!=null?r:e.theme.typography.primaryTextColor,fillRule:"nonzero",d:"M11.34 12.5L8.62 9.325a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175zm.279-3.175a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.999 3.5a.5.5 0 1 1-.76-.65l2.72-3.175-2.72-3.175z"})}))},Wpe=m.newStyled.span`
|
|
739
|
+
font-size: 13px;
|
|
740
|
+
font-weight: 700;
|
|
741
|
+
color: ${({theme:e})=>e.typography.primaryTextColor};
|
|
742
|
+
width: 70px;
|
|
743
|
+
text-align: center;
|
|
744
|
+
`,bp=m.newStyled.button`
|
|
745
|
+
border: none;
|
|
746
|
+
background-color: transparent;
|
|
747
|
+
color: ${({theme:e,disabled:t})=>t?"transparent":e.typography.primaryTextColor};
|
|
748
|
+
margin: 0 5px;
|
|
749
|
+
:hover {
|
|
750
|
+
border-radius: 50%;
|
|
751
|
+
|
|
752
|
+
font-weight: 500;
|
|
753
|
+
}
|
|
754
|
+
`,Upe=m.newStyled.div`
|
|
755
|
+
display: flex;
|
|
756
|
+
justify-content: center;
|
|
757
|
+
align-items: center;
|
|
758
|
+
padding: 0.5rem 10px;
|
|
759
|
+
`,qpe=e=>{const t=Cn(e.date).year(),{themeSettings:n}=m.useThemeContext();return A.jsxs(Upe,{children:[A.jsx(bp,{onClick:()=>{e.changeYear(t-1)},theme:n,disabled:e.prevMonthButtonDisabled,children:A.jsx(aP,{direction:"left",disabled:e.prevMonthButtonDisabled,className:"csdk-transition",theme:n})}),A.jsx(bp,{theme:n,onClick:e.decreaseMonth,disabled:e.prevMonthButtonDisabled,children:A.jsx(iP,{direction:"left",disabled:e.prevMonthButtonDisabled,className:"csdk-transition",theme:n})}),A.jsx(Wpe,{theme:n,children:Cn(e.date).format("MMM YYYY")}),A.jsx(bp,{theme:n,onClick:e.increaseMonth,disabled:e.nextMonthButtonDisabled,children:A.jsx(iP,{direction:"right",disabled:e.nextMonthButtonDisabled,className:"csdk-transition",theme:n})}),A.jsx(bp,{theme:n,onClick:()=>{e.changeYear(t+1)},disabled:e.nextMonthButtonDisabled,children:A.jsx(aP,{direction:"right",disabled:e.nextMonthButtonDisabled,className:"csdk-transition",theme:n})})]})},sP=m.newStyled(kj)`
|
|
760
|
+
background-color: #edeef1;
|
|
761
|
+
color: ${({theme:e})=>e.general.primaryButtonTextColor};
|
|
762
|
+
&:hover {
|
|
763
|
+
background-color: ${()=>m.getSlightlyDifferentColor("#edeef1")};
|
|
764
|
+
transition: 0.2s;
|
|
765
|
+
}
|
|
766
|
+
`,Ype=m.newStyled(Oue)`
|
|
767
|
+
background-color: #edeef1;
|
|
768
|
+
color: ${({theme:e})=>e.general.primaryButtonTextColor};
|
|
769
|
+
&:hover {
|
|
770
|
+
background-color: ${()=>m.getSlightlyDifferentColor("#edeef1")};
|
|
771
|
+
transition: 0.2s;
|
|
772
|
+
}
|
|
773
|
+
`,Vpe=m.newStyled.div`
|
|
774
|
+
background-color: ${({theme:e})=>e.general.backgroundColor};
|
|
775
|
+
`,Gpe=e=>{var l,d;const{themeSettings:t}=m.useThemeContext(),{t:n}=m.useTranslation(),r=Cn(new Date),o=(l=e.limit)==null?void 0:l.maxDate,i=(d=e.limit)==null?void 0:d.minDate,a=i&&r.isBefore(i),s=o&&r.isAfter(o),c=a||s;return A.jsxs(Vpe,{className:"csdk-flex csdk-justify-evenly csdk-gap-1 csdk-p-[10px] csdk-pb-[0px]",theme:t,children:[A.jsx(sP,{onClick:()=>{var f;const p=Cn(((f=e.limit)==null?void 0:f.minDate)||new Date);e.onDateSelected(p)},theme:t,style:{visibility:e.enabledButtons.includes("earliest")?"visible":"hidden"},children:n("dateFilter.earliestDate")}),A.jsx(Ype,{onClick:()=>{const p=Cn(new Date);e.onDateSelected(p)},disabled:c,tooltipTitle:n("dateFilter.todayOutOfRange"),disableTooltip:!c,theme:t,style:{visibility:e.enabledButtons.includes("today")?"visible":"hidden"},children:n("dateFilter.today")}),A.jsx(sP,{onClick:()=>{var f;const p=Cn(((f=e.limit)==null?void 0:f.maxDate)||new Date);e.onDateSelected(p)},theme:t,style:{visibility:e.enabledButtons.includes("latest")?"visible":"hidden"},children:n("dateFilter.latestDate")})]})};function Qpe(e,t,n){const r=t.isBefore(e.from),o=t.isAfter(e.to);let i,a;return n==="fromSelector"?o?(i=t,a=t):(i=t,a=e.to):r?(i=t,a=t):(i=e.from,a=t),{from:i,to:a}}function o5({selectedDateRange:e,limit:t,onDateRangeChanged:n,selectorMode:r,onSelectorModeChanged:o,onDateChanged:i,selectedDate:a}){var b,_;const s=y=>{r==="pointSelector"&&i?i(y):t&&n&&o&&e&&(n==null||n(Qpe({from:e.from,to:e.to},y,r)),o(r==="fromSelector"?"toSelector":"fromSelector"))},{themeSettings:c}=m.useThemeContext(),l=e==null?void 0:e.from.toDate(),d=e==null?void 0:e.to.toDate(),p=(b=t==null?void 0:t.minDate)==null?void 0:b.toDate(),f=(_=t==null?void 0:t.maxDate)==null?void 0:_.toDate(),v=[p&&"earliest","today",f&&"latest"].filter(y=>y!==void 0);return A.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"stretch",backgroundColor:c.general.backgroundColor},"aria-label":"date range filter calendar container",children:[t&&A.jsx(Gpe,{enabledButtons:v,limit:t,onDateSelected:y=>{s(Cn(y))}}),A.jsx(zpe,{theme:c,selected:r==="pointSelector"?a==null?void 0:a.toDate():r==="fromSelector"?l:d,onChange:y=>{y instanceof Date&&s(Cn(y))},startDate:l,endDate:d,minDate:p,maxDate:f,selectsStart:r==="fromSelector",selectsEnd:r==="toSelector",renderCustomHeader:y=>A.jsx(qpe,he({},y)),inline:!0,fixedHeight:!0,disabledKeyboardNavigation:!0})]})}const Ul="YYYY-MM-DD",Jpe="date-range";function i5(e){var y,C,k,T;const t=Y.useRef(null),[n,r]=Y.useState(!1),o=()=>{r(!1)},i=n?"simple-popover":void 0,{from:a,to:s}=e.value,c=Cn(a||((y=e.limit)==null?void 0:y.minDate)),l=Cn(s||((C=e.limit)==null?void 0:C.maxDate)),d={maxDate:Cn((k=e.limit)==null?void 0:k.maxDate),minDate:Cn((T=e.limit)==null?void 0:T.minDate)},[p,f]=Y.useState("fromSelector"),v=x=>{f(x),r(!0)},{themeSettings:b}=m.useThemeContext(),_=e.variant||"grey";return A.jsxs("div",{children:[e.isDependent&&A.jsx("div",{className:"csdk-h-[20px]",children:A.jsx(Rj,{})}),A.jsxs("div",{"aria-label":"date range filter",className:"csdk-w-fit csdk-flex csdk-flex-wrap",ref:t,children:[A.jsx(k1,{value:c?c.format(Ul):"Select",label:"From",onClick:()=>v("fromSelector"),isActive:n&&p==="fromSelector",theme:b,variant:_,disabled:e.disabled}),A.jsx(k1,{onClick:()=>v("toSelector"),value:l?l.format(Ul):"Today",label:"To",isActive:n&&p==="toSelector",theme:b,variant:_,disabled:e.disabled}),A.jsx(m.Popover,{id:i,open:n,anchorEl:t.current,onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:A.jsx(o5,{selectorMode:p,onDateRangeChanged:x=>{e.onChange({type:Jpe,filter:{from:x.from.format(Ul),to:x.to.format(Ul)}})},onSelectorModeChanged:x=>{f(x)},selectedDateRange:{from:c,to:l},limit:d})})]})]})}const lP=e=>{const{filter:t,attribute:n,onChange:r,parentFilters:o,dateLimits:i,isOldDateRangeFilterTile:a,disabled:s}=e,c=o&&(o==null?void 0:o.filter(p=>p&&p!==null)),l=t.from||(i==null?void 0:i.minDate),d=t.to||(i==null?void 0:i.maxDate);return A.jsx(i5,{onChange:p=>{const f=m.dateRange(n,p.filter.from,p.filter.to);r(f)},value:{from:l,to:d},limit:i,isDependent:c&&c.length>0,variant:a?"grey":"white",disabled:s})},Zpe=e=>{const t=e.filter.from&&e.filter.to?"from-to":e.filter.from?"only-from":"only-to",n=Kpe(t,e.filter);return A.jsx("div",{className:"csdk-leading-[26px] csdk-mx-auto csdk-my-2 csdk-px-1 csdk-text-[13px] csdk-whitespace-nowrap csdk-flex csdk-flex-wrap csdk-gap-x-1 csdk-justify-center",children:n})},Kpe=(e,t)=>{switch(e){case"from-to":return`${t.from} to ${t.to}`;case"only-from":return`From ${t.from}`;case"only-to":return`To ${t.to}`}},Xpe=(e,t,n,r)=>{const[o,i]=Y.useState(null),{isInitialized:a,app:s}=m.useSisenseContext(),c=m.useSetError(),l=!ehe(e)&&a&&s;return Y.useEffect(()=>{l&&m.executeQuery({dataSource:n,measures:[m.min(t),m.max(t)],filters:r},s).then(d=>{const p=d.rows[0];i({minDate:p[0].data,maxDate:p[1].data})}).catch(d=>c(d))},[s,t,n,l,r,c]),the(e,o)};function ehe(e){return e.minDate!==void 0&&e.maxDate!==void 0}function the(e,t){var o,i;const n=(o=e.minDate)!=null?o:t==null?void 0:t.minDate,r=(i=e.maxDate)!=null?i:t==null?void 0:t.maxDate;return n&&r?{minDate:n,maxDate:r}:null}const Cx=m.asSisenseComponent({componentName:"DateRangeFilterTile"})(({filter:e,onChange:t,title:n,earliestDate:r,lastDate:o,attribute:i,dataSource:a,parentFilters:s,tiled:c=!1,tileDesignOptions:l})=>{const{filter:d,updateFilter:p}=rd(e,t);if(!nhe(d))throw new m.TranslatableError("errors.invalidFilterType");const f=Xpe({minDate:r,maxDate:o},i,a,s);return c?A.jsx(ea,{title:n,renderContent:v=>v||!f?A.jsx(Zpe,{filter:d}):A.jsx("div",{className:"csdk-mt-2 csdk-ml-2 csdk-mb-1",children:A.jsx(lP,{filter:d,dateLimits:f,disabled:d.disabled,onChange:p,title:n,attribute:i})}),onToggleDisabled:()=>{const v=sg(d);p(v)},disabled:d.disabled,design:l}):f?A.jsx(lP,{filter:d,dateLimits:f,isOldDateRangeFilterTile:!0,onChange:p,title:n,attribute:i}):null});function nhe(e){return"filterType"in e&&e.filterType===m.FilterTypes.date}var a5={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(m.commonjsGlobal,function(){return function(n,r,o){r.prototype.isToday=function(){var i="YYYY-MM-DD",a=o();return this.format(i)===a.format(i)}}})})(a5);var rhe=a5.exports;const Sx=m.getDefaultExportFromCjs(rhe);Cn.extend(Sx);const ohe=e=>{var C;const{filter:t,arrangement:n="horizontal",onUpdate:r,disabled:o,limit:i}=e,a=t.operator,s=t.count,c=t.attribute,l=Cn(t.anchor),d={maxDate:i?Cn(i.maxDate):void 0,minDate:i?Cn(i==null?void 0:i.minDate):void 0},{t:p}=m.useTranslation(),[f,v]=Y.useState(!1),b=Y.useRef(null),{themeSettings:_}=m.useThemeContext(),y=(k,T,x,E)=>{if(!(k||T||x||E))return;const O=k!=null?k:a,S=T!=null?T:s,R=x!=null?x:c.granularity;E!==void 0&&(E=Cn(E));const D=E!=null?E:l,P=new m.DimensionalLevelAttribute(R,c.expression,R);let I;switch(O){case m.DateOperators.Last:I=m.dateRelativeTo(P,0,S,D.isToday()?void 0:D.toDate());break;case m.DateOperators.Next:I=m.dateRelativeFrom(P,0,S,D.isToday()?void 0:D.toDate());break;default:throw new Error(`Incorrect operator: ${O}`)}r(I)};return A.jsxs("div",{className:`csdk-flex ${Vi(n)?"csdk-flex-col":"csdk-flex-row"} csdk-mb-px`,children:[A.jsxs("div",{className:"csdk-flex csdk-justify-between csdk-items-center csdk-h-6 csdk-my-1",children:[A.jsx("div",{className:"csdk-h-6",children:A.jsx(T1,{selectedIdx:Object.keys($p).indexOf(a),elements:Object.keys($p).map(k=>A.jsx("div",{onClick:()=>{a!==k&&y(k,void 0,void 0,void 0)},children:p($p[k])})),disabled:o})}),A.jsx(Fu,{className:"csdk-w-[60px]",type:"number",placeholder:p("dateFilter.count"),value:(C=s==null?void 0:s.toString())!=null?C:"",callback:k=>{k!==""&&y(void 0,Number(k),void 0,void 0)},required:!0,disabled:o}),A.jsx("div",{className:"csdk-h-6",children:A.jsx(T1,{selectedIdx:Object.keys(zp).indexOf(c.granularity),elements:Object.keys(zp).map(k=>A.jsx("div",{onClick:()=>{c.granularity!==k&&y(void 0,void 0,k,void 0)},children:p(zp[k])})),disabled:o})})]}),A.jsxs("div",{ref:b,className:"csdk-flex csdk-justify-end csdk-items-center csdk-h-6 csdk-my-1",children:[A.jsx("div",{className:"csdk-text-[13px] csdk-ml-[5px] csdk-mr-2",children:p("dateFilter.from")}),A.jsx(k1,{onClick:()=>v(!0),value:l?l.format(Ul):p("dateFilter.today"),isActive:f,theme:_,variant:"white",disabled:o}),A.jsx(m.Popover,{id:"simple-popover",open:f,anchorEl:b.current,onClose:()=>v(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:A.jsx(o5,{selectorMode:"pointSelector",limit:d,onDateChanged:k=>{k!==l&&(y(void 0,void 0,void 0,k),v(!1))},selectedDate:l})})]})]})},$p={[m.DateOperators.Last]:"dateFilter.last",[m.DateOperators.Next]:"dateFilter.next"},zp={[m.DateLevels.Days]:"dateFilter.days",[m.DateLevels.Weeks]:"dateFilter.weeks",[m.DateLevels.Months]:"dateFilter.months",[m.DateLevels.Quarters]:"dateFilter.quarters",[m.DateLevels.Years]:"dateFilter.years"};Cn.extend(Sx);const ihe=e=>{const{filter:t}=e,{t:n}=m.useTranslation(),r=n($p[t.operator]),o=t.count.toString(),i=n(zp[t.attribute.granularity]),a=t.anchor&&!Cn(t.anchor).isToday()?Cn(t.anchor).format(Ul):n("dateFilter.today");return A.jsx("div",{className:"csdk-leading-[26px] csdk-mx-auto csdk-my-2 csdk-px-1 csdk-text-[13px] csdk-whitespace-nowrap csdk-flex csdk-flex-wrap csdk-gap-x-1 csdk-justify-center",children:`${r} ${o} ${i} ${n("dateFilter.from")} ${a}`})};Cn.extend(Sx);const kx=m.asSisenseComponent({componentName:"RelativeDateFilterTile"})(e=>{const{title:t,filter:n,arrangement:r="horizontal",onUpdate:o,limit:i,tileDesignOptions:a}=e,{filter:s,updateFilter:c}=rd(n,o),l=s.disabled;return A.jsx(ea,{title:t,renderContent:d=>d&&Vi(r)?A.jsx(ihe,{filter:s}):A.jsx(ohe,{filter:s,arrangement:r,onUpdate:c,disabled:l,limit:i}),onToggleDisabled:()=>{const d=sg(s);c(d)},disabled:l,arrangement:r,design:a})}),an={NOT_BETWEEN:`${m.FilterTypes.exclude}${m.NumericOperators.From}${m.NumericOperators.To}`,TOP:`${m.FilterTypes.ranking}${m.RankingOperators.Top}`,BOTTOM:`${m.FilterTypes.ranking}${m.RankingOperators.Bottom}`,BETWEEN:`${m.FilterTypes.numeric}${m.NumericOperators.From}${m.NumericOperators.To}`,EQUALS:`${m.FilterTypes.numeric}${m.NumericOperators.Equals}`,NOT_EQUALS:`${m.FilterTypes.numeric}${m.NumericOperators.DoesntEqual}`,LESS_THAN:`${m.FilterTypes.numeric}${m.NumericOperators.ToNotEqual}`,LESS_THAN_OR_EQUAL:`${m.FilterTypes.numeric}${m.NumericOperators.To}`,GREATER_THAN:`${m.FilterTypes.numeric}${m.NumericOperators.FromNotEqual}`,GREATER_THAN_OR_EQUAL:`${m.FilterTypes.numeric}${m.NumericOperators.From}`,IS:`${m.FilterTypes.text}${m.TextOperators.Equals}`,IS_NOT:`${m.FilterTypes.text}${m.TextOperators.DoesntEqual}`,CONTAINS:`${m.FilterTypes.text}${m.TextOperators.Contains}`,NOT_CONTAIN:`${m.FilterTypes.text}${m.TextOperators.DoesntContain}`,STARTS_WITH:`${m.FilterTypes.text}${m.TextOperators.StartsWith}`,NOT_STARTS_WITH:`${m.FilterTypes.text}${m.TextOperators.DoesntStartWith}`,ENDS_WITH:`${m.FilterTypes.text}${m.TextOperators.EndsWith}`,NOT_ENDS_WITH:`${m.FilterTypes.text}${m.TextOperators.DoesntEndWith}`,LIKE:`${m.FilterTypes.text}${m.TextOperators.Like}`},vc={[an.EQUALS]:{fn:m.equals,inputCount:1,symbols:["="],message:"criteriaFilter.equals",ranked:!1,type:m.FilterTypes.numeric},[an.NOT_EQUALS]:{fn:m.doesntEqual,inputCount:1,symbols:["≠"],message:"criteriaFilter.notEquals",ranked:!1,type:m.FilterTypes.numeric},[an.LESS_THAN]:{fn:m.lessThan,inputCount:1,symbols:["<"],message:"criteriaFilter.lessThan",ranked:!1,type:m.FilterTypes.numeric},[an.LESS_THAN_OR_EQUAL]:{fn:m.lessThanOrEqual,inputCount:1,symbols:["≤"],message:"criteriaFilter.lessThanOrEqual",ranked:!1,type:m.FilterTypes.numeric},[an.GREATER_THAN]:{fn:m.greaterThan,inputCount:1,symbols:[">"],message:"criteriaFilter.greaterThan",ranked:!1,type:m.FilterTypes.numeric},[an.GREATER_THAN_OR_EQUAL]:{fn:m.greaterThanOrEqual,inputCount:1,symbols:["≥"],message:"criteriaFilter.greaterThanOrEqual",ranked:!1,type:m.FilterTypes.numeric},[an.BETWEEN]:{fn:m.between,inputCount:2,symbols:["≥","≤"],message:"criteriaFilter.between",ranked:!1,type:m.FilterTypes.numeric},[an.NOT_BETWEEN]:{fn:(e,t,n)=>m.exclude(m.between(e,t,n)),inputCount:2,symbols:["≤","≥"],message:"criteriaFilter.notBetween",ranked:!1,type:m.FilterTypes.exclude},[an.TOP]:{fn:m.topRanking,inputCount:2,symbols:["Top","by"],message:"criteriaFilter.top",ranked:!0,type:m.FilterTypes.ranking},[an.BOTTOM]:{fn:m.bottomRanking,inputCount:2,symbols:["Last","by"],message:"criteriaFilter.bottom",ranked:!0,type:m.FilterTypes.ranking},[an.IS]:{fn:m.equals,inputCount:1,symbols:[],message:"criteriaFilter.is",ranked:!1,type:m.FilterTypes.text},[an.IS_NOT]:{fn:m.doesntEqual,inputCount:1,symbols:[],message:"criteriaFilter.isNot",ranked:!1,type:m.FilterTypes.text},[an.CONTAINS]:{fn:m.contains,inputCount:1,symbols:[],message:"criteriaFilter.contains",ranked:!1,type:m.FilterTypes.text},[an.NOT_CONTAIN]:{fn:m.doesntContain,inputCount:1,symbols:[],message:"criteriaFilter.notContains",ranked:!1,type:m.FilterTypes.text},[an.STARTS_WITH]:{fn:m.startsWith,inputCount:1,symbols:[],message:"criteriaFilter.startsWith",ranked:!1,type:m.FilterTypes.text},[an.NOT_STARTS_WITH]:{fn:m.doesntStartWith,inputCount:1,symbols:[],message:"criteriaFilter.notStartsWith",ranked:!1,type:m.FilterTypes.text},[an.ENDS_WITH]:{fn:m.endsWith,inputCount:1,symbols:[],message:"criteriaFilter.endsWith",ranked:!1,type:m.FilterTypes.text},[an.NOT_ENDS_WITH]:{fn:m.doesntEndWith,inputCount:1,symbols:[],message:"criteriaFilter.notEndsWith",ranked:!1,type:m.FilterTypes.text},[an.LIKE]:{fn:m.like,inputCount:1,symbols:[],message:"criteriaFilter.like",ranked:!1,type:m.FilterTypes.text}},ahe=e=>{let t="",n="";switch(e.filterType){case m.FilterTypes.exclude:t=e.filter.operatorA,n=e.filter.operatorB;break;case m.FilterTypes.ranking:t=e.operator;break;case m.FilterTypes.numeric:t=e.operatorA,n=e.operatorB;break;case m.FilterTypes.text:t=e.operatorA,t=e.operatorA;break}const r=`${e.filterType}${t!=null?t:""}${n!=null?n:""}`,o=Object.keys(an).find(i=>an[i]==r);if(an[o]===void 0)throw new Error(`Unsupported filter ${e}`);return an[o]},she=e=>{const t=[];let n,r;switch(e.filterType){case m.FilterTypes.exclude:n=e.filter.valueA,r=e.filter.valueB;break;case m.FilterTypes.ranking:n=e.count,r=e.measure;break;case m.FilterTypes.numeric:n=e.valueA,r=e.valueB;break;case m.FilterTypes.text:n=e.valueA,r=e.valueB;break}return n!==void 0&&t.push(n),r!==void 0&&t.push(r),t},lhe=e=>e.map(t=>m.MetadataTypes.isMeasure(t)?t.name:t),che=(e,t)=>t(e,{val:"---"}).replace("---",""),Zh=e=>{switch(e){case m.FilterTypes.exclude:case m.FilterTypes.ranking:case m.FilterTypes.numeric:return"number";case m.FilterTypes.text:default:return"text"}},uhe=e=>{var s,c;const{filterType:t,defaultValues:n=[],onUpdate:r,disabled:o}=e,i=vc[t],{t:a}=m.useTranslation();return A.jsx(Fu,{type:Zh(i.type),label:i.type===m.FilterTypes.numeric?i.symbols[0]:`${che(i.message,a)}`,value:(c=(s=n==null?void 0:n[0])==null?void 0:s.toString())!=null?c:"",callback:l=>{r==null||r([l])},required:!0,disabled:o})},dhe=e=>{var a,s,c;const{filterType:t,defaultValues:n=[],onUpdate:r,disabled:o}=e,i=vc[t];return A.jsxs(A.Fragment,{children:[A.jsx(Fu,{type:Zh(i.type),label:i.symbols[0],value:(a=n==null?void 0:n[0])!=null?a:"",callback:l=>{r==null||r([l,n==null?void 0:n[1]])},required:!0,disabled:o}),A.jsx(Fu,{type:Zh(i.type),label:i.symbols[1],value:(c=(s=n==null?void 0:n[1])==null?void 0:s.toString())!=null?c:"",callback:l=>{r==null||r([n==null?void 0:n[0],l])},required:!0,disabled:o})]})},phe=e=>{var _,y;const{filterType:t,defaultValues:n=[],onUpdate:r,arrangement:o="vertical",disabled:i,measures:a=[]}=e,s=vc[t],c=n==null?void 0:n[1],{t:l}=m.useTranslation(),d=()=>A.jsx(Nue,{className:"csdk-flex csdk-flex-col csdk-max-h-32 csdk-overflow-auto csdk-border-solid csdk-border-input csdk-p-px csdk-rounded-md",items:a.map(C=>C.name),onChange:C=>{var k;r==null||r([Number(n==null?void 0:n[0]),(k=a.find(T=>T.name===C.target.value))!=null?k:a[0]])},currentSelection:c.name,title:l("criteriaFilter.byMeasure"),disabled:i}),p=a.findIndex(C=>C.name===c.name),f=a.map(C=>A.jsx("div",{onClick:()=>{var k;C.name!==c.name&&(r==null||r([Number(n==null?void 0:n[0]),(k=a.find(T=>T.name===C.name))!=null?k:a[0]]))},children:C.name},C.name)),v=()=>A.jsxs("div",{className:"csdk-flex csdk-h-6 csdk-items-center",children:[l("criteriaFilter.by"),A.jsx(T1,{elements:f,selectedIdx:p})]}),b=()=>A.jsx("div",{className:Vi(o)?"":"csdk-self-center",children:`${l("criteriaFilter.by")} ${c.name}`});return A.jsxs(A.Fragment,{children:[A.jsx(Fu,{type:Zh(s.type),label:s.symbols[0],value:(y=(_=n==null?void 0:n[0])==null?void 0:_.toString())!=null?y:"",callback:C=>{C&&(r==null||r([Number(C),n==null?void 0:n[1]]))},required:!0,disabled:i}),a&&a.length>0?Vi(o)?d():v():b()]})},hhe=({filterType:e,arrangement:t="vertical",defaultValues:n=[],onUpdate:r,disabled:o,measures:i})=>{const{themeSettings:a}=m.useThemeContext(),s=vc[e];return A.jsxs("div",{className:`csdk-w-max csdk-mx-auto csdk-my-2 csdk-px-1 csdk-text-[13px] csdk-flex csdk-gap-x-2 csdk-gap-y-0.5 ${Vi(t)?"csdk-flex-col":"csdk-flex-row"}`,style:{color:`${a.typography.primaryTextColor}!important`},children:[(s==null?void 0:s.inputCount)===1&&A.jsx(uhe,{filterType:e,arrangement:t,defaultValues:n,onUpdate:r,disabled:o}),(s==null?void 0:s.inputCount)===2&&!s.ranked&&A.jsx(dhe,{filterType:e,arrangement:t,defaultValues:n,onUpdate:r,disabled:o}),(s==null?void 0:s.inputCount)===2&&s.ranked&&A.jsx(phe,{filterType:e,arrangement:t,defaultValues:n,onUpdate:r,disabled:o,measures:i})]})},fhe=({filterType:e,values:t=[]})=>{var i,a,s;const n=vc[e],{t:r}=m.useTranslation();let o="";switch(n.inputCount){case 1:o+=r(n.message,{val:(i=t[0])==null?void 0:i.toString()});break;case 2:o+=r(n.message,{valA:(a=t[0])==null?void 0:a.toString(),valB:(s=t[1])==null?void 0:s.toString()});break;default:for(let c=0;c<n.inputCount;c++)o+=`${n.symbols[c]} ${t[c]}`}return A.jsx("div",{className:"csdk-leading-[26px] csdk-mx-auto csdk-my-2 csdk-px-1 csdk-text-[13px] csdk-whitespace-nowrap csdk-flex csdk-flex-wrap csdk-gap-x-1 csdk-justify-center",children:r(o)})},Tx=m.asSisenseComponent({componentName:"CriteriaFilterTile"})(e=>{const{title:t,filter:n,arrangement:r="vertical",onUpdate:o,measures:i,tileDesignOptions:a}=e,{filter:s,updateFilter:c}=rd(n,o),l=s.disabled,d=ahe(s),p=vc[d],f=she(s),[v,b]=Y.useState(f),_=C=>{b(C);const k=y(C,l);c(k)},y=Y.useCallback((C,k)=>{let T=null;return p.ranked?T=p.fn(s.attribute,C==null?void 0:C[1],C==null?void 0:C[0]):T=p.fn(s.attribute,...C),T.disabled=k,T},[s.attribute,p]);return A.jsx(ea,{title:t,renderContent:C=>C&&Vi(r)?A.jsx(fhe,{filterType:d,values:lhe(v)}):A.jsx(hhe,{filterType:d,arrangement:r,defaultValues:v,onUpdate:_,disabled:l,measures:i}),arrangement:r,disabled:l,onToggleDisabled:()=>{const k=y(v,!l);c(k)},design:a})}),cP={header:{shouldBeShown:!0,isCollapsible:!1,hasBorder:!1},border:{shouldBeShown:!1},footer:{shouldBeShown:!1}},ghe=({filter:e,parentFilters:t,onChange:n,isLast:r})=>{const{t:o}=m.useTranslation(),i=e.attribute,a=i.name,s={attribute:i,title:a,onChange:n,onUpdate:n,tileDesignOptions:cP},c=e instanceof m.MembersFilter?A.jsx(bx,Te(he({},s),{filter:e,parentFilters:t})):e instanceof m.DateRangeFilter?A.jsx(Cx,Te(he({},s),{filter:e,attribute:i,tiled:!0})):e instanceof m.RelativeDateFilter?A.jsx(kx,Te(he({},s),{filter:e,arrangement:"vertical"})):e instanceof m.MeasureFilter||e instanceof m.NumericFilter||e instanceof m.TextFilter||e instanceof m.RankingFilter?A.jsx(Tx,Te(he({},s),{filter:e})):A.jsx(ea,{title:o("unsupportedFilter.title"),renderContent:()=>A.jsx("p",{className:"csdk-text-center csdk-text-[13px]",children:o("unsupportedFilter.message")}),design:cP});return A.jsx("div",{className:r?"":"csdk-border-0 csdk-border-b csdk-border-solid csdk-border-b-[#dadada]",children:c})},s5=m.asSisenseComponent({componentName:"CascadingFilterTile"})(e=>{const{filter:t,arrangement:n,onChange:r}=e,{filter:o,updateFilter:i}=rd(t,r),a=o.filters,s=(c,l)=>{a[`${l}`]=c,i(o)};return A.jsx(ea,{renderContent:()=>{const c=[];return a.map((l,d)=>{const p=[...c];return c.push(l),A.jsx(ghe,{filter:l,parentFilters:p,onChange:f=>f?s(f,d):null,isLast:d===a.length-1},d)})},arrangement:n,disabled:o.disabled,onToggleDisabled:()=>{const c=sg(o);i(c)},design:{header:{shouldBeShown:!1}}})}),l5=m.asSisenseComponent({componentName:"CustomFilterTile"})(e=>{const{t}=m.useTranslation(),{filter:n,onUpdate:r}=e,o=n.jaql().jaql.filter;delete o.custom,delete o.isAdvanced,delete o.filterType;const i=a=>{const s=m.cloneDeep(a);return s.disabled=!a.disabled,Object.setPrototypeOf(s,a),s};return A.jsx(ea,{title:n.attribute.name,renderContent:a=>a?A.jsx("p",{className:"csdk-text-center csdk-text-[13px]",children:t("customFilterTileMessage")}):A.jsx("div",{className:"csdk-text-[13px] csdk-m-3",style:{whiteSpace:"pre-wrap"},children:JSON.stringify(o,null,4)}),disabled:n.disabled,onToggleDisabled:()=>r(i(n)),design:{header:{isCollapsible:!1}}})}),c5=({filter:e,onChange:t,defaultDataSource:n})=>{const{t:r}=m.useTranslation(),o=e.attribute,i=o.name,a=he({attribute:o,title:i,onChange:t,onUpdate:t},n?{dataSource:n}:null);return e instanceof m.CustomFilter?A.jsx(l5,Te(he({},a),{filter:e})):e instanceof m.MembersFilter?A.jsx(bx,Te(he({},a),{filter:e})):e instanceof m.DateRangeFilter?A.jsx(Cx,Te(he({},a),{filter:e,attribute:o,tiled:!0})):e instanceof m.RelativeDateFilter?A.jsx(kx,Te(he({},a),{filter:e,arrangement:"vertical"})):e instanceof m.MeasureFilter||e instanceof m.NumericFilter||e instanceof m.TextFilter||e instanceof m.RankingFilter?A.jsx(Tx,Te(he({},a),{filter:e})):e instanceof m.CascadingFilter?A.jsx(s5,{filter:e,onChange:t}):A.jsx(ea,{title:r("unsupportedFilter.title"),renderContent:()=>A.jsx("p",{className:"csdk-text-center csdk-text-[13px]",children:r("unsupportedFilter.message")}),design:{header:{isCollapsible:!1}}})},mhe=m.newStyled.div`
|
|
776
|
+
background-color: ${({theme:e})=>e.chart.backgroundColor};
|
|
777
|
+
border: 1px solid #dadada;
|
|
778
|
+
width: fit-content;
|
|
779
|
+
min-width: 240px;
|
|
780
|
+
`,vhe=m.newStyled.div`
|
|
781
|
+
margin: 12px;
|
|
782
|
+
margin-top: 6px;
|
|
783
|
+
background-color: transparent;
|
|
784
|
+
`,bhe=m.newStyled.div`
|
|
785
|
+
background-color: transparent;
|
|
786
|
+
color: ${({theme:e})=>e.typography.primaryTextColor};
|
|
787
|
+
margin: 0 9px;
|
|
788
|
+
height: 48px;
|
|
789
|
+
border-bottom: 1px solid #dadada;
|
|
790
|
+
box-sizing: border-box;
|
|
791
|
+
`,yhe=m.newStyled.div`
|
|
792
|
+
font-size: 13px;
|
|
793
|
+
font-weight: bold;
|
|
794
|
+
display: flex;
|
|
795
|
+
align-items: center;
|
|
796
|
+
height: 100%;
|
|
797
|
+
margin-left: 8px;
|
|
798
|
+
`,u5=({filters:e,onFiltersChange:t,defaultDataSource:n})=>{const{themeSettings:r}=m.useThemeContext(),o=[...e],i=(a,s)=>{e&&(o[`${s}`]=a,t(o.filter(c=>c!==null)))};return A.jsxs(mhe,{theme:r,children:[A.jsx(bhe,{theme:r,children:A.jsx(yhe,{children:"Filters"})}),A.jsx(vhe,{children:e==null?void 0:e.map((a,s)=>A.jsx("div",{className:"csdk-mt-[6px]",children:A.jsx(c5,{filter:a,onChange:c=>i(c,s),defaultDataSource:n},a.guid)},a.guid))})]})},whe=m.newStyled.div`
|
|
799
|
+
max-width: 100%;
|
|
800
|
+
background-color: ${({background:e})=>e};
|
|
801
|
+
color: ${({color:e})=>e};
|
|
802
|
+
display: flex;
|
|
803
|
+
`,_he=m.newStyled.div`
|
|
804
|
+
background-color: ${({background:e})=>e};
|
|
805
|
+
flex: 1;
|
|
806
|
+
border-top: ${ks(Lp,jp)};
|
|
807
|
+
border-bottom: ${ks(Lp,jp)};
|
|
808
|
+
border-left: ${ks(Lp,jp)};
|
|
809
|
+
`,xhe=({title:e,layout:t,widgets:n,filters:r,onFiltersChange:o,defaultDataSource:i})=>{const{themeSettings:a}=m.useThemeContext();return A.jsxs(whe,{background:a.general.backgroundColor,color:a.typography.primaryTextColor,children:[A.jsxs(_he,{background:a.chart.backgroundColor,children:[A.jsx(Tue,{title:e}),A.jsx(Cue,{layout:t,widgets:n})]}),A.jsx("div",{className:"csdk-w-[240px] csdk-flex",children:A.jsx(u5,{filters:r,onFiltersChange:o,defaultDataSource:i})})]})},Che=m.newStyled.button`
|
|
810
|
+
color: ${({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor}};
|
|
811
|
+
background-color: ${({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.backgroundColor}};
|
|
812
|
+
font-size: 13px;
|
|
813
|
+
border: none;
|
|
814
|
+
height: 28px;
|
|
815
|
+
padding: 0 11px 0 9px;
|
|
816
|
+
border-radius: 4px;
|
|
817
|
+
cursor: pointer;
|
|
818
|
+
display: flex;
|
|
819
|
+
align-items: center;
|
|
820
|
+
justify-content: center;
|
|
821
|
+
&:hover {
|
|
822
|
+
background-color: rgba(247, 247, 247, 1);
|
|
823
|
+
}
|
|
824
|
+
`,She=m.newStyled.span`
|
|
825
|
+
color: ${({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor}};
|
|
826
|
+
display: inline-block;
|
|
827
|
+
padding-top: 3px;
|
|
828
|
+
white-space: nowrap;
|
|
829
|
+
`,khe=({onClick:e})=>{var r;const{themeSettings:t}=m.useThemeContext(),{t:n}=m.useTranslation();return A.jsxs(Che,{onClick:e,theme:t,children:[A.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:A.jsx("path",{fill:(r=t.chart)==null?void 0:r.textColor,d:"M7.187 7l9.774 10.279A1 1 0 0 0 17 17V8a1 1 0 0 0-1-1H7.187zm9.018 10.979L6.206 7.463l.487-.415A1 1 0 0 0 6 8v9a1 1 0 0 0 1 1h9c.07 0 .139-.007.205-.021zM7 6h9a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"})}),A.jsx(She,{theme:t,children:n("commonFilter.clearSelectionButton")})]})};function The(e,t={}){return t.all?[]:e.filter(({guid:n})=>{var r;return!((r=t.ids)!=null&&r.includes(n))})}function Ex(e,t){return e.expression===(t==null?void 0:t.expression)&&e.granularity===t.granularity}function d5(e,t){return e.find(n=>Ex(n.attribute,t))}function Ehe(e,t,n){const r=d5(n,e);return m.members(e,t.map(o=>`${o}`),void 0,r==null?void 0:r.guid)}function Ahe(e,t){return Ex(e.attribute,t.attribute)&&"members"in e&&"members"in t&&m.isEqual(e.members,t.members)}function Ohe(e){return"members"in e&&e.members.length===0}function Rhe(e,t){return m.members(e,[],void 0,t)}function p5({attribute:e,guid:t}){return Rhe(e,t)}var Dhe=m._baseUniq;function Mhe(e){return e&&e.length?Dhe(e):[]}var Phe=Mhe;const Ihe=m.getDefaultExportFromCjs(Phe);function gg(e,t){const r=e.filter(o=>{const i="value"in o&&!m.isUndefined(o.value),a="x"in o&&!m.isUndefined(o.x)||"y"in o&&!m.isUndefined(o.y),s="boxMedian"in o&&!m.isUndefined(o.boxMedian),c="geoName"in o&&!m.isUndefined(o.geoName);return i||a||s||c}).map(t);return Ihe(r)}function Nhe(e,t){return e.category.map(m.translateColumnToAttribure).map((r,o)=>({attribute:r,values:gg(t,i=>o===0?i.categoryValue:i.categoryDisplayValue)}))}function Lhe(e,t,n){const r=e.category.map(m.translateColumnToAttribure)[0],o=n;return r?[{attribute:r,values:gg(t,i=>"x"in i?o.point.series.xAxis.categories[i.x]:i.categoryValue)}]:[]}function jhe(e,t,n){const r=n,{level:o}=r.point.options.custom,i=o-1;return e.category.map(m.translateColumnToAttribure).map((s,c)=>({attribute:s,values:i===c?[r.point.name]:[]}))}function Fhe(e,t,n){const r=[],o=n;return o.type==="mouseup"?(console.warn("No cross-filtering support for multi-selection in scatter chart"),r):(e.x&&!m.isMeasureColumn(e.x)&&r.push({attribute:m.translateColumnToAttribure(e.x),values:[o.point.options.custom.maskedX]}),e.y&&!m.isMeasureColumn(e.y)&&r.push({attribute:m.translateColumnToAttribure(e.y),values:[o.point.options.custom.maskedY]}),e.breakByColor&&!m.isMeasureColumn(e.breakByColor)&&r.push({attribute:m.translateColumnToAttribure(e.breakByColor),values:[o.point.options.custom.maskedBreakByColor]}),e.breakByPoint&&r.push({attribute:m.translateColumnToAttribure(e.breakByPoint),values:[o.point.options.custom.maskedBreakByPoint]}),r)}function Bhe(e,t){return e.geo.map(m.translateColumnToAttribure).map((r,o)=>({attribute:r,values:gg(t,i=>i.categories[o])}))}function Hhe(e,t){return e.geo.map(m.translateColumnToAttribure).map(r=>({attribute:r,values:gg(t,o=>o.geoName)}))}function uP(e,t,n,r){return e==="plugin"?[]:e==="pivot"?[]:e==="treemap"||e==="sunburst"?jhe(t,n,r):m.isCartesian(e)||e==="pie"||e==="funnel"?Nhe(t,n):m.isBoxplot(e)?Lhe(t,n,r):m.isScatter(e)?Fhe(t,n,r):m.isScattermap(e)?Bhe(t,n):m.isAreamap(e)?Hhe(t,n):[]}function $he(e,t){let n=[];return e==="plugin"?n=[]:e==="pivot"?n=[...t.rows||[],...t.columns||[]]:m.isCartesian(e)||m.isCategorical(e)||m.isBoxplot(e)?n=[...t.category]:m.isScatter(e)?n=[t.x,t.y,t.breakByPoint,t.breakByColor].filter(r=>!!(r&&!m.isMeasureColumn(r))):(m.isScattermap(e)||m.isAreamap(e))&&(n=[...t.geo]),n.map(m.translateColumnToAttribure)}function dP(e,t){let n=e.map(({attribute:i,values:a})=>Ehe(i,a,t));const r=t.filter(i=>!i.disabled);return n.every(i=>{const a=d5(r,i.attribute);return a&&Ahe(i,a)})&&(n=n.map(p5)),n}const pP={applyMode:ju.HIGHLIGHT,shouldAffectFilters:!0,ignoreFilters:{all:!1,ids:[]}};function zhe(e,t){return e==="table"?{applyMode:ju.FILTER,shouldAffectFilters:!1,ignoreFilters:m.merge(pP.ignoreFilters,t.ignoreFilters||{})}:m.merge(pP,t)}function Whe(e,t,n,r,o){const i={},a=zhe(n,o),s=e.filter(d=>!d.disabled),c=The(s,a.ignoreFilters),l=$he(n,r);if((a==null?void 0:a.applyMode)==="highlight"?i.highlights=c:i.filters=c,a.shouldAffectFilters&&l.length){i.onDataPointClick=(v,b)=>{const _=uP(n,r,[v],b),y=dP(_,e);t(m.mergeFilters(e,y))},i.onDataPointsSelected=(v,b)=>{const _=uP(n,r,v,b),y=dP(_,e);t(m.mergeFilters(e,y))};const d=s.filter(v=>l==null?void 0:l.some(b=>Ex(v.attribute,b)&&!Ohe(v))),p=!!d.length,f=()=>{const v=d.map(p5);t(m.mergeFilters(e,v))};p&&(i.renderToolbar=(v,b)=>{const _=l.map(({expression:y})=>y).join(";");return A.jsxs("div",{style:{display:"flex"},children:[A.jsx(khe,{onClick:f}),b]},_)})}return i}const Uhe=({initialFilters:e=[]}={})=>{const[t,n]=Y.useState(e),r=Y.useCallback(i=>{n(m.mergeFilters(t,[i]))},[n,t]),o=Y.useCallback((i,a={})=>{var l,d,p;const s=m.cloneDeep(i),c=Whe(t,n,qce(i.widgetType),i.dataOptions,a);return s.highlights=m.mergeFilters(c.highlights,s.highlights),s.filters=m.mergeFilters(c.filters,s.filters),c.onDataPointClick&&((l=s.registerComponentDataPointClickHandler)==null||l.call(s,c.onDataPointClick)),c.onDataPointsSelected&&((d=s.registerComponentDataPointsSelectedHandler)==null||d.call(s,c.onDataPointsSelected)),c.renderToolbar&&((p=s.registerComponentRenderToolbarHandler)==null||p.call(s,c.renderToolbar)),s},[n,t]);return{filters:t,setFilters:n,addFilter:r,connectToWidgetModel:o}},qhe=({title:e,layout:t,widgets:n,filters:r,defaultDataSource:o,widgetFilterOptions:i})=>{const{filters:a,setFilters:s,connectToWidgetModel:c}=Uhe({initialFilters:r}),[l,d]=Y.useState(n),p=Y.useMemo(()=>l.filter(f=>Qce(f.widgetType)).map(f=>c(f,i==null?void 0:i[f.oid])),[l,i,c]);return Y.useEffect(()=>{s(r)},[r,s]),Y.useEffect(()=>{d(n)},[n]),A.jsx(xhe,{title:e,layout:t,widgets:p,defaultDataSource:o,filters:a,onFiltersChange:s})},Yhe=({dashboardOid:e})=>{const{themeSettings:t}=m.useThemeContext(),{dashboard:n,isLoading:r,isError:o}=hj({dashboardOid:e,includeWidgets:!0,includeFilters:!0});if(o)throw new Error("Failed to load Dashboard");return A.jsx(m.LoadingOverlay,{themeSettings:t,isVisible:r,children:n&&A.jsx(qhe,he({},n.getDashboardProps()))})};function h5(e,t){const n=t.metadata.ignore,{filters:r,highlights:o}=Qhe(Vhe(e.filters||[],n),Ghe(e.filters||[]),t);return{filters:r.map(i=>m.createFilterFromJaql(i.jaql,i.instanceid)),highlights:o.map(i=>m.createFilterFromJaql(i.jaql))}}function f5(e){const t=[];for(const n of e)if(n.isCascading){const r=n,{disabled:o}=r,i=r.levels.map(a=>({jaql:a,disabled:o}));t.push(...i)}else t.push(n);return t}function Vhe(e,t){return f5(e).filter(({instanceid:n="",disabled:r})=>!(t!=null&&t.all)&&!r&&!(t!=null&&t.ids.includes(n))).map(({jaql:n,instanceid:r})=>{const{filter:o,turnOffMembersFilter:i}=gx(n);return{instanceid:r,jaql:Te(he({},n),{filter:he(he({},o),i&&{filter:i})})}})}function Ghe(e){const t=[];return f5(e).forEach(({jaql:n})=>{const{backgroundFilter:r}=gx(n);r&&t.push({jaql:he(Te(he({},n),{filter:r}),n.datatype==="datetime"&&{level:r.level})})}),t}function Qhe(e,t,n){var a;const r=((a=n.options)==null?void 0:a.dashboardFiltersMode)===m.WidgetDashboardFilterMode.SELECT;let o=[];const i=[];return e.forEach(s=>{r&&Jhe(s,n)?i.push(s):o.push(s)}),o=[...o,...t],{filters:o,highlights:i}}function Jhe(e,t){return Zhe(t).includes(e.jaql.dim)&&!e.jaql.filter.all}function Zhe(e){const t=Khe(e.type),n=[];for(const r of t){const i=m.getEnabledPanelItems(e.metadata.panels,r).map(a=>a.jaql.dim);n.push(...i)}return n}function Khe(e){switch(e){case"chart/line":case"chart/area":return["x-axis"];case"chart/bar":case"chart/column":case"chart/polar":case"chart/pie":case"treemap":return["categories"];case"chart/scatter":return["x-axis","y-axis","point"];case"chart/boxplot":return["category"];case"map/scatter":return["geo"];case"pivot2":return["rows","columns"];default:return[]}}function Xhe(e){const{widgetType:t}=e;let n;return m.isPivotWidget(t)?n=e.getPivotTableWidgetProps():n=e.getChartWidgetProps(),{props:n,widgetType:t}}const efe=m.asSisenseComponent({componentName:"DashboardWidget",customContextErrorMessageKey:"errors.dashboardWidgetNoSisenseContext"})(e=>{var _;const b=e,{widgetOid:t,dashboardOid:n,includeDashboardFilters:r}=b,o=qr(b,["widgetOid","dashboardOid","includeDashboardFilters"]),{themeSettings:i}=m.useThemeContext(),{widget:a,dashboard:s,error:c}=Yce({widgetOid:t,dashboardOid:n,includeDashboard:r});if(c)throw c;const{widgetType:l,props:d}=Y.useMemo(()=>{if(!a)return{widgetType:null,props:null};const y=new ag(a,i),C=Xhe(y);if(r){const{filters:k,highlights:T}=h5(s,a);C.props.filters=m.mergeFilters(k,C.props.filters),C.props.highlights=T}return C},[a,s,i,r]),p=m.mergeFiltersByStrategy(d==null?void 0:d.filters,o.filters,o.filtersMergeStrategy),f=m.mergeFiltersByStrategy(d==null?void 0:d.highlights,o.highlights,o.filtersMergeStrategy);if(!d)return null;const v=m.getFilterRelationsFromJaql(p,m.convertFilterRelationsModelToJaql((_=s==null?void 0:s.filterRelations)!=null&&_.length?s==null?void 0:s.filterRelations[0].filterRelations:void 0));return m.isPivotWidget(l)?A.jsx(Cj,Te(he(he({},d),o),{filters:v,highlights:f,styleOptions:he(he({},d.styleOptions),e.styleOptions)})):A.jsx(m.ChartWidget,Te(he(he({},d),o),{filters:v,highlights:f,drilldownOptions:he(he({},d.drilldownOptions),e.drilldownOptions),styleOptions:he(he({},d.styleOptions),e.styleOptions)}))}),tfe=m.asSisenseComponent({componentName:"ExecuteQuery"})(({dataSource:e,dimensions:t,measures:n,filters:r,highlights:o,count:i,offset:a,ungroup:s,children:c,onDataChanged:l,onBeforeQuery:d})=>{const p=vx({dataSource:e,dimensions:t,measures:n,filters:r,highlights:o,count:i,offset:a,ungroup:s,onBeforeQuery:d}),f=p.data,v=m.usePrevious(f);return f&&v!==f&&(l==null||l(f)),A.jsx(A.Fragment,{children:p&&(c==null?void 0:c(p))})});function hP(e,t){return Ao(e,t)}const nfe=m.withTracking("useExecuteCsvQuery")(rfe);function rfe(e){const t=Sj(e),n=qa(e,t),[r,o]=Y.useReducer(hP,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:i,app:a}=m.useSisenseContext();return Y.useEffect(()=>{if(i||o({type:"error",error:new m.TranslatableError("errors.executeQueryNoSisenseContext")}),n(a)){o({type:"loading"});const{dataSource:s,dimensions:c,measures:l,filters:d,highlights:p,count:f,offset:v,config:b,onBeforeQuery:_}=e,{filters:y,relations:C}=m.getFilterListAndRelations(d);m.executeCsvQuery({dataSource:s,dimensions:c,measures:l,filters:y,filterRelations:C,highlights:p,count:f,offset:v},a,{onBeforeQuery:_}).then(k=>b!=null&&b.asDataStream?(o({type:"success",data:k}),null):k.text()).then(k=>k&&o({type:"success",data:k})).catch(k=>{o({type:"error",error:k})})}},[a,i,e,n]),r.data&&t?hP(r,{type:"loading"}):r}const ofe=m.withTracking("useExecuteQueryByWidgetId")(g5);function g5(e){const t=afe(e),n=qa(e,t),{isInitialized:r,app:o}=m.useSisenseContext(),i=Y.useRef(void 0),[a,s]=Y.useReducer(Wh,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0});return Y.useEffect(()=>{if(r||s({type:"error",error:new m.TranslatableError("errors.executeQueryNoSisenseContext")}),n(o)){const{widgetOid:c,dashboardOid:l,filters:d,highlights:p,filtersMergeStrategy:f,count:v,offset:b,includeDashboardFilters:_,onBeforeQuery:y}=e;s({type:"loading"}),m5({widgetOid:c,dashboardOid:l,filters:d,highlights:p,filtersMergeStrategy:f,app:o,count:v,offset:b,includeDashboardFilters:_,onBeforeQuery:y}).then(({data:C,query:k})=>{i.current=k,s({type:"success",data:C})}).catch(C=>{s({type:"error",error:C})})}},[e,o,r,n]),Te(he({},a),{query:i.current})}const ife=["widgetOid","dashboardOid","count","offset","filtersMergeStrategy","includeDashboardFilters","onBeforeQuery"];function afe(e){return Hs(e,ife,(t,n)=>{const r=Is(n.filters,t.filters),o=Is(n.highlights,t.highlights);return r||o})}function m5(d){return bo(this,arguments,function*({widgetOid:e,dashboardOid:t,filters:n,highlights:r,filtersMergeStrategy:o,count:i,offset:a,includeDashboardFilters:s,app:c,onBeforeQuery:l}){var P;const p=new m.RestApi(c.httpClient),{widget:f,dashboard:v}=yield mx({widgetOid:e,dashboardOid:t,includeDashboard:s,api:p}),_=new ag(f).getExecuteQueryParams(),{dataSource:y,dimensions:C,measures:k}=_;let{filters:T,highlights:x}=_;if(s){const{filters:I,highlights:j}=h5(v,f);T=m.mergeFilters(I,T),x=m.mergeFilters(j,x)}const E=m.mergeFiltersByStrategy(T,n,o),O=m.mergeFiltersByStrategy(x,r,o),S=(P=v==null?void 0:v.filterRelations)!=null&&P.length?m.convertFilterRelationsModelToJaql(v==null?void 0:v.filterRelations[0].filterRelations):void 0,R={dataSource:y,dimensions:C,measures:k,filters:E,filterRelations:S,highlights:O,count:i,offset:a};return{data:yield m.executeQuery(R,c,{onBeforeQuery:l}),query:R}})}const sfe=m.asSisenseComponent({componentName:"ExecuteQueryByWidgetId"})(({widgetOid:e,dashboardOid:t,children:n,onDataChanged:r,filters:o,highlights:i,count:a,offset:s,filtersMergeStrategy:c,onBeforeQuery:l,includeDashboardFilters:d})=>{const p=g5({widgetOid:e,dashboardOid:t,filters:o,highlights:i,count:a,offset:s,filtersMergeStrategy:c,onBeforeQuery:l,includeDashboardFilters:d}),{data:f,query:v}=p,[b,_]=Y.useState(f);return b!==f&&(_(f),f&&v&&(r==null||r(f,v))),A.jsx(A.Fragment,{children:p&&(n==null?void 0:n(p))})});function lfe(){const e=m.useSisenseContext().app;return e==null?void 0:e.queryCache}const cfe=new m.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnMount:!1}}}),ufe=({children:e})=>A.jsx(m.QueryClientProvider,{client:cfe,children:e}),dfe=({defaultDataSource:e,url:t,token:n,wat:r,ssoEnabled:o,children:i,appConfig:a,enableTracking:s=!0,showRuntimeErrors:c=!0,enableSilentPreAuth:l=!1})=>{const d={enabled:s,packageName:"sdk-ui"},[p,f]=Y.useState(),[v,b]=Y.useState();return Y.useEffect(()=>{let _=!1;return cj({defaultDataSource:e,url:t,token:n,wat:r,ssoEnabled:o,appConfig:a,enableSilentPreAuth:l}).then(y=>{_||f(y)}).catch(y=>{b(y)}),()=>{_=!0}},[e,t,n,r,o,a,l]),A.jsx(m.I18nProvider,{userLanguage:(p==null?void 0:p.settings.language)||(p==null?void 0:p.settings.serverLanguage),children:A.jsx(m.ErrorBoundary,{showErrorBox:c,error:v,children:A.jsx(m.SisenseContext.Provider,{value:{isInitialized:!0,app:p,tracking:d},children:A.jsx(m.ThemeProvider,{skipTracking:!0,theme:p==null?void 0:p.settings.serverThemeSettings,children:A.jsx(ufe,{children:i})})})})})},pfe=({drilldownDimensions:e,initialDimension:t})=>{if(!t)throw new Error("Initial dimension has to be specified to use drilldown with custom components");const[n,r]=Y.useState([]),o=Y.useMemo(()=>e.filter(({expression:l})=>n.every(({nextDimension:d})=>d.expression!==l)),[e,n]),i=Y.useCallback((l,d)=>{r(p=>[...p,{points:l,nextDimension:d}])},[r]),a=Y.useCallback(l=>{r(d=>d.slice(0,l))},[r]),s=Y.useCallback(()=>{r([])},[r]),c=Y.useMemo(()=>v5(n,t),[n,t]);return he({selectDrilldown:i,sliceDrilldownSelections:a,clearDrilldownSelections:s,drilldownSelections:n,availableDrilldowns:o},c)},v5=(e,t)=>{var i;let n=(i=t.column)!=null?i:t;const r=[],o=[];return e.forEach(({points:a,nextDimension:s})=>{r.push(m.members(n,a.map(m.getMemberNameFromDataPoint))),o.push(a.map(m.getDisplayMemberNameFromDataPoint)),n=s}),{drilldownFilters:r,drilldownFiltersDisplayValues:o,drilldownDimension:n}},hfe=m.asSisenseComponent({componentName:"DrilldownWidget",trackingConfig:{transparent:!0}})(({drilldownDimensions:e,initialDimension:t,config:n,children:r})=>{var S,R;const[o,i]=Y.useState([]),[a,s]=Y.useState(null),c=(S=n==null?void 0:n.contextMenuComponent)!=null?S:m.ContextMenu,l=(R=n==null?void 0:n.breadcrumbsComponent)!=null?R:m.DrilldownBreadcrumbs,{selectDrilldown:d,sliceDrilldownSelections:p,clearDrilldownSelections:f,availableDrilldowns:v,drilldownFilters:b,drilldownFiltersDisplayValues:_,drilldownDimension:y}=pfe({drilldownDimensions:e,initialDimension:t}),C=Y.useMemo(()=>y&&A.jsx(l,{filtersDisplayValues:_,currentDimension:y,clearDrilldownSelections:f,sliceDrilldownSelections:p}),[l,f,y,_,p]),k=D=>{s(D)},T=Y.useCallback(()=>{i([]),s(null)},[i]),x=Y.useCallback(D=>{d(o,D)},[d,o]),E=Y.useCallback(D=>{i(D)},[i]),O=Y.useMemo(()=>[...y?[{sectionTitle:y==null?void 0:y.name}]:[],{sectionTitle:"Drill",items:v.map(D=>({caption:D.name,onClick:()=>x(D)}))}],[y,v,x]);return A.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[A.jsx(c,{position:a,itemSections:O,closeContextMenu:T}),y&&!(n!=null&&n.isBreadcrumbsDetached)&&C,A.jsx("div",{style:{flexGrow:1,minWidth:0,minHeight:0},children:r({drilldownFilters:b,drilldownDimension:y,onDataPointsSelected:E,onContextMenu:k,breadcrumbsComponent:n!=null&&n.isBreadcrumbsDetached?C:void 0})})]})}),ffe=m.asSisenseComponent({componentName:"LineChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"line"}))),gfe=m.asSisenseComponent({componentName:"ColumnChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"column"}))),mfe=m.asSisenseComponent({componentName:"AreaChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"area"}))),vfe=m.asSisenseComponent({componentName:"PieChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"pie"}))),bfe=m.asSisenseComponent({componentName:"BarChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"bar"}))),yfe=m.asSisenseComponent({componentName:"FunnelChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"funnel"}))),wfe=m.asSisenseComponent({componentName:"PolarChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"polar"}))),_fe=m.asSisenseComponent({componentName:"ScatterChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"scatter"}))),xfe=m.asSisenseComponent({componentName:"IndicatorChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"indicator"}))),Cfe=m.asSisenseComponent({componentName:"TreemapChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"treemap"}))),Sfe=m.asSisenseComponent({componentName:"SunburstChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"sunburst"}))),kfe=m.asSisenseComponent({componentName:"BoxplotChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"boxplot"}))),Tfe=m.asSisenseComponent({componentName:"ScattermapChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"scattermap"}))),Efe=m.asSisenseComponent({componentName:"AreamapChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"areamap"}))),Afe=m.asSisenseComponent({componentName:"AreaRangeChart",shouldSkipSisenseContextWaiting:m.shouldSkipSisenseContextWaiting})(e=>A.jsx(m.Chart,Te(he({},e),{chartType:"arearange"}))),Ofe=({context:e,error:t,children:n})=>{var r,o,i;return e?A.jsx(m.I18nProvider,{userLanguage:((r=e==null?void 0:e.app)==null?void 0:r.settings.language)||((o=e==null?void 0:e.app)==null?void 0:o.settings.serverLanguage),children:A.jsx(m.ErrorBoundary,{showErrorBox:e==null?void 0:e.showRuntimeErrors,error:t,children:e&&A.jsx(m.SisenseContext.Provider,{value:e,children:A.jsx(m.ThemeProvider,{skipTracking:!0,theme:(i=e.app)==null?void 0:i.settings.serverThemeSettings,children:n})})})}):A.jsx(m.ErrorBoundary,{showErrorBox:!1,error:t,children:A.jsx(m.I18nProvider,{children:A.jsx(m.ThemeProvider,{children:n})})})},Rfe=m.asSisenseComponent({componentName:"CustomThemeProvider",trackingConfig:{skip:e=>{var t;return!!((t=e.context)!=null&&t.skipTracking)},transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{const{context:{themeSettings:t},error:n,children:r}=e;if(n)throw n;return A.jsx(A.Fragment,{children:t&&A.jsx(m.ThemeContext$1.Provider,{value:{themeSettings:t},children:r})})});function b5(e,t){return bo(this,null,function*(){try{const n=yield t.httpClient.get(`api/v1/formulas/${e}?flat=true`,void 0,{skipTrackingParam:!0});return n?ig(n):null}catch(n){throw new m.TranslatableError("errors.sharedFormula.failedToFetch")}})}function y5(e,t,n){return bo(this,null,function*(){try{const o=(yield n.httpClient.get(`api/v1/formulas?datasource=${m.getDataSourceName(t)}&flat=true`,void 0,{skipTrackingParam:!0})).find(i=>i.title===e);return o?ig(o):null}catch(r){throw new m.TranslatableError("errors.sharedFormula.failedToFetch")}})}const Dfe=m.withTracking("useGetSharedFormula")(w5);function w5(e){const{name:t,dataSource:n,oid:r}=e;if(!(r||t&&n))throw new m.TranslatableError("errors.sharedFormula.identifierExpected");const o=Hs(e,["oid","name","dataSource"]),i=qa(e,o),[a,s]=Y.useReducer(Ao,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:c,app:l}=m.useSisenseContext();return Y.useEffect(()=>{if(c||s({type:"error",error:new m.TranslatableError("errors.sisenseContextNotFound")}),i(l)){s({type:"loading"});let d=Promise.resolve(null);r?d=b5(r,l):t&&n&&(d=y5(t,n,l)),d.then(p=>{s({type:"success",data:p})}).catch(p=>{s({type:"error",error:p})})}},[l,c,t,n,r,i]),a.data&&o?F1(Ao(a,{type:"loading"})):F1(a)}function F1(e){const r=e,{data:t}=r,n=qr(r,["data"]);return Te(he({},n),{formula:t})}const Mfe=m.withTracking("useFetch")((e,t,n)=>{var a;const{app:r}=m.useSisenseContext(),o=r==null?void 0:r.httpClient,i=(a=n==null?void 0:n.enabled)!=null?a:!0;return m.useQuery({queryKey:["fetch",e,t,n==null?void 0:n.requestConfig],queryFn:()=>bo(exports,null,function*(){if(!o)throw new Error("HttpClient is not available");return o.call(o.url+e,t!=null?t:{},Te(he({},n==null?void 0:n.requestConfig),{skipTrackingParam:!0}))}),enabled:i&&!!o})});exports.Chart=m.Chart;exports.ChartWidget=m.ChartWidget;exports.ContextMenu=m.ContextMenu;exports.DrilldownBreadcrumbs=m.DrilldownBreadcrumbs;exports.LoadingIndicator=m.LoadingIndicator;exports.LoadingOverlay=m.LoadingOverlay;exports.Table=m.Table;exports.TableWidget=m.TableWidget;exports.ThemeProvider=m.ThemeProvider;exports.boxWhiskerProcessResult=m.boxWhiskerProcessResult;exports.executeQuery=m.executeQuery;exports.getDefaultThemeSettings=m.getDefaultThemeSettings;exports.getSortType=m.getSortType;exports.getThemeSettingsByOid=m.getThemeSettingsByOid;exports.isCategory=m.isCategory;exports.isMeasureColumn=m.isMeasureColumn;exports.isThemeOid=m.isThemeOid;exports.isValue=m.isValue;exports.trackHook=m.trackHook;exports.useThemeContext=m.useThemeContext;exports.AreaChart=mfe;exports.AreaRangeChart=Afe;exports.AreamapChart=Efe;exports.BarChart=bfe;exports.BasicMemberFilterTile=jde;exports.BoxplotChart=kfe;exports.CascadingFilterTile=s5;exports.ClientApplication=lj;exports.ColumnChart=gfe;exports.CriteriaFilterTile=Tx;exports.CustomFilterTile=l5;exports.CustomSisenseContextProvider=Ofe;exports.CustomThemeProvider=Rfe;exports.DashboardById=Yhe;exports.DashboardWidget=efe;exports.DateFilter=i5;exports.DateRangeFilterTile=Cx;exports.DrilldownWidget=hfe;exports.ExecuteQuery=tfe;exports.ExecuteQueryByWidgetId=sfe;exports.FiltersPanel=u5;exports.FiltersPanelTile=c5;exports.FunnelChart=yfe;exports.IndicatorChart=xfe;exports.LineChart=ffe;exports.MemberFilterTile=bx;exports.PieChart=vfe;exports.PivotTable=xj;exports.PolarChart=wfe;exports.RelativeDateFilterTile=kx;exports.ScatterChart=_fe;exports.ScattermapChart=Tfe;exports.SisenseContextProvider=dfe;exports.SunburstChart=Sfe;exports.TreemapChart=Cfe;exports.createClientApplication=cj;exports.createDataOptionsFromPanels=ace;exports.dataLoadStateReducer=Ao;exports.executeQueryByWidgetId=m5;exports.fetchFormula=y5;exports.fetchFormulaByOid=b5;exports.getDashboardModel=dj;exports.getDashboardModels=pj;exports.getWidgetModel=yj;exports.processDrilldownSelections=v5;exports.queryStateReducer=Wh;exports.translateToDashboardResponse=b1;exports.translateToDashboardsResponse=y1;exports.translateToFormulaResponse=F1;exports.useExecuteCsvQuery=nfe;exports.useExecutePivotQuery=Lle;exports.useExecuteQuery=Aue;exports.useExecuteQueryByWidgetId=ofe;exports.useFetch=Mfe;exports.useGetDashboardModel=hj;exports.useGetDashboardModels=Ple;exports.useGetSharedFormula=Dfe;exports.useGetSharedFormulaInternal=w5;exports.useGetWidgetModel=Vce;exports.useQueryCache=lfe;
|
|
830
|
+
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";[class|=csdk],[class|=csdk]:before,[class|=csdk]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#d5d5d5;font-family:inherit}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.csdk-absolute{position:absolute}.csdk-relative{position:relative}.csdk-left-2{left:.5rem}.csdk-right-0{right:0}.csdk-right-\\[-15px\\]{right:-15px}.csdk-right-\\[-5px\\]{right:-5px}.csdk-right-\\[0px\\]{right:0}.csdk-right-\\[4px\\]{right:4px}.csdk-top-1\\/2{top:50%}.csdk-top-\\[3px\\]{top:3px}.csdk-top-\\[7px\\]{top:7px}.csdk-z-\\[401\\]{z-index:401}.csdk-m-3{margin:.75rem}.csdk-m-auto{margin:auto}.csdk-m-checkbox,.csdk-m-radio{margin:6px 10px 6px 6px}.csdk-mx-auto{margin-left:auto;margin-right:auto}.csdk-my-1{margin-top:.25rem;margin-bottom:.25rem}.csdk-my-2{margin-top:.5rem;margin-bottom:.5rem}.csdk-my-\\[2px\\]{margin-top:2px;margin-bottom:2px}.csdk-my-\\[5px\\]{margin-top:5px;margin-bottom:5px}.csdk-mb-1{margin-bottom:.25rem}.csdk-mb-\\[10px\\]{margin-bottom:10px}.csdk-mb-\\[3px\\]{margin-bottom:3px}.csdk-mb-\\[4px\\]{margin-bottom:4px}.csdk-mb-px{margin-bottom:1px}.csdk-ml-1{margin-left:.25rem}.csdk-ml-1\\.5{margin-left:.375rem}.csdk-ml-2{margin-left:.5rem}.csdk-ml-\\[4px\\]{margin-left:4px}.csdk-ml-\\[5px\\]{margin-left:5px}.csdk-ml-\\[6px\\]{margin-left:6px}.csdk-ml-\\[7px\\]{margin-left:7px}.csdk-ml-auto{margin-left:auto}.csdk-mr-2{margin-right:.5rem}.csdk-mr-\\[5px\\]{margin-right:5px}.csdk-mr-\\[7px\\]{margin-right:7px}.csdk-mt-2{margin-top:.5rem}.csdk-mt-3{margin-top:.75rem}.csdk-mt-\\[6px\\]{margin-top:6px}.csdk-box-border{box-sizing:border-box}.csdk-line-clamp-5{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5}.csdk-flex{display:flex}.csdk-grid{display:grid}.csdk-h-5{height:1.25rem}.csdk-h-6{height:1.5rem}.csdk-h-\\[10px\\]{height:10px}.csdk-h-\\[18px\\]{height:18px}.csdk-h-\\[20px\\]{height:20px}.csdk-h-\\[245px\\]{height:245px}.csdk-h-button{height:28px}.csdk-h-checkbox{height:12px}.csdk-h-full{height:100%}.csdk-h-radio{height:12px}.csdk-h-screen{height:100vh}.csdk-max-h-32{max-height:8rem}.csdk-max-h-\\[150px\\]{max-height:150px}.csdk-min-h-\\[20px\\]{min-height:20px}.csdk-min-h-\\[26px\\]{min-height:26px}.csdk-min-h-\\[32px\\]{min-height:32px}.csdk-w-5{width:1.25rem}.csdk-w-\\[10px\\]{width:10px}.csdk-w-\\[152px\\]{width:152px}.csdk-w-\\[18px\\]{width:18px}.csdk-w-\\[240px\\]{width:240px}.csdk-w-\\[28px\\]{width:28px}.csdk-w-\\[300px\\]{width:300px}.csdk-w-\\[60px\\]{width:60px}.csdk-w-checkbox{width:12px}.csdk-w-fit{width:-moz-fit-content;width:fit-content}.csdk-w-full{width:100%}.csdk-w-max{width:-moz-max-content;width:max-content}.csdk-w-min{width:-moz-min-content;width:min-content}.csdk-w-radio{width:12px}.csdk-min-w-\\[216px\\]{min-width:216px}.csdk-min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.csdk-max-w-xs{max-width:20rem}.-csdk-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.csdk-translate-x-1\\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-csdk-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.csdk-rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.csdk-scale-x-\\[-1\\]{--tw-scale-x: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.csdk-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes csdk-spin{to{transform:rotate(360deg)}}.csdk-animate-spin{animation:csdk-spin 1s linear infinite}.csdk-cursor-pointer{cursor:pointer}.csdk-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.csdk-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.csdk-flex-row{flex-direction:row}.csdk-flex-col{flex-direction:column}.csdk-flex-wrap{flex-wrap:wrap}.csdk-items-center{align-items:center}.csdk-justify-end{justify-content:flex-end}.csdk-justify-center{justify-content:center}.csdk-justify-between{justify-content:space-between}.csdk-justify-evenly{justify-content:space-evenly}.csdk-gap-1{gap:.25rem}.csdk-gap-2{gap:.5rem}.csdk-gap-\\[5px\\]{gap:5px}.csdk-gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.csdk-gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.csdk-gap-y-0{row-gap:0px}.csdk-gap-y-0\\.5{row-gap:.125rem}.csdk-gap-y-4{row-gap:1rem}.csdk-self-start{align-self:flex-start}.csdk-self-center{align-self:center}.csdk-overflow-auto{overflow:auto}.csdk-overflow-hidden{overflow:hidden}.\\!csdk-overflow-visible{overflow:visible!important}.csdk-text-ellipsis{text-overflow:ellipsis}.csdk-whitespace-nowrap{white-space:nowrap}.csdk-whitespace-pre-wrap{white-space:pre-wrap}.csdk-rounded{border-radius:.25rem}.csdk-rounded-\\[4px\\]{border-radius:4px}.csdk-rounded-full{border-radius:9999px}.csdk-rounded-md{border-radius:.375rem}.csdk-rounded-pill{border-radius:4px}.csdk-border{border-width:1px}.csdk-border-0{border-width:0px}.csdk-border-input{border-width:1px}.csdk-border-b{border-bottom-width:1px}.csdk-border-l{border-left-width:1px}.csdk-border-l-\\[70px\\]{border-left-width:70px}.csdk-border-r-\\[70px\\]{border-right-width:70px}.csdk-border-t{border-top-width:1px}.csdk-border-t-\\[13px\\]{border-top-width:13px}.csdk-border-solid{border-style:solid}.csdk-border-none{border-style:none}.csdk-border-UI-default{--tw-border-opacity: 1;border-color:rgb(110 115 125 / var(--tw-border-opacity))}.csdk-border-\\[\\#dadada\\]{--tw-border-opacity: 1;border-color:rgb(218 218 218 / var(--tw-border-opacity))}.csdk-border-\\[\\#e4e4e4\\]{--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity))}.csdk-border-transparent{border-color:transparent}.csdk-border-b-\\[\\#dadada\\]{--tw-border-opacity: 1;border-bottom-color:rgb(218 218 218 / var(--tw-border-opacity))}.csdk-border-l-\\[transparent\\]{border-left-color:transparent}.csdk-border-r-\\[transparent\\]{border-right-color:transparent}.csdk-border-t-\\[\\#dadada\\]{--tw-border-opacity: 1;border-top-color:rgb(218 218 218 / var(--tw-border-opacity))}.csdk-bg-\\[\\#f4f4f8\\]{--tw-bg-opacity: 1;background-color:rgb(244 244 248 / var(--tw-bg-opacity))}.csdk-bg-background-priority{background-color:#f4f4f8}.csdk-bg-primary-primary{background-color:#ffcb05}.csdk-bg-transparent{background-color:transparent}.csdk-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.csdk-p-1{padding:.25rem}.csdk-p-1\\.5{padding:.375rem}.csdk-p-3{padding:.75rem}.csdk-p-\\[10px\\]{padding:10px}.csdk-p-\\[20px\\]{padding:20px}.csdk-p-\\[4px\\]{padding:4px}.csdk-p-button{padding:4px 24px}.csdk-p-px{padding:1px}.csdk-px-1{padding-left:.25rem;padding-right:.25rem}.csdk-px-2{padding-left:.5rem;padding-right:.5rem}.csdk-px-4{padding-left:1rem;padding-right:1rem}.csdk-px-\\[12px\\]{padding-left:12px;padding-right:12px}.csdk-px-\\[20px\\]{padding-left:20px;padding-right:20px}.csdk-px-\\[40px\\]{padding-left:40px;padding-right:40px}.csdk-px-\\[8px\\]{padding-left:8px;padding-right:8px}.csdk-py-\\[14\\.5px\\]{padding-top:14.5px;padding-bottom:14.5px}.csdk-py-\\[30px\\]{padding-top:30px;padding-bottom:30px}.csdk-py-\\[3px\\]{padding-top:3px;padding-bottom:3px}.csdk-py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.csdk-py-\\[6px\\]{padding-top:6px;padding-bottom:6px}.csdk-py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.csdk-pb-\\[0px\\]{padding-bottom:0}.csdk-pl-1{padding-left:.25rem}.csdk-pl-2{padding-left:.5rem}.csdk-pl-2\\.5{padding-left:.625rem}.csdk-pl-3{padding-left:.75rem}.csdk-pr-10{padding-right:2.5rem}.csdk-pt-48{padding-top:12rem}.csdk-text-left{text-align:left}.csdk-text-center{text-align:center}.csdk-text-\\[13px\\]{font-size:13px}.csdk-text-ai-lg{font-size:18px;line-height:22px}.csdk-text-ai-sm{font-size:13px;line-height:18px}.csdk-text-ai-xs{font-size:11px;line-height:18px}.csdk-text-pill{font-size:13px}.csdk-text-xs{font-size:.75rem;line-height:1rem}.csdk-font-normal{font-weight:400}.csdk-leading-4{line-height:1rem}.csdk-leading-\\[16px\\]{line-height:16px}.csdk-leading-\\[18px\\]{line-height:18px}.csdk-leading-\\[26px\\]{line-height:26px}.csdk-leading-none{line-height:1}.csdk-tracking-\\[0\\.3px\\]{letter-spacing:.3px}.csdk-text-UI-default{--tw-text-opacity: 1;color:rgb(110 115 125 / var(--tw-text-opacity))}.csdk-text-semantic-error{color:#e74727}.csdk-text-text-active{color:#262e3d}.csdk-text-text-content{color:#262e3dcc}.csdk-text-text-link{color:#36a3d9}.csdk-text-text-linkButton{--tw-text-opacity: 1;color:rgb(30 175 243 / var(--tw-text-opacity))}.csdk-accent-UI-default{accent-color:#6e737d}.csdk-opacity-0{opacity:0}.csdk-opacity-100{opacity:1}.csdk-opacity-50{opacity:.5}.csdk-opacity-80{opacity:.8}.csdk-shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.csdk-shadow-gray-500{--tw-shadow-color: #6b7280;--tw-shadow: var(--tw-shadow-colored)}.csdk-outline-0{outline-width:0px}.csdk-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.csdk-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.csdk-delay-150{transition-delay:.15s}.csdk-duration-500{transition-duration:.5s}.invalid\\:csdk-border-input:invalid{border-width:1px}.invalid\\:csdk-border-solid:invalid{border-style:solid}.invalid\\:csdk-border-semantic-error:invalid{border-color:#e74727}.hover\\:csdk-border-2:hover{border-width:2px}.hover\\:csdk-bg-interaction-primaryHovered:hover{background-color:#f2b900}.hover\\:csdk-bg-row-hover:hover{background-color:#e0e0e04d}.focus\\:csdk-border-input:focus{border-width:1px}.focus\\:csdk-border-solid:focus{border-style:solid}.focus\\:csdk-border-UI-default:focus{--tw-border-opacity: 1;border-color:rgb(110 115 125 / var(--tw-border-opacity))}.disabled\\:csdk-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:csdk-opacity-30:disabled{opacity:.3}._container_1wquj_1{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:0 20px;text-align:center;margin:15px}._container_1wquj_1 ._card_1wquj_11{position:relative;padding:10px;box-shadow:0 2px 4px #0000001a;border-radius:4px;z-index:1;width:100%}._container_1wquj_1 ._text_1wquj_19{font-size:13px;text-align:center;font-weight:700;word-wrap:break-word}.highcharts-series.highcharts-area-series.area-series--without-pointer-events .highcharts-area{pointer-events:none}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.csdk-map-container .leaflet-interactive{outline:none}.csdk-scattermap-tooltip-row{display:flex;justify-content:space-between}.csdk-treemap-tooltip-wrapper{min-width:210px;color:#acacac;font-size:14px;line-height:16px;background:#fff;border-radius:10px;overflow:hidden;margin-right:-1px;padding-bottom:10px}.csdk-treemap-tooltip-level{display:flex;align-items:center;position:relative;padding:8px;font-size:14px;border-bottom:1px solid #ccc}.csdk-treemap-tooltip-level span{padding:0 2px}.csdk-treemap-tooltip-value{padding:10px 10px 0;font-size:12px;line-height:16px}.highcharts-sunburst-series.highcharts-legend-item{pointer-events:none!important}.csdk-boxplot-tooltip-row{display:flex;justify-content:space-between}.csdk-boxplot-tooltip-row>*{margin-right:10px}.csdk-boxplot-tooltip-row>*:last-child{margin-right:0}._alert_box_10ttx_1{position:absolute;display:flex;justify-content:center;z-index:1;margin-top:1%}._alert_box_10ttx_1 ._content_10ttx_8{background-color:#616161;padding:5px;border-radius:3px;text-align:center}._alert_box_10ttx_1 ._content_10ttx_8 ._alert_10ttx_1{color:#fff;margin:0 8px;line-height:1;font-size:12px}._wrapper_g0ngm_1{width:100%;height:100%;position:relative}._title_g0ngm_7{font-size:18px;color:#9ea2ab;letter-spacing:normal;text-align:center;position:absolute;width:100%;top:11%}._image_g0ngm_18{width:66.6%;height:100%;margin:0 auto;display:block}.fixedDataTableCellGroupLayout_cellGroup{backface-visibility:hidden;left:0;overflow:hidden;position:absolute;top:0;white-space:nowrap}.fixedDataTable_isRTL .fixedDataTableCellGroupLayout_cellGroup{right:0;left:auto}.fixedDataTableCellGroupLayout_cellGroup>.public_fixedDataTableCell_main{display:inline-block;vertical-align:top;white-space:normal}.fixedDataTableCellGroupLayout_cellGroupWrapper{position:absolute;top:0}.fixedDataTableCellLayout_main{border-right-style:solid;border-right-width:1px;border-width:0 1px 0 0;box-sizing:border-box;display:block;overflow:hidden;position:absolute;white-space:normal}.fixedDataTable_isRTL .fixedDataTableCellLayout_main{border-right-width:0;border-left-style:solid;border-left-width:1px}.fixedDataTableCellLayout_lastChild{border-width:0 1px 1px 0}.fixedDataTableCellLayout_alignRight{text-align:right}.fixedDataTableCellLayout_alignCenter{text-align:center}.fixedDataTableCellLayout_wrap{display:table-cell;vertical-align:middle;box-sizing:border-box}.fixedDataTableCellLayout_wrap1{display:table}.fixedDataTableCellLayout_wrap2{display:table-row}.fixedDataTableCellLayout_wrap3{display:table-cell;vertical-align:middle}.fixedDataTableCellLayout_columnResizerContainer{position:absolute;right:0;width:6px;z-index:1}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnResizerContainer{left:0;right:auto}.fixedDataTableCellLayout_columnResizerContainer:hover{cursor:ew-resize}.fixedDataTableCellLayout_columnResizerContainer:hover .fixedDataTableCellLayout_columnResizerKnob{visibility:visible}.fixedDataTableCellLayout_columnResizerKnob{position:absolute;right:0;visibility:hidden;width:4px}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnResizerKnob{left:0;right:auto}.fixedDataTableColumnResizerLineLayout_mouseArea{cursor:ew-resize;position:absolute;right:-5px;width:12px}.fixedDataTable_isRTL .fixedDataTableColumnResizerLineLayout_mouseArea{right:auto;left:-5px}.fixedDataTableColumnResizerLineLayout_main{border-right-style:solid;border-right-width:1px;box-sizing:border-box;position:absolute;z-index:10;pointer-events:none}.fixedDataTable_isRTL .fixedDataTableColumnResizerLineLayout_main{border-right-width:0;border-left-style:solid;border-left-width:1px}.fixedDataTableColumnResizerLineLayout_hiddenElem{display:none!important}.fixedDataTableLayout_main{border-style:solid;border-width:1px;box-sizing:border-box;overflow:hidden;position:relative}.fixedDataTableLayout_header,.fixedDataTableLayout_hasBottomBorder{border-bottom-style:solid;border-bottom-width:1px}.fixedDataTableLayout_footer .public_fixedDataTableCell_main{border-top-style:solid;border-top-width:1px}.fixedDataTableLayout_topShadow,.fixedDataTableLayout_bottomShadow{height:4px;left:0;position:absolute;right:0;z-index:1}.fixedDataTableLayout_bottomShadow{margin-top:-4px}.fixedDataTableLayout_rowsContainer{overflow:hidden;position:relative}.fixedDataTableRowLayout_main{box-sizing:border-box;overflow:hidden;position:absolute;top:0}.fixedDataTableRowLayout_body{left:0;right:0;position:absolute;top:0}.fixedDataTableRowLayout_rowExpanded{box-sizing:border-box;left:0;position:absolute}.fixedDataTableRowLayout_fixedColumnsDivider{backface-visibility:hidden;border-left-style:solid;border-left-width:1px;left:0;position:absolute;top:0;width:0}.fixedDataTable_isRTL .fixedDataTableRowLayout_fixedColumnsDivider{border-left-width:0;border-right-style:solid;border-right-width:1px}.fixedDataTableRowLayout_columnsShadow{position:absolute;width:4px}.fixedDataTableRowLayout_columnsRightShadow{right:1px}.fixedDataTable_isRTL .fixedDataTableRowLayout_columnsRightShadow{left:1px;right:auto}.fixedDataTableRowLayout_rowWrapper{position:absolute;top:0}.ScrollbarLayout_main{box-sizing:border-box;outline:none;overflow:hidden;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ScrollbarLayout_mainVertical{bottom:0;right:0;top:0;width:15px}.ScrollbarLayout_mainHorizontal{height:15px;left:0;transition-property:background-color height}.ScrollbarLayout_mainHorizontal.public_Scrollbar_mainActive,.ScrollbarLayout_mainHorizontal:hover{height:17px}.ScrollbarLayout_face{left:0;overflow:hidden;position:absolute;z-index:1;transition-duration:.25s;transition-timing-function:ease;transition-property:width}.ScrollbarLayout_face:after{border-radius:6px;content:"";display:block;position:absolute;transition:background-color .25s ease}.ScrollbarLayout_faceHorizontal{bottom:0;left:0;top:0}.ScrollbarLayout_faceHorizontal:after{bottom:4px;left:0;top:4px;width:100%}.fixedDataTable_isRTL .ScrollbarLayout_faceHorizontal,.fixedDataTable_isRTL .ScrollbarLayout_faceHorizontal:after{right:0;left:auto}.ScrollbarLayout_faceHorizontal.public_Scrollbar_faceActive:after,.ScrollbarLayout_main:hover .ScrollbarLayout_faceHorizontal:after{bottom:2px}.ScrollbarLayout_faceVertical{left:0;right:0;top:0}.ScrollbarLayout_faceVertical:after{height:100%;left:4px;right:4px;top:0}.ScrollbarLayout_main:hover .ScrollbarLayout_faceVertical:after,.ScrollbarLayout_faceVertical.public_Scrollbar_faceActive:after{left:2px;right:2px}.public_fixedDataTable_main,.public_fixedDataTable_header,.public_fixedDataTable_hasBottomBorder{border-color:#d3d3d3}.public_fixedDataTable_header .public_fixedDataTableCell_main{font-weight:700}.public_fixedDataTable_header,.public_fixedDataTable_scrollbarSpacer,.public_fixedDataTable_header .public_fixedDataTableCell_main{background-color:#f6f7f8;background-image:linear-gradient(#fff,#efefef)}.public_fixedDataTable_scrollbarSpacer{position:absolute;z-index:99;top:0}.public_fixedDataTable_footer .public_fixedDataTableCell_main{background-color:#f6f7f8;border-color:#d3d3d3}.public_fixedDataTable_topShadow{background-image:linear-gradient(180deg,#0000001a,#0000)}.public_fixedDataTable_bottomShadow{background-image:linear-gradient(0deg,#0000001a,#0000)}.public_fixedDataTable_horizontalScrollbar .public_Scrollbar_mainHorizontal{background-color:#fff}.public_fixedDataTableCell_main{background-color:#fff;border-color:#d3d3d3}.public_fixedDataTableCell_highlighted{background-color:#f4f4f4}.public_fixedDataTableCell_cellContent{padding:8px}.public_fixedDataTableCell_columnResizerKnob{background-color:#0284ff}.public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap1 .public_fixedDataTableCell_cellContent{margin-left:12px}.public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap.public_fixedDataTableCell_cellContent{padding-left:20px}.fixedDataTable_isRTL .public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap1 .public_fixedDataTableCell_cellContent{margin-left:auto;margin-right:12px}.fixedDataTable_isRTL .public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap.public_fixedDataTableCell_cellContent{padding-right:20px}.fixedDataTableCellLayout_columnReorderContainer{border-color:#0284ff;background-color:#0000001a;width:12px;margin-right:-12px;float:left;cursor:move}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnReorderContainer{margin-right:auto;margin-left:-12px;float:right}.fixedDataTableCellLayout_columnReorderContainer:after{content:"::";position:absolute;top:50%;left:1px;transform:translateY(-50%)}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnReorderContainer:after{left:auto;right:1px}.public_fixedDataTableColumnResizerLine_main{border-color:#0284ff}.public_fixedDataTableRow_main{background-color:#fff}.public_fixedDataTableRow_highlighted,.public_fixedDataTableRow_highlighted .public_fixedDataTableCell_main{background-color:#f6f7f8}.public_fixedDataTableRow_fixedColumnsDivider{border-color:#d3d3d3}.public_fixedDataTableRow_columnsShadow{background-image:linear-gradient(90deg,#0000001a,#0000)}.fixedDataTable_isRTL .public_fixedDataTableRow_columnsShadow{background-image:linear-gradient(270deg,#0000001a,#0000)}.public_fixedDataTableRow_columnsRightShadow{transform:rotate(180deg)}.public_Scrollbar_main.public_Scrollbar_mainActive,.public_Scrollbar_main{background-color:#fff;border-left:1px solid #d3d3d3}.fixedDataTable_isRTL .public_Scrollbar_main.public_Scrollbar_mainActive,.fixedDataTable_isRTL .public_Scrollbar_main{border-right:1px solid #d3d3d3;border-left-width:0}.public_Scrollbar_mainOpaque,.public_Scrollbar_mainOpaque.public_Scrollbar_mainActive,.public_Scrollbar_mainOpaque:hover{background-color:#fff}.public_Scrollbar_face:after{background-color:#c2c2c2}.public_Scrollbar_main:hover .public_Scrollbar_face:after,.public_Scrollbar_mainActive .public_Scrollbar_face:after,.public_Scrollbar_faceActive:after{background-color:#7d7d7d}._tableWrapper_1ode4_16 .public_fixedDataTable_header,._tableWrapper_1ode4_16 .public_fixedDataTable_scrollbarSpacer,._tableWrapper_1ode4_16 .public_fixedDataTable_header .public_fixedDataTableCell_main{background-color:transparent;background-image:none;border-bottom:1px solid #edeef1}._tableWrapper_1ode4_16 .public_fixedDataTable_scrollbarSpacer{margin-left:3px}._tableWrapper_1ode4_16 .public_fixedDataTable_main,._tableWrapper_1ode4_16 .fixedDataTableLayout_main{border:none}._tableWrapper_1ode4_16 .public_fixedDataTableRow_highlighted,._tableWrapper_1ode4_16 .public_fixedDataTableRow_highlighted .public_fixedDataTableCell_main,._tableWrapper_1ode4_16 .public_fixedDataTableRow_main{background-color:transparent}._tableWrapper_1ode4_16 .public_fixedDataTableCell_main{background-color:transparent;border-color:#edeef1}._tableWrapper_1ode4_16 .public_fixedDataTable_header,._tableWrapper_1ode4_16 .public_fixedDataTable_hasBottomBorder,._tableWrapper_1ode4_16 .public_fixedDataTable_scrollbarSpacer{border-bottom:none}._tableWrapper_1ode4_16 .public_fixedDataTable_header .fixedDataTableCellGroupLayout_cellGroup{border-top:1px solid #edeef1;border-bottom:1px solid #edeef1;box-sizing:border-box}._tableWrapper_1ode4_16 .public_Scrollbar_main{border-left:none;background-color:transparent}._tableWrapper_1ode4_16 .fixedDataTableRowLayout_rowWrapper{border-left:1px solid #edeef1}._tableWrapper_1ode4_16 .public_Scrollbar_main.public_Scrollbar_mainOpaque{left:-1px}._tableWrapper_1ode4_16 .public_fixedDataTableCell_cellContent{padding:0 24px 0 12px}._tableWrapper_1ode4_16{height:100%;width:100%;box-sizing:border-box;-webkit-user-select:text;-moz-user-select:text;user-select:text}._table_1ode4_16{background:transparent;font-size:13px;border:none}._tableHeader_1ode4_78{color:#5c6372;background-color:transparent;margin:0;border:none;width:100%;overflow:hidden;box-sizing:border-box}._tableCell_1ode4_88{color:#5c6372;background-color:transparent;border:none;border-right:1px solid #edeef1;border-bottom:1px solid #edeef1;overflow:hidden;width:100%;box-sizing:border-box}._tableCellContent_1ode4_99{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._headerColor_1ode4_105,._rowColor_1ode4_109{background-color:#f9f9fb}._headerCell_2qf2w_16{display:flex;justify-content:left;align-items:center;margin-left:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400;width:100%;cursor:pointer}._headerCell_2qf2w_16:hover ._noSort_2qf2w_29._standard_2qf2w_29{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjMxMyAxN2g3LjY2N2EuNDkuNDkgMCAwMS40NzkuNS40OS40OSAwIDAxLS40OC41SDQuMzE0YS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptNS43NS0zaC01Ljc1YS40OS40OSAwIDAwLS40NzkuNWMwIC4yNzYuMjE1LjUuNDguNWg1Ljc1YS40OS40OSAwIDAwLjQ3OC0uNS40OS40OSAwIDAwLS40NzktLjV6bS01Ljc1LTNoMy44MzNhLjQ5LjQ5IDAgMDEuNDguNS40OS40OSAwIDAxLS40OC41SDQuMzEzYS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptMC0zSDYuMjNhLjQ5LjQ5IDAgMDEuNDc5LjUuNDkuNDkgMCAwMS0uNDguNUg0LjMxNGEuNDkuNDkgMCAwMS0uNDc5LS41YzAtLjI3Ni4yMTUtLjUuNDgtLjV6bTEwLjU0MiAwYS40OS40OSAwIDAwLS40OC41djQuNzkzbC0yLjA1Ny0yLjE0N2EuNDY1LjQ2NSAwIDAwLS42NzggMCAuNTE1LjUxNSAwIDAwMCAuNzA4bDIuODY2IDIuOTlhLjQ2OC40NjggMCAwMC42OTYgMGwyLjg2Ni0yLjk5YS41MTYuNTE2IDAgMDAwLS43MDguNDY1LjQ2NSAwIDAwLS42NzggMGwtMi4wNTYgMi4xNDZWOC41YS40OS40OSAwIDAwLS40OC0uNXoiIGZpbGw9IiM1QzYzNzIiLz48L3N2Zz4K)}._headerCell_2qf2w_16:hover ._noSort_2qf2w_29._caret_2qf2w_33{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjk5OSAxMy44NGwzLjE3NS0yLjcxOWEuNS41IDAgMDEuNjUuNzZsLTMuNSAyLjk5OGEuNS41IDAgMDEtLjY1IDBsLTMuNS0yLjk5OGEuNS41IDAgMDEuNjUtLjc2TDEyIDEzLjg0MXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K);transform:rotate(180deg)}._headerLabel_2qf2w_38{text-align:left;overflow:hidden}._icon_2qf2w_43{margin-right:10px;width:20px;box-sizing:border-box;display:inline-block}._numberIcon_2qf2w_50{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3ptNC41IDRoLjc2NmwtLjU3MiAySDguNWEuNS41IDAgMCAwIDAgMWguOTA5bC0uMzkgMS4zNjNhLjUuNSAwIDAgMCAuOTYyLjI3NEwxMC40NDkgMTRoMS45NmwtLjM5IDEuMzYzYS41LjUgMCAwIDAgLjk2Mi4yNzRMMTMuNDQ5IDE0SDE0LjVhLjUuNSAwIDAgMCAwLTFoLS43NjZsLjU3Mi0ySDE1LjVhLjUuNSAwIDAgMCAwLTFoLS45MDlsLjM5LTEuMzYzYS41LjUgMCAwIDAtLjk2Mi0uMjc0TDEzLjU1MSAxMGgtMS45NmwuMzktMS4zNjNhLjUuNSAwIDAgMC0uOTYyLS4yNzRMMTAuNTUxIDEwSDkuNWEuNS41IDAgMCAwIDAgMXptMy43NjYgMGgtMS45NmwtLjU3MiAyaDEuOTZsLjU3Mi0yeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._dateIcon_2qf2w_54{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkgNVYzLjVhLjUuNSAwIDAgMSAxIDBWNWgzVjMuNWEuNS41IDAgMCAxIDEgMFY1aDNhMiAyIDAgMCAxIDIgMnYxMGEyIDIgMCAwIDEtMiAySDZhMiAyIDAgMCAxLTItMlY3YTIgMiAwIDAgMSAyLTJoM3ptMSAxaDN2LjVhLjUuNSAwIDAgMCAxIDBWNmgzYTEgMSAwIDAgMSAxIDF2MUg1VjdhMSAxIDAgMCAxIDEtMWgzdi41YS41LjUgMCAwIDAgMSAwVjZ6TTUgMTdWOWgxM3Y4YTEgMSAwIDAgMS0xIDFINmExIDEgMCAwIDEtMS0xem05LjUtNWgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxem0tNiAyaDZhLjUuNSAwIDAgMCAwLTFoLTZhLjUuNSAwIDAgMCAwIDF6bTYgMmgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._textIcon_2qf2w_58{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTYgNWgxMWEyIDIgMCAwIDEgMiAydjEwYTIgMiAwIDAgMS0yIDJINmEyIDIgMCAwIDEtMi0yVjdhMiAyIDAgMCAxIDItMnptMCAxYTEgMSAwIDAgMC0xIDF2MTBhMSAxIDAgMCAwIDEgMWgxMWExIDEgMCAwIDAgMS0xVjdhMSAxIDAgMCAwLTEtMUg2em04IDEwSDlhLjUuNSAwIDAgMSAwLTFoMlY5SDguNWEuNS41IDAgMCAwLS41LjV2MmEuNS41IDAgMCAxLTEgMHYtMkExLjUgMS41IDAgMCAxIDguNSA4aDZBMS41IDEuNSAwIDAgMSAxNiA5LjV2MmEuNS41IDAgMCAxLTEgMHYtMmEuNS41IDAgMCAwLS41LS41SDEydjZoMmEuNS41IDAgMCAxIDAgMXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K)}._booleanIcon_2qf2w_62{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3oiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNOC44IDE1LjM5NGEuNS41IDAgMCAxLS4xLS43TDEzLjQyOCA4LjRhLjUuNSAwIDEgMSAuOC42TDkuNSAxNS4yOTRhLjUuNSAwIDAgMS0uNy4xeiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjYiIHk9IjgiIHdpZHRoPSI1IiBoZWlnaHQ9IjEiIHJ4PSIuNSIgZmlsbD0iIzVCNjM3MiIvPjxwYXRoIGQ9Ik04LjUgOGEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjEzIiB5PSIxMiIgd2lkdGg9IjQiIGhlaWdodD0iMSIgcng9Ii41IiBmaWxsPSIjNUI2MzcyIi8+PHJlY3QgeD0iMTMiIHk9IjE0IiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiByeD0iLjUiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNMTMuNSAxMmEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._sortIcon_2qf2w_66{position:absolute;right:0;width:24px;height:24px;background-repeat:no-repeat}._sortAscending_2qf2w_74._standard_2qf2w_29{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjMxMyAxN2g3LjY2N2EuNDkuNDkgMCAwMS40NzkuNS40OS40OSAwIDAxLS40OC41SDQuMzE0YS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptNS43NS0zaC01Ljc1YS40OS40OSAwIDAwLS40NzkuNWMwIC4yNzYuMjE1LjUuNDguNWg1Ljc1YS40OS40OSAwIDAwLjQ3OC0uNS40OS40OSAwIDAwLS40NzktLjV6bS01Ljc1LTNoMy44MzNhLjQ5LjQ5IDAgMDEuNDguNS40OS40OSAwIDAxLS40OC41SDQuMzEzYS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptMC0zSDYuMjNhLjQ5LjQ5IDAgMDEuNDc5LjUuNDkuNDkgMCAwMS0uNDguNUg0LjMxNGEuNDkuNDkgMCAwMS0uNDc5LS41YzAtLjI3Ni4yMTUtLjUuNDgtLjV6bTEwLjU0MiAwYS40OS40OSAwIDAwLS40OC41djQuNzkzbC0yLjA1Ny0yLjE0N2EuNDY1LjQ2NSAwIDAwLS42NzggMCAuNTE1LjUxNSAwIDAwMCAuNzA4bDIuODY2IDIuOTlhLjQ2OC40NjggMCAwMC42OTYgMGwyLjg2Ni0yLjk5YS41MTYuNTE2IDAgMDAwLS43MDguNDY1LjQ2NSAwIDAwLS42NzggMGwtMi4wNTYgMi4xNDZWOC41YS40OS40OSAwIDAwLS40OC0uNXoiIGZpbGw9IiM1QzYzNzIiLz48L3N2Zz4K)}._sortDescending_2qf2w_78._standard_2qf2w_29{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjMxMyA3aDcuNjY3YS40OS40OSAwIDAwLjQ3OS0uNS40OS40OSAwIDAwLS40OC0uNUg0LjMxNGEuNDkuNDkgMCAwMC0uNDc5LjVjMCAuMjc2LjIxNS41LjQ4LjV6bTUuNzUgM2gtNS43NWEuNDkuNDkgMCAwMS0uNDc5LS41YzAtLjI3Ni4yMTUtLjUuNDgtLjVoNS43NWEuNDkuNDkgMCAwMS40NzguNS40OS40OSAwIDAxLS40NzkuNXptLTUuNzUgM2gzLjgzM2EuNDkuNDkgMCAwMC40OC0uNS40OS40OSAwIDAwLS40OC0uNUg0LjMxM2EuNDkuNDkgMCAwMC0uNDc5LjVjMCAuMjc2LjIxNS41LjQ4LjV6bTAgM0g2LjIzYS40OS40OSAwIDAwLjQ3OS0uNS40OS40OSAwIDAwLS40OC0uNUg0LjMxNGEuNDkuNDkgMCAwMC0uNDc5LjVjMCAuMjc2LjIxNS41LjQ4LjV6bTEwLjU0MiAwYS40OS40OSAwIDAxLS40OC0uNXYtNC43OTNsLTIuMDU3IDIuMTQ3YS40NjUuNDY1IDAgMDEtLjY3OCAwIC41MTUuNTE1IDAgMDEwLS43MDhsMi44NjYtMi45OWEuNDY4LjQ2OCAwIDAxLjY5NiAwbDIuODY2IDIuOTlhLjUxNi41MTYgMCAwMTAgLjcwOC40NjUuNDY1IDAgMDEtLjY3OCAwbC0yLjA1Ni0yLjE0NlYxNS41YS40OS40OSAwIDAxLS40OC41eiIgZmlsbD0iIzVDNjM3MiIvPjwvc3ZnPgo=)}._sortAscending_2qf2w_74._caret_2qf2w_33{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjk5OSAxMy44NGwzLjE3NS0yLjcxOWEuNS41IDAgMDEuNjUuNzZsLTMuNSAyLjk5OGEuNS41IDAgMDEtLjY1IDBsLTMuNS0yLjk5OGEuNS41IDAgMDEuNjUtLjc2TDEyIDEzLjg0MXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K);transform:rotate(180deg)}._sortAscending_2qf2w_74._caret_2qf2w_33:hover{transform:rotate(0)}._sortDescending_2qf2w_78._caret_2qf2w_33{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjk5OSAxMy44NGwzLjE3NS0yLjcxOWEuNS41IDAgMDEuNjUuNzZsLTMuNSAyLjk5OGEuNS41IDAgMDEtLjY1IDBsLTMuNS0yLjk5OGEuNS41IDAgMDEuNjUtLjc2TDEyIDEzLjg0MXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K)}._sortDescending_2qf2w_78._caret_2qf2w_33:hover{transform:rotate(180deg)}._headerLabel_2qf2w_38{text-align:left;flex-grow:1}._headerLabel_2qf2w_38,._headerLabel_2qf2w_38 *{overflow:hidden;text-overflow:ellipsis}._icon_t30x8_1{width:24px;height:24px;margin-right:5px;box-sizing:border-box;display:inline-block;background-repeat:no-repeat;flex-grow:0}._numberIcon_t30x8_11{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3ptNC41IDRoLjc2NmwtLjU3MiAySDguNWEuNS41IDAgMCAwIDAgMWguOTA5bC0uMzkgMS4zNjNhLjUuNSAwIDAgMCAuOTYyLjI3NEwxMC40NDkgMTRoMS45NmwtLjM5IDEuMzYzYS41LjUgMCAwIDAgLjk2Mi4yNzRMMTMuNDQ5IDE0SDE0LjVhLjUuNSAwIDAgMCAwLTFoLS43NjZsLjU3Mi0ySDE1LjVhLjUuNSAwIDAgMCAwLTFoLS45MDlsLjM5LTEuMzYzYS41LjUgMCAwIDAtLjk2Mi0uMjc0TDEzLjU1MSAxMGgtMS45NmwuMzktMS4zNjNhLjUuNSAwIDAgMC0uOTYyLS4yNzRMMTAuNTUxIDEwSDkuNWEuNS41IDAgMCAwIDAgMXptMy43NjYgMGgtMS45NmwtLjU3MiAyaDEuOTZsLjU3Mi0yeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._dateIcon_t30x8_15{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkgNVYzLjVhLjUuNSAwIDAgMSAxIDBWNWgzVjMuNWEuNS41IDAgMCAxIDEgMFY1aDNhMiAyIDAgMCAxIDIgMnYxMGEyIDIgMCAwIDEtMiAySDZhMiAyIDAgMCAxLTItMlY3YTIgMiAwIDAgMSAyLTJoM3ptMSAxaDN2LjVhLjUuNSAwIDAgMCAxIDBWNmgzYTEgMSAwIDAgMSAxIDF2MUg1VjdhMSAxIDAgMCAxIDEtMWgzdi41YS41LjUgMCAwIDAgMSAwVjZ6TTUgMTdWOWgxM3Y4YTEgMSAwIDAgMS0xIDFINmExIDEgMCAwIDEtMS0xem05LjUtNWgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxem0tNiAyaDZhLjUuNSAwIDAgMCAwLTFoLTZhLjUuNSAwIDAgMCAwIDF6bTYgMmgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._textIcon_t30x8_19{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTYgNWgxMWEyIDIgMCAwIDEgMiAydjEwYTIgMiAwIDAgMS0yIDJINmEyIDIgMCAwIDEtMi0yVjdhMiAyIDAgMCAxIDItMnptMCAxYTEgMSAwIDAgMC0xIDF2MTBhMSAxIDAgMCAwIDEgMWgxMWExIDEgMCAwIDAgMS0xVjdhMSAxIDAgMCAwLTEtMUg2em04IDEwSDlhLjUuNSAwIDAgMSAwLTFoMlY5SDguNWEuNS41IDAgMCAwLS41LjV2MmEuNS41IDAgMCAxLTEgMHYtMkExLjUgMS41IDAgMCAxIDguNSA4aDZBMS41IDEuNSAwIDAgMSAxNiA5LjV2MmEuNS41IDAgMCAxLTEgMHYtMmEuNS41IDAgMCAwLS41LS41SDEydjZoMmEuNS41IDAgMCAxIDAgMXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K)}._booleanIcon_t30x8_23{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3oiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNOC44IDE1LjM5NGEuNS41IDAgMCAxLS4xLS43TDEzLjQyOCA4LjRhLjUuNSAwIDEgMSAuOC42TDkuNSAxNS4yOTRhLjUuNSAwIDAgMS0uNy4xeiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjYiIHk9IjgiIHdpZHRoPSI1IiBoZWlnaHQ9IjEiIHJ4PSIuNSIgZmlsbD0iIzVCNjM3MiIvPjxwYXRoIGQ9Ik04LjUgOGEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjEzIiB5PSIxMiIgd2lkdGg9IjQiIGhlaWdodD0iMSIgcng9Ii41IiBmaWxsPSIjNUI2MzcyIi8+PHJlY3QgeD0iMTMiIHk9IjE0IiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiByeD0iLjUiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNMTMuNSAxMmEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._component_1rw9b_1{flex-grow:1;font-family:Open Sans}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{margin-left:-4px;position:absolute;width:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{box-sizing:content-box;position:absolute;border:8px solid transparent;height:0;width:1px;content:"";z-index:-1;border-width:8px;left:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{top:0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{bottom:0;margin-bottom:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{border-bottom:none;border-top-color:#fff}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{bottom:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker-wrapper{display:inline-block;padding:0;border:0}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__triangle{left:35px}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker-popper{z-index:1}.react-datepicker-popper[data-placement^=bottom]{padding-top:10px}.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle,.react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle{left:auto;right:50px}.react-datepicker-popper[data-placement^=top]{padding-bottom:10px}.react-datepicker-popper[data-placement^=right]{padding-left:8px}.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle{left:auto;right:42px}.react-datepicker-popper[data-placement^=left]{padding-right:8px}.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle{left:42px;right:auto}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 15px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-87px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:#fff;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:not(.react-datepicker__week-number--selected,.react-datepicker__week-number--keyboard-selected):hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__week-number--selected{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__week-number--selected:hover{background-color:#1d5d90}.react-datepicker__week-number--keyboard-selected{border-radius:.3rem;background-color:#2a87d0;color:#fff}.react-datepicker__week-number--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day-names{white-space:nowrap;margin-bottom:-8px}.react-datepicker__week{white-space:nowrap}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:hover,.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover,.react-datepicker__year-text:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover,.react-datepicker__month-text--highlighted:hover,.react-datepicker__quarter-text--highlighted:hover,.react-datepicker__year-text--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--holidays,.react-datepicker__month-text--holidays,.react-datepicker__quarter-text--holidays,.react-datepicker__year-text--holidays{position:relative;border-radius:.3rem;background-color:#ff6803;color:#fff}.react-datepicker__day--holidays .holiday-overlay,.react-datepicker__month-text--holidays .holiday-overlay,.react-datepicker__quarter-text--holidays .holiday-overlay,.react-datepicker__year-text--holidays .holiday-overlay{position:absolute;bottom:100%;left:50%;transform:translate(-50%);background-color:#333;color:#fff;padding:4px;border-radius:4px;white-space:nowrap;visibility:hidden;opacity:0;transition:visibility 0s,opacity .3s ease-in-out}.react-datepicker__day--holidays:hover,.react-datepicker__month-text--holidays:hover,.react-datepicker__quarter-text--holidays:hover,.react-datepicker__year-text--holidays:hover{background-color:#cf5300}.react-datepicker__day--holidays:hover .holiday-overlay,.react-datepicker__month-text--holidays:hover .holiday-overlay,.react-datepicker__quarter-text--holidays:hover .holiday-overlay,.react-datepicker__year-text--holidays:hover .holiday-overlay{visibility:visible;opacity:1}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#bad9f1;color:#000}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover,.react-datepicker__year-text--disabled:hover{background-color:transparent}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__input-container .react-datepicker__calendar-icon{position:absolute;padding:.5rem;box-sizing:content-box}.react-datepicker__view-calendar-icon input{padding:6px 10px 5px 25px}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid transparent;border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:transparent;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"×"}.react-datepicker__close-icon--disabled{cursor:default}.react-datepicker__close-icon--disabled:after{cursor:default;background-color:#ccc}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem}.react-datepicker__children-container{width:13.8rem;margin:.4rem;padding-right:.2rem;padding-left:.2rem;height:auto}.react-datepicker__aria-live{position:absolute;clip-path:circle(0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;white-space:nowrap}.react-datepicker__calendar-icon{width:1em;height:1em;vertical-align:-.125em}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|