@sisense/sdk-ui 1.18.1 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +1 -1
- package/dist/ai.js +32 -32
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +1 -1
- package/dist/app/settings/settings.d.ts +1 -1
- package/dist/chart-data/cartesian-data.d.ts +6 -0
- package/dist/chart-data-options/utils.d.ts +3 -0
- package/dist/chart-options-processor/apply-event-handlers.d.ts +2 -1
- package/dist/chart-options-processor/data-points.d.ts +10 -0
- package/dist/charts/map-charts/areamap/areamap-utils.d.ts +11 -0
- package/dist/charts/map-charts/scattermap/utils/location.d.ts +2 -2
- package/dist/common/components/loading-indicator.d.ts +1 -150
- package/dist/common-filters/selection-utils.d.ts +3 -3
- package/dist/dashboard/utils.d.ts +0 -1
- package/dist/dashboard-widget/translate-dashboard-filters.d.ts +446 -450
- package/dist/dashboard-widget/translate-widget-filters.d.ts +53 -53
- package/dist/dashboard-widget/translate-widget-style-options.d.ts +3 -3
- package/dist/dashboard-widget/types.d.ts +55 -5
- package/dist/dashboard-widget/utils.d.ts +3 -1
- package/dist/{get-widget-options-DJexR5_Z.js → get-widget-options-ClnEbAD8.js} +3700 -3685
- package/dist/{get-widget-options-CDWzHX-s.cjs → get-widget-options-CzFDw_pX.cjs} +76 -76
- package/dist/index.cjs +184 -172
- package/dist/index.d.ts +4 -1
- package/dist/index.js +12483 -11919
- package/dist/models/widget/widget-model.d.ts +18 -2
- package/dist/plugins-provider/custom-plugins-provider.d.ts +24 -0
- package/dist/plugins-provider/index.d.ts +2 -0
- package/dist/plugins-provider/plugins-context.d.ts +9 -0
- package/dist/plugins-provider/plugins-provider.d.ts +15 -0
- package/dist/plugins-provider/types.d.ts +8 -0
- package/dist/props.d.ts +10 -1
- package/dist/sisense-chart/types.d.ts +1 -2
- package/dist/theme-provider/fonts-loader/fonts-loader.d.ts +5 -0
- package/dist/theme-provider/fonts-loader/use-fonts-loader.d.ts +2 -0
- package/dist/themes/legacy-design-settings.d.ts +1 -1
- package/dist/themes/theme-loader.d.ts +1 -1
- package/dist/translation/resources/en.d.ts +2 -1
- package/dist/translation/resources/index.d.ts +4 -2
- package/dist/types.d.ts +145 -13
- package/dist/{useQuery-CvKBErf7.js → useQuery-CHAg2bkd.js} +10626 -10286
- package/dist/useQuery-CV4-tm99.cjs +440 -0
- package/dist/utils/filters.d.ts +1 -3
- package/dist/utils/utility-types.d.ts +4 -0
- package/dist/widgets/text-widget.d.ts +4 -0
- package/package.json +9 -7
- package/dist/dashboard/components/plugin-service.d.ts +0 -21
- package/dist/useQuery-Jw0_qpdz.cjs +0 -433
|
@@ -1,433 +0,0 @@
|
|
|
1
|
-
"use strict";var e1=Object.defineProperty,t1=Object.defineProperties;var r1=Object.getOwnPropertyDescriptors;var Bo=Object.getOwnPropertySymbols;var Nh=Object.prototype.hasOwnProperty,Dh=Object.prototype.propertyIsEnumerable;var Ut=Math.pow,Kl=(e,t,r)=>t in e?e1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ie=(e,t)=>{for(var r in t||(t={}))Nh.call(t,r)&&Kl(e,r,t[r]);if(Bo)for(var r of Bo(t))Dh.call(t,r)&&Kl(e,r,t[r]);return e},he=(e,t)=>t1(e,r1(t));var fi=(e,t)=>{var r={};for(var n in e)Nh.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Bo)for(var n of Bo(e))t.indexOf(n)<0&&Dh.call(e,n)&&(r[n]=e[n]);return r};var Ct=(e,t,r)=>(Kl(e,typeof t!="symbol"?t+"":t,r),r);var _r=(e,t,r)=>new Promise((n,a)=>{var o=c=>{try{u(r.next(c))}catch(d){a(d)}},l=c=>{try{u(r.throw(c))}catch(d){a(d)}},u=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,l);u((r=r.apply(e,t)).next())});const J=require("react"),V=require("react/jsx-runtime"),O=require("./get-widget-options-CDWzHX-s.cjs"),Ei=require("react-dom");function qv(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=qv(J),n1=qv(Ei);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 i1=Object.freeze(Object.defineProperty({__proto__:null,default:te},Symbol.toStringTag,{value:"Module"}));function a1(e){let{i18n:t,defaultNS:r,children:n}=e;const a=J.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return J.createElement(O.I18nContext.Provider,{value:a},n)}let Ho;const o1=new Uint8Array(16);function s1(){if(!Ho&&(Ho=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ho))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ho(o1)}const Tt=[];for(let e=0;e<256;++e)Tt.push((e+256).toString(16).slice(1));function l1(e,t=0){return Tt[e[t+0]]+Tt[e[t+1]]+Tt[e[t+2]]+Tt[e[t+3]]+"-"+Tt[e[t+4]]+Tt[e[t+5]]+"-"+Tt[e[t+6]]+Tt[e[t+7]]+"-"+Tt[e[t+8]]+Tt[e[t+9]]+"-"+Tt[e[t+10]]+Tt[e[t+11]]+Tt[e[t+12]]+Tt[e[t+13]]+Tt[e[t+14]]+Tt[e[t+15]]}const u1=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ah={randomUUID:u1};function Gv(e,t,r){if(Ah.randomUUID&&!t&&!e)return Ah.randomUUID();e=e||{};const n=e.random||(e.rng||s1)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,l1(n)}function yn(e){return e===void 0||typeof e=="string"||"title"in e&&"type"in e}function Ql(e){return"attribute"in e}function c1(e){return"measure"in e}const d1={title:"Grand Total",rows:!1,columns:!1},At={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 Qc(e){return[O.customFormula(At.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),O.customFormula(At.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),O.customFormula(At.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function f1(e){return[...Qc(e),O.customFormula(At.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),O.customFormula(At.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),O.customFormula(At.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function h1(e){return[...Qc(e),O.customFormula(At.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),O.customFormula(At.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function p1(e){return[...Qc(e),O.customFormula(At.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),O.customFormula(At.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),O.customFormula(At.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const m1=e=>{const t=O.cloneDeep(e),r=O.customFormula(At.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),n=O.customFormula(At.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},v1=e=>{const t=O.cloneDeep(e),r=O.customFormula(At.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),n=O.customFormula(At.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 g1(e,t){const r=t==null?void 0:t.find(n=>Yv(e)===n.attribute.id);return r&&!r.disabled&&(r.isScope&&(r.isScope=!1),e.jaql.in={selected:r.jaql()}),e}function y1(e,t){const r=[],n=[];return t.forEach(a=>{e.some(l=>Yv(l)===a.attribute.id)?r.push(a):n.push(a)}),[r,n]}function Yv(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 b1=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 _1(e,t,r){return{rowsCount:e.length,columnsCount:t.length,measuresCount:r.length}}function w1(e){switch(e){case"sortAsc":return"asc";case"sortDesc":return"desc";default:return"none"}}function x1(e,t,r){const n=w1(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 C1(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=b1(o,["sortDetails","sort"]);a.jaql.sortDetails=l,a.jaql.sort=u,r.jaql=c}}const is="ComposeSDK";function Xv(e,t){const{attributes:r,measures:n,filters:a,filterRelations:o,highlights:l,dataSource:u,count:c,offset:d,ungroup:p}=e,m=p&&n.length===0,h=Object.assign({metadata:T1({attributes:r,measures:n,filters:a,filterRelations:o,highlights:l},t)},S1(u,c,d,m));return o?Object.assign(Object.assign({},h),{filterRelations:o}):h}function Zv(e,t,r,n,a){const[o,l]=y1(e,n);e.forEach(d=>g1(d,o));const u=d=>{const p=d.jaql();return r?Array.isArray(p)?p.map(m=>Object.assign(Object.assign({},m),{instanceid:d.guid})):Object.assign(Object.assign({},p),{instanceid:d.guid}):p},c=(a?t.flatMap(d=>u(d)):[...t,...l].flatMap(d=>u(d))).filter(d=>Object.keys(d.jaql.filter||{}).length!==0);return a&&l.length>0&&console.warn(`The following highlight filters were not applied due to missing attributes: [${l.map(d=>d.attribute.name).join(", ")}].`),c}function T1(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()),d=Zv(u,a,o,l,t);return[...u,...c,...d]}function S1(e,t,r,n){return Object.assign(Object.assign(Object.assign({datasource:Kv(e),by:is,queryGuid:Gv()},n?{ungroup:!0}:{}),t?{count:t}:{}),r?{offset:r}:{})}function E1(e,t){const{rowsAttributes:r,columnsAttributes:n,measures:a,filters:o,filterRelations:l,grandTotals:u,highlights:c,dataSource:d,count:p,offset:m}=e,h=Object.assign({metadata:P1({rowsAttributes:r,columnsAttributes:n,measures:a,filters:o,highlights:c},t)},R1(d,u,p,m));return l?Object.assign(Object.assign({},h),{filterRelations:l}):h}function Lh(e,t,r,n){const a=t==="rows"&&Ql(e)&&e.sort&&e.sort.direction!=="sortNone",o=Object.assign(Object.assign({},Ql(e)?e.attribute.jaql(!0):e.jaql(!0)),a&&x1(e.sort,r,n));return Object.assign(Object.assign({jaql:o},Ql(e)&&e.includeSubTotals?{format:{subtotal:!0}}:{}),{panel:t,field:{index:r,id:`${t}-${r}`}})}function M1(e,t,r){return Object.assign(Object.assign({},c1(e)?O.merge(e.measure.jaql(),{jaql:{subtotalAgg:e.totalsCalculation},format:{databars:e.dataBars||!1}}):e.jaql()),{panel:t,field:{index:r,id:`${t}-${r}`}})}function P1(e,t){const{rowsAttributes:r,columnsAttributes:n,measures:a,filters:o,filterRelations:l,highlights:u}=e,c=_1(r,n,a);let d=0;const p=r.map((w,E)=>Lh(w,"rows",E+d,c));d=d+r.length;const m=n.map((w,E)=>Lh(w,"columns",E+d,c));d=d+n.length;const h=[...p,...m],g=a.map((w,E)=>M1(w,"measures",E+d)),_=Zv(h,o,l,u,t),y=[...h,...g,..._];return C1(y,c),y}function R1(e,t,r,n){return Object.assign(Object.assign(Object.assign({datasource:Kv(e),by:is,queryGuid:Gv(),dashboard:is,widget:is,format:"pivot"},r?{count:r}:{}),n?{offset:n}:{}),{grandTotals:Object.assign(Object.assign({},d1),t)})}function Kv(e){return O.isDataSourceInfo(e)?{title:e.title,live:e.type==="live"}:e}function O1(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 k1(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 N1=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(k1(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=O1(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}(),Rt="-ms-",ms="-moz-",ze="-webkit-",Jc="comm",ed="rule",td="decl",D1="@import",Qv="@keyframes",A1="@layer",L1=Math.abs,As=String.fromCharCode,I1=Object.assign;function $1(e,t){return Et(e,0)^45?(((t<<2^Et(e,0))<<2^Et(e,1))<<2^Et(e,2))<<2^Et(e,3):0}function Jv(e){return e.trim()}function z1(e,t){return(e=t.exec(e))?e[0]:e}function Fe(e,t,r){return e.replace(t,r)}function Nu(e,t){return e.indexOf(t)}function Et(e,t){return e.charCodeAt(t)|0}function Ia(e,t,r){return e.slice(t,r)}function Or(e){return e.length}function rd(e){return e.length}function Vo(e,t){return t.push(e),e}function F1(e,t){return e.map(t).join("")}var Ls=1,ki=1,eg=0,Bt=0,vt=0,Bi="";function Is(e,t,r,n,a,o,l){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Ls,column:ki,length:l,return:""}}function ma(e,t){return I1(Is("",null,null,"",null,null,0),e,{length:-e.length},t)}function W1(){return vt}function j1(){return vt=Bt>0?Et(Bi,--Bt):0,ki--,vt===10&&(ki=1,Ls--),vt}function Gt(){return vt=Bt<eg?Et(Bi,Bt++):0,ki++,vt===10&&(ki=1,Ls++),vt}function Lr(){return Et(Bi,Bt)}function as(){return Bt}function Qa(e,t){return Ia(Bi,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 tg(e){return Ls=ki=1,eg=Or(Bi=e),Bt=0,[]}function rg(e){return Bi="",e}function os(e){return Jv(Qa(Bt-1,Du(e===91?e+2:e===40?e+1:e)))}function B1(e){for(;(vt=Lr())&&vt<33;)Gt();return $a(e)>2||$a(vt)>3?"":" "}function H1(e,t){for(;--t&&Gt()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return Qa(e,as()+(t<6&&Lr()==32&&Gt()==32))}function Du(e){for(;Gt();)switch(vt){case e:return Bt;case 34:case 39:e!==34&&e!==39&&Du(vt);break;case 40:e===41&&Du(e);break;case 92:Gt();break}return Bt}function V1(e,t){for(;Gt()&&e+vt!==57;)if(e+vt===84&&Lr()===47)break;return"/*"+Qa(t,Bt-1)+"*"+As(e===47?e:Gt())}function U1(e){for(;!$a(Lr());)Gt();return Qa(e,Bt)}function q1(e){return rg(ss("",null,null,null,[""],e=tg(e),0,[0],e))}function ss(e,t,r,n,a,o,l,u,c){for(var d=0,p=0,m=l,h=0,g=0,_=0,y=1,w=1,E=1,S=0,T="",C=a,x=o,P=n,R=T;w;)switch(_=S,S=Gt()){case 40:if(_!=108&&Et(R,m-1)==58){Nu(R+=Fe(os(S),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:R+=os(S);break;case 9:case 10:case 13:case 32:R+=B1(_);break;case 92:R+=H1(as()-1,7);continue;case 47:switch(Lr()){case 42:case 47:Vo(G1(V1(Gt(),as()),t,r),c);break;default:R+="/"}break;case 123*y:u[d++]=Or(R)*E;case 125*y:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+p:E==-1&&(R=Fe(R,/\f/g,"")),g>0&&Or(R)-m&&Vo(g>32?$h(R+";",n,r,m-1):$h(Fe(R," ","")+";",n,r,m-2),c);break;case 59:R+=";";default:if(Vo(P=Ih(R,t,r,d,p,a,u,T,C=[],x=[],m),o),S===123)if(p===0)ss(R,t,P,P,C,o,m,u,x);else switch(h===99&&Et(R,3)===110?100:h){case 100:case 108:case 109:case 115:ss(e,P,P,n&&Vo(Ih(e,P,P,0,0,a,u,T,a,C=[],m),x),a,x,m,u,n?C:x);break;default:ss(R,P,P,P,[""],x,0,u,x)}}d=p=g=0,y=E=1,T=R="",m=l;break;case 58:m=1+Or(R),g=_;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&j1()==125)continue}switch(R+=As(S),S*y){case 38:E=p>0?1:(R+="\f",-1);break;case 44:u[d++]=(Or(R)-1)*E,E=1;break;case 64:Lr()===45&&(R+=os(Gt())),h=Lr(),p=m=Or(T=R+=U1(as())),S++;break;case 45:_===45&&Or(R)==2&&(y=0)}}return o}function Ih(e,t,r,n,a,o,l,u,c,d,p){for(var m=a-1,h=a===0?o:[""],g=rd(h),_=0,y=0,w=0;_<n;++_)for(var E=0,S=Ia(e,m+1,m=L1(y=l[_])),T=e;E<g;++E)(T=Jv(y>0?h[E]+" "+S:Fe(S,/&\f/g,h[E])))&&(c[w++]=T);return Is(e,t,r,a===0?ed:u,c,d,p)}function G1(e,t,r){return Is(e,t,r,Jc,As(W1()),Ia(e,2,-2),0)}function $h(e,t,r,n){return Is(e,t,r,td,Ia(e,0,n),Ia(e,n+1,-1),n)}function Ri(e,t){for(var r="",n=rd(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Y1(e,t,r,n){switch(e.type){case A1:if(e.children.length)break;case D1:case td:return e.return=e.return||e.value;case Jc:return"";case Qv:return e.return=e.value+"{"+Ri(e.children,n)+"}";case ed:e.value=e.props.join(",")}return Or(r=Ri(e.children,n))?e.return=e.value+"{"+r+"}":""}function X1(e){var t=rd(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 Z1(e){return function(t){t.root||(t=t.return)&&e(t)}}function ng(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var K1=function(t,r,n){for(var a=0,o=0;a=o,o=Lr(),a===38&&o===12&&(r[n]=1),!$a(o);)Gt();return Qa(t,Bt)},Q1=function(t,r){var n=-1,a=44;do switch($a(a)){case 0:a===38&&Lr()===12&&(r[n]=1),t[n]+=K1(Bt-1,r,n);break;case 2:t[n]+=os(a);break;case 4:if(a===44){t[++n]=Lr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=As(a)}while(a=Gt());return t},J1=function(t,r){return rg(Q1(tg(t),r))},zh=new WeakMap,ex=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&&!zh.get(n))&&!a){zh.set(t,!0);for(var o=[],l=J1(r,o),u=n.props,c=0,d=0;c<l.length;c++)for(var p=0;p<u.length;p++,d++)t.props[d]=o[c]?l[c].replace(/&\f/g,u[p]):u[p]+" "+l[c]}}},tx=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},rx="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",nx=function(t){return t.type==="comm"&&t.children.indexOf(rx)>-1},ix=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 d=u[c];if(d.line<r.line)break;if(d.column<r.column){if(nx(d))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".')})}}}},ig=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},ax=function(t,r){for(var n=t-1;n>=0;n--)if(!ig(r[n]))return!0;return!1},Fh=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},ox=function(t,r,n){ig(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."),Fh(t)):ax(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Fh(t)))};function ag(e,t){switch($1(e,t)){case 5103:return ze+"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 ze+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ze+e+ms+e+Rt+e+e;case 6828:case 4268:return ze+e+Rt+e+e;case 6165:return ze+e+Rt+"flex-"+e+e;case 5187:return ze+e+Fe(e,/(\w+).+(:[^]+)/,ze+"box-$1$2"+Rt+"flex-$1$2")+e;case 5443:return ze+e+Rt+"flex-item-"+Fe(e,/flex-|-self/,"")+e;case 4675:return ze+e+Rt+"flex-line-pack"+Fe(e,/align-content|flex-|-self/,"")+e;case 5548:return ze+e+Rt+Fe(e,"shrink","negative")+e;case 5292:return ze+e+Rt+Fe(e,"basis","preferred-size")+e;case 6060:return ze+"box-"+Fe(e,"-grow","")+ze+e+Rt+Fe(e,"grow","positive")+e;case 4554:return ze+Fe(e,/([^-])(transform)/g,"$1"+ze+"$2")+e;case 6187:return Fe(Fe(Fe(e,/(zoom-|grab)/,ze+"$1"),/(image-set)/,ze+"$1"),e,"")+e;case 5495:case 3959:return Fe(e,/(image-set\([^]*)/,ze+"$1$`$1");case 4968:return Fe(Fe(e,/(.+:)(flex-)?(.*)/,ze+"box-pack:$3"+Rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ze+e+e;case 4095:case 3583:case 4068:case 2532:return Fe(e,/(.+)-inline(.+)/,ze+"$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(Or(e)-1-t>6)switch(Et(e,t+1)){case 109:if(Et(e,t+4)!==45)break;case 102:return Fe(e,/(.+:)(.+)-([^]+)/,"$1"+ze+"$2-$3$1"+ms+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Nu(e,"stretch")?ag(Fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Et(e,t+1)!==115)break;case 6444:switch(Et(e,Or(e)-3-(~Nu(e,"!important")&&10))){case 107:return Fe(e,":",":"+ze)+e;case 101:return Fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ze+(Et(e,14)===45?"inline-":"")+"box$3$1"+ze+"$2$3$1"+Rt+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return ze+e+Rt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ze+e+Rt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ze+e+Rt+Fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ze+e+Rt+e+e}return e}var sx=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case td:t.return=ag(t.value,t.length);break;case Qv:return Ri([ma(t,{value:Fe(t.value,"@","@"+ze)})],a);case ed:if(t.length)return F1(t.props,function(o){switch(z1(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ri([ma(t,{props:[Fe(o,/:(read-\w+)/,":"+ms+"$1")]})],a);case"::placeholder":return Ri([ma(t,{props:[Fe(o,/:(plac\w+)/,":"+ze+"input-$1")]}),ma(t,{props:[Fe(o,/:(plac\w+)/,":"+ms+"$1")]}),ma(t,{props:[Fe(o,/:(plac\w+)/,Rt+"input-$1")]})],a)}return""})}},lx=[sx],og=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(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var a=t.stylisPlugins||lx;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(y){for(var w=y.getAttribute("data-emotion").split(" "),E=1;E<w.length;E++)o[w[E]]=!0;u.push(y)});var c,d=[ex,tx];process.env.NODE_ENV!=="production"&&d.push(ix({get compat(){return _.compat}}),ox);{var p,m=[Y1,process.env.NODE_ENV!=="production"?function(y){y.root||(y.return?p.insert(y.return):y.value&&y.type!==Jc&&p.insert(y.value+"{}"))}:Z1(function(y){p.insert(y)})],h=X1(d.concat(a,m)),g=function(w){return Ri(q1(w),h)};c=function(w,E,S,T){p=S,process.env.NODE_ENV!=="production"&&E.map!==void 0&&(p={insert:function(x){S.insert(x+E.map)}}),g(w?w+"{"+E.styles+"}":E.styles),T&&(_.inserted[E.name]=!0)}}var _={key:r,sheet:new N1({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),_},ux=!0;function nd(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):n+=a+" "}),n}var $s=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||ux===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},zs=function(t,r,n){$s(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 cx(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 dx={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},Wh=`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`,fx="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",hx=/[A-Z]|^ms/g,sg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,id=function(t){return t.charCodeAt(1)===45},jh=function(t){return t!=null&&typeof t!="boolean"},Jl=ng(function(e){return id(e)?e:e.replace(hx,"-$&").toLowerCase()}),vs=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(sg,function(n,a,o){return wr={name:a,styles:o,next:wr},a})}return dx[t]!==1&&!id(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var px=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,mx=["normal","none","initial","inherit","unset"],vx=vs,gx=/^-ms-/,yx=/-(.)/g,Bh={};vs=function(t,r){if(t==="content"&&(typeof r!="string"||mx.indexOf(r)===-1&&!px.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=vx(t,r);return n!==""&&!id(t)&&t.indexOf("-")!==-1&&Bh[t]===void 0&&(Bh[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(gx,"ms-").replace(yx,function(a,o){return o.toUpperCase()})+"?")),n}}var lg="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function za(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(lg);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return wr={name:r.name,styles:r.styles,next:wr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)wr={name:n.name,styles:n.styles,next:wr},n=n.next;var a=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(a+=r.map),a}return bx(e,t,r)}case"function":{if(e!==void 0){var o=wr,l=r(e);return wr=o,za(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(sg,function(p,m,h){var g="animation"+u.length;return u.push("const "+g+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+g+"}"});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 d=t[r];return d!==void 0?d:r}function bx(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=za(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]+"}":jh(l)&&(n+=Jl(o)+":"+vs(o,l)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(lg);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var u=0;u<l.length;u++)jh(l[u])&&(n+=Jl(o)+":"+vs(o,l[u])+";");else{var c=za(e,t,l);switch(o){case"animation":case"animationName":{n+=Jl(o)+":"+c+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(fx),n+=o+"{"+c+"}"}}}}return n}var Hh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ug;process.env.NODE_ENV!=="production"&&(ug=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var wr,Ni=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="";wr=void 0;var l=t[0];l==null||l.raw===void 0?(a=!1,o+=za(n,r,l)):(process.env.NODE_ENV!=="production"&&l[0]===void 0&&console.error(Wh),o+=l[0]);for(var u=1;u<t.length;u++)o+=za(n,r,t[u]),a&&(process.env.NODE_ENV!=="production"&&l[u]===void 0&&console.error(Wh),o+=l[u]);var c;process.env.NODE_ENV!=="production"&&(o=o.replace(ug,function(h){return c=h,""})),Hh.lastIndex=0;for(var d="",p;(p=Hh.exec(o))!==null;)d+="-"+p[1];var m=cx(o)+d;return process.env.NODE_ENV!=="production"?{name:m,styles:o,map:c,next:wr,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:wr}},_x=function(t){return t()},cg=Z[`useInsertionEffect${Math.random()}`.slice(0,5)]?Z[`useInsertionEffect${Math.random()}`.slice(0,5)]:!1,ad=cg||_x,Vh=cg||Z.useLayoutEffect,wx={}.hasOwnProperty,od=Z.createContext(typeof HTMLElement!="undefined"?og({key:"css"}):null);process.env.NODE_ENV!=="production"&&(od.displayName="EmotionCacheContext");var dg=od.Provider,Fs=function(t){return J.forwardRef(function(r,n){var a=J.useContext(od);return t(r,a,n)})},xn=Z.createContext({});process.env.NODE_ENV!=="production"&&(xn.displayName="EmotionThemeContext");var Uh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",qh="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",xx=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return $s(r,n,a),ad(function(){return zs(r,n,a)}),null},Cx=Fs(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[Uh],o=[n],l="";typeof e.className=="string"?l=nd(t.registered,o,e.className):e.className!=null&&(l=e.className+" ");var u=Ni(o,void 0,Z.useContext(xn));if(process.env.NODE_ENV!=="production"&&u.name.indexOf("-")===-1){var c=e[qh];c&&(u=Ni([u,"label:"+c+";"]))}l+=t.key+"-"+u.name;var d={};for(var p in e)wx.call(e,p)&&p!=="css"&&p!==Uh&&(process.env.NODE_ENV==="production"||p!==qh)&&(d[p]=e[p]);return d.ref=r,d.className=l,Z.createElement(Z.Fragment,null,Z.createElement(xx,{cache:t,serialized:u,isStringTag:typeof a=="string"}),Z.createElement(a,d))});process.env.NODE_ENV!=="production"&&(Cx.displayName="EmotionCssPropInternal");var Tx={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"}}}}},Gh=!1,sd=Fs(function(e,t){process.env.NODE_ENV!=="production"&&!Gh&&(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?"),Gh=!0);var r=e.styles,n=Ni([r],void 0,Z.useContext(xn)),a=Z.useRef();return Vh(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]),Vh(function(){var o=a.current,l=o[0],u=o[1];if(u){o[1]=!1;return}if(n.next!==void 0&&zs(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"&&(sd.displayName="EmotionGlobal");function ld(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ni(t)}var Ja=function(){var t=ld.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_"}}},Sx=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 Ex(e,t,r){var n=[],a=nd(e,n,r);return n.length<2?r:a+t(n)}var Mx=function(t){var r=t.cache,n=t.serializedArr;return ad(function(){for(var a=0;a<n.length;a++)zs(r,n[a],!1)}),null},Px=Fs(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 d=arguments.length,p=new Array(d),m=0;m<d;m++)p[m]=arguments[m];var h=Ni(p,t.registered);return n.push(h),$s(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 d=arguments.length,p=new Array(d),m=0;m<d;m++)p[m]=arguments[m];return Ex(t.registered,a,Sx(p))},l={css:a,cx:o,theme:Z.useContext(xn)},u=e.children(l);return r=!0,Z.createElement(Z.Fragment,null,Z.createElement(Mx,{cache:t,serializedArr:n}),u)});process.env.NODE_ENV!=="production"&&(Px.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var Yh=!0,Rx=typeof jest!="undefined"||typeof vi!="undefined";if(Yh&&!Rx){var Xh=typeof globalThis!="undefined"?globalThis:Yh?window:global,Zh="__EMOTION_REACT_"+Tx.version.split(".")[0]+"__";Xh[Zh]&&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."),Xh[Zh]=!0}}var Ox=/^((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)-.*))$/,kx=ng(function(e){return Ox.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Nx=kx,Dx=function(t){return t!=="theme"},Kh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Nx:Dx},Qh=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},Jh=`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`,Ax=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return $s(r,n,a),ad(function(){return zs(r,n,a)}),null},Lx=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=Qh(t,r,n),c=u||Kh(a),d=!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(Jh),m.push(p[0][0]);for(var h=p.length,g=1;g<h;g++)process.env.NODE_ENV!=="production"&&p[0][g]===void 0&&console.error(Jh),m.push(p[g],p[0][g])}var _=Fs(function(y,w,E){var S=d&&y.as||a,T="",C=[],x=y;if(y.theme==null){x={};for(var P in y)x[P]=y[P];x.theme=Z.useContext(xn)}typeof y.className=="string"?T=nd(w.registered,C,y.className):y.className!=null&&(T=y.className+" ");var R=Ni(m.concat(C),w.registered,x);T+=w.key+"-"+R.name,l!==void 0&&(T+=" "+l);var D=d&&u===void 0?Kh(S):c,A={};for(var I in y)d&&I==="as"||D(I)&&(A[I]=y[I]);return A.className=T,A.ref=E,Z.createElement(Z.Fragment,null,Z.createElement(Ax,{cache:w,serialized:R,isStringTag:typeof S=="string"}),Z.createElement(S,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(y,w){return e(y,te({},r,w,{shouldForwardProp:Qh(_,w,!0)})).apply(void 0,m)},_}},Ix=["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"],Cr=Lx.bind();Ix.forEach(function(e){Cr[e]=Cr(e)});function Di(e){"@babel/helpers - typeof";return Di=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},Di(e)}function eo(e){O.requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Di(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 $x(e,t){O.requiredArgs(2,arguments);var r=eo(e),n=O.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 zx={};function Fx(){return zx}function ep(e,t){var r,n,a,o,l,u,c,d;O.requiredArgs(1,arguments);var p=Fx(),m=O.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||(d=c.options)===null||d===void 0?void 0:d.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=eo(e),g=h.getUTCDay(),_=(g<m?7:0)+g-m;return h.setUTCDate(h.getUTCDate()-_),h.setUTCHours(0,0,0,0),h}var Wx={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"}},jx=function(t,r,n){var a,o=Wx[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 Ae(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 Bx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Hx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Vx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ux={date:Ae({formats:Bx,defaultWidth:"full"}),time:Ae({formats:Hx,defaultWidth:"full"}),dateTime:Ae({formats:Vx,defaultWidth:"full"})},qx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Gx=function(t,r,n,a){return qx[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 d=e.argumentCallback?e.argumentCallback(t):t;return a[d]}}var Yx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Xx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Zx={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"]},Kx={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"]},Qx={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"}},Jx={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"}},eC=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"},tC={ordinalNumber:eC,era:ye({values:Yx,defaultWidth:"wide"}),quarter:ye({values:Xx,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:Zx,defaultWidth:"wide"}),day:ye({values:Kx,defaultWidth:"wide"}),dayPeriod:ye({values:Qx,defaultWidth:"wide",formattingValues:Jx,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)?nC(u,function(m){return m.test(l)}):rC(u,function(m){return m.test(l)}),d;d=e.valueCallback?e.valueCallback(c):c,d=r.valueCallback?r.valueCallback(d):d;var p=t.slice(l.length);return{value:d,rest:p}}}function rC(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function nC(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function cr(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 iC=/^(\d+)(th|st|nd|rd)?/i,aC=/\d+/i,oC={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},sC={any:[/^b/i,/^(a|c)/i]},lC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},uC={any:[/1/i,/2/i,/3/i,/4/i]},cC={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},dC={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]},fC={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},hC={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]},pC={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},mC={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}},vC={ordinalNumber:cr({matchPattern:iC,parsePattern:aC,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:oC,defaultMatchWidth:"wide",parsePatterns:sC,defaultParseWidth:"any"}),quarter:be({matchPatterns:lC,defaultMatchWidth:"wide",parsePatterns:uC,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:cC,defaultMatchWidth:"wide",parsePatterns:dC,defaultParseWidth:"any"}),day:be({matchPatterns:fC,defaultMatchWidth:"wide",parsePatterns:hC,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:pC,defaultMatchWidth:"any",parsePatterns:mC,defaultParseWidth:"any"})},gC={code:"en-US",formatDistance:jx,formatLong:Ux,formatRelative:Gx,localize:tC,match:vC,options:{weekStartsOn:0,firstWeekContainsDate:1}};function fg(e,t){O.requiredArgs(2,arguments);var r=O.toInteger(t);return $x(e,r*12)}function hg(e,t){O.requiredArgs(2,arguments);var r=O.toInteger(t);return fg(e,-r)}function yC(e){O.requiredArgs(1,arguments);var t=eo(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 bC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Au(e,t){return Au=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Au(e,t)}function _C(e,t){if(Di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wC(e){var t=_C(e,"string");return Di(t)=="symbol"?t:t+""}function xC(e,t,r){return t=wC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CC(e,t){O.requiredArgs(2,arguments);var r=eo(e),n=O.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=yC(l);return r.setMonth(n,Math.min(o,u)),r}function TC(e,t){O.requiredArgs(2,arguments);var r=eo(e),n=O.toInteger(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function Fa(e,t,r){O.requiredArgs(2,arguments);var n=ep(e,r),a=ep(t,r);return n.getTime()===a.getTime()}var tp={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"}}},SC=function(t,r,n){var a,o=n!=null&&n.addSuffix?tp[t].withPreposition:tp[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},EC={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},MC={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},PC={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},RC={date:Ae({formats:EC,defaultWidth:"full"}),time:Ae({formats:MC,defaultWidth:"full"}),dateTime:Ae({formats:PC,defaultWidth:"full"})},OC={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},kC=function(t,r,n,a){return OC[t]},NC={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},DC={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"]},AC={narrow:Lu.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Lu.wide},LC={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"]},IC={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"}},$C={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"}},zC=function(t){var r=Number(t);return r+"."},FC={ordinalNumber:zC,era:ye({values:NC,defaultWidth:"wide"}),quarter:ye({values:DC,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:Lu,formattingValues:AC,defaultWidth:"wide"}),day:ye({values:LC,defaultWidth:"wide"}),dayPeriod:ye({values:IC,defaultWidth:"wide",formattingValues:$C,defaultFormattingWidth:"wide"})},WC=/^(\d+)(\.)?/i,jC=/\d+/i,BC={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},HC={any:[/^v/i,/^n/i]},VC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},UC={any:[/1/i,/2/i,/3/i,/4/i]},qC={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},GC={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]},YC={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},XC={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},ZC={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},KC={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}},QC={ordinalNumber:cr({matchPattern:WC,parsePattern:jC,valueCallback:function(t){return parseInt(t)}}),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:"wide",parsePatterns:KC,defaultParseWidth:"any"})},JC={code:"de",formatDistance:SC,formatLong:RC,formatRelative:kC,localize:FC,match:QC,options:{weekStartsOn:1,firstWeekContainsDate:4}},eT={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"}},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?"en "+a:"hace "+a:a},rT={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},nT={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},iT={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aT={date:Ae({formats:rT,defaultWidth:"full"}),time:Ae({formats:nT,defaultWidth:"full"}),dateTime:Ae({formats:iT,defaultWidth:"full"})},oT={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"},sT={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"},lT=function(t,r,n,a){return r.getUTCHours()!==1?sT[t]:oT[t]},uT={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},cT={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},dT={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"]},fT={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"]},hT={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"}},pT={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"}},mT=function(t,r){var n=Number(t);return n+"º"},vT={ordinalNumber:mT,era:ye({values:uT,defaultWidth:"wide"}),quarter:ye({values:cT,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:ye({values:dT,defaultWidth:"wide"}),day:ye({values:fT,defaultWidth:"wide"}),dayPeriod:ye({values:hT,defaultWidth:"wide",formattingValues:pT,defaultFormattingWidth:"wide"})},gT=/^(\d+)(º)?/i,yT=/\d+/i,bT={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},_T={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]},wT={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},xT={any:[/1/i,/2/i,/3/i,/4/i]},CT={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},TT={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]},ST={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},ET={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]},MT={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},PT={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}},RT={ordinalNumber:cr({matchPattern:gT,parsePattern:yT,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:bT,defaultMatchWidth:"wide",parsePatterns:_T,defaultParseWidth:"any"}),quarter:be({matchPatterns:wT,defaultMatchWidth:"wide",parsePatterns:xT,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:CT,defaultMatchWidth:"wide",parsePatterns:TT,defaultParseWidth:"any"}),day:be({matchPatterns:ST,defaultMatchWidth:"wide",parsePatterns:ET,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:MT,defaultMatchWidth:"any",parsePatterns:PT,defaultParseWidth:"any"})},OT={code:"es",formatDistance:tT,formatLong:aT,formatRelative:lT,localize:vT,match:RT,options:{weekStartsOn:1,firstWeekContainsDate:1}},kT={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"}},NT=function(t,r,n){var a,o=kT[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},DT={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},AT={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},LT={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},IT={date:Ae({formats:DT,defaultWidth:"full"}),time:Ae({formats:AT,defaultWidth:"full"}),dateTime:Ae({formats:LT,defaultWidth:"full"})},$T={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},zT=function(t,r,n,a){return $T[t]},FT={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},WT={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"]},jT={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"]},BT={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"]},HT={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"}},VT=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},UT={ordinalNumber:VT,era:ye({values:FT,defaultWidth:"wide"}),quarter:ye({values:WT,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:jT,defaultWidth:"wide"}),day:ye({values:BT,defaultWidth:"wide"}),dayPeriod:ye({values:HT,defaultWidth:"wide"})},qT=/^(\d+)(ième|ère|ème|er|e)?/i,GT=/\d+/i,YT={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},XT={any:[/^av/i,/^ap/i]},ZT={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},KT={any:[/1/i,/2/i,/3/i,/4/i]},QT={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},JT={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]},eS={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},tS={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]},rS={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},nS={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}},iS={ordinalNumber:cr({matchPattern:qT,parsePattern:GT,valueCallback:function(t){return parseInt(t)}}),era:be({matchPatterns:YT,defaultMatchWidth:"wide",parsePatterns:XT,defaultParseWidth:"any"}),quarter:be({matchPatterns:ZT,defaultMatchWidth:"wide",parsePatterns:KT,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:QT,defaultMatchWidth:"wide",parsePatterns:JT,defaultParseWidth:"any"}),day:be({matchPatterns:eS,defaultMatchWidth:"wide",parsePatterns:tS,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:rS,defaultMatchWidth:"any",parsePatterns:nS,defaultParseWidth:"any"})},aS={code:"fr",formatDistance:NT,formatLong:IT,formatRelative:zT,localize:UT,match:iS,options:{weekStartsOn:1,firstWeekContainsDate:4}},oS={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"}},sS=function(t,r,n){var a,o=oS[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},lS={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},uS={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},cS={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},dS={date:Ae({formats:lS,defaultWidth:"full"}),time:Ae({formats:uS,defaultWidth:"full"}),dateTime:Ae({formats:cS,defaultWidth:"full"})},ud=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function fS(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+ud[e]+" scorso alle' p"}}function rp(e){return"'"+ud[e]+" alle' p"}function hS(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+ud[e]+" prossimo alle' p"}}var pS={lastWeek:function(t,r,n){var a=t.getUTCDay();return Fa(t,r,n)?rp(a):fS(a)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,r,n){var a=t.getUTCDay();return Fa(t,r,n)?rp(a):hS(a)},other:"P"},mS=function(t,r,n,a){var o=pS[t];return typeof o=="function"?o(r,n,a):o},vS={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},gS={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},yS={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"]},bS={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"]},_S={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"}},wS={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"}},xS=function(t,r){var n=Number(t);return String(n)},CS={ordinalNumber:xS,era:ye({values:vS,defaultWidth:"wide"}),quarter:ye({values:gS,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:yS,defaultWidth:"wide"}),day:ye({values:bS,defaultWidth:"wide"}),dayPeriod:ye({values:_S,defaultWidth:"wide",formattingValues:wS,defaultFormattingWidth:"wide"})},TS=/^(\d+)(º)?/i,SS=/\d+/i,ES={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},MS={any:[/^a/i,/^(d|e)/i]},PS={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},RS={any:[/1/i,/2/i,/3/i,/4/i]},OS={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},kS={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]},NS={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},DS={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]},AS={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},LS={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}},IS={ordinalNumber:cr({matchPattern:TS,parsePattern:SS,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:ES,defaultMatchWidth:"wide",parsePatterns:MS,defaultParseWidth:"any"}),quarter:be({matchPatterns:PS,defaultMatchWidth:"wide",parsePatterns:RS,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:OS,defaultMatchWidth:"wide",parsePatterns:kS,defaultParseWidth:"any"}),day:be({matchPatterns:NS,defaultMatchWidth:"wide",parsePatterns:DS,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:AS,defaultMatchWidth:"any",parsePatterns:LS,defaultParseWidth:"any"})},$S={code:"it",formatDistance:sS,formatLong:dS,formatRelative:mS,localize:CS,match:IS,options:{weekStartsOn:1,firstWeekContainsDate:4}},zS={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}}年近く"}},FS=function(t,r,n){n=n||{};var a,o=zS[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},WS={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},jS={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},BS={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},HS={date:Ae({formats:WS,defaultWidth:"full"}),time:Ae({formats:jS,defaultWidth:"full"}),dateTime:Ae({formats:BS,defaultWidth:"full"})},VS={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},US=function(t,r,n,a){return VS[t]},qS={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},GS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},YS={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月"]},XS={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},ZS={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:"深夜"}},KS={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:"深夜"}},QS=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)}},JS={ordinalNumber:QS,era:ye({values:qS,defaultWidth:"wide"}),quarter:ye({values:GS,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:ye({values:YS,defaultWidth:"wide"}),day:ye({values:XS,defaultWidth:"wide"}),dayPeriod:ye({values:ZS,defaultWidth:"wide",formattingValues:KS,defaultFormattingWidth:"wide"})},eE=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,tE=/\d+/i,rE={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},nE={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},iE={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},aE={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},oE={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},sE={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},lE={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},uE={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},cE={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},dE={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},fE={ordinalNumber:cr({matchPattern:eE,parsePattern:tE,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:rE,defaultMatchWidth:"wide",parsePatterns:nE,defaultParseWidth:"any"}),quarter:be({matchPatterns:iE,defaultMatchWidth:"wide",parsePatterns:aE,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:oE,defaultMatchWidth:"wide",parsePatterns:sE,defaultParseWidth:"any"}),day:be({matchPatterns:lE,defaultMatchWidth:"wide",parsePatterns:uE,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:cE,defaultMatchWidth:"any",parsePatterns:dE,defaultParseWidth:"any"})},hE={code:"ja",formatDistance:FS,formatLong:HS,formatRelative:US,localize:JS,match:fE,options:{weekStartsOn:0,firstWeekContainsDate:1}},pE={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}}년"}},mE=function(t,r,n){var a,o=pE[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},vE={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},gE={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},yE={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},bE={date:Ae({formats:vE,defaultWidth:"full"}),time:Ae({formats:gE,defaultWidth:"full"}),dateTime:Ae({formats:yE,defaultWidth:"full"})},_E={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},wE=function(t,r,n,a){return _E[t]},xE={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},CE={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},TE={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월"]},SE={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},EE={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:"밤"}},ME={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:"밤"}},PE=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+"번째"}},RE={ordinalNumber:PE,era:ye({values:xE,defaultWidth:"wide"}),quarter:ye({values:CE,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:TE,defaultWidth:"wide"}),day:ye({values:SE,defaultWidth:"wide"}),dayPeriod:ye({values:EE,defaultWidth:"wide",formattingValues:ME,defaultFormattingWidth:"wide"})},OE=/^(\d+)(일|번째)?/i,kE=/\d+/i,NE={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},DE={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},AE={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},LE={any:[/1/i,/2/i,/3/i,/4/i]},IE={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},$E={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},zE={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},FE={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},WE={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},jE={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},BE={ordinalNumber:cr({matchPattern:OE,parsePattern:kE,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:NE,defaultMatchWidth:"wide",parsePatterns:DE,defaultParseWidth:"any"}),quarter:be({matchPatterns:AE,defaultMatchWidth:"wide",parsePatterns:LE,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:IE,defaultMatchWidth:"wide",parsePatterns:$E,defaultParseWidth:"any"}),day:be({matchPatterns:zE,defaultMatchWidth:"wide",parsePatterns:FE,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:WE,defaultMatchWidth:"any",parsePatterns:jE,defaultParseWidth:"any"})},HE={code:"ko",formatDistance:mE,formatLong:bE,formatRelative:wE,localize:RE,match:BE,options:{weekStartsOn:0,firstWeekContainsDate:1}},VE={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"}},UE=function(t,r,n){var a,o=VE[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},qE={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},GE={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},YE={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},XE={date:Ae({formats:qE,defaultWidth:"full"}),time:Ae({formats:GE,defaultWidth:"full"}),dateTime:Ae({formats:YE,defaultWidth:"full"})},ZE={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},KE=function(t,r,n,a){return ZE[t]},QE={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},JE={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},eM={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"]},tM={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"]},rM={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"}},nM=function(t,r){var n=Number(t);return n+"e"},iM={ordinalNumber:nM,era:ye({values:QE,defaultWidth:"wide"}),quarter:ye({values:JE,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:eM,defaultWidth:"wide"}),day:ye({values:tM,defaultWidth:"wide"}),dayPeriod:ye({values:rM,defaultWidth:"wide"})},aM=/^(\d+)e?/i,oM=/\d+/i,sM={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},lM={any:[/^v/,/^n/]},uM={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},cM={any:[/1/i,/2/i,/3/i,/4/i]},dM={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},fM={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]},hM={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},pM={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]},mM={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},vM={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}},gM={ordinalNumber:cr({matchPattern:aM,parsePattern:oM,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:sM,defaultMatchWidth:"wide",parsePatterns:lM,defaultParseWidth:"any"}),quarter:be({matchPatterns:uM,defaultMatchWidth:"wide",parsePatterns:cM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:dM,defaultMatchWidth:"wide",parsePatterns:fM,defaultParseWidth:"any"}),day:be({matchPatterns:hM,defaultMatchWidth:"wide",parsePatterns:pM,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:mM,defaultMatchWidth:"any",parsePatterns:vM,defaultParseWidth:"any"})},yM={code:"nl",formatDistance:UE,formatLong:XE,formatRelative:KE,localize:iM,match:gM,options:{weekStartsOn:1,firstWeekContainsDate:4}},bM={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"}},_M=function(t,r,n){var a,o=bM[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},wM={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},xM={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},CM={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},TM={date:Ae({formats:wM,defaultWidth:"full"}),time:Ae({formats:xM,defaultWidth:"full"}),dateTime:Ae({formats:CM,defaultWidth:"full"})},SM={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"},EM=function(t,r,n,a){var o=SM[t];return typeof o=="function"?o(r):o},MM={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},PM={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},RM={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"]},OM={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"]},kM={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"}},NM={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"}},DM=function(t,r){var n=Number(t);return n+"º"},AM={ordinalNumber:DM,era:ye({values:MM,defaultWidth:"wide"}),quarter:ye({values:PM,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:RM,defaultWidth:"wide"}),day:ye({values:OM,defaultWidth:"wide"}),dayPeriod:ye({values:kM,defaultWidth:"wide",formattingValues:NM,defaultFormattingWidth:"wide"})},LM=/^(\d+)(º|ª)?/i,IM=/\d+/i,$M={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},zM={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},FM={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},WM={any:[/1/i,/2/i,/3/i,/4/i]},jM={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},BM={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]},HM={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},VM={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]},UM={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},qM={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}},GM={ordinalNumber:cr({matchPattern:LM,parsePattern:IM,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:$M,defaultMatchWidth:"wide",parsePatterns:zM,defaultParseWidth:"any"}),quarter:be({matchPatterns:FM,defaultMatchWidth:"wide",parsePatterns:WM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:jM,defaultMatchWidth:"wide",parsePatterns:BM,defaultParseWidth:"any"}),day:be({matchPatterns:HM,defaultMatchWidth:"wide",parsePatterns:VM,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:UM,defaultMatchWidth:"any",parsePatterns:qM,defaultParseWidth:"any"})},YM={code:"pt",formatDistance:_M,formatLong:TM,formatRelative:EM,localize:AM,match:GM,options:{weekStartsOn:1,firstWeekContainsDate:4}};function va(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 Nt(e){return function(t,r){return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?e.future?va(e.future,t):"через "+va(e.regular,t):e.past?va(e.past,t):va(e.regular,t)+" назад":va(e.regular,t)}}var XM={lessThanXSeconds:Nt({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:Nt({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:Nt({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:Nt({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:Nt({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:Nt({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:Nt({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:Nt({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:Nt({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:Nt({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:Nt({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:Nt({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:Nt({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:Nt({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:Nt({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},ZM=function(t,r,n){return XM[t](r,n)},KM={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},QM={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},JM={any:"{{date}}, {{time}}"},e2={date:Ae({formats:KM,defaultWidth:"full"}),time:Ae({formats:QM,defaultWidth:"full"}),dateTime:Ae({formats:JM,defaultWidth:"any"})},cd=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function t2(e){var t=cd[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 np(e){var t=cd[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function r2(e){var t=cd[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 n2={lastWeek:function(t,r,n){var a=t.getUTCDay();return Fa(t,r,n)?np(a):t2(a)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,r,n){var a=t.getUTCDay();return Fa(t,r,n)?np(a):r2(a)},other:"P"},i2=function(t,r,n,a){var o=n2[t];return typeof o=="function"?o(r,n,a):o},a2={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},o2={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},s2={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},l2={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},u2={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},c2={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:"ночь"}},d2={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:"ночи"}},f2=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},h2={ordinalNumber:f2,era:ye({values:a2,defaultWidth:"wide"}),quarter:ye({values:o2,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:s2,defaultWidth:"wide",formattingValues:l2,defaultFormattingWidth:"wide"}),day:ye({values:u2,defaultWidth:"wide"}),dayPeriod:ye({values:c2,defaultWidth:"any",formattingValues:d2,defaultFormattingWidth:"wide"})},p2=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,m2=/\d+/i,v2={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},g2={any:[/^д/i,/^н/i]},y2={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},b2={any:[/1/i,/2/i,/3/i,/4/i]},_2={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},w2={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]},x2={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},C2={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},T2={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},S2={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},E2={ordinalNumber:cr({matchPattern:p2,parsePattern:m2,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:v2,defaultMatchWidth:"wide",parsePatterns:g2,defaultParseWidth:"any"}),quarter:be({matchPatterns:y2,defaultMatchWidth:"wide",parsePatterns:b2,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:_2,defaultMatchWidth:"wide",parsePatterns:w2,defaultParseWidth:"any"}),day:be({matchPatterns:x2,defaultMatchWidth:"wide",parsePatterns:C2,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:T2,defaultMatchWidth:"wide",parsePatterns:S2,defaultParseWidth:"any"})},M2={code:"ru",formatDistance:ZM,formatLong:e2,formatRelative:i2,localize:h2,match:E2,options:{weekStartsOn:1,firstWeekContainsDate:1}},P2={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"}},R2=function(t,r,n){var a,o=P2[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},O2={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},k2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},N2={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},D2={date:Ae({formats:O2,defaultWidth:"full"}),time:Ae({formats:k2,defaultWidth:"full"}),dateTime:Ae({formats:N2,defaultWidth:"full"})},A2={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"},L2=function(t,r,n,a){return A2[t]},I2={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},$2={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},z2={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"]},F2={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"]},W2={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"}},j2={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"}},B2=function(t,r){var n=Number(t);return n+"."},H2={ordinalNumber:B2,era:ye({values:I2,defaultWidth:"wide"}),quarter:ye({values:$2,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:ye({values:z2,defaultWidth:"wide"}),day:ye({values:F2,defaultWidth:"wide"}),dayPeriod:ye({values:W2,defaultWidth:"wide",formattingValues:j2,defaultFormattingWidth:"wide"})},V2=/^(\d+)(\.)?/i,U2=/\d+/i,q2={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},G2={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},Y2={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},X2={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]},Z2={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},K2={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]},Q2={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},J2={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]},eP={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},tP={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}},rP={ordinalNumber:cr({matchPattern:V2,parsePattern:U2,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:q2,defaultMatchWidth:"wide",parsePatterns:G2,defaultParseWidth:"any"}),quarter:be({matchPatterns:Y2,defaultMatchWidth:"wide",parsePatterns:X2,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:Z2,defaultMatchWidth:"wide",parsePatterns:K2,defaultParseWidth:"any"}),day:be({matchPatterns:Q2,defaultMatchWidth:"wide",parsePatterns:J2,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:eP,defaultMatchWidth:"any",parsePatterns:tP,defaultParseWidth:"any"})},nP={code:"tr",formatDistance:R2,formatLong:D2,formatRelative:L2,localize:H2,match:rP,options:{weekStartsOn:1,firstWeekContainsDate:1}},iP={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}} 年"}},aP=function(t,r,n){var a,o=iP[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},oP={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},sP={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},lP={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},uP={date:Ae({formats:oP,defaultWidth:"full"}),time:Ae({formats:sP,defaultWidth:"full"}),dateTime:Ae({formats:lP,defaultWidth:"full"})};function ip(e,t,r){var n="eeee p";return Fa(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}var cP={lastWeek:ip,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:ip,other:"PP p"},dP=function(t,r,n,a){var o=cP[t];return typeof o=="function"?o(r,n,a):o},fP={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},hP={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},pP={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},mP={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},vP={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:"夜间"}},gP={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:"夜间"}},yP=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()}},bP={ordinalNumber:yP,era:ye({values:fP,defaultWidth:"wide"}),quarter:ye({values:hP,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:pP,defaultWidth:"wide"}),day:ye({values:mP,defaultWidth:"wide"}),dayPeriod:ye({values:vP,defaultWidth:"wide",formattingValues:gP,defaultFormattingWidth:"wide"})},_P=/^(第\s*)?\d+(日|时|分|秒)?/i,wP=/\d+/i,xP={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},CP={any:[/^(前)/i,/^(公元)/i]},TP={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},SP={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},EP={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},MP={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]},PP={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},RP={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},OP={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},kP={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},NP={ordinalNumber:cr({matchPattern:_P,parsePattern:wP,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:xP,defaultMatchWidth:"wide",parsePatterns:CP,defaultParseWidth:"any"}),quarter:be({matchPatterns:TP,defaultMatchWidth:"wide",parsePatterns:SP,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:EP,defaultMatchWidth:"wide",parsePatterns:MP,defaultParseWidth:"any"}),day:be({matchPatterns:PP,defaultMatchWidth:"wide",parsePatterns:RP,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:OP,defaultMatchWidth:"any",parsePatterns:kP,defaultParseWidth:"any"})},DP={code:"zh-CN",formatDistance:aP,formatLong:uP,formatRelative:dP,localize:bP,match:NP,options:{weekStartsOn:1,firstWeekContainsDate:4}},AP=Math.ceil,LP=Math.max;function IP(e,t,r,n){for(var a=-1,o=LP(AP((t-e)/(r||1)),0),l=Array(o);o--;)l[++a]=e,e+=r;return l}function pg(e,t,r){if(!O.isObject(r))return!1;var n=typeof t;return(n=="number"?O.isArrayLike(r)&&O.isIndex(t,r.length):n=="string"&&t in r)?O.eq(r[t],e):!1}function $P(e){return function(t,r,n){return n&&typeof n!="number"&&pg(t,r,n)&&(r=n=void 0),t=O.toFinite(t),r===void 0?(r=t,t=0):r=O.toFinite(r),n=n===void 0?t<r?1:-1:O.toFinite(n),IP(t,r,n)}}var Uo=$P();const dd=e=>{var t;switch((t=e==null?void 0:e.language)==null?void 0:t.split("-")[0]){case"de":return JC;case"fr":return aS;case"es":return OT;case"it":return $S;case"ja":return hE;case"ko":return HE;case"nl":return yM;case"pt":return YM;case"ru":return M2;case"tr":return nP;case"zh":return DP;default:return gC}};Uo(4),Uo(12),Uo(7),Uo(24);var Iu={exports:{}},mg={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})(mg);var Xe=mg.exports,$u={exports:{}},zu={exports:{}},vg={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})(vg);var gg=vg.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 $t=Fu.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(gg),a=r($t);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})(zu,zu.exports);var zP=zu.exports,Wu={exports:{}};(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(gg),a=r($t);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})(Wu,Wu.exports);var Wr=Wu.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(zP),a=r(Wr),o=r($t);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})($u,$u.exports);var FP=$u.exports,ju={exports:{}},Bu={exports:{}},Hu={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})(Hu,Hu.exports);var Yn=Hu.exports;const WP=O.getDefaultExportFromCjs(Yn);(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(Yn),a=r(Wr),o=r($t);function l(u,c){(0,o.default)(2,arguments);var d=(0,a.default)(u).getTime(),p=(0,n.default)(c);return new Date(d+p)}e.exports=t.default})(Bu,Bu.exports);var jP=Bu.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(jP),a=r($t),o=r(Yn);function l(u,c){(0,a.default)(2,arguments);var d=(0,o.default)(c);return(0,n.default)(u,-d)}e.exports=t.default})(ju,ju.exports);var BP=ju.exports,Vu={exports:{}},Uu={exports:{}};(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(Wr),a=r($t),o=864e5;function l(u){(0,a.default)(1,arguments);var c=(0,n.default)(u),d=c.getTime();c.setUTCMonth(0,1),c.setUTCHours(0,0,0,0);var p=c.getTime(),m=d-p;return Math.floor(m/o)+1}e.exports=t.default})(Uu,Uu.exports);var HP=Uu.exports,qu={exports:{}},Gu={exports:{}};(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Wr),a=r($t);function o(l){(0,a.default)(1,arguments);var u=1,c=(0,n.default)(l),d=c.getUTCDay(),p=(d<u?7:0)+d-u;return c.setUTCDate(c.getUTCDate()-p),c.setUTCHours(0,0,0,0),c}e.exports=t.default})(Gu,Gu.exports);var fd=Gu.exports,Yu={exports:{}},Xu={exports:{}};(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(Wr),a=r($t),o=r(fd);function l(u){(0,a.default)(1,arguments);var c=(0,n.default)(u),d=c.getUTCFullYear(),p=new Date(0);p.setUTCFullYear(d+1,0,4),p.setUTCHours(0,0,0,0);var m=(0,o.default)(p),h=new Date(0);h.setUTCFullYear(d,0,4),h.setUTCHours(0,0,0,0);var g=(0,o.default)(h);return c.getTime()>=m.getTime()?d+1:c.getTime()>=g.getTime()?d:d-1}e.exports=t.default})(Xu,Xu.exports);var yg=Xu.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(yg),a=r(fd),o=r($t);function l(u){(0,o.default)(1,arguments);var c=(0,n.default)(u),d=new Date(0);d.setUTCFullYear(c,0,4),d.setUTCHours(0,0,0,0);var p=(0,a.default)(d);return p}e.exports=t.default})(Yu,Yu.exports);var VP=Yu.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(Wr),a=r(fd),o=r(VP),l=r($t),u=6048e5;function c(d){(0,l.default)(1,arguments);var p=(0,n.default)(d),m=(0,a.default)(p).getTime()-(0,o.default)(p).getTime();return Math.round(m/u)+1}e.exports=t.default})(qu,qu.exports);var UP=qu.exports,Zu={exports:{}},Ku={exports:{}},Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.getDefaultOptions=qP;Xn.setDefaultOptions=GP;var bg={};function qP(){return bg}function GP(e){bg=e}(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(Wr),a=r($t),o=r(Yn),l=Xn;function u(c,d){var p,m,h,g,_,y,w,E;(0,a.default)(1,arguments);var S=(0,l.getDefaultOptions)(),T=(0,o.default)((p=(m=(h=(g=d==null?void 0:d.weekStartsOn)!==null&&g!==void 0?g:d==null||(_=d.locale)===null||_===void 0||(y=_.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&h!==void 0?h:S.weekStartsOn)!==null&&m!==void 0?m:(w=S.locale)===null||w===void 0||(E=w.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&p!==void 0?p:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var C=(0,n.default)(c),x=C.getUTCDay(),P=(x<T?7:0)+x-T;return C.setUTCDate(C.getUTCDate()-P),C.setUTCHours(0,0,0,0),C}e.exports=t.default})(Ku,Ku.exports);var hd=Ku.exports,Qu={exports:{}},Ju={exports:{}};(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(Wr),a=r($t),o=r(hd),l=r(Yn),u=Xn;function c(d,p){var m,h,g,_,y,w,E,S;(0,a.default)(1,arguments);var T=(0,n.default)(d),C=T.getUTCFullYear(),x=(0,u.getDefaultOptions)(),P=(0,l.default)((m=(h=(g=(_=p==null?void 0:p.firstWeekContainsDate)!==null&&_!==void 0?_:p==null||(y=p.locale)===null||y===void 0||(w=y.options)===null||w===void 0?void 0:w.firstWeekContainsDate)!==null&&g!==void 0?g:x.firstWeekContainsDate)!==null&&h!==void 0?h:(E=x.locale)===null||E===void 0||(S=E.options)===null||S===void 0?void 0:S.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(C+1,0,P),R.setUTCHours(0,0,0,0);var D=(0,o.default)(R,p),A=new Date(0);A.setUTCFullYear(C,0,P),A.setUTCHours(0,0,0,0);var I=(0,o.default)(A,p);return T.getTime()>=D.getTime()?C+1:T.getTime()>=I.getTime()?C:C-1}e.exports=t.default})(Ju,Ju.exports);var _g=Ju.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(_g),a=r($t),o=r(hd),l=r(Yn),u=Xn;function c(d,p){var m,h,g,_,y,w,E,S;(0,a.default)(1,arguments);var T=(0,u.getDefaultOptions)(),C=(0,l.default)((m=(h=(g=(_=p==null?void 0:p.firstWeekContainsDate)!==null&&_!==void 0?_:p==null||(y=p.locale)===null||y===void 0||(w=y.options)===null||w===void 0?void 0:w.firstWeekContainsDate)!==null&&g!==void 0?g:T.firstWeekContainsDate)!==null&&h!==void 0?h:(E=T.locale)===null||E===void 0||(S=E.options)===null||S===void 0?void 0:S.firstWeekContainsDate)!==null&&m!==void 0?m:1),x=(0,n.default)(d,p),P=new Date(0);P.setUTCFullYear(x,0,C),P.setUTCHours(0,0,0,0);var R=(0,o.default)(P,p);return R}e.exports=t.default})(Qu,Qu.exports);var YP=Qu.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(Wr),a=r(hd),o=r(YP),l=r($t),u=6048e5;function c(d,p){(0,l.default)(1,arguments);var m=(0,n.default)(d),h=(0,a.default)(m,p).getTime()-(0,o.default)(m,p).getTime();return Math.round(h/u)+1}e.exports=t.default})(Zu,Zu.exports);var XP=Zu.exports,ec={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})(ec,ec.exports);var wg=ec.exports,tc={exports:{}};(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(wg),a={y:function(u,c){var d=u.getUTCFullYear(),p=d>0?d:1-d;return(0,n.default)(c==="yy"?p%100:p,c.length)},M:function(u,c){var d=u.getUTCMonth();return c==="M"?String(d+1):(0,n.default)(d+1,2)},d:function(u,c){return(0,n.default)(u.getUTCDate(),c.length)},a:function(u,c){var d=u.getUTCHours()/12>=1?"pm":"am";switch(c){case"a":case"aa":return d.toUpperCase();case"aaa":return d;case"aaaaa":return d[0];case"aaaa":default:return d==="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 d=c.length,p=u.getUTCMilliseconds(),m=Math.floor(p*Math.pow(10,d-3));return(0,n.default)(m,c.length)}},o=a;t.default=o,e.exports=t.default})(tc,tc.exports);var ZP=tc.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(HP),a=r(UP),o=r(yg),l=r(XP),u=r(_g),c=r(wg),d=r(ZP),p={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},m={G:function(E,S,T){var C=E.getUTCFullYear()>0?1:0;switch(S){case"G":case"GG":case"GGG":return T.era(C,{width:"abbreviated"});case"GGGGG":return T.era(C,{width:"narrow"});case"GGGG":default:return T.era(C,{width:"wide"})}},y:function(E,S,T){if(S==="yo"){var C=E.getUTCFullYear(),x=C>0?C:1-C;return T.ordinalNumber(x,{unit:"year"})}return d.default.y(E,S)},Y:function(E,S,T,C){var x=(0,u.default)(E,C),P=x>0?x:1-x;if(S==="YY"){var R=P%100;return(0,c.default)(R,2)}return S==="Yo"?T.ordinalNumber(P,{unit:"year"}):(0,c.default)(P,S.length)},R:function(E,S){var T=(0,o.default)(E);return(0,c.default)(T,S.length)},u:function(E,S){var T=E.getUTCFullYear();return(0,c.default)(T,S.length)},Q:function(E,S,T){var C=Math.ceil((E.getUTCMonth()+1)/3);switch(S){case"Q":return String(C);case"QQ":return(0,c.default)(C,2);case"Qo":return T.ordinalNumber(C,{unit:"quarter"});case"QQQ":return T.quarter(C,{width:"abbreviated",context:"formatting"});case"QQQQQ":return T.quarter(C,{width:"narrow",context:"formatting"});case"QQQQ":default:return T.quarter(C,{width:"wide",context:"formatting"})}},q:function(E,S,T){var C=Math.ceil((E.getUTCMonth()+1)/3);switch(S){case"q":return String(C);case"qq":return(0,c.default)(C,2);case"qo":return T.ordinalNumber(C,{unit:"quarter"});case"qqq":return T.quarter(C,{width:"abbreviated",context:"standalone"});case"qqqqq":return T.quarter(C,{width:"narrow",context:"standalone"});case"qqqq":default:return T.quarter(C,{width:"wide",context:"standalone"})}},M:function(E,S,T){var C=E.getUTCMonth();switch(S){case"M":case"MM":return d.default.M(E,S);case"Mo":return T.ordinalNumber(C+1,{unit:"month"});case"MMM":return T.month(C,{width:"abbreviated",context:"formatting"});case"MMMMM":return T.month(C,{width:"narrow",context:"formatting"});case"MMMM":default:return T.month(C,{width:"wide",context:"formatting"})}},L:function(E,S,T){var C=E.getUTCMonth();switch(S){case"L":return String(C+1);case"LL":return(0,c.default)(C+1,2);case"Lo":return T.ordinalNumber(C+1,{unit:"month"});case"LLL":return T.month(C,{width:"abbreviated",context:"standalone"});case"LLLLL":return T.month(C,{width:"narrow",context:"standalone"});case"LLLL":default:return T.month(C,{width:"wide",context:"standalone"})}},w:function(E,S,T,C){var x=(0,l.default)(E,C);return S==="wo"?T.ordinalNumber(x,{unit:"week"}):(0,c.default)(x,S.length)},I:function(E,S,T){var C=(0,a.default)(E);return S==="Io"?T.ordinalNumber(C,{unit:"week"}):(0,c.default)(C,S.length)},d:function(E,S,T){return S==="do"?T.ordinalNumber(E.getUTCDate(),{unit:"date"}):d.default.d(E,S)},D:function(E,S,T){var C=(0,n.default)(E);return S==="Do"?T.ordinalNumber(C,{unit:"dayOfYear"}):(0,c.default)(C,S.length)},E:function(E,S,T){var C=E.getUTCDay();switch(S){case"E":case"EE":case"EEE":return T.day(C,{width:"abbreviated",context:"formatting"});case"EEEEE":return T.day(C,{width:"narrow",context:"formatting"});case"EEEEEE":return T.day(C,{width:"short",context:"formatting"});case"EEEE":default:return T.day(C,{width:"wide",context:"formatting"})}},e:function(E,S,T,C){var x=E.getUTCDay(),P=(x-C.weekStartsOn+8)%7||7;switch(S){case"e":return String(P);case"ee":return(0,c.default)(P,2);case"eo":return T.ordinalNumber(P,{unit:"day"});case"eee":return T.day(x,{width:"abbreviated",context:"formatting"});case"eeeee":return T.day(x,{width:"narrow",context:"formatting"});case"eeeeee":return T.day(x,{width:"short",context:"formatting"});case"eeee":default:return T.day(x,{width:"wide",context:"formatting"})}},c:function(E,S,T,C){var x=E.getUTCDay(),P=(x-C.weekStartsOn+8)%7||7;switch(S){case"c":return String(P);case"cc":return(0,c.default)(P,S.length);case"co":return T.ordinalNumber(P,{unit:"day"});case"ccc":return T.day(x,{width:"abbreviated",context:"standalone"});case"ccccc":return T.day(x,{width:"narrow",context:"standalone"});case"cccccc":return T.day(x,{width:"short",context:"standalone"});case"cccc":default:return T.day(x,{width:"wide",context:"standalone"})}},i:function(E,S,T){var C=E.getUTCDay(),x=C===0?7:C;switch(S){case"i":return String(x);case"ii":return(0,c.default)(x,S.length);case"io":return T.ordinalNumber(x,{unit:"day"});case"iii":return T.day(C,{width:"abbreviated",context:"formatting"});case"iiiii":return T.day(C,{width:"narrow",context:"formatting"});case"iiiiii":return T.day(C,{width:"short",context:"formatting"});case"iiii":default:return T.day(C,{width:"wide",context:"formatting"})}},a:function(E,S,T){var C=E.getUTCHours(),x=C/12>=1?"pm":"am";switch(S){case"a":case"aa":return T.dayPeriod(x,{width:"abbreviated",context:"formatting"});case"aaa":return T.dayPeriod(x,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return T.dayPeriod(x,{width:"narrow",context:"formatting"});case"aaaa":default:return T.dayPeriod(x,{width:"wide",context:"formatting"})}},b:function(E,S,T){var C=E.getUTCHours(),x;switch(C===12?x=p.noon:C===0?x=p.midnight:x=C/12>=1?"pm":"am",S){case"b":case"bb":return T.dayPeriod(x,{width:"abbreviated",context:"formatting"});case"bbb":return T.dayPeriod(x,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return T.dayPeriod(x,{width:"narrow",context:"formatting"});case"bbbb":default:return T.dayPeriod(x,{width:"wide",context:"formatting"})}},B:function(E,S,T){var C=E.getUTCHours(),x;switch(C>=17?x=p.evening:C>=12?x=p.afternoon:C>=4?x=p.morning:x=p.night,S){case"B":case"BB":case"BBB":return T.dayPeriod(x,{width:"abbreviated",context:"formatting"});case"BBBBB":return T.dayPeriod(x,{width:"narrow",context:"formatting"});case"BBBB":default:return T.dayPeriod(x,{width:"wide",context:"formatting"})}},h:function(E,S,T){if(S==="ho"){var C=E.getUTCHours()%12;return C===0&&(C=12),T.ordinalNumber(C,{unit:"hour"})}return d.default.h(E,S)},H:function(E,S,T){return S==="Ho"?T.ordinalNumber(E.getUTCHours(),{unit:"hour"}):d.default.H(E,S)},K:function(E,S,T){var C=E.getUTCHours()%12;return S==="Ko"?T.ordinalNumber(C,{unit:"hour"}):(0,c.default)(C,S.length)},k:function(E,S,T){var C=E.getUTCHours();return C===0&&(C=24),S==="ko"?T.ordinalNumber(C,{unit:"hour"}):(0,c.default)(C,S.length)},m:function(E,S,T){return S==="mo"?T.ordinalNumber(E.getUTCMinutes(),{unit:"minute"}):d.default.m(E,S)},s:function(E,S,T){return S==="so"?T.ordinalNumber(E.getUTCSeconds(),{unit:"second"}):d.default.s(E,S)},S:function(E,S){return d.default.S(E,S)},X:function(E,S,T,C){var x=C._originalDate||E,P=x.getTimezoneOffset();if(P===0)return"Z";switch(S){case"X":return g(P);case"XXXX":case"XX":return _(P);case"XXXXX":case"XXX":default:return _(P,":")}},x:function(E,S,T,C){var x=C._originalDate||E,P=x.getTimezoneOffset();switch(S){case"x":return g(P);case"xxxx":case"xx":return _(P);case"xxxxx":case"xxx":default:return _(P,":")}},O:function(E,S,T,C){var x=C._originalDate||E,P=x.getTimezoneOffset();switch(S){case"O":case"OO":case"OOO":return"GMT"+h(P,":");case"OOOO":default:return"GMT"+_(P,":")}},z:function(E,S,T,C){var x=C._originalDate||E,P=x.getTimezoneOffset();switch(S){case"z":case"zz":case"zzz":return"GMT"+h(P,":");case"zzzz":default:return"GMT"+_(P,":")}},t:function(E,S,T,C){var x=C._originalDate||E,P=Math.floor(x.getTime()/1e3);return(0,c.default)(P,S.length)},T:function(E,S,T,C){var x=C._originalDate||E,P=x.getTime();return(0,c.default)(P,S.length)}};function h(w,E){var S=w>0?"-":"+",T=Math.abs(w),C=Math.floor(T/60),x=T%60;if(x===0)return S+String(C);var P=E;return S+String(C)+P+(0,c.default)(x,2)}function g(w,E){if(w%60===0){var S=w>0?"-":"+";return S+(0,c.default)(Math.abs(w)/60,2)}return _(w,E)}function _(w,E){var S=E||"",T=w>0?"-":"+",C=Math.abs(w),x=(0,c.default)(Math.floor(C/60),2),P=(0,c.default)(C%60,2);return T+x+S+P}var y=m;t.default=y,e.exports=t.default})(Vu,Vu.exports);var KP=Vu.exports,rc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(c,d){switch(c){case"P":return d.date({width:"short"});case"PP":return d.date({width:"medium"});case"PPP":return d.date({width:"long"});case"PPPP":default:return d.date({width:"full"})}},n=function(c,d){switch(c){case"p":return d.time({width:"short"});case"pp":return d.time({width:"medium"});case"ppp":return d.time({width:"long"});case"pppp":default:return d.time({width:"full"})}},a=function(c,d){var p=c.match(/(P+)(p+)?/)||[],m=p[1],h=p[2];if(!h)return r(c,d);var g;switch(m){case"P":g=d.dateTime({width:"short"});break;case"PP":g=d.dateTime({width:"medium"});break;case"PPP":g=d.dateTime({width:"long"});break;case"PPPP":default:g=d.dateTime({width:"full"});break}return g.replace("{{date}}",r(m,d)).replace("{{time}}",n(h,d))},o={p:n,P:a},l=o;t.default=l,e.exports=t.default})(rc,rc.exports);var QP=rc.exports,nc={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})(nc,nc.exports);var xg=nc.exports;const ap=O.getDefaultExportFromCjs(xg);var to={};Object.defineProperty(to,"__esModule",{value:!0});to.isProtectedDayOfYearToken=tR;to.isProtectedWeekYearToken=rR;to.throwProtectedError=nR;var JP=["D","DD"],eR=["YY","YYYY"];function tR(e){return JP.indexOf(e)!==-1}function rR(e){return eR.indexOf(e)!==-1}function nR(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 ic={exports:{}},ac={exports:{}},oc={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 d,p=r[l];return typeof p=="string"?d=p:u===1?d=p.one:d=p.other.replace("{{count}}",u.toString()),c!=null&&c.addSuffix?c.comparison&&c.comparison>0?"in "+d:d+" ago":d},a=n;t.default=a,e.exports=t.default})(oc,oc.exports);var iR=oc.exports,sc={exports:{}},lc={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})(lc,lc.exports);var aR=lc.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(aR),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})(sc,sc.exports);var oR=sc.exports,uc={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,d){return r[l]},a=n;t.default=a,e.exports=t.default})(uc,uc.exports);var sR=uc.exports,cc={exports:{}},dc={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,d=o!=null&&o.width?String(o.width):c;u=n.formattingValues[d]||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})(dc,dc.exports);var lR=dc.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(lR),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"}},d={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(_,y){var w=Number(_),E=w%100;if(E>20||E<10)switch(E%10){case 1:return w+"st";case 2:return w+"nd";case 3:return w+"rd"}return w+"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:d,defaultFormattingWidth:"wide"})},h=m;t.default=h,e.exports=t.default})(cc,cc.exports);var uR=cc.exports,fc={exports:{}},hc={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,d=c&&o.matchPatterns[c]||o.matchPatterns[o.defaultMatchWidth],p=l.match(d);if(!p)return null;var m=p[0],h=c&&o.parsePatterns[c]||o.parsePatterns[o.defaultParseWidth],g=Array.isArray(h)?a(h,function(w){return w.test(m)}):n(h,function(w){return w.test(m)}),_;_=o.valueCallback?o.valueCallback(g):g,_=u.valueCallback?u.valueCallback(_):_;var y=l.slice(m.length);return{value:_,rest:y}}}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})(hc,hc.exports);var cR=hc.exports,pc={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 d=n.valueCallback?n.valueCallback(c[0]):c[0];d=o.valueCallback?o.valueCallback(d):d;var p=a.slice(u.length);return{value:d,rest:p}}}e.exports=t.default})(pc,pc.exports);var dR=pc.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(cR),a=r(dR),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]},d={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]},g={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]},y={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},w={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}},E={ordinalNumber:(0,a.default)({matchPattern:o,parsePattern:l,valueCallback:function(C){return parseInt(C,10)}}),era:(0,n.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any",valueCallback:function(C){return C+1}}),month:(0,n.default)({matchPatterns:m,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:_,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:y,defaultMatchWidth:"any",parsePatterns:w,defaultParseWidth:"any"})},S=E;t.default=S,e.exports=t.default})(fc,fc.exports);var fR=fc.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(iR),a=r(oR),o=r(sR),l=r(uR),u=r(fR),c={code:"en-US",formatDistance:n.default,formatLong:a.default,formatRelative:o.default,localize:l.default,match:u.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},d=c;t.default=d,e.exports=t.default})(ac,ac.exports);var hR=ac.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(hR),a=n.default;t.default=a,e.exports=t.default})(ic,ic.exports);var pR=ic.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=T;var n=r(FP),a=r(BP),o=r(Wr),l=r(KP),u=r(QP),c=r(xg),d=to,p=r(Yn),m=r($t),h=Xn,g=r(pR),_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w=/^'([^]*?)'?$/,E=/''/g,S=/[a-zA-Z]/;function T(x,P,R){var D,A,I,N,k,W,j,$,B,G,q,U,z,H,ee,X,K,Q;(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:g.default,ue=(0,p.default)((I=(N=(k=(W=R==null?void 0:R.firstWeekContainsDate)!==null&&W!==void 0?W:R==null||(j=R.locale)===null||j===void 0||($=j.options)===null||$===void 0?void 0:$.firstWeekContainsDate)!==null&&k!==void 0?k:le.firstWeekContainsDate)!==null&&N!==void 0?N:(B=le.locale)===null||B===void 0||(G=B.options)===null||G===void 0?void 0:G.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(ue>=1&&ue<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var fe=(0,p.default)((q=(U=(z=(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&&z!==void 0?z:le.weekStartsOn)!==null&&U!==void 0?U:(K=le.locale)===null||K===void 0||(Q=K.options)===null||Q===void 0?void 0:Q.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)(x);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(y).map(function(we){var Se=we[0];if(Se==="p"||Se==="P"){var Ce=u.default[Se];return Ce(we,se.formatLong)}return we}).join("").match(_).map(function(we){if(we==="''")return"'";var Se=we[0];if(Se==="'")return C(we);var Ce=l.default[Se];if(Ce)return!(R!=null&&R.useAdditionalWeekYearTokens)&&(0,d.isProtectedWeekYearToken)(we)&&(0,d.throwProtectedError)(we,P,String(x)),!(R!=null&&R.useAdditionalDayOfYearTokens)&&(0,d.isProtectedDayOfYearToken)(we)&&(0,d.throwProtectedError)(we,P,String(x)),Ce(ve,we,se.localize,de);if(Se.match(S))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Se+"`");return we}).join("");return _e}function C(x){var P=x.match(w);return P?P[1].replace(E,"'"):x}e.exports=t.default})(Iu,Iu.exports);var mR=Iu.exports;const vR=O.getDefaultExportFromCjs(mR);function op(e,t,r){var n=bR(e,r.timeZone,r.locale);return n.formatToParts?gR(n,t):yR(n,t)}function gR(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 yR(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function bR(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 _R(e,t){var r=TR(t);return r.formatToParts?xR(r,e):CR(r,e)}var wR={year:0,month:1,day:2,hour:3,minute:4,second:5};function xR(e,t){try{for(var r=e.formatToParts(t),n=[],a=0;a<r.length;a++){var o=wR[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 CR(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 eu={};function TR(e){if(!eu[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";eu[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 eu[e]}function Cg(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 sp=36e5,SR=6e4,tu={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function pd(e,t,r){var n,a;if(!e||(n=tu.timezoneZ.exec(e),n))return 0;var o;if(n=tu.timezoneHH.exec(e),n)return o=parseInt(n[1],10),lp(o)?-(o*sp):NaN;if(n=tu.timezoneHHMM.exec(e),n){o=parseInt(n[2],10);var l=parseInt(n[3],10);return lp(o,l)?(a=Math.abs(o)*sp+l*SR,n[1]==="+"?-a:a):NaN}if(PR(e)){t=new Date(t||Date.now());var u=r?t:ER(t),c=mc(u,e),d=r?c:MR(t,c,e);return-d}return NaN}function ER(e){return Cg(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function mc(e,t){var r=_R(e,t),n=Cg(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 MR(e,t,r){var n=e.getTime(),a=n-t,o=mc(new Date(a),r);if(t===o)return t;a-=o-t;var l=mc(new Date(a),r);return o===l?o:Math.max(o,l)}function lp(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var up={};function PR(e){if(up[e])return!0;try{return up[e]=!0,!0}catch(t){return!1}}var RR=60*1e3,OR={X:function(e,t,r,n){var a=ru(n.timeZone,e);if(a===0)return"Z";switch(t){case"X":return cp(a);case"XXXX":case"XX":return wi(a);case"XXXXX":case"XXX":default:return wi(a,":")}},x:function(e,t,r,n){var a=ru(n.timeZone,e);switch(t){case"x":return cp(a);case"xxxx":case"xx":return wi(a);case"xxxxx":case"xxx":default:return wi(a,":")}},O:function(e,t,r,n){var a=ru(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+kR(a,":");case"OOOO":default:return"GMT"+wi(a,":")}},z:function(e,t,r,n){switch(t){case"z":case"zz":case"zzz":return op("short",e,n);case"zzzz":default:return op("long",e,n)}}};function ru(e,t){var r=e?pd(e,t,!0)/RR:t.getTimezoneOffset();if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function gs(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}function wi(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),o=gs(Math.floor(a/60),2),l=gs(Math.floor(a%60),2);return n+o+r+l}function cp(e,t){if(e%60===0){var r=e>0?"-":"+";return r+gs(Math.abs(e)/60,2)}return wi(e,t)}function kR(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+gs(o,2)}var NR=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,nu=36e5,dp=6e4,DR=2,Dt={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:NR};function Tg(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?DR:WP(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=AR(e),o=LR(a.date,n),l=o.year,u=o.restDateString,c=IR(u,l);if(isNaN(c))return new Date(NaN);if(c){var d=c.getTime(),p=0,m;if(a.time&&(p=$R(a.time),isNaN(p)))return new Date(NaN);if(a.timeZone||r.timeZone){if(m=pd(a.timeZone||r.timeZone,new Date(d+p)),isNaN(m))return new Date(NaN)}else m=ap(new Date(d+p)),m=ap(new Date(d+p+m));return new Date(d+p+m)}else return new Date(NaN)}function AR(e){var t={},r=Dt.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=Dt.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var a=Dt.timeZone.exec(n);a?(t.time=n.replace(a[1],""),t.timeZone=a[1].trim()):t.time=n}return t}function LR(e,t){var r=Dt.YYY[t],n=Dt.YYYYY[t],a;if(a=Dt.YYYY.exec(e)||n.exec(e),a){var o=a[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(a=Dt.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 IR(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=Dt.MM.exec(e),r)return n=new Date(0),a=parseInt(r[1],10)-1,hp(t,a)?(n.setUTCFullYear(t,a),n):new Date(NaN);if(r=Dt.DDD.exec(e),r){n=new Date(0);var l=parseInt(r[1],10);return WR(t,l)?(n.setUTCFullYear(t,0,l),n):new Date(NaN)}if(r=Dt.MMDD.exec(e),r){n=new Date(0),a=parseInt(r[1],10)-1;var u=parseInt(r[2],10);return hp(t,a,u)?(n.setUTCFullYear(t,a,u),n):new Date(NaN)}if(r=Dt.Www.exec(e),r)return o=parseInt(r[1],10)-1,pp(t,o)?fp(t,o):new Date(NaN);if(r=Dt.WwwD.exec(e),r){o=parseInt(r[1],10)-1;var c=parseInt(r[2],10)-1;return pp(t,o,c)?fp(t,o,c):new Date(NaN)}return null}function $R(e){var t,r,n;if(t=Dt.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),iu(r)?r%24*nu:NaN;if(t=Dt.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),iu(r,n)?r%24*nu+n*dp:NaN;if(t=Dt.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return iu(r,n,a)?r%24*nu+n*dp+a*1e3:NaN}return null}function fp(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 zR=[31,28,31,30,31,30,31,31,30,31,30,31],FR=[31,29,31,30,31,30,31,31,30,31,30,31];function Sg(e){return e%400===0||e%4===0&&e%100!==0}function hp(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=Sg(e);if(n&&r>FR[t]||!n&&r>zR[t])return!1}return!0}function WR(e,t){if(t<1)return!1;var r=Sg(e);return!(r&&t>366||!r&&t>365)}function pp(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function iu(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}var jR=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Eg(e,t,r){var n=String(t),a=r||{},o=n.match(jR);if(o){var l=Tg(a.originalDate||e,a);n=o.reduce(function(u,c){if(c[0]==="'")return u;var d=u.indexOf(c),p=u[d-1]==="'",m=u.replace(c,"'"+OR[c[0]](l,c,null,a)+"'");return p?m.substring(0,d-1)+m.substring(d+1):m},n)}return vR(e,n,a)}function bn(e,t,r){const n=new RegExp("'[^']+'|("+t+")","g");return e.replace(n,function(o,l){return l?r(o):o})}const BR=["shortDate","shortTime","short","mediumDate","mediumTime","medium","longDate","fullDate"],HR=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"}),mp=Object.freeze({"en-US":HR});function VR(e,t){var a;if(!(e.includes("short")||e.includes("medium")||e.includes("long")||e.includes("full")))return e;let r=e,n=mp[(a=t.code)!=null?a:""];return n||(n=mp["en-US"]),BR.forEach(o=>{const l=n[o];r=bn(r,o,function(){return l})}),r}var vc={exports:{}},gc={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})(gc,gc.exports);var UR=gc.exports;(function(e,t){var r=Xe.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(UR);function a(o){return(0,n.default)({},o)}e.exports=t.default})(vc,vc.exports);var qR=vc.exports;const GR=O.getDefaultExportFromCjs(qR);function YR(e,t,r){var n=Tg(e,r),a=pd(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 Wa(e,t,r,n){var a=GR(n);return a.timeZone=t,a.originalDate=e,Eg(YR(e,t),r,a)}function XR(e){return e.includes("sss")?bn(e,"sss",function(){return"SSS"}):e}function ZR(e,t,r){if(!(e.includes("a")||e.includes("A")))return e;let n=bn(e,"a",function(){return`\0${Wa(t,r,"a").toLowerCase()}\0`});return n=bn(n,"A",function(){return`\0${Wa(t,r,"a").toUpperCase()}\0`}),n=n.replace(/\0\0/g,""),n=n.replace(/\0/g,"'"),n}function KR(e,t,r,n){return e.includes("Z")?bn(e,"Z",function(){return Wa(t,r,"xx",{locale:n})}):e}function QR(e,t,r){return Mg(e,t,r)?hg(e,1):e}function JR(e,t){return t<=e.getMonth()}function Mg(e,t,r){const n=![iO,md].includes(t);return r>Rg&&n&&JR(e,r)}function eO(e,t,r,n){return!n&&Mg(e,t,r)?fg(e,1):e}function tO(e,t){if(t>0){const r=(e.getMonth()+t)%12;return CC(e,r)}return e}function rO(e,t,r,n,a,o){if(!e.includes("y"))return e;const l=eO(t,n,o,a);let u=e;if(["yyyy","yy","y","yp","yyyp"].includes(e)&&(r="Etc/GMT-14"),e.includes("yp")){const d=hg(l,1);u=bn(e,"yp|yyyp",function(m){const h="y".repeat(m.length);return Wa(d,r,h)})}return bn(u,"yyyy|yy|y",function(p){return Wa(l,r,p)})}function nO(e,t,r,n){if(!e.includes("Q"))return e;let a=t.getMonth();n&&[md,aO,oO,Pg].includes(r)&&(a-=n>a?n-12:n);const o=parseInt(String(a/3))+1;return bn(e,"QQ|Q",function(c){return`${c.length===2?"'Quarter '":"'Q'"}${o}`})}const iO="years",md="quarters",aO="months",oO="weeks",Pg="days",Rg=0,sO=1,vd=Object.freeze({weekFirstDay:sO,isFiscalOn:!1,fiscalMonth:Rg,selectedDateLevel:Pg,timeZone:"UTC"});function gd(e,t,r=dd(),n=vd){return e.getFullYear()<100&&(e=TC(e,1900+e.getFullYear())),n.isFiscalOn||(e=QR(e,n.selectedDateLevel,n.fiscalMonth)),t=VR(t,r),t=XR(t),t=ZR(t,e,n.timeZone),t=KR(t,e,n.timeZone,r),t=rO(t,e,n.timeZone,n.selectedDateLevel,n.isFiscalOn,n.fiscalMonth),!n.isFiscalOn&&n.selectedDateLevel===md&&(e=tO(e,n.fiscalMonth)),t=nO(t,e,n.selectedDateLevel,n.fiscalMonth),Eg(e,t,{locale:r,weekStartsOn:n.weekFirstDay})}const yd="#F2F2F2",bd=4,lO={chart:{backgroundColor:"#FFFFFF",textColor:"#000000",secondaryTextColor:"#E4E4E4",panelBackgroundColor:"#F6F6F6",animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},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"}},dashboard:{backgroundColor:"#FFFFFF",dividerLineWidth:bd,dividerLineColor:yd},filter:{panel:{titleColor:"#5B6372",backgroundColor:"#F6F6F6"}},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)"}}},uO={chart:{backgroundColor:"#313138",textColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",panelBackgroundColor:"#313138",animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},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"}},dashboard:{backgroundColor:"#313138",dividerLineWidth:bd,dividerLineColor:yd},filter:{panel:{titleColor:"#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)"}}},Ws=(e=!1)=>e?O.cloneDeep(uO):O.cloneDeep(lO),Sa={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function Og(e,t){const r={chart:{textColor:e.dashboards.widgetTextColor,backgroundColor:e.dashboards.widgetBackgroundColor,secondaryTextColor:e.dashboards.widgetSecondaryTextColor,panelBackgroundColor:e.dashboards.widgetBackgroundColor,animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},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:Sa[e.dashboards.widgetSpacing],cornerRadius:Sa[e.dashboards.widgetCornerRadius],shadow:Sa[e.dashboards.widgetShadow],border:e.dashboards.widgetBorderEnabled,borderColor:e.dashboards.widgetBorderColor,header:{titleTextColor:e.dashboards.widgetTitleColor,titleAlignment:Sa[e.dashboards.widgetTitleAlignment],dividerLine:e.dashboards.widgetTitleDividerEnabled,dividerLineColor:e.dashboards.widgetTitleDividerColor,backgroundColor:e.dashboards.widgetTitleBackgroundColor}},dashboard:{backgroundColor:e.dashboards.layoutBackgroundColor,dividerLineWidth:bd,dividerLineColor:yd},filter:{panel:{titleColor:e.dashboards.panelTitleTextColor,backgroundColor:e.dashboards.panelBackgroundColor}}};return O.merge.withOptions({mergeArrays:!1},Ws(),r)}function kg(e){return e.dashboards.colorPaletteName}function Ng(e,t){return _r(this,null,function*(){const r=yield cO(e,t);if(!r)throw new O.TranslatableError("errors.themeNotFound",{themeOid:e});const n=kg(r),a=yield Dg(n,t);return Og(r,a)})}function cO(e,t){return _r(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new O.TranslatableError("errors.themeNotFound",{themeOid:e})})})}function Dg(e,t){return _r(this,null,function*(){const r=yield t.get(`api/palettes/${e}`);if(r&&"status"in r&&r.status==="error")throw new O.TranslatableError("errors.paletteNotFound",{paletteName:e});return r})}function dO(e){return"value"in e}function fO(e){return"valuePromise"in e}const hO=(e,t)=>{const r=new Map;return{withCache:o=>(...l)=>_r(exports,null,function*(){const u=e(...l);if(r.has(u)){const c=r.get(u);if(dO(c))return c.value;if(fO(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(d=>(r.set(u,{value:d,createdAt:new Date}),t!=null&&t.cacheMaxSize&&r.size>t.cacheMaxSize&&pO(r),d))}}),clearCache:o=>{if(o){r.delete(o);return}r.clear()}}};function pO(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 _d=(e,t)=>{const{dataSource:r,dimensions:n=[],measures:a=[],filters:o=[],filterRelations:l,highlights:u=[],count:c,offset:d,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 O.TranslatableError("errors.executeQueryNoDataSource");return{dataSource:m,attributes:n,measures:a,filters:o,filterRelations:l,highlights:u,count:c,offset:d,ungroup:p}};function ro(e,t,r){const n=_d(e,t==null?void 0:t.defaultDataSource);return t.queryClient.executeQuery(n,r).resultPromise.catch(a=>{throw a.message.includes("SecondsLevelIsNotSupportedException")?new O.TranslatableError("errors.secondsDateTimeLevelSupportedOnlyForLive"):a})}const mO=(e,t,r)=>{const n=_d(e,t==null?void 0:t.defaultDataSource);return t.queryClient.executeCsvQuery(n,r).resultPromise},vO=(e,t,r)=>{const{dataSource:n,rows:a=[],columns:o=[],values:l=[],grandTotals:u={},filters:c=[],filterRelations:d,highlights:p=[],count:m,offset:h}=e;c&&c.forEach(_=>_.isScope=!0),p&&p.forEach(_=>_.isScope=!0);const g=n||(t==null?void 0:t.defaultDataSource);if(!g)throw new O.TranslatableError("errors.executeQueryNoDataSource");return t.queryClient.executePivotQuery({dataSource:g,rowsAttributes:a,columnsAttributes:o,measures:l,grandTotals:u,filters:c,filterRelations:d,highlights:p,count:m,offset:h},r).resultPromise},gO=e=>JSON.stringify(he(ie({},Xv(e,!1)),{queryGuid:""})),Ag=(e,t)=>{const r=_d(e,t==null?void 0:t.defaultDataSource);return gO(r)},yO=250,{withCache:bO,clearCache:_O}=hO(Ag,{cacheMaxSize:yO}),wd=bO(ro),wO=_O;function xd(){}function _n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}_n.prototype=O.baseCreate(xd.prototype);_n.prototype.constructor=_n;var vp=O.WeakMap&&new O.WeakMap;function Lg(){}var Ig=vp?function(e){return vp.get(e)}:Lg,gp={},xO=Object.prototype,CO=xO.hasOwnProperty;function ls(e){for(var t=e.name+"",r=gp[t],n=CO.call(gp,t)?r.length:0;n--;){var a=r[n],o=a.func;if(o==null||o==e)return a.name}return t}var TO=4294967295;function Ai(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=TO,this.__views__=[]}Ai.prototype=O.baseCreate(xd.prototype);Ai.prototype.constructor=Ai;function SO(e){if(e instanceof Ai)return e.clone();var t=new _n(e.__wrapped__,e.__chain__);return t.__actions__=O.copyArray(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var EO=Object.prototype,MO=EO.hasOwnProperty;function ys(e){if(O.isObjectLike(e)&&!O.isArray(e)&&!(e instanceof Ai)){if(e instanceof _n)return e;if(MO.call(e,"__wrapped__"))return SO(e)}return new _n(e)}ys.prototype=xd.prototype;ys.prototype.constructor=ys;function yp(e){var t=ls(e),r=ys[t];if(typeof r!="function"||!(t in Ai.prototype))return!1;if(e===r)return!0;var n=Ig(r);return!!n&&e===n[0]}var PO="Expected a function",RO=8,OO=32,kO=128,NO=256;function DO(e){return O.flatRest(function(t){for(var r=t.length,n=r,a=_n.prototype.thru;n--;){var o=t[n];if(typeof o!="function")throw new TypeError(PO);if(a&&!l&&ls(o)=="wrapper")var l=new _n([],!0)}for(n=l?n:r;++n<r;){o=t[n];var u=ls(o),c=u=="wrapper"?Ig(o):void 0;c&&yp(c[0])&&c[1]==(kO|RO|OO|NO)&&!c[4].length&&c[9]==1?l=l[ls(c[0])].apply(l,c[3]):l=o.length==1&&yp(o)?l[u]():l.thru(o)}return function(){var d=arguments,p=d[0];if(l&&d.length==1&&O.isArray(p))return l.plant(p).value();for(var m=0,h=r?t[m].apply(this,d):p;++m<r;)h=t[m].call(this,h);return h}})}var $g=DO();const Cd=J.createContext({isInitialized:!1,tracking:{enabled:!0,packageName:"sdk-ui"}}),yt=()=>J.useContext(Cd),bp="composesdk",zg=(e,t,r,n=!1)=>{const a=Object.assign({action:e,cat:bp,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=${bp}`,o)})},AO={sdkComponentInit:{internal:!0,external:!0},sdkHookInit:{internal:!0,external:!0},sdkError:{internal:!0,external:!1},sdkCliExec:{internal:!0,external:!1},sdkAngularServiceMethodExecuted:{internal:!0,external:!0}},_p=(e,t,r,n,a)=>{const o=AO[`${e}`];return o.internal&&zg(e,t,r,a),o.external&&n&&n(ie({action:e},t)),Promise.resolve()},Td=()=>{const{tracking:e,app:t}=yt(),r=J.useCallback((a,o={},l=!1)=>t?_p(a,o,t.httpClient,e.onTrackingEvent,l):Promise.resolve(),[e,t]),n=J.useCallback((a,o=!1)=>{if(!t)return Promise.resolve();const{packageName:l,packageVersion:u,component:c,error:d}=a;let p="";return typeof d=="string"?p=d:d instanceof Error&&(p=d.message||d.toString()),_p("sdkError",{packageName:l,packageVersion:u,component:c,error:p},t.httpClient,e.onTrackingEvent,o)},[e,t]);return{trackEvent:r,trackError:n}},LO="sdkComponentInit",Fg=J.createContext(!1),IO=({skipNested:e=!0,children:t})=>V.jsx(Fg.Provider,{value:e,children:t}),$O=(e,t)=>{const{tracking:r}=yt(),{trackEvent:n}=Td(),a=J.useContext(Fg),o=J.useRef(!1);J.useEffect(()=>{if(!r)return;if(!o.current&&!a){const u={packageName:r.packageName,packageVersion:"1.18.1",componentName:e,attributesUsed:Object.entries(t).filter(([,c])=>!!c).map(([c])=>c).join(", ")};n(LO,u,!r.enabled).finally(()=>o.current=!0)}},[e,t,r,a,n])};var zO="[object Boolean]";function Wg(e){return e===!0||e===!1||O.isObjectLike(e)&&O.baseGetTag(e)==zO}class jg extends J.Component{constructor(r){super(r);Ct(this,"componentName");Ct(this,"context");Ct(this,"handler");Ct(this,"httpClient");Ct(this,"postponedErrors",[]);this.handler=r.handler,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.postponedErrors.push(r)),r}sendErrorTracking(r){try{this.handler({packageName:"sdk-ui",packageVersion:"1.18.1",component:this.componentName,error:r})}catch(n){console.log("Failed to send tracking error event: ",n)}}render(){return this.httpClient&&this.postponedErrors.length>0&&this.postponedErrors.forEach(r=>this.sendErrorTracking(r)),this.postponedErrors=[],this.props.children}}Ct(jg,"contextType",Cd);const FO=({componentName:e,config:t})=>{const{skip:r,transparent:n}=t||{};return a=>function(l){const{trackError:u}=Td();return Wg(r)&&r||O.isFunction(r)&&r(l)?V.jsx(a,ie({},l)):($O(e,l),V.jsx(IO,{skipNested:!n,children:V.jsx(jg,{componentName:e,handler:u,children:V.jsx(a,ie({},l))})}))}},WO="_container_1wquj_1",jO="_card_1wquj_11",BO="_text_1wquj_19",au={container:WO,card:jO,text:BO};function Bg({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 Sd=J.createContext({themeSettings:Ws()}),zt=()=>J.useContext(Sd),HO=({error:e=new O.TranslatableError("errors.componentRenderError")})=>{var h,g,_,y,w,E;const{themeSettings:t}=zt(),{app:r}=yt(),{t:n}=O.useTranslation(),[a,o]=J.useState(!1),l=()=>{o(!0)},u=()=>{o(!1)},c=V.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:V.jsx(Bg,{color:(h=t==null?void 0:t.general)==null?void 0:h.brandColor})}),d=e instanceof O.AbstractTranslatableError?n(e.key,ie({},e.interpolationOptions)):n(e instanceof Error?e.message:e),p=n("errorBoxText",{errorMessage:d,interpolation:{escapeValue:!1}}),m=(_=(g=r==null?void 0:r.settings)==null?void 0:g.errorBoundaryConfig)==null?void 0:_.alwaysShowErrorText;return V.jsx("div",{onMouseEnter:m?void 0:l,onMouseLeave:m?void 0:u,className:au.container,"aria-label":"error-box",children:V.jsxs("div",{className:au.card,style:{backgroundColor:((y=t==null?void 0:t.general)==null?void 0:y.backgroundColor)||"rgba(255,255,255,0.5)"},children:[c,(m||a)&&V.jsx("div",{className:au.text,style:{color:((w=t==null?void 0:t.typography)==null?void 0:w.primaryTextColor)||"#5b6372",fontFamily:((E=t==null?void 0:t.typography)==null?void 0:E.fontFamily)||"inherit"},children:p})]})})};class Hg extends J.Component{constructor(r){var n;super(r);Ct(this,"showErrorBox",!0);Ct(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&&VO(r.resetKeys,this.props.resetKeys)&&this.setState({error:null})}render(){const r=this.state.error||this.props.error;return r&&this.showErrorBox?V.jsx(HO,{error:r}):this.props.children}}function VO(e=[],t=[]){return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}const UO=()=>e=>function(r){return V.jsx(Hg,{resetKeys:Object.values(r),children:V.jsx(e,ie({},r))})},Vg=({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:`
|
|
16
|
-
@keyframes loading-dots-animation {
|
|
17
|
-
${Object.entries(o).map(([l,u])=>`${l} { ${Object.entries(u).map(([c,d])=>`${c}: ${d};`).join("")} }`).join("")}
|
|
18
|
-
}
|
|
19
|
-
`}),V.jsx("div",{style:r}),V.jsx("div",{style:n}),V.jsx("div",{style:a})]})},js=({themeSettings:e,onCancel:t})=>{const r=e!=null&&e.chart.backgroundColor?{backgroundColor:e.chart.backgroundColor}:void 0;return V.jsx("div",{style:r,className:"csdk-h-full csdk-bg-white csdk-p-[20px]","aria-label":"csdk-loading-indicator",children:V.jsxs("div",{style:r,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(Vg,{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"})]})})},qO=({shouldSkipSisenseContextWaiting:e,customContextErrorMessageKey:t})=>r=>function(a){if(GO(e,a))return V.jsx(r,ie({},a));const{app:o,isInitialized:l}=yt();if(!l){const u=t||"errors.noSisenseContext";throw new O.TranslatableError(u)}return o?V.jsx(r,ie({},a)):V.jsx(js,{})};function GO(e,t){return Wg(e)&&e||O.isFunction(e)&&e(t)}function YO(){const[e,t]=J.useState(null);return J.useEffect(()=>{O.initializeI18n().initPromise.then(r=>t(r))},[]),e}const Ug=({children:e,userLanguage:t})=>{const r=YO();return J.useEffect(()=>{t&&(r==null?void 0:r.language)!==t&&(r==null||r.changeLanguage(t))},[r,t]),r&&V.jsx(a1,{i18n:r,children:e})},XO=()=>e=>function(r){const{isInitialized:n}=yt();return n?V.jsx(e,ie({},r)):V.jsx(Ug,{children:V.jsx(e,ie({},r))})},ZO=e=>t=>(t.displayName=e,t),Zn=e=>{const{componentName:t,shouldSkipSisenseContextWaiting:r,trackingConfig:n={},customContextErrorMessageKey:a}=e;return o=>$g(ZO(t),qO({shouldSkipSisenseContextWaiting:r,customContextErrorMessageKey:a}),FO({componentName:t,config:n}),UO(),XO())(o)},KO=(e,t)=>{const r=he(ie({},e),{x:e.breakBy,breakBy:[]});let n=O.cartesianData(r,t);if(e.breakBy.some(o=>O.isNumber(o.type)&&(o==null?void 0:o.numberFormatConfig))){const o=n.xValues.map(l=>{const u=[];return e.breakBy.forEach((c,d)=>{const p=O.getCompleteNumberFormatConfig(c==null?void 0:c.numberFormatConfig),m=l.xValues[d];O.isNumber(c.type)?u.push(O.applyFormatPlainText(p,parseFloat(m))):u.push(l.xValues[d])}),he(ie({},l),{xValues:u})});n=he(ie({},n),{xValues:o})}return he(ie({},n),{type:"categorical"})},qo=(e,t)=>{if(!t||t.length!==1)return[void 0,void 0];const r=O.getColumnByName(e,t[0].name);return r?[O.getValue(e.rows[0],r),t[0].name]:[void 0,void 0]},QO=(e,t)=>{const r={type:"indicator"};if(!e.value||t.rows.length===0)return r;const[n]=qo(t,e.value);if(n===void 0)return r;const[a]=qo(t,e.secondary),[o]=qo(t,e.min),[l]=qo(t,e.max);return{type:"indicator",value:n,secondary:a,min:o,max:l}},JO=(e,t)=>{const r=e.category&&O.getColumnByName(t,e.category.name);r&&(r.direction=O.sortDirection(e.category.sortType));const n=O.getOrderedXValues(t,[],r?[r]:[],(r==null?void 0:r.direction)===0?O.rownumColumnName:void 0),a=O.getIndexedRows(t.rows,r?[r]:[]),o=O.getColumnByName(t,e.boxMin.name),l=O.getColumnByName(t,e.boxMedian.name),u=O.getColumnByName(t,e.boxMax.name),c=O.getColumnByName(t,e.whiskerMin.name),d=O.getColumnByName(t,e.whiskerMax.name),p=e.outliers&&O.getColumnByName(t,e.outliers.name),m=[],h=[];n.forEach((_,y)=>{const w=a[_.key],E=w?w[0]:[],S=r&&!!O.isBlurred(E,r);m.push({q1:o?O.getValue(E,o):0,median:l?O.getValue(E,l):0,q3:u?O.getValue(E,u):0,low:c?O.getValue(E,c):0,high:d?O.getValue(E,d):0,blur:S});const T=p?E[p.index].rawValue.split(",").map(C=>parseFloat(C)):[];h.push(...T.map(C=>({x:y,y:C,blur:S})))});const g=[{name:e.valueTitle,title:e.valueTitle,data:m}];return h.length>0&&g.push({name:e.valueTitle,title:e.valueTitle,data:h}),{type:"boxplot",xValues:n,series:g}},ek=(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=O.getPaletteColor(t,0),a=O.scaleBrightness(n,.2),o=O.scaleBrightness(n,-.2);switch(e.rangeMode){case"auto":return he(ie({},r),{minColor:O.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:O.DEFAULT_COLOR});case"max":return he(ie({},r),{minColor:O.DEFAULT_COLOR,maxColor:e.max||o})}},qg=(e,t)=>{if(e!==void 0)switch(e.type){case"color":return{type:"uniform",color:e.color||O.getPaletteColor(t,e.colorIndex||0)};case"range":return ek(e,t);case"condition":return{type:"conditional",conditions:e.conditions.filter(r=>typeof r.expression=="string"),defaultColor:O.getPaletteColor(t,0)};default:return O.getUniformColorOptionsFromString(O.getPaletteColor(t,0))}},Gg=e=>Object.entries(e).reduce((t,[r,{color:n}])=>(t[r]=n,t),{}),tk=e=>e.reduce((t,r)=>{var n,a;return(n=r.format)!=null&&n.members&&(t[O.normalizeName(r.jaql.title)]=Gg((a=r.format)==null?void 0:a.members)),t},{}),rk=O.createDataColoringFunction({getValueFromDataStructure:e=>e.originalValue,applyColorToDataStructure:(e,t)=>he(ie({},e),{color:t})}),nk=qg({type:"range",steps:5,rangeMode:"auto"}),ik=(e,t)=>{var l,u,c;const r=O.getColumnByName(t,e.geo.name),n=O.getColumnByName(t,(u=(l=e.color)==null?void 0:l.name)!=null?u:e.geo.name);if(!r||!n)throw new Error("Missing required column");const a=t.rows.map(d=>{var g;const p=O.getValue(d,n),m=O.getCompleteNumberFormatConfig((g=e.color)==null?void 0:g.numberFormatConfig),h=O.applyFormatPlainText(m,p);return{geoName:O.getValue(d,r),originalValue:p,formattedOriginalValue:h}});let o;return e.color&&(o=rk(a,((c=e.color)==null?void 0:c.color)||nk)),{type:"areamap",geoData:o||a}};function ak(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}function Yg(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:ak(e,t,r)}function ok(e,t,r,n){for(var a=e.length,o=r+-1;++o<a;)if(t(e[o],o,e))return o;return-1}function sk(e){return e!==e}function lk(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}function Ed(e,t,r){return t===t?lk(e,t,r):ok(e,sk,r)}function uk(e,t){for(var r=e.length;r--&&Ed(t,e[r],0)>-1;);return r}function ck(e,t){for(var r=-1,n=e.length;++r<n&&Ed(t,e[r],0)>-1;);return r}function dk(e){return e.split("")}var fk="\\ud800-\\udfff",hk="\\u0300-\\u036f",pk="\\ufe20-\\ufe2f",mk="\\u20d0-\\u20ff",vk=hk+pk+mk,gk="\\ufe0e\\ufe0f",yk="\\u200d",bk=RegExp("["+yk+fk+vk+gk+"]");function Xg(e){return bk.test(e)}var Zg="\\ud800-\\udfff",_k="\\u0300-\\u036f",wk="\\ufe20-\\ufe2f",xk="\\u20d0-\\u20ff",Ck=_k+wk+xk,Tk="\\ufe0e\\ufe0f",Sk="["+Zg+"]",yc="["+Ck+"]",bc="\\ud83c[\\udffb-\\udfff]",Ek="(?:"+yc+"|"+bc+")",Kg="[^"+Zg+"]",Qg="(?:\\ud83c[\\udde6-\\uddff]){2}",Jg="[\\ud800-\\udbff][\\udc00-\\udfff]",Mk="\\u200d",ey=Ek+"?",ty="["+Tk+"]?",Pk="(?:"+Mk+"(?:"+[Kg,Qg,Jg].join("|")+")"+ty+ey+")*",Rk=ty+ey+Pk,Ok="(?:"+[Kg+yc+"?",yc,Qg,Jg,Sk].join("|")+")",kk=RegExp(bc+"(?="+bc+")|"+Ok+Rk,"g");function Nk(e){return e.match(kk)||[]}function _c(e){return Xg(e)?Nk(e):dk(e)}function Dk(e,t,r){if(e=O.toString(e),e&&(r||t===void 0))return O.baseTrim(e);if(!e||!(t=O.baseToString(t)))return e;var n=_c(e),a=_c(t),o=ck(n,a),l=uk(n,a)+1;return Yg(n,o,l).join("")}const ry=",";function Ak(e){return e.join(`${ry} `)}function Lk(e){return e.split(ry).map(Dk)}function Ik(e){switch(e){case"city":return"city";case"state":return"adm";case"country":return"country"}}function $k(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 zk="N\\A",Fk=1,Wk=(e,t)=>{const r=jk(e),n=e.locations&&O.getColumnsByName(t,e.locations.map(({name:c})=>c)),a=e.size&&O.getColumnByName(t,e.size.name),o=e.colorBy&&O.getColumnByName(t,e.colorBy.name),l=e.details&&O.getColumnByName(t,e.details.name);return{type:"scattermap",locations:t.rows.filter(c=>n.some(d=>O.getValue(c,d)!==zk)).map(c=>{const d=n.map(g=>O.getValue(c,g)),p=Ak(d);let m;r&&(m={lat:O.getValue(c,n[0]),lng:O.getValue(c,n[1])});const h=n[0]&&!!O.isBlurred(c,n[0]);return ie(he(ie(ie({name:p,rawName:d,value:a?O.getValue(c,a):Fk},o&&{colorValue:O.getValue(c,o)}),l&&{details:O.getValue(c,l)}),{blur:h}),m?{coordinates:m}:null)})}};function jk(e){return e.locations.length===2&&e.locations.filter(t=>O.isNumber(t.type)).length===2}const Bk=(e,t,r)=>{if(O.isCartesian(e))return O.isForecastChart(t)?O.advancedAnalyticsData(t,r):O.cartesianData(t,r);if(O.isCategorical(e))return KO(t,r);if(O.isScatter(e))return O.scatterData(t,r);if(O.isScattermap(e))return Wk(t,r);if(O.isIndicator(e))return QO(t,r);if(O.isBoxplot(e))return JO(t,r);if(O.isAreamap(e))return ik(t,r);if(O.isRange(e))return O.rangeData(t,r);throw new Error(`Unexpected chart type: ${e}`)};function Bs(e,t){return O.setToString(O.overRest(e,t,O.identity),e+"")}function Hk(e,t){var r=e==null?0:e.length;return!!r&&Ed(e,t,0)>-1}var Vk=1/0,Uk=O.Set&&1/O.setToArray(new O.Set([,-0]))[1]==Vk?function(e){return new O.Set(e)}:Lg,qk=200;function Md(e,t,r){var n=-1,a=Hk,o=e.length,l=!0,u=[],c=u;if(o>=qk){var d=t?null:Uk(e);if(d)return O.setToArray(d);l=!1,a=O.cacheHas,c=new O.SetCache}else c=t?[]:u;e:for(;++n<o;){var p=e[n],m=t?t(p):p;if(p=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}function ny(e){return O.isObjectLike(e)&&O.isArrayLike(e)}var Gk=Bs(function(e){return Md(O.baseFlatten(e,1,ny,!0))});const iy=(e,t,r,n={})=>{if(O.emptyTable(e))return{rows:[],columns:[]};const a=Gk(O.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:O.rownumColumnName,title:O.rownumColumnName,agg:"min"}],c=O.groupBy(o,a,u),d=O.getColumnByName(c,O.rownumColumnName);if(!d)throw new Error("Unexpected data has no row num column");return O.orderBy(c,[d])};class no{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 xi=new no,Fn=function(e,t){return xi.floor(e*t.value,t.decimals)};function Yk(e,t){const r={};return e.forEach(n=>{t.some(function(a){return a.key===n?(r[n]=a,!0):!1})}),r}function Xk(e,t,r){const{showTitle:n,showSecondary:a,skin:o,maxHeight:l,maxWidth:u,borderWidth:c}=r;for(let d=0;d<t.length;d++){const p=t[d],m=p.value,h=Fn(m,e.valueSectionMarginBottom),_=Fn(m,e.indicatorVerticalMargin)*2;let y=m+h+_;if(n&&o==="vertical"){const w=Fn(m,e.titleSectionHeight);y+=w}if(a){const w=Fn(m,e.secSectionHeight),E=Fn(m,e.secSectionMarginTop);y+=w+E+(c||0)}if(y<=l){const w=Fn(m,e.numericMinWidth),S=Fn(m,e.indicatorHorizontalMargin)*2;if(w+S<=u)return he(ie({},p),{maxWidth:u-S,maxHeight:l-_})}}return null}class Zk{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),d=Math.floor(n.clientHeight),p=Yk(u,l);return Xk(p,o,{maxWidth:c,maxHeight:d,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,xi.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=xi.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=xi.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=xi.getFitStringMeasure(t,r.secondary.text,l,n.secondaryValueFont),c=o-u.width,d=xi.getFitStringMeasure(t,r.secondaryTitle.text,c,n.secondaryTitleFont);return{width:d.width+u.width+a,titleString:d.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 d=r[c.key],p=t[c.dataKey];return!!(d&&p&&d[c.prop]!==p.text)}))return r.maxWidth;if(t.skin==="vertical"){let d=a&&a.width>o.width?a:o;d=l&&l.width>d.width?l:d,n=d.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 Ci=new no,Go=function(e,t){return Ci.floor(e*t.value,t.decimals)};function Kk(e,t){const r={};return e.forEach(n=>{t.some(function(a){return a.key===n?(r[n]=a,!0):!1})}),r}function Qk(e,t,r){const{showTitle:n,showSecondary:a,maxHeight:o,maxWidth:l,bracketThickness:u}=r;for(let c=0;c<t.length;c++){const d=t[c],p=d.value,m=Go(p,e.indicatorMargin);let h=p+m;if(n){const g=Go(p,e.titleSectionHeight);h+=g}if(a){const g=Go(p,e.secSectionHeight);h+=g}if(h<=o){const g=Go(p,e.numericMinWidth),_=m*2;if(g+u*2+_<=l)return he(ie({},d),{maxWidth:l-_,maxHeight:o-m})}}return null}class Jk{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),d=Math.floor(n.clientHeight),p=Kk(u,l);return Qk(p,o,{maxWidth:c,maxHeight:d,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,Ci.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=Ci.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=Ci.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=Ci.getFitStringMeasure(t,r.secondary.text,l,n.secondaryValueFont),c=o-u.width,d=Ci.getFitStringMeasure(t,r.secondaryTitle.text,c,n.secondaryTitleFont);return{width:d.width+u.width+a,titleString:d.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,d=c&&c.width>u.width;let p;return u=d?c:u,d?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 Je=new no,hi=function(e,t){return Je.floor(e*t.value,t.decimals)};function eN(e,t){const r={};return e.forEach(n=>{t.some(function(a){return a.key===n?(r[n]=a,!0):!1})}),r}function tN(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],d=c.value,p=hi(d,e.valueSectionHeight),m=hi(d,e.indicatorMargin),h=Math.ceil(m*1.5);let g=d+p+h;if(o){const _=hi(d,e.titleSectionHeight);g+=_}if(l){const _=hi(d,e.secSectionHeight);g+=_}if(g<=a){const _=hi(d,e.gaugeWidth),y=hi(d,e.bracketWidth),w=m*2;if(_+y*2+w<=n)return he(ie({},c),{maxWidth:n-w,maxHeight:a-h})}}return null}class rN{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),d=Math.floor(n.clientHeight),p=eN(u,l);return tN(p,o,{maxWidth:c,maxHeight:d,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,Je.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=Je.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=Je.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=Je.getFitStringMeasure(t,r.secondary.text,l,n.secondaryValueFont),c=o-u.width,d=Je.getFitStringMeasure(t,r.secondaryTitle.text,c,n.secondaryTitleFont);return{width:d.width+u.width+a,titleString:d.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,d=c&&c.width>u.width;let p;return u=d?c:u,d?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=Je.degToRad(n.startAngle+180),c=Je.degToRad(n.endAngle+180);let d;const p=m=>this.getAngle(n,m,o,l);for(this.drawArc(t,n,u,c,n.defaultDialColor),d=a.length-1;d>=0;d--){const m=a[d];let h=+m.data,g,_=NaN,y=NaN,w=NaN,E=NaN;const S=.25;switch(m.operator){case"<":if(h<=o)break;h=h>l?l:h,g=p(h),_=u,y=Je.degToRad(g+180);break;case">":if(h>=l)break;h=h<o?o:h,g=p(h),_=Je.degToRad(g+180),y=c;break;case"≤":if(h<o)break;h=h>l?l:h,g=p(h),_=u,y=Je.degToRad(g+(g+S<=n.endAngle?S:0)+180);break;case"≥":if(h>l)break;h=h<o?o:h,g=p(h),_=Je.degToRad(g-(g-S>=n.startAngle?S:0)+180),y=c;break;case"=":if(h<o||h>l)break;g=p(h),_=Je.degToRad(g-(g-S>=n.startAngle?S:0)+180),y=Je.degToRad(g+(g+S<=n.endAngle?S:0)+180);break;case"≠":if(h<o||h>l)_=u,y=c;else if(h===o||h===l){const T=h===o;_=Je.degToRad(n.startAngle+(T?S:0)+180),y=Je.degToRad(n.endAngle-(T?0:S)+180)}else g=p(h),_=u,y=Je.degToRad(g-(g-S>=n.startAngle?S:0)+180),w=Je.degToRad(g+(g+S<=n.endAngle?S:0)+180),E=c}!isNaN(_)&&!isNaN(y)&&this.drawArc(t,n,_,y,m.color),!isNaN(w)&&!isNaN(E)&&this.drawArc(t,n,w,E,m.color)}}drawSimpleDial(t,r,n){const a=Je.degToRad(n.startAngle+180),o=Je.degToRad(n.needleAngle+180),l=Je.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 d=Je.degToRad(c),p=n.gaugeCenterX-n.lengthToTick*Math.cos(d),m=n.gaugeCenterY-n.lengthToTick*Math.sin(d),h=u<a,g=u>=c-l/2&&u<c+l/2,_=c===o&&u>=c;t.fillStyle=!h&&g||_?r.color:n.tickColor,t.beginPath(),t.arc(p,m,n.tickRadius,0,2*Math.PI),t.fill()}}drawNeedle(t,r){const n=Je.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 Rr=new no;class nN{render(t,r,n,a){const o=t.getContext("2d"),l=Math.floor(a.clientWidth)-n.horizontalMargin*2,u=n.sectionMinWidth;let c=0,d=0,p=0,m=0,h=0,g=0,_=0,y=0,w;if(o.font=n.valueFont,w=Rr.getStringWidth(o,r.value.text),n.offsetX=0,r.title.text+=":",r.secondaryTitle&&(r.secondaryTitle.text+=":"),r.showTitle&&(o.font=n.titleFont,g=Rr.getStringWidth(o,r.value.text),h=Rr.getStringWidth(o,r.title.text),d=h<u?h:u,w+=d+n.textPadding),r.showSecondary&&(o.font=n.secondaryValueFont,y=Rr.getStringWidth(o,r.secondary.text),m=y<u?y:u,w+=m,o.font=n.secondaryTitleFont||"",_=Rr.getStringWidth(o,r.secondaryTitle.text),p=_<u?_:u,w+=p+n.horizontalPadding*2+n.dividerWidth+n.textPadding),r.type==="gauge"){const S=n.horizontalPadding*2+n.dividerWidth;if(n.forceTickerView){const C=g+h+_+y+n.textPadding*4+S,x=l-S-C;n.barWidth=Math.max(x,n.barWidth)}const T=n.barWidth+S;w+=T,n.showTickerBar=w<=l||!0,c+=n.showTickerBar?T:0}c+=r.showTitle?n.textPadding:0,c+=r.showSecondary?n.horizontalPadding*2+n.dividerWidth+n.textPadding:0;const E=l-c-d-p-m;if(n.fitValueMeasure=Rr.getFitStringMeasure(o,r.value.text,E,n.valueFont),c+=n.fitValueMeasure.width,r.showSecondary){const S=l-c-d-p;let T;n.fitSecValueMeasure=Rr.getFitStringMeasure(o,r.secondary.text,S,n.secondaryValueFont),c+=n.fitSecValueMeasure.width;const C=l-c,x=C/2;r.showTitle?h+_>C?h>x&&_>x?T=x:_>x&&h<=x?T=C-h:T=_:T=_:T=C,n.fitSecTitleMeasure=Rr.getFitStringMeasure(o,r.secondaryTitle.text,T,n.secondaryTitleFont),c+=n.fitSecTitleMeasure.width}if(r.showTitle){const S=l-c;n.fitTitleMeasure=Rr.getFitStringMeasure(o,r.title.text,S,n.titleFont),c+=n.fitTitleMeasure.width}n.width=c,Rr.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 d;const a=+r.min.data,o=+r.max.data,l=+(((d=r.value)==null?void 0:d.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 wp={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"}]},iN={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}]},aN={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"]},oN={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 sN(e,t){const r=O.cloneDeep(oN);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 lN=new no,uN=new Zk,cN=new Jk,dN=new rN,fN=new nN;class hN{getService(t){switch(t){case"numericSimple":return uN;case"numericBar":return cN;case"gauge":return dN;case"ticker":return fN}}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=sN(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]=lN.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 `,d=a.fontFamily||t.fontFamily,{color:p}=a;t[`${n}Font`]=o+l+u+c+d,t[`${n}Color`]=p})}}function ay(e){var r;const t=(r=e.value)==null?void 0:r[0];if(t&&"color"in t)return t.color}function pN(e,t,r){if(!mN(e))return r;const a=O.getColoringServiceByColorOptions(e).getColor(t);return a?he(ie({},r),{value:he(ie({},r.value),{color:a})}):r}function mN(e){return typeof e=="string"||e.type==="uniform"||e.type==="conditional"}const vN=(e,t)=>{const r=ay(t);return r&&e.value?O.getColoringServiceByColorOptions(r).getColor(O.isNumber$1(e.value)?e.value:0):null},gN=(e,t,r)=>{var m,h,g,_,y,w,E,S,T,C,x,P;const n=O.isNumber$1(e.min)?e.min:0,a=O.isNumber$1(e.max)?e.max:100,o=Yo(r,"value"),l=Yo(r,"secondary"),u=Yo(r,"min"),c=Yo(r,"max"),d=vN(e,r),p=t.indicatorType==="gauge"?1:"vertical";return he(ie(ie({},bN),d?{color:d}:null),{type:yN(t.indicatorType,"numericSubtype"in t?t.numericSubtype:void 0)||"numericSimple",skin:t.skin||p,title:{text:(g=(h=(m=t.indicatorComponents)==null?void 0:m.title)==null?void 0:h.text)!=null?g:""},min:{data:n,text:O.applyFormatPlainText(u,n)},max:{data:a,text:O.applyFormatPlainText(c,a)},value:{data:e.value,text:xp(e.value,o)},secondary:{data:e.secondary,text:xp(e.secondary,l)},secondaryTitle:{text:(w=(y=(_=t.indicatorComponents)==null?void 0:_.secondaryTitle)==null?void 0:y.text)!=null?w:""},showSecondary:e.secondary!==void 0,showTitle:!!((S=(E=t.indicatorComponents)==null?void 0:E.title)!=null&&S.shouldBeShown),showLabels:!!((C=(T=t.indicatorComponents)==null?void 0:T.labels)!=null&&C.shouldBeShown),showTicks:!!((P=(x=t.indicatorComponents)==null?void 0:x.ticks)!=null&&P.shouldBeShown)})};function yN(e,t){return e==="numeric"?t:e}function Yo(e,t){var n;const r=(n=e[t])==null?void 0:n[0];return O.getCompleteNumberFormatConfig(r&&"numberFormatConfig"in r?r.numberFormatConfig:{})}const bN={color:"#00cee6",showSecondary:!1};function xp(e,t){return e===void 0?"":isNaN(e)?"#N/A":O.applyFormatPlainText(t,e)}function _N(e,t,r){const n=O.cloneDeep(r);for(const a in t){const o=t[a],l=wN(e,o);l&&oy(n,a,l)}return n}function oy(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(!sy(l))return;oy(l,o.join("."),r)}}function wN(e,t){const r=t.split(".");let n=e;for(const a of r){if(!sy(n)||!(a in n))return;n=n[a]}return n}function sy(e){return typeof e=="object"&&e!==null}function xN(e,t,r){return _N(e,t,r)}const CN={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"},TN=(e,t)=>{const{chartData:r,dataOptions:n,themeSettings:a}=t,{type:o}=e;let l;switch(o){case"gauge":l=aN;break;case"numeric":e.numericSubtype==="numericBar"?l=iN:l=wp;break;default:l=wp}a&&(l=xN(a,CN,l));const u=ay(n);return u&&r.value&&O.isNumber$1(r.value)&&(l=pN(u,r.value,l)),ie(he(ie({},l),{forceTickerView:e.forceTickerView}),e.type==="gauge"&&e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null)};function Li(e,t){return O.baseIsEqual(e,t)}function ly(e){return typeof e=="string"}function SN(e){var c;const t=zt().themeSettings,[r,n]=J.useState(Ws()),[a,o]=J.useState(null),l=(c=yt().app)==null?void 0:c.httpClient;return J.useEffect(()=>{e&&(ly(e)?l&&Ng(e,l).then(n).catch(o):n(e))},[e,l]),a?[null,a]:Li(t,r)?[t,null]:[O.merge.withOptions({mergeArrays:!1},t,r),null]}const uy=Zn({componentName:"ThemeProvider",trackingConfig:{skip:e=>!!e.skipTracking,transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{const{theme:t,children:r}=e,[n,a]=SN(t);if(a)throw a;return V.jsx(V.Fragment,{children:n&&V.jsx(Sd.Provider,{value:{themeSettings:n},children:r})})}),EN=({chartData:e,dataOptions:t,designOptions:r})=>{var l;const n=J.useRef(null),a=J.useRef(null),{themeSettings:o}=zt();return J.useEffect(()=>{if(!a.current||!n.current)return;const u=new hN,c=gN(e,r,t),d=TN({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,d,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})})},MN=e=>e.type==="indicator",PN=e=>"min"in e,RN=e=>"indicatorComponents"in e,ON=e=>!!e.chartData&&MN(e.chartData)&&PN(e.dataOptions)&&RN(e.designOptions);var wc={exports:{}};/* @preserve
|
|
20
|
-
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
21
|
-
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
22
|
-
*/(function(e,t){(function(r,n){n(t)})(O.commonjsGlobal,function(r){var n="1.9.4";function a(i){var s,f,b,M;for(f=1,b=arguments.length;f<b;f++){M=arguments[f];for(s in M)i[s]=M[s]}return i}var o=Object.create||function(){function i(){}return function(s){return i.prototype=s,new i}}();function l(i,s){var f=Array.prototype.slice;if(i.bind)return i.bind.apply(i,f.call(arguments,1));var b=f.call(arguments,2);return function(){return i.apply(s,b.length?b.concat(f.call(arguments)):arguments)}}var u=0;function c(i){return"_leaflet_id"in i||(i._leaflet_id=++u),i._leaflet_id}function d(i,s,f){var b,M,F,Y;return Y=function(){b=!1,M&&(F.apply(f,M),M=!1)},F=function(){b?M=arguments:(i.apply(f,arguments),setTimeout(Y,s),b=!0)},F}function p(i,s,f){var b=s[1],M=s[0],F=b-M;return i===b&&f?i:((i-M)%F+F)%F+M}function m(){return!1}function h(i,s){if(s===!1)return i;var f=Math.pow(10,s===void 0?6:s);return Math.round(i*f)/f}function g(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function _(i){return g(i).split(/\s+/)}function y(i,s){Object.prototype.hasOwnProperty.call(i,"options")||(i.options=i.options?o(i.options):{});for(var f in s)i.options[f]=s[f];return i.options}function w(i,s,f){var b=[];for(var M in i)b.push(encodeURIComponent(f?M.toUpperCase():M)+"="+encodeURIComponent(i[M]));return(!s||s.indexOf("?")===-1?"?":"&")+b.join("&")}var E=/\{ *([\w_ -]+) *\}/g;function S(i,s){return i.replace(E,function(f,b){var M=s[b];if(M===void 0)throw new Error("No value provided for variable "+f);return typeof M=="function"&&(M=M(s)),M})}var T=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"};function C(i,s){for(var f=0;f<i.length;f++)if(i[f]===s)return f;return-1}var x="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,f=Math.max(0,16-(s-R));return R=s+f,window.setTimeout(i,f)}var A=window.requestAnimationFrame||P("RequestAnimationFrame")||D,I=window.cancelAnimationFrame||P("CancelAnimationFrame")||P("CancelRequestAnimationFrame")||function(i){window.clearTimeout(i)};function N(i,s,f){if(f&&A===D)i.call(s);else return A.call(window,l(i,s))}function k(i){i&&I.call(window,i)}var W={__proto__:null,extend:a,create:o,bind:l,get lastId(){return u},stamp:c,throttle:d,wrapNum:p,falseFn:m,formatNum:h,trim:g,splitWords:_,setOptions:y,getParamString:w,template:S,isArray:T,indexOf:C,emptyImageUrl:x,requestFn:A,cancelFn:I,requestAnimFrame:N,cancelAnimFrame:k};function j(){}j.extend=function(i){var s=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},f=s.__super__=this.prototype,b=o(f);b.constructor=s,s.prototype=b;for(var M in this)Object.prototype.hasOwnProperty.call(this,M)&&M!=="prototype"&&M!=="__super__"&&(s[M]=this[M]);return i.statics&&a(s,i.statics),i.includes&&($(i.includes),a.apply(null,[b].concat(i.includes))),a(b,i),delete b.statics,delete b.includes,b.options&&(b.options=f.options?o(f.options):{},a(b.options,i.options)),b._initHooks=[],b.callInitHooks=function(){if(!this._initHooksCalled){f.callInitHooks&&f.callInitHooks.call(this),this._initHooksCalled=!0;for(var F=0,Y=b._initHooks.length;F<Y;F++)b._initHooks[F].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),f=typeof i=="function"?i:function(){this[i].apply(this,s)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(f),this};function $(i){if(!(typeof L=="undefined"||!L||!L.Mixin)){i=T(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,f){if(typeof i=="object")for(var b in i)this._on(b,i[b],s);else{i=_(i);for(var M=0,F=i.length;M<F;M++)this._on(i[M],s,f)}return this},off:function(i,s,f){if(!arguments.length)delete this._events;else if(typeof i=="object")for(var b in i)this._off(b,i[b],s);else{i=_(i);for(var M=arguments.length===1,F=0,Y=i.length;F<Y;F++)M?this._off(i[F]):this._off(i[F],s,f)}return this},_on:function(i,s,f,b){if(typeof s!="function"){console.warn("wrong listener type: "+typeof s);return}if(this._listens(i,s,f)===!1){f===this&&(f=void 0);var M={fn:s,ctx:f};b&&(M.once=!0),this._events=this._events||{},this._events[i]=this._events[i]||[],this._events[i].push(M)}},_off:function(i,s,f){var b,M,F;if(this._events&&(b=this._events[i],!!b)){if(arguments.length===1){if(this._firingCount)for(M=0,F=b.length;M<F;M++)b[M].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,f);if(Y!==!1){var re=b[Y];this._firingCount&&(re.fn=m,this._events[i]=b=b.slice()),b.splice(Y,1)}}},fire:function(i,s,f){if(!this.listens(i,f))return this;var b=a({},s,{type:i,target:this,sourceTarget:s&&s.sourceTarget||this});if(this._events){var M=this._events[i];if(M){this._firingCount=this._firingCount+1||1;for(var F=0,Y=M.length;F<Y;F++){var re=M[F],ae=re.fn;re.once&&this.off(i,ae,re.ctx),ae.call(re.ctx||this,b)}this._firingCount--}}return f&&this._propagateEvent(b),this},listens:function(i,s,f,b){typeof i!="string"&&console.warn('"string" type argument expected');var M=s;typeof s!="function"&&(b=!!s,M=void 0,f=void 0);var F=this._events&&this._events[i];if(F&&F.length&&this._listens(i,M,f)!==!1)return!0;if(b){for(var Y in this._eventParents)if(this._eventParents[Y].listens(i,s,f,b))return!0}return!1},_listens:function(i,s,f){if(!this._events)return!1;var b=this._events[i]||[];if(!s)return!!b.length;f===this&&(f=void 0);for(var M=0,F=b.length;M<F;M++)if(b[M].fn===s&&b[M].ctx===f)return M;return!1},once:function(i,s,f){if(typeof i=="object")for(var b in i)this._on(b,i[b],s,!0);else{i=_(i);for(var M=0,F=i.length;M<F;M++)this._on(i[M],s,f,!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 G=j.extend(B);function q(i,s,f){this.x=f?Math.round(i):i,this.y=f?Math.round(s):s}var U=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(z(i))},_add:function(i){return this.x+=i.x,this.y+=i.y,this},subtract:function(i){return this.clone()._subtract(z(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=U(this.x),this.y=U(this.y),this},distanceTo:function(i){i=z(i);var s=i.x-this.x,f=i.y-this.y;return Math.sqrt(s*s+f*f)},equals:function(i){return i=z(i),i.x===this.x&&i.y===this.y},contains:function(i){return i=z(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 z(i,s,f){return i instanceof q?i:T(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,f)}function H(i,s){if(i)for(var f=s?[i,s]:i,b=0,M=f.length;b<M;b++)this.extend(f[b])}H.prototype={extend:function(i){var s,f;if(!i)return this;if(i instanceof q||typeof i[0]=="number"||"x"in i)s=f=z(i);else if(i=ee(i),s=i.min,f=i.max,!s||!f)return this;return!this.min&&!this.max?(this.min=s.clone(),this.max=f.clone()):(this.min.x=Math.min(s.x,this.min.x),this.max.x=Math.max(f.x,this.max.x),this.min.y=Math.min(s.y,this.min.y),this.max.y=Math.max(f.y,this.max.y)),this},getCenter:function(i){return z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,i)},getBottomLeft:function(){return z(this.min.x,this.max.y)},getTopRight:function(){return z(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,f;return typeof i[0]=="number"||i instanceof q?i=z(i):i=ee(i),i instanceof H?(s=i.min,f=i.max):s=f=i,s.x>=this.min.x&&f.x<=this.max.x&&s.y>=this.min.y&&f.y<=this.max.y},intersects:function(i){i=ee(i);var s=this.min,f=this.max,b=i.min,M=i.max,F=M.x>=s.x&&b.x<=f.x,Y=M.y>=s.y&&b.y<=f.y;return F&&Y},overlaps:function(i){i=ee(i);var s=this.min,f=this.max,b=i.min,M=i.max,F=M.x>s.x&&b.x<f.x,Y=M.y>s.y&&b.y<f.y;return F&&Y},isValid:function(){return!!(this.min&&this.max)},pad:function(i){var s=this.min,f=this.max,b=Math.abs(s.x-f.x)*i,M=Math.abs(s.y-f.y)*i;return ee(z(s.x-b,s.y-M),z(f.x+b,f.y+M))},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 f=s?[i,s]:i,b=0,M=f.length;b<M;b++)this.extend(f[b])}X.prototype={extend:function(i){var s=this._southWest,f=this._northEast,b,M;if(i instanceof Q)b=i,M=i;else if(i instanceof X){if(b=i._southWest,M=i._northEast,!b||!M)return this}else return i?this.extend(ne(i)||K(i)):this;return!s&&!f?(this._southWest=new Q(b.lat,b.lng),this._northEast=new Q(M.lat,M.lng)):(s.lat=Math.min(b.lat,s.lat),s.lng=Math.min(b.lng,s.lng),f.lat=Math.max(M.lat,f.lat),f.lng=Math.max(M.lng,f.lng)),this},pad:function(i){var s=this._southWest,f=this._northEast,b=Math.abs(s.lat-f.lat)*i,M=Math.abs(s.lng-f.lng)*i;return new X(new Q(s.lat-b,s.lng-M),new Q(f.lat+b,f.lng+M))},getCenter:function(){return new Q((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 Q(this.getNorth(),this.getWest())},getSouthEast:function(){return new Q(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 Q||"lat"in i?i=ne(i):i=K(i);var s=this._southWest,f=this._northEast,b,M;return i instanceof X?(b=i.getSouthWest(),M=i.getNorthEast()):b=M=i,b.lat>=s.lat&&M.lat<=f.lat&&b.lng>=s.lng&&M.lng<=f.lng},intersects:function(i){i=K(i);var s=this._southWest,f=this._northEast,b=i.getSouthWest(),M=i.getNorthEast(),F=M.lat>=s.lat&&b.lat<=f.lat,Y=M.lng>=s.lng&&b.lng<=f.lng;return F&&Y},overlaps:function(i){i=K(i);var s=this._southWest,f=this._northEast,b=i.getSouthWest(),M=i.getNorthEast(),F=M.lat>s.lat&&b.lat<f.lat,Y=M.lng>s.lng&&b.lng<f.lng;return F&&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 Q(i,s,f){if(isNaN(i)||isNaN(s))throw new Error("Invalid LatLng object: ("+i+", "+s+")");this.lat=+i,this.lng=+s,f!==void 0&&(this.alt=+f)}Q.prototype={equals:function(i,s){if(!i)return!1;i=ne(i);var f=Math.max(Math.abs(this.lat-i.lat),Math.abs(this.lng-i.lng));return f<=(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,f=s/Math.cos(Math.PI/180*this.lat);return K([this.lat-s,this.lng-f],[this.lat+s,this.lng+f])},clone:function(){return new Q(this.lat,this.lng,this.alt)}};function ne(i,s,f){return i instanceof Q?i:T(i)&&typeof i[0]!="object"?i.length===3?new Q(i[0],i[1],i[2]):i.length===2?new Q(i[0],i[1]):null:i==null?i:typeof i=="object"&&"lat"in i?new Q(i.lat,"lng"in i?i.lng:i.lon,i.alt):s===void 0?null:new Q(i,s,f)}var le={latLngToPoint:function(i,s){var f=this.projection.project(i),b=this.scale(s);return this.transformation._transform(f,b)},pointToLatLng:function(i,s){var f=this.scale(s),b=this.transformation.untransform(i,f);return this.projection.unproject(b)},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,f=this.scale(i),b=this.transformation.transform(s.min,f),M=this.transformation.transform(s.max,f);return new H(b,M)},infinite:!1,wrapLatLng:function(i){var s=this.wrapLng?p(i.lng,this.wrapLng,!0):i.lng,f=this.wrapLat?p(i.lat,this.wrapLat,!0):i.lat,b=i.alt;return new Q(f,s,b)},wrapLatLngBounds:function(i){var s=i.getCenter(),f=this.wrapLatLng(s),b=s.lat-f.lat,M=s.lng-f.lng;if(b===0&&M===0)return i;var F=i.getSouthWest(),Y=i.getNorthEast(),re=new Q(F.lat-b,F.lng-M),ae=new Q(Y.lat-b,Y.lng-M);return new X(re,ae)}},se=a({},le,{wrapLng:[-180,180],R:6371e3,distance:function(i,s){var f=Math.PI/180,b=i.lat*f,M=s.lat*f,F=Math.sin((s.lat-i.lat)*f/2),Y=Math.sin((s.lng-i.lng)*f/2),re=F*F+Math.cos(b)*Math.cos(M)*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,f=this.MAX_LATITUDE,b=Math.max(Math.min(f,i.lat),-f),M=Math.sin(b*s);return new q(this.R*i.lng*s,this.R*Math.log((1+M)/(1-M))/2)},unproject:function(i){var s=180/Math.PI;return new Q((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,f,b){if(T(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=f,this._d=b}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,f,b){return new pe(i,s,f,b)}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 f="",b,M,F,Y,re,ae;for(b=0,F=i.length;b<F;b++){for(re=i[b],M=0,Y=re.length;M<Y;M++)ae=re[M],f+=(M?"L":"M")+ae.x+" "+ae.y;f+=s?ge.svg?"z":"x":""}return f||"M0 0"}var Se=document.documentElement.style,Ce="ActiveXObject"in window,dt=Ce&&!document.addEventListener,Ve="msLaunchUri"in navigator&&!("documentMode"in document),rt=gt("webkit"),ft=gt("android"),Ie=gt("android 2")||gt("android 3"),Ue=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Mt=ft&>("Google")&&Ue<537&&!("AudioNode"in window),ht=!!window.opera,Pt=!Ve&>("chrome"),hr=gt("gecko")&&!rt&&!ht&&!Ce,Te=!Pt&>("safari"),bt=gt("phantom"),Tr="OTransition"in Se,Zt=navigator.platform.indexOf("Win")===0,Sr=Ce&&"transition"in Se,en="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Ie,pr="MozPerspective"in Se,Br=!window.L_DISABLE_3D&&(Sr||en||pr)&&!Tr&&!bt,Vt=typeof orientation!="undefined"||gt("mobile"),Rn=Vt&&rt,Hr=Vt&&en,tn=!window.PointerEvent&&window.MSPointerEvent,On=!!(window.PointerEvent||tn),mr="ontouchstart"in window||!!window.TouchEvent,kn=!window.L_NO_TOUCH&&(mr||On),Nn=Vt&&ht,rn=Vt&&hr,ti=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,ri=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(f){}return i}(),ra=function(){return!!document.createElement("canvas").getContext}(),Kt=!!(document.createElementNS&&_e("svg").createSVGRect),ni=!!Kt&&function(){var i=document.createElement("div");return i.innerHTML="<svg/>",(i.firstChild&&i.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Vr=!Kt&&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(f){return!1}}(),nn=navigator.platform.indexOf("Mac")===0,wt=navigator.platform.indexOf("Linux")===0;function gt(i){return navigator.userAgent.toLowerCase().indexOf(i)>=0}var ge={ie:Ce,ielt9:dt,edge:Ve,webkit:rt,android:ft,android23:Ie,androidStock:Mt,opera:ht,chrome:Pt,gecko:hr,safari:Te,phantom:bt,opera12:Tr,win:Zt,ie3d:Sr,webkit3d:en,gecko3d:pr,any3d:Br,mobile:Vt,mobileWebkit:Rn,mobileWebkit3d:Hr,msPointer:tn,pointer:On,touch:kn,touchNative:mr,mobileOpera:Nn,mobileGecko:rn,retina:ti,passiveEvents:ri,canvas:ra,svg:Kt,vml:Vr,inlineSvg:ni,mac:nn,linux:wt},vr=ge.msPointer?"MSPointerDown":"pointerdown",an=ge.msPointer?"MSPointerMove":"pointermove",Dn=ge.msPointer?"MSPointerUp":"pointerup",on=ge.msPointer?"MSPointerCancel":"pointercancel",sn={touchstart:vr,touchmove:an,touchend:Dn,touchcancel:on},ln={touchstart:ew,touchmove:To,touchend:To,touchcancel:To},gr={},un=!1;function Tl(i,s,f){return s==="touchstart"&&J0(),ln[s]?(f=ln[s].bind(this,f),i.addEventListener(sn[s],f,!1),f):(console.warn("wrong event specified:",s),m)}function Sl(i,s,f){if(!sn[s]){console.warn("wrong event specified:",s);return}i.removeEventListener(sn[s],f,!1)}function Pe(i){gr[i.pointerId]=i}function Ot(i){gr[i.pointerId]&&(gr[i.pointerId]=i)}function Hf(i){delete gr[i.pointerId]}function J0(){un||(document.addEventListener(vr,Pe,!0),document.addEventListener(an,Ot,!0),document.addEventListener(Dn,Hf,!0),document.addEventListener(on,Hf,!0),un=!0)}function To(i,s){if(s.pointerType!==(s.MSPOINTER_TYPE_MOUSE||"mouse")){s.touches=[];for(var f in gr)s.touches.push(gr[f]);s.changedTouches=[s],i(s)}}function ew(i,s){s.MSPOINTER_TYPE_TOUCH&&s.pointerType===s.MSPOINTER_TYPE_TOUCH&&xt(s),To(i,s)}function tw(i){var s={},f,b;for(b in i)f=i[b],s[b]=f&&f.bind?f.bind(i):f;return i=s,s.type="dblclick",s.detail=2,s.isTrusted=!1,s._simulated=!0,s}var rw=200;function nw(i,s){i.addEventListener("dblclick",s);var f=0,b;function M(F){if(F.detail!==1){b=F.detail;return}if(!(F.pointerType==="mouse"||F.sourceCapabilities&&!F.sourceCapabilities.firesTouchEvents)){var Y=Yf(F);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-f<=rw?(b++,b===2&&s(tw(F))):b=1,f=re}}}return i.addEventListener("click",M),{dblclick:s,simDblclick:M}}function iw(i,s){i.removeEventListener("dblclick",s.dblclick),i.removeEventListener("click",s.simDblclick)}var El=Mo(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),na=Mo(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Vf=na==="webkitTransition"||na==="OTransition"?na+"End":"transitionend";function Uf(i){return typeof i=="string"?document.getElementById(i):i}function ia(i,s){var f=i.style[s]||i.currentStyle&&i.currentStyle[s];if((!f||f==="auto")&&document.defaultView){var b=document.defaultView.getComputedStyle(i,null);f=b?b[s]:null}return f==="auto"?null:f}function $e(i,s,f){var b=document.createElement(i);return b.className=s||"",f&&f.appendChild(b),b}function Qe(i){var s=i.parentNode;s&&s.removeChild(i)}function So(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function ii(i){var s=i.parentNode;s&&s.lastChild!==i&&s.appendChild(i)}function ai(i){var s=i.parentNode;s&&s.firstChild!==i&&s.insertBefore(i,s.firstChild)}function Ml(i,s){if(i.classList!==void 0)return i.classList.contains(s);var f=Eo(i);return f.length>0&&new RegExp("(^|\\s)"+s+"(\\s|$)").test(f)}function Re(i,s){if(i.classList!==void 0)for(var f=_(s),b=0,M=f.length;b<M;b++)i.classList.add(f[b]);else if(!Ml(i,s)){var F=Eo(i);Pl(i,(F?F+" ":"")+s)}}function st(i,s){i.classList!==void 0?i.classList.remove(s):Pl(i,g((" "+Eo(i)+" ").replace(" "+s+" "," ")))}function Pl(i,s){i.className.baseVal===void 0?i.className=s:i.className.baseVal=s}function Eo(i){return i.correspondingElement&&(i=i.correspondingElement),i.className.baseVal===void 0?i.className:i.className.baseVal}function Qt(i,s){"opacity"in i.style?i.style.opacity=s:"filter"in i.style&&aw(i,s)}function aw(i,s){var f=!1,b="DXImageTransform.Microsoft.Alpha";try{f=i.filters.item(b)}catch(M){if(s===1)return}s=Math.round(s*100),f?(f.Enabled=s!==100,f.Opacity=s):i.style.filter+=" progid:"+b+"(opacity="+s+")"}function Mo(i){for(var s=document.documentElement.style,f=0;f<i.length;f++)if(i[f]in s)return i[f];return!1}function An(i,s,f){var b=s||new q(0,0);i.style[El]=(ge.ie3d?"translate("+b.x+"px,"+b.y+"px)":"translate3d("+b.x+"px,"+b.y+"px,0)")+(f?" scale("+f+")":"")}function pt(i,s){i._leaflet_pos=s,ge.any3d?An(i,s):(i.style.left=s.x+"px",i.style.top=s.y+"px")}function Ln(i){return i._leaflet_pos||new q(0,0)}var aa,oa,Rl;if("onselectstart"in document)aa=function(){Me(window,"selectstart",xt)},oa=function(){qe(window,"selectstart",xt)};else{var sa=Mo(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);aa=function(){if(sa){var i=document.documentElement.style;Rl=i[sa],i[sa]="none"}},oa=function(){sa&&(document.documentElement.style[sa]=Rl,Rl=void 0)}}function Ol(){Me(window,"dragstart",xt)}function kl(){qe(window,"dragstart",xt)}var Po,Nl;function Dl(i){for(;i.tabIndex===-1;)i=i.parentNode;i.style&&(Ro(),Po=i,Nl=i.style.outlineStyle,i.style.outlineStyle="none",Me(window,"keydown",Ro))}function Ro(){Po&&(Po.style.outlineStyle=Nl,Po=void 0,Nl=void 0,qe(window,"keydown",Ro))}function qf(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 ow={__proto__:null,TRANSFORM:El,TRANSITION:na,TRANSITION_END:Vf,get:Uf,getStyle:ia,create:$e,remove:Qe,empty:So,toFront:ii,toBack:ai,hasClass:Ml,addClass:Re,removeClass:st,setClass:Pl,getClass:Eo,setOpacity:Qt,testProp:Mo,setTransform:An,setPosition:pt,getPosition:Ln,get disableTextSelection(){return aa},get enableTextSelection(){return oa},disableImageDrag:Ol,enableImageDrag:kl,preventOutline:Dl,restoreOutline:Ro,getSizedParentNode:qf,getScale:Al};function Me(i,s,f,b){if(s&&typeof s=="object")for(var M in s)Il(i,M,s[M],f);else{s=_(s);for(var F=0,Y=s.length;F<Y;F++)Il(i,s[F],f,b)}return this}var Er="_leaflet_events";function qe(i,s,f,b){if(arguments.length===1)Gf(i),delete i[Er];else if(s&&typeof s=="object")for(var M in s)$l(i,M,s[M],f);else if(s=_(s),arguments.length===2)Gf(i,function(re){return C(s,re)!==-1});else for(var F=0,Y=s.length;F<Y;F++)$l(i,s[F],f,b);return this}function Gf(i,s){for(var f in i[Er]){var b=f.split(/\d/)[0];(!s||s(b))&&$l(i,b,null,null,f)}}var Ll={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Il(i,s,f,b){var M=s+c(f)+(b?"_"+c(b):"");if(i[Er]&&i[Er][M])return this;var F=function(re){return f.call(b||i,re||window.event)},Y=F;!ge.touchNative&&ge.pointer&&s.indexOf("touch")===0?F=Tl(i,s,F):ge.touch&&s==="dblclick"?F=nw(i,F):"addEventListener"in i?s==="touchstart"||s==="touchmove"||s==="wheel"||s==="mousewheel"?i.addEventListener(Ll[s]||s,F,ge.passiveEvents?{passive:!1}:!1):s==="mouseenter"||s==="mouseleave"?(F=function(re){re=re||window.event,Fl(i,re)&&Y(re)},i.addEventListener(Ll[s],F,!1)):i.addEventListener(s,Y,!1):i.attachEvent("on"+s,F),i[Er]=i[Er]||{},i[Er][M]=F}function $l(i,s,f,b,M){M=M||s+c(f)+(b?"_"+c(b):"");var F=i[Er]&&i[Er][M];if(!F)return this;!ge.touchNative&&ge.pointer&&s.indexOf("touch")===0?Sl(i,s,F):ge.touch&&s==="dblclick"?iw(i,F):"removeEventListener"in i?i.removeEventListener(Ll[s]||s,F,!1):i.detachEvent("on"+s,F),i[Er][M]=null}function In(i){return i.stopPropagation?i.stopPropagation():i.originalEvent?i.originalEvent._stopped=!0:i.cancelBubble=!0,this}function zl(i){return Il(i,"wheel",In),this}function la(i){return Me(i,"mousedown touchstart dblclick contextmenu",In),i._leaflet_disable_click=!0,this}function xt(i){return i.preventDefault?i.preventDefault():i.returnValue=!1,this}function $n(i){return xt(i),In(i),this}function Yf(i){if(i.composedPath)return i.composedPath();for(var s=[],f=i.target;f;)s.push(f),f=f.parentNode;return s}function Xf(i,s){if(!s)return new q(i.clientX,i.clientY);var f=Al(s),b=f.boundingClientRect;return new q((i.clientX-b.left)/f.x-s.clientLeft,(i.clientY-b.top)/f.y-s.clientTop)}var sw=ge.linux&&ge.chrome?window.devicePixelRatio:ge.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Zf(i){return ge.edge?i.wheelDeltaY/2:i.deltaY&&i.deltaMode===0?-i.deltaY/sw: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 Fl(i,s){var f=s.relatedTarget;if(!f)return!0;try{for(;f&&f!==i;)f=f.parentNode}catch(b){return!1}return f!==i}var lw={__proto__:null,on:Me,off:qe,stopPropagation:In,disableScrollPropagation:zl,disableClickPropagation:la,preventDefault:xt,stop:$n,getPropagationPath:Yf,getMousePosition:Xf,getWheelDelta:Zf,isExternalTarget:Fl,addListener:Me,removeListener:qe},Kf=G.extend({run:function(i,s,f,b){this.stop(),this._el=i,this._inProgress=!0,this._duration=f||.25,this._easeOutPower=1/Math.max(b||.5,.2),this._startPos=Ln(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=N(this._animate,this),this._step()},_step:function(i){var s=+new Date-this._startTime,f=this._duration*1e3;s<f?this._runFrame(this._easeOut(s/f),i):(this._runFrame(1),this._complete())},_runFrame:function(i,s){var f=this._startPos.add(this._offset.multiplyBy(i));s&&f._round(),pt(this._el,f),this.fire("step")},_complete:function(){k(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(i){return 1-Math.pow(1-i,this._easeOutPower)}}),Le=G.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=y(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=na&&ge.any3d&&!ge.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Me(this._proxy,Vf,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(i,s,f){if(s=s===void 0?this._zoom:this._limitZoom(s),i=this._limitCenter(ne(i),s,this.options.maxBounds),f=f||{},this._stop(),this._loaded&&!f.reset&&f!==!0){f.animate!==void 0&&(f.zoom=a({animate:f.animate},f.zoom),f.pan=a({animate:f.animate,duration:f.duration},f.pan));var b=this._zoom!==s?this._tryAnimatedZoom&&this._tryAnimatedZoom(i,s,f.zoom):this._tryAnimatedPan(i,f.pan);if(b)return clearTimeout(this._sizeTimer),this}return this._resetView(i,s,f.pan&&f.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,f){var b=this.getZoomScale(s),M=this.getSize().divideBy(2),F=i instanceof q?i:this.latLngToContainerPoint(i),Y=F.subtract(M).multiplyBy(1-1/b),re=this.containerPointToLatLng(M.add(Y));return this.setView(re,s,{zoom:f})},_getBoundsCenterZoom:function(i,s){s=s||{},i=i.getBounds?i.getBounds():K(i);var f=z(s.paddingTopLeft||s.padding||[0,0]),b=z(s.paddingBottomRight||s.padding||[0,0]),M=this.getBoundsZoom(i,!1,f.add(b));if(M=typeof s.maxZoom=="number"?Math.min(s.maxZoom,M):M,M===1/0)return{center:i.getCenter(),zoom:M};var F=b.subtract(f).divideBy(2),Y=this.project(i.getSouthWest(),M),re=this.project(i.getNorthEast(),M),ae=this.unproject(Y.add(re).divideBy(2).add(F),M);return{center:ae,zoom:M}},fitBounds:function(i,s){if(i=K(i),!i.isValid())throw new Error("Bounds are not valid.");var f=this._getBoundsCenterZoom(i,s);return this.setView(f.center,f.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=z(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 Kf,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 f=this._getMapPanePos().subtract(i).round();this._panAnim.run(this._mapPane,f,s.duration||.25,s.easeLinearity)}else this._rawPanBy(i),this.fire("move").fire("moveend");return this},flyTo:function(i,s,f){if(f=f||{},f.animate===!1||!ge.any3d)return this.setView(i,s,f);this._stop();var b=this.project(this.getCenter()),M=this.project(i),F=this.getSize(),Y=this._zoom;i=ne(i),s=s===void 0?Y:s;var re=Math.max(F.x,F.y),ae=re*this.getZoomScale(Y,s),ce=M.distanceTo(b)||1,me=1.42,xe=me*me;function Ne(mt){var jo=mt?-1:1,Zw=mt?ae:re,Kw=ae*ae-re*re+jo*xe*xe*ce*ce,Qw=2*Zw*xe*ce,Zl=Kw/Qw,kh=Math.sqrt(Zl*Zl+1)-Zl,Jw=kh<1e-9?-18:Math.log(kh);return Jw}function kt(mt){return(Math.exp(mt)-Math.exp(-mt))/2}function _t(mt){return(Math.exp(mt)+Math.exp(-mt))/2}function er(mt){return kt(mt)/_t(mt)}var Ft=Ne(0);function di(mt){return re*(_t(Ft)/_t(Ft+me*mt))}function qw(mt){return re*(_t(Ft)*er(Ft+me*mt)-kt(Ft))/xe}function Gw(mt){return 1-Math.pow(1-mt,1.5)}var Yw=Date.now(),Rh=(Ne(1)-Ft)/me,Xw=f.duration?1e3*f.duration:1e3*Rh*.8;function Oh(){var mt=(Date.now()-Yw)/Xw,jo=Gw(mt)*Rh;mt<=1?(this._flyToFrame=N(Oh,this),this._move(this.unproject(b.add(M.subtract(b).multiplyBy(qw(jo)/ce)),Y),this.getScaleZoom(re/di(jo),Y),{flyTo:!0})):this._move(i,s)._moveEnd(!0)}return this._moveStart(!0,f.noMoveStart),Oh.call(this),this},flyToBounds:function(i,s){var f=this._getBoundsCenterZoom(i,s);return this.flyTo(f.center,f.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 f=this.getCenter(),b=this._limitCenter(f,this._zoom,K(i));return f.equals(b)||this.panTo(b,s),this._enforcingBounds=!1,this},panInside:function(i,s){s=s||{};var f=z(s.paddingTopLeft||s.padding||[0,0]),b=z(s.paddingBottomRight||s.padding||[0,0]),M=this.project(this.getCenter()),F=this.project(i),Y=this.getPixelBounds(),re=ee([Y.min.add(f),Y.max.subtract(b)]),ae=re.getSize();if(!re.contains(F)){this._enforcingBounds=!0;var ce=F.subtract(re.getCenter()),me=re.extend(F).getSize().subtract(ae);M.x+=ce.x<0?-me.x:me.x,M.y+=ce.y<0?-me.y:me.y,this.panTo(this.unproject(M),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 f=this.getSize(),b=s.divideBy(2).round(),M=f.divideBy(2).round(),F=b.subtract(M);return!F.x&&!F.y?this:(i.animate&&i.pan?this.panBy(F):(i.pan&&this._rawPanBy(F),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:f}))},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),f=l(this._handleGeolocationError,this);return i.watch?this._locationWatchId=navigator.geolocation.watchPosition(s,f,i):navigator.geolocation.getCurrentPosition(s,f,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,f=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: "+f+"."})}},_handleGeolocationResponse:function(i){if(this._container._leaflet_id){var s=i.coords.latitude,f=i.coords.longitude,b=new Q(s,f),M=b.toBounds(i.coords.accuracy*2),F=this._locateOptions;if(F.setView){var Y=this.getBoundsZoom(M);this.setView(b,F.maxZoom?Math.min(Y,F.maxZoom):Y)}var re={latlng:b,bounds:M,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 f=this[i]=new s(this);return this._handlers.push(f),this.options[i]&&f.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(),Qe(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(k(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)Qe(this._panes[i]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(i,s){var f="leaflet-pane"+(i?" leaflet-"+i.replace("Pane","")+"-pane":""),b=$e("div",f,s||this._mapPane);return i&&(this._panes[i]=b),b},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()),f=this.unproject(i.getTopRight());return new X(s,f)},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,f){i=K(i),f=z(f||[0,0]);var b=this.getZoom()||0,M=this.getMinZoom(),F=this.getMaxZoom(),Y=i.getNorthWest(),re=i.getSouthEast(),ae=this.getSize().subtract(f),ce=ee(this.project(re,b),this.project(Y,b)).getSize(),me=ge.any3d?this.options.zoomSnap:1,xe=ae.x/ce.x,Ne=ae.y/ce.y,kt=s?Math.max(xe,Ne):Math.min(xe,Ne);return b=this.getScaleZoom(kt,b),me&&(b=Math.round(b/(me/100))*(me/100),b=s?Math.ceil(b/me)*me:Math.floor(b/me)*me),Math.max(M,Math.min(F,b))},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 f=this._getTopLeftPoint(i,s);return new H(f,f.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 f=this.options.crs;return s=s===void 0?this._zoom:s,f.scale(i)/f.scale(s)},getScaleZoom:function(i,s){var f=this.options.crs;s=s===void 0?this._zoom:s;var b=f.zoom(i*f.scale(s));return isNaN(b)?1/0:b},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(z(i),s)},layerPointToLatLng:function(i){var s=z(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 z(i).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(i){return z(i).add(this._getMapPanePos())},containerPointToLatLng:function(i){var s=this.containerPointToLayerPoint(z(i));return this.layerPointToLatLng(s)},latLngToContainerPoint:function(i){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ne(i)))},mouseEventToContainerPoint:function(i){return Xf(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=Uf(i);if(s){if(s._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Me(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=ia(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),pt(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,f){pt(this._mapPane,new q(0,0));var b=!this._loaded;this._loaded=!0,s=this._limitZoom(s),this.fire("viewprereset");var M=this._zoom!==s;this._moveStart(M,f)._move(i,s)._moveEnd(M),this.fire("viewreset"),b&&this.fire("load")},_moveStart:function(i,s){return i&&this.fire("zoomstart"),s||this.fire("movestart"),this},_move:function(i,s,f,b){s===void 0&&(s=this._zoom);var M=this._zoom!==s;return this._zoom=s,this._lastCenter=i,this._pixelOrigin=this._getNewPixelOrigin(i),b?f&&f.pinch&&this.fire("zoom",f):((M||f&&f.pinch)&&this.fire("zoom",f),this.fire("move",f)),this},_moveEnd:function(i){return i&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return k(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(i){pt(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:Me;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(){k(this._resizeRequest),this._resizeRequest=N(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 f=[],b,M=s==="mouseout"||s==="mouseover",F=i.target||i.srcElement,Y=!1;F;){if(b=this._targets[c(F)],b&&(s==="click"||s==="preclick")&&this._draggableMoved(b)){Y=!0;break}if(b&&b.listens(s,!0)&&(M&&!Fl(F,i)||(f.push(b),M))||F===this._container)break;F=F.parentNode}return!f.length&&!Y&&!M&&this.listens(s,!0)&&(f=[this]),f},_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 f=i.type;f==="mousedown"&&Dl(s),this._fireDOMEvent(i,f)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(i,s,f){if(i.type==="click"){var b=a({},i);b.type="preclick",this._fireDOMEvent(b,b.type,f)}var M=this._findEventTargets(i,s);if(f){for(var F=[],Y=0;Y<f.length;Y++)f[Y].listens(s,!0)&&F.push(f[Y]);M=F.concat(M)}if(M.length){s==="contextmenu"&&xt(i);var re=M[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<M.length;Y++)if(M[Y].fire(s,ae,!0),ae.originalEvent._stopped||M[Y].options.bubblingMouseEvents===!1&&C(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 Ln(this._mapPane)||new q(0,0)},_moved:function(){var i=this._getMapPanePos();return i&&!i.equals([0,0])},_getTopLeftPoint:function(i,s){var f=i&&s!==void 0?this._getNewPixelOrigin(i,s):this.getPixelOrigin();return f.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(i,s){var f=this.getSize()._divideBy(2);return this.project(i,s)._subtract(f)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(i,s,f){var b=this._getNewPixelOrigin(f,s);return this.project(i,s)._subtract(b)},_latLngBoundsToNewLayerBounds:function(i,s,f){var b=this._getNewPixelOrigin(f,s);return ee([this.project(i.getSouthWest(),s)._subtract(b),this.project(i.getNorthWest(),s)._subtract(b),this.project(i.getSouthEast(),s)._subtract(b),this.project(i.getNorthEast(),s)._subtract(b)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(i){return this.latLngToLayerPoint(i).subtract(this._getCenterLayerPoint())},_limitCenter:function(i,s,f){if(!f)return i;var b=this.project(i,s),M=this.getSize().divideBy(2),F=new H(b.subtract(M),b.add(M)),Y=this._getBoundsOffset(F,f,s);return Math.abs(Y.x)<=1&&Math.abs(Y.y)<=1?i:this.unproject(b.add(Y),s)},_limitOffset:function(i,s){if(!s)return i;var f=this.getPixelBounds(),b=new H(f.min.add(i),f.max.add(i));return i.add(this._getBoundsOffset(b,s))},_getBoundsOffset:function(i,s,f){var b=ee(this.project(s.getNorthEast(),f),this.project(s.getSouthWest(),f)),M=b.min.subtract(i.min),F=b.max.subtract(i.max),Y=this._rebound(M.x,-F.x),re=this._rebound(M.y,-F.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(),f=this.getMaxZoom(),b=ge.any3d?this.options.zoomSnap:1;return b&&(i=Math.round(i/b)*b),Math.max(s,Math.min(f,i))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){st(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(i,s){var f=this._getCenterOffset(i)._trunc();return(s&&s.animate)!==!0&&!this.getSize().contains(f)?!1:(this.panBy(f,s),!0)},_createAnimProxy:function(){var i=this._proxy=$e("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(i),this.on("zoomanim",function(s){var f=El,b=this._proxy.style[f];An(this._proxy,this.project(s.center,s.zoom),this.getZoomScale(s.zoom,1)),b===this._proxy.style[f]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Qe(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var i=this.getCenter(),s=this.getZoom();An(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,f){if(this._animatingZoom)return!0;if(f=f||{},!this._zoomAnimated||f.animate===!1||this._nothingToAnimate()||Math.abs(s-this._zoom)>this.options.zoomAnimationThreshold)return!1;var b=this.getZoomScale(s),M=this._getCenterOffset(i)._divideBy(1-1/b);return f.animate!==!0&&!this.getSize().contains(M)?!1:(N(function(){this._moveStart(!0,f.noMoveStart||!1)._animateZoom(i,s,!0)},this),!0)},_animateZoom:function(i,s,f,b){this._mapPane&&(f&&(this._animatingZoom=!0,this._animateToCenter=i,this._animateToZoom=s,Re(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:i,zoom:s,noUpdate:b}),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&&st(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 uw(i,s){return new Le(i,s)}var yr=j.extend({options:{position:"topright"},initialize:function(i){y(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),f=this.getPosition(),b=i._controlCorners[f];return Re(s,"leaflet-control"),f.indexOf("bottom")!==-1?b.insertBefore(s,b.firstChild):b.appendChild(s),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Qe(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()}}),ua=function(i){return new yr(i)};Le.include({addControl:function(i){return i.addTo(this),this},removeControl:function(i){return i.remove(),this},_initControlPos:function(){var i=this._controlCorners={},s="leaflet-",f=this._controlContainer=$e("div",s+"control-container",this._container);function b(M,F){var Y=s+M+" "+s+F;i[M+F]=$e("div",Y,f)}b("top","left"),b("top","right"),b("bottom","left"),b("bottom","right")},_clearControlPos:function(){for(var i in this._controlCorners)Qe(this._controlCorners[i]);Qe(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Qf=yr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(i,s,f,b){return f<b?-1:b<f?1:0}},initialize:function(i,s,f){y(this,f),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var b in i)this._addLayer(i[b],b);for(b in s)this._addLayer(s[b],b,!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 yr.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"):st(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return st(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var i="leaflet-control-layers",s=this._container=$e("div",i),f=this.options.collapsed;s.setAttribute("aria-haspopup",!0),la(s),zl(s);var b=this._section=$e("section",i+"-list");f&&(this._map.on("click",this.collapse,this),Me(s,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var M=this._layersLink=$e("a",i+"-toggle",s);M.href="#",M.title="Layers",M.setAttribute("role","button"),Me(M,{keydown:function(F){F.keyCode===13&&this._expandSafely()},click:function(F){xt(F),this._expandSafely()}},this),f||this.expand(),this._baseLayersList=$e("div",i+"-base",b),this._separator=$e("div",i+"-separator",b),this._overlaysList=$e("div",i+"-overlays",b),s.appendChild(b)},_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,f){this._map&&i.on("add remove",this._onLayerChange,this),this._layers.push({layer:i,name:s,overlay:f}),this.options.sortLayers&&this._layers.sort(l(function(b,M){return this.options.sortFunction(b.layer,M.layer,b.name,M.name)},this)),this.options.autoZIndex&&i.setZIndex&&(this._lastZIndex++,i.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;So(this._baseLayersList),So(this._overlaysList),this._layerControlInputs=[];var i,s,f,b,M=0;for(f=0;f<this._layers.length;f++)b=this._layers[f],this._addItem(b),s=s||b.overlay,i=i||!b.overlay,M+=b.overlay?0:1;return this.options.hideSingleBase&&(i=i&&M>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)),f=s.overlay?i.type==="add"?"overlayadd":"overlayremove":i.type==="add"?"baselayerchange":null;f&&this._map.fire(f,s)},_createRadioElement:function(i,s){var f='<input type="radio" class="leaflet-control-layers-selector" name="'+i+'"'+(s?' checked="checked"':"")+"/>",b=document.createElement("div");return b.innerHTML=f,b.firstChild},_addItem:function(i){var s=document.createElement("label"),f=this._map.hasLayer(i.layer),b;i.overlay?(b=document.createElement("input"),b.type="checkbox",b.className="leaflet-control-layers-selector",b.defaultChecked=f):b=this._createRadioElement("leaflet-base-layers_"+c(this),f),this._layerControlInputs.push(b),b.layerId=c(i.layer),Me(b,"click",this._onInputClick,this);var M=document.createElement("span");M.innerHTML=" "+i.name;var F=document.createElement("span");s.appendChild(F),F.appendChild(b),F.appendChild(M);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,f,b=[],M=[];this._handlingClick=!0;for(var F=i.length-1;F>=0;F--)s=i[F],f=this._getLayer(s.layerId).layer,s.checked?b.push(f):s.checked||M.push(f);for(F=0;F<M.length;F++)this._map.hasLayer(M[F])&&this._map.removeLayer(M[F]);for(F=0;F<b.length;F++)this._map.hasLayer(b[F])||this._map.addLayer(b[F]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var i=this._layerControlInputs,s,f,b=this._map.getZoom(),M=i.length-1;M>=0;M--)s=i[M],f=this._getLayer(s.layerId).layer,s.disabled=f.options.minZoom!==void 0&&b<f.options.minZoom||f.options.maxZoom!==void 0&&b>f.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var i=this._section;this._preventClick=!0,Me(i,"click",xt),this.expand();var s=this;setTimeout(function(){qe(i,"click",xt),s._preventClick=!1})}}),cw=function(i,s,f){return new Qf(i,s,f)},Wl=yr.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",f=$e("div",s+" leaflet-bar"),b=this.options;return this._zoomInButton=this._createButton(b.zoomInText,b.zoomInTitle,s+"-in",f,this._zoomIn),this._zoomOutButton=this._createButton(b.zoomOutText,b.zoomOutTitle,s+"-out",f,this._zoomOut),this._updateDisabled(),i.on("zoomend zoomlevelschange",this._updateDisabled,this),f},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,f,b,M){var F=$e("a",f,b);return F.innerHTML=i,F.href="#",F.title=s,F.setAttribute("role","button"),F.setAttribute("aria-label",s),la(F),Me(F,"click",$n),Me(F,"click",M,this),Me(F,"click",this._refocusOnMap,this),F},_updateDisabled:function(){var i=this._map,s="leaflet-disabled";st(this._zoomInButton,s),st(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"))}});Le.mergeOptions({zoomControl:!0}),Le.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Wl,this.addControl(this.zoomControl))});var dw=function(i){return new Wl(i)},Jf=yr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(i){var s="leaflet-control-scale",f=$e("div",s),b=this.options;return this._addScales(b,s+"-line",f),i.on(b.updateWhenIdle?"moveend":"move",this._update,this),i.whenReady(this._update,this),f},onRemove:function(i){i.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(i,s,f){i.metric&&(this._mScale=$e("div",s,f)),i.imperial&&(this._iScale=$e("div",s,f))},_update:function(){var i=this._map,s=i.getSize().y/2,f=i.distance(i.containerPointToLatLng([0,s]),i.containerPointToLatLng([this.options.maxWidth,s]));this._updateScales(f)},_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),f=s<1e3?s+" m":s/1e3+" km";this._updateScale(this._mScale,f,s/i)},_updateImperial:function(i){var s=i*3.2808399,f,b,M;s>5280?(f=s/5280,b=this._getRoundNum(f),this._updateScale(this._iScale,b+" mi",b/f)):(M=this._getRoundNum(s),this._updateScale(this._iScale,M+" ft",M/s))},_updateScale:function(i,s,f){i.style.width=Math.round(this.options.maxWidth*f)+"px",i.innerHTML=s},_getRoundNum:function(i){var s=Math.pow(10,(Math.floor(i)+"").length-1),f=i/s;return f=f>=10?10:f>=5?5:f>=3?3:f>=2?2:1,s*f}}),fw=function(i){return new Jf(i)},hw='<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>',jl=yr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ge.inlineSvg?hw+" ":"")+"Leaflet</a>"},initialize:function(i){y(this,i),this._attributions={}},onAdd:function(i){i.attributionControl=this,this._container=$e("div","leaflet-control-attribution"),la(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 f=[];this.options.prefix&&f.push(this.options.prefix),i.length&&f.push(i.join(", ")),this._container.innerHTML=f.join(' <span aria-hidden="true">|</span> ')}}});Le.mergeOptions({attributionControl:!0}),Le.addInitHook(function(){this.options.attributionControl&&new jl().addTo(this)});var pw=function(i){return new jl(i)};yr.Layers=Qf,yr.Zoom=Wl,yr.Scale=Jf,yr.Attribution=jl,ua.layers=cw,ua.zoom=dw,ua.scale=fw,ua.attribution=pw;var Mr=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}});Mr.addTo=function(i,s){return i.addHandler(s,this),this};var mw={Events:B},eh=ge.touch?"touchstart mousedown":"mousedown",cn=G.extend({options:{clickTolerance:3},initialize:function(i,s,f,b){y(this,b),this._element=i,this._dragStartTarget=s||i,this._preventOutline=f},enable:function(){this._enabled||(Me(this._dragStartTarget,eh,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(cn._dragging===this&&this.finishDrag(!0),qe(this._dragStartTarget,eh,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(i){if(this._enabled&&(this._moved=!1,!Ml(this._element,"leaflet-zoom-anim"))){if(i.touches&&i.touches.length!==1){cn._dragging===this&&this.finishDrag();return}if(!(cn._dragging||i.shiftKey||i.which!==1&&i.button!==1&&!i.touches)&&(cn._dragging=this,this._preventOutline&&Dl(this._element),Ol(),aa(),!this._moving)){this.fire("down");var s=i.touches?i.touches[0]:i,f=qf(this._element);this._startPoint=new q(s.clientX,s.clientY),this._startPos=Ln(this._element),this._parentScale=Al(f);var b=i.type==="mousedown";Me(document,b?"mousemove":"touchmove",this._onMove,this),Me(document,b?"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,f=new q(s.clientX,s.clientY)._subtract(this._startPoint);!f.x&&!f.y||Math.abs(f.x)+Math.abs(f.y)<this.options.clickTolerance||(f.x/=this._parentScale.x,f.y/=this._parentScale.y,xt(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(f),this._moving=!0,this._lastEvent=i,this._updatePosition())}},_updatePosition:function(){var i={originalEvent:this._lastEvent};this.fire("predrag",i),pt(this._element,this._newPos),this.fire("drag",i)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(i){st(document.body,"leaflet-dragging"),this._lastTarget&&(st(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),qe(document,"mousemove touchmove",this._onMove,this),qe(document,"mouseup touchend touchcancel",this._onUp,this),kl(),oa();var s=this._moved&&this._moving;this._moving=!1,cn._dragging=!1,s&&this.fire("dragend",{noInertia:i,distance:this._newPos.distanceTo(this._startPos)})}});function th(i,s,f){var b,M=[1,4,2,8],F,Y,re,ae,ce,me,xe,Ne;for(F=0,me=i.length;F<me;F++)i[F]._code=zn(i[F],s);for(re=0;re<4;re++){for(xe=M[re],b=[],F=0,me=i.length,Y=me-1;F<me;Y=F++)ae=i[F],ce=i[Y],ae._code&xe?ce._code&xe||(Ne=Oo(ce,ae,xe,s,f),Ne._code=zn(Ne,s),b.push(Ne)):(ce._code&xe&&(Ne=Oo(ce,ae,xe,s,f),Ne._code=zn(Ne,s),b.push(Ne)),b.push(ae));i=b}return i}function rh(i,s){var f,b,M,F,Y,re,ae,ce,me;if(!i||i.length===0)throw new Error("latlngs not passed");Jt(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),kt=Ne.getNorthWest().distanceTo(Ne.getSouthWest())*Ne.getNorthEast().distanceTo(Ne.getNorthWest());kt<1700&&(xe=Bl(i));var _t=i.length,er=[];for(f=0;f<_t;f++){var Ft=ne(i[f]);er.push(s.project(ne([Ft.lat-xe.lat,Ft.lng-xe.lng])))}for(re=ae=ce=0,f=0,b=_t-1;f<_t;b=f++)M=er[f],F=er[b],Y=M.y*F.x-F.y*M.x,ae+=(M.x+F.x)*Y,ce+=(M.y+F.y)*Y,re+=Y*3;re===0?me=er[0]:me=[ae/re,ce/re];var di=s.unproject(z(me));return ne([di.lat+xe.lat,di.lng+xe.lng])}function Bl(i){for(var s=0,f=0,b=0,M=0;M<i.length;M++){var F=ne(i[M]);s+=F.lat,f+=F.lng,b++}return ne([s/b,f/b])}var vw={__proto__:null,clipPolygon:th,polygonCenter:rh,centroid:Bl};function nh(i,s){if(!s||!i.length)return i.slice();var f=s*s;return i=bw(i,f),i=yw(i,f),i}function ih(i,s,f){return Math.sqrt(ca(i,s,f,!0))}function gw(i,s,f){return ca(i,s,f)}function yw(i,s){var f=i.length,b=typeof Uint8Array!="undefined"?Uint8Array:Array,M=new b(f);M[0]=M[f-1]=1,Hl(i,M,s,0,f-1);var F,Y=[];for(F=0;F<f;F++)M[F]&&Y.push(i[F]);return Y}function Hl(i,s,f,b,M){var F=0,Y,re,ae;for(re=b+1;re<=M-1;re++)ae=ca(i[re],i[b],i[M],!0),ae>F&&(Y=re,F=ae);F>f&&(s[Y]=1,Hl(i,s,f,b,Y),Hl(i,s,f,Y,M))}function bw(i,s){for(var f=[i[0]],b=1,M=0,F=i.length;b<F;b++)_w(i[b],i[M])>s&&(f.push(i[b]),M=b);return M<F-1&&f.push(i[F-1]),f}var ah;function oh(i,s,f,b,M){var F=b?ah:zn(i,f),Y=zn(s,f),re,ae,ce;for(ah=Y;;){if(!(F|Y))return[i,s];if(F&Y)return!1;re=F||Y,ae=Oo(i,s,re,f,M),ce=zn(ae,f),re===F?(i=ae,F=ce):(s=ae,Y=ce)}}function Oo(i,s,f,b,M){var F=s.x-i.x,Y=s.y-i.y,re=b.min,ae=b.max,ce,me;return f&8?(ce=i.x+F*(ae.y-i.y)/Y,me=ae.y):f&4?(ce=i.x+F*(re.y-i.y)/Y,me=re.y):f&2?(ce=ae.x,me=i.y+Y*(ae.x-i.x)/F):f&1&&(ce=re.x,me=i.y+Y*(re.x-i.x)/F),new q(ce,me,M)}function zn(i,s){var f=0;return i.x<s.min.x?f|=1:i.x>s.max.x&&(f|=2),i.y<s.min.y?f|=4:i.y>s.max.y&&(f|=8),f}function _w(i,s){var f=s.x-i.x,b=s.y-i.y;return f*f+b*b}function ca(i,s,f,b){var M=s.x,F=s.y,Y=f.x-M,re=f.y-F,ae=Y*Y+re*re,ce;return ae>0&&(ce=((i.x-M)*Y+(i.y-F)*re)/ae,ce>1?(M=f.x,F=f.y):ce>0&&(M+=Y*ce,F+=re*ce)),Y=i.x-M,re=i.y-F,b?Y*Y+re*re:new q(M,F)}function Jt(i){return!T(i[0])||typeof i[0][0]!="object"&&typeof i[0][0]!="undefined"}function sh(i){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Jt(i)}function lh(i,s){var f,b,M,F,Y,re,ae,ce;if(!i||i.length===0)throw new Error("latlngs not passed");Jt(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=Bl(i));var kt=i.length,_t=[];for(f=0;f<kt;f++){var er=ne(i[f]);_t.push(s.project(ne([er.lat-me.lat,er.lng-me.lng])))}for(f=0,b=0;f<kt-1;f++)b+=_t[f].distanceTo(_t[f+1])/2;if(b===0)ce=_t[0];else for(f=0,F=0;f<kt-1;f++)if(Y=_t[f],re=_t[f+1],M=Y.distanceTo(re),F+=M,F>b){ae=(F-b)/M,ce=[re.x-ae*(re.x-Y.x),re.y-ae*(re.y-Y.y)];break}var Ft=s.unproject(z(ce));return ne([Ft.lat+me.lat,Ft.lng+me.lng])}var ww={__proto__:null,simplify:nh,pointToSegmentDistance:ih,closestPointOnSegment:gw,clipSegment:oh,_getEdgeIntersection:Oo,_getBitCode:zn,_sqClosestPointOnSegment:ca,isFlat:Jt,_flat:sh,polylineCenter:lh},Vl={project:function(i){return new q(i.lng,i.lat)},unproject:function(i){return new Q(i.y,i.x)},bounds:new H([-180,-90],[180,90])},Ul={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,f=this.R,b=i.lat*s,M=this.R_MINOR/f,F=Math.sqrt(1-M*M),Y=F*Math.sin(b),re=Math.tan(Math.PI/4-b/2)/Math.pow((1-Y)/(1+Y),F/2);return b=-f*Math.log(Math.max(re,1e-10)),new q(i.lng*s*f,b)},unproject:function(i){for(var s=180/Math.PI,f=this.R,b=this.R_MINOR/f,M=Math.sqrt(1-b*b),F=Math.exp(-i.y/f),Y=Math.PI/2-2*Math.atan(F),re=0,ae=.1,ce;re<15&&Math.abs(ae)>1e-7;re++)ce=M*Math.sin(Y),ce=Math.pow((1-ce)/(1+ce),M/2),ae=Math.PI/2-2*Math.atan(F*ce)-Y,Y+=ae;return new Q(Y*s,i.x*s/f)}},xw={__proto__:null,LonLat:Vl,Mercator:Ul,SphericalMercator:fe},Cw=a({},se,{code:"EPSG:3395",projection:Ul,transformation:function(){var i=.5/(Math.PI*Ul.R);return oe(i,.5,-i,.5)}()}),uh=a({},se,{code:"EPSG:4326",projection:Vl,transformation:oe(1/180,1,-1/180,.5)}),Tw=a({},le,{projection:Vl,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 f=s.lng-i.lng,b=s.lat-i.lat;return Math.sqrt(f*f+b*b)},infinite:!0});le.Earth=se,le.EPSG3395=Cw,le.EPSG3857=ve,le.EPSG900913=de,le.EPSG4326=uh,le.Simple=Tw;var br=G.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 f=this.getEvents();s.on(f,this),this.once("remove",function(){s.off(f,this)},this)}this.onAdd(s),this.fire("add"),s.fire("layeradd",{layer:this})}}});Le.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 f in this._layers)i.call(s,this._layers[f]);return this},_addLayers:function(i){i=i?T(i)?i:[i]:[];for(var s=0,f=i.length;s<f;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,f=this._getZoomSpan();for(var b in this._zoomBoundLayers){var M=this._zoomBoundLayers[b].options;i=M.minZoom===void 0?i:Math.min(i,M.minZoom),s=M.maxZoom===void 0?s:Math.max(s,M.maxZoom)}this._layersMaxZoom=s===-1/0?void 0:s,this._layersMinZoom=i===1/0?void 0:i,f!==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 oi=br.extend({initialize:function(i,s){y(this,s),this._layers={};var f,b;if(i)for(f=0,b=i.length;f<b;f++)this.addLayer(i[f])},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),f,b;for(f in this._layers)b=this._layers[f],b[i]&&b[i].apply(b,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 f in this._layers)i.call(s,this._layers[f]);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)}}),Sw=function(i,s){return new oi(i,s)},Ur=oi.extend({addLayer:function(i){return this.hasLayer(i)?this:(i.addEventParent(this),oi.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),oi.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 f=this._layers[s];i.extend(f.getBounds?f.getBounds():f.getLatLng())}return i}}),Ew=function(i,s){return new Ur(i,s)},si=j.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(i){y(this,i)},createIcon:function(i){return this._createIcon("icon",i)},createShadow:function(i){return this._createIcon("shadow",i)},_createIcon:function(i,s){var f=this._getIconUrl(i);if(!f){if(i==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var b=this._createImg(f,s&&s.tagName==="IMG"?s:null);return this._setIconStyles(b,i),(this.options.crossOrigin||this.options.crossOrigin==="")&&(b.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),b},_setIconStyles:function(i,s){var f=this.options,b=f[s+"Size"];typeof b=="number"&&(b=[b,b]);var M=z(b),F=z(s==="shadow"&&f.shadowAnchor||f.iconAnchor||M&&M.divideBy(2,!0));i.className="leaflet-marker-"+s+" "+(f.className||""),F&&(i.style.marginLeft=-F.x+"px",i.style.marginTop=-F.y+"px"),M&&(i.style.width=M.x+"px",i.style.height=M.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 Mw(i){return new si(i)}var da=si.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 da.imagePath!="string"&&(da.imagePath=this._detectIconPath()),(this.options.imagePath||da.imagePath)+si.prototype._getIconUrl.call(this,i)},_stripUrl:function(i){var s=function(f,b,M){var F=b.exec(f);return F&&F[M]};return i=s(i,/^url\((['"])?(.+)\1\)$/,2),i&&s(i,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var i=$e("div","leaflet-default-icon-path",document.body),s=ia(i,"background-image")||ia(i,"backgroundImage");if(document.body.removeChild(i),s=this._stripUrl(s),s)return s;var f=document.querySelector('link[href$="leaflet.css"]');return f?f.href.substring(0,f.href.length-11-1):""}}),ch=Mr.extend({initialize:function(i){this._marker=i},addHooks:function(){var i=this._marker._icon;this._draggable||(this._draggable=new cn(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&&st(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(i){var s=this._marker,f=s._map,b=this._marker.options.autoPanSpeed,M=this._marker.options.autoPanPadding,F=Ln(s._icon),Y=f.getPixelBounds(),re=f.getPixelOrigin(),ae=ee(Y.min._subtract(re).add(M),Y.max._subtract(re).subtract(M));if(!ae.contains(F)){var ce=z((Math.max(ae.max.x,F.x)-ae.max.x)/(Y.max.x-ae.max.x)-(Math.min(ae.min.x,F.x)-ae.min.x)/(Y.min.x-ae.min.x),(Math.max(ae.max.y,F.y)-ae.max.y)/(Y.max.y-ae.max.y)-(Math.min(ae.min.y,F.y)-ae.min.y)/(Y.min.y-ae.min.y)).multiplyBy(b);f.panBy(ce,{animate:!1}),this._draggable._newPos._add(ce),this._draggable._startPos._add(ce),pt(s._icon,this._draggable._newPos),this._onDrag(i),this._panRequest=N(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&&(k(this._panRequest),this._panRequest=N(this._adjustPan.bind(this,i)))},_onDrag:function(i){var s=this._marker,f=s._shadow,b=Ln(s._icon),M=s._map.layerPointToLatLng(b);f&&pt(f,b),s._latlng=M,i.latlng=M,i.oldLatLng=this._oldLatLng,s.fire("move",i).fire("drag",i)},_onDragEnd:function(i){k(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",i)}}),ko=br.extend({options:{icon:new da,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){y(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"),f=i.icon.createIcon(this._icon),b=!1;f!==this._icon&&(this._icon&&this._removeIcon(),b=!0,i.title&&(f.title=i.title),f.tagName==="IMG"&&(f.alt=i.alt||"")),Re(f,s),i.keyboard&&(f.tabIndex="0",f.setAttribute("role","button")),this._icon=f,i.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Me(f,"focus",this._panOnFocus,this);var M=i.icon.createShadow(this._shadow),F=!1;M!==this._shadow&&(this._removeShadow(),F=!0),M&&(Re(M,s),M.alt=""),this._shadow=M,i.opacity<1&&this._updateOpacity(),b&&this.getPane().appendChild(this._icon),this._initInteraction(),M&&F&&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),Qe(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Qe(this._shadow),this._shadow=null},_setPos:function(i){this._icon&&pt(this._icon,i),this._shadow&&pt(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),ch)){var i=this.options.draggable;this.dragging&&(i=this.dragging.enabled(),this.dragging.disable()),this.dragging=new ch(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&&Qt(this._icon,i),this._shadow&&Qt(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,f=s.iconSize?z(s.iconSize):z(0,0),b=s.iconAnchor?z(s.iconAnchor):z(0,0);i.panInside(this._latlng,{paddingTopLeft:b,paddingBottomRight:f.subtract(b)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Pw(i,s){return new ko(i,s)}var dn=br.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 y(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)}}),No=dn.extend({options:{fill:!0,radius:10},initialize:function(i,s){y(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 dn.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,f=this._clickTolerance(),b=[i+f,s+f];this._pxBounds=new H(this._point.subtract(b),this._point.add(b))},_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 Rw(i,s){return new No(i,s)}var ql=No.extend({initialize:function(i,s,f){if(typeof s=="number"&&(s=a({},f,{radius:s})),y(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:dn.prototype.setStyle,_project:function(){var i=this._latlng.lng,s=this._latlng.lat,f=this._map,b=f.options.crs;if(b.distance===se.distance){var M=Math.PI/180,F=this._mRadius/se.R/M,Y=f.project([s+F,i]),re=f.project([s-F,i]),ae=Y.add(re).divideBy(2),ce=f.unproject(ae).lat,me=Math.acos((Math.cos(F*M)-Math.sin(s*M)*Math.sin(ce*M))/(Math.cos(s*M)*Math.cos(ce*M)))/M;(isNaN(me)||me===0)&&(me=F/Math.cos(Math.PI/180*s)),this._point=ae.subtract(f.getPixelOrigin()),this._radius=isNaN(me)?0:ae.x-f.project([ce,i-me]).x,this._radiusY=ae.y-Y.y}else{var xe=b.unproject(b.project(this._latlng).subtract([this._mRadius,0]));this._point=f.latLngToLayerPoint(this._latlng),this._radius=this._point.x-f.latLngToLayerPoint(xe).x}this._updateBounds()}});function Ow(i,s,f){return new ql(i,s,f)}var qr=dn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(i,s){y(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,f=null,b=ca,M,F,Y=0,re=this._parts.length;Y<re;Y++)for(var ae=this._parts[Y],ce=1,me=ae.length;ce<me;ce++){M=ae[ce-1],F=ae[ce];var xe=b(i,M,F,!0);xe<s&&(s=xe,f=b(i,M,F))}return f&&(f.distance=Math.sqrt(s)),f},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return lh(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 Jt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(i){for(var s=[],f=Jt(i),b=0,M=i.length;b<M;b++)f?(s[b]=ne(i[b]),this._bounds.extend(s[b])):s[b]=this._convertLatLngs(i[b]);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,f){var b=i[0]instanceof Q,M=i.length,F,Y;if(b){for(Y=[],F=0;F<M;F++)Y[F]=this._map.latLngToLayerPoint(i[F]),f.extend(Y[F]);s.push(Y)}else for(F=0;F<M;F++)this._projectLatlngs(i[F],s,f)},_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,f,b,M,F,Y,re,ae;for(f=0,M=0,F=this._rings.length;f<F;f++)for(ae=this._rings[f],b=0,Y=ae.length;b<Y-1;b++)re=oh(ae[b],ae[b+1],i,b,!0),re&&(s[M]=s[M]||[],s[M].push(re[0]),(re[1]!==ae[b+1]||b===Y-2)&&(s[M].push(re[1]),M++))}},_simplifyPoints:function(){for(var i=this._parts,s=this.options.smoothFactor,f=0,b=i.length;f<b;f++)i[f]=nh(i[f],s)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(i,s){var f,b,M,F,Y,re,ae=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(f=0,F=this._parts.length;f<F;f++)for(re=this._parts[f],b=0,Y=re.length,M=Y-1;b<Y;M=b++)if(!(!s&&b===0)&&ih(i,re[M],re[b])<=ae)return!0;return!1}});function kw(i,s){return new qr(i,s)}qr._flat=sh;var li=qr.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 rh(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(i){var s=qr.prototype._convertLatLngs.call(this,i),f=s.length;return f>=2&&s[0]instanceof Q&&s[0].equals(s[f-1])&&s.pop(),s},_setLatLngs:function(i){qr.prototype._setLatLngs.call(this,i),Jt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Jt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var i=this._renderer._bounds,s=this.options.weight,f=new q(s,s);if(i=new H(i.min.subtract(f),i.max.add(f)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}for(var b=0,M=this._rings.length,F;b<M;b++)F=th(this._rings[b],i,!0),F.length&&this._parts.push(F)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(i){var s=!1,f,b,M,F,Y,re,ae,ce;if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(F=0,ae=this._parts.length;F<ae;F++)for(f=this._parts[F],Y=0,ce=f.length,re=ce-1;Y<ce;re=Y++)b=f[Y],M=f[re],b.y>i.y!=M.y>i.y&&i.x<(M.x-b.x)*(i.y-b.y)/(M.y-b.y)+b.x&&(s=!s);return s||qr.prototype._containsPoint.call(this,i,!0)}});function Nw(i,s){return new li(i,s)}var Gr=Ur.extend({initialize:function(i,s){y(this,s),this._layers={},i&&this.addData(i)},addData:function(i){var s=T(i)?i:i.features,f,b,M;if(s){for(f=0,b=s.length;f<b;f++)M=s[f],(M.geometries||M.geometry||M.features||M.coordinates)&&this.addData(M);return this}var F=this.options;if(F.filter&&!F.filter(i))return this;var Y=Do(i,F);return Y?(Y.feature=Io(i),Y.defaultOptions=Y.options,this.resetStyle(Y),F.onEachFeature&&F.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 Do(i,s){var f=i.type==="Feature"?i.geometry:i,b=f?f.coordinates:null,M=[],F=s&&s.pointToLayer,Y=s&&s.coordsToLatLng||Gl,re,ae,ce,me;if(!b&&!f)return null;switch(f.type){case"Point":return re=Y(b),dh(F,i,re,s);case"MultiPoint":for(ce=0,me=b.length;ce<me;ce++)re=Y(b[ce]),M.push(dh(F,i,re,s));return new Ur(M);case"LineString":case"MultiLineString":return ae=Ao(b,f.type==="LineString"?0:1,Y),new qr(ae,s);case"Polygon":case"MultiPolygon":return ae=Ao(b,f.type==="Polygon"?1:2,Y),new li(ae,s);case"GeometryCollection":for(ce=0,me=f.geometries.length;ce<me;ce++){var xe=Do({geometry:f.geometries[ce],type:"Feature",properties:i.properties},s);xe&&M.push(xe)}return new Ur(M);case"FeatureCollection":for(ce=0,me=f.features.length;ce<me;ce++){var Ne=Do(f.features[ce],s);Ne&&M.push(Ne)}return new Ur(M);default:throw new Error("Invalid GeoJSON object.")}}function dh(i,s,f,b){return i?i(s,f):new ko(f,b&&b.markersInheritOptions&&b)}function Gl(i){return new Q(i[1],i[0],i[2])}function Ao(i,s,f){for(var b=[],M=0,F=i.length,Y;M<F;M++)Y=s?Ao(i[M],s-1,f):(f||Gl)(i[M]),b.push(Y);return b}function Yl(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 Lo(i,s,f,b){for(var M=[],F=0,Y=i.length;F<Y;F++)M.push(s?Lo(i[F],Jt(i[F])?0:s-1,f,b):Yl(i[F],b));return!s&&f&&M.length>0&&M.push(M[0].slice()),M}function ui(i,s){return i.feature?a({},i.feature,{geometry:s}):Io(s)}function Io(i){return i.type==="Feature"||i.type==="FeatureCollection"?i:{type:"Feature",properties:{},geometry:i}}var Xl={toGeoJSON:function(i){return ui(this,{type:"Point",coordinates:Yl(this.getLatLng(),i)})}};ko.include(Xl),ql.include(Xl),No.include(Xl),qr.include({toGeoJSON:function(i){var s=!Jt(this._latlngs),f=Lo(this._latlngs,s?1:0,!1,i);return ui(this,{type:(s?"Multi":"")+"LineString",coordinates:f})}}),li.include({toGeoJSON:function(i){var s=!Jt(this._latlngs),f=s&&!Jt(this._latlngs[0]),b=Lo(this._latlngs,f?2:s?1:0,!0,i);return s||(b=[b]),ui(this,{type:(f?"Multi":"")+"Polygon",coordinates:b})}}),oi.include({toMultiPoint:function(i){var s=[];return this.eachLayer(function(f){s.push(f.toGeoJSON(i).geometry.coordinates)}),ui(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 f=s==="GeometryCollection",b=[];return this.eachLayer(function(M){if(M.toGeoJSON){var F=M.toGeoJSON(i);if(f)b.push(F.geometry);else{var Y=Io(F);Y.type==="FeatureCollection"?b.push.apply(b,Y.features):b.push(Y)}}}),f?ui(this,{geometries:b,type:"GeometryCollection"}):{type:"FeatureCollection",features:b}}});function fh(i,s){return new Gr(i,s)}var Dw=fh,$o=br.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(i,s,f){this._url=i,this._bounds=K(s),y(this,f)},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(){Qe(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&&ii(this._image),this},bringToBack:function(){return this._map&&ai(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:$e("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),f=this._map._latLngBoundsToNewLayerBounds(this._bounds,i.zoom,i.center).min;An(this._image,f,s)},_reset:function(){var i=this._image,s=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),f=s.getSize();pt(i,s.min),i.style.width=f.x+"px",i.style.height=f.y+"px"},_updateOpacity:function(){Qt(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()}}),Aw=function(i,s,f){return new $o(i,s,f)},hh=$o.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:$e("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 f=s.getElementsByTagName("source"),b=[],M=0;M<f.length;M++)b.push(f[M].src);this._url=f.length>0?b:[s.src];return}T(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 F=0;F<this._url.length;F++){var Y=$e("source");Y.src=this._url[F],s.appendChild(Y)}}});function Lw(i,s,f){return new hh(i,s,f)}var ph=$o.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 Iw(i,s,f){return new ph(i,s,f)}var Pr=br.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(i,s){i&&(i instanceof Q||T(i))?(this._latlng=ne(i),y(this,s)):(y(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&&Qt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),i._fadeAnimated&&Qt(this._container,1),this.bringToFront(),this.options.interactive&&(Re(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(i){i._fadeAnimated?(Qt(this._container,0),this._removeTimeout=setTimeout(l(Qe,void 0,this._container),200)):Qe(this._container),this.options.interactive&&(st(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&&ii(this._container),this},bringToBack:function(){return this._map&&ai(this._container),this},_prepareOpen:function(i){var s=this._source;if(!s._map)return!1;if(s instanceof Ur){s=null;var f=this._source._layers;for(var b in f)if(f[b]._map){s=f[b];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=z(this.options.offset),f=this._getAnchor();this._zoomAnimated?pt(this._container,i.add(f)):s=s.add(i).add(f);var b=this._containerBottom=-s.y,M=this._containerLeft=-Math.round(this._containerWidth/2)+s.x;this._container.style.bottom=b+"px",this._container.style.left=M+"px"}},_getAnchor:function(){return[0,0]}});Le.include({_initOverlay:function(i,s,f,b){var M=s;return M instanceof i||(M=new i(b).setContent(s)),f&&M.setLatLng(f),M}}),br.include({_initOverlay:function(i,s,f,b){var M=f;return M instanceof i?(y(M,b),M._source=this):(M=s&&!b?s:new i(b,this),M.setContent(f)),M}});var zo=Pr.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,Pr.prototype.openOn.call(this,i)},onAdd:function(i){Pr.prototype.onAdd.call(this,i),i.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof dn||this._source.on("preclick",In))},onRemove:function(i){Pr.prototype.onRemove.call(this,i),i.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof dn||this._source.off("preclick",In))},getEvents:function(){var i=Pr.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=$e("div",i+" "+(this.options.className||"")+" leaflet-zoom-animated"),f=this._wrapper=$e("div",i+"-content-wrapper",s);if(this._contentNode=$e("div",i+"-content",f),la(s),zl(this._contentNode),Me(s,"contextmenu",In),this._tipContainer=$e("div",i+"-tip-container",s),this._tip=$e("div",i+"-tip",this._tipContainer),this.options.closeButton){var b=this._closeButton=$e("a",i+"-close-button",s);b.setAttribute("role","button"),b.setAttribute("aria-label","Close popup"),b.href="#close",b.innerHTML='<span aria-hidden="true">×</span>',Me(b,"click",function(M){xt(M),this.close()},this)}},_updateLayout:function(){var i=this._contentNode,s=i.style;s.width="",s.whiteSpace="nowrap";var f=i.offsetWidth;f=Math.min(f,this.options.maxWidth),f=Math.max(f,this.options.minWidth),s.width=f+1+"px",s.whiteSpace="",s.height="";var b=i.offsetHeight,M=this.options.maxHeight,F="leaflet-popup-scrolled";M&&b>M?(s.height=M+"px",Re(i,F)):st(i,F),this._containerWidth=this._container.offsetWidth},_animateZoom:function(i){var s=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center),f=this._getAnchor();pt(this._container,s.add(f))},_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(ia(this._container,"marginBottom"),10)||0,f=this._container.offsetHeight+s,b=this._containerWidth,M=new q(this._containerLeft,-f-this._containerBottom);M._add(Ln(this._container));var F=i.layerPointToContainerPoint(M),Y=z(this.options.autoPanPadding),re=z(this.options.autoPanPaddingTopLeft||Y),ae=z(this.options.autoPanPaddingBottomRight||Y),ce=i.getSize(),me=0,xe=0;F.x+b+ae.x>ce.x&&(me=F.x+b-ce.x+ae.x),F.x-me-re.x<0&&(me=F.x-re.x),F.y+f+ae.y>ce.y&&(xe=F.y+f-ce.y+ae.y),F.y-xe-re.y<0&&(xe=F.y-re.y),(me||xe)&&(this.options.keepInView&&(this._autopanning=!0),i.fire("autopanstart").panBy([me,xe]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),$w=function(i,s){return new zo(i,s)};Le.mergeOptions({closePopupOnClick:!0}),Le.include({openPopup:function(i,s,f){return this._initOverlay(zo,i,s,f).openOn(this),this},closePopup:function(i){return i=arguments.length?i:this._popup,i&&i.close(),this}}),br.include({bindPopup:function(i,s){return this._popup=this._initOverlay(zo,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 Ur||(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)){$n(i);var s=i.layer||i.target;if(this._popup._source===s&&!(s instanceof dn)){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 Fo=Pr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(i){Pr.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){Pr.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=Pr.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=$e("div",s),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(i){var s,f,b=this._map,M=this._container,F=b.latLngToContainerPoint(b.getCenter()),Y=b.layerPointToContainerPoint(i),re=this.options.direction,ae=M.offsetWidth,ce=M.offsetHeight,me=z(this.options.offset),xe=this._getAnchor();re==="top"?(s=ae/2,f=ce):re==="bottom"?(s=ae/2,f=0):re==="center"?(s=ae/2,f=ce/2):re==="right"?(s=0,f=ce/2):re==="left"?(s=ae,f=ce/2):Y.x<F.x?(re="right",s=0,f=ce/2):(re="left",s=ae+(me.x+xe.x)*2,f=ce/2),i=i.subtract(z(s,f,!0)).add(me).add(xe),st(M,"leaflet-tooltip-right"),st(M,"leaflet-tooltip-left"),st(M,"leaflet-tooltip-top"),st(M,"leaflet-tooltip-bottom"),Re(M,"leaflet-tooltip-"+re),pt(M,i)},_updatePosition:function(){var i=this._map.latLngToLayerPoint(this._latlng);this._setPosition(i)},setOpacity:function(i){this.options.opacity=i,this._container&&Qt(this._container,i)},_animateZoom:function(i){var s=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center);this._setPosition(s)},_getAnchor:function(){return z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),zw=function(i,s){return new Fo(i,s)};Le.include({openTooltip:function(i,s,f){return this._initOverlay(Fo,i,s,f).openOn(this),this},closeTooltip:function(i){return i.close(),this}}),br.include({bindTooltip:function(i,s){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Fo,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",f={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?f.add=this._openTooltip:(f.mouseover=this._openTooltip,f.mouseout=this.closeTooltip,f.click=this._openTooltip,this._map?this._addFocusListeners():f.add=this._addFocusListeners),this._tooltip.options.sticky&&(f.mousemove=this._moveTooltip),this[s](f),this._tooltipHandlersAdded=!i}},openTooltip:function(i){return this._tooltip&&(this instanceof Ur||(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&&(Me(s,"focus",function(){this._tooltip._source=i,this.openTooltip()},this),Me(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,f,b;this._tooltip.options.sticky&&i.originalEvent&&(f=this._map.mouseEventToContainerPoint(i.originalEvent),b=this._map.containerPointToLayerPoint(f),s=this._map.layerPointToLatLng(b)),this._tooltip.setLatLng(s)}});var mh=si.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"),f=this.options;if(f.html instanceof Element?(So(s),s.appendChild(f.html)):s.innerHTML=f.html!==!1?f.html:"",f.bgPos){var b=z(f.bgPos);s.style.backgroundPosition=-b.x+"px "+-b.y+"px"}return this._setIconStyles(s,"icon"),s},createShadow:function(){return null}});function Fw(i){return new mh(i)}si.Default=da;var fa=br.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){y(this,i)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(i){i._addZoomLimit(this)},onRemove:function(i){this._removeAllTiles(),Qe(this._container),i._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ii(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ai(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=d(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,f=-i(-1/0,1/0),b=0,M=s.length,F;b<M;b++)F=s[b].style.zIndex,s[b]!==this._container&&F&&(f=i(f,+F));isFinite(f)&&(this.options.zIndex=f+i(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ge.ielt9){Qt(this._container,this.options.opacity);var i=+new Date,s=!1,f=!1;for(var b in this._tiles){var M=this._tiles[b];if(!(!M.current||!M.loaded)){var F=Math.min(1,(i-M.loaded)/200);Qt(M.el,F),F<1?s=!0:(M.active?f=!0:this._onOpaqueTile(M),M.active=!0)}}f&&!this._noPrune&&this._pruneTiles(),s&&(k(this._fadeFrame),this._fadeFrame=N(this._updateOpacity,this))}},_onOpaqueTile:m,_initContainer:function(){this._container||(this._container=$e("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 f in this._levels)f=Number(f),this._levels[f].el.children.length||f===i?(this._levels[f].el.style.zIndex=s-Math.abs(i-f),this._onUpdateLevel(f)):(Qe(this._levels[f].el),this._removeTilesAtZoom(f),this._onRemoveLevel(f),delete this._levels[f]);var b=this._levels[i],M=this._map;return b||(b=this._levels[i]={},b.el=$e("div","leaflet-tile-container leaflet-zoom-animated",this._container),b.el.style.zIndex=s,b.origin=M.project(M.unproject(M.getPixelOrigin()),i).round(),b.zoom=i,this._setZoomTransform(b,M.getCenter(),M.getZoom()),this._onCreateLevel(b)),this._level=b,b}},_onUpdateLevel:m,_onRemoveLevel:m,_onCreateLevel:m,_pruneTiles:function(){if(this._map){var i,s,f=this._map.getZoom();if(f>this.options.maxZoom||f<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 b=s.coords;this._retainParent(b.x,b.y,b.z,b.z-5)||this._retainChildren(b.x,b.y,b.z,b.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)Qe(this._levels[i].el),this._onRemoveLevel(Number(i)),delete this._levels[i];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(i,s,f,b){var M=Math.floor(i/2),F=Math.floor(s/2),Y=f-1,re=new q(+M,+F);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>b?this._retainParent(M,F,Y,b):!1)},_retainChildren:function(i,s,f,b){for(var M=2*i;M<2*i+2;M++)for(var F=2*s;F<2*s+2;F++){var Y=new q(M,F);Y.z=f+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);f+1<b&&this._retainChildren(M,F,f+1,b)}},_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,f,b){var M=Math.round(s);this.options.maxZoom!==void 0&&M>this.options.maxZoom||this.options.minZoom!==void 0&&M<this.options.minZoom?M=void 0:M=this._clampZoom(M);var F=this.options.updateWhenZooming&&M!==this._tileZoom;(!b||F)&&(this._tileZoom=M,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),M!==void 0&&this._update(i),f||this._pruneTiles(),this._noPrune=!!f),this._setZoomTransforms(i,s)},_setZoomTransforms:function(i,s){for(var f in this._levels)this._setZoomTransform(this._levels[f],i,s)},_setZoomTransform:function(i,s,f){var b=this._map.getZoomScale(f,i.zoom),M=i.origin.multiplyBy(b).subtract(this._map._getNewPixelOrigin(s,f)).round();ge.any3d?An(i.el,M,b):pt(i.el,M)},_resetGrid:function(){var i=this._map,s=i.options.crs,f=this._tileSize=this.getTileSize(),b=this._tileZoom,M=this._map.getPixelWorldBounds(this._tileZoom);M&&(this._globalTileRange=this._pxBoundsToTileRange(M)),this._wrapX=s.wrapLng&&!this.options.noWrap&&[Math.floor(i.project([0,s.wrapLng[0]],b).x/f.x),Math.ceil(i.project([0,s.wrapLng[1]],b).x/f.y)],this._wrapY=s.wrapLat&&!this.options.noWrap&&[Math.floor(i.project([s.wrapLat[0],0],b).y/f.x),Math.ceil(i.project([s.wrapLat[1],0],b).y/f.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(i){var s=this._map,f=s._animatingZoom?Math.max(s._animateToZoom,s.getZoom()):s.getZoom(),b=s.getZoomScale(f,this._tileZoom),M=s.project(i,this._tileZoom).floor(),F=s.getSize().divideBy(b*2);return new H(M.subtract(F),M.add(F))},_update:function(i){var s=this._map;if(s){var f=this._clampZoom(s.getZoom());if(i===void 0&&(i=s.getCenter()),this._tileZoom!==void 0){var b=this._getTiledPixelBounds(i),M=this._pxBoundsToTileRange(b),F=M.getCenter(),Y=[],re=this.options.keepBuffer,ae=new H(M.getBottomLeft().subtract([re,-re]),M.getTopRight().add([re,-re]));if(!(isFinite(M.min.x)&&isFinite(M.min.y)&&isFinite(M.max.x)&&isFinite(M.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(f-this._tileZoom)>1){this._setView(i,f);return}for(var xe=M.min.y;xe<=M.max.y;xe++)for(var Ne=M.min.x;Ne<=M.max.x;Ne++){var kt=new q(Ne,xe);if(kt.z=this._tileZoom,!!this._isValidTile(kt)){var _t=this._tiles[this._tileCoordsToKey(kt)];_t?_t.current=!0:Y.push(kt)}}if(Y.sort(function(Ft,di){return Ft.distanceTo(F)-di.distanceTo(F)}),Y.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var er=document.createDocumentFragment();for(Ne=0;Ne<Y.length;Ne++)this._addTile(Y[Ne],er);this._level.el.appendChild(er)}}}},_isValidTile:function(i){var s=this._map.options.crs;if(!s.infinite){var f=this._globalTileRange;if(!s.wrapLng&&(i.x<f.min.x||i.x>f.max.x)||!s.wrapLat&&(i.y<f.min.y||i.y>f.max.y))return!1}if(!this.options.bounds)return!0;var b=this._tileCoordsToBounds(i);return K(this.options.bounds).overlaps(b)},_keyToBounds:function(i){return this._tileCoordsToBounds(this._keyToTileCoords(i))},_tileCoordsToNwSe:function(i){var s=this._map,f=this.getTileSize(),b=i.scaleBy(f),M=b.add(f),F=s.unproject(b,i.z),Y=s.unproject(M,i.z);return[F,Y]},_tileCoordsToBounds:function(i){var s=this._tileCoordsToNwSe(i),f=new X(s[0],s[1]);return this.options.noWrap||(f=this._map.wrapLatLngBounds(f)),f},_tileCoordsToKey:function(i){return i.x+":"+i.y+":"+i.z},_keyToTileCoords:function(i){var s=i.split(":"),f=new q(+s[0],+s[1]);return f.z=+s[2],f},_removeTile:function(i){var s=this._tiles[i];s&&(Qe(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&&Qt(i,this.options.opacity)},_addTile:function(i,s){var f=this._getTilePos(i),b=this._tileCoordsToKey(i),M=this.createTile(this._wrapCoords(i),l(this._tileReady,this,i));this._initTile(M),this.createTile.length<2&&N(l(this._tileReady,this,i,null,M)),pt(M,f),this._tiles[b]={el:M,coords:i,current:!0},s.appendChild(M),this.fire("tileloadstart",{tile:M,coords:i})},_tileReady:function(i,s,f){s&&this.fire("tileerror",{error:s,tile:f,coords:i});var b=this._tileCoordsToKey(i);f=this._tiles[b],f&&(f.loaded=+new Date,this._map._fadeAnimated?(Qt(f.el,0),k(this._fadeFrame),this._fadeFrame=N(this._updateOpacity,this)):(f.active=!0,this._pruneTiles()),s||(Re(f.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:f.el,coords:i})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ge.ielt9||!this._map._fadeAnimated?N(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 Ww(i){return new fa(i)}var ci=fa.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=y(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 f=document.createElement("img");return Me(f,"load",l(this._tileOnLoad,this,s,f)),Me(f,"error",l(this._tileOnError,this,s,f)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(f.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(f.referrerPolicy=this.options.referrerPolicy),f.alt="",f.src=this.getTileUrl(i),f},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 f=this._globalTileRange.max.y-i.y;this.options.tms&&(s.y=f),s["-y"]=f}return S(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,f){var b=this.options.errorTileUrl;b&&s.getAttribute("src")!==b&&(s.src=b),i(f,s)},_onTileRemove:function(i){i.tile.onload=null},_getZoomForUrl:function(){var i=this._tileZoom,s=this.options.maxZoom,f=this.options.zoomReverse,b=this.options.zoomOffset;return f&&(i=s-i),i+b},_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=x;var f=this._tiles[i].coords;Qe(s),delete this._tiles[i],this.fire("tileabort",{tile:s,coords:f})}},_removeTile:function(i){var s=this._tiles[i];if(s)return s.el.setAttribute("src",x),fa.prototype._removeTile.call(this,i)},_tileReady:function(i,s,f){if(!(!this._map||f&&f.getAttribute("src")===x))return fa.prototype._tileReady.call(this,i,s,f)}});function vh(i,s){return new ci(i,s)}var gh=ci.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 f=a({},this.defaultWmsParams);for(var b in s)b in this.options||(f[b]=s[b]);s=y(this,s);var M=s.detectRetina&&ge.retina?2:1,F=this.getTileSize();f.width=F.x*M,f.height=F.y*M,this.wmsParams=f},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,ci.prototype.onAdd.call(this,i)},getTileUrl:function(i){var s=this._tileCoordsToNwSe(i),f=this._crs,b=ee(f.project(s[0]),f.project(s[1])),M=b.min,F=b.max,Y=(this._wmsVersion>=1.3&&this._crs===uh?[M.y,M.x,F.y,F.x]:[M.x,M.y,F.x,F.y]).join(","),re=ci.prototype.getTileUrl.call(this,i);return re+w(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 jw(i,s){return new gh(i,s)}ci.WMS=gh,vh.wms=jw;var Yr=br.extend({options:{padding:.1},initialize:function(i){y(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 f=this._map.getZoomScale(s,this._zoom),b=this._map.getSize().multiplyBy(.5+this.options.padding),M=this._map.project(this._center,s),F=b.multiplyBy(-f).add(M).subtract(this._map._getNewPixelOrigin(i,s));ge.any3d?An(this._container,F,f):pt(this._container,F)},_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(),f=this._map.containerPointToLayerPoint(s.multiplyBy(-i)).round();this._bounds=new H(f,f.add(s.multiplyBy(1+i*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),yh=Yr.extend({options:{tolerance:0},getEvents:function(){var i=Yr.prototype.getEvents.call(this);return i.viewprereset=this._onViewPreReset,i},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Yr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var i=this._container=document.createElement("canvas");Me(i,"mousemove",this._onMouseMove,this),Me(i,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Me(i,"mouseout",this._handleMouseOut,this),i._leaflet_disable_events=!0,this._ctx=i.getContext("2d")},_destroyContainer:function(){k(this._redrawRequest),delete this._ctx,Qe(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)){Yr.prototype._update.call(this);var i=this._bounds,s=this._container,f=i.getSize(),b=ge.retina?2:1;pt(s,i.min),s.width=b*f.x,s.height=b*f.y,s.style.width=f.x+"px",s.style.height=f.y+"px",ge.retina&&this._ctx.scale(2,2),this._ctx.translate(-i.min.x,-i.min.y),this.fire("update")}},_reset:function(){Yr.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,f=s.next,b=s.prev;f?f.prev=b:this._drawLast=b,b?b.next=f:this._drawFirst=f,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(/[, ]+/),f=[],b,M;for(M=0;M<s.length;M++){if(b=Number(s[M]),isNaN(b))return;f.push(b)}i.options._dashArray=f}else i.options._dashArray=i.options.dashArray},_requestRedraw:function(i){this._map&&(this._extendRedrawBounds(i),this._redrawRequest=this._redrawRequest||N(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 f=s.getSize();this._ctx.beginPath(),this._ctx.rect(s.min.x,s.min.y,f.x,f.y),this._ctx.clip()}this._drawing=!0;for(var b=this._drawFirst;b;b=b.next)i=b.layer,(!s||i._pxBounds&&i._pxBounds.intersects(s))&&i._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(i,s){if(this._drawing){var f,b,M,F,Y=i._parts,re=Y.length,ae=this._ctx;if(re){for(ae.beginPath(),f=0;f<re;f++){for(b=0,M=Y[f].length;b<M;b++)F=Y[f][b],ae[b?"lineTo":"moveTo"](F.x,F.y);s&&ae.closePath()}this._fillStroke(ae,i)}}},_updateCircle:function(i){if(!(!this._drawing||i._empty())){var s=i._point,f=this._ctx,b=Math.max(Math.round(i._radius),1),M=(Math.max(Math.round(i._radiusY),1)||b)/b;M!==1&&(f.save(),f.scale(1,M)),f.beginPath(),f.arc(s.x,s.y/M,b,0,Math.PI*2,!1),M!==1&&f.restore(),this._fillStroke(f,i)}},_fillStroke:function(i,s){var f=s.options;f.fill&&(i.globalAlpha=f.fillOpacity,i.fillStyle=f.fillColor||f.color,i.fill(f.fillRule||"evenodd")),f.stroke&&f.weight!==0&&(i.setLineDash&&i.setLineDash(s.options&&s.options._dashArray||[]),i.globalAlpha=f.opacity,i.lineWidth=f.weight,i.strokeStyle=f.color,i.lineCap=f.lineCap,i.lineJoin=f.lineJoin,i.stroke())},_onClick:function(i){for(var s=this._map.mouseEventToLayerPoint(i),f,b,M=this._drawFirst;M;M=M.next)f=M.layer,f.options.interactive&&f._containsPoint(s)&&(!(i.type==="click"||i.type==="preclick")||!this._map._draggableMoved(f))&&(b=f);this._fireEvent(b?[b]:!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&&(st(this._container,"leaflet-interactive"),this._fireEvent([s],i,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(i,s){if(!this._mouseHoverThrottled){for(var f,b,M=this._drawFirst;M;M=M.next)f=M.layer,f.options.interactive&&f._containsPoint(s)&&(b=f);b!==this._hoveredLayer&&(this._handleMouseOut(i),b&&(Re(this._container,"leaflet-interactive"),this._fireEvent([b],i,"mouseover"),this._hoveredLayer=b)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,i),this._mouseHoverThrottled=!0,setTimeout(l(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(i,s,f){this._map._fireDOMEvent(s,f||s.type,i)},_bringToFront:function(i){var s=i._order;if(s){var f=s.next,b=s.prev;if(f)f.prev=b;else return;b?b.next=f:f&&(this._drawFirst=f),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 f=s.next,b=s.prev;if(b)b.next=f;else return;f?f.prev=b:b&&(this._drawLast=b),s.prev=null,s.next=this._drawFirst,this._drawFirst.prev=s,this._drawFirst=s,this._requestRedraw(i)}}});function bh(i){return ge.canvas?new yh(i):null}var ha=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">')}}(),Bw={_initContainer:function(){this._container=$e("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Yr.prototype._update.call(this),this.fire("update"))},_initPath:function(i){var s=i._container=ha("shape");Re(s,"leaflet-vml-shape "+(this.options.className||"")),s.coordsize="1 1",i._path=ha("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;Qe(s),i.removeInteractiveTarget(s),delete this._layers[c(i)]},_updateStyle:function(i){var s=i._stroke,f=i._fill,b=i.options,M=i._container;M.stroked=!!b.stroke,M.filled=!!b.fill,b.stroke?(s||(s=i._stroke=ha("stroke")),M.appendChild(s),s.weight=b.weight+"px",s.color=b.color,s.opacity=b.opacity,b.dashArray?s.dashStyle=T(b.dashArray)?b.dashArray.join(" "):b.dashArray.replace(/( *, *)/g," "):s.dashStyle="",s.endcap=b.lineCap.replace("butt","flat"),s.joinstyle=b.lineJoin):s&&(M.removeChild(s),i._stroke=null),b.fill?(f||(f=i._fill=ha("fill")),M.appendChild(f),f.color=b.fillColor||b.color,f.opacity=b.fillOpacity):f&&(M.removeChild(f),i._fill=null)},_updateCircle:function(i){var s=i._point.round(),f=Math.round(i._radius),b=Math.round(i._radiusY||f);this._setPath(i,i._empty()?"M0 0":"AL "+s.x+","+s.y+" "+f+","+b+" 0,"+65535*360)},_setPath:function(i,s){i._path.v=s},_bringToFront:function(i){ii(i._container)},_bringToBack:function(i){ai(i._container)}},Wo=ge.vml?ha:_e,pa=Yr.extend({_initContainer:function(){this._container=Wo("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Wo("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Qe(this._container),qe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Yr.prototype._update.call(this);var i=this._bounds,s=i.getSize(),f=this._container;(!this._svgSize||!this._svgSize.equals(s))&&(this._svgSize=s,f.setAttribute("width",s.x),f.setAttribute("height",s.y)),pt(f,i.min),f.setAttribute("viewBox",[i.min.x,i.min.y,s.x,s.y].join(" ")),this.fire("update")}},_initPath:function(i){var s=i._path=Wo("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){Qe(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,f=i.options;s&&(f.stroke?(s.setAttribute("stroke",f.color),s.setAttribute("stroke-opacity",f.opacity),s.setAttribute("stroke-width",f.weight),s.setAttribute("stroke-linecap",f.lineCap),s.setAttribute("stroke-linejoin",f.lineJoin),f.dashArray?s.setAttribute("stroke-dasharray",f.dashArray):s.removeAttribute("stroke-dasharray"),f.dashOffset?s.setAttribute("stroke-dashoffset",f.dashOffset):s.removeAttribute("stroke-dashoffset")):s.setAttribute("stroke","none"),f.fill?(s.setAttribute("fill",f.fillColor||f.color),s.setAttribute("fill-opacity",f.fillOpacity),s.setAttribute("fill-rule",f.fillRule||"evenodd")):s.setAttribute("fill","none"))},_updatePoly:function(i,s){this._setPath(i,we(i._parts,s))},_updateCircle:function(i){var s=i._point,f=Math.max(Math.round(i._radius),1),b=Math.max(Math.round(i._radiusY),1)||f,M="a"+f+","+b+" 0 1,0 ",F=i._empty()?"M0 0":"M"+(s.x-f)+","+s.y+M+f*2+",0 "+M+-f*2+",0 ";this._setPath(i,F)},_setPath:function(i,s){i._path.setAttribute("d",s)},_bringToFront:function(i){ii(i._path)},_bringToBack:function(i){ai(i._path)}});ge.vml&&pa.include(Bw);function _h(i){return ge.svg||ge.vml?new pa(i):null}Le.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&&bh(i)||_h(i)}});var wh=li.extend({initialize:function(i,s){li.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 Hw(i,s){return new wh(i,s)}pa.create=Wo,pa.pointsToPath=we,Gr.geometryToLayer=Do,Gr.coordsToLatLng=Gl,Gr.coordsToLatLngs=Ao,Gr.latLngToCoords=Yl,Gr.latLngsToCoords=Lo,Gr.getFeature=ui,Gr.asFeature=Io,Le.mergeOptions({boxZoom:!0});var xh=Mr.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(){Me(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){qe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Qe(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(),aa(),Ol(),this._startPoint=this._map.mouseEventToContainerPoint(i),Me(document,{contextmenu:$n,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(i){this._moved||(this._moved=!0,this._box=$e("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),f=s.getSize();pt(this._box,s.min),this._box.style.width=f.x+"px",this._box.style.height=f.y+"px"},_finish:function(){this._moved&&(Qe(this._box),st(this._container,"leaflet-crosshair")),oa(),kl(),qe(document,{contextmenu:$n,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())}});Le.addInitHook("addHandler","boxZoom",xh),Le.mergeOptions({doubleClickZoom:!0});var Ch=Mr.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,f=s.getZoom(),b=s.options.zoomDelta,M=i.originalEvent.shiftKey?f-b:f+b;s.options.doubleClickZoom==="center"?s.setZoom(M):s.setZoomAround(i.containerPoint,M)}});Le.addInitHook("addHandler","doubleClickZoom",Ch),Le.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Th=Mr.extend({addHooks:function(){if(!this._draggable){var i=this._map;this._draggable=new cn(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(){st(this._map._container,"leaflet-grab"),st(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,f=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(f),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),f=this._initialWorldOffset,b=this._draggable._newPos.x,M=(b-s+f)%i+s-f,F=(b+s+f)%i-s-f,Y=Math.abs(M+f)<Math.abs(F+f)?M:F;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Y},_onDragEnd:function(i){var s=this._map,f=s.options,b=!f.inertia||i.noInertia||this._times.length<2;if(s.fire("dragend",i),b)s.fire("moveend");else{this._prunePositions(+new Date);var M=this._lastPos.subtract(this._positions[0]),F=(this._lastTime-this._times[0])/1e3,Y=f.easeLinearity,re=M.multiplyBy(Y/F),ae=re.distanceTo([0,0]),ce=Math.min(f.inertiaMaxSpeed,ae),me=re.multiplyBy(ce/ae),xe=ce/(f.inertiaDeceleration*Y),Ne=me.multiplyBy(-xe/2).round();!Ne.x&&!Ne.y?s.fire("moveend"):(Ne=s._limitOffset(Ne,s.options.maxBounds),N(function(){s.panBy(Ne,{duration:xe,easeLinearity:Y,noMoveStart:!0,animate:!0})}))}}});Le.addInitHook("addHandler","dragging",Th),Le.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Sh=Mr.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"),Me(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,f=i.scrollTop||s.scrollTop,b=i.scrollLeft||s.scrollLeft;this._map._container.focus(),window.scrollTo(b,f)}},_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={},f=this.keyCodes,b,M;for(b=0,M=f.left.length;b<M;b++)s[f.left[b]]=[-1*i,0];for(b=0,M=f.right.length;b<M;b++)s[f.right[b]]=[i,0];for(b=0,M=f.down.length;b<M;b++)s[f.down[b]]=[0,i];for(b=0,M=f.up.length;b<M;b++)s[f.up[b]]=[0,-1*i]},_setZoomDelta:function(i){var s=this._zoomKeys={},f=this.keyCodes,b,M;for(b=0,M=f.zoomIn.length;b<M;b++)s[f.zoomIn[b]]=i;for(b=0,M=f.zoomOut.length;b<M;b++)s[f.zoomOut[b]]=-i},_addHooks:function(){Me(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,f=this._map,b;if(s in this._panKeys){if(!f._panAnim||!f._panAnim._inProgress)if(b=this._panKeys[s],i.shiftKey&&(b=z(b).multiplyBy(3)),f.options.maxBounds&&(b=f._limitOffset(z(b),f.options.maxBounds)),f.options.worldCopyJump){var M=f.wrapLatLng(f.unproject(f.project(f.getCenter()).add(b)));f.panTo(M)}else f.panBy(b)}else if(s in this._zoomKeys)f.setZoom(f.getZoom()+(i.shiftKey?3:1)*this._zoomKeys[s]);else if(s===27&&f._popup&&f._popup.options.closeOnEscapeKey)f.closePopup();else return;$n(i)}}});Le.addInitHook("addHandler","keyboard",Sh),Le.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Eh=Mr.extend({addHooks:function(){Me(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=Zf(i),f=this._map.options.wheelDebounceTime;this._delta+=s,this._lastMousePos=this._map.mouseEventToContainerPoint(i),this._startTime||(this._startTime=+new Date);var b=Math.max(f-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(l(this._performZoom,this),b),$n(i)},_performZoom:function(){var i=this._map,s=i.getZoom(),f=this._map.options.zoomSnap||0;i._stop();var b=this._delta/(this._map.options.wheelPxPerZoomLevel*4),M=4*Math.log(2/(1+Math.exp(-Math.abs(b))))/Math.LN2,F=f?Math.ceil(M/f)*f:M,Y=i._limitZoom(s+(this._delta>0?F:-F))-s;this._delta=0,this._startTime=null,Y&&(i.options.scrollWheelZoom==="center"?i.setZoom(s+Y):i.setZoomAround(this._lastMousePos,s+Y))}});Le.addInitHook("addHandler","scrollWheelZoom",Eh);var Vw=600;Le.mergeOptions({tapHold:ge.touchNative&&ge.safari&&ge.mobile,tapTolerance:15});var Mh=Mr.extend({addHooks:function(){Me(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()&&(Me(document,"touchend",xt),Me(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",s))},this),Vw),Me(document,"touchend touchcancel contextmenu",this._cancel,this),Me(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function i(){qe(document,"touchend",xt),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 f=new MouseEvent(i,{bubbles:!0,cancelable:!0,view:window,screenX:s.screenX,screenY:s.screenY,clientX:s.clientX,clientY:s.clientY});f._simulated=!0,s.target.dispatchEvent(f)}});Le.addInitHook("addHandler","tapHold",Mh),Le.mergeOptions({touchZoom:ge.touch,bounceAtZoomLimits:!0});var Ph=Mr.extend({addHooks:function(){Re(this._map._container,"leaflet-touch-zoom"),Me(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){st(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 f=s.mouseEventToContainerPoint(i.touches[0]),b=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(f.add(b)._divideBy(2))),this._startDist=f.distanceTo(b),this._startZoom=s.getZoom(),this._moved=!1,this._zooming=!0,s._stop(),Me(document,"touchmove",this._onTouchMove,this),Me(document,"touchend touchcancel",this._onTouchEnd,this),xt(i)}},_onTouchMove:function(i){if(!(!i.touches||i.touches.length!==2||!this._zooming)){var s=this._map,f=s.mouseEventToContainerPoint(i.touches[0]),b=s.mouseEventToContainerPoint(i.touches[1]),M=f.distanceTo(b)/this._startDist;if(this._zoom=s.getScaleZoom(M,this._startZoom),!s.options.bounceAtZoomLimits&&(this._zoom<s.getMinZoom()&&M<1||this._zoom>s.getMaxZoom()&&M>1)&&(this._zoom=s._limitZoom(this._zoom)),s.options.touchZoom==="center"){if(this._center=this._startLatLng,M===1)return}else{var F=f._add(b)._divideBy(2)._subtract(this._centerPoint);if(M===1&&F.x===0&&F.y===0)return;this._center=s.unproject(s.project(this._pinchStartLatLng,this._zoom).subtract(F),this._zoom)}this._moved||(s._moveStart(!0,!1),this._moved=!0),k(this._animRequest);var Y=l(s._move,s,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=N(Y,this,!0),xt(i)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,k(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))}});Le.addInitHook("addHandler","touchZoom",Ph),Le.BoxZoom=xh,Le.DoubleClickZoom=Ch,Le.Drag=Th,Le.Keyboard=Sh,Le.ScrollWheelZoom=Eh,Le.TapHold=Mh,Le.TouchZoom=Ph,r.Bounds=H,r.Browser=ge,r.CRS=le,r.Canvas=yh,r.Circle=ql,r.CircleMarker=No,r.Class=j,r.Control=yr,r.DivIcon=mh,r.DivOverlay=Pr,r.DomEvent=lw,r.DomUtil=ow,r.Draggable=cn,r.Evented=G,r.FeatureGroup=Ur,r.GeoJSON=Gr,r.GridLayer=fa,r.Handler=Mr,r.Icon=si,r.ImageOverlay=$o,r.LatLng=Q,r.LatLngBounds=X,r.Layer=br,r.LayerGroup=oi,r.LineUtil=ww,r.Map=Le,r.Marker=ko,r.Mixin=mw,r.Path=dn,r.Point=q,r.PolyUtil=vw,r.Polygon=li,r.Polyline=qr,r.Popup=zo,r.PosAnimation=Kf,r.Projection=xw,r.Rectangle=wh,r.Renderer=Yr,r.SVG=pa,r.SVGOverlay=ph,r.TileLayer=ci,r.Tooltip=Fo,r.Transformation=pe,r.Util=W,r.VideoOverlay=hh,r.bind=l,r.bounds=ee,r.canvas=bh,r.circle=Ow,r.circleMarker=Rw,r.control=ua,r.divIcon=Fw,r.extend=a,r.featureGroup=Ew,r.geoJSON=fh,r.geoJson=Dw,r.gridLayer=Ww,r.icon=Mw,r.imageOverlay=Aw,r.latLng=ne,r.latLngBounds=K,r.layerGroup=Sw,r.map=uw,r.marker=Pw,r.point=z,r.polygon=Nw,r.polyline=kw,r.popup=$w,r.rectangle=Hw,r.setOptions=y,r.stamp=c,r.svg=_h,r.svgOverlay=Iw,r.tileLayer=vh,r.tooltip=zw,r.transformation=oe,r.version=n,r.videoOverlay=Lw;var Uw=window.L;r.noConflict=function(){return window.L=Uw,this},window.L=r})})(wc,wc.exports);var kN=wc.exports;const Ir=O.getDefaultExportFromCjs(kN),NN=Object.freeze({usa:"united states",switzerland:"switzerland country",uk:"united kingdom"});function DN(e,t){const r=NN[e.toLowerCase()];return r&&(t[r]=e),r||e}function AN(e,t){return t[e.toLowerCase()]||e}const LN=(e,t)=>{const{app:r}=yt(),[n,a]=J.useState([]),o=J.useRef(e),l=J.useCallback(()=>_r(exports,null,function*(){if(!r||!e)return;const u={},c=Ik(t),d=yield r.httpClient.post("api/v1/geo/locations",ie({locations:e.map(_=>({name:DN(_.name,u)}))},c&&{geoLevel:c})),p=o.current!==e;if(!d||p)return;const m=d.reduce((_,y)=>{const w=he(ie({},y),{name:AN(y.name,u)});return _[w.name]=w,_},{}),h=[],g=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(g)}),[r,a,e,t]);return J.useEffect(()=>{e&&(o.current=e,e.some(c=>!!c.coordinates)?a(e):l())},[e,r,l,a]),n};function IN(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 $N(e,t=4,r=24){let n=0;const{min:a,max:o}=IN(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 zN=()=>{const{app:e}=yt(),[t,r]=J.useState(null),n=J.useCallback(()=>_r(exports,null,function*(){if(!e)return;const a=yield e.httpClient.get("api/v1/settings/system");a&&r(a.geo)}),[r,e]);return J.useEffect(()=>{n()},[e,n]),t},FN="#00cee6",WN=O.createDataColoringFunction({getValueFromDataStructure:({colorValue:e})=>parseFloat(`${e}`),applyColorToDataStructure:(e,t)=>he(ie({},e),{color:t})});function jN(e,t){return t?WN(e.map(({colorValue:r})=>({colorValue:r})),t).map(({color:r})=>r):e.map(()=>FN)}function cy(e){return{isLight:["hollow","filled-light"].includes(e),isFilled:["filled","filled-light"].includes(e)}}function dy(e){const{color:t,size:r,fill:n,blur:a}=e,{isFilled:o}=cy(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 BN({coordinates:e,style:t}){const r=new Ir.CircleMarker({lat:e.lat,lng:e.lng},dy(t));return r.on("mouseover",HN),r.on("mouseout",VN),r}function HN(e){const t=e.target,r=t.options.customStyle,{isFilled:n,isLight:a}=cy(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 VN(e){const t=e.target,r=t.options.customStyle;t.setStyle(dy(r))}function UN(e){e.forEach(t=>t.remove())}function qN(e,t){const r=`
|
|
23
|
-
© <a href='https://www.mapbox.com/about/maps/'>Mapbox</a>
|
|
24
|
-
© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>
|
|
25
|
-
<strong>
|
|
26
|
-
<a href='https://www.mapbox.com/map-feedback/' target='_blank'>
|
|
27
|
-
Improve this map
|
|
28
|
-
</a>
|
|
29
|
-
</strong>`,n="© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>",a=Ir.control.attribution();return t.indexOf("mapbox")>-1?a.addAttribution(r).addTo(e):t.indexOf("openstreetmap")>-1&&a.addAttribution(n).addTo(e),a}const GN=250;function fy(e){const t=e.chart.animation.init.duration==="auto"?GN:e.chart.animation.init.duration;return{animate:t!==0,duration:t/1e3}}function YN(e,t,r={}){t.length&&e.fitBounds(t.map(n=>[n.getLatLng().lat,n.getLatLng().lng]),ie({maxZoom:4},r))}var XN="Expected a function";function ZN(e,t,r){if(typeof e!="function")throw new TypeError(XN);return setTimeout(function(){e.apply(void 0,r)},t)}var KN=Bs(function(e,t,r){return ZN(e,O.toNumber(t)||0,r)}),us=(e=>(e[e.YES=0]="YES",e[e.NO=1]="NO",e[e.LOADING=2]="LOADING",e))(us||{});const QN="#9EA2AB",Cp="N/A",ou=10,JN=`
|
|
30
|
-
<svg
|
|
31
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
32
|
-
width="24"
|
|
33
|
-
height="24"
|
|
34
|
-
viewBox="0 0 24 24"
|
|
35
|
-
fill="green"
|
|
36
|
-
class="csdk-animate-spin"
|
|
37
|
-
>
|
|
38
|
-
<path
|
|
39
|
-
fillRule="evenodd"
|
|
40
|
-
clipRule="evenodd"
|
|
41
|
-
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"
|
|
42
|
-
fill="transparent"
|
|
43
|
-
fillOpacity="0.3"
|
|
44
|
-
/>
|
|
45
|
-
<path
|
|
46
|
-
fillRule="evenodd"
|
|
47
|
-
clipRule="evenodd"
|
|
48
|
-
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"
|
|
49
|
-
fill="#22C3C3"
|
|
50
|
-
/>
|
|
51
|
-
</svg>
|
|
52
|
-
`,eD=e=>{const t=`
|
|
53
|
-
<div>
|
|
54
|
-
<div>${O.spanSegment("...")}</div>
|
|
55
|
-
<div>${O.spanSegment(`Showing first ${ou} results`)}</div>
|
|
56
|
-
</div>
|
|
57
|
-
`;return`
|
|
58
|
-
<div>
|
|
59
|
-
${e.slice(0,ou).map(r=>`<div>${O.spanSegment(r)}</div>`).join("")}
|
|
60
|
-
${e.length>ou?t:""}
|
|
61
|
-
</div>
|
|
62
|
-
`},su=e=>`
|
|
63
|
-
<span style="padding-right: 20px">
|
|
64
|
-
${O.spanSegment(e,QN)}
|
|
65
|
-
</span>
|
|
66
|
-
`,tD=()=>`
|
|
67
|
-
<span style="verical-align: bottom">
|
|
68
|
-
${O.spanSegment(JN)}
|
|
69
|
-
</span>
|
|
70
|
-
`,Xo=(e,t,r=1)=>{const n=O.formatTooltipValue(t.size,e.value,`${e.value}`),a=O.formatTooltipValue(t.colorBy,e.colorValue,`${e.colorValue}`),o=t.details&&O.isMeasureColumn(t.details)&&O.formatTooltipValue(t.details,e.details,`${e.details}`);return O.tooltipWrapper(`
|
|
71
|
-
<div style="text-align: left">
|
|
72
|
-
<div>${O.spanSegment(e.name)}</div>
|
|
73
|
-
<div class="csdk-scattermap-tooltip-row">
|
|
74
|
-
${t.size?su(O.getDataOptionTitle(t.size)):""}
|
|
75
|
-
${t.size?O.spanSegment(n):""}
|
|
76
|
-
</div>
|
|
77
|
-
<div class="csdk-scattermap-tooltip-row">
|
|
78
|
-
${t.colorBy?su(O.getDataOptionTitle(t.colorBy)):""}
|
|
79
|
-
${t.colorBy?O.spanSegment(a||Cp):""}
|
|
80
|
-
</div>
|
|
81
|
-
<div class="csdk-scattermap-tooltip-row">
|
|
82
|
-
${(r===2||r===0)&&t.details?su(O.getDataOptionTitle(t.details)):""}
|
|
83
|
-
${r===2?tD():""}
|
|
84
|
-
${r===0&&t.details&&O.isMeasureColumn(t.details)?O.spanSegment(o||Cp):""}
|
|
85
|
-
</div>
|
|
86
|
-
<div>
|
|
87
|
-
${r===0&&t.details&&!O.isMeasureColumn(t.details)?eD(e.details):""}
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
`)},rD=600,nD=11,iD=({dataOptions:e,dataSource:t,filters:r=[]})=>{const{app:n}=yt(),a=J.useCallback(l=>_r(exports,null,function*(){if(!n)return[];const u=e.locations.map((p,m)=>{const h=O.translateCategoryToAttribute(p),g=Lk(l)[m];return O.members(h,[g])}),c={dataSource:t,dimensions:[e.details],filters:O.mergeFilters(r,u),count:nD};return(yield ro(c,n)).rows.map(([p])=>p.text)}),[n,e,t,r]);return J.useCallback(l=>{if(!e.details||e.details&&!O.isMeasureColumn(e.details)&&!t)return{content:Xo(l,e)};if(O.isMeasureColumn(e.details))return{content:Xo(l,e,us.YES)};const u=new Promise(d=>KN(d,rD)),c=Promise.all([a(l.name),u]).then(([d])=>Xo(he(ie({},l),{details:d}),e,us.YES));return{content:Xo(l,e,us.LOADING),postponedContent:c}},[e,t,a])},aD=({chartData:e,dataOptions:t,dataSource:r,filters:n=[],designOptions:a,onDataPointClick:o})=>{const{locations:l}=e,u=zN(),{themeSettings:c}=zt(),d=LN(l,t.locationLevel),{filters:p}=O.getFilterListAndRelations(n),m=iD({dataOptions:t,dataSource:r,filters:p}),h=J.useRef(null),g=J.useRef(null),_=J.useMemo(()=>$N(d,t.size?a.markers.size.minSize:a.markers.size.defaultSize,t.size?a.markers.size.maxSize:a.markers.size.defaultSize),[d,t,a]),y=J.useMemo(()=>{var C;return jN(d,(C=t.colorBy)==null?void 0:C.color)},[d,t]),w=J.useRef([]),E=J.useRef(Ir.layerGroup([])),S=J.useRef(null),T=J.useRef(null);return J.useEffect(()=>{h.current&&!g.current&&(g.current=Ir.map(h.current,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,worldCopyJump:!0}),E.current.addTo(g.current),g.current.fitWorld())},[]),J.useEffect(()=>{w.current&&(UN(w.current),w.current=[]),d&&(d.forEach((C,x)=>{if(!C.coordinates)return;const P=BN({coordinates:C.coordinates,style:{color:y[x],size:_[x],fill:a.markers.fill,blur:!!C.blur}});w.current.push(P),P.addTo(E.current),o&&P.on("click",R=>{o($k(C),R.originalEvent)}),P.bindTooltip(()=>{const{content:R,postponedContent:D}=m(C);return D==null||D.then(A=>P.setTooltipContent(A)),R})}),YN(g.current,w.current,fy(c)))},[d,y,_,a,c,m,o]),J.useEffect(()=>{var C;u&&(S.current&&S.current.remove(),S.current=Ir.tileLayer(u.maps_api_provider,{zoomOffset:-1,tileSize:512}),g.current&&(S.current.addTo(g.current),(C=T.current)==null||C.remove(),T.current=qN(g.current,u.maps_api_provider)))},[u]),V.jsx("div",{className:"csdk-map-container",ref:h,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:d}=l,p=dD(u[0],c[0]);p.forEach(m=>{m.state=""}),n(p.map(lu),d)}),t&&(a.plotOptions.series.point.events.click=l=>{l.point.state="hover",t(lu(l.point),l)}),r&&(a.plotOptions.series.point.events.contextmenu=l=>{l.preventDefault(),r(lu(l.point),l)}),O.merge$1(e,a)},lu=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},d={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=O.merge(e,c);return m.xAxis=(h=m.xAxis)==null?void 0:h.map(g=>{var _;return g.plotBands=(_=g.plotBands)==null?void 0:_.map(y=>O.merge(y,he(ie({},p),{color:y.color||(t==null?void 0:t.chart.backgroundColor)}))),O.merge(g,d)}),m.yAxis&&(m.yAxis=m.yAxis.map(g=>{var _;return g.plotBands=(_=g.plotBands)==null?void 0:_.map(y=>O.merge(y,he(ie({},p),{color:y.color||(t==null?void 0:t.chart.backgroundColor)}))),O.merge(g,d)})),m},gD=600,yD=300,bD=(e,t,r)=>{const n={duration:t.chart.animation.init.duration==="auto"?gD:t.chart.animation.init.duration},a={duration:t.chart.animation.redraw.duration==="auto"?yD:t.chart.animation.redraw.duration};return O.merge(e,{accessibility:{enabled:r},chart:{animation:a},plotOptions:{series:{animation:n}},boost:{useGPUTranslations:!0,usePreAllocated:!0}})},_D="_alert_box_10ttx_1",wD="_content_10ttx_8",xD="_alert_10ttx_1",uu={alert_box:_D,content:wD,alert:xD},CD=({alerts:e=[]})=>V.jsx("div",{className:uu.alert_box,children:V.jsx("div",{className:uu.content,children:[...new Set(e)].map((t,r)=>V.jsx("div",{className:uu.alert,children:t},`alert-${r}`))})});function hy(e,t,r){r=typeof r=="function"?r:void 0;var n=r?r(e,t):void 0;return n===void 0?O.baseIsEqual(e,t,void 0,r):!!n}var py={exports:{}};(function(e,t){(function(r,n){e.exports=n(J)})(typeof self!="undefined"?self:O.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(S){for(var T=1;T<arguments.length;T++){var C=arguments[T];for(var x in C)Object.prototype.hasOwnProperty.call(C,x)&&(S[x]=C[x])}return S},l.apply(this,arguments)}function u(S){return m(S)||p(S)||d(S)||c()}function c(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
91
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(S,T){if(S){if(typeof S=="string")return h(S,T);var C=Object.prototype.toString.call(S).slice(8,-1);return C==="Object"&&S.constructor&&(C=S.constructor.name),C==="Map"||C==="Set"?Array.from(S):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?h(S,T):void 0}}function p(S){if(typeof Symbol!="undefined"&&S[Symbol.iterator]!=null||S["@@iterator"]!=null)return Array.from(S)}function m(S){if(Array.isArray(S))return h(S)}function h(S,T){(T==null||T>S.length)&&(T=S.length);for(var C=0,x=new Array(T);C<T;C++)x[C]=S[C];return x}function g(S){"@babel/helpers - typeof";return(g=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})(S)}Object.defineProperty(a,"__esModule",{value:!0}),o.d(a,"HighchartsReact",function(){return E});var _=o(1),y=o.n(_),w=typeof window!="undefined"?_.useLayoutEffect:_.useEffect,E=Object(_.memo)(Object(_.forwardRef)(function(S,T){var C=Object(_.useRef)(),x=Object(_.useRef)(),P=Object(_.useRef)(S.constructorType),R=Object(_.useRef)(S.highcharts);return w(function(){function D(){var I=S.highcharts||(typeof window=="undefined"?"undefined":g(window))==="object"&&window.Highcharts,N=S.constructorType||"chart";I?I[N]?S.options?x.current=I[N](C.current,S.options,S.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(x.current){if(S.allowChartUpdate!==!1)if(S.constructorType!==P.current||S.highcharts!==R.current)P.current=S.constructorType,R.current=S.highcharts,D();else if(!S.immutable&&x.current){var A;(A=x.current).update.apply(A,[S.options].concat(u(S.updateArgs||[!0,!0])))}else D()}else D()},[S.options,S.allowChartUpdate,S.updateArgs,S.containerProps,S.highcharts,S.constructorType]),w(function(){return function(){x.current&&(x.current.destroy(),x.current=null)}},[]),Object(_.useImperativeHandle)(T,function(){return{get chart(){return x.current},container:C}},[]),y.a.createElement("div",l({},S.containerProps,{ref:C}))}));a.default=E},function(n,a){n.exports=r}])})})(py);var TD=py.exports;const SD=O.getDefaultExportFromCjs(TD);function Pd(e){const t=J.useRef(void 0);return J.useEffect(()=>{t.current=e},[e]),t.current}const ED=J.memo(function({options:t}){var p,m,h,g,_,y;const r=Pd(t),n=J.useCallback(w=>{var S,T,C,x,P,R,D,A;const E=t;!((x=(C=(T=(S=E==null?void 0:E.plotOptions)==null?void 0:S.series)==null?void 0:T.point)==null?void 0:C.events)!=null&&x.click)&&!((A=(D=(R=(P=E==null?void 0:E.plotOptions)==null?void 0:P.series)==null?void 0:R.point)==null?void 0:D.events)!=null&&A.contextmenu)&&(w.container.onclick=null)},[t]),a=w=>w==null?void 0:w.some(({data:E})=>E.some(S=>!!S.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)!==((g=t==null?void 0:t.navigator)==null?void 0:g.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)!==((y=t==null?void 0:t.chart)==null?void 0:y.type),d=o||l||c||u;return V.jsx(SD,{highcharts:O.Highcharts,options:O.cloneDeep(t),containerProps:{style:{height:"100%",width:"100%"}},immutable:d,callback:n})},(e,t)=>hy(e,t,(r,n)=>O.isFunction(r)&&O.isFunction(n)?r.toString()===n.toString():void 0)),MD=e=>e,PD=({chartType:e,chartData:t,dataOptions:r,designOptions:n,onDataPointClick:a,onDataPointContextMenu:o,onDataPointsSelected:l,onBeforeRender:u=MD})=>{const{app:c}=yt(),{t:d}=O.useTranslation(),p=[],m=J.useCallback((_,y)=>gd(_,y,c==null?void 0:c.settings.locale,c==null?void 0:c.settings.dateConfig),[]),{themeSettings:h}=zt(),g=J.useMemo(()=>{var C;const{options:_,alerts:y}=O.highchartsOptionsService(t,e,n,r,d,h,m);p.push(...y);const w=((C=c==null?void 0:c.settings.accessibilityConfig)==null?void 0:C.enabled)||!1,E=bD(_,h,w),S=cD(E,{onDataPointClick:a,onDataPointContextMenu:o,onDataPointsSelected:l}),T=vD(S,h);return u(T)},[e,t,r,n,h,a,o,u,d]);return g&&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(ED,{options:g})]})},RD=[...O.CARTESIAN_CHART_TYPES,...O.CATEGORICAL_CHART_TYPES,...O.SCATTER_CHART_TYPES,...O.BOXPLOT_CHART_TYPES,...O.RANGE_CHART_TYPES],my=e=>RD.includes(e),OD=e=>!!e.chartType&&my(e.chartType)&&!!e.chartData,kD="_wrapper_g0ngm_1",ND="_title_g0ngm_7",DD="_image_g0ngm_18",cu={wrapper:kD,title:ND,image:DD},AD="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",LD="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",ID="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",$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='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",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%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",FD="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",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%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",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%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",BD="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",HD="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",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%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",Tp={area:AD,line:LD,bar:ID,column:$D,polar:zD,funnel:FD,pie:WD,scatter:jD,indicator:BD,table:HD,treemap:VD};function UD(e){var r;return(r=Tp[e])!=null?r:Tp["bar"]}const Rd=({iconType:e})=>{var u;const{themeSettings:t}=zt(),r=J.useRef(null),[n,a]=J.useState({width:null,height:null});J.useEffect(()=>{r.current&&a({width:r.current.offsetWidth,height:r.current.offsetHeight})},[]);const o=UD(e),{t:l}=O.useTranslation();return V.jsxs("div",{ref:r,className:cu.wrapper,children:[V.jsx("div",{className:cu.title,style:{fontFamily:(u=t.typography)==null?void 0:u.fontFamily,fontSize:qD(n.width,n.height)},children:l("chartNoData")}),o?V.jsx("img",{className:cu.image,src:o}):null]})};function qD(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 Sp=(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}),io=({children:e,defaultSize:t,size:r,rerenderOnResize:n=!1,useContentSize:a,onSizeChange:o})=>{const l=J.useRef(null),[u,c]=J.useState(),d=J.useCallback(()=>{var S,T;const E={width:(S=l.current)==null?void 0:S.offsetWidth,height:(T=l.current)==null?void 0:T.offsetHeight};c(C=>{const x=(C==null?void 0:C.width)===0&&E.width===t.width,P=(C==null?void 0:C.height)===0&&E.height===t.height,R={width:x?C.width:E.width,height:P?C.height:E.height};return Li(C,R)?C:(o==null||o(Sp(R,r,t)),R)})},[l,r,t,o,c]);J.useLayoutEffect(()=>{d()},[d]),J.useEffect(()=>(window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)),[d]);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=Sp(u,r,t),h=(u==null?void 0:u.width)||(u==null?void 0:u.width)===void 0,g=(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:g||a!=null&&a.height?"100%":`${m.height}px`,position:"relative"},y=a!=null&&a.width||a!=null&&a.height?{position:"static",width:"100%",height:"100%"}:{position:"absolute",top:0,right:0,bottom:0,left:0},w=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:y,children:m&&(typeof e=="function"?e(m):e)})},w)})},vy={width:400,height:500},Od=e=>O.isTable(e)?{width:400,height:500}:O.isIndicator(e)?{width:200,height:200}:{width:400,height:400},GD=25,kd=(e,{hasHeader:t}={})=>{const r=e==="pivot"?vy:Od(e);return t&&(r.height=r.height+GD),r},YD=[{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"}],XD="#d6d9dc",ZD="#FBFAFA";function KD(e,t,r){return e.reduce((a,o)=>{const l=o.id;let u;if(r==="world"){const c=YD.find(d=>d.id===l);c?u=t.find(d=>c.allNames.includes(d.geoName.trim().toLowerCase())):u=t.find(d=>d.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:XD,weight:1,opacity:1,fillColor:u&&u.color||ZD,fillOpacity:1},displayName:(u==null?void 0:u.geoName)||o.properties.name},a},{})}const QD=({geoJson:e,geoData:t,dataOptions:r,mapType:n})=>{const{themeSettings:a}=zt(),o=J.useRef(null),l=J.useRef(null),[u]=J.useState(Ir.layerGroup()),c=J.useMemo(()=>KD(e.features,t,n),[e,t,n]);return J.useEffect(()=>{o.current&&!l.current&&(l.current=r3(o.current,n),u.addTo(l.current))},[u,n]),J.useEffect(()=>{const d=Ir.geoJSON(n3(e,c),{style:p=>c[p.id].style,onEachFeature:(p,m)=>{m.bindTooltip(t3(p,c,r.originalValueTitle),{sticky:!0}),m.on({mouseover:h=>{const g=h.target;JD(g,p.id,c)},mouseout:h=>{const g=h.target;e3(g,p.id,c)}}),r.onAreaClick&&m.on({click:h=>{const g=c[p.id].geoDataElement;g&&r.onAreaClick(g,h.originalEvent)}})}});l.current&&(u.clearLayers(),u.addLayer(d),l.current.fitBounds(d.getBounds(),fy(a)))},[r,c,e,u,a]),V.jsx("div",{ref:o,className:"csdk-map-container",style:{width:"100%",height:"100%",minWidth:"300px",minHeight:"400px",backgroundColor:"#c2dbe9"}})};function JD(e,t,r){if(r[t]){const a=r[t].style.fillColor;e.setStyle({weight:2,color:O.scaleBrightness(a,-.2),fillColor:O.scaleBrightness(a,.05),dashArray:"",fillOpacity:1,opacity:1}),e.bringToFront()}}function e3(e,t,r){e.setStyle(r[t].style)}function t3(e,t,r){const n=t[e.id],{formattedOriginalValue:a}=n.geoDataElement||{};return`
|
|
92
|
-
<div>
|
|
93
|
-
<span>${n.displayName}<span>
|
|
94
|
-
${n.geoDataElement&&a!==void 0?`<br/>${r}: <span>${a}<span>`:""}
|
|
95
|
-
</div>`}function r3(e,t){return t==="world"?Ir.map(e,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,zoom:1,maxZoom:5,center:[0,0]}):Ir.map(e,{crs:new Ir.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 n3(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 gy{constructor(t){Ct(this,"httpClient");Ct(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}`)});Ct(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 O.TranslatableError("errors.dashboardInvalidIdentifier")})});Ct(this,"getDashboardWidgets",t=>this.httpClient.get(`api/v1/dashboards/${t}/widgets`).catch(()=>{throw new O.TranslatableError("errors.dashboardWidgetsInvalidIdentifiers")}));Ct(this,"getWidget",(t,r)=>this.httpClient.get(`api/v1/dashboards/${r}/widgets/${t}`).catch(()=>{throw new O.TranslatableError("errors.dashboardWidgetInvalidIdentifiers")}));Ct(this,"getCountriesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/world"));Ct(this,"getUsaStatesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/usa"));Ct(this,"getPalettes",()=>this.httpClient.get("api/palettes"));if(!t)throw new Error("HttpClient not found.");this.httpClient=t}}const yy=()=>{const{app:e}=yt();return J.useMemo(()=>new gy(e==null?void 0:e.httpClient),[e])},i3=e=>{const t=yy(),[r,n]=J.useState(),[a,o]=J.useState(),l=l3();return J.useEffect(()=>{if(!l)return;_r(exports,null,function*(){try{const c=u3(e,l),d=a3(c);if(d)n(d);else{c3(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"?s3(m):m;o3(h,c),n(h)}}catch(c){o(c)}})},[t,e,l]),{geoJson:r,error:a}};function a3(e){const t=localStorage.getItem(e);if(t)return JSON.parse(t)}function o3(e,t){localStorage.setItem(t,JSON.stringify(e))}function s3(e){const t=O.cloneDeep(e);return t.features.forEach(r=>{var n;r.id==="-99"&&(r.id=(n=r.properties)==null?void 0:n.name)}),t}function l3(){const{app:e}=yt();return e==null?void 0:e.settings.serverVersion}function u3(e,t){return`geoJson_${e}_${t}`}function c3(e){Object.keys(localStorage).forEach(r=>{r.startsWith(`geoJson_${e}`)&&localStorage.removeItem(r)})}const d3=({chartData:e,dataOptions:t,designOptions:r,onDataPointClick:n})=>{var u,c;const{themeSettings:a}=zt(),{geoJson:o}=i3(r.mapType),l=J.useMemo(()=>t.color?e.geoData:e.geoData.map(d=>he(ie({},d),{color:O.getPaletteColor(a.palette.variantColors,0)})),[e.geoData,t,a]);return V.jsx(V.Fragment,{children:o&&V.jsx(QD,{geoJson:o,geoData:l,dataOptions:{originalValueTitle:((u=t.color)==null?void 0:u.title)||((c=t.color)==null?void 0:c.name)||"",onAreaClick:n},mapType:r.mapType})})},f3=e=>e.type==="areamap",h3=e=>"geo"in e,p3=e=>"mapType"in e,m3=e=>!!e.chartData&&f3(e.chartData)&&h3(e.dataOptions)&&p3(e.designOptions),Ea=({isVisible:e,themeSettings:t,children:r})=>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","aria-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:{backgroundColor:t.general.backgroundColor},className:"csdk-p-1.5 csdk-bg-background-priority csdk-rounded-full",children:V.jsx(Vg,{color:t==null?void 0:t.chart.textColor})})})})}),r]});function xc(e,t,r=dd(),n=vd){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(!O.isCategory(l)||!l.dateFormat)return;const u=e.columns.findIndex(function(d){return d.name===l.name&&O.isDatetime(l.type)&&O.isDatetime(d.type)});u!==-1&&a.set(u,l.dateFormat)}),a.size===0||(e.rows=e.rows.map(function(l){return l.map(function(c,d){const p=a.get(d);if(!p)return c;let m,h;if(O.isCell(c))m=ie({},c);else{const _=O.createCompareValue(`${c}`,"datetime");h=new Date(_.value),m={data:h.toISOString(),text:`${c}`}}if(!m.data)return c;let g=m.text;try{g=gd(O.parseISO(m.data),p,r,n)}catch(_){console.error(_)}return m.text=g,m})})),e}function v3(e,t){if(!t.value||t.value.length===0)throw new O.TranslatableError("errors.dataOptions.emptyValueArray");return y3(e,t)}const g3={pie:{category:3,value:1},funnel:{category:1,value:1},treemap:{category:3,value:1},sunburst:{category:6,value:1}};function y3(e,t){const r=g3[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 by=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},b3=(e,t)=>{if(t==="funnel"){const r=O.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},_y=(e,t,r,n,a,o)=>{if(t.length+r.length===0)throw new O.TranslatableError("errors.dataOptions.noDimensionsAndMeasures");return t.forEach(l=>{if(e.columns.findIndex(c=>c.name===l.name)===-1)throw new O.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 O.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 O.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 O.TranslatableError("errors.dataOptions.highlightAttributeNotFound",{attributeName:l.attribute.name})}),!0};function _3(e,t){switch(e){case"pie":case"funnel":case"treemap":return v3(e,t);default:return t}}const Nd=()=>{const[e,t]=J.useState();if(e)throw e;return t};function du(e){return e===null}const w3=(e,t)=>{switch(t){case"iqr":return f1(e);case"extremums":return h1(e);case"standardDeviation":return p1(e)}},x3=(e,t)=>{switch(t){case"iqr":return m1(e);case"standardDeviation":return v1(e)}},C3=(e,t,r)=>{const{column:n,style:a}=O.splitColumn(e);let o=w3(n,t),l;return a&&(o=o.map(u=>ie({column:u},a))),r&&(l=x3(n,t),l&&a&&(l=ie({column:l},a))),{values:o,outliers:l}},T3=e=>e.value.length>1,wy=e=>{var m;const{category:t}=e;let r,n,a;if(T3(e))r=e.value,a=e.valueTitle,n=(m=e.outliers)==null?void 0:m[0];else{const{outliersEnabled:h,boxType:g,value:[_]}=e,{values:y,outliers:w}=C3(_,g,!!h);r=y,n=w,a=O.getDataOptionTitle(O.translateColumnToCategory(_))}const[o,l,u,c,d,p]=r;return{category:t[0]&&O.translateColumnToCategory(t[0]),boxMin:o&&O.translateColumnToValue(o),boxMedian:l&&O.translateColumnToValue(l),boxMax:u&&O.translateColumnToValue(u),whiskerMin:c&&O.translateColumnToValue(c),whiskerMax:d&&O.translateColumnToValue(d),outliersCount:p&&O.translateColumnToValue(p),outliers:n&&O.translateColumnToCategory(n),valueTitle:a}},S3=2e4;function ga(e,t){if(t){const r=t.name,n=e.findIndex(a=>a.name===r);return n===-1?null:n}return null}const xy=(e,t,r)=>{let n=0,a=4,o=5,l=0,u=1;return r&&(n=ga(e.columns,r.category),a=ga(e.columns,r.whiskerMin),o=ga(e.columns,r.whiskerMax),l=ga(t.columns,r.category),u=ga(t.columns,r.outliers)),du(u)?e:{columns:[...e.columns,t.columns[u]],rows:e.rows.map(d=>{const p=du(n)?null:d[n].data,m=d[o].data,h=d[a].data,g=t.rows.filter(_=>{const y=du(l)?null:_[l].data,w=_[u].data;return y===p&&(w<h||w>m)}).map(_=>_[u].data).join(",");return[...d,{data:g}]})}};function E3(e,t,r){const n=r&&wy(r);return xy(e,t,n)}const M3=(c,d)=>_r(exports,[c,d],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 g=t.outliersCount?P3(m,t.outliersCount.name):0;if(t.outliers&&g<S3){const y={dataSource:r,dimensions:n,measures:[],filters:o,highlights:l};try{const w=yield u(y,e);h=xy(m,w,t)}catch(w){if((_=w==null?void 0:w.message)!=null&&_.includes("UnsupportedFunctionalityException"))console.warn("Functionality not supported by platform: Boxplot outliers");else throw w}}return h}),P3=(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},R3=e=>e==="funnel"?e:O.deriveChartFamily(e),O3=(e,t,r,n,a,o,l,u,c,d)=>{var E;const p=Nd(),m=J.useMemo(()=>R3(r),[r]),h=J.useMemo(()=>[void 0,t],[t]),[g,_]=J.useState({}),{app:y}=yt(),w=(E=y==null?void 0:y.settings.queryCacheConfig)!=null&&E.enabled?wd:ro;return J.useEffect(()=>{let S=!1;const{filters:T,relations:C}=O.getFilterListAndRelations(l);if(yn(e)){if(!y)return;let x;r==="boxplot"?x=M3({app:y,chartDataOptions:t,dataSource:e,attributes:n,measures:a,filters:T,highlights:u},w):x=w({dataSource:e,dimensions:n,measures:a,filters:T,filterRelations:C,highlights:u,count:y.settings.queryLimit},y);const P=y==null?void 0:y.settings.loadingIndicatorConfig,R=setTimeout(()=>{P!=null&&P.enabled&&(d==null||d(!0))},P==null?void 0:P.delay);x.then(D=>{const A=xc(D,t,y==null?void 0:y.settings.locale,y==null?void 0:y.settings.dateConfig);S||_({[m]:[A,t]})}).catch(D=>{p(D)}).finally(()=>{clearTimeout(R),P!=null&&P.enabled&&(d==null||d(!1))})}else{_y(e,n,a,o,T,u);const x=xc(e,t,y==null?void 0:y.settings.locale,y==null?void 0:y.settings.dateConfig);_({[m]:[x,t]})}return()=>{S=!0}},[r,t,e,l,u,y,c]),g[m]||h},Ep={city:4,state:3,country:2,auto:1};function k3(e){return e.filter(r=>"geoLevel"in r&&r.geoLevel).map(r=>r.geoLevel).reduce((r,n)=>Ep[n]>Ep[r]?n:r,"auto")}function N3(e){const{geo:t,size:r,colorBy:n,details:a}=e;return{locations:t&&t.map(O.translateColumnToCategory),size:r&&O.translateColumnToValue(r),colorBy:n&&O.translateColumnToValue(n),details:a&&O.translateColumnToCategoryOrValue(a),locationLevel:k3(t)}}function D3(e){var o;const t=e.value.map(l=>{if(l!=null&&l.chartType)return[O.translateColumnToValue(l)];const p=l,{lowerBound:u,upperBound:c}=p,d=fi(p,["lowerBound","upperBound"]);return[O.translateColumnToValue(ie({column:u},d)),O.translateColumnToValue(ie({column:c},d))]}),r=t.flat(),n=t.filter(l=>l.length===2),a=t.filter(l=>l.length===1).flat();return{x:e.category.map(O.translateColumnToCategory),breakBy:((o=e.breakBy)==null?void 0:o.map(O.translateColumnToCategory))||[],y:r,rangeValues:n,seriesValues:a,seriesToColorMap:e.seriesToColorMap}}function A3(e,t){if(O.isCartesian(e))return L3(t);if(O.isCategorical(e))return I3(t);if(O.isIndicator(e))return $3(t);if(O.isScatter(e))return z3(t);if(O.isBoxplot(e))return wy(t);if(O.isAreamap(e))return F3(t);if(O.isScattermap(e))return N3(t);if(O.isRange(e))return D3(t);throw new Error(`Unexpected chart type: ${e}`)}const L3=e=>{var t;return{x:e.category.map(O.translateColumnToCategory),y:e.value.map(O.translateColumnToValue),breakBy:((t=e.breakBy)==null?void 0:t.map(O.translateColumnToCategory))||[],seriesToColorMap:e.seriesToColorMap}},I3=e=>({y:e.value.map(O.translateColumnToValue),breakBy:e.category.map(O.translateColumnToCategory),seriesToColorMap:e.seriesToColorMap}),$3=e=>{var t,r,n,a,o,l;return{value:(t=e.value)==null?void 0:t.map(O.translateColumnToValue),secondary:(r=e.secondary)==null?void 0:r.map(O.translateColumnToValue),min:(a=(n=e.min)==null?void 0:n.map(O.translateColumnToValue))==null?void 0:a.map(Mp("min")),max:(l=(o=e.max)==null?void 0:o.map(O.translateColumnToValue))==null?void 0:l.map(Mp("max"))}},Mp=e=>t=>{var r;return Object.assign(t,{aggregation:(r=t.aggregation)!=null?r:e})},z3=e=>{const{x:t,y:r,breakByPoint:n,breakByColor:a,size:o,seriesToColorMap:l}=e;return{x:t&&O.translateColumnToCategoryOrValue(t),y:r&&O.translateColumnToCategoryOrValue(r),breakByPoint:n&&O.translateColumnToCategory(n),breakByColor:a&&O.translateColumnToCategoryOrValue(a),size:o&&O.translateColumnToValue(o),seriesToColorMap:l}},F3=e=>({geo:e.geo&&O.translateColumnToCategory(e.geo[0]),color:e.color&&O.translateColumnToValue(e.color[0])});function W3(e,t){let r=[];return O.isScatter(t)?r=["x","y","breakByPoint","breakByColor"].flatMap(n=>e[n]&&O.isCategory(e[n])?[e[n]]:[]):O.isCartesian(t)||O.isCategorical(t)||O.isRange(t)?r=["x","breakBy"].flatMap(n=>{var a;return(a=e[n])!=null?a:[]}):O.isBoxplot(t)?r=["category","outliers"].flatMap(n=>e[n]?[e[n]]:[]):O.isAreamap(t)?r=[e.geo]:O.isScattermap(t)&&(r=["locations"].flatMap(n=>{var a;return(a=e[n])!=null?a:[]})),r.map(O.translateCategoryToAttribute)}function j3(e,t){let r=[];if(O.isIndicator(t))r=B3(e);else if(O.isScatter(t))r=["x","y","breakByColor","size"].flatMap(n=>e[n]&&O.isValue(e[n])?[e[n]]:[]);else if(O.isCartesian(t)||O.isCategorical(t))r=e.y;else if(O.isBoxplot(t))r=["boxMin","boxMedian","boxMax","whiskerMin","whiskerMax","outliersCount"].flatMap(n=>e[n]?[e[n]]:[]);else if(O.isAreamap(t)){const n=e.color;r=n?[n]:[]}else O.isScattermap(t)?r=["size","colorBy","details"].flatMap(n=>e[n]&&O.isValue(e[n])?[e[n]]:[]):O.isRange(t)&&(r=e.y);return r.map(O.translateValueToMeasure)}function B3(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(d=>!!d)}function Cy(e){return{columns:e.columns.map(O.translateColumnToCategoryOrValue)}}function H3(e){var t,r,n;return{rows:(t=e.rows)==null?void 0:t.map(O.translateColumnToCategory),columns:(r=e.columns)==null?void 0:r.map(O.translateColumnToCategory),values:(n=e.values)==null?void 0:n.map(O.translateColumnToValue),grandTotals:e.grandTotals}}function Ty(e,t){{const r=_3(t,e),n=A3(t,r),a=b3(n,t),o=W3(a,t),l=j3(a,t);return{dataOptions:a,attributes:o,measures:l}}}const V3=(e,t)=>J.useMemo(()=>{const{dataOptions:r,attributes:n,measures:a}=Ty(e,t),o=by(a.map(O.translateMeasureToValue));return{dataOptions:r,attributes:n,measures:a,dataColumnNamesMapping:o}},[e,t]);function U3(e){const{dataSet:t,chartType:r,chartData:n,internalDataOptions:a,designOptions:o,onBeforeRender:l,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:d,filters:p}=e;return!a||!o?null:{dataSource:yn(t)?t:null,chartType:r,chartData:n,dataOptions:a,designOptions:o,onBeforeRender:l,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:d,filters:p}}const q3=e=>e==="indicator",G3=(e,t)=>e==="scattermap"&&"scatterDataTable"in t&&t.scatterDataTable.length===0?!0:"series"in t&&t.series.length===0,Sy=e=>{const{chartType:t,dataSet:r,dataOptions:n,filters:a,highlights:o,styleOptions:l,refreshCounter:u,onDataPointClick:c,onDataPointContextMenu:d,onDataPointsSelected:p,onBeforeRender:m}=e,[h,g]=J.useState(!1),_=Od(t),{themeSettings:y}=zt(),{dataOptions:w,attributes:E,measures:S,dataColumnNamesMapping:T}=V3(n,t),[C,x]=O3(r,w,t,E,S,T,a,o,u,g),P=J.useMemo(()=>n?O.prepareChartDesignOptions(t,x,l):null,[n,t,x,l]),R=J.useMemo(()=>{if(!C||!n)return null;let A=O.createDataTableFromData(C);return yn(r)||(A=iy(A,E.map(O.translateAttributeToCategory),S.map(O.translateMeasureToValue),T)),Bk(t,x,A)},[C,t]),D=U3({dataSet:r,chartType:t,chartData:R,internalDataOptions:x,designOptions:P,onBeforeRender:m,onDataPointClick:c,onDataPointContextMenu:d,onDataPointsSelected:p,filters:a});return D?V.jsx(io,{defaultSize:_,size:{width:l==null?void 0:l.width,height:l==null?void 0:l.height},rerenderOnResize:q3(t),children:()=>R?G3(t,R)?V.jsx(Rd,{iconType:t}):t==="scattermap"&&uD(D)?V.jsx(Ea,{themeSettings:y,isVisible:h,children:V.jsx(aD,ie({},D))}):t==="indicator"&&ON(D)?V.jsx(Ea,{themeSettings:y,isVisible:h,children:V.jsx(EN,ie({},D))}):t==="areamap"&&m3(D)?V.jsx(Ea,{themeSettings:y,isVisible:h,children:V.jsx(d3,ie({},D))}):my(t)&&OD(D)?V.jsx(Ea,{themeSettings:y,isVisible:h,children:V.jsx(PD,he(ie({},D),{designOptions:ie({},D.designOptions)}))}):null:V.jsx(js,{themeSettings:y})}):null};function Ee(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 Cc={exports:{}},Zo={exports:{}},We={};/** @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 Pp;function Y3(){if(Pp)return We;Pp=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,d=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,g=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function T(x){if(typeof x=="object"&&x!==null){var P=x.$$typeof;switch(P){case t:switch(x=x.type,x){case c:case d:case n:case o:case a:case m:return x;default:switch(x=x&&x.$$typeof,x){case u:case p:case _:case g:case l:return x;default:return P}}case r:return P}}}function C(x){return T(x)===d}return We.AsyncMode=c,We.ConcurrentMode=d,We.ContextConsumer=u,We.ContextProvider=l,We.Element=t,We.ForwardRef=p,We.Fragment=n,We.Lazy=_,We.Memo=g,We.Portal=r,We.Profiler=o,We.StrictMode=a,We.Suspense=m,We.isAsyncMode=function(x){return C(x)||T(x)===c},We.isConcurrentMode=C,We.isContextConsumer=function(x){return T(x)===u},We.isContextProvider=function(x){return T(x)===l},We.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},We.isForwardRef=function(x){return T(x)===p},We.isFragment=function(x){return T(x)===n},We.isLazy=function(x){return T(x)===_},We.isMemo=function(x){return T(x)===g},We.isPortal=function(x){return T(x)===r},We.isProfiler=function(x){return T(x)===o},We.isStrictMode=function(x){return T(x)===a},We.isSuspense=function(x){return T(x)===m},We.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===d||x===o||x===a||x===m||x===h||typeof x=="object"&&x!==null&&(x.$$typeof===_||x.$$typeof===g||x.$$typeof===l||x.$$typeof===u||x.$$typeof===p||x.$$typeof===w||x.$$typeof===E||x.$$typeof===S||x.$$typeof===y)},We.typeOf=T,We}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 Rp;function X3(){return Rp||(Rp=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,d=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,g=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function T(oe){return typeof oe=="string"||typeof oe=="function"||oe===n||oe===d||oe===o||oe===a||oe===m||oe===h||typeof oe=="object"&&oe!==null&&(oe.$$typeof===_||oe.$$typeof===g||oe.$$typeof===l||oe.$$typeof===u||oe.$$typeof===p||oe.$$typeof===w||oe.$$typeof===E||oe.$$typeof===S||oe.$$typeof===y)}function C(oe){if(typeof oe=="object"&&oe!==null){var ve=oe.$$typeof;switch(ve){case t:var de=oe.type;switch(de){case c:case d:case n:case o:case a:case m:return de;default:var _e=de&&de.$$typeof;switch(_e){case u:case p:case _:case g:case l:return _e;default:return ve}}case r:return ve}}}var x=c,P=d,R=u,D=l,A=t,I=p,N=n,k=_,W=g,j=r,$=o,B=a,G=m,q=!1;function U(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.")),z(oe)||C(oe)===c}function z(oe){return C(oe)===d}function H(oe){return C(oe)===u}function ee(oe){return C(oe)===l}function X(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===t}function K(oe){return C(oe)===p}function Q(oe){return C(oe)===n}function ne(oe){return C(oe)===_}function le(oe){return C(oe)===g}function se(oe){return C(oe)===r}function ue(oe){return C(oe)===o}function fe(oe){return C(oe)===a}function pe(oe){return C(oe)===m}je.AsyncMode=x,je.ConcurrentMode=P,je.ContextConsumer=R,je.ContextProvider=D,je.Element=A,je.ForwardRef=I,je.Fragment=N,je.Lazy=k,je.Memo=W,je.Portal=j,je.Profiler=$,je.StrictMode=B,je.Suspense=G,je.isAsyncMode=U,je.isConcurrentMode=z,je.isContextConsumer=H,je.isContextProvider=ee,je.isElement=X,je.isForwardRef=K,je.isFragment=Q,je.isLazy=ne,je.isMemo=le,je.isPortal=se,je.isProfiler=ue,je.isStrictMode=fe,je.isSuspense=pe,je.isValidElementType=T,je.typeOf=C}()),je}var Op;function Ey(){return Op||(Op=1,process.env.NODE_ENV==="production"?Zo.exports=Y3():Zo.exports=X3()),Zo.exports}/*
|
|
110
|
-
object-assign
|
|
111
|
-
(c) Sindre Sorhus
|
|
112
|
-
@license MIT
|
|
113
|
-
*/var fu,kp;function Z3(){if(kp)return fu;kp=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 d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch(p){return!1}}return fu=a()?Object.assign:function(o,l){for(var u,c=n(o),d,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){d=e(u);for(var h=0;h<d.length;h++)r.call(u,d[h])&&(c[d[h]]=u[d[h]])}}return c},fu}var hu,Np;function Dd(){if(Np)return hu;Np=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hu=e,hu}var pu,Dp;function My(){return Dp||(Dp=1,pu=Function.call.bind(Object.prototype.hasOwnProperty)),pu}var mu,Ap;function K3(){if(Ap)return mu;Ap=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Dd(),r={},n=My();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,d){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 g=d?d():"";e("Failed "+u+" type: "+m.message+(g!=null?g:""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},mu=a,mu}var vu,Lp;function Q3(){if(Lp)return vu;Lp=1;var e=Ey(),t=Z3(),r=Dd(),n=My(),a=K3(),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(d){}});function l(){return null}return vu=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function m(z){var H=z&&(d&&z[d]||z[p]);if(typeof H=="function")return H}var h="<<anonymous>>",g={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:S(),arrayOf:T,element:C(),elementType:x(),instanceOf:P,node:I(),objectOf:D,oneOf:R,oneOfType:A,shape:k,exact:W};function _(z,H){return z===H?z!==0||1/z===1/H:z!==z&&H!==H}function y(z,H){this.message=z,this.data=H&&typeof H=="object"?H:{},this.stack=""}y.prototype=Error.prototype;function w(z){if(process.env.NODE_ENV!=="production")var H={},ee=0;function X(Q,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?Q?ne[le]===null?new y("The "+ue+" `"+fe+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new y("The "+ue+" `"+fe+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:z(ne,le,se,ue,fe)}var K=X.bind(null,!1);return K.isRequired=X.bind(null,!0),K}function E(z){function H(ee,X,K,Q,ne,le){var se=ee[X],ue=B(se);if(ue!==z){var fe=G(se);return new y("Invalid "+Q+" `"+ne+"` of type "+("`"+fe+"` supplied to `"+K+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return w(H)}function S(){return w(l)}function T(z){function H(ee,X,K,Q,ne){if(typeof z!="function")return new y("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 y("Invalid "+Q+" `"+ne+"` of type "+("`"+se+"` supplied to `"+K+"`, expected an array."))}for(var ue=0;ue<le.length;ue++){var fe=z(le,ue,K,Q,ne+"["+ue+"]",r);if(fe instanceof Error)return fe}return null}return w(H)}function C(){function z(H,ee,X,K,Q){var ne=H[ee];if(!u(ne)){var le=B(ne);return new y("Invalid "+K+" `"+Q+"` of type "+("`"+le+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return w(z)}function x(){function z(H,ee,X,K,Q){var ne=H[ee];if(!e.isValidElementType(ne)){var le=B(ne);return new y("Invalid "+K+" `"+Q+"` of type "+("`"+le+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return w(z)}function P(z){function H(ee,X,K,Q,ne){if(!(ee[X]instanceof z)){var le=z.name||h,se=U(ee[X]);return new y("Invalid "+Q+" `"+ne+"` of type "+("`"+se+"` supplied to `"+K+"`, expected ")+("instance of `"+le+"`."))}return null}return w(H)}function R(z){if(!Array.isArray(z))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,Q,ne){for(var le=ee[X],se=0;se<z.length;se++)if(_(le,z[se]))return null;var ue=JSON.stringify(z,function(pe,oe){var ve=G(oe);return ve==="symbol"?String(oe):oe});return new y("Invalid "+Q+" `"+ne+"` of value `"+String(le)+"` "+("supplied to `"+K+"`, expected one of "+ue+"."))}return w(H)}function D(z){function H(ee,X,K,Q,ne){if(typeof z!="function")return new y("Property `"+ne+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var le=ee[X],se=B(le);if(se!=="object")return new y("Invalid "+Q+" `"+ne+"` of type "+("`"+se+"` supplied to `"+K+"`, expected an object."));for(var ue in le)if(n(le,ue)){var fe=z(le,ue,K,Q,ne+"."+ue,r);if(fe instanceof Error)return fe}return null}return w(H)}function A(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var H=0;H<z.length;H++){var ee=z[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,Q,ne,le,se){for(var ue=[],fe=0;fe<z.length;fe++){var pe=z[fe],oe=pe(K,Q,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 y("Invalid "+le+" `"+se+"` supplied to "+("`"+ne+"`"+ve+"."))}return w(X)}function I(){function z(H,ee,X,K,Q){return j(H[ee])?null:new y("Invalid "+K+" `"+Q+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return w(z)}function N(z,H,ee,X,K){return new y((z||"React class")+": "+H+" type `"+ee+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function k(z){function H(ee,X,K,Q,ne){var le=ee[X],se=B(le);if(se!=="object")return new y("Invalid "+Q+" `"+ne+"` of type `"+se+"` "+("supplied to `"+K+"`, expected `object`."));for(var ue in z){var fe=z[ue];if(typeof fe!="function")return N(K,Q,ne,ue,G(fe));var pe=fe(le,ue,K,Q,ne+"."+ue,r);if(pe)return pe}return null}return w(H)}function W(z){function H(ee,X,K,Q,ne){var le=ee[X],se=B(le);if(se!=="object")return new y("Invalid "+Q+" `"+ne+"` of type `"+se+"` "+("supplied to `"+K+"`, expected `object`."));var ue=t({},ee[X],z);for(var fe in ue){var pe=z[fe];if(n(z,fe)&&typeof pe!="function")return N(K,Q,ne,fe,G(pe));if(!pe)return new y("Invalid "+Q+" `"+ne+"` key `"+fe+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(ee[X],null," ")+`
|
|
114
|
-
Valid keys: `+JSON.stringify(Object.keys(z),null," "));var oe=pe(le,fe,K,Q,ne+"."+fe,r);if(oe)return oe}return null}return w(H)}function j(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(j);if(z===null||u(z))return!0;var H=m(z);if(H){var ee=H.call(z),X;if(H!==z.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 $(z,H){return z==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function B(z){var H=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":$(H,z)?"symbol":H}function G(z){if(typeof z=="undefined"||z===null)return""+z;var H=B(z);if(H==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return H}function q(z){var H=G(z);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function U(z){return!z.constructor||!z.constructor.name?h:z.constructor.name}return g.checkPropTypes=a,g.resetWarningCache=a.resetWarningCache,g.PropTypes=g,g},vu}var gu,Ip;function J3(){if(Ip)return gu;Ip=1;var e=Dd();function t(){}function r(){}return r.resetWarningCache=t,gu=function(){function n(l,u,c,d,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},gu}if(process.env.NODE_ENV!=="production"){var eA=Ey(),tA=!0;Cc.exports=Q3()(eA.isElement,tA)}else Cc.exports=J3()();var Ht=Cc.exports;const v=O.getDefaultExportFromCjs(Ht);function Py(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=Py(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=Py(e))&&(n&&(n+=" "),n+=t);return n}function ot(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 rA(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 nA(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const iA=Number.isInteger||nA;function Ry(e,t,r,n){const a=e[t];if(a==null||!iA(a)){const o=rA(a);return new RangeError(`Invalid ${n} \`${t}\` of type \`${o}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function Oy(e,t,...r){return e[t]===void 0?null:Ry(e,t,...r)}function Tc(){return null}Oy.isRequired=Ry;Tc.isRequired=Tc;const kr=process.env.NODE_ENV==="production"?Tc:Oy;function Ad(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]=Ad(a[l],o[l])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function aA(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Ad(t.components[r].defaultProps,n)}function mn(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 ky(e){if(!mn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=ky(e[r])}),t}function $r(e,t,r={clone:!0}){const n=r.clone?te({},e):e;return mn(e)&&mn(t)&&Object.keys(t).forEach(a=>{a!=="__proto__"&&(mn(t[a])&&a in e&&mn(e[a])?n[a]=$r(e[a],t[a],r):r.clone?n[a]=mn(t[a])?ky(t[a]):t[a]:n[a]=t[a])}),n}const oA=Object.freeze(Object.defineProperty({__proto__:null,default:$r,isPlainObject:mn},Symbol.toStringTag,{value:"Module"})),sA=["values","unit","step"],lA=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 Ny(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Ee(e,sA),o=lA(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 d(h,g){const _=l.indexOf(g);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(_!==-1&&typeof t[l[_]]=="number"?t[l[_]]:g)-n/100}${r})`}function p(h){return l.indexOf(h)+1<l.length?d(h,l[l.indexOf(h)+1]):u(h)}function m(h){const g=l.indexOf(h);return g===0?u(l[1]):g===l.length-1?c(l[g]):d(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")}return te({keys:l,values:o,up:u,down:c,between:d,only:p,not:m,unit:r},a)}const uA={borderRadius:4},Cn=process.env.NODE_ENV!=="production"?v.oneOfType([v.number,v.string,v.object,v.array]):{};function ka(e,t){return t?$r(e,t,{clone:!1}):e}const Ld={xs:0,sm:600,md:900,lg:1200,xl:1536},$p={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ld[e]}px)`};function Zr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||$p;return t.reduce((l,u,c)=>(l[o.up(o.keys[c])]=r(t[c]),l),{})}if(typeof t=="object"){const o=n.breakpoints||$p;return Object.keys(t).reduce((l,u)=>{if(Object.keys(o.values||Ld).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 cA(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function dA(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function ja(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 fA=Object.freeze(Object.defineProperty({__proto__:null,default:ja},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.":ja(7));return e.charAt(0).toUpperCase()+e.slice(1)}const hA=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"}));function Hs(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 bs(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=Hs(e,r)||n,t&&(a=t(a,n,e)),a}function ut(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,d=Hs(c,n)||{};return Zr(l,u,m=>{let h=bs(d,a,m);return m===h&&typeof m=="string"&&(h=bs(d,a,`${t}${m==="default"?"":De(m)}`,m)),r===!1?h:{[r]:h}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Cn}:{},o.filterProps=[t],o}function pA(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const mA={m:"margin",p:"padding"},vA={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gA=pA(e=>{if(e.length>2)if(zp[e])e=zp[e];else return[e];const[t,r]=e.split(""),n=mA[t],a=vA[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),Vs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Us=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],yA=[...Vs,...Us];function ao(e,t,r,n){var a;const o=(a=Hs(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 Dy(e){return ao(e,"spacing",8,"spacing")}function oo(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 bA(e,t){return r=>e.reduce((n,a)=>(n[a]=oo(t,r),n),{})}function _A(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=gA(r),o=bA(a,n),l=e[r];return Zr(e,l,o)}function Ay(e,t){const r=Dy(e.theme);return Object.keys(e).map(n=>_A(e,t,n,r)).reduce(ka,{})}function nt(e){return Ay(e,Vs)}nt.propTypes=process.env.NODE_ENV!=="production"?Vs.reduce((e,t)=>(e[t]=Cn,e),{}):{};nt.filterProps=Vs;function it(e){return Ay(e,Us)}it.propTypes=process.env.NODE_ENV!=="production"?Us.reduce((e,t)=>(e[t]=Cn,e),{}):{};it.filterProps=Us;process.env.NODE_ENV!=="production"&&yA.reduce((e,t)=>(e[t]=Cn,e),{});function wA(e=8){if(e.mui)return e;const t=Dy({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 qs(...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]?ka(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 ar(e){return typeof e!="number"?e:`${e}px solid`}function dr(e,t){return ut({prop:e,themeKey:"borders",transform:t})}const xA=dr("border",ar),CA=dr("borderTop",ar),TA=dr("borderRight",ar),SA=dr("borderBottom",ar),EA=dr("borderLeft",ar),MA=dr("borderColor"),PA=dr("borderTopColor"),RA=dr("borderRightColor"),OA=dr("borderBottomColor"),kA=dr("borderLeftColor"),NA=dr("outline",ar),DA=dr("outlineColor"),Gs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ao(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:oo(t,n)});return Zr(e,e.borderRadius,r)}return null};Gs.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Cn}:{};Gs.filterProps=["borderRadius"];qs(xA,CA,TA,SA,EA,MA,PA,RA,OA,kA,Gs,NA,DA);const Ys=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ao(e.theme,"spacing",8,"gap"),r=n=>({gap:oo(t,n)});return Zr(e,e.gap,r)}return null};Ys.propTypes=process.env.NODE_ENV!=="production"?{gap:Cn}:{};Ys.filterProps=["gap"];const Xs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ao(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:oo(t,n)});return Zr(e,e.columnGap,r)}return null};Xs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Cn}:{};Xs.filterProps=["columnGap"];const Zs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ao(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:oo(t,n)});return Zr(e,e.rowGap,r)}return null};Zs.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Cn}:{};Zs.filterProps=["rowGap"];const AA=ut({prop:"gridColumn"}),LA=ut({prop:"gridRow"}),IA=ut({prop:"gridAutoFlow"}),$A=ut({prop:"gridAutoColumns"}),zA=ut({prop:"gridAutoRows"}),FA=ut({prop:"gridTemplateColumns"}),WA=ut({prop:"gridTemplateRows"}),jA=ut({prop:"gridTemplateAreas"}),BA=ut({prop:"gridArea"});qs(Ys,Xs,Zs,AA,LA,IA,$A,zA,FA,WA,jA,BA);function Oi(e,t){return t==="grey"?t:e}const HA=ut({prop:"color",themeKey:"palette",transform:Oi}),VA=ut({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Oi}),UA=ut({prop:"backgroundColor",themeKey:"palette",transform:Oi});qs(HA,VA,UA);function qt(e){return e<=1&&e!==0?`${e*100}%`:e}const qA=ut({prop:"width",transform:qt}),Id=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])||Ld[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:qt(r)}};return Zr(e,e.maxWidth,t)}return null};Id.filterProps=["maxWidth"];const GA=ut({prop:"minWidth",transform:qt}),YA=ut({prop:"height",transform:qt}),XA=ut({prop:"maxHeight",transform:qt}),ZA=ut({prop:"minHeight",transform:qt});ut({prop:"size",cssProperty:"width",transform:qt});ut({prop:"size",cssProperty:"height",transform:qt});const KA=ut({prop:"boxSizing"});qs(qA,Id,GA,YA,XA,ZA,KA);const so={border:{themeKey:"borders",transform:ar},borderTop:{themeKey:"borders",transform:ar},borderRight:{themeKey:"borders",transform:ar},borderBottom:{themeKey:"borders",transform:ar},borderLeft:{themeKey:"borders",transform:ar},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ar},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gs},color:{themeKey:"palette",transform:Oi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Oi},backgroundColor:{themeKey:"palette",transform:Oi},p:{style:it},pt:{style:it},pr:{style:it},pb:{style:it},pl:{style:it},px:{style:it},py:{style:it},padding:{style:it},paddingTop:{style:it},paddingRight:{style:it},paddingBottom:{style:it},paddingLeft:{style:it},paddingX:{style:it},paddingY:{style:it},paddingInline:{style:it},paddingInlineStart:{style:it},paddingInlineEnd:{style:it},paddingBlock:{style:it},paddingBlockStart:{style:it},paddingBlockEnd:{style:it},m:{style:nt},mt:{style:nt},mr:{style:nt},mb:{style:nt},ml:{style:nt},mx:{style:nt},my:{style:nt},margin:{style:nt},marginTop:{style:nt},marginRight:{style:nt},marginBottom:{style:nt},marginLeft:{style:nt},marginX:{style:nt},marginY:{style:nt},marginInline:{style:nt},marginInlineStart:{style:nt},marginInlineEnd:{style:nt},marginBlock:{style:nt},marginBlockStart:{style:nt},marginBlockEnd:{style:nt},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:Ys},rowGap:{style:Zs},columnGap:{style:Xs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qt},maxWidth:{style:Id},minWidth:{transform:qt},height:{transform:qt},maxHeight:{transform:qt},minHeight:{transform:qt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function QA(...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 JA(e,t){return typeof e=="function"?e(t):e}function Ly(){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:d,transform:p,style:m}=u;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const h=Hs(a,d)||{};return m?m(l):Zr(l,n,_=>{let y=bs(h,p,_);return _===y&&typeof _=="string"&&(y=bs(h,p,`${r}${_==="default"?"":De(_)}`,_)),c===!1?y:{[c]:y}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const l=(n=o.unstable_sxConfig)!=null?n:so;function u(c){let d=c;if(typeof c=="function")d=c(o);else if(typeof c!="object")return c;if(!d)return null;const p=cA(o.breakpoints),m=Object.keys(p);let h=p;return Object.keys(d).forEach(g=>{const _=JA(d[g],o);if(_!=null)if(typeof _=="object")if(l[g])h=ka(h,e(g,_,o,l));else{const y=Zr({theme:o},_,w=>({[g]:w}));QA(y,_)?h[g]=t({sx:_,theme:o}):h=ka(h,y)}else h=ka(h,e(g,_,o,l))}),dA(m,h)}return Array.isArray(a)?a.map(u):u(a)}return t}const Ks=Ly();Ks.filterProps=["sx"];function Iy(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 eL=["breakpoints","palette","spacing","shape"];function $d(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,l=Ee(e,eL),u=Ny(r),c=wA(a);let d=$r({breakpoints:u,direction:"ltr",components:{},palette:te({mode:"light"},n),spacing:c,shape:te({},uA,o)},l);return d.applyStyles=Iy,d=t.reduce((p,m)=>$r(p,m),d),d.unstable_sxConfig=te({},so,l==null?void 0:l.unstable_sxConfig),d.unstable_sx=function(m){return Ks({sx:m,theme:this})},d}const tL=Object.freeze(Object.defineProperty({__proto__:null,default:$d,private_createBreakpoints:Ny,unstable_applyStyles:Iy},Symbol.toStringTag,{value:"Module"}));let Sc;typeof document=="object"&&(Sc=og({key:"css",prepend:!0}));function $y(e){const{injectFirst:t,children:r}=e;return t&&Sc?V.jsx(dg,{value:Sc,children:r}):r}process.env.NODE_ENV!=="production"&&($y.propTypes={children:v.node,injectFirst:v.bool});function rL(e){return e==null||Object.keys(e).length===0}function zy(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t(rL(a)?r:a):t;return V.jsx(sd,{styles:n})}process.env.NODE_ENV!=="production"&&(zy.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 nL(e,t){const r=Cr(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 iL=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},aL=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:zy,StyledEngineProvider:$y,ThemeContext:xn,css:ld,default:nL,internal_processStyles:iL,keyframes:Ja},Symbol.toStringTag,{value:"Module"}));function oL(e){return Object.keys(e).length===0}function sL(e=null){const t=Z.useContext(xn);return!t||oL(t)?e:t}const lL=$d();function Fy(e=lL){return sL(e)}function uL({props:e,name:t,defaultTheme:r,themeId:n}){let a=Fy(r);return n&&(a=a[n]||a),aA({theme:a,name:t,props:e})}const cL=["sx"],dL=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:so;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function Wy(e){const{sx:t}=e,r=Ee(e,cL),{systemProps:n,otherProps:a}=dL(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...l)=>{const u=t(...l);return mn(u)?te({},n,u):n}:o=te({},n,t),te({},a,{sx:o})}const fL=Object.freeze(Object.defineProperty({__proto__:null,default:Ks,extendSxProp:Wy,unstable_createStyleFunctionSx:Ly,unstable_defaultSxConfig:so},Symbol.toStringTag,{value:"Module"})),Fp=e=>e,hL=()=>{let e=Fp;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Fp}}},pL=hL(),jy={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 et(e,t,r="Mui"){const n=jy[t];return n?`${r}-${n}`:`${pL.generate(e)}-${t}`}function mL(e,t){return te({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ct={};const vL=O.getAugmentedNamespace(fA);function gL(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const yL=Object.freeze(Object.defineProperty({__proto__:null,default:gL},Symbol.toStringTag,{value:"Module"})),bL=O.getAugmentedNamespace(yL);var By=Xe;Object.defineProperty(ct,"__esModule",{value:!0});var at=ct.alpha=Gy;ct.blend=RL;ct.colorChannel=void 0;var _s=ct.darken=Fd;ct.decomposeColor=sr;var Wp=ct.emphasize=Yy,jp=ct.getContrastRatio=TL;ct.getLuminance=ws;ct.hexToRgb=Vy;ct.hslToRgb=qy;var Hy=ct.lighten=Wd;ct.private_safeAlpha=SL;ct.private_safeColorChannel=void 0;ct.private_safeDarken=EL;ct.private_safeEmphasize=PL;ct.private_safeLighten=ML;ct.recomposeColor=Hi;ct.rgbToHex=CL;var Bp=By(vL),_L=By(bL);function zd(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,_L.default)(e,t,r)}function Vy(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 wL(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function sr(e){if(e.type)return e;if(e.charAt(0)==="#")return sr(Vy(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,Bp.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,Bp.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const Uy=e=>{const t=sr(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ct.colorChannel=Uy;const xL=(e,t)=>{try{return Uy(e)}catch(r){return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};ct.private_safeColorChannel=xL;function Hi(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 CL(e){if(e.indexOf("#")===0)return e;const{values:t}=sr(e);return`#${t.map((r,n)=>wL(n===3?Math.round(255*r):r)).join("")}`}function qy(e){e=sr(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),l=(d,p=(d+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])),Hi({type:u,values:c})}function ws(e){e=sr(e);let t=e.type==="hsl"||e.type==="hsla"?sr(qy(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:Ut((r+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function TL(e,t){const r=ws(e),n=ws(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Gy(e,t){return e=sr(e),t=zd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Hi(e)}function SL(e,t,r){try{return Gy(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Fd(e,t){if(e=sr(e),t=zd(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 Hi(e)}function EL(e,t,r){try{return Fd(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Wd(e,t){if(e=sr(e),t=zd(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 Hi(e)}function ML(e,t,r){try{return Wd(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Yy(e,t=.15){return ws(e)>.5?Fd(e,t):Wd(e,t)}function PL(e,t,r){try{return Yy(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function RL(e,t,r,n=1){const a=(c,d)=>Math.round(Ut(Ut(c,1/n)*(1-r)+Ut(d,1/n)*r,n)),o=sr(e),l=sr(t),u=[a(o.values[0],l.values[0]),a(o.values[1],l.values[1]),a(o.values[2],l.values[2])];return Hi({type:"rgb",values:u})}const Ba={black:"#000",white:"#fff"},OL={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"},pi={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"},mi={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"},ya={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"},gi={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"},yi={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"},bi={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"},kL=["mode","contrastThreshold","tonalOffset"],Hp={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:Ba.white,default:Ba.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}},yu={text:{primary:Ba.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:Ba.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 Vp(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=Hy(e.main,a):t==="dark"&&(e.dark=_s(e.main,o)))}function NL(e="light"){return e==="dark"?{main:gi[200],light:gi[50],dark:gi[400]}:{main:gi[700],light:gi[400],dark:gi[800]}}function DL(e="light"){return e==="dark"?{main:pi[200],light:pi[50],dark:pi[400]}:{main:pi[500],light:pi[300],dark:pi[700]}}function AL(e="light"){return e==="dark"?{main:mi[500],light:mi[300],dark:mi[700]}:{main:mi[700],light:mi[400],dark:mi[800]}}function LL(e="light"){return e==="dark"?{main:yi[400],light:yi[300],dark:yi[700]}:{main:yi[700],light:yi[500],dark:yi[900]}}function IL(e="light"){return e==="dark"?{main:bi[400],light:bi[300],dark:bi[700]}:{main:bi[800],light:bi[500],dark:bi[900]}}function $L(e="light"){return e==="dark"?{main:ya[400],light:ya[300],dark:ya[700]}:{main:"#ed6c02",light:ya[500],dark:ya[900]}}function zL(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Ee(e,kL),o=e.primary||NL(t),l=e.secondary||DL(t),u=e.error||AL(t),c=e.info||LL(t),d=e.success||IL(t),p=e.warning||$L(t);function m(y){const w=jp(y,yu.text.primary)>=r?yu.text.primary:Hp.text.primary;if(process.env.NODE_ENV!=="production"){const E=jp(y,w);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${w} on ${y}`,"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 w}const h=({color:y,name:w,mainShade:E=500,lightShade:S=300,darkShade:T=700})=>{if(y=te({},y),!y.main&&y[E]&&(y.main=y[E]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
|
|
128
|
-
The color object needs to have a \`main\` property or a \`${E}\` property.`:ja(11,w?` (${w})`:"",E));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
|
|
129
|
-
\`color.main\` should be a string, but \`${JSON.stringify(y.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
|
-
} });`:ja(12,w?` (${w})`:"",JSON.stringify(y.main)));return Vp(y,"light",S,n),Vp(y,"dark",T,n),y.contrastText||(y.contrastText=m(y.main)),y},g={dark:yu,light:Hp};return process.env.NODE_ENV!=="production"&&(g[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),$r(te({common:te({},Ba),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:d,name:"success"}),grey:OL,contrastThreshold:r,getContrastText:m,augmentColor:h,tonalOffset:n},g[t]),a)}const FL=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function WL(e){return Math.round(e*1e5)/1e5}const Up={textTransform:"uppercase"},qp='"Roboto", "Helvetica", "Arial", sans-serif';function jL(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=qp,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:p,pxToRem:m}=r,h=Ee(r,FL);process.env.NODE_ENV!=="production"&&(typeof a!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const g=a/14,_=m||(E=>`${E/d*g}rem`),y=(E,S,T,C,x)=>te({fontFamily:n,fontWeight:E,fontSize:_(S),lineHeight:T},n===qp?{letterSpacing:`${WL(C/S)}em`}:{},x,p),w={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(l,48,1.167,0),h4:y(l,34,1.235,.25),h5:y(l,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(l,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(l,16,1.5,.15),body2:y(l,14,1.43,.15),button:y(u,14,1.75,.4,Up),caption:y(l,12,1.66,.4),overline:y(l,12,2.66,1,Up),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $r(te({htmlFontSize:d,pxToRem:_,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:c},w),h,{clone:!1})}const BL=.2,HL=.14,VL=.12;function Ze(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${BL})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${HL})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${VL})`].join(",")}const UL=["none",Ze(0,2,1,-1,0,1,1,0,0,1,3,0),Ze(0,3,1,-2,0,2,2,0,0,1,5,0),Ze(0,3,3,-2,0,3,4,0,0,1,8,0),Ze(0,2,4,-1,0,4,5,0,0,1,10,0),Ze(0,3,5,-1,0,5,8,0,0,1,14,0),Ze(0,3,5,-1,0,6,10,0,0,1,18,0),Ze(0,4,5,-2,0,7,10,1,0,2,16,1),Ze(0,5,5,-3,0,8,10,1,0,3,14,2),Ze(0,5,6,-3,0,9,12,1,0,3,16,2),Ze(0,6,6,-3,0,10,14,1,0,4,18,3),Ze(0,6,7,-4,0,11,15,1,0,4,20,3),Ze(0,7,8,-4,0,12,17,2,0,5,22,4),Ze(0,7,8,-4,0,13,19,2,0,5,24,4),Ze(0,7,9,-4,0,14,21,2,0,5,26,4),Ze(0,8,9,-5,0,15,22,2,0,6,28,5),Ze(0,8,10,-5,0,16,24,2,0,6,30,5),Ze(0,8,11,-5,0,17,26,2,0,6,32,5),Ze(0,9,11,-5,0,18,28,2,0,7,34,6),Ze(0,9,12,-6,0,19,29,2,0,7,36,6),Ze(0,10,13,-6,0,20,31,3,0,8,38,7),Ze(0,10,13,-6,0,21,33,3,0,8,40,7),Ze(0,10,14,-6,0,22,35,3,0,8,42,7),Ze(0,11,14,-7,0,23,36,3,0,9,44,8),Ze(0,11,15,-7,0,24,38,3,0,9,46,8)],qL=["duration","easing","delay"],GL={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)"},YL={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gp(e){return`${Math.round(e)}ms`}function XL(e){if(!e)return 0;const t=e/36;return Math.round((4+15*Ut(t,.25)+t/5)*10)}function ZL(e){const t=te({},GL,e.easing),r=te({},YL,e.duration);return te({getAutoHeightDuration:XL,create:(a=["all"],o={})=>{const{duration:l=r.standard,easing:u=t.easeInOut,delay:c=0}=o,d=Ee(o,qL);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(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(p=>`${p} ${typeof l=="string"?l:Gp(l)} ${u} ${typeof c=="string"?c:Gp(c)}`).join(",")}},e,{easing:t,duration:r})}const KL={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},QL=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function JL(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,l=Ee(e,QL);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.":ja(18));const u=zL(n),c=$d(e);let d=$r(c,{mixins:mL(c.breakpoints,r),palette:u,shadows:UL.slice(),typography:jL(u,o),transitions:ZL(a),zIndex:te({},KL)});if(d=$r(d,l),d=t.reduce((p,m)=>$r(p,m),d),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(h,g)=>{let _;for(_ in h){const y=h[_];if(p.indexOf(_)!==-1&&Object.keys(y).length>0){if(process.env.NODE_ENV!=="production"){const w=et("",_);console.error([`MUI: The \`${g}\` 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 '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:y}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
143
|
-
`))}h[_]={}}}};Object.keys(d.components).forEach(h=>{const g=d.components[h].styleOverrides;g&&h.indexOf("Mui")===0&&m(g,h)})}return d.unstable_sxConfig=te({},so,l==null?void 0:l.unstable_sxConfig),d.unstable_sx=function(m){return Ks({sx:m,theme:this})},d}const jd=JL(),Bd="$$material";function tt({props:e,name:t}){return uL({props:e,name:t,defaultTheme:jd,themeId:Bd})}function Ke(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=et(e,a,r)}),n}function eI(e){return et("MuiPagination",e)}Ke("MuiPagination",["root","ul","outlined","text"]);function Hd({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:d}=Z.useRef(t);Z.useEffect(()=>{!a&&d!==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(d=>{a||l(d)},[]);return[u,c]}const tI=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function rI(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:d,showFirstButton:p=!1,showLastButton:m=!1,siblingCount:h=1}=e,g=Ee(e,tI),[_,y]=Hd({controlled:d,default:a,name:r,state:"page"}),w=(A,I)=>{d||y(I),c&&c(A,I)},E=(A,I)=>{const N=I-A+1;return Array.from({length:N},(k,W)=>A+W)},S=E(1,Math.min(t,n)),T=E(Math.max(n-t+1,t+1),n),C=Math.max(Math.min(_-h,n-t-h*2-1),t+2),x=Math.min(Math.max(_+h,t+h*2+2),T.length>0?T[0]-2:n-1),P=[...p?["first"]:[],...u?[]:["previous"],...S,...C>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...E(C,x),...x<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...T,...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:I=>{w(I,A)},type:"page",page:A,selected:A===_,disabled:o,"aria-current":A===_?"true":void 0}:{onClick:I=>{w(I,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},g)}const nI=Z.createContext(),Vd=()=>{const e=Z.useContext(nI);return e!=null?e:!1};function iI(e){return et("MuiPaginationItem",e)}const tr=Ke("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),lo=v.oneOfType([v.func,v.object]);function Tn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function aI(e){const{prototype:t={}}=e;return!!t.isReactComponent}function oI(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"&&!aI(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 Xy=Tn(v.elementType,oI);var uo={};const sI=O.getAugmentedNamespace(i1);var bu={exports:{}},Yp;function lI(){return Yp||(Yp=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}(bu)),bu.exports}const Zy=O.getAugmentedNamespace(aL),uI=O.getAugmentedNamespace(oA),cI=O.getAugmentedNamespace(hA);var Ec={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 Xp;function dI(){if(Xp)return Be;Xp=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"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function y(w){if(typeof w=="object"&&w!==null){var E=w.$$typeof;switch(E){case e:switch(w=w.type,w){case r:case a:case n:case d:case p:return w;default:switch(w=w&&w.$$typeof,w){case u:case l:case c:case h:case m:case o:return w;default:return E}}case t:return E}}}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=d,Be.SuspenseList=p,Be.isAsyncMode=function(){return!1},Be.isConcurrentMode=function(){return!1},Be.isContextConsumer=function(w){return y(w)===l},Be.isContextProvider=function(w){return y(w)===o},Be.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Be.isForwardRef=function(w){return y(w)===c},Be.isFragment=function(w){return y(w)===r},Be.isLazy=function(w){return y(w)===h},Be.isMemo=function(w){return y(w)===m},Be.isPortal=function(w){return y(w)===t},Be.isProfiler=function(w){return y(w)===a},Be.isStrictMode=function(w){return y(w)===n},Be.isSuspense=function(w){return y(w)===d},Be.isSuspenseList=function(w){return y(w)===p},Be.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===a||w===n||w===d||w===p||w===g||typeof w=="object"&&w!==null&&(w.$$typeof===h||w.$$typeof===m||w.$$typeof===o||w.$$typeof===l||w.$$typeof===c||w.$$typeof===_||w.getModuleId!==void 0)},Be.typeOf=y,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 Zp;function fI(){return Zp||(Zp=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"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),_=!1,y=!1,w=!1,E=!1,S=!1,T;T=Symbol.for("react.module.reference");function C(de){return!!(typeof de=="string"||typeof de=="function"||de===r||de===a||S||de===n||de===d||de===p||E||de===g||_||y||w||typeof de=="object"&&de!==null&&(de.$$typeof===h||de.$$typeof===m||de.$$typeof===o||de.$$typeof===l||de.$$typeof===c||de.$$typeof===T||de.getModuleId!==void 0))}function x(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 d:case p:return we;default:var Se=we&&we.$$typeof;switch(Se){case u:case l:case c:case h:case m:case o:return Se;default:return _e}}case t:return _e}}}var P=l,R=o,D=e,A=c,I=r,N=h,k=m,W=t,j=a,$=n,B=d,G=p,q=!1,U=!1;function z(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 U||(U=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(de){return x(de)===l}function X(de){return x(de)===o}function K(de){return typeof de=="object"&&de!==null&&de.$$typeof===e}function Q(de){return x(de)===c}function ne(de){return x(de)===r}function le(de){return x(de)===h}function se(de){return x(de)===m}function ue(de){return x(de)===t}function fe(de){return x(de)===a}function pe(de){return x(de)===n}function oe(de){return x(de)===d}function ve(de){return x(de)===p}He.ContextConsumer=P,He.ContextProvider=R,He.Element=D,He.ForwardRef=A,He.Fragment=I,He.Lazy=N,He.Memo=k,He.Portal=W,He.Profiler=j,He.StrictMode=$,He.Suspense=B,He.SuspenseList=G,He.isAsyncMode=z,He.isConcurrentMode=H,He.isContextConsumer=ee,He.isContextProvider=X,He.isElement=K,He.isForwardRef=Q,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=C,He.typeOf=x}()),He}process.env.NODE_ENV==="production"?Ec.exports=dI():Ec.exports=fI();var Ha=Ec.exports;const hI=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ky(e){const t=`${e}`.match(hI);return t&&t[1]||""}function Qy(e,t=""){return e.displayName||e.name||Ky(e)||t}function Kp(e,t,r){const n=Qy(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function pI(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Qy(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ha.ForwardRef:return Kp(e,e.render,"ForwardRef");case Ha.Memo:return Kp(e,e.type,"memo");default:return}}}const mI=Object.freeze(Object.defineProperty({__proto__:null,default:pI,getFunctionName:Ky},Symbol.toStringTag,{value:"Module"})),vI=O.getAugmentedNamespace(mI),gI=O.getAugmentedNamespace(tL),yI=O.getAugmentedNamespace(fL);var Vi=Xe;Object.defineProperty(uo,"__esModule",{value:!0});var bI=uo.default=DI;uo.shouldForwardProp=cs;uo.systemDefaultTheme=void 0;var rr=Vi(sI),Mc=Vi(lI()),Qp=PI(Zy),_I=uI,wI=Vi(cI),xI=Vi(vI),CI=Vi(gI),TI=Vi(yI);const SI=["ownerState"],EI=["variants"],MI=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];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 PI(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 RI(e){return Object.keys(e).length===0}function OI(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kI=uo.systemDefaultTheme=(0,CI.default)(),Jp=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ko({defaultTheme:e,theme:t,themeId:r}){return RI(t)?e:t[r]||t}function NI(e){return e?(t,r)=>r[e]:null}function ds(e,t){let{ownerState:r}=t,n=(0,Mc.default)(t,SI);const a=typeof e=="function"?e((0,rr.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>ds(o,(0,rr.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let u=(0,Mc.default)(a,EI);return o.forEach(c=>{let d=!0;typeof c.props=="function"?d=c.props((0,rr.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]&&(d=!1)}),d&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style((0,rr.default)({ownerState:r},n,r)):c.style))}),u}return a}function DI(e={}){const{themeId:t,defaultTheme:r=kI,rootShouldForwardProp:n=cs,slotShouldForwardProp:a=cs}=e,o=l=>(0,TI.default)((0,rr.default)({},l,{theme:Ko((0,rr.default)({},l,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(l,u={})=>{(0,Qp.internal_processStyles)(l,x=>x.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:p,skipSx:m,overridesResolver:h=NI(Jp(d))}=u,g=(0,Mc.default)(u,MI),_=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,y=m||!1;let w;process.env.NODE_ENV!=="production"&&c&&(w=`${c}-${Jp(d||"Root")}`);let E=cs;d==="Root"||d==="root"?E=n:d?E=a:OI(l)&&(E=void 0);const S=(0,Qp.default)(l,(0,rr.default)({shouldForwardProp:E,label:w},g)),T=x=>typeof x=="function"&&x.__emotion_real!==x||(0,_I.isPlainObject)(x)?P=>ds(x,(0,rr.default)({},P,{theme:Ko({theme:P.theme,defaultTheme:r,themeId:t})})):x,C=(x,...P)=>{let R=T(x);const D=P?P.map(T):[];c&&h&&D.push(N=>{const k=Ko((0,rr.default)({},N,{defaultTheme:r,themeId:t}));if(!k.components||!k.components[c]||!k.components[c].styleOverrides)return null;const W=k.components[c].styleOverrides,j={};return Object.entries(W).forEach(([$,B])=>{j[$]=ds(B,(0,rr.default)({},N,{theme:k}))}),h(N,j)}),c&&!_&&D.push(N=>{var k;const W=Ko((0,rr.default)({},N,{defaultTheme:r,themeId:t})),j=W==null||(k=W.components)==null||(k=k[c])==null?void 0:k.variants;return ds({variants:j},(0,rr.default)({},N,{theme:W}))}),y||D.push(o);const A=D.length-P.length;if(Array.isArray(x)&&A>0){const N=new Array(A).fill("");R=[...x,...N],R.raw=[...x.raw,...N]}const I=S(R,...D);if(process.env.NODE_ENV!=="production"){let N;c&&(N=`${c}${(0,wI.default)(d||"")}`),N===void 0&&(N=`Styled(${(0,xI.default)(l)})`),I.displayName=N}return l.muiName&&(I.muiName=l.muiName),I};return S.withConfig&&(C.withConfig=S.withConfig),C}}function AI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const co=e=>AI(e)&&e!=="classes",ke=bI({themeId:Bd,defaultTheme:jd,rootShouldForwardProp:co});function Pc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function It(...e){return Z.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Pc(r,t)})},e)}const qn=typeof window!="undefined"?Z.useLayoutEffect:Z.useEffect;function Xr(e){const t=Z.useRef(e);return qn(()=>{t.current=e}),Z.useRef((...r)=>(0,t.current)(...r)).current}const em={};function LI(e,t){const r=Z.useRef(em);return r.current===em&&(r.current=e(t)),r}const II=[];function $I(e){Z.useEffect(e,II)}class fo{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new fo}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Mi(){const e=LI(fo.create).current;return $I(e.disposeEffect),e}let Qs=!0,Rc=!1;const zI=new fo,FI={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 WI(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&FI[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function jI(e){e.metaKey||e.altKey||e.ctrlKey||(Qs=!0)}function _u(){Qs=!1}function BI(){this.visibilityState==="hidden"&&Rc&&(Qs=!0)}function HI(e){e.addEventListener("keydown",jI,!0),e.addEventListener("mousedown",_u,!0),e.addEventListener("pointerdown",_u,!0),e.addEventListener("touchstart",_u,!0),e.addEventListener("visibilitychange",BI,!0)}function VI(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return Qs||WI(t)}function eb(){const e=Z.useCallback(a=>{a!=null&&HI(a.ownerDocument)},[]),t=Z.useRef(!1);function r(){return t.current?(Rc=!0,zI.start(100,()=>{Rc=!1}),t.current=!1,!0):!1}function n(a){return VI(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function tb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Au(e,t)}const tm={disabled:!1};var UI=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 xs=J.createContext(null);var Ma="unmounted",Wn="exited",jn="entering",Ti="entered",Oc="exiting",jr=function(e){tb(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=Wn,o.appearStatus=jn):c=Ti:n.unmountOnExit||n.mountOnEnter?c=Ma:c=Wn,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var l=a.in;return l&&o.status===Ma?{status:Wn}: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!==jn&&l!==Ti&&(o=jn):(l===jn||l===Ti)&&(o=Oc)}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===jn?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:Ei.findDOMNode(this)),this.performEnter(a)):this.performExit()):this.props.unmountOnExit&&this.state.status===Wn&&this.setState({status:Ma})},r.performEnter=function(a){var o=this,l=this.props.enter,u=this.context?this.context.isMounting:a,c=this.props.nodeRef?[u]:[Ei.findDOMNode(this),u],d=c[0],p=c[1],m=this.getTimeouts(),h=u?m.appear:m.enter;if(!a&&!l||tm.disabled){this.safeSetState({status:Ti},function(){o.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:jn},function(){o.props.onEntering(d,p),o.onTransitionEnd(h,function(){o.safeSetState({status:Ti},function(){o.props.onEntered(d,p)})})})},r.performExit=function(){var a=this,o=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:Ei.findDOMNode(this);if(!o||tm.disabled){this.safeSetState({status:Wn},function(){a.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Oc},function(){a.props.onExiting(u),a.onTransitionEnd(l.exit,function(){a.safeSetState({status:Wn},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:Ei.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],d=c[0],p=c[1];this.props.addEndListener(d,p)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===Ma)return null;var o=this.props,l=o.children,u=Ee(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return J.createElement(xs.Provider,{value:null},typeof l=="function"?l(a,u):J.cloneElement(J.Children.only(l),u))},t}(J.Component);jr.contextType=xs;jr.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=UI;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 _i(){}jr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_i,onEntering:_i,onEntered:_i,onExit:_i,onExiting:_i,onExited:_i};jr.UNMOUNTED=Ma;jr.EXITED=Wn;jr.ENTERING=jn;jr.ENTERED=Ti;jr.EXITING=Oc;function Ud(e,t){var r=function(o){return t&&J.isValidElement(o)?t(o):o},n=Object.create(null);return e&&J.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function qI(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 d=n[c][l];u[n[c][l]]=r(d)}u[c]=r(c)}for(l=0;l<a.length;l++)u[a[l]]=r(a[l]);return u}function Hn(e,t,r){return r[t]!=null?r[t]:e.props[t]}function GI(e,t){return Ud(e.children,function(r){return J.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Hn(r,"appear",e),enter:Hn(r,"enter",e),exit:Hn(r,"exit",e)})})}function YI(e,t,r){var n=Ud(e.children),a=qI(t,n);return Object.keys(a).forEach(function(o){var l=a[o];if(J.isValidElement(l)){var u=o in t,c=o in n,d=t[o],p=J.isValidElement(d)&&!d.props.in;c&&(!u||p)?a[o]=J.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:Hn(l,"exit",e),enter:Hn(l,"enter",e)}):!c&&u&&!p?a[o]=J.cloneElement(l,{in:!1}):c&&u&&J.isValidElement(d)&&(a[o]=J.cloneElement(l,{onExited:r.bind(null,l),in:d.props.in,exit:Hn(l,"exit",e),enter:Hn(l,"enter",e)}))}}),a}var XI=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ZI={component:"div",childFactory:function(t){return t}},qd=function(e){tb(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var l=o.handleExited.bind(bC(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?GI(a,u):YI(a,l,u),firstRender:!1}},r.handleExited=function(a,o){var l=Ud(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=Ee(a,["component","childFactory"]),c=this.state.contextValue,d=XI(this.state.children).map(l);return delete u.appear,delete u.enter,delete u.exit,o===null?J.createElement(xs.Provider,{value:c},d):J.createElement(xs.Provider,{value:c},J.createElement(o,u,d))},t}(J.Component);qd.propTypes=process.env.NODE_ENV!=="production"?{component:v.any,children:v.node,appear:v.bool,enter:v.bool,exit:v.bool,childFactory:v.func}:{};qd.defaultProps=ZI;function KI(e){const{prototype:t={}}=e;return!!t.isReactComponent}function rb(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"&&!KI(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 Kn=Tn(v.element,rb);Kn.isRequired=Tn(v.element.isRequired,rb);const QI="exact-prop: ";function Gd(e){return process.env.NODE_ENV==="production"?e:te({},e,{[QI]: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 Kr(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 rm(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function JI(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 Va(e){return Lt(e).defaultView||window}let nm=0;function e$(e){const[t,r]=Z.useState(e),n=e||t;return Z.useEffect(()=>{t==null&&(nm+=1,r(`mui-${nm}`))},[t]),n}const im=Z[`useId${Math.random()}`.slice(0,5)];function nb(e){if(im!==void 0){const t=im();return e!=null?e:t}return e$(e)}function ib(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ab(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:l,in:u,onExited:c,timeout:d}=e,[p,m]=Z.useState(!1),h=Oe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),g={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 y=setTimeout(c,d);return()=>{clearTimeout(y)}}},[c,u,d]),V.jsx("span",{className:h,style:g,children:V.jsx("span",{className:_})})}process.env.NODE_ENV!=="production"&&(ab.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 ir=Ke("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),t$=["center","classes","className"];let Js=e=>e,am,om,sm,lm;const kc=550,r$=80,n$=Ja(am||(am=Js`
|
|
162
|
-
0% {
|
|
163
|
-
transform: scale(0);
|
|
164
|
-
opacity: 0.1;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
100% {
|
|
168
|
-
transform: scale(1);
|
|
169
|
-
opacity: 0.3;
|
|
170
|
-
}
|
|
171
|
-
`)),i$=Ja(om||(om=Js`
|
|
172
|
-
0% {
|
|
173
|
-
opacity: 1;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
100% {
|
|
177
|
-
opacity: 0;
|
|
178
|
-
}
|
|
179
|
-
`)),a$=Ja(sm||(sm=Js`
|
|
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
|
-
`)),o$=ke("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),s$=ke(ab,{name:"MuiTouchRipple",slot:"Ripple"})(lm||(lm=Js`
|
|
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
|
-
`),ir.rippleVisible,n$,kc,({theme:e})=>e.transitions.easing.easeInOut,ir.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ir.child,ir.childLeaving,i$,kc,({theme:e})=>e.transitions.easing.easeInOut,ir.childPulsate,a$,({theme:e})=>e.transitions.easing.easeInOut),ob=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:l}=n,u=Ee(n,t$),[c,d]=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),g=Mi(),_=Z.useRef(null),y=Z.useRef(null),w=Z.useCallback(C=>{const{pulsate:x,rippleX:P,rippleY:R,rippleSize:D,cb:A}=C;d(I=>[...I,V.jsx(s$,{classes:{ripple:Oe(o.ripple,ir.ripple),rippleVisible:Oe(o.rippleVisible,ir.rippleVisible),ripplePulsate:Oe(o.ripplePulsate,ir.ripplePulsate),child:Oe(o.child,ir.child),childLeaving:Oe(o.childLeaving,ir.childLeaving),childPulsate:Oe(o.childPulsate,ir.childPulsate)},timeout:kc,pulsate:x,rippleX:P,rippleY:R,rippleSize:D},p.current)]),p.current+=1,m.current=A},[o]),E=Z.useCallback((C={},x={},P=()=>{})=>{const{pulsate:R=!1,center:D=a||x.pulsate,fakeElement:A=!1}=x;if((C==null?void 0:C.type)==="mousedown"&&h.current){h.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(h.current=!0);const I=A?null:y.current,N=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,W,j;if(D||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)k=Math.round(N.width/2),W=Math.round(N.height/2);else{const{clientX:$,clientY:B}=C.touches&&C.touches.length>0?C.touches[0]:C;k=Math.round($-N.left),W=Math.round(B-N.top)}if(D)j=Math.sqrt((2*Ut(N.width,2)+Ut(N.height,2))/3),j%2===0&&(j+=1);else{const $=Math.max(Math.abs((I?I.clientWidth:0)-k),k)*2+2,B=Math.max(Math.abs((I?I.clientHeight:0)-W),W)*2+2;j=Math.sqrt(Ut($,2)+Ut(B,2))}C!=null&&C.touches?_.current===null&&(_.current=()=>{w({pulsate:R,rippleX:k,rippleY:W,rippleSize:j,cb:P})},g.start(r$,()=>{_.current&&(_.current(),_.current=null)})):w({pulsate:R,rippleX:k,rippleY:W,rippleSize:j,cb:P})},[a,w,g]),S=Z.useCallback(()=>{E({},{pulsate:!0})},[E]),T=Z.useCallback((C,x)=>{if(g.clear(),(C==null?void 0:C.type)==="touchend"&&_.current){_.current(),_.current=null,g.start(0,()=>{T(C,x)});return}_.current=null,d(P=>P.length>0?P.slice(1):P),m.current=x},[g]);return Z.useImperativeHandle(r,()=>({pulsate:S,start:E,stop:T}),[S,E,T]),V.jsx(o$,te({className:Oe(ir.root,o.root,l),ref:y},u,{children:V.jsx(qd,{component:null,exit:!0,children:c})}))});process.env.NODE_ENV!=="production"&&(ob.propTypes={center:v.bool,classes:v.object,className:v.string});function l$(e){return et("MuiButtonBase",e)}const u$=Ke("MuiButtonBase",["root","disabled","focusVisible"]),c$=["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"],d$=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,l=ot({root:["root",t&&"disabled",r&&"focusVisible"]},l$,a);return r&&n&&(l.root+=` ${n}`),l},f$=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"},[`&.${u$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Qn=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:l,className:u,component:c="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:m=!1,focusRipple:h=!1,LinkComponent:g="a",onBlur:_,onClick:y,onContextMenu:w,onDragLeave:E,onFocus:S,onFocusVisible:T,onKeyDown:C,onKeyUp:x,onMouseDown:P,onMouseLeave:R,onMouseUp:D,onTouchEnd:A,onTouchMove:I,onTouchStart:N,tabIndex:k=0,TouchRippleProps:W,touchRippleRef:j,type:$}=n,B=Ee(n,c$),G=Z.useRef(null),q=Z.useRef(null),U=It(q,j),{isFocusVisibleRef:z,onFocus:H,onBlur:ee,ref:X}=eb(),[K,Q]=Z.useState(!1);d&&K&&Q(!1),Z.useImperativeHandle(a,()=>({focusVisible:()=>{Q(!0),G.current.focus()}}),[]);const[ne,le]=Z.useState(!1);Z.useEffect(()=>{le(!0)},[]);const se=ne&&!p&&!d;Z.useEffect(()=>{K&&h&&!p&&ne&&q.current.pulsate()},[p,h,K,ne]);function ue(Te,bt,Tr=m){return Xr(Zt=>(bt&&bt(Zt),!Tr&&q.current&&q.current[Te](Zt),!0))}const fe=ue("start",P),pe=ue("stop",w),oe=ue("stop",E),ve=ue("stop",D),de=ue("stop",Te=>{K&&Te.preventDefault(),R&&R(Te)}),_e=ue("start",N),we=ue("stop",A),Se=ue("stop",I),Ce=ue("stop",Te=>{ee(Te),z.current===!1&&Q(!1),_&&_(Te)},!1),dt=Xr(Te=>{G.current||(G.current=Te.currentTarget),H(Te),z.current===!0&&(Q(!0),T&&T(Te)),S&&S(Te)}),Ve=()=>{const Te=G.current;return c&&c!=="button"&&!(Te.tagName==="A"&&Te.href)},rt=Z.useRef(!1),ft=Xr(Te=>{h&&!rt.current&&K&&q.current&&Te.key===" "&&(rt.current=!0,q.current.stop(Te,()=>{q.current.start(Te)})),Te.target===Te.currentTarget&&Ve()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&Ve()&&Te.key==="Enter"&&!d&&(Te.preventDefault(),y&&y(Te))}),Ie=Xr(Te=>{h&&Te.key===" "&&q.current&&K&&!Te.defaultPrevented&&(rt.current=!1,q.current.stop(Te,()=>{q.current.pulsate(Te)})),x&&x(Te),y&&Te.target===Te.currentTarget&&Ve()&&Te.key===" "&&!Te.defaultPrevented&&y(Te)});let Ue=c;Ue==="button"&&(B.href||B.to)&&(Ue=g);const Mt={};Ue==="button"?(Mt.type=$===void 0?"button":$,Mt.disabled=d):(!B.href&&!B.to&&(Mt.role="button"),d&&(Mt["aria-disabled"]=d));const ht=It(r,X,G);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 Pt=te({},n,{centerRipple:o,component:c,disabled:d,disableRipple:p,disableTouchRipple:m,focusRipple:h,tabIndex:k,focusVisible:K}),hr=d$(Pt);return V.jsxs(f$,te({as:Ue,className:Oe(hr.root,u),ownerState:Pt,onBlur:Ce,onClick:y,onContextMenu:pe,onFocus:dt,onKeyDown:ft,onKeyUp:Ie,onMouseDown:fe,onMouseLeave:de,onMouseUp:ve,onDragLeave:oe,onTouchEnd:we,onTouchMove:Se,onTouchStart:_e,ref:ht,tabIndex:d?-1:k,type:$},Mt,B,{children:[l,se?V.jsx(ob,te({ref:U,center:o},W)):null]}))});process.env.NODE_ENV!=="production"&&(Qn.propTypes={action:lo,centerRipple:v.bool,children:v.node,classes:v.object,className:v.string,component:Xy,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 h$(e){return et("MuiSvgIcon",e)}Ke("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const p$=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m$=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${De(t)}`,`fontSize${De(r)}`]};return ot(a,h$,n)},v$=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,d,p,m,h,g,_;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:((d=e.typography)==null||(p=d.pxToRem)==null?void 0:p.call(d,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:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.disabled,inherit:void 0}[t.color]}}),Cs=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:l="inherit",component:u="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:m,viewBox:h="0 0 24 24"}=n,g=Ee(n,p$),_=Z.isValidElement(a)&&a.type==="svg",y=te({},n,{color:l,component:u,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:h,hasSvgAsChild:_}),w={};p||(w.viewBox=h);const E=m$(y);return V.jsxs(v$,te({as:u,className:Oe(E.root,o),focusable:"false",color:d,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r},w,g,_&&a.props,{ownerState:y,children:[_?a.props.children:a,m?V.jsx("title",{children:m}):null]}))});process.env.NODE_ENV!=="production"&&(Cs.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});Cs.muiName="SvgIcon";function ho(e,t){function r(n,a){return V.jsx(Cs,te({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Cs.muiName,Z.memo(Z.forwardRef(r))}const um=ho(V.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),cm=ho(V.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),dm=ho(V.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),fm=ho(V.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),g$=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],sb=(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]},y$=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:l,type:u,variant:c}=e,d={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 ot(d,iI,t)},b$=ke("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:sb})(({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",[`&.${tr.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)})),_$=ke(Qn,{name:"MuiPaginationItem",slot:"Root",overridesResolver:sb})(({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,[`&.${tr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tr.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"}},[`&.${tr.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}))`:at(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${tr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:at(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${tr.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"&&{[`&.${tr.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}},[`&.${tr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${tr.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)"}`,[`&.${tr.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)`:at(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:at(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}))`:at(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:at(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${tr.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),w$=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)})),lb=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:l,components:u={},disabled:c=!1,page:d,selected:p=!1,shape:m="circular",size:h="medium",slots:g={},type:_="page",variant:y="text"}=n,w=Ee(n,g$),E=te({},n,{color:o,disabled:c,selected:p,shape:m,size:h,type:_,variant:y}),S=Vd(),T=y$(E),x=(S?{previous:g.next||u.next||fm,next:g.previous||u.previous||dm,last:g.first||u.first||um,first:g.last||u.last||cm}:{previous:g.previous||u.previous||dm,next:g.next||u.next||fm,first:g.first||u.first||um,last:g.last||u.last||cm})[_];return _==="start-ellipsis"||_==="end-ellipsis"?V.jsx(b$,{ref:r,ownerState:E,className:Oe(T.root,a),children:"…"}):V.jsxs(_$,te({ref:r,ownerState:E,component:l,disabled:c,className:Oe(T.root,a)},w,{children:[_==="page"&&d,x?V.jsx(w$,{as:x,ownerState:E,className:T.icon}):null]}))});process.env.NODE_ENV!=="production"&&(lb.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 x$=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],C$=e=>{const{classes:t,variant:r}=e;return ot({root:["root",r],ul:["ul"]},eI,t)},T$=ke("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),S$=ke("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function E$(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const ub=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:l="standard",count:u=1,defaultPage:c=1,disabled:d=!1,getItemAriaLabel:p=E$,hideNextButton:m=!1,hidePrevButton:h=!1,renderItem:g=D=>V.jsx(lb,te({},D)),shape:_="circular",showFirstButton:y=!1,showLastButton:w=!1,siblingCount:E=1,size:S="medium",variant:T="text"}=n,C=Ee(n,x$),{items:x}=rI(te({},n,{componentName:"Pagination"})),P=te({},n,{boundaryCount:a,color:l,count:u,defaultPage:c,disabled:d,getItemAriaLabel:p,hideNextButton:m,hidePrevButton:h,renderItem:g,shape:_,showFirstButton:y,showLastButton:w,siblingCount:E,size:S,variant:T}),R=C$(P);return V.jsx(T$,te({"aria-label":"pagination navigation",className:Oe(R.root,o),ownerState:P,ref:r},C,{children:V.jsx(S$,{className:R.ul,ownerState:P,children:x.map((D,A)=>V.jsx("li",{children:g(te({},D,{color:l,"aria-label":p(D.type,D.page,D.selected),shape:_,size:S,variant:T}))},A))})}))});process.env.NODE_ENV!=="production"&&(ub.propTypes={boundaryCount:kr,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["primary","secondary","standard"]),v.string]),count:kr,defaultPage:kr,disabled:v.bool,getItemAriaLabel:v.func,hideNextButton:v.bool,hidePrevButton:v.bool,onChange:v.func,page:kr,renderItem:v.func,shape:v.oneOf(["circular","rounded"]),showFirstButton:v.bool,showLastButton:v.bool,siblingCount:kr,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 cb=e=>{const t=[],r=[];for(const n of e.columns)O.isMeasureColumn(n)?r.push(n):t.push(n);return{attributes:t,measures:r}},M$=({dataSet:e,dataOptions:t,filters:r,filterRelations:n,count:a,offset:o})=>{const l=Nd(),[u,c]=J.useState(yn(e)?null:e),[d,p]=J.useState(!1),m=J.useRef(!0),{isInitialized:h,app:g}=yt(),[_,y]=J.useState(t);return J.useEffect(()=>{var T;let w=!1;if(!t)return;const{attributes:E,measures:S}=cb(t);if(yn(e)){if(!h){l(new O.TranslatableError("errors.chartNoSisenseContext"));return}if(!g||!m.current&&o>0)return;p(!0),((T=g.settings.queryCacheConfig)!=null&&T.enabled?wd:ro)({dataSource:e,dimensions:E,measures:S,filters:r,filterRelations:n,count:a+1,offset:o,ungroup:!0},g).then(x=>{if(w)return;m.current=x.rows.length>a;const P=m.current?x.rows.slice(0,a):x.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:x.columns,rows:A?[...A,...P]:P}}):c({columns:x.columns,rows:P}),y(t)}).finally(()=>{p(!1)}).catch(x=>{w||l(x)})}else c(e),y(t);return()=>{w=!0}},[g,e,t,r,n,o,a,h,l]),[d?null:u,_]},P$=(e,t)=>{if(O.emptyTable(t))return{rows:[],columns:[]};const r=O.getColumnsByName(t,e);return O.selectColumns(t,r)},Nc=e=>{switch("getSort"in e?e.getSort():e.sortType){case"sortAsc":case O.Sort.Ascending:return 1;case"sortDesc":case O.Sort.Descending:return-1;default:return 0}},R$=(e,t)=>{const r=e.columns.find(n=>Nc(n)!==0);if(r){const n=O.getColumnByName(t,r.name);n&&(n.direction=Nc(r))}return t},O$=(e,t)=>({columns:e.columns.map(r=>{const n="getSort"in r,a=r.name===t.name,o=Nc(r);if(n){const l=o===1?O.Sort.Descending:O.Sort.Ascending;return O.translateColumnToCategoryOrValue(he(ie({},r),{column:r.sort(a?l:O.Sort.None)}))}else{const l=o===1?"sortDesc":"sortAsc";return O.translateColumnToCategoryOrValue(he(ie({},r),{sortType:a?l:"sortNone",column:r}))}})}),k$=(e,t)=>{const r=P$(e.columns.map(n=>n.name),t);return R$(e,r)},N$=({data:e,innerDataOptions:t,dataColumnNamesMapping:r,needToAggregate:n=!1})=>{const{app:a}=yt();return J.useMemo(()=>{if(!e||!t)return null;let o=O.createDataTableFromData(xc(e,t,a==null?void 0:a.settings.locale,a==null?void 0:a.settings.dateConfig));const l=t.columns.filter(c=>O.isCategory(c)),u=t.columns.filter(c=>O.isValue(c));return _y(o,l,u,r),n&&(o=iy(o,l,u,r)),k$(t,o)},[e,t,n,r,a])};var db={},fb={};function hm(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 pm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hm(Object(r),!0).forEach(function(n){xC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function St(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 mm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),wu=function(){return Math.random().toString(36).substring(7).split("").join(".")},gn={INIT:"@@redux/INIT"+wu(),REPLACE:"@@redux/REPLACE"+wu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wu()}};function hb(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 D$(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(I$(e))return"date";if(L$(e))return"error";var r=A$(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 A$(e){return typeof e.constructor=="function"?e.constructor.name:null}function L$(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function I$(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function hn(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=D$(e)),t}function Yd(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"?St(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"?St(1):"Expected the enhancer to be a function. Instead, received: '"+hn(r)+"'");return r(Yd)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?St(2):"Expected the root reducer to be a function. Instead, received: '"+hn(e)+"'");var a=e,o=t,l=[],u=l,c=!1;function d(){u===l&&(u=l.slice())}function p(){if(c)throw new Error(process.env.NODE_ENV==="production"?St(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(y){if(typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?St(4):"Expected the listener to be a function. Instead, received: '"+hn(y)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?St(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 w=!0;return d(),u.push(y),function(){if(w){if(c)throw new Error(process.env.NODE_ENV==="production"?St(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.");w=!1,d();var S=u.indexOf(y);u.splice(S,1),l=null}}}function h(y){if(!hb(y))throw new Error(process.env.NODE_ENV==="production"?St(7):"Actions must be plain objects. Instead, the actual type was: '"+hn(y)+"'. 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 y.type=="undefined")throw new Error(process.env.NODE_ENV==="production"?St(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"?St(9):"Reducers may not dispatch actions.");try{c=!0,o=a(o,y)}finally{c=!1}for(var w=l=u,E=0;E<w.length;E++){var S=w[E];S()}return y}function g(y){if(typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?St(10):"Expected the nextReducer to be a function. Instead, received: '"+hn(y));a=y,h({type:gn.REPLACE})}function _(){var y,w=m;return y={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(process.env.NODE_ENV==="production"?St(11):"Expected the observer to be an object. Instead, received: '"+hn(S)+"'");function T(){S.next&&S.next(p())}T();var C=w(T);return{unsubscribe:C}}},y[mm]=function(){return this},y}return h({type:gn.INIT}),n={dispatch:h,subscribe:m,getState:p,replaceReducer:g},n[mm]=_,n}var $$=Yd;function vm(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function z$(e,t,r,n){var a=Object.keys(t),o=r&&r.type===gn.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(!hb(e))return"The "+o+' has unexpected type of "'+hn(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===gn.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 F$(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:gn.INIT});if(typeof n=="undefined")throw new Error(process.env.NODE_ENV==="production"?St(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:gn.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?St(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+gn.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 W$(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"&&vm('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{F$(r)}catch(c){u=c}return function(d,p){if(d===void 0&&(d={}),u)throw u;if(process.env.NODE_ENV!=="production"){var m=z$(d,r,p,l);m&&vm(m)}for(var h=!1,g={},_=0;_<o.length;_++){var y=o[_],w=r[y],E=d[y],S=w(E,p);if(typeof S=="undefined"){var T=p&&p.type;throw new Error(process.env.NODE_ENV==="production"?St(14):"When called with an action of type "+(T?'"'+String(T)+'"':"(unknown type)")+', the slice reducer for key "'+y+'" 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.')}g[y]=S,h=h||S!==E}return h=h||o.length!==Object.keys(d).length,h?g:d}}function gm(e,t){return function(){return t(e.apply(this,arguments))}}function j$(e,t){if(typeof e=="function")return gm(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?St(16):"bindActionCreators expected an object or a function, but instead received: '"+hn(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]=gm(a,t))}return r}function pb(){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 B$(){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"?St(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=pb.apply(void 0,u)(a.dispatch),pm(pm({},a),{},{dispatch:o})}}}const H$=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:gn,applyMiddleware:B$,bindActionCreators:j$,combineReducers:W$,compose:pb,createStore:Yd,legacy_createStore:$$},Symbol.toStringTag,{value:"Module"})),mb=O.getAugmentedNamespace(H$);var Ui={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(a,o,l,u,c,d,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 g=[l,u,c,d,p,m],_=0;h=new Error("Invariant Violation: "+o.replace(/%s/g,function(){return g[_++]}))}throw h.framesToPop=1,h}},r=t;e.default=r})(Ui);var V$=Array.isArray,Xt=V$,U$=typeof O.commonjsGlobal=="object"&&O.commonjsGlobal&&O.commonjsGlobal.Object===Object&&O.commonjsGlobal,vb=U$,q$=vb,G$=typeof self=="object"&&self&&self.Object===Object&&self,Y$=q$||G$||Function("return this")(),Jr=Y$,X$=Jr,Z$=X$.Symbol,po=Z$,ym=po,gb=Object.prototype,K$=gb.hasOwnProperty,Q$=gb.toString,ba=ym?ym.toStringTag:void 0;function J$(e){var t=K$.call(e,ba),r=e[ba];try{e[ba]=void 0;var n=!0}catch(o){}var a=Q$.call(e);return n&&(t?e[ba]=r:delete e[ba]),a}var e5=J$,t5=Object.prototype,r5=t5.toString;function n5(e){return r5.call(e)}var i5=n5,bm=po,a5=e5,o5=i5,s5="[object Null]",l5="[object Undefined]",_m=bm?bm.toStringTag:void 0;function u5(e){return e==null?e===void 0?l5:s5:_m&&_m in Object(e)?a5(e):o5(e)}var qi=u5;function c5(e){return e!=null&&typeof e=="object"}var Gi=c5,d5=qi,f5=Gi,h5="[object Symbol]";function p5(e){return typeof e=="symbol"||f5(e)&&d5(e)==h5}var el=p5,m5=Xt,v5=el,g5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y5=/^\w*$/;function b5(e,t){if(m5(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||v5(e)?!0:y5.test(e)||!g5.test(e)||t!=null&&e in Object(t)}var Xd=b5;function _5(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var mo=_5,w5=qi,x5=mo,C5="[object AsyncFunction]",T5="[object Function]",S5="[object GeneratorFunction]",E5="[object Proxy]";function M5(e){if(!x5(e))return!1;var t=w5(e);return t==T5||t==S5||t==C5||t==E5}var yb=M5,P5=Jr,R5=P5["__core-js_shared__"],O5=R5,xu=O5,wm=function(){var e=/[^.]+$/.exec(xu&&xu.keys&&xu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function k5(e){return!!wm&&wm in e}var N5=k5,D5=Function.prototype,A5=D5.toString;function L5(e){if(e!=null){try{return A5.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var bb=L5,I5=yb,$5=N5,z5=mo,F5=bb,W5=/[\\^$.*+?()[\]{}|]/g,j5=/^\[object .+?Constructor\]$/,B5=Function.prototype,H5=Object.prototype,V5=B5.toString,U5=H5.hasOwnProperty,q5=RegExp("^"+V5.call(U5).replace(W5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function G5(e){if(!z5(e)||$5(e))return!1;var t=I5(e)?q5:j5;return t.test(F5(e))}var Y5=G5;function X5(e,t){return e==null?void 0:e[t]}var Z5=X5,K5=Y5,Q5=Z5;function J5(e,t){var r=Q5(e,t);return K5(r)?r:void 0}var Jn=J5,ez=Jn,tz=ez(Object,"create"),tl=tz,xm=tl;function rz(){this.__data__=xm?xm(null):{},this.size=0}var nz=rz;function iz(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var az=iz,oz=tl,sz="__lodash_hash_undefined__",lz=Object.prototype,uz=lz.hasOwnProperty;function cz(e){var t=this.__data__;if(oz){var r=t[e];return r===sz?void 0:r}return uz.call(t,e)?t[e]:void 0}var dz=cz,fz=tl,hz=Object.prototype,pz=hz.hasOwnProperty;function mz(e){var t=this.__data__;return fz?t[e]!==void 0:pz.call(t,e)}var vz=mz,gz=tl,yz="__lodash_hash_undefined__";function bz(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=gz&&t===void 0?yz:t,this}var _z=bz,wz=nz,xz=az,Cz=dz,Tz=vz,Sz=_z;function Yi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Yi.prototype.clear=wz;Yi.prototype.delete=xz;Yi.prototype.get=Cz;Yi.prototype.has=Tz;Yi.prototype.set=Sz;var Ez=Yi;function Mz(){this.__data__=[],this.size=0}var Pz=Mz;function Rz(e,t){return e===t||e!==e&&t!==t}var Zd=Rz,Oz=Zd;function kz(e,t){for(var r=e.length;r--;)if(Oz(e[r][0],t))return r;return-1}var rl=kz,Nz=rl,Dz=Array.prototype,Az=Dz.splice;function Lz(e){var t=this.__data__,r=Nz(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Az.call(t,r,1),--this.size,!0}var Iz=Lz,$z=rl;function zz(e){var t=this.__data__,r=$z(t,e);return r<0?void 0:t[r][1]}var Fz=zz,Wz=rl;function jz(e){return Wz(this.__data__,e)>-1}var Bz=jz,Hz=rl;function Vz(e,t){var r=this.__data__,n=Hz(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Uz=Vz,qz=Pz,Gz=Iz,Yz=Fz,Xz=Bz,Zz=Uz;function Xi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xi.prototype.clear=qz;Xi.prototype.delete=Gz;Xi.prototype.get=Yz;Xi.prototype.has=Xz;Xi.prototype.set=Zz;var nl=Xi,Kz=Jn,Qz=Jr,Jz=Kz(Qz,"Map"),Kd=Jz,Cm=Ez,eF=nl,tF=Kd;function rF(){this.size=0,this.__data__={hash:new Cm,map:new(tF||eF),string:new Cm}}var nF=rF;function iF(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var aF=iF,oF=aF;function sF(e,t){var r=e.__data__;return oF(t)?r[typeof t=="string"?"string":"hash"]:r.map}var il=sF,lF=il;function uF(e){var t=lF(this,e).delete(e);return this.size-=t?1:0,t}var cF=uF,dF=il;function fF(e){return dF(this,e).get(e)}var hF=fF,pF=il;function mF(e){return pF(this,e).has(e)}var vF=mF,gF=il;function yF(e,t){var r=gF(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var bF=yF,_F=nF,wF=cF,xF=hF,CF=vF,TF=bF;function Zi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Zi.prototype.clear=_F;Zi.prototype.delete=wF;Zi.prototype.get=xF;Zi.prototype.has=CF;Zi.prototype.set=TF;var Qd=Zi,_b=Qd,SF="Expected a function";function Jd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(SF);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var l=e.apply(this,n);return r.cache=o.set(a,l)||o,l};return r.cache=new(Jd.Cache||_b),r}Jd.Cache=_b;var EF=Jd,MF=EF,PF=500;function RF(e){var t=MF(e,function(n){return r.size===PF&&r.clear(),n}),r=t.cache;return t}var OF=RF,kF=OF,NF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,DF=/\\(\\)?/g,AF=kF(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(NF,function(r,n,a,o){t.push(a?o.replace(DF,"$1"):n||r)}),t}),LF=AF;function IF(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var wb=IF,Tm=po,$F=wb,zF=Xt,FF=el,WF=1/0,Sm=Tm?Tm.prototype:void 0,Em=Sm?Sm.toString:void 0;function xb(e){if(typeof e=="string")return e;if(zF(e))return $F(e,xb)+"";if(FF(e))return Em?Em.call(e):"";var t=e+"";return t=="0"&&1/e==-WF?"-0":t}var jF=xb,BF=jF;function HF(e){return e==null?"":BF(e)}var VF=HF,UF=Xt,qF=Xd,GF=LF,YF=VF;function XF(e,t){return UF(e)?e:qF(e,t)?[e]:GF(YF(e))}var al=XF,ZF=el,KF=1/0;function QF(e){if(typeof e=="string"||ZF(e))return e;var t=e+"";return t=="0"&&1/e==-KF?"-0":t}var vo=QF,JF=al,eW=vo;function tW(e,t){t=JF(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[eW(t[r++])];return r&&r==n?e:void 0}var ef=tW,rW=Jn,nW=function(){try{var e=rW(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),Cb=nW,Mm=Cb;function iW(e,t,r){t=="__proto__"&&Mm?Mm(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var aW=iW,oW=aW,sW=Zd,lW=Object.prototype,uW=lW.hasOwnProperty;function cW(e,t,r){var n=e[t];(!(uW.call(e,t)&&sW(n,r))||r===void 0&&!(t in e))&&oW(e,t,r)}var dW=cW,fW=9007199254740991,hW=/^(?:0|[1-9]\d*)$/;function pW(e,t){var r=typeof e;return t=t==null?fW:t,!!t&&(r=="number"||r!="symbol"&&hW.test(e))&&e>-1&&e%1==0&&e<t}var tf=pW,mW=dW,vW=al,gW=tf,Pm=mo,yW=vo;function bW(e,t,r,n){if(!Pm(e))return e;t=vW(t,e);for(var a=-1,o=t.length,l=o-1,u=e;u!=null&&++a<o;){var c=yW(t[a]),d=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=l){var p=u[c];d=n?n(p,c,u):void 0,d===void 0&&(d=Pm(p)?p:gW(t[a+1])?[]:{})}mW(u,c,d),u=u[c]}return e}var _W=bW,wW=ef,xW=_W,CW=al;function TW(e,t,r){for(var n=-1,a=t.length,o={};++n<a;){var l=t[n],u=wW(e,l);r(u,l)&&xW(o,CW(l,e),u)}return o}var SW=TW;function EW(e,t){return e!=null&&t in Object(e)}var MW=EW,PW=qi,RW=Gi,OW="[object Arguments]";function kW(e){return RW(e)&&PW(e)==OW}var NW=kW,Rm=NW,DW=Gi,Tb=Object.prototype,AW=Tb.hasOwnProperty,LW=Tb.propertyIsEnumerable,IW=Rm(function(){return arguments}())?Rm:function(e){return DW(e)&&AW.call(e,"callee")&&!LW.call(e,"callee")},ol=IW,$W=9007199254740991;function zW(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$W}var rf=zW,FW=al,WW=ol,jW=Xt,BW=tf,HW=rf,VW=vo;function UW(e,t,r){t=FW(t,e);for(var n=-1,a=t.length,o=!1;++n<a;){var l=VW(t[n]);if(!(o=e!=null&&r(e,l)))break;e=e[l]}return o||++n!=a?o:(a=e==null?0:e.length,!!a&&HW(a)&&BW(l,a)&&(jW(e)||WW(e)))}var qW=UW,GW=MW,YW=qW;function XW(e,t){return e!=null&&YW(e,t,GW)}var Sb=XW,ZW=SW,KW=Sb;function QW(e,t){return ZW(e,t,function(r,n){return KW(e,n)})}var JW=QW;function e4(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Eb=e4,Om=po,t4=ol,r4=Xt,km=Om?Om.isConcatSpreadable:void 0;function n4(e){return r4(e)||t4(e)||!!(km&&e&&e[km])}var i4=n4,a4=Eb,o4=i4;function Mb(e,t,r,n,a){var o=-1,l=e.length;for(r||(r=o4),a||(a=[]);++o<l;){var u=e[o];t>0&&r(u)?t>1?Mb(u,t-1,r,n,a):a4(a,u):n||(a[a.length]=u)}return a}var s4=Mb,l4=s4;function u4(e){var t=e==null?0:e.length;return t?l4(e,1):[]}var c4=u4;function d4(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var f4=d4,h4=f4,Nm=Math.max;function p4(e,t,r){return t=Nm(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,o=Nm(n.length-t,0),l=Array(o);++a<o;)l[a]=n[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=n[a];return u[t]=r(l),h4(e,this,u)}}var m4=p4;function v4(e){return function(){return e}}var g4=v4;function y4(e){return e}var nf=y4,b4=g4,Dm=Cb,_4=nf,w4=Dm?function(e,t){return Dm(e,"toString",{configurable:!0,enumerable:!1,value:b4(t),writable:!0})}:_4,x4=w4,C4=800,T4=16,S4=Date.now;function E4(e){var t=0,r=0;return function(){var n=S4(),a=T4-(n-r);if(r=n,a>0){if(++t>=C4)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var M4=E4,P4=x4,R4=M4,O4=R4(P4),k4=O4,N4=c4,D4=m4,A4=k4;function L4(e){return A4(D4(e,void 0,N4),e+"")}var I4=L4,$4=JW,z4=I4,F4=z4(function(e,t){return e==null?{}:$4(e,t)}),af=F4,Ye={};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.SCROLL_TO_Y=Ye.SCROLL_TO_X=Ye.SCROLL_END=Ye.SCROLL_START=Ye.PROP_CHANGE=Ye.INITIALIZE=Ye.COLUMN_RESIZE=Ye.COLUMN_REORDER_MOVE=Ye.COLUMN_REORDER_END=Ye.COLUMN_REORDER_START=void 0;var W4="COLUMN_REORDER_START";Ye.COLUMN_REORDER_START=W4;var j4="COLUMN_REORDER_END";Ye.COLUMN_REORDER_END=j4;var B4="COLUMN_REORDER_MOVE";Ye.COLUMN_REORDER_MOVE=B4;var H4="COLUMN_RESIZE";Ye.COLUMN_RESIZE=H4;var V4="INITIALIZE";Ye.INITIALIZE=V4;var U4="PROP_CHANGE";Ye.PROP_CHANGE=U4;var q4="SCROLL_START";Ye.SCROLL_START=q4;var G4="SCROLL_END";Ye.SCROLL_END=G4;var Y4="SCROLL_TO_X";Ye.SCROLL_TO_X=Y4;var X4="SCROLL_TO_Y";Ye.SCROLL_TO_Y=X4;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.resizeColumn=Nr.moveColumnReorder=Nr.stopColumnReorder=Nr.startColumnReorder=void 0;var sl=Ye,Z4=function(t){return{type:sl.COLUMN_REORDER_START,reorderData:t}};Nr.startColumnReorder=Z4;var K4=function(){return{type:sl.COLUMN_REORDER_END}};Nr.stopColumnReorder=K4;var Q4=function(t){return{type:sl.COLUMN_REORDER_MOVE,deltaX:t}};Nr.moveColumnReorder=Q4;var J4=function(t){return{type:sl.COLUMN_RESIZE,resizeData:t}};Nr.resizeColumn=J4;var Dr={};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.stopScroll=Dr.startScroll=Dr.scrollToY=Dr.scrollToX=void 0;var ll=Ye,ej=function(t){return{type:ll.SCROLL_TO_X,scrollX:t}};Dr.scrollToX=ej;var tj=function(t){return{type:ll.SCROLL_TO_Y,scrollY:t}};Dr.scrollToY=tj;var rj=function(){return{type:ll.SCROLL_START}};Dr.startScroll=rj;var nj=function(){return{type:ll.SCROLL_END}};Dr.stopScroll=nj;var Pb={},ij=qi,aj=Gi,oj="[object Number]";function sj(e){return typeof e=="number"||aj(e)&&ij(e)==oj}var lj=sj,uj=lj;function cj(e){return uj(e)&&e!=+e}var dj=cj,fr={};(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(d){return typeof d}:t=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},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(d){return u[d]}):c=Array.prototype.slice.call(arguments),c.map(a).join(" ")}var l=o;e.default=l})(fr);var Rb={};(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 d(){for(var p=arguments.length,m=new Array(p),h=0;h<p;h++)m[h]=arguments[h];d.reset();var g=function(){n.apply(o,m)};g.__SMmeta=n.__SMmeta,c=l(g,a)}return d.reset=function(){u(c)},d}var r=t;e.default=r})(Rb);var Sn={};(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})(Sn);var go={};(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),d=0;d<l.length;d++)if(!c(l[d])||a[l[d]]!==o[l[d]])return!1;return!0}var n=r;e.default=n})(go);var of={},En={};(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})(En);var Ob={},kb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=!1,r,n,a,o,l,u,c,d,p,m,h,g,_,y,w;function E(){if(!t){t=!0;var C=navigator.userAgent,x=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(C),P=/(Mac OS X)|(Windows)|(Linux)/.exec(C);if(g=/\b(iPhone|iP[ao]d)/.exec(C),_=/\b(iP[ao]d)/.exec(C),m=/Android/i.exec(C),y=/FBAN\/\w+;/i.exec(C),w=/Mobile/i.exec(C),h=!!/Win64/.exec(C),x){r=x[1]?parseFloat(x[1]):x[5]?parseFloat(x[5]):NaN,r&&document&&document.documentMode&&(r=document.documentMode);var R=/(?:Trident\/(\d+.\d+))/.exec(C);u=R?parseFloat(R[1])+4:r,n=x[2]?parseFloat(x[2]):NaN,a=x[3]?parseFloat(x[3]):NaN,o=x[4]?parseFloat(x[4]):NaN,o?(x=/(?:Chrome\/(\d+\.\d+))/.exec(C),l=x&&x[1]?parseFloat(x[1]):NaN):l=NaN}else r=n=a=l=o=NaN;if(P){if(P[1]){var D=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(C);c=D?parseFloat(D[1].replace("_",".")):!0}else c=!1;d=!!P[2],p=!!P[3]}else c=d=p=!1}}var S={ie:function(){return E()||r},ieCompatibilityMode:function(){return E()||u>r},ie64:function(){return S.ie()&&h},firefox:function(){return E()||n},opera:function(){return E()||a},webkit:function(){return E()||o},safari:function(){return S.webkit()},chrome:function(){return E()||l},windows:function(){return E()||d},osx:function(){return E()||c},linux:function(){return E()||p},iphone:function(){return E()||g},mobile:function(){return E()||g||_||m||w},nativeApp:function(){return E()||y},android:function(){return E()||m},ipad:function(){return E()||_}},T=S;e.default=T})(kb);var Nb={},sf={};(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})(sf);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(sf);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,d=c in document;if(!d){var p=document.createElement("div");p.setAttribute(c,"return;"),d=typeof p[c]=="function"}return!d&&n&&l==="wheel"&&(d=document.implementation.hasFeature("Events.wheel","3.0")),d}var o=a;e.default=o})(Nb);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(kb),r=n(Nb);function n(d){return d&&d.__esModule?d:{default:d}}var a=10,o=40,l=800;function u(d){var p=0,m=0,h=0,g=0;return"detail"in d&&(m=d.detail),"wheelDelta"in d&&(m=-d.wheelDelta/120),"wheelDeltaY"in d&&(m=-d.wheelDeltaY/120),"wheelDeltaX"in d&&(p=-d.wheelDeltaX/120),"axis"in d&&d.axis===d.HORIZONTAL_AXIS&&(p=m,m=0),h=p*a,g=m*a,"deltaY"in d&&(g=d.deltaY),"deltaX"in d&&(h=d.deltaX),(h||g)&&d.deltaMode&&(d.deltaMode==1?(h*=o,g*=o):(h*=l,g*=l)),h&&!p&&(p=h<1?-1:1),g&&!m&&(m=g<1?-1:1),{spinX:p,spinY:m,pixelX:h,pixelY:g}}u.getEventType=function(){return t.default.firefox()?"DOMMouseScroll":(0,r.default)("wheel")?"wheel":"mousewheel"};var c=u;e.default=c})(Ob);var ul={},Db={},Ki={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof O.commonjsGlobal!="undefined"?O.commonjsGlobal:typeof self!="undefined"?self:{},r=t;e.default=r})(Ki);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Ki);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})(Db);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(En),r=a(Db),n=a(Ki);function a(c){return c&&c.__esModule?c:{default:c}}var o=0,l=r.default||function(c){var d=Date.now(),p=Math.max(0,16-(d-o));return o=d+p,n.default.setTimeout(function(){c(Date.now())},p)};l(t.default);var u=l;e.default=u})(ul);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(En),r=a(Ob),n=a(ul);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 g=m[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}function u(p,m,h){return m&&l(p.prototype,m),h&&l(p,h),p}var c=function(){function p(m,h,g,_,y,w){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 g!="function"&&(g=g?t.default.thatReturnsTrue:t.default.thatReturnsFalse),this._handleScrollX=h,this._handleScrollY=g,this._preventDefault=y,this._stopPropagation=w,this._onWheelCallback=m,this.onWheel=this.onWheel.bind(this),this._isRTL=_}return u(p,[{key:"onWheel",value:function(h){this._preventDefault&&h.preventDefault();var g=(0,r.default)(h);h.shiftKey&&p._allowInternalAxesSwap()?g=p._swapNormalizedWheelAxis(g):h.shiftKey||(g.pixelX*=this._isRTL?-1:1);var _=this._deltaX+g.pixelX,y=this._deltaY+g.pixelY,w=this._handleScrollX(_,y),E=this._handleScrollY(y,_);if(!(!w&&!E)&&!(this._rootRef&&!this._contains(h.target))){this._deltaX+=w?g.pixelX:0,this._deltaY+=E?g.pixelY:0,h.defaultPrevented||h.preventDefault();var S;(this._deltaX!==0||this._deltaY!==0)&&(this._stopPropagation&&h.stopPropagation(),S=!0),S===!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 g=h;g!=document.body;){if(g===this._rootRef)return!0;g=g.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}(),d=c;e.default=d})(of);var Ab={},ei={},Ts="NOT_FOUND";function fj(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:Ts},put:function(n,a){t={key:n,value:a}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function hj(e,t){var r=[];function n(u){var c=r.findIndex(function(p){return t(u,p.key)});if(c>-1){var d=r[c];return c>0&&(r.splice(c,1),r.unshift(d)),d.value}return Ts}function a(u,c){n(u)===Ts&&(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 Lb=function(t,r){return t===r};function pj(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 Ib(e,t){var r=typeof t=="object"?t:{equalityCheck:t},n=r.equalityCheck,a=n===void 0?Lb:n,o=r.maxSize,l=o===void 0?1:o,u=r.resultEqualityCheck,c=pj(a),d=l===1?fj(c):hj(l,c);function p(){var m=d.get(arguments);if(m===Ts){if(m=e.apply(null,arguments),u){var h=d.getEntries(),g=h.find(function(_){return u(_.value,m)});g&&(m=g.value)}d.put(arguments,m)}return m}return p.clearCache=function(){return d.clear()},p}function mj(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 $b(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 d=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 g=m,_=g.memoizeOptions,y=_===void 0?r:_,w=Array.isArray(y)?y:[y],E=mj(u),S=e.apply(void 0,[function(){return d++,h.apply(null,arguments)}].concat(w)),T=e(function(){for(var x=[],P=E.length,R=0;R<P;R++)x.push(E[R].apply(null,arguments));return p=S.apply(null,x),p});return Object.assign(T,{resultFunc:h,memoizedResultFunc:S,dependencies:E,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),T};return a}var zb=$b(Ib),vj=function(t,r){if(r===void 0&&(r=zb),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,d,p){return c[n[p]]=d,c},{})});return a};const gj=Object.freeze(Object.defineProperty({__proto__:null,createSelector:zb,createSelectorCreator:$b,createStructuredSelector:vj,defaultEqualityCheck:Lb,defaultMemoize:Ib},Symbol.toStringTag,{value:"Module"})),yj=O.getAugmentedNamespace(gj);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=yj,r=n(go);function n(o){return o&&o.__esModule?o:{default:o}}var a=(0,t.createSelectorCreator)(t.defaultMemoize,r.default);e.default=a})(ei);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ei);function r(o){return o&&o.__esModule?o:{default:o}}function n(o,l,u){var c=1,d=1,p=o+2,m=o+1,h=2;return l&&(d++,m++,p++,h++),u&&m++,{ariaGroupHeaderIndex:c,ariaHeaderIndex:d,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})(Ab);var Fb={};function bj(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var _j=bj;function wj(e){return function(t,r,n){for(var a=-1,o=Object(t),l=n(t),u=l.length;u--;){var c=l[e?u:++a];if(r(o[c],c,o)===!1)break}return t}}var xj=wj,Cj=xj,Tj=Cj(),Sj=Tj;function Ej(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Mj=Ej,Dc={exports:{}};function Pj(){return!1}var Rj=Pj;(function(e,t){var r=Jr,n=Rj,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===a,u=l?r.Buffer:void 0,c=u?u.isBuffer:void 0,d=c||n;e.exports=d})(Dc,Dc.exports);var lf=Dc.exports,Oj=qi,kj=rf,Nj=Gi,Dj="[object Arguments]",Aj="[object Array]",Lj="[object Boolean]",Ij="[object Date]",$j="[object Error]",zj="[object Function]",Fj="[object Map]",Wj="[object Number]",jj="[object Object]",Bj="[object RegExp]",Hj="[object Set]",Vj="[object String]",Uj="[object WeakMap]",qj="[object ArrayBuffer]",Gj="[object DataView]",Yj="[object Float32Array]",Xj="[object Float64Array]",Zj="[object Int8Array]",Kj="[object Int16Array]",Qj="[object Int32Array]",Jj="[object Uint8Array]",eB="[object Uint8ClampedArray]",tB="[object Uint16Array]",rB="[object Uint32Array]",Ge={};Ge[Yj]=Ge[Xj]=Ge[Zj]=Ge[Kj]=Ge[Qj]=Ge[Jj]=Ge[eB]=Ge[tB]=Ge[rB]=!0;Ge[Dj]=Ge[Aj]=Ge[qj]=Ge[Lj]=Ge[Gj]=Ge[Ij]=Ge[$j]=Ge[zj]=Ge[Fj]=Ge[Wj]=Ge[jj]=Ge[Bj]=Ge[Hj]=Ge[Vj]=Ge[Uj]=!1;function nB(e){return Nj(e)&&kj(e.length)&&!!Ge[Oj(e)]}var iB=nB;function aB(e){return function(t){return e(t)}}var oB=aB,Ac={exports:{}};(function(e,t){var r=vb,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,l=o&&r.process,u=function(){try{var c=a&&a.require&&a.require("util").types;return c||l&&l.binding&&l.binding("util")}catch(d){}}();e.exports=u})(Ac,Ac.exports);var sB=Ac.exports,lB=iB,uB=oB,Am=sB,Lm=Am&&Am.isTypedArray,cB=Lm?uB(Lm):lB,uf=cB,dB=Mj,fB=ol,hB=Xt,pB=lf,mB=tf,vB=uf,gB=Object.prototype,yB=gB.hasOwnProperty;function bB(e,t){var r=hB(e),n=!r&&fB(e),a=!r&&!n&&pB(e),o=!r&&!n&&!a&&vB(e),l=r||n||a||o,u=l?dB(e.length,String):[],c=u.length;for(var d in e)(t||yB.call(e,d))&&!(l&&(d=="length"||a&&(d=="offset"||d=="parent")||o&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||mB(d,c)))&&u.push(d);return u}var _B=bB,wB=Object.prototype;function xB(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||wB;return e===r}var Wb=xB;function CB(e,t){return function(r){return e(t(r))}}var TB=CB,SB=TB,EB=SB(Object.keys,Object),MB=EB,PB=Wb,RB=MB,OB=Object.prototype,kB=OB.hasOwnProperty;function NB(e){if(!PB(e))return RB(e);var t=[];for(var r in Object(e))kB.call(e,r)&&r!="constructor"&&t.push(r);return t}var jb=NB,DB=yb,AB=rf;function LB(e){return e!=null&&AB(e.length)&&!DB(e)}var cl=LB,IB=_B,$B=jb,zB=cl;function FB(e){return zB(e)?IB(e):$B(e)}var cf=FB,WB=Sj,jB=cf;function BB(e,t){return e&&WB(e,t,jB)}var HB=BB,VB=cl;function UB(e,t){return function(r,n){if(r==null)return r;if(!VB(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 qB=UB,GB=HB,YB=qB,XB=YB(GB),df=XB,ZB=nf;function KB(e){return typeof e=="function"?e:ZB}var QB=KB,JB=_j,eH=df,tH=QB,rH=Xt;function nH(e,t){var r=rH(e)?JB:eH;return r(e,tH(t))}var ff=nH,hf={},iH=nl;function aH(){this.__data__=new iH,this.size=0}var oH=aH;function sH(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var lH=sH;function uH(e){return this.__data__.get(e)}var cH=uH;function dH(e){return this.__data__.has(e)}var fH=dH,hH=nl,pH=Kd,mH=Qd,vH=200;function gH(e,t){var r=this.__data__;if(r instanceof hH){var n=r.__data__;if(!pH||n.length<vH-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new mH(n)}return r.set(e,t),this.size=r.size,this}var yH=gH,bH=nl,_H=oH,wH=lH,xH=cH,CH=fH,TH=yH;function Qi(e){var t=this.__data__=new bH(e);this.size=t.size}Qi.prototype.clear=_H;Qi.prototype.delete=wH;Qi.prototype.get=xH;Qi.prototype.has=CH;Qi.prototype.set=TH;var Bb=Qi,SH="__lodash_hash_undefined__";function EH(e){return this.__data__.set(e,SH),this}var MH=EH;function PH(e){return this.__data__.has(e)}var RH=PH,OH=Qd,kH=MH,NH=RH;function Ss(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new OH;++t<r;)this.add(e[t])}Ss.prototype.add=Ss.prototype.push=kH;Ss.prototype.has=NH;var DH=Ss;function AH(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var LH=AH;function IH(e,t){return e.has(t)}var $H=IH,zH=DH,FH=LH,WH=$H,jH=1,BH=2;function HH(e,t,r,n,a,o){var l=r&jH,u=e.length,c=t.length;if(u!=c&&!(l&&c>u))return!1;var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var m=-1,h=!0,g=r&BH?new zH:void 0;for(o.set(e,t),o.set(t,e);++m<u;){var _=e[m],y=t[m];if(n)var w=l?n(y,_,m,t,e,o):n(_,y,m,e,t,o);if(w!==void 0){if(w)continue;h=!1;break}if(g){if(!FH(t,function(E,S){if(!WH(g,S)&&(_===E||a(_,E,r,n,o)))return g.push(S)})){h=!1;break}}else if(!(_===y||a(_,y,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}var Hb=HH,VH=Jr,UH=VH.Uint8Array,qH=UH;function GH(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var YH=GH;function XH(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var ZH=XH,Im=po,$m=qH,KH=Zd,QH=Hb,JH=YH,eV=ZH,tV=1,rV=2,nV="[object Boolean]",iV="[object Date]",aV="[object Error]",oV="[object Map]",sV="[object Number]",lV="[object RegExp]",uV="[object Set]",cV="[object String]",dV="[object Symbol]",fV="[object ArrayBuffer]",hV="[object DataView]",zm=Im?Im.prototype:void 0,Cu=zm?zm.valueOf:void 0;function pV(e,t,r,n,a,o,l){switch(r){case hV:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fV:return!(e.byteLength!=t.byteLength||!o(new $m(e),new $m(t)));case nV:case iV:case sV:return KH(+e,+t);case aV:return e.name==t.name&&e.message==t.message;case lV:case cV:return e==t+"";case oV:var u=JH;case uV:var c=n&tV;if(u||(u=eV),e.size!=t.size&&!c)return!1;var d=l.get(e);if(d)return d==t;n|=rV,l.set(e,t);var p=QH(u(e),u(t),n,a,o,l);return l.delete(e),p;case dV:if(Cu)return Cu.call(e)==Cu.call(t)}return!1}var mV=pV,vV=Eb,gV=Xt;function yV(e,t,r){var n=t(e);return gV(e)?n:vV(n,r(e))}var bV=yV;function _V(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r<n;){var l=e[r];t(l,r,e)&&(o[a++]=l)}return o}var wV=_V;function xV(){return[]}var CV=xV,TV=wV,SV=CV,EV=Object.prototype,MV=EV.propertyIsEnumerable,Fm=Object.getOwnPropertySymbols,PV=Fm?function(e){return e==null?[]:(e=Object(e),TV(Fm(e),function(t){return MV.call(e,t)}))}:SV,RV=PV,OV=bV,kV=RV,NV=cf;function DV(e){return OV(e,NV,kV)}var AV=DV,Wm=AV,LV=1,IV=Object.prototype,$V=IV.hasOwnProperty;function zV(e,t,r,n,a,o){var l=r&LV,u=Wm(e),c=u.length,d=Wm(t),p=d.length;if(c!=p&&!l)return!1;for(var m=c;m--;){var h=u[m];if(!(l?h in t:$V.call(t,h)))return!1}var g=o.get(e),_=o.get(t);if(g&&_)return g==t&&_==e;var y=!0;o.set(e,t),o.set(t,e);for(var w=l;++m<c;){h=u[m];var E=e[h],S=t[h];if(n)var T=l?n(S,E,h,t,e,o):n(E,S,h,e,t,o);if(!(T===void 0?E===S||a(E,S,r,n,o):T)){y=!1;break}w||(w=h=="constructor")}if(y&&!w){var C=e.constructor,x=t.constructor;C!=x&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof x=="function"&&x instanceof x)&&(y=!1)}return o.delete(e),o.delete(t),y}var FV=zV,WV=Jn,jV=Jr,BV=WV(jV,"DataView"),HV=BV,VV=Jn,UV=Jr,qV=VV(UV,"Promise"),GV=qV,YV=Jn,XV=Jr,ZV=YV(XV,"Set"),KV=ZV,QV=Jn,JV=Jr,e6=QV(JV,"WeakMap"),t6=e6,Lc=HV,Ic=Kd,$c=GV,zc=KV,Fc=t6,Vb=qi,Ji=bb,jm="[object Map]",r6="[object Object]",Bm="[object Promise]",Hm="[object Set]",Vm="[object WeakMap]",Um="[object DataView]",n6=Ji(Lc),i6=Ji(Ic),a6=Ji($c),o6=Ji(zc),s6=Ji(Fc),Bn=Vb;(Lc&&Bn(new Lc(new ArrayBuffer(1)))!=Um||Ic&&Bn(new Ic)!=jm||$c&&Bn($c.resolve())!=Bm||zc&&Bn(new zc)!=Hm||Fc&&Bn(new Fc)!=Vm)&&(Bn=function(e){var t=Vb(e),r=t==r6?e.constructor:void 0,n=r?Ji(r):"";if(n)switch(n){case n6:return Um;case i6:return jm;case a6:return Bm;case o6:return Hm;case s6:return Vm}return t});var Ub=Bn,Tu=Bb,l6=Hb,u6=mV,c6=FV,qm=Ub,Gm=Xt,Ym=lf,d6=uf,f6=1,Xm="[object Arguments]",Zm="[object Array]",Qo="[object Object]",h6=Object.prototype,Km=h6.hasOwnProperty;function p6(e,t,r,n,a,o){var l=Gm(e),u=Gm(t),c=l?Zm:qm(e),d=u?Zm:qm(t);c=c==Xm?Qo:c,d=d==Xm?Qo:d;var p=c==Qo,m=d==Qo,h=c==d;if(h&&Ym(e)){if(!Ym(t))return!1;l=!0,p=!1}if(h&&!p)return o||(o=new Tu),l||d6(e)?l6(e,t,r,n,a,o):u6(e,t,c,r,n,a,o);if(!(r&f6)){var g=p&&Km.call(e,"__wrapped__"),_=m&&Km.call(t,"__wrapped__");if(g||_){var y=g?e.value():e,w=_?t.value():t;return o||(o=new Tu),a(y,w,r,n,o)}}return h?(o||(o=new Tu),c6(e,t,r,n,a,o)):!1}var m6=p6,v6=m6,Qm=Gi;function qb(e,t,r,n,a){return e===t?!0:e==null||t==null||!Qm(e)&&!Qm(t)?e!==e&&t!==t:v6(e,t,r,n,qb,a)}var Gb=qb,g6=Bb,y6=Gb,b6=1,_6=2;function w6(e,t,r,n){var a=r.length,o=a,l=!n;if(e==null)return!o;for(e=Object(e);a--;){var u=r[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<o;){u=r[a];var c=u[0],d=e[c],p=u[1];if(l&&u[2]){if(d===void 0&&!(c in e))return!1}else{var m=new g6;if(n)var h=n(d,p,c,e,t,m);if(!(h===void 0?y6(p,d,b6|_6,n,m):h))return!1}}return!0}var x6=w6,C6=mo;function T6(e){return e===e&&!C6(e)}var Yb=T6,S6=Yb,E6=cf;function M6(e){for(var t=E6(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,S6(a)]}return t}var P6=M6;function R6(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Xb=R6,O6=x6,k6=P6,N6=Xb;function D6(e){var t=k6(e);return t.length==1&&t[0][2]?N6(t[0][0],t[0][1]):function(r){return r===e||O6(r,e,t)}}var A6=D6,L6=ef;function I6(e,t,r){var n=e==null?void 0:L6(e,t);return n===void 0?r:n}var $6=I6,z6=Gb,F6=$6,W6=Sb,j6=Xd,B6=Yb,H6=Xb,V6=vo,U6=1,q6=2;function G6(e,t){return j6(e)&&B6(t)?H6(V6(e),t):function(r){var n=F6(r,e);return n===void 0&&n===t?W6(r,e):z6(t,n,U6|q6)}}var Y6=G6;function X6(e){return function(t){return t==null?void 0:t[e]}}var Z6=X6,K6=ef;function Q6(e){return function(t){return K6(t,e)}}var J6=Q6,e8=Z6,t8=J6,r8=Xd,n8=vo;function i8(e){return r8(e)?e8(n8(e)):t8(e)}var a8=i8,o8=A6,s8=Y6,l8=nf,u8=Xt,c8=a8;function d8(e){return typeof e=="function"?e:e==null?l8:typeof e=="object"?u8(e)?s8(e[0],e[1]):o8(e):c8(e)}var Zb=d8,f8=df,h8=cl;function p8(e,t){var r=-1,n=h8(e)?Array(e.length):[];return f8(e,function(a,o,l){n[++r]=t(a,o,l)}),n}var m8=p8,v8=wb,g8=Zb,y8=m8,b8=Xt;function _8(e,t){var r=b8(e)?v8:y8;return r(e,g8(t))}var Kb=_8,Mn={};function w8(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 x8=w8;function C8(e,t,r,n,a){return a(e,function(o,l,u){r=n?(n=!1,o):t(r,o,l,u)}),r}var T8=C8,S8=x8,E8=df,M8=Zb,P8=T8,R8=Xt;function O8(e,t,r){var n=R8(e)?S8:P8,a=arguments.length<3;return n(e,M8(t),r,a,E8)}var k8=O8;Object.defineProperty(Mn,"__esModule",{value:!0});Mn.sumPropWidths=D8;Mn.getTotalWidth=A8;Mn.getTotalFlexGrow=L8;var pf=N8(k8);function N8(e){return e&&e.__esModule?e:{default:e}}function D8(e){return(0,pf.default)(e,function(t,r){return t+r.props.width},0)}function A8(e){return(0,pf.default)(e,function(t,r){return t+r.width},0)}function L8(e){return(0,pf.default)(e,function(t,r){return t+(r.flexGrow||0)},0)}var ea={},dl={},fl={};(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})(fl);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ScrollbarState=void 0;var t=a(fl),r=a(ei),n=Mn;function a(g){return g&&g.__esModule?g:{default:g}}var o=1,l=3,u=6,c={HIDDEN:"hidden",JOINT_SCROLLBARS:"JOINT_SCROLLBARS",VISIBLE:"visible"};e.ScrollbarState=c;function d(g,_,y,w,E,S,T){var C=_.cellGroupWrapperHeight,x=_.footerHeight,P=_.headerHeight,R=_.groupHeaderHeight,D=C?0:2*o,A=x+P+R+D,I=E.height,N=E.maxHeight,k=E.useMaxHeight,W=E.width,j=Math.round(k?N:I),$=j-A,B=p(g,w,W,T),G=$,q=$;switch(B){case c.VISIBLE:{G-=S,q-=S;break}case c.JOINT_SCROLLBARS:{G-=S;break}}return{bufferRowCount:m(q,y),minAvailableHeight:Math.max(G,0),maxAvailableHeight:Math.max(q,0),reservedHeight:A,scrollStateX:B}}function p(g,_,y,w){var E=_.overflowX,S=_.showScrollbarX,T=(0,n.getTotalWidth)(g);return E==="hidden"||S===!1?c.HIDDEN:T>y?c.VISIBLE:T>y-w?c.JOINT_SCROLLBARS:c.HIDDEN}function m(g,_){var y=_.bufferRowCount,w=_.rowHeight,E=_.subRowHeight;if(y!==void 0)return console.log("buffer set: "+y),y;var S=w+E,T=Math.ceil(g/S)+1;return(0,t.default)(Math.floor(T/2),l,u)}var h=(0,r.default)([function(g){return g.columnProps},function(g){return g.elementHeights},function(g){return g.rowSettings},function(g){return g.scrollFlags},function(g){return g.tableSize},function(g){return g.scrollbarXHeight},function(g){return g.scrollbarYWidth}],d);e.default=h})(dl);(function(e){function t(d){"@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(d)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(ei),n=o(dl);function a(d){if(typeof WeakMap!="function")return null;var p=new WeakMap,m=new WeakMap;return(a=function(g){return g?m:p})(d)}function o(d,p){if(d&&d.__esModule)return d;if(d===null||t(d)!=="object"&&typeof d!="function")return{default:d};var m=a(p);if(m&&m.has(d))return m.get(d);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in d)if(_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)){var y=g?Object.getOwnPropertyDescriptor(d,_):null;y&&(y.get||y.set)?Object.defineProperty(h,_,y):h[_]=d[_]}return h.default=d,m&&m.set(d,h),h}function l(d){return d&&d.__esModule?d:{default:d}}function u(d,p,m){var h=m.overflowY,g=m.showScrollbarY,_=h!=="hidden"&&g!==!1,y=d.minAvailableHeight,w=d.maxAvailableHeight,E=d.scrollStateX,S=!1,T=!1;E===n.ScrollbarState.VISIBLE&&(T=!0),_&&p>w&&(S=!0),S&&E===n.ScrollbarState.JOINT_SCROLLBARS&&(T=!0);var C=w;return T&&(C=y),{availableHeight:C,scrollEnabledX:T,scrollEnabledY:S}}var c=(0,r.default)([n.default,function(d){return d.scrollContentHeight},function(d){return d.scrollFlags}],u);e.default=c})(ea);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l(ff),r=l(Kb),n=l(ei),a=Mn,o=l(ea);function l(h){return h&&h.__esModule?h:{default:h}}function u(){return u=Object.assign||function(h){for(var g=1;g<arguments.length;g++){var _=arguments[g];for(var y in _)Object.prototype.hasOwnProperty.call(_,y)&&(h[y]=_[y])}return h},u.apply(this,arguments)}function c(h,g,_,y,w){var E=_?w:0,S=y-E,T=d(h,g,S),C=T.newColumnGroupProps,x=T.newColumnProps,P=p(x),R=P.fixedColumns,D=P.fixedRightColumns,A=P.scrollableColumns,I=S-(0,a.getTotalWidth)(R)-(0,a.getTotalWidth)(D),N=Math.max(0,(0,a.getTotalWidth)(x)-S);return{columnGroupProps:C,columnProps:x,availableScrollWidth:I,fixedColumns:R,fixedRightColumns:D,scrollableColumns:A,maxScrollX:N}}function d(h,g,_){var y=g,w=(0,a.getTotalFlexGrow)(g);if(w!==0){var E=(0,a.getTotalWidth)(g),S=Math.max(_-E,0);y=(0,r.default)(g,function(x){var P=x.flexGrow;if(!P)return x;var R=Math.floor(P*S/w),D=x.width+R;return w-=P,S-=R,u({},x,{width:D})})}var T=(0,r.default)(h,function(){return 0});(0,t.default)(y,function(x){x.groupIdx!==void 0&&(T[x.groupIdx]+=x.width)});var C=(0,r.default)(h,function(x,P){return T[P]===x.width?x:u({},x,{width:T[P]})});return{newColumnGroupProps:C,newColumnProps:y}}function p(h){var g=[],_=[],y=[];return(0,t.default)(h,function(w){var E=y;w.fixed?E=g:w.fixedRight&&(E=_),E.push(w)}),{fixedColumns:g,fixedRightColumns:_,scrollableColumns:y}}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})(hf);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(ff),r=a(ei),n=a(hf);function a(u){return u&&u.__esModule?u:{default:u}}function o(u,c){var d=u.columnGroupProps,p=u.columnProps,m=[],h=[],g=[];(0,t.default)(d,function(E,S){var T={props:E,template:c.groupHeader[S]};E.fixed?m.push(T):E.fixedRight?h.push(T):g.push(T)});var _={cell:[],header:[],footer:[]},y={cell:[],header:[],footer:[]},w={cell:[],header:[],footer:[]};return(0,t.default)(p,function(E,S){var T=w;E.fixed?T=_:E.fixedRight&&(T=y),T.cell.push({props:E,template:c.cell[S]}),T.header.push({props:E,template:c.header[S]}),T.footer.push({props:E,template:c.footer[S]})}),{fixedColumnGroups:m,fixedColumns:_,fixedRightColumnGroups:h,fixedRightColumns:y,scrollableColumnGroups:g,scrollableColumns:w}}var l=(0,r.default)([function(u){return(0,n.default)(u)},function(u){return u.elementTemplates}],o);e.default=l})(Fb);var mf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(ei),r=a(dl),n=a(ea);function a(u){return u&&u.__esModule?u:{default:u}}function o(u,c,d,p,m,h,g){var _=m.availableHeight,y=m.scrollEnabledX,w=d;y&&(w+=g);var E=Math.min(_,p),S=h?E:_,T=S+w,C=S;c<T&&(C=c-w);var x=h?p:Math.max(p,_),P=x+w;c&&(P=Math.max(c,P));var R=u.footerHeight,D=u.groupHeaderHeight,A=u.headerHeight,I=D+A,N=I+C,k=N+R,W=Math.max(0,N-I);return{bodyHeight:E,bodyOffsetTop:I,componentHeight:T,contentHeight:P,footOffsetTop:N,scrollbarXOffsetTop:k,scrollbarYHeight:W,visibleRowsHeight:C}}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})(mf);var Qb={},hl={},Jb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(En);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})(Jb);var e_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Ki);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})(e_);var pl={};(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})(pl);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(Jb),r=o(e_),n=o(ul),a=o(pl);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 g=0;g<h.length;g++){var _=h[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}function c(m,h,g){return h&&u(m.prototype,h),m}var d=function(){function m(h,g,_,y){l(this,m),this._isDragging=!1,this._isTouchEnabled=y,this._animationFrameID=null,this._domNode=_,this._onMove=h,this._onMoveEnd=g,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(g){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(g),y=_.x,w=_.y;this._x=y,this._y=w}g.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(g){var _=a.default.getCoordinatesFromEvent(g),y=_.x,w=_.y;this._deltaX+=y-this._x,this._deltaY+=w-this._y,this._animationFrameID===null&&(this._animationFrameID=(0,n.default)(this._didMouseMove)),this._x=y,this._y=w,g.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=d;e.default=p})(hl);(function(e){function t(x){"@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(x)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(J),n=u(Ht),a=u(fl),o=u(fr),l=u(hl);function u(x){return x&&x.__esModule?x:{default:x}}function c(x,P){if(!(x instanceof P))throw new TypeError("Cannot call a class as a function")}function d(x,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(x,D.key,D)}}function p(x,P,R){return P&&d(x.prototype,P),x}function m(x,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(P&&P.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),P&&h(x,P)}function h(x,P){return h=Object.setPrototypeOf||function(D,A){return D.__proto__=A,D},h(x,P)}function g(x){var P=w();return function(){var D=E(x),A;if(P){var I=E(this).constructor;A=Reflect.construct(D,arguments,I)}else A=D.apply(this,arguments);return _(this,A)}}function _(x,P){return P&&(t(P)==="object"||typeof P=="function")?P:y(x)}function y(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}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(x){return!1}}function E(x){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},E(x)}function S(x,P,R){return P in x?Object.defineProperty(x,P,{value:R,enumerable:!0,configurable:!0,writable:!0}):x[P]=R,x}var T=function(x){m(R,x);var P=g(R);function R(){var D;c(this,R);for(var A=arguments.length,I=new Array(A),N=0;N<A;N++)I[N]=arguments[N];return D=P.call.apply(P,[this].concat(I)),S(y(D),"state",{width:0,cursorDelta:0}),S(y(D),"_onMove",function(k){D.props.isRTL&&(k=-k);var W=D.state.cursorDelta+k,j=(0,a.default)(W,D.props.minWidth,D.props.maxWidth);D.setState({width:j,cursorDelta:W})}),S(y(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);S(T,"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 C=T;e.default=C})(Qb);var t_={};function I8(e,t){return e==null||e!==e?t:e}var $8=I8,z8=Math.max,F8=Math.min;function W8(e,t,r){return e>=F8(t,r)&&e<z8(t,r)}var j8=W8,B8=/\s/;function H8(e){for(var t=e.length;t--&&B8.test(e.charAt(t)););return t}var V8=H8,U8=V8,q8=/^\s+/;function G8(e){return e&&e.slice(0,U8(e)+1).replace(q8,"")}var Y8=G8,X8=Y8,Jm=mo,Z8=el,ev=NaN,K8=/^[-+]0x[0-9a-f]+$/i,Q8=/^0b[01]+$/i,J8=/^0o[0-7]+$/i,e7=parseInt;function t7(e){if(typeof e=="number")return e;if(Z8(e))return ev;if(Jm(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Jm(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=X8(e);var r=Q8.test(e);return r||J8.test(e)?e7(e.slice(2),r?2:8):K8.test(e)?ev:+e}var vf=t7,r7=vf,tv=1/0,n7=17976931348623157e292;function i7(e){if(!e)return e===0?e:0;if(e=r7(e),e===tv||e===-tv){var t=e<0?-1:1;return t*n7}return e===e?e:0}var a7=i7,o7=j8,rv=a7,s7=vf;function l7(e,t,r){return t=rv(t),r===void 0?(r=t,t=0):r=rv(r),e=s7(e),o7(e,t,r)}var u7=l7;function c7(e){return e==null}var r_=c7,gf={},n_={},i_={},yf={};(function(e){function t(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(N){return typeof N}:t=function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},t(A)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(J),n=l(Ht),a=l(fr),o=l(Sn);function l(A){return A&&A.__esModule?A:{default:A}}function u(){return u=Object.assign||function(A){for(var I=1;I<arguments.length;I++){var N=arguments[I];for(var k in N)Object.prototype.hasOwnProperty.call(N,k)&&(A[k]=N[k])}return A},u.apply(this,arguments)}function c(A,I){var N=Object.keys(A);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(A);I&&(k=k.filter(function(W){return Object.getOwnPropertyDescriptor(A,W).enumerable})),N.push.apply(N,k)}return N}function d(A){for(var I=1;I<arguments.length;I++){var N=arguments[I]!=null?arguments[I]:{};I%2?c(Object(N),!0).forEach(function(k){P(A,k,N[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(N)):c(Object(N)).forEach(function(k){Object.defineProperty(A,k,Object.getOwnPropertyDescriptor(N,k))})}return A}function p(A,I){if(A==null)return{};var N=m(A,I),k,W;if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(A);for(W=0;W<j.length;W++)k=j[W],!(I.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(A,k)&&(N[k]=A[k])}return N}function m(A,I){if(A==null)return{};var N={},k=Object.keys(A),W,j;for(j=0;j<k.length;j++)W=k[j],!(I.indexOf(W)>=0)&&(N[W]=A[W]);return N}function h(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function g(A,I){for(var N=0;N<I.length;N++){var k=I[N];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(A,k.key,k)}}function _(A,I,N){return I&&g(A.prototype,I),A}function y(A,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),I&&w(A,I)}function w(A,I){return w=Object.setPrototypeOf||function(k,W){return k.__proto__=W,k},w(A,I)}function E(A){var I=C();return function(){var k=x(A),W;if(I){var j=x(this).constructor;W=Reflect.construct(k,arguments,j)}else W=k.apply(this,arguments);return S(this,W)}}function S(A,I){return I&&(t(I)==="object"||typeof I=="function")?I:T(A)}function T(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}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(A){return!1}}function x(A){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)},x(A)}function P(A,I,N){return I in A?Object.defineProperty(A,I,{value:N,enumerable:!0,configurable:!0,writable:!0}):A[I]=N,A}var R=function(A){y(N,A);var I=E(N);function N(){return h(this,N),I.apply(this,arguments)}return _(N,[{key:"render",value:function(){var W=this.props,j=W.height,$=W.width,B=W.style,G=W.className,q=W.children,U=p(W,["height","width","isVisible","style","className","children","columnKey","rowIndex"]),z=d({height:j,width:$},B);return r.default.createElement("div",u({},U,{className:(0,o.default)((0,a.default)("fixedDataTableCellLayout/wrap1"),(0,a.default)("public/fixedDataTableCell/wrap1"),G),style:z}),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))))}}]),N}(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})(yf);var a_={};(function(e){function t(x){"@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(x)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(J),n=u(Ht),a=u(fr),o=u(hl),l=u(pl);function u(x){return x&&x.__esModule?x:{default:x}}function c(x,P){if(!(x instanceof P))throw new TypeError("Cannot call a class as a function")}function d(x,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(x,D.key,D)}}function p(x,P,R){return P&&d(x.prototype,P),x}function m(x,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(P&&P.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),P&&h(x,P)}function h(x,P){return h=Object.setPrototypeOf||function(D,A){return D.__proto__=A,D},h(x,P)}function g(x){var P=w();return function(){var D=E(x),A;if(P){var I=E(this).constructor;A=Reflect.construct(D,arguments,I)}else A=D.apply(this,arguments);return _(this,A)}}function _(x,P){return P&&(t(P)==="object"||typeof P=="function")?P:y(x)}function y(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}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(x){return!1}}function E(x){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},E(x)}function S(x,P,R){return P in x?Object.defineProperty(x,P,{value:R,enumerable:!0,configurable:!0,writable:!0}):x[P]=R,x}var T=function(x){m(R,x);var P=g(R);function R(){var D;c(this,R);for(var A=arguments.length,I=new Array(A),N=0;N<A;N++)I[N]=arguments[N];return D=P.call.apply(P,[this].concat(I)),S(y(D),"state",{dragDistance:0}),S(y(D),"onMouseDown",function(k){var W=k.target.getBoundingClientRect(),j=l.default.getCoordinatesFromEvent(k),$=j.x-W.left,B=$+k.target.parentElement.offsetLeft;D._mouseMoveTracker=new o.default(D._onMove,D._onColumnReorderEnd,document.body,D.props.touchEnabled),D._mouseMoveTracker.captureMouseMoves(k),D.setState({dragDistance:0}),D.props.onMouseDown({columnKey:D.props.columnKey,mouseLocation:{dragDistance:0,inElement:$,inColumnGroup:B}}),D._distance=0,D._animating=!0,D.frameId=requestAnimationFrame(D._updateState),D.props.touchEnabled&&k.stopPropagation()}),S(y(D),"_onMove",function(k){D._distance=D.state.dragDistance+k*(D.props.isRTL?-1:1)}),S(y(D),"_onColumnReorderEnd",function(k){D._animating=!1,cancelAnimationFrame(D.frameId),D.frameId=null,D._mouseMoveTracker&&D._mouseMoveTracker.releaseMouseMoves(),D.props.columnReorderingData.cancelReorder=k,D.props.onColumnReorderEnd()}),S(y(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(I){return I.stopPropagation()}:null,onTouchMove:this.props.touchEnabled?function(I){return I.stopPropagation()}:null,style:A})}}]),R}(r.default.PureComponent);S(T,"propTypes",{onColumnReorderEnd:n.default.func,columnKey:n.default.oneOfType([n.default.string,n.default.number]),touchEnabled:n.default.bool,isRTL:n.default.bool});var C=T;e.default=C})(a_);function o_(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function s_(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n!=null?n:null}this.setState(t.bind(this))}function l_(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}}o_.__suppressDeprecationWarning=!0;s_.__suppressDeprecationWarning=!0;l_.__suppressDeprecationWarning=!0;function d7(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=o_,t.componentWillReceiveProps=s_),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=l_;var u=t.componentDidUpdate;t.componentDidUpdate=function(d,p,m){var h=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;u.call(this,d,p,h)}}return e}const f7=Object.freeze(Object.defineProperty({__proto__:null,polyfill:d7},Symbol.toStringTag,{value:"Module"})),u_=O.getAugmentedNamespace(f7);(function(e){function t(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(W){return typeof W}:t=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},t(N)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=p(J),n=p(Ht),a=p(fr),o=p(Sn),l=p(go),u=p(yf),c=p(a_),d=u_;function p(N){return N&&N.__esModule?N:{default:N}}function m(){return m=Object.assign||function(N){for(var k=1;k<arguments.length;k++){var W=arguments[k];for(var j in W)Object.prototype.hasOwnProperty.call(W,j)&&(N[j]=W[j])}return N},m.apply(this,arguments)}function h(N,k){if(N==null)return{};var W=g(N,k),j,$;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(N);for($=0;$<B.length;$++)j=B[$],!(k.indexOf(j)>=0)&&Object.prototype.propertyIsEnumerable.call(N,j)&&(W[j]=N[j])}return W}function g(N,k){if(N==null)return{};var W={},j=Object.keys(N),$,B;for(B=0;B<j.length;B++)$=j[B],!(k.indexOf($)>=0)&&(W[$]=N[$]);return W}function _(N,k){if(!(N instanceof k))throw new TypeError("Cannot call a class as a function")}function y(N,k){for(var W=0;W<k.length;W++){var j=k[W];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(N,j.key,j)}}function w(N,k,W){return k&&y(N.prototype,k),W&&y(N,W),N}function E(N,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(k&&k.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),k&&S(N,k)}function S(N,k){return S=Object.setPrototypeOf||function(j,$){return j.__proto__=$,j},S(N,k)}function T(N){var k=P();return function(){var j=R(N),$;if(k){var B=R(this).constructor;$=Reflect.construct(j,arguments,B)}else $=j.apply(this,arguments);return C(this,$)}}function C(N,k){return k&&(t(k)==="object"||typeof k=="function")?k:x(N)}function x(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}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(N){return!1}}function R(N){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)},R(N)}function D(N,k,W){return k in N?Object.defineProperty(N,k,{value:W,enumerable:!0,configurable:!0,writable:!0}):N[k]=W,N}var A=function(N){E(W,N);var k=T(W);function W(){var j;_(this,W);for(var $=arguments.length,B=new Array($),G=0;G<$;G++)B[G]=arguments[G];return j=k.call.apply(k,[this].concat(B)),D(x(j),"state",{isReorderingThisColumn:!1,displacement:0,reorderingDisplacement:0}),D(x(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(x(j),"_onColumnReorderMouseDown",function(q){j.props.onColumnReorder(j.props.columnKey,j.props.width,j.props.left,q)}),D(x(j),"_suppressEvent",function(q){q.preventDefault(),q.stopPropagation()}),j}return w(W,[{key:"shouldComponentUpdate",value:function($){if($.isScrolling&&this.props.rowIndex===$.rowIndex&&this.props.isVisible===$.isVisible)return!1;if(!$.pureRendering)return!0;var B=this.props,G=B.cell,q=h(B,["cell"]),U=$.cell,z=h($,["cell"]);return!(0,l.default)(q,z)||!G||!U||G.type!==U.type||!(0,l.default)(G.props,U.props)}},{key:"render",value:function(){var $=this.props,B=$.height,G=$.width,q=$.isVisible,U=$.columnKey,z=$.isHeaderOrFooter,H=h($,["height","width","isVisible","columnKey","isHeaderOrFooter"]),ee={height:B,width:G};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),Q;if(H.onColumnResize){var ne={height:B};Q=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:U,height:B,width:G,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=z?"columnheader":"gridcell";return r.default.createElement("div",{className:K,style:ee,role:fe},Q,le,ue)}}],[{key:"getDerivedStateFromProps",value:function($,B){var G=$.left+B.displacement,q={isReorderingThisColumn:!1};if(!$.isColumnReordering)return q.displacement=0,q;var U=$.columnReorderingData.originalLeft,z=U+$.columnReorderingData.dragDistance,H=$.columnGroupWidth-$.columnReorderingData.columnWidth;if(z=Math.max(z,0),z=Math.min(z,H),$.columnKey===$.columnReorderingData.columnKey)return q.displacement=z-$.left,q.isReorderingThisColumn=!0,q;var ee=z+$.columnReorderingData.columnWidth,X=z+$.columnReorderingData.columnWidth/2,K=G+$.width/2,Q=X>K,ne=U>$.left,le=!1;return Q?z<K&&(le=!0,ne?q.displacement=$.columnReorderingData.columnWidth:q.displacement=0):ee>K&&(le=!0,ne?q.displacement=0:q.displacement=$.columnReorderingData.columnWidth*-1),le?Q?$.columnReorderingData.columnAfter||($.columnReorderingData.columnAfter=$.columnKey):$.columnReorderingData.columnBefore=$.columnKey:Q?$.columnReorderingData.columnBefore=$.columnKey:$.columnReorderingData.columnAfter||($.columnReorderingData.columnAfter=$.columnKey),q}}]),W}(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 I=(0,d.polyfill)(A);e.default=I})(i_);var yo={},bf={},_f={},c_={};(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})(c_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(Ui),r=a(sf),n=a(c_);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 d(h){for(var g=0;g<l.length;g++){var _=l[g]+h;if(_ in c)return _}return null}function p(h){var g=(0,n.default)(h);if(o[g]===void 0){var _=g.charAt(0).toUpperCase()+g.slice(1);u.test(_)&&(0,t.default)(!1,"getVendorPrefixedName must only be called with unprefixedCSS property names. It was called with %s",h),o[g]=g in c?g:d(_)}return o[g]}var m=p;e.default=m})(_f);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(_f);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})(bf);var d_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(bf),r=a(_f),n=a(Ki);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",d=/Safari\//.test(c)&&!/Chrome\//.test(c);return!d&&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})(d_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(bf),r=n(d_);function n(l){return l&&l.__esModule?l:{default:l}}function a(l,u,c){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;l.display!=="none"&&(d?(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})(yo);(function(e){function t(I){"@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(I)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(J),n=c(Ht),a=c(fr),o=Mn,l=c(i_),u=c(yo);function c(I){return I&&I.__esModule?I:{default:I}}function d(){return d=Object.assign||function(I){for(var N=1;N<arguments.length;N++){var k=arguments[N];for(var W in k)Object.prototype.hasOwnProperty.call(k,W)&&(I[W]=k[W])}return I},d.apply(this,arguments)}function p(I,N){if(I==null)return{};var k=m(I,N),W,j;if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(I);for(j=0;j<$.length;j++)W=$[j],!(N.indexOf(W)>=0)&&Object.prototype.propertyIsEnumerable.call(I,W)&&(k[W]=I[W])}return k}function m(I,N){if(I==null)return{};var k={},W=Object.keys(I),j,$;for($=0;$<W.length;$++)j=W[$],!(N.indexOf(j)>=0)&&(k[j]=I[j]);return k}function h(I,N){if(!(I instanceof N))throw new TypeError("Cannot call a class as a function")}function g(I,N){for(var k=0;k<N.length;k++){var W=N[k];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(I,W.key,W)}}function _(I,N,k){return N&&g(I.prototype,N),I}function y(I,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(N&&N.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),N&&w(I,N)}function w(I,N){return w=Object.setPrototypeOf||function(W,j){return W.__proto__=j,W},w(I,N)}function E(I){var N=C();return function(){var W=x(I),j;if(N){var $=x(this).constructor;j=Reflect.construct(W,arguments,$)}else j=W.apply(this,arguments);return S(this,j)}}function S(I,N){return N&&(t(N)==="object"||typeof N=="function")?N:T(I)}function T(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}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(I){return!1}}function x(I){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)},x(I)}function P(I,N,k){return N in I?Object.defineProperty(I,N,{value:k,enumerable:!0,configurable:!0,writable:!0}):I[N]=k,I}var R=function(I){y(k,I);var N=E(k);function k(W){var j;return h(this,k),j=N.call(this,W),P(T(j),"_renderCell",function($,B,G,q,U,z,H,ee,X){var K=G.isResizable&&j.props.onColumnResize,Q=K?j.props.onColumnResize:null,ne=G.isReorderable&&j.props.onColumnReorder&&$===-1&&H!==G.width,le=ne?j.props.onColumnReorder:null,se=G.cellClassName,ue=G.pureRendering||!1;return r.default.createElement(l.default,{isScrolling:j.props.isScrolling,isHeaderOrFooter:j.props.isHeaderOrFooter,align:G.align,className:se,height:B,key:z,maxWidth:G.maxWidth,minWidth:G.minWidth,touchEnabled:j.props.touchEnabled,onColumnResize:Q,onColumnReorder:le,onColumnReorderMove:j.props.onColumnReorderMove,onColumnReorderEnd:j.props.onColumnReorderEnd,isColumnReordering:ee,columnReorderingData:j.props.columnReorderingData,rowIndex:$,columnKey:G.columnKey,width:G.width,left:U,cell:q,columnGroupWidth:H,pureRendering:ue,isRTL:j.props.isRTL,isVisible:j.props.isVisible&&X})}),j._initialRender=!0,j}return _(k,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"render",value:function(){for(var j=this.props,$=j.columns,B=new Array($.length),G=(0,o.sumPropWidths)($),q=j.isColumnReordering&&$.reduce(function(se,ue){return se||j.columnReorderingData.columnKey===ue.props.columnKey},!1),U=0,z=0,H=$.length;z<H;z++){var ee=$[z].props,X=$[z].template,K=ee.allowCellsRecycling&&!q,Q=U-j.left<=j.width&&U-j.left+ee.width>=0;if(!K||Q){var ne=ee.columnKey||"cell_"+z;B[z]=this._renderCell(j.rowIndex,j.rowHeight,ee,X,U,ne,G,q,Q)}U+=ee.width}var le={height:j.height,position:"absolute",width:G,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)}}]),k}(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(I){y(k,I);var N=E(k);function k(){var W;h(this,k);for(var j=arguments.length,$=new Array(j),B=0;B<j;B++)$[B]=arguments[B];return W=N.call.apply(N,[this].concat($)),P(T(W),"_onColumnResize",function(G,q,U,z,H,ee){W.props.onColumnResize&&W.props.onColumnResize(W.props.offsetLeft,G-W.props.left+q,q,U,z,H,ee)}),W}return _(k,[{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,$=j.offsetLeft,B=p(j,["offsetLeft"]),G={height:B.cellGroupWrapperHeight||B.height,width:B.width};this.props.isRTL?G.right=$:G.left=$;var q=B.onColumnResize?this._onColumnResize:null;return r.default.createElement("div",{style:G,className:(0,a.default)("fixedDataTableCellGroupLayout/cellGroupWrapper")},r.default.createElement(R,d({},B,{onColumnResize:q})))}}]),k}(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})(n_);(function(e){function t(k){"@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(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=d(Ht),n=d(J),a=d(fr),o=d(Sn),l=Mn,u=d(n_),c=d(yo);function d(k){return k&&k.__esModule?k:{default:k}}function p(k,W){if(k==null)return{};var j=m(k,W),$,B;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(k);for(B=0;B<G.length;B++)$=G[B],!(W.indexOf($)>=0)&&Object.prototype.propertyIsEnumerable.call(k,$)&&(j[$]=k[$])}return j}function m(k,W){if(k==null)return{};var j={},$=Object.keys(k),B,G;for(G=0;G<$.length;G++)B=$[G],!(W.indexOf(B)>=0)&&(j[B]=k[B]);return j}function h(){return h=Object.assign||function(k){for(var W=1;W<arguments.length;W++){var j=arguments[W];for(var $ in j)Object.prototype.hasOwnProperty.call(j,$)&&(k[$]=j[$])}return k},h.apply(this,arguments)}function g(k,W){if(!(k instanceof W))throw new TypeError("Cannot call a class as a function")}function _(k,W){for(var j=0;j<W.length;j++){var $=W[j];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(k,$.key,$)}}function y(k,W,j){return W&&_(k.prototype,W),k}function w(k,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(W&&W.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),W&&E(k,W)}function E(k,W){return E=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},E(k,W)}function S(k){var W=x();return function(){var $=P(k),B;if(W){var G=P(this).constructor;B=Reflect.construct($,arguments,G)}else B=$.apply(this,arguments);return T(this,B)}}function T(k,W){return W&&(t(W)==="object"||typeof W=="function")?W:C(k)}function C(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function x(){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 P(k){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(j){return j.__proto__||Object.getPrototypeOf(j)},P(k)}function R(k,W,j){return W in k?Object.defineProperty(k,W,{value:j,enumerable:!0,configurable:!0,writable:!0}):k[W]=j,k}var D=1,A=function(k){w(j,k);var W=S(j);function j(){var $;g(this,j);for(var B=arguments.length,G=new Array(B),q=0;q<B;q++)G[q]=arguments[q];return $=W.call.apply(W,[this].concat(G)),R(C($),"mouseLeaveIndex",null),R(C($),"_getRowExpanded",function(U){if($.props.rowExpanded){var z={rowIndex:$.props.index,height:U,width:$.props.width},H;return n.default.isValidElement($.props.rowExpanded)?H=n.default.cloneElement($.props.rowExpanded,z):typeof $.props.rowExpanded=="function"&&(H=$.props.rowExpanded(z)),H}}),R(C($),"_renderColumnsLeftShadow",function(U){var z=(0,a.default)({"fixedDataTableRowLayout/fixedColumnsDivider":U>0,"fixedDataTableRowLayout/columnsShadow":$.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":U>0,"public/fixedDataTableRow/columnsShadow":$.props.scrollLeft>0}),H=$.props.cellGroupWrapperHeight?$.props.cellGroupWrapperHeight-D:$.props.height,ee={left:U,height:H};return $.props.isRTL&&(ee.right=U,ee.left="auto"),n.default.createElement("div",{className:z,style:ee})}),R(C($),"_renderFixedRightColumnsShadow",function(U){var z=(0,a.default)("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","fixedDataTableRowLayout/fixedColumnsDivider","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow","public/fixedDataTableRow/fixedColumnsDivider"),H={height:$.props.height,left:U};return $.props.isRTL&&(H.right=U,H.left="auto"),n.default.createElement("div",{className:z,style:H})}),R(C($),"_renderColumnsRightShadow",function(U){if(Math.ceil($.props.scrollLeft+$.props.width)<Math.floor(U)){var z=(0,a.default)("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow"),H={height:$.props.height};return n.default.createElement("div",{className:z,style:H})}}),R(C($),"_onClick",function(U){$.props.onClick(U,$.props.index)}),R(C($),"_onContextMenu",function(U){$.props.onContextMenu(U,$.props.index)}),R(C($),"_onDoubleClick",function(U){$.props.onDoubleClick(U,$.props.index)}),R(C($),"_onMouseUp",function(U){$.props.onMouseUp(U,$.props.index)}),R(C($),"_onMouseDown",function(U){$.props.onMouseDown(U,$.props.index)}),R(C($),"_onMouseEnter",function(U){$.mouseLeaveIndex=$.props.index,$.props.onMouseEnter&&$.props.onMouseEnter(U,$.props.index)}),R(C($),"_onMouseLeave",function(U){$.mouseLeaveIndex===null&&($.mouseLeaveIndex=$.props.index),$.props.onMouseLeave(U,$.mouseLeaveIndex),$.mouseLeaveIndex=null}),R(C($),"_onTouchStart",function(U){$.props.onTouchStart(U,$.props.index)}),R(C($),"_onTouchEnd",function(U){$.props.onTouchEnd(U,$.props.index)}),R(C($),"_onTouchMove",function(U){$.props.onTouchMove(U,$.props.index)}),$}return y(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,G={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}),U=(0,l.sumPropWidths)(this.props.fixedColumns),z=n.default.createElement(u.default,{key:"fixed_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,left:0,width:U,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(U),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}),Q=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:U,width:this.props.width-U-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(U+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:G}),n.default.createElement("div",{className:(0,a.default)("fixedDataTableRowLayout/body")},z,ne,H,K,Q,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 I=function(k){w(j,k);var W=S(j);function j($){var B;return g(this,j),B=W.call(this,$),B._initialRender=!0,B}return y(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,G=B.offsetTop,q=B.zIndex,U=p(B,["offsetTop","zIndex"]),z={width:this.props.width,height:this.props.height,zIndex:q||0,visibility:U.visible?"visible":"hidden"};return(0,c.default)(z,0,G,this._initialRender,this.props.isRTL),n.default.createElement("div",{style:z,className:(0,a.default)("fixedDataTableRowLayout/rowWrapper")},n.default.createElement(A,U))}}]),j}(n.default.Component);R(I,"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 N=I;e.default=N})(gf);(function(e){function t(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(W){return typeof W}:t=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},t(N)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=h(Ht),n=h(J),a=h($8),o=h(u7),l=h(r_),u=h(fr),c=h(En),d=h(Sn),p=h(gf),m=h(yo);function h(N){return N&&N.__esModule?N:{default:N}}function g(){return g=Object.assign||function(N){for(var k=1;k<arguments.length;k++){var W=arguments[k];for(var j in W)Object.prototype.hasOwnProperty.call(W,j)&&(N[j]=W[j])}return N},g.apply(this,arguments)}function _(N,k){if(!(N instanceof k))throw new TypeError("Cannot call a class as a function")}function y(N,k){for(var W=0;W<k.length;W++){var j=k[W];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(N,j.key,j)}}function w(N,k,W){return k&&y(N.prototype,k),N}function E(N,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(k&&k.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),k&&S(N,k)}function S(N,k){return S=Object.setPrototypeOf||function(j,$){return j.__proto__=$,j},S(N,k)}function T(N){var k=P();return function(){var j=R(N),$;if(k){var B=R(this).constructor;$=Reflect.construct(j,arguments,B)}else $=j.apply(this,arguments);return C(this,$)}}function C(N,k){return k&&(t(k)==="object"||typeof k=="function")?k:x(N)}function x(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}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(N){return!1}}function R(N){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)},R(N)}function D(N,k,W){return k in N?Object.defineProperty(N,k,{value:W,enumerable:!0,configurable:!0,writable:!0}):N[k]=W,N}var A=function(N){E(W,N);var k=T(W);function W(j){var $;return _(this,W),$=k.call(this,j),$._staticRowArray=[],$._initialRender=!0,$}return w(W,[{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 $=this.props,B=$.offsetTop,G=$.rowOffsets,q=$.scrollTop,U=$.isScrolling,z=$.rowsToRender;z=z||[],U?this._staticRowArray.length=Math.max(this._staticRowArray.length,z.length):this._staticRowArray.length=z.length;for(var H=1e6,ee=B-q%H,X=0;X<this._staticRowArray.length;X++){var K,Q=(0,a.default)(z[X],(K=this._staticRowArray[X])===null||K===void 0?void 0:K.props.index);if((0,l.default)(Q)||!(0,o.default)(Q,0,this.props.rowSettings.rowsCount)){this._staticRowArray[X]=null;continue}var ne=G[Q]-Math.floor(q/H)*H;this._staticRowArray[X]=this.renderRow({rowIndex:Q,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($){var B=$.rowIndex,G=$.key,q=$.rowOffsetTop,U=this.props,z=U.rowClassNameGetter||c.default,H={};H.height=this.props.rowSettings.rowHeightGetter(B),H.subRowHeight=this.props.rowSettings.subRowHeightGetter(B),H.offsetTop=q,H.key=U.rowKeyGetter?U.rowKeyGetter(B):G,H.attributes=U.rowSettings.rowAttributesGetter&&U.rowSettings.rowAttributesGetter(B);var ee=B===U.rowSettings.rowsCount-1&&U.showLastRowBorder;H.className=(0,d.default)(z(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,g({key:G,index:B,ariaRowIndex:B+U.ariaRowIndexOffset,isScrolling:U.isScrolling,width:U.width,rowExpanded:U.rowExpanded,scrollLeft:Math.round(U.scrollLeft),fixedColumns:U.fixedColumns,fixedRightColumns:U.fixedRightColumns,scrollableColumns:U.scrollableColumns,onClick:U.onRowClick,onContextMenu:U.onRowContextMenu,onDoubleClick:U.onRowDoubleClick,onMouseDown:U.onRowMouseDown,onMouseUp:U.onRowMouseUp,onMouseEnter:U.onRowMouseEnter,onMouseLeave:U.onRowMouseLeave,onTouchStart:U.onRowTouchStart,onTouchEnd:U.onRowTouchEnd,onTouchMove:U.onRowTouchMove,showScrollbarY:U.showScrollbarY,scrollbarYWidth:U.scrollbarYWidth,isRTL:U.isRTL,visible:X},H))}},{key:"rowSortComparator",value:function($,B){var G,q;return((G=$==null?void 0:$.props.ariaRowIndex)!==null&&G!==void 0?G:-1)-((q=B==null?void 0:B.props.ariaRowIndex)!==null&&q!==void 0?q:-1)}}]),W}(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 I=A;e.default=I})(t_);var f_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(En),r=n(ul);function n(g){return g&&g.__esModule?g:{default:g}}function a(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}function o(g,_){for(var y=0;y<_.length;y++){var w=_[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}function l(g,_,y){return _&&o(g.prototype,_),g}var u=1.6,c=1.6,d=325,p=100,m=function(){function g(_,y,w,E,S){a(this,g),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 y!="function"&&(y=y?t.default.thatReturnsTrue:t.default.thatReturnsFalse),typeof w!="function"&&(w=w?t.default.thatReturnsTrue:t.default.thatReturnsFalse),this._handleScrollX=y,this._handleScrollY=w,this._preventDefault=E,this._stopPropagation=S,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(g,[{key:"onTouchStart",value:function(y){this._lastTouchX=y.touches[0].pageX,this._lastTouchY=y.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&&y.stopPropagation()}},{key:"onTouchEnd",value:function(y){clearInterval(this._trackerId),this._trackerId=null,(0,r.default)(this._startAutoScroll),this._stopPropagation&&y.stopPropagation()}},{key:"onTouchCancel",value:function(y){clearInterval(this._trackerId),this._trackerId=null,this._stopPropagation&&y.stopPropagation()}},{key:"onTouchMove",value:function(y){this._preventDefault&&y.preventDefault();var w=y.touches[0].pageX,E=y.touches[0].pageY;this._deltaX=u*(this._lastTouchX-w),this._deltaY=u*(this._lastTouchY-E);var S=this._handleScrollX(this._deltaX,this._deltaY),T=this._handleScrollY(this._deltaY,this._deltaX);if(!(!S&&!T)){S?this._lastTouchX=w:this._deltaX=0,T?this._lastTouchY=E:this._deltaY=0,y.defaultPrevented||y.preventDefault();var C=!1;(Math.abs(this._deltaX)>2||Math.abs(this._deltaY)>2)&&(this._stopPropagation&&y.stopPropagation(),C=!0),C===!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 y=Date.now(),w=y-this._lastFrameTimestamp,E=this._velocityX,S=this._velocityY,T=.8;w<p&&(T*=w/p),E===0&&S===0&&(T=1),this._velocityX=T*(p*this._accumulatedDeltaX/(1+w)),T<1&&(this._velocityX+=(1-T)*E),this._velocityY=T*(p*this._accumulatedDeltaY/(1+w)),T<1&&(this._velocityY+=(1-T)*S),this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=y}},{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 y=Date.now()-this._autoScrollTimestamp,w=c*Math.exp(-y/d),E=w*this._velocityX,S=w*this._velocityY;(Math.abs(E)<=5||!this._handleScrollX(E,S))&&(E=0),(Math.abs(S)<=5||!this._handleScrollY(S,E))&&(S=0),(E!==0||S!==0)&&(this._onTouchScrollCallback(E,S),(0,r.default)(this._autoScroll))}}]),g}(),h=m;e.default=h})(f_);(function(e){function t(U){"@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(U)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=T(J),n=T(Ht),a=T(dj),o=T(fr),l=T(Rb),u=T(Sn),c=T(go),d=T(of),p=T(Ab),m=T(Fb),h=T(ea),g=T(mf),_=T(Qb),y=T(t_),w=T(pl),E=T(gf),S=T(f_);function T(U){return U&&U.__esModule?U:{default:U}}function C(){return C=Object.assign||function(U){for(var z=1;z<arguments.length;z++){var H=arguments[z];for(var ee in H)Object.prototype.hasOwnProperty.call(H,ee)&&(U[ee]=H[ee])}return U},C.apply(this,arguments)}function x(U,z){if(!(U instanceof z))throw new TypeError("Cannot call a class as a function")}function P(U,z){for(var H=0;H<z.length;H++){var ee=z[H];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(U,ee.key,ee)}}function R(U,z,H){return z&&P(U.prototype,z),U}function D(U,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");U.prototype=Object.create(z&&z.prototype,{constructor:{value:U,writable:!0,configurable:!0}}),z&&A(U,z)}function A(U,z){return A=Object.setPrototypeOf||function(ee,X){return ee.__proto__=X,ee},A(U,z)}function I(U){var z=W();return function(){var ee=j(U),X;if(z){var K=j(this).constructor;X=Reflect.construct(ee,arguments,K)}else X=ee.apply(this,arguments);return N(this,X)}}function N(U,z){return z&&(t(z)==="object"||typeof z=="function")?z:k(U)}function k(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}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(U){return!1}}function j(U){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},j(U)}function $(U,z,H){return z in U?Object.defineProperty(U,z,{value:H,enumerable:!0,configurable:!0,writable:!0}):U[z]=H,U}var B=25,G=function(U){D(H,U);var z=I(H);function H(ee){var X;return x(this,H),X=z.call(this,ee),$(k(X),"_shouldHandleTouchX",function(K){return X.props.touchScrollEnabled&&X._shouldHandleWheelX(K)}),$(k(X),"_shouldHandleTouchY",function(K){return X.props.touchScrollEnabled&&X._shouldHandleWheelY(K)}),$(k(X),"_shouldHandleWheelX",function(K){var Q=X.props,ne=Q.maxScrollX,le=Q.scrollFlags,se=Q.scrollX,ue=le.overflowX;return ue==="hidden"||(K=Math.round(K),K===0)?!1:K<0&&se>0||K>=0&&se<ne}),$(k(X),"_shouldHandleWheelY",function(K){var Q=X.props,ne=Q.maxScrollY,le=Q.scrollFlags,se=Q.scrollY,ue=le.overflowY;return ue==="hidden"||K===0||(K=Math.round(K),K===0)?!1:K<0&&se>0||K>=0&&se<ne}),$(k(X),"_reportContentHeight",function(){var K=(0,g.default)(X.props),Q=K.contentHeight,ne=X.props.onContentHeightChange;Q!==X._contentHeight&&ne&&ne(Q),X._contentHeight=Q}),$(k(X),"_renderRows",function(K,Q,ne,le,se,ue){var fe=(0,h.default)(X.props),pe=fe.scrollEnabledY,oe=X.props;return r.default.createElement(y.default,{ariaRowIndexOffset:ue,isScrolling:oe.scrolling,fixedColumns:Q,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})}),$(k(X),"_onRef",function(K){X._divRef=K,X._wheelHandler&&(X.props.stopReactWheelPropagation?X._wheelHandler.setRoot(K):X._wheelHandler.setRoot(null))}),$(k(X),"_onColumnResize",function(K,Q,ne,le,se,ue,fe){var pe=w.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:Q})}),$(k(X),"_onColumnReorder",function(K,Q,ne,le){X.props.columnActions.startColumnReorder({scrollStart:X.props.scrollX,columnKey:K,width:Q,left:ne})}),$(k(X),"_onColumnReorderMove",function(K){X.props.columnActions.moveColumnReorder(K)}),$(k(X),"_onColumnReorderEnd",function(K,Q){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))}),$(k(X),"_onScroll",function(K,Q){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,Se=ve,Ce=de;if(Math.abs(Q)>Math.abs(K)&&we!=="hidden")Ce+=Q,Ce=Ce<0?0:Ce,Ce=Ce>se?se:Ce,(!fe||fe(Ce))&&pe.scrollToY(Ce);else if(K&&_e!=="hidden"){Se+=K,Se=Se<0?0:Se,Se=Se>le?le:Se;var dt=Math.round(Se);(!ue||ue(dt))&&pe.scrollToX(dt)}}),$(k(X),"_scrollTo",function(K,Q){X._scrollToX(K),X._scrollToY(Q)}),$(k(X),"_scrollToX",function(K){var Q=X.props,ne=Q.onHorizontalScroll,le=Q.scrollActions,se=Q.scrollX;if(K!==se){var ue=Math.round(K);(!ne||ne(ue))&&le.scrollToX(ue)}}),$(k(X),"_scrollToY",function(K){var Q=X.props,ne=Q.onVerticalScroll,le=Q.scrollActions,se=Q.scrollY;K!==se&&(!ne||ne(K))&&le.scrollToY(K)}),$(k(X),"_didScroll",function(K){var Q=X.props,ne=Q.onScrollStart,le=Q.scrollX,se=Q.scrollY,ue=Q.onHorizontalScroll,fe=Q.onVerticalScroll,pe=Q.tableSize.ownerHeight,oe=Q.scrolling,ve=K.endRowIndex,de=K.firstRowIndex,_e=K.scrollX,we=K.scrollY,Se=K.tableSize.ownerHeight,Ce=K.scrolling,dt=pe!==Se&&!((0,a.default)(pe)&&(0,a.default)(Se)),Ve=le!==_e,rt=se!==we;!dt&&!Ve&&!rt||(!Ce&&oe&&ne&&ne(_e,we,de,ve),Ve&&ue&&ue(le),rt&&fe&&fe(se),X._didScrollStop())}),$(k(X),"_didScrollStopSync",function(){var K=X.props,Q=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,Q))}),X._didScrollStop=(0,l.default)(X._didScrollStopSync,200,k(X)),X._onKeyDown=X._onKeyDown.bind(k(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 d.default(this._onScroll,this._shouldHandleWheelX,this._shouldHandleWheelY,this.props.isRTL,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._touchHandler||(this._touchHandler=new S.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,g.default)(this.props),Q=K.scrollbarYHeight;if(this.props.keyboardPageEnabled)switch(X.key){case"PageDown":this._onScroll(0,Q),X.preventDefault();break;case"PageUp":this._onScroll(0,Q*-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,g.default)(this.props),K=X.bodyOffsetTop,Q=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:Q,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,Q=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,g.default)(this.props),Se=we.bodyHeight,Ce=we.bodyOffsetTop,dt=we.componentHeight,Ve=we.footOffsetTop,rt=we.scrollbarXOffsetTop,ft=we.visibleRowsHeight,Ie=this.props,Ue=Ie.className,Mt=Ie.columnReorderingData,ht=Ie.columnResizingData,Pt=Ie.elementHeights,hr=Ie.isColumnReordering,Te=Ie.isColumnResizing,bt=Ie.gridAttributesGetter,Tr=Ie.maxScrollY,Zt=Ie.onColumnReorderEndCallback,Sr=Ie.onColumnResizeEndCallback,en=Ie.scrollContentHeight,pr=Ie.scrollX,Br=Ie.scrollY,Vt=Ie.scrolling,Rn=Ie.tableSize,Hr=Ie.touchScrollEnabled,tn=Ie.scrollbarYWidth,On=Rn.ownerHeight,mr=Rn.width,kn=Pt.cellGroupWrapperHeight,Nn=Pt.footerHeight,rn=Pt.groupHeaderHeight,ti=Pt.headerHeight,ri=(0,h.default)(this.props),ra=ri.scrollEnabledX,Kt=ri.scrollEnabledY,ni=Zt?this._onColumnReorder:null,Vr=bt&&bt(),nn;rn>0&&(nn=r.default.createElement(E.default,{key:"group_header",ariaRowIndex:K,isHeaderOrFooter:!0,isScrolling:Vt,className:(0,u.default)((0,o.default)("fixedDataTableLayout/header"),(0,o.default)("public/fixedDataTable/header")),width:mr,height:rn,cellGroupWrapperHeight:kn,index:0,zIndex:1,offsetTop:0,scrollLeft:pr,fixedColumns:fe,fixedRightColumns:oe,scrollableColumns:de,visible:!0,onColumnResize:this._onColumnResize,onColumnReorder:ni,onColumnReorderMove:this._onColumnReorderMove,showScrollbarY:Kt,scrollbarYWidth:tn,isRTL:this.props.isRTL}));var wt;Kt&&(wt=this.props.scrollbarY);var gt;ra&&(gt=this.props.scrollbarX);var ge=r.default.createElement(_.default,{height:dt,initialWidth:ht.width||0,minWidth:ht.minWidth||0,maxWidth:ht.maxWidth||Number.MAX_VALUE,visible:!!Te,leftOffset:ht.left||0,knobHeight:ti,initialEvent:ht.initialEvent,onColumnResizeEnd:Sr,columnKey:ht.key,touchEnabled:Hr,isRTL:this.props.isRTL}),vr=null;Nn&&(vr=r.default.createElement(E.default,{key:"footer",ariaRowIndex:ne,isHeaderOrFooter:!0,isScrolling:Vt,className:(0,u.default)((0,o.default)("fixedDataTableLayout/footer"),(0,o.default)("public/fixedDataTable/footer")),width:mr,height:Nn,index:-1,zIndex:1,offsetTop:Ve,visible:!0,fixedColumns:pe.footer,fixedRightColumns:ve.footer,scrollableColumns:_e.footer,scrollLeft:pr,showScrollbarY:Kt,scrollbarYWidth:tn,isRTL:this.props.isRTL}));var an=this._renderRows(Ce,pe.cell,ve.cell,_e.cell,Se,se),Dn=r.default.createElement(E.default,{key:"header",ariaRowIndex:Q,isHeaderOrFooter:!0,isScrolling:Vt,className:(0,u.default)((0,o.default)("fixedDataTableLayout/header"),(0,o.default)("public/fixedDataTable/header")),width:mr,height:ti,cellGroupWrapperHeight:kn,index:-1,zIndex:1,offsetTop:rn,scrollLeft:pr,visible:!0,fixedColumns:pe.header,fixedRightColumns:ve.header,scrollableColumns:_e.header,touchEnabled:Hr,onColumnResize:this._onColumnResize,onColumnReorder:ni,onColumnReorderMove:this._onColumnReorderMove,onColumnReorderEnd:this._onColumnReorderEnd,isColumnReordering:!!hr,columnReorderingData:Mt,showScrollbarY:Kt,scrollbarYWidth:tn,isRTL:this.props.isRTL}),on;Br&&(on=r.default.createElement("div",{className:(0,u.default)((0,o.default)("fixedDataTableLayout/topShadow"),(0,o.default)("public/fixedDataTable/topShadow")),style:{top:Ce}}));var sn=On&&On<dt&&en>ft,ln;(sn||Br<Tr)&&(ln=r.default.createElement("div",{className:(0,u.default)((0,o.default)("fixedDataTableLayout/bottomShadow"),(0,o.default)("public/fixedDataTable/bottomShadow")),style:{top:Ve}}));var gr=null;(this.props.keyboardPageEnabled||this.props.keyboardScrollEnabled)&&(gr=0);var un=Ue;return this.props.isRTL&&(un=(0,u.default)(un,"fixedDataTable_isRTL")),r.default.createElement("div",C({className:(0,u.default)(un,(0,o.default)("fixedDataTableLayout/main"),(0,o.default)("public/fixedDataTable/main")),role:"grid","aria-rowcount":le},Vr,{tabIndex:gr,onKeyDown:this._onKeyDown,onTouchStart:Hr?this._touchHandler.onTouchStart:null,onTouchEnd:Hr?this._touchHandler.onTouchEnd:null,onTouchCancel:Hr?this._touchHandler.onTouchCancel:null,ref:this._onRef,style:{height:dt,width:mr}}),r.default.createElement("div",{className:(0,o.default)("fixedDataTableLayout/rowsContainer"),style:{height:rt,width:mr}},ge,nn,Dn,an,vr,on,ln),wt,gt)}}]),H}(r.default.Component);$(G,"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}),$(G,"defaultProps",{elementHeights:{cellGroupWrapperHeight:void 0,footerHeight:0,groupHeaderHeight:0,headerHeight:0},keyboardScrollEnabled:!1,keyboardPageEnabled:!1,touchScrollEnabled:!1,stopScrollPropagation:!1});var q=G;e.default=q})(Pb);var h_={},p_={},m_={},v_={};(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 d=0;d<c.length;d++){var p=c[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}function n(u,c,d){return c&&r(u.prototype,c),u}function a(u,c){return u<c}var o=function(){function u(c,d){t(this,u),this._items=c||[],this._size=this._items.length,this._comparator=d||a,this._heapify()}return n(u,[{key:"empty",value:function(){return this._size===0}},{key:"pop",value:function(){if(this._size!==0){var d=this._items[0],p=this._items.pop();return this._size--,this._size>0&&(this._items[0]=p,this._sinkDown(0)),d}}},{key:"push",value:function(d){this._items[this._size++]=d,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 d=Math.floor((this._size+1)/2);d>=0;d--)this._sinkDown(d)}},{key:"_bubbleUp",value:function(d){for(var p=this._items[d];d>0;){var m=Math.floor((d+1)/2)-1,h=this._items[m];if(this._comparator(h,p))return;this._items[m]=p,this._items[d]=h,d=m}}},{key:"_sinkDown",value:function(d){for(var p=this._items[d];;){var m=2*(d+1)-1,h=2*(d+1),g=-1;if(m<this._size){var _=this._items[m];this._comparator(_,p)&&(g=m)}if(h<this._size){var y=this._items[h];this._comparator(y,p)&&(g===-1||this._comparator(y,this._items[g]))&&(g=h)}if(g===-1)return;this._items[d]=this._items[g],this._items[g]=p,d=g}}}]),u}(),l=o;e.default=l})(v_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(v_),r=n(Ui);function n(d){return d&&d.__esModule?d:{default:d}}function a(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}function o(d,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(d,h.key,h)}}function l(d,p,m){return p&&o(d.prototype,p),d}var u=function(){function d(){a(this,d),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(d,[{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,g){if((0,r.default)(this._valueToPositionMap[g]===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,y=this._largeValues.peek().value;if(_>=m&&y<=h)return null;var w;m-_>y-h?(w=_,this._smallValues.pop()):(w=y,this._largeValues.pop());var E=this._valueToPositionMap[w];return delete this._valueToPositionMap[w],this._valueToPositionMap[g]=E,this._pushToHeaps(E,g),E}},{key:"_pushToHeaps",value:function(m,h){var g={position:m,value:h};this._smallValues.push(g),this._largeValues.push(g)}},{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),g=new t.default([],this._greaterComparator);!m.empty();){var _=m.pop();this._valueToPositionMap[_.value]!==void 0&&(h.push(_),g.push(_))}this._smallValues=h,this._largeValues=g}},{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}}]),d}(),c=u;e.default=c})(m_);var g_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Ui),r=n(Ki);function n(h){return h&&h.__esModule?h:{default:h}}function a(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}function o(h,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(h,y.key,y)}}function l(h,g,_){return g&&o(h.prototype,g),_&&o(h,_),h}var u=function(g){return Math.floor(g/2)},c=r.default.Int32Array||function(h){for(var g=[],_=h-1;_>=0;--_)g[_]=0;return g};function d(h){for(var g=1;g<h;)g*=2;return g}var p=function(){function h(g){a(this,h),this._size=g.length,this._half=d(this._size),this._heap=new c(2*this._half);var _;for(_=0;_<this._size;++_)this._heap[this._half+_]=g[_];for(_=this._half-1;_>0;--_)this._heap[_]=this._heap[2*_]+this._heap[2*_+1]}return l(h,[{key:"set",value:function(_,y){(0,t.default)(0<=_&&_<this._size,"Index out of range %s",_);var w=this._half+_;for(this._heap[w]=y,w=u(w);w!==0;w=u(w))this._heap[w]=this._heap[2*w]+this._heap[2*w+1]}},{key:"get",value:function(_){(0,t.default)(0<=_&&_<this._size,"Index out of range %s",_);var y=this._half+_;return this._heap[y]}},{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 y=this._half+_-1,w=this._heap[y];y!==1;y=u(y))y%2===1&&(w+=this._heap[y-1]);return w}},{key:"sumTo",value:function(_){return(0,t.default)(0<=_&&_<this._size,"Index out of range %s",_),this.sumUntil(_+1)}},{key:"sum",value:function(_,y){return(0,t.default)(_<=y,"Begin must precede end"),this.sumUntil(y)-this.sumUntil(_)}},{key:"greatestLowerBound",value:function(_){if(_<0)return-1;var y=1;if(this._heap[y]<=_)return this._size;for(;y<this._half;){var w=this._heap[2*y];_<w?y=2*y:(y=2*y+1,_-=w)}return y-this._half}},{key:"greatestStrictLowerBound",value:function(_){if(_<=0)return-1;var y=1;if(this._heap[y]<_)return this._size;for(;y<this._half;){var w=this._heap[2*y];_<=w?y=2*y:(y=2*y+1,_-=w)}return y-this._half}},{key:"leastUpperBound",value:function(_){return this.greatestStrictLowerBound(_)+1}},{key:"leastStrictUpperBound",value:function(_){return this.greatestLowerBound(_)+1}}],[{key:"uniform",value:function(_,y){for(var w=[],E=_-1;E>=0;--E)w[E]=y;return new h(w)}},{key:"empty",value:function(_){return h.uniform(_,0)}}]),h}(),m=p;e.default=m})(g_);var y_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l(J),r=l(ff),n=l(Ui),a=l(Kb),o=l(af);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 d(m){var h=[];t.default.Children.forEach(m,function(E,S){E!=null&&((0,n.default)(E.type.__TableColumnGroup__||E.type.__TableColumn__,"child type should be <FixedDataTableColumn /> or <FixedDataTableColumnGroup />"),h.push(E))});var g={cell:[],footer:[],groupHeader:[],header:[]},_=[],y=h.length&&h[0].type.__TableColumnGroup__;if(y){var w=(0,a.default)(h,u);return(0,r.default)(h,function(E,S){g.groupHeader.push(E.props.header),t.default.Children.forEach(E.props.children,function(T){var C=u(T);C.groupIdx=S,_.push(C),c(g,T)})}),{columnGroupProps:w,columnProps:_,elementTemplates:g,useGroupHeader:!0}}return(0,r.default)(h,function(E){_.push(u(E)),c(g,E)}),{columnGroupProps:[],columnProps:_,elementTemplates:g,useGroupHeader:!1}}var p=d;e.default=p})(y_);var ml={},wf={};(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,d=u(n)+c(n),p=a[n];return d!==p&&(o.set(n,d),a[n]=d,r.scrollContentHeight+=d-p),a[n]}})(wf);Object.defineProperty(ml,"__esModule",{value:!0});ml.getScrollAnchor=p7;ml.scrollTo=w_;var b_=xf(fl),__=xf(ea),h7=xf(wf);function xf(e){return e&&e.__esModule?e:{default:e}}function p7(e,t,r){return t.scrollToRow!==void 0&&t.scrollToRow!==null&&(!r||t.scrollToRow!==r.scrollToRow)?m7(e,t.scrollToRow):t.scrollTop!==void 0&&t.scrollTop!==null&&(!r||t.scrollTop!==r.scrollTop)?w_(e,t.scrollTop):{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1}}function w_(e,t){var r=(0,__.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,d=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,b_.default)(m,0,Math.max(u-1,0));var h=a.sumUntil(c);d=h-t}return{firstIndex:c,firstOffset:d,lastIndex:p,changed:!0}}function m7(e,t){var r=(0,__.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,b_.default)(t,0,Math.max(c-1,0)),(0,h7.default)(e,t);var d=a.sumUntil(t),p=d+l[t],m=t,h=void 0;if(!(d<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 x_={};function v7(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}var g7=v7,y7=g7,Su=vf;function b7(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=Su(r),r=r===r?r:0),t!==void 0&&(t=Su(t),t=t===t?t:0),y7(Su(e),t,r)}var C_=b7;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(r_),r=o(C_),n=o(En),a=o(hf);function o(y){return y&&y.__esModule?y:{default:y}}function l(){return l=Object.assign||function(y){for(var w=1;w<arguments.length;w++){var E=arguments[w];for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&(y[S]=E[S])}return y},l.apply(this,arguments)}var u=15,c=100;function d(y,w,E){var S=w.scrollLeft,T=y.columnResizingData,C=y.isColumnResizing,x=y.scrollX;S!==void 0&&(!E||S!==E.scrollLeft)&&(x=S),x=p(y,w,E.scrollToColumn,x);var P=(0,a.default)(y),R=P.maxScrollX;return x=(0,r.default)(x,0,R),C=w.isColumnResizing!==void 0?w.isColumnResizing:C,T=C?T:{},l({},y,{columnResizingData:T,isColumnResizing:C,maxScrollX:R,scrollX:x})}function p(y,w,E,S){var T=w.scrollToColumn;if((0,t.default)(T))return S;var C=(0,a.default)(y),x=C.availableScrollWidth,P=C.fixedColumns,R=C.scrollableColumns,D=P.length,A=R.length,I=A===0,N=T===E,k=T<D,W=T>=D+A;if(N||k||W||I)return S;for(var j=Math.min(T-D,R.length-1),$=0,B=0;B<j;++B)$+=R[B].width;var G=R[j].width,q=$+G-x;return S<q?q:S>$?$:S}function m(y,w){var E=w.cellMinWidth,S=w.cellMaxWidth,T=w.cellWidth,C=w.columnKey,x=w.combinedWidth,P=w.clientX,R=w.clientY,D=w.leftOffset;return l({},y,{isColumnResizing:!0,columnResizingData:{left:D+x-T,width:T,minWidth:E,maxWidth:S,initialEvent:{clientX:P,clientY:R,preventDefault:n.default},key:C}})}function h(y,w){var E=w.columnKey,S=w.left,T=w.scrollStart,C=w.width,x=(0,a.default)(y),P=x.fixedColumns,R=P.some(function(D){return D.columnKey===E});return l({},y,{isColumnReordering:!0,columnReorderingData:{cancelReorder:!1,dragDistance:0,isFixed:R,scrollStart:T,columnKey:E,columnWidth:C,originalLeft:S,columnBefore:void 0,columnAfter:void 0}})}function g(y,w){var E=y.columnReorderingData,S=E.isFixed,T=E.originalLeft,C=E.scrollStart,x=y.maxScrollX,P=y.scrollX;if(!S){var R=T-C+w,D=(0,a.default)(y),A=D.availableScrollWidth;w+=P-C,R>A-c?P=Math.min(P+u,x):R<=c&&(P=Math.max(P-u,0))}var I=l({},y.columnReorderingData,{dragDistance:w,columnBefore:void 0,columnAfter:void 0});return l({},y,{scrollX:P,columnReorderingData:I})}var _={initialize:d,reorderColumn:h,reorderColumnMove:g,resizeColumn:m};e.default=_})(x_);var T_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var t=l(C_),r=l(dl),n=l(ea),a=l(mf),o=l(wf);function l(h){return h&&h.__esModule?h:{default:h}}function u(){return u=Object.assign||function(h){for(var g=1;g<arguments.length;g++){var _=arguments[g];for(var y in _)Object.prototype.hasOwnProperty.call(_,y)&&(h[y]=_[y])}return h},u.apply(this,arguments)}function c(h,g){var _=u({},h),y=d(_,g),w=_.rowSettings,E=_.scrollContentHeight,S=w.rowsCount,T=(0,a.default)(_),C=T.bodyHeight,x=E-C,P;x===0?(y.firstViewportIdx>0&&(y=d(_,{firstOffset:0,lastIndex:S-1})),P=0):P=y.firstOffset;var R=y.firstViewportIdx,D=y.endViewportIdx;p(_,y,h.scrolling);var A=0;return S>0&&(A=_.rowOffsets[y.firstViewportIdx]-P),A=(0,t.default)(A,0,x),u(_,{firstRowIndex:R,firstRowOffset:P,endRowIndex:D,maxScrollY:x,scrollY:A})}function d(h,g){var _=(0,r.default)(h),y=_.bufferRowCount,w=_.maxAvailableHeight,E=h.rowSettings.rowsCount;if(E===0)return{endBufferIdx:0,endViewportIdx:0,firstBufferIdx:0,firstOffset:0,firstViewportIdx:0};var S=g.firstIndex,T=g.firstOffset,C=g.lastIndex;(S>=E||C>=E)&&(C=E-1);var x=1,P=S,R=T;C!==void 0&&(x=-1,P=C,R=0);for(var D=P,A=D;D<E&&D>=0&&R<w;)R+=(0,o.default)(h,D),A=D,D+=x;var I=!1;if(R<w&&D===E&&C===void 0)for(I=!0,D=S-1;D>=0&&R<w;)R+=(0,o.default)(h,D),P=D,--D;var N=Math.min(P,A),k=Math.max(N-y,0);for(D=k;D<N;D++)(0,o.default)(h,D);var W=Math.max(P,A)+1,j=Math.min(W+y,E);for(D=W;D<j;D++)(0,o.default)(h,D);var $=(0,n.default)(h),B=$.availableHeight;if(C!==void 0||I){T=T+Math.min(B-R,0);var G=h.storedHeights;-1*T>=G[N]&&(N+=1,T+=G[N])}return{endBufferIdx:j,endViewportIdx:W,firstBufferIdx:k,firstOffset:T,firstViewportIdx:N}}function p(h,g,_){var y=h.rowBufferSet,w=h.rowOffsetIntervalTree,E=h.storedHeights,S=g.endBufferIdx,T=g.endViewportIdx,C=g.firstBufferIdx,x=g.firstViewportIdx,P=S-C;if(P===0){h.rowOffsets={},h.rows=[];return}for(var R=_?x:C,D=_?T:S,A=[],I={},N=w.sumUntil(R),k=R;k<D;k++){I[k]=N,N+=E[k];var W=m(k,y,R,D,P);A[W]=k}h.rows=A,h.rowOffsets=I}function m(h,g,_,y,w){var E=g.getValuePosition(h);return E===null&&g.getSize()>=w&&(E=g.replaceFurthestValuePosition(_,y-1,h)),E===null&&(E=g.getNewPositionForValue(h)),E}})(T_);var vl={},S_={};(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})(S_);var Wc={"--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 E_(e){if(Wc.hasOwnProperty(e))return Wc[e];throw new Error('cssVar("'+e+'"): Unexpected class transformation.')}E_.CSS_VARS=Wc;var _7=E_;(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(J),n=h(Ei),a=h(Ht),o=h(fr),l=h(En),u=h(S_),c=h(of),d=h(hl),p=h(_7),m=h(yo);function h(B){return B&&B.__esModule?B:{default:B}}function g(B,G){if(!(B instanceof G))throw new TypeError("Cannot call a class as a function")}function _(B,G){for(var q=0;q<G.length;q++){var U=G[q];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(B,U.key,U)}}function y(B,G,q){return G&&_(B.prototype,G),B}function w(B,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(G&&G.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),G&&E(B,G)}function E(B,G){return E=Object.setPrototypeOf||function(U,z){return U.__proto__=z,U},E(B,G)}function S(B){var G=x();return function(){var U=P(B),z;if(G){var H=P(this).constructor;z=Reflect.construct(U,arguments,H)}else z=U.apply(this,arguments);return T(this,z)}}function T(B,G){return G&&(t(G)==="object"||typeof G=="function")?G:C(B)}function C(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function x(){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,G,q){return G in B?Object.defineProperty(B,G,{value:q,enumerable:!0,configurable:!0,writable:!0}):B[G]=q,B}var D={position:0,scrollable:!1},A=parseInt((0,p.default)("--scrollbar-face-margin"),10),I=A*2,N=30,k=40,W=null,j=function(B){w(q,B);var G=S(q);function q(U){var z;return g(this,q),z=G.call(this,U),R(C(z),"_onRefFace",function(H){return z._faceRef=H}),R(C(z),"_onRefRoot",function(H){return z._rootRef=H}),R(C(z),"scrollBy",function(H){z._onWheel(H)}),R(C(z),"_shouldHandleX",function(H){return z.props.orientation==="horizontal"?z._shouldHandleChange(H):!1}),R(C(z),"_shouldHandleY",function(H){return z.props.orientation!=="horizontal"?z._shouldHandleChange(H):!1}),R(C(z),"_shouldHandleChange",function(H){var ee=z._calculateState(z.state.position+H,z.props.size,z.props.contentSize,z.props.orientation);return ee.position!==z.state.position}),R(C(z),"_calculateState",function(H,ee,X,K){var Q=Math.max(1,ee);if(X<=Q)return D;var ne="".concat(H,"_").concat(Q,"_").concat(X,"_").concat(K);if(z._stateKey===ne)return z._stateForKey;var le=K==="horizontal",se=Q/X,ue=Q*se;ue<N&&(se=(Q-N)/(X-Q),ue=N);var fe=!0,pe=X-Q;H<0?H=0:H>pe&&(H=pe);var oe=z._mouseMoveTracker?z._mouseMoveTracker.isDragging():!1,ve={faceSize:ue,isDragging:oe,isHorizontal:le,position:H,scale:se,scrollable:fe};return z._stateKey=ne,z._stateForKey=ve,ve}),R(C(z),"_onWheelY",function(H,ee){z._onWheel(ee)}),R(C(z),"_onWheelX",function(H,ee){z._onWheel(H)}),R(C(z),"_onWheel",function(H){var ee=z.props;z._setNextState(z._calculateState(z.state.position+H,ee.size,ee.contentSize,ee.orientation))}),R(C(z),"_onMouseDown",function(H){var ee;if(H.target!==z._faceRef){var X=H.nativeEvent,K=z.state.isHorizontal?X.offsetX||X.layerX||z.getTouchX(X):X.offsetY||X.layerY||z.getTouchY(X),Q=z.props;K/=z.state.scale,ee=z._calculateState(K-z.state.faceSize*.5/z.state.scale,Q.size,Q.contentSize,Q.orientation)}else ee={};ee.focused=!0,z._setNextState(ee),z._mouseMoveTracker.captureMouseMoves(H),z._rootRef.focus()}),R(C(z),"_onTouchCancel",function(H){H.stopPropagation()}),R(C(z),"_onTouchEnd",function(H){H.stopPropagation()}),R(C(z),"_onTouchMove",function(H){H.stopPropagation()}),R(C(z),"_onTouchStart",function(H){H.stopPropagation(),z._onMouseDown(H)}),R(C(z),"_onMouseMove",function(H,ee){var X=z.props,K=z.state.isHorizontal?H*(z.props.isRTL?-1:1):ee;K/=z.state.scale;var Q=n.default.flushSync||function(ne){return ne()};Q(function(){return z._setNextState(z._calculateState(z.state.position+K,X.size,X.contentSize,X.orientation))})}),R(C(z),"_onMouseMoveEnd",function(){z._nextState=null,z._mouseMoveTracker.releaseMouseMoves(),z.setState({isDragging:!1})}),R(C(z),"_onKeyDown",function(H){var ee=H.keyCode;if(ee!==u.default.TAB){var X=k,K=0;if(z.state.isHorizontal)switch(ee){case u.default.HOME:K=-1,X=z.props.contentSize;break;case u.default.LEFT:K=-1;break;case u.default.RIGHT:K=1;break;default:return}if(!z.state.isHorizontal)switch(ee){case u.default.SPACE:H.shiftKey?K=-1:K=1;break;case u.default.HOME:K=-1,X=z.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=z.props.size;break;case u.default.PAGE_DOWN:K=1,X=z.props.size;break;default:return}H.preventDefault();var Q=z.props;z._setNextState(z._calculateState(z.state.position+X*K,Q.size,Q.contentSize,Q.orientation))}}),R(C(z),"_onFocus",function(){z.setState({focused:!0})}),R(C(z),"_onBlur",function(){z.setState({focused:!1})}),R(C(z),"_blur",function(){var H=n.default.findDOMNode(C(z));if(H)try{z._onBlur(),H.blur()}catch(ee){}}),R(C(z),"getTouchX",function(H){return Math.round(H.targetTouches[0].clientX-H.target.getBoundingClientRect().x)}),R(C(z),"getTouchY",function(H){return Math.round(H.targetTouches[0].clientY-H.target.getBoundingClientRect().y)}),R(C(z),"_setNextState",function(H,ee){ee=ee||z.props;var X=ee.position,K=z.state.position!==H.position;if(X===void 0){var Q=K?z._didScroll:void 0;z.setState(H,Q)}else if(X===H.position)z.setState(H);else{H.position!==void 0&&H.position!==z.state.position&&z.props.onScroll(H.position);return}K&&W!==C(z)&&(W&&W._blur(),W=C(z))}),R(C(z),"_didScroll",function(){z.props.onScroll(z.state.position)}),z.state=z._calculateState(U.position||U.defaultPosition||0,U.size,U.contentSize,U.orientation),z._initialRender=!0,z}return y(q,[{key:"componentDidUpdate",value:function(){var z=this.props.position;z===void 0?this._setNextState(this._calculateState(this.state.position,this.props.size,this.props.contentSize,this.props.orientation)):this._setNextState(this._calculateState(z,this.props.size,this.props.contentSize,this.props.orientation),this.props)}},{key:"render",value:function(){if(!this.state.scrollable)return null;var z=this.props.size,H,ee,X=this.state.isHorizontal,K=!X,Q=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":Q}),fe=(0,o.default)({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":X,"ScrollbarLayout/faceVertical":K,"public/Scrollbar/faceActive":Q,"public/Scrollbar/face":!0}),pe=this.state.position*this.state.scale+A;return X?(H={width:z},ee={width:ne-I,top:0,bottom:0},(0,m.default)(ee,pe,0,this._initialRender,this.props.isRTL)):(H={top:se,height:z},this.props.isRTL&&(H.left=H.right||0,H.right="auto"),ee={height:ne-I},(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 z=this.props.orientation==="horizontal",H=z?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 d.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),W===this&&(W=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=k,j.SIZE=parseInt((0,p.default)("--scrollbar-size"),10),j.OFFSET=1;var $=j;e.default=$})(vl);(function(e){function t(x){"@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(x)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=_(af),n=_(m_),a=_(g_),o=_(go),l=_(y_),u=g(Ye),c=ml,d=_(x_),p=_(T_),m=_(vl);function h(x){if(typeof WeakMap!="function")return null;var P=new WeakMap,R=new WeakMap;return(h=function(A){return A?R:P})(x)}function g(x,P){if(x&&x.__esModule)return x;if(x===null||t(x)!=="object"&&typeof x!="function")return{default:x};var R=h(P);if(R&&R.has(x))return R.get(x);var D={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in x)if(I!=="default"&&Object.prototype.hasOwnProperty.call(x,I)){var N=A?Object.getOwnPropertyDescriptor(x,I):null;N&&(N.get||N.set)?Object.defineProperty(D,I,N):D[I]=x[I]}return D.default=x,R&&R.set(x,D),D}function _(x){return x&&x.__esModule?x:{default:x}}function y(){return y=Object.assign||function(x){for(var P=1;P<arguments.length;P++){var R=arguments[P];for(var D in R)Object.prototype.hasOwnProperty.call(R,D)&&(x[D]=R[D])}return x},y.apply(this,arguments)}function w(){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 E(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w(),P=arguments.length>1?arguments[1]:void 0;switch(P.type){case u.INITIALIZE:{var R=P.props,D=T(x,R);D=S(D);var A=(0,c.getScrollAnchor)(D,R);return D=(0,p.default)(D,A),d.default.initialize(D,R,{})}case u.PROP_CHANGE:{var I=P.newProps,N=P.oldProps,k=T(x,I);(N.rowsCount!==I.rowsCount||N.rowHeight!==I.rowHeight||N.subRowHeight!==I.subRowHeight)&&(k=S(k)),N.rowsCount!==I.rowsCount&&(k.rowBufferSet=new n.default);var W=(0,c.getScrollAnchor)(k,I,N);return(!(0,o.default)(x,k)||W.changed)&&(k=(0,p.default)(k,W)),k=d.default.initialize(k,I,N),(k.scrollX!==x.scrollX||k.scrollY!==x.scrollY)&&(k.scrolling=k.scrolling||!0),k}case u.SCROLL_END:{var j=y({},x,{scrolling:!1}),$={firstIndex:x.firstRowIndex,firstOffset:x.firstRowOffset,lastIndex:x.lastIndex};return(0,p.default)(j,$)}case u.SCROLL_TO_Y:{var B=P.scrollY,G=y({},x,{scrolling:!0}),q=(0,c.scrollTo)(G,B);return(0,p.default)(G,q)}case u.COLUMN_RESIZE:{var U=P.resizeData;return d.default.resizeColumn(x,U)}case u.COLUMN_REORDER_START:{var z=P.reorderData;return d.default.reorderColumn(x,z)}case u.COLUMN_REORDER_END:return y({},x,{isColumnReordering:!1,columnReorderingData:{}});case u.COLUMN_REORDER_MOVE:{var H=P.deltaX;return d.default.reorderColumnMove(x,H)}case u.SCROLL_TO_X:{var ee=P.scrollX;return y({},x,{scrolling:!0,scrollX:ee})}default:return x}}function S(x){for(var P=x.rowSettings,R=P.rowHeight,D=P.rowsCount,A=P.subRowHeight,I=R+A,N=a.default.uniform(D,I),k=D*I,W=new Array(D),j=0;j<D;j++)W[j]=I;return y({},x,{rowOffsetIntervalTree:N,scrollContentHeight:k,storedHeights:W})}function T(x,P){var R=(0,l.default)(P.children),D=R.columnGroupProps,A=R.columnProps,I=R.elementTemplates,N=R.useGroupHeader,k=y({},x,{columnGroupProps:D,columnProps:A,elementTemplates:I,propsRevision:x.propsRevision+1});k.elementHeights=y({},k.elementHeights,(0,r.default)(P,["cellGroupWrapperHeight","footerHeight","groupHeaderHeight","headerHeight"])),N||(k.elementHeights.groupHeaderHeight=0),k.rowSettings=y({},k.rowSettings,(0,r.default)(P,["bufferRowCount","rowHeight","rowsCount","subRowHeight"]));var W=k.rowSettings,j=W.rowHeight,$=W.subRowHeight;return k.rowSettings.rowHeightGetter=P.rowHeightGetter||function(){return j},k.rowSettings.subRowHeightGetter=P.subRowHeightGetter||function(){return $||0},k.rowSettings.rowAttributesGetter=P.rowAttributesGetter,k.scrollFlags=y({},k.scrollFlags,(0,r.default)(P,["overflowX","overflowY","showScrollbarX","showScrollbarY"])),k.tableSize=y({},k.tableSize,(0,r.default)(P,["height","maxHeight","ownerHeight","width"])),k.tableSize.useMaxHeight=k.tableSize.height===void 0,k.scrollbarXHeight=P.scrollbarXHeight,k.scrollbarYWidth=P.scrollbarYWidth,k}var C=E;e.default=C})(p_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=mb,r=n(p_);function n(o){return o&&o.__esModule?o:{default:o}}var a={get:function(){return(0,t.createStore)(r.default)}};e.default=a})(h_);var M_={},w7=jb,x7=Ub,C7=ol,T7=Xt,S7=cl,E7=lf,M7=Wb,P7=uf,R7="[object Map]",O7="[object Set]",k7=Object.prototype,N7=k7.hasOwnProperty;function D7(e){if(e==null)return!0;if(S7(e)&&(T7(e)||typeof e=="string"||typeof e.splice=="function"||E7(e)||P7(e)||C7(e)))return!e.length;var t=x7(e);if(t==R7||t==O7)return!e.size;if(M7(e))return!w7(e).length;for(var r in e)if(N7.call(e,r))return!1;return!0}var A7=D7;(function(e){function t(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(I){return typeof I}:t=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},t(D)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(J),n=c(Ht),a=c(A7),o=c(fr),l=c(Sn),u=c(vl);function c(D){return D&&D.__esModule?D:{default:D}}function d(){return d=Object.assign||function(D){for(var A=1;A<arguments.length;A++){var I=arguments[A];for(var N in I)Object.prototype.hasOwnProperty.call(I,N)&&(D[N]=I[N])}return D},d.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 I=0;I<A.length;I++){var N=A[I];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(D,N.key,N)}}function h(D,A,I){return A&&m(D.prototype,A),D}function g(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(N,k){return N.__proto__=k,N},_(D,A)}function y(D){var A=S();return function(){var N=T(D),k;if(A){var W=T(this).constructor;k=Reflect.construct(N,arguments,W)}else k=N.apply(this,arguments);return w(this,k)}}function w(D,A){return A&&(t(A)==="object"||typeof A=="function")?A:E(D)}function E(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function S(){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 T(D){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},T(D)}function C(D,A,I){return A in D?Object.defineProperty(D,A,{value:I,enumerable:!0,configurable:!0,writable:!0}):D[A]=I,D}var x=function(D){g(I,D);var A=y(I);function I(){var N;p(this,I);for(var k=arguments.length,W=new Array(k),j=0;j<k;j++)W[j]=arguments[j];return N=A.call.apply(A,[this].concat(W)),C(E(N),"state",{}),C(E(N),"_onScrollBarsUpdate",function($){N.setState($)}),C(E(N),"_onVerticalScroll",function($){N.state.scrollToY!==void 0&&N.state.scrollToY($)}),C(E(N),"_onHorizontalScroll",function($){N.state.scrollToX!==void 0&&N.state.scrollToX($)}),N}return h(I,[{key:"render",value:function(){var k=!(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}),W=!(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:W,scrollbarY:k})}}]),I}(r.default.Component),P=function(D){g(I,D);var A=y(I);function I(){return p(this,I),A.apply(this,arguments)}return h(I,[{key:"render",value:function(){var k=this.props,W=k.offset,j=k.size,$={height:u.default.SIZE,width:j},B={height:u.default.SIZE,overflow:"hidden",width:j,top:W};return r.default.createElement("div",{className:(0,l.default)((0,o.default)("public/fixedDataTable/horizontalScrollbar")),style:$},r.default.createElement("div",{style:B},r.default.createElement(u.default,d({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}}]),I}(r.default.PureComponent);C(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=x;e.default=R})(M_);(function(e){function t($){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(G){return typeof G}:t=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},t($)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=w(J),n=mb,a=w(Ui),o=w(af),l=y(Ye),u=y(Nr),c=y(Dr),d=w(Pb),p=w(h_),m=w(vl),h=w(M_),g=u_;function _($){if(typeof WeakMap!="function")return null;var B=new WeakMap,G=new WeakMap;return(_=function(U){return U?G:B})($)}function y($,B){if($&&$.__esModule)return $;if($===null||t($)!=="object"&&typeof $!="function")return{default:$};var G=_(B);if(G&&G.has($))return G.get($);var q={},U=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in $)if(z!=="default"&&Object.prototype.hasOwnProperty.call($,z)){var H=U?Object.getOwnPropertyDescriptor($,z):null;H&&(H.get||H.set)?Object.defineProperty(q,z,H):q[z]=$[z]}return q.default=$,G&&G.set($,q),q}function w($){return $&&$.__esModule?$:{default:$}}function E(){return E=Object.assign||function($){for(var B=1;B<arguments.length;B++){var G=arguments[B];for(var q in G)Object.prototype.hasOwnProperty.call(G,q)&&($[q]=G[q])}return $},E.apply(this,arguments)}function S($,B){if(!($ instanceof B))throw new TypeError("Cannot call a class as a function")}function T($,B){for(var G=0;G<B.length;G++){var q=B[G];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty($,q.key,q)}}function C($,B,G){return B&&T($.prototype,B),G&&T($,G),$}function x($,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(B&&B.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),B&&P($,B)}function P($,B){return P=Object.setPrototypeOf||function(q,U){return q.__proto__=U,q},P($,B)}function R($){var B=I();return function(){var q=N($),U;if(B){var z=N(this).constructor;U=Reflect.construct(q,arguments,z)}else U=q.apply(this,arguments);return D(this,U)}}function D($,B){return B&&(t(B)==="object"||typeof B=="function")?B:A($)}function A($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function I(){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($){return!1}}function N($){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},N($)}function k($,B,G){return B in $?Object.defineProperty($,B,{value:G,enumerable:!0,configurable:!0,writable:!0}):$[B]=G,$}var W=function($){x(G,$);var B=R(G);function G(q){var U;return S(this,G),U=B.call(this,q),U.reduxStore=p.default.get(),U.scrollActions=(0,n.bindActionCreators)(c,U.reduxStore.dispatch),U.columnActions=(0,n.bindActionCreators)(u,U.reduxStore.dispatch),U.reduxStore.dispatch({type:l.INITIALIZE,props:q}),U.unsubscribe=U.reduxStore.subscribe(U.onStoreUpdate.bind(A(U))),U.state={boundState:G.getBoundState(U.reduxStore),reduxStore:U.reduxStore,props:q},U}return C(G,[{key:"componentWillUnmount",value:function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null),this.reduxStore=null}},{key:"render",value:function(){var U=r.default.createElement(d.default,E({},this.props,this.state.boundState,{scrollActions:this.scrollActions,columnActions:this.columnActions}));return this.props.defaultScrollbars?r.default.createElement(h.default,this.props,U):U}},{key:"onStoreUpdate",value:function(){var U=G.getBoundState(this.reduxStore);this.state.boundState.propsRevision===U.propsRevision&&this.setState({boundState:U})}}],[{key:"getDerivedStateFromProps",value:function(U,z){return(0,a.default)(U.height!==void 0||U.maxHeight!==void 0,"You must set either a height or a maxHeight"),U===z.props?null:(z.reduxStore.dispatch({type:l.PROP_CHANGE,newProps:U,oldProps:z.props}),{boundState:G.getBoundState(z.reduxStore),props:U})}},{key:"getBoundState",value:function(U){var z=U.getState(),H=(0,o.default)(z,["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}}]),G}(r.default.Component);k(W,"defaultProps",{defaultScrollbars:!0,scrollbarXHeight:m.default.SIZE,scrollbarYWidth:m.default.SIZE});var j=(0,g.polyfill)(W);e.default=j})(fb);var P_={};(function(e){function t(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(N){return typeof N}:t=function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},t(A)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(J),n=l(Ht),a=l(fr),o=l(Sn);function l(A){return A&&A.__esModule?A:{default:A}}function u(){return u=Object.assign||function(A){for(var I=1;I<arguments.length;I++){var N=arguments[I];for(var k in N)Object.prototype.hasOwnProperty.call(N,k)&&(A[k]=N[k])}return A},u.apply(this,arguments)}function c(A,I){var N=Object.keys(A);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(A);I&&(k=k.filter(function(W){return Object.getOwnPropertyDescriptor(A,W).enumerable})),N.push.apply(N,k)}return N}function d(A){for(var I=1;I<arguments.length;I++){var N=arguments[I]!=null?arguments[I]:{};I%2?c(Object(N),!0).forEach(function(k){P(A,k,N[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(N)):c(Object(N)).forEach(function(k){Object.defineProperty(A,k,Object.getOwnPropertyDescriptor(N,k))})}return A}function p(A,I){if(A==null)return{};var N=m(A,I),k,W;if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(A);for(W=0;W<j.length;W++)k=j[W],!(I.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(A,k)&&(N[k]=A[k])}return N}function m(A,I){if(A==null)return{};var N={},k=Object.keys(A),W,j;for(j=0;j<k.length;j++)W=k[j],!(I.indexOf(W)>=0)&&(N[W]=A[W]);return N}function h(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function g(A,I){for(var N=0;N<I.length;N++){var k=I[N];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(A,k.key,k)}}function _(A,I,N){return I&&g(A.prototype,I),A}function y(A,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),I&&w(A,I)}function w(A,I){return w=Object.setPrototypeOf||function(k,W){return k.__proto__=W,k},w(A,I)}function E(A){var I=C();return function(){var k=x(A),W;if(I){var j=x(this).constructor;W=Reflect.construct(k,arguments,j)}else W=k.apply(this,arguments);return S(this,W)}}function S(A,I){return I&&(t(I)==="object"||typeof I=="function")?I:T(A)}function T(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}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(A){return!1}}function x(A){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)},x(A)}function P(A,I,N){return I in A?Object.defineProperty(A,I,{value:N,enumerable:!0,configurable:!0,writable:!0}):A[I]=N,A}var R=function(A){y(N,A);var I=E(N);function N(){return h(this,N),I.apply(this,arguments)}return _(N,[{key:"render",value:function(){var W=this.props,j=W.height,$=W.width,B=W.style,G=W.className,q=W.children,U=p(W,["height","width","isVisible","style","className","children","columnKey","rowIndex"]),z=d({height:j,width:$},B);return r.default.createElement("div",u({},U,{className:(0,o.default)((0,a.default)("fixedDataTableCellLayout/wrap"),(0,a.default)("public/fixedDataTableCell/wrap"),(0,a.default)("public/fixedDataTableCell/cellContent"),G),style:z}),q)}}]),N}(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})(P_);var R_={};(function(e){function t(S){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(C){return typeof C}:t=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},t(S)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(J),n=a(Ht);function a(S){return S&&S.__esModule?S:{default:S}}function o(S,T){if(!(S instanceof T))throw new TypeError("Cannot call a class as a function")}function l(S,T){for(var C=0;C<T.length;C++){var x=T[C];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,x.key,x)}}function u(S,T,C){return T&&l(S.prototype,T),S}function c(S,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(T&&T.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),T&&d(S,T)}function d(S,T){return d=Object.setPrototypeOf||function(x,P){return x.__proto__=P,x},d(S,T)}function p(S){var T=g();return function(){var x=_(S),P;if(T){var R=_(this).constructor;P=Reflect.construct(x,arguments,R)}else P=x.apply(this,arguments);return m(this,P)}}function m(S,T){return T&&(t(T)==="object"||typeof T=="function")?T:h(S)}function h(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function g(){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(S){return!1}}function _(S){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},_(S)}function y(S,T,C){return T in S?Object.defineProperty(S,T,{value:C,enumerable:!0,configurable:!0,writable:!0}):S[T]=C,S}var w=function(S){c(C,S);var T=p(C);function C(){return o(this,C),T.apply(this,arguments)}return u(C,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumn /> should never render");return null}}]),C}(r.default.Component);y(w,"__TableColumn__",!0),y(w,"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}),y(w,"defaultProps",{allowCellsRecycling:!1,fixed:!1,fixedRight:!1});var E=w;e.default=E})(R_);var O_={};(function(e){function t(S){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(C){return typeof C}:t=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},t(S)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(J),n=a(Ht);function a(S){return S&&S.__esModule?S:{default:S}}function o(S,T){if(!(S instanceof T))throw new TypeError("Cannot call a class as a function")}function l(S,T){for(var C=0;C<T.length;C++){var x=T[C];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,x.key,x)}}function u(S,T,C){return T&&l(S.prototype,T),S}function c(S,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(T&&T.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),T&&d(S,T)}function d(S,T){return d=Object.setPrototypeOf||function(x,P){return x.__proto__=P,x},d(S,T)}function p(S){var T=g();return function(){var x=_(S),P;if(T){var R=_(this).constructor;P=Reflect.construct(x,arguments,R)}else P=x.apply(this,arguments);return m(this,P)}}function m(S,T){return T&&(t(T)==="object"||typeof T=="function")?T:h(S)}function h(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function g(){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(S){return!1}}function _(S){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},_(S)}function y(S,T,C){return T in S?Object.defineProperty(S,T,{value:C,enumerable:!0,configurable:!0,writable:!0}):S[T]=C,S}var w=function(S){c(C,S);var T=p(C);function C(){return o(this,C),T.apply(this,arguments)}return u(C,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumnGroup /> should never render");return null}}]),C}(r.default.Component);y(w,"__TableColumnGroup__",!0),y(w,"propTypes",{align:n.default.oneOf(["left","center","right"]),fixed:n.default.bool,header:n.default.oneOfType([n.default.node,n.default.func])}),y(w,"defaultProps",{fixed:!1});var E=w;e.default=E})(O_);(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(fb),r=l(yf),n=l(P_),a=l(R_),o=l(O_);function l(c){return c&&c.__esModule?c:{default:c}}var u="1.2.22";e.version=u})(db);var Jo=db;const L7="#f4f4f8",I7="#edeef1",$7="#e3e5ea",z7="#f9f9fb",F7="#ffcb05",W7="#1faff3",j7="#e5e5e5",B7="#5b6372",H7="#3a4356",V7="#3c3c42",U7="#a3a3a3",q7="#d0d3db",G7="_tableWrapper_1ode4_16",Y7="_table_1ode4_16",X7="_tableHeader_1ode4_78",Z7="_tableCell_1ode4_88",K7="_tableCellContent_1ode4_99",Q7="_headerColor_1ode4_105",J7="_rowColor_1ode4_109",Pa={athensGray:L7,athensGrayDark:I7,athensGrayDark2:$7,athensGrayLight:z7,defaultBrandColor:F7,dodgerBlue:W7,mercury:j7,shuttleGrayDark:B7,oxfordBlue:H7,darkModeDefaultBackground:V7,indicatorGrey:U7,secondaryButtonHover:q7,tableWrapper:G7,table:Y7,tableHeader:X7,tableCell:Z7,tableCellContent:K7,headerColor:Q7,rowColor:J7},eU="#f4f4f8",tU="#edeef1",rU="#e3e5ea",nU="#f9f9fb",iU="#ffcb05",aU="#1faff3",oU="#e5e5e5",sU="#5b6372",lU="#3a4356",uU="#3c3c42",cU="#a3a3a3",dU="#d0d3db",fU="_headerCell_2qf2w_16",hU="_noSort_2qf2w_29",pU="_standard_2qf2w_29",mU="_caret_2qf2w_33",vU="_headerLabel_2qf2w_38",gU="_icon_2qf2w_43",yU="_numberIcon_2qf2w_50",bU="_dateIcon_2qf2w_54",_U="_textIcon_2qf2w_58",wU="_booleanIcon_2qf2w_62",xU="_sortIcon_2qf2w_66",CU="_sortAscending_2qf2w_74",TU="_sortDescending_2qf2w_78",fn={athensGray:eU,athensGrayDark:tU,athensGrayDark2:rU,athensGrayLight:nU,defaultBrandColor:iU,dodgerBlue:aU,mercury:oU,shuttleGrayDark:sU,oxfordBlue:lU,darkModeDefaultBackground:uU,indicatorGrey:cU,secondaryButtonHover:dU,headerCell:fU,noSort:hU,standard:pU,caret:mU,headerLabel:vU,icon:gU,numberIcon:yU,dateIcon:bU,textIcon:_U,booleanIcon:wU,sortIcon:xU,sortAscending:CU,sortDescending:TU};var k_={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})()})(k_);var SU=k_.exports;const Ua=O.getDefaultExportFromCjs(SU),EU="_icon_t30x8_1",MU="_numberIcon_t30x8_11",PU="_dateIcon_t30x8_15",RU="_textIcon_t30x8_19",OU="_booleanIcon_t30x8_23",_a={icon:EU,numberIcon:MU,dateIcon:PU,textIcon:RU,booleanIcon:OU},kU=({columnType:e})=>V.jsx("div",{className:Ua(_a.icon,{[_a.numberIcon]:O.isNumber(e),[_a.dateIcon]:O.isDatetime(e),[_a.textIcon]:O.isText(e),[_a.booleanIcon]:O.isBoolean(e)})}),NU=({column:e,onClick:t,isSelected:r,children:n,showFieldTypeIcon:a,sortIcon:o="standard"})=>V.jsxs("div",{className:fn.headerCell,onClick:()=>{t(e)},children:[a&&V.jsx(kU,{columnType:e.type}),V.jsx("div",{className:fn.headerLabel,children:n}),V.jsx("div",{className:Ua(fn.sortIcon,{[fn.caret]:o==="caret",[fn.standard]:o==="standard",[fn.noSort]:!r||e.direction===0,[fn.sortAscending]:r&&e.direction===1,[fn.sortDescending]:r&&e.direction===-1})})]}),DU=26,AU=26,nv=20,N_=36,D_=29,A_=24,jc=350,LU=126,IU=38,$U=55,zU=(e,t,r,n)=>{const o=document.createElement("canvas").getContext("2d");if(!o)return[];o.font=`13px ${n||"Open Sans"}`;const l=e.columns.map(m=>o.measureText(m.name).width+N_+(t?D_:0)),u=o.measureText("0").width,c=e.columns.map(m=>({type:O.simpleColumnType(m.type),index:m.index})),{rows:d}=e,p=c.map(m=>{const h=d.reduce((g,_)=>{var S;const y=_[m.index].displayValue,w=(S=r[m.index])!=null&&S.isHtml?FU(y):y,E=m.type==="number"?_[m.index].displayValue.length*u:o.measureText(w).width;return Math.max(g,E)},0);return A_+h});return l.map((m,h)=>{var g;return(g=r[h])!=null&&g.width?r[h].width:Math.ceil(Math.max(LU,Math.min(jc,Math.max(m,p[h]))))})};function FU(e){const t=document.createElement("div");return t.innerHTML=e,L_(t)}function L_(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=L_(a):a.nodeType===3&&(n=a.nodeValue),n&&(r+=n);return r}const iv=e=>e%2===1,av=({colIndex:e=0,rowIndex:t=0,themeSettings:r,customStyles:n,isHeaderCell:a})=>{var d,p,m,h,g,_,y,w,E,S,T,C,x,P,R,D,A,I;let o=r.chart.textColor;const l=r.typography.fontFamily;let u=r.chart.backgroundColor;const c=O.getSlightlyDifferentColor(u);return a?(p=(d=n==null?void 0:n.header)==null?void 0:d.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=((_=(g=n==null?void 0:n.header)==null?void 0:g.color)==null?void 0:_.textColor)||o):((w=(y=n==null?void 0:n.columns)==null?void 0:y.alternatingColor)!=null&&w.enabled&&iv(e)&&(u=((S=(E=n==null?void 0:n.columns)==null?void 0:E.alternatingColor)==null?void 0:S.backgroundColor)||c,o=((C=(T=n==null?void 0:n.columns)==null?void 0:T.alternatingColor)==null?void 0:C.textColor)||o),(P=(x=n==null?void 0:n.rows)==null?void 0:x.alternatingColor)!=null&&P.enabled&&iv(t)&&(u=((D=(R=n==null?void 0:n.rows)==null?void 0:R.alternatingColor)==null?void 0:D.backgroundColor)||c,o=((I=(A=n==null?void 0:n.rows)==null?void 0:A.alternatingColor)==null?void 0:I.textColor)||o)),{color:o,backgroundColor:u,fontFamily:l}};function I_(e){return typeof e=="string"}function Ra(e,t,r){return e===void 0||I_(e)?t:te({},t,{ownerState:te({},t.ownerState,r)})}const WU={disableDefaultClasses:!1},$_=Z.createContext(WU);process.env.NODE_ENV!=="production"&&($_.displayName="ClassNameConfiguratorContext");function jU(e){const{disableDefaultClasses:t}=Z.useContext($_);return r=>t?"":e(r)}function z_(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 BU(e,t,r){return typeof e=="function"?e(t,r):e}function ov(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 HU(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const g=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),y=te({},r,a,n);return g.length>0&&(y.className=g),Object.keys(_).length>0&&(y.style=_),{props:y,internalRef:void 0}}const l=z_(te({},a,n)),u=ov(n),c=ov(a),d=t(l),p=Oe(d==null?void 0:d.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),m=te({},d==null?void 0:d.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),h=te({},d,r,c,u);return p.length>0&&(h.className=p),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:d.ref}}const VU=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function wn(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,l=Ee(e,VU),u=o?{}:BU(n,a),{props:c,internalRef:d}=HU(te({},l,{externalSlotProps:u})),p=It(d,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return Ra(r,te({},c,{ref:p}),a)}function bo(){const e=Fy(jd);return process.env.NODE_ENV!=="production"&&Z.useDebugValue(e),e[Bd]||e}function Es(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 UU=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Bc(e){return`scale(${e}, ${Ut(e,2)})`}const qU={entering:{opacity:1,transform:Bc(1)},entered:{opacity:1,transform:"none"}},Eu=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),qa=Z.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:m,onExited:h,onExiting:g,style:_,timeout:y="auto",TransitionComponent:w=jr}=t,E=Ee(t,UU),S=Mi(),T=Z.useRef(),C=bo(),x=Z.useRef(null),P=It(x,o.ref,r),R=$=>B=>{if($){const G=x.current;B===void 0?$(G):$(G,B)}},D=R(p),A=R(($,B)=>{const{duration:G,delay:q,easing:U}=Es({style:_,timeout:y,easing:l},{mode:"enter"});let z;y==="auto"?(z=C.transitions.getAutoHeightDuration($.clientHeight),T.current=z):z=G,$.style.transition=[C.transitions.create("opacity",{duration:z,delay:q}),C.transitions.create("transform",{duration:Eu?z:z*.666,delay:q,easing:U})].join(","),c&&c($,B)}),I=R(d),N=R(g),k=R($=>{const{duration:B,delay:G,easing:q}=Es({style:_,timeout:y,easing:l},{mode:"exit"});let U;y==="auto"?(U=C.transitions.getAutoHeightDuration($.clientHeight),T.current=U):U=B,$.style.transition=[C.transitions.create("opacity",{duration:U,delay:G}),C.transitions.create("transform",{duration:Eu?U:U*.666,delay:Eu?G:G||U*.333,easing:q})].join(","),$.style.opacity=0,$.style.transform=Bc(.75),m&&m($)}),W=R(h),j=$=>{y==="auto"&&S.start(T.current||0,$),n&&n(x.current,$)};return V.jsx(w,te({appear:a,in:u,nodeRef:x,onEnter:A,onEntered:I,onEntering:D,onExit:k,onExited:W,onExiting:N,addEndListener:j,timeout:y==="auto"?null:y},E,{children:($,B)=>Z.cloneElement(o,te({style:te({opacity:0,transform:Bc(.75),visibility:$==="exited"&&!u?"hidden":void 0},qU[$],_,o.props.style),ref:P},B))}))});process.env.NODE_ENV!=="production"&&(qa.propTypes={addEndListener:v.func,appear:v.bool,children:Kn.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})])});qa.muiSupportAuto=!0;var Wt="top",lr="bottom",ur="right",jt="left",Cf="auto",_o=[Wt,lr,ur,jt],Ii="start",Ga="end",GU="clippingParents",F_="viewport",wa="popper",YU="reference",sv=_o.reduce(function(e,t){return e.concat([t+"-"+Ii,t+"-"+Ga])},[]),W_=[].concat(_o,[Cf]).reduce(function(e,t){return e.concat([t,t+"-"+Ii,t+"-"+Ga])},[]),XU="beforeRead",ZU="read",KU="afterRead",QU="beforeMain",JU="main",e9="afterMain",t9="beforeWrite",r9="write",n9="afterWrite",i9=[XU,ZU,KU,QU,JU,e9,t9,r9,n9];function Fr(e){return e?(e.nodeName||"").toLowerCase():null}function Yt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gn(e){var t=Yt(e).Element;return e instanceof t||e instanceof Element}function or(e){var t=Yt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tf(e){if(typeof ShadowRoot=="undefined")return!1;var t=Yt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function a9(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];!or(o)||!Fr(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 o9(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,d){return c[d]="",c},{});!or(a)||!Fr(a)||(Object.assign(a.style,u),Object.keys(o).forEach(function(c){a.removeAttribute(c)}))})}}const s9={name:"applyStyles",enabled:!0,phase:"write",fn:a9,effect:o9,requires:["computeStyles"]};function zr(e){return e.split("-")[0]}var Un=Math.max,Ms=Math.min,$i=Math.round;function Hc(){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 j_(){return!/^((?!chrome|android).)*safari/i.test(Hc())}function zi(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&or(e)&&(a=e.offsetWidth>0&&$i(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&$i(n.height)/e.offsetHeight||1);var l=Gn(e)?Yt(e):window,u=l.visualViewport,c=!j_()&&r,d=(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:d+m,bottom:p+h,left:d,x:d,y:p}}function Sf(e){var t=zi(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 B_(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Tf(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Qr(e){return Yt(e).getComputedStyle(e)}function l9(e){return["table","td","th"].indexOf(Fr(e))>=0}function Pn(e){return((Gn(e)?e.ownerDocument:e.document)||window.document).documentElement}function gl(e){return Fr(e)==="html"?e:e.assignedSlot||e.parentNode||(Tf(e)?e.host:null)||Pn(e)}function lv(e){return!or(e)||Qr(e).position==="fixed"?null:e.offsetParent}function u9(e){var t=/firefox/i.test(Hc()),r=/Trident/i.test(Hc());if(r&&or(e)){var n=Qr(e);if(n.position==="fixed")return null}var a=gl(e);for(Tf(a)&&(a=a.host);or(a)&&["html","body"].indexOf(Fr(a))<0;){var o=Qr(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 wo(e){for(var t=Yt(e),r=lv(e);r&&l9(r)&&Qr(r).position==="static";)r=lv(r);return r&&(Fr(r)==="html"||Fr(r)==="body"&&Qr(r).position==="static")?t:r||u9(e)||t}function Ef(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Na(e,t,r){return Un(e,Ms(t,r))}function c9(e,t,r){var n=Na(e,t,r);return n>r?r:n}function H_(){return{top:0,right:0,bottom:0,left:0}}function V_(e){return Object.assign({},H_(),e)}function U_(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var d9=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,V_(typeof t!="number"?t:U_(t,_o))};function f9(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=Ef(u),d=[jt,ur].indexOf(u)>=0,p=d?"height":"width";if(!(!o||!l)){var m=d9(a.padding,r),h=Sf(o),g=c==="y"?Wt:jt,_=c==="y"?lr:ur,y=r.rects.reference[p]+r.rects.reference[c]-l[c]-r.rects.popper[p],w=l[c]-r.rects.reference[c],E=wo(o),S=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,T=y/2-w/2,C=m[g],x=S-h[p]-m[_],P=S/2-h[p]/2+T,R=Na(C,P,x),D=c;r.modifiersData[n]=(t={},t[D]=R,t.centerOffset=R-P,t)}}function h9(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)||B_(t.elements.popper,a)&&(t.elements.arrow=a))}const p9={name:"arrow",enabled:!0,phase:"main",fn:f9,effect:h9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fi(e){return e.split("-")[1]}var m9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function v9(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:$i(r*a)/a||0,y:$i(n*a)/a||0}}function uv(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,l=e.offsets,u=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,m=e.isFixed,h=l.x,g=h===void 0?0:h,_=l.y,y=_===void 0?0:_,w=typeof p=="function"?p({x:g,y}):{x:g,y};g=w.x,y=w.y;var E=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),T=jt,C=Wt,x=window;if(d){var P=wo(r),R="clientHeight",D="clientWidth";if(P===Yt(r)&&(P=Pn(r),Qr(P).position!=="static"&&u==="absolute"&&(R="scrollHeight",D="scrollWidth")),P=P,a===Wt||(a===jt||a===ur)&&o===Ga){C=lr;var A=m&&P===x&&x.visualViewport?x.visualViewport.height:P[R];y-=A-n.height,y*=c?1:-1}if(a===jt||(a===Wt||a===lr)&&o===Ga){T=ur;var I=m&&P===x&&x.visualViewport?x.visualViewport.width:P[D];g-=I-n.width,g*=c?1:-1}}var N=Object.assign({position:u},d&&m9),k=p===!0?v9({x:g,y},Yt(r)):{x:g,y};if(g=k.x,y=k.y,c){var W;return Object.assign({},N,(W={},W[C]=S?"0":"",W[T]=E?"0":"",W.transform=(x.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",W))}return Object.assign({},N,(t={},t[C]=S?y+"px":"",t[T]=E?g+"px":"",t.transform="",t))}function g9(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,d={placement:zr(t.placement),variation:Fi(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,uv(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,uv(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const y9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:g9,data:{}};var es={passive:!0};function b9(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=Yt(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(p){p.addEventListener("scroll",r.update,es)}),u&&c.addEventListener("resize",r.update,es),function(){o&&d.forEach(function(p){p.removeEventListener("scroll",r.update,es)}),u&&c.removeEventListener("resize",r.update,es)}}const _9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:b9,data:{}};var w9={left:"right",right:"left",bottom:"top",top:"bottom"};function fs(e){return e.replace(/left|right|bottom|top/g,function(t){return w9[t]})}var x9={start:"end",end:"start"};function cv(e){return e.replace(/start|end/g,function(t){return x9[t]})}function Mf(e){var t=Yt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Pf(e){return zi(Pn(e)).left+Mf(e).scrollLeft}function C9(e,t){var r=Yt(e),n=Pn(e),a=r.visualViewport,o=n.clientWidth,l=n.clientHeight,u=0,c=0;if(a){o=a.width,l=a.height;var d=j_();(d||!d&&t==="fixed")&&(u=a.offsetLeft,c=a.offsetTop)}return{width:o,height:l,x:u+Pf(e),y:c}}function T9(e){var t,r=Pn(e),n=Mf(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Un(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Un(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-n.scrollLeft+Pf(e),c=-n.scrollTop;return Qr(a||r).direction==="rtl"&&(u+=Un(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:l,x:u,y:c}}function Rf(e){var t=Qr(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function q_(e){return["html","body","#document"].indexOf(Fr(e))>=0?e.ownerDocument.body:or(e)&&Rf(e)?e:q_(gl(e))}function Da(e,t){var r;t===void 0&&(t=[]);var n=q_(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Yt(n),l=a?[o].concat(o.visualViewport||[],Rf(n)?n:[]):n,u=t.concat(l);return a?u:u.concat(Da(gl(l)))}function Vc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function S9(e,t){var r=zi(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 dv(e,t,r){return t===F_?Vc(C9(e,r)):Gn(t)?S9(t,r):Vc(T9(Pn(e)))}function E9(e){var t=Da(gl(e)),r=["absolute","fixed"].indexOf(Qr(e).position)>=0,n=r&&or(e)?wo(e):e;return Gn(n)?t.filter(function(a){return Gn(a)&&B_(a,n)&&Fr(a)!=="body"}):[]}function M9(e,t,r,n){var a=t==="clippingParents"?E9(e):[].concat(t),o=[].concat(a,[r]),l=o[0],u=o.reduce(function(c,d){var p=dv(e,d,n);return c.top=Un(p.top,c.top),c.right=Ms(p.right,c.right),c.bottom=Ms(p.bottom,c.bottom),c.left=Un(p.left,c.left),c},dv(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 G_(e){var t=e.reference,r=e.element,n=e.placement,a=n?zr(n):null,o=n?Fi(n):null,l=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,c;switch(a){case Wt:c={x:l,y:t.y-r.height};break;case lr:c={x:l,y:t.y+t.height};break;case ur:c={x:t.x+t.width,y:u};break;case jt:c={x:t.x-r.width,y:u};break;default:c={x:t.x,y:t.y}}var d=a?Ef(a):null;if(d!=null){var p=d==="y"?"height":"width";switch(o){case Ii:c[d]=c[d]-(t[p]/2-r[p]/2);break;case Ga:c[d]=c[d]+(t[p]/2-r[p]/2);break}}return c}function Ya(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?GU:u,d=r.rootBoundary,p=d===void 0?F_:d,m=r.elementContext,h=m===void 0?wa:m,g=r.altBoundary,_=g===void 0?!1:g,y=r.padding,w=y===void 0?0:y,E=V_(typeof w!="number"?w:U_(w,_o)),S=h===wa?YU:wa,T=e.rects.popper,C=e.elements[_?S:h],x=M9(Gn(C)?C:C.contextElement||Pn(e.elements.popper),c,p,l),P=zi(e.elements.reference),R=G_({reference:P,element:T,strategy:"absolute",placement:a}),D=Vc(Object.assign({},T,R)),A=h===wa?D:P,I={top:x.top-A.top+E.top,bottom:A.bottom-x.bottom+E.bottom,left:x.left-A.left+E.left,right:A.right-x.right+E.right},N=e.modifiersData.offset;if(h===wa&&N){var k=N[a];Object.keys(I).forEach(function(W){var j=[ur,lr].indexOf(W)>=0?1:-1,$=[Wt,lr].indexOf(W)>=0?"y":"x";I[W]+=k[$]*j})}return I}function P9(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,d=c===void 0?W_:c,p=Fi(n),m=p?u?sv:sv.filter(function(_){return Fi(_)===p}):_o,h=m.filter(function(_){return d.indexOf(_)>=0});h.length===0&&(h=m);var g=h.reduce(function(_,y){return _[y]=Ya(e,{placement:y,boundary:a,rootBoundary:o,padding:l})[zr(y)],_},{});return Object.keys(g).sort(function(_,y){return g[_]-g[y]})}function R9(e){if(zr(e)===Cf)return[];var t=fs(e);return[cv(e),t,cv(t)]}function O9(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,d=r.padding,p=r.boundary,m=r.rootBoundary,h=r.altBoundary,g=r.flipVariations,_=g===void 0?!0:g,y=r.allowedAutoPlacements,w=t.options.placement,E=zr(w),S=E===w,T=c||(S||!_?[fs(w)]:R9(w)),C=[w].concat(T).reduce(function(K,Q){return K.concat(zr(Q)===Cf?P9(t,{placement:Q,boundary:p,rootBoundary:m,padding:d,flipVariations:_,allowedAutoPlacements:y}):Q)},[]),x=t.rects.reference,P=t.rects.popper,R=new Map,D=!0,A=C[0],I=0;I<C.length;I++){var N=C[I],k=zr(N),W=Fi(N)===Ii,j=[Wt,lr].indexOf(k)>=0,$=j?"width":"height",B=Ya(t,{placement:N,boundary:p,rootBoundary:m,altBoundary:h,padding:d}),G=j?W?ur:jt:W?lr:Wt;x[$]>P[$]&&(G=fs(G));var q=fs(G),U=[];if(o&&U.push(B[k]<=0),u&&U.push(B[G]<=0,B[q]<=0),U.every(function(K){return K})){A=N,D=!1;break}R.set(N,U)}if(D)for(var z=_?3:1,H=function(Q){var ne=C.find(function(le){var se=R.get(le);if(se)return se.slice(0,Q).every(function(ue){return ue})});if(ne)return A=ne,"break"},ee=z;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 k9={name:"flip",enabled:!0,phase:"main",fn:O9,requiresIfExists:["offset"],data:{_skip:!1}};function fv(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 hv(e){return[Wt,ur,lr,jt].some(function(t){return e[t]>=0})}function N9(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,l=Ya(t,{elementContext:"reference"}),u=Ya(t,{altBoundary:!0}),c=fv(l,n),d=fv(u,a,o),p=hv(c),m=hv(d);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const D9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N9};function A9(e,t,r){var n=zr(e),a=[jt,Wt].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,[jt,ur].indexOf(n)>=0?{x:u,y:l}:{x:l,y:u}}function L9(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,l=W_.reduce(function(p,m){return p[m]=A9(m,t.rects,o),p},{}),u=l[t.placement],c=u.x,d=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=l}const I9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:L9};function $9(e){var t=e.state,r=e.name;t.modifiersData[r]=G_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const z9={name:"popperOffsets",enabled:!0,phase:"read",fn:$9,data:{}};function F9(e){return e==="x"?"y":"x"}function W9(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,d=r.rootBoundary,p=r.altBoundary,m=r.padding,h=r.tether,g=h===void 0?!0:h,_=r.tetherOffset,y=_===void 0?0:_,w=Ya(t,{boundary:c,rootBoundary:d,padding:m,altBoundary:p}),E=zr(t.placement),S=Fi(t.placement),T=!S,C=Ef(E),x=F9(C),P=t.modifiersData.popperOffsets,R=t.rects.reference,D=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,I=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(P){if(o){var W,j=C==="y"?Wt:jt,$=C==="y"?lr:ur,B=C==="y"?"height":"width",G=P[C],q=G+w[j],U=G-w[$],z=g?-D[B]/2:0,H=S===Ii?R[B]:D[B],ee=S===Ii?-D[B]:-R[B],X=t.elements.arrow,K=g&&X?Sf(X):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:H_(),ne=Q[j],le=Q[$],se=Na(0,R[B],K[B]),ue=T?R[B]/2-z-se-ne-I.mainAxis:H-se-ne-I.mainAxis,fe=T?-R[B]/2+z+se+le+I.mainAxis:ee+se+le+I.mainAxis,pe=t.elements.arrow&&wo(t.elements.arrow),oe=pe?C==="y"?pe.clientTop||0:pe.clientLeft||0:0,ve=(W=N==null?void 0:N[C])!=null?W:0,de=G+ue-ve-oe,_e=G+fe-ve,we=Na(g?Ms(q,de):q,G,g?Un(U,_e):U);P[C]=we,k[C]=we-G}if(u){var Se,Ce=C==="x"?Wt:jt,dt=C==="x"?lr:ur,Ve=P[x],rt=x==="y"?"height":"width",ft=Ve+w[Ce],Ie=Ve-w[dt],Ue=[Wt,jt].indexOf(E)!==-1,Mt=(Se=N==null?void 0:N[x])!=null?Se:0,ht=Ue?ft:Ve-R[rt]-D[rt]-Mt+I.altAxis,Pt=Ue?Ve+R[rt]+D[rt]-Mt-I.altAxis:Ie,hr=g&&Ue?c9(ht,Ve,Pt):Na(g?ht:ft,Ve,g?Pt:Ie);P[x]=hr,k[x]=hr-Ve}t.modifiersData[n]=k}}const j9={name:"preventOverflow",enabled:!0,phase:"main",fn:W9,requiresIfExists:["offset"]};function B9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function H9(e){return e===Yt(e)||!or(e)?Mf(e):B9(e)}function V9(e){var t=e.getBoundingClientRect(),r=$i(t.width)/e.offsetWidth||1,n=$i(t.height)/e.offsetHeight||1;return r!==1||n!==1}function U9(e,t,r){r===void 0&&(r=!1);var n=or(t),a=or(t)&&V9(t),o=Pn(t),l=zi(e,a,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Fr(t)!=="body"||Rf(o))&&(u=H9(t)),or(t)?(c=zi(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Pf(o))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function q9(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 G9(e){var t=q9(e);return i9.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Y9(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function X9(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 pv={placement:"bottom",modifiers:[],strategy:"absolute"};function mv(){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 Z9(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?pv:a;return function(u,c,d){d===void 0&&(d=o);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},pv,o),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},m=[],h=!1,g={state:p,setOptions:function(E){var S=typeof E=="function"?E(p.options):E;y(),p.options=Object.assign({},o,p.options,S),p.scrollParents={reference:Gn(u)?Da(u):u.contextElement?Da(u.contextElement):[],popper:Da(c)};var T=G9(X9([].concat(n,p.options.modifiers)));return p.orderedModifiers=T.filter(function(C){return C.enabled}),_(),g.update()},forceUpdate:function(){if(!h){var E=p.elements,S=E.reference,T=E.popper;if(mv(S,T)){p.rects={reference:U9(S,wo(T),p.options.strategy==="fixed"),popper:Sf(T)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(I){return p.modifiersData[I.name]=Object.assign({},I.data)});for(var C=0;C<p.orderedModifiers.length;C++){if(p.reset===!0){p.reset=!1,C=-1;continue}var x=p.orderedModifiers[C],P=x.fn,R=x.options,D=R===void 0?{}:R,A=x.name;typeof P=="function"&&(p=P({state:p,options:D,name:A,instance:g})||p)}}}},update:Y9(function(){return new Promise(function(w){g.forceUpdate(),w(p)})}),destroy:function(){y(),h=!0}};if(!mv(u,c))return g;g.setOptions(d).then(function(w){!h&&d.onFirstUpdate&&d.onFirstUpdate(w)});function _(){p.orderedModifiers.forEach(function(w){var E=w.name,S=w.options,T=S===void 0?{}:S,C=w.effect;if(typeof C=="function"){var x=C({state:p,name:E,instance:g,options:T}),P=function(){};m.push(x||P)}})}function y(){m.forEach(function(w){return w()}),m=[]}return g}}var K9=[_9,z9,y9,s9,I9,k9,j9,p9,D9],Q9=Z9({defaultModifiers:K9});function J9(e){return typeof e=="function"?e():e}const Xa=Z.forwardRef(function(t,r){const{children:n,container:a,disablePortal:o=!1}=t,[l,u]=Z.useState(null),c=It(Z.isValidElement(n)?n.ref:null,r);if(qn(()=>{o||u(J9(a)||document.body)},[a,o]),qn(()=>{if(l&&!o)return Pc(r,l),()=>{Pc(r,null)}},[r,l,o]),o){if(Z.isValidElement(n)){const d={ref:c};return Z.cloneElement(n,d)}return V.jsx(Z.Fragment,{children:n})}return V.jsx(Z.Fragment,{children:l&&n1.createPortal(n,l)})});process.env.NODE_ENV!=="production"&&(Xa.propTypes={children:v.node,container:v.oneOfType([Kr,v.func]),disablePortal:v.bool});process.env.NODE_ENV!=="production"&&(Xa.propTypes=Gd(Xa.propTypes));const Y_="base";function eq(e){return`${Y_}--${e}`}function tq(e,t){return`${Y_}-${e}-${t}`}function X_(e,t){const r=jy[t];return r?eq(r):tq(e,t)}function rq(e,t){const r={};return t.forEach(n=>{r[n]=X_(e,n)}),r}const Z_="Popper";function nq(e){return X_(Z_,e)}rq(Z_,["root"]);const iq=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],aq=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function oq(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 Ps(e){return typeof e=="function"?e():e}function yl(e){return e.nodeType!==void 0}function sq(e){return!yl(e)}const lq=()=>ot({root:["root"]},jU(nq)),uq={},cq=Z.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:l,disablePortal:u,modifiers:c,open:d,placement:p,popperOptions:m,popperRef:h,slotProps:g={},slots:_={},TransitionProps:y}=t,w=Ee(t,iq),E=Z.useRef(null),S=It(E,r),T=Z.useRef(null),C=It(T,h),x=Z.useRef(C);qn(()=>{x.current=C},[C]),Z.useImperativeHandle(h,()=>T.current,[]);const P=oq(p,l),[R,D]=Z.useState(P),[A,I]=Z.useState(Ps(a));Z.useEffect(()=>{T.current&&T.current.forceUpdate()}),Z.useEffect(()=>{a&&I(Ps(a))},[a]),qn(()=>{if(!A||!d)return;const $=q=>{D(q.placement)};if(process.env.NODE_ENV!=="production"&&A&&yl(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})=>{$(q)}}];c!=null&&(B=B.concat(c)),m&&m.modifiers!=null&&(B=B.concat(m.modifiers));const G=Q9(A,E.current,te({placement:P},m,{modifiers:B}));return x.current(G),()=>{G.destroy(),x.current(null)}},[A,u,c,d,m,P]);const N={placement:R};y!==null&&(N.TransitionProps=y);const k=lq(),W=(n=_.root)!=null?n:"div",j=wn({elementType:W,externalSlotProps:g.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:k.root});return V.jsx(W,te({},j,{children:typeof o=="function"?o(N):o}))}),K_=Z.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:l="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:d,open:p,placement:m="bottom",popperOptions:h=uq,popperRef:g,style:_,transition:y=!1,slotProps:w={},slots:E={}}=t,S=Ee(t,aq),[T,C]=Z.useState(!0),x=()=>{C(!1)},P=()=>{C(!0)};if(!c&&!p&&(!y||T))return null;let R;if(o)R=o;else if(n){const I=Ps(n);R=I&&yl(I)?Lt(I).body:Lt(null).body}const D=!p&&c&&(!y||T)?"none":void 0,A=y?{in:p,onEnter:x,onExited:P}:void 0;return V.jsx(Xa,{disablePortal:u,container:R,children:V.jsx(cq,te({anchorEl:n,direction:l,disablePortal:u,modifiers:d,ref:r,open:y?!T:p,placement:m,popperOptions:h,popperRef:g,slotProps:w,slots:E},S,{style:te({position:"fixed",top:0,left:0,display:D},_),TransitionProps:A,children:a}))})});process.env.NODE_ENV!=="production"&&(K_.propTypes={anchorEl:Tn(v.oneOfType([Kr,v.object,v.func]),e=>{if(e.open){const t=Ps(e.anchorEl);if(t&&yl(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"||sq(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([Kr,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:lo,slotProps:v.shape({root:v.oneOfType([v.func,v.object])}),slots:v.shape({root:v.elementType}),transition:v.bool});var Of={};Object.defineProperty(Of,"__esModule",{value:!0});var Q_=Of.default=void 0,dq=hq(J),fq=Zy;function J_(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(J_=function(n){return n?r:t})(e)}function hq(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=J_(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 pq(e){return Object.keys(e).length===0}function mq(e=null){const t=dq.useContext(fq.ThemeContext);return!t||pq(t)?e:t}Q_=Of.default=mq;const vv=e=>{let t;return e<1?t=5.11916*Ut(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},vq=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],gq=ke(K_,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xo=Z.forwardRef(function(t,r){var n;const a=Q_(),o=tt({props:t,name:"MuiPopper"}),{anchorEl:l,component:u,components:c,componentsProps:d,container:p,disablePortal:m,keepMounted:h,modifiers:g,open:_,placement:y,popperOptions:w,popperRef:E,transition:S,slots:T,slotProps:C}=o,x=Ee(o,vq),P=(n=T==null?void 0:T.root)!=null?n:c==null?void 0:c.Root,R=te({anchorEl:l,container:p,disablePortal:m,keepMounted:h,modifiers:g,open:_,placement:y,popperOptions:w,popperRef:E,transition:S},x);return V.jsx(gq,te({as:u,direction:a==null?void 0:a.direction,slots:{root:P},slotProps:C!=null?C:d},R,{ref:r}))});process.env.NODE_ENV!=="production"&&(xo.propTypes={anchorEl:v.oneOfType([Kr,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([Kr,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:lo,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 yq(e){return et("MuiTooltip",e)}const vn=Ke("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),bq=["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 _q(e){return Math.round(e*1e5)/1e5}const wq=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 ot(l,yq,t)},xq=ke(xo,{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"] .${vn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${vn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${vn.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"] .${vn.arrow}`]:te({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Cq=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:at(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:`${_q(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${vn.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"})),[`.${vn.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"})),[`.${vn.popper}[data-popper-placement*="top"] &`]:te({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${vn.popper}[data-popper-placement*="bottom"] &`]:te({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Tq=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:at(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ts=!1;const gv=new fo;let xa={x:0,y:0};function rs(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const bl=Z.forwardRef(function(t,r){var n,a,o,l,u,c,d,p,m,h,g,_,y,w,E,S,T,C,x;const P=tt({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:D,components:A={},componentsProps:I={},describeChild:N=!1,disableFocusListener:k=!1,disableHoverListener:W=!1,disableInteractive:j=!1,disableTouchListener:$=!1,enterDelay:B=100,enterNextDelay:G=0,enterTouchDelay:q=700,followCursor:U=!1,id:z,leaveDelay:H=0,leaveTouchDelay:ee=1500,onClose:X,onOpen:K,open:Q,placement:ne="bottom",PopperComponent:le,PopperProps:se={},slotProps:ue={},slots:fe={},title:pe,TransitionComponent:oe=qa,TransitionProps:ve}=P,de=Ee(P,bq),_e=Z.isValidElement(D)?D:V.jsx("span",{children:D}),we=bo(),Se=Vd(),[Ce,dt]=Z.useState(),[Ve,rt]=Z.useState(null),ft=Z.useRef(!1),Ie=j||U,Ue=Mi(),Mt=Mi(),ht=Mi(),Pt=Mi(),[hr,Te]=Hd({controlled:Q,default:!1,name:"Tooltip",state:"open"});let bt=hr;if(process.env.NODE_ENV!=="production"){const{current:Pe}=Z.useRef(Q!==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 Tr=nb(z),Zt=Z.useRef(),Sr=Xr(()=>{Zt.current!==void 0&&(document.body.style.WebkitUserSelect=Zt.current,Zt.current=void 0),Pt.clear()});Z.useEffect(()=>Sr,[Sr]);const en=Pe=>{gv.clear(),ts=!0,Te(!0),K&&!bt&&K(Pe)},pr=Xr(Pe=>{gv.start(800+H,()=>{ts=!1}),Te(!1),X&&bt&&X(Pe),Ue.start(we.transitions.duration.shortest,()=>{ft.current=!1})}),Br=Pe=>{ft.current&&Pe.type!=="touchstart"||(Ce&&Ce.removeAttribute("title"),Mt.clear(),ht.clear(),B||ts&&G?Mt.start(ts?G:B,()=>{en(Pe)}):en(Pe))},Vt=Pe=>{Mt.clear(),ht.start(H,()=>{pr(Pe)})},{isFocusVisibleRef:Rn,onBlur:Hr,onFocus:tn,ref:On}=eb(),[,mr]=Z.useState(!1),kn=Pe=>{Hr(Pe),Rn.current===!1&&(mr(!1),Vt(Pe))},Nn=Pe=>{Ce||dt(Pe.currentTarget),tn(Pe),Rn.current===!0&&(mr(!0),Br(Pe))},rn=Pe=>{ft.current=!0;const Ot=_e.props;Ot.onTouchStart&&Ot.onTouchStart(Pe)},ti=Pe=>{rn(Pe),ht.clear(),Ue.clear(),Sr(),Zt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Pt.start(q,()=>{document.body.style.WebkitUserSelect=Zt.current,Br(Pe)})},ri=Pe=>{_e.props.onTouchEnd&&_e.props.onTouchEnd(Pe),Sr(),ht.start(ee,()=>{pr(Pe)})};Z.useEffect(()=>{if(!bt)return;function Pe(Ot){(Ot.key==="Escape"||Ot.key==="Esc")&&pr(Ot)}return document.addEventListener("keydown",Pe),()=>{document.removeEventListener("keydown",Pe)}},[pr,bt]);const ra=It(_e.ref,On,dt,r);!pe&&pe!==0&&(bt=!1);const Kt=Z.useRef(),ni=Pe=>{const Ot=_e.props;Ot.onMouseMove&&Ot.onMouseMove(Pe),xa={x:Pe.clientX,y:Pe.clientY},Kt.current&&Kt.current.update()},Vr={},nn=typeof pe=="string";N?(Vr.title=!bt&&nn&&!W?pe:null,Vr["aria-describedby"]=bt?Tr:null):(Vr["aria-label"]=nn?pe:null,Vr["aria-labelledby"]=bt&&!nn?Tr:null);const wt=te({},Vr,de,_e.props,{className:Oe(de.className,_e.props.className),onTouchStart:rn,ref:ra},U?{onMouseMove:ni}:{});process.env.NODE_ENV!=="production"&&(wt["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 gt={};$||(wt.onTouchStart=ti,wt.onTouchEnd=ri),W||(wt.onMouseOver=rs(Br,wt.onMouseOver),wt.onMouseLeave=rs(Vt,wt.onMouseLeave),Ie||(gt.onMouseOver=Br,gt.onMouseLeave=Vt)),k||(wt.onFocus=rs(Nn,wt.onFocus),wt.onBlur=rs(kn,wt.onBlur),Ie||(gt.onFocus=Nn,gt.onBlur=kn)),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 Ot=[{name:"arrow",enabled:!!Ve,options:{element:Ve,padding:4}}];return(Pe=se.popperOptions)!=null&&Pe.modifiers&&(Ot=Ot.concat(se.popperOptions.modifiers)),te({},se.popperOptions,{modifiers:Ot})},[Ve,se]),vr=te({},P,{isRtl:Se,arrow:R,disableInteractive:Ie,placement:ne,PopperComponentProp:le,touch:ft.current}),an=wq(vr),Dn=(n=(a=fe.popper)!=null?a:A.Popper)!=null?n:xq,on=(o=(l=(u=fe.transition)!=null?u:A.Transition)!=null?l:oe)!=null?o:qa,sn=(c=(d=fe.tooltip)!=null?d:A.Tooltip)!=null?c:Cq,ln=(p=(m=fe.arrow)!=null?m:A.Arrow)!=null?p:Tq,gr=Ra(Dn,te({},se,(h=ue.popper)!=null?h:I.popper,{className:Oe(an.popper,se==null?void 0:se.className,(g=(_=ue.popper)!=null?_:I.popper)==null?void 0:g.className)}),vr),un=Ra(on,te({},ve,(y=ue.transition)!=null?y:I.transition),vr),Tl=Ra(sn,te({},(w=ue.tooltip)!=null?w:I.tooltip,{className:Oe(an.tooltip,(E=(S=ue.tooltip)!=null?S:I.tooltip)==null?void 0:E.className)}),vr),Sl=Ra(ln,te({},(T=ue.arrow)!=null?T:I.arrow,{className:Oe(an.arrow,(C=(x=ue.arrow)!=null?x:I.arrow)==null?void 0:C.className)}),vr);return V.jsxs(Z.Fragment,{children:[Z.cloneElement(_e,wt),V.jsx(Dn,te({as:le!=null?le:xo,placement:ne,anchorEl:U?{getBoundingClientRect:()=>({top:xa.y,left:xa.x,right:xa.x,bottom:xa.y,width:0,height:0})}:Ce,popperRef:Kt,open:Ce?bt:!1,id:Tr,transition:!0},gt,gr,{popperOptions:ge,children:({TransitionProps:Pe})=>V.jsx(on,te({timeout:we.transitions.duration.shorter},Pe,un,{children:V.jsxs(sn,te({},Tl,{children:[pe,R?V.jsx(ln,te({},Sl,{ref:rt})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(bl.propTypes={arrow:v.bool,children:Kn.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 Sq=e=>O.isNumber(e)?"right":"left",yv=({displayValue:e,width:t,padding:r,ellipsizedLength:n,isHtml:a})=>{const o=e.length>n;return V.jsx("div",{className:Pa.tableCellContent,style:{maxWidth:`${t-r}px`},children:a?V.jsx("div",{dangerouslySetInnerHTML:{__html:e}}):o?V.jsx(bl,{title:e,children:V.jsx("div",{children:e})}):V.jsx("div",{children:e})})},Eq=({dataTable:e,dataOptions:t,height:r,width:n,customStyles:a,themeSettings:o,onSortUpdate:l})=>{var S,T,C;const u=a&&a.showFieldTypeIcon!==void 0?a.showFieldTypeIcon:!0,c=N_+(u?D_:0),d=(a==null?void 0:a.paddingVertical)||nv,p=(a==null?void 0:a.paddingHorizontal)||nv,m=((S=a==null?void 0:a.columns)==null?void 0:S.width)==="auto"?(n-p*2-1)/t.columns.length:void 0,h=J.useMemo(()=>t.columns.map(x=>({isHtml:!!x.isHtml,width:m})),[t.columns,m]),[g,_]=J.useState(((T=document.fonts)==null?void 0:T.status)==="loaded"),y=(C=o.typography)==null?void 0:C.fontFamily,w=J.useMemo(()=>zU(e,u,h,y),[e,u,h,y,g]);J.useEffect(()=>{var x;(x=document.fonts)==null||x.ready.then(()=>{_(!0)}).catch(P=>{console.warn("Failed to observe font loading",P)})},[]);const E=J.useMemo(()=>e.columns.map((x,P)=>{var I;const R=w[P],D=t.columns[P],A=av({isHeaderCell:!0,themeSettings:o,customStyles:a});return R?V.jsx(Jo.Column,{maxWidth:jc,minWidth:jc,allowCellsRecycling:!0,width:R,header:V.jsx(Jo.Cell,{className:Ua(Pa.tableHeader),style:A,children:V.jsx(NU,{column:x,onClick:l,isSelected:!!Math.abs(x.direction),showFieldTypeIcon:u,sortIcon:(a==null?void 0:a.sortIcon)||"standard",children:yv({displayValue:(I=D.title)!=null?I:D.name,width:R,padding:c,ellipsizedLength:IU})})}),cell:W=>{var j=W,{rowIndex:N}=j,k=fi(j,["rowIndex"]);var $;return V.jsx(Jo.Cell,he(ie({className:Ua(Pa.tableCell),style:av({colIndex:P,rowIndex:N,themeSettings:o,customStyles:a})},k),{children:yv({displayValue:e.rows[N][P].displayValue,width:R,padding:A_,ellipsizedLength:$U,isHtml:($=D.isHtml)!=null?$:!1})}))},align:Sq(x.type)},`col${P}`):null}),[e,w,o,a,l,u,t,c]);return J.useMemo(()=>V.jsx("div",{className:Pa.tableWrapper,style:{padding:`${d}px ${p}px`},children:V.jsx(Jo.Table,{className:Pa.table,rowHeight:(a==null?void 0:a.rowHeight)||AU,rowsCount:e.rows.length,width:n-p*2,height:r-d*2,headerHeight:(a==null?void 0:a.headerHeight)||DU,children:E})}),[E,a,e,r,p,d,n])},Mq="_component_1rw9b_1",Pq={component:Mq},Rq=(e,t)=>{if(!e.columns.some(l=>O.isNumber(l.type)))return e;const r=e.columns,a=e.rows.map(l=>l.map((u,c)=>{const d=r[c].type,p=O.getCompleteNumberFormatConfig(t.columns[c].numberFormatConfig);if(O.isNumber(d)){const m=O.createCompareValue(u.displayValue,d);return{displayValue:O.applyFormatPlainText(p,m.value),compareValue:m}}else return u}));return{columns:r,rows:a}},Oq=({dataTable:e,dataOptions:t,designOptions:r={},onSortUpdate:n,themeSettings:a,width:o=400,height:l=500})=>{const u=J.useRef(null),c=J.useRef(e),d=J.useMemo(()=>Rq(e,t),[e,t]);J.useLayoutEffect(()=>{c.current=e},[e]);const p=J.useMemo(()=>ie({sortIcon:"caret",showFieldTypeIcon:!1},r),[r]);return V.jsx("div",{className:Pq.component,ref:u,children:V.jsx(Eq,{dataTable:d,dataOptions:t,onSortUpdate:n,height:l,width:o,customStyles:p,themeSettings:a})})},kq=e=>({"& .MuiPaginationItem-circular.Mui-selected":{color:e.chart.textColor},"& .MuiPaginationItem-circular":{color:e.chart.secondaryTextColor,fontFamily:e.typography.fontFamily}});var Nq=Object.prototype,Dq=Nq.hasOwnProperty;function Aq(e,t){return e!=null&&Dq.call(e,t)}function Lq(e,t){return e!=null&&O.hasPath(e,t,Aq)}function Iq(e,t){for(const r of t)Lq(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 $q=e=>(Iq(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)}),zq=25,Fq=10,e0=({dataSet:e,dataOptions:t,styleOptions:r={},filters:n})=>{const{rowsPerPage:a=zq,width:o,height:l}=r,{themeSettings:u}=zt(),[c,d]=J.useState(0),{filters:p,relations:m}=O.getFilterListAndRelations(n),[h,g]=J.useState(1),_=J.useRef(null),y=J.useMemo(()=>Cy(t),[t]),w=J.useMemo(()=>by(y.columns.filter(O.isValue)),[y]),E=J.useMemo(()=>$q(r),[r]),[S,T]=J.useState(y),[C,x]=J.useState(e),[P,R]=M$({dataSet:C,dataOptions:S,filters:p,filterRelations:m,count:a*Fq,offset:c}),D=N$({data:P,innerDataOptions:R,dataColumnNamesMapping:w,needToAggregate:!yn(C)});J.useEffect(()=>{T(y),x(e),g(1),d(0)},[e,y]);const A=J.useCallback(W=>{if(!P)return;Math.floor(P.rows.length/a)===W&&d(P.rows.length),g(W)},[P,a]),I=J.useCallback(W=>{g(1),d(0),S&&T(O$(S,W))},[S]),N=J.useMemo(()=>{if(!D||yn(C))return D;const W=D.columns.find(j=>j.direction!==0);return W?O.orderBy(D,[W]):D},[D,C]),k=J.useMemo(()=>N?{columns:N.columns,rows:N.rows.slice((h-1)*a,h*a)}:void 0,[N,h,a]);return R?V.jsx(io,{defaultSize:Od("table"),size:{width:o,height:l},children:W=>{if(!D||!k)return V.jsx(js,{themeSettings:u});if(O.isDataTableEmpty(D))return V.jsx(Rd,{iconType:"table"});const j=Math.ceil(D.rows.length/a),$=j>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(Oq,{dataTable:k,dataOptions:R,designOptions:E,themeSettings:u,width:W.width,height:W.height-$,onSortUpdate:I}),j>1&&V.jsx(ub,{ref:_,page:h,count:j,onChange:(B,G)=>A(G),sx:kq(u)})]})}}):null},t0=e=>{const{dataSet:t}=e;return!!t&&typeof t!="string"&&"rows"in t&&"columns"in t},Wq=e=>{if(!yn(e.dataSet))throw"error, advanced charts only works against a data model";const t=O.cloneDeep(e.dataOptions),r=t.value.filter(a=>(a==null?void 0:a.trend)!==void 0).map(a=>O.trend(a.column,`${O.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=>O.forecast(a.column,`${O.FORECAST_PREFIX}_${a.column.name}`,a.forecast));return t.value.push(...n),V.jsx(Sy,he(ie({},e),{dataOptions:t}))},r0=Zn({componentName:"Chart",shouldSkipSisenseContextWaiting:t0,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(e=>{if(jq(e))return V.jsx(e0,ie({},e));if(Bq(e))return V.jsx(Wq,ie({},e));if(n0(e))return V.jsx(Sy,ie({},e));throw new O.TranslatableError("errors.chartInvalidProps")});function jq(e){return e.chartType==="table"&&"columns"in e.dataOptions}function n0(e){return e.chartType!=="table"}function Bq(e){return!n0(e)||!O.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)}function i0(e,t,r){const n=Pd(e);return typeof e!="object"&&e===n?!1:n==null||(t?t.some(o=>!Li(n[o],e[o])):!Li(n,e))?!0:r?r(e,n):!1}const a0="sdkHookInit",Hq=(e,t,r,n)=>{if(!r)return;zg(a0,{packageName:t,packageVersion:"1.18.1",hookName:e},r.httpClient).finally(n)};function Vq(e){const{tracking:t}=yt(),{trackEvent:r}=Td(),n=J.useRef(!1);J.useEffect(()=>{if(t&&!n.current){const a={packageName:t.packageName||"sdk-ui",packageVersion:"1.18.1",hookName:e};r(a0,a,!t.enabled).finally(()=>n.current=!0)}},[t,e,r])}const Uq=e=>t=>(...r)=>(Vq(e),t(...r));function qq(e){return O.flatRest(function(t){return t=O.arrayMap(t,O.baseUnary(O.baseIteratee)),Bs(function(r){var n=this;return e(t,function(a){return O.apply(a,n,r)})})})}var o0=qq(O.arrayMap);function Gq(e){return function(t){t=O.toString(t);var r=Xg(t)?_c(t):void 0,n=r?r[0]:t.charAt(0),a=r?Yg(r,1).join(""):t.slice(1);return n[e]()+a}}var Yq=Gq("toUpperCase");function Xq(e){return Yq(O.toString(e).toLowerCase())}function Zq(e,t,r,n){for(var a=-1,o=e==null?0:e.length;++a<o;)r=t(r,e[a],a,e);return r}function Kq(e){return function(t){return e==null?void 0:e[t]}}var Qq={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jq=Kq(Qq),eG=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tG="\\u0300-\\u036f",rG="\\ufe20-\\ufe2f",nG="\\u20d0-\\u20ff",iG=tG+rG+nG,aG="["+iG+"]",oG=RegExp(aG,"g");function sG(e){return e=O.toString(e),e&&e.replace(eG,Jq).replace(oG,"")}var lG=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function uG(e){return e.match(lG)||[]}var cG=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function dG(e){return cG.test(e)}var s0="\\ud800-\\udfff",fG="\\u0300-\\u036f",hG="\\ufe20-\\ufe2f",pG="\\u20d0-\\u20ff",mG=fG+hG+pG,l0="\\u2700-\\u27bf",u0="a-z\\xdf-\\xf6\\xf8-\\xff",vG="\\xac\\xb1\\xd7\\xf7",gG="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yG="\\u2000-\\u206f",bG=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",c0="A-Z\\xc0-\\xd6\\xd8-\\xde",_G="\\ufe0e\\ufe0f",d0=vG+gG+yG+bG,f0="['’]",bv="["+d0+"]",wG="["+mG+"]",h0="\\d+",xG="["+l0+"]",p0="["+u0+"]",m0="[^"+s0+d0+h0+l0+u0+c0+"]",CG="\\ud83c[\\udffb-\\udfff]",TG="(?:"+wG+"|"+CG+")",SG="[^"+s0+"]",v0="(?:\\ud83c[\\udde6-\\uddff]){2}",g0="[\\ud800-\\udbff][\\udc00-\\udfff]",Si="["+c0+"]",EG="\\u200d",_v="(?:"+p0+"|"+m0+")",MG="(?:"+Si+"|"+m0+")",wv="(?:"+f0+"(?:d|ll|m|re|s|t|ve))?",xv="(?:"+f0+"(?:D|LL|M|RE|S|T|VE))?",y0=TG+"?",b0="["+_G+"]?",PG="(?:"+EG+"(?:"+[SG,v0,g0].join("|")+")"+b0+y0+")*",RG="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",OG="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",kG=b0+y0+PG,NG="(?:"+[xG,v0,g0].join("|")+")"+kG,DG=RegExp([Si+"?"+p0+"+"+wv+"(?="+[bv,Si,"$"].join("|")+")",MG+"+"+xv+"(?="+[bv,Si+_v,"$"].join("|")+")",Si+"?"+_v+"+"+wv,Si+"+"+xv,OG,RG,h0,NG].join("|"),"g");function AG(e){return e.match(DG)||[]}function LG(e,t,r){return e=O.toString(e),t=t,t===void 0?dG(e)?AG(e):uG(e):e.match(t)||[]}var IG="['’]",$G=RegExp(IG,"g");function zG(e){return function(t){return Zq(LG(sG(t).replace($G,"")),e,"")}}var _0=zG(function(e,t,r){return t=t.toLowerCase(),e+(r?Xq(t):t)});function FG(e){return WG(e.dataSet)}function WG(e){return!!e&&typeof e!="string"&&"rows"in e&&"columns"in e}const w0=Zn({componentName:"Table",shouldSkipSisenseContextWaiting:FG})(e=>V.jsx(e0,ie({},e))),jG=25,BG=10;var x0=(e=>(e.None="",e.Large="30px",e.Medium="20px",e.Small="10px",e))(x0||{}),Uc=(e=>(e.None="",e.Light="0.15",e.Medium="0.3",e.Dark="0.7",e))(Uc||{}),qc=(e=>(e.None="",e.Large="3px 12px",e.Medium="2px 8px",e.Small="1px 4px",e))(qc||{}),C0=(e=>(e.None="",e.Large="15px",e.Medium="10px",e.Small="5px",e))(C0||{});const HG=(e,t)=>{const r=O.get(e,"shadow",t.widget.shadow),n=O.get(e,"spaceAround",t.widget.spaceAround);if(r==="None"||n==="None")return"none";if(r in Uc&&n in qc){const a=Uc[`${r}`];return`0px ${qc[`${n}`]} rgba(9, 9, 10, ${a})`}return"none"};function VG(e){return et("MuiDivider",e)}const Cv=Ke("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),UG=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],qG=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:l,textAlign:u,variant:c}=e;return ot({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"]},VG,n)},GG=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)`:at(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%"}})),YG=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)`})),Wi=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:l,component:u=o?"div":"hr",flexItem:c=!1,light:d=!1,orientation:p="horizontal",role:m=u!=="hr"?"separator":void 0,textAlign:h="center",variant:g="fullWidth"}=n,_=Ee(n,UG),y=te({},n,{absolute:a,component:u,flexItem:c,light:d,orientation:p,role:m,textAlign:h,variant:g}),w=qG(y);return V.jsx(GG,te({as:u,className:Oe(w.root,l),role:m,ref:r,ownerState:y},_,{children:o?V.jsx(YG,{className:w.wrapper,ownerState:y,children:o}):null}))});Wi.muiSkipListHighlight=!0;process.env.NODE_ENV!=="production"&&(Wi.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 XG(e){return et("MuiPaper",e)}Ke("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 ZG=["className","component","elevation","square","variant"],KG=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return ot(o,XG,a)},QG=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(${at("#fff",vv(t.elevation))}, ${at("#fff",vv(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),_l=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:l=1,square:u=!1,variant:c="elevation"}=n,d=Ee(n,ZG),p=te({},n,{component:o,elevation:l,square:u,variant:c}),m=KG(p);return process.env.NODE_ENV!=="production"&&bo().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(`
|
|
267
|
-
`)),V.jsx(QG,te({as:o,ownerState:p,className:Oe(m.root,a),ref:r},d))});process.env.NODE_ENV!=="production"&&(_l.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,elevation:Tn(kr,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 JG(e){return et("MuiCard",e)}Ke("MuiCard",["root"]);const eY=["className","raised"],tY=e=>{const{classes:t}=e;return ot({root:["root"]},JG,t)},rY=ke(_l,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),T0=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,l=Ee(n,eY),u=te({},n,{raised:o}),c=tY(u);return V.jsx(rY,te({className:Oe(c.root,a),elevation:o?8:void 0,ref:r,ownerState:u},l))});process.env.NODE_ENV!=="production"&&(T0.propTypes={children:v.node,classes:v.object,className:v.string,raised:Tn(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 nY(e){return et("MuiCardContent",e)}Ke("MuiCardContent",["root"]);const iY=["className","component"],aY=e=>{const{classes:t}=e;return ot({root:["root"]},nY,t)},oY=ke("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),S0=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,l=Ee(n,iY),u=te({},n,{component:o}),c=aY(u);return V.jsx(oY,te({as:o,className:Oe(c.root,a),ownerState:u,ref:r},l))});process.env.NODE_ENV!=="production"&&(S0.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 sY(e){return et("MuiIconButton",e)}const lY=Ke("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),uY=["edge","children","className","color","disabled","disableFocusRipple","size"],cY=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 ot(l,sY,t)},dY=ke(Qn,{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})`:at(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})`:at(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)},{[`&.${lY.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),ji=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:l,color:u="default",disabled:c=!1,disableFocusRipple:d=!1,size:p="medium"}=n,m=Ee(n,uY),h=te({},n,{edge:a,color:u,disabled:c,disableFocusRipple:d,size:p}),g=cY(h);return V.jsx(dY,te({className:Oe(g.root,l),centerRipple:!0,focusRipple:!d,disabled:c,ref:r},m,{ownerState:h,children:o}))});process.env.NODE_ENV!=="production"&&(ji.propTypes={children:Tn(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(`
|
|
268
|
-
`)):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])});function fY(e){const t=Lt(e);return t.body===e?Va(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Aa(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Tv(e){return parseInt(Va(e).getComputedStyle(e).paddingRight,10)||0}function hY(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 Sv(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,l=>{const u=o.indexOf(l)===-1,c=!hY(l);u&&c&&Aa(l,a)})}function Mu(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function pY(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(fY(n)){const l=ib(Lt(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Tv(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=`${Tv(c)+l}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Lt(n).body;else{const l=n.parentElement,u=Va(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 mY(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class vY{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&&Aa(t.modalRef,!1);const a=mY(r);Sv(r,t.mount,t.modalRef,a,!0);const o=Mu(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=Mu(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=pY(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=Mu(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&&Aa(t.modalRef,r),Sv(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&&Aa(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function gY(e){return typeof e=="function"?e():e}function yY(e){return e?e.props.hasOwnProperty("in"):!1}const bY=new vY;function _Y(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=bY,closeAfterTransition:o=!1,onTransitionEnter:l,onTransitionExited:u,children:c,onClose:d,open:p,rootRef:m}=e,h=Z.useRef({}),g=Z.useRef(null),_=Z.useRef(null),y=It(_,m),[w,E]=Z.useState(!p),S=yY(c);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const C=()=>Lt(g.current),x=()=>(h.current.modalRef=_.current,h.current.mount=g.current,h.current),P=()=>{a.mount(x(),{disableScrollLock:n}),_.current&&(_.current.scrollTop=0)},R=Xr(()=>{const B=gY(t)||C().body;a.add(x(),B),_.current&&P()}),D=Z.useCallback(()=>a.isTopModal(x()),[a]),A=Xr(B=>{g.current=B,B&&(p&&D()?P():_.current&&Aa(_.current,T))}),I=Z.useCallback(()=>{a.remove(x(),T)},[T,a]);Z.useEffect(()=>()=>{I()},[I]),Z.useEffect(()=>{p?R():(!S||!o)&&I()},[p,I,S,o,R]);const N=B=>G=>{var q;(q=B.onKeyDown)==null||q.call(B,G),!(G.key!=="Escape"||G.which===229||!D())&&(r||(G.stopPropagation(),d&&d(G,"escapeKeyDown")))},k=B=>G=>{var q;(q=B.onClick)==null||q.call(B,G),G.target===G.currentTarget&&d&&d(G,"backdropClick")};return{getRootProps:(B={})=>{const G=z_(e);delete G.onTransitionEnter,delete G.onTransitionExited;const q=te({},G,B);return te({role:"presentation"},q,{onKeyDown:N(q),ref:y})},getBackdropProps:(B={})=>{const G=B;return te({"aria-hidden":!0},G,{onClick:k(G),open:p})},getTransitionProps:()=>{const B=()=>{E(!1),l&&l()},G=()=>{E(!0),u&&u(),o&&I()};return{onEnter:rm(B,c==null?void 0:c.props.onEnter),onExited:rm(G,c==null?void 0:c.props.onExited)}},rootRef:y,portalRef:A,isTopModal:D,exited:w,hasTransition:S}}const wY=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xY(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 CY(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 TY(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||CY(e))}function SY(e){const t=[],r=[];return Array.from(e.querySelectorAll(wY)).forEach((n,a)=>{const o=xY(n);o===-1||!TY(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 EY(){return!0}function Rs(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=SY,isEnabled:l=EY,open:u}=e,c=Z.useRef(!1),d=Z.useRef(null),p=Z.useRef(null),m=Z.useRef(null),h=Z.useRef(null),g=Z.useRef(!1),_=Z.useRef(null),y=It(t.ref,_),w=Z.useRef(null);Z.useEffect(()=>{!u||!_.current||(g.current=!r)},[r,u]),Z.useEffect(()=>{if(!u||!_.current)return;const T=Lt(_.current);return _.current.contains(T.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(`
|
|
269
|
-
`)),_.current.setAttribute("tabIndex","-1")),g.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 T=Lt(_.current),C=R=>{w.current=R,!(n||!l()||R.key!=="Tab")&&T.activeElement===_.current&&R.shiftKey&&(c.current=!0,p.current&&p.current.focus())},x=()=>{const R=_.current;if(R===null)return;if(!T.hasFocus()||!l()||c.current){c.current=!1;return}if(R.contains(T.activeElement)||n&&T.activeElement!==d.current&&T.activeElement!==p.current)return;if(T.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let D=[];if((T.activeElement===d.current||T.activeElement===p.current)&&(D=o(_.current)),D.length>0){var A,I;const N=!!((A=w.current)!=null&&A.shiftKey&&((I=w.current)==null?void 0:I.key)==="Tab"),k=D[0],W=D[D.length-1];typeof k!="string"&&typeof W!="string"&&(N?W.focus():k.focus())}else R.focus()};T.addEventListener("focusin",x),T.addEventListener("keydown",C,!0);const P=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&x()},50);return()=>{clearInterval(P),T.removeEventListener("focusin",x),T.removeEventListener("keydown",C,!0)}},[r,n,a,l,u,o]);const E=T=>{m.current===null&&(m.current=T.relatedTarget),g.current=!0,h.current=T.target;const C=t.props.onFocus;C&&C(T)},S=T=>{m.current===null&&(m.current=T.relatedTarget),g.current=!0};return V.jsxs(Z.Fragment,{children:[V.jsx("div",{tabIndex:u?0:-1,onFocus:S,ref:d,"data-testid":"sentinelStart"}),Z.cloneElement(t,{ref:y,onFocus:E}),V.jsx("div",{tabIndex:u?0:-1,onFocus:S,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Rs.propTypes={children:Kn,disableAutoFocus:v.bool,disableEnforceFocus:v.bool,disableRestoreFocus:v.bool,getTabbable:v.func,isEnabled:v.func,open:v.bool.isRequired});process.env.NODE_ENV!=="production"&&(Rs.propTypes=Gd(Rs.propTypes));const MY=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],PY={entering:{opacity:1},entered:{opacity:1}},kf=Z.forwardRef(function(t,r){const n=bo(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:l=!0,children:u,easing:c,in:d,onEnter:p,onEntered:m,onEntering:h,onExit:g,onExited:_,onExiting:y,style:w,timeout:E=a,TransitionComponent:S=jr}=t,T=Ee(t,MY),C=Z.useRef(null),x=It(C,u.ref,r),P=j=>$=>{if(j){const B=C.current;$===void 0?j(B):j(B,$)}},R=P(h),D=P((j,$)=>{const B=Es({style:w,timeout:E,easing:c},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",B),j.style.transition=n.transitions.create("opacity",B),p&&p(j,$)}),A=P(m),I=P(y),N=P(j=>{const $=Es({style:w,timeout:E,easing:c},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",$),j.style.transition=n.transitions.create("opacity",$),g&&g(j)}),k=P(_),W=j=>{o&&o(C.current,j)};return V.jsx(S,te({appear:l,in:d,nodeRef:C,onEnter:D,onEntered:A,onEntering:R,onExit:N,onExited:k,onExiting:I,addEndListener:W,timeout:E},T,{children:(j,$)=>Z.cloneElement(u,te({style:te({opacity:0,visibility:j==="exited"&&!d?"hidden":void 0},PY[j],w,u.props.style),ref:x},$))}))});process.env.NODE_ENV!=="production"&&(kf.propTypes={addEndListener:v.func,appear:v.bool,children:Kn.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 RY(e){return et("MuiBackdrop",e)}Ke("MuiBackdrop",["root","invisible"]);const OY=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],kY=e=>{const{classes:t,invisible:r}=e;return ot({root:["root",r&&"invisible"]},RY,t)},NY=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"})),Nf=Z.forwardRef(function(t,r){var n,a,o;const l=tt({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:d="div",components:p={},componentsProps:m={},invisible:h=!1,open:g,slotProps:_={},slots:y={},TransitionComponent:w=kf,transitionDuration:E}=l,S=Ee(l,OY),T=te({},l,{component:d,invisible:h}),C=kY(T),x=(n=_.root)!=null?n:m.root;return V.jsx(w,te({in:g,timeout:E},S,{children:V.jsx(NY,te({"aria-hidden":!0},x,{as:(a=(o=y.root)!=null?o:p.Root)!=null?a:d,className:Oe(C.root,c,x==null?void 0:x.className),ownerState:te({},T,x==null?void 0:x.ownerState),classes:C,ref:r,children:u}))}))});process.env.NODE_ENV!=="production"&&(Nf.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 DY(e){return et("MuiModal",e)}Ke("MuiModal",["root","hidden","backdrop"]);const AY=["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"],LY=e=>{const{open:t,exited:r,classes:n}=e;return ot({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},DY,n)},IY=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"})),$Y=ke(Nf,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Df=Z.forwardRef(function(t,r){var n,a,o,l,u,c;const d=tt({name:"MuiModal",props:t}),{BackdropComponent:p=$Y,BackdropProps:m,className:h,closeAfterTransition:g=!1,children:_,container:y,component:w,components:E={},componentsProps:S={},disableAutoFocus:T=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:x=!1,disablePortal:P=!1,disableRestoreFocus:R=!1,disableScrollLock:D=!1,hideBackdrop:A=!1,keepMounted:I=!1,onBackdropClick:N,open:k,slotProps:W,slots:j}=d,$=Ee(d,AY),B=te({},d,{closeAfterTransition:g,disableAutoFocus:T,disableEnforceFocus:C,disableEscapeKeyDown:x,disablePortal:P,disableRestoreFocus:R,disableScrollLock:D,hideBackdrop:A,keepMounted:I}),{getRootProps:G,getBackdropProps:q,getTransitionProps:U,portalRef:z,isTopModal:H,exited:ee,hasTransition:X}=_Y(te({},B,{rootRef:r})),K=te({},B,{exited:ee}),Q=LY(K),ne={};if(_.props.tabIndex===void 0&&(ne.tabIndex="-1"),X){const{onEnter:ve,onExited:de}=U();ne.onEnter=ve,ne.onExited=de}const le=(n=(a=j==null?void 0:j.root)!=null?a:E.Root)!=null?n:IY,se=(o=(l=j==null?void 0:j.backdrop)!=null?l:E.Backdrop)!=null?o:p,ue=(u=W==null?void 0:W.root)!=null?u:S.root,fe=(c=W==null?void 0:W.backdrop)!=null?c:S.backdrop,pe=wn({elementType:le,externalSlotProps:ue,externalForwardedProps:$,getSlotProps:G,additionalProps:{ref:r,as:w},ownerState:K,className:Oe(h,ue==null?void 0:ue.className,Q==null?void 0:Q.root,!K.open&&K.exited&&(Q==null?void 0:Q.hidden))}),oe=wn({elementType:se,externalSlotProps:fe,additionalProps:m,getSlotProps:ve=>q(te({},ve,{onClick:de=>{N&&N(de),ve!=null&&ve.onClick&&ve.onClick(de)}})),className:Oe(fe==null?void 0:fe.className,m==null?void 0:m.className,Q==null?void 0:Q.backdrop),ownerState:K});return!I&&!k&&(!X||ee)?null:V.jsx(Xa,{ref:z,container:y,disablePortal:P,children:V.jsxs(le,te({},pe,{children:[!A&&p?V.jsx(se,te({},oe)):null,V.jsx(Rs,{disableEnforceFocus:C,disableAutoFocus:T,disableRestoreFocus:R,isEnabled:H,open:k,children:Z.cloneElement(_,ne)})]}))})});process.env.NODE_ENV!=="production"&&(Df.propTypes={BackdropComponent:v.elementType,BackdropProps:v.object,children:Kn.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([Kr,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 zY(e){return et("MuiPopover",e)}Ke("MuiPopover",["root","paper"]);const FY=["onEntering"],WY=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],jY=["slotProps"];function Ev(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Mv(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Pv(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function hs(e){return typeof e=="function"?e():e}const BY=e=>{const{classes:t}=e;return ot({root:["root"],paper:["paper"]},zY,t)},HY=ke(Df,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),E0=ke(_l,{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}),wl=Z.forwardRef(function(t,r){var n,a,o;const l=tt({props:t,name:"MuiPopover"}),{action:u,anchorEl:c,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:m="anchorEl",children:h,className:g,container:_,elevation:y=8,marginThreshold:w=16,open:E,PaperProps:S={},slots:T,slotProps:C,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:P=qa,transitionDuration:R="auto",TransitionProps:{onEntering:D}={},disableScrollLock:A=!1}=l,I=Ee(l.TransitionProps,FY),N=Ee(l,WY),k=(n=C==null?void 0:C.paper)!=null?n:S,W=Z.useRef(),j=It(W,k.ref),$=te({},l,{anchorOrigin:d,anchorReference:m,elevation:y,marginThreshold:w,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:P,transitionDuration:R,TransitionProps:I}),B=BY($),G=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=hs(c),de=ve&&ve.nodeType===1?ve:Lt(W.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+Ev(_e,d.vertical),left:_e.left+Mv(_e,d.horizontal)}},[c,d.horizontal,d.vertical,p,m]),q=Z.useCallback(ve=>({vertical:Ev(ve,x.vertical),horizontal:Mv(ve,x.horizontal)}),[x.horizontal,x.vertical]),U=Z.useCallback(ve=>{const de={width:ve.offsetWidth,height:ve.offsetHeight},_e=q(de);if(m==="none")return{top:null,left:null,transformOrigin:Pv(_e)};const we=G();let Se=we.top-_e.vertical,Ce=we.left-_e.horizontal;const dt=Se+de.height,Ve=Ce+de.width,rt=Va(hs(c)),ft=rt.innerHeight-w,Ie=rt.innerWidth-w;if(w!==null&&Se<w){const Ue=Se-w;Se-=Ue,_e.vertical+=Ue}else if(w!==null&&dt>ft){const Ue=dt-ft;Se-=Ue,_e.vertical+=Ue}if(process.env.NODE_ENV!=="production"&&de.height>ft&&de.height&&ft&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${de.height-ft}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
271
|
-
`)),w!==null&&Ce<w){const Ue=Ce-w;Ce-=Ue,_e.horizontal+=Ue}else if(Ve>Ie){const Ue=Ve-Ie;Ce-=Ue,_e.horizontal+=Ue}return{top:`${Math.round(Se)}px`,left:`${Math.round(Ce)}px`,transformOrigin:Pv(_e)}},[c,m,G,q,w]),[z,H]=Z.useState(E),ee=Z.useCallback(()=>{const ve=W.current;if(!ve)return;const de=U(ve);de.top!==null&&(ve.style.top=de.top),de.left!==null&&(ve.style.left=de.left),ve.style.transformOrigin=de.transformOrigin,H(!0)},[U]);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(()=>{E&&ee()}),Z.useImperativeHandle(u,()=>E?{updatePosition:()=>{ee()}}:null,[E,ee]),Z.useEffect(()=>{if(!E)return;const ve=JI(()=>{ee()}),de=Va(c);return de.addEventListener("resize",ve),()=>{ve.clear(),de.removeEventListener("resize",ve)}},[c,E,ee]);let Q=R;R==="auto"&&!P.muiSupportAuto&&(Q=void 0);const ne=_||(c?Lt(hs(c)).body:void 0),le=(a=T==null?void 0:T.root)!=null?a:HY,se=(o=T==null?void 0:T.paper)!=null?o:E0,ue=wn({elementType:se,externalSlotProps:te({},k,{style:z?k.style:te({},k.style,{opacity:0})}),additionalProps:{elevation:y,ref:j},ownerState:$,className:Oe(B.paper,k==null?void 0:k.className)}),fe=wn({elementType:le,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:N,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:ne,open:E},ownerState:$,className:Oe(B.root,g)}),{slotProps:pe}=fe,oe=Ee(fe,jY);return V.jsx(le,te({},oe,!I_(le)&&{slotProps:pe,disableScrollLock:A},{children:V.jsx(P,te({appear:!0,in:E,onEntering:X,onExited:K,timeout:Q},I,{children:V.jsx(se,te({},ue,{children:h}))}))}))});process.env.NODE_ENV!=="production"&&(wl.propTypes={action:lo,anchorEl:Tn(v.oneOfType([Kr,v.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=hs(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([Kr,v.func]),disableScrollLock:v.bool,elevation:kr,marginThreshold:v.number,onClose:v.func,open:v.bool.isRequired,PaperProps:v.shape({component:Xy}),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 VY(e){return et("MuiTypography",e)}Ke("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const UY=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],qY=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 ot(u,VY,l)},GY=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})),Rv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},YY={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},XY=e=>YY[e]||e,xr=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiTypography"}),a=XY(n.color),o=Wy(te({},n,{color:a})),{align:l="inherit",className:u,component:c,gutterBottom:d=!1,noWrap:p=!1,paragraph:m=!1,variant:h="body1",variantMapping:g=Rv}=o,_=Ee(o,UY),y=te({},o,{align:l,color:a,className:u,component:c,gutterBottom:d,noWrap:p,paragraph:m,variant:h,variantMapping:g}),w=c||(m?"p":g[h]||Rv[h])||"span",E=qY(y);return V.jsx(GY,te({as:w,ref:r,ownerState:y,className:Oe(E.root,u)},_))});process.env.NODE_ENV!=="production"&&(xr.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});function ZY({title:e,description:t,styleOptions:r,onRefresh:n}){var d,p,m;const[a,o]=J.useState(null),{themeSettings:l}=zt(),u=h=>{o(h.currentTarget)},c=()=>{o(null)};return V.jsxs(V.Fragment,{children:[V.jsx(bl,{title:"Click to view full details",style:{color:(d=l.chart)==null?void 0:d.textColor,fontFamily:(p=l.typography)==null?void 0:p.fontFamily},children:V.jsx(ji,{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(wl,{open:!!a,anchorEl:a,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},slotProps:{root:{sx:{".MuiPaper-root":{boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.25)",borderRadius:0}}}},children:V.jsxs(T0,{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:O.getSlightlyDifferentColor(l.general.backgroundColor)},children:[V.jsx(xr,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:l.typography.primaryTextColor,fontFamily:l.typography.fontFamily},children:"Widget Details"}),V.jsx(ji,{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:(m=l.chart)==null?void 0:m.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(Wi,{sx:{borderColor:l.typography.secondaryTextColor,opacity:.3}}),V.jsxs(S0,{style:{backgroundColor:l.general.backgroundColor,padding:12},children:[e&&V.jsx(xr,{variant:"body2",style:{color:l.typography.primaryTextColor,fontFamily:l.typography.fontFamily,fontSize:13},children:e}),!!t&&V.jsxs(V.Fragment,{children:[V.jsx(Wi,{sx:{my:1,borderColor:l.typography.secondaryTextColor,opacity:.3}}),V.jsx(xr,{variant:"body2",style:{color:l.typography.primaryTextColor,fontFamily:l.typography.fontFamily,fontSize:13},children:t})]})]})]})})]})}const KY=({title:e,description:t,dataSetName:r,styleOptions:n,onRefresh:a})=>{var u;const{themeSettings:o}=zt(),l=()=>{var d;const c=V.jsx(V.Fragment,{children:V.jsx(ZY,{title:r,description:t,styleOptions:n,onRefresh:a})});return n!=null&&n.renderToolbar?(d=n==null?void 0:n.renderToolbar)==null?void 0:d.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:QY((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()})]}),O.get(n,"dividerLine",o.widget.header.dividerLine)&&V.jsx(Wi,{style:{backgroundColor:(n==null?void 0:n.dividerLineColor)||o.widget.header.dividerLineColor||"#d5d5d5"}})]})};function QY(e){return e.toLowerCase()}const Af=({dataSetName:e,styleOptions:t,title:r,description:n,topSlot:a,bottomSlot:o,children:l,onRefresh:u=()=>{}})=>{var d,p,m;const{themeSettings:c}=zt();return V.jsx("div",{className:"csdk-w-full csdk-h-full csdk-overflow-hidden",children:V.jsx("div",{className:"csdk-h-full",style:{padding:C0[O.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:O.get(t,"border",c.widget.border)?"1px":0,borderColor:(t==null?void 0:t.borderColor)||c.widget.borderColor,borderRadius:x0[(t==null?void 0:t.cornerRadius)||c.widget.cornerRadius]||0,boxShadow:HG(t,c),display:"flex",flexDirection:"column"},children:[!((d=t==null?void 0:t.header)!=null&&d.hidden)&&V.jsx(KY,{title:r,description:n,dataSetName:e,styleOptions:t==null?void 0:t.header,onRefresh:u}),a,V.jsx(uy,{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]})})})};function JY(e){return et("MuiListSubheader",e)}Ke("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const eX=["className","color","component","disableGutters","disableSticky","inset"],tX=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 ot(l,JY,t)},rX=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})),Lf=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiListSubheader"}),{className:a,color:o="default",component:l="li",disableGutters:u=!1,disableSticky:c=!1,inset:d=!1}=n,p=Ee(n,eX),m=te({},n,{color:o,component:l,disableGutters:u,disableSticky:c,inset:d}),h=tX(m);return V.jsx(rX,te({as:l,className:Oe(h.root,a),ref:r,ownerState:m},p))});Lf.muiSkipListHighlight=!0;process.env.NODE_ENV!=="production"&&(Lf.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 Os=Z.createContext({});process.env.NODE_ENV!=="production"&&(Os.displayName="ListContext");function nX(e){return et("MuiList",e)}Ke("MuiList",["root","padding","dense","subheader"]);const iX=["children","className","component","dense","disablePadding","subheader"],aX=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return ot({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},nX,t)},oX=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})),M0=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiList"}),{children:a,className:o,component:l="ul",dense:u=!1,disablePadding:c=!1,subheader:d}=n,p=Ee(n,iX),m=Z.useMemo(()=>({dense:u}),[u]),h=te({},n,{component:l,dense:u,disablePadding:c}),g=aX(h);return V.jsx(Os.Provider,{value:m,children:V.jsxs(oX,te({as:l,className:Oe(g.root,o),ref:r,ownerState:h},p,{children:[d,a]}))})});process.env.NODE_ENV!=="production"&&(M0.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 sX=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Pu(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ov(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function P0(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 Ca(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")||!P0(u,o)||c)u=a(e,u,r);else return u.focus(),!0}return!1}const If=Z.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:l,className:u,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:p,variant:m="selectedMenu"}=t,h=Ee(t,sX),g=Z.useRef(null),_=Z.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qn(()=>{a&&g.current.focus()},[a]),Z.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(T,{direction:C})=>{const x=!g.current.style.width;if(T.clientHeight<g.current.clientHeight&&x){const P=`${ib(Lt(T))}px`;g.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=P,g.current.style.width=`calc(100% + ${P})`}return g.current}}),[]);const y=T=>{const C=g.current,x=T.key,P=Lt(C).activeElement;if(x==="ArrowDown")T.preventDefault(),Ca(C,P,d,c,Pu);else if(x==="ArrowUp")T.preventDefault(),Ca(C,P,d,c,Ov);else if(x==="Home")T.preventDefault(),Ca(C,null,d,c,Pu);else if(x==="End")T.preventDefault(),Ca(C,null,d,c,Ov);else if(x.length===1){const R=_.current,D=x.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 I=P&&!R.repeating&&P0(P,R);R.previousKeyMatched&&(I||Ca(C,P,!1,c,Pu,R))?T.preventDefault():R.previousKeyMatched=!1}p&&p(T)},w=It(g,r);let E=-1;Z.Children.forEach(l,(T,C)=>{if(!Z.isValidElement(T)){E===C&&(E+=1,E>=l.length&&(E=-1));return}process.env.NODE_ENV!=="production"&&Ha.isFragment(T)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
274
|
-
`)),T.props.disabled||(m==="selectedMenu"&&T.props.selected||E===-1)&&(E=C),E===C&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(E+=1,E>=l.length&&(E=-1))});const S=Z.Children.map(l,(T,C)=>{if(C===E){const x={};return o&&(x.autoFocus=!0),T.props.tabIndex===void 0&&m==="selectedMenu"&&(x.tabIndex=0),Z.cloneElement(T,x)}return T});return V.jsx(M0,te({role:"menu",ref:w,className:u,onKeyDown:y,tabIndex:a?0:-1},h,{children:S}))});process.env.NODE_ENV!=="production"&&(If.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 lX(e){return et("MuiMenu",e)}Ke("MuiMenu",["root","paper","list"]);const uX=["onEntering"],cX=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],dX={vertical:"top",horizontal:"right"},fX={vertical:"top",horizontal:"left"},hX=e=>{const{classes:t}=e;return ot({root:["root"],paper:["paper"],list:["list"]},lX,t)},pX=ke(wl,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mX=ke(E0,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),vX=ke(If,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),$f=Z.forwardRef(function(t,r){var n,a;const o=tt({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:u,className:c,disableAutoFocusItem:d=!1,MenuListProps:p={},onClose:m,open:h,PaperProps:g={},PopoverClasses:_,transitionDuration:y="auto",TransitionProps:{onEntering:w}={},variant:E="selectedMenu",slots:S={},slotProps:T={}}=o,C=Ee(o.TransitionProps,uX),x=Ee(o,cX),P=Vd(),R=te({},o,{autoFocus:l,disableAutoFocusItem:d,MenuListProps:p,onEntering:w,PaperProps:g,transitionDuration:y,TransitionProps:C,variant:E}),D=hX(R),A=l&&!d&&h,I=Z.useRef(null),N=(q,U)=>{I.current&&I.current.adjustStyleForScrollbar(q,{direction:P?"rtl":"ltr"}),w&&w(q,U)},k=q=>{q.key==="Tab"&&(q.preventDefault(),m&&m(q,"tabKeyDown"))};let W=-1;Z.Children.map(u,(q,U)=>{Z.isValidElement(q)&&(process.env.NODE_ENV!=="production"&&Ha.isFragment(q)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
275
|
-
`)),q.props.disabled||(E==="selectedMenu"&&q.props.selected||W===-1)&&(W=U))});const j=(n=S.paper)!=null?n:mX,$=(a=T.paper)!=null?a:g,B=wn({elementType:S.root,externalSlotProps:T.root,ownerState:R,className:[D.root,c]}),G=wn({elementType:j,externalSlotProps:$,ownerState:R,className:D.paper});return V.jsx(pX,te({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?dX:fX,slots:{paper:j,root:S.root},slotProps:{root:B,paper:G},open:h,ref:r,transitionDuration:y,TransitionProps:te({onEntering:N},C),ownerState:R},x,{classes:_,children:V.jsx(vX,te({onKeyDown:k,actions:I,autoFocus:l&&(W===-1||d),autoFocusItem:A,variant:E},p,{className:Oe(D.list,p.className),children:u}))}))});process.env.NODE_ENV!=="production"&&($f.propTypes={anchorEl:v.oneOfType([Kr,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 kv=Ke("MuiListItemIcon",["root","alignItemsFlexStart"]),Nv=Ke("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function gX(e){return et("MuiMenuItem",e)}const Ta=Ke("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),yX=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],bX=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},_X=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:l}=e,c=ot({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},gX,l);return te({},l,c)},wX=ke(Qn,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:bX})(({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"}},[`&.${Ta.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:at(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ta.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ta.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:at(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})`:at(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ta.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ta.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Cv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Cv.inset}`]:{marginLeft:52},[`& .${Nv.root}`]:{marginTop:0,marginBottom:0},[`& .${Nv.inset}`]:{paddingLeft:36},[`& .${kv.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&te({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${kv.root} svg`]:{fontSize:"1.25rem"}}))),zf=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:l=!1,divider:u=!1,disableGutters:c=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:m,className:h}=n,g=Ee(n,yX),_=Z.useContext(Os),y=Z.useMemo(()=>({dense:l||_.dense||!1,disableGutters:c}),[_.dense,l,c]),w=Z.useRef(null);qn(()=>{a&&(w.current?w.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 E=te({},n,{dense:y.dense,divider:u,disableGutters:c}),S=_X(n),T=It(w,r);let C;return n.disabled||(C=m!==void 0?m:-1),V.jsx(Os.Provider,{value:y,children:V.jsx(wX,te({ref:T,role:p,tabIndex:C,component:o,focusVisibleClassName:Oe(S.focusVisible,d),className:Oe(S.root,h)},g,{ownerState:E,classes:S}))})});process.env.NODE_ENV!=="production"&&(zf.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 R0=({position:e,closeContextMenu:t,itemSections:r,children:n})=>{const a=!!e;return V.jsxs($f,{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(Lf,{children:o},`subheader_${o}`)),u.push(V.jsx(Wi,{},`divider_${o}`))),[...u,...(c=l==null?void 0:l.map(d=>{var p;return V.jsx(zf,{onClick:()=>{var m;t(),(m=d.onClick)==null||m.call(d)},children:d.caption},(p=d.key)!=null?p:d.caption)}))!=null?c:[]]}),n]})},xX=ho(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"),CX=["slots","slotProps"],TX=ke(Qn)(({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:Wp(e.palette.grey[200],.12)}:{backgroundColor:Wp(e.palette.grey[600],.12)})})),SX=ke(xX)({width:24,height:16});function O0(e){const{slots:t={},slotProps:r={}}=e,n=Ee(e,CX),a=e;return V.jsx("li",{children:V.jsx(TX,te({focusRipple:!0},n,{ownerState:a,children:V.jsx(SX,te({as:t.CollapsedIcon,ownerState:a},r.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(O0.propTypes={slotProps:v.shape({collapsedIcon:v.oneOfType([v.func,v.object])}),slots:v.shape({CollapsedIcon:v.elementType}),sx:v.object});function EX(e){return et("MuiBreadcrumbs",e)}const MX=Ke("MuiBreadcrumbs",["root","ol","li","separator"]),PX=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],RX=e=>{const{classes:t}=e;return ot({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},EX,t)},OX=ke(xr,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${MX.li}`]:t.li},t.root]})({}),kX=ke("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),NX=ke("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function DX(e,t,r,n){return e.reduce((a,o,l)=>(l<e.length-1?a=a.concat(o,V.jsx(NX,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${l}`)):a.push(o),a),[])}const k0=Z.forwardRef(function(t,r){const n=tt({props:t,name:"MuiBreadcrumbs"}),{children:a,className:o,component:l="nav",slots:u={},slotProps:c={},expandText:d="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:m=1,maxItems:h=8,separator:g="/"}=n,_=Ee(n,PX),[y,w]=Z.useState(!1),E=te({},n,{component:l,expanded:y,expandText:d,itemsAfterCollapse:p,itemsBeforeCollapse:m,maxItems:h,separator:g}),S=RX(E),T=wn({elementType:u.CollapsedIcon,externalSlotProps:c.collapsedIcon,ownerState:E}),C=Z.useRef(null),x=R=>{const D=()=>{w(!0);const A=C.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(`
|
|
276
|
-
`)),R):[...R.slice(0,m),V.jsx(O0,{"aria-label":d,slots:{CollapsedIcon:u.CollapsedIcon},slotProps:{collapsedIcon:T},onClick:D},"ellipsis"),...R.slice(R.length-p,R.length)]},P=Z.Children.toArray(a).filter(R=>(process.env.NODE_ENV!=="production"&&Ha.isFragment(R)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
277
|
-
`)),Z.isValidElement(R))).map((R,D)=>V.jsx("li",{className:S.li,children:R},`child-${D}`));return V.jsx(OX,te({ref:r,component:l,color:"text.secondary",className:Oe(S.root,o),ownerState:E},_,{children:V.jsx(kX,{className:S.ol,ref:C,ownerState:E,children:DX(y||h&&P.length<=h?P:x(P),S.separator,g,E)})}))});process.env.NODE_ENV!=="production"&&(k0.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,expandText:v.string,itemsAfterCollapse:kr,itemsBeforeCollapse:kr,maxItems:kr,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 AX(e){return et("MuiButton",e)}const ns=Ke("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"]),N0=Z.createContext({});process.env.NODE_ENV!=="production"&&(N0.displayName="ButtonGroupContext");const D0=Z.createContext(void 0);process.env.NODE_ENV!=="production"&&(D0.displayName="ButtonGroupButtonContext");const LX=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],IX=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=ot(u,AX,l);return te({},l,c)},A0=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}}),$X=ke(Qn,{shouldForwardProp:e=>co(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})`:at(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})`:at(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})`:at(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]}),[`&.${ns.focusVisible}`]:te({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ns.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 ${at(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"},[`&.${ns.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ns.disabled}`]:{boxShadow:"none"}}),zX=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},A0(e))),FX=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},A0(e))),Za=Z.forwardRef(function(t,r){const n=Z.useContext(N0),a=Z.useContext(D0),o=Ad(n,t),l=tt({props:o,name:"MuiButton"}),{children:u,color:c="primary",component:d="button",className:p,disabled:m=!1,disableElevation:h=!1,disableFocusRipple:g=!1,endIcon:_,focusVisibleClassName:y,fullWidth:w=!1,size:E="medium",startIcon:S,type:T,variant:C="text"}=l,x=Ee(l,LX),P=te({},l,{color:c,component:d,disabled:m,disableElevation:h,disableFocusRipple:g,fullWidth:w,size:E,type:T,variant:C}),R=IX(P),D=S&&V.jsx(zX,{className:R.startIcon,ownerState:P,children:S}),A=_&&V.jsx(FX,{className:R.endIcon,ownerState:P,children:_}),I=a||"";return V.jsxs($X,te({ownerState:P,className:Oe(n.className,R.root,p,I),component:d,disabled:m,focusRipple:!g,focusVisibleClassName:Oe(R.focusVisible,y),ref:r,type:T},x,{classes:R,children:[D,u,A]}))});process.env.NODE_ENV!=="production"&&(Za.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 WX=({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=Cr(Za)`
|
|
278
|
-
&& {
|
|
279
|
-
background-color: ${n.activeDrillBackgroundColor};
|
|
280
|
-
color: ${n.primaryButtonTextColor};
|
|
281
|
-
border-radius: 100%;
|
|
282
|
-
border: 2px solid white;
|
|
283
|
-
min-width: 39px;
|
|
284
|
-
width: 39px;
|
|
285
|
-
height: 39px;
|
|
286
|
-
z-index: 10;
|
|
287
|
-
padding: 7px;
|
|
288
|
-
cursor: pointer;
|
|
289
|
-
text-transform: none;
|
|
290
|
-
margin-right: -5px;
|
|
291
|
-
|
|
292
|
-
&:hover {
|
|
293
|
-
background-color: ${n.activeDrillHoverBackgroundColor};
|
|
294
|
-
color: ${n.primaryTextColor};
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
`,l=Cr.svg`
|
|
298
|
-
width: 22px;
|
|
299
|
-
height: 22px;
|
|
300
|
-
fill: #9ea2ab;
|
|
301
|
-
`,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=Cr(Za)`
|
|
302
|
-
&& {
|
|
303
|
-
position: relative;
|
|
304
|
-
font-family: ${h=>h.theme.fontFamily};
|
|
305
|
-
border-radius: 0;
|
|
306
|
-
border: 1px solid ${Ar};
|
|
307
|
-
background-color: ${h=>h.theme.chartBackgroundColor};
|
|
308
|
-
border-right: none;
|
|
309
|
-
border-left: none;
|
|
310
|
-
color: ${h=>h.theme.secondaryTextColor};
|
|
311
|
-
padding-right: 1.25rem;
|
|
312
|
-
padding-left: 1.875rem;
|
|
313
|
-
height: 1.64rem;
|
|
314
|
-
font-size: 13px;
|
|
315
|
-
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
|
|
316
|
-
text-transform: none;
|
|
317
|
-
cursor: auto;
|
|
318
|
-
pointer-events: none;
|
|
319
|
-
white-space: nowrap;
|
|
320
|
-
|
|
321
|
-
&:hover {
|
|
322
|
-
background-color: ${h=>h.theme.chartBackgroundColor};
|
|
323
|
-
border: 1px solid ${Ar};
|
|
324
|
-
border-right: none;
|
|
325
|
-
border-left: none;
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
`;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 ${Ar}`,borderRight:`1px solid ${Ar}`}})})]})}},jX={modifiers:[{name:"offset",options:{offset:[0,12]}}]},BX=({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(xr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:"Members"}),V.jsx(xr,{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(xr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:"Table"}),V.jsx(xr,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:r})]}),V.jsxs("div",{className:"csdk-p-3 csdk-pl-1",children:[V.jsx(xr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:"Column"}),V.jsx(xr,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:n})]})]}),HX=({popperParams:e,currentDimension:t,themeProps:r})=>{const n=t.expression.match(/\[(.*?)]/),[a,o]=n?n[1].split("."):["",""],l=!!e;return V.jsx(xo,{open:l,anchorEl:e==null?void 0:e.anchorEl,placement:"bottom",popperOptions:jX,children:e&&V.jsx(BX,{themeProps:r,filterDisplayValues:e.filterDisplayValues,currentTable:a,currentColumn:o})})},VX=()=>{const{themeSettings:{typography:{primaryTextColor:e,secondaryTextColor:t,fontFamily:r},general:{backgroundColor:n,brandColor:a,primaryButtonTextColor:o},chart:{backgroundColor:l}}}=zt(),u=_s(l,.02),c=_s(u,.05);return{primaryTextColor:e,secondaryTextColor:t,fontFamily:r,backgroundColor:n,brandColor:a,primaryButtonTextColor:o,chartBackgroundColor:l,activeDrillBackgroundColor:u,activeDrillHoverBackgroundColor:c}},UX=Cr(ji)`
|
|
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
|
-
`,qX=Cr(ji)`
|
|
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
|
-
`,GX=({currentDimension:e,children:t})=>{const r=J.useRef(null),[n,a]=J.useState(0),[o,l]=J.useState(0),[u,c]=J.useState(0),d=()=>{var g;return(g=r.current)==null?void 0:g.querySelector("ol")};J.useEffect(()=>{const g=d();if(g){const _=g.clientWidth,y=g.scrollWidth,w=g.scrollLeft;a(_),l(y),c(w)}},[e]),J.useEffect(()=>{const g=d();function _(){if(g){const E=g.clientWidth;a(E)}}function y(){if(g){const E=g.scrollLeft;c(E)}}const w=new ResizeObserver(_);return g?(w.observe(g),g.addEventListener("scroll",y),()=>{w.disconnect(),g.removeEventListener("scroll",y)}):()=>{}},[]);const p=g=>{const y="smooth",w=d();w&&w.scrollBy({left:g==="right"?200:-200,behavior:y})},m=u!=0,h=Math.floor(o-u)>n;return V.jsxs("div",{style:{position:"relative"},children:[m&&V.jsx(UX,{onClick:()=>p("left"),children:V.jsx("span",{"aria-label":"prev-item",children:"Prev"})}),h&&V.jsx(qX,{onClick:()=>p("right"),children:V.jsx("span",{"aria-label":"next-item",children:"Next"})}),V.jsx("div",{ref:r,children:t})]})},Ar="#F2F2F2",YX=Cr(Za)`
|
|
381
|
-
&& {
|
|
382
|
-
font-family: ${({theme:e})=>e.fontFamily};
|
|
383
|
-
position: relative;
|
|
384
|
-
border-radius: 0;
|
|
385
|
-
border: 1px solid ${Ar};
|
|
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 ${Ar};
|
|
402
|
-
border-right: none;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
.MuiTouchRipple-root {
|
|
406
|
-
display: none;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
`,XX=Cr(k0)`
|
|
410
|
-
.MuiBreadcrumbs-ol {
|
|
411
|
-
flex-wrap: nowrap;
|
|
412
|
-
overflow: hidden;
|
|
413
|
-
}
|
|
414
|
-
.MuiBreadcrumbs-separator {
|
|
415
|
-
display: none;
|
|
416
|
-
}
|
|
417
|
-
`,ZX=({isActive:e,filterDisplayValue:t,handleMouseEnter:r,handleMouseLeave:n,handleClick:a,themeProps:o,popperParams:l,index:u})=>V.jsx(YX,{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 ${Ar}`,borderRight:`1px solid ${Ar}`,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 ${Ar}`,borderRight:`1px solid ${Ar}`,zIndex:7,transition:"background-color 0.2s, border-color 0.2s, color 0.2s"}})]})}),L0=({filtersDisplayValues:e,currentDimension:t,clearDrilldownSelections:r,sliceDrilldownSelections:n})=>{const[a,o]=J.useState(null),[l,u]=J.useState(!1),c=VX(),{CancelButton:d,CurrentDrillButton:p}=WX({clearDrilldownSelections:r,currentDimension:t,isHovered:l,setIsHovered:u,themeProps:c}),m=y=>w=>{u(!0),o({filterDisplayValues:y,anchorEl:w.currentTarget})},h=()=>{u(!1),o(null)},g=y=>y<e.length-1,_=y=>y===e.length-2;return e.length?V.jsx(GX,{currentDimension:t,children:V.jsxs(XX,{separator:null,sx:{backgroundColor:c.chartBackgroundColor,padding:"4px"},children:[V.jsx(d,{}),e.map((y,w)=>{const E=g(w),S=_(w);return V.jsx("div",{children:V.jsx(ZX,{isActive:E,isLastActive:S,filterDisplayValue:y,handleMouseEnter:m(y),handleMouseLeave:h,handleClick:()=>n(w+1),themeProps:c,popperParams:a,index:w})},w)}),V.jsx(p,{}),V.jsx(HX,{popperParams:a,currentDimension:t,themeProps:c})]})}):null},KX=e=>{const{drilldownDimensions:t,initialDimension:r,drilldownSelections:n=[]}=e;if(!r)throw new Error("Initial dimension has to be specified to use drilldown with custom components");const[a,o]=J.useState(n),l=i0(e,["drilldownSelections"]);J.useEffect(()=>{l&&o(n)},[n,o,l]);const u=J.useMemo(()=>t.filter(({expression:h})=>a.every(({nextDimension:g})=>g.expression!==h)),[t,a]),c=J.useCallback((h,g)=>{o(_=>[..._,{points:h,nextDimension:g}])},[o]),d=J.useCallback(h=>{o(g=>g.slice(0,h))},[o]),p=J.useCallback(()=>{o([])},[o]),m=J.useMemo(()=>I0(a,r),[a,r]);return ie({selectDrilldown:c,sliceDrilldownSelections:d,clearDrilldownSelections:p,drilldownSelections:a,availableDrilldowns:u},m)},I0=(e,t)=>{var o;let r=(o=t.column)!=null?o:t;const n=[],a=[];return e.forEach(({points:l,nextDimension:u})=>{n.push(O.members(r,l.map(JX))),a.push(l.map(QX)),r=u}),{drilldownFilters:n,drilldownFiltersDisplayValues:a,drilldownDimension:r}};function QX(e){return"categoryDisplayValue"in e?`${e.categoryDisplayValue}`:"categoryValue"in e?`${e.categoryValue}`:""}function JX(e){return"categoryValue"in e?`${e.categoryValue}`:""}const $0=Zn({componentName:"DrilldownWidget",trackingConfig:{transparent:!0}})(e=>{var A,I;const{drilldownDimensions:t,initialDimension:r,drilldownSelections:n,config:a,children:o}=e,[l,u]=J.useState([]),[c,d]=J.useState(null),p=(A=a==null?void 0:a.contextMenuComponent)!=null?A:R0,m=(I=a==null?void 0:a.breadcrumbsComponent)!=null?I:L0,{selectDrilldown:h,sliceDrilldownSelections:g,clearDrilldownSelections:_,availableDrilldowns:y,drilldownFilters:w,drilldownFiltersDisplayValues:E,drilldownDimension:S}=KX({drilldownDimensions:t,initialDimension:r,drilldownSelections:n}),T=J.useMemo(()=>S&&V.jsx(m,{filtersDisplayValues:E,currentDimension:S,clearDrilldownSelections:_,sliceDrilldownSelections:g}),[m,_,S,E,g]),C=N=>{d(N)},x=J.useCallback(()=>{u([]),d(null)},[u]),P=J.useCallback(N=>{h(l,N)},[h,l]),R=J.useCallback(N=>{u(N)},[u]),D=J.useMemo(()=>[...S?[{sectionTitle:S==null?void 0:S.name}]:[],{sectionTitle:"Drill",items:y.map(N=>({caption:N.name,onClick:()=>P(N)}))}],[S,y,P]);return V.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[V.jsx(p,{position:c,itemSections:D,closeContextMenu:x}),S&&!(a!=null&&a.isBreadcrumbsDetached)&&T,V.jsx("div",{style:{flexGrow:1,minWidth:0,minHeight:0},children:o({drilldownFilters:w,drilldownDimension:S,onDataPointsSelected:R,onContextMenu:C,breadcrumbsComponent:a!=null&&a.isBreadcrumbsDetached?T:void 0})})]})});function eZ({chartType:e,dataOptions:t,enabled:r}){const[n,a]=J.useState([]),o=J.useMemo(()=>{var h;const m=O.isCartesian(e)&&((h=t.category)==null?void 0:h.length)===1||O.isScatter(e);return r&&m},[r,e,t]),l=J.useMemo(()=>{if(n.length===0)return m=>he(ie({},m),{series:m.series.map(h=>he(ie({},h),{data:h.data.map(g=>he(ie({},g),{selected:!1}))}))});if(O.isScatter(e))return m=>he(ie({},m),{series:m.series.map(h=>he(ie({},h),{data:h.data.map(g=>he(ie({},g),{selected:!n.some(_=>{var y,w;return _.x===g.x&&_.y===g.y&&_.size===g.z&&_.breakByPoint===((y=g.custom)==null?void 0:y.maskedBreakByPoint)&&_.breakByColor===((w=g.custom)==null?void 0:w.maskedBreakByColor)})}))}))});{const m=n.reduce((h,{categoryValue:g})=>(g&&(h[`${g}`]=!0),h),{});return h=>he(ie({},h),{series:h.series.map(g=>he(ie({},g),{data:g.data.map(_=>{var y,w;return m[(w=(y=_.custom)==null?void 0:y.xValue)==null?void 0:w[0]]?_:he(ie({},_),{selected:!0})})}))})}},[n,e]),u=J.useMemo(()=>m=>{var h;return he(ie({},m),{chart:he(ie({},m.chart),{events:he(ie({},(h=m.chart)==null?void 0:h.events),{click:()=>{a([])}})})})},[]),c=J.useCallback(m=>(o&&(m=l(m),m=u(m)),m),[l,u,o]),d=J.useCallback(m=>{o&&a(m)},[o]),p=J.useCallback(m=>{o&&a([m])},[o]);return{onBeforeRender:c,onDataPointsSelected:d,onDataPointClick:p}}function La(e,t=!1){const r=e.filter(n=>O.isFunction(n));return t?$g(r):o0(r)}function tZ(e){return e&&e.length?Md(e):[]}function rZ(e,t){return t.all?[]:e.filter(r=>{var n;return!((n=t.ids)!=null&&n.includes(r.guid))})}function z0(e,t){return e.find(r=>O.isSameAttribute(r.attribute,t))}function nZ(e,t,r){const n=z0(r,e);return O.members(e,t.map(a=>`${a}`),!1,n==null?void 0:n.guid,void 0,n==null?void 0:n.backgroundFilter)}function F0(e,t){return O.haveSameAttribute(e,t)&&"members"in e&&"members"in t&&Li(e.members,t.members)}function xl(e,t){const n=e.filter(a=>{const o="value"in a&&!O.isUndefined(a.value),l="x"in a&&!O.isUndefined(a.x)||"y"in a&&!O.isUndefined(a.y),u="boxMedian"in a&&!O.isUndefined(a.boxMedian),c="geoName"in a&&!O.isUndefined(a.geoName);return o||l||u||c}).map(t);return tZ(n)}function iZ(e,t){return e.category.map(O.translateColumnToAttribure).map((n,a)=>({attribute:n,values:xl(t,o=>a===0?o.categoryValue:o.categoryDisplayValue)}))}function aZ(e,t,r){const n=e.category.map(O.translateColumnToAttribure)[0],a=r;return n?[{attribute:n,values:xl(t,o=>"x"in o?a.point.series.xAxis.categories[o.x]:o.categoryValue)}]:[]}function oZ(e,t,r){const n=r,{level:a}=n.point.options.custom,o=a-1;return e.category.map(O.translateColumnToAttribure).map((u,c)=>({attribute:u,values:o===c?[n.point.name]:[]}))}function sZ(e,t,r){const n=[],a=r;return a.type==="mouseup"?(console.warn("No cross-filtering support for multi-selection in scatter chart"),n):(e.x&&!O.isMeasureColumn(e.x)&&n.push({attribute:O.translateColumnToAttribure(e.x),values:[a.point.options.custom.maskedX]}),e.y&&!O.isMeasureColumn(e.y)&&n.push({attribute:O.translateColumnToAttribure(e.y),values:[a.point.options.custom.maskedY]}),e.breakByColor&&!O.isMeasureColumn(e.breakByColor)&&n.push({attribute:O.translateColumnToAttribure(e.breakByColor),values:[a.point.options.custom.maskedBreakByColor]}),e.breakByPoint&&n.push({attribute:O.translateColumnToAttribure(e.breakByPoint),values:[a.point.options.custom.maskedBreakByPoint]}),n)}function lZ(e,t){return e.geo.map(O.translateColumnToAttribure).map((n,a)=>({attribute:n,values:xl(t,o=>o.categories[a])}))}function uZ(e,t){return e.geo.map(O.translateColumnToAttribure).map(n=>({attribute:n,values:xl(t,a=>a.geoName)}))}function cZ(e,t,r,n){return e==="plugin"?[]:e==="pivot"?[]:e==="treemap"||e==="sunburst"?oZ(t,r,n):O.isCartesian(e)||e==="pie"||e==="funnel"?iZ(t,r):O.isBoxplot(e)?aZ(t,r,n):O.isScatter(e)?sZ(t,r,n):O.isScattermap(e)?lZ(t,r):O.isAreamap(e)?uZ(t,r):[]}function Ff(e,t){let r=[];return e==="plugin"?r=[]:e==="pivot"?r=[...t.rows||[],...t.columns||[]]:O.isCartesian(e)||O.isCategorical(e)||O.isBoxplot(e)||O.isRange(e)?r=[...t.category]:O.isScatter(e)?r=[t.x,t.y,t.breakByPoint,t.breakByColor].filter(n=>!!(n&&!O.isMeasureColumn(n))):(O.isScattermap(e)||O.isAreamap(e))&&(r=[...t.geo]),r.map(O.translateColumnToAttribure)}function dZ(e,t){const r=e.map(({attribute:l,values:u})=>nZ(l,u,t)),n=fZ(t,r),a=t.filter(l=>!l.disabled);return n.every(l=>{const u=z0(a,l.attribute);return u&&F0(l,u)})?n.map(O.clearMembersFilter):n}function fZ(e,t){const r=e.filter(n=>n.locked);return r.length?t.filter(n=>!r.some(a=>O.haveSameAttribute(a,n))):t}function hZ(e,t){return Ff(e,t)[0]}function pZ(e){return[...O.CARTESIAN_CHART_TYPES,...O.CATEGORICAL_CHART_TYPES,...O.SCATTER_CHART_TYPES,...O.BOXPLOT_CHART_TYPES,...O.RANGE_CHART_TYPES].includes(e)}function mZ(e,t){return Ff(e,t).length===1}function vZ(e,t,r){if(O.isCartesian(e)||O.isCategorical(e)||O.isBoxplot(e)||O.isRange(e))return he(ie({},t),{category:[r]});if(O.isScatter(e)){const n=t,a=["x","y","breakByPoint","breakByColor"];for(const o of a)if(n[o]&&!O.isMeasureColumn(n[o]))return he(ie({},n),{[o]:r})}return t}function Dv(e,t,r){return e.map(n=>{const a=["x","y","breakByPoint","breakByColor"],o=[...a,"size"].some(u=>u in n),l=a.find(u=>r[u]&&!O.isMeasureColumn(r[u]));if(o){const u=t,c=u.type==="mouseup";c&&console.warn("No drilldown support for multi-selection in scatter chart");const d=c?n[l]:u.point.options.custom[_0(`{masked ${l}`)];return{categoryValue:d,categoryDisplayValue:d}}return n})}function gZ(e){const{drilldownDimension:t,drilldownFilters:r,onDataPointsSelected:n,onContextMenu:a}=e;return function(l){const{chartType:u,dataOptions:c}=l,d=(m,h)=>{const g=Dv(m,h,l.dataOptions);n(g,h),a({left:h.clientX,top:h.clientY})},p=(m,h)=>{const g=Dv([m],h,c);n(g,h),a({left:h.clientX,top:h.clientY})};return he(ie({},l),{dataOptions:vZ(u,c,t),filters:O.mergeFilters(l.filters,r),onDataPointsSelected:La([d,l.onDataPointsSelected]),onDataPointContextMenu:La([p,l.onDataPointContextMenu])})}}const yZ=Zn({componentName:"ChartWidget"})(e=>{var R,D;const{app:t}=yt(),{chartType:r,dataSource:n=t==null?void 0:t.defaultDataSource,dataOptions:a,styleOptions:o,drilldownOptions:l,highlightSelectionDisabled:u=!1,highlights:c,description:d}=e,P=o||{},{width:p,height:m}=P,h=fi(P,["width","height"]),g=kd(r,{hasHeader:!((R=o==null?void 0:o.header)!=null&&R.hidden)}),[_,y]=J.useState(0),w=J.useMemo(()=>{var I,N;return(((I=l==null?void 0:l.drilldownSelections)==null?void 0:I.length)||((N=l==null?void 0:l.drilldownDimensions)==null?void 0:N.length))&&pZ(r)&&mZ(r,a)},[l,r,a]),E=eZ({chartType:r,dataOptions:a,enabled:!u&&!w&&!(c!=null&&c.length)}),S=(D=t==null?void 0:t.settings.accessibilityConfig)==null?void 0:D.enabled,T=J.useCallback(A=>{var I;return S?he(ie({},A),{accessibility:he(ie({},A.accessibility),{description:d!=null?d:(I=A.accessibility)==null?void 0:I.description})}):A},[d,S]);if(!r||!a)return null;const C=he(ie({},e),{dataSet:n,styleOptions:h,refreshCounter:_,onDataPointClick:La([E.onDataPointClick,e.onDataPointClick]),onDataPointsSelected:La([E.onDataPointsSelected,e.onDataPointsSelected]),onBeforeRender:La([T,E.onBeforeRender,e.onBeforeRender],!0)}),x=(A,I)=>V.jsx(Af,he(ie({},e),{topSlot:V.jsxs(V.Fragment,{children:[e.topSlot,I]}),dataSetName:n&&O.getDataSourceName(n),onRefresh:()=>y(_+1),children:V.jsx(r0,ie({},A))}));return V.jsx(io,{defaultSize:g,size:{width:p,height:m},children:w?V.jsx($0,{drilldownDimensions:(l==null?void 0:l.drilldownDimensions)||[],initialDimension:hZ(r,a),drilldownSelections:(l==null?void 0:l.drilldownSelections)||[],config:{isBreadcrumbsDetached:!0},children:A=>{const{breadcrumbsComponent:I}=A,N=gZ(A);return x(N(C),I)}}):x(C)})}),bZ=Zn({componentName:"TableWidget"})(e=>{var m;const[t,r]=J.useState(0),{app:n}=yt(),{styleOptions:a,dataSource:o=n==null?void 0:n.defaultDataSource,dataOptions:l}=e,u=kd("table",{hasHeader:!((m=a==null?void 0:a.header)!=null&&m.hidden)}),h=e.styleOptions||{},{width:c,height:d}=h,p=fi(h,["width","height"]);return l?V.jsx(io,{defaultSize:u,size:{width:c,height:d},children:V.jsx(Af,he(ie({},e),{dataSetName:o&&O.getDataSourceName(o),onRefresh:()=>r(t+1),children:V.jsx(w0,{dataSet:e.dataSource,dataOptions:e.dataOptions,styleOptions:p,filters:e.filters,refreshCounter:t})}))}):null});var Ru=function(){return O.root.Date.now()},_Z="Expected a function",wZ=Math.max,xZ=Math.min;function CZ(e,t,r){var n,a,o,l,u,c,d=0,p=!1,m=!1,h=!0;if(typeof e!="function")throw new TypeError(_Z);t=O.toNumber(t)||0,O.isObject(r)&&(p=!!r.leading,m="maxWait"in r,o=m?wZ(O.toNumber(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h);function g(P){var R=n,D=a;return n=a=void 0,d=P,l=e.apply(D,R),l}function _(P){return d=P,u=setTimeout(E,t),p?g(P):l}function y(P){var R=P-c,D=P-d,A=t-R;return m?xZ(A,o-D):A}function w(P){var R=P-c,D=P-d;return c===void 0||R>=t||R<0||m&&D>=o}function E(){var P=Ru();if(w(P))return S(P);u=setTimeout(E,y(P))}function S(P){return u=void 0,h&&n?g(P):(n=a=void 0,l)}function T(){u!==void 0&&clearTimeout(u),d=0,n=c=a=u=void 0}function C(){return u===void 0?l:S(Ru())}function x(){var P=Ru(),R=w(P);if(n=arguments,a=this,c=P,R){if(u===void 0)return _(c);if(m)return clearTimeout(u),u=setTimeout(E,t),g(c)}return u===void 0&&(u=setTimeout(E,t)),l}return x.cancel=T,x.flush=C,x}class ta{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 Ka=typeof window=="undefined"||"Deno"in window;function nr(){}function TZ(e,t){return typeof e=="function"?e(t):e}function Gc(e){return typeof e=="number"&&e>=0&&e!==1/0}function W0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Oa(e,t,r){return Co(e)?typeof t=="function"?he(ie({},r),{queryKey:e,queryFn:t}):he(ie({},t),{queryKey:e}):e}function SZ(e,t,r){return Co(e)?he(ie({},t),{mutationKey:e}):typeof e=="function"?he(ie({},t),{mutationFn:e}):ie({},e)}function pn(e,t,r){return Co(e)?[he(ie({},t),{queryKey:e}),r]:[e||{},t]}function Av(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:l,stale:u}=e;if(Co(l)){if(n){if(t.queryHash!==Wf(l,t.options))return!1}else if(!Pi(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 Lv(e,t){const{exact:r,fetching:n,predicate:a,mutationKey:o}=e;if(Co(o)){if(!t.options.mutationKey)return!1;if(r){if(Vn(t.options.mutationKey)!==Vn(o))return!1}else if(!Pi(t.options.mutationKey,o))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||a&&!a(t))}function Wf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Vn)(e)}function Vn(e){return JSON.stringify(e,(t,r)=>Yc(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function Pi(e,t){return j0(e,t)}function j0(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!j0(e[r],t[r])):!1}function B0(e,t){if(e===t)return e;const r=Iv(e)&&Iv(t);if(r||Yc(e)&&Yc(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 d=r?c:a[c];l[d]=B0(e[d],t[d]),l[d]===e[d]&&u++}return n===o&&u===n?e:l}return t}function ks(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Iv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Yc(e){if(!$v(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const r=t.prototype;return!(!$v(r)||!r.hasOwnProperty("isPrototypeOf"))}function $v(e){return Object.prototype.toString.call(e)==="[object Object]"}function Co(e){return Array.isArray(e)}function H0(e){return new Promise(t=>{setTimeout(t,e)})}function zv(e){H0(0).then(e)}function EZ(){if(typeof AbortController=="function")return new AbortController}function Xc(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?B0(e,t):t}class MZ extends ta{constructor(){super(),this.setup=t=>{if(!Ka&&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 Ns=new MZ,Fv=["online","offline"];class PZ extends ta{constructor(){super(),this.setup=t=>{if(!Ka&&window.addEventListener){const r=()=>t();return Fv.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{Fv.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 PZ;function RZ(e){return Math.min(1e3*Ut(2,e),3e4)}function Cl(e){return(e!=null?e:"online")==="online"?Ds.isOnline():!0}class V0{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function ps(e){return e instanceof V0}function U0(e){let t=!1,r=0,n=!1,a,o,l;const u=new Promise((w,E)=>{o=w,l=E}),c=w=>{n||(g(new V0(w)),e.abort==null||e.abort())},d=()=>{t=!0},p=()=>{t=!1},m=()=>!Ns.isFocused()||e.networkMode!=="always"&&!Ds.isOnline(),h=w=>{n||(n=!0,e.onSuccess==null||e.onSuccess(w),a==null||a(),o(w))},g=w=>{n||(n=!0,e.onError==null||e.onError(w),a==null||a(),l(w))},_=()=>new Promise(w=>{a=E=>{const S=n||!m();return S&&w(E),S},e.onPause==null||e.onPause()}).then(()=>{a=void 0,n||e.onContinue==null||e.onContinue()}),y=()=>{if(n)return;let w;try{w=e.fn()}catch(E){w=Promise.reject(E)}Promise.resolve(w).then(h).catch(E=>{var S,T;if(n)return;const C=(S=e.retry)!=null?S:3,x=(T=e.retryDelay)!=null?T:RZ,P=typeof x=="function"?x(r,E):x,R=C===!0||typeof C=="number"&&r<C||typeof C=="function"&&C(r,E);if(t||!R){g(E);return}r++,e.onFail==null||e.onFail(r,E),H0(P).then(()=>{if(m())return _()}).then(()=>{t?g(E):y()})})};return Cl(e.networkMode)?y():_().then(y),{promise:u,cancel:c,continue:()=>(a==null?void 0:a())?u:Promise.resolve(),cancelRetry:d,continueRetry:p}}const jf=console;function OZ(){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):zv(()=>{r(p)})},l=p=>(...m)=>{o(()=>{p(...m)})},u=()=>{const p=e;e=[],p.length&&zv(()=>{n(()=>{p.forEach(m=>{r(m)})})})};return{batch:a,batchCalls:l,schedule:o,setNotifyFunction:p=>{r=p},setBatchNotifyFunction:p=>{n=p}}}const lt=OZ();class q0{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gc(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:Ka?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class kZ extends q0{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||jf,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||NZ(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=Xc(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(nr).catch(nr):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||!W0(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 g=this.observers.find(_=>_.options.queryFn);g&&this.setOptions(g.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=EZ(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>{if(l)return this.abortSignalConsumed=!0,l.signal}})};c(u);const d=()=>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:d};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=g=>{if(ps(g)&&g.silent||this.dispatch({type:"error",error:g}),!ps(g)){var _,y,w,E;(_=(y=this.cache.config).onError)==null||_.call(y,g,this),(w=(E=this.cache.config).onSettled)==null||w.call(E,this.state.data,g,this),process.env.NODE_ENV!=="production"&&this.logger.error(g)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=U0({fn:p.fetchFn,abort:l==null?void 0:l.abort.bind(l),onSuccess:g=>{var _,y,w,E;if(typeof g=="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(g),(_=(y=this.cache.config).onSuccess)==null||_.call(y,g,this),(w=(E=this.cache.config).onSettled)==null||w.call(E,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(g,_)=>{this.dispatch({type:"failed",failureCount:g,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:Cl(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 ps(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),lt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function NZ(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 DZ extends ta{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:Wf(o,r);let u=this.get(l);return u||(u=new kZ({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(){lt.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=pn(t,r);return typeof n.exact=="undefined"&&(n.exact=!0),this.queries.find(a=>Av(n,a))}findAll(t,r){const[n]=pn(t,r);return Object.keys(n).length>0?this.queries.filter(a=>Av(n,a)):this.queries}notify(t){lt.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){lt.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){lt.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class AZ extends q0{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||jf,this.observers=[],this.state=t.state||G0(),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 _r(this,null,function*(){const t=()=>{var R;return this.retryer=U0({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,d,p;if(!r){var m,h,g,_;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(g=(_=this.options).onMutate)==null?void 0:g.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(d=(p=this.options).onSettled)==null?void 0:d.call(p,R,null,this.state.variables,this.state.context),this.dispatch({type:"success",data:R}),R}catch(R){try{var y,w,E,S,T,C,x,P;throw yield(y=(w=this.mutationCache.config).onError)==null?void 0:y.call(w,R,this.state.variables,this.state.context,this),process.env.NODE_ENV!=="production"&&this.logger.error(R),yield(E=(S=this.options).onError)==null?void 0:E.call(S,R,this.state.variables,this.state.context),yield(T=(C=this.mutationCache.config).onSettled)==null?void 0:T.call(C,void 0,R,this.state.variables,this.state.context,this),yield(x=(P=this.options).onSettled)==null?void 0:x.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:!Cl(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),lt.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function G0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class LZ extends ta{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const a=new AZ({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(){lt.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=>Lv(t,r))}findAll(t){return this.mutations.filter(r=>Lv(t,r))}notify(t){lt.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 lt.batch(()=>r.reduce((n,a)=>n.then(()=>a.continue().catch(nr)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function IZ(){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,d=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)||[],g=((l=e.state.data)==null?void 0:l.pageParams)||[];let _=g,y=!1;const w=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>{var R;if((R=e.signal)!=null&&R.aborted)y=!0;else{var D;(D=e.signal)==null||D.addEventListener("abort",()=>{y=!0})}return e.signal}})},E=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),S=(P,R,D,A)=>(_=A?[R,..._]:[..._,R],A?[D,...P]:[...P,D]),T=(P,R,D,A)=>{if(y)return Promise.reject("Cancelled");if(typeof D=="undefined"&&!R&&P.length)return Promise.resolve(P);const I={queryKey:e.queryKey,pageParam:D,meta:e.options.meta};w(I);const N=E(I);return Promise.resolve(N).then(W=>S(P,D,W,A))};let C;if(!h.length)C=T([]);else if(p){const P=typeof d!="undefined",R=P?d:Wv(e.options,h);C=T(h,P,R)}else if(m){const P=typeof d!="undefined",R=P?d:$Z(e.options,h);C=T(h,P,R,!0)}else{_=[];const P=typeof e.options.getNextPageParam=="undefined";C=(u&&h[0]?u(h[0],0,h):!0)?T([],P,g[0]):Promise.resolve(S([],g[0],h[0]));for(let D=1;D<h.length;D++)C=C.then(A=>{if(u&&h[D]?u(h[D],D,h):!0){const N=P?g[D]:Wv(e.options,A);return T(A,P,N)}return Promise.resolve(S(A,g[D],h[D]))})}return C.then(P=>({pages:P,pageParams:_}))}}}}function Wv(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function $Z(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class zZ{constructor(t={}){this.queryCache=t.queryCache||new DZ,this.mutationCache=t.mutationCache||new LZ,this.logger=t.logger||jf,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=Ns.subscribe(()=>{Ns.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]=pn(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=Oa(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=TZ(r,o);if(typeof l=="undefined")return;const u=Oa(t),c=this.defaultQueryOptions(u);return this.queryCache.build(this,c).setData(l,he(ie({},n),{manual:!0}))}setQueriesData(t,r,n){return lt.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]=pn(t,r),a=this.queryCache;lt.batch(()=>{a.findAll(n).forEach(o=>{a.remove(o)})})}resetQueries(t,r,n){const[a,o]=pn(t,r,n),l=this.queryCache,u=ie({type:"active"},a);return lt.batch(()=>(l.findAll(a).forEach(c=>{c.reset()}),this.refetchQueries(u,o)))}cancelQueries(t,r,n){const[a,o={}]=pn(t,r,n);typeof o.revert=="undefined"&&(o.revert=!0);const l=lt.batch(()=>this.queryCache.findAll(a).map(u=>u.cancel(o)));return Promise.all(l).then(nr).catch(nr)}invalidateQueries(t,r,n){const[a,o]=pn(t,r,n);return lt.batch(()=>{var l,u;if(this.queryCache.findAll(a).forEach(d=>{d.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]=pn(t,r,n),l=lt.batch(()=>this.queryCache.findAll(a).filter(c=>!c.isDisabled()).map(c=>{var d;return c.fetch(void 0,he(ie({},o),{cancelRefetch:(d=o==null?void 0:o.cancelRefetch)!=null?d:!0,meta:{refetchPage:a.refetchPage}}))}));let u=Promise.all(l).then(nr);return o!=null&&o.throwOnError||(u=u.catch(nr)),u}fetchQuery(t,r,n){const a=Oa(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(nr).catch(nr)}fetchInfiniteQuery(t,r,n){const a=Oa(t,r,n);return a.behavior=IZ(),this.fetchQuery(a)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(nr).catch(nr)}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=>Vn(t)===Vn(a.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>Pi(t,n.queryKey));return process.env.NODE_ENV!=="production"&&this.queryDefaults.filter(a=>Pi(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=>Vn(t)===Vn(a.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>Pi(t,n.mutationKey));return process.env.NODE_ENV!=="production"&&this.mutationDefaults.filter(a=>Pi(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=Wf(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 FZ extends ta{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),jv(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Zc(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Zc(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"),ks(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&&Bv(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 jZ(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=fi(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(nr)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),Ka||this.currentResult.isStale||!Gc(this.options.staleTime))return;const r=W0(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,!(Ka||this.options.enabled===!1||!Gc(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Ns.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,d=c?t.state:this.currentQueryInitialState,p=c?this.currentResult:this.previousQueryResult,{state:m}=t;let{dataUpdatedAt:h,error:g,errorUpdatedAt:_,fetchStatus:y,status:w}=m,E=!1,S=!1,T;if(r._optimisticResults){const D=this.hasListeners(),A=!D&&jv(t,r),I=D&&Bv(t,n,r,a);(A||I)&&(y=Cl(t.options.networkMode)?"fetching":"paused",h||(w="loading")),r._optimisticResults==="isRestoring"&&(y="idle")}if(r.keepPreviousData&&!m.dataUpdatedAt&&p!=null&&p.isSuccess&&w!=="error")T=p.data,h=p.dataUpdatedAt,w=p.status,E=!0;else if(r.select&&typeof m.data!="undefined")if(o&&m.data===(l==null?void 0:l.data)&&r.select===this.selectFn)T=this.selectResult;else try{this.selectFn=r.select,T=r.select(m.data),T=Xc(o==null?void 0:o.data,T,r),this.selectResult=T,this.selectError=null}catch(D){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(D),this.selectError=D}else T=m.data;if(typeof r.placeholderData!="undefined"&&typeof T=="undefined"&&w==="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"&&(w="success",T=Xc(o==null?void 0:o.data,D,r),S=!0)}this.selectError&&(g=this.selectError,T=this.selectResult,_=Date.now(),w="error");const C=y==="fetching",x=w==="loading",P=w==="error";return{status:w,fetchStatus:y,isLoading:x,isSuccess:w==="success",isError:P,isInitialLoading:x&&C,data:T,dataUpdatedAt:h,error:g,errorUpdatedAt:_,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:C,isRefetching:C&&!x,isLoadingError:P&&m.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:S,isPreviousData:E,isRefetchError:P&&m.dataUpdatedAt!==0,isStale:Bf(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,ks(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(d=>{const p=d;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"&&!ps(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){lt.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,d;(l=(u=this.options).onError)==null||l.call(u,this.currentResult.error),(c=(d=this.options).onSettled)==null||c.call(d,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 WZ(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function jv(e,t){return WZ(e,t)||e.state.dataUpdatedAt>0&&Zc(e,t,t.refetchOnMount)}function Zc(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Bf(e,t)}return!1}function Bv(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Bf(e,r)}function Bf(e,t){return e.isStaleByTime(t.staleTime)}function jZ(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!ks(e.getCurrentResult(),t)}var Kc={exports:{}},Ou={};/**
|
|
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 Hv;function BZ(){if(Hv)return Ou;Hv=1;var e=J;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 g=h(),_=n({inst:{value:g,getSnapshot:h}}),y=_[0].inst,w=_[1];return o(function(){y.value=g,y.getSnapshot=h,c(y)&&w({inst:y})},[m,g,h]),a(function(){return c(y)&&w({inst:y}),m(function(){c(y)&&w({inst:y})})},[m]),l(g),g}function c(m){var h=m.getSnapshot;m=m.value;try{var g=h();return!r(m,g)}catch(_){return!0}}function d(m,h){return h()}var p=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?d:u;return Ou.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Ou}var ku={};/**
|
|
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 Vv;function HZ(){return Vv||(Vv=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=J,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(T){{for(var C=arguments.length,x=new Array(C>1?C-1:0),P=1;P<C;P++)x[P-1]=arguments[P];n("error",T,x)}}function n(T,C,x){{var P=t.ReactDebugCurrentFrame,R=P.getStackAddendum();R!==""&&(C+="%s",x=x.concat([R]));var D=x.map(function(A){return String(A)});D.unshift("Warning: "+C),Function.prototype.apply.call(console[T],console,D)}}function a(T,C){return T===C&&(T!==0||1/T===1/C)||T!==T&&C!==C}var o=typeof Object.is=="function"?Object.is:a,l=e.useState,u=e.useEffect,c=e.useLayoutEffect,d=e.useDebugValue,p=!1,m=!1;function h(T,C,x){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=C();if(!m){var R=C();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:C}}),A=D[0].inst,I=D[1];return c(function(){A.value=P,A.getSnapshot=C,g(A)&&I({inst:A})},[T,P,C]),u(function(){g(A)&&I({inst:A});var N=function(){g(A)&&I({inst:A})};return T(N)},[T]),d(P),P}function g(T){var C=T.getSnapshot,x=T.value;try{var P=C();return!o(x,P)}catch(R){return!0}}function _(T,C,x){return C()}var y=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",w=!y,E=w?_:h,S=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:E;ku.useSyncExternalStore=S,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ku}process.env.NODE_ENV==="production"?Kc.exports=BZ():Kc.exports=HZ();var VZ=Kc.exports;const Y0=VZ.useSyncExternalStore,Uv=Z.createContext(void 0),X0=Z.createContext(!1);function Z0(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Uv),window.ReactQueryClientContext):Uv)}const K0=({context:e}={})=>{const t=Z.useContext(Z0(e,Z.useContext(X0)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},UZ=({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=Z0(r,n);return Z.createElement(X0.Provider,{value:!r&&n},Z.createElement(a.Provider,{value:e},t))},qZ=Z.createContext(!1),GZ=()=>Z.useContext(qZ);function YZ(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const XZ=Z.createContext(YZ()),ZZ=()=>Z.useContext(XZ);function Q0(e,t){return typeof e=="function"?e(...t):!!e}const KZ=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},QZ=e=>{Z.useEffect(()=>{e.clearReset()},[e])},JZ=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&Q0(r,[e.error,n]),eK=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},tK=(e,t)=>e.isLoading&&e.isFetching&&!t,rK=(e,t,r)=>(e==null?void 0:e.suspense)&&tK(t,r),nK=(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 iK(e,t){const r=K0({context:e.context}),n=GZ(),a=ZZ(),o=r.defaultQueryOptions(e);o._optimisticResults=n?"isRestoring":"optimistic",o.onError&&(o.onError=lt.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=lt.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=lt.batchCalls(o.onSettled)),eK(o),KZ(o,a),QZ(a);const[l]=Z.useState(()=>new t(r,o)),u=l.getOptimisticResult(o);if(Y0(Z.useCallback(c=>{const d=n?()=>{}:l.subscribe(lt.batchCalls(c));return l.updateResult(),d},[l,n]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),Z.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),rK(o,u,n))throw nK(o,l,a);if(JZ({result:u,errorResetBoundary:a,useErrorBoundary:o.useErrorBoundary,query:l.getCurrentQuery()}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function aK(e,t,r){const n=Oa(e,t,r);return iK(n,FZ)}exports.Backdrop=Nf;exports.Button=Za;exports.ButtonBase=Qn;exports.CacheProvider=dg;exports.Chart=r0;exports.ChartWidget=yZ;exports.ContextMenu=R0;exports.DEFAULT_PIVOT_TABLE_SIZE=vy;exports.DEFAULT_TABLE_ROWS_PER_PAGE=jG;exports.DrilldownBreadcrumbs=L0;exports.DrilldownWidget=$0;exports.DynamicSizeContainer=io;exports.ErrorBoundary=Hg;exports.ExclamationMarkIcon=Bg;exports.Fade=kf;exports.Global=sd;exports.I18nProvider=Ug;exports.IconButton=ji;exports.LEGACY_DESIGN_TYPES=Sa;exports.LoadingIndicator=js;exports.LoadingOverlay=Ea;exports.Menu=$f;exports.MenuItem=zf;exports.MenuList=If;exports.Modal=Df;exports.NoResultsOverlay=Rd;exports.PAGES_BATCH_SIZE=BG;exports.Paper=_l;exports.Popover=wl;exports.Popper=xo;exports.PropTypes=v;exports.QueryClient=zZ;exports.QueryClientProvider=UZ;exports.RestApi=gy;exports.SisenseContext=Cd;exports.Subscribable=ta;exports.Table=w0;exports.TableWidget=bZ;exports.ThemeContext=xn;exports.ThemeContext$1=Sd;exports.ThemeProvider=uy;exports.Tooltip=bl;exports.WidgetContainer=Af;exports._extends=te;exports._objectWithoutPropertiesLoose=Ee;exports.alpha_1=at;exports.applyDateFormat=gd;exports.asSisenseComponent=Zn;exports.baseRest=Bs;exports.baseUniq=Md;exports.boxWhiskerProcessResult=E3;exports.camelCase=_0;exports.capitalize=De;exports.classNames=Ua;exports.clearExecuteQueryCache=wO;exports.clsx=Oe;exports.composeClasses=ot;exports.convertToThemeSettings=Og;exports.createCommonFiltersOverSelections=dZ;exports.createExecuteQueryCacheKey=Ag;exports.createValueColorOptions=qg;exports.createValueToColorMap=Gg;exports.createValueToColorMultiColumnsMap=tk;exports.css=ld;exports.darken_1=_s;exports.debounce=CZ;exports.defaultDateConfig=vd;exports.elementAcceptingRef=Kn;exports.exactProp=Gd;exports.executeCsvQuery=mO;exports.executePivotQuery=vO;exports.executeQuery=ro;exports.executeQueryWithCache=wd;exports.generateUtilityClass=et;exports.generateUtilityClasses=Ke;exports.getAllowedFilters=rZ;exports.getBaseDateFnsLocale=dd;exports.getDefaultState=G0;exports.getDefaultThemeSettings=Ws;exports.getJaqlQueryPayload=Xv;exports.getLegacyPalette=Dg;exports.getPaletteName=kg;exports.getPivotJaqlQueryPayload=E1;exports.getSelectableWidgetAttributes=Ff;exports.getTableAttributesAndMeasures=cb;exports.getThemeSettingsByOid=Ng;exports.getTranslatedDataOptions=Ty;exports.getWidgetDefaultSize=kd;exports.getWidgetSelections=cZ;exports.isArrayLikeObject=ny;exports.isEqual=Li;exports.isEqualMembersFilters=F0;exports.isEqualWith=hy;exports.isIterateeCall=pg;exports.isThemeOid=ly;exports.keyframes=Ja;exports.lighten_1=Hy;exports.newStyled=Cr;exports.notifyManager=lt;exports.over=o0;exports.ownerDocument=Lt;exports.parseMutationArgs=SZ;exports.processDrilldownSelections=I0;exports.refType=lo;exports.rootShouldForwardProp=co;exports.shallowEqualObjects=ks;exports.shouldSkipSisenseContextWaiting=t0;exports.shouldThrowError=Q0;exports.styled=ke;exports.trackHook=Hq;exports.translatePivotTableDataOptions=H3;exports.translateTableDataOptions=Cy;exports.useControlled=Hd;exports.useEventCallback=Xr;exports.useForkRef=It;exports.useGetApi=yy;exports.useHasChanged=i0;exports.useId=nb;exports.usePrevious=Pd;exports.useQuery=aK;exports.useQueryClient=K0;exports.useSetError=Nd;exports.useSisenseContext=yt;exports.useSyncExternalStore=Y0;exports.useTheme=bo;exports.useThemeContext=zt;exports.useThemeProps=tt;exports.withTracking=Uq;
|