@sisense/sdk-ui 1.16.0 → 1.17.1
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.cjs +1 -1
- package/dist/ai.js +28 -28
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +1 -1
- package/dist/app/client-application.d.ts +22 -2
- package/dist/chart-data/types.d.ts +1 -1
- package/dist/chart-data-options/types.d.ts +4 -2
- package/dist/chart-data-processor/table-processor.d.ts +1 -1
- package/dist/chart-options-processor/common-highcharts-option-service.d.ts +2 -1
- package/dist/charts/map-charts/scattermap/utils/map.d.ts +6 -2
- package/dist/charts/map-charts/scattermap/utils/markers.d.ts +1 -1
- package/dist/charts/table/data-table-wrapper.d.ts +1 -1
- package/dist/charts/table/helpers/calc-column-widths.d.ts +1 -1
- package/dist/charts/table/types.d.ts +0 -1
- package/dist/common/components/loading-indicator.d.ts +13 -0
- package/dist/common/hooks/use-has-changed.d.ts +1 -1
- package/dist/common/hooks/use-tracking.d.ts +7 -0
- package/dist/common-filters/selection-utils.d.ts +1 -1
- package/dist/common-filters/types.d.ts +9 -3
- package/dist/common-filters/utils.d.ts +0 -4
- package/dist/dashboard/dashboard-by-id.d.ts +6 -3
- package/dist/dashboard/dashboard.d.ts +6 -4
- package/dist/dashboard/index.d.ts +1 -1
- package/dist/dashboard/types.d.ts +11 -6
- package/dist/dashboard-widget/translate-widget-drilldown-options.d.ts +2 -2
- package/dist/dashboard-widget/types.d.ts +3 -0
- package/dist/decorators/component-decorators/with-tracking/error-tracker.d.ts +3 -0
- package/dist/filters/components/filters-panel/filters-panel.d.ts +2 -1
- package/dist/get-widget-options-D4UHj7o5.cjs +198 -0
- package/dist/get-widget-options-D88MkBTJ.js +37924 -0
- package/dist/index.cjs +181 -207
- package/dist/index.d.ts +3 -3
- package/dist/index.js +20412 -24315
- package/dist/models/dashboard/get-dashboard-model.d.ts +1 -1
- package/dist/models/dashboard/types.d.ts +17 -3
- package/dist/models/widget/get-widget-model.d.ts +1 -1
- package/dist/models/widget/translate-widget.d.ts +1 -0
- package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +16 -15
- package/dist/pivot-table/{use-apply-pivot-table-formatting.d.ts → hooks/use-apply-pivot-table-formatting.d.ts} +1 -1
- package/dist/pivot-table/{use-get-pivot-table-query.d.ts → hooks/use-get-pivot-table-query.d.ts} +2 -2
- package/dist/pivot-table/hooks/use-pivot-data-loading.d.ts +15 -0
- package/dist/pivot-table/hooks/use-pivot-data-service.d.ts +10 -0
- package/dist/pivot-table/{use-pivot-table-data-options-internal.d.ts → hooks/use-pivot-table-data-options-internal.d.ts} +2 -2
- package/dist/pivot-table/hooks/use-render-pivot.d.ts +24 -0
- package/dist/pivot-table/pivot-table.d.ts +2 -2
- package/dist/props.d.ts +32 -5
- package/dist/sisense-context/sisense-context.d.ts +2 -0
- package/dist/theme-provider/default-theme-settings.d.ts +2 -0
- package/dist/types.d.ts +38 -0
- package/dist/useQuery-CFlf48eQ.cjs +433 -0
- package/dist/{useQuery-DeK1uDeJ.js → useQuery-DLPVGDKo.js} +12093 -11610
- package/dist/utils/color/color-interpolation.d.ts +9 -0
- package/dist/utils/combine-handlers.d.ts +3 -0
- package/dist/utils/filters.d.ts +13 -1
- package/dist/widgets/common/drilldown-connector.d.ts +19 -0
- package/dist/widgets/common/{custom-drilldown.d.ts → use-drilldown.d.ts} +7 -3
- package/dist/widgets/use-highlight-selection.d.ts +10 -0
- package/package.json +7 -8
- package/dist/filters/utils.d.ts +0 -8
- package/dist/get-widget-options-D008Wku-.cjs +0 -172
- package/dist/get-widget-options-Xskksk4X.js +0 -34154
- package/dist/useQuery-aWnvBOTu.cjs +0 -433
- package/dist/widgets/chart-widget-deprecated.d.ts +0 -30
- package/dist/widgets/common/drilldown.d.ts +0 -25
- package/dist/widgets/common/use-widget-drilldown.d.ts +0 -2
|
@@ -1,433 +0,0 @@
|
|
|
1
|
-
"use strict";var A_=Object.defineProperty,I_=Object.defineProperties;var z_=Object.getOwnPropertyDescriptors;var wo=Object.getOwnPropertySymbols;var $f=Object.prototype.hasOwnProperty,Wf=Object.prototype.propertyIsEnumerable;var Ht=Math.pow,xl=(e,t,r)=>t in e?A_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ie=(e,t)=>{for(var r in t||(t={}))$f.call(t,r)&&xl(e,r,t[r]);if(wo)for(var r of wo(t))Wf.call(t,r)&&xl(e,r,t[r]);return e},he=(e,t)=>I_(e,z_(t));var Sr=(e,t)=>{var r={};for(var n in e)$f.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&wo)for(var n of wo(e))t.indexOf(n)<0&&Wf.call(e,n)&&(r[n]=e[n]);return r};var St=(e,t,r)=>(xl(e,typeof t!="symbol"?t+"":t,r),r);var yr=(e,t,r)=>new Promise((n,a)=>{var o=c=>{try{u(r.next(c))}catch(f){a(f)}},l=c=>{try{u(r.throw(c))}catch(f){a(f)}},u=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,l);u((r=r.apply(e,t)).next())});const Q=require("react"),V=require("react/jsx-runtime"),N=require("./get-widget-options-D008Wku-.cjs"),bi=require("react-dom");function vm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Z=vm(Q),$_=vm(bi);function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},te.apply(this,arguments)}const W_=Object.freeze(Object.defineProperty({__proto__:null,default:te},Symbol.toStringTag,{value:"Module"}));function F_(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const Ff={};function iu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&Ff[t[0]]||(typeof t[0]=="string"&&(Ff[t[0]]=new Date),F_(...t))}const gm=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}};function jf(e,t,r){e.loadNamespaces(t,gm(e,r))}function Bf(e,t,r,n){typeof r=="string"&&(r=[r]),r.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,gm(e,n))}function j_(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=t.languages[0],a=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const l=(u,c)=>{const f=t.services.backendConnector.state[`${u}|${c}`];return f===-1||f===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!l(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||l(n,e)&&(!a||l(o,e)))}function B_(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(iu("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(a,o)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!o(a.isLanguageChangingTo,e))return!1}}):j_(e,t,r)}const ym=Q.createContext();class H_{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const V_=(e,t)=>{const r=Q.useRef();return Q.useEffect(()=>{r.current=e},[e,t]),r.current};function fs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=t,{i18n:n,defaultNS:a}=Q.useContext(ym)||{},o=r||n||N.getI18n();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new H_),!o){iu("You will need to pass in an i18next instance by using initReactI18next");const x=(w,P)=>typeof P=="string"?P:P&&typeof P=="object"&&typeof P.defaultValue=="string"?P.defaultValue:Array.isArray(w)?w[w.length-1]:w,T=[x,{},!1];return T.t=x,T.i18n={},T.ready=!1,T}o.options.react&&o.options.react.wait!==void 0&&iu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l=ie(ie(ie({},N.getDefaults()),o.options.react),t),{useSuspense:u,keyPrefix:c}=l;let f=a||o.options&&o.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(f);const p=(o.isInitialized||o.initializedStoreOnce)&&f.every(x=>B_(x,o,l));function m(){return o.getFixedT(t.lng||null,l.nsMode==="fallback"?f:f[0],c)}const[h,b]=Q.useState(m);let _=f.join();t.lng&&(_=`${t.lng}${_}`);const g=V_(_),C=Q.useRef(!0);Q.useEffect(()=>{const{bindI18n:x,bindI18nStore:T}=l;C.current=!0,!p&&!u&&(t.lng?Bf(o,t.lng,f,()=>{C.current&&b(m)}):jf(o,f,()=>{C.current&&b(m)})),p&&g&&g!==_&&C.current&&b(m);function w(){C.current&&b(m)}return x&&o&&o.on(x,w),T&&o&&o.store.on(T,w),()=>{C.current=!1,x&&o&&x.split(" ").forEach(P=>o.off(P,w)),T&&o&&T.split(" ").forEach(P=>o.store.off(P,w))}},[o,_]);const M=Q.useRef(!0);Q.useEffect(()=>{C.current&&!M.current&&b(m),M.current=!1},[o,c]);const E=[h,o,p];if(E.t=h,E.i18n=o,E.ready=p,p||!p&&!u)return E;throw new Promise(x=>{t.lng?Bf(o,t.lng,f,()=>x()):jf(o,f,()=>x())})}function U_(e){let{i18n:t,defaultNS:r,children:n}=e;const a=Q.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return Q.createElement(ym.Provider,{value:a},n)}let xo;const q_=new Uint8Array(16);function G_(){if(!xo&&(xo=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!xo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return xo(q_)}const xt=[];for(let e=0;e<256;++e)xt.push((e+256).toString(16).slice(1));function Y_(e,t=0){return xt[e[t+0]]+xt[e[t+1]]+xt[e[t+2]]+xt[e[t+3]]+"-"+xt[e[t+4]]+xt[e[t+5]]+"-"+xt[e[t+6]]+xt[e[t+7]]+"-"+xt[e[t+8]]+xt[e[t+9]]+"-"+xt[e[t+10]]+xt[e[t+11]]+xt[e[t+12]]+xt[e[t+13]]+xt[e[t+14]]+xt[e[t+15]]}const X_=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Hf={randomUUID:X_};function bm(e,t,r){if(Hf.randomUUID&&!t&&!e)return Hf.randomUUID();e=e||{};const n=e.random||(e.rng||G_)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Y_(n)}function jn(e){return e===void 0||typeof e=="string"||"title"in e&&"type"in e}function Cl(e){return"attribute"in e}function Z_(e){return"measure"in e}const K_={title:"Grand Total",rows:!1,columns:!1},Dt={BOX_MIN_VALUE_NAME:"Box Min",BOX_MEDIAN_VALUE_NAME:"Box Median",BOX_MAX_VALUE_NAME:"Box Max",WHISKER_MIN_VALUE_NAME:"Whisker Min",WHISKER_MAX_VALUE_NAME:"Whisker Max",OUTLIER_COUNT_VALUE_NAME:"Outlier Count",OUTLIER_MIN_VALUE_NAME:"Outlier Min",OUTLIER_MAX_VALUE_NAME:"Outlier Max"};function gc(e){return[N.customFormula(Dt.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),N.customFormula(Dt.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),N.customFormula(Dt.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function Q_(e){return[...gc(e),N.customFormula(Dt.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),N.customFormula(Dt.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),N.customFormula(Dt.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function J_(e){return[...gc(e),N.customFormula(Dt.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),N.customFormula(Dt.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function e0(e){return[...gc(e),N.customFormula(Dt.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),N.customFormula(Dt.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),N.customFormula(Dt.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const t0=e=>{const t=N.cloneDeep(e),r=N.customFormula(Dt.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),n=N.customFormula(Dt.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_IQR([Attr]), all([Attr]))",{Attr:e});return t.name=`${t.name} (Outliers)`,t.jaql=a=>{const o=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return a?o:{jaql:o}},t},r0=e=>{const t=N.cloneDeep(e),r=N.customFormula(Dt.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),n=N.customFormula(Dt.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_STDEVP([Attr]), all([Attr]))",{Attr:e});return t.jaql=a=>{const o=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return a?o:{jaql:o}},t};function n0(e,t){const r=t==null?void 0:t.find(n=>_m(e)===n.attribute.id);return r&&!r.disabled&&(r.isScope&&(r.isScope=!1),e.jaql.in={selected:r.jaql()}),e}function i0(e,t){const r=[],n=[];return t.forEach(a=>{e.some(l=>_m(l)===a.attribute.id)?r.push(a):n.push(a)}),[r,n]}function _m(e){const{dim:t,level:r,dateTimeLevel:n,bucket:a}=e.jaql;let o=`${t}`;return(r||n)&&(o+=`_${r||n}`),a&&(o+=`_${a}`),o}var a0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function o0(e,t,r){return{rowsCount:e.length,columnsCount:t.length,measuresCount:r.length}}function s0(e){switch(e){case"sortAsc":return"asc";case"sortDesc":return"desc";default:return"none"}}function l0(e,t,r){const n=s0(e.direction),a=t===r.rowsCount-1,o={dir:n,initialized:!0,field:e.by&&"valuesIndex"in e.by?r.rowsCount+r.columnsCount+e.by.valuesIndex:t};return a&&(o.sortingLastDimension=!0),e.by&&(o.measurePath=(e.by.columnsMembersPath||[]).reduce((l,u,c)=>Object.assign(Object.assign({},l),{[r.rowsCount+c]:u}),{})),{sort:n,sortDetails:o}}function u0(e,t){const r=e[t.rowsCount-1];if(r.jaql.sortDetails&&r.jaql.sortDetails.field!==t.rowsCount-1){const a=e[r.jaql.sortDetails.field],o=r.jaql,{sortDetails:l,sort:u}=o,c=a0(o,["sortDetails","sort"]);a.jaql.sortDetails=l,a.jaql.sort=u,r.jaql=c}}const Io="ComposeSDK";function wm(e,t){const{attributes:r,measures:n,filters:a,filterRelations:o,highlights:l,dataSource:u,count:c,offset:f,ungroup:p}=e,m=p&&n.length===0,h=Object.assign({metadata:c0({attributes:r,measures:n,filters:a,filterRelations:o,highlights:l},t)},d0(u,c,f,m));return o?Object.assign(Object.assign({},h),{filterRelations:o}):h}function xm(e,t,r,n,a){const[o,l]=i0(e,n);e.forEach(f=>n0(f,o));const u=f=>{const p=f.jaql();return r?Array.isArray(p)?p.map(m=>Object.assign(Object.assign({},m),{instanceid:f.guid})):Object.assign(Object.assign({},p),{instanceid:f.guid}):p},c=(a?t.flatMap(f=>u(f)):[...t,...l].flatMap(f=>u(f))).filter(f=>Object.keys(f.jaql.filter||{}).length!==0);return a&&l.length>0&&console.warn(`The following highlight filters were not applied due to missing attributes: [${l.map(f=>f.attribute.name).join(", ")}].`),c}function c0(e,t){const{attributes:r,measures:n,filters:a,filterRelations:o,highlights:l}=e,u=r.map(p=>p.jaql()),c=n.map(p=>p.jaql()),f=xm(u,a,o,l,t);return[...u,...c,...f]}function d0(e,t,r,n){return Object.assign(Object.assign(Object.assign({datasource:Cm(e),by:Io,queryGuid:bm()},n?{ungroup:!0}:{}),t?{count:t}:{}),r?{offset:r}:{})}function f0(e,t){const{rowsAttributes:r,columnsAttributes:n,measures:a,filters:o,filterRelations:l,grandTotals:u,highlights:c,dataSource:f,count:p,offset:m}=e,h=Object.assign({metadata:p0({rowsAttributes:r,columnsAttributes:n,measures:a,filters:o,highlights:c},t)},m0(f,u,p,m));return l?Object.assign(Object.assign({},h),{filterRelations:l}):h}function Vf(e,t,r,n){const a=t==="rows"&&Cl(e)&&e.sort&&e.sort.direction!=="sortNone",o=Object.assign(Object.assign({},Cl(e)?e.attribute.jaql(!0):e.jaql(!0)),a&&l0(e.sort,r,n));return Object.assign(Object.assign({jaql:o},Cl(e)&&e.includeSubTotals?{format:{subtotal:!0}}:{}),{panel:t,field:{index:r,id:`${t}-${r}`}})}function h0(e,t,r){return Object.assign(Object.assign({},Z_(e)?N.merge(e.measure.jaql(),{jaql:{subtotalAgg:e.totalsCalculation},format:{databars:e.dataBars||!1}}):e.jaql()),{panel:t,field:{index:r,id:`${t}-${r}`}})}function p0(e,t){const{rowsAttributes:r,columnsAttributes:n,measures:a,filters:o,filterRelations:l,highlights:u}=e,c=o0(r,n,a);let f=0;const p=r.map((C,M)=>Vf(C,"rows",M+f,c));f=f+r.length;const m=n.map((C,M)=>Vf(C,"columns",M+f,c));f=f+n.length;const h=[...p,...m],b=a.map((C,M)=>h0(C,"measures",M+f)),_=xm(h,o,l,u,t),g=[...h,...b,..._];return u0(g,c),g}function m0(e,t,r,n){return Object.assign(Object.assign(Object.assign({datasource:Cm(e),by:Io,queryGuid:bm(),dashboard:Io,widget:Io,format:"pivot"},r?{count:r}:{}),n?{offset:n}:{}),{grandTotals:Object.assign(Object.assign({},K_),t)})}function Cm(e){return N.isDataSourceInfo(e)?{title:e.title,live:e.type==="live"}:e}function v0(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 g0(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 y0=function(){function e(r){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.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(g0(this));var a=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:
|
|
2
|
-
`+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 l=v0(a);try{l.insertRule(n,l.cssRules.length)}catch(u){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+'"',u)}}else a.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}(),Pt="-ms-",qo="-moz-",$e="-webkit-",yc="comm",bc="rule",_c="decl",b0="@import",Tm="@keyframes",_0="@layer",w0=Math.abs,hs=String.fromCharCode,x0=Object.assign;function C0(e,t){return Tt(e,0)^45?(((t<<2^Tt(e,0))<<2^Tt(e,1))<<2^Tt(e,2))<<2^Tt(e,3):0}function Em(e){return e.trim()}function T0(e,t){return(e=t.exec(e))?e[0]:e}function We(e,t,r){return e.replace(t,r)}function au(e,t){return e.indexOf(t)}function Tt(e,t){return e.charCodeAt(t)|0}function ba(e,t,r){return e.slice(t,r)}function Rr(e){return e.length}function wc(e){return e.length}function Co(e,t){return t.push(e),e}function E0(e,t){return e.map(t).join("")}var ps=1,Ti=1,Mm=0,Ft=0,mt=0,Di="";function ms(e,t,r,n,a,o,l){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:ps,column:Ti,length:l,return:""}}function ea(e,t){return x0(ms("",null,null,"",null,null,0),e,{length:-e.length},t)}function M0(){return mt}function S0(){return mt=Ft>0?Tt(Di,--Ft):0,Ti--,mt===10&&(Ti=1,ps--),mt}function Ut(){return mt=Ft<Mm?Tt(Di,Ft++):0,Ti++,mt===10&&(Ti=1,ps++),mt}function Lr(){return Tt(Di,Ft)}function zo(){return Ft}function Aa(e,t){return ba(Di,e,t)}function _a(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 Sm(e){return ps=Ti=1,Mm=Rr(Di=e),Ft=0,[]}function Pm(e){return Di="",e}function $o(e){return Em(Aa(Ft-1,ou(e===91?e+2:e===40?e+1:e)))}function P0(e){for(;(mt=Lr())&&mt<33;)Ut();return _a(e)>2||_a(mt)>3?"":" "}function R0(e,t){for(;--t&&Ut()&&!(mt<48||mt>102||mt>57&&mt<65||mt>70&&mt<97););return Aa(e,zo()+(t<6&&Lr()==32&&Ut()==32))}function ou(e){for(;Ut();)switch(mt){case e:return Ft;case 34:case 39:e!==34&&e!==39&&ou(mt);break;case 40:e===41&&ou(e);break;case 92:Ut();break}return Ft}function O0(e,t){for(;Ut()&&e+mt!==57;)if(e+mt===84&&Lr()===47)break;return"/*"+Aa(t,Ft-1)+"*"+hs(e===47?e:Ut())}function k0(e){for(;!_a(Lr());)Ut();return Aa(e,Ft)}function N0(e){return Pm(Wo("",null,null,null,[""],e=Sm(e),0,[0],e))}function Wo(e,t,r,n,a,o,l,u,c){for(var f=0,p=0,m=l,h=0,b=0,_=0,g=1,C=1,M=1,E=0,x="",T=a,w=o,P=n,R=x;C;)switch(_=E,E=Ut()){case 40:if(_!=108&&Tt(R,m-1)==58){au(R+=We($o(E),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:R+=$o(E);break;case 9:case 10:case 13:case 32:R+=P0(_);break;case 92:R+=R0(zo()-1,7);continue;case 47:switch(Lr()){case 42:case 47:Co(D0(O0(Ut(),zo()),t,r),c);break;default:R+="/"}break;case 123*g:u[f++]=Rr(R)*M;case 125*g:case 59:case 0:switch(E){case 0:case 125:C=0;case 59+p:M==-1&&(R=We(R,/\f/g,"")),b>0&&Rr(R)-m&&Co(b>32?qf(R+";",n,r,m-1):qf(We(R," ","")+";",n,r,m-2),c);break;case 59:R+=";";default:if(Co(P=Uf(R,t,r,f,p,a,u,x,T=[],w=[],m),o),E===123)if(p===0)Wo(R,t,P,P,T,o,m,u,w);else switch(h===99&&Tt(R,3)===110?100:h){case 100:case 108:case 109:case 115:Wo(e,P,P,n&&Co(Uf(e,P,P,0,0,a,u,x,a,T=[],m),w),a,w,m,u,n?T:w);break;default:Wo(R,P,P,P,[""],w,0,u,w)}}f=p=b=0,g=M=1,x=R="",m=l;break;case 58:m=1+Rr(R),b=_;default:if(g<1){if(E==123)--g;else if(E==125&&g++==0&&S0()==125)continue}switch(R+=hs(E),E*g){case 38:M=p>0?1:(R+="\f",-1);break;case 44:u[f++]=(Rr(R)-1)*M,M=1;break;case 64:Lr()===45&&(R+=$o(Ut())),h=Lr(),p=m=Rr(x=R+=k0(zo())),E++;break;case 45:_===45&&Rr(R)==2&&(g=0)}}return o}function Uf(e,t,r,n,a,o,l,u,c,f,p){for(var m=a-1,h=a===0?o:[""],b=wc(h),_=0,g=0,C=0;_<n;++_)for(var M=0,E=ba(e,m+1,m=w0(g=l[_])),x=e;M<b;++M)(x=Em(g>0?h[M]+" "+E:We(E,/&\f/g,h[M])))&&(c[C++]=x);return ms(e,t,r,a===0?bc:u,c,f,p)}function D0(e,t,r){return ms(e,t,r,yc,hs(M0()),ba(e,2,-2),0)}function qf(e,t,r,n){return ms(e,t,r,_c,ba(e,0,n),ba(e,n+1,-1),n)}function xi(e,t){for(var r="",n=wc(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function L0(e,t,r,n){switch(e.type){case _0:if(e.children.length)break;case b0:case _c:return e.return=e.return||e.value;case yc:return"";case Tm:return e.return=e.value+"{"+xi(e.children,n)+"}";case bc:e.value=e.props.join(",")}return Rr(r=xi(e.children,n))?e.return=e.value+"{"+r+"}":""}function A0(e){var t=wc(e);return function(r,n,a,o){for(var l="",u=0;u<t;u++)l+=e[u](r,n,a,o)||"";return l}}function I0(e){return function(t){t.root||(t=t.return)&&e(t)}}function Rm(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var z0=function(t,r,n){for(var a=0,o=0;a=o,o=Lr(),a===38&&o===12&&(r[n]=1),!_a(o);)Ut();return Aa(t,Ft)},$0=function(t,r){var n=-1,a=44;do switch(_a(a)){case 0:a===38&&Lr()===12&&(r[n]=1),t[n]+=z0(Ft-1,r,n);break;case 2:t[n]+=$o(a);break;case 4:if(a===44){t[++n]=Lr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=hs(a)}while(a=Ut());return t},W0=function(t,r){return Pm($0(Sm(t),r))},Gf=new WeakMap,F0=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Gf.get(n))&&!a){Gf.set(t,!0);for(var o=[],l=W0(r,o),u=n.props,c=0,f=0;c<l.length;c++)for(var p=0;p<u.length;p++,f++)t.props[f]=o[c]?l[c].replace(/&\f/g,u[p]):u[p]+" "+l[c]}}},j0=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},B0="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",H0=function(t){return t.type==="comm"&&t.children.indexOf(B0)>-1},V0=function(t){return function(r,n,a){if(!(r.type!=="rule"||t.compat)){var o=r.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var l=!!r.parent,u=l?r.parent.children:a,c=u.length-1;c>=0;c--){var f=u[c];if(f.line<r.line)break;if(f.column<r.column){if(H0(f))return;break}}o.forEach(function(p){console.error('The pseudo class "'+p+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+p.split("-child")[0]+'-of-type".')})}}}},Om=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},U0=function(t,r){for(var n=t-1;n>=0;n--)if(!Om(r[n]))return!0;return!1},Yf=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},q0=function(t,r,n){Om(t)&&(t.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."),Yf(t)):U0(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Yf(t)))};function km(e,t){switch(C0(e,t)){case 5103:return $e+"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 $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+qo+e+Pt+e+e;case 6828:case 4268:return $e+e+Pt+e+e;case 6165:return $e+e+Pt+"flex-"+e+e;case 5187:return $e+e+We(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+Pt+"flex-$1$2")+e;case 5443:return $e+e+Pt+"flex-item-"+We(e,/flex-|-self/,"")+e;case 4675:return $e+e+Pt+"flex-line-pack"+We(e,/align-content|flex-|-self/,"")+e;case 5548:return $e+e+Pt+We(e,"shrink","negative")+e;case 5292:return $e+e+Pt+We(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+We(e,"-grow","")+$e+e+Pt+We(e,"grow","positive")+e;case 4554:return $e+We(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return We(We(We(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return We(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return We(We(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+Pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4095:case 3583:case 4068:case 2532:return We(e,/(.+)-inline(.+)/,$e+"$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(Rr(e)-1-t>6)switch(Tt(e,t+1)){case 109:if(Tt(e,t+4)!==45)break;case 102:return We(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+qo+(Tt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~au(e,"stretch")?km(We(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Tt(e,t+1)!==115)break;case 6444:switch(Tt(e,Rr(e)-3-(~au(e,"!important")&&10))){case 107:return We(e,":",":"+$e)+e;case 101:return We(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$e+(Tt(e,14)===45?"inline-":"")+"box$3$1"+$e+"$2$3$1"+Pt+"$2box$3")+e}break;case 5936:switch(Tt(e,t+11)){case 114:return $e+e+Pt+We(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+Pt+We(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+Pt+We(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $e+e+Pt+e+e}return e}var G0=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case _c:t.return=km(t.value,t.length);break;case Tm:return xi([ea(t,{value:We(t.value,"@","@"+$e)})],a);case bc:if(t.length)return E0(t.props,function(o){switch(T0(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xi([ea(t,{props:[We(o,/:(read-\w+)/,":"+qo+"$1")]})],a);case"::placeholder":return xi([ea(t,{props:[We(o,/:(plac\w+)/,":"+$e+"input-$1")]}),ea(t,{props:[We(o,/:(plac\w+)/,":"+qo+"$1")]}),ea(t,{props:[We(o,/:(plac\w+)/,Pt+"input-$1")]})],a)}return""})}},Y0=[G0],Nm=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)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.
|
|
3
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var C=g.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var a=t.stylisPlugins||Y0;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var o={},l,u=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var C=g.getAttribute("data-emotion").split(" "),M=1;M<C.length;M++)o[C[M]]=!0;u.push(g)});var c,f=[F0,j0];process.env.NODE_ENV!=="production"&&f.push(V0({get compat(){return _.compat}}),q0);{var p,m=[L0,process.env.NODE_ENV!=="production"?function(g){g.root||(g.return?p.insert(g.return):g.value&&g.type!==yc&&p.insert(g.value+"{}"))}:I0(function(g){p.insert(g)})],h=A0(f.concat(a,m)),b=function(C){return xi(N0(C),h)};c=function(C,M,E,x){p=E,process.env.NODE_ENV!=="production"&&M.map!==void 0&&(p={insert:function(w){E.insert(w+M.map)}}),b(C?C+"{"+M.styles+"}":M.styles),x&&(_.inserted[M.name]=!0)}}var _={key:r,sheet:new y0({key:r,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return _.sheet.hydrate(u),_},X0=!0;function xc(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):n+=a+" "}),n}var vs=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||X0===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},gs=function(t,r,n){vs(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Z0(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var K0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Xf=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
4
|
-
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
5
|
-
You can read more about this here:
|
|
6
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Q0="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",J0=/[A-Z]|^ms/g,Dm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cc=function(t){return t.charCodeAt(1)===45},Zf=function(t){return t!=null&&typeof t!="boolean"},Tl=Rm(function(e){return Cc(e)?e:e.replace(J0,"-$&").toLowerCase()}),Go=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Dm,function(n,a,o){return br={name:a,styles:o,next:br},a})}return K0[t]!==1&&!Cc(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var ew=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,tw=["normal","none","initial","inherit","unset"],rw=Go,nw=/^-ms-/,iw=/-(.)/g,Kf={};Go=function(t,r){if(t==="content"&&(typeof r!="string"||tw.indexOf(r)===-1&&!ew.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var n=rw(t,r);return n!==""&&!Cc(t)&&t.indexOf("-")!==-1&&Kf[t]===void 0&&(Kf[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(nw,"ms-").replace(iw,function(a,o){return o.toUpperCase()})+"?")),n}}var Lm="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function wa(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Lm);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return br={name:r.name,styles:r.styles,next:br},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)br={name:n.name,styles:n.styles,next:br},n=n.next;var a=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(a+=r.map),a}return aw(e,t,r)}case"function":{if(e!==void 0){var o=br,l=r(e);return br=o,wa(e,t,l)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var u=[],c=r.replace(Dm,function(p,m,h){var b="animation"+u.length;return u.push("const "+b+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+b+"}"});u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+c+"`"]).join(`
|
|
7
|
-
`)+`
|
|
8
|
-
|
|
9
|
-
You should wrap it with \`css\` like this:
|
|
10
|
-
|
|
11
|
-
`+("css`"+c+"`"))}break}if(t==null)return r;var f=t[r];return f!==void 0?f:r}function aw(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=wa(e,t,r[a])+";";else for(var o in r){var l=r[o];if(typeof l!="object")t!=null&&t[l]!==void 0?n+=o+"{"+t[l]+"}":Zf(l)&&(n+=Tl(o)+":"+Go(o,l)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Lm);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var u=0;u<l.length;u++)Zf(l[u])&&(n+=Tl(o)+":"+Go(o,l[u])+";");else{var c=wa(e,t,l);switch(o){case"animation":case"animationName":{n+=Tl(o)+":"+c+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(Q0),n+=o+"{"+c+"}"}}}}return n}var Qf=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Am;process.env.NODE_ENV!=="production"&&(Am=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var br,Ei=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var a=!0,o="";br=void 0;var l=t[0];l==null||l.raw===void 0?(a=!1,o+=wa(n,r,l)):(process.env.NODE_ENV!=="production"&&l[0]===void 0&&console.error(Xf),o+=l[0]);for(var u=1;u<t.length;u++)o+=wa(n,r,t[u]),a&&(process.env.NODE_ENV!=="production"&&l[u]===void 0&&console.error(Xf),o+=l[u]);var c;process.env.NODE_ENV!=="production"&&(o=o.replace(Am,function(h){return c=h,""})),Qf.lastIndex=0;for(var f="",p;(p=Qf.exec(o))!==null;)f+="-"+p[1];var m=Z0(o)+f;return process.env.NODE_ENV!=="production"?{name:m,styles:o,map:c,next:br,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:m,styles:o,next:br}},ow=function(t){return t()},Im=Z[`useInsertionEffect${Math.random()}`.slice(0,5)]?Z[`useInsertionEffect${Math.random()}`.slice(0,5)]:!1,Tc=Im||ow,Jf=Im||Z.useLayoutEffect,sw={}.hasOwnProperty,Ec=Z.createContext(typeof HTMLElement!="undefined"?Nm({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Ec.displayName="EmotionCacheContext");var zm=Ec.Provider,ys=function(t){return Q.forwardRef(function(r,n){var a=Q.useContext(Ec);return t(r,a,n)})},yn=Z.createContext({});process.env.NODE_ENV!=="production"&&(yn.displayName="EmotionThemeContext");var eh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",th="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",lw=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return vs(r,n,a),Tc(function(){return gs(r,n,a)}),null},uw=ys(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[eh],o=[n],l="";typeof e.className=="string"?l=xc(t.registered,o,e.className):e.className!=null&&(l=e.className+" ");var u=Ei(o,void 0,Z.useContext(yn));if(process.env.NODE_ENV!=="production"&&u.name.indexOf("-")===-1){var c=e[th];c&&(u=Ei([u,"label:"+c+";"]))}l+=t.key+"-"+u.name;var f={};for(var p in e)sw.call(e,p)&&p!=="css"&&p!==eh&&(process.env.NODE_ENV==="production"||p!==th)&&(f[p]=e[p]);return f.ref=r,f.className=l,Z.createElement(Z.Fragment,null,Z.createElement(lw,{cache:t,serialized:u,isStringTag:typeof a=="string"}),Z.createElement(a,f))});process.env.NODE_ENV!=="production"&&(uw.displayName="EmotionCssPropInternal");var cw={name:"@emotion/react",version:"11.11.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},rh=!1,Mc=ys(function(e,t){process.env.NODE_ENV!=="production"&&!rh&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),rh=!0);var r=e.styles,n=Ei([r],void 0,Z.useContext(yn)),a=Z.useRef();return Jf(function(){var o=t.key+"-global",l=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,c=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),c!==null&&(u=!0,c.setAttribute("data-emotion",o),l.hydrate([c])),a.current=[l,u],function(){l.flush()}},[t]),Jf(function(){var o=a.current,l=o[0],u=o[1];if(u){o[1]=!1;return}if(n.next!==void 0&&gs(t,n.next,!0),l.tags.length){var c=l.tags[l.tags.length-1].nextElementSibling;l.before=c,l.flush()}t.insert("",n,l,!1)},[t,n.name]),null});process.env.NODE_ENV!=="production"&&(Mc.displayName="EmotionGlobal");function Sc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ei(t)}var Ia=function(){var t=Sc.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},dw=function e(t){for(var r=t.length,n=0,a="";n<r;n++){var o=t[n];if(o!=null){var l=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))l=e(o);else{process.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),l="";for(var u in o)o[u]&&u&&(l&&(l+=" "),l+=u)}break}default:l=o}l&&(a&&(a+=" "),a+=l)}}return a};function fw(e,t,r){var n=[],a=xc(e,n,r);return n.length<2?r:a+t(n)}var hw=function(t){var r=t.cache,n=t.serializedArr;return Tc(function(){for(var a=0;a<n.length;a++)gs(r,n[a],!1)}),null},pw=ys(function(e,t){var r=!1,n=[],a=function(){if(r&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];var h=Ei(p,t.registered);return n.push(h),vs(t,h,!1),t.key+"-"+h.name},o=function(){if(r&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return fw(t.registered,a,dw(p))},l={css:a,cx:o,theme:Z.useContext(yn)},u=e.children(l);return r=!0,Z.createElement(Z.Fragment,null,Z.createElement(hw,{cache:t,serializedArr:n}),u)});process.env.NODE_ENV!=="production"&&(pw.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var nh=!0,mw=typeof jest!="undefined"||typeof vi!="undefined";if(nh&&!mw){var ih=typeof globalThis!="undefined"?globalThis:nh?window:global,ah="__EMOTION_REACT_"+cw.version.split(".")[0]+"__";ih[ah]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),ih[ah]=!0}}var vw=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gw=Rm(function(e){return vw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),yw=gw,bw=function(t){return t!=="theme"},oh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?yw:bw},sh=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(l){return t.__emotion_forwardProp(l)&&o(l)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},lh=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
12
|
-
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
13
|
-
You can read more about this here:
|
|
14
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,_w=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return vs(r,n,a),Tc(function(){return gs(r,n,a)}),null},ww=function e(t,r){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
|
15
|
-
You may have forgotten to import it.`);var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,l;r!==void 0&&(o=r.label,l=r.target);var u=sh(t,r,n),c=u||oh(a),f=!c("as");return function(){var p=arguments,m=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&m.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{process.env.NODE_ENV!=="production"&&p[0][0]===void 0&&console.error(lh),m.push(p[0][0]);for(var h=p.length,b=1;b<h;b++)process.env.NODE_ENV!=="production"&&p[0][b]===void 0&&console.error(lh),m.push(p[b],p[0][b])}var _=ys(function(g,C,M){var E=f&&g.as||a,x="",T=[],w=g;if(g.theme==null){w={};for(var P in g)w[P]=g[P];w.theme=Z.useContext(yn)}typeof g.className=="string"?x=xc(C.registered,T,g.className):g.className!=null&&(x=g.className+" ");var R=Ei(m.concat(T),C.registered,w);x+=C.key+"-"+R.name,l!==void 0&&(x+=" "+l);var D=f&&u===void 0?oh(E):c,A={};for(var z in g)f&&z==="as"||D(z)&&(A[z]=g[z]);return A.className=x,A.ref=M,Z.createElement(Z.Fragment,null,Z.createElement(_w,{cache:C,serialized:R,isStringTag:typeof E=="string"}),Z.createElement(E,A))});return _.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=a,_.__emotion_styles=m,_.__emotion_forwardProp=u,Object.defineProperty(_,"toString",{value:function(){return l===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+l}}),_.withComponent=function(g,C){return e(g,te({},r,C,{shouldForwardProp:sh(_,C,!0)})).apply(void 0,m)},_}},xw=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],wr=ww.bind();xw.forEach(function(e){wr[e]=wr(e)});function Mi(e){"@babel/helpers - typeof";return Mi=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},Mi(e)}function za(e){N.requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Mi(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Cw(e,t){N.requiredArgs(2,arguments);var r=za(e),n=N.toInteger(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+n+1,0);var l=o.getDate();return a>=l?o:(r.setFullYear(o.getFullYear(),o.getMonth(),a),r)}var Tw={};function Ew(){return Tw}function uh(e,t){var r,n,a,o,l,u,c,f;N.requiredArgs(1,arguments);var p=Ew(),m=N.toInteger((r=(n=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(l=t.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&a!==void 0?a:p.weekStartsOn)!==null&&n!==void 0?n:(c=p.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=za(e),b=h.getUTCDay(),_=(b<m?7:0)+b-m;return h.setUTCDate(h.getUTCDate()-_),h.setUTCHours(0,0,0,0),h}var Mw={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Sw=function(t,r,n){var a,o=Mw[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function Le(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var Pw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Rw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ow={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kw={date:Le({formats:Pw,defaultWidth:"full"}),time:Le({formats:Rw,defaultWidth:"full"}),dateTime:Le({formats:Ow,defaultWidth:"full"})},Nw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Dw=function(t,r,n,a){return Nw[t]};function ye(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):o;a=e.formattingValues[l]||e.formattingValues[o]}else{var u=e.defaultWidth,c=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[c]||e.values[u]}var f=e.argumentCallback?e.argumentCallback(t):t;return a[f]}}var Lw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Aw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Iw={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},zw={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},$w={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ww={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Fw=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},jw={ordinalNumber:Fw,era:ye({values:Lw,defaultWidth:"wide"}),quarter:ye({values:Aw,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:Iw,defaultWidth:"wide"}),day:ye({values:zw,defaultWidth:"wide"}),dayPeriod:ye({values:$w,defaultWidth:"wide",formattingValues:Ww,defaultFormattingWidth:"wide"})};function be(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var l=o[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?Hw(u,function(m){return m.test(l)}):Bw(u,function(m){return m.test(l)}),f;f=e.valueCallback?e.valueCallback(c):c,f=r.valueCallback?r.valueCallback(f):f;var p=t.slice(l.length);return{value:f,rest:p}}}function Bw(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Hw(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function lr(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],o=t.match(e.parsePattern);if(!o)return null;var l=e.valueCallback?e.valueCallback(o[0]):o[0];l=r.valueCallback?r.valueCallback(l):l;var u=t.slice(a.length);return{value:l,rest:u}}}var Vw=/^(\d+)(th|st|nd|rd)?/i,Uw=/\d+/i,qw={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Gw={any:[/^b/i,/^(a|c)/i]},Yw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Xw={any:[/1/i,/2/i,/3/i,/4/i]},Zw={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Kw={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Qw={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Jw={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ex={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},tx={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},rx={ordinalNumber:lr({matchPattern:Vw,parsePattern:Uw,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:qw,defaultMatchWidth:"wide",parsePatterns:Gw,defaultParseWidth:"any"}),quarter:be({matchPatterns:Yw,defaultMatchWidth:"wide",parsePatterns:Xw,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:Zw,defaultMatchWidth:"wide",parsePatterns:Kw,defaultParseWidth:"any"}),day:be({matchPatterns:Qw,defaultMatchWidth:"wide",parsePatterns:Jw,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:ex,defaultMatchWidth:"any",parsePatterns:tx,defaultParseWidth:"any"})},nx={code:"en-US",formatDistance:Sw,formatLong:kw,formatRelative:Dw,localize:jw,match:rx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function $m(e,t){N.requiredArgs(2,arguments);var r=N.toInteger(t);return Cw(e,r*12)}function Wm(e,t){N.requiredArgs(2,arguments);var r=N.toInteger(t);return $m(e,-r)}function ix(e){N.requiredArgs(1,arguments);var t=za(e),r=t.getFullYear(),n=t.getMonth(),a=new Date(0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}function ax(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function su(e,t){return su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},su(e,t)}function ox(e,t){if(Mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sx(e){var t=ox(e,"string");return Mi(t)=="symbol"?t:t+""}function lx(e,t,r){return t=sx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ux(e,t){N.requiredArgs(2,arguments);var r=za(e),n=N.toInteger(t),a=r.getFullYear(),o=r.getDate(),l=new Date(0);l.setFullYear(a,n,15),l.setHours(0,0,0,0);var u=ix(l);return r.setMonth(n,Math.min(o,u)),r}function cx(e,t){N.requiredArgs(2,arguments);var r=za(e),n=N.toInteger(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function xa(e,t,r){N.requiredArgs(2,arguments);var n=uh(e,r),a=uh(t,r);return n.getTime()===a.getTime()}var ch={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},dx=function(t,r,n){var a,o=n!=null&&n.addSuffix?ch[t].withPreposition:ch[t].standalone;return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:"vor "+a:a},fx={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},hx={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},px={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},mx={date:Le({formats:fx,defaultWidth:"full"}),time:Le({formats:hx,defaultWidth:"full"}),dateTime:Le({formats:px,defaultWidth:"full"})},vx={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},gx=function(t,r,n,a){return vx[t]},yx={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},bx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},lu={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},_x={narrow:lu.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:lu.wide},wx={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},xx={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},Cx={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},Tx=function(t){var r=Number(t);return r+"."},Ex={ordinalNumber:Tx,era:ye({values:yx,defaultWidth:"wide"}),quarter:ye({values:bx,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:lu,formattingValues:_x,defaultWidth:"wide"}),day:ye({values:wx,defaultWidth:"wide"}),dayPeriod:ye({values:xx,defaultWidth:"wide",formattingValues:Cx,defaultFormattingWidth:"wide"})},Mx=/^(\d+)(\.)?/i,Sx=/\d+/i,Px={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},Rx={any:[/^v/i,/^n/i]},Ox={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},kx={any:[/1/i,/2/i,/3/i,/4/i]},Nx={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},Dx={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Lx={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},Ax={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},Ix={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},zx={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},$x={ordinalNumber:lr({matchPattern:Mx,parsePattern:Sx,valueCallback:function(t){return parseInt(t)}}),era:be({matchPatterns:Px,defaultMatchWidth:"wide",parsePatterns:Rx,defaultParseWidth:"any"}),quarter:be({matchPatterns:Ox,defaultMatchWidth:"wide",parsePatterns:kx,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:Nx,defaultMatchWidth:"wide",parsePatterns:Dx,defaultParseWidth:"any"}),day:be({matchPatterns:Lx,defaultMatchWidth:"wide",parsePatterns:Ax,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:Ix,defaultMatchWidth:"wide",parsePatterns:zx,defaultParseWidth:"any"})},Wx={code:"de",formatDistance:dx,formatLong:mx,formatRelative:gx,localize:Ex,match:$x,options:{weekStartsOn:1,firstWeekContainsDate:4}},Fx={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},jx=function(t,r,n){var a,o=Fx[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+a:"hace "+a:a},Bx={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},Hx={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Vx={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ux={date:Le({formats:Bx,defaultWidth:"full"}),time:Le({formats:Hx,defaultWidth:"full"}),dateTime:Le({formats:Vx,defaultWidth:"full"})},qx={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},Gx={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},Yx=function(t,r,n,a){return r.getUTCHours()!==1?Gx[t]:qx[t]},Xx={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},Zx={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Kx={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},Qx={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},Jx={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},e1={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},t1=function(t,r){var n=Number(t);return n+"º"},r1={ordinalNumber:t1,era:ye({values:Xx,defaultWidth:"wide"}),quarter:ye({values:Zx,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:ye({values:Kx,defaultWidth:"wide"}),day:ye({values:Qx,defaultWidth:"wide"}),dayPeriod:ye({values:Jx,defaultWidth:"wide",formattingValues:e1,defaultFormattingWidth:"wide"})},n1=/^(\d+)(º)?/i,i1=/\d+/i,a1={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},o1={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},s1={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},l1={any:[/1/i,/2/i,/3/i,/4/i]},u1={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},c1={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},d1={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},f1={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},h1={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},p1={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},m1={ordinalNumber:lr({matchPattern:n1,parsePattern:i1,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:a1,defaultMatchWidth:"wide",parsePatterns:o1,defaultParseWidth:"any"}),quarter:be({matchPatterns:s1,defaultMatchWidth:"wide",parsePatterns:l1,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:u1,defaultMatchWidth:"wide",parsePatterns:c1,defaultParseWidth:"any"}),day:be({matchPatterns:d1,defaultMatchWidth:"wide",parsePatterns:f1,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:h1,defaultMatchWidth:"any",parsePatterns:p1,defaultParseWidth:"any"})},v1={code:"es",formatDistance:jx,formatLong:Ux,formatRelative:Yx,localize:r1,match:m1,options:{weekStartsOn:1,firstWeekContainsDate:1}},g1={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},y1=function(t,r,n){var a,o=g1[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+a:"il y a "+a:a},b1={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},_1={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},w1={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},x1={date:Le({formats:b1,defaultWidth:"full"}),time:Le({formats:_1,defaultWidth:"full"}),dateTime:Le({formats:w1,defaultWidth:"full"})},C1={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},T1=function(t,r,n,a){return C1[t]},E1={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},M1={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},S1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},P1={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},R1={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},O1=function(t,r){var n=Number(t),a=r==null?void 0:r.unit;if(n===0)return"0";var o=["year","week","hour","minute","second"],l;return n===1?l=a&&o.includes(a)?"ère":"er":l="ème",n+l},k1={ordinalNumber:O1,era:ye({values:E1,defaultWidth:"wide"}),quarter:ye({values:M1,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:S1,defaultWidth:"wide"}),day:ye({values:P1,defaultWidth:"wide"}),dayPeriod:ye({values:R1,defaultWidth:"wide"})},N1=/^(\d+)(ième|ère|ème|er|e)?/i,D1=/\d+/i,L1={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},A1={any:[/^av/i,/^ap/i]},I1={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},z1={any:[/1/i,/2/i,/3/i,/4/i]},$1={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},W1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},F1={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},j1={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},B1={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},H1={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},V1={ordinalNumber:lr({matchPattern:N1,parsePattern:D1,valueCallback:function(t){return parseInt(t)}}),era:be({matchPatterns:L1,defaultMatchWidth:"wide",parsePatterns:A1,defaultParseWidth:"any"}),quarter:be({matchPatterns:I1,defaultMatchWidth:"wide",parsePatterns:z1,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:$1,defaultMatchWidth:"wide",parsePatterns:W1,defaultParseWidth:"any"}),day:be({matchPatterns:F1,defaultMatchWidth:"wide",parsePatterns:j1,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:B1,defaultMatchWidth:"any",parsePatterns:H1,defaultParseWidth:"any"})},U1={code:"fr",formatDistance:y1,formatLong:x1,formatRelative:T1,localize:k1,match:V1,options:{weekStartsOn:1,firstWeekContainsDate:4}},q1={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},G1=function(t,r,n){var a,o=q1[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+a:a+" fa":a},Y1={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},X1={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Z1={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},K1={date:Le({formats:Y1,defaultWidth:"full"}),time:Le({formats:X1,defaultWidth:"full"}),dateTime:Le({formats:Z1,defaultWidth:"full"})},Pc=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function Q1(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+Pc[e]+" scorso alle' p"}}function dh(e){return"'"+Pc[e]+" alle' p"}function J1(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+Pc[e]+" prossimo alle' p"}}var eC={lastWeek:function(t,r,n){var a=t.getUTCDay();return xa(t,r,n)?dh(a):Q1(a)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,r,n){var a=t.getUTCDay();return xa(t,r,n)?dh(a):J1(a)},other:"P"},tC=function(t,r,n,a){var o=eC[t];return typeof o=="function"?o(r,n,a):o},rC={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},nC={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},iC={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},aC={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},oC={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},sC={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},lC=function(t,r){var n=Number(t);return String(n)},uC={ordinalNumber:lC,era:ye({values:rC,defaultWidth:"wide"}),quarter:ye({values:nC,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:iC,defaultWidth:"wide"}),day:ye({values:aC,defaultWidth:"wide"}),dayPeriod:ye({values:oC,defaultWidth:"wide",formattingValues:sC,defaultFormattingWidth:"wide"})},cC=/^(\d+)(º)?/i,dC=/\d+/i,fC={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},hC={any:[/^a/i,/^(d|e)/i]},pC={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},mC={any:[/1/i,/2/i,/3/i,/4/i]},vC={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},gC={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},yC={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},bC={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},_C={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},wC={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},xC={ordinalNumber:lr({matchPattern:cC,parsePattern:dC,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:fC,defaultMatchWidth:"wide",parsePatterns:hC,defaultParseWidth:"any"}),quarter:be({matchPatterns:pC,defaultMatchWidth:"wide",parsePatterns:mC,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:vC,defaultMatchWidth:"wide",parsePatterns:gC,defaultParseWidth:"any"}),day:be({matchPatterns:yC,defaultMatchWidth:"wide",parsePatterns:bC,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:_C,defaultMatchWidth:"any",parsePatterns:wC,defaultParseWidth:"any"})},CC={code:"it",formatDistance:G1,formatLong:K1,formatRelative:tC,localize:uC,match:xC,options:{weekStartsOn:1,firstWeekContainsDate:4}},TC={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},EC=function(t,r,n){n=n||{};var a,o=TC[t];return typeof o=="string"?a=o:r===1?n.addSuffix&&o.oneWithSuffix?a=o.oneWithSuffix:a=o.one:n.addSuffix&&o.otherWithSuffix?a=o.otherWithSuffix.replace("{{count}}",String(r)):a=o.other.replace("{{count}}",String(r)),n.addSuffix?n.comparison&&n.comparison>0?a+"後":a+"前":a},MC={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},SC={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},PC={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},RC={date:Le({formats:MC,defaultWidth:"full"}),time:Le({formats:SC,defaultWidth:"full"}),dateTime:Le({formats:PC,defaultWidth:"full"})},OC={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},kC=function(t,r,n,a){return OC[t]},NC={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},DC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},LC={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},AC={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},IC={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},zC={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},$C=function(t,r){var n=Number(t),a=String(r==null?void 0:r.unit);switch(a){case"year":return"".concat(n,"年");case"quarter":return"第".concat(n,"四半期");case"month":return"".concat(n,"月");case"week":return"第".concat(n,"週");case"date":return"".concat(n,"日");case"hour":return"".concat(n,"時");case"minute":return"".concat(n,"分");case"second":return"".concat(n,"秒");default:return"".concat(n)}},WC={ordinalNumber:$C,era:ye({values:NC,defaultWidth:"wide"}),quarter:ye({values:DC,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:ye({values:LC,defaultWidth:"wide"}),day:ye({values:AC,defaultWidth:"wide"}),dayPeriod:ye({values:IC,defaultWidth:"wide",formattingValues:zC,defaultFormattingWidth:"wide"})},FC=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,jC=/\d+/i,BC={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},HC={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},VC={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},UC={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},qC={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},GC={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},YC={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},XC={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},ZC={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},KC={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},QC={ordinalNumber:lr({matchPattern:FC,parsePattern:jC,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:BC,defaultMatchWidth:"wide",parsePatterns:HC,defaultParseWidth:"any"}),quarter:be({matchPatterns:VC,defaultMatchWidth:"wide",parsePatterns:UC,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:qC,defaultMatchWidth:"wide",parsePatterns:GC,defaultParseWidth:"any"}),day:be({matchPatterns:YC,defaultMatchWidth:"wide",parsePatterns:XC,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:ZC,defaultMatchWidth:"any",parsePatterns:KC,defaultParseWidth:"any"})},JC={code:"ja",formatDistance:EC,formatLong:RC,formatRelative:kC,localize:WC,match:QC,options:{weekStartsOn:0,firstWeekContainsDate:1}},eT={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},tT=function(t,r,n){var a,o=eT[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?a+" 후":a+" 전":a},rT={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},nT={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},iT={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},aT={date:Le({formats:rT,defaultWidth:"full"}),time:Le({formats:nT,defaultWidth:"full"}),dateTime:Le({formats:iT,defaultWidth:"full"})},oT={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},sT=function(t,r,n,a){return oT[t]},lT={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},uT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},cT={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},dT={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},fT={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},hT={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},pT=function(t,r){var n=Number(t),a=String(r==null?void 0:r.unit);switch(a){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},mT={ordinalNumber:pT,era:ye({values:lT,defaultWidth:"wide"}),quarter:ye({values:uT,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:cT,defaultWidth:"wide"}),day:ye({values:dT,defaultWidth:"wide"}),dayPeriod:ye({values:fT,defaultWidth:"wide",formattingValues:hT,defaultFormattingWidth:"wide"})},vT=/^(\d+)(일|번째)?/i,gT=/\d+/i,yT={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},bT={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},_T={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},wT={any:[/1/i,/2/i,/3/i,/4/i]},xT={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},CT={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},TT={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},ET={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},MT={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},ST={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},PT={ordinalNumber:lr({matchPattern:vT,parsePattern:gT,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:yT,defaultMatchWidth:"wide",parsePatterns:bT,defaultParseWidth:"any"}),quarter:be({matchPatterns:_T,defaultMatchWidth:"wide",parsePatterns:wT,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:xT,defaultMatchWidth:"wide",parsePatterns:CT,defaultParseWidth:"any"}),day:be({matchPatterns:TT,defaultMatchWidth:"wide",parsePatterns:ET,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:MT,defaultMatchWidth:"any",parsePatterns:ST,defaultParseWidth:"any"})},RT={code:"ko",formatDistance:tT,formatLong:aT,formatRelative:sT,localize:mT,match:PT,options:{weekStartsOn:0,firstWeekContainsDate:1}},OT={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},kT=function(t,r,n){var a,o=OT[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+a:a+" geleden":a},NT={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},DT={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},LT={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},AT={date:Le({formats:NT,defaultWidth:"full"}),time:Le({formats:DT,defaultWidth:"full"}),dateTime:Le({formats:LT,defaultWidth:"full"})},IT={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},zT=function(t,r,n,a){return IT[t]},$T={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},WT={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},FT={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},jT={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},BT={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},HT=function(t,r){var n=Number(t);return n+"e"},VT={ordinalNumber:HT,era:ye({values:$T,defaultWidth:"wide"}),quarter:ye({values:WT,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:FT,defaultWidth:"wide"}),day:ye({values:jT,defaultWidth:"wide"}),dayPeriod:ye({values:BT,defaultWidth:"wide"})},UT=/^(\d+)e?/i,qT=/\d+/i,GT={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},YT={any:[/^v/,/^n/]},XT={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},ZT={any:[/1/i,/2/i,/3/i,/4/i]},KT={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},QT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},JT={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},eE={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},tE={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},rE={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},nE={ordinalNumber:lr({matchPattern:UT,parsePattern:qT,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:GT,defaultMatchWidth:"wide",parsePatterns:YT,defaultParseWidth:"any"}),quarter:be({matchPatterns:XT,defaultMatchWidth:"wide",parsePatterns:ZT,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:KT,defaultMatchWidth:"wide",parsePatterns:QT,defaultParseWidth:"any"}),day:be({matchPatterns:JT,defaultMatchWidth:"wide",parsePatterns:eE,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:tE,defaultMatchWidth:"any",parsePatterns:rE,defaultParseWidth:"any"})},iE={code:"nl",formatDistance:kT,formatLong:AT,formatRelative:zT,localize:VT,match:nE,options:{weekStartsOn:1,firstWeekContainsDate:4}},aE={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},oE=function(t,r,n){var a,o=aE[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"daqui a "+a:"há "+a:a},sE={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},lE={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},uE={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cE={date:Le({formats:sE,defaultWidth:"full"}),time:Le({formats:lE,defaultWidth:"full"}),dateTime:Le({formats:uE,defaultWidth:"full"})},dE={lastWeek:function(t){var r=t.getUTCDay(),n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},fE=function(t,r,n,a){var o=dE[t];return typeof o=="function"?o(r):o},hE={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},pE={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},mE={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},vE={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},gE={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},yE={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},bE=function(t,r){var n=Number(t);return n+"º"},_E={ordinalNumber:bE,era:ye({values:hE,defaultWidth:"wide"}),quarter:ye({values:pE,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:mE,defaultWidth:"wide"}),day:ye({values:vE,defaultWidth:"wide"}),dayPeriod:ye({values:gE,defaultWidth:"wide",formattingValues:yE,defaultFormattingWidth:"wide"})},wE=/^(\d+)(º|ª)?/i,xE=/\d+/i,CE={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},TE={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},EE={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},ME={any:[/1/i,/2/i,/3/i,/4/i]},SE={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},PE={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},RE={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},OE={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},kE={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},NE={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},DE={ordinalNumber:lr({matchPattern:wE,parsePattern:xE,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:CE,defaultMatchWidth:"wide",parsePatterns:TE,defaultParseWidth:"any"}),quarter:be({matchPatterns:EE,defaultMatchWidth:"wide",parsePatterns:ME,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:SE,defaultMatchWidth:"wide",parsePatterns:PE,defaultParseWidth:"any"}),day:be({matchPatterns:RE,defaultMatchWidth:"wide",parsePatterns:OE,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:kE,defaultMatchWidth:"any",parsePatterns:NE,defaultParseWidth:"any"})},LE={code:"pt",formatDistance:oE,formatLong:cE,formatRelative:fE,localize:_E,match:DE,options:{weekStartsOn:1,firstWeekContainsDate:4}};function ta(e,t){if(e.one!==void 0&&t===1)return e.one;var r=t%10,n=t%100;return r===1&&n!==11?e.singularNominative.replace("{{count}}",String(t)):r>=2&&r<=4&&(n<10||n>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function kt(e){return function(t,r){return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?e.future?ta(e.future,t):"через "+ta(e.regular,t):e.past?ta(e.past,t):ta(e.regular,t)+" назад":ta(e.regular,t)}}var AE={lessThanXSeconds:kt({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:kt({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(t,r){return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:kt({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:kt({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:kt({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:kt({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:kt({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:kt({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:kt({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:kt({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:kt({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:kt({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:kt({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:kt({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:kt({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},IE=function(t,r,n){return AE[t](r,n)},zE={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},$E={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},WE={any:"{{date}}, {{time}}"},FE={date:Le({formats:zE,defaultWidth:"full"}),time:Le({formats:$E,defaultWidth:"full"}),dateTime:Le({formats:WE,defaultWidth:"any"})},Rc=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function jE(e){var t=Rc[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function fh(e){var t=Rc[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function BE(e){var t=Rc[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}var HE={lastWeek:function(t,r,n){var a=t.getUTCDay();return xa(t,r,n)?fh(a):jE(a)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,r,n){var a=t.getUTCDay();return xa(t,r,n)?fh(a):BE(a)},other:"P"},VE=function(t,r,n,a){var o=HE[t];return typeof o=="function"?o(r,n,a):o},UE={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},qE={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},GE={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},YE={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},XE={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},ZE={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},KE={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},QE=function(t,r){var n=Number(t),a=r==null?void 0:r.unit,o;return a==="date"?o="-е":a==="week"||a==="minute"||a==="second"?o="-я":o="-й",n+o},JE={ordinalNumber:QE,era:ye({values:UE,defaultWidth:"wide"}),quarter:ye({values:qE,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:GE,defaultWidth:"wide",formattingValues:YE,defaultFormattingWidth:"wide"}),day:ye({values:XE,defaultWidth:"wide"}),dayPeriod:ye({values:ZE,defaultWidth:"any",formattingValues:KE,defaultFormattingWidth:"wide"})},eM=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,tM=/\d+/i,rM={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},nM={any:[/^д/i,/^н/i]},iM={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},aM={any:[/1/i,/2/i,/3/i,/4/i]},oM={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},sM={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},lM={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},uM={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},cM={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},dM={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},fM={ordinalNumber:lr({matchPattern:eM,parsePattern:tM,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:rM,defaultMatchWidth:"wide",parsePatterns:nM,defaultParseWidth:"any"}),quarter:be({matchPatterns:iM,defaultMatchWidth:"wide",parsePatterns:aM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:oM,defaultMatchWidth:"wide",parsePatterns:sM,defaultParseWidth:"any"}),day:be({matchPatterns:lM,defaultMatchWidth:"wide",parsePatterns:uM,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:cM,defaultMatchWidth:"wide",parsePatterns:dM,defaultParseWidth:"any"})},hM={code:"ru",formatDistance:IE,formatLong:FE,formatRelative:VE,localize:JE,match:fM,options:{weekStartsOn:1,firstWeekContainsDate:1}},pM={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},mM=function(t,r,n){var a,o=pM[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?a+" sonra":a+" önce":a},vM={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},gM={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},yM={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},bM={date:Le({formats:vM,defaultWidth:"full"}),time:Le({formats:gM,defaultWidth:"full"}),dateTime:Le({formats:yM,defaultWidth:"full"})},_M={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},wM=function(t,r,n,a){return _M[t]},xM={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},CM={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},TM={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},EM={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},MM={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},SM={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},PM=function(t,r){var n=Number(t);return n+"."},RM={ordinalNumber:PM,era:ye({values:xM,defaultWidth:"wide"}),quarter:ye({values:CM,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:ye({values:TM,defaultWidth:"wide"}),day:ye({values:EM,defaultWidth:"wide"}),dayPeriod:ye({values:MM,defaultWidth:"wide",formattingValues:SM,defaultFormattingWidth:"wide"})},OM=/^(\d+)(\.)?/i,kM=/\d+/i,NM={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},DM={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},LM={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},AM={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},IM={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},zM={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},$M={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},WM={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},FM={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},jM={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},BM={ordinalNumber:lr({matchPattern:OM,parsePattern:kM,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:NM,defaultMatchWidth:"wide",parsePatterns:DM,defaultParseWidth:"any"}),quarter:be({matchPatterns:LM,defaultMatchWidth:"wide",parsePatterns:AM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:IM,defaultMatchWidth:"wide",parsePatterns:zM,defaultParseWidth:"any"}),day:be({matchPatterns:$M,defaultMatchWidth:"wide",parsePatterns:WM,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:FM,defaultMatchWidth:"any",parsePatterns:jM,defaultParseWidth:"any"})},HM={code:"tr",formatDistance:mM,formatLong:bM,formatRelative:wM,localize:RM,match:BM,options:{weekStartsOn:1,firstWeekContainsDate:1}},VM={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},UM=function(t,r,n){var a,o=VM[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?a+"内":a+"前":a},qM={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},GM={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},YM={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},XM={date:Le({formats:qM,defaultWidth:"full"}),time:Le({formats:GM,defaultWidth:"full"}),dateTime:Le({formats:YM,defaultWidth:"full"})};function hh(e,t,r){var n="eeee p";return xa(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}var ZM={lastWeek:hh,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:hh,other:"PP p"},KM=function(t,r,n,a){var o=ZM[t];return typeof o=="function"?o(r,n,a):o},QM={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},JM={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},eS={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},tS={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},rS={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},nS={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},iS=function(t,r){var n=Number(t);switch(r==null?void 0:r.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},aS={ordinalNumber:iS,era:ye({values:QM,defaultWidth:"wide"}),quarter:ye({values:JM,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:eS,defaultWidth:"wide"}),day:ye({values:tS,defaultWidth:"wide"}),dayPeriod:ye({values:rS,defaultWidth:"wide",formattingValues:nS,defaultFormattingWidth:"wide"})},oS=/^(第\s*)?\d+(日|时|分|秒)?/i,sS=/\d+/i,lS={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},uS={any:[/^(前)/i,/^(公元)/i]},cS={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},dS={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},fS={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},hS={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},pS={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},mS={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},vS={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},gS={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},yS={ordinalNumber:lr({matchPattern:oS,parsePattern:sS,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:lS,defaultMatchWidth:"wide",parsePatterns:uS,defaultParseWidth:"any"}),quarter:be({matchPatterns:cS,defaultMatchWidth:"wide",parsePatterns:dS,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:fS,defaultMatchWidth:"wide",parsePatterns:hS,defaultParseWidth:"any"}),day:be({matchPatterns:pS,defaultMatchWidth:"wide",parsePatterns:mS,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:vS,defaultMatchWidth:"any",parsePatterns:gS,defaultParseWidth:"any"})},bS={code:"zh-CN",formatDistance:UM,formatLong:XM,formatRelative:KM,localize:aS,match:yS,options:{weekStartsOn:1,firstWeekContainsDate:4}},_S=Math.ceil,wS=Math.max;function xS(e,t,r,n){for(var a=-1,o=wS(_S((t-e)/(r||1)),0),l=Array(o);o--;)l[n?o:++a]=e,e+=r;return l}var CS=xS,TS=N.eq_1,ES=N.isArrayLike_1,MS=N._isIndex,SS=N.isObject_1;function PS(e,t,r){if(!SS(r))return!1;var n=typeof t;return(n=="number"?ES(r)&&MS(t,r.length):n=="string"&&t in r)?TS(r[t],e):!1}var Fm=PS,RS=CS,OS=Fm,El=N.toFinite_1;function kS(e){return function(t,r,n){return n&&typeof n!="number"&&OS(t,r,n)&&(r=n=void 0),t=El(t),r===void 0?(r=t,t=0):r=El(r),n=n===void 0?t<r?1:-1:El(n),RS(t,r,n,e)}}var NS=kS,DS=NS,LS=DS(),AS=LS;const To=N.getDefaultExportFromCjs(AS),Oc=e=>{var t;switch((t=e==null?void 0:e.language)==null?void 0:t.split("-")[0]){case"de":return Wx;case"fr":return U1;case"es":return v1;case"it":return CC;case"ja":return JC;case"ko":return RT;case"nl":return iE;case"pt":return LE;case"ru":return hM;case"tr":return HM;case"zh":return bS;default:return nx}};To(4),To(12),To(7),To(24);var uu={exports:{}},jm={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(jm);var Ye=jm.exports,cu={exports:{}},du={exports:{}},Bm={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Bm);var Hm=Bm.exports,fu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,a){if(a.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+a.length+" present")}e.exports=t.default})(fu,fu.exports);var It=fu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Hm),a=r(It);function o(l){return(0,a.default)(1,arguments),l instanceof Date||(0,n.default)(l)==="object"&&Object.prototype.toString.call(l)==="[object Date]"}e.exports=t.default})(du,du.exports);var IS=du.exports,hu={exports:{}};(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Hm),a=r(It);function o(l){(0,a.default)(1,arguments);var u=Object.prototype.toString.call(l);return l instanceof Date||(0,n.default)(l)==="object"&&u==="[object Date]"?new Date(l.getTime()):typeof l=="number"||u==="[object Number]"?new Date(l):((typeof l=="string"||u==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(hu,hu.exports);var Wr=hu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(IS),a=r(Wr),o=r(It);function l(u){if((0,o.default)(1,arguments),!(0,n.default)(u)&&typeof u!="number")return!1;var c=(0,a.default)(u);return!isNaN(Number(c))}e.exports=t.default})(cu,cu.exports);var zS=cu.exports,pu={exports:{}},mu={exports:{}},vu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n===null||n===!0||n===!1)return NaN;var a=Number(n);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}e.exports=t.default})(vu,vu.exports);var Vn=vu.exports;const $S=N.getDefaultExportFromCjs(Vn);(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(Vn),a=r(Wr),o=r(It);function l(u,c){(0,o.default)(2,arguments);var f=(0,a.default)(u).getTime(),p=(0,n.default)(c);return new Date(f+p)}e.exports=t.default})(mu,mu.exports);var WS=mu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(WS),a=r(It),o=r(Vn);function l(u,c){(0,a.default)(2,arguments);var f=(0,o.default)(c);return(0,n.default)(u,-f)}e.exports=t.default})(pu,pu.exports);var FS=pu.exports,gu={exports:{}},yu={exports:{}};(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(Wr),a=r(It),o=864e5;function l(u){(0,a.default)(1,arguments);var c=(0,n.default)(u),f=c.getTime();c.setUTCMonth(0,1),c.setUTCHours(0,0,0,0);var p=c.getTime(),m=f-p;return Math.floor(m/o)+1}e.exports=t.default})(yu,yu.exports);var jS=yu.exports,bu={exports:{}},_u={exports:{}};(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Wr),a=r(It);function o(l){(0,a.default)(1,arguments);var u=1,c=(0,n.default)(l),f=c.getUTCDay(),p=(f<u?7:0)+f-u;return c.setUTCDate(c.getUTCDate()-p),c.setUTCHours(0,0,0,0),c}e.exports=t.default})(_u,_u.exports);var kc=_u.exports,wu={exports:{}},xu={exports:{}};(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(Wr),a=r(It),o=r(kc);function l(u){(0,a.default)(1,arguments);var c=(0,n.default)(u),f=c.getUTCFullYear(),p=new Date(0);p.setUTCFullYear(f+1,0,4),p.setUTCHours(0,0,0,0);var m=(0,o.default)(p),h=new Date(0);h.setUTCFullYear(f,0,4),h.setUTCHours(0,0,0,0);var b=(0,o.default)(h);return c.getTime()>=m.getTime()?f+1:c.getTime()>=b.getTime()?f:f-1}e.exports=t.default})(xu,xu.exports);var Vm=xu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(Vm),a=r(kc),o=r(It);function l(u){(0,o.default)(1,arguments);var c=(0,n.default)(u),f=new Date(0);f.setUTCFullYear(c,0,4),f.setUTCHours(0,0,0,0);var p=(0,a.default)(f);return p}e.exports=t.default})(wu,wu.exports);var BS=wu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(Wr),a=r(kc),o=r(BS),l=r(It),u=6048e5;function c(f){(0,l.default)(1,arguments);var p=(0,n.default)(f),m=(0,a.default)(p).getTime()-(0,o.default)(p).getTime();return Math.round(m/u)+1}e.exports=t.default})(bu,bu.exports);var HS=bu.exports,Cu={exports:{}},Tu={exports:{}},Un={};Object.defineProperty(Un,"__esModule",{value:!0});Un.getDefaultOptions=VS;Un.setDefaultOptions=US;var Um={};function VS(){return Um}function US(e){Um=e}(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(Wr),a=r(It),o=r(Vn),l=Un;function u(c,f){var p,m,h,b,_,g,C,M;(0,a.default)(1,arguments);var E=(0,l.getDefaultOptions)(),x=(0,o.default)((p=(m=(h=(b=f==null?void 0:f.weekStartsOn)!==null&&b!==void 0?b:f==null||(_=f.locale)===null||_===void 0||(g=_.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&h!==void 0?h:E.weekStartsOn)!==null&&m!==void 0?m:(C=E.locale)===null||C===void 0||(M=C.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&p!==void 0?p:0);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var T=(0,n.default)(c),w=T.getUTCDay(),P=(w<x?7:0)+w-x;return T.setUTCDate(T.getUTCDate()-P),T.setUTCHours(0,0,0,0),T}e.exports=t.default})(Tu,Tu.exports);var Nc=Tu.exports,Eu={exports:{}},Mu={exports:{}};(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(Wr),a=r(It),o=r(Nc),l=r(Vn),u=Un;function c(f,p){var m,h,b,_,g,C,M,E;(0,a.default)(1,arguments);var x=(0,n.default)(f),T=x.getUTCFullYear(),w=(0,u.getDefaultOptions)(),P=(0,l.default)((m=(h=(b=(_=p==null?void 0:p.firstWeekContainsDate)!==null&&_!==void 0?_:p==null||(g=p.locale)===null||g===void 0||(C=g.options)===null||C===void 0?void 0:C.firstWeekContainsDate)!==null&&b!==void 0?b:w.firstWeekContainsDate)!==null&&h!==void 0?h:(M=w.locale)===null||M===void 0||(E=M.options)===null||E===void 0?void 0:E.firstWeekContainsDate)!==null&&m!==void 0?m:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=new Date(0);R.setUTCFullYear(T+1,0,P),R.setUTCHours(0,0,0,0);var D=(0,o.default)(R,p),A=new Date(0);A.setUTCFullYear(T,0,P),A.setUTCHours(0,0,0,0);var z=(0,o.default)(A,p);return x.getTime()>=D.getTime()?T+1:x.getTime()>=z.getTime()?T:T-1}e.exports=t.default})(Mu,Mu.exports);var qm=Mu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(qm),a=r(It),o=r(Nc),l=r(Vn),u=Un;function c(f,p){var m,h,b,_,g,C,M,E;(0,a.default)(1,arguments);var x=(0,u.getDefaultOptions)(),T=(0,l.default)((m=(h=(b=(_=p==null?void 0:p.firstWeekContainsDate)!==null&&_!==void 0?_:p==null||(g=p.locale)===null||g===void 0||(C=g.options)===null||C===void 0?void 0:C.firstWeekContainsDate)!==null&&b!==void 0?b:x.firstWeekContainsDate)!==null&&h!==void 0?h:(M=x.locale)===null||M===void 0||(E=M.options)===null||E===void 0?void 0:E.firstWeekContainsDate)!==null&&m!==void 0?m:1),w=(0,n.default)(f,p),P=new Date(0);P.setUTCFullYear(w,0,T),P.setUTCHours(0,0,0,0);var R=(0,o.default)(P,p);return R}e.exports=t.default})(Eu,Eu.exports);var qS=Eu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(Wr),a=r(Nc),o=r(qS),l=r(It),u=6048e5;function c(f,p){(0,l.default)(1,arguments);var m=(0,n.default)(f),h=(0,a.default)(m,p).getTime()-(0,o.default)(m,p).getTime();return Math.round(h/u)+1}e.exports=t.default})(Cu,Cu.exports);var GS=Cu.exports,Su={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,a){for(var o=n<0?"-":"",l=Math.abs(n).toString();l.length<a;)l="0"+l;return o+l}e.exports=t.default})(Su,Su.exports);var Gm=Su.exports,Pu={exports:{}};(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(Gm),a={y:function(u,c){var f=u.getUTCFullYear(),p=f>0?f:1-f;return(0,n.default)(c==="yy"?p%100:p,c.length)},M:function(u,c){var f=u.getUTCMonth();return c==="M"?String(f+1):(0,n.default)(f+1,2)},d:function(u,c){return(0,n.default)(u.getUTCDate(),c.length)},a:function(u,c){var f=u.getUTCHours()/12>=1?"pm":"am";switch(c){case"a":case"aa":return f.toUpperCase();case"aaa":return f;case"aaaaa":return f[0];case"aaaa":default:return f==="am"?"a.m.":"p.m."}},h:function(u,c){return(0,n.default)(u.getUTCHours()%12||12,c.length)},H:function(u,c){return(0,n.default)(u.getUTCHours(),c.length)},m:function(u,c){return(0,n.default)(u.getUTCMinutes(),c.length)},s:function(u,c){return(0,n.default)(u.getUTCSeconds(),c.length)},S:function(u,c){var f=c.length,p=u.getUTCMilliseconds(),m=Math.floor(p*Math.pow(10,f-3));return(0,n.default)(m,c.length)}},o=a;t.default=o,e.exports=t.default})(Pu,Pu.exports);var YS=Pu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(jS),a=r(HS),o=r(Vm),l=r(GS),u=r(qm),c=r(Gm),f=r(YS),p={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},m={G:function(M,E,x){var T=M.getUTCFullYear()>0?1:0;switch(E){case"G":case"GG":case"GGG":return x.era(T,{width:"abbreviated"});case"GGGGG":return x.era(T,{width:"narrow"});case"GGGG":default:return x.era(T,{width:"wide"})}},y:function(M,E,x){if(E==="yo"){var T=M.getUTCFullYear(),w=T>0?T:1-T;return x.ordinalNumber(w,{unit:"year"})}return f.default.y(M,E)},Y:function(M,E,x,T){var w=(0,u.default)(M,T),P=w>0?w:1-w;if(E==="YY"){var R=P%100;return(0,c.default)(R,2)}return E==="Yo"?x.ordinalNumber(P,{unit:"year"}):(0,c.default)(P,E.length)},R:function(M,E){var x=(0,o.default)(M);return(0,c.default)(x,E.length)},u:function(M,E){var x=M.getUTCFullYear();return(0,c.default)(x,E.length)},Q:function(M,E,x){var T=Math.ceil((M.getUTCMonth()+1)/3);switch(E){case"Q":return String(T);case"QQ":return(0,c.default)(T,2);case"Qo":return x.ordinalNumber(T,{unit:"quarter"});case"QQQ":return x.quarter(T,{width:"abbreviated",context:"formatting"});case"QQQQQ":return x.quarter(T,{width:"narrow",context:"formatting"});case"QQQQ":default:return x.quarter(T,{width:"wide",context:"formatting"})}},q:function(M,E,x){var T=Math.ceil((M.getUTCMonth()+1)/3);switch(E){case"q":return String(T);case"qq":return(0,c.default)(T,2);case"qo":return x.ordinalNumber(T,{unit:"quarter"});case"qqq":return x.quarter(T,{width:"abbreviated",context:"standalone"});case"qqqqq":return x.quarter(T,{width:"narrow",context:"standalone"});case"qqqq":default:return x.quarter(T,{width:"wide",context:"standalone"})}},M:function(M,E,x){var T=M.getUTCMonth();switch(E){case"M":case"MM":return f.default.M(M,E);case"Mo":return x.ordinalNumber(T+1,{unit:"month"});case"MMM":return x.month(T,{width:"abbreviated",context:"formatting"});case"MMMMM":return x.month(T,{width:"narrow",context:"formatting"});case"MMMM":default:return x.month(T,{width:"wide",context:"formatting"})}},L:function(M,E,x){var T=M.getUTCMonth();switch(E){case"L":return String(T+1);case"LL":return(0,c.default)(T+1,2);case"Lo":return x.ordinalNumber(T+1,{unit:"month"});case"LLL":return x.month(T,{width:"abbreviated",context:"standalone"});case"LLLLL":return x.month(T,{width:"narrow",context:"standalone"});case"LLLL":default:return x.month(T,{width:"wide",context:"standalone"})}},w:function(M,E,x,T){var w=(0,l.default)(M,T);return E==="wo"?x.ordinalNumber(w,{unit:"week"}):(0,c.default)(w,E.length)},I:function(M,E,x){var T=(0,a.default)(M);return E==="Io"?x.ordinalNumber(T,{unit:"week"}):(0,c.default)(T,E.length)},d:function(M,E,x){return E==="do"?x.ordinalNumber(M.getUTCDate(),{unit:"date"}):f.default.d(M,E)},D:function(M,E,x){var T=(0,n.default)(M);return E==="Do"?x.ordinalNumber(T,{unit:"dayOfYear"}):(0,c.default)(T,E.length)},E:function(M,E,x){var T=M.getUTCDay();switch(E){case"E":case"EE":case"EEE":return x.day(T,{width:"abbreviated",context:"formatting"});case"EEEEE":return x.day(T,{width:"narrow",context:"formatting"});case"EEEEEE":return x.day(T,{width:"short",context:"formatting"});case"EEEE":default:return x.day(T,{width:"wide",context:"formatting"})}},e:function(M,E,x,T){var w=M.getUTCDay(),P=(w-T.weekStartsOn+8)%7||7;switch(E){case"e":return String(P);case"ee":return(0,c.default)(P,2);case"eo":return x.ordinalNumber(P,{unit:"day"});case"eee":return x.day(w,{width:"abbreviated",context:"formatting"});case"eeeee":return x.day(w,{width:"narrow",context:"formatting"});case"eeeeee":return x.day(w,{width:"short",context:"formatting"});case"eeee":default:return x.day(w,{width:"wide",context:"formatting"})}},c:function(M,E,x,T){var w=M.getUTCDay(),P=(w-T.weekStartsOn+8)%7||7;switch(E){case"c":return String(P);case"cc":return(0,c.default)(P,E.length);case"co":return x.ordinalNumber(P,{unit:"day"});case"ccc":return x.day(w,{width:"abbreviated",context:"standalone"});case"ccccc":return x.day(w,{width:"narrow",context:"standalone"});case"cccccc":return x.day(w,{width:"short",context:"standalone"});case"cccc":default:return x.day(w,{width:"wide",context:"standalone"})}},i:function(M,E,x){var T=M.getUTCDay(),w=T===0?7:T;switch(E){case"i":return String(w);case"ii":return(0,c.default)(w,E.length);case"io":return x.ordinalNumber(w,{unit:"day"});case"iii":return x.day(T,{width:"abbreviated",context:"formatting"});case"iiiii":return x.day(T,{width:"narrow",context:"formatting"});case"iiiiii":return x.day(T,{width:"short",context:"formatting"});case"iiii":default:return x.day(T,{width:"wide",context:"formatting"})}},a:function(M,E,x){var T=M.getUTCHours(),w=T/12>=1?"pm":"am";switch(E){case"a":case"aa":return x.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"aaa":return x.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return x.dayPeriod(w,{width:"narrow",context:"formatting"});case"aaaa":default:return x.dayPeriod(w,{width:"wide",context:"formatting"})}},b:function(M,E,x){var T=M.getUTCHours(),w;switch(T===12?w=p.noon:T===0?w=p.midnight:w=T/12>=1?"pm":"am",E){case"b":case"bb":return x.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"bbb":return x.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return x.dayPeriod(w,{width:"narrow",context:"formatting"});case"bbbb":default:return x.dayPeriod(w,{width:"wide",context:"formatting"})}},B:function(M,E,x){var T=M.getUTCHours(),w;switch(T>=17?w=p.evening:T>=12?w=p.afternoon:T>=4?w=p.morning:w=p.night,E){case"B":case"BB":case"BBB":return x.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"BBBBB":return x.dayPeriod(w,{width:"narrow",context:"formatting"});case"BBBB":default:return x.dayPeriod(w,{width:"wide",context:"formatting"})}},h:function(M,E,x){if(E==="ho"){var T=M.getUTCHours()%12;return T===0&&(T=12),x.ordinalNumber(T,{unit:"hour"})}return f.default.h(M,E)},H:function(M,E,x){return E==="Ho"?x.ordinalNumber(M.getUTCHours(),{unit:"hour"}):f.default.H(M,E)},K:function(M,E,x){var T=M.getUTCHours()%12;return E==="Ko"?x.ordinalNumber(T,{unit:"hour"}):(0,c.default)(T,E.length)},k:function(M,E,x){var T=M.getUTCHours();return T===0&&(T=24),E==="ko"?x.ordinalNumber(T,{unit:"hour"}):(0,c.default)(T,E.length)},m:function(M,E,x){return E==="mo"?x.ordinalNumber(M.getUTCMinutes(),{unit:"minute"}):f.default.m(M,E)},s:function(M,E,x){return E==="so"?x.ordinalNumber(M.getUTCSeconds(),{unit:"second"}):f.default.s(M,E)},S:function(M,E){return f.default.S(M,E)},X:function(M,E,x,T){var w=T._originalDate||M,P=w.getTimezoneOffset();if(P===0)return"Z";switch(E){case"X":return b(P);case"XXXX":case"XX":return _(P);case"XXXXX":case"XXX":default:return _(P,":")}},x:function(M,E,x,T){var w=T._originalDate||M,P=w.getTimezoneOffset();switch(E){case"x":return b(P);case"xxxx":case"xx":return _(P);case"xxxxx":case"xxx":default:return _(P,":")}},O:function(M,E,x,T){var w=T._originalDate||M,P=w.getTimezoneOffset();switch(E){case"O":case"OO":case"OOO":return"GMT"+h(P,":");case"OOOO":default:return"GMT"+_(P,":")}},z:function(M,E,x,T){var w=T._originalDate||M,P=w.getTimezoneOffset();switch(E){case"z":case"zz":case"zzz":return"GMT"+h(P,":");case"zzzz":default:return"GMT"+_(P,":")}},t:function(M,E,x,T){var w=T._originalDate||M,P=Math.floor(w.getTime()/1e3);return(0,c.default)(P,E.length)},T:function(M,E,x,T){var w=T._originalDate||M,P=w.getTime();return(0,c.default)(P,E.length)}};function h(C,M){var E=C>0?"-":"+",x=Math.abs(C),T=Math.floor(x/60),w=x%60;if(w===0)return E+String(T);var P=M;return E+String(T)+P+(0,c.default)(w,2)}function b(C,M){if(C%60===0){var E=C>0?"-":"+";return E+(0,c.default)(Math.abs(C)/60,2)}return _(C,M)}function _(C,M){var E=M||"",x=C>0?"-":"+",T=Math.abs(C),w=(0,c.default)(Math.floor(T/60),2),P=(0,c.default)(T%60,2);return x+w+E+P}var g=m;t.default=g,e.exports=t.default})(gu,gu.exports);var XS=gu.exports,Ru={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(c,f){switch(c){case"P":return f.date({width:"short"});case"PP":return f.date({width:"medium"});case"PPP":return f.date({width:"long"});case"PPPP":default:return f.date({width:"full"})}},n=function(c,f){switch(c){case"p":return f.time({width:"short"});case"pp":return f.time({width:"medium"});case"ppp":return f.time({width:"long"});case"pppp":default:return f.time({width:"full"})}},a=function(c,f){var p=c.match(/(P+)(p+)?/)||[],m=p[1],h=p[2];if(!h)return r(c,f);var b;switch(m){case"P":b=f.dateTime({width:"short"});break;case"PP":b=f.dateTime({width:"medium"});break;case"PPP":b=f.dateTime({width:"long"});break;case"PPPP":default:b=f.dateTime({width:"full"});break}return b.replace("{{date}}",r(m,f)).replace("{{time}}",n(h,f))},o={p:n,P:a},l=o;t.default=l,e.exports=t.default})(Ru,Ru.exports);var ZS=Ru.exports,Ou={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){var a=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return a.setUTCFullYear(n.getFullYear()),n.getTime()-a.getTime()}e.exports=t.default})(Ou,Ou.exports);var Ym=Ou.exports;const ph=N.getDefaultExportFromCjs(Ym);var $a={};Object.defineProperty($a,"__esModule",{value:!0});$a.isProtectedDayOfYearToken=JS;$a.isProtectedWeekYearToken=e2;$a.throwProtectedError=t2;var KS=["D","DD"],QS=["YY","YYYY"];function JS(e){return KS.indexOf(e)!==-1}function e2(e){return QS.indexOf(e)!==-1}function t2(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; 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(r,"`; 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(r,"`; 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(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var ku={exports:{}},Nu={exports:{}},Du={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n=function(l,u,c){var f,p=r[l];return typeof p=="string"?f=p:u===1?f=p.one:f=p.other.replace("{{count}}",u.toString()),c!=null&&c.addSuffix?c.comparison&&c.comparison>0?"in "+f:f+" ago":f},a=n;t.default=a,e.exports=t.default})(Du,Du.exports);var r2=Du.exports,Lu={exports:{}},Au={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=a.width?String(a.width):n.defaultWidth,l=n.formats[o]||n.formats[n.defaultWidth];return l}}e.exports=t.default})(Au,Au.exports);var n2=Au.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(n2),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},o={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},l={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u={date:(0,n.default)({formats:a,defaultWidth:"full"}),time:(0,n.default)({formats:o,defaultWidth:"full"}),dateTime:(0,n.default)({formats:l,defaultWidth:"full"})},c=u;t.default=c,e.exports=t.default})(Lu,Lu.exports);var i2=Lu.exports,Iu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n=function(l,u,c,f){return r[l]},a=n;t.default=a,e.exports=t.default})(Iu,Iu.exports);var a2=Iu.exports,zu={exports:{}},$u={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(a,o){var l=o!=null&&o.context?String(o.context):"standalone",u;if(l==="formatting"&&n.formattingValues){var c=n.defaultFormattingWidth||n.defaultWidth,f=o!=null&&o.width?String(o.width):c;u=n.formattingValues[f]||n.formattingValues[c]}else{var p=n.defaultWidth,m=o!=null&&o.width?String(o.width):n.defaultWidth;u=n.values[m]||n.values[p]}var h=n.argumentCallback?n.argumentCallback(a):a;return u[h]}}e.exports=t.default})($u,$u.exports);var o2=$u.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o2),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},l={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},f={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},p=function(_,g){var C=Number(_),M=C%100;if(M>20||M<10)switch(M%10){case 1:return C+"st";case 2:return C+"nd";case 3:return C+"rd"}return C+"th"},m={ordinalNumber:p,era:(0,n.default)({values:a,defaultWidth:"wide"}),quarter:(0,n.default)({values:o,defaultWidth:"wide",argumentCallback:function(_){return _-1}}),month:(0,n.default)({values:l,defaultWidth:"wide"}),day:(0,n.default)({values:u,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:c,defaultWidth:"wide",formattingValues:f,defaultFormattingWidth:"wide"})},h=m;t.default=h,e.exports=t.default})(zu,zu.exports);var s2=zu.exports,Wu={exports:{}},Fu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(o){return function(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=u.width,f=c&&o.matchPatterns[c]||o.matchPatterns[o.defaultMatchWidth],p=l.match(f);if(!p)return null;var m=p[0],h=c&&o.parsePatterns[c]||o.parsePatterns[o.defaultParseWidth],b=Array.isArray(h)?a(h,function(C){return C.test(m)}):n(h,function(C){return C.test(m)}),_;_=o.valueCallback?o.valueCallback(b):b,_=u.valueCallback?u.valueCallback(_):_;var g=l.slice(m.length);return{value:_,rest:g}}}function n(o,l){for(var u in o)if(o.hasOwnProperty(u)&&l(o[u]))return u}function a(o,l){for(var u=0;u<o.length;u++)if(l(o[u]))return u}e.exports=t.default})(Fu,Fu.exports);var l2=Fu.exports,ju={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=a.match(n.matchPattern);if(!l)return null;var u=l[0],c=a.match(n.parsePattern);if(!c)return null;var f=n.valueCallback?n.valueCallback(c[0]):c[0];f=o.valueCallback?o.valueCallback(f):f;var p=a.slice(u.length);return{value:f,rest:p}}}e.exports=t.default})(ju,ju.exports);var u2=ju.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(l2),a=r(u2),o=/^(\d+)(th|st|nd|rd)?/i,l=/\d+/i,u={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c={any:[/^b/i,/^(a|c)/i]},f={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},p={any:[/1/i,/2/i,/3/i,/4/i]},m={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},b={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},C={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},M={ordinalNumber:(0,a.default)({matchPattern:o,parsePattern:l,valueCallback:function(T){return parseInt(T,10)}}),era:(0,n.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any",valueCallback:function(T){return T+1}}),month:(0,n.default)({matchPatterns:m,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:b,defaultMatchWidth:"wide",parsePatterns:_,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:C,defaultParseWidth:"any"})},E=M;t.default=E,e.exports=t.default})(Wu,Wu.exports);var c2=Wu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(r2),a=r(i2),o=r(a2),l=r(s2),u=r(c2),c={code:"en-US",formatDistance:n.default,formatLong:a.default,formatRelative:o.default,localize:l.default,match:u.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},f=c;t.default=f,e.exports=t.default})(Nu,Nu.exports);var d2=Nu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(d2),a=n.default;t.default=a,e.exports=t.default})(ku,ku.exports);var f2=ku.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=x;var n=r(zS),a=r(FS),o=r(Wr),l=r(XS),u=r(ZS),c=r(Ym),f=$a,p=r(Vn),m=r(It),h=Un,b=r(f2),_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,C=/^'([^]*?)'?$/,M=/''/g,E=/[a-zA-Z]/;function x(w,P,R){var D,A,z,k,O,F,j,I,B,U,q,G,$,H,ee,X,K,J;(0,m.default)(2,arguments);var ne=String(P),le=(0,h.getDefaultOptions)(),se=(D=(A=R==null?void 0:R.locale)!==null&&A!==void 0?A:le.locale)!==null&&D!==void 0?D:b.default,ue=(0,p.default)((z=(k=(O=(F=R==null?void 0:R.firstWeekContainsDate)!==null&&F!==void 0?F:R==null||(j=R.locale)===null||j===void 0||(I=j.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&O!==void 0?O:le.firstWeekContainsDate)!==null&&k!==void 0?k:(B=le.locale)===null||B===void 0||(U=B.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&z!==void 0?z:1);if(!(ue>=1&&ue<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var fe=(0,p.default)((q=(G=($=(H=R==null?void 0:R.weekStartsOn)!==null&&H!==void 0?H:R==null||(ee=R.locale)===null||ee===void 0||(X=ee.options)===null||X===void 0?void 0:X.weekStartsOn)!==null&&$!==void 0?$:le.weekStartsOn)!==null&&G!==void 0?G:(K=le.locale)===null||K===void 0||(J=K.options)===null||J===void 0?void 0:J.weekStartsOn)!==null&&q!==void 0?q:0);if(!(fe>=0&&fe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!se.localize)throw new RangeError("locale must contain localize property");if(!se.formatLong)throw new RangeError("locale must contain formatLong property");var pe=(0,o.default)(w);if(!(0,n.default)(pe))throw new RangeError("Invalid time value");var oe=(0,c.default)(pe),ve=(0,a.default)(pe,oe),de={firstWeekContainsDate:ue,weekStartsOn:fe,locale:se,_originalDate:pe},_e=ne.match(g).map(function(we){var Ee=we[0];if(Ee==="p"||Ee==="P"){var Ce=u.default[Ee];return Ce(we,se.formatLong)}return we}).join("").match(_).map(function(we){if(we==="''")return"'";var Ee=we[0];if(Ee==="'")return T(we);var Ce=l.default[Ee];if(Ce)return!(R!=null&&R.useAdditionalWeekYearTokens)&&(0,f.isProtectedWeekYearToken)(we)&&(0,f.throwProtectedError)(we,P,String(w)),!(R!=null&&R.useAdditionalDayOfYearTokens)&&(0,f.isProtectedDayOfYearToken)(we)&&(0,f.throwProtectedError)(we,P,String(w)),Ce(ve,we,se.localize,de);if(Ee.match(E))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ee+"`");return we}).join("");return _e}function T(w){var P=w.match(C);return P?P[1].replace(M,"'"):w}e.exports=t.default})(uu,uu.exports);var h2=uu.exports;const p2=N.getDefaultExportFromCjs(h2);function mh(e,t,r){var n=g2(e,r.timeZone,r.locale);return n.formatToParts?m2(n,t):v2(n,t)}function m2(e,t){for(var r=e.formatToParts(t),n=r.length-1;n>=0;--n)if(r[n].type==="timeZoneName")return r[n].value}function v2(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function g2(e,t,r){if(r&&!r.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function y2(e,t){var r=x2(t);return r.formatToParts?_2(r,e):w2(r,e)}var b2={year:0,month:1,day:2,hour:3,minute:4,second:5};function _2(e,t){try{for(var r=e.formatToParts(t),n=[],a=0;a<r.length;a++){var o=b2[r[a].type];o>=0&&(n[o]=parseInt(r[a].value,10))}return n}catch(l){if(l instanceof RangeError)return[NaN];throw l}}function w2(e,t){var r=e.format(t),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}var Ml={};function x2(e){if(!Ml[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r=t==="06/25/2014, 00:00:00"||t==="06/25/2014 00:00:00";Ml[e]=r?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Ml[e]}function Xm(e,t,r,n,a,o,l){var u=new Date(0);return u.setUTCFullYear(e,t,r),u.setUTCHours(n,a,o,l),u}var vh=36e5,C2=6e4,Sl={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Dc(e,t,r){var n,a;if(!e||(n=Sl.timezoneZ.exec(e),n))return 0;var o;if(n=Sl.timezoneHH.exec(e),n)return o=parseInt(n[1],10),gh(o)?-(o*vh):NaN;if(n=Sl.timezoneHHMM.exec(e),n){o=parseInt(n[2],10);var l=parseInt(n[3],10);return gh(o,l)?(a=Math.abs(o)*vh+l*C2,n[1]==="+"?-a:a):NaN}if(M2(e)){t=new Date(t||Date.now());var u=r?t:T2(t),c=Bu(u,e),f=r?c:E2(t,c,e);return-f}return NaN}function T2(e){return Xm(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Bu(e,t){var r=y2(e,t),n=Xm(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),a=e.getTime(),o=a%1e3;return a-=o>=0?o:1e3+o,n-a}function E2(e,t,r){var n=e.getTime(),a=n-t,o=Bu(new Date(a),r);if(t===o)return t;a-=o-t;var l=Bu(new Date(a),r);return o===l?o:Math.max(o,l)}function gh(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var yh={};function M2(e){if(yh[e])return!0;try{return yh[e]=!0,!0}catch(t){return!1}}var S2=60*1e3,P2={X:function(e,t,r,n){var a=Pl(n.timeZone,e);if(a===0)return"Z";switch(t){case"X":return bh(a);case"XXXX":case"XX":return pi(a);case"XXXXX":case"XXX":default:return pi(a,":")}},x:function(e,t,r,n){var a=Pl(n.timeZone,e);switch(t){case"x":return bh(a);case"xxxx":case"xx":return pi(a);case"xxxxx":case"xxx":default:return pi(a,":")}},O:function(e,t,r,n){var a=Pl(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+R2(a,":");case"OOOO":default:return"GMT"+pi(a,":")}},z:function(e,t,r,n){switch(t){case"z":case"zz":case"zzz":return mh("short",e,n);case"zzzz":default:return mh("long",e,n)}}};function Pl(e,t){var r=e?Dc(e,t,!0)/S2:t.getTimezoneOffset();if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function Yo(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}function pi(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),o=Yo(Math.floor(a/60),2),l=Yo(Math.floor(a%60),2);return n+o+r+l}function bh(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Yo(Math.abs(e)/60,2)}return pi(e,t)}function R2(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),o=n%60;if(o===0)return r+String(a);var l=t;return r+String(a)+l+Yo(o,2)}var O2=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Rl=36e5,_h=6e4,k2=2,Nt={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:O2};function Zm(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var r=t||{},n=r.additionalDigits==null?k2:$S(r.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=N2(e),o=D2(a.date,n),l=o.year,u=o.restDateString,c=L2(u,l);if(isNaN(c))return new Date(NaN);if(c){var f=c.getTime(),p=0,m;if(a.time&&(p=A2(a.time),isNaN(p)))return new Date(NaN);if(a.timeZone||r.timeZone){if(m=Dc(a.timeZone||r.timeZone,new Date(f+p)),isNaN(m))return new Date(NaN)}else m=ph(new Date(f+p)),m=ph(new Date(f+p+m));return new Date(f+p+m)}else return new Date(NaN)}function N2(e){var t={},r=Nt.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=Nt.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var a=Nt.timeZone.exec(n);a?(t.time=n.replace(a[1],""),t.timeZone=a[1].trim()):t.time=n}return t}function D2(e,t){var r=Nt.YYY[t],n=Nt.YYYYY[t],a;if(a=Nt.YYYY.exec(e)||n.exec(e),a){var o=a[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(a=Nt.YY.exec(e)||r.exec(e),a){var l=a[1];return{year:parseInt(l,10)*100,restDateString:e.slice(l.length)}}return{year:null}}function L2(e,t){if(t===null)return null;var r,n,a,o;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(r=Nt.MM.exec(e),r)return n=new Date(0),a=parseInt(r[1],10)-1,xh(t,a)?(n.setUTCFullYear(t,a),n):new Date(NaN);if(r=Nt.DDD.exec(e),r){n=new Date(0);var l=parseInt(r[1],10);return $2(t,l)?(n.setUTCFullYear(t,0,l),n):new Date(NaN)}if(r=Nt.MMDD.exec(e),r){n=new Date(0),a=parseInt(r[1],10)-1;var u=parseInt(r[2],10);return xh(t,a,u)?(n.setUTCFullYear(t,a,u),n):new Date(NaN)}if(r=Nt.Www.exec(e),r)return o=parseInt(r[1],10)-1,Ch(t,o)?wh(t,o):new Date(NaN);if(r=Nt.WwwD.exec(e),r){o=parseInt(r[1],10)-1;var c=parseInt(r[2],10)-1;return Ch(t,o,c)?wh(t,o,c):new Date(NaN)}return null}function A2(e){var t,r,n;if(t=Nt.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),Ol(r)?r%24*Rl:NaN;if(t=Nt.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),Ol(r,n)?r%24*Rl+n*_h:NaN;if(t=Nt.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return Ol(r,n,a)?r%24*Rl+n*_h+a*1e3:NaN}return null}function wh(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var a=n.getUTCDay()||7,o=t*7+r+1-a;return n.setUTCDate(n.getUTCDate()+o),n}var I2=[31,28,31,30,31,30,31,31,30,31,30,31],z2=[31,29,31,30,31,30,31,31,30,31,30,31];function Km(e){return e%400===0||e%4===0&&e%100!==0}function xh(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=Km(e);if(n&&r>z2[t]||!n&&r>I2[t])return!1}return!0}function $2(e,t){if(t<1)return!1;var r=Km(e);return!(r&&t>366||!r&&t>365)}function Ch(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function Ol(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}var W2=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Qm(e,t,r){var n=String(t),a=r||{},o=n.match(W2);if(o){var l=Zm(a.originalDate||e,a);n=o.reduce(function(u,c){if(c[0]==="'")return u;var f=u.indexOf(c),p=u[f-1]==="'",m=u.replace(c,"'"+P2[c[0]](l,c,null,a)+"'");return p?m.substring(0,f-1)+m.substring(f+1):m},n)}return p2(e,n,a)}function vn(e,t,r){const n=new RegExp("'[^']+'|("+t+")","g");return e.replace(n,function(o,l){return l?r(o):o})}const F2=["shortDate","shortTime","short","mediumDate","mediumTime","medium","longDate","fullDate"],j2=Object.freeze({fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"}),Th=Object.freeze({"en-US":j2});function B2(e,t){var a;if(!(e.includes("short")||e.includes("medium")||e.includes("long")||e.includes("full")))return e;let r=e,n=Th[(a=t.code)!=null?a:""];return n||(n=Th["en-US"]),F2.forEach(o=>{const l=n[o];r=vn(r,o,function(){return l})}),r}var Hu={exports:{}},Vu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,a){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o]);return n}e.exports=t.default})(Vu,Vu.exports);var H2=Vu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(H2);function a(o){return(0,n.default)({},o)}e.exports=t.default})(Hu,Hu.exports);var V2=Hu.exports;const U2=N.getDefaultExportFromCjs(V2);function q2(e,t,r){var n=Zm(e,r),a=Dc(t,n,!0),o=new Date(n.getTime()-a),l=new Date(0);return l.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),l.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),l}function Ca(e,t,r,n){var a=U2(n);return a.timeZone=t,a.originalDate=e,Qm(q2(e,t),r,a)}function G2(e){return e.includes("sss")?vn(e,"sss",function(){return"SSS"}):e}function Y2(e,t,r){if(!(e.includes("a")||e.includes("A")))return e;let n=vn(e,"a",function(){return`\0${Ca(t,r,"a").toLowerCase()}\0`});return n=vn(n,"A",function(){return`\0${Ca(t,r,"a").toUpperCase()}\0`}),n=n.replace(/\0\0/g,""),n=n.replace(/\0/g,"'"),n}function X2(e,t,r,n){return e.includes("Z")?vn(e,"Z",function(){return Ca(t,r,"xx",{locale:n})}):e}function Z2(e,t,r){return Jm(e,t,r)?Wm(e,1):e}function K2(e,t){return t<=e.getMonth()}function Jm(e,t,r){const n=![rP,Lc].includes(t);return r>tv&&n&&K2(e,r)}function Q2(e,t,r,n){return!n&&Jm(e,t,r)?$m(e,1):e}function J2(e,t){if(t>0){const r=(e.getMonth()+t)%12;return ux(e,r)}return e}function eP(e,t,r,n,a,o){if(!e.includes("y"))return e;const l=Q2(t,n,o,a);let u=e;if(["yyyy","yy","y","yp","yyyp"].includes(e)&&(r="Etc/GMT-14"),e.includes("yp")){const f=Wm(l,1);u=vn(e,"yp|yyyp",function(m){const h="y".repeat(m.length);return Ca(f,r,h)})}return vn(u,"yyyy|yy|y",function(p){return Ca(l,r,p)})}function tP(e,t,r,n){if(!e.includes("Q"))return e;let a=t.getMonth();n&&[Lc,nP,iP,ev].includes(r)&&(a-=n>a?n-12:n);const o=parseInt(String(a/3))+1;return vn(e,"QQ|Q",function(c){return`${c.length===2?"'Quarter '":"'Q'"}${o}`})}const rP="years",Lc="quarters",nP="months",iP="weeks",ev="days",tv=0,aP=1,Ac=Object.freeze({weekFirstDay:aP,isFiscalOn:!1,fiscalMonth:tv,selectedDateLevel:ev,timeZone:"UTC"});function Ic(e,t,r=Oc(),n=Ac){return e.getFullYear()<100&&(e=cx(e,1900+e.getFullYear())),n.isFiscalOn||(e=Z2(e,n.selectedDateLevel,n.fiscalMonth)),t=B2(t,r),t=G2(t),t=Y2(t,e,n.timeZone),t=X2(t,e,n.timeZone,r),t=eP(t,e,n.timeZone,n.selectedDateLevel,n.isFiscalOn,n.fiscalMonth),!n.isFiscalOn&&n.selectedDateLevel===Lc&&(e=J2(e,n.fiscalMonth)),t=tP(t,e,n.selectedDateLevel,n.fiscalMonth),Qm(e,t,{locale:r,weekStartsOn:n.weekFirstDay})}const oP={chart:{backgroundColor:"#FFFFFF",textColor:"#000000",secondaryTextColor:"#E4E4E4",panelBackgroundColor:"#F6F6F6"},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#5B6372",secondaryTextColor:"#9EA2AB"},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#ffffff",brandColor:"#ffcb05",primaryButtonTextColor:"#3a4356",primaryButtonHoverColor:"#f2b900"},widget:{spaceAround:"None",cornerRadius:"None",shadow:"None",border:!1,borderColor:"#9EA2AB",header:{titleTextColor:"#5B6372",titleAlignment:"Left",dividerLine:!1,dividerLineColor:"#5B6372",backgroundColor:"#FFFFFF"}},aiChat:{backgroundColor:"rgba(244, 244, 248, 1)",primaryTextColor:"rgba(38, 46, 61, 0.8)",secondaryTextColor:"rgba(38, 46, 61, 0.55)",primaryFontSize:["13px","18px"],body:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:"1px",gapBetweenMessages:"16px"},footer:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"16px"},userMessages:{backgroundColor:"rgba(255, 255, 255, 1)"},systemMessages:{backgroundColor:"rgba(255, 255, 255, 1)"},input:{backgroundColor:"rgba(255, 255, 255, 1)",focus:{outlineColor:"rgba(38, 46, 61, 0.5)"}},header:{textColor:"rgba(38, 46, 61, 0.8)",backgroundColor:"rgba(255, 255, 255, 1)"},dropup:{backgroundColor:"rgba(255, 255, 255, 1)",boxShadow:"0px 1px 2px rgba(9, 9, 10, 0.1), 0px 2px 4px rgba(9, 9, 10, 0.1)",borderRadius:"4px",headers:{textColor:"rgba(38, 46, 61, 0.8)",hover:{backgroundColor:"rgba(244, 244, 248, 1)"}},items:{textColor:"rgba(38, 46, 61, 0.8)",hover:{backgroundColor:"rgba(244, 244, 248, 1)"}}},border:"1px solid #c6c9ce",borderRadius:"30px",suggestions:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)",border:"1px solid",borderRadius:"16px",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(12, 14, 18, 0.07)"},loadingGradient:["rgba(194, 196, 203, 1)","rgba(236, 236, 239, 1)"],gap:"8px"},clickableMessages:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)",border:"1px solid",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(12, 14, 18, 0.07)"}},dataTopics:{backgroundColor:"rgba(255, 255, 255, 1)",items:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)"}},icons:{color:"rgba(38, 46, 61, 0.67)",feedbackIcons:{hoverColor:"rgba(12, 14, 18, 0.07)"}},tooltips:{backgroundColor:"rgba(255, 255, 255, 1)",textColor:"rgba(38, 46, 61, 0.8)",boxShadow:"0px 4px 12px 0px rgba(9, 9, 10, 0.20), 0px 1px 4px 0px rgba(9, 9, 10, 0.10)"}}},sP={chart:{backgroundColor:"#313138",textColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",panelBackgroundColor:"#313138"},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#FFFFFF",secondaryTextColor:"#C5C8CF"},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#16161C",brandColor:"#FFCB05",primaryButtonTextColor:"#3A4356",primaryButtonHoverColor:"#F2B900"},widget:{spaceAround:"None",cornerRadius:"None",shadow:"None",border:!1,borderColor:"#C5C8CF",header:{titleTextColor:"#FFFFFF",titleAlignment:"Left",dividerLine:!1,dividerLineColor:"#FFFFFF",backgroundColor:"#313138"}},aiChat:{backgroundColor:"rgba(23, 28, 38, 1)",primaryTextColor:"rgba(242, 247, 255, 0.9)",secondaryTextColor:"rgba(242, 247, 255, 0.4)",primaryFontSize:["13px","18px"],body:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:"1px",gapBetweenMessages:"16px"},footer:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"16px"},userMessages:{backgroundColor:"rgba(31, 92, 153, 1)"},systemMessages:{backgroundColor:"rgba(46, 55, 77, 1)"},input:{backgroundColor:"rgba(242, 247, 255, 0.1)",focus:{outlineColor:"rgba(242, 247, 255, 0.5)"}},header:{backgroundColor:"#313138",textColor:"rgba(242, 247, 255, 0.9)"},dropup:{backgroundColor:"rgba(38, 46, 64, 1)",boxShadow:"0px 1px 4px 0px #020203, 0px 2px 12px 2px rgba(2, 2, 3, 0.25)",borderRadius:"8px",headers:{textColor:"rgba(242, 247, 255, 0.6)",hover:{backgroundColor:"rgba(242, 247, 255, 0.1)"}},items:{textColor:"rgba(242, 247, 255, 0.9)",hover:{backgroundColor:"rgba(242, 247, 255, 0.1)"}}},border:!1,borderRadius:"30px",suggestions:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(23, 28, 38, 1)",border:"1px solid",borderRadius:"16px",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(242, 247, 255, 0.1)"},loadingGradient:["rgba(242, 247, 255, 0.1)","rgba(242, 247, 255, 0.3)"],gap:"8px"},clickableMessages:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(23, 28, 38, 1)",border:"1px solid",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(242, 247, 255, 0.1)"}},dataTopics:{backgroundColor:"rgba(23, 28, 38, 1)",items:{textColor:"rgba(242, 247, 255, 0.9)",backgroundColor:"rgba(46, 55, 77, 1)"}},icons:{color:"rgba(242, 247, 255, 0.5)",feedbackIcons:{hoverColor:"rgba(242, 247, 255, 0.1)"}},tooltips:{textColor:"rgba(242, 247, 255, 0.9)",backgroundColor:"rgba(46, 55, 77, 1)",boxShadow:"0px 1px 8px 0px #020203, 0px 4px 24px 4px rgba(2, 2, 3, 0.25)"}}},bs=(e=!1)=>e?N.cloneDeep(sP):N.cloneDeep(oP),ua={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function rv(e,t){const r={chart:{textColor:e.dashboards.widgetTextColor,backgroundColor:e.dashboards.widgetBackgroundColor,secondaryTextColor:e.dashboards.widgetSecondaryTextColor,panelBackgroundColor:e.dashboards.panelBackgroundColor},typography:{fontFamily:e.typography.fontFamily,primaryTextColor:e.typography.primaryTextColor,secondaryTextColor:e.typography.secondaryTextColor},palette:{variantColors:t.colors},general:{brandColor:e.general.brandColor,backgroundColor:e.general.backgroundColor,primaryButtonTextColor:e.general.primaryButtonTextColor,primaryButtonHoverColor:e.general.primaryButtonHoverColor},widget:{spaceAround:ua[e.dashboards.widgetSpacing],cornerRadius:ua[e.dashboards.widgetCornerRadius],shadow:ua[e.dashboards.widgetShadow],border:e.dashboards.widgetBorderEnabled,borderColor:e.dashboards.widgetBorderColor,header:{titleTextColor:e.dashboards.widgetTitleColor,titleAlignment:ua[e.dashboards.widgetTitleAlignment],dividerLine:e.dashboards.widgetTitleDividerEnabled,dividerLineColor:e.dashboards.widgetTitleDividerColor,backgroundColor:e.dashboards.widgetTitleBackgroundColor}}};return N.merge.withOptions({mergeArrays:!1},bs(),r)}function nv(e){return e.dashboards.colorPaletteName}function iv(e,t){return yr(this,null,function*(){const r=yield lP(e,t);if(!r)throw new N.TranslatableError("errors.themeNotFound",{themeOid:e});const n=nv(r),a=yield av(n,t);return rv(r,a)})}function lP(e,t){return yr(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new N.TranslatableError("errors.themeNotFound",{themeOid:e})})})}function av(e,t){return yr(this,null,function*(){const r=yield t.get(`api/palettes/${e}`);if(r&&"status"in r&&r.status==="error")throw new N.TranslatableError("errors.paletteNotFound",{paletteName:e});return r})}function uP(e){return"value"in e}function cP(e){return"valuePromise"in e}const dP=(e,t)=>{const r=new Map;return{withCache:o=>(...l)=>yr(exports,null,function*(){const u=e(...l);if(r.has(u)){const c=r.get(u);if(uP(c))return c.value;if(cP(c))return c.valuePromise;throw new Error("Unexpected cache value")}else{const c=o(...l);return r.set(u,{valuePromise:c,createdAt:new Date}),c.then(f=>(r.set(u,{value:f,createdAt:new Date}),t!=null&&t.cacheMaxSize&&r.size>t.cacheMaxSize&&fP(r),f))}}),clearCache:o=>{if(o){r.delete(o);return}r.clear()}}};function fP(e){const t=Array.from(e.keys()),r=t.reduce((n,a)=>{const o=e.get(a),l=e.get(n);return o.createdAt<l.createdAt?a:n},t[0]);e.delete(r)}const zc=(e,t)=>{const{dataSource:r,dimensions:n=[],measures:a=[],filters:o=[],filterRelations:l,highlights:u=[],count:c,offset:f,ungroup:p}=e;o&&o.forEach(h=>h.isScope=!0),u&&u.forEach(h=>h.isScope=!0);const m=r||t;if(!m)throw new N.TranslatableError("errors.executeQueryNoDataSource");return{dataSource:m,attributes:n,measures:a,filters:o,filterRelations:l,highlights:u,count:c,offset:f,ungroup:p}};function Wa(e,t,r){const n=zc(e,t==null?void 0:t.defaultDataSource);return t.queryClient.executeQuery(n,r).resultPromise.catch(a=>{throw a.message.includes("SecondsLevelIsNotSupportedException")?new N.TranslatableError("errors.secondsDateTimeLevelSupportedOnlyForLive"):a})}const hP=(e,t,r)=>{const n=zc(e,t==null?void 0:t.defaultDataSource);return t.queryClient.executeCsvQuery(n,r).resultPromise},pP=(e,t,r)=>{const{dataSource:n,rows:a=[],columns:o=[],values:l=[],grandTotals:u={},filters:c=[],filterRelations:f,highlights:p=[],count:m,offset:h}=e;c&&c.forEach(_=>_.isScope=!0),p&&p.forEach(_=>_.isScope=!0);const b=n||(t==null?void 0:t.defaultDataSource);if(!b)throw new N.TranslatableError("errors.executeQueryNoDataSource");return t.queryClient.executePivotQuery({dataSource:b,rowsAttributes:a,columnsAttributes:o,measures:l,grandTotals:u,filters:c,filterRelations:f,highlights:p,count:m,offset:h},r).resultPromise},mP=e=>JSON.stringify(he(ie({},wm(e,!1)),{queryGuid:""})),ov=(e,t)=>{const r=zc(e,t==null?void 0:t.defaultDataSource);return mP(r)},vP=250,{withCache:gP,clearCache:yP}=dP(ov,{cacheMaxSize:vP}),$c=gP(Wa),bP=yP;function _P(){}var Wc=_P,wP=N._baseCreate,xP=Wc;function Xo(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Xo.prototype=wP(xP.prototype);Xo.prototype.constructor=Xo;var Fc=Xo,Eh=N._WeakMap,CP=Eh&&new Eh,TP=CP;function EP(){}var sv=EP,Mh=TP,MP=sv,SP=Mh?function(e){return Mh.get(e)}:MP,lv=SP,PP={},RP=PP,Sh=RP,OP=Object.prototype,kP=OP.hasOwnProperty;function NP(e){for(var t=e.name+"",r=Sh[t],n=kP.call(Sh,t)?r.length:0;n--;){var a=r[n],o=a.func;if(o==null||o==e)return a.name}return t}var uv=NP,DP=N._baseCreate,LP=Wc,AP=4294967295;function Zo(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=AP,this.__views__=[]}Zo.prototype=DP(LP.prototype);Zo.prototype.constructor=Zo;var jc=Zo,IP=jc,zP=Fc,$P=N._copyArray;function WP(e){if(e instanceof IP)return e.clone();var t=new zP(e.__wrapped__,e.__chain__);return t.__actions__=$P(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var FP=WP,jP=jc,Ph=Fc,BP=Wc,HP=N.isArray_1,VP=N.isObjectLike_1,UP=FP,qP=Object.prototype,GP=qP.hasOwnProperty;function Ko(e){if(VP(e)&&!HP(e)&&!(e instanceof jP)){if(e instanceof Ph)return e;if(GP.call(e,"__wrapped__"))return UP(e)}return new Ph(e)}Ko.prototype=BP.prototype;Ko.prototype.constructor=Ko;var YP=Ko,XP=jc,ZP=lv,KP=uv,QP=YP;function JP(e){var t=KP(e),r=QP[t];if(typeof r!="function"||!(t in XP.prototype))return!1;if(e===r)return!0;var n=ZP(r);return!!n&&e===n[0]}var eR=JP,Rh=Fc,tR=N._flatRest,rR=lv,kl=uv,nR=N.isArray_1,Oh=eR,iR="Expected a function",aR=8,oR=32,sR=128,lR=256;function uR(e){return tR(function(t){var r=t.length,n=r,a=Rh.prototype.thru;for(e&&t.reverse();n--;){var o=t[n];if(typeof o!="function")throw new TypeError(iR);if(a&&!l&&kl(o)=="wrapper")var l=new Rh([],!0)}for(n=l?n:r;++n<r;){o=t[n];var u=kl(o),c=u=="wrapper"?rR(o):void 0;c&&Oh(c[0])&&c[1]==(sR|aR|oR|lR)&&!c[4].length&&c[9]==1?l=l[kl(c[0])].apply(l,c[3]):l=o.length==1&&Oh(o)?l[u]():l.thru(o)}return function(){var f=arguments,p=f[0];if(l&&f.length==1&&nR(p))return l.plant(p).value();for(var m=0,h=r?t[m].apply(this,f):p;++m<r;)h=t[m].call(this,h);return h}})}var cR=uR,dR=cR,fR=dR(),hR=fR;const pR=N.getDefaultExportFromCjs(hR),kh="composesdk",_s=(e,t,r,n=!1)=>{const a=Object.assign({action:e,cat:kh,eventType:"product",direct:!0},t);return n?(console.debug("DEBUG: event payload to send",a),Promise.resolve()):r.post("api/activities/",[a],{cache:"no-store",redirect:"error",referrerPolicy:"same-origin",priority:"low"}).catch(o=>{console.error(`unable to log action=${e}, category=${kh}`,o)})},mR=(e,t)=>{const{packageName:r,packageVersion:n,component:a,error:o}=e;let l="";return typeof o=="string"?l=o:o instanceof Error&&(l=o.message||o.toString()),_s("sdkError",{packageName:r,packageVersion:n,component:a,error:l},t)},vR=(e,t)=>mR(Object.assign(Object.assign({},e),{packageName:"sdk-ui"}),t),Bc=Q.createContext({isInitialized:!1,tracking:{enabled:!0,packageName:"sdk-ui"}}),bt=()=>Q.useContext(Bc),gR="sdkComponentInit",cv=Q.createContext(!1),yR=({skipNested:e=!0,children:t})=>V.jsx(cv.Provider,{value:e,children:t}),bR=(e,t)=>{const{app:r,tracking:n}=bt(),a=Q.useContext(cv),o=Q.useRef(!1);Q.useEffect(()=>{if(!(r!=null&&r.httpClient))return;if(!o.current&&!a){const u={packageName:n.packageName,packageVersion:"1.16.0",componentName:e,attributesUsed:Object.entries(t).filter(([,c])=>!!c).map(([c])=>c).join(", ")};_s(gR,u,r.httpClient,!n.enabled).finally(()=>o.current=!0)}},[e,t,r,n,a])};var _R=N._baseGetTag,wR=N.isObjectLike_1,xR="[object Boolean]";function CR(e){return e===!0||e===!1||wR(e)&&_R(e)==xR}var TR=CR;const dv=N.getDefaultExportFromCjs(TR);class fv extends Q.Component{constructor(r){super(r);St(this,"componentName");St(this,"context");St(this,"httpClient");St(this,"postponedErrors",[]);this.componentName=r.componentName}componentDidMount(){var r;this.context.isInitialized&&(this.httpClient=(r=this.context.app)==null?void 0:r.httpClient)}componentDidCatch(r){throw this.context.tracking.enabled&&(this.httpClient?this.sendErrorTracking(r,this.httpClient):this.postponedErrors.push(r)),r}sendErrorTracking(r,n){vR({packageVersion:"1.16.0",component:this.componentName,error:r},n).catch(a=>console.log("Failed to send tracking error event: ",a))}render(){return this.httpClient&&this.postponedErrors.length>0&&this.postponedErrors.forEach(r=>this.sendErrorTracking(r,this.httpClient)),this.postponedErrors=[],this.props.children}}St(fv,"contextType",Bc);const ER=({componentName:e,config:t})=>{const{skip:r,transparent:n}=t||{};return a=>function(l){return dv(r)&&r||N.isFunction(r)&&r(l)?V.jsx(a,ie({},l)):(bR(e,l),V.jsx(yR,{skipNested:!n,children:V.jsx(fv,{componentName:e,children:V.jsx(a,ie({},l))})}))}},MR="_container_1wquj_1",SR="_card_1wquj_11",PR="_text_1wquj_19",Nl={container:MR,card:SR,text:PR};function hv({color:e="#FFCB05"}){return V.jsx("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:V.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:V.jsxs("g",{children:[V.jsx("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:e}),V.jsx("path",{d:"M24.5,39.054 L24.5,35.054 L28.5,35.054 L28.5,39.054 L24.5,39.054 Z M28.5,31.0536 L24.5,31.0536 L23.5,13.0536 L29.5,13.0536 L28.5,31.0536 Z",fill:"#FFFFFF"})]})})})}const Hc=Q.createContext({themeSettings:bs()}),Gt=()=>Q.useContext(Hc),RR=({error:e=new N.TranslatableError("errors.componentRenderError")})=>{var h,b,_,g,C,M;const{themeSettings:t}=Gt(),{app:r}=bt(),{t:n}=fs(),[a,o]=Q.useState(!1),l=()=>{o(!0)},u=()=>{o(!1)},c=V.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:V.jsx(hv,{color:(h=t==null?void 0:t.general)==null?void 0:h.brandColor})}),f=e instanceof N.AbstractTranslatableError?n(e.key,ie({},e.interpolationOptions)):n(e instanceof Error?e.message:e),p=n("errorBoxText",{errorMessage:f,interpolation:{escapeValue:!1}}),m=(_=(b=r==null?void 0:r.settings)==null?void 0:b.errorBoundaryConfig)==null?void 0:_.alwaysShowErrorText;return V.jsx("div",{onMouseEnter:m?void 0:l,onMouseLeave:m?void 0:u,className:Nl.container,"aria-label":"error-box",children:V.jsxs("div",{className:Nl.card,style:{backgroundColor:((g=t==null?void 0:t.general)==null?void 0:g.backgroundColor)||"rgba(255,255,255,0.5)"},children:[c,(m||a)&&V.jsx("div",{className:Nl.text,style:{color:((C=t==null?void 0:t.typography)==null?void 0:C.primaryTextColor)||"#5b6372",fontFamily:((M=t==null?void 0:t.typography)==null?void 0:M.fontFamily)||"inherit"},children:p})]})})};class pv extends Q.Component{constructor(r){var n;super(r);St(this,"showErrorBox",!0);St(this,"context");this.showErrorBox=(n=r.showErrorBox)!=null?n:!0,this.state={error:null}}static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r){this.setState({error:r})}componentDidUpdate(r,n){n.error!==null&&OR(r.resetKeys,this.props.resetKeys)&&this.setState({error:null})}render(){const r=this.state.error||this.props.error;return r?this.showErrorBox?V.jsx(RR,{error:r}):V.jsx("div",{}):this.props.children}}function OR(e=[],t=[]){return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}const kR=()=>e=>function(r){return V.jsx(pv,{resetKeys:Object.values(r),children:V.jsx(e,ie({},r))})},NR=({shouldSkipSisenseContextWaiting:e,customContextErrorMessageKey:t})=>r=>function(a){if(DR(e,a))return V.jsx(r,ie({},a));const{app:o,isInitialized:l}=bt();if(!l){const u=t||"errors.noSisenseContext";throw new N.TranslatableError(u)}return o?V.jsx(r,ie({},a)):V.jsx(LR,{})};function DR(e,t){return dv(e)&&e||N.isFunction(e)&&e(t)}function LR(){return null}function AR(){const[e,t]=Q.useState(null);return Q.useEffect(()=>{N.initializeI18n().initPromise.then(r=>t(r))},[]),e}const mv=({children:e,userLanguage:t})=>{const r=AR();return Q.useEffect(()=>{t&&(r==null?void 0:r.language)!==t&&(r==null||r.changeLanguage(t))},[r,t]),r&&V.jsx(U_,{i18n:r,children:e})},IR=()=>e=>function(r){const{isInitialized:n}=bt();return n?V.jsx(e,ie({},r)):V.jsx(mv,{children:V.jsx(e,ie({},r))})},zR=e=>t=>(t.displayName=e,t),qn=e=>{const{componentName:t,shouldSkipSisenseContextWaiting:r,trackingConfig:n={},customContextErrorMessageKey:a}=e;return o=>pR(zR(t),NR({shouldSkipSisenseContextWaiting:r,customContextErrorMessageKey:a}),ER({componentName:t,config:n}),kR(),IR())(o)},$R=(e,t)=>{const r=he(ie({},e),{x:e.breakBy,breakBy:[]});let n=N.cartesianData(r,t);if(e.breakBy.some(o=>N.isNumber(o.type)&&(o==null?void 0:o.numberFormatConfig))){const o=n.xValues.map(l=>{const u=[];return e.breakBy.forEach((c,f)=>{const p=N.getCompleteNumberFormatConfig(c==null?void 0:c.numberFormatConfig),m=l.xValues[f];N.isNumber(c.type)?u.push(N.applyFormatPlainText(p,parseFloat(m))):u.push(l.xValues[f])}),he(ie({},l),{xValues:u})});n=he(ie({},n),{xValues:o})}return he(ie({},n),{type:"categorical"})},Eo=(e,t)=>{if(!t||t.length!==1)return[void 0,void 0];const r=N.getColumnByName(e,t[0].name);return r?[N.getValue(e.rows[0],r),t[0].name]:[void 0,void 0]},WR=(e,t)=>{const r={type:"indicator"};if(!e.value||t.rows.length===0)return r;const[n]=Eo(t,e.value);if(n===void 0)return r;const[a]=Eo(t,e.secondary),[o]=Eo(t,e.min),[l]=Eo(t,e.max);return{type:"indicator",value:n,secondary:a,min:o,max:l}},FR=(e,t)=>{const r=e.category&&N.getColumnByName(t,e.category.name);r&&(r.direction=N.sortDirection(e.category.sortType));const n=N.getOrderedXValues(t,[],r?[r]:[],(r==null?void 0:r.direction)===0?N.rownumColumnName:void 0),a=N.getIndexedRows(t.rows,r?[r]:[]),o=N.getColumnByName(t,e.boxMin.name),l=N.getColumnByName(t,e.boxMedian.name),u=N.getColumnByName(t,e.boxMax.name),c=N.getColumnByName(t,e.whiskerMin.name),f=N.getColumnByName(t,e.whiskerMax.name),p=e.outliers&&N.getColumnByName(t,e.outliers.name),m=[],h=[];n.forEach((_,g)=>{const C=a[_.key],M=C?C[0]:[],E=r&&N.isBlurred(M,r);m.push({q1:o?N.getValue(M,o):0,median:l?N.getValue(M,l):0,q3:u?N.getValue(M,u):0,low:c?N.getValue(M,c):0,high:f?N.getValue(M,f):0,blur:E});const x=p?M[p.index].rawValue.split(",").map(T=>parseFloat(T)):[];h.push(...x.map(T=>({x:g,y:T,blur:E})))});const b=[{name:e.valueTitle,title:e.valueTitle,data:m}];return h.length>0&&b.push({name:e.valueTitle,title:e.valueTitle,data:h}),{type:"boxplot",xValues:n,series:b}},jR=(e,t)=>{let r={type:"range",steps:e.steps};if(e.rangeMode!=="auto"){const l=parseFloat(`${e.minvalue}`),u=parseFloat(`${e.midvalue}`),c=parseFloat(`${e.maxvalue}`);r=ie(ie(ie(ie({},r),l&&{minValue:l}),u&&{midValue:u}),c&&{maxValue:c})}const n=N.getPaletteColor(t,0),a=N.scaleBrightness(n,.2),o=N.scaleBrightness(n,-.2);switch(e.rangeMode){case"auto":return he(ie({},r),{minColor:N.toGray(n),maxColor:o});case"both":return he(ie({},r),{minColor:e.min||a,maxColor:e.max||o});case"min":return he(ie({},r),{minColor:e.min||a,maxColor:N.DEFAULT_COLOR});case"max":return he(ie({},r),{minColor:N.DEFAULT_COLOR,maxColor:e.max||o})}},vv=(e,t)=>{if(e!==void 0)switch(e.type){case"color":return{type:"uniform",color:e.color||N.getPaletteColor(t,e.colorIndex||0)};case"range":return jR(e,t);case"condition":return{type:"conditional",conditions:e.conditions.filter(r=>typeof r.expression=="string"),defaultColor:N.getPaletteColor(t,0)};default:return N.getUniformColorOptionsFromString(N.getPaletteColor(t,0))}},gv=e=>Object.entries(e).reduce((t,[r,{color:n}])=>(t[r]=n,t),{}),BR=e=>e.reduce((t,r)=>{var n,a;return(n=r.format)!=null&&n.members&&(t[N.normalizeName(r.jaql.title)]=gv((a=r.format)==null?void 0:a.members)),t},{}),HR=N.createDataColoringFunction({getValueFromDataStructure:e=>e.originalValue,applyColorToDataStructure:(e,t)=>he(ie({},e),{color:t})}),VR=vv({type:"range",steps:5,rangeMode:"auto"}),UR=(e,t)=>{const r=N.getColumnByName(t,e.geo.name),n=N.getColumnByName(t,e.color.name);if(!r||!n)throw new Error("Missing required column");const a=t.rows.map(l=>{const u=N.getValue(l,n),c=N.getCompleteNumberFormatConfig(e.color.numberFormatConfig),f=N.applyFormatPlainText(c,u);return{geoName:N.getValue(l,r),originalValue:u,formattedOriginalValue:f}});return{type:"areamap",geoData:HR(a,e.color.color||VR)}};function qR(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++n<a;)o[n]=e[n+t];return o}var GR=qR,YR=GR;function XR(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:YR(e,t,r)}var ZR=XR;function KR(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o<a;)if(t(e[o],o,e))return o;return-1}var QR=KR;function JR(e){return e!==e}var eO=JR;function tO(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}var rO=tO,nO=QR,iO=eO,aO=rO;function oO(e,t,r){return t===t?aO(e,t,r):nO(e,iO,r)}var Vc=oO,sO=Vc;function lO(e,t){for(var r=e.length;r--&&sO(t,e[r],0)>-1;);return r}var uO=lO,cO=Vc;function dO(e,t){for(var r=-1,n=e.length;++r<n&&cO(t,e[r],0)>-1;);return r}var fO=dO;function hO(e){return e.split("")}var pO=hO,mO="\\ud800-\\udfff",vO="\\u0300-\\u036f",gO="\\ufe20-\\ufe2f",yO="\\u20d0-\\u20ff",bO=vO+gO+yO,_O="\\ufe0e\\ufe0f",wO="\\u200d",xO=RegExp("["+wO+mO+bO+_O+"]");function CO(e){return xO.test(e)}var TO=CO,yv="\\ud800-\\udfff",EO="\\u0300-\\u036f",MO="\\ufe20-\\ufe2f",SO="\\u20d0-\\u20ff",PO=EO+MO+SO,RO="\\ufe0e\\ufe0f",OO="["+yv+"]",Uu="["+PO+"]",qu="\\ud83c[\\udffb-\\udfff]",kO="(?:"+Uu+"|"+qu+")",bv="[^"+yv+"]",_v="(?:\\ud83c[\\udde6-\\uddff]){2}",wv="[\\ud800-\\udbff][\\udc00-\\udfff]",NO="\\u200d",xv=kO+"?",Cv="["+RO+"]?",DO="(?:"+NO+"(?:"+[bv,_v,wv].join("|")+")"+Cv+xv+")*",LO=Cv+xv+DO,AO="(?:"+[bv+Uu+"?",Uu,_v,wv,OO].join("|")+")",IO=RegExp(qu+"(?="+qu+")|"+AO+LO,"g");function zO(e){return e.match(IO)||[]}var $O=zO,WO=pO,FO=TO,jO=$O;function BO(e){return FO(e)?jO(e):WO(e)}var HO=BO,VO=N._baseToString,UO=N._baseTrim,qO=ZR,GO=uO,YO=fO,Nh=HO,XO=N.toString_1;function ZO(e,t,r){if(e=XO(e),e&&(r||t===void 0))return UO(e);if(!e||!(t=VO(t)))return e;var n=Nh(e),a=Nh(t),o=YO(n,a),l=GO(n,a)+1;return qO(n,o,l).join("")}var KO=ZO;const QO=N.getDefaultExportFromCjs(KO),Tv=",";function JO(e){return e.join(`${Tv} `)}function ek(e){return e.split(Tv).map(QO)}function tk(e){switch(e){case"city":return"city";case"state":return"adm";case"country":return"country"}}function rk(e){const{name:t,rawName:r,coordinates:n,value:a}=e;return{categories:r,displayName:t,coordinates:{lat:n.lat,lng:n.lng},value:a}}const nk="N\\A",ik=1,ak=(e,t)=>{const r=ok(e),n=e.locations&&N.getColumnsByName(t,e.locations.map(({name:c})=>c)),a=e.size&&N.getColumnByName(t,e.size.name),o=e.colorBy&&N.getColumnByName(t,e.colorBy.name),l=e.details&&N.getColumnByName(t,e.details.name);return{type:"scattermap",locations:t.rows.filter(c=>n.some(f=>N.getValue(c,f)!==nk)).map(c=>{const f=n.map(b=>N.getValue(c,b)),p=JO(f);let m;r&&(m={lat:N.getValue(c,n[0]),lng:N.getValue(c,n[1])});const h=n[0]&&N.isBlurred(c,n[0]);return ie(he(ie(ie({name:p,rawName:f,value:a?N.getValue(c,a):ik},o&&{colorValue:N.getValue(c,o)}),l&&{details:N.getValue(c,l)}),{blur:h}),m?{coordinates:m}:null)})}};function ok(e){return e.locations.length===2&&e.locations.filter(t=>N.isNumber(t.type)).length===2}const sk=(e,t,r)=>{if(N.isCartesian(e))return N.isForecastChart(t)?N.advancedAnalyticsData(t,r):N.cartesianData(t,r);if(N.isCategorical(e))return $R(t,r);if(N.isScatter(e))return N.scatterData(t,r);if(N.isScattermap(e))return ak(t,r);if(N.isIndicator(e))return WR(t,r);if(N.isBoxplot(e))return FR(t,r);if(N.isAreamap(e))return UR(t,r);if(N.isRange(e))return N.rangeData(t,r);throw new Error(`Unexpected chart type: ${e}`)};var lk=N.identity_1,uk=N._overRest,ck=N._setToString;function dk(e,t){return ck(uk(e,t,lk),e+"")}var Uc=dk,fk=Vc;function hk(e,t){var r=e==null?0:e.length;return!!r&&fk(e,t,0)>-1}var pk=hk;function mk(e,t,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}var vk=mk,Dl=N._Set,gk=sv,yk=N._setToArray,bk=1/0,_k=Dl&&1/yk(new Dl([,-0]))[1]==bk?function(e){return new Dl(e)}:gk,wk=_k,xk=N._SetCache,Ck=pk,Tk=vk,Ek=N._cacheHas,Mk=wk,Sk=N._setToArray,Pk=200;function Rk(e,t,r){var n=-1,a=Ck,o=e.length,l=!0,u=[],c=u;if(r)l=!1,a=Tk;else if(o>=Pk){var f=t?null:Mk(e);if(f)return Sk(f);l=!1,a=Ek,c=new xk}else c=t?[]:u;e:for(;++n<o;){var p=e[n],m=t?t(p):p;if(p=r||p!==0?p:0,l&&m===m){for(var h=c.length;h--;)if(c[h]===m)continue e;t&&c.push(m),u.push(p)}else a(c,m,r)||(c!==u&&c.push(m),u.push(p))}return u}var Ev=Rk,Ok=N.isArrayLike_1,kk=N.isObjectLike_1;function Nk(e){return kk(e)&&Ok(e)}var Mv=Nk,Dk=N._baseFlatten,Lk=Uc,Ak=Ev,Ik=Mv,zk=Lk(function(e){return Ak(Dk(e,1,Ik,!0))}),$k=zk;const Wk=N.getDefaultExportFromCjs($k),Sv=(e,t,r,n={})=>{if(N.emptyTable(e))return{rows:[],columns:[]};const a=Wk(N.getColumnsByName(e,t.map(p=>p.name))),o=e,u=[...r.map(p=>{var m,h;return{column:(m=n[p.name])!=null?m:p.name,title:p.name,agg:(h=p.aggregation)!=null?h:"sum"}}),{column:N.rownumColumnName,title:N.rownumColumnName,agg:"min"}],c=N.groupBy(o,a,u),f=N.getColumnByName(c,N.rownumColumnName);if(!f)throw new Error("Unexpected data has no row num column");return N.orderBy(c,[f])};class Fa{degToRad(t){return t*Math.PI/180}getFitStringMeasure(t,r,n,a){t.font=a;let o=this.getStringWidth(t,r);const l="…",u=this.getStringWidth(t,l);if(o<=n)return{string:r,width:o};if(u>=n)return{string:l,width:u};do r=r.slice(0,r.length-1),o=this.getStringWidth(t,r);while(o+u>n);return{string:r+l,width:o+u}}getStringWidth(t,r){return Math.ceil(t.measureText(r).width)}floor(t,r){r=typeof r=="number"?r:0;const n=Math.pow(10,r);return Math.round(t*n)/n}setCanvasSizes(t,r,n,a){const o=window.devicePixelRatio||1;t.width=n*o,t.height=a*o,t.style.width=n+"px",t.style.height=a+"px",r.scale(o,o)}}const mi=new Fa,An=function(e,t){return mi.floor(e*t.value,t.decimals)};function Fk(e,t){const r={};return e.forEach(n=>{t.some(function(a){return a.key===n?(r[n]=a,!0):!1})}),r}function jk(e,t,r){const{showTitle:n,showSecondary:a,skin:o,maxHeight:l,maxWidth:u,borderWidth:c}=r;for(let f=0;f<t.length;f++){const p=t[f],m=p.value,h=An(m,e.valueSectionMarginBottom),_=An(m,e.indicatorVerticalMargin)*2;let g=m+h+_;if(n&&o==="vertical"){const C=An(m,e.titleSectionHeight);g+=C}if(a){const C=An(m,e.secSectionHeight),M=An(m,e.secSectionMarginTop);g+=C+M+(c||0)}if(g<=l){const C=An(m,e.numericMinWidth),E=An(m,e.indicatorHorizontalMargin)*2;if(C+E<=u)return he(ie({},p),{maxWidth:u-E,maxHeight:l-_})}}return null}class Bk{getBaseMeasure(t,r,n){const a=r,o="sizes"in a?a.sizes:[],l=a.relativeSizes,u=a.measureKeys.concat(),c=Math.floor(n.clientWidth),f=Math.floor(n.clientHeight),p=Fk(u,l);return jk(p,o,{maxWidth:c,maxHeight:f,showTitle:t.showTitle,showSecondary:t.showSecondary,skin:t.skin,borderWidth:"borderWidth"in a?a.borderWidth:0})}render(t,r,n,a){const o=t.getContext("2d");let l;n.height=a.value,n.maxWidth=a.maxWidth,n.maxHeight=a.maxHeight,l=n.height,n.fitValueMeasure=this.getFitValueMeasure(o,r,n),r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(o,r,n),l+=r.skin==="vertical"?n.titleSectionHeight:0),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(o,r,n),l+=n.valueSectionMarginBottom+n.secSectionHeight+n.secSectionMarginTop+n.borderWidth);const u=this.getCanvasWidth(r,n);n.width=u,n.height=l,mi.setCanvasSizes(t,o,u,l),this.draw(o,r,n)}getFitTitleMeasure(t,r,n){const a=r.skin==="horizontal",o=n.maxWidth-(a?n.fitValueMeasure.width+n.valueSectionMarginRight:0);if(a&&o+n.titleSectionMinWidth<=0)return;const l=mi.getFitStringMeasure(t,r.title.text,o,n.titleFont);return l.width+=a?n.valueSectionMarginRight:0,l.key="title",l}getFitValueMeasure(t,r,n){const a=mi.getFitStringMeasure(t,r.value.text,n.maxWidth,n.valueFont);return a.key="value",a}getFitSecondaryMeasure(t,r,n){const a=n.secDividerWidth,o=n.maxWidth-a,l=o-n.secTitleMinWidth,u=mi.getFitStringMeasure(t,r.secondary.text,l,n.secondaryValueFont),c=o-u.width,f=mi.getFitStringMeasure(t,r.secondaryTitle.text,c,n.secondaryTitleFont);return{width:f.width+u.width+a,titleString:f.string,valueString:u.string,key:"secondary"}}getCanvasWidth(t,r){let n;const a=r.fitTitleMeasure,o=r.fitValueMeasure,l=r.fitSecondaryMeasure;if(r.fitMeasures.some(c=>{const f=r[c.key],p=t[c.dataKey];return!!(f&&p&&f[c.prop]!==p.text)}))return r.maxWidth;if(t.skin==="vertical"){let f=a&&a.width>o.width?a:o;f=l&&l.width>f.width?l:f,n=f.width}else n=o.width,a&&(n+=a.width),l&&l.width>n&&(n=l.width);return n}draw(t,r,n){this.clearCanvas(t,n),this.drawValue(t,r,n),r.showTitle&&this.drawTitle(t,r,n),r.showSecondary&&this.drawSecondary(t,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r,n){!n.fitTitleMeasure||r.skin==="horizontal"&&n.fitValueMeasure.string!==r[n.fitValueMeasure.key].text||(t.font=n.titleFont,t.fillStyle=n.titleColor,r.skin==="vertical"?(t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitTitleMeasure.string,n.width/2,n.titleSectionHeight/2)):(t.textAlign="left",t.textBaseline="top",t.fillText(n.fitTitleMeasure.string,n.fitValueMeasure.width+n.valueSectionMarginRight,n.titleSectionMarginTop)))}drawValue(t,r,n){const a=r.skin==="vertical";t.fillStyle=n.valueColor||r.color,t.font=n.valueFont,t.textAlign=a?"center":"left",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,a?n.width/2:0,(r.showTitle&&a?n.titleSectionHeight:0)+n.valueSectionHeight/2)}drawSecondary(t,r){let n=r.height-r.secSectionHeight/2;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="middle",t.fillText(r.fitSecondaryMeasure.titleString,0,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.fillText(r.fitSecondaryMeasure.valueString,r.width,n),t.strokeStyle=r.borderColor,t.beginPath(),n=r.height-r.secSectionHeight-r.secSectionMarginTop-r.borderWidth,t.moveTo(0,n),t.lineTo(r.width,n),t.stroke()}}const gi=new Fa,Mo=function(e,t){return gi.floor(e*t.value,t.decimals)};function Hk(e,t){const r={};return e.forEach(n=>{t.some(function(a){return a.key===n?(r[n]=a,!0):!1})}),r}function Vk(e,t,r){const{showTitle:n,showSecondary:a,maxHeight:o,maxWidth:l,bracketThickness:u}=r;for(let c=0;c<t.length;c++){const f=t[c],p=f.value,m=Mo(p,e.indicatorMargin);let h=p+m;if(n){const b=Mo(p,e.titleSectionHeight);h+=b}if(a){const b=Mo(p,e.secSectionHeight);h+=b}if(h<=o){const b=Mo(p,e.numericMinWidth),_=m*2;if(b+u*2+_<=l)return he(ie({},f),{maxWidth:l-_,maxHeight:o-m})}}return null}class Uk{getBaseMeasure(t,r,n){const a=r,o="sizes"in a?a.sizes:[],l=a.relativeSizes,u=a.measureKeys.concat(),c=Math.floor(n.clientWidth),f=Math.floor(n.clientHeight),p=Hk(u,l);return Vk(p,o,{maxWidth:c,maxHeight:f,showTitle:t.showTitle,showSecondary:t.showSecondary,bracketThickness:a.bracketThickness})}render(t,r,n,a){const o=t.getContext("2d");let l;n.height=a.value,n.maxWidth=a.maxWidth,n.maxHeight=a.maxHeight,n.offsetY=0,l=n.height,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(o,r,n),l+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(o,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(o,r,n),l+=n.secSectionHeight);const u=this.getCanvasWidth(r,n);n.width=u,n.height=l,gi.setCanvasSizes(t,o,u,l),this.draw(o,r,n)}getFitTitleMeasure(t,r,n){const a=n.bracketWidth*2+n.titleHorizontalMargin*2,o=n.maxWidth-a,l=gi.getFitStringMeasure(t,r.title.text,o,n.titleFont);return l.width+=a,l.key="title",l}getFitValueMeasure(t,r,n){const a=n.bracketThickness*2,o=n.maxWidth-a,l=gi.getFitStringMeasure(t,r.value.text,o,n.valueFont);return l.width+=a,l.key="value",l}getFitSecondaryMeasure(t,r,n){const a=n.bracketWidth*2+n.secDividerWidth,o=n.maxWidth-a,l=o-n.secTitleMinWidth,u=gi.getFitStringMeasure(t,r.secondary.text,l,n.secondaryValueFont),c=o-u.width,f=gi.getFitStringMeasure(t,r.secondaryTitle.text,c,n.secondaryTitleFont);return{width:f.width+u.width+a,titleString:f.string,valueString:u.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.numericMinWidth+r.bracketThickness*2;const a=r.fitTitleMeasure,o=r.fitValueMeasure;let u=a&&a.width>o.width?a:o;const c=r.fitSecondaryMeasure,f=c&&c.width>u.width;let p;return u=f?c:u,f?p=u.titleString!==t.secondaryTitle.text||u.valueString!==t.secondary.text:p=u.string!==t[u.key].text,p?n=r.maxWidth:u.width>n&&(n=u.width),n}draw(t,r,n){this.clearCanvas(t,n),r.showTitle&&this.drawTitle(t,n),this.drawValue(t,r,n),r.showSecondary&&this.drawSecondary(t,n),(r.showTitle||r.showSecondary)&&this.drawBrackets(t,r,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitTitleMeasure.string,r.width/2,r.titleSectionHeight/2),r.offsetY+=r.titleSectionHeight}drawValue(t,r,n){const a=n.offsetY;t.fillStyle=n.valueColor,t.fillRect(1,a,n.width-n.bracketThickness*2,n.valueSectionHeight),t.font=n.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,n.width/2,a+n.valueSectionHeight/2)}drawSecondary(t,r){const n=r.height-r.secBottomMargin;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.titleString,r.bracketWidth,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.valueString,r.width-r.bracketWidth,n)}drawBrackets(t,r,n){t.strokeStyle=n.bracketColor,t.beginPath(),r.showTitle?(t.moveTo(n.bracketWidth+.5,.5),t.lineTo(.5,.5)):t.moveTo(.5,.5),t.lineTo(.5,n.height-.5),r.showSecondary&&t.lineTo(n.bracketWidth+.5,n.height-.5),t.stroke(),r.showTitle?(t.moveTo(n.width-(n.bracketWidth+.5),.5),t.lineTo(n.width-.5,.5)):t.moveTo(n.width-.5,.5),t.lineTo(n.width-.5,n.height-.5),r.showSecondary&&t.lineTo(n.width-(n.bracketWidth+.5),n.height-.5),t.stroke(),t.closePath()}}const Qe=new Fa,si=function(e,t){return Qe.floor(e*t.value,t.decimals)};function qk(e,t){const r={};return e.forEach(n=>{t.some(function(a){return a.key===n?(r[n]=a,!0):!1})}),r}function Gk(e,t,r){const{maxWidth:n,maxHeight:a,showTitle:o,showSecondary:l}=r;for(let u=0;u<t.length;u++){const c=t[u],f=c.value,p=si(f,e.valueSectionHeight),m=si(f,e.indicatorMargin),h=Math.ceil(m*1.5);let b=f+p+h;if(o){const _=si(f,e.titleSectionHeight);b+=_}if(l){const _=si(f,e.secSectionHeight);b+=_}if(b<=a){const _=si(f,e.gaugeWidth),g=si(f,e.bracketWidth),C=m*2;if(_+g*2+C<=n)return he(ie({},c),{maxWidth:n-C,maxHeight:a-h})}}return null}class Yk{getBaseMeasure(t,r,n){const a=r,o="gaugeHeights"in a?a.gaugeHeights:void 0;if(!o)return null;const l=a.relativeSizes,u=a.measureKeys.concat(),c=Math.floor(n.clientWidth),f=Math.floor(n.clientHeight),p=qk(u,l);return Gk(p,o,{maxWidth:c,maxHeight:f,showTitle:t.showTitle,showSecondary:t.showSecondary})}render(t,r,n,a){const o=t.getContext("2d");let l=0,u;n.gaugeHeight=a.value,n.size=a.size,n.maxWidth=a.maxWidth,n.maxHeight=a.maxHeight,n.offsetY=0,u=n.gaugeHeight+n.valueSectionHeight,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(o,r,n),u+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(o,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(o,r,n),u+=n.secSectionHeight),l=this.getCanvasWidth(r,n),n.width=l,n.height=u,Qe.setCanvasSizes(t,o,l,u),this.draw(o,r,n)}getFitTitleMeasure(t,r,n){const a=n.bracketWidth*2+n.titleHorizontalMargin*2,o=n.maxWidth-a,l=Qe.getFitStringMeasure(t,r.title.text,o,n.titleFont);return l.width+=a,l.key="title",l}getFitValueMeasure(t,r,n){const a=n.bracketThickness*2,o=n.maxWidth-a,l=Qe.getFitStringMeasure(t,r.value.text,o,n.valueFont);return l.width+=a,l.key="value",l}getFitSecondaryMeasure(t,r,n){const a=n.bracketWidth*2+n.secDividerWidth,o=n.maxWidth-a,l=o-n.secTitleMinWidth,u=Qe.getFitStringMeasure(t,r.secondary.text,l,n.secondaryValueFont),c=o-u.width,f=Qe.getFitStringMeasure(t,r.secondaryTitle.text,c,n.secondaryTitleFont);return{width:f.width+u.width+a,titleString:f.string,valueString:u.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.gaugeWidth+r.bracketWidth*2;const a=r.fitTitleMeasure,o=r.fitValueMeasure;let u=a&&a.width>o.width?a:o;const c=r.fitSecondaryMeasure,f=c&&c.width>u.width;let p;return u=f?c:u,f?p=u.titleString!==t.secondaryTitle.text||u.valueString!==t.secondary.text:p=u.string!==t[u.key].text,p?n=r.maxWidth:u.width>n&&(n=u.width),n}draw(t,r,n){this.clearCanvas(t,n),r.showTitle&&this.drawTitle(t,n),this.drawGauge(t,r,n),this.drawValue(t,r,n),r.showSecondary&&this.drawSecondary(t,n),this.drawBrackets(t,r,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitTitleMeasure.string,r.width/2,(r.titleSectionHeight-r.titleBottomMargin)/2),r.offsetY+=r.titleSectionHeight}drawGauge(t,r,n){n.gaugeCenterX=n.width/2,n.gaugeCenterY=n.offsetY+n.gaugeHeight-n.gaugeBottomMargin,n.needleAngle=this.getNeedleAngle(r,n),r.skin===2&&r.conditions&&r.conditions.length?this.drawConditionalDial(t,r,n):this.drawSimpleDial(t,r,n),r.showTicks&&n.size!=="micro"&&this.drawTicks(t,r,n),this.drawNeedle(t,n),r.showLabels&&n.size!=="micro"&&this.drawLabels(t,r,n),n.offsetY+=n.gaugeHeight}drawValue(t,r,n){t.fillStyle=n.valueColor,t.fillRect(1,n.offsetY,n.width-n.bracketThickness*2,n.valueSectionHeight),t.font=n.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,n.width/2,n.offsetY+n.valueSectionHeight/2)}drawSecondary(t,r){const n=r.height-r.secBottomMargin;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.titleString,r.bracketWidth,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.valueString,r.width-r.bracketWidth,n)}drawBrackets(t,r,n){const a=r.showTitle?(n.titleSectionHeight-n.titleBottomMargin)/2:0;t.strokeStyle=n.bracketColor,t.beginPath(),t.moveTo(n.bracketWidth+.5,a+.5),t.lineTo(.5,a+.5),t.lineTo(.5,n.height-.5),r.showSecondary&&t.lineTo(n.bracketWidth+.5,n.height-.5),t.stroke(),t.moveTo(n.width-(n.bracketWidth+.5),a+.5),t.lineTo(n.width-.5,a+.5),t.lineTo(n.width-.5,n.height-.5),r.showSecondary&&t.lineTo(n.width-(n.bracketWidth+.5),n.height-.5),t.stroke(),t.closePath()}getNeedleAngle(t,r){const n=+t.min.data,a=+t.max.data,o=+(t.value.data||0);return o<n?r.startAngle-r.overDegrees:o>a?r.endAngle+r.overDegrees:this.getAngle(r,o,n,a)}getAngle(t,r,n,a){const o=(t.endAngle-t.startAngle)/(a-n);return(r-n)*o+t.startAngle}drawConditionalDial(t,r,n){const a=r.conditions,o=+r.min.data,l=+r.max.data,u=Qe.degToRad(n.startAngle+180),c=Qe.degToRad(n.endAngle+180);let f;const p=m=>this.getAngle(n,m,o,l);for(this.drawArc(t,n,u,c,n.defaultDialColor),f=a.length-1;f>=0;f--){const m=a[f];let h=+m.data,b,_=NaN,g=NaN,C=NaN,M=NaN;const E=.25;switch(m.operator){case"<":if(h<=o)break;h=h>l?l:h,b=p(h),_=u,g=Qe.degToRad(b+180);break;case">":if(h>=l)break;h=h<o?o:h,b=p(h),_=Qe.degToRad(b+180),g=c;break;case"≤":if(h<o)break;h=h>l?l:h,b=p(h),_=u,g=Qe.degToRad(b+(b+E<=n.endAngle?E:0)+180);break;case"≥":if(h>l)break;h=h<o?o:h,b=p(h),_=Qe.degToRad(b-(b-E>=n.startAngle?E:0)+180),g=c;break;case"=":if(h<o||h>l)break;b=p(h),_=Qe.degToRad(b-(b-E>=n.startAngle?E:0)+180),g=Qe.degToRad(b+(b+E<=n.endAngle?E:0)+180);break;case"≠":if(h<o||h>l)_=u,g=c;else if(h===o||h===l){const x=h===o;_=Qe.degToRad(n.startAngle+(x?E:0)+180),g=Qe.degToRad(n.endAngle-(x?0:E)+180)}else b=p(h),_=u,g=Qe.degToRad(b-(b-E>=n.startAngle?E:0)+180),C=Qe.degToRad(b+(b+E<=n.endAngle?E:0)+180),M=c}!isNaN(_)&&!isNaN(g)&&this.drawArc(t,n,_,g,m.color),!isNaN(C)&&!isNaN(M)&&this.drawArc(t,n,C,M,m.color)}}drawSimpleDial(t,r,n){const a=Qe.degToRad(n.startAngle+180),o=Qe.degToRad(n.needleAngle+180),l=Qe.degToRad(n.endAngle+180);n.needleAngle>n.startAngle&&n.needleAngle<n.endAngle?(this.drawArc(t,n,a,o,n.valueColor),t.globalAlpha=n.gaugeOpacity,this.drawArc(t,n,o,l,n.valueColor)):(n.needleAngle<=n.startAngle&&(t.globalAlpha=n.gaugeOpacity),this.drawArc(t,n,a,l,n.valueColor)),t.globalAlpha=1}drawArc(t,r,n,a,o){t.fillStyle=o,t.beginPath(),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.outerArcRadius,n,a),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.innerArcRadius,a,n,!0),t.fill()}drawTicks(t,r,n){const a=n.startAngle,o=n.endAngle,l=n.tickDegreesIncrement,u=n.needleAngle;let c;for(c=a;c<=o;c+=l){const f=Qe.degToRad(c),p=n.gaugeCenterX-n.lengthToTick*Math.cos(f),m=n.gaugeCenterY-n.lengthToTick*Math.sin(f),h=u<a,b=u>=c-l/2&&u<c+l/2,_=c===o&&u>=c;t.fillStyle=!h&&b||_?r.color:n.tickColor,t.beginPath(),t.arc(p,m,n.tickRadius,0,2*Math.PI),t.fill()}}drawNeedle(t,r){const n=Qe.degToRad(r.needleAngle);t.fillStyle=r.needleColor,t.save(),t.translate(r.gaugeCenterX,r.gaugeCenterY),t.rotate(n),t.translate(-r.gaugeCenterX,-r.gaugeCenterY),t.beginPath(),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.needleBaseRadius,.5*Math.PI,1.5*Math.PI,!0),t.lineTo(r.gaugeCenterX-r.needleLength,r.gaugeCenterY),t.fill(),t.restore()}drawLabels(t,r,n){t.font=n.labelFont,t.fillStyle=n.labelColor,t.textAlign="right",t.textBaseline="middle",t.fillText(r.min.text,n.gaugeCenterX-n.labelMargin,n.gaugeCenterY),t.textAlign="left",t.fillText(r.max.text,n.gaugeCenterX+n.labelMargin,n.gaugeCenterY)}}const Pr=new Fa;class Xk{render(t,r,n,a){const o=t.getContext("2d"),l=Math.floor(a.clientWidth)-n.horizontalMargin*2,u=n.sectionMinWidth;let c=0,f=0,p=0,m=0,h=0,b=0,_=0,g=0,C;if(o.font=n.valueFont,C=Pr.getStringWidth(o,r.value.text),n.offsetX=0,r.title.text+=":",r.secondaryTitle&&(r.secondaryTitle.text+=":"),r.showTitle&&(o.font=n.titleFont,b=Pr.getStringWidth(o,r.value.text),h=Pr.getStringWidth(o,r.title.text),f=h<u?h:u,C+=f+n.textPadding),r.showSecondary&&(o.font=n.secondaryValueFont,g=Pr.getStringWidth(o,r.secondary.text),m=g<u?g:u,C+=m,o.font=n.secondaryTitleFont||"",_=Pr.getStringWidth(o,r.secondaryTitle.text),p=_<u?_:u,C+=p+n.horizontalPadding*2+n.dividerWidth+n.textPadding),r.type==="gauge"){const E=n.horizontalPadding*2+n.dividerWidth;if(n.forceTickerView){const T=b+h+_+g+n.textPadding*4+E,w=l-E-T;n.barWidth=Math.max(w,n.barWidth)}const x=n.barWidth+E;C+=x,n.showTickerBar=C<=l||!0,c+=n.showTickerBar?x:0}c+=r.showTitle?n.textPadding:0,c+=r.showSecondary?n.horizontalPadding*2+n.dividerWidth+n.textPadding:0;const M=l-c-f-p-m;if(n.fitValueMeasure=Pr.getFitStringMeasure(o,r.value.text,M,n.valueFont),c+=n.fitValueMeasure.width,r.showSecondary){const E=l-c-f-p;let x;n.fitSecValueMeasure=Pr.getFitStringMeasure(o,r.secondary.text,E,n.secondaryValueFont),c+=n.fitSecValueMeasure.width;const T=l-c,w=T/2;r.showTitle?h+_>T?h>w&&_>w?x=w:_>w&&h<=w?x=T-h:x=_:x=_:x=T,n.fitSecTitleMeasure=Pr.getFitStringMeasure(o,r.secondaryTitle.text,x,n.secondaryTitleFont),c+=n.fitSecTitleMeasure.width}if(r.showTitle){const E=l-c;n.fitTitleMeasure=Pr.getFitStringMeasure(o,r.title.text,E,n.titleFont),c+=n.fitTitleMeasure.width}n.width=c,Pr.setCanvasSizes(t,o,c,n.height),this.draw(o,r,n)}draw(t,r,n){this.clearCanvas(t,n),r.type==="gauge"&&n.showTickerBar&&(this.drawTickerBar(t,r,n),this.drawDivider(t,n)),t.textBaseline="middle",r.showTitle&&this.drawTitle(t,n),this.drawValue(t,r,n),r.showSecondary&&(this.drawDivider(t,n),this.drawSecondary(t,n))}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTickerBar(t,r,n){var f;const a=+r.min.data,o=+r.max.data,l=+(((f=r.value)==null?void 0:f.data)||0),u=Math.round((n.height-n.barHeight)/2);let c;if(t.fillStyle=n.valueColor,l<=a)t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX,u,n.barWidth,n.barHeight),c=0;else if(l>=o)t.fillRect(n.offsetX,u,n.barWidth,n.barHeight),c=n.barWidth-n.tickerBarWidth;else{const p=(l-Math.abs(a))/(o-a),m=n.barWidth*p;t.fillRect(n.offsetX,u,m,n.barHeight),t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX+m,u,n.barWidth-m,n.barHeight),m>n.barWidth-n.tickerBarWidth?c=n.barWidth-n.tickerBarWidth:m<n.tickerBarWidth?c=0:c=m-1}t.globalAlpha=1,t.fillStyle=n.barHandleColor,t.fillRect(n.offsetX+c,Math.round((n.height-n.tickerBarHeight)/2),n.tickerBarWidth,n.tickerBarHeight),n.offsetX+=n.barWidth}drawDivider(t,r){t.fillStyle=r.dividerColor,t.fillRect(r.offsetX+r.horizontalPadding,Math.round((r.height-r.dividerHeight)/2),r.dividerWidth,r.dividerHeight),r.offsetX+=r.horizontalPadding*2+r.dividerWidth}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.fillText(r.fitTitleMeasure.string,r.offsetX,Math.floor(r.height/2)),r.offsetX+=r.fitTitleMeasure.width+r.textPadding}drawValue(t,r,n){t.font=n.valueFont,t.fillStyle=n.valueColor||r.color,t.fillText(n.fitValueMeasure.string,n.offsetX,Math.floor(n.height/2)),n.offsetX+=n.fitValueMeasure.width}drawSecondary(t,r){t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.fillText(r.fitSecTitleMeasure.string,r.offsetX,Math.floor(r.height/2)),r.offsetX+=r.fitSecTitleMeasure.width+r.textPadding,t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.fillText(r.fitSecValueMeasure.string,r.offsetX,Math.floor(r.height/2))}}const Dh={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(0,206,230)",fontSizes:{big:66,medium:46,small:32,micro:23}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"rgb(255, 255, 255)",borderColor:"rgb(215, 215, 215)",borderWidth:1,relativeSizes:[{key:"titleSectionHeight",value:.5,decimals:0},{key:"titleSectionMarginTop",value:.13,decimals:0},{key:"titleSectionMinWidth",value:.29,decimals:0},{key:"numericMinWidth",value:4.69,decimals:0},{key:"valueSectionHeight",value:1,decimals:0},{key:"valueSectionMarginRight",value:.14,decimals:0},{key:"valueSectionMarginBottom",value:.07,decimals:0},{key:"secSectionHeight",value:.34,decimals:0},{key:"secSectionMarginTop",value:.14,decimals:0},{key:"secDividerWidth",value:.14,decimals:0},{key:"secTitleMinWidth",value:.29,decimals:0},{key:"indicatorHorizontalMargin",value:.31,decimals:0},{key:"indicatorVerticalMargin",value:.46,decimals:0}],measureKeys:["indicatorMargin","numericMinWidth","titleSectionHeight","secSectionHeight","valueSectionMarginBottom","secSectionMarginTop","indicatorHorizontalMargin","indicatorVerticalMargin"],sizes:[{size:"big",value:70},{size:"medium",value:49},{size:"small",value:34},{size:"micro",value:24}],fitMeasures:[{key:"fitTitleMeasure",prop:"string",dataKey:"title"},{key:"fitValueMeasure",prop:"string",dataKey:"value"},{key:"fitSecondaryMeasure",prop:"titleString",dataKey:"secondaryTitle"},{key:"fitSecondaryMeasure",prop:"valueString",dataKey:"secondary"}]},Zk={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(255, 255, 255)",fontSizes:{big:45,medium:31,small:22,micro:15}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"rgb(255, 255, 255)",bracketColor:"rgb(198, 198, 198)",bracketThickness:1,relativeSizes:[{key:"titleSectionHeight",value:1,decimals:0},{key:"titleHorizontalMargin",value:.16,decimals:0},{key:"numericMinWidth",value:4.69,decimals:0},{key:"valueSectionHeight",value:1,decimals:0},{key:"secSectionHeight",value:1,decimals:0},{key:"secBottomMargin",value:.14,decimals:0},{key:"secDividerWidth",value:.14,decimals:0},{key:"secTitleMinWidth",value:.29,decimals:0},{key:"bracketWidth",value:.21,decimals:0},{key:"indicatorMargin",value:.64,decimals:0}],measureKeys:["indicatorMargin","numericMinWidth","bracketWidth","titleSectionHeight","secSectionHeight"],sizes:[{size:"big",value:70,maxWidth:1261,maxHeight:665},{size:"medium",value:49},{size:"small",value:34},{size:"micro",value:24}]},Kk={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(255, 255, 255)",fontSizes:{big:45,medium:31,small:22,micro:15}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},label:{color:"rgb(68, 81, 102)",fontSizes:{big:18,medium:13,small:9,micro:9}},textKeys:["title","value","secondaryTitle","secondaryValue","label"],backgroundColor:"rgb(255, 255, 255)",tickColor:"rgb(0, 0, 0)",needleColor:"rgb(43, 51, 66)",bracketColor:"rgb(198, 198, 198)",defaultDialColor:"rgb(179, 179, 179)",gaugeOpacity:.5,startAngle:20,endAngle:160,overDegrees:5,tickDegreesIncrement:10,bracketThickness:1,relativeSizes:[{key:"titleSectionHeight",value:.26,decimals:0},{key:"titleHorizontalMargin",value:.08,decimals:0},{key:"titleBottomMargin",value:.1,decimals:0},{key:"gaugeWidth",value:1.33,decimals:0},{key:"gaugeBottomMargin",value:.19,decimals:0},{key:"outerArcRadius",value:.63,decimals:0},{key:"innerArcRadius",dataKey:"skin",values:{1:.24,2:.51},decimals:0},{key:"lengthToTick",value:.7,decimals:0},{key:"tickRadius",value:.01,decimals:1},{key:"needleLength",dataKey:"skin",values:{1:.52,2:.58},decimals:0},{key:"needleBaseRadius",value:.04,decimals:0},{key:"labelMargin",value:.26,decimals:0},{key:"valueSectionHeight",value:.36,decimals:0},{key:"secSectionHeight",value:.36,decimals:0},{key:"secBottomMargin",value:.05,decimals:0},{key:"secDividerWidth",value:.05,decimals:0},{key:"secTitleMinWidth",value:.1,decimals:0},{key:"bracketWidth",value:.08,decimals:0},{key:"indicatorMargin",value:.14,decimals:0}],gaugeHeights:[{size:"big",value:192,maxWidth:1297,maxHeight:1075},{size:"medium",value:134},{size:"small",value:94},{size:"micro",value:66}],measureKeys:["indicatorMargin","gaugeWidth","bracketWidth","titleSectionHeight","valueSectionHeight","secSectionHeight"]},Qk={fontFamily:"Open Sans",fontSize:15,title:{color:"rgb(68, 81, 102)"},value:{fontWeight:800},secondaryTitle:{color:"rgb(163, 163, 163)"},secondaryValue:{color:"rgb(163, 163, 163)"},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"transparent",dividerColor:"rgb(39, 42, 52)",barHandleColor:"rgb(43, 51, 66)",height:35,horizontalMargin:15,barWidth:100,barHeight:11,barOpacity:.5,tickerBarWidth:2,tickerBarHeight:13,horizontalPadding:9,textPadding:6,sectionMinWidth:20,dividerWidth:1,dividerHeight:13,forceTickerView:!1};function Jk(e,t){const r=N.cloneDeep(Qk);if(r.forceTickerView=t.forceTickerView,r.fontFamily=t.fontFamily,r.backgroundColor=t.backgroundColor,r.value.color=t.value.color,r.title.color=t.title.color,r.secondaryTitle.color=t.secondaryTitle.color,r.secondaryValue.color=t.secondaryTitle.color,t.tickerBarHeight){const n=t.tickerBarHeight;r.barHeight=n,r.tickerBarHeight=n+2}return r.forceTickerView&&(r.height=e.offsetHeight),r}const eN=new Fa,tN=new Bk,rN=new Uk,nN=new Yk,iN=new Xk;class aN{getService(t){switch(t){case"numericSimple":return tN;case"numericBar":return rN;case"gauge":return nN;case"ticker":return iN}}render(t,r,n,a){let o=this.getService(r.type);const l="getBaseMeasure"in o?o.getBaseMeasure(r,n,a):void 0;if(!l||n.forceTickerView){o=this.getService("ticker");const u=Jk(t,n);this.setTextOptions(u),o.render(t,r,u,a);return}this.calculateRelativeSizes(r,n,l.value),this.setTextOptions(n,l.size),o.render(t,r,n,l)}calculateRelativeSizes(t,r,n){const{relativeSizes:a}=r;a.forEach(function(o){let l;if("dataKey"in o&&"values"in o&&o.dataKey in t)l=o.values[t[o.dataKey]];else if("value"in o)l=o.value;else throw new Error("Invalid relative size options");const u=l*n;r[o.key]=eN.floor(u,o.decimals)})}setTextOptions(t,r){t.textKeys.forEach(function(n){const a=t[n],o=a.fontStyle?`${a.fontStyle} `:"",l=a.fontVariant?`${a.fontVariant} `:"",u=a.fontWeight?`${a.fontWeight} `:"",c=`${Number.parseFloat(a.fontSizes&&a.fontSizes[r]||a.fontSize||t.fontSize)}px `,f=a.fontFamily||t.fontFamily,{color:p}=a;t[`${n}Font`]=o+l+u+c+f,t[`${n}Color`]=p})}}function Pv(e){var r;const t=(r=e.value)==null?void 0:r[0];if(t&&"color"in t)return t.color}function oN(e,t,r){if(!sN(e))return r;const a=N.getColoringServiceByColorOptions(e).getColor(t);return a?he(ie({},r),{value:he(ie({},r.value),{color:a})}):r}function sN(e){return typeof e=="string"||e.type==="uniform"||e.type==="conditional"}const lN=(e,t)=>{const r=Pv(t);return r&&e.value?N.getColoringServiceByColorOptions(r).getColor(N.isNumber$1(e.value)?e.value:0):null},uN=(e,t,r)=>{var m,h,b,_,g,C,M,E,x,T,w,P;const n=N.isNumber$1(e.min)?e.min:0,a=N.isNumber$1(e.max)?e.max:100,o=So(r,"value"),l=So(r,"secondary"),u=So(r,"min"),c=So(r,"max"),f=lN(e,r),p=t.indicatorType==="gauge"?1:"vertical";return he(ie(ie({},dN),f?{color:f}:null),{type:cN(t.indicatorType,"numericSubtype"in t?t.numericSubtype:void 0)||"numericSimple",skin:t.skin||p,title:{text:(b=(h=(m=t.indicatorComponents)==null?void 0:m.title)==null?void 0:h.text)!=null?b:""},min:{data:n,text:N.applyFormatPlainText(u,n)},max:{data:a,text:N.applyFormatPlainText(c,a)},value:{data:e.value,text:Lh(e.value,o)},secondary:{data:e.secondary,text:Lh(e.secondary,l)},secondaryTitle:{text:(C=(g=(_=t.indicatorComponents)==null?void 0:_.secondaryTitle)==null?void 0:g.text)!=null?C:""},showSecondary:e.secondary!==void 0,showTitle:!!((E=(M=t.indicatorComponents)==null?void 0:M.title)!=null&&E.shouldBeShown),showLabels:!!((T=(x=t.indicatorComponents)==null?void 0:x.labels)!=null&&T.shouldBeShown),showTicks:!!((P=(w=t.indicatorComponents)==null?void 0:w.ticks)!=null&&P.shouldBeShown)})};function cN(e,t){return e==="numeric"?t:e}function So(e,t){var n;const r=(n=e[t])==null?void 0:n[0];return N.getCompleteNumberFormatConfig(r&&"numberFormatConfig"in r?r.numberFormatConfig:{})}const dN={color:"#00cee6",showSecondary:!1};function Lh(e,t){return e===void 0?"":isNaN(e)?"#N/A":N.applyFormatPlainText(t,e)}function fN(e,t,r){const n=N.cloneDeep(r);for(const a in t){const o=t[a],l=hN(e,o);l&&Rv(n,a,l)}return n}function Rv(e,t,r){const n=t.split(".");if(n.length===1)if(n[0]in e)e[n[0]]=r;else return;else{const[a,...o]=n;if(!(a in e))return;const l=e[a];if(!Ov(l))return;Rv(l,o.join("."),r)}}function hN(e,t){const r=t.split(".");let n=e;for(const a of r){if(!Ov(n)||!(a in n))return;n=n[a]}return n}function Ov(e){return typeof e=="object"&&e!==null}function pN(e,t,r){return fN(e,t,r)}const mN={fontFamily:"typography.fontFamily","title.color":"chart.textColor",backgroundColor:"chart.backgroundColor","label.color":"chart.textColor","secondaryTitle.color":"chart.secondaryTextColor","secondaryValue.color":"chart.secondaryTextColor","value.color":"palette.variantColors.0"},vN=(e,t)=>{const{chartData:r,dataOptions:n,themeSettings:a}=t,{type:o}=e;let l;switch(o){case"gauge":l=Kk;break;case"numeric":e.numericSubtype==="numericBar"?l=Zk:l=Dh;break;default:l=Dh}a&&(l=pN(a,mN,l));const u=Pv(n);return u&&r.value&&N.isNumber$1(r.value)&&(l=oN(u,r.value,l)),ie(he(ie({},l),{forceTickerView:e.forceTickerView}),e.type==="gauge"&&e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null)};var gN=N._baseIsEqual;function yN(e,t){return gN(e,t)}var bN=yN;const qc=N.getDefaultExportFromCjs(bN);function kv(e){return typeof e=="string"}function _N(e){var c;const t=Gt().themeSettings,[r,n]=Q.useState(bs()),[a,o]=Q.useState(null),l=(c=bt().app)==null?void 0:c.httpClient;return Q.useEffect(()=>{e&&(kv(e)?l&&iv(e,l).then(n).catch(o):n(e))},[e,l]),a?[null,a]:qc(t,r)?[t,null]:[N.merge.withOptions({mergeArrays:!1},t,r),null]}const Gc=qn({componentName:"ThemeProvider",trackingConfig:{skip:e=>!!e.skipTracking,transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{const{theme:t,children:r}=e,[n,a]=_N(t);if(a)throw a;return V.jsx(V.Fragment,{children:n&&V.jsx(Hc.Provider,{value:{themeSettings:n},children:r})})}),wN=({chartData:e,dataOptions:t,designOptions:r})=>{var l;const n=Q.useRef(null),a=Q.useRef(null),{themeSettings:o}=Gt();return Q.useEffect(()=>{if(!a.current||!n.current)return;const u=new aN,c=uN(e,r,t),f=vN({type:r.indicatorType,numericSubtype:"numericSubtype"in r?r.numericSubtype:void 0,forceTickerView:r.forceTickerView,tickerBarHeight:r.tickerBarHeight},{chartData:e,dataOptions:t,themeSettings:o});u.render(a.current,c,f,n.current)},[e,t,r,o]),V.jsx("div",{ref:n,style:{display:"flex",justifyContent:"center",width:"100%",height:"100%",alignItems:"center",backgroundColor:(l=o==null?void 0:o.chart)==null?void 0:l.backgroundColor},"aria-label":"indicator-root",children:V.jsx("canvas",{ref:a})})},xN=e=>e.type==="indicator",CN=e=>"min"in e,TN=e=>"indicatorComponents"in e,EN=e=>!!e.chartData&&xN(e.chartData)&&CN(e.dataOptions)&&TN(e.designOptions);var Gu={exports:{}};/* @preserve
|
|
16
|
-
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
17
|
-
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
18
|
-
*/(function(e,t){(function(r,n){n(t)})(N.commonjsGlobal,function(r){var n="1.9.4";function a(i){var s,d,y,S;for(d=1,y=arguments.length;d<y;d++){S=arguments[d];for(s in S)i[s]=S[s]}return i}var o=Object.create||function(){function i(){}return function(s){return i.prototype=s,new i}}();function l(i,s){var d=Array.prototype.slice;if(i.bind)return i.bind.apply(i,d.call(arguments,1));var y=d.call(arguments,2);return function(){return i.apply(s,y.length?y.concat(d.call(arguments)):arguments)}}var u=0;function c(i){return"_leaflet_id"in i||(i._leaflet_id=++u),i._leaflet_id}function f(i,s,d){var y,S,W,Y;return Y=function(){y=!1,S&&(W.apply(d,S),S=!1)},W=function(){y?S=arguments:(i.apply(d,arguments),setTimeout(Y,s),y=!0)},W}function p(i,s,d){var y=s[1],S=s[0],W=y-S;return i===y&&d?i:((i-S)%W+W)%W+S}function m(){return!1}function h(i,s){if(s===!1)return i;var d=Math.pow(10,s===void 0?6:s);return Math.round(i*d)/d}function b(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function _(i){return b(i).split(/\s+/)}function g(i,s){Object.prototype.hasOwnProperty.call(i,"options")||(i.options=i.options?o(i.options):{});for(var d in s)i.options[d]=s[d];return i.options}function C(i,s,d){var y=[];for(var S in i)y.push(encodeURIComponent(d?S.toUpperCase():S)+"="+encodeURIComponent(i[S]));return(!s||s.indexOf("?")===-1?"?":"&")+y.join("&")}var M=/\{ *([\w_ -]+) *\}/g;function E(i,s){return i.replace(M,function(d,y){var S=s[y];if(S===void 0)throw new Error("No value provided for variable "+d);return typeof S=="function"&&(S=S(s)),S})}var x=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"};function T(i,s){for(var d=0;d<i.length;d++)if(i[d]===s)return d;return-1}var w="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function P(i){return window["webkit"+i]||window["moz"+i]||window["ms"+i]}var R=0;function D(i){var s=+new Date,d=Math.max(0,16-(s-R));return R=s+d,window.setTimeout(i,d)}var A=window.requestAnimationFrame||P("RequestAnimationFrame")||D,z=window.cancelAnimationFrame||P("CancelAnimationFrame")||P("CancelRequestAnimationFrame")||function(i){window.clearTimeout(i)};function k(i,s,d){if(d&&A===D)i.call(s);else return A.call(window,l(i,s))}function O(i){i&&z.call(window,i)}var F={__proto__:null,extend:a,create:o,bind:l,get lastId(){return u},stamp:c,throttle:f,wrapNum:p,falseFn:m,formatNum:h,trim:b,splitWords:_,setOptions:g,getParamString:C,template:E,isArray:x,indexOf:T,emptyImageUrl:w,requestFn:A,cancelFn:z,requestAnimFrame:k,cancelAnimFrame:O};function j(){}j.extend=function(i){var s=function(){g(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},d=s.__super__=this.prototype,y=o(d);y.constructor=s,s.prototype=y;for(var S in this)Object.prototype.hasOwnProperty.call(this,S)&&S!=="prototype"&&S!=="__super__"&&(s[S]=this[S]);return i.statics&&a(s,i.statics),i.includes&&(I(i.includes),a.apply(null,[y].concat(i.includes))),a(y,i),delete y.statics,delete y.includes,y.options&&(y.options=d.options?o(d.options):{},a(y.options,i.options)),y._initHooks=[],y.callInitHooks=function(){if(!this._initHooksCalled){d.callInitHooks&&d.callInitHooks.call(this),this._initHooksCalled=!0;for(var W=0,Y=y._initHooks.length;W<Y;W++)y._initHooks[W].call(this)}},s},j.include=function(i){var s=this.prototype.options;return a(this.prototype,i),i.options&&(this.prototype.options=s,this.mergeOptions(i.options)),this},j.mergeOptions=function(i){return a(this.prototype.options,i),this},j.addInitHook=function(i){var s=Array.prototype.slice.call(arguments,1),d=typeof i=="function"?i:function(){this[i].apply(this,s)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(d),this};function I(i){if(!(typeof L=="undefined"||!L||!L.Mixin)){i=x(i)?i:[i];for(var s=0;s<i.length;s++)i[s]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var B={on:function(i,s,d){if(typeof i=="object")for(var y in i)this._on(y,i[y],s);else{i=_(i);for(var S=0,W=i.length;S<W;S++)this._on(i[S],s,d)}return this},off:function(i,s,d){if(!arguments.length)delete this._events;else if(typeof i=="object")for(var y in i)this._off(y,i[y],s);else{i=_(i);for(var S=arguments.length===1,W=0,Y=i.length;W<Y;W++)S?this._off(i[W]):this._off(i[W],s,d)}return this},_on:function(i,s,d,y){if(typeof s!="function"){console.warn("wrong listener type: "+typeof s);return}if(this._listens(i,s,d)===!1){d===this&&(d=void 0);var S={fn:s,ctx:d};y&&(S.once=!0),this._events=this._events||{},this._events[i]=this._events[i]||[],this._events[i].push(S)}},_off:function(i,s,d){var y,S,W;if(this._events&&(y=this._events[i],!!y)){if(arguments.length===1){if(this._firingCount)for(S=0,W=y.length;S<W;S++)y[S].fn=m;delete this._events[i];return}if(typeof s!="function"){console.warn("wrong listener type: "+typeof s);return}var Y=this._listens(i,s,d);if(Y!==!1){var re=y[Y];this._firingCount&&(re.fn=m,this._events[i]=y=y.slice()),y.splice(Y,1)}}},fire:function(i,s,d){if(!this.listens(i,d))return this;var y=a({},s,{type:i,target:this,sourceTarget:s&&s.sourceTarget||this});if(this._events){var S=this._events[i];if(S){this._firingCount=this._firingCount+1||1;for(var W=0,Y=S.length;W<Y;W++){var re=S[W],ae=re.fn;re.once&&this.off(i,ae,re.ctx),ae.call(re.ctx||this,y)}this._firingCount--}}return d&&this._propagateEvent(y),this},listens:function(i,s,d,y){typeof i!="string"&&console.warn('"string" type argument expected');var S=s;typeof s!="function"&&(y=!!s,S=void 0,d=void 0);var W=this._events&&this._events[i];if(W&&W.length&&this._listens(i,S,d)!==!1)return!0;if(y){for(var Y in this._eventParents)if(this._eventParents[Y].listens(i,s,d,y))return!0}return!1},_listens:function(i,s,d){if(!this._events)return!1;var y=this._events[i]||[];if(!s)return!!y.length;d===this&&(d=void 0);for(var S=0,W=y.length;S<W;S++)if(y[S].fn===s&&y[S].ctx===d)return S;return!1},once:function(i,s,d){if(typeof i=="object")for(var y in i)this._on(y,i[y],s,!0);else{i=_(i);for(var S=0,W=i.length;S<W;S++)this._on(i[S],s,d,!0)}return this},addEventParent:function(i){return this._eventParents=this._eventParents||{},this._eventParents[c(i)]=i,this},removeEventParent:function(i){return this._eventParents&&delete this._eventParents[c(i)],this},_propagateEvent:function(i){for(var s in this._eventParents)this._eventParents[s].fire(i.type,a({layer:i.target,propagatedFrom:i.target},i),!0)}};B.addEventListener=B.on,B.removeEventListener=B.clearAllEventListeners=B.off,B.addOneTimeEventListener=B.once,B.fireEvent=B.fire,B.hasEventListeners=B.listens;var U=j.extend(B);function q(i,s,d){this.x=d?Math.round(i):i,this.y=d?Math.round(s):s}var G=Math.trunc||function(i){return i>0?Math.floor(i):Math.ceil(i)};q.prototype={clone:function(){return new q(this.x,this.y)},add:function(i){return this.clone()._add($(i))},_add:function(i){return this.x+=i.x,this.y+=i.y,this},subtract:function(i){return this.clone()._subtract($(i))},_subtract:function(i){return this.x-=i.x,this.y-=i.y,this},divideBy:function(i){return this.clone()._divideBy(i)},_divideBy:function(i){return this.x/=i,this.y/=i,this},multiplyBy:function(i){return this.clone()._multiplyBy(i)},_multiplyBy:function(i){return this.x*=i,this.y*=i,this},scaleBy:function(i){return new q(this.x*i.x,this.y*i.y)},unscaleBy:function(i){return new q(this.x/i.x,this.y/i.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=G(this.x),this.y=G(this.y),this},distanceTo:function(i){i=$(i);var s=i.x-this.x,d=i.y-this.y;return Math.sqrt(s*s+d*d)},equals:function(i){return i=$(i),i.x===this.x&&i.y===this.y},contains:function(i){return i=$(i),Math.abs(i.x)<=Math.abs(this.x)&&Math.abs(i.y)<=Math.abs(this.y)},toString:function(){return"Point("+h(this.x)+", "+h(this.y)+")"}};function $(i,s,d){return i instanceof q?i:x(i)?new q(i[0],i[1]):i==null?i:typeof i=="object"&&"x"in i&&"y"in i?new q(i.x,i.y):new q(i,s,d)}function H(i,s){if(i)for(var d=s?[i,s]:i,y=0,S=d.length;y<S;y++)this.extend(d[y])}H.prototype={extend:function(i){var s,d;if(!i)return this;if(i instanceof q||typeof i[0]=="number"||"x"in i)s=d=$(i);else if(i=ee(i),s=i.min,d=i.max,!s||!d)return this;return!this.min&&!this.max?(this.min=s.clone(),this.max=d.clone()):(this.min.x=Math.min(s.x,this.min.x),this.max.x=Math.max(d.x,this.max.x),this.min.y=Math.min(s.y,this.min.y),this.max.y=Math.max(d.y,this.max.y)),this},getCenter:function(i){return $((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,i)},getBottomLeft:function(){return $(this.min.x,this.max.y)},getTopRight:function(){return $(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(i){var s,d;return typeof i[0]=="number"||i instanceof q?i=$(i):i=ee(i),i instanceof H?(s=i.min,d=i.max):s=d=i,s.x>=this.min.x&&d.x<=this.max.x&&s.y>=this.min.y&&d.y<=this.max.y},intersects:function(i){i=ee(i);var s=this.min,d=this.max,y=i.min,S=i.max,W=S.x>=s.x&&y.x<=d.x,Y=S.y>=s.y&&y.y<=d.y;return W&&Y},overlaps:function(i){i=ee(i);var s=this.min,d=this.max,y=i.min,S=i.max,W=S.x>s.x&&y.x<d.x,Y=S.y>s.y&&y.y<d.y;return W&&Y},isValid:function(){return!!(this.min&&this.max)},pad:function(i){var s=this.min,d=this.max,y=Math.abs(s.x-d.x)*i,S=Math.abs(s.y-d.y)*i;return ee($(s.x-y,s.y-S),$(d.x+y,d.y+S))},equals:function(i){return i?(i=ee(i),this.min.equals(i.getTopLeft())&&this.max.equals(i.getBottomRight())):!1}};function ee(i,s){return!i||i instanceof H?i:new H(i,s)}function X(i,s){if(i)for(var d=s?[i,s]:i,y=0,S=d.length;y<S;y++)this.extend(d[y])}X.prototype={extend:function(i){var s=this._southWest,d=this._northEast,y,S;if(i instanceof J)y=i,S=i;else if(i instanceof X){if(y=i._southWest,S=i._northEast,!y||!S)return this}else return i?this.extend(ne(i)||K(i)):this;return!s&&!d?(this._southWest=new J(y.lat,y.lng),this._northEast=new J(S.lat,S.lng)):(s.lat=Math.min(y.lat,s.lat),s.lng=Math.min(y.lng,s.lng),d.lat=Math.max(S.lat,d.lat),d.lng=Math.max(S.lng,d.lng)),this},pad:function(i){var s=this._southWest,d=this._northEast,y=Math.abs(s.lat-d.lat)*i,S=Math.abs(s.lng-d.lng)*i;return new X(new J(s.lat-y,s.lng-S),new J(d.lat+y,d.lng+S))},getCenter:function(){return new J((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new J(this.getNorth(),this.getWest())},getSouthEast:function(){return new J(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(i){typeof i[0]=="number"||i instanceof J||"lat"in i?i=ne(i):i=K(i);var s=this._southWest,d=this._northEast,y,S;return i instanceof X?(y=i.getSouthWest(),S=i.getNorthEast()):y=S=i,y.lat>=s.lat&&S.lat<=d.lat&&y.lng>=s.lng&&S.lng<=d.lng},intersects:function(i){i=K(i);var s=this._southWest,d=this._northEast,y=i.getSouthWest(),S=i.getNorthEast(),W=S.lat>=s.lat&&y.lat<=d.lat,Y=S.lng>=s.lng&&y.lng<=d.lng;return W&&Y},overlaps:function(i){i=K(i);var s=this._southWest,d=this._northEast,y=i.getSouthWest(),S=i.getNorthEast(),W=S.lat>s.lat&&y.lat<d.lat,Y=S.lng>s.lng&&y.lng<d.lng;return W&&Y},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(i,s){return i?(i=K(i),this._southWest.equals(i.getSouthWest(),s)&&this._northEast.equals(i.getNorthEast(),s)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function K(i,s){return i instanceof X?i:new X(i,s)}function J(i,s,d){if(isNaN(i)||isNaN(s))throw new Error("Invalid LatLng object: ("+i+", "+s+")");this.lat=+i,this.lng=+s,d!==void 0&&(this.alt=+d)}J.prototype={equals:function(i,s){if(!i)return!1;i=ne(i);var d=Math.max(Math.abs(this.lat-i.lat),Math.abs(this.lng-i.lng));return d<=(s===void 0?1e-9:s)},toString:function(i){return"LatLng("+h(this.lat,i)+", "+h(this.lng,i)+")"},distanceTo:function(i){return se.distance(this,ne(i))},wrap:function(){return se.wrapLatLng(this)},toBounds:function(i){var s=180*i/40075017,d=s/Math.cos(Math.PI/180*this.lat);return K([this.lat-s,this.lng-d],[this.lat+s,this.lng+d])},clone:function(){return new J(this.lat,this.lng,this.alt)}};function ne(i,s,d){return i instanceof J?i:x(i)&&typeof i[0]!="object"?i.length===3?new J(i[0],i[1],i[2]):i.length===2?new J(i[0],i[1]):null:i==null?i:typeof i=="object"&&"lat"in i?new J(i.lat,"lng"in i?i.lng:i.lon,i.alt):s===void 0?null:new J(i,s,d)}var le={latLngToPoint:function(i,s){var d=this.projection.project(i),y=this.scale(s);return this.transformation._transform(d,y)},pointToLatLng:function(i,s){var d=this.scale(s),y=this.transformation.untransform(i,d);return this.projection.unproject(y)},project:function(i){return this.projection.project(i)},unproject:function(i){return this.projection.unproject(i)},scale:function(i){return 256*Math.pow(2,i)},zoom:function(i){return Math.log(i/256)/Math.LN2},getProjectedBounds:function(i){if(this.infinite)return null;var s=this.projection.bounds,d=this.scale(i),y=this.transformation.transform(s.min,d),S=this.transformation.transform(s.max,d);return new H(y,S)},infinite:!1,wrapLatLng:function(i){var s=this.wrapLng?p(i.lng,this.wrapLng,!0):i.lng,d=this.wrapLat?p(i.lat,this.wrapLat,!0):i.lat,y=i.alt;return new J(d,s,y)},wrapLatLngBounds:function(i){var s=i.getCenter(),d=this.wrapLatLng(s),y=s.lat-d.lat,S=s.lng-d.lng;if(y===0&&S===0)return i;var W=i.getSouthWest(),Y=i.getNorthEast(),re=new J(W.lat-y,W.lng-S),ae=new J(Y.lat-y,Y.lng-S);return new X(re,ae)}},se=a({},le,{wrapLng:[-180,180],R:6371e3,distance:function(i,s){var d=Math.PI/180,y=i.lat*d,S=s.lat*d,W=Math.sin((s.lat-i.lat)*d/2),Y=Math.sin((s.lng-i.lng)*d/2),re=W*W+Math.cos(y)*Math.cos(S)*Y*Y,ae=2*Math.atan2(Math.sqrt(re),Math.sqrt(1-re));return this.R*ae}}),ue=6378137,fe={R:ue,MAX_LATITUDE:85.0511287798,project:function(i){var s=Math.PI/180,d=this.MAX_LATITUDE,y=Math.max(Math.min(d,i.lat),-d),S=Math.sin(y*s);return new q(this.R*i.lng*s,this.R*Math.log((1+S)/(1-S))/2)},unproject:function(i){var s=180/Math.PI;return new J((2*Math.atan(Math.exp(i.y/this.R))-Math.PI/2)*s,i.x*s/this.R)},bounds:function(){var i=ue*Math.PI;return new H([-i,-i],[i,i])}()};function pe(i,s,d,y){if(x(i)){this._a=i[0],this._b=i[1],this._c=i[2],this._d=i[3];return}this._a=i,this._b=s,this._c=d,this._d=y}pe.prototype={transform:function(i,s){return this._transform(i.clone(),s)},_transform:function(i,s){return s=s||1,i.x=s*(this._a*i.x+this._b),i.y=s*(this._c*i.y+this._d),i},untransform:function(i,s){return s=s||1,new q((i.x/s-this._b)/this._a,(i.y/s-this._d)/this._c)}};function oe(i,s,d,y){return new pe(i,s,d,y)}var ve=a({},se,{code:"EPSG:3857",projection:fe,transformation:function(){var i=.5/(Math.PI*fe.R);return oe(i,.5,-i,.5)}()}),de=a({},ve,{code:"EPSG:900913"});function _e(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function we(i,s){var d="",y,S,W,Y,re,ae;for(y=0,W=i.length;y<W;y++){for(re=i[y],S=0,Y=re.length;S<Y;S++)ae=re[S],d+=(S?"L":"M")+ae.x+" "+ae.y;d+=s?ge.svg?"z":"x":""}return d||"M0 0"}var Ee=document.documentElement.style,Ce="ActiveXObject"in window,ct=Ce&&!document.addEventListener,Ve="msLaunchUri"in navigator&&!("documentMode"in document),tt=vt("webkit"),dt=vt("android"),Ie=vt("android 2")||vt("android 3"),Ue=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Et=dt&&vt("Google")&&Ue<537&&!("AudioNode"in window),ft=!!window.opera,Mt=!Ve&&vt("chrome"),dr=vt("gecko")&&!tt&&!ft&&!Ce,Te=!Mt&&vt("safari"),gt=vt("phantom"),xr="OTransition"in Ee,Yt=navigator.platform.indexOf("Win")===0,Cr=Ce&&"transition"in Ee,Qr="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Ie,fr="MozPerspective"in Ee,jr=!window.L_DISABLE_3D&&(Cr||Qr||fr)&&!xr&&!gt,Bt=typeof orientation!="undefined"||vt("mobile"),En=Bt&&tt,Br=Bt&&Qr,Jr=!window.PointerEvent&&window.MSPointerEvent,Mn=!!(window.PointerEvent||Jr),hr="ontouchstart"in window||!!window.TouchEvent,Sn=!window.L_NO_TOUCH&&(hr||Mn),Pn=Bt&&ft,en=Bt&&dr,Zn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Kn=function(){var i=!1;try{var s=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("testPassiveEventSupport",m,s),window.removeEventListener("testPassiveEventSupport",m,s)}catch(d){}return i}(),ji=function(){return!!document.createElement("canvas").getContext}(),Xt=!!(document.createElementNS&&_e("svg").createSVGRect),Qn=!!Xt&&function(){var i=document.createElement("div");return i.innerHTML="<svg/>",(i.firstChild&&i.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Hr=!Xt&&function(){try{var i=document.createElement("div");i.innerHTML='<v:shape adj="1"/>';var s=i.firstChild;return s.style.behavior="url(#default#VML)",s&&typeof s.adj=="object"}catch(d){return!1}}(),tn=navigator.platform.indexOf("Mac")===0,_t=navigator.platform.indexOf("Linux")===0;function vt(i){return navigator.userAgent.toLowerCase().indexOf(i)>=0}var ge={ie:Ce,ielt9:ct,edge:Ve,webkit:tt,android:dt,android23:Ie,androidStock:Et,opera:ft,chrome:Mt,gecko:dr,safari:Te,phantom:gt,opera12:xr,win:Yt,ie3d:Cr,webkit3d:Qr,gecko3d:fr,any3d:jr,mobile:Bt,mobileWebkit:En,mobileWebkit3d:Br,msPointer:Jr,pointer:Mn,touch:Sn,touchNative:hr,mobileOpera:Pn,mobileGecko:en,retina:Zn,passiveEvents:Kn,canvas:ji,svg:Xt,vml:Hr,inlineSvg:Qn,mac:tn,linux:_t},pr=ge.msPointer?"MSPointerDown":"pointerdown",rn=ge.msPointer?"MSPointerMove":"pointermove",Rn=ge.msPointer?"MSPointerUp":"pointerup",nn=ge.msPointer?"MSPointerCancel":"pointercancel",an={touchstart:pr,touchmove:rn,touchend:Rn,touchcancel:nn},on={touchstart:Ab,touchmove:ro,touchend:ro,touchcancel:ro},mr={},sn=!1;function Xs(i,s,d){return s==="touchstart"&&Lb(),on[s]?(d=on[s].bind(this,d),i.addEventListener(an[s],d,!1),d):(console.warn("wrong event specified:",s),m)}function Zs(i,s,d){if(!an[s]){console.warn("wrong event specified:",s);return}i.removeEventListener(an[s],d,!1)}function Pe(i){mr[i.pointerId]=i}function Rt(i){mr[i.pointerId]&&(mr[i.pointerId]=i)}function Yd(i){delete mr[i.pointerId]}function Lb(){sn||(document.addEventListener(pr,Pe,!0),document.addEventListener(rn,Rt,!0),document.addEventListener(Rn,Yd,!0),document.addEventListener(nn,Yd,!0),sn=!0)}function ro(i,s){if(s.pointerType!==(s.MSPOINTER_TYPE_MOUSE||"mouse")){s.touches=[];for(var d in mr)s.touches.push(mr[d]);s.changedTouches=[s],i(s)}}function Ab(i,s){s.MSPOINTER_TYPE_TOUCH&&s.pointerType===s.MSPOINTER_TYPE_TOUCH&&wt(s),ro(i,s)}function Ib(i){var s={},d,y;for(y in i)d=i[y],s[y]=d&&d.bind?d.bind(i):d;return i=s,s.type="dblclick",s.detail=2,s.isTrusted=!1,s._simulated=!0,s}var zb=200;function $b(i,s){i.addEventListener("dblclick",s);var d=0,y;function S(W){if(W.detail!==1){y=W.detail;return}if(!(W.pointerType==="mouse"||W.sourceCapabilities&&!W.sourceCapabilities.firesTouchEvents)){var Y=Jd(W);if(!(Y.some(function(ae){return ae instanceof HTMLLabelElement&&ae.attributes.for})&&!Y.some(function(ae){return ae instanceof HTMLInputElement||ae instanceof HTMLSelectElement}))){var re=Date.now();re-d<=zb?(y++,y===2&&s(Ib(W))):y=1,d=re}}}return i.addEventListener("click",S),{dblclick:s,simDblclick:S}}function Wb(i,s){i.removeEventListener("dblclick",s.dblclick),i.removeEventListener("click",s.simDblclick)}var Ks=ao(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Bi=ao(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Xd=Bi==="webkitTransition"||Bi==="OTransition"?Bi+"End":"transitionend";function Zd(i){return typeof i=="string"?document.getElementById(i):i}function Hi(i,s){var d=i.style[s]||i.currentStyle&&i.currentStyle[s];if((!d||d==="auto")&&document.defaultView){var y=document.defaultView.getComputedStyle(i,null);d=y?y[s]:null}return d==="auto"?null:d}function ze(i,s,d){var y=document.createElement(i);return y.className=s||"",d&&d.appendChild(y),y}function Ke(i){var s=i.parentNode;s&&s.removeChild(i)}function no(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function Jn(i){var s=i.parentNode;s&&s.lastChild!==i&&s.appendChild(i)}function ei(i){var s=i.parentNode;s&&s.firstChild!==i&&s.insertBefore(i,s.firstChild)}function Qs(i,s){if(i.classList!==void 0)return i.classList.contains(s);var d=io(i);return d.length>0&&new RegExp("(^|\\s)"+s+"(\\s|$)").test(d)}function Re(i,s){if(i.classList!==void 0)for(var d=_(s),y=0,S=d.length;y<S;y++)i.classList.add(d[y]);else if(!Qs(i,s)){var W=io(i);Js(i,(W?W+" ":"")+s)}}function ot(i,s){i.classList!==void 0?i.classList.remove(s):Js(i,b((" "+io(i)+" ").replace(" "+s+" "," ")))}function Js(i,s){i.className.baseVal===void 0?i.className=s:i.className.baseVal=s}function io(i){return i.correspondingElement&&(i=i.correspondingElement),i.className.baseVal===void 0?i.className:i.className.baseVal}function Zt(i,s){"opacity"in i.style?i.style.opacity=s:"filter"in i.style&&Fb(i,s)}function Fb(i,s){var d=!1,y="DXImageTransform.Microsoft.Alpha";try{d=i.filters.item(y)}catch(S){if(s===1)return}s=Math.round(s*100),d?(d.Enabled=s!==100,d.Opacity=s):i.style.filter+=" progid:"+y+"(opacity="+s+")"}function ao(i){for(var s=document.documentElement.style,d=0;d<i.length;d++)if(i[d]in s)return i[d];return!1}function On(i,s,d){var y=s||new q(0,0);i.style[Ks]=(ge.ie3d?"translate("+y.x+"px,"+y.y+"px)":"translate3d("+y.x+"px,"+y.y+"px,0)")+(d?" scale("+d+")":"")}function ht(i,s){i._leaflet_pos=s,ge.any3d?On(i,s):(i.style.left=s.x+"px",i.style.top=s.y+"px")}function kn(i){return i._leaflet_pos||new q(0,0)}var Vi,Ui,el;if("onselectstart"in document)Vi=function(){Se(window,"selectstart",wt)},Ui=function(){qe(window,"selectstart",wt)};else{var qi=ao(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Vi=function(){if(qi){var i=document.documentElement.style;el=i[qi],i[qi]="none"}},Ui=function(){qi&&(document.documentElement.style[qi]=el,el=void 0)}}function tl(){Se(window,"dragstart",wt)}function rl(){qe(window,"dragstart",wt)}var oo,nl;function il(i){for(;i.tabIndex===-1;)i=i.parentNode;i.style&&(so(),oo=i,nl=i.style.outlineStyle,i.style.outlineStyle="none",Se(window,"keydown",so))}function so(){oo&&(oo.style.outlineStyle=nl,oo=void 0,nl=void 0,qe(window,"keydown",so))}function Kd(i){do i=i.parentNode;while((!i.offsetWidth||!i.offsetHeight)&&i!==document.body);return i}function al(i){var s=i.getBoundingClientRect();return{x:s.width/i.offsetWidth||1,y:s.height/i.offsetHeight||1,boundingClientRect:s}}var jb={__proto__:null,TRANSFORM:Ks,TRANSITION:Bi,TRANSITION_END:Xd,get:Zd,getStyle:Hi,create:ze,remove:Ke,empty:no,toFront:Jn,toBack:ei,hasClass:Qs,addClass:Re,removeClass:ot,setClass:Js,getClass:io,setOpacity:Zt,testProp:ao,setTransform:On,setPosition:ht,getPosition:kn,get disableTextSelection(){return Vi},get enableTextSelection(){return Ui},disableImageDrag:tl,enableImageDrag:rl,preventOutline:il,restoreOutline:so,getSizedParentNode:Kd,getScale:al};function Se(i,s,d,y){if(s&&typeof s=="object")for(var S in s)sl(i,S,s[S],d);else{s=_(s);for(var W=0,Y=s.length;W<Y;W++)sl(i,s[W],d,y)}return this}var Tr="_leaflet_events";function qe(i,s,d,y){if(arguments.length===1)Qd(i),delete i[Tr];else if(s&&typeof s=="object")for(var S in s)ll(i,S,s[S],d);else if(s=_(s),arguments.length===2)Qd(i,function(re){return T(s,re)!==-1});else for(var W=0,Y=s.length;W<Y;W++)ll(i,s[W],d,y);return this}function Qd(i,s){for(var d in i[Tr]){var y=d.split(/\d/)[0];(!s||s(y))&&ll(i,y,null,null,d)}}var ol={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function sl(i,s,d,y){var S=s+c(d)+(y?"_"+c(y):"");if(i[Tr]&&i[Tr][S])return this;var W=function(re){return d.call(y||i,re||window.event)},Y=W;!ge.touchNative&&ge.pointer&&s.indexOf("touch")===0?W=Xs(i,s,W):ge.touch&&s==="dblclick"?W=$b(i,W):"addEventListener"in i?s==="touchstart"||s==="touchmove"||s==="wheel"||s==="mousewheel"?i.addEventListener(ol[s]||s,W,ge.passiveEvents?{passive:!1}:!1):s==="mouseenter"||s==="mouseleave"?(W=function(re){re=re||window.event,cl(i,re)&&Y(re)},i.addEventListener(ol[s],W,!1)):i.addEventListener(s,Y,!1):i.attachEvent("on"+s,W),i[Tr]=i[Tr]||{},i[Tr][S]=W}function ll(i,s,d,y,S){S=S||s+c(d)+(y?"_"+c(y):"");var W=i[Tr]&&i[Tr][S];if(!W)return this;!ge.touchNative&&ge.pointer&&s.indexOf("touch")===0?Zs(i,s,W):ge.touch&&s==="dblclick"?Wb(i,W):"removeEventListener"in i?i.removeEventListener(ol[s]||s,W,!1):i.detachEvent("on"+s,W),i[Tr][S]=null}function Nn(i){return i.stopPropagation?i.stopPropagation():i.originalEvent?i.originalEvent._stopped=!0:i.cancelBubble=!0,this}function ul(i){return sl(i,"wheel",Nn),this}function Gi(i){return Se(i,"mousedown touchstart dblclick contextmenu",Nn),i._leaflet_disable_click=!0,this}function wt(i){return i.preventDefault?i.preventDefault():i.returnValue=!1,this}function Dn(i){return wt(i),Nn(i),this}function Jd(i){if(i.composedPath)return i.composedPath();for(var s=[],d=i.target;d;)s.push(d),d=d.parentNode;return s}function ef(i,s){if(!s)return new q(i.clientX,i.clientY);var d=al(s),y=d.boundingClientRect;return new q((i.clientX-y.left)/d.x-s.clientLeft,(i.clientY-y.top)/d.y-s.clientTop)}var Bb=ge.linux&&ge.chrome?window.devicePixelRatio:ge.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function tf(i){return ge.edge?i.wheelDeltaY/2:i.deltaY&&i.deltaMode===0?-i.deltaY/Bb:i.deltaY&&i.deltaMode===1?-i.deltaY*20:i.deltaY&&i.deltaMode===2?-i.deltaY*60:i.deltaX||i.deltaZ?0:i.wheelDelta?(i.wheelDeltaY||i.wheelDelta)/2:i.detail&&Math.abs(i.detail)<32765?-i.detail*20:i.detail?i.detail/-32765*60:0}function cl(i,s){var d=s.relatedTarget;if(!d)return!0;try{for(;d&&d!==i;)d=d.parentNode}catch(y){return!1}return d!==i}var Hb={__proto__:null,on:Se,off:qe,stopPropagation:Nn,disableScrollPropagation:ul,disableClickPropagation:Gi,preventDefault:wt,stop:Dn,getPropagationPath:Jd,getMousePosition:ef,getWheelDelta:tf,isExternalTarget:cl,addListener:Se,removeListener:qe},rf=U.extend({run:function(i,s,d,y){this.stop(),this._el=i,this._inProgress=!0,this._duration=d||.25,this._easeOutPower=1/Math.max(y||.5,.2),this._startPos=kn(i),this._offset=s.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=k(this._animate,this),this._step()},_step:function(i){var s=+new Date-this._startTime,d=this._duration*1e3;s<d?this._runFrame(this._easeOut(s/d),i):(this._runFrame(1),this._complete())},_runFrame:function(i,s){var d=this._startPos.add(this._offset.multiplyBy(i));s&&d._round(),ht(this._el,d),this.fire("step")},_complete:function(){O(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(i){return 1-Math.pow(1-i,this._easeOutPower)}}),Ae=U.extend({options:{crs:ve,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(i,s){s=g(this,s),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(i),this._initLayout(),this._onResize=l(this._onResize,this),this._initEvents(),s.maxBounds&&this.setMaxBounds(s.maxBounds),s.zoom!==void 0&&(this._zoom=this._limitZoom(s.zoom)),s.center&&s.zoom!==void 0&&this.setView(ne(s.center),s.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Bi&&ge.any3d&&!ge.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Se(this._proxy,Xd,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(i,s,d){if(s=s===void 0?this._zoom:this._limitZoom(s),i=this._limitCenter(ne(i),s,this.options.maxBounds),d=d||{},this._stop(),this._loaded&&!d.reset&&d!==!0){d.animate!==void 0&&(d.zoom=a({animate:d.animate},d.zoom),d.pan=a({animate:d.animate,duration:d.duration},d.pan));var y=this._zoom!==s?this._tryAnimatedZoom&&this._tryAnimatedZoom(i,s,d.zoom):this._tryAnimatedPan(i,d.pan);if(y)return clearTimeout(this._sizeTimer),this}return this._resetView(i,s,d.pan&&d.pan.noMoveStart),this},setZoom:function(i,s){return this._loaded?this.setView(this.getCenter(),i,{zoom:s}):(this._zoom=i,this)},zoomIn:function(i,s){return i=i||(ge.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+i,s)},zoomOut:function(i,s){return i=i||(ge.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-i,s)},setZoomAround:function(i,s,d){var y=this.getZoomScale(s),S=this.getSize().divideBy(2),W=i instanceof q?i:this.latLngToContainerPoint(i),Y=W.subtract(S).multiplyBy(1-1/y),re=this.containerPointToLatLng(S.add(Y));return this.setView(re,s,{zoom:d})},_getBoundsCenterZoom:function(i,s){s=s||{},i=i.getBounds?i.getBounds():K(i);var d=$(s.paddingTopLeft||s.padding||[0,0]),y=$(s.paddingBottomRight||s.padding||[0,0]),S=this.getBoundsZoom(i,!1,d.add(y));if(S=typeof s.maxZoom=="number"?Math.min(s.maxZoom,S):S,S===1/0)return{center:i.getCenter(),zoom:S};var W=y.subtract(d).divideBy(2),Y=this.project(i.getSouthWest(),S),re=this.project(i.getNorthEast(),S),ae=this.unproject(Y.add(re).divideBy(2).add(W),S);return{center:ae,zoom:S}},fitBounds:function(i,s){if(i=K(i),!i.isValid())throw new Error("Bounds are not valid.");var d=this._getBoundsCenterZoom(i,s);return this.setView(d.center,d.zoom,s)},fitWorld:function(i){return this.fitBounds([[-90,-180],[90,180]],i)},panTo:function(i,s){return this.setView(i,this._zoom,{pan:s})},panBy:function(i,s){if(i=$(i).round(),s=s||{},!i.x&&!i.y)return this.fire("moveend");if(s.animate!==!0&&!this.getSize().contains(i))return this._resetView(this.unproject(this.project(this.getCenter()).add(i)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new rf,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),s.noMoveStart||this.fire("movestart"),s.animate!==!1){Re(this._mapPane,"leaflet-pan-anim");var d=this._getMapPanePos().subtract(i).round();this._panAnim.run(this._mapPane,d,s.duration||.25,s.easeLinearity)}else this._rawPanBy(i),this.fire("move").fire("moveend");return this},flyTo:function(i,s,d){if(d=d||{},d.animate===!1||!ge.any3d)return this.setView(i,s,d);this._stop();var y=this.project(this.getCenter()),S=this.project(i),W=this.getSize(),Y=this._zoom;i=ne(i),s=s===void 0?Y:s;var re=Math.max(W.x,W.y),ae=re*this.getZoomScale(Y,s),ce=S.distanceTo(y)||1,me=1.42,xe=me*me;function Ne(pt){var _o=pt?-1:1,k_=pt?ae:re,N_=ae*ae-re*re+_o*xe*xe*ce*ce,D_=2*k_*xe*ce,wl=N_/D_,zf=Math.sqrt(wl*wl+1)-wl,L_=zf<1e-9?-18:Math.log(zf);return L_}function Ot(pt){return(Math.exp(pt)-Math.exp(-pt))/2}function yt(pt){return(Math.exp(pt)+Math.exp(-pt))/2}function Qt(pt){return Ot(pt)/yt(pt)}var zt=Ne(0);function oi(pt){return re*(yt(zt)/yt(zt+me*pt))}function S_(pt){return re*(yt(zt)*Qt(zt+me*pt)-Ot(zt))/xe}function P_(pt){return 1-Math.pow(1-pt,1.5)}var R_=Date.now(),Af=(Ne(1)-zt)/me,O_=d.duration?1e3*d.duration:1e3*Af*.8;function If(){var pt=(Date.now()-R_)/O_,_o=P_(pt)*Af;pt<=1?(this._flyToFrame=k(If,this),this._move(this.unproject(y.add(S.subtract(y).multiplyBy(S_(_o)/ce)),Y),this.getScaleZoom(re/oi(_o),Y),{flyTo:!0})):this._move(i,s)._moveEnd(!0)}return this._moveStart(!0,d.noMoveStart),If.call(this),this},flyToBounds:function(i,s){var d=this._getBoundsCenterZoom(i,s);return this.flyTo(d.center,d.zoom,s)},setMaxBounds:function(i){return i=K(i),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),i.isValid()?(this.options.maxBounds=i,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(i){var s=this.options.minZoom;return this.options.minZoom=i,this._loaded&&s!==i&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(i):this},setMaxZoom:function(i){var s=this.options.maxZoom;return this.options.maxZoom=i,this._loaded&&s!==i&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(i):this},panInsideBounds:function(i,s){this._enforcingBounds=!0;var d=this.getCenter(),y=this._limitCenter(d,this._zoom,K(i));return d.equals(y)||this.panTo(y,s),this._enforcingBounds=!1,this},panInside:function(i,s){s=s||{};var d=$(s.paddingTopLeft||s.padding||[0,0]),y=$(s.paddingBottomRight||s.padding||[0,0]),S=this.project(this.getCenter()),W=this.project(i),Y=this.getPixelBounds(),re=ee([Y.min.add(d),Y.max.subtract(y)]),ae=re.getSize();if(!re.contains(W)){this._enforcingBounds=!0;var ce=W.subtract(re.getCenter()),me=re.extend(W).getSize().subtract(ae);S.x+=ce.x<0?-me.x:me.x,S.y+=ce.y<0?-me.y:me.y,this.panTo(this.unproject(S),s),this._enforcingBounds=!1}return this},invalidateSize:function(i){if(!this._loaded)return this;i=a({animate:!1,pan:!0},i===!0?{animate:!0}:i);var s=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var d=this.getSize(),y=s.divideBy(2).round(),S=d.divideBy(2).round(),W=y.subtract(S);return!W.x&&!W.y?this:(i.animate&&i.pan?this.panBy(W):(i.pan&&this._rawPanBy(W),this.fire("move"),i.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(l(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:s,newSize:d}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(i){if(i=this._locateOptions=a({timeout:1e4,watch:!1},i),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var s=l(this._handleGeolocationResponse,this),d=l(this._handleGeolocationError,this);return i.watch?this._locationWatchId=navigator.geolocation.watchPosition(s,d,i):navigator.geolocation.getCurrentPosition(s,d,i),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(i){if(this._container._leaflet_id){var s=i.code,d=i.message||(s===1?"permission denied":s===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:s,message:"Geolocation error: "+d+"."})}},_handleGeolocationResponse:function(i){if(this._container._leaflet_id){var s=i.coords.latitude,d=i.coords.longitude,y=new J(s,d),S=y.toBounds(i.coords.accuracy*2),W=this._locateOptions;if(W.setView){var Y=this.getBoundsZoom(S);this.setView(y,W.maxZoom?Math.min(Y,W.maxZoom):Y)}var re={latlng:y,bounds:S,timestamp:i.timestamp};for(var ae in i.coords)typeof i.coords[ae]=="number"&&(re[ae]=i.coords[ae]);this.fire("locationfound",re)}},addHandler:function(i,s){if(!s)return this;var d=this[i]=new s(this);return this._handlers.push(d),this.options[i]&&d.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(s){this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Ke(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(O(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var i;for(i in this._layers)this._layers[i].remove();for(i in this._panes)Ke(this._panes[i]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(i,s){var d="leaflet-pane"+(i?" leaflet-"+i.replace("Pane","")+"-pane":""),y=ze("div",d,s||this._mapPane);return i&&(this._panes[i]=y),y},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var i=this.getPixelBounds(),s=this.unproject(i.getBottomLeft()),d=this.unproject(i.getTopRight());return new X(s,d)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(i,s,d){i=K(i),d=$(d||[0,0]);var y=this.getZoom()||0,S=this.getMinZoom(),W=this.getMaxZoom(),Y=i.getNorthWest(),re=i.getSouthEast(),ae=this.getSize().subtract(d),ce=ee(this.project(re,y),this.project(Y,y)).getSize(),me=ge.any3d?this.options.zoomSnap:1,xe=ae.x/ce.x,Ne=ae.y/ce.y,Ot=s?Math.max(xe,Ne):Math.min(xe,Ne);return y=this.getScaleZoom(Ot,y),me&&(y=Math.round(y/(me/100))*(me/100),y=s?Math.ceil(y/me)*me:Math.floor(y/me)*me),Math.max(S,Math.min(W,y))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new q(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(i,s){var d=this._getTopLeftPoint(i,s);return new H(d,d.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(i){return this.options.crs.getProjectedBounds(i===void 0?this.getZoom():i)},getPane:function(i){return typeof i=="string"?this._panes[i]:i},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(i,s){var d=this.options.crs;return s=s===void 0?this._zoom:s,d.scale(i)/d.scale(s)},getScaleZoom:function(i,s){var d=this.options.crs;s=s===void 0?this._zoom:s;var y=d.zoom(i*d.scale(s));return isNaN(y)?1/0:y},project:function(i,s){return s=s===void 0?this._zoom:s,this.options.crs.latLngToPoint(ne(i),s)},unproject:function(i,s){return s=s===void 0?this._zoom:s,this.options.crs.pointToLatLng($(i),s)},layerPointToLatLng:function(i){var s=$(i).add(this.getPixelOrigin());return this.unproject(s)},latLngToLayerPoint:function(i){var s=this.project(ne(i))._round();return s._subtract(this.getPixelOrigin())},wrapLatLng:function(i){return this.options.crs.wrapLatLng(ne(i))},wrapLatLngBounds:function(i){return this.options.crs.wrapLatLngBounds(K(i))},distance:function(i,s){return this.options.crs.distance(ne(i),ne(s))},containerPointToLayerPoint:function(i){return $(i).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(i){return $(i).add(this._getMapPanePos())},containerPointToLatLng:function(i){var s=this.containerPointToLayerPoint($(i));return this.layerPointToLatLng(s)},latLngToContainerPoint:function(i){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ne(i)))},mouseEventToContainerPoint:function(i){return ef(i,this._container)},mouseEventToLayerPoint:function(i){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(i))},mouseEventToLatLng:function(i){return this.layerPointToLatLng(this.mouseEventToLayerPoint(i))},_initContainer:function(i){var s=this._container=Zd(i);if(s){if(s._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Se(s,"scroll",this._onScroll,this),this._containerId=c(s)},_initLayout:function(){var i=this._container;this._fadeAnimated=this.options.fadeAnimation&&ge.any3d,Re(i,"leaflet-container"+(ge.touch?" leaflet-touch":"")+(ge.retina?" leaflet-retina":"")+(ge.ielt9?" leaflet-oldie":"")+(ge.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var s=Hi(i,"position");s!=="absolute"&&s!=="relative"&&s!=="fixed"&&s!=="sticky"&&(i.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var i=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ht(this._mapPane,new q(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Re(i.markerPane,"leaflet-zoom-hide"),Re(i.shadowPane,"leaflet-zoom-hide"))},_resetView:function(i,s,d){ht(this._mapPane,new q(0,0));var y=!this._loaded;this._loaded=!0,s=this._limitZoom(s),this.fire("viewprereset");var S=this._zoom!==s;this._moveStart(S,d)._move(i,s)._moveEnd(S),this.fire("viewreset"),y&&this.fire("load")},_moveStart:function(i,s){return i&&this.fire("zoomstart"),s||this.fire("movestart"),this},_move:function(i,s,d,y){s===void 0&&(s=this._zoom);var S=this._zoom!==s;return this._zoom=s,this._lastCenter=i,this._pixelOrigin=this._getNewPixelOrigin(i),y?d&&d.pinch&&this.fire("zoom",d):((S||d&&d.pinch)&&this.fire("zoom",d),this.fire("move",d)),this},_moveEnd:function(i){return i&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return O(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(i){ht(this._mapPane,this._getMapPanePos().subtract(i))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(i){this._targets={},this._targets[c(this._container)]=this;var s=i?qe:Se;s(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&s(window,"resize",this._onResize,this),ge.any3d&&this.options.transform3DLimit&&(i?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){O(this._resizeRequest),this._resizeRequest=k(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var i=this._getMapPanePos();Math.max(Math.abs(i.x),Math.abs(i.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(i,s){for(var d=[],y,S=s==="mouseout"||s==="mouseover",W=i.target||i.srcElement,Y=!1;W;){if(y=this._targets[c(W)],y&&(s==="click"||s==="preclick")&&this._draggableMoved(y)){Y=!0;break}if(y&&y.listens(s,!0)&&(S&&!cl(W,i)||(d.push(y),S))||W===this._container)break;W=W.parentNode}return!d.length&&!Y&&!S&&this.listens(s,!0)&&(d=[this]),d},_isClickDisabled:function(i){for(;i&&i!==this._container;){if(i._leaflet_disable_click)return!0;i=i.parentNode}},_handleDOMEvent:function(i){var s=i.target||i.srcElement;if(!(!this._loaded||s._leaflet_disable_events||i.type==="click"&&this._isClickDisabled(s))){var d=i.type;d==="mousedown"&&il(s),this._fireDOMEvent(i,d)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(i,s,d){if(i.type==="click"){var y=a({},i);y.type="preclick",this._fireDOMEvent(y,y.type,d)}var S=this._findEventTargets(i,s);if(d){for(var W=[],Y=0;Y<d.length;Y++)d[Y].listens(s,!0)&&W.push(d[Y]);S=W.concat(S)}if(S.length){s==="contextmenu"&&wt(i);var re=S[0],ae={originalEvent:i};if(i.type!=="keypress"&&i.type!=="keydown"&&i.type!=="keyup"){var ce=re.getLatLng&&(!re._radius||re._radius<=10);ae.containerPoint=ce?this.latLngToContainerPoint(re.getLatLng()):this.mouseEventToContainerPoint(i),ae.layerPoint=this.containerPointToLayerPoint(ae.containerPoint),ae.latlng=ce?re.getLatLng():this.layerPointToLatLng(ae.layerPoint)}for(Y=0;Y<S.length;Y++)if(S[Y].fire(s,ae,!0),ae.originalEvent._stopped||S[Y].options.bubblingMouseEvents===!1&&T(this._mouseEvents,s)!==-1)return}},_draggableMoved:function(i){return i=i.dragging&&i.dragging.enabled()?i:this,i.dragging&&i.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var i=0,s=this._handlers.length;i<s;i++)this._handlers[i].disable()},whenReady:function(i,s){return this._loaded?i.call(s||this,{target:this}):this.on("load",i,s),this},_getMapPanePos:function(){return kn(this._mapPane)||new q(0,0)},_moved:function(){var i=this._getMapPanePos();return i&&!i.equals([0,0])},_getTopLeftPoint:function(i,s){var d=i&&s!==void 0?this._getNewPixelOrigin(i,s):this.getPixelOrigin();return d.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(i,s){var d=this.getSize()._divideBy(2);return this.project(i,s)._subtract(d)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(i,s,d){var y=this._getNewPixelOrigin(d,s);return this.project(i,s)._subtract(y)},_latLngBoundsToNewLayerBounds:function(i,s,d){var y=this._getNewPixelOrigin(d,s);return ee([this.project(i.getSouthWest(),s)._subtract(y),this.project(i.getNorthWest(),s)._subtract(y),this.project(i.getSouthEast(),s)._subtract(y),this.project(i.getNorthEast(),s)._subtract(y)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(i){return this.latLngToLayerPoint(i).subtract(this._getCenterLayerPoint())},_limitCenter:function(i,s,d){if(!d)return i;var y=this.project(i,s),S=this.getSize().divideBy(2),W=new H(y.subtract(S),y.add(S)),Y=this._getBoundsOffset(W,d,s);return Math.abs(Y.x)<=1&&Math.abs(Y.y)<=1?i:this.unproject(y.add(Y),s)},_limitOffset:function(i,s){if(!s)return i;var d=this.getPixelBounds(),y=new H(d.min.add(i),d.max.add(i));return i.add(this._getBoundsOffset(y,s))},_getBoundsOffset:function(i,s,d){var y=ee(this.project(s.getNorthEast(),d),this.project(s.getSouthWest(),d)),S=y.min.subtract(i.min),W=y.max.subtract(i.max),Y=this._rebound(S.x,-W.x),re=this._rebound(S.y,-W.y);return new q(Y,re)},_rebound:function(i,s){return i+s>0?Math.round(i-s)/2:Math.max(0,Math.ceil(i))-Math.max(0,Math.floor(s))},_limitZoom:function(i){var s=this.getMinZoom(),d=this.getMaxZoom(),y=ge.any3d?this.options.zoomSnap:1;return y&&(i=Math.round(i/y)*y),Math.max(s,Math.min(d,i))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ot(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(i,s){var d=this._getCenterOffset(i)._trunc();return(s&&s.animate)!==!0&&!this.getSize().contains(d)?!1:(this.panBy(d,s),!0)},_createAnimProxy:function(){var i=this._proxy=ze("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(i),this.on("zoomanim",function(s){var d=Ks,y=this._proxy.style[d];On(this._proxy,this.project(s.center,s.zoom),this.getZoomScale(s.zoom,1)),y===this._proxy.style[d]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ke(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var i=this.getCenter(),s=this.getZoom();On(this._proxy,this.project(i,s),this.getZoomScale(s,1))},_catchTransitionEnd:function(i){this._animatingZoom&&i.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(i,s,d){if(this._animatingZoom)return!0;if(d=d||{},!this._zoomAnimated||d.animate===!1||this._nothingToAnimate()||Math.abs(s-this._zoom)>this.options.zoomAnimationThreshold)return!1;var y=this.getZoomScale(s),S=this._getCenterOffset(i)._divideBy(1-1/y);return d.animate!==!0&&!this.getSize().contains(S)?!1:(k(function(){this._moveStart(!0,d.noMoveStart||!1)._animateZoom(i,s,!0)},this),!0)},_animateZoom:function(i,s,d,y){this._mapPane&&(d&&(this._animatingZoom=!0,this._animateToCenter=i,this._animateToZoom=s,Re(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:i,zoom:s,noUpdate:y}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(l(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ot(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Vb(i,s){return new Ae(i,s)}var vr=j.extend({options:{position:"topright"},initialize:function(i){g(this,i)},getPosition:function(){return this.options.position},setPosition:function(i){var s=this._map;return s&&s.removeControl(this),this.options.position=i,s&&s.addControl(this),this},getContainer:function(){return this._container},addTo:function(i){this.remove(),this._map=i;var s=this._container=this.onAdd(i),d=this.getPosition(),y=i._controlCorners[d];return Re(s,"leaflet-control"),d.indexOf("bottom")!==-1?y.insertBefore(s,y.firstChild):y.appendChild(s),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ke(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(i){this._map&&i&&i.screenX>0&&i.screenY>0&&this._map.getContainer().focus()}}),Yi=function(i){return new vr(i)};Ae.include({addControl:function(i){return i.addTo(this),this},removeControl:function(i){return i.remove(),this},_initControlPos:function(){var i=this._controlCorners={},s="leaflet-",d=this._controlContainer=ze("div",s+"control-container",this._container);function y(S,W){var Y=s+S+" "+s+W;i[S+W]=ze("div",Y,d)}y("top","left"),y("top","right"),y("bottom","left"),y("bottom","right")},_clearControlPos:function(){for(var i in this._controlCorners)Ke(this._controlCorners[i]);Ke(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var nf=vr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(i,s,d,y){return d<y?-1:y<d?1:0}},initialize:function(i,s,d){g(this,d),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var y in i)this._addLayer(i[y],y);for(y in s)this._addLayer(s[y],y,!0)},onAdd:function(i){this._initLayout(),this._update(),this._map=i,i.on("zoomend",this._checkDisabledLayers,this);for(var s=0;s<this._layers.length;s++)this._layers[s].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(i){return vr.prototype.addTo.call(this,i),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(i,s){return this._addLayer(i,s),this._map?this._update():this},addOverlay:function(i,s){return this._addLayer(i,s,!0),this._map?this._update():this},removeLayer:function(i){i.off("add remove",this._onLayerChange,this);var s=this._getLayer(c(i));return s&&this._layers.splice(this._layers.indexOf(s),1),this._map?this._update():this},expand:function(){Re(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var i=this._map.getSize().y-(this._container.offsetTop+50);return i<this._section.clientHeight?(Re(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=i+"px"):ot(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ot(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var i="leaflet-control-layers",s=this._container=ze("div",i),d=this.options.collapsed;s.setAttribute("aria-haspopup",!0),Gi(s),ul(s);var y=this._section=ze("section",i+"-list");d&&(this._map.on("click",this.collapse,this),Se(s,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var S=this._layersLink=ze("a",i+"-toggle",s);S.href="#",S.title="Layers",S.setAttribute("role","button"),Se(S,{keydown:function(W){W.keyCode===13&&this._expandSafely()},click:function(W){wt(W),this._expandSafely()}},this),d||this.expand(),this._baseLayersList=ze("div",i+"-base",y),this._separator=ze("div",i+"-separator",y),this._overlaysList=ze("div",i+"-overlays",y),s.appendChild(y)},_getLayer:function(i){for(var s=0;s<this._layers.length;s++)if(this._layers[s]&&c(this._layers[s].layer)===i)return this._layers[s]},_addLayer:function(i,s,d){this._map&&i.on("add remove",this._onLayerChange,this),this._layers.push({layer:i,name:s,overlay:d}),this.options.sortLayers&&this._layers.sort(l(function(y,S){return this.options.sortFunction(y.layer,S.layer,y.name,S.name)},this)),this.options.autoZIndex&&i.setZIndex&&(this._lastZIndex++,i.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;no(this._baseLayersList),no(this._overlaysList),this._layerControlInputs=[];var i,s,d,y,S=0;for(d=0;d<this._layers.length;d++)y=this._layers[d],this._addItem(y),s=s||y.overlay,i=i||!y.overlay,S+=y.overlay?0:1;return this.options.hideSingleBase&&(i=i&&S>1,this._baseLayersList.style.display=i?"":"none"),this._separator.style.display=s&&i?"":"none",this},_onLayerChange:function(i){this._handlingClick||this._update();var s=this._getLayer(c(i.target)),d=s.overlay?i.type==="add"?"overlayadd":"overlayremove":i.type==="add"?"baselayerchange":null;d&&this._map.fire(d,s)},_createRadioElement:function(i,s){var d='<input type="radio" class="leaflet-control-layers-selector" name="'+i+'"'+(s?' checked="checked"':"")+"/>",y=document.createElement("div");return y.innerHTML=d,y.firstChild},_addItem:function(i){var s=document.createElement("label"),d=this._map.hasLayer(i.layer),y;i.overlay?(y=document.createElement("input"),y.type="checkbox",y.className="leaflet-control-layers-selector",y.defaultChecked=d):y=this._createRadioElement("leaflet-base-layers_"+c(this),d),this._layerControlInputs.push(y),y.layerId=c(i.layer),Se(y,"click",this._onInputClick,this);var S=document.createElement("span");S.innerHTML=" "+i.name;var W=document.createElement("span");s.appendChild(W),W.appendChild(y),W.appendChild(S);var Y=i.overlay?this._overlaysList:this._baseLayersList;return Y.appendChild(s),this._checkDisabledLayers(),s},_onInputClick:function(){if(!this._preventClick){var i=this._layerControlInputs,s,d,y=[],S=[];this._handlingClick=!0;for(var W=i.length-1;W>=0;W--)s=i[W],d=this._getLayer(s.layerId).layer,s.checked?y.push(d):s.checked||S.push(d);for(W=0;W<S.length;W++)this._map.hasLayer(S[W])&&this._map.removeLayer(S[W]);for(W=0;W<y.length;W++)this._map.hasLayer(y[W])||this._map.addLayer(y[W]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var i=this._layerControlInputs,s,d,y=this._map.getZoom(),S=i.length-1;S>=0;S--)s=i[S],d=this._getLayer(s.layerId).layer,s.disabled=d.options.minZoom!==void 0&&y<d.options.minZoom||d.options.maxZoom!==void 0&&y>d.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var i=this._section;this._preventClick=!0,Se(i,"click",wt),this.expand();var s=this;setTimeout(function(){qe(i,"click",wt),s._preventClick=!1})}}),Ub=function(i,s,d){return new nf(i,s,d)},dl=vr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(i){var s="leaflet-control-zoom",d=ze("div",s+" leaflet-bar"),y=this.options;return this._zoomInButton=this._createButton(y.zoomInText,y.zoomInTitle,s+"-in",d,this._zoomIn),this._zoomOutButton=this._createButton(y.zoomOutText,y.zoomOutTitle,s+"-out",d,this._zoomOut),this._updateDisabled(),i.on("zoomend zoomlevelschange",this._updateDisabled,this),d},onRemove:function(i){i.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(i){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(i.shiftKey?3:1))},_zoomOut:function(i){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(i.shiftKey?3:1))},_createButton:function(i,s,d,y,S){var W=ze("a",d,y);return W.innerHTML=i,W.href="#",W.title=s,W.setAttribute("role","button"),W.setAttribute("aria-label",s),Gi(W),Se(W,"click",Dn),Se(W,"click",S,this),Se(W,"click",this._refocusOnMap,this),W},_updateDisabled:function(){var i=this._map,s="leaflet-disabled";ot(this._zoomInButton,s),ot(this._zoomOutButton,s),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||i._zoom===i.getMinZoom())&&(Re(this._zoomOutButton,s),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||i._zoom===i.getMaxZoom())&&(Re(this._zoomInButton,s),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ae.mergeOptions({zoomControl:!0}),Ae.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new dl,this.addControl(this.zoomControl))});var qb=function(i){return new dl(i)},af=vr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(i){var s="leaflet-control-scale",d=ze("div",s),y=this.options;return this._addScales(y,s+"-line",d),i.on(y.updateWhenIdle?"moveend":"move",this._update,this),i.whenReady(this._update,this),d},onRemove:function(i){i.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(i,s,d){i.metric&&(this._mScale=ze("div",s,d)),i.imperial&&(this._iScale=ze("div",s,d))},_update:function(){var i=this._map,s=i.getSize().y/2,d=i.distance(i.containerPointToLatLng([0,s]),i.containerPointToLatLng([this.options.maxWidth,s]));this._updateScales(d)},_updateScales:function(i){this.options.metric&&i&&this._updateMetric(i),this.options.imperial&&i&&this._updateImperial(i)},_updateMetric:function(i){var s=this._getRoundNum(i),d=s<1e3?s+" m":s/1e3+" km";this._updateScale(this._mScale,d,s/i)},_updateImperial:function(i){var s=i*3.2808399,d,y,S;s>5280?(d=s/5280,y=this._getRoundNum(d),this._updateScale(this._iScale,y+" mi",y/d)):(S=this._getRoundNum(s),this._updateScale(this._iScale,S+" ft",S/s))},_updateScale:function(i,s,d){i.style.width=Math.round(this.options.maxWidth*d)+"px",i.innerHTML=s},_getRoundNum:function(i){var s=Math.pow(10,(Math.floor(i)+"").length-1),d=i/s;return d=d>=10?10:d>=5?5:d>=3?3:d>=2?2:1,s*d}}),Gb=function(i){return new af(i)},Yb='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',fl=vr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ge.inlineSvg?Yb+" ":"")+"Leaflet</a>"},initialize:function(i){g(this,i),this._attributions={}},onAdd:function(i){i.attributionControl=this,this._container=ze("div","leaflet-control-attribution"),Gi(this._container);for(var s in i._layers)i._layers[s].getAttribution&&this.addAttribution(i._layers[s].getAttribution());return this._update(),i.on("layeradd",this._addAttribution,this),this._container},onRemove:function(i){i.off("layeradd",this._addAttribution,this)},_addAttribution:function(i){i.layer.getAttribution&&(this.addAttribution(i.layer.getAttribution()),i.layer.once("remove",function(){this.removeAttribution(i.layer.getAttribution())},this))},setPrefix:function(i){return this.options.prefix=i,this._update(),this},addAttribution:function(i){return i?(this._attributions[i]||(this._attributions[i]=0),this._attributions[i]++,this._update(),this):this},removeAttribution:function(i){return i?(this._attributions[i]&&(this._attributions[i]--,this._update()),this):this},_update:function(){if(this._map){var i=[];for(var s in this._attributions)this._attributions[s]&&i.push(s);var d=[];this.options.prefix&&d.push(this.options.prefix),i.length&&d.push(i.join(", ")),this._container.innerHTML=d.join(' <span aria-hidden="true">|</span> ')}}});Ae.mergeOptions({attributionControl:!0}),Ae.addInitHook(function(){this.options.attributionControl&&new fl().addTo(this)});var Xb=function(i){return new fl(i)};vr.Layers=nf,vr.Zoom=dl,vr.Scale=af,vr.Attribution=fl,Yi.layers=Ub,Yi.zoom=qb,Yi.scale=Gb,Yi.attribution=Xb;var Er=j.extend({initialize:function(i){this._map=i},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Er.addTo=function(i,s){return i.addHandler(s,this),this};var Zb={Events:B},of=ge.touch?"touchstart mousedown":"mousedown",ln=U.extend({options:{clickTolerance:3},initialize:function(i,s,d,y){g(this,y),this._element=i,this._dragStartTarget=s||i,this._preventOutline=d},enable:function(){this._enabled||(Se(this._dragStartTarget,of,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ln._dragging===this&&this.finishDrag(!0),qe(this._dragStartTarget,of,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(i){if(this._enabled&&(this._moved=!1,!Qs(this._element,"leaflet-zoom-anim"))){if(i.touches&&i.touches.length!==1){ln._dragging===this&&this.finishDrag();return}if(!(ln._dragging||i.shiftKey||i.which!==1&&i.button!==1&&!i.touches)&&(ln._dragging=this,this._preventOutline&&il(this._element),tl(),Vi(),!this._moving)){this.fire("down");var s=i.touches?i.touches[0]:i,d=Kd(this._element);this._startPoint=new q(s.clientX,s.clientY),this._startPos=kn(this._element),this._parentScale=al(d);var y=i.type==="mousedown";Se(document,y?"mousemove":"touchmove",this._onMove,this),Se(document,y?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(i){if(this._enabled){if(i.touches&&i.touches.length>1){this._moved=!0;return}var s=i.touches&&i.touches.length===1?i.touches[0]:i,d=new q(s.clientX,s.clientY)._subtract(this._startPoint);!d.x&&!d.y||Math.abs(d.x)+Math.abs(d.y)<this.options.clickTolerance||(d.x/=this._parentScale.x,d.y/=this._parentScale.y,wt(i),this._moved||(this.fire("dragstart"),this._moved=!0,Re(document.body,"leaflet-dragging"),this._lastTarget=i.target||i.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Re(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(d),this._moving=!0,this._lastEvent=i,this._updatePosition())}},_updatePosition:function(){var i={originalEvent:this._lastEvent};this.fire("predrag",i),ht(this._element,this._newPos),this.fire("drag",i)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(i){ot(document.body,"leaflet-dragging"),this._lastTarget&&(ot(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),qe(document,"mousemove touchmove",this._onMove,this),qe(document,"mouseup touchend touchcancel",this._onUp,this),rl(),Ui();var s=this._moved&&this._moving;this._moving=!1,ln._dragging=!1,s&&this.fire("dragend",{noInertia:i,distance:this._newPos.distanceTo(this._startPos)})}});function sf(i,s,d){var y,S=[1,4,2,8],W,Y,re,ae,ce,me,xe,Ne;for(W=0,me=i.length;W<me;W++)i[W]._code=Ln(i[W],s);for(re=0;re<4;re++){for(xe=S[re],y=[],W=0,me=i.length,Y=me-1;W<me;Y=W++)ae=i[W],ce=i[Y],ae._code&xe?ce._code&xe||(Ne=lo(ce,ae,xe,s,d),Ne._code=Ln(Ne,s),y.push(Ne)):(ce._code&xe&&(Ne=lo(ce,ae,xe,s,d),Ne._code=Ln(Ne,s),y.push(Ne)),y.push(ae));i=y}return i}function lf(i,s){var d,y,S,W,Y,re,ae,ce,me;if(!i||i.length===0)throw new Error("latlngs not passed");Kt(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var xe=ne([0,0]),Ne=K(i),Ot=Ne.getNorthWest().distanceTo(Ne.getSouthWest())*Ne.getNorthEast().distanceTo(Ne.getNorthWest());Ot<1700&&(xe=hl(i));var yt=i.length,Qt=[];for(d=0;d<yt;d++){var zt=ne(i[d]);Qt.push(s.project(ne([zt.lat-xe.lat,zt.lng-xe.lng])))}for(re=ae=ce=0,d=0,y=yt-1;d<yt;y=d++)S=Qt[d],W=Qt[y],Y=S.y*W.x-W.y*S.x,ae+=(S.x+W.x)*Y,ce+=(S.y+W.y)*Y,re+=Y*3;re===0?me=Qt[0]:me=[ae/re,ce/re];var oi=s.unproject($(me));return ne([oi.lat+xe.lat,oi.lng+xe.lng])}function hl(i){for(var s=0,d=0,y=0,S=0;S<i.length;S++){var W=ne(i[S]);s+=W.lat,d+=W.lng,y++}return ne([s/y,d/y])}var Kb={__proto__:null,clipPolygon:sf,polygonCenter:lf,centroid:hl};function uf(i,s){if(!s||!i.length)return i.slice();var d=s*s;return i=e_(i,d),i=Jb(i,d),i}function cf(i,s,d){return Math.sqrt(Xi(i,s,d,!0))}function Qb(i,s,d){return Xi(i,s,d)}function Jb(i,s){var d=i.length,y=typeof Uint8Array!="undefined"?Uint8Array:Array,S=new y(d);S[0]=S[d-1]=1,pl(i,S,s,0,d-1);var W,Y=[];for(W=0;W<d;W++)S[W]&&Y.push(i[W]);return Y}function pl(i,s,d,y,S){var W=0,Y,re,ae;for(re=y+1;re<=S-1;re++)ae=Xi(i[re],i[y],i[S],!0),ae>W&&(Y=re,W=ae);W>d&&(s[Y]=1,pl(i,s,d,y,Y),pl(i,s,d,Y,S))}function e_(i,s){for(var d=[i[0]],y=1,S=0,W=i.length;y<W;y++)t_(i[y],i[S])>s&&(d.push(i[y]),S=y);return S<W-1&&d.push(i[W-1]),d}var df;function ff(i,s,d,y,S){var W=y?df:Ln(i,d),Y=Ln(s,d),re,ae,ce;for(df=Y;;){if(!(W|Y))return[i,s];if(W&Y)return!1;re=W||Y,ae=lo(i,s,re,d,S),ce=Ln(ae,d),re===W?(i=ae,W=ce):(s=ae,Y=ce)}}function lo(i,s,d,y,S){var W=s.x-i.x,Y=s.y-i.y,re=y.min,ae=y.max,ce,me;return d&8?(ce=i.x+W*(ae.y-i.y)/Y,me=ae.y):d&4?(ce=i.x+W*(re.y-i.y)/Y,me=re.y):d&2?(ce=ae.x,me=i.y+Y*(ae.x-i.x)/W):d&1&&(ce=re.x,me=i.y+Y*(re.x-i.x)/W),new q(ce,me,S)}function Ln(i,s){var d=0;return i.x<s.min.x?d|=1:i.x>s.max.x&&(d|=2),i.y<s.min.y?d|=4:i.y>s.max.y&&(d|=8),d}function t_(i,s){var d=s.x-i.x,y=s.y-i.y;return d*d+y*y}function Xi(i,s,d,y){var S=s.x,W=s.y,Y=d.x-S,re=d.y-W,ae=Y*Y+re*re,ce;return ae>0&&(ce=((i.x-S)*Y+(i.y-W)*re)/ae,ce>1?(S=d.x,W=d.y):ce>0&&(S+=Y*ce,W+=re*ce)),Y=i.x-S,re=i.y-W,y?Y*Y+re*re:new q(S,W)}function Kt(i){return!x(i[0])||typeof i[0][0]!="object"&&typeof i[0][0]!="undefined"}function hf(i){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Kt(i)}function pf(i,s){var d,y,S,W,Y,re,ae,ce;if(!i||i.length===0)throw new Error("latlngs not passed");Kt(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var me=ne([0,0]),xe=K(i),Ne=xe.getNorthWest().distanceTo(xe.getSouthWest())*xe.getNorthEast().distanceTo(xe.getNorthWest());Ne<1700&&(me=hl(i));var Ot=i.length,yt=[];for(d=0;d<Ot;d++){var Qt=ne(i[d]);yt.push(s.project(ne([Qt.lat-me.lat,Qt.lng-me.lng])))}for(d=0,y=0;d<Ot-1;d++)y+=yt[d].distanceTo(yt[d+1])/2;if(y===0)ce=yt[0];else for(d=0,W=0;d<Ot-1;d++)if(Y=yt[d],re=yt[d+1],S=Y.distanceTo(re),W+=S,W>y){ae=(W-y)/S,ce=[re.x-ae*(re.x-Y.x),re.y-ae*(re.y-Y.y)];break}var zt=s.unproject($(ce));return ne([zt.lat+me.lat,zt.lng+me.lng])}var r_={__proto__:null,simplify:uf,pointToSegmentDistance:cf,closestPointOnSegment:Qb,clipSegment:ff,_getEdgeIntersection:lo,_getBitCode:Ln,_sqClosestPointOnSegment:Xi,isFlat:Kt,_flat:hf,polylineCenter:pf},ml={project:function(i){return new q(i.lng,i.lat)},unproject:function(i){return new J(i.y,i.x)},bounds:new H([-180,-90],[180,90])},vl={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(i){var s=Math.PI/180,d=this.R,y=i.lat*s,S=this.R_MINOR/d,W=Math.sqrt(1-S*S),Y=W*Math.sin(y),re=Math.tan(Math.PI/4-y/2)/Math.pow((1-Y)/(1+Y),W/2);return y=-d*Math.log(Math.max(re,1e-10)),new q(i.lng*s*d,y)},unproject:function(i){for(var s=180/Math.PI,d=this.R,y=this.R_MINOR/d,S=Math.sqrt(1-y*y),W=Math.exp(-i.y/d),Y=Math.PI/2-2*Math.atan(W),re=0,ae=.1,ce;re<15&&Math.abs(ae)>1e-7;re++)ce=S*Math.sin(Y),ce=Math.pow((1-ce)/(1+ce),S/2),ae=Math.PI/2-2*Math.atan(W*ce)-Y,Y+=ae;return new J(Y*s,i.x*s/d)}},n_={__proto__:null,LonLat:ml,Mercator:vl,SphericalMercator:fe},i_=a({},se,{code:"EPSG:3395",projection:vl,transformation:function(){var i=.5/(Math.PI*vl.R);return oe(i,.5,-i,.5)}()}),mf=a({},se,{code:"EPSG:4326",projection:ml,transformation:oe(1/180,1,-1/180,.5)}),a_=a({},le,{projection:ml,transformation:oe(1,0,-1,0),scale:function(i){return Math.pow(2,i)},zoom:function(i){return Math.log(i)/Math.LN2},distance:function(i,s){var d=s.lng-i.lng,y=s.lat-i.lat;return Math.sqrt(d*d+y*y)},infinite:!0});le.Earth=se,le.EPSG3395=i_,le.EPSG3857=ve,le.EPSG900913=de,le.EPSG4326=mf,le.Simple=a_;var gr=U.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(i){return i.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(i){return i&&i.removeLayer(this),this},getPane:function(i){return this._map.getPane(i?this.options[i]||i:this.options.pane)},addInteractiveTarget:function(i){return this._map._targets[c(i)]=this,this},removeInteractiveTarget:function(i){return delete this._map._targets[c(i)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(i){var s=i.target;if(s.hasLayer(this)){if(this._map=s,this._zoomAnimated=s._zoomAnimated,this.getEvents){var d=this.getEvents();s.on(d,this),this.once("remove",function(){s.off(d,this)},this)}this.onAdd(s),this.fire("add"),s.fire("layeradd",{layer:this})}}});Ae.include({addLayer:function(i){if(!i._layerAdd)throw new Error("The provided object is not a Layer.");var s=c(i);return this._layers[s]?this:(this._layers[s]=i,i._mapToAdd=this,i.beforeAdd&&i.beforeAdd(this),this.whenReady(i._layerAdd,i),this)},removeLayer:function(i){var s=c(i);return this._layers[s]?(this._loaded&&i.onRemove(this),delete this._layers[s],this._loaded&&(this.fire("layerremove",{layer:i}),i.fire("remove")),i._map=i._mapToAdd=null,this):this},hasLayer:function(i){return c(i)in this._layers},eachLayer:function(i,s){for(var d in this._layers)i.call(s,this._layers[d]);return this},_addLayers:function(i){i=i?x(i)?i:[i]:[];for(var s=0,d=i.length;s<d;s++)this.addLayer(i[s])},_addZoomLimit:function(i){(!isNaN(i.options.maxZoom)||!isNaN(i.options.minZoom))&&(this._zoomBoundLayers[c(i)]=i,this._updateZoomLevels())},_removeZoomLimit:function(i){var s=c(i);this._zoomBoundLayers[s]&&(delete this._zoomBoundLayers[s],this._updateZoomLevels())},_updateZoomLevels:function(){var i=1/0,s=-1/0,d=this._getZoomSpan();for(var y in this._zoomBoundLayers){var S=this._zoomBoundLayers[y].options;i=S.minZoom===void 0?i:Math.min(i,S.minZoom),s=S.maxZoom===void 0?s:Math.max(s,S.maxZoom)}this._layersMaxZoom=s===-1/0?void 0:s,this._layersMinZoom=i===1/0?void 0:i,d!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ti=gr.extend({initialize:function(i,s){g(this,s),this._layers={};var d,y;if(i)for(d=0,y=i.length;d<y;d++)this.addLayer(i[d])},addLayer:function(i){var s=this.getLayerId(i);return this._layers[s]=i,this._map&&this._map.addLayer(i),this},removeLayer:function(i){var s=i in this._layers?i:this.getLayerId(i);return this._map&&this._layers[s]&&this._map.removeLayer(this._layers[s]),delete this._layers[s],this},hasLayer:function(i){var s=typeof i=="number"?i:this.getLayerId(i);return s in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(i){var s=Array.prototype.slice.call(arguments,1),d,y;for(d in this._layers)y=this._layers[d],y[i]&&y[i].apply(y,s);return this},onAdd:function(i){this.eachLayer(i.addLayer,i)},onRemove:function(i){this.eachLayer(i.removeLayer,i)},eachLayer:function(i,s){for(var d in this._layers)i.call(s,this._layers[d]);return this},getLayer:function(i){return this._layers[i]},getLayers:function(){var i=[];return this.eachLayer(i.push,i),i},setZIndex:function(i){return this.invoke("setZIndex",i)},getLayerId:function(i){return c(i)}}),o_=function(i,s){return new ti(i,s)},Vr=ti.extend({addLayer:function(i){return this.hasLayer(i)?this:(i.addEventParent(this),ti.prototype.addLayer.call(this,i),this.fire("layeradd",{layer:i}))},removeLayer:function(i){return this.hasLayer(i)?(i in this._layers&&(i=this._layers[i]),i.removeEventParent(this),ti.prototype.removeLayer.call(this,i),this.fire("layerremove",{layer:i})):this},setStyle:function(i){return this.invoke("setStyle",i)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var i=new X;for(var s in this._layers){var d=this._layers[s];i.extend(d.getBounds?d.getBounds():d.getLatLng())}return i}}),s_=function(i,s){return new Vr(i,s)},ri=j.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(i){g(this,i)},createIcon:function(i){return this._createIcon("icon",i)},createShadow:function(i){return this._createIcon("shadow",i)},_createIcon:function(i,s){var d=this._getIconUrl(i);if(!d){if(i==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var y=this._createImg(d,s&&s.tagName==="IMG"?s:null);return this._setIconStyles(y,i),(this.options.crossOrigin||this.options.crossOrigin==="")&&(y.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),y},_setIconStyles:function(i,s){var d=this.options,y=d[s+"Size"];typeof y=="number"&&(y=[y,y]);var S=$(y),W=$(s==="shadow"&&d.shadowAnchor||d.iconAnchor||S&&S.divideBy(2,!0));i.className="leaflet-marker-"+s+" "+(d.className||""),W&&(i.style.marginLeft=-W.x+"px",i.style.marginTop=-W.y+"px"),S&&(i.style.width=S.x+"px",i.style.height=S.y+"px")},_createImg:function(i,s){return s=s||document.createElement("img"),s.src=i,s},_getIconUrl:function(i){return ge.retina&&this.options[i+"RetinaUrl"]||this.options[i+"Url"]}});function l_(i){return new ri(i)}var Zi=ri.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(i){return typeof Zi.imagePath!="string"&&(Zi.imagePath=this._detectIconPath()),(this.options.imagePath||Zi.imagePath)+ri.prototype._getIconUrl.call(this,i)},_stripUrl:function(i){var s=function(d,y,S){var W=y.exec(d);return W&&W[S]};return i=s(i,/^url\((['"])?(.+)\1\)$/,2),i&&s(i,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var i=ze("div","leaflet-default-icon-path",document.body),s=Hi(i,"background-image")||Hi(i,"backgroundImage");if(document.body.removeChild(i),s=this._stripUrl(s),s)return s;var d=document.querySelector('link[href$="leaflet.css"]');return d?d.href.substring(0,d.href.length-11-1):""}}),vf=Er.extend({initialize:function(i){this._marker=i},addHooks:function(){var i=this._marker._icon;this._draggable||(this._draggable=new ln(i,i,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Re(i,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ot(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(i){var s=this._marker,d=s._map,y=this._marker.options.autoPanSpeed,S=this._marker.options.autoPanPadding,W=kn(s._icon),Y=d.getPixelBounds(),re=d.getPixelOrigin(),ae=ee(Y.min._subtract(re).add(S),Y.max._subtract(re).subtract(S));if(!ae.contains(W)){var ce=$((Math.max(ae.max.x,W.x)-ae.max.x)/(Y.max.x-ae.max.x)-(Math.min(ae.min.x,W.x)-ae.min.x)/(Y.min.x-ae.min.x),(Math.max(ae.max.y,W.y)-ae.max.y)/(Y.max.y-ae.max.y)-(Math.min(ae.min.y,W.y)-ae.min.y)/(Y.min.y-ae.min.y)).multiplyBy(y);d.panBy(ce,{animate:!1}),this._draggable._newPos._add(ce),this._draggable._startPos._add(ce),ht(s._icon,this._draggable._newPos),this._onDrag(i),this._panRequest=k(this._adjustPan.bind(this,i))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(i){this._marker.options.autoPan&&(O(this._panRequest),this._panRequest=k(this._adjustPan.bind(this,i)))},_onDrag:function(i){var s=this._marker,d=s._shadow,y=kn(s._icon),S=s._map.layerPointToLatLng(y);d&&ht(d,y),s._latlng=S,i.latlng=S,i.oldLatLng=this._oldLatLng,s.fire("move",i).fire("drag",i)},_onDragEnd:function(i){O(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",i)}}),uo=gr.extend({options:{icon:new Zi,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(i,s){g(this,s),this._latlng=ne(i)},onAdd:function(i){this._zoomAnimated=this._zoomAnimated&&i.options.markerZoomAnimation,this._zoomAnimated&&i.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(i){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&i.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(i){var s=this._latlng;return this._latlng=ne(i),this.update(),this.fire("move",{oldLatLng:s,latlng:this._latlng})},setZIndexOffset:function(i){return this.options.zIndexOffset=i,this.update()},getIcon:function(){return this.options.icon},setIcon:function(i){return this.options.icon=i,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var i=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(i)}return this},_initIcon:function(){var i=this.options,s="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),d=i.icon.createIcon(this._icon),y=!1;d!==this._icon&&(this._icon&&this._removeIcon(),y=!0,i.title&&(d.title=i.title),d.tagName==="IMG"&&(d.alt=i.alt||"")),Re(d,s),i.keyboard&&(d.tabIndex="0",d.setAttribute("role","button")),this._icon=d,i.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Se(d,"focus",this._panOnFocus,this);var S=i.icon.createShadow(this._shadow),W=!1;S!==this._shadow&&(this._removeShadow(),W=!0),S&&(Re(S,s),S.alt=""),this._shadow=S,i.opacity<1&&this._updateOpacity(),y&&this.getPane().appendChild(this._icon),this._initInteraction(),S&&W&&this.getPane(i.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&qe(this._icon,"focus",this._panOnFocus,this),Ke(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ke(this._shadow),this._shadow=null},_setPos:function(i){this._icon&&ht(this._icon,i),this._shadow&&ht(this._shadow,i),this._zIndex=i.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(i){this._icon&&(this._icon.style.zIndex=this._zIndex+i)},_animateZoom:function(i){var s=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center).round();this._setPos(s)},_initInteraction:function(){if(this.options.interactive&&(Re(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),vf)){var i=this.options.draggable;this.dragging&&(i=this.dragging.enabled(),this.dragging.disable()),this.dragging=new vf(this),i&&this.dragging.enable()}},setOpacity:function(i){return this.options.opacity=i,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var i=this.options.opacity;this._icon&&Zt(this._icon,i),this._shadow&&Zt(this._shadow,i)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var i=this._map;if(i){var s=this.options.icon.options,d=s.iconSize?$(s.iconSize):$(0,0),y=s.iconAnchor?$(s.iconAnchor):$(0,0);i.panInside(this._latlng,{paddingTopLeft:y,paddingBottomRight:d.subtract(y)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function u_(i,s){return new uo(i,s)}var un=gr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(i){this._renderer=i.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(i){return g(this,i),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&i&&Object.prototype.hasOwnProperty.call(i,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),co=un.extend({options:{fill:!0,radius:10},initialize:function(i,s){g(this,s),this._latlng=ne(i),this._radius=this.options.radius},setLatLng:function(i){var s=this._latlng;return this._latlng=ne(i),this.redraw(),this.fire("move",{oldLatLng:s,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(i){return this.options.radius=this._radius=i,this.redraw()},getRadius:function(){return this._radius},setStyle:function(i){var s=i&&i.radius||this._radius;return un.prototype.setStyle.call(this,i),this.setRadius(s),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var i=this._radius,s=this._radiusY||i,d=this._clickTolerance(),y=[i+d,s+d];this._pxBounds=new H(this._point.subtract(y),this._point.add(y))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(i){return i.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function c_(i,s){return new co(i,s)}var gl=co.extend({initialize:function(i,s,d){if(typeof s=="number"&&(s=a({},d,{radius:s})),g(this,s),this._latlng=ne(i),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(i){return this._mRadius=i,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var i=[this._radius,this._radiusY||this._radius];return new X(this._map.layerPointToLatLng(this._point.subtract(i)),this._map.layerPointToLatLng(this._point.add(i)))},setStyle:un.prototype.setStyle,_project:function(){var i=this._latlng.lng,s=this._latlng.lat,d=this._map,y=d.options.crs;if(y.distance===se.distance){var S=Math.PI/180,W=this._mRadius/se.R/S,Y=d.project([s+W,i]),re=d.project([s-W,i]),ae=Y.add(re).divideBy(2),ce=d.unproject(ae).lat,me=Math.acos((Math.cos(W*S)-Math.sin(s*S)*Math.sin(ce*S))/(Math.cos(s*S)*Math.cos(ce*S)))/S;(isNaN(me)||me===0)&&(me=W/Math.cos(Math.PI/180*s)),this._point=ae.subtract(d.getPixelOrigin()),this._radius=isNaN(me)?0:ae.x-d.project([ce,i-me]).x,this._radiusY=ae.y-Y.y}else{var xe=y.unproject(y.project(this._latlng).subtract([this._mRadius,0]));this._point=d.latLngToLayerPoint(this._latlng),this._radius=this._point.x-d.latLngToLayerPoint(xe).x}this._updateBounds()}});function d_(i,s,d){return new gl(i,s,d)}var Ur=un.extend({options:{smoothFactor:1,noClip:!1},initialize:function(i,s){g(this,s),this._setLatLngs(i)},getLatLngs:function(){return this._latlngs},setLatLngs:function(i){return this._setLatLngs(i),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(i){for(var s=1/0,d=null,y=Xi,S,W,Y=0,re=this._parts.length;Y<re;Y++)for(var ae=this._parts[Y],ce=1,me=ae.length;ce<me;ce++){S=ae[ce-1],W=ae[ce];var xe=y(i,S,W,!0);xe<s&&(s=xe,d=y(i,S,W))}return d&&(d.distance=Math.sqrt(s)),d},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return pf(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(i,s){return s=s||this._defaultShape(),i=ne(i),s.push(i),this._bounds.extend(i),this.redraw()},_setLatLngs:function(i){this._bounds=new X,this._latlngs=this._convertLatLngs(i)},_defaultShape:function(){return Kt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(i){for(var s=[],d=Kt(i),y=0,S=i.length;y<S;y++)d?(s[y]=ne(i[y]),this._bounds.extend(s[y])):s[y]=this._convertLatLngs(i[y]);return s},_project:function(){var i=new H;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,i),this._bounds.isValid()&&i.isValid()&&(this._rawPxBounds=i,this._updateBounds())},_updateBounds:function(){var i=this._clickTolerance(),s=new q(i,i);this._rawPxBounds&&(this._pxBounds=new H([this._rawPxBounds.min.subtract(s),this._rawPxBounds.max.add(s)]))},_projectLatlngs:function(i,s,d){var y=i[0]instanceof J,S=i.length,W,Y;if(y){for(Y=[],W=0;W<S;W++)Y[W]=this._map.latLngToLayerPoint(i[W]),d.extend(Y[W]);s.push(Y)}else for(W=0;W<S;W++)this._projectLatlngs(i[W],s,d)},_clipPoints:function(){var i=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}var s=this._parts,d,y,S,W,Y,re,ae;for(d=0,S=0,W=this._rings.length;d<W;d++)for(ae=this._rings[d],y=0,Y=ae.length;y<Y-1;y++)re=ff(ae[y],ae[y+1],i,y,!0),re&&(s[S]=s[S]||[],s[S].push(re[0]),(re[1]!==ae[y+1]||y===Y-2)&&(s[S].push(re[1]),S++))}},_simplifyPoints:function(){for(var i=this._parts,s=this.options.smoothFactor,d=0,y=i.length;d<y;d++)i[d]=uf(i[d],s)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(i,s){var d,y,S,W,Y,re,ae=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(d=0,W=this._parts.length;d<W;d++)for(re=this._parts[d],y=0,Y=re.length,S=Y-1;y<Y;S=y++)if(!(!s&&y===0)&&cf(i,re[S],re[y])<=ae)return!0;return!1}});function f_(i,s){return new Ur(i,s)}Ur._flat=hf;var ni=Ur.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return lf(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(i){var s=Ur.prototype._convertLatLngs.call(this,i),d=s.length;return d>=2&&s[0]instanceof J&&s[0].equals(s[d-1])&&s.pop(),s},_setLatLngs:function(i){Ur.prototype._setLatLngs.call(this,i),Kt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Kt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var i=this._renderer._bounds,s=this.options.weight,d=new q(s,s);if(i=new H(i.min.subtract(d),i.max.add(d)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}for(var y=0,S=this._rings.length,W;y<S;y++)W=sf(this._rings[y],i,!0),W.length&&this._parts.push(W)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(i){var s=!1,d,y,S,W,Y,re,ae,ce;if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(W=0,ae=this._parts.length;W<ae;W++)for(d=this._parts[W],Y=0,ce=d.length,re=ce-1;Y<ce;re=Y++)y=d[Y],S=d[re],y.y>i.y!=S.y>i.y&&i.x<(S.x-y.x)*(i.y-y.y)/(S.y-y.y)+y.x&&(s=!s);return s||Ur.prototype._containsPoint.call(this,i,!0)}});function h_(i,s){return new ni(i,s)}var qr=Vr.extend({initialize:function(i,s){g(this,s),this._layers={},i&&this.addData(i)},addData:function(i){var s=x(i)?i:i.features,d,y,S;if(s){for(d=0,y=s.length;d<y;d++)S=s[d],(S.geometries||S.geometry||S.features||S.coordinates)&&this.addData(S);return this}var W=this.options;if(W.filter&&!W.filter(i))return this;var Y=fo(i,W);return Y?(Y.feature=mo(i),Y.defaultOptions=Y.options,this.resetStyle(Y),W.onEachFeature&&W.onEachFeature(i,Y),this.addLayer(Y)):this},resetStyle:function(i){return i===void 0?this.eachLayer(this.resetStyle,this):(i.options=a({},i.defaultOptions),this._setLayerStyle(i,this.options.style),this)},setStyle:function(i){return this.eachLayer(function(s){this._setLayerStyle(s,i)},this)},_setLayerStyle:function(i,s){i.setStyle&&(typeof s=="function"&&(s=s(i.feature)),i.setStyle(s))}});function fo(i,s){var d=i.type==="Feature"?i.geometry:i,y=d?d.coordinates:null,S=[],W=s&&s.pointToLayer,Y=s&&s.coordsToLatLng||yl,re,ae,ce,me;if(!y&&!d)return null;switch(d.type){case"Point":return re=Y(y),gf(W,i,re,s);case"MultiPoint":for(ce=0,me=y.length;ce<me;ce++)re=Y(y[ce]),S.push(gf(W,i,re,s));return new Vr(S);case"LineString":case"MultiLineString":return ae=ho(y,d.type==="LineString"?0:1,Y),new Ur(ae,s);case"Polygon":case"MultiPolygon":return ae=ho(y,d.type==="Polygon"?1:2,Y),new ni(ae,s);case"GeometryCollection":for(ce=0,me=d.geometries.length;ce<me;ce++){var xe=fo({geometry:d.geometries[ce],type:"Feature",properties:i.properties},s);xe&&S.push(xe)}return new Vr(S);case"FeatureCollection":for(ce=0,me=d.features.length;ce<me;ce++){var Ne=fo(d.features[ce],s);Ne&&S.push(Ne)}return new Vr(S);default:throw new Error("Invalid GeoJSON object.")}}function gf(i,s,d,y){return i?i(s,d):new uo(d,y&&y.markersInheritOptions&&y)}function yl(i){return new J(i[1],i[0],i[2])}function ho(i,s,d){for(var y=[],S=0,W=i.length,Y;S<W;S++)Y=s?ho(i[S],s-1,d):(d||yl)(i[S]),y.push(Y);return y}function bl(i,s){return i=ne(i),i.alt!==void 0?[h(i.lng,s),h(i.lat,s),h(i.alt,s)]:[h(i.lng,s),h(i.lat,s)]}function po(i,s,d,y){for(var S=[],W=0,Y=i.length;W<Y;W++)S.push(s?po(i[W],Kt(i[W])?0:s-1,d,y):bl(i[W],y));return!s&&d&&S.length>0&&S.push(S[0].slice()),S}function ii(i,s){return i.feature?a({},i.feature,{geometry:s}):mo(s)}function mo(i){return i.type==="Feature"||i.type==="FeatureCollection"?i:{type:"Feature",properties:{},geometry:i}}var _l={toGeoJSON:function(i){return ii(this,{type:"Point",coordinates:bl(this.getLatLng(),i)})}};uo.include(_l),gl.include(_l),co.include(_l),Ur.include({toGeoJSON:function(i){var s=!Kt(this._latlngs),d=po(this._latlngs,s?1:0,!1,i);return ii(this,{type:(s?"Multi":"")+"LineString",coordinates:d})}}),ni.include({toGeoJSON:function(i){var s=!Kt(this._latlngs),d=s&&!Kt(this._latlngs[0]),y=po(this._latlngs,d?2:s?1:0,!0,i);return s||(y=[y]),ii(this,{type:(d?"Multi":"")+"Polygon",coordinates:y})}}),ti.include({toMultiPoint:function(i){var s=[];return this.eachLayer(function(d){s.push(d.toGeoJSON(i).geometry.coordinates)}),ii(this,{type:"MultiPoint",coordinates:s})},toGeoJSON:function(i){var s=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(s==="MultiPoint")return this.toMultiPoint(i);var d=s==="GeometryCollection",y=[];return this.eachLayer(function(S){if(S.toGeoJSON){var W=S.toGeoJSON(i);if(d)y.push(W.geometry);else{var Y=mo(W);Y.type==="FeatureCollection"?y.push.apply(y,Y.features):y.push(Y)}}}),d?ii(this,{geometries:y,type:"GeometryCollection"}):{type:"FeatureCollection",features:y}}});function yf(i,s){return new qr(i,s)}var p_=yf,vo=gr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(i,s,d){this._url=i,this._bounds=K(s),g(this,d)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Re(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ke(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(i){return this.options.opacity=i,this._image&&this._updateOpacity(),this},setStyle:function(i){return i.opacity&&this.setOpacity(i.opacity),this},bringToFront:function(){return this._map&&Jn(this._image),this},bringToBack:function(){return this._map&&ei(this._image),this},setUrl:function(i){return this._url=i,this._image&&(this._image.src=i),this},setBounds:function(i){return this._bounds=K(i),this._map&&this._reset(),this},getEvents:function(){var i={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var i=this._url.tagName==="IMG",s=this._image=i?this._url:ze("img");if(Re(s,"leaflet-image-layer"),this._zoomAnimated&&Re(s,"leaflet-zoom-animated"),this.options.className&&Re(s,this.options.className),s.onselectstart=m,s.onmousemove=m,s.onload=l(this.fire,this,"load"),s.onerror=l(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(s.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),i){this._url=s.src;return}s.src=this._url,s.alt=this.options.alt},_animateZoom:function(i){var s=this._map.getZoomScale(i.zoom),d=this._map._latLngBoundsToNewLayerBounds(this._bounds,i.zoom,i.center).min;On(this._image,d,s)},_reset:function(){var i=this._image,s=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),d=s.getSize();ht(i,s.min),i.style.width=d.x+"px",i.style.height=d.y+"px"},_updateOpacity:function(){Zt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var i=this.options.errorOverlayUrl;i&&this._url!==i&&(this._url=i,this._image.src=i)},getCenter:function(){return this._bounds.getCenter()}}),m_=function(i,s,d){return new vo(i,s,d)},bf=vo.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var i=this._url.tagName==="VIDEO",s=this._image=i?this._url:ze("video");if(Re(s,"leaflet-image-layer"),this._zoomAnimated&&Re(s,"leaflet-zoom-animated"),this.options.className&&Re(s,this.options.className),s.onselectstart=m,s.onmousemove=m,s.onloadeddata=l(this.fire,this,"load"),i){for(var d=s.getElementsByTagName("source"),y=[],S=0;S<d.length;S++)y.push(d[S].src);this._url=d.length>0?y:[s.src];return}x(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(s.style,"objectFit")&&(s.style.objectFit="fill"),s.autoplay=!!this.options.autoplay,s.loop=!!this.options.loop,s.muted=!!this.options.muted,s.playsInline=!!this.options.playsInline;for(var W=0;W<this._url.length;W++){var Y=ze("source");Y.src=this._url[W],s.appendChild(Y)}}});function v_(i,s,d){return new bf(i,s,d)}var _f=vo.extend({_initImage:function(){var i=this._image=this._url;Re(i,"leaflet-image-layer"),this._zoomAnimated&&Re(i,"leaflet-zoom-animated"),this.options.className&&Re(i,this.options.className),i.onselectstart=m,i.onmousemove=m}});function g_(i,s,d){return new _f(i,s,d)}var Mr=gr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(i,s){i&&(i instanceof J||x(i))?(this._latlng=ne(i),g(this,s)):(g(this,i),this._source=s),this.options.content&&(this._content=this.options.content)},openOn:function(i){return i=arguments.length?i:this._source._map,i.hasLayer(this)||i.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(i){return this._map?this.close():(arguments.length?this._source=i:i=this._source,this._prepareOpen(),this.openOn(i._map)),this},onAdd:function(i){this._zoomAnimated=i._zoomAnimated,this._container||this._initLayout(),i._fadeAnimated&&Zt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),i._fadeAnimated&&Zt(this._container,1),this.bringToFront(),this.options.interactive&&(Re(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(i){i._fadeAnimated?(Zt(this._container,0),this._removeTimeout=setTimeout(l(Ke,void 0,this._container),200)):Ke(this._container),this.options.interactive&&(ot(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(i){return this._latlng=ne(i),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(i){return this._content=i,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var i={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Jn(this._container),this},bringToBack:function(){return this._map&&ei(this._container),this},_prepareOpen:function(i){var s=this._source;if(!s._map)return!1;if(s instanceof Vr){s=null;var d=this._source._layers;for(var y in d)if(d[y]._map){s=d[y];break}if(!s)return!1;this._source=s}if(!i)if(s.getCenter)i=s.getCenter();else if(s.getLatLng)i=s.getLatLng();else if(s.getBounds)i=s.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(i),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var i=this._contentNode,s=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof s=="string")i.innerHTML=s;else{for(;i.hasChildNodes();)i.removeChild(i.firstChild);i.appendChild(s)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var i=this._map.latLngToLayerPoint(this._latlng),s=$(this.options.offset),d=this._getAnchor();this._zoomAnimated?ht(this._container,i.add(d)):s=s.add(i).add(d);var y=this._containerBottom=-s.y,S=this._containerLeft=-Math.round(this._containerWidth/2)+s.x;this._container.style.bottom=y+"px",this._container.style.left=S+"px"}},_getAnchor:function(){return[0,0]}});Ae.include({_initOverlay:function(i,s,d,y){var S=s;return S instanceof i||(S=new i(y).setContent(s)),d&&S.setLatLng(d),S}}),gr.include({_initOverlay:function(i,s,d,y){var S=d;return S instanceof i?(g(S,y),S._source=this):(S=s&&!y?s:new i(y,this),S.setContent(d)),S}});var go=Mr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(i){return i=arguments.length?i:this._source._map,!i.hasLayer(this)&&i._popup&&i._popup.options.autoClose&&i.removeLayer(i._popup),i._popup=this,Mr.prototype.openOn.call(this,i)},onAdd:function(i){Mr.prototype.onAdd.call(this,i),i.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof un||this._source.on("preclick",Nn))},onRemove:function(i){Mr.prototype.onRemove.call(this,i),i.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof un||this._source.off("preclick",Nn))},getEvents:function(){var i=Mr.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(i.preclick=this.close),this.options.keepInView&&(i.moveend=this._adjustPan),i},_initLayout:function(){var i="leaflet-popup",s=this._container=ze("div",i+" "+(this.options.className||"")+" leaflet-zoom-animated"),d=this._wrapper=ze("div",i+"-content-wrapper",s);if(this._contentNode=ze("div",i+"-content",d),Gi(s),ul(this._contentNode),Se(s,"contextmenu",Nn),this._tipContainer=ze("div",i+"-tip-container",s),this._tip=ze("div",i+"-tip",this._tipContainer),this.options.closeButton){var y=this._closeButton=ze("a",i+"-close-button",s);y.setAttribute("role","button"),y.setAttribute("aria-label","Close popup"),y.href="#close",y.innerHTML='<span aria-hidden="true">×</span>',Se(y,"click",function(S){wt(S),this.close()},this)}},_updateLayout:function(){var i=this._contentNode,s=i.style;s.width="",s.whiteSpace="nowrap";var d=i.offsetWidth;d=Math.min(d,this.options.maxWidth),d=Math.max(d,this.options.minWidth),s.width=d+1+"px",s.whiteSpace="",s.height="";var y=i.offsetHeight,S=this.options.maxHeight,W="leaflet-popup-scrolled";S&&y>S?(s.height=S+"px",Re(i,W)):ot(i,W),this._containerWidth=this._container.offsetWidth},_animateZoom:function(i){var s=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center),d=this._getAnchor();ht(this._container,s.add(d))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var i=this._map,s=parseInt(Hi(this._container,"marginBottom"),10)||0,d=this._container.offsetHeight+s,y=this._containerWidth,S=new q(this._containerLeft,-d-this._containerBottom);S._add(kn(this._container));var W=i.layerPointToContainerPoint(S),Y=$(this.options.autoPanPadding),re=$(this.options.autoPanPaddingTopLeft||Y),ae=$(this.options.autoPanPaddingBottomRight||Y),ce=i.getSize(),me=0,xe=0;W.x+y+ae.x>ce.x&&(me=W.x+y-ce.x+ae.x),W.x-me-re.x<0&&(me=W.x-re.x),W.y+d+ae.y>ce.y&&(xe=W.y+d-ce.y+ae.y),W.y-xe-re.y<0&&(xe=W.y-re.y),(me||xe)&&(this.options.keepInView&&(this._autopanning=!0),i.fire("autopanstart").panBy([me,xe]))}},_getAnchor:function(){return $(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),y_=function(i,s){return new go(i,s)};Ae.mergeOptions({closePopupOnClick:!0}),Ae.include({openPopup:function(i,s,d){return this._initOverlay(go,i,s,d).openOn(this),this},closePopup:function(i){return i=arguments.length?i:this._popup,i&&i.close(),this}}),gr.include({bindPopup:function(i,s){return this._popup=this._initOverlay(go,this._popup,i,s),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(i){return this._popup&&(this instanceof Vr||(this._popup._source=this),this._popup._prepareOpen(i||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(i){return this._popup&&this._popup.setContent(i),this},getPopup:function(){return this._popup},_openPopup:function(i){if(!(!this._popup||!this._map)){Dn(i);var s=i.layer||i.target;if(this._popup._source===s&&!(s instanceof un)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(i.latlng);return}this._popup._source=s,this.openPopup(i.latlng)}},_movePopup:function(i){this._popup.setLatLng(i.latlng)},_onKeyPress:function(i){i.originalEvent.keyCode===13&&this._openPopup(i)}});var yo=Mr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(i){Mr.prototype.onAdd.call(this,i),this.setOpacity(this.options.opacity),i.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(i){Mr.prototype.onRemove.call(this,i),i.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var i=Mr.prototype.getEvents.call(this);return this.options.permanent||(i.preclick=this.close),i},_initLayout:function(){var i="leaflet-tooltip",s=i+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ze("div",s),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(i){var s,d,y=this._map,S=this._container,W=y.latLngToContainerPoint(y.getCenter()),Y=y.layerPointToContainerPoint(i),re=this.options.direction,ae=S.offsetWidth,ce=S.offsetHeight,me=$(this.options.offset),xe=this._getAnchor();re==="top"?(s=ae/2,d=ce):re==="bottom"?(s=ae/2,d=0):re==="center"?(s=ae/2,d=ce/2):re==="right"?(s=0,d=ce/2):re==="left"?(s=ae,d=ce/2):Y.x<W.x?(re="right",s=0,d=ce/2):(re="left",s=ae+(me.x+xe.x)*2,d=ce/2),i=i.subtract($(s,d,!0)).add(me).add(xe),ot(S,"leaflet-tooltip-right"),ot(S,"leaflet-tooltip-left"),ot(S,"leaflet-tooltip-top"),ot(S,"leaflet-tooltip-bottom"),Re(S,"leaflet-tooltip-"+re),ht(S,i)},_updatePosition:function(){var i=this._map.latLngToLayerPoint(this._latlng);this._setPosition(i)},setOpacity:function(i){this.options.opacity=i,this._container&&Zt(this._container,i)},_animateZoom:function(i){var s=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center);this._setPosition(s)},_getAnchor:function(){return $(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),b_=function(i,s){return new yo(i,s)};Ae.include({openTooltip:function(i,s,d){return this._initOverlay(yo,i,s,d).openOn(this),this},closeTooltip:function(i){return i.close(),this}}),gr.include({bindTooltip:function(i,s){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(yo,this._tooltip,i,s),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(i){if(!(!i&&this._tooltipHandlersAdded)){var s=i?"off":"on",d={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?d.add=this._openTooltip:(d.mouseover=this._openTooltip,d.mouseout=this.closeTooltip,d.click=this._openTooltip,this._map?this._addFocusListeners():d.add=this._addFocusListeners),this._tooltip.options.sticky&&(d.mousemove=this._moveTooltip),this[s](d),this._tooltipHandlersAdded=!i}},openTooltip:function(i){return this._tooltip&&(this instanceof Vr||(this._tooltip._source=this),this._tooltip._prepareOpen(i)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(i){return this._tooltip&&this._tooltip.setContent(i),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(i){var s=typeof i.getElement=="function"&&i.getElement();s&&(Se(s,"focus",function(){this._tooltip._source=i,this.openTooltip()},this),Se(s,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(i){var s=typeof i.getElement=="function"&&i.getElement();s&&s.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(i){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var s=this;this._map.once("moveend",function(){s._openOnceFlag=!1,s._openTooltip(i)});return}this._tooltip._source=i.layer||i.target,this.openTooltip(this._tooltip.options.sticky?i.latlng:void 0)}},_moveTooltip:function(i){var s=i.latlng,d,y;this._tooltip.options.sticky&&i.originalEvent&&(d=this._map.mouseEventToContainerPoint(i.originalEvent),y=this._map.containerPointToLayerPoint(d),s=this._map.layerPointToLatLng(y)),this._tooltip.setLatLng(s)}});var wf=ri.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(i){var s=i&&i.tagName==="DIV"?i:document.createElement("div"),d=this.options;if(d.html instanceof Element?(no(s),s.appendChild(d.html)):s.innerHTML=d.html!==!1?d.html:"",d.bgPos){var y=$(d.bgPos);s.style.backgroundPosition=-y.x+"px "+-y.y+"px"}return this._setIconStyles(s,"icon"),s},createShadow:function(){return null}});function __(i){return new wf(i)}ri.Default=Zi;var Ki=gr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ge.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(i){g(this,i)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(i){i._addZoomLimit(this)},onRemove:function(i){this._removeAllTiles(),Ke(this._container),i._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Jn(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ei(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(i){return this.options.opacity=i,this._updateOpacity(),this},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var i=this._clampZoom(this._map.getZoom());i!==this._tileZoom&&(this._tileZoom=i,this._updateLevels()),this._update()}return this},getEvents:function(){var i={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=f(this._onMoveEnd,this.options.updateInterval,this)),i.move=this._onMove),this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},createTile:function(){return document.createElement("div")},getTileSize:function(){var i=this.options.tileSize;return i instanceof q?i:new q(i,i)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(i){for(var s=this.getPane().children,d=-i(-1/0,1/0),y=0,S=s.length,W;y<S;y++)W=s[y].style.zIndex,s[y]!==this._container&&W&&(d=i(d,+W));isFinite(d)&&(this.options.zIndex=d+i(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ge.ielt9){Zt(this._container,this.options.opacity);var i=+new Date,s=!1,d=!1;for(var y in this._tiles){var S=this._tiles[y];if(!(!S.current||!S.loaded)){var W=Math.min(1,(i-S.loaded)/200);Zt(S.el,W),W<1?s=!0:(S.active?d=!0:this._onOpaqueTile(S),S.active=!0)}}d&&!this._noPrune&&this._pruneTiles(),s&&(O(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this))}},_onOpaqueTile:m,_initContainer:function(){this._container||(this._container=ze("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var i=this._tileZoom,s=this.options.maxZoom;if(i!==void 0){for(var d in this._levels)d=Number(d),this._levels[d].el.children.length||d===i?(this._levels[d].el.style.zIndex=s-Math.abs(i-d),this._onUpdateLevel(d)):(Ke(this._levels[d].el),this._removeTilesAtZoom(d),this._onRemoveLevel(d),delete this._levels[d]);var y=this._levels[i],S=this._map;return y||(y=this._levels[i]={},y.el=ze("div","leaflet-tile-container leaflet-zoom-animated",this._container),y.el.style.zIndex=s,y.origin=S.project(S.unproject(S.getPixelOrigin()),i).round(),y.zoom=i,this._setZoomTransform(y,S.getCenter(),S.getZoom()),this._onCreateLevel(y)),this._level=y,y}},_onUpdateLevel:m,_onRemoveLevel:m,_onCreateLevel:m,_pruneTiles:function(){if(this._map){var i,s,d=this._map.getZoom();if(d>this.options.maxZoom||d<this.options.minZoom){this._removeAllTiles();return}for(i in this._tiles)s=this._tiles[i],s.retain=s.current;for(i in this._tiles)if(s=this._tiles[i],s.current&&!s.active){var y=s.coords;this._retainParent(y.x,y.y,y.z,y.z-5)||this._retainChildren(y.x,y.y,y.z,y.z+2)}for(i in this._tiles)this._tiles[i].retain||this._removeTile(i)}},_removeTilesAtZoom:function(i){for(var s in this._tiles)this._tiles[s].coords.z===i&&this._removeTile(s)},_removeAllTiles:function(){for(var i in this._tiles)this._removeTile(i)},_invalidateAll:function(){for(var i in this._levels)Ke(this._levels[i].el),this._onRemoveLevel(Number(i)),delete this._levels[i];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(i,s,d,y){var S=Math.floor(i/2),W=Math.floor(s/2),Y=d-1,re=new q(+S,+W);re.z=+Y;var ae=this._tileCoordsToKey(re),ce=this._tiles[ae];return ce&&ce.active?(ce.retain=!0,!0):(ce&&ce.loaded&&(ce.retain=!0),Y>y?this._retainParent(S,W,Y,y):!1)},_retainChildren:function(i,s,d,y){for(var S=2*i;S<2*i+2;S++)for(var W=2*s;W<2*s+2;W++){var Y=new q(S,W);Y.z=d+1;var re=this._tileCoordsToKey(Y),ae=this._tiles[re];if(ae&&ae.active){ae.retain=!0;continue}else ae&&ae.loaded&&(ae.retain=!0);d+1<y&&this._retainChildren(S,W,d+1,y)}},_resetView:function(i){var s=i&&(i.pinch||i.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),s,s)},_animateZoom:function(i){this._setView(i.center,i.zoom,!0,i.noUpdate)},_clampZoom:function(i){var s=this.options;return s.minNativeZoom!==void 0&&i<s.minNativeZoom?s.minNativeZoom:s.maxNativeZoom!==void 0&&s.maxNativeZoom<i?s.maxNativeZoom:i},_setView:function(i,s,d,y){var S=Math.round(s);this.options.maxZoom!==void 0&&S>this.options.maxZoom||this.options.minZoom!==void 0&&S<this.options.minZoom?S=void 0:S=this._clampZoom(S);var W=this.options.updateWhenZooming&&S!==this._tileZoom;(!y||W)&&(this._tileZoom=S,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),S!==void 0&&this._update(i),d||this._pruneTiles(),this._noPrune=!!d),this._setZoomTransforms(i,s)},_setZoomTransforms:function(i,s){for(var d in this._levels)this._setZoomTransform(this._levels[d],i,s)},_setZoomTransform:function(i,s,d){var y=this._map.getZoomScale(d,i.zoom),S=i.origin.multiplyBy(y).subtract(this._map._getNewPixelOrigin(s,d)).round();ge.any3d?On(i.el,S,y):ht(i.el,S)},_resetGrid:function(){var i=this._map,s=i.options.crs,d=this._tileSize=this.getTileSize(),y=this._tileZoom,S=this._map.getPixelWorldBounds(this._tileZoom);S&&(this._globalTileRange=this._pxBoundsToTileRange(S)),this._wrapX=s.wrapLng&&!this.options.noWrap&&[Math.floor(i.project([0,s.wrapLng[0]],y).x/d.x),Math.ceil(i.project([0,s.wrapLng[1]],y).x/d.y)],this._wrapY=s.wrapLat&&!this.options.noWrap&&[Math.floor(i.project([s.wrapLat[0],0],y).y/d.x),Math.ceil(i.project([s.wrapLat[1],0],y).y/d.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(i){var s=this._map,d=s._animatingZoom?Math.max(s._animateToZoom,s.getZoom()):s.getZoom(),y=s.getZoomScale(d,this._tileZoom),S=s.project(i,this._tileZoom).floor(),W=s.getSize().divideBy(y*2);return new H(S.subtract(W),S.add(W))},_update:function(i){var s=this._map;if(s){var d=this._clampZoom(s.getZoom());if(i===void 0&&(i=s.getCenter()),this._tileZoom!==void 0){var y=this._getTiledPixelBounds(i),S=this._pxBoundsToTileRange(y),W=S.getCenter(),Y=[],re=this.options.keepBuffer,ae=new H(S.getBottomLeft().subtract([re,-re]),S.getTopRight().add([re,-re]));if(!(isFinite(S.min.x)&&isFinite(S.min.y)&&isFinite(S.max.x)&&isFinite(S.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var ce in this._tiles){var me=this._tiles[ce].coords;(me.z!==this._tileZoom||!ae.contains(new q(me.x,me.y)))&&(this._tiles[ce].current=!1)}if(Math.abs(d-this._tileZoom)>1){this._setView(i,d);return}for(var xe=S.min.y;xe<=S.max.y;xe++)for(var Ne=S.min.x;Ne<=S.max.x;Ne++){var Ot=new q(Ne,xe);if(Ot.z=this._tileZoom,!!this._isValidTile(Ot)){var yt=this._tiles[this._tileCoordsToKey(Ot)];yt?yt.current=!0:Y.push(Ot)}}if(Y.sort(function(zt,oi){return zt.distanceTo(W)-oi.distanceTo(W)}),Y.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Qt=document.createDocumentFragment();for(Ne=0;Ne<Y.length;Ne++)this._addTile(Y[Ne],Qt);this._level.el.appendChild(Qt)}}}},_isValidTile:function(i){var s=this._map.options.crs;if(!s.infinite){var d=this._globalTileRange;if(!s.wrapLng&&(i.x<d.min.x||i.x>d.max.x)||!s.wrapLat&&(i.y<d.min.y||i.y>d.max.y))return!1}if(!this.options.bounds)return!0;var y=this._tileCoordsToBounds(i);return K(this.options.bounds).overlaps(y)},_keyToBounds:function(i){return this._tileCoordsToBounds(this._keyToTileCoords(i))},_tileCoordsToNwSe:function(i){var s=this._map,d=this.getTileSize(),y=i.scaleBy(d),S=y.add(d),W=s.unproject(y,i.z),Y=s.unproject(S,i.z);return[W,Y]},_tileCoordsToBounds:function(i){var s=this._tileCoordsToNwSe(i),d=new X(s[0],s[1]);return this.options.noWrap||(d=this._map.wrapLatLngBounds(d)),d},_tileCoordsToKey:function(i){return i.x+":"+i.y+":"+i.z},_keyToTileCoords:function(i){var s=i.split(":"),d=new q(+s[0],+s[1]);return d.z=+s[2],d},_removeTile:function(i){var s=this._tiles[i];s&&(Ke(s.el),delete this._tiles[i],this.fire("tileunload",{tile:s.el,coords:this._keyToTileCoords(i)}))},_initTile:function(i){Re(i,"leaflet-tile");var s=this.getTileSize();i.style.width=s.x+"px",i.style.height=s.y+"px",i.onselectstart=m,i.onmousemove=m,ge.ielt9&&this.options.opacity<1&&Zt(i,this.options.opacity)},_addTile:function(i,s){var d=this._getTilePos(i),y=this._tileCoordsToKey(i),S=this.createTile(this._wrapCoords(i),l(this._tileReady,this,i));this._initTile(S),this.createTile.length<2&&k(l(this._tileReady,this,i,null,S)),ht(S,d),this._tiles[y]={el:S,coords:i,current:!0},s.appendChild(S),this.fire("tileloadstart",{tile:S,coords:i})},_tileReady:function(i,s,d){s&&this.fire("tileerror",{error:s,tile:d,coords:i});var y=this._tileCoordsToKey(i);d=this._tiles[y],d&&(d.loaded=+new Date,this._map._fadeAnimated?(Zt(d.el,0),O(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this)):(d.active=!0,this._pruneTiles()),s||(Re(d.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:d.el,coords:i})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ge.ielt9||!this._map._fadeAnimated?k(this._pruneTiles,this):setTimeout(l(this._pruneTiles,this),250)))},_getTilePos:function(i){return i.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(i){var s=new q(this._wrapX?p(i.x,this._wrapX):i.x,this._wrapY?p(i.y,this._wrapY):i.y);return s.z=i.z,s},_pxBoundsToTileRange:function(i){var s=this.getTileSize();return new H(i.min.unscaleBy(s).floor(),i.max.unscaleBy(s).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var i in this._tiles)if(!this._tiles[i].loaded)return!1;return!0}});function w_(i){return new Ki(i)}var ai=Ki.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(i,s){this._url=i,s=g(this,s),s.detectRetina&&ge.retina&&s.maxZoom>0?(s.tileSize=Math.floor(s.tileSize/2),s.zoomReverse?(s.zoomOffset--,s.minZoom=Math.min(s.maxZoom,s.minZoom+1)):(s.zoomOffset++,s.maxZoom=Math.max(s.minZoom,s.maxZoom-1)),s.minZoom=Math.max(0,s.minZoom)):s.zoomReverse?s.minZoom=Math.min(s.maxZoom,s.minZoom):s.maxZoom=Math.max(s.minZoom,s.maxZoom),typeof s.subdomains=="string"&&(s.subdomains=s.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(i,s){return this._url===i&&s===void 0&&(s=!0),this._url=i,s||this.redraw(),this},createTile:function(i,s){var d=document.createElement("img");return Se(d,"load",l(this._tileOnLoad,this,s,d)),Se(d,"error",l(this._tileOnError,this,s,d)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(d.referrerPolicy=this.options.referrerPolicy),d.alt="",d.src=this.getTileUrl(i),d},getTileUrl:function(i){var s={r:ge.retina?"@2x":"",s:this._getSubdomain(i),x:i.x,y:i.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var d=this._globalTileRange.max.y-i.y;this.options.tms&&(s.y=d),s["-y"]=d}return E(this._url,a(s,this.options))},_tileOnLoad:function(i,s){ge.ielt9?setTimeout(l(i,this,null,s),0):i(null,s)},_tileOnError:function(i,s,d){var y=this.options.errorTileUrl;y&&s.getAttribute("src")!==y&&(s.src=y),i(d,s)},_onTileRemove:function(i){i.tile.onload=null},_getZoomForUrl:function(){var i=this._tileZoom,s=this.options.maxZoom,d=this.options.zoomReverse,y=this.options.zoomOffset;return d&&(i=s-i),i+y},_getSubdomain:function(i){var s=Math.abs(i.x+i.y)%this.options.subdomains.length;return this.options.subdomains[s]},_abortLoading:function(){var i,s;for(i in this._tiles)if(this._tiles[i].coords.z!==this._tileZoom&&(s=this._tiles[i].el,s.onload=m,s.onerror=m,!s.complete)){s.src=w;var d=this._tiles[i].coords;Ke(s),delete this._tiles[i],this.fire("tileabort",{tile:s,coords:d})}},_removeTile:function(i){var s=this._tiles[i];if(s)return s.el.setAttribute("src",w),Ki.prototype._removeTile.call(this,i)},_tileReady:function(i,s,d){if(!(!this._map||d&&d.getAttribute("src")===w))return Ki.prototype._tileReady.call(this,i,s,d)}});function xf(i,s){return new ai(i,s)}var Cf=ai.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(i,s){this._url=i;var d=a({},this.defaultWmsParams);for(var y in s)y in this.options||(d[y]=s[y]);s=g(this,s);var S=s.detectRetina&&ge.retina?2:1,W=this.getTileSize();d.width=W.x*S,d.height=W.y*S,this.wmsParams=d},onAdd:function(i){this._crs=this.options.crs||i.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var s=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[s]=this._crs.code,ai.prototype.onAdd.call(this,i)},getTileUrl:function(i){var s=this._tileCoordsToNwSe(i),d=this._crs,y=ee(d.project(s[0]),d.project(s[1])),S=y.min,W=y.max,Y=(this._wmsVersion>=1.3&&this._crs===mf?[S.y,S.x,W.y,W.x]:[S.x,S.y,W.x,W.y]).join(","),re=ai.prototype.getTileUrl.call(this,i);return re+C(this.wmsParams,re,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Y},setParams:function(i,s){return a(this.wmsParams,i),s||this.redraw(),this}});function x_(i,s){return new Cf(i,s)}ai.WMS=Cf,xf.wms=x_;var Gr=gr.extend({options:{padding:.1},initialize:function(i){g(this,i),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Re(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var i={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(i.zoomanim=this._onAnimZoom),i},_onAnimZoom:function(i){this._updateTransform(i.center,i.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(i,s){var d=this._map.getZoomScale(s,this._zoom),y=this._map.getSize().multiplyBy(.5+this.options.padding),S=this._map.project(this._center,s),W=y.multiplyBy(-d).add(S).subtract(this._map._getNewPixelOrigin(i,s));ge.any3d?On(this._container,W,d):ht(this._container,W)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var i in this._layers)this._layers[i]._reset()},_onZoomEnd:function(){for(var i in this._layers)this._layers[i]._project()},_updatePaths:function(){for(var i in this._layers)this._layers[i]._update()},_update:function(){var i=this.options.padding,s=this._map.getSize(),d=this._map.containerPointToLayerPoint(s.multiplyBy(-i)).round();this._bounds=new H(d,d.add(s.multiplyBy(1+i*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Tf=Gr.extend({options:{tolerance:0},getEvents:function(){var i=Gr.prototype.getEvents.call(this);return i.viewprereset=this._onViewPreReset,i},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Gr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var i=this._container=document.createElement("canvas");Se(i,"mousemove",this._onMouseMove,this),Se(i,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Se(i,"mouseout",this._handleMouseOut,this),i._leaflet_disable_events=!0,this._ctx=i.getContext("2d")},_destroyContainer:function(){O(this._redrawRequest),delete this._ctx,Ke(this._container),qe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var i;this._redrawBounds=null;for(var s in this._layers)i=this._layers[s],i._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Gr.prototype._update.call(this);var i=this._bounds,s=this._container,d=i.getSize(),y=ge.retina?2:1;ht(s,i.min),s.width=y*d.x,s.height=y*d.y,s.style.width=d.x+"px",s.style.height=d.y+"px",ge.retina&&this._ctx.scale(2,2),this._ctx.translate(-i.min.x,-i.min.y),this.fire("update")}},_reset:function(){Gr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(i){this._updateDashArray(i),this._layers[c(i)]=i;var s=i._order={layer:i,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=s),this._drawLast=s,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(i){this._requestRedraw(i)},_removePath:function(i){var s=i._order,d=s.next,y=s.prev;d?d.prev=y:this._drawLast=y,y?y.next=d:this._drawFirst=d,delete i._order,delete this._layers[c(i)],this._requestRedraw(i)},_updatePath:function(i){this._extendRedrawBounds(i),i._project(),i._update(),this._requestRedraw(i)},_updateStyle:function(i){this._updateDashArray(i),this._requestRedraw(i)},_updateDashArray:function(i){if(typeof i.options.dashArray=="string"){var s=i.options.dashArray.split(/[, ]+/),d=[],y,S;for(S=0;S<s.length;S++){if(y=Number(s[S]),isNaN(y))return;d.push(y)}i.options._dashArray=d}else i.options._dashArray=i.options.dashArray},_requestRedraw:function(i){this._map&&(this._extendRedrawBounds(i),this._redrawRequest=this._redrawRequest||k(this._redraw,this))},_extendRedrawBounds:function(i){if(i._pxBounds){var s=(i.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new H,this._redrawBounds.extend(i._pxBounds.min.subtract([s,s])),this._redrawBounds.extend(i._pxBounds.max.add([s,s]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var i=this._redrawBounds;if(i){var s=i.getSize();this._ctx.clearRect(i.min.x,i.min.y,s.x,s.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var i,s=this._redrawBounds;if(this._ctx.save(),s){var d=s.getSize();this._ctx.beginPath(),this._ctx.rect(s.min.x,s.min.y,d.x,d.y),this._ctx.clip()}this._drawing=!0;for(var y=this._drawFirst;y;y=y.next)i=y.layer,(!s||i._pxBounds&&i._pxBounds.intersects(s))&&i._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(i,s){if(this._drawing){var d,y,S,W,Y=i._parts,re=Y.length,ae=this._ctx;if(re){for(ae.beginPath(),d=0;d<re;d++){for(y=0,S=Y[d].length;y<S;y++)W=Y[d][y],ae[y?"lineTo":"moveTo"](W.x,W.y);s&&ae.closePath()}this._fillStroke(ae,i)}}},_updateCircle:function(i){if(!(!this._drawing||i._empty())){var s=i._point,d=this._ctx,y=Math.max(Math.round(i._radius),1),S=(Math.max(Math.round(i._radiusY),1)||y)/y;S!==1&&(d.save(),d.scale(1,S)),d.beginPath(),d.arc(s.x,s.y/S,y,0,Math.PI*2,!1),S!==1&&d.restore(),this._fillStroke(d,i)}},_fillStroke:function(i,s){var d=s.options;d.fill&&(i.globalAlpha=d.fillOpacity,i.fillStyle=d.fillColor||d.color,i.fill(d.fillRule||"evenodd")),d.stroke&&d.weight!==0&&(i.setLineDash&&i.setLineDash(s.options&&s.options._dashArray||[]),i.globalAlpha=d.opacity,i.lineWidth=d.weight,i.strokeStyle=d.color,i.lineCap=d.lineCap,i.lineJoin=d.lineJoin,i.stroke())},_onClick:function(i){for(var s=this._map.mouseEventToLayerPoint(i),d,y,S=this._drawFirst;S;S=S.next)d=S.layer,d.options.interactive&&d._containsPoint(s)&&(!(i.type==="click"||i.type==="preclick")||!this._map._draggableMoved(d))&&(y=d);this._fireEvent(y?[y]:!1,i)},_onMouseMove:function(i){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var s=this._map.mouseEventToLayerPoint(i);this._handleMouseHover(i,s)}},_handleMouseOut:function(i){var s=this._hoveredLayer;s&&(ot(this._container,"leaflet-interactive"),this._fireEvent([s],i,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(i,s){if(!this._mouseHoverThrottled){for(var d,y,S=this._drawFirst;S;S=S.next)d=S.layer,d.options.interactive&&d._containsPoint(s)&&(y=d);y!==this._hoveredLayer&&(this._handleMouseOut(i),y&&(Re(this._container,"leaflet-interactive"),this._fireEvent([y],i,"mouseover"),this._hoveredLayer=y)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,i),this._mouseHoverThrottled=!0,setTimeout(l(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(i,s,d){this._map._fireDOMEvent(s,d||s.type,i)},_bringToFront:function(i){var s=i._order;if(s){var d=s.next,y=s.prev;if(d)d.prev=y;else return;y?y.next=d:d&&(this._drawFirst=d),s.prev=this._drawLast,this._drawLast.next=s,s.next=null,this._drawLast=s,this._requestRedraw(i)}},_bringToBack:function(i){var s=i._order;if(s){var d=s.next,y=s.prev;if(y)y.next=d;else return;d?d.prev=y:y&&(this._drawLast=y),s.prev=null,s.next=this._drawFirst,this._drawFirst.prev=s,this._drawFirst=s,this._requestRedraw(i)}}});function Ef(i){return ge.canvas?new Tf(i):null}var Qi=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(i){return document.createElement("<lvml:"+i+' class="lvml">')}}catch(i){}return function(i){return document.createElement("<"+i+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),C_={_initContainer:function(){this._container=ze("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Gr.prototype._update.call(this),this.fire("update"))},_initPath:function(i){var s=i._container=Qi("shape");Re(s,"leaflet-vml-shape "+(this.options.className||"")),s.coordsize="1 1",i._path=Qi("path"),s.appendChild(i._path),this._updateStyle(i),this._layers[c(i)]=i},_addPath:function(i){var s=i._container;this._container.appendChild(s),i.options.interactive&&i.addInteractiveTarget(s)},_removePath:function(i){var s=i._container;Ke(s),i.removeInteractiveTarget(s),delete this._layers[c(i)]},_updateStyle:function(i){var s=i._stroke,d=i._fill,y=i.options,S=i._container;S.stroked=!!y.stroke,S.filled=!!y.fill,y.stroke?(s||(s=i._stroke=Qi("stroke")),S.appendChild(s),s.weight=y.weight+"px",s.color=y.color,s.opacity=y.opacity,y.dashArray?s.dashStyle=x(y.dashArray)?y.dashArray.join(" "):y.dashArray.replace(/( *, *)/g," "):s.dashStyle="",s.endcap=y.lineCap.replace("butt","flat"),s.joinstyle=y.lineJoin):s&&(S.removeChild(s),i._stroke=null),y.fill?(d||(d=i._fill=Qi("fill")),S.appendChild(d),d.color=y.fillColor||y.color,d.opacity=y.fillOpacity):d&&(S.removeChild(d),i._fill=null)},_updateCircle:function(i){var s=i._point.round(),d=Math.round(i._radius),y=Math.round(i._radiusY||d);this._setPath(i,i._empty()?"M0 0":"AL "+s.x+","+s.y+" "+d+","+y+" 0,"+65535*360)},_setPath:function(i,s){i._path.v=s},_bringToFront:function(i){Jn(i._container)},_bringToBack:function(i){ei(i._container)}},bo=ge.vml?Qi:_e,Ji=Gr.extend({_initContainer:function(){this._container=bo("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=bo("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ke(this._container),qe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Gr.prototype._update.call(this);var i=this._bounds,s=i.getSize(),d=this._container;(!this._svgSize||!this._svgSize.equals(s))&&(this._svgSize=s,d.setAttribute("width",s.x),d.setAttribute("height",s.y)),ht(d,i.min),d.setAttribute("viewBox",[i.min.x,i.min.y,s.x,s.y].join(" ")),this.fire("update")}},_initPath:function(i){var s=i._path=bo("path");i.options.className&&Re(s,i.options.className),i.options.interactive&&Re(s,"leaflet-interactive"),this._updateStyle(i),this._layers[c(i)]=i},_addPath:function(i){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(i._path),i.addInteractiveTarget(i._path)},_removePath:function(i){Ke(i._path),i.removeInteractiveTarget(i._path),delete this._layers[c(i)]},_updatePath:function(i){i._project(),i._update()},_updateStyle:function(i){var s=i._path,d=i.options;s&&(d.stroke?(s.setAttribute("stroke",d.color),s.setAttribute("stroke-opacity",d.opacity),s.setAttribute("stroke-width",d.weight),s.setAttribute("stroke-linecap",d.lineCap),s.setAttribute("stroke-linejoin",d.lineJoin),d.dashArray?s.setAttribute("stroke-dasharray",d.dashArray):s.removeAttribute("stroke-dasharray"),d.dashOffset?s.setAttribute("stroke-dashoffset",d.dashOffset):s.removeAttribute("stroke-dashoffset")):s.setAttribute("stroke","none"),d.fill?(s.setAttribute("fill",d.fillColor||d.color),s.setAttribute("fill-opacity",d.fillOpacity),s.setAttribute("fill-rule",d.fillRule||"evenodd")):s.setAttribute("fill","none"))},_updatePoly:function(i,s){this._setPath(i,we(i._parts,s))},_updateCircle:function(i){var s=i._point,d=Math.max(Math.round(i._radius),1),y=Math.max(Math.round(i._radiusY),1)||d,S="a"+d+","+y+" 0 1,0 ",W=i._empty()?"M0 0":"M"+(s.x-d)+","+s.y+S+d*2+",0 "+S+-d*2+",0 ";this._setPath(i,W)},_setPath:function(i,s){i._path.setAttribute("d",s)},_bringToFront:function(i){Jn(i._path)},_bringToBack:function(i){ei(i._path)}});ge.vml&&Ji.include(C_);function Mf(i){return ge.svg||ge.vml?new Ji(i):null}Ae.include({getRenderer:function(i){var s=i.options.renderer||this._getPaneRenderer(i.options.pane)||this.options.renderer||this._renderer;return s||(s=this._renderer=this._createRenderer()),this.hasLayer(s)||this.addLayer(s),s},_getPaneRenderer:function(i){if(i==="overlayPane"||i===void 0)return!1;var s=this._paneRenderers[i];return s===void 0&&(s=this._createRenderer({pane:i}),this._paneRenderers[i]=s),s},_createRenderer:function(i){return this.options.preferCanvas&&Ef(i)||Mf(i)}});var Sf=ni.extend({initialize:function(i,s){ni.prototype.initialize.call(this,this._boundsToLatLngs(i),s)},setBounds:function(i){return this.setLatLngs(this._boundsToLatLngs(i))},_boundsToLatLngs:function(i){return i=K(i),[i.getSouthWest(),i.getNorthWest(),i.getNorthEast(),i.getSouthEast()]}});function T_(i,s){return new Sf(i,s)}Ji.create=bo,Ji.pointsToPath=we,qr.geometryToLayer=fo,qr.coordsToLatLng=yl,qr.coordsToLatLngs=ho,qr.latLngToCoords=bl,qr.latLngsToCoords=po,qr.getFeature=ii,qr.asFeature=mo,Ae.mergeOptions({boxZoom:!0});var Pf=Er.extend({initialize:function(i){this._map=i,this._container=i._container,this._pane=i._panes.overlayPane,this._resetStateTimeout=0,i.on("unload",this._destroy,this)},addHooks:function(){Se(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){qe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ke(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(i){if(!i.shiftKey||i.which!==1&&i.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Vi(),tl(),this._startPoint=this._map.mouseEventToContainerPoint(i),Se(document,{contextmenu:Dn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(i){this._moved||(this._moved=!0,this._box=ze("div","leaflet-zoom-box",this._container),Re(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(i);var s=new H(this._point,this._startPoint),d=s.getSize();ht(this._box,s.min),this._box.style.width=d.x+"px",this._box.style.height=d.y+"px"},_finish:function(){this._moved&&(Ke(this._box),ot(this._container,"leaflet-crosshair")),Ui(),rl(),qe(document,{contextmenu:Dn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(i){if(!(i.which!==1&&i.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(l(this._resetState,this),0);var s=new X(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(s).fire("boxzoomend",{boxZoomBounds:s})}},_onKeyDown:function(i){i.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ae.addInitHook("addHandler","boxZoom",Pf),Ae.mergeOptions({doubleClickZoom:!0});var Rf=Er.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(i){var s=this._map,d=s.getZoom(),y=s.options.zoomDelta,S=i.originalEvent.shiftKey?d-y:d+y;s.options.doubleClickZoom==="center"?s.setZoom(S):s.setZoomAround(i.containerPoint,S)}});Ae.addInitHook("addHandler","doubleClickZoom",Rf),Ae.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Of=Er.extend({addHooks:function(){if(!this._draggable){var i=this._map;this._draggable=new ln(i._mapPane,i._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),i.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),i.on("zoomend",this._onZoomEnd,this),i.whenReady(this._onZoomEnd,this))}Re(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ot(this._map._container,"leaflet-grab"),ot(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var i=this._map;if(i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var s=K(this._map.options.maxBounds);this._offsetLimit=ee(this._map.latLngToContainerPoint(s.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(s.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(i){if(this._map.options.inertia){var s=this._lastTime=+new Date,d=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(d),this._times.push(s),this._prunePositions(s)}this._map.fire("move",i).fire("drag",i)},_prunePositions:function(i){for(;this._positions.length>1&&i-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var i=this._map.getSize().divideBy(2),s=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=s.subtract(i).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(i,s){return i-(i-s)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var i=this._draggable._newPos.subtract(this._draggable._startPos),s=this._offsetLimit;i.x<s.min.x&&(i.x=this._viscousLimit(i.x,s.min.x)),i.y<s.min.y&&(i.y=this._viscousLimit(i.y,s.min.y)),i.x>s.max.x&&(i.x=this._viscousLimit(i.x,s.max.x)),i.y>s.max.y&&(i.y=this._viscousLimit(i.y,s.max.y)),this._draggable._newPos=this._draggable._startPos.add(i)}},_onPreDragWrap:function(){var i=this._worldWidth,s=Math.round(i/2),d=this._initialWorldOffset,y=this._draggable._newPos.x,S=(y-s+d)%i+s-d,W=(y+s+d)%i-s-d,Y=Math.abs(S+d)<Math.abs(W+d)?S:W;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Y},_onDragEnd:function(i){var s=this._map,d=s.options,y=!d.inertia||i.noInertia||this._times.length<2;if(s.fire("dragend",i),y)s.fire("moveend");else{this._prunePositions(+new Date);var S=this._lastPos.subtract(this._positions[0]),W=(this._lastTime-this._times[0])/1e3,Y=d.easeLinearity,re=S.multiplyBy(Y/W),ae=re.distanceTo([0,0]),ce=Math.min(d.inertiaMaxSpeed,ae),me=re.multiplyBy(ce/ae),xe=ce/(d.inertiaDeceleration*Y),Ne=me.multiplyBy(-xe/2).round();!Ne.x&&!Ne.y?s.fire("moveend"):(Ne=s._limitOffset(Ne,s.options.maxBounds),k(function(){s.panBy(Ne,{duration:xe,easeLinearity:Y,noMoveStart:!0,animate:!0})}))}}});Ae.addInitHook("addHandler","dragging",Of),Ae.mergeOptions({keyboard:!0,keyboardPanDelta:80});var kf=Er.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(i){this._map=i,this._setPanDelta(i.options.keyboardPanDelta),this._setZoomDelta(i.options.zoomDelta)},addHooks:function(){var i=this._map._container;i.tabIndex<=0&&(i.tabIndex="0"),Se(i,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),qe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var i=document.body,s=document.documentElement,d=i.scrollTop||s.scrollTop,y=i.scrollLeft||s.scrollLeft;this._map._container.focus(),window.scrollTo(y,d)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(i){var s=this._panKeys={},d=this.keyCodes,y,S;for(y=0,S=d.left.length;y<S;y++)s[d.left[y]]=[-1*i,0];for(y=0,S=d.right.length;y<S;y++)s[d.right[y]]=[i,0];for(y=0,S=d.down.length;y<S;y++)s[d.down[y]]=[0,i];for(y=0,S=d.up.length;y<S;y++)s[d.up[y]]=[0,-1*i]},_setZoomDelta:function(i){var s=this._zoomKeys={},d=this.keyCodes,y,S;for(y=0,S=d.zoomIn.length;y<S;y++)s[d.zoomIn[y]]=i;for(y=0,S=d.zoomOut.length;y<S;y++)s[d.zoomOut[y]]=-i},_addHooks:function(){Se(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){qe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(i){if(!(i.altKey||i.ctrlKey||i.metaKey)){var s=i.keyCode,d=this._map,y;if(s in this._panKeys){if(!d._panAnim||!d._panAnim._inProgress)if(y=this._panKeys[s],i.shiftKey&&(y=$(y).multiplyBy(3)),d.options.maxBounds&&(y=d._limitOffset($(y),d.options.maxBounds)),d.options.worldCopyJump){var S=d.wrapLatLng(d.unproject(d.project(d.getCenter()).add(y)));d.panTo(S)}else d.panBy(y)}else if(s in this._zoomKeys)d.setZoom(d.getZoom()+(i.shiftKey?3:1)*this._zoomKeys[s]);else if(s===27&&d._popup&&d._popup.options.closeOnEscapeKey)d.closePopup();else return;Dn(i)}}});Ae.addInitHook("addHandler","keyboard",kf),Ae.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Nf=Er.extend({addHooks:function(){Se(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){qe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(i){var s=tf(i),d=this._map.options.wheelDebounceTime;this._delta+=s,this._lastMousePos=this._map.mouseEventToContainerPoint(i),this._startTime||(this._startTime=+new Date);var y=Math.max(d-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(l(this._performZoom,this),y),Dn(i)},_performZoom:function(){var i=this._map,s=i.getZoom(),d=this._map.options.zoomSnap||0;i._stop();var y=this._delta/(this._map.options.wheelPxPerZoomLevel*4),S=4*Math.log(2/(1+Math.exp(-Math.abs(y))))/Math.LN2,W=d?Math.ceil(S/d)*d:S,Y=i._limitZoom(s+(this._delta>0?W:-W))-s;this._delta=0,this._startTime=null,Y&&(i.options.scrollWheelZoom==="center"?i.setZoom(s+Y):i.setZoomAround(this._lastMousePos,s+Y))}});Ae.addInitHook("addHandler","scrollWheelZoom",Nf);var E_=600;Ae.mergeOptions({tapHold:ge.touchNative&&ge.safari&&ge.mobile,tapTolerance:15});var Df=Er.extend({addHooks:function(){Se(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){qe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(i){if(clearTimeout(this._holdTimeout),i.touches.length===1){var s=i.touches[0];this._startPos=this._newPos=new q(s.clientX,s.clientY),this._holdTimeout=setTimeout(l(function(){this._cancel(),this._isTapValid()&&(Se(document,"touchend",wt),Se(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",s))},this),E_),Se(document,"touchend touchcancel contextmenu",this._cancel,this),Se(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function i(){qe(document,"touchend",wt),qe(document,"touchend touchcancel",i)},_cancel:function(){clearTimeout(this._holdTimeout),qe(document,"touchend touchcancel contextmenu",this._cancel,this),qe(document,"touchmove",this._onMove,this)},_onMove:function(i){var s=i.touches[0];this._newPos=new q(s.clientX,s.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(i,s){var d=new MouseEvent(i,{bubbles:!0,cancelable:!0,view:window,screenX:s.screenX,screenY:s.screenY,clientX:s.clientX,clientY:s.clientY});d._simulated=!0,s.target.dispatchEvent(d)}});Ae.addInitHook("addHandler","tapHold",Df),Ae.mergeOptions({touchZoom:ge.touch,bounceAtZoomLimits:!0});var Lf=Er.extend({addHooks:function(){Re(this._map._container,"leaflet-touch-zoom"),Se(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ot(this._map._container,"leaflet-touch-zoom"),qe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(i){var s=this._map;if(!(!i.touches||i.touches.length!==2||s._animatingZoom||this._zooming)){var d=s.mouseEventToContainerPoint(i.touches[0]),y=s.mouseEventToContainerPoint(i.touches[1]);this._centerPoint=s.getSize()._divideBy(2),this._startLatLng=s.containerPointToLatLng(this._centerPoint),s.options.touchZoom!=="center"&&(this._pinchStartLatLng=s.containerPointToLatLng(d.add(y)._divideBy(2))),this._startDist=d.distanceTo(y),this._startZoom=s.getZoom(),this._moved=!1,this._zooming=!0,s._stop(),Se(document,"touchmove",this._onTouchMove,this),Se(document,"touchend touchcancel",this._onTouchEnd,this),wt(i)}},_onTouchMove:function(i){if(!(!i.touches||i.touches.length!==2||!this._zooming)){var s=this._map,d=s.mouseEventToContainerPoint(i.touches[0]),y=s.mouseEventToContainerPoint(i.touches[1]),S=d.distanceTo(y)/this._startDist;if(this._zoom=s.getScaleZoom(S,this._startZoom),!s.options.bounceAtZoomLimits&&(this._zoom<s.getMinZoom()&&S<1||this._zoom>s.getMaxZoom()&&S>1)&&(this._zoom=s._limitZoom(this._zoom)),s.options.touchZoom==="center"){if(this._center=this._startLatLng,S===1)return}else{var W=d._add(y)._divideBy(2)._subtract(this._centerPoint);if(S===1&&W.x===0&&W.y===0)return;this._center=s.unproject(s.project(this._pinchStartLatLng,this._zoom).subtract(W),this._zoom)}this._moved||(s._moveStart(!0,!1),this._moved=!0),O(this._animRequest);var Y=l(s._move,s,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=k(Y,this,!0),wt(i)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,O(this._animRequest),qe(document,"touchmove",this._onTouchMove,this),qe(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Ae.addInitHook("addHandler","touchZoom",Lf),Ae.BoxZoom=Pf,Ae.DoubleClickZoom=Rf,Ae.Drag=Of,Ae.Keyboard=kf,Ae.ScrollWheelZoom=Nf,Ae.TapHold=Df,Ae.TouchZoom=Lf,r.Bounds=H,r.Browser=ge,r.CRS=le,r.Canvas=Tf,r.Circle=gl,r.CircleMarker=co,r.Class=j,r.Control=vr,r.DivIcon=wf,r.DivOverlay=Mr,r.DomEvent=Hb,r.DomUtil=jb,r.Draggable=ln,r.Evented=U,r.FeatureGroup=Vr,r.GeoJSON=qr,r.GridLayer=Ki,r.Handler=Er,r.Icon=ri,r.ImageOverlay=vo,r.LatLng=J,r.LatLngBounds=X,r.Layer=gr,r.LayerGroup=ti,r.LineUtil=r_,r.Map=Ae,r.Marker=uo,r.Mixin=Zb,r.Path=un,r.Point=q,r.PolyUtil=Kb,r.Polygon=ni,r.Polyline=Ur,r.Popup=go,r.PosAnimation=rf,r.Projection=n_,r.Rectangle=Sf,r.Renderer=Gr,r.SVG=Ji,r.SVGOverlay=_f,r.TileLayer=ai,r.Tooltip=yo,r.Transformation=pe,r.Util=F,r.VideoOverlay=bf,r.bind=l,r.bounds=ee,r.canvas=Ef,r.circle=d_,r.circleMarker=c_,r.control=Yi,r.divIcon=__,r.extend=a,r.featureGroup=s_,r.geoJSON=yf,r.geoJson=p_,r.gridLayer=w_,r.icon=l_,r.imageOverlay=m_,r.latLng=ne,r.latLngBounds=K,r.layerGroup=o_,r.map=Vb,r.marker=u_,r.point=$,r.polygon=h_,r.polyline=f_,r.popup=y_,r.rectangle=T_,r.setOptions=g,r.stamp=c,r.svg=Mf,r.svgOverlay=g_,r.tileLayer=xf,r.tooltip=b_,r.transformation=oe,r.version=n,r.videoOverlay=v_;var M_=window.L;r.noConflict=function(){return window.L=M_,this},window.L=r})})(Gu,Gu.exports);var MN=Gu.exports;const Ar=N.getDefaultExportFromCjs(MN),SN=Object.freeze({usa:"united states",switzerland:"switzerland country",uk:"united kingdom"});function PN(e,t){const r=SN[e.toLowerCase()];return r&&(t[r]=e),r||e}function RN(e,t){return t[e.toLowerCase()]||e}const ON=(e,t)=>{const{app:r}=bt(),[n,a]=Q.useState([]),o=Q.useRef(e),l=Q.useCallback(()=>yr(exports,null,function*(){if(!r||!e)return;const u={},c=tk(t),f=yield r.httpClient.post("api/v1/geo/locations",ie({locations:e.map(_=>({name:PN(_.name,u)}))},c&&{geoLevel:c})),p=o.current!==e;if(!f||p)return;const m=f.reduce((_,g)=>{const C=he(ie({},g),{name:RN(g.name,u)});return _[C.name]=C,_},{}),h=[],b=e.map(_=>(m[_.name]||h.push(_.name),ie(ie({},_),m[_.name]?{coordinates:m[_.name].latLng}:null)));h.length&&console.warn(`Locations "${h.join(", ")}" coordinates not found`),a(b)}),[r,a,e,t]);return Q.useEffect(()=>{e&&(o.current=e,e.some(c=>!!c.coordinates)?a(e):l())},[e,r,l,a]),n};function kN(e){let t=Number.MAX_VALUE,r=Number.MIN_VALUE;return e.forEach(n=>{isNaN(n)||(t=Math.min(t,n),r=Math.max(r,n))}),{min:t,max:r}}function NN(e,t=4,r=24){let n=0;const{min:a,max:o}=kN(e.map(({value:u})=>u)),l=r-t;return n=o-a,e.map(u=>n===0?t:(u.value-a)/n*l+t)}const DN=()=>{const{app:e}=bt(),[t,r]=Q.useState(null),n=Q.useCallback(()=>yr(exports,null,function*(){if(!e)return;const a=yield e.httpClient.get("api/v1/settings/system");a&&r(a.geo)}),[r,e]);return Q.useEffect(()=>{n()},[e,n]),t},LN="#00cee6",AN=N.createDataColoringFunction({getValueFromDataStructure:({colorValue:e})=>parseFloat(`${e}`),applyColorToDataStructure:(e,t)=>he(ie({},e),{color:t})});function IN(e,t){return t?AN(e.map(({colorValue:r})=>({colorValue:r})),t).map(({color:r})=>r):e.map(()=>LN)}function Nv(e){return{isLight:["hollow","filled-light"].includes(e),isFilled:["filled","filled-light"].includes(e)}}function Dv(e){const{color:t,size:r,fill:n,blur:a}=e,{isFilled:o}=Nv(n),c=a?{filled:.1,"filled-light":.1,hollow:.2,"hollow-bold":.25}[n]:{filled:.5,"filled-light":.2,hollow:.35,"hollow-bold":.9}[n];return{radius:r,fillOpacity:c,opacity:c,fillColor:o?t:"transparent",color:o?"transparent":t,stroke:!o,weight:o?0:2,customStyle:e}}function zN({coordinates:e,style:t}){const r=new Ar.CircleMarker({lat:e.lat,lng:e.lng},Dv(t));return r.on("mouseover",$N),r.on("mouseout",WN),r}function $N(e){const t=e.target,r=t.options.customStyle,{isFilled:n,isLight:a}=Nv(r.fill);return t.setStyle(n?{stroke:!0,weight:2,opacity:a?.5:.7,fillOpacity:a?.5:.7}:{weight:3,opacity:a?.6:1}),t}function WN(e){const t=e.target,r=t.options.customStyle;t.setStyle(Dv(r))}function FN(e){e.forEach(t=>t.remove())}function jN(e,t){const r=`
|
|
19
|
-
© <a href='https://www.mapbox.com/about/maps/'>Mapbox</a>
|
|
20
|
-
© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>
|
|
21
|
-
<strong>
|
|
22
|
-
<a href='https://www.mapbox.com/map-feedback/' target='_blank'>
|
|
23
|
-
Improve this map
|
|
24
|
-
</a>
|
|
25
|
-
</strong>`,n="© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>",a=Ar.control.attribution();return t.indexOf("mapbox")>-1?a.addAttribution(r).addTo(e):t.indexOf("openstreetmap")>-1&&a.addAttribution(n).addTo(e),a}function BN(e,t){t.length&&e.fitBounds(t.map(r=>[r.getLatLng().lat,r.getLatLng().lng]),{animate:!0,maxZoom:4})}var HN="Expected a function";function VN(e,t,r){if(typeof e!="function")throw new TypeError(HN);return setTimeout(function(){e.apply(void 0,r)},t)}var UN=VN,qN=UN,GN=Uc,YN=N.toNumber_1,XN=GN(function(e,t,r){return qN(e,YN(t)||0,r)}),ZN=XN;const KN=N.getDefaultExportFromCjs(ZN);var Fo=(e=>(e[e.YES=0]="YES",e[e.NO=1]="NO",e[e.LOADING=2]="LOADING",e))(Fo||{});const QN="#9EA2AB",Ah="N/A",Ll=10,JN=`
|
|
26
|
-
<svg
|
|
27
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
28
|
-
width="24"
|
|
29
|
-
height="24"
|
|
30
|
-
viewBox="0 0 24 24"
|
|
31
|
-
fill="green"
|
|
32
|
-
class="csdk-animate-spin"
|
|
33
|
-
>
|
|
34
|
-
<path
|
|
35
|
-
fillRule="evenodd"
|
|
36
|
-
clipRule="evenodd"
|
|
37
|
-
d="M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z"
|
|
38
|
-
fill="transparent"
|
|
39
|
-
fillOpacity="0.3"
|
|
40
|
-
/>
|
|
41
|
-
<path
|
|
42
|
-
fillRule="evenodd"
|
|
43
|
-
clipRule="evenodd"
|
|
44
|
-
d="M20 12C20 16.4183 16.4183 20 12 20C11.2844 20 10.5908 19.906 9.93078 19.7298C9.96227 19.5889 9.97888 19.4423 9.97888 19.2918C9.97888 18.1873 9.08345 17.2918 7.97888 17.2918C6.87431 17.2918 5.97888 18.1873 5.97888 19.2918C5.97888 20.3964 6.87431 21.2918 7.97888 21.2918C8.56576 21.2918 9.0936 21.0391 9.45946 20.6364C10.2652 20.8731 11.1178 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3V4C16.4183 4 20 7.58172 20 12Z"
|
|
45
|
-
fill="#22C3C3"
|
|
46
|
-
/>
|
|
47
|
-
</svg>
|
|
48
|
-
`,eD=e=>{const t=`
|
|
49
|
-
<div>
|
|
50
|
-
<div>${N.spanSegment("...")}</div>
|
|
51
|
-
<div>${N.spanSegment(`Showing first ${Ll} results`)}</div>
|
|
52
|
-
</div>
|
|
53
|
-
`;return`
|
|
54
|
-
<div>
|
|
55
|
-
${e.slice(0,Ll).map(r=>`<div>${N.spanSegment(r)}</div>`).join("")}
|
|
56
|
-
${e.length>Ll?t:""}
|
|
57
|
-
</div>
|
|
58
|
-
`},Al=e=>`
|
|
59
|
-
<span style="padding-right: 20px">
|
|
60
|
-
${N.spanSegment(e,QN)}
|
|
61
|
-
</span>
|
|
62
|
-
`,tD=()=>`
|
|
63
|
-
<span style="verical-align: bottom">
|
|
64
|
-
${N.spanSegment(JN)}
|
|
65
|
-
</span>
|
|
66
|
-
`,Po=(e,t,r=1)=>{const n=N.formatTooltipValue(t.size,e.value,`${e.value}`),a=N.formatTooltipValue(t.colorBy,e.colorValue,`${e.colorValue}`),o=t.details&&N.isMeasureColumn(t.details)&&N.formatTooltipValue(t.details,e.details,`${e.details}`);return N.tooltipWrapper(`
|
|
67
|
-
<div style="text-align: left">
|
|
68
|
-
<div>${N.spanSegment(e.name)}</div>
|
|
69
|
-
<div class="csdk-scattermap-tooltip-row">
|
|
70
|
-
${t.size?Al(N.getDataOptionTitle(t.size)):""}
|
|
71
|
-
${t.size?N.spanSegment(n):""}
|
|
72
|
-
</div>
|
|
73
|
-
<div class="csdk-scattermap-tooltip-row">
|
|
74
|
-
${t.colorBy?Al(N.getDataOptionTitle(t.colorBy)):""}
|
|
75
|
-
${t.colorBy?N.spanSegment(a||Ah):""}
|
|
76
|
-
</div>
|
|
77
|
-
<div class="csdk-scattermap-tooltip-row">
|
|
78
|
-
${(r===2||r===0)&&t.details?Al(N.getDataOptionTitle(t.details)):""}
|
|
79
|
-
${r===2?tD():""}
|
|
80
|
-
${r===0&&t.details&&N.isMeasureColumn(t.details)?N.spanSegment(o||Ah):""}
|
|
81
|
-
</div>
|
|
82
|
-
<div>
|
|
83
|
-
${r===0&&t.details&&!N.isMeasureColumn(t.details)?eD(e.details):""}
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
`)},rD=600,nD=11,iD=({dataOptions:e,dataSource:t,filters:r=[]})=>{const{app:n}=bt(),a=Q.useCallback(l=>yr(exports,null,function*(){if(!n)return[];const u=e.locations.map((p,m)=>{const h=N.translateCategoryToAttribute(p),b=ek(l)[m];return N.members(h,[b])}),c={dataSource:t,dimensions:[e.details],filters:N.mergeFilters(r,u),count:nD};return(yield Wa(c,n)).rows.map(([p])=>p.text)}),[n,e,t,r]);return Q.useCallback(l=>{if(!e.details||e.details&&!N.isMeasureColumn(e.details)&&!t)return{content:Po(l,e)};if(N.isMeasureColumn(e.details))return{content:Po(l,e,Fo.YES)};const u=new Promise(f=>KN(f,rD)),c=Promise.all([a(l.name),u]).then(([f])=>Po(he(ie({},l),{details:f}),e,Fo.YES));return{content:Po(l,e,Fo.LOADING),postponedContent:c}},[e,t,a])},aD=({chartData:e,dataOptions:t,dataSource:r,filters:n=[],designOptions:a,onDataPointClick:o})=>{const{locations:l}=e,u=DN(),c=ON(l,t.locationLevel),{filters:f}=N.getFilterListAndRelations(n),p=iD({dataOptions:t,dataSource:r,filters:f}),m=Q.useRef(null),h=Q.useRef(null),b=Q.useMemo(()=>NN(c,t.size?a.markers.size.minSize:a.markers.size.defaultSize,t.size?a.markers.size.maxSize:a.markers.size.defaultSize),[c,t,a]),_=Q.useMemo(()=>{var x;return IN(c,(x=t.colorBy)==null?void 0:x.color)},[c,t]),g=Q.useRef([]),C=Q.useRef(Ar.layerGroup([])),M=Q.useRef(null),E=Q.useRef(null);return Q.useEffect(()=>{m.current&&!h.current&&(h.current=Ar.map(m.current,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,worldCopyJump:!0}),C.current.addTo(h.current),h.current.fitWorld())},[]),Q.useEffect(()=>{g.current&&(FN(g.current),g.current=[]),c&&(c.forEach((x,T)=>{if(!x.coordinates)return;const w=zN({coordinates:x.coordinates,style:{color:_[T],size:b[T],fill:a.markers.fill,blur:x.blur}});g.current.push(w),w.addTo(C.current),o&&w.on("click",P=>{o(rk(x),P.originalEvent)}),w.bindTooltip(()=>{const{content:P,postponedContent:R}=p(x);return R==null||R.then(D=>w.setTooltipContent(D)),P})}),BN(h.current,g.current))},[c,_,b,a,p,o]),Q.useEffect(()=>{var x;u&&(M.current&&M.current.remove(),M.current=Ar.tileLayer(u.maps_api_provider,{zoomOffset:-1,tileSize:512}),h.current&&(M.current.addTo(h.current),(x=E.current)==null||x.remove(),E.current=jN(h.current,u.maps_api_provider)))},[u]),V.jsx("div",{className:"csdk-map-container",ref:m,style:{width:"100%",height:"100%"}})},oD=e=>e.type==="scattermap",sD=e=>"locations"in e,lD=e=>"markers"in e,uD=e=>!!e.chartData&&oD(e.chartData)&&sD(e.dataOptions)&&lD(e.designOptions),cD=(e,{onDataPointClick:t,onDataPointContextMenu:r,onDataPointsSelected:n}={})=>{var o;const a={chart:{events:{}},plotOptions:{series:{point:{events:{click:()=>{}}}}}};return n&&(a.chart.zoomType="x",n=n,["scatter","bubble"].includes((o=e.chart)==null?void 0:o.type)&&(a.chart.zoomType="xy",n=n),a.chart.events.selection=l=>{l.preventDefault();const{xAxis:u,yAxis:c,originalEvent:f}=l,p=dD(u[0],c[0]);p.forEach(m=>{m.state=""}),n(p.map(Il),f)}),t&&(a.plotOptions.series.point.events.click=l=>{l.point.state="hover",t(Il(l.point),l)}),r&&(a.plotOptions.series.point.events.contextmenu=l=>{l.preventDefault(),r(Il(l.point),l)}),N.merge$1(e,a)},Il=e=>{var t,r;switch(((t=e.series)==null?void 0:t.initialType)||((r=e.series)==null?void 0:r.type)){case"bubble":case"scatter":return hD(e);case"funnel":return pD(e);case"boxplot":return mD(e);default:return fD(e)}},dD=(e,t)=>{const r=e.axis.series.flatMap(a=>a.points).filter(({x:a})=>a>=e.min&&a<=e.max);if(!t)return r;const n=t.axis.series.flatMap(a=>a.points).filter(({y:a})=>a>=t.min&&a<=t.max);return r.filter(a=>n.includes(a))},fD=e=>{var t,r,n,a,o,l,u,c;return{value:(t=e.custom)==null?void 0:t.rawValue,categoryValue:(n=(r=e.custom)==null?void 0:r.xValue)==null?void 0:n[0],seriesValue:(u=(l=(o=(a=e.series)==null?void 0:a.options)==null?void 0:o.custom)==null?void 0:l.rawValue)==null?void 0:u[0],categoryDisplayValue:(c=e.name)!=null?c:e.category}},hD=e=>{var t,r;return{x:e.x,y:e.y,size:e.z,breakByPoint:(t=e.custom)==null?void 0:t.maskedBreakByPoint,breakByColor:(r=e.custom)==null?void 0:r.maskedBreakByColor}},pD=e=>({value:e.options.custom.number1,categoryValue:e.options.name,categoryDisplayValue:e.name}),mD=e=>({boxMin:e.options.q1,boxMedian:e.options.median,boxMax:e.options.q3,whiskerMin:e.options.low,whiskerMax:e.options.high,categoryValue:e.category,categoryDisplayValue:e.category}),vD=(e,t)=>{var h;if(!t)return e;const r={backgroundColor:t.chart.backgroundColor},n={style:{fontFamily:t.typography.fontFamily}},a={itemStyle:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}},l={series:{dataLabels:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}}},u={activeDataLabelStyle:{color:t.chart.textColor},breadcrumbs:{buttonTheme:{fill:t.general.brandColor,stroke:t.general.brandColor,style:{color:t.general.primaryButtonTextColor},states:{hover:{fill:t.general.primaryButtonHoverColor,stroke:t.general.primaryButtonHoverColor}}}}},c={chart:r,tooltip:n,legend:a,plotOptions:l,drilldown:u},f={labels:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}},title:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},p={color:t==null?void 0:t.chart.backgroundColor,label:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},m=N.merge(e,c);return m.xAxis=(h=m.xAxis)==null?void 0:h.map(b=>{var _;return b.plotBands=(_=b.plotBands)==null?void 0:_.map(g=>N.merge(g,he(ie({},p),{color:g.color||(t==null?void 0:t.chart.backgroundColor)}))),N.merge(b,f)}),m.yAxis&&(m.yAxis=m.yAxis.map(b=>{var _;return b.plotBands=(_=b.plotBands)==null?void 0:_.map(g=>N.merge(g,he(ie({},p),{color:g.color||(t==null?void 0:t.chart.backgroundColor)}))),N.merge(b,f)})),m},gD=600,yD=300,bD=(e,t)=>N.merge(e,{accessibility:{enabled:t},chart:{animation:{duration:yD}},plotOptions:{series:{animation:{duration:gD}}},boost:{useGPUTranslations:!0,usePreAllocated:!0}}),_D="_alert_box_10ttx_1",wD="_content_10ttx_8",xD="_alert_10ttx_1",zl={alert_box:_D,content:wD,alert:xD},CD=({alerts:e=[]})=>V.jsx("div",{className:zl.alert_box,children:V.jsx("div",{className:zl.content,children:[...new Set(e)].map((t,r)=>V.jsx("div",{className:zl.alert,children:t},`alert-${r}`))})});var TD=N._baseIsEqual;function ED(e,t,r){r=typeof r=="function"?r:void 0;var n=r?r(e,t):void 0;return n===void 0?TD(e,t,void 0,r):!!n}var MD=ED;const Lv=N.getDefaultExportFromCjs(MD);var Av={exports:{}};(function(e,t){(function(r,n){e.exports=n(Q)})(typeof self!="undefined"?self:N.commonjsGlobal,function(r){return function(n){function a(l){if(o[l])return o[l].exports;var u=o[l]={i:l,l:!1,exports:{}};return n[l].call(u.exports,u,u.exports,a),u.l=!0,u.exports}var o={};return a.m=n,a.c=o,a.d=function(l,u,c){a.o(l,u)||Object.defineProperty(l,u,{configurable:!1,enumerable:!0,get:c})},a.n=function(l){var u=l&&l.__esModule?function(){return l.default}:function(){return l};return a.d(u,"a",u),u},a.o=function(l,u){return Object.prototype.hasOwnProperty.call(l,u)},a.p="",a(a.s=0)}([function(n,a,o){function l(){return l=Object.assign?Object.assign.bind():function(E){for(var x=1;x<arguments.length;x++){var T=arguments[x];for(var w in T)Object.prototype.hasOwnProperty.call(T,w)&&(E[w]=T[w])}return E},l.apply(this,arguments)}function u(E){return m(E)||p(E)||f(E)||c()}function c(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
87
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(E,x){if(E){if(typeof E=="string")return h(E,x);var T=Object.prototype.toString.call(E).slice(8,-1);return T==="Object"&&E.constructor&&(T=E.constructor.name),T==="Map"||T==="Set"?Array.from(E):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?h(E,x):void 0}}function p(E){if(typeof Symbol!="undefined"&&E[Symbol.iterator]!=null||E["@@iterator"]!=null)return Array.from(E)}function m(E){if(Array.isArray(E))return h(E)}function h(E,x){(x==null||x>E.length)&&(x=E.length);for(var T=0,w=new Array(x);T<x;T++)w[T]=E[T];return w}function b(E){"@babel/helpers - typeof";return(b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x})(E)}Object.defineProperty(a,"__esModule",{value:!0}),o.d(a,"HighchartsReact",function(){return M});var _=o(1),g=o.n(_),C=typeof window!="undefined"?_.useLayoutEffect:_.useEffect,M=Object(_.memo)(Object(_.forwardRef)(function(E,x){var T=Object(_.useRef)(),w=Object(_.useRef)(),P=Object(_.useRef)(E.constructorType),R=Object(_.useRef)(E.highcharts);return C(function(){function D(){var z=E.highcharts||(typeof window=="undefined"?"undefined":b(window))==="object"&&window.Highcharts,k=E.constructorType||"chart";z?z[k]?E.options?w.current=z[k](T.current,E.options,E.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(w.current){if(E.allowChartUpdate!==!1)if(E.constructorType!==P.current||E.highcharts!==R.current)P.current=E.constructorType,R.current=E.highcharts,D();else if(!E.immutable&&w.current){var A;(A=w.current).update.apply(A,[E.options].concat(u(E.updateArgs||[!0,!0])))}else D()}else D()},[E.options,E.allowChartUpdate,E.updateArgs,E.containerProps,E.highcharts,E.constructorType]),C(function(){return function(){w.current&&(w.current.destroy(),w.current=null)}},[]),Object(_.useImperativeHandle)(x,function(){return{get chart(){return w.current},container:T}},[]),g.a.createElement("div",l({},E.containerProps,{ref:T}))}));a.default=M},function(n,a){n.exports=r}])})})(Av);var SD=Av.exports;const PD=N.getDefaultExportFromCjs(SD);function Iv(e){const t=Q.useRef(void 0);return Q.useEffect(()=>{t.current=e},[e]),t.current}const RD=Q.memo(function({options:t}){var p,m,h,b,_,g;const r=Iv(t),n=Q.useCallback(C=>{var E,x,T,w,P,R,D,A;const M=t;!((w=(T=(x=(E=M==null?void 0:M.plotOptions)==null?void 0:E.series)==null?void 0:x.point)==null?void 0:T.events)!=null&&w.click)&&!((A=(D=(R=(P=M==null?void 0:M.plotOptions)==null?void 0:P.series)==null?void 0:R.point)==null?void 0:D.events)!=null&&A.contextmenu)&&(C.container.onclick=null)},[t]),a=C=>C==null?void 0:C.some(({data:M})=>M.some(E=>!!E.marker)),o=(r==null?void 0:r.xAxis)&&(t==null?void 0:t.xAxis)&&((p=r==null?void 0:r.xAxis[0])==null?void 0:p.type)!==((m=t==null?void 0:t.xAxis[0])==null?void 0:m.type),l=!!r&&((h=r==null?void 0:r.navigator)==null?void 0:h.enabled)!==((b=t==null?void 0:t.navigator)==null?void 0:b.enabled),u=a(r==null?void 0:r.series)&&!a(t==null?void 0:t.series),c=!!r&&((_=r==null?void 0:r.chart)==null?void 0:_.type)!==((g=t==null?void 0:t.chart)==null?void 0:g.type),f=o||l||c||u;return V.jsx(PD,{highcharts:N.Highcharts,options:N.cloneDeep(t),containerProps:{style:{height:"100%",width:"100%"}},immutable:f,callback:n})},(e,t)=>Lv(e,t,(r,n)=>N.isFunction(r)&&N.isFunction(n)?r.toString()===n.toString():void 0)),OD=e=>e,kD=({chartType:e,chartData:t,dataOptions:r,designOptions:n,onDataPointClick:a,onDataPointContextMenu:o,onDataPointsSelected:l,onBeforeRender:u=OD})=>{const{app:c}=bt(),{t:f}=fs(),p=[],m=Q.useCallback((_,g)=>Ic(_,g,c==null?void 0:c.settings.locale,c==null?void 0:c.settings.dateConfig),[]),{themeSettings:h}=Gt(),b=Q.useMemo(()=>{var T;const{options:_,alerts:g}=N.highchartsOptionsService(t,e,n,r,f,h,m);p.push(...g);const C=((T=c==null?void 0:c.settings.accessibilityConfig)==null?void 0:T.enabled)||!1,M=bD(_,C),E=cD(M,{onDataPointClick:a,onDataPointContextMenu:o,onDataPointsSelected:l}),x=vD(E,h);return u(x)},[e,t,r,n,h,a,o,u,f]);return b&&V.jsxs("div",{"aria-label":"chart-root",style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!p.length&&V.jsx(CD,{alerts:p}),V.jsx(RD,{options:b})]})},ND=[...N.CARTESIAN_CHART_TYPES,...N.CATEGORICAL_CHART_TYPES,...N.SCATTER_CHART_TYPES,...N.BOXPLOT_CHART_TYPES,...N.RANGE_CHART_TYPES],zv=e=>ND.includes(e),DD=e=>!!e.chartType&&zv(e.chartType)&&!!e.chartData,LD="_wrapper_g0ngm_1",AD="_title_g0ngm_7",ID="_image_g0ngm_18",$l={wrapper:LD,title:AD,image:ID},zD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='50.5'%20y='558.5'%20fill='%23E4E4E4'%20width='466'%20height='2'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M487.5,531.5h-410v-68.9l0.3-0.3l144-155.7l104.2,88.1l161.6-179.5V531.5z%20M79.5,529.5h406V220.4%20L326.1,397.5l-104.2-88.2l-142.4,154V529.5z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$D="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='25.5'%20y='558.5'%20fill='%23E4E4E4'%20width='516'%20height='2'/%3e%3cpath%20fill='%23E4E4E4'%20d='M518.9,188.1c-18.1,0-32.8,14.7-32.8,32.8c0,10,4.5,19,11.7,25.1l-129,162.8c-5.5-4.1-12.2-6.5-19.6-6.5%20c-10.4,0-19.7,4.9-25.7,12.5l-96.4-71.5c3.7-5.3,5.9-11.8,5.9-18.7c0-18.1-14.7-32.8-32.8-32.8c-18.1,0-32.8,14.7-32.8,32.8%20c0,9.2,3.8,17.5,9.9,23.5L69.5,465.4c-5.8-5-13.2-8-21.4-8c-18.1,0-32.8,14.7-32.8,32.8S30,523,48.1,523s32.8-14.7,32.8-32.8%20c0-9.2-3.8-17.5-9.9-23.5l107.8-117.4c5.8,5,13.2,8,21.4,8c10.4,0,19.7-4.9,25.7-12.5l96.4,71.5c-3.7,5.3-5.9,11.8-5.9,18.7%20c0,18.1,14.7,32.8,32.8,32.8s32.8-14.7,32.8-32.8c0-10-4.5-19-11.7-25.1l129-162.8c5.5,4.1,12.2,6.5,19.6,6.5%20c18.1,0,32.8-14.7,32.8-32.8S537,188.1,518.9,188.1z%20M48.1,521c-17,0-30.8-13.8-30.8-30.8s13.8-30.8,30.8-30.8%20c7.7,0,14.7,2.8,20.1,7.5c0.5,0.4,1,0.9,1.5,1.4c5.7,5.6,9.3,13.4,9.3,22C78.9,507.2,65,521,48.1,521z%20M200.2,355.4%20c-7.7,0-14.7-2.8-20.1-7.5c-0.5-0.4-1-0.9-1.5-1.4c-5.7-5.6-9.3-13.4-9.3-22c0-17,13.8-30.8,30.8-30.8c17,0,30.8,13.8,30.8,30.8%20c0,6.5-2,12.5-5.5,17.5c-0.4,0.5-0.8,1.1-1.2,1.6C218.7,350.8,210,355.4,200.2,355.4z%20M349.3,465.9c-17,0-30.8-13.8-30.8-30.8%20c0-6.5,2-12.5,5.5-17.5c0.4-0.5,0.8-1.1,1.2-1.6c5.6-7.1,14.4-11.7,24.1-11.7c6.9,0,13.2,2.3,18.3,6.1c0.5,0.4,1.1,0.8,1.6,1.2%20c6.7,5.7,10.9,14.1,10.9,23.5C380.1,452,366.3,465.9,349.3,465.9z%20M518.9,251.7c-6.9,0-13.2-2.3-18.3-6.1c-0.5-0.4-1.1-0.8-1.6-1.2%20c-6.7-5.7-10.9-14.1-10.9-23.5c0-17,13.8-30.8,30.8-30.8s30.8,13.8,30.8,30.8S535.9,251.7,518.9,251.7z'/%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",WD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='64.5'%20y='201.5'%20fill='%23E4E4E4'%20width='2'%20height='381'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M447.5,560.5h-357v-60h357V560.5z%20M92.5,558.5h353v-56h-353V558.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M292.5,468.5h-202v-60h202V468.5z%20M92.5,466.5h198v-56h-198V466.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M526.5,377.5h-436v-60h436V377.5z%20M92.5,375.5h432v-56h-432V375.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M368.5,285.5h-278v-59h278V285.5z%20M92.5,283.5h274v-55h-274V283.5z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",FD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='78'%20y='558.5'%20fill='%23E4E4E4'%20width='410'%20height='2'/%3e%3cg%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M463,533.5h-61v-207h61V533.5z%20M404,531.5h57v-203h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M363,533.5h-61v-152h61V533.5z%20M304,531.5h57v-148h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M263,533.5h-61v-316h61V533.5z%20M204,531.5h57v-312h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M163,533.5h-62v-248h62V533.5z%20M103,531.5h58v-244h-58V531.5z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",jD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M298.5,607.2c-12.6,0-25.3-1.1-37.6-3.2l-1-0.2l29.6-198l-27.1,61l-20.3-12.1l45.2-52.6L126.8,524.6%20l-0.6-0.8c-12.1-15.5-21.8-32.7-29-50.9l-0.4-0.9l0.9-0.4l181.4-70.1l-149.6,20.9v-47.1l158.4,22.1L97.5,323.8l0.4-0.9%20c7.3-18,17.1-34.9,29.3-50.4l0.6-0.8L282,389.2l-76.9-89.5l34.5-20.2l49.9,112.2l-29.6-198l1-0.2c12.4-2.1,25-3.2,37.6-3.2%20c8,0,16.1,0.4,23.9,1.3l1,0.1l-0.2,1l-29.7,198.8l83.2-187.1l0.9,0.3c19.5,7.5,37.7,17.7,54.3,30.3l0.8,0.6L301.2,389.2l132.5-101%20l28,44.9l-166,64.2L511.5,367l0.1,1c1.6,10.2,2.4,20.6,2.4,30.8c0,10.2-0.8,20.6-2.4,30.8l-0.1,1l-207.1-29l95.5,36.9l-18.5,28.9%20l-85.5-65.1l108.5,126.3l-45.5,23.8l-65.1-146.5l29.9,199.9l-1,0.1C314.4,606.8,306.4,607.2,298.5,607.2z%20M262.2,602.2%20c12,2,24.2,3,36.3,3c7.4,0,15.1-0.4,22.7-1.2l-29.7-198.5L262.2,602.2z%20M295.3,404.7l64.5,144.9l41.4-21.7L295.3,404.7l0.1,0.1%20L295.3,404.7z%20M99.4,473.1c7,17.4,16.3,33.8,27.8,48.7l158.3-120.6L99.4,473.1z%20M297.8,401.2l83.1,63.3l16-25L297.8,401.2z%20M245.2,454.3l16.3,9.7l26.4-59.4L245.2,454.3z%20M298.8,398.8l211,29.5c1.4-9.8,2.2-19.7,2.2-29.5c0-9.8-0.7-19.7-2.2-29.5%20L298.8,398.8z%20M131.5,377.6V420l152.2-21.2L131.5,377.6z%20M433.2,291.1L297.8,394.2l160.9-62.2L433.2,291.1z%20M100.1,322.6%20l185.2,71.6L128.2,274.5C116.6,289.3,107.2,305.5,100.1,322.6z%20M377.9,207.1L295.3,393l0,0l0,0L430,236.1%20C414,224.1,396.5,214.3,377.9,207.1z%20M287.9,393L287.9,393l-49.2-110.6l-30.5,17.8L287.9,393L287.9,393z%20M262.2,195.3L291.6,392%20l29.6-198.5c-7.5-0.8-15.1-1.2-22.7-1.2C286.4,192.3,274.2,193.4,262.2,195.3z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",BD="data:image/svg+xml,%3csvg%20width='616'%20height='559'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20fill='none'%20stroke='%23E4E4E4'%20id='svg_1'%20stroke-width='2'%20d='m97.44781,156.99998l419.1042,0l-24.42354,59.30477l-370.25707,0l-24.42359,-59.30477zm29.93028,72.6737l359.24347,0l-24.42354,59.30458l-310.39633,0l-24.42361,-59.30458zm54.35357,131.97891l-24.4232,-59.30521l299.38335,0l-24.42422,59.30521l-250.53593,0zm220.60617,72.6737l-190.67573,0l-24.42491,-59.30458l239.52554,0l-24.42491,59.30458zm-3.92305,72.6737l-182.82963,0l1.26325,-59.30458l180.30313,0l1.26325,59.30458z'/%3e%3c/g%3e%3c/svg%3e",HD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M480.4,506.2l-162.3-106L509.4,431l-0.2,1c-4.3,26.5-13.8,51.2-28.4,73.4L480.4,506.2z%20M327,403.7%20l152.7,99.8c13.9-21.5,23.1-45.3,27.3-70.8L327,403.7z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M275.3,586.8C170.9,586.8,86,502,86,397.7c0-50.6,19.6-98.1,55.1-133.8c35.6-35.7,83-55.5,133.5-55.5h1%20v188.7l158.3,103.1l-0.5,0.8C398.1,554.8,339.1,586.8,275.3,586.8z%20M273.5,210.7c-49.6,0.3-96.1,19.7-131.1,54.8%20C107.3,300.7,88,347.7,88,397.7c0,103.2,84,187.1,187.4,187.1c62.7,0,120.9-31.4,155.7-83.9L273.5,398.3V210.7z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M482.8,408.7l-1-0.2l-187.3-30V188.5h1c74.8,0,142.7,44.1,173.1,112.2c15.2,34.1,20.2,71.1,14.4,107%20L482.8,408.7z%20M296.5,376.9l184.6,29.5c5.5-35.2,0.5-71.4-14.4-104.9c-29.9-67.1-96.6-110.5-170.2-110.9V376.9z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",VD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cpolygon%20fill='%23E4E4E4'%20points='80,575%2080,233%2078,233%2078,575%2078,577%2080,577%20497,577%20497,575%20'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M374.7,480.1c-29.7,0-53.9-24.2-53.9-53.9c0-29.7,24.2-53.9,53.9-53.9s53.9,24.2,53.9,53.9%20C428.6,455.9,404.4,480.1,374.7,480.1z%20M374.7,374.3c-28.6,0-51.9,23.3-51.9,51.9s23.3,51.9,51.9,51.9s51.9-23.3,51.9-51.9%20S403.3,374.3,374.7,374.3z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M264.2,395.2c-22,0-40-17.9-40-40c0-22,17.9-40,40-40s40,17.9,40,40C304.2,377.3,286.2,395.2,264.2,395.2z%20M264.2,317.3c-20.9,0-38,17-38,38c0,20.9,17,38,38,38s38-17,38-38C302.2,334.3,285.1,317.3,264.2,317.3z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M413.7,351.2c-38.8,0-70.3-31.6-70.3-70.3c0-38.8,31.6-70.3,70.3-70.3s70.3,31.5,70.3,70.3%20C484,319.6,452.4,351.2,413.7,351.2z%20M413.7,212.5c-37.7,0-68.3,30.7-68.3,68.3c0,37.7,30.7,68.3,68.3,68.3%20c37.7,0,68.3-30.7,68.3-68.3C482,243.2,451.3,212.5,413.7,212.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M228.9,489C228.9,489,228.9,489,228.9,489c-15.8,0-29.7-10.1-34.5-25.2c-3-9.2-2.2-19,2.3-27.7%20c4.4-8.6,11.9-15,21.2-18c3.6-1.2,7.4-1.8,11.1-1.8c15.8,0,29.7,10.1,34.5,25.2c3,9.2,2.2,19.1-2.3,27.7c-4.4,8.6-11.9,15-21.2,18%20C236.4,488.4,232.6,489,228.9,489z%20M228.9,418.4c-3.6,0-7.1,0.6-10.5,1.7c-8.7,2.8-15.8,8.8-20,17c-4.2,8.1-4.9,17.4-2.1,26.1%20c4.6,14.2,17.7,23.8,32.6,23.8c3.6,0,7.1-0.6,10.5-1.7c8.7-2.8,15.8-8.8,20-17c4.2-8.1,4.9-17.4,2.1-26.2%20C256.9,428,243.8,418.4,228.9,418.4z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M147.5,548C147.5,548,147.5,548,147.5,548c-9.4,0-17.6-6-20.4-14.9c-3.6-11.3,2.6-23.4,13.9-27%20c2.1-0.7,4.4-1,6.6-1c9.3,0,17.6,6,20.4,14.9c3.6,11.3-2.6,23.3-13.9,27C152,547.7,149.7,548,147.5,548z%20M147.5,507.1%20c-2,0-4,0.3-6,0.9c-10.2,3.3-15.9,14.2-12.6,24.4c2.6,8.1,10,13.5,18.5,13.5c0,0,0,0,0,0c2,0,4-0.3,6-0.9%20c10.2-3.3,15.8-14.3,12.6-24.5C163.4,512.5,156,507.1,147.5,507.1z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",UD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M307.6,337.5h-28.6l-3.4,41.7h28.6L307.6,337.5z%20M278.4,376.7l3-36.7h23.5l-3,36.7H278.4z'/%3e%3cpath%20fill='%23E4E4E4'%20d='M262.9,415.9h12l2.4-28.6h23.5l-2.4,28.6h12l2.4-28.6h18.6v-10.5h-17.5l3-36.7h17.7v-10.5h-16.8l2.4-28.6%20h-12l-2.4,28.6h-23.5l2.4-28.6h-12l-2.4,28.6h-18.5V340h17.5l-3,36.7h-17.7v10.5h16.8L262.9,415.9z%20M251.1,384.7v-5.5h17.5%20l3.4-41.7h-17.8V332h18.3l2.4-28.6h7l-2.4,28.6h28.6l2.4-28.6h7l-2.4,28.6h17v5.5h-17.5l-3.4,41.7H329v5.5h-18.4l-2.4,28.6h-7%20l2.4-28.6h-28.6l-2.4,28.6h-7l2.4-28.6H251.1z'/%3e%3cpath%20fill='%23E4E4E4'%20d='M84,269.1v178.8h396.6V269.1H84z%20M478.2,445.4H86.5V271.6h391.6V445.4z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",qD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.1.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566.5%20700.5'%20enable-background='new%200%200%20566.5%20700.5'%20xml:space='preserve'%3e%3cg%20id='Layer_2'%3e%3crect%20x='-5057'%20y='-6963'%20fill='transparent'%20stroke='%23000000'%20stroke-miterlimit='10'%20width='16156.4'%20height='16115.1'/%3e%3c/g%3e%3cg%20id='Layer_1'%3e%3cpath%20fill='%23E4E4E4'%20d='M399,207h-2H284h-2H170h-2H53v35v4v31v2v31v2v30v2v31v2v30v2v31v2v31v2v34h115h2h112h2h113h2h116v-34v-2%20v-31v-2v-31v-2v-30v-2v-31v-2v-30v-2v-31v-2v-31v-4v-35H399z%20M397,211v31H284v-31H397z%20M282,279v31H170v-31H282z%20M170,277v-31h112%20v31H170z%20M282,312v30H170v-30H282z%20M282,344v31H170v-31H282z%20M282,377v30H170v-30H282z%20M282,409v31H170v-31H282z%20M282,442v31H170%20v-31H282z%20M284,442h113v31H284V442z%20M284,440v-31h113v31H284z%20M284,407v-30h113v30H284z%20M284,375v-31h113v31H284z%20M284,342v-30h113%20v30H284z%20M284,310v-31h113v31H284z%20M284,277v-31h113v31H284z%20M282,211v31H170v-31H282z%20M57,211h111v31H57V211z%20M57,246h111v31H57%20V246z%20M57,279h111v31H57V279z%20M57,312h111v30H57V312z%20M57,344h111v31H57V344z%20M57,377h111v30H57V377z%20M57,409h111v31H57V409z%20M57,442h111v31H57V442z%20M57,505v-30h111v30H57z%20M170,505v-30h112v30H170z%20M284,505v-30h113v30H284z%20M511,505H399v-30h112V505z%20M511,473H399v-31h112V473z%20M511,440H399v-31h112V440z%20M511,407H399v-30h112V407z%20M511,375H399v-31h112V375z%20M511,342H399v-30h112%20V342z%20M511,310H399v-31h112V310z%20M511,277H399v-31h112V277z%20M399,242v-31h112v31H399z'/%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",GD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3cpath%20fill='%23E4E4E4'%20d='M52,202.5v200v2v104h462v-306H52z%20M510,402.5H225v-196h285V402.5z%20M56,206.5h167v196H56V206.5z%20M56,404.5%20h298v100H56V404.5z%20M356,504.5v-100h154v100H356z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ih={area:zD,line:$D,bar:WD,column:FD,polar:jD,funnel:BD,pie:HD,scatter:VD,indicator:UD,table:qD,treemap:GD};function YD(e){var r;return(r=Ih[e])!=null?r:Ih["bar"]}const Yc=({iconType:e})=>{var u;const{themeSettings:t}=Gt(),r=Q.useRef(null),[n,a]=Q.useState({width:null,height:null});Q.useEffect(()=>{r.current&&a({width:r.current.offsetWidth,height:r.current.offsetHeight})},[]);const o=YD(e),{t:l}=fs();return V.jsxs("div",{ref:r,className:$l.wrapper,children:[V.jsx("div",{className:$l.title,style:{fontFamily:(u=t.typography)==null?void 0:u.fontFamily,fontSize:XD(n.width,n.height)},children:l("chartNoData")}),o?V.jsx("img",{className:$l.image,src:o}):null]})};function XD(e,t){return!e||!t?"18px":e<300?`${Math.max(Math.sqrt(e*e+t*t)*.045,18)}px`:`${Math.min(Math.max(t*.09,18),60)}px`}const zh=(e,t,r)=>({width:(t==null?void 0:t.width)||(e==null?void 0:e.width)||r.width,height:(t==null?void 0:t.height)||(e==null?void 0:e.height)||r.height}),Li=({children:e,defaultSize:t,size:r,rerenderOnResize:n=!1,useContentSize:a,onSizeChange:o})=>{const l=Q.useRef(null),[u,c]=Q.useState(),f=Q.useCallback(()=>{var E,x;const M={width:(E=l.current)==null?void 0:E.offsetWidth,height:(x=l.current)==null?void 0:x.offsetHeight};c(T=>{const w=(T==null?void 0:T.width)===0&&M.width===t.width,P=(T==null?void 0:T.height)===0&&M.height===t.height,R={width:w?T.width:M.width,height:P?T.height:M.height};return qc(T,R)?T:(o==null||o(zh(R,r,t)),R)})},[l,r,t,o,c]);Q.useLayoutEffect(()=>{f()},[f]),Q.useEffect(()=>(window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)),[f]);const p={width:r!=null&&r.width&&!(a!=null&&a.width)?`${r.width}px`:"100%",height:r!=null&&r.height&&!(a!=null&&a.height)?`${r.height}px`:"100%"},m=zh(u,r,t),h=(u==null?void 0:u.width)||(u==null?void 0:u.width)===void 0,b=(u==null?void 0:u.height)||(u==null?void 0:u.width)===void 0,_={width:h||a!=null&&a.width?"100%":`${m.width}px`,height:b||a!=null&&a.height?"100%":`${m.height}px`,position:"relative"},g=a!=null&&a.width||a!=null&&a.height?{position:"static",width:"100%",height:"100%"}:{position:"absolute",top:0,right:0,bottom:0,left:0},C=n?`${m==null?void 0:m.width}${m==null?void 0:m.height}`:"";return V.jsx("div",{style:p,ref:l,children:V.jsx("div",{style:_,children:V.jsx("div",{style:g,children:m&&(typeof e=="function"?e(m):e)})},C)})},$v={width:400,height:500},Xc=e=>N.isTable(e)?{width:400,height:500}:N.isIndicator(e)?{width:200,height:200}:{width:400,height:400},ZD=25,ws=(e,{hasHeader:t}={})=>{const r=e==="pivot"?$v:Xc(e);return t&&(r.height=r.height+ZD),r},Wv=({color:e})=>{const t={backgroundColor:e||"#333333",float:"left",width:"10px",height:"10px",marginRight:"7px",WebkitAnimation:"loading-dots-animation 1.8s infinite ease-in-out",animation:"loading-dots-animation 1.8s infinite ease-in-out",borderRadius:"50%",opacity:.75},r=he(ie({},t),{WebkitAnimationDelay:"-0.32s",animationDelay:"-0.32s"}),n=he(ie({},t),{WebkitAnimationDelay:"-0.16s",animationDelay:"-0.16s"}),a=he(ie({},t),{marginRight:"unset"}),o={"0%, 80%, 100%":{WebkitTransform:"scale(0) rotate(0deg)",transform:"scale(0) rotate(0deg)"},"40%":{WebkitTransform:"scale(1) rotate(0.02deg)",transform:"scale(1) rotate(0.02deg)"}};return V.jsxs("div",{children:[V.jsx("style",{children:`
|
|
88
|
-
@keyframes loading-dots-animation {
|
|
89
|
-
${Object.entries(o).map(([l,u])=>`${l} { ${Object.entries(u).map(([c,f])=>`${c}: ${f};`).join("")} }`).join("")}
|
|
90
|
-
}
|
|
91
|
-
`}),V.jsx("div",{style:r}),V.jsx("div",{style:n}),V.jsx("div",{style:a})]})},Zc=({themeSettings:e,onCancel:t})=>{const r=e!=null&&e.chart.backgroundColor?{backgroundColor:e.chart.backgroundColor}:void 0,n=e!=null&&e.chart.panelBackgroundColor?{backgroundColor:e.chart.panelBackgroundColor}:void 0;return V.jsx("div",{style:r,className:"csdk-h-full csdk-bg-white csdk-p-[20px]",children:V.jsxs("div",{style:n,className:"csdk-h-full csdk-bg-background-priority csdk-flex csdk-flex-col csdk-gap-y-4 csdk-items-center csdk-justify-center",children:[V.jsx(Wv,{color:e==null?void 0:e.chart.textColor}),t&&V.jsx("div",{className:"csdk-text-ai-sm csdk-text-text-link csdk-cursor-pointer",onClick:t,children:"Cancel"})]})})},KD=[{officialName:"Afghanistan",allNames:["af","afġānistān","afghanistan","afg"],id:"AFG"},{id:"ALA",officialName:"Åland Islands",allNames:["ax","ala","åland islands","aland islands"]},{officialName:"Albania",allNames:["al","shqipëri","shqipëria","shqipnia","albania","alb"],id:"ALB"},{officialName:"Algeria",allNames:["dz","dzayer","algérie","algeria","dza"],id:"DZA"},{officialName:"American Samoa",allNames:["as","amerika sāmoa","amelika sāmoa","sāmoa amelika","american samoa","asm"],id:"ASM"},{id:"AND",officialName:"Andorra",allNames:["ad","and","andorra"]},{officialName:"Angola",allNames:["ao","república de angola","ʁɛpublika de an'ɡɔla","angola","ago"],id:"AGO"},{officialName:"Anguilla",allNames:["ai","anguilla","aia"],id:"AIA"},{id:"ATA",officialName:"Antarctica",allNames:["aq","ata","antarctica"]},{officialName:"Antigua and Barbuda",allNames:["ag","antigua and barbuda","atg"],id:"ATG"},{officialName:"Argentina",allNames:["ar","argentine republic","república argentina","argentina","arg"],id:"ARG"},{officialName:"Armenia",allNames:["am","hayastan","republic of armenia","հայաստանի հանրապետություն","armenia","arm"],id:"ARM"},{officialName:"Aruba",allNames:["aw","aruba","abw"],id:"ABW"},{officialName:"Australia",allNames:["au","australia","aus"],id:"AUS"},{officialName:"Austria",allNames:["at","österreich","osterreich","oesterreich","austria","aut"],id:"AUT"},{officialName:"Azerbaijan",allNames:["az","republic of azerbaijan","azərbaycan respublikası","azerbaijan","aze","azerbaijan republic"],id:"AZE"},{officialName:"Bahrain",allNames:["bh","kingdom of bahrain","mamlakat al-baḥrayn","bahrain","bhr"],id:"BHR"},{officialName:"Bangladesh",allNames:["bd","people's republic of bangladesh","gônôprôjatôntri bangladesh","bangladesh","bgd"],id:"BGD"},{officialName:"Barbados",allNames:["bb","barbados","brb"],id:"BRB"},{officialName:"Belarus",allNames:["by","bielaruś","republic of belarus","белоруссия","республика беларусь","belorussiya","respublika belarus’","belarus","blr"],id:"BLR"},{officialName:"Belgium",allNames:["be","belgië","belgie","belgien","belgique","kingdom of belgium","koninkrijk belgië","royaume de belgique","königreich belgien","belgium","bel"],id:"BEL"},{officialName:"Belize",allNames:["bz","belize","blz"],id:"BLZ"},{officialName:"Benin",allNames:["bj","republic of benin","république du bénin","benin","ben"],id:"BEN"},{officialName:"Bermuda",allNames:["bm","the islands ofbermuda","the bermudas","somers isles","bermuda","bmu"],id:"BMU"},{officialName:"Bhutan",allNames:["bt","kingdom of bhutan","bhutan","btn"],id:"BTN"},{officialName:"Bolivia",allNames:["bo","buliwya","wuliwya","plurinational state of bolivia","estado plurinacional de bolivia","buliwya mamallaqta","wuliwya suyu","tetã volívia","bolivia","bol","plurinational state of"],id:"BOL"},{id:"BES",officialName:"Bonaire",allNames:["bq","bes","bonaire","sint eustatius and saba","caribbean netherlands"]},{officialName:"Bosnia and Herzegovina",allNames:["ba","bosnia-herzegovina","босна и херцеговина","bosnia and herzegovina","bih"],id:"BIH"},{officialName:"Botswana",allNames:["bw","republic of botswana","lefatshe la botswana","botswana","bwa"],id:"BWA"},{id:"BVT",officialName:"Bouvet Island",allNames:["bv","bvt","bouvet island"]},{officialName:"Brazil",allNames:["br","brasil","federative republic of brazil","república federativa do brasil","brazil","bra"],id:"BRA"},{officialName:"British Indian Ocean Territory",allNames:["io","british indian ocean territory","iot"],id:"IOT"},{officialName:"Brunei",allNames:["bn","nation of brunei","the abode of peace","brunei","brn","brunei darussalam"],id:"BRN"},{officialName:"Bulgaria",allNames:["bg","republic of bulgaria","република българия","bulgaria","bgr"],id:"BGR"},{officialName:"Burkina Faso",allNames:["bf","burkina faso","bfa"],id:"BFA"},{officialName:"Burundi",allNames:["bi","republic of burundi","republika y'uburundi","république du burundi","burundi","bdi"],id:"BDI"},{officialName:"Cambodia",allNames:["kh","kingdom of cambodia","cambodia","khm"],id:"KHM"},{officialName:"Cameroon",allNames:["cm","republic of cameroon","république du cameroun","cameroon","cmr"],id:"CMR"},{officialName:"Canada",allNames:["ca","canada","can"],id:"CAN"},{officialName:"Cape Verde",allNames:["cv","republic of cabo verde","república de cabo verde","cape verde","cpv"],id:"CPV"},{officialName:"Cayman Islands",allNames:["ky","cayman islands","cym"],id:"CYM"},{officialName:"Central African Republic",allNames:["cf","central african republic","république centrafricaine","central african republic","caf"],id:"CAF"},{officialName:"Chad",allNames:["td","tchad","republic of chad","république du tchad","chad","tcd"],id:"TCD"},{officialName:"Chile",allNames:["cl","republic of chile","república de chile","chile","chl"],id:"CHL"},{officialName:"China",allNames:["cn","zhōngguó","zhongguo","zhonghua","people's republic of china","中华人民共和国","zhōnghuá rénmín gònghéguó","china","chn"],id:"CHN"},{officialName:"Christmas Island",allNames:["cx","territory of christmas island","christmas island","cxr"],id:"CXR"},{officialName:"Cocos (Keeling) Islands",allNames:["cc","territoryof the cocos (keeling) islands","keeling islands","cocos (keeling) islands","cck","cocos islands","cocos [keeling] islands"],id:"CCK"},{officialName:"Colombia",allNames:["co","republic of colombia","república de colombia","colombia","col"],id:"COL"},{officialName:"Comoros",allNames:["km","union of the comoros","union des comores","udzima wa komori","al-ittiḥād al-qumurī","comoros","com"],id:"COM"},{officialName:"Cook Islands",allNames:["ck","kūki 'āirani","cook islands","cok"],id:"COK"},{officialName:"Costa Rica",allNames:["cr","republic of costa rica","república de costa rica","costa rica","cri"],id:"CRI"},{officialName:"Croatia",allNames:["hr","hrvatska","republic of croatia","republika hrvatska","croatia","hrv","croatia, republic of","croatia democratic republic of the"],id:"HRV"},{officialName:"Cuba",allNames:["cu","republic of cuba","república de cuba","cuba","cub"],id:"CUB"},{id:"CUW",officialName:"Curaçao",allNames:["cw","cuw","curaçao","curacao"]},{officialName:"Cyprus",allNames:["cy","kýpros","kıbrıs","republic of cyprus","κυπριακή δημοκρατία","kıbrıs cumhuriyeti","cyprus","cyp"],id:"CYP"},{officialName:"Czech Republic",allNames:["cz","česká republika","česko","czech republic","cze"],id:"CZE"},{officialName:"Democratic Republic of the Congo",allNames:["cd","dr congo","congo-kinshasa","drc","democratic republic of the congo","cod","congo (kinshasa)","the democratic republic of the congo","congo, the democratic republic of the","congo [drc]","congo, dem. rep."],id:"COD"},{officialName:"Denmark",allNames:["dk","danmark","kingdom of denmark","kongeriget danmark","denmark","dnk"],id:"DNK"},{officialName:"Djibouti",allNames:["dj","jabuuti","gabuuti","republic of djibouti","république de djibouti","gabuutih ummuuno","jamhuuriyadda jabuuti","djibouti","dji"],id:"DJI"},{officialName:"Dominica",allNames:["dm","dominique","wai‘tu kubuli","commonwealth of dominica","dominica","dma"],id:"DMA"},{officialName:"Dominican Republic",allNames:["do","dominican republic","dom"],id:"DOM"},{officialName:"East Timor",allNames:["tl","east timor","democratic republic of timor-leste","república democrática de timor-leste","repúblika demokrátika timór-leste","east timor","tls","timor-leste"],id:"TLS"},{officialName:"Ecuador",allNames:["ec","republic of ecuador","república del ecuador","ecuador","ecu"],id:"ECU"},{officialName:"Egypt",allNames:["eg","arab republic of egypt","egypt","egy"],id:"EGY"},{officialName:"El Salvador",allNames:["sv","republic of el salvador","república de el salvador","el salvador","slv"],id:"SLV"},{officialName:"Equatorial Guinea",allNames:["gq","republic of equatorial guinea","república de guinea ecuatorial","république de guinée équatoriale","república da guiné equatorial","equatorial guinea","gnq"],id:"GNQ"},{officialName:"Eritrea",allNames:["er","state of eritrea","ሃገረ ኤርትራ","dawlatiritriyá","ʾertrā","iritriyā","eritrea","eri"],id:"ERI"},{officialName:"Estonia",allNames:["ee","eesti","republic of estonia","eesti vabariik","estonia","est"],id:"EST"},{officialName:"Ethiopia",allNames:["et","ʾītyōṗṗyā","federal democratic republic of ethiopia","የኢትዮጵያ ፌዴራላዊ ዲሞክራሲያዊ ሪፐብሊክ","ethiopia","eth"],id:"ETH"},{officialName:"Falkland Islands",allNames:["fk","islas malvinas","falkland islands","flk","falkland islands (malvinas)","falkland islands (islas malvinas)","falkland islands [malvinas]","falkland islands [islas malvinas]"],id:"FLK"},{officialName:"Faroe Islands",allNames:["fo","føroyar","færøerne","faroe islands","fro"],id:"FRO"},{officialName:"Federated States of Micronesia",allNames:["fm","federated states of micronesia","federated states of micronesia","fsm","micronesia","federated states of"],id:"FSM"},{officialName:"Fiji",allNames:["fj","viti","republic of fiji","matanitu ko viti","fijī gaṇarājya","fiji","fji"],id:"FJI"},{officialName:"Finland",allNames:["fi","suomi","republic of finland","suomen tasavalta","republiken finland","finland","fin"],id:"FIN"},{officialName:"France",allNames:["fr","french republic","république française","france","fra"],id:"FRA"},{officialName:"French Guiana",allNames:["gf","guiana","guyane","french guiana","guf"],id:"GUF"},{officialName:"French Polynesia",allNames:["pf","polynésie française","french polynesia","pōrīnetia farāni","french polynesia","pyf"],id:"PYF"},{officialName:"French Southern and Antarctic Lands",allNames:["tf","french southern andantarctic lands","atf","french southern territories"],id:"ATF"},{officialName:"Gabon",allNames:["ga","gabonese republic","république gabonaise","gabon","gab","gabon republic"],id:"GAB"},{officialName:"Georgia",allNames:["ge","sakartvelo","georgia","geo"],id:"GEO"},{officialName:"Germany",allNames:["de","federal republic of germany","bundesrepublik deutschland","germany","deu"],id:"DEU"},{officialName:"Ghana",allNames:["gh","ghana","gha"],id:"GHA"},{officialName:"Gibraltar",allNames:["gi","gibraltar","gib"],id:"GIB"},{officialName:"Greece",allNames:["gr","elláda","hellenic republic","ελληνική δημοκρατία","greece","grc"],id:"GRC"},{officialName:"Greenland",allNames:["gl","grønland","greenland","grl"],id:"GRL"},{officialName:"Grenada",allNames:["gd","grenada","grd"],id:"GRD"},{officialName:"Guadeloupe",allNames:["gp","gwadloup","guadeloupe","glp"],id:"GLP"},{officialName:"Guam",allNames:["gu","guåhån","guam","gum"],id:"GUM"},{officialName:"Guatemala",allNames:["gt","guatemala","gtm"],id:"GTM"},{officialName:"Guernsey",allNames:["gg","bailiwick of guernsey","bailliage de guernesey","guernsey","ggy"],id:"GGY"},{officialName:"Guinea",allNames:["gn","republic of guinea","république de guinée","guinea","gin"],id:"GIN"},{officialName:"Guinea-Bissau",allNames:["gw","republic of guinea-bissau","república da guiné-bissau","guinea-bissau","gnb"],id:"GNB"},{officialName:"Guyana",allNames:["gy","co-operative republic of guyana","guyana","guy"],id:"GUY"},{officialName:"Haiti",allNames:["ht","republic of haiti","république d'haïti","repiblik ayiti","haiti","hti"],id:"HTI"},{officialName:"Heard Island and McDonald Islands",allNames:["hm","heard island and mcdonald islands","hmd","heard and mcdonald islands"],id:"HMD"},{officialName:"Honduras",allNames:["hn","republic of honduras","república de honduras","honduras","hnd"],id:"HND"},{officialName:"Hong Kong",allNames:["hk","香港","hongkong","hkg","hong kong","hong kong, china"],id:"HKG"},{officialName:"Hungary",allNames:["hu","hungary","hun"],id:"HUN"},{officialName:"Iceland",allNames:["is","island","republic of iceland","lýðveldið ísland","iceland","isl"],id:"ISL"},{officialName:"India",allNames:["in","bhārat","republic of india","bharat ganrajya","india","ind"],id:"IND"},{officialName:"Indonesia",allNames:["id","republic of indonesia","republik indonesia","indonesia","idn"],id:"IDN"},{officialName:"Iran",allNames:["ir","islamic republic of iran","jomhuri-ye eslāmi-ye irān","iran","irn","islamic republic of"],id:"IRN"},{officialName:"Iraq",allNames:["iq","republic of iraq","jumhūriyyat al-‘irāq","iraq","irq"],id:"IRQ"},{officialName:"Ireland",allNames:["ie","éire","republic of ireland","poblacht na héireann","ireland","irl"],id:"IRL"},{officialName:"Isle of Man",allNames:["im","ellan vannin","mann","mannin","isle of man","imn"],id:"IMN"},{officialName:"Israel",allNames:["il","state of israel","medīnat yisrā'el","israel","isr"],id:"ISR"},{officialName:"Italy",allNames:["it","italian republic","repubblica italiana","italy","ita"],id:"ITA"},{officialName:"Ivory Coast",allNames:["ci","ivory coast","republic of côte d'ivoire","république de côte d'ivoire","ivory coast","civ","côte d'ivoire","cote d'ivoire","cote divoire","cã´te d'ivoire","cote d'lvoire"],id:"CIV"},{officialName:"Jamaica",allNames:["jm","jamaica","jam"],id:"JAM"},{officialName:"Japan",allNames:["jp","nippon","nihon","japan","jpn"],id:"JPN"},{officialName:"Jersey",allNames:["je","bailiwick of jersey","bailliage de jersey","bailliage dé jèrri","jersey","jey"],id:"JEY"},{officialName:"Jordan",allNames:["jo","hashemite kingdomof jordan","al-mamlakah al-urdunīyah al-hāshimīyah","jordan","jor"],id:"JOR"},{officialName:"Kazakhstan",allNames:["kz","qazaqstan","казахстан","republic of kazakhstan","қазақстан республикасы","qazaqstan respublïkası","республика казахстан","respublika kazakhstan","kazakhstan","kaz"],id:"KAZ"},{officialName:"Kenya",allNames:["ke","republic of kenya","jamhuri ya kenya","kenya","ken"],id:"KEN"},{officialName:"Kiribati",allNames:["ki","republic of kiribati","ribaberiki kiribati","kiribati","kir"],id:"KIR"},{officialName:"Kuwait",allNames:["kw","state of kuwait","dawlat al-kuwait","kuwait","kwt"],id:"KWT"},{officialName:"Kyrgyzstan",allNames:["kg","киргизия","kyrgyz republic","кыргыз республикасы","kyrgyz respublikasy","kyrgyzstan","kgz"],id:"KGZ"},{officialName:"Laos",allNames:["la","lao","lao people's democratic republic","sathalanalat paxathipatai paxaxon lao","laos","lao"],id:"LAO"},{officialName:"Latvia",allNames:["lv","republic of latvia","latvijas republika","latvia","lva"],id:"LVA"},{officialName:"Lebanon",allNames:["lb","lebanese republic","al-jumhūrīyah al-libnānīyah","lebanon","lbn"],id:"LBN"},{officialName:"Lesotho",allNames:["ls","kingdom of lesotho","muso oa lesotho","lesotho","lso"],id:"LSO"},{officialName:"Liberia",allNames:["lr","republic of liberia","liberia","lbr"],id:"LBR"},{officialName:"Libya",allNames:["ly","state of libya","dawlat libya","libya","lby"],id:"LBY"},{officialName:"Liechtenstein",allNames:["li","principality of liechtenstein","fürstentum liechtenstein","liechtenstein","lie"],id:"LIE"},{officialName:"Lithuania",allNames:["lt","republic of lithuania","lietuvos respublika","lithuania","ltu"],id:"LTU"},{officialName:"Luxembourg",allNames:["lu","grand duchy of luxembourg","grand-duché de luxembourg","großherzogtum luxemburg","groussherzogtum lëtzebuerg","luxembourg","lux"],id:"LUX"},{officialName:"Macau",allNames:["mo","澳门","macao special administrative region of the people's republic of china","中華人民共和國澳門特別行政區","região administrativa especial de macau da república popular da china","macau","mac","macao","macao, china","macau, china"],id:"MAC"},{officialName:"Madagascar",allNames:["mg","republic of madagascar","repoblikan'i madagasikara","république de madagascar","madagascar","mdg"],id:"MDG"},{officialName:"Malawi",allNames:["mw","republic of malawi","malawi","mwi"],id:"MWI"},{officialName:"Malaysia",allNames:["my","malaysia","mys"],id:"MYS"},{officialName:"Maldives",allNames:["mv","maldive islands","republic of the maldives","dhivehi raajjeyge jumhooriyya","maldives","mdv"],id:"MDV"},{officialName:"Mali",allNames:["ml","republic of mali","république du mali","mali","mli"],id:"MLI"},{officialName:"Malta",allNames:["mt","republic of malta","repubblika ta' malta","malta","mlt"],id:"MLT"},{officialName:"Marshall Islands",allNames:["mh","republic of the marshall islands","aolepān aorōkin m̧ajeļ","marshall islands","mhl"],id:"MHL"},{officialName:"Martinique",allNames:["mq","martinique","mtq"],id:"MTQ"},{officialName:"Mauritania",allNames:["mr","islamic republic of mauritania","al-jumhūriyyah al-ʾislāmiyyah al-mūrītāniyyah","mauritania","mrt"],id:"MRT"},{officialName:"Mauritius",allNames:["mu","republic of mauritius","république de maurice","mauritius","mus"],id:"MUS"},{officialName:"Mayotte",allNames:["yt","department of mayotte","département de mayotte","mayotte","myt"],id:"MYT"},{officialName:"Mexico",allNames:["mx","mexicanos","united mexican states","estados unidos mexicanos","mexico","mex"],id:"MEX"},{officialName:"Moldova",allNames:["md","republic of moldova","republica moldova","moldova","mda","republic of"],id:"MDA"},{officialName:"Monaco",allNames:["mc","principality of monaco","principauté de monaco","monaco","mco"],id:"MCO"},{officialName:"Mongolia",allNames:["mn","mongolia","mng"],id:"MNG"},{id:"MNE",officialName:"Montenegro",allNames:["me","mne","montenegro"]},{officialName:"Montserrat",allNames:["ms","montserrat","msr"],id:"MSR"},{officialName:"Morocco",allNames:["ma","kingdom of morocco","al-mamlakah al-maġribiyah","morocco","mar","morroco"],id:"MAR"},{officialName:"Mozambique",allNames:["mz","republic of mozambique","república de moçambique","mozambique","moz"],id:"MOZ"},{id:"MMR",officialName:"Myanmar",allNames:["mm","mmr","myanmar","myanmar (burma)","myanmar [burma]","burma"]},{officialName:"Namibia",allNames:["na","namibië","republic of namibia","namibia","nam"],id:"NAM"},{officialName:"Nauru",allNames:["nr","naoero","pleasant island","republic of nauru","ripublik naoero","nauru","nru"],id:"NRU"},{officialName:"Nepal",allNames:["np","federal democratic republic of nepal","loktāntrik ganatantra nepāl","nepal","npl"],id:"NPL"},{officialName:"Netherlands",allNames:["nl","holland","nederland","netherlands","nld","the netherlands"],id:"NLD"},{officialName:"New Caledonia",allNames:["nc","new caledonia","ncl"],id:"NCL"},{officialName:"New Zealand",allNames:["nz","aotearoa","new zealand","nzl"],id:"NZL"},{officialName:"Nicaragua",allNames:["ni","republic of nicaragua","república de nicaragua","nicaragua","nic"],id:"NIC"},{officialName:"Niger",allNames:["ne","nijar","republic of niger","république du niger","niger","ner"],id:"NER"},{officialName:"Nigeria",allNames:["ng","nijeriya","naíjíríà","federal republic of nigeria","nigeria","nga"],id:"NGA"},{officialName:"Niue",allNames:["nu","niue","niu"],id:"NIU"},{officialName:"Norfolk Island",allNames:["nf","territory of norfolk island","teratri of norf'k ailen","norfolk island","nfk"],id:"NFK"},{officialName:"North Korea",allNames:["kp","democratic people's republic of korea","조선민주주의인민공화국","chosŏn minjujuŭi inmin konghwaguk","north korea","prk","korea, democratic people's republic of","korea, north"],id:"PRK"},{officialName:"Northern Mariana Islands",allNames:["mp","commonwealth of the northern mariana islands","sankattan siha na islas mariånas","northern mariana islands","mnp"],id:"MNP"},{officialName:"Norway",allNames:["no","norge","noreg","kingdom of norway","kongeriket norge","kongeriket noreg","norway","nor"],id:"NOR"},{officialName:"Oman",allNames:["om","sultanate of oman","salṭanat ʻumān","oman","omn"],id:"OMN"},{officialName:"Pakistan",allNames:["pk","pākistān","islamic republic of pakistan","islāmī jumhūriya'eh pākistān","pakistan","pak"],id:"PAK"},{officialName:"Palau",allNames:["pw","republic of palau","beluuer a belau","palau","plw"],id:"PLW"},{id:"PSE",officialName:"Palestinian Authority",allNames:["ps","pse","palestinian authority","palestinian territory"]},{officialName:"Panama",allNames:["pa","republic of panama","república de panamá","panama","pan"],id:"PAN"},{officialName:"Papua New Guinea",allNames:["pg","independent state of papua new guinea","independen stet bilong papua niugini","papua new guinea","png"],id:"PNG"},{officialName:"Paraguay",allNames:["py","republic of paraguay","república del paraguay","tetã paraguái","paraguay","pry"],id:"PRY"},{officialName:"Peru",allNames:["pe","republic of peru","república del perú","peru","per"],id:"PER"},{officialName:"Philippines",allNames:["ph","republic of the philippines","repúblika ng pilipinas","philippines","phl"],id:"PHL"},{officialName:"Pitcairn Islands",allNames:["pn","pitcairn henderson ducie and oeno islands","pitcairn islands","pcn","pitcairn"],id:"PCN"},{officialName:"Poland",allNames:["pl","republic of poland","rzeczpospolita polska","poland","pol"],id:"POL"},{officialName:"Portugal",allNames:["pt","portuguesa","portuguese republic","república portuguesa","portugal","prt"],id:"PRT"},{officialName:"Puerto Rico",allNames:["pr","commonwealth of puerto rico","estado libre asociado de puerto rico","puerto rico","pri"],id:"PRI"},{officialName:"Qatar",allNames:["qa","state of qatar","dawlat qaṭar","qatar","qat"],id:"QAT"},{officialName:"Republic of Macedonia",allNames:["mk","republic of macedonia","република македонија","republic of macedonia","mkd","macedonia","macedonia (fyrom)","macedonia [fyrom]","the former yugoslav republic of","the former yugoslav republic of macedonia"],id:"MKD"},{officialName:"Republic of the Congo",allNames:["cg","congo-brazzaville","republic of the congo","cog","congo (brazzaville)","congo [republic]","congo","congo, rep."],id:"COG"},{officialName:"Réunion",allNames:["re","reunion","réunion","reu","rã©union"],id:"REU"},{officialName:"Romania",allNames:["ro","rumania","roumania","românia","romania","rou"],id:"ROU"},{officialName:"Russia",allNames:["ru","rossiya","russian federation","российская федерация","rossiyskaya federatsiya","russia","rus"],id:"RUS"},{officialName:"Rwanda",allNames:["rw","republic of rwanda","repubulika y'u rwanda","république du rwanda","rwanda","rwa"],id:"RWA"},{id:"BLM",officialName:"Saint Barthélemy",allNames:["bl","blm","saint barthélemy","saint barthelemy","st barthelemy"]},{officialName:"Saint Helena",allNames:["sh","saint helena","shn","st helena","ascension and tristan da cunha"],id:"SHN"},{officialName:"Saint Kitts and Nevis",allNames:["kn","federation of saint christopher and nevis","saint kitts and nevis","kna","st kitts and nevis","saint kitts-nevis","st kitts-nevis"],id:"KNA"},{officialName:"Saint Lucia",allNames:["lc","saint lucia","lca","st lucia"],id:"LCA"},{officialName:"Saint Pierre and Miquelon",allNames:["pm","collectivité territoriale de saint-pierre-et-miquelon","saint pierre andmiquelon","spm","st pierre and miquelon","saint pierre and miquelon","st. pierre and miquelon"],id:"SPM"},{officialName:"Saint Vincent and the Grenadines",allNames:["vc","saint vincent and the grenadines","vct","st vincent and the grenadines"],id:"VCT"},{officialName:"Samoa",allNames:["ws","independent state of samoa","malo saʻoloto tutoʻatasi o sāmoa","samoa","wsm","western samoa"],id:"WSM"},{officialName:"San Marino",allNames:["sm","republic of san marino","repubblica di san marino","san marino","smr"],id:"SMR"},{officialName:"São Tomé and Príncipe",allNames:["st","democratic republic of são tomé and príncipe","república democrática de são tomé e príncipe","são tomé and príncipe","stp","sao tome and principe","sã£o tomã© and prãncipe"],id:"STP"},{officialName:"Saudi Arabia",allNames:["sa","kingdom of saudi arabia","al-mamlakah al-‘arabiyyah as-su‘ūdiyyah","saudi arabia","sau"],id:"SAU"},{officialName:"Senegal",allNames:["sn","republic of senegal","république du sénégal","senegal","sen"],id:"SEN"},{id:"SRB",officialName:"Serbia",allNames:["rs","srb","serbia"]},{officialName:"Seychelles",allNames:["sc","republic of seychelles","repiblik sesel","république des seychelles","seychelles","syc"],id:"SYC"},{officialName:"Sierra Leone",allNames:["sl","republic of sierra leone","sierra leone","sle"],id:"SLE"},{officialName:"Singapore",allNames:["sg","singapura","republik singapura","新加坡共和国","singapore","sgp"],id:"SGP"},{officialName:"Slovakia",allNames:["sk","slovak republic","slovenská republika","slovakia","svk","slovakia (slovak republic)"],id:"SVK"},{officialName:"Slovenia",allNames:["si","republic of slovenia","republika slovenija","slovenia","svn"],id:"SVN"},{officialName:"Solomon Islands",allNames:["sb","solomon islands","slb"],id:"SLB"},{officialName:"Somalia",allNames:["so","aṣ-ṣūmāl","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jumhūriyyat aṣ-ṣūmāl al-fiderāliyya","somalia","som"],id:"SOM"},{officialName:"South Africa",allNames:["za","rsa","suid-afrika","republic of south africa","south africa","zaf"],id:"ZAF"},{officialName:"South Georgia",allNames:["gs","south georgia and the south sandwich islands","south georgia","sgs"],id:"SGS"},{officialName:"South Korea",allNames:["kr","republic of korea","south korea","kor","korea, republic of","korea, south"],id:"KOR"},{officialName:"South Sudan",allNames:["ss","south sudan","ssd"],id:"SSD"},{officialName:"Spain",allNames:["es","kingdom of spain","reino deespaña","spain","esp"],id:"ESP"},{officialName:"Sri Lanka",allNames:["lk","ilaṅkai","democraticsocialist republic of sri lanka","sri lanka","lka"],id:"LKA"},{id:"SXM",officialName:"St Maarten",allNames:["sx","sxm","st maarten","sint maarten","sint maarten (dutch part)","saint-martin (pays-bas)"]},{id:"MAF",officialName:"St Martin (French part)",allNames:["mf","maf","st martin (french part)","saint martin (french part)","saint-martin (france)"]},{officialName:"Sudan",allNames:["sd","republic of the sudan","jumhūrīyat as-sūdān","sudan","sdn"],id:"SDN"},{officialName:"Suriname",allNames:["sr","sarnam","sranangron","republic of suriname","republiek suriname","suriname","sur"],id:"SUR"},{officialName:"Svalbard and Jan Mayen",allNames:["sj","svalbard and jan mayen islands","svalbard and jan mayen","sjm"],id:"SJM"},{officialName:"Swaziland",allNames:["sz","weswatini","swatini","ngwane","kingdom of swaziland","umbuso waseswatini","swaziland","swz"],id:"SWZ"},{officialName:"Sweden",allNames:["se","kingdom of sweden","konungariket sverige","sweden","swe"],id:"SWE"},{officialName:"Switzerland",allNames:["ch","swiss confederation","schweiz","suisse","svizzera","svizra","switzerland","che"],id:"CHE"},{officialName:"Syria",allNames:["sy","syrian arab republic","al-jumhūrīyah al-ʻarabīyah as-sūrīyah","syria","syr"],id:"SYR"},{officialName:"Taiwan",allNames:["tw","táiwān","republic of china","中華民國","zhōnghuá mínguó","taiwan","twn","taiwan, province of china"],id:"TWN"},{officialName:"Tajikistan",allNames:["tj","toçikiston","republic of tajikistan","ҷумҳурии тоҷикистон","çumhuriyi toçikiston","tajikistan","tjk"],id:"TJK"},{officialName:"Tanzania",allNames:["tz","united republic of tanzania","jamhuri ya muungano wa tanzania","tanzania","tza","united republic of"],id:"TZA"},{officialName:"Thailand",allNames:["th","prathet","thai","kingdom of thailand","ราชอาณาจักรไทย","ratcha anachak thai","thailand","tha"],id:"THA"},{officialName:"The Bahamas",allNames:["bs","commonwealth of the bahamas","the bahamas","bhs","bahamas"],id:"BHS"},{officialName:"The Gambia",allNames:["gm","republic of the gambia","the gambia","gmb","gambia"],id:"GMB"},{officialName:"Togo",allNames:["tg","togolese","togolese republic","république togolaise","togo","tgo"],id:"TGO"},{officialName:"Tokelau",allNames:["tk","tokelau","tkl"],id:"TKL"},{officialName:"Tonga",allNames:["to","tonga","ton"],id:"TON"},{officialName:"Trinidad and Tobago",allNames:["tt","republic of trinidad and tobago","trinidad and tobago","tto"],id:"TTO"},{officialName:"Tunisia",allNames:["tn","republic of tunisia","al-jumhūriyyah at-tūnisiyyah","tunisia","tun"],id:"TUN"},{officialName:"Turkey",allNames:["tr","turkiye","republic of turkey","türkiye cumhuriyeti","turkey","tur"],id:"TUR"},{officialName:"Turkmenistan",allNames:["tm","turkmenistan","tkm"],id:"TKM"},{id:"TCA",officialName:"Turks and Caicos Islands",allNames:["tc","tca","turks and caicos islands"]},{officialName:"Tuvalu",allNames:["tv","tuvalu","tuv"],id:"TUV"},{officialName:"Uganda",allNames:["ug","republic of uganda","jamhuri ya uganda","uganda","uga"],id:"UGA"},{officialName:"Ukraine",allNames:["ua","ukrayina","ukraine","ukr"],id:"UKR"},{officialName:"United Arab Emirates",allNames:["ae","uae","united arab emirates","are"],id:"ARE"},{officialName:"United Kingdom",allNames:["gb","uk","great britain","united kingdom","gbr","britain","england"],id:"GBR"},{officialName:"United States",allNames:["us","usa","united states of america","united states","usa"],id:"USA"},{id:"UMI",officialName:"United States Minor Outlying Islands",allNames:["um","umi","united states minor outlying islands"]},{officialName:"Uruguay",allNames:["uy","oriental republic of uruguay","república oriental del uruguay","uruguay","ury"],id:"URY"},{officialName:"Uzbekistan",allNames:["uz","republic of uzbekistan","o‘zbekiston respublikasi","ўзбекистон республикаси","uzbekistan","uzb"],id:"UZB"},{officialName:"Vanuatu",allNames:["vu","republic of vanuatu","ripablik blong vanuatu","république de vanuatu","vanuatu","vut"],id:"VUT"},{id:"VAT",officialName:"Vatican",allNames:["va","vat","vatican","vatican city","vatican city state","holy see (vatican city state)","holy see [vatican city state]"]},{officialName:"Venezuela",allNames:["ve","bolivarian republic of venezuela","república bolivariana de venezuela","venezuela","ven","bolivarian republic of"],id:"VEN"},{officialName:"Vietnam",allNames:["vn","socialist republic of vietnam","cộng hòa xã hội chủ nghĩa việt nam","vietnam","vnm","viet nam"],id:"VNM"},{id:"VGB",officialName:"Virgin Islands",allNames:["vg","vgb","virgin islands","british","british virgin islands","virgin islands (british)"]},{id:"VIR",officialName:"Virgin Islands",allNames:["vi","vir","virgin islands","u.s.","us virgin islands","u.s. virgin islands","virgin islands (u.s.)"]},{officialName:"Wallis and Futuna",allNames:["wf","territory of the wallis and futuna islands","territoire des îles wallis et futuna","wallis and futuna","wlf","wallis and futuna islands"],id:"WLF"},{officialName:"Western Sahara",allNames:["eh","taneẓroft tutrimt","western sahara","esh"],id:"ESH"},{officialName:"Yemen",allNames:["ye","yemeni republic","al-jumhūriyyah al-yamaniyyah","yemen","yem"],id:"YEM"},{officialName:"Zambia",allNames:["zm","republic of zambia","zambia","zmb"],id:"ZMB"},{officialName:"Zimbabwe",allNames:["zw","republic of zimbabwe","zimbabwe","zwe"],id:"ZWE"}],QD="#d6d9dc",JD="#FBFAFA";function e3(e,t,r){return e.reduce((a,o)=>{const l=o.id;let u;if(r==="world"){const c=KD.find(f=>f.id===l);c?u=t.find(f=>c.allNames.includes(f.geoName.trim().toLowerCase())):u=t.find(f=>f.geoName.trim().toLowerCase()===o.properties.name.trim().toLowerCase())}else u=t.find(c=>c.geoName.trim().toLowerCase()===o.properties.name.trim().toLowerCase());return a[l]={geoDataElement:u,style:{color:QD,weight:1,opacity:1,fillColor:u&&u.color||JD,fillOpacity:1},displayName:(u==null?void 0:u.geoName)||o.properties.name},a},{})}const t3=({geoJson:e,geoData:t,dataOptions:r,mapType:n})=>{const a=Q.useRef(null),o=Q.useRef(null),[l]=Q.useState(Ar.layerGroup()),u=Q.useMemo(()=>e3(e.features,t,n),[e,t,n]);return Q.useEffect(()=>{a.current&&!o.current&&(o.current=a3(a.current,n),l.addTo(o.current))},[l,n]),Q.useEffect(()=>{const c=Ar.geoJSON(o3(e,u),{style:f=>u[f.id].style,onEachFeature:(f,p)=>{p.bindTooltip(i3(f,u,r.originalValueTitle),{sticky:!0}),p.on({mouseover:m=>{const h=m.target;r3(h,f.id,u)},mouseout:m=>{const h=m.target;n3(h,f.id,u)}}),r.onAreaClick&&p.on({click:m=>{const h=u[f.id].geoDataElement;h&&r.onAreaClick(h,m.originalEvent)}})}});o.current&&(l.clearLayers(),l.addLayer(c),o.current.fitBounds(c.getBounds()))},[r,u,e,l]),V.jsx("div",{ref:a,className:"csdk-map-container",style:{width:"100%",height:"100%",minWidth:"300px",minHeight:"400px",backgroundColor:"#c2dbe9"}})};function r3(e,t,r){if(r[t]){const a=r[t].style.fillColor;e.setStyle({weight:2,color:N.scaleBrightness(a,-.2),fillColor:N.scaleBrightness(a,.05),dashArray:"",fillOpacity:1,opacity:1}),e.bringToFront()}}function n3(e,t,r){e.setStyle(r[t].style)}function i3(e,t,r){const n=t[e.id];return`
|
|
92
|
-
<div>
|
|
93
|
-
<span>${n.displayName}<span>
|
|
94
|
-
${n.geoDataElement?`<br/>${r}: <span>${n.geoDataElement.formattedOriginalValue}<span>`:""}
|
|
95
|
-
</div>`}function a3(e,t){return t==="world"?Ar.map(e,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,zoom:1,maxZoom:5,center:[0,0]}):Ar.map(e,{crs:new Ar.Proj.CRS("EPSG:5070","+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",{resolutions:[16384,10240,8192,4096]}),center:[35.96852047262865,-96.96520768859223],zoom:.4,maxZoom:3,attributionControl:!1})}function o3(e,t){if(t.ATA&&t.ATA.geoDataElement)return e;{const r=e.features.filter(n=>n.id!=="ATA");return he(ie({},e),{features:r})}}class Fv{constructor(t){St(this,"httpClient");St(this,"getDashboards",(t={})=>{const{fields:r,expand:n,searchByTitle:a}=t,o=new URLSearchParams(ie(ie(ie({},a&&{name:a}),(r==null?void 0:r.length)&&{fields:r==null?void 0:r.join(",")}),(n==null?void 0:n.length)&&{expand:n==null?void 0:n.join(",")})).toString();return this.httpClient.get(`api/v1/dashboards?${o}`)});St(this,"getDashboard",(t,r={})=>{const{fields:n}=r,a=new URLSearchParams(ie({},(n==null?void 0:n.length)&&{fields:n==null?void 0:n.join(",")})).toString();return this.httpClient.get(`api/v1/dashboards/${t}?${a}`).catch(()=>{throw new N.TranslatableError("errors.dashboardInvalidIdentifier")})});St(this,"getDashboardWidgets",t=>this.httpClient.get(`api/v1/dashboards/${t}/widgets`).catch(()=>{throw new N.TranslatableError("errors.dashboardWidgetsInvalidIdentifiers")}));St(this,"getWidget",(t,r)=>this.httpClient.get(`api/v1/dashboards/${r}/widgets/${t}`).catch(()=>{throw new N.TranslatableError("errors.dashboardWidgetInvalidIdentifiers")}));St(this,"getCountriesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/world"));St(this,"getUsaStatesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/usa"));St(this,"getPalettes",()=>this.httpClient.get("api/palettes"));if(!t)throw new Error("HttpClient not found.");this.httpClient=t}}const jv=()=>{const{app:e}=bt();return Q.useMemo(()=>new Fv(e==null?void 0:e.httpClient),[e])},s3=e=>{const t=jv(),[r,n]=Q.useState(),[a,o]=Q.useState(),l=d3();return Q.useEffect(()=>{if(!l)return;yr(exports,null,function*(){try{const c=f3(e,l),f=l3(c);if(f)n(f);else{h3(e);let p;switch(e){case"world":p=t.getCountriesGeoJson;break;case"usa":p=t.getUsaStatesGeoJson;break;default:throw new Error(`Unsupported map type: ${e}`)}const m=yield p();if(!m)throw new Error("Failed loading map");const h=e==="world"?c3(m):m;u3(h,c),n(h)}}catch(c){o(c)}})},[t,e,l]),{geoJson:r,error:a}};function l3(e){const t=localStorage.getItem(e);if(t)return JSON.parse(t)}function u3(e,t){localStorage.setItem(t,JSON.stringify(e))}function c3(e){const t=N.cloneDeep(e);return t.features.forEach(r=>{var n;r.id==="-99"&&(r.id=(n=r.properties)==null?void 0:n.name)}),t}function d3(){const{app:e}=bt();return e==null?void 0:e.settings.serverVersion}function f3(e,t){return`geoJson_${e}_${t}`}function h3(e){Object.keys(localStorage).forEach(r=>{r.startsWith(`geoJson_${e}`)&&localStorage.removeItem(r)})}const p3=({chartData:e,dataOptions:t,designOptions:r,onDataPointClick:n})=>{const{geoJson:a}=s3(r.mapType);return V.jsx(V.Fragment,{children:a&&V.jsx(t3,{geoJson:a,geoData:e.geoData,dataOptions:{originalValueTitle:t.color.title||t.color.name,onAreaClick:n},mapType:r.mapType})})},m3=e=>e.type==="areamap",v3=e=>"geo"in e&&"color"in e,g3=e=>"mapType"in e,y3=e=>!!e.chartData&&m3(e.chartData)&&v3(e.dataOptions)&&g3(e.designOptions),ca=({isVisible:e,themeSettings:t,children:r})=>{const n=t!=null&&t.chart.panelBackgroundColor?{backgroundColor:t.chart.panelBackgroundColor}:void 0;return V.jsxs("div",{id:"overlay",className:"csdk-relative csdk-h-full",children:[e&&V.jsx("div",{className:"csdk-absolute csdk-h-full csdk-w-full csdk-z-[401] csdk-opacity-80","area-label":"csdk-loading-overlay",children:V.jsx("div",{className:"csdk-h-full csdk-bg-transparent",children:V.jsx("div",{className:"csdk-h-full csdk-flex csdk-flex-col csdk-gap-y-4 csdk-items-center csdk-justify-center csdk-bg-transparent",children:V.jsx("div",{style:n,className:"csdk-p-1.5 csdk-bg-background-priority csdk-rounded-full",children:V.jsx(Wv,{color:t==null?void 0:t.chart.textColor})})})})}),r]})};function Yu(e,t,r=Oc(),n=Ac){const a=new Map;return[...t.breakBy?t.breakBy:[],...t.x?Array.isArray(t.x)?t.x:[t.x]:[],...t.columns?t.columns:[]].forEach(function(l){if(!N.isCategory(l)||!l.dateFormat)return;const u=e.columns.findIndex(function(f){return f.name===l.name&&N.isDatetime(l.type)&&N.isDatetime(f.type)});u!==-1&&a.set(u,l.dateFormat)}),a.size===0||(e.rows=e.rows.map(function(l){return l.map(function(c,f){const p=a.get(f);if(!p)return c;let m,h;if(N.isCell(c))m=ie({},c);else{const _=N.createCompareValue(`${c}`,"datetime");h=new Date(_.value),m={data:h.toISOString(),text:`${c}`}}if(!m.data)return c;let b=m.text;try{b=Ic(N.parseISO(m.data),p,r,n)}catch(_){console.error(_)}return m.text=b,m})})),e}function b3(e,t){if(!t.value||t.value.length===0)throw new N.TranslatableError("errors.dataOptions.emptyValueArray");return w3(e,t)}const _3={pie:{category:3,value:1},funnel:{category:1,value:1},treemap:{category:3,value:1},sunburst:{category:6,value:1}};function w3(e,t){const r=_3[e];t.category.length>r.category&&console.warn(`Maximum 'category' length is limited to ${r.category} for '${e}' chart. Taken first ${r.category} categories`);const n=t.category.slice(0,r.category);let a=t.value;return(e!=="pie"||t.category.length>0)&&(t.value.length>r.value&&console.warn(`Maximum 'value' length is limited to ${r.value} for '${e}' chart. Taken first ${r.value} values`),a=t.value.slice(0,r.value)),he(ie({},t),{category:n,value:a})}const Bv=e=>{const t={},r=n=>`$measure${n}_`;return e.forEach((n,a)=>{const o=n.name,u=`${r(a)}${o}`;n.name=u,t[u]=o}),t},x3=(e,t)=>{if(t==="funnel"){const r=N.merge(e);if(r.breakBy.length>0&&r.breakBy[0].sortType===void 0&&r.y.length>0&&r.y[0].sortType===void 0)return r.y[0].sortType="sortDesc",r}return e},Hv=(e,t,r,n,a,o)=>{if(t.length+r.length===0)throw new N.TranslatableError("errors.dataOptions.noDimensionsAndMeasures");return t.forEach(l=>{if(e.columns.findIndex(c=>c.name===l.name)===-1)throw new N.TranslatableError("errors.dataOptions.attributeNotFound",{attributeName:l.name})}),r.forEach(l=>{if(e.columns.findIndex(c=>c.name===l.name||c.name===n[l.name])===-1)throw new N.TranslatableError("errors.dataOptions.measureNotFound",{measureName:n[l.name]})}),a&&a.forEach(l=>{if(e.columns.findIndex(c=>c.name===l.attribute.name)===-1)throw new N.TranslatableError("errors.dataOptions.filterAttributeNotFound",{attributeName:l.attribute.name})}),o&&o.forEach(l=>{if(e.columns.findIndex(c=>c.name===l.attribute.name)===-1)throw new N.TranslatableError("errors.dataOptions.highlightAttributeNotFound",{attributeName:l.attribute.name})}),!0};function C3(e,t){switch(e){case"pie":case"funnel":case"treemap":return b3(e,t);default:return t}}const Kc=()=>{const[e,t]=Q.useState();if(e)throw e;return t};function T3(e){return e===null}var E3=T3;const Wl=N.getDefaultExportFromCjs(E3),M3=(e,t)=>{switch(t){case"iqr":return Q_(e);case"extremums":return J_(e);case"standardDeviation":return e0(e)}},S3=(e,t)=>{switch(t){case"iqr":return t0(e);case"standardDeviation":return r0(e)}},P3=(e,t,r)=>{const{column:n,style:a}=N.splitColumn(e);let o=M3(n,t),l;return a&&(o=o.map(u=>ie({column:u},a))),r&&(l=S3(n,t),l&&a&&(l=ie({column:l},a))),{values:o,outliers:l}},R3=e=>e.value.length>1,Vv=e=>{var m;const{category:t}=e;let r,n,a;if(R3(e))r=e.value,a=e.valueTitle,n=(m=e.outliers)==null?void 0:m[0];else{const{outliersEnabled:h,boxType:b,value:[_]}=e,{values:g,outliers:C}=P3(_,b,!!h);r=g,n=C,a=N.getDataOptionTitle(N.translateColumnToCategory(_))}const[o,l,u,c,f,p]=r;return{category:t[0]&&N.translateColumnToCategory(t[0]),boxMin:o&&N.translateColumnToValue(o),boxMedian:l&&N.translateColumnToValue(l),boxMax:u&&N.translateColumnToValue(u),whiskerMin:c&&N.translateColumnToValue(c),whiskerMax:f&&N.translateColumnToValue(f),outliersCount:p&&N.translateColumnToValue(p),outliers:n&&N.translateColumnToCategory(n),valueTitle:a}},O3=2e4;function ra(e,t){if(t){const r=t.name,n=e.findIndex(a=>a.name===r);return n===-1?null:n}return null}const Uv=(e,t,r)=>{let n=0,a=4,o=5,l=0,u=1;return r&&(n=ra(e.columns,r.category),a=ra(e.columns,r.whiskerMin),o=ra(e.columns,r.whiskerMax),l=ra(t.columns,r.category),u=ra(t.columns,r.outliers)),Wl(u)?e:{columns:[...e.columns,t.columns[u]],rows:e.rows.map(f=>{const p=Wl(n)?null:f[n].data,m=f[o].data,h=f[a].data,b=t.rows.filter(_=>{const g=Wl(l)?null:_[l].data,C=_[u].data;return g===p&&(C<h||C>m)}).map(_=>_[u].data).join(",");return[...f,{data:b}]})}};function k3(e,t,r){const n=r&&Vv(r);return Uv(e,t,n)}const N3=(c,f)=>yr(exports,[c,f],function*({app:e,chartDataOptions:t,dataSource:r,attributes:n,measures:a,filters:o,highlights:l},u){var _;const p={dataSource:r,dimensions:t.category?[n[0]]:[],measures:a,filters:o,highlights:l},m=yield u(p,e);let h=m;const b=t.outliersCount?D3(m,t.outliersCount.name):0;if(t.outliers&&b<O3){const g={dataSource:r,dimensions:n,measures:[],filters:o,highlights:l};try{const C=yield u(g,e);h=Uv(m,C,t)}catch(C){if((_=C==null?void 0:C.message)!=null&&_.includes("UnsupportedFunctionalityException"))console.warn("Functionality not supported by platform: Boxplot outliers");else throw C}}return h}),D3=(e,t)=>{const r=e.columns.findIndex(({name:a})=>a===t);let n=0;return e.rows.forEach(a=>{n+=parseInt(a[r].data)}),n},L3=e=>e==="funnel"?e:N.deriveChartFamily(e),A3=(e,t,r,n,a,o,l,u,c,f)=>{var M;const p=Kc(),m=Q.useMemo(()=>L3(r),[r]),h=Q.useMemo(()=>[void 0,t],[t]),[b,_]=Q.useState({}),{app:g}=bt(),C=(M=g==null?void 0:g.settings.queryCacheConfig)!=null&&M.enabled?$c:Wa;return Q.useEffect(()=>{let E=!1;const{filters:x,relations:T}=N.getFilterListAndRelations(l);if(jn(e)){if(!g)return;let w;r==="boxplot"?w=N3({app:g,chartDataOptions:t,dataSource:e,attributes:n,measures:a,filters:x,highlights:u},C):w=C({dataSource:e,dimensions:n,measures:a,filters:x,filterRelations:T,highlights:u,count:g.settings.queryLimit},g);const P=g==null?void 0:g.settings.loadingIndicatorConfig,R=setTimeout(()=>{P!=null&&P.enabled&&(f==null||f(!0))},P==null?void 0:P.delay);w.then(D=>{const A=Yu(D,t,g==null?void 0:g.settings.locale,g==null?void 0:g.settings.dateConfig);E||_({[m]:[A,t]})}).catch(D=>{p(D)}).finally(()=>{clearTimeout(R),P!=null&&P.enabled&&(f==null||f(!1))})}else{Hv(e,n,a,o,x,u);const w=Yu(e,t,g==null?void 0:g.settings.locale,g==null?void 0:g.settings.dateConfig);_({[m]:[w,t]})}return()=>{E=!0}},[r,t,e,l,u,g,c]),b[m]||h},$h={city:4,state:3,country:2,auto:1};function I3(e){return e.filter(r=>"geoLevel"in r&&r.geoLevel).map(r=>r.geoLevel).reduce((r,n)=>$h[n]>$h[r]?n:r,"auto")}function z3(e){const{geo:t,size:r,colorBy:n,details:a}=e;return{locations:t&&t.map(N.translateColumnToCategory),size:r&&N.translateColumnToValue(r),colorBy:n&&N.translateColumnToValue(n),details:a&&N.translateColumnToCategoryOrValue(a),locationLevel:I3(t)}}function $3(e){var o;const t=e.value.map(l=>{if(l!=null&&l.chartType)return[N.translateColumnToValue(l)];const p=l,{lowerBound:u,upperBound:c}=p,f=Sr(p,["lowerBound","upperBound"]);return[N.translateColumnToValue(ie({column:u},f)),N.translateColumnToValue(ie({column:c},f))]}),r=t.flat(),n=t.filter(l=>l.length===2),a=t.filter(l=>l.length===1).flat();return{x:e.category.map(N.translateColumnToCategory),breakBy:((o=e.breakBy)==null?void 0:o.map(N.translateColumnToCategory))||[],y:r,rangeValues:n,seriesValues:a,seriesToColorMap:e.seriesToColorMap}}function W3(e,t){if(N.isCartesian(e))return F3(t);if(N.isCategorical(e))return j3(t);if(N.isIndicator(e))return B3(t);if(N.isScatter(e))return H3(t);if(N.isBoxplot(e))return Vv(t);if(N.isAreamap(e))return V3(t);if(N.isScattermap(e))return z3(t);if(N.isRange(e))return $3(t);throw new Error(`Unexpected chart type: ${e}`)}const F3=e=>{var t;return{x:e.category.map(N.translateColumnToCategory),y:e.value.map(N.translateColumnToValue),breakBy:((t=e.breakBy)==null?void 0:t.map(N.translateColumnToCategory))||[],seriesToColorMap:e.seriesToColorMap}},j3=e=>({y:e.value.map(N.translateColumnToValue),breakBy:e.category.map(N.translateColumnToCategory),seriesToColorMap:e.seriesToColorMap}),B3=e=>{var t,r,n,a,o,l;return{value:(t=e.value)==null?void 0:t.map(N.translateColumnToValue),secondary:(r=e.secondary)==null?void 0:r.map(N.translateColumnToValue),min:(a=(n=e.min)==null?void 0:n.map(N.translateColumnToValue))==null?void 0:a.map(Wh("min")),max:(l=(o=e.max)==null?void 0:o.map(N.translateColumnToValue))==null?void 0:l.map(Wh("max"))}},Wh=e=>t=>{var r;return Object.assign(t,{aggregation:(r=t.aggregation)!=null?r:e})},H3=e=>{const{x:t,y:r,breakByPoint:n,breakByColor:a,size:o,seriesToColorMap:l}=e;return{x:t&&N.translateColumnToCategoryOrValue(t),y:r&&N.translateColumnToCategoryOrValue(r),breakByPoint:n&&N.translateColumnToCategory(n),breakByColor:a&&N.translateColumnToCategoryOrValue(a),size:o&&N.translateColumnToValue(o),seriesToColorMap:l}},V3=e=>({geo:e.geo&&N.translateColumnToCategory(e.geo[0]),color:e.color&&N.translateColumnToValue(e.color[0])});function U3(e,t){let r=[];return N.isScatter(t)?r=["x","y","breakByPoint","breakByColor"].flatMap(n=>e[n]&&N.isCategory(e[n])?[e[n]]:[]):N.isCartesian(t)||N.isCategorical(t)||N.isRange(t)?r=["x","breakBy"].flatMap(n=>{var a;return(a=e[n])!=null?a:[]}):N.isBoxplot(t)?r=["category","outliers"].flatMap(n=>e[n]?[e[n]]:[]):N.isAreamap(t)?r=[e.geo]:N.isScattermap(t)&&(r=["locations"].flatMap(n=>{var a;return(a=e[n])!=null?a:[]})),r.map(N.translateCategoryToAttribute)}function q3(e,t){let r=[];return N.isIndicator(t)?r=G3(e):N.isScatter(t)?r=["x","y","breakByColor","size"].flatMap(n=>e[n]&&N.isValue(e[n])?[e[n]]:[]):N.isCartesian(t)||N.isCategorical(t)?r=e.y:N.isBoxplot(t)?r=["boxMin","boxMedian","boxMax","whiskerMin","whiskerMax","outliersCount"].flatMap(n=>e[n]?[e[n]]:[]):N.isAreamap(t)?r=[e.color]:N.isScattermap(t)?r=["size","colorBy","details"].flatMap(n=>e[n]&&N.isValue(e[n])?[e[n]]:[]):N.isRange(t)&&(r=e.y),r.map(N.translateValueToMeasure)}function G3(e){var o,l,u,c;const t=(o=e.value)==null?void 0:o[0],r=(l=e.secondary)==null?void 0:l[0],n=(u=e.min)==null?void 0:u[0],a=(c=e.max)==null?void 0:c[0];return[t,r,n,a].filter(f=>!!f)}function qv(e){return{columns:e.columns.map(N.translateColumnToCategoryOrValue)}}function Y3(e){var t,r,n;return{rows:(t=e.rows)==null?void 0:t.map(N.translateColumnToCategory),columns:(r=e.columns)==null?void 0:r.map(N.translateColumnToCategory),values:(n=e.values)==null?void 0:n.map(N.translateColumnToValue),grandTotals:e.grandTotals}}function Gv(e,t){{const r=C3(t,e),n=W3(t,r),a=x3(n,t),o=U3(a,t),l=q3(a,t);return{dataOptions:a,attributes:o,measures:l}}}const X3=(e,t)=>Q.useMemo(()=>{const{dataOptions:r,attributes:n,measures:a}=Gv(e,t),o=Bv(a.map(N.translateMeasureToValue));return{dataOptions:r,attributes:n,measures:a,dataColumnNamesMapping:o}},[e,t]);function Z3(e){const{dataSet:t,chartType:r,chartData:n,internalDataOptions:a,designOptions:o,onBeforeRender:l,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:f,filters:p}=e;return!a||!o?null:{dataSource:jn(t)?t:null,chartType:r,chartData:n,dataOptions:a,designOptions:o,onBeforeRender:l,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:f,filters:p}}const K3=e=>e==="indicator",Q3=(e,t)=>e==="scattermap"&&"scatterDataTable"in t&&t.scatterDataTable.length===0?!0:"series"in t&&t.series.length===0,Yv=e=>{const{chartType:t,dataSet:r,dataOptions:n,filters:a,highlights:o,styleOptions:l,refreshCounter:u,onDataPointClick:c,onDataPointContextMenu:f,onDataPointsSelected:p,onBeforeRender:m}=e,[h,b]=Q.useState(!1),_=Xc(t),{themeSettings:g}=Gt(),{dataOptions:C,attributes:M,measures:E,dataColumnNamesMapping:x}=X3(n,t),[T,w]=A3(r,C,t,M,E,x,a,o,u,b),P=Q.useMemo(()=>n?N.prepareChartDesignOptions(t,w,l):null,[n,t,w,l]),R=Q.useMemo(()=>{if(!T||!n)return null;let A=N.createDataTableFromData(T);return jn(r)||(A=Sv(A,M.map(N.translateAttributeToCategory),E.map(N.translateMeasureToValue),x)),sk(t,w,A)},[T,t]),D=Z3({dataSet:r,chartType:t,chartData:R,internalDataOptions:w,designOptions:P,onBeforeRender:m,onDataPointClick:c,onDataPointContextMenu:f,onDataPointsSelected:p,filters:a});return D?V.jsx(Li,{defaultSize:_,size:{width:l==null?void 0:l.width,height:l==null?void 0:l.height},rerenderOnResize:K3(t),children:()=>R?Q3(t,R)?V.jsx(Yc,{iconType:t}):t==="scattermap"&&uD(D)?V.jsx(ca,{themeSettings:g,isVisible:h,children:V.jsx(aD,ie({},D))}):t==="indicator"&&EN(D)?V.jsx(ca,{themeSettings:g,isVisible:h,children:V.jsx(wN,ie({},D))}):t==="areamap"&&y3(D)?V.jsx(ca,{themeSettings:g,isVisible:h,children:V.jsx(p3,ie({},D))}):zv(t)&&DD(D)?V.jsx(ca,{themeSettings:g,isVisible:h,children:V.jsx(kD,ie({},D))}):null:V.jsx(Zc,{themeSettings:g})}):null};function Me(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Xu={exports:{}},Ro={exports:{}},Fe={};/** @license React v16.13.1
|
|
96
|
-
* react-is.production.min.js
|
|
97
|
-
*
|
|
98
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
99
|
-
*
|
|
100
|
-
* This source code is licensed under the MIT license found in the
|
|
101
|
-
* LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/var Fh;function J3(){if(Fh)return Fe;Fh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function x(w){if(typeof w=="object"&&w!==null){var P=w.$$typeof;switch(P){case t:switch(w=w.type,w){case c:case f:case n:case o:case a:case m:return w;default:switch(w=w&&w.$$typeof,w){case u:case p:case _:case b:case l:return w;default:return P}}case r:return P}}}function T(w){return x(w)===f}return Fe.AsyncMode=c,Fe.ConcurrentMode=f,Fe.ContextConsumer=u,Fe.ContextProvider=l,Fe.Element=t,Fe.ForwardRef=p,Fe.Fragment=n,Fe.Lazy=_,Fe.Memo=b,Fe.Portal=r,Fe.Profiler=o,Fe.StrictMode=a,Fe.Suspense=m,Fe.isAsyncMode=function(w){return T(w)||x(w)===c},Fe.isConcurrentMode=T,Fe.isContextConsumer=function(w){return x(w)===u},Fe.isContextProvider=function(w){return x(w)===l},Fe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Fe.isForwardRef=function(w){return x(w)===p},Fe.isFragment=function(w){return x(w)===n},Fe.isLazy=function(w){return x(w)===_},Fe.isMemo=function(w){return x(w)===b},Fe.isPortal=function(w){return x(w)===r},Fe.isProfiler=function(w){return x(w)===o},Fe.isStrictMode=function(w){return x(w)===a},Fe.isSuspense=function(w){return x(w)===m},Fe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===f||w===o||w===a||w===m||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===_||w.$$typeof===b||w.$$typeof===l||w.$$typeof===u||w.$$typeof===p||w.$$typeof===C||w.$$typeof===M||w.$$typeof===E||w.$$typeof===g)},Fe.typeOf=x,Fe}var je={};/** @license React v16.13.1
|
|
103
|
-
* react-is.development.js
|
|
104
|
-
*
|
|
105
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the MIT license found in the
|
|
108
|
-
* LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/var jh;function eL(){return jh||(jh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function x(oe){return typeof oe=="string"||typeof oe=="function"||oe===n||oe===f||oe===o||oe===a||oe===m||oe===h||typeof oe=="object"&&oe!==null&&(oe.$$typeof===_||oe.$$typeof===b||oe.$$typeof===l||oe.$$typeof===u||oe.$$typeof===p||oe.$$typeof===C||oe.$$typeof===M||oe.$$typeof===E||oe.$$typeof===g)}function T(oe){if(typeof oe=="object"&&oe!==null){var ve=oe.$$typeof;switch(ve){case t:var de=oe.type;switch(de){case c:case f:case n:case o:case a:case m:return de;default:var _e=de&&de.$$typeof;switch(_e){case u:case p:case _:case b:case l:return _e;default:return ve}}case r:return ve}}}var w=c,P=f,R=u,D=l,A=t,z=p,k=n,O=_,F=b,j=r,I=o,B=a,U=m,q=!1;function G(oe){return q||(q=!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.")),$(oe)||T(oe)===c}function $(oe){return T(oe)===f}function H(oe){return T(oe)===u}function ee(oe){return T(oe)===l}function X(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===t}function K(oe){return T(oe)===p}function J(oe){return T(oe)===n}function ne(oe){return T(oe)===_}function le(oe){return T(oe)===b}function se(oe){return T(oe)===r}function ue(oe){return T(oe)===o}function fe(oe){return T(oe)===a}function pe(oe){return T(oe)===m}je.AsyncMode=w,je.ConcurrentMode=P,je.ContextConsumer=R,je.ContextProvider=D,je.Element=A,je.ForwardRef=z,je.Fragment=k,je.Lazy=O,je.Memo=F,je.Portal=j,je.Profiler=I,je.StrictMode=B,je.Suspense=U,je.isAsyncMode=G,je.isConcurrentMode=$,je.isContextConsumer=H,je.isContextProvider=ee,je.isElement=X,je.isForwardRef=K,je.isFragment=J,je.isLazy=ne,je.isMemo=le,je.isPortal=se,je.isProfiler=ue,je.isStrictMode=fe,je.isSuspense=pe,je.isValidElementType=x,je.typeOf=T}()),je}var Bh;function Xv(){return Bh||(Bh=1,process.env.NODE_ENV==="production"?Ro.exports=J3():Ro.exports=eL()),Ro.exports}/*
|
|
110
|
-
object-assign
|
|
111
|
-
(c) Sindre Sorhus
|
|
112
|
-
@license MIT
|
|
113
|
-
*/var Fl,Hh;function tL(){if(Hh)return Fl;Hh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var l={},u=0;u<10;u++)l["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(l).map(function(p){return l[p]});if(c.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(p){f[p]=p}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch(p){return!1}}return Fl=a()?Object.assign:function(o,l){for(var u,c=n(o),f,p=1;p<arguments.length;p++){u=Object(arguments[p]);for(var m in u)t.call(u,m)&&(c[m]=u[m]);if(e){f=e(u);for(var h=0;h<f.length;h++)r.call(u,f[h])&&(c[f[h]]=u[f[h]])}}return c},Fl}var jl,Vh;function Qc(){if(Vh)return jl;Vh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jl=e,jl}var Bl,Uh;function Zv(){return Uh||(Uh=1,Bl=Function.call.bind(Object.prototype.hasOwnProperty)),Bl}var Hl,qh;function rL(){if(qh)return Hl;qh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Qc(),r={},n=Zv();e=function(o){var l="Warning: "+o;typeof console!="undefined"&&console.error(l);try{throw new Error(l)}catch(u){}}}function a(o,l,u,c,f){if(process.env.NODE_ENV!=="production"){for(var p in o)if(n(o,p)){var m;try{if(typeof o[p]!="function"){var h=Error((c||"React class")+": "+u+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}m=o[p](l,p,c,u,null,t)}catch(_){m=_}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var b=f?f():"";e("Failed "+u+" type: "+m.message+(b!=null?b:""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Hl=a,Hl}var Vl,Gh;function nL(){if(Gh)return Vl;Gh=1;var e=Xv(),t=tL(),r=Qc(),n=Zv(),a=rL(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var c="Warning: "+u;typeof console!="undefined"&&console.error(c);try{throw new Error(c)}catch(f){}});function l(){return null}return Vl=function(u,c){var f=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function m($){var H=$&&(f&&$[f]||$[p]);if(typeof H=="function")return H}var h="<<anonymous>>",b={array:M("array"),bigint:M("bigint"),bool:M("boolean"),func:M("function"),number:M("number"),object:M("object"),string:M("string"),symbol:M("symbol"),any:E(),arrayOf:x,element:T(),elementType:w(),instanceOf:P,node:z(),objectOf:D,oneOf:R,oneOfType:A,shape:O,exact:F};function _($,H){return $===H?$!==0||1/$===1/H:$!==$&&H!==H}function g($,H){this.message=$,this.data=H&&typeof H=="object"?H:{},this.stack=""}g.prototype=Error.prototype;function C($){if(process.env.NODE_ENV!=="production")var H={},ee=0;function X(J,ne,le,se,ue,fe,pe){if(se=se||h,fe=fe||le,pe!==r){if(c){var oe=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 oe.name="Invariant Violation",oe}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var ve=se+":"+le;!H[ve]&&ee<3&&(o("You are manually calling a React.PropTypes validation function for the `"+fe+"` prop on `"+se+"`. 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."),H[ve]=!0,ee++)}}return ne[le]==null?J?ne[le]===null?new g("The "+ue+" `"+fe+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new g("The "+ue+" `"+fe+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:$(ne,le,se,ue,fe)}var K=X.bind(null,!1);return K.isRequired=X.bind(null,!0),K}function M($){function H(ee,X,K,J,ne,le){var se=ee[X],ue=B(se);if(ue!==$){var fe=U(se);return new g("Invalid "+J+" `"+ne+"` of type "+("`"+fe+"` supplied to `"+K+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return C(H)}function E(){return C(l)}function x($){function H(ee,X,K,J,ne){if(typeof $!="function")return new g("Property `"+ne+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var le=ee[X];if(!Array.isArray(le)){var se=B(le);return new g("Invalid "+J+" `"+ne+"` of type "+("`"+se+"` supplied to `"+K+"`, expected an array."))}for(var ue=0;ue<le.length;ue++){var fe=$(le,ue,K,J,ne+"["+ue+"]",r);if(fe instanceof Error)return fe}return null}return C(H)}function T(){function $(H,ee,X,K,J){var ne=H[ee];if(!u(ne)){var le=B(ne);return new g("Invalid "+K+" `"+J+"` of type "+("`"+le+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return C($)}function w(){function $(H,ee,X,K,J){var ne=H[ee];if(!e.isValidElementType(ne)){var le=B(ne);return new g("Invalid "+K+" `"+J+"` of type "+("`"+le+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return C($)}function P($){function H(ee,X,K,J,ne){if(!(ee[X]instanceof $)){var le=$.name||h,se=G(ee[X]);return new g("Invalid "+J+" `"+ne+"` of type "+("`"+se+"` supplied to `"+K+"`, expected ")+("instance of `"+le+"`."))}return null}return C(H)}function R($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),l;function H(ee,X,K,J,ne){for(var le=ee[X],se=0;se<$.length;se++)if(_(le,$[se]))return null;var ue=JSON.stringify($,function(pe,oe){var ve=U(oe);return ve==="symbol"?String(oe):oe});return new g("Invalid "+J+" `"+ne+"` of value `"+String(le)+"` "+("supplied to `"+K+"`, expected one of "+ue+"."))}return C(H)}function D($){function H(ee,X,K,J,ne){if(typeof $!="function")return new g("Property `"+ne+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var le=ee[X],se=B(le);if(se!=="object")return new g("Invalid "+J+" `"+ne+"` of type "+("`"+se+"` supplied to `"+K+"`, expected an object."));for(var ue in le)if(n(le,ue)){var fe=$(le,ue,K,J,ne+"."+ue,r);if(fe instanceof Error)return fe}return null}return C(H)}function A($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var H=0;H<$.length;H++){var ee=$[H];if(typeof ee!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(ee)+" at index "+H+"."),l}function X(K,J,ne,le,se){for(var ue=[],fe=0;fe<$.length;fe++){var pe=$[fe],oe=pe(K,J,ne,le,se,r);if(oe==null)return null;oe.data&&n(oe.data,"expectedType")&&ue.push(oe.data.expectedType)}var ve=ue.length>0?", expected one of type ["+ue.join(", ")+"]":"";return new g("Invalid "+le+" `"+se+"` supplied to "+("`"+ne+"`"+ve+"."))}return C(X)}function z(){function $(H,ee,X,K,J){return j(H[ee])?null:new g("Invalid "+K+" `"+J+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return C($)}function k($,H,ee,X,K){return new g(($||"React class")+": "+H+" type `"+ee+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function O($){function H(ee,X,K,J,ne){var le=ee[X],se=B(le);if(se!=="object")return new g("Invalid "+J+" `"+ne+"` of type `"+se+"` "+("supplied to `"+K+"`, expected `object`."));for(var ue in $){var fe=$[ue];if(typeof fe!="function")return k(K,J,ne,ue,U(fe));var pe=fe(le,ue,K,J,ne+"."+ue,r);if(pe)return pe}return null}return C(H)}function F($){function H(ee,X,K,J,ne){var le=ee[X],se=B(le);if(se!=="object")return new g("Invalid "+J+" `"+ne+"` of type `"+se+"` "+("supplied to `"+K+"`, expected `object`."));var ue=t({},ee[X],$);for(var fe in ue){var pe=$[fe];if(n($,fe)&&typeof pe!="function")return k(K,J,ne,fe,U(pe));if(!pe)return new g("Invalid "+J+" `"+ne+"` key `"+fe+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(ee[X],null," ")+`
|
|
114
|
-
Valid keys: `+JSON.stringify(Object.keys($),null," "));var oe=pe(le,fe,K,J,ne+"."+fe,r);if(oe)return oe}return null}return C(H)}function j($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(j);if($===null||u($))return!0;var H=m($);if(H){var ee=H.call($),X;if(H!==$.entries){for(;!(X=ee.next()).done;)if(!j(X.value))return!1}else for(;!(X=ee.next()).done;){var K=X.value;if(K&&!j(K[1]))return!1}}else return!1;return!0;default:return!1}}function I($,H){return $==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function B($){var H=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":I(H,$)?"symbol":H}function U($){if(typeof $=="undefined"||$===null)return""+$;var H=B($);if(H==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return H}function q($){var H=U($);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function G($){return!$.constructor||!$.constructor.name?h:$.constructor.name}return b.checkPropTypes=a,b.resetWarningCache=a.resetWarningCache,b.PropTypes=b,b},Vl}var Ul,Yh;function iL(){if(Yh)return Ul;Yh=1;var e=Qc();function t(){}function r(){}return r.resetWarningCache=t,Ul=function(){function n(l,u,c,f,p,m){if(m!==e){var h=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 h.name="Invariant Violation",h}}n.isRequired=n;function a(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},Ul}if(process.env.NODE_ENV!=="production"){var aL=Xv(),oL=!0;Xu.exports=nL()(aL.isElement,oL)}else Xu.exports=iL()();var jt=Xu.exports;const v=N.getDefaultExportFromCjs(jt);function Kv(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Kv(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Oe(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Kv(e))&&(n&&(n+=" "),n+=t);return n}function at(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,l)=>{if(l){const u=t(l);u!==""&&o.push(u),r&&r[l]&&o.push(r[l])}return o},[]).join(" ")}),n}function sL(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 lL(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const uL=Number.isInteger||lL;function Qv(e,t,r,n){const a=e[t];if(a==null||!uL(a)){const o=sL(a);return new RangeError(`Invalid ${n} \`${t}\` of type \`${o}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function Jv(e,t,...r){return e[t]===void 0?null:Qv(e,t,...r)}function Zu(){return null}Jv.isRequired=Qv;Zu.isRequired=Zu;const Or=process.env.NODE_ENV==="production"?Zu:Jv;function Jc(e,t){const r=te({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=te({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=te({},o),Object.keys(a).forEach(l=>{r[n][l]=Jc(a[l],o[l])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function cL(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Jc(t.components[r].defaultProps,n)}function hn(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 eg(e){if(!hn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=eg(e[r])}),t}function Ir(e,t,r={clone:!0}){const n=r.clone?te({},e):e;return hn(e)&&hn(t)&&Object.keys(t).forEach(a=>{a!=="__proto__"&&(hn(t[a])&&a in e&&hn(e[a])?n[a]=Ir(e[a],t[a],r):r.clone?n[a]=hn(t[a])?eg(t[a]):t[a]:n[a]=t[a])}),n}const dL=Object.freeze(Object.defineProperty({__proto__:null,default:Ir,isPlainObject:hn},Symbol.toStringTag,{value:"Module"})),fL=["values","unit","step"],hL=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>te({},r,{[n.key]:n.val}),{})};function tg(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Me(e,fL),o=hL(t),l=Object.keys(o);function u(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function f(h,b){const _=l.indexOf(b);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(_!==-1&&typeof t[l[_]]=="number"?t[l[_]]:b)-n/100}${r})`}function p(h){return l.indexOf(h)+1<l.length?f(h,l[l.indexOf(h)+1]):u(h)}function m(h){const b=l.indexOf(h);return b===0?u(l[1]):b===l.length-1?c(l[b]):f(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")}return te({keys:l,values:o,up:u,down:c,between:f,only:p,not:m,unit:r},a)}const pL={borderRadius:4},bn=process.env.NODE_ENV!=="production"?v.oneOfType([v.number,v.string,v.object,v.array]):{};function ma(e,t){return t?Ir(e,t,{clone:!1}):e}const ed={xs:0,sm:600,md:900,lg:1200,xl:1536},Xh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ed[e]}px)`};function Xr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||Xh;return t.reduce((l,u,c)=>(l[o.up(o.keys[c])]=r(t[c]),l),{})}if(typeof t=="object"){const o=n.breakpoints||Xh;return Object.keys(t).reduce((l,u)=>{if(Object.keys(o.values||ed).indexOf(u)!==-1){const c=o.up(u);l[c]=r(t[u],u)}else{const c=u;l[c]=t[c]}return l},{})}return r(t)}function mL(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function vL(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function Ta(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const gL=Object.freeze(Object.defineProperty({__proto__:null,default:Ta},Symbol.toStringTag,{value:"Module"}));function De(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ta(7));return e.charAt(0).toUpperCase()+e.slice(1)}const yL=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"}));function xs(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function Qo(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=xs(e,r)||n,t&&(a=t(a,n,e)),a}function lt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=l=>{if(l[t]==null)return null;const u=l[t],c=l.theme,f=xs(c,n)||{};return Xr(l,u,m=>{let h=Qo(f,a,m);return m===h&&typeof m=="string"&&(h=Qo(f,a,`${t}${m==="default"?"":De(m)}`,m)),r===!1?h:{[r]:h}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:bn}:{},o.filterProps=[t],o}function bL(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const _L={m:"margin",p:"padding"},wL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Zh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xL=bL(e=>{if(e.length>2)if(Zh[e])e=Zh[e];else return[e];const[t,r]=e.split(""),n=_L[t],a=wL[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),Cs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ts=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],CL=[...Cs,...Ts];function ja(e,t,r,n){var a;const o=(a=xs(e,t,!1))!=null?a:r;return typeof o=="number"?l=>typeof l=="string"?l:(process.env.NODE_ENV!=="production"&&typeof l!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${l}.`),o*l):Array.isArray(o)?l=>typeof l=="string"?l:(process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>o.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${l} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
115
|
-
`)):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(`
|
|
116
|
-
`))),o[l]):typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
117
|
-
`)),()=>{})}function rg(e){return ja(e,"spacing",8,"spacing")}function Ba(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function TL(e,t){return r=>e.reduce((n,a)=>(n[a]=Ba(t,r),n),{})}function EL(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=xL(r),o=TL(a,n),l=e[r];return Xr(e,l,o)}function ng(e,t){const r=rg(e.theme);return Object.keys(e).map(n=>EL(e,t,n,r)).reduce(ma,{})}function rt(e){return ng(e,Cs)}rt.propTypes=process.env.NODE_ENV!=="production"?Cs.reduce((e,t)=>(e[t]=bn,e),{}):{};rt.filterProps=Cs;function nt(e){return ng(e,Ts)}nt.propTypes=process.env.NODE_ENV!=="production"?Ts.reduce((e,t)=>(e[t]=bn,e),{}):{};nt.filterProps=Ts;process.env.NODE_ENV!=="production"&&CL.reduce((e,t)=>(e[t]=bn,e),{});function ML(e=8){if(e.mui)return e;const t=rg({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(o=>{const l=t(o);return typeof l=="number"?`${l}px`:l}).join(" "));return r.mui=!0,r}function Es(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?ma(a,t[o](n)):a,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,a)=>Object.assign(n,a.propTypes),{}):{},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function nr(e){return typeof e!="number"?e:`${e}px solid`}function ur(e,t){return lt({prop:e,themeKey:"borders",transform:t})}const SL=ur("border",nr),PL=ur("borderTop",nr),RL=ur("borderRight",nr),OL=ur("borderBottom",nr),kL=ur("borderLeft",nr),NL=ur("borderColor"),DL=ur("borderTopColor"),LL=ur("borderRightColor"),AL=ur("borderBottomColor"),IL=ur("borderLeftColor"),zL=ur("outline",nr),$L=ur("outlineColor"),Ms=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ja(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Ba(t,n)});return Xr(e,e.borderRadius,r)}return null};Ms.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:bn}:{};Ms.filterProps=["borderRadius"];Es(SL,PL,RL,OL,kL,NL,DL,LL,AL,IL,Ms,zL,$L);const Ss=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ja(e.theme,"spacing",8,"gap"),r=n=>({gap:Ba(t,n)});return Xr(e,e.gap,r)}return null};Ss.propTypes=process.env.NODE_ENV!=="production"?{gap:bn}:{};Ss.filterProps=["gap"];const Ps=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ja(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Ba(t,n)});return Xr(e,e.columnGap,r)}return null};Ps.propTypes=process.env.NODE_ENV!=="production"?{columnGap:bn}:{};Ps.filterProps=["columnGap"];const Rs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ja(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Ba(t,n)});return Xr(e,e.rowGap,r)}return null};Rs.propTypes=process.env.NODE_ENV!=="production"?{rowGap:bn}:{};Rs.filterProps=["rowGap"];const WL=lt({prop:"gridColumn"}),FL=lt({prop:"gridRow"}),jL=lt({prop:"gridAutoFlow"}),BL=lt({prop:"gridAutoColumns"}),HL=lt({prop:"gridAutoRows"}),VL=lt({prop:"gridTemplateColumns"}),UL=lt({prop:"gridTemplateRows"}),qL=lt({prop:"gridTemplateAreas"}),GL=lt({prop:"gridArea"});Es(Ss,Ps,Rs,WL,FL,jL,BL,HL,VL,UL,qL,GL);function Ci(e,t){return t==="grey"?t:e}const YL=lt({prop:"color",themeKey:"palette",transform:Ci}),XL=lt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ci}),ZL=lt({prop:"backgroundColor",themeKey:"palette",transform:Ci});Es(YL,XL,ZL);function Vt(e){return e<=1&&e!==0?`${e*100}%`:e}const KL=lt({prop:"width",transform:Vt}),td=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||ed[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Vt(r)}};return Xr(e,e.maxWidth,t)}return null};td.filterProps=["maxWidth"];const QL=lt({prop:"minWidth",transform:Vt}),JL=lt({prop:"height",transform:Vt}),eA=lt({prop:"maxHeight",transform:Vt}),tA=lt({prop:"minHeight",transform:Vt});lt({prop:"size",cssProperty:"width",transform:Vt});lt({prop:"size",cssProperty:"height",transform:Vt});const rA=lt({prop:"boxSizing"});Es(KL,td,QL,JL,eA,tA,rA);const Ha={border:{themeKey:"borders",transform:nr},borderTop:{themeKey:"borders",transform:nr},borderRight:{themeKey:"borders",transform:nr},borderBottom:{themeKey:"borders",transform:nr},borderLeft:{themeKey:"borders",transform:nr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:nr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ms},color:{themeKey:"palette",transform:Ci},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ci},backgroundColor:{themeKey:"palette",transform:Ci},p:{style:nt},pt:{style:nt},pr:{style:nt},pb:{style:nt},pl:{style:nt},px:{style:nt},py:{style:nt},padding:{style:nt},paddingTop:{style:nt},paddingRight:{style:nt},paddingBottom:{style:nt},paddingLeft:{style:nt},paddingX:{style:nt},paddingY:{style:nt},paddingInline:{style:nt},paddingInlineStart:{style:nt},paddingInlineEnd:{style:nt},paddingBlock:{style:nt},paddingBlockStart:{style:nt},paddingBlockEnd:{style:nt},m:{style:rt},mt:{style:rt},mr:{style:rt},mb:{style:rt},ml:{style:rt},mx:{style:rt},my:{style:rt},margin:{style:rt},marginTop:{style:rt},marginRight:{style:rt},marginBottom:{style:rt},marginLeft:{style:rt},marginX:{style:rt},marginY:{style:rt},marginInline:{style:rt},marginInlineStart:{style:rt},marginInlineEnd:{style:rt},marginBlock:{style:rt},marginBlockStart:{style:rt},marginBlockEnd:{style:rt},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:Ss},rowGap:{style:Rs},columnGap:{style:Ps},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vt},maxWidth:{style:td},minWidth:{transform:Vt},height:{transform:Vt},maxHeight:{transform:Vt},minHeight:{transform:Vt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function nA(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function iA(e,t){return typeof e=="function"?e(t):e}function ig(){function e(r,n,a,o){const l={[r]:n,theme:a},u=o[r];if(!u)return{[r]:n};const{cssProperty:c=r,themeKey:f,transform:p,style:m}=u;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const h=xs(a,f)||{};return m?m(l):Xr(l,n,_=>{let g=Qo(h,p,_);return _===g&&typeof _=="string"&&(g=Qo(h,p,`${r}${_==="default"?"":De(_)}`,_)),c===!1?g:{[c]:g}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const l=(n=o.unstable_sxConfig)!=null?n:Ha;function u(c){let f=c;if(typeof c=="function")f=c(o);else if(typeof c!="object")return c;if(!f)return null;const p=mL(o.breakpoints),m=Object.keys(p);let h=p;return Object.keys(f).forEach(b=>{const _=iA(f[b],o);if(_!=null)if(typeof _=="object")if(l[b])h=ma(h,e(b,_,o,l));else{const g=Xr({theme:o},_,C=>({[b]:C}));nA(g,_)?h[b]=t({sx:_,theme:o}):h=ma(h,g)}else h=ma(h,e(b,_,o,l))}),vL(m,h)}return Array.isArray(a)?a.map(u):u(a)}return t}const Os=ig();Os.filterProps=["sx"];function ag(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const aA=["breakpoints","palette","spacing","shape"];function rd(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,l=Me(e,aA),u=tg(r),c=ML(a);let f=Ir({breakpoints:u,direction:"ltr",components:{},palette:te({mode:"light"},n),spacing:c,shape:te({},pL,o)},l);return f.applyStyles=ag,f=t.reduce((p,m)=>Ir(p,m),f),f.unstable_sxConfig=te({},Ha,l==null?void 0:l.unstable_sxConfig),f.unstable_sx=function(m){return Os({sx:m,theme:this})},f}const oA=Object.freeze(Object.defineProperty({__proto__:null,default:rd,private_createBreakpoints:tg,unstable_applyStyles:ag},Symbol.toStringTag,{value:"Module"}));let Ku;typeof document=="object"&&(Ku=Nm({key:"css",prepend:!0}));function og(e){const{injectFirst:t,children:r}=e;return t&&Ku?V.jsx(zm,{value:Ku,children:r}):r}process.env.NODE_ENV!=="production"&&(og.propTypes={children:v.node,injectFirst:v.bool});function sA(e){return e==null||Object.keys(e).length===0}function sg(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t(sA(a)?r:a):t;return V.jsx(Mc,{styles:n})}process.env.NODE_ENV!=="production"&&(sg.propTypes={defaultTheme:v.object,styles:v.oneOfType([v.array,v.string,v.object,v.func])});/**
|
|
118
|
-
* @mui/styled-engine v5.15.14
|
|
119
|
-
*
|
|
120
|
-
* @license MIT
|
|
121
|
-
* This source code is licensed under the MIT license found in the
|
|
122
|
-
* LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/function lA(e,t){const r=wr(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const a=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${a})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
124
|
-
`)):n.some(o=>o===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),r(...n)}:r}const uA=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},cA=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:sg,StyledEngineProvider:og,ThemeContext:yn,css:Sc,default:lA,internal_processStyles:uA,keyframes:Ia},Symbol.toStringTag,{value:"Module"}));function dA(e){return Object.keys(e).length===0}function fA(e=null){const t=Z.useContext(yn);return!t||dA(t)?e:t}const hA=rd();function lg(e=hA){return fA(e)}function pA({props:e,name:t,defaultTheme:r,themeId:n}){let a=lg(r);return n&&(a=a[n]||a),cL({theme:a,name:t,props:e})}const mA=["sx"],vA=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ha;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function ug(e){const{sx:t}=e,r=Me(e,mA),{systemProps:n,otherProps:a}=vA(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...l)=>{const u=t(...l);return hn(u)?te({},n,u):n}:o=te({},n,t),te({},a,{sx:o})}const gA=Object.freeze(Object.defineProperty({__proto__:null,default:Os,extendSxProp:ug,unstable_createStyleFunctionSx:ig,unstable_defaultSxConfig:Ha},Symbol.toStringTag,{value:"Module"})),Kh=e=>e,yA=()=>{let e=Kh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Kh}}},bA=yA(),cg={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 Je(e,t,r="Mui"){const n=cg[t];return n?`${r}-${n}`:`${bA.generate(e)}-${t}`}function _A(e,t){return te({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ut={};const wA=N.getAugmentedNamespace(gL);function xA(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const CA=Object.freeze(Object.defineProperty({__proto__:null,default:xA},Symbol.toStringTag,{value:"Module"})),TA=N.getAugmentedNamespace(CA);var dg=Ye;Object.defineProperty(ut,"__esModule",{value:!0});var it=ut.alpha=vg;ut.blend=LA;ut.colorChannel=void 0;var Jo=ut.darken=id;ut.decomposeColor=ar;var Qh=ut.emphasize=gg,Jh=ut.getContrastRatio=RA;ut.getLuminance=es;ut.hexToRgb=hg;ut.hslToRgb=mg;var fg=ut.lighten=ad;ut.private_safeAlpha=OA;ut.private_safeColorChannel=void 0;ut.private_safeDarken=kA;ut.private_safeEmphasize=DA;ut.private_safeLighten=NA;ut.recomposeColor=Ai;ut.rgbToHex=PA;var ep=dg(wA),EA=dg(TA);function nd(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,EA.default)(e,t,r)}function hg(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function MA(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ar(e){if(e.type)return e;if(e.charAt(0)==="#")return ar(hg(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
125
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,ep.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${a}\` color space.
|
|
126
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,ep.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const pg=e=>{const t=ar(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ut.colorChannel=pg;const SA=(e,t)=>{try{return pg(e)}catch(r){return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};ut.private_safeColorChannel=SA;function Ai(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function PA(e){if(e.indexOf("#")===0)return e;const{values:t}=ar(e);return`#${t.map((r,n)=>MA(n===3?Math.round(255*r):r)).join("")}`}function mg(e){e=ar(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),l=(f,p=(f+r/30)%12)=>a-o*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(u+="a",c.push(t[3])),Ai({type:u,values:c})}function es(e){e=ar(e);let t=e.type==="hsl"||e.type==="hsla"?ar(mg(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:Ht((r+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function RA(e,t){const r=es(e),n=es(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function vg(e,t){return e=ar(e),t=nd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ai(e)}function OA(e,t,r){try{return vg(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function id(e,t){if(e=ar(e),t=nd(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Ai(e)}function kA(e,t,r){try{return id(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ad(e,t){if(e=ar(e),t=nd(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Ai(e)}function NA(e,t,r){try{return ad(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function gg(e,t=.15){return es(e)>.5?id(e,t):ad(e,t)}function DA(e,t,r){try{return gg(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function LA(e,t,r,n=1){const a=(c,f)=>Math.round(Ht(Ht(c,1/n)*(1-r)+Ht(f,1/n)*r,n)),o=ar(e),l=ar(t),u=[a(o.values[0],l.values[0]),a(o.values[1],l.values[1]),a(o.values[2],l.values[2])];return Ai({type:"rgb",values:u})}const Ea={black:"#000",white:"#fff"},AA={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"},li={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"},ui={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"},na={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"},ci={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"},di={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"},fi={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"},IA=["mode","contrastThreshold","tonalOffset"],tp={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:Ea.white,default:Ea.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}},ql={text:{primary:Ea.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:Ea.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 rp(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=fg(e.main,a):t==="dark"&&(e.dark=Jo(e.main,o)))}function zA(e="light"){return e==="dark"?{main:ci[200],light:ci[50],dark:ci[400]}:{main:ci[700],light:ci[400],dark:ci[800]}}function $A(e="light"){return e==="dark"?{main:li[200],light:li[50],dark:li[400]}:{main:li[500],light:li[300],dark:li[700]}}function WA(e="light"){return e==="dark"?{main:ui[500],light:ui[300],dark:ui[700]}:{main:ui[700],light:ui[400],dark:ui[800]}}function FA(e="light"){return e==="dark"?{main:di[400],light:di[300],dark:di[700]}:{main:di[700],light:di[500],dark:di[900]}}function jA(e="light"){return e==="dark"?{main:fi[400],light:fi[300],dark:fi[700]}:{main:fi[800],light:fi[500],dark:fi[900]}}function BA(e="light"){return e==="dark"?{main:na[400],light:na[300],dark:na[700]}:{main:"#ed6c02",light:na[500],dark:na[900]}}function HA(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Me(e,IA),o=e.primary||zA(t),l=e.secondary||$A(t),u=e.error||WA(t),c=e.info||FA(t),f=e.success||jA(t),p=e.warning||BA(t);function m(g){const C=Jh(g,ql.text.primary)>=r?ql.text.primary:tp.text.primary;if(process.env.NODE_ENV!=="production"){const M=Jh(g,C);M<3&&console.error([`MUI: The contrast ratio of ${M}:1 for ${C} on ${g}`,"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(`
|
|
127
|
-
`))}return C}const h=({color:g,name:C,mainShade:M=500,lightShade:E=300,darkShade:x=700})=>{if(g=te({},g),!g.main&&g[M]&&(g.main=g[M]),!g.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
|
|
128
|
-
The color object needs to have a \`main\` property or a \`${M}\` property.`:Ta(11,C?` (${C})`:"",M));if(typeof g.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
|
|
129
|
-
\`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead.
|
|
130
|
-
|
|
131
|
-
Did you intend to use one of the following approaches?
|
|
132
|
-
|
|
133
|
-
import { green } from "@mui/material/colors";
|
|
134
|
-
|
|
135
|
-
const theme1 = createTheme({ palette: {
|
|
136
|
-
primary: green,
|
|
137
|
-
} });
|
|
138
|
-
|
|
139
|
-
const theme2 = createTheme({ palette: {
|
|
140
|
-
primary: { main: green[500] },
|
|
141
|
-
} });`:Ta(12,C?` (${C})`:"",JSON.stringify(g.main)));return rp(g,"light",E,n),rp(g,"dark",x,n),g.contrastText||(g.contrastText=m(g.main)),g},b={dark:ql,light:tp};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ir(te({common:te({},Ea),mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:u,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:f,name:"success"}),grey:AA,contrastThreshold:r,getContrastText:m,augmentColor:h,tonalOffset:n},b[t]),a)}const VA=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function UA(e){return Math.round(e*1e5)/1e5}const np={textTransform:"uppercase"},ip='"Roboto", "Helvetica", "Arial", sans-serif';function qA(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=ip,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:m}=r,h=Me(r,VA);process.env.NODE_ENV!=="production"&&(typeof a!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof f!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=a/14,_=m||(M=>`${M/f*b}rem`),g=(M,E,x,T,w)=>te({fontFamily:n,fontWeight:M,fontSize:_(E),lineHeight:x},n===ip?{letterSpacing:`${UA(T/E)}em`}:{},w,p),C={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(l,48,1.167,0),h4:g(l,34,1.235,.25),h5:g(l,24,1.334,0),h6:g(u,20,1.6,.15),subtitle1:g(l,16,1.75,.15),subtitle2:g(u,14,1.57,.1),body1:g(l,16,1.5,.15),body2:g(l,14,1.43,.15),button:g(u,14,1.75,.4,np),caption:g(l,12,1.66,.4),overline:g(l,12,2.66,1,np),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ir(te({htmlFontSize:f,pxToRem:_,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:c},C),h,{clone:!1})}const GA=.2,YA=.14,XA=.12;function Xe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${GA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${YA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${XA})`].join(",")}const ZA=["none",Xe(0,2,1,-1,0,1,1,0,0,1,3,0),Xe(0,3,1,-2,0,2,2,0,0,1,5,0),Xe(0,3,3,-2,0,3,4,0,0,1,8,0),Xe(0,2,4,-1,0,4,5,0,0,1,10,0),Xe(0,3,5,-1,0,5,8,0,0,1,14,0),Xe(0,3,5,-1,0,6,10,0,0,1,18,0),Xe(0,4,5,-2,0,7,10,1,0,2,16,1),Xe(0,5,5,-3,0,8,10,1,0,3,14,2),Xe(0,5,6,-3,0,9,12,1,0,3,16,2),Xe(0,6,6,-3,0,10,14,1,0,4,18,3),Xe(0,6,7,-4,0,11,15,1,0,4,20,3),Xe(0,7,8,-4,0,12,17,2,0,5,22,4),Xe(0,7,8,-4,0,13,19,2,0,5,24,4),Xe(0,7,9,-4,0,14,21,2,0,5,26,4),Xe(0,8,9,-5,0,15,22,2,0,6,28,5),Xe(0,8,10,-5,0,16,24,2,0,6,30,5),Xe(0,8,11,-5,0,17,26,2,0,6,32,5),Xe(0,9,11,-5,0,18,28,2,0,7,34,6),Xe(0,9,12,-6,0,19,29,2,0,7,36,6),Xe(0,10,13,-6,0,20,31,3,0,8,38,7),Xe(0,10,13,-6,0,21,33,3,0,8,40,7),Xe(0,10,14,-6,0,22,35,3,0,8,42,7),Xe(0,11,14,-7,0,23,36,3,0,9,44,8),Xe(0,11,15,-7,0,24,38,3,0,9,46,8)],KA=["duration","easing","delay"],QA={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)"},JA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ap(e){return`${Math.round(e)}ms`}function eI(e){if(!e)return 0;const t=e/36;return Math.round((4+15*Ht(t,.25)+t/5)*10)}function tI(e){const t=te({},QA,e.easing),r=te({},JA,e.duration);return te({getAutoHeightDuration:eI,create:(a=["all"],o={})=>{const{duration:l=r.standard,easing:u=t.easeInOut,delay:c=0}=o,f=Me(o,KA);if(process.env.NODE_ENV!=="production"){const p=h=>typeof h=="string",m=h=>!isNaN(parseFloat(h));!p(a)&&!Array.isArray(a)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(l)&&!p(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),p(u)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!p(c)&&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(`
|
|
142
|
-
`)),Object.keys(f).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(p=>`${p} ${typeof l=="string"?l:ap(l)} ${u} ${typeof c=="string"?c:ap(c)}`).join(",")}},e,{easing:t,duration:r})}const rI={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},nI=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function iI(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,l=Me(e,nI);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.":Ta(18));const u=HA(n),c=rd(e);let f=Ir(c,{mixins:_A(c.breakpoints,r),palette:u,shadows:ZA.slice(),typography:qA(u,o),transitions:tI(a),zIndex:te({},rI)});if(f=Ir(f,l),f=t.reduce((p,m)=>Ir(p,m),f),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(h,b)=>{let _;for(_ in h){const g=h[_];if(p.indexOf(_)!==-1&&Object.keys(g).length>0){if(process.env.NODE_ENV!=="production"){const C=Je("",_);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${_}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:g}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
143
|
-
`))}h[_]={}}}};Object.keys(f.components).forEach(h=>{const b=f.components[h].styleOverrides;b&&h.indexOf("Mui")===0&&m(b,h)})}return f.unstable_sxConfig=te({},Ha,l==null?void 0:l.unstable_sxConfig),f.unstable_sx=function(m){return Os({sx:m,theme:this})},f}const od=iI(),sd="$$material";function et({props:e,name:t}){return pA({props:e,name:t,defaultTheme:od,themeId:sd})}function Ze(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=Je(e,a,r)}),n}function aI(e){return Je("MuiPagination",e)}Ze("MuiPagination",["root","ul","outlined","text"]);function ld({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=Z.useRef(e!==void 0),[o,l]=Z.useState(t),u=a?e:o;if(process.env.NODE_ENV!=="production"){Z.useEffect(()=>{a!==(e!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${n} state of ${r} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} 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(`
|
|
144
|
-
`))},[n,r,e]);const{current:f}=Z.useRef(t);Z.useEffect(()=>{!a&&f!==t&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
145
|
-
`))},[JSON.stringify(t)])}const c=Z.useCallback(f=>{a||l(f)},[]);return[u,c]}const oI=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function sI(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:l=!1,hidePrevButton:u=!1,onChange:c,page:f,showFirstButton:p=!1,showLastButton:m=!1,siblingCount:h=1}=e,b=Me(e,oI),[_,g]=ld({controlled:f,default:a,name:r,state:"page"}),C=(A,z)=>{f||g(z),c&&c(A,z)},M=(A,z)=>{const k=z-A+1;return Array.from({length:k},(O,F)=>A+F)},E=M(1,Math.min(t,n)),x=M(Math.max(n-t+1,t+1),n),T=Math.max(Math.min(_-h,n-t-h*2-1),t+2),w=Math.min(Math.max(_+h,t+h*2+2),x.length>0?x[0]-2:n-1),P=[...p?["first"]:[],...u?[]:["previous"],...E,...T>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...M(T,w),...w<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...x,...l?[]:["next"],...m?["last"]:[]],R=A=>{switch(A){case"first":return 1;case"previous":return _-1;case"next":return _+1;case"last":return n;default:return null}},D=P.map(A=>typeof A=="number"?{onClick:z=>{C(z,A)},type:"page",page:A,selected:A===_,disabled:o,"aria-current":A===_?"true":void 0}:{onClick:z=>{C(z,R(A))},type:A,page:R(A),selected:!1,disabled:o||A.indexOf("ellipsis")===-1&&(A==="next"||A==="last"?_>=n:_<=1)});return te({items:D},b)}const lI=Z.createContext(),ud=()=>{const e=Z.useContext(lI);return e!=null?e:!1};function uI(e){return Je("MuiPaginationItem",e)}const Jt=Ze("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Va=v.oneOfType([v.func,v.object]);function _n(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function cI(e){const{prototype:t={}}=e;return!!t.isReactComponent}function dI(e,t,r,n,a){const o=e[t],l=a||t;if(o==null||typeof window=="undefined")return null;let u;return typeof o=="function"&&!cI(o)&&(u="Did you accidentally provide a plain function component instead?"),u!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const yg=_n(v.elementType,dI);var Ua={};const fI=N.getAugmentedNamespace(W_);var Gl={exports:{}},op;function hI(){return op||(op=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)){if(n.indexOf(o)>=0)continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Gl)),Gl.exports}const bg=N.getAugmentedNamespace(cA),pI=N.getAugmentedNamespace(dL),mI=N.getAugmentedNamespace(yL);var Qu={exports:{}},Be={};/**
|
|
146
|
-
* @license React
|
|
147
|
-
* react-is.production.min.js
|
|
148
|
-
*
|
|
149
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
150
|
-
*
|
|
151
|
-
* This source code is licensed under the MIT license found in the
|
|
152
|
-
* LICENSE file in the root directory of this source tree.
|
|
153
|
-
*/var sp;function vI(){if(sp)return Be;sp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function g(C){if(typeof C=="object"&&C!==null){var M=C.$$typeof;switch(M){case e:switch(C=C.type,C){case r:case a:case n:case f:case p:return C;default:switch(C=C&&C.$$typeof,C){case u:case l:case c:case h:case m:case o:return C;default:return M}}case t:return M}}}return Be.ContextConsumer=l,Be.ContextProvider=o,Be.Element=e,Be.ForwardRef=c,Be.Fragment=r,Be.Lazy=h,Be.Memo=m,Be.Portal=t,Be.Profiler=a,Be.StrictMode=n,Be.Suspense=f,Be.SuspenseList=p,Be.isAsyncMode=function(){return!1},Be.isConcurrentMode=function(){return!1},Be.isContextConsumer=function(C){return g(C)===l},Be.isContextProvider=function(C){return g(C)===o},Be.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},Be.isForwardRef=function(C){return g(C)===c},Be.isFragment=function(C){return g(C)===r},Be.isLazy=function(C){return g(C)===h},Be.isMemo=function(C){return g(C)===m},Be.isPortal=function(C){return g(C)===t},Be.isProfiler=function(C){return g(C)===a},Be.isStrictMode=function(C){return g(C)===n},Be.isSuspense=function(C){return g(C)===f},Be.isSuspenseList=function(C){return g(C)===p},Be.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===a||C===n||C===f||C===p||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===h||C.$$typeof===m||C.$$typeof===o||C.$$typeof===l||C.$$typeof===c||C.$$typeof===_||C.getModuleId!==void 0)},Be.typeOf=g,Be}var He={};/**
|
|
154
|
-
* @license React
|
|
155
|
-
* react-is.development.js
|
|
156
|
-
*
|
|
157
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
158
|
-
*
|
|
159
|
-
* This source code is licensed under the MIT license found in the
|
|
160
|
-
* LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/var lp;function gI(){return lp||(lp=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),_=!1,g=!1,C=!1,M=!1,E=!1,x;x=Symbol.for("react.module.reference");function T(de){return!!(typeof de=="string"||typeof de=="function"||de===r||de===a||E||de===n||de===f||de===p||M||de===b||_||g||C||typeof de=="object"&&de!==null&&(de.$$typeof===h||de.$$typeof===m||de.$$typeof===o||de.$$typeof===l||de.$$typeof===c||de.$$typeof===x||de.getModuleId!==void 0))}function w(de){if(typeof de=="object"&&de!==null){var _e=de.$$typeof;switch(_e){case e:var we=de.type;switch(we){case r:case a:case n:case f:case p:return we;default:var Ee=we&&we.$$typeof;switch(Ee){case u:case l:case c:case h:case m:case o:return Ee;default:return _e}}case t:return _e}}}var P=l,R=o,D=e,A=c,z=r,k=h,O=m,F=t,j=a,I=n,B=f,U=p,q=!1,G=!1;function $(de){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(de){return G||(G=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(de){return w(de)===l}function X(de){return w(de)===o}function K(de){return typeof de=="object"&&de!==null&&de.$$typeof===e}function J(de){return w(de)===c}function ne(de){return w(de)===r}function le(de){return w(de)===h}function se(de){return w(de)===m}function ue(de){return w(de)===t}function fe(de){return w(de)===a}function pe(de){return w(de)===n}function oe(de){return w(de)===f}function ve(de){return w(de)===p}He.ContextConsumer=P,He.ContextProvider=R,He.Element=D,He.ForwardRef=A,He.Fragment=z,He.Lazy=k,He.Memo=O,He.Portal=F,He.Profiler=j,He.StrictMode=I,He.Suspense=B,He.SuspenseList=U,He.isAsyncMode=$,He.isConcurrentMode=H,He.isContextConsumer=ee,He.isContextProvider=X,He.isElement=K,He.isForwardRef=J,He.isFragment=ne,He.isLazy=le,He.isMemo=se,He.isPortal=ue,He.isProfiler=fe,He.isStrictMode=pe,He.isSuspense=oe,He.isSuspenseList=ve,He.isValidElementType=T,He.typeOf=w}()),He}process.env.NODE_ENV==="production"?Qu.exports=vI():Qu.exports=gI();var Ma=Qu.exports;const yI=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function _g(e){const t=`${e}`.match(yI);return t&&t[1]||""}function wg(e,t=""){return e.displayName||e.name||_g(e)||t}function up(e,t,r){const n=wg(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function bI(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return wg(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ma.ForwardRef:return up(e,e.render,"ForwardRef");case Ma.Memo:return up(e,e.type,"memo");default:return}}}const _I=Object.freeze(Object.defineProperty({__proto__:null,default:bI,getFunctionName:_g},Symbol.toStringTag,{value:"Module"})),wI=N.getAugmentedNamespace(_I),xI=N.getAugmentedNamespace(oA),CI=N.getAugmentedNamespace(gA);var Ii=Ye;Object.defineProperty(Ua,"__esModule",{value:!0});var TI=Ua.default=$I;Ua.shouldForwardProp=jo;Ua.systemDefaultTheme=void 0;var er=Ii(fI),Ju=Ii(hI()),cp=DI(bg),EI=pI,MI=Ii(mI),SI=Ii(wI),PI=Ii(xI),RI=Ii(CI);const OI=["ownerState"],kI=["variants"],NI=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function xg(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(xg=function(n){return n?r:t})(e)}function DI(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=xg(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function LI(e){return Object.keys(e).length===0}function AI(e){return typeof e=="string"&&e.charCodeAt(0)>96}function jo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const II=Ua.systemDefaultTheme=(0,PI.default)(),dp=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Oo({defaultTheme:e,theme:t,themeId:r}){return LI(t)?e:t[r]||t}function zI(e){return e?(t,r)=>r[e]:null}function Bo(e,t){let{ownerState:r}=t,n=(0,Ju.default)(t,OI);const a=typeof e=="function"?e((0,er.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Bo(o,(0,er.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let u=(0,Ju.default)(a,kI);return o.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props((0,er.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(p=>{(r==null?void 0:r[p])!==c.props[p]&&n[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style((0,er.default)({ownerState:r},n,r)):c.style))}),u}return a}function $I(e={}){const{themeId:t,defaultTheme:r=II,rootShouldForwardProp:n=jo,slotShouldForwardProp:a=jo}=e,o=l=>(0,RI.default)((0,er.default)({},l,{theme:Oo((0,er.default)({},l,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(l,u={})=>{(0,cp.internal_processStyles)(l,w=>w.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:h=zI(dp(f))}=u,b=(0,Ju.default)(u,NI),_=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,g=m||!1;let C;process.env.NODE_ENV!=="production"&&c&&(C=`${c}-${dp(f||"Root")}`);let M=jo;f==="Root"||f==="root"?M=n:f?M=a:AI(l)&&(M=void 0);const E=(0,cp.default)(l,(0,er.default)({shouldForwardProp:M,label:C},b)),x=w=>typeof w=="function"&&w.__emotion_real!==w||(0,EI.isPlainObject)(w)?P=>Bo(w,(0,er.default)({},P,{theme:Oo({theme:P.theme,defaultTheme:r,themeId:t})})):w,T=(w,...P)=>{let R=x(w);const D=P?P.map(x):[];c&&h&&D.push(k=>{const O=Oo((0,er.default)({},k,{defaultTheme:r,themeId:t}));if(!O.components||!O.components[c]||!O.components[c].styleOverrides)return null;const F=O.components[c].styleOverrides,j={};return Object.entries(F).forEach(([I,B])=>{j[I]=Bo(B,(0,er.default)({},k,{theme:O}))}),h(k,j)}),c&&!_&&D.push(k=>{var O;const F=Oo((0,er.default)({},k,{defaultTheme:r,themeId:t})),j=F==null||(O=F.components)==null||(O=O[c])==null?void 0:O.variants;return Bo({variants:j},(0,er.default)({},k,{theme:F}))}),g||D.push(o);const A=D.length-P.length;if(Array.isArray(w)&&A>0){const k=new Array(A).fill("");R=[...w,...k],R.raw=[...w.raw,...k]}const z=E(R,...D);if(process.env.NODE_ENV!=="production"){let k;c&&(k=`${c}${(0,MI.default)(f||"")}`),k===void 0&&(k=`Styled(${(0,SI.default)(l)})`),z.displayName=k}return l.muiName&&(z.muiName=l.muiName),z};return E.withConfig&&(T.withConfig=E.withConfig),T}}function WI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qa=e=>WI(e)&&e!=="classes",ke=TI({themeId:sd,defaultTheme:od,rootShouldForwardProp:qa});function ec(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function At(...e){return Z.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{ec(r,t)})},e)}const Bn=typeof window!="undefined"?Z.useLayoutEffect:Z.useEffect;function Yr(e){const t=Z.useRef(e);return Bn(()=>{t.current=e}),Z.useRef((...r)=>(0,t.current)(...r)).current}const fp={};function FI(e,t){const r=Z.useRef(fp);return r.current===fp&&(r.current=e(t)),r}const jI=[];function BI(e){Z.useEffect(e,jI)}class Ga{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ga}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function _i(){const e=FI(Ga.create).current;return BI(e.disposeEffect),e}let ks=!0,tc=!1;const HI=new Ga,VI={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 UI(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&VI[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function qI(e){e.metaKey||e.altKey||e.ctrlKey||(ks=!0)}function Yl(){ks=!1}function GI(){this.visibilityState==="hidden"&&tc&&(ks=!0)}function YI(e){e.addEventListener("keydown",qI,!0),e.addEventListener("mousedown",Yl,!0),e.addEventListener("pointerdown",Yl,!0),e.addEventListener("touchstart",Yl,!0),e.addEventListener("visibilitychange",GI,!0)}function XI(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return ks||UI(t)}function Cg(){const e=Z.useCallback(a=>{a!=null&&YI(a.ownerDocument)},[]),t=Z.useRef(!1);function r(){return t.current?(tc=!0,HI.start(100,()=>{tc=!1}),t.current=!1,!0):!1}function n(a){return XI(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Tg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,su(e,t)}const hp={disabled:!1};var ZI=process.env.NODE_ENV!=="production"?v.oneOfType([v.number,v.shape({enter:v.number,exit:v.number,appear:v.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&v.oneOfType([v.string,v.shape({enter:v.string,exit:v.string,active:v.string}),v.shape({enter:v.string,enterDone:v.string,enterActive:v.string,exit:v.string,exitDone:v.string,exitActive:v.string})]);const ts=Q.createContext(null);var da="unmounted",In="exited",zn="entering",yi="entered",rc="exiting",Fr=function(e){Tg(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var l=a,u=l&&!l.isMounting?n.enter:n.appear,c;return o.appearStatus=null,n.in?u?(c=In,o.appearStatus=zn):c=yi:n.unmountOnExit||n.mountOnEnter?c=da:c=In,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var l=a.in;return l&&o.status===da?{status:In}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var l=this.state.status;this.props.in?l!==zn&&l!==yi&&(o=zn):(l===zn||l===yi)&&(o=rc)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,l,u;return o=l=u=a,a!=null&&typeof a!="number"&&(o=a.exit,l=a.enter,u=a.appear!==void 0?a.appear:l),{exit:o,enter:l,appear:u}},r.updateStatus=function(a,o){a===void 0&&(a=!1),o!==null?(this.cancelNextCallback(),o===zn?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:bi.findDOMNode(this)),this.performEnter(a)):this.performExit()):this.props.unmountOnExit&&this.state.status===In&&this.setState({status:da})},r.performEnter=function(a){var o=this,l=this.props.enter,u=this.context?this.context.isMounting:a,c=this.props.nodeRef?[u]:[bi.findDOMNode(this),u],f=c[0],p=c[1],m=this.getTimeouts(),h=u?m.appear:m.enter;if(!a&&!l||hp.disabled){this.safeSetState({status:yi},function(){o.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:zn},function(){o.props.onEntering(f,p),o.onTransitionEnd(h,function(){o.safeSetState({status:yi},function(){o.props.onEntered(f,p)})})})},r.performExit=function(){var a=this,o=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:bi.findDOMNode(this);if(!o||hp.disabled){this.safeSetState({status:In},function(){a.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:rc},function(){a.props.onExiting(u),a.onTransitionEnd(l.exit,function(){a.safeSetState({status:In},function(){a.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,o.nextCallback=null,a(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var l=this.props.nodeRef?this.props.nodeRef.current:bi.findDOMNode(this),u=a==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===da)return null;var o=this.props,l=o.children,u=Me(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Q.createElement(ts.Provider,{value:null},typeof l=="function"?l(a,u):Q.cloneElement(Q.Children.only(l),u))},t}(Q.Component);Fr.contextType=ts;Fr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:v.shape({current:typeof Element=="undefined"?v.any:function(e,t,r,n,a,o){var l=e[t];return v.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,r,n,a,o)}}),children:v.oneOfType([v.func.isRequired,v.element.isRequired]).isRequired,in:v.bool,mountOnEnter:v.bool,unmountOnExit:v.bool,appear:v.bool,enter:v.bool,exit:v.bool,timeout:function(t){var r=ZI;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return r.apply(void 0,[t].concat(a))},addEndListener:v.func,onEnter:v.func,onEntering:v.func,onEntered:v.func,onExit:v.func,onExiting:v.func,onExited:v.func}:{};function hi(){}Fr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hi,onEntering:hi,onEntered:hi,onExit:hi,onExiting:hi,onExited:hi};Fr.UNMOUNTED=da;Fr.EXITED=In;Fr.ENTERING=zn;Fr.ENTERED=yi;Fr.EXITING=rc;function cd(e,t){var r=function(o){return t&&Q.isValidElement(o)?t(o):o},n=Object.create(null);return e&&Q.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function KI(e,t){e=e||{},t=t||{};function r(p){return p in t?t[p]:e[p]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var l,u={};for(var c in t){if(n[c])for(l=0;l<n[c].length;l++){var f=n[c][l];u[n[c][l]]=r(f)}u[c]=r(c)}for(l=0;l<a.length;l++)u[a[l]]=r(a[l]);return u}function $n(e,t,r){return r[t]!=null?r[t]:e.props[t]}function QI(e,t){return cd(e.children,function(r){return Q.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:$n(r,"appear",e),enter:$n(r,"enter",e),exit:$n(r,"exit",e)})})}function JI(e,t,r){var n=cd(e.children),a=KI(t,n);return Object.keys(a).forEach(function(o){var l=a[o];if(Q.isValidElement(l)){var u=o in t,c=o in n,f=t[o],p=Q.isValidElement(f)&&!f.props.in;c&&(!u||p)?a[o]=Q.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:$n(l,"exit",e),enter:$n(l,"enter",e)}):!c&&u&&!p?a[o]=Q.cloneElement(l,{in:!1}):c&&u&&Q.isValidElement(f)&&(a[o]=Q.cloneElement(l,{onExited:r.bind(null,l),in:f.props.in,exit:$n(l,"exit",e),enter:$n(l,"enter",e)}))}}),a}var e5=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},t5={component:"div",childFactory:function(t){return t}},dd=function(e){Tg(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var l=o.handleExited.bind(ax(o));return o.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},o}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,o){var l=o.children,u=o.handleExited,c=o.firstRender;return{children:c?QI(a,u):JI(a,l,u),firstRender:!1}},r.handleExited=function(a,o){var l=cd(this.props.children);a.key in l||(a.props.onExited&&a.props.onExited(o),this.mounted&&this.setState(function(u){var c=te({},u.children);return delete c[a.key],{children:c}}))},r.render=function(){var a=this.props,o=a.component,l=a.childFactory,u=Me(a,["component","childFactory"]),c=this.state.contextValue,f=e5(this.state.children).map(l);return delete u.appear,delete u.enter,delete u.exit,o===null?Q.createElement(ts.Provider,{value:c},f):Q.createElement(ts.Provider,{value:c},Q.createElement(o,u,f))},t}(Q.Component);dd.propTypes=process.env.NODE_ENV!=="production"?{component:v.any,children:v.node,appear:v.bool,enter:v.bool,exit:v.bool,childFactory:v.func}:{};dd.defaultProps=t5;function r5(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Eg(e,t,r,n,a){const o=e[t],l=a||t;if(o==null||typeof window=="undefined")return null;let u;const c=o.type;return typeof c=="function"&&!r5(c)&&(u="Did you accidentally use a plain function component for an element instead?"),u!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Gn=_n(v.element,Eg);Gn.isRequired=_n(v.element.isRequired,Eg);const n5="exact-prop: ";function fd(e){return process.env.NODE_ENV==="production"?e:te({},e,{[n5]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}})}function Zr(e,t,r,n,a){if(process.env.NODE_ENV==="production")return null;const o=e[t],l=a||t;return o==null?null:o&&o.nodeType!==1?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function pp(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function i5(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Lt(e){return e&&e.ownerDocument||document}function Sa(e){return Lt(e).defaultView||window}let mp=0;function a5(e){const[t,r]=Z.useState(e),n=e||t;return Z.useEffect(()=>{t==null&&(mp+=1,r(`mui-${mp}`))},[t]),n}const vp=Z[`useId${Math.random()}`.slice(0,5)];function Mg(e){if(vp!==void 0){const t=vp();return e!=null?e:t}return a5(e)}function Sg(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Pg(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:l,in:u,onExited:c,timeout:f}=e,[p,m]=Z.useState(!1),h=Oe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),b={width:l,height:l,top:-(l/2)+o,left:-(l/2)+a},_=Oe(r.child,p&&r.childLeaving,n&&r.childPulsate);return!u&&!p&&m(!0),Z.useEffect(()=>{if(!u&&c!=null){const g=setTimeout(c,f);return()=>{clearTimeout(g)}}},[c,u,f]),V.jsx("span",{className:h,style:b,children:V.jsx("span",{className:_})})}process.env.NODE_ENV!=="production"&&(Pg.propTypes={classes:v.object.isRequired,className:v.string,in:v.bool,onExited:v.func,pulsate:v.bool,rippleSize:v.number,rippleX:v.number,rippleY:v.number,timeout:v.number.isRequired});const rr=Ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),o5=["center","classes","className"];let Ns=e=>e,gp,yp,bp,_p;const nc=550,s5=80,l5=Ia(gp||(gp=Ns`
|
|
162
|
-
0% {
|
|
163
|
-
transform: scale(0);
|
|
164
|
-
opacity: 0.1;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
100% {
|
|
168
|
-
transform: scale(1);
|
|
169
|
-
opacity: 0.3;
|
|
170
|
-
}
|
|
171
|
-
`)),u5=Ia(yp||(yp=Ns`
|
|
172
|
-
0% {
|
|
173
|
-
opacity: 1;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
100% {
|
|
177
|
-
opacity: 0;
|
|
178
|
-
}
|
|
179
|
-
`)),c5=Ia(bp||(bp=Ns`
|
|
180
|
-
0% {
|
|
181
|
-
transform: scale(1);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
50% {
|
|
185
|
-
transform: scale(0.92);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
100% {
|
|
189
|
-
transform: scale(1);
|
|
190
|
-
}
|
|
191
|
-
`)),d5=ke("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),f5=ke(Pg,{name:"MuiTouchRipple",slot:"Ripple"})(_p||(_p=Ns`
|
|
192
|
-
opacity: 0;
|
|
193
|
-
position: absolute;
|
|
194
|
-
|
|
195
|
-
&.${0} {
|
|
196
|
-
opacity: 0.3;
|
|
197
|
-
transform: scale(1);
|
|
198
|
-
animation-name: ${0};
|
|
199
|
-
animation-duration: ${0}ms;
|
|
200
|
-
animation-timing-function: ${0};
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
&.${0} {
|
|
204
|
-
animation-duration: ${0}ms;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
& .${0} {
|
|
208
|
-
opacity: 1;
|
|
209
|
-
display: block;
|
|
210
|
-
width: 100%;
|
|
211
|
-
height: 100%;
|
|
212
|
-
border-radius: 50%;
|
|
213
|
-
background-color: currentColor;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
& .${0} {
|
|
217
|
-
opacity: 0;
|
|
218
|
-
animation-name: ${0};
|
|
219
|
-
animation-duration: ${0}ms;
|
|
220
|
-
animation-timing-function: ${0};
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
& .${0} {
|
|
224
|
-
position: absolute;
|
|
225
|
-
/* @noflip */
|
|
226
|
-
left: 0px;
|
|
227
|
-
top: 0;
|
|
228
|
-
animation-name: ${0};
|
|
229
|
-
animation-duration: 2500ms;
|
|
230
|
-
animation-timing-function: ${0};
|
|
231
|
-
animation-iteration-count: infinite;
|
|
232
|
-
animation-delay: 200ms;
|
|
233
|
-
}
|
|
234
|
-
`),rr.rippleVisible,l5,nc,({theme:e})=>e.transitions.easing.easeInOut,rr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,rr.child,rr.childLeaving,u5,nc,({theme:e})=>e.transitions.easing.easeInOut,rr.childPulsate,c5,({theme:e})=>e.transitions.easing.easeInOut),Rg=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:l}=n,u=Me(n,o5),[c,f]=Z.useState([]),p=Z.useRef(0),m=Z.useRef(null);Z.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const h=Z.useRef(!1),b=_i(),_=Z.useRef(null),g=Z.useRef(null),C=Z.useCallback(T=>{const{pulsate:w,rippleX:P,rippleY:R,rippleSize:D,cb:A}=T;f(z=>[...z,V.jsx(f5,{classes:{ripple:Oe(o.ripple,rr.ripple),rippleVisible:Oe(o.rippleVisible,rr.rippleVisible),ripplePulsate:Oe(o.ripplePulsate,rr.ripplePulsate),child:Oe(o.child,rr.child),childLeaving:Oe(o.childLeaving,rr.childLeaving),childPulsate:Oe(o.childPulsate,rr.childPulsate)},timeout:nc,pulsate:w,rippleX:P,rippleY:R,rippleSize:D},p.current)]),p.current+=1,m.current=A},[o]),M=Z.useCallback((T={},w={},P=()=>{})=>{const{pulsate:R=!1,center:D=a||w.pulsate,fakeElement:A=!1}=w;if((T==null?void 0:T.type)==="mousedown"&&h.current){h.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(h.current=!0);const z=A?null:g.current,k=z?z.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,F,j;if(D||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)O=Math.round(k.width/2),F=Math.round(k.height/2);else{const{clientX:I,clientY:B}=T.touches&&T.touches.length>0?T.touches[0]:T;O=Math.round(I-k.left),F=Math.round(B-k.top)}if(D)j=Math.sqrt((2*Ht(k.width,2)+Ht(k.height,2))/3),j%2===0&&(j+=1);else{const I=Math.max(Math.abs((z?z.clientWidth:0)-O),O)*2+2,B=Math.max(Math.abs((z?z.clientHeight:0)-F),F)*2+2;j=Math.sqrt(Ht(I,2)+Ht(B,2))}T!=null&&T.touches?_.current===null&&(_.current=()=>{C({pulsate:R,rippleX:O,rippleY:F,rippleSize:j,cb:P})},b.start(s5,()=>{_.current&&(_.current(),_.current=null)})):C({pulsate:R,rippleX:O,rippleY:F,rippleSize:j,cb:P})},[a,C,b]),E=Z.useCallback(()=>{M({},{pulsate:!0})},[M]),x=Z.useCallback((T,w)=>{if(b.clear(),(T==null?void 0:T.type)==="touchend"&&_.current){_.current(),_.current=null,b.start(0,()=>{x(T,w)});return}_.current=null,f(P=>P.length>0?P.slice(1):P),m.current=w},[b]);return Z.useImperativeHandle(r,()=>({pulsate:E,start:M,stop:x}),[E,M,x]),V.jsx(d5,te({className:Oe(rr.root,o.root,l),ref:g},u,{children:V.jsx(dd,{component:null,exit:!0,children:c})}))});process.env.NODE_ENV!=="production"&&(Rg.propTypes={center:v.bool,classes:v.object,className:v.string});function h5(e){return Je("MuiButtonBase",e)}const p5=Ze("MuiButtonBase",["root","disabled","focusVisible"]),m5=["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"],v5=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,l=at({root:["root",t&&"disabled",r&&"focusVisible"]},h5,a);return r&&n&&(l.root+=` ${n}`),l},g5=ke("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"},[`&.${p5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Yn=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:l,className:u,component:c="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:m=!1,focusRipple:h=!1,LinkComponent:b="a",onBlur:_,onClick:g,onContextMenu:C,onDragLeave:M,onFocus:E,onFocusVisible:x,onKeyDown:T,onKeyUp:w,onMouseDown:P,onMouseLeave:R,onMouseUp:D,onTouchEnd:A,onTouchMove:z,onTouchStart:k,tabIndex:O=0,TouchRippleProps:F,touchRippleRef:j,type:I}=n,B=Me(n,m5),U=Z.useRef(null),q=Z.useRef(null),G=At(q,j),{isFocusVisibleRef:$,onFocus:H,onBlur:ee,ref:X}=Cg(),[K,J]=Z.useState(!1);f&&K&&J(!1),Z.useImperativeHandle(a,()=>({focusVisible:()=>{J(!0),U.current.focus()}}),[]);const[ne,le]=Z.useState(!1);Z.useEffect(()=>{le(!0)},[]);const se=ne&&!p&&!f;Z.useEffect(()=>{K&&h&&!p&&ne&&q.current.pulsate()},[p,h,K,ne]);function ue(Te,gt,xr=m){return Yr(Yt=>(gt&>(Yt),!xr&&q.current&&q.current[Te](Yt),!0))}const fe=ue("start",P),pe=ue("stop",C),oe=ue("stop",M),ve=ue("stop",D),de=ue("stop",Te=>{K&&Te.preventDefault(),R&&R(Te)}),_e=ue("start",k),we=ue("stop",A),Ee=ue("stop",z),Ce=ue("stop",Te=>{ee(Te),$.current===!1&&J(!1),_&&_(Te)},!1),ct=Yr(Te=>{U.current||(U.current=Te.currentTarget),H(Te),$.current===!0&&(J(!0),x&&x(Te)),E&&E(Te)}),Ve=()=>{const Te=U.current;return c&&c!=="button"&&!(Te.tagName==="A"&&Te.href)},tt=Z.useRef(!1),dt=Yr(Te=>{h&&!tt.current&&K&&q.current&&Te.key===" "&&(tt.current=!0,q.current.stop(Te,()=>{q.current.start(Te)})),Te.target===Te.currentTarget&&Ve()&&Te.key===" "&&Te.preventDefault(),T&&T(Te),Te.target===Te.currentTarget&&Ve()&&Te.key==="Enter"&&!f&&(Te.preventDefault(),g&&g(Te))}),Ie=Yr(Te=>{h&&Te.key===" "&&q.current&&K&&!Te.defaultPrevented&&(tt.current=!1,q.current.stop(Te,()=>{q.current.pulsate(Te)})),w&&w(Te),g&&Te.target===Te.currentTarget&&Ve()&&Te.key===" "&&!Te.defaultPrevented&&g(Te)});let Ue=c;Ue==="button"&&(B.href||B.to)&&(Ue=b);const Et={};Ue==="button"?(Et.type=I===void 0?"button":I,Et.disabled=f):(!B.href&&!B.to&&(Et.role="button"),f&&(Et["aria-disabled"]=f));const ft=At(r,X,U);process.env.NODE_ENV!=="production"&&Z.useEffect(()=>{se&&!q.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(`
|
|
235
|
-
`))},[se]);const Mt=te({},n,{centerRipple:o,component:c,disabled:f,disableRipple:p,disableTouchRipple:m,focusRipple:h,tabIndex:O,focusVisible:K}),dr=v5(Mt);return V.jsxs(g5,te({as:Ue,className:Oe(dr.root,u),ownerState:Mt,onBlur:Ce,onClick:g,onContextMenu:pe,onFocus:ct,onKeyDown:dt,onKeyUp:Ie,onMouseDown:fe,onMouseLeave:de,onMouseUp:ve,onDragLeave:oe,onTouchEnd:we,onTouchMove:Ee,onTouchStart:_e,ref:ft,tabIndex:f?-1:O,type:I},Et,B,{children:[l,se?V.jsx(Rg,te({ref:G,center:o},F)):null]}))});process.env.NODE_ENV!=="production"&&(Yn.propTypes={action:Va,centerRipple:v.bool,children:v.node,classes:v.object,className:v.string,component:yg,disabled:v.bool,disableRipple:v.bool,disableTouchRipple:v.bool,focusRipple:v.bool,focusVisibleClassName:v.string,href:v.any,LinkComponent:v.elementType,onBlur:v.func,onClick:v.func,onContextMenu:v.func,onDragLeave:v.func,onFocus:v.func,onFocusVisible:v.func,onKeyDown:v.func,onKeyUp:v.func,onMouseDown:v.func,onMouseLeave:v.func,onMouseUp:v.func,onTouchEnd:v.func,onTouchMove:v.func,onTouchStart:v.func,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),tabIndex:v.number,TouchRippleProps:v.object,touchRippleRef:v.oneOfType([v.func,v.shape({current:v.shape({pulsate:v.func.isRequired,start:v.func.isRequired,stop:v.func.isRequired})})]),type:v.oneOfType([v.oneOf(["button","reset","submit"]),v.string])});function y5(e){return Je("MuiSvgIcon",e)}Ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const b5=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],_5=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${De(t)}`,`fontSize${De(r)}`]};return at(a,y5,n)},w5=ke("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${De(r.color)}`],t[`fontSize${De(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,l,u,c,f,p,m,h,b,_;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(l=o.pxToRem)==null?void 0:l.call(o,20))||"1.25rem",medium:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem",large:((f=e.typography)==null||(p=f.pxToRem)==null?void 0:p.call(f,35))||"2.1875rem"}[t.fontSize],color:(m=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?m:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.disabled,inherit:void 0}[t.color]}}),rs=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:l="inherit",component:u="svg",fontSize:c="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:m,viewBox:h="0 0 24 24"}=n,b=Me(n,b5),_=Z.isValidElement(a)&&a.type==="svg",g=te({},n,{color:l,component:u,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:h,hasSvgAsChild:_}),C={};p||(C.viewBox=h);const M=_5(g);return V.jsxs(w5,te({as:u,className:Oe(M.root,o),focusable:"false",color:f,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r},C,b,_&&a.props,{ownerState:g,children:[_?a.props.children:a,m?V.jsx("title",{children:m}):null]}))});process.env.NODE_ENV!=="production"&&(rs.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),v.string]),component:v.elementType,fontSize:v.oneOfType([v.oneOf(["inherit","large","medium","small"]),v.string]),htmlColor:v.string,inheritViewBox:v.bool,shapeRendering:v.string,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),titleAccess:v.string,viewBox:v.string});rs.muiName="SvgIcon";function Ya(e,t){function r(n,a){return V.jsx(rs,te({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=rs.muiName,Z.memo(Z.forwardRef(r))}const wp=Ya(V.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),xp=Ya(V.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Cp=Ya(V.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),Tp=Ya(V.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),x5=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],Og=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${De(r.size)}`],r.variant==="text"&&t[`text${De(r.color)}`],r.variant==="outlined"&&t[`outlined${De(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},C5=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:l,type:u,variant:c}=e,f={root:["root",`size${De(o)}`,c,l,r!=="standard"&&`color${De(r)}`,r!=="standard"&&`${c}${De(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[u]],icon:["icon"]};return at(f,uI,t)},T5=ke("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Og})(({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",[`&.${Jt.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)})),E5=ke(Yn,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Og})(({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,[`&.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Jt.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"}},[`&.${Jt.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}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Jt.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"&&{[`&.${Jt.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}},[`&.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Jt.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)"}`,[`&.${Jt.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)`:it(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:it(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}))`:it(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Jt.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),M5=ke("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)})),kg=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:l,components:u={},disabled:c=!1,page:f,selected:p=!1,shape:m="circular",size:h="medium",slots:b={},type:_="page",variant:g="text"}=n,C=Me(n,x5),M=te({},n,{color:o,disabled:c,selected:p,shape:m,size:h,type:_,variant:g}),E=ud(),x=C5(M),w=(E?{previous:b.next||u.next||Tp,next:b.previous||u.previous||Cp,last:b.first||u.first||wp,first:b.last||u.last||xp}:{previous:b.previous||u.previous||Cp,next:b.next||u.next||Tp,first:b.first||u.first||wp,last:b.last||u.last||xp})[_];return _==="start-ellipsis"||_==="end-ellipsis"?V.jsx(T5,{ref:r,ownerState:M,className:Oe(x.root,a),children:"…"}):V.jsxs(E5,te({ref:r,ownerState:M,component:l,disabled:c,className:Oe(x.root,a)},C,{children:[_==="page"&&f,w?V.jsx(M5,{as:w,ownerState:M,className:x.icon}):null]}))});process.env.NODE_ENV!=="production"&&(kg.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["primary","secondary","standard"]),v.string]),component:v.elementType,components:v.shape({first:v.elementType,last:v.elementType,next:v.elementType,previous:v.elementType}),disabled:v.bool,page:v.node,selected:v.bool,shape:v.oneOf(["circular","rounded"]),size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),slots:v.shape({first:v.elementType,last:v.elementType,next:v.elementType,previous:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),type:v.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:v.oneOfType([v.oneOf(["outlined","text"]),v.string])});const S5=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],P5=e=>{const{classes:t,variant:r}=e;return at({root:["root",r],ul:["ul"]},aI,t)},R5=ke("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),O5=ke("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function k5(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Ng=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:l="standard",count:u=1,defaultPage:c=1,disabled:f=!1,getItemAriaLabel:p=k5,hideNextButton:m=!1,hidePrevButton:h=!1,renderItem:b=D=>V.jsx(kg,te({},D)),shape:_="circular",showFirstButton:g=!1,showLastButton:C=!1,siblingCount:M=1,size:E="medium",variant:x="text"}=n,T=Me(n,S5),{items:w}=sI(te({},n,{componentName:"Pagination"})),P=te({},n,{boundaryCount:a,color:l,count:u,defaultPage:c,disabled:f,getItemAriaLabel:p,hideNextButton:m,hidePrevButton:h,renderItem:b,shape:_,showFirstButton:g,showLastButton:C,siblingCount:M,size:E,variant:x}),R=P5(P);return V.jsx(R5,te({"aria-label":"pagination navigation",className:Oe(R.root,o),ownerState:P,ref:r},T,{children:V.jsx(O5,{className:R.ul,ownerState:P,children:w.map((D,A)=>V.jsx("li",{children:b(te({},D,{color:l,"aria-label":p(D.type,D.page,D.selected),shape:_,size:E,variant:x}))},A))})}))});process.env.NODE_ENV!=="production"&&(Ng.propTypes={boundaryCount:Or,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["primary","secondary","standard"]),v.string]),count:Or,defaultPage:Or,disabled:v.bool,getItemAriaLabel:v.func,hideNextButton:v.bool,hidePrevButton:v.bool,onChange:v.func,page:Or,renderItem:v.func,shape:v.oneOf(["circular","rounded"]),showFirstButton:v.bool,showLastButton:v.bool,siblingCount:Or,size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOfType([v.oneOf(["outlined","text"]),v.string])});const Dg=e=>{const t=[],r=[];for(const n of e.columns)N.isMeasureColumn(n)?r.push(n):t.push(n);return{attributes:t,measures:r}},N5=({dataSet:e,dataOptions:t,filters:r,filterRelations:n,count:a,offset:o})=>{const l=Kc(),[u,c]=Q.useState(jn(e)?null:e),[f,p]=Q.useState(!1),m=Q.useRef(!0),{isInitialized:h,app:b}=bt(),[_,g]=Q.useState(null);return Q.useEffect(()=>{var x;let C=!1;if(!t)return;const{attributes:M,measures:E}=Dg(t);if(jn(e)){if(!h){l(new N.TranslatableError("errors.chartNoSisenseContext"));return}if(!b||!m.current&&o>0)return;p(!0),((x=b.settings.queryCacheConfig)!=null&&x.enabled?$c:Wa)({dataSource:e,dimensions:M,measures:E,filters:r,filterRelations:n,count:a+1,offset:o,ungroup:!0},b).then(w=>{if(C)return;m.current=w.rows.length>a;const P=m.current?w.rows.slice(0,a):w.rows;o>0?c(R=>{const D=R==null?void 0:R.rows.length,A=D?D>o?R.rows.slice(0,o):R.rows:null;return{columns:w.columns,rows:A?[...A,...P]:P}}):c({columns:w.columns,rows:P}),g(t)}).finally(()=>{p(!1)}).catch(w=>{C||l(w)})}else c(e),g(t);return()=>{C=!0}},[b,e,t,r,n,o,a,h,l]),[f?null:u,_]},D5=(e,t)=>{if(N.emptyTable(t))return{rows:[],columns:[]};const r=N.getColumnsByName(t,e);return N.selectColumns(t,r)},ic=e=>{switch("getSort"in e?e.getSort():e.sortType){case"sortAsc":case N.Sort.Ascending:return 1;case"sortDesc":case N.Sort.Descending:return-1;default:return 0}},L5=(e,t)=>{const r=e.columns.find(n=>ic(n)!==0);if(r){const n=N.getColumnByName(t,r.name);n&&(n.direction=ic(r))}return t},A5=(e,t)=>({columns:e.columns.map(r=>{const n="getSort"in r,a=r.name===t.name,o=ic(r);if(n){const l=o===1?N.Sort.Descending:N.Sort.Ascending;return N.translateColumnToCategoryOrValue(he(ie({},r),{column:r.sort(a?l:N.Sort.None)}))}else{const l=o===1?"sortDesc":"sortAsc";return N.translateColumnToCategoryOrValue(he(ie({},r),{sortType:a?l:"sortNone",column:r}))}})}),I5=(e,t)=>{const r=D5(e.columns.map(n=>n.name),t);return L5(e,r)},z5=({data:e,innerDataOptions:t,dataColumnNamesMapping:r,needToAggregate:n=!1})=>{const{app:a}=bt();return Q.useMemo(()=>{if(!e||!t)return null;let o=N.createDataTableFromData(Yu(e,t,a==null?void 0:a.settings.locale,a==null?void 0:a.settings.dateConfig));const l=t.columns.filter(c=>N.isCategory(c)),u=t.columns.filter(c=>N.isValue(c));return Hv(o,l,u,r),n&&(o=Sv(o,l,u,r)),I5(t,o)},[e,t,n,r,a])};var Lg={},Ag={};function Ep(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Mp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ep(Object(r),!0).forEach(function(n){lx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ep(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ct(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Sp=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Xl=function(){return Math.random().toString(36).substring(7).split("").join(".")},mn={INIT:"@@redux/INIT"+Xl(),REPLACE:"@@redux/REPLACE"+Xl(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xl()}};function Ig(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function $5(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(j5(e))return"date";if(F5(e))return"error";var r=W5(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function W5(e){return typeof e.constructor=="function"?e.constructor.name:null}function F5(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function j5(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function dn(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=$5(e)),t}function hd(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Ct(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r=="undefined"&&(r=t,t=void 0),typeof r!="undefined"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(1):"Expected the enhancer to be a function. Instead, received: '"+dn(r)+"'");return r(hd)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(2):"Expected the root reducer to be a function. Instead, received: '"+dn(e)+"'");var a=e,o=t,l=[],u=l,c=!1;function f(){u===l&&(u=l.slice())}function p(){if(c)throw new Error(process.env.NODE_ENV==="production"?Ct(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function m(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(4):"Expected the listener to be a function. Instead, received: '"+dn(g)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?Ct(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var C=!0;return f(),u.push(g),function(){if(C){if(c)throw new Error(process.env.NODE_ENV==="production"?Ct(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");C=!1,f();var E=u.indexOf(g);u.splice(E,1),l=null}}}function h(g){if(!Ig(g))throw new Error(process.env.NODE_ENV==="production"?Ct(7):"Actions must be plain objects. Instead, the actual type was: '"+dn(g)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof g.type=="undefined")throw new Error(process.env.NODE_ENV==="production"?Ct(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?Ct(9):"Reducers may not dispatch actions.");try{c=!0,o=a(o,g)}finally{c=!1}for(var C=l=u,M=0;M<C.length;M++){var E=C[M];E()}return g}function b(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(10):"Expected the nextReducer to be a function. Instead, received: '"+dn(g));a=g,h({type:mn.REPLACE})}function _(){var g,C=m;return g={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(process.env.NODE_ENV==="production"?Ct(11):"Expected the observer to be an object. Instead, received: '"+dn(E)+"'");function x(){E.next&&E.next(p())}x();var T=C(x);return{unsubscribe:T}}},g[Sp]=function(){return this},g}return h({type:mn.INIT}),n={dispatch:h,subscribe:m,getState:p,replaceReducer:b},n[Sp]=_,n}var B5=hd;function Pp(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function H5(e,t,r,n){var a=Object.keys(t),o=r&&r.type===mn.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(a.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Ig(e))return"The "+o+' has unexpected type of "'+dn(e)+'". Expected argument to be an object with the following '+('keys: "'+a.join('", "')+'"');var l=Object.keys(e).filter(function(u){return!t.hasOwnProperty(u)&&!n[u]});if(l.forEach(function(u){n[u]=!0}),!(r&&r.type===mn.REPLACE)&&l.length>0)return"Unexpected "+(l.length>1?"keys":"key")+" "+('"'+l.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+a.join('", "')+'". Unexpected keys will be ignored.')}function V5(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:mn.INIT});if(typeof n=="undefined")throw new Error(process.env.NODE_ENV==="production"?Ct(12):'The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:mn.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?Ct(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+mn.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function U5(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n];process.env.NODE_ENV!=="production"&&typeof e[a]=="undefined"&&Pp('No reducer provided for key "'+a+'"'),typeof e[a]=="function"&&(r[a]=e[a])}var o=Object.keys(r),l;process.env.NODE_ENV!=="production"&&(l={});var u;try{V5(r)}catch(c){u=c}return function(f,p){if(f===void 0&&(f={}),u)throw u;if(process.env.NODE_ENV!=="production"){var m=H5(f,r,p,l);m&&Pp(m)}for(var h=!1,b={},_=0;_<o.length;_++){var g=o[_],C=r[g],M=f[g],E=C(M,p);if(typeof E=="undefined"){var x=p&&p.type;throw new Error(process.env.NODE_ENV==="production"?Ct(14):"When called with an action of type "+(x?'"'+String(x)+'"':"(unknown type)")+', the slice reducer for key "'+g+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}b[g]=E,h=h||E!==M}return h=h||o.length!==Object.keys(f).length,h?b:f}}function Rp(e,t){return function(){return t(e.apply(this,arguments))}}function q5(e,t){if(typeof e=="function")return Rp(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?Ct(16):"bindActionCreators expected an object or a function, but instead received: '"+dn(e)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in e){var a=e[n];typeof a=="function"&&(r[n]=Rp(a,t))}return r}function zg(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function G5(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),o=function(){throw new Error(process.env.NODE_ENV==="production"?Ct(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},l={getState:a.getState,dispatch:function(){return o.apply(void 0,arguments)}},u=t.map(function(c){return c(l)});return o=zg.apply(void 0,u)(a.dispatch),Mp(Mp({},a),{},{dispatch:o})}}}const Y5=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:mn,applyMiddleware:G5,bindActionCreators:q5,combineReducers:U5,compose:zg,createStore:hd,legacy_createStore:B5},Symbol.toStringTag,{value:"Module"})),$g=N.getAugmentedNamespace(Y5);var zi={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(a,o,l,u,c,f,p,m){if(process.env.NODE_ENV!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!a){var h;if(o===void 0)h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var b=[l,u,c,f,p,m],_=0;h=new Error("Invariant Violation: "+o.replace(/%s/g,function(){return b[_++]}))}throw h.framesToPop=1,h}},r=t;e.default=r})(zi);var Ge={};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.SCROLL_TO_Y=Ge.SCROLL_TO_X=Ge.SCROLL_END=Ge.SCROLL_START=Ge.PROP_CHANGE=Ge.INITIALIZE=Ge.COLUMN_RESIZE=Ge.COLUMN_REORDER_MOVE=Ge.COLUMN_REORDER_END=Ge.COLUMN_REORDER_START=void 0;var X5="COLUMN_REORDER_START";Ge.COLUMN_REORDER_START=X5;var Z5="COLUMN_REORDER_END";Ge.COLUMN_REORDER_END=Z5;var K5="COLUMN_REORDER_MOVE";Ge.COLUMN_REORDER_MOVE=K5;var Q5="COLUMN_RESIZE";Ge.COLUMN_RESIZE=Q5;var J5="INITIALIZE";Ge.INITIALIZE=J5;var ez="PROP_CHANGE";Ge.PROP_CHANGE=ez;var tz="SCROLL_START";Ge.SCROLL_START=tz;var rz="SCROLL_END";Ge.SCROLL_END=rz;var nz="SCROLL_TO_X";Ge.SCROLL_TO_X=nz;var iz="SCROLL_TO_Y";Ge.SCROLL_TO_Y=iz;var kr={};Object.defineProperty(kr,"__esModule",{value:!0});kr.resizeColumn=kr.moveColumnReorder=kr.stopColumnReorder=kr.startColumnReorder=void 0;var Ds=Ge,az=function(t){return{type:Ds.COLUMN_REORDER_START,reorderData:t}};kr.startColumnReorder=az;var oz=function(){return{type:Ds.COLUMN_REORDER_END}};kr.stopColumnReorder=oz;var sz=function(t){return{type:Ds.COLUMN_REORDER_MOVE,deltaX:t}};kr.moveColumnReorder=sz;var lz=function(t){return{type:Ds.COLUMN_RESIZE,resizeData:t}};kr.resizeColumn=lz;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.stopScroll=Nr.startScroll=Nr.scrollToY=Nr.scrollToX=void 0;var Ls=Ge,uz=function(t){return{type:Ls.SCROLL_TO_X,scrollX:t}};Nr.scrollToX=uz;var cz=function(t){return{type:Ls.SCROLL_TO_Y,scrollY:t}};Nr.scrollToY=cz;var dz=function(){return{type:Ls.SCROLL_START}};Nr.startScroll=dz;var fz=function(){return{type:Ls.SCROLL_END}};Nr.stopScroll=fz;var Wg={},hz=N.isNumber_1;function pz(e){return hz(e)&&e!=+e}var mz=pz,cr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(f){return typeof f}:t=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},t(u)}var r=/\//g,n={};function a(u){return n[u]||(n[u]=u.replace(r,"_")),n[u]}function o(u){var c;return t(u)=="object"?c=Object.keys(u).filter(function(f){return u[f]}):c=Array.prototype.slice.call(arguments),c.map(a).join(" ")}var l=o;e.default=l})(cr);var Fg={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(n,a,o,l,u){l=l||setTimeout,u=u||clearTimeout;var c;function f(){for(var p=arguments.length,m=new Array(p),h=0;h<p;h++)m[h]=arguments[h];f.reset();var b=function(){n.apply(o,m)};b.__SMmeta=n.__SMmeta,c=l(b,a)}return f.reset=function(){u(c)},f}var r=t;e.default=r})(Fg);var wn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(n){n||(n="");var a,o=arguments.length;if(o>1)for(var l=1;l<o;l++)a=arguments[l],a&&(n=(n?n+" ":"")+a);return n}var r=t;e.default=r})(wn);var Xa={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(l){return typeof l}:t=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},t(a)}function r(a,o){if(a===o)return!0;if(t(a)!=="object"||a===null||t(o)!=="object"||o===null)return!1;var l=Object.keys(a),u=Object.keys(o);if(l.length!==u.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(o),f=0;f<l.length;f++)if(!c(l[f])||a[l[f]]!==o[l[f]])return!1;return!0}var n=r;e.default=n})(Xa);var pd={},xn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(a){return function(){return a}}function r(){}r.thatReturns=t,r.thatReturnsFalse=t(!1),r.thatReturnsTrue=t(!0),r.thatReturnsNull=t(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(a){return a};var n=r;e.default=n})(xn);var jg={},Bg={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=!1,r,n,a,o,l,u,c,f,p,m,h,b,_,g,C;function M(){if(!t){t=!0;var T=navigator.userAgent,w=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(T),P=/(Mac OS X)|(Windows)|(Linux)/.exec(T);if(b=/\b(iPhone|iP[ao]d)/.exec(T),_=/\b(iP[ao]d)/.exec(T),m=/Android/i.exec(T),g=/FBAN\/\w+;/i.exec(T),C=/Mobile/i.exec(T),h=!!/Win64/.exec(T),w){r=w[1]?parseFloat(w[1]):w[5]?parseFloat(w[5]):NaN,r&&document&&document.documentMode&&(r=document.documentMode);var R=/(?:Trident\/(\d+.\d+))/.exec(T);u=R?parseFloat(R[1])+4:r,n=w[2]?parseFloat(w[2]):NaN,a=w[3]?parseFloat(w[3]):NaN,o=w[4]?parseFloat(w[4]):NaN,o?(w=/(?:Chrome\/(\d+\.\d+))/.exec(T),l=w&&w[1]?parseFloat(w[1]):NaN):l=NaN}else r=n=a=l=o=NaN;if(P){if(P[1]){var D=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(T);c=D?parseFloat(D[1].replace("_",".")):!0}else c=!1;f=!!P[2],p=!!P[3]}else c=f=p=!1}}var E={ie:function(){return M()||r},ieCompatibilityMode:function(){return M()||u>r},ie64:function(){return E.ie()&&h},firefox:function(){return M()||n},opera:function(){return M()||a},webkit:function(){return M()||o},safari:function(){return E.webkit()},chrome:function(){return M()||l},windows:function(){return M()||f},osx:function(){return M()||c},linux:function(){return M()||p},iphone:function(){return M()||b},mobile:function(){return M()||b||_||m||C},nativeApp:function(){return M()||g},android:function(){return M()||m},ipad:function(){return M()||_}},x=E;e.default=x})(Bg);var Hg={},md={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=!!(typeof window!="undefined"&&window.document&&window.document.createElement),r={canUseDOM:t,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t},n=r;e.default=n})(md);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(md);function r(l){return l&&l.__esModule?l:{default:l}}var n;t.default.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
|
|
236
|
-
* Checks if an event is supported in the current execution environment.
|
|
237
|
-
*
|
|
238
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
239
|
-
* `reset`, `load`, `error`, and `select`.
|
|
240
|
-
*
|
|
241
|
-
* Borrows from Modernizr.
|
|
242
|
-
*
|
|
243
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
244
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
|
245
|
-
* @return {boolean} True if the event is supported.
|
|
246
|
-
* @internal
|
|
247
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
248
|
-
*/function a(l,u){if(!t.default.canUseDOM||u&&!("addEventListener"in document))return!1;var c="on"+l,f=c in document;if(!f){var p=document.createElement("div");p.setAttribute(c,"return;"),f=typeof p[c]=="function"}return!f&&n&&l==="wheel"&&(f=document.implementation.hasFeature("Events.wheel","3.0")),f}var o=a;e.default=o})(Hg);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Bg),r=n(Hg);function n(f){return f&&f.__esModule?f:{default:f}}var a=10,o=40,l=800;function u(f){var p=0,m=0,h=0,b=0;return"detail"in f&&(m=f.detail),"wheelDelta"in f&&(m=-f.wheelDelta/120),"wheelDeltaY"in f&&(m=-f.wheelDeltaY/120),"wheelDeltaX"in f&&(p=-f.wheelDeltaX/120),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(p=m,m=0),h=p*a,b=m*a,"deltaY"in f&&(b=f.deltaY),"deltaX"in f&&(h=f.deltaX),(h||b)&&f.deltaMode&&(f.deltaMode==1?(h*=o,b*=o):(h*=l,b*=l)),h&&!p&&(p=h<1?-1:1),b&&!m&&(m=b<1?-1:1),{spinX:p,spinY:m,pixelX:h,pixelY:b}}u.getEventType=function(){return t.default.firefox()?"DOMMouseScroll":(0,r.default)("wheel")?"wheel":"mousewheel"};var c=u;e.default=c})(jg);var As={},Vg={},$i={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof N.commonjsGlobal!="undefined"?N.commonjsGlobal:typeof self!="undefined"?self:{},r=t;e.default=r})($i);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r($i);function r(o){return o&&o.__esModule?o:{default:o}}var n=t.default.requestAnimationFrame||t.default.webkitRequestAnimationFrame||t.default.mozRequestAnimationFrame||t.default.oRequestAnimationFrame||t.default.msRequestAnimationFrame,a=n;e.default=a})(Vg);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(xn),r=a(Vg),n=a($i);function a(c){return c&&c.__esModule?c:{default:c}}var o=0,l=r.default||function(c){var f=Date.now(),p=Math.max(0,16-(f-o));return o=f+p,n.default.setTimeout(function(){c(Date.now())},p)};l(t.default);var u=l;e.default=u})(As);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(xn),r=a(jg),n=a(As);function a(p){return p&&p.__esModule?p:{default:p}}function o(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){for(var h=0;h<m.length;h++){var b=m[h];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}function u(p,m,h){return m&&l(p.prototype,m),h&&l(p,h),p}var c=function(){function p(m,h,b,_,g,C){o(this,p),this._animationFrameID=null,this._deltaX=0,this._deltaY=0,this._didWheel=this._didWheel.bind(this),this._rootRef=null,typeof h!="function"&&(h=h?t.default.thatReturnsTrue:t.default.thatReturnsFalse),typeof b!="function"&&(b=b?t.default.thatReturnsTrue:t.default.thatReturnsFalse),this._handleScrollX=h,this._handleScrollY=b,this._preventDefault=g,this._stopPropagation=C,this._onWheelCallback=m,this.onWheel=this.onWheel.bind(this),this._isRTL=_}return u(p,[{key:"onWheel",value:function(h){this._preventDefault&&h.preventDefault();var b=(0,r.default)(h);h.shiftKey&&p._allowInternalAxesSwap()?b=p._swapNormalizedWheelAxis(b):h.shiftKey||(b.pixelX*=this._isRTL?-1:1);var _=this._deltaX+b.pixelX,g=this._deltaY+b.pixelY,C=this._handleScrollX(_,g),M=this._handleScrollY(g,_);if(!(!C&&!M)&&!(this._rootRef&&!this._contains(h.target))){this._deltaX+=C?b.pixelX:0,this._deltaY+=M?b.pixelY:0,h.defaultPrevented||h.preventDefault();var E;(this._deltaX!==0||this._deltaY!==0)&&(this._stopPropagation&&h.stopPropagation(),E=!0),E===!0&&this._animationFrameID===null&&(this._animationFrameID=(0,n.default)(this._didWheel))}}},{key:"setRoot",value:function(h){this._rootRef=h}},{key:"_didWheel",value:function(){this._animationFrameID=null,this._onWheelCallback(this._deltaX,this._deltaY),this._deltaX=0,this._deltaY=0}},{key:"_contains",value:function(h){for(var b=h;b!=document.body;){if(b===this._rootRef)return!0;b=b.parentNode}return!1}}],[{key:"_swapNormalizedWheelAxis",value:function(h){return{spinX:h.spinY,spinY:h.spinX,pixelX:h.pixelY,pixelY:h.pixelX}}},{key:"_allowInternalAxesSwap",value:function(){return navigator.platform!=="MacIntel"}}]),p}(),f=c;e.default=f})(pd);var Ug={},Xn={},ns="NOT_FOUND";function vz(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:ns},put:function(n,a){t={key:n,value:a}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function gz(e,t){var r=[];function n(u){var c=r.findIndex(function(p){return t(u,p.key)});if(c>-1){var f=r[c];return c>0&&(r.splice(c,1),r.unshift(f)),f.value}return ns}function a(u,c){n(u)===ns&&(r.unshift({key:u,value:c}),r.length>e&&r.pop())}function o(){return r}function l(){r=[]}return{get:n,put:a,getEntries:o,clear:l}}var qg=function(t,r){return t===r};function yz(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var a=r.length,o=0;o<a;o++)if(!e(r[o],n[o]))return!1;return!0}}function Gg(e,t){var r=typeof t=="object"?t:{equalityCheck:t},n=r.equalityCheck,a=n===void 0?qg:n,o=r.maxSize,l=o===void 0?1:o,u=r.resultEqualityCheck,c=yz(a),f=l===1?vz(c):gz(l,c);function p(){var m=f.get(arguments);if(m===ns){if(m=e.apply(null,arguments),u){var h=f.getEntries(),b=h.find(function(_){return u(_.value,m)});b&&(m=b.value)}f.put(arguments,m)}return m}return p.clearCache=function(){return f.clear()},p}function bz(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(n){return typeof n=="function"})){var r=t.map(function(n){return typeof n=="function"?"function "+(n.name||"unnamed")+"()":typeof n}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return t}function Yg(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];var f=0,p,m={memoizeOptions:void 0},h=u.pop();if(typeof h=="object"&&(m=h,h=u.pop()),typeof h!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof h+"]");var b=m,_=b.memoizeOptions,g=_===void 0?r:_,C=Array.isArray(g)?g:[g],M=bz(u),E=e.apply(void 0,[function(){return f++,h.apply(null,arguments)}].concat(C)),x=e(function(){for(var w=[],P=M.length,R=0;R<P;R++)w.push(M[R].apply(null,arguments));return p=E.apply(null,w),p});return Object.assign(x,{resultFunc:h,memoizedResultFunc:E,dependencies:M,lastResult:function(){return p},recomputations:function(){return f},resetRecomputations:function(){return f=0}}),x};return a}var Xg=Yg(Gg),_z=function(t,r){if(r===void 0&&(r=Xg),typeof t!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof t));var n=Object.keys(t),a=r(n.map(function(o){return t[o]}),function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return l.reduce(function(c,f,p){return c[n[p]]=f,c},{})});return a};const wz=Object.freeze(Object.defineProperty({__proto__:null,createSelector:Xg,createSelectorCreator:Yg,createStructuredSelector:_z,defaultEqualityCheck:qg,defaultMemoize:Gg},Symbol.toStringTag,{value:"Module"})),xz=N.getAugmentedNamespace(wz);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=xz,r=n(Xa);function n(o){return o&&o.__esModule?o:{default:o}}var a=(0,t.createSelectorCreator)(t.defaultMemoize,r.default);e.default=a})(Xn);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Xn);function r(o){return o&&o.__esModule?o:{default:o}}function n(o,l,u){var c=1,f=1,p=o+2,m=o+1,h=2;return l&&(f++,m++,p++,h++),u&&m++,{ariaGroupHeaderIndex:c,ariaHeaderIndex:f,ariaFooterIndex:p,ariaRowCount:m,ariaRowIndexOffset:h}}var a=(0,t.default)([function(o){return o.rowsCount},function(o){return o.groupHeaderHeight>0},function(o){return o.footerHeight>0}],n);e.default=a})(Ug);var Zg={},Cz=N.isArrayLike_1;function Tz(e,t){return function(r,n){if(r==null)return r;if(!Cz(r))return e(r,n);for(var a=r.length,o=t?a:-1,l=Object(r);(t?o--:++o<a)&&n(l[o],o,l)!==!1;);return r}}var Ez=Tz,Mz=N._baseForOwn,Sz=Ez,Pz=Sz(Mz),Is=Pz,Rz=N.identity_1;function Oz(e){return typeof e=="function"?e:Rz}var kz=Oz,Nz=N._arrayEach,Dz=Is,Lz=kz,Az=N.isArray_1;function Iz(e,t){var r=Az(e)?Nz:Dz;return r(e,Lz(t))}var vd=Iz,gd={},zz=Is,$z=N.isArrayLike_1;function Wz(e,t){var r=-1,n=$z(e)?Array(e.length):[];return zz(e,function(a,o,l){n[++r]=t(a,o,l)}),n}var Fz=Wz,jz=N._arrayMap,Bz=N._baseIteratee,Hz=Fz,Vz=N.isArray_1;function Uz(e,t){var r=Vz(e)?jz:Hz;return r(e,Bz(t))}var Kg=Uz,Cn={};function qz(e,t,r,n){var a=-1,o=e==null?0:e.length;for(n&&o&&(r=e[++a]);++a<o;)r=t(r,e[a],a,e);return r}var Gz=qz;function Yz(e,t,r,n,a){return a(e,function(o,l,u){r=n?(n=!1,o):t(r,o,l,u)}),r}var Xz=Yz,Zz=Gz,Kz=Is,Qz=N._baseIteratee,Jz=Xz,e$=N.isArray_1;function t$(e,t,r){var n=e$(e)?Zz:Jz,a=arguments.length<3;return n(e,Qz(t),r,a,Kz)}var r$=t$;Object.defineProperty(Cn,"__esModule",{value:!0});Cn.sumPropWidths=i$;Cn.getTotalWidth=a$;Cn.getTotalFlexGrow=o$;var yd=n$(r$);function n$(e){return e&&e.__esModule?e:{default:e}}function i$(e){return(0,yd.default)(e,function(t,r){return t+r.props.width},0)}function a$(e){return(0,yd.default)(e,function(t,r){return t+r.width},0)}function o$(e){return(0,yd.default)(e,function(t,r){return t+(r.flexGrow||0)},0)}var Wi={},zs={},$s={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(n,a,o){return n<a?a:n>o?o:n}var r=t;e.default=r})($s);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ScrollbarState=void 0;var t=a($s),r=a(Xn),n=Cn;function a(b){return b&&b.__esModule?b:{default:b}}var o=1,l=3,u=6,c={HIDDEN:"hidden",JOINT_SCROLLBARS:"JOINT_SCROLLBARS",VISIBLE:"visible"};e.ScrollbarState=c;function f(b,_,g,C,M,E,x){var T=_.cellGroupWrapperHeight,w=_.footerHeight,P=_.headerHeight,R=_.groupHeaderHeight,D=T?0:2*o,A=w+P+R+D,z=M.height,k=M.maxHeight,O=M.useMaxHeight,F=M.width,j=Math.round(O?k:z),I=j-A,B=p(b,C,F,x),U=I,q=I;switch(B){case c.VISIBLE:{U-=E,q-=E;break}case c.JOINT_SCROLLBARS:{U-=E;break}}return{bufferRowCount:m(q,g),minAvailableHeight:Math.max(U,0),maxAvailableHeight:Math.max(q,0),reservedHeight:A,scrollStateX:B}}function p(b,_,g,C){var M=_.overflowX,E=_.showScrollbarX,x=(0,n.getTotalWidth)(b);return M==="hidden"||E===!1?c.HIDDEN:x>g?c.VISIBLE:x>g-C?c.JOINT_SCROLLBARS:c.HIDDEN}function m(b,_){var g=_.bufferRowCount,C=_.rowHeight,M=_.subRowHeight;if(g!==void 0)return console.log("buffer set: "+g),g;var E=C+M,x=Math.ceil(b/E)+1;return(0,t.default)(Math.floor(x/2),l,u)}var h=(0,r.default)([function(b){return b.columnProps},function(b){return b.elementHeights},function(b){return b.rowSettings},function(b){return b.scrollFlags},function(b){return b.tableSize},function(b){return b.scrollbarXHeight},function(b){return b.scrollbarYWidth}],f);e.default=h})(zs);(function(e){function t(f){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(m){return typeof m}:t=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},t(f)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(Xn),n=o(zs);function a(f){if(typeof WeakMap!="function")return null;var p=new WeakMap,m=new WeakMap;return(a=function(b){return b?m:p})(f)}function o(f,p){if(f&&f.__esModule)return f;if(f===null||t(f)!=="object"&&typeof f!="function")return{default:f};var m=a(p);if(m&&m.has(f))return m.get(f);var h={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in f)if(_!=="default"&&Object.prototype.hasOwnProperty.call(f,_)){var g=b?Object.getOwnPropertyDescriptor(f,_):null;g&&(g.get||g.set)?Object.defineProperty(h,_,g):h[_]=f[_]}return h.default=f,m&&m.set(f,h),h}function l(f){return f&&f.__esModule?f:{default:f}}function u(f,p,m){var h=m.overflowY,b=m.showScrollbarY,_=h!=="hidden"&&b!==!1,g=f.minAvailableHeight,C=f.maxAvailableHeight,M=f.scrollStateX,E=!1,x=!1;M===n.ScrollbarState.VISIBLE&&(x=!0),_&&p>C&&(E=!0),E&&M===n.ScrollbarState.JOINT_SCROLLBARS&&(x=!0);var T=C;return x&&(T=g),{availableHeight:T,scrollEnabledX:x,scrollEnabledY:E}}var c=(0,r.default)([n.default,function(f){return f.scrollContentHeight},function(f){return f.scrollFlags}],u);e.default=c})(Wi);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l(vd),r=l(Kg),n=l(Xn),a=Cn,o=l(Wi);function l(h){return h&&h.__esModule?h:{default:h}}function u(){return u=Object.assign||function(h){for(var b=1;b<arguments.length;b++){var _=arguments[b];for(var g in _)Object.prototype.hasOwnProperty.call(_,g)&&(h[g]=_[g])}return h},u.apply(this,arguments)}function c(h,b,_,g,C){var M=_?C:0,E=g-M,x=f(h,b,E),T=x.newColumnGroupProps,w=x.newColumnProps,P=p(w),R=P.fixedColumns,D=P.fixedRightColumns,A=P.scrollableColumns,z=E-(0,a.getTotalWidth)(R)-(0,a.getTotalWidth)(D),k=Math.max(0,(0,a.getTotalWidth)(w)-E);return{columnGroupProps:T,columnProps:w,availableScrollWidth:z,fixedColumns:R,fixedRightColumns:D,scrollableColumns:A,maxScrollX:k}}function f(h,b,_){var g=b,C=(0,a.getTotalFlexGrow)(b);if(C!==0){var M=(0,a.getTotalWidth)(b),E=Math.max(_-M,0);g=(0,r.default)(b,function(w){var P=w.flexGrow;if(!P)return w;var R=Math.floor(P*E/C),D=w.width+R;return C-=P,E-=R,u({},w,{width:D})})}var x=(0,r.default)(h,function(){return 0});(0,t.default)(g,function(w){w.groupIdx!==void 0&&(x[w.groupIdx]+=w.width)});var T=(0,r.default)(h,function(w,P){return x[P]===w.width?w:u({},w,{width:x[P]})});return{newColumnGroupProps:T,newColumnProps:g}}function p(h){var b=[],_=[],g=[];return(0,t.default)(h,function(C){var M=g;C.fixed?M=b:C.fixedRight&&(M=_),M.push(C)}),{fixedColumns:b,fixedRightColumns:_,scrollableColumns:g}}var m=(0,n.default)([function(h){return h.columnGroupProps},function(h){return h.columnProps},function(h){return(0,o.default)(h).scrollEnabledY},function(h){return h.tableSize.width},function(h){return h.scrollbarYWidth}],c);e.default=m})(gd);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(vd),r=a(Xn),n=a(gd);function a(u){return u&&u.__esModule?u:{default:u}}function o(u,c){var f=u.columnGroupProps,p=u.columnProps,m=[],h=[],b=[];(0,t.default)(f,function(M,E){var x={props:M,template:c.groupHeader[E]};M.fixed?m.push(x):M.fixedRight?h.push(x):b.push(x)});var _={cell:[],header:[],footer:[]},g={cell:[],header:[],footer:[]},C={cell:[],header:[],footer:[]};return(0,t.default)(p,function(M,E){var x=C;M.fixed?x=_:M.fixedRight&&(x=g),x.cell.push({props:M,template:c.cell[E]}),x.header.push({props:M,template:c.header[E]}),x.footer.push({props:M,template:c.footer[E]})}),{fixedColumnGroups:m,fixedColumns:_,fixedRightColumnGroups:h,fixedRightColumns:g,scrollableColumnGroups:b,scrollableColumns:C}}var l=(0,r.default)([function(u){return(0,n.default)(u)},function(u){return u.elementTemplates}],o);e.default=l})(Zg);var bd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(Xn),r=a(zs),n=a(Wi);function a(u){return u&&u.__esModule?u:{default:u}}function o(u,c,f,p,m,h,b){var _=m.availableHeight,g=m.scrollEnabledX,C=f;g&&(C+=b);var M=Math.min(_,p),E=h?M:_,x=E+C,T=E;c<x&&(T=c-C);var w=h?p:Math.max(p,_),P=w+C;c&&(P=Math.max(c,P));var R=u.footerHeight,D=u.groupHeaderHeight,A=u.headerHeight,z=D+A,k=z+T,O=k+R,F=Math.max(0,k-z);return{bodyHeight:M,bodyOffsetTop:z,componentHeight:x,contentHeight:P,footOffsetTop:k,scrollbarXOffsetTop:O,scrollbarYHeight:F,visibleRowsHeight:T}}var l=(0,t.default)([function(u){return u.elementHeights},function(u){return u.tableSize.ownerHeight},function(u){return(0,r.default)(u).reservedHeight},function(u){return u.scrollContentHeight},n.default,function(u){return u.tableSize.useMaxHeight},function(u){return u.scrollbarXHeight}],o);e.default=l})(bd);var Qg={},Ws={},Jg={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(xn);function r(o){return o&&o.__esModule?o:{default:o}}var n={listen:function(l,u,c){if(l.addEventListener)return l.addEventListener(u,c,!1),{remove:function(){l.removeEventListener(u,c,!1)}};if(l.attachEvent)return l.attachEvent("on"+u,c),{remove:function(){l.detachEvent("on"+u,c)}}},capture:function(l,u,c){return l.addEventListener?(l.addEventListener(u,c,!0),{remove:function(){l.removeEventListener(u,c,!0)}}):(process.env.NODE_ENV!=="production"&&console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:t.default})},registerDefault:function(){}},a=n;e.default=a})(Jg);var ey={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r($i);function r(o){return o&&o.__esModule?o:{default:o}}var n=t.default.cancelAnimationFrame||t.default.webkitCancelAnimationFrame||t.default.mozCancelAnimationFrame||t.default.oCancelAnimationFrame||t.default.msCancelAnimationFrame||t.default.clearTimeout,a=n;e.default=a})(ey);var Fs={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(a){var o=0,l=0;if(!a.clientX||!a.clientY){if(a.touches&&a.touches.length>0){var u=a.touches[0];o=u.clientX,l=u.clientY}}else o=a.clientX,l=a.clientY;return{x:o,y:l}}var r={getCoordinatesFromEvent:t},n=r;e.default=n})(Fs);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(Jg),r=o(ey),n=o(As),a=o(Fs);function o(m){return m&&m.__esModule?m:{default:m}}function l(m,h){if(!(m instanceof h))throw new TypeError("Cannot call a class as a function")}function u(m,h){for(var b=0;b<h.length;b++){var _=h[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}function c(m,h,b){return h&&u(m.prototype,h),m}var f=function(){function m(h,b,_,g){l(this,m),this._isDragging=!1,this._isTouchEnabled=g,this._animationFrameID=null,this._domNode=_,this._onMove=h,this._onMoveEnd=b,this._onMouseEnd=this._onMouseEnd.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._didMouseMove=this._didMouseMove.bind(this)}return c(m,[{key:"captureMouseMoves",value:function(b){if(!this._eventMoveToken&&!this._eventUpToken&&!this._eventLeaveToken&&(this._eventMoveToken=t.default.listen(this._domNode,"mousemove",this._onMouseMove),this._eventUpToken=t.default.listen(this._domNode,"mouseup",this._onMouseUp),this._eventLeaveToken=t.default.listen(this._domNode,"mouseleave",this._onMouseEnd)),this._isTouchEnabled&&!this._eventTouchStartToken&&!this._eventTouchMoveToken&&!this._eventTouchEndToken&&(this._eventTouchStartToken=t.default.listen(this._domNode,"touchstart",this._onMouseMove),this._eventTouchMoveToken=t.default.listen(this._domNode,"touchmove",this._onMouseMove),this._eventTouchEndToken=t.default.listen(this._domNode,"touchend",this._onMouseUp)),!this._isDragging){this._deltaX=0,this._deltaY=0,this._isDragging=!0;var _=a.default.getCoordinatesFromEvent(b),g=_.x,C=_.y;this._x=g,this._y=C}b.preventDefault()}},{key:"releaseMouseMoves",value:function(){this._eventMoveToken&&this._eventUpToken&&this._eventLeaveToken&&(this._eventMoveToken.remove(),this._eventMoveToken=null,this._eventUpToken.remove(),this._eventUpToken=null,this._eventLeaveToken.remove(),this._eventLeaveToken=null),this._isTouchEnabled&&this._eventTouchStartToken&&this._eventTouchMoveToken&&this._eventTouchEndToken&&(this._eventTouchStartToken.remove(),this._eventTouchStartToken=null,this._eventTouchMoveToken.remove(),this._eventTouchMoveToken=null,this._eventTouchEndToken.remove(),this._eventTouchEndToken=null),this._animationFrameID!==null&&((0,r.default)(this._animationFrameID),this._animationFrameID=null),this._isDragging&&(this._isDragging=!1,this._x=null,this._y=null)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"_onMouseMove",value:function(b){var _=a.default.getCoordinatesFromEvent(b),g=_.x,C=_.y;this._deltaX+=g-this._x,this._deltaY+=C-this._y,this._animationFrameID===null&&(this._animationFrameID=(0,n.default)(this._didMouseMove)),this._x=g,this._y=C,b.preventDefault()}},{key:"_didMouseMove",value:function(){this._animationFrameID=null,this._onMove(this._deltaX,this._deltaY),this._deltaX=0,this._deltaY=0}},{key:"_onMouseUp",value:function(){this._animationFrameID&&this._didMouseMove(),this._onMoveEnd(!1)}},{key:"_onMouseEnd",value:function(){this._onMoveEnd(!0)}}]),m}(),p=f;e.default=p})(Ws);(function(e){function t(w){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(R){return typeof R}:t=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},t(w)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(Q),n=u(jt),a=u($s),o=u(cr),l=u(Ws);function u(w){return w&&w.__esModule?w:{default:w}}function c(w,P){if(!(w instanceof P))throw new TypeError("Cannot call a class as a function")}function f(w,P){for(var R=0;R<P.length;R++){var D=P[R];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(w,D.key,D)}}function p(w,P,R){return P&&f(w.prototype,P),w}function m(w,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(P&&P.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),P&&h(w,P)}function h(w,P){return h=Object.setPrototypeOf||function(D,A){return D.__proto__=A,D},h(w,P)}function b(w){var P=C();return function(){var D=M(w),A;if(P){var z=M(this).constructor;A=Reflect.construct(D,arguments,z)}else A=D.apply(this,arguments);return _(this,A)}}function _(w,P){return P&&(t(P)==="object"||typeof P=="function")?P:g(w)}function g(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(){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(w){return!1}}function M(w){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},M(w)}function E(w,P,R){return P in w?Object.defineProperty(w,P,{value:R,enumerable:!0,configurable:!0,writable:!0}):w[P]=R,w}var x=function(w){m(R,w);var P=b(R);function R(){var D;c(this,R);for(var A=arguments.length,z=new Array(A),k=0;k<A;k++)z[k]=arguments[k];return D=P.call.apply(P,[this].concat(z)),E(g(D),"state",{width:0,cursorDelta:0}),E(g(D),"_onMove",function(O){D.props.isRTL&&(O=-O);var F=D.state.cursorDelta+O,j=(0,a.default)(F,D.props.minWidth,D.props.maxWidth);D.setState({width:j,cursorDelta:F})}),E(g(D),"_onColumnResizeEnd",function(){D._mouseMoveTracker&&D._mouseMoveTracker.releaseMouseMoves(),D.props.onColumnResizeEnd(D.state.width,D.props.columnKey)}),D}return p(R,[{key:"componentDidUpdate",value:function(){this.props.initialEvent&&!this._mouseMoveTracker.isDragging()&&(this._mouseMoveTracker.captureMouseMoves(this.props.initialEvent),this.setState({width:this.props.initialWidth,cursorDelta:this.props.initialWidth}))}},{key:"componentDidMount",value:function(){this._mouseMoveTracker=new l.default(this._onMove,this._onColumnResizeEnd,document.body,this.props.touchEnabled)}},{key:"componentWillUnmount",value:function(){this._mouseMoveTracker&&(this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null)}},{key:"render",value:function(){var A={width:this.state.width,height:this.props.height};return this.props.isRTL?A.right=this.props.leftOffset:A.left=this.props.leftOffset,r.default.createElement("div",{className:(0,o.default)({"fixedDataTableColumnResizerLineLayout/main":!0,"fixedDataTableColumnResizerLineLayout/hiddenElem":!this.props.visible,"public/fixedDataTableColumnResizerLine/main":!0}),style:A},r.default.createElement("div",{className:(0,o.default)("fixedDataTableColumnResizerLineLayout/mouseArea"),style:{height:this.props.height}}))}}]),R}(r.default.PureComponent);E(x,"propTypes",{visible:n.default.bool.isRequired,height:n.default.number.isRequired,leftOffset:n.default.number.isRequired,knobHeight:n.default.number.isRequired,initialWidth:n.default.number,minWidth:n.default.number,maxWidth:n.default.number,initialEvent:n.default.object,onColumnResizeEnd:n.default.func,columnKey:n.default.oneOfType([n.default.string,n.default.number]),touchEnabled:n.default.bool,isRTL:n.default.bool});var T=x;e.default=T})(Qg);var ty={};function s$(e,t){return e==null||e!==e?t:e}var l$=s$,u$=Math.max,c$=Math.min;function d$(e,t,r){return e>=c$(t,r)&&e<u$(t,r)}var f$=d$,h$=f$,Op=N.toFinite_1,p$=N.toNumber_1;function m$(e,t,r){return t=Op(t),r===void 0?(r=t,t=0):r=Op(r),e=p$(e),h$(e,t,r)}var v$=m$;function g$(e){return e==null}var ry=g$,_d={},ny={},iy={},wd={};(function(e){function t(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(k){return typeof k}:t=function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},t(A)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(Q),n=l(jt),a=l(cr),o=l(wn);function l(A){return A&&A.__esModule?A:{default:A}}function u(){return u=Object.assign||function(A){for(var z=1;z<arguments.length;z++){var k=arguments[z];for(var O in k)Object.prototype.hasOwnProperty.call(k,O)&&(A[O]=k[O])}return A},u.apply(this,arguments)}function c(A,z){var k=Object.keys(A);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(A);z&&(O=O.filter(function(F){return Object.getOwnPropertyDescriptor(A,F).enumerable})),k.push.apply(k,O)}return k}function f(A){for(var z=1;z<arguments.length;z++){var k=arguments[z]!=null?arguments[z]:{};z%2?c(Object(k),!0).forEach(function(O){P(A,O,k[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(k)):c(Object(k)).forEach(function(O){Object.defineProperty(A,O,Object.getOwnPropertyDescriptor(k,O))})}return A}function p(A,z){if(A==null)return{};var k=m(A,z),O,F;if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(A);for(F=0;F<j.length;F++)O=j[F],!(z.indexOf(O)>=0)&&Object.prototype.propertyIsEnumerable.call(A,O)&&(k[O]=A[O])}return k}function m(A,z){if(A==null)return{};var k={},O=Object.keys(A),F,j;for(j=0;j<O.length;j++)F=O[j],!(z.indexOf(F)>=0)&&(k[F]=A[F]);return k}function h(A,z){if(!(A instanceof z))throw new TypeError("Cannot call a class as a function")}function b(A,z){for(var k=0;k<z.length;k++){var O=z[k];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}function _(A,z,k){return z&&b(A.prototype,z),A}function g(A,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(z&&z.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),z&&C(A,z)}function C(A,z){return C=Object.setPrototypeOf||function(O,F){return O.__proto__=F,O},C(A,z)}function M(A){var z=T();return function(){var O=w(A),F;if(z){var j=w(this).constructor;F=Reflect.construct(O,arguments,j)}else F=O.apply(this,arguments);return E(this,F)}}function E(A,z){return z&&(t(z)==="object"||typeof z=="function")?z:x(A)}function x(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function T(){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(A){return!1}}function w(A){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)},w(A)}function P(A,z,k){return z in A?Object.defineProperty(A,z,{value:k,enumerable:!0,configurable:!0,writable:!0}):A[z]=k,A}var R=function(A){g(k,A);var z=M(k);function k(){return h(this,k),z.apply(this,arguments)}return _(k,[{key:"render",value:function(){var F=this.props,j=F.height,I=F.width,B=F.style,U=F.className,q=F.children,G=p(F,["height","width","isVisible","style","className","children","columnKey","rowIndex"]),$=f({height:j,width:I},B);return r.default.createElement("div",u({},G,{className:(0,o.default)((0,a.default)("fixedDataTableCellLayout/wrap1"),(0,a.default)("public/fixedDataTableCell/wrap1"),U),style:$}),r.default.createElement("div",{className:(0,o.default)((0,a.default)("fixedDataTableCellLayout/wrap2"),(0,a.default)("public/fixedDataTableCell/wrap2"))},r.default.createElement("div",{className:(0,o.default)((0,a.default)("fixedDataTableCellLayout/wrap3"),(0,a.default)("public/fixedDataTableCell/wrap3"))},r.default.createElement("div",{className:(0,a.default)("public/fixedDataTableCell/cellContent")},q))))}}]),k}(r.default.Component);P(R,"propTypes",{height:n.default.number,width:n.default.number,columnKey:n.default.oneOfType([n.default.string,n.default.number]),rowIndex:n.default.number,isVisible:n.default.bool});var D=R;e.default=D})(wd);var ay={};(function(e){function t(w){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(R){return typeof R}:t=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},t(w)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(Q),n=u(jt),a=u(cr),o=u(Ws),l=u(Fs);function u(w){return w&&w.__esModule?w:{default:w}}function c(w,P){if(!(w instanceof P))throw new TypeError("Cannot call a class as a function")}function f(w,P){for(var R=0;R<P.length;R++){var D=P[R];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(w,D.key,D)}}function p(w,P,R){return P&&f(w.prototype,P),w}function m(w,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(P&&P.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),P&&h(w,P)}function h(w,P){return h=Object.setPrototypeOf||function(D,A){return D.__proto__=A,D},h(w,P)}function b(w){var P=C();return function(){var D=M(w),A;if(P){var z=M(this).constructor;A=Reflect.construct(D,arguments,z)}else A=D.apply(this,arguments);return _(this,A)}}function _(w,P){return P&&(t(P)==="object"||typeof P=="function")?P:g(w)}function g(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(){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(w){return!1}}function M(w){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},M(w)}function E(w,P,R){return P in w?Object.defineProperty(w,P,{value:R,enumerable:!0,configurable:!0,writable:!0}):w[P]=R,w}var x=function(w){m(R,w);var P=b(R);function R(){var D;c(this,R);for(var A=arguments.length,z=new Array(A),k=0;k<A;k++)z[k]=arguments[k];return D=P.call.apply(P,[this].concat(z)),E(g(D),"state",{dragDistance:0}),E(g(D),"onMouseDown",function(O){var F=O.target.getBoundingClientRect(),j=l.default.getCoordinatesFromEvent(O),I=j.x-F.left,B=I+O.target.parentElement.offsetLeft;D._mouseMoveTracker=new o.default(D._onMove,D._onColumnReorderEnd,document.body,D.props.touchEnabled),D._mouseMoveTracker.captureMouseMoves(O),D.setState({dragDistance:0}),D.props.onMouseDown({columnKey:D.props.columnKey,mouseLocation:{dragDistance:0,inElement:I,inColumnGroup:B}}),D._distance=0,D._animating=!0,D.frameId=requestAnimationFrame(D._updateState),D.props.touchEnabled&&O.stopPropagation()}),E(g(D),"_onMove",function(O){D._distance=D.state.dragDistance+O*(D.props.isRTL?-1:1)}),E(g(D),"_onColumnReorderEnd",function(O){D._animating=!1,cancelAnimationFrame(D.frameId),D.frameId=null,D._mouseMoveTracker&&D._mouseMoveTracker.releaseMouseMoves(),D.props.columnReorderingData.cancelReorder=O,D.props.onColumnReorderEnd()}),E(g(D),"_updateState",function(){D._animating&&(D.frameId=requestAnimationFrame(D._updateState)),D.setState({dragDistance:D._distance}),D.props.onColumnReorderMove(D._distance)}),D}return p(R,[{key:"componentWillUnmount",value:function(){this._mouseMoveTracker&&(cancelAnimationFrame(this.frameId),this.frameId=null,this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null)}},{key:"render",value:function(){var A={height:this.props.height};return r.default.createElement("div",{className:(0,a.default)({"fixedDataTableCellLayout/columnReorderContainer":!0,"fixedDataTableCellLayout/columnReorderContainer/active":!1}),onMouseDown:this.onMouseDown,onTouchStart:this.props.touchEnabled?this.onMouseDown:null,onTouchEnd:this.props.touchEnabled?function(z){return z.stopPropagation()}:null,onTouchMove:this.props.touchEnabled?function(z){return z.stopPropagation()}:null,style:A})}}]),R}(r.default.PureComponent);E(x,"propTypes",{onColumnReorderEnd:n.default.func,columnKey:n.default.oneOfType([n.default.string,n.default.number]),touchEnabled:n.default.bool,isRTL:n.default.bool});var T=x;e.default=T})(ay);function oy(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function sy(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n!=null?n:null}this.setState(t.bind(this))}function ly(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}oy.__suppressDeprecationWarning=!0;sy.__suppressDeprecationWarning=!0;ly.__suppressDeprecationWarning=!0;function y$(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var r=null,n=null,a=null;if(typeof t.componentWillMount=="function"?r="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?a="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(a="UNSAFE_componentWillUpdate"),r!==null||n!==null||a!==null){var o=e.displayName||e.name,l=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
249
|
-
|
|
250
|
-
`+o+" uses "+l+" but also contains the following legacy lifecycles:"+(r!==null?`
|
|
251
|
-
`+r:"")+(n!==null?`
|
|
252
|
-
`+n:"")+(a!==null?`
|
|
253
|
-
`+a:"")+`
|
|
254
|
-
|
|
255
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
256
|
-
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=oy,t.componentWillReceiveProps=sy),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=ly;var u=t.componentDidUpdate;t.componentDidUpdate=function(f,p,m){var h=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;u.call(this,f,p,h)}}return e}const b$=Object.freeze(Object.defineProperty({__proto__:null,polyfill:y$},Symbol.toStringTag,{value:"Module"})),uy=N.getAugmentedNamespace(b$);(function(e){function t(k){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(F){return typeof F}:t=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},t(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=p(Q),n=p(jt),a=p(cr),o=p(wn),l=p(Xa),u=p(wd),c=p(ay),f=uy;function p(k){return k&&k.__esModule?k:{default:k}}function m(){return m=Object.assign||function(k){for(var O=1;O<arguments.length;O++){var F=arguments[O];for(var j in F)Object.prototype.hasOwnProperty.call(F,j)&&(k[j]=F[j])}return k},m.apply(this,arguments)}function h(k,O){if(k==null)return{};var F=b(k,O),j,I;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(k);for(I=0;I<B.length;I++)j=B[I],!(O.indexOf(j)>=0)&&Object.prototype.propertyIsEnumerable.call(k,j)&&(F[j]=k[j])}return F}function b(k,O){if(k==null)return{};var F={},j=Object.keys(k),I,B;for(B=0;B<j.length;B++)I=j[B],!(O.indexOf(I)>=0)&&(F[I]=k[I]);return F}function _(k,O){if(!(k instanceof O))throw new TypeError("Cannot call a class as a function")}function g(k,O){for(var F=0;F<O.length;F++){var j=O[F];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(k,j.key,j)}}function C(k,O,F){return O&&g(k.prototype,O),F&&g(k,F),k}function M(k,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(O&&O.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),O&&E(k,O)}function E(k,O){return E=Object.setPrototypeOf||function(j,I){return j.__proto__=I,j},E(k,O)}function x(k){var O=P();return function(){var j=R(k),I;if(O){var B=R(this).constructor;I=Reflect.construct(j,arguments,B)}else I=j.apply(this,arguments);return T(this,I)}}function T(k,O){return O&&(t(O)==="object"||typeof O=="function")?O:w(k)}function w(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function P(){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(k){return!1}}function R(k){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(F){return F.__proto__||Object.getPrototypeOf(F)},R(k)}function D(k,O,F){return O in k?Object.defineProperty(k,O,{value:F,enumerable:!0,configurable:!0,writable:!0}):k[O]=F,k}var A=function(k){M(F,k);var O=x(F);function F(){var j;_(this,F);for(var I=arguments.length,B=new Array(I),U=0;U<I;U++)B[U]=arguments[U];return j=O.call.apply(O,[this].concat(B)),D(w(j),"state",{isReorderingThisColumn:!1,displacement:0,reorderingDisplacement:0}),D(w(j),"_onColumnResizerMouseDown",function(q){j.props.onColumnResize(j.props.left,j.props.width,j.props.minWidth,j.props.maxWidth,j.props.columnKey,q),j.props.touchEnabled&&(q.preventDefault(),q.stopPropagation())}),D(w(j),"_onColumnReorderMouseDown",function(q){j.props.onColumnReorder(j.props.columnKey,j.props.width,j.props.left,q)}),D(w(j),"_suppressEvent",function(q){q.preventDefault(),q.stopPropagation()}),j}return C(F,[{key:"shouldComponentUpdate",value:function(I){if(I.isScrolling&&this.props.rowIndex===I.rowIndex&&this.props.isVisible===I.isVisible)return!1;if(!I.pureRendering)return!0;var B=this.props,U=B.cell,q=h(B,["cell"]),G=I.cell,$=h(I,["cell"]);return!(0,l.default)(q,$)||!U||!G||U.type!==G.type||!(0,l.default)(U.props,G.props)}},{key:"render",value:function(){var I=this.props,B=I.height,U=I.width,q=I.isVisible,G=I.columnKey,$=I.isHeaderOrFooter,H=h(I,["height","width","isVisible","columnKey","isHeaderOrFooter"]),ee={height:B,width:U};if(this.props.isRTL?ee.right=H.left:ee.left=H.left,this.state.isReorderingThisColumn){var X=this.props.isRTL?-1:1;ee.transform="translateX(".concat(this.state.displacement*X,"px) translateZ(0)"),ee.zIndex=1}var K=(0,o.default)((0,a.default)({"fixedDataTableCellLayout/main":!0,"fixedDataTableCellLayout/lastChild":H.lastChild,"fixedDataTableCellLayout/alignRight":H.align==="right","fixedDataTableCellLayout/alignCenter":H.align==="center","public/fixedDataTableCell/alignRight":H.align==="right","public/fixedDataTableCell/highlighted":H.highlighted,"public/fixedDataTableCell/main":!0,"public/fixedDataTableCell/hasReorderHandle":!!H.onColumnReorder,"public/fixedDataTableCell/reordering":this.state.isReorderingThisColumn}),H.className),J;if(H.onColumnResize){var ne={height:B};J=r.default.createElement("div",{className:(0,a.default)("fixedDataTableCellLayout/columnResizerContainer"),style:ne,onMouseDown:this._onColumnResizerMouseDown,onTouchStart:this.props.touchEnabled?this._onColumnResizerMouseDown:null,onTouchEnd:this.props.touchEnabled?this._suppressEvent:null,onTouchMove:this.props.touchEnabled?this._suppressEvent:null},r.default.createElement("div",{className:(0,o.default)((0,a.default)("fixedDataTableCellLayout/columnResizerKnob"),(0,a.default)("public/fixedDataTableCell/columnResizerKnob")),style:ne}))}var le;H.onColumnReorder&&(le=r.default.createElement(c.default,m({columnKey:this.columnKey,touchEnabled:this.props.touchEnabled,onMouseDown:this._onColumnReorderMouseDown,onTouchStart:this._onColumnReorderMouseDown,height:B},this.props)));var se={columnKey:G,height:B,width:U,isVisible:q};H.rowIndex>=0&&(se.rowIndex=H.rowIndex);var ue;r.default.isValidElement(H.cell)?ue=r.default.cloneElement(H.cell,se):typeof H.cell=="function"?ue=H.cell(se):ue=r.default.createElement(u.default,se,H.cell);var fe=$?"columnheader":"gridcell";return r.default.createElement("div",{className:K,style:ee,role:fe},J,le,ue)}}],[{key:"getDerivedStateFromProps",value:function(I,B){var U=I.left+B.displacement,q={isReorderingThisColumn:!1};if(!I.isColumnReordering)return q.displacement=0,q;var G=I.columnReorderingData.originalLeft,$=G+I.columnReorderingData.dragDistance,H=I.columnGroupWidth-I.columnReorderingData.columnWidth;if($=Math.max($,0),$=Math.min($,H),I.columnKey===I.columnReorderingData.columnKey)return q.displacement=$-I.left,q.isReorderingThisColumn=!0,q;var ee=$+I.columnReorderingData.columnWidth,X=$+I.columnReorderingData.columnWidth/2,K=U+I.width/2,J=X>K,ne=G>I.left,le=!1;return J?$<K&&(le=!0,ne?q.displacement=I.columnReorderingData.columnWidth:q.displacement=0):ee>K&&(le=!0,ne?q.displacement=0:q.displacement=I.columnReorderingData.columnWidth*-1),le?J?I.columnReorderingData.columnAfter||(I.columnReorderingData.columnAfter=I.columnKey):I.columnReorderingData.columnBefore=I.columnKey:J?I.columnReorderingData.columnBefore=I.columnKey:I.columnReorderingData.columnAfter||(I.columnReorderingData.columnAfter=I.columnKey),q}}]),F}(r.default.Component);D(A,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:n.default.bool,align:n.default.oneOf(["left","center","right"]),className:n.default.string,highlighted:n.default.bool,width:n.default.number.isRequired,minWidth:n.default.number,maxWidth:n.default.number,height:n.default.number.isRequired,cell:n.default.oneOfType([n.default.string,n.default.element,n.default.func]),columnKey:n.default.oneOfType([n.default.string,n.default.number]),rowIndex:n.default.number.isRequired,onColumnResize:n.default.func,onColumnReorder:n.default.func,left:n.default.number,pureRendering:n.default.bool,touchEnabled:n.default.bool,isHeaderOrFooter:n.default.bool,isRTL:n.default.bool,isVisible:n.default.bool.isRequired}),D(A,"defaultProps",{align:"left",highlighted:!1});var z=(0,f.polyfill)(A);e.default=z})(iy);var Za={},xd={},Cd={},cy={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/-(.)/g;function r(a){return a.replace(t,function(o,l){return l.toUpperCase()})}var n=r;e.default=n})(cy);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(zi),r=a(md),n=a(cy);function a(h){return h&&h.__esModule?h:{default:h}}var o={},l=["Webkit","ms","Moz","O"],u=new RegExp("^("+l.join("|")+")"),c=r.default.canUseDOM?document.createElement("div").style:{};function f(h){for(var b=0;b<l.length;b++){var _=l[b]+h;if(_ in c)return _}return null}function p(h){var b=(0,n.default)(h);if(o[b]===void 0){var _=b.charAt(0).toUpperCase()+b.slice(1);u.test(_)&&(0,t.default)(!1,"getVendorPrefixedName must only be called with unprefixedCSS property names. It was called with %s",h),o[b]=b in c?b:f(_)}return o[b]}var m=p;e.default=m})(Cd);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Cd);function r(o){return o&&o.__esModule?o:{default:o}}var n={hasCSSAnimations:function(){return!!(0,t.default)("animationName")},hasCSSTransforms:function(){return!!(0,t.default)("transform")},hasCSS3DTransforms:function(){return!!(0,t.default)("perspective")},hasCSSTransitions:function(){return!!(0,t.default)("transition")}},a=n;e.default=a})(xd);var dy={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(xd),r=a(Cd),n=a($i);function a(c){return c&&c.__esModule?c:{default:c}}var o=(0,r.default)("transform");(0,r.default)("backfaceVisibility");var l=function(){if(t.default.hasCSSTransforms()){var c=n.default.window?n.default.window.navigator.userAgent:"UNKNOWN",f=/Safari\//.test(c)&&!/Chrome\//.test(c);return!f&&t.default.hasCSS3DTransforms()?function(p,m,h){p[o]="translate3d("+m+"px,"+h+"px,0)"}:function(p,m,h){p[o]="translate("+m+"px,"+h+"px)"}}else return function(p,m,h){p.left=m+"px",p.top=h+"px"}}(),u=l;e.default=u})(dy);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(xd),r=n(dy);function n(l){return l&&l.__esModule?l:{default:l}}function a(l,u,c){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;l.display!=="none"&&(f?(l.left=u+"px",l.top=c+"px"):(t.default.hasCSSTransforms()&&(u*=p?-1:1),(0,r.default)(l,u,c)),p&&(l.right=l.left,l.left="auto"))}var o=a;e.default=o})(Za);(function(e){function t(z){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(O){return typeof O}:t=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},t(z)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(Q),n=c(jt),a=c(cr),o=Cn,l=c(iy),u=c(Za);function c(z){return z&&z.__esModule?z:{default:z}}function f(){return f=Object.assign||function(z){for(var k=1;k<arguments.length;k++){var O=arguments[k];for(var F in O)Object.prototype.hasOwnProperty.call(O,F)&&(z[F]=O[F])}return z},f.apply(this,arguments)}function p(z,k){if(z==null)return{};var O=m(z,k),F,j;if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(z);for(j=0;j<I.length;j++)F=I[j],!(k.indexOf(F)>=0)&&Object.prototype.propertyIsEnumerable.call(z,F)&&(O[F]=z[F])}return O}function m(z,k){if(z==null)return{};var O={},F=Object.keys(z),j,I;for(I=0;I<F.length;I++)j=F[I],!(k.indexOf(j)>=0)&&(O[j]=z[j]);return O}function h(z,k){if(!(z instanceof k))throw new TypeError("Cannot call a class as a function")}function b(z,k){for(var O=0;O<k.length;O++){var F=k[O];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(z,F.key,F)}}function _(z,k,O){return k&&b(z.prototype,k),z}function g(z,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(k&&k.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),k&&C(z,k)}function C(z,k){return C=Object.setPrototypeOf||function(F,j){return F.__proto__=j,F},C(z,k)}function M(z){var k=T();return function(){var F=w(z),j;if(k){var I=w(this).constructor;j=Reflect.construct(F,arguments,I)}else j=F.apply(this,arguments);return E(this,j)}}function E(z,k){return k&&(t(k)==="object"||typeof k=="function")?k:x(z)}function x(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function T(){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(z){return!1}}function w(z){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},w(z)}function P(z,k,O){return k in z?Object.defineProperty(z,k,{value:O,enumerable:!0,configurable:!0,writable:!0}):z[k]=O,z}var R=function(z){g(O,z);var k=M(O);function O(F){var j;return h(this,O),j=k.call(this,F),P(x(j),"_renderCell",function(I,B,U,q,G,$,H,ee,X){var K=U.isResizable&&j.props.onColumnResize,J=K?j.props.onColumnResize:null,ne=U.isReorderable&&j.props.onColumnReorder&&I===-1&&H!==U.width,le=ne?j.props.onColumnReorder:null,se=U.cellClassName,ue=U.pureRendering||!1;return r.default.createElement(l.default,{isScrolling:j.props.isScrolling,isHeaderOrFooter:j.props.isHeaderOrFooter,align:U.align,className:se,height:B,key:$,maxWidth:U.maxWidth,minWidth:U.minWidth,touchEnabled:j.props.touchEnabled,onColumnResize:J,onColumnReorder:le,onColumnReorderMove:j.props.onColumnReorderMove,onColumnReorderEnd:j.props.onColumnReorderEnd,isColumnReordering:ee,columnReorderingData:j.props.columnReorderingData,rowIndex:I,columnKey:U.columnKey,width:U.width,left:G,cell:q,columnGroupWidth:H,pureRendering:ue,isRTL:j.props.isRTL,isVisible:j.props.isVisible&&X})}),j._initialRender=!0,j}return _(O,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"render",value:function(){for(var j=this.props,I=j.columns,B=new Array(I.length),U=(0,o.sumPropWidths)(I),q=j.isColumnReordering&&I.reduce(function(se,ue){return se||j.columnReorderingData.columnKey===ue.props.columnKey},!1),G=0,$=0,H=I.length;$<H;$++){var ee=I[$].props,X=I[$].template,K=ee.allowCellsRecycling&&!q,J=G-j.left<=j.width&&G-j.left+ee.width>=0;if(!K||J){var ne=ee.columnKey||"cell_"+$;B[$]=this._renderCell(j.rowIndex,j.rowHeight,ee,X,G,ne,U,q,J)}G+=ee.width}var le={height:j.height,position:"absolute",width:U,zIndex:j.zIndex};return(0,u.default)(le,-1*j.left,0,this._initialRender,this.props.isRTL),r.default.createElement("div",{className:(0,a.default)("fixedDataTableCellGroupLayout/cellGroup"),style:le},B)}}]),O}(r.default.Component);P(R,"propTypes_DISABLED_FOR_PERFORMANCE",{columns:n.default.array.isRequired,isScrolling:n.default.bool,left:n.default.number,onColumnResize:n.default.func,onColumnReorder:n.default.func,onColumnReorderMove:n.default.func,onColumnReorderEnd:n.default.func,height:n.default.number.isRequired,cellGroupWrapperHeight:n.default.number,rowHeight:n.default.number.isRequired,rowIndex:n.default.number.isRequired,width:n.default.number.isRequired,zIndex:n.default.number.isRequired,touchEnabled:n.default.bool,isHeaderOrFooter:n.default.bool,isRTL:n.default.bool,isVisible:n.default.bool.isRequired});var D=function(z){g(O,z);var k=M(O);function O(){var F;h(this,O);for(var j=arguments.length,I=new Array(j),B=0;B<j;B++)I[B]=arguments[B];return F=k.call.apply(k,[this].concat(I)),P(x(F),"_onColumnResize",function(U,q,G,$,H,ee){F.props.onColumnResize&&F.props.onColumnResize(F.props.offsetLeft,U-F.props.left+q,q,G,$,H,ee)}),F}return _(O,[{key:"shouldComponentUpdate",value:function(j){return!(j.isScrolling&&this.props.rowIndex===j.rowIndex&&this.props.left===j.left&&this.props.offsetLeft===j.offsetLeft&&this.props.isVisible===j.isVisible)}},{key:"render",value:function(){var j=this.props,I=j.offsetLeft,B=p(j,["offsetLeft"]),U={height:B.cellGroupWrapperHeight||B.height,width:B.width};this.props.isRTL?U.right=I:U.left=I;var q=B.onColumnResize?this._onColumnResize:null;return r.default.createElement("div",{style:U,className:(0,a.default)("fixedDataTableCellGroupLayout/cellGroupWrapper")},r.default.createElement(R,f({},B,{onColumnResize:q})))}}]),O}(r.default.Component);P(D,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:n.default.bool,height:n.default.number.isRequired,offsetLeft:n.default.number,left:n.default.number,zIndex:n.default.number.isRequired}),P(D,"defaultProps",{left:0,offsetLeft:0});var A=D;e.default=A})(ny);(function(e){function t(O){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(j){return typeof j}:t=function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},t(O)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=f(jt),n=f(Q),a=f(cr),o=f(wn),l=Cn,u=f(ny),c=f(Za);function f(O){return O&&O.__esModule?O:{default:O}}function p(O,F){if(O==null)return{};var j=m(O,F),I,B;if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(O);for(B=0;B<U.length;B++)I=U[B],!(F.indexOf(I)>=0)&&Object.prototype.propertyIsEnumerable.call(O,I)&&(j[I]=O[I])}return j}function m(O,F){if(O==null)return{};var j={},I=Object.keys(O),B,U;for(U=0;U<I.length;U++)B=I[U],!(F.indexOf(B)>=0)&&(j[B]=O[B]);return j}function h(){return h=Object.assign||function(O){for(var F=1;F<arguments.length;F++){var j=arguments[F];for(var I in j)Object.prototype.hasOwnProperty.call(j,I)&&(O[I]=j[I])}return O},h.apply(this,arguments)}function b(O,F){if(!(O instanceof F))throw new TypeError("Cannot call a class as a function")}function _(O,F){for(var j=0;j<F.length;j++){var I=F[j];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(O,I.key,I)}}function g(O,F,j){return F&&_(O.prototype,F),O}function C(O,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(F&&F.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),F&&M(O,F)}function M(O,F){return M=Object.setPrototypeOf||function(I,B){return I.__proto__=B,I},M(O,F)}function E(O){var F=w();return function(){var I=P(O),B;if(F){var U=P(this).constructor;B=Reflect.construct(I,arguments,U)}else B=I.apply(this,arguments);return x(this,B)}}function x(O,F){return F&&(t(F)==="object"||typeof F=="function")?F:T(O)}function T(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function w(){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(O){return!1}}function P(O){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(j){return j.__proto__||Object.getPrototypeOf(j)},P(O)}function R(O,F,j){return F in O?Object.defineProperty(O,F,{value:j,enumerable:!0,configurable:!0,writable:!0}):O[F]=j,O}var D=1,A=function(O){C(j,O);var F=E(j);function j(){var I;b(this,j);for(var B=arguments.length,U=new Array(B),q=0;q<B;q++)U[q]=arguments[q];return I=F.call.apply(F,[this].concat(U)),R(T(I),"mouseLeaveIndex",null),R(T(I),"_getRowExpanded",function(G){if(I.props.rowExpanded){var $={rowIndex:I.props.index,height:G,width:I.props.width},H;return n.default.isValidElement(I.props.rowExpanded)?H=n.default.cloneElement(I.props.rowExpanded,$):typeof I.props.rowExpanded=="function"&&(H=I.props.rowExpanded($)),H}}),R(T(I),"_renderColumnsLeftShadow",function(G){var $=(0,a.default)({"fixedDataTableRowLayout/fixedColumnsDivider":G>0,"fixedDataTableRowLayout/columnsShadow":I.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":G>0,"public/fixedDataTableRow/columnsShadow":I.props.scrollLeft>0}),H=I.props.cellGroupWrapperHeight?I.props.cellGroupWrapperHeight-D:I.props.height,ee={left:G,height:H};return I.props.isRTL&&(ee.right=G,ee.left="auto"),n.default.createElement("div",{className:$,style:ee})}),R(T(I),"_renderFixedRightColumnsShadow",function(G){var $=(0,a.default)("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","fixedDataTableRowLayout/fixedColumnsDivider","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow","public/fixedDataTableRow/fixedColumnsDivider"),H={height:I.props.height,left:G};return I.props.isRTL&&(H.right=G,H.left="auto"),n.default.createElement("div",{className:$,style:H})}),R(T(I),"_renderColumnsRightShadow",function(G){if(Math.ceil(I.props.scrollLeft+I.props.width)<Math.floor(G)){var $=(0,a.default)("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow"),H={height:I.props.height};return n.default.createElement("div",{className:$,style:H})}}),R(T(I),"_onClick",function(G){I.props.onClick(G,I.props.index)}),R(T(I),"_onContextMenu",function(G){I.props.onContextMenu(G,I.props.index)}),R(T(I),"_onDoubleClick",function(G){I.props.onDoubleClick(G,I.props.index)}),R(T(I),"_onMouseUp",function(G){I.props.onMouseUp(G,I.props.index)}),R(T(I),"_onMouseDown",function(G){I.props.onMouseDown(G,I.props.index)}),R(T(I),"_onMouseEnter",function(G){I.mouseLeaveIndex=I.props.index,I.props.onMouseEnter&&I.props.onMouseEnter(G,I.props.index)}),R(T(I),"_onMouseLeave",function(G){I.mouseLeaveIndex===null&&(I.mouseLeaveIndex=I.props.index),I.props.onMouseLeave(G,I.mouseLeaveIndex),I.mouseLeaveIndex=null}),R(T(I),"_onTouchStart",function(G){I.props.onTouchStart(G,I.props.index)}),R(T(I),"_onTouchEnd",function(G){I.props.onTouchEnd(G,I.props.index)}),R(T(I),"_onTouchMove",function(G){I.props.onTouchMove(G,I.props.index)}),I}return g(j,[{key:"shouldComponentUpdate",value:function(B){return B.isScrolling?B.visible?this.props.visible!==B.visible?!0:!(this.props.index===B.index&&this.props.scrollLeft===B.scrollLeft):!1:!0}},{key:"render",value:function(){var B=this.props.subRowHeight||0,U={width:this.props.width,height:this.props.height+B},q=(0,a.default)({"fixedDataTableRowLayout/main":!0,"public/fixedDataTableRow/main":!0,"public/fixedDataTableRow/highlighted":this.props.index%2===1,"public/fixedDataTableRow/odd":this.props.index%2===1,"public/fixedDataTableRow/even":this.props.index%2===0}),G=(0,l.sumPropWidths)(this.props.fixedColumns),$=n.default.createElement(u.default,{key:"fixed_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,left:0,width:G,zIndex:2,columns:this.props.fixedColumns,touchEnabled:this.props.touchEnabled,onColumnResize:this.props.onColumnResize,onColumnReorder:this.props.onColumnReorder,onColumnReorderMove:this.props.onColumnReorderMove,onColumnReorderEnd:this.props.onColumnReorderEnd,isColumnReordering:this.props.isColumnReordering,columnReorderingData:this.props.columnReorderingData,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isRTL:this.props.isRTL,isVisible:this.props.visible}),H=this._renderColumnsLeftShadow(G),ee=(0,l.sumPropWidths)(this.props.fixedRightColumns),X=this.props.showScrollbarY?this.props.scrollbarYWidth:0,K=n.default.createElement(u.default,{key:"fixed_right_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,offsetLeft:this.props.width-ee-X,width:ee,zIndex:2,columns:this.props.fixedRightColumns,touchEnabled:this.props.touchEnabled,onColumnResize:this.props.onColumnResize,onColumnReorder:this.props.onColumnReorder,onColumnReorderMove:this.props.onColumnReorderMove,onColumnReorderEnd:this.props.onColumnReorderEnd,isColumnReordering:this.props.isColumnReordering,columnReorderingData:this.props.columnReorderingData,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isRTL:this.props.isRTL,isVisible:this.props.visible}),J=ee?this._renderFixedRightColumnsShadow(this.props.width-ee-X-5):null,ne=n.default.createElement(u.default,{key:"scrollable_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,align:"right",left:this.props.scrollLeft,offsetLeft:G,width:this.props.width-G-ee-X,zIndex:0,columns:this.props.scrollableColumns,touchEnabled:this.props.touchEnabled,onColumnResize:this.props.onColumnResize,onColumnReorder:this.props.onColumnReorder,onColumnReorderMove:this.props.onColumnReorderMove,onColumnReorderEnd:this.props.onColumnReorderEnd,isColumnReordering:this.props.isColumnReordering,columnReorderingData:this.props.columnReorderingData,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isRTL:this.props.isRTL,isVisible:this.props.visible}),le=(0,l.sumPropWidths)(this.props.scrollableColumns),se=this._renderColumnsRightShadow(G+le),ue=this._getRowExpanded(B),fe={height:B,top:this.props.height,width:this.props.width},pe=null;if(this.props.showScrollbarY){var oe={width:X,height:this.props.height,left:this.props.isRTL?2:this.props.width-X-2};pe=n.default.createElement("div",{style:oe,className:(0,a.default)("public/fixedDataTable/scrollbarSpacer")})}return n.default.createElement("div",h({className:(0,o.default)(q,this.props.className),role:"row","aria-rowindex":this.props.ariaRowIndex},this.props.attributes,{onClick:this.props.onClick?this._onClick:null,onContextMenu:this.props.onContextMenu?this._onContextMenu:null,onDoubleClick:this.props.onDoubleClick?this._onDoubleClick:null,onMouseDown:this.props.onMouseDown?this._onMouseDown:null,onMouseUp:this.props.onMouseUp?this._onMouseUp:null,onMouseEnter:this.props.onMouseEnter||this.props.onMouseLeave?this._onMouseEnter:null,onMouseLeave:this.props.onMouseLeave?this._onMouseLeave:null,onTouchStart:this.props.onTouchStart?this._onTouchStart:null,onTouchEnd:this.props.onTouchEnd?this._onTouchEnd:null,onTouchMove:this.props.onTouchMove?this._onTouchMove:null,style:U}),n.default.createElement("div",{className:(0,a.default)("fixedDataTableRowLayout/body")},$,ne,H,K,J,pe),ue&&n.default.createElement("div",{className:(0,a.default)("fixedDataTableRowLayout/rowExpanded"),style:fe},ue),se)}}]),j}(n.default.Component);R(A,"propTypes",{isScrolling:r.default.bool,fixedColumns:r.default.array.isRequired,fixedRightColumns:r.default.array.isRequired,height:r.default.number.isRequired,cellGroupWrapperHeight:r.default.number,subRowHeight:r.default.number,rowExpanded:r.default.oneOfType([r.default.element,r.default.func]),index:r.default.number.isRequired,scrollableColumns:r.default.array.isRequired,scrollLeft:r.default.number.isRequired,width:r.default.number.isRequired,onClick:r.default.func,onContextMenu:r.default.func,onDoubleClick:r.default.func,onColumnResize:r.default.func,isColumnReordering:r.default.bool,onColumnReorder:r.default.func,onColumnReorderMove:r.default.func,onColumnReorderEnd:r.default.func,touchEnabled:r.default.bool,isHeaderOrFooter:r.default.bool,ariaRowIndex:r.default.number,isRTL:r.default.bool,attributes:r.default.object});var z=function(O){C(j,O);var F=E(j);function j(I){var B;return b(this,j),B=F.call(this,I),B._initialRender=!0,B}return g(j,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"shouldComponentUpdate",value:function(B){return!B.isScrolling||this.props.visible!==B.visible?!0:B.visible?!(B.isScrolling&&this.props.index===B.index&&this.props.offsetTop===B.offsetTop&&this.props.scrollLeft===B.scrollLeft):!1}},{key:"render",value:function(){var B=this.props,U=B.offsetTop,q=B.zIndex,G=p(B,["offsetTop","zIndex"]),$={width:this.props.width,height:this.props.height,zIndex:q||0,visibility:G.visible?"visible":"hidden"};return(0,c.default)($,0,U,this._initialRender,this.props.isRTL),n.default.createElement("div",{style:$,className:(0,a.default)("fixedDataTableRowLayout/rowWrapper")},n.default.createElement(A,G))}}]),j}(n.default.Component);R(z,"propTypes",{isScrolling:r.default.bool,height:r.default.number.isRequired,zIndex:r.default.number,offsetTop:r.default.number.isRequired,visible:r.default.bool.isRequired,width:r.default.number.isRequired});var k=z;e.default=k})(_d);(function(e){function t(k){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(F){return typeof F}:t=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},t(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=h(jt),n=h(Q),a=h(l$),o=h(v$),l=h(ry),u=h(cr),c=h(xn),f=h(wn),p=h(_d),m=h(Za);function h(k){return k&&k.__esModule?k:{default:k}}function b(){return b=Object.assign||function(k){for(var O=1;O<arguments.length;O++){var F=arguments[O];for(var j in F)Object.prototype.hasOwnProperty.call(F,j)&&(k[j]=F[j])}return k},b.apply(this,arguments)}function _(k,O){if(!(k instanceof O))throw new TypeError("Cannot call a class as a function")}function g(k,O){for(var F=0;F<O.length;F++){var j=O[F];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(k,j.key,j)}}function C(k,O,F){return O&&g(k.prototype,O),k}function M(k,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(O&&O.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),O&&E(k,O)}function E(k,O){return E=Object.setPrototypeOf||function(j,I){return j.__proto__=I,j},E(k,O)}function x(k){var O=P();return function(){var j=R(k),I;if(O){var B=R(this).constructor;I=Reflect.construct(j,arguments,B)}else I=j.apply(this,arguments);return T(this,I)}}function T(k,O){return O&&(t(O)==="object"||typeof O=="function")?O:w(k)}function w(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function P(){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(k){return!1}}function R(k){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(F){return F.__proto__||Object.getPrototypeOf(F)},R(k)}function D(k,O,F){return O in k?Object.defineProperty(k,O,{value:F,enumerable:!0,configurable:!0,writable:!0}):k[O]=F,k}var A=function(k){M(F,k);var O=x(F);function F(j){var I;return _(this,F),I=O.call(this,j),I._staticRowArray=[],I._initialRender=!0,I}return C(F,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"shouldComponentUpdate",value:function(){return!0}},{key:"componentWillUnmount",value:function(){this._staticRowArray.length=0}},{key:"render",value:function(){var I=this.props,B=I.offsetTop,U=I.rowOffsets,q=I.scrollTop,G=I.isScrolling,$=I.rowsToRender;$=$||[],G?this._staticRowArray.length=Math.max(this._staticRowArray.length,$.length):this._staticRowArray.length=$.length;for(var H=1e6,ee=B-q%H,X=0;X<this._staticRowArray.length;X++){var K,J=(0,a.default)($[X],(K=this._staticRowArray[X])===null||K===void 0?void 0:K.props.index);if((0,l.default)(J)||!(0,o.default)(J,0,this.props.rowSettings.rowsCount)){this._staticRowArray[X]=null;continue}var ne=U[J]-Math.floor(q/H)*H;this._staticRowArray[X]=this.renderRow({rowIndex:J,key:X,rowOffsetTop:ne})}var le={};(0,m.default)(le,0,ee,!1);var se=this._staticRowArray.slice().sort(this.rowSortComparator);return n.default.createElement("div",{style:le},se)}},{key:"renderRow",value:function(I){var B=I.rowIndex,U=I.key,q=I.rowOffsetTop,G=this.props,$=G.rowClassNameGetter||c.default,H={};H.height=this.props.rowSettings.rowHeightGetter(B),H.subRowHeight=this.props.rowSettings.subRowHeightGetter(B),H.offsetTop=q,H.key=G.rowKeyGetter?G.rowKeyGetter(B):U,H.attributes=G.rowSettings.rowAttributesGetter&&G.rowSettings.rowAttributesGetter(B);var ee=B===G.rowSettings.rowsCount-1&&G.showLastRowBorder;H.className=(0,f.default)($(B),(0,u.default)("public/fixedDataTable/bodyRow"),(0,u.default)({"fixedDataTableLayout/hasBottomBorder":ee,"public/fixedDataTable/hasBottomBorder":ee}));var X=(0,o.default)(B,this.props.firstViewportRowIndex,this.props.endViewportRowIndex);return n.default.createElement(p.default,b({key:U,index:B,ariaRowIndex:B+G.ariaRowIndexOffset,isScrolling:G.isScrolling,width:G.width,rowExpanded:G.rowExpanded,scrollLeft:Math.round(G.scrollLeft),fixedColumns:G.fixedColumns,fixedRightColumns:G.fixedRightColumns,scrollableColumns:G.scrollableColumns,onClick:G.onRowClick,onContextMenu:G.onRowContextMenu,onDoubleClick:G.onRowDoubleClick,onMouseDown:G.onRowMouseDown,onMouseUp:G.onRowMouseUp,onMouseEnter:G.onRowMouseEnter,onMouseLeave:G.onRowMouseLeave,onTouchStart:G.onRowTouchStart,onTouchEnd:G.onRowTouchEnd,onTouchMove:G.onRowTouchMove,showScrollbarY:G.showScrollbarY,scrollbarYWidth:G.scrollbarYWidth,isRTL:G.isRTL,visible:X},H))}},{key:"rowSortComparator",value:function(I,B){var U,q;return((U=I==null?void 0:I.props.ariaRowIndex)!==null&&U!==void 0?U:-1)-((q=B==null?void 0:B.props.ariaRowIndex)!==null&&q!==void 0?q:-1)}}]),F}(n.default.Component);D(A,"propTypes",{ariaRowIndexOffset:r.default.number,isScrolling:r.default.bool,firstViewportRowIndex:r.default.number.isRequired,endViewportRowIndex:r.default.number.isRequired,fixedColumns:r.default.array.isRequired,fixedRightColumns:r.default.array.isRequired,height:r.default.number.isRequired,offsetTop:r.default.number.isRequired,onRowClick:r.default.func,onRowContextMenu:r.default.func,onRowDoubleClick:r.default.func,onRowMouseDown:r.default.func,onRowMouseUp:r.default.func,onRowMouseEnter:r.default.func,onRowMouseLeave:r.default.func,onRowTouchStart:r.default.func,onRowTouchEnd:r.default.func,onRowTouchMove:r.default.func,rowClassNameGetter:r.default.func,rowExpanded:r.default.oneOfType([r.default.element,r.default.func]),rowOffsets:r.default.object.isRequired,rowKeyGetter:r.default.func,rowSettings:r.default.shape({rowAttributesGetter:r.default.func,rowHeightGetter:r.default.func,rowsCount:r.default.number.isRequired,subRowHeightGetter:r.default.func}),rowsToRender:r.default.array.isRequired,scrollLeft:r.default.number.isRequired,scrollTop:r.default.number.isRequired,scrollableColumns:r.default.array.isRequired,showLastRowBorder:r.default.bool,showScrollbarY:r.default.bool,width:r.default.number.isRequired,isRTL:r.default.bool});var z=A;e.default=z})(ty);var fy={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(xn),r=n(As);function n(b){return b&&b.__esModule?b:{default:b}}function a(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function o(b,_){for(var g=0;g<_.length;g++){var C=_[g];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(b,C.key,C)}}function l(b,_,g){return _&&o(b.prototype,_),b}var u=1.6,c=1.6,f=325,p=100,m=function(){function b(_,g,C,M,E){a(this,b),this._dragAnimationId=null,this._trackerId=null,this._deltaX=0,this._deltaY=0,this._lastTouchX=0,this._lastTouchY=0,this._velocityX=0,this._velocityY=0,this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=Date.now(),this._autoScrollTimestamp=Date.now(),typeof g!="function"&&(g=g?t.default.thatReturnsTrue:t.default.thatReturnsFalse),typeof C!="function"&&(C=C?t.default.thatReturnsTrue:t.default.thatReturnsFalse),this._handleScrollX=g,this._handleScrollY=C,this._preventDefault=M,this._stopPropagation=E,this._onTouchScrollCallback=_,this._didTouchMove=this._didTouchMove.bind(this),this._track=this._track.bind(this),this._autoScroll=this._autoScroll.bind(this),this._startAutoScroll=this._startAutoScroll.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchCancel=this.onTouchCancel.bind(this)}return l(b,[{key:"onTouchStart",value:function(g){this._lastTouchX=g.touches[0].pageX,this._lastTouchY=g.touches[0].pageY,this._velocityX=0,this._velocityY=0,this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=Date.now(),clearInterval(this._trackerId),this._trackerId=setInterval(this._track,p),this._stopPropagation&&g.stopPropagation()}},{key:"onTouchEnd",value:function(g){clearInterval(this._trackerId),this._trackerId=null,(0,r.default)(this._startAutoScroll),this._stopPropagation&&g.stopPropagation()}},{key:"onTouchCancel",value:function(g){clearInterval(this._trackerId),this._trackerId=null,this._stopPropagation&&g.stopPropagation()}},{key:"onTouchMove",value:function(g){this._preventDefault&&g.preventDefault();var C=g.touches[0].pageX,M=g.touches[0].pageY;this._deltaX=u*(this._lastTouchX-C),this._deltaY=u*(this._lastTouchY-M);var E=this._handleScrollX(this._deltaX,this._deltaY),x=this._handleScrollY(this._deltaY,this._deltaX);if(!(!E&&!x)){E?this._lastTouchX=C:this._deltaX=0,x?this._lastTouchY=M:this._deltaY=0,g.defaultPrevented||g.preventDefault();var T=!1;(Math.abs(this._deltaX)>2||Math.abs(this._deltaY)>2)&&(this._stopPropagation&&g.stopPropagation(),T=!0),T===!0&&this._dragAnimationId===null&&(this._dragAnimationId=(0,r.default)(this._didTouchMove))}}},{key:"_didTouchMove",value:function(){this._dragAnimationId=null,this._onTouchScrollCallback(this._deltaX,this._deltaY),this._accumulatedDeltaX+=this._deltaX,this._accumulatedDeltaY+=this._deltaY,this._deltaX=0,this._deltaY=0}},{key:"_track",value:function(){var g=Date.now(),C=g-this._lastFrameTimestamp,M=this._velocityX,E=this._velocityY,x=.8;C<p&&(x*=C/p),M===0&&E===0&&(x=1),this._velocityX=x*(p*this._accumulatedDeltaX/(1+C)),x<1&&(this._velocityX+=(1-x)*M),this._velocityY=x*(p*this._accumulatedDeltaY/(1+C)),x<1&&(this._velocityY+=(1-x)*E),this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=g}},{key:"_startAutoScroll",value:function(){this._autoScrollTimestamp=Date.now(),(this._deltaX>0||this.deltaY>0)&&this._didTouchMove(),this._track(),this._autoScroll()}},{key:"_autoScroll",value:function(){var g=Date.now()-this._autoScrollTimestamp,C=c*Math.exp(-g/f),M=C*this._velocityX,E=C*this._velocityY;(Math.abs(M)<=5||!this._handleScrollX(M,E))&&(M=0),(Math.abs(E)<=5||!this._handleScrollY(E,M))&&(E=0),(M!==0||E!==0)&&(this._onTouchScrollCallback(M,E),(0,r.default)(this._autoScroll))}}]),b}(),h=m;e.default=h})(fy);(function(e){function t(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(H){return typeof H}:t=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},t(G)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=x(Q),n=x(jt),a=x(mz),o=x(cr),l=x(Fg),u=x(wn),c=x(Xa),f=x(pd),p=x(Ug),m=x(Zg),h=x(Wi),b=x(bd),_=x(Qg),g=x(ty),C=x(Fs),M=x(_d),E=x(fy);function x(G){return G&&G.__esModule?G:{default:G}}function T(){return T=Object.assign||function(G){for(var $=1;$<arguments.length;$++){var H=arguments[$];for(var ee in H)Object.prototype.hasOwnProperty.call(H,ee)&&(G[ee]=H[ee])}return G},T.apply(this,arguments)}function w(G,$){if(!(G instanceof $))throw new TypeError("Cannot call a class as a function")}function P(G,$){for(var H=0;H<$.length;H++){var ee=$[H];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(G,ee.key,ee)}}function R(G,$,H){return $&&P(G.prototype,$),G}function D(G,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create($&&$.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),$&&A(G,$)}function A(G,$){return A=Object.setPrototypeOf||function(ee,X){return ee.__proto__=X,ee},A(G,$)}function z(G){var $=F();return function(){var ee=j(G),X;if($){var K=j(this).constructor;X=Reflect.construct(ee,arguments,K)}else X=ee.apply(this,arguments);return k(this,X)}}function k(G,$){return $&&(t($)==="object"||typeof $=="function")?$:O(G)}function O(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}function F(){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(G){return!1}}function j(G){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},j(G)}function I(G,$,H){return $ in G?Object.defineProperty(G,$,{value:H,enumerable:!0,configurable:!0,writable:!0}):G[$]=H,G}var B=25,U=function(G){D(H,G);var $=z(H);function H(ee){var X;return w(this,H),X=$.call(this,ee),I(O(X),"_shouldHandleTouchX",function(K){return X.props.touchScrollEnabled&&X._shouldHandleWheelX(K)}),I(O(X),"_shouldHandleTouchY",function(K){return X.props.touchScrollEnabled&&X._shouldHandleWheelY(K)}),I(O(X),"_shouldHandleWheelX",function(K){var J=X.props,ne=J.maxScrollX,le=J.scrollFlags,se=J.scrollX,ue=le.overflowX;return ue==="hidden"||(K=Math.round(K),K===0)?!1:K<0&&se>0||K>=0&&se<ne}),I(O(X),"_shouldHandleWheelY",function(K){var J=X.props,ne=J.maxScrollY,le=J.scrollFlags,se=J.scrollY,ue=le.overflowY;return ue==="hidden"||K===0||(K=Math.round(K),K===0)?!1:K<0&&se>0||K>=0&&se<ne}),I(O(X),"_reportContentHeight",function(){var K=(0,b.default)(X.props),J=K.contentHeight,ne=X.props.onContentHeightChange;J!==X._contentHeight&&ne&&ne(J),X._contentHeight=J}),I(O(X),"_renderRows",function(K,J,ne,le,se,ue){var fe=(0,h.default)(X.props),pe=fe.scrollEnabledY,oe=X.props;return r.default.createElement(g.default,{ariaRowIndexOffset:ue,isScrolling:oe.scrolling,fixedColumns:J,fixedRightColumns:ne,firstViewportRowIndex:oe.firstRowIndex,endViewportRowIndex:oe.endRowIndex,height:se,offsetTop:K,onRowClick:oe.onRowClick,onRowContextMenu:oe.onRowContextMenu,onRowDoubleClick:oe.onRowDoubleClick,onRowMouseUp:oe.onRowMouseUp,onRowMouseDown:oe.onRowMouseDown,onRowMouseEnter:oe.onRowMouseEnter,onRowMouseLeave:oe.onRowMouseLeave,onRowTouchStart:oe.touchScrollEnabled?oe.onRowTouchStart:null,onRowTouchEnd:oe.touchScrollEnabled?oe.onRowTouchEnd:null,onRowTouchMove:oe.touchScrollEnabled?oe.onRowTouchMove:null,rowClassNameGetter:oe.rowClassNameGetter,rowExpanded:oe.rowExpanded,rowKeyGetter:oe.rowKeyGetter,rowSettings:oe.rowSettings,scrollLeft:oe.scrollX,scrollTop:oe.scrollY,scrollableColumns:le,showLastRowBorder:!0,width:oe.tableSize.width,rowsToRender:oe.rows,rowOffsets:oe.rowOffsets,showScrollbarY:pe,scrollbarYWidth:oe.scrollbarYWidth,isRTL:oe.isRTL})}),I(O(X),"_onRef",function(K){X._divRef=K,X._wheelHandler&&(X.props.stopReactWheelPropagation?X._wheelHandler.setRoot(K):X._wheelHandler.setRoot(null))}),I(O(X),"_onColumnResize",function(K,J,ne,le,se,ue,fe){var pe=C.default.getCoordinatesFromEvent(fe),oe=pe.x,ve=pe.y;X.props.columnActions.resizeColumn({cellMinWidth:le,cellMaxWidth:se,cellWidth:ne,columnKey:ue,combinedWidth:K,clientX:oe,clientY:ve,leftOffset:J})}),I(O(X),"_onColumnReorder",function(K,J,ne,le){X.props.columnActions.startColumnReorder({scrollStart:X.props.scrollX,columnKey:K,width:J,left:ne})}),I(O(X),"_onColumnReorderMove",function(K){X.props.columnActions.moveColumnReorder(K)}),I(O(X),"_onColumnReorderEnd",function(K,J){var ne=X.props,le=ne.columnActions,se=ne.columnReorderingData,ue=se.cancelReorder,fe=se.columnAfter,pe=se.columnBefore,oe=se.columnKey,ve=se.scrollStart,de=ne.onColumnReorderEndCallback,_e=ne.onHorizontalScroll,we=ne.scrollX;le.stopColumnReorder(),!ue&&(de({columnAfter:fe,columnBefore:pe,reorderColumn:oe}),ve!==we&&_e&&_e(we))}),I(O(X),"_onScroll",function(K,J){var ne=X.props,le=ne.maxScrollX,se=ne.maxScrollY,ue=ne.onHorizontalScroll,fe=ne.onVerticalScroll,pe=ne.scrollActions,oe=ne.scrollFlags,ve=ne.scrollX,de=ne.scrollY,_e=oe.overflowX,we=oe.overflowY,Ee=ve,Ce=de;if(Math.abs(J)>Math.abs(K)&&we!=="hidden")Ce+=J,Ce=Ce<0?0:Ce,Ce=Ce>se?se:Ce,(!fe||fe(Ce))&&pe.scrollToY(Ce);else if(K&&_e!=="hidden"){Ee+=K,Ee=Ee<0?0:Ee,Ee=Ee>le?le:Ee;var ct=Math.round(Ee);(!ue||ue(ct))&&pe.scrollToX(ct)}}),I(O(X),"_scrollTo",function(K,J){X._scrollToX(K),X._scrollToY(J)}),I(O(X),"_scrollToX",function(K){var J=X.props,ne=J.onHorizontalScroll,le=J.scrollActions,se=J.scrollX;if(K!==se){var ue=Math.round(K);(!ne||ne(ue))&&le.scrollToX(ue)}}),I(O(X),"_scrollToY",function(K){var J=X.props,ne=J.onVerticalScroll,le=J.scrollActions,se=J.scrollY;K!==se&&(!ne||ne(K))&&le.scrollToY(K)}),I(O(X),"_didScroll",function(K){var J=X.props,ne=J.onScrollStart,le=J.scrollX,se=J.scrollY,ue=J.onHorizontalScroll,fe=J.onVerticalScroll,pe=J.tableSize.ownerHeight,oe=J.scrolling,ve=K.endRowIndex,de=K.firstRowIndex,_e=K.scrollX,we=K.scrollY,Ee=K.tableSize.ownerHeight,Ce=K.scrolling,ct=pe!==Ee&&!((0,a.default)(pe)&&(0,a.default)(Ee)),Ve=le!==_e,tt=se!==we;!ct&&!Ve&&!tt||(!Ce&&oe&&ne&&ne(_e,we,de,ve),Ve&&ue&&ue(le),tt&&fe&&fe(se),X._didScrollStop())}),I(O(X),"_didScrollStopSync",function(){var K=X.props,J=K.endRowIndex,ne=K.firstRowIndex,le=K.onScrollEnd,se=K.scrollActions,ue=K.scrollX,fe=K.scrollY,pe=K.scrolling;pe&&(se.stopScroll(),le&&le(ue,fe,ne,J))}),X._didScrollStop=(0,l.default)(X._didScrollStopSync,200,O(X)),X._onKeyDown=X._onKeyDown.bind(O(X)),X._setupHandlers(),X}return R(H,[{key:"componentWillUnmount",value:function(){this._cleanupHandlers(),this._didScrollStop.reset(),this._didScrollStopSync()}},{key:"_setupHandlers",value:function(){this._wheelHandler||(this._wheelHandler=new f.default(this._onScroll,this._shouldHandleWheelX,this._shouldHandleWheelY,this.props.isRTL,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._touchHandler||(this._touchHandler=new E.default(this._onScroll,this._shouldHandleTouchX,this._shouldHandleTouchY,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._divRef&&this._divRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this.props.touchScrollEnabled&&this._divRef&&this._divRef.addEventListener("touchmove",this._touchHandler.onTouchMove,{passive:!1})}},{key:"_cleanupHandlers",value:function(){this._wheelHandler&&(this._divRef&&this._divRef.removeEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._wheelHandler=null),this._touchHandler&&(this._divRef&&this._divRef.removeEventListener("touchmove",this._touchHandler.onTouchMove,{passive:!1}),this._touchHandler=null)}},{key:"_onKeyDown",value:function(X){var K=(0,b.default)(this.props),J=K.scrollbarYHeight;if(this.props.keyboardPageEnabled)switch(X.key){case"PageDown":this._onScroll(0,J),X.preventDefault();break;case"PageUp":this._onScroll(0,J*-1),X.preventDefault();break}if(this.props.keyboardScrollEnabled)switch(X.key){case"ArrowDown":this._onScroll(0,B),X.preventDefault();break;case"ArrowUp":this._onScroll(0,B*-1),X.preventDefault();break;case"ArrowRight":this._onScroll(B,0),X.preventDefault();break;case"ArrowLeft":this._onScroll(B*-1,0),X.preventDefault();break}}},{key:"shouldComponentUpdate",value:function(X){return!(0,c.default)(this.props,X)}},{key:"componentDidMount",value:function(){this._setupHandlers(),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"componentDidUpdate",value:function(X){this._didScroll(X),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"_reportScrollBarsUpdates",value:function(){var X=(0,b.default)(this.props),K=X.bodyOffsetTop,J=X.scrollbarXOffsetTop,ne=X.visibleRowsHeight,le=this.props,se=le.tableSize.width,ue=le.scrollContentHeight,fe=le.scrollY,pe=le.scrollX,oe={viewportHeight:ne,contentHeight:ue,scrollbarYOffsetTop:K,scrollY:fe,viewportWidth:se,contentWidth:se+this.props.maxScrollX,scrollbarXOffsetTop:J,scrollX:pe,scrollTo:this._scrollTo,scrollToX:this._scrollToX,scrollToY:this._scrollToY};(0,c.default)(this.previousScrollState,oe)||(this.props.onScrollBarsUpdate(oe),this.previousScrollState=oe)}},{key:"render",value:function(){var X=(0,p.default)(this.props),K=X.ariaGroupHeaderIndex,J=X.ariaHeaderIndex,ne=X.ariaFooterIndex,le=X.ariaRowCount,se=X.ariaRowIndexOffset,ue=(0,m.default)(this.props),fe=ue.fixedColumnGroups,pe=ue.fixedColumns,oe=ue.fixedRightColumnGroups,ve=ue.fixedRightColumns,de=ue.scrollableColumnGroups,_e=ue.scrollableColumns,we=(0,b.default)(this.props),Ee=we.bodyHeight,Ce=we.bodyOffsetTop,ct=we.componentHeight,Ve=we.footOffsetTop,tt=we.scrollbarXOffsetTop,dt=we.visibleRowsHeight,Ie=this.props,Ue=Ie.className,Et=Ie.columnReorderingData,ft=Ie.columnResizingData,Mt=Ie.elementHeights,dr=Ie.isColumnReordering,Te=Ie.isColumnResizing,gt=Ie.gridAttributesGetter,xr=Ie.maxScrollY,Yt=Ie.onColumnReorderEndCallback,Cr=Ie.onColumnResizeEndCallback,Qr=Ie.scrollContentHeight,fr=Ie.scrollX,jr=Ie.scrollY,Bt=Ie.scrolling,En=Ie.tableSize,Br=Ie.touchScrollEnabled,Jr=Ie.scrollbarYWidth,Mn=En.ownerHeight,hr=En.width,Sn=Mt.cellGroupWrapperHeight,Pn=Mt.footerHeight,en=Mt.groupHeaderHeight,Zn=Mt.headerHeight,Kn=(0,h.default)(this.props),ji=Kn.scrollEnabledX,Xt=Kn.scrollEnabledY,Qn=Yt?this._onColumnReorder:null,Hr=gt&>(),tn;en>0&&(tn=r.default.createElement(M.default,{key:"group_header",ariaRowIndex:K,isHeaderOrFooter:!0,isScrolling:Bt,className:(0,u.default)((0,o.default)("fixedDataTableLayout/header"),(0,o.default)("public/fixedDataTable/header")),width:hr,height:en,cellGroupWrapperHeight:Sn,index:0,zIndex:1,offsetTop:0,scrollLeft:fr,fixedColumns:fe,fixedRightColumns:oe,scrollableColumns:de,visible:!0,onColumnResize:this._onColumnResize,onColumnReorder:Qn,onColumnReorderMove:this._onColumnReorderMove,showScrollbarY:Xt,scrollbarYWidth:Jr,isRTL:this.props.isRTL}));var _t;Xt&&(_t=this.props.scrollbarY);var vt;ji&&(vt=this.props.scrollbarX);var ge=r.default.createElement(_.default,{height:ct,initialWidth:ft.width||0,minWidth:ft.minWidth||0,maxWidth:ft.maxWidth||Number.MAX_VALUE,visible:!!Te,leftOffset:ft.left||0,knobHeight:Zn,initialEvent:ft.initialEvent,onColumnResizeEnd:Cr,columnKey:ft.key,touchEnabled:Br,isRTL:this.props.isRTL}),pr=null;Pn&&(pr=r.default.createElement(M.default,{key:"footer",ariaRowIndex:ne,isHeaderOrFooter:!0,isScrolling:Bt,className:(0,u.default)((0,o.default)("fixedDataTableLayout/footer"),(0,o.default)("public/fixedDataTable/footer")),width:hr,height:Pn,index:-1,zIndex:1,offsetTop:Ve,visible:!0,fixedColumns:pe.footer,fixedRightColumns:ve.footer,scrollableColumns:_e.footer,scrollLeft:fr,showScrollbarY:Xt,scrollbarYWidth:Jr,isRTL:this.props.isRTL}));var rn=this._renderRows(Ce,pe.cell,ve.cell,_e.cell,Ee,se),Rn=r.default.createElement(M.default,{key:"header",ariaRowIndex:J,isHeaderOrFooter:!0,isScrolling:Bt,className:(0,u.default)((0,o.default)("fixedDataTableLayout/header"),(0,o.default)("public/fixedDataTable/header")),width:hr,height:Zn,cellGroupWrapperHeight:Sn,index:-1,zIndex:1,offsetTop:en,scrollLeft:fr,visible:!0,fixedColumns:pe.header,fixedRightColumns:ve.header,scrollableColumns:_e.header,touchEnabled:Br,onColumnResize:this._onColumnResize,onColumnReorder:Qn,onColumnReorderMove:this._onColumnReorderMove,onColumnReorderEnd:this._onColumnReorderEnd,isColumnReordering:!!dr,columnReorderingData:Et,showScrollbarY:Xt,scrollbarYWidth:Jr,isRTL:this.props.isRTL}),nn;jr&&(nn=r.default.createElement("div",{className:(0,u.default)((0,o.default)("fixedDataTableLayout/topShadow"),(0,o.default)("public/fixedDataTable/topShadow")),style:{top:Ce}}));var an=Mn&&Mn<ct&&Qr>dt,on;(an||jr<xr)&&(on=r.default.createElement("div",{className:(0,u.default)((0,o.default)("fixedDataTableLayout/bottomShadow"),(0,o.default)("public/fixedDataTable/bottomShadow")),style:{top:Ve}}));var mr=null;(this.props.keyboardPageEnabled||this.props.keyboardScrollEnabled)&&(mr=0);var sn=Ue;return this.props.isRTL&&(sn=(0,u.default)(sn,"fixedDataTable_isRTL")),r.default.createElement("div",T({className:(0,u.default)(sn,(0,o.default)("fixedDataTableLayout/main"),(0,o.default)("public/fixedDataTable/main")),role:"grid","aria-rowcount":le},Hr,{tabIndex:mr,onKeyDown:this._onKeyDown,onTouchStart:Br?this._touchHandler.onTouchStart:null,onTouchEnd:Br?this._touchHandler.onTouchEnd:null,onTouchCancel:Br?this._touchHandler.onTouchCancel:null,ref:this._onRef,style:{height:ct,width:hr}}),r.default.createElement("div",{className:(0,o.default)("fixedDataTableLayout/rowsContainer"),style:{height:tt,width:hr}},ge,tn,Rn,rn,pr,nn,on),_t,vt)}}]),H}(r.default.Component);I(U,"propTypes",{width:n.default.number.isRequired,height:n.default.number,className:n.default.string,maxHeight:n.default.number,ownerHeight:n.default.number,overflowX:n.default.oneOf(["hidden","auto"]),overflowY:n.default.oneOf(["hidden","auto"]),touchScrollEnabled:n.default.bool,keyboardScrollEnabled:n.default.bool,keyboardPageEnabled:n.default.bool,scrollbarX:n.default.node,scrollbarXHeight:n.default.number,scrollbarY:n.default.node,scrollbarYWidth:n.default.number,onScrollBarsUpdate:n.default.func,defaultScrollbars:n.default.bool,showScrollbarX:n.default.bool,showScrollbarY:n.default.bool,onHorizontalScroll:n.default.func,onVerticalScroll:n.default.func,rowsCount:n.default.number.isRequired,rowHeight:n.default.number.isRequired,rowHeightGetter:n.default.func,subRowHeight:n.default.number,subRowHeightGetter:n.default.func,rowExpanded:n.default.oneOfType([n.default.element,n.default.func]),rowClassNameGetter:n.default.func,rowKeyGetter:n.default.func,groupHeaderHeight:n.default.number,headerHeight:n.default.number.isRequired,cellGroupWrapperHeight:n.default.number,footerHeight:n.default.number,scrollLeft:n.default.number,scrollToColumn:n.default.number,scrollTop:n.default.number,scrollToRow:n.default.number,onScrollStart:n.default.func,onScrollEnd:n.default.func,stopReactWheelPropagation:n.default.bool,stopScrollDefaultHandling:n.default.bool,stopScrollPropagation:n.default.bool,onContentHeightChange:n.default.func,onRowClick:n.default.func,onRowContextMenu:n.default.func,onRowDoubleClick:n.default.func,onRowMouseDown:n.default.func,onRowMouseUp:n.default.func,onRowMouseEnter:n.default.func,onRowMouseLeave:n.default.func,onRowTouchStart:n.default.func,onRowTouchEnd:n.default.func,onRowTouchMove:n.default.func,onColumnResizeEndCallback:n.default.func,onColumnReorderEndCallback:n.default.func,isColumnResizing:n.default.bool,isColumnReordering:n.default.bool,isRTL:n.default.bool,bufferRowCount:n.default.number,elementHeights:n.default.shape({cellGroupWrapperHeight:n.default.number,footerHeight:n.default.number,groupHeaderHeight:n.default.number,headerHeight:n.default.number}),gridAttributesGetter:n.default.func,rowAttributesGetter:n.default.func}),I(U,"defaultProps",{elementHeights:{cellGroupWrapperHeight:void 0,footerHeight:0,groupHeaderHeight:0,headerHeight:0},keyboardScrollEnabled:!1,keyboardPageEnabled:!1,touchScrollEnabled:!1,stopScrollPropagation:!1});var q=U;e.default=q})(Wg);var hy={},py={},my={},vy={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}function r(u,c){for(var f=0;f<c.length;f++){var p=c[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}function n(u,c,f){return c&&r(u.prototype,c),u}function a(u,c){return u<c}var o=function(){function u(c,f){t(this,u),this._items=c||[],this._size=this._items.length,this._comparator=f||a,this._heapify()}return n(u,[{key:"empty",value:function(){return this._size===0}},{key:"pop",value:function(){if(this._size!==0){var f=this._items[0],p=this._items.pop();return this._size--,this._size>0&&(this._items[0]=p,this._sinkDown(0)),f}}},{key:"push",value:function(f){this._items[this._size++]=f,this._bubbleUp(this._size-1)}},{key:"size",value:function(){return this._size}},{key:"peek",value:function(){if(this._size!==0)return this._items[0]}},{key:"_heapify",value:function(){for(var f=Math.floor((this._size+1)/2);f>=0;f--)this._sinkDown(f)}},{key:"_bubbleUp",value:function(f){for(var p=this._items[f];f>0;){var m=Math.floor((f+1)/2)-1,h=this._items[m];if(this._comparator(h,p))return;this._items[m]=p,this._items[f]=h,f=m}}},{key:"_sinkDown",value:function(f){for(var p=this._items[f];;){var m=2*(f+1)-1,h=2*(f+1),b=-1;if(m<this._size){var _=this._items[m];this._comparator(_,p)&&(b=m)}if(h<this._size){var g=this._items[h];this._comparator(g,p)&&(b===-1||this._comparator(g,this._items[b]))&&(b=h)}if(b===-1)return;this._items[f]=this._items[b],this._items[b]=p,f=b}}}]),u}(),l=o;e.default=l})(vy);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(vy),r=n(zi);function n(f){return f&&f.__esModule?f:{default:f}}function a(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function o(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}function l(f,p,m){return p&&o(f.prototype,p),f}var u=function(){function f(){a(this,f),this._valueToPositionMap={},this._size=0,this._smallValues=new t.default([],this._smallerComparator),this._largeValues=new t.default([],this._greaterComparator),this.getNewPositionForValue=this.getNewPositionForValue.bind(this),this.getValuePosition=this.getValuePosition.bind(this),this.getSize=this.getSize.bind(this),this.replaceFurthestValuePosition=this.replaceFurthestValuePosition.bind(this)}return l(f,[{key:"getSize",value:function(){return this._size}},{key:"getValuePosition",value:function(m){return this._valueToPositionMap[m]===void 0?null:this._valueToPositionMap[m]}},{key:"getNewPositionForValue",value:function(m){(0,r.default)(this._valueToPositionMap[m]===void 0,"Shouldn't try to find new position for value already stored in BufferSet");var h=this._size;return this._size++,this._pushToHeaps(h,m),this._valueToPositionMap[m]=h,h}},{key:"replaceFurthestValuePosition",value:function(m,h,b){if((0,r.default)(this._valueToPositionMap[b]===void 0,"Shouldn't try to replace values with value already stored value in BufferSet"),this._cleanHeaps(),this._smallValues.empty()||this._largeValues.empty())return null;var _=this._smallValues.peek().value,g=this._largeValues.peek().value;if(_>=m&&g<=h)return null;var C;m-_>g-h?(C=_,this._smallValues.pop()):(C=g,this._largeValues.pop());var M=this._valueToPositionMap[C];return delete this._valueToPositionMap[C],this._valueToPositionMap[b]=M,this._pushToHeaps(M,b),M}},{key:"_pushToHeaps",value:function(m,h){var b={position:m,value:h};this._smallValues.push(b),this._largeValues.push(b)}},{key:"_cleanHeaps",value:function(){this._cleanHeap(this._smallValues),this._cleanHeap(this._largeValues);var m=Math.min(this._smallValues.size(),this._largeValues.size()),h=Math.max(this._smallValues.size(),this._largeValues.size());h>10*m&&this._recreateHeaps()}},{key:"_recreateHeaps",value:function(){for(var m=this._smallValues.size()<this._largeValues.size()?this._smallValues:this._largeValues,h=new t.default([],this._smallerComparator),b=new t.default([],this._greaterComparator);!m.empty();){var _=m.pop();this._valueToPositionMap[_.value]!==void 0&&(h.push(_),b.push(_))}this._smallValues=h,this._largeValues=b}},{key:"_cleanHeap",value:function(m){for(;!m.empty()&&this._valueToPositionMap[m.peek().value]===void 0;)m.pop()}},{key:"_smallerComparator",value:function(m,h){return m.value<h.value}},{key:"_greaterComparator",value:function(m,h){return m.value>h.value}}]),f}(),c=u;e.default=c})(my);var gy={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(zi),r=n($i);function n(h){return h&&h.__esModule?h:{default:h}}function a(h,b){if(!(h instanceof b))throw new TypeError("Cannot call a class as a function")}function o(h,b){for(var _=0;_<b.length;_++){var g=b[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function l(h,b,_){return b&&o(h.prototype,b),_&&o(h,_),h}var u=function(b){return Math.floor(b/2)},c=r.default.Int32Array||function(h){for(var b=[],_=h-1;_>=0;--_)b[_]=0;return b};function f(h){for(var b=1;b<h;)b*=2;return b}var p=function(){function h(b){a(this,h),this._size=b.length,this._half=f(this._size),this._heap=new c(2*this._half);var _;for(_=0;_<this._size;++_)this._heap[this._half+_]=b[_];for(_=this._half-1;_>0;--_)this._heap[_]=this._heap[2*_]+this._heap[2*_+1]}return l(h,[{key:"set",value:function(_,g){(0,t.default)(0<=_&&_<this._size,"Index out of range %s",_);var C=this._half+_;for(this._heap[C]=g,C=u(C);C!==0;C=u(C))this._heap[C]=this._heap[2*C]+this._heap[2*C+1]}},{key:"get",value:function(_){(0,t.default)(0<=_&&_<this._size,"Index out of range %s",_);var g=this._half+_;return this._heap[g]}},{key:"getSize",value:function(){return this._size}},{key:"sumUntil",value:function(_){if((0,t.default)(0<=_&&_<this._size+1,"Index out of range %s",_),_===0)return 0;for(var g=this._half+_-1,C=this._heap[g];g!==1;g=u(g))g%2===1&&(C+=this._heap[g-1]);return C}},{key:"sumTo",value:function(_){return(0,t.default)(0<=_&&_<this._size,"Index out of range %s",_),this.sumUntil(_+1)}},{key:"sum",value:function(_,g){return(0,t.default)(_<=g,"Begin must precede end"),this.sumUntil(g)-this.sumUntil(_)}},{key:"greatestLowerBound",value:function(_){if(_<0)return-1;var g=1;if(this._heap[g]<=_)return this._size;for(;g<this._half;){var C=this._heap[2*g];_<C?g=2*g:(g=2*g+1,_-=C)}return g-this._half}},{key:"greatestStrictLowerBound",value:function(_){if(_<=0)return-1;var g=1;if(this._heap[g]<_)return this._size;for(;g<this._half;){var C=this._heap[2*g];_<=C?g=2*g:(g=2*g+1,_-=C)}return g-this._half}},{key:"leastUpperBound",value:function(_){return this.greatestStrictLowerBound(_)+1}},{key:"leastStrictUpperBound",value:function(_){return this.greatestLowerBound(_)+1}}],[{key:"uniform",value:function(_,g){for(var C=[],M=_-1;M>=0;--M)C[M]=g;return new h(C)}},{key:"empty",value:function(_){return h.uniform(_,0)}}]),h}(),m=p;e.default=m})(gy);var yy={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l(Q),r=l(vd),n=l(zi),a=l(Kg),o=l(N.pick_1);function l(m){return m&&m.__esModule?m:{default:m}}function u(m){return(0,o.default)(m.props,["align","allowCellsRecycling","cellClassName","columnKey","flexGrow","fixed","fixedRight","maxWidth","minWidth","isReorderable","isResizable","pureRendering","width"])}function c(m,h){m.cell.push(h.props.cell),m.footer.push(h.props.footer),m.header.push(h.props.header)}function f(m){var h=[];t.default.Children.forEach(m,function(M,E){M!=null&&((0,n.default)(M.type.__TableColumnGroup__||M.type.__TableColumn__,"child type should be <FixedDataTableColumn /> or <FixedDataTableColumnGroup />"),h.push(M))});var b={cell:[],footer:[],groupHeader:[],header:[]},_=[],g=h.length&&h[0].type.__TableColumnGroup__;if(g){var C=(0,a.default)(h,u);return(0,r.default)(h,function(M,E){b.groupHeader.push(M.props.header),t.default.Children.forEach(M.props.children,function(x){var T=u(x);T.groupIdx=E,_.push(T),c(b,x)})}),{columnGroupProps:C,columnProps:_,elementTemplates:b,useGroupHeader:!0}}return(0,r.default)(h,function(M){_.push(u(M)),c(b,M)}),{columnGroupProps:[],columnProps:_,elementTemplates:b,useGroupHeader:!1}}var p=f;e.default=p})(yy);var js={},Td={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,n){var a=r.storedHeights,o=r.rowOffsetIntervalTree,l=r.rowSettings,u=l.rowHeightGetter,c=l.subRowHeightGetter,f=u(n)+c(n),p=a[n];return f!==p&&(o.set(n,f),a[n]=f,r.scrollContentHeight+=f-p),a[n]}})(Td);Object.defineProperty(js,"__esModule",{value:!0});js.getScrollAnchor=w$;js.scrollTo=wy;var by=Ed($s),_y=Ed(Wi),_$=Ed(Td);function Ed(e){return e&&e.__esModule?e:{default:e}}function w$(e,t,r){return t.scrollToRow!==void 0&&t.scrollToRow!==null&&(!r||t.scrollToRow!==r.scrollToRow)?x$(e,t.scrollToRow):t.scrollTop!==void 0&&t.scrollTop!==null&&(!r||t.scrollTop!==r.scrollTop)?wy(e,t.scrollTop):{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1}}function wy(e,t){var r=(0,_y.default)(e),n=r.availableHeight,a=e.rowOffsetIntervalTree,o=e.rowSettings,l=e.scrollContentHeight,u=o.rowsCount;if(u===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};var c=0,f=0,p=void 0;if(!(t<=0))if(t>=l-n)c=void 0,p=u-1;else{var m=a.greatestLowerBound(t);c=(0,by.default)(m,0,Math.max(u-1,0));var h=a.sumUntil(c);f=h-t}return{firstIndex:c,firstOffset:f,lastIndex:p,changed:!0}}function x$(e,t){var r=(0,_y.default)(e),n=r.availableHeight,a=e.rowOffsetIntervalTree,o=e.rowSettings,l=e.storedHeights,u=e.scrollY,c=o.rowsCount;if(c===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};t=(0,by.default)(t,0,Math.max(c-1,0)),(0,_$.default)(e,t);var f=a.sumUntil(t),p=f+l[t],m=t,h=void 0;if(!(f<u))if(u+n<p)m=void 0,h=t;else return{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1};return{firstIndex:m,firstOffset:0,lastIndex:h,changed:!0}}var xy={};function C$(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}var T$=C$,E$=T$,Zl=N.toNumber_1;function M$(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=Zl(r),r=r===r?r:0),t!==void 0&&(t=Zl(t),t=t===t?t:0),E$(Zl(e),t,r)}var Cy=M$;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(ry),r=o(Cy),n=o(xn),a=o(gd);function o(g){return g&&g.__esModule?g:{default:g}}function l(){return l=Object.assign||function(g){for(var C=1;C<arguments.length;C++){var M=arguments[C];for(var E in M)Object.prototype.hasOwnProperty.call(M,E)&&(g[E]=M[E])}return g},l.apply(this,arguments)}var u=15,c=100;function f(g,C,M){var E=C.scrollLeft,x=g.columnResizingData,T=g.isColumnResizing,w=g.scrollX;E!==void 0&&(!M||E!==M.scrollLeft)&&(w=E),w=p(g,C,M.scrollToColumn,w);var P=(0,a.default)(g),R=P.maxScrollX;return w=(0,r.default)(w,0,R),T=C.isColumnResizing!==void 0?C.isColumnResizing:T,x=T?x:{},l({},g,{columnResizingData:x,isColumnResizing:T,maxScrollX:R,scrollX:w})}function p(g,C,M,E){var x=C.scrollToColumn;if((0,t.default)(x))return E;var T=(0,a.default)(g),w=T.availableScrollWidth,P=T.fixedColumns,R=T.scrollableColumns,D=P.length,A=R.length,z=A===0,k=x===M,O=x<D,F=x>=D+A;if(k||O||F||z)return E;for(var j=Math.min(x-D,R.length-1),I=0,B=0;B<j;++B)I+=R[B].width;var U=R[j].width,q=I+U-w;return E<q?q:E>I?I:E}function m(g,C){var M=C.cellMinWidth,E=C.cellMaxWidth,x=C.cellWidth,T=C.columnKey,w=C.combinedWidth,P=C.clientX,R=C.clientY,D=C.leftOffset;return l({},g,{isColumnResizing:!0,columnResizingData:{left:D+w-x,width:x,minWidth:M,maxWidth:E,initialEvent:{clientX:P,clientY:R,preventDefault:n.default},key:T}})}function h(g,C){var M=C.columnKey,E=C.left,x=C.scrollStart,T=C.width,w=(0,a.default)(g),P=w.fixedColumns,R=P.some(function(D){return D.columnKey===M});return l({},g,{isColumnReordering:!0,columnReorderingData:{cancelReorder:!1,dragDistance:0,isFixed:R,scrollStart:x,columnKey:M,columnWidth:T,originalLeft:E,columnBefore:void 0,columnAfter:void 0}})}function b(g,C){var M=g.columnReorderingData,E=M.isFixed,x=M.originalLeft,T=M.scrollStart,w=g.maxScrollX,P=g.scrollX;if(!E){var R=x-T+C,D=(0,a.default)(g),A=D.availableScrollWidth;C+=P-T,R>A-c?P=Math.min(P+u,w):R<=c&&(P=Math.max(P-u,0))}var z=l({},g.columnReorderingData,{dragDistance:C,columnBefore:void 0,columnAfter:void 0});return l({},g,{scrollX:P,columnReorderingData:z})}var _={initialize:f,reorderColumn:h,reorderColumnMove:b,resizeColumn:m};e.default=_})(xy);var Ty={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var t=l(Cy),r=l(zs),n=l(Wi),a=l(bd),o=l(Td);function l(h){return h&&h.__esModule?h:{default:h}}function u(){return u=Object.assign||function(h){for(var b=1;b<arguments.length;b++){var _=arguments[b];for(var g in _)Object.prototype.hasOwnProperty.call(_,g)&&(h[g]=_[g])}return h},u.apply(this,arguments)}function c(h,b){var _=u({},h),g=f(_,b),C=_.rowSettings,M=_.scrollContentHeight,E=C.rowsCount,x=(0,a.default)(_),T=x.bodyHeight,w=M-T,P;w===0?(g.firstViewportIdx>0&&(g=f(_,{firstOffset:0,lastIndex:E-1})),P=0):P=g.firstOffset;var R=g.firstViewportIdx,D=g.endViewportIdx;p(_,g,h.scrolling);var A=0;return E>0&&(A=_.rowOffsets[g.firstViewportIdx]-P),A=(0,t.default)(A,0,w),u(_,{firstRowIndex:R,firstRowOffset:P,endRowIndex:D,maxScrollY:w,scrollY:A})}function f(h,b){var _=(0,r.default)(h),g=_.bufferRowCount,C=_.maxAvailableHeight,M=h.rowSettings.rowsCount;if(M===0)return{endBufferIdx:0,endViewportIdx:0,firstBufferIdx:0,firstOffset:0,firstViewportIdx:0};var E=b.firstIndex,x=b.firstOffset,T=b.lastIndex;(E>=M||T>=M)&&(T=M-1);var w=1,P=E,R=x;T!==void 0&&(w=-1,P=T,R=0);for(var D=P,A=D;D<M&&D>=0&&R<C;)R+=(0,o.default)(h,D),A=D,D+=w;var z=!1;if(R<C&&D===M&&T===void 0)for(z=!0,D=E-1;D>=0&&R<C;)R+=(0,o.default)(h,D),P=D,--D;var k=Math.min(P,A),O=Math.max(k-g,0);for(D=O;D<k;D++)(0,o.default)(h,D);var F=Math.max(P,A)+1,j=Math.min(F+g,M);for(D=F;D<j;D++)(0,o.default)(h,D);var I=(0,n.default)(h),B=I.availableHeight;if(T!==void 0||z){x=x+Math.min(B-R,0);var U=h.storedHeights;-1*x>=U[k]&&(k+=1,x+=U[k])}return{endBufferIdx:j,endViewportIdx:F,firstBufferIdx:O,firstOffset:x,firstViewportIdx:k}}function p(h,b,_){var g=h.rowBufferSet,C=h.rowOffsetIntervalTree,M=h.storedHeights,E=b.endBufferIdx,x=b.endViewportIdx,T=b.firstBufferIdx,w=b.firstViewportIdx,P=E-T;if(P===0){h.rowOffsets={},h.rows=[];return}for(var R=_?w:T,D=_?x:E,A=[],z={},k=C.sumUntil(R),O=R;O<D;O++){z[O]=k,k+=M[O];var F=m(O,g,R,D,P);A[F]=O}h.rows=A,h.rowOffsets=z}function m(h,b,_,g,C){var M=b.getValuePosition(h);return M===null&&b.getSize()>=C&&(M=b.replaceFurthestValuePosition(_,g-1,h)),M===null&&(M=b.getNewPositionForValue(h)),M}})(Ty);var Bs={},Ey={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105};e.default=t})(Ey);var ac={"--scrollbar-face-active-color":"#7d7d7d","--scrollbar-face-color":"#c2c2c2","--scrollbar-face-margin":"4px","--scrollbar-face-radius":"6px","--scrollbar-size":"15px","--scrollbar-size-large":"17px","--scrollbar-track-color":"#fff","--border-color":"#d3d3d3","--fbui-white":"#fff","--fbui-desktop-background-light":"#f6f7f8"};function My(e){if(ac.hasOwnProperty(e))return ac[e];throw new Error('cssVar("'+e+'"): Unexpected class transformation.')}My.CSS_VARS=ac;var S$=My;(function(e){function t(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(q){return typeof q}:t=function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},t(B)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=h(Q),n=h(bi),a=h(jt),o=h(cr),l=h(xn),u=h(Ey),c=h(pd),f=h(Ws),p=h(S$),m=h(Za);function h(B){return B&&B.__esModule?B:{default:B}}function b(B,U){if(!(B instanceof U))throw new TypeError("Cannot call a class as a function")}function _(B,U){for(var q=0;q<U.length;q++){var G=U[q];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(B,G.key,G)}}function g(B,U,q){return U&&_(B.prototype,U),B}function C(B,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(U&&U.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),U&&M(B,U)}function M(B,U){return M=Object.setPrototypeOf||function(G,$){return G.__proto__=$,G},M(B,U)}function E(B){var U=w();return function(){var G=P(B),$;if(U){var H=P(this).constructor;$=Reflect.construct(G,arguments,H)}else $=G.apply(this,arguments);return x(this,$)}}function x(B,U){return U&&(t(U)==="object"||typeof U=="function")?U:T(B)}function T(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function w(){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(B){return!1}}function P(B){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(q){return q.__proto__||Object.getPrototypeOf(q)},P(B)}function R(B,U,q){return U in B?Object.defineProperty(B,U,{value:q,enumerable:!0,configurable:!0,writable:!0}):B[U]=q,B}var D={position:0,scrollable:!1},A=parseInt((0,p.default)("--scrollbar-face-margin"),10),z=A*2,k=30,O=40,F=null,j=function(B){C(q,B);var U=E(q);function q(G){var $;return b(this,q),$=U.call(this,G),R(T($),"_onRefFace",function(H){return $._faceRef=H}),R(T($),"_onRefRoot",function(H){return $._rootRef=H}),R(T($),"scrollBy",function(H){$._onWheel(H)}),R(T($),"_shouldHandleX",function(H){return $.props.orientation==="horizontal"?$._shouldHandleChange(H):!1}),R(T($),"_shouldHandleY",function(H){return $.props.orientation!=="horizontal"?$._shouldHandleChange(H):!1}),R(T($),"_shouldHandleChange",function(H){var ee=$._calculateState($.state.position+H,$.props.size,$.props.contentSize,$.props.orientation);return ee.position!==$.state.position}),R(T($),"_calculateState",function(H,ee,X,K){var J=Math.max(1,ee);if(X<=J)return D;var ne="".concat(H,"_").concat(J,"_").concat(X,"_").concat(K);if($._stateKey===ne)return $._stateForKey;var le=K==="horizontal",se=J/X,ue=J*se;ue<k&&(se=(J-k)/(X-J),ue=k);var fe=!0,pe=X-J;H<0?H=0:H>pe&&(H=pe);var oe=$._mouseMoveTracker?$._mouseMoveTracker.isDragging():!1,ve={faceSize:ue,isDragging:oe,isHorizontal:le,position:H,scale:se,scrollable:fe};return $._stateKey=ne,$._stateForKey=ve,ve}),R(T($),"_onWheelY",function(H,ee){$._onWheel(ee)}),R(T($),"_onWheelX",function(H,ee){$._onWheel(H)}),R(T($),"_onWheel",function(H){var ee=$.props;$._setNextState($._calculateState($.state.position+H,ee.size,ee.contentSize,ee.orientation))}),R(T($),"_onMouseDown",function(H){var ee;if(H.target!==$._faceRef){var X=H.nativeEvent,K=$.state.isHorizontal?X.offsetX||X.layerX||$.getTouchX(X):X.offsetY||X.layerY||$.getTouchY(X),J=$.props;K/=$.state.scale,ee=$._calculateState(K-$.state.faceSize*.5/$.state.scale,J.size,J.contentSize,J.orientation)}else ee={};ee.focused=!0,$._setNextState(ee),$._mouseMoveTracker.captureMouseMoves(H),$._rootRef.focus()}),R(T($),"_onTouchCancel",function(H){H.stopPropagation()}),R(T($),"_onTouchEnd",function(H){H.stopPropagation()}),R(T($),"_onTouchMove",function(H){H.stopPropagation()}),R(T($),"_onTouchStart",function(H){H.stopPropagation(),$._onMouseDown(H)}),R(T($),"_onMouseMove",function(H,ee){var X=$.props,K=$.state.isHorizontal?H*($.props.isRTL?-1:1):ee;K/=$.state.scale;var J=n.default.flushSync||function(ne){return ne()};J(function(){return $._setNextState($._calculateState($.state.position+K,X.size,X.contentSize,X.orientation))})}),R(T($),"_onMouseMoveEnd",function(){$._nextState=null,$._mouseMoveTracker.releaseMouseMoves(),$.setState({isDragging:!1})}),R(T($),"_onKeyDown",function(H){var ee=H.keyCode;if(ee!==u.default.TAB){var X=O,K=0;if($.state.isHorizontal)switch(ee){case u.default.HOME:K=-1,X=$.props.contentSize;break;case u.default.LEFT:K=-1;break;case u.default.RIGHT:K=1;break;default:return}if(!$.state.isHorizontal)switch(ee){case u.default.SPACE:H.shiftKey?K=-1:K=1;break;case u.default.HOME:K=-1,X=$.props.contentSize;break;case u.default.UP:K=-1;break;case u.default.DOWN:K=1;break;case u.default.PAGE_UP:K=-1,X=$.props.size;break;case u.default.PAGE_DOWN:K=1,X=$.props.size;break;default:return}H.preventDefault();var J=$.props;$._setNextState($._calculateState($.state.position+X*K,J.size,J.contentSize,J.orientation))}}),R(T($),"_onFocus",function(){$.setState({focused:!0})}),R(T($),"_onBlur",function(){$.setState({focused:!1})}),R(T($),"_blur",function(){var H=n.default.findDOMNode(T($));if(H)try{$._onBlur(),H.blur()}catch(ee){}}),R(T($),"getTouchX",function(H){return Math.round(H.targetTouches[0].clientX-H.target.getBoundingClientRect().x)}),R(T($),"getTouchY",function(H){return Math.round(H.targetTouches[0].clientY-H.target.getBoundingClientRect().y)}),R(T($),"_setNextState",function(H,ee){ee=ee||$.props;var X=ee.position,K=$.state.position!==H.position;if(X===void 0){var J=K?$._didScroll:void 0;$.setState(H,J)}else if(X===H.position)$.setState(H);else{H.position!==void 0&&H.position!==$.state.position&&$.props.onScroll(H.position);return}K&&F!==T($)&&(F&&F._blur(),F=T($))}),R(T($),"_didScroll",function(){$.props.onScroll($.state.position)}),$.state=$._calculateState(G.position||G.defaultPosition||0,G.size,G.contentSize,G.orientation),$._initialRender=!0,$}return g(q,[{key:"componentDidUpdate",value:function(){var $=this.props.position;$===void 0?this._setNextState(this._calculateState(this.state.position,this.props.size,this.props.contentSize,this.props.orientation)):this._setNextState(this._calculateState($,this.props.size,this.props.contentSize,this.props.orientation),this.props)}},{key:"render",value:function(){if(!this.state.scrollable)return null;var $=this.props.size,H,ee,X=this.state.isHorizontal,K=!X,J=this.state.focused||this.state.isDragging,ne=this.state.faceSize,le=this.props.isOpaque,se=this.props.verticalTop||0,ue=(0,o.default)({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":K,"ScrollbarLayout/mainHorizontal":X,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":le,"public/Scrollbar/mainActive":J}),fe=(0,o.default)({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":X,"ScrollbarLayout/faceVertical":K,"public/Scrollbar/faceActive":J,"public/Scrollbar/face":!0}),pe=this.state.position*this.state.scale+A;return X?(H={width:$},ee={width:ne-z,top:0,bottom:0},(0,m.default)(ee,pe,0,this._initialRender,this.props.isRTL)):(H={top:se,height:$},this.props.isRTL&&(H.left=H.right||0,H.right="auto"),ee={height:ne-z},(0,m.default)(ee,0,pe,this._initialRender,this.props.isRTL),ee.left=0,ee.right=0),H.touchAction="none",H.zIndex=this.props.zIndex,this.props.trackColor==="gray"&&(H.backgroundColor=(0,p.default)("--fbui-desktop-background-light")),r.default.createElement("div",{onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onTouchCancel:this._onTouchCancel,onTouchEnd:this._onTouchEnd,onTouchMove:this._onTouchMove,onTouchStart:this._onTouchStart,className:ue,style:H,ref:this._onRefRoot},r.default.createElement("div",{ref:this._onRefFace,className:fe,style:ee}))}},{key:"componentDidMount",value:function(){var $=this.props.orientation==="horizontal",H=$?this._onWheelX:this._onWheelY;this._wheelHandler=new c.default(H,this._shouldHandleX,this._shouldHandleY,this.props.isRTL),this._rootRef&&this._rootRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._mouseMoveTracker=new f.default(this._onMouseMove,this._onMouseMoveEnd,document.documentElement,this.props.touchEnabled),this.props.position!==void 0&&this.state.position!==this.props.position&&this._didScroll(),this._initialRender=!1}},{key:"componentWillUnmount",value:function(){this._rootRef&&this._rootRef.removeEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._nextState=null,this._mouseMoveTracker&&(this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null),F===this&&(F=null)}}]),q}(r.default.PureComponent);R(j,"propTypes",{contentSize:a.default.number.isRequired,defaultPosition:a.default.number,isOpaque:a.default.bool,orientation:a.default.oneOf(["vertical","horizontal"]),onScroll:a.default.func,position:a.default.number,size:a.default.number.isRequired,trackColor:a.default.oneOf(["gray"]),touchEnabled:a.default.bool,zIndex:a.default.number,verticalTop:a.default.number,isRTL:a.default.bool}),R(j,"defaultProps",{defaultPosition:0,isOpaque:!1,onScroll:l.default,orientation:"vertical",zIndex:99}),j.KEYBOARD_SCROLL_AMOUNT=O,j.SIZE=parseInt((0,p.default)("--scrollbar-size"),10),j.OFFSET=1;var I=j;e.default=I})(Bs);(function(e){function t(w){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(R){return typeof R}:t=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},t(w)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=_(N.pick_1),n=_(my),a=_(gy),o=_(Xa),l=_(yy),u=b(Ge),c=js,f=_(xy),p=_(Ty),m=_(Bs);function h(w){if(typeof WeakMap!="function")return null;var P=new WeakMap,R=new WeakMap;return(h=function(A){return A?R:P})(w)}function b(w,P){if(w&&w.__esModule)return w;if(w===null||t(w)!=="object"&&typeof w!="function")return{default:w};var R=h(P);if(R&&R.has(w))return R.get(w);var D={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in w)if(z!=="default"&&Object.prototype.hasOwnProperty.call(w,z)){var k=A?Object.getOwnPropertyDescriptor(w,z):null;k&&(k.get||k.set)?Object.defineProperty(D,z,k):D[z]=w[z]}return D.default=w,R&&R.set(w,D),D}function _(w){return w&&w.__esModule?w:{default:w}}function g(){return g=Object.assign||function(w){for(var P=1;P<arguments.length;P++){var R=arguments[P];for(var D in R)Object.prototype.hasOwnProperty.call(R,D)&&(w[D]=R[D])}return w},g.apply(this,arguments)}function C(){return{columnProps:[],columnGroupProps:[],elementTemplates:{cell:[],footer:[],groupHeader:[],header:[]},elementHeights:{footerHeight:0,groupHeaderHeight:0,headerHeight:0},propsRevision:null,rowSettings:{bufferRowCount:void 0,rowAttributesGetter:void 0,rowHeight:0,rowHeightGetter:function(){return 0},rowsCount:0,subRowHeight:0,subRowHeightGetter:function(){return 0}},scrollFlags:{overflowX:"auto",overflowY:"auto",showScrollbarX:!0,showScrollbarY:!0},tableSize:{height:void 0,maxHeight:0,ownerHeight:void 0,useMaxHeight:!1,width:0},columnReorderingData:{},columnResizingData:{},firstRowIndex:0,firstRowOffset:0,isColumnReordering:!1,isColumnResizing:!1,maxScrollX:0,maxScrollY:0,rowOffsets:{},rows:[],scrollContentHeight:0,scrollX:0,scrollbarXHeight:m.default.SIZE,scrollY:0,scrollbarYWidth:m.default.SIZE,scrolling:!1,rowBufferSet:new n.default,storedHeights:[],rowOffsetIntervalTree:null}}function M(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C(),P=arguments.length>1?arguments[1]:void 0;switch(P.type){case u.INITIALIZE:{var R=P.props,D=x(w,R);D=E(D);var A=(0,c.getScrollAnchor)(D,R);return D=(0,p.default)(D,A),f.default.initialize(D,R,{})}case u.PROP_CHANGE:{var z=P.newProps,k=P.oldProps,O=x(w,z);(k.rowsCount!==z.rowsCount||k.rowHeight!==z.rowHeight||k.subRowHeight!==z.subRowHeight)&&(O=E(O)),k.rowsCount!==z.rowsCount&&(O.rowBufferSet=new n.default);var F=(0,c.getScrollAnchor)(O,z,k);return(!(0,o.default)(w,O)||F.changed)&&(O=(0,p.default)(O,F)),O=f.default.initialize(O,z,k),(O.scrollX!==w.scrollX||O.scrollY!==w.scrollY)&&(O.scrolling=O.scrolling||!0),O}case u.SCROLL_END:{var j=g({},w,{scrolling:!1}),I={firstIndex:w.firstRowIndex,firstOffset:w.firstRowOffset,lastIndex:w.lastIndex};return(0,p.default)(j,I)}case u.SCROLL_TO_Y:{var B=P.scrollY,U=g({},w,{scrolling:!0}),q=(0,c.scrollTo)(U,B);return(0,p.default)(U,q)}case u.COLUMN_RESIZE:{var G=P.resizeData;return f.default.resizeColumn(w,G)}case u.COLUMN_REORDER_START:{var $=P.reorderData;return f.default.reorderColumn(w,$)}case u.COLUMN_REORDER_END:return g({},w,{isColumnReordering:!1,columnReorderingData:{}});case u.COLUMN_REORDER_MOVE:{var H=P.deltaX;return f.default.reorderColumnMove(w,H)}case u.SCROLL_TO_X:{var ee=P.scrollX;return g({},w,{scrolling:!0,scrollX:ee})}default:return w}}function E(w){for(var P=w.rowSettings,R=P.rowHeight,D=P.rowsCount,A=P.subRowHeight,z=R+A,k=a.default.uniform(D,z),O=D*z,F=new Array(D),j=0;j<D;j++)F[j]=z;return g({},w,{rowOffsetIntervalTree:k,scrollContentHeight:O,storedHeights:F})}function x(w,P){var R=(0,l.default)(P.children),D=R.columnGroupProps,A=R.columnProps,z=R.elementTemplates,k=R.useGroupHeader,O=g({},w,{columnGroupProps:D,columnProps:A,elementTemplates:z,propsRevision:w.propsRevision+1});O.elementHeights=g({},O.elementHeights,(0,r.default)(P,["cellGroupWrapperHeight","footerHeight","groupHeaderHeight","headerHeight"])),k||(O.elementHeights.groupHeaderHeight=0),O.rowSettings=g({},O.rowSettings,(0,r.default)(P,["bufferRowCount","rowHeight","rowsCount","subRowHeight"]));var F=O.rowSettings,j=F.rowHeight,I=F.subRowHeight;return O.rowSettings.rowHeightGetter=P.rowHeightGetter||function(){return j},O.rowSettings.subRowHeightGetter=P.subRowHeightGetter||function(){return I||0},O.rowSettings.rowAttributesGetter=P.rowAttributesGetter,O.scrollFlags=g({},O.scrollFlags,(0,r.default)(P,["overflowX","overflowY","showScrollbarX","showScrollbarY"])),O.tableSize=g({},O.tableSize,(0,r.default)(P,["height","maxHeight","ownerHeight","width"])),O.tableSize.useMaxHeight=O.tableSize.height===void 0,O.scrollbarXHeight=P.scrollbarXHeight,O.scrollbarYWidth=P.scrollbarYWidth,O}var T=M;e.default=T})(py);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=$g,r=n(py);function n(o){return o&&o.__esModule?o:{default:o}}var a={get:function(){return(0,t.createStore)(r.default)}};e.default=a})(hy);var Sy={};(function(e){function t(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(z){return typeof z}:t=function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},t(D)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(Q),n=c(jt),a=c(N.isEmpty_1),o=c(cr),l=c(wn),u=c(Bs);function c(D){return D&&D.__esModule?D:{default:D}}function f(){return f=Object.assign||function(D){for(var A=1;A<arguments.length;A++){var z=arguments[A];for(var k in z)Object.prototype.hasOwnProperty.call(z,k)&&(D[k]=z[k])}return D},f.apply(this,arguments)}function p(D,A){if(!(D instanceof A))throw new TypeError("Cannot call a class as a function")}function m(D,A){for(var z=0;z<A.length;z++){var k=A[z];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(D,k.key,k)}}function h(D,A,z){return A&&m(D.prototype,A),D}function b(D,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(A&&A.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),A&&_(D,A)}function _(D,A){return _=Object.setPrototypeOf||function(k,O){return k.__proto__=O,k},_(D,A)}function g(D){var A=E();return function(){var k=x(D),O;if(A){var F=x(this).constructor;O=Reflect.construct(k,arguments,F)}else O=k.apply(this,arguments);return C(this,O)}}function C(D,A){return A&&(t(A)==="object"||typeof A=="function")?A:M(D)}function M(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function E(){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(D){return!1}}function x(D){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(z){return z.__proto__||Object.getPrototypeOf(z)},x(D)}function T(D,A,z){return A in D?Object.defineProperty(D,A,{value:z,enumerable:!0,configurable:!0,writable:!0}):D[A]=z,D}var w=function(D){b(z,D);var A=g(z);function z(){var k;p(this,z);for(var O=arguments.length,F=new Array(O),j=0;j<O;j++)F[j]=arguments[j];return k=A.call.apply(A,[this].concat(F)),T(M(k),"state",{}),T(M(k),"_onScrollBarsUpdate",function(I){k.setState(I)}),T(M(k),"_onVerticalScroll",function(I){k.state.scrollToY!==void 0&&k.state.scrollToY(I)}),T(M(k),"_onHorizontalScroll",function(I){k.state.scrollToX!==void 0&&k.state.scrollToX(I)}),k}return h(z,[{key:"render",value:function(){var O=!(0,a.default)(this.state)&&r.default.createElement(u.default,{size:this.state.viewportHeight,contentSize:this.state.contentHeight,onScroll:this._onVerticalScroll,verticalTop:this.state.scrollbarYOffsetTop,position:this.state.scrollY,touchEnabled:this.props.touchScrollEnabled,isRTL:this.props.isRTL}),F=!(0,a.default)(this.state)&&r.default.createElement(P,{contentSize:this.state.contentWidth,offset:this.state.scrollbarXOffsetTop,onScroll:this._onHorizontalScroll,position:this.state.scrollX,size:this.state.viewportWidth,touchEnabled:this.props.touchScrollEnabled,isRTL:this.props.isRTL});return r.default.cloneElement(this.props.children,{onScrollBarsUpdate:this._onScrollBarsUpdate,scrollbarX:F,scrollbarY:O})}}]),z}(r.default.Component),P=function(D){b(z,D);var A=g(z);function z(){return p(this,z),A.apply(this,arguments)}return h(z,[{key:"render",value:function(){var O=this.props,F=O.offset,j=O.size,I={height:u.default.SIZE,width:j},B={height:u.default.SIZE,overflow:"hidden",width:j,top:F};return r.default.createElement("div",{className:(0,l.default)((0,o.default)("public/fixedDataTable/horizontalScrollbar")),style:I},r.default.createElement("div",{style:B},r.default.createElement(u.default,f({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}}]),z}(r.default.PureComponent);T(P,"propTypes",{contentSize:n.default.number.isRequired,offset:n.default.number.isRequired,onScroll:n.default.func.isRequired,position:n.default.number.isRequired,size:n.default.number.isRequired,isRTL:n.default.bool});var R=w;e.default=R})(Sy);(function(e){function t(I){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(U){return typeof U}:t=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},t(I)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=C(Q),n=$g,a=C(zi),o=C(N.pick_1),l=g(Ge),u=g(kr),c=g(Nr),f=C(Wg),p=C(hy),m=C(Bs),h=C(Sy),b=uy;function _(I){if(typeof WeakMap!="function")return null;var B=new WeakMap,U=new WeakMap;return(_=function(G){return G?U:B})(I)}function g(I,B){if(I&&I.__esModule)return I;if(I===null||t(I)!=="object"&&typeof I!="function")return{default:I};var U=_(B);if(U&&U.has(I))return U.get(I);var q={},G=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in I)if($!=="default"&&Object.prototype.hasOwnProperty.call(I,$)){var H=G?Object.getOwnPropertyDescriptor(I,$):null;H&&(H.get||H.set)?Object.defineProperty(q,$,H):q[$]=I[$]}return q.default=I,U&&U.set(I,q),q}function C(I){return I&&I.__esModule?I:{default:I}}function M(){return M=Object.assign||function(I){for(var B=1;B<arguments.length;B++){var U=arguments[B];for(var q in U)Object.prototype.hasOwnProperty.call(U,q)&&(I[q]=U[q])}return I},M.apply(this,arguments)}function E(I,B){if(!(I instanceof B))throw new TypeError("Cannot call a class as a function")}function x(I,B){for(var U=0;U<B.length;U++){var q=B[U];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(I,q.key,q)}}function T(I,B,U){return B&&x(I.prototype,B),U&&x(I,U),I}function w(I,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(B&&B.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),B&&P(I,B)}function P(I,B){return P=Object.setPrototypeOf||function(q,G){return q.__proto__=G,q},P(I,B)}function R(I){var B=z();return function(){var q=k(I),G;if(B){var $=k(this).constructor;G=Reflect.construct(q,arguments,$)}else G=q.apply(this,arguments);return D(this,G)}}function D(I,B){return B&&(t(B)==="object"||typeof B=="function")?B:A(I)}function A(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function z(){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(I){return!1}}function k(I){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},k(I)}function O(I,B,U){return B in I?Object.defineProperty(I,B,{value:U,enumerable:!0,configurable:!0,writable:!0}):I[B]=U,I}var F=function(I){w(U,I);var B=R(U);function U(q){var G;return E(this,U),G=B.call(this,q),G.reduxStore=p.default.get(),G.scrollActions=(0,n.bindActionCreators)(c,G.reduxStore.dispatch),G.columnActions=(0,n.bindActionCreators)(u,G.reduxStore.dispatch),G.reduxStore.dispatch({type:l.INITIALIZE,props:q}),G.unsubscribe=G.reduxStore.subscribe(G.onStoreUpdate.bind(A(G))),G.state={boundState:U.getBoundState(G.reduxStore),reduxStore:G.reduxStore,props:q},G}return T(U,[{key:"componentWillUnmount",value:function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null),this.reduxStore=null}},{key:"render",value:function(){var G=r.default.createElement(f.default,M({},this.props,this.state.boundState,{scrollActions:this.scrollActions,columnActions:this.columnActions}));return this.props.defaultScrollbars?r.default.createElement(h.default,this.props,G):G}},{key:"onStoreUpdate",value:function(){var G=U.getBoundState(this.reduxStore);this.state.boundState.propsRevision===G.propsRevision&&this.setState({boundState:G})}}],[{key:"getDerivedStateFromProps",value:function(G,$){return(0,a.default)(G.height!==void 0||G.maxHeight!==void 0,"You must set either a height or a maxHeight"),G===$.props?null:($.reduxStore.dispatch({type:l.PROP_CHANGE,newProps:G,oldProps:$.props}),{boundState:U.getBoundState($.reduxStore),props:G})}},{key:"getBoundState",value:function(G){var $=G.getState(),H=(0,o.default)($,["columnGroupProps","columnProps","columnReorderingData","columnResizingData","elementHeights","elementTemplates","firstRowIndex","endRowIndex","isColumnReordering","isColumnResizing","maxScrollX","maxScrollY","propsRevision","rows","rowOffsets","rowSettings","scrollContentHeight","scrollFlags","scrollX","scrollY","scrolling","scrollJumpedX","scrollJumpedY","tableSize"]);return H}}]),U}(r.default.Component);O(F,"defaultProps",{defaultScrollbars:!0,scrollbarXHeight:m.default.SIZE,scrollbarYWidth:m.default.SIZE});var j=(0,b.polyfill)(F);e.default=j})(Ag);var Py={};(function(e){function t(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(k){return typeof k}:t=function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},t(A)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(Q),n=l(jt),a=l(cr),o=l(wn);function l(A){return A&&A.__esModule?A:{default:A}}function u(){return u=Object.assign||function(A){for(var z=1;z<arguments.length;z++){var k=arguments[z];for(var O in k)Object.prototype.hasOwnProperty.call(k,O)&&(A[O]=k[O])}return A},u.apply(this,arguments)}function c(A,z){var k=Object.keys(A);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(A);z&&(O=O.filter(function(F){return Object.getOwnPropertyDescriptor(A,F).enumerable})),k.push.apply(k,O)}return k}function f(A){for(var z=1;z<arguments.length;z++){var k=arguments[z]!=null?arguments[z]:{};z%2?c(Object(k),!0).forEach(function(O){P(A,O,k[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(k)):c(Object(k)).forEach(function(O){Object.defineProperty(A,O,Object.getOwnPropertyDescriptor(k,O))})}return A}function p(A,z){if(A==null)return{};var k=m(A,z),O,F;if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(A);for(F=0;F<j.length;F++)O=j[F],!(z.indexOf(O)>=0)&&Object.prototype.propertyIsEnumerable.call(A,O)&&(k[O]=A[O])}return k}function m(A,z){if(A==null)return{};var k={},O=Object.keys(A),F,j;for(j=0;j<O.length;j++)F=O[j],!(z.indexOf(F)>=0)&&(k[F]=A[F]);return k}function h(A,z){if(!(A instanceof z))throw new TypeError("Cannot call a class as a function")}function b(A,z){for(var k=0;k<z.length;k++){var O=z[k];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}function _(A,z,k){return z&&b(A.prototype,z),A}function g(A,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(z&&z.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),z&&C(A,z)}function C(A,z){return C=Object.setPrototypeOf||function(O,F){return O.__proto__=F,O},C(A,z)}function M(A){var z=T();return function(){var O=w(A),F;if(z){var j=w(this).constructor;F=Reflect.construct(O,arguments,j)}else F=O.apply(this,arguments);return E(this,F)}}function E(A,z){return z&&(t(z)==="object"||typeof z=="function")?z:x(A)}function x(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function T(){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(A){return!1}}function w(A){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)},w(A)}function P(A,z,k){return z in A?Object.defineProperty(A,z,{value:k,enumerable:!0,configurable:!0,writable:!0}):A[z]=k,A}var R=function(A){g(k,A);var z=M(k);function k(){return h(this,k),z.apply(this,arguments)}return _(k,[{key:"render",value:function(){var F=this.props,j=F.height,I=F.width,B=F.style,U=F.className,q=F.children,G=p(F,["height","width","isVisible","style","className","children","columnKey","rowIndex"]),$=f({height:j,width:I},B);return r.default.createElement("div",u({},G,{className:(0,o.default)((0,a.default)("fixedDataTableCellLayout/wrap"),(0,a.default)("public/fixedDataTableCell/wrap"),(0,a.default)("public/fixedDataTableCell/cellContent"),U),style:$}),q)}}]),k}(r.default.Component);P(R,"propTypes",{height:n.default.number,width:n.default.number,columnKey:n.default.oneOfType([n.default.string,n.default.number]),rowIndex:n.default.number,isVisible:n.default.bool});var D=R;e.default=D})(Py);var Ry={};(function(e){function t(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(T){return typeof T}:t=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},t(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(Q),n=a(jt);function a(E){return E&&E.__esModule?E:{default:E}}function o(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function l(E,x){for(var T=0;T<x.length;T++){var w=x[T];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(E,w.key,w)}}function u(E,x,T){return x&&l(E.prototype,x),E}function c(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(x&&x.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),x&&f(E,x)}function f(E,x){return f=Object.setPrototypeOf||function(w,P){return w.__proto__=P,w},f(E,x)}function p(E){var x=b();return function(){var w=_(E),P;if(x){var R=_(this).constructor;P=Reflect.construct(w,arguments,R)}else P=w.apply(this,arguments);return m(this,P)}}function m(E,x){return x&&(t(x)==="object"||typeof x=="function")?x:h(E)}function h(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function b(){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(E){return!1}}function _(E){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(T){return T.__proto__||Object.getPrototypeOf(T)},_(E)}function g(E,x,T){return x in E?Object.defineProperty(E,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):E[x]=T,E}var C=function(E){c(T,E);var x=p(T);function T(){return o(this,T),x.apply(this,arguments)}return u(T,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumn /> should never render");return null}}]),T}(r.default.Component);g(C,"__TableColumn__",!0),g(C,"propTypes",{align:n.default.oneOf(["left","center","right"]),fixed:n.default.bool,fixedRight:n.default.bool,header:n.default.oneOfType([n.default.node,n.default.func]),cell:n.default.oneOfType([n.default.node,n.default.func]),footer:n.default.oneOfType([n.default.node,n.default.func]),columnKey:n.default.oneOfType([n.default.string,n.default.number]),width:n.default.number.isRequired,minWidth:n.default.number,maxWidth:n.default.number,flexGrow:n.default.number,isResizable:n.default.bool,isReorderable:n.default.bool,allowCellsRecycling:n.default.bool,pureRendering:n.default.bool,cellClassName:n.default.string}),g(C,"defaultProps",{allowCellsRecycling:!1,fixed:!1,fixedRight:!1});var M=C;e.default=M})(Ry);var Oy={};(function(e){function t(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(T){return typeof T}:t=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},t(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(Q),n=a(jt);function a(E){return E&&E.__esModule?E:{default:E}}function o(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function l(E,x){for(var T=0;T<x.length;T++){var w=x[T];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(E,w.key,w)}}function u(E,x,T){return x&&l(E.prototype,x),E}function c(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(x&&x.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),x&&f(E,x)}function f(E,x){return f=Object.setPrototypeOf||function(w,P){return w.__proto__=P,w},f(E,x)}function p(E){var x=b();return function(){var w=_(E),P;if(x){var R=_(this).constructor;P=Reflect.construct(w,arguments,R)}else P=w.apply(this,arguments);return m(this,P)}}function m(E,x){return x&&(t(x)==="object"||typeof x=="function")?x:h(E)}function h(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function b(){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(E){return!1}}function _(E){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(T){return T.__proto__||Object.getPrototypeOf(T)},_(E)}function g(E,x,T){return x in E?Object.defineProperty(E,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):E[x]=T,E}var C=function(E){c(T,E);var x=p(T);function T(){return o(this,T),x.apply(this,arguments)}return u(T,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumnGroup /> should never render");return null}}]),T}(r.default.Component);g(C,"__TableColumnGroup__",!0),g(C,"propTypes",{align:n.default.oneOf(["left","center","right"]),fixed:n.default.bool,header:n.default.oneOfType([n.default.node,n.default.func])}),g(C,"defaultProps",{fixed:!1});var M=C;e.default=M})(Oy);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Table",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Cell",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"DataCell",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Column",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"ColumnGroup",{enumerable:!0,get:function(){return o.default}}),e.version=void 0;var t=l(Ag),r=l(wd),n=l(Py),a=l(Ry),o=l(Oy);function l(c){return c&&c.__esModule?c:{default:c}}var u="1.2.22";e.version=u})(Lg);var ko=Lg;const P$="#f4f4f8",R$="#edeef1",O$="#e3e5ea",k$="#f9f9fb",N$="#ffcb05",D$="#1faff3",L$="#e5e5e5",A$="#5b6372",I$="#3a4356",z$="#3c3c42",$$="#a3a3a3",W$="#d0d3db",F$="_tableWrapper_1ode4_16",j$="_table_1ode4_16",B$="_tableHeader_1ode4_78",H$="_tableCell_1ode4_88",V$="_tableCellContent_1ode4_99",U$="_headerColor_1ode4_105",q$="_rowColor_1ode4_109",fa={athensGray:P$,athensGrayDark:R$,athensGrayDark2:O$,athensGrayLight:k$,defaultBrandColor:N$,dodgerBlue:D$,mercury:L$,shuttleGrayDark:A$,oxfordBlue:I$,darkModeDefaultBackground:z$,indicatorGrey:$$,secondaryButtonHover:W$,tableWrapper:F$,table:j$,tableHeader:B$,tableCell:H$,tableCellContent:V$,headerColor:U$,rowColor:q$},G$="#f4f4f8",Y$="#edeef1",X$="#e3e5ea",Z$="#f9f9fb",K$="#ffcb05",Q$="#1faff3",J$="#e5e5e5",eW="#5b6372",tW="#3a4356",rW="#3c3c42",nW="#a3a3a3",iW="#d0d3db",aW="_headerCell_2qf2w_16",oW="_noSort_2qf2w_29",sW="_standard_2qf2w_29",lW="_caret_2qf2w_33",uW="_headerLabel_2qf2w_38",cW="_icon_2qf2w_43",dW="_numberIcon_2qf2w_50",fW="_dateIcon_2qf2w_54",hW="_textIcon_2qf2w_58",pW="_booleanIcon_2qf2w_62",mW="_sortIcon_2qf2w_66",vW="_sortAscending_2qf2w_74",gW="_sortDescending_2qf2w_78",cn={athensGray:G$,athensGrayDark:Y$,athensGrayDark2:X$,athensGrayLight:Z$,defaultBrandColor:K$,dodgerBlue:Q$,mercury:J$,shuttleGrayDark:eW,oxfordBlue:tW,darkModeDefaultBackground:rW,indicatorGrey:nW,secondaryButtonHover:iW,headerCell:aW,noSort:oW,standard:sW,caret:lW,headerLabel:uW,icon:cW,numberIcon:dW,dateIcon:fW,textIcon:hW,booleanIcon:pW,sortIcon:mW,sortAscending:vW,sortDescending:gW};var ky={exports:{}};/*!
|
|
257
|
-
Copyright (c) 2018 Jed Watson.
|
|
258
|
-
Licensed under the MIT License (MIT), see
|
|
259
|
-
http://jedwatson.github.io/classnames
|
|
260
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",l=0;l<arguments.length;l++){var u=arguments[l];u&&(o=a(o,n(u)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var u in o)t.call(o,u)&&o[u]&&(l=a(l,u));return l}function a(o,l){return l?o?o+" "+l:o+l:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(ky);var yW=ky.exports;const Pa=N.getDefaultExportFromCjs(yW),bW="_icon_t30x8_1",_W="_numberIcon_t30x8_11",wW="_dateIcon_t30x8_15",xW="_textIcon_t30x8_19",CW="_booleanIcon_t30x8_23",ia={icon:bW,numberIcon:_W,dateIcon:wW,textIcon:xW,booleanIcon:CW},TW=({columnType:e})=>V.jsx("div",{className:Pa(ia.icon,{[ia.numberIcon]:N.isNumber(e),[ia.dateIcon]:N.isDatetime(e),[ia.textIcon]:N.isText(e),[ia.booleanIcon]:N.isBoolean(e)})}),EW=({column:e,onClick:t,isSelected:r,children:n,showFieldTypeIcon:a,sortIcon:o="standard"})=>V.jsxs("div",{className:cn.headerCell,onClick:()=>{t(e)},children:[a&&V.jsx(TW,{columnType:e.type}),V.jsx("div",{className:cn.headerLabel,children:n}),V.jsx("div",{className:Pa(cn.sortIcon,{[cn.caret]:o==="caret",[cn.standard]:o==="standard",[cn.noSort]:!r||e.direction===0,[cn.sortAscending]:r&&e.direction===1,[cn.sortDescending]:r&&e.direction===-1})})]}),MW=26,SW=26,kp=20,Ny=36,Dy=29,Ly=24,oc=350,PW=126,RW=38,OW=55,Kl=(e,t,r,n,a)=>{const l=document.createElement("canvas").getContext("2d");if(!l)return[];l.font=`13px ${a||"Open Sans"}`;const u=e.columns.map(h=>l.measureText(h.name).width+Ny+(r?Dy:0)),c=l.measureText("0").width,f=e.columns.map(h=>({type:N.simpleColumnType(h.type),index:h.index})),p=t?e.rows.slice(0,100):e.rows,m=f.map(h=>{const b=p.reduce((_,g)=>{var x;const C=g[h.index].displayValue,M=(x=n[h.index])!=null&&x.isHtml?kW(C):C,E=h.type==="number"?g[h.index].displayValue.length*c:l.measureText(M).width;return Math.max(_,E)},0);return Ly+b});return u.map((h,b)=>{var _;return(_=n[b])!=null&&_.width?n[b].width:Math.ceil(Math.max(PW,Math.min(oc,Math.max(h,m[b]))))})};function kW(e){const t=document.createElement("div");return t.innerHTML=e,Ay(t)}function Ay(e){let t,r,n,a;for(r="",t=0;t<e.childNodes.length;t++)a=e.childNodes[t],n=null,a.nodeType===1?n=Ay(a):a.nodeType===3&&(n=a.nodeValue),n&&(r+=n);return r}const Np=e=>e%2===1,Dp=({colIndex:e=0,rowIndex:t=0,themeSettings:r,customStyles:n,isHeaderCell:a})=>{var f,p,m,h,b,_,g,C,M,E,x,T,w,P,R,D,A,z;let o=r.chart.textColor;const l=r.typography.fontFamily;let u=r.chart.backgroundColor;const c=N.getSlightlyDifferentColor(u);return a?(p=(f=n==null?void 0:n.header)==null?void 0:f.color)!=null&&p.enabled&&(u=((h=(m=n==null?void 0:n.header)==null?void 0:m.color)==null?void 0:h.backgroundColor)||c,o=((_=(b=n==null?void 0:n.header)==null?void 0:b.color)==null?void 0:_.textColor)||o):((C=(g=n==null?void 0:n.columns)==null?void 0:g.alternatingColor)!=null&&C.enabled&&Np(e)&&(u=((E=(M=n==null?void 0:n.columns)==null?void 0:M.alternatingColor)==null?void 0:E.backgroundColor)||c,o=((T=(x=n==null?void 0:n.columns)==null?void 0:x.alternatingColor)==null?void 0:T.textColor)||o),(P=(w=n==null?void 0:n.rows)==null?void 0:w.alternatingColor)!=null&&P.enabled&&Np(t)&&(u=((D=(R=n==null?void 0:n.rows)==null?void 0:R.alternatingColor)==null?void 0:D.backgroundColor)||c,o=((z=(A=n==null?void 0:n.rows)==null?void 0:A.alternatingColor)==null?void 0:z.textColor)||o)),{color:o,backgroundColor:u,fontFamily:l}};function Iy(e){return typeof e=="string"}function ha(e,t,r){return e===void 0||Iy(e)?t:te({},t,{ownerState:te({},t.ownerState,r)})}const NW={disableDefaultClasses:!1},zy=Z.createContext(NW);process.env.NODE_ENV!=="production"&&(zy.displayName="ClassNameConfiguratorContext");function DW(e){const{disableDefaultClasses:t}=Z.useContext(zy);return r=>t?"":e(r)}function $y(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function LW(e,t,r){return typeof e=="function"?e(t,r):e}function Lp(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function AW(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const b=Oe(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),_=te({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),g=te({},r,a,n);return b.length>0&&(g.className=b),Object.keys(_).length>0&&(g.style=_),{props:g,internalRef:void 0}}const l=$y(te({},a,n)),u=Lp(n),c=Lp(a),f=t(l),p=Oe(f==null?void 0:f.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),m=te({},f==null?void 0:f.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),h=te({},f,r,c,u);return p.length>0&&(h.className=p),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:f.ref}}const IW=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function gn(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,l=Me(e,IW),u=o?{}:LW(n,a),{props:c,internalRef:f}=AW(te({},l,{externalSlotProps:u})),p=At(f,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return ha(r,te({},c,{ref:p}),a)}function Ka(){const e=lg(od);return process.env.NODE_ENV!=="production"&&Z.useDebugValue(e),e[sd]||e}function is(e,t){var r,n;const{timeout:a,easing:o,style:l={}}=e;return{duration:(r=l.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=l.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:l.transitionDelay}}const zW=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function sc(e){return`scale(${e}, ${Ht(e,2)})`}const $W={entering:{opacity:1,transform:sc(1)},entered:{opacity:1,transform:"none"}},Ql=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ra=Z.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:l,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:m,onExited:h,onExiting:b,style:_,timeout:g="auto",TransitionComponent:C=Fr}=t,M=Me(t,zW),E=_i(),x=Z.useRef(),T=Ka(),w=Z.useRef(null),P=At(w,o.ref,r),R=I=>B=>{if(I){const U=w.current;B===void 0?I(U):I(U,B)}},D=R(p),A=R((I,B)=>{const{duration:U,delay:q,easing:G}=is({style:_,timeout:g,easing:l},{mode:"enter"});let $;g==="auto"?($=T.transitions.getAutoHeightDuration(I.clientHeight),x.current=$):$=U,I.style.transition=[T.transitions.create("opacity",{duration:$,delay:q}),T.transitions.create("transform",{duration:Ql?$:$*.666,delay:q,easing:G})].join(","),c&&c(I,B)}),z=R(f),k=R(b),O=R(I=>{const{duration:B,delay:U,easing:q}=is({style:_,timeout:g,easing:l},{mode:"exit"});let G;g==="auto"?(G=T.transitions.getAutoHeightDuration(I.clientHeight),x.current=G):G=B,I.style.transition=[T.transitions.create("opacity",{duration:G,delay:U}),T.transitions.create("transform",{duration:Ql?G:G*.666,delay:Ql?U:U||G*.333,easing:q})].join(","),I.style.opacity=0,I.style.transform=sc(.75),m&&m(I)}),F=R(h),j=I=>{g==="auto"&&E.start(x.current||0,I),n&&n(w.current,I)};return V.jsx(C,te({appear:a,in:u,nodeRef:w,onEnter:A,onEntered:z,onEntering:D,onExit:O,onExited:F,onExiting:k,addEndListener:j,timeout:g==="auto"?null:g},M,{children:(I,B)=>Z.cloneElement(o,te({style:te({opacity:0,transform:sc(.75),visibility:I==="exited"&&!u?"hidden":void 0},$W[I],_,o.props.style),ref:P},B))}))});process.env.NODE_ENV!=="production"&&(Ra.propTypes={addEndListener:v.func,appear:v.bool,children:Gn.isRequired,easing:v.oneOfType([v.shape({enter:v.string,exit:v.string}),v.string]),in:v.bool,onEnter:v.func,onEntered:v.func,onEntering:v.func,onExit:v.func,onExited:v.func,onExiting:v.func,style:v.object,timeout:v.oneOfType([v.oneOf(["auto"]),v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})])});Ra.muiSupportAuto=!0;var $t="top",or="bottom",sr="right",Wt="left",Md="auto",Qa=[$t,or,sr,Wt],Si="start",Oa="end",WW="clippingParents",Wy="viewport",aa="popper",FW="reference",Ap=Qa.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+Oa])},[]),Fy=[].concat(Qa,[Md]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+Oa])},[]),jW="beforeRead",BW="read",HW="afterRead",VW="beforeMain",UW="main",qW="afterMain",GW="beforeWrite",YW="write",XW="afterWrite",ZW=[jW,BW,HW,VW,UW,qW,GW,YW,XW];function $r(e){return e?(e.nodeName||"").toLowerCase():null}function qt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hn(e){var t=qt(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=qt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Sd(e){if(typeof ShadowRoot=="undefined")return!1;var t=qt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function KW(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!ir(o)||!$r(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(l){var u=a[l];u===!1?o.removeAttribute(l):o.setAttribute(l,u===!0?"":u)}))})}function QW(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),u=l.reduce(function(c,f){return c[f]="",c},{});!ir(a)||!$r(a)||(Object.assign(a.style,u),Object.keys(o).forEach(function(c){a.removeAttribute(c)}))})}}const JW={name:"applyStyles",enabled:!0,phase:"write",fn:KW,effect:QW,requires:["computeStyles"]};function zr(e){return e.split("-")[0]}var Fn=Math.max,as=Math.min,Pi=Math.round;function lc(){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 jy(){return!/^((?!chrome|android).)*safari/i.test(lc())}function Ri(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&ir(e)&&(a=e.offsetWidth>0&&Pi(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Pi(n.height)/e.offsetHeight||1);var l=Hn(e)?qt(e):window,u=l.visualViewport,c=!jy()&&r,f=(n.left+(c&&u?u.offsetLeft:0))/a,p=(n.top+(c&&u?u.offsetTop:0))/o,m=n.width/a,h=n.height/o;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function Pd(e){var t=Ri(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function By(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Sd(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Kr(e){return qt(e).getComputedStyle(e)}function eF(e){return["table","td","th"].indexOf($r(e))>=0}function Tn(e){return((Hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hs(e){return $r(e)==="html"?e:e.assignedSlot||e.parentNode||(Sd(e)?e.host:null)||Tn(e)}function Ip(e){return!ir(e)||Kr(e).position==="fixed"?null:e.offsetParent}function tF(e){var t=/firefox/i.test(lc()),r=/Trident/i.test(lc());if(r&&ir(e)){var n=Kr(e);if(n.position==="fixed")return null}var a=Hs(e);for(Sd(a)&&(a=a.host);ir(a)&&["html","body"].indexOf($r(a))<0;){var o=Kr(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Ja(e){for(var t=qt(e),r=Ip(e);r&&eF(r)&&Kr(r).position==="static";)r=Ip(r);return r&&($r(r)==="html"||$r(r)==="body"&&Kr(r).position==="static")?t:r||tF(e)||t}function Rd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function va(e,t,r){return Fn(e,as(t,r))}function rF(e,t,r){var n=va(e,t,r);return n>r?r:n}function Hy(){return{top:0,right:0,bottom:0,left:0}}function Vy(e){return Object.assign({},Hy(),e)}function Uy(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var nF=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Vy(typeof t!="number"?t:Uy(t,Qa))};function iF(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,l=r.modifiersData.popperOffsets,u=zr(r.placement),c=Rd(u),f=[Wt,sr].indexOf(u)>=0,p=f?"height":"width";if(!(!o||!l)){var m=nF(a.padding,r),h=Pd(o),b=c==="y"?$t:Wt,_=c==="y"?or:sr,g=r.rects.reference[p]+r.rects.reference[c]-l[c]-r.rects.popper[p],C=l[c]-r.rects.reference[c],M=Ja(o),E=M?c==="y"?M.clientHeight||0:M.clientWidth||0:0,x=g/2-C/2,T=m[b],w=E-h[p]-m[_],P=E/2-h[p]/2+x,R=va(T,P,w),D=c;r.modifiersData[n]=(t={},t[D]=R,t.centerOffset=R-P,t)}}function aF(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||By(t.elements.popper,a)&&(t.elements.arrow=a))}const oF={name:"arrow",enabled:!0,phase:"main",fn:iF,effect:aF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oi(e){return e.split("-")[1]}var sF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lF(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:Pi(r*a)/a||0,y:Pi(n*a)/a||0}}function zp(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,l=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,m=e.isFixed,h=l.x,b=h===void 0?0:h,_=l.y,g=_===void 0?0:_,C=typeof p=="function"?p({x:b,y:g}):{x:b,y:g};b=C.x,g=C.y;var M=l.hasOwnProperty("x"),E=l.hasOwnProperty("y"),x=Wt,T=$t,w=window;if(f){var P=Ja(r),R="clientHeight",D="clientWidth";if(P===qt(r)&&(P=Tn(r),Kr(P).position!=="static"&&u==="absolute"&&(R="scrollHeight",D="scrollWidth")),P=P,a===$t||(a===Wt||a===sr)&&o===Oa){T=or;var A=m&&P===w&&w.visualViewport?w.visualViewport.height:P[R];g-=A-n.height,g*=c?1:-1}if(a===Wt||(a===$t||a===or)&&o===Oa){x=sr;var z=m&&P===w&&w.visualViewport?w.visualViewport.width:P[D];b-=z-n.width,b*=c?1:-1}}var k=Object.assign({position:u},f&&sF),O=p===!0?lF({x:b,y:g},qt(r)):{x:b,y:g};if(b=O.x,g=O.y,c){var F;return Object.assign({},k,(F={},F[T]=E?"0":"",F[x]=M?"0":"",F.transform=(w.devicePixelRatio||1)<=1?"translate("+b+"px, "+g+"px)":"translate3d("+b+"px, "+g+"px, 0)",F))}return Object.assign({},k,(t={},t[T]=E?g+"px":"",t[x]=M?b+"px":"",t.transform="",t))}function uF(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,l=o===void 0?!0:o,u=r.roundOffsets,c=u===void 0?!0:u,f={placement:zr(t.placement),variation:Oi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,zp(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zp(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const cF={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uF,data:{}};var No={passive:!0};function dF(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,l=n.resize,u=l===void 0?!0:l,c=qt(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&f.forEach(function(p){p.addEventListener("scroll",r.update,No)}),u&&c.addEventListener("resize",r.update,No),function(){o&&f.forEach(function(p){p.removeEventListener("scroll",r.update,No)}),u&&c.removeEventListener("resize",r.update,No)}}const fF={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dF,data:{}};var hF={left:"right",right:"left",bottom:"top",top:"bottom"};function Ho(e){return e.replace(/left|right|bottom|top/g,function(t){return hF[t]})}var pF={start:"end",end:"start"};function $p(e){return e.replace(/start|end/g,function(t){return pF[t]})}function Od(e){var t=qt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function kd(e){return Ri(Tn(e)).left+Od(e).scrollLeft}function mF(e,t){var r=qt(e),n=Tn(e),a=r.visualViewport,o=n.clientWidth,l=n.clientHeight,u=0,c=0;if(a){o=a.width,l=a.height;var f=jy();(f||!f&&t==="fixed")&&(u=a.offsetLeft,c=a.offsetTop)}return{width:o,height:l,x:u+kd(e),y:c}}function vF(e){var t,r=Tn(e),n=Od(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Fn(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Fn(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-n.scrollLeft+kd(e),c=-n.scrollTop;return Kr(a||r).direction==="rtl"&&(u+=Fn(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:l,x:u,y:c}}function Nd(e){var t=Kr(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function qy(e){return["html","body","#document"].indexOf($r(e))>=0?e.ownerDocument.body:ir(e)&&Nd(e)?e:qy(Hs(e))}function ga(e,t){var r;t===void 0&&(t=[]);var n=qy(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=qt(n),l=a?[o].concat(o.visualViewport||[],Nd(n)?n:[]):n,u=t.concat(l);return a?u:u.concat(ga(Hs(l)))}function uc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gF(e,t){var r=Ri(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Wp(e,t,r){return t===Wy?uc(mF(e,r)):Hn(t)?gF(t,r):uc(vF(Tn(e)))}function yF(e){var t=ga(Hs(e)),r=["absolute","fixed"].indexOf(Kr(e).position)>=0,n=r&&ir(e)?Ja(e):e;return Hn(n)?t.filter(function(a){return Hn(a)&&By(a,n)&&$r(a)!=="body"}):[]}function bF(e,t,r,n){var a=t==="clippingParents"?yF(e):[].concat(t),o=[].concat(a,[r]),l=o[0],u=o.reduce(function(c,f){var p=Wp(e,f,n);return c.top=Fn(p.top,c.top),c.right=as(p.right,c.right),c.bottom=as(p.bottom,c.bottom),c.left=Fn(p.left,c.left),c},Wp(e,l,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function Gy(e){var t=e.reference,r=e.element,n=e.placement,a=n?zr(n):null,o=n?Oi(n):null,l=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,c;switch(a){case $t:c={x:l,y:t.y-r.height};break;case or:c={x:l,y:t.y+t.height};break;case sr:c={x:t.x+t.width,y:u};break;case Wt:c={x:t.x-r.width,y:u};break;default:c={x:t.x,y:t.y}}var f=a?Rd(a):null;if(f!=null){var p=f==="y"?"height":"width";switch(o){case Si:c[f]=c[f]-(t[p]/2-r[p]/2);break;case Oa:c[f]=c[f]+(t[p]/2-r[p]/2);break}}return c}function ka(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,l=o===void 0?e.strategy:o,u=r.boundary,c=u===void 0?WW:u,f=r.rootBoundary,p=f===void 0?Wy:f,m=r.elementContext,h=m===void 0?aa:m,b=r.altBoundary,_=b===void 0?!1:b,g=r.padding,C=g===void 0?0:g,M=Vy(typeof C!="number"?C:Uy(C,Qa)),E=h===aa?FW:aa,x=e.rects.popper,T=e.elements[_?E:h],w=bF(Hn(T)?T:T.contextElement||Tn(e.elements.popper),c,p,l),P=Ri(e.elements.reference),R=Gy({reference:P,element:x,strategy:"absolute",placement:a}),D=uc(Object.assign({},x,R)),A=h===aa?D:P,z={top:w.top-A.top+M.top,bottom:A.bottom-w.bottom+M.bottom,left:w.left-A.left+M.left,right:A.right-w.right+M.right},k=e.modifiersData.offset;if(h===aa&&k){var O=k[a];Object.keys(z).forEach(function(F){var j=[sr,or].indexOf(F)>=0?1:-1,I=[$t,or].indexOf(F)>=0?"y":"x";z[F]+=O[I]*j})}return z}function _F(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,l=r.padding,u=r.flipVariations,c=r.allowedAutoPlacements,f=c===void 0?Fy:c,p=Oi(n),m=p?u?Ap:Ap.filter(function(_){return Oi(_)===p}):Qa,h=m.filter(function(_){return f.indexOf(_)>=0});h.length===0&&(h=m);var b=h.reduce(function(_,g){return _[g]=ka(e,{placement:g,boundary:a,rootBoundary:o,padding:l})[zr(g)],_},{});return Object.keys(b).sort(function(_,g){return b[_]-b[g]})}function wF(e){if(zr(e)===Md)return[];var t=Ho(e);return[$p(e),t,$p(t)]}function xF(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,l=r.altAxis,u=l===void 0?!0:l,c=r.fallbackPlacements,f=r.padding,p=r.boundary,m=r.rootBoundary,h=r.altBoundary,b=r.flipVariations,_=b===void 0?!0:b,g=r.allowedAutoPlacements,C=t.options.placement,M=zr(C),E=M===C,x=c||(E||!_?[Ho(C)]:wF(C)),T=[C].concat(x).reduce(function(K,J){return K.concat(zr(J)===Md?_F(t,{placement:J,boundary:p,rootBoundary:m,padding:f,flipVariations:_,allowedAutoPlacements:g}):J)},[]),w=t.rects.reference,P=t.rects.popper,R=new Map,D=!0,A=T[0],z=0;z<T.length;z++){var k=T[z],O=zr(k),F=Oi(k)===Si,j=[$t,or].indexOf(O)>=0,I=j?"width":"height",B=ka(t,{placement:k,boundary:p,rootBoundary:m,altBoundary:h,padding:f}),U=j?F?sr:Wt:F?or:$t;w[I]>P[I]&&(U=Ho(U));var q=Ho(U),G=[];if(o&&G.push(B[O]<=0),u&&G.push(B[U]<=0,B[q]<=0),G.every(function(K){return K})){A=k,D=!1;break}R.set(k,G)}if(D)for(var $=_?3:1,H=function(J){var ne=T.find(function(le){var se=R.get(le);if(se)return se.slice(0,J).every(function(ue){return ue})});if(ne)return A=ne,"break"},ee=$;ee>0;ee--){var X=H(ee);if(X==="break")break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}}const CF={name:"flip",enabled:!0,phase:"main",fn:xF,requiresIfExists:["offset"],data:{_skip:!1}};function Fp(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function jp(e){return[$t,sr,or,Wt].some(function(t){return e[t]>=0})}function TF(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,l=ka(t,{elementContext:"reference"}),u=ka(t,{altBoundary:!0}),c=Fp(l,n),f=Fp(u,a,o),p=jp(c),m=jp(f);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const EF={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:TF};function MF(e,t,r){var n=zr(e),a=[Wt,$t].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=o[0],u=o[1];return l=l||0,u=(u||0)*a,[Wt,sr].indexOf(n)>=0?{x:u,y:l}:{x:l,y:u}}function SF(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,l=Fy.reduce(function(p,m){return p[m]=MF(m,t.rects,o),p},{}),u=l[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=l}const PF={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SF};function RF(e){var t=e.state,r=e.name;t.modifiersData[r]=Gy({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const OF={name:"popperOffsets",enabled:!0,phase:"read",fn:RF,data:{}};function kF(e){return e==="x"?"y":"x"}function NF(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,l=r.altAxis,u=l===void 0?!1:l,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,m=r.padding,h=r.tether,b=h===void 0?!0:h,_=r.tetherOffset,g=_===void 0?0:_,C=ka(t,{boundary:c,rootBoundary:f,padding:m,altBoundary:p}),M=zr(t.placement),E=Oi(t.placement),x=!E,T=Rd(M),w=kF(T),P=t.modifiersData.popperOffsets,R=t.rects.reference,D=t.rects.popper,A=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,z=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(P){if(o){var F,j=T==="y"?$t:Wt,I=T==="y"?or:sr,B=T==="y"?"height":"width",U=P[T],q=U+C[j],G=U-C[I],$=b?-D[B]/2:0,H=E===Si?R[B]:D[B],ee=E===Si?-D[B]:-R[B],X=t.elements.arrow,K=b&&X?Pd(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Hy(),ne=J[j],le=J[I],se=va(0,R[B],K[B]),ue=x?R[B]/2-$-se-ne-z.mainAxis:H-se-ne-z.mainAxis,fe=x?-R[B]/2+$+se+le+z.mainAxis:ee+se+le+z.mainAxis,pe=t.elements.arrow&&Ja(t.elements.arrow),oe=pe?T==="y"?pe.clientTop||0:pe.clientLeft||0:0,ve=(F=k==null?void 0:k[T])!=null?F:0,de=U+ue-ve-oe,_e=U+fe-ve,we=va(b?as(q,de):q,U,b?Fn(G,_e):G);P[T]=we,O[T]=we-U}if(u){var Ee,Ce=T==="x"?$t:Wt,ct=T==="x"?or:sr,Ve=P[w],tt=w==="y"?"height":"width",dt=Ve+C[Ce],Ie=Ve-C[ct],Ue=[$t,Wt].indexOf(M)!==-1,Et=(Ee=k==null?void 0:k[w])!=null?Ee:0,ft=Ue?dt:Ve-R[tt]-D[tt]-Et+z.altAxis,Mt=Ue?Ve+R[tt]+D[tt]-Et-z.altAxis:Ie,dr=b&&Ue?rF(ft,Ve,Mt):va(b?ft:dt,Ve,b?Mt:Ie);P[w]=dr,O[w]=dr-Ve}t.modifiersData[n]=O}}const DF={name:"preventOverflow",enabled:!0,phase:"main",fn:NF,requiresIfExists:["offset"]};function LF(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function AF(e){return e===qt(e)||!ir(e)?Od(e):LF(e)}function IF(e){var t=e.getBoundingClientRect(),r=Pi(t.width)/e.offsetWidth||1,n=Pi(t.height)/e.offsetHeight||1;return r!==1||n!==1}function zF(e,t,r){r===void 0&&(r=!1);var n=ir(t),a=ir(t)&&IF(t),o=Tn(t),l=Ri(e,a,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&(($r(t)!=="body"||Nd(o))&&(u=AF(t)),ir(t)?(c=Ri(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=kd(o))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function $F(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var l=[].concat(o.requires||[],o.requiresIfExists||[]);l.forEach(function(u){if(!r.has(u)){var c=t.get(u);c&&a(c)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function WF(e){var t=$F(e);return ZW.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function FF(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function jF(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Bp={placement:"bottom",modifiers:[],strategy:"absolute"};function Hp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function BF(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?Bp:a;return function(u,c,f){f===void 0&&(f=o);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bp,o),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},m=[],h=!1,b={state:p,setOptions:function(M){var E=typeof M=="function"?M(p.options):M;g(),p.options=Object.assign({},o,p.options,E),p.scrollParents={reference:Hn(u)?ga(u):u.contextElement?ga(u.contextElement):[],popper:ga(c)};var x=WF(jF([].concat(n,p.options.modifiers)));return p.orderedModifiers=x.filter(function(T){return T.enabled}),_(),b.update()},forceUpdate:function(){if(!h){var M=p.elements,E=M.reference,x=M.popper;if(Hp(E,x)){p.rects={reference:zF(E,Ja(x),p.options.strategy==="fixed"),popper:Pd(x)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(z){return p.modifiersData[z.name]=Object.assign({},z.data)});for(var T=0;T<p.orderedModifiers.length;T++){if(p.reset===!0){p.reset=!1,T=-1;continue}var w=p.orderedModifiers[T],P=w.fn,R=w.options,D=R===void 0?{}:R,A=w.name;typeof P=="function"&&(p=P({state:p,options:D,name:A,instance:b})||p)}}}},update:FF(function(){return new Promise(function(C){b.forceUpdate(),C(p)})}),destroy:function(){g(),h=!0}};if(!Hp(u,c))return b;b.setOptions(f).then(function(C){!h&&f.onFirstUpdate&&f.onFirstUpdate(C)});function _(){p.orderedModifiers.forEach(function(C){var M=C.name,E=C.options,x=E===void 0?{}:E,T=C.effect;if(typeof T=="function"){var w=T({state:p,name:M,instance:b,options:x}),P=function(){};m.push(w||P)}})}function g(){m.forEach(function(C){return C()}),m=[]}return b}}var HF=[fF,OF,cF,JW,PF,CF,DF,oF,EF],VF=BF({defaultModifiers:HF});function UF(e){return typeof e=="function"?e():e}const Na=Z.forwardRef(function(t,r){const{children:n,container:a,disablePortal:o=!1}=t,[l,u]=Z.useState(null),c=At(Z.isValidElement(n)?n.ref:null,r);if(Bn(()=>{o||u(UF(a)||document.body)},[a,o]),Bn(()=>{if(l&&!o)return ec(r,l),()=>{ec(r,null)}},[r,l,o]),o){if(Z.isValidElement(n)){const f={ref:c};return Z.cloneElement(n,f)}return V.jsx(Z.Fragment,{children:n})}return V.jsx(Z.Fragment,{children:l&&$_.createPortal(n,l)})});process.env.NODE_ENV!=="production"&&(Na.propTypes={children:v.node,container:v.oneOfType([Zr,v.func]),disablePortal:v.bool});process.env.NODE_ENV!=="production"&&(Na.propTypes=fd(Na.propTypes));const Yy="base";function qF(e){return`${Yy}--${e}`}function GF(e,t){return`${Yy}-${e}-${t}`}function Xy(e,t){const r=cg[t];return r?qF(r):GF(e,t)}function YF(e,t){const r={};return t.forEach(n=>{r[n]=Xy(e,n)}),r}const Zy="Popper";function XF(e){return Xy(Zy,e)}YF(Zy,["root"]);const ZF=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],KF=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function QF(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 os(e){return typeof e=="function"?e():e}function Vs(e){return e.nodeType!==void 0}function JF(e){return!Vs(e)}const e4=()=>at({root:["root"]},DW(XF)),t4={},r4=Z.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:l,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:m,popperRef:h,slotProps:b={},slots:_={},TransitionProps:g}=t,C=Me(t,ZF),M=Z.useRef(null),E=At(M,r),x=Z.useRef(null),T=At(x,h),w=Z.useRef(T);Bn(()=>{w.current=T},[T]),Z.useImperativeHandle(h,()=>x.current,[]);const P=QF(p,l),[R,D]=Z.useState(P),[A,z]=Z.useState(os(a));Z.useEffect(()=>{x.current&&x.current.forceUpdate()}),Z.useEffect(()=>{a&&z(os(a))},[a]),Bn(()=>{if(!A||!f)return;const I=q=>{D(q.placement)};if(process.env.NODE_ENV!=="production"&&A&&Vs(A)&&A.nodeType===1){const q=A.getBoundingClientRect();process.env.NODE_ENV!=="test"&&q.top===0&&q.left===0&&q.right===0&&q.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(`
|
|
261
|
-
`))}let B=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:q})=>{I(q)}}];c!=null&&(B=B.concat(c)),m&&m.modifiers!=null&&(B=B.concat(m.modifiers));const U=VF(A,M.current,te({placement:P},m,{modifiers:B}));return w.current(U),()=>{U.destroy(),w.current(null)}},[A,u,c,f,m,P]);const k={placement:R};g!==null&&(k.TransitionProps=g);const O=e4(),F=(n=_.root)!=null?n:"div",j=gn({elementType:F,externalSlotProps:b.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:E},ownerState:t,className:O.root});return V.jsx(F,te({},j,{children:typeof o=="function"?o(k):o}))}),Ky=Z.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:l="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:f,open:p,placement:m="bottom",popperOptions:h=t4,popperRef:b,style:_,transition:g=!1,slotProps:C={},slots:M={}}=t,E=Me(t,KF),[x,T]=Z.useState(!0),w=()=>{T(!1)},P=()=>{T(!0)};if(!c&&!p&&(!g||x))return null;let R;if(o)R=o;else if(n){const z=os(n);R=z&&Vs(z)?Lt(z).body:Lt(null).body}const D=!p&&c&&(!g||x)?"none":void 0,A=g?{in:p,onEnter:w,onExited:P}:void 0;return V.jsx(Na,{disablePortal:u,container:R,children:V.jsx(r4,te({anchorEl:n,direction:l,disablePortal:u,modifiers:f,ref:r,open:g?!x:p,placement:m,popperOptions:h,popperRef:b,slotProps:C,slots:M},E,{style:te({position:"fixed",top:0,left:0,display:D},_),TransitionProps:A,children:a}))})});process.env.NODE_ENV!=="production"&&(Ky.propTypes={anchorEl:_n(v.oneOfType([Zr,v.object,v.func]),e=>{if(e.open){const t=os(e.anchorEl);if(t&&Vs(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.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(`
|
|
262
|
-
`))}else if(!t||typeof t.getBoundingClientRect!="function"||JF(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(`
|
|
263
|
-
`))}return null}),children:v.oneOfType([v.node,v.func]),container:v.oneOfType([Zr,v.func]),direction:v.oneOf(["ltr","rtl"]),disablePortal:v.bool,keepMounted:v.bool,modifiers:v.arrayOf(v.shape({data:v.object,effect:v.func,enabled:v.bool,fn:v.func,name:v.any,options:v.object,phase:v.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:v.arrayOf(v.string),requiresIfExists:v.arrayOf(v.string)})),open:v.bool.isRequired,placement:v.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:v.shape({modifiers:v.array,onFirstUpdate:v.func,placement:v.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:v.oneOf(["absolute","fixed"])}),popperRef:Va,slotProps:v.shape({root:v.oneOfType([v.func,v.object])}),slots:v.shape({root:v.elementType}),transition:v.bool});var Dd={};Object.defineProperty(Dd,"__esModule",{value:!0});var Qy=Dd.default=void 0,n4=a4(Q),i4=bg;function Jy(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Jy=function(n){return n?r:t})(e)}function a4(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Jy(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function o4(e){return Object.keys(e).length===0}function s4(e=null){const t=n4.useContext(i4.ThemeContext);return!t||o4(t)?e:t}Qy=Dd.default=s4;const Vp=e=>{let t;return e<1?t=5.11916*Ht(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},l4=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],u4=ke(Ky,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eo=Z.forwardRef(function(t,r){var n;const a=Qy(),o=et({props:t,name:"MuiPopper"}),{anchorEl:l,component:u,components:c,componentsProps:f,container:p,disablePortal:m,keepMounted:h,modifiers:b,open:_,placement:g,popperOptions:C,popperRef:M,transition:E,slots:x,slotProps:T}=o,w=Me(o,l4),P=(n=x==null?void 0:x.root)!=null?n:c==null?void 0:c.Root,R=te({anchorEl:l,container:p,disablePortal:m,keepMounted:h,modifiers:b,open:_,placement:g,popperOptions:C,popperRef:M,transition:E},w);return V.jsx(u4,te({as:u,direction:a==null?void 0:a.direction,slots:{root:P},slotProps:T!=null?T:f},R,{ref:r}))});process.env.NODE_ENV!=="production"&&(eo.propTypes={anchorEl:v.oneOfType([Zr,v.object,v.func]),children:v.oneOfType([v.node,v.func]),component:v.elementType,components:v.shape({Root:v.elementType}),componentsProps:v.shape({root:v.oneOfType([v.func,v.object])}),container:v.oneOfType([Zr,v.func]),disablePortal:v.bool,keepMounted:v.bool,modifiers:v.arrayOf(v.shape({data:v.object,effect:v.func,enabled:v.bool,fn:v.func,name:v.any,options:v.object,phase:v.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:v.arrayOf(v.string),requiresIfExists:v.arrayOf(v.string)})),open:v.bool.isRequired,placement:v.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:v.shape({modifiers:v.array,onFirstUpdate:v.func,placement:v.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:v.oneOf(["absolute","fixed"])}),popperRef:Va,slotProps:v.shape({root:v.oneOfType([v.func,v.object])}),slots:v.shape({root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),transition:v.bool});function c4(e){return Je("MuiTooltip",e)}const pn=Ze("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),d4=["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 f4(e){return Math.round(e*1e5)/1e5}const h4=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,l={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${De(o.split("-")[0])}`],arrow:["arrow"]};return at(l,c4,t)},p4=ke(eo,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>te({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${pn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${pn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${pn.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"] .${pn.arrow}`]:te({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),m4=ke("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${De(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>te({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:it(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:`${f4(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${pn.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"})),[`.${pn.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"})),[`.${pn.popper}[data-popper-placement*="top"] &`]:te({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${pn.popper}[data-popper-placement*="bottom"] &`]:te({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),v4=ke("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:it(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Do=!1;const Up=new Ga;let oa={x:0,y:0};function Lo(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Us=Z.forwardRef(function(t,r){var n,a,o,l,u,c,f,p,m,h,b,_,g,C,M,E,x,T,w;const P=et({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:D,components:A={},componentsProps:z={},describeChild:k=!1,disableFocusListener:O=!1,disableHoverListener:F=!1,disableInteractive:j=!1,disableTouchListener:I=!1,enterDelay:B=100,enterNextDelay:U=0,enterTouchDelay:q=700,followCursor:G=!1,id:$,leaveDelay:H=0,leaveTouchDelay:ee=1500,onClose:X,onOpen:K,open:J,placement:ne="bottom",PopperComponent:le,PopperProps:se={},slotProps:ue={},slots:fe={},title:pe,TransitionComponent:oe=Ra,TransitionProps:ve}=P,de=Me(P,d4),_e=Z.isValidElement(D)?D:V.jsx("span",{children:D}),we=Ka(),Ee=ud(),[Ce,ct]=Z.useState(),[Ve,tt]=Z.useState(null),dt=Z.useRef(!1),Ie=j||G,Ue=_i(),Et=_i(),ft=_i(),Mt=_i(),[dr,Te]=ld({controlled:J,default:!1,name:"Tooltip",state:"open"});let gt=dr;if(process.env.NODE_ENV!=="production"){const{current:Pe}=Z.useRef(J!==void 0);Z.useEffect(()=>{Ce&&Ce.disabled&&!Pe&&pe!==""&&Ce.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(`
|
|
264
|
-
`))},[pe,Ce,Pe])}const xr=Mg($),Yt=Z.useRef(),Cr=Yr(()=>{Yt.current!==void 0&&(document.body.style.WebkitUserSelect=Yt.current,Yt.current=void 0),Mt.clear()});Z.useEffect(()=>Cr,[Cr]);const Qr=Pe=>{Up.clear(),Do=!0,Te(!0),K&&!gt&&K(Pe)},fr=Yr(Pe=>{Up.start(800+H,()=>{Do=!1}),Te(!1),X&>&&X(Pe),Ue.start(we.transitions.duration.shortest,()=>{dt.current=!1})}),jr=Pe=>{dt.current&&Pe.type!=="touchstart"||(Ce&&Ce.removeAttribute("title"),Et.clear(),ft.clear(),B||Do&&U?Et.start(Do?U:B,()=>{Qr(Pe)}):Qr(Pe))},Bt=Pe=>{Et.clear(),ft.start(H,()=>{fr(Pe)})},{isFocusVisibleRef:En,onBlur:Br,onFocus:Jr,ref:Mn}=Cg(),[,hr]=Z.useState(!1),Sn=Pe=>{Br(Pe),En.current===!1&&(hr(!1),Bt(Pe))},Pn=Pe=>{Ce||ct(Pe.currentTarget),Jr(Pe),En.current===!0&&(hr(!0),jr(Pe))},en=Pe=>{dt.current=!0;const Rt=_e.props;Rt.onTouchStart&&Rt.onTouchStart(Pe)},Zn=Pe=>{en(Pe),ft.clear(),Ue.clear(),Cr(),Yt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Mt.start(q,()=>{document.body.style.WebkitUserSelect=Yt.current,jr(Pe)})},Kn=Pe=>{_e.props.onTouchEnd&&_e.props.onTouchEnd(Pe),Cr(),ft.start(ee,()=>{fr(Pe)})};Z.useEffect(()=>{if(!gt)return;function Pe(Rt){(Rt.key==="Escape"||Rt.key==="Esc")&&fr(Rt)}return document.addEventListener("keydown",Pe),()=>{document.removeEventListener("keydown",Pe)}},[fr,gt]);const ji=At(_e.ref,Mn,ct,r);!pe&&pe!==0&&(gt=!1);const Xt=Z.useRef(),Qn=Pe=>{const Rt=_e.props;Rt.onMouseMove&&Rt.onMouseMove(Pe),oa={x:Pe.clientX,y:Pe.clientY},Xt.current&&Xt.current.update()},Hr={},tn=typeof pe=="string";k?(Hr.title=!gt&&tn&&!F?pe:null,Hr["aria-describedby"]=gt?xr:null):(Hr["aria-label"]=tn?pe:null,Hr["aria-labelledby"]=gt&&!tn?xr:null);const _t=te({},Hr,de,_e.props,{className:Oe(de.className,_e.props.className),onTouchStart:en,ref:ji},G?{onMouseMove:Qn}:{});process.env.NODE_ENV!=="production"&&(_t["data-mui-internal-clone-element"]=!0,Z.useEffect(()=>{Ce&&!Ce.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(`
|
|
265
|
-
`))},[Ce]));const vt={};I||(_t.onTouchStart=Zn,_t.onTouchEnd=Kn),F||(_t.onMouseOver=Lo(jr,_t.onMouseOver),_t.onMouseLeave=Lo(Bt,_t.onMouseLeave),Ie||(vt.onMouseOver=jr,vt.onMouseLeave=Bt)),O||(_t.onFocus=Lo(Pn,_t.onFocus),_t.onBlur=Lo(Sn,_t.onBlur),Ie||(vt.onFocus=Pn,vt.onBlur=Sn)),process.env.NODE_ENV!=="production"&&_e.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${_e.props.title}\` or the Tooltip component.`].join(`
|
|
266
|
-
`));const ge=Z.useMemo(()=>{var Pe;let Rt=[{name:"arrow",enabled:!!Ve,options:{element:Ve,padding:4}}];return(Pe=se.popperOptions)!=null&&Pe.modifiers&&(Rt=Rt.concat(se.popperOptions.modifiers)),te({},se.popperOptions,{modifiers:Rt})},[Ve,se]),pr=te({},P,{isRtl:Ee,arrow:R,disableInteractive:Ie,placement:ne,PopperComponentProp:le,touch:dt.current}),rn=h4(pr),Rn=(n=(a=fe.popper)!=null?a:A.Popper)!=null?n:p4,nn=(o=(l=(u=fe.transition)!=null?u:A.Transition)!=null?l:oe)!=null?o:Ra,an=(c=(f=fe.tooltip)!=null?f:A.Tooltip)!=null?c:m4,on=(p=(m=fe.arrow)!=null?m:A.Arrow)!=null?p:v4,mr=ha(Rn,te({},se,(h=ue.popper)!=null?h:z.popper,{className:Oe(rn.popper,se==null?void 0:se.className,(b=(_=ue.popper)!=null?_:z.popper)==null?void 0:b.className)}),pr),sn=ha(nn,te({},ve,(g=ue.transition)!=null?g:z.transition),pr),Xs=ha(an,te({},(C=ue.tooltip)!=null?C:z.tooltip,{className:Oe(rn.tooltip,(M=(E=ue.tooltip)!=null?E:z.tooltip)==null?void 0:M.className)}),pr),Zs=ha(on,te({},(x=ue.arrow)!=null?x:z.arrow,{className:Oe(rn.arrow,(T=(w=ue.arrow)!=null?w:z.arrow)==null?void 0:T.className)}),pr);return V.jsxs(Z.Fragment,{children:[Z.cloneElement(_e,_t),V.jsx(Rn,te({as:le!=null?le:eo,placement:ne,anchorEl:G?{getBoundingClientRect:()=>({top:oa.y,left:oa.x,right:oa.x,bottom:oa.y,width:0,height:0})}:Ce,popperRef:Xt,open:Ce?gt:!1,id:xr,transition:!0},vt,mr,{popperOptions:ge,children:({TransitionProps:Pe})=>V.jsx(nn,te({timeout:we.transitions.duration.shorter},Pe,sn,{children:V.jsxs(an,te({},Xs,{children:[pe,R?V.jsx(on,te({},Zs,{ref:tt})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(Us.propTypes={arrow:v.bool,children:Gn.isRequired,classes:v.object,className:v.string,components:v.shape({Arrow:v.elementType,Popper:v.elementType,Tooltip:v.elementType,Transition:v.elementType}),componentsProps:v.shape({arrow:v.object,popper:v.object,tooltip:v.object,transition:v.object}),describeChild:v.bool,disableFocusListener:v.bool,disableHoverListener:v.bool,disableInteractive:v.bool,disableTouchListener:v.bool,enterDelay:v.number,enterNextDelay:v.number,enterTouchDelay:v.number,followCursor:v.bool,id:v.string,leaveDelay:v.number,leaveTouchDelay:v.number,onClose:v.func,onOpen:v.func,open:v.bool,placement:v.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:v.elementType,PopperProps:v.object,slotProps:v.shape({arrow:v.object,popper:v.object,tooltip:v.object,transition:v.object}),slots:v.shape({arrow:v.elementType,popper:v.elementType,tooltip:v.elementType,transition:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),title:v.node,TransitionComponent:v.elementType,TransitionProps:v.object});const g4=e=>N.isNumber(e)?"right":"left",qp=({displayValue:e,width:t,padding:r,ellipsizedLength:n,isHtml:a})=>{const o=e.length>n;return V.jsx("div",{className:fa.tableCellContent,style:{maxWidth:`${t-r}px`},children:a?V.jsx("div",{dangerouslySetInnerHTML:{__html:e}}):o?V.jsx(Us,{title:e,children:V.jsx("div",{children:e})}):V.jsx("div",{children:e})})},y4=({dataTable:e,dataOptions:t,isLoading:r,height:n,width:a,customStyles:o,themeSettings:l,onSortUpdate:u})=>{var M,E;const c=Q.useRef(r),f=o&&o.showFieldTypeIcon!==void 0?o.showFieldTypeIcon:!0,p=Ny+(f?Dy:0),m=(o==null?void 0:o.paddingVertical)||kp,h=(o==null?void 0:o.paddingHorizontal)||kp,b=Q.useMemo(()=>t.columns.map(x=>{var T,w;return ie({isHtml:(T=x.isHtml)!=null?T:!1},((w=o==null?void 0:o.columns)==null?void 0:w.width)==="auto"?{width:(a-h*2)/t.columns.length-1/t.columns.length}:null)}),[t,a,(M=o==null?void 0:o.columns)==null?void 0:M.width,h]),[_,g]=Q.useState(()=>{var x;return Kl(e,r,f,b,(x=l.typography)==null?void 0:x.fontFamily)});Q.useEffect(()=>{var x;r!==c.current&&(r||g(Kl(e,r,f,b,(x=l.typography)==null?void 0:x.fontFamily)),c.current=r)},[r,e,l,b,f]);const C=Q.useRef(!1);return Q.useEffect(()=>{!C.current&&document.fonts&&(C.current=!0,document.fonts.ready.then(()=>{var x;g(Kl(e,r,f,b,(x=l.typography)==null?void 0:x.fontFamily))}).catch(x=>{throw x}))},[e,r,b,(E=l.typography)==null?void 0:E.fontFamily,f]),V.jsx("div",{className:fa.tableWrapper,style:{padding:`${m}px ${h}px`},children:V.jsx(ko.Table,{className:fa.table,rowHeight:(o==null?void 0:o.rowHeight)||SW,rowsCount:e.rows.length,width:a-h*2,height:n-m*2,headerHeight:(o==null?void 0:o.headerHeight)||MW,children:e.columns.map((x,T)=>{var w;return _[T]?V.jsx(ko.Column,{maxWidth:oc,minWidth:oc,allowCellsRecycling:!0,width:_[T],header:V.jsx(ko.Cell,{className:Pa(fa.tableHeader),style:Dp({isHeaderCell:!0,themeSettings:l,customStyles:o}),children:V.jsx(EW,{column:x,onClick:u,isSelected:!!Math.abs(x.direction),showFieldTypeIcon:f,sortIcon:(o==null?void 0:o.sortIcon)||"standard",children:qp({displayValue:(w=t.columns[T].title)!=null?w:t.columns[T].name,width:_[T],padding:p,ellipsizedLength:RW})})}),cell:D=>{var A=D,{rowIndex:P}=A,R=Sr(A,["rowIndex"]);var z;return V.jsx(ko.Cell,he(ie({className:Pa(fa.tableCell),style:Dp({colIndex:T,rowIndex:P,themeSettings:l,customStyles:o})},R),{children:qp({displayValue:e.rows[P][T].displayValue,width:_[T],padding:Ly,ellipsizedLength:OW,isHtml:(z=t.columns[T].isHtml)!=null?z:!1})}))},align:g4(e.columns[T].type)},`col${T}`):null})})})},b4="_component_1rw9b_1",_4={component:b4},w4=(e,t)=>{if(!e.columns.some(l=>N.isNumber(l.type)))return e;const r=e.columns,a=e.rows.map(l=>l.map((u,c)=>{const f=r[c].type,p=N.getCompleteNumberFormatConfig(t.columns[c].numberFormatConfig);if(N.isNumber(f)){const m=N.createCompareValue(u.displayValue,f);return{displayValue:N.applyFormatPlainText(p,m.value),compareValue:m}}else return u}));return{columns:r,rows:a}},x4=({dataTable:e,dataOptions:t,designOptions:r={},onSortUpdate:n,themeSettings:a,width:o=400,height:l=500})=>{const u=Q.useRef(null),c=Q.useRef(e),f=Q.useMemo(()=>{let m=e;const h=e.columns.find(b=>b.direction!==0);return h&&(m=N.orderBy(e,[h])),w4(m,t)},[e,t]);Q.useLayoutEffect(()=>{c.current=e},[e]);const p=e!==c.current;return V.jsx("div",{className:_4.component,ref:u,children:V.jsx(y4,{dataTable:f,dataOptions:t,isLoading:p,onSortUpdate:n,height:l,width:o,customStyles:ie({sortIcon:"caret",showFieldTypeIcon:!1},r),themeSettings:a})})},C4=e=>({"& .MuiPaginationItem-circular.Mui-selected":{color:e.chart.textColor},"& .MuiPaginationItem-circular":{color:e.chart.secondaryTextColor,fontFamily:e.typography.fontFamily}});var T4=Object.prototype,E4=T4.hasOwnProperty;function M4(e,t){return e!=null&&E4.call(e,t)}var S4=M4,P4=S4,R4=N._hasPath;function O4(e,t){return e!=null&&R4(e,t,P4)}var k4=O4;const N4=N.getDefaultExportFromCjs(k4);function D4(e,t){for(const r of t)N4(e,r)&&console.warn(`Prop '${r}' has been deprecated. Please refer to the documentation at https://sisense.dev/guides/sdk/ for the updated prop and use that instead.`)}const L4=e=>(D4(e,["headersColor","alternatingRowsColor","alternatingColumnsColor"]),{paddingVertical:e.paddingVertical,paddingHorizontal:e.paddingHorizontal,header:ie(ie({},e.headersColor?{color:{enabled:e.headersColor}}:null),e.header),rows:ie(ie({},e.alternatingRowsColor?{alternatingColor:{enabled:e.alternatingRowsColor}}:null),e.rows),columns:ie(ie({},e.alternatingColumnsColor?{alternatingColor:{enabled:e.alternatingColumnsColor}}:null),e.columns)}),A4=25,I4=10,eb=({dataSet:e,dataOptions:t,styleOptions:r={},filters:n})=>{const{rowsPerPage:a=A4,width:o,height:l}=r,{themeSettings:u}=Gt(),[c,f]=Q.useState(0),{filters:p,relations:m}=N.getFilterListAndRelations(n),[h,b]=Q.useState(1),_=Q.useRef(null),g=Q.useMemo(()=>qv(t),[t]),C=Q.useMemo(()=>Bv(g.columns.filter(N.isValue)),[g]),[M,E]=Q.useState(g),[x,T]=Q.useState(e),[w,P]=N5({dataSet:x,dataOptions:M,filters:p,filterRelations:m,count:a*I4,offset:c}),R=z5({data:w,innerDataOptions:P,dataColumnNamesMapping:C,needToAggregate:!jn(x)});Q.useEffect(()=>{E(g),T(e),b(1),f(0)},[e,g]);const D=Q.useCallback(z=>{if(!w)return;Math.floor(w.rows.length/a)===z&&f(w.rows.length),b(z)},[w,a]),A=Q.useCallback(z=>{b(1),f(0),M&&E(A5(M,z))},[M]);return P?V.jsx(Li,{defaultSize:Xc("table"),size:{width:o,height:l},children:z=>{if(!R)return V.jsx(Zc,{themeSettings:u});if(N.isDataTableEmpty(R))return V.jsx(Yc,{iconType:"table"});const k={columns:R.columns,rows:R.rows.slice((h-1)*a,h*a)},O=Math.ceil(R.rows.length/a),F=O>1?32:0;return V.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:u.chart.backgroundColor},"aria-label":"table-root",children:[V.jsx(x4,{dataTable:k,dataOptions:P,designOptions:L4(r),themeSettings:u,width:z.width,height:z.height-F,onSortUpdate:A}),O>1&&V.jsx(Ng,{ref:_,page:h,count:O,onChange:(j,I)=>D(I),sx:C4(u)})]})}}):null},tb=e=>{const{dataSet:t}=e;return!!t&&typeof t!="string"&&"rows"in t&&"columns"in t},z4=e=>{if(!jn(e.dataSet))throw"error, advanced charts only works against a data model";const t=N.cloneDeep(e.dataOptions),r=t.value.filter(a=>(a==null?void 0:a.trend)!==void 0).map(a=>N.trend(a.column,`${N.TREND_PREFIX}_${a.column.name}`,a.trend));t.value.push(...r);const n=t.value.filter(a=>(a==null?void 0:a.forecast)!==void 0).map(a=>N.forecast(a.column,`${N.FORECAST_PREFIX}_${a.column.name}`,a.forecast));return t.value.push(...n),V.jsx(Yv,he(ie({},e),{dataOptions:t}))},Ld=qn({componentName:"Chart",shouldSkipSisenseContextWaiting:tb,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(e=>{if($4(e))return V.jsx(eb,ie({},e));if(W4(e))return V.jsx(z4,ie({},e));if(rb(e))return V.jsx(Yv,ie({},e));throw new N.TranslatableError("errors.chartInvalidProps")});function $4(e){return e.chartType==="table"&&"columns"in e.dataOptions}function rb(e){return e.chartType!=="table"}function W4(e){return!rb(e)||!N.isCartesian(e.chartType)?!1:e.dataOptions.value.some(r=>(r==null?void 0:r.forecast)!==void 0||(r==null?void 0:r.trend)!==void 0)}const nb="sdkHookInit",F4=(e,t,r,n)=>{if(!r)return;_s(nb,{packageName:t,packageVersion:"1.16.0",hookName:e},r.httpClient).finally(n)};function j4(e){const{app:t,tracking:r}=bt(),n=Q.useRef(!1);Q.useEffect(()=>{if(t!=null&&t.httpClient&&!n.current){const a={packageName:r.packageName,packageVersion:"1.16.0",hookName:e};_s(nb,a,t.httpClient,!r.enabled).finally(()=>n.current=!0)}},[t,r,e])}const B4=e=>t=>(...r)=>(j4(e),t(...r));function H4(e){return V4(e.dataSet)}function V4(e){return!!e&&typeof e!="string"&&"rows"in e&&"columns"in e}const ib=qn({componentName:"Table",shouldSkipSisenseContextWaiting:H4})(e=>V.jsx(eb,ie({},e))),U4=25,q4=10;function G4(e){return Je("MuiDivider",e)}const Gp=Ze("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Y4=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],X4=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:l,textAlign:u,variant:c}=e;return at({root:["root",t&&"absolute",c,o&&"light",l==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&l==="vertical"&&"withChildrenVertical",u==="right"&&l!=="vertical"&&"textAlignRight",u==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},G4,n)},Z4=ke("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>te({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:it(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>te({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>te({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>te({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>te({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),K4=ke("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>te({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),ki=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:l,component:u=o?"div":"hr",flexItem:c=!1,light:f=!1,orientation:p="horizontal",role:m=u!=="hr"?"separator":void 0,textAlign:h="center",variant:b="fullWidth"}=n,_=Me(n,Y4),g=te({},n,{absolute:a,component:u,flexItem:c,light:f,orientation:p,role:m,textAlign:h,variant:b}),C=X4(g);return V.jsx(Z4,te({as:u,className:Oe(C.root,l),role:m,ref:r,ownerState:g},_,{children:o?V.jsx(K4,{className:C.wrapper,ownerState:g,children:o}):null}))});ki.muiSkipListHighlight=!0;process.env.NODE_ENV!=="production"&&(ki.propTypes={absolute:v.bool,children:v.node,classes:v.object,className:v.string,component:v.elementType,flexItem:v.bool,light:v.bool,orientation:v.oneOf(["horizontal","vertical"]),role:v.string,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),textAlign:v.oneOf(["center","left","right"]),variant:v.oneOfType([v.oneOf(["fullWidth","inset","middle"]),v.string])});function Q4(e){return Je("MuiListSubheader",e)}Ze("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const J4=["className","color","component","disableGutters","disableSticky","inset"],ej=e=>{const{classes:t,color:r,disableGutters:n,inset:a,disableSticky:o}=e,l={root:["root",r!=="default"&&`color${De(r)}`,!n&&"gutters",a&&"inset",!o&&"sticky"]};return at(l,Q4,t)},tj=ke("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${De(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>te({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Ad=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiListSubheader"}),{className:a,color:o="default",component:l="li",disableGutters:u=!1,disableSticky:c=!1,inset:f=!1}=n,p=Me(n,J4),m=te({},n,{color:o,component:l,disableGutters:u,disableSticky:c,inset:f}),h=ej(m);return V.jsx(tj,te({as:l,className:Oe(h.root,a),ref:r,ownerState:m},p))});Ad.muiSkipListHighlight=!0;process.env.NODE_ENV!=="production"&&(Ad.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOf(["default","inherit","primary"]),component:v.elementType,disableGutters:v.bool,disableSticky:v.bool,inset:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});const ss=Z.createContext({});process.env.NODE_ENV!=="production"&&(ss.displayName="ListContext");function rj(e){return Je("MuiList",e)}Ze("MuiList",["root","padding","dense","subheader"]);const nj=["children","className","component","dense","disablePadding","subheader"],ij=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return at({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},rj,t)},aj=ke("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>te({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ab=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiList"}),{children:a,className:o,component:l="ul",dense:u=!1,disablePadding:c=!1,subheader:f}=n,p=Me(n,nj),m=Z.useMemo(()=>({dense:u}),[u]),h=te({},n,{component:l,dense:u,disablePadding:c}),b=ij(h);return V.jsx(ss.Provider,{value:m,children:V.jsxs(aj,te({as:l,className:Oe(b.root,o),ref:r,ownerState:h},p,{children:[f,a]}))})});process.env.NODE_ENV!=="production"&&(ab.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,dense:v.bool,disablePadding:v.bool,subheader:v.node,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});const oj=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Jl(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Yp(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function ob(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function sa(e,t,r,n,a,o){let l=!1,u=a(e,t,t?r:!1);for(;u;){if(u===e.firstChild){if(l)return!1;l=!0}const c=n?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!ob(u,o)||c)u=a(e,u,r);else return u.focus(),!0}return!1}const Id=Z.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:l,className:u,disabledItemsFocusable:c=!1,disableListWrap:f=!1,onKeyDown:p,variant:m="selectedMenu"}=t,h=Me(t,oj),b=Z.useRef(null),_=Z.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Bn(()=>{a&&b.current.focus()},[a]),Z.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,{direction:T})=>{const w=!b.current.style.width;if(x.clientHeight<b.current.clientHeight&&w){const P=`${Sg(Lt(x))}px`;b.current.style[T==="rtl"?"paddingLeft":"paddingRight"]=P,b.current.style.width=`calc(100% + ${P})`}return b.current}}),[]);const g=x=>{const T=b.current,w=x.key,P=Lt(T).activeElement;if(w==="ArrowDown")x.preventDefault(),sa(T,P,f,c,Jl);else if(w==="ArrowUp")x.preventDefault(),sa(T,P,f,c,Yp);else if(w==="Home")x.preventDefault(),sa(T,null,f,c,Jl);else if(w==="End")x.preventDefault(),sa(T,null,f,c,Yp);else if(w.length===1){const R=_.current,D=w.toLowerCase(),A=performance.now();R.keys.length>0&&(A-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&D!==R.keys[0]&&(R.repeating=!1)),R.lastTime=A,R.keys.push(D);const z=P&&!R.repeating&&ob(P,R);R.previousKeyMatched&&(z||sa(T,P,!1,c,Jl,R))?x.preventDefault():R.previousKeyMatched=!1}p&&p(x)},C=At(b,r);let M=-1;Z.Children.forEach(l,(x,T)=>{if(!Z.isValidElement(x)){M===T&&(M+=1,M>=l.length&&(M=-1));return}process.env.NODE_ENV!=="production"&&Ma.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
267
|
-
`)),x.props.disabled||(m==="selectedMenu"&&x.props.selected||M===-1)&&(M=T),M===T&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(M+=1,M>=l.length&&(M=-1))});const E=Z.Children.map(l,(x,T)=>{if(T===M){const w={};return o&&(w.autoFocus=!0),x.props.tabIndex===void 0&&m==="selectedMenu"&&(w.tabIndex=0),Z.cloneElement(x,w)}return x});return V.jsx(ab,te({role:"menu",ref:C,className:u,onKeyDown:g,tabIndex:a?0:-1},h,{children:E}))});process.env.NODE_ENV!=="production"&&(Id.propTypes={autoFocus:v.bool,autoFocusItem:v.bool,children:v.node,className:v.string,disabledItemsFocusable:v.bool,disableListWrap:v.bool,onKeyDown:v.func,variant:v.oneOf(["menu","selectedMenu"])});function sj(e){const t=Lt(e);return t.body===e?Sa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ya(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Xp(e){return parseInt(Sa(e).getComputedStyle(e).paddingRight,10)||0}function lj(e){const r=["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 r||n}function Zp(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,l=>{const u=o.indexOf(l)===-1,c=!lj(l);u&&c&&ya(l,a)})}function eu(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function uj(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(sj(n)){const l=Sg(Lt(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Xp(n)+l}px`;const u=Lt(n).querySelectorAll(".mui-fixed");[].forEach.call(u,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Xp(c)+l}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Lt(n).body;else{const l=n.parentElement,u=Sa(n);o=(l==null?void 0:l.nodeName)==="HTML"&&u.getComputedStyle(l).overflowY==="scroll"?l:n}r.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()=>{r.forEach(({value:o,el:l,property:u})=>{o?l.style.setProperty(u,o):l.style.removeProperty(u)})}}function cj(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class dj{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&ya(t.modalRef,!1);const a=cj(r);Zp(r,t.mount,t.modalRef,a,!0);const o=eu(this.containers,l=>l.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=eu(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=uj(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=eu(this.containers,l=>l.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&ya(t.modalRef,r),Zp(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const l=o.modals[o.modals.length-1];l.modalRef&&ya(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function fj(e){return typeof e=="function"?e():e}function hj(e){return e?e.props.hasOwnProperty("in"):!1}const pj=new dj;function mj(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=pj,closeAfterTransition:o=!1,onTransitionEnter:l,onTransitionExited:u,children:c,onClose:f,open:p,rootRef:m}=e,h=Z.useRef({}),b=Z.useRef(null),_=Z.useRef(null),g=At(_,m),[C,M]=Z.useState(!p),E=hj(c);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const T=()=>Lt(b.current),w=()=>(h.current.modalRef=_.current,h.current.mount=b.current,h.current),P=()=>{a.mount(w(),{disableScrollLock:n}),_.current&&(_.current.scrollTop=0)},R=Yr(()=>{const B=fj(t)||T().body;a.add(w(),B),_.current&&P()}),D=Z.useCallback(()=>a.isTopModal(w()),[a]),A=Yr(B=>{b.current=B,B&&(p&&D()?P():_.current&&ya(_.current,x))}),z=Z.useCallback(()=>{a.remove(w(),x)},[x,a]);Z.useEffect(()=>()=>{z()},[z]),Z.useEffect(()=>{p?R():(!E||!o)&&z()},[p,z,E,o,R]);const k=B=>U=>{var q;(q=B.onKeyDown)==null||q.call(B,U),!(U.key!=="Escape"||U.which===229||!D())&&(r||(U.stopPropagation(),f&&f(U,"escapeKeyDown")))},O=B=>U=>{var q;(q=B.onClick)==null||q.call(B,U),U.target===U.currentTarget&&f&&f(U,"backdropClick")};return{getRootProps:(B={})=>{const U=$y(e);delete U.onTransitionEnter,delete U.onTransitionExited;const q=te({},U,B);return te({role:"presentation"},q,{onKeyDown:k(q),ref:g})},getBackdropProps:(B={})=>{const U=B;return te({"aria-hidden":!0},U,{onClick:O(U),open:p})},getTransitionProps:()=>{const B=()=>{M(!1),l&&l()},U=()=>{M(!0),u&&u(),o&&z()};return{onEnter:pp(B,c==null?void 0:c.props.onEnter),onExited:pp(U,c==null?void 0:c.props.onExited)}},rootRef:g,portalRef:A,isTopModal:D,exited:C,hasTransition:E}}const vj=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function gj(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 yj(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function bj(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||yj(e))}function _j(e){const t=[],r=[];return Array.from(e.querySelectorAll(vj)).forEach((n,a)=>{const o=gj(n);o===-1||!bj(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function wj(){return!0}function ls(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=_j,isEnabled:l=wj,open:u}=e,c=Z.useRef(!1),f=Z.useRef(null),p=Z.useRef(null),m=Z.useRef(null),h=Z.useRef(null),b=Z.useRef(!1),_=Z.useRef(null),g=At(t.ref,_),C=Z.useRef(null);Z.useEffect(()=>{!u||!_.current||(b.current=!r)},[r,u]),Z.useEffect(()=>{if(!u||!_.current)return;const x=Lt(_.current);return _.current.contains(x.activeElement)||(_.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(`
|
|
268
|
-
`)),_.current.setAttribute("tabIndex","-1")),b.current&&_.current.focus()),()=>{a||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[u]),Z.useEffect(()=>{if(!u||!_.current)return;const x=Lt(_.current),T=R=>{C.current=R,!(n||!l()||R.key!=="Tab")&&x.activeElement===_.current&&R.shiftKey&&(c.current=!0,p.current&&p.current.focus())},w=()=>{const R=_.current;if(R===null)return;if(!x.hasFocus()||!l()||c.current){c.current=!1;return}if(R.contains(x.activeElement)||n&&x.activeElement!==f.current&&x.activeElement!==p.current)return;if(x.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!b.current)return;let D=[];if((x.activeElement===f.current||x.activeElement===p.current)&&(D=o(_.current)),D.length>0){var A,z;const k=!!((A=C.current)!=null&&A.shiftKey&&((z=C.current)==null?void 0:z.key)==="Tab"),O=D[0],F=D[D.length-1];typeof O!="string"&&typeof F!="string"&&(k?F.focus():O.focus())}else R.focus()};x.addEventListener("focusin",w),x.addEventListener("keydown",T,!0);const P=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(P),x.removeEventListener("focusin",w),x.removeEventListener("keydown",T,!0)}},[r,n,a,l,u,o]);const M=x=>{m.current===null&&(m.current=x.relatedTarget),b.current=!0,h.current=x.target;const T=t.props.onFocus;T&&T(x)},E=x=>{m.current===null&&(m.current=x.relatedTarget),b.current=!0};return V.jsxs(Z.Fragment,{children:[V.jsx("div",{tabIndex:u?0:-1,onFocus:E,ref:f,"data-testid":"sentinelStart"}),Z.cloneElement(t,{ref:g,onFocus:M}),V.jsx("div",{tabIndex:u?0:-1,onFocus:E,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ls.propTypes={children:Gn,disableAutoFocus:v.bool,disableEnforceFocus:v.bool,disableRestoreFocus:v.bool,getTabbable:v.func,isEnabled:v.func,open:v.bool.isRequired});process.env.NODE_ENV!=="production"&&(ls.propTypes=fd(ls.propTypes));const xj=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Cj={entering:{opacity:1},entered:{opacity:1}},zd=Z.forwardRef(function(t,r){const n=Ka(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:l=!0,children:u,easing:c,in:f,onEnter:p,onEntered:m,onEntering:h,onExit:b,onExited:_,onExiting:g,style:C,timeout:M=a,TransitionComponent:E=Fr}=t,x=Me(t,xj),T=Z.useRef(null),w=At(T,u.ref,r),P=j=>I=>{if(j){const B=T.current;I===void 0?j(B):j(B,I)}},R=P(h),D=P((j,I)=>{const B=is({style:C,timeout:M,easing:c},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",B),j.style.transition=n.transitions.create("opacity",B),p&&p(j,I)}),A=P(m),z=P(g),k=P(j=>{const I=is({style:C,timeout:M,easing:c},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",I),j.style.transition=n.transitions.create("opacity",I),b&&b(j)}),O=P(_),F=j=>{o&&o(T.current,j)};return V.jsx(E,te({appear:l,in:f,nodeRef:T,onEnter:D,onEntered:A,onEntering:R,onExit:k,onExited:O,onExiting:z,addEndListener:F,timeout:M},x,{children:(j,I)=>Z.cloneElement(u,te({style:te({opacity:0,visibility:j==="exited"&&!f?"hidden":void 0},Cj[j],C,u.props.style),ref:w},I))}))});process.env.NODE_ENV!=="production"&&(zd.propTypes={addEndListener:v.func,appear:v.bool,children:Gn.isRequired,easing:v.oneOfType([v.shape({enter:v.string,exit:v.string}),v.string]),in:v.bool,onEnter:v.func,onEntered:v.func,onEntering:v.func,onExit:v.func,onExited:v.func,onExiting:v.func,style:v.object,timeout:v.oneOfType([v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})])});function Tj(e){return Je("MuiBackdrop",e)}Ze("MuiBackdrop",["root","invisible"]);const Ej=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Mj=e=>{const{classes:t,invisible:r}=e;return at({root:["root",r&&"invisible"]},Tj,t)},Sj=ke("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.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"})),$d=Z.forwardRef(function(t,r){var n,a,o;const l=et({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:f="div",components:p={},componentsProps:m={},invisible:h=!1,open:b,slotProps:_={},slots:g={},TransitionComponent:C=zd,transitionDuration:M}=l,E=Me(l,Ej),x=te({},l,{component:f,invisible:h}),T=Mj(x),w=(n=_.root)!=null?n:m.root;return V.jsx(C,te({in:b,timeout:M},E,{children:V.jsx(Sj,te({"aria-hidden":!0},w,{as:(a=(o=g.root)!=null?o:p.Root)!=null?a:f,className:Oe(T.root,c,w==null?void 0:w.className),ownerState:te({},x,w==null?void 0:w.ownerState),classes:T,ref:r,children:u}))}))});process.env.NODE_ENV!=="production"&&($d.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,components:v.shape({Root:v.elementType}),componentsProps:v.shape({root:v.object}),invisible:v.bool,open:v.bool.isRequired,slotProps:v.shape({root:v.object}),slots:v.shape({root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),TransitionComponent:v.elementType,transitionDuration:v.oneOfType([v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})])});function Pj(e){return Je("MuiModal",e)}Ze("MuiModal",["root","hidden","backdrop"]);const Rj=["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"],Oj=e=>{const{open:t,exited:r,classes:n}=e;return at({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Pj,n)},kj=ke("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.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"})),Nj=ke($d,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Wd=Z.forwardRef(function(t,r){var n,a,o,l,u,c;const f=et({name:"MuiModal",props:t}),{BackdropComponent:p=Nj,BackdropProps:m,className:h,closeAfterTransition:b=!1,children:_,container:g,component:C,components:M={},componentsProps:E={},disableAutoFocus:x=!1,disableEnforceFocus:T=!1,disableEscapeKeyDown:w=!1,disablePortal:P=!1,disableRestoreFocus:R=!1,disableScrollLock:D=!1,hideBackdrop:A=!1,keepMounted:z=!1,onBackdropClick:k,open:O,slotProps:F,slots:j}=f,I=Me(f,Rj),B=te({},f,{closeAfterTransition:b,disableAutoFocus:x,disableEnforceFocus:T,disableEscapeKeyDown:w,disablePortal:P,disableRestoreFocus:R,disableScrollLock:D,hideBackdrop:A,keepMounted:z}),{getRootProps:U,getBackdropProps:q,getTransitionProps:G,portalRef:$,isTopModal:H,exited:ee,hasTransition:X}=mj(te({},B,{rootRef:r})),K=te({},B,{exited:ee}),J=Oj(K),ne={};if(_.props.tabIndex===void 0&&(ne.tabIndex="-1"),X){const{onEnter:ve,onExited:de}=G();ne.onEnter=ve,ne.onExited=de}const le=(n=(a=j==null?void 0:j.root)!=null?a:M.Root)!=null?n:kj,se=(o=(l=j==null?void 0:j.backdrop)!=null?l:M.Backdrop)!=null?o:p,ue=(u=F==null?void 0:F.root)!=null?u:E.root,fe=(c=F==null?void 0:F.backdrop)!=null?c:E.backdrop,pe=gn({elementType:le,externalSlotProps:ue,externalForwardedProps:I,getSlotProps:U,additionalProps:{ref:r,as:C},ownerState:K,className:Oe(h,ue==null?void 0:ue.className,J==null?void 0:J.root,!K.open&&K.exited&&(J==null?void 0:J.hidden))}),oe=gn({elementType:se,externalSlotProps:fe,additionalProps:m,getSlotProps:ve=>q(te({},ve,{onClick:de=>{k&&k(de),ve!=null&&ve.onClick&&ve.onClick(de)}})),className:Oe(fe==null?void 0:fe.className,m==null?void 0:m.className,J==null?void 0:J.backdrop),ownerState:K});return!z&&!O&&(!X||ee)?null:V.jsx(Na,{ref:$,container:g,disablePortal:P,children:V.jsxs(le,te({},pe,{children:[!A&&p?V.jsx(se,te({},oe)):null,V.jsx(ls,{disableEnforceFocus:T,disableAutoFocus:x,disableRestoreFocus:R,isEnabled:H,open:O,children:Z.cloneElement(_,ne)})]}))})});process.env.NODE_ENV!=="production"&&(Wd.propTypes={BackdropComponent:v.elementType,BackdropProps:v.object,children:Gn.isRequired,classes:v.object,className:v.string,closeAfterTransition:v.bool,component:v.elementType,components:v.shape({Backdrop:v.elementType,Root:v.elementType}),componentsProps:v.shape({backdrop:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),container:v.oneOfType([Zr,v.func]),disableAutoFocus:v.bool,disableEnforceFocus:v.bool,disableEscapeKeyDown:v.bool,disablePortal:v.bool,disableRestoreFocus:v.bool,disableScrollLock:v.bool,hideBackdrop:v.bool,keepMounted:v.bool,onBackdropClick:v.func,onClose:v.func,onTransitionEnter:v.func,onTransitionExited:v.func,open:v.bool.isRequired,slotProps:v.shape({backdrop:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),slots:v.shape({backdrop:v.elementType,root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function Dj(e){return Je("MuiPaper",e)}Ze("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 Lj=["className","component","elevation","square","variant"],Aj=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return at(o,Dj,a)},Ij=ke("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;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(${it("#fff",Vp(t.elevation))}, ${it("#fff",Vp(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),qs=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:l=1,square:u=!1,variant:c="elevation"}=n,f=Me(n,Lj),p=te({},n,{component:o,elevation:l,square:u,variant:c}),m=Aj(p);return process.env.NODE_ENV!=="production"&&Ka().shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
269
|
-
`)),V.jsx(Ij,te({as:o,ownerState:p,className:Oe(m.root,a),ref:r},f))});process.env.NODE_ENV!=="production"&&(qs.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,elevation:_n(Or,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOfType([v.oneOf(["elevation","outlined"]),v.string])});function zj(e){return Je("MuiPopover",e)}Ze("MuiPopover",["root","paper"]);const $j=["onEntering"],Wj=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Fj=["slotProps"];function Kp(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Qp(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Jp(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Vo(e){return typeof e=="function"?e():e}const jj=e=>{const{classes:t}=e;return at({root:["root"],paper:["paper"]},zj,t)},Bj=ke(Wd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sb=ke(qs,{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}),Gs=Z.forwardRef(function(t,r){var n,a,o;const l=et({props:t,name:"MuiPopover"}),{action:u,anchorEl:c,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:m="anchorEl",children:h,className:b,container:_,elevation:g=8,marginThreshold:C=16,open:M,PaperProps:E={},slots:x,slotProps:T,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:P=Ra,transitionDuration:R="auto",TransitionProps:{onEntering:D}={},disableScrollLock:A=!1}=l,z=Me(l.TransitionProps,$j),k=Me(l,Wj),O=(n=T==null?void 0:T.paper)!=null?n:E,F=Z.useRef(),j=At(F,O.ref),I=te({},l,{anchorOrigin:f,anchorReference:m,elevation:g,marginThreshold:C,externalPaperSlotProps:O,transformOrigin:w,TransitionComponent:P,transitionDuration:R,TransitionProps:z}),B=jj(I),U=Z.useCallback(()=>{if(m==="anchorPosition")return process.env.NODE_ENV!=="production"&&(p||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),p;const ve=Vo(c),de=ve&&ve.nodeType===1?ve:Lt(F.current).body,_e=de.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const we=de.getBoundingClientRect();process.env.NODE_ENV!=="test"&&we.top===0&&we.left===0&&we.right===0&&we.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(`
|
|
270
|
-
`))}return{top:_e.top+Kp(_e,f.vertical),left:_e.left+Qp(_e,f.horizontal)}},[c,f.horizontal,f.vertical,p,m]),q=Z.useCallback(ve=>({vertical:Kp(ve,w.vertical),horizontal:Qp(ve,w.horizontal)}),[w.horizontal,w.vertical]),G=Z.useCallback(ve=>{const de={width:ve.offsetWidth,height:ve.offsetHeight},_e=q(de);if(m==="none")return{top:null,left:null,transformOrigin:Jp(_e)};const we=U();let Ee=we.top-_e.vertical,Ce=we.left-_e.horizontal;const ct=Ee+de.height,Ve=Ce+de.width,tt=Sa(Vo(c)),dt=tt.innerHeight-C,Ie=tt.innerWidth-C;if(C!==null&&Ee<C){const Ue=Ee-C;Ee-=Ue,_e.vertical+=Ue}else if(C!==null&&ct>dt){const Ue=ct-dt;Ee-=Ue,_e.vertical+=Ue}if(process.env.NODE_ENV!=="production"&&de.height>dt&&de.height&&dt&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${de.height-dt}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
271
|
-
`)),C!==null&&Ce<C){const Ue=Ce-C;Ce-=Ue,_e.horizontal+=Ue}else if(Ve>Ie){const Ue=Ve-Ie;Ce-=Ue,_e.horizontal+=Ue}return{top:`${Math.round(Ee)}px`,left:`${Math.round(Ce)}px`,transformOrigin:Jp(_e)}},[c,m,U,q,C]),[$,H]=Z.useState(M),ee=Z.useCallback(()=>{const ve=F.current;if(!ve)return;const de=G(ve);de.top!==null&&(ve.style.top=de.top),de.left!==null&&(ve.style.left=de.left),ve.style.transformOrigin=de.transformOrigin,H(!0)},[G]);Z.useEffect(()=>(A&&window.addEventListener("scroll",ee),()=>window.removeEventListener("scroll",ee)),[c,A,ee]);const X=(ve,de)=>{D&&D(ve,de),ee()},K=()=>{H(!1)};Z.useEffect(()=>{M&&ee()}),Z.useImperativeHandle(u,()=>M?{updatePosition:()=>{ee()}}:null,[M,ee]),Z.useEffect(()=>{if(!M)return;const ve=i5(()=>{ee()}),de=Sa(c);return de.addEventListener("resize",ve),()=>{ve.clear(),de.removeEventListener("resize",ve)}},[c,M,ee]);let J=R;R==="auto"&&!P.muiSupportAuto&&(J=void 0);const ne=_||(c?Lt(Vo(c)).body:void 0),le=(a=x==null?void 0:x.root)!=null?a:Bj,se=(o=x==null?void 0:x.paper)!=null?o:sb,ue=gn({elementType:se,externalSlotProps:te({},O,{style:$?O.style:te({},O.style,{opacity:0})}),additionalProps:{elevation:g,ref:j},ownerState:I,className:Oe(B.paper,O==null?void 0:O.className)}),fe=gn({elementType:le,externalSlotProps:(T==null?void 0:T.root)||{},externalForwardedProps:k,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:ne,open:M},ownerState:I,className:Oe(B.root,b)}),{slotProps:pe}=fe,oe=Me(fe,Fj);return V.jsx(le,te({},oe,!Iy(le)&&{slotProps:pe,disableScrollLock:A},{children:V.jsx(P,te({appear:!0,in:M,onEntering:X,onExited:K,timeout:J},z,{children:V.jsx(se,te({},ue,{children:h}))}))}))});process.env.NODE_ENV!=="production"&&(Gs.propTypes={action:Va,anchorEl:_n(v.oneOfType([Zr,v.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Vo(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.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(`
|
|
272
|
-
`))}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(`
|
|
273
|
-
`))}return null}),anchorOrigin:v.shape({horizontal:v.oneOfType([v.oneOf(["center","left","right"]),v.number]).isRequired,vertical:v.oneOfType([v.oneOf(["bottom","center","top"]),v.number]).isRequired}),anchorPosition:v.shape({left:v.number.isRequired,top:v.number.isRequired}),anchorReference:v.oneOf(["anchorEl","anchorPosition","none"]),children:v.node,classes:v.object,className:v.string,container:v.oneOfType([Zr,v.func]),disableScrollLock:v.bool,elevation:Or,marginThreshold:v.number,onClose:v.func,open:v.bool.isRequired,PaperProps:v.shape({component:yg}),slotProps:v.shape({paper:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),slots:v.shape({paper:v.elementType,root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),transformOrigin:v.shape({horizontal:v.oneOfType([v.oneOf(["center","left","right"]),v.number]).isRequired,vertical:v.oneOfType([v.oneOf(["bottom","center","top"]),v.number]).isRequired}),TransitionComponent:v.elementType,transitionDuration:v.oneOfType([v.oneOf(["auto"]),v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})]),TransitionProps:v.object});function Hj(e){return Je("MuiMenu",e)}Ze("MuiMenu",["root","paper","list"]);const Vj=["onEntering"],Uj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],qj={vertical:"top",horizontal:"right"},Gj={vertical:"top",horizontal:"left"},Yj=e=>{const{classes:t}=e;return at({root:["root"],paper:["paper"],list:["list"]},Hj,t)},Xj=ke(Gs,{shouldForwardProp:e=>qa(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zj=ke(sb,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Kj=ke(Id,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Fd=Z.forwardRef(function(t,r){var n,a;const o=et({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:u,className:c,disableAutoFocusItem:f=!1,MenuListProps:p={},onClose:m,open:h,PaperProps:b={},PopoverClasses:_,transitionDuration:g="auto",TransitionProps:{onEntering:C}={},variant:M="selectedMenu",slots:E={},slotProps:x={}}=o,T=Me(o.TransitionProps,Vj),w=Me(o,Uj),P=ud(),R=te({},o,{autoFocus:l,disableAutoFocusItem:f,MenuListProps:p,onEntering:C,PaperProps:b,transitionDuration:g,TransitionProps:T,variant:M}),D=Yj(R),A=l&&!f&&h,z=Z.useRef(null),k=(q,G)=>{z.current&&z.current.adjustStyleForScrollbar(q,{direction:P?"rtl":"ltr"}),C&&C(q,G)},O=q=>{q.key==="Tab"&&(q.preventDefault(),m&&m(q,"tabKeyDown"))};let F=-1;Z.Children.map(u,(q,G)=>{Z.isValidElement(q)&&(process.env.NODE_ENV!=="production"&&Ma.isFragment(q)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
274
|
-
`)),q.props.disabled||(M==="selectedMenu"&&q.props.selected||F===-1)&&(F=G))});const j=(n=E.paper)!=null?n:Zj,I=(a=x.paper)!=null?a:b,B=gn({elementType:E.root,externalSlotProps:x.root,ownerState:R,className:[D.root,c]}),U=gn({elementType:j,externalSlotProps:I,ownerState:R,className:D.paper});return V.jsx(Xj,te({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?qj:Gj,slots:{paper:j,root:E.root},slotProps:{root:B,paper:U},open:h,ref:r,transitionDuration:g,TransitionProps:te({onEntering:k},T),ownerState:R},w,{classes:_,children:V.jsx(Kj,te({onKeyDown:O,actions:z,autoFocus:l&&(F===-1||f),autoFocusItem:A,variant:M},p,{className:Oe(D.list,p.className),children:u}))}))});process.env.NODE_ENV!=="production"&&(Fd.propTypes={anchorEl:v.oneOfType([Zr,v.func]),autoFocus:v.bool,children:v.node,classes:v.object,className:v.string,disableAutoFocusItem:v.bool,MenuListProps:v.object,onClose:v.func,open:v.bool.isRequired,PaperProps:v.object,PopoverClasses:v.object,slotProps:v.shape({paper:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),slots:v.shape({paper:v.elementType,root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),transitionDuration:v.oneOfType([v.oneOf(["auto"]),v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})]),TransitionProps:v.object,variant:v.oneOf(["menu","selectedMenu"])});const em=Ze("MuiListItemIcon",["root","alignItemsFlexStart"]);function Qj(e){return Je("MuiTypography",e)}Ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Jj=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],eB=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:l}=e,u={root:["root",o,e.align!=="inherit"&&`align${De(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return at(u,Qj,l)},tB=ke("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${De(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.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})),tm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},rB={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nB=e=>rB[e]||e,_r=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiTypography"}),a=nB(n.color),o=ug(te({},n,{color:a})),{align:l="inherit",className:u,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:m=!1,variant:h="body1",variantMapping:b=tm}=o,_=Me(o,Jj),g=te({},o,{align:l,color:a,className:u,component:c,gutterBottom:f,noWrap:p,paragraph:m,variant:h,variantMapping:b}),C=c||(m?"p":b[h]||tm[h])||"span",M=eB(g);return V.jsx(tB,te({as:C,ref:r,ownerState:g,className:Oe(M.root,u)},_))});process.env.NODE_ENV!=="production"&&(_r.propTypes={align:v.oneOf(["center","inherit","justify","left","right"]),children:v.node,classes:v.object,className:v.string,component:v.elementType,gutterBottom:v.bool,noWrap:v.bool,paragraph:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOfType([v.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),v.string]),variantMapping:v.object});const rm=Ze("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function iB(e){return Je("MuiMenuItem",e)}const la=Ze("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),aB=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],oB=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},sB=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:l}=e,c=at({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},iB,l);return te({},l,c)},lB=ke(Yn,{shouldForwardProp:e=>qa(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:oB})(({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"}},[`&.${la.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${la.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${la.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:it(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})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${la.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${la.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Gp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Gp.inset}`]:{marginLeft:52},[`& .${rm.root}`]:{marginTop:0,marginBottom:0},[`& .${rm.inset}`]:{paddingLeft:36},[`& .${em.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&te({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${em.root} svg`]:{fontSize:"1.25rem"}}))),jd=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:l=!1,divider:u=!1,disableGutters:c=!1,focusVisibleClassName:f,role:p="menuitem",tabIndex:m,className:h}=n,b=Me(n,aB),_=Z.useContext(ss),g=Z.useMemo(()=>({dense:l||_.dense||!1,disableGutters:c}),[_.dense,l,c]),C=Z.useRef(null);Bn(()=>{a&&(C.current?C.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[a]);const M=te({},n,{dense:g.dense,divider:u,disableGutters:c}),E=sB(n),x=At(C,r);let T;return n.disabled||(T=m!==void 0?m:-1),V.jsx(ss.Provider,{value:g,children:V.jsx(lB,te({ref:x,role:p,tabIndex:T,component:o,focusVisibleClassName:Oe(E.focusVisible,f),className:Oe(E.root,h)},b,{ownerState:M,classes:E}))})});process.env.NODE_ENV!=="production"&&(jd.propTypes={autoFocus:v.bool,children:v.node,classes:v.object,className:v.string,component:v.elementType,dense:v.bool,disabled:v.bool,disableGutters:v.bool,divider:v.bool,focusVisibleClassName:v.string,role:v.string,selected:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),tabIndex:v.number});const lb=({position:e,closeContextMenu:t,itemSections:r,children:n})=>{const a=!!e;return V.jsxs(Fd,{MenuListProps:{dense:!0},anchorReference:"anchorPosition",anchorPosition:e!=null?e:{left:0,top:0},open:a,onClose:t,children:[r==null?void 0:r.map(({sectionTitle:o,items:l})=>{var c;const u=[];return o&&(u.push(V.jsx(Ad,{children:o},`subheader_${o}`)),u.push(V.jsx(ki,{},`divider_${o}`))),[...u,...(c=l==null?void 0:l.map(f=>{var p;return V.jsx(jd,{onClick:()=>{var m;t(),(m=f.onClick)==null||m.call(f)},children:f.caption},(p=f.key)!=null?p:f.caption)}))!=null?c:[]]}),n]})},uB=(e,t)=>{const{drilldownDimensions:r=[],drilldownSelections:n=[]}=t!=null?t:{},[a,o]=Q.useState(n),l=Q.useMemo(()=>r.filter(({expression:m})=>a.every(({nextDimension:h})=>h.expression!==m)),[r,a]),u=Q.useCallback((m,h)=>{o(b=>[...b,{points:m,nextDimension:h}])},[o]),c=Q.useCallback(m=>{o(h=>h.slice(0,m))},[o]),f=Q.useCallback(()=>{o([])},[o]),p=Q.useMemo(()=>cB(e,a),[e,a]);return ie({selectDrilldown:u,sliceDrilldownSelections:c,clearDrilldownSelections:f,drilldownSelections:a,availableDrilldowns:l},p)},cB=(e,t)=>{if(!("category"in e)||!e.category[0])return{drilldownFilters:[],drilldownFiltersDisplayValues:[],drilldownDimension:void 0,dataOptionsWithDrilldown:e};const[r,...n]=e.category;let a=r;const o=[],l=[];return t.forEach(({points:u,nextDimension:c})=>{o.push(N.members(N.translateColumnToAttribure(a),u.map(ub))),l.push(u.map(cb)),a=c}),{drilldownFilters:o,drilldownFiltersDisplayValues:l,drilldownDimension:N.translateColumnToAttribure(a),dataOptionsWithDrilldown:he(ie({},e),{category:[a,...n]})}};function ub(e){return"categoryValue"in e?`${e.categoryValue}`:""}function cb(e){return"categoryDisplayValue"in e?`${e.categoryDisplayValue}`:"categoryValue"in e?`${e.categoryValue}`:""}const dB=Ya(V.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),fB=["slots","slotProps"],hB=ke(Yn)(({theme:e})=>te({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":te({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":te({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:Qh(e.palette.grey[200],.12)}:{backgroundColor:Qh(e.palette.grey[600],.12)})})),pB=ke(dB)({width:24,height:16});function db(e){const{slots:t={},slotProps:r={}}=e,n=Me(e,fB),a=e;return V.jsx("li",{children:V.jsx(hB,te({focusRipple:!0},n,{ownerState:a,children:V.jsx(pB,te({as:t.CollapsedIcon,ownerState:a},r.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(db.propTypes={slotProps:v.shape({collapsedIcon:v.oneOfType([v.func,v.object])}),slots:v.shape({CollapsedIcon:v.elementType}),sx:v.object});function mB(e){return Je("MuiBreadcrumbs",e)}const vB=Ze("MuiBreadcrumbs",["root","ol","li","separator"]),gB=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],yB=e=>{const{classes:t}=e;return at({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},mB,t)},bB=ke(_r,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${vB.li}`]:t.li},t.root]})({}),_B=ke("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),wB=ke("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function xB(e,t,r,n){return e.reduce((a,o,l)=>(l<e.length-1?a=a.concat(o,V.jsx(wB,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${l}`)):a.push(o),a),[])}const fb=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiBreadcrumbs"}),{children:a,className:o,component:l="nav",slots:u={},slotProps:c={},expandText:f="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:m=1,maxItems:h=8,separator:b="/"}=n,_=Me(n,gB),[g,C]=Z.useState(!1),M=te({},n,{component:l,expanded:g,expandText:f,itemsAfterCollapse:p,itemsBeforeCollapse:m,maxItems:h,separator:b}),E=yB(M),x=gn({elementType:u.CollapsedIcon,externalSlotProps:c.collapsedIcon,ownerState:M}),T=Z.useRef(null),w=R=>{const D=()=>{C(!0);const A=T.current.querySelector("a[href],button,[tabindex]");A&&A.focus()};return m+p>=R.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${p}} + itemsBeforeCollapse={${m}} >= maxItems={${h}}`].join(`
|
|
275
|
-
`)),R):[...R.slice(0,m),V.jsx(db,{"aria-label":f,slots:{CollapsedIcon:u.CollapsedIcon},slotProps:{collapsedIcon:x},onClick:D},"ellipsis"),...R.slice(R.length-p,R.length)]},P=Z.Children.toArray(a).filter(R=>(process.env.NODE_ENV!=="production"&&Ma.isFragment(R)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
276
|
-
`)),Z.isValidElement(R))).map((R,D)=>V.jsx("li",{className:E.li,children:R},`child-${D}`));return V.jsx(bB,te({ref:r,component:l,color:"text.secondary",className:Oe(E.root,o),ownerState:M},_,{children:V.jsx(_B,{className:E.ol,ref:T,ownerState:M,children:xB(g||h&&P.length<=h?P:w(P),E.separator,b,M)})}))});process.env.NODE_ENV!=="production"&&(fb.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,expandText:v.string,itemsAfterCollapse:Or,itemsBeforeCollapse:Or,maxItems:Or,separator:v.node,slotProps:v.shape({collapsedIcon:v.oneOfType([v.func,v.object])}),slots:v.shape({CollapsedIcon:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function CB(e){return Je("MuiButton",e)}const Ao=Ze("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),hb=Z.createContext({});process.env.NODE_ENV!=="production"&&(hb.displayName="ButtonGroupContext");const pb=Z.createContext(void 0);process.env.NODE_ENV!=="production"&&(pb.displayName="ButtonGroupButtonContext");const TB=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],EB=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:l}=e,u={root:["root",o,`${o}${De(t)}`,`size${De(a)}`,`${o}Size${De(a)}`,`color${De(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${De(a)}`],endIcon:["icon","endIcon",`iconSize${De(a)}`]},c=at(u,CB,l);return te({},l,c)},mb=e=>te({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),MB=ke(Yn,{shouldForwardProp:e=>qa(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${De(r.color)}`],t[`size${De(r.size)}`],t[`${r.variant}Size${De(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return te({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":te({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":te({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ao.focusVisible}`]:te({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ao.disabled}`]:te({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${it(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ao.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ao.disabled}`]:{boxShadow:"none"}}),SB=ke("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${De(r.size)}`]]}})(({ownerState:e})=>te({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},mb(e))),PB=ke("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${De(r.size)}`]]}})(({ownerState:e})=>te({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},mb(e))),Da=Z.forwardRef(function(t,r){const n=Z.useContext(hb),a=Z.useContext(pb),o=Jc(n,t),l=et({props:o,name:"MuiButton"}),{children:u,color:c="primary",component:f="button",className:p,disabled:m=!1,disableElevation:h=!1,disableFocusRipple:b=!1,endIcon:_,focusVisibleClassName:g,fullWidth:C=!1,size:M="medium",startIcon:E,type:x,variant:T="text"}=l,w=Me(l,TB),P=te({},l,{color:c,component:f,disabled:m,disableElevation:h,disableFocusRipple:b,fullWidth:C,size:M,type:x,variant:T}),R=EB(P),D=E&&V.jsx(SB,{className:R.startIcon,ownerState:P,children:E}),A=_&&V.jsx(PB,{className:R.endIcon,ownerState:P,children:_}),z=a||"";return V.jsxs(MB,te({ownerState:P,className:Oe(n.className,R.root,p,z),component:f,disabled:m,focusRipple:!b,focusVisibleClassName:Oe(R.focusVisible,g),ref:r,type:x},w,{classes:R,children:[D,u,A]}))});process.env.NODE_ENV!=="production"&&(Da.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["inherit","primary","secondary","success","error","info","warning"]),v.string]),component:v.elementType,disabled:v.bool,disableElevation:v.bool,disableFocusRipple:v.bool,disableRipple:v.bool,endIcon:v.node,focusVisibleClassName:v.string,fullWidth:v.bool,href:v.string,size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),startIcon:v.node,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),type:v.oneOfType([v.oneOf(["button","reset","submit"]),v.string]),variant:v.oneOfType([v.oneOf(["contained","outlined","text"]),v.string])});const RB=({clearDrilldownSelections:e,currentDimension:t,setIsHovered:r,themeProps:n})=>{var p,m;const a=((m=(p=t.expression.match(/\[(.*?)]/))==null?void 0:p[1])==null?void 0:m.split(".")[1])||"",o=wr(Da)`
|
|
277
|
-
&& {
|
|
278
|
-
background-color: ${n.activeDrillBackgroundColor};
|
|
279
|
-
color: ${n.primaryButtonTextColor};
|
|
280
|
-
border-radius: 100%;
|
|
281
|
-
border: 2px solid white;
|
|
282
|
-
min-width: 39px;
|
|
283
|
-
width: 39px;
|
|
284
|
-
height: 39px;
|
|
285
|
-
z-index: 10;
|
|
286
|
-
padding: 7px;
|
|
287
|
-
cursor: pointer;
|
|
288
|
-
text-transform: none;
|
|
289
|
-
margin-right: -5px;
|
|
290
|
-
|
|
291
|
-
&:hover {
|
|
292
|
-
background-color: ${n.activeDrillHoverBackgroundColor};
|
|
293
|
-
color: ${n.primaryTextColor};
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
`,l=wr.svg`
|
|
297
|
-
width: 22px;
|
|
298
|
-
height: 22px;
|
|
299
|
-
fill: #9ea2ab;
|
|
300
|
-
`,u=()=>V.jsx(o,{theme:n,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:e,children:V.jsx(l,{width:22,height:22,viewBox:"0 0 24 24",children:V.jsx("path",{fill:"#9EA2AB",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"})})}),c=wr(Da)`
|
|
301
|
-
&& {
|
|
302
|
-
position: relative;
|
|
303
|
-
font-family: ${h=>h.theme.fontFamily};
|
|
304
|
-
border-radius: 0;
|
|
305
|
-
border: 1px solid ${Dr};
|
|
306
|
-
background-color: ${h=>h.theme.chartBackgroundColor};
|
|
307
|
-
border-right: none;
|
|
308
|
-
border-left: none;
|
|
309
|
-
color: ${h=>h.theme.secondaryTextColor};
|
|
310
|
-
padding-right: 1.25rem;
|
|
311
|
-
padding-left: 1.875rem;
|
|
312
|
-
height: 1.64rem;
|
|
313
|
-
font-size: 13px;
|
|
314
|
-
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
|
|
315
|
-
text-transform: none;
|
|
316
|
-
cursor: auto;
|
|
317
|
-
pointer-events: none;
|
|
318
|
-
white-space: nowrap;
|
|
319
|
-
|
|
320
|
-
&:hover {
|
|
321
|
-
background-color: ${h=>h.theme.chartBackgroundColor};
|
|
322
|
-
border: 1px solid ${Dr};
|
|
323
|
-
border-right: none;
|
|
324
|
-
border-left: none;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
`;return{CancelButton:u,CurrentDrillButton:()=>V.jsxs(c,{theme:n,children:[a," (All)",V.jsx("span",{className:"flex items-center justify-between",children:V.jsx("span",{className:"csdk-absolute csdk-right-[0px] csdk-top-[3px] csdk-h-[18px] csdk-w-[18px] csdk-transform csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:"transparent",borderTop:`1px solid ${Dr}`,borderRight:`1px solid ${Dr}`}})})]})}},OB={modifiers:[{name:"offset",options:{offset:[0,12]}}]},kB=({themeProps:e,filterDisplayValues:t,currentTable:r,currentColumn:n})=>V.jsxs("div",{className:"csdk-w-50 csdk-px-[12px] csdk-shadow-md csdk-shadow-gray-500 csdk-rounded-md csdk-bg-white",style:{backgroundColor:e.chartBackgroundColor,color:e.primaryTextColor},children:[V.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[V.jsx(_r,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:"Members"}),V.jsx(_r,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:t.join(", ")})]}),V.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[V.jsx(_r,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:"Table"}),V.jsx(_r,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:r})]}),V.jsxs("div",{className:"csdk-p-3 csdk-pl-1",children:[V.jsx(_r,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:"Column"}),V.jsx(_r,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:n})]})]}),NB=({popperParams:e,currentDimension:t,themeProps:r})=>{const n=t.expression.match(/\[(.*?)]/),[a,o]=n?n[1].split("."):["",""],l=!!e;return V.jsx(eo,{open:l,anchorEl:e==null?void 0:e.anchorEl,placement:"bottom",popperOptions:OB,children:e&&V.jsx(kB,{themeProps:r,filterDisplayValues:e.filterDisplayValues,currentTable:a,currentColumn:o})})},DB=()=>{const{themeSettings:{typography:{primaryTextColor:e,secondaryTextColor:t,fontFamily:r},general:{backgroundColor:n,brandColor:a,primaryButtonTextColor:o},chart:{backgroundColor:l,panelBackgroundColor:u}}}=Gt(),c=u!=l?u:Jo(u,.3),f=Jo(c,.1);return{primaryTextColor:e,secondaryTextColor:t,fontFamily:r,backgroundColor:n,brandColor:a,primaryButtonTextColor:o,chartBackgroundColor:l,activeDrillBackgroundColor:c,activeDrillHoverBackgroundColor:f}};function LB(e){return Je("MuiIconButton",e)}const AB=Ze("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),IB=["edge","children","className","color","disabled","disableFocusRipple","size"],zB=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,l={root:["root",r&&"disabled",n!=="default"&&`color${De(n)}`,a&&`edge${De(a)}`,`size${De(o)}`]};return at(l,LB,t)},$B=ke(Yn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${De(r.color)}`],r.edge&&t[`edge${De(r.edge)}`],t[`size${De(r.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})`:it(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 r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return te({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&te({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":te({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(n.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)},{[`&.${AB.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Ni=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:l,color:u="default",disabled:c=!1,disableFocusRipple:f=!1,size:p="medium"}=n,m=Me(n,IB),h=te({},n,{edge:a,color:u,disabled:c,disableFocusRipple:f,size:p}),b=zB(h);return V.jsx($B,te({className:Oe(b.root,l),centerRipple:!0,focusRipple:!f,disabled:c,ref:r},m,{ownerState:h,children:o}))});process.env.NODE_ENV!=="production"&&(Ni.propTypes={children:_n(v.node,e=>Z.Children.toArray(e.children).some(r=>Z.isValidElement(r)&&r.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(`
|
|
328
|
-
`)):null),classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),v.string]),disabled:v.bool,disableFocusRipple:v.bool,disableRipple:v.bool,edge:v.oneOf(["end","start",!1]),size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});const WB=wr(Ni)`
|
|
329
|
-
&& {
|
|
330
|
-
position: absolute;
|
|
331
|
-
left: 0;
|
|
332
|
-
right: auto;
|
|
333
|
-
margin: auto;
|
|
334
|
-
bottom: 0;
|
|
335
|
-
top: 0;
|
|
336
|
-
z-index: 10;
|
|
337
|
-
background: linear-gradient(to right, white 30%, rgba(255, 255, 255, 0) 100%);
|
|
338
|
-
display: inline-flex;
|
|
339
|
-
|
|
340
|
-
span[aria-label='prev-item'] {
|
|
341
|
-
width: 0;
|
|
342
|
-
height: 0;
|
|
343
|
-
border-top: 6px solid transparent;
|
|
344
|
-
border-bottom: 6px solid transparent;
|
|
345
|
-
border-right: 5px solid #000;
|
|
346
|
-
color: transparent;
|
|
347
|
-
opacity: 0.3;
|
|
348
|
-
|
|
349
|
-
&:hover {
|
|
350
|
-
opacity: 0.8;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
`,FB=wr(Ni)`
|
|
355
|
-
&& {
|
|
356
|
-
position: absolute;
|
|
357
|
-
left: auto;
|
|
358
|
-
right: 0;
|
|
359
|
-
margin: auto;
|
|
360
|
-
bottom: 0;
|
|
361
|
-
top: 0;
|
|
362
|
-
z-index: 10;
|
|
363
|
-
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, white 70%);
|
|
364
|
-
display: inline-flex;
|
|
365
|
-
|
|
366
|
-
span[aria-label='next-item'] {
|
|
367
|
-
width: 0;
|
|
368
|
-
height: 0;
|
|
369
|
-
border-top: 6px solid transparent;
|
|
370
|
-
border-bottom: 6px solid transparent;
|
|
371
|
-
border-left: 5px solid #000;
|
|
372
|
-
color: transparent;
|
|
373
|
-
opacity: 0.3;
|
|
374
|
-
|
|
375
|
-
&:hover {
|
|
376
|
-
opacity: 0.8;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
`,jB=({currentDimension:e,children:t})=>{const r=Q.useRef(null),[n,a]=Q.useState(0),[o,l]=Q.useState(0),[u,c]=Q.useState(0),f=()=>{var b;return(b=r.current)==null?void 0:b.querySelector("ol")};Q.useEffect(()=>{const b=f();if(b){const _=b.clientWidth,g=b.scrollWidth,C=b.scrollLeft;a(_),l(g),c(C)}},[e]),Q.useEffect(()=>{const b=f();function _(){if(b){const M=b.clientWidth;a(M)}}function g(){if(b){const M=b.scrollLeft;c(M)}}const C=new ResizeObserver(_);return b?(C.observe(b),b.addEventListener("scroll",g),()=>{C.disconnect(),b.removeEventListener("scroll",g)}):()=>{}},[]);const p=b=>{const g="smooth",C=f();C&&C.scrollBy({left:b==="right"?200:-200,behavior:g})},m=u!=0,h=Math.floor(o-u)>n;return V.jsxs("div",{style:{position:"relative"},children:[m&&V.jsx(WB,{onClick:()=>p("left"),children:V.jsx("span",{"aria-label":"prev-item",children:"Prev"})}),h&&V.jsx(FB,{onClick:()=>p("right"),children:V.jsx("span",{"aria-label":"next-item",children:"Next"})}),V.jsx("div",{ref:r,children:t})]})},Dr="#F2F2F2",BB=wr(Da)`
|
|
381
|
-
&& {
|
|
382
|
-
font-family: ${({theme:e})=>e.fontFamily};
|
|
383
|
-
position: relative;
|
|
384
|
-
border-radius: 0;
|
|
385
|
-
border: 1px solid ${Dr};
|
|
386
|
-
border-right: none;
|
|
387
|
-
color: ${({active:e,theme:t})=>e==="true"?t.primaryTextColor:t.secondaryTextColor};
|
|
388
|
-
background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillBackgroundColor:t.chartBackgroundColor};
|
|
389
|
-
padding-right: 1.25rem;
|
|
390
|
-
padding-left: 1.875rem;
|
|
391
|
-
height: 1.64rem;
|
|
392
|
-
font-size: 13px;
|
|
393
|
-
text-transform: none;
|
|
394
|
-
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
|
|
395
|
-
white-space: nowrap;
|
|
396
|
-
cursor: ${({active:e})=>e==="true"?"pointer":"auto"};
|
|
397
|
-
margin-right: ${({active:e})=>e==="true"?"5px":"0px"};
|
|
398
|
-
|
|
399
|
-
&:hover {
|
|
400
|
-
background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillHoverBackgroundColor:t.chartBackgroundColor};
|
|
401
|
-
border: 1px solid ${Dr};
|
|
402
|
-
border-right: none;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
.MuiTouchRipple-root {
|
|
406
|
-
display: none;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
`,HB=wr(fb)`
|
|
410
|
-
.MuiBreadcrumbs-ol {
|
|
411
|
-
flex-wrap: nowrap;
|
|
412
|
-
overflow: hidden;
|
|
413
|
-
}
|
|
414
|
-
.MuiBreadcrumbs-separator {
|
|
415
|
-
display: none;
|
|
416
|
-
}
|
|
417
|
-
`,VB=({isActive:e,filterDisplayValue:t,handleMouseEnter:r,handleMouseLeave:n,handleClick:a,themeProps:o,popperParams:l,index:u})=>V.jsx(BB,{theme:o,active:e.toString(),index:u,onMouseEnter:r,onMouseLeave:n,onClick:a,children:V.jsxs("span",{className:"flex items-center justify-between",children:[V.jsxs("span",{className:"mr-2",children:[t.slice(0,2).join(", "),t.length>2&&", ..."]}),e?V.jsx("span",{className:"csdk-absolute csdk-right-0 csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:t===(l==null?void 0:l.filterDisplayValues)?o.activeDrillHoverBackgroundColor:o.activeDrillBackgroundColor,borderTop:`1px solid ${Dr}`,borderRight:`1px solid ${Dr}`,transition:"background-color 0.2s, border-color 0.2s, color 0.2s",zIndex:8}}):void 0,V.jsx("span",{className:`csdk-absolute ${e?"csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-right-[-15px]":"csdk-h-[10px] csdk-w-[10px] csdk-top-[7px] csdk-right-[-5px]"} csdk-transform translate-x-1/2 csdk-rotate-45`,style:{backgroundColor:o.chartBackgroundColor,borderTop:`1px solid ${Dr}`,borderRight:`1px solid ${Dr}`,zIndex:7,transition:"background-color 0.2s, border-color 0.2s, color 0.2s"}})]})}),vb=({filtersDisplayValues:e,currentDimension:t,clearDrilldownSelections:r,sliceDrilldownSelections:n})=>{const[a,o]=Q.useState(null),[l,u]=Q.useState(!1),c=DB(),{CancelButton:f,CurrentDrillButton:p}=RB({clearDrilldownSelections:r,currentDimension:t,isHovered:l,setIsHovered:u,themeProps:c}),m=g=>C=>{u(!0),o({filterDisplayValues:g,anchorEl:C.currentTarget})},h=()=>{u(!1),o(null)},b=g=>g<e.length-1,_=g=>g===e.length-2;return e.length?V.jsx(jB,{currentDimension:t,children:V.jsxs(HB,{separator:null,sx:{backgroundColor:c.chartBackgroundColor,padding:"4px"},children:[V.jsx(f,{}),e.map((g,C)=>{const M=b(C),E=_(C);return V.jsx("div",{children:V.jsx(VB,{isActive:M,isLastActive:E,filterDisplayValue:g,handleMouseEnter:m(g),handleMouseLeave:h,handleClick:()=>n(C+1),themeProps:c,popperParams:a,index:C})},C)}),V.jsx(p,{}),V.jsx(NB,{popperParams:a,currentDimension:t,themeProps:c})]})}):null},UB={category:[],value:[],breakBy:[]},qB=[],GB=e=>{const z=e,{dataOptions:t=UB,filters:r=qB,drilldownOptions:n,onDataPointContextMenu:a,onDataPointsSelected:o,onBeforeRender:l}=z,u=Sr(z,["dataOptions","filters","drilldownOptions","onDataPointContextMenu","onDataPointsSelected","onBeforeRender"]);if(["bubble","scatter"].includes(u.chartType))throw new Error(`Drilldown is not supported for chart type ${u.chartType}`);const[c,f]=Q.useState([]),{selectDrilldown:p,clearDrilldownSelections:m,sliceDrilldownSelections:h,availableDrilldowns:b,drilldownFilters:_,drilldownFiltersDisplayValues:g,drilldownDimension:C,dataOptionsWithDrilldown:M}=uB(t,n),E=Q.useCallback((k,O)=>{p(k,O)},[p]),x=Q.useMemo(()=>n?(k,O)=>{a!=null&&a(k,O)||f([k])}:a,[n,a,f]),T=Q.useMemo(()=>n?(k,O)=>{o!=null&&o(k,O)||f(k)}:o,[n,o,f]),w=Q.useMemo(()=>r.concat(_),[r,_]),P=Q.useMemo(()=>{if(!c.length)return;const k=c.reduce((O,{categoryValue:F})=>(F&&(O[`${F}`]=!0),O),{});return O=>he(ie({},O),{series:O.series.map(F=>he(ie({},F),{data:F.data.map(j=>{var I,B;return k[(B=(I=j.custom)==null?void 0:I.xValue)==null?void 0:B[0]]?j:he(ie({},j),{selected:!0})})}))})},[c]),R=Q.useCallback(k=>{var O,F;return k=(O=P==null?void 0:P(k))!=null?O:k,k=(F=l==null?void 0:l(k))!=null?F:k,k},[l,P]),D=Q.useMemo(()=>{var k;return n?[...C?[{sectionTitle:C==null?void 0:C.name}]:[],...c.length?[{sectionTitle:"Drill",items:b.map(F=>({caption:F.name,onClick:()=>E(c,F)}))}]:[]].concat((k=u.contextMenuItems)!=null?k:[]):u.contextMenuItems},[u.contextMenuItems,n,C,c,b,E]),A=()=>{var k;(k=u.onContextMenuClose)==null||k.call(u),f([])};return he(ie({},u),{dataOptions:M,onDataPointContextMenu:x,onDataPointsSelected:T,filters:w,onBeforeRender:R,topSlot:V.jsxs(V.Fragment,{children:[u.topSlot,C&&V.jsx(vb,{filtersDisplayValues:g,currentDimension:C,clearDrilldownSelections:m,sliceDrilldownSelections:h})]}),contextMenuItems:D,onContextMenuClose:A})};function YB(e){return Je("MuiCard",e)}Ze("MuiCard",["root"]);const XB=["className","raised"],ZB=e=>{const{classes:t}=e;return at({root:["root"]},YB,t)},KB=ke(qs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),gb=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,l=Me(n,XB),u=te({},n,{raised:o}),c=ZB(u);return V.jsx(KB,te({className:Oe(c.root,a),elevation:o?8:void 0,ref:r,ownerState:u},l))});process.env.NODE_ENV!=="production"&&(gb.propTypes={children:v.node,classes:v.object,className:v.string,raised:_n(v.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function QB(e){return Je("MuiCardContent",e)}Ze("MuiCardContent",["root"]);const JB=["className","component"],eH=e=>{const{classes:t}=e;return at({root:["root"]},QB,t)},tH=ke("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),yb=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,l=Me(n,JB),u=te({},n,{component:o}),c=eH(u);return V.jsx(tH,te({as:o,className:Oe(c.root,a),ownerState:u,ref:r},l))});process.env.NODE_ENV!=="production"&&(yb.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function rH({title:e,description:t,styleOptions:r,onRefresh:n}){var f,p,m,h,b,_,g,C,M,E,x,T,w;const[a,o]=Q.useState(null),{themeSettings:l}=Gt(),u=P=>{o(P.currentTarget)},c=()=>{o(null)};return V.jsxs(V.Fragment,{children:[V.jsx(Us,{title:"Click to view full details",style:{color:(f=l.chart)==null?void 0:f.textColor,fontFamily:(p=l.typography)==null?void 0:p.fontFamily},children:V.jsx(Ni,{onClick:u,sx:{p:0},children:V.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:V.jsx("path",{fill:(r==null?void 0:r.titleTextColor)||l.widget.header.titleTextColor,d:"M11.5 20a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zm0-1a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13zm-.5-8h1v5h-1v-5zm0-1v-.998h1V10h-1z"})})})}),V.jsx(Gs,{open:!!a,anchorEl:a,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:V.jsxs(gb,{raised:!0,className:"csdk-max-w-xs csdk-w-[300px]",children:[V.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-justify-between csdk-items-center csdk-py-[5px] csdk-px-[12px]",style:{backgroundColor:(m=l.chart)==null?void 0:m.panelBackgroundColor},children:[V.jsx(_r,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:(h=l.chart)==null?void 0:h.textColor,fontFamily:(b=l.typography)==null?void 0:b.fontFamily},children:"Widget Details"}),V.jsx(Ni,{onClick:n,sx:{p:0},children:V.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:V.jsx("path",{fill:(_=l.chart)==null?void 0:_.textColor,d:"M20 12a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm0 0a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm-8-7a7 7 0 0 1 6.267 3.877l1.003-.22A8.001 8.001 0 0 0 4 12l1.003-.22A7 7 0 0 1 12 5zm6.998 3.12A8 8 0 0 0 4 12l1.003-.22a7 7 0 0 1 13.264-2.903l.73-.16v.28l-2.98.016-.017.971h3.985V6h-.987v2.12zm-14.01 9.864H4V14h3.985l-.016.971-2.981.017v2.996z"})})})]}),V.jsx(ki,{sx:{borderColor:(g=l.chart)==null?void 0:g.secondaryTextColor,opacity:.3}}),V.jsxs(yb,{style:{backgroundColor:(C=l.chart)==null?void 0:C.backgroundColor,padding:12},children:[e&&V.jsx(_r,{variant:"body2",style:{color:(M=l.chart)==null?void 0:M.textColor,fontFamily:(E=l.typography)==null?void 0:E.fontFamily,fontSize:13},children:e}),!!t&&V.jsxs(V.Fragment,{children:[V.jsx(ki,{sx:{my:1,borderColor:(x=l.chart)==null?void 0:x.secondaryTextColor,opacity:.3}}),V.jsx(_r,{variant:"body2",style:{color:(T=l.chart)==null?void 0:T.textColor,fontFamily:(w=l.typography)==null?void 0:w.fontFamily,fontSize:13},children:t})]})]})]})})]})}const bb=({title:e,description:t,dataSetName:r,styleOptions:n,onRefresh:a})=>{var u;const{themeSettings:o}=Gt(),l=()=>{var f;const c=V.jsx(V.Fragment,{children:V.jsx(rH,{title:r,description:t,styleOptions:n,onRefresh:a})});return n!=null&&n.renderToolbar?(f=n==null?void 0:n.renderToolbar)==null?void 0:f.call(n,a,c):c};return V.jsxs(V.Fragment,{children:[V.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-items-center csdk-px-2 csdk-min-h-[32px]",style:{backgroundColor:(n==null?void 0:n.backgroundColor)||o.widget.header.backgroundColor},children:[V.jsx("div",{className:"csdk-w-full csdk-whitespace-nowrap csdk-overflow-hidden",style:{textAlign:nH((n==null?void 0:n.titleAlignment)||o.widget.header.titleAlignment),color:(n==null?void 0:n.titleTextColor)||o.widget.header.titleTextColor,fontFamily:(u=o.typography)==null?void 0:u.fontFamily,fontSize:15},children:e||""}),V.jsx("div",{className:"csdk-ml-auto csdk-flex csdk-items-center",children:l()})]}),N.get(n,"dividerLine",o.widget.header.dividerLine)&&V.jsx(ki,{style:{backgroundColor:(n==null?void 0:n.dividerLineColor)||o.widget.header.dividerLineColor||"#d5d5d5"}})]})};function nH(e){return e.toLowerCase()}var Bd=(e=>(e.None="",e.Large="30px",e.Medium="20px",e.Small="10px",e))(Bd||{}),cc=(e=>(e.None="",e.Light="0.15",e.Medium="0.3",e.Dark="0.7",e))(cc||{}),dc=(e=>(e.None="",e.Large="3px 12px",e.Medium="2px 8px",e.Small="1px 4px",e))(dc||{}),Hd=(e=>(e.None="",e.Large="15px",e.Medium="10px",e.Small="5px",e))(Hd||{});const _b=(e,t)=>{const r=N.get(e,"shadow",t.widget.shadow),n=N.get(e,"spaceAround",t.widget.spaceAround);if(r==="None"||n==="None")return"none";if(r in cc&&n in dc){const a=cc[`${r}`];return`0px ${dc[`${n}`]} rgba(9, 9, 10, ${a})`}return"none"},iH=qn({componentName:"ChartWidgetDeprecated"})(e=>{var D,A,z,k,F,I,B;const[t,r]=Q.useState(null),[n,a]=Q.useState(0);(((A=(D=e.drilldownOptions)==null?void 0:D.drilldownDimensions)==null?void 0:A.length)||((k=(z=e.drilldownOptions)==null?void 0:z.drilldownSelections)==null?void 0:k.length))&&e.chartType!=="scatter"&&Array.isArray(e.filters)&&(e=GB(e));const O=e,{onDataPointContextMenu:l,onDataPointsSelected:u,onContextMenuClose:c,dataSource:f,topSlot:p,bottomSlot:m,contextMenuItems:h,title:b,description:_,styleOptions:g}=O,C=Sr(O,["onDataPointContextMenu","onDataPointsSelected","onContextMenuClose","dataSource","topSlot","bottomSlot","contextMenuItems","title","description","styleOptions"]),{themeSettings:M}=Gt(),E=Q.useCallback(()=>{r(null),c==null||c()},[r,c]),x=ws(e.chartType,{hasHeader:!((F=g==null?void 0:g.header)!=null&&F.hidden)}),j=g||{},{width:T,height:w}=j,P=Sr(j,["width","height"]),R=he(ie({},C),{dataSet:f,styleOptions:P,onDataPointContextMenu:Q.useMemo(()=>h?(U,q)=>{l==null||l(U,q);const{clientX:G,clientY:$}=q;r({left:G,top:$})}:l,[h,l,r]),onDataPointsSelected:Q.useMemo(()=>h?(U,q)=>{u==null||u(U,q);const{clientX:G,clientY:$}=q;r({left:G,top:$})}:u,[h,u,r])});return!e.chartType||!e.dataOptions?null:V.jsx(Li,{defaultSize:x,size:{width:T,height:w},children:V.jsx("div",{className:"csdk-w-full csdk-h-full csdk-overflow-hidden",children:V.jsx("div",{className:"csdk-h-full",style:{padding:Hd[N.get(g,"spaceAround",M.widget.spaceAround)||"None"]||"0px"},children:V.jsxs("div",{className:"csdk-h-full csdk-overflow-hidden",style:{borderWidth:N.get(g,"border",M.widget.border)?"1px":0,borderColor:(g==null?void 0:g.borderColor)||M.widget.borderColor,borderRadius:Bd[(g==null?void 0:g.cornerRadius)||M.widget.cornerRadius]||0,boxShadow:_b(g,M),display:"flex",flexDirection:"column"},children:[!((I=g==null?void 0:g.header)!=null&&I.hidden)&&V.jsx(bb,{title:b,description:_,dataSetName:R.dataSet?N.getDataSourceName(R.dataSet):void 0,styleOptions:g==null?void 0:g.header,onRefresh:()=>a(n+1)}),p,V.jsx(lb,{position:t,itemSections:h,closeContextMenu:E}),V.jsx(Gc,{theme:{chart:{backgroundColor:(g==null?void 0:g.backgroundColor)||((B=M.chart)==null?void 0:B.backgroundColor)}},skipTracking:!0,children:V.jsx("div",{style:{flexGrow:1,minWidth:0,minHeight:0},children:V.jsx(Ld,he(ie({},R),{refreshCounter:n}))})}),m]})})})})}),Vd=({dataSetName:e,styleOptions:t,title:r,description:n,topSlot:a,bottomSlot:o,children:l,onRefresh:u=()=>{}})=>{var f,p,m;const{themeSettings:c}=Gt();return V.jsx("div",{className:"csdk-w-full csdk-h-full csdk-overflow-hidden",children:V.jsx("div",{className:"csdk-h-full",style:{padding:Hd[N.get(t,"spaceAround",c.widget.spaceAround)]||"0px"},children:V.jsxs("div",{className:"csdk-h-full csdk-overflow-hidden",style:{backgroundColor:(t==null?void 0:t.backgroundColor)||"unset",borderWidth:N.get(t,"border",c.widget.border)?"1px":0,borderColor:(t==null?void 0:t.borderColor)||c.widget.borderColor,borderRadius:Bd[(t==null?void 0:t.cornerRadius)||c.widget.cornerRadius]||0,boxShadow:_b(t,c),display:"flex",flexDirection:"column"},children:[!((f=t==null?void 0:t.header)!=null&&f.hidden)&&V.jsx(bb,{title:r,description:n,dataSetName:e,styleOptions:t==null?void 0:t.header,onRefresh:u}),a,V.jsx(Gc,{theme:{chart:{backgroundColor:(t==null?void 0:t.backgroundColor)||((p=c.chart)==null?void 0:p.backgroundColor)}},children:V.jsx("div",{style:{flexGrow:1,minWidth:0,minHeight:0,backgroundColor:(t==null?void 0:t.backgroundColor)||((m=c.chart)==null?void 0:m.backgroundColor)},children:l})}),o]})})})},aH=qn({componentName:"ChartWidget"})(e=>{var I;const{chartType:t,drilldownOptions:r,highlightSelectionDisabled:n=!1}=e;if(r)return V.jsx(iH,ie({},e));const[a,o]=Q.useState(0),[l,u]=Q.useState([]),{app:c}=bt(),f=Q.useMemo(()=>N.isCartesian(t),[t]),p=Q.useMemo(()=>t==="scatter",[t]),m=Q.useMemo(()=>!!r,[r]),h=Q.useMemo(()=>{var U;return!n&&!m&&(f&&((U=e.dataOptions.category)==null?void 0:U.length)===1||p)},[m,e.dataOptions,f,p,n]),j=e,{dataSource:b=c==null?void 0:c.defaultDataSource,styleOptions:_,dataOptions:g,onDataPointsSelected:C,onDataPointClick:M,onBeforeRender:E}=j,x=Sr(j,["dataSource","styleOptions","dataOptions","onDataPointsSelected","onDataPointClick","onBeforeRender"]),T=Q.useMemo(()=>{if(l.length===0)return U=>he(ie({},U),{series:U.series.map(q=>he(ie({},q),{data:q.data.map(G=>he(ie({},G),{selected:!1}))}))});if(p)return U=>he(ie({},U),{series:U.series.map(q=>he(ie({},q),{data:q.data.map(G=>he(ie({},G),{selected:!l.some($=>{var H,ee;return $.x===G.x&&$.y===G.y&&$.size===G.z&&$.breakByPoint===((H=G.custom)==null?void 0:H.maskedBreakByPoint)&&$.breakByColor===((ee=G.custom)==null?void 0:ee.maskedBreakByColor)})}))}))});{const U=l.reduce((q,{categoryValue:G})=>(G&&(q[`${G}`]=!0),q),{});return q=>he(ie({},q),{series:q.series.map(G=>he(ie({},G),{data:G.data.map($=>{var H,ee;return U[(ee=(H=$.custom)==null?void 0:H.xValue)==null?void 0:ee[0]]?$:he(ie({},$),{selected:!0})})}))})}},[l,p]),w=Q.useMemo(()=>U=>{var q;return he(ie({},U),{chart:he(ie({},U.chart),{events:he(ie({},(q=U.chart)==null?void 0:q.events),{click:()=>{u([])}})})})},[]),P=Q.useCallback(U=>{var q;return h&&(U=T(U),U=w(U)),U=(q=E==null?void 0:E(U))!=null?q:U,U},[E,T,w,h]),R=Q.useCallback((U,q)=>{h&&u(U),C==null||C(U,q)},[h,C]),D=Q.useCallback((U,q)=>{h&&u([U]),M&&M(U,q)},[h,M]),A=ws(t,{hasHeader:!((I=_==null?void 0:_.header)!=null&&I.hidden)}),B=_||{},{width:z,height:k}=B,O=Sr(B,["width","height"]),F=he(ie({},x),{chartType:t,dataOptions:g,dataSet:b,styleOptions:O,onBeforeRender:P,onDataPointClick:D,onDataPointsSelected:R});return!t||!g?null:V.jsx(Li,{defaultSize:A,size:{width:z,height:k},children:V.jsx(Vd,he(ie({},e),{dataSetName:b&&N.getDataSourceName(b),onRefresh:()=>o(a+1),children:V.jsx(Ld,he(ie({},F),{refreshCounter:a}))}))})}),oH=qn({componentName:"TableWidget"})(e=>{var m;const[t,r]=Q.useState(0),{app:n}=bt(),{styleOptions:a,dataSource:o=n==null?void 0:n.defaultDataSource,dataOptions:l}=e,u=ws("table",{hasHeader:!((m=a==null?void 0:a.header)!=null&&m.hidden)}),h=e.styleOptions||{},{width:c,height:f}=h,p=Sr(h,["width","height"]);return l?V.jsx(Li,{defaultSize:u,size:{width:c,height:f},children:V.jsx(Vd,he(ie({},e),{dataSetName:o&&N.getDataSourceName(o),onRefresh:()=>r(t+1),children:V.jsx(ib,{dataSet:e.dataSource,dataOptions:e.dataOptions,styleOptions:p,filters:e.filters,refreshCounter:t})}))}):null});var sH=N._root,lH=function(){return sH.Date.now()},uH=lH,cH=N.isObject_1,tu=uH,nm=N.toNumber_1,dH="Expected a function",fH=Math.max,hH=Math.min;function pH(e,t,r){var n,a,o,l,u,c,f=0,p=!1,m=!1,h=!0;if(typeof e!="function")throw new TypeError(dH);t=nm(t)||0,cH(r)&&(p=!!r.leading,m="maxWait"in r,o=m?fH(nm(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h);function b(P){var R=n,D=a;return n=a=void 0,f=P,l=e.apply(D,R),l}function _(P){return f=P,u=setTimeout(M,t),p?b(P):l}function g(P){var R=P-c,D=P-f,A=t-R;return m?hH(A,o-D):A}function C(P){var R=P-c,D=P-f;return c===void 0||R>=t||R<0||m&&D>=o}function M(){var P=tu();if(C(P))return E(P);u=setTimeout(M,g(P))}function E(P){return u=void 0,h&&n?b(P):(n=a=void 0,l)}function x(){u!==void 0&&clearTimeout(u),f=0,n=c=a=u=void 0}function T(){return u===void 0?l:E(tu())}function w(){var P=tu(),R=C(P);if(n=arguments,a=this,c=P,R){if(u===void 0)return _(c);if(m)return clearTimeout(u),u=setTimeout(M,t),b(c)}return u===void 0&&(u=setTimeout(M,t)),l}return w.cancel=x,w.flush=T,w}var mH=pH;const vH=N.getDefaultExportFromCjs(mH);class Fi{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const r={listener:t};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const La=typeof window=="undefined"||"Deno"in window;function tr(){}function gH(e,t){return typeof e=="function"?e(t):e}function fc(e){return typeof e=="number"&&e>=0&&e!==1/0}function wb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pa(e,t,r){return to(e)?typeof t=="function"?he(ie({},r),{queryKey:e,queryFn:t}):he(ie({},t),{queryKey:e}):e}function yH(e,t,r){return to(e)?he(ie({},t),{mutationKey:e}):typeof e=="function"?he(ie({},t),{mutationFn:e}):ie({},e)}function fn(e,t,r){return to(e)?[he(ie({},t),{queryKey:e}),r]:[e||{},t]}function im(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:l,stale:u}=e;if(to(l)){if(n){if(t.queryHash!==Ud(l,t.options))return!1}else if(!wi(t.queryKey,l))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof a!="undefined"&&a!==t.state.fetchStatus||o&&!o(t))}function am(e,t){const{exact:r,fetching:n,predicate:a,mutationKey:o}=e;if(to(o)){if(!t.options.mutationKey)return!1;if(r){if(Wn(t.options.mutationKey)!==Wn(o))return!1}else if(!wi(t.options.mutationKey,o))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||a&&!a(t))}function Ud(e,t){return((t==null?void 0:t.queryKeyHashFn)||Wn)(e)}function Wn(e){return JSON.stringify(e,(t,r)=>hc(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function wi(e,t){return xb(e,t)}function xb(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!xb(e[r],t[r])):!1}function Cb(e,t){if(e===t)return e;const r=om(e)&&om(t);if(r||hc(e)&&hc(t)){const n=r?e.length:Object.keys(e).length,a=r?t:Object.keys(t),o=a.length,l=r?[]:{};let u=0;for(let c=0;c<o;c++){const f=r?c:a[c];l[f]=Cb(e[f],t[f]),l[f]===e[f]&&u++}return n===o&&u===n?e:l}return t}function us(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function om(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function hc(e){if(!sm(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const r=t.prototype;return!(!sm(r)||!r.hasOwnProperty("isPrototypeOf"))}function sm(e){return Object.prototype.toString.call(e)==="[object Object]"}function to(e){return Array.isArray(e)}function Tb(e){return new Promise(t=>{setTimeout(t,e)})}function lm(e){Tb(0).then(e)}function bH(){if(typeof AbortController=="function")return new AbortController}function pc(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Cb(e,t):t}class _H extends Fi{constructor(){super(),this.setup=t=>{if(!La&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const cs=new _H,um=["online","offline"];class wH extends Fi{constructor(){super(),this.setup=t=>{if(!La&&window.addEventListener){const r=()=>t();return um.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{um.forEach(n=>{window.removeEventListener(n,r)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine}}const ds=new wH;function xH(e){return Math.min(1e3*Ht(2,e),3e4)}function Ys(e){return(e!=null?e:"online")==="online"?ds.isOnline():!0}class Eb{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Uo(e){return e instanceof Eb}function Mb(e){let t=!1,r=0,n=!1,a,o,l;const u=new Promise((C,M)=>{o=C,l=M}),c=C=>{n||(b(new Eb(C)),e.abort==null||e.abort())},f=()=>{t=!0},p=()=>{t=!1},m=()=>!cs.isFocused()||e.networkMode!=="always"&&!ds.isOnline(),h=C=>{n||(n=!0,e.onSuccess==null||e.onSuccess(C),a==null||a(),o(C))},b=C=>{n||(n=!0,e.onError==null||e.onError(C),a==null||a(),l(C))},_=()=>new Promise(C=>{a=M=>{const E=n||!m();return E&&C(M),E},e.onPause==null||e.onPause()}).then(()=>{a=void 0,n||e.onContinue==null||e.onContinue()}),g=()=>{if(n)return;let C;try{C=e.fn()}catch(M){C=Promise.reject(M)}Promise.resolve(C).then(h).catch(M=>{var E,x;if(n)return;const T=(E=e.retry)!=null?E:3,w=(x=e.retryDelay)!=null?x:xH,P=typeof w=="function"?w(r,M):w,R=T===!0||typeof T=="number"&&r<T||typeof T=="function"&&T(r,M);if(t||!R){b(M);return}r++,e.onFail==null||e.onFail(r,M),Tb(P).then(()=>{if(m())return _()}).then(()=>{t?b(M):g()})})};return Ys(e.networkMode)?g():_().then(g),{promise:u,cancel:c,continue:()=>(a==null?void 0:a())?u:Promise.resolve(),cancelRetry:f,continueRetry:p}}const qd=console;function CH(){let e=[],t=0,r=p=>{p()},n=p=>{p()};const a=p=>{let m;t++;try{m=p()}finally{t--,t||u()}return m},o=p=>{t?e.push(p):lm(()=>{r(p)})},l=p=>(...m)=>{o(()=>{p(...m)})},u=()=>{const p=e;e=[],p.length&&lm(()=>{n(()=>{p.forEach(m=>{r(m)})})})};return{batch:a,batchCalls:l,schedule:o,setNotifyFunction:p=>{r=p},setBatchNotifyFunction:p=>{n=p}}}const st=CH();class Sb{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fc(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:La?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class TH extends Sb{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||qd,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||EH(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options=ie(ie({},this.defaultOptions),t),this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=pc(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(tr).catch(tr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!wb(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,a;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return(o=this.retryer)==null||o.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const b=this.observers.find(_=>_.options.queryFn);b&&this.setOptions(b.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const l=bH(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>{if(l)return this.abortSignalConsumed=!0,l.signal}})};c(u);const f=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(u)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),p={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:f};if(c(p),(n=this.options.behavior)==null||n.onFetch(p),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=p.fetchOptions)==null?void 0:a.meta)){var m;this.dispatch({type:"fetch",meta:(m=p.fetchOptions)==null?void 0:m.meta})}const h=b=>{if(Uo(b)&&b.silent||this.dispatch({type:"error",error:b}),!Uo(b)){var _,g,C,M;(_=(g=this.cache.config).onError)==null||_.call(g,b,this),(C=(M=this.cache.config).onSettled)==null||C.call(M,this.state.data,b,this),process.env.NODE_ENV!=="production"&&this.logger.error(b)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Mb({fn:p.fetchFn,abort:l==null?void 0:l.abort.bind(l),onSuccess:b=>{var _,g,C,M;if(typeof b=="undefined"){process.env.NODE_ENV!=="production"&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),h(new Error(this.queryHash+" data is undefined"));return}this.setData(b),(_=(g=this.cache.config).onSuccess)==null||_.call(g,b,this),(C=(M=this.cache.config).onSettled)==null||C.call(M,b,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(b,_)=>{this.dispatch({type:"failed",failureCount:b,error:_})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var a,o;switch(t.type){case"failed":return he(ie({},n),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return he(ie({},n),{fetchStatus:"paused"});case"continue":return he(ie({},n),{fetchStatus:"fetching"});case"fetch":return ie(he(ie({},n),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(a=t.meta)!=null?a:null,fetchStatus:Ys(this.options.networkMode)?"fetching":"paused"}),!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return ie(he(ie({},n),{data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(o=t.dataUpdatedAt)!=null?o:Date.now(),error:null,isInvalidated:!1,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const l=t.error;return Uo(l)&&l.revert&&this.revertState?he(ie({},this.revertState),{fetchStatus:"idle"}):he(ie({},n),{error:l,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"});case"invalidate":return he(ie({},n),{isInvalidated:!0});case"setState":return ie(ie({},n),t.state)}};this.state=r(this.state),st.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function EH(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t!="undefined",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n!=null?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class MH extends Fi{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var a;const o=r.queryKey,l=(a=r.queryHash)!=null?a:Ud(o,r);let u=this.get(l);return u||(u=new TH({cache:this,logger:t.getLogger(),queryKey:o,queryHash:l,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){st.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=fn(t,r);return typeof n.exact=="undefined"&&(n.exact=!0),this.queries.find(a=>im(n,a))}findAll(t,r){const[n]=fn(t,r);return Object.keys(n).length>0?this.queries.filter(a=>im(n,a)):this.queries}notify(t){st.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){st.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class SH extends Sb{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||qd,this.observers=[],this.state=t.state||Pb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=ie(ie({},this.defaultOptions),t),this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,r;return(t=(r=this.retryer)==null?void 0:r.continue())!=null?t:this.execute()}execute(){return yr(this,null,function*(){const t=()=>{var R;return this.retryer=Mb({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(D,A)=>{this.dispatch({type:"failed",failureCount:D,error:A})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(R=this.options.retry)!=null?R:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,a,o,l,u,c,f,p;if(!r){var m,h,b,_;this.dispatch({type:"loading",variables:this.options.variables}),yield(m=(h=this.mutationCache.config).onMutate)==null?void 0:m.call(h,this.state.variables,this);const D=yield(b=(_=this.options).onMutate)==null?void 0:b.call(_,this.state.variables);D!==this.state.context&&this.dispatch({type:"loading",context:D,variables:this.state.variables})}const R=yield t();return yield(n=(a=this.mutationCache.config).onSuccess)==null?void 0:n.call(a,R,this.state.variables,this.state.context,this),yield(o=(l=this.options).onSuccess)==null?void 0:o.call(l,R,this.state.variables,this.state.context),yield(u=(c=this.mutationCache.config).onSettled)==null?void 0:u.call(c,R,null,this.state.variables,this.state.context,this),yield(f=(p=this.options).onSettled)==null?void 0:f.call(p,R,null,this.state.variables,this.state.context),this.dispatch({type:"success",data:R}),R}catch(R){try{var g,C,M,E,x,T,w,P;throw yield(g=(C=this.mutationCache.config).onError)==null?void 0:g.call(C,R,this.state.variables,this.state.context,this),process.env.NODE_ENV!=="production"&&this.logger.error(R),yield(M=(E=this.options).onError)==null?void 0:M.call(E,R,this.state.variables,this.state.context),yield(x=(T=this.mutationCache.config).onSettled)==null?void 0:x.call(T,void 0,R,this.state.variables,this.state.context,this),yield(w=(P=this.options).onSettled)==null?void 0:w.call(P,void 0,R,this.state.variables,this.state.context),R}finally{this.dispatch({type:"error",error:R})}}})}dispatch(t){const r=n=>{switch(t.type){case"failed":return he(ie({},n),{failureCount:t.failureCount,failureReason:t.error});case"pause":return he(ie({},n),{isPaused:!0});case"continue":return he(ie({},n),{isPaused:!1});case"loading":return he(ie({},n),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Ys(this.options.networkMode),status:"loading",variables:t.variables});case"success":return he(ie({},n),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return he(ie({},n),{data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"});case"setState":return ie(ie({},n),t.state)}};this.state=r(this.state),st.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Pb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class PH extends Fi{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const a=new SH({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(a),a}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){st.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact=="undefined"&&(t.exact=!0),this.mutations.find(r=>am(t,r))}findAll(t){return this.mutations.filter(r=>am(t,r))}notify(t){st.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return st.batch(()=>r.reduce((n,a)=>n.then(()=>a.continue().catch(tr)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function RH(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,a,o,l;const u=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,c=(n=e.fetchOptions)==null||(a=n.meta)==null?void 0:a.fetchMore,f=c==null?void 0:c.pageParam,p=(c==null?void 0:c.direction)==="forward",m=(c==null?void 0:c.direction)==="backward",h=((o=e.state.data)==null?void 0:o.pages)||[],b=((l=e.state.data)==null?void 0:l.pageParams)||[];let _=b,g=!1;const C=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>{var R;if((R=e.signal)!=null&&R.aborted)g=!0;else{var D;(D=e.signal)==null||D.addEventListener("abort",()=>{g=!0})}return e.signal}})},M=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),E=(P,R,D,A)=>(_=A?[R,..._]:[..._,R],A?[D,...P]:[...P,D]),x=(P,R,D,A)=>{if(g)return Promise.reject("Cancelled");if(typeof D=="undefined"&&!R&&P.length)return Promise.resolve(P);const z={queryKey:e.queryKey,pageParam:D,meta:e.options.meta};C(z);const k=M(z);return Promise.resolve(k).then(F=>E(P,D,F,A))};let T;if(!h.length)T=x([]);else if(p){const P=typeof f!="undefined",R=P?f:cm(e.options,h);T=x(h,P,R)}else if(m){const P=typeof f!="undefined",R=P?f:OH(e.options,h);T=x(h,P,R,!0)}else{_=[];const P=typeof e.options.getNextPageParam=="undefined";T=(u&&h[0]?u(h[0],0,h):!0)?x([],P,b[0]):Promise.resolve(E([],b[0],h[0]));for(let D=1;D<h.length;D++)T=T.then(A=>{if(u&&h[D]?u(h[D],D,h):!0){const k=P?b[D]:cm(e.options,A);return x(A,P,k)}return Promise.resolve(E(A,b[D],h[D]))})}return T.then(P=>({pages:P,pageParams:_}))}}}}function cm(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function OH(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class kH{constructor(t={}){this.queryCache=t.queryCache||new MH,this.mutationCache=t.mutationCache||new PH,this.logger=t.logger||qd,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,process.env.NODE_ENV!=="production"&&t.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=cs.subscribe(()=>{cs.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=ds.subscribe(()=>{ds.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=fn(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll(he(ie({},t),{fetching:!0})).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const a=pa(t,r,n),o=this.getQueryData(a.queryKey);return o?Promise.resolve(o):this.fetchQuery(a)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const a=n.data;return[r,a]})}setQueryData(t,r,n){const a=this.queryCache.find(t),o=a==null?void 0:a.state.data,l=gH(r,o);if(typeof l=="undefined")return;const u=pa(t),c=this.defaultQueryOptions(u);return this.queryCache.build(this,c).setData(l,he(ie({},n),{manual:!0}))}setQueriesData(t,r,n){return st.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=fn(t,r),a=this.queryCache;st.batch(()=>{a.findAll(n).forEach(o=>{a.remove(o)})})}resetQueries(t,r,n){const[a,o]=fn(t,r,n),l=this.queryCache,u=ie({type:"active"},a);return st.batch(()=>(l.findAll(a).forEach(c=>{c.reset()}),this.refetchQueries(u,o)))}cancelQueries(t,r,n){const[a,o={}]=fn(t,r,n);typeof o.revert=="undefined"&&(o.revert=!0);const l=st.batch(()=>this.queryCache.findAll(a).map(u=>u.cancel(o)));return Promise.all(l).then(tr).catch(tr)}invalidateQueries(t,r,n){const[a,o]=fn(t,r,n);return st.batch(()=>{var l,u;if(this.queryCache.findAll(a).forEach(f=>{f.invalidate()}),a.refetchType==="none")return Promise.resolve();const c=he(ie({},a),{type:(l=(u=a.refetchType)!=null?u:a.type)!=null?l:"active"});return this.refetchQueries(c,o)})}refetchQueries(t,r,n){const[a,o]=fn(t,r,n),l=st.batch(()=>this.queryCache.findAll(a).filter(c=>!c.isDisabled()).map(c=>{var f;return c.fetch(void 0,he(ie({},o),{cancelRefetch:(f=o==null?void 0:o.cancelRefetch)!=null?f:!0,meta:{refetchPage:a.refetchPage}}))}));let u=Promise.all(l).then(tr);return o!=null&&o.throwOnError||(u=u.catch(tr)),u}fetchQuery(t,r,n){const a=pa(t,r,n),o=this.defaultQueryOptions(a);typeof o.retry=="undefined"&&(o.retry=!1);const l=this.queryCache.build(this,o);return l.isStaleByTime(o.staleTime)?l.fetch(o):Promise.resolve(l.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(tr).catch(tr)}fetchInfiniteQuery(t,r,n){const a=pa(t,r,n);return a.behavior=RH(),this.fetchQuery(a)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(tr).catch(tr)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(a=>Wn(t)===Wn(a.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>wi(t,n.queryKey));return process.env.NODE_ENV!=="production"&&this.queryDefaults.filter(a=>wi(t,a.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(t)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults."),r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(a=>Wn(t)===Wn(a.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>wi(t,n.mutationKey));return process.env.NODE_ENV!=="production"&&this.mutationDefaults.filter(a=>wi(t,a.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(t)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults."),r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r=he(ie(ie(ie({},this.defaultOptions.queries),this.getQueryDefaults(t==null?void 0:t.queryKey)),t),{_defaulted:!0});return!r.queryHash&&r.queryKey&&(r.queryHash=Ud(r.queryKey,r)),typeof r.refetchOnReconnect=="undefined"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary=="undefined"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:he(ie(ie(ie({},this.defaultOptions.mutations),this.getMutationDefaults(t==null?void 0:t.mutationKey)),t),{_defaulted:!0})}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class NH extends Fi{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),dm(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return mc(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return mc(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),process.env.NODE_ENV!=="production"&&typeof(t==null?void 0:t.isDataEqual)!="undefined"&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),us(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&fm(this.currentQuery,a,this.options,n)&&this.executeFetch(),this.updateResult(r),o&&(this.currentQuery!==a||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const l=this.computeRefetchInterval();o&&(this.currentQuery!==a||this.options.enabled!==n.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return LH(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch(n={}){var a=n,{refetchPage:t}=a,r=Sr(a,["refetchPage"]);return this.fetch(he(ie({},r),{meta:{refetchPage:t}}))}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch(he(ie({},t),{cancelRefetch:(r=t.cancelRefetch)!=null?r:!0})).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(tr)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),La||this.currentResult.isStale||!fc(this.options.staleTime))return;const r=wb(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(La||this.options.enabled===!1||!fc(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||cs.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,a=this.options,o=this.currentResult,l=this.currentResultState,u=this.currentResultOptions,c=t!==n,f=c?t.state:this.currentQueryInitialState,p=c?this.currentResult:this.previousQueryResult,{state:m}=t;let{dataUpdatedAt:h,error:b,errorUpdatedAt:_,fetchStatus:g,status:C}=m,M=!1,E=!1,x;if(r._optimisticResults){const D=this.hasListeners(),A=!D&&dm(t,r),z=D&&fm(t,n,r,a);(A||z)&&(g=Ys(t.options.networkMode)?"fetching":"paused",h||(C="loading")),r._optimisticResults==="isRestoring"&&(g="idle")}if(r.keepPreviousData&&!m.dataUpdatedAt&&p!=null&&p.isSuccess&&C!=="error")x=p.data,h=p.dataUpdatedAt,C=p.status,M=!0;else if(r.select&&typeof m.data!="undefined")if(o&&m.data===(l==null?void 0:l.data)&&r.select===this.selectFn)x=this.selectResult;else try{this.selectFn=r.select,x=r.select(m.data),x=pc(o==null?void 0:o.data,x,r),this.selectResult=x,this.selectError=null}catch(D){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(D),this.selectError=D}else x=m.data;if(typeof r.placeholderData!="undefined"&&typeof x=="undefined"&&C==="loading"){let D;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(u==null?void 0:u.placeholderData))D=o.data;else if(D=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof D!="undefined")try{D=r.select(D),this.selectError=null}catch(A){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(A),this.selectError=A}typeof D!="undefined"&&(C="success",x=pc(o==null?void 0:o.data,D,r),E=!0)}this.selectError&&(b=this.selectError,x=this.selectResult,_=Date.now(),C="error");const T=g==="fetching",w=C==="loading",P=C==="error";return{status:C,fetchStatus:g,isLoading:w,isSuccess:C==="success",isError:P,isInitialLoading:w&&T,data:x,dataUpdatedAt:h,error:b,errorUpdatedAt:_,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:T,isRefetching:T&&!w,isLoadingError:P&&m.dataUpdatedAt===0,isPaused:g==="paused",isPlaceholderData:E,isPreviousData:M,isRefetchError:P&&m.dataUpdatedAt!==0,isStale:Gd(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,us(n,r))return;this.currentResult=n;const a={cache:!0},o=()=>{if(!r)return!0;const{notifyOnChangeProps:l}=this.options,u=typeof l=="function"?l():l;if(u==="all"||!u&&!this.trackedProps.size)return!0;const c=new Set(u!=null?u:this.trackedProps);return this.options.useErrorBoundary&&c.add("error"),Object.keys(this.currentResult).some(f=>{const p=f;return this.currentResult[p]!==r[p]&&c.has(p)})};(t==null?void 0:t.listeners)!==!1&&o()&&(a.listeners=!0),this.notify(ie(ie({},a),t))}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!Uo(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){st.batch(()=>{if(t.onSuccess){var r,n,a,o;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(a=(o=this.options).onSettled)==null||a.call(o,this.currentResult.data,null)}else if(t.onError){var l,u,c,f;(l=(u=this.options).onError)==null||l.call(u,this.currentResult.error),(c=(f=this.options).onSettled)==null||c.call(f,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:p})=>{p(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function DH(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function dm(e,t){return DH(e,t)||e.state.dataUpdatedAt>0&&mc(e,t,t.refetchOnMount)}function mc(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Gd(e,t)}return!1}function fm(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Gd(e,r)}function Gd(e,t){return e.isStaleByTime(t.staleTime)}function LH(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!us(e.getCurrentResult(),t)}var vc={exports:{}},ru={};/**
|
|
418
|
-
* @license React
|
|
419
|
-
* use-sync-external-store-shim.production.min.js
|
|
420
|
-
*
|
|
421
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
422
|
-
*
|
|
423
|
-
* This source code is licensed under the MIT license found in the
|
|
424
|
-
* LICENSE file in the root directory of this source tree.
|
|
425
|
-
*/var hm;function AH(){if(hm)return ru;hm=1;var e=Q;function t(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function u(m,h){var b=h(),_=n({inst:{value:b,getSnapshot:h}}),g=_[0].inst,C=_[1];return o(function(){g.value=b,g.getSnapshot=h,c(g)&&C({inst:g})},[m,b,h]),a(function(){return c(g)&&C({inst:g}),m(function(){c(g)&&C({inst:g})})},[m]),l(b),b}function c(m){var h=m.getSnapshot;m=m.value;try{var b=h();return!r(m,b)}catch(_){return!0}}function f(m,h){return h()}var p=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?f:u;return ru.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,ru}var nu={};/**
|
|
426
|
-
* @license React
|
|
427
|
-
* use-sync-external-store-shim.development.js
|
|
428
|
-
*
|
|
429
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
430
|
-
*
|
|
431
|
-
* This source code is licensed under the MIT license found in the
|
|
432
|
-
* LICENSE file in the root directory of this source tree.
|
|
433
|
-
*/var pm;function IH(){return pm||(pm=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=Q,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(x){{for(var T=arguments.length,w=new Array(T>1?T-1:0),P=1;P<T;P++)w[P-1]=arguments[P];n("error",x,w)}}function n(x,T,w){{var P=t.ReactDebugCurrentFrame,R=P.getStackAddendum();R!==""&&(T+="%s",w=w.concat([R]));var D=w.map(function(A){return String(A)});D.unshift("Warning: "+T),Function.prototype.apply.call(console[x],console,D)}}function a(x,T){return x===T&&(x!==0||1/x===1/T)||x!==x&&T!==T}var o=typeof Object.is=="function"?Object.is:a,l=e.useState,u=e.useEffect,c=e.useLayoutEffect,f=e.useDebugValue,p=!1,m=!1;function h(x,T,w){p||e.startTransition!==void 0&&(p=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var P=T();if(!m){var R=T();o(P,R)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}var D=l({inst:{value:P,getSnapshot:T}}),A=D[0].inst,z=D[1];return c(function(){A.value=P,A.getSnapshot=T,b(A)&&z({inst:A})},[x,P,T]),u(function(){b(A)&&z({inst:A});var k=function(){b(A)&&z({inst:A})};return x(k)},[x]),f(P),P}function b(x){var T=x.getSnapshot,w=x.value;try{var P=T();return!o(w,P)}catch(R){return!0}}function _(x,T,w){return T()}var g=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",C=!g,M=C?_:h,E=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:M;nu.useSyncExternalStore=E,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),nu}process.env.NODE_ENV==="production"?vc.exports=AH():vc.exports=IH();var zH=vc.exports;const Rb=zH.useSyncExternalStore,mm=Z.createContext(void 0),Ob=Z.createContext(!1);function kb(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=mm),window.ReactQueryClientContext):mm)}const Nb=({context:e}={})=>{const t=Z.useContext(kb(e,Z.useContext(Ob)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},$H=({client:e,children:t,context:r,contextSharing:n=!1})=>{Z.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),process.env.NODE_ENV!=="production"&&n&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=kb(r,n);return Z.createElement(Ob.Provider,{value:!r&&n},Z.createElement(a.Provider,{value:e},t))},WH=Z.createContext(!1),FH=()=>Z.useContext(WH);function jH(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const BH=Z.createContext(jH()),HH=()=>Z.useContext(BH);function Db(e,t){return typeof e=="function"?e(...t):!!e}const VH=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},UH=e=>{Z.useEffect(()=>{e.clearReset()},[e])},qH=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&Db(r,[e.error,n]),GH=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},YH=(e,t)=>e.isLoading&&e.isFetching&&!t,XH=(e,t,r)=>(e==null?void 0:e.suspense)&&YH(t,r),ZH=(e,t,r)=>t.fetchOptimistic(e).then(({data:n})=>{e.onSuccess==null||e.onSuccess(n),e.onSettled==null||e.onSettled(n,null)}).catch(n=>{r.clearReset(),e.onError==null||e.onError(n),e.onSettled==null||e.onSettled(void 0,n)});function KH(e,t){const r=Nb({context:e.context}),n=FH(),a=HH(),o=r.defaultQueryOptions(e);o._optimisticResults=n?"isRestoring":"optimistic",o.onError&&(o.onError=st.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=st.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=st.batchCalls(o.onSettled)),GH(o),VH(o,a),UH(a);const[l]=Z.useState(()=>new t(r,o)),u=l.getOptimisticResult(o);if(Rb(Z.useCallback(c=>{const f=n?()=>{}:l.subscribe(st.batchCalls(c));return l.updateResult(),f},[l,n]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),Z.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),XH(o,u,n))throw ZH(o,l,a);if(qH({result:u,errorResetBoundary:a,useErrorBoundary:o.useErrorBoundary,query:l.getCurrentQuery()}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function QH(e,t,r){const n=pa(e,t,r);return KH(n,NH)}exports.Backdrop=$d;exports.Button=Da;exports.ButtonBase=Yn;exports.CacheProvider=zm;exports.Chart=Ld;exports.ChartWidget=aH;exports.ContextMenu=lb;exports.DEFAULT_PIVOT_TABLE_SIZE=$v;exports.DEFAULT_TABLE_ROWS_PER_PAGE=U4;exports.DrilldownBreadcrumbs=vb;exports.DynamicSizeContainer=Li;exports.ErrorBoundary=pv;exports.ExclamationMarkIcon=hv;exports.Fade=zd;exports.Global=Mc;exports.I18nProvider=mv;exports.IconButton=Ni;exports.LEGACY_DESIGN_TYPES=ua;exports.LoadingIndicator=Zc;exports.LoadingOverlay=ca;exports.Menu=Fd;exports.MenuItem=jd;exports.MenuList=Id;exports.Modal=Wd;exports.NoResultsOverlay=Yc;exports.PAGES_BATCH_SIZE=q4;exports.Paper=qs;exports.Popover=Gs;exports.Popper=eo;exports.PropTypes=v;exports.QueryClient=kH;exports.QueryClientProvider=$H;exports.RestApi=Fv;exports.SisenseContext=Bc;exports.Subscribable=Fi;exports.Table=ib;exports.TableWidget=oH;exports.ThemeContext=yn;exports.ThemeContext$1=Hc;exports.ThemeProvider=Gc;exports.Tooltip=Us;exports.WidgetContainer=Vd;exports._baseEach=Is;exports._baseRest=Uc;exports._baseUniq=Ev;exports._extends=te;exports._isIterateeCall=Fm;exports._objectWithoutPropertiesLoose=Me;exports.alpha_1=it;exports.applyDateFormat=Ic;exports.asSisenseComponent=qn;exports.boxWhiskerProcessResult=k3;exports.capitalize=De;exports.classNames=Pa;exports.clearExecuteQueryCache=bP;exports.clsx=Oe;exports.composeClasses=at;exports.convertToThemeSettings=rv;exports.createExecuteQueryCacheKey=ov;exports.createValueColorOptions=vv;exports.createValueToColorMap=gv;exports.createValueToColorMultiColumnsMap=BR;exports.css=Sc;exports.darken_1=Jo;exports.debounce=vH;exports.defaultDateConfig=Ac;exports.elementAcceptingRef=Gn;exports.exactProp=fd;exports.executeCsvQuery=hP;exports.executePivotQuery=pP;exports.executeQuery=Wa;exports.executeQueryWithCache=$c;exports.generateUtilityClass=Je;exports.generateUtilityClasses=Ze;exports.getBaseDateFnsLocale=Oc;exports.getDefaultState=Pb;exports.getDefaultThemeSettings=bs;exports.getDisplayMemberNameFromDataPoint=cb;exports.getJaqlQueryPayload=wm;exports.getLegacyPalette=av;exports.getMemberNameFromDataPoint=ub;exports.getPaletteName=nv;exports.getPivotJaqlQueryPayload=f0;exports.getTableAttributesAndMeasures=Dg;exports.getThemeSettingsByOid=iv;exports.getTranslatedDataOptions=Gv;exports.getWidgetDefaultSize=ws;exports.isArrayLikeObject_1=Mv;exports.isEqual=qc;exports.isEqualWith=Lv;exports.isThemeOid=kv;exports.keyframes=Ia;exports.lighten_1=fg;exports.newStyled=wr;exports.notifyManager=st;exports.ownerDocument=Lt;exports.parseMutationArgs=yH;exports.refType=Va;exports.rootShouldForwardProp=qa;exports.shallowEqualObjects=us;exports.shouldSkipSisenseContextWaiting=tb;exports.shouldThrowError=Db;exports.styled=ke;exports.trackHook=F4;exports.translatePivotTableDataOptions=Y3;exports.translateTableDataOptions=qv;exports.useControlled=ld;exports.useEventCallback=Yr;exports.useForkRef=At;exports.useGetApi=jv;exports.useId=Mg;exports.usePrevious=Iv;exports.useQuery=QH;exports.useQueryClient=Nb;exports.useSetError=Kc;exports.useSisenseContext=bt;exports.useSyncExternalStore=Rb;exports.useTheme=Ka;exports.useThemeContext=Gt;exports.useThemeProps=et;exports.useTranslation=fs;exports.withTracking=B4;
|