@sisense/sdk-ui 2.16.1 → 2.17.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.
Files changed (60) hide show
  1. package/dist/ai.cjs +54 -54
  2. package/dist/ai.js +779 -741
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +410 -379
  5. package/dist/analytics-composer.cjs +1 -1
  6. package/dist/analytics-composer.js +6 -6
  7. package/dist/{derive-chart-family-d7eaC45K.cjs → derive-chart-family-B_cR1yhw.cjs} +3 -3
  8. package/dist/{derive-chart-family-DLwnWblo.js → derive-chart-family-DkuTQGOE.js} +333 -333
  9. package/dist/{dimensions-BUWtZxix.cjs → dimensions-DI9h9IJH.cjs} +1 -1
  10. package/dist/{dimensions-DvDgZ8RW.js → dimensions-Gma5tFmd.js} +1 -1
  11. package/dist/execute-query-CdhSHTTA.cjs +1 -0
  12. package/dist/{execute-query-CFK2R_1S.js → execute-query-l7jejslh.js} +867 -865
  13. package/dist/index.cjs +970 -246
  14. package/dist/index.js +70584 -18085
  15. package/dist/index.umd.js +1269 -1267
  16. package/dist/packages/sdk-ui/src/ai/get-nlg-insights-from-widget.d.ts +46 -0
  17. package/dist/packages/sdk-ui/src/ai/index.d.ts +1 -0
  18. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/common.d.ts +2 -1
  19. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/filter-processors.d.ts +0 -9
  20. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/types.d.ts +1 -1
  21. package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +2 -2
  22. package/dist/packages/sdk-ui/src/api/rest-api.d.ts +1 -1
  23. package/dist/packages/sdk-ui/src/app/client-application.d.ts +5 -5
  24. package/dist/packages/sdk-ui/src/chart-options-processor/data-points.d.ts +3 -4
  25. package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +1 -2
  26. package/dist/packages/sdk-ui/src/data-source-dimensional-model/hooks/use-get-data-source-dimensions.d.ts +78 -0
  27. package/dist/packages/sdk-ui/src/data-source-dimensional-model/hooks/use-get-data-source-fields.d.ts +23 -0
  28. package/dist/packages/sdk-ui/src/data-source-dimensional-model/index.d.ts +2 -0
  29. package/dist/packages/sdk-ui/src/index.d.ts +1 -1
  30. package/dist/packages/sdk-ui/src/models/widget/widget-model-translator/widget-model-translator.d.ts +4 -1
  31. package/dist/packages/sdk-ui/src/pivot-table/formatters/data-cell-formatters/data-cell-color-formatter.d.ts +2 -1
  32. package/dist/packages/sdk-ui/src/pivot-table/formatters/formatter-utils.d.ts +2 -1
  33. package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-totals-formatter.d.ts +1 -1
  34. package/dist/packages/sdk-ui/src/pivot-table/formatters/types.d.ts +2 -1
  35. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-formatting.d.ts +1 -1
  36. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-get-pivot-table-query.d.ts +1 -1
  37. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-builder.d.ts +1 -1
  38. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-client.d.ts +8 -0
  39. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-data-loading.d.ts +2 -1
  40. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-data-service.d.ts +2 -1
  41. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +1 -1
  42. package/dist/packages/sdk-ui/src/pivot-table/pivot-table.d.ts +32 -2
  43. package/dist/packages/sdk-ui/src/pivot-table/sorting-utils.d.ts +1 -1
  44. package/dist/packages/sdk-ui/src/props.d.ts +11 -0
  45. package/dist/packages/sdk-ui/src/query-execution/use-execute-pivot-query.d.ts +0 -1
  46. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +1 -1
  47. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +2 -2
  48. package/dist/packages/sdk-ui/src/types.d.ts +40 -25
  49. package/dist/packages/sdk-ui/src/widgets/pivot-table-widget.d.ts +19 -1
  50. package/dist/{types-Clbnx4mQ.cjs → types-Hki4GrUY.cjs} +1 -1
  51. package/dist/{types-D1mqt0Mg.js → types-ofTjqFFK.js} +1 -1
  52. package/dist/use-common-filters-Bh4KYWy_.cjs +604 -0
  53. package/dist/use-common-filters-D5yiZCTg.js +56547 -0
  54. package/dist/{widget-composer-Dhl_nmhq.js → widget-composer-By61s921.js} +3 -3
  55. package/dist/{widget-composer-BaOTPn5w.cjs → widget-composer-BzzTf8UH.cjs} +1 -1
  56. package/package.json +8 -7
  57. package/dist/execute-query-CB4XfUng.cjs +0 -1
  58. package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +0 -17
  59. package/dist/use-common-filters-CCeRLdGB.js +0 -103405
  60. package/dist/use-common-filters-DOn2HdBv.cjs +0 -1325
@@ -0,0 +1,604 @@
1
+ "use strict";var l3=Object.defineProperty,u3=Object.defineProperties;var c3=Object.getOwnPropertyDescriptors;var lu=Object.getOwnPropertySymbols;var Uv=Object.prototype.hasOwnProperty,Yv=Object.prototype.propertyIsEnumerable;var cn=Math.pow,Sh=(e,t,r)=>t in e?l3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t||(t={}))Uv.call(t,r)&&Sh(e,r,t[r]);if(lu)for(var r of lu(t))Yv.call(t,r)&&Sh(e,r,t[r]);return e},I=(e,t)=>u3(e,c3(t));var uu=e=>typeof e=="symbol"?e:e+"",xe=(e,t)=>{var r={};for(var n in e)Uv.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&lu)for(var n of lu(e))t.indexOf(n)<0&&Yv.call(e,n)&&(r[n]=e[n]);return r};var Xe=(e,t,r)=>Sh(e,typeof t!="symbol"?t+"":t,r);var er=(e,t,r)=>new Promise((n,i)=>{var a=u=>{try{l(r.next(u))}catch(c){i(c)}},o=u=>{try{l(r.throw(u))}catch(c){i(c)}},l=u=>u.done?n(u.value):Promise.resolve(u.value).then(a,o);l((r=r.apply(e,t)).next())});const j=require("./execute-query-CdhSHTTA.cjs"),y=require("./derive-chart-family-B_cR1yhw.cjs"),k=require("react"),me=require("react/jsx-runtime"),Ar=require("react-dom");function p2(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 Q=p2(k),d3=p2(Ar);function Ns(){return Ns=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},Ns.apply(this,arguments)}function h3(e){let{i18n:t,defaultNS:r,children:n}=e;const i=k.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return k.createElement(y.I18nContext.Provider,{value:i},n)}const f3={ROWS:"rows",COLUMNS:"columns",MEASURES:"measures",SCOPE:"scope"},p3={ASC:"asc",DESC:"desc"},m2={SUB_TOTAL:"subTotal",GRAND_TOTAL:"grandTotal",MEASURE_TOP:"measureTop",MEASURE_BOTTOM:"measureBottom",CORNER:"corner"},m3={COLOR:"color",CONDITION:"condition"},g3={DATETIME:"datetime",TEXT:"text",NUMERIC:"numeric"},v3={MEMBER:"member",VALUE:"value",SUB_TOTAL:"subtotal",GRAND_TOTAL:"grandtotal"},y3={MEMBER:"member",INDEX:"index",TITLE:"title",NAME:"name",AGG:"agg",DIM:"dim"},b3={table:{columns:[],rows:[]}};function ui(e){return e===void 0||typeof e=="string"||"title"in e&&"type"in e}const mr={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 Bm(e){return[j.customFormula(mr.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),j.customFormula(mr.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),j.customFormula(mr.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function _3(e){return[...Bm(e),j.customFormula(mr.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),j.customFormula(mr.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),j.customFormula(mr.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function w3(e){return[...Bm(e),j.customFormula(mr.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),j.customFormula(mr.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function x3(e){return[...Bm(e),j.customFormula(mr.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),j.customFormula(mr.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),j.customFormula(mr.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const C3=j.withComposeCodeForAnalytics(e=>{const t=j.cloneDeep(e),r=j.customFormula(mr.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),n=j.customFormula(mr.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_IQR([Attr]), all([Attr]))",{Attr:e});return t.name=`${t.name} (Outliers)`,t.jaql=i=>{const a=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return i?a:{jaql:a}},t},"boxWhiskerIqrOutliers"),T3=j.withComposeCodeForAnalytics(e=>{const t=j.cloneDeep(e),r=j.customFormula(mr.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),n=j.customFormula(mr.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_STDEVP([Attr]), all([Attr]))",{Attr:e});return t.jaql=i=>{const a=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return i?a:{jaql:a}},t},"boxWhiskerStdDevOutliers"),Hm="#F2F2F2",Wm=4,jm="#D5D5D5",Vm=1,Gm="#D5D5D5",Um=1,Ym="#DADADA",qm=1,Xm="#DADADA",Zm=1,Km=15,Qm="#1FAFF3",g2="#1FCCF3",M3={chart:{backgroundColor:"#FFFFFF",textColor:"#000000",secondaryTextColor:"#E4E4E4",animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#5B6372",secondaryTextColor:"#9EA2AB",hyperlinkColor:Qm,hyperlinkHoverColor:g2},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#ffffff",brandColor:"#ffcb05",primaryButtonTextColor:"#3a4356",primaryButtonHoverColor:"#f2b900",popover:{cornerRadius:0,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",header:{backgroundColor:"#F4F4F8",textColor:"#5B6372"},footer:{backgroundColor:"#FFFFFF",textColor:"#5B6372"},content:{backgroundColor:"#FFFFFF",textColor:"#5B6372",clickableList:{item:{textColor:"#5B6372",backgroundColor:"#FFFFFF",hover:{textColor:"#000000",backgroundColor:"#F4F4F8"}}}},input:{backgroundColor:"#F4F4F8",textColor:"#5B6372",borderColor:{default:"transparent",focus:"#5B6372",hover:"transparent"},cornerRadius:4,dropdownList:{backgroundColor:"#FFFFFF",textColor:"#5B6372",borderColor:"#9EA2AB",cornerRadius:4,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",item:{backgroundColor:{default:"#FFFFFF",focus:"#FFFFFF",hover:"#F4F4F8"},textColor:"#5B6372"}},datepicker:{backgroundColor:"#FFFFFF",textColor:"#5B6372",cornerRadius:4,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",item:{backgroundColor:{default:"#FFFFFF",focus:"#FFFFFF",hover:"#F4F4F8"},textColor:{default:"#5B6372",focus:"#5B6372",hover:"#5B6372"}}}}},buttons:{primary:{backgroundColor:{default:"#FFCB05",focus:"#F2B900",hover:"#F2B900"},textColor:"#3A4356"},cancel:{backgroundColor:{default:"#EDEEF1",focus:"#D0D3DB",hover:"#D0D3DB"},textColor:"#3A4356"}}},widget:{spaceAround:"None",cornerRadius:"None",shadow:"None",border:!1,borderColor:"#9EA2AB",header:{titleTextColor:"#5B6372",titleFontSize:Km,titleAlignment:"Left",dividerLine:!1,dividerLineColor:"#5B6372",backgroundColor:"#FFFFFF"}},dashboard:{backgroundColor:"#FFFFFF",dividerLineWidth:Wm,dividerLineColor:Hm,borderColor:jm,borderWidth:Vm,toolbar:{primaryTextColor:"#5B6372",secondaryTextColor:"#9EA2AB",backgroundColor:"#FFFFFF",dividerLineColor:Gm,dividerLineWidth:Um}},filter:{panel:{titleColor:"#5B6372",backgroundColor:"#F6F6F6",dividerLineColor:Ym,dividerLineWidth:qm,borderColor:Xm,borderWidth:Zm}},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)"}}},S3={chart:{backgroundColor:"#313138",textColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",hyperlinkColor:Qm,hyperlinkHoverColor:g2},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#16161C",brandColor:"#FFCB05",primaryButtonTextColor:"#3A4356",primaryButtonHoverColor:"#F2B900",popover:{cornerRadius:0,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",header:{backgroundColor:"#313138",textColor:"#FFFFFF"},footer:{backgroundColor:"#16161C",textColor:"#FFFFFF"},content:{backgroundColor:"#16161C",textColor:"#FFFFFF",clickableList:{item:{textColor:"#FFFFFF",backgroundColor:"#16161C",hover:{textColor:"#FFFFFF",backgroundColor:"#3C3C42"}}}},input:{cornerRadius:4,backgroundColor:"#3C3C42",textColor:"#FFFFFF",borderColor:{default:"transparent",focus:"#FFFFFF",hover:"transparent"},dropdownList:{backgroundColor:"#16161C",textColor:"#FFFFFF",borderColor:"#9EA2AB",cornerRadius:4,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",item:{backgroundColor:{default:"#16161C",focus:"#16161C",hover:"#3C3C42"},textColor:"#FFFFFF"}},datepicker:{backgroundColor:"#FFFFFF",textColor:"#5B6372",cornerRadius:4,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",item:{backgroundColor:{default:"#FFFFFF",focus:"#FFFFFF",hover:"#F4F4F8"},textColor:{default:"#5B6372",focus:"#5B6372",hover:"#5B6372"}}}}},buttons:{primary:{backgroundColor:{default:"#FFCB05",focus:"#F2B900",hover:"#F2B900"},textColor:"#3A4356"},cancel:{backgroundColor:{default:"#EDEEF1",focus:"#D0D3DB",hover:"#D0D3DB"},textColor:"#3A4356"}}},widget:{spaceAround:"None",cornerRadius:"None",shadow:"None",border:!1,borderColor:"#C5C8CF",header:{titleTextColor:"#FFFFFF",titleAlignment:"Left",titleFontSize:Km,dividerLine:!1,dividerLineColor:"#FFFFFF",backgroundColor:"#313138"}},dashboard:{backgroundColor:"#313138",dividerLineWidth:Wm,dividerLineColor:Hm,borderColor:jm,borderWidth:Vm,toolbar:{primaryTextColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",backgroundColor:"#313138",dividerLineColor:Gm,dividerLineWidth:Um}},filter:{panel:{titleColor:"#FFFFFF",backgroundColor:"#313138",dividerLineColor:Ym,dividerLineWidth:qm,borderColor:Xm,borderWidth:Zm}},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)"}}},Qu=(e=!1)=>e?j.cloneDeep(S3):j.cloneDeep(M3);function Ju(e){"@babel/helpers - typeof";return Ju=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},Ju(e)}function Lr(e){y.requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ju(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 E3(e,t){y.requiredArgs(2,arguments);var r=Lr(e),n=y.toInteger(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),a=new Date(r.getTime());a.setMonth(r.getMonth()+n+1,0);var o=a.getDate();return i>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function v2(e,t){y.requiredArgs(2,arguments);var r=y.toInteger(t);return E3(e,r*12)}var P3={};function Jm(){return P3}function Sf(e,t){var r,n,i,a,o,l,u,c;y.requiredArgs(1,arguments);var h=Jm(),f=y.toInteger((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:h.weekStartsOn)!==null&&n!==void 0?n:(u=h.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Lr(e),g=p.getUTCDay(),b=(g<f?7:0)+g-f;return p.setUTCDate(p.getUTCDate()-b),p.setUTCHours(0,0,0,0),p}var A3={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"}},y2=function(t,r,n){var i,a=A3[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function ze(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 R3={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},O3={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},k3={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},D3={date:ze({formats:R3,defaultWidth:"full"}),time:ze({formats:O3,defaultWidth:"full"}),dateTime:ze({formats:k3,defaultWidth:"full"})},N3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},b2=function(t,r,n,i){return N3[t]};function Te(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var l=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[l]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var L3={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},I3={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},$3={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"]},F3={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"]},z3={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"}},B3={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"}},H3=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},_2={ordinalNumber:H3,era:Te({values:L3,defaultWidth:"wide"}),quarter:Te({values:I3,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:$3,defaultWidth:"wide"}),day:Te({values:F3,defaultWidth:"wide"}),dayPeriod:Te({values:z3,defaultWidth:"wide",formattingValues:B3,defaultFormattingWidth:"wide"})};function Me(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?j3(l,function(f){return f.test(o)}):W3(l,function(f){return f.test(o)}),c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;var h=t.slice(o.length);return{value:c,rest:h}}}function W3(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function j3(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Ir(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 i=n[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;var l=t.slice(i.length);return{value:o,rest:l}}}var V3=/^(\d+)(th|st|nd|rd)?/i,G3=/\d+/i,U3={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},Y3={any:[/^b/i,/^(a|c)/i]},q3={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},X3={any:[/1/i,/2/i,/3/i,/4/i]},Z3={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},K3={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]},Q3={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},J3={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]},eP={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},tP={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}},w2={ordinalNumber:Ir({matchPattern:V3,parsePattern:G3,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:U3,defaultMatchWidth:"wide",parsePatterns:Y3,defaultParseWidth:"any"}),quarter:Me({matchPatterns:q3,defaultMatchWidth:"wide",parsePatterns:X3,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:Z3,defaultMatchWidth:"wide",parsePatterns:K3,defaultParseWidth:"any"}),day:Me({matchPatterns:Q3,defaultMatchWidth:"wide",parsePatterns:J3,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:eP,defaultMatchWidth:"any",parsePatterns:tP,defaultParseWidth:"any"})},Ef={code:"en-US",formatDistance:y2,formatLong:D3,formatRelative:b2,localize:_2,match:w2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function rP(e,t){var r,n,i,a,o,l,u,c;y.requiredArgs(1,arguments);var h=Jm(),f=y.toInteger((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:h.weekStartsOn)!==null&&n!==void 0?n:(u=h.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Lr(e),g=p.getDay(),b=(g<f?7:0)+g-f;return p.setDate(p.getDate()-b),p.setHours(0,0,0,0),p}function nP(e){y.requiredArgs(1,arguments);var t=Lr(e);return t.setHours(0,0,0,0),t}function iP(e){y.requiredArgs(1,arguments);var t=Lr(e),r=t.getMonth(),n=r-r%3;return t.setMonth(n,1),t.setHours(0,0,0,0),t}function aP(e){y.requiredArgs(1,arguments);var t=Lr(e);return t.setDate(1),t.setHours(0,0,0,0),t}function oP(e){y.requiredArgs(1,arguments);var t=Lr(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function sP(e){y.requiredArgs(1,arguments);var t=Lr(e),r=t.getFullYear(),n=t.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function lP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pf(e,t){return Pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pf(e,t)}function uP(e,t){y.requiredArgs(2,arguments);var r=Lr(e),n=y.toInteger(t),i=r.getFullYear(),a=r.getDate(),o=new Date(0);o.setFullYear(i,n,15),o.setHours(0,0,0,0);var l=sP(o);return r.setMonth(n,Math.min(a,l)),r}function qv(e,t){y.requiredArgs(2,arguments);var r=Lr(e),n=y.toInteger(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function x2(e,t){y.requiredArgs(2,arguments);var r=y.toInteger(t);return v2(e,-r)}function Gi(e,t,r){y.requiredArgs(2,arguments);var n=Sf(e,r),i=Sf(t,r);return n.getTime()===i.getTime()}var Xv={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"}}},cP=function(t,r,n){var i,a=n!=null&&n.addSuffix?Xv[t].withPreposition:Xv[t].standalone;return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:"vor "+i:i},dP={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},hP={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fP={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},pP={date:ze({formats:dP,defaultWidth:"full"}),time:ze({formats:hP,defaultWidth:"full"}),dateTime:ze({formats:fP,defaultWidth:"full"})},mP={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},gP=function(t,r,n,i){return mP[t]},vP={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},yP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},Af={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"]},bP={narrow:Af.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Af.wide},_P={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"]},wP={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"}},xP={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"}},CP=function(t){var r=Number(t);return r+"."},TP={ordinalNumber:CP,era:Te({values:vP,defaultWidth:"wide"}),quarter:Te({values:yP,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:Af,formattingValues:bP,defaultWidth:"wide"}),day:Te({values:_P,defaultWidth:"wide"}),dayPeriod:Te({values:wP,defaultWidth:"wide",formattingValues:xP,defaultFormattingWidth:"wide"})},MP=/^(\d+)(\.)?/i,SP=/\d+/i,EP={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},PP={any:[/^v/i,/^n/i]},AP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},RP={any:[/1/i,/2/i,/3/i,/4/i]},OP={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},kP={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]},DP={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},NP={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},LP={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},IP={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}},$P={ordinalNumber:Ir({matchPattern:MP,parsePattern:SP,valueCallback:function(t){return parseInt(t)}}),era:Me({matchPatterns:EP,defaultMatchWidth:"wide",parsePatterns:PP,defaultParseWidth:"any"}),quarter:Me({matchPatterns:AP,defaultMatchWidth:"wide",parsePatterns:RP,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:OP,defaultMatchWidth:"wide",parsePatterns:kP,defaultParseWidth:"any"}),day:Me({matchPatterns:DP,defaultMatchWidth:"wide",parsePatterns:NP,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:LP,defaultMatchWidth:"wide",parsePatterns:IP,defaultParseWidth:"any"})},FP={code:"de",formatDistance:cP,formatLong:pP,formatRelative:gP,localize:TP,match:$P,options:{weekStartsOn:1,firstWeekContainsDate:4}},zP={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},BP={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},HP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},WP={date:ze({formats:zP,defaultWidth:"full"}),time:ze({formats:BP,defaultWidth:"full"}),dateTime:ze({formats:HP,defaultWidth:"full"})},jP={code:"en-GB",formatDistance:y2,formatLong:WP,formatRelative:b2,localize:_2,match:w2,options:{weekStartsOn:1,firstWeekContainsDate:4}},VP={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"}},GP=function(t,r,n){var i,a=VP[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+i:"hace "+i:i},UP={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},YP={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},qP={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},XP={date:ze({formats:UP,defaultWidth:"full"}),time:ze({formats:YP,defaultWidth:"full"}),dateTime:ze({formats:qP,defaultWidth:"full"})},ZP={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"},KP={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"},QP=function(t,r,n,i){return r.getUTCHours()!==1?KP[t]:ZP[t]},JP={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},eA={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},tA={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"]},rA={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"]},nA={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"}},iA={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"}},aA=function(t,r){var n=Number(t);return n+"º"},oA={ordinalNumber:aA,era:Te({values:JP,defaultWidth:"wide"}),quarter:Te({values:eA,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Te({values:tA,defaultWidth:"wide"}),day:Te({values:rA,defaultWidth:"wide"}),dayPeriod:Te({values:nA,defaultWidth:"wide",formattingValues:iA,defaultFormattingWidth:"wide"})},sA=/^(\d+)(º)?/i,lA=/\d+/i,uA={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},cA={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]},dA={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},hA={any:[/1/i,/2/i,/3/i,/4/i]},fA={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},pA={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]},mA={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},gA={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]},vA={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},yA={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}},bA={ordinalNumber:Ir({matchPattern:sA,parsePattern:lA,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:uA,defaultMatchWidth:"wide",parsePatterns:cA,defaultParseWidth:"any"}),quarter:Me({matchPatterns:dA,defaultMatchWidth:"wide",parsePatterns:hA,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:fA,defaultMatchWidth:"wide",parsePatterns:pA,defaultParseWidth:"any"}),day:Me({matchPatterns:mA,defaultMatchWidth:"wide",parsePatterns:gA,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:vA,defaultMatchWidth:"any",parsePatterns:yA,defaultParseWidth:"any"})},_A={code:"es",formatDistance:GP,formatLong:XP,formatRelative:QP,localize:oA,match:bA,options:{weekStartsOn:1,firstWeekContainsDate:1}},wA={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"}},xA=function(t,r,n){var i,a=wA[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+i:"il y a "+i:i},CA={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},TA={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},MA={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},SA={date:ze({formats:CA,defaultWidth:"full"}),time:ze({formats:TA,defaultWidth:"full"}),dateTime:ze({formats:MA,defaultWidth:"full"})},EA={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},PA=function(t,r,n,i){return EA[t]},AA={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},RA={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"]},OA={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"]},kA={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"]},DA={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"}},NA=function(t,r){var n=Number(t),i=r==null?void 0:r.unit;if(n===0)return"0";var a=["year","week","hour","minute","second"],o;return n===1?o=i&&a.includes(i)?"ère":"er":o="ème",n+o},LA={ordinalNumber:NA,era:Te({values:AA,defaultWidth:"wide"}),quarter:Te({values:RA,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:OA,defaultWidth:"wide"}),day:Te({values:kA,defaultWidth:"wide"}),dayPeriod:Te({values:DA,defaultWidth:"wide"})},IA=/^(\d+)(ième|ère|ème|er|e)?/i,$A=/\d+/i,FA={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},zA={any:[/^av/i,/^ap/i]},BA={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},HA={any:[/1/i,/2/i,/3/i,/4/i]},WA={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},jA={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]},VA={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},GA={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]},UA={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},YA={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}},qA={ordinalNumber:Ir({matchPattern:IA,parsePattern:$A,valueCallback:function(t){return parseInt(t)}}),era:Me({matchPatterns:FA,defaultMatchWidth:"wide",parsePatterns:zA,defaultParseWidth:"any"}),quarter:Me({matchPatterns:BA,defaultMatchWidth:"wide",parsePatterns:HA,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:WA,defaultMatchWidth:"wide",parsePatterns:jA,defaultParseWidth:"any"}),day:Me({matchPatterns:VA,defaultMatchWidth:"wide",parsePatterns:GA,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:UA,defaultMatchWidth:"any",parsePatterns:YA,defaultParseWidth:"any"})},XA={code:"fr",formatDistance:xA,formatLong:SA,formatRelative:PA,localize:LA,match:qA,options:{weekStartsOn:1,firstWeekContainsDate:4}},ZA={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"}},KA=function(t,r,n){var i,a=ZA[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+i:i+" fa":i},QA={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},JA={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},eR={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},tR={date:ze({formats:QA,defaultWidth:"full"}),time:ze({formats:JA,defaultWidth:"full"}),dateTime:ze({formats:eR,defaultWidth:"full"})},e0=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function rR(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+e0[e]+" scorso alle' p"}}function Zv(e){return"'"+e0[e]+" alle' p"}function nR(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+e0[e]+" prossimo alle' p"}}var iR={lastWeek:function(t,r,n){var i=t.getUTCDay();return Gi(t,r,n)?Zv(i):rR(i)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,r,n){var i=t.getUTCDay();return Gi(t,r,n)?Zv(i):nR(i)},other:"P"},aR=function(t,r,n,i){var a=iR[t];return typeof a=="function"?a(r,n,i):a},oR={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},sR={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},lR={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"]},uR={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"]},cR={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"}},dR={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"}},hR=function(t,r){var n=Number(t);return String(n)},fR={ordinalNumber:hR,era:Te({values:oR,defaultWidth:"wide"}),quarter:Te({values:sR,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:lR,defaultWidth:"wide"}),day:Te({values:uR,defaultWidth:"wide"}),dayPeriod:Te({values:cR,defaultWidth:"wide",formattingValues:dR,defaultFormattingWidth:"wide"})},pR=/^(\d+)(º)?/i,mR=/\d+/i,gR={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},vR={any:[/^a/i,/^(d|e)/i]},yR={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},bR={any:[/1/i,/2/i,/3/i,/4/i]},_R={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},wR={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]},xR={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},CR={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]},TR={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},MR={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}},SR={ordinalNumber:Ir({matchPattern:pR,parsePattern:mR,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:gR,defaultMatchWidth:"wide",parsePatterns:vR,defaultParseWidth:"any"}),quarter:Me({matchPatterns:yR,defaultMatchWidth:"wide",parsePatterns:bR,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:_R,defaultMatchWidth:"wide",parsePatterns:wR,defaultParseWidth:"any"}),day:Me({matchPatterns:xR,defaultMatchWidth:"wide",parsePatterns:CR,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:TR,defaultMatchWidth:"any",parsePatterns:MR,defaultParseWidth:"any"})},ER={code:"it",formatDistance:KA,formatLong:tR,formatRelative:aR,localize:fR,match:SR,options:{weekStartsOn:1,firstWeekContainsDate:4}},PR={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}}年近く"}},AR=function(t,r,n){n=n||{};var i,a=PR[t];return typeof a=="string"?i=a:r===1?n.addSuffix&&a.oneWithSuffix?i=a.oneWithSuffix:i=a.one:n.addSuffix&&a.otherWithSuffix?i=a.otherWithSuffix.replace("{{count}}",String(r)):i=a.other.replace("{{count}}",String(r)),n.addSuffix?n.comparison&&n.comparison>0?i+"後":i+"前":i},RR={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},OR={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},kR={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},DR={date:ze({formats:RR,defaultWidth:"full"}),time:ze({formats:OR,defaultWidth:"full"}),dateTime:ze({formats:kR,defaultWidth:"full"})},NR={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},LR=function(t,r,n,i){return NR[t]},IR={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},$R={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},FR={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月"]},zR={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},BR={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:"深夜"}},HR={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:"深夜"}},WR=function(t,r){var n=Number(t),i=String(r==null?void 0:r.unit);switch(i){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)}},jR={ordinalNumber:WR,era:Te({values:IR,defaultWidth:"wide"}),quarter:Te({values:$R,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Te({values:FR,defaultWidth:"wide"}),day:Te({values:zR,defaultWidth:"wide"}),dayPeriod:Te({values:BR,defaultWidth:"wide",formattingValues:HR,defaultFormattingWidth:"wide"})},VR=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,GR=/\d+/i,UR={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},YR={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},qR={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},XR={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},ZR={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},KR={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},QR={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},JR={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},eO={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},tO={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},rO={ordinalNumber:Ir({matchPattern:VR,parsePattern:GR,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:UR,defaultMatchWidth:"wide",parsePatterns:YR,defaultParseWidth:"any"}),quarter:Me({matchPatterns:qR,defaultMatchWidth:"wide",parsePatterns:XR,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:ZR,defaultMatchWidth:"wide",parsePatterns:KR,defaultParseWidth:"any"}),day:Me({matchPatterns:QR,defaultMatchWidth:"wide",parsePatterns:JR,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:eO,defaultMatchWidth:"any",parsePatterns:tO,defaultParseWidth:"any"})},nO={code:"ja",formatDistance:AR,formatLong:DR,formatRelative:LR,localize:jR,match:rO,options:{weekStartsOn:0,firstWeekContainsDate:1}},iO={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}}년"}},aO=function(t,r,n){var i,a=iO[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+" 후":i+" 전":i},oO={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},sO={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},lO={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},uO={date:ze({formats:oO,defaultWidth:"full"}),time:ze({formats:sO,defaultWidth:"full"}),dateTime:ze({formats:lO,defaultWidth:"full"})},cO={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},dO=function(t,r,n,i){return cO[t]},hO={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},fO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},pO={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월"]},mO={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},gO={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:"밤"}},vO={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:"밤"}},yO=function(t,r){var n=Number(t),i=String(r==null?void 0:r.unit);switch(i){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},bO={ordinalNumber:yO,era:Te({values:hO,defaultWidth:"wide"}),quarter:Te({values:fO,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:pO,defaultWidth:"wide"}),day:Te({values:mO,defaultWidth:"wide"}),dayPeriod:Te({values:gO,defaultWidth:"wide",formattingValues:vO,defaultFormattingWidth:"wide"})},_O=/^(\d+)(일|번째)?/i,wO=/\d+/i,xO={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},CO={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},TO={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},MO={any:[/1/i,/2/i,/3/i,/4/i]},SO={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},EO={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},PO={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},AO={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},RO={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},OO={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},kO={ordinalNumber:Ir({matchPattern:_O,parsePattern:wO,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:xO,defaultMatchWidth:"wide",parsePatterns:CO,defaultParseWidth:"any"}),quarter:Me({matchPatterns:TO,defaultMatchWidth:"wide",parsePatterns:MO,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:SO,defaultMatchWidth:"wide",parsePatterns:EO,defaultParseWidth:"any"}),day:Me({matchPatterns:PO,defaultMatchWidth:"wide",parsePatterns:AO,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:RO,defaultMatchWidth:"any",parsePatterns:OO,defaultParseWidth:"any"})},DO={code:"ko",formatDistance:aO,formatLong:uO,formatRelative:dO,localize:bO,match:kO,options:{weekStartsOn:0,firstWeekContainsDate:1}},NO={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"}},LO=function(t,r,n){var i,a=NO[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+i:i+" geleden":i},IO={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},$O={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},FO={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},zO={date:ze({formats:IO,defaultWidth:"full"}),time:ze({formats:$O,defaultWidth:"full"}),dateTime:ze({formats:FO,defaultWidth:"full"})},BO={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},HO=function(t,r,n,i){return BO[t]},WO={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},jO={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},VO={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"]},GO={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"]},UO={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"}},YO=function(t,r){var n=Number(t);return n+"e"},qO={ordinalNumber:YO,era:Te({values:WO,defaultWidth:"wide"}),quarter:Te({values:jO,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:VO,defaultWidth:"wide"}),day:Te({values:GO,defaultWidth:"wide"}),dayPeriod:Te({values:UO,defaultWidth:"wide"})},XO=/^(\d+)e?/i,ZO=/\d+/i,KO={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},QO={any:[/^v/,/^n/]},JO={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},ek={any:[/1/i,/2/i,/3/i,/4/i]},tk={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},rk={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]},nk={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},ik={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]},ak={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},ok={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}},sk={ordinalNumber:Ir({matchPattern:XO,parsePattern:ZO,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:KO,defaultMatchWidth:"wide",parsePatterns:QO,defaultParseWidth:"any"}),quarter:Me({matchPatterns:JO,defaultMatchWidth:"wide",parsePatterns:ek,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:tk,defaultMatchWidth:"wide",parsePatterns:rk,defaultParseWidth:"any"}),day:Me({matchPatterns:nk,defaultMatchWidth:"wide",parsePatterns:ik,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:ak,defaultMatchWidth:"any",parsePatterns:ok,defaultParseWidth:"any"})},lk={code:"nl",formatDistance:LO,formatLong:zO,formatRelative:HO,localize:qO,match:sk,options:{weekStartsOn:1,firstWeekContainsDate:4}},uk={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"}},ck=function(t,r,n){var i,a=uk[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"daqui a "+i:"há "+i:i},dk={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},hk={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fk={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pk={date:ze({formats:dk,defaultWidth:"full"}),time:ze({formats:hk,defaultWidth:"full"}),dateTime:ze({formats:fk,defaultWidth:"full"})},mk={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"},gk=function(t,r,n,i){var a=mk[t];return typeof a=="function"?a(r):a},vk={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},yk={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},bk={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"]},_k={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"]},wk={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"}},xk={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"}},Ck=function(t,r){var n=Number(t);return n+"º"},Tk={ordinalNumber:Ck,era:Te({values:vk,defaultWidth:"wide"}),quarter:Te({values:yk,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:bk,defaultWidth:"wide"}),day:Te({values:_k,defaultWidth:"wide"}),dayPeriod:Te({values:wk,defaultWidth:"wide",formattingValues:xk,defaultFormattingWidth:"wide"})},Mk=/^(\d+)(º|ª)?/i,Sk=/\d+/i,Ek={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},Pk={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},Ak={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},Rk={any:[/1/i,/2/i,/3/i,/4/i]},Ok={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},kk={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]},Dk={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},Nk={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]},Lk={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},Ik={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}},$k={ordinalNumber:Ir({matchPattern:Mk,parsePattern:Sk,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:Ek,defaultMatchWidth:"wide",parsePatterns:Pk,defaultParseWidth:"any"}),quarter:Me({matchPatterns:Ak,defaultMatchWidth:"wide",parsePatterns:Rk,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:Ok,defaultMatchWidth:"wide",parsePatterns:kk,defaultParseWidth:"any"}),day:Me({matchPatterns:Dk,defaultMatchWidth:"wide",parsePatterns:Nk,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:Lk,defaultMatchWidth:"any",parsePatterns:Ik,defaultParseWidth:"any"})},Fk={code:"pt",formatDistance:ck,formatLong:pk,formatRelative:gk,localize:Tk,match:$k,options:{weekStartsOn:1,firstWeekContainsDate:4}};function Yo(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 lr(e){return function(t,r){return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?e.future?Yo(e.future,t):"через "+Yo(e.regular,t):e.past?Yo(e.past,t):Yo(e.regular,t)+" назад":Yo(e.regular,t)}}var zk={lessThanXSeconds:lr({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:lr({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:lr({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:lr({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:lr({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:lr({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:lr({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:lr({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:lr({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:lr({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:lr({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:lr({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:lr({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:lr({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:lr({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},Bk=function(t,r,n){return zk[t](r,n)},Hk={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},Wk={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},jk={any:"{{date}}, {{time}}"},Vk={date:ze({formats:Hk,defaultWidth:"full"}),time:ze({formats:Wk,defaultWidth:"full"}),dateTime:ze({formats:jk,defaultWidth:"any"})},t0=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function Gk(e){var t=t0[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 Kv(e){var t=t0[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function Uk(e){var t=t0[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 Yk={lastWeek:function(t,r,n){var i=t.getUTCDay();return Gi(t,r,n)?Kv(i):Gk(i)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,r,n){var i=t.getUTCDay();return Gi(t,r,n)?Kv(i):Uk(i)},other:"P"},qk=function(t,r,n,i){var a=Yk[t];return typeof a=="function"?a(r,n,i):a},Xk={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},Zk={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},Kk={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},Qk={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},Jk={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},eD={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:"ночь"}},tD={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:"ночи"}},rD=function(t,r){var n=Number(t),i=r==null?void 0:r.unit,a;return i==="date"?a="-е":i==="week"||i==="minute"||i==="second"?a="-я":a="-й",n+a},nD={ordinalNumber:rD,era:Te({values:Xk,defaultWidth:"wide"}),quarter:Te({values:Zk,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:Kk,defaultWidth:"wide",formattingValues:Qk,defaultFormattingWidth:"wide"}),day:Te({values:Jk,defaultWidth:"wide"}),dayPeriod:Te({values:eD,defaultWidth:"any",formattingValues:tD,defaultFormattingWidth:"wide"})},iD=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,aD=/\d+/i,oD={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},sD={any:[/^д/i,/^н/i]},lD={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},uD={any:[/1/i,/2/i,/3/i,/4/i]},cD={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},dD={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]},hD={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},fD={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},pD={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},mD={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},gD={ordinalNumber:Ir({matchPattern:iD,parsePattern:aD,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:oD,defaultMatchWidth:"wide",parsePatterns:sD,defaultParseWidth:"any"}),quarter:Me({matchPatterns:lD,defaultMatchWidth:"wide",parsePatterns:uD,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:cD,defaultMatchWidth:"wide",parsePatterns:dD,defaultParseWidth:"any"}),day:Me({matchPatterns:hD,defaultMatchWidth:"wide",parsePatterns:fD,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:pD,defaultMatchWidth:"wide",parsePatterns:mD,defaultParseWidth:"any"})},vD={code:"ru",formatDistance:Bk,formatLong:Vk,formatRelative:qk,localize:nD,match:gD,options:{weekStartsOn:1,firstWeekContainsDate:1}},yD={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"}},bD=function(t,r,n){var i,a=yD[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+" sonra":i+" önce":i},_D={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},wD={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},xD={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},CD={date:ze({formats:_D,defaultWidth:"full"}),time:ze({formats:wD,defaultWidth:"full"}),dateTime:ze({formats:xD,defaultWidth:"full"})},TD={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"},MD=function(t,r,n,i){return TD[t]},SD={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},ED={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},PD={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"]},AD={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"]},RD={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"}},OD={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"}},kD=function(t,r){var n=Number(t);return n+"."},DD={ordinalNumber:kD,era:Te({values:SD,defaultWidth:"wide"}),quarter:Te({values:ED,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Te({values:PD,defaultWidth:"wide"}),day:Te({values:AD,defaultWidth:"wide"}),dayPeriod:Te({values:RD,defaultWidth:"wide",formattingValues:OD,defaultFormattingWidth:"wide"})},ND=/^(\d+)(\.)?/i,LD=/\d+/i,ID={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},$D={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},FD={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},zD={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]},BD={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},HD={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]},WD={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},jD={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]},VD={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},GD={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}},UD={ordinalNumber:Ir({matchPattern:ND,parsePattern:LD,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:ID,defaultMatchWidth:"wide",parsePatterns:$D,defaultParseWidth:"any"}),quarter:Me({matchPatterns:FD,defaultMatchWidth:"wide",parsePatterns:zD,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:BD,defaultMatchWidth:"wide",parsePatterns:HD,defaultParseWidth:"any"}),day:Me({matchPatterns:WD,defaultMatchWidth:"wide",parsePatterns:jD,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:VD,defaultMatchWidth:"any",parsePatterns:GD,defaultParseWidth:"any"})},YD={code:"tr",formatDistance:bD,formatLong:CD,formatRelative:MD,localize:DD,match:UD,options:{weekStartsOn:1,firstWeekContainsDate:1}};function qo(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 ur(e){return function(t,r){return r&&r.addSuffix?r.comparison&&r.comparison>0?e.future?qo(e.future,t):"за "+qo(e.regular,t):e.past?qo(e.past,t):qo(e.regular,t)+" тому":qo(e.regular,t)}}var qD=function(t,r){return r&&r.addSuffix?r.comparison&&r.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини"},XD={lessThanXSeconds:ur({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:ur({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:qD,lessThanXMinutes:ur({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:ur({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:ur({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:ur({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:ur({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:ur({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:ur({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:ur({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:ur({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:ur({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:ur({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:ur({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:ur({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},ZD=function(t,r,n){return n=n||{},XD[t](r,n)},KD={full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},QD={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},JD={full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},eN={date:ze({formats:KD,defaultWidth:"full"}),time:ze({formats:QD,defaultWidth:"full"}),dateTime:ze({formats:JD,defaultWidth:"full"})},r0=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function tN(e){var t=r0[e];switch(e){case 0:case 3:case 5:case 6:return"'у минулу "+t+" о' p";case 1:case 2:case 4:return"'у минулий "+t+" о' p"}}function C2(e){var t=r0[e];return"'у "+t+" о' p"}function rN(e){var t=r0[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступну "+t+" о' p";case 1:case 2:case 4:return"'у наступний "+t+" о' p"}}var nN=function(t,r,n){var i=Lr(t),a=i.getUTCDay();return Gi(i,r,n)?C2(a):tN(a)},iN=function(t,r,n){var i=Lr(t),a=i.getUTCDay();return Gi(i,r,n)?C2(a):rN(a)},aN={lastWeek:nN,yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:iN,other:"P"},oN=function(t,r,n,i){var a=aN[t];return typeof a=="function"?a(r,n,i):a},sN={narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},lN={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},uN={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},cN={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},dN={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},hN={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:"ніч"}},fN={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:"ночі"}},pN=function(t,r){var n=String(r==null?void 0:r.unit),i=Number(t),a;return n==="date"?i===3||i===23?a="-є":a="-е":n==="minute"||n==="second"||n==="hour"?a="-а":a="-й",i+a},mN={ordinalNumber:pN,era:Te({values:sN,defaultWidth:"wide"}),quarter:Te({values:lN,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:uN,defaultWidth:"wide",formattingValues:cN,defaultFormattingWidth:"wide"}),day:Te({values:dN,defaultWidth:"wide"}),dayPeriod:Te({values:hN,defaultWidth:"any",formattingValues:fN,defaultFormattingWidth:"wide"})},gN=/^(\d+)(-?(е|й|є|а|я))?/i,vN=/\d+/i,yN={narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},bN={any:[/^д/i,/^н/i]},_N={narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},wN={any:[/1/i,/2/i,/3/i,/4/i]},xN={narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},CN={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]},TN={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},MN={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},SN={narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},EN={any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},PN={ordinalNumber:Ir({matchPattern:gN,parsePattern:vN,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:yN,defaultMatchWidth:"wide",parsePatterns:bN,defaultParseWidth:"any"}),quarter:Me({matchPatterns:_N,defaultMatchWidth:"wide",parsePatterns:wN,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:xN,defaultMatchWidth:"wide",parsePatterns:CN,defaultParseWidth:"any"}),day:Me({matchPatterns:TN,defaultMatchWidth:"wide",parsePatterns:MN,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:SN,defaultMatchWidth:"wide",parsePatterns:EN,defaultParseWidth:"any"})},AN={code:"uk",formatDistance:ZD,formatLong:eN,formatRelative:oN,localize:mN,match:PN,options:{weekStartsOn:1,firstWeekContainsDate:1}},RN={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}} 年"}},ON=function(t,r,n){var i,a=RN[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+"内":i+"前":i},kN={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},DN={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},NN={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},LN={date:ze({formats:kN,defaultWidth:"full"}),time:ze({formats:DN,defaultWidth:"full"}),dateTime:ze({formats:NN,defaultWidth:"full"})};function Qv(e,t,r){var n="eeee p";return Gi(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}var IN={lastWeek:Qv,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Qv,other:"PP p"},$N=function(t,r,n,i){var a=IN[t];return typeof a=="function"?a(r,n,i):a},FN={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},zN={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},BN={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},HN={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},WN={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:"夜间"}},jN={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:"夜间"}},VN=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()}},GN={ordinalNumber:VN,era:Te({values:FN,defaultWidth:"wide"}),quarter:Te({values:zN,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:BN,defaultWidth:"wide"}),day:Te({values:HN,defaultWidth:"wide"}),dayPeriod:Te({values:WN,defaultWidth:"wide",formattingValues:jN,defaultFormattingWidth:"wide"})},UN=/^(第\s*)?\d+(日|时|分|秒)?/i,YN=/\d+/i,qN={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},XN={any:[/^(前)/i,/^(公元)/i]},ZN={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},KN={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},QN={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},JN={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]},e4={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},t4={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},r4={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},n4={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},i4={ordinalNumber:Ir({matchPattern:UN,parsePattern:YN,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:qN,defaultMatchWidth:"wide",parsePatterns:XN,defaultParseWidth:"any"}),quarter:Me({matchPatterns:ZN,defaultMatchWidth:"wide",parsePatterns:KN,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:QN,defaultMatchWidth:"wide",parsePatterns:JN,defaultParseWidth:"any"}),day:Me({matchPatterns:e4,defaultMatchWidth:"wide",parsePatterns:t4,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:r4,defaultMatchWidth:"any",parsePatterns:n4,defaultParseWidth:"any"})},a4={code:"zh-CN",formatDistance:ON,formatLong:LN,formatRelative:$N,localize:GN,match:i4,options:{weekStartsOn:1,firstWeekContainsDate:4}},o4=Math.ceil,s4=Math.max;function l4(e,t,r,n){for(var i=-1,a=s4(o4((t-e)/(r||1)),0),o=Array(a);a--;)o[++i]=e,e+=r;return o}function u4(e){return function(t,r,n){return n&&typeof n!="number"&&j.isIterateeCall(t,r,n)&&(r=n=void 0),t=y.toFinite(t),r===void 0?(r=t,t=0):r=y.toFinite(r),n=n===void 0?t<r?1:-1:y.toFinite(n),l4(t,r,n)}}var cu=u4();const al=e=>{switch(e){case"de":return FP;case"fr":return XA;case"es":return _A;case"it":return ER;case"ja":return nO;case"ko":return DO;case"nl":return lk;case"pt":return Fk;case"ru":return vD;case"tr":return YD;case"zh":return a4;case"uk":return AN;case"en":return Ef;case"gb":return jP;default:return Ef}};var T2=(e=>(e.YEAR="years",e.QUARTER="quarters",e.MONTH="months",e.WEEK="weeks",e.DATE="dates",e))(T2||{});const c4={dates:e=>nP(e),months:e=>aP(e),quarters:e=>iP(e),weeks:(e,t)=>rP(e,{locale:t}),years:e=>oP(e)},d4=(e,t,r)=>c4[e](t,r),h4=e=>y.parseISOWithTimezoneCheck(e);cu(4),cu(12),cu(7),cu(24);var Rf={exports:{}},M2={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})(M2);var Mt=M2.exports,Of={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,i){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a]);return n}e.exports=t.default})(Of,Of.exports);var f4=Of.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(f4);function i(a){return(0,n.default)({},a)}e.exports=t.default})(Rf,Rf.exports);var p4=Rf.exports;const m4=y.getDefaultExportFromCjs(p4);var kf={exports:{}},Df={exports:{}},Nf={exports:{}},S2={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})(S2);var E2=S2.exports,Lf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,i){if(i.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+i.length+" present")}e.exports=t.default})(Lf,Lf.exports);var yr=Lf.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(E2),i=r(yr);function a(o){return(0,i.default)(1,arguments),o instanceof Date||(0,n.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}e.exports=t.default})(Nf,Nf.exports);var g4=Nf.exports,If={exports:{}};(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(E2),i=r(yr);function a(o){(0,i.default)(1,arguments);var l=Object.prototype.toString.call(o);return o instanceof Date||(0,n.default)(o)==="object"&&l==="[object Date]"?new Date(o.getTime()):typeof o=="number"||l==="[object Number]"?new Date(o):((typeof o=="string"||l==="[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})(If,If.exports);var En=If.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(g4),i=r(En),a=r(yr);function o(l){if((0,a.default)(1,arguments),!(0,n.default)(l)&&typeof l!="number")return!1;var u=(0,i.default)(l);return!isNaN(Number(u))}e.exports=t.default})(Df,Df.exports);var v4=Df.exports,$f={exports:{}},Ff={exports:{}},zf={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 i=Number(n);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}e.exports=t.default})(zf,zf.exports);var Ji=zf.exports;const y4=y.getDefaultExportFromCjs(Ji);(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Ji),i=r(En),a=r(yr);function o(l,u){(0,a.default)(2,arguments);var c=(0,i.default)(l).getTime(),h=(0,n.default)(u);return new Date(c+h)}e.exports=t.default})(Ff,Ff.exports);var b4=Ff.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(b4),i=r(yr),a=r(Ji);function o(l,u){(0,i.default)(2,arguments);var c=(0,a.default)(u);return(0,n.default)(l,-c)}e.exports=t.default})($f,$f.exports);var _4=$f.exports,Bf={exports:{}},Hf={exports:{}};(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(En),i=r(yr),a=864e5;function o(l){(0,i.default)(1,arguments);var u=(0,n.default)(l),c=u.getTime();u.setUTCMonth(0,1),u.setUTCHours(0,0,0,0);var h=u.getTime(),f=c-h;return Math.floor(f/a)+1}e.exports=t.default})(Hf,Hf.exports);var w4=Hf.exports,Wf={exports:{}},jf={exports:{}};(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(En),i=r(yr);function a(o){(0,i.default)(1,arguments);var l=1,u=(0,n.default)(o),c=u.getUTCDay(),h=(c<l?7:0)+c-l;return u.setUTCDate(u.getUTCDate()-h),u.setUTCHours(0,0,0,0),u}e.exports=t.default})(jf,jf.exports);var n0=jf.exports,Vf={exports:{}},Gf={exports:{}};(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(En),i=r(yr),a=r(n0);function o(l){(0,i.default)(1,arguments);var u=(0,n.default)(l),c=u.getUTCFullYear(),h=new Date(0);h.setUTCFullYear(c+1,0,4),h.setUTCHours(0,0,0,0);var f=(0,a.default)(h),p=new Date(0);p.setUTCFullYear(c,0,4),p.setUTCHours(0,0,0,0);var g=(0,a.default)(p);return u.getTime()>=f.getTime()?c+1:u.getTime()>=g.getTime()?c:c-1}e.exports=t.default})(Gf,Gf.exports);var P2=Gf.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(P2),i=r(n0),a=r(yr);function o(l){(0,a.default)(1,arguments);var u=(0,n.default)(l),c=new Date(0);c.setUTCFullYear(u,0,4),c.setUTCHours(0,0,0,0);var h=(0,i.default)(c);return h}e.exports=t.default})(Vf,Vf.exports);var x4=Vf.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(En),i=r(n0),a=r(x4),o=r(yr),l=6048e5;function u(c){(0,o.default)(1,arguments);var h=(0,n.default)(c),f=(0,i.default)(h).getTime()-(0,a.default)(h).getTime();return Math.round(f/l)+1}e.exports=t.default})(Wf,Wf.exports);var C4=Wf.exports,Uf={exports:{}},Yf={exports:{}},ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.getDefaultOptions=T4;ea.setDefaultOptions=M4;var A2={};function T4(){return A2}function M4(e){A2=e}(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(En),i=r(yr),a=r(Ji),o=ea;function l(u,c){var h,f,p,g,b,v,w,C;(0,i.default)(1,arguments);var T=(0,o.getDefaultOptions)(),E=(0,a.default)((h=(f=(p=(g=c==null?void 0:c.weekStartsOn)!==null&&g!==void 0?g:c==null||(b=c.locale)===null||b===void 0||(v=b.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&p!==void 0?p:T.weekStartsOn)!==null&&f!==void 0?f:(w=T.locale)===null||w===void 0||(C=w.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&h!==void 0?h:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,n.default)(u),P=S.getUTCDay(),R=(P<E?7:0)+P-E;return S.setUTCDate(S.getUTCDate()-R),S.setUTCHours(0,0,0,0),S}e.exports=t.default})(Yf,Yf.exports);var i0=Yf.exports,qf={exports:{}},Xf={exports:{}};(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(En),i=r(yr),a=r(i0),o=r(Ji),l=ea;function u(c,h){var f,p,g,b,v,w,C,T;(0,i.default)(1,arguments);var E=(0,n.default)(c),S=E.getUTCFullYear(),P=(0,l.getDefaultOptions)(),R=(0,o.default)((f=(p=(g=(b=h==null?void 0:h.firstWeekContainsDate)!==null&&b!==void 0?b:h==null||(v=h.locale)===null||v===void 0||(w=v.options)===null||w===void 0?void 0:w.firstWeekContainsDate)!==null&&g!==void 0?g:P.firstWeekContainsDate)!==null&&p!==void 0?p:(C=P.locale)===null||C===void 0||(T=C.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&f!==void 0?f:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=new Date(0);N.setUTCFullYear(S+1,0,R),N.setUTCHours(0,0,0,0);var W=(0,a.default)(N,h),G=new Date(0);G.setUTCFullYear(S,0,R),G.setUTCHours(0,0,0,0);var K=(0,a.default)(G,h);return E.getTime()>=W.getTime()?S+1:E.getTime()>=K.getTime()?S:S-1}e.exports=t.default})(Xf,Xf.exports);var R2=Xf.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(R2),i=r(yr),a=r(i0),o=r(Ji),l=ea;function u(c,h){var f,p,g,b,v,w,C,T;(0,i.default)(1,arguments);var E=(0,l.getDefaultOptions)(),S=(0,o.default)((f=(p=(g=(b=h==null?void 0:h.firstWeekContainsDate)!==null&&b!==void 0?b:h==null||(v=h.locale)===null||v===void 0||(w=v.options)===null||w===void 0?void 0:w.firstWeekContainsDate)!==null&&g!==void 0?g:E.firstWeekContainsDate)!==null&&p!==void 0?p:(C=E.locale)===null||C===void 0||(T=C.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&f!==void 0?f:1),P=(0,n.default)(c,h),R=new Date(0);R.setUTCFullYear(P,0,S),R.setUTCHours(0,0,0,0);var N=(0,a.default)(R,h);return N}e.exports=t.default})(qf,qf.exports);var S4=qf.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(En),i=r(i0),a=r(S4),o=r(yr),l=6048e5;function u(c,h){(0,o.default)(1,arguments);var f=(0,n.default)(c),p=(0,i.default)(f,h).getTime()-(0,a.default)(f,h).getTime();return Math.round(p/l)+1}e.exports=t.default})(Uf,Uf.exports);var E4=Uf.exports,Zf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,i){for(var a=n<0?"-":"",o=Math.abs(n).toString();o.length<i;)o="0"+o;return a+o}e.exports=t.default})(Zf,Zf.exports);var O2=Zf.exports,Kf={exports:{}};(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(O2),i={y:function(l,u){var c=l.getUTCFullYear(),h=c>0?c:1-c;return(0,n.default)(u==="yy"?h%100:h,u.length)},M:function(l,u){var c=l.getUTCMonth();return u==="M"?String(c+1):(0,n.default)(c+1,2)},d:function(l,u){return(0,n.default)(l.getUTCDate(),u.length)},a:function(l,u){var c=l.getUTCHours()/12>=1?"pm":"am";switch(u){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(l,u){return(0,n.default)(l.getUTCHours()%12||12,u.length)},H:function(l,u){return(0,n.default)(l.getUTCHours(),u.length)},m:function(l,u){return(0,n.default)(l.getUTCMinutes(),u.length)},s:function(l,u){return(0,n.default)(l.getUTCSeconds(),u.length)},S:function(l,u){var c=u.length,h=l.getUTCMilliseconds(),f=Math.floor(h*Math.pow(10,c-3));return(0,n.default)(f,u.length)}},a=i;t.default=a,e.exports=t.default})(Kf,Kf.exports);var P4=Kf.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(w4),i=r(C4),a=r(P2),o=r(E4),l=r(R2),u=r(O2),c=r(P4),h={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},f={G:function(C,T,E){var S=C.getUTCFullYear()>0?1:0;switch(T){case"G":case"GG":case"GGG":return E.era(S,{width:"abbreviated"});case"GGGGG":return E.era(S,{width:"narrow"});case"GGGG":default:return E.era(S,{width:"wide"})}},y:function(C,T,E){if(T==="yo"){var S=C.getUTCFullYear(),P=S>0?S:1-S;return E.ordinalNumber(P,{unit:"year"})}return c.default.y(C,T)},Y:function(C,T,E,S){var P=(0,l.default)(C,S),R=P>0?P:1-P;if(T==="YY"){var N=R%100;return(0,u.default)(N,2)}return T==="Yo"?E.ordinalNumber(R,{unit:"year"}):(0,u.default)(R,T.length)},R:function(C,T){var E=(0,a.default)(C);return(0,u.default)(E,T.length)},u:function(C,T){var E=C.getUTCFullYear();return(0,u.default)(E,T.length)},Q:function(C,T,E){var S=Math.ceil((C.getUTCMonth()+1)/3);switch(T){case"Q":return String(S);case"QQ":return(0,u.default)(S,2);case"Qo":return E.ordinalNumber(S,{unit:"quarter"});case"QQQ":return E.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return E.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return E.quarter(S,{width:"wide",context:"formatting"})}},q:function(C,T,E){var S=Math.ceil((C.getUTCMonth()+1)/3);switch(T){case"q":return String(S);case"qq":return(0,u.default)(S,2);case"qo":return E.ordinalNumber(S,{unit:"quarter"});case"qqq":return E.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return E.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return E.quarter(S,{width:"wide",context:"standalone"})}},M:function(C,T,E){var S=C.getUTCMonth();switch(T){case"M":case"MM":return c.default.M(C,T);case"Mo":return E.ordinalNumber(S+1,{unit:"month"});case"MMM":return E.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return E.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return E.month(S,{width:"wide",context:"formatting"})}},L:function(C,T,E){var S=C.getUTCMonth();switch(T){case"L":return String(S+1);case"LL":return(0,u.default)(S+1,2);case"Lo":return E.ordinalNumber(S+1,{unit:"month"});case"LLL":return E.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return E.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return E.month(S,{width:"wide",context:"standalone"})}},w:function(C,T,E,S){var P=(0,o.default)(C,S);return T==="wo"?E.ordinalNumber(P,{unit:"week"}):(0,u.default)(P,T.length)},I:function(C,T,E){var S=(0,i.default)(C);return T==="Io"?E.ordinalNumber(S,{unit:"week"}):(0,u.default)(S,T.length)},d:function(C,T,E){return T==="do"?E.ordinalNumber(C.getUTCDate(),{unit:"date"}):c.default.d(C,T)},D:function(C,T,E){var S=(0,n.default)(C);return T==="Do"?E.ordinalNumber(S,{unit:"dayOfYear"}):(0,u.default)(S,T.length)},E:function(C,T,E){var S=C.getUTCDay();switch(T){case"E":case"EE":case"EEE":return E.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return E.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return E.day(S,{width:"short",context:"formatting"});case"EEEE":default:return E.day(S,{width:"wide",context:"formatting"})}},e:function(C,T,E,S){var P=C.getUTCDay(),R=(P-S.weekStartsOn+8)%7||7;switch(T){case"e":return String(R);case"ee":return(0,u.default)(R,2);case"eo":return E.ordinalNumber(R,{unit:"day"});case"eee":return E.day(P,{width:"abbreviated",context:"formatting"});case"eeeee":return E.day(P,{width:"narrow",context:"formatting"});case"eeeeee":return E.day(P,{width:"short",context:"formatting"});case"eeee":default:return E.day(P,{width:"wide",context:"formatting"})}},c:function(C,T,E,S){var P=C.getUTCDay(),R=(P-S.weekStartsOn+8)%7||7;switch(T){case"c":return String(R);case"cc":return(0,u.default)(R,T.length);case"co":return E.ordinalNumber(R,{unit:"day"});case"ccc":return E.day(P,{width:"abbreviated",context:"standalone"});case"ccccc":return E.day(P,{width:"narrow",context:"standalone"});case"cccccc":return E.day(P,{width:"short",context:"standalone"});case"cccc":default:return E.day(P,{width:"wide",context:"standalone"})}},i:function(C,T,E){var S=C.getUTCDay(),P=S===0?7:S;switch(T){case"i":return String(P);case"ii":return(0,u.default)(P,T.length);case"io":return E.ordinalNumber(P,{unit:"day"});case"iii":return E.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return E.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return E.day(S,{width:"short",context:"formatting"});case"iiii":default:return E.day(S,{width:"wide",context:"formatting"})}},a:function(C,T,E){var S=C.getUTCHours(),P=S/12>=1?"pm":"am";switch(T){case"a":case"aa":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"});case"aaa":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return E.dayPeriod(P,{width:"narrow",context:"formatting"});case"aaaa":default:return E.dayPeriod(P,{width:"wide",context:"formatting"})}},b:function(C,T,E){var S=C.getUTCHours(),P;switch(S===12?P=h.noon:S===0?P=h.midnight:P=S/12>=1?"pm":"am",T){case"b":case"bb":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"});case"bbb":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return E.dayPeriod(P,{width:"narrow",context:"formatting"});case"bbbb":default:return E.dayPeriod(P,{width:"wide",context:"formatting"})}},B:function(C,T,E){var S=C.getUTCHours(),P;switch(S>=17?P=h.evening:S>=12?P=h.afternoon:S>=4?P=h.morning:P=h.night,T){case"B":case"BB":case"BBB":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"});case"BBBBB":return E.dayPeriod(P,{width:"narrow",context:"formatting"});case"BBBB":default:return E.dayPeriod(P,{width:"wide",context:"formatting"})}},h:function(C,T,E){if(T==="ho"){var S=C.getUTCHours()%12;return S===0&&(S=12),E.ordinalNumber(S,{unit:"hour"})}return c.default.h(C,T)},H:function(C,T,E){return T==="Ho"?E.ordinalNumber(C.getUTCHours(),{unit:"hour"}):c.default.H(C,T)},K:function(C,T,E){var S=C.getUTCHours()%12;return T==="Ko"?E.ordinalNumber(S,{unit:"hour"}):(0,u.default)(S,T.length)},k:function(C,T,E){var S=C.getUTCHours();return S===0&&(S=24),T==="ko"?E.ordinalNumber(S,{unit:"hour"}):(0,u.default)(S,T.length)},m:function(C,T,E){return T==="mo"?E.ordinalNumber(C.getUTCMinutes(),{unit:"minute"}):c.default.m(C,T)},s:function(C,T,E){return T==="so"?E.ordinalNumber(C.getUTCSeconds(),{unit:"second"}):c.default.s(C,T)},S:function(C,T){return c.default.S(C,T)},X:function(C,T,E,S){var P=S._originalDate||C,R=P.getTimezoneOffset();if(R===0)return"Z";switch(T){case"X":return g(R);case"XXXX":case"XX":return b(R);case"XXXXX":case"XXX":default:return b(R,":")}},x:function(C,T,E,S){var P=S._originalDate||C,R=P.getTimezoneOffset();switch(T){case"x":return g(R);case"xxxx":case"xx":return b(R);case"xxxxx":case"xxx":default:return b(R,":")}},O:function(C,T,E,S){var P=S._originalDate||C,R=P.getTimezoneOffset();switch(T){case"O":case"OO":case"OOO":return"GMT"+p(R,":");case"OOOO":default:return"GMT"+b(R,":")}},z:function(C,T,E,S){var P=S._originalDate||C,R=P.getTimezoneOffset();switch(T){case"z":case"zz":case"zzz":return"GMT"+p(R,":");case"zzzz":default:return"GMT"+b(R,":")}},t:function(C,T,E,S){var P=S._originalDate||C,R=Math.floor(P.getTime()/1e3);return(0,u.default)(R,T.length)},T:function(C,T,E,S){var P=S._originalDate||C,R=P.getTime();return(0,u.default)(R,T.length)}};function p(w,C){var T=w>0?"-":"+",E=Math.abs(w),S=Math.floor(E/60),P=E%60;if(P===0)return T+String(S);var R=C;return T+String(S)+R+(0,u.default)(P,2)}function g(w,C){if(w%60===0){var T=w>0?"-":"+";return T+(0,u.default)(Math.abs(w)/60,2)}return b(w,C)}function b(w,C){var T=C||"",E=w>0?"-":"+",S=Math.abs(w),P=(0,u.default)(Math.floor(S/60),2),R=(0,u.default)(S%60,2);return E+P+T+R}var v=f;t.default=v,e.exports=t.default})(Bf,Bf.exports);var A4=Bf.exports,Qf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(u,c){switch(u){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},n=function(u,c){switch(u){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},i=function(u,c){var h=u.match(/(P+)(p+)?/)||[],f=h[1],p=h[2];if(!p)return r(u,c);var g;switch(f){case"P":g=c.dateTime({width:"short"});break;case"PP":g=c.dateTime({width:"medium"});break;case"PPP":g=c.dateTime({width:"long"});break;case"PPPP":default:g=c.dateTime({width:"full"});break}return g.replace("{{date}}",r(f,c)).replace("{{time}}",n(p,c))},a={p:n,P:i},o=a;t.default=o,e.exports=t.default})(Qf,Qf.exports);var R4=Qf.exports,Jf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){var i=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return i.setUTCFullYear(n.getFullYear()),n.getTime()-i.getTime()}e.exports=t.default})(Jf,Jf.exports);var k2=Jf.exports;const Jv=y.getDefaultExportFromCjs(k2);var ol={};Object.defineProperty(ol,"__esModule",{value:!0});ol.isProtectedDayOfYearToken=D4;ol.isProtectedWeekYearToken=N4;ol.throwProtectedError=L4;var O4=["D","DD"],k4=["YY","YYYY"];function D4(e){return O4.indexOf(e)!==-1}function N4(e){return k4.indexOf(e)!==-1}function L4(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 ep={exports:{}},tp={exports:{}},rp={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(o,l,u){var c,h=r[o];return typeof h=="string"?c=h:l===1?c=h.one:c=h.other.replace("{{count}}",l.toString()),u!=null&&u.addSuffix?u.comparison&&u.comparison>0?"in "+c:c+" ago":c},i=n;t.default=i,e.exports=t.default})(rp,rp.exports);var I4=rp.exports,np={exports:{}},ip={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=i.width?String(i.width):n.defaultWidth,o=n.formats[a]||n.formats[n.defaultWidth];return o}}e.exports=t.default})(ip,ip.exports);var $4=ip.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r($4),i={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:(0,n.default)({formats:i,defaultWidth:"full"}),time:(0,n.default)({formats:a,defaultWidth:"full"}),dateTime:(0,n.default)({formats:o,defaultWidth:"full"})},u=l;t.default=u,e.exports=t.default})(np,np.exports);var F4=np.exports,ap={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(o,l,u,c){return r[o]},i=n;t.default=i,e.exports=t.default})(ap,ap.exports);var z4=ap.exports,op={exports:{}},sp={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(i,a){var o=a!=null&&a.context?String(a.context):"standalone",l;if(o==="formatting"&&n.formattingValues){var u=n.defaultFormattingWidth||n.defaultWidth,c=a!=null&&a.width?String(a.width):u;l=n.formattingValues[c]||n.formattingValues[u]}else{var h=n.defaultWidth,f=a!=null&&a.width?String(a.width):n.defaultWidth;l=n.values[f]||n.values[h]}var p=n.argumentCallback?n.argumentCallback(i):i;return l[p]}}e.exports=t.default})(sp,sp.exports);var B4=sp.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(B4),i={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={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"]},l={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"]},u={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"}},c={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"}},h=function(b,v){var w=Number(b),C=w%100;if(C>20||C<10)switch(C%10){case 1:return w+"st";case 2:return w+"nd";case 3:return w+"rd"}return w+"th"},f={ordinalNumber:h,era:(0,n.default)({values:i,defaultWidth:"wide"}),quarter:(0,n.default)({values:a,defaultWidth:"wide",argumentCallback:function(b){return b-1}}),month:(0,n.default)({values:o,defaultWidth:"wide"}),day:(0,n.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:u,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},p=f;t.default=p,e.exports=t.default})(op,op.exports);var H4=op.exports,lp={exports:{}},up={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){return function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=l.width,c=u&&a.matchPatterns[u]||a.matchPatterns[a.defaultMatchWidth],h=o.match(c);if(!h)return null;var f=h[0],p=u&&a.parsePatterns[u]||a.parsePatterns[a.defaultParseWidth],g=Array.isArray(p)?i(p,function(w){return w.test(f)}):n(p,function(w){return w.test(f)}),b;b=a.valueCallback?a.valueCallback(g):g,b=l.valueCallback?l.valueCallback(b):b;var v=o.slice(f.length);return{value:b,rest:v}}}function n(a,o){for(var l in a)if(a.hasOwnProperty(l)&&o(a[l]))return l}function i(a,o){for(var l=0;l<a.length;l++)if(o(a[l]))return l}e.exports=t.default})(up,up.exports);var W4=up.exports,cp={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.match(n.matchPattern);if(!o)return null;var l=o[0],u=i.match(n.parsePattern);if(!u)return null;var c=n.valueCallback?n.valueCallback(u[0]):u[0];c=a.valueCallback?a.valueCallback(c):c;var h=i.slice(l.length);return{value:c,rest:h}}}e.exports=t.default})(cp,cp.exports);var j4=cp.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(W4),i=r(j4),a=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,l={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},u={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},h={any:[/1/i,/2/i,/3/i,/4/i]},f={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},p={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},b={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]},v={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}},C={ordinalNumber:(0,i.default)({matchPattern:a,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,n.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:u,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:b,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:v,defaultMatchWidth:"any",parsePatterns:w,defaultParseWidth:"any"})},T=C;t.default=T,e.exports=t.default})(lp,lp.exports);var V4=lp.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(I4),i=r(F4),a=r(z4),o=r(H4),l=r(V4),u={code:"en-US",formatDistance:n.default,formatLong:i.default,formatRelative:a.default,localize:o.default,match:l.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=u;t.default=c,e.exports=t.default})(tp,tp.exports);var G4=tp.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(G4),i=n.default;t.default=i,e.exports=t.default})(ep,ep.exports);var U4=ep.exports;(function(e,t){var r=Mt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=E;var n=r(v4),i=r(_4),a=r(En),o=r(A4),l=r(R4),u=r(k2),c=ol,h=r(Ji),f=r(yr),p=ea,g=r(U4),b=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w=/^'([^]*?)'?$/,C=/''/g,T=/[a-zA-Z]/;function E(P,R,N){var W,G,K,Z,O,$,X,B,V,H,U,te,F,Y,ne,ie,re,oe;(0,f.default)(2,arguments);var le=String(R),de=(0,p.getDefaultOptions)(),ce=(W=(G=N==null?void 0:N.locale)!==null&&G!==void 0?G:de.locale)!==null&&W!==void 0?W:g.default,ve=(0,h.default)((K=(Z=(O=($=N==null?void 0:N.firstWeekContainsDate)!==null&&$!==void 0?$:N==null||(X=N.locale)===null||X===void 0||(B=X.options)===null||B===void 0?void 0:B.firstWeekContainsDate)!==null&&O!==void 0?O:de.firstWeekContainsDate)!==null&&Z!==void 0?Z:(V=de.locale)===null||V===void 0||(H=V.options)===null||H===void 0?void 0:H.firstWeekContainsDate)!==null&&K!==void 0?K:1);if(!(ve>=1&&ve<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ce=(0,h.default)((U=(te=(F=(Y=N==null?void 0:N.weekStartsOn)!==null&&Y!==void 0?Y:N==null||(ne=N.locale)===null||ne===void 0||(ie=ne.options)===null||ie===void 0?void 0:ie.weekStartsOn)!==null&&F!==void 0?F:de.weekStartsOn)!==null&&te!==void 0?te:(re=de.locale)===null||re===void 0||(oe=re.options)===null||oe===void 0?void 0:oe.weekStartsOn)!==null&&U!==void 0?U:0);if(!(Ce>=0&&Ce<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ce.localize)throw new RangeError("locale must contain localize property");if(!ce.formatLong)throw new RangeError("locale must contain formatLong property");var ye=(0,a.default)(P);if(!(0,n.default)(ye))throw new RangeError("Invalid time value");var J=(0,u.default)(ye),we=(0,i.default)(ye,J),Ee={firstWeekContainsDate:ve,weekStartsOn:Ce,locale:ce,_originalDate:ye},ke=le.match(v).map(function($e){var je=$e[0];if(je==="p"||je==="P"){var Ue=l.default[je];return Ue($e,ce.formatLong)}return $e}).join("").match(b).map(function($e){if($e==="''")return"'";var je=$e[0];if(je==="'")return S($e);var Ue=o.default[je];if(Ue)return!(N!=null&&N.useAdditionalWeekYearTokens)&&(0,c.isProtectedWeekYearToken)($e)&&(0,c.throwProtectedError)($e,R,String(P)),!(N!=null&&N.useAdditionalDayOfYearTokens)&&(0,c.isProtectedDayOfYearToken)($e)&&(0,c.throwProtectedError)($e,R,String(P)),Ue(we,$e,ce.localize,Ee);if(je.match(T))throw new RangeError("Format string contains an unescaped latin alphabet character `"+je+"`");return $e}).join("");return ke}function S(P){var R=P.match(w);return R?R[1].replace(C,"'"):P}e.exports=t.default})(kf,kf.exports);var Y4=kf.exports;const q4=y.getDefaultExportFromCjs(Y4);function ey(e,t,r){var n=K4(e,r.timeZone,r.locale);return n.formatToParts?X4(n,t):Z4(n,t)}function X4(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 Z4(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function K4(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 Q4(e,t){var r=r5(t);return r.formatToParts?e5(r,e):t5(r,e)}var J4={year:0,month:1,day:2,hour:3,minute:4,second:5};function e5(e,t){try{for(var r=e.formatToParts(t),n=[],i=0;i<r.length;i++){var a=J4[r[i].type];a>=0&&(n[a]=parseInt(r[i].value,10))}return n}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function t5(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 Eh={};function r5(e){if(!Eh[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";Eh[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 Eh[e]}function D2(e,t,r,n,i,a,o){var l=new Date(0);return l.setUTCFullYear(e,t,r),l.setUTCHours(n,i,a,o),l}var ty=36e5,n5=6e4,Ph={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function a0(e,t,r){var n,i;if(!e||(n=Ph.timezoneZ.exec(e),n))return 0;var a;if(n=Ph.timezoneHH.exec(e),n)return a=parseInt(n[1],10),ry(a)?-(a*ty):NaN;if(n=Ph.timezoneHHMM.exec(e),n){a=parseInt(n[2],10);var o=parseInt(n[3],10);return ry(a,o)?(i=Math.abs(a)*ty+o*n5,n[1]==="+"?-i:i):NaN}if(o5(e)){t=new Date(t||Date.now());var l=r?t:i5(t),u=dp(l,e),c=r?u:a5(t,u,e);return-c}return NaN}function i5(e){return D2(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function dp(e,t){var r=Q4(e,t),n=D2(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),i=e.getTime(),a=i%1e3;return i-=a>=0?a:1e3+a,n-i}function a5(e,t,r){var n=e.getTime(),i=n-t,a=dp(new Date(i),r);if(t===a)return t;i-=a-t;var o=dp(new Date(i),r);return a===o?a:Math.max(a,o)}function ry(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var ny={};function o5(e){if(ny[e])return!0;try{return ny[e]=!0,!0}catch(t){return!1}}var s5=60*1e3,l5={X:function(e,t,r,n){var i=Ah(n.timeZone,e);if(i===0)return"Z";switch(t){case"X":return iy(i);case"XXXX":case"XX":return ka(i);case"XXXXX":case"XXX":default:return ka(i,":")}},x:function(e,t,r,n){var i=Ah(n.timeZone,e);switch(t){case"x":return iy(i);case"xxxx":case"xx":return ka(i);case"xxxxx":case"xxx":default:return ka(i,":")}},O:function(e,t,r,n){var i=Ah(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+u5(i,":");case"OOOO":default:return"GMT"+ka(i,":")}},z:function(e,t,r,n){switch(t){case"z":case"zz":case"zzz":return ey("short",e,n);case"zzzz":default:return ey("long",e,n)}}};function Ah(e,t){var r=e?a0(e,t,!0)/s5:t.getTimezoneOffset();if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function ec(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}function ka(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),a=ec(Math.floor(i/60),2),o=ec(Math.floor(i%60),2);return n+a+r+o}function iy(e,t){if(e%60===0){var r=e>0?"-":"+";return r+ec(Math.abs(e)/60,2)}return ka(e,t)}function u5(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),a=n%60;if(a===0)return r+String(i);var o=t;return r+String(i)+o+ec(a,2)}var c5=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Rh=36e5,ay=6e4,d5=2,fr={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:c5};function N2(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?d5:y4(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 i=h5(e),a=f5(i.date,n),o=a.year,l=a.restDateString,u=p5(l,o);if(isNaN(u))return new Date(NaN);if(u){var c=u.getTime(),h=0,f;if(i.time&&(h=m5(i.time),isNaN(h)))return new Date(NaN);if(i.timeZone||r.timeZone){if(f=a0(i.timeZone||r.timeZone,new Date(c+h)),isNaN(f))return new Date(NaN)}else f=Jv(new Date(c+h)),f=Jv(new Date(c+h+f));return new Date(c+h+f)}else return new Date(NaN)}function h5(e){var t={},r=fr.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=fr.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var i=fr.timeZone.exec(n);i?(t.time=n.replace(i[1],""),t.timeZone=i[1].trim()):t.time=n}return t}function f5(e,t){var r=fr.YYY[t],n=fr.YYYYY[t],i;if(i=fr.YYYY.exec(e)||n.exec(e),i){var a=i[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(i=fr.YY.exec(e)||r.exec(e),i){var o=i[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}return{year:null}}function p5(e,t){if(t===null)return null;var r,n,i,a;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(r=fr.MM.exec(e),r)return n=new Date(0),i=parseInt(r[1],10)-1,sy(t,i)?(n.setUTCFullYear(t,i),n):new Date(NaN);if(r=fr.DDD.exec(e),r){n=new Date(0);var o=parseInt(r[1],10);return y5(t,o)?(n.setUTCFullYear(t,0,o),n):new Date(NaN)}if(r=fr.MMDD.exec(e),r){n=new Date(0),i=parseInt(r[1],10)-1;var l=parseInt(r[2],10);return sy(t,i,l)?(n.setUTCFullYear(t,i,l),n):new Date(NaN)}if(r=fr.Www.exec(e),r)return a=parseInt(r[1],10)-1,ly(t,a)?oy(t,a):new Date(NaN);if(r=fr.WwwD.exec(e),r){a=parseInt(r[1],10)-1;var u=parseInt(r[2],10)-1;return ly(t,a,u)?oy(t,a,u):new Date(NaN)}return null}function m5(e){var t,r,n;if(t=fr.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),Oh(r)?r%24*Rh:NaN;if(t=fr.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),Oh(r,n)?r%24*Rh+n*ay:NaN;if(t=fr.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return Oh(r,n,i)?r%24*Rh+n*ay+i*1e3:NaN}return null}function oy(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,a=t*7+r+1-i;return n.setUTCDate(n.getUTCDate()+a),n}var g5=[31,28,31,30,31,30,31,31,30,31,30,31],v5=[31,29,31,30,31,30,31,31,30,31,30,31];function L2(e){return e%400===0||e%4===0&&e%100!==0}function sy(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=L2(e);if(n&&r>v5[t]||!n&&r>g5[t])return!1}return!0}function y5(e,t){if(t<1)return!1;var r=L2(e);return!(r&&t>366||!r&&t>365)}function ly(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function Oh(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}var b5=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function _5(e,t,r){var n=String(t),i=r||{},a=n.match(b5);if(a){var o=N2(i.originalDate||e,i);n=a.reduce(function(l,u){if(u[0]==="'")return l;var c=l.indexOf(u),h=l[c-1]==="'",f=l.replace(u,"'"+l5[u[0]](o,u,null,i)+"'");return h?f.substring(0,c-1)+f.substring(c+1):f},n)}return q4(e,n,i)}function w5(e,t,r){var n=N2(e,r),i=a0(t,n,!0),a=new Date(n.getTime()-i),o=new Date(0);return o.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),o.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),o}function Qa(e,t,r,n){var i=m4(n);return i.timeZone=t,i.originalDate=e,_5(w5(e,t),r,i)}function ci(e,t,r){const n=new RegExp("'[^']+'|("+t+")","g");return e.replace(n,function(a,o){return o?r(a):a})}const x5=["shortDate","shortTime","short","mediumDate","mediumTime","medium","longDate","fullDate"],C5=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"});function T5(e,t){if(!t.formatLong)return console.warn("Locale does not have formatLong property. Using default date formats."),C5[e];switch(e){case"fullDate":return t.formatLong.date({width:"full"});case"longDate":return t.formatLong.date({width:"long"});case"mediumDate":return t.formatLong.date({width:"medium"});case"shortDate":return t.formatLong.date({width:"short"});case"mediumTime":return t.formatLong.time({width:"medium"});case"shortTime":return t.formatLong.time({width:"short"});case"medium":return t.formatLong.dateTime({width:"medium"}).replace("{{date}}",t.formatLong.date({width:"medium"})).replace("{{time}}",t.formatLong.time({width:"medium"}));case"short":return t.formatLong.dateTime({width:"short"}).replace("{{date}}",t.formatLong.date({width:"short"})).replace("{{time}}",t.formatLong.time({width:"short"}))}}function M5(e,t){if(!(e.includes("short")||e.includes("medium")||e.includes("long")||e.includes("full")))return e;let r=e;return x5.forEach(n=>{const i=T5(n,t);r=ci(r,n,function(){return i})}),r}function S5(e,t,r){return I2(e,t,r)?x2(e,1):e}function E5(e,t){return t<=e.getMonth()}function I2(e,t,r){const n=![L5,o0].includes(t);return r>F2&&n&&E5(e,r)}function P5(e,t,r,n){return!n&&I2(e,t,r)?v2(e,1):e}function A5(e,t){if(t>0){const r=(e.getMonth()+t)%12;return uP(e,r)}return e}function R5(e,t,r,n,i,a){if(!e.includes("y"))return e;const o=P5(t,n,a,i);let l=e;if(["yyyy","yy","y","yp","yyyp"].some(c=>e.includes(c))&&(r="Etc/GMT-14"),e.includes("yp")){const c=x2(o,1);l=ci(e,"yp|yyyp",function(f){const p="y".repeat(f.length);return Qa(c,r,p)})}return ci(l,"yyyy|yy|y",function(h){return Qa(o,r,h)})}function O5(e,t,r,n){if(!e.includes("Q"))return e;let i=t.getMonth();n&&[o0,I5,$5,$2].includes(r)&&(i-=n>i?n-12:n);const a=parseInt(String(i/3))+1;return ci(e,"QQ|Q",function(u){return`${u.length===2?"'Quarter '":"'Q'"}${a}`})}function k5(e){return e.includes("sss")?ci(e,"sss",function(){return"SSS"}):e}function D5(e,t,r){if(!(e.includes("a")||e.includes("A")))return e;let n=ci(e,"a",function(){return`\0${Qa(t,r,"a").toLowerCase()}\0`});return n=ci(n,"A",function(){return`\0${Qa(t,r,"a").toUpperCase()}\0`}),n=n.replace(/\0\0/g,""),n=n.replace(/\0/g,"'"),n}function N5(e,t,r,n){return e.includes("Z")?ci(e,"Z",function(){return Qa(t,r,"xx",{locale:n})}):e}const L5="years",o0="quarters",I5="months",$5="weeks",$2="days",F2=0,F5=1,sl=Object.freeze({weekFirstDay:F5,isFiscalOn:!1,fiscalMonth:F2,selectedDateLevel:$2,timeZone:"UTC"});function ll(e,t,r=al(),n=sl){if(e===y.NOT_AVAILABLE_DATA_VALUE)return e;const i=e instanceof Date?e:y.parseISOWithTimezoneCheck(e);return z5(i,t,r,n)}function z5(e,t,r=al(),n=sl){return e.getFullYear()<100?e=qv(e,1900+e.getFullYear()):e.getFullYear()===1111&&(e=qv(e,1970)),n.isFiscalOn||(e=S5(e,n.selectedDateLevel,n.fiscalMonth)),t=M5(t,r),t=k5(t),t=D5(t,e,n.timeZone),t=N5(t,e,n.timeZone,r),t=R5(t,e,n.timeZone,n.selectedDateLevel,n.isFiscalOn,n.fiscalMonth),!n.isFiscalOn&&n.selectedDateLevel===o0&&(e=A5(e,n.fiscalMonth)),t=O5(t,e,n.selectedDateLevel,n.fiscalMonth),Qa(e,n.timeZone,t,{locale:r,weekStartsOn:n.weekFirstDay})}function B5(e){switch(e){case j.DateLevels.Years:return"yyyy";case j.DateLevels.Quarters:return"Q yyyy";case j.DateLevels.Months:return"MM/yyyy";case j.DateLevels.Weeks:return"ww yyyy";case j.DateLevels.Days:return"shortDate";case j.DateLevels.Hours:case j.DateLevels.Minutes:case j.DateLevels.MinutesRoundTo15:case j.DateLevels.MinutesRoundTo30:case j.DateLevels.AggMinutesRoundTo1:case j.DateLevels.AggMinutesRoundTo15:case j.DateLevels.AggMinutesRoundTo30:case j.DateLevels.AggHours:return"HH:mm";case j.DateLevels.Seconds:return"HH:mm:ss";default:return"fullDate"}}const ls={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function z2(e,t,r){const n={chart:{textColor:e.dashboards.widgetTextColor,backgroundColor:e.dashboards.widgetBackgroundColor,secondaryTextColor:e.dashboards.widgetSecondaryTextColor,animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:e.typography.fontFamily,primaryTextColor:e.typography.primaryTextColor,secondaryTextColor:e.typography.secondaryTextColor,hyperlinkColor:e.typography.hyperlinkColor,hyperlinkHoverColor:e.typography.hyperlinkHoverColor,fontsLoader:{fonts:H5(e.typography.fontFamily,r,e.typography.customFontSelected)}},palette:{variantColors:t.colors},general:{brandColor:e.general.brandColor,backgroundColor:e.general.backgroundColor,primaryButtonTextColor:e.general.primaryButtonTextColor,primaryButtonHoverColor:e.general.primaryButtonHoverColor,popover:Qu().general.popover,buttons:{primary:{backgroundColor:{default:e.general.brandColor,hover:e.general.primaryButtonHoverColor,focus:e.general.primaryButtonHoverColor},textColor:e.general.primaryButtonTextColor},cancel:{backgroundColor:{default:e.general.secondaryButtonBaseColor,hover:e.general.secondaryButtonHoverColor,focus:e.general.secondaryButtonHoverColor},textColor:e.general.secondaryButtonTextColor}}},widget:{spaceAround:ls[e.dashboards.widgetSpacing],cornerRadius:ls[e.dashboards.widgetCornerRadius],shadow:ls[e.dashboards.widgetShadow],border:e.dashboards.widgetBorderEnabled,borderColor:e.dashboards.widgetBorderColor,header:{titleTextColor:e.dashboards.widgetTitleColor,titleAlignment:ls[e.dashboards.widgetTitleAlignment],titleFontSize:Km,dividerLine:e.dashboards.widgetTitleDividerEnabled,dividerLineColor:e.dashboards.widgetTitleDividerColor,backgroundColor:e.dashboards.widgetTitleBackgroundColor}},dashboard:{backgroundColor:e.dashboards.layoutBackgroundColor,dividerLineWidth:Wm,dividerLineColor:Hm,borderWidth:Vm,borderColor:jm,toolbar:{primaryTextColor:e.dashboards.toolbarTextColor,secondaryTextColor:e.dashboards.toolbarSecondaryTextColor,backgroundColor:e.dashboards.toolbarBackgroundColor,dividerLineColor:Gm,dividerLineWidth:Um}},filter:{panel:{titleColor:e.dashboards.panelTitleTextColor,backgroundColor:e.dashboards.panelBackgroundColor,dividerLineColor:Ym,dividerLineWidth:qm,borderColor:Xm,borderWidth:Zm}}};return j.merge$1.withOptions({mergeArrays:!1},Qu(),n)}function B2(e){return e.dashboards.colorPaletteName}function H5(e,t,r){const a=r?"fonts/":"resources/base/fonts/";return[{fontFamily:e,fontWeight:"normal",fontStyle:"normal",src:[{url:`${t}${a}${e}-Regular.eot`},{local:`${e}-Regular`},{url:`${t}${a}${e}-Regular.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${a}${e}-Regular.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:600,fontStyle:"normal",src:[{url:`${t}${a}${e}-SemiBold.eot`},{local:`${e}-SemiBold`},{url:`${t}${a}${e}-SemiBold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${a}${e}-SemiBold.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:"bold",fontStyle:"normal",src:[{url:`${t}${a}${e}-Bold.eot`},{local:`${e}-Bold`},{url:`${t}${a}${e}-Bold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${a}${e}-Bold.ttf`,format:"truetype"}]}]}function H2(e,t){return er(this,null,function*(){const r=yield W5(e,t);if(!r)throw new j.TranslatableError("errors.themeNotFound",{themeOid:e});const n=B2(r),i=yield W2(n,t);return z2(r,i,t.url)})}function W5(e,t){return er(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new j.TranslatableError("errors.themeNotFound",{themeOid:e})})})}function W2(e,t){return er(this,null,function*(){const r=yield t.get(`api/palettes/${e}`);if(r&&"status"in r&&r.status==="error")throw new j.TranslatableError("errors.paletteNotFound",{paletteName:e});return r})}var hp={exports:{}},Ze={};/** @license React v16.13.1
2
+ * react-is.production.min.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */var uy;function j5(){if(uy)return Ze;uy=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,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function E(P){if(typeof P=="object"&&P!==null){var R=P.$$typeof;switch(R){case t:switch(P=P.type,P){case u:case c:case n:case a:case i:case f:return P;default:switch(P=P&&P.$$typeof,P){case l:case h:case b:case g:case o:return P;default:return R}}case r:return R}}}function S(P){return E(P)===c}return Ze.AsyncMode=u,Ze.ConcurrentMode=c,Ze.ContextConsumer=l,Ze.ContextProvider=o,Ze.Element=t,Ze.ForwardRef=h,Ze.Fragment=n,Ze.Lazy=b,Ze.Memo=g,Ze.Portal=r,Ze.Profiler=a,Ze.StrictMode=i,Ze.Suspense=f,Ze.isAsyncMode=function(P){return S(P)||E(P)===u},Ze.isConcurrentMode=S,Ze.isContextConsumer=function(P){return E(P)===l},Ze.isContextProvider=function(P){return E(P)===o},Ze.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},Ze.isForwardRef=function(P){return E(P)===h},Ze.isFragment=function(P){return E(P)===n},Ze.isLazy=function(P){return E(P)===b},Ze.isMemo=function(P){return E(P)===g},Ze.isPortal=function(P){return E(P)===r},Ze.isProfiler=function(P){return E(P)===a},Ze.isStrictMode=function(P){return E(P)===i},Ze.isSuspense=function(P){return E(P)===f},Ze.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===n||P===c||P===a||P===i||P===f||P===p||typeof P=="object"&&P!==null&&(P.$$typeof===b||P.$$typeof===g||P.$$typeof===o||P.$$typeof===l||P.$$typeof===h||P.$$typeof===w||P.$$typeof===C||P.$$typeof===T||P.$$typeof===v)},Ze.typeOf=E,Ze}var Ke={};/** @license React v16.13.1
9
+ * react-is.development.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */var cy;function V5(){return cy||(cy=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,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function E(J){return typeof J=="string"||typeof J=="function"||J===n||J===c||J===a||J===i||J===f||J===p||typeof J=="object"&&J!==null&&(J.$$typeof===b||J.$$typeof===g||J.$$typeof===o||J.$$typeof===l||J.$$typeof===h||J.$$typeof===w||J.$$typeof===C||J.$$typeof===T||J.$$typeof===v)}function S(J){if(typeof J=="object"&&J!==null){var we=J.$$typeof;switch(we){case t:var Ee=J.type;switch(Ee){case u:case c:case n:case a:case i:case f:return Ee;default:var ke=Ee&&Ee.$$typeof;switch(ke){case l:case h:case b:case g:case o:return ke;default:return we}}case r:return we}}}var P=u,R=c,N=l,W=o,G=t,K=h,Z=n,O=b,$=g,X=r,B=a,V=i,H=f,U=!1;function te(J){return U||(U=!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.")),F(J)||S(J)===u}function F(J){return S(J)===c}function Y(J){return S(J)===l}function ne(J){return S(J)===o}function ie(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function re(J){return S(J)===h}function oe(J){return S(J)===n}function le(J){return S(J)===b}function de(J){return S(J)===g}function ce(J){return S(J)===r}function ve(J){return S(J)===a}function Ce(J){return S(J)===i}function ye(J){return S(J)===f}Ke.AsyncMode=P,Ke.ConcurrentMode=R,Ke.ContextConsumer=N,Ke.ContextProvider=W,Ke.Element=G,Ke.ForwardRef=K,Ke.Fragment=Z,Ke.Lazy=O,Ke.Memo=$,Ke.Portal=X,Ke.Profiler=B,Ke.StrictMode=V,Ke.Suspense=H,Ke.isAsyncMode=te,Ke.isConcurrentMode=F,Ke.isContextConsumer=Y,Ke.isContextProvider=ne,Ke.isElement=ie,Ke.isForwardRef=re,Ke.isFragment=oe,Ke.isLazy=le,Ke.isMemo=de,Ke.isPortal=ce,Ke.isProfiler=ve,Ke.isStrictMode=Ce,Ke.isSuspense=ye,Ke.isValidElementType=E,Ke.typeOf=S}()),Ke}process.env.NODE_ENV==="production"?hp.exports=j5():hp.exports=V5();var j2=hp.exports,fp={exports:{}};/*
16
+ object-assign
17
+ (c) Sindre Sorhus
18
+ @license MIT
19
+ */var kh,dy;function G5(){if(dy)return kh;dy=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},l=0;l<10;l++)o["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(h){c[h]=h}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch(h){return!1}}return kh=i()?Object.assign:function(a,o){for(var l,u=n(a),c,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var f in l)t.call(l,f)&&(u[f]=l[f]);if(e){c=e(l);for(var p=0;p<c.length;p++)r.call(l,c[p])&&(u[c[p]]=l[c[p]])}}return u},kh}var Dh,hy;function s0(){if(hy)return Dh;hy=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Dh=e,Dh}var Nh,fy;function V2(){return fy||(fy=1,Nh=Function.call.bind(Object.prototype.hasOwnProperty)),Nh}var Lh,py;function U5(){if(py)return Lh;py=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=s0(),r={},n=V2();e=function(a){var o="Warning: "+a;typeof console!="undefined"&&console.error(o);try{throw new Error(o)}catch(l){}}}function i(a,o,l,u,c){if(process.env.NODE_ENV!=="production"){for(var h in a)if(n(a,h)){var f;try{if(typeof a[h]!="function"){var p=Error((u||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=a[h](o,h,u,l,null,t)}catch(b){f=b}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var g=c?c():"";e("Failed "+l+" type: "+f.message+(g!=null?g:""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Lh=i,Lh}var Ih,my;function Y5(){if(my)return Ih;my=1;var e=j2,t=G5(),r=s0(),n=V2(),i=U5(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var u="Warning: "+l;typeof console!="undefined"&&console.error(u);try{throw new Error(u)}catch(c){}});function o(){return null}return Ih=function(l,u){var c=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function f(F){var Y=F&&(c&&F[c]||F[h]);if(typeof Y=="function")return Y}var p="<<anonymous>>",g={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:T(),arrayOf:E,element:S(),elementType:P(),instanceOf:R,node:K(),objectOf:W,oneOf:N,oneOfType:G,shape:O,exact:$};function b(F,Y){return F===Y?F!==0||1/F===1/Y:F!==F&&Y!==Y}function v(F,Y){this.message=F,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}v.prototype=Error.prototype;function w(F){if(process.env.NODE_ENV!=="production")var Y={},ne=0;function ie(oe,le,de,ce,ve,Ce,ye){if(ce=ce||p,Ce=Ce||de,ye!==r){if(u){var J=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 J.name="Invariant Violation",J}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var we=ce+":"+de;!Y[we]&&ne<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+ce+"`. 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."),Y[we]=!0,ne++)}}return le[de]==null?oe?le[de]===null?new v("The "+ve+" `"+Ce+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new v("The "+ve+" `"+Ce+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:F(le,de,ce,ve,Ce)}var re=ie.bind(null,!1);return re.isRequired=ie.bind(null,!0),re}function C(F){function Y(ne,ie,re,oe,le,de){var ce=ne[ie],ve=V(ce);if(ve!==F){var Ce=H(ce);return new v("Invalid "+oe+" `"+le+"` of type "+("`"+Ce+"` supplied to `"+re+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return w(Y)}function T(){return w(o)}function E(F){function Y(ne,ie,re,oe,le){if(typeof F!="function")return new v("Property `"+le+"` of component `"+re+"` has invalid PropType notation inside arrayOf.");var de=ne[ie];if(!Array.isArray(de)){var ce=V(de);return new v("Invalid "+oe+" `"+le+"` of type "+("`"+ce+"` supplied to `"+re+"`, expected an array."))}for(var ve=0;ve<de.length;ve++){var Ce=F(de,ve,re,oe,le+"["+ve+"]",r);if(Ce instanceof Error)return Ce}return null}return w(Y)}function S(){function F(Y,ne,ie,re,oe){var le=Y[ne];if(!l(le)){var de=V(le);return new v("Invalid "+re+" `"+oe+"` of type "+("`"+de+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return w(F)}function P(){function F(Y,ne,ie,re,oe){var le=Y[ne];if(!e.isValidElementType(le)){var de=V(le);return new v("Invalid "+re+" `"+oe+"` of type "+("`"+de+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return w(F)}function R(F){function Y(ne,ie,re,oe,le){if(!(ne[ie]instanceof F)){var de=F.name||p,ce=te(ne[ie]);return new v("Invalid "+oe+" `"+le+"` of type "+("`"+ce+"` supplied to `"+re+"`, expected ")+("instance of `"+de+"`."))}return null}return w(Y)}function N(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function Y(ne,ie,re,oe,le){for(var de=ne[ie],ce=0;ce<F.length;ce++)if(b(de,F[ce]))return null;var ve=JSON.stringify(F,function(ye,J){var we=H(J);return we==="symbol"?String(J):J});return new v("Invalid "+oe+" `"+le+"` of value `"+String(de)+"` "+("supplied to `"+re+"`, expected one of "+ve+"."))}return w(Y)}function W(F){function Y(ne,ie,re,oe,le){if(typeof F!="function")return new v("Property `"+le+"` of component `"+re+"` has invalid PropType notation inside objectOf.");var de=ne[ie],ce=V(de);if(ce!=="object")return new v("Invalid "+oe+" `"+le+"` of type "+("`"+ce+"` supplied to `"+re+"`, expected an object."));for(var ve in de)if(n(de,ve)){var Ce=F(de,ve,re,oe,le+"."+ve,r);if(Ce instanceof Error)return Ce}return null}return w(Y)}function G(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var Y=0;Y<F.length;Y++){var ne=F[Y];if(typeof ne!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(ne)+" at index "+Y+"."),o}function ie(re,oe,le,de,ce){for(var ve=[],Ce=0;Ce<F.length;Ce++){var ye=F[Ce],J=ye(re,oe,le,de,ce,r);if(J==null)return null;J.data&&n(J.data,"expectedType")&&ve.push(J.data.expectedType)}var we=ve.length>0?", expected one of type ["+ve.join(", ")+"]":"";return new v("Invalid "+de+" `"+ce+"` supplied to "+("`"+le+"`"+we+"."))}return w(ie)}function K(){function F(Y,ne,ie,re,oe){return X(Y[ne])?null:new v("Invalid "+re+" `"+oe+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return w(F)}function Z(F,Y,ne,ie,re){return new v((F||"React class")+": "+Y+" type `"+ne+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+re+"`.")}function O(F){function Y(ne,ie,re,oe,le){var de=ne[ie],ce=V(de);if(ce!=="object")return new v("Invalid "+oe+" `"+le+"` of type `"+ce+"` "+("supplied to `"+re+"`, expected `object`."));for(var ve in F){var Ce=F[ve];if(typeof Ce!="function")return Z(re,oe,le,ve,H(Ce));var ye=Ce(de,ve,re,oe,le+"."+ve,r);if(ye)return ye}return null}return w(Y)}function $(F){function Y(ne,ie,re,oe,le){var de=ne[ie],ce=V(de);if(ce!=="object")return new v("Invalid "+oe+" `"+le+"` of type `"+ce+"` "+("supplied to `"+re+"`, expected `object`."));var ve=t({},ne[ie],F);for(var Ce in ve){var ye=F[Ce];if(n(F,Ce)&&typeof ye!="function")return Z(re,oe,le,Ce,H(ye));if(!ye)return new v("Invalid "+oe+" `"+le+"` key `"+Ce+"` supplied to `"+re+"`.\nBad object: "+JSON.stringify(ne[ie],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var J=ye(de,Ce,re,oe,le+"."+Ce,r);if(J)return J}return null}return w(Y)}function X(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(X);if(F===null||l(F))return!0;var Y=f(F);if(Y){var ne=Y.call(F),ie;if(Y!==F.entries){for(;!(ie=ne.next()).done;)if(!X(ie.value))return!1}else for(;!(ie=ne.next()).done;){var re=ie.value;if(re&&!X(re[1]))return!1}}else return!1;return!0;default:return!1}}function B(F,Y){return F==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function V(F){var Y=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":B(Y,F)?"symbol":Y}function H(F){if(typeof F=="undefined"||F===null)return""+F;var Y=V(F);if(Y==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return Y}function U(F){var Y=H(F);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function te(F){return!F.constructor||!F.constructor.name?p:F.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},Ih}var $h,gy;function q5(){if(gy)return $h;gy=1;var e=s0();function t(){}function r(){}return r.resetWarningCache=t,$h=function(){function n(o,l,u,c,h,f){if(f!==e){var p=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 p.name="Invariant Violation",p}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},$h}if(process.env.NODE_ENV!=="production"){var X5=j2,Z5=!0;fp.exports=Y5()(X5.isElement,Z5)}else fp.exports=q5()();var K5=fp.exports;const _=y.getDefaultExportFromCjs(K5);function G2(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=G2(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function He(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=G2(e))&&(n&&(n+=" "),n+=t);return n}function St(e,t,r=void 0){const n={};for(const i in e){const a=e[i];let o="",l=!0;for(let u=0;u<a.length;u+=1){const c=a[u];c&&(o+=(l===!0?"":" ")+t(c),l=!1,r&&r[c]&&(o+=" "+r[c]))}n[i]=o}return n}function Q5(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 U2(e,t,r,n){const i=e[t];if(i==null||!Number.isInteger(i)){const a=Q5(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function Y2(e,t,...r){return e[t]===void 0?null:U2(e,t,...r)}function pp(){return null}Y2.isRequired=U2;pp.isRequired=pp;const mn=process.env.NODE_ENV==="production"?pp:Y2,vy=e=>e,J5=()=>{let e=vy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=vy}}},eL=J5(),tL={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 dt(e,t,r="Mui"){const n=tL[t];return n?`${r}-${n}`:`${eL.generate(e)}-${t}`}function ht(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=dt(e,i,r)}),n}function rL(e){return dt("MuiPagination",e)}ht("MuiPagination",["root","ul","outlined","text"]);function l0({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=Q.useRef(e!==void 0),[a,o]=Q.useState(t),l=i?e:a;if(process.env.NODE_ENV!=="production"){Q.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${n} state of ${r} to be ${i?"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(`
21
+ `))},[n,r,e]);const{current:c}=Q.useRef(t);Q.useEffect(()=>{!i&&!Object.is(c,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(`
22
+ `))},[JSON.stringify(t)])}const u=Q.useCallback(c=>{i||o(c)},[]);return[l,u]}function nL(e={}){const G=e,{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:i=1,disabled:a=!1,hideNextButton:o=!1,hidePrevButton:l=!1,onChange:u,page:c,showFirstButton:h=!1,showLastButton:f=!1,siblingCount:p=1}=G,g=xe(G,["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"]),[b,v]=l0({controlled:c,default:i,name:r,state:"page"}),w=(K,Z)=>{c||v(Z),u&&u(K,Z)},C=(K,Z)=>{const O=Z-K+1;return Array.from({length:O},($,X)=>K+X)},T=C(1,Math.min(t,n)),E=C(Math.max(n-t+1,t+1),n),S=Math.max(Math.min(b-p,n-t-p*2-1),t+2),P=Math.min(Math.max(b+p,t+p*2+2),n-t-1),R=[...h?["first"]:[],...l?[]:["previous"],...T,...S>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...C(S,P),...P<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...E,...o?[]:["next"],...f?["last"]:[]],N=K=>{switch(K){case"first":return 1;case"previous":return b-1;case"next":return b+1;case"last":return n;default:return null}},W=R.map(K=>typeof K=="number"?{onClick:Z=>{w(Z,K)},type:"page",page:K,selected:K===b,disabled:a,"aria-current":K===b?"page":void 0}:{onClick:Z=>{w(Z,N(K))},type:K,page:N(K),selected:!1,disabled:a||!K.includes("ellipsis")&&(K==="next"||K==="last"?b>=n:b<=1)});return M({items:W},g)}function di(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function iL(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function u0(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}].`),iL(e,t,r)}function aL(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)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function hi(e){if(e.type)return e;if(e.charAt(0)==="#")return hi(aL(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
23
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:di(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
24
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:di(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const oL=e=>{const t=hi(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},us=(e,t)=>{try{return oL(e)}catch(r){return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function kc(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function q2(e){e=hi(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(c,h=(c+r/30)%12)=>i-a*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const u=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),kc({type:l,values:u})}function mp(e){e=hi(e);let t=e.type==="hsl"||e.type==="hsla"?hi(q2(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:cn((r+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function yy(e,t){const r=mp(e),n=mp(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function yt(e,t){return e=hi(e),t=u0(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,kc(e)}function du(e,t,r){try{return yt(e,t)}catch(n){return e}}function Dc(e,t){if(e=hi(e),t=u0(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return kc(e)}function st(e,t,r){try{return Dc(e,t)}catch(n){return e}}function Nc(e,t){if(e=hi(e),t=u0(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return kc(e)}function lt(e,t,r){try{return Nc(e,t)}catch(n){return e}}function gp(e,t=.15){return mp(e)>.5?Dc(e,t):Nc(e,t)}function hu(e,t,r){try{return gp(e,t)}catch(n){return e}}const sL=Q.createContext(),Lc=()=>{const e=Q.useContext(sL);return e!=null?e:!1};function lL(e){return dt("MuiPaginationItem",e)}const cr=ht("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),ul=_.oneOfType([_.func,_.object]);function qn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function uL(e){const{prototype:t={}}=e;return!!t.isReactComponent}function cL(e,t,r,n,i){const a=e[t],o=i||t;if(a==null||typeof window=="undefined")return null;let l;return typeof a=="function"&&!uL(a)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${n} \`${o}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const c0=qn(_.elementType,cL);function tc(e){try{return e.matches(":focus-visible")}catch(t){process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
25
+ `))}return!1}function Ie(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":di(7));return e.charAt(0).toUpperCase()+e.slice(1)}var vp={exports:{}},rt={};/**
26
+ * @license React
27
+ * react-is.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var by;function dL(){if(by)return rt;by=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.for("react.client.reference");function b(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case e:switch(v=v.type,v){case r:case i:case n:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case o:case l:case f:case h:return v;case a:return v;default:return w}}case t:return w}}}return rt.ContextConsumer=a,rt.ContextProvider=o,rt.Element=e,rt.ForwardRef=l,rt.Fragment=r,rt.Lazy=f,rt.Memo=h,rt.Portal=t,rt.Profiler=i,rt.StrictMode=n,rt.Suspense=u,rt.SuspenseList=c,rt.isContextConsumer=function(v){return b(v)===a},rt.isContextProvider=function(v){return b(v)===o},rt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},rt.isForwardRef=function(v){return b(v)===l},rt.isFragment=function(v){return b(v)===r},rt.isLazy=function(v){return b(v)===f},rt.isMemo=function(v){return b(v)===h},rt.isPortal=function(v){return b(v)===t},rt.isProfiler=function(v){return b(v)===i},rt.isStrictMode=function(v){return b(v)===n},rt.isSuspense=function(v){return b(v)===u},rt.isSuspenseList=function(v){return b(v)===c},rt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===u||v===c||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===h||v.$$typeof===o||v.$$typeof===a||v.$$typeof===l||v.$$typeof===g||v.getModuleId!==void 0)},rt.typeOf=b,rt}var nt={};/**
34
+ * @license React
35
+ * react-is.development.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var _y;function hL(){return _y||(_y=1,process.env.NODE_ENV!=="production"&&function(){function e(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case t:switch(v=v.type,v){case n:case a:case i:case c:case h:return v;default:switch(v=v&&v.$$typeof,v){case l:case u:case p:case f:return v;case o:return v;default:return w}}case r:return w}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");nt.ContextConsumer=o,nt.ContextProvider=l,nt.Element=t,nt.ForwardRef=u,nt.Fragment=n,nt.Lazy=p,nt.Memo=f,nt.Portal=r,nt.Profiler=a,nt.StrictMode=i,nt.Suspense=c,nt.SuspenseList=h,nt.isContextConsumer=function(v){return e(v)===o},nt.isContextProvider=function(v){return e(v)===l},nt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},nt.isForwardRef=function(v){return e(v)===u},nt.isFragment=function(v){return e(v)===n},nt.isLazy=function(v){return e(v)===p},nt.isMemo=function(v){return e(v)===f},nt.isPortal=function(v){return e(v)===r},nt.isProfiler=function(v){return e(v)===a},nt.isStrictMode=function(v){return e(v)===i},nt.isSuspense=function(v){return e(v)===c},nt.isSuspenseList=function(v){return e(v)===h},nt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===a||v===i||v===c||v===h||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===f||v.$$typeof===l||v.$$typeof===o||v.$$typeof===u||v.$$typeof===b||v.getModuleId!==void 0)},nt.typeOf=e}()),nt}process.env.NODE_ENV==="production"?vp.exports=dL():vp.exports=hL();var rc=vp.exports;function gn(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 X2(e){if(Q.isValidElement(e)||rc.isValidElementType(e)||!gn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=X2(e[r])}),t}function gr(e,t,r={clone:!0}){const n=r.clone?M({},e):e;return gn(e)&&gn(t)&&Object.keys(t).forEach(i=>{Q.isValidElement(t[i])||rc.isValidElementType(t[i])?n[i]=t[i]:gn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&gn(e[i])?n[i]=gr(e[i],t[i],r):r.clone?n[i]=gn(t[i])?X2(t[i]):t[i]:n[i]=t[i]}),n}function ws(e,t){return t?gr(e,t,{clone:!1}):e}const yi=process.env.NODE_ENV!=="production"?_.oneOfType([_.number,_.string,_.object,_.array]):{};function fL(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{var o,l;const a=/min-width:\s*([0-9.]+)/;return+(((o=n.match(a))==null?void 0:o[1])||0)-+(((l=i.match(a))==null?void 0:l[1])||0)});return r.length?r.reduce((n,i)=>{const a=t[i];return delete n[i],n[i]=a,n},M({},t)):t}function pL(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function mL(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
42
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:di(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function gL(e){const t=(a,o)=>a.replace("@media",o?`@container ${o}`:"@container");function r(a,o){a.up=(...l)=>t(e.breakpoints.up(...l),o),a.down=(...l)=>t(e.breakpoints.down(...l),o),a.between=(...l)=>t(e.breakpoints.between(...l),o),a.only=(...l)=>t(e.breakpoints.only(...l),o),a.not=(...l)=>{const u=t(e.breakpoints.not(...l),o);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},i=a=>(r(n,a),n);return r(i),I(M({},e),{containerQueries:i})}const Ic={xs:0,sm:600,md:900,lg:1200,xl:1536},wy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ic[e]}px)`},vL={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Ic[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Cn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||wy;return t.reduce((o,l,u)=>(o[a.up(a.keys[u])]=r(t[u]),o),{})}if(typeof t=="object"){const a=n.breakpoints||wy;return Object.keys(t).reduce((o,l)=>{if(pL(a.keys,l)){const u=mL(n.containerQueries?n:vL,l);u&&(o[u]=r(t[l],l))}else if(Object.keys(a.values||Ic).includes(l)){const u=a.up(l);o[u]=r(t[l],l)}else{const u=l;o[u]=t[u]}return o},{})}return r(t)}function Z2(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function K2(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function yL(e,...t){const r=Z2(e),n=[r,...t].reduce((i,a)=>gr(i,a),{});return K2(Object.keys(r),n)}function bL(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,a)=>{a<e.length&&(r[i]=!0)}):n.forEach(i=>{e[i]!=null&&(r[i]=!0)}),r}function _L({values:e,breakpoints:t,base:r}){const n=r||bL(e,t),i=Object.keys(n);if(i.length===0)return e;let a;return i.reduce((o,l,u)=>(Array.isArray(e)?(o[l]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(o[l]=e[l]!=null?e[l]:e[a],a=l):o[l]=e,o),{})}function $c(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function nc(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=$c(e,r)||n,t&&(i=t(i,n,e)),i}function Ft(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const l=o[t],u=o.theme,c=$c(u,n)||{};return Cn(o,l,f=>{let p=nc(c,i,f);return f===p&&typeof f=="string"&&(p=nc(c,i,`${t}${f==="default"?"":Ie(f)}`,f)),r===!1?p:{[r]:p}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:yi}:{},a.filterProps=[t],a}function wL(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const xL={m:"margin",p:"padding"},CL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},xy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},TL=wL(e=>{if(e.length>2)if(xy[e])e=xy[e];else return[e];const[t,r]=e.split(""),n=xL[t],i=CL[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Fc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],ML=[...Fc,...zc];function cl(e,t,r,n){var a;const i=(a=$c(e,t,!0))!=null?a:r;return typeof i=="number"||typeof i=="string"?o=>typeof o=="string"?o:(process.env.NODE_ENV!=="production"&&typeof o!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${o}.`),typeof i=="string"?`calc(${o} * ${i})`:i*o):Array.isArray(i)?o=>{if(typeof o=="string")return o;const l=Math.abs(o);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>i.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${l} > ${i.length-1}, you need to add the missing values.`].join(`
43
+ `)):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(`
44
+ `)));const u=i[l];return o>=0?u:typeof u=="number"?-u:`-${u}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
45
+ `)),()=>{})}function Bc(e){return cl(e,"spacing",8,"spacing")}function ho(e,t){return typeof t=="string"||t==null?t:e(t)}function SL(e,t){return r=>e.reduce((n,i)=>(n[i]=ho(t,r),n),{})}function EL(e,t,r,n){if(!t.includes(r))return null;const i=TL(r),a=SL(i,n),o=e[r];return Cn(e,o,a)}function Q2(e,t){const r=Bc(e.theme);return Object.keys(e).map(n=>EL(e,t,n,r)).reduce(ws,{})}function At(e){return Q2(e,Fc)}At.propTypes=process.env.NODE_ENV!=="production"?Fc.reduce((e,t)=>(e[t]=yi,e),{}):{};At.filterProps=Fc;function Rt(e){return Q2(e,zc)}Rt.propTypes=process.env.NODE_ENV!=="production"?zc.reduce((e,t)=>(e[t]=yi,e),{}):{};Rt.filterProps=zc;process.env.NODE_ENV!=="production"&&ML.reduce((e,t)=>(e[t]=yi,e),{});function Hc(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?ws(i,t[a](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Vr(e){return typeof e!="number"?e:`${e}px solid`}function Zr(e,t){return Ft({prop:e,themeKey:"borders",transform:t})}const PL=Zr("border",Vr),AL=Zr("borderTop",Vr),RL=Zr("borderRight",Vr),OL=Zr("borderBottom",Vr),kL=Zr("borderLeft",Vr),DL=Zr("borderColor"),NL=Zr("borderTopColor"),LL=Zr("borderRightColor"),IL=Zr("borderBottomColor"),$L=Zr("borderLeftColor"),FL=Zr("outline",Vr),zL=Zr("outlineColor"),Wc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=cl(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:ho(t,n)});return Cn(e,e.borderRadius,r)}return null};Wc.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:yi}:{};Wc.filterProps=["borderRadius"];Hc(PL,AL,RL,OL,kL,DL,NL,LL,IL,$L,Wc,FL,zL);const jc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=cl(e.theme,"spacing",8,"gap"),r=n=>({gap:ho(t,n)});return Cn(e,e.gap,r)}return null};jc.propTypes=process.env.NODE_ENV!=="production"?{gap:yi}:{};jc.filterProps=["gap"];const Vc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=cl(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:ho(t,n)});return Cn(e,e.columnGap,r)}return null};Vc.propTypes=process.env.NODE_ENV!=="production"?{columnGap:yi}:{};Vc.filterProps=["columnGap"];const Gc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=cl(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:ho(t,n)});return Cn(e,e.rowGap,r)}return null};Gc.propTypes=process.env.NODE_ENV!=="production"?{rowGap:yi}:{};Gc.filterProps=["rowGap"];const BL=Ft({prop:"gridColumn"}),HL=Ft({prop:"gridRow"}),WL=Ft({prop:"gridAutoFlow"}),jL=Ft({prop:"gridAutoColumns"}),VL=Ft({prop:"gridAutoRows"}),GL=Ft({prop:"gridTemplateColumns"}),UL=Ft({prop:"gridTemplateRows"}),YL=Ft({prop:"gridTemplateAreas"}),qL=Ft({prop:"gridArea"});Hc(jc,Vc,Gc,BL,HL,WL,jL,VL,GL,UL,YL,qL);function Ua(e,t){return t==="grey"?t:e}const XL=Ft({prop:"color",themeKey:"palette",transform:Ua}),ZL=Ft({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ua}),KL=Ft({prop:"backgroundColor",themeKey:"palette",transform:Ua});Hc(XL,ZL,KL);function Pr(e){return e<=1&&e!==0?`${e*100}%`:e}const QL=Ft({prop:"width",transform:Pr}),d0=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var i,a,o,l,u;const n=((o=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:o[r])||Ic[r];return n?((u=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Pr(r)}};return Cn(e,e.maxWidth,t)}return null};d0.filterProps=["maxWidth"];const JL=Ft({prop:"minWidth",transform:Pr}),eI=Ft({prop:"height",transform:Pr}),tI=Ft({prop:"maxHeight",transform:Pr}),rI=Ft({prop:"minHeight",transform:Pr});Ft({prop:"size",cssProperty:"width",transform:Pr});Ft({prop:"size",cssProperty:"height",transform:Pr});const nI=Ft({prop:"boxSizing"});Hc(QL,d0,JL,eI,tI,rI,nI);const dl={border:{themeKey:"borders",transform:Vr},borderTop:{themeKey:"borders",transform:Vr},borderRight:{themeKey:"borders",transform:Vr},borderBottom:{themeKey:"borders",transform:Vr},borderLeft:{themeKey:"borders",transform:Vr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wc},color:{themeKey:"palette",transform:Ua},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ua},backgroundColor:{themeKey:"palette",transform:Ua},p:{style:Rt},pt:{style:Rt},pr:{style:Rt},pb:{style:Rt},pl:{style:Rt},px:{style:Rt},py:{style:Rt},padding:{style:Rt},paddingTop:{style:Rt},paddingRight:{style:Rt},paddingBottom:{style:Rt},paddingLeft:{style:Rt},paddingX:{style:Rt},paddingY:{style:Rt},paddingInline:{style:Rt},paddingInlineStart:{style:Rt},paddingInlineEnd:{style:Rt},paddingBlock:{style:Rt},paddingBlockStart:{style:Rt},paddingBlockEnd:{style:Rt},m:{style:At},mt:{style:At},mr:{style:At},mb:{style:At},ml:{style:At},mx:{style:At},my:{style:At},margin:{style:At},marginTop:{style:At},marginRight:{style:At},marginBottom:{style:At},marginLeft:{style:At},marginX:{style:At},marginY:{style:At},marginInline:{style:At},marginInlineStart:{style:At},marginInlineEnd:{style:At},marginBlock:{style:At},marginBlockStart:{style:At},marginBlockEnd:{style:At},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:jc},rowGap:{style:Gc},columnGap:{style:Vc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pr},maxWidth:{style:d0},minWidth:{transform:Pr},height:{transform:Pr},maxHeight:{transform:Pr},minHeight:{transform:Pr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function iI(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function aI(e,t){return typeof e=="function"?e(t):e}function oI(){function e(r,n,i,a){const o={[r]:n,theme:i},l=a[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:h,style:f}=l;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=$c(i,c)||{};return f?f(o):Cn(o,n,b=>{let v=nc(p,h,b);return b===v&&typeof b=="string"&&(v=nc(p,h,`${r}${b==="default"?"":Ie(b)}`,b)),u===!1?v:{[u]:v}})}function t(r){var l;const{sx:n,theme:i={}}=r||{};if(!n)return null;const a=(l=i.unstable_sxConfig)!=null?l:dl;function o(u){let c=u;if(typeof u=="function")c=u(i);else if(typeof u!="object")return u;if(!c)return null;const h=Z2(i.breakpoints),f=Object.keys(h);let p=h;return Object.keys(c).forEach(g=>{const b=aI(c[g],i);if(b!=null)if(typeof b=="object")if(a[g])p=ws(p,e(g,b,i,a));else{const v=Cn({theme:i},b,w=>({[g]:w}));iI(v,b)?p[g]=t({sx:b,theme:i}):p=ws(p,v)}else p=ws(p,e(g,b,i,a))}),fL(i,K2(f,p))}return Array.isArray(n)?n.map(o):o(n)}return t}const Ja=oI();Ja.filterProps=["sx"];const sI=e=>{var n,i;const t={systemProps:{},otherProps:{}},r=(i=(n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)!=null?i:dl;return Object.keys(e).forEach(a=>{r[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function J2(e){const o=e,{sx:t}=o,r=xe(o,["sx"]),{systemProps:n,otherProps:i}=sI(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...l)=>{const u=t(...l);return gn(u)?M(M({},n),u):n}:a=M(M({},n),t),I(M({},i),{sx:a})}exports.jsx=function(t,r){var n=arguments;if(r==null||!y.hasOwn.call(r,"css"))return Q.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=y.Emotion$1,a[1]=y.createEmotionProps(t,r);for(var o=2;o<i;o++)a[o]=n[o];return Q.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(exports.jsx||(exports.jsx={}));function Uc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return y.serializeStyles(t)}function hl(){var e=Uc.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var lI=/^((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|fetchpriority|fetchPriority|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)-.*))$/,ew=y.memoize(function(e){return lI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),uI=!1,cI=ew,dI=function(t){return t!=="theme"},Cy=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?cI:dI},Ty=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},hI=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return y.registerStyles(r,n,i),y.useInsertionEffectAlwaysWithSyncFallback(function(){return y.insertStyles(r,n,i)}),null},fI=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var l=Ty(t,r,n),u=l||Cy(i),c=!u("as");return function(){var h=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)f.push.apply(f,h);else{var p=h[0];f.push(p[0]);for(var g=h.length,b=1;b<g;b++)f.push(h[b],p[b])}var v=y.withEmotionCache(function(w,C,T){var E=c&&w.as||i,S="",P=[],R=w;if(w.theme==null){R={};for(var N in w)R[N]=w[N];R.theme=Q.useContext(y.ThemeContext)}typeof w.className=="string"?S=y.getRegisteredStyles(C.registered,P,w.className):w.className!=null&&(S=w.className+" ");var W=y.serializeStyles(f.concat(P),C.registered,R);S+=C.key+"-"+W.name,o!==void 0&&(S+=" "+o);var G=c&&l===void 0?Cy(E):u,K={};for(var Z in w)c&&Z==="as"||G(Z)&&(K[Z]=w[Z]);return K.className=S,T&&(K.ref=T),Q.createElement(Q.Fragment,null,Q.createElement(hI,{cache:C,serialized:W,isStringTag:typeof E=="string"}),Q.createElement(E,K))});return v.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=f,v.__emotion_forwardProp=l,Object.defineProperty(v,"toString",{value:function(){return o===void 0&&uI?"NO_COMPONENT_SELECTOR":"."+o}}),v.withComponent=function(w,C){var T=e(w,Ns({},r,C,{shouldForwardProp:Ty(v,C,!0)}));return T.apply(void 0,f)},v}},pI=["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"],ic=fI.bind(null);pI.forEach(function(e){ic[e]=ic(e)});/**
46
+ * @mui/styled-engine v6.4.11
47
+ *
48
+ * @license MIT
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE file in the root directory of this source tree.
51
+ */function mI(e,t){const r=ic(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const i=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
52
+ `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}function gI(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const My=[];function Sy(e){return My[0]=e,y.serializeStyles(My)}const vI=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)=>I(M({},r),{[n.key]:n.val}),{})};function yI(e){const p=e,{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=p,i=xe(p,["values","unit","step"]),a=vI(t),o=Object.keys(a);function l(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-n/100}${r})`}function c(g,b){const v=o.indexOf(b);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r}) and (max-width:${(v!==-1&&typeof t[o[v]]=="number"?t[o[v]]:b)-n/100}${r})`}function h(g){return o.indexOf(g)+1<o.length?c(g,o[o.indexOf(g)+1]):l(g)}function f(g){const b=o.indexOf(g);return b===0?l(o[1]):b===o.length-1?u(o[b]):c(g,o[o.indexOf(g)+1]).replace("@media","@media not all and")}return M({keys:o,values:a,up:l,down:u,between:c,only:h,not:f,unit:r},i)}const bI={borderRadius:4};function tw(e=8,t=Bc({spacing:e})){if(e.mui)return e;const 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(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" "));return r.mui=!0,r}function _I(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function Yc(e={},...t){const h=e,{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=h,o=xe(h,["breakpoints","palette","spacing","shape"]),l=yI(r),u=tw(i);let c=gr({breakpoints:l,direction:"ltr",components:{},palette:M({mode:"light"},n),spacing:u,shape:M(M({},bI),a)},o);return c=gL(c),c.applyStyles=_I,c=t.reduce((f,p)=>gr(f,p),c),c.unstable_sxConfig=M(M({},dl),o==null?void 0:o.unstable_sxConfig),c.unstable_sx=function(p){return Ja({sx:p,theme:this})},c}function wI(e){return Object.keys(e).length===0}function xI(e=null){const t=Q.useContext(y.ThemeContext);return!t||wI(t)?e:t}const CI=Yc();function rw(e=CI){return xI(e)}function nw(e,t=""){return e.displayName||e.name||t}function Ey(e,t,r){const n=nw(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function TI(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return nw(e,"Component");if(typeof e=="object")switch(e.$$typeof){case rc.ForwardRef:return Ey(e,e.render,"ForwardRef");case rc.Memo:return Ey(e,e.type,"memo");default:return}}}function iw(e){const i=e,{variants:t}=i,r=xe(i,["variants"]),n={variants:t,style:Sy(r),isProcessed:!0};return n.style===r||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=Sy(a.style))}),n}const MI=Yc();function Fh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function SI(e){return e?(t,r)=>r[e]:null}function EI(e,t,r){e.theme=RI(e.theme)?r:e.theme[t]||e.theme}function Lu(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Lu(e,i));if(Array.isArray(r==null?void 0:r.variants)){let i;if(r.isProcessed)i=r.style;else{const n=r,{variants:a}=n;i=xe(n,["variants"])}return aw(e,r.variants,[i])}return r!=null&&r.isProcessed?r.style:r}function aw(e,t,r=[]){var i;let n;e:for(let a=0;a<t.length;a+=1){const o=t[a];if(typeof o.props=="function"){if(n!=null||(n=I(M(M({},e),e.ownerState),{ownerState:e.ownerState})),!o.props(n))continue}else for(const l in o.props)if(e[l]!==o.props[l]&&((i=e.ownerState)==null?void 0:i[l])!==o.props[l])continue e;typeof o.style=="function"?(n!=null||(n=I(M(M({},e),e.ownerState),{ownerState:e.ownerState})),r.push(o.style(n))):r.push(o.style)}return r}function ow(e={}){const{themeId:t,defaultTheme:r=MI,rootShouldForwardProp:n=Fh,slotShouldForwardProp:i=Fh}=e;function a(l){EI(l,t,r)}return(l,u={})=>{gI(l,R=>R.filter(N=>N!==Ja));const P=u,{name:c,slot:h,skipVariantsResolver:f,skipSx:p,overridesResolver:g=SI(sw(h))}=P,b=xe(P,["name","slot","skipVariantsResolver","skipSx","overridesResolver"]),v=f!==void 0?f:h&&h!=="Root"&&h!=="root"||!1,w=p||!1;let C=Fh;h==="Root"||h==="root"?C=n:h?C=i:OI(l)&&(C=void 0);const T=mI(l,M({shouldForwardProp:C,label:AI(c,h)},b)),E=R=>{if(R.__emotion_real===R)return R;if(typeof R=="function")return function(W){return Lu(W,R)};if(gn(R)){const N=iw(R);return N.variants?function(G){return Lu(G,N)}:N.style}return R},S=(...R)=>{const N=[],W=R.map(E),G=[];if(N.push(a),c&&g&&G.push(function($){var H,U;const B=(U=(H=$.theme.components)==null?void 0:H[c])==null?void 0:U.styleOverrides;if(!B)return null;const V={};for(const te in B)V[te]=Lu($,B[te]);return g($,V)}),c&&!v&&G.push(function($){var V,H;const X=$.theme,B=(H=(V=X==null?void 0:X.components)==null?void 0:V[c])==null?void 0:H.variants;return B?aw($,B):null}),w||G.push(Ja),Array.isArray(W[0])){const O=W.shift(),$=new Array(N.length).fill(""),X=new Array(G.length).fill("");let B;B=[...$,...O,...X],B.raw=[...$,...O.raw,...X],N.unshift(B)}const K=[...N,...W,...G],Z=T(...K);return l.muiName&&(Z.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(Z.displayName=PI(c,h,l)),Z};return T.withConfig&&(S.withConfig=T.withConfig),S}}function PI(e,t,r){return e?`${e}${Ie(t||"")}`:`Styled(${TI(r)})`}function AI(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${sw(t||"Root")}`),r}function RI(e){for(const t in e)return!1;return!0}function OI(e){return typeof e=="string"&&e.charCodeAt(0)>96}function sw(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ls(e,t){const r=M({},t);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const i=n;if(i==="components"||i==="slots")r[i]=M(M({},e[i]),r[i]);else if(i==="componentsProps"||i==="slotProps"){const a=e[i],o=t[i];if(!o)r[i]=a||{};else if(!a)r[i]=o;else{r[i]=M({},o);for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const u=l;r[i][u]=Ls(a[u],o[u])}}}else r[i]===void 0&&(r[i]=e[i])}return r}const fi=typeof window!="undefined"?Q.useLayoutEffect:Q.useEffect;function kI(e){const{prototype:t={}}=e;return!!t.isReactComponent}function lw(e,t,r,n,i){const a=e[t],o=i||t;if(a==null||typeof window=="undefined")return null;let l;const u=a.type;return typeof u=="function"&&!kI(u)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${n} \`${o}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ta=qn(_.element,lw);ta.isRequired=qn(_.element.isRequired,lw);const DI="exact-prop: ​";function h0(e){return process.env.NODE_ENV==="production"?e:I(M({},e),{[DI]: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 jn(e,t,r,n,i){if(process.env.NODE_ENV==="production")return null;const a=e[t],o=i||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${n} \`${o}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function yp(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function NI(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Or(e){return e&&e.ownerDocument||document}function Ui(e){return Or(e).defaultView||window}function Py(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Ay=0;function LI(e){const[t,r]=Q.useState(e),n=e||t;return Q.useEffect(()=>{t==null&&(Ay+=1,r(`mui-${Ay}`))},[t]),n}const II=M({},Q),Ry=II.useId;function qc(e){if(Ry!==void 0){const t=Ry();return e!=null?e:t}return LI(e)}function Bn(e){const t=Q.useRef(e);return fi(()=>{t.current=e}),Q.useRef((...r)=>(0,t.current)(...r)).current}function vr(...e){const t=Q.useRef(void 0),r=Q.useCallback(n=>{const i=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const o=a,l=o(n);return typeof l=="function"?l:()=>{o(null)}}return a.current=n,()=>{a.current=null}});return()=>{i.forEach(a=>a==null?void 0:a())}},e);return Q.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}const Oy={};function uw(e,t){const r=Q.useRef(Oy);return r.current===Oy&&(r.current=e(t)),r}const $I=[];function FI(e){Q.useEffect(e,$I)}class Xc{constructor(){Xe(this,"currentId",null);Xe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Xe(this,"disposeEffect",()=>this.clear)}static create(){return new Xc}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function $i(){const e=uw(Xc.create).current;return FI(e.disposeEffect),e}function cw(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function zI(e){return typeof e=="string"}function dw(e,t,r){return e===void 0||zI(e)?t:I(M({},t),{ownerState:M(M({},t.ownerState),r)})}function hw(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 ky(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 fw(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const g=He(r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),b=M(M(M({},r==null?void 0:r.style),i==null?void 0:i.style),n==null?void 0:n.style),v=M(M(M({},r),i),n);return g.length>0&&(v.className=g),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const o=hw(M(M({},i),n)),l=ky(n),u=ky(i),c=t(o),h=He(c==null?void 0:c.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),f=M(M(M(M({},c==null?void 0:c.style),r==null?void 0:r.style),i==null?void 0:i.style),n==null?void 0:n.style),p=M(M(M(M({},c),r),u),l);return h.length>0&&(p.className=h),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}function pw(e,t,r){return typeof e=="function"?e(t,r):e}function f0(e){var p;const f=e,{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1}=f,a=xe(f,["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"]),o=i?{}:pw(r,n),{props:l,internalRef:u}=fw(I(M({},a),{externalSlotProps:o})),c=vr(u,o==null?void 0:o.ref,(p=e.additionalProps)==null?void 0:p.ref);return dw(t,I(M({},l),{ref:c}),n)}function fo(e){var t;return parseInt(Q.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const BI=Q.createContext(void 0);function HI(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?Ls(i.defaultProps,n):!i.styleOverrides&&!i.variants?Ls(i,n):n}function WI({props:e,name:t}){const r=Q.useContext(BI);return HI({props:e,name:t,theme:{components:r}})}const Dy={theme:void 0};function jI(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&(Dy.theme=i.theme,a=iw(e(Dy)),t=a,r=i.theme),a}}function VI(e=""){function t(...n){if(!n.length)return"";const i=n[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${e?`${e}-`:""}${n}${t(...i)})`}const Ny=(e,t,r,n=[])=>{let i=e;t.forEach((a,o)=>{o===t.length-1?Array.isArray(i)?i[Number(a)]=r:i&&typeof i=="object"&&(i[a]=r):i&&typeof i=="object"&&(i[a]||(i[a]=n.includes(a)?[]:{}),i=i[a])})},GI=(e,t,r)=>{function n(i,a=[],o=[]){Object.entries(i).forEach(([l,u])=>{(!r||r&&!r([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...a,l],Array.isArray(u)?[...o,l]:o):t([...a,l],u,o))})}n(e)},UI=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function zh(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},o={};return GI(e,(l,u,c)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(l,u))){const h=`--${r?`${r}-`:""}${l.join("-")}`,f=UI(l,u);Object.assign(i,{[h]:f}),Ny(a,l,`var(${h})`,c),Ny(o,l,`var(${h}, ${f})`,c)}},l=>l[0]==="vars"),{css:i,vars:a,varsWithDefaults:o}}function YI(e,t={}){const{getSelector:r=w,disableCssColorScheme:n,colorSchemeSelector:i}=t,E=e,{colorSchemes:a={},components:o,defaultColorScheme:l="light"}=E,u=xe(E,["colorSchemes","components","defaultColorScheme"]),{vars:c,css:h,varsWithDefaults:f}=zh(u,t);let p=f;const g={},S=a,{[l]:b}=S,v=xe(S,[uu(l)]);if(Object.entries(v||{}).forEach(([P,R])=>{const{vars:N,css:W,varsWithDefaults:G}=zh(R,t);p=gr(p,G),g[P]={css:W,vars:N}}),b){const{css:P,vars:R,varsWithDefaults:N}=zh(b,t);p=gr(p,N),g[l]={css:P,vars:R}}function w(P,R){var W,G;let N=i;if(i==="class"&&(N=".%s"),i==="data"&&(N="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(N=`[${i}="%s"]`),P){if(N==="media")return e.defaultColorScheme===P?":root":{[`@media (prefers-color-scheme: ${((G=(W=a[P])==null?void 0:W.palette)==null?void 0:G.mode)||P})`]:{":root":R}};if(N)return e.defaultColorScheme===P?`:root, ${N.replace("%s",String(P))}`:N.replace("%s",String(P))}return":root"}return{vars:p,generateThemeVars:()=>{let P=M({},c);return Object.entries(g).forEach(([,{vars:R}])=>{P=gr(P,R)}),P},generateStyleSheets:()=>{var Z,O;const P=[],R=e.defaultColorScheme||"light";function N($,X){Object.keys(X).length&&P.push(typeof $=="string"?{[$]:M({},X)}:$)}N(r(void 0,M({},h)),h);const K=g,{[R]:W}=K,G=xe(K,[uu(R)]);if(W){const{css:$}=W,X=(O=(Z=a[R])==null?void 0:Z.palette)==null?void 0:O.mode,B=M(!n&&X?{colorScheme:X}:{},$);N(r(R,M({},B)),B)}return Object.entries(G).forEach(([$,{css:X}])=>{var H,U;const B=(U=(H=a[$])==null?void 0:H.palette)==null?void 0:U.mode,V=M(!n&&B?{colorScheme:B}:{},X);N(r($,M({},V)),V)}),P}}}function qI(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Is={black:"#000",white:"#fff"},XI={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"},_a={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"},wa={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"},Xo={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"},xa={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"},Ca={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"},Ta={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"};function mw(){return{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:Is.white,default:Is.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}}}const ZI=mw();function gw(){return{text:{primary:Is.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:Is.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}}}const Ly=gw();function Iy(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Nc(e.main,i):t==="dark"&&(e.dark=Dc(e.main,a)))}function KI(e="light"){return e==="dark"?{main:xa[200],light:xa[50],dark:xa[400]}:{main:xa[700],light:xa[400],dark:xa[800]}}function QI(e="light"){return e==="dark"?{main:_a[200],light:_a[50],dark:_a[400]}:{main:_a[500],light:_a[300],dark:_a[700]}}function JI(e="light"){return e==="dark"?{main:wa[500],light:wa[300],dark:wa[700]}:{main:wa[700],light:wa[400],dark:wa[800]}}function e6(e="light"){return e==="dark"?{main:Ca[400],light:Ca[300],dark:Ca[700]}:{main:Ca[700],light:Ca[500],dark:Ca[900]}}function t6(e="light"){return e==="dark"?{main:Ta[400],light:Ta[300],dark:Ta[700]}:{main:Ta[800],light:Ta[500],dark:Ta[900]}}function r6(e="light"){return e==="dark"?{main:Xo[400],light:Xo[300],dark:Xo[700]}:{main:"#ed6c02",light:Xo[500],dark:Xo[900]}}function p0(e){const v=e,{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=v,i=xe(v,["mode","contrastThreshold","tonalOffset"]),a=e.primary||KI(t),o=e.secondary||QI(t),l=e.error||JI(t),u=e.info||e6(t),c=e.success||t6(t),h=e.warning||r6(t);function f(w){const C=yy(w,Ly.text.primary)>=r?Ly.text.primary:ZI.text.primary;if(process.env.NODE_ENV!=="production"){const T=yy(w,C);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${C} on ${w}`,"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(`
53
+ `))}return C}const p=({color:w,name:C,mainShade:T=500,lightShade:E=300,darkShade:S=700})=>{if(w=M({},w),!w.main&&w[T]&&(w.main=w[T]),!w.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
54
+ The color object needs to have a \`main\` property or a \`${T}\` property.`:di(11,C?` (${C})`:"",T));if(typeof w.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
55
+ \`color.main\` should be a string, but \`${JSON.stringify(w.main)}\` was provided instead.
56
+
57
+ Did you intend to use one of the following approaches?
58
+
59
+ import { green } from "@mui/material/colors";
60
+
61
+ const theme1 = createTheme({ palette: {
62
+ primary: green,
63
+ } });
64
+
65
+ const theme2 = createTheme({ palette: {
66
+ primary: { main: green[500] },
67
+ } });`:di(12,C?` (${C})`:"",JSON.stringify(w.main)));return Iy(w,"light",E,n),Iy(w,"dark",S,n),w.contrastText||(w.contrastText=f(w.main)),w};let g;return t==="light"?g=mw():t==="dark"&&(g=gw()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),gr(M({common:M({},Is),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:h,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:XI,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},g),i)}function n6(e){const t={};return Object.entries(e).forEach(n=>{const[i,a]=n;typeof a=="object"&&(t[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function i6(e,t){return M({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}function a6(e){return Math.round(e*1e5)/1e5}const $y={textTransform:"uppercase"},Fy='"Roboto", "Helvetica", "Arial", sans-serif';function o6(e,t){const w=typeof t=="function"?t(e):t,{fontFamily:r=Fy,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:h}=w,f=xe(w,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=n/14,g=h||(C=>`${C/u*p}rem`),b=(C,T,E,S,P)=>M(M(M({fontFamily:r,fontWeight:C,fontSize:g(T),lineHeight:E},r===Fy?{letterSpacing:`${a6(S/T)}em`}:{}),P),c),v={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(o,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(o,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(o,14,1.75,.4,$y),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,$y),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return gr(M({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:l},v),f,{clone:!1})}const s6=.2,l6=.14,u6=.12;function vt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${s6})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${l6})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${u6})`].join(",")}const c6=["none",vt(0,2,1,-1,0,1,1,0,0,1,3,0),vt(0,3,1,-2,0,2,2,0,0,1,5,0),vt(0,3,3,-2,0,3,4,0,0,1,8,0),vt(0,2,4,-1,0,4,5,0,0,1,10,0),vt(0,3,5,-1,0,5,8,0,0,1,14,0),vt(0,3,5,-1,0,6,10,0,0,1,18,0),vt(0,4,5,-2,0,7,10,1,0,2,16,1),vt(0,5,5,-3,0,8,10,1,0,3,14,2),vt(0,5,6,-3,0,9,12,1,0,3,16,2),vt(0,6,6,-3,0,10,14,1,0,4,18,3),vt(0,6,7,-4,0,11,15,1,0,4,20,3),vt(0,7,8,-4,0,12,17,2,0,5,22,4),vt(0,7,8,-4,0,13,19,2,0,5,24,4),vt(0,7,9,-4,0,14,21,2,0,5,26,4),vt(0,8,9,-5,0,15,22,2,0,6,28,5),vt(0,8,10,-5,0,16,24,2,0,6,30,5),vt(0,8,11,-5,0,17,26,2,0,6,32,5),vt(0,9,11,-5,0,18,28,2,0,7,34,6),vt(0,9,12,-6,0,19,29,2,0,7,36,6),vt(0,10,13,-6,0,20,31,3,0,8,38,7),vt(0,10,13,-6,0,21,33,3,0,8,40,7),vt(0,10,14,-6,0,22,35,3,0,8,42,7),vt(0,11,14,-7,0,23,36,3,0,9,44,8),vt(0,11,15,-7,0,24,38,3,0,9,46,8)],d6={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)"},vw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zy(e){return`${Math.round(e)}ms`}function h6(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*cn(t,.25)+t/5)*10),3e3)}function f6(e){const t=M(M({},d6),e.easing),r=M(M({},vw),e.duration);return I(M({getAutoHeightDuration:h6,create:(i=["all"],a={})=>{const h=a,{duration:o=r.standard,easing:l=t.easeInOut,delay:u=0}=h,c=xe(h,["duration","easing","delay"]);if(process.env.NODE_ENV!=="production"){const f=g=>typeof g=="string",p=g=>!Number.isNaN(parseFloat(g));!f(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(o)&&!f(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),f(l)||console.error('MUI: Argument "easing" must be a string.'),!p(u)&&!f(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="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(`
68
+ `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(f=>`${f} ${typeof o=="string"?o:zy(o)} ${l} ${typeof u=="string"?u:zy(u)}`).join(",")}},e),{easing:t,duration:r})}const p6={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function m6(e){return gn(e)||typeof e=="undefined"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function yw(e={}){const t=M({},e);function r(n){const i=Object.entries(n);for(let a=0;a<i.length;a++){const[o,l]=i[a];!m6(l)||o.startsWith("unstable_")?delete n[o]:gn(l)&&(n[o]=M({},l),r(n[o]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
69
+
70
+ const theme = ${JSON.stringify(t,null,2)};
71
+
72
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
73
+ theme.transitions = createTransitions(theme.transitions || {});
74
+
75
+ export default theme;`}function bp(e={},...t){const g=e,{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:o={},typography:l={},shape:u}=g,c=xe(g,["breakpoints","mixins","spacing","palette","transitions","typography","shape"]);if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":di(20));const h=p0(a),f=Yc(e);let p=gr(f,{mixins:i6(f.breakpoints,n),palette:h,shadows:c6.slice(),typography:o6(h,l),transitions:f6(o),zIndex:M({},p6)});if(p=gr(p,c),p=t.reduce((b,v)=>gr(b,v),p),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],v=(w,C)=>{let T;for(T in w){const E=w[T];if(b.includes(T)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const S=dt("",T);console.error([`MUI: The \`${C}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(w,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
76
+ `))}w[T]={}}}};Object.keys(p.components).forEach(w=>{const C=p.components[w].styleOverrides;C&&w.startsWith("Mui")&&v(C,w)})}return p.unstable_sxConfig=M(M({},dl),c==null?void 0:c.unstable_sxConfig),p.unstable_sx=function(v){return Ja({sx:v,theme:this})},p.toRuntimeSource=yw,p}function _p(e){let t;return e<1?t=5.11916*cn(e,2):t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const g6=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=_p(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function bw(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function _w(e){return e==="dark"?g6:[]}function v6(e){const o=e,{palette:t={mode:"light"},opacity:r,overlays:n}=o,i=xe(o,["palette","opacity","overlays"]),a=p0(t);return M({palette:a,opacity:M(M({},bw(a.mode)),r),overlays:n||_w(a.mode)},i)}function y6(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const b6=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],_6=e=>(t,r)=>{const n=e.rootSelector||":root",i=e.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return b6(e.cssVarPrefix).forEach(l=>{o[l]=r[l],delete r[l]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:o}}:a?{[a.replace("%s",t)]:o,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:M(M({},r),o)}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function w6(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function se(e,t,r){!e[t]&&r&&(e[t]=r)}function cs(e){return typeof e!="string"||!e.startsWith("hsl")?e:q2(e)}function $n(e,t){`${t}Channel`in e||(e[`${t}Channel`]=us(cs(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
77
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function x6(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const dn=e=>{try{return e()}catch(t){}},C6=(e="mui")=>VI(e);function Bh(e,t,r,n){if(!t)return;t=t===!0?{}:t;const i=n==="dark"?"dark":"light";if(!r){e[n]=v6(I(M({},t),{palette:M({mode:i},t==null?void 0:t.palette)}));return}const l=bp(I(M({},r),{palette:M({mode:i},t==null?void 0:t.palette)})),{palette:a}=l,o=xe(l,["palette"]);return e[n]=I(M({},t),{palette:a,opacity:M(M({},bw(i)),t==null?void 0:t.opacity),overlays:(t==null?void 0:t.overlays)||_w(i)}),o}function T6(e={},...t){const G=e,{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:o=y6,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:u=":root"}=G,c=xe(G,["colorSchemes","defaultColorScheme","disableCssColorScheme","cssVarPrefix","shouldSkipGeneratingVar","colorSchemeSelector","rootSelector"]),h=Object.keys(r)[0],f=n||(r.light&&h!=="light"?"light":h),p=C6(a),K=r,{[f]:g,light:b,dark:v}=K,w=xe(K,[uu(f),"light","dark"]),C=M({},w);let T=g;if((f==="dark"&&!("dark"in r)||f==="light"&&!("light"in r))&&(T=!0),!T)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:di(21,f));const E=Bh(C,T,c,f);b&&!C.light&&Bh(C,b,void 0,"light"),v&&!C.dark&&Bh(C,v,void 0,"dark");let S=I(M({defaultColorScheme:f},E),{cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:p,colorSchemes:C,font:M(M({},n6(E.typography)),E.font),spacing:x6(c.spacing)});Object.keys(S.colorSchemes).forEach(Z=>{const O=S.colorSchemes[Z].palette,$=X=>{const B=X.split("-"),V=B[1],H=B[2];return p(X,O[V][H])};if(O.mode==="light"&&(se(O.common,"background","#fff"),se(O.common,"onBackground","#000")),O.mode==="dark"&&(se(O.common,"background","#000"),se(O.common,"onBackground","#fff")),w6(O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),O.mode==="light"){se(O.Alert,"errorColor",st(O.error.light,.6)),se(O.Alert,"infoColor",st(O.info.light,.6)),se(O.Alert,"successColor",st(O.success.light,.6)),se(O.Alert,"warningColor",st(O.warning.light,.6)),se(O.Alert,"errorFilledBg",$("palette-error-main")),se(O.Alert,"infoFilledBg",$("palette-info-main")),se(O.Alert,"successFilledBg",$("palette-success-main")),se(O.Alert,"warningFilledBg",$("palette-warning-main")),se(O.Alert,"errorFilledColor",dn(()=>O.getContrastText(O.error.main))),se(O.Alert,"infoFilledColor",dn(()=>O.getContrastText(O.info.main))),se(O.Alert,"successFilledColor",dn(()=>O.getContrastText(O.success.main))),se(O.Alert,"warningFilledColor",dn(()=>O.getContrastText(O.warning.main))),se(O.Alert,"errorStandardBg",lt(O.error.light,.9)),se(O.Alert,"infoStandardBg",lt(O.info.light,.9)),se(O.Alert,"successStandardBg",lt(O.success.light,.9)),se(O.Alert,"warningStandardBg",lt(O.warning.light,.9)),se(O.Alert,"errorIconColor",$("palette-error-main")),se(O.Alert,"infoIconColor",$("palette-info-main")),se(O.Alert,"successIconColor",$("palette-success-main")),se(O.Alert,"warningIconColor",$("palette-warning-main")),se(O.AppBar,"defaultBg",$("palette-grey-100")),se(O.Avatar,"defaultBg",$("palette-grey-400")),se(O.Button,"inheritContainedBg",$("palette-grey-300")),se(O.Button,"inheritContainedHoverBg",$("palette-grey-A100")),se(O.Chip,"defaultBorder",$("palette-grey-400")),se(O.Chip,"defaultAvatarColor",$("palette-grey-700")),se(O.Chip,"defaultIconColor",$("palette-grey-700")),se(O.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),se(O.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),se(O.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),se(O.LinearProgress,"primaryBg",lt(O.primary.main,.62)),se(O.LinearProgress,"secondaryBg",lt(O.secondary.main,.62)),se(O.LinearProgress,"errorBg",lt(O.error.main,.62)),se(O.LinearProgress,"infoBg",lt(O.info.main,.62)),se(O.LinearProgress,"successBg",lt(O.success.main,.62)),se(O.LinearProgress,"warningBg",lt(O.warning.main,.62)),se(O.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),se(O.Slider,"primaryTrack",lt(O.primary.main,.62)),se(O.Slider,"secondaryTrack",lt(O.secondary.main,.62)),se(O.Slider,"errorTrack",lt(O.error.main,.62)),se(O.Slider,"infoTrack",lt(O.info.main,.62)),se(O.Slider,"successTrack",lt(O.success.main,.62)),se(O.Slider,"warningTrack",lt(O.warning.main,.62));const X=hu(O.background.default,.8);se(O.SnackbarContent,"bg",X),se(O.SnackbarContent,"color",dn(()=>O.getContrastText(X))),se(O.SpeedDialAction,"fabHoverBg",hu(O.background.paper,.15)),se(O.StepConnector,"border",$("palette-grey-400")),se(O.StepContent,"border",$("palette-grey-400")),se(O.Switch,"defaultColor",$("palette-common-white")),se(O.Switch,"defaultDisabledColor",$("palette-grey-100")),se(O.Switch,"primaryDisabledColor",lt(O.primary.main,.62)),se(O.Switch,"secondaryDisabledColor",lt(O.secondary.main,.62)),se(O.Switch,"errorDisabledColor",lt(O.error.main,.62)),se(O.Switch,"infoDisabledColor",lt(O.info.main,.62)),se(O.Switch,"successDisabledColor",lt(O.success.main,.62)),se(O.Switch,"warningDisabledColor",lt(O.warning.main,.62)),se(O.TableCell,"border",lt(du(O.divider,1),.88)),se(O.Tooltip,"bg",du(O.grey[700],.92))}if(O.mode==="dark"){se(O.Alert,"errorColor",lt(O.error.light,.6)),se(O.Alert,"infoColor",lt(O.info.light,.6)),se(O.Alert,"successColor",lt(O.success.light,.6)),se(O.Alert,"warningColor",lt(O.warning.light,.6)),se(O.Alert,"errorFilledBg",$("palette-error-dark")),se(O.Alert,"infoFilledBg",$("palette-info-dark")),se(O.Alert,"successFilledBg",$("palette-success-dark")),se(O.Alert,"warningFilledBg",$("palette-warning-dark")),se(O.Alert,"errorFilledColor",dn(()=>O.getContrastText(O.error.dark))),se(O.Alert,"infoFilledColor",dn(()=>O.getContrastText(O.info.dark))),se(O.Alert,"successFilledColor",dn(()=>O.getContrastText(O.success.dark))),se(O.Alert,"warningFilledColor",dn(()=>O.getContrastText(O.warning.dark))),se(O.Alert,"errorStandardBg",st(O.error.light,.9)),se(O.Alert,"infoStandardBg",st(O.info.light,.9)),se(O.Alert,"successStandardBg",st(O.success.light,.9)),se(O.Alert,"warningStandardBg",st(O.warning.light,.9)),se(O.Alert,"errorIconColor",$("palette-error-main")),se(O.Alert,"infoIconColor",$("palette-info-main")),se(O.Alert,"successIconColor",$("palette-success-main")),se(O.Alert,"warningIconColor",$("palette-warning-main")),se(O.AppBar,"defaultBg",$("palette-grey-900")),se(O.AppBar,"darkBg",$("palette-background-paper")),se(O.AppBar,"darkColor",$("palette-text-primary")),se(O.Avatar,"defaultBg",$("palette-grey-600")),se(O.Button,"inheritContainedBg",$("palette-grey-800")),se(O.Button,"inheritContainedHoverBg",$("palette-grey-700")),se(O.Chip,"defaultBorder",$("palette-grey-700")),se(O.Chip,"defaultAvatarColor",$("palette-grey-300")),se(O.Chip,"defaultIconColor",$("palette-grey-300")),se(O.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),se(O.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),se(O.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),se(O.LinearProgress,"primaryBg",st(O.primary.main,.5)),se(O.LinearProgress,"secondaryBg",st(O.secondary.main,.5)),se(O.LinearProgress,"errorBg",st(O.error.main,.5)),se(O.LinearProgress,"infoBg",st(O.info.main,.5)),se(O.LinearProgress,"successBg",st(O.success.main,.5)),se(O.LinearProgress,"warningBg",st(O.warning.main,.5)),se(O.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),se(O.Slider,"primaryTrack",st(O.primary.main,.5)),se(O.Slider,"secondaryTrack",st(O.secondary.main,.5)),se(O.Slider,"errorTrack",st(O.error.main,.5)),se(O.Slider,"infoTrack",st(O.info.main,.5)),se(O.Slider,"successTrack",st(O.success.main,.5)),se(O.Slider,"warningTrack",st(O.warning.main,.5));const X=hu(O.background.default,.98);se(O.SnackbarContent,"bg",X),se(O.SnackbarContent,"color",dn(()=>O.getContrastText(X))),se(O.SpeedDialAction,"fabHoverBg",hu(O.background.paper,.15)),se(O.StepConnector,"border",$("palette-grey-600")),se(O.StepContent,"border",$("palette-grey-600")),se(O.Switch,"defaultColor",$("palette-grey-300")),se(O.Switch,"defaultDisabledColor",$("palette-grey-600")),se(O.Switch,"primaryDisabledColor",st(O.primary.main,.55)),se(O.Switch,"secondaryDisabledColor",st(O.secondary.main,.55)),se(O.Switch,"errorDisabledColor",st(O.error.main,.55)),se(O.Switch,"infoDisabledColor",st(O.info.main,.55)),se(O.Switch,"successDisabledColor",st(O.success.main,.55)),se(O.Switch,"warningDisabledColor",st(O.warning.main,.55)),se(O.TableCell,"border",st(du(O.divider,1),.68)),se(O.Tooltip,"bg",du(O.grey[700],.92))}$n(O.background,"default"),$n(O.background,"paper"),$n(O.common,"background"),$n(O.common,"onBackground"),$n(O,"divider"),Object.keys(O).forEach(X=>{const B=O[X];X!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&se(O[X],"mainChannel",us(cs(B.main))),B.light&&se(O[X],"lightChannel",us(cs(B.light))),B.dark&&se(O[X],"darkChannel",us(cs(B.dark))),B.contrastText&&se(O[X],"contrastTextChannel",us(cs(B.contrastText))),X==="text"&&($n(O[X],"primary"),$n(O[X],"secondary")),X==="action"&&(B.active&&$n(O[X],"active"),B.selected&&$n(O[X],"selected")))})}),S=t.reduce((Z,O)=>gr(Z,O),S);const P={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:o,getSelector:_6(S)},{vars:R,generateThemeVars:N,generateStyleSheets:W}=YI(S,P);return S.vars=R,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([Z,O])=>{S[Z]=O}),S.generateThemeVars=N,S.generateStyleSheets=W,S.generateSpacing=function(){return tw(c.spacing,Bc(this))},S.getColorSchemeSelector=qI(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=o,S.unstable_sxConfig=M(M({},dl),c==null?void 0:c.unstable_sxConfig),S.unstable_sx=function(O){return Ja({sx:O,theme:this})},S.toRuntimeSource=yw,S}function By(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]=I(M({},r!==!0&&r),{palette:p0(I(M({},r===!0?{}:r.palette),{mode:t}))}))}function M6(e={},...t){const h=e,{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode}=h,o=xe(h,["palette","cssVariables","colorSchemes","defaultColorScheme"]),l=a||"light",u=i==null?void 0:i[l],c=M(M({},i),r?{[l]:I(M({},typeof u!="boolean"&&u),{palette:r})}:void 0);if(n===!1){if(!("colorSchemes"in e))return bp(e,...t);let f=r;"palette"in e||c[l]&&(c[l]!==!0?f=c[l].palette:l==="dark"&&(f={mode:"dark"}));const p=bp(I(M({},e),{palette:f}),...t);return p.defaultColorScheme=l,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light=I(M({},c.light!==!0&&c.light),{palette:p.palette}),By(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark=I(M({},c.dark!==!0&&c.dark),{palette:p.palette}),By(p,"light",c.light)),p}return!r&&!("light"in c)&&l==="light"&&(c.light=!0),T6(M(I(M({},o),{colorSchemes:c,defaultColorScheme:l}),typeof n!="boolean"&&n),...t)}const ww=M6(),xw="$$material";function fl(){const e=rw(ww);return process.env.NODE_ENV!=="production"&&Q.useDebugValue(e),e[xw]||e}function S6(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pl=e=>S6(e)&&e!=="classes",De=ow({themeId:xw,defaultTheme:ww,rootShouldForwardProp:pl});function E6(){return J2}function wt(e){return WI(e)}class ac{constructor(){Xe(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new ac}static use(){const t=uw(ac.create).current,[r,n]=Q.useState(!1);return t.shouldMount=r,t.setShouldMount=n,Q.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=A6(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function P6(){return ac.use()}function A6(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function Cw(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}function Tw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pf(e,t)}const Hy={disabled:!1};var R6=process.env.NODE_ENV!=="production"?_.oneOfType([_.number,_.shape({enter:_.number,exit:_.number,appear:_.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&_.oneOfType([_.string,_.shape({enter:_.string,exit:_.string,active:_.string}),_.shape({enter:_.string,enterDone:_.string,enterActive:_.string,exit:_.string,exitDone:_.string,exitActive:_.string})]);const oc=k.createContext(null);var ds="unmounted",Di="exited",Ni="entering",Da="entered",wp="exiting",tn=function(e){Tw(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,l=o&&!o.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?l?(u=Di,a.appearStatus=Ni):u=Da:n.unmountOnExit||n.mountOnEnter?u=ds:u=Di,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===ds?{status:Di}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Ni&&o!==Da&&(a=Ni):(o===Ni||o===Da)&&(a=wp)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,l;return a=o=l=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,l=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:l}},r.updateStatus=function(i,a){i===void 0&&(i=!1),a!==null?(this.cancelNextCallback(),a===Ni?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:Ar.findDOMNode(this)),this.performEnter(i)):this.performExit()):this.props.unmountOnExit&&this.state.status===Di&&this.setState({status:ds})},r.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,u=this.props.nodeRef?[l]:[Ar.findDOMNode(this),l],c=u[0],h=u[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!i&&!o||Hy.disabled){this.safeSetState({status:Da},function(){a.props.onEntered(c)});return}this.props.onEnter(c,h),this.safeSetState({status:Ni},function(){a.props.onEntering(c,h),a.onTransitionEnd(p,function(){a.safeSetState({status:Da},function(){a.props.onEntered(c,h)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:Ar.findDOMNode(this);if(!a||Hy.disabled){this.safeSetState({status:Di},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:wp},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Di},function(){i.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Ar.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=u[0],h=u[1];this.props.addEndListener(c,h)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ds)return null;var a=this.props,o=a.children,l=Cw(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return k.createElement(oc.Provider,{value:null},typeof o=="function"?o(i,l):k.cloneElement(k.Children.only(o),l))},t}(k.Component);tn.contextType=oc;tn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:_.shape({current:typeof Element=="undefined"?_.any:function(e,t,r,n,i,a){var o=e[t];return _.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,r,n,i,a)}}),children:_.oneOfType([_.func.isRequired,_.element.isRequired]).isRequired,in:_.bool,mountOnEnter:_.bool,unmountOnExit:_.bool,appear:_.bool,enter:_.bool,exit:_.bool,timeout:function(t){var r=R6;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return r.apply(void 0,[t].concat(i))},addEndListener:_.func,onEnter:_.func,onEntering:_.func,onEntered:_.func,onExit:_.func,onExiting:_.func,onExited:_.func}:{};function Ma(){}tn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ma,onEntering:Ma,onEntered:Ma,onExit:Ma,onExiting:Ma,onExited:Ma};tn.UNMOUNTED=ds;tn.EXITED=Di;tn.ENTERING=Ni;tn.ENTERED=Da;tn.EXITING=wp;function m0(e,t){var r=function(a){return t&&k.isValidElement(a)?t(a):a},n=Object.create(null);return e&&k.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function O6(e,t){e=e||{},t=t||{};function r(h){return h in t?t[h]:e[h]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,l={};for(var u in t){if(n[u])for(o=0;o<n[u].length;o++){var c=n[u][o];l[n[u][o]]=r(c)}l[u]=r(u)}for(o=0;o<i.length;o++)l[i[o]]=r(i[o]);return l}function Fi(e,t,r){return r[t]!=null?r[t]:e.props[t]}function k6(e,t){return m0(e.children,function(r){return k.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Fi(r,"appear",e),enter:Fi(r,"enter",e),exit:Fi(r,"exit",e)})})}function D6(e,t,r){var n=m0(e.children),i=O6(t,n);return Object.keys(i).forEach(function(a){var o=i[a];if(k.isValidElement(o)){var l=a in t,u=a in n,c=t[a],h=k.isValidElement(c)&&!c.props.in;u&&(!l||h)?i[a]=k.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:Fi(o,"exit",e),enter:Fi(o,"enter",e)}):!u&&l&&!h?i[a]=k.cloneElement(o,{in:!1}):u&&l&&k.isValidElement(c)&&(i[a]=k.cloneElement(o,{onExited:r.bind(null,o),in:c.props.in,exit:Fi(o,"exit",e),enter:Fi(o,"enter",e)}))}}),i}var N6=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},L6={component:"div",childFactory:function(t){return t}},g0=function(e){Tw(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=a.handleExited.bind(lP(a));return a.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},a}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(i,a){var o=a.children,l=a.handleExited,u=a.firstRender;return{children:u?k6(i,l):D6(i,o,l),firstRender:!1}},r.handleExited=function(i,a){var o=m0(this.props.children);i.key in o||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(l){var u=Ns({},l.children);return delete u[i.key],{children:u}}))},r.render=function(){var i=this.props,a=i.component,o=i.childFactory,l=Cw(i,["component","childFactory"]),u=this.state.contextValue,c=N6(this.state.children).map(o);return delete l.appear,delete l.enter,delete l.exit,a===null?k.createElement(oc.Provider,{value:u},c):k.createElement(oc.Provider,{value:u},k.createElement(a,l,c))},t}(k.Component);g0.propTypes=process.env.NODE_ENV!=="production"?{component:_.any,children:_.node,appear:_.bool,enter:_.bool,exit:_.bool,childFactory:_.func}:{};g0.defaultProps=L6;function Mw(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:l,onExited:u,timeout:c}=e,[h,f]=Q.useState(!1),p=He(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),g={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},b=He(r.child,h&&r.childLeaving,n&&r.childPulsate);return!l&&!h&&f(!0),Q.useEffect(()=>{if(!l&&u!=null){const v=setTimeout(u,c);return()=>{clearTimeout(v)}}},[u,l,c]),me.jsx("span",{className:p,style:g,children:me.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(Mw.propTypes={classes:_.object.isRequired,className:_.string,in:_.bool,onExited:_.func,pulsate:_.bool,rippleSize:_.number,rippleX:_.number,rippleY:_.number,timeout:_.number.isRequired});const jr=ht("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),xp=550,I6=80,$6=hl`
78
+ 0% {
79
+ transform: scale(0);
80
+ opacity: 0.1;
81
+ }
82
+
83
+ 100% {
84
+ transform: scale(1);
85
+ opacity: 0.3;
86
+ }
87
+ `,F6=hl`
88
+ 0% {
89
+ opacity: 1;
90
+ }
91
+
92
+ 100% {
93
+ opacity: 0;
94
+ }
95
+ `,z6=hl`
96
+ 0% {
97
+ transform: scale(1);
98
+ }
99
+
100
+ 50% {
101
+ transform: scale(0.92);
102
+ }
103
+
104
+ 100% {
105
+ transform: scale(1);
106
+ }
107
+ `,B6=De("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),H6=De(Mw,{name:"MuiTouchRipple",slot:"Ripple"})`
108
+ opacity: 0;
109
+ position: absolute;
110
+
111
+ &.${jr.rippleVisible} {
112
+ opacity: 0.3;
113
+ transform: scale(1);
114
+ animation-name: ${$6};
115
+ animation-duration: ${xp}ms;
116
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
117
+ }
118
+
119
+ &.${jr.ripplePulsate} {
120
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
121
+ }
122
+
123
+ & .${jr.child} {
124
+ opacity: 1;
125
+ display: block;
126
+ width: 100%;
127
+ height: 100%;
128
+ border-radius: 50%;
129
+ background-color: currentColor;
130
+ }
131
+
132
+ & .${jr.childLeaving} {
133
+ opacity: 0;
134
+ animation-name: ${F6};
135
+ animation-duration: ${xp}ms;
136
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
137
+ }
138
+
139
+ & .${jr.childPulsate} {
140
+ position: absolute;
141
+ /* @noflip */
142
+ left: 0px;
143
+ top: 0;
144
+ animation-name: ${z6};
145
+ animation-duration: 2500ms;
146
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
147
+ animation-iteration-count: infinite;
148
+ animation-delay: 200ms;
149
+ }
150
+ `,Sw=Q.forwardRef(function(t,r){const S=wt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=S,l=xe(S,["center","classes","className"]),[u,c]=Q.useState([]),h=Q.useRef(0),f=Q.useRef(null);Q.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=Q.useRef(!1),g=$i(),b=Q.useRef(null),v=Q.useRef(null),w=Q.useCallback(P=>{const{pulsate:R,rippleX:N,rippleY:W,rippleSize:G,cb:K}=P;c(Z=>[...Z,me.jsx(H6,{classes:{ripple:He(a.ripple,jr.ripple),rippleVisible:He(a.rippleVisible,jr.rippleVisible),ripplePulsate:He(a.ripplePulsate,jr.ripplePulsate),child:He(a.child,jr.child),childLeaving:He(a.childLeaving,jr.childLeaving),childPulsate:He(a.childPulsate,jr.childPulsate)},timeout:xp,pulsate:R,rippleX:N,rippleY:W,rippleSize:G},h.current)]),h.current+=1,f.current=K},[a]),C=Q.useCallback((P={},R={},N=()=>{})=>{const{pulsate:W=!1,center:G=i||R.pulsate,fakeElement:K=!1}=R;if((P==null?void 0:P.type)==="mousedown"&&p.current){p.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(p.current=!0);const Z=K?null:v.current,O=Z?Z.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,X,B;if(G||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)$=Math.round(O.width/2),X=Math.round(O.height/2);else{const{clientX:V,clientY:H}=P.touches&&P.touches.length>0?P.touches[0]:P;$=Math.round(V-O.left),X=Math.round(H-O.top)}if(G)B=Math.sqrt((2*cn(O.width,2)+cn(O.height,2))/3),B%2===0&&(B+=1);else{const V=Math.max(Math.abs((Z?Z.clientWidth:0)-$),$)*2+2,H=Math.max(Math.abs((Z?Z.clientHeight:0)-X),X)*2+2;B=Math.sqrt(cn(V,2)+cn(H,2))}P!=null&&P.touches?b.current===null&&(b.current=()=>{w({pulsate:W,rippleX:$,rippleY:X,rippleSize:B,cb:N})},g.start(I6,()=>{b.current&&(b.current(),b.current=null)})):w({pulsate:W,rippleX:$,rippleY:X,rippleSize:B,cb:N})},[i,w,g]),T=Q.useCallback(()=>{C({},{pulsate:!0})},[C]),E=Q.useCallback((P,R)=>{if(g.clear(),(P==null?void 0:P.type)==="touchend"&&b.current){b.current(),b.current=null,g.start(0,()=>{E(P,R)});return}b.current=null,c(N=>N.length>0?N.slice(1):N),f.current=R},[g]);return Q.useImperativeHandle(r,()=>({pulsate:T,start:C,stop:E}),[T,C,E]),me.jsx(B6,I(M({className:He(jr.root,a.root,o),ref:v},l),{children:me.jsx(g0,{component:null,exit:!0,children:u})}))});process.env.NODE_ENV!=="production"&&(Sw.propTypes={center:_.bool,classes:_.object,className:_.string});function W6(e){return dt("MuiButtonBase",e)}const j6=ht("MuiButtonBase",["root","disabled","focusVisible"]),V6=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=St({root:["root",t&&"disabled",r&&"focusVisible"]},W6,i);return r&&n&&(o.root+=` ${n}`),o},G6=De("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"},[`&.${j6.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ra=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiButtonBase"}),kt=n,{action:i,centerRipple:a=!1,children:o,className:l,component:u="button",disabled:c=!1,disableRipple:h=!1,disableTouchRipple:f=!1,focusRipple:p=!1,focusVisibleClassName:g,LinkComponent:b="a",onBlur:v,onClick:w,onContextMenu:C,onDragLeave:T,onFocus:E,onFocusVisible:S,onKeyDown:P,onKeyUp:R,onMouseDown:N,onMouseLeave:W,onMouseUp:G,onTouchEnd:K,onTouchMove:Z,onTouchStart:O,tabIndex:$=0,TouchRippleProps:X,touchRippleRef:B,type:V}=kt,H=xe(kt,["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"]),U=Q.useRef(null),te=P6(),F=vr(te.ref,B),[Y,ne]=Q.useState(!1);c&&Y&&ne(!1),Q.useImperativeHandle(i,()=>({focusVisible:()=>{ne(!0),U.current.focus()}}),[]);const ie=te.shouldMount&&!h&&!c;Q.useEffect(()=>{Y&&p&&!h&&te.pulsate()},[h,p,Y,te]);const re=Fn(te,"start",N,f),oe=Fn(te,"stop",C,f),le=Fn(te,"stop",T,f),de=Fn(te,"stop",G,f),ce=Fn(te,"stop",Pe=>{Y&&Pe.preventDefault(),W&&W(Pe)},f),ve=Fn(te,"start",O,f),Ce=Fn(te,"stop",K,f),ye=Fn(te,"stop",Z,f),J=Fn(te,"stop",Pe=>{tc(Pe.target)||ne(!1),v&&v(Pe)},!1),we=Bn(Pe=>{U.current||(U.current=Pe.currentTarget),tc(Pe.target)&&(ne(!0),S&&S(Pe)),E&&E(Pe)}),Ee=()=>{const Pe=U.current;return u&&u!=="button"&&!(Pe.tagName==="A"&&Pe.href)},ke=Bn(Pe=>{p&&!Pe.repeat&&Y&&Pe.key===" "&&te.stop(Pe,()=>{te.start(Pe)}),Pe.target===Pe.currentTarget&&Ee()&&Pe.key===" "&&Pe.preventDefault(),P&&P(Pe),Pe.target===Pe.currentTarget&&Ee()&&Pe.key==="Enter"&&!c&&(Pe.preventDefault(),w&&w(Pe))}),$e=Bn(Pe=>{p&&Pe.key===" "&&Y&&!Pe.defaultPrevented&&te.stop(Pe,()=>{te.pulsate(Pe)}),R&&R(Pe),w&&Pe.target===Pe.currentTarget&&Ee()&&Pe.key===" "&&!Pe.defaultPrevented&&w(Pe)});let je=u;je==="button"&&(H.href||H.to)&&(je=b);const Ue={};je==="button"?(Ue.type=V===void 0?"button":V,Ue.disabled=c):(!H.href&&!H.to&&(Ue.role="button"),c&&(Ue["aria-disabled"]=c));const ir=vr(r,U),Pt=I(M({},n),{centerRipple:a,component:u,disabled:c,disableRipple:h,disableTouchRipple:f,focusRipple:p,tabIndex:$,focusVisible:Y}),Wt=V6(Pt);return me.jsxs(G6,I(M(M({as:je,className:He(Wt.root,l),ownerState:Pt,onBlur:J,onClick:w,onContextMenu:oe,onFocus:we,onKeyDown:ke,onKeyUp:$e,onMouseDown:re,onMouseLeave:ce,onMouseUp:de,onDragLeave:le,onTouchEnd:Ce,onTouchMove:ye,onTouchStart:ve,ref:ir,tabIndex:c?-1:$,type:V},Ue),H),{children:[o,ie?me.jsx(Sw,M({ref:F,center:a},X)):null]}))});function Fn(e,t,r,n=!1){return Bn(i=>(r&&r(i),n||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(ra.propTypes={action:ul,centerRipple:_.bool,children:_.node,classes:_.object,className:_.string,component:c0,disabled:_.bool,disableRipple:_.bool,disableTouchRipple:_.bool,focusRipple:_.bool,focusVisibleClassName:_.string,href:_.any,LinkComponent:_.elementType,onBlur:_.func,onClick:_.func,onContextMenu:_.func,onDragLeave:_.func,onFocus:_.func,onFocusVisible:_.func,onKeyDown:_.func,onKeyUp:_.func,onMouseDown:_.func,onMouseLeave:_.func,onMouseUp:_.func,onTouchEnd:_.func,onTouchMove:_.func,onTouchStart:_.func,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),tabIndex:_.number,TouchRippleProps:_.object,touchRippleRef:_.oneOfType([_.func,_.shape({current:_.shape({pulsate:_.func.isRequired,start:_.func.isRequired,stop:_.func.isRequired})})]),type:_.oneOfType([_.oneOf(["button","reset","submit"]),_.string])});function U6(e){return typeof e.main=="string"}function Y6(e,t=[]){if(!U6(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function pi(e=[]){return([,t])=>t&&Y6(t,e)}const $t=jI;function q6(e){return dt("MuiSvgIcon",e)}ht("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const X6=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Ie(t)}`,`fontSize${Ie(r)}`]};return St(i,q6,n)},Z6=De("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ie(r.color)}`],t[`fontSize${Ie(r.fontSize)}`]]}})($t(({theme:e})=>{var t,r,n,i,a,o,l,u,c,h,f,p,g,b,v,w,C,T;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(i=(n=((r=e.vars)!=null?r:e).transitions)==null?void 0:n.duration)==null?void 0:i.shorter}),variants:[{props:E=>!E.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:l.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:f.call(h,35))||"2.1875rem"}},...Object.entries(((p=e.vars)!=null?p:e).palette).filter(([,E])=>E&&E.main).map(([E])=>{var S,P,R;return{props:{color:E},style:{color:(R=(P=((S=e.vars)!=null?S:e).palette)==null?void 0:P[E])==null?void 0:R.main}}}),{props:{color:"action"},style:{color:(v=(b=((g=e.vars)!=null?g:e).palette)==null?void 0:b.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(T=(C=((w=e.vars)!=null?w:e).palette)==null?void 0:C.action)==null?void 0:T.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),sc=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiSvgIcon"}),T=n,{children:i,className:a,color:o="inherit",component:l="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:h=!1,titleAccess:f,viewBox:p="0 0 24 24"}=T,g=xe(T,["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"]),b=Q.isValidElement(i)&&i.type==="svg",v=I(M({},n),{color:o,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:p,hasSvgAsChild:b}),w={};h||(w.viewBox=p);const C=X6(v);return me.jsxs(Z6,I(M(M(M({as:l,className:He(C.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},w),g),b&&i.props),{ownerState:v,children:[b?i.props.children:i,f?me.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(sc.propTypes={children:_.node,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),_.string]),component:_.elementType,fontSize:_.oneOfType([_.oneOf(["inherit","large","medium","small"]),_.string]),htmlColor:_.string,inheritViewBox:_.bool,shapeRendering:_.string,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),titleAccess:_.string,viewBox:_.string});sc.muiName="SvgIcon";function po(e,t){function r(n,i){return me.jsx(sc,I(M({"data-testid":`${t}Icon`,ref:i},n),{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=sc.muiName,Q.memo(Q.forwardRef(r))}const K6=po(me.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Q6=po(me.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),J6=po(me.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),e$=po(me.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");function Xt(e,t){const P=t,{className:r,elementType:n,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:l=!1}=P,u=xe(P,["className","elementType","ownerState","externalForwardedProps","internalForwardedProps","shouldForwardComponentProp"]),R=a,{component:c,slots:h={[e]:void 0},slotProps:f={[e]:void 0}}=R,p=xe(R,["component","slots","slotProps"]),g=h[e]||n,b=pw(f[e],i),N=fw(I(M({className:r},u),{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:b})),{props:W}=N,G=W,{component:v}=G,w=xe(G,["component"]),{internalRef:C}=N,T=vr(C,b==null?void 0:b.ref,t.ref),E=e==="root"?v||c:v,S=dw(g,I(M(M(M(M(M({},e==="root"&&!c&&!h[e]&&o),e!=="root"&&!h[e]&&o),w),E&&!l&&{as:E}),E&&l&&{component:E}),{ref:T}),i);return[g,S]}const Ew=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ie(r.size)}`],r.variant==="text"&&t[`text${Ie(r.color)}`],r.variant==="outlined"&&t[`outlined${Ie(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]},t$=e=>{const{classes:t,color:r,disabled:n,selected:i,size:a,shape:o,type:l,variant:u}=e,c={root:["root",`size${Ie(a)}`,u,o,r!=="standard"&&`color${Ie(r)}`,r!=="standard"&&`${u}${Ie(r)}`,n&&"disabled",i&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return St(c,lL,t)},r$=De("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Ew})($t(({theme:e})=>I(M({},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",[`&.${cr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),n$=De(ra,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Ew})($t(({theme:e})=>I(M({},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,[`&.${cr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${cr.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"}},[`&.${cr.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}))`:yt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${cr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${cr.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{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)"}`,[`&.${cr.selected}`]:{[`&.${cr.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${cr.selected}`]:{[`&.${cr.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(pi(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${cr.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${cr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${cr.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(pi(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${cr.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:yt(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:yt(e.palette[t].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${cr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),i$=De("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})($t(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),Pw=Q.forwardRef(function(t,r){var U,te,F,Y;const n=wt({props:t,name:"MuiPaginationItem"}),H=n,{className:i,color:a="standard",component:o,components:l={},disabled:u=!1,page:c,selected:h=!1,shape:f="circular",size:p="medium",slots:g={},slotProps:b={},type:v="page",variant:w="text"}=H,C=xe(H,["className","color","component","components","disabled","page","selected","shape","size","slots","slotProps","type","variant"]),T=I(M({},n),{color:a,disabled:u,selected:h,shape:f,size:p,type:v,variant:w}),E=Lc(),S=t$(T),P={slots:{previous:(U=g.previous)!=null?U:l.previous,next:(te=g.next)!=null?te:l.next,first:(F=g.first)!=null?F:l.first,last:(Y=g.last)!=null?Y:l.last},slotProps:b},[R,N]=Xt("previous",{elementType:J6,externalForwardedProps:P,ownerState:T}),[W,G]=Xt("next",{elementType:e$,externalForwardedProps:P,ownerState:T}),[K,Z]=Xt("first",{elementType:K6,externalForwardedProps:P,ownerState:T}),[O,$]=Xt("last",{elementType:Q6,externalForwardedProps:P,ownerState:T}),X=E?{previous:"next",next:"previous",first:"last",last:"first"}[v]:v,B={previous:R,next:W,first:K,last:O}[X],V={previous:N,next:G,first:Z,last:$}[X];return v==="start-ellipsis"||v==="end-ellipsis"?me.jsx(r$,{ref:r,ownerState:T,className:He(S.root,i),children:"…"}):me.jsxs(n$,I(M({ref:r,ownerState:T,component:o,disabled:u,className:He(S.root,i)},C),{children:[v==="page"&&c,B?me.jsx(i$,I(M({},V),{className:S.icon,as:B})):null]}))});process.env.NODE_ENV!=="production"&&(Pw.propTypes={children:_.node,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["primary","secondary","standard"]),_.string]),component:_.elementType,components:_.shape({first:_.elementType,last:_.elementType,next:_.elementType,previous:_.elementType}),disabled:_.bool,page:_.node,selected:_.bool,shape:_.oneOf(["circular","rounded"]),size:_.oneOfType([_.oneOf(["small","medium","large"]),_.string]),slotProps:_.shape({first:_.oneOfType([_.func,_.object]),last:_.oneOfType([_.func,_.object]),next:_.oneOfType([_.func,_.object]),previous:_.oneOfType([_.func,_.object])}),slots:_.shape({first:_.elementType,last:_.elementType,next:_.elementType,previous:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),type:_.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:_.oneOfType([_.oneOf(["outlined","text"]),_.string])});const a$=e=>{const{classes:t,variant:r}=e;return St({root:["root",r],ul:["ul"]},rL,t)},o$=De("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),s$=De("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function l$(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Aw=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiPagination"}),K=n,{boundaryCount:i=1,className:a,color:o="standard",count:l=1,defaultPage:u=1,disabled:c=!1,getItemAriaLabel:h=l$,hideNextButton:f=!1,hidePrevButton:p=!1,onChange:g,page:b,renderItem:v=Z=>me.jsx(Pw,M({},Z)),shape:w="circular",showFirstButton:C=!1,showLastButton:T=!1,siblingCount:E=1,size:S="medium",variant:P="text"}=K,R=xe(K,["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"]),{items:N}=nL(I(M({},n),{componentName:"Pagination"})),W=I(M({},n),{boundaryCount:i,color:o,count:l,defaultPage:u,disabled:c,getItemAriaLabel:h,hideNextButton:f,hidePrevButton:p,renderItem:v,shape:w,showFirstButton:C,showLastButton:T,siblingCount:E,size:S,variant:P}),G=a$(W);return me.jsx(o$,I(M({"aria-label":"pagination navigation",className:He(G.root,a),ownerState:W,ref:r},R),{children:me.jsx(s$,{className:G.ul,ownerState:W,children:N.map((Z,O)=>me.jsx("li",{children:v(I(M({},Z),{color:o,"aria-label":h(Z.type,Z.page,Z.selected),shape:w,size:S,variant:P}))},O))})}))});process.env.NODE_ENV!=="production"&&(Aw.propTypes={boundaryCount:mn,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["primary","secondary","standard"]),_.string]),count:mn,defaultPage:mn,disabled:_.bool,getItemAriaLabel:_.func,hideNextButton:_.bool,hidePrevButton:_.bool,onChange:_.func,page:mn,renderItem:_.func,shape:_.oneOf(["circular","rounded"]),showFirstButton:_.bool,showLastButton:_.bool,siblingCount:mn,size:_.oneOfType([_.oneOf(["small","medium","large"]),_.string]),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),variant:_.oneOfType([_.oneOf(["outlined","text"]),_.string])});const u$=(e,t)=>{const r=e.category&&y.getColumnByName(t,e.category.column.name);r&&(r.direction=y.sortDirection(e.category.sortType));const n=y.getOrderedXValues(t,[],r?[r]:[],(r==null?void 0:r.direction)===0?y.rownumColumnName:void 0),i=y.getIndexedRows(t.rows,r?[r]:[]),a=y.getColumnByName(t,e.boxMin.column.name),o=y.getColumnByName(t,e.boxMedian.column.name),l=y.getColumnByName(t,e.boxMax.column.name),u=y.getColumnByName(t,e.whiskerMin.column.name),c=y.getColumnByName(t,e.whiskerMax.column.name),h=e.outliers&&y.getColumnByName(t,e.outliers.column.name),f=[],p=[];n.forEach((b,v)=>{const w=i[b.key],C=w?w[0]:[],T=r&&!!y.isBlurred(C,r);f.push({q1:a?y.getValue(C,a):0,median:o?y.getValue(C,o):0,q3:l?y.getValue(C,l):0,low:u?y.getValue(C,u):0,high:c?y.getValue(C,c):0,blur:T});const E=h?C[h.index].rawValue.split(",").map(S=>parseFloat(S)):[];p.push(...E.map(S=>({x:v,y:S,blur:T})))});const g=[{name:e.valueTitle,title:e.valueTitle,data:f}];return p.length>0&&g.push({name:e.valueTitle,title:e.valueTitle,data:p}),{type:"boxplot",xValues:n,series:g}};function c$(e){return e.type==="boxplot"}function Rw(e,t,r,n){if(!j.isObject(e))return e;t=j.castPath(t,e);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var u=j.toKey(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var h=l[u];c=void 0,c===void 0&&(c=j.isObject(h)?h:j.isIndex(t[i+1])?[]:{})}j.assignValue(l,u,c),l=l[u]}return e}function Ow(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],l=j.baseGet(e,o);r(l,o)&&Rw(a,j.castPath(o,e),l)}return a}function d$(e,t){return Ow(e,t,function(r,n){return j.hasIn(e,n)})}var h$=j.flatRest(function(e,t){return e==null?{}:d$(e,t)});function rn(e){var o,l;const{app:t,queryDescription:r,executionConfig:n}=e;return(((l=(o=t==null?void 0:t.settings.queryCacheConfig)==null?void 0:o.enabled)!=null?l:!1)?j.executeQueryWithCache:j.executeQuery)(r,t,n)}const f$=(e,t)=>{const r=y.getPaletteColor(t,0),n=y.toGray(r),i=y.scaleBrightness(r,-.2),a=e.minColor===y.DEFAULT_COLOR||e.minColor===n,o=e.maxColor===y.DEFAULT_COLOR||e.maxColor===i;return a&&o?"auto":a?"max":o?"min":"both"},p$=(e,t)=>{let r={type:"range",steps:e.steps};if(e.rangeMode!=="auto"){const o=parseFloat(`${e.minvalue}`),l=parseFloat(`${e.midvalue}`),u=parseFloat(`${e.maxvalue}`);r=M(M(M(M({},r),o&&{minValue:o}),l&&{midValue:l}),u&&{maxValue:u})}const n=y.getPaletteColor(t,0),i=y.scaleBrightness(n,.2),a=y.scaleBrightness(n,-.2);switch(e.rangeMode){case"auto":return I(M({},r),{minColor:y.toGray(n),maxColor:a});case"both":return I(M({},r),{minColor:e.min||i,maxColor:e.max||a});case"min":return I(M({},r),{minColor:e.min||i,maxColor:y.DEFAULT_COLOR});case"max":return I(M({},r),{minColor:y.DEFAULT_COLOR,maxColor:e.max||a})}},kw=(e,t)=>{if(e!==void 0)switch(e.type){case"color":return M({type:"uniform",color:e.color||y.getPaletteColor(t,e.colorIndex||0)},e.colorIndex!==void 0&&{colorIndex:e.colorIndex});case"range":return p$(e,t);case"condition":return{type:"conditional",conditions:e.conditions.filter(r=>typeof r.expression=="string").map(({color:r,expression:n,operator:i})=>({color:r,expression:n,operator:i})),defaultColor:y.getPaletteColor(t,0)};default:return y.getUniformColorOptionsFromString(y.getPaletteColor(t,0))}},Dw=e=>Object.entries(e).reduce((t,[r,{color:n}])=>(t[r]=n,t),{}),m$=(e,t)=>{if(e===void 0)return;const r=y.getPaletteColor(t,0);if(typeof e=="string")return{type:"color",color:e};switch(e.type){case"uniform":return I(M({type:"color",color:e.color},e.colorIndex!==void 0&&{colorIndex:e.colorIndex}),{isHandPickedColor:e.colorIndex===void 0});case"range":{const n=y.getPaletteColor(t,0),i=y.toGray(n),a=y.scaleBrightness(n,-.2),o=f$(e,t),l={type:"range",steps:e.steps||5,rangeMode:o,min:o==="max"?i:e.minColor,max:o==="min"?a:e.maxColor};return l.rangeMode!=="auto"&&(e.minValue!==void 0&&(l.minvalue=e.minValue.toString()),e.midValue!==void 0&&(l.midvalue=e.midValue.toString()),e.maxValue!==void 0&&(l.maxvalue=e.maxValue.toString())),l}case"conditional":return{type:"condition",conditions:(e.conditions||[]).filter(n=>typeof n.expression=="string").map(({color:n,expression:i,operator:a})=>({color:n||r,expression:i,operator:a}))};default:return{type:"color",color:r,colorIndex:0}}},g$=e=>e.reduce((t,r)=>{var n,i;return(n=r.format)!=null&&n.members&&(t[j.normalizeName(r.jaql.title)]=Dw((i=r.format)==null?void 0:i.members)),t},{}),v$=y.createDataColoringFunction({getValueFromDataStructure:e=>e.originalValue,applyColorToDataStructure:(e,t)=>I(M({},e),{color:t})}),y$=kw({type:"range",steps:5,rangeMode:"auto"}),b$=(e,t)=>{var o,l;const r=y.getColumnByName(t,e.geo.column.name),n=y.getColumnByName(t,(l=(o=e.color)==null?void 0:o.column.name)!=null?l:e.geo.column.name);if(!r||!n)throw new j.TranslatableError("errors.requiredColumnMissing");const i=t.rows.map(u=>{var p;const c=y.getValue(u,n),h=y.getCompleteNumberFormatConfig((p=e.color)==null?void 0:p.numberFormatConfig),f=y.applyFormatPlainText(h,c);return{geoName:y.getValue(u,r),originalValue:c,formattedOriginalValue:f}});let a;return e.color&&(a=v$(i,e.color.color||y$)),{type:"areamap",geoData:a||i}},_$={loadData:rn,getChartData:b$},w$={translateDataOptionsToInternal:function(e){return{geo:e.geo&&y.normalizeColumn(e.geo[0]),color:e.color&&y.normalizeMeasureColumn(e.color[0])}},getAttributes:function(e){return[e.geo.column].filter(t=>!y.isMeasureColumn(t))},getMeasures:function(e){var r;const t=(r=e.color)==null?void 0:r.column;return t&&y.isMeasureColumn(t)?[t]:[]},isCorrectDataOptions:function(e){return"geo"in e&&j.isArray(e.geo)},isCorrectDataOptionsInternal:function(e){return"geo"in e&&!!e.geo.column}},v0=50,x$=1e3,C$=500,lc=1e5,xr={lineType:"straight",stackType:"classic",legend:{enabled:!0,position:"bottom"},lineWidth:2,marker:{enabled:!1,size:"small",fill:"full"},xAxis:{type:"linear",enabled:!0,titleEnabled:!0,title:"X Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null},yAxis:{type:"linear",enabled:!0,titleEnabled:!0,title:"Y Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null},autoZoom:{enabled:!0},pieType:y.DefaultPieType,funnelType:y.DefaultFunnelType,funnelSize:y.DefaultFunnelSize,funnelDirection:y.DefaultFunnelDirection,indicatorType:"numeric",numericSubtype:"numericSimple",skin:"vertical",indicatorComponents:{title:{shouldBeShown:!1,text:""},secondaryTitle:{text:""},ticks:{shouldBeShown:!0},labels:{shouldBeShown:!0}},dataLimits:{seriesCapacity:v0,categoriesCapacity:lc}},T$={translateStyleOptionsToDesignOptions:function(e){return I(M({},xr),{mapType:e.mapType||"world"})},isCorrectStyleOptions:function(e){return typeof e=="object"&&e!==null}},y0=k.createContext({isInitialized:!1,tracking:{enabled:!0,packageName:"sdk-ui"},errorBoundary:{showErrorBox:!0}}),Et=()=>k.useContext(y0);function M$(){const[e,t]=k.useState(null);return k.useEffect(()=>{j.initializeI18n().initPromise.then(r=>t(r))},[]),e}const Nw=({children:e,userLanguage:t,customTranslations:r=[]})=>{const n=M$();return k.useEffect(()=>{if(t&&(n==null?void 0:n.language)!==t){for(const{language:i,resources:a,namespace:o="sdkUi"}of r)n==null||n.addResourceBundle(i,o,a);n==null||n.changeLanguage(t)}},[n,t,r]),n&&y.jsx(h3,{i18n:n,children:e})},S$=()=>e=>function(r){const{isInitialized:n}=Et();return n?y.jsx(e,M({},r)):y.jsx(Nw,{children:y.jsx(e,M({},r))})};function Lw({color:e="#FFCB05"}){return y.jsx("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:y.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:y.jsxs("g",{children:[y.jsx("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:e}),y.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 b0=k.createContext({themeSettings:Qu()}),ot=()=>k.useContext(b0),E$="_container_1wquj_1",P$="_card_1wquj_11",A$="_text_1wquj_19",Hh={container:E$,card:P$,text:A$},_0=({error:e=new j.TranslatableError("errors.componentRenderError")})=>{var p,g,b,v,w,C;const{themeSettings:t}=ot(),{app:r}=Et(),{t:n}=y.useTranslation(),[i,a]=k.useState(!1),o=()=>{a(!0)},l=()=>{a(!1)},u=y.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:y.jsx(Lw,{color:(p=t==null?void 0:t.general)==null?void 0:p.brandColor})}),c=e instanceof j.AbstractTranslatableError?n(e.key,M({},e.interpolationOptions)):n(e instanceof Error?e.message:e),h=n("errorBoxText",{errorMessage:c,interpolation:{escapeValue:!1}}),f=(b=(g=r==null?void 0:r.settings)==null?void 0:g.errorBoundaryConfig)==null?void 0:b.alwaysShowErrorText;return y.jsx("div",{onMouseEnter:f?void 0:o,onMouseLeave:f?void 0:l,className:Hh.container,"aria-label":"error-box",children:y.jsxs("div",{className:Hh.card,style:{backgroundColor:((v=t==null?void 0:t.general)==null?void 0:v.backgroundColor)||"rgba(255,255,255,0.5)"},children:[u,(f||i)&&y.jsx("div",{className:Hh.text,style:{color:((w=t==null?void 0:t.typography)==null?void 0:w.primaryTextColor)||y.DEFAULT_TEXT_COLOR,fontFamily:((C=t==null?void 0:t.typography)==null?void 0:C.fontFamily)||"inherit"},children:h})]})})};let Iw=class extends k.Component{constructor(r){super(r);Xe(this,"showErrorBox",!0);Xe(this,"onError");Xe(this,"isContainerComponent");this.onError=r.onError,this.isContainerComponent=r.isContainerComponent||!1,this.state={error:null,customErrorUI:null}}static getDerivedStateFromError(r){return{error:r,customErrorUI:null}}componentDidCatch(r){const n=r instanceof Error?r:new Error(r);if(this.onError){const i=this.onError(n);if(i!==void 0&&k.isValidElement(i)){this.setState({error:r,customErrorUI:i});return}}this.setState({error:r})}componentDidUpdate(r,n){if(n.error!==null&&R$(r.resetKeys,this.props.resetKeys)&&this.setState({error:null,customErrorUI:null}),this.props.error&&!r.error&&!n.error&&!this.state.error&&this.onError){const i=this.props.error instanceof Error?this.props.error:new Error(String(this.props.error)),a=this.onError(i);a!==void 0&&k.isValidElement(a)&&this.setState({customErrorUI:a})}}render(){const{error:r,customErrorUI:n}=this.state,{shouldRenderChildrenWithProvidedError:i,showErrorBox:a,error:o,children:l}=this.props,u=r||o;return!u||o&&!r&&i?l:a?n||y.jsx(_0,{error:u}):null}};function R$(e=[],t=[]){return e.length!==t.length||e.some((r,n)=>!j.isEqual(r,t[n]))}const $w=({componentName:e})=>t=>function(n){const i=Et(),a=o=>{var l,u;return(u=(l=i.errorBoundary).onError)==null?void 0:u.call(l,o,{componentName:e,componentProps:n})};return y.jsx(Iw,{resetKeys:Object.values(n),showErrorBox:i.errorBoundary.showErrorBox,onError:a,isContainerComponent:!!(n!=null&&n.children),children:y.jsx(t,M({},n))})},w0=k.createContext(null),Zc=()=>k.useContext(w0);var Cp={exports:{}},it={};/**
151
+ * @license React
152
+ * react-is.production.js
153
+ *
154
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
155
+ *
156
+ * This source code is licensed under the MIT license found in the
157
+ * LICENSE file in the root directory of this source tree.
158
+ */var Wy;function O$(){if(Wy)return it;Wy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.for("react.client.reference");function b(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case e:switch(v=v.type,v){case r:case i:case n:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case o:case l:case f:case h:return v;case a:return v;default:return w}}case t:return w}}}return it.ContextConsumer=a,it.ContextProvider=o,it.Element=e,it.ForwardRef=l,it.Fragment=r,it.Lazy=f,it.Memo=h,it.Portal=t,it.Profiler=i,it.StrictMode=n,it.Suspense=u,it.SuspenseList=c,it.isContextConsumer=function(v){return b(v)===a},it.isContextProvider=function(v){return b(v)===o},it.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},it.isForwardRef=function(v){return b(v)===l},it.isFragment=function(v){return b(v)===r},it.isLazy=function(v){return b(v)===f},it.isMemo=function(v){return b(v)===h},it.isPortal=function(v){return b(v)===t},it.isProfiler=function(v){return b(v)===i},it.isStrictMode=function(v){return b(v)===n},it.isSuspense=function(v){return b(v)===u},it.isSuspenseList=function(v){return b(v)===c},it.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===u||v===c||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===h||v.$$typeof===o||v.$$typeof===a||v.$$typeof===l||v.$$typeof===g||v.getModuleId!==void 0)},it.typeOf=b,it}var at={};/**
159
+ * @license React
160
+ * react-is.development.js
161
+ *
162
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
163
+ *
164
+ * This source code is licensed under the MIT license found in the
165
+ * LICENSE file in the root directory of this source tree.
166
+ */var jy;function k$(){return jy||(jy=1,process.env.NODE_ENV!=="production"&&function(){function e(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case t:switch(v=v.type,v){case n:case a:case i:case c:case h:return v;default:switch(v=v&&v.$$typeof,v){case l:case u:case p:case f:return v;case o:return v;default:return w}}case r:return w}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");at.ContextConsumer=o,at.ContextProvider=l,at.Element=t,at.ForwardRef=u,at.Fragment=n,at.Lazy=p,at.Memo=f,at.Portal=r,at.Profiler=a,at.StrictMode=i,at.Suspense=c,at.SuspenseList=h,at.isContextConsumer=function(v){return e(v)===o},at.isContextProvider=function(v){return e(v)===l},at.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},at.isForwardRef=function(v){return e(v)===u},at.isFragment=function(v){return e(v)===n},at.isLazy=function(v){return e(v)===p},at.isMemo=function(v){return e(v)===f},at.isPortal=function(v){return e(v)===r},at.isProfiler=function(v){return e(v)===a},at.isStrictMode=function(v){return e(v)===i},at.isSuspense=function(v){return e(v)===c},at.isSuspenseList=function(v){return e(v)===h},at.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===a||v===i||v===c||v===h||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===f||v.$$typeof===l||v.$$typeof===o||v.$$typeof===u||v.$$typeof===b||v.getModuleId!==void 0)},at.typeOf=e}()),at}process.env.NODE_ENV==="production"?Cp.exports=O$():Cp.exports=k$();var x0=Cp.exports;const $s=Q.createContext({});process.env.NODE_ENV!=="production"&&($s.displayName="ListContext");function D$(e){return dt("MuiList",e)}ht("MuiList",["root","padding","dense","subheader"]);const N$=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return St({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},D$,t)},L$=De("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]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),C0=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiList"}),b=n,{children:i,className:a,component:o="ul",dense:l=!1,disablePadding:u=!1,subheader:c}=b,h=xe(b,["children","className","component","dense","disablePadding","subheader"]),f=Q.useMemo(()=>({dense:l}),[l]),p=I(M({},n),{component:o,dense:l,disablePadding:u}),g=N$(p);return me.jsx($s.Provider,{value:f,children:me.jsxs(L$,I(M({as:o,className:He(g.root,a),ref:r,ownerState:p},h),{children:[c,i]}))})});process.env.NODE_ENV!=="production"&&(C0.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,dense:_.bool,disablePadding:_.bool,subheader:_.node,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function I$(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return i=>{const a=typeof t=="function"?t(i):t,o=typeof e=="function"?e(M(M({},i),a)):e,l=He(i==null?void 0:i.className,a==null?void 0:a.className,o==null?void 0:o.className);return M(M(M(M(M({},a),o),!!l&&{className:l}),(a==null?void 0:a.style)&&(o==null?void 0:o.style)&&{style:M(M({},a.style),o.style)}),(a==null?void 0:a.sx)&&(o==null?void 0:o.sx)&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]})};const r=t,n=He(r==null?void 0:r.className,e==null?void 0:e.className);return M(M(M(M(M({},t),e),!!n&&{className:n}),(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:M(M({},r.style),e.style)}),(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]})}function Wh(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Vy(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Fw(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.startsWith(t.keys.join(""))}function Zo(e,t,r,n,i,a){let o=!1,l=i(e,t,t?r:!1);for(;l;){if(l===e.firstChild){if(o)return!1;o=!0}const u=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Fw(l,a)||u)l=i(e,l,r);else return l.focus(),!0}return!1}const T0=Q.forwardRef(function(t,r){const E=t,{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:l,disabledItemsFocusable:u=!1,disableListWrap:c=!1,onKeyDown:h,variant:f="selectedMenu"}=E,p=xe(E,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),g=Q.useRef(null),b=Q.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});fi(()=>{i&&g.current.focus()},[i]),Q.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(S,{direction:P})=>{const R=!g.current.style.width;if(S.clientHeight<g.current.clientHeight&&R){const N=`${cw(Ui(S))}px`;g.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=N,g.current.style.width=`calc(100% + ${N})`}return g.current}}),[]);const v=S=>{const P=g.current,R=S.key;if(S.ctrlKey||S.metaKey||S.altKey){h&&h(S);return}const W=Or(P).activeElement;if(R==="ArrowDown")S.preventDefault(),Zo(P,W,c,u,Wh);else if(R==="ArrowUp")S.preventDefault(),Zo(P,W,c,u,Vy);else if(R==="Home")S.preventDefault(),Zo(P,null,c,u,Wh);else if(R==="End")S.preventDefault(),Zo(P,null,c,u,Vy);else if(R.length===1){const G=b.current,K=R.toLowerCase(),Z=performance.now();G.keys.length>0&&(Z-G.lastTime>500?(G.keys=[],G.repeating=!0,G.previousKeyMatched=!0):G.repeating&&K!==G.keys[0]&&(G.repeating=!1)),G.lastTime=Z,G.keys.push(K);const O=W&&!G.repeating&&Fw(W,G);G.previousKeyMatched&&(O||Zo(P,W,!1,u,Wh,G))?S.preventDefault():G.previousKeyMatched=!1}h&&h(S)},w=vr(g,r);let C=-1;Q.Children.forEach(o,(S,P)=>{if(!Q.isValidElement(S)){C===P&&(C+=1,C>=o.length&&(C=-1));return}process.env.NODE_ENV!=="production"&&x0.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
167
+ `)),S.props.disabled||(f==="selectedMenu"&&S.props.selected||C===-1)&&(C=P),C===P&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(C+=1,C>=o.length&&(C=-1))});const T=Q.Children.map(o,(S,P)=>{if(P===C){const R={};return a&&(R.autoFocus=!0),S.props.tabIndex===void 0&&f==="selectedMenu"&&(R.tabIndex=0),Q.cloneElement(S,R)}return S});return me.jsx(C0,I(M({role:"menu",ref:w,className:l,onKeyDown:v,tabIndex:i?0:-1},p),{children:T}))});process.env.NODE_ENV!=="production"&&(T0.propTypes={autoFocus:_.bool,autoFocusItem:_.bool,children:_.node,className:_.string,disabledItemsFocusable:_.bool,disableListWrap:_.bool,onKeyDown:_.func,variant:_.oneOf(["menu","selectedMenu"])});function $$(e){return typeof e=="string"}function Fs(e,t){var a,o;const{timeout:r,easing:n,style:i={}}=e;return{duration:(a=i.transitionDuration)!=null?a:typeof r=="number"?r:r[t.mode]||0,easing:(o=i.transitionTimingFunction)!=null?o:typeof n=="object"?n[t.mode]:n,delay:i.transitionDelay}}function Tp(e){return`scale(${e}, ${cn(e,2)})`}const F$={entering:{opacity:1,transform:Tp(1)},entered:{opacity:1,transform:"none"}},jh=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),zs=Q.forwardRef(function(t,r){const B=t,{addEndListener:n,appear:i=!0,children:a,easing:o,in:l,onEnter:u,onEntered:c,onEntering:h,onExit:f,onExited:p,onExiting:g,style:b,timeout:v="auto",TransitionComponent:w=tn}=B,C=xe(B,["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),T=$i(),E=Q.useRef(),S=fl(),P=Q.useRef(null),R=vr(P,fo(a),r),N=V=>H=>{if(V){const U=P.current;H===void 0?V(U):V(U,H)}},W=N(h),G=N((V,H)=>{const{duration:U,delay:te,easing:F}=Fs({style:b,timeout:v,easing:o},{mode:"enter"});let Y;v==="auto"?(Y=S.transitions.getAutoHeightDuration(V.clientHeight),E.current=Y):Y=U,V.style.transition=[S.transitions.create("opacity",{duration:Y,delay:te}),S.transitions.create("transform",{duration:jh?Y:Y*.666,delay:te,easing:F})].join(","),u&&u(V,H)}),K=N(c),Z=N(g),O=N(V=>{const{duration:H,delay:U,easing:te}=Fs({style:b,timeout:v,easing:o},{mode:"exit"});let F;v==="auto"?(F=S.transitions.getAutoHeightDuration(V.clientHeight),E.current=F):F=H,V.style.transition=[S.transitions.create("opacity",{duration:F,delay:U}),S.transitions.create("transform",{duration:jh?F:F*.666,delay:jh?U:U||F*.333,easing:te})].join(","),V.style.opacity=0,V.style.transform=Tp(.75),f&&f(V)}),$=N(p),X=V=>{v==="auto"&&T.start(E.current||0,V),n&&n(P.current,V)};return me.jsx(w,I(M({appear:i,in:l,nodeRef:P,onEnter:G,onEntered:K,onEntering:W,onExit:O,onExited:$,onExiting:Z,addEndListener:X,timeout:v==="auto"?null:v},C),{children:(V,te)=>{var F=te,{ownerState:H}=F,U=xe(F,["ownerState"]);return Q.cloneElement(a,M({style:M(M(M({opacity:0,transform:Tp(.75),visibility:V==="exited"&&!l?"hidden":void 0},F$[V]),b),a.props.style),ref:R},U))}}))});process.env.NODE_ENV!=="production"&&(zs.propTypes={addEndListener:_.func,appear:_.bool,children:ta.isRequired,easing:_.oneOfType([_.shape({enter:_.string,exit:_.string}),_.string]),in:_.bool,onEnter:_.func,onEntered:_.func,onEntering:_.func,onExit:_.func,onExited:_.func,onExiting:_.func,style:_.object,timeout:_.oneOfType([_.oneOf(["auto"]),_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})])});zs&&(zs.muiSupportAuto=!0);function z$(e){const t=Or(e);return t.body===e?Ui(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function xs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Gy(e){return parseInt(Ui(e).getComputedStyle(e).paddingRight,10)||0}function B$(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function Uy(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const l=!a.includes(o),u=!B$(o);l&&u&&xs(o,i)})}function Vh(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function H$(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(z$(n)){const o=cw(Ui(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Gy(n)+o}px`;const l=Or(n).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${Gy(u)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Or(n).body;else{const o=n.parentElement,l=Ui(n);a=(o==null?void 0:o.nodeName)==="HTML"&&l.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:l})=>{a?o.style.setProperty(l,a):o.style.removeProperty(l)})}}function W$(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class j${constructor(){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&&xs(t.modalRef,!1);const i=W$(r);Uy(r,t.mount,t.modalRef,i,!0);const a=Vh(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=Vh(this.containers,a=>a.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=H$(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Vh(this.containers,o=>o.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&xs(t.modalRef,r),Uy(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&xs(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const V$=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function G$(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 U$(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 Y$(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||U$(e))}function q$(e){const t=[],r=[];return Array.from(e.querySelectorAll(V$)).forEach((n,i)=>{const a=G$(n);a===-1||!Y$(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function X$(){return!0}function uc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=q$,isEnabled:o=X$,open:l}=e,u=Q.useRef(!1),c=Q.useRef(null),h=Q.useRef(null),f=Q.useRef(null),p=Q.useRef(null),g=Q.useRef(!1),b=Q.useRef(null),v=vr(fo(t),b),w=Q.useRef(null);Q.useEffect(()=>{!l||!b.current||(g.current=!r)},[r,l]),Q.useEffect(()=>{if(!l||!b.current)return;const E=Or(b.current);return b.current.contains(E.activeElement)||(b.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
168
+ `)),b.current.setAttribute("tabIndex","-1")),g.current&&b.current.focus()),()=>{i||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[l]),Q.useEffect(()=>{if(!l||!b.current)return;const E=Or(b.current),S=N=>{w.current=N,!(n||!o()||N.key!=="Tab")&&E.activeElement===b.current&&N.shiftKey&&(u.current=!0,h.current&&h.current.focus())},P=()=>{var G,K;const N=b.current;if(N===null)return;if(!E.hasFocus()||!o()||u.current){u.current=!1;return}if(N.contains(E.activeElement)||n&&E.activeElement!==c.current&&E.activeElement!==h.current)return;if(E.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let W=[];if((E.activeElement===c.current||E.activeElement===h.current)&&(W=a(b.current)),W.length>0){const Z=!!((G=w.current)!=null&&G.shiftKey&&((K=w.current)==null?void 0:K.key)==="Tab"),O=W[0],$=W[W.length-1];typeof O!="string"&&typeof $!="string"&&(Z?$.focus():O.focus())}else N.focus()};E.addEventListener("focusin",P),E.addEventListener("keydown",S,!0);const R=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(R),E.removeEventListener("focusin",P),E.removeEventListener("keydown",S,!0)}},[r,n,i,o,l,a]);const C=E=>{f.current===null&&(f.current=E.relatedTarget),g.current=!0,p.current=E.target;const S=t.props.onFocus;S&&S(E)},T=E=>{f.current===null&&(f.current=E.relatedTarget),g.current=!0};return me.jsxs(Q.Fragment,{children:[me.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:c,"data-testid":"sentinelStart"}),Q.cloneElement(t,{ref:v,onFocus:C}),me.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:h,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(uc.propTypes={children:ta,disableAutoFocus:_.bool,disableEnforceFocus:_.bool,disableRestoreFocus:_.bool,getTabbable:_.func,isEnabled:_.func,open:_.bool.isRequired});process.env.NODE_ENV!=="production"&&(uc.propTypes=h0(uc.propTypes));function Z$(e){return typeof e=="function"?e():e}const Bs=Q.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,l]=Q.useState(null),u=vr(Q.isValidElement(n)?fo(n):null,r);if(fi(()=>{a||l(Z$(i)||document.body)},[i,a]),fi(()=>{if(o&&!a)return Py(r,o),()=>{Py(r,null)}},[r,o,a]),a){if(Q.isValidElement(n)){const c={ref:u};return Q.cloneElement(n,c)}return n}return o&&d3.createPortal(n,o)});process.env.NODE_ENV!=="production"&&(Bs.propTypes={children:_.node,container:_.oneOfType([jn,_.func]),disablePortal:_.bool});process.env.NODE_ENV!=="production"&&(Bs.propTypes=h0(Bs.propTypes));const K$={entering:{opacity:1},entered:{opacity:1}},M0=Q.forwardRef(function(t,r){const n=fl(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},X=t,{addEndListener:a,appear:o=!0,children:l,easing:u,in:c,onEnter:h,onEntered:f,onEntering:p,onExit:g,onExited:b,onExiting:v,style:w,timeout:C=i,TransitionComponent:T=tn}=X,E=xe(X,["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),S=Q.useRef(null),P=vr(S,fo(l),r),R=B=>V=>{if(B){const H=S.current;V===void 0?B(H):B(H,V)}},N=R(p),W=R((B,V)=>{const H=Fs({style:w,timeout:C,easing:u},{mode:"enter"});B.style.webkitTransition=n.transitions.create("opacity",H),B.style.transition=n.transitions.create("opacity",H),h&&h(B,V)}),G=R(f),K=R(v),Z=R(B=>{const V=Fs({style:w,timeout:C,easing:u},{mode:"exit"});B.style.webkitTransition=n.transitions.create("opacity",V),B.style.transition=n.transitions.create("opacity",V),g&&g(B)}),O=R(b),$=B=>{a&&a(S.current,B)};return me.jsx(T,I(M({appear:o,in:c,nodeRef:S,onEnter:W,onEntered:G,onEntering:N,onExit:Z,onExited:O,onExiting:K,addEndListener:$,timeout:C},E),{children:(B,U)=>{var te=U,{ownerState:V}=te,H=xe(te,["ownerState"]);return Q.cloneElement(l,M({style:M(M(M({opacity:0,visibility:B==="exited"&&!c?"hidden":void 0},K$[B]),w),l.props.style),ref:P},H))}}))});process.env.NODE_ENV!=="production"&&(M0.propTypes={addEndListener:_.func,appear:_.bool,children:ta.isRequired,easing:_.oneOfType([_.shape({enter:_.string,exit:_.string}),_.string]),in:_.bool,onEnter:_.func,onEntered:_.func,onEntering:_.func,onExit:_.func,onExited:_.func,onExiting:_.func,style:_.object,timeout:_.oneOfType([_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})])});function Q$(e){return dt("MuiBackdrop",e)}ht("MuiBackdrop",["root","invisible"]);const J$=e=>{const{classes:t,invisible:r}=e;return St({root:["root",r&&"invisible"]},Q$,t)},e8=De("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),S0=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiBackdrop"}),G=n,{children:i,className:a,component:o="div",invisible:l=!1,open:u,components:c={},componentsProps:h={},slotProps:f={},slots:p={},TransitionComponent:g,transitionDuration:b}=G,v=xe(G,["children","className","component","invisible","open","components","componentsProps","slotProps","slots","TransitionComponent","transitionDuration"]),w=I(M({},n),{component:o,invisible:l}),C=J$(w),T=M({transition:g,root:c.Root},p),E=M(M({},h),f),S={slots:T,slotProps:E},[P,R]=Xt("root",{elementType:e8,externalForwardedProps:S,className:He(C.root,a),ownerState:w}),[N,W]=Xt("transition",{elementType:M0,externalForwardedProps:S,ownerState:w});return me.jsx(N,I(M(M({in:u,timeout:b},v),W),{children:me.jsx(P,I(M({"aria-hidden":!0},R),{classes:C,ref:r,children:i}))}))});process.env.NODE_ENV!=="production"&&(S0.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,components:_.shape({Root:_.elementType}),componentsProps:_.shape({root:_.object}),invisible:_.bool,open:_.bool.isRequired,slotProps:_.shape({root:_.oneOfType([_.func,_.object]),transition:_.oneOfType([_.func,_.object])}),slots:_.shape({root:_.elementType,transition:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),TransitionComponent:_.elementType,transitionDuration:_.oneOfType([_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})])});function t8(e){return typeof e=="function"?e():e}function r8(e){return e?e.props.hasOwnProperty("in"):!1}const Yy=()=>{},fu=new j$;function n8(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:l,onClose:u,open:c,rootRef:h}=e,f=Q.useRef({}),p=Q.useRef(null),g=Q.useRef(null),b=vr(g,h),[v,w]=Q.useState(!c),C=r8(l);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const E=()=>Or(p.current),S=()=>(f.current.modalRef=g.current,f.current.mount=p.current,f.current),P=()=>{fu.mount(S(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},R=Bn(()=>{const B=t8(t)||E().body;fu.add(S(),B),g.current&&P()}),N=()=>fu.isTopModal(S()),W=Bn(B=>{p.current=B,B&&(c&&N()?P():g.current&&xs(g.current,T))}),G=Q.useCallback(()=>{fu.remove(S(),T)},[T]);Q.useEffect(()=>()=>{G()},[G]),Q.useEffect(()=>{c?R():(!C||!i)&&G()},[c,G,C,i,R]);const K=B=>V=>{var H;(H=B.onKeyDown)==null||H.call(B,V),!(V.key!=="Escape"||V.which===229||!N())&&(r||(V.stopPropagation(),u&&u(V,"escapeKeyDown")))},Z=B=>V=>{var H;(H=B.onClick)==null||H.call(B,V),V.target===V.currentTarget&&u&&u(V,"backdropClick")};return{getRootProps:(B={})=>{const V=hw(e);delete V.onTransitionEnter,delete V.onTransitionExited;const H=M(M({},V),B);return I(M({role:"presentation"},H),{onKeyDown:K(H),ref:b})},getBackdropProps:(B={})=>{const V=B;return I(M({"aria-hidden":!0},V),{onClick:Z(V),open:c})},getTransitionProps:()=>{var H,U;const B=()=>{w(!1),a&&a()},V=()=>{w(!0),o&&o(),i&&G()};return{onEnter:yp(B,(H=l==null?void 0:l.props.onEnter)!=null?H:Yy),onExited:yp(V,(U=l==null?void 0:l.props.onExited)!=null?U:Yy)}},rootRef:b,portalRef:W,isTopModal:N,exited:v,hasTransition:C}}function i8(e){return dt("MuiModal",e)}ht("MuiModal",["root","hidden","backdrop"]);const a8=e=>{const{open:t,exited:r,classes:n}=e;return St({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},i8,n)},o8=De("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})($t(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),s8=De(S0,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),E0=Q.forwardRef(function(t,r){const n=wt({name:"MuiModal",props:t}),ye=n,{BackdropComponent:i=s8,BackdropProps:a,classes:o,className:l,closeAfterTransition:u=!1,children:c,container:h,component:f,components:p={},componentsProps:g={},disableAutoFocus:b=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:w=!1,disablePortal:C=!1,disableRestoreFocus:T=!1,disableScrollLock:E=!1,hideBackdrop:S=!1,keepMounted:P=!1,onBackdropClick:R,onClose:N,onTransitionEnter:W,onTransitionExited:G,open:K,slotProps:Z={},slots:O={},theme:$}=ye,X=xe(ye,["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"]),B=I(M({},n),{closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:v,disableEscapeKeyDown:w,disablePortal:C,disableRestoreFocus:T,disableScrollLock:E,hideBackdrop:S,keepMounted:P}),{getRootProps:V,getBackdropProps:H,getTransitionProps:U,portalRef:te,isTopModal:F,exited:Y,hasTransition:ne}=n8(I(M({},B),{rootRef:r})),ie=I(M({},B),{exited:Y}),re=a8(ie),oe={};if(c.props.tabIndex===void 0&&(oe.tabIndex="-1"),ne){const{onEnter:J,onExited:we}=U();oe.onEnter=J,oe.onExited=we}const le={slots:M({root:p.Root,backdrop:p.Backdrop},O),slotProps:M(M({},g),Z)},[de,ce]=Xt("root",{ref:r,elementType:o8,externalForwardedProps:I(M(M({},le),X),{component:f}),getSlotProps:V,ownerState:ie,className:He(l,re==null?void 0:re.root,!ie.open&&ie.exited&&(re==null?void 0:re.hidden))}),[ve,Ce]=Xt("backdrop",{ref:a==null?void 0:a.ref,elementType:i,externalForwardedProps:le,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:J=>H(I(M({},J),{onClick:we=>{R&&R(we),J!=null&&J.onClick&&J.onClick(we)}})),className:He(a==null?void 0:a.className,re==null?void 0:re.backdrop),ownerState:ie});return!P&&!K&&(!ne||Y)?null:me.jsx(Bs,{ref:te,container:h,disablePortal:C,children:me.jsxs(de,I(M({},ce),{children:[!S&&i?me.jsx(ve,M({},Ce)):null,me.jsx(uc,{disableEnforceFocus:v,disableAutoFocus:b,disableRestoreFocus:T,isEnabled:F,open:K,children:Q.cloneElement(c,oe)})]}))})});process.env.NODE_ENV!=="production"&&(E0.propTypes={BackdropComponent:_.elementType,BackdropProps:_.object,children:ta.isRequired,classes:_.object,className:_.string,closeAfterTransition:_.bool,component:_.elementType,components:_.shape({Backdrop:_.elementType,Root:_.elementType}),componentsProps:_.shape({backdrop:_.oneOfType([_.func,_.object]),root:_.oneOfType([_.func,_.object])}),container:_.oneOfType([jn,_.func]),disableAutoFocus:_.bool,disableEnforceFocus:_.bool,disableEscapeKeyDown:_.bool,disablePortal:_.bool,disableRestoreFocus:_.bool,disableScrollLock:_.bool,hideBackdrop:_.bool,keepMounted:_.bool,onBackdropClick:_.func,onClose:_.func,onTransitionEnter:_.func,onTransitionExited:_.func,open:_.bool.isRequired,slotProps:_.shape({backdrop:_.oneOfType([_.func,_.object]),root:_.oneOfType([_.func,_.object])}),slots:_.shape({backdrop:_.elementType,root:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function l8(e){return dt("MuiPaper",e)}ht("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 u8=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return St(a,l8,i)},c8=De("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}`]]}})($t(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Kc=Q.forwardRef(function(t,r){var b;const n=wt({props:t,name:"MuiPaper"}),i=fl(),g=n,{className:a,component:o="div",elevation:l=1,square:u=!1,variant:c="elevation"}=g,h=xe(g,["className","component","elevation","square","variant"]),f=I(M({},n),{component:o,elevation:l,square:u,variant:c}),p=u8(f);return process.env.NODE_ENV!=="production"&&i.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(`
169
+ `)),me.jsx(c8,I(M({as:o,ownerState:f,className:He(p.root,a),ref:r},h),{style:M(M({},c==="elevation"&&M(M({"--Paper-shadow":(i.vars||i).shadows[l]},i.vars&&{"--Paper-overlay":(b=i.vars.overlays)==null?void 0:b[l]}),!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${yt("#fff",_p(l))}, ${yt("#fff",_p(l))})`})),h.style)}))});process.env.NODE_ENV!=="production"&&(Kc.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,elevation:qn(mn,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:_.bool,style:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),variant:_.oneOfType([_.oneOf(["elevation","outlined"]),_.string])});function d8(e){return dt("MuiPopover",e)}ht("MuiPopover",["root","paper"]);function qy(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Xy(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Zy(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 h8=e=>{const{classes:t}=e;return St({root:["root"],paper:["paper"]},d8,t)},f8=De(E0,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zw=De(Kc,{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}),P0=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiPopover"}),Ce=n,{action:i,anchorEl:a,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:c,className:h,container:f,elevation:p=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:w={},slotProps:C={},transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:E,transitionDuration:S="auto",TransitionProps:P={},disableScrollLock:R=!1}=Ce,N=xe(Ce,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"]),W=Q.useRef(),G=I(M({},n),{anchorOrigin:o,anchorReference:u,elevation:p,marginThreshold:g,transformOrigin:T,TransitionComponent:E,transitionDuration:S,TransitionProps:P}),K=h8(G),Z=Q.useCallback(()=>{if(u==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const we=hs(a),Ee=we&&we.nodeType===1?we:Or(W.current).body,ke=Ee.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const $e=Ee.getBoundingClientRect();process.env.NODE_ENV!=="test"&&$e.top===0&&$e.left===0&&$e.right===0&&$e.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(`
170
+ `))}return{top:ke.top+qy(ke,o.vertical),left:ke.left+Xy(ke,o.horizontal)}},[a,o.horizontal,o.vertical,l,u]),O=Q.useCallback(we=>({vertical:qy(we,T.vertical),horizontal:Xy(we,T.horizontal)}),[T.horizontal,T.vertical]),$=Q.useCallback(we=>{const Ee={width:we.offsetWidth,height:we.offsetHeight},ke=O(Ee);if(u==="none")return{top:null,left:null,transformOrigin:Zy(ke)};const $e=Z();let je=$e.top-ke.vertical,Ue=$e.left-ke.horizontal;const ir=je+Ee.height,Pt=Ue+Ee.width,Wt=Ui(hs(a)),kt=Wt.innerHeight-g,Pe=Wt.innerWidth-g;if(g!==null&&je<g){const jt=je-g;je-=jt,ke.vertical+=jt}else if(g!==null&&ir>kt){const jt=ir-kt;je-=jt,ke.vertical+=jt}if(process.env.NODE_ENV!=="production"&&Ee.height>kt&&Ee.height&&kt&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${Ee.height-kt}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
171
+ `)),g!==null&&Ue<g){const jt=Ue-g;Ue-=jt,ke.horizontal+=jt}else if(Pt>Pe){const jt=Pt-Pe;Ue-=jt,ke.horizontal+=jt}return{top:`${Math.round(je)}px`,left:`${Math.round(Ue)}px`,transformOrigin:Zy(ke)}},[a,u,Z,O,g]),[X,B]=Q.useState(b),V=Q.useCallback(()=>{const we=W.current;if(!we)return;const Ee=$(we);Ee.top!==null&&we.style.setProperty("top",Ee.top),Ee.left!==null&&(we.style.left=Ee.left),we.style.transformOrigin=Ee.transformOrigin,B(!0)},[$]);Q.useEffect(()=>(R&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[a,R,V]);const H=()=>{V()},U=()=>{B(!1)};Q.useEffect(()=>{b&&V()}),Q.useImperativeHandle(i,()=>b?{updatePosition:()=>{V()}}:null,[b,V]),Q.useEffect(()=>{if(!b)return;const we=NI(()=>{V()}),Ee=Ui(hs(a));return Ee.addEventListener("resize",we),()=>{we.clear(),Ee.removeEventListener("resize",we)}},[a,b,V]);let te=S;const F={slots:M({transition:E},w),slotProps:M({transition:P,paper:v},C)},[Y,ne]=Xt("transition",{elementType:zs,externalForwardedProps:F,ownerState:G,getSlotProps:we=>I(M({},we),{onEntering:(Ee,ke)=>{var $e;($e=we.onEntering)==null||$e.call(we,Ee,ke),H()},onExited:Ee=>{var ke;(ke=we.onExited)==null||ke.call(we,Ee),U()}}),additionalProps:{appear:!0,in:b}});S==="auto"&&!Y.muiSupportAuto&&(te=void 0);const ie=f||(a?Or(hs(a)).body:void 0),[re,ye]=Xt("root",{ref:r,elementType:f8,externalForwardedProps:M(M({},F),N),shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:w.backdrop},slotProps:{backdrop:I$(typeof C.backdrop=="function"?C.backdrop(G):C.backdrop,{invisible:!0})},container:ie,open:b},ownerState:G,className:He(K.root,h)}),J=ye,{slots:oe,slotProps:le}=J,de=xe(J,["slots","slotProps"]),[ce,ve]=Xt("paper",{ref:W,className:K.paper,elementType:zw,externalForwardedProps:F,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:X?void 0:{opacity:0}},ownerState:G});return me.jsx(re,I(M(M({},de),!$$(re)&&{slots:oe,slotProps:le,disableScrollLock:R}),{children:me.jsx(Y,I(M({},ne),{timeout:te,children:me.jsx(ce,I(M({},ve),{children:c}))}))}))});process.env.NODE_ENV!=="production"&&(P0.propTypes={action:ul,anchorEl:qn(_.oneOfType([jn,_.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(`
172
+ `))}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(`
173
+ `))}return null}),anchorOrigin:_.shape({horizontal:_.oneOfType([_.oneOf(["center","left","right"]),_.number]).isRequired,vertical:_.oneOfType([_.oneOf(["bottom","center","top"]),_.number]).isRequired}),anchorPosition:_.shape({left:_.number.isRequired,top:_.number.isRequired}),anchorReference:_.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:_.elementType,BackdropProps:_.object,children:_.node,classes:_.object,className:_.string,container:_.oneOfType([jn,_.func]),disableScrollLock:_.bool,elevation:mn,marginThreshold:_.number,onClose:_.func,open:_.bool.isRequired,PaperProps:_.shape({component:c0}),slotProps:_.shape({backdrop:_.oneOfType([_.func,_.object]),paper:_.oneOfType([_.func,_.object]),root:_.oneOfType([_.func,_.object]),transition:_.oneOfType([_.func,_.object])}),slots:_.shape({backdrop:_.elementType,paper:_.elementType,root:_.elementType,transition:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),transformOrigin:_.shape({horizontal:_.oneOfType([_.oneOf(["center","left","right"]),_.number]).isRequired,vertical:_.oneOfType([_.oneOf(["bottom","center","top"]),_.number]).isRequired}),TransitionComponent:_.elementType,transitionDuration:_.oneOfType([_.oneOf(["auto"]),_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})]),TransitionProps:_.object});function p8(e){return dt("MuiMenu",e)}ht("MuiMenu",["root","paper","list"]);const m8={vertical:"top",horizontal:"right"},g8={vertical:"top",horizontal:"left"},v8=e=>{const{classes:t}=e;return St({root:["root"],paper:["paper"],list:["list"]},p8,t)},y8=De(P0,{shouldForwardProp:e=>pl(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),b8=De(zw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),_8=De(T0,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Qc=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiMenu"}),te=n,{autoFocus:i=!0,children:a,className:o,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:h,PaperProps:f={},PopoverClasses:p,transitionDuration:g="auto",TransitionProps:F={}}=te,Y=F,{onEntering:b}=Y,v=xe(Y,["onEntering"]),ne=te,{variant:w="selectedMenu",slots:C={},slotProps:T={}}=ne,E=xe(ne,["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"]),S=Lc(),P=I(M({},n),{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:b,PaperProps:f,transitionDuration:g,TransitionProps:v,variant:w}),R=v8(P),N=i&&!l&&h,W=Q.useRef(null),G=(ie,re)=>{W.current&&W.current.adjustStyleForScrollbar(ie,{direction:S?"rtl":"ltr"}),b&&b(ie,re)},K=ie=>{ie.key==="Tab"&&(ie.preventDefault(),c&&c(ie,"tabKeyDown"))};let Z=-1;Q.Children.map(a,(ie,re)=>{Q.isValidElement(ie)&&(process.env.NODE_ENV!=="production"&&x0.isFragment(ie)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
174
+ `)),ie.props.disabled||(w==="selectedMenu"&&ie.props.selected||Z===-1)&&(Z=re))});const O={slots:C,slotProps:M({list:u,transition:v,paper:f},T)},$=f0({elementType:C.root,externalSlotProps:T.root,ownerState:P,className:[R.root,o]}),[X,B]=Xt("paper",{className:R.paper,elementType:b8,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:P}),[V,H]=Xt("list",{className:He(R.list,u.className),elementType:_8,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:ie=>I(M({},ie),{onKeyDown:re=>{var oe;K(re),(oe=ie.onKeyDown)==null||oe.call(ie,re)}}),ownerState:P}),U=typeof O.slotProps.transition=="function"?O.slotProps.transition(P):O.slotProps.transition;return me.jsx(y8,I(M({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?m8:g8,slots:M({root:C.root,paper:X,backdrop:C.backdrop},C.transition&&{transition:C.transition}),slotProps:{root:$,paper:B,backdrop:typeof T.backdrop=="function"?T.backdrop(P):T.backdrop,transition:I(M({},U),{onEntering:(...ie)=>{var re;G(...ie),(re=U==null?void 0:U.onEntering)==null||re.call(U,...ie)}})},open:h,ref:r,transitionDuration:g,ownerState:P},E),{classes:p,children:me.jsx(V,I(M({actions:W,autoFocus:i&&(Z===-1||l),autoFocusItem:N,variant:w},H),{children:a}))}))});process.env.NODE_ENV!=="production"&&(Qc.propTypes={anchorEl:_.oneOfType([jn,_.func]),autoFocus:_.bool,children:_.node,classes:_.object,className:_.string,disableAutoFocusItem:_.bool,MenuListProps:_.object,onClose:_.func,open:_.bool.isRequired,PaperProps:_.object,PopoverClasses:_.object,slotProps:_.shape({backdrop:_.oneOfType([_.func,_.object]),list:_.oneOfType([_.func,_.object]),paper:_.oneOfType([_.func,_.object]),root:_.oneOfType([_.func,_.object]),transition:_.oneOfType([_.func,_.object])}),slots:_.shape({backdrop:_.elementType,list:_.elementType,paper:_.elementType,root:_.elementType,transition:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),transitionDuration:_.oneOfType([_.oneOf(["auto"]),_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})]),TransitionProps:_.object,variant:_.oneOf(["menu","selectedMenu"])});const w8=({children:e,open:t,position:r,onClose:n,alignment:i})=>{const{themeSettings:a}=ot();return y.jsx(Qc,{MenuListProps:{dense:!0,sx:{paddingTop:0,paddingBottom:0,fontFamily:a.typography.fontFamily}},anchorReference:"anchorPosition",anchorPosition:r!=null?r:{left:0,top:0},disableEnforceFocus:!0,disableRestoreFocus:!0,open:t,onClose:n,slotProps:{paper:{sx:{borderRadius:0,border:"1px solid #bababa",boxShadow:"0 2px 4px 0 rgba(0,0,0,0.3)",fontFamily:a.typography.fontFamily,transform:t?`translate3d(${(i==null?void 0:i.horizontal)==="right"?"-100%":"0%"}, ${(i==null?void 0:i.vertical)==="bottom"?"-100%":"0%"}, 0) !important`:"none"}}},children:e})};function x8(e){return dt("MuiDivider",e)}const Ky=ht("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),C8=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:l,variant:u}=e;return St({root:["root",t&&"absolute",u,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",l==="right"&&o!=="vertical"&&"textAlignRight",l==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},x8,n)},T8=De("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]}})($t(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:yt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),M8=De("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})($t(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Hi=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiDivider"}),C=n,{absolute:i=!1,children:a,className:o,orientation:l="horizontal",component:u=a||l==="vertical"?"div":"hr",flexItem:c=!1,light:h=!1,role:f=u!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=C,b=xe(C,["absolute","children","className","orientation","component","flexItem","light","role","textAlign","variant"]),v=I(M({},n),{absolute:i,component:u,flexItem:c,light:h,orientation:l,role:f,textAlign:p,variant:g}),w=C8(v);return me.jsx(T8,I(M({as:u,className:He(w.root,o),role:f,ref:r,ownerState:v,"aria-orientation":f==="separator"&&(u!=="hr"||l==="vertical")?l:void 0},b),{children:a?me.jsx(M8,{className:w.wrapper,ownerState:v,children:a}):null}))});Hi&&(Hi.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Hi.propTypes={absolute:_.bool,children:_.node,classes:_.object,className:_.string,component:_.elementType,flexItem:_.bool,light:_.bool,orientation:_.oneOf(["horizontal","vertical"]),role:_.string,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),textAlign:_.oneOf(["center","left","right"]),variant:_.oneOfType([_.oneOf(["fullWidth","inset","middle"]),_.string])});const Qy=ht("MuiListItemIcon",["root","alignItemsFlexStart"]);function S8(e){return dt("MuiTypography",e)}const E8=ht("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),P8={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},A8=E6(),R8=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,l={root:["root",a,e.align!=="inherit"&&`align${Ie(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return St(l,S8,o)},O8=De("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${Ie(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})($t(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(pi()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${Ie(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Jy={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Er=Q.forwardRef(function(t,r){const E=wt({props:t,name:"MuiTypography"}),{color:n}=E,i=xe(E,["color"]),a=!P8[n],o=A8(M(M({},i),a&&{color:n})),S=o,{align:l="inherit",className:u,component:c,gutterBottom:h=!1,noWrap:f=!1,paragraph:p=!1,variant:g="body1",variantMapping:b=Jy}=S,v=xe(S,["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"]),w=I(M({},o),{align:l,color:n,className:u,component:c,gutterBottom:h,noWrap:f,paragraph:p,variant:g,variantMapping:b}),C=c||(p?"p":b[g]||Jy[g])||"span",T=R8(w);return me.jsx(O8,I(M({as:C,ref:r,className:He(T.root,u)},v),{ownerState:w,style:M(M({},l!=="inherit"&&{"--Typography-textAlign":l}),v.style)}))});process.env.NODE_ENV!=="production"&&(Er.propTypes={align:_.oneOf(["center","inherit","justify","left","right"]),children:_.node,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),_.string]),component:_.elementType,gutterBottom:_.bool,noWrap:_.bool,paragraph:_.bool,style:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),variant:_.oneOfType([_.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),_.string]),variantMapping:_.object});function k8(e){return dt("MuiListItemText",e)}const Mp=ht("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function D8(e){return dt("MuiMenuItem",e)}const Ko=ht("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),N8=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},L8=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:o}=e,u=St({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},D8,o);return M(M({},o),u)},I8=De(ra,{shouldForwardProp:e=>pl(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:N8})($t(({theme:e})=>I(M({},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","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ko.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ko.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ko.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt(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})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ko.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ko.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ky.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ky.inset}`]:{marginLeft:52},[`& .${Mp.root}`]:{marginTop:0,marginBottom:0},[`& .${Mp.inset}`]:{paddingLeft:36},[`& .${Qy.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:I(M({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2),{[`& .${Qy.root} svg`]:{fontSize:"1.25rem"}})}]}))),Jc=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiMenuItem"}),P=n,{autoFocus:i=!1,component:a="li",dense:o=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:c,role:h="menuitem",tabIndex:f,className:p}=P,g=xe(P,["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"]),b=Q.useContext($s),v=Q.useMemo(()=>({dense:o||b.dense||!1,disableGutters:u}),[b.dense,o,u]),w=Q.useRef(null);fi(()=>{i&&(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."))},[i]);const C=I(M({},n),{dense:v.dense,divider:l,disableGutters:u}),T=L8(n),E=vr(w,r);let S;return n.disabled||(S=f!==void 0?f:-1),me.jsx($s.Provider,{value:v,children:me.jsx(I8,I(M({ref:E,role:h,tabIndex:S,component:a,focusVisibleClassName:He(T.focusVisible,c),className:He(T.root,p)},g),{ownerState:C,classes:T}))})});process.env.NODE_ENV!=="production"&&(Jc.propTypes={autoFocus:_.bool,children:_.node,classes:_.object,className:_.string,component:_.elementType,dense:_.bool,disabled:_.bool,disableGutters:_.bool,divider:_.bool,focusVisibleClassName:_.string,role:_.string,selected:_.bool,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),tabIndex:_.number});const $8=({children:e,disabled:t,style:r,className:n="",onClick:i})=>{const{themeSettings:a}=ot();return y.jsx("div",{className:`csdk-menu-item ${n}`,children:y.jsx(Jc,{disabled:t,sx:M({width:"100%",minWidth:"170px",height:"29px",minHeight:"29px",fontFamily:a.typography.fontFamily,fontSize:"13px",paddingLeft:"30px",paddingRight:"15px",color:y.DEFAULT_TEXT_COLOR,"&:hover":{backgroundColor:y.DEFAULT_BACKGROUND_COLOR}},r),onClick:i,children:y.jsx("div",{className:"csdk-menu-item-content",children:e})})})};function F8(e){return dt("MuiListSubheader",e)}ht("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const z8=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:a}=e,o={root:["root",r!=="default"&&`color${Ie(r)}`,!n&&"gutters",i&&"inset",!a&&"sticky"]};return St(o,F8,t)},B8=De("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Ie(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})($t(({theme:e})=>({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),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),cc=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiListSubheader"}),g=n,{className:i,color:a="default",component:o="li",disableGutters:l=!1,disableSticky:u=!1,inset:c=!1}=g,h=xe(g,["className","color","component","disableGutters","disableSticky","inset"]),f=I(M({},n),{color:a,component:o,disableGutters:l,disableSticky:u,inset:c}),p=z8(f);return me.jsx(B8,M({as:o,className:He(p.root,i),ref:r,ownerState:f},h))});cc&&(cc.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(cc.propTypes={children:_.node,classes:_.object,className:_.string,color:_.oneOf(["default","inherit","primary"]),component:_.elementType,disableGutters:_.bool,disableSticky:_.bool,inset:_.bool,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});const H8=({children:e})=>{const{themeSettings:t}=ot();return y.jsx(cc,{sx:{width:"100%",minWidth:"170px",backgroundColor:"#f2f2f2",borderBottom:"1px solid #e6e6e6",height:"29px",lineHeight:"29px",fontFamily:t.typography.fontFamily,fontSize:"13px",paddingLeft:"15px",paddingRight:"15px",color:y.DEFAULT_TEXT_COLOR},children:e})};function W8({color:e=y.DEFAULT_TEXT_COLOR}){return y.jsx("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",children:y.jsx("path",{fill:e,d:"M13.34 12.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})})}const j8=({children:e,label:t,allowOpen:r,disabled:n,style:i,className:a=""})=>{const{themeSettings:o}=ot(),l=k.useRef(null),u=k.useRef(null),[c,h]=k.useState(!1),f=k.useCallback(()=>{n||h(!0)},[n]),p=k.useCallback(()=>h(!1),[]),g=k.useCallback(()=>h(!0),[]),b=k.useCallback(()=>h(!1),[]),v=c&&r;return y.jsxs("div",{ref:l,className:`csdk-menu-item ${a}`,children:[y.jsx(Jc,{disabled:n,sx:M({width:"100%",minWidth:"170px",height:"29px",minHeight:"29px",fontFamily:o.typography.fontFamily,fontSize:"13px",paddingLeft:"30px",paddingRight:"0px",color:y.DEFAULT_TEXT_COLOR,"&:hover":{backgroundColor:y.DEFAULT_BACKGROUND_COLOR}},i),onMouseEnter:f,onMouseLeave:p,children:y.jsxs("div",{className:"csdk-menu-item-content",style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t,y.jsx(W8,{})]})}),y.jsx(Qc,{ref:u,style:{pointerEvents:"none"},anchorEl:l.current,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:v,autoFocus:!1,disableAutoFocus:!0,disableEnforceFocus:!0,MenuListProps:{sx:{paddingTop:0,paddingBottom:0}},slotProps:{paper:{sx:{borderRadius:0,border:"1px solid #bababa",boxShadow:"0 2px 4px 0 rgba(0,0,0,0.3)",fontFamily:o.typography.fontFamily}}},onClose:()=>{h(!1)},onMouseEnter:g,onMouseLeave:b,children:y.jsx("div",{style:{pointerEvents:"auto"},children:e})})]})},V8="csdk-context-menu-selected-with-dot",Bw=({position:e,itemSections:t,children:r,closeContextMenu:n,alignment:i})=>{const[a,o]=k.useState(t),l=!!e;k.useEffect(()=>{t&&o(t)},[t]);const u=k.useCallback((c,h)=>{const{sectionTitle:f,items:p=[]}=c;return y.jsxs("div",{className:"csdk-menu-section",children:[f&&y.jsx(H8,{children:f}),p.map((g,b)=>{const{subItems:v}=g;return v&&v.length?y.jsx(j8,{label:g.caption,allowOpen:l,style:g.style,className:g.class,children:v.map(u)},b):y.jsx($8,{disabled:g.disabled,style:g.style,className:g.class,onClick:()=>{var C;n(),(C=g.onClick)==null||C.call(g)},children:g.caption},b)})]},h!=null?h:f)},[n,l]);return y.jsx(y.Fragment,{children:y.jsxs(w8,{position:e!=null?e:null,open:l,onClose:n,alignment:i,children:[a==null?void 0:a.map(u),r]})})},G8=({children:e,onBeforeMenuOpen:t})=>{const[r,n]=k.useState(null),i=k.useCallback(u=>{const c=t?t(u):u;c&&n(c)},[t]),a=k.useCallback(()=>{n(null)},[]),o=k.useCallback(()=>{var u;(u=r==null?void 0:r.onClose)==null||u.call(r),a()},[a,r]),l=k.useMemo(()=>({openMenu:i,closeMenu:a}),[i,a]);return y.jsxs(w0.Provider,{value:l,children:[y.jsx(Bw,{position:r==null?void 0:r.position,itemSections:r==null?void 0:r.itemSections,closeContextMenu:o,alignment:r==null?void 0:r.alignment}),e]})},U8=({children:e,onBeforeMenuOpen:t})=>{const r=Zc(),n=k.useCallback(o=>{const l=t?t(o):o;l&&(r==null||r.openMenu(l))},[t,r]),i=k.useCallback(()=>{r==null||r.closeMenu()},[r]),a={openMenu:n,closeMenu:i};return y.jsx(w0.Provider,{value:a,children:e})},Hw=({children:e,onBeforeMenuOpen:t})=>Zc()?t?y.jsx(U8,{onBeforeMenuOpen:t,children:e}):y.jsx(y.Fragment,{children:e}):y.jsx(G8,{onBeforeMenuOpen:t,children:e}),Y8=({shouldHaveOwnMenuRoot:e}={})=>t=>function(n){const a=!!Zc();return e&&!a?y.jsx(Hw,{children:y.jsx(t,M({},n))}):y.jsx(t,M({},n))},A0=k.createContext(null),ed=()=>k.useContext(A0);function q8(e,t){if(!Array.isArray(e))return e;const r=[`${t} & { ${e[0]}`,...e.slice(1,-1),`${e[e.length-1]} }`],n=r;return n.raw=r,n}function e1(e,t){return function(r,...n){const i=k.forwardRef((a,o)=>{var h,f;const{config:l}=ot(),u=(h=l==null?void 0:l.cssSelectorPrefix)!=null&&h.enabled?(f=l==null?void 0:l.cssSelectorPrefix)==null?void 0:f.value:"",c=k.useMemo(()=>{const p=u?q8(r,u):r;return e(t)(p,...n)},[u]);return y.jsx(c,M({ref:o},a))});return e(i,{shouldForwardProp:()=>!0})``}}function X8(e){const t=a=>e1(e,a),n=Object.keys(e).reduce((a,o)=>(a[o]=e1(e,o),a),{});return Object.assign(t,n)}const Gt=X8(ic),Z8=Gt(P0)`
175
+ // This fixes an issue where the popover appears before its position is calculated, causing it to 'jump' from the top-left corner.
176
+ // Known MUI issue: https://github.com/mui/material-ui/issues/8040
177
+ .MuiPaper-root.MuiPopover-paper:not([style*='top']),
178
+ .MuiPaper-root.MuiPopover-paper:not([style*='left']) {
179
+ opacity: 0 !important;
180
+ }
181
+ `,R0=e=>{var f;const h=e,{children:t,open:r,id:n,position:i,onClose:a,BackdropProps:o,style:l,slotProps:u}=h,c=xe(h,["children","open","id","position","onClose","BackdropProps","style","slotProps"]);return y.jsx(Z8,I(M({id:n,className:"csdk-accessible",anchorEl:i==null?void 0:i.anchorEl,anchorOrigin:i==null?void 0:i.anchorOrigin,transformOrigin:i==null?void 0:i.contentOrigin,transitionDuration:0,open:r,BackdropProps:o,style:l,slotProps:{paper:{sx:M({display:"flex",boxShadow:"-1px -1px 10px rgba(0, 0, 0, 0.2)"},(f=u==null?void 0:u.paper)==null?void 0:f.sx)}},onClose:a},c),{children:t}))};let K8=0;const Q8=()=>`modal-${++K8}`,Sa=new Set,J8=({children:e})=>{const[t,r]=k.useState([]),n=k.useRef([]);k.useEffect(()=>()=>{Sa.forEach(f=>{try{f&&f.parentNode&&f.parentNode===document.body&&document.body.contains(f)&&document.body.removeChild(f)}catch(p){}}),Sa.clear()},[]);const i=k.useCallback(f=>new Promise(p=>{const g=Q8();let b;try{b=document.createElement("div"),b.style.position="fixed",b.style.top="50%",b.style.left="50%",b.style.transform="translate(-50%, -50%)",b.style.width="1px",b.style.height="1px",b.style.pointerEvents="none",b.style.visibility="hidden",b.setAttribute("data-modal-anchor",g),document.body&&typeof document.body.appendChild=="function"?(document.body.appendChild(b),Sa.add(b)):console.warn("Modal: Unable to append anchor element to document body")}catch(w){console.warn("Modal: Failed to create anchor element:",w),b=document.createElement("div"),b.setAttribute("data-modal-anchor",g)}const v={id:g,options:f,anchorEl:b,resolve:()=>p(g)};r(w=>{const C=[...w,v];return n.current=C,C}),p(g)}),[]),a=k.useCallback(f=>{r(p=>{if(!f){const v=p.slice(0,-1);n.current=v;const w=p[p.length-1];return w!=null&&w.anchorEl&&setTimeout(()=>{try{w.anchorEl&&w.anchorEl.parentNode&&w.anchorEl.parentNode===document.body&&document.body.contains(w.anchorEl)&&(document.body.removeChild(w.anchorEl),Sa.delete(w.anchorEl))}catch(C){}},0),w&&w.resolve(),v}const g=p.find(v=>v.id===f);g!=null&&g.anchorEl&&setTimeout(()=>{try{g.anchorEl&&g.anchorEl.parentNode&&g.anchorEl.parentNode===document.body&&document.body.contains(g.anchorEl)&&(document.body.removeChild(g.anchorEl),Sa.delete(g.anchorEl))}catch(v){}},0),g&&g.resolve();const b=p.filter(v=>v.id!==f);return n.current=b,b})},[]),o=k.useCallback(()=>{r(f=>(f.forEach(p=>{p.anchorEl&&setTimeout(()=>{try{p.anchorEl&&p.anchorEl.parentNode&&p.anchorEl.parentNode===document.body&&document.body.contains(p.anchorEl)&&(document.body.removeChild(p.anchorEl),Sa.delete(p.anchorEl))}catch(g){}},0),p.resolve()}),n.current=[],[]))},[]),l=k.useCallback(()=>n.current,[]),u=k.useCallback(f=>t.some(p=>p.id===f),[t]),c=k.useCallback(f=>{a(f)},[a]),h=k.useMemo(()=>({openModal:i,closeModal:a,closeAllModals:o,getModalStack:l,isModalOpen:u}),[i,a,o,l,u]);return y.jsxs(A0.Provider,{value:h,children:[t.map((f,p)=>{const{options:g}=f,b=g.measurement==="%"?`${g.width||80}%`:`${g.width||1200}px`,v=g.measurement==="%"?`${g.height||80}%`:`${g.height||800}px`;return y.jsx("div",{children:y.jsx("div",{"data-testid":"modal-backdrop",onClick:w=>{w.target.closest(".MuiPaper-root")||c(f.id)},style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1200+p},children:y.jsx(R0,{open:!0,position:{anchorEl:f.anchorEl,anchorOrigin:{vertical:"center",horizontal:"center"},contentOrigin:{vertical:"center",horizontal:"center"}},onClose:()=>a(f.id),BackdropProps:{style:{backgroundColor:"rgba(0, 0, 0, 0.5)"}},style:{zIndex:1200+p+10},slotProps:{paper:{sx:{display:"flex",width:b,height:v,maxWidth:"95vw",maxHeight:"95vh",position:"relative",zIndex:1200+p+10}}},children:y.jsx("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},onClick:w=>w.stopPropagation(),children:y.jsx("div",{style:{flex:1,overflow:"hidden"},children:g.content})})})})},f.id)}),e]})},eF=({children:e})=>{const t=ed(),r=k.useCallback(u=>(t==null?void 0:t.openModal(u))||Promise.resolve(""),[t]),n=k.useCallback(u=>{t==null||t.closeModal(u)},[t]),i=k.useCallback(()=>{t==null||t.closeAllModals()},[t]),a=k.useCallback(()=>(t==null?void 0:t.getModalStack())||[],[t]),o=k.useCallback(u=>(t==null?void 0:t.isModalOpen(u))||!1,[t]),l={openModal:r,closeModal:n,closeAllModals:i,getModalStack:a,isModalOpen:o};return y.jsx(A0.Provider,{value:l,children:e})},Ww=({children:e})=>ed()?y.jsx(eF,{children:e}):y.jsx(J8,{children:e}),tF=({shouldHaveOwnModalRoot:e}={})=>t=>function(n){const a=!!ed();return e&&!a?y.jsx(Ww,{children:y.jsx(t,M({},n))}):y.jsx(t,M({},n))};var rF="[object Boolean]";function jw(e){return e===!0||e===!1||j.isObjectLike(e)&&j.baseGetTag(e)==rF}function Vw(){var e,t;return(t=(e=document.head.querySelector('meta[property="csp-nonce"]'))==null?void 0:e.getAttribute("content"))!=null?t:void 0}const t1=Vw(),O0=({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=I(M({},t),{WebkitAnimationDelay:"-0.32s",animationDelay:"-0.32s"}),n=I(M({},t),{WebkitAnimationDelay:"-0.16s",animationDelay:"-0.16s"}),i=I(M({},t),{marginRight:"unset"}),a={"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 y.jsxs("div",{children:[y.jsx("style",I(M({},t1&&{nonce:t1}),{children:`
182
+ @keyframes loading-dots-animation {
183
+ ${Object.entries(a).map(([o,l])=>`${o} { ${Object.entries(l).map(([u,c])=>`${u}: ${c};`).join("")} }`).join("")}
184
+ }
185
+ `})),y.jsx("div",{style:r}),y.jsx("div",{style:n}),y.jsx("div",{style:i})]})},td=({themeSettings:e,onCancel:t})=>{const{t:r}=y.useTranslation(),n=e!=null&&e.chart.backgroundColor?{backgroundColor:e.chart.backgroundColor}:void 0;return y.jsx("div",{style:n,className:"csdk-h-full csdk-bg-white csdk-p-[20px]","aria-label":"csdk-loading-indicator",children:y.jsxs("div",{style:n,className:"csdk-h-full csdk-bg-background-priority csdk-flex csdk-flex-col csdk-gap-y-4 csdk-items-center csdk-justify-center",children:[y.jsx(O0,{color:e==null?void 0:e.chart.textColor}),t&&y.jsx("div",{className:"csdk-text-ai-sm csdk-text-text-link csdk-cursor-pointer",onClick:t,children:r("cancel")})]})})},nF=({shouldSkipSisenseContextWaiting:e,customContextErrorMessageKey:t})=>r=>function(i){if(iF(e,i))return y.jsx(r,M({},i));const{app:a,isInitialized:o}=Et();if(!o){const l=t||"errors.noSisenseContext";throw new j.TranslatableError(l)}return a?y.jsx(r,M({},i)):y.jsx(td,{})};function iF(e,t){return jw(e)&&e||j.isFunction(e)&&e(t)}const aF={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}},r1="composesdk",Gw=(e,t,r,n=!1)=>{const i=Object.assign({action:e,cat:r1,eventType:"product",direct:!0},t);return n&&(process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test")?(console.debug("DEBUG: event payload to send",i),Promise.resolve()):r.post("api/activities/",[i],{cache:"no-store",redirect:"error",referrerPolicy:"same-origin",priority:"low"}).catch(a=>{console.error(`unable to log action=${e}, category=${r1}`,a)})},n1=(e,t,r,n,i)=>{const a=aF[`${e}`];return a.internal&&Gw(e,t,r,i),a.external&&n&&n(M({action:e},t)),Promise.resolve()},k0=()=>{var a,o;const{tracking:e,app:t}=Et(),r=(o=(a=t==null?void 0:t.httpClient)==null?void 0:a.auth)==null?void 0:o.type,n=k.useCallback((l,u={},c=!1)=>t?n1(l,I(M({},u),{authType:r}),t.httpClient,e.onTrackingEvent,c):Promise.resolve(),[e,t,r]),i=k.useCallback((l,u=!1)=>{if(!t)return Promise.resolve();const{packageName:c,packageVersion:h,component:f,error:p}=l;let g="";return typeof p=="string"?g=p:p instanceof Error&&(g=p.message||p.toString()),n1("sdkError",I(M({},{packageName:c,packageVersion:h,component:f,error:g}),{authType:r}),t.httpClient,e.onTrackingEvent,u)},[e,t,r]);return{trackEvent:n,trackError:i}};class Uw extends k.Component{constructor(r){super(r);Xe(this,"componentName");Xe(this,"context");Xe(this,"handler");Xe(this,"httpClient");Xe(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:"2.17.0",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}}Xe(Uw,"contextType",y0);const oF="sdkComponentInit",Yw=k.createContext(!1),sF=({skipNested:e=!0,children:t})=>y.jsx(Yw.Provider,{value:e,children:t}),lF=(e,t)=>{const{componentName:r,config:n}=e,{tracking:i,app:a}=Et(),{trackEvent:o}=k0(),l=k.useContext(Yw),u=k.useRef(!1);k.useEffect(()=>{if(!i||!a)return;if(!u.current&&!l){const h={packageName:n.packageName||i.packageName,packageVersion:n.packageVersion||"2.17.0",componentName:r,attributesUsed:Object.entries(t).filter(([,f])=>!!f).map(([f])=>f).join(", ")};o(oF,h,!i.enabled).finally(()=>u.current=!0)}},[r,t,i,l,o,a,n])},qw=({componentName:e,config:t})=>{const{skip:r,transparent:n}=t||{};return i=>function(o){const{trackError:l}=k0();return jw(r)&&r||j.isFunction(r)&&r(o)?y.jsx(i,M({},o)):(lF({componentName:e,config:t},o),y.jsx(sF,{skipNested:!n,children:y.jsx(Uw,{componentName:e,handler:l,children:y.jsx(i,M({},o))})}))}},uF=e=>t=>(t.displayName=e,t),ml=e=>{const{componentName:t,shouldSkipSisenseContextWaiting:r,trackingConfig:n={},customContextErrorMessageKey:i,shouldHaveOwnMenuRoot:a,shouldHaveOwnModalRoot:o}=e;return l=>y.flow(uF(t),nF({shouldSkipSisenseContextWaiting:r,customContextErrorMessageKey:i}),qw({componentName:t,config:n}),$w({componentName:t}),S$(),Y8({shouldHaveOwnMenuRoot:a}),tF({shouldHaveOwnModalRoot:o}))(l)};function i1(e){return`${e.fontFamily}|${e.fontWeight}|${e.fontStyle}`}function cF(e,t){const[r,n]=k.useState([]),[i,a]=k.useState(!1),o=k.useMemo(()=>e.filter(l=>!t.includes(i1(l))),[e,t]);return k.useEffect(()=>{if(o.length===0){a(!0);return}let l=!1;const u=o.map(c=>{const h=c.src.map(p=>Object.entries(p).map(([b,v])=>`${b}('${v}')`).join(" ")).join(", ");return new FontFace(c.fontFamily,h,{style:c.fontStyle,weight:c.fontWeight.toString()}).load().then(p=>(l||document.fonts.add(p),i1(c)))});return Promise.all(u).then(c=>{l||(n(h=>[...h,...c]),a(!0))}).catch(c=>{console.error("Failed to load fonts:",c),a(!0)}),()=>{l=!0}},[o]),{loadedFonts:r,areAllFontsLoaded:i}}const a1=k.createContext({loadedFonts:[]}),dF=({fonts:e,children:t})=>{var o;const{loadedFonts:r}=k.useContext(a1),{themeSettings:n}=ot(),{loadedFonts:i,areAllFontsLoaded:a}=cF(e||((o=n.typography.fontsLoader)==null?void 0:o.fonts)||[],r);return y.jsx(a1.Provider,{value:{loadedFonts:[...r,...i]},children:a&&t})};var Xw=(e=>(e.DEFAULT="default",e.HOVER="hover",e.FOCUS="focus",e))(Xw||{});function Iu(e){return typeof e=="string"}function hF(e){var u;const t=ot().themeSettings,[r,n]=k.useState(null),[i,a]=k.useState(null),o=(u=Et().app)==null?void 0:u.httpClient;k.useEffect(()=>{e&&Iu(e)&&o&&H2(e,o).then(c=>{n(c)}).catch(a)},[o,e]),k.useEffect(()=>{(!e||!Iu(e))&&(n(null),a(null))},[e]);const l=k.useMemo(()=>r?o1(t,r):e&&!Iu(e)?o1(t,e):t,[r,t,e]);return i?[null,i]:[l,null]}function o1(e,t){return j.merge$1.withOptions({mergeArrays:!1},e,t)}const Zw=ml({componentName:"ThemeProvider",trackingConfig:{skip:e=>!!e.skipTracking,transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{const{theme:t,children:r,config:n}=e,[i,a]=hF(t),o=ot().config,l=k.useMemo(()=>n&&o?j.merge$1.withOptions({mergeArrays:!1},o,n):n||o,[o,n]);if(a)throw a;return y.jsx(y.Fragment,{children:i&&y.jsx(b0.Provider,{value:{themeSettings:i,config:l},children:y.jsx(dF,{children:r})})})});var Sp={exports:{}};/* @preserve
186
+ * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
187
+ * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
188
+ */(function(e,t){(function(r,n){n(t)})(y.commonjsGlobal,function(r){var n="1.9.4";function i(s){var d,m,x,A;for(m=1,x=arguments.length;m<x;m++){A=arguments[m];for(d in A)s[d]=A[d]}return s}var a=Object.create||function(){function s(){}return function(d){return s.prototype=d,new s}}();function o(s,d){var m=Array.prototype.slice;if(s.bind)return s.bind.apply(s,m.call(arguments,1));var x=m.call(arguments,2);return function(){return s.apply(d,x.length?x.concat(m.call(arguments)):arguments)}}var l=0;function u(s){return"_leaflet_id"in s||(s._leaflet_id=++l),s._leaflet_id}function c(s,d,m){var x,A,D,q;return q=function(){x=!1,A&&(D.apply(m,A),A=!1)},D=function(){x?A=arguments:(s.apply(m,arguments),setTimeout(q,d),x=!0)},D}function h(s,d,m){var x=d[1],A=d[0],D=x-A;return s===x&&m?s:((s-A)%D+D)%D+A}function f(){return!1}function p(s,d){if(d===!1)return s;var m=Math.pow(10,d===void 0?6:d);return Math.round(s*m)/m}function g(s){return s.trim?s.trim():s.replace(/^\s+|\s+$/g,"")}function b(s){return g(s).split(/\s+/)}function v(s,d){Object.prototype.hasOwnProperty.call(s,"options")||(s.options=s.options?a(s.options):{});for(var m in d)s.options[m]=d[m];return s.options}function w(s,d,m){var x=[];for(var A in s)x.push(encodeURIComponent(m?A.toUpperCase():A)+"="+encodeURIComponent(s[A]));return(!d||d.indexOf("?")===-1?"?":"&")+x.join("&")}var C=/\{ *([\w_ -]+) *\}/g;function T(s,d){return s.replace(C,function(m,x){var A=d[x];if(A===void 0)throw new Error("No value provided for variable "+m);return typeof A=="function"&&(A=A(d)),A})}var E=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"};function S(s,d){for(var m=0;m<s.length;m++)if(s[m]===d)return m;return-1}var P="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function R(s){return window["webkit"+s]||window["moz"+s]||window["ms"+s]}var N=0;function W(s){var d=+new Date,m=Math.max(0,16-(d-N));return N=d+m,window.setTimeout(s,m)}var G=window.requestAnimationFrame||R("RequestAnimationFrame")||W,K=window.cancelAnimationFrame||R("CancelAnimationFrame")||R("CancelRequestAnimationFrame")||function(s){window.clearTimeout(s)};function Z(s,d,m){if(m&&G===W)s.call(d);else return G.call(window,o(s,d))}function O(s){s&&K.call(window,s)}var $={__proto__:null,extend:i,create:a,bind:o,get lastId(){return l},stamp:u,throttle:c,wrapNum:h,falseFn:f,formatNum:p,trim:g,splitWords:b,setOptions:v,getParamString:w,template:T,isArray:E,indexOf:S,emptyImageUrl:P,requestFn:G,cancelFn:K,requestAnimFrame:Z,cancelAnimFrame:O};function X(){}X.extend=function(s){var d=function(){v(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},m=d.__super__=this.prototype,x=a(m);x.constructor=d,d.prototype=x;for(var A in this)Object.prototype.hasOwnProperty.call(this,A)&&A!=="prototype"&&A!=="__super__"&&(d[A]=this[A]);return s.statics&&i(d,s.statics),s.includes&&(B(s.includes),i.apply(null,[x].concat(s.includes))),i(x,s),delete x.statics,delete x.includes,x.options&&(x.options=m.options?a(m.options):{},i(x.options,s.options)),x._initHooks=[],x.callInitHooks=function(){if(!this._initHooksCalled){m.callInitHooks&&m.callInitHooks.call(this),this._initHooksCalled=!0;for(var D=0,q=x._initHooks.length;D<q;D++)x._initHooks[D].call(this)}},d},X.include=function(s){var d=this.prototype.options;return i(this.prototype,s),s.options&&(this.prototype.options=d,this.mergeOptions(s.options)),this},X.mergeOptions=function(s){return i(this.prototype.options,s),this},X.addInitHook=function(s){var d=Array.prototype.slice.call(arguments,1),m=typeof s=="function"?s:function(){this[s].apply(this,d)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(m),this};function B(s){if(!(typeof L=="undefined"||!L||!L.Mixin)){s=E(s)?s:[s];for(var d=0;d<s.length;d++)s[d]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var V={on:function(s,d,m){if(typeof s=="object")for(var x in s)this._on(x,s[x],d);else{s=b(s);for(var A=0,D=s.length;A<D;A++)this._on(s[A],d,m)}return this},off:function(s,d,m){if(!arguments.length)delete this._events;else if(typeof s=="object")for(var x in s)this._off(x,s[x],d);else{s=b(s);for(var A=arguments.length===1,D=0,q=s.length;D<q;D++)A?this._off(s[D]):this._off(s[D],d,m)}return this},_on:function(s,d,m,x){if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}if(this._listens(s,d,m)===!1){m===this&&(m=void 0);var A={fn:d,ctx:m};x&&(A.once=!0),this._events=this._events||{},this._events[s]=this._events[s]||[],this._events[s].push(A)}},_off:function(s,d,m){var x,A,D;if(this._events&&(x=this._events[s],!!x)){if(arguments.length===1){if(this._firingCount)for(A=0,D=x.length;A<D;A++)x[A].fn=f;delete this._events[s];return}if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}var q=this._listens(s,d,m);if(q!==!1){var ee=x[q];this._firingCount&&(ee.fn=f,this._events[s]=x=x.slice()),x.splice(q,1)}}},fire:function(s,d,m){if(!this.listens(s,m))return this;var x=i({},d,{type:s,target:this,sourceTarget:d&&d.sourceTarget||this});if(this._events){var A=this._events[s];if(A){this._firingCount=this._firingCount+1||1;for(var D=0,q=A.length;D<q;D++){var ee=A[D],ae=ee.fn;ee.once&&this.off(s,ae,ee.ctx),ae.call(ee.ctx||this,x)}this._firingCount--}}return m&&this._propagateEvent(x),this},listens:function(s,d,m,x){typeof s!="string"&&console.warn('"string" type argument expected');var A=d;typeof d!="function"&&(x=!!d,A=void 0,m=void 0);var D=this._events&&this._events[s];if(D&&D.length&&this._listens(s,A,m)!==!1)return!0;if(x){for(var q in this._eventParents)if(this._eventParents[q].listens(s,d,m,x))return!0}return!1},_listens:function(s,d,m){if(!this._events)return!1;var x=this._events[s]||[];if(!d)return!!x.length;m===this&&(m=void 0);for(var A=0,D=x.length;A<D;A++)if(x[A].fn===d&&x[A].ctx===m)return A;return!1},once:function(s,d,m){if(typeof s=="object")for(var x in s)this._on(x,s[x],d,!0);else{s=b(s);for(var A=0,D=s.length;A<D;A++)this._on(s[A],d,m,!0)}return this},addEventParent:function(s){return this._eventParents=this._eventParents||{},this._eventParents[u(s)]=s,this},removeEventParent:function(s){return this._eventParents&&delete this._eventParents[u(s)],this},_propagateEvent:function(s){for(var d in this._eventParents)this._eventParents[d].fire(s.type,i({layer:s.target,propagatedFrom:s.target},s),!0)}};V.addEventListener=V.on,V.removeEventListener=V.clearAllEventListeners=V.off,V.addOneTimeEventListener=V.once,V.fireEvent=V.fire,V.hasEventListeners=V.listens;var H=X.extend(V);function U(s,d,m){this.x=m?Math.round(s):s,this.y=m?Math.round(d):d}var te=Math.trunc||function(s){return s>0?Math.floor(s):Math.ceil(s)};U.prototype={clone:function(){return new U(this.x,this.y)},add:function(s){return this.clone()._add(F(s))},_add:function(s){return this.x+=s.x,this.y+=s.y,this},subtract:function(s){return this.clone()._subtract(F(s))},_subtract:function(s){return this.x-=s.x,this.y-=s.y,this},divideBy:function(s){return this.clone()._divideBy(s)},_divideBy:function(s){return this.x/=s,this.y/=s,this},multiplyBy:function(s){return this.clone()._multiplyBy(s)},_multiplyBy:function(s){return this.x*=s,this.y*=s,this},scaleBy:function(s){return new U(this.x*s.x,this.y*s.y)},unscaleBy:function(s){return new U(this.x/s.x,this.y/s.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=te(this.x),this.y=te(this.y),this},distanceTo:function(s){s=F(s);var d=s.x-this.x,m=s.y-this.y;return Math.sqrt(d*d+m*m)},equals:function(s){return s=F(s),s.x===this.x&&s.y===this.y},contains:function(s){return s=F(s),Math.abs(s.x)<=Math.abs(this.x)&&Math.abs(s.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function F(s,d,m){return s instanceof U?s:E(s)?new U(s[0],s[1]):s==null?s:typeof s=="object"&&"x"in s&&"y"in s?new U(s.x,s.y):new U(s,d,m)}function Y(s,d){if(s)for(var m=d?[s,d]:s,x=0,A=m.length;x<A;x++)this.extend(m[x])}Y.prototype={extend:function(s){var d,m;if(!s)return this;if(s instanceof U||typeof s[0]=="number"||"x"in s)d=m=F(s);else if(s=ne(s),d=s.min,m=s.max,!d||!m)return this;return!this.min&&!this.max?(this.min=d.clone(),this.max=m.clone()):(this.min.x=Math.min(d.x,this.min.x),this.max.x=Math.max(m.x,this.max.x),this.min.y=Math.min(d.y,this.min.y),this.max.y=Math.max(m.y,this.max.y)),this},getCenter:function(s){return F((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,s)},getBottomLeft:function(){return F(this.min.x,this.max.y)},getTopRight:function(){return F(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(s){var d,m;return typeof s[0]=="number"||s instanceof U?s=F(s):s=ne(s),s instanceof Y?(d=s.min,m=s.max):d=m=s,d.x>=this.min.x&&m.x<=this.max.x&&d.y>=this.min.y&&m.y<=this.max.y},intersects:function(s){s=ne(s);var d=this.min,m=this.max,x=s.min,A=s.max,D=A.x>=d.x&&x.x<=m.x,q=A.y>=d.y&&x.y<=m.y;return D&&q},overlaps:function(s){s=ne(s);var d=this.min,m=this.max,x=s.min,A=s.max,D=A.x>d.x&&x.x<m.x,q=A.y>d.y&&x.y<m.y;return D&&q},isValid:function(){return!!(this.min&&this.max)},pad:function(s){var d=this.min,m=this.max,x=Math.abs(d.x-m.x)*s,A=Math.abs(d.y-m.y)*s;return ne(F(d.x-x,d.y-A),F(m.x+x,m.y+A))},equals:function(s){return s?(s=ne(s),this.min.equals(s.getTopLeft())&&this.max.equals(s.getBottomRight())):!1}};function ne(s,d){return!s||s instanceof Y?s:new Y(s,d)}function ie(s,d){if(s)for(var m=d?[s,d]:s,x=0,A=m.length;x<A;x++)this.extend(m[x])}ie.prototype={extend:function(s){var d=this._southWest,m=this._northEast,x,A;if(s instanceof oe)x=s,A=s;else if(s instanceof ie){if(x=s._southWest,A=s._northEast,!x||!A)return this}else return s?this.extend(le(s)||re(s)):this;return!d&&!m?(this._southWest=new oe(x.lat,x.lng),this._northEast=new oe(A.lat,A.lng)):(d.lat=Math.min(x.lat,d.lat),d.lng=Math.min(x.lng,d.lng),m.lat=Math.max(A.lat,m.lat),m.lng=Math.max(A.lng,m.lng)),this},pad:function(s){var d=this._southWest,m=this._northEast,x=Math.abs(d.lat-m.lat)*s,A=Math.abs(d.lng-m.lng)*s;return new ie(new oe(d.lat-x,d.lng-A),new oe(m.lat+x,m.lng+A))},getCenter:function(){return new oe((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 oe(this.getNorth(),this.getWest())},getSouthEast:function(){return new oe(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(s){typeof s[0]=="number"||s instanceof oe||"lat"in s?s=le(s):s=re(s);var d=this._southWest,m=this._northEast,x,A;return s instanceof ie?(x=s.getSouthWest(),A=s.getNorthEast()):x=A=s,x.lat>=d.lat&&A.lat<=m.lat&&x.lng>=d.lng&&A.lng<=m.lng},intersects:function(s){s=re(s);var d=this._southWest,m=this._northEast,x=s.getSouthWest(),A=s.getNorthEast(),D=A.lat>=d.lat&&x.lat<=m.lat,q=A.lng>=d.lng&&x.lng<=m.lng;return D&&q},overlaps:function(s){s=re(s);var d=this._southWest,m=this._northEast,x=s.getSouthWest(),A=s.getNorthEast(),D=A.lat>d.lat&&x.lat<m.lat,q=A.lng>d.lng&&x.lng<m.lng;return D&&q},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(s,d){return s?(s=re(s),this._southWest.equals(s.getSouthWest(),d)&&this._northEast.equals(s.getNorthEast(),d)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function re(s,d){return s instanceof ie?s:new ie(s,d)}function oe(s,d,m){if(isNaN(s)||isNaN(d))throw new Error("Invalid LatLng object: ("+s+", "+d+")");this.lat=+s,this.lng=+d,m!==void 0&&(this.alt=+m)}oe.prototype={equals:function(s,d){if(!s)return!1;s=le(s);var m=Math.max(Math.abs(this.lat-s.lat),Math.abs(this.lng-s.lng));return m<=(d===void 0?1e-9:d)},toString:function(s){return"LatLng("+p(this.lat,s)+", "+p(this.lng,s)+")"},distanceTo:function(s){return ce.distance(this,le(s))},wrap:function(){return ce.wrapLatLng(this)},toBounds:function(s){var d=180*s/40075017,m=d/Math.cos(Math.PI/180*this.lat);return re([this.lat-d,this.lng-m],[this.lat+d,this.lng+m])},clone:function(){return new oe(this.lat,this.lng,this.alt)}};function le(s,d,m){return s instanceof oe?s:E(s)&&typeof s[0]!="object"?s.length===3?new oe(s[0],s[1],s[2]):s.length===2?new oe(s[0],s[1]):null:s==null?s:typeof s=="object"&&"lat"in s?new oe(s.lat,"lng"in s?s.lng:s.lon,s.alt):d===void 0?null:new oe(s,d,m)}var de={latLngToPoint:function(s,d){var m=this.projection.project(s),x=this.scale(d);return this.transformation._transform(m,x)},pointToLatLng:function(s,d){var m=this.scale(d),x=this.transformation.untransform(s,m);return this.projection.unproject(x)},project:function(s){return this.projection.project(s)},unproject:function(s){return this.projection.unproject(s)},scale:function(s){return 256*Math.pow(2,s)},zoom:function(s){return Math.log(s/256)/Math.LN2},getProjectedBounds:function(s){if(this.infinite)return null;var d=this.projection.bounds,m=this.scale(s),x=this.transformation.transform(d.min,m),A=this.transformation.transform(d.max,m);return new Y(x,A)},infinite:!1,wrapLatLng:function(s){var d=this.wrapLng?h(s.lng,this.wrapLng,!0):s.lng,m=this.wrapLat?h(s.lat,this.wrapLat,!0):s.lat,x=s.alt;return new oe(m,d,x)},wrapLatLngBounds:function(s){var d=s.getCenter(),m=this.wrapLatLng(d),x=d.lat-m.lat,A=d.lng-m.lng;if(x===0&&A===0)return s;var D=s.getSouthWest(),q=s.getNorthEast(),ee=new oe(D.lat-x,D.lng-A),ae=new oe(q.lat-x,q.lng-A);return new ie(ee,ae)}},ce=i({},de,{wrapLng:[-180,180],R:6371e3,distance:function(s,d){var m=Math.PI/180,x=s.lat*m,A=d.lat*m,D=Math.sin((d.lat-s.lat)*m/2),q=Math.sin((d.lng-s.lng)*m/2),ee=D*D+Math.cos(x)*Math.cos(A)*q*q,ae=2*Math.atan2(Math.sqrt(ee),Math.sqrt(1-ee));return this.R*ae}}),ve=6378137,Ce={R:ve,MAX_LATITUDE:85.0511287798,project:function(s){var d=Math.PI/180,m=this.MAX_LATITUDE,x=Math.max(Math.min(m,s.lat),-m),A=Math.sin(x*d);return new U(this.R*s.lng*d,this.R*Math.log((1+A)/(1-A))/2)},unproject:function(s){var d=180/Math.PI;return new oe((2*Math.atan(Math.exp(s.y/this.R))-Math.PI/2)*d,s.x*d/this.R)},bounds:function(){var s=ve*Math.PI;return new Y([-s,-s],[s,s])}()};function ye(s,d,m,x){if(E(s)){this._a=s[0],this._b=s[1],this._c=s[2],this._d=s[3];return}this._a=s,this._b=d,this._c=m,this._d=x}ye.prototype={transform:function(s,d){return this._transform(s.clone(),d)},_transform:function(s,d){return d=d||1,s.x=d*(this._a*s.x+this._b),s.y=d*(this._c*s.y+this._d),s},untransform:function(s,d){return d=d||1,new U((s.x/d-this._b)/this._a,(s.y/d-this._d)/this._c)}};function J(s,d,m,x){return new ye(s,d,m,x)}var we=i({},ce,{code:"EPSG:3857",projection:Ce,transformation:function(){var s=.5/(Math.PI*Ce.R);return J(s,.5,-s,.5)}()}),Ee=i({},we,{code:"EPSG:900913"});function ke(s){return document.createElementNS("http://www.w3.org/2000/svg",s)}function $e(s,d){var m="",x,A,D,q,ee,ae;for(x=0,D=s.length;x<D;x++){for(ee=s[x],A=0,q=ee.length;A<q;A++)ae=ee[A],m+=(A?"L":"M")+ae.x+" "+ae.y;m+=d?Se.svg?"z":"x":""}return m||"M0 0"}var je=document.documentElement.style,Ue="ActiveXObject"in window,ir=Ue&&!document.addEventListener,Pt="msLaunchUri"in navigator&&!("documentMode"in document),Wt=on("webkit"),kt=on("android"),Pe=on("android 2")||on("android 3"),jt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),sa=kt&&on("Google")&&jt<537&&!("AudioNode"in window),Kn=!!window.opera,On=!Pt&&on("chrome"),Ci=on("gecko")&&!Wt&&!Kn&&!Ue,Ti=!On&&on("safari"),la=on("phantom"),or="OTransition"in je,Mi=navigator.platform.indexOf("Win")===0,an=Ue&&"transition"in je,Qt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Pe,Il="MozPerspective"in je,No=!window.L_DISABLE_3D&&(an||Qt||Il)&&!or&&!la,kn=typeof orientation!="undefined"||on("mobile"),ua=kn&&Wt,Xd=kn&&Qt,$l=!window.PointerEvent&&window.MSPointerEvent,Fl=!!(window.PointerEvent||$l),zl="ontouchstart"in window||!!window.TouchEvent,Zd=!window.L_NO_TOUCH&&(zl||Fl),Kd=kn&&Kn,Qd=kn&&Ci,Jd=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Bl=function(){var s=!1;try{var d=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassiveEventSupport",f,d),window.removeEventListener("testPassiveEventSupport",f,d)}catch(m){}return s}(),Hl=function(){return!!document.createElement("canvas").getContext}(),ca=!!(document.createElementNS&&ke("svg").createSVGRect),Wl=!!ca&&function(){var s=document.createElement("div");return s.innerHTML="<svg/>",(s.firstChild&&s.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Le=!ca&&function(){try{var s=document.createElement("div");s.innerHTML='<v:shape adj="1"/>';var d=s.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch(m){return!1}}(),Sr=navigator.platform.indexOf("Mac")===0,jl=navigator.platform.indexOf("Linux")===0;function on(s){return navigator.userAgent.toLowerCase().indexOf(s)>=0}var Se={ie:Ue,ielt9:ir,edge:Pt,webkit:Wt,android:kt,android23:Pe,androidStock:sa,opera:Kn,chrome:On,gecko:Ci,safari:Ti,phantom:la,opera12:or,win:Mi,ie3d:an,webkit3d:Qt,gecko3d:Il,any3d:No,mobile:kn,mobileWebkit:ua,mobileWebkit3d:Xd,msPointer:$l,pointer:Fl,touch:Zd,touchNative:zl,mobileOpera:Kd,mobileGecko:Qd,retina:Jd,passiveEvents:Bl,canvas:Hl,svg:ca,vml:Le,inlineSvg:Wl,mac:Sr,linux:jl},Kg=Se.msPointer?"MSPointerDown":"pointerdown",Qg=Se.msPointer?"MSPointerMove":"pointermove",Jg=Se.msPointer?"MSPointerUp":"pointerup",ev=Se.msPointer?"MSPointerCancel":"pointercancel",eh={touchstart:Kg,touchmove:Qg,touchend:Jg,touchcancel:ev},tv={touchstart:lE,touchmove:Vl,touchend:Vl,touchcancel:Vl},da={},rv=!1;function nE(s,d,m){return d==="touchstart"&&sE(),tv[d]?(m=tv[d].bind(this,m),s.addEventListener(eh[d],m,!1),m):(console.warn("wrong event specified:",d),f)}function iE(s,d,m){if(!eh[d]){console.warn("wrong event specified:",d);return}s.removeEventListener(eh[d],m,!1)}function aE(s){da[s.pointerId]=s}function oE(s){da[s.pointerId]&&(da[s.pointerId]=s)}function nv(s){delete da[s.pointerId]}function sE(){rv||(document.addEventListener(Kg,aE,!0),document.addEventListener(Qg,oE,!0),document.addEventListener(Jg,nv,!0),document.addEventListener(ev,nv,!0),rv=!0)}function Vl(s,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var m in da)d.touches.push(da[m]);d.changedTouches=[d],s(d)}}function lE(s,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&Jt(d),Vl(s,d)}function uE(s){var d={},m,x;for(x in s)m=s[x],d[x]=m&&m.bind?m.bind(s):m;return s=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var cE=200;function dE(s,d){s.addEventListener("dblclick",d);var m=0,x;function A(D){if(D.detail!==1){x=D.detail;return}if(!(D.pointerType==="mouse"||D.sourceCapabilities&&!D.sourceCapabilities.firesTouchEvents)){var q=lv(D);if(!(q.some(function(ae){return ae instanceof HTMLLabelElement&&ae.attributes.for})&&!q.some(function(ae){return ae instanceof HTMLInputElement||ae instanceof HTMLSelectElement}))){var ee=Date.now();ee-m<=cE?(x++,x===2&&d(uE(D))):x=1,m=ee}}}return s.addEventListener("click",A),{dblclick:d,simDblclick:A}}function hE(s,d){s.removeEventListener("dblclick",d.dblclick),s.removeEventListener("click",d.simDblclick)}var th=Yl(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Lo=Yl(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),iv=Lo==="webkitTransition"||Lo==="OTransition"?Lo+"End":"transitionend";function av(s){return typeof s=="string"?document.getElementById(s):s}function Io(s,d){var m=s.style[d]||s.currentStyle&&s.currentStyle[d];if((!m||m==="auto")&&document.defaultView){var x=document.defaultView.getComputedStyle(s,null);m=x?x[d]:null}return m==="auto"?null:m}function qe(s,d,m){var x=document.createElement(s);return x.className=d||"",m&&m.appendChild(x),x}function xt(s){var d=s.parentNode;d&&d.removeChild(s)}function Gl(s){for(;s.firstChild;)s.removeChild(s.firstChild)}function ha(s){var d=s.parentNode;d&&d.lastChild!==s&&d.appendChild(s)}function fa(s){var d=s.parentNode;d&&d.firstChild!==s&&d.insertBefore(s,d.firstChild)}function rh(s,d){if(s.classList!==void 0)return s.classList.contains(d);var m=Ul(s);return m.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(m)}function Be(s,d){if(s.classList!==void 0)for(var m=b(d),x=0,A=m.length;x<A;x++)s.classList.add(m[x]);else if(!rh(s,d)){var D=Ul(s);nh(s,(D?D+" ":"")+d)}}function Dt(s,d){s.classList!==void 0?s.classList.remove(d):nh(s,g((" "+Ul(s)+" ").replace(" "+d+" "," ")))}function nh(s,d){s.className.baseVal===void 0?s.className=d:s.className.baseVal=d}function Ul(s){return s.correspondingElement&&(s=s.correspondingElement),s.className.baseVal===void 0?s.className:s.className.baseVal}function Fr(s,d){"opacity"in s.style?s.style.opacity=d:"filter"in s.style&&fE(s,d)}function fE(s,d){var m=!1,x="DXImageTransform.Microsoft.Alpha";try{m=s.filters.item(x)}catch(A){if(d===1)return}d=Math.round(d*100),m?(m.Enabled=d!==100,m.Opacity=d):s.style.filter+=" progid:"+x+"(opacity="+d+")"}function Yl(s){for(var d=document.documentElement.style,m=0;m<s.length;m++)if(s[m]in d)return s[m];return!1}function Si(s,d,m){var x=d||new U(0,0);s.style[th]=(Se.ie3d?"translate("+x.x+"px,"+x.y+"px)":"translate3d("+x.x+"px,"+x.y+"px,0)")+(m?" scale("+m+")":"")}function zt(s,d){s._leaflet_pos=d,Se.any3d?Si(s,d):(s.style.left=d.x+"px",s.style.top=d.y+"px")}function Ei(s){return s._leaflet_pos||new U(0,0)}var $o,Fo,ih;if("onselectstart"in document)$o=function(){Fe(window,"selectstart",Jt)},Fo=function(){ut(window,"selectstart",Jt)};else{var zo=Yl(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);$o=function(){if(zo){var s=document.documentElement.style;ih=s[zo],s[zo]="none"}},Fo=function(){zo&&(document.documentElement.style[zo]=ih,ih=void 0)}}function ah(){Fe(window,"dragstart",Jt)}function oh(){ut(window,"dragstart",Jt)}var ql,sh;function lh(s){for(;s.tabIndex===-1;)s=s.parentNode;s.style&&(Xl(),ql=s,sh=s.style.outlineStyle,s.style.outlineStyle="none",Fe(window,"keydown",Xl))}function Xl(){ql&&(ql.style.outlineStyle=sh,ql=void 0,sh=void 0,ut(window,"keydown",Xl))}function ov(s){do s=s.parentNode;while((!s.offsetWidth||!s.offsetHeight)&&s!==document.body);return s}function uh(s){var d=s.getBoundingClientRect();return{x:d.width/s.offsetWidth||1,y:d.height/s.offsetHeight||1,boundingClientRect:d}}var pE={__proto__:null,TRANSFORM:th,TRANSITION:Lo,TRANSITION_END:iv,get:av,getStyle:Io,create:qe,remove:xt,empty:Gl,toFront:ha,toBack:fa,hasClass:rh,addClass:Be,removeClass:Dt,setClass:nh,getClass:Ul,setOpacity:Fr,testProp:Yl,setTransform:Si,setPosition:zt,getPosition:Ei,get disableTextSelection(){return $o},get enableTextSelection(){return Fo},disableImageDrag:ah,enableImageDrag:oh,preventOutline:lh,restoreOutline:Xl,getSizedParentNode:ov,getScale:uh};function Fe(s,d,m,x){if(d&&typeof d=="object")for(var A in d)dh(s,A,d[A],m);else{d=b(d);for(var D=0,q=d.length;D<q;D++)dh(s,d[D],m,x)}return this}var sn="_leaflet_events";function ut(s,d,m,x){if(arguments.length===1)sv(s),delete s[sn];else if(d&&typeof d=="object")for(var A in d)hh(s,A,d[A],m);else if(d=b(d),arguments.length===2)sv(s,function(ee){return S(d,ee)!==-1});else for(var D=0,q=d.length;D<q;D++)hh(s,d[D],m,x);return this}function sv(s,d){for(var m in s[sn]){var x=m.split(/\d/)[0];(!d||d(x))&&hh(s,x,null,null,m)}}var ch={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function dh(s,d,m,x){var A=d+u(m)+(x?"_"+u(x):"");if(s[sn]&&s[sn][A])return this;var D=function(ee){return m.call(x||s,ee||window.event)},q=D;!Se.touchNative&&Se.pointer&&d.indexOf("touch")===0?D=nE(s,d,D):Se.touch&&d==="dblclick"?D=dE(s,D):"addEventListener"in s?d==="touchstart"||d==="touchmove"||d==="wheel"||d==="mousewheel"?s.addEventListener(ch[d]||d,D,Se.passiveEvents?{passive:!1}:!1):d==="mouseenter"||d==="mouseleave"?(D=function(ee){ee=ee||window.event,ph(s,ee)&&q(ee)},s.addEventListener(ch[d],D,!1)):s.addEventListener(d,q,!1):s.attachEvent("on"+d,D),s[sn]=s[sn]||{},s[sn][A]=D}function hh(s,d,m,x,A){A=A||d+u(m)+(x?"_"+u(x):"");var D=s[sn]&&s[sn][A];if(!D)return this;!Se.touchNative&&Se.pointer&&d.indexOf("touch")===0?iE(s,d,D):Se.touch&&d==="dblclick"?hE(s,D):"removeEventListener"in s?s.removeEventListener(ch[d]||d,D,!1):s.detachEvent("on"+d,D),s[sn][A]=null}function Pi(s){return s.stopPropagation?s.stopPropagation():s.originalEvent?s.originalEvent._stopped=!0:s.cancelBubble=!0,this}function fh(s){return dh(s,"wheel",Pi),this}function Bo(s){return Fe(s,"mousedown touchstart dblclick contextmenu",Pi),s._leaflet_disable_click=!0,this}function Jt(s){return s.preventDefault?s.preventDefault():s.returnValue=!1,this}function Ai(s){return Jt(s),Pi(s),this}function lv(s){if(s.composedPath)return s.composedPath();for(var d=[],m=s.target;m;)d.push(m),m=m.parentNode;return d}function uv(s,d){if(!d)return new U(s.clientX,s.clientY);var m=uh(d),x=m.boundingClientRect;return new U((s.clientX-x.left)/m.x-d.clientLeft,(s.clientY-x.top)/m.y-d.clientTop)}var mE=Se.linux&&Se.chrome?window.devicePixelRatio:Se.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function cv(s){return Se.edge?s.wheelDeltaY/2:s.deltaY&&s.deltaMode===0?-s.deltaY/mE:s.deltaY&&s.deltaMode===1?-s.deltaY*20:s.deltaY&&s.deltaMode===2?-s.deltaY*60:s.deltaX||s.deltaZ?0:s.wheelDelta?(s.wheelDeltaY||s.wheelDelta)/2:s.detail&&Math.abs(s.detail)<32765?-s.detail*20:s.detail?s.detail/-32765*60:0}function ph(s,d){var m=d.relatedTarget;if(!m)return!0;try{for(;m&&m!==s;)m=m.parentNode}catch(x){return!1}return m!==s}var gE={__proto__:null,on:Fe,off:ut,stopPropagation:Pi,disableScrollPropagation:fh,disableClickPropagation:Bo,preventDefault:Jt,stop:Ai,getPropagationPath:lv,getMousePosition:uv,getWheelDelta:cv,isExternalTarget:ph,addListener:Fe,removeListener:ut},dv=H.extend({run:function(s,d,m,x){this.stop(),this._el=s,this._inProgress=!0,this._duration=m||.25,this._easeOutPower=1/Math.max(x||.5,.2),this._startPos=Ei(s),this._offset=d.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Z(this._animate,this),this._step()},_step:function(s){var d=+new Date-this._startTime,m=this._duration*1e3;d<m?this._runFrame(this._easeOut(d/m),s):(this._runFrame(1),this._complete())},_runFrame:function(s,d){var m=this._startPos.add(this._offset.multiplyBy(s));d&&m._round(),zt(this._el,m),this.fire("step")},_complete:function(){O(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(s){return 1-Math.pow(1-s,this._easeOutPower)}}),Ye=H.extend({options:{crs:we,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(s,d){d=v(this,d),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(s),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),d.maxBounds&&this.setMaxBounds(d.maxBounds),d.zoom!==void 0&&(this._zoom=this._limitZoom(d.zoom)),d.center&&d.zoom!==void 0&&this.setView(le(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Lo&&Se.any3d&&!Se.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Fe(this._proxy,iv,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(s,d,m){if(d=d===void 0?this._zoom:this._limitZoom(d),s=this._limitCenter(le(s),d,this.options.maxBounds),m=m||{},this._stop(),this._loaded&&!m.reset&&m!==!0){m.animate!==void 0&&(m.zoom=i({animate:m.animate},m.zoom),m.pan=i({animate:m.animate,duration:m.duration},m.pan));var x=this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(s,d,m.zoom):this._tryAnimatedPan(s,m.pan);if(x)return clearTimeout(this._sizeTimer),this}return this._resetView(s,d,m.pan&&m.pan.noMoveStart),this},setZoom:function(s,d){return this._loaded?this.setView(this.getCenter(),s,{zoom:d}):(this._zoom=s,this)},zoomIn:function(s,d){return s=s||(Se.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+s,d)},zoomOut:function(s,d){return s=s||(Se.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-s,d)},setZoomAround:function(s,d,m){var x=this.getZoomScale(d),A=this.getSize().divideBy(2),D=s instanceof U?s:this.latLngToContainerPoint(s),q=D.subtract(A).multiplyBy(1-1/x),ee=this.containerPointToLatLng(A.add(q));return this.setView(ee,d,{zoom:m})},_getBoundsCenterZoom:function(s,d){d=d||{},s=s.getBounds?s.getBounds():re(s);var m=F(d.paddingTopLeft||d.padding||[0,0]),x=F(d.paddingBottomRight||d.padding||[0,0]),A=this.getBoundsZoom(s,!1,m.add(x));if(A=typeof d.maxZoom=="number"?Math.min(d.maxZoom,A):A,A===1/0)return{center:s.getCenter(),zoom:A};var D=x.subtract(m).divideBy(2),q=this.project(s.getSouthWest(),A),ee=this.project(s.getNorthEast(),A),ae=this.unproject(q.add(ee).divideBy(2).add(D),A);return{center:ae,zoom:A}},fitBounds:function(s,d){if(s=re(s),!s.isValid())throw new Error("Bounds are not valid.");var m=this._getBoundsCenterZoom(s,d);return this.setView(m.center,m.zoom,d)},fitWorld:function(s){return this.fitBounds([[-90,-180],[90,180]],s)},panTo:function(s,d){return this.setView(s,this._zoom,{pan:d})},panBy:function(s,d){if(s=F(s).round(),d=d||{},!s.x&&!s.y)return this.fire("moveend");if(d.animate!==!0&&!this.getSize().contains(s))return this._resetView(this.unproject(this.project(this.getCenter()).add(s)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new dv,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),d.noMoveStart||this.fire("movestart"),d.animate!==!1){Be(this._mapPane,"leaflet-pan-anim");var m=this._getMapPanePos().subtract(s).round();this._panAnim.run(this._mapPane,m,d.duration||.25,d.easeLinearity)}else this._rawPanBy(s),this.fire("move").fire("moveend");return this},flyTo:function(s,d,m){if(m=m||{},m.animate===!1||!Se.any3d)return this.setView(s,d,m);this._stop();var x=this.project(this.getCenter()),A=this.project(s),D=this.getSize(),q=this._zoom;s=le(s),d=d===void 0?q:d;var ee=Math.max(D.x,D.y),ae=ee*this.getZoomScale(q,d),he=A.distanceTo(x)||1,be=1.42,Ae=be*be;function We(Bt){var su=Bt?-1:1,i3=Bt?ae:ee,a3=ae*ae-ee*ee+su*Ae*Ae*he*he,o3=2*i3*Ae*he,Mh=a3/o3,Gv=Math.sqrt(Mh*Mh+1)-Mh,s3=Gv<1e-9?-18:Math.log(Gv);return s3}function sr(Bt){return(Math.exp(Bt)-Math.exp(-Bt))/2}function Yt(Bt){return(Math.exp(Bt)+Math.exp(-Bt))/2}function Br(Bt){return sr(Bt)/Yt(Bt)}var br=We(0);function ba(Bt){return ee*(Yt(br)/Yt(br+be*Bt))}function e3(Bt){return ee*(Yt(br)*Br(br+be*Bt)-sr(br))/Ae}function t3(Bt){return 1-Math.pow(1-Bt,1.5)}var r3=Date.now(),jv=(We(1)-br)/be,n3=m.duration?1e3*m.duration:1e3*jv*.8;function Vv(){var Bt=(Date.now()-r3)/n3,su=t3(Bt)*jv;Bt<=1?(this._flyToFrame=Z(Vv,this),this._move(this.unproject(x.add(A.subtract(x).multiplyBy(e3(su)/he)),q),this.getScaleZoom(ee/ba(su),q),{flyTo:!0})):this._move(s,d)._moveEnd(!0)}return this._moveStart(!0,m.noMoveStart),Vv.call(this),this},flyToBounds:function(s,d){var m=this._getBoundsCenterZoom(s,d);return this.flyTo(m.center,m.zoom,d)},setMaxBounds:function(s){return s=re(s),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),s.isValid()?(this.options.maxBounds=s,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(s){var d=this.options.minZoom;return this.options.minZoom=s,this._loaded&&d!==s&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(s):this},setMaxZoom:function(s){var d=this.options.maxZoom;return this.options.maxZoom=s,this._loaded&&d!==s&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(s):this},panInsideBounds:function(s,d){this._enforcingBounds=!0;var m=this.getCenter(),x=this._limitCenter(m,this._zoom,re(s));return m.equals(x)||this.panTo(x,d),this._enforcingBounds=!1,this},panInside:function(s,d){d=d||{};var m=F(d.paddingTopLeft||d.padding||[0,0]),x=F(d.paddingBottomRight||d.padding||[0,0]),A=this.project(this.getCenter()),D=this.project(s),q=this.getPixelBounds(),ee=ne([q.min.add(m),q.max.subtract(x)]),ae=ee.getSize();if(!ee.contains(D)){this._enforcingBounds=!0;var he=D.subtract(ee.getCenter()),be=ee.extend(D).getSize().subtract(ae);A.x+=he.x<0?-be.x:be.x,A.y+=he.y<0?-be.y:be.y,this.panTo(this.unproject(A),d),this._enforcingBounds=!1}return this},invalidateSize:function(s){if(!this._loaded)return this;s=i({animate:!1,pan:!0},s===!0?{animate:!0}:s);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var m=this.getSize(),x=d.divideBy(2).round(),A=m.divideBy(2).round(),D=x.subtract(A);return!D.x&&!D.y?this:(s.animate&&s.pan?this.panBy(D):(s.pan&&this._rawPanBy(D),this.fire("move"),s.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:m}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(s){if(s=this._locateOptions=i({timeout:1e4,watch:!1},s),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=o(this._handleGeolocationResponse,this),m=o(this._handleGeolocationError,this);return s.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,m,s):navigator.geolocation.getCurrentPosition(d,m,s),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(s){if(this._container._leaflet_id){var d=s.code,m=s.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+m+"."})}},_handleGeolocationResponse:function(s){if(this._container._leaflet_id){var d=s.coords.latitude,m=s.coords.longitude,x=new oe(d,m),A=x.toBounds(s.coords.accuracy*2),D=this._locateOptions;if(D.setView){var q=this.getBoundsZoom(A);this.setView(x,D.maxZoom?Math.min(q,D.maxZoom):q)}var ee={latlng:x,bounds:A,timestamp:s.timestamp};for(var ae in s.coords)typeof s.coords[ae]=="number"&&(ee[ae]=s.coords[ae]);this.fire("locationfound",ee)}},addHandler:function(s,d){if(!d)return this;var m=this[s]=new d(this);return this._handlers.push(m),this.options[s]&&m.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(d){this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),xt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(O(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var s;for(s in this._layers)this._layers[s].remove();for(s in this._panes)xt(this._panes[s]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(s,d){var m="leaflet-pane"+(s?" leaflet-"+s.replace("Pane","")+"-pane":""),x=qe("div",m,d||this._mapPane);return s&&(this._panes[s]=x),x},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var s=this.getPixelBounds(),d=this.unproject(s.getBottomLeft()),m=this.unproject(s.getTopRight());return new ie(d,m)},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(s,d,m){s=re(s),m=F(m||[0,0]);var x=this.getZoom()||0,A=this.getMinZoom(),D=this.getMaxZoom(),q=s.getNorthWest(),ee=s.getSouthEast(),ae=this.getSize().subtract(m),he=ne(this.project(ee,x),this.project(q,x)).getSize(),be=Se.any3d?this.options.zoomSnap:1,Ae=ae.x/he.x,We=ae.y/he.y,sr=d?Math.max(Ae,We):Math.min(Ae,We);return x=this.getScaleZoom(sr,x),be&&(x=Math.round(x/(be/100))*(be/100),x=d?Math.ceil(x/be)*be:Math.floor(x/be)*be),Math.max(A,Math.min(D,x))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new U(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(s,d){var m=this._getTopLeftPoint(s,d);return new Y(m,m.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(s){return this.options.crs.getProjectedBounds(s===void 0?this.getZoom():s)},getPane:function(s){return typeof s=="string"?this._panes[s]:s},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(s,d){var m=this.options.crs;return d=d===void 0?this._zoom:d,m.scale(s)/m.scale(d)},getScaleZoom:function(s,d){var m=this.options.crs;d=d===void 0?this._zoom:d;var x=m.zoom(s*m.scale(d));return isNaN(x)?1/0:x},project:function(s,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(le(s),d)},unproject:function(s,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(F(s),d)},layerPointToLatLng:function(s){var d=F(s).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(s){var d=this.project(le(s))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(s){return this.options.crs.wrapLatLng(le(s))},wrapLatLngBounds:function(s){return this.options.crs.wrapLatLngBounds(re(s))},distance:function(s,d){return this.options.crs.distance(le(s),le(d))},containerPointToLayerPoint:function(s){return F(s).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(s){return F(s).add(this._getMapPanePos())},containerPointToLatLng:function(s){var d=this.containerPointToLayerPoint(F(s));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(s){return this.layerPointToContainerPoint(this.latLngToLayerPoint(le(s)))},mouseEventToContainerPoint:function(s){return uv(s,this._container)},mouseEventToLayerPoint:function(s){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(s))},mouseEventToLatLng:function(s){return this.layerPointToLatLng(this.mouseEventToLayerPoint(s))},_initContainer:function(s){var d=this._container=av(s);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Fe(d,"scroll",this._onScroll,this),this._containerId=u(d)},_initLayout:function(){var s=this._container;this._fadeAnimated=this.options.fadeAnimation&&Se.any3d,Be(s,"leaflet-container"+(Se.touch?" leaflet-touch":"")+(Se.retina?" leaflet-retina":"")+(Se.ielt9?" leaflet-oldie":"")+(Se.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=Io(s,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&d!=="sticky"&&(s.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var s=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),zt(this._mapPane,new U(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Be(s.markerPane,"leaflet-zoom-hide"),Be(s.shadowPane,"leaflet-zoom-hide"))},_resetView:function(s,d,m){zt(this._mapPane,new U(0,0));var x=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var A=this._zoom!==d;this._moveStart(A,m)._move(s,d)._moveEnd(A),this.fire("viewreset"),x&&this.fire("load")},_moveStart:function(s,d){return s&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(s,d,m,x){d===void 0&&(d=this._zoom);var A=this._zoom!==d;return this._zoom=d,this._lastCenter=s,this._pixelOrigin=this._getNewPixelOrigin(s),x?m&&m.pinch&&this.fire("zoom",m):((A||m&&m.pinch)&&this.fire("zoom",m),this.fire("move",m)),this},_moveEnd:function(s){return s&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return O(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(s){zt(this._mapPane,this._getMapPanePos().subtract(s))},_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(s){this._targets={},this._targets[u(this._container)]=this;var d=s?ut:Fe;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),Se.any3d&&this.options.transform3DLimit&&(s?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){O(this._resizeRequest),this._resizeRequest=Z(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var s=this._getMapPanePos();Math.max(Math.abs(s.x),Math.abs(s.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(s,d){for(var m=[],x,A=d==="mouseout"||d==="mouseover",D=s.target||s.srcElement,q=!1;D;){if(x=this._targets[u(D)],x&&(d==="click"||d==="preclick")&&this._draggableMoved(x)){q=!0;break}if(x&&x.listens(d,!0)&&(A&&!ph(D,s)||(m.push(x),A))||D===this._container)break;D=D.parentNode}return!m.length&&!q&&!A&&this.listens(d,!0)&&(m=[this]),m},_isClickDisabled:function(s){for(;s&&s!==this._container;){if(s._leaflet_disable_click)return!0;s=s.parentNode}},_handleDOMEvent:function(s){var d=s.target||s.srcElement;if(!(!this._loaded||d._leaflet_disable_events||s.type==="click"&&this._isClickDisabled(d))){var m=s.type;m==="mousedown"&&lh(d),this._fireDOMEvent(s,m)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(s,d,m){if(s.type==="click"){var x=i({},s);x.type="preclick",this._fireDOMEvent(x,x.type,m)}var A=this._findEventTargets(s,d);if(m){for(var D=[],q=0;q<m.length;q++)m[q].listens(d,!0)&&D.push(m[q]);A=D.concat(A)}if(A.length){d==="contextmenu"&&Jt(s);var ee=A[0],ae={originalEvent:s};if(s.type!=="keypress"&&s.type!=="keydown"&&s.type!=="keyup"){var he=ee.getLatLng&&(!ee._radius||ee._radius<=10);ae.containerPoint=he?this.latLngToContainerPoint(ee.getLatLng()):this.mouseEventToContainerPoint(s),ae.layerPoint=this.containerPointToLayerPoint(ae.containerPoint),ae.latlng=he?ee.getLatLng():this.layerPointToLatLng(ae.layerPoint)}for(q=0;q<A.length;q++)if(A[q].fire(d,ae,!0),ae.originalEvent._stopped||A[q].options.bubblingMouseEvents===!1&&S(this._mouseEvents,d)!==-1)return}},_draggableMoved:function(s){return s=s.dragging&&s.dragging.enabled()?s:this,s.dragging&&s.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var s=0,d=this._handlers.length;s<d;s++)this._handlers[s].disable()},whenReady:function(s,d){return this._loaded?s.call(d||this,{target:this}):this.on("load",s,d),this},_getMapPanePos:function(){return Ei(this._mapPane)||new U(0,0)},_moved:function(){var s=this._getMapPanePos();return s&&!s.equals([0,0])},_getTopLeftPoint:function(s,d){var m=s&&d!==void 0?this._getNewPixelOrigin(s,d):this.getPixelOrigin();return m.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(s,d){var m=this.getSize()._divideBy(2);return this.project(s,d)._subtract(m)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(s,d,m){var x=this._getNewPixelOrigin(m,d);return this.project(s,d)._subtract(x)},_latLngBoundsToNewLayerBounds:function(s,d,m){var x=this._getNewPixelOrigin(m,d);return ne([this.project(s.getSouthWest(),d)._subtract(x),this.project(s.getNorthWest(),d)._subtract(x),this.project(s.getSouthEast(),d)._subtract(x),this.project(s.getNorthEast(),d)._subtract(x)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(s){return this.latLngToLayerPoint(s).subtract(this._getCenterLayerPoint())},_limitCenter:function(s,d,m){if(!m)return s;var x=this.project(s,d),A=this.getSize().divideBy(2),D=new Y(x.subtract(A),x.add(A)),q=this._getBoundsOffset(D,m,d);return Math.abs(q.x)<=1&&Math.abs(q.y)<=1?s:this.unproject(x.add(q),d)},_limitOffset:function(s,d){if(!d)return s;var m=this.getPixelBounds(),x=new Y(m.min.add(s),m.max.add(s));return s.add(this._getBoundsOffset(x,d))},_getBoundsOffset:function(s,d,m){var x=ne(this.project(d.getNorthEast(),m),this.project(d.getSouthWest(),m)),A=x.min.subtract(s.min),D=x.max.subtract(s.max),q=this._rebound(A.x,-D.x),ee=this._rebound(A.y,-D.y);return new U(q,ee)},_rebound:function(s,d){return s+d>0?Math.round(s-d)/2:Math.max(0,Math.ceil(s))-Math.max(0,Math.floor(d))},_limitZoom:function(s){var d=this.getMinZoom(),m=this.getMaxZoom(),x=Se.any3d?this.options.zoomSnap:1;return x&&(s=Math.round(s/x)*x),Math.max(d,Math.min(m,s))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Dt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(s,d){var m=this._getCenterOffset(s)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(m)?!1:(this.panBy(m,d),!0)},_createAnimProxy:function(){var s=this._proxy=qe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(s),this.on("zoomanim",function(d){var m=th,x=this._proxy.style[m];Si(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),x===this._proxy.style[m]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){xt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var s=this.getCenter(),d=this.getZoom();Si(this._proxy,this.project(s,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(s){this._animatingZoom&&s.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(s,d,m){if(this._animatingZoom)return!0;if(m=m||{},!this._zoomAnimated||m.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var x=this.getZoomScale(d),A=this._getCenterOffset(s)._divideBy(1-1/x);return m.animate!==!0&&!this.getSize().contains(A)?!1:(Z(function(){this._moveStart(!0,m.noMoveStart||!1)._animateZoom(s,d,!0)},this),!0)},_animateZoom:function(s,d,m,x){this._mapPane&&(m&&(this._animatingZoom=!0,this._animateToCenter=s,this._animateToZoom=d,Be(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:s,zoom:d,noUpdate:x}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Dt(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 vE(s,d){return new Ye(s,d)}var Qr=X.extend({options:{position:"topright"},initialize:function(s){v(this,s)},getPosition:function(){return this.options.position},setPosition:function(s){var d=this._map;return d&&d.removeControl(this),this.options.position=s,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(s){this.remove(),this._map=s;var d=this._container=this.onAdd(s),m=this.getPosition(),x=s._controlCorners[m];return Be(d,"leaflet-control"),m.indexOf("bottom")!==-1?x.insertBefore(d,x.firstChild):x.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(xt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(s){this._map&&s&&s.screenX>0&&s.screenY>0&&this._map.getContainer().focus()}}),Ho=function(s){return new Qr(s)};Ye.include({addControl:function(s){return s.addTo(this),this},removeControl:function(s){return s.remove(),this},_initControlPos:function(){var s=this._controlCorners={},d="leaflet-",m=this._controlContainer=qe("div",d+"control-container",this._container);function x(A,D){var q=d+A+" "+d+D;s[A+D]=qe("div",q,m)}x("top","left"),x("top","right"),x("bottom","left"),x("bottom","right")},_clearControlPos:function(){for(var s in this._controlCorners)xt(this._controlCorners[s]);xt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var hv=Qr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(s,d,m,x){return m<x?-1:x<m?1:0}},initialize:function(s,d,m){v(this,m),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var x in s)this._addLayer(s[x],x);for(x in d)this._addLayer(d[x],x,!0)},onAdd:function(s){this._initLayout(),this._update(),this._map=s,s.on("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(s){return Qr.prototype.addTo.call(this,s),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var s=0;s<this._layers.length;s++)this._layers[s].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(s,d){return this._addLayer(s,d),this._map?this._update():this},addOverlay:function(s,d){return this._addLayer(s,d,!0),this._map?this._update():this},removeLayer:function(s){s.off("add remove",this._onLayerChange,this);var d=this._getLayer(u(s));return d&&this._layers.splice(this._layers.indexOf(d),1),this._map?this._update():this},expand:function(){Be(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var s=this._map.getSize().y-(this._container.offsetTop+50);return s<this._section.clientHeight?(Be(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=s+"px"):Dt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Dt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var s="leaflet-control-layers",d=this._container=qe("div",s),m=this.options.collapsed;d.setAttribute("aria-haspopup",!0),Bo(d),fh(d);var x=this._section=qe("section",s+"-list");m&&(this._map.on("click",this.collapse,this),Fe(d,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var A=this._layersLink=qe("a",s+"-toggle",d);A.href="#",A.title="Layers",A.setAttribute("role","button"),Fe(A,{keydown:function(D){D.keyCode===13&&this._expandSafely()},click:function(D){Jt(D),this._expandSafely()}},this),m||this.expand(),this._baseLayersList=qe("div",s+"-base",x),this._separator=qe("div",s+"-separator",x),this._overlaysList=qe("div",s+"-overlays",x),d.appendChild(x)},_getLayer:function(s){for(var d=0;d<this._layers.length;d++)if(this._layers[d]&&u(this._layers[d].layer)===s)return this._layers[d]},_addLayer:function(s,d,m){this._map&&s.on("add remove",this._onLayerChange,this),this._layers.push({layer:s,name:d,overlay:m}),this.options.sortLayers&&this._layers.sort(o(function(x,A){return this.options.sortFunction(x.layer,A.layer,x.name,A.name)},this)),this.options.autoZIndex&&s.setZIndex&&(this._lastZIndex++,s.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Gl(this._baseLayersList),Gl(this._overlaysList),this._layerControlInputs=[];var s,d,m,x,A=0;for(m=0;m<this._layers.length;m++)x=this._layers[m],this._addItem(x),d=d||x.overlay,s=s||!x.overlay,A+=x.overlay?0:1;return this.options.hideSingleBase&&(s=s&&A>1,this._baseLayersList.style.display=s?"":"none"),this._separator.style.display=d&&s?"":"none",this},_onLayerChange:function(s){this._handlingClick||this._update();var d=this._getLayer(u(s.target)),m=d.overlay?s.type==="add"?"overlayadd":"overlayremove":s.type==="add"?"baselayerchange":null;m&&this._map.fire(m,d)},_createRadioElement:function(s,d){var m='<input type="radio" class="leaflet-control-layers-selector" name="'+s+'"'+(d?' checked="checked"':"")+"/>",x=document.createElement("div");return x.innerHTML=m,x.firstChild},_addItem:function(s){var d=document.createElement("label"),m=this._map.hasLayer(s.layer),x;s.overlay?(x=document.createElement("input"),x.type="checkbox",x.className="leaflet-control-layers-selector",x.defaultChecked=m):x=this._createRadioElement("leaflet-base-layers_"+u(this),m),this._layerControlInputs.push(x),x.layerId=u(s.layer),Fe(x,"click",this._onInputClick,this);var A=document.createElement("span");A.innerHTML=" "+s.name;var D=document.createElement("span");d.appendChild(D),D.appendChild(x),D.appendChild(A);var q=s.overlay?this._overlaysList:this._baseLayersList;return q.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){if(!this._preventClick){var s=this._layerControlInputs,d,m,x=[],A=[];this._handlingClick=!0;for(var D=s.length-1;D>=0;D--)d=s[D],m=this._getLayer(d.layerId).layer,d.checked?x.push(m):d.checked||A.push(m);for(D=0;D<A.length;D++)this._map.hasLayer(A[D])&&this._map.removeLayer(A[D]);for(D=0;D<x.length;D++)this._map.hasLayer(x[D])||this._map.addLayer(x[D]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var s=this._layerControlInputs,d,m,x=this._map.getZoom(),A=s.length-1;A>=0;A--)d=s[A],m=this._getLayer(d.layerId).layer,d.disabled=m.options.minZoom!==void 0&&x<m.options.minZoom||m.options.maxZoom!==void 0&&x>m.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var s=this._section;this._preventClick=!0,Fe(s,"click",Jt),this.expand();var d=this;setTimeout(function(){ut(s,"click",Jt),d._preventClick=!1})}}),yE=function(s,d,m){return new hv(s,d,m)},mh=Qr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(s){var d="leaflet-control-zoom",m=qe("div",d+" leaflet-bar"),x=this.options;return this._zoomInButton=this._createButton(x.zoomInText,x.zoomInTitle,d+"-in",m,this._zoomIn),this._zoomOutButton=this._createButton(x.zoomOutText,x.zoomOutTitle,d+"-out",m,this._zoomOut),this._updateDisabled(),s.on("zoomend zoomlevelschange",this._updateDisabled,this),m},onRemove:function(s){s.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(s){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(s.shiftKey?3:1))},_zoomOut:function(s){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(s.shiftKey?3:1))},_createButton:function(s,d,m,x,A){var D=qe("a",m,x);return D.innerHTML=s,D.href="#",D.title=d,D.setAttribute("role","button"),D.setAttribute("aria-label",d),Bo(D),Fe(D,"click",Ai),Fe(D,"click",A,this),Fe(D,"click",this._refocusOnMap,this),D},_updateDisabled:function(){var s=this._map,d="leaflet-disabled";Dt(this._zoomInButton,d),Dt(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||s._zoom===s.getMinZoom())&&(Be(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||s._zoom===s.getMaxZoom())&&(Be(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ye.mergeOptions({zoomControl:!0}),Ye.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new mh,this.addControl(this.zoomControl))});var bE=function(s){return new mh(s)},fv=Qr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(s){var d="leaflet-control-scale",m=qe("div",d),x=this.options;return this._addScales(x,d+"-line",m),s.on(x.updateWhenIdle?"moveend":"move",this._update,this),s.whenReady(this._update,this),m},onRemove:function(s){s.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(s,d,m){s.metric&&(this._mScale=qe("div",d,m)),s.imperial&&(this._iScale=qe("div",d,m))},_update:function(){var s=this._map,d=s.getSize().y/2,m=s.distance(s.containerPointToLatLng([0,d]),s.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(m)},_updateScales:function(s){this.options.metric&&s&&this._updateMetric(s),this.options.imperial&&s&&this._updateImperial(s)},_updateMetric:function(s){var d=this._getRoundNum(s),m=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,m,d/s)},_updateImperial:function(s){var d=s*3.2808399,m,x,A;d>5280?(m=d/5280,x=this._getRoundNum(m),this._updateScale(this._iScale,x+" mi",x/m)):(A=this._getRoundNum(d),this._updateScale(this._iScale,A+" ft",A/d))},_updateScale:function(s,d,m){s.style.width=Math.round(this.options.maxWidth*m)+"px",s.innerHTML=d},_getRoundNum:function(s){var d=Math.pow(10,(Math.floor(s)+"").length-1),m=s/d;return m=m>=10?10:m>=5?5:m>=3?3:m>=2?2:1,d*m}}),_E=function(s){return new fv(s)},wE='<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>',gh=Qr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Se.inlineSvg?wE+" ":"")+"Leaflet</a>"},initialize:function(s){v(this,s),this._attributions={}},onAdd:function(s){s.attributionControl=this,this._container=qe("div","leaflet-control-attribution"),Bo(this._container);for(var d in s._layers)s._layers[d].getAttribution&&this.addAttribution(s._layers[d].getAttribution());return this._update(),s.on("layeradd",this._addAttribution,this),this._container},onRemove:function(s){s.off("layeradd",this._addAttribution,this)},_addAttribution:function(s){s.layer.getAttribution&&(this.addAttribution(s.layer.getAttribution()),s.layer.once("remove",function(){this.removeAttribution(s.layer.getAttribution())},this))},setPrefix:function(s){return this.options.prefix=s,this._update(),this},addAttribution:function(s){return s?(this._attributions[s]||(this._attributions[s]=0),this._attributions[s]++,this._update(),this):this},removeAttribution:function(s){return s?(this._attributions[s]&&(this._attributions[s]--,this._update()),this):this},_update:function(){if(this._map){var s=[];for(var d in this._attributions)this._attributions[d]&&s.push(d);var m=[];this.options.prefix&&m.push(this.options.prefix),s.length&&m.push(s.join(", ")),this._container.innerHTML=m.join(' <span aria-hidden="true">|</span> ')}}});Ye.mergeOptions({attributionControl:!0}),Ye.addInitHook(function(){this.options.attributionControl&&new gh().addTo(this)});var xE=function(s){return new gh(s)};Qr.Layers=hv,Qr.Zoom=mh,Qr.Scale=fv,Qr.Attribution=gh,Ho.layers=yE,Ho.zoom=bE,Ho.scale=_E,Ho.attribution=xE;var ln=X.extend({initialize:function(s){this._map=s},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}});ln.addTo=function(s,d){return s.addHandler(d,this),this};var CE={Events:V},pv=Se.touch?"touchstart mousedown":"mousedown",Qn=H.extend({options:{clickTolerance:3},initialize:function(s,d,m,x){v(this,x),this._element=s,this._dragStartTarget=d||s,this._preventOutline=m},enable:function(){this._enabled||(Fe(this._dragStartTarget,pv,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Qn._dragging===this&&this.finishDrag(!0),ut(this._dragStartTarget,pv,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(s){if(this._enabled&&(this._moved=!1,!rh(this._element,"leaflet-zoom-anim"))){if(s.touches&&s.touches.length!==1){Qn._dragging===this&&this.finishDrag();return}if(!(Qn._dragging||s.shiftKey||s.which!==1&&s.button!==1&&!s.touches)&&(Qn._dragging=this,this._preventOutline&&lh(this._element),ah(),$o(),!this._moving)){this.fire("down");var d=s.touches?s.touches[0]:s,m=ov(this._element);this._startPoint=new U(d.clientX,d.clientY),this._startPos=Ei(this._element),this._parentScale=uh(m);var x=s.type==="mousedown";Fe(document,x?"mousemove":"touchmove",this._onMove,this),Fe(document,x?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(s){if(this._enabled){if(s.touches&&s.touches.length>1){this._moved=!0;return}var d=s.touches&&s.touches.length===1?s.touches[0]:s,m=new U(d.clientX,d.clientY)._subtract(this._startPoint);!m.x&&!m.y||Math.abs(m.x)+Math.abs(m.y)<this.options.clickTolerance||(m.x/=this._parentScale.x,m.y/=this._parentScale.y,Jt(s),this._moved||(this.fire("dragstart"),this._moved=!0,Be(document.body,"leaflet-dragging"),this._lastTarget=s.target||s.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Be(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(m),this._moving=!0,this._lastEvent=s,this._updatePosition())}},_updatePosition:function(){var s={originalEvent:this._lastEvent};this.fire("predrag",s),zt(this._element,this._newPos),this.fire("drag",s)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(s){Dt(document.body,"leaflet-dragging"),this._lastTarget&&(Dt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),ut(document,"mousemove touchmove",this._onMove,this),ut(document,"mouseup touchend touchcancel",this._onUp,this),oh(),Fo();var d=this._moved&&this._moving;this._moving=!1,Qn._dragging=!1,d&&this.fire("dragend",{noInertia:s,distance:this._newPos.distanceTo(this._startPos)})}});function mv(s,d,m){var x,A=[1,4,2,8],D,q,ee,ae,he,be,Ae,We;for(D=0,be=s.length;D<be;D++)s[D]._code=Ri(s[D],d);for(ee=0;ee<4;ee++){for(Ae=A[ee],x=[],D=0,be=s.length,q=be-1;D<be;q=D++)ae=s[D],he=s[q],ae._code&Ae?he._code&Ae||(We=Zl(he,ae,Ae,d,m),We._code=Ri(We,d),x.push(We)):(he._code&Ae&&(We=Zl(he,ae,Ae,d,m),We._code=Ri(We,d),x.push(We)),x.push(ae));s=x}return s}function gv(s,d){var m,x,A,D,q,ee,ae,he,be;if(!s||s.length===0)throw new Error("latlngs not passed");zr(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var Ae=le([0,0]),We=re(s),sr=We.getNorthWest().distanceTo(We.getSouthWest())*We.getNorthEast().distanceTo(We.getNorthWest());sr<1700&&(Ae=vh(s));var Yt=s.length,Br=[];for(m=0;m<Yt;m++){var br=le(s[m]);Br.push(d.project(le([br.lat-Ae.lat,br.lng-Ae.lng])))}for(ee=ae=he=0,m=0,x=Yt-1;m<Yt;x=m++)A=Br[m],D=Br[x],q=A.y*D.x-D.y*A.x,ae+=(A.x+D.x)*q,he+=(A.y+D.y)*q,ee+=q*3;ee===0?be=Br[0]:be=[ae/ee,he/ee];var ba=d.unproject(F(be));return le([ba.lat+Ae.lat,ba.lng+Ae.lng])}function vh(s){for(var d=0,m=0,x=0,A=0;A<s.length;A++){var D=le(s[A]);d+=D.lat,m+=D.lng,x++}return le([d/x,m/x])}var TE={__proto__:null,clipPolygon:mv,polygonCenter:gv,centroid:vh};function vv(s,d){if(!d||!s.length)return s.slice();var m=d*d;return s=EE(s,m),s=SE(s,m),s}function yv(s,d,m){return Math.sqrt(Wo(s,d,m,!0))}function ME(s,d,m){return Wo(s,d,m)}function SE(s,d){var m=s.length,x=typeof Uint8Array!="undefined"?Uint8Array:Array,A=new x(m);A[0]=A[m-1]=1,yh(s,A,d,0,m-1);var D,q=[];for(D=0;D<m;D++)A[D]&&q.push(s[D]);return q}function yh(s,d,m,x,A){var D=0,q,ee,ae;for(ee=x+1;ee<=A-1;ee++)ae=Wo(s[ee],s[x],s[A],!0),ae>D&&(q=ee,D=ae);D>m&&(d[q]=1,yh(s,d,m,x,q),yh(s,d,m,q,A))}function EE(s,d){for(var m=[s[0]],x=1,A=0,D=s.length;x<D;x++)PE(s[x],s[A])>d&&(m.push(s[x]),A=x);return A<D-1&&m.push(s[D-1]),m}var bv;function _v(s,d,m,x,A){var D=x?bv:Ri(s,m),q=Ri(d,m),ee,ae,he;for(bv=q;;){if(!(D|q))return[s,d];if(D&q)return!1;ee=D||q,ae=Zl(s,d,ee,m,A),he=Ri(ae,m),ee===D?(s=ae,D=he):(d=ae,q=he)}}function Zl(s,d,m,x,A){var D=d.x-s.x,q=d.y-s.y,ee=x.min,ae=x.max,he,be;return m&8?(he=s.x+D*(ae.y-s.y)/q,be=ae.y):m&4?(he=s.x+D*(ee.y-s.y)/q,be=ee.y):m&2?(he=ae.x,be=s.y+q*(ae.x-s.x)/D):m&1&&(he=ee.x,be=s.y+q*(ee.x-s.x)/D),new U(he,be,A)}function Ri(s,d){var m=0;return s.x<d.min.x?m|=1:s.x>d.max.x&&(m|=2),s.y<d.min.y?m|=4:s.y>d.max.y&&(m|=8),m}function PE(s,d){var m=d.x-s.x,x=d.y-s.y;return m*m+x*x}function Wo(s,d,m,x){var A=d.x,D=d.y,q=m.x-A,ee=m.y-D,ae=q*q+ee*ee,he;return ae>0&&(he=((s.x-A)*q+(s.y-D)*ee)/ae,he>1?(A=m.x,D=m.y):he>0&&(A+=q*he,D+=ee*he)),q=s.x-A,ee=s.y-D,x?q*q+ee*ee:new U(A,D)}function zr(s){return!E(s[0])||typeof s[0][0]!="object"&&typeof s[0][0]!="undefined"}function wv(s){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),zr(s)}function xv(s,d){var m,x,A,D,q,ee,ae,he;if(!s||s.length===0)throw new Error("latlngs not passed");zr(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var be=le([0,0]),Ae=re(s),We=Ae.getNorthWest().distanceTo(Ae.getSouthWest())*Ae.getNorthEast().distanceTo(Ae.getNorthWest());We<1700&&(be=vh(s));var sr=s.length,Yt=[];for(m=0;m<sr;m++){var Br=le(s[m]);Yt.push(d.project(le([Br.lat-be.lat,Br.lng-be.lng])))}for(m=0,x=0;m<sr-1;m++)x+=Yt[m].distanceTo(Yt[m+1])/2;if(x===0)he=Yt[0];else for(m=0,D=0;m<sr-1;m++)if(q=Yt[m],ee=Yt[m+1],A=q.distanceTo(ee),D+=A,D>x){ae=(D-x)/A,he=[ee.x-ae*(ee.x-q.x),ee.y-ae*(ee.y-q.y)];break}var br=d.unproject(F(he));return le([br.lat+be.lat,br.lng+be.lng])}var AE={__proto__:null,simplify:vv,pointToSegmentDistance:yv,closestPointOnSegment:ME,clipSegment:_v,_getEdgeIntersection:Zl,_getBitCode:Ri,_sqClosestPointOnSegment:Wo,isFlat:zr,_flat:wv,polylineCenter:xv},bh={project:function(s){return new U(s.lng,s.lat)},unproject:function(s){return new oe(s.y,s.x)},bounds:new Y([-180,-90],[180,90])},_h={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Y([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(s){var d=Math.PI/180,m=this.R,x=s.lat*d,A=this.R_MINOR/m,D=Math.sqrt(1-A*A),q=D*Math.sin(x),ee=Math.tan(Math.PI/4-x/2)/Math.pow((1-q)/(1+q),D/2);return x=-m*Math.log(Math.max(ee,1e-10)),new U(s.lng*d*m,x)},unproject:function(s){for(var d=180/Math.PI,m=this.R,x=this.R_MINOR/m,A=Math.sqrt(1-x*x),D=Math.exp(-s.y/m),q=Math.PI/2-2*Math.atan(D),ee=0,ae=.1,he;ee<15&&Math.abs(ae)>1e-7;ee++)he=A*Math.sin(q),he=Math.pow((1-he)/(1+he),A/2),ae=Math.PI/2-2*Math.atan(D*he)-q,q+=ae;return new oe(q*d,s.x*d/m)}},RE={__proto__:null,LonLat:bh,Mercator:_h,SphericalMercator:Ce},OE=i({},ce,{code:"EPSG:3395",projection:_h,transformation:function(){var s=.5/(Math.PI*_h.R);return J(s,.5,-s,.5)}()}),Cv=i({},ce,{code:"EPSG:4326",projection:bh,transformation:J(1/180,1,-1/180,.5)}),kE=i({},de,{projection:bh,transformation:J(1,0,-1,0),scale:function(s){return Math.pow(2,s)},zoom:function(s){return Math.log(s)/Math.LN2},distance:function(s,d){var m=d.lng-s.lng,x=d.lat-s.lat;return Math.sqrt(m*m+x*x)},infinite:!0});de.Earth=ce,de.EPSG3395=OE,de.EPSG3857=we,de.EPSG900913=Ee,de.EPSG4326=Cv,de.Simple=kE;var Jr=H.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(s){return s.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(s){return s&&s.removeLayer(this),this},getPane:function(s){return this._map.getPane(s?this.options[s]||s:this.options.pane)},addInteractiveTarget:function(s){return this._map._targets[u(s)]=this,this},removeInteractiveTarget:function(s){return delete this._map._targets[u(s)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(s){var d=s.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var m=this.getEvents();d.on(m,this),this.once("remove",function(){d.off(m,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});Ye.include({addLayer:function(s){if(!s._layerAdd)throw new Error("The provided object is not a Layer.");var d=u(s);return this._layers[d]?this:(this._layers[d]=s,s._mapToAdd=this,s.beforeAdd&&s.beforeAdd(this),this.whenReady(s._layerAdd,s),this)},removeLayer:function(s){var d=u(s);return this._layers[d]?(this._loaded&&s.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:s}),s.fire("remove")),s._map=s._mapToAdd=null,this):this},hasLayer:function(s){return u(s)in this._layers},eachLayer:function(s,d){for(var m in this._layers)s.call(d,this._layers[m]);return this},_addLayers:function(s){s=s?E(s)?s:[s]:[];for(var d=0,m=s.length;d<m;d++)this.addLayer(s[d])},_addZoomLimit:function(s){(!isNaN(s.options.maxZoom)||!isNaN(s.options.minZoom))&&(this._zoomBoundLayers[u(s)]=s,this._updateZoomLevels())},_removeZoomLimit:function(s){var d=u(s);this._zoomBoundLayers[d]&&(delete this._zoomBoundLayers[d],this._updateZoomLevels())},_updateZoomLevels:function(){var s=1/0,d=-1/0,m=this._getZoomSpan();for(var x in this._zoomBoundLayers){var A=this._zoomBoundLayers[x].options;s=A.minZoom===void 0?s:Math.min(s,A.minZoom),d=A.maxZoom===void 0?d:Math.max(d,A.maxZoom)}this._layersMaxZoom=d===-1/0?void 0:d,this._layersMinZoom=s===1/0?void 0:s,m!==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 pa=Jr.extend({initialize:function(s,d){v(this,d),this._layers={};var m,x;if(s)for(m=0,x=s.length;m<x;m++)this.addLayer(s[m])},addLayer:function(s){var d=this.getLayerId(s);return this._layers[d]=s,this._map&&this._map.addLayer(s),this},removeLayer:function(s){var d=s in this._layers?s:this.getLayerId(s);return this._map&&this._layers[d]&&this._map.removeLayer(this._layers[d]),delete this._layers[d],this},hasLayer:function(s){var d=typeof s=="number"?s:this.getLayerId(s);return d in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(s){var d=Array.prototype.slice.call(arguments,1),m,x;for(m in this._layers)x=this._layers[m],x[s]&&x[s].apply(x,d);return this},onAdd:function(s){this.eachLayer(s.addLayer,s)},onRemove:function(s){this.eachLayer(s.removeLayer,s)},eachLayer:function(s,d){for(var m in this._layers)s.call(d,this._layers[m]);return this},getLayer:function(s){return this._layers[s]},getLayers:function(){var s=[];return this.eachLayer(s.push,s),s},setZIndex:function(s){return this.invoke("setZIndex",s)},getLayerId:function(s){return u(s)}}),DE=function(s,d){return new pa(s,d)},Dn=pa.extend({addLayer:function(s){return this.hasLayer(s)?this:(s.addEventParent(this),pa.prototype.addLayer.call(this,s),this.fire("layeradd",{layer:s}))},removeLayer:function(s){return this.hasLayer(s)?(s in this._layers&&(s=this._layers[s]),s.removeEventParent(this),pa.prototype.removeLayer.call(this,s),this.fire("layerremove",{layer:s})):this},setStyle:function(s){return this.invoke("setStyle",s)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var s=new ie;for(var d in this._layers){var m=this._layers[d];s.extend(m.getBounds?m.getBounds():m.getLatLng())}return s}}),NE=function(s,d){return new Dn(s,d)},ma=X.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(s){v(this,s)},createIcon:function(s){return this._createIcon("icon",s)},createShadow:function(s){return this._createIcon("shadow",s)},_createIcon:function(s,d){var m=this._getIconUrl(s);if(!m){if(s==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var x=this._createImg(m,d&&d.tagName==="IMG"?d:null);return this._setIconStyles(x,s),(this.options.crossOrigin||this.options.crossOrigin==="")&&(x.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),x},_setIconStyles:function(s,d){var m=this.options,x=m[d+"Size"];typeof x=="number"&&(x=[x,x]);var A=F(x),D=F(d==="shadow"&&m.shadowAnchor||m.iconAnchor||A&&A.divideBy(2,!0));s.className="leaflet-marker-"+d+" "+(m.className||""),D&&(s.style.marginLeft=-D.x+"px",s.style.marginTop=-D.y+"px"),A&&(s.style.width=A.x+"px",s.style.height=A.y+"px")},_createImg:function(s,d){return d=d||document.createElement("img"),d.src=s,d},_getIconUrl:function(s){return Se.retina&&this.options[s+"RetinaUrl"]||this.options[s+"Url"]}});function LE(s){return new ma(s)}var jo=ma.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(s){return typeof jo.imagePath!="string"&&(jo.imagePath=this._detectIconPath()),(this.options.imagePath||jo.imagePath)+ma.prototype._getIconUrl.call(this,s)},_stripUrl:function(s){var d=function(m,x,A){var D=x.exec(m);return D&&D[A]};return s=d(s,/^url\((['"])?(.+)\1\)$/,2),s&&d(s,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var s=qe("div","leaflet-default-icon-path",document.body),d=Io(s,"background-image")||Io(s,"backgroundImage");if(document.body.removeChild(s),d=this._stripUrl(d),d)return d;var m=document.querySelector('link[href$="leaflet.css"]');return m?m.href.substring(0,m.href.length-11-1):""}}),Tv=ln.extend({initialize:function(s){this._marker=s},addHooks:function(){var s=this._marker._icon;this._draggable||(this._draggable=new Qn(s,s,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Be(s,"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&&Dt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(s){var d=this._marker,m=d._map,x=this._marker.options.autoPanSpeed,A=this._marker.options.autoPanPadding,D=Ei(d._icon),q=m.getPixelBounds(),ee=m.getPixelOrigin(),ae=ne(q.min._subtract(ee).add(A),q.max._subtract(ee).subtract(A));if(!ae.contains(D)){var he=F((Math.max(ae.max.x,D.x)-ae.max.x)/(q.max.x-ae.max.x)-(Math.min(ae.min.x,D.x)-ae.min.x)/(q.min.x-ae.min.x),(Math.max(ae.max.y,D.y)-ae.max.y)/(q.max.y-ae.max.y)-(Math.min(ae.min.y,D.y)-ae.min.y)/(q.min.y-ae.min.y)).multiplyBy(x);m.panBy(he,{animate:!1}),this._draggable._newPos._add(he),this._draggable._startPos._add(he),zt(d._icon,this._draggable._newPos),this._onDrag(s),this._panRequest=Z(this._adjustPan.bind(this,s))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(s){this._marker.options.autoPan&&(O(this._panRequest),this._panRequest=Z(this._adjustPan.bind(this,s)))},_onDrag:function(s){var d=this._marker,m=d._shadow,x=Ei(d._icon),A=d._map.layerPointToLatLng(x);m&&zt(m,x),d._latlng=A,s.latlng=A,s.oldLatLng=this._oldLatLng,d.fire("move",s).fire("drag",s)},_onDragEnd:function(s){O(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",s)}}),Kl=Jr.extend({options:{icon:new jo,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(s,d){v(this,d),this._latlng=le(s)},onAdd:function(s){this._zoomAnimated=this._zoomAnimated&&s.options.markerZoomAnimation,this._zoomAnimated&&s.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(s){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&s.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(s){var d=this._latlng;return this._latlng=le(s),this.update(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},setZIndexOffset:function(s){return this.options.zIndexOffset=s,this.update()},getIcon:function(){return this.options.icon},setIcon:function(s){return this.options.icon=s,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 s=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(s)}return this},_initIcon:function(){var s=this.options,d="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),m=s.icon.createIcon(this._icon),x=!1;m!==this._icon&&(this._icon&&this._removeIcon(),x=!0,s.title&&(m.title=s.title),m.tagName==="IMG"&&(m.alt=s.alt||"")),Be(m,d),s.keyboard&&(m.tabIndex="0",m.setAttribute("role","button")),this._icon=m,s.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Fe(m,"focus",this._panOnFocus,this);var A=s.icon.createShadow(this._shadow),D=!1;A!==this._shadow&&(this._removeShadow(),D=!0),A&&(Be(A,d),A.alt=""),this._shadow=A,s.opacity<1&&this._updateOpacity(),x&&this.getPane().appendChild(this._icon),this._initInteraction(),A&&D&&this.getPane(s.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ut(this._icon,"focus",this._panOnFocus,this),xt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&xt(this._shadow),this._shadow=null},_setPos:function(s){this._icon&&zt(this._icon,s),this._shadow&&zt(this._shadow,s),this._zIndex=s.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(s){this._icon&&(this._icon.style.zIndex=this._zIndex+s)},_animateZoom:function(s){var d=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center).round();this._setPos(d)},_initInteraction:function(){if(this.options.interactive&&(Be(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Tv)){var s=this.options.draggable;this.dragging&&(s=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Tv(this),s&&this.dragging.enable()}},setOpacity:function(s){return this.options.opacity=s,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var s=this.options.opacity;this._icon&&Fr(this._icon,s),this._shadow&&Fr(this._shadow,s)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var s=this._map;if(s){var d=this.options.icon.options,m=d.iconSize?F(d.iconSize):F(0,0),x=d.iconAnchor?F(d.iconAnchor):F(0,0);s.panInside(this._latlng,{paddingTopLeft:x,paddingBottomRight:m.subtract(x)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function IE(s,d){return new Kl(s,d)}var Jn=Jr.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(s){this._renderer=s.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(s){return v(this,s),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&s&&Object.prototype.hasOwnProperty.call(s,"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)}}),Ql=Jn.extend({options:{fill:!0,radius:10},initialize:function(s,d){v(this,d),this._latlng=le(s),this._radius=this.options.radius},setLatLng:function(s){var d=this._latlng;return this._latlng=le(s),this.redraw(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(s){return this.options.radius=this._radius=s,this.redraw()},getRadius:function(){return this._radius},setStyle:function(s){var d=s&&s.radius||this._radius;return Jn.prototype.setStyle.call(this,s),this.setRadius(d),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var s=this._radius,d=this._radiusY||s,m=this._clickTolerance(),x=[s+m,d+m];this._pxBounds=new Y(this._point.subtract(x),this._point.add(x))},_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(s){return s.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function $E(s,d){return new Ql(s,d)}var wh=Ql.extend({initialize:function(s,d,m){if(typeof d=="number"&&(d=i({},m,{radius:d})),v(this,d),this._latlng=le(s),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(s){return this._mRadius=s,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var s=[this._radius,this._radiusY||this._radius];return new ie(this._map.layerPointToLatLng(this._point.subtract(s)),this._map.layerPointToLatLng(this._point.add(s)))},setStyle:Jn.prototype.setStyle,_project:function(){var s=this._latlng.lng,d=this._latlng.lat,m=this._map,x=m.options.crs;if(x.distance===ce.distance){var A=Math.PI/180,D=this._mRadius/ce.R/A,q=m.project([d+D,s]),ee=m.project([d-D,s]),ae=q.add(ee).divideBy(2),he=m.unproject(ae).lat,be=Math.acos((Math.cos(D*A)-Math.sin(d*A)*Math.sin(he*A))/(Math.cos(d*A)*Math.cos(he*A)))/A;(isNaN(be)||be===0)&&(be=D/Math.cos(Math.PI/180*d)),this._point=ae.subtract(m.getPixelOrigin()),this._radius=isNaN(be)?0:ae.x-m.project([he,s-be]).x,this._radiusY=ae.y-q.y}else{var Ae=x.unproject(x.project(this._latlng).subtract([this._mRadius,0]));this._point=m.latLngToLayerPoint(this._latlng),this._radius=this._point.x-m.latLngToLayerPoint(Ae).x}this._updateBounds()}});function FE(s,d,m){return new wh(s,d,m)}var Nn=Jn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(s,d){v(this,d),this._setLatLngs(s)},getLatLngs:function(){return this._latlngs},setLatLngs:function(s){return this._setLatLngs(s),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(s){for(var d=1/0,m=null,x=Wo,A,D,q=0,ee=this._parts.length;q<ee;q++)for(var ae=this._parts[q],he=1,be=ae.length;he<be;he++){A=ae[he-1],D=ae[he];var Ae=x(s,A,D,!0);Ae<d&&(d=Ae,m=x(s,A,D))}return m&&(m.distance=Math.sqrt(d)),m},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return xv(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(s,d){return d=d||this._defaultShape(),s=le(s),d.push(s),this._bounds.extend(s),this.redraw()},_setLatLngs:function(s){this._bounds=new ie,this._latlngs=this._convertLatLngs(s)},_defaultShape:function(){return zr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(s){for(var d=[],m=zr(s),x=0,A=s.length;x<A;x++)m?(d[x]=le(s[x]),this._bounds.extend(d[x])):d[x]=this._convertLatLngs(s[x]);return d},_project:function(){var s=new Y;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,s),this._bounds.isValid()&&s.isValid()&&(this._rawPxBounds=s,this._updateBounds())},_updateBounds:function(){var s=this._clickTolerance(),d=new U(s,s);this._rawPxBounds&&(this._pxBounds=new Y([this._rawPxBounds.min.subtract(d),this._rawPxBounds.max.add(d)]))},_projectLatlngs:function(s,d,m){var x=s[0]instanceof oe,A=s.length,D,q;if(x){for(q=[],D=0;D<A;D++)q[D]=this._map.latLngToLayerPoint(s[D]),m.extend(q[D]);d.push(q)}else for(D=0;D<A;D++)this._projectLatlngs(s[D],d,m)},_clipPoints:function(){var s=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}var d=this._parts,m,x,A,D,q,ee,ae;for(m=0,A=0,D=this._rings.length;m<D;m++)for(ae=this._rings[m],x=0,q=ae.length;x<q-1;x++)ee=_v(ae[x],ae[x+1],s,x,!0),ee&&(d[A]=d[A]||[],d[A].push(ee[0]),(ee[1]!==ae[x+1]||x===q-2)&&(d[A].push(ee[1]),A++))}},_simplifyPoints:function(){for(var s=this._parts,d=this.options.smoothFactor,m=0,x=s.length;m<x;m++)s[m]=vv(s[m],d)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(s,d){var m,x,A,D,q,ee,ae=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(m=0,D=this._parts.length;m<D;m++)for(ee=this._parts[m],x=0,q=ee.length,A=q-1;x<q;A=x++)if(!(!d&&x===0)&&yv(s,ee[A],ee[x])<=ae)return!0;return!1}});function zE(s,d){return new Nn(s,d)}Nn._flat=wv;var ga=Nn.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 gv(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(s){var d=Nn.prototype._convertLatLngs.call(this,s),m=d.length;return m>=2&&d[0]instanceof oe&&d[0].equals(d[m-1])&&d.pop(),d},_setLatLngs:function(s){Nn.prototype._setLatLngs.call(this,s),zr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return zr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var s=this._renderer._bounds,d=this.options.weight,m=new U(d,d);if(s=new Y(s.min.subtract(m),s.max.add(m)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}for(var x=0,A=this._rings.length,D;x<A;x++)D=mv(this._rings[x],s,!0),D.length&&this._parts.push(D)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(s){var d=!1,m,x,A,D,q,ee,ae,he;if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(D=0,ae=this._parts.length;D<ae;D++)for(m=this._parts[D],q=0,he=m.length,ee=he-1;q<he;ee=q++)x=m[q],A=m[ee],x.y>s.y!=A.y>s.y&&s.x<(A.x-x.x)*(s.y-x.y)/(A.y-x.y)+x.x&&(d=!d);return d||Nn.prototype._containsPoint.call(this,s,!0)}});function BE(s,d){return new ga(s,d)}var Ln=Dn.extend({initialize:function(s,d){v(this,d),this._layers={},s&&this.addData(s)},addData:function(s){var d=E(s)?s:s.features,m,x,A;if(d){for(m=0,x=d.length;m<x;m++)A=d[m],(A.geometries||A.geometry||A.features||A.coordinates)&&this.addData(A);return this}var D=this.options;if(D.filter&&!D.filter(s))return this;var q=Jl(s,D);return q?(q.feature=ru(s),q.defaultOptions=q.options,this.resetStyle(q),D.onEachFeature&&D.onEachFeature(s,q),this.addLayer(q)):this},resetStyle:function(s){return s===void 0?this.eachLayer(this.resetStyle,this):(s.options=i({},s.defaultOptions),this._setLayerStyle(s,this.options.style),this)},setStyle:function(s){return this.eachLayer(function(d){this._setLayerStyle(d,s)},this)},_setLayerStyle:function(s,d){s.setStyle&&(typeof d=="function"&&(d=d(s.feature)),s.setStyle(d))}});function Jl(s,d){var m=s.type==="Feature"?s.geometry:s,x=m?m.coordinates:null,A=[],D=d&&d.pointToLayer,q=d&&d.coordsToLatLng||xh,ee,ae,he,be;if(!x&&!m)return null;switch(m.type){case"Point":return ee=q(x),Mv(D,s,ee,d);case"MultiPoint":for(he=0,be=x.length;he<be;he++)ee=q(x[he]),A.push(Mv(D,s,ee,d));return new Dn(A);case"LineString":case"MultiLineString":return ae=eu(x,m.type==="LineString"?0:1,q),new Nn(ae,d);case"Polygon":case"MultiPolygon":return ae=eu(x,m.type==="Polygon"?1:2,q),new ga(ae,d);case"GeometryCollection":for(he=0,be=m.geometries.length;he<be;he++){var Ae=Jl({geometry:m.geometries[he],type:"Feature",properties:s.properties},d);Ae&&A.push(Ae)}return new Dn(A);case"FeatureCollection":for(he=0,be=m.features.length;he<be;he++){var We=Jl(m.features[he],d);We&&A.push(We)}return new Dn(A);default:throw new Error("Invalid GeoJSON object.")}}function Mv(s,d,m,x){return s?s(d,m):new Kl(m,x&&x.markersInheritOptions&&x)}function xh(s){return new oe(s[1],s[0],s[2])}function eu(s,d,m){for(var x=[],A=0,D=s.length,q;A<D;A++)q=d?eu(s[A],d-1,m):(m||xh)(s[A]),x.push(q);return x}function Ch(s,d){return s=le(s),s.alt!==void 0?[p(s.lng,d),p(s.lat,d),p(s.alt,d)]:[p(s.lng,d),p(s.lat,d)]}function tu(s,d,m,x){for(var A=[],D=0,q=s.length;D<q;D++)A.push(d?tu(s[D],zr(s[D])?0:d-1,m,x):Ch(s[D],x));return!d&&m&&A.length>0&&A.push(A[0].slice()),A}function va(s,d){return s.feature?i({},s.feature,{geometry:d}):ru(d)}function ru(s){return s.type==="Feature"||s.type==="FeatureCollection"?s:{type:"Feature",properties:{},geometry:s}}var Th={toGeoJSON:function(s){return va(this,{type:"Point",coordinates:Ch(this.getLatLng(),s)})}};Kl.include(Th),wh.include(Th),Ql.include(Th),Nn.include({toGeoJSON:function(s){var d=!zr(this._latlngs),m=tu(this._latlngs,d?1:0,!1,s);return va(this,{type:(d?"Multi":"")+"LineString",coordinates:m})}}),ga.include({toGeoJSON:function(s){var d=!zr(this._latlngs),m=d&&!zr(this._latlngs[0]),x=tu(this._latlngs,m?2:d?1:0,!0,s);return d||(x=[x]),va(this,{type:(m?"Multi":"")+"Polygon",coordinates:x})}}),pa.include({toMultiPoint:function(s){var d=[];return this.eachLayer(function(m){d.push(m.toGeoJSON(s).geometry.coordinates)}),va(this,{type:"MultiPoint",coordinates:d})},toGeoJSON:function(s){var d=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(d==="MultiPoint")return this.toMultiPoint(s);var m=d==="GeometryCollection",x=[];return this.eachLayer(function(A){if(A.toGeoJSON){var D=A.toGeoJSON(s);if(m)x.push(D.geometry);else{var q=ru(D);q.type==="FeatureCollection"?x.push.apply(x,q.features):x.push(q)}}}),m?va(this,{geometries:x,type:"GeometryCollection"}):{type:"FeatureCollection",features:x}}});function Sv(s,d){return new Ln(s,d)}var HE=Sv,nu=Jr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(s,d,m){this._url=s,this._bounds=re(d),v(this,m)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Be(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){xt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(s){return this.options.opacity=s,this._image&&this._updateOpacity(),this},setStyle:function(s){return s.opacity&&this.setOpacity(s.opacity),this},bringToFront:function(){return this._map&&ha(this._image),this},bringToBack:function(){return this._map&&fa(this._image),this},setUrl:function(s){return this._url=s,this._image&&(this._image.src=s),this},setBounds:function(s){return this._bounds=re(s),this._map&&this._reset(),this},getEvents:function(){var s={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var s=this._url.tagName==="IMG",d=this._image=s?this._url:qe("img");if(Be(d,"leaflet-image-layer"),this._zoomAnimated&&Be(d,"leaflet-zoom-animated"),this.options.className&&Be(d,this.options.className),d.onselectstart=f,d.onmousemove=f,d.onload=o(this.fire,this,"load"),d.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),s){this._url=d.src;return}d.src=this._url,d.alt=this.options.alt},_animateZoom:function(s){var d=this._map.getZoomScale(s.zoom),m=this._map._latLngBoundsToNewLayerBounds(this._bounds,s.zoom,s.center).min;Si(this._image,m,d)},_reset:function(){var s=this._image,d=new Y(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),m=d.getSize();zt(s,d.min),s.style.width=m.x+"px",s.style.height=m.y+"px"},_updateOpacity:function(){Fr(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 s=this.options.errorOverlayUrl;s&&this._url!==s&&(this._url=s,this._image.src=s)},getCenter:function(){return this._bounds.getCenter()}}),WE=function(s,d,m){return new nu(s,d,m)},Ev=nu.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var s=this._url.tagName==="VIDEO",d=this._image=s?this._url:qe("video");if(Be(d,"leaflet-image-layer"),this._zoomAnimated&&Be(d,"leaflet-zoom-animated"),this.options.className&&Be(d,this.options.className),d.onselectstart=f,d.onmousemove=f,d.onloadeddata=o(this.fire,this,"load"),s){for(var m=d.getElementsByTagName("source"),x=[],A=0;A<m.length;A++)x.push(m[A].src);this._url=m.length>0?x:[d.src];return}E(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var D=0;D<this._url.length;D++){var q=qe("source");q.src=this._url[D],d.appendChild(q)}}});function jE(s,d,m){return new Ev(s,d,m)}var Pv=nu.extend({_initImage:function(){var s=this._image=this._url;Be(s,"leaflet-image-layer"),this._zoomAnimated&&Be(s,"leaflet-zoom-animated"),this.options.className&&Be(s,this.options.className),s.onselectstart=f,s.onmousemove=f}});function VE(s,d,m){return new Pv(s,d,m)}var un=Jr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(s,d){s&&(s instanceof oe||E(s))?(this._latlng=le(s),v(this,d)):(v(this,s),this._source=d),this.options.content&&(this._content=this.options.content)},openOn:function(s){return s=arguments.length?s:this._source._map,s.hasLayer(this)||s.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(s){return this._map?this.close():(arguments.length?this._source=s:s=this._source,this._prepareOpen(),this.openOn(s._map)),this},onAdd:function(s){this._zoomAnimated=s._zoomAnimated,this._container||this._initLayout(),s._fadeAnimated&&Fr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),s._fadeAnimated&&Fr(this._container,1),this.bringToFront(),this.options.interactive&&(Be(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(s){s._fadeAnimated?(Fr(this._container,0),this._removeTimeout=setTimeout(o(xt,void 0,this._container),200)):xt(this._container),this.options.interactive&&(Dt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(s){return this._latlng=le(s),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(s){return this._content=s,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 s={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ha(this._container),this},bringToBack:function(){return this._map&&fa(this._container),this},_prepareOpen:function(s){var d=this._source;if(!d._map)return!1;if(d instanceof Dn){d=null;var m=this._source._layers;for(var x in m)if(m[x]._map){d=m[x];break}if(!d)return!1;this._source=d}if(!s)if(d.getCenter)s=d.getCenter();else if(d.getLatLng)s=d.getLatLng();else if(d.getBounds)s=d.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(s),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var s=this._contentNode,d=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof d=="string")s.innerHTML=d;else{for(;s.hasChildNodes();)s.removeChild(s.firstChild);s.appendChild(d)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var s=this._map.latLngToLayerPoint(this._latlng),d=F(this.options.offset),m=this._getAnchor();this._zoomAnimated?zt(this._container,s.add(m)):d=d.add(s).add(m);var x=this._containerBottom=-d.y,A=this._containerLeft=-Math.round(this._containerWidth/2)+d.x;this._container.style.bottom=x+"px",this._container.style.left=A+"px"}},_getAnchor:function(){return[0,0]}});Ye.include({_initOverlay:function(s,d,m,x){var A=d;return A instanceof s||(A=new s(x).setContent(d)),m&&A.setLatLng(m),A}}),Jr.include({_initOverlay:function(s,d,m,x){var A=m;return A instanceof s?(v(A,x),A._source=this):(A=d&&!x?d:new s(x,this),A.setContent(m)),A}});var iu=un.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(s){return s=arguments.length?s:this._source._map,!s.hasLayer(this)&&s._popup&&s._popup.options.autoClose&&s.removeLayer(s._popup),s._popup=this,un.prototype.openOn.call(this,s)},onAdd:function(s){un.prototype.onAdd.call(this,s),s.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Jn||this._source.on("preclick",Pi))},onRemove:function(s){un.prototype.onRemove.call(this,s),s.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Jn||this._source.off("preclick",Pi))},getEvents:function(){var s=un.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(s.preclick=this.close),this.options.keepInView&&(s.moveend=this._adjustPan),s},_initLayout:function(){var s="leaflet-popup",d=this._container=qe("div",s+" "+(this.options.className||"")+" leaflet-zoom-animated"),m=this._wrapper=qe("div",s+"-content-wrapper",d);if(this._contentNode=qe("div",s+"-content",m),Bo(d),fh(this._contentNode),Fe(d,"contextmenu",Pi),this._tipContainer=qe("div",s+"-tip-container",d),this._tip=qe("div",s+"-tip",this._tipContainer),this.options.closeButton){var x=this._closeButton=qe("a",s+"-close-button",d);x.setAttribute("role","button"),x.setAttribute("aria-label","Close popup"),x.href="#close",x.innerHTML='<span aria-hidden="true">&#215;</span>',Fe(x,"click",function(A){Jt(A),this.close()},this)}},_updateLayout:function(){var s=this._contentNode,d=s.style;d.width="",d.whiteSpace="nowrap";var m=s.offsetWidth;m=Math.min(m,this.options.maxWidth),m=Math.max(m,this.options.minWidth),d.width=m+1+"px",d.whiteSpace="",d.height="";var x=s.offsetHeight,A=this.options.maxHeight,D="leaflet-popup-scrolled";A&&x>A?(d.height=A+"px",Be(s,D)):Dt(s,D),this._containerWidth=this._container.offsetWidth},_animateZoom:function(s){var d=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center),m=this._getAnchor();zt(this._container,d.add(m))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var s=this._map,d=parseInt(Io(this._container,"marginBottom"),10)||0,m=this._container.offsetHeight+d,x=this._containerWidth,A=new U(this._containerLeft,-m-this._containerBottom);A._add(Ei(this._container));var D=s.layerPointToContainerPoint(A),q=F(this.options.autoPanPadding),ee=F(this.options.autoPanPaddingTopLeft||q),ae=F(this.options.autoPanPaddingBottomRight||q),he=s.getSize(),be=0,Ae=0;D.x+x+ae.x>he.x&&(be=D.x+x-he.x+ae.x),D.x-be-ee.x<0&&(be=D.x-ee.x),D.y+m+ae.y>he.y&&(Ae=D.y+m-he.y+ae.y),D.y-Ae-ee.y<0&&(Ae=D.y-ee.y),(be||Ae)&&(this.options.keepInView&&(this._autopanning=!0),s.fire("autopanstart").panBy([be,Ae]))}},_getAnchor:function(){return F(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),GE=function(s,d){return new iu(s,d)};Ye.mergeOptions({closePopupOnClick:!0}),Ye.include({openPopup:function(s,d,m){return this._initOverlay(iu,s,d,m).openOn(this),this},closePopup:function(s){return s=arguments.length?s:this._popup,s&&s.close(),this}}),Jr.include({bindPopup:function(s,d){return this._popup=this._initOverlay(iu,this._popup,s,d),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(s){return this._popup&&(this instanceof Dn||(this._popup._source=this),this._popup._prepareOpen(s||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(s){return this._popup&&this._popup.setContent(s),this},getPopup:function(){return this._popup},_openPopup:function(s){if(!(!this._popup||!this._map)){Ai(s);var d=s.layer||s.target;if(this._popup._source===d&&!(d instanceof Jn)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(s.latlng);return}this._popup._source=d,this.openPopup(s.latlng)}},_movePopup:function(s){this._popup.setLatLng(s.latlng)},_onKeyPress:function(s){s.originalEvent.keyCode===13&&this._openPopup(s)}});var au=un.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(s){un.prototype.onAdd.call(this,s),this.setOpacity(this.options.opacity),s.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(s){un.prototype.onRemove.call(this,s),s.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var s=un.prototype.getEvents.call(this);return this.options.permanent||(s.preclick=this.close),s},_initLayout:function(){var s="leaflet-tooltip",d=s+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=qe("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(s){var d,m,x=this._map,A=this._container,D=x.latLngToContainerPoint(x.getCenter()),q=x.layerPointToContainerPoint(s),ee=this.options.direction,ae=A.offsetWidth,he=A.offsetHeight,be=F(this.options.offset),Ae=this._getAnchor();ee==="top"?(d=ae/2,m=he):ee==="bottom"?(d=ae/2,m=0):ee==="center"?(d=ae/2,m=he/2):ee==="right"?(d=0,m=he/2):ee==="left"?(d=ae,m=he/2):q.x<D.x?(ee="right",d=0,m=he/2):(ee="left",d=ae+(be.x+Ae.x)*2,m=he/2),s=s.subtract(F(d,m,!0)).add(be).add(Ae),Dt(A,"leaflet-tooltip-right"),Dt(A,"leaflet-tooltip-left"),Dt(A,"leaflet-tooltip-top"),Dt(A,"leaflet-tooltip-bottom"),Be(A,"leaflet-tooltip-"+ee),zt(A,s)},_updatePosition:function(){var s=this._map.latLngToLayerPoint(this._latlng);this._setPosition(s)},setOpacity:function(s){this.options.opacity=s,this._container&&Fr(this._container,s)},_animateZoom:function(s){var d=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center);this._setPosition(d)},_getAnchor:function(){return F(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),UE=function(s,d){return new au(s,d)};Ye.include({openTooltip:function(s,d,m){return this._initOverlay(au,s,d,m).openOn(this),this},closeTooltip:function(s){return s.close(),this}}),Jr.include({bindTooltip:function(s,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(au,this._tooltip,s,d),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(s){if(!(!s&&this._tooltipHandlersAdded)){var d=s?"off":"on",m={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?m.add=this._openTooltip:(m.mouseover=this._openTooltip,m.mouseout=this.closeTooltip,m.click=this._openTooltip,this._map?this._addFocusListeners():m.add=this._addFocusListeners),this._tooltip.options.sticky&&(m.mousemove=this._moveTooltip),this[d](m),this._tooltipHandlersAdded=!s}},openTooltip:function(s){return this._tooltip&&(this instanceof Dn||(this._tooltip._source=this),this._tooltip._prepareOpen(s)&&(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(s){return this._tooltip&&this._tooltip.setContent(s),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(s){var d=typeof s.getElement=="function"&&s.getElement();d&&(Fe(d,"focus",function(){this._tooltip._source=s,this.openTooltip()},this),Fe(d,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(s){var d=typeof s.getElement=="function"&&s.getElement();d&&d.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(s){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var d=this;this._map.once("moveend",function(){d._openOnceFlag=!1,d._openTooltip(s)});return}this._tooltip._source=s.layer||s.target,this.openTooltip(this._tooltip.options.sticky?s.latlng:void 0)}},_moveTooltip:function(s){var d=s.latlng,m,x;this._tooltip.options.sticky&&s.originalEvent&&(m=this._map.mouseEventToContainerPoint(s.originalEvent),x=this._map.containerPointToLayerPoint(m),d=this._map.layerPointToLatLng(x)),this._tooltip.setLatLng(d)}});var Av=ma.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(s){var d=s&&s.tagName==="DIV"?s:document.createElement("div"),m=this.options;if(m.html instanceof Element?(Gl(d),d.appendChild(m.html)):d.innerHTML=m.html!==!1?m.html:"",m.bgPos){var x=F(m.bgPos);d.style.backgroundPosition=-x.x+"px "+-x.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});function YE(s){return new Av(s)}ma.Default=jo;var Vo=Jr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Se.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(s){v(this,s)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(s){s._addZoomLimit(this)},onRemove:function(s){this._removeAllTiles(),xt(this._container),s._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ha(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(fa(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(s){return this.options.opacity=s,this._updateOpacity(),this},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var s=this._clampZoom(this._map.getZoom());s!==this._tileZoom&&(this._tileZoom=s,this._updateLevels()),this._update()}return this},getEvents:function(){var s={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=c(this._onMoveEnd,this.options.updateInterval,this)),s.move=this._onMove),this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},createTile:function(){return document.createElement("div")},getTileSize:function(){var s=this.options.tileSize;return s instanceof U?s:new U(s,s)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(s){for(var d=this.getPane().children,m=-s(-1/0,1/0),x=0,A=d.length,D;x<A;x++)D=d[x].style.zIndex,d[x]!==this._container&&D&&(m=s(m,+D));isFinite(m)&&(this.options.zIndex=m+s(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Se.ielt9){Fr(this._container,this.options.opacity);var s=+new Date,d=!1,m=!1;for(var x in this._tiles){var A=this._tiles[x];if(!(!A.current||!A.loaded)){var D=Math.min(1,(s-A.loaded)/200);Fr(A.el,D),D<1?d=!0:(A.active?m=!0:this._onOpaqueTile(A),A.active=!0)}}m&&!this._noPrune&&this._pruneTiles(),d&&(O(this._fadeFrame),this._fadeFrame=Z(this._updateOpacity,this))}},_onOpaqueTile:f,_initContainer:function(){this._container||(this._container=qe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var s=this._tileZoom,d=this.options.maxZoom;if(s!==void 0){for(var m in this._levels)m=Number(m),this._levels[m].el.children.length||m===s?(this._levels[m].el.style.zIndex=d-Math.abs(s-m),this._onUpdateLevel(m)):(xt(this._levels[m].el),this._removeTilesAtZoom(m),this._onRemoveLevel(m),delete this._levels[m]);var x=this._levels[s],A=this._map;return x||(x=this._levels[s]={},x.el=qe("div","leaflet-tile-container leaflet-zoom-animated",this._container),x.el.style.zIndex=d,x.origin=A.project(A.unproject(A.getPixelOrigin()),s).round(),x.zoom=s,this._setZoomTransform(x,A.getCenter(),A.getZoom()),this._onCreateLevel(x)),this._level=x,x}},_onUpdateLevel:f,_onRemoveLevel:f,_onCreateLevel:f,_pruneTiles:function(){if(this._map){var s,d,m=this._map.getZoom();if(m>this.options.maxZoom||m<this.options.minZoom){this._removeAllTiles();return}for(s in this._tiles)d=this._tiles[s],d.retain=d.current;for(s in this._tiles)if(d=this._tiles[s],d.current&&!d.active){var x=d.coords;this._retainParent(x.x,x.y,x.z,x.z-5)||this._retainChildren(x.x,x.y,x.z,x.z+2)}for(s in this._tiles)this._tiles[s].retain||this._removeTile(s)}},_removeTilesAtZoom:function(s){for(var d in this._tiles)this._tiles[d].coords.z===s&&this._removeTile(d)},_removeAllTiles:function(){for(var s in this._tiles)this._removeTile(s)},_invalidateAll:function(){for(var s in this._levels)xt(this._levels[s].el),this._onRemoveLevel(Number(s)),delete this._levels[s];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(s,d,m,x){var A=Math.floor(s/2),D=Math.floor(d/2),q=m-1,ee=new U(+A,+D);ee.z=+q;var ae=this._tileCoordsToKey(ee),he=this._tiles[ae];return he&&he.active?(he.retain=!0,!0):(he&&he.loaded&&(he.retain=!0),q>x?this._retainParent(A,D,q,x):!1)},_retainChildren:function(s,d,m,x){for(var A=2*s;A<2*s+2;A++)for(var D=2*d;D<2*d+2;D++){var q=new U(A,D);q.z=m+1;var ee=this._tileCoordsToKey(q),ae=this._tiles[ee];if(ae&&ae.active){ae.retain=!0;continue}else ae&&ae.loaded&&(ae.retain=!0);m+1<x&&this._retainChildren(A,D,m+1,x)}},_resetView:function(s){var d=s&&(s.pinch||s.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),d,d)},_animateZoom:function(s){this._setView(s.center,s.zoom,!0,s.noUpdate)},_clampZoom:function(s){var d=this.options;return d.minNativeZoom!==void 0&&s<d.minNativeZoom?d.minNativeZoom:d.maxNativeZoom!==void 0&&d.maxNativeZoom<s?d.maxNativeZoom:s},_setView:function(s,d,m,x){var A=Math.round(d);this.options.maxZoom!==void 0&&A>this.options.maxZoom||this.options.minZoom!==void 0&&A<this.options.minZoom?A=void 0:A=this._clampZoom(A);var D=this.options.updateWhenZooming&&A!==this._tileZoom;(!x||D)&&(this._tileZoom=A,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),A!==void 0&&this._update(s),m||this._pruneTiles(),this._noPrune=!!m),this._setZoomTransforms(s,d)},_setZoomTransforms:function(s,d){for(var m in this._levels)this._setZoomTransform(this._levels[m],s,d)},_setZoomTransform:function(s,d,m){var x=this._map.getZoomScale(m,s.zoom),A=s.origin.multiplyBy(x).subtract(this._map._getNewPixelOrigin(d,m)).round();Se.any3d?Si(s.el,A,x):zt(s.el,A)},_resetGrid:function(){var s=this._map,d=s.options.crs,m=this._tileSize=this.getTileSize(),x=this._tileZoom,A=this._map.getPixelWorldBounds(this._tileZoom);A&&(this._globalTileRange=this._pxBoundsToTileRange(A)),this._wrapX=d.wrapLng&&!this.options.noWrap&&[Math.floor(s.project([0,d.wrapLng[0]],x).x/m.x),Math.ceil(s.project([0,d.wrapLng[1]],x).x/m.y)],this._wrapY=d.wrapLat&&!this.options.noWrap&&[Math.floor(s.project([d.wrapLat[0],0],x).y/m.x),Math.ceil(s.project([d.wrapLat[1],0],x).y/m.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(s){var d=this._map,m=d._animatingZoom?Math.max(d._animateToZoom,d.getZoom()):d.getZoom(),x=d.getZoomScale(m,this._tileZoom),A=d.project(s,this._tileZoom).floor(),D=d.getSize().divideBy(x*2);return new Y(A.subtract(D),A.add(D))},_update:function(s){var d=this._map;if(d){var m=this._clampZoom(d.getZoom());if(s===void 0&&(s=d.getCenter()),this._tileZoom!==void 0){var x=this._getTiledPixelBounds(s),A=this._pxBoundsToTileRange(x),D=A.getCenter(),q=[],ee=this.options.keepBuffer,ae=new Y(A.getBottomLeft().subtract([ee,-ee]),A.getTopRight().add([ee,-ee]));if(!(isFinite(A.min.x)&&isFinite(A.min.y)&&isFinite(A.max.x)&&isFinite(A.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var he in this._tiles){var be=this._tiles[he].coords;(be.z!==this._tileZoom||!ae.contains(new U(be.x,be.y)))&&(this._tiles[he].current=!1)}if(Math.abs(m-this._tileZoom)>1){this._setView(s,m);return}for(var Ae=A.min.y;Ae<=A.max.y;Ae++)for(var We=A.min.x;We<=A.max.x;We++){var sr=new U(We,Ae);if(sr.z=this._tileZoom,!!this._isValidTile(sr)){var Yt=this._tiles[this._tileCoordsToKey(sr)];Yt?Yt.current=!0:q.push(sr)}}if(q.sort(function(br,ba){return br.distanceTo(D)-ba.distanceTo(D)}),q.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Br=document.createDocumentFragment();for(We=0;We<q.length;We++)this._addTile(q[We],Br);this._level.el.appendChild(Br)}}}},_isValidTile:function(s){var d=this._map.options.crs;if(!d.infinite){var m=this._globalTileRange;if(!d.wrapLng&&(s.x<m.min.x||s.x>m.max.x)||!d.wrapLat&&(s.y<m.min.y||s.y>m.max.y))return!1}if(!this.options.bounds)return!0;var x=this._tileCoordsToBounds(s);return re(this.options.bounds).overlaps(x)},_keyToBounds:function(s){return this._tileCoordsToBounds(this._keyToTileCoords(s))},_tileCoordsToNwSe:function(s){var d=this._map,m=this.getTileSize(),x=s.scaleBy(m),A=x.add(m),D=d.unproject(x,s.z),q=d.unproject(A,s.z);return[D,q]},_tileCoordsToBounds:function(s){var d=this._tileCoordsToNwSe(s),m=new ie(d[0],d[1]);return this.options.noWrap||(m=this._map.wrapLatLngBounds(m)),m},_tileCoordsToKey:function(s){return s.x+":"+s.y+":"+s.z},_keyToTileCoords:function(s){var d=s.split(":"),m=new U(+d[0],+d[1]);return m.z=+d[2],m},_removeTile:function(s){var d=this._tiles[s];d&&(xt(d.el),delete this._tiles[s],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(s)}))},_initTile:function(s){Be(s,"leaflet-tile");var d=this.getTileSize();s.style.width=d.x+"px",s.style.height=d.y+"px",s.onselectstart=f,s.onmousemove=f,Se.ielt9&&this.options.opacity<1&&Fr(s,this.options.opacity)},_addTile:function(s,d){var m=this._getTilePos(s),x=this._tileCoordsToKey(s),A=this.createTile(this._wrapCoords(s),o(this._tileReady,this,s));this._initTile(A),this.createTile.length<2&&Z(o(this._tileReady,this,s,null,A)),zt(A,m),this._tiles[x]={el:A,coords:s,current:!0},d.appendChild(A),this.fire("tileloadstart",{tile:A,coords:s})},_tileReady:function(s,d,m){d&&this.fire("tileerror",{error:d,tile:m,coords:s});var x=this._tileCoordsToKey(s);m=this._tiles[x],m&&(m.loaded=+new Date,this._map._fadeAnimated?(Fr(m.el,0),O(this._fadeFrame),this._fadeFrame=Z(this._updateOpacity,this)):(m.active=!0,this._pruneTiles()),d||(Be(m.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:m.el,coords:s})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Se.ielt9||!this._map._fadeAnimated?Z(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(s){return s.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(s){var d=new U(this._wrapX?h(s.x,this._wrapX):s.x,this._wrapY?h(s.y,this._wrapY):s.y);return d.z=s.z,d},_pxBoundsToTileRange:function(s){var d=this.getTileSize();return new Y(s.min.unscaleBy(d).floor(),s.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var s in this._tiles)if(!this._tiles[s].loaded)return!1;return!0}});function qE(s){return new Vo(s)}var ya=Vo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(s,d){this._url=s,d=v(this,d),d.detectRetina&&Se.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(s,d){return this._url===s&&d===void 0&&(d=!0),this._url=s,d||this.redraw(),this},createTile:function(s,d){var m=document.createElement("img");return Fe(m,"load",o(this._tileOnLoad,this,d,m)),Fe(m,"error",o(this._tileOnError,this,d,m)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(m.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(m.referrerPolicy=this.options.referrerPolicy),m.alt="",m.src=this.getTileUrl(s),m},getTileUrl:function(s){var d={r:Se.retina?"@2x":"",s:this._getSubdomain(s),x:s.x,y:s.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var m=this._globalTileRange.max.y-s.y;this.options.tms&&(d.y=m),d["-y"]=m}return T(this._url,i(d,this.options))},_tileOnLoad:function(s,d){Se.ielt9?setTimeout(o(s,this,null,d),0):s(null,d)},_tileOnError:function(s,d,m){var x=this.options.errorTileUrl;x&&d.getAttribute("src")!==x&&(d.src=x),s(m,d)},_onTileRemove:function(s){s.tile.onload=null},_getZoomForUrl:function(){var s=this._tileZoom,d=this.options.maxZoom,m=this.options.zoomReverse,x=this.options.zoomOffset;return m&&(s=d-s),s+x},_getSubdomain:function(s){var d=Math.abs(s.x+s.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var s,d;for(s in this._tiles)if(this._tiles[s].coords.z!==this._tileZoom&&(d=this._tiles[s].el,d.onload=f,d.onerror=f,!d.complete)){d.src=P;var m=this._tiles[s].coords;xt(d),delete this._tiles[s],this.fire("tileabort",{tile:d,coords:m})}},_removeTile:function(s){var d=this._tiles[s];if(d)return d.el.setAttribute("src",P),Vo.prototype._removeTile.call(this,s)},_tileReady:function(s,d,m){if(!(!this._map||m&&m.getAttribute("src")===P))return Vo.prototype._tileReady.call(this,s,d,m)}});function Rv(s,d){return new ya(s,d)}var Ov=ya.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(s,d){this._url=s;var m=i({},this.defaultWmsParams);for(var x in d)x in this.options||(m[x]=d[x]);d=v(this,d);var A=d.detectRetina&&Se.retina?2:1,D=this.getTileSize();m.width=D.x*A,m.height=D.y*A,this.wmsParams=m},onAdd:function(s){this._crs=this.options.crs||s.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,ya.prototype.onAdd.call(this,s)},getTileUrl:function(s){var d=this._tileCoordsToNwSe(s),m=this._crs,x=ne(m.project(d[0]),m.project(d[1])),A=x.min,D=x.max,q=(this._wmsVersion>=1.3&&this._crs===Cv?[A.y,A.x,D.y,D.x]:[A.x,A.y,D.x,D.y]).join(","),ee=ya.prototype.getTileUrl.call(this,s);return ee+w(this.wmsParams,ee,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+q},setParams:function(s,d){return i(this.wmsParams,s),d||this.redraw(),this}});function XE(s,d){return new Ov(s,d)}ya.WMS=Ov,Rv.wms=XE;var In=Jr.extend({options:{padding:.1},initialize:function(s){v(this,s),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Be(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 s={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(s.zoomanim=this._onAnimZoom),s},_onAnimZoom:function(s){this._updateTransform(s.center,s.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(s,d){var m=this._map.getZoomScale(d,this._zoom),x=this._map.getSize().multiplyBy(.5+this.options.padding),A=this._map.project(this._center,d),D=x.multiplyBy(-m).add(A).subtract(this._map._getNewPixelOrigin(s,d));Se.any3d?Si(this._container,D,m):zt(this._container,D)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var s in this._layers)this._layers[s]._reset()},_onZoomEnd:function(){for(var s in this._layers)this._layers[s]._project()},_updatePaths:function(){for(var s in this._layers)this._layers[s]._update()},_update:function(){var s=this.options.padding,d=this._map.getSize(),m=this._map.containerPointToLayerPoint(d.multiplyBy(-s)).round();this._bounds=new Y(m,m.add(d.multiplyBy(1+s*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),kv=In.extend({options:{tolerance:0},getEvents:function(){var s=In.prototype.getEvents.call(this);return s.viewprereset=this._onViewPreReset,s},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){In.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var s=this._container=document.createElement("canvas");Fe(s,"mousemove",this._onMouseMove,this),Fe(s,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Fe(s,"mouseout",this._handleMouseOut,this),s._leaflet_disable_events=!0,this._ctx=s.getContext("2d")},_destroyContainer:function(){O(this._redrawRequest),delete this._ctx,xt(this._container),ut(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var s;this._redrawBounds=null;for(var d in this._layers)s=this._layers[d],s._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){In.prototype._update.call(this);var s=this._bounds,d=this._container,m=s.getSize(),x=Se.retina?2:1;zt(d,s.min),d.width=x*m.x,d.height=x*m.y,d.style.width=m.x+"px",d.style.height=m.y+"px",Se.retina&&this._ctx.scale(2,2),this._ctx.translate(-s.min.x,-s.min.y),this.fire("update")}},_reset:function(){In.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(s){this._updateDashArray(s),this._layers[u(s)]=s;var d=s._order={layer:s,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(s){this._requestRedraw(s)},_removePath:function(s){var d=s._order,m=d.next,x=d.prev;m?m.prev=x:this._drawLast=x,x?x.next=m:this._drawFirst=m,delete s._order,delete this._layers[u(s)],this._requestRedraw(s)},_updatePath:function(s){this._extendRedrawBounds(s),s._project(),s._update(),this._requestRedraw(s)},_updateStyle:function(s){this._updateDashArray(s),this._requestRedraw(s)},_updateDashArray:function(s){if(typeof s.options.dashArray=="string"){var d=s.options.dashArray.split(/[, ]+/),m=[],x,A;for(A=0;A<d.length;A++){if(x=Number(d[A]),isNaN(x))return;m.push(x)}s.options._dashArray=m}else s.options._dashArray=s.options.dashArray},_requestRedraw:function(s){this._map&&(this._extendRedrawBounds(s),this._redrawRequest=this._redrawRequest||Z(this._redraw,this))},_extendRedrawBounds:function(s){if(s._pxBounds){var d=(s.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Y,this._redrawBounds.extend(s._pxBounds.min.subtract([d,d])),this._redrawBounds.extend(s._pxBounds.max.add([d,d]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var s=this._redrawBounds;if(s){var d=s.getSize();this._ctx.clearRect(s.min.x,s.min.y,d.x,d.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var s,d=this._redrawBounds;if(this._ctx.save(),d){var m=d.getSize();this._ctx.beginPath(),this._ctx.rect(d.min.x,d.min.y,m.x,m.y),this._ctx.clip()}this._drawing=!0;for(var x=this._drawFirst;x;x=x.next)s=x.layer,(!d||s._pxBounds&&s._pxBounds.intersects(d))&&s._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(s,d){if(this._drawing){var m,x,A,D,q=s._parts,ee=q.length,ae=this._ctx;if(ee){for(ae.beginPath(),m=0;m<ee;m++){for(x=0,A=q[m].length;x<A;x++)D=q[m][x],ae[x?"lineTo":"moveTo"](D.x,D.y);d&&ae.closePath()}this._fillStroke(ae,s)}}},_updateCircle:function(s){if(!(!this._drawing||s._empty())){var d=s._point,m=this._ctx,x=Math.max(Math.round(s._radius),1),A=(Math.max(Math.round(s._radiusY),1)||x)/x;A!==1&&(m.save(),m.scale(1,A)),m.beginPath(),m.arc(d.x,d.y/A,x,0,Math.PI*2,!1),A!==1&&m.restore(),this._fillStroke(m,s)}},_fillStroke:function(s,d){var m=d.options;m.fill&&(s.globalAlpha=m.fillOpacity,s.fillStyle=m.fillColor||m.color,s.fill(m.fillRule||"evenodd")),m.stroke&&m.weight!==0&&(s.setLineDash&&s.setLineDash(d.options&&d.options._dashArray||[]),s.globalAlpha=m.opacity,s.lineWidth=m.weight,s.strokeStyle=m.color,s.lineCap=m.lineCap,s.lineJoin=m.lineJoin,s.stroke())},_onClick:function(s){for(var d=this._map.mouseEventToLayerPoint(s),m,x,A=this._drawFirst;A;A=A.next)m=A.layer,m.options.interactive&&m._containsPoint(d)&&(!(s.type==="click"||s.type==="preclick")||!this._map._draggableMoved(m))&&(x=m);this._fireEvent(x?[x]:!1,s)},_onMouseMove:function(s){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var d=this._map.mouseEventToLayerPoint(s);this._handleMouseHover(s,d)}},_handleMouseOut:function(s){var d=this._hoveredLayer;d&&(Dt(this._container,"leaflet-interactive"),this._fireEvent([d],s,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(s,d){if(!this._mouseHoverThrottled){for(var m,x,A=this._drawFirst;A;A=A.next)m=A.layer,m.options.interactive&&m._containsPoint(d)&&(x=m);x!==this._hoveredLayer&&(this._handleMouseOut(s),x&&(Be(this._container,"leaflet-interactive"),this._fireEvent([x],s,"mouseover"),this._hoveredLayer=x)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,s),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(s,d,m){this._map._fireDOMEvent(d,m||d.type,s)},_bringToFront:function(s){var d=s._order;if(d){var m=d.next,x=d.prev;if(m)m.prev=x;else return;x?x.next=m:m&&(this._drawFirst=m),d.prev=this._drawLast,this._drawLast.next=d,d.next=null,this._drawLast=d,this._requestRedraw(s)}},_bringToBack:function(s){var d=s._order;if(d){var m=d.next,x=d.prev;if(x)x.next=m;else return;m?m.prev=x:x&&(this._drawLast=x),d.prev=null,d.next=this._drawFirst,this._drawFirst.prev=d,this._drawFirst=d,this._requestRedraw(s)}}});function Dv(s){return Se.canvas?new kv(s):null}var Go=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(s){return document.createElement("<lvml:"+s+' class="lvml">')}}catch(s){}return function(s){return document.createElement("<"+s+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),ZE={_initContainer:function(){this._container=qe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(In.prototype._update.call(this),this.fire("update"))},_initPath:function(s){var d=s._container=Go("shape");Be(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",s._path=Go("path"),d.appendChild(s._path),this._updateStyle(s),this._layers[u(s)]=s},_addPath:function(s){var d=s._container;this._container.appendChild(d),s.options.interactive&&s.addInteractiveTarget(d)},_removePath:function(s){var d=s._container;xt(d),s.removeInteractiveTarget(d),delete this._layers[u(s)]},_updateStyle:function(s){var d=s._stroke,m=s._fill,x=s.options,A=s._container;A.stroked=!!x.stroke,A.filled=!!x.fill,x.stroke?(d||(d=s._stroke=Go("stroke")),A.appendChild(d),d.weight=x.weight+"px",d.color=x.color,d.opacity=x.opacity,x.dashArray?d.dashStyle=E(x.dashArray)?x.dashArray.join(" "):x.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=x.lineCap.replace("butt","flat"),d.joinstyle=x.lineJoin):d&&(A.removeChild(d),s._stroke=null),x.fill?(m||(m=s._fill=Go("fill")),A.appendChild(m),m.color=x.fillColor||x.color,m.opacity=x.fillOpacity):m&&(A.removeChild(m),s._fill=null)},_updateCircle:function(s){var d=s._point.round(),m=Math.round(s._radius),x=Math.round(s._radiusY||m);this._setPath(s,s._empty()?"M0 0":"AL "+d.x+","+d.y+" "+m+","+x+" 0,"+65535*360)},_setPath:function(s,d){s._path.v=d},_bringToFront:function(s){ha(s._container)},_bringToBack:function(s){fa(s._container)}},ou=Se.vml?Go:ke,Uo=In.extend({_initContainer:function(){this._container=ou("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ou("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){xt(this._container),ut(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){In.prototype._update.call(this);var s=this._bounds,d=s.getSize(),m=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,m.setAttribute("width",d.x),m.setAttribute("height",d.y)),zt(m,s.min),m.setAttribute("viewBox",[s.min.x,s.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(s){var d=s._path=ou("path");s.options.className&&Be(d,s.options.className),s.options.interactive&&Be(d,"leaflet-interactive"),this._updateStyle(s),this._layers[u(s)]=s},_addPath:function(s){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(s._path),s.addInteractiveTarget(s._path)},_removePath:function(s){xt(s._path),s.removeInteractiveTarget(s._path),delete this._layers[u(s)]},_updatePath:function(s){s._project(),s._update()},_updateStyle:function(s){var d=s._path,m=s.options;d&&(m.stroke?(d.setAttribute("stroke",m.color),d.setAttribute("stroke-opacity",m.opacity),d.setAttribute("stroke-width",m.weight),d.setAttribute("stroke-linecap",m.lineCap),d.setAttribute("stroke-linejoin",m.lineJoin),m.dashArray?d.setAttribute("stroke-dasharray",m.dashArray):d.removeAttribute("stroke-dasharray"),m.dashOffset?d.setAttribute("stroke-dashoffset",m.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),m.fill?(d.setAttribute("fill",m.fillColor||m.color),d.setAttribute("fill-opacity",m.fillOpacity),d.setAttribute("fill-rule",m.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(s,d){this._setPath(s,$e(s._parts,d))},_updateCircle:function(s){var d=s._point,m=Math.max(Math.round(s._radius),1),x=Math.max(Math.round(s._radiusY),1)||m,A="a"+m+","+x+" 0 1,0 ",D=s._empty()?"M0 0":"M"+(d.x-m)+","+d.y+A+m*2+",0 "+A+-m*2+",0 ";this._setPath(s,D)},_setPath:function(s,d){s._path.setAttribute("d",d)},_bringToFront:function(s){ha(s._path)},_bringToBack:function(s){fa(s._path)}});Se.vml&&Uo.include(ZE);function Nv(s){return Se.svg||Se.vml?new Uo(s):null}Ye.include({getRenderer:function(s){var d=s.options.renderer||this._getPaneRenderer(s.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d},_getPaneRenderer:function(s){if(s==="overlayPane"||s===void 0)return!1;var d=this._paneRenderers[s];return d===void 0&&(d=this._createRenderer({pane:s}),this._paneRenderers[s]=d),d},_createRenderer:function(s){return this.options.preferCanvas&&Dv(s)||Nv(s)}});var Lv=ga.extend({initialize:function(s,d){ga.prototype.initialize.call(this,this._boundsToLatLngs(s),d)},setBounds:function(s){return this.setLatLngs(this._boundsToLatLngs(s))},_boundsToLatLngs:function(s){return s=re(s),[s.getSouthWest(),s.getNorthWest(),s.getNorthEast(),s.getSouthEast()]}});function KE(s,d){return new Lv(s,d)}Uo.create=ou,Uo.pointsToPath=$e,Ln.geometryToLayer=Jl,Ln.coordsToLatLng=xh,Ln.coordsToLatLngs=eu,Ln.latLngToCoords=Ch,Ln.latLngsToCoords=tu,Ln.getFeature=va,Ln.asFeature=ru,Ye.mergeOptions({boxZoom:!0});var Iv=ln.extend({initialize:function(s){this._map=s,this._container=s._container,this._pane=s._panes.overlayPane,this._resetStateTimeout=0,s.on("unload",this._destroy,this)},addHooks:function(){Fe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ut(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){xt(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(s){if(!s.shiftKey||s.which!==1&&s.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),$o(),ah(),this._startPoint=this._map.mouseEventToContainerPoint(s),Fe(document,{contextmenu:Ai,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(s){this._moved||(this._moved=!0,this._box=qe("div","leaflet-zoom-box",this._container),Be(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(s);var d=new Y(this._point,this._startPoint),m=d.getSize();zt(this._box,d.min),this._box.style.width=m.x+"px",this._box.style.height=m.y+"px"},_finish:function(){this._moved&&(xt(this._box),Dt(this._container,"leaflet-crosshair")),Fo(),oh(),ut(document,{contextmenu:Ai,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(s){if(!(s.which!==1&&s.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var d=new ie(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(s){s.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ye.addInitHook("addHandler","boxZoom",Iv),Ye.mergeOptions({doubleClickZoom:!0});var $v=ln.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(s){var d=this._map,m=d.getZoom(),x=d.options.zoomDelta,A=s.originalEvent.shiftKey?m-x:m+x;d.options.doubleClickZoom==="center"?d.setZoom(A):d.setZoomAround(s.containerPoint,A)}});Ye.addInitHook("addHandler","doubleClickZoom",$v),Ye.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Fv=ln.extend({addHooks:function(){if(!this._draggable){var s=this._map;this._draggable=new Qn(s._mapPane,s._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),s.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),s.on("zoomend",this._onZoomEnd,this),s.whenReady(this._onZoomEnd,this))}Be(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Dt(this._map._container,"leaflet-grab"),Dt(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 s=this._map;if(s._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=re(this._map.options.maxBounds);this._offsetLimit=ne(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;s.fire("movestart").fire("dragstart"),s.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(s){if(this._map.options.inertia){var d=this._lastTime=+new Date,m=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(m),this._times.push(d),this._prunePositions(d)}this._map.fire("move",s).fire("drag",s)},_prunePositions:function(s){for(;this._positions.length>1&&s-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var s=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(s).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(s,d){return s-(s-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var s=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;s.x<d.min.x&&(s.x=this._viscousLimit(s.x,d.min.x)),s.y<d.min.y&&(s.y=this._viscousLimit(s.y,d.min.y)),s.x>d.max.x&&(s.x=this._viscousLimit(s.x,d.max.x)),s.y>d.max.y&&(s.y=this._viscousLimit(s.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(s)}},_onPreDragWrap:function(){var s=this._worldWidth,d=Math.round(s/2),m=this._initialWorldOffset,x=this._draggable._newPos.x,A=(x-d+m)%s+d-m,D=(x+d+m)%s-d-m,q=Math.abs(A+m)<Math.abs(D+m)?A:D;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=q},_onDragEnd:function(s){var d=this._map,m=d.options,x=!m.inertia||s.noInertia||this._times.length<2;if(d.fire("dragend",s),x)d.fire("moveend");else{this._prunePositions(+new Date);var A=this._lastPos.subtract(this._positions[0]),D=(this._lastTime-this._times[0])/1e3,q=m.easeLinearity,ee=A.multiplyBy(q/D),ae=ee.distanceTo([0,0]),he=Math.min(m.inertiaMaxSpeed,ae),be=ee.multiplyBy(he/ae),Ae=he/(m.inertiaDeceleration*q),We=be.multiplyBy(-Ae/2).round();!We.x&&!We.y?d.fire("moveend"):(We=d._limitOffset(We,d.options.maxBounds),Z(function(){d.panBy(We,{duration:Ae,easeLinearity:q,noMoveStart:!0,animate:!0})}))}}});Ye.addInitHook("addHandler","dragging",Fv),Ye.mergeOptions({keyboard:!0,keyboardPanDelta:80});var zv=ln.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(s){this._map=s,this._setPanDelta(s.options.keyboardPanDelta),this._setZoomDelta(s.options.zoomDelta)},addHooks:function(){var s=this._map._container;s.tabIndex<=0&&(s.tabIndex="0"),Fe(s,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),ut(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 s=document.body,d=document.documentElement,m=s.scrollTop||d.scrollTop,x=s.scrollLeft||d.scrollLeft;this._map._container.focus(),window.scrollTo(x,m)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(s){var d=this._panKeys={},m=this.keyCodes,x,A;for(x=0,A=m.left.length;x<A;x++)d[m.left[x]]=[-1*s,0];for(x=0,A=m.right.length;x<A;x++)d[m.right[x]]=[s,0];for(x=0,A=m.down.length;x<A;x++)d[m.down[x]]=[0,s];for(x=0,A=m.up.length;x<A;x++)d[m.up[x]]=[0,-1*s]},_setZoomDelta:function(s){var d=this._zoomKeys={},m=this.keyCodes,x,A;for(x=0,A=m.zoomIn.length;x<A;x++)d[m.zoomIn[x]]=s;for(x=0,A=m.zoomOut.length;x<A;x++)d[m.zoomOut[x]]=-s},_addHooks:function(){Fe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){ut(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(s){if(!(s.altKey||s.ctrlKey||s.metaKey)){var d=s.keyCode,m=this._map,x;if(d in this._panKeys){if(!m._panAnim||!m._panAnim._inProgress)if(x=this._panKeys[d],s.shiftKey&&(x=F(x).multiplyBy(3)),m.options.maxBounds&&(x=m._limitOffset(F(x),m.options.maxBounds)),m.options.worldCopyJump){var A=m.wrapLatLng(m.unproject(m.project(m.getCenter()).add(x)));m.panTo(A)}else m.panBy(x)}else if(d in this._zoomKeys)m.setZoom(m.getZoom()+(s.shiftKey?3:1)*this._zoomKeys[d]);else if(d===27&&m._popup&&m._popup.options.closeOnEscapeKey)m.closePopup();else return;Ai(s)}}});Ye.addInitHook("addHandler","keyboard",zv),Ye.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Bv=ln.extend({addHooks:function(){Fe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){ut(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(s){var d=cv(s),m=this._map.options.wheelDebounceTime;this._delta+=d,this._lastMousePos=this._map.mouseEventToContainerPoint(s),this._startTime||(this._startTime=+new Date);var x=Math.max(m-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),x),Ai(s)},_performZoom:function(){var s=this._map,d=s.getZoom(),m=this._map.options.zoomSnap||0;s._stop();var x=this._delta/(this._map.options.wheelPxPerZoomLevel*4),A=4*Math.log(2/(1+Math.exp(-Math.abs(x))))/Math.LN2,D=m?Math.ceil(A/m)*m:A,q=s._limitZoom(d+(this._delta>0?D:-D))-d;this._delta=0,this._startTime=null,q&&(s.options.scrollWheelZoom==="center"?s.setZoom(d+q):s.setZoomAround(this._lastMousePos,d+q))}});Ye.addInitHook("addHandler","scrollWheelZoom",Bv);var QE=600;Ye.mergeOptions({tapHold:Se.touchNative&&Se.safari&&Se.mobile,tapTolerance:15});var Hv=ln.extend({addHooks:function(){Fe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ut(this._map._container,"touchstart",this._onDown,this)},_onDown:function(s){if(clearTimeout(this._holdTimeout),s.touches.length===1){var d=s.touches[0];this._startPos=this._newPos=new U(d.clientX,d.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(Fe(document,"touchend",Jt),Fe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),QE),Fe(document,"touchend touchcancel contextmenu",this._cancel,this),Fe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function s(){ut(document,"touchend",Jt),ut(document,"touchend touchcancel",s)},_cancel:function(){clearTimeout(this._holdTimeout),ut(document,"touchend touchcancel contextmenu",this._cancel,this),ut(document,"touchmove",this._onMove,this)},_onMove:function(s){var d=s.touches[0];this._newPos=new U(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(s,d){var m=new MouseEvent(s,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});m._simulated=!0,d.target.dispatchEvent(m)}});Ye.addInitHook("addHandler","tapHold",Hv),Ye.mergeOptions({touchZoom:Se.touch,bounceAtZoomLimits:!0});var Wv=ln.extend({addHooks:function(){Be(this._map._container,"leaflet-touch-zoom"),Fe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Dt(this._map._container,"leaflet-touch-zoom"),ut(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(s){var d=this._map;if(!(!s.touches||s.touches.length!==2||d._animatingZoom||this._zooming)){var m=d.mouseEventToContainerPoint(s.touches[0]),x=d.mouseEventToContainerPoint(s.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(m.add(x)._divideBy(2))),this._startDist=m.distanceTo(x),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Fe(document,"touchmove",this._onTouchMove,this),Fe(document,"touchend touchcancel",this._onTouchEnd,this),Jt(s)}},_onTouchMove:function(s){if(!(!s.touches||s.touches.length!==2||!this._zooming)){var d=this._map,m=d.mouseEventToContainerPoint(s.touches[0]),x=d.mouseEventToContainerPoint(s.touches[1]),A=m.distanceTo(x)/this._startDist;if(this._zoom=d.getScaleZoom(A,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoom<d.getMinZoom()&&A<1||this._zoom>d.getMaxZoom()&&A>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,A===1)return}else{var D=m._add(x)._divideBy(2)._subtract(this._centerPoint);if(A===1&&D.x===0&&D.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract(D),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),O(this._animRequest);var q=o(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Z(q,this,!0),Jt(s)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,O(this._animRequest),ut(document,"touchmove",this._onTouchMove,this),ut(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))}});Ye.addInitHook("addHandler","touchZoom",Wv),Ye.BoxZoom=Iv,Ye.DoubleClickZoom=$v,Ye.Drag=Fv,Ye.Keyboard=zv,Ye.ScrollWheelZoom=Bv,Ye.TapHold=Hv,Ye.TouchZoom=Wv,r.Bounds=Y,r.Browser=Se,r.CRS=de,r.Canvas=kv,r.Circle=wh,r.CircleMarker=Ql,r.Class=X,r.Control=Qr,r.DivIcon=Av,r.DivOverlay=un,r.DomEvent=gE,r.DomUtil=pE,r.Draggable=Qn,r.Evented=H,r.FeatureGroup=Dn,r.GeoJSON=Ln,r.GridLayer=Vo,r.Handler=ln,r.Icon=ma,r.ImageOverlay=nu,r.LatLng=oe,r.LatLngBounds=ie,r.Layer=Jr,r.LayerGroup=pa,r.LineUtil=AE,r.Map=Ye,r.Marker=Kl,r.Mixin=CE,r.Path=Jn,r.Point=U,r.PolyUtil=TE,r.Polygon=ga,r.Polyline=Nn,r.Popup=iu,r.PosAnimation=dv,r.Projection=RE,r.Rectangle=Lv,r.Renderer=In,r.SVG=Uo,r.SVGOverlay=Pv,r.TileLayer=ya,r.Tooltip=au,r.Transformation=ye,r.Util=$,r.VideoOverlay=Ev,r.bind=o,r.bounds=ne,r.canvas=Dv,r.circle=FE,r.circleMarker=$E,r.control=Ho,r.divIcon=YE,r.extend=i,r.featureGroup=NE,r.geoJSON=Sv,r.geoJson=HE,r.gridLayer=qE,r.icon=LE,r.imageOverlay=WE,r.latLng=le,r.latLngBounds=re,r.layerGroup=DE,r.map=vE,r.marker=IE,r.point=F,r.polygon=BE,r.polyline=zE,r.popup=GE,r.rectangle=KE,r.setOptions=v,r.stamp=u,r.svg=Nv,r.svgOverlay=VE,r.tileLayer=Rv,r.tooltip=UE,r.transformation=J,r.version=n,r.videoOverlay=jE;var JE=window.L;r.noConflict=function(){return window.L=JE,this},window.L=r})})(Sp,Sp.exports);var Kw=Sp.exports;const Hn=y.getDefaultExportFromCjs(Kw);var Qw={exports:{}};function fF(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}var Yi=1,qi=2,Ya=3,pF=4,Ep=5,s1=6378137,mF=6356752314e-3,l1=.0066943799901413165,Cs=484813681109536e-20,pe=Math.PI/2,gF=.16666666666666666,vF=.04722222222222222,yF=.022156084656084655,ge=1e-10,rr=.017453292519943295,yn=57.29577951308232,Qe=Math.PI/4,Hs=Math.PI*2,Nt=3.14159265359,Mr={};Mr.greenwich=0;Mr.lisbon=-9.131906111111;Mr.paris=2.337229166667;Mr.bogota=-74.080916666667;Mr.madrid=-3.687938888889;Mr.rome=12.452333333333;Mr.bern=7.439583333333;Mr.jakarta=106.807719444444;Mr.ferro=-17.666666666667;Mr.brussels=4.367975;Mr.stockholm=18.058277777778;Mr.athens=23.7163375;Mr.oslo=10.722916666667;const bF={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var u1=/[\s_\-\/\(\)]/g;function mi(e,t){if(e[t])return e[t];for(var r=Object.keys(e),n=t.toLowerCase().replace(u1,""),i=-1,a,o;++i<r.length;)if(a=r[i],o=a.toLowerCase().replace(u1,""),o===n)return e[a]}function Pp(e){var t={},r=e.split("+").map(function(l){return l.trim()}).filter(function(l){return l}).reduce(function(l,u){var c=u.split("=");return c.push(!0),l[c[0].toLowerCase()]=c[1],l},{}),n,i,a,o={proj:"projName",datum:"datumCode",rf:function(l){t.rf=parseFloat(l)},lat_0:function(l){t.lat0=l*rr},lat_1:function(l){t.lat1=l*rr},lat_2:function(l){t.lat2=l*rr},lat_ts:function(l){t.lat_ts=l*rr},lon_0:function(l){t.long0=l*rr},lon_1:function(l){t.long1=l*rr},lon_2:function(l){t.long2=l*rr},alpha:function(l){t.alpha=parseFloat(l)*rr},gamma:function(l){t.rectified_grid_angle=parseFloat(l)},lonc:function(l){t.longc=l*rr},x_0:function(l){t.x0=parseFloat(l)},y_0:function(l){t.y0=parseFloat(l)},k_0:function(l){t.k0=parseFloat(l)},k:function(l){t.k0=parseFloat(l)},a:function(l){t.a=parseFloat(l)},b:function(l){t.b=parseFloat(l)},r:function(l){t.a=t.b=parseFloat(l)},r_a:function(){t.R_A=!0},zone:function(l){t.zone=parseInt(l,10)},south:function(){t.utmSouth=!0},towgs84:function(l){t.datum_params=l.split(",").map(function(u){return parseFloat(u)})},to_meter:function(l){t.to_meter=parseFloat(l)},units:function(l){t.units=l;var u=mi(bF,l);u&&(t.to_meter=u.to_meter)},from_greenwich:function(l){t.from_greenwich=l*rr},pm:function(l){var u=mi(Mr,l);t.from_greenwich=(u||parseFloat(l))*rr},nadgrids:function(l){l==="@null"?t.datumCode="none":t.nadgrids=l},axis:function(l){var u="ewnsud";l.length===3&&u.indexOf(l.substr(0,1))!==-1&&u.indexOf(l.substr(1,1))!==-1&&u.indexOf(l.substr(2,1))!==-1&&(t.axis=l)},approx:function(){t.approx=!0}};for(n in r)i=r[n],n in o?(a=o[n],typeof a=="function"?a(i):t[a]=i):t[n]=i;return typeof t.datumCode=="string"&&t.datumCode!=="WGS84"&&(t.datumCode=t.datumCode.toLowerCase()),t}var Ws=1,Jw=2,ex=3,dc=4,tx=5,D0=-1,_F=/\s/,wF=/[A-Za-z]/,xF=/[A-Za-z84_]/,rd=/[,\]]/,rx=/[\d\.E\-\+]/;function Xn(e){if(typeof e!="string")throw new Error("not a string");this.text=e.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=Ws}Xn.prototype.readCharicter=function(){var e=this.text[this.place++];if(this.state!==dc)for(;_F.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case Ws:return this.neutral(e);case Jw:return this.keyword(e);case dc:return this.quoted(e);case tx:return this.afterquote(e);case ex:return this.number(e);case D0:return}};Xn.prototype.afterquote=function(e){if(e==='"'){this.word+='"',this.state=dc;return}if(rd.test(e)){this.word=this.word.trim(),this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in afterquote yet, index '+this.place)};Xn.prototype.afterItem=function(e){if(e===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=Ws;return}if(e==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=Ws,this.currentObject=this.stack.pop(),this.currentObject||(this.state=D0);return}};Xn.prototype.number=function(e){if(rx.test(e)){this.word+=e;return}if(rd.test(e)){this.word=parseFloat(this.word),this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in number yet, index '+this.place)};Xn.prototype.quoted=function(e){if(e==='"'){this.state=tx;return}this.word+=e};Xn.prototype.keyword=function(e){if(xF.test(e)){this.word+=e;return}if(e==="["){var t=[];t.push(this.word),this.level++,this.root===null?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,this.state=Ws;return}if(rd.test(e)){this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in keyword yet, index '+this.place)};Xn.prototype.neutral=function(e){if(wF.test(e)){this.word=e,this.state=Jw;return}if(e==='"'){this.word="",this.state=dc;return}if(rx.test(e)){this.word=e,this.state=ex;return}if(rd.test(e)){this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in neutral yet, index '+this.place)};Xn.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(this.state===D0)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function CF(e){var t=new Xn(e);return t.output()}function c1(e,t,r){Array.isArray(t)&&(r.unshift(t),t=null);var n=t?{}:e,i=r.reduce(function(a,o){return za(o,a),a},n);t&&(e[t]=i)}function za(e,t){if(!Array.isArray(e)){t[e]=!0;return}var r=e.shift();if(r==="PARAMETER"&&(r=e.shift()),e.length===1){if(Array.isArray(e[0])){t[r]={},za(e[0],t[r]);return}t[r]=e[0];return}if(!e.length){t[r]=!0;return}if(r==="TOWGS84"){t[r]=e;return}if(r==="AXIS"){r in t||(t[r]=[]),t[r].push(e);return}Array.isArray(r)||(t[r]={});var n;switch(r){case"UNIT":case"PRIMEM":case"VERT_DATUM":t[r]={name:e[0].toLowerCase(),convert:e[1]},e.length===3&&za(e[2],t[r]);return;case"SPHEROID":case"ELLIPSOID":t[r]={name:e[0],a:e[1],rf:e[2]},e.length===4&&za(e[3],t[r]);return;case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":e[0]=["name",e[0]],c1(t,r,e);return;default:for(n=-1;++n<e.length;)if(!Array.isArray(e[n]))return za(e,t[r]);return c1(t,r,e)}}var TF=.017453292519943295;function MF(e,t){var r=t[0],n=t[1];!(r in e)&&n in e&&(e[r]=e[n],t.length===3&&(e[r]=t[2](e[r])))}function hn(e){return e*TF}function SF(e){if(e.type==="GEOGCS"?e.projName="longlat":e.type==="LOCAL_CS"?(e.projName="identity",e.local=!0):typeof e.PROJECTION=="object"?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var t="",r=0,n=e.AXIS.length;r<n;++r){var i=[e.AXIS[r][0].toLowerCase(),e.AXIS[r][1].toLowerCase()];i[0].indexOf("north")!==-1||(i[0]==="y"||i[0]==="lat")&&i[1]==="north"?t+="n":i[0].indexOf("south")!==-1||(i[0]==="y"||i[0]==="lat")&&i[1]==="south"?t+="s":i[0].indexOf("east")!==-1||(i[0]==="x"||i[0]==="lon")&&i[1]==="east"?t+="e":(i[0].indexOf("west")!==-1||(i[0]==="x"||i[0]==="lon")&&i[1]==="west")&&(t+="w")}t.length===2&&(t+="u"),t.length===3&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),e.units==="metre"&&(e.units="meter"),e.UNIT.convert&&(e.type==="GEOGCS"?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var a=e.GEOGCS;e.type==="GEOGCS"&&(a=e),a&&(a.DATUM?e.datumCode=a.DATUM.name.toLowerCase():e.datumCode=a.name.toLowerCase(),e.datumCode.slice(0,2)==="d_"&&(e.datumCode=e.datumCode.slice(2)),(e.datumCode==="new_zealand_geodetic_datum_1949"||e.datumCode==="new_zealand_1949")&&(e.datumCode="nzgd49"),(e.datumCode==="wgs_1984"||e.datumCode==="world_geodetic_system_1984")&&(e.PROJECTION==="Mercator_Auxiliary_Sphere"&&(e.sphere=!0),e.datumCode="wgs84"),e.datumCode.slice(-6)==="_ferro"&&(e.datumCode=e.datumCode.slice(0,-6)),e.datumCode.slice(-8)==="_jakarta"&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(e.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),e.ellps.toLowerCase().slice(0,13)==="international"&&(e.ellps="intl"),e.a=a.DATUM.SPHEROID.a,e.rf=parseFloat(a.DATUM.SPHEROID.rf,10)),a.DATUM&&a.DATUM.TOWGS84&&(e.datum_params=a.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),e.datumCode==="ch1903+"&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a);function o(c){var h=e.to_meter||1;return c*h}var l=function(c){return MF(e,c)},u=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",hn],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",hn],["x0","false_easting",o],["y0","false_northing",o],["long0","central_meridian",hn],["lat0","latitude_of_origin",hn],["lat0","standard_parallel_1",hn],["lat1","standard_parallel_1",hn],["lat2","standard_parallel_2",hn],["azimuth","Azimuth"],["alpha","azimuth",hn],["srsCode","name"]];u.forEach(l),!e.long0&&e.longc&&(e.projName==="Albers_Conic_Equal_Area"||e.projName==="Lambert_Azimuthal_Equal_Area")&&(e.long0=e.longc),!e.lat_ts&&e.lat1&&(e.projName==="Stereographic_South_Pole"||e.projName==="Polar Stereographic (variant B)")?(e.lat0=hn(e.lat1>0?90:-90),e.lat_ts=e.lat1):!e.lat_ts&&e.lat0&&e.projName==="Polar_Stereographic"&&(e.lat_ts=e.lat0,e.lat0=hn(e.lat0>0?90:-90))}function nx(e){var t=CF(e),r=t.shift(),n=t.shift();t.unshift(["name",n]),t.unshift(["type",r]);var i={};return za(t,i),SF(i),i}function dr(e){var t=this;if(arguments.length===2){var r=arguments[1];typeof r=="string"?r.charAt(0)==="+"?dr[e]=Pp(arguments[1]):dr[e]=nx(arguments[1]):dr[e]=r}else if(arguments.length===1){if(Array.isArray(e))return e.map(function(n){Array.isArray(n)?dr.apply(t,n):dr(n)});if(typeof e=="string"){if(e in dr)return dr[e]}else"EPSG"in e?dr["EPSG:"+e.EPSG]=e:"ESRI"in e?dr["ESRI:"+e.ESRI]=e:"IAU2000"in e?dr["IAU2000:"+e.IAU2000]=e:console.log(e);return}}fF(dr);function EF(e){return typeof e=="string"}function PF(e){return e in dr}var AF=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function RF(e){return AF.some(function(t){return e.indexOf(t)>-1})}var OF=["3857","900913","3785","102113"];function kF(e){var t=mi(e,"authority");if(t){var r=mi(t,"epsg");return r&&OF.indexOf(r)>-1}}function DF(e){var t=mi(e,"extension");if(t)return mi(t,"proj4")}function NF(e){return e[0]==="+"}function LF(e){if(EF(e)){if(PF(e))return dr[e];if(RF(e)){var t=nx(e);if(kF(t))return dr["EPSG:3857"];var r=DF(t);return r?Pp(r):t}if(NF(e))return Pp(e)}else return e}function d1(e,t){e=e||{};var r,n;if(!t)return e;for(n in t)r=t[n],r!==void 0&&(e[n]=r);return e}function Tn(e,t,r){var n=e*t;return r/Math.sqrt(1-n*n)}function gl(e){return e<0?-1:1}function _e(e){return Math.abs(e)<=Nt?e:e-gl(e)*Hs}function en(e,t,r){var n=e*r,i=.5*e;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(pe-t))/n}function js(e,t){for(var r=.5*e,n,i,a=pe-2*Math.atan(t),o=0;o<=15;o++)if(n=e*Math.sin(a),i=pe-2*Math.atan(t*Math.pow((1-n)/(1+n),r))-a,a+=i,Math.abs(i)<=1e-10)return a;return-9999}function IF(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=Tn(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function $F(e){var t=e.x,r=e.y;if(r*yn>90&&r*yn<-90&&t*yn>180&&t*yn<-180)return null;var n,i;if(Math.abs(Math.abs(r)-pe)<=ge)return null;if(this.sphere)n=this.x0+this.a*this.k0*_e(t-this.long0),i=this.y0+this.a*this.k0*Math.log(Math.tan(Qe+.5*r));else{var a=Math.sin(r),o=en(this.e,r,a);n=this.x0+this.a*this.k0*_e(t-this.long0),i=this.y0-this.a*this.k0*Math.log(o)}return e.x=n,e.y=i,e}function FF(e){var t=e.x-this.x0,r=e.y-this.y0,n,i;if(this.sphere)i=pe-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var a=Math.exp(-r/(this.a*this.k0));if(i=js(this.e,a),i===-9999)return null}return n=_e(this.long0+t/(this.a*this.k0)),e.x=n,e.y=i,e}var zF=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const BF={init:IF,forward:$F,inverse:FF,names:zF};function HF(){}function h1(e){return e}var WF=["longlat","identity"];const jF={init:HF,forward:h1,inverse:h1,names:WF};var VF=[BF,jF],$u={},hc=[];function ix(e,t){var r=hc.length;return e.names?(hc[r]=e,e.names.forEach(function(n){$u[n.toLowerCase()]=r}),this):(console.log(t),!0)}function GF(e){if(!e)return!1;var t=e.toLowerCase();if(typeof $u[t]!="undefined"&&hc[$u[t]])return hc[$u[t]]}function UF(){VF.forEach(ix)}const YF={start:UF,add:ix,get:GF};var Ne={};Ne.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};Ne.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};Ne.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};Ne.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};Ne.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};Ne.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};Ne.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};Ne.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};Ne.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};Ne.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};Ne.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};Ne.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};Ne.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};Ne.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};Ne.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};Ne.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"};Ne.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};Ne.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};Ne.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};Ne.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};Ne.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};Ne.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};Ne.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};Ne.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};Ne.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};Ne.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};Ne.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};Ne.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};Ne.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};Ne.hough={a:6378270,rf:297,ellipseName:"Hough"};Ne.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};Ne.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};Ne.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};Ne.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};Ne.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};Ne.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};Ne.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};Ne.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};Ne.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};Ne.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};Ne.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};Ne.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var qF=Ne.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Ne.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function XF(e,t,r,n){var i=e*e,a=t*t,o=(i-a)/i,l=0;n?(e*=1-o*(gF+o*(vF+o*yF)),i=e*e,o=0):l=Math.sqrt(o);var u=(i-a)/a;return{es:o,e:l,ep2:u}}function ZF(e,t,r,n,i){if(!e){var a=mi(Ne,n);a||(a=qF),e=a.a,t=a.b,r=a.rf}return r&&!t&&(t=(1-1/r)*e),(r===0||Math.abs(e-t)<ge)&&(i=!0,t=e),{a:e,b:t,rf:r,sphere:i}}var Ut={};Ut.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"};Ut.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"};Ut.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"};Ut.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"};Ut.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"};Ut.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"};Ut.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"};Ut.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"};Ut.militargeographische_institut={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"};Ut.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"};Ut.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"};Ut.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"};Ut.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"};Ut.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"};Ut.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"};Ut.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"};Ut.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"};Ut.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};function KF(e,t,r,n,i,a,o){var l={};return e===void 0||e==="none"?l.datum_type=Ep:l.datum_type=pF,t&&(l.datum_params=t.map(parseFloat),(l.datum_params[0]!==0||l.datum_params[1]!==0||l.datum_params[2]!==0)&&(l.datum_type=Yi),l.datum_params.length>3&&(l.datum_params[3]!==0||l.datum_params[4]!==0||l.datum_params[5]!==0||l.datum_params[6]!==0)&&(l.datum_type=qi,l.datum_params[3]*=Cs,l.datum_params[4]*=Cs,l.datum_params[5]*=Cs,l.datum_params[6]=l.datum_params[6]/1e6+1)),o&&(l.datum_type=Ya,l.grids=o),l.a=r,l.b=n,l.es=i,l.ep2=a,l}var ax={};function QF(e,t){var r=new DataView(t),n=t7(r),i=r7(r,n),a=n7(r,i,n),o={header:i,subgrids:a};return ax[e]=o,o}function JF(e){if(e===void 0)return null;var t=e.split(",");return t.map(e7)}function e7(e){if(e.length===0)return null;var t=e[0]==="@";return t&&(e=e.slice(1)),e==="null"?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:ax[e]||null,isNull:!1}}function Ba(e){return e/3600*Math.PI/180}function t7(e){var t=e.getInt32(8,!1);return t===11?!1:(t=e.getInt32(8,!0),t!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function r7(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:Ap(e,56,64).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}function Ap(e,t,r){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,r)))}function n7(e,t,r){for(var n=176,i=[],a=0;a<t.nSubgrids;a++){var o=a7(e,n,r),l=o7(e,n,o,r),u=Math.round(1+(o.upperLongitude-o.lowerLongitude)/o.longitudeInterval),c=Math.round(1+(o.upperLatitude-o.lowerLatitude)/o.latitudeInterval);i.push({ll:[Ba(o.lowerLongitude),Ba(o.lowerLatitude)],del:[Ba(o.longitudeInterval),Ba(o.latitudeInterval)],lim:[u,c],count:o.gridNodeCount,cvs:i7(l)}),n+=176+o.gridNodeCount*16}return i}function i7(e){return e.map(function(t){return[Ba(t.longitudeShift),Ba(t.latitudeShift)]})}function a7(e,t,r){return{name:Ap(e,t+8,t+16).trim(),parent:Ap(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,r),upperLatitude:e.getFloat64(t+88,r),lowerLongitude:e.getFloat64(t+104,r),upperLongitude:e.getFloat64(t+120,r),latitudeInterval:e.getFloat64(t+136,r),longitudeInterval:e.getFloat64(t+152,r),gridNodeCount:e.getInt32(t+168,r)}}function o7(e,t,r,n){for(var i=t+176,a=16,o=[],l=0;l<r.gridNodeCount;l++){var u={latitudeShift:e.getFloat32(i+l*a,n),longitudeShift:e.getFloat32(i+l*a+4,n),latitudeAccuracy:e.getFloat32(i+l*a+8,n),longitudeAccuracy:e.getFloat32(i+l*a+12,n)};o.push(u)}return o}function _n(e,t){if(!(this instanceof _n))return new _n(e);t=t||function(c){if(c)throw c};var r=LF(e);if(typeof r!="object"){t(e);return}var n=_n.projections.get(r.projName);if(!n){t(e);return}if(r.datumCode&&r.datumCode!=="none"){var i=mi(Ut,r.datumCode);i&&(r.datum_params=r.datum_params||(i.towgs84?i.towgs84.split(","):null),r.ellps=i.ellipse,r.datumName=i.datumName?i.datumName:r.datumCode)}r.k0=r.k0||1,r.axis=r.axis||"enu",r.ellps=r.ellps||"wgs84",r.lat1=r.lat1||r.lat0;var a=ZF(r.a,r.b,r.rf,r.ellps,r.sphere),o=XF(a.a,a.b,a.rf,r.R_A),l=JF(r.nadgrids),u=r.datum||KF(r.datumCode,r.datum_params,a.a,a.b,o.es,o.ep2,l);d1(this,r),d1(this,n),this.a=a.a,this.b=a.b,this.rf=a.rf,this.sphere=a.sphere,this.es=o.es,this.e=o.e,this.ep2=o.ep2,this.datum=u,this.init(),t(null,this)}_n.projections=YF;_n.projections.start();function s7(e,t){return e.datum_type!==t.datum_type||e.a!==t.a||Math.abs(e.es-t.es)>5e-11?!1:e.datum_type===Yi?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type===qi?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]:!0}function ox(e,t,r){var n=e.x,i=e.y,a=e.z?e.z:0,o,l,u,c;if(i<-pe&&i>-1.001*pe)i=-pe;else if(i>pe&&i<1.001*pe)i=pe;else{if(i<-pe)return{x:-1/0,y:-1/0,z:e.z};if(i>pe)return{x:1/0,y:1/0,z:e.z}}return n>Math.PI&&(n-=2*Math.PI),l=Math.sin(i),c=Math.cos(i),u=l*l,o=r/Math.sqrt(1-t*u),{x:(o+a)*c*Math.cos(n),y:(o+a)*c*Math.sin(n),z:(o*(1-t)+a)*l}}function sx(e,t,r,n){var i=1e-12,a=i*i,o=30,l,u,c,h,f,p,g,b,v,w,C,T,E,S=e.x,P=e.y,R=e.z?e.z:0,N,W,G;if(l=Math.sqrt(S*S+P*P),u=Math.sqrt(S*S+P*P+R*R),l/r<i){if(N=0,u/r<i)return W=pe,G=-n,{x:e.x,y:e.y,z:e.z}}else N=Math.atan2(P,S);c=R/u,h=l/u,f=1/Math.sqrt(1-t*(2-t)*h*h),b=h*(1-t)*f,v=c*f,E=0;do E++,g=r/Math.sqrt(1-t*v*v),G=l*b+R*v-g*(1-t*v*v),p=t*g/(g+G),f=1/Math.sqrt(1-p*(2-p)*h*h),w=h*(1-p)*f,C=c*f,T=C*b-w*v,b=w,v=C;while(T*T>a&&E<o);return W=Math.atan(C/Math.abs(w)),{x:N,y:W,z:G}}function l7(e,t,r){if(t===Yi)return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]};if(t===qi){var n=r[0],i=r[1],a=r[2],o=r[3],l=r[4],u=r[5],c=r[6];return{x:c*(e.x-u*e.y+l*e.z)+n,y:c*(u*e.x+e.y-o*e.z)+i,z:c*(-l*e.x+o*e.y+e.z)+a}}}function u7(e,t,r){if(t===Yi)return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]};if(t===qi){var n=r[0],i=r[1],a=r[2],o=r[3],l=r[4],u=r[5],c=r[6],h=(e.x-n)/c,f=(e.y-i)/c,p=(e.z-a)/c;return{x:h+u*f-l*p,y:-u*h+f+o*p,z:l*h-o*f+p}}}function pu(e){return e===Yi||e===qi}function c7(e,t,r){if(s7(e,t)||e.datum_type===Ep||t.datum_type===Ep)return r;var n=e.a,i=e.es;if(e.datum_type===Ya){var a=f1(e,!1,r);if(a!==0)return;n=s1,i=l1}var o=t.a,l=t.b,u=t.es;if(t.datum_type===Ya&&(o=s1,l=mF,u=l1),i===u&&n===o&&!pu(e.datum_type)&&!pu(t.datum_type))return r;if(r=ox(r,i,n),pu(e.datum_type)&&(r=l7(r,e.datum_type,e.datum_params)),pu(t.datum_type)&&(r=u7(r,t.datum_type,t.datum_params)),r=sx(r,u,o,l),t.datum_type===Ya){var c=f1(t,!0,r);if(c!==0)return}return r}function f1(e,t,r){if(e.grids===null||e.grids.length===0)return console.log("Grid shift grids not found"),-1;var n={x:-r.x,y:r.y},i={x:Number.NaN,y:Number.NaN},a=[];e:for(var o=0;o<e.grids.length;o++){var l=e.grids[o];if(a.push(l.name),l.isNull){i=n;break}if(l.grid===null){if(l.mandatory)return console.log("Unable to find mandatory grid '"+l.name+"'"),-1;continue}for(var u=l.grid.subgrids,c=0,h=u.length;c<h;c++){var f=u[c],p=(Math.abs(f.del[1])+Math.abs(f.del[0]))/1e4,g=f.ll[0]-p,b=f.ll[1]-p,v=f.ll[0]+(f.lim[0]-1)*f.del[0]+p,w=f.ll[1]+(f.lim[1]-1)*f.del[1]+p;if(!(b>n.y||g>n.x||w<n.y||v<n.x)&&(i=d7(n,t,f),!isNaN(i.x)))break e}}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-n.x*yn+" "+n.y*yn+" tried: '"+a+"'"),-1):(r.x=-i.x,r.y=i.y,0)}function d7(e,t,r){var n={x:Number.NaN,y:Number.NaN};if(isNaN(e.x))return n;var i={x:e.x,y:e.y};i.x-=r.ll[0],i.y-=r.ll[1],i.x=_e(i.x-Math.PI)+Math.PI;var a=p1(i,r);if(t){if(isNaN(a.x))return n;a.x=i.x-a.x,a.y=i.y-a.y;var o=9,l=1e-12,u,c;do{if(c=p1(a,r),isNaN(c.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}u={x:i.x-(c.x+a.x),y:i.y-(c.y+a.y)},a.x+=u.x,a.y+=u.y}while(o--&&Math.abs(u.x)>l&&Math.abs(u.y)>l);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=_e(a.x+r.ll[0]),n.y=a.y+r.ll[1]}else isNaN(a.x)||(n.x=e.x+a.x,n.y=e.y+a.y);return n}function p1(e,t){var r={x:e.x/t.del[0],y:e.y/t.del[1]},n={x:Math.floor(r.x),y:Math.floor(r.y)},i={x:r.x-1*n.x,y:r.y-1*n.y},a={x:Number.NaN,y:Number.NaN},o;if(n.x<0||n.x>=t.lim[0]||n.y<0||n.y>=t.lim[1])return a;o=n.y*t.lim[0]+n.x;var l={x:t.cvs[o][0],y:t.cvs[o][1]};o++;var u={x:t.cvs[o][0],y:t.cvs[o][1]};o+=t.lim[0];var c={x:t.cvs[o][0],y:t.cvs[o][1]};o--;var h={x:t.cvs[o][0],y:t.cvs[o][1]},f=i.x*i.y,p=i.x*(1-i.y),g=(1-i.x)*(1-i.y),b=(1-i.x)*i.y;return a.x=g*l.x+p*u.x+b*h.x+f*c.x,a.y=g*l.y+p*u.y+b*h.y+f*c.y,a}function m1(e,t,r){var n=r.x,i=r.y,a=r.z||0,o,l,u,c={};for(u=0;u<3;u++)if(!(t&&u===2&&r.z===void 0))switch(u===0?(o=n,"ew".indexOf(e.axis[u])!==-1?l="x":l="y"):u===1?(o=i,"ns".indexOf(e.axis[u])!==-1?l="y":l="x"):(o=a,l="z"),e.axis[u]){case"e":c[l]=o;break;case"w":c[l]=-o;break;case"n":c[l]=o;break;case"s":c[l]=-o;break;case"u":r[l]!==void 0&&(c.z=o);break;case"d":r[l]!==void 0&&(c.z=-o);break;default:return null}return c}function lx(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}function h7(e){g1(e.x),g1(e.y)}function g1(e){if(typeof Number.isFinite=="function"){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if(typeof e!="number"||e!==e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function f7(e,t){return(e.datum.datum_type===Yi||e.datum.datum_type===qi||e.datum.datum_type===Ya)&&t.datumCode!=="WGS84"||(t.datum.datum_type===Yi||t.datum.datum_type===qi||t.datum.datum_type===Ya)&&e.datumCode!=="WGS84"}function fc(e,t,r,n){var i;Array.isArray(r)?r=lx(r):r={x:r.x,y:r.y,z:r.z,m:r.m};var a=r.z!==void 0;if(h7(r),e.datum&&t.datum&&f7(e,t)&&(i=new _n("WGS84"),r=fc(e,i,r,n),e=i),n&&e.axis!=="enu"&&(r=m1(e,!1,r)),e.projName==="longlat")r={x:r.x*rr,y:r.y*rr,z:r.z||0};else if(e.to_meter&&(r={x:r.x*e.to_meter,y:r.y*e.to_meter,z:r.z||0}),r=e.inverse(r),!r)return;if(e.from_greenwich&&(r.x+=e.from_greenwich),r=c7(e.datum,t.datum,r),!!r)return t.from_greenwich&&(r={x:r.x-t.from_greenwich,y:r.y,z:r.z||0}),t.projName==="longlat"?r={x:r.x*yn,y:r.y*yn,z:r.z||0}:(r=t.forward(r),t.to_meter&&(r={x:r.x/t.to_meter,y:r.y/t.to_meter,z:r.z||0})),n&&t.axis!=="enu"?m1(t,!0,r):(r&&!a&&delete r.z,r)}var v1=_n("WGS84");function Gh(e,t,r,n){var i,a,o;return Array.isArray(r)?(i=fc(e,t,r,n)||{x:NaN,y:NaN},r.length>2?typeof e.name!="undefined"&&e.name==="geocent"||typeof t.name!="undefined"&&t.name==="geocent"?typeof i.z=="number"?[i.x,i.y,i.z].concat(r.splice(3)):[i.x,i.y,r[2]].concat(r.splice(3)):[i.x,i.y].concat(r.splice(2)):[i.x,i.y]):(a=fc(e,t,r,n),o=Object.keys(r),o.length===2||o.forEach(function(l){if(typeof e.name!="undefined"&&e.name==="geocent"||typeof t.name!="undefined"&&t.name==="geocent"){if(l==="x"||l==="y"||l==="z")return}else if(l==="x"||l==="y")return;a[l]=r[l]}),a)}function y1(e){return e instanceof _n?e:e.oProj?e.oProj:_n(e)}function kr(e,t,r){e=y1(e);var n=!1,i;return typeof t=="undefined"?(t=e,e=v1,n=!0):(typeof t.x!="undefined"||Array.isArray(t))&&(r=t,t=e,e=v1,n=!0),t=y1(t),r?Gh(e,t,r):(i={forward:function(a,o){return Gh(e,t,a,o)},inverse:function(a,o){return Gh(t,e,a,o)}},n&&(i.oProj=t),i)}var b1=6,ux="AJSAJS",cx="AFAFAF",Ha=65,wr=73,Hr=79,fs=86,ps=90;const p7={forward:dx,inverse:m7,toPoint:hx};function dx(e,t){return t=t||5,y7(g7({lat:e[1],lon:e[0]}),t)}function m7(e){var t=N0(px(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]}function hx(e){var t=N0(px(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function Uh(e){return e*(Math.PI/180)}function _1(e){return 180*(e/Math.PI)}function g7(e){var t=e.lat,r=e.lon,n=6378137,i=.00669438,a=.9996,o,l,u,c,h,f,p,g=Uh(t),b=Uh(r),v,w;w=Math.floor((r+180)/6)+1,r===180&&(w=60),t>=56&&t<64&&r>=3&&r<12&&(w=32),t>=72&&t<84&&(r>=0&&r<9?w=31:r>=9&&r<21?w=33:r>=21&&r<33?w=35:r>=33&&r<42&&(w=37)),o=(w-1)*6-180+3,v=Uh(o),l=i/(1-i),u=n/Math.sqrt(1-i*Math.sin(g)*Math.sin(g)),c=Math.tan(g)*Math.tan(g),h=l*Math.cos(g)*Math.cos(g),f=Math.cos(g)*(b-v),p=n*((1-i/4-3*i*i/64-5*i*i*i/256)*g-(3*i/8+3*i*i/32+45*i*i*i/1024)*Math.sin(2*g)+(15*i*i/256+45*i*i*i/1024)*Math.sin(4*g)-35*i*i*i/3072*Math.sin(6*g));var C=a*u*(f+(1-c+h)*f*f*f/6+(5-18*c+c*c+72*h-58*l)*f*f*f*f*f/120)+5e5,T=a*(p+u*Math.tan(g)*(f*f/2+(5-c+9*h+4*h*h)*f*f*f*f/24+(61-58*c+c*c+600*h-330*l)*f*f*f*f*f*f/720));return t<0&&(T+=1e7),{northing:Math.round(T),easting:Math.round(C),zoneNumber:w,zoneLetter:v7(t)}}function N0(e){var t=e.northing,r=e.easting,n=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var a=.9996,o=6378137,l=.00669438,u,c=(1-Math.sqrt(1-l))/(1+Math.sqrt(1-l)),h,f,p,g,b,v,w,C,T,E=r-5e5,S=t;n<"N"&&(S-=1e7),w=(i-1)*6-180+3,u=l/(1-l),v=S/a,C=v/(o*(1-l/4-3*l*l/64-5*l*l*l/256)),T=C+(3*c/2-27*c*c*c/32)*Math.sin(2*C)+(21*c*c/16-55*c*c*c*c/32)*Math.sin(4*C)+151*c*c*c/96*Math.sin(6*C),h=o/Math.sqrt(1-l*Math.sin(T)*Math.sin(T)),f=Math.tan(T)*Math.tan(T),p=u*Math.cos(T)*Math.cos(T),g=o*(1-l)/Math.pow(1-l*Math.sin(T)*Math.sin(T),1.5),b=E/(h*a);var P=T-h*Math.tan(T)/g*(b*b/2-(5+3*f+10*p-4*p*p-9*u)*b*b*b*b/24+(61+90*f+298*p+45*f*f-252*u-3*p*p)*b*b*b*b*b*b/720);P=_1(P);var R=(b-(1+2*f+p)*b*b*b/6+(5-2*p+28*f-3*p*p+8*u+24*f*f)*b*b*b*b*b/120)/Math.cos(T);R=w+_1(R);var N;if(e.accuracy){var W=N0({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});N={top:W.lat,right:W.lon,bottom:P,left:R}}else N={lat:P,lon:R};return N}function v7(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function y7(e,t){var r="00000"+e.easting,n="00000"+e.northing;return e.zoneNumber+e.zoneLetter+b7(e.easting,e.northing,e.zoneNumber)+r.substr(r.length-5,t)+n.substr(n.length-5,t)}function b7(e,t,r){var n=fx(r),i=Math.floor(e/1e5),a=Math.floor(t/1e5)%20;return _7(i,a,n)}function fx(e){var t=e%b1;return t===0&&(t=b1),t}function _7(e,t,r){var n=r-1,i=ux.charCodeAt(n),a=cx.charCodeAt(n),o=i+e-1,l=a+t,u=!1;o>ps&&(o=o-ps+Ha-1,u=!0),(o===wr||i<wr&&o>wr||(o>wr||i<wr)&&u)&&o++,(o===Hr||i<Hr&&o>Hr||(o>Hr||i<Hr)&&u)&&(o++,o===wr&&o++),o>ps&&(o=o-ps+Ha-1),l>fs?(l=l-fs+Ha-1,u=!0):u=!1,(l===wr||a<wr&&l>wr||(l>wr||a<wr)&&u)&&l++,(l===Hr||a<Hr&&l>Hr||(l>Hr||a<Hr)&&u)&&(l++,l===wr&&l++),l>fs&&(l=l-fs+Ha-1);var c=String.fromCharCode(o)+String.fromCharCode(l);return c}function px(e){if(e&&e.length===0)throw"MGRSPoint coverting from nothing";for(var t=e.length,r=null,n="",i,a=0;!/[A-Z]/.test(i=e.charAt(a));){if(a>=2)throw"MGRSPoint bad conversion from: "+e;n+=i,a++}var o=parseInt(n,10);if(a===0||a+3>t)throw"MGRSPoint bad conversion from: "+e;var l=e.charAt(a++);if(l<="A"||l==="B"||l==="Y"||l>="Z"||l==="I"||l==="O")throw"MGRSPoint zone letter "+l+" not handled: "+e;r=e.substring(a,a+=2);for(var u=fx(o),c=w7(r.charAt(0),u),h=x7(r.charAt(1),u);h<C7(l);)h+=2e6;var f=t-a;if(f%2!==0)throw`MGRSPoint has to have an even number
189
+ of digits after the zone letter and two 100km letters - front
190
+ half for easting meters, second half for
191
+ northing meters`+e;var p=f/2,g=0,b=0,v,w,C,T,E;return p>0&&(v=1e5/Math.pow(10,p),w=e.substring(a,a+p),g=parseFloat(w)*v,C=e.substring(a+p),b=parseFloat(C)*v),T=g+c,E=b+h,{easting:T,northing:E,zoneLetter:l,zoneNumber:o,accuracy:v}}function w7(e,t){for(var r=ux.charCodeAt(t-1),n=1e5,i=!1;r!==e.charCodeAt(0);){if(r++,r===wr&&r++,r===Hr&&r++,r>ps){if(i)throw"Bad character: "+e;r=Ha,i=!0}n+=1e5}return n}function x7(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var r=cx.charCodeAt(t-1),n=0,i=!1;r!==e.charCodeAt(0);){if(r++,r===wr&&r++,r===Hr&&r++,r>fs){if(i)throw"Bad character: "+e;r=Ha,i=!0}n+=1e5}return n}function C7(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function eo(e,t,r){if(!(this instanceof eo))return new eo(e,t,r);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if(typeof e=="object")this.x=e.x,this.y=e.y,this.z=e.z||0;else if(typeof e=="string"&&typeof t=="undefined"){var n=e.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=e,this.y=t,this.z=r||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}eo.fromMGRS=function(e){return new eo(hx(e))};eo.prototype.toMGRS=function(e){return dx([this.x,this.y],e)};var T7=1,M7=.25,w1=.046875,x1=.01953125,C1=.01068115234375,S7=.75,E7=.46875,P7=.013020833333333334,A7=.007120768229166667,R7=.3645833333333333,O7=.005696614583333333,k7=.3076171875;function mx(e){var t=[];t[0]=T7-e*(M7+e*(w1+e*(x1+e*C1))),t[1]=e*(S7-e*(w1+e*(x1+e*C1)));var r=e*e;return t[2]=r*(E7-e*(P7+e*A7)),r*=e,t[3]=r*(R7-e*O7),t[4]=r*e*k7,t}function nd(e,t,r,n){return r*=t,t*=t,n[0]*e-r*(n[1]+t*(n[2]+t*(n[3]+t*n[4])))}var D7=20;function gx(e,t,r){for(var n=1/(1-t),i=e,a=D7;a;--a){var o=Math.sin(i),l=1-t*o*o;if(l=(nd(i,o,Math.cos(i),r)-e)*(l*Math.sqrt(l))*n,i-=l,Math.abs(l)<ge)return i}return i}function N7(){this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.es&&(this.en=mx(this.es),this.ml0=nd(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function L7(e){var t=e.x,r=e.y,n=_e(t-this.long0),i,a,o,l=Math.sin(r),u=Math.cos(r);if(this.es){var h=u*n,f=Math.pow(h,2),p=this.ep2*Math.pow(u,2),g=Math.pow(p,2),b=Math.abs(u)>ge?Math.tan(r):0,v=Math.pow(b,2),w=Math.pow(v,2);i=1-this.es*Math.pow(l,2),h=h/Math.sqrt(i);var C=nd(r,l,u,this.en);a=this.a*(this.k0*h*(1+f/6*(1-v+p+f/20*(5-18*v+w+14*p-58*v*p+f/42*(61+179*w-w*v-479*v)))))+this.x0,o=this.a*(this.k0*(C-this.ml0+l*n*h/2*(1+f/12*(5-v+9*p+4*g+f/30*(61+w-58*v+270*p-330*v*p+f/56*(1385+543*w-w*v-3111*v))))))+this.y0}else{var c=u*Math.sin(n);if(Math.abs(Math.abs(c)-1)<ge)return 93;if(a=.5*this.a*this.k0*Math.log((1+c)/(1-c))+this.x0,o=u*Math.cos(n)/Math.sqrt(1-Math.pow(c,2)),c=Math.abs(o),c>=1){if(c-1>ge)return 93;o=0}else o=Math.acos(o);r<0&&(o=-o),o=this.a*this.k0*(o-this.lat0)+this.y0}return e.x=a,e.y=o,e}function I7(e){var t,r,n,i,a=(e.x-this.x0)*(1/this.a),o=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+o/this.k0,r=gx(t,this.es,this.en),Math.abs(r)<pe){var f=Math.sin(r),p=Math.cos(r),g=Math.abs(p)>ge?Math.tan(r):0,b=this.ep2*Math.pow(p,2),v=Math.pow(b,2),w=Math.pow(g,2),C=Math.pow(w,2);t=1-this.es*Math.pow(f,2);var T=a*Math.sqrt(t)/this.k0,E=Math.pow(T,2);t=t*g,n=r-t*E/(1-this.es)*.5*(1-E/12*(5+3*w-9*b*w+b-4*v-E/30*(61+90*w-252*b*w+45*C+46*b-E/56*(1385+3633*w+4095*C+1574*C*w)))),i=_e(this.long0+T*(1-E/6*(1+2*w+b-E/20*(5+28*w+24*C+8*b*w+6*b-E/42*(61+662*w+1320*C+720*C*w))))/p)}else n=pe*gl(o),i=0;else{var l=Math.exp(a/this.k0),u=.5*(l-1/l),c=this.lat0+o/this.k0,h=Math.cos(c);t=Math.sqrt((1-Math.pow(h,2))/(1+Math.pow(u,2))),n=Math.asin(t),o<0&&(n=-n),u===0&&h===0?i=0:i=_e(Math.atan2(u,h)+this.long0)}return e.x=i,e.y=n,e}var $7=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const Fu={init:N7,forward:L7,inverse:I7,names:$7};function vx(e){var t=Math.exp(e);return t=(t-1/t)/2,t}function Gr(e,t){e=Math.abs(e),t=Math.abs(t);var r=Math.max(e,t),n=Math.min(e,t)/(r||1);return r*Math.sqrt(1+Math.pow(n,2))}function F7(e){var t=1+e,r=t-1;return r===0?e:e*Math.log(t)/r}function z7(e){var t=Math.abs(e);return t=F7(t*(1+t/(Gr(1,t)+1))),e<0?-t:t}function L0(e,t){for(var r=2*Math.cos(2*t),n=e.length-1,i=e[n],a=0,o;--n>=0;)o=-a+r*i+e[n],a=i,i=o;return t+o*Math.sin(2*t)}function B7(e,t){for(var r=2*Math.cos(t),n=e.length-1,i=e[n],a=0,o;--n>=0;)o=-a+r*i+e[n],a=i,i=o;return Math.sin(t)*o}function H7(e){var t=Math.exp(e);return t=(t+1/t)/2,t}function yx(e,t,r){for(var n=Math.sin(t),i=Math.cos(t),a=vx(r),o=H7(r),l=2*i*o,u=-2*n*a,c=e.length-1,h=e[c],f=0,p=0,g=0,b,v;--c>=0;)b=p,v=f,p=h,f=g,h=-b+l*p-u*f+e[c],g=-v+u*p+l*f;return l=n*o,u=i*a,[l*h-u*g,l*g+u*h]}function W7(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Fu.init.apply(this),this.forward=Fu.forward,this.inverse=Fu.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),r=t;this.cgb[0]=t*(2+t*(-2/3+t*(-2+t*(116/45+t*(26/45+t*(-2854/675)))))),this.cbg[0]=t*(-2+t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))),r=r*t,this.cgb[1]=r*(7/3+t*(-8/5+t*(-227/45+t*(2704/315+t*(2323/945))))),this.cbg[1]=r*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),r=r*t,this.cgb[2]=r*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=r*(-26/15+t*(34/21+t*(8/5+t*(-12686/2835)))),r=r*t,this.cgb[3]=r*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=r*(1237/630+t*(-12/5+t*(-24832/14175))),r=r*t,this.cgb[4]=r*(4174/315+t*(-144838/6237)),this.cbg[4]=r*(-734/315+t*(109598/31185)),r=r*t,this.cgb[5]=r*(601676/22275),this.cbg[5]=r*(444337/155925),r=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+r*(1/4+r*(1/64+r/256))),this.utg[0]=t*(-.5+t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=r*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=r*(13/48+t*(-3/5+t*(557/1440+t*(281/630+t*(-1983433/1935360))))),r=r*t,this.utg[2]=r*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=r*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),r=r*t,this.utg[3]=r*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=r*(49561/161280+t*(-179/168+t*(6601661/7257600))),r=r*t,this.utg[4]=r*(-4583/161280+t*(108847/3991680)),this.gtu[4]=r*(34729/80640+t*(-3418889/1995840)),r=r*t,this.utg[5]=r*(-20648693/638668800),this.gtu[5]=r*(212378941/319334400);var n=L0(this.cbg,this.lat0);this.Zb=-this.Qn*(n+B7(this.gtu,2*n))}function j7(e){var t=_e(e.x-this.long0),r=e.y;r=L0(this.cbg,r);var n=Math.sin(r),i=Math.cos(r),a=Math.sin(t),o=Math.cos(t);r=Math.atan2(n,o*i),t=Math.atan2(a*i,Gr(n,i*o)),t=z7(Math.tan(t));var l=yx(this.gtu,2*r,2*t);r=r+l[0],t=t+l[1];var u,c;return Math.abs(t)<=2.623395162778?(u=this.a*(this.Qn*t)+this.x0,c=this.a*(this.Qn*r+this.Zb)+this.y0):(u=1/0,c=1/0),e.x=u,e.y=c,e}function V7(e){var t=(e.x-this.x0)*(1/this.a),r=(e.y-this.y0)*(1/this.a);r=(r-this.Zb)/this.Qn,t=t/this.Qn;var n,i;if(Math.abs(t)<=2.623395162778){var a=yx(this.utg,2*r,2*t);r=r+a[0],t=t+a[1],t=Math.atan(vx(t));var o=Math.sin(r),l=Math.cos(r),u=Math.sin(t),c=Math.cos(t);r=Math.atan2(o*c,Gr(u,c*l)),t=Math.atan2(u,c*l),n=_e(t+this.long0),i=L0(this.cgb,r)}else n=1/0,i=1/0;return e.x=n,e.y=i,e}var G7=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"];const zu={init:W7,forward:j7,inverse:V7,names:G7};function U7(e,t){if(e===void 0){if(e=Math.floor((_e(t)+Math.PI)*30/Math.PI)+1,e<0)return 0;if(e>60)return 60}return e}var Y7="etmerc";function q7(){var e=U7(this.zone,this.long0);if(e===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*rr,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,zu.init.apply(this),this.forward=zu.forward,this.inverse=zu.inverse}var X7=["Universal Transverse Mercator System","utm"];const Z7={init:q7,names:X7,dependsOn:Y7};function I0(e,t){return Math.pow((1-e)/(1+e),t)}var K7=20;function Q7(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+Qe)/(Math.pow(Math.tan(.5*this.lat0+Qe),this.C)*I0(this.e*e,this.ratexp))}function J7(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+Qe),this.C)*I0(this.e*Math.sin(r),this.ratexp))-pe,e.x=this.C*t,e}function e9(e){for(var t=1e-14,r=e.x/this.C,n=e.y,i=Math.pow(Math.tan(.5*n+Qe)/this.K,1/this.C),a=K7;a>0&&(n=2*Math.atan(i*I0(this.e*Math.sin(e.y),-.5*this.e))-pe,!(Math.abs(n-e.y)<t));--a)e.y=n;return a?(e.x=r,e.y=n,e):null}var t9=["gauss"];const $0={init:Q7,forward:J7,inverse:e9,names:t9};function r9(){$0.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function n9(e){var t,r,n,i;return e.x=_e(e.x-this.long0),$0.forward.apply(this,[e]),t=Math.sin(e.y),r=Math.cos(e.y),n=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*r*n),e.x=i*r*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*r*n),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function i9(e){var t,r,n,i,a;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,a=Gr(e.x,e.y)){var o=2*Math.atan2(a,this.R2);t=Math.sin(o),r=Math.cos(o),i=Math.asin(r*this.sinc0+e.y*t*this.cosc0/a),n=Math.atan2(e.x*t,a*this.cosc0*r-e.y*this.sinc0*t)}else i=this.phic0,n=0;return e.x=n,e.y=i,$0.inverse.apply(this,[e]),e.x=_e(e.x+this.long0),e}var a9=["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"];const o9={init:r9,forward:n9,inverse:i9,names:a9};function s9(e,t,r){return t*=r,Math.tan(.5*(pe+e))*Math.pow((1-t)/(1+t),.5*r)}function l9(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=ge&&(this.k0=.5*(1+gl(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=ge&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=ge&&Math.abs(Math.cos(this.lat_ts))>ge&&(this.k0=.5*this.cons*Tn(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/en(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Tn(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-pe,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function u9(e){var t=e.x,r=e.y,n=Math.sin(r),i=Math.cos(r),a,o,l,u,c,h,f=_e(t-this.long0);return Math.abs(Math.abs(t-this.long0)-Math.PI)<=ge&&Math.abs(r+this.lat0)<=ge?(e.x=NaN,e.y=NaN,e):this.sphere?(a=2*this.k0/(1+this.sinlat0*n+this.coslat0*i*Math.cos(f)),e.x=this.a*a*i*Math.sin(f)+this.x0,e.y=this.a*a*(this.coslat0*n-this.sinlat0*i*Math.cos(f))+this.y0,e):(o=2*Math.atan(this.ssfn_(r,n,this.e))-pe,u=Math.cos(o),l=Math.sin(o),Math.abs(this.coslat0)<=ge?(c=en(this.e,r*this.con,this.con*n),h=2*this.a*this.k0*c/this.cons,e.x=this.x0+h*Math.sin(t-this.long0),e.y=this.y0-this.con*h*Math.cos(t-this.long0),e):(Math.abs(this.sinlat0)<ge?(a=2*this.a*this.k0/(1+u*Math.cos(f)),e.y=a*l):(a=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*l+this.cosX0*u*Math.cos(f))),e.y=a*(this.cosX0*l-this.sinX0*u*Math.cos(f))+this.y0),e.x=a*u*Math.sin(f)+this.x0,e))}function c9(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,i,a,o=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var l=2*Math.atan(o/(2*this.a*this.k0));return t=this.long0,r=this.lat0,o<=ge?(e.x=t,e.y=r,e):(r=Math.asin(Math.cos(l)*this.sinlat0+e.y*Math.sin(l)*this.coslat0/o),Math.abs(this.coslat0)<ge?this.lat0>0?t=_e(this.long0+Math.atan2(e.x,-1*e.y)):t=_e(this.long0+Math.atan2(e.x,e.y)):t=_e(this.long0+Math.atan2(e.x*Math.sin(l),o*this.coslat0*Math.cos(l)-e.y*this.sinlat0*Math.sin(l))),e.x=t,e.y=r,e)}else if(Math.abs(this.coslat0)<=ge){if(o<=ge)return r=this.lat0,t=this.long0,e.x=t,e.y=r,e;e.x*=this.con,e.y*=this.con,n=o*this.cons/(2*this.a*this.k0),r=this.con*js(this.e,n),t=this.con*_e(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else i=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,o<=ge?a=this.X0:(a=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/o),t=_e(this.long0+Math.atan2(e.x*Math.sin(i),o*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)))),r=-1*js(this.e,Math.tan(.5*(pe+a)));return e.x=t,e.y=r,e}var d9=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"];const h9={init:l9,forward:u9,inverse:c9,names:d9,ssfn_:s9};function f9(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),r=this.a,n=this.rf,i=1/n,a=2*i-Math.pow(i,2),o=this.e=Math.sqrt(a);this.R=this.k0*r*Math.sqrt(1-a)/(1-a*Math.pow(t,2)),this.alpha=Math.sqrt(1+a/(1-a)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var l=Math.log(Math.tan(Math.PI/4+this.b0/2)),u=Math.log(Math.tan(Math.PI/4+e/2)),c=Math.log((1+o*t)/(1-o*t));this.K=l-this.alpha*u+this.alpha*o/2*c}function p9(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),r=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),n=-this.alpha*(t+r)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),a=this.alpha*(e.x-this.lambda0),o=Math.atan(Math.sin(a)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(a))),l=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(a));return e.y=this.R/2*Math.log((1+Math.sin(l))/(1-Math.sin(l)))+this.y0,e.x=this.R*o+this.x0,e}function m9(e){for(var t=e.x-this.x0,r=e.y-this.y0,n=t/this.R,i=2*(Math.atan(Math.exp(r/this.R))-Math.PI/4),a=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),o=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),l=this.lambda0+o/this.alpha,u=0,c=a,h=-1e3,f=0;Math.abs(c-h)>1e-7;){if(++f>20)return;u=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(c))/2)),h=c,c=2*Math.atan(Math.exp(u))-Math.PI/2}return e.x=l,e.y=c,e}var g9=["somerc"];const v9={init:f9,forward:p9,inverse:m9,names:g9};var Na=1e-7;function y9(e){var t=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],r=typeof e.PROJECTION=="object"?Object.keys(e.PROJECTION)[0]:e.PROJECTION;return"no_uoff"in e||"no_off"in e||t.indexOf(r)!==-1}function b9(){var e,t,r,n,i,a,o,l,u,c,h=0,f,p=0,g=0,b=0,v=0,w=0,C=0;this.no_off=y9(this),this.no_rot="no_rot"in this;var T=!1;"alpha"in this&&(T=!0);var E=!1;if("rectified_grid_angle"in this&&(E=!0),T&&(C=this.alpha),E&&(h=this.rectified_grid_angle*rr),T||E)p=this.longc;else if(g=this.long1,v=this.lat1,b=this.long2,w=this.lat2,Math.abs(v-w)<=Na||(e=Math.abs(v))<=Na||Math.abs(e-pe)<=Na||Math.abs(Math.abs(this.lat0)-pe)<=Na||Math.abs(Math.abs(w)-pe)<=Na)throw new Error;var S=1-this.es;t=Math.sqrt(S),Math.abs(this.lat0)>ge?(l=Math.sin(this.lat0),r=Math.cos(this.lat0),e=1-this.es*l*l,this.B=r*r,this.B=Math.sqrt(1+this.es*this.B*this.B/S),this.A=this.B*this.k0*t/e,n=this.B*t/(r*Math.sqrt(e)),i=n*n-1,i<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=n,this.E*=Math.pow(en(this.e,this.lat0,l),this.B)):(this.B=1/t,this.A=this.k0,this.E=n=i=1),T||E?(T?(f=Math.asin(Math.sin(C)/n),E||(h=C)):(f=h,C=Math.asin(n*Math.sin(f))),this.lam0=p-Math.asin(.5*(i-1/i)*Math.tan(f))/this.B):(a=Math.pow(en(this.e,v,Math.sin(v)),this.B),o=Math.pow(en(this.e,w,Math.sin(w)),this.B),i=this.E/a,u=(o-a)/(o+a),c=this.E*this.E,c=(c-o*a)/(c+o*a),e=g-b,e<-Math.pi?b-=Hs:e>Math.pi&&(b+=Hs),this.lam0=_e(.5*(g+b)-Math.atan(c*Math.tan(.5*this.B*(g-b))/u)/this.B),f=Math.atan(2*Math.sin(this.B*_e(g-this.lam0))/(i-1/i)),h=C=Math.asin(n*Math.sin(f))),this.singam=Math.sin(f),this.cosgam=Math.cos(f),this.sinrot=Math.sin(h),this.cosrot=Math.cos(h),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(C))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*f,this.v_pole_n=this.ArB*Math.log(Math.tan(Qe-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(Qe+i))}function _9(e){var t={},r,n,i,a,o,l,u,c;if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-pe)>ge){if(o=this.E/Math.pow(en(this.e,e.y,Math.sin(e.y)),this.B),l=1/o,r=.5*(o-l),n=.5*(o+l),a=Math.sin(this.B*e.x),i=(r*this.singam-a*this.cosgam)/n,Math.abs(Math.abs(i)-1)<ge)throw new Error;c=.5*this.ArB*Math.log((1-i)/(1+i)),l=Math.cos(this.B*e.x),Math.abs(l)<Na?u=this.A*e.x:u=this.ArB*Math.atan2(r*this.cosgam+a*this.singam,l)}else c=e.y>0?this.v_pole_n:this.v_pole_s,u=this.ArB*e.y;return this.no_rot?(t.x=u,t.y=c):(u-=this.u_0,t.x=c*this.cosrot+u*this.sinrot,t.y=u*this.cosrot-c*this.sinrot),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function w9(e){var t,r,n,i,a,o,l,u={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(r=e.y,t=e.x):(r=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),n=Math.exp(-this.BrA*r),i=.5*(n-1/n),a=.5*(n+1/n),o=Math.sin(this.BrA*t),l=(o*this.cosgam+i*this.singam)/a,Math.abs(Math.abs(l)-1)<ge)u.x=0,u.y=l<0?-pe:pe;else{if(u.y=this.E/Math.sqrt((1+l)/(1-l)),u.y=js(this.e,Math.pow(u.y,1/this.B)),u.y===1/0)throw new Error;u.x=-this.rB*Math.atan2(i*this.cosgam-o*this.singam,Math.cos(this.BrA*t))}return u.x+=this.lam0,u}var x9=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"];const C9={init:b9,forward:_9,inverse:w9,names:x9};function T9(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<ge)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),r=Math.cos(this.lat1),n=Tn(this.e,t,r),i=en(this.e,this.lat1,t),a=Math.sin(this.lat2),o=Math.cos(this.lat2),l=Tn(this.e,a,o),u=en(this.e,this.lat2,a),c=en(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>ge?this.ns=Math.log(n/l)/Math.log(i/u):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function M9(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=ge&&(r=gl(r)*(pe-2*ge));var n=Math.abs(Math.abs(r)-pe),i,a;if(n>ge)i=en(this.e,r,Math.sin(r)),a=this.a*this.f0*Math.pow(i,this.ns);else{if(n=r*this.ns,n<=0)return null;a=0}var o=this.ns*_e(t-this.long0);return e.x=this.k0*(a*Math.sin(o))+this.x0,e.y=this.k0*(this.rh-a*Math.cos(o))+this.y0,e}function S9(e){var t,r,n,i,a,o=(e.x-this.x0)/this.k0,l=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(o*o+l*l),r=1):(t=-Math.sqrt(o*o+l*l),r=-1);var u=0;if(t!==0&&(u=Math.atan2(r*o,r*l)),t!==0||this.ns>0){if(r=1/this.ns,n=Math.pow(t/(this.a*this.f0),r),i=js(this.e,n),i===-9999)return null}else i=-pe;return a=_e(u/this.ns+this.long0),e.x=a,e.y=i,e}var E9=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"];const P9={init:T9,forward:M9,inverse:S9,names:E9};function A9(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function R9(e){var t,r,n,i,a,o,l,u=e.x,c=e.y,h=_e(u-this.long0);return t=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),r=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/t)-this.s45),n=-h*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(n)),a=Math.asin(Math.cos(r)*Math.sin(n)/Math.cos(i)),o=this.n*a,l=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=l*Math.cos(o)/1,e.x=l*Math.sin(o)/1,this.czech||(e.y*=-1,e.x*=-1),e}function O9(e){var t,r,n,i,a,o,l,u,c=e.x;e.x=e.y,e.y=c,this.czech||(e.y*=-1,e.x*=-1),o=Math.sqrt(e.x*e.x+e.y*e.y),a=Math.atan2(e.y,e.x),i=a/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),r=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(t)),e.x=this.long0-r/this.alfa,l=t,u=0;var h=0;do e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.e/2))-this.s45),Math.abs(l-e.y)<1e-10&&(u=1),l=e.y,h+=1;while(u===0&&h<15);return h>=15?null:e}var k9=["Krovak","krovak"];const D9={init:A9,forward:R9,inverse:O9,names:k9};function pr(e,t,r,n,i){return e*i-t*Math.sin(2*i)+r*Math.sin(4*i)-n*Math.sin(6*i)}function vl(e){return 1-.25*e*(1+e/16*(3+1.25*e))}function yl(e){return .375*e*(1+.25*e*(1+.46875*e))}function bl(e){return .05859375*e*e*(1+.75*e)}function _l(e){return e*e*e*(35/3072)}function to(e,t,r){var n=t*r;return e/Math.sqrt(1-n*n)}function mo(e){return Math.abs(e)<pe?e:e-gl(e)*Math.PI}function pc(e,t,r,n,i){var a,o;a=e/t;for(var l=0;l<15;l++)if(o=(e-(t*a-r*Math.sin(2*a)+n*Math.sin(4*a)-i*Math.sin(6*a)))/(t-2*r*Math.cos(2*a)+4*n*Math.cos(4*a)-6*i*Math.cos(6*a)),a+=o,Math.abs(o)<=1e-10)return a;return NaN}function N9(){this.sphere||(this.e0=vl(this.es),this.e1=yl(this.es),this.e2=bl(this.es),this.e3=_l(this.es),this.ml0=this.a*pr(this.e0,this.e1,this.e2,this.e3,this.lat0))}function L9(e){var t,r,n=e.x,i=e.y;if(n=_e(n-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(i)*Math.sin(n)),r=this.a*(Math.atan2(Math.tan(i),Math.cos(n))-this.lat0);else{var a=Math.sin(i),o=Math.cos(i),l=to(this.a,this.e,a),u=Math.tan(i)*Math.tan(i),c=n*Math.cos(i),h=c*c,f=this.es*o*o/(1-this.es),p=this.a*pr(this.e0,this.e1,this.e2,this.e3,i);t=l*c*(1-h*u*(1/6-(8-u+8*f)*h/120)),r=p-this.ml0+l*a/o*h*(.5+(5-u+6*f)*h/24)}return e.x=t+this.x0,e.y=r+this.y0,e}function I9(e){e.x-=this.x0,e.y-=this.y0;var t=e.x/this.a,r=e.y/this.a,n,i;if(this.sphere){var a=r+this.lat0;n=Math.asin(Math.sin(a)*Math.cos(t)),i=Math.atan2(Math.tan(t),Math.cos(a))}else{var o=this.ml0/this.a+r,l=pc(o,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(l)-pe)<=ge)return e.x=this.long0,e.y=pe,r<0&&(e.y*=-1),e;var u=to(this.a,this.e,Math.sin(l)),c=u*u*u/this.a/this.a*(1-this.es),h=Math.pow(Math.tan(l),2),f=t*this.a/u,p=f*f;n=l-u*Math.tan(l)/c*f*f*(.5-(1+3*h)*f*f/24),i=f*(1-p*(h/3+(1+3*h)*h*p/15))/Math.cos(l)}return e.x=_e(i+this.long0),e.y=mo(n),e}var $9=["Cassini","Cassini_Soldner","cass"];const F9={init:N9,forward:L9,inverse:I9,names:$9};function si(e,t){var r;return e>1e-7?(r=e*t,(1-e*e)*(t/(1-r*r)-.5/e*Math.log((1-r)/(1+r)))):2*t}var z9=1,B9=2,H9=3,W9=4;function j9(){var e=Math.abs(this.lat0);if(Math.abs(e-pe)<ge?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(e)<ge?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0){var t;switch(this.qp=si(this.e,1),this.mmf=.5/(1-this.es),this.apa=Q9(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=si(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function V9(e){var t,r,n,i,a,o,l,u,c,h,f=e.x,p=e.y;if(f=_e(f-this.long0),this.sphere){if(a=Math.sin(p),h=Math.cos(p),n=Math.cos(f),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(r=this.mode===this.EQUIT?1+h*n:1+this.sinph0*a+this.cosph0*h*n,r<=ge)return null;r=Math.sqrt(2/r),t=r*h*Math.sin(f),r*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*h*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(p+this.lat0)<ge)return null;r=Qe-p*.5,r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)),t=r*Math.sin(f),r*=n}}else{switch(l=0,u=0,c=0,n=Math.cos(f),i=Math.sin(f),a=Math.sin(p),o=si(this.e,a),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(l=o/this.qp,u=Math.sqrt(1-l*l)),this.mode){case this.OBLIQ:c=1+this.sinb1*l+this.cosb1*u*n;break;case this.EQUIT:c=1+u*n;break;case this.N_POLE:c=pe+p,o=this.qp-o;break;case this.S_POLE:c=p-pe,o=this.qp+o;break}if(Math.abs(c)<ge)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),this.mode===this.OBLIQ?r=this.ymf*c*(this.cosb1*l-this.sinb1*u*n):r=(c=Math.sqrt(2/(1+u*n)))*l*this.ymf,t=this.xmf*c*u*i;break;case this.N_POLE:case this.S_POLE:o>=0?(t=(c=Math.sqrt(o))*i,r=n*(this.mode===this.S_POLE?c:-c)):t=r=0;break}}return e.x=this.a*t+this.x0,e.y=this.a*r+this.y0,e}function G9(e){e.x-=this.x0,e.y-=this.y0;var t=e.x/this.a,r=e.y/this.a,n,i,a,o,l,u,c;if(this.sphere){var h=0,f,p=0;if(f=Math.sqrt(t*t+r*r),i=f*.5,i>1)return null;switch(i=2*Math.asin(i),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(p=Math.sin(i),h=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(f)<=ge?0:Math.asin(r*p/f),t*=p,r=h*f;break;case this.OBLIQ:i=Math.abs(f)<=ge?this.lat0:Math.asin(h*this.sinph0+r*p*this.cosph0/f),t*=p*this.cosph0,r=(h-Math.sin(i)*this.sinph0)*f;break;case this.N_POLE:r=-r,i=pe-i;break;case this.S_POLE:i-=pe;break}n=r===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(t,r)}else{if(c=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t/=this.dd,r*=this.dd,u=Math.sqrt(t*t+r*r),u<ge)return e.x=this.long0,e.y=this.lat0,e;o=2*Math.asin(.5*u/this.rq),a=Math.cos(o),t*=o=Math.sin(o),this.mode===this.OBLIQ?(c=a*this.sinb1+r*o*this.cosb1/u,l=this.qp*c,r=u*this.cosb1*a-r*this.sinb1*o):(c=r*o/u,l=this.qp*c,r=u*a)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),l=t*t+r*r,!l)return e.x=this.long0,e.y=this.lat0,e;c=1-l/this.qp,this.mode===this.S_POLE&&(c=-c)}n=Math.atan2(t,r),i=J9(Math.asin(c),this.apa)}return e.x=_e(this.long0+n),e.y=i,e}var U9=.3333333333333333,Y9=.17222222222222222,q9=.10257936507936508,X9=.06388888888888888,Z9=.0664021164021164,K9=.016415012942191543;function Q9(e){var t,r=[];return r[0]=e*U9,t=e*e,r[0]+=t*Y9,r[1]=t*X9,t*=e,r[0]+=t*q9,r[1]+=t*Z9,r[2]=t*K9,r}function J9(e,t){var r=e+e;return e+t[0]*Math.sin(r)+t[1]*Math.sin(r+r)+t[2]*Math.sin(r+r+r)}var ez=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"];const tz={init:j9,forward:V9,inverse:G9,names:ez,S_POLE:z9,N_POLE:B9,EQUIT:H9,OBLIQ:W9};function gi(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}function rz(){Math.abs(this.lat1+this.lat2)<ge||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=Tn(this.e3,this.sin_po,this.cos_po),this.qs1=si(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=Tn(this.e3,this.sin_po,this.cos_po),this.qs2=si(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=si(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>ge?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function nz(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=si(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*_e(t-this.long0),o=i*Math.sin(a)+this.x0,l=this.rh-i*Math.cos(a)+this.y0;return e.x=o,e.y=l,e}function iz(e){var t,r,n,i,a,o;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),n=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),n=-1),i=0,t!==0&&(i=Math.atan2(n*e.x,n*e.y)),n=t*this.ns0/this.a,this.sphere?o=Math.asin((this.c-n*n)/(2*this.ns0)):(r=(this.c-n*n)/this.ns0,o=this.phi1z(this.e3,r)),a=_e(i/this.ns0+this.long0),e.x=a,e.y=o,e}function az(e,t){var r,n,i,a,o,l=gi(.5*t);if(e<ge)return l;for(var u=e*e,c=1;c<=25;c++)if(r=Math.sin(l),n=Math.cos(l),i=e*r,a=1-i*i,o=.5*a*a/n*(t/(1-u)-r/a+.5/e*Math.log((1-i)/(1+i))),l=l+o,Math.abs(o)<=1e-7)return l;return null}var oz=["Albers_Conic_Equal_Area","Albers","aea"];const sz={init:rz,forward:nz,inverse:iz,names:oz,phi1z:az};function lz(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function uz(e){var t,r,n,i,a,o,l,u,c=e.x,h=e.y;return n=_e(c-this.long0),t=Math.sin(h),r=Math.cos(h),i=Math.cos(n),o=this.sin_p14*t+this.cos_p14*r*i,a=1,o>0||Math.abs(o)<=ge?(l=this.x0+this.a*a*r*Math.sin(n)/o,u=this.y0+this.a*a*(this.cos_p14*t-this.sin_p14*r*i)/o):(l=this.x0+this.infinity_dist*r*Math.sin(n),u=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*r*i)),e.x=l,e.y=u,e}function cz(e){var t,r,n,i,a,o;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),r=Math.sin(i),n=Math.cos(i),o=gi(n*this.sin_p14+e.y*r*this.cos_p14/t),a=Math.atan2(e.x*r,t*this.cos_p14*n-e.y*this.sin_p14*r),a=_e(this.long0+a)):(o=this.phic0,a=0),e.x=a,e.y=o,e}var dz=["gnom"];const hz={init:lz,forward:uz,inverse:cz,names:dz};function fz(e,t){var r=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-r)<1e-6)return t<0?-1*pe:pe;for(var n=Math.asin(.5*t),i,a,o,l,u=0;u<30;u++)if(a=Math.sin(n),o=Math.cos(n),l=e*a,i=Math.pow(1-l*l,2)/(2*o)*(t/(1-e*e)-a/(1-l*l)+.5/e*Math.log((1-l)/(1+l))),n+=i,Math.abs(i)<=1e-10)return n;return NaN}function pz(){this.sphere||(this.k0=Tn(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function mz(e){var t=e.x,r=e.y,n,i,a=_e(t-this.long0);if(this.sphere)n=this.x0+this.a*a*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts);else{var o=si(this.e,Math.sin(r));n=this.x0+this.a*this.k0*a,i=this.y0+this.a*o*.5/this.k0}return e.x=n,e.y=i,e}function gz(e){e.x-=this.x0,e.y-=this.y0;var t,r;return this.sphere?(t=_e(this.long0+e.x/this.a/Math.cos(this.lat_ts)),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=fz(this.e,2*e.y*this.k0/this.a),t=_e(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=r,e}var vz=["cea"];const yz={init:pz,forward:mz,inverse:gz,names:vz};function bz(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function _z(e){var t=e.x,r=e.y,n=_e(t-this.long0),i=mo(r-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*i,e}function wz(e){var t=e.x,r=e.y;return e.x=_e(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=mo(this.lat0+(r-this.y0)/this.a),e}var xz=["Equirectangular","Equidistant_Cylindrical","eqc"];const Cz={init:bz,forward:_z,inverse:wz,names:xz};var T1=20;function Tz(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=vl(this.es),this.e1=yl(this.es),this.e2=bl(this.es),this.e3=_l(this.es),this.ml0=this.a*pr(this.e0,this.e1,this.e2,this.e3,this.lat0)}function Mz(e){var t=e.x,r=e.y,n,i,a,o=_e(t-this.long0);if(a=o*Math.sin(r),this.sphere)Math.abs(r)<=ge?(n=this.a*o,i=-1*this.a*this.lat0):(n=this.a*Math.sin(a)/Math.tan(r),i=this.a*(mo(r-this.lat0)+(1-Math.cos(a))/Math.tan(r)));else if(Math.abs(r)<=ge)n=this.a*o,i=-1*this.ml0;else{var l=to(this.a,this.e,Math.sin(r))/Math.tan(r);n=l*Math.sin(a),i=this.a*pr(this.e0,this.e1,this.e2,this.e3,r)-this.ml0+l*(1-Math.cos(a))}return e.x=n+this.x0,e.y=i+this.y0,e}function Sz(e){var t,r,n,i,a,o,l,u,c;if(n=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=ge)t=_e(n/this.a+this.long0),r=0;else{o=this.lat0+i/this.a,l=n*n/this.a/this.a+o*o,u=o;var h;for(a=T1;a;--a)if(h=Math.tan(u),c=-1*(o*(u*h+1)-u-.5*(u*u+l)*h)/((u-o)/h-1),u+=c,Math.abs(c)<=ge){r=u;break}t=_e(this.long0+Math.asin(n*Math.tan(u)/this.a)/Math.sin(r))}else if(Math.abs(i+this.ml0)<=ge)r=0,t=_e(this.long0+n/this.a);else{o=(this.ml0+i)/this.a,l=n*n/this.a/this.a+o*o,u=o;var f,p,g,b,v;for(a=T1;a;--a)if(v=this.e*Math.sin(u),f=Math.sqrt(1-v*v)*Math.tan(u),p=this.a*pr(this.e0,this.e1,this.e2,this.e3,u),g=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),b=p/this.a,c=(o*(f*b+1)-b-.5*f*(b*b+l))/(this.es*Math.sin(2*u)*(b*b+l-2*o*b)/(4*f)+(o-b)*(f*g-2/Math.sin(2*u))-g),u-=c,Math.abs(c)<=ge){r=u;break}f=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=_e(this.long0+Math.asin(n*f/this.a)/Math.sin(r))}return e.x=t,e.y=r,e}var Ez=["Polyconic","poly"];const Pz={init:Tz,forward:Mz,inverse:Sz,names:Ez};function Az(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function Rz(e){var t,r=e.x,n=e.y,i=n-this.lat0,a=r-this.long0,o=i/Cs*1e-5,l=a,u=1,c=0;for(t=1;t<=10;t++)u=u*o,c=c+this.A[t]*u;var h=c,f=l,p=1,g=0,b,v,w=0,C=0;for(t=1;t<=6;t++)b=p*h-g*f,v=g*h+p*f,p=b,g=v,w=w+this.B_re[t]*p-this.B_im[t]*g,C=C+this.B_im[t]*p+this.B_re[t]*g;return e.x=C*this.a+this.x0,e.y=w*this.a+this.y0,e}function Oz(e){var t,r=e.x,n=e.y,i=r-this.x0,a=n-this.y0,o=a/this.a,l=i/this.a,u=1,c=0,h,f,p=0,g=0;for(t=1;t<=6;t++)h=u*o-c*l,f=c*o+u*l,u=h,c=f,p=p+this.C_re[t]*u-this.C_im[t]*c,g=g+this.C_im[t]*u+this.C_re[t]*c;for(var b=0;b<this.iterations;b++){var v=p,w=g,C,T,E=o,S=l;for(t=2;t<=6;t++)C=v*p-w*g,T=w*p+v*g,v=C,w=T,E=E+(t-1)*(this.B_re[t]*v-this.B_im[t]*w),S=S+(t-1)*(this.B_im[t]*v+this.B_re[t]*w);v=1,w=0;var P=this.B_re[1],R=this.B_im[1];for(t=2;t<=6;t++)C=v*p-w*g,T=w*p+v*g,v=C,w=T,P=P+t*(this.B_re[t]*v-this.B_im[t]*w),R=R+t*(this.B_im[t]*v+this.B_re[t]*w);var N=P*P+R*R;p=(E*P+S*R)/N,g=(S*P-E*R)/N}var W=p,G=g,K=1,Z=0;for(t=1;t<=9;t++)K=K*W,Z=Z+this.D[t]*K;var O=this.lat0+Z*Cs*1e5,$=this.long0+G;return e.x=$,e.y=O,e}var kz=["New_Zealand_Map_Grid","nzmg"];const Dz={init:Az,forward:Rz,inverse:Oz,names:kz};function Nz(){}function Lz(e){var t=e.x,r=e.y,n=_e(t-this.long0),i=this.x0+this.a*n,a=this.y0+this.a*Math.log(Math.tan(Math.PI/4+r/2.5))*1.25;return e.x=i,e.y=a,e}function Iz(e){e.x-=this.x0,e.y-=this.y0;var t=_e(this.long0+e.x/this.a),r=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=r,e}var $z=["Miller_Cylindrical","mill"];const Fz={init:Nz,forward:Lz,inverse:Iz,names:$z};var zz=20;function Bz(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=mx(this.es)}function Hz(e){var t,r,n=e.x,i=e.y;if(n=_e(n-this.long0),this.sphere){if(!this.m)i=this.n!==1?Math.asin(this.n*Math.sin(i)):i;else for(var a=this.n*Math.sin(i),o=zz;o;--o){var l=(this.m*i+Math.sin(i)-a)/(this.m+Math.cos(i));if(i-=l,Math.abs(l)<ge)break}t=this.a*this.C_x*n*(this.m+Math.cos(i)),r=this.a*this.C_y*i}else{var u=Math.sin(i),c=Math.cos(i);r=this.a*nd(i,u,c,this.en),t=this.a*n*c/Math.sqrt(1-this.es*u*u)}return e.x=t,e.y=r,e}function Wz(e){var t,r,n,i;return e.x-=this.x0,n=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,n=n/(this.C_x*(this.m+Math.cos(t))),this.m?t=gi((this.m*t+Math.sin(t))/this.n):this.n!==1&&(t=gi(Math.sin(t)/this.n)),n=_e(n+this.long0),t=mo(t)):(t=gx(e.y/this.a,this.es,this.en),i=Math.abs(t),i<pe?(i=Math.sin(t),r=this.long0+e.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(t)),n=_e(r)):i-ge<pe&&(n=this.long0)),e.x=n,e.y=t,e}var jz=["Sinusoidal","sinu"];const Vz={init:Bz,forward:Hz,inverse:Wz,names:jz};function Gz(){}function Uz(e){for(var t=e.x,r=e.y,n=_e(t-this.long0),i=r,a=Math.PI*Math.sin(r);;){var o=-(i+Math.sin(i)-a)/(1+Math.cos(i));if(i+=o,Math.abs(o)<ge)break}i/=2,Math.PI/2-Math.abs(r)<ge&&(n=0);var l=.900316316158*this.a*n*Math.cos(i)+this.x0,u=1.4142135623731*this.a*Math.sin(i)+this.y0;return e.x=l,e.y=u,e}function Yz(e){var t,r;e.x-=this.x0,e.y-=this.y0,r=e.y/(1.4142135623731*this.a),Math.abs(r)>.999999999999&&(r=.999999999999),t=Math.asin(r);var n=_e(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),r=(2*t+Math.sin(2*t))/Math.PI,Math.abs(r)>1&&(r=1);var i=Math.asin(r);return e.x=n,e.y=i,e}var qz=["Mollweide","moll"];const Xz={init:Gz,forward:Uz,inverse:Yz,names:qz};function Zz(){Math.abs(this.lat1+this.lat2)<ge||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=vl(this.es),this.e1=yl(this.es),this.e2=bl(this.es),this.e3=_l(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=Tn(this.e,this.sinphi,this.cosphi),this.ml1=pr(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<ge?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=Tn(this.e,this.sinphi,this.cosphi),this.ml2=pr(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=pr(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function Kz(e){var t=e.x,r=e.y,n;if(this.sphere)n=this.a*(this.g-r);else{var i=pr(this.e0,this.e1,this.e2,this.e3,r);n=this.a*(this.g-i)}var a=this.ns*_e(t-this.long0),o=this.x0+n*Math.sin(a),l=this.y0+this.rh-n*Math.cos(a);return e.x=o,e.y=l,e}function Qz(e){e.x-=this.x0,e.y=this.rh-e.y+this.y0;var t,r,n,i;this.ns>=0?(r=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(r=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var a=0;if(r!==0&&(a=Math.atan2(t*e.x,t*e.y)),this.sphere)return i=_e(this.long0+a/this.ns),n=mo(this.g-r/this.a),e.x=i,e.y=n,e;var o=this.g-r/this.a;return n=pc(o,this.e0,this.e1,this.e2,this.e3),i=_e(this.long0+a/this.ns),e.x=i,e.y=n,e}var Jz=["Equidistant_Conic","eqdc"];const eB={init:Zz,forward:Kz,inverse:Qz,names:Jz};function tB(){this.R=this.a}function rB(e){var t=e.x,r=e.y,n=_e(t-this.long0),i,a;Math.abs(r)<=ge&&(i=this.x0+this.R*n,a=this.y0);var o=gi(2*Math.abs(r/Math.PI));(Math.abs(n)<=ge||Math.abs(Math.abs(r)-pe)<=ge)&&(i=this.x0,r>=0?a=this.y0+Math.PI*this.R*Math.tan(.5*o):a=this.y0+Math.PI*this.R*-Math.tan(.5*o));var l=.5*Math.abs(Math.PI/n-n/Math.PI),u=l*l,c=Math.sin(o),h=Math.cos(o),f=h/(c+h-1),p=f*f,g=f*(2/c-1),b=g*g,v=Math.PI*this.R*(l*(f-b)+Math.sqrt(u*(f-b)*(f-b)-(b+u)*(p-b)))/(b+u);n<0&&(v=-v),i=this.x0+v;var w=u+f;return v=Math.PI*this.R*(g*w-l*Math.sqrt((b+u)*(u+1)-w*w))/(b+u),r>=0?a=this.y0+v:a=this.y0-v,e.x=i,e.y=a,e}function nB(e){var t,r,n,i,a,o,l,u,c,h,f,p,g;return e.x-=this.x0,e.y-=this.y0,f=Math.PI*this.R,n=e.x/f,i=e.y/f,a=n*n+i*i,o=-Math.abs(i)*(1+a),l=o-2*i*i+n*n,u=-2*o+1+2*i*i+a*a,g=i*i/u+(2*l*l*l/u/u/u-9*o*l/u/u)/27,c=(o-l*l/3/u)/u,h=2*Math.sqrt(-c/3),f=3*g/c/h,Math.abs(f)>1&&(f>=0?f=1:f=-1),p=Math.acos(f)/3,e.y>=0?r=(-h*Math.cos(p+Math.PI/3)-l/3/u)*Math.PI:r=-(-h*Math.cos(p+Math.PI/3)-l/3/u)*Math.PI,Math.abs(n)<ge?t=this.long0:t=_e(this.long0+Math.PI*(a-1+Math.sqrt(1+2*(n*n-i*i)+a*a))/2/n),e.x=t,e.y=r,e}var iB=["Van_der_Grinten_I","VanDerGrinten","vandg"];const aB={init:tB,forward:rB,inverse:nB,names:iB};function oB(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function sB(e){var t=e.x,r=e.y,n=Math.sin(e.y),i=Math.cos(e.y),a=_e(t-this.long0),o,l,u,c,h,f,p,g,b,v,w,C,T,E,S,P,R,N,W,G,K,Z,O;return this.sphere?Math.abs(this.sin_p12-1)<=ge?(e.x=this.x0+this.a*(pe-r)*Math.sin(a),e.y=this.y0-this.a*(pe-r)*Math.cos(a),e):Math.abs(this.sin_p12+1)<=ge?(e.x=this.x0+this.a*(pe+r)*Math.sin(a),e.y=this.y0+this.a*(pe+r)*Math.cos(a),e):(N=this.sin_p12*n+this.cos_p12*i*Math.cos(a),P=Math.acos(N),R=P?P/Math.sin(P):1,e.x=this.x0+this.a*R*i*Math.sin(a),e.y=this.y0+this.a*R*(this.cos_p12*n-this.sin_p12*i*Math.cos(a)),e):(o=vl(this.es),l=yl(this.es),u=bl(this.es),c=_l(this.es),Math.abs(this.sin_p12-1)<=ge?(h=this.a*pr(o,l,u,c,pe),f=this.a*pr(o,l,u,c,r),e.x=this.x0+(h-f)*Math.sin(a),e.y=this.y0-(h-f)*Math.cos(a),e):Math.abs(this.sin_p12+1)<=ge?(h=this.a*pr(o,l,u,c,pe),f=this.a*pr(o,l,u,c,r),e.x=this.x0+(h+f)*Math.sin(a),e.y=this.y0+(h+f)*Math.cos(a),e):(p=n/i,g=to(this.a,this.e,this.sin_p12),b=to(this.a,this.e,n),v=Math.atan((1-this.es)*p+this.es*g*this.sin_p12/(b*i)),w=Math.atan2(Math.sin(a),this.cos_p12*Math.tan(v)-this.sin_p12*Math.cos(a)),w===0?W=Math.asin(this.cos_p12*Math.sin(v)-this.sin_p12*Math.cos(v)):Math.abs(Math.abs(w)-Math.PI)<=ge?W=-Math.asin(this.cos_p12*Math.sin(v)-this.sin_p12*Math.cos(v)):W=Math.asin(Math.sin(a)*Math.cos(v)/Math.sin(w)),C=this.e*this.sin_p12/Math.sqrt(1-this.es),T=this.e*this.cos_p12*Math.cos(w)/Math.sqrt(1-this.es),E=C*T,S=T*T,G=W*W,K=G*W,Z=K*W,O=Z*W,P=g*W*(1-G*S*(1-S)/6+K/8*E*(1-2*S)+Z/120*(S*(4-7*S)-3*C*C*(1-7*S))-O/48*E),e.x=this.x0+P*Math.sin(w),e.y=this.y0+P*Math.cos(w),e))}function lB(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,i,a,o,l,u,c,h,f,p,g,b,v,w,C,T,E,S,P,R,N,W;return this.sphere?(t=Math.sqrt(e.x*e.x+e.y*e.y),t>2*pe*this.a?void 0:(r=t/this.a,n=Math.sin(r),i=Math.cos(r),a=this.long0,Math.abs(t)<=ge?o=this.lat0:(o=gi(i*this.sin_p12+e.y*n*this.cos_p12/t),l=Math.abs(this.lat0)-pe,Math.abs(l)<=ge?this.lat0>=0?a=_e(this.long0+Math.atan2(e.x,-e.y)):a=_e(this.long0-Math.atan2(-e.x,e.y)):a=_e(this.long0+Math.atan2(e.x*n,t*this.cos_p12*i-e.y*this.sin_p12*n))),e.x=a,e.y=o,e)):(u=vl(this.es),c=yl(this.es),h=bl(this.es),f=_l(this.es),Math.abs(this.sin_p12-1)<=ge?(p=this.a*pr(u,c,h,f,pe),t=Math.sqrt(e.x*e.x+e.y*e.y),g=p-t,o=pc(g/this.a,u,c,h,f),a=_e(this.long0+Math.atan2(e.x,-1*e.y)),e.x=a,e.y=o,e):Math.abs(this.sin_p12+1)<=ge?(p=this.a*pr(u,c,h,f,pe),t=Math.sqrt(e.x*e.x+e.y*e.y),g=t-p,o=pc(g/this.a,u,c,h,f),a=_e(this.long0+Math.atan2(e.x,e.y)),e.x=a,e.y=o,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),w=Math.atan2(e.x,e.y),b=to(this.a,this.e,this.sin_p12),C=Math.cos(w),T=this.e*this.cos_p12*C,E=-T*T/(1-this.es),S=3*this.es*(1-E)*this.sin_p12*this.cos_p12*C/(1-this.es),P=t/b,R=P-E*(1+E)*Math.pow(P,3)/6-S*(1+3*E)*Math.pow(P,4)/24,N=1-E*R*R/2-P*R*R*R/6,v=Math.asin(this.sin_p12*Math.cos(R)+this.cos_p12*Math.sin(R)*C),a=_e(this.long0+Math.asin(Math.sin(w)*Math.sin(R)/Math.cos(v))),W=Math.sin(v),o=Math.atan2((W-this.es*N*this.sin_p12)*Math.tan(v),W*(1-this.es)),e.x=a,e.y=o,e))}var uB=["Azimuthal_Equidistant","aeqd"];const cB={init:oB,forward:sB,inverse:lB,names:uB};function dB(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function hB(e){var t,r,n,i,a,o,l,u,c=e.x,h=e.y;return n=_e(c-this.long0),t=Math.sin(h),r=Math.cos(h),i=Math.cos(n),o=this.sin_p14*t+this.cos_p14*r*i,a=1,(o>0||Math.abs(o)<=ge)&&(l=this.a*a*r*Math.sin(n),u=this.y0+this.a*a*(this.cos_p14*t-this.sin_p14*r*i)),e.x=l,e.y=u,e}function fB(e){var t,r,n,i,a,o,l;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),r=gi(t/this.a),n=Math.sin(r),i=Math.cos(r),o=this.long0,Math.abs(t)<=ge?(l=this.lat0,e.x=o,e.y=l,e):(l=gi(i*this.sin_p14+e.y*n*this.cos_p14/t),a=Math.abs(this.lat0)-pe,Math.abs(a)<=ge?(this.lat0>=0?o=_e(this.long0+Math.atan2(e.x,-e.y)):o=_e(this.long0-Math.atan2(-e.x,e.y)),e.x=o,e.y=l,e):(o=_e(this.long0+Math.atan2(e.x*n,t*this.cos_p14*i-e.y*this.sin_p14*n)),e.x=o,e.y=l,e))}var pB=["ortho"];const mB={init:dB,forward:hB,inverse:fB,names:pB};var Tt={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},Je={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function gB(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=pe-Qe/2?this.face=Tt.TOP:this.lat0<=-(pe-Qe/2)?this.face=Tt.BOTTOM:Math.abs(this.long0)<=Qe?this.face=Tt.FRONT:Math.abs(this.long0)<=pe+Qe?this.face=this.long0>0?Tt.RIGHT:Tt.LEFT:this.face=Tt.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function vB(e){var t={x:0,y:0},r,n,i,a,o,l,u={value:0};if(e.x-=this.long0,this.es!==0?r=Math.atan(this.one_minus_f_squared*Math.tan(e.y)):r=e.y,n=e.x,this.face===Tt.TOP)a=pe-r,n>=Qe&&n<=pe+Qe?(u.value=Je.AREA_0,i=n-pe):n>pe+Qe||n<=-(pe+Qe)?(u.value=Je.AREA_1,i=n>0?n-Nt:n+Nt):n>-(pe+Qe)&&n<=-Qe?(u.value=Je.AREA_2,i=n+pe):(u.value=Je.AREA_3,i=n);else if(this.face===Tt.BOTTOM)a=pe+r,n>=Qe&&n<=pe+Qe?(u.value=Je.AREA_0,i=-n+pe):n<Qe&&n>=-Qe?(u.value=Je.AREA_1,i=-n):n<-Qe&&n>=-(pe+Qe)?(u.value=Je.AREA_2,i=-n-pe):(u.value=Je.AREA_3,i=n>0?-n+Nt:-n-Nt);else{var c,h,f,p,g,b,v;this.face===Tt.RIGHT?n=qa(n,+pe):this.face===Tt.BACK?n=qa(n,+Nt):this.face===Tt.LEFT&&(n=qa(n,-pe)),p=Math.sin(r),g=Math.cos(r),b=Math.sin(n),v=Math.cos(n),c=g*v,h=g*b,f=p,this.face===Tt.FRONT?(a=Math.acos(c),i=mu(a,f,h,u)):this.face===Tt.RIGHT?(a=Math.acos(h),i=mu(a,f,-c,u)):this.face===Tt.BACK?(a=Math.acos(-c),i=mu(a,f,-h,u)):this.face===Tt.LEFT?(a=Math.acos(-h),i=mu(a,f,c,u)):(a=i=0,u.value=Je.AREA_0)}return l=Math.atan(12/Nt*(i+Math.acos(Math.sin(i)*Math.cos(Qe))-pe)),o=Math.sqrt((1-Math.cos(a))/(Math.cos(l)*Math.cos(l))/(1-Math.cos(Math.atan(1/Math.cos(i))))),u.value===Je.AREA_1?l+=pe:u.value===Je.AREA_2?l+=Nt:u.value===Je.AREA_3&&(l+=1.5*Nt),t.x=o*Math.cos(l),t.y=o*Math.sin(l),t.x=t.x*this.a+this.x0,t.y=t.y*this.a+this.y0,e.x=t.x,e.y=t.y,e}function yB(e){var t={lam:0,phi:0},r,n,i,a,o,l,u,c,h,f={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),r=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?f.value=Je.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(f.value=Je.AREA_1,r-=pe):e.x<0&&-e.x>=Math.abs(e.y)?(f.value=Je.AREA_2,r=r<0?r+Nt:r-Nt):(f.value=Je.AREA_3,r+=pe),h=Nt/12*Math.tan(r),o=Math.sin(h)/(Math.cos(h)-1/Math.sqrt(2)),l=Math.atan(o),i=Math.cos(r),a=Math.tan(n),u=1-i*i*a*a*(1-Math.cos(Math.atan(1/Math.cos(l)))),u<-1?u=-1:u>1&&(u=1),this.face===Tt.TOP)c=Math.acos(u),t.phi=pe-c,f.value===Je.AREA_0?t.lam=l+pe:f.value===Je.AREA_1?t.lam=l<0?l+Nt:l-Nt:f.value===Je.AREA_2?t.lam=l-pe:t.lam=l;else if(this.face===Tt.BOTTOM)c=Math.acos(u),t.phi=c-pe,f.value===Je.AREA_0?t.lam=-l+pe:f.value===Je.AREA_1?t.lam=-l:f.value===Je.AREA_2?t.lam=-l-pe:t.lam=l<0?-l-Nt:-l+Nt;else{var p,g,b;p=u,h=p*p,h>=1?b=0:b=Math.sqrt(1-h)*Math.sin(l),h+=b*b,h>=1?g=0:g=Math.sqrt(1-h),f.value===Je.AREA_1?(h=g,g=-b,b=h):f.value===Je.AREA_2?(g=-g,b=-b):f.value===Je.AREA_3&&(h=g,g=b,b=-h),this.face===Tt.RIGHT?(h=p,p=-g,g=h):this.face===Tt.BACK?(p=-p,g=-g):this.face===Tt.LEFT&&(h=p,p=g,g=-h),t.phi=Math.acos(-b)-pe,t.lam=Math.atan2(g,p),this.face===Tt.RIGHT?t.lam=qa(t.lam,-pe):this.face===Tt.BACK?t.lam=qa(t.lam,-Nt):this.face===Tt.LEFT&&(t.lam=qa(t.lam,+pe))}if(this.es!==0){var v,w,C;v=t.phi<0?1:0,w=Math.tan(t.phi),C=this.b/Math.sqrt(w*w+this.one_minus_f_squared),t.phi=Math.atan(Math.sqrt(this.a*this.a-C*C)/(this.one_minus_f*C)),v&&(t.phi=-t.phi)}return t.lam+=this.long0,e.x=t.lam,e.y=t.phi,e}function mu(e,t,r,n){var i;return e<ge?(n.value=Je.AREA_0,i=0):(i=Math.atan2(t,r),Math.abs(i)<=Qe?n.value=Je.AREA_0:i>Qe&&i<=pe+Qe?(n.value=Je.AREA_1,i-=pe):i>pe+Qe||i<=-(pe+Qe)?(n.value=Je.AREA_2,i=i>=0?i-Nt:i+Nt):(n.value=Je.AREA_3,i+=pe)),i}function qa(e,t){var r=e+t;return r<-Nt?r+=Hs:r>+Nt&&(r-=Hs),r}var bB=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const _B={init:gB,forward:vB,inverse:yB,names:bB};var Rp=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],ms=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],bx=.8487,_x=1.3523,wx=yn/5,wB=1/wx,Wa=18,mc=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},xB=function(e,t){return e[1]+t*(2*e[2]+t*3*e[3])};function CB(e,t,r,n){for(var i=t;n;--n){var a=e(i);if(i-=a,Math.abs(a)<r)break}return i}function TB(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function MB(e){var t=_e(e.x-this.long0),r=Math.abs(e.y),n=Math.floor(r*wx);n<0?n=0:n>=Wa&&(n=Wa-1),r=yn*(r-wB*n);var i={x:mc(Rp[n],r)*t,y:mc(ms[n],r)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*bx+this.x0,i.y=i.y*this.a*_x+this.y0,i}function SB(e){var t={x:(e.x-this.x0)/(this.a*bx),y:Math.abs(e.y-this.y0)/(this.a*_x)};if(t.y>=1)t.x/=Rp[Wa][0],t.y=e.y<0?-pe:pe;else{var r=Math.floor(t.y*Wa);for(r<0?r=0:r>=Wa&&(r=Wa-1);;)if(ms[r][0]>t.y)--r;else if(ms[r+1][0]<=t.y)++r;else break;var n=ms[r],i=5*(t.y-n[0])/(ms[r+1][0]-n[0]);i=CB(function(a){return(mc(n,a)-t.y)/xB(n,a)},i,ge,100),t.x/=mc(Rp[r],i),t.y=(5*r+i)*rr,e.y<0&&(t.y=-t.y)}return t.x=_e(t.x+this.long0),t}var EB=["Robinson","robin"];const PB={init:TB,forward:MB,inverse:SB,names:EB};function AB(){this.name="geocent"}function RB(e){var t=ox(e,this.es,this.a);return t}function OB(e){var t=sx(e,this.es,this.a,this.b);return t}var kB=["Geocentric","geocentric","geocent","Geocent"];const DB={init:AB,forward:RB,inverse:OB,names:kB};var ar={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Qo={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function NB(){if(Object.keys(Qo).forEach(function(r){if(typeof this[r]=="undefined")this[r]=Qo[r].def;else{if(Qo[r].num&&isNaN(this[r]))throw new Error("Invalid parameter value, must be numeric "+r+" = "+this[r]);Qo[r].num&&(this[r]=parseFloat(this[r]))}Qo[r].degrees&&(this[r]=this[r]*rr)}.bind(this)),Math.abs(Math.abs(this.lat0)-pe)<ge?this.mode=this.lat0<0?ar.S_POLE:ar.N_POLE:Math.abs(this.lat0)<ge?this.mode=ar.EQUIT:(this.mode=ar.OBLIQ,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var e=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(e),this.sw=Math.sin(e)}function LB(e){e.x-=this.long0;var t=Math.sin(e.y),r=Math.cos(e.y),n=Math.cos(e.x),i,a;switch(this.mode){case ar.OBLIQ:a=this.sinph0*t+this.cosph0*r*n;break;case ar.EQUIT:a=r*n;break;case ar.S_POLE:a=-t;break;case ar.N_POLE:a=t;break}switch(a=this.pn1/(this.p-a),i=a*r*Math.sin(e.x),this.mode){case ar.OBLIQ:a*=this.cosph0*t-this.sinph0*r*n;break;case ar.EQUIT:a*=t;break;case ar.N_POLE:a*=-(r*n);break;case ar.S_POLE:a*=r*n;break}var o,l;return o=a*this.cg+i*this.sg,l=1/(o*this.sw*this.h1+this.cw),i=(i*this.cg-a*this.sg)*this.cw*l,a=o*l,e.x=i*this.a,e.y=a*this.a,e}function IB(e){e.x/=this.a,e.y/=this.a;var t={x:e.x,y:e.y},r,n,i;i=1/(this.pn1-e.y*this.sw),r=this.pn1*e.x*i,n=this.pn1*e.y*this.cw*i,e.x=r*this.cg+n*this.sg,e.y=n*this.cg-r*this.sg;var a=Gr(e.x,e.y);if(Math.abs(a)<ge)t.x=0,t.y=e.y;else{var o,l;switch(l=1-a*a*this.pfact,l=(this.p-Math.sqrt(l))/(this.pn1/a+a/this.pn1),o=Math.sqrt(1-l*l),this.mode){case ar.OBLIQ:t.y=Math.asin(o*this.sinph0+e.y*l*this.cosph0/a),e.y=(o-this.sinph0*Math.sin(t.y))*a,e.x*=l*this.cosph0;break;case ar.EQUIT:t.y=Math.asin(e.y*l/a),e.y=o*a,e.x*=l;break;case ar.N_POLE:t.y=Math.asin(o),e.y=-e.y;break;case ar.S_POLE:t.y=-Math.asin(o);break}t.x=Math.atan2(e.x,e.y)}return e.x=t.x+this.long0,e.y=t.y,e}var $B=["Tilted_Perspective","tpers"];const FB={init:NB,forward:LB,inverse:IB,names:$B};function zB(){if(this.flip_axis=this.sweep==="x"?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var e=1-this.es,t=1/e;this.radius_p=Math.sqrt(e),this.radius_p2=e,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function BB(e){var t=e.x,r=e.y,n,i,a,o;if(t=t-this.long0,this.shape==="ellipse"){r=Math.atan(this.radius_p2*Math.tan(r));var l=this.radius_p/Gr(this.radius_p*Math.cos(r),Math.sin(r));if(i=l*Math.cos(t)*Math.cos(r),a=l*Math.sin(t)*Math.cos(r),o=l*Math.sin(r),(this.radius_g-i)*i-a*a-o*o*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number.NaN,e;n=this.radius_g-i,this.flip_axis?(e.x=this.radius_g_1*Math.atan(a/Gr(o,n)),e.y=this.radius_g_1*Math.atan(o/n)):(e.x=this.radius_g_1*Math.atan(a/n),e.y=this.radius_g_1*Math.atan(o/Gr(a,n)))}else this.shape==="sphere"&&(n=Math.cos(r),i=Math.cos(t)*n,a=Math.sin(t)*n,o=Math.sin(r),n=this.radius_g-i,this.flip_axis?(e.x=this.radius_g_1*Math.atan(a/Gr(o,n)),e.y=this.radius_g_1*Math.atan(o/n)):(e.x=this.radius_g_1*Math.atan(a/n),e.y=this.radius_g_1*Math.atan(o/Gr(a,n))));return e.x=e.x*this.a,e.y=e.y*this.a,e}function HB(e){var t=-1,r=0,n=0,i,a,o,l;if(e.x=e.x/this.a,e.y=e.y/this.a,this.shape==="ellipse"){this.flip_axis?(n=Math.tan(e.y/this.radius_g_1),r=Math.tan(e.x/this.radius_g_1)*Gr(1,n)):(r=Math.tan(e.x/this.radius_g_1),n=Math.tan(e.y/this.radius_g_1)*Gr(1,r));var u=n/this.radius_p;if(i=r*r+u*u+t*t,a=2*this.radius_g*t,o=a*a-4*i*this.C,o<0)return e.x=Number.NaN,e.y=Number.NaN,e;l=(-a-Math.sqrt(o))/(2*i),t=this.radius_g+l*t,r*=l,n*=l,e.x=Math.atan2(r,t),e.y=Math.atan(n*Math.cos(e.x)/t),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if(this.shape==="sphere"){if(this.flip_axis?(n=Math.tan(e.y/this.radius_g_1),r=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+n*n)):(r=Math.tan(e.x/this.radius_g_1),n=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+r*r)),i=r*r+n*n+t*t,a=2*this.radius_g*t,o=a*a-4*i*this.C,o<0)return e.x=Number.NaN,e.y=Number.NaN,e;l=(-a-Math.sqrt(o))/(2*i),t=this.radius_g+l*t,r*=l,n*=l,e.x=Math.atan2(r,t),e.y=Math.atan(n*Math.cos(e.x)/t)}return e.x=e.x+this.long0,e}var WB=["Geostationary Satellite View","Geostationary_Satellite","geos"];const jB={init:zB,forward:BB,inverse:HB,names:WB};var Ts=1.340264,Ms=-.081106,Ss=893e-6,Es=.003796,gc=Math.sqrt(3)/2;function VB(){this.es=0,this.long0=this.long0!==void 0?this.long0:0}function GB(e){var t=_e(e.x-this.long0),r=e.y,n=Math.asin(gc*Math.sin(r)),i=n*n,a=i*i*i;return e.x=t*Math.cos(n)/(gc*(Ts+3*Ms*i+a*(7*Ss+9*Es*i))),e.y=n*(Ts+Ms*i+a*(Ss+Es*i)),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function UB(e){e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a;var t=1e-9,r=12,n=e.y,i,a,o,l,u,c;for(c=0;c<r&&(i=n*n,a=i*i*i,o=n*(Ts+Ms*i+a*(Ss+Es*i))-e.y,l=Ts+3*Ms*i+a*(7*Ss+9*Es*i),n-=u=o/l,!(Math.abs(u)<t));++c);return i=n*n,a=i*i*i,e.x=gc*e.x*(Ts+3*Ms*i+a*(7*Ss+9*Es*i))/Math.cos(n),e.y=Math.asin(Math.sin(n)/gc),e.x=_e(e.x+this.long0),e}var YB=["eqearth","Equal Earth","Equal_Earth"];const qB={init:VB,forward:GB,inverse:UB,names:YB};function XB(e){e.Proj.projections.add(Fu),e.Proj.projections.add(zu),e.Proj.projections.add(Z7),e.Proj.projections.add(o9),e.Proj.projections.add(h9),e.Proj.projections.add(v9),e.Proj.projections.add(C9),e.Proj.projections.add(P9),e.Proj.projections.add(D9),e.Proj.projections.add(F9),e.Proj.projections.add(tz),e.Proj.projections.add(sz),e.Proj.projections.add(hz),e.Proj.projections.add(yz),e.Proj.projections.add(Cz),e.Proj.projections.add(Pz),e.Proj.projections.add(Dz),e.Proj.projections.add(Fz),e.Proj.projections.add(Vz),e.Proj.projections.add(Xz),e.Proj.projections.add(eB),e.Proj.projections.add(aB),e.Proj.projections.add(cB),e.Proj.projections.add(mB),e.Proj.projections.add(_B),e.Proj.projections.add(PB),e.Proj.projections.add(DB),e.Proj.projections.add(FB),e.Proj.projections.add(jB),e.Proj.projections.add(qB)}kr.defaultDatum="WGS84";kr.Proj=_n;kr.WGS84=new kr.Proj("WGS84");kr.Point=eo;kr.toPoint=lx;kr.defs=dr;kr.nadgrid=QF;kr.transform=fc;kr.mgrs=p7;kr.version="__VERSION__";XB(kr);const ZB=Object.freeze(Object.defineProperty({__proto__:null,default:kr},Symbol.toStringTag,{value:"Module"})),KB=y.getAugmentedNamespace(ZB);(function(e){(function(t){var r,n;r=Kw,n=KB,e.exports=t(r,n)})(function(t,r){return r.__esModule&&r.default&&(r=r.default),t.Proj={},t.Proj._isProj4Obj=function(n){return typeof n.inverse!="undefined"&&typeof n.forward!="undefined"},t.Proj.Projection=t.Class.extend({initialize:function(n,i,a){var o=t.Proj._isProj4Obj(n);this._proj=o?n:this._projFromCodeDef(n,i),this.bounds=o?i:a},project:function(n){var i=this._proj.forward([n.lng,n.lat]);return new t.Point(i[0],i[1])},unproject:function(n,i){var a=this._proj.inverse([n.x,n.y]);return new t.LatLng(a[1],a[0],i)},_projFromCodeDef:function(n,i){if(i)r.defs(n,i);else if(r.defs[n]===void 0){var a=n.split(":");if(a.length>3&&(n=a[a.length-3]+":"+a[a.length-1]),r.defs[n]===void 0)throw"No projection definition for code "+n}return r(n)}}),t.Proj.CRS=t.Class.extend({includes:t.CRS,options:{transformation:new t.Transformation(1,0,-1,0)},initialize:function(n,i,a){var o,l,u,c;if(t.Proj._isProj4Obj(n)?(l=n,o=l.srsCode,c=i||{},this.projection=new t.Proj.Projection(l,c.bounds)):(o=n,u=i,c=a||{},this.projection=new t.Proj.Projection(o,u,c.bounds)),t.Util.setOptions(this,c),this.code=o,this.transformation=this.options.transformation,this.options.origin&&(this.transformation=new t.Transformation(1,-this.options.origin[0],-1,this.options.origin[1])),this.options.scales)this._scales=this.options.scales;else if(this.options.resolutions){this._scales=[];for(var h=this.options.resolutions.length-1;h>=0;h--)this.options.resolutions[h]&&(this._scales[h]=1/this.options.resolutions[h])}this.infinite=!this.options.bounds},scale:function(n){var i=Math.floor(n),a,o,l,u;return n===i?this._scales[n]:(a=this._scales[i],o=this._scales[i+1],l=o-a,u=n-i,a+l*u)},zoom:function(n){var i=this._closestElement(this._scales,n),a=this._scales.indexOf(i),o,l,u;return n===i?a:i===void 0?-1/0:(l=a+1,o=this._scales[l],o===void 0?1/0:(u=o-i,(n-i)/u+a))},distance:t.CRS.Earth.distance,R:t.CRS.Earth.R,_closestElement:function(n,i){for(var a,o=n.length;o--;)n[o]<=i&&(a===void 0||a<n[o])&&(a=n[o]);return a}}),t.Proj.GeoJSON=t.GeoJSON.extend({initialize:function(n,i){this._callLevel=0,t.GeoJSON.prototype.initialize.call(this,n,i)},addData:function(n){var i;n&&(n.crs&&n.crs.type==="name"?i=new t.Proj.CRS(n.crs.properties.name):n.crs&&n.crs.type&&(i=new t.Proj.CRS(n.crs.type+":"+n.crs.properties.code)),i!==void 0&&(this.options.coordsToLatLng=function(a){var o=t.point(a[0],a[1]);return i.projection.unproject(o)})),this._callLevel++;try{t.GeoJSON.prototype.addData.call(this,n)}finally{this._callLevel--,this._callLevel===0&&delete this.options.coordsToLatLng}}}),t.Proj.geoJson=function(n,i){return new t.Proj.GeoJSON(n,i)},t.Proj.ImageOverlay=t.ImageOverlay.extend({initialize:function(n,i,a){t.ImageOverlay.prototype.initialize.call(this,n,null,a),this._projectedBounds=i},_animateZoom:function(n){var i=this._map.getZoomScale(n.zoom),a=t.point(this._projectedBounds.min.x,this._projectedBounds.max.y),o=this._projectedToNewLayerPoint(a,n.zoom,n.center);t.DomUtil.setTransform(this._image,o,i)},_reset:function(){var n=this._map.getZoom(),i=this._map.getPixelOrigin(),a=t.bounds(this._transform(this._projectedBounds.min,n)._subtract(i),this._transform(this._projectedBounds.max,n)._subtract(i)),o=a.getSize();t.DomUtil.setPosition(this._image,a.min),this._image.style.width=o.x+"px",this._image.style.height=o.y+"px"},_projectedToNewLayerPoint:function(n,i,a){var o=this._map.getSize()._divideBy(2),l=this._map.project(a,i)._subtract(o)._round(),u=l.add(this._map._getMapPanePos());return this._transform(n,i)._subtract(u)},_transform:function(n,i){var a=this._map.options.crs,o=a.transformation,l=a.scale(i);return o.transform(n,l)}}),t.Proj.imageOverlay=function(n,i,a){return new t.Proj.ImageOverlay(n,i,a)},t.Proj})})(Qw);var QB=Qw.exports;const JB=250;function xx(e){const t=e.chart.animation.init.duration==="auto"?JB:e.chart.animation.init.duration;return{animate:t!==0,duration:t/1e3}}function eH(e,t,r={}){t.length&&e.fitBounds(t.map(n=>[n.getLatLng().lat,n.getLatLng().lng]),M({maxZoom:4},r))}const tH=[{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"}],rH="#d6d9dc",nH="#FBFAFA";function iH(e,t,r){return e.reduce((i,a)=>{const o=a.id;let l;if(r==="world"){const u=tH.find(c=>c.id===o);u?l=t.find(c=>u.allNames.includes(c.geoName.trim().toLowerCase())):l=t.find(c=>c.geoName.trim().toLowerCase()===a.properties.name.trim().toLowerCase())}else l=t.find(u=>u.geoName.trim().toLowerCase()===a.properties.name.trim().toLowerCase());return i[o]={geoDataElement:l,style:{color:rH,weight:1,opacity:1,fillColor:l&&l.color||nH,fillOpacity:1},displayName:(l==null?void 0:l.geoName)||a.properties.name},i},{})}const aH=QB.CRS,oH=({geoJson:e,geoData:t,dataOptions:r,mapType:n})=>{const{themeSettings:i}=ot(),a=k.useRef(null),o=k.useRef(null),[l]=k.useState(Hn.layerGroup()),u=k.useMemo(()=>iH(e.features,t,n),[e,t,n]);return k.useEffect(()=>{a.current&&!o.current&&(o.current=cH(a.current,n),l.addTo(o.current))},[l,n]),k.useEffect(()=>{const c=Hn.geoJSON(dH(e,u),{style:h=>u[h.id].style,onEachFeature:(h,f)=>{f.bindTooltip(uH(h,u,r.originalValueTitle),{sticky:!0}),f.on({mouseover:p=>{const g=p.target;sH(g,h.id,u)},mouseout:p=>{const g=p.target;lH(g,h.id,u)}}),r.onAreaClick&&f.on({click:p=>{const g=u[h.id].geoDataElement;g&&r.onAreaClick(g,p.originalEvent)}})}});o.current&&(l.clearLayers(),l.addLayer(c),o.current.fitBounds(c.getBounds(),xx(i)))},[r,u,e,l,i]),y.jsx("div",{ref:a,className:"csdk-map-container",style:{width:"100%",height:"100%",minWidth:"300px",minHeight:"400px",backgroundColor:"#c2dbe9"}})};function sH(e,t,r){if(r[t]){const i=r[t].style.fillColor;e.setStyle({weight:2,color:y.scaleBrightness(i,-.2),fillColor:y.scaleBrightness(i,.05),dashArray:"",fillOpacity:1,opacity:1}),e.bringToFront()}}function lH(e,t,r){e.setStyle(r[t].style)}function uH(e,t,r){const n=t[e.id],{formattedOriginalValue:i}=n.geoDataElement||{};return`
192
+ <div>
193
+ <span>${n.displayName}<span>
194
+ ${n.geoDataElement&&i!==void 0?`<br/>${r}: <span>${i}<span>`:""}
195
+ </div>`}function cH(e,t){return t==="world"?Hn.map(e,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,zoom:1,maxZoom:5,center:[0,0]}):Hn.map(e,{crs:new aH("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 dH(e,t){if(t.ATA&&t.ATA.geoDataElement)return e;{const r=e.features.filter(n=>n.id!=="ATA");return I(M({},e),{features:r})}}var hH="[object Date]";function fH(e){return j.isObjectLike(e)&&j.baseGetTag(e)==hH}var M1=j.nodeUtil&&j.nodeUtil.isDate,pH=M1?j.baseUnary(M1):fH;const Cx=(e,t=-1)=>{var n,i,a;return[...(n=e.rows)!=null?n:[],...(i=e.columns)!=null?i:[],...(a=e.values)!=null?a:[]][t]},mH=(e,t=-1)=>{const{rows:r=[],columns:n=[],values:i=[]}=e,a=Number(r.length)||0,o=Number(n.length)||0,l=Number(i.length)||0;if(t!==-1){if(t<a)return`rows.${t}`;if(t<a+o)return`columns.${t-a}`;if(t<a+o+l)return`values.${t-a-o}`}},Tx=e=>{const t=e&&"numberFormatConfig"in e?e.numberFormatConfig:void 0;return y.getCompleteNumberFormatConfig(t)},gH=e=>{const t=y.normalizeColumn(e),r=y.getDataOptionGranularity(t);return(t==null?void 0:t.dateFormat)||y.getDefaultDateFormat(r)},vH=(e,t)=>(r,n)=>{var c,h;const i=(n==null?void 0:n.panel)==="measures",a=r.userType===m2.CORNER,o=Cx(e,(c=n==null?void 0:n.field)==null?void 0:c.index);if(i||a||!o){r.content=r.value;return}const u="type"in o||"column"in o&&"type"in o.column?gH(o):void 0;switch((h=n==null?void 0:n.jaql)==null?void 0:h.datatype){case"numeric":r.content=y.applyFormatPlainText(Tx(o),parseFloat(`${r.value}`));break;case"datetime":r.content=F0(r.value,t,u);break;default:r.content=r.value}o&&"isHtml"in o&&o.isHtml&&(r.contentType="html"),r.content===""&&(r.content=y.NOT_AVAILABLE_DATA_VALUE)};function F0(e,t,r){if(e===y.NOT_AVAILABLE_DATA_VALUE)return e;if(!r)return typeof e=="string"?e:e.toISOString();const n=typeof e=="string"?y.parseISOWithTimezoneCheck(e):e;return yH(n)?typeof e=="string"?e:e.toISOString():t(n,r)}function yH(e){return e.toString()==="Invalid Date"}function Lt(e){const t="type"in e.column?e.column.type:"numeric";let r=n=>`${n}`;if(j.isNumber(t)){const n=y.getCompleteNumberFormatConfig(e&&"numberFormatConfig"in e?e.numberFormatConfig:void 0);r=i=>y.applyFormatPlainText(n,parseFloat(`${i}`))}if(j.isDatetime(t)){const n=e.dateFormat||y.getDefaultDateFormat(y.getDataOptionGranularity(e)),i=(a,o)=>ll(a,o);r=a=>F0(pH(a)?a.toISOString():a,i,n)}return n=>n===void 0?"":r(n)}function Ve(e){return M(M({dataOption:e},j.MetadataTypes.isAttribute(e.column)&&{attribute:e.column}),j.MetadataTypes.isMeasure(e.column)&&{measure:e.column})}const id=e=>{var t,r,n,i,a,o,l,u;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:(l=(o=(a=(i=e.series)==null?void 0:i.options)==null?void 0:a.custom)==null?void 0:o.rawValue)==null?void 0:l[0],categoryDisplayValue:(u=e.name)!=null?u:e.category}},bH=(e,t)=>{const r=t.x.map((l,u)=>{var h,f;const c=(f=(h=e.custom)==null?void 0:h.xValue)==null?void 0:f[u];return I(M({},Ve(l)),{value:c,displayValue:Lt(l)(c)})}),n=t.y.length>=2,i=t.y.filter((l,u)=>!n||e.series.index===u).flatMap(l=>{var c;const u=(c=e.custom)==null?void 0:c.rawValue;return I(M({},Ve(l)),{value:u,displayValue:Lt(l)(u)})}),a=t.breakBy.map(l=>{var c,h,f;const u=(f=(h=(c=e.series)==null?void 0:c.options.custom)==null?void 0:h.rawValue)==null?void 0:f[0];return I(M({},Ve(l)),{value:u,displayValue:Lt(l)(u)})}),o={category:r,value:i,breakBy:a};return I(M({},id(e)),{entries:o})},_H=(e,t)=>{const r=t.x.map((l,u)=>{var h,f;const c=(f=(h=e.custom)==null?void 0:h.xValue)==null?void 0:f[u];return I(M({},Ve(l)),{value:c,displayValue:Lt(l)(c)})}),n=t.rangeValues.length>=2,i=t.rangeValues.filter((l,u)=>!n||e.series.index===u).flatMap(l=>l.map((u,c)=>{var p,g;const f=c===0?(p=e.options)==null?void 0:p.low:(g=e.options)==null?void 0:g.high;return I(M({},Ve(u)),{value:f,displayValue:Lt(u)(f)})})),a=t.breakBy.map(l=>{var c,h,f;const u=(f=(h=(c=e.series)==null?void 0:c.options.custom)==null?void 0:h.rawValue)==null?void 0:f[0];return I(M({},Ve(l)),{value:u,displayValue:Lt(l)(u)})}),o={category:r,value:i,breakBy:a};return I(M({},id(e)),{entries:o})},wH=(e,t)=>{var n,i,a,o,l;const r={};if(t.x){const u=e.custom.maskedX;r.x=I(M({},Ve(t.x)),{value:u,displayValue:u})}if(t.y){const u=e.custom.maskedY;r.y=I(M({},Ve(t.y)),{value:u,displayValue:u})}if(t.breakByPoint){const u=(n=e.custom)==null?void 0:n.maskedBreakByPoint;r.breakByPoint=I(M({},Ve(t.breakByPoint)),{value:(i=e.custom)==null?void 0:i.maskedBreakByPoint,displayValue:u})}if(t.breakByColor){const u=(a=e.custom)==null?void 0:a.maskedBreakByColor;r.breakByColor=I(M({},Ve(t.breakByColor)),{value:u,displayValue:u})}if(t.size){const u=e.custom.maskedSize;r.size=I(M({},Ve(t.size)),{value:u,displayValue:u})}return{x:e.x,y:e.y,size:e.z,breakByPoint:(o=e.custom)==null?void 0:o.maskedBreakByPoint,breakByColor:(l=e.custom)==null?void 0:l.maskedBreakByColor,entries:r}},xH=(e,t)=>{const r=t.breakBy.map((a,o)=>{var u,c;const l=(c=(u=e.custom)==null?void 0:u.xValue)==null?void 0:c[o];return I(M({},Ve(a)),{value:l,displayValue:Lt(a)(l)})}),n=t.y.map(a=>{var l;const o=(l=e.custom)==null?void 0:l.rawValue;return I(M({},Ve(a)),{value:o,displayValue:Lt(a)(o)})}),i={category:r,value:n};return{value:e.options.custom.number1,categoryValue:e.options.name,categoryDisplayValue:e.name,entries:i}},CH=(e,t)=>{const r=t.breakBy.map((o,l)=>{var c,h;const u=(h=(c=e.custom)==null?void 0:c.xValue)==null?void 0:h[l];return I(M({},Ve(o)),{value:u,displayValue:Lt(o)(u)})}),n=t.y.length>=2,i=t.y.filter((o,l)=>!n||e.series.index===l).map(o=>{var u;const l=(u=e.custom)==null?void 0:u.rawValue;return I(M({},Ve(o)),{value:l,displayValue:Lt(o)(l)})}),a={category:r,value:i};return I(M({},id(e)),{entries:a})},TH=(e,t)=>{const r=e.options.custom.level,n=r!==e.options.custom.levelsCount,i=t.breakBy.slice(0,r).map((u,c)=>{var f,p,g,b;const h=n?(p=(f=e.custom)==null?void 0:f.rawValues)==null?void 0:p[c]:(b=(g=e.custom)==null?void 0:g.xValue)==null?void 0:b[c];return I(M({},Ve(u)),{value:h,displayValue:h})}),a=t.y.length>=2,o=t.y.filter((u,c)=>!a||e.series.index===c).map(u=>{var h;const c=n?e.value:(h=e.custom)==null?void 0:h.rawValue;return I(M({},Ve(u)),{value:c,displayValue:Lt(u)(c)})}),l={category:i,value:o};return I(M({},id(e)),{entries:l})},MH=(e,t)=>{var i;const r=e.series.type==="scatter",n={};if(r){const a=e.options.y;n.value=[I(M({},Ve(t.outliers)),{value:a,displayValue:Lt(t.outliers)(a)})]}else n.value=[I(M({},Ve(t.boxMin)),{value:e.options.q1,displayValue:Lt(t.boxMin)(e.options.q1)}),I(M({},Ve(t.boxMedian)),{value:e.options.median,displayValue:Lt(t.boxMedian)(e.options.median)}),I(M({},Ve(t.boxMax)),{value:e.options.q3,displayValue:Lt(t.boxMax)(e.options.q3)}),I(M({},Ve(t.whiskerMin)),{value:e.options.low,displayValue:Lt(t.whiskerMin)(e.options.low)}),I(M({},Ve(t.whiskerMax)),{value:e.options.high,displayValue:Lt(t.whiskerMax)(e.options.high)})];if(t.category){const a=(i=e.custom.xValue)==null?void 0:i[0];n.category=[I(M({},Ve(t.category)),{value:a,displayValue:Lt(t.category)(a)})]}return{boxMin:e.options.q1,boxMedian:e.options.median,boxMax:e.options.q3,whiskerMin:e.options.low,whiskerMax:e.options.high,outlier:e.options.y,categoryValue:e.category,categoryDisplayValue:e.category,entries:n}},SH=(e,t)=>{const r=new Date(e.options.date),n=e.options.dateString,i=e.options.value,a=I(M({},Ve(t.date)),{value:n,displayValue:Lt(t.date)(r)}),o=typeof i=="number",l=t.value&&o?I(M({},Ve(t.value)),{value:typeof i=="number"?i:0,displayValue:Lt(t.value)(i)}):void 0;return{entries:{date:a,value:l}}};function Yh(e,t){switch(e.series.chart.options.chart.type){case"bubble":case"scatter":return wH(e,t);case"funnel":return xH(e,t);case"pie":return CH(e,t);case"treemap":case"sunburst":return TH(e,t);case"boxplot":return MH(e,t);case"arearange":return _H(e,t);case"heatmap":return SH(e,t);default:return bH(e,t)}}function EH(e,t){const r={};return t.geo&&(r.geo=[I(M({},Ve(t.geo)),{value:e.geoName})]),t.color&&(r.color=[I(M({},Ve(t.color)),{value:e.originalValue})]),I(M({},e),{entries:r})}class z0{constructor(t,r){Xe(this,"httpClient");Xe(this,"defaultDataSource");Xe(this,"getDashboards",(...r)=>er(this,[...r],function*(t={}){const{fields:n,expand:i,searchByTitle:a}=t,o=new URLSearchParams(M(M(M({},a&&{name:a}),(n==null?void 0:n.length)&&{fields:n==null?void 0:n.join(",")}),(i==null?void 0:i.length)&&{expand:i==null?void 0:i.join(",")})).toString(),l=yield this.httpClient.get(`api/v1/dashboards?${o}`);if(!l)return[];const u=l.map(c=>er(this,null,function*(){if(c.oid&&!c.datasource){const h=yield this.getDashboard(c.oid,{fields:["datasource"]});return h!=null&&h.datasource?I(M({},c),{datasource:h.datasource}):c}return c}));return Promise.all(u)}));Xe(this,"getDashboard",(t,r={})=>{const{fields:n,sharedMode:i}=r,a=new URLSearchParams(M(M({},(n==null?void 0:n.length)&&{fields:n==null?void 0:n.join(",")}),i&&{sharedMode:"true"})).toString();return this.httpClient.get(`api/v1/dashboards/${t}?${a}`).catch(()=>{throw new j.TranslatableError("errors.dashboardInvalidIdentifier")})});Xe(this,"getDashboardLegacy",t=>this.httpClient.get(`api/dashboards/${t}`).catch(()=>{throw new j.TranslatableError("errors.dashboardInvalidIdentifier")}));Xe(this,"getDashboardWidgets",(t,r)=>{const n=new URLSearchParams(M({},r&&{sharedMode:"true"})).toString();return this.httpClient.get(`api/v1/dashboards/${t}/widgets?${n}`).catch(()=>{throw new j.TranslatableError("errors.dashboardWidgetsInvalidIdentifiers")})});Xe(this,"getWidget",(t,r,n)=>{const i=new URLSearchParams(M({},n&&{sharedMode:"true"})).toString();return this.httpClient.get(`api/v1/dashboards/${r}/widgets/${t}?${i}`).catch(()=>{throw new j.TranslatableError("errors.widgetByIdInvalidIdentifier")})});Xe(this,"getCountriesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/world"));Xe(this,"getUsaStatesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/usa"));Xe(this,"getPalettes",()=>this.httpClient.get("api/palettes"));Xe(this,"getHierarchies",({dataSource:t=this.defaultDataSource,dimension:r,ids:n,alwaysIncluded:i})=>{const a="granularity"in r;let o="";if(!t)throw new j.TranslatableError("errors.missingDataSource");if(a){const{level:u,dateTimeLevel:c}=r.translateGranularityToJaql();o=u!=null?u:c}const l=new URLSearchParams(M(M(M({elasticube:j.getDataSourceName(t),table:j.getTableNameFromAttribute(r),column:j.getColumnNameFromAttribute(r)},o&&{dateLevel:o}),i&&{alwaysIncluded:`${i}`}),(n==null?void 0:n.length)&&{ids:n.join(",")})).toString();return this.httpClient.get(`api/elasticubes/hierarchies?${l}`).then((u=[])=>y.isUndefined(i)&&(n==null?void 0:n.length)?u.filter(({_id:h})=>n.includes(h)):u)});Xe(this,"patchDashboard",(t,r,n)=>{const i=new URLSearchParams(M({},n&&{sharedMode:"true"})).toString();return this.httpClient.patch(`api/v1/dashboards/${t}?${i}`,r)});Xe(this,"addWidgetToDashboard",(t,r,n)=>{const i=new URLSearchParams(M({},n&&{sharedMode:"true"})).toString();return this.httpClient.post(`api/v1/dashboards/${t}/widgets?${i}`,r)});Xe(this,"deleteWidgetFromDashboard",(t,r,n)=>{const i=new URLSearchParams(M({},n&&{sharedMode:"true"})).toString();return this.httpClient.delete(`api/v1/dashboards/${t}/widgets/${r}?${i}`)});Xe(this,"getSharedFormulas",t=>er(this,null,function*(){return(yield Promise.all(t.map(this.getSharedFormula))).filter(PH).reduce((n,i)=>(n[i.oid]=i,n),{})}));Xe(this,"getSharedFormula",t=>er(this,null,function*(){return this.httpClient.get(`api/v1/formulas/${t}`)}));Xe(this,"getDataSourceFields",(t,r)=>{const{offset:n=0,count:i=9999}=r||{};return this.httpClient.post(`api/datasources/${encodeURIComponent(t)}/fields/search`,{offset:n,count:i,term:r==null?void 0:r.searchValue})});if(!t)throw new j.TranslatableError("errors.httpClientNotFound");this.httpClient=t,this.defaultDataSource=r}}function PH(e){return!!e}const Mx=()=>{const{app:e}=Et();return{restApi:k.useMemo(()=>e&&new z0(e.httpClient,e.defaultDataSource),[e]),isReady:!!e}};class AH extends j.TranslatableError{constructor(){super("errors.restApiNotReady")}}const RH=e=>{const{isReady:t,restApi:r}=Mx(),[n,i]=k.useState(),[a,o]=k.useState(),l=NH();return k.useEffect(()=>{if(!l||!t||!r)return;er(exports,null,function*(){try{const c=LH(e,l),h=OH(c);if(h)i(h);else{IH(e);let f;switch(e){case"world":f=r.getCountriesGeoJson;break;case"usa":f=r.getUsaStatesGeoJson;break;default:throw new j.TranslatableError("errors.unsupportedMapType",{mapType:e})}const p=yield f();if(!p)throw new j.TranslatableError("errors.mapLoadingFailed");const g=e==="world"?DH(p):p;kH(g,c),i(g)}}catch(c){o(c)}})},[r,t,e,l]),{geoJson:n,error:a}};function OH(e){const t=localStorage.getItem(e);if(t)return JSON.parse(t)}function kH(e,t){localStorage.setItem(t,JSON.stringify(e))}function DH(e){const t=j.cloneDeep(e);return t.features.forEach(r=>{var n;r.id==="-99"&&(r.id=(n=r.properties)==null?void 0:n.name)}),t}function NH(){const{app:e}=Et();return e==null?void 0:e.settings.serverVersion}function LH(e,t){return`geoJson_${e}_${t}`}function IH(e){Object.keys(localStorage).forEach(r=>{r.startsWith(`geoJson_${e}`)&&localStorage.removeItem(r)})}const $H=({chartData:e,dataOptions:t,designOptions:r,onDataPointClick:n})=>{const{themeSettings:i}=ot(),{geoJson:a}=RH(r.mapType),o=k.useMemo(()=>t.color?e.geoData:e.geoData.map(u=>I(M({},u),{color:y.getPaletteColor(i.palette.variantColors,0)})),[e.geoData,t,i]),l=k.useCallback((u,c)=>{if(!n)return;const h=EH(u,t);n(h,c)},[t,n]);return y.jsx(y.Fragment,{children:a&&y.jsx(oH,{geoJson:a,geoData:o,dataOptions:{originalValueTitle:t.color?y.getDataOptionTitle(t.color):"",onAreaClick:l},mapType:r.mapType})})},Sx=e=>e.type==="areamap"&&"geoData"in e,FH=e=>"geo"in e,zH=e=>"mapType"in e,BH=e=>!!e.chartData&&Sx(e.chartData)&&FH(e.dataOptions)&&zH(e.designOptions),HH={dataOptions:w$,data:_$,designOptions:T$,renderer:{ChartRendererComponent:$H,isCorrectRendererProps:BH}},WH={[j.DateLevels.Years]:"attribute.datetimeName.years",[j.DateLevels.Quarters]:"attribute.datetimeName.quarters",[j.DateLevels.Months]:"attribute.datetimeName.months",[j.DateLevels.Weeks]:"attribute.datetimeName.weeks",[j.DateLevels.Days]:"attribute.datetimeName.days",[j.DateLevels.AggHours]:"attribute.datetimeName.hours",[j.DateLevels.AggMinutesRoundTo15]:"attribute.datetimeName.minutes"};function jH(e,t,r){return r?e(WH[r],{columnName:t}):t}function Ex(e,t,r){const n=j.getColumnNameFromAttribute(e),i=r?jH(r,n,t):n;return new j.DimensionalLevelAttribute(i,e.expression,t,j.DimensionalLevelAttribute.getDefaultFormatForGranularity(t),void 0,void 0,e.dataSource)}const na=e=>{var t;return{x:e.category.map(r=>y.normalizeColumn(r)),y:e.value.map(r=>y.normalizeMeasureColumn(r)),breakBy:((t=e.breakBy)==null?void 0:t.map(r=>y.normalizeColumn(r)))||[],seriesToColorMap:e.seriesToColorMap}};function go(e){return[...e.x.map(Op),...e.breakBy.map(Op)].filter(Px)}function vo(e){return e.y.map(Op).filter(y.isMeasureColumn)}function yo(e){return"category"in e&&j.isArray(e.category)&&"value"in e&&j.isArray(e.value)&&"breakBy"in e&&j.isArray(e.breakBy)}function bo(e){return"x"in e&&j.isArray(e.x)&&e.x.every(y.isStyledColumn)&&"y"in e&&j.isArray(e.y)&&e.y.every(y.isStyledColumn)&&"breakBy"in e&&j.isArray(e.breakBy)&&e.breakBy.every(y.isStyledColumn)}function Op(e){return e.column}function Px(e){return!y.isMeasureColumn(e)}function ad(e){return e.y.some(t=>t.showOnRightAxis)}function VH(e){const t=y.normalizeColumn(e.date),r=y.normalizeMeasureColumn(e.value),n=t.column;return j.isDimensionalLevelAttribute(n)&&n.granularity!==j.DateLevels.Days&&(console.warn('The calendar heatmap chart’s "date" data option supports only day level granularity. Converted to day level.'),t.column=Ex(n,j.DateLevels.Days)),{date:t,value:r}}function GH(e){const t=e.date.column;return Px(t)?[t]:[]}function UH(e){const t=e.value.column;return y.isMeasureColumn(t)?[t]:[]}function YH(e){if(!("date"in e&&e.date&&"value"in e&&e.value))return!1;const r=y.normalizeColumn(e.date);return j.isDatetime(r.column.type)}function Ax(e){return"date"in e&&"value"in e&&typeof e.date=="object"&&typeof e.value=="object"}function qH(e,t){const r=y.getColumnByName(t,e.date.column.name),n=y.getColumnByName(t,e.value.column.name);if(!r||!n)return{type:y.CALENDAR_HEATMAP_DATA_TYPE,values:[]};const i=t.rows.map(a=>{const o=y.getValue(a,r),l=y.getValue(a,n),{compareValue:u,color:c}=y.getValues(a,[n])[0],f=!(u!=null&&u.valueIsNaN)&&!(u!=null&&u.valueUndefined)?l:void 0,p=y.isBlurred(a,n);return{date:new Date(o),value:f,color:c,blur:p}});return{type:y.CALENDAR_HEATMAP_DATA_TYPE,values:i}}function Rx(e){return e.type===y.CALENDAR_HEATMAP_DATA_TYPE}function XH(e){var t,r,n,i,a,o,l,u,c,h,f,p,g,b,v,w,C,T,E,S,P,R,N,W;return I(M({},xr),{width:e.width,height:e.height,subtype:e.subtype||y.CALENDAR_HEATMAP_DEFAULTS.SUBTYPE,viewType:e.viewType||y.CALENDAR_HEATMAP_DEFAULTS.VIEW_TYPE,startOfWeek:e.startOfWeek||y.CALENDAR_HEATMAP_DEFAULTS.START_OF_WEEK,cellLabels:{enabled:(r=(t=e.cellLabels)==null?void 0:t.enabled)!=null?r:y.CALENDAR_HEATMAP_DEFAULTS.SHOW_CELL_LABEL,style:((n=e.cellLabels)==null?void 0:n.textStyle)||((i=e.cellLabels)==null?void 0:i.style)},dayLabels:{enabled:(o=(a=e.dayLabels)==null?void 0:a.enabled)!=null?o:y.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL,style:((l=e.dayLabels)==null?void 0:l.textStyle)||((u=e.dayLabels)==null?void 0:u.style)},monthLabels:{enabled:(h=(c=e.monthLabels)==null?void 0:c.enabled)!=null?h:y.CALENDAR_HEATMAP_DEFAULTS.SHOW_MONTH_LABEL,style:((f=e.monthLabels)==null?void 0:f.textStyle)||((p=e.monthLabels)==null?void 0:p.style)},weekends:{enabled:(b=(g=e.weekends)==null?void 0:g.enabled)!=null?b:y.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_ENABLED,days:(w=(v=e.weekends)==null?void 0:v.days)!=null?w:[...y.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_DAYS],cellColor:(T=(C=e.weekends)==null?void 0:C.cellColor)!=null?T:y.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_CELL_COLOR,hideValues:(S=(E=e.weekends)==null?void 0:E.hideValues)!=null?S:y.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_HIDE_VALUES},pagination:{enabled:(R=(P=e.pagination)==null?void 0:P.enabled)!=null?R:y.CALENDAR_HEATMAP_DEFAULTS.SHOW_PAGINATION,style:(N=e.pagination)==null?void 0:N.textStyle,startMonth:(W=e.pagination)==null?void 0:W.startMonth}})}function ZH(e){return typeof e=="object"&&e!==null}function KH(e=al(),t=sl){return(r,n)=>ll(r,n,e,t)}function Ox(){const{app:e}=Et();return k.useCallback((t,r)=>KH(e==null?void 0:e.settings.locale,e==null?void 0:e.settings.dateConfig)(t,r),[e==null?void 0:e.settings.locale,e==null?void 0:e.settings.dateConfig])}var kx={exports:{}};(function(e,t){(function(r,n){e.exports=n(k)})(typeof self!="undefined"?self:y.commonjsGlobal,function(r){return function(n){function i(o){if(a[o])return a[o].exports;var l=a[o]={i:o,l:!1,exports:{}};return n[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}var a={};return i.m=n,i.c=a,i.d=function(o,l,u){i.o(o,l)||Object.defineProperty(o,l,{configurable:!1,enumerable:!0,get:u})},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="",i(i.s=0)}([function(n,i,a){function o(){return o=Object.assign?Object.assign.bind():function(T){for(var E=1;E<arguments.length;E++){var S=arguments[E];for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(T[P]=S[P])}return T},o.apply(this,arguments)}function l(T){return f(T)||h(T)||c(T)||u()}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
196
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(T,E){if(T){if(typeof T=="string")return p(T,E);var S=Object.prototype.toString.call(T).slice(8,-1);return S==="Object"&&T.constructor&&(S=T.constructor.name),S==="Map"||S==="Set"?Array.from(T):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?p(T,E):void 0}}function h(T){if(typeof Symbol!="undefined"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}function f(T){if(Array.isArray(T))return p(T)}function p(T,E){(E==null||E>T.length)&&(E=T.length);for(var S=0,P=new Array(E);S<E;S++)P[S]=T[S];return P}function g(T){"@babel/helpers - typeof";return(g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(T)}Object.defineProperty(i,"__esModule",{value:!0}),a.d(i,"HighchartsReact",function(){return C});var b=a(1),v=a.n(b),w=typeof window!="undefined"?b.useLayoutEffect:b.useEffect,C=Object(b.memo)(Object(b.forwardRef)(function(T,E){var S=Object(b.useRef)(),P=Object(b.useRef)(),R=Object(b.useRef)(T.constructorType),N=Object(b.useRef)(T.highcharts);return w(function(){function W(){var K=T.highcharts||(typeof window=="undefined"?"undefined":g(window))==="object"&&window.Highcharts,Z=T.constructorType||"chart";K?K[Z]?T.options?P.current=K[Z](S.current,T.options,T.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(P.current){if(T.allowChartUpdate!==!1)if(T.constructorType!==R.current||T.highcharts!==N.current)R.current=T.constructorType,N.current=T.highcharts,W();else if(!T.immutable&&P.current){var G;(G=P.current).update.apply(G,[T.options].concat(l(T.updateArgs||[!0,!0])))}else W()}else W()},[T.options,T.allowChartUpdate,T.updateArgs,T.containerProps,T.highcharts,T.constructorType]),w(function(){return function(){P.current&&(P.current.destroy(),P.current=null)}},[]),Object(b.useImperativeHandle)(E,function(){return{get chart(){return P.current},container:S}},[]),v.a.createElement("div",o({},T.containerProps,{ref:S}))}));i.default=C},function(n,i){n.exports=r}])})})(kx);var QH=kx.exports;const JH=y.getDefaultExportFromCjs(QH);function od(e){const t=k.useRef(void 0);return k.useEffect(()=>{t.current=e},[e]),t.current}var Dx={exports:{}};(function(e){(function(t){e.exports?e.exports=t:t(Highcharts)})(function(t){var r=t.relativeLength;t.wrap(t.seriesTypes.column.prototype,"translate",function(n){var i=this.options,a=i.topMargin||0,o=i.bottomMargin||0;n.call(this),this.points.forEach(function(l){var u=l.shapeArgs,c=u.width,h=u.height,f=u.x,p=u.y,g=r(i.borderRadiusTopLeft||0,c),b=r(i.borderRadiusTopRight||0,c),v=r(i.borderRadiusBottomRight||0,c),w=r(i.borderRadiusBottomLeft||0,c);if(g||b||v||w){var C=Math.min(c,h)/2;g>C&&(g=C),b>C&&(b=C),v>C&&(v=C),w>C&&(w=C),l.dlBox=l.shapeArgs,l.shapeType="path",l.shapeArgs={d:[["M",f+g,p+a],["L",f+c-b,p+a],["C",f+c-b/2,p,f+c,p+b/2,f+c,p+b],["L",f+c,p+h-v],["C",f+c,p+h-v/2,f+c-v/2,p+h,f+c-v,p+h+o],["L",f+w,p+h+o],["C",f+w/2,p+h,f,p+h-w/2,f,p+h-w],["L",f,p+g],["C",f,p+g/2,f+g/2,p,f+g,p],["Z"]]}}})})})})(Dx);var eW=Dx.exports;const tW=y.getDefaultExportFromCjs(eW);var Nx={exports:{}};(function(e){(function(t){e.exports?(t.default=t,e.exports=t):t(typeof Highcharts!="undefined"?Highcharts:void 0)})(function(t){function r(n,i,a,o){n.hasOwnProperty(i)||(n[i]=o.apply(null,a),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:n[i]}})))}t=t?t._modules:{},r(t,"Extensions/SeriesLabel/SeriesLabelDefaults.js",[],function(){return{enabled:!0,connectorAllowed:!1,connectorNeighbourDistance:24,format:void 0,formatter:void 0,minFontSize:null,maxFontSize:null,onArea:null,style:{fontWeight:"bold"},useHTML:!1,boxesToAvoid:[]}}),r(t,"Extensions/SeriesLabel/SeriesLabelUtilities.js",[],function(){function n(a,o,l,u,c,h){return a=(h-o)*(l-a)-(u-o)*(c-a),0<a?!0:!(0>a)}function i(a,o,l,u,c,h,f,p){return n(a,o,c,h,f,p)!==n(l,u,c,h,f,p)&&n(a,o,l,u,c,h)!==n(a,o,l,u,f,p)}return{boxIntersectLine:function(a,o,l,u,c,h,f,p){return i(a,o,a+l,o,c,h,f,p)||i(a+l,o,a+l,o+u,c,h,f,p)||i(a,o+u,a+l,o+u,c,h,f,p)||i(a,o,a,o+u,c,h,f,p)},intersectRect:function(a,o){return!(o.left>a.right||o.right<a.left||o.top>a.bottom||o.bottom<a.top)}}}),r(t,"Extensions/SeriesLabel/SeriesLabel.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Chart/Chart.js"],t["Core/FormatUtilities.js"],t["Core/Defaults.js"],t["Extensions/SeriesLabel/SeriesLabelDefaults.js"],t["Extensions/SeriesLabel/SeriesLabelUtilities.js"],t["Core/Utilities.js"]],function(n,i,a,o,l,u,c){function h(O,$,X,B,V){var H=O.chart,U=O.options.label||{},te=G(U.onArea,!!O.area),F=te||U.connectorAllowed,Y=H.boxesToAvoid,ne=Number.MAX_VALUE,ie=Number.MAX_VALUE,re,oe,le;for(le=0;Y&&le<Y.length;le+=1)if(S(Y[le],{left:$,right:$+B.width,top:X,bottom:X+B.height}))return!1;for(le=0;le<H.series.length;le+=1){var de=H.series[le];if(Y=de.interpolatedPoints&&v([],de.interpolatedPoints,!0),de.visible&&Y){var ce=H.plotHeight/10;for(oe=H.plotTop;oe<=H.plotTop+H.plotHeight;oe+=ce)Y.unshift({chartX:H.plotLeft,chartY:oe}),Y.push({chartX:H.plotLeft+H.plotWidth,chartY:oe});for(ce=1;ce<Y.length;ce+=1){if(Y[ce].chartX>=$-16&&Y[ce-1].chartX<=$+B.width+16){if(E($,X,B.width,B.height,Y[ce-1].chartX,Y[ce-1].chartY,Y[ce].chartX,Y[ce].chartY))return!1;O===de&&!re&&V&&(re=E($-16,X-16,B.width+32,B.height+32,Y[ce-1].chartX,Y[ce-1].chartY,Y[ce].chartX,Y[ce].chartY))}if((F||re)&&(O!==de||te)){oe=$+B.width/2-Y[ce].chartX;var ve=X+B.height/2-Y[ce].chartY;ne=Math.min(ne,oe*oe+ve*ve)}}if(!te&&F&&O===de&&(V&&!re||ne<Math.pow(U.connectorNeighbourDistance||1,2))){for(ce=1;ce<Y.length;ce+=1)if(re=Math.min(Math.pow($+B.width/2-Y[ce].chartX,2)+Math.pow(X+B.height/2-Y[ce].chartY,2),Math.pow($-Y[ce].chartX,2)+Math.pow(X-Y[ce].chartY,2),Math.pow($+B.width-Y[ce].chartX,2)+Math.pow(X-Y[ce].chartY,2),Math.pow($+B.width-Y[ce].chartX,2)+Math.pow(X+B.height-Y[ce].chartY,2),Math.pow($-Y[ce].chartX,2)+Math.pow(X+B.height-Y[ce].chartY,2)),re<ie){ie=re;var Ce=Y[ce]}re=!0}}}return!V||re?{x:$,y:X,weight:ne-(Ce?ie:0),connectorPoint:Ce}:!1}function f(O){O.boxesToAvoid=[];var $=O.labelSeries||[],X=O.boxesToAvoid;O.series.forEach(function(B){return(B.points||[]).forEach(function(V){return(V.dataLabels||[]).forEach(function(H){var U=H.getBBox(),te=H.translateX+(B.xAxis?B.xAxis.pos:B.chart.plotLeft);H=H.translateY+(B.yAxis?B.yAxis.pos:B.chart.plotTop),X.push({left:te,top:H,right:te+U.width,bottom:H+U.height})})})}),$.forEach(function(B){var V=B.options.label||{};B.interpolatedPoints=p(B),X.push.apply(X,V.boxesToAvoid||[])}),O.series.forEach(function(B){function V(ke,$e,je){var Ue=Math.max(ie,G(we,-1/0)),ir=Math.min(ie+oe,G(Ee,1/0));return ke>Ue&&ke<=ir-je.width&&$e>=re&&$e<=re+le-je.height}var H=B.options.label;if(H&&(B.xAxis||B.yAxis)){var U="highcharts-color-"+G(B.colorIndex,"none"),te=!B.labelBySeries,F=H.minFontSize,Y=H.maxFontSize,ne=O.inverted,ie=ne?B.yAxis.pos:B.xAxis.pos,re=ne?B.xAxis.pos:B.yAxis.pos,oe=O.inverted?B.yAxis.len:B.xAxis.len,le=O.inverted?B.xAxis.len:B.yAxis.len,de=B.interpolatedPoints,ce=G(H.onArea,!!B.area),ve=[],Ce=B.xData||[],ye,J=B.labelBySeries;if(ce&&!ne){ne=[B.xAxis.toPixels(Ce[0]),B.xAxis.toPixels(Ce[Ce.length-1])];var we=Math.min.apply(Math,ne),Ee=Math.max.apply(Math,ne)}if(B.visible&&!B.boosted&&de){for(J||(J=B.name,typeof H.format=="string"?J=C(H.format,B,O):H.formatter&&(J=H.formatter.call(B)),B.labelBySeries=J=O.renderer.label(J,0,0,"connector",0,0,H.useHTML).addClass("highcharts-series-label highcharts-series-label-"+B.index+" "+(B.options.className||"")+" "+U),O.renderer.styledMode||(U=typeof B.color=="string"?B.color:"#666666",J.css(R({color:ce?O.renderer.getContrast(U):U},H.style||{})),J.attr({opacity:O.renderer.forExport?1:0,stroke:B.color,"stroke-width":1})),F&&Y&&J.css({fontSize:F+(B.sum||0)/(B.chart.labelSeriesMaxSum||0)*(Y-F)+"px"}),J.attr({padding:0,zIndex:3}).add()),F=J.getBBox(),F.width=Math.round(F.width),ne=de.length-1;0<ne;--ne)ce?(Y=de[ne].chartX-F.width/2,U=(de[ne].chartCenterY||0)-F.height/2,V(Y,U,F)&&(ye=h(B,Y,U,F))):(Y=de[ne].chartX+3,U=de[ne].chartY-F.height-3,V(Y,U,F)&&(ye=h(B,Y,U,F,!0)),ye&&ve.push(ye),Y=de[ne].chartX+3,U=de[ne].chartY+3,V(Y,U,F)&&(ye=h(B,Y,U,F,!0)),ye&&ve.push(ye),Y=de[ne].chartX-F.width-3,U=de[ne].chartY+3,V(Y,U,F)&&(ye=h(B,Y,U,F,!0)),ye&&ve.push(ye),Y=de[ne].chartX-F.width-3,U=de[ne].chartY-F.height-3,V(Y,U,F)&&(ye=h(B,Y,U,F,!0))),ye&&ve.push(ye);if(H.connectorAllowed&&!ve.length&&!ce)for(Y=ie+oe-F.width;Y>=ie;Y-=16)for(U=re;U<re+le-F.height;U+=16)(ye=h(B,Y,U,F,!0))&&ve.push(ye);ve.length?(ve.sort(function(ke,$e){return $e.weight-ke.weight}),ye=ve[0],(O.boxesToAvoid||[]).push({left:ye.x,right:ye.x+F.width,top:ye.y,bottom:ye.y+F.height}),(de=Math.sqrt(Math.pow(Math.abs(ye.x-(J.x||0)),2)+Math.pow(Math.abs(ye.y-(J.y||0)),2)))&&B.labelBySeries&&(ve={opacity:O.renderer.forExport?1:0,x:ye.x,y:ye.y},H={opacity:1},10>=de&&(H={x:ve.x,y:ve.y},ve={}),de=void 0,te&&(de=w(B.options.animation),de.duration*=.2),B.labelBySeries.attr(R(ve,{anchorX:ye.connectorPoint&&(ye.connectorPoint.plotX||0)+ie,anchorY:ye.connectorPoint&&(ye.connectorPoint.plotY||0)+re})).animate(H,de),B.options.kdNow=!0,B.buildKDTree(),B=B.searchPoint({chartX:ye.x,chartY:ye.y},!0))&&(J.closest=[B,ye.x-(B.plotX||0),ye.y-(B.plotY||0)])):J&&(B.labelBySeries=J.destroy())}else J&&(B.labelBySeries=J.destroy())}}),N(O,"afterDrawSeriesLabels")}function p(O){function $(ce){var ve=Math.round((ce.plotX||0)/8)+","+Math.round((ce.plotY||0)/8);ie[ve]||(ie[ve]=1,B.push(ce))}if(O.xAxis||O.yAxis){var X=O.points,B=[],V=O.graph||O.area,H=V&&V.element,U=O.chart.inverted,te=O.xAxis,F=O.yAxis,Y=U?F.pos:te.pos;U=U?te.pos:F.pos,te=G((O.options.label||{}).onArea,!!O.area);var ne=F.getThreshold(O.options.threshold),ie={};if(O.getPointSpline&&H&&H.getPointAtLength&&!te&&X.length<(O.chart.plotSizeX||0)/16){for(te=V.toD&&V.attr("d"),V.toD&&V.attr({d:V.toD}),F=H.getTotalLength(),O=0;O<F;O+=16)ne=H.getPointAtLength(O),$({chartX:Y+ne.x,chartY:U+ne.y,plotX:ne.x,plotY:ne.y});te&&V.attr({d:te});var re=X[X.length-1];$({chartX:Y+(re.plotX||0),chartY:U+(re.plotY||0)})}else for(F=X.length,V=void 0,O=0;O<F;O+=1){re=X[O],H=re.plotX;var oe=re.plotY;if(W(H)&&W(oe)){var le={plotX:H,plotY:oe,chartX:Y+H,chartY:U+oe};if(te&&(le.chartCenterY=U+(oe+G(re.yBottom,ne))/2),V){re=Math.abs(le.chartX-V.chartX);var de=Math.abs(le.chartY-V.chartY);if(re=Math.max(re,de),16<re)for(re=Math.ceil(re/16),de=1;de<re;de+=1)$({chartX:V.chartX+de/re*(le.chartX-V.chartX),chartY:V.chartY+de/re*(le.chartY-V.chartY),chartCenterY:(V.chartCenterY||0)+de/re*((le.chartCenterY||0)-(V.chartCenterY||0)),plotX:(V.plotX||0)+de/re*(H-(V.plotX||0)),plotY:(V.plotY||0)+de/re*(oe-(V.plotY||0))})}$(le),V=le}}return B}}function g(O){if(this.renderer){var $=this,X=w($.renderer.globalAnimation).duration;$.labelSeries=[],$.labelSeriesMaxSum=0,$.seriesLabelTimer&&c.clearTimeout($.seriesLabelTimer),$.series.forEach(function(B){var V=B.options.label||{},H=B.labelBySeries,U=H&&H.closest;V.enabled&&B.visible&&(B.graph||B.area)&&!B.boosted&&$.labelSeries&&($.labelSeries.push(B),V.minFontSize&&V.maxFontSize&&B.yData&&(B.sum=B.yData.reduce(function(te,F){return(te||0)+(F||0)},0),$.labelSeriesMaxSum=Math.max($.labelSeriesMaxSum||0,B.sum||0)),O.type==="load"&&(X=Math.max(X,w(B.options.animation).duration)),U&&(typeof U[0].plotX!="undefined"?H.animate({x:U[0].plotX+U[1],y:U[0].plotY+U[2]}):H.attr({opacity:0})))}),$.seriesLabelTimer=K(function(){$.series&&$.labelSeries&&f($)},$.renderer.forExport||!X?0:X)}}function b(O,$,X,B,V){var H=V&&V.anchorX;V=V&&V.anchorY;var U=X/2;if(W(H)&&W(V)){var te=[["M",H,V]],F=$-V;0>F&&(F=-B-F),F<X&&(U=H<O+X/2?F:X-F),V>$+B?te.push(["L",O+U,$+B]):V<$?te.push(["L",O+U,$]):H<O?te.push(["L",O,$+B/2]):H>O+X&&te.push(["L",O+X,$+B/2])}return te||[]}var v=this&&this.__spreadArray||function(O,$,X){if(X||arguments.length===2)for(var B=0,V=$.length,H;B<V;B++)!H&&B in $||(H||(H=Array.prototype.slice.call($,0,B)),H[B]=$[B]);return O.concat(H||Array.prototype.slice.call($))},w=n.animObject,C=a.format,T=o.setOptions,E=u.boxIntersectLine,S=u.intersectRect,P=c.addEvent,R=c.extend,N=c.fireEvent,W=c.isNumber,G=c.pick,K=c.syncTimeout,Z=[];return{compose:function(O,$){Z.indexOf(O)===-1&&(Z.push(O),P(i,"load",g),P(i,"redraw",g)),Z.indexOf($)===-1&&(Z.push($),$.prototype.symbols.connector=b),Z.indexOf(T)===-1&&(Z.push(T),T({plotOptions:{series:{label:l}}}))}}}),r(t,"masters/modules/series-label.src.js",[t["Core/Globals.js"],t["Extensions/SeriesLabel/SeriesLabel.js"]],function(n,i){i.compose(n.Chart,n.SVGRenderer)})})})(Nx);var rW=Nx.exports;const nW=y.getDefaultExportFromCjs(rW);var Lx={exports:{}};(function(e){(function(t){e.exports?(t.default=t,e.exports=t):t(typeof Highcharts!="undefined"?Highcharts:void 0)})(function(t){function r(n,i,a,o){n.hasOwnProperty(i)||(n[i]=o.apply(null,a),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:n[i]}})))}t=t?t._modules:{},r(t,"Series/Streamgraph/StreamgraphSeries.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(n,i){var a=this&&this.__extends||function(){var c=function(h,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var b in g)g.hasOwnProperty(b)&&(p[b]=g[b])},c(h,f)};return function(h,f){function p(){this.constructor=h}c(h,f),h.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}(),o=n.seriesTypes.areaspline,l=i.merge;i=i.extend;var u=function(c){function h(){var f=c!==null&&c.apply(this,arguments)||this;return f.data=void 0,f.points=void 0,f.options=void 0,f}return a(h,c),h.prototype.streamStacker=function(f,p,g){f[0]-=p.total/2,f[1]-=p.total/2,this.stackedYData[g]=f},h.defaultOptions=l(o.defaultOptions,{fillOpacity:1,lineWidth:0,marker:{enabled:!1},stacking:"stream"}),h}(o);return i(u.prototype,{negStacks:!1}),n.registerSeriesType("streamgraph",u),u}),r(t,"masters/modules/streamgraph.src.js",[],function(){})})})(Lx);var iW=Lx.exports;const aW=y.getDefaultExportFromCjs(iW),oW=()=>{typeof y.Highcharts=="object"&&(nW(y.Highcharts),aW(y.Highcharts)),function(e){e.seriesTypes.line.prototype.drawLegendSymbol=e.seriesTypes.area.prototype.drawLegendSymbol,y.Highcharts.wrap(y.Highcharts.Series.types.treemap.prototype,"pointAttribs",function(t,...r){var a;const n=t.call(this,...r),i=r[0];return(a=i.options.custom)!=null&&a.blur&&(n.fill=y.Highcharts.color(i.color).setOpacity(.2).get("rgba"),n.stroke=y.Highcharts.color(n.stroke).setOpacity(.2).get("rgba")),n})}(y.Highcharts),function(e){e.Point.prototype.importEvents=function(){const t=this;this.importedEvents&&this.importedEvents.forEach(function(i){i()}),this.importedEvents=[];const r=e.merge(t.series.options.point,t.options),n=r.events;t.events=n,e.objectEach(n,function(i,a){e.isFunction(i)&&t.importedEvents.push(e.addEvent(t,a,i))})}}(y.Highcharts),tW(y.Highcharts)};oW();const sW={style:{height:"100%",width:"100%"}},B0=({options:e})=>{var h,f,p,g,b,v;const t=od(e),r=k.useCallback(w=>{var T,E,S,P,R,N,W,G;const C=e;!((P=(S=(E=(T=C==null?void 0:C.plotOptions)==null?void 0:T.series)==null?void 0:E.point)==null?void 0:S.events)!=null&&P.click)&&!((G=(W=(N=(R=C==null?void 0:C.plotOptions)==null?void 0:R.series)==null?void 0:N.point)==null?void 0:W.events)!=null&&G.contextmenu)&&(w.container.onclick=null)},[e]),n=w=>w==null?void 0:w.some(({data:C})=>C.some(T=>!!T.marker)),i=(t==null?void 0:t.xAxis)&&(e==null?void 0:e.xAxis)&&((h=t==null?void 0:t.xAxis[0])==null?void 0:h.type)!==((f=e==null?void 0:e.xAxis[0])==null?void 0:f.type),a=!!t&&((p=t==null?void 0:t.navigator)==null?void 0:p.enabled)!==((g=e==null?void 0:e.navigator)==null?void 0:g.enabled),o=n(t==null?void 0:t.series)&&!n(e==null?void 0:e.series),l=!!t&&((b=t==null?void 0:t.chart)==null?void 0:b.type)!==((v=e==null?void 0:e.chart)==null?void 0:v.type),u=i||a||l||o,c=k.useMemo(()=>j.cloneDeep(e),[e]);return y.jsx(JH,{highcharts:y.Highcharts,options:c,containerProps:sW,immutable:u,callback:r})};function lW(e,t,r,n){return j.baseForOwn(e,function(i,a,o){t(n,r(i),a,o)}),n}function uW(e,t){return function(r,n){return lW(r,e,t(n),{})}}var cW=Object.prototype,dW=cW.toString,hW=uW(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=dW.call(t)),e[t]=r},j.constant(j.identity)),H0=(e=>(e.SUNDAY="sunday",e.MONDAY="monday",e.TUESDAY="tuesday",e.WEDNESDAY="wednesday",e.THURSDAY="thursday",e.FRIDAY="friday",e.SATURDAY="saturday",e))(H0||{});const Ix={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6},fW=hW(Ix);function wl(e){return Ix[e]}function pW(e){return fW[e]}function W0(e,t,r=y.SINGLE_LETTER_DAY_DATE_FORMAT){const n=new Date(y.REFERENCE_SUNDAY_DATE),i=wl(e),a=[];for(let o=i;o<i+y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK;o++){const l=new Date(n);l.setDate(n.getDate()+o);const u=t(l,r);a.push(u)}return a}function mW(e){const t=y.getPaletteColor(e.palette.variantColors,0),r=y.scaleBrightness(t,y.CALENDAR_HEATMAP_COLORS.MIN_COLOR_BRIGHTNESS_PERCENT),n=y.scaleBrightness(r,y.CALENDAR_HEATMAP_COLORS.MAX_COLOR_BRIGHTNESS_PERCENT);return{type:"range",minColor:r,maxColor:n}}function gW(e){if(!e)return r=>r;const t=y.createDataColoringFunction({getValueFromDataStructure:r=>{var n;return(n=r.value)!=null?n:0},applyColorToDataStructure:(r,n)=>I(M({},r),{color:r.color||n})});return r=>I(M({},r),{values:t(r.values,e)})}function $x(e,t){if(e==="calendar-heatmap/continuous"){let r;switch(t){case y.ViewType.MONTH:r=1;break;case y.ViewType.QUARTER:r=3;break;case y.ViewType.HALF_YEAR:r=6;break;case y.ViewType.YEAR:r=6;break;default:r=1}const n=Math.ceil(r*5);return{rows:y.CALENDAR_HEATMAP_SIZING.ROWS,cols:n}}else return{rows:y.CALENDAR_HEATMAP_SIZING.ROWS,cols:y.CALENDAR_HEATMAP_SIZING.COLUMNS}}function Fx(e,t,r){if(r==="calendar-heatmap/continuous")return e===y.ViewType.YEAR?{cols:1,rows:2}:{cols:1,rows:1};const n=t.height>t.width;switch(e){case y.ViewType.MONTH:return{cols:1,rows:1};case y.ViewType.QUARTER:return n?{cols:1,rows:3}:{cols:3,rows:1};case y.ViewType.HALF_YEAR:return n?{cols:2,rows:3}:{cols:3,rows:2};case y.ViewType.YEAR:return n?{cols:3,rows:4}:t.width/t.height>2.5?{cols:6,rows:2}:{cols:4,rows:3};default:return{cols:1,rows:1}}}function vW(e,t,r){const n=Fx(t,e,r),i=e.height-y.CALENDAR_HEATMAP_SIZING.PAGINATION_HEIGHT,a=(n.cols-1)*y.CALENDAR_HEATMAP_SIZING.GAP_WIDTH,o=(n.rows-1)*y.CALENDAR_HEATMAP_SIZING.GAP_HEIGHT,l=(e.width-a-y.CALENDAR_HEATMAP_SIZING.MARGINS.LEFT-y.CALENDAR_HEATMAP_SIZING.MARGINS.RIGHT)/n.cols,u=t!==y.ViewType.MONTH?y.CALENDAR_HEATMAP_SIZING.TITLE_HEIGHT:0,c=(i-o-y.CALENDAR_HEATMAP_SIZING.MARGINS.TOP-y.CALENDAR_HEATMAP_SIZING.MARGINS.BOTTOM)/n.rows-u;return{width:l,height:c}}function yW(e,t,r,n){var h;if(!((h=e.values)!=null&&h.length)){const f=$x(r,n);return{rows:f.rows,cols:f.cols}}const i=e.values.map(f=>new Date(f.date)).sort((f,p)=>f.getTime()-p.getTime()),a=i[0],o=wl(t),u=(a.getDay()-o+y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK)%y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,c=Math.ceil((i.length+u)/y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK);return{rows:y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,cols:c}}function bW(e,t){if(e==="calendar-heatmap/split")return{left:0,top:0,right:0};const r=t.width>=y.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return{left:r?60:0,top:r?30:0,right:10}}function _W(e,t,r,n){const i=e/r,a=t/n,o=Math.min(i,a);return Math.max(y.CALENDAR_HEATMAP_SIZING.MIN_CELL_SIZE,Math.min(y.CALENDAR_HEATMAP_SIZING.MAX_CELL_SIZE,o))}function wW(e,t,r,n,i){const a=vW(e,r,t),o=t==="calendar-heatmap/continuous"?yW(n,i,t,r):$x(t,r),l=bW(t,e),u=a.width-l.left-l.right,c=a.height-l.top,h=_W(u,c,o.cols,o.rows),f=o.cols*h,p=o.rows*h,g=Math.min(u,f)+l.left+l.right,b=Math.min(c,p)+l.top;if(t==="calendar-heatmap/continuous")return{width:Math.floor(g),height:Math.floor(b),cellSize:Math.floor(h)};const v=Math.floor(Math.min(g,b));return{width:v,height:v,cellSize:Math.floor(h)}}function xW(e){return new Date(e.year,e.month,2)}function qh(e){return{year:e.getFullYear(),month:e.getMonth()}}function Vn(e,t){return e.year!==t.year?e.year-t.year:e.month-t.month}function CW(e,t,r){const n=Vn(e,t)>=0,i=Vn(e,r)<=0;return n&&i}function Ps(e,t){let{year:r,month:n}=e;for(n+=t;n>11;)n-=12,r++;for(;n<0;)n+=12,r--;return{year:r,month:n}}function Xh(e,t,r){if(e.length>=t)return e;if(e.length===0){const l=new Date,u={year:l.getFullYear(),month:l.getMonth()},c=Ps(u,t-1);return Xi(u,c,r)}const n=e[e.length-1],i=t-e.length,a=Ps(n,i),o=Xi(Ps(n,1),a,r);return[...e,...o]}function Xi(e,t,r){const n=[],i={year:e.year,month:e.month};for(;Vn(i,t)<=0;){const a=xW(i);n.push({year:i.year,month:i.month,monthName:r(a,y.FULL_MONTH_DATE_FORMAT),shortMonthName:r(a,y.SHORT_MONTH_DATE_FORMAT)}),i.month++,i.month>11&&(i.month=0,i.year++)}return n}function TW(e,t,r){if(e.length===0)return Xi(t,t,r);const n=e[0];if(Vn(t,n)>=0)return e;const i={year:n.month===0?n.year-1:n.year,month:n.month===0?11:n.month-1};return[...Xi(t,i,r),...e]}function MW(e,t,r){if(e.length===0)return Xi(t,t,r);const n=e[e.length-1];if(Vn(t,n)<=0)return e;const i={year:n.month===11?n.year+1:n.year,month:n.month===11?0:n.month+1},a=Xi(i,t,r);return[...e,...a]}function SW(e){return e<=y.CALENDAR_HEATMAP_DEFAULTS.SHORT_MONTH_NAME_SPLIT_LAYOUT_WIDTH_THRESHOLD}function EW(e,t){if(!e.values||e.values.length===0)return[];const r=new Set,n=[];return e.values.forEach(i=>{const a=i.date.getFullYear(),o=i.date.getMonth(),l=`${a}-${o}`;r.has(l)||(r.add(l),n.push({year:a,month:o,monthName:t(i.date,y.FULL_MONTH_DATE_FORMAT),shortMonthName:t(i.date,y.SHORT_MONTH_DATE_FORMAT)}))}),n.sort((i,a)=>Vn(i,a))}function PW(e,t,r,n){const i=EW(e,t),a=n?j0(n):1;if(!r)return Xh(i,a,t);if(i.length===0){const c=Ps(r,a-1);return Xi(r,c,t)}const o=i[0],l=i[i.length-1];if(CW(r,o,l))return Xh(i,a,t);let u;if(Vn(r,o)<0)u=TW(i,r,t);else{const c=Ps(r,a-1);u=MW(i,c,t)}return Xh(u,a,t)}function j0(e){switch(e){case y.ViewType.MONTH:return 1;case y.ViewType.QUARTER:return 3;case y.ViewType.HALF_YEAR:return 6;case y.ViewType.YEAR:return 12;default:return 1}}function V0(e,t,r){const n=j0(r),i=e.findIndex(u=>Vn(u,t)===0),a=i>=0?i:0;if(n===1)return e.slice(a,a+1);let o=a,l=Math.min(o+n,e.length);return l-o<n&&e.length>=n&&(o=Math.max(0,e.length-n),l=e.length),e.slice(o,l)}const AW=Gt.div`
197
+ display: grid;
198
+ column-gap: 30px;
199
+ row-gap: 10px;
200
+ grid-template-columns: repeat(${e=>e.gridCols}, 1fr);
201
+ grid-template-rows: repeat(${e=>e.gridRows}, 1fr);
202
+ background-color: transparent;
203
+ place-items: center; /* Center each grid item horizontally and vertically */
204
+ `,RW=Gt.div`
205
+ display: flex;
206
+ flex-direction: column;
207
+ align-items: center;
208
+ `,OW=Gt.h3`
209
+ font-size: 13px;
210
+ font-weight: 400;
211
+ color: #333;
212
+ text-align: center;
213
+ text-transform: capitalize;
214
+ margin: 0;
215
+ height: ${y.CALENDAR_HEATMAP_SIZING.TITLE_HEIGHT}px;
216
+ `,kW=({monthCharts:e,availableMonths:t,currentMonth:r,subtype:n,viewType:i,monthLabels:a,size:o})=>{const{themeSettings:l}=ot(),u=k.useMemo(()=>Fx(i,o,n),[i,n,o]);if(t.length===0)return null;const c=V0(t,r,i);return y.jsx(AW,{viewType:i,gridCols:u.cols,gridRows:u.rows,children:e.map((h,f)=>{var b,v,w;if(!h)return null;const p=c[f];if(!p)return null;const g=SW((b=h.chart.width)!=null?b:0);return y.jsxs(RW,{children:[(a==null?void 0:a.enabled)&&i!==y.ViewType.MONTH&&n==="calendar-heatmap/split"&&y.jsx(OW,{style:I(M({},a.style),{color:((v=a.style)==null?void 0:v.color)||(l==null?void 0:l.chart.textColor),fontFamily:((w=a.style)==null?void 0:w.fontFamily)||(l==null?void 0:l.typography.fontFamily)}),children:g?p.shortMonthName:p.monthName}),y.jsx(B0,{options:h})]},`${p.year}-${p.month}`)})})},S1=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return y.jsx("svg",I(M({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,r].join(" "),children:y.jsxs("g",{fill:(n=e.fill)!=null?n:e.theme.typography.primaryTextColor,fillRule:"nonzero",children:[y.jsx("path",{d:"M11.61 15.62l2.97-3.33-2.83-3.16a.39.39 0 1 1 .59-.5l3.05 3.42a.39.39 0 0 1 0 .5l-3.19 3.58a.39.39 0 1 1-.59-.5zm-3.87 0l2.97-3.33-2.83-3.16a.39.39 0 1 1 .59-.5l3.05 3.42a.39.39 0 0 1 0 .5l-3.19 3.58a.39.39 0 1 1-.59-.5z"}),y.jsx("path",{d:"M16.26 15.86a.39.39 0 0 1-.77 0v-6.97a.39.39 0 0 1 .77 0v6.97z"})]})}))},kp=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return y.jsx("svg",I(M({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,r].join(" "),children:y.jsx("path",{fill:(n=e.fill)!=null?n:e.theme.typography.primaryTextColor,fillRule:"nonzero",d:"M13.34 12.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})}))},Dp=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return y.jsx("svg",I(M({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,r].join(" "),children:y.jsx("path",{fill:(n=e.fill)!=null?n:e.theme.typography.primaryTextColor,fillRule:"nonzero",d:"M11.34 12.5L8.62 9.325a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175zm.279-3.175a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.999 3.5a.5.5 0 1 1-.76-.65l2.72-3.175-2.72-3.175z"})}))};function DW(e,t,r){const n=V0(e,t,r);if(n.length===0)return"";if(r==="month"){const o=n[0];return o?`${o.monthName} ${o.year}`:""}const i=n[0].year,a=n[n.length-1].year;return i===a?`${i}`:`${i} - ${a}`}const NW=Gt.div`
217
+ display: flex;
218
+ justify-content: center;
219
+ align-items: center;
220
+ padding: 10px 20px;
221
+ background-color: transparent;
222
+ height: ${y.CALENDAR_HEATMAP_SIZING.PAGINATION_HEIGHT}px;
223
+ opacity: 1;
224
+ transition: opacity 0.3s ease;
225
+ box-sizing: border-box;
226
+ `,Ea=Gt.button`
227
+ padding: 0;
228
+ background-color: transparent;
229
+ border: none;
230
+ border-radius: 4px;
231
+ cursor: ${e=>e.disabled?"not-allowed":"pointer"};
232
+ display: flex;
233
+ align-items: center;
234
+ justify-content: center;
235
+ transition: all 0.2s ease;
236
+ opacity: ${e=>e.disabled?.3:1};
237
+
238
+ &:hover {
239
+ background-color: ${e=>e.disabled?"transparent":"rgba(0, 0, 0, 0.05)"};
240
+ }
241
+ `,LW=Gt.div`
242
+ font-size: 15px;
243
+ font-weight: 400;
244
+ color: ${({theme:e})=>e.chart.textColor};
245
+ font-family: ${({theme:e})=>e.typography.fontFamily};
246
+ min-width: 110px;
247
+ text-align: center;
248
+ margin: 0 10px;
249
+ text-transform: capitalize;
250
+ `,IW=({value:e,availableMonths:t,viewType:r,onChange:n,labelStyle:i})=>{const{themeSettings:a}=ot(),{t:o}=y.useTranslation(),l=j0(r),u=t.findIndex(Z=>Vn(Z,e)===0),c=()=>{const Z=t[0];Z&&n({year:Z.year,month:Z.month})},h=()=>{if(u>0){const Z=t[u-1];n({year:Z.year,month:Z.month})}},f=()=>{if(u<t.length-1){const Z=t[u+1];n({year:Z.year,month:Z.month})}},p=()=>{const Z=Math.max(0,t.length-l),O=t[Z];O&&n({year:O.year,month:O.month})},g=()=>{const Z=Math.max(0,u-l),O=t[Z];O&&n({year:O.year,month:O.month})},b=()=>{const Z=Math.min(t.length-l,u+l),O=t[Z];O&&n({year:O.year,month:O.month})},v=u===0,w=l===1?t.length-1:Math.max(0,t.length-l),C=u>=w,T=u>0,E=u<w,S=DW(t,e,r),P=o("calendarHeatmap.navigation.firstMonth"),R=o("calendarHeatmap.navigation.lastMonth"),N=o("calendarHeatmap.navigation.previousMonth"),W=o("calendarHeatmap.navigation.nextMonth"),G=o("calendarHeatmap.navigation.previousGroup"),K=o("calendarHeatmap.navigation.nextGroup");return y.jsxs(NW,{children:[y.jsx(Ea,{disabled:v,onClick:c,title:P,"aria-label":P,theme:a,children:y.jsx(S1,{direction:"left",disabled:v,theme:a,fill:a.chart.secondaryTextColor,width:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),r!==y.ViewType.MONTH&&y.jsx(Ea,{disabled:v,onClick:g,title:G,"aria-label":G,children:y.jsx(Dp,{direction:"left",disabled:v,theme:a,fill:a.chart.secondaryTextColor,width:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),y.jsx(Ea,{disabled:r===y.ViewType.MONTH?v:!T,onClick:h,title:N,"aria-label":N,children:y.jsx(kp,{direction:"left",disabled:r===y.ViewType.MONTH?v:!T,theme:a,fill:a.chart.secondaryTextColor,width:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),y.jsx(LW,{theme:a,style:i,children:S}),y.jsx(Ea,{disabled:r===y.ViewType.MONTH?C:!E,onClick:f,title:W,"aria-label":W,children:y.jsx(kp,{direction:"right",disabled:r===y.ViewType.MONTH?C:!E,theme:a,fill:a.chart.secondaryTextColor,width:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),r!==y.ViewType.MONTH&&y.jsx(Ea,{disabled:C,onClick:b,title:K,"aria-label":K,children:y.jsx(Dp,{direction:"right",disabled:C,theme:a,fill:a.chart.secondaryTextColor,width:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),y.jsx(Ea,{disabled:C,onClick:p,title:R,"aria-label":R,children:y.jsx(S1,{direction:"right",disabled:C,theme:a,fill:a.chart.secondaryTextColor,width:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})})]})};function Bu(e){return e===null}const zx=(e,t,{onDataPointClick:r,onDataPointContextMenu:n,onDataPointsSelected:i}={})=>{var o,l;const a={chart:{events:{}},plotOptions:{series:{point:{events:{click:()=>{}}}}}};return i&&(((o=e.chart)==null?void 0:o.type)!=="heatmap"&&(a.chart.zoomType="x"),["scatter","bubble"].includes((l=e.chart)==null?void 0:l.type)&&(a.chart.zoomType="xy"),a.chart.events.selection=u=>{u.preventDefault();const{xAxis:c,yAxis:h,originalEvent:f}=u,p=FW(c[0],h[0]);p.forEach(g=>{g.state=""}),i(p.map(g=>Yh(g,t)),f)}),r&&(a.plotOptions.series.point.events.click=u=>{u.point.state="hover",r(Yh(u.point,t),u)}),n&&(a.plotOptions.series.point.events.contextmenu=u=>{u.preventDefault(),n(Yh(u.point,t),u)}),y.merge(e,a)};function $W(e,{onDataPointClick:t,onDataPointContextMenu:r,onDataPointsSelected:n}={}){return i=>zx(i,e,{onDataPointClick:t,onDataPointContextMenu:r,onDataPointsSelected:n})}const FW=(e,t)=>{const r=e.axis.series.flatMap(i=>i.points).filter(({x:i,y:a})=>{const o=i>=e.min&&i<=e.max,l=!Bu(a);return o&&l});if(!t)return r;const n=t.axis.series.flatMap(i=>i.points).filter(({y:i})=>i>=t.min&&i<=t.max);return r.filter(i=>n.includes(i))},zW=600,BW=300,Bx=(e,t,r)=>{const n={duration:t.chart.animation.init.duration==="auto"?zW:t.chart.animation.init.duration},i={duration:t.chart.animation.redraw.duration==="auto"?BW:t.chart.animation.redraw.duration};return j.merge$1(e,{accessibility:{enabled:r},chart:{animation:i},plotOptions:{series:{animation:n}},boost:{useGPUTranslations:!0,usePreAllocated:!0}})};function HW(e,t){return r=>Bx(r,e,t)}const Hx=(e,t)=>{var p;if(!t)return e;const r={backgroundColor:t.chart.backgroundColor},n={style:{fontFamily:t.typography.fontFamily}},i={itemStyle:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}},o={series:{dataLabels:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}}},l={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}}}}},u={chart:r,tooltip:n,legend:i,plotOptions:o,drilldown:l},c={labels:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}},title:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},h={color:t==null?void 0:t.chart.backgroundColor,label:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},f=j.merge$1(u,e);return f.xAxis=(p=f.xAxis)==null?void 0:p.map(g=>{var v;g.plotBands=(v=g.plotBands)==null?void 0:v.map(w=>j.merge$1(w,I(M({},h),{color:t==null?void 0:t.chart.backgroundColor})));const b=j.merge$1(g,c);return b.stackLabels&&(b.stackLabels.style=M({color:t.chart.textColor,fontFamily:t.typography.fontFamily},b.stackLabels.style)),b}),f.yAxis&&(f.yAxis=f.yAxis.map(g=>{var v;g.plotBands=(v=g.plotBands)==null?void 0:v.map(w=>j.merge$1(w,I(M({},h),{color:w.color||(t==null?void 0:t.chart.backgroundColor)})));const b=j.merge$1(g,c);return b.stackLabels&&(b.stackLabels.style=M({color:t.chart.textColor,fontFamily:t.typography.fontFamily},b.stackLabels.style)),b})),f};function WW(e){return t=>Hx(t,e)}const Wx=({highchartsOptionsBuilder:e,chartData:t,dataOptions:r,designOptions:n,extraConfig:i,dataPointsEventHandlers:a,onBeforeRender:o})=>{const l={chartData:t,dataOptions:r,designOptions:n,extraConfig:i};return y.flow(HW(i.themeSettings,i.accessibilityEnabled),$W(r,a),WW(i.themeSettings),jW(o))(M(I(M({chart:e.getChart(l),series:e.getSeries(l)},e.getAxes(l)),{legend:e.getLegend(l),plotOptions:e.getPlotOptions(l),tooltip:e.getTooltip(l)}),e.getExtras(l)))};function jW(e){return e||(t=>t)}function jx(){var i;const{app:e}=Et(),{t}=y.useTranslation(),{themeSettings:r}=ot(),n=Ox();return k.useMemo(()=>{var a;return{translate:t,themeSettings:r,dateFormatter:n,accessibilityEnabled:((a=e==null?void 0:e.settings.accessibilityConfig)==null?void 0:a.enabled)||!1}},[t,r,n,(i=e==null?void 0:e.settings.accessibilityConfig)==null?void 0:i.enabled])}function Np(e){const t=e*y.CALENDAR_TYPOGRAPHY.FONT_SIZE_RATIO;return Math.max(y.CALENDAR_TYPOGRAPHY.MIN_AXIS_FONT_SIZE,Math.min(y.CALENDAR_TYPOGRAPHY.MAX_FONT_SIZE,t))}function VW(e){return e<30?e*.5:0}function GW(e,t,r,n=0){if(!e.values||e.values.length===0)return[];const i=e.values.map(g=>new Date(g.date)).sort((g,b)=>g.getTime()-b.getTime()),a=i[0],o=wl(r),u=(a.getDay()-o+y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK)%y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,c=new Map;i.forEach((g,b)=>{const v=`${g.getFullYear()}-${g.getMonth()}`,w=Math.floor((b+u)/y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK);if(!c.has(v))c.set(v,{firstDate:g,lastDate:g,firstColumn:w,lastColumn:w});else{const C=c.get(v);C.lastDate=g,C.lastColumn=w}});const h=i.length,f=Math.ceil((h+u)/y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK),p=new Array(f).fill("");return Array.from(c.entries()).forEach(([g,b])=>{const{firstDate:v,firstColumn:w,lastColumn:C}=b,T=(C-w)*n,E=w+Math.floor((C-w)/2),S=t(v,T>y.CALENDAR_HEATMAP_DEFAULTS.SHORT_MONTH_NAME_CONTINUES_LAYOUT_WIDTH_THRESHOLD?y.FULL_MONTH_DATE_FORMAT:y.SHORT_MONTH_DATE_FORMAT);E>=0&&E<p.length&&(p[E]=S)}),p}function UW(e){var b,v,w,C,T,E,S,P,R,N,W,G,K,Z,O,$,X,B,V,H,U;const t=(b=e.designOptions.cellSize)!=null?b:0,r=e.designOptions.startOfWeek,n=e.designOptions.dayLabels,i=e.designOptions.monthLabels,a=e.designOptions.viewType,o=W0(r,e.extraConfig.dateFormatter,y.THREE_LETTER_DAY_DATE_FORMAT).reverse(),l=((v=n.style)==null?void 0:v.color)||((w=e.extraConfig.themeSettings)==null?void 0:w.chart.textColor),u=((C=n.style)==null?void 0:C.fontFamily)||((T=e.extraConfig.themeSettings)==null?void 0:T.typography.fontFamily),c=(S=(E=n.style)==null?void 0:E.fontSize)!=null?S:`${Np(t)}px`,h=((P=i.style)==null?void 0:P.color)||((R=e.extraConfig.themeSettings)==null?void 0:R.chart.textColor),f=((N=i.style)==null?void 0:N.fontFamily)||((W=e.extraConfig.themeSettings)==null?void 0:W.typography.fontFamily),p=(K=(G=i.style)==null?void 0:G.fontSize)!=null?K:`${Np(t)}px`;return{xAxis:[{categories:GW(e.chartData,e.extraConfig.dateFormatter,r,e.designOptions.cellSize),opposite:!0,lineWidth:0,gridLineWidth:0,offset:0,labels:{enabled:i.enabled&&a!==y.ViewType.MONTH,rotation:0,overflow:"justify",style:M(M({fontSize:p,color:h,fontFamily:f,textOverflow:"none"},((Z=i.style)==null?void 0:Z.fontWeight)&&{fontWeight:i.style.fontWeight}),((O=i.style)==null?void 0:O.fontStyle)&&{fontStyle:i.style.fontStyle})},accessibility:{description:"months",rangeDescription:"X Axis shows months in chronological order."}}],yAxis:[{categories:n.enabled?[...o]:[],opposite:!1,lineWidth:0,gridLineWidth:0,offset:15,title:{text:null},labels:{rotation:0,style:M(M(M(M(M({fontSize:c,color:l,fontFamily:u},(($=n.style)==null?void 0:$.fontWeight)&&{fontWeight:n.style.fontWeight}),((X=n.style)==null?void 0:X.fontStyle)&&{fontStyle:n.style.fontStyle}),((B=n.style)==null?void 0:B.textOutline)&&{textOutline:n.style.textOutline}),((V=n.style)==null?void 0:V.pointerEvents)&&{pointerEvents:n.style.pointerEvents}),((H=n.style)==null?void 0:H.textOverflow)&&{textOverflow:n.style.textOverflow}),enabled:n.enabled&&((U=e.designOptions.height)!=null?U:0)>=y.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD},accessibility:{description:"days of week",rangeDescription:`Y Axis shows days of the week, starting with ${r===H0.MONDAY?"Monday":"Sunday"}.`}}]}}function YW(e){var c,h,f,p,g,b,v,w,C,T,E,S,P;const t=(c=e.designOptions.cellSize)!=null?c:0,r=e.designOptions.startOfWeek,n=e.designOptions.dayLabels,i=VW(t),a=W0(r,e.extraConfig.dateFormatter,y.SINGLE_LETTER_DAY_DATE_FORMAT),o=((h=n.style)==null?void 0:h.color)||((f=e.extraConfig.themeSettings)==null?void 0:f.chart.textColor),l=((p=n.style)==null?void 0:p.fontFamily)||((g=e.extraConfig.themeSettings)==null?void 0:g.typography.fontFamily),u=(v=(b=n.style)==null?void 0:b.fontSize)!=null?v:`${Np(t)}px`;return{xAxis:[{categories:n.enabled?[...a]:[],opposite:!0,lineWidth:0,offset:0,labels:{rotation:0,y:i,style:M(M(M(M(M({fontSize:u,color:o,fontFamily:l},((w=n.style)==null?void 0:w.fontWeight)&&{fontWeight:n.style.fontWeight}),((C=n.style)==null?void 0:C.fontStyle)&&{fontStyle:n.style.fontStyle}),((T=n.style)==null?void 0:T.textOutline)&&{textOutline:n.style.textOutline}),((E=n.style)==null?void 0:E.pointerEvents)&&{pointerEvents:n.style.pointerEvents}),((S=n.style)==null?void 0:S.textOverflow)&&{textOverflow:n.style.textOverflow}),enabled:n.enabled&&((P=e.designOptions.width)!=null?P:0)>=y.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD},accessibility:{description:"weekdays",rangeDescription:`X Axis is showing all 7 days of the week, starting with ${r===H0.MONDAY?"Monday":"Sunday"}.`}}],yAxis:[{categories:[],min:0,max:5,tickInterval:1,gridLineWidth:0,title:{text:null},accessibility:{description:"weeks"},visible:!1}]}}function Vx(e){var n,i;const t=(n=e.designOptions.width)!=null?n:0,r=(i=e.designOptions.height)!=null?i:0;return{type:"heatmap",plotBorderWidth:y.CALENDAR_HEATMAP_DEFAULTS.BORDER_WIDTH,backgroundColor:"transparent",marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,spacing:[0,0,0,0],width:t,height:r,polar:!1}}function qW(e){var i,a;const t=(i=e.designOptions.cellSize)!=null?i:0,n=((a=e.designOptions.width)!=null?a:0)>=y.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return I(M({},Vx(e)),{marginTop:n?t:0})}function XW(e){var n;const r=((n=e.designOptions.width)!=null?n:0)>=y.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return I(M({},Vx(e)),{marginLeft:r?60:0,marginTop:r?30:0,marginRight:10})}function Gx(){return{title:{text:null},accessibility:{landmarkVerbosity:"one"}}}function Ux(){return{enabled:!1}}function ZW(e){const t=e*y.CALENDAR_TYPOGRAPHY.FONT_SIZE_RATIO;return Math.max(y.CALENDAR_TYPOGRAPHY.MIN_FONT_SIZE,Math.min(y.CALENDAR_TYPOGRAPHY.MAX_FONT_SIZE,t))}function Yx(e){var u,c,h,f,p,g,b,v,w,C,T,E,S,P,R,N,W;const t=e.designOptions.cellLabels,r=(c=(u=e.designOptions)==null?void 0:u.cellSize)!=null?c:0,n=((h=t==null?void 0:t.style)==null?void 0:h.fontSize)||`${ZW(r)}px`,i=(p=(f=t==null?void 0:t.style)==null?void 0:f.fontWeight)!=null?p:"normal",a=(b=(g=t==null?void 0:t.style)==null?void 0:g.textOutline)!=null?b:"none",o=(C=(v=t==null?void 0:t.style)==null?void 0:v.fontFamily)!=null?C:(w=e.extraConfig.themeSettings)==null?void 0:w.typography.fontFamily,l=((T=t==null?void 0:t.style)==null?void 0:T.color)||((E=e.extraConfig.themeSettings)==null?void 0:E.chart.textColor);return{series:{},heatmap:{dataLabels:{enabled:t.enabled&&((P=(S=e.designOptions)==null?void 0:S.cellSize)!=null?P:0)>=y.CALENDAR_HEATMAP_DEFAULTS.SHOW_CELL_LABEL_SIZE_THRESHOLD,style:M(M(M({color:l,fontSize:n,fontWeight:i,textOutline:a,fontFamily:o},((R=t.style)==null?void 0:R.fontStyle)&&{fontStyle:t.style.fontStyle}),((N=t.style)==null?void 0:N.pointerEvents)&&{pointerEvents:t.style.pointerEvents}),((W=t.style)==null?void 0:W.textOverflow)&&{textOverflow:t.style.textOverflow}),formatter:function(){const G=this.point;return G.custom&&G.custom.monthDay?G.custom.monthDay.toString():""}}}}}const KW="yyyy-MM-dd'T'HH:mm:ss";function QW(e,t){const r=pW(e.getDay());return t.includes(r)}function qx(e,t,r,n){if(e.values.length===0)return[];const i=new Date(e.values[0].date),a=i.getFullYear(),o=i.getMonth(),u=new Date(a,o,1).getDay(),c=wl(r),h=(u-c+7)%7,f=W0(r,t),p=[];return e.values.forEach(g=>{var W;const b=new Date(g.date),v=b.getDate(),w=t(b,KW),C=(h+v-1)%f.length,T=Math.floor((h+v-1)/f.length),E=(W=g.value)!=null?W:null,S=g.value!==void 0,P=QW(b,n.days);let R;S?n.enabled&&n.days.length>0&&P?R=n.cellColor||y.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_CELL_COLOR:g.color&&(R=g.color):R=y.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR;const N=n.enabled&&n.hideValues&&P;p.push({x:C,y:5-T,value:E,date:b.getTime(),dateString:w,color:R,custom:{monthDay:v,hasData:!N&&S,blur:g.blur},className:S&&g.blur?"csdk-highcharts-point-blured":""})}),p}function JW(e,t,r,n){if(e.values.length===0)return[];const i=e.values.map(w=>new Date(w.date)).sort((w,C)=>w.getTime()-C.getTime()),a=i[0],o=i[i.length-1],l=new Date(a.getFullYear(),a.getMonth(),1),u=new Date(o.getFullYear(),o.getMonth()+1,0),c=new Map;for(let w=new Date(l);w<=u;w.setMonth(w.getMonth()+1)){const C=`${w.getFullYear()}-${w.getMonth()}`;c.set(C,[])}e.values.forEach(w=>{const C=new Date(w.date),T=`${C.getFullYear()}-${C.getMonth()}`;c.has(T)&&c.get(T).push(w)});const h=[],f=wl(r),p=new Date(l),g=(l.getDay()-f+7)%7;p.setDate(l.getDate()-g);for(const[w,C]of c){const[T,E]=w.split("-"),S=parseInt(T,10),P=parseInt(E,10),R={type:"calendar-heatmap",values:C.length>0?C:[{date:new Date(S,P,1),value:void 0}]},N=qx(R,t,r,n);h.push(...N)}let b=y.CALENDAR_HEATMAP_SIZING.ROWS-1-h[0].x,v=0;for(let w=0;w<h.length;w++)h[w].y=b,h[w].x=v,b--,b<0&&(b=y.CALENDAR_HEATMAP_SIZING.ROWS-1,v++);return h}function ej(e){const t=e.designOptions.startOfWeek,r=e.designOptions.weekends,n=qx(e.chartData,e.extraConfig.dateFormatter,t,r);return[{name:"Calendar Heatmap",type:"heatmap",keys:["x","y","value","date","color","custom"],data:n,nullColor:y.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR,borderWidth:y.CALENDAR_HEATMAP_DEFAULTS.BORDER_WIDTH,borderColor:"transparent",colsize:1,rowsize:1}]}function tj(e){const t=e.designOptions.startOfWeek,r=e.designOptions.weekends,n=JW(e.chartData,e.extraConfig.dateFormatter,t,r);return[{name:"Calendar Heatmap",type:"heatmap",keys:["x","y","value","date","color","custom"],data:n,nullColor:y.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR,borderWidth:1,borderColor:"white",colsize:1,rowsize:1}]}function Xx(e){const{dateFormatter:t}=e.extraConfig,r=e.dataOptions.value.column.title||e.dataOptions.value.column.name,n=e.designOptions.width&&e.designOptions.width<y.CALENDAR_HEATMAP_SIZING.MIN_TOOLTIP_WIDTH;return{animation:!1,backgroundColor:y.colorWhite,borderColor:y.colorChineseSilver,borderRadius:10,borderWidth:1,useHTML:!0,style:{width:n?y.CALENDAR_HEATMAP_SIZING.MIN_TOOLTIP_WIDTH:void 0},position:{relativeTo:"chart"},followPointer:!0,outside:!0,formatter:function(){var g;const i=this.point,a=i.date&&new Date(i.date);if(!(a&&!isNaN(a.getTime())))return!1;const l=e.dataOptions.date,u=y.getDataOptionGranularity(l),c=l.dateFormat||y.getDefaultDateFormat(u),h=t(a,c);let f="";if(i.value!==null&&i.value!==void 0&&((g=i.custom)!=null&&g.hasData)){const b=e.dataOptions.value.numberFormatConfig,v=y.getCompleteNumberFormatConfig(b);f=y.applyFormat(v,i.value)}else f="—";const p=i.color&&y.scaleBrightness(i.color,y.CALENDAR_HEATMAP_COLORS.TOOLTIP_COLOR_BRIGHTNESS_PERCENT);return y.tooltipWrapper(`
251
+ ${r}
252
+ <br />
253
+ <span style="color: ${p!=null?p:"inherit"}">${f}</span>
254
+ ${y.tooltipSeparator()}
255
+ ${h}
256
+ `)}}}const rj={getChart:qW,getSeries:ej,getAxes:YW,getLegend:Ux,getPlotOptions:Yx,getTooltip:Xx,getExtras:Gx},nj={getChart:XW,getSeries:tj,getAxes:UW,getLegend:Ux,getPlotOptions:Yx,getTooltip:Xx,getExtras:Gx};function ij(e){return e==="calendar-heatmap/continuous"?nj:rj}function E1(e,t){const r=new Map;e.values.forEach(a=>{if(a.date.getFullYear()===t.year&&a.date.getMonth()===t.month){const o=`${t.year}-${t.month}-${a.date.getDate()}`;r.set(o,a)}});const n=new Date(t.year,t.month+1,0).getDate(),i=[];for(let a=1;a<=n;a++){const o=`${t.year}-${t.month}-${a}`,l=r.get(o);l?i.push(l):i.push({date:new Date(Date.UTC(t.year,t.month,a))})}return I(M({},e),{values:i})}function P1(e,t){if(!e.values||e.values.length===0){const r=I(M({},e),{values:[]});return E1(r,t)}return E1(e,t)}function aj(e,t,r,n){if(e==="calendar-heatmap/continuous"){let i=[];switch(t){case"month":i=[r.slice(0,1)];break;case"quarter":i=[r.slice(0,3)];break;case"half-year":i=[r.slice(0,6)];break;case"year":i=[r.slice(0,6),r.slice(6,12)].filter(a=>a.length>0);break;default:i=[r]}return i.map(a=>a.reduce((o,l)=>{const u=P1(n,l);return I(M({},o),{values:[...o.values,...u.values]})},{type:"calendar-heatmap",values:[]}))}else return r.map(i=>P1(n,i))}const oj=()=>{const e=jx();return k.useMemo(()=>I(M({},e),{themeSettings:I(M({},e.themeSettings),{chart:I(M({},e.themeSettings.chart),{animation:I(M({},e.themeSettings.chart.animation),{redraw:I(M({},e.themeSettings.chart.animation.redraw),{duration:0})})})})}),[e])};function sj({chartData:e,dataOptions:t,designOptions:r,availableMonths:n,currentMonth:i,subtype:a,viewType:o,containerSize:l,eventHandlers:u,onBeforeRender:c}){const h=oj(),f=k.useMemo(()=>{var g;const p=(g=t.value.color)!=null?g:mW(h.themeSettings);return gW(p)(e)},[e,t.value.color,h.themeSettings]);return k.useMemo(()=>{if(n.length===0)return[];const p=V0(n,i,o);return aj(a,o,p,f).map(b=>{const v=wW(l,a,o,b,r.startOfWeek),w=ij(a);return Wx({highchartsOptionsBuilder:w,chartData:b,dataOptions:t,designOptions:I(M({},r),{width:v.width,height:v.height,cellSize:v.cellSize}),dataPointsEventHandlers:{onDataPointClick:u.onDataPointClick,onDataPointContextMenu:u.onDataPointContextMenu,onDataPointsSelected:u.onDataPointsSelected},extraConfig:h,onBeforeRender:c})})},[n,i,o,a,f,t,r,l,u.onDataPointClick,u.onDataPointContextMenu,u.onDataPointsSelected,h,c])}const lj=e=>{const{chartData:t,startMonth:r}=e,n=od(r),i=r?qh(r):t.values.length>0?qh(t.values[0].date):{year:new Date().getFullYear(),month:new Date().getMonth()},[a,o]=k.useState(i);return k.useEffect(()=>{r&&(!n||r.getTime()!==n.getTime())&&o(qh(r))},[r,n,o]),{currentMonth:a,setCurrentMonth:o}},uj=Gt.div`
257
+ display: flex;
258
+ flex-direction: column;
259
+ width: 100%;
260
+ height: 100%;
261
+ margin: 0 auto;
262
+ background-color: ${({theme:e})=>e.chart.backgroundColor};
263
+ `,cj=Gt.div`
264
+ display: flex;
265
+ flex-direction: column;
266
+ align-items: center;
267
+ justify-content: center;
268
+ flex: 1;
269
+ `;function dj({chartData:e,dataOptions:t,designOptions:r,onDataPointClick:n,onDataPointContextMenu:i,onDataPointsSelected:a,onBeforeRender:o,size:l}){var w,C,T;const{themeSettings:u}=ot(),c=Ox(),h=r.subtype,f=r.viewType,{currentMonth:p,setCurrentMonth:g}=lj({chartData:e,startMonth:(w=r.pagination)==null?void 0:w.startMonth}),b=k.useMemo(()=>PW(e,c,p,f),[e,c,p,f]),v=sj({chartData:e,dataOptions:t,designOptions:r,availableMonths:b,currentMonth:p,subtype:h,viewType:f,containerSize:l,eventHandlers:{onDataPointClick:n,onDataPointContextMenu:i,onDataPointsSelected:a},onBeforeRender:o});return y.jsxs(uj,{theme:u,children:[b.length>0&&((C=r.pagination)==null?void 0:C.enabled)&&y.jsx(IW,{value:p,availableMonths:b,viewType:f,onChange:g,labelStyle:(T=r.pagination)==null?void 0:T.style}),y.jsx(cj,{children:y.jsx(kW,{monthCharts:v,availableMonths:b,currentMonth:p,viewType:f,subtype:h,monthLabels:r.monthLabels,size:l})})]})}const hj=e=>!!e.chartData&&Rx(e.chartData)&&Ax(e.dataOptions),fj={dataOptions:{translateDataOptionsToInternal:VH,getAttributes:GH,getMeasures:UH,isCorrectDataOptions:YH,isCorrectDataOptionsInternal:Ax},data:{loadData:rn,getChartData:qH},designOptions:{translateStyleOptionsToDesignOptions:XH,isCorrectStyleOptions:ZH},renderer:{ChartRendererComponent:dj,isCorrectRendererProps:hj}};var Zx=y.metaMap?function(e,t){return y.metaMap.set(e,t),e}:j.identity;function Vs(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=j.baseCreate(e.prototype),n=e.apply(r,t);return j.isObject(n)?n:r}}var pj=1;function mj(e,t,r){var n=t&pj,i=Vs(e);function a(){var o=this&&this!==j.root&&this instanceof a?i:e;return o.apply(n?r:this,arguments)}return a}var gj=Math.max;function Kx(e,t,r,n){for(var i=-1,a=e.length,o=r.length,l=-1,u=t.length,c=gj(a-o,0),h=Array(u+c),f=!n;++l<u;)h[l]=t[l];for(;++i<o;)(f||i<a)&&(h[r[i]]=e[i]);for(;c--;)h[l++]=e[i++];return h}var vj=Math.max;function Qx(e,t,r,n){for(var i=-1,a=e.length,o=-1,l=r.length,u=-1,c=t.length,h=vj(a-l,0),f=Array(h+c),p=!n;++i<h;)f[i]=e[i];for(var g=i;++u<c;)f[g+u]=t[u];for(;++o<l;)(p||i<a)&&(f[g+r[o]]=e[i++]);return f}function yj(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Jx=j.shortOut(Zx),bj=/\{\n\/\* \[wrapped with (.+)\] \*/,_j=/,? & /;function wj(e){var t=e.match(bj);return t?t[1].split(_j):[]}var xj=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Cj(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(xj,`{
270
+ /* [wrapped with `+t+`] */
271
+ `)}function Tj(e,t,r,n){for(var i=e.length,a=r+-1;++a<i;)if(t(e[a],a,e))return a;return-1}function Mj(e){return e!==e}function Sj(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function G0(e,t,r){return t===t?Sj(e,t,r):Tj(e,Mj,r)}function eC(e,t){var r=e==null?0:e.length;return!!r&&G0(e,t,0)>-1}var Ej=1,Pj=2,Aj=8,Rj=16,Oj=32,kj=64,Dj=128,Nj=256,Lj=512,Ij=[["ary",Dj],["bind",Ej],["bindKey",Pj],["curry",Aj],["curryRight",Rj],["flip",Lj],["partial",Oj],["partialRight",kj],["rearg",Nj]];function $j(e,t){return j.arrayEach(Ij,function(r){var n="_."+r[0];t&r[1]&&!eC(e,n)&&e.push(n)}),e.sort()}function tC(e,t,r){var n=t+"";return j.setToString(e,Cj(n,$j(wj(n),r)))}var Fj=1,zj=2,Bj=4,Hj=8,A1=32,R1=64;function rC(e,t,r,n,i,a,o,l,u,c){var h=t&Hj,f=h?o:void 0,p=h?void 0:o,g=h?a:void 0,b=h?void 0:a;t|=h?A1:R1,t&=~(h?R1:A1),t&Bj||(t&=~(Fj|zj));var v=[e,t,i,g,f,b,p,l,u,c],w=r.apply(void 0,v);return y.isLaziable(e)&&Jx(w,v),w.placeholder=n,tC(w,e,t)}function nC(e){var t=e;return t.placeholder}var Wj=Math.min;function jj(e,t){for(var r=e.length,n=Wj(t.length,r),i=j.copyArray(e);n--;){var a=t[n];e[n]=j.isIndex(a,r)?i[a]:void 0}return e}var O1="__lodash_placeholder__";function vc(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r];(o===t||o===O1)&&(e[r]=O1,a[i++]=r)}return a}var Vj=1,Gj=2,Uj=8,Yj=16,qj=128,Xj=512;function U0(e,t,r,n,i,a,o,l,u,c){var h=t&qj,f=t&Vj,p=t&Gj,g=t&(Uj|Yj),b=t&Xj,v=p?void 0:Vs(e);function w(){for(var C=arguments.length,T=Array(C),E=C;E--;)T[E]=arguments[E];if(g)var S=nC(w),P=yj(T,S);if(n&&(T=Kx(T,n,i,g)),a&&(T=Qx(T,a,o,g)),C-=P,g&&C<c){var R=vc(T,S);return rC(e,t,U0,w.placeholder,r,T,R,l,u,c-C)}var N=f?r:this,W=p?N[e]:e;return C=T.length,l?T=jj(T,l):b&&C>1&&T.reverse(),h&&u<C&&(T.length=u),this&&this!==j.root&&this instanceof w&&(W=v||Vs(W)),W.apply(N,T)}return w}function Zj(e,t,r){var n=Vs(e);function i(){for(var a=arguments.length,o=Array(a),l=a,u=nC(i);l--;)o[l]=arguments[l];var c=a<3&&o[0]!==u&&o[a-1]!==u?[]:vc(o,u);if(a-=c.length,a<r)return rC(e,t,U0,i.placeholder,void 0,o,c,void 0,void 0,r-a);var h=this&&this!==j.root&&this instanceof i?n:e;return j.apply(h,this,o)}return i}var Kj=1;function Qj(e,t,r,n){var i=t&Kj,a=Vs(e);function o(){for(var l=-1,u=arguments.length,c=-1,h=n.length,f=Array(h+u),p=this&&this!==j.root&&this instanceof o?a:e;++c<h;)f[c]=n[c];for(;u--;)f[c++]=arguments[++l];return j.apply(p,i?r:this,f)}return o}var k1="__lodash_placeholder__",Zh=1,Jj=2,eV=4,D1=8,Jo=128,N1=256,tV=Math.min;function rV(e,t){var r=e[1],n=t[1],i=r|n,a=i<(Zh|Jj|Jo),o=n==Jo&&r==D1||n==Jo&&r==N1&&e[7].length<=t[8]||n==(Jo|N1)&&t[7].length<=t[8]&&r==D1;if(!(a||o))return e;n&Zh&&(e[2]=t[2],i|=r&Zh?0:eV);var l=t[3];if(l){var u=e[3];e[3]=u?Kx(u,l,t[4]):l,e[4]=u?vc(e[3],k1):t[4]}return l=t[5],l&&(u=e[5],e[5]=u?Qx(u,l,t[6]):l,e[6]=u?vc(e[5],k1):t[6]),l=t[7],l&&(e[7]=l),n&Jo&&(e[8]=e[8]==null?t[8]:tV(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}var nV="Expected a function",L1=1,iV=2,Kh=8,Qh=16,Jh=32,I1=64,$1=Math.max;function aV(e,t,r,n,i,a,o,l){var u=t&iV;if(!u&&typeof e!="function")throw new TypeError(nV);var c=n?n.length:0;if(c||(t&=~(Jh|I1),n=i=void 0),o=o===void 0?o:$1(y.toInteger$1(o),0),l=l===void 0?l:y.toInteger$1(l),c-=i?i.length:0,t&I1){var h=n,f=i;n=i=void 0}var p=u?void 0:y.getData(e),g=[e,t,r,n,i,h,f,a,o,l];if(p&&rV(g,p),e=g[0],t=g[1],r=g[2],n=g[3],i=g[4],l=g[9]=g[9]===void 0?u?0:e.length:$1(g[9]-c,0),!l&&t&(Kh|Qh)&&(t&=~(Kh|Qh)),!t||t==L1)var b=mj(e,t,r);else t==Kh||t==Qh?b=Zj(e,t,l):(t==Jh||t==(L1|Jh))&&!i.length?b=Qj(e,t,r,n):b=U0.apply(void 0,g);var v=p?Zx:Jx;return tC(v(b,g),e,t)}var oV=8;function xl(e,t,r){t=r?void 0:t;var n=aV(e,oV,void 0,void 0,void 0,void 0,void 0,t);return n.placeholder=xl.placeholder,n}xl.placeholder={};const sV="_alert_box_10ttx_1",lV="_content_10ttx_8",uV="_alert_10ttx_1",ef={alert_box:sV,content:lV,alert:uV},iC=({alerts:e=[]})=>y.jsx("div",{className:ef.alert_box,children:y.jsx("div",{className:ef.content,children:[...new Set(e)].map((t,r)=>y.jsx("div",{className:ef.alert,children:t},`alert-${r}`))})}),cV=e=>["column","bar","line","area","polar","pie","funnel","treemap","calendar-heatmap","sunburst","streamgraph"].includes(e);function Pn({highchartsOptionsBuilder:e,getAlerts:t}){return function({chartData:n,dataOptions:i,designOptions:a,onDataPointClick:o,onDataPointContextMenu:l,onDataPointsSelected:u,onBeforeRender:c,size:h}){const f=jx(),p=k.useMemo(()=>Wx({highchartsOptionsBuilder:e,chartData:n,dataOptions:i,designOptions:a,dataPointsEventHandlers:{onDataPointClick:o,onDataPointContextMenu:l,onDataPointsSelected:u},extraConfig:f,onBeforeRender:c}),[n,i,a,o,l,u,f,c]),g=k.useMemo(()=>p?I(M({},p),{chart:M(M(M({},p.chart),(h==null?void 0:h.width)&&{width:h.width}),(h==null?void 0:h.height)&&{height:h.height})}):null,[p,h]),b=t({chartData:n,dataOptions:i,designOptions:a,extraConfig:f});return g&&y.jsxs("div",{"aria-label":"chart-root",style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!b.length&&y.jsx(iC,{alerts:b}),y.jsx(B0,{options:g})]})}}function An(e){return!!e.chartData&&!!e.chartType&&cV(e.chartType)}var dV="[object String]";function Y0(e){return typeof e=="string"||!j.isArray(e)&&j.isObjectLike(e)&&j.baseGetTag(e)==dV}const _o=e=>{const{chartData:t,designOptions:r}=e,{seriesCapacity:n,categoriesCapacity:i}=r.dataLimits,a=t.xValues.length>i?y.categoriesSliceWarning("x",t.xValues.length,i):null,o=t.series.length>n?y.seriesSliceWarning(t.series.length,n):null;return[a,o].filter(Y0)};function wo(e,t){return y.cartesianData(e,t)}const sd=Object.freeze({"area/basic":{lineType:"straight",stackType:"classic"},"area/stacked":{lineType:"straight",stackType:"stacked"},"area/stacked100":{lineType:"straight",stackType:"stack100"},"area/spline":{lineType:"smooth",stackType:"classic"},"area/stackedspline":{lineType:"smooth",stackType:"stacked"},"area/stackedspline100":{lineType:"smooth",stackType:"stack100"},"arearange/basic":{lineType:"straight",stackType:"classic"},"arearange/spline":{lineType:"smooth",stackType:"classic"},"bar/classic":{stackType:"classic"},"bar/stacked":{stackType:"stacked"},"bar/stacked100":{stackType:"stack100"},"column/classic":{stackType:"classic"},"column/stackedcolumn":{stackType:"stacked"},"column/stackedcolumn100":{stackType:"stack100"},"line/basic":{lineType:"straight"},"line/spline":{lineType:"smooth"},"line/step":{lineType:"straight"},"pie/classic":{pieType:"classic"},"pie/donut":{pieType:"donut"},"pie/ring":{pieType:"ring"},"polar/column":{polarType:"column"},"polar/area":{polarType:"area"},"polar/line":{polarType:"line"},"indicator/numeric":{indicatorType:"numeric"},"indicator/gauge":{indicatorType:"gauge"},treemap:{},sunburst:{},"boxplot/full":{boxplotType:"full"},"boxplot/hollow":{boxplotType:"hollow"},scattermap:{},"areamap/world":{mapType:"world"},"areamap/usa":{mapType:"usa"}}),Lp=(e,t)=>{var r,n,i,a,o;return e?{enabled:e.enabled,gridLine:e.gridLines,labels:(r=e.labels)==null?void 0:r.enabled,type:e.logarithmic?"logarithmic":"linear",titleEnabled:(n=e.title)==null?void 0:n.enabled,title:((i=e==null?void 0:e.title)==null?void 0:i.text)||null,min:(a=e.min)!=null?a:null,max:(o=e.max)!=null?o:null,tickInterval:e.isIntervalEnabled&&(e!=null&&e.intervalJumps)?e==null?void 0:e.intervalJumps:null}:t},hV=e=>e!=null&&e.enabled?{enabled:!0,scrollerLocation:e==null?void 0:e.scrollerLocation}:{enabled:!1},fV=e=>{const t=Lp(e,xr.yAxis);return t.gridLine=e.templateMainYHasGridLines||!1,t},q0=e=>{let t=1;switch(e.width){case"thin":t=1;break;case"bold":t=3;break;case"thick":t=5;break}return t},aC="classic",nn=(e,t)=>{var u,c,h,f;const r=yV(),n=Lp(e.xAxis,xr.xAxis);let i=null;(c=(u=e==null?void 0:e.xAxis)==null?void 0:u.x2Title)!=null&&c.enabled&&((f=(h=e==null?void 0:e.xAxis)==null?void 0:h.x2Title)!=null&&f.text)&&(i=I(M({},xr.xAxis),{title:e.xAxis.x2Title.text}));const a=Lp(e.yAxis,xr.yAxis),o=t&&e.y2Axis?M({type:"linear",enabled:!0,titleEnabled:!0,title:"Y2 Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null},fV(e.y2Axis)):void 0,l=hV(e.navigator);return I(M(M(I(M(I(M({},xr),{legend:e.legend,autoZoom:l}),e.seriesLabels&&{seriesLabels:e.seriesLabels}),{xAxis:n,yAxis:a}),o&&{y2Axis:o}),i&&{x2Axis:i}),{dataLimits:r})},ld=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),pV=(e,t,r,n)=>{const i=nn(e,r),a=Mn(e!=null?e:{},y.getDefaultStyleOptions()),o=bi(t,n,a);return I(M({},i),{designPerSeries:o,stackType:aC,totalLabels:e.totalLabels})},mV=(e,t)=>{var n,i,a,o,l,u,c;const r=nn(t,!1);if(e==="line"){const h=t;h.line&&(r.line={width:(a=(n=h.line)==null?void 0:n.width)!=null?a:q0((i=h.lineWidth)!=null?i:{width:"bold"}),dashStyle:(o=h.line)==null?void 0:o.dashStyle,endCap:(l=h.line)==null?void 0:l.endCap,shadow:(u=h.line)==null?void 0:u.shadow}),r.marker=ld((c=h==null?void 0:h.markers)!=null?c:{enabled:!0,fill:"filled",size:"small"}),h.subtype==="line/step"&&(r.step=h.stepPosition||"left")}return r},gV=(e,t,r)=>{var l,u,c,h,f,p,g;const n=nn(e,r);n.marker=ld((l=e==null?void 0:e.markers)!=null?l:{enabled:!0,fill:"filled",size:"small"});const i=Mn(e!=null?e:{},y.getDefaultStyleOptions()),a=bi(t,"line",i),o=I(M({},n),{designPerSeries:a,line:{width:(h=(u=e.line)==null?void 0:u.width)!=null?h:q0((c=e.lineWidth)!=null?c:{width:"bold"}),dashStyle:(f=e.line)==null?void 0:f.dashStyle,endCap:(p=e.line)==null?void 0:p.endCap,shadow:(g=e.line)==null?void 0:g.shadow}});return e.subtype==="line/step"&&(o.step=e.stepPosition||"left"),o},vV=(e,t,r)=>{var n,i,a,o,l,u,c;return I(M({},pV(e,t,r,"area")),{marker:ld((n=e==null?void 0:e.markers)!=null?n:{enabled:!0,fill:"filled",size:"small"}),line:{width:(o=(i=e.line)==null?void 0:i.width)!=null?o:q0((a=e.lineWidth)!=null?a:{width:"thin"}),dashStyle:(l=e.line)==null?void 0:l.dashStyle,endCap:(u=e.line)==null?void 0:u.endCap,shadow:(c=e.line)==null?void 0:c.shadow}})},X0=(e,t)=>{var i;const r={seriesCapacity:t==="categorical"?lc:t==="pie"?x$:v0,categoriesCapacity:t==="scatter"?C$:lc},n=(i=e==null?void 0:e.dataLimits)!=null?i:{};return"categoriesCapacity"in n&&(n==null?void 0:n.categoriesCapacity)!==void 0&&(r.categoriesCapacity=n==null?void 0:n.categoriesCapacity),(n==null?void 0:n.seriesCapacity)!==void 0&&(r.seriesCapacity=n==null?void 0:n.seriesCapacity),r};function yV(){return{seriesCapacity:v0,categoriesCapacity:lc}}const Pa={enabled:!0,showCategory:!0,showValue:!0,percentageLabels:{enabled:!0,showDecimals:!1}},bV="classic",_V=e=>{var h,f,p,g,b,v,w,C,T,E,S,P,R,N,W,G;const{legend:t,labels:r,subtype:n,seriesLabels:i}=e;let a=Pa;(i||r)&&(a=I(M({},i),{enabled:(f=(h=i==null?void 0:i.enabled)!=null?h:r==null?void 0:r.enabled)!=null?f:Pa.enabled,showCategory:(g=(p=i==null?void 0:i.showCategory)!=null?p:r==null?void 0:r.categories)!=null?g:Pa.showCategory,showValue:(v=(b=i==null?void 0:i.showValue)!=null?b:r==null?void 0:r.value)!=null?v:Pa.showValue,percentageLabels:I(M({},i==null?void 0:i.percentageLabels),{enabled:(S=(E=(C=(w=i==null?void 0:i.percentageLabels)==null?void 0:w.enabled)!=null?C:r==null?void 0:r.percent)!=null?E:(T=Pa.percentageLabels)==null?void 0:T.enabled)!=null?S:!1,showDecimals:(G=(W=(R=(P=i==null?void 0:i.percentageLabels)==null?void 0:P.showDecimals)!=null?R:r==null?void 0:r.decimals)!=null?W:(N=Pa.percentageLabels)==null?void 0:N.showDecimals)!=null?G:!1})}));const o=n?sd[n]:void 0,l=(o==null?void 0:o.pieType)||bV,u=e!=null&&e.convolution?e.convolution:{enabled:!1},c=X0(e,"pie");return I(M({},xr),{seriesLabels:a,pieType:l,convolution:u,legend:t,dataLimits:c})},wV=e=>{var u,c,h,f,p,g,b,v,w,C;const{funnelType:t=y.DefaultFunnelType,funnelSize:r=y.DefaultFunnelSize,funnelDirection:n=y.DefaultFunnelDirection,legend:i,labels:a,seriesLabels:o}=e,l=X0(e,"categorical");return I(M({},xr),{funnelSize:r,funnelType:t,funnelDirection:n,legend:i,dataLimits:l,seriesLabels:I(M({},o!=null?o:{}),{enabled:(c=(u=o==null?void 0:o.enabled)!=null?u:a==null?void 0:a.enabled)!=null?c:y.DefaultFunnelSeriesLabels.enabled,showCategory:(f=(h=o==null?void 0:o.showCategory)!=null?h:a==null?void 0:a.categories)!=null?f:y.DefaultFunnelSeriesLabels.showCategory,showValue:(g=(p=o==null?void 0:o.showValue)!=null?p:a==null?void 0:a.value)!=null?g:y.DefaultFunnelSeriesLabels.showValue,showPercentage:(v=(b=o==null?void 0:o.showPercentage)!=null?b:a==null?void 0:a.percent)!=null?v:y.DefaultFunnelSeriesLabels.showPercentage,showPercentDecimals:(C=(w=o==null?void 0:o.showPercentDecimals)!=null?w:a==null?void 0:a.decimals)!=null?C:y.DefaultFunnelSeriesLabels.showPercentDecimals})})},oC=e=>e,sC=e=>e,xV="column",CV=(e,t)=>{const r=nn(e,!1),n=Mn(e!=null?e:{},y.getDefaultStyleOptions()),i=bi(t,"polar",n),a=I(M({},r),{polarType:xV,designPerSeries:i});return y.withYAxisNormalizationForPolar(a)},TV=e=>M(M({},y.defaultScatterMarkerSize),e),MV=e=>{var t;return I(M({},nn(e,!1)),{lineWidth:0,marker:ld((t=e==null?void 0:e.markers)!=null?t:{enabled:!0,fill:"filled",size:"small"}),dataLimits:X0(e,"scatter"),markerSize:TV(e.markerSize),legend:e.legend})},SV=e=>I(M({},nn(e,!1)),{boxplotType:e.subtype==="boxplot/hollow"?"hollow":"full"}),EV={fill:"filled",size:{defaultSize:4,minSize:4,maxSize:24}},PV=e=>I(M({},xr),{markers:j.merge$1(EV,e.markers||{})}),AV={"line/basic":"straight","line/spline":"smooth","line/step":"straight"},RV=e=>({thin:1,bold:3,thick:5})[e.width],OV=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),kV=(e,t)=>nn(e,ad(t)),DV=e=>t=>{var r,n,i,a,o,l;return I(M({},t),{line:{width:(n=(r=e.line)==null?void 0:r.width)!=null?n:RV(e.lineWidth||{width:"bold"}),dashStyle:(i=e.line)==null?void 0:i.dashStyle,endCap:(a=e.line)==null?void 0:a.endCap,shadow:(o=e.line)==null?void 0:o.shadow},marker:OV((l=e==null?void 0:e.markers)!=null?l:{enabled:!0,fill:"filled",size:"small"})})},NV=(e,t)=>r=>{const n=Mn(e!=null?e:{},y.getDefaultStyleOptions()),i=bi(t,"line",n);return I(M({},r),{designPerSeries:i})},LV=e=>t=>{const r=e.subtype||"line/basic",n=AV[r];return n?I(M({},t),{lineType:n}):t},IV=e=>t=>{const r=e.subtype==="line/step"?{step:e.stepPosition||"left"}:{};return M(M({},t),r)};function $V(e,t){const r=kV(e,t);return y.flow(DV(e),NV(e,t),LV(e),IV(e))(r)}const FV=["line/basic","line/spline","line/step"];function zV(e){return"subtype"in e&&e.subtype?FV.includes(e.subtype):!0}const _t=(e,t)=>y.getCartesianChartOptions(e.chartData,t,e.designOptions,e.dataOptions,e.extraConfig.translate,e.extraConfig.themeSettings,e.extraConfig.dateFormatter).options,BV={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"auto"},HV=e=>{switch(e){case"bottom":return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"};case"left":return{enabled:!0,align:"left",verticalAlign:"middle",layout:"vertical"};case"right":return{enabled:!0,align:"right",verticalAlign:"middle",layout:"vertical"};case"top":return{enabled:!0,align:"center",verticalAlign:"top",layout:"horizontal"};default:return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"}}},WV=e=>{if((e==null?void 0:e.enabled)===!1||!e)return;const{text:t,textStyle:r}=e;return{title:{text:t,style:r}}},jV=e=>{if(!e)return;const{layout:t,textStyle:r,marginBottom:n,marginTop:i,distance:a,width:o,hoverTextStyle:l,hiddenTextStyle:u}=e||{};return{layout:t,itemStyle:r,itemMarginBottom:n,itemMarginTop:i,itemDistance:a,itemWidth:o,itemHoverStyle:l,itemHiddenStyle:u}},VV=e=>{if(!e)return;const{radius:t,height:r,width:n,padding:i,squared:a}=e;return{symbolRadius:t,symbolHeight:r,symbolWidth:n,symbolPadding:i,squareSymbol:a}},GV=e=>{const c=e,{title:t,items:r,symbols:n,xOffset:i,yOffset:a,backgroundColor:o,borderColor:l}=c,u=xe(c,["title","items","symbols","xOffset","yOffset","backgroundColor","borderColor"]);return y.omitUndefinedAndEmpty(I(M(M(M(M({},u),WV(t)),jV(r)),VV(n)),{x:i,y:a,backgroundColor:y.withGradientConversion(o),borderColor:y.withGradientConversion(l)}))},xo=e=>{const t={enabled:!1,symbolRadius:0,backgroundColor:"transparent",borderColor:"transparent",borderWidth:0,align:"center",verticalAlign:"bottom",layout:"horizontal"};if(!e)return t;const o=e,{position:r}=o,n=xe(o,["position"]),i=HV(r||null),a=GV(n);return y.omitUndefinedAndEmpty(I(M(M(M({},t),i),a),{itemStyle:M(M({},BV),a.itemStyle)}))},Co=e=>y.getCartesianTooltipSettings(e.dataOptions,e.extraConfig.translate),To=(e,t)=>{const r=y.buildCategoriesMeta(e.chartData,e.dataOptions,e.designOptions,y.isContinuousDatetimeXAxis(e.dataOptions.x));return y.buildXAxisSettings({designOptions:e.designOptions,dataOptions:e.dataOptions,chartData:e.chartData,categoriesMeta:r,orientation:t,isContinuous:y.isContinuousDatetimeXAxis(e.dataOptions.x),dateFormatter:e.extraConfig.dateFormatter})},Mo=(e,t)=>{const r=y.buildYAxisMeta(e.chartData,e.dataOptions),n=y.buildYAxisMinMax(0,t,e.chartData,e.designOptions,r.side,r.treatNullAsZero),i=y.hasSecondaryYAxis(r.side)?y.buildYAxisMinMax(1,t,e.chartData,e.designOptions,r.side,r.treatNullAsZero):void 0;return y.getYAxisSettings(e.designOptions.yAxis,e.designOptions.y2Axis,n,i,e.dataOptions,e.extraConfig.themeSettings)},UV=e=>{const t=To(e,"horizontal"),r=Mo(e,"line");return{xAxis:t,yAxis:r}},YV={getChart:function(e){return _t(e,"line").chart},getSeries:function(e){return _t(e,"line").series},getAxes:UV,getLegend:function(e){return xo(e.designOptions.legend)},getPlotOptions:function(e){return _t(e,"line").plotOptions},getTooltip:Co,getExtras:function(e){const t=_t(e,"line");return j.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},qV={dataOptions:{translateDataOptionsToInternal:na,getAttributes:go,getMeasures:vo,isCorrectDataOptions:yo,isCorrectDataOptionsInternal:bo},data:{loadData:rn,getChartData:wo},designOptions:{translateStyleOptionsToDesignOptions:xl($V),isCorrectStyleOptions:zV},renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:YV,getAlerts:_o}),isCorrectRendererProps:An}},XV={loadData:rn,getChartData:wo},ZV={translateDataOptionsToInternal:na,getAttributes:go,getMeasures:vo,isCorrectDataOptions:yo,isCorrectDataOptionsInternal:bo};function KV(e,t){const r=nn(e,!1),n=Mn(e,y.getDefaultStyleOptions()),i=bi(t,"polar",n),a=e.subtype||"polar/column",o=sd[a],l=(o==null?void 0:o.polarType)||"column",u=I(M({},r),{polarType:l,designPerSeries:i});return y.withYAxisNormalizationForPolar(u)}function QV(e){return typeof e=="object"&&e!==null&&(!("subtype"in e)||!e.subtype||e.subtype.startsWith("polar/"))}const JV={translateStyleOptionsToDesignOptions:KV,isCorrectStyleOptions:QV};function eG(e){const t=To(e,"horizontal"),r=Mo(e,"polar");return{xAxis:y.withPolarSpecificAxisSettings(t),yAxis:r}}const tG={getChart:function(e){const t=_t(e,"polar");return I(M({},t.chart),{polar:!0})},getSeries:function(e){return _t(e,"polar").series},getAxes:eG,getLegend:function(e){return xo(e.designOptions.legend)},getPlotOptions:function(e){return _t(e,"polar").plotOptions},getTooltip:Co,getExtras:function(e){const t=_t(e,"polar");return j.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},rG={dataOptions:ZV,data:XV,designOptions:JV,renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:tG,getAlerts:_o}),isCorrectRendererProps:An}},nG={"area/basic":{lineType:"straight",stackType:"classic"},"area/stacked":{lineType:"straight",stackType:"stacked"},"area/stacked100":{lineType:"straight",stackType:"stack100"},"area/spline":{lineType:"smooth",stackType:"classic"},"area/stackedspline":{lineType:"smooth",stackType:"stacked"},"area/stackedspline100":{lineType:"smooth",stackType:"stack100"}},iG=e=>({thin:1,bold:3,thick:5})[e.width],aG=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),oG=(e,t)=>nn(e,ad(t)),sG=e=>t=>{var r,n,i,a,o,l;return I(M({},t),{line:{width:(n=(r=e.line)==null?void 0:r.width)!=null?n:iG(e.lineWidth||{width:"thin"}),dashStyle:(i=e.line)==null?void 0:i.dashStyle,endCap:(a=e.line)==null?void 0:a.endCap,shadow:(o=e.line)==null?void 0:o.shadow},marker:aG((l=e==null?void 0:e.markers)!=null?l:{enabled:!0,fill:"filled",size:"small"})})},lG=(e,t)=>r=>{const n=Mn(e!=null?e:{},y.getDefaultStyleOptions()),i=bi(t,"area",n);return I(M({},r),{designPerSeries:i})},uG=e=>t=>{const r=e.subtype||"area/basic",n=nG[r];return n?I(M({},t),{lineType:n.lineType,stackType:n.stackType}):t},cG=e=>t=>{var r;return I(M({},t),{totalLabels:(r=e.totalLabels)!=null?r:{enabled:!1,rotation:0}})};function dG(e,t){const r=oG(e,t);return y.flow(sG(e),lG(e,t),uG(e),cG(e))(r)}const hG=["area/basic","area/stacked","area/stacked100","area/spline","area/stackedspline","area/stackedspline100"];function fG(e){return"subtype"in e&&e.subtype?hG.includes(e.subtype):!0}const pG=e=>{var r,n;const t={enabled:!1};switch(e.stackType){case"stacked":return{stacking:"normal",totalLabels:(r=e.totalLabels)!=null?r:t};case"stack100":return{stacking:"percent",totalLabels:(n=e.totalLabels)!=null?n:t};default:return{totalLabels:t}}},Z0=e=>t=>{var h,f;const r=e.designOptions,n=pG(r),{stacking:i,totalLabels:a}=n;if(!(a!=null&&a.enabled)&&!i)return t;const o=e.dataOptions,l=y.getCompleteNumberFormatConfig((h=o.y.find(({showOnRightAxis:p})=>!p))==null?void 0:h.numberFormatConfig),u=y.getCompleteNumberFormatConfig((f=o.y.find(({showOnRightAxis:p})=>p))==null?void 0:f.numberFormatConfig);function c(p,g,b=!1){return function(){var E,S;const v=typeof this.value=="number"?this.value:parseFloat(this.value),w=b&&this.total||v,C=y.applyFormatPlainText(p,w),T=g==="percent"?`${C}%`:C;return b?`${(E=a==null?void 0:a.prefix)!=null?E:""}${T}${(S=a==null?void 0:a.suffix)!=null?S:""}`:T}}return t.map((p,g)=>{const v=g===1?u:l;return I(M({},p),{labels:i?I(M({},p.labels),{formatter:c(v,i)}):p.labels,stackLabels:a!=null&&a.enabled?I(M(M({},p.stackLabels),y.prepareStackLabels(a)),{formatter:c(v,"normal",!0),style:M(M(M({},y.stackTotalFontStyleDefault),e.extraConfig.themeSettings?{color:e.extraConfig.themeSettings.typography.primaryTextColor}:null),y.prepareStackLabels(a).style),crop:!0,allowOverlap:!1,labelrank:99999}):p.stackLabels})})},gu={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},mG={FULL_ROTATION:180};function lC(e){var n;let r=0;if((n=e.totalLabels)!=null&&n.enabled&&e.stackType==="stack100"){const i=Math.abs(e.totalLabels.rotation||0)%mG.FULL_ROTATION;i<gu.HORIZONTAL?r=10:i<gu.DIAGONAL?r=30:i<gu.VERTICAL?r=40:i<gu.INVERTED_DIAGONAL?r=30:r=10}return{rightSpacing:0,topSpacing:r}}const gG=e=>{const t=To(e,"horizontal"),r=Mo(e,"area");return{xAxis:vG(e)(t),yAxis:y.flow(Z0(e),yG(e))(r)}};function vG(e){const{rightSpacing:t,topSpacing:r}=lC(e.designOptions);return y.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function yG(e){const t=bG(e);return y.withYAxisLabelPositioning({rightShift:0,topShift:t})}function bG(e){var i;const t=e.designOptions;if(!(((i=t.totalLabels)==null?void 0:i.enabled)&&t.stackType==="stack100"))return 0;const{topSpacing:n}=lC(e.designOptions);return-1*(n/2)}const _G={getChart:function(e){return _t(e,"area").chart},getSeries:function(e){return _t(e,"area").series},getAxes:gG,getLegend:function(e){return xo(e.designOptions.legend)},getPlotOptions:function(e){return _t(e,"area").plotOptions},getTooltip:Co,getExtras:function(e){const t=_t(e,"area");return j.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},wG={dataOptions:{translateDataOptionsToInternal:na,getAttributes:go,getMeasures:vo,isCorrectDataOptions:yo,isCorrectDataOptionsInternal:bo},data:{loadData:rn,getChartData:wo},designOptions:{translateStyleOptionsToDesignOptions:dG,isCorrectStyleOptions:fG},renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:_G,getAlerts:_o}),isCorrectRendererProps:An}};function uC(e,t,r){var o,l,u,c,h,f;const n=nn(t,ad(r)),i=Mn(t!=null?t:{},y.getDefaultStyleOptions()),a=bi(r,e,i);return I(M({},n),{designPerSeries:a,stackType:t.subtype?cC[t.subtype]:aC,totalLabels:t.totalLabels,itemPadding:(l=(o=t.series)==null?void 0:o.padding)!=null?l:.01,groupPadding:(c=(u=t.series)==null?void 0:u.groupPadding)!=null?c:.1,borderRadius:(f=(h=t.series)==null?void 0:h.borderRadius)!=null?f:0})}const cC={"bar/classic":"classic","bar/stacked":"stacked","bar/stacked100":"stack100","column/classic":"classic","column/stackedcolumn":"stacked","column/stackedcolumn100":"stack100"};function dC(e){return"subtype"in e&&e.subtype?Object.keys(cC).includes(e.subtype):!0}const vu={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},xG={FULL_ROTATION:180};function CG(e){var n;let t=0;const r=0;if((n=e.totalLabels)!=null&&n.enabled&&e.stackType==="stack100"){const i=Math.abs(e.totalLabels.rotation||0)%xG.FULL_ROTATION;i<vu.HORIZONTAL?t=40:i<vu.DIAGONAL?t=25:i<vu.VERTICAL?t=15:i<vu.INVERTED_DIAGONAL?t=25:t=40}return{rightSpacing:t,topSpacing:r}}const TG=e=>{const t=To(e,"vertical"),r=Mo(e,"bar");return{xAxis:MG(e)(t),yAxis:y.flow(Z0(e),SG(e))(r)}};function MG(e){const{rightSpacing:t,topSpacing:r}=CG(e.designOptions);return y.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function SG(e){var a;const t=e.designOptions,n=((a=t.totalLabels)==null?void 0:a.enabled)&&t.stackType==="stack100"?.1:0;return y.withYAxisLabelPositioning({rightShift:n,topShift:0})}const EG=e=>PG(e)(xo(e.designOptions.legend));function PG(e){return r=>{var n,i;return e.dataOptions.x.length>1&&y.isLegendOnRight(e.designOptions.legend)?I(M({},r),{margin:(i=(n=e.designOptions.legend)==null?void 0:n.margin)!=null?i:80}):r}}const AG={getChart:function(e){return _t(e,"bar").chart},getSeries:function(e){return _t(e,"bar").series},getAxes:TG,getLegend:EG,getPlotOptions:function(e){return _t(e,"bar").plotOptions},getTooltip:Co,getExtras:function(e){const t=_t(e,"bar");return j.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},RG={dataOptions:{translateDataOptionsToInternal:na,getAttributes:go,getMeasures:vo,isCorrectDataOptions:yo,isCorrectDataOptionsInternal:bo},data:{loadData:rn,getChartData:wo},designOptions:{translateStyleOptionsToDesignOptions:xl(uC)("bar"),isCorrectStyleOptions:dC},renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:AG,getAlerts:_o}),isCorrectRendererProps:An}},yu={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},OG={FULL_ROTATION:180};function hC(e){var n;let r=0;if((n=e.totalLabels)!=null&&n.enabled&&e.stackType==="stack100"){const i=Math.abs(e.totalLabels.rotation||0)%OG.FULL_ROTATION;i<yu.HORIZONTAL?r=10:i<yu.DIAGONAL?r=30:i<yu.VERTICAL?r=40:i<yu.INVERTED_DIAGONAL?r=30:r=10}return{rightSpacing:0,topSpacing:r}}const kG=e=>{const t=To(e,"horizontal"),r=Mo(e,"column");return{xAxis:DG(e)(t),yAxis:y.flow(Z0(e),NG(e))(r)}};function DG(e){const{rightSpacing:t,topSpacing:r}=hC(e.designOptions);return y.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function NG(e){var a;const t=e.designOptions,r=((a=t.totalLabels)==null?void 0:a.enabled)&&t.stackType==="stack100";let n=0;if(r){const{topSpacing:o}=hC(e.designOptions);n=-1*(o/2)}return y.withYAxisLabelPositioning({rightShift:0,topShift:n})}const LG={getChart:function(e){return _t(e,"column").chart},getSeries:function(e){return _t(e,"column").series},getAxes:kG,getLegend:function(e){return xo(e.designOptions.legend)},getPlotOptions:function(e){return _t(e,"column").plotOptions},getTooltip:Co,getExtras:function(e){const t=_t(e,"column");return j.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},IG={dataOptions:{translateDataOptionsToInternal:na,getAttributes:go,getMeasures:vo,isCorrectDataOptions:yo,isCorrectDataOptionsInternal:bo},data:{loadData:rn,getChartData:wo},designOptions:{translateStyleOptionsToDesignOptions:xl(uC)("column"),isCorrectStyleOptions:dC},renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:LG,getAlerts:_o}),isCorrectRendererProps:An}},$G=e=>{const t=n=>typeof n=="number"&&Number.isNaN(n)||n==null?0:n,r=n=>{const i=t(n.value);return I(M({},n),{value:i})};return I(M({},e),{series:e.series.map(n=>I(M({},n),{data:n.data.map(r)}))})},FG=y.flow(wo,$G),zG=e=>({thin:1,bold:3,thick:5})[e.width],BG=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),HG=(e,t)=>nn(e,ad(t)),WG=e=>t=>{var r,n,i,a,o,l,u,c,h;return I(M({},t),{seriesTitles:{enabled:(n=(r=e.seriesTitles)==null?void 0:r.enabled)!=null?n:!0,textStyle:(i=e.seriesTitles)==null?void 0:i.textStyle},line:{width:(o=(a=e.line)==null?void 0:a.width)!=null?o:zG(e.lineWidth||{width:"thin"}),dashStyle:(l=e.line)==null?void 0:l.dashStyle,endCap:(u=e.line)==null?void 0:u.endCap,shadow:(c=e.line)==null?void 0:c.shadow},marker:BG((h=e==null?void 0:e.markers)!=null?h:{enabled:!1,fill:"filled",size:"small"})})},jG=(e,t)=>r=>{const n=bi(t,"area",e);return I(M({},r),{designPerSeries:n})},VG=e=>t=>{var r,n,i,a,o,l,u,c,h,f,p,g;return I(M({},t),{seriesLabels:I(M({},e.seriesLabels),{enabled:(n=(r=e.seriesLabels)==null?void 0:r.enabled)!=null?n:!1,rotation:(a=(i=e.seriesLabels)==null?void 0:i.rotation)!=null?a:0,showValue:(c=(u=(o=e.seriesLabels)==null?void 0:o.showValue)!=null?u:(l=e.seriesLabels)==null?void 0:l.enabled)!=null?c:!1,textStyle:I(M({},(h=e.seriesLabels)==null?void 0:h.textStyle),{color:(g=(p=(f=e.seriesLabels)==null?void 0:f.textStyle)==null?void 0:p.color)!=null?g:"#000000"})})})};function GG(e,t){const r=HG(e,t);return y.flow(WG(e),jG(e,t),VG(e))(r)}function UG(e){return!0}function YG(){const e=y.getDefaultStyleOptions();return j.merge$1(e,{yAxis:{enabled:!0,gridLines:!0,labels:{enabled:!1},title:{enabled:!1,text:""}},xAxis:{gridLines:!1},legend:{enabled:!1}})}const qG=e=>{const t=To(e,"horizontal"),r=Mo(e,"area"),n=t.map(a=>{var o;return I(M({},a),{gridLineWidth:e.designOptions.xAxis.gridLine?1:0,labels:I(M({},a.labels),{enabled:(o=e.designOptions.xAxis.labels)!=null?o:!0})})}),i=r.map(a=>I(M({},a),{visible:e.designOptions.yAxis.enabled,gridLineWidth:e.designOptions.yAxis.gridLine?1:0,labels:I(M({},a.labels),{enabled:e.designOptions.yAxis.labels}),startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.15,min:void 0,max:void 0}));return{xAxis:n,yAxis:i}},XG=e=>{var n,i,a,o,l;const t=_t(e,"area").plotOptions,r=(i=(n=e.designOptions.line)==null?void 0:n.width)!=null?i:1;return I(M({},t),{series:I(M({},t.series),{stacking:"stream",lineWidth:r,fillOpacity:1,label:{enabled:(o=(a=e.designOptions.seriesTitles)==null?void 0:a.enabled)!=null?o:!0,minFontSize:5,maxFontSize:15,style:(l=e.designOptions.seriesTitles)==null?void 0:l.textStyle}})})},ZG={getChart:function(e){const t=_t(e,"area");return I(M({},t.chart),{type:"streamgraph"})},getSeries:function(e){return _t(e,"area").series},getAxes:qG,getLegend:function(e){return xo(e.designOptions.legend)},getPlotOptions:XG,getTooltip:Co,getExtras:function(e){const t=_t(e,"area");return j.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},KG={dataOptions:{translateDataOptionsToInternal:na,getAttributes:go,getMeasures:vo,isCorrectDataOptions:yo,isCorrectDataOptionsInternal:bo},data:{loadData:rn,getChartData:FG},designOptions:{translateStyleOptionsToDesignOptions:GG,isCorrectStyleOptions:UG,getDefaultStyleOptions:YG},renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:ZG,getAlerts:_o}),isCorrectRendererProps:An}},QG=e=>y.getAlerts(e.chartData,e.designOptions),ud=(e,t)=>{const r=I(M({},e),{x:e.breakBy,breakBy:[]});let n=y.cartesianData(r,t);if(e.breakBy.some(({column:{type:a},numberFormatConfig:o})=>j.isNumber(a)&&o)){const a=n.xValues.map(o=>{const l=[];return e.breakBy.forEach(({column:{type:u},numberFormatConfig:c},h)=>{const f=y.getCompleteNumberFormatConfig(c),p=o.xValues[h];j.isNumber(u)?l.push(y.applyFormatPlainText(f,parseFloat(p))):l.push(o.xValues[h])}),I(M({},o),{xValues:l})});n=I(M({},n),{xValues:a})}return I(M({},n),{type:"categorical"})},fC=rn;function pC(e,t){return ud(e,t)}const F1=50,JG=e=>(...t)=>{var l;const[r,...n]=t,i=(l=r.queryDescription)==null?void 0:l.count,a=Math.min(i!=null?i:F1,F1),o=I(M({},r),{queryDescription:I(M({},r.queryDescription),{count:a})});return e(o,...n)},eU={loadData:JG(fC),getChartData:(e,t)=>pC(e,t)};function tU(e,t){const r=rU[e],n=e!=="pie"||t.category.length>0,i=[mC(r.category),n?gC(r.value):a=>a];return y.flow(...i)(t)}const rU={pie:{category:3,value:1},funnel:{category:1,value:1},treemap:{category:3,value:1},sunburst:{category:6,value:1}};function mC(e){return t=>(t.category.length>e&&console.warn(`Maximum 'category' length is limited to ${e}. Taken first ${e} categories`),I(M({},t),{category:t.category.slice(0,e)}))}function gC(e){return t=>(t.value.length>e&&console.warn(`Maximum 'value' length is limited to ${e}. Taken first ${e} values`),I(M({},t),{value:t.value.slice(0,e)}))}function vC(e){return{y:e.value.map(t=>y.normalizeMeasureColumn(t)),breakBy:e.category.map(t=>y.normalizeColumn(t)),seriesToColorMap:e.seriesToColorMap}}function cd(e){return[...e.breakBy.map(yC)].filter(nU)}function dd(e){return e.y.map(yC).filter(y.isMeasureColumn)}function hd(e){return"category"in e&&"value"in e&&Array.isArray(e.category)&&Array.isArray(e.value)}function fd(e){return e&&"y"in e&&Array.isArray(e.y)&&e.y.every(y.isMeasureColumn)&&"breakBy"in e&&Array.isArray(e.breakBy)&&e.breakBy.every(y.isStyledColumn)}function yC(e){return e.column}function nU(e){return!y.isMeasureColumn(e)}function pd({maxCategories:e,maxValues:t}){return y.flow(mC(e),gC(t))}const iU={translateDataOptionsToInternal:e=>{const t=e.category.length>0?pd({maxCategories:1,maxValues:1})(e):e;return vC(t)},getAttributes:e=>cd(e),getMeasures:e=>dd(e),isCorrectDataOptions:e=>hd(e),isCorrectDataOptionsInternal:e=>fd(e)},aU=e=>{var r,n;const{dataLimits:t}=e;return{categoriesCapacity:(r=t==null?void 0:t.categoriesCapacity)!=null?r:5e4,seriesCapacity:(n=t==null?void 0:t.seriesCapacity)!=null?n:5e4}};function oU(e){var l,u,c,h,f;const{funnelType:t=y.DefaultFunnelType,funnelSize:r=y.DefaultFunnelSize,funnelDirection:n=y.DefaultFunnelDirection,legend:i,seriesLabels:a}=e,o=aU(e);return I(M({},xr),{funnelSize:r,funnelType:t,funnelDirection:n,legend:i,dataLimits:o,seriesLabels:I(M({},a!=null?a:{}),{enabled:(l=a==null?void 0:a.enabled)!=null?l:y.DefaultFunnelSeriesLabels.enabled,showCategory:(u=a==null?void 0:a.showCategory)!=null?u:y.DefaultFunnelSeriesLabels.showCategory,showValue:(c=a==null?void 0:a.showValue)!=null?c:y.DefaultFunnelSeriesLabels.showValue,showPercentage:(h=a==null?void 0:a.showPercentage)!=null?h:y.DefaultFunnelSeriesLabels.showPercentage,showPercentDecimals:(f=a==null?void 0:a.showPercentDecimals)!=null?f:y.DefaultFunnelSeriesLabels.showPercentDecimals})})}function sU(e){return!e||typeof e=="object"}function lU(){return{legend:{enabled:!0,position:"bottom"},funnelType:y.DefaultFunnelType,funnelSize:y.DefaultFunnelSize,funnelDirection:y.DefaultFunnelDirection,seriesLabels:y.DefaultFunnelSeriesLabels}}function uU(e={}){var a,o,l,u,c;const i=e,{labels:t,seriesLabels:r}=i,n=xe(i,["labels","seriesLabels"]);return y.omitUndefinedAndEmpty(I(M({},n),{seriesLabels:I(M({},r!=null?r:{}),{enabled:(a=r==null?void 0:r.enabled)!=null?a:t==null?void 0:t.enabled,showCategory:(o=r==null?void 0:r.showCategory)!=null?o:t==null?void 0:t.categories,showValue:(l=r==null?void 0:r.showValue)!=null?l:t==null?void 0:t.value,showPercentage:(u=r==null?void 0:r.showPercentage)!=null?u:t==null?void 0:t.percent,showPercentDecimals:(c=r==null?void 0:r.showPercentDecimals)!=null?c:t==null?void 0:t.decimals})}))}const cU={translateStyleOptionsToDesignOptions:oU,isCorrectStyleOptions:sU,getDefaultStyleOptions:lU,translateLegacyStyleOptionsToModern:uU},dU={getChart:function(e){return{type:y.determineHighchartsChartType("funnel",e.designOptions),spacing:[30,30,30,30],alignTicks:!1,polar:!1}},getSeries:function(e){const{series:t}=y.formatFunnelChartData(e.chartData,e.dataOptions,e.designOptions,e.extraConfig.themeSettings);return t},getAxes:function(){return{xAxis:[],yAxis:[]}},getLegend:function(e){return y.getLegendSettings(e.designOptions.legend)},getPlotOptions:function(e){return y.getFunnelPlotOptions(e.designOptions,e.dataOptions)},getTooltip:function(e){var t;return y.getCategoryTooltipSettings((t=e.designOptions.seriesLabels)==null?void 0:t.showPercentDecimals,e.dataOptions)},getExtras:function(){return{title:{text:null}}}},hU={dataOptions:iU,data:eU,designOptions:cU,renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:dU,getAlerts:QG}),isCorrectRendererProps:An}},fU=e=>{const{seriesCapacity:t}=e.designOptions.dataLimits;return y.getPieAlerts(e.chartData,t)},pU={loadData:fC,getChartData:(e,t)=>pC(e,t)},mU={translateDataOptionsToInternal:e=>{const t=e.category.length>0?pd({maxCategories:1,maxValues:1})(e):e;return vC(t)},getAttributes:e=>cd(e),getMeasures:e=>dd(e),isCorrectDataOptions:e=>hd(e),isCorrectDataOptionsInternal:e=>fd(e)},gU="classic",es={enabled:!0,showCategory:!0,showValue:!1,percentageLabels:{enabled:!0,showDecimals:!1}},vU=e=>{var r,n;const{dataLimits:t}=e;return{categoriesCapacity:(r=t==null?void 0:t.categoriesCapacity)!=null?r:5e4,seriesCapacity:(n=t==null?void 0:t.seriesCapacity)!=null?n:5e4}};function yU(e){var h,f,p,g,b,v,w,C,T,E,S,P;const{legend:t,labels:r,subtype:n,seriesLabels:i,semiCircle:a}=e,o=n?sd[n]:void 0,l=(o==null?void 0:o.pieType)||gU,u=e!=null&&e.convolution?e.convolution:{enabled:!1},c=vU(e);return I(M({},xr),{seriesLabels:I(M({},i),{enabled:(f=(h=i==null?void 0:i.enabled)!=null?h:r==null?void 0:r.enabled)!=null?f:es.enabled,showCategory:(g=(p=i==null?void 0:i.showCategory)!=null?p:r==null?void 0:r.categories)!=null?g:es.showCategory,showValue:(v=(b=i==null?void 0:i.showValue)!=null?b:r==null?void 0:r.value)!=null?v:es.showValue,percentageLabels:I(M({},i==null?void 0:i.percentageLabels),{enabled:(T=(C=(w=i==null?void 0:i.percentageLabels)==null?void 0:w.enabled)!=null?C:r==null?void 0:r.percent)!=null?T:es.percentageLabels.enabled,showDecimals:(P=(S=(E=i==null?void 0:i.percentageLabels)==null?void 0:E.showDecimals)!=null?S:r==null?void 0:r.decimals)!=null?P:es.percentageLabels.showDecimals})}),pieType:l,convolution:u,legend:t,dataLimits:c,semiCircle:a})}function bU(e){return!e||typeof e=="object"}function _U(){return{legend:{enabled:!0,position:"bottom"},labels:{enabled:!0,categories:!0,percent:!0,decimals:!1,value:!1}}}const wU={translateStyleOptionsToDesignOptions:yU,isCorrectStyleOptions:bU,getDefaultStyleOptions:_U},xU={getChart:function(e){return{type:y.determineHighchartsChartType("pie",e.designOptions),spacing:[20,20,20,20],alignTicks:!1,polar:!1}},getSeries:function(e){return y.getPieSeries({chartData:e.chartData,dataOptions:e.dataOptions,seriesCapacity:e.designOptions.dataLimits.seriesCapacity,convolution:e.designOptions.convolution,themeSettings:e.extraConfig.themeSettings})},getAxes:function(){return{xAxis:[],yAxis:[]}},getLegend:function(e){return y.getLegendSettings(e.designOptions.legend)},getPlotOptions:function(e){return y.getPiePlotOptions({pieType:e.designOptions.pieType,seriesLabels:e.designOptions.seriesLabels,chartDataOptions:e.dataOptions,themeSettings:e.extraConfig.themeSettings,semiCircle:e.designOptions.semiCircle})},getTooltip:function(e){var t,r;return y.getCategoryTooltipSettings((r=(t=e.designOptions.seriesLabels)==null?void 0:t.percentageLabels)==null?void 0:r.showDecimals,e.dataOptions)},getExtras:function(e){const t=y.getPieConvolutionSeries({chartData:e.chartData,dataOptions:e.dataOptions,seriesCapacity:e.designOptions.dataLimits.seriesCapacity,convolution:e.designOptions.convolution,themeSettings:e.extraConfig.themeSettings});return{title:{text:null},drilldown:{activeDataLabelStyle:{cursor:"pointer",fontWeight:"bold",textDecoration:"none"},series:t}}}},CU={dataOptions:mU,data:pU,designOptions:wU,renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:xU,getAlerts:fU}),isCorrectRendererProps:An}};function TU(){return[]}const MU={loadData:rn,getChartData:(e,t)=>ud(e,t)},SU=(e,t)=>{if(y.emptyTable(t))return{rows:[],columns:[]};const r=y.getColumnsByName(t,e);return y.selectColumns(t,r)},Ip=({column:e,sortType:t})=>{switch("getSort"in e?e.getSort():t){case"sortAsc":case j.Sort.Ascending:return 1;case"sortDesc":case j.Sort.Descending:return-1;default:return 0}},EU=(e,t)=>{const r=e.columns.find(n=>Ip(n)!==0);if(r){const n=y.getColumnByName(t,r.column.name);n&&(n.direction=Ip(r))}return t},bC=e=>{if(!("sortType"in e))return e;const t=e.sortType,r=j.convertSortDirectionToSort(t);return I(M({},e),{sortType:t,column:PU(e.column,r)})};function PU(e,t){return RU(e)?AU(e,t):e}function AU(e,t){const r=e.sort(t);return y.isMeasureColumn(r)&&y.isMeasureColumn(e)&&(r.title=e.title),r}function RU(e){return"sort"in e&&typeof e.sort=="function"}const OU=(e,t)=>({columns:e.columns.map(r=>{const n=r.column.name===t.name,i=Ip(r),a=n?i===1?"sortDesc":"sortAsc":"sortNone";return r.sortType=a,bC(r)})}),kU=(e,t)=>{const r=SU(e.columns.map(({column:{name:n}})=>n),t);return EU(e,r)},DU=(e,t)=>{switch(t){case"iqr":return _3(e);case"extremums":return w3(e);case"standardDeviation":return x3(e)}},NU=(e,t)=>{switch(t){case"iqr":return C3(e);case"standardDeviation":return T3(e)}},LU=(e,t,r)=>{const{column:n,style:i}=y.splitColumn(e);let a=DU(n,t),o;return i&&(a=a.map(l=>M({column:l},i))),r&&(o=NU(n,t),o&&i&&(o=M({column:o},i))),{values:a,outliers:o}},IU=e=>e.value.length>1,_C=e=>{var f;const{category:t}=e;let r,n,i;if(IU(e))r=e.value,i=e.valueTitle,n=(f=e.outliers)==null?void 0:f[0];else{const{outliersEnabled:p,boxType:g}=e,b=y.normalizeColumn(e.value[0]),{values:v,outliers:w}=LU(b,g,!!p);r=v,n=w,i=y.getDataOptionTitle(b)}const[a,o,l,u,c,h]=r;return{category:t[0]&&y.normalizeColumn(t[0]),boxMin:a&&y.normalizeMeasureColumn(a),boxMedian:o&&y.normalizeMeasureColumn(o),boxMax:l&&y.normalizeMeasureColumn(l),whiskerMin:u&&y.normalizeMeasureColumn(u),whiskerMax:c&&y.normalizeMeasureColumn(c),outliersCount:h&&y.normalizeMeasureColumn(h),outliers:n&&y.normalizeColumn(n),valueTitle:i}};function $U(e){var a;const t=e.value.map(o=>{if(o!=null&&o.chartType)return[y.normalizeMeasureColumn(o)];const f=o,{lowerBound:l,upperBound:u,title:c}=f,h=xe(f,["lowerBound","upperBound","title"]);return[y.normalizeMeasureColumn(M({column:y.safeMerge(l,{title:c})},h)),y.normalizeMeasureColumn(M({column:y.safeMerge(u,{title:c})},h))]}),r=t.flat(),n=t.filter(o=>o.length===2),i=t.filter(o=>o.length===1).flat();return{x:e.category.map(o=>y.normalizeColumn(o)),breakBy:((a=e.breakBy)==null?void 0:a.map(o=>y.normalizeColumn(o)))||[],y:r,rangeValues:n,seriesValues:i,seriesToColorMap:e.seriesToColorMap}}const z1={city:4,state:3,country:2,auto:1};function FU(e){return e.filter(r=>"geoLevel"in r&&r.geoLevel).map(r=>r.geoLevel).reduce((r,n)=>z1[n]>z1[r]?n:r,"auto")}function zU(e){const{geo:t,size:r,colorBy:n,details:i}=e;return{locations:t.map(a=>y.normalizeColumn(a)),size:r&&y.normalizeMeasureColumn(r),colorBy:n&&y.normalizeMeasureColumn(n),details:i&&y.normalizeAnyColumn(i),locationLevel:FU(t)}}function BU(e,t){if(y.isCartesian(e))return na(t);if(y.isCategorical(e))return K0(t);if(y.isIndicator(e))return HU(t);if(y.isScatter(e))return WU(t);if(y.isBoxplot(e))return _C(t);if(y.isScattermap(e))return zU(t);if(y.isRange(e))return $U(t);throw new j.TranslatableError("errors.unexpectedChartType",{chartType:e})}const K0=e=>({y:e.value.map(t=>y.normalizeMeasureColumn(t)),breakBy:e.category.map(t=>y.normalizeColumn(t)),seriesToColorMap:e.seriesToColorMap}),HU=e=>{var t,r,n,i,a,o;return{value:(t=e.value)==null?void 0:t.map(l=>y.normalizeMeasureColumn(l)),secondary:(r=e.secondary)==null?void 0:r.map(l=>y.normalizeMeasureColumn(l)),min:(i=(n=e.min)==null?void 0:n.map(l=>y.normalizeMeasureColumn(l)))==null?void 0:i.map(B1("min")),max:(o=(a=e.max)==null?void 0:a.map(l=>y.normalizeMeasureColumn(l)))==null?void 0:o.map(B1("max"))}},B1=e=>t=>{const{column:r}=t,n="aggregation"in r&&r.aggregation||e;return I(M({},t),{column:y.safeMerge(r,{aggregation:n})})},WU=e=>{const{x:t,y:r,breakByPoint:n,breakByColor:i,size:a,seriesToColorMap:o}=e;return{x:t&&y.normalizeAnyColumn(t),y:r&&y.normalizeAnyColumn(r),breakByPoint:n&&y.normalizeColumn(n),breakByColor:i&&y.normalizeAnyColumn(i),size:a&&y.normalizeMeasureColumn(a),seriesToColorMap:o}};function jU(e,t){let r=[];return y.isScatter(t)?r=["x","y","breakByPoint","breakByColor"]:y.isCartesian(t)||y.isCategorical(t)||y.isRange(t)?r=["x","breakBy"]:y.isBoxplot(t)?r=["category","outliers"]:y.isScattermap(t)&&(r=["locations"]),r.flatMap(i=>{var a;return(a=e[i])!=null?a:[]}).filter(i=>!y.isMeasureColumn(i)).map(({column:i})=>i)}function VU(e,t){let r=[];return y.isIndicator(t)?r=["value","secondary","min","max"]:y.isScatter(t)?r=["x","y","breakByColor","size"]:y.isCartesian(t)||y.isCategorical(t)||y.isRange(t)?r=["y"]:y.isBoxplot(t)?r=["boxMin","boxMedian","boxMax","whiskerMin","whiskerMax","outliersCount"]:y.isScattermap(t)&&(r=["size","colorBy","details"]),r.flatMap(i=>{var a;return(a=e[i])!=null?a:[]}).filter(y.isMeasureColumn).map(({column:i})=>i)}function wC(e){return{columns:e.columns.map(t=>y.normalizeAnyColumn(t)).map(bC)}}function GU(e){var t,r,n;return{rows:(t=e.rows)==null?void 0:t.map(i=>y.normalizeColumn(i)),columns:(r=e.columns)==null?void 0:r.map(i=>y.normalizeColumn(i)),values:(n=e.values)==null?void 0:n.map(i=>y.normalizeMeasureColumn(i)),grandTotals:e.grandTotals}}const UU={translateDataOptionsToInternal:e=>K0(pd({maxCategories:6,maxValues:1})(e)),getAttributes:cd,getMeasures:dd,isCorrectDataOptions:e=>hd(e),isCorrectDataOptionsInternal:e=>fd(e)},YU={translateStyleOptionsToDesignOptions:e=>sC(e),getDefaultStyleOptions:()=>({seriesLabels:{enabled:!1},legend:{enabled:!0}}),translateLegacyStyleOptionsToModern:e=>{var r;const t=e!=null?e:{};return t!=null&&t.labels&&!(t!=null&&t.seriesLabels)?I(M({},t),{seriesLabels:(r=t.labels.category)==null?void 0:r.map(n=>{var i;return{enabled:(i=n==null?void 0:n.enabled)!=null?i:!0}})}):t},isCorrectStyleOptions:e=>!(!e||typeof e!="object")},qU={getChart:()=>({type:"sunburst",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}}),getSeries:e=>y.prepareSunburstSeries(e.chartData,e.dataOptions,e.designOptions,e.extraConfig.themeSettings),getAxes:()=>({xAxis:void 0,yAxis:void 0}),getLegend:e=>y.getLegendSettings(e.designOptions.legend),getPlotOptions:()=>({series:{},sunburst:{events:{legendItemClick:function(e){e.preventDefault()}}}}),getTooltip:e=>y.prepareSunburstTooltip(e.dataOptions,e.designOptions,e.extraConfig.translate),getExtras:()=>({title:{text:null}})},XU={dataOptions:UU,data:MU,designOptions:YU,renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:qU,getAlerts:TU}),isCorrectRendererProps:An}};function ZU(){return[]}const KU={loadData:rn,getChartData:(e,t)=>ud(e,t)},QU={translateDataOptionsToInternal:e=>K0(pd({maxCategories:3,maxValues:1})(e)),getAttributes:cd,getMeasures:dd,isCorrectDataOptions:e=>hd(e),isCorrectDataOptionsInternal:e=>fd(e)},JU={translateStyleOptionsToDesignOptions:e=>oC(e),getDefaultStyleOptions:()=>({seriesLabels:{enabled:!0},tooltip:{mode:"value"}}),translateLegacyStyleOptionsToModern:e=>{var r;const t=e!=null?e:{};return t!=null&&t.labels&&!(t!=null&&t.seriesLabels)?I(M({},t),{seriesLabels:(r=t.labels.category)==null?void 0:r.map(n=>{var i;return{enabled:(i=n==null?void 0:n.enabled)!=null?i:!0}})}):t},isCorrectStyleOptions:e=>!(!e||typeof e!="object")},eY="rgb(0, 206, 230)",tY={getChart:()=>({type:"treemap",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}}),getSeries:e=>[{type:"treemap",layoutAlgorithm:"strip",layoutStartingDirection:"horizontal",clip:!1,color:eY,name:e.dataOptions.y[0]?y.getDataOptionTitle(e.dataOptions.y[0]):"",data:y.prepareTreemapDataItems(e.chartData,e.dataOptions,e.extraConfig.themeSettings),levels:y.prepareTreemapLevels(e.dataOptions,e.designOptions,e.extraConfig.themeSettings),dataLabels:{style:{textOutline:"none"}}}],getAxes:()=>({xAxis:void 0,yAxis:void 0}),getLegend:()=>({enabled:!1}),getPlotOptions:()=>({series:{}}),getTooltip:e=>y.getTreemapTooltipSettings(e.dataOptions,e.designOptions,e.extraConfig.translate),getExtras:()=>({title:{text:null}})},rY={dataOptions:QU,data:KU,designOptions:JU,renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:tY,getAlerts:ZU}),isCorrectRendererProps:An}},nY={areamap:HH,area:wG,column:IG,bar:RG,line:qV,polar:rG,streamgraph:KG,pie:CU,funnel:hU,treemap:rY,sunburst:XU,"calendar-heatmap":fj};function Cl(e){const t=nY[e];if(t)return t;throw new Error(`Unsupported chart type: ${e}`)}function iY(e,t){return y.isCartesian(t)?e.value.some(n=>(n==null?void 0:n.forecast)!==void 0||(n==null?void 0:n.trend)!==void 0):!1}function Tl(e){return["areamap","area","column","bar","line","polar","pie","funnel","calendar-heatmap","treemap","sunburst","streamgraph"].includes(e)}function aY(e){let t;switch(e.subtype){case"indicator/numeric":t=M({indicatorType:"numeric",numericSubtype:e.numericSubtype},e.numericSubtype==="numericSimple"?{skin:e.skin}:null);break;case"indicator/gauge":t=M({indicatorType:"gauge",skin:e.skin},e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null);break}return I(M(M({},xr),t),{indicatorComponents:e.indicatorComponents||xr.indicatorComponents,forceTickerView:!!e.forceTickerView})}const oY=(e,t,r)=>{const n="y"in r&&Array.isArray(r.y)?r.y.some(l=>l.showOnRightAxis):!1;let i;switch(e){case"area":i=vV(t,r,n);break;case"arearange":case"line":i=gV(t,r,n);break;case"pie":i=_V(t);break;case"funnel":i=wV(t);break;case"treemap":i=oC(t);break;case"sunburst":i=sC(t);break;case"polar":i=CV(t,r);break;case"indicator":i=aY(t);break;case"scatter":i=MV(t);break;case"boxplot":i=SV(t);break;case"scattermap":i=PV(t);break;default:throw new j.TranslatableError("errors.chartTypeNotSupported",{chartType:e})}const a="subtype"in t&&t.subtype?t.subtype:"line/basic",o=sd[a];return M(M({},i),o)};function sY(e,t,r){var n,i,a,o,l,u,c;if(Tl(e)){const h=Cl(e),f=Mn((o=(a=(i=(n=h.designOptions).translateLegacyStyleOptionsToModern)==null?void 0:i.call(n,r))!=null?a:r)!=null?o:{},(c=(u=(l=h.designOptions).getDefaultStyleOptions)==null?void 0:u.call(l))!=null?c:y.getDefaultStyleOptions());if(!h.designOptions.isCorrectStyleOptions(f))throw new j.TranslatableError("errors.optionsTranslation.invalidStyleOptions",{chartType:e});if(!h.dataOptions.isCorrectDataOptionsInternal(t))throw new j.TranslatableError("errors.optionsTranslation.invalidInternalDataOptions",{chartType:e});return h.designOptions.translateStyleOptionsToDesignOptions(f,t)}else{const h=Mn(r!=null?r:{},y.getDefaultStyleOptions());return oY(e,h,t)}}function Mn(e,t){return j.merge$1.withOptions({mergeArrays:!1},t,e)}function bi(e,t,r){return lY(e).map(i=>{const a=i.seriesId,o=i.seriesStyleOptions,l=mV(t,Mn(o,r));return{seriesId:a,designOptions:h$(l,["line","marker"])}}).reduce((i,{seriesId:a,designOptions:o})=>I(M({},i),{[a]:o}),{})}function lY(e){return e.y.filter(uY).map(({column:{name:t},seriesStyleOptions:r})=>({seriesId:t,seriesStyleOptions:r}))}function uY(e){return e.seriesStyleOptions!==void 0}function xC(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:j.baseSlice(e,t,r)}function cY(e,t){for(var r=e.length;r--&&G0(t,e[r],0)>-1;);return r}function dY(e,t){for(var r=-1,n=e.length;++r<n&&G0(t,e[r],0)>-1;);return r}function hY(e){return e.split("")}var fY="\\ud800-\\udfff",pY="\\u0300-\\u036f",mY="\\ufe20-\\ufe2f",gY="\\u20d0-\\u20ff",vY=pY+mY+gY,yY="\\ufe0e\\ufe0f",bY="\\u200d",_Y=RegExp("["+bY+fY+vY+yY+"]");function CC(e){return _Y.test(e)}var TC="\\ud800-\\udfff",wY="\\u0300-\\u036f",xY="\\ufe20-\\ufe2f",CY="\\u20d0-\\u20ff",TY=wY+xY+CY,MY="\\ufe0e\\ufe0f",SY="["+TC+"]",$p="["+TY+"]",Fp="\\ud83c[\\udffb-\\udfff]",EY="(?:"+$p+"|"+Fp+")",MC="[^"+TC+"]",SC="(?:\\ud83c[\\udde6-\\uddff]){2}",EC="[\\ud800-\\udbff][\\udc00-\\udfff]",PY="\\u200d",PC=EY+"?",AC="["+MY+"]?",AY="(?:"+PY+"(?:"+[MC,SC,EC].join("|")+")"+AC+PC+")*",RY=AC+PC+AY,OY="(?:"+[MC+$p+"?",$p,SC,EC,SY].join("|")+")",kY=RegExp(Fp+"(?="+Fp+")|"+OY+RY,"g");function DY(e){return e.match(kY)||[]}function zp(e){return CC(e)?DY(e):hY(e)}function NY(e,t,r){if(e=j.toString(e),e&&(r||t===void 0))return y.baseTrim(e);if(!e||!(t=j.baseToString(t)))return e;var n=zp(e),i=zp(t),a=dY(n,i),o=cY(n,i)+1;return xC(n,a,o).join("")}const RC=",";function LY(e){return e.join(`${RC} `)}function IY(e){return e.split(RC).map(NY)}function $Y(e){switch(e){case"city":return"city";case"state":return"adm";case"country":return"country"}}function FY(e,t){const{name:r,rawName:n,coordinates:i,value:a,colorValue:o,details:l}=e,c={geo:t.locations.map((h,f)=>I(M({},Ve(h)),{value:n[f]}))};if(t.size&&(c.size=I(M({},Ve(t.size)),{value:a})),t.colorBy&&(c.colorBy=I(M({},Ve(t.colorBy)),{value:o})),t.details){const h=Ve(t.details);h.measure&&(c.details=I(M({},h),{value:l}))}return{categories:n,displayName:r,coordinates:{lat:i.lat,lng:i.lng},value:a,entries:c}}const zY=Object.freeze({usa:"united states",switzerland:"switzerland country",uk:"united kingdom"});function BY(e,t){const r=zY[e.toLowerCase()];return r&&(t[r]=e),r||e}function HY(e,t){return t[e.toLowerCase()]||e}const WY=(e,t)=>{const{app:r}=Et(),[n,i]=k.useState([]),a=k.useRef(e),o=k.useCallback(()=>er(exports,null,function*(){if(!r||!e)return;const l={},u=$Y(t),c=yield r.httpClient.post("api/v1/geo/locations",M({locations:e.map(b=>({name:BY(b.name,l)}))},u&&{geoLevel:u})),h=a.current!==e;if(!c||h)return;const f=c.reduce((b,v)=>{const w=I(M({},v),{name:HY(v.name,l)});return b[w.name]=w,b},{}),p=[],g=e.map(b=>(f[b.name]||p.push(b.name),M(M({},b),f[b.name]?{coordinates:f[b.name].latLng}:null)));p.length&&console.warn(`Locations "${p.join(", ")}" coordinates not found`),i(g)}),[r,i,e,t]);return k.useEffect(()=>{e&&(a.current=e,e.some(u=>!!u.coordinates)?i(e):o())},[e,r,o,i]),n},jY=()=>{const{app:e}=Et(),[t,r]=k.useState(null),n=k.useCallback(()=>er(exports,null,function*(){if(!e)return;const i=yield e.httpClient.get("api/v1/settings/system");i&&r(i.geo)}),[r,e]);return k.useEffect(()=>{n()},[e,n]),t};var VY="Expected a function";function GY(e,t,r){if(typeof e!="function")throw new TypeError(VY);return setTimeout(function(){e.apply(void 0,r)},t)}var UY=j.baseRest(function(e,t,r){return GY(e,y.toNumber(t)||0,r)}),Hu=(e=>(e[e.YES=0]="YES",e[e.NO=1]="NO",e[e.LOADING=2]="LOADING",e))(Hu||{});const tf=10,YY=`
272
+ <svg
273
+ xmlns="http://www.w3.org/2000/svg"
274
+ width="24"
275
+ height="24"
276
+ viewBox="0 0 24 24"
277
+ fill="green"
278
+ class="csdk-animate-spin"
279
+ >
280
+ <path
281
+ fillRule="evenodd"
282
+ clipRule="evenodd"
283
+ 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"
284
+ fill="transparent"
285
+ fillOpacity="0.3"
286
+ />
287
+ <path
288
+ fillRule="evenodd"
289
+ clipRule="evenodd"
290
+ 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"
291
+ fill="#22C3C3"
292
+ />
293
+ </svg>
294
+ `,zn=e=>`<span class="csdk-scattermap-tooltip-label">${e}</span>`,qY=e=>{const t=`
295
+ <div>
296
+ <div>${zn("...")}</div>
297
+ <div>${zn(`Showing first ${tf} results`)}</div>
298
+ </div>
299
+ `;return`
300
+ <div>
301
+ ${e.slice(0,tf).map(r=>`<div>${zn(r)}</div>`).join("")}
302
+ ${e.length>tf?t:""}
303
+ </div>
304
+ `},rf=e=>`
305
+ <span class="csdk-scattermap-tooltip-category">
306
+ ${zn(e)}
307
+ </span>
308
+ `,XY=()=>zn(YY),bu=(e,t,r=1)=>{const n=y.formatTooltipValue(t.size,e.value,`${e.value}`),i=y.formatTooltipValue(t.colorBy,e.colorValue,`${e.colorValue}`),a=t.details&&y.formatTooltipValue(t.details,e.details,`${e.details}`);return`
309
+ <div class="csdk-scattermap-tooltip-container">
310
+ <div class="csdk-scattermap-tooltip-content">
311
+ <div>${zn(e.name)}</div>
312
+ <div class="csdk-scattermap-tooltip-row">
313
+ ${t.size?rf(y.getDataOptionTitle(t.size)):""}
314
+ ${t.size?zn(n):""}
315
+ </div>
316
+ <div class="csdk-scattermap-tooltip-row">
317
+ ${t.colorBy?rf(y.getDataOptionTitle(t.colorBy)):""}
318
+ ${t.colorBy?zn(i||y.NOT_AVAILABLE_TEXT):""}
319
+ </div>
320
+ <div class="csdk-scattermap-tooltip-row">
321
+ ${(r===2||r===0)&&t.details?rf(y.getDataOptionTitle(t.details)):""}
322
+ ${r===2?XY():""}
323
+ ${r===0&&t.details&&y.isMeasureColumn(t.details)?zn(a||y.NOT_AVAILABLE_TEXT):""}
324
+ </div>
325
+ <div>
326
+ ${r===0&&t.details&&!y.isMeasureColumn(t.details)?qY(e.details):""}
327
+ </div>
328
+ </div>
329
+ </div>
330
+ `},ZY=600,KY=11,QY=({dataOptions:e,dataSource:t,filters:r=[]})=>{const{app:n}=Et(),i=k.useCallback(o=>er(exports,null,function*(){if(!n||!e.details||y.isMeasureColumn(e.details))return[];const l=e.locations.map((h,f)=>{const p=y.translateColumnToAttribute(h),g=IY(o)[f];return j.members(p,[g])}),u={dataSource:t,dimensions:[y.translateColumnToAttribute(e.details)],filters:j.mergeFilters(r,l),count:KY};return(yield j.executeQuery(u,n)).rows.map(([h])=>h.text)}),[n,e,t,r]);return k.useCallback(o=>{if(!e.details||e.details&&!y.isMeasureColumn(e.details)&&!t)return{content:bu(o,e)};if(y.isMeasureColumn(e.details))return{content:bu(o,e,Hu.YES)};const l=new Promise(c=>UY(c,ZY)),u=Promise.all([i(o.name),l]).then(([c])=>bu(I(M({},o),{details:c}),e,Hu.YES));return{content:bu(o,e,Hu.LOADING),postponedContent:u}},[e,t,i])},JY="#00cee6",eq=y.createDataColoringFunction({getValueFromDataStructure:({colorValue:e})=>parseFloat(`${e}`),applyColorToDataStructure:(e,t)=>I(M({},e),{color:t})});function tq(e,t){return t?eq(e.map(({colorValue:r})=>({colorValue:r})),t).map(({color:r})=>r):e.map(()=>JY)}function rq(e,t){const r=`
331
+ © <a href='https://www.mapbox.com/about/maps/'>Mapbox</a>
332
+ © <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>
333
+ <strong>
334
+ <a href='https://www.mapbox.com/map-feedback/' target='_blank' aria-label='Improve this map (opens in a new tab)'>
335
+ Improve this map
336
+ </a>
337
+ </strong>`,n="© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>",i=Hn.control.attribution();return t.indexOf("mapbox")>-1?i.addAttribution(r).addTo(e):t.indexOf("openstreetmap")>-1&&i.addAttribution(n).addTo(e),i}function OC(e){return{isLight:["hollow","filled-light"].includes(e),isFilled:["filled","filled-light"].includes(e)}}function kC(e){const{color:t,size:r,fill:n,blur:i}=e,{isFilled:a}=OC(n),u=i?{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:u,opacity:u,fillColor:a?t:"transparent",color:a?"transparent":t,stroke:!a,weight:a?0:2,customStyle:e}}function nq({coordinates:e,style:t}){const r=new Hn.CircleMarker({lat:e.lat,lng:e.lng},kC(t));return r.on("mouseover",iq),r.on("mouseout",aq),r}function iq(e){const t=e.target,r=t.options.customStyle,{isFilled:n,isLight:i}=OC(r.fill);return t.setStyle(n?{stroke:!0,weight:2,opacity:i?.5:.7,fillOpacity:i?.5:.7}:{weight:3,opacity:i?.6:1}),t}function aq(e){const t=e.target,r=t.options.customStyle;t.setStyle(kC(r))}function oq(e){e.forEach(t=>t.remove())}function sq(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 lq(e,t=4,r=24){let n=0;const{min:i,max:a}=sq(e.map(({value:l})=>l)),o=r-t;return n=a-i,e.map(l=>n===0?t:(l.value-i)/n*o+t)}const uq=({chartData:e,dataOptions:t,dataSource:r,filters:n=[],designOptions:i,onDataPointClick:a})=>{const{locations:o}=e,l=jY(),{themeSettings:u}=ot(),c=WY(o,t.locationLevel),{filters:h}=j.getFilterListAndRelationsJaql(n),f=QY({dataOptions:t,dataSource:r,filters:h}),p=k.useRef(null),g=k.useRef(null),b=k.useMemo(()=>lq(c,t.size?i.markers.size.minSize:i.markers.size.defaultSize,t.size?i.markers.size.maxSize:i.markers.size.defaultSize),[c,t,i]),v=k.useMemo(()=>{var S;return tq(c,(S=t.colorBy)==null?void 0:S.color)},[c,t]),w=k.useRef([]),C=k.useRef(Hn.layerGroup([])),T=k.useRef(null),E=k.useRef(null);return k.useEffect(()=>{p.current&&!g.current&&(g.current=Hn.map(p.current,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,worldCopyJump:!0}),C.current.addTo(g.current),g.current.fitWorld())},[]),k.useEffect(()=>{w.current&&(oq(w.current),w.current=[]),c&&(c.forEach((S,P)=>{if(!S.coordinates)return;const R=nq({coordinates:S.coordinates,style:{color:v[P],size:b[P],fill:i.markers.fill,blur:!!S.blur}});w.current.push(R),R.addTo(C.current),a&&R.on("click",N=>{a(FY(S,t),N.originalEvent)}),R.bindTooltip(()=>{const{content:N,postponedContent:W}=f(S);return W==null||W.then(G=>R.setTooltipContent(G)),N})}),eH(g.current,w.current,xx(u)))},[c,v,b,i,u,t,f,a]),k.useEffect(()=>{var S;l&&(T.current&&T.current.remove(),T.current=Hn.tileLayer(l.maps_api_provider,{zoomOffset:-1,tileSize:512}),g.current&&(T.current.addTo(g.current),(S=E.current)==null||S.remove(),E.current=rq(g.current,l.maps_api_provider)))},[l]),y.jsx("div",{className:"csdk-map-container",ref:p,style:{width:"100%",height:"100%"}})},DC=e=>e.type==="scattermap"&&"locations"in e,cq=e=>"locations"in e,dq=e=>"markers"in e,hq=e=>!!e.chartData&&DC(e.chartData)&&cq(e.dataOptions)&&dq(e.designOptions),gs=({isVisible:e,children:t})=>{const{themeSettings:r}=ot();return y.jsxs("div",{id:"overlay",className:"csdk-relative csdk-h-full",children:[e&&y.jsx("div",{className:"csdk-absolute csdk-h-full csdk-w-full csdk-z-[401] csdk-opacity-80","aria-label":"csdk-loading-overlay",children:y.jsx("div",{className:"csdk-h-full csdk-bg-transparent",children:y.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:y.jsx("div",{style:{backgroundColor:r.general.backgroundColor},className:"csdk-p-1.5 csdk-bg-background-priority csdk-rounded-full",children:y.jsx(O0,{color:r==null?void 0:r.chart.textColor})})})})}),t]})},fq=(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}),md=({children:e,defaultSize:t,size:r,rerenderOnResize:n=!1,useContentSize:i,onSizeChange:a,debounceMs:o=300})=>{const l=k.useRef(null),[u,c]=k.useState(),h=k.useRef(null),f=k.useCallback(()=>{var N,W;const R={width:(N=l.current)==null?void 0:N.offsetWidth,height:(W=l.current)==null?void 0:W.offsetHeight};c(G=>{const K=(G==null?void 0:G.width)===0&&R.width===t.width,Z=(G==null?void 0:G.height)===0&&R.height===t.height,O={width:K?G.width:R.width,height:Z?G.height:R.height};return j.isEqual(G,O)?G:O})},[t]),p=k.useCallback(()=>{h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{f()},o)},[f,o]);k.useLayoutEffect(()=>{f()},[f]),k.useEffect(()=>{const R=l.current;if(!R)return;const N=new ResizeObserver(()=>{p()});return N.observe(R),()=>{N.disconnect(),h.current&&clearTimeout(h.current)}},[p]);const g=k.useMemo(()=>fq(u,r,t),[u,t,r]),b=!!u;k.useEffect(()=>{b&&a&&a(g)},[g,b,a]);const v={width:r!=null&&r.width&&!(i!=null&&i.width)?`${r.width}px`:"100%",height:r!=null&&r.height&&!(i!=null&&i.height)?`${r.height}px`:"100%"},w=(u==null?void 0:u.width)||(u==null?void 0:u.width)===void 0,C=(u==null?void 0:u.height)||(u==null?void 0:u.width)===void 0,T={width:w||i!=null&&i.width?"100%":`${g.width}px`,height:C||i!=null&&i.height?"100%":`${g.height}px`,position:"relative"},E=i!=null&&i.width||i!=null&&i.height?{position:"static",width:"100%",height:"100%"}:{position:"absolute",top:0,right:0,bottom:0,left:0},S=n?`${g==null?void 0:g.width}${g==null?void 0:g.height}`:"",P=k.useMemo(()=>typeof e=="function"?e(g):e,[e,g]);return y.jsx("div",{style:v,ref:l,children:y.jsx("div",{style:T,children:y.jsx("div",{style:E,children:P})},S)})},NC=32,LC={width:400,height:500},pq={width:400,height:400},mq={width:400,height:500},gq={width:200,height:200},gd=e=>y.isTable(e)?mq:y.isIndicator(e)?gq:pq,IC=(e,{hasHeader:t}={})=>{const r=e==="pivot"?LC:gd(e);return t?{width:r.width,height:r.height+NC}:r},H1={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"}]},vq={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}]},yq={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"]},bq={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 _q(e,t){const r=j.cloneDeep(bq);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}class Ml{degToRad(t){return t*Math.PI/180}getFitStringMeasure(t,r,n,i){t.font=i;let a=this.getStringWidth(t,r);const o="…",l=this.getStringWidth(t,o);if(a<=n)return{string:r,width:a};if(l>=n)return{string:o,width:l};do r=r.slice(0,r.length-1),a=this.getStringWidth(t,r);while(a+l>n);return{string:r+o,width:a+l}}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,i){const a=window.devicePixelRatio||1;t.width=n*a,t.height=i*a,t.style.width=n+"px",t.style.height=i+"px",r.scale(a,a)}}const Ct=new Ml,Aa=function(e,t){return Ct.floor(e*t.value,t.decimals)};function wq(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function xq(e,t,r){const{maxWidth:n,maxHeight:i,showTitle:a,showSecondary:o}=r;for(let l=0;l<t.length;l++){const u=t[l],c=u.value,h=Aa(c,e.valueSectionHeight),f=Aa(c,e.indicatorMargin),p=Math.ceil(f*1.5);let g=c+h+p;if(a){const b=Aa(c,e.titleSectionHeight);g+=b}if(o){const b=Aa(c,e.secSectionHeight);g+=b}if(g<=i){const b=Aa(c,e.gaugeWidth),v=Aa(c,e.bracketWidth),w=f*2;if(b+v*2+w<=n)return I(M({},u),{maxWidth:n-w,maxHeight:i-p})}}return null}class Cq{getBaseMeasure(t,r,n){const i=r,a="gaugeHeights"in i?i.gaugeHeights:void 0;if(!a)return null;const o=i.relativeSizes,l=i.measureKeys.concat(),u=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),h=wq(l,o);return xq(h,a,{maxWidth:u,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary})}render(t,r,n,i){const a=t.getContext("2d");let o=0,l;n.gaugeHeight=i.value,n.size=i.size,n.maxWidth=i.maxWidth,n.maxHeight=i.maxHeight,n.offsetY=0,l=n.gaugeHeight+n.valueSectionHeight,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(a,r,n),l+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(a,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(a,r,n),l+=n.secSectionHeight),o=this.getCanvasWidth(r,n),n.width=o,n.height=l,Ct.setCanvasSizes(t,a,o,l),this.draw(a,r,n)}getFitTitleMeasure(t,r,n){const i=n.bracketWidth*2+n.titleHorizontalMargin*2,a=n.maxWidth-i,o=Ct.getFitStringMeasure(t,r.title.text,a,n.titleFont);return o.width+=i,o.key="title",o}getFitValueMeasure(t,r,n){const i=n.bracketThickness*2,a=n.maxWidth-i,o=Ct.getFitStringMeasure(t,r.value.text,a,n.valueFont);return o.width+=i,o.key="value",o}getFitSecondaryMeasure(t,r,n){const i=n.bracketWidth*2+n.secDividerWidth,a=n.maxWidth-i,o=a-n.secTitleMinWidth,l=Ct.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-l.width,c=Ct.getFitStringMeasure(t,r.secondaryTitle.text,u,n.secondaryTitleFont);return{width:c.width+l.width+i,titleString:c.string,valueString:l.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.gaugeWidth+r.bracketWidth*2;const i=r.fitTitleMeasure,a=r.fitValueMeasure;let l=i&&i.width>a.width?i:a;const u=r.fitSecondaryMeasure,c=u&&u.width>l.width;let h;return l=c?u:l,c?h=l.titleString!==t.secondaryTitle.text||l.valueString!==t.secondary.text:h=l.string!==t[l.key].text,h?n=r.maxWidth:l.width>n&&(n=l.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 i=r.showTitle?(n.titleSectionHeight-n.titleBottomMargin)/2:0;t.strokeStyle=n.bracketColor,t.beginPath(),t.moveTo(n.bracketWidth+.5,i+.5),t.lineTo(.5,i+.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),i+.5),t.lineTo(n.width-.5,i+.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,i=+t.max.data,a=+(t.value.data||0);return a<n?r.startAngle-r.overDegrees:a>i?r.endAngle+r.overDegrees:this.getAngle(r,a,n,i)}getAngle(t,r,n,i){const a=(t.endAngle-t.startAngle)/(i-n);return(r-n)*a+t.startAngle}drawConditionalDial(t,r,n){const i=r.conditions,a=+r.min.data,o=+r.max.data,l=Ct.degToRad(n.startAngle+180),u=Ct.degToRad(n.endAngle+180);let c;const h=f=>this.getAngle(n,f,a,o);for(this.drawArc(t,n,l,u,n.defaultDialColor),c=i.length-1;c>=0;c--){const f=i[c];let p=+f.data,g,b=NaN,v=NaN,w=NaN,C=NaN;const T=.25;switch(f.operator){case"<":if(p<=a)break;p=p>o?o:p,g=h(p),b=l,v=Ct.degToRad(g+180);break;case">":if(p>=o)break;p=p<a?a:p,g=h(p),b=Ct.degToRad(g+180),v=u;break;case"≤":if(p<a)break;p=p>o?o:p,g=h(p),b=l,v=Ct.degToRad(g+(g+T<=n.endAngle?T:0)+180);break;case"≥":if(p>o)break;p=p<a?a:p,g=h(p),b=Ct.degToRad(g-(g-T>=n.startAngle?T:0)+180),v=u;break;case"=":if(p<a||p>o)break;g=h(p),b=Ct.degToRad(g-(g-T>=n.startAngle?T:0)+180),v=Ct.degToRad(g+(g+T<=n.endAngle?T:0)+180);break;case"≠":if(p<a||p>o)b=l,v=u;else if(p===a||p===o){const E=p===a;b=Ct.degToRad(n.startAngle+(E?T:0)+180),v=Ct.degToRad(n.endAngle-(E?0:T)+180)}else g=h(p),b=l,v=Ct.degToRad(g-(g-T>=n.startAngle?T:0)+180),w=Ct.degToRad(g+(g+T<=n.endAngle?T:0)+180),C=u}!isNaN(b)&&!isNaN(v)&&this.drawArc(t,n,b,v,f.color),!isNaN(w)&&!isNaN(C)&&this.drawArc(t,n,w,C,f.color)}}drawSimpleDial(t,r,n){const i=Ct.degToRad(n.startAngle+180),a=Ct.degToRad(n.needleAngle+180),o=Ct.degToRad(n.endAngle+180);n.needleAngle>n.startAngle&&n.needleAngle<n.endAngle?(this.drawArc(t,n,i,a,n.valueColor),t.globalAlpha=n.gaugeOpacity,this.drawArc(t,n,a,o,n.valueColor)):(n.needleAngle<=n.startAngle&&(t.globalAlpha=n.gaugeOpacity),this.drawArc(t,n,i,o,n.valueColor)),t.globalAlpha=1}drawArc(t,r,n,i,a){t.fillStyle=a,t.beginPath(),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.outerArcRadius,n,i),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.innerArcRadius,i,n,!0),t.fill()}drawTicks(t,r,n){const i=n.startAngle,a=n.endAngle,o=n.tickDegreesIncrement,l=n.needleAngle;let u;for(u=i;u<=a;u+=o){const c=Ct.degToRad(u),h=n.gaugeCenterX-n.lengthToTick*Math.cos(c),f=n.gaugeCenterY-n.lengthToTick*Math.sin(c),p=l<i,g=l>=u-o/2&&l<u+o/2,b=u===a&&l>=u;t.fillStyle=!p&&g||b?r.color:n.tickColor,t.beginPath(),t.arc(h,f,n.tickRadius,0,2*Math.PI),t.fill()}}drawNeedle(t,r){const n=Ct.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 La=new Ml,_u=function(e,t){return La.floor(e*t.value,t.decimals)};function Tq(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function Mq(e,t,r){const{showTitle:n,showSecondary:i,maxHeight:a,maxWidth:o,bracketThickness:l}=r;for(let u=0;u<t.length;u++){const c=t[u],h=c.value,f=_u(h,e.indicatorMargin);let p=h+f;if(n){const g=_u(h,e.titleSectionHeight);p+=g}if(i){const g=_u(h,e.secSectionHeight);p+=g}if(p<=a){const g=_u(h,e.numericMinWidth),b=f*2;if(g+l*2+b<=o)return I(M({},c),{maxWidth:o-b,maxHeight:a-f})}}return null}class Sq{getBaseMeasure(t,r,n){const i=r,a="sizes"in i?i.sizes:[],o=i.relativeSizes,l=i.measureKeys.concat(),u=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),h=Tq(l,o);return Mq(h,a,{maxWidth:u,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary,bracketThickness:i.bracketThickness})}render(t,r,n,i){const a=t.getContext("2d");let o;n.height=i.value,n.maxWidth=i.maxWidth,n.maxHeight=i.maxHeight,n.offsetY=0,o=n.height,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(a,r,n),o+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(a,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(a,r,n),o+=n.secSectionHeight);const l=this.getCanvasWidth(r,n);n.width=l,n.height=o,La.setCanvasSizes(t,a,l,o),this.draw(a,r,n)}getFitTitleMeasure(t,r,n){const i=n.bracketWidth*2+n.titleHorizontalMargin*2,a=n.maxWidth-i,o=La.getFitStringMeasure(t,r.title.text,a,n.titleFont);return o.width+=i,o.key="title",o}getFitValueMeasure(t,r,n){const i=n.bracketThickness*2,a=n.maxWidth-i,o=La.getFitStringMeasure(t,r.value.text,a,n.valueFont);return o.width+=i,o.key="value",o}getFitSecondaryMeasure(t,r,n){const i=n.bracketWidth*2+n.secDividerWidth,a=n.maxWidth-i,o=a-n.secTitleMinWidth,l=La.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-l.width,c=La.getFitStringMeasure(t,r.secondaryTitle.text,u,n.secondaryTitleFont);return{width:c.width+l.width+i,titleString:c.string,valueString:l.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.numericMinWidth+r.bracketThickness*2;const i=r.fitTitleMeasure,a=r.fitValueMeasure;let l=i&&i.width>a.width?i:a;const u=r.fitSecondaryMeasure,c=u&&u.width>l.width;let h;return l=c?u:l,c?h=l.titleString!==t.secondaryTitle.text||l.valueString!==t.secondary.text:h=l.string!==t[l.key].text,h?n=r.maxWidth:l.width>n&&(n=l.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 i=n.offsetY;t.fillStyle=n.valueColor,t.fillRect(1,i,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,i+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 Ia=new Ml,Oi=function(e,t){return Ia.floor(e*t.value,t.decimals)};function Eq(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function Pq(e,t,r){const{showTitle:n,showSecondary:i,skin:a,maxHeight:o,maxWidth:l,borderWidth:u}=r;for(let c=0;c<t.length;c++){const h=t[c],f=h.value,p=Oi(f,e.valueSectionMarginBottom),b=Oi(f,e.indicatorVerticalMargin)*2;let v=f+p+b;if(n&&a==="vertical"){const w=Oi(f,e.titleSectionHeight);v+=w}if(i){const w=Oi(f,e.secSectionHeight),C=Oi(f,e.secSectionMarginTop);v+=w+C+(u||0)}if(v<=o){const w=Oi(f,e.numericMinWidth),T=Oi(f,e.indicatorHorizontalMargin)*2;if(w+T<=l)return I(M({},h),{maxWidth:l-T,maxHeight:o-b})}}return null}class Aq{getBaseMeasure(t,r,n){const i=r,a="sizes"in i?i.sizes:[],o=i.relativeSizes,l=i.measureKeys.concat(),u=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),h=Eq(l,o);return Pq(h,a,{maxWidth:u,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary,skin:t.skin,borderWidth:"borderWidth"in i?i.borderWidth:0})}render(t,r,n,i){const a=t.getContext("2d");let o;n.height=i.value,n.maxWidth=i.maxWidth,n.maxHeight=i.maxHeight,o=n.height,n.fitValueMeasure=this.getFitValueMeasure(a,r,n),r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(a,r,n),o+=r.skin==="vertical"?n.titleSectionHeight:0),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(a,r,n),o+=n.valueSectionMarginBottom+n.secSectionHeight+n.secSectionMarginTop+n.borderWidth);const l=this.getCanvasWidth(r,n);n.width=l,n.height=o,Ia.setCanvasSizes(t,a,l,o),this.draw(a,r,n)}getFitTitleMeasure(t,r,n){const i=r.skin==="horizontal",a=n.maxWidth-(i?n.fitValueMeasure.width+n.valueSectionMarginRight:0);if(i&&a+n.titleSectionMinWidth<=0)return;const o=Ia.getFitStringMeasure(t,r.title.text,a,n.titleFont);return o.width+=i?n.valueSectionMarginRight:0,o.key="title",o}getFitValueMeasure(t,r,n){const i=Ia.getFitStringMeasure(t,r.value.text,n.maxWidth,n.valueFont);return i.key="value",i}getFitSecondaryMeasure(t,r,n){const i=n.secDividerWidth,a=n.maxWidth-i,o=a-n.secTitleMinWidth,l=Ia.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-l.width,c=Ia.getFitStringMeasure(t,r.secondaryTitle.text,u,n.secondaryTitleFont);return{width:c.width+l.width+i,titleString:c.string,valueString:l.string,key:"secondary"}}getCanvasWidth(t,r){let n;const i=r.fitTitleMeasure,a=r.fitValueMeasure,o=r.fitSecondaryMeasure;if(r.fitMeasures.some(u=>{const c=r[u.key],h=t[u.dataKey];return!!(c&&h&&c[u.prop]!==h.text)}))return r.maxWidth;if(t.skin==="vertical"){let c=i&&i.width>a.width?i:a;c=o&&o.width>c.width?o:c,n=c.width}else n=a.width,i&&(n+=i.width),o&&o.width>n&&(n=o.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 i=r.skin==="vertical";t.fillStyle=n.valueColor||r.color,t.font=n.valueFont,t.textAlign=i?"center":"left",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,i?n.width/2:0,(r.showTitle&&i?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 fn=new Ml;class Rq{render(t,r,n,i){const a=t.getContext("2d"),o=Math.floor(i.clientWidth)-n.horizontalMargin*2,l=n.sectionMinWidth;let u=0,c=0,h=0,f=0,p=0,g=0,b=0,v=0,w;if(a.font=n.valueFont,w=fn.getStringWidth(a,r.value.text),n.offsetX=0,r.title.text+=":",r.secondaryTitle&&(r.secondaryTitle.text+=":"),r.showTitle&&(a.font=n.titleFont,g=fn.getStringWidth(a,r.value.text),p=fn.getStringWidth(a,r.title.text),c=p<l?p:l,w+=c+n.textPadding),r.showSecondary&&(a.font=n.secondaryValueFont,v=fn.getStringWidth(a,r.secondary.text),f=v<l?v:l,w+=f,a.font=n.secondaryTitleFont||"",b=fn.getStringWidth(a,r.secondaryTitle.text),h=b<l?b:l,w+=h+n.horizontalPadding*2+n.dividerWidth+n.textPadding),r.type==="gauge"){const T=n.horizontalPadding*2+n.dividerWidth;if(n.forceTickerView){const S=g+p+b+v+n.textPadding*4+T,P=o-T-S;n.barWidth=Math.max(P,n.barWidth)}const E=n.barWidth+T;w+=E,n.showTickerBar=w<=o||!0,u+=n.showTickerBar?E:0}u+=r.showTitle?n.textPadding:0,u+=r.showSecondary?n.horizontalPadding*2+n.dividerWidth+n.textPadding:0;const C=o-u-c-h-f;if(n.fitValueMeasure=fn.getFitStringMeasure(a,r.value.text,C,n.valueFont),u+=n.fitValueMeasure.width,r.showSecondary){const T=o-u-c-h;let E;n.fitSecValueMeasure=fn.getFitStringMeasure(a,r.secondary.text,T,n.secondaryValueFont),u+=n.fitSecValueMeasure.width;const S=o-u,P=S/2;r.showTitle?p+b>S?p>P&&b>P?E=P:b>P&&p<=P?E=S-p:E=b:E=b:E=S,n.fitSecTitleMeasure=fn.getFitStringMeasure(a,r.secondaryTitle.text,E,n.secondaryTitleFont),u+=n.fitSecTitleMeasure.width}if(r.showTitle){const T=o-u;n.fitTitleMeasure=fn.getFitStringMeasure(a,r.title.text,T,n.titleFont),u+=n.fitTitleMeasure.width}n.width=u,fn.setCanvasSizes(t,a,u,n.height),this.draw(a,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 c;const i=+r.min.data,a=+r.max.data,o=+(((c=r.value)==null?void 0:c.data)||0),l=Math.round((n.height-n.barHeight)/2);let u;if(t.fillStyle=n.valueColor,o<=i)t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX,l,n.barWidth,n.barHeight),u=0;else if(o>=a)t.fillRect(n.offsetX,l,n.barWidth,n.barHeight),u=n.barWidth-n.tickerBarWidth;else{const h=(o-Math.abs(i))/(a-i),f=n.barWidth*h;t.fillRect(n.offsetX,l,f,n.barHeight),t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX+f,l,n.barWidth-f,n.barHeight),f>n.barWidth-n.tickerBarWidth?u=n.barWidth-n.tickerBarWidth:f<n.tickerBarWidth?u=0:u=f-1}t.globalAlpha=1,t.fillStyle=n.barHandleColor,t.fillRect(n.offsetX+u,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 Oq=new Ml,kq=new Aq,Dq=new Sq,Nq=new Cq,Lq=new Rq;class Iq{getService(t){switch(t){case"numericSimple":return kq;case"numericBar":return Dq;case"gauge":return Nq;case"ticker":return Lq}}render(t,r,n,i){let a=this.getService(r.type);const o="getBaseMeasure"in a?a.getBaseMeasure(r,n,i):void 0;if(!o||n.forceTickerView){a=this.getService("ticker");const l=_q(t,n);this.setTextOptions(l),a.render(t,r,l,i);return}this.calculateRelativeSizes(r,n,o.value),this.setTextOptions(n,o.size),a.render(t,r,n,o)}calculateRelativeSizes(t,r,n){const{relativeSizes:i}=r;i.forEach(function(a){let o;if("dataKey"in a&&"values"in a&&a.dataKey in t)o=a.values[t[a.dataKey]];else if("value"in a)o=a.value;else throw new j.TranslatableError("errors.indicatorInvalidRelativeSize");const l=o*n;r[a.key]=Oq.floor(l,a.decimals)})}setTextOptions(t,r){t.textKeys.forEach(function(n){const i=t[n],a=i.fontStyle?`${i.fontStyle} `:"",o=i.fontVariant?`${i.fontVariant} `:"",l=i.fontWeight?`${i.fontWeight} `:"",u=`${Number.parseFloat(i.fontSizes&&i.fontSizes[r]||i.fontSize||t.fontSize)}px `,c=i.fontFamily||t.fontFamily,{color:h}=i;t[`${n}Font`]=a+o+l+u+c,t[`${n}Color`]=h})}}function $C(e){var r;const t=(r=e.value)==null?void 0:r[0];if(t&&"color"in t)return t.color}function $q(e,t,r){if(!Fq(e))return r;const i=y.getColoringServiceByColorOptions(e).getColor(t);return i?I(M({},r),{value:I(M({},r.value),{color:i})}):r}function Fq(e){return typeof e=="string"||e.type==="uniform"||e.type==="conditional"}const zq=(e,t)=>{const r=$C(t);return r&&e.value?y.getColoringServiceByColorOptions(r).getColor(y.isNumber(e.value)?e.value:0):null},Bq=(e,t,r)=>{var f,p,g,b,v,w,C,T,E,S,P,R;const n=y.isNumber(e.min)?e.min:0,i=y.isNumber(e.max)?e.max:100,a=wu(r,"value"),o=wu(r,"secondary"),l=wu(r,"min"),u=wu(r,"max"),c=zq(e,r),h=t.indicatorType==="gauge"?1:"vertical";return I(M(M({},Wq),c?{color:c}:null),{type:Hq(t.indicatorType,"numericSubtype"in t?t.numericSubtype:void 0)||"numericSimple",skin:t.skin||h,title:{text:(g=(p=(f=t.indicatorComponents)==null?void 0:f.title)==null?void 0:p.text)!=null?g:""},min:{data:n,text:y.applyFormatPlainText(l,n)},max:{data:i,text:y.applyFormatPlainText(u,i)},value:{data:e.value,text:W1(e.value,a)},secondary:{data:e.secondary,text:W1(e.secondary,o)},secondaryTitle:{text:(w=(v=(b=t.indicatorComponents)==null?void 0:b.secondaryTitle)==null?void 0:v.text)!=null?w:""},showSecondary:e.secondary!==void 0,showTitle:!!((T=(C=t.indicatorComponents)==null?void 0:C.title)!=null&&T.shouldBeShown),showLabels:!!((S=(E=t.indicatorComponents)==null?void 0:E.labels)!=null&&S.shouldBeShown),showTicks:!!((R=(P=t.indicatorComponents)==null?void 0:P.ticks)!=null&&R.shouldBeShown)})};function Hq(e,t){return e==="numeric"?t:e}function wu(e,t){var n;const r=(n=e[t])==null?void 0:n[0];return y.getCompleteNumberFormatConfig(r&&"numberFormatConfig"in r?r.numberFormatConfig:{})}const Wq={color:"#00cee6",showSecondary:!1};function W1(e,t){return e===void 0?"":isNaN(e)?`#${y.NOT_AVAILABLE_TEXT}`:y.applyFormatPlainText(t,e)}const jq={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"};function Bp(e,t,r){const n=j.cloneDeep(r);for(const i in t){const a=t[i],o=Vq(e,a);o&&FC(n,i,o)}return n}function FC(e,t,r){const n=t.split(".");if(n.length===1)if(n[0]in e)e[n[0]]=r;else return;else{const[i,...a]=n;if(!(i in e))return;const o=e[i];if(!zC(o))return;FC(o,a.join("."),r)}}function Vq(e,t){const r=t.split(".");let n=e;for(const i of r){if(!zC(n)||!(i in n))return;n=n[i]}return n}function zC(e){return typeof e=="object"&&e!==null}function Gq(e,t,r){return Bp(e,t,r)}const Uq=(e,t)=>{const{chartData:r,dataOptions:n,themeSettings:i}=t,{type:a}=e;let o;switch(a){case"gauge":o=yq;break;case"numeric":e.numericSubtype==="numericBar"?o=vq:o=H1;break;default:o=H1}i&&(o=Gq(i,jq,o));const l=$C(n);return l&&r.value&&y.isNumber(r.value)&&(o=$q(l,r.value,o)),M(I(M({},o),{forceTickerView:e.forceTickerView}),e.type==="gauge"&&e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null)};function Yq(e,t,r){return e==null?e:Rw(e,t,r)}const BC={"value.data":"value.data","value.text":"value.text","secondary.data":"secondary.data","secondary.text":"secondary.text","title.text":"title.text","secondaryTitle.text":"secondaryTitle.text"},HC={"value.color":"value.color","secondaryValue.color":"secondary.color","secondaryValue.fontWeight":"secondary.fontWeight","title.color":"title.color","secondaryTitle.color":"secondaryTitle.color"};function qq(e,t){const r={};return y.flow(j1(e,BC),j1(t,HC))(r)}function j1(e,t){return r=>{const n=M({},r);for(const[i,a]of Object.entries(t))Yq(n,a,j.get(e,i));return n}}const Xq=(e,t,r)=>{const n=Bp(e,BC,t),i=Bp(e,HC,r);return{legacyDataOptions:n,legacyChartOptions:i}},Zq=e=>e,Kq=(e,t)=>{var i;const r={},n=(a,o)=>{if(a===void 0)return;const l=y.getCompleteNumberFormatConfig(o);return y.applyFormatPlainText(l,a)};return t.value&&t.value.length>0&&(r.value=I(M({},Ve(t.value[0])),{value:(i=e.value)!=null?i:0,displayValue:n(e.value,t.value[0])})),t.secondary&&t.secondary.length>0&&e.secondary!==void 0&&(r.secondary=I(M({},Ve(t.secondary[0])),{value:e.secondary,displayValue:n(e.secondary,t.secondary[0])})),t.min&&t.min.length>0&&e.min!==void 0&&(r.min=I(M({},Ve(t.min[0])),{value:e.min,displayValue:n(e.min,t.min[0])})),t.max&&t.max.length>0&&e.max!==void 0&&(r.max=I(M({},Ve(t.max[0])),{value:e.max,displayValue:n(e.max,t.max[0])})),{entries:r}},Qq=({chartData:e,dataOptions:t,designOptions:r,onBeforeRender:n=Zq,onDataPointClick:i})=>{var c;const a=k.useRef(null),o=k.useRef(null),{themeSettings:l}=ot();k.useEffect(()=>{if(!o.current||!a.current)return;const h=new Iq,f=Bq(e,r,t),p=Uq({type:r.indicatorType,numericSubtype:"numericSubtype"in r?r.numericSubtype:void 0,forceTickerView:r.forceTickerView,tickerBarHeight:r.tickerBarHeight},{chartData:e,dataOptions:t,themeSettings:l}),g=qq(f,p),b=n(g),{legacyDataOptions:v,legacyChartOptions:w}=Xq(b,f,p);h.render(o.current,v,w,a.current)},[e,t,r,l,n]);const u=h=>{if(i){const f=Kq(e,t);i(f,h.nativeEvent)}};return y.jsx("div",{ref:a,style:{display:"flex",justifyContent:"center",width:"100%",height:"100%",alignItems:"center",backgroundColor:(c=l==null?void 0:l.chart)==null?void 0:c.backgroundColor,cursor:i?"pointer":"default"},"aria-label":"indicator-root",onClick:u,children:y.jsx("canvas",{ref:o})})},Jq=e=>e.type==="indicator",eX=e=>"min"in e,tX=e=>"indicatorComponents"in e,rX=e=>!!e.chartData&&Jq(e.chartData)&&eX(e.dataOptions)&&tX(e.designOptions),V1="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",nX="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",iX="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='477px'%20height='689px'%20viewBox='0%200%20477%20689'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20sketchtool%2040.1%20(33804)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3eD5222DCB-A5E7-4783-ABD3-E5AAF56D153F%3c/title%3e%3cdesc%3eCreated%20with%20sketchtool.%3c/desc%3e%3cdefs%3e%3crect%20id='path-1'%20x='0.760775862'%20y='88.8671642'%20width='90'%20height='138'%3e%3c/rect%3e%3cmask%20id='mask-2'%20maskContentUnits='userSpaceOnUse'%20maskUnits='objectBoundingBox'%20x='0'%20y='0'%20width='90'%20height='138'%20fill='white'%3e%3cuse%20xlink:href='%23path-1'%3e%3c/use%3e%3c/mask%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='box-and-whiskers-plot'%20transform='translate(-1362.000000,%20-6618.000000)'%20stroke='%23E5E5E5'%3e%3cg%20id='boxplot_small'%20transform='translate(1362.000000,%206618.000000)'%3e%3cg%20id='Group-40'%20transform='translate(193.000000,%20187.000000)'%3e%3cg%20id='Group-39'%20transform='translate(0.239224,%200.132836)'%3e%3cuse%20id='Rectangle-32'%20mask='url(%23mask-2)'%20stroke-width='2'%20xlink:href='%23path-1'%3e%3c/use%3e%3cpath%20d='M0.760775862,185.367164%20L90.7607759,185.367164'%20id='Path-63'%20fill='%23D8D8D8'%3e%3c/path%3e%3cpath%20d='M0.760775862,313.367164%20L90.7607759,313.367164'%20id='Path-63'%20fill='%23D8D8D8'%3e%3c/path%3e%3cpath%20d='M0.760775862,1.36716418%20L90.7607759,1.36716418'%20id='Path-63-Copy'%20fill='%23D8D8D8'%3e%3c/path%3e%3cpath%20d='M46.2607759,0.867164179%20L46.2607759,88.8671642'%20id='Path-64'%20fill='%23D8D8D8'%3e%3c/path%3e%3cpath%20d='M46.2607759,225.867164%20L46.2607759,313.867164'%20id='Path-64'%20fill='%23D8D8D8'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",aX="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%3cpath%20fill='%23E4E4E4'%20d='M419,192.5h-2h-88h-2h-88h-2h-92v80H55v246h276v-80h180v-246H419z%20M507,196.5v78h-88v-78H507z%20M327,434.5%20h-88v-78h88V434.5z%20M149,434.5v-78h88v78H149z%20M237,436.5v78h-88v-78H237z%20M147,434.5H59v-78h88V434.5z%20M149,354.5v-78h88v78H149z%20M239,354.5v-78h88v78H239z%20M329,276.5h88v78h-88V276.5z%20M419,276.5h88v78h-88V276.5z%20M417,196.5v78h-88v-78H417z%20M327,196.5v78%20h-88v-78H327z%20M149,196.5h88v78h-88v-2V196.5z%20M145,276.5h2v78H59v-78H145z%20M59,436.5h88v78H59V436.5z%20M327,438.5v76h-88v-78h88%20V438.5z%20M329,434.5v-78h88v78h-86H329z%20M419,434.5v-78h88v78H419z'/%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",oX="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",sX="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",lX="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",uX="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",cX="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",dX="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",hX="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",fX="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%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M148.3,490.8l-1-1.3c-25.5-31.2-39.6-70.6-39.6-111c0-40.4,14.1-79.8,39.6-111l1-1.3l26.9,26.9l-0.8,1%20c-38.6,49.6-38.6,118.9,0,168.6l0.8,1L148.3,490.8z%20M148.5,270.8c-24.4,30.4-37.9,68.6-37.9,107.8c0,39.1,13.4,77.4,37.9,107.8%20l22.7-22.7c-38.4-50.3-38.4-119.9,0-170.2L148.5,270.8z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M368.3,270.8l-1-0.8c-23.9-18.6-53.9-28.9-84.3-28.9c-30.4,0-60.3,10.2-84.3,28.9l-1,0.8l-26.9-26.9%20l1.3-1c31.2-25.5,70.6-39.6,111-39.6c40.4,0,79.8,14.1,111,39.6l1.3,1L368.3,270.8z%20M283,238.1c30.6,0,60.8,10.2,85.1,28.7%20l22.7-22.7c-30.4-24.4-68.6-37.9-107.8-37.9c-39.2,0-77.4,13.4-107.8,37.9l22.7,22.7C222.2,248.3,252.4,238.1,283,238.1z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M417.7,490.8l-26.9-26.9l0.8-1c38.6-49.6,38.6-118.9,0-168.6l-0.8-1l26.9-26.9l1,1.3%20c25.5,31.2,39.6,70.6,39.6,111c0,40.4-14.1,79.8-39.6,111L417.7,490.8z%20M394.8,463.7l22.7,22.7c24.4-30.4,37.9-68.6,37.9-107.8%20c0-39.1-13.4-77.3-37.9-107.8l-22.7,22.7C433.1,343.8,433.1,413.4,394.8,463.7z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M283,553.9L283,553.9c-40.4,0-79.8-14.1-111-39.6l-1.3-1l26.9-26.9l1,0.8c23.9,18.6,53.9,28.9,84.3,28.9%20c30.4,0,60.4-10.2,84.3-28.9l1-0.8l26.9,26.9l-1.3,1C362.8,539.9,323.4,553.9,283,553.9z%20M175.2,513.1%20c30.4,24.4,68.6,37.9,107.7,37.9h0.1c39.1,0,77.3-13.4,107.8-37.9l-22.7-22.7c-24.3,18.5-54.4,28.7-85.1,28.7%20c-30.6,0-60.8-10.2-85.1-28.7L175.2,513.1z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M283,458c-43.8,0-79.4-35.6-79.4-79.4c0-43.8,35.6-79.4,79.4-79.4c43.8,0,79.4,35.6,79.4,79.4%20C362.4,422.4,326.8,458,283,458z%20M283,302.2c-42.1,0-76.4,34.3-76.4,76.4c0,42.1,34.3,76.4,76.4,76.4c42.1,0,76.4-34.3,76.4-76.4%20C359.4,336.5,325.1,302.2,283,302.2z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M283,493c-63.1,0-114.4-51.3-114.4-114.4S219.9,264.2,283,264.2c63.1,0,114.4,51.3,114.4,114.4%20S346.1,493,283,493z%20M283,267.2c-61.4,0-111.4,50-111.4,111.4S221.6,490,283,490c61.4,0,111.4-50,111.4-111.4%20S344.4,267.2,283,267.2z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",pX="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",mX="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",G1="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='M276.8,521.3c-0.5,0-0.9-0.1-1.3-0.2l-0.3-0.1l-0.2-0.2c-0.5-0.6-1-1.3-0.8-1.9c-1-0.6-2.6-0.6-4-0.6%20c-1,0-1.8,0-2.5-0.2l-0.3-0.1l-0.2-0.2c-0.5-0.6-2.8-1.7-4.5-2.5c-1.9-0.9-3.8-1.7-4.8-2.5l-0.2-0.2l-0.1-0.3c-2-5-2.7-6.5-3-7%20c-0.1-0.3-0.2-0.4-0.2-0.6c-0.1-0.6,0-1.1,0.1-1.4c0.1-0.5,0.2-1-1.2-3.5c-0.4-0.6-2.4-2.7-3.6-3.8l-0.2-0.2l-1.1-3%20c-1.8-1.6-3.5-5.2-5.1-8.3c-0.7-1.4-1.3-2.6-1.8-3.5c-1.1-1.6-2-2.4-2.9-3.2c-1.1-1-2.2-2-3.8-4.3c-2.1-0.3-3.7,0-5.3,0.4%20c-2,0.4-3.9,0.8-6-0.3c-0.4,0.5-1.1,1.8-1.6,2.7c-1.6,2.9-3.4,6.3-5.8,5.3c-12.1-4.7-13.8-9.4-14.9-12.4c-0.1-0.3-0.2-0.6-0.3-0.8%20l-0.1-0.2l0-0.2c0.2-2.3,0.1-2.4-0.3-3.1c-0.4-0.7-1-1.7-1.9-4.2c-4.3-2.4-8.1-7.1-10.8-10.5c-1.1-1.3-2-2.5-2.7-3.2%20c-0.1,0-0.2-0.1-0.4-0.1l0,0.2l-0.9-0.1c-2.4-0.3-7.4-0.9-14.7-1.2l-1,4.1l-0.4,0.2c-2.2,1-6.3,1.8-8.9,0.7l0,0l-9.4-1.9%20c-5.6,0.2-10.8-2.5-14.6-4.5l-0.9-0.5c-4.7-2.3-8.4-4.5-11.4-6.3c-1.2-0.7-2.2-1.3-3.2-1.9c-5.5-3.1-9.2-5.2-15.9-8.5l-0.5-0.2%20l-0.1-0.5c-0.1-0.7-0.1-1.2-0.1-1.6c0-0.1,0-0.3,0-0.4l-5.3-0.6c-6-0.7-12.2-1.3-16.2-1.5l-0.1,0.1l-0.7-0.1l0.1-1.1l-0.5-0.7%20c-0.3,0.2-0.4,0.5-0.4,0.6c0.1-1-1.4-8.7-2.7-10.8c-1.4-2.1-3.1-3.5-5.6-4.5l-0.3-0.1l-0.2-0.2c-0.7-0.9-0.8-2.2-0.8-3.1%20c-0.3-0.1-0.6-0.2-1.1-0.3c-1.8-0.6-6.9-4.8-7.6-6.2c-0.8-0.8-2.2-1.9-3.2-1.9c-2.7,0-4.7-0.8-5.8-2.4c-1.7-2.4-0.9-5.9-0.1-8%20c-1.4-2.2-2.9-5.5-4.2-8.4c-1.2-2.7-2.5-5.4-3.2-6.3l-0.2-0.2l0-0.3c-0.2-1.6-0.5-4.7,2.1-6.5c0.1-0.9-0.3-1.2-1.2-1.8%20c-0.9-0.7-2.2-1.6-2.8-3.6c-0.3-0.9-0.1-3.3,0.1-5.1c0,0-0.1,0-0.1,0c-0.2-0.1-0.5-0.4-0.7-0.9l-0.1-0.3l0.1-0.3%20c0.3-0.8,0.4-1.2,0.4-1.4c-0.1-0.1-0.3-0.4-0.4-0.7l-0.1-0.5l0,0c0,0-0.1-0.1-0.1-0.1c-0.6-0.6-1.3-1.2-1.7-2.2l-0.3-0.5l0.4-0.5%20c0.4-0.6,0.3-1.1-0.1-2.5c-0.2-0.6-0.4-1.3-0.5-2c0,0,0,0,0,0c-1.3-0.9-4-2.8-3.1-9.6c0.4-2.6,0.5-4.7,0.6-6.6%20c0.1-0.8,0.1-1.6,0.2-2.5c-0.8-1-2.8-4.1-2.3-7.1c0.3-1.6,1.2-2.9,2.8-3.9c1.5-2.9,3.3-8.8,3.6-12.7c-0.7-1.2-0.5-2.7-0.2-4.7%20c0.1-0.7,0.2-1.5,0.3-2.4c0.4-4.3,2.4-8.3,5.1-10.4c3.3-8.1,7.8-19.4,11.2-28.6l-0.4-0.3l0.3-0.9c-1-0.6-0.9-2-0.9-2.5%20c0.1-1.4,1.1-2.6,1.8-3.4c0,0,0,0,0.1-0.1c-0.6-1.6-0.6-1.9-0.4-3.7c0.2-1,0.9-1.5,1.4-1.7c0-0.9-0.2-2.8-0.3-4.4%20c-0.3-3.2-0.7-7.2-0.5-10.1c0.1-2.1,0.9-3.4,2.2-3.8c3.8-1.2,10.8,7.2,12.9,9.7l0.5,0.6l-0.4,0.6c-1.2,1.7-0.2,6.3,0.8,8.6%20c0.3-1.3,0.9-3.2,2.7-3.7l0.2-3.6l0.1,0c0-0.4-0.1-1.3-0.2-2c-0.4-2.8-0.5-4.3,0-5.1c0-0.3-0.4-1.1-0.6-1.6%20c-0.6-1.1-1.2-2.4-0.8-3.7l0.3-1.1l1,0.4c2.4,1,29.9,7.4,44.2,10.6c2.8,0.3,7.6,1.6,8.4,1.8c0.4,0,1.5,0.2,4.9,0.8%20c7.5,1.3,23.2,4,42.1,6.6c14.2,2,31.3,3.6,47.7,5.1l54.2,1.4c2.1-0.3,4.4-0.4,14.5-0.4v-1c0-2.1,0.8-2.3,2.8-2.8l0.3-0.1%20c1.4-0.2,3.3,2.6,3.6,4c0.1,0.7,0.7,2.1,1.3,2.6c1.1,0.9,1.9,1,2.7,1.1c0.4,0.1,0.8,0.1,1.2,0.2c0.1,0,0.4,0.1,0.7,0.2%20c0.8,0.2,2.8,0.7,3.3,0.6c8.4-1,8.6-0.5,9.1,0c0.1,0.1,0.1,0.4,0.1,0.9v0.2l-0.1,0.3c-0.2,0.2-0.3,0.5-0.4,0.7%20c3.4,0.4,6.8,2.2,8,3c2.4-1.1,4.4-1.3,7.2-1.6c1-0.1,2.2-0.2,3.5-0.4l5.5-0.3c3-1,6.7-2.1,7.8-1.8l0.2,0.1l0.2,0.2%20c0.6,0.5,1.3,2.4,0.5,4.1c-1,2.2-3.8,3.1-8.4,2.6l-0.2,0l-0.2-0.1c-1-0.6-6.7,1.9-8.1,2.9c-0.8,0.6-6.6,6.7-9.9,10.4%20c1.5-0.3,3.2-1,4.7-1.7c1.3-0.6,2.5-1.1,3.4-1.2l0.6-0.1l0.8,1.4c0.2,0.2,0.3,0.4,0.4,0.5c0.2,0.6-0.2,1-0.4,1.2%20c-0.1,0.1-0.1,0.1-0.2,0.2c1,0.2,1.8,0.4,2.4,0.6c0.5-0.1,2.4-0.4,2.6-1.5c0-0.2,0.1-0.5,0.2-0.7l2.1-2.9l-0.2,2.3%20c2.1-0.8,6.4-2.8,8.6-5.2c0.6-1.8,3.7-3.6,4.4-3.9c0.2-0.1,0.4-0.2,0.5-0.3c0.7-0.4,1.8-1,2.7-0.6c0.6,0.2,1,0.7,1.3,1.4l0.1,0.2%20l0,0.2c-0.2,2.4-2.1,2.5-2.8,2.6c-0.1,0-0.2,0-0.2,0c-0.1,0-0.4,0.3-0.7,0.7c0.2,0.7-0.1,1.5-0.5,2.1c2-0.2,4.5,0.4,8.1,3.9%20c0.5-0.1,1.2-0.2,1.9-0.3l0.3,0l0.3,0.2c1.3,0.9,4.8-1.3,6.3-2.2c0.8-0.5,1.2-0.7,1.6-0.8l0.1,0c0.7-0.1,1.4-0.2,2-0.3%20c1.9-0.3,3.4-0.5,4.4-1.1l1.1-0.6l0.4,1.5c0.2,0.8,0.5,1.7,1,1.9c0.6,0.3,1.8,0,3.3-0.7l1.3-0.6l0.1,1.4c0.1,0.5,1.6,2.4,2.4,3.4%20c0.5,0.7,1.1,1.6,1.4,2l1.1,1.8h-1.9c-1.3,0-3.1-0.1-4.7,0c0,0,0-0.1,0-0.1c-0.1,0.1-0.1,0.1-0.3,0.6l11.1,4.2l0.2,0.2%20c0.1,0.1,1.4,1.6,2.3,3.9l0,0.1c0.6,2.6,1.3,7.7,1.3,7.8l0.1,0.9l-0.9,0.2c-0.3,0.1-0.5,0.1-0.6,0.1c0,0,0,0,0,0%20c-0.6,2.3-1.2,3.9-2.8,4.3c-0.5,1.4-0.2,1.9-0.1,2.1c0.2,0.2,0.5,0.3,0.7,0.3l1.6-1.3c0.2-0.9,0.8-2.9,3.5-4.5l0.3-0.2l0.3,0%20c2.8,0.1,4,2.2,4.5,3.1l0.2,0.5c1.2,5.7,3.2,7.3,3.2,7.3l0.4,0.3l0,0.5c-0.1,1.8-0.3,3.9-0.2,4.4c0.2,0.8,0,2.1-0.2,2.6%20c-0.2,0.6-0.4,1-0.7,1.2c0,0.2,0.2,0.3,0.2,0.6v0.7l-0.8,0.3c-0.2,0.1-0.4,0.1-0.5,0.2c0,0,0,0,0,0l0.1,0.5l-0.3,0.4%20c-0.5,0.6-1.1,0.7-1.5,0.9c-0.4,0.1-0.4,0.1-0.5,0.2c-0.1,0.3-0.1,0.4-0.1,0.4c0,0.1,0.2,0.3,0.3,0.5l0.7,0.9l-0.7,0.6%20c-0.6,0.5-2,2.2-2.6,3.7c2.2,0.5,5.9,1.4,7.4,1.7c1.2-1.3,2.6-1.7,3.5-2c0.1,0,0.2-0.1,0.3-0.1l0-0.2l2.8-1.1l1.8-2.1%20c0.1-0.1,2.4-3.3,5.5-4.1l0.3-0.2l2.1-0.7c0.3-0.1,0.8-0.3,1.3-0.4c0.8-0.2,1.7-0.5,2.2-0.8l0.2-0.1l0.2,0c0,0,1-0.2,2.5-0.2%20c0.2-0.3,0.4-0.7,0.7-1.1c1.1-1.6,3.3-4.9,3.6-5.7l0.3-0.8l0.6,0.1c0-0.1,0.1-0.2,0.1-0.3c0.2-0.4,0.4-0.8,0.7-1.4%20c0-0.7-0.3-1.2-0.7-2c-0.4-0.7-0.9-1.4-1.1-2.4c-0.1-0.2-0.3-0.4-0.3-0.5v0c0-0.1,0.2-0.2,0.2-0.2l-0.1-0.1c0-0.3-0.1-0.5-0.1-0.7%20V291l1.6,5.8c0.1-0.1,0.3-0.1,0.5-0.2c1.3-0.5,5-1,9.2-1.5c1.5-0.2,2.8-0.3,3.4-0.4c1.8-0.4,4.6-1.2,5.3-1.7%20c0.8-0.6,1.7-1.8,2.2-2.3c0.1-1.5,0-3.8-0.6-4.4c-0.1-0.1-0.3-0.2-0.6-0.1l-1.1,0.2l-0.1-1.1c-0.1-1.6,0.9-2.8,1.3-3.1%20c5-7.8,9-11.1,9.2-11.2l0.2-0.1l12-3l0-0.4l0.8-0.2c4.5-0.9,8.2-2,11.2-2.8c1-0.3,1.9-0.6,2.7-0.8c0-0.3,0-0.6,0-0.8%20c0.2-1.4,1.6-2.8,3.3-3.3c0.1,0,0.1-0.1,0.2-0.1l1.3-3v-1.5c-0.4-0.5-0.8-1.3-0.5-2c0.2-0.4,0.6-0.9,1.7-0.8%20c0.5-0.6,1-2.9,1.2-10.6c0-0.8,0-1.5,0.1-1.8l0-0.4l0.3-0.3c0.7-0.6,1.2-2.3,1.7-3.7c0.6-2,1.2-3.9,2.6-4.7l0.8-0.4l0.5,0.8%20c0.2,0.4,1.1,1.4,2,1.3c0.9-0.2,1.5-0.7,2.1-1.3c0.8-0.7,1.7-1.5,3-1.5h0.3l0.3,0.2c3.6,2.8,4.2,3.6,4.9,4.9%20c0.2,0.3,0.4,0.7,0.7,1.1l0.1,0.3c0.2,0.6,0.6,2.1,1.1,4c0.8,2.7,1.8,6.3,2.2,7.5c0.2,0.1,0.7,0.1,1.1,0c2-0.2,2.5,1.3,2.8,2.4%20c0.1,0.4,0.3,0.9,0.6,1.4c0.1,0,0.3,0.1,0.4,0.2c0.9,0.6,1.2,2.1,1.5,3.6c0.1,0.5,0.2,1.2,0.3,1.5l0.5,0.4l-0.3,0.7%20c-0.4,0.9-1.5,2.5-2.5,4c-0.2,0.4-0.4,0.6-0.5,0.8c-0.9,2.3-2.9,4-5.4,4.7c-1.3,0.3-2.4,0.3-3.2-0.1c-0.2,1.2-0.4,2.5-0.3,3.2%20l0,0.8l-1.8,0.6c-0.4,2-2.1,4-3.6,4.9c0.1,0.7,0.4,1.6,0.6,2.5c0.6,2.3,1.3,4.7,0.8,6.3l-0.1,0.4l-0.4,0.2%20c-1.8,0.8-3.9,1.4-5.5,1.6c0.3,0.4,0.9,0.8,2,1.4l0.9,0.4l-0.5,0.9c-0.2,0.4,0.1,2.1,0.2,2.9c0.1,0.5,0.1,0.9,0.2,1.2%20c1.7,2.5,3,3.3,3.6,3.1c0.5-0.1,0.9-0.9,0.9-1.3l0.1-0.7l0.7-0.2c2.2-0.5,3.5,1.3,4.2,2.4c0.1,0.2,0.3,0.4,0.4,0.6%20c1.4,0.2,4,0.4,4.9,0.3l1.1-0.2v1.2c0,0.5,0,1.4-4.1,2.5c-1.4,0.3-2.7,0.1-3.8-0.5c-0.6,0.5-1.3,0.7-1.9,0.6%20c-0.5-0.1-0.8-0.3-1.1-0.5c-0.4,0.3-1,0.7-1.5,0.9l-1.7,0.5l0.2-0.8c-0.9-0.1-2.3-0.2-3.8-0.2c0.6,1.1,1.5,2.5,2.1,3.5l0.4,0.6%20l-0.4,0.6c-2.1,2.8-5.7,4.7-5.9,4.8l-0.2,0.1c-3,0.8-14.2,8-19.4,11.4l1.3,0.1l0.2,0.7c0,0.2,1.1,4.6,0,9%20c-1.1,4.2-3.8,8.9-3.9,9.1l-0.9,1.6l-1.5-3l-2-0.4l-2.3-1.3c0.6,1.2,1.3,2.7,1.6,3.3l0.1,0.2c0.4,3.5,1.5,5.4,1.5,5.4l0.2,0.3%20l-0.3,4.6l0.2,0.1l-0.1,0.9c0,0,0,0.2-0.1,0.4l-0.1,1.6h-0.9c-0.1,0.1-0.4,0.4-0.7,0.8c-1.1,1.2-2.5,0.8-3.4,0.4%20c-0.1,0.2-0.3,0.4-0.6,0.5c-0.3,0.1-0.6,0.1-0.8,0.1c0,0,0,0,0,0c-0.6,0.4-1.5,0.2-2.7-0.6c0.2,0.6,0.1,1.2,0,1.7%20c0,0.2-0.1,0.6-0.1,0.7c0.3,0.4,0.4,0.8,0.5,1c0.1,0.2,0.1,0.3,0.4,0.5c0.5,0.4,0.6,0.8,0.6,1.1c0,0.6-0.4,1-0.7,1.2%20c0,0-0.1,0.1-0.1,0.1c0.1,0.1,0.4,0.4,1,0.8c0.4,0.3,1.3,0.9,1.1,1.8c-0.2,0.9-1.1,1-1.9,1.2c-0.2,0-0.5,0.1-0.8,0.2%20c0.2,0.3,0.6,0.8,1.6,1.6c0.9,0.8,1.5,1.9,1.7,2.8h1.1c0.8,0,1.4,0.4,1.7,0.8c2.3-0.2,6.4-0.4,8.7,5.2c1.3,3.1-2.5,8-2.9,8.6%20l-0.1,0.1c-0.7,0.6-1.8,0.5-3,0.5c-0.1,0-0.2,0-0.3,0l0.4,0.3l-0.1,0.6c0,0.2-0.1,0.5-0.2,0.7c-0.1,0.5-0.2,0.8-0.1,1.1%20c0.1,0,0.2,0,0.2,0c0.5-0.1,1.3-0.3,2,0.2c0.5,0.4,0.7,0.9,0.8,1.8c0.2,1-0.8,2.4-1.2,2.9l-0.7,0.9l-0.7-0.7c-0.2,0-1.2,0-4.3,1.7%20c-3.3,1.4-5.3,5.8-6,9.1l-0.1,0.2l-0.2,0.2c-0.6,0.7-1.8,1.5-2,1.5l-0.2,0.1l-0.2,0c-1.7,0.1-2.5,0.5-3.1,0.9%20c-0.3,0.2-0.7,0.4-1.1,0.4c-0.2,0.4-0.6,0.9-1.1,1.5c-0.4,0.5-0.8,1-1.1,1.5c-2.2,5.6-4.7,9.1-4.8,9.3l-0.1,0.2%20c-0.1,0.1-1.3,1.2-2.8,2.1c-0.4,1.3-0.7,2.4-0.7,2.4l-0.2,0.6l-0.6,0.1c-0.8,0.1-1.9,0.5-2.7,0.8c0.6,1.4,0.2,2.4-0.2,2.9%20c-0.7,0.8-1.8,1.2-2.7,1.2c-0.3,0.8-0.7,1.5-1.1,2.1c-1.8,4-3.6,10.4-3.6,15.2c1.1,1.2,1.8,3.4,2.5,5.6c0.3,0.9,0.6,1.9,0.9,2.7%20c1.3,3.1,6.4,11.1,7.5,12.4c0.5,0.1,1.4,0.3,2.2,1.1c1.4,1.3,2.1,3.6,2.1,6.8c0,0.2,0,0.4-0.1,0.6c1.3,2.8,4.1,8.3,7.1,11.1%20l0.2,0.2l0,0.2c1.1,2.9,2.3,11,2.3,13.3v0.5l-0.4,0.3c-1.5,1-1.5,4.8-1.5,6.6c0,1.4,0,1.8-0.5,2.2l-0.4,0.3l-0.5-0.1%20c-0.7-0.2-1.5,0.3-2.3,0.7c-1,0.6-2.4,1.4-3.6,0.1c-0.4-0.4-0.3-0.9-0.3-1.1c0-0.1,0-0.1,0.1-0.2c0-0.1-0.1-0.1-0.1-0.2%20c-0.1-0.1-0.2-0.3-0.2-0.4c-0.1,0-0.4,0.1-0.8,0.5l-1.1,0.8l-0.5-1.3c-1-2.9-4.9-5.2-8.6-7.1l-0.5-0.2l-0.1-0.5%20c-0.2-1.6-1-2.9-2.1-3.5c-1.1-0.6-1.5-1.9-1.7-3c-0.5,0.1-0.9-0.1-1.1-0.2l-0.7-0.2l0-0.5c-2.6-1.4-3.9-4.2-5.2-7.1l-0.1-0.2%20l0-0.3c0.1-0.7,0.4-1.4,0.7-2.2c-0.1,0.1-0.2,0.2-0.3,0.3c-0.4,0.3-1,0.3-1.6,0.1l-0.3-0.1l-0.2-0.2c-0.3-0.3-0.5-0.4-0.6-0.5%20c-0.4-0.3-0.9-0.7-0.7-1.7c0.2-3.5,0.6-6.1,0.6-6.2c0.3-1.7,0.4-4.6-0.5-5.3l-0.1-0.1l-0.1-0.1c-0.7-1.1-1.3-1.8-2.2-2.1%20c-3.3-1-5.5-2.7-6.7-5c-1.3-0.5-2.5-1.8-3.1-2.9c-1.6-0.3-5.1-0.6-6.2,0.8l-0.1,0.1l-0.1,0.1c-1.1,0.7-1.9,1.4-2.6,2%20c-1.6,1.4-2.8,2.4-6.5,2.3c-2.6-0.2-3.3-0.9-4-2c-0.4-0.7-0.9-1.4-3.5-1.9c-1.1-0.2-1.9-0.4-2.4-0.4c0,0.2,0,0.4-0.1,0.6%20c-0.4,0.8-1.3,0.8-1.6,0.9c-2.1,0.2-2.8-0.8-3.2-1.4c-2.9,1-5.4-0.8-7.1-2c0,0-0.1-0.1-0.1-0.1c0,0,0,0-0.1,0.1l-0.2,0.3%20c0,0.1,0,0.1,0,0.2l0,0.4l-0.2,0.3c-1.1,1.3-3.5,1.8-3.7,1.8l-0.8,0.2l-0.3-0.7c-0.2-0.6-0.8-1.7-1.3-2.7c0,0.2-0.1,0.4-0.1,0.6%20c-0.2,1.2-0.3,2.2-1.1,2.6c-0.1,0.1-0.1,0.3-0.2,0.4c-0.1,0.3-0.4,1-1.1,1c-0.4,0-0.7-0.1-0.9-0.3h-0.4c-0.8,0-1-0.6-1.1-1.4%20c-2.4,0.5-7,1.7-10,3.8c0.1,0.1,0.1,0.3,0.1,0.4c0,0.8-0.6,1.2-1.3,1.5c-0.7,0.4-1.4,0.8-1.3,1.2l0,0.3c0,0.1,0,0.2,0,0.2%20c0.3,0.1,0.7,0.4,1.3,0.8l0.1-0.1l0.6,0.2c6,2.4,6.5,3.4,6.6,3.8c0.1,0.2,0.2,0.5,0.2,0.7v0c0,0.5-0.2,1.8-1.4,2.3%20c-1.3,0.6-3.3-0.3-6.3-2.7c-0.2-0.2-0.4-0.2-0.4-0.2c0,0-0.2,0.1-0.3,0.1c-0.3,0.2-1,0.5-1.7,0.2c-0.1,0.7-0.4,1.5-1.2,2.2%20l-0.5,0.4l-0.6-0.3c-3.4-1.6-4.1-1.2-4.1-1.2c0,0.1-0.1,0.3-0.1,0.4c0,0.1,0,0.3,0,0.4l-0.1,0.7l-0.7,0.1%20c-2.3,0.4-4.2,0.3-6.2-1.1l-0.3-0.2l0-0.2c-0.3-0.4-0.8-1-1.3-2.2c-0.3-0.2-0.7-0.3-1.2-0.5c-0.9-0.2-2-0.3-2.6-1.7%20c-0.3-0.1-0.8-0.1-1.2-0.1h-0.3l-0.2-0.3c-0.4-0.2-1.2-0.4-1.5-0.1c-0.2,0.2-0.1,0.5-0.1,0.8l0.2,0.7l-0.6,0.4%20c-2.9,1.9-6.9,0.5-10.8-0.9c-0.9-0.3-1.8-0.6-2.6-0.9c-2,0.7-4.3,1.2-6,1.2l-0.2,0c-0.1,0-0.1,0-0.2-0.1c-1.4,1-5.1,2.4-6.8,3%20c-0.2,0.8-0.6,2-1.8,2.6l-3.8,3.4l-4.1,2.9l-5,2.2c-0.5,0.5-1.1,0.9-1.6,1.3l0.6,0.4l-1.1,0.8c-0.5,0.3-1,0.7-1.7,1.2%20c-1.6,1.1-4,2.7-4.4,3.9l-0.5,1.9l-0.7-1c0.2,0.9-0.5,1.8-0.9,2.5c-0.1,0.2-0.2,0.3-0.3,0.4l-0.3,0.6l-0.7-0.1l-0.3,1.8%20c-0.1,0.5-0.3,2.1-0.3,2.7c0,0.6,0.3,1.8,0.6,3.1c0.6,2.7,1.4,6,1.2,8.2c0.4,0.1,0.7,0.4,0.9,0.6c0.7,0.9,0.2,2.1,0.1,2.4%20l-0.1,0.1c0,0.1-0.1,0.2-0.1,0.3c-0.1,0.3-0.3,0.8-0.9,1.1c-0.4,0.2-0.8,0.1-1.2,0C278.8,521,277.8,521.3,276.8,521.3z%20M274.9,519.6c0.1,0.2,0.3,0.3,0.4,0.3c0.2,0.1,0.4,0,0.5,0l-0.4-0.5L274.9,519.6z%20M275.5,519.3l0.5,0.4l0.2-0.5c0,0,0,0,0,0%20c0-0.1,0-0.2,0-0.3L275.5,519.3z%20M276.3,519.3c0.9,0.1,2.2-0.3,2.6-0.5l0.4-0.2l0.4,0.2c0-0.1,0.1-0.3,0.2-0.4%20c0-0.1,0-0.1,0.1-0.2c-0.1,0-0.2,0-0.3,0l-1.8,0.3l0.7-1.6c0.6-1.6-0.3-5.6-1-8.3c-0.4-1.5-0.7-2.7-0.7-3.5c0-0.3,0-0.7,0.1-1.1%20l-1.4,0.7l2.7-6.3l1,0.1l0,0c0.2-0.3,0.5-0.8,0.6-1c0,0-0.1,0-0.1-0.1l-0.9-0.4l0.4-0.9c0.3-0.7,1.3-1.3,2.2-1.4%20c0.1,0,0.1,0,0.2,0c0.9-1.5,2.9-2.8,4.8-4.1c0.1-0.1,0.3-0.2,0.4-0.3l-0.4-0.7l0.6-0.6c0.2-0.2,0.4-0.3,0.6-0.3%20c0.5-0.3,1.4-0.9,2.3-1.7l0.1-0.1l5.2-2.3l3.8-2.7l4-3.6c0.7-0.3,0.9-1.5,0.9-1.7l0.1-0.6l0.6-0.2c3-1.1,6.5-2.3,7-2.8l0.5,0.8%20h1.2v-1.1c0-0.1-0.3-0.2-0.4-0.2c0.1,0,0.2,0.1,0.3,0.1c1.5,0,3.7-0.5,5.5-1.2l0.3-0.1l0.3,0.1c1,0.3,2,0.7,3,1%20c3.1,1.1,6.3,2.2,8.5,1.3c-0.1-1.2,0.5-1.8,0.9-2.1c1-0.8,2.5-0.7,3.5-0.3c1.1,0.1,2.1,0.6,2.2,0.6l0.4,0.2l0.1,0.4%20c0.2,0.7,0.5,0.8,1.4,1c0.6,0.2,1.4,0.4,2.1,1l0.2,0.2l0.1,0.2c0.6,1.3,1,1.9,1.2,2.1c0,0,0,0,0,0c1.1,0.7,2.1,0.9,3.8,0.7%20c0.1-0.5,0.4-1.1,1-1.4c1.1-0.6,2.7-0.3,5.3,0.8c0.1-0.3,0.1-0.8,0-1.3c-0.1-0.4-0.2-1.2,0.5-1.6c0.7-0.4,1.4,0.2,1.8,0.6%20c0.2,0.2,0.3,0.2,0.3,0.2c0,0,0.1-0.1,0.2-0.1c0.2-0.1,0.6-0.3,1-0.3c-0.2-0.1-0.3-0.3-0.5-0.5c-0.3-0.2-0.5-0.4-0.6-0.5%20c-0.2,0-0.4-0.1-0.6-0.2c-0.7-0.4-0.8-1.2-0.8-1.9c-0.1-0.6-0.1-1.1,0.1-1.5c-0.3,0-0.6,0-0.9-0.1c-0.9-0.3-1.6-1.1-2.2-2.3%20l-0.2-0.4l0.2-0.4c0.3-0.5,0.6-1,0.8-1.4c0-0.1,0.1-0.1,0.1-0.2l-0.1-0.2l0.5-0.6c0.5-0.5,1.1-0.5,2.6,0.1c0.3,0,0.6,0.1,0.9,0.3%20l0.8,0.3l-0.1,0.4c0.1,0.1,0.2,0.2,0.2,0.3c0.2,0.2,0.4,0.5,0.6,0.7c3.7-2.6,9.3-3.9,11.5-4.3l0.6-0.1l0.1,0.5l0.3-0.6%20c-0.3-0.1-0.6-0.1-0.8,0l0.4-0.2l0.5,0.1c0.2,0.1,0.5,0.2,0.7,0.7l0.2,0.5c0.1-0.1,0.2-0.2,0.4-0.3c0.1-0.2,0.2-0.8,0.2-1.3%20c0.2-1.1,0.3-2.4,1.1-3.2l0.7-0.7l0.7,0.7c0.9,0.9,1.9,2.9,2.4,4c0.6-0.2,1-0.4,1.4-0.8c0-0.4,0.1-0.7,0.1-1v-0.3%20c0-0.1,0.1-0.2,0.1-0.3l0-0.1l0-0.1c0-0.2,0-0.4,0-0.5c-0.2-0.6-0.7-1.4-0.9-1.7l1.6-1.2c0.4,0.4,1,1.2,1.3,2.4%20c0.1,0.2,0.1,0.3,0.1,0.5c0.4,0.2,0.8,0.5,1.3,0.8c1.6,1.1,3.5,2.5,5.5,1.7c0.9-0.4,1.7-0.1,2.2,0.9c0.2,0.3,0.3,0.5,0.9,0.5%20c-0.1-0.3-0.1-0.6,0.1-1c0.5-0.7,1.4-0.7,5,0c3.2,0.7,4.1,1.7,4.8,2.8c0.4,0.6,0.6,0.9,2.4,1c2.9,0.2,3.6-0.4,5.1-1.8%20c0.7-0.6,1.5-1.3,2.6-2.1c2.3-2.7,7.9-1.4,8.6-1.3l0.5,0.1l0.2,0.5c0.4,0.9,1.5,2.2,2.5,2.4l0.5,0.1l0.2,0.4%20c0.8,2,2.7,3.4,5.6,4.3l0.1,0c1.2,0.5,2.2,1.4,3.1,2.8c1.9,1.8,1.2,6.2,1,7l0,0c0,0-0.4,2.6-0.6,6c0.1,0.1,0.2,0.2,0.4,0.3%20c0-0.1,0.1-0.2,0.1-0.3c0.1-0.5,0.4-1.3,1.2-1.7c0.8-0.3,1.6,0.1,2.2,0.5c0.3,0.1,0.5,0.3,0.6,0.6c0.4,0.7-0.1,1.6-0.7,2.8%20c-0.3,0.6-0.6,1.3-0.8,1.8c1.2,2.8,2.5,5.1,4.7,6.1l0.4,0.1l0-0.1l1,0l1,0l0,1c0,1,0.3,2.3,0.9,2.7c1.5,0.8,2.6,2.5,3,4.5%20c3.4,1.8,7,4.1,8.6,6.9c0.4-0.2,0.9-0.3,1.4-0.2c0.8,0.2,1.2,0.9,1.5,1.4c0.1,0.2,0.2,0.3,0.3,0.5c0.1,0.1,0.2,0.3,0.3,0.4%20c0.2-0.1,0.4-0.2,0.6-0.3c0.7-0.4,1.6-0.9,2.6-1c0-0.1,0-0.3,0-0.4c0-2.3,0.1-6,2-7.8c-0.1-2.4-1.2-9.2-2.2-11.9%20c-3.4-3.3-6.4-9.6-7.6-12.2l-2.4-5.1l2.4,2.4c-0.2-2-0.9-3-1.4-3.5c-0.6-0.5-1.1-0.6-1.1-0.6l0,0l-0.1,0l-0.1,0%20c-1.7-0.4-8-11.7-8.8-13.6c-0.4-0.9-0.7-1.9-1-2.9c-0.6-1.8-1.3-3.9-2-4.8l-0.5-0.4l0.4-0.5l-0.5,0c-0.1-5.2,1.9-12.1,3.8-16.6%20l0.1-0.2c0.5-0.7,1-1.5,1.1-2.3l0.2-1.3l1.2,0.5c0.2,0.1,1.2,0,1.5-0.4c0.3-0.4-0.2-1.2-0.5-1.5l-0.8-1.1l1.3-0.4%20c0,0,0.2-0.1,0.3-0.1c0.7-0.3,2-0.8,3.2-1.1c0.2-0.5,0.4-1.3,0.6-2.2l0.1-0.4l0.4-0.2c1.2-0.7,2.4-1.7,2.7-2%20c0.4-0.6,2.5-3.9,4.5-8.9l0.1-0.2c0.3-0.5,0.8-1.1,1.2-1.7c0.3-0.4,0.7-0.9,0.9-1.2c-0.2-0.4-0.2-0.8,0.1-1.2%20c0.5-0.6,1.2-0.3,1.6,0c0.1,0,0.1-0.1,0.2-0.1c0.6-0.4,1.7-1,3.7-1.1c0.4-0.2,0.8-0.6,1.1-0.8c0.4-1.9,2.3-8.2,7.1-10.2%20c2.3-1.3,4.2-2,5.4-1.9c0.2-0.4,0.4-0.7,0.4-0.8c0-0.2,0-0.3,0-0.3c-0.1,0-0.2,0-0.3,0.1c-0.5,0.1-1,0.2-1.6,0l-0.3-0.1l-0.2-0.2%20c-0.9-1.2-0.6-2.4-0.4-3.2c0,0,0,0,0-0.1c-0.4-0.5-0.8-1.2-0.7-1.8c0-0.5,0.3-0.9,0.8-1.1l0.3-0.1c0.5-0.1,1.2-0.1,1.9,0%20c0.5,0,1.3,0,1.6,0c1.7-2.2,3.1-5.1,2.5-6.4c-1.8-4.5-4.9-4.2-6.9-4c-0.1,0-0.3,0-0.4,0c-0.3,0.1-0.5,0.1-0.8,0%20c-0.5,0-1-0.2-1.2-0.8l0.1-0.1l-1,0v-2c-1,0-1.1,0.5-1.1,0.8c0-0.3-0.3-1.4-1.1-2.1c-1.9-1.6-2.7-2.7-2.4-3.8%20c0.2-0.9,1-1.2,1.8-1.4c-0.8-0.7-1.3-1.3-1.3-2c0-0.6,0.2-1,0.5-1.3c-0.3-0.4-0.5-0.7-0.6-1c-0.1-0.2-0.1-0.3-0.2-0.5%20c-0.5-0.8-0.4-1.6-0.3-2.2c0-0.2,0.1-0.4,0.1-0.5c-0.6-0.7-0.9-1.3-1.3-1.9l-0.6-1l1.2-0.5c0.6-0.3,1.7-0.7,2.6,0.1%20c0.5,0.4,0.9,0.7,1.2,0.9l0.4-0.3c0.2-0.1,0.4-0.2,0.7-0.1l0-0.1l0.5-0.4c0.6-0.3,1.1-0.1,1.5,0.2c1,0.6,1.4,0.7,1.7,0.4%20c0.5-0.5,0.7-0.8,0.9-0.9l0,0c0.1-0.2,0.2-0.4,0.3-0.7l0.1-1.8l0.2-3c-0.4-0.7-1.3-2.7-1.6-5.8c-0.4-1-2-4-2.5-5.1l-0.7-1.3%20l2.6-0.3l4.2,2.3l2.5,0.5l0.2,0.5c0.9-1.7,2.2-4.5,2.8-6.9c0.7-2.9,0.4-6,0.1-7.3l-2.7-0.2l0.5-2.5l0.3-0.2%20c0.7-0.5,16.6-11,20.9-12.4c0.5-0.3,3-1.7,4.7-3.7c-1.2-1.9-2.6-4.4-2.7-4.5l-0.8-1.5l1.7,0c4.2,0.1,6,0.3,6.8,0.5%20c0.4-0.2,0.9-0.6,1.2-0.9l0.4-0.4c-0.2,0.1-0.4,0.2-0.7,0.3c-1.9,0.5-3.8-1-5.9-4.2l-0.1-0.2l0-0.3c0-0.3-0.1-0.8-0.2-1.3%20c-0.2-1.3-0.4-2.3-0.3-3.1c-1.5-0.8-2.2-1.6-2.5-2.2l-0.2-0.2c-0.2-0.2-0.4-0.6-0.2-1.2c0,0,0,0,0,0c0,0.1-0.1,0.1-0.1,0.1%20c0,0,0-0.2-0.2-0.5c-0.1-0.1-0.9-1.5-0.4-2.3l0.3-0.5l0.6,0.1c0.6,0.1,0.8,0.5,1.4,2c1.1-0.1,3-0.5,4.9-1.3%20c0.1-1.1-0.5-3.1-0.9-4.7c-0.4-1.3-0.7-2.5-0.8-3.5l-0.1-0.9l0.9-0.2c1-0.2,2.9-2.4,3.1-4.1l0-0.7l1.7-0.5%20c0.1-1.6,0.5-3.9,0.7-4.7c0-0.1,0-0.2,0-0.2l0.1-0.6l0.6-0.2l1.6-0.5l-0.3,1.4c0.1,0.1,0.2,0.3,0.5,0.5c0.1,0,1,0.2,2.3-0.3%20c1-0.3,2.7-1.2,3.5-3.2c0-0.2,0.2-0.4,0.7-1.2c0.6-0.9,1.6-2.3,2.1-3.3c-0.2-0.5-0.3-1.1-0.4-1.9c-0.1-0.6-0.3-1.7-0.5-2.1%20l-0.4,0.1l-0.4-0.6c-0.5-0.8-0.8-1.6-1-2.3c-0.4-1.1-0.4-1.1-0.7-1c-0.7,0.1-2.6,0.2-3.1-1c-0.4-1-1.5-4.7-2.4-7.9%20c-0.5-1.7-0.9-3.1-1.1-3.8c-0.3-0.4-0.5-0.8-0.7-1.1c-0.6-1-0.9-1.5-4.1-4.1c-0.4,0.1-0.8,0.4-1.4,0.9c-0.8,0.7-1.7,1.5-3.1,1.8%20c-1.4,0.2-2.5-0.6-3.2-1.3c-0.4,0.7-0.8,1.9-1.1,2.9c-0.5,1.7-1,3.4-2,4.4c0,0.3,0,0.7,0,1.3c-0.1,6.6-0.5,11-2,12.2%20c-0.2,0.1-0.4,0.2-0.6,0.3l0.1,0.1l0,2.6l-3.9,8.7l0.2-3.8c-0.7,0.4-1.1,0.9-1.2,1.3l0.6-0.2l-0.1,0.8l0.4,0.2l-0.4,0.8%20c0,0,0,0,0,0.1c0,0.1,0,0.3,0,0.4c0,0,0,0,0,0.1l-1.1-0.1c-1,0.3-2.2,0.6-3.5,1c-2.8,0.8-6.3,1.9-10.5,2.7c0,0.1,0,0.2,0,0.2l0,0%20c0,0.7-0.2,1-0.9,1.1c-0.5,0-0.8-0.2-0.9-0.5l-11.3,2.8c-0.8,0.7-4.4,4-8.7,10.7l-0.2,0.2c0,0-0.3,0.3-0.6,0.8%20c0.4,0.1,0.7,0.3,1,0.6c1.7,1.6,1.3,5.6,1.2,6.4l0,0.2l-0.1,0.2c-0.1,0.1-1.4,2-2.7,3c-1.3,1-5.4,1.9-6.2,2.1%20c-0.8,0.1-2,0.3-3.6,0.5c-3,0.4-7.5,0.9-8.7,1.4c-0.4,0.2-0.5,0.3-0.5,0.4c0,0,0,0.1,0,0.2c0,0.1,0.1,0.3,0.1,0.4%20c0.1,0.7,0.4,1.3,0.8,1.9c0.5,0.9,1,1.9,0.9,3.3l0,0.3l-0.1,0.2c-0.4,0.5-0.6,1-0.8,1.4c-0.2,0.5-0.6,1.2-1.2,1.4%20c-0.6,1.1-2,3.2-3.5,5.5c0,0,0,0,0,0h0.3l-1.3,1.6c-0.5,0.6-1,0.5-1.3,0.4c-1,0-1.8,0.1-2.1,0.1c-0.7,0.3-1.6,0.6-2.4,0.9%20c-0.5,0.1-0.9,0.3-1.2,0.4l-1.5,0.5v0.1l-0.8,0.2c-2.1,0.4-4.2,2.6-4.8,3.5l-2.2,2.5l-2.5,1c-0.3,0.3-0.8,0.4-1.2,0.6%20c-0.8,0.3-2,0.6-2.9,1.8l-0.3,0.4l-0.6-0.1c-1.3-0.2-7.7-1.7-8.9-2h-1.1l0.1-1.1c0.2-1.9,1.8-4.1,2.9-5.2%20c-0.4-0.6-0.5-1.2-0.1-2.3c0.4-1,1.3-1.2,1.8-1.4c0,0,0,0,0,0c0-0.2,0-0.3,0.1-0.5c0.2-0.4,0.5-0.7,0.9-0.9c-0.2-0.5,0-1,0.4-1.4%20l0.2-0.2l0.3,0c0.2-0.1,0.4-1,0.4-1.5c-0.2-0.5-0.1-1.5,0.1-4.7c-0.8-0.8-2.4-3-3.5-7.9l0-0.1c-0.4-0.8-1-1.9-2.5-2.1%20c-2.2,1.5-2.3,3.1-2.3,3.1l0,0.5l-0.3,0.3l-2.4,2l-0.3,0c-0.2,0-1.8,0.2-2.8-1c-0.8-1-0.8-2.7,0-4.8l0.2-0.8h0.7%20c0.5,0,0.9,0.2,1.7-3.2l0.1-0.4l0.5-0.2c0.2-0.1,0.4-0.1,0.5-0.2c-0.2-1.8-0.7-4.8-1.1-6.6c-0.6-1.5-1.4-2.6-1.7-3.1l-10.5-4%20l-0.3,0.4l-1.2,1.9c0.1,0.5,0.2,1,0.3,1.3l0.3,0.8l-0.8,0.4c-0.7,0.4-1.1,0.9-1.4,1.2c0.1,0.1,0.2,0.2,0.2,0.4%20c0.6,1.2,0.8,3.8-1.4,5.5l-0.2,0.1c-1.4,0.6-2.3,0.3-2.7-0.1c-0.4-0.3-0.6-0.7-0.7-1c-3.1,4.5-2.7,8.2-2.4,10.7%20c0.1,0.5,0.1,0.9,0.1,1.3l0,0.1l0,0.1c-0.1,1.6-0.4,2.2-0.7,2.6c0,0,0,0.1,0,0.1c0.2,0.7,0.7,2,1.3,3.3c0.8,1.9,1.8,4,2.1,5.8%20c0.9,6.1-0.1,9.9-2.7,16.2l-0.3,0.6h-0.7c-0.2,0-5.4,0.3-8.5-0.4l-0.8-0.2v-0.4c-2.2-1.7-3.3-4.9-3.1-9.9h0l-0.2-0.9l0.4-0.2%20c-0.7-2.8-1.3-6-0.8-11.6l0.8-6.6c0,0,0.3-2.3,1.6-7.5c-0.2,0-0.4,0-0.6,0c-0.5,0.7-0.9,1.3-1.2,1.8c-0.5,0.9-1.1,1.9-2.3,1.6%20c-0.7-0.1-1.2-0.4-1.5-1c-0.4-1,0.2-1.9,1-3.2c0.7-1.1,1.6-2.5,1.6-3.7c0,0,0,0,0,0c0,0,0,0,0,0c0-0.1,0-0.1,0-0.2l0.4,0l0.4-0.4%20l-0.3-0.7c0.4-0.3,1.4-2.1,2-3.4c0.6-1.3,1.3-2.6,1.9-3.5l0.4-0.6l0.7,0.1c0.5,0.1,0.6,0.1,0.6,0.1h0c0,0,0.1-0.1,0.1-0.2%20c0.3-0.4,0.8-1,2-1.5l1.7-0.7l-0.2,1.1c1.1-1.6,3.7-2.2,5.3-2.6c0.3-0.1,0.5-0.1,0.7-0.2c0.1-0.1,0.2,0,0.3-0.2%20c0.3-0.4,0.8-0.9,2-0.9c0,0,0,0,0,0c2.8,0,3.9,0.3,5.2,1.2c0.1-0.2,0.2-0.4,0.3-0.6c0.1-0.1,0.1-0.2,0.2-0.3l0.3-0.4l0.5-0.1%20c1.1-0.1,2.3-0.2,3.4-0.2c-0.1-0.1-0.1-0.1-0.2-0.2c-1.2-1.5-1.9-2.5-2.4-3.3c-1.7,0.6-3,0.7-4,0.2c-1.1-0.5-1.6-1.5-1.9-2.4%20c-1.1,0.4-2.4,0.6-3.9,0.8c-0.6,0.1-1.2,0.2-1.9,0.3c-0.2,0.1-0.7,0.4-1.1,0.6c-2.2,1.3-5.7,3.5-8.1,2.3c-0.9,0.1-1.9,0.3-1.9,0.3%20l-0.5,0.1l-0.4-0.4c-4.5-4.6-6.5-4-8.8-3.2l-1.1,0.3l-0.3-1c-0.3-1.1-0.5-1.9,0-2.5c0.2-0.2,0.4-0.3,0.6-0.4l0.9-1.4%20c0.5-0.9,1-1.4,1.4-1.8c-1.3,0.7-2.7,2-2.8,2.5l-0.1,0.3l-0.2,0.2c-2,2.2-7.7,5.6-10.6,6.2c-0.8,2.2-3.9,2.7-4.6,2.7h-0.2%20l-0.2-0.1c-0.8-0.3-1.7-0.5-3.1-0.8l-0.5-0.1l-0.2-0.5c-0.4-1-0.2-1.8,0.1-2.2c-0.6,0.2-1.4,0.5-2.2,0.9c-2.2,1-4.9,2.2-7.3,1.9%20l-0.5,0.5l-1.5-1.3c0.8-1.1,11.6-12.7,12.7-13.3c0,0,7.2-4.4,10.1-3c3.3,0.3,5.4-0.1,6.1-1.3c0.4-0.6,0.3-1.3,0.1-1.7%20c-1.1,0.2-4,1-6.5,1.8l-0.3,0.1l-5.5,0.3c-1.2,0.2-2.4,0.3-3.4,0.4c-2.8,0.3-4.7,0.5-7,1.6l-0.5,0.2l-0.5-0.3c0,0-4.6-3-8.4-3%20c-0.5,0-0.9-0.2-1.1-0.7c-0.1-0.2-0.4-0.7,0.3-1.9c-1,0-2.9,0.1-6.4,0.6c-0.8,0.2-2.2-0.2-4.1-0.6c-0.3-0.1-0.5-0.1-0.7-0.2%20c-0.3-0.1-0.6-0.1-0.9-0.2c-0.9-0.1-2.2-0.3-3.7-1.6c-1.1-1-1.8-2.9-1.9-3.7c-0.2-0.8-1.1-2-1.6-2.3c-0.5,0.1-1,0.2-1.2,0.3%20c0,0.1,0,0.2,0,0.5v2.8h-1c-10.9,0-13.2,0.1-15.2,0.5l-0.1,0.1l-0.1,0l-54.3-1.4c-16.4-1.5-33.6-3.1-47.8-5.1%20c-19-2.7-34.7-5.3-42.2-6.6c-2.5-0.4-4.5-0.8-4.8-0.8l-0.2,0c-0.1,0-5.4-1.6-8.2-1.8l0.1-0.6l-0.1,0.6c-1.6-0.4-35.1-8-43.1-10.3%20c0.1,0.4,0.3,0.8,0.5,1.2c0.5,1.1,1.1,2.2,0.7,3.2l-0.1,0.3c-0.1,0.6,0.1,2.6,0.3,3.8c0.2,1.7,0.3,2.5,0.1,3.1l-0.2,4.6l-0.9,0.1%20c-1.1,0.1-1.4,0.9-1.8,2.7c-0.1,0.7-0.3,1.3-0.6,1.8c-0.2,0.4-0.6,0.6-1,0.6c-0.8,0-1.3-0.8-1.8-1.7c-1.2-2.4-2.7-7.6-1.3-10.6%20c-3.7-4.6-8.6-9.1-10.3-8.6c-0.4,0.1-0.7,0.9-0.8,2c-0.2,2.7,0.2,6.6,0.5,9.7c0.5,4.7,0.5,5.7-0.2,6.2c-0.2,0.1-0.4,0.2-0.5,0.2%20c-0.1,0.1-0.2,0.2-0.2,0.2c-0.2,1.6-0.2,1.6,0.4,3.1l0,0.1c0.2,0.6-0.2,1-0.7,1.5c-0.5,0.5-1.3,1.4-1.3,2.1c0,0.2,0,0.3,0,0.4%20L61,246l-0.9,3.3l0.5,0.4l-0.2,0.7c-3.4,9.5-8.2,21.3-11.6,29.6l-0.1,0.3l-0.2,0.2c-2.4,1.7-4.2,5.3-4.5,9.1%20c-0.1,0.9-0.2,1.7-0.3,2.4c-0.2,1.7-0.4,2.9,0,3.5l-1,0.6l1.3,0.1c-0.2,4.3-2.2,11-4,14.2l-0.1,0.2l-0.2,0.1%20c-1.2,0.7-1.9,1.6-2.1,2.7c-0.5,2.7,2.1,5.8,2.1,5.8l0.3,0.3l0,0.4c-0.1,1-0.1,1.9-0.2,2.8c-0.1,2-0.3,4.1-0.7,6.8%20c-0.7,5.6,1.2,7,2.3,7.7c0.1,0.1,0.3,0.2,0.4,0.3l0.3,0.2l0.1,0.4c0.1,0.8,0.4,1.6,0.5,2.2c0.4,1.3,0.8,2.5,0.2,3.7%20c0.3,0.4,0.7,0.7,1,1.1c0.4,0.4,0.8,0.7,1.1,1.2l0.2,0.2l0.1,0.8l-0.2,0.2c0,0.3,0,0.6-0.1,1.1l1.2-0.2l-0.6,1.6%20c-0.4,1.2-0.7,4.7-0.4,5.4c0.4,1.4,1.1,2,2,2.5c1.1,0.8,2.5,1.7,1.9,4.2l-0.1,0.5l-0.4,0.2c-1.6,0.8-1.8,2.3-1.6,4.5%20c0.9,1.2,2.1,3.7,3.3,6.5c1.4,3,2.9,6.5,4.4,8.5l0.3,0.4l-0.2,0.5c-1.1,2.8-1.3,5.3-0.3,6.6c0.7,1,2.1,1.5,4.1,1.5%20c2.3,0,4.7,2.6,4.9,2.9l1.6,1.8c1.5,1.4,3.8,3.3,4.9,3.6c0.2,0.1,0.3,0.1,0.4,0.1c0.4-0.2,0.9-0.1,1.3-0.1l1,0.2l-0.2,1%20c-0.1,0.7-0.1,2,0.2,2.7c2.7,1.1,4.7,2.7,6.2,5.1c1.1,1.7,2.8,8.1,3,11.1c4.1,0.2,10.1,0.8,16,1.5l6.9,0.8l0.1,0.8%20c0.1,0.6,0.1,1,0.1,1.5c0,0.3,0,0.5,0,0.9c6.5,3.2,10.1,5.3,15.5,8.4c1,0.5,2,1.2,3.2,1.9c2.9,1.8,6.6,4,11.2,6.2l0.9,0.5%20c3.9,2,8.7,4.5,13.8,4.2l0.1,0l9.9,2.1c1.6,0.8,4.8,0.4,7-0.5l1.1-4.7l0.8,0c6.7,0.2,11.6,0.7,14.7,1.1l0-0.2l1,0.2%20c0.7,0,1.3,0.1,1.9,0.3l0.2,0.1l0.2,0.2c0.8,0.8,1.9,2.1,3.1,3.6c2.7,3.4,6.5,8,10.5,10.2l0.4,0.2l0.1,0.4%20c0.8,2.6,1.4,3.6,1.8,4.2c0.7,1.1,0.8,1.6,0.6,4.1c0.1,0.2,0.2,0.4,0.2,0.7c1,2.9,2.5,6.9,13.7,11.3c0.8,0.3,2.6-3,3.4-4.4%20c1.2-2.3,2-3.8,3.2-3.9l0.4,0l0.3,0.2c1.7,1.1,3.1,0.8,5.1,0.4c1.7-0.4,3.8-0.8,6.4-0.3l0.4,0.1l0.2,0.4c1.6,2.4,2.6,3.3,3.7,4.4%20c0.9,0.9,1.9,1.8,3.2,3.6c0.6,1,1.2,2.3,1.9,3.7c1.4,2.9,3.2,6.6,4.8,7.9l0.2,0.2l1.1,3c0.8,0.8,3.2,3.1,3.7,4.1%20c1.7,2.9,1.7,3.8,1.5,4.9c0,0.2-0.1,0.4-0.1,0.7c0,0,0,0.1,0.1,0.1c0.3,0.6,1,2,3,6.9c1,0.7,2.6,1.4,4.2,2.2%20c2.5,1.2,4.2,2,5.1,2.8c0.4,0.1,1,0,1.6,0c2.1,0,5-0.1,6.4,2.2c0,0.1,0.1,0.1,0.1,0.1l-0.5,0.3C276.2,519,276.3,519.2,276.3,519.3%20z%20M358.2,474.6c0.2,0.1,0.5,0.3,0.8,0.5c3.2,2.7,4.1,2.5,4.1,2.5c0-0.1,0-0.5,0-0.6c0,0,0-0.1,0-0.1c-0.7-0.5-2.8-1.5-4.7-2.3%20C358.4,474.6,358.3,474.6,358.2,474.6z%20M353.7,467.1c0.3,0.5,0.6,0.8,0.8,0.8c0.1,0,0.1,0,0.1,0l0.2-0.1l0.2,0%20c0.2,0,0.5-0.1,0.8-0.2c0.1-0.1,0.3-0.1,0.5-0.2c-0.1-0.2-0.3-0.3-0.4-0.5c-0.1-0.2-0.3-0.4-0.4-0.5c-0.4-0.2-0.8-0.3-1-0.3%20c-0.1,0.1-0.1,0.2-0.2,0.3C354,466.6,353.9,466.9,353.7,467.1z%20M365.3,327.2c2.3,0.4,5.4,0.3,6.7,0.3c2.3-5.7,3.1-9.1,2.3-14.5%20c-0.3-1.5-1.2-3.5-2-5.3c-0.7-1.5-1.2-2.8-1.5-3.7c-0.1-0.8,0-1.2,0.3-1.7c0.1-0.1,0.2-0.3,0.3-1.5c0-0.3-0.1-0.7-0.1-1.1%20c-0.3-2.7-0.8-7.1,3-12.4l0.2-0.2l3.3-2.5l-0.3,2.4c-0.1,0.5,0,1.2,0.2,1.3c0,0,0.2,0.1,0.6-0.1c0.7-0.6,0.9-1.3,1-1.7%20c0-0.4,0-0.7-0.1-1l-1.3,0.4l0.5-1.8c0-0.1,0.4-1.5,2-2.7c-0.1-0.6-0.2-1.1-0.3-1.2l-0.1-0.4l2-3.2l-0.1-0.1%20c-1.3-1-1.9-1.4-4.4-1.4c-0.3,0-0.3,0-0.5,0.3c-0.2,0.2-0.4,0.6-0.9,0.9l-0.2,0.1c-0.3,0.1-0.6,0.2-1.1,0.3%20c-1.2,0.3-3.6,0.8-4.2,1.8c0.1,1.4-0.8,2.6-1.9,3.2c-0.3,0.2-0.6,0.3-0.9,0.3l-0.1,0.2l-0.9-0.3l-0.9-0.4l0.4-0.9%20c0,0,0-0.1,0.1-0.1c-0.3,0.2-0.7,0.2-1.3,0.2c-0.5,0.8-1,1.8-1.5,2.8c-0.9,1.8-1.6,3.2-2.3,3.9c0,0.9-0.3,1.7-0.6,2.5l0.3-0.1%20c0.2,0,1.8-0.3,3,0.5l0.6,0.4l-0.2,0.7c-1.4,5.7-1.7,8.1-1.7,8.1l-0.8,6.5c-0.5,5.9,0.2,8.9,1,11.8l0.3,1l-0.7,0.2%20c-0.1,4.2,0.8,7.1,2.6,8.1L365.3,327.2z%20M517,298.6l0.6,1.2c0.1,0.2,0.3,0.4,0.4,0.4c0.1,0,0.4-0.1,0.8-0.5l0.6-0.6l0.5,0.3%20c-0.1-0.2-0.3-0.4-0.4-0.6c-0.6-0.9-1-1.4-1.5-1.6C517.7,297.8,517.4,298.2,517,298.6z%20M356.1,260.5c-0.2,0-0.8,0.3-1.1,0.5%20c-0.1,0.1-0.2,0.1-0.3,0.1c0,0,0.1,0,0.1,0c0.1,0,0.3,0,0.4,0C355.9,261,356.1,261,356.1,260.5%20C356.2,260.5,356.2,260.5,356.1,260.5C356.2,260.5,356.1,260.5,356.1,260.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",U1={area:V1,arearange:V1,line:uX,bar:nX,column:oX,polar:dX,funnel:sX,pie:cX,scatter:hX,indicator:lX,table:pX,treemap:mX,areamap:G1,scattermap:G1,boxplot:iX,sunburst:fX,"calendar-heatmap":aX};function gX(e){var r;return(r=U1[e])!=null?r:U1["bar"]}const vX="_wrapper_g0ngm_1",yX="_title_g0ngm_7",bX="_image_g0ngm_18",nf={wrapper:vX,title:yX,image:bX},Q0=({iconType:e})=>{var l;const{themeSettings:t}=ot(),r=k.useRef(null),[n,i]=k.useState({width:null,height:null});k.useEffect(()=>{r.current&&i({width:r.current.offsetWidth,height:r.current.offsetHeight})},[]);const a=gX(e),{t:o}=y.useTranslation();return y.jsxs("div",{ref:r,className:nf.wrapper,children:[y.jsx("div",{className:nf.title,style:{fontFamily:(l=t.typography)==null?void 0:l.fontFamily,fontSize:_X(n.width,n.height)},children:o("chartNoData")}),a?y.jsx("img",{className:nf.image,src:a}):null]})};function _X(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 wX=e=>e,xX=({chartType:e,chartData:t,dataOptions:r,designOptions:n,onDataPointClick:i,onDataPointContextMenu:a,onDataPointsSelected:o,onBeforeRender:l=wX,size:u})=>{const{app:c}=Et(),{t:h}=y.useTranslation(),f=[],p=k.useCallback((w,C)=>ll(w,C,c==null?void 0:c.settings.locale,c==null?void 0:c.settings.dateConfig),[c==null?void 0:c.settings.locale,c==null?void 0:c.settings.dateConfig]),{themeSettings:g}=ot(),b=k.useMemo(()=>{var R;const{options:w,alerts:C}=y.highchartsOptionsService(t,e,n,r,h,g,p);f.push(...C);const T=((R=c==null?void 0:c.settings.accessibilityConfig)==null?void 0:R.enabled)||!1,E=Bx(w,g,T),S=zx(E,r,{onDataPointClick:i,onDataPointContextMenu:a,onDataPointsSelected:o}),P=Hx(S,g);return l(P)},[e,t,r,n,g,i,a,l,h]),v=k.useMemo(()=>b?I(M({},b),{chart:M(M(M({},b.chart),(u==null?void 0:u.width)&&{width:u.width}),(u==null?void 0:u.height)&&{height:u.height})}):null,[b,u]);return v&&y.jsxs("div",{"aria-label":"chart-root",style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!f.length&&y.jsx(iC,{alerts:f}),y.jsx(B0,{options:v})]})},CX=[...y.CARTESIAN_CHART_TYPES,...y.CATEGORICAL_CHART_TYPES,...y.SCATTER_CHART_TYPES,...y.BOXPLOT_CHART_TYPES,...y.RANGE_CHART_TYPES],WC=e=>CX.includes(e),TX=e=>!!e.chartType&&WC(e.chartType)&&!!e.chartData,MX=2e4;function ts(e,t){if(e&&t){const r=t.column.name,n=e.findIndex(i=>i.name===r);return n===-1?null:n}return null}const jC=(e,t,r)=>{if(!e)return{columns:[],rows:[]};let n=0,i=4,a=5,o=0,l=1;return r&&(n=ts(e.columns,r.category),i=ts(e.columns,r.whiskerMin),a=ts(e.columns,r.whiskerMax),o=ts(t.columns,r.category),l=ts(t.columns,r.outliers)),Bu(l)?e:{columns:[...e.columns,t.columns[l]],rows:e.rows.map(c=>{const h=Bu(n)?null:c[n].data,f=c[a].data,p=c[i].data,g=t.rows.filter(b=>{const v=Bu(o)?null:b[o].data,w=b[l].data;return v===h&&(w<p||w>f)}).map(b=>b[l].data).join(",");return[...c,{data:g}]})}};function SX(e,t,r){const n=r&&_C(r);return jC(e,t,n)}const EX=(c,h)=>er(exports,[c,h],function*({app:e,chartDataOptions:t,dataSource:r,attributes:n,measures:i,filters:a,filterRelations:o,highlights:l},u){var v;const f={dataSource:r,dimensions:t.category?[n[0]]:[],measures:i,filters:a,filterRelations:o,highlights:l},p=yield u(f,e);let g=p;const b=t.outliersCount?PX(p,t.outliersCount.column.name):0;if(t.outliers&&b<MX){const w={dataSource:r,dimensions:n,measures:[],filters:a,filterRelations:o,highlights:l};try{const C=yield u(w,e);g=jC(p,C,t)}catch(C){if((v=C==null?void 0:C.message)!=null&&v.includes("UnsupportedFunctionalityException"))console.warn("Functionality not supported by platform: Boxplot outliers");else throw C}}return g}),PX=(e,t)=>{if(!(e!=null&&e.columns))return 0;const r=e.columns.findIndex(({name:i})=>i===t);let n=0;return e.rows.forEach(i=>{n+=parseInt(i[r].data)}),n};function AX(e,t){return Tl(e)&&!t?Cl(e).data.loadData:e==="boxplot"?OX:RX}const RX=n=>er(exports,[n],function*({app:e,queryDescription:t,executionConfig:r}){var o,l;return(((l=(o=e==null?void 0:e.settings.queryCacheConfig)==null?void 0:o.enabled)!=null?l:!1)?j.executeQueryWithCache:j.executeQuery)(t,e,r)}),OX=n=>er(exports,[n],function*({app:e,chartDataOptionsInternal:t,queryDescription:r}){var o,l,u,c;const a=((l=(o=e==null?void 0:e.settings.queryCacheConfig)==null?void 0:o.enabled)!=null?l:!1)?j.executeQueryWithCache:j.executeQuery;return EX({app:e,chartDataOptions:t,dataSource:r.dataSource,attributes:(u=r.dimensions)!=null?u:[],measures:(c=r.measures)!=null?c:[],filters:r.filters,highlights:r.highlights,filterRelations:r.filterRelations},a)}),xu=(e,t)=>{if(!t||t.length!==1)return[void 0,void 0];const r=y.getColumnByName(e,t[0].column.name);return r?[y.getValue(e.rows[0],r),t[0].column.name]:[void 0,void 0]},kX=(e,t)=>{var l;const r={type:"indicator"};if(!((l=e.value)!=null&&l.length)||t.rows.length===0)return r;const[n]=xu(t,e.value);if(n===void 0)return r;const[i]=xu(t,e.secondary),[a]=xu(t,e.min),[o]=xu(t,e.max);return{type:"indicator",value:n,secondary:i,min:a,max:o}},DX=1,NX=(e,t)=>{const r=LX(e),n=e.locations&&y.getColumnsByName(t,e.locations.map(({column:{name:u}})=>u)),i=e.size&&y.getColumnByName(t,e.size.column.name),a=e.colorBy&&y.getColumnByName(t,e.colorBy.column.name),o=e.details&&y.getColumnByName(t,e.details.column.name);return{type:"scattermap",locations:t.rows.filter(u=>n.some(c=>y.getValue(u,c)!==y.NOT_AVAILABLE_DATA_VALUE)).map(u=>{const c=n.map(g=>y.getValue(u,g)),h=LY(c);let f;r&&(f={lat:y.getValue(u,n[0]),lng:y.getValue(u,n[1])});const p=n[0]&&!!y.isBlurred(u,n[0]);return M(I(M(M({name:h,rawName:c,value:i?y.getValue(u,i):DX},a&&{colorValue:y.getValue(u,a)}),o&&{details:y.getValue(u,o)}),{blur:p}),f?{coordinates:f}:null)})}};function LX(e){return e.locations.length===2&&e.locations.filter(({column:{type:t}})=>j.isNumber(t)).length===2}const IX=(e,t,r)=>{if(y.isCartesian(e))return y.isForecastChart(t)?y.advancedAnalyticsData(t,r):y.cartesianData(t,r);if(y.isCategorical(e))return ud(t,r);if(y.isScatter(e))return y.scatterData(t,r);if(y.isScattermap(e))return NX(t,r);if(y.isIndicator(e))return kX(t,r);if(y.isBoxplot(e))return u$(t,r);if(y.isRange(e))return y.rangeData(t,r);throw new j.TranslatableError("errors.unexpectedChartType",{chartType:e})};var $X=1/0,FX=j.Set&&1/j.setToArray(new j.Set([,-0]))[1]==$X?function(e){return new j.Set(e)}:y.noop,zX=200;function J0(e,t,r){var n=-1,i=eC,a=e.length,o=!0,l=[],u=l;if(a>=zX){var c=t?null:FX(e);if(c)return j.setToArray(c);o=!1,i=j.cacheHas,u=new j.SetCache}else u=t?[]:l;e:for(;++n<a;){var h=e[n],f=t?t(h):h;if(h=h!==0?h:0,o&&f===f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),l.push(h)}else i(u,f,r)||(u!==l&&u.push(f),l.push(h))}return l}var BX=j.baseRest(function(e){return J0(j.baseFlatten(e,1,j.isArrayLikeObject,!0))});const VC=(e,t,r,n={})=>{if(y.emptyTable(e))return{rows:[],columns:[]};const i=BX(y.getColumnsByName(e,t.map(h=>h.name))),a=e,l=[...r.map(h=>{var f,p;return{column:(f=n[h.name])!=null?f:h.name,title:h.name,agg:(p=h.aggregation)!=null?p:"sum"}}),{column:y.rownumColumnName,title:y.rownumColumnName,agg:"min"}],u=y.groupBy(a,i,l),c=y.getColumnByName(u,y.rownumColumnName);if(!c)throw new j.TranslatableError("errors.noRowNumColumn");return y.orderBy(u,[c])};function HX({dataSet:e,data:t,chartDataOptions:r,chartType:n,isForecastOrTrendChart:i,attributes:a,measures:o,dataColumnNamesMapping:l,onDataReady:u}){return k.useMemo(()=>{if(!t||!r)return null;let c;if(u&&(c=u(t),!YC(c)))throw new j.TranslatableError("errors.incorrectOnDataReadyHandler");const h=c||t;let f=y.createDataTableFromData(h);return ui(e)||(f=VC(f,a,o,l)),WX(n,r,f,i)},[t,n,i])}function WX(e,t,r,n=!1){if(Tl(e)&&!n){const i=Cl(e);if(i.dataOptions.isCorrectDataOptionsInternal(t))return i.data.getChartData(t,r);throw new Error("Incorrect internal data options for restructured chart")}return IX(e,t,r)}function jX(e){const{dataSet:t,chartType:r,chartData:n,internalDataOptions:i,designOptions:a,onBeforeRender:o,onDataPointClick:l,onDataPointContextMenu:u,onDataPointsSelected:c}=e;return k.useMemo(()=>!i||!a?null:{dataSource:ui(t)?t:null,chartType:r,chartData:n,dataOptions:i,designOptions:a,onBeforeRender:o,onDataPointClick:l,onDataPointContextMenu:u,onDataPointsSelected:c},[t,r,n,i,a,o,l,u,c])}const eg=e=>{const t={},r=n=>`$measure${n}_`;return e.forEach((n,i)=>{const a=n.name,l=`${r(i)}${a}`;n.name=l,t[l]=a}),t},VX=(e,t)=>{if(t==="funnel"){const r=j.merge$1(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},GC=(e,t,r,n,i,a)=>{if(!e)return!0;if(t.length+r.length===0)throw new j.TranslatableError("errors.dataOptions.noDimensionsAndMeasures");return t.forEach(o=>{if(e.columns.findIndex(u=>u.name===o.name)===-1)throw new j.TranslatableError("errors.dataOptions.attributeNotFound",{attributeName:o.name})}),r.forEach(o=>{if(e.columns.findIndex(u=>u.name===o.name||u.name===n[o.name])===-1)throw new j.TranslatableError("errors.dataOptions.measureNotFound",{measureName:n[o.name]})}),i&&i.forEach(o=>{if(e.columns.findIndex(u=>u.name===o.attribute.name)===-1)throw new j.TranslatableError("errors.dataOptions.filterAttributeNotFound",{attributeName:o.attribute.name})}),a&&a.forEach(o=>{if(e.columns.findIndex(u=>u.name===o.attribute.name)===-1)throw new j.TranslatableError("errors.dataOptions.highlightAttributeNotFound",{attributeName:o.attribute.name})}),!0};function GX(e,t){switch(e){case"pie":case"funnel":case"treemap":return tU(e,t);default:return t}}const tg=()=>{const[e,t]=k.useState();if(e)throw e;return t};function Hp(e,t,r=al(),n=sl){const i=new Map;return[...t.breakBy?t.breakBy:[],...t.x?Array.isArray(t.x)?t.x:[t.x]:[],...t.columns?t.columns:[]].forEach(function(o){if(y.isMeasureColumn(o)||!o.dateFormat||!(e!=null&&e.columns))return;const l=e.columns.findIndex(function(c){return c.name===o.column.name&&j.isDatetime(o.column.type)&&j.isDatetime(c.type)});l!==-1&&i.set(l,o.dateFormat)}),i.size===0||(e.rows=e.rows.map(function(o){return o.map(function(u,c){const h=i.get(c);if(!h||u===y.NOT_AVAILABLE_DATA_VALUE)return u;let f,p;if(y.isCell(u)){if(u.data===y.NOT_AVAILABLE_DATA_VALUE)return u;f=M({},u)}else{const b=y.createCompareValue(`${u}`,"datetime");p=new Date(b.value),f={data:p.toISOString(),text:`${u}`}}if(!f.data)return u;let g=f.text;try{g=ll(f.data,h,r,n)}catch(b){console.error(b)}return f.text=g,f})})),e}const UX=e=>e==="funnel"?e:y.deriveChartFamily(e),YX=({dataSet:e,chartDataOptions:t,chartType:r,attributes:n,measures:i,dataColumnNamesMapping:a,filters:o,highlights:l,refreshCounter:u,setIsLoading:c,enabled:h=!0,loadData:f})=>{const p=tg(),g=k.useMemo(()=>UX(r),[r]),b=k.useMemo(()=>[void 0,t],[t]),[v,w]=k.useState({}),{app:C}=Et();return k.useEffect(()=>{if(!h)return;let T=!1;const{filters:E,relations:S}=j.getFilterListAndRelationsJaql(o);if(ui(e)){if(!C)return;const P=f({app:C,chartDataOptionsInternal:t,queryDescription:{dataSource:e,dimensions:n,measures:i,filters:E,filterRelations:S,highlights:l,count:C.settings.queryLimit}}),R=C==null?void 0:C.settings.loadingIndicatorConfig,N=setTimeout(()=>{R!=null&&R.enabled&&(c==null||c(!0))},R==null?void 0:R.delay);P.then(W=>{const G=Hp(W,t,C==null?void 0:C.settings.locale,C==null?void 0:C.settings.dateConfig);T||w({[g]:[G,t]})}).catch(W=>{p(W)}).finally(()=>{clearTimeout(N),R!=null&&R.enabled&&(c==null||c(!1))})}else{GC(e,n,i,a,E,l);const P=Hp(e,t,C==null?void 0:C.settings.locale,C==null?void 0:C.settings.dateConfig);w({[g]:[P,t]})}return()=>{T=!0}},[r,t,e,o,l,C,u,h]),v[g]||b};function UC(e,t){{const r=GX(t,e),n=BU(t,r),i=VX(n,t),a=jU(i,t),o=VU(i,t);return{dataOptions:i,attributes:a,measures:o}}}const qX=(e,t,r)=>k.useMemo(()=>{if(Tl(t)&&!r){const n=Cl(t);if(!n.dataOptions.isCorrectDataOptions(e))throw new Error("Incorrect data options");return XX(n,e)}else return ZX(e,t)},[e,t,r]);function XX(e,t){const r=e.dataOptions.translateDataOptionsToInternal(t),n=e.dataOptions.getAttributes(r),i=e.dataOptions.getMeasures(r),a=eg(i);return{dataOptions:r,attributes:n,measures:i,dataColumnNamesMapping:a}}function ZX(e,t){const{dataOptions:r,attributes:n,measures:i}=UC(e,t),a=eg(i);return{dataOptions:r,attributes:n,measures:i,dataColumnNamesMapping:a}}const KX=e=>e==="indicator",QX=(e,t)=>e==="scatter"&&"scatterDataTable"in t?t.scatterDataTable.length===0:e==="areamap"&&Sx(t)?t.geoData.length===0:e==="scattermap"&&DC(t)?t.locations.length===0:e==="boxplot"&&c$(t)?t.xValues.length===0:e==="calendar-heatmap"&&Rx(t)?t.values.length===0:"series"in t&&t.series.length===0,Wu=e=>{const{chartType:t,dataSet:r,dataOptions:n,filters:i,highlights:a,styleOptions:o,refreshCounter:l,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:h,onBeforeRender:f,onDataReady:p}=e,{width:g,height:b}=o||{},[v,w]=k.useState(!1),C=gd(t),{themeSettings:T}=ot(),E=k.useMemo(()=>({width:g,height:b}),[g,b]),S=iY(n,t),{dataOptions:P,attributes:R,measures:N,dataColumnNamesMapping:W}=qX(n,t,S),G=R.length===0&&N.length===0,K=k.useMemo(()=>AX(t,S),[t,S]),[Z,O]=YX({dataSet:r,chartDataOptions:P,chartType:t,attributes:R,measures:N,dataColumnNamesMapping:W,filters:i,highlights:a,refreshCounter:l,setIsLoading:w,enabled:!G,loadData:K}),$=k.useMemo(()=>n?sY(t,O,o):null,[n,t,O,o]),X=HX({dataSet:r,data:Z,chartDataOptions:P,chartType:t,isForecastOrTrendChart:S,attributes:R,measures:N,dataColumnNamesMapping:W,onDataReady:p}),B=jX({dataSet:r,chartType:t,chartData:X,internalDataOptions:O,designOptions:$,onBeforeRender:f,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:h,filters:i}),V=k.useCallback(H=>{if(!B)return null;if(!X&&v)return y.jsx(td,{themeSettings:T});if(X&&QX(t,X)||G)return y.jsx(Q0,{iconType:t});if(Tl(t)&&!S){const te=Cl(t);return te.renderer.isCorrectRendererProps(B)?y.jsx(gs,{isVisible:v,children:y.jsx(te.renderer.ChartRendererComponent,I(M({},B),{size:H}))}):null}return t==="scattermap"&&hq(B)?y.jsx(gs,{isVisible:v,children:y.jsx(uq,M({},B))}):t==="indicator"&&rX(B)?y.jsx(gs,{isVisible:v,children:y.jsx(Qq,M({},B))}):WC(t)&&TX(B)?y.jsx(gs,{isVisible:v,children:y.jsx(xX,I(M({},B),{designOptions:M({},B.designOptions),size:H}))}):null},[X,v,T,t,G,S,B]);return B?y.jsx(md,{defaultSize:C,size:E,rerenderOnResize:KX(t),children:V}):null};function YC(e){return e&&typeof e=="object"&&"columns"in e&&j.isArray(e.columns)&&"rows"in e&&j.isArray(e.rows)}var Cr="top",qr="bottom",Xr="right",Tr="left",rg="auto",Sl=[Cr,qr,Xr,Tr],ro="start",Gs="end",JX="clippingParents",qC="viewport",rs="popper",eZ="reference",Y1=Sl.reduce(function(e,t){return e.concat([t+"-"+ro,t+"-"+Gs])},[]),XC=[].concat(Sl,[rg]).reduce(function(e,t){return e.concat([t,t+"-"+ro,t+"-"+Gs])},[]),tZ="beforeRead",rZ="read",nZ="afterRead",iZ="beforeMain",aZ="main",oZ="afterMain",sZ="beforeWrite",lZ="write",uZ="afterWrite",cZ=[tZ,rZ,nZ,iZ,aZ,oZ,sZ,lZ,uZ];function Sn(e){return e?(e.nodeName||"").toLowerCase():null}function Dr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zi(e){var t=Dr(e).Element;return e instanceof t||e instanceof Element}function Ur(e){var t=Dr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ng(e){if(typeof ShadowRoot=="undefined")return!1;var t=Dr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function dZ(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!Ur(a)||!Sn(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var l=i[o];l===!1?a.removeAttribute(o):a.setAttribute(o,l===!0?"":l)}))})}function hZ(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 i=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=o.reduce(function(u,c){return u[c]="",u},{});!Ur(i)||!Sn(i)||(Object.assign(i.style,l),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const fZ={name:"applyStyles",enabled:!0,phase:"write",fn:dZ,effect:hZ,requires:["computeStyles"]};function wn(e){return e.split("-")[0]}var Wi=Math.max,yc=Math.min,no=Math.round;function Wp(){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 ZC(){return!/^((?!chrome|android).)*safari/i.test(Wp())}function io(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&Ur(e)&&(i=e.offsetWidth>0&&no(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&no(n.height)/e.offsetHeight||1);var o=Zi(e)?Dr(e):window,l=o.visualViewport,u=!ZC()&&r,c=(n.left+(u&&l?l.offsetLeft:0))/i,h=(n.top+(u&&l?l.offsetTop:0))/a,f=n.width/i,p=n.height/a;return{width:f,height:p,top:h,right:c+f,bottom:h+p,left:c,x:c,y:h}}function ig(e){var t=io(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 KC(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ng(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Gn(e){return Dr(e).getComputedStyle(e)}function pZ(e){return["table","td","th"].indexOf(Sn(e))>=0}function _i(e){return((Zi(e)?e.ownerDocument:e.document)||window.document).documentElement}function vd(e){return Sn(e)==="html"?e:e.assignedSlot||e.parentNode||(ng(e)?e.host:null)||_i(e)}function q1(e){return!Ur(e)||Gn(e).position==="fixed"?null:e.offsetParent}function mZ(e){var t=/firefox/i.test(Wp()),r=/Trident/i.test(Wp());if(r&&Ur(e)){var n=Gn(e);if(n.position==="fixed")return null}var i=vd(e);for(ng(i)&&(i=i.host);Ur(i)&&["html","body"].indexOf(Sn(i))<0;){var a=Gn(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function El(e){for(var t=Dr(e),r=q1(e);r&&pZ(r)&&Gn(r).position==="static";)r=q1(r);return r&&(Sn(r)==="html"||Sn(r)==="body"&&Gn(r).position==="static")?t:r||mZ(e)||t}function ag(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function As(e,t,r){return Wi(e,yc(t,r))}function gZ(e,t,r){var n=As(e,t,r);return n>r?r:n}function QC(){return{top:0,right:0,bottom:0,left:0}}function JC(e){return Object.assign({},QC(),e)}function eT(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var vZ=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,JC(typeof t!="number"?t:eT(t,Sl))};function yZ(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,l=wn(r.placement),u=ag(l),c=[Tr,Xr].indexOf(l)>=0,h=c?"height":"width";if(!(!a||!o)){var f=vZ(i.padding,r),p=ig(a),g=u==="y"?Cr:Tr,b=u==="y"?qr:Xr,v=r.rects.reference[h]+r.rects.reference[u]-o[u]-r.rects.popper[h],w=o[u]-r.rects.reference[u],C=El(a),T=C?u==="y"?C.clientHeight||0:C.clientWidth||0:0,E=v/2-w/2,S=f[g],P=T-p[h]-f[b],R=T/2-p[h]/2+E,N=As(S,R,P),W=u;r.modifiersData[n]=(t={},t[W]=N,t.centerOffset=N-R,t)}}function bZ(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||KC(t.elements.popper,i)&&(t.elements.arrow=i))}const _Z={name:"arrow",enabled:!0,phase:"main",fn:yZ,effect:bZ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ao(e){return e.split("-")[1]}var wZ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xZ(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:no(r*i)/i||0,y:no(n*i)/i||0}}function X1(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,f=e.isFixed,p=o.x,g=p===void 0?0:p,b=o.y,v=b===void 0?0:b,w=typeof h=="function"?h({x:g,y:v}):{x:g,y:v};g=w.x,v=w.y;var C=o.hasOwnProperty("x"),T=o.hasOwnProperty("y"),E=Tr,S=Cr,P=window;if(c){var R=El(r),N="clientHeight",W="clientWidth";if(R===Dr(r)&&(R=_i(r),Gn(R).position!=="static"&&l==="absolute"&&(N="scrollHeight",W="scrollWidth")),R=R,i===Cr||(i===Tr||i===Xr)&&a===Gs){S=qr;var G=f&&R===P&&P.visualViewport?P.visualViewport.height:R[N];v-=G-n.height,v*=u?1:-1}if(i===Tr||(i===Cr||i===qr)&&a===Gs){E=Xr;var K=f&&R===P&&P.visualViewport?P.visualViewport.width:R[W];g-=K-n.width,g*=u?1:-1}}var Z=Object.assign({position:l},c&&wZ),O=h===!0?xZ({x:g,y:v},Dr(r)):{x:g,y:v};if(g=O.x,v=O.y,u){var $;return Object.assign({},Z,($={},$[S]=T?"0":"",$[E]=C?"0":"",$.transform=(P.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",$))}return Object.assign({},Z,(t={},t[S]=T?v+"px":"",t[E]=C?g+"px":"",t.transform="",t))}function CZ(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,l=r.roundOffsets,u=l===void 0?!0:l,c={placement:wn(t.placement),variation:ao(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,X1(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,X1(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const TZ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:CZ,data:{}};var Cu={passive:!0};function MZ(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,l=o===void 0?!0:o,u=Dr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(h){h.addEventListener("scroll",r.update,Cu)}),l&&u.addEventListener("resize",r.update,Cu),function(){a&&c.forEach(function(h){h.removeEventListener("scroll",r.update,Cu)}),l&&u.removeEventListener("resize",r.update,Cu)}}const SZ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:MZ,data:{}};var EZ={left:"right",right:"left",bottom:"top",top:"bottom"};function ju(e){return e.replace(/left|right|bottom|top/g,function(t){return EZ[t]})}var PZ={start:"end",end:"start"};function Z1(e){return e.replace(/start|end/g,function(t){return PZ[t]})}function og(e){var t=Dr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function sg(e){return io(_i(e)).left+og(e).scrollLeft}function AZ(e,t){var r=Dr(e),n=_i(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,l=0,u=0;if(i){a=i.width,o=i.height;var c=ZC();(c||!c&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:l+sg(e),y:u}}function RZ(e){var t,r=_i(e),n=og(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Wi(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Wi(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+sg(e),u=-n.scrollTop;return Gn(i||r).direction==="rtl"&&(l+=Wi(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:l,y:u}}function lg(e){var t=Gn(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function tT(e){return["html","body","#document"].indexOf(Sn(e))>=0?e.ownerDocument.body:Ur(e)&&lg(e)?e:tT(vd(e))}function Rs(e,t){var r;t===void 0&&(t=[]);var n=tT(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Dr(n),o=i?[a].concat(a.visualViewport||[],lg(n)?n:[]):n,l=t.concat(o);return i?l:l.concat(Rs(vd(o)))}function jp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function OZ(e,t){var r=io(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 K1(e,t,r){return t===qC?jp(AZ(e,r)):Zi(t)?OZ(t,r):jp(RZ(_i(e)))}function kZ(e){var t=Rs(vd(e)),r=["absolute","fixed"].indexOf(Gn(e).position)>=0,n=r&&Ur(e)?El(e):e;return Zi(n)?t.filter(function(i){return Zi(i)&&KC(i,n)&&Sn(i)!=="body"}):[]}function DZ(e,t,r,n){var i=t==="clippingParents"?kZ(e):[].concat(t),a=[].concat(i,[r]),o=a[0],l=a.reduce(function(u,c){var h=K1(e,c,n);return u.top=Wi(h.top,u.top),u.right=yc(h.right,u.right),u.bottom=yc(h.bottom,u.bottom),u.left=Wi(h.left,u.left),u},K1(e,o,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function rT(e){var t=e.reference,r=e.element,n=e.placement,i=n?wn(n):null,a=n?ao(n):null,o=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,u;switch(i){case Cr:u={x:o,y:t.y-r.height};break;case qr:u={x:o,y:t.y+t.height};break;case Xr:u={x:t.x+t.width,y:l};break;case Tr:u={x:t.x-r.width,y:l};break;default:u={x:t.x,y:t.y}}var c=i?ag(i):null;if(c!=null){var h=c==="y"?"height":"width";switch(a){case ro:u[c]=u[c]-(t[h]/2-r[h]/2);break;case Gs:u[c]=u[c]+(t[h]/2-r[h]/2);break}}return u}function Us(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,o=a===void 0?e.strategy:a,l=r.boundary,u=l===void 0?JX:l,c=r.rootBoundary,h=c===void 0?qC:c,f=r.elementContext,p=f===void 0?rs:f,g=r.altBoundary,b=g===void 0?!1:g,v=r.padding,w=v===void 0?0:v,C=JC(typeof w!="number"?w:eT(w,Sl)),T=p===rs?eZ:rs,E=e.rects.popper,S=e.elements[b?T:p],P=DZ(Zi(S)?S:S.contextElement||_i(e.elements.popper),u,h,o),R=io(e.elements.reference),N=rT({reference:R,element:E,strategy:"absolute",placement:i}),W=jp(Object.assign({},E,N)),G=p===rs?W:R,K={top:P.top-G.top+C.top,bottom:G.bottom-P.bottom+C.bottom,left:P.left-G.left+C.left,right:G.right-P.right+C.right},Z=e.modifiersData.offset;if(p===rs&&Z){var O=Z[i];Object.keys(K).forEach(function($){var X=[Xr,qr].indexOf($)>=0?1:-1,B=[Cr,qr].indexOf($)>=0?"y":"x";K[$]+=O[B]*X})}return K}function NZ(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,l=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?XC:u,h=ao(n),f=h?l?Y1:Y1.filter(function(b){return ao(b)===h}):Sl,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var g=p.reduce(function(b,v){return b[v]=Us(e,{placement:v,boundary:i,rootBoundary:a,padding:o})[wn(v)],b},{});return Object.keys(g).sort(function(b,v){return g[b]-g[v]})}function LZ(e){if(wn(e)===rg)return[];var t=ju(e);return[Z1(e),t,Z1(t)]}function IZ(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,l=o===void 0?!0:o,u=r.fallbackPlacements,c=r.padding,h=r.boundary,f=r.rootBoundary,p=r.altBoundary,g=r.flipVariations,b=g===void 0?!0:g,v=r.allowedAutoPlacements,w=t.options.placement,C=wn(w),T=C===w,E=u||(T||!b?[ju(w)]:LZ(w)),S=[w].concat(E).reduce(function(re,oe){return re.concat(wn(oe)===rg?NZ(t,{placement:oe,boundary:h,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):oe)},[]),P=t.rects.reference,R=t.rects.popper,N=new Map,W=!0,G=S[0],K=0;K<S.length;K++){var Z=S[K],O=wn(Z),$=ao(Z)===ro,X=[Cr,qr].indexOf(O)>=0,B=X?"width":"height",V=Us(t,{placement:Z,boundary:h,rootBoundary:f,altBoundary:p,padding:c}),H=X?$?Xr:Tr:$?qr:Cr;P[B]>R[B]&&(H=ju(H));var U=ju(H),te=[];if(a&&te.push(V[O]<=0),l&&te.push(V[H]<=0,V[U]<=0),te.every(function(re){return re})){G=Z,W=!1;break}N.set(Z,te)}if(W)for(var F=b?3:1,Y=function(oe){var le=S.find(function(de){var ce=N.get(de);if(ce)return ce.slice(0,oe).every(function(ve){return ve})});if(le)return G=le,"break"},ne=F;ne>0;ne--){var ie=Y(ne);if(ie==="break")break}t.placement!==G&&(t.modifiersData[n]._skip=!0,t.placement=G,t.reset=!0)}}const $Z={name:"flip",enabled:!0,phase:"main",fn:IZ,requiresIfExists:["offset"],data:{_skip:!1}};function Q1(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 J1(e){return[Cr,Xr,qr,Tr].some(function(t){return e[t]>=0})}function FZ(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Us(t,{elementContext:"reference"}),l=Us(t,{altBoundary:!0}),u=Q1(o,n),c=Q1(l,i,a),h=J1(u),f=J1(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":f})}const zZ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:FZ};function BZ(e,t,r){var n=wn(e),i=[Tr,Cr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],l=a[1];return o=o||0,l=(l||0)*i,[Tr,Xr].indexOf(n)>=0?{x:l,y:o}:{x:o,y:l}}function HZ(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=XC.reduce(function(h,f){return h[f]=BZ(f,t.rects,a),h},{}),l=o[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}const WZ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:HZ};function jZ(e){var t=e.state,r=e.name;t.modifiersData[r]=rT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const VZ={name:"popperOffsets",enabled:!0,phase:"read",fn:jZ,data:{}};function GZ(e){return e==="x"?"y":"x"}function UZ(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,l=o===void 0?!1:o,u=r.boundary,c=r.rootBoundary,h=r.altBoundary,f=r.padding,p=r.tether,g=p===void 0?!0:p,b=r.tetherOffset,v=b===void 0?0:b,w=Us(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:h}),C=wn(t.placement),T=ao(t.placement),E=!T,S=ag(C),P=GZ(S),R=t.modifiersData.popperOffsets,N=t.rects.reference,W=t.rects.popper,G=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,K=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),Z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(R){if(a){var $,X=S==="y"?Cr:Tr,B=S==="y"?qr:Xr,V=S==="y"?"height":"width",H=R[S],U=H+w[X],te=H-w[B],F=g?-W[V]/2:0,Y=T===ro?N[V]:W[V],ne=T===ro?-W[V]:-N[V],ie=t.elements.arrow,re=g&&ie?ig(ie):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:QC(),le=oe[X],de=oe[B],ce=As(0,N[V],re[V]),ve=E?N[V]/2-F-ce-le-K.mainAxis:Y-ce-le-K.mainAxis,Ce=E?-N[V]/2+F+ce+de+K.mainAxis:ne+ce+de+K.mainAxis,ye=t.elements.arrow&&El(t.elements.arrow),J=ye?S==="y"?ye.clientTop||0:ye.clientLeft||0:0,we=($=Z==null?void 0:Z[S])!=null?$:0,Ee=H+ve-we-J,ke=H+Ce-we,$e=As(g?yc(U,Ee):U,H,g?Wi(te,ke):te);R[S]=$e,O[S]=$e-H}if(l){var je,Ue=S==="x"?Cr:Tr,ir=S==="x"?qr:Xr,Pt=R[P],Wt=P==="y"?"height":"width",kt=Pt+w[Ue],Pe=Pt-w[ir],jt=[Cr,Tr].indexOf(C)!==-1,sa=(je=Z==null?void 0:Z[P])!=null?je:0,Kn=jt?kt:Pt-N[Wt]-W[Wt]-sa+K.altAxis,On=jt?Pt+N[Wt]+W[Wt]-sa-K.altAxis:Pe,Ci=g&&jt?gZ(Kn,Pt,On):As(g?Kn:kt,Pt,g?On:Pe);R[P]=Ci,O[P]=Ci-Pt}t.modifiersData[n]=O}}const YZ={name:"preventOverflow",enabled:!0,phase:"main",fn:UZ,requiresIfExists:["offset"]};function qZ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function XZ(e){return e===Dr(e)||!Ur(e)?og(e):qZ(e)}function ZZ(e){var t=e.getBoundingClientRect(),r=no(t.width)/e.offsetWidth||1,n=no(t.height)/e.offsetHeight||1;return r!==1||n!==1}function KZ(e,t,r){r===void 0&&(r=!1);var n=Ur(t),i=Ur(t)&&ZZ(t),a=_i(t),o=io(e,i,r),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Sn(t)!=="body"||lg(a))&&(l=XZ(t)),Ur(t)?(u=io(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=sg(a))),{x:o.left+l.scrollLeft-u.x,y:o.top+l.scrollTop-u.y,width:o.width,height:o.height}}function QZ(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(l){if(!r.has(l)){var u=t.get(l);u&&i(u)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function JZ(e){var t=QZ(e);return cZ.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function eK(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function tK(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var eb={placement:"bottom",modifiers:[],strategy:"absolute"};function tb(){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 rK(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?eb:i;return function(l,u,c){c===void 0&&(c=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},eb,a),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},f=[],p=!1,g={state:h,setOptions:function(C){var T=typeof C=="function"?C(h.options):C;v(),h.options=Object.assign({},a,h.options,T),h.scrollParents={reference:Zi(l)?Rs(l):l.contextElement?Rs(l.contextElement):[],popper:Rs(u)};var E=JZ(tK([].concat(n,h.options.modifiers)));return h.orderedModifiers=E.filter(function(S){return S.enabled}),b(),g.update()},forceUpdate:function(){if(!p){var C=h.elements,T=C.reference,E=C.popper;if(tb(T,E)){h.rects={reference:KZ(T,El(E),h.options.strategy==="fixed"),popper:ig(E)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(K){return h.modifiersData[K.name]=Object.assign({},K.data)});for(var S=0;S<h.orderedModifiers.length;S++){if(h.reset===!0){h.reset=!1,S=-1;continue}var P=h.orderedModifiers[S],R=P.fn,N=P.options,W=N===void 0?{}:N,G=P.name;typeof R=="function"&&(h=R({state:h,options:W,name:G,instance:g})||h)}}}},update:eK(function(){return new Promise(function(w){g.forceUpdate(),w(h)})}),destroy:function(){v(),p=!0}};if(!tb(l,u))return g;g.setOptions(c).then(function(w){!p&&c.onFirstUpdate&&c.onFirstUpdate(w)});function b(){h.orderedModifiers.forEach(function(w){var C=w.name,T=w.options,E=T===void 0?{}:T,S=w.effect;if(typeof S=="function"){var P=S({state:h,name:C,instance:g,options:E}),R=function(){};f.push(P||R)}})}function v(){f.forEach(function(w){return w()}),f=[]}return g}}var nK=[SZ,VZ,TZ,fZ,WZ,$Z,YZ,_Z,zZ],iK=rK({defaultModifiers:nK});function aK(e){return dt("MuiPopper",e)}ht("MuiPopper",["root"]);function oK(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 bc(e){return typeof e=="function"?e():e}function yd(e){return e.nodeType!==void 0}function sK(e){return!yd(e)}const lK=e=>{const{classes:t}=e;return St({root:["root"]},aK,t)},uK={},cK=Q.forwardRef(function(t,r){var V;const B=t,{anchorEl:n,children:i,direction:a,disablePortal:o,modifiers:l,open:u,placement:c,popperOptions:h,popperRef:f,slotProps:p={},slots:g={},TransitionProps:b,ownerState:v}=B,w=xe(B,["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"]),C=Q.useRef(null),T=vr(C,r),E=Q.useRef(null),S=vr(E,f),P=Q.useRef(S);fi(()=>{P.current=S},[S]),Q.useImperativeHandle(f,()=>E.current,[]);const R=oK(c,a),[N,W]=Q.useState(R),[G,K]=Q.useState(bc(n));Q.useEffect(()=>{E.current&&E.current.forceUpdate()}),Q.useEffect(()=>{n&&K(bc(n))},[n]),fi(()=>{if(!G||!u)return;const H=F=>{W(F.placement)};if(process.env.NODE_ENV!=="production"&&G&&yd(G)&&G.nodeType===1){const F=G.getBoundingClientRect();process.env.NODE_ENV!=="test"&&F.top===0&&F.left===0&&F.right===0&&F.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(`
338
+ `))}let U=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{H(F)}}];l!=null&&(U=U.concat(l)),h&&h.modifiers!=null&&(U=U.concat(h.modifiers));const te=iK(G,C.current,I(M({placement:R},h),{modifiers:U}));return P.current(te),()=>{te.destroy(),P.current(null)}},[G,o,l,u,h,R]);const Z={placement:N};b!==null&&(Z.TransitionProps=b);const O=lK(t),$=(V=g.root)!=null?V:"div",X=f0({elementType:$,externalSlotProps:p.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:T},ownerState:t,className:O.root});return me.jsx($,I(M({},X),{children:typeof i=="function"?i(Z):i}))}),nT=Q.forwardRef(function(t,r){const K=t,{anchorEl:n,children:i,container:a,direction:o="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:c,open:h,placement:f="bottom",popperOptions:p=uK,popperRef:g,style:b,transition:v=!1,slotProps:w={},slots:C={}}=K,T=xe(K,["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"]),[E,S]=Q.useState(!0),P=()=>{S(!1)},R=()=>{S(!0)};if(!u&&!h&&(!v||E))return null;let N;if(a)N=a;else if(n){const Z=bc(n);N=Z&&yd(Z)?Or(Z).body:Or(null).body}const W=!h&&u&&(!v||E)?"none":void 0,G=v?{in:h,onEnter:P,onExited:R}:void 0;return me.jsx(Bs,{disablePortal:l,container:N,children:me.jsx(cK,I(M({anchorEl:n,direction:o,disablePortal:l,modifiers:c,ref:r,open:v?!E:h,placement:f,popperOptions:p,popperRef:g,slotProps:w,slots:C},T),{style:M({position:"fixed",top:0,left:0,display:W},b),TransitionProps:G,children:i}))})});process.env.NODE_ENV!=="production"&&(nT.propTypes={anchorEl:qn(_.oneOfType([jn,_.object,_.func]),e=>{if(e.open){const t=bc(e.anchorEl);if(t&&yd(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(`
339
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||sK(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(`
340
+ `))}return null}),children:_.oneOfType([_.node,_.func]),container:_.oneOfType([jn,_.func]),direction:_.oneOf(["ltr","rtl"]),disablePortal:_.bool,keepMounted:_.bool,modifiers:_.arrayOf(_.shape({data:_.object,effect:_.func,enabled:_.bool,fn:_.func,name:_.any,options:_.object,phase:_.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:_.arrayOf(_.string),requiresIfExists:_.arrayOf(_.string)})),open:_.bool.isRequired,placement:_.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:_.shape({modifiers:_.array,onFirstUpdate:_.func,placement:_.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:_.oneOf(["absolute","fixed"])}),popperRef:ul,slotProps:_.shape({root:_.oneOfType([_.func,_.object])}),slots:_.shape({root:_.elementType}),transition:_.bool});const dK=De(nT,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Pl=Q.forwardRef(function(t,r){var W;const n=Lc(),N=wt({props:t,name:"MuiPopper"}),{anchorEl:a,component:o,components:l,componentsProps:u,container:c,disablePortal:h,keepMounted:f,modifiers:p,open:g,placement:b,popperOptions:v,popperRef:w,transition:C,slots:T,slotProps:E}=N,S=xe(N,["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"]),P=(W=T==null?void 0:T.root)!=null?W:l==null?void 0:l.Root,R=M({anchorEl:a,container:c,disablePortal:h,keepMounted:f,modifiers:p,open:g,placement:b,popperOptions:v,popperRef:w,transition:C},S);return me.jsx(dK,I(M({as:o,direction:n?"rtl":"ltr",slots:{root:P},slotProps:E!=null?E:u},R),{ref:r}))});process.env.NODE_ENV!=="production"&&(Pl.propTypes={anchorEl:_.oneOfType([jn,_.object,_.func]),children:_.oneOfType([_.node,_.func]),component:_.elementType,components:_.shape({Root:_.elementType}),componentsProps:_.shape({root:_.oneOfType([_.func,_.object])}),container:_.oneOfType([jn,_.func]),disablePortal:_.bool,keepMounted:_.bool,modifiers:_.arrayOf(_.shape({data:_.object,effect:_.func,enabled:_.bool,fn:_.func,name:_.any,options:_.object,phase:_.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:_.arrayOf(_.string),requiresIfExists:_.arrayOf(_.string)})),open:_.bool.isRequired,placement:_.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:_.shape({modifiers:_.array,onFirstUpdate:_.func,placement:_.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:_.oneOf(["absolute","fixed"])}),popperRef:ul,slotProps:_.shape({root:_.oneOfType([_.func,_.object])}),slots:_.shape({root:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),transition:_.bool});function hK(e){return dt("MuiTooltip",e)}const Ot=ht("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function fK(e){return Math.round(e*1e5)/1e5}const pK=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:a}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${Ie(a.split("-")[0])}`],arrow:["arrow"]};return St(o,hK,t)},mK=De(Pl,{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]}})($t(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Ot.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ot.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ot.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ot.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ot.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ot.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ot.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ot.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),gK=De("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${Ie(r.placement.split("-")[0])}`]]}})($t(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:yt(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,[`.${Ot.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ot.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ot.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ot.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${fK(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Ot.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ot.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Ot.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ot.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Ot.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ot.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Ot.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ot.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ot.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ot.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),vK=De("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})($t(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:yt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Tu=!1;const rb=new Xc;let ns={x:0,y:0};function Mu(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const bd=Q.forwardRef(function(t,r){var Hl,ca,Wl;const n=wt({props:t,name:"MuiTooltip"}),Bl=n,{arrow:i=!1,children:a,classes:o,components:l={},componentsProps:u={},describeChild:c=!1,disableFocusListener:h=!1,disableHoverListener:f=!1,disableInteractive:p=!1,disableTouchListener:g=!1,enterDelay:b=100,enterNextDelay:v=0,enterTouchDelay:w=700,followCursor:C=!1,id:T,leaveDelay:E=0,leaveTouchDelay:S=1500,onClose:P,onOpen:R,open:N,placement:W="bottom",PopperComponent:G,PopperProps:K={},slotProps:Z={},slots:O={},title:$,TransitionComponent:X,TransitionProps:B}=Bl,V=xe(Bl,["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"]),H=Q.isValidElement(a)?a:me.jsx("span",{children:a}),U=fl(),te=Lc(),[F,Y]=Q.useState(),[ne,ie]=Q.useState(null),re=Q.useRef(!1),oe=p||C,le=$i(),de=$i(),ce=$i(),ve=$i(),[Ce,ye]=l0({controlled:N,default:!1,name:"Tooltip",state:"open"});let J=Ce;if(process.env.NODE_ENV!=="production"){const{current:Le}=Q.useRef(N!==void 0);Q.useEffect(()=>{F&&F.disabled&&!Le&&$!==""&&F.tagName.toLowerCase()==="button"&&console.warn(["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(`
341
+ `))},[$,F,Le])}const we=qc(T),Ee=Q.useRef(),ke=Bn(()=>{Ee.current!==void 0&&(document.body.style.WebkitUserSelect=Ee.current,Ee.current=void 0),ve.clear()});Q.useEffect(()=>ke,[ke]);const $e=Le=>{rb.clear(),Tu=!0,ye(!0),R&&!J&&R(Le)},je=Bn(Le=>{rb.start(800+E,()=>{Tu=!1}),ye(!1),P&&J&&P(Le),le.start(U.transitions.duration.shortest,()=>{re.current=!1})}),Ue=Le=>{re.current&&Le.type!=="touchstart"||(F&&F.removeAttribute("title"),de.clear(),ce.clear(),b||Tu&&v?de.start(Tu?v:b,()=>{$e(Le)}):$e(Le))},ir=Le=>{de.clear(),ce.start(E,()=>{je(Le)})},[,Pt]=Q.useState(!1),Wt=Le=>{tc(Le.target)||(Pt(!1),ir(Le))},kt=Le=>{F||Y(Le.currentTarget),tc(Le.target)&&(Pt(!0),Ue(Le))},Pe=Le=>{re.current=!0;const Sr=H.props;Sr.onTouchStart&&Sr.onTouchStart(Le)},jt=Le=>{Pe(Le),ce.clear(),le.clear(),ke(),Ee.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ve.start(w,()=>{document.body.style.WebkitUserSelect=Ee.current,Ue(Le)})},sa=Le=>{H.props.onTouchEnd&&H.props.onTouchEnd(Le),ke(),ce.start(S,()=>{je(Le)})};Q.useEffect(()=>{if(!J)return;function Le(Sr){Sr.key==="Escape"&&je(Sr)}return document.addEventListener("keydown",Le),()=>{document.removeEventListener("keydown",Le)}},[je,J]);const Kn=vr(fo(H),Y,r);!$&&$!==0&&(J=!1);const On=Q.useRef(),Ci=Le=>{const Sr=H.props;Sr.onMouseMove&&Sr.onMouseMove(Le),ns={x:Le.clientX,y:Le.clientY},On.current&&On.current.update()},Ti={},la=typeof $=="string";c?(Ti.title=!J&&la&&!f?$:null,Ti["aria-describedby"]=J?we:null):(Ti["aria-label"]=la?$:null,Ti["aria-labelledby"]=J&&!la?we:null);const or=M(I(M(M(M({},Ti),V),H.props),{className:He(V.className,H.props.className),onTouchStart:Pe,ref:Kn}),C?{onMouseMove:Ci}:{});process.env.NODE_ENV!=="production"&&(or["data-mui-internal-clone-element"]=!0,Q.useEffect(()=>{F&&!F.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(`
342
+ `))},[F]));const Mi={};g||(or.onTouchStart=jt,or.onTouchEnd=sa),f||(or.onMouseOver=Mu(Ue,or.onMouseOver),or.onMouseLeave=Mu(ir,or.onMouseLeave),oe||(Mi.onMouseOver=Ue,Mi.onMouseLeave=ir)),h||(or.onFocus=Mu(kt,or.onFocus),or.onBlur=Mu(Wt,or.onBlur),oe||(Mi.onFocus=kt,Mi.onBlur=Wt)),process.env.NODE_ENV!=="production"&&H.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${H.props.title}\` or the Tooltip component.`].join(`
343
+ `));const an=I(M({},n),{isRtl:te,arrow:i,disableInteractive:oe,placement:W,PopperComponentProp:G,touch:re.current}),Qt=typeof Z.popper=="function"?Z.popper(an):Z.popper,Il=Q.useMemo(()=>{var Sr,jl;let Le=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return(Sr=K.popperOptions)!=null&&Sr.modifiers&&(Le=Le.concat(K.popperOptions.modifiers)),(jl=Qt==null?void 0:Qt.popperOptions)!=null&&jl.modifiers&&(Le=Le.concat(Qt.popperOptions.modifiers)),I(M(M({},K.popperOptions),Qt==null?void 0:Qt.popperOptions),{modifiers:Le})},[ne,K.popperOptions,Qt==null?void 0:Qt.popperOptions]),No=pK(an),kn=typeof Z.transition=="function"?Z.transition(an):Z.transition,ua={slots:M({popper:l.Popper,transition:(Hl=l.Transition)!=null?Hl:X,tooltip:l.Tooltip,arrow:l.Arrow},O),slotProps:{arrow:(ca=Z.arrow)!=null?ca:u.arrow,popper:M(M({},K),Qt!=null?Qt:u.popper),tooltip:(Wl=Z.tooltip)!=null?Wl:u.tooltip,transition:M(M({},B),kn!=null?kn:u.transition)}},[Xd,$l]=Xt("popper",{elementType:mK,externalForwardedProps:ua,ownerState:an,className:He(No.popper,K==null?void 0:K.className)}),[Fl,zl]=Xt("transition",{elementType:zs,externalForwardedProps:ua,ownerState:an}),[Zd,Kd]=Xt("tooltip",{elementType:gK,className:No.tooltip,externalForwardedProps:ua,ownerState:an}),[Qd,Jd]=Xt("arrow",{elementType:vK,className:No.arrow,externalForwardedProps:ua,ownerState:an,ref:ie});return me.jsxs(Q.Fragment,{children:[Q.cloneElement(H,or),me.jsx(Xd,I(M(M({as:G!=null?G:Pl,placement:W,anchorEl:C?{getBoundingClientRect:()=>({top:ns.y,left:ns.x,right:ns.x,bottom:ns.y,width:0,height:0})}:F,popperRef:On,open:F?J:!1,id:we,transition:!0},Mi),$l),{popperOptions:Il,children:({TransitionProps:Le})=>me.jsx(Fl,I(M(M({timeout:U.transitions.duration.shorter},Le),zl),{children:me.jsxs(Zd,I(M({},Kd),{children:[$,i?me.jsx(Qd,M({},Jd)):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(bd.propTypes={arrow:_.bool,children:ta.isRequired,classes:_.object,className:_.string,components:_.shape({Arrow:_.elementType,Popper:_.elementType,Tooltip:_.elementType,Transition:_.elementType}),componentsProps:_.shape({arrow:_.object,popper:_.object,tooltip:_.object,transition:_.object}),describeChild:_.bool,disableFocusListener:_.bool,disableHoverListener:_.bool,disableInteractive:_.bool,disableTouchListener:_.bool,enterDelay:_.number,enterNextDelay:_.number,enterTouchDelay:_.number,followCursor:_.bool,id:_.string,leaveDelay:_.number,leaveTouchDelay:_.number,onClose:_.func,onOpen:_.func,open:_.bool,placement:_.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"]),PopperComponent:_.elementType,PopperProps:_.object,slotProps:_.shape({arrow:_.oneOfType([_.func,_.object]),popper:_.oneOfType([_.func,_.object]),tooltip:_.oneOfType([_.func,_.object]),transition:_.oneOfType([_.func,_.object])}),slots:_.shape({arrow:_.elementType,popper:_.elementType,tooltip:_.elementType,transition:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),title:_.node,TransitionComponent:_.elementType,TransitionProps:_.object});var iT={exports:{}};/*!
344
+ Copyright (c) 2018 Jed Watson.
345
+ Licensed under the MIT License (MIT), see
346
+ http://jedwatson.github.io/classnames
347
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(a=i(a,n(l)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var l in a)t.call(a,l)&&a[l]&&(o=i(o,l));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(iT);var yK=iT.exports;const Ys=y.getDefaultExportFromCjs(yK);function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bt.apply(null,arguments)}function ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Un(e){"@babel/helpers - typeof";return Un=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},Un(e)}function bK(e,t){if(Un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aT(e){var t=bK(e,"string");return Un(t)=="symbol"?t:t+""}function nb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,aT(n.key),n)}}function pt(e,t,r){return t&&nb(e.prototype,t),r&&nb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vp(e,t){return Vp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Vp(e,t)}function Ht(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vp(e,t)}function fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nr(e,t){if(t&&(Un(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fe(e)}function Ge(e){return Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ge(e)}function ue(e,t,r){return(t=aT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vn=function(t,r,n,i,a,o,l,u){if(process.env.NODE_ENV!=="production"&&r===void 0)throw new Error("invariant requires an error message argument");if(!t){var c;if(r===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[n,i,a,o,l,u],f=0;c=new Error("Invariant Violation: "+r.replace(/%s/g,function(){return h[f++]}))}throw c.framesToPop=1,c}},Su=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},_K=Array.isArray,Kr=_K,wK=typeof Su=="object"&&Su&&Su.Object===Object&&Su,oT=wK,xK=oT,CK=typeof self=="object"&&self&&self.Object===Object&&self,TK=xK||CK||Function("return this")(),Rn=TK,MK=Rn,SK=MK.Symbol,Al=SK,ib=Al,sT=Object.prototype,EK=sT.hasOwnProperty,PK=sT.toString,is=ib?ib.toStringTag:void 0;function AK(e){var t=EK.call(e,is),r=e[is];try{e[is]=void 0;var n=!0}catch(a){}var i=PK.call(e);return n&&(t?e[is]=r:delete e[is]),i}var RK=AK,OK=Object.prototype,kK=OK.toString;function DK(e){return kK.call(e)}var NK=DK,ab=Al,LK=RK,IK=NK,$K="[object Null]",FK="[object Undefined]",ob=ab?ab.toStringTag:void 0;function zK(e){return e==null?e===void 0?FK:$K:ob&&ob in Object(e)?LK(e):IK(e)}var ia=zK;function BK(e){return e!=null&&typeof e=="object"}var wi=BK,HK=ia,WK=wi,jK="[object Symbol]";function VK(e){return typeof e=="symbol"||WK(e)&&HK(e)==jK}var _d=VK,GK=Kr,UK=_d,YK=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qK=/^\w*$/;function XK(e,t){if(GK(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||UK(e)?!0:qK.test(e)||!YK.test(e)||t!=null&&e in Object(t)}var ZK=XK;function KK(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var aa=KK,QK=ia,JK=aa,eQ="[object AsyncFunction]",tQ="[object Function]",rQ="[object GeneratorFunction]",nQ="[object Proxy]";function iQ(e){if(!JK(e))return!1;var t=QK(e);return t==tQ||t==rQ||t==eQ||t==nQ}var lT=iQ,aQ=Rn,oQ=aQ["__core-js_shared__"],sQ=oQ,af=sQ,sb=function(){var e=/[^.]+$/.exec(af&&af.keys&&af.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function lQ(e){return!!sb&&sb in e}var uQ=lQ,cQ=Function.prototype,dQ=cQ.toString;function hQ(e){if(e!=null){try{return dQ.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var uT=hQ,fQ=lT,pQ=uQ,mQ=aa,gQ=uT,vQ=/[\\^$.*+?()[\]{}|]/g,yQ=/^\[object .+?Constructor\]$/,bQ=Function.prototype,_Q=Object.prototype,wQ=bQ.toString,xQ=_Q.hasOwnProperty,CQ=RegExp("^"+wQ.call(xQ).replace(vQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function TQ(e){if(!mQ(e)||pQ(e))return!1;var t=fQ(e)?CQ:yQ;return t.test(gQ(e))}var MQ=TQ;function SQ(e,t){return e==null?void 0:e[t]}var EQ=SQ,PQ=MQ,AQ=EQ;function RQ(e,t){var r=AQ(e,t);return PQ(r)?r:void 0}var oa=RQ,OQ=oa,kQ=OQ(Object,"create"),wd=kQ,lb=wd;function DQ(){this.__data__=lb?lb(null):{},this.size=0}var NQ=DQ;function LQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var IQ=LQ,$Q=wd,FQ="__lodash_hash_undefined__",zQ=Object.prototype,BQ=zQ.hasOwnProperty;function HQ(e){var t=this.__data__;if($Q){var r=t[e];return r===FQ?void 0:r}return BQ.call(t,e)?t[e]:void 0}var WQ=HQ,jQ=wd,VQ=Object.prototype,GQ=VQ.hasOwnProperty;function UQ(e){var t=this.__data__;return jQ?t[e]!==void 0:GQ.call(t,e)}var YQ=UQ,qQ=wd,XQ="__lodash_hash_undefined__";function ZQ(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=qQ&&t===void 0?XQ:t,this}var KQ=ZQ,QQ=NQ,JQ=IQ,eJ=WQ,tJ=YQ,rJ=KQ;function So(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])}}So.prototype.clear=QQ;So.prototype.delete=JQ;So.prototype.get=eJ;So.prototype.has=tJ;So.prototype.set=rJ;var nJ=So;function iJ(){this.__data__=[],this.size=0}var aJ=iJ;function oJ(e,t){return e===t||e!==e&&t!==t}var cT=oJ,sJ=cT;function lJ(e,t){for(var r=e.length;r--;)if(sJ(e[r][0],t))return r;return-1}var xd=lJ,uJ=xd,cJ=Array.prototype,dJ=cJ.splice;function hJ(e){var t=this.__data__,r=uJ(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():dJ.call(t,r,1),--this.size,!0}var fJ=hJ,pJ=xd;function mJ(e){var t=this.__data__,r=pJ(t,e);return r<0?void 0:t[r][1]}var gJ=mJ,vJ=xd;function yJ(e){return vJ(this.__data__,e)>-1}var bJ=yJ,_J=xd;function wJ(e,t){var r=this.__data__,n=_J(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var xJ=wJ,CJ=aJ,TJ=fJ,MJ=gJ,SJ=bJ,EJ=xJ;function Eo(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])}}Eo.prototype.clear=CJ;Eo.prototype.delete=TJ;Eo.prototype.get=MJ;Eo.prototype.has=SJ;Eo.prototype.set=EJ;var Cd=Eo,PJ=oa,AJ=Rn,RJ=PJ(AJ,"Map"),ug=RJ,ub=nJ,OJ=Cd,kJ=ug;function DJ(){this.size=0,this.__data__={hash:new ub,map:new(kJ||OJ),string:new ub}}var NJ=DJ;function LJ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var IJ=LJ,$J=IJ;function FJ(e,t){var r=e.__data__;return $J(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Td=FJ,zJ=Td;function BJ(e){var t=zJ(this,e).delete(e);return this.size-=t?1:0,t}var HJ=BJ,WJ=Td;function jJ(e){return WJ(this,e).get(e)}var VJ=jJ,GJ=Td;function UJ(e){return GJ(this,e).has(e)}var YJ=UJ,qJ=Td;function XJ(e,t){var r=qJ(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var ZJ=XJ,KJ=NJ,QJ=HJ,JJ=VJ,eee=YJ,tee=ZJ;function Po(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])}}Po.prototype.clear=KJ;Po.prototype.delete=QJ;Po.prototype.get=JJ;Po.prototype.has=eee;Po.prototype.set=tee;var dT=Po,hT=dT,ree="Expected a function";function cg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ree);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(cg.Cache||hT),r}cg.Cache=hT;var nee=cg,iee=nee,aee=500;function oee(e){var t=iee(e,function(n){return r.size===aee&&r.clear(),n}),r=t.cache;return t}var see=oee,lee=see,uee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cee=/\\(\\)?/g,dee=lee(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(uee,function(r,n,i,a){t.push(i?a.replace(cee,"$1"):n||r)}),t}),hee=dee;function fee(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var pee=fee,cb=Al,mee=pee,gee=Kr,vee=_d,yee=1/0,db=cb?cb.prototype:void 0,hb=db?db.toString:void 0;function fT(e){if(typeof e=="string")return e;if(gee(e))return mee(e,fT)+"";if(vee(e))return hb?hb.call(e):"";var t=e+"";return t=="0"&&1/e==-yee?"-0":t}var bee=fT,_ee=bee;function wee(e){return e==null?"":_ee(e)}var pT=wee,xee=Kr,Cee=ZK,Tee=hee,Mee=pT;function See(e,t){return xee(e)?e:Cee(e,t)?[e]:Tee(Mee(e))}var Md=See,Eee=_d,Pee=1/0;function Aee(e){if(typeof e=="string"||Eee(e))return e;var t=e+"";return t=="0"&&1/e==-Pee?"-0":t}var dg=Aee,Ree=Md,Oee=dg;function kee(e,t){t=Ree(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Oee(t[r++])];return r&&r==n?e:void 0}var mT=kee,Dee=oa,Nee=function(){try{var e=Dee(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),gT=Nee,fb=gT;function Lee(e,t,r){t=="__proto__"&&fb?fb(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var vT=Lee,Iee=vT,$ee=cT,Fee=Object.prototype,zee=Fee.hasOwnProperty;function Bee(e,t,r){var n=e[t];(!(zee.call(e,t)&&$ee(n,r))||r===void 0&&!(t in e))&&Iee(e,t,r)}var hg=Bee,Hee=9007199254740991,Wee=/^(?:0|[1-9]\d*)$/;function jee(e,t){var r=typeof e;return t=t==null?Hee:t,!!t&&(r=="number"||r!="symbol"&&Wee.test(e))&&e>-1&&e%1==0&&e<t}var fg=jee,Vee=hg,Gee=Md,Uee=fg,pb=aa,Yee=dg;function qee(e,t,r,n){if(!pb(e))return e;t=Gee(t,e);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var u=Yee(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var h=l[u];c=n?n(h,u,l):void 0,c===void 0&&(c=pb(h)?h:Uee(t[i+1])?[]:{})}Vee(l,u,c),l=l[u]}return e}var Xee=qee,Zee=mT,Kee=Xee,Qee=Md;function Jee(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],l=Zee(e,o);r(l,o)&&Kee(a,Qee(o,e),l)}return a}var ete=Jee;function tte(e,t){return e!=null&&t in Object(e)}var rte=tte,nte=ia,ite=wi,ate="[object Arguments]";function ote(e){return ite(e)&&nte(e)==ate}var ste=ote,mb=ste,lte=wi,yT=Object.prototype,ute=yT.hasOwnProperty,cte=yT.propertyIsEnumerable,dte=mb(function(){return arguments}())?mb:function(e){return lte(e)&&ute.call(e,"callee")&&!cte.call(e,"callee")},Sd=dte,hte=9007199254740991;function fte(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=hte}var pg=fte,pte=Md,mte=Sd,gte=Kr,vte=fg,yte=pg,bte=dg;function _te(e,t,r){t=pte(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=bte(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&yte(i)&&vte(o,i)&&(gte(e)||mte(e)))}var wte=_te,xte=rte,Cte=wte;function Tte(e,t){return e!=null&&Cte(e,t,xte)}var Mte=Tte,Ste=ete,Ete=Mte;function Pte(e,t){return Ste(e,t,function(r,n){return Ete(e,n)})}var Ate=Pte;function Rte(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Ed=Rte,gb=Al,Ote=Sd,kte=Kr,vb=gb?gb.isConcatSpreadable:void 0;function Dte(e){return kte(e)||Ote(e)||!!(vb&&e&&e[vb])}var Nte=Dte,Lte=Ed,Ite=Nte;function bT(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=Ite),i||(i=[]);++a<o;){var l=e[a];t>0&&r(l)?t>1?bT(l,t-1,r,n,i):Lte(i,l):n||(i[i.length]=l)}return i}var _T=bT,$te=_T;function Fte(e){var t=e==null?0:e.length;return t?$te(e,1):[]}var zte=Fte;function Bte(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 Hte=Bte,Wte=Hte,yb=Math.max;function jte(e,t,r){return t=yb(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=yb(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=r(o),Wte(e,this,l)}}var Vte=jte;function Gte(e){return function(){return e}}var Ute=Gte;function Yte(e){return e}var wT=Yte,qte=Ute,bb=gT,Xte=wT,Zte=bb?function(e,t){return bb(e,"toString",{configurable:!0,enumerable:!1,value:qte(t),writable:!0})}:Xte,Kte=Zte,Qte=800,Jte=16,ere=Date.now;function tre(e){var t=0,r=0;return function(){var n=ere(),i=Jte-(n-r);if(r=n,i>0){if(++t>=Qte)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var rre=tre,nre=Kte,ire=rre,are=ire(nre),ore=are,sre=zte,lre=Vte,ure=ore;function cre(e){return ure(lre(e,void 0,sre),e+"")}var dre=cre,hre=Ate,fre=dre,pre=fre(function(e,t){return e==null?{}:hre(e,t)}),vs=pre;function _b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_b(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tr(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 xb=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),of=function(){return Math.random().toString(36).substring(7).split("").join(".")},ji={INIT:"@@redux/INIT"+of(),REPLACE:"@@redux/REPLACE"+of(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+of()}};function xT(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 mre(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(yre(e))return"date";if(vre(e))return"error";var r=gre(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 gre(e){return typeof e.constructor=="function"?e.constructor.name:null}function vre(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function yre(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function ri(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=mre(e)),t}function CT(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"?tr(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"?tr(1):"Expected the enhancer to be a function. Instead, received: '"+ri(r)+"'");return r(CT)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?tr(2):"Expected the root reducer to be a function. Instead, received: '"+ri(e)+"'");var i=e,a=t,o=[],l=o,u=!1;function c(){l===o&&(l=o.slice())}function h(){if(u)throw new Error(process.env.NODE_ENV==="production"?tr(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 a}function f(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?tr(4):"Expected the listener to be a function. Instead, received: '"+ri(v)+"'");if(u)throw new Error(process.env.NODE_ENV==="production"?tr(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 c(),l.push(v),function(){if(w){if(u)throw new Error(process.env.NODE_ENV==="production"?tr(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,c();var T=l.indexOf(v);l.splice(T,1),o=null}}}function p(v){if(!xT(v))throw new Error(process.env.NODE_ENV==="production"?tr(7):"Actions must be plain objects. Instead, the actual type was: '"+ri(v)+"'. 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 v.type=="undefined")throw new Error(process.env.NODE_ENV==="production"?tr(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(u)throw new Error(process.env.NODE_ENV==="production"?tr(9):"Reducers may not dispatch actions.");try{u=!0,a=i(a,v)}finally{u=!1}for(var w=o=l,C=0;C<w.length;C++){var T=w[C];T()}return v}function g(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?tr(10):"Expected the nextReducer to be a function. Instead, received: '"+ri(v));i=v,p({type:ji.REPLACE})}function b(){var v,w=f;return v={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(process.env.NODE_ENV==="production"?tr(11):"Expected the observer to be an object. Instead, received: '"+ri(T)+"'");function E(){T.next&&T.next(h())}E();var S=w(E);return{unsubscribe:S}}},v[xb]=function(){return this},v}return p({type:ji.INIT}),n={dispatch:p,subscribe:f,getState:h,replaceReducer:g},n[xb]=b,n}function Gp(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function bre(e,t,r,n){var i=Object.keys(t),a=r&&r.type===ji.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.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(!xT(e))return"The "+a+' has unexpected type of "'+ri(e)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var o=Object.keys(e).filter(function(l){return!t.hasOwnProperty(l)&&!n[l]});if(o.forEach(function(l){n[l]=!0}),!(r&&r.type===ji.REPLACE)&&o.length>0)return"Unexpected "+(o.length>1?"keys":"key")+" "+('"'+o.join('", "')+'" found in '+a+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function _re(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:ji.INIT});if(typeof n=="undefined")throw new Error(process.env.NODE_ENV==="production"?tr(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:ji.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?tr(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+ji.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 wre(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];process.env.NODE_ENV!=="production"&&typeof e[i]=="undefined"&&Gp('No reducer provided for key "'+i+'"'),typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),o;process.env.NODE_ENV!=="production"&&(o={});var l;try{_re(r)}catch(u){l=u}return function(c,h){if(c===void 0&&(c={}),l)throw l;if(process.env.NODE_ENV!=="production"){var f=bre(c,r,h,o);f&&Gp(f)}for(var p=!1,g={},b=0;b<a.length;b++){var v=a[b],w=r[v],C=c[v],T=w(C,h);if(typeof T=="undefined"){var E=h&&h.type;throw new Error(process.env.NODE_ENV==="production"?tr(14):"When called with an action of type "+(E?'"'+String(E)+'"':"(unknown type)")+', the slice reducer for key "'+v+'" 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[v]=T,p=p||T!==C}return p=p||a.length!==Object.keys(c).length,p?g:c}}function Cb(e,t){return function(){return t(e.apply(this,arguments))}}function TT(e,t){if(typeof e=="function")return Cb(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?tr(16):"bindActionCreators expected an object or a function, but instead received: '"+ri(e)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=Cb(i,t))}return r}function _c(){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,i){return function(){return n(i.apply(void 0,arguments))}})}function xre(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(process.env.NODE_ENV==="production"?tr(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(u){return u(o)});return a=_c.apply(void 0,l)(i.dispatch),wb(wb({},i),{},{dispatch:a})}}}function Tb(){}process.env.NODE_ENV!=="production"&&typeof Tb.name=="string"&&Tb.name!=="isCrushed"&&Gp('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var Cre=Cd;function Tre(){this.__data__=new Cre,this.size=0}var Mre=Tre;function Sre(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Ere=Sre;function Pre(e){return this.__data__.get(e)}var Are=Pre;function Rre(e){return this.__data__.has(e)}var Ore=Rre,kre=Cd,Dre=ug,Nre=dT,Lre=200;function Ire(e,t){var r=this.__data__;if(r instanceof kre){var n=r.__data__;if(!Dre||n.length<Lre-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Nre(n)}return r.set(e,t),this.size=r.size,this}var $re=Ire,Fre=Cd,zre=Mre,Bre=Ere,Hre=Are,Wre=Ore,jre=$re;function Ao(e){var t=this.__data__=new Fre(e);this.size=t.size}Ao.prototype.clear=zre;Ao.prototype.delete=Bre;Ao.prototype.get=Hre;Ao.prototype.has=Wre;Ao.prototype.set=jre;var Vre=Ao;function Gre(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var MT=Gre,Ure=hg,Yre=vT;function qre(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var l=t[a],u=n?n(r[l],e[l],l,r,e):void 0;u===void 0&&(u=e[l]),i?Yre(r,l,u):Ure(r,l,u)}return r}var Pd=qre;function Xre(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Zre=Xre,qs={exports:{}};function Kre(){return!1}var Qre=Kre;(function(e,t){var r=Rn,n=Qre,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,l=o?r.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||n;e.exports=c})(qs,qs.exports);var Jre=ia,ene=pg,tne=wi,rne="[object Arguments]",nne="[object Array]",ine="[object Boolean]",ane="[object Date]",one="[object Error]",sne="[object Function]",lne="[object Map]",une="[object Number]",cne="[object Object]",dne="[object RegExp]",hne="[object Set]",fne="[object String]",pne="[object WeakMap]",mne="[object ArrayBuffer]",gne="[object DataView]",vne="[object Float32Array]",yne="[object Float64Array]",bne="[object Int8Array]",_ne="[object Int16Array]",wne="[object Int32Array]",xne="[object Uint8Array]",Cne="[object Uint8ClampedArray]",Tne="[object Uint16Array]",Mne="[object Uint32Array]",mt={};mt[vne]=mt[yne]=mt[bne]=mt[_ne]=mt[wne]=mt[xne]=mt[Cne]=mt[Tne]=mt[Mne]=!0;mt[rne]=mt[nne]=mt[mne]=mt[ine]=mt[gne]=mt[ane]=mt[one]=mt[sne]=mt[lne]=mt[une]=mt[cne]=mt[dne]=mt[hne]=mt[fne]=mt[pne]=!1;function Sne(e){return tne(e)&&ene(e.length)&&!!mt[Jre(e)]}var Ene=Sne;function Pne(e){return function(t){return e(t)}}var mg=Pne,Xs={exports:{}};(function(e,t){var r=oT,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,l=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch(c){}}();e.exports=l})(Xs,Xs.exports);var Ane=Ene,Rne=mg,Mb=Xs.exports,Sb=Mb&&Mb.isTypedArray,One=Sb?Rne(Sb):Ane,ST=One,kne=Zre,Dne=Sd,Nne=Kr,Lne=qs.exports,Ine=fg,$ne=ST,Fne=Object.prototype,zne=Fne.hasOwnProperty;function Bne(e,t){var r=Nne(e),n=!r&&Dne(e),i=!r&&!n&&Lne(e),a=!r&&!n&&!i&&$ne(e),o=r||n||i||a,l=o?kne(e.length,String):[],u=l.length;for(var c in e)(t||zne.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ine(c,u)))&&l.push(c);return l}var ET=Bne,Hne=Object.prototype;function Wne(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Hne;return e===r}var Ad=Wne;function jne(e,t){return function(r){return e(t(r))}}var PT=jne,Vne=PT,Gne=Vne(Object.keys,Object),Une=Gne,Yne=Ad,qne=Une,Xne=Object.prototype,Zne=Xne.hasOwnProperty;function Kne(e){if(!Yne(e))return qne(e);var t=[];for(var r in Object(e))Zne.call(e,r)&&r!="constructor"&&t.push(r);return t}var gg=Kne,Qne=lT,Jne=pg;function eie(e){return e!=null&&Jne(e.length)&&!Qne(e)}var Rl=eie,tie=ET,rie=gg,nie=Rl;function iie(e){return nie(e)?tie(e):rie(e)}var Rd=iie,aie=Pd,oie=Rd;function sie(e,t){return e&&aie(t,oie(t),e)}var lie=sie;function uie(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var cie=uie,die=aa,hie=Ad,fie=cie,pie=Object.prototype,mie=pie.hasOwnProperty;function gie(e){if(!die(e))return fie(e);var t=hie(e),r=[];for(var n in e)n=="constructor"&&(t||!mie.call(e,n))||r.push(n);return r}var vie=gie,yie=ET,bie=vie,_ie=Rl;function wie(e){return _ie(e)?yie(e,!0):bie(e)}var vg=wie,xie=Pd,Cie=vg;function Tie(e,t){return e&&xie(t,Cie(t),e)}var Mie=Tie,Up={exports:{}};(function(e,t){var r=Rn,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a?r.Buffer:void 0,l=o?o.allocUnsafe:void 0;function u(c,h){if(h)return c.slice();var f=c.length,p=l?l(f):new c.constructor(f);return c.copy(p),p}e.exports=u})(Up,Up.exports);function Sie(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var AT=Sie;function Eie(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var Pie=Eie;function Aie(){return[]}var RT=Aie,Rie=Pie,Oie=RT,kie=Object.prototype,Die=kie.propertyIsEnumerable,Eb=Object.getOwnPropertySymbols,Nie=Eb?function(e){return e==null?[]:(e=Object(e),Rie(Eb(e),function(t){return Die.call(e,t)}))}:Oie,yg=Nie,Lie=Pd,Iie=yg;function $ie(e,t){return Lie(e,Iie(e),t)}var Fie=$ie,zie=PT,Bie=zie(Object.getPrototypeOf,Object),OT=Bie,Hie=Ed,Wie=OT,jie=yg,Vie=RT,Gie=Object.getOwnPropertySymbols,Uie=Gie?function(e){for(var t=[];e;)Hie(t,jie(e)),e=Wie(e);return t}:Vie,kT=Uie,Yie=Pd,qie=kT;function Xie(e,t){return Yie(e,qie(e),t)}var Zie=Xie,Kie=Ed,Qie=Kr;function Jie(e,t,r){var n=t(e);return Qie(e)?n:Kie(n,r(e))}var DT=Jie,eae=DT,tae=yg,rae=Rd;function nae(e){return eae(e,rae,tae)}var iae=nae,aae=DT,oae=kT,sae=vg;function lae(e){return aae(e,sae,oae)}var uae=lae,cae=oa,dae=Rn,hae=cae(dae,"DataView"),fae=hae,pae=oa,mae=Rn,gae=pae(mae,"Promise"),vae=gae,yae=oa,bae=Rn,_ae=yae(bae,"Set"),wae=_ae,xae=oa,Cae=Rn,Tae=xae(Cae,"WeakMap"),Mae=Tae,Yp=fae,qp=ug,Xp=vae,Zp=wae,Kp=Mae,NT=ia,Ro=uT,Pb="[object Map]",Sae="[object Object]",Ab="[object Promise]",Rb="[object Set]",Ob="[object WeakMap]",kb="[object DataView]",Eae=Ro(Yp),Pae=Ro(qp),Aae=Ro(Xp),Rae=Ro(Zp),Oae=Ro(Kp),Li=NT;(Yp&&Li(new Yp(new ArrayBuffer(1)))!=kb||qp&&Li(new qp)!=Pb||Xp&&Li(Xp.resolve())!=Ab||Zp&&Li(new Zp)!=Rb||Kp&&Li(new Kp)!=Ob)&&(Li=function(e){var t=NT(e),r=t==Sae?e.constructor:void 0,n=r?Ro(r):"";if(n)switch(n){case Eae:return kb;case Pae:return Pb;case Aae:return Ab;case Rae:return Rb;case Oae:return Ob}return t});var Ol=Li,kae=Object.prototype,Dae=kae.hasOwnProperty;function Nae(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Dae.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Lae=Nae,Iae=Rn,$ae=Iae.Uint8Array,Fae=$ae,Db=Fae;function zae(e){var t=new e.constructor(e.byteLength);return new Db(t).set(new Db(e)),t}var bg=zae,Bae=bg;function Hae(e,t){var r=t?Bae(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Wae=Hae,jae=/\w*$/;function Vae(e){var t=new e.constructor(e.source,jae.exec(e));return t.lastIndex=e.lastIndex,t}var Gae=Vae,Nb=Al,Lb=Nb?Nb.prototype:void 0,Ib=Lb?Lb.valueOf:void 0;function Uae(e){return Ib?Object(Ib.call(e)):{}}var Yae=Uae,qae=bg;function Xae(e,t){var r=t?qae(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Zae=Xae,Kae=bg,Qae=Wae,Jae=Gae,eoe=Yae,toe=Zae,roe="[object Boolean]",noe="[object Date]",ioe="[object Map]",aoe="[object Number]",ooe="[object RegExp]",soe="[object Set]",loe="[object String]",uoe="[object Symbol]",coe="[object ArrayBuffer]",doe="[object DataView]",hoe="[object Float32Array]",foe="[object Float64Array]",poe="[object Int8Array]",moe="[object Int16Array]",goe="[object Int32Array]",voe="[object Uint8Array]",yoe="[object Uint8ClampedArray]",boe="[object Uint16Array]",_oe="[object Uint32Array]";function woe(e,t,r){var n=e.constructor;switch(t){case coe:return Kae(e);case roe:case noe:return new n(+e);case doe:return Qae(e,r);case hoe:case foe:case poe:case moe:case goe:case voe:case yoe:case boe:case _oe:return toe(e,r);case ioe:return new n;case aoe:case loe:return new n(e);case ooe:return Jae(e);case soe:return new n;case uoe:return eoe(e)}}var xoe=woe,Coe=aa,$b=Object.create,Toe=function(){function e(){}return function(t){if(!Coe(t))return{};if($b)return $b(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Moe=Toe,Soe=Moe,Eoe=OT,Poe=Ad;function Aoe(e){return typeof e.constructor=="function"&&!Poe(e)?Soe(Eoe(e)):{}}var Roe=Aoe,Ooe=Ol,koe=wi,Doe="[object Map]";function Noe(e){return koe(e)&&Ooe(e)==Doe}var Loe=Noe,Ioe=Loe,$oe=mg,Fb=Xs.exports,zb=Fb&&Fb.isMap,Foe=zb?$oe(zb):Ioe,zoe=Foe,Boe=Ol,Hoe=wi,Woe="[object Set]";function joe(e){return Hoe(e)&&Boe(e)==Woe}var Voe=joe,Goe=Voe,Uoe=mg,Bb=Xs.exports,Hb=Bb&&Bb.isSet,Yoe=Hb?Uoe(Hb):Goe,qoe=Yoe,Xoe=Vre,Zoe=MT,Koe=hg,Qoe=lie,Joe=Mie,ese=Up.exports,tse=AT,rse=Fie,nse=Zie,ise=iae,ase=uae,ose=Ol,sse=Lae,lse=xoe,use=Roe,cse=Kr,dse=qs.exports,hse=zoe,fse=aa,pse=qoe,mse=Rd,gse=vg,vse=1,yse=2,bse=4,LT="[object Arguments]",_se="[object Array]",wse="[object Boolean]",xse="[object Date]",Cse="[object Error]",IT="[object Function]",Tse="[object GeneratorFunction]",Mse="[object Map]",Sse="[object Number]",$T="[object Object]",Ese="[object RegExp]",Pse="[object Set]",Ase="[object String]",Rse="[object Symbol]",Ose="[object WeakMap]",kse="[object ArrayBuffer]",Dse="[object DataView]",Nse="[object Float32Array]",Lse="[object Float64Array]",Ise="[object Int8Array]",$se="[object Int16Array]",Fse="[object Int32Array]",zse="[object Uint8Array]",Bse="[object Uint8ClampedArray]",Hse="[object Uint16Array]",Wse="[object Uint32Array]",ct={};ct[LT]=ct[_se]=ct[kse]=ct[Dse]=ct[wse]=ct[xse]=ct[Nse]=ct[Lse]=ct[Ise]=ct[$se]=ct[Fse]=ct[Mse]=ct[Sse]=ct[$T]=ct[Ese]=ct[Pse]=ct[Ase]=ct[Rse]=ct[zse]=ct[Bse]=ct[Hse]=ct[Wse]=!0;ct[Cse]=ct[IT]=ct[Ose]=!1;function Vu(e,t,r,n,i,a){var o,l=t&vse,u=t&yse,c=t&bse;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!fse(e))return e;var h=cse(e);if(h){if(o=sse(e),!l)return tse(e,o)}else{var f=ose(e),p=f==IT||f==Tse;if(dse(e))return ese(e,l);if(f==$T||f==LT||p&&!i){if(o=u||p?{}:use(e),!l)return u?nse(e,Joe(o,e)):rse(e,Qoe(o,e))}else{if(!ct[f])return i?e:{};o=lse(e,f,l)}}a||(a=new Xoe);var g=a.get(e);if(g)return g;a.set(e,o),pse(e)?e.forEach(function(w){o.add(Vu(w,t,r,w,e,a))}):hse(e)&&e.forEach(function(w,C){o.set(C,Vu(w,t,r,C,e,a))});var b=c?u?ase:ise:u?gse:mse,v=h?void 0:b(e);return Zoe(v||e,function(w,C){v&&(C=w,w=e[C]),Koe(o,C,Vu(w,t,r,C,e,a))}),o}var jse=Vu,Vse=jse,Gse=4;function Use(e){return Vse(e,Gse)}var Yse=Use;function qse(e,t){return e<t}var Eu=function(){function e(t,r){ft(this,e),this._items=t||[],this._size=this._items.length,this._comparator=r||qse,this._heapify()}return pt(e,[{key:"empty",value:function(){return this._size===0}},{key:"pop",value:function(){if(this._size!==0){var r=this._items[0],n=this._items.pop();return this._size--,this._size>0&&(this._items[0]=n,this._sinkDown(0)),r}}},{key:"push",value:function(r){this._items[this._size++]=r,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 r=Math.floor((this._size+1)/2);r>=0;r--)this._sinkDown(r)}},{key:"_bubbleUp",value:function(r){for(var n=this._items[r];r>0;){var i=Math.floor((r+1)/2)-1,a=this._items[i];if(this._comparator(a,n))return;this._items[i]=n,this._items[r]=a,r=i}}},{key:"_sinkDown",value:function(r){for(var n=this._items[r];;){var i=2*(r+1)-1,a=2*(r+1),o=-1;if(i<this._size){var l=this._items[i];this._comparator(l,n)&&(o=i)}if(a<this._size){var u=this._items[a];this._comparator(u,n)&&(o===-1||this._comparator(u,this._items[o]))&&(o=a)}if(o===-1)return;this._items[r]=this._items[o],this._items[o]=n,r=o}}}]),e}(),FT=function(){function e(){ft(this,e),this._valueToPositionMap={},this._size=0,this._smallValues=new Eu([],this._smallerComparator),this._largeValues=new Eu([],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 pt(e,[{key:"getSize",value:function(){return this._size}},{key:"getValuePosition",value:function(r){return this._valueToPositionMap[r]===void 0?null:this._valueToPositionMap[r]}},{key:"getNewPositionForValue",value:function(r){vn(this._valueToPositionMap[r]===void 0,"Shouldn't try to find new position for value already stored in BufferSet");var n=this._size;return this._size++,this._pushToHeaps(n,r),this._valueToPositionMap[r]=n,n}},{key:"replaceFurthestValuePosition",value:function(r,n,i){if(vn(this._valueToPositionMap[i]===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 a=this._smallValues.peek().value,o=this._largeValues.peek().value;if(a>=r&&o<=n)return null;var l;r-a>o-n?(l=a,this._smallValues.pop()):(l=o,this._largeValues.pop());var u=this._valueToPositionMap[l];return delete this._valueToPositionMap[l],this._valueToPositionMap[i]=u,this._pushToHeaps(u,i),u}},{key:"_pushToHeaps",value:function(r,n){var i={position:r,value:n};this._smallValues.push(i),this._largeValues.push(i)}},{key:"_cleanHeaps",value:function(){this._cleanHeap(this._smallValues),this._cleanHeap(this._largeValues);var r=Math.min(this._smallValues.size(),this._largeValues.size()),n=Math.max(this._smallValues.size(),this._largeValues.size());n>10*r&&this._recreateHeaps()}},{key:"_recreateHeaps",value:function(){for(var r=this._smallValues.size()<this._largeValues.size()?this._smallValues:this._largeValues,n=new Eu([],this._smallerComparator),i=new Eu([],this._greaterComparator);!r.empty();){var a=r.pop();this._valueToPositionMap[a.value]!==void 0&&(n.push(a),i.push(a))}this._smallValues=n,this._largeValues=i}},{key:"_cleanHeap",value:function(r){for(;!r.empty()&&this._valueToPositionMap[r.peek().value]===void 0;)r.pop()}},{key:"_smallerComparator",value:function(r,n){return r.value<n.value}},{key:"_greaterComparator",value:function(r,n){return r.value>n.value}}]),e}(),hr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},sf=function(t){return Math.floor(t/2)},Xse=hr.Int32Array||function(e){for(var t=[],r=e-1;r>=0;--r)t[r]=0;return t};function Zse(e){for(var t=1;t<e;)t*=2;return t}var Kse=function(){function e(t){ft(this,e),this._size=t.length,this._half=Zse(this._size),this._heap=new Xse(2*this._half);var r;for(r=0;r<this._size;++r)this._heap[this._half+r]=t[r];for(r=this._half-1;r>0;--r)this._heap[r]=this._heap[2*r]+this._heap[2*r+1]}return pt(e,[{key:"set",value:function(r,n){vn(0<=r&&r<this._size,"Index out of range %s",r);var i=this._half+r;for(this._heap[i]=n,i=sf(i);i!==0;i=sf(i))this._heap[i]=this._heap[2*i]+this._heap[2*i+1]}},{key:"get",value:function(r){vn(0<=r&&r<this._size,"Index out of range %s",r);var n=this._half+r;return this._heap[n]}},{key:"getSize",value:function(){return this._size}},{key:"sumUntil",value:function(r){if(vn(0<=r&&r<this._size+1,"Index out of range %s",r),r===0)return 0;for(var n=this._half+r-1,i=this._heap[n];n!==1;n=sf(n))n%2===1&&(i+=this._heap[n-1]);return i}},{key:"sumTo",value:function(r){return vn(0<=r&&r<this._size,"Index out of range %s",r),this.sumUntil(r+1)}},{key:"sum",value:function(r,n){return vn(r<=n,"Begin must precede end"),this.sumUntil(n)-this.sumUntil(r)}},{key:"greatestLowerBound",value:function(r){if(r<0)return-1;var n=1;if(this._heap[n]<=r)return this._size;for(;n<this._half;){var i=this._heap[2*n];r<i?n=2*n:(n=2*n+1,r-=i)}return n-this._half}},{key:"greatestStrictLowerBound",value:function(r){if(r<=0)return-1;var n=1;if(this._heap[n]<r)return this._size;for(;n<this._half;){var i=this._heap[2*n];r<=i?n=2*n:(n=2*n+1,r-=i)}return n-this._half}},{key:"leastUpperBound",value:function(r){return this.greatestStrictLowerBound(r)+1}},{key:"leastStrictUpperBound",value:function(r){return this.greatestLowerBound(r)+1}}],[{key:"uniform",value:function(r,n){for(var i=[],a=r-1;a>=0;--a)i[a]=n;return new e(i)}},{key:"empty",value:function(r){return e.uniform(r,0)}}]),e}();function Zs(e,t){if(e===t)return!0;if(Un(e)!=="object"||e===null||Un(t)!=="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),a=0;a<r.length;a++)if(!i(r[a])||e[r[a]]!==t[r[a]])return!1;return!0}var Oe={FIXED:"fixed",FIXED_RIGHT:"fixedRight",SCROLLABLE:"scrollable"};function Qp(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Qse(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
348
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function Qse(e,t){if(e){if(typeof e=="string")return Wb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wb(e,t)}}function Wb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lf(e){var t=e.props,r=t.align,n=t.allowCellsRecycling,i=t.cellClassName,a=t.columnKey,o=t.flexGrow,l=t.fixed,u=t.fixedRight,c=t.maxWidth,h=t.minWidth,f=t.isReorderable,p=t.isResizable,g=t.pureRendering,b=t.width;return{align:r,allowCellsRecycling:n,cellClassName:i,columnKey:a,flexGrow:o,fixed:l,fixedRight:u,maxWidth:c,minWidth:h,isReorderable:f,isResizable:p,pureRendering:g,width:b}}function jb(e,t){e.cell.push(t.props.cell),e.footer.push(t.props.footer),e.header.push(t.props.header)}function Jp(e){var t,r;return e!=null&&(t=e.props)!==null&&t!==void 0&&t.fixed?Oe.FIXED:e!=null&&(r=e.props)!==null&&r!==void 0&&r.fixedRight?Oe.FIXED_RIGHT:Oe.SCROLLABLE}function Ks(){var e;return e={},ue(e,Oe.FIXED,[]),ue(e,Oe.SCROLLABLE,[]),ue(e,Oe.FIXED_RIGHT,[]),e}function Jse(){return{groupHeader:[],header:[],cell:[],footer:[]}}function Vb(e){var t=Ks(),r=Qp(e),n;try{for(r.s();!(n=r.n()).done;){var i=n.value,a=Jp(i);t[a].push(i)}}catch(l){r.e(l)}finally{r.f()}var o=[];return o.push.apply(o,t[Oe.FIXED]),o.push.apply(o,t[Oe.SCROLLABLE]),o.push.apply(o,t[Oe.FIXED_RIGHT]),o}function Gb(e,t){return t===Oe.FIXED?e[Oe.FIXED].length:t===Oe.SCROLLABLE?e[Oe.FIXED].length+e[Oe.SCROLLABLE].length:e[Oe.FIXED].length+e[Oe.SCROLLABLE].length+e[Oe.FIXED_RIGHT].length}function ele(e){var t,r,n=[];k.Children.forEach(e,function(g,b){g!=null&&(vn(g.type.__TableColumnGroup__||g.type.__TableColumn__,"child type should be <FixedDataTableColumn /> or <FixedDataTableColumnGroup />"),n.push(g))});var i=Ks(),a=Ks(),o=Jse(),l=(t=(r=n[0])===null||r===void 0?void 0:r.type.__TableColumnGroup__)!==null&&t!==void 0?t:!1;if(l)(function(){var g=0,b=Qp(Vb(n)),v;try{var w=function(){var T=v.value,E=Jp(T),S=lf(T);S.index=Gb(a,E),a[E].push(S),o.groupHeader.push(T.props.header),k.Children.forEach(T.props.children,function(P){var R=lf(P);R.index=g++,R.groupIdx=S.index,i[E].push(R),jb(o,P)})};for(b.s();!(v=b.n()).done;)w()}catch(C){b.e(C)}finally{b.f()}})();else{var u=Qp(Vb(n)),c;try{for(u.s();!(c=u.n()).done;){var h=c.value,f=Jp(h),p=lf(h);p.index=Gb(i,f),i[f].push(p),jb(o,h)}}catch(g){u.e(g)}finally{u.f()}}return{columnGroupElements:a,columnElements:i,elementTemplates:o,useGroupHeader:l}}function Od(e,t,r){return e<t?t:e>r?r:e}var wc="NOT_FOUND";function tle(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:wc},put:function(n,i){t={key:n,value:i}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function rle(e,t){var r=[];function n(l){var u=r.findIndex(function(h){return t(l,h.key)});if(u>-1){var c=r[u];return u>0&&(r.splice(u,1),r.unshift(c)),c.value}return wc}function i(l,u){n(l)===wc&&(r.unshift({key:l,value:u}),r.length>e&&r.pop())}function a(){return r}function o(){r=[]}return{get:n,put:i,getEntries:a,clear:o}}var nle=function(t,r){return t===r};function ile(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var i=r.length,a=0;a<i;a++)if(!e(r[a],n[a]))return!1;return!0}}function ale(e,t){var r=typeof t=="object"?t:{equalityCheck:t},n=r.equalityCheck,i=n===void 0?nle:n,a=r.maxSize,o=a===void 0?1:a,l=r.resultEqualityCheck,u=ile(i),c=o===1?tle(u):rle(o,u);function h(){var f=c.get(arguments);if(f===wc){if(f=e.apply(null,arguments),l){var p=c.getEntries(),g=p.find(function(b){return l(b.value,f)});g&&(f=g.value)}c.put(arguments,f)}return f}return h.clearCache=function(){return c.clear()},h}function ole(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 sle(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 i=function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];var c=0,h,f={memoizeOptions:void 0},p=l.pop();if(typeof p=="object"&&(f=p,p=l.pop()),typeof p!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof p+"]");var g=f,b=g.memoizeOptions,v=b===void 0?r:b,w=Array.isArray(v)?v:[v],C=ole(l),T=e.apply(void 0,[function(){return c++,p.apply(null,arguments)}].concat(w)),E=e(function(){for(var P=[],R=C.length,N=0;N<R;N++)P.push(C[N].apply(null,arguments));return h=T.apply(null,P),h});return Object.assign(E,{resultFunc:p,memoizedResultFunc:T,dependencies:C,lastResult:function(){return h},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),E};return i}var kd=sle(ale),Zn=kd;function lle(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ule(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
349
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function ule(e,t){if(e){if(typeof e=="string")return Ub(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ub(e,t)}}function Ub(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var zT=[],cle={},_g={memoizeOptions:{maxSize:12}},Gu=kd(function(e){return e||zT},function(e){return e.reduce(function(t,r){return t+r.props.width},0)},_g),Xa=kd(function(e){return e||zT},function(e){return e.reduce(function(t,r){return t+r.width},0)},_g);function BT(e){return Xa(e.fixed)+Xa(e.fixedRight)+Xa(e.scrollable)}var dle=kd(function(e){return e||cle},function(e){var t=Array.prototype.concat.call(e.fixed,e.scrollable,e.fixedRight),r=0,n=lle(t),i;try{for(n.s();!(i=n.n()).done;){var a=i.value;r+=a.flexGrow||0}}catch(o){n.e(o)}finally{n.f()}return r},_g),hle=1,fle=3,ple=6,oi={HIDDEN:"hidden",JOINT_SCROLLBARS:"JOINT_SCROLLBARS",VISIBLE:"visible"};function mle(e,t,r,n,i,a,o){var l=t.cellGroupWrapperHeight,u=t.footerHeight,c=t.headerHeight,h=t.groupHeaderHeight,f=l?0:2*hle,p=u+c+h+f,g=i.height,b=i.maxHeight,v=i.useMaxHeight,w=i.width,C=Math.round(v?b:g),T=C-p,E=gle(e,n,w,o),S=T,P=T;switch(E){case oi.VISIBLE:{S-=a,P-=a;break}case oi.JOINT_SCROLLBARS:{S-=a;break}}return{bufferRowCount:vle(P,r),minAvailableHeight:Math.max(S,0),maxAvailableHeight:Math.max(P,0),reservedHeight:p,scrollStateX:E}}function gle(e,t,r,n){var i=t.overflowX,a=t.showScrollbarX,o=BT(e);return i==="hidden"||a===!1?oi.HIDDEN:o>r?oi.VISIBLE:o>r-n?oi.JOINT_SCROLLBARS:oi.HIDDEN}function vle(e,t){var r=t.bufferRowCount,n=t.rowHeight,i=t.subRowHeight;if(r!==void 0)return r;var a=n+i,o=Math.ceil(e/a)+1;return Od(Math.floor(o/2),fle,ple)}var wg=Zn([function(e){return e.columnElements},function(e){return e.elementHeights},function(e){return e.rowSettings},function(e){return e.scrollFlags},function(e){return e.tableSize},function(e){return e.scrollbarXHeight},function(e){return e.scrollbarYWidth}],mle);function yle(e,t,r){var n=r.overflowY,i=r.showScrollbarY,a=n!=="hidden"&&i!==!1,o=e.minAvailableHeight,l=e.maxAvailableHeight,u=e.scrollStateX,c=!1,h=!1;u===oi.VISIBLE&&(h=!0),a&&t>l&&(c=!0),c&&u===oi.JOINT_SCROLLBARS&&(h=!0);var f=l;return h&&(f=o),{availableHeight:f,scrollEnabledX:h,scrollEnabledY:c}}var Ki=Zn([wg,function(e){return e.scrollContentHeight},function(e){return e.scrollFlags}],yle);function zi(e,t){var r=e.rowSettings,n=e.getInternal(),i=n.storedHeights,a=n.rowOffsetIntervalTree,o=r.rowHeightGetter,l=r.subRowHeightGetter,u=o(t)+l(t),c=i[t];return u!==c&&(a.set(t,u),i[t]=u,e.scrollContentHeight+=u-c),i[t]}function Yb(e,t,r){return t.scrollToRow!==void 0&&t.scrollToRow!==null&&(!r||t.scrollToRow!==r.scrollToRow)?ble(e,t.scrollToRow):t.scrollTop!==void 0&&t.scrollTop!==null&&(!r||t.scrollTop!==r.scrollTop)?em(e,t.scrollTop):{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1}}function em(e,t){var r=Ki(e),n=r.availableHeight,i=e.rowSettings,a=e.scrollContentHeight,o=e.getInternal(),l=o.rowOffsetIntervalTree,u=i.rowsCount;if(e.rowSettings.rowHeightGetter!=null&&e.isVerticalScrollExact){for(var c=e.getInternal(),h=c.rowUntilOffsetsAreExact;h<u;)zi(e,h++);e.getInternal().rowUntilOffsetsAreExact=u}if(u===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};var f=0,p=0,g=void 0;if(!(t<=0))if(t>=a-n)f=void 0,g=u-1;else{var b=l.greatestLowerBound(t);f=Od(b,0,Math.max(u-1,0));var v=l.sumUntil(f);p=v-t}return{firstIndex:f,firstOffset:p,lastIndex:g,changed:!0}}function ble(e,t){var r=Ki(e),n=r.availableHeight,i=e.rowSettings,a=e.scrollY,o=e.getInternal(),l=o.rowOffsetIntervalTree,u=o.storedHeights,c=i.rowsCount;if(c===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};t=Od(t,0,Math.max(c-1,0)),zi(e,t);var h=l.sumUntil(t),f=h+u[t],p=t,g=void 0;if(!(h<a))if(a+n<f)p=void 0,g=t;else return{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1};return{firstIndex:p,firstOffset:0,lastIndex:g,changed:!0}}function _le(e){return e==null}var Os=_le;function wle(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}var xle=wle,Cle=/\s/;function Tle(e){for(var t=e.length;t--&&Cle.test(e.charAt(t)););return t}var Mle=Tle,Sle=Mle,Ele=/^\s+/;function Ple(e){return e&&e.slice(0,Sle(e)+1).replace(Ele,"")}var Ale=Ple,Rle=Ale,qb=aa,Ole=_d,Xb=NaN,kle=/^[-+]0x[0-9a-f]+$/i,Dle=/^0b[01]+$/i,Nle=/^0o[0-7]+$/i,Lle=parseInt;function Ile(e){if(typeof e=="number")return e;if(Ole(e))return Xb;if(qb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qb(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Rle(e);var r=Dle.test(e);return r||Nle.test(e)?Lle(e.slice(2),r?2:8):kle.test(e)?Xb:+e}var xg=Ile,$le=xle,uf=xg;function Fle(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=uf(r),r=r===r?r:0),t!==void 0&&(t=uf(t),t=t===t?t:0),$le(uf(e),t,r)}var Dd=Fle,zle=Ed,Ble=_T,Hle=AT,Wle=Kr;function jle(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return zle(Wle(r)?Hle(r):[r],Ble(t,1))}var Zb=jle;function Kb(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Vle(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
350
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function Vle(e,t){if(e){if(typeof e=="string")return Qb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qb(e,t)}}function Qb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gle(e,t,r,n,i){var a=r?i:0,o=n-a,l=Ule(e,t,o),u=l.columnGroupElements,c=l.columnElements,h=Jb(c),f=h.fixed,p=h.fixedRight,g=h.scrollable,b=Jb(u),v=b.fixed,w=b.fixedRight,C=b.scrollable,T=Xa(f),E=Xa(p),S=Xa(g),P=o-T-E,R=Math.max(0,T+E+S-o);return{columnGroupProps:Zb(v,C,w),columnProps:Zb(f,g,p),availableScrollWidth:P,fixedColumns:f,fixedRightColumns:p,scrollableColumns:g,fixedColumnGroups:v,fixedRightColumnGroups:w,scrollableColumnGroups:C,maxScrollX:R}}function Ule(e,t,r){var n=Ks(),i=Ks(),a=BT(t),o=dle(t),l=Math.max(r-a,0),u=[];for(var c in t){var h=t[c],f=0,p=0,g=Kb(h),b;try{for(g.s();!(b=g.n()).done;){var v=b.value,w=v.flexGrow||0,C=0;w&&(C=Math.floor(w*l/o));var T=v.width+C;o-=w,l-=C;var E=bt({},v,{width:T,offset:f});f+=T,u[v.groupIdx]=T+(u[v.groupIdx]||0),i[c][p]=E,p++}}catch($){g.e($)}finally{g.f()}}for(var S in e){var P=e[S],R=0,N=0,W=Kb(P),G;try{for(W.s();!(G=W.n()).done;){var K=G.value,Z=u[K.index],O=bt({},K,{width:Z,offset:R});R+=Z,n[S][N]=O,N++}}catch($){W.e($)}finally{W.f()}}return{columnGroupElements:n,columnElements:i}}function Jb(e){return{fixed:e.fixed,fixedRight:e.fixedRight,scrollable:e.scrollable}}var kl=Zn([function(e){return e.columnGroupElements},function(e){return e.columnElements},function(e){return Ki(e).scrollEnabledY},function(e){return e.tableSize.width},function(e){return e.scrollbarYWidth}],Gle);function Yle(e,t,r){var n=t.scrollLeft,i=e.scrollX;n!==void 0&&(!r||n!==r.scrollLeft)&&(i=n),i=qle(e,t,r.scrollToColumn,i);var a=kl(e),o=a.maxScrollX;i=Dd(i,0,o),bt(e,{maxScrollX:o,scrollX:i})}function qle(e,t,r,n){var i=t.scrollToColumn;if(Os(i))return n;var a=kl(e),o=a.availableScrollWidth,l=a.fixedColumns,u=a.scrollableColumns,c=l.length,h=u.length,f=h===0,p=i===r,g=i<c,b=i>=c+h;if(p||g||b||f)return n;for(var v=Math.min(i-c,u.length-1),w=0,C=0;C<v;++C)w+=u[C].width;var T=u[v].width,E=w+T-o;return n<E?E:n>w?w:n}var e_={initialize:Yle};function Xle(e,t,r,n,i,a,o){var l=i.availableHeight,u=i.scrollEnabledX,c=r;u&&(c+=o);var h=Math.min(l,n),f=a?h:l,p=f+c,g=f;t<p&&(g=t-c);var b=a?n:Math.max(n,l),v=b+c;t&&(v=Math.max(t,v));var w=e.footerHeight,C=e.groupHeaderHeight,T=e.headerHeight,E=C+T,S=E+g,P=S+w,R=Math.max(0,S-E);return{bodyHeight:h,bodyOffsetTop:E,componentHeight:p,contentHeight:v,footOffsetTop:S,scrollbarXOffsetTop:P,scrollbarYHeight:R,visibleRowsHeight:g}}var ja=Zn([function(e){return e.elementHeights},function(e){return e.tableSize.ownerHeight},function(e){return wg(e).reservedHeight},function(e){return e.scrollContentHeight},Ki,function(e){return e.tableSize.useMaxHeight},function(e){return e.scrollbarXHeight}],Xle);function as(e,t){var r=t_(e,t),n=e.rowSettings,i=e.scrollContentHeight,a=n.rowsCount,o=ja(e),l=o.bodyHeight,u=i-l,c;u===0?(r.firstViewportIdx>0&&(r=t_(e,{firstOffset:0,lastIndex:a-1})),c=0):c=r.firstOffset;var h=r.firstViewportIdx,f=r.endViewportIdx;Zle(e,r,e.scrolling);var p=0;a>0&&(p=e.rowOffsets[r.firstViewportIdx]-c),p=Dd(p,0,u),bt(e,{firstRowIndex:h,firstRowOffset:c,endRowIndex:f,maxScrollY:u,scrollY:p})}function t_(e,t){var r=wg(e),n=r.bufferRowCount,i=r.maxAvailableHeight,a=e.rowSettings.rowsCount;if(a===0)return{endBufferIdx:0,endViewportIdx:0,firstBufferIdx:0,firstOffset:0,firstViewportIdx:0};var o=t.firstIndex,l=t.firstOffset,u=t.lastIndex;(o>=a||u>=a)&&(u=a-1);var c=1,h=o,f=l;u!==void 0&&(c=-1,h=u,f=0);for(var p=h,g=p;p<a&&p>=0&&f<i;)f+=zi(e,p),g=p,p+=c;var b=!1;if(f<i&&p===a&&u===void 0)for(b=!0,p=o-1;p>=0&&f<i;)f+=zi(e,p),h=p,--p;var v=Math.min(h,g),w=Math.max(v-n,0);for(p=w;p<v;p++)zi(e,p);var C=Math.max(h,g)+1,T=Math.min(C+n,a);for(p=C;p<T;p++)zi(e,p);var E=Ki(e),S=E.availableHeight;if(u!==void 0||b){l=l+Math.min(S-f,0);var P=e.getInternal(),R=P.storedHeights;-1*l>=R[v]&&(v+=1,l+=R[v])}return{endBufferIdx:T,endViewportIdx:C,firstBufferIdx:w,firstOffset:l,firstViewportIdx:v}}function Zle(e,t,r){var n=e.getInternal(),i=n.rowBufferSet,a=n.rowOffsetIntervalTree,o=n.storedHeights,l=t.endBufferIdx,u=t.endViewportIdx,c=t.firstBufferIdx,h=t.firstViewportIdx,f=l-c;if(f===0){e.rowOffsets={},e.rows=[];return}for(var p=r?h:c,g=r?u:l,b=[],v={},w=a.sumUntil(p),C=p;C<g;C++){v[C]=w,w+=o[C];var T=Kle(C,i,p,g,f);b[T]=C}e.rows=b,e.rowOffsets=v}function Kle(e,t,r,n,i){var a=t.getValuePosition(e);return a===null&&t.getSize()>=i&&(a=t.replaceFurthestValuePosition(r,n-1,e)),a===null&&(a=t.getNewPositionForValue(e)),a}var tm={exports:{}},xc={exports:{}},tt={};/** @license React v16.13.1
351
+ * react-is.production.min.js
352
+ *
353
+ * Copyright (c) Facebook, Inc. and its affiliates.
354
+ *
355
+ * This source code is licensed under the MIT license found in the
356
+ * LICENSE file in the root directory of this source tree.
357
+ */var Kt=typeof Symbol=="function"&&Symbol.for,Cg=Kt?Symbol.for("react.element"):60103,Tg=Kt?Symbol.for("react.portal"):60106,Nd=Kt?Symbol.for("react.fragment"):60107,Ld=Kt?Symbol.for("react.strict_mode"):60108,Id=Kt?Symbol.for("react.profiler"):60114,$d=Kt?Symbol.for("react.provider"):60109,Fd=Kt?Symbol.for("react.context"):60110,Mg=Kt?Symbol.for("react.async_mode"):60111,zd=Kt?Symbol.for("react.concurrent_mode"):60111,Bd=Kt?Symbol.for("react.forward_ref"):60112,Hd=Kt?Symbol.for("react.suspense"):60113,Qle=Kt?Symbol.for("react.suspense_list"):60120,Wd=Kt?Symbol.for("react.memo"):60115,jd=Kt?Symbol.for("react.lazy"):60116,Jle=Kt?Symbol.for("react.block"):60121,eue=Kt?Symbol.for("react.fundamental"):60117,tue=Kt?Symbol.for("react.responder"):60118,rue=Kt?Symbol.for("react.scope"):60119;function $r(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Cg:switch(e=e.type,e){case Mg:case zd:case Nd:case Id:case Ld:case Hd:return e;default:switch(e=e&&e.$$typeof,e){case Fd:case Bd:case jd:case Wd:case $d:return e;default:return t}}case Tg:return t}}}function HT(e){return $r(e)===zd}tt.AsyncMode=Mg;tt.ConcurrentMode=zd;tt.ContextConsumer=Fd;tt.ContextProvider=$d;tt.Element=Cg;tt.ForwardRef=Bd;tt.Fragment=Nd;tt.Lazy=jd;tt.Memo=Wd;tt.Portal=Tg;tt.Profiler=Id;tt.StrictMode=Ld;tt.Suspense=Hd;tt.isAsyncMode=function(e){return HT(e)||$r(e)===Mg};tt.isConcurrentMode=HT;tt.isContextConsumer=function(e){return $r(e)===Fd};tt.isContextProvider=function(e){return $r(e)===$d};tt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cg};tt.isForwardRef=function(e){return $r(e)===Bd};tt.isFragment=function(e){return $r(e)===Nd};tt.isLazy=function(e){return $r(e)===jd};tt.isMemo=function(e){return $r(e)===Wd};tt.isPortal=function(e){return $r(e)===Tg};tt.isProfiler=function(e){return $r(e)===Id};tt.isStrictMode=function(e){return $r(e)===Ld};tt.isSuspense=function(e){return $r(e)===Hd};tt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Nd||e===zd||e===Id||e===Ld||e===Hd||e===Qle||typeof e=="object"&&e!==null&&(e.$$typeof===jd||e.$$typeof===Wd||e.$$typeof===$d||e.$$typeof===Fd||e.$$typeof===Bd||e.$$typeof===eue||e.$$typeof===tue||e.$$typeof===rue||e.$$typeof===Jle)};tt.typeOf=$r;var et={};/** @license React v16.13.1
358
+ * react-is.development.js
359
+ *
360
+ * Copyright (c) Facebook, Inc. and its affiliates.
361
+ *
362
+ * This source code is licensed under the MIT license found in the
363
+ * LICENSE file in the root directory of this source tree.
364
+ */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,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function E(J){return typeof J=="string"||typeof J=="function"||J===n||J===c||J===a||J===i||J===f||J===p||typeof J=="object"&&J!==null&&(J.$$typeof===b||J.$$typeof===g||J.$$typeof===o||J.$$typeof===l||J.$$typeof===h||J.$$typeof===w||J.$$typeof===C||J.$$typeof===T||J.$$typeof===v)}function S(J){if(typeof J=="object"&&J!==null){var we=J.$$typeof;switch(we){case t:var Ee=J.type;switch(Ee){case u:case c:case n:case a:case i:case f:return Ee;default:var ke=Ee&&Ee.$$typeof;switch(ke){case l:case h:case b:case g:case o:return ke;default:return we}}case r:return we}}}var P=u,R=c,N=l,W=o,G=t,K=h,Z=n,O=b,$=g,X=r,B=a,V=i,H=f,U=!1;function te(J){return U||(U=!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.")),F(J)||S(J)===u}function F(J){return S(J)===c}function Y(J){return S(J)===l}function ne(J){return S(J)===o}function ie(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function re(J){return S(J)===h}function oe(J){return S(J)===n}function le(J){return S(J)===b}function de(J){return S(J)===g}function ce(J){return S(J)===r}function ve(J){return S(J)===a}function Ce(J){return S(J)===i}function ye(J){return S(J)===f}et.AsyncMode=P,et.ConcurrentMode=R,et.ContextConsumer=N,et.ContextProvider=W,et.Element=G,et.ForwardRef=K,et.Fragment=Z,et.Lazy=O,et.Memo=$,et.Portal=X,et.Profiler=B,et.StrictMode=V,et.Suspense=H,et.isAsyncMode=te,et.isConcurrentMode=F,et.isContextConsumer=Y,et.isContextProvider=ne,et.isElement=ie,et.isForwardRef=re,et.isFragment=oe,et.isLazy=le,et.isMemo=de,et.isPortal=ce,et.isProfiler=ve,et.isStrictMode=Ce,et.isSuspense=ye,et.isValidElementType=E,et.typeOf=S}();process.env.NODE_ENV==="production"?xc.exports=tt:xc.exports=et;/*
365
+ object-assign
366
+ (c) Sindre Sorhus
367
+ @license MIT
368
+ */var r_=Object.getOwnPropertySymbols,nue=Object.prototype.hasOwnProperty,iue=Object.prototype.propertyIsEnumerable;function aue(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function oue(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}var sue=oue()?Object.assign:function(e,t){for(var r,n=aue(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)nue.call(r,o)&&(n[o]=r[o]);if(r_){i=r_(r);for(var l=0;l<i.length;l++)iue.call(r,i[l])&&(n[i[l]]=r[i[l]])}}return n},lue="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Sg=lue,WT=Function.call.bind(Object.prototype.hasOwnProperty),rm=function(){};if(process.env.NODE_ENV!=="production"){var uue=Sg,nm={},cue=WT;rm=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}}}function jT(e,t,r,n,i){if(process.env.NODE_ENV!=="production"){for(var a in e)if(cue(e,a)){var o;try{if(typeof e[a]!="function"){var l=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}o=e[a](t,a,n,r,null,uue)}catch(c){o=c}if(o&&!(o instanceof Error)&&rm((n||"React class")+": type specification of "+r+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof o+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),o instanceof Error&&!(o.message in nm)){nm[o.message]=!0;var u=i?i():"";rm("Failed "+r+" type: "+o.message+(u!=null?u:""))}}}}jT.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(nm={})};var due=jT,hue=xc.exports,fue=sue,Ra=Sg,cf=WT,n_=due,$a=function(){};process.env.NODE_ENV!=="production"&&($a=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});function Pu(){return null}var pue=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,n="@@iterator";function i($){var X=$&&(r&&$[r]||$[n]);if(typeof X=="function")return X}var a="<<anonymous>>",o={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:f(),arrayOf:p,element:g(),elementType:b(),instanceOf:v,node:E(),objectOf:C,oneOf:w,oneOfType:T,shape:P,exact:R};function l($,X){return $===X?$!==0||1/$===1/X:$!==$&&X!==X}function u($,X){this.message=$,this.data=X&&typeof X=="object"?X:{},this.stack=""}u.prototype=Error.prototype;function c($){if(process.env.NODE_ENV!=="production")var X={},B=0;function V(U,te,F,Y,ne,ie,re){if(Y=Y||a,ie=ie||F,re!==Ra){if(t){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 le=Y+":"+F;!X[le]&&B<3&&($a("You are manually calling a React.PropTypes validation function for the `"+ie+"` prop on `"+Y+"`. 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."),X[le]=!0,B++)}}return te[F]==null?U?te[F]===null?new u("The "+ne+" `"+ie+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new u("The "+ne+" `"+ie+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:$(te,F,Y,ne,ie)}var H=V.bind(null,!1);return H.isRequired=V.bind(null,!0),H}function h($){function X(B,V,H,U,te,F){var Y=B[V],ne=G(Y);if(ne!==$){var ie=K(Y);return new u("Invalid "+U+" `"+te+"` of type "+("`"+ie+"` supplied to `"+H+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return c(X)}function f(){return c(Pu)}function p($){function X(B,V,H,U,te){if(typeof $!="function")return new u("Property `"+te+"` of component `"+H+"` has invalid PropType notation inside arrayOf.");var F=B[V];if(!Array.isArray(F)){var Y=G(F);return new u("Invalid "+U+" `"+te+"` of type "+("`"+Y+"` supplied to `"+H+"`, expected an array."))}for(var ne=0;ne<F.length;ne++){var ie=$(F,ne,H,U,te+"["+ne+"]",Ra);if(ie instanceof Error)return ie}return null}return c(X)}function g(){function $(X,B,V,H,U){var te=X[B];if(!e(te)){var F=G(te);return new u("Invalid "+H+" `"+U+"` of type "+("`"+F+"` supplied to `"+V+"`, expected a single ReactElement."))}return null}return c($)}function b(){function $(X,B,V,H,U){var te=X[B];if(!hue.isValidElementType(te)){var F=G(te);return new u("Invalid "+H+" `"+U+"` of type "+("`"+F+"` supplied to `"+V+"`, expected a single ReactElement type."))}return null}return c($)}function v($){function X(B,V,H,U,te){if(!(B[V]instanceof $)){var F=$.name||a,Y=O(B[V]);return new u("Invalid "+U+" `"+te+"` of type "+("`"+Y+"` supplied to `"+H+"`, expected ")+("instance of `"+F+"`."))}return null}return c(X)}function w($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?$a("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])."):$a("Invalid argument supplied to oneOf, expected an array.")),Pu;function X(B,V,H,U,te){for(var F=B[V],Y=0;Y<$.length;Y++)if(l(F,$[Y]))return null;var ne=JSON.stringify($,function(re,oe){var le=K(oe);return le==="symbol"?String(oe):oe});return new u("Invalid "+U+" `"+te+"` of value `"+String(F)+"` "+("supplied to `"+H+"`, expected one of "+ne+"."))}return c(X)}function C($){function X(B,V,H,U,te){if(typeof $!="function")return new u("Property `"+te+"` of component `"+H+"` has invalid PropType notation inside objectOf.");var F=B[V],Y=G(F);if(Y!=="object")return new u("Invalid "+U+" `"+te+"` of type "+("`"+Y+"` supplied to `"+H+"`, expected an object."));for(var ne in F)if(cf(F,ne)){var ie=$(F,ne,H,U,te+"."+ne,Ra);if(ie instanceof Error)return ie}return null}return c(X)}function T($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&$a("Invalid argument supplied to oneOfType, expected an instance of array."),Pu;for(var X=0;X<$.length;X++){var B=$[X];if(typeof B!="function")return $a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(B)+" at index "+X+"."),Pu}function V(H,U,te,F,Y){for(var ne=[],ie=0;ie<$.length;ie++){var re=$[ie],oe=re(H,U,te,F,Y,Ra);if(oe==null)return null;oe.data&&cf(oe.data,"expectedType")&&ne.push(oe.data.expectedType)}var le=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new u("Invalid "+F+" `"+Y+"` supplied to "+("`"+te+"`"+le+"."))}return c(V)}function E(){function $(X,B,V,H,U){return N(X[B])?null:new u("Invalid "+H+" `"+U+"` supplied to "+("`"+V+"`, expected a ReactNode."))}return c($)}function S($,X,B,V,H){return new u(($||"React class")+": "+X+" type `"+B+"."+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+H+"`.")}function P($){function X(B,V,H,U,te){var F=B[V],Y=G(F);if(Y!=="object")return new u("Invalid "+U+" `"+te+"` of type `"+Y+"` "+("supplied to `"+H+"`, expected `object`."));for(var ne in $){var ie=$[ne];if(typeof ie!="function")return S(H,U,te,ne,K(ie));var re=ie(F,ne,H,U,te+"."+ne,Ra);if(re)return re}return null}return c(X)}function R($){function X(B,V,H,U,te){var F=B[V],Y=G(F);if(Y!=="object")return new u("Invalid "+U+" `"+te+"` of type `"+Y+"` "+("supplied to `"+H+"`, expected `object`."));var ne=fue({},B[V],$);for(var ie in ne){var re=$[ie];if(cf($,ie)&&typeof re!="function")return S(H,U,te,ie,K(re));if(!re)return new u("Invalid "+U+" `"+te+"` key `"+ie+"` supplied to `"+H+"`.\nBad object: "+JSON.stringify(B[V],null," ")+`
369
+ Valid keys: `+JSON.stringify(Object.keys($),null," "));var oe=re(F,ie,H,U,te+"."+ie,Ra);if(oe)return oe}return null}return c(X)}function N($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(N);if($===null||e($))return!0;var X=i($);if(X){var B=X.call($),V;if(X!==$.entries){for(;!(V=B.next()).done;)if(!N(V.value))return!1}else for(;!(V=B.next()).done;){var H=V.value;if(H&&!N(H[1]))return!1}}else return!1;return!0;default:return!1}}function W($,X){return $==="symbol"?!0:X?X["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&X instanceof Symbol:!1}function G($){var X=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":W(X,$)?"symbol":X}function K($){if(typeof $=="undefined"||$===null)return""+$;var X=G($);if(X==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return X}function Z($){var X=K($);switch(X){case"array":case"object":return"an "+X;case"boolean":case"date":case"regexp":return"a "+X;default:return X}}function O($){return!$.constructor||!$.constructor.name?a:$.constructor.name}return o.checkPropTypes=n_,o.resetWarningCache=n_.resetWarningCache,o.PropTypes=o,o},mue=Sg;function VT(){}function GT(){}GT.resetWarningCache=VT;var gue=function(){function e(n,i,a,o,l,u){if(u!==mue){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:GT,resetWarningCache:VT};return r.PropTypes=r,r};if(process.env.NODE_ENV!=="production"){var vue=xc.exports,yue=!0;tm.exports=pue(vue.isElement,yue)}else tm.exports=gue();var z=tm.exports,bue=/\//g,Au={};function _ue(e){return Au[e]||(Au[e]=e.replace(bue,"_")),Au[e]}function Re(e){var t;return Un(e)=="object"?t=Object.keys(e).filter(function(r){return e[r]}):t=Array.prototype.slice.call(arguments),t.map(_ue).join(" ")}function Vd(e){return function(){return e}}function Zt(){}Zt.thatReturns=Vd;Zt.thatReturnsFalse=Vd(!1);Zt.thatReturnsTrue=Vd(!0);Zt.thatReturnsNull=Vd(null);Zt.thatReturnsThis=function(){return this};Zt.thatReturnsArgument=function(e){return e};var pn={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},i_=!1,Ii,im,am,Uu,Yu,UT,qu,om,sm,lm,YT,um,cm,qT,XT;function _r(){if(!i_){i_=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(um=/\b(iPhone|iP[ao]d)/.exec(e),cm=/\b(iP[ao]d)/.exec(e),lm=/Android/i.exec(e),qT=/FBAN\/\w+;/i.exec(e),XT=/Mobile/i.exec(e),YT=!!/Win64/.exec(e),t){Ii=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ii&&document&&document.documentMode&&(Ii=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);UT=n?parseFloat(n[1])+4:Ii,im=t[2]?parseFloat(t[2]):NaN,am=t[3]?parseFloat(t[3]):NaN,Uu=t[4]?parseFloat(t[4]):NaN,Uu?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Yu=t&&t[1]?parseFloat(t[1]):NaN):Yu=NaN}else Ii=im=am=Yu=Uu=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);qu=i?parseFloat(i[1].replace("_",".")):!0}else qu=!1;om=!!r[2],sm=!!r[3]}else qu=om=sm=!1}}var dm={ie:function(){return _r()||Ii},ieCompatibilityMode:function(){return _r()||UT>Ii},ie64:function(){return dm.ie()&&YT},firefox:function(){return _r()||im},opera:function(){return _r()||am},webkit:function(){return _r()||Uu},safari:function(){return dm.webkit()},chrome:function(){return _r()||Yu},windows:function(){return _r()||om},osx:function(){return _r()||qu},linux:function(){return _r()||sm},iphone:function(){return _r()||um},mobile:function(){return _r()||um||cm||lm||XT},nativeApp:function(){return _r()||qT},android:function(){return _r()||lm},ipad:function(){return _r()||cm}},Ru=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Eg={canUseDOM:Ru,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:Ru&&!!(window.addEventListener||window.attachEvent),canUseViewport:Ru&&!!window.screen,isInWorker:!Ru},ZT;Eg.canUseDOM&&(ZT=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
370
+ * Checks if an event is supported in the current execution environment.
371
+ *
372
+ * NOTE: This will not work correctly for non-generic events such as `change`,
373
+ * `reset`, `load`, `error`, and `select`.
374
+ *
375
+ * Borrows from Modernizr.
376
+ *
377
+ * @param {string} eventNameSuffix Event name, e.g. "click".
378
+ * @param {?boolean} capture Check if the capture phase is supported.
379
+ * @return {boolean} True if the event is supported.
380
+ * @internal
381
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
382
+ */function wue(e,t){if(!Eg.canUseDOM||t)return!1;var r="on"+e,n=r in document;if(!n){var i=document.createElement("div");i.setAttribute(r,"return;"),n=typeof i[r]=="function"}return!n&&ZT&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var a_=10,o_=40,s_=800;function KT(e){var t=0,r=0,n=0,i=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=t*a_,i=r*a_,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=o_,i*=o_):(n*=s_,i*=s_)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}KT.getEventType=function(){return dm.firefox()?"DOMMouseScroll":wue("wheel")?"wheel":"mousewheel"};var xue=hr.requestAnimationFrame||hr.webkitRequestAnimationFrame||hr.mozRequestAnimationFrame||hr.oRequestAnimationFrame||hr.msRequestAnimationFrame,l_=0,li=xue||function(e){var t=Date.now(),r=Math.max(0,16-(t-l_));return l_=t+r,hr.setTimeout(function(){e(Date.now())},r)};li(Zt);var QT=function(){function e(t,r,n,i,a,o){ft(this,e),this._animationFrameID=null,this._deltaX=0,this._deltaY=0,this._didWheel=this._didWheel.bind(this),this._rootRef=null,typeof r!="function"&&(r=r?Zt.thatReturnsTrue:Zt.thatReturnsFalse),typeof n!="function"&&(n=n?Zt.thatReturnsTrue:Zt.thatReturnsFalse),this._handleScrollX=r,this._handleScrollY=n,this._preventDefault=a,this._stopPropagation=o,this._onWheelCallback=t,this.onWheel=this.onWheel.bind(this),this._isRTL=i}return pt(e,[{key:"onWheel",value:function(r){this._preventDefault&&r.preventDefault();var n=KT(r);r.shiftKey&&e._allowInternalAxesSwap()?n=e._swapNormalizedWheelAxis(n):r.shiftKey||(n.pixelX*=this._isRTL?-1:1);var i=this._deltaX+n.pixelX,a=this._deltaY+n.pixelY,o=this._handleScrollX(i,a),l=this._handleScrollY(a,i);if(!(!o&&!l)&&!(this._rootRef&&!this._contains(r.target))){this._deltaX+=o?n.pixelX:0,this._deltaY+=l?n.pixelY:0,r.defaultPrevented||r.preventDefault();var u;(this._deltaX!==0||this._deltaY!==0)&&(this._stopPropagation&&r.stopPropagation(),u=!0),u===!0&&this._animationFrameID===null&&(this._animationFrameID=li(this._didWheel))}}},{key:"setRoot",value:function(r){this._rootRef=r}},{key:"_didWheel",value:function(){this._animationFrameID=null,this._onWheelCallback(this._deltaX,this._deltaY),this._deltaX=0,this._deltaY=0}},{key:"_contains",value:function(r){for(var n=r;n!=document.body;){if(n===this._rootRef)return!0;n=n.parentNode}return!1}}],[{key:"_swapNormalizedWheelAxis",value:function(r){return{spinX:r.spinY,spinY:r.spinX,pixelX:r.pixelY,pixelY:r.pixelX}}},{key:"_allowInternalAxesSwap",value:function(){return navigator.platform!=="MacIntel"}}]),e}(),Oa={listen:function(t,r,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t.addEventListener)return t.addEventListener(r,n,i||!1),{remove:function(){t.removeEventListener(r,n,i||!1)}};if(t.attachEvent)return t.attachEvent("on"+r,n),{remove:function(){t.detachEvent("on"+r,n)}}},capture:function(t,r,n){return t.addEventListener?(t.addEventListener(r,n,!0),{remove:function(){t.removeEventListener(r,n,!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:Zt})},registerDefault:function(){}},JT=hr.cancelAnimationFrame||hr.webkitCancelAnimationFrame||hr.mozCancelAnimationFrame||hr.oCancelAnimationFrame||hr.msCancelAnimationFrame||hr.clearTimeout;function Cue(e){var t=0,r=0;if(!e.clientX||!e.clientY){if(e.touches&&e.touches.length>0){var n=e.touches[0];t=n.clientX,r=n.clientY}}else t=e.clientX,r=e.clientY;return{x:t,y:r}}var hm={getCoordinatesFromEvent:Cue},Pg=function(){function e(t,r,n,i){ft(this,e),this._isDragging=!1,this._isTouchEnabled=i,this._animationFrameID=null,this._domNode=n,this._onMove=t,this._onMoveEnd=r,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 pt(e,[{key:"captureMouseMoves",value:function(r){if(!this._eventMoveToken&&!this._eventUpToken&&!this._eventLeaveToken&&(this._eventMoveToken=Oa.listen(this._domNode,"mousemove",this._onMouseMove),this._eventUpToken=Oa.listen(this._domNode,"mouseup",this._onMouseUp),this._eventLeaveToken=Oa.listen(this._domNode,"mouseleave",this._onMouseEnd)),this._isTouchEnabled&&!this._eventTouchStartToken&&!this._eventTouchMoveToken&&!this._eventTouchEndToken&&(this._eventTouchStartToken=Oa.listen(this._domNode,"touchstart",this._onMouseMove,{passive:!1}),this._eventTouchMoveToken=Oa.listen(r.target,"touchmove",this._onMouseMove,{passive:!1}),this._eventTouchEndToken=Oa.listen(r.target,"touchend",this._onMouseUp,{passive:!1})),!this._isDragging){this._deltaX=0,this._deltaY=0,this._isDragging=!0;var n=hm.getCoordinatesFromEvent(r),i=n.x,a=n.y;this._x=i,this._y=a}r.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&&(JT(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(r){var n=hm.getCoordinatesFromEvent(r),i=n.x,a=n.y;this._deltaX+=i-this._x,this._deltaY+=a-this._y,this._animationFrameID===null&&(this._animationFrameID=li(this._didMouseMove)),this._x=i,this._y=a,r.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)}}]),e}(),fm={"--scrollbar-face-active-color":"#7d7d7d","--scrollbar-face-color":"#c2c2c2","--scrollbar-face-margin":"4px","--scrollbar-face-radius":"6px","--scrollbar-size":"15px","--scrollbar-track-color":"#fff","--border-color":"#d3d3d3","--fbui-white":"#fff","--fbui-desktop-background-light":"#f6f7f8"};function Gd(e){if(fm.hasOwnProperty(e))return fm[e];throw new Error('cssVar("'+e+'"): Unexpected class transformation.')}Gd.CSS_VARS=fm;var Tue=/-(.)/g;function Mue(e){return e.replace(Tue,function(t,r){return r.toUpperCase()})}var df={},pm=["Webkit","ms","Moz","O"],Sue=new RegExp("^("+pm.join("|")+")"),eM=Eg.canUseDOM?document.createElement("div").style:{};function Eue(e){for(var t=0;t<pm.length;t++){var r=pm[t]+e;if(r in eM)return r}return null}function Va(e){var t=Mue(e);if(df[t]===void 0){var r=t.charAt(0).toUpperCase()+t.slice(1);Sue.test(r)&&vn(!1,"getVendorPrefixedName must only be called with unprefixedCSS property names. It was called with %s",e),df[t]=t in eM?t:Eue(r)}return df[t]}var mm={hasCSSAnimations:function(){return!!Va("animationName")},hasCSSTransforms:function(){return!!Va("transform")},hasCSS3DTransforms:function(){return!!Va("perspective")},hasCSSTransitions:function(){return!!Va("transition")}},u_=Va("transform");Va("backfaceVisibility");var Pue=function(){if(mm.hasCSSTransforms()){var e=hr.window?hr.window.navigator.userAgent:"UNKNOWN",t=/Safari\//.test(e)&&!/Chrome\//.test(e);return!t&&mm.hasCSS3DTransforms()?function(r,n,i){r[u_]="translate3d("+n+"px,"+i+"px,0)"}:function(r,n,i){r[u_]="translate("+n+"px,"+i+"px)"}}else return function(r,n,i){r.left=n+"px",r.top=i+"px"}}();function oo(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;e.display!=="none"&&(n?(e.left=t+"px",e.top=r+"px"):(mm.hasCSSTransforms()&&(t*=i?-1:1),e.left=0,Pue(e,t,r)),i&&(e.right=e.left,e.left="auto"))}function Aue(e){var t=Rue();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Rue(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Oue={position:0,scrollable:!1},tM=parseInt(Gd("--scrollbar-face-margin"),10),c_=tM*2,hf=30,rM=40,Rr=function(e){Ht(r,e);var t=Aue(r);function r(n){var i;return ft(this,r),i=t.call(this,n),ue(fe(i),"_onRefFace",function(a){return i._faceRef=a}),ue(fe(i),"_onRefRoot",function(a){return i._rootRef=a}),ue(fe(i),"scrollBy",function(a){i._onWheel(a)}),ue(fe(i),"_shouldHandleX",function(a){return i.props.orientation==="horizontal"?i._shouldHandleChange(a):!1}),ue(fe(i),"_shouldHandleY",function(a){return i.props.orientation!=="horizontal"?i._shouldHandleChange(a):!1}),ue(fe(i),"_shouldHandleChange",function(a){var o=i._calculateState(i.state.position+a,i.props.size,i.props.contentSize,i.props.orientation);return o.position!==i.state.position}),ue(fe(i),"_calculateState",function(a,o,l,u){var c=Math.max(1,o);if(l<=c)return Oue;var h="".concat(a,"_").concat(c,"_").concat(l,"_").concat(u);if(i._stateKey===h)return i._stateForKey;var f=u==="horizontal",p=c/l,g=c*p;g<hf&&(p=(c-hf)/(l-c),g=hf);var b=!0,v=l-c;a<0?a=0:a>v&&(a=v);var w={faceSize:g,isHorizontal:f,position:a,scale:p,scrollable:b};return i._stateKey=h,i._stateForKey=w,w}),ue(fe(i),"_onWheelY",function(a,o){i._onWheel(o)}),ue(fe(i),"_onWheelX",function(a,o){i._onWheel(a)}),ue(fe(i),"_onWheel",function(a){var o=i.props;i._setNextState(i._calculateState(i.state.position+a,o.size,o.contentSize,o.orientation))}),ue(fe(i),"_onMouseDown",function(a){i.setState({isDragging:!0});var o;if(a.target!==i._faceRef){var l,u,c,h,f=a.nativeEvent,p=i.state.isHorizontal?(l=(u=f.offsetX)!==null&&u!==void 0?u:f.layerX)!==null&&l!==void 0?l:i.getTouchX(f):(c=(h=f.offsetY)!==null&&h!==void 0?h:f.layerY)!==null&&c!==void 0?c:i.getTouchY(f),g=i.props;p/=i.state.scale,o=i._calculateState(p-i.state.faceSize*.5/i.state.scale,g.size,g.contentSize,g.orientation)}else o={};i._setNextState(o),i._mouseMoveTracker.captureMouseMoves(a),i._rootRef.focus()}),ue(fe(i),"_onTouchCancel",function(a){a.stopPropagation()}),ue(fe(i),"_onTouchEnd",function(a){a.stopPropagation()}),ue(fe(i),"_onTouchMove",function(a){a.stopPropagation()}),ue(fe(i),"_onTouchStart",function(a){a.stopPropagation(),i._onMouseDown(a)}),ue(fe(i),"_onMouseMove",function(a,o){var l=i.props,u=i.state.isHorizontal?a*(i.props.isRTL?-1:1):o;u/=i.state.scale;var c=Ar.flushSync||function(h){return h()};c(function(){return i._setNextState(i._calculateState(i.state.position+u,l.size,l.contentSize,l.orientation))})}),ue(fe(i),"_onMouseMoveEnd",function(){i._nextState=null,i._mouseMoveTracker.releaseMouseMoves(),i.setState({isDragging:!1})}),ue(fe(i),"_onKeyDown",function(a){var o=a.keyCode;if(o!==pn.TAB){var l=rM,u=0;if(i.state.isHorizontal)switch(o){case pn.HOME:u=-1,l=i.props.contentSize;break;case pn.LEFT:u=-1;break;case pn.RIGHT:u=1;break;default:return}if(!i.state.isHorizontal)switch(o){case pn.SPACE:a.shiftKey?u=-1:u=1;break;case pn.HOME:u=-1,l=i.props.contentSize;break;case pn.UP:u=-1;break;case pn.DOWN:u=1;break;case pn.PAGE_UP:u=-1,l=i.props.size;break;case pn.PAGE_DOWN:u=1,l=i.props.size;break;default:return}a.preventDefault();var c=i.props;i._setNextState(i._calculateState(i.state.position+l*u,c.size,c.contentSize,c.orientation))}}),ue(fe(i),"getTouchX",function(a){return Math.round(a.targetTouches[0].clientX-a.target.getBoundingClientRect().x)}),ue(fe(i),"getTouchY",function(a){return Math.round(a.targetTouches[0].clientY-a.target.getBoundingClientRect().y)}),ue(fe(i),"_setNextState",function(a,o){o=o||i.props;var l=o.position,u=i.state.position!==a.position;if(l===void 0){var c=u?i._didScroll:void 0;i.setState(a,c)}else if(l===a.position)i.setState(a);else{a.position!==void 0&&a.position!==i.state.position&&i.props.onScroll(a.position);return}}),ue(fe(i),"_didScroll",function(){i.props.onScroll(i.state.position)}),i.state=i._calculateState(n.position||n.defaultPosition||0,n.size,n.contentSize,n.orientation),i._initialRender=!0,i}return pt(r,[{key:"componentDidUpdate",value:function(){var i=this.props.position;i===void 0?this._setNextState(this._calculateState(this.state.position,this.props.size,this.props.contentSize,this.props.orientation)):this._setNextState(this._calculateState(i,this.props.size,this.props.contentSize,this.props.orientation),this.props)}},{key:"render",value:function(){if(!this.state.scrollable)return null;var i=this.props.size,a,o,l=this.state.isHorizontal,u=!l,c=this.state.isDragging,h=this.state.faceSize,f=this.props.isOpaque,p=this.props.verticalTop||0,g=Re({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":u,"ScrollbarLayout/mainHorizontal":l,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":f,"public/Scrollbar/mainActive":c}),b=Re({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":l,"ScrollbarLayout/faceVertical":u,"public/Scrollbar/faceActive":c,"public/Scrollbar/face":!0}),v=this.state.position*this.state.scale+tM;return l?(a={width:i},o={width:h-c_,top:0,bottom:0},oo(o,v,0,this._initialRender,this.props.isRTL)):(a={top:p,height:i},this.props.isRTL&&(a.left=a.right||0,a.right="auto"),o={height:h-c_},oo(o,0,v,this._initialRender,this.props.isRTL),o.left=0,o.right=0),a.touchAction="none",a.zIndex=this.props.zIndex,this.props.trackColor==="gray"&&(a.backgroundColor=Gd("--fbui-desktop-background-light")),k.createElement("div",{onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onTouchCancel:this._onTouchCancel,onTouchEnd:this._onTouchEnd,onTouchMove:this._onTouchMove,onTouchStart:this._onTouchStart,className:g,style:a,ref:this._onRefRoot},k.createElement("div",{ref:this._onRefFace,className:b,style:o}))}},{key:"componentDidMount",value:function(){var i=this.props.orientation==="horizontal",a=i?this._onWheelX:this._onWheelY;this._wheelHandler=new QT(a,this._shouldHandleX,this._shouldHandleY,this.props.isRTL),this._rootRef&&this._rootRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._mouseMoveTracker=new Pg(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)}}]),r}(k.PureComponent);ue(Rr,"propTypes",{contentSize:z.number.isRequired,defaultPosition:z.number,isOpaque:z.bool,orientation:z.oneOf(["vertical","horizontal"]),onScroll:z.func,position:z.number,size:z.number.isRequired,trackColor:z.oneOf(["gray"]),touchEnabled:z.bool,zIndex:z.number,verticalTop:z.number,isRTL:z.bool});ue(Rr,"defaultProps",{defaultPosition:0,isOpaque:!1,onScroll:Zt,orientation:"vertical",zIndex:99});Rr.KEYBOARD_SCROLL_AMOUNT=rM;Rr.SIZE=parseInt(Gd("--scrollbar-size"),10);Rr.OFFSET=1;function Vt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var i=Hue[e],a=i?typeof i=="function"?i.apply(null,r):i:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Yn(e){return!!e&&!!e[gt]}function vi(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Wue}(e)||Array.isArray(e)||!!e[v_]||!!e.constructor[v_]||Ag(e)||Rg(e))}function kue(e){return Yn(e)||Vt(23,e),e[gt].t}function Qi(e,t,r){r===void 0&&(r=!1),Oo(e)===0?(r?Object.keys:Ka)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Oo(e){var t=e[gt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ag(e)?2:Rg(e)?3:0}function Za(e,t){return Oo(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Due(e,t){return Oo(e)===2?e.get(t):e[t]}function nM(e,t,r){var n=Oo(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function iM(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ag(e){return zue&&e instanceof Map}function Rg(e){return Bue&&e instanceof Set}function ni(e){return e.o||e.t}function Og(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=oM(e);delete t[gt];for(var r=Ka(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function kg(e,t){return t===void 0&&(t=!1),Dg(e)||Yn(e)||!vi(e)||(Oo(e)>1&&(e.set=e.add=e.clear=e.delete=Nue),Object.freeze(e),t&&Qi(e,function(r,n){return kg(n,!0)},!0)),e}function Nue(){Vt(2)}function Dg(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function xn(e){var t=bm[e];return t||Vt(18,e),t}function Lue(e,t){bm[e]||(bm[e]=t)}function gm(){return process.env.NODE_ENV==="production"||so||Vt(0),so}function ff(e,t){t&&(xn("Patches"),e.u=[],e.s=[],e.v=t)}function Cc(e){vm(e),e.p.forEach(Iue),e.p=null}function vm(e){e===so&&(so=e.l)}function d_(e){return so={p:[],l:so,h:e,m:!0,_:0}}function Iue(e){var t=e[gt];t.i===0||t.i===1?t.j():t.O=!0}function pf(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||xn("ES5").S(t,e,n),n?(r[gt].P&&(Cc(t),Vt(4)),vi(e)&&(e=Tc(t,e),t.l||Mc(t,e)),t.u&&xn("Patches").M(r[gt].t,e,t.u,t.s)):e=Tc(t,r,[]),Cc(t),t.u&&t.v(t.u,t.s),e!==aM?e:void 0}function Tc(e,t,r){if(Dg(t))return t;var n=t[gt];if(!n)return Qi(t,function(a,o){return h_(e,n,t,a,o,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Mc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Og(n.k):n.o;Qi(n.i===3?new Set(i):i,function(a,o){return h_(e,n,i,a,o,r)}),Mc(e,i,!1),r&&e.u&&xn("Patches").R(n,r,e.u,e.s)}return n.o}function h_(e,t,r,n,i,a){if(process.env.NODE_ENV!=="production"&&i===r&&Vt(5),Yn(i)){var o=Tc(e,i,a&&t&&t.i!==3&&!Za(t.D,n)?a.concat(n):void 0);if(nM(r,n,o),!Yn(o))return;e.m=!1}if(vi(i)&&!Dg(i)){if(!e.h.F&&e._<1)return;Tc(e,i),t&&t.A.l||Mc(e,i)}}function Mc(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&kg(t,r)}function mf(e,t){var r=e[gt];return(r?ni(r):e)[t]}function f_(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function ai(e){e.P||(e.P=!0,e.l&&ai(e.l))}function gf(e){e.o||(e.o=Og(e.t))}function ym(e,t,r){var n=Ag(t)?xn("MapSet").N(t,r):Rg(t)?xn("MapSet").T(t,r):e.g?function(i,a){var o=Array.isArray(i),l={i:o?1:0,A:a?a.A:gm(),P:!1,I:!1,D:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=l,c=Qs;o&&(u=[l],c=ys);var h=Proxy.revocable(u,c),f=h.revoke,p=h.proxy;return l.k=p,l.j=f,p}(t,r):xn("ES5").J(t,r);return(r?r.A:gm()).p.push(n),n}function $ue(e){return Yn(e)||Vt(22,e),function t(r){if(!vi(r))return r;var n,i=r[gt],a=Oo(r);if(i){if(!i.P&&(i.i<4||!xn("ES5").K(i)))return i.t;i.I=!0,n=p_(r,a),i.I=!1}else n=p_(r,a);return Qi(n,function(o,l){i&&Due(i.t,o)===l||nM(n,o,t(l))}),a===3?new Set(n):n}(e)}function p_(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Og(e)}function Fue(){function e(o,l){var u=a[o];return u?u.enumerable=l:a[o]=u={configurable:!0,enumerable:l,get:function(){var c=this[gt];return process.env.NODE_ENV!=="production"&&i(c),Qs.get(c,o)},set:function(c){var h=this[gt];process.env.NODE_ENV!=="production"&&i(h),Qs.set(h,o,c)}},u}function t(o){for(var l=o.length-1;l>=0;l--){var u=o[l][gt];if(!u.P)switch(u.i){case 5:n(u)&&ai(u);break;case 4:r(u)&&ai(u)}}}function r(o){for(var l=o.t,u=o.k,c=Ka(u),h=c.length-1;h>=0;h--){var f=c[h];if(f!==gt){var p=l[f];if(p===void 0&&!Za(l,f))return!0;var g=u[f],b=g&&g[gt];if(b?b.t!==p:!iM(g,p))return!0}}var v=!!l[gt];return c.length!==Ka(l).length+(v?0:1)}function n(o){var l=o.k;if(l.length!==o.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var c=0;c<l.length;c++)if(!l.hasOwnProperty(c))return!0;return!1}function i(o){o.O&&Vt(3,JSON.stringify(ni(o)))}var a={};Lue("ES5",{J:function(o,l){var u=Array.isArray(o),c=function(f,p){if(f){for(var g=Array(p.length),b=0;b<p.length;b++)Object.defineProperty(g,""+b,e(b,!0));return g}var v=oM(p);delete v[gt];for(var w=Ka(v),C=0;C<w.length;C++){var T=w[C];v[T]=e(T,f||!!v[T].enumerable)}return Object.create(Object.getPrototypeOf(p),v)}(u,o),h={i:u?5:4,A:l?l.A:gm(),P:!1,I:!1,D:{},l,t:o,k:c,o:null,O:!1,C:!1};return Object.defineProperty(c,gt,{value:h,writable:!0}),c},S:function(o,l,u){u?Yn(l)&&l[gt].A===o&&t(o.p):(o.u&&function c(h){if(h&&typeof h=="object"){var f=h[gt];if(f){var p=f.t,g=f.k,b=f.D,v=f.i;if(v===4)Qi(g,function(S){S!==gt&&(p[S]!==void 0||Za(p,S)?b[S]||c(g[S]):(b[S]=!0,ai(f)))}),Qi(p,function(S){g[S]!==void 0||Za(g,S)||(b[S]=!1,ai(f))});else if(v===5){if(n(f)&&(ai(f),b.length=!0),g.length<p.length)for(var w=g.length;w<p.length;w++)b[w]=!1;else for(var C=p.length;C<g.length;C++)b[C]=!0;for(var T=Math.min(g.length,p.length),E=0;E<T;E++)g.hasOwnProperty(E)||(b[E]=!0),b[E]===void 0&&c(g[E])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var m_,so,Ng=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",zue=typeof Map!="undefined",Bue=typeof Set!="undefined",g_=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",aM=Ng?Symbol.for("immer-nothing"):((m_={})["immer-nothing"]=!0,m_),v_=Ng?Symbol.for("immer-draftable"):"__$immer_draftable",gt=Ng?Symbol.for("immer-state"):"__$immer_state",Hue={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Wue=""+Object.prototype.constructor,Ka=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,oM=Object.getOwnPropertyDescriptors||function(e){var t={};return Ka(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},bm={},Qs={get:function(e,t){if(t===gt)return e;var r=ni(e);if(!Za(r,t))return function(i,a,o){var l,u=f_(a,o);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!vi(n)?n:n===mf(e.t,t)?(gf(e),e.o[t]=ym(e.A.h,n,e)):n},has:function(e,t){return t in ni(e)},ownKeys:function(e){return Reflect.ownKeys(ni(e))},set:function(e,t,r){var n=f_(ni(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=mf(ni(e),t),a=i==null?void 0:i[gt];if(a&&a.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(iM(r,i)&&(r!==void 0||Za(e.t,t)))return!0;gf(e),ai(e)}return e.o[t]===r&&typeof r!="number"&&(r!==void 0||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return mf(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,gf(e),ai(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=ni(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Vt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Vt(12)}},ys={};Qi(Qs,function(e,t){ys[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ys.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Vt(13),ys.set.call(this,e,t,void 0)},ys.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Vt(14),Qs.set.call(this,e[0],t,r,e[0])};var jue=function(){function e(r){var n=this;this.g=g_,this.F=!0,this.produce=function(i,a,o){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var u=n;return function(v){var w=this;v===void 0&&(v=l);for(var C=arguments.length,T=Array(C>1?C-1:0),E=1;E<C;E++)T[E-1]=arguments[E];return u.produce(v,function(S){var P;return(P=a).call.apply(P,[w,S].concat(T))})}}var c;if(typeof a!="function"&&Vt(6),o!==void 0&&typeof o!="function"&&Vt(7),vi(i)){var h=d_(n),f=ym(n,i,void 0),p=!0;try{c=a(f),p=!1}finally{p?Cc(h):vm(h)}return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(v){return ff(h,o),pf(v,h)},function(v){throw Cc(h),v}):(ff(h,o),pf(c,h))}if(!i||typeof i!="object"){if((c=a(i))===void 0&&(c=i),c===aM&&(c=void 0),n.F&&kg(c,!0),o){var g=[],b=[];xn("Patches").M(i,c,g,b),o(g,b)}return c}Vt(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(c){for(var h=arguments.length,f=Array(h>1?h-1:0),p=1;p<h;p++)f[p-1]=arguments[p];return n.produceWithPatches(c,function(g){return i.apply(void 0,[g].concat(f))})};var o,l,u=n.produce(i,a,function(c,h){o=c,l=h});return typeof Promise!="undefined"&&u instanceof Promise?u.then(function(c){return[c,o,l]}):[u,o,l]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){vi(r)||Vt(8),Yn(r)&&(r=$ue(r));var n=d_(this),i=ym(this,r,void 0);return i[gt].C=!0,vm(n),i},t.finishDraft=function(r,n){var i=r&&r[gt];process.env.NODE_ENV!=="production"&&(i&&i.C||Vt(9),i.I&&Vt(10));var a=i.A;return ff(a,n),pf(void 0,a)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!g_&&Vt(20),this.g=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var o=xn("Patches").$;return Yn(r)?o(r,n):this.produce(r,function(l){return o(l,n)})},e}(),Nr=new jue,Vue=Nr.produce;Nr.produceWithPatches.bind(Nr);Nr.setAutoFreeze.bind(Nr);Nr.setUseProxies.bind(Nr);Nr.applyPatches.bind(Nr);Nr.createDraft.bind(Nr);Nr.finishDraft.bind(Nr);var Xu=Vue;function sM(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(o){return function(l){return typeof l=="function"?l(i,a,e):o(l)}}};return t}var lM=sM();lM.withExtraArgument=sM;var y_=lM,Gue=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Sc=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Uue=Object.defineProperty,b_=Object.getOwnPropertySymbols,Yue=Object.prototype.hasOwnProperty,que=Object.prototype.propertyIsEnumerable,__=function(e,t,r){return t in e?Uue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Js=function(e,t){for(var r in t||(t={}))Yue.call(t,r)&&__(e,r,t[r]);if(b_)for(var n=0,i=b_(t);n<i.length;n++){var r=i[n];que.call(t,r)&&__(e,r,t[r])}return e},Xue=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_c:_c.apply(null,arguments)};function uM(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function cM(e,t){var r=0;return{measureTime:function(n){var i=Date.now();try{return n()}finally{var a=Date.now();r+=a-i}},warnIfExceeded:function(){r>e&&console.warn(t+" took "+r+"ms, which is more than the warning threshold of "+e+`ms.
383
+ If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
384
+ It is disabled in production builds, so you don't need to worry about that.`)}}}var Zue=function(e){Gue(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Sc([void 0],r[0].concat(this)))):new(t.bind.apply(t,Sc([void 0],r.concat(this))))},t}(Array),Kue=process.env.NODE_ENV==="production",w_="Invariant failed";function x_(e,t){if(!e)throw Kue?new Error(w_):new Error(w_+": "+(t||""))}function Que(e,t,r,n){return JSON.stringify(e,Jue(t,n),r)}function Jue(e,t){var r=[],n=[];return t||(t=function(i,a){return r[0]===a?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(a)).join(".")+"]"}),function(i,a){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?n.splice(o,1/0,i):n.push(i),~r.indexOf(a)&&(a=t.call(this,i,a))}else r.push(a);return e==null?a:e.call(this,i,a)}}function ece(e){return typeof e!="object"||e===null||typeof e=="undefined"||Object.isFrozen(e)}function tce(e,t,r){var n=dM(e,t,r);return{detectMutations:function(){return hM(e,t,n,r)}}}function dM(e,t,r,n){t===void 0&&(t=[]),n===void 0&&(n="");var i={value:r};if(!e(r)){i.children={};for(var a in r){var o=n?n+"."+a:a;t.length&&t.indexOf(o)!==-1||(i.children[a]=dM(e,t,r[a],o))}}return i}function hM(e,t,r,n,i,a){t===void 0&&(t=[]),i===void 0&&(i=!1),a===void 0&&(a="");var o=r?r.value:void 0,l=o===n;if(i&&!l&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(o)||e(n))return{wasMutated:!1};var u={};for(var c in r.children)u[c]=!0;for(var c in n)u[c]=!0;for(var c in u){var h=a?a+"."+c:c;if(!(t.length&&t.indexOf(h)!==-1)){var f=hM(e,t,r.children[c],n[c],l,h);if(f.wasMutated)return f}}return{wasMutated:!1}}function rce(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(u){return function(c){return u(c)}}};var t=e.isImmutable,r=t===void 0?ece:t,n=e.ignoredPaths,i=e.warnAfter,a=i===void 0?32:i,o=e.ignore;n=n||o;var l=tce.bind(null,r,n);return function(u){var c=u.getState,h=c(),f=l(h),p;return function(g){return function(b){var v=cM(a,"ImmutableStateInvariantMiddleware");v.measureTime(function(){h=c(),p=f.detectMutations(),f=l(h),x_(!p.wasMutated,"A state mutation was detected between dispatches, in the path '"+(p.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var w=g(b);return v.measureTime(function(){h=c(),p=f.detectMutations(),f=l(h),p.wasMutated&&x_(!p.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(p.path||"")+". Take a look at the reducer(s) handling the action "+Que(b)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),v.warnIfExceeded(),w}}}}function fM(e){var t=typeof e;return t==="undefined"||e===null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||uM(e)}function _m(e,t,r,n,i){t===void 0&&(t=""),r===void 0&&(r=fM),i===void 0&&(i=[]);var a;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var o=n!=null?n(e):Object.entries(e),l=i.length>0,u=0,c=o;u<c.length;u++){var h=c[u],f=h[0],p=h[1],g=t?t+"."+f:f;if(!(l&&i.indexOf(g)>=0)){if(!r(p))return{keyPath:g,value:p};if(typeof p=="object"&&(a=_m(p,g,r,n,i),a))return a}}return!1}function nce(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(w){return function(C){return w(C)}}};var t=e.isSerializable,r=t===void 0?fM:t,n=e.getEntries,i=e.ignoredActions,a=i===void 0?[]:i,o=e.ignoredActionPaths,l=o===void 0?["meta.arg","meta.baseQueryMeta"]:o,u=e.ignoredPaths,c=u===void 0?[]:u,h=e.warnAfter,f=h===void 0?32:h,p=e.ignoreState,g=p===void 0?!1:p,b=e.ignoreActions,v=b===void 0?!1:b;return function(w){return function(C){return function(T){var E=C(T),S=cM(f,"SerializableStateInvariantMiddleware");return!v&&!(a.length&&a.indexOf(T.type)!==-1)&&S.measureTime(function(){var P=_m(T,"",r,n,l);if(P){var R=P.keyPath,N=P.value;console.error("A non-serializable value was detected in an action, in the path: `"+R+"`. Value:",N,`
385
+ Take a look at the logic that dispatched this action: `,T,`
386
+ (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
387
+ (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),g||(S.measureTime(function(){var P=w.getState(),R=_m(P,"",r,n,c);if(R){var N=R.keyPath,W=R.value;console.error("A non-serializable value was detected in the state, in the path: `"+N+"`. Value:",W,`
388
+ Take a look at the reducer(s) handling this action type: `+T.type+`.
389
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),S.warnIfExceeded()),E}}}}function vf(e){return typeof e=="boolean"}function ice(){return function(t){return ace(t)}}function ace(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,o=a===void 0?!0:a,l=new Zue;if(r&&(vf(r)?l.push(y_):l.push(y_.withExtraArgument(r.extraArgument))),process.env.NODE_ENV!=="production"){if(i){var u={};vf(i)||(u=i),l.unshift(rce(u))}if(o){var c={};vf(o)||(c=o),l.push(nce(c))}}return l}var yf=process.env.NODE_ENV==="production";function oce(e){var t=ice(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,o=a===void 0?t():a,l=r.devTools,u=l===void 0?!0:l,c=r.preloadedState,h=c===void 0?void 0:c,f=r.enhancers,p=f===void 0?void 0:f,g;if(typeof i=="function")g=i;else if(uM(i))g=wre(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=o;if(typeof b=="function"&&(b=b(t),!yf&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!yf&&b.some(function(E){return typeof E!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=xre.apply(void 0,b),w=_c;u&&(w=Xue(Js({trace:!yf},typeof u=="object"&&u)));var C=[v];Array.isArray(p)?C=Sc([v],p):typeof p=="function"&&(C=p(C));var T=w.apply(void 0,C);return CT(g,h,T)}function el(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Js(Js({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function pM(e){var t={},r=[],n,i={addCase:function(a,o){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=o,i},addMatcher:function(a,o){if(process.env.NODE_ENV!=="production"&&n)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:o}),i},addDefaultCase:function(a){if(process.env.NODE_ENV!=="production"&&n)throw new Error("`builder.addDefaultCase` can only be called once");return n=a,i}};return e(i),[t,r,n]}function sce(e){return typeof e=="function"}function lce(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?pM(t):[t,r,n],a=i[0],o=i[1],l=i[2],u;if(sce(e))u=function(){return Xu(e(),function(){})};else{var c=Xu(e,function(){});u=function(){return c}}function h(f,p){f===void 0&&(f=u());var g=Sc([a[p.type]],o.filter(function(b){var v=b.matcher;return v(p)}).map(function(b){var v=b.reducer;return v}));return g.filter(function(b){return!!b}).length===0&&(g=[l]),g.reduce(function(b,v){if(v)if(Yn(b)){var w=b,C=v(w,p);return typeof C=="undefined"?b:C}else{if(vi(b))return Xu(b,function(T){return v(T,p)});var C=v(b,p);if(typeof C=="undefined"){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}return b},f)}return h.getInitialState=u,h}function uce(e,t){return e+"/"+t}function cce(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var r=typeof e.initialState=="function"?e.initialState:Xu(e.initialState,function(){}),n=e.reducers||{},i=Object.keys(n),a={},o={},l={};i.forEach(function(h){var f=n[h],p=uce(t,h),g,b;"reducer"in f?(g=f.reducer,b=f.prepare):g=f,a[h]=g,o[p]=g,l[h]=b?el(p,b):el(p)});function u(){var h=typeof e.extraReducers=="function"?pM(e.extraReducers):[e.extraReducers],f=h[0],p=f===void 0?{}:f,g=h[1],b=g===void 0?[]:g,v=h[2],w=v===void 0?void 0:v,C=Js(Js({},p),o);return lce(r,C,b,w)}var c;return{name:t,reducer:function(h,f){return c||(c=u()),c(h,f)},actions:l,caseReducers:a,getInitialState:function(){return c||(c=u()),c.getInitialState()}}}var Lg="listenerMiddleware";el(Lg+"/add");el(Lg+"/removeAll");el(Lg+"/remove");Fue();function dce(){var e=hce();return{columnElements:[],columnGroupElements:[],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},firstRowIndex:0,firstRowOffset:0,maxScrollX:0,maxScrollY:0,rowOffsets:{},rows:[],scrollContentHeight:0,scrollX:0,scrollbarXHeight:Rr.SIZE,scrollY:0,scrollbarYWidth:Rr.SIZE,scrolling:!1,getInternal:function(){return e}}}function hce(){return{rowBufferSet:new FT,rowOffsetIntervalTree:null,storedHeights:[],rowUntilOffsetsAreExact:0}}var mM=cce({name:"FDT",initialState:{},reducers:{initialize:function(t,r){var n=r.payload;bt(t,dce()),T_(t,n),C_(t);var i=Yb(t,n);as(t,i),e_.initialize(t,n,{})},propChange:function(t,r){var n=r.payload,i=n.newProps,a=n.oldProps,o=Yse(kue(t));T_(t,i),(a.rowsCount!==i.rowsCount||a.rowHeight!==i.rowHeight||a.subRowHeight!==i.subRowHeight)&&C_(t),a.rowsCount!==i.rowsCount&&(t.getInternal().rowBufferSet=new FT);var l=Yb(t,i,a);(!Zs(t,o)||l.changed)&&as(t,l),e_.initialize(t,i,a),(t.scrollX!==o.scrollX||t.scrollY!==o.scrollY)&&(t.scrolling=t.scrolling||!0)},scrollEnd:function(t){t.scrolling=!1;var r={firstIndex:t.firstRowIndex,firstOffset:t.firstRowOffset,lastIndex:t.lastIndex};as(t,r)},scrollToY:function(t,r){var n=r.payload;t.scrolling=!0;var i=em(t,n);as(t,i)},scrollToX:function(t,r){var n=r.payload;t.scrolling=!0,t.scrollX=n},updateRowHeights:function(t,r){var n=r.payload||0;if(!(n>=t.rowSettings.rowsCount)){for(;n<t.rowSettings.rowsCount;)zi(t,n++);var i=t.getInternal().rowOffsetIntervalTree.sumUntil(t.firstRowIndex)-t.firstRowOffset,a=em(t,i);as(t,a)}}}});function C_(e){for(var t=e.rowSettings,r=t.rowHeight,n=t.rowsCount,i=t.subRowHeight,a=t.rowHeightGetter,o=t.subRowHeightGetter,l=r+i,u=0,c=new Array(n),h=0;h<n;h++)e.isVerticalScrollExact?c[h]=a(h)+o(h):c[h]=l,u+=c[h];var f=new Kse(c);e.scrollContentHeight=u,bt(e.getInternal(),{rowOffsetIntervalTree:f,storedHeights:c})}function T_(e,t){var r=ele(t.children),n=r.columnGroupElements,i=r.columnElements,a=r.elementTemplates,o=r.useGroupHeader;bt(e,{columnGroupElements:n,columnElements:i,elementTemplates:a,propsRevision:e.propsRevision+1,isVerticalScrollExact:t.isVerticalScrollExact}),Object.freeze(e.columnElements),Object.freeze(e.columnGroupElements),Object.freeze(e.elementTemplates),e.elementHeights=bt({},e.elementHeights,vs(t,["cellGroupWrapperHeight","footerHeight","groupHeaderHeight","headerHeight"])),o||(e.elementHeights.groupHeaderHeight=0),e.rowSettings=bt({},e.rowSettings,vs(t,["bufferRowCount","rowHeight","rowsCount","subRowHeight"]));var l=e.rowSettings,u=l.rowHeight,c=l.subRowHeight;e.rowSettings.rowHeightGetter=t.rowHeightGetter||function(){return u},e.rowSettings.subRowHeightGetter=t.subRowHeightGetter||function(){return c||0},e.rowSettings.rowAttributesGetter=t.rowAttributesGetter,e.scrollFlags=bt({},e.scrollFlags,vs(t,["overflowX","overflowY","showScrollbarX","showScrollbarY"])),e.tableSize=bt({},e.tableSize,vs(t,["height","maxHeight","ownerHeight","width"])),e.tableSize.useMaxHeight=e.tableSize.height===void 0,e.scrollbarXHeight=t.scrollbarXHeight,e.scrollbarYWidth=t.scrollbarYWidth}var fce=mM.reducer,ko=mM.actions,pce=ko.initialize,mce=ko.propChange,gce=ko.scrollEnd,vce=ko.scrollToX,yce=ko.scrollToY,bce=ko.updateRowHeights,_ce=function(t,r){var n=TT({scrollToX:vce,scrollToY:yce,scrollEnd:gce},t.dispatch),i=function(l){var u=t.getState(),c=u.scrollX;if(l!==c){var h=Math.round(l),f=r(),p=f.onHorizontalScroll;(!p||p(h))&&n.scrollToX(h)}},a=function(l){var u=t.getState(),c=u.scrollY;if(l!==c){var h=r(),f=h.onVerticalScroll;(!f||f(l))&&n.scrollToY(l)}};return{scrollToX:i,scrollToY:a,stopScroll:n.scrollEnd}},wce=ia,xce=wi,Cce="[object Number]";function Tce(e){return typeof e=="number"||xce(e)&&wce(e)==Cce}var Mce=Tce,Sce=Mce;function Ece(e){return Sce(e)&&e!=+e}var M_=Ece;function Pce(e,t,r,n,i){n=n||setTimeout,i=i||clearTimeout;var a;function o(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];o.reset();var h=function(){e.apply(r,u)};h.__SMmeta=e.__SMmeta,a=n(h,t)}return o.reset=function(){i(a)},o}function qt(e){e||(e="");var t,r=arguments.length;if(r>1)for(var n=1;n<r;n++)t=arguments[n],t&&(e=(e?e+" ":"")+t);return e}function Ace(e,t,r){var n=1,i=1,a=e+2,o=e+1,l=2;return t&&(i++,o++,a++,l++),r&&o++,{ariaGroupHeaderIndex:n,ariaHeaderIndex:i,ariaFooterIndex:a,ariaRowCount:o,ariaRowIndexOffset:l}}var Rce=Zn([function(e){return e.rowsCount},function(e){return e.groupHeaderHeight>0},function(e){return e.footerHeight>0}],Ace);function Oce(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),l=o.length;l--;){var u=o[e?l:++i];if(r(a[u],u,a)===!1)break}return t}}var kce=Oce,Dce=kce,Nce=Dce(),Lce=Nce,Ice=Lce,$ce=Rd;function Fce(e,t){return e&&Ice(e,t,$ce)}var zce=Fce,Bce=Rl;function Hce(e,t){return function(r,n){if(r==null)return r;if(!Bce(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var Wce=Hce,jce=zce,Vce=Wce,Gce=Vce(jce),Uce=Gce,Yce=wT;function qce(e){return typeof e=="function"?e:Yce}var Xce=qce,Zce=MT,Kce=Uce,Qce=Xce,Jce=Kr;function ede(e,t){var r=Jce(e)?Zce:Kce;return r(e,Qce(t))}var S_=ede;function tde(e,t){var r=e.columnGroupProps,n=e.columnProps,i=[],a=[],o=[];S_(r,function(h,f){var p={props:h,template:t.groupHeader[f]};h.fixed?i.push(p):h.fixedRight?a.push(p):o.push(p)});var l={cell:[],header:[],footer:[]},u={cell:[],header:[],footer:[]},c={cell:[],header:[],footer:[]};return S_(n,function(h,f){var p=c;h.fixed?p=l:h.fixedRight&&(p=u),p.cell.push({props:h,template:t.cell[f]}),p.header.push({props:h,template:t.header[f]}),p.footer.push({props:h,template:t.footer[f]})}),{fixedColumnGroups:i,fixedColumns:l,fixedRightColumnGroups:a,fixedRightColumns:u,scrollableColumnGroups:o,scrollableColumns:c}}var rde=Zn([function(e){return kl(e)},function(e){return e.elementTemplates}],tde);function nde(e,t){return e==null||e!==e?t:e}var ide=nde,ade=Math.max,ode=Math.min;function sde(e,t,r){return e>=ode(t,r)&&e<ade(t,r)}var lde=sde,ude=xg,E_=1/0,cde=17976931348623157e292;function dde(e){if(!e)return e===0?e:0;if(e=ude(e),e===E_||e===-E_){var t=e<0?-1:1;return t*cde}return e===e?e:0}var hde=dde,fde=lde,P_=hde,pde=xg;function mde(e,t,r){return t=P_(t),r===void 0?(r=t,t=0):r=P_(r),e=pde(e),fde(e,t,r)}var Vi=mde;function gde(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Wn(e,t){if(e==null)return{};var r,n,i=gde(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var vde=["height","width","isVisible","style","className","children","columnKey","columnIndex","rowIndex","left","cellGroupType","isHeader","isGroupHeader","maxWidth","minWidth","touchEnabled"];function A_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yde(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A_(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bde(e){var t=_de();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function _de(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Ec=function(e){Ht(r,e);var t=bde(r);function r(){return ft(this,r),t.apply(this,arguments)}return pt(r,[{key:"render",value:function(){var i=this.props,a=i.height,o=i.width,l=i.style,u=i.className,c=i.children,h=Wn(i,vde),f=yde({height:a,width:o},l);return k.createElement("div",bt({},h,{className:qt(Re("fixedDataTableCellLayout/wrap1"),Re("public/fixedDataTableCell/wrap1"),u),style:f}),k.createElement("div",{className:qt(Re("fixedDataTableCellLayout/wrap2"),Re("public/fixedDataTableCell/wrap2"))},k.createElement("div",{className:qt(Re("fixedDataTableCellLayout/wrap3"),Re("public/fixedDataTableCell/wrap3"))},k.createElement("div",{className:Re("public/fixedDataTableCell/cellContent")},c))))}}]),r}(k.Component);ue(Ec,"propTypes",{height:z.number,width:z.number,columnKey:z.oneOfType([z.string,z.number]),rowIndex:z.number,isVisible:z.bool});function gM(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function vM(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n!=null?n:null}this.setState(t.bind(this))}function yM(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}}gM.__suppressDeprecationWarning=!0;vM.__suppressDeprecationWarning=!0;yM.__suppressDeprecationWarning=!0;function bM(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,i=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"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),r!==null||n!==null||i!==null){var a=e.displayName||e.name,o=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
390
+
391
+ `+a+" uses "+o+" but also contains the following legacy lifecycles:"+(r!==null?`
392
+ `+r:"")+(n!==null?`
393
+ `+n:"")+(i!==null?`
394
+ `+i:"")+`
395
+
396
+ The above lifecycles should be removed. Learn more about this warning here:
397
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=gM,t.componentWillReceiveProps=vM),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=yM;var l=t.componentDidUpdate;t.componentDidUpdate=function(c,h,f){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;l.call(this,c,h,p)}}return e}var wde=["height","width","isVisible","style","className","children","columnKey","columnIndex","rowIndex","left","cellGroupType","isHeader","isGroupHeader","maxWidth","minWidth","touchEnabled"];function R_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xde(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R_(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Ig=k.forwardRef(function(t,r){var n=t.height,i=t.width,a=t.style,o=t.className,l=t.children,u=Wn(t,wde),c=xde({height:n,width:i},a);return k.createElement("div",bt({},u,{className:qt(Re("fixedDataTableCellLayout/wrap"),Re("public/fixedDataTableCell/wrap"),Re("public/fixedDataTableCell/cellContent"),o),style:c,ref:r}),l)});Ig.propTypes={height:z.number,width:z.number,columnKey:z.oneOfType([z.string,z.number]),rowIndex:z.number,isVisible:z.bool};var lo=k.createContext({}),Cde=mT;function Tde(e,t,r){var n=e==null?void 0:Cde(e,t);return n===void 0?r:n}var wm=Tde;function Mde(e){var t=Sde();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Sde(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var O_=15,k_=100,$g=function(e){Ht(r,e);var t=Mde(r);function r(){var n;ft(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),ue(fe(n),"state",{displacement:0}),ue(fe(n),"containerRef",k.createRef()),ue(fe(n),"onTouchEnd",function(l){n.props.touchEnabled&&l.stopPropagation()}),ue(fe(n),"onTouchMove",function(l){n.props.touchEnabled&&l.stopPropagation()}),ue(fe(n),"onMouseMove",function(l){n.cursorDeltaX+=l*(n.context.isRTL?-1:1)}),ue(fe(n),"onMouseUp",function(){JT(n.frameId),n.setState({displacement:0,isReordering:!1}),n.updateColumnOrder(),n.frameId=null,n.cursorDeltaX=0,n.mouseMoveTracker.releaseMouseMoves()}),ue(fe(n),"initializeDOMMouseMoveTracker",function(l){n.mouseMoveTracker=new Pg(n.onMouseMove,n.onMouseUp,document.body,n.props.touchEnabled),n.mouseMoveTracker.captureMouseMoves(l)}),ue(fe(n),"updateDisplacementPeriodically",function(){n.frameId=li(n.updateDisplacementPeriodically),n.updateDisplacementWithScroll()}),ue(fe(n),"getBoundedDeltaX",function(l){var u=0,c=0,h=n.props.cellGroupType,f=n.context.groupHeaderHeight>0;if(f&&!n.props.isGroupHeader){var p=n.context.getColumnGroupByChild(n.props.columnIndex);u=p.width,c=p.offset}else u=n.context.getCellGroupWidth(h);var g=u-n.props.width;return Dd(l,-n.originalLeft+c,-n.originalLeft+g+c)}),ue(fe(n),"updateDisplacementWithScroll",function(){var l=n.scrollStart,u=n.props.cellGroupType,c=n.context,h=c.scrollX,f=c.maxScrollX,p=c.availableScrollWidth,g=n.cursorDeltaX;if(u===Oe.SCROLLABLE){var b=n.originalLeft-l+g;g+=h-l,b>p-k_?h=Math.min(h+O_,f):b<=k_&&(h=Math.max(h-O_,0)),n.context.scrollToX(h)}g=n.getBoundedDeltaX(g),n.setState({displacement:g})}),ue(fe(n),"isColumnMovedToRight",function(l){return l>0}),ue(fe(n),"isColumnMovedToLeft",function(l){return l<0}),ue(fe(n),"updateColumnOrder",function(){var l=n.props.cellGroupType,u=n.getBoundedDeltaX(n.cursorDeltaX+n.context.scrollX-n.scrollStart),c=u>=0?n.props.width+u+n.props.left:u+n.props.left,h,f;if(n.props.isGroupHeader){var p=n.context.getColumnGroupAtOffset(c,l),g=p.columnGroup,b=p.distanceFromOffset;h=g,f=b}else{var v=n.context.getColumnAtOffset(c,l),w=v.column,C=v.distanceFromOffset;h=w,f=C}var T=null,E=null;h.index<n.props.columnIndex?f<=h.width/2?(T=h.index-1,E=h.index):(T=h.index,E=h.index+1):f>=h.width/2?(T=h.index,E=h.index+1):(T=h.index-1,E=h.index),T===n.props.columnIndex&&--T,E===n.props.columnIndex&&++E;var S=n.props.isGroupHeader?n.context.getColumnGroupCount():n.context.getColumnCount(),P,R;Vi(T,0,S)&&(P=n.props.isGroupHeader?n.context.getColumnGroup(T):n.context.getColumn(T)),Vi(E,0,S)&&(R=n.props.isGroupHeader?n.context.getColumnGroup(E):n.context.getColumn(E)),n.props.onColumnReorderEnd({columnBefore:wm(P,"columnKey"),columnAfter:wm(R,"columnKey"),reorderColumn:n.props.columnKey})}),n}return pt(r,[{key:"componentDidMount",value:function(){var i=this.props.contents.parentNode.cloneNode(!0);i.firstChild.classList.add(Re("public/fixedDataTableCell/reordering")),this.containerRef.current.appendChild(i),this.startDrag()}},{key:"render",value:function(){var i={position:"absolute"};return oo(i,this.state.displacement,0,!0,this.context.isRTL),k.createElement("div",{style:i,ref:this.containerRef})}},{key:"startDrag",value:function(){this.cursorDeltaX=0,this.scrollStart=this.context.scrollX,this.originalLeft=this.props.left,this.initializeDOMMouseMoveTracker(this.props.reorderStartEvent),this.setState({displacement:0,isReordering:!0}),this.frameId=li(this.updateDisplacementPeriodically)}}]),r}(k.PureComponent);$g.contextType=lo;$g.propTypes={columnIndex:z.number.isRequired,columnKey:z.string.isRequired,contents:z.object.isRequired,cellGroupType:z.string,isGroupHeader:z.bool,isRTL:z.bool,left:z.number.isRequired,onColumnReorderStart:z.func.isRequired,reorderStartEvent:z.object.isRequired,touchEnabled:z.bool,width:z.number.isRequired};function Ede(e){var t=Pde();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Pde(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Ade=function(e){Ht(r,e);var t=Ede(r);function r(n){var i;ft(this,r),i=t.call(this,n);var a=n.value;return i.unsubscribe=a.subscribe(function(o){i.setState({FixedDataTableContextValue:o})}),i.state={FixedDataTableContextValue:a},i}return pt(r,[{key:"componentWillUnmount",value:function(){this.unsubscribe()}},{key:"render",value:function(){var i=this.state.FixedDataTableContextValue;return k.createElement(lo.Provider,{value:i},this.props.children)}}]),r}(k.PureComponent);function Rde(){}var Ode=Rde,kde=["onColumnReorderStart","onColumnReorderEnd","reorderStartEvent","children"];function Dde(e){var t=Nde();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Nde(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Lde=1,tl=function(e){Ht(r,e);var t=Dde(r);function r(){var n;ft(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),ue(fe(n),"state",{isReordering:!1}),ue(fe(n),"dragContainer",null),ue(fe(n),"cellRef",k.createRef()),ue(fe(n),"isMounted",!1),ue(fe(n),"setReorderHandle",function(l){l&&(l.addEventListener("mousedown",n.onMouseDown,{passive:!1}),l.addEventListener("touchstart",n.onTouchStart,{passive:!1}))}),ue(fe(n),"onTouchStart",function(l){n.props.touchEnabled&&n.onMouseDown(l)}),ue(fe(n),"onMouseDown",function(l){n.onDragStart(l)}),ue(fe(n),"onDragStart",function(l){n.createDragContainer(),n.renderDragProxy(l),n.props.onColumnReorderStart(n.props.columnKey)}),ue(fe(n),"onColumnReorderEnd",function(l){n.isMounted&&n.setState({isReordering:!1}),n.removeDragContainer(),n.props.onColumnReorderEnd(l)}),ue(fe(n),"createDragContainer",function(){n.dragContainer=document.createElement("div"),n.dragContainer.dataset.columnKey=n.props.columnKey;var l=n.cellRef.current.closest(".fixedDataTableCellGroupLayout_cellGroup");l.appendChild(n.dragContainer)}),ue(fe(n),"getDragContainer",function(){if(n.dragContainer)return n.dragContainer;var l=n.cellRef.current.closest(".fixedDataTableCellGroupLayout_cellGroup");return n.dragContainer=l.querySelector('[data-column-key="'.concat(n.props.columnKey,'"]')),n.dragContainer}),ue(fe(n),"removeDragContainer",function(){n.props.__react19RootCreator?n.dragContainer.root.unmount():Ar.unmountComponentAtNode(n.dragContainer),n.dragContainer.remove(),n.dragContainer=null}),n}return pt(r,[{key:"componentDidMount",value:function(){this.isMounted=!0;var i=wm(this.getDragContainer(),"dataset.columnKey"),a=pT(this.props.columnKey)===i;a&&(this.renderDragProxy({}),this.setState({isReordering:!0}))}},{key:"componentWillUnmount",value:function(){this.isMounted=!1}},{key:"render",value:function(){if(this.state.isReordering)return null;var i=this.props,a=i.children,o=Wn(i,kde),l=qt(Re({"public/fixedDataTableCell/resizeReorderCellContainer":!0}),o.className),u=qt(l,Re({"public/fixedDataTableCell/hasReorderHandle":!0})),c={height:o.height,width:o.width-Lde},h;return k.isValidElement(a)?h=k.cloneElement(a,o):typeof a=="function"?h=a(o):h=k.createElement(Ig,o,a),k.createElement("div",{className:u,style:c,ref:this.cellRef},this.renderReorderHandle(),h)}},{key:"renderReorderHandle",value:function(){var i={height:this.props.height};return k.createElement("div",{ref:this.setReorderHandle,className:Re({"fixedDataTableCellLayout/columnReorderContainer":!0,"fixedDataTableCellLayout/columnReorderContainer/active":!1}),style:i})}},{key:"renderDragProxy",value:function(i){var a=this,o={isDragProxy:!0,reorderStartEvent:i,onColumnReorderEnd:this.onColumnReorderEnd,contents:this.cellRef.current},l=k.createElement(Ade,{value:this.context},k.createElement($g,bt({},this.props,o)));if(this.props.__react19RootCreator){var u=Ar.flushSync||function(c){return c()};u(function(){var c=a.props.__react19RootCreator(a.getDragContainer());a.dragContainer.root=c,c.render(l)}),this.setState({isReordering:!0});return}Ar.render(l,this.getDragContainer(),function(){return a.setState({isReordering:!0})})}}]),r}(k.PureComponent);tl.contextType=lo;tl.defaultProps={onColumnReorderStart:Ode};tl.propTypes={height:z.number,width:z.number,columnKey:z.oneOfType([z.string,z.number]),rowIndex:z.number,left:z.number,touchEnabled:z.bool,minWidth:z.number,maxWidth:z.number,onColumnReorderStart:z.func,onColumnReorderEnd:z.func.isRequired,__react19RootCreator:z.func};var Ide=!!(typeof window!="undefined"&&window.document&&window.document.createElement),$de=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Fde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zde(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Bde(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _M=function(e){Bde(t,e);function t(){return Fde(this,t),zde(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return $de(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return Ide?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Ar.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(k.Component);_M.propTypes={children:z.node.isRequired,node:z.any};var Hde=_M,Wde=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function jde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vde(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Gde(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var wM=function(e){Gde(t,e);function t(){return jde(this,t),Vde(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Wde(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(n){this.renderPortal()}},{key:"componentWillUnmount",value:function(){Ar.unmountComponentAtNode(this.defaultNode||this.props.node),this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null,this.portal=null}},{key:"renderPortal",value:function(n){!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode));var i=this.props.children;typeof this.props.children.type=="function"&&(i=k.cloneElement(this.props.children)),this.portal=Ar.unstable_renderSubtreeIntoContainer(this,i,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(k.Component),Ude=wM;wM.propTypes={children:z.node.isRequired,node:z.any};var xm=void 0;Ar.createPortal?xm=Hde:xm=Ude;var Yde=xm;function qde(e){var t=Xde();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Xde(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var xM=function(e){Ht(r,e);var t=qde(r);function r(){return ft(this,r),t.apply(this,arguments)}return pt(r,[{key:"render",value:function(){if(!this.props.visible)return null;var i=this.getTableRef();if(!i)return null;var a={height:this.props.height,top:0,left:this.props.left};return k.createElement(Yde,{node:i},k.createElement("div",{className:qt(Re("fixedDataTableColumnResizerLineLayout/main"),Re("public/fixedDataTableColumnResizerLine/main")),style:a},k.createElement("div",{className:Re("fixedDataTableColumnResizerLineLayout/mouseArea"),style:{height:this.props.height}})))}},{key:"getTableRef",value:function(){var i=this.props.parentRef;return i?i.closest(Re(".fixedDataTableLayout/main")):null}}]),r}(k.PureComponent);ue(xM,"propTypes",{visible:z.bool.isRequired,height:z.number.isRequired,left:z.number.isRequired,parentRef:z.object});function D_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zde(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D_(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kde(e){var t=Qde();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Qde(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var CM=function(e){Ht(r,e);var t=Kde(r);function r(n){var i;return ft(this,r),i=t.call(this,n),ue(fe(i),"initialState",{isColumnResizing:!1,currentMouseXCoordinate:0,totalDisplacement:0}),ue(fe(i),"state",Zde({},i.initialState)),ue(fe(i),"resizerKnobRef",null),ue(fe(i),"mouseMoveTracker",null),ue(fe(i),"setResizerKnobRef",function(a){i.resizerKnobRef=a}),ue(fe(i),"initializeDOMMouseMoveTracker",function(a){i.mouseMoveTracker=new Pg(i.onMouseMove,i.onMouseUp,document.body,i.props.touchEnabled),i.mouseMoveTracker.captureMouseMoves(a)}),ue(fe(i),"onTouchStart",function(a){i.props.touchEnabled&&i.onMouseDown(a)}),ue(fe(i),"onMouseDown",function(a){i.initializeDOMMouseMoveTracker(a);var o=hm.getCoordinatesFromEvent(a).x-a.currentTarget.closest(Re(".fixedDataTableLayout/main")).getBoundingClientRect().left;i.setState({initialMouseXCoordinate:o,isColumnResizing:!0,totalDisplacement:0,currentMouseXCoordinate:o})}),ue(fe(i),"onMouseUp",function(){var a=i.getMinMaxWidth(),o=a.minWidth,l=a.maxWidth,u=Od(i.props.width+i.state.totalDisplacement*(i.props.isRTL?-1:1),o,l);i.mouseMoveTracker.releaseMouseMoves(),i.setState({isColumnResizing:!1,totalDisplacement:0},function(){i.props.onColumnResizeEnd(u,i.props.columnKey)})}),ue(fe(i),"onMouseMove",function(a){var o=i.props,l=o.isRTL,u=o.width,c=i.state,h=c.initialMouseXCoordinate,f=c.totalDisplacement,p=f+a,g=h+p,b=i.getMinMaxWidth(),v=b.minWidth,w=b.maxWidth,C=u+p*(l?-1:1);(C<v||C>w)&&(g=i.state.currentMouseXCoordinate),i.setState({totalDisplacement:p,currentMouseXCoordinate:g})}),ue(fe(i),"getMinMaxWidth",function(){return{minWidth:i.props.minWidth||0,maxWidth:i.props.maxWidth||Number.MAX_SAFE_INTEGER}}),ue(fe(i),"suppressEventIfInTouchMode",function(a){i.props.touchEnabled&&(a.preventDefault(),a.stopPropagation())}),i}return pt(r,[{key:"componentDidMount",value:function(){this.setupHandlers()}},{key:"componentWillUnmount",value:function(){this.cleanupHandlers()}},{key:"render",value:function(){var i={height:this.props.height},a=k.createElement(xM,{height:this.props.resizerLineHeight,visible:!!this.state.isColumnResizing,left:this.state.currentMouseXCoordinate,parentRef:this.resizerKnobRef});return k.createElement("div",{className:Re("fixedDataTableCellLayout/columnResizerContainer"),ref:this.setResizerKnobRef,style:i},a)}},{key:"setupHandlers",value:function(){this.resizerKnobRef.addEventListener("mousedown",this.onMouseDown,{passive:!1}),this.resizerKnobRef.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.resizerKnobRef.addEventListener("touchmove",this.suppressEventIfInTouchMode,{passive:!1}),this.resizerKnobRef.addEventListener("touchend",this.suppressEventIfInTouchMode,{passive:!1})}},{key:"cleanupHandlers",value:function(){this.resizerKnobRef.removeEventListener("mousedown",this.onMouseDown,{passive:!1}),this.resizerKnobRef.removeEventListener("touchstart",this.onTouchStart,{passive:!1}),this.resizerKnobRef.removeEventListener("touchmove",this.suppressEventIfInTouchMode,{passive:!1}),this.resizerKnobRef.removeEventListener("touchend",this.suppressEventIfInTouchMode,{passive:!1})}}]),r}(k.PureComponent);CM.propTypes={columnKey:z.oneOfType([z.string,z.number]).isRequired,minWidth:z.number,maxWidth:z.number,width:z.number.isRequired,resizerLineHeight:z.number.isRequired,touchEnabled:z.bool,isRTL:z.bool,onColumnResizeEnd:z.func.isRequired,height:z.number.isRequired};var Jde=["children","minWidth","maxWidth","onColumnResizeEnd","onColumnReorderEnd","rowIndex","left","touchEnabled","cellGroupType","onColumnReorderStart"];function ehe(e){var t=the();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function the(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Pc=function(e){Ht(r,e);var t=ehe(r);function r(){return ft(this,r),t.apply(this,arguments)}return pt(r,[{key:"render",value:function(){var i=this.props,a=i.children,o=Wn(i,Jde),l;return k.isValidElement(a)?l=k.cloneElement(a,o):typeof a=="function"?l=a(o):l=k.createElement(Ig,o,a),k.createElement(k.Fragment,null,k.createElement(CM,{height:this.props.height,resizerLineHeight:this.context.tableHeight,onColumnResizeEnd:this.props.onColumnResizeEnd,width:this.props.width,minWidth:this.props.minWidth,maxWidth:this.props.maxWidth,columnKey:this.props.columnKey,touchEnabled:this.props.touchEnabled,isRTL:this.context.isRTL}),l)}}]),r}(k.PureComponent);Pc.contextType=lo;Pc.propTypes={columnKey:z.oneOfType([z.string,z.number]),minWidth:z.number,maxWidth:z.number,width:z.number,touchEnabled:z.bool,isRTL:z.bool,onColumnResizeEnd:z.func.isRequired,height:z.number};var rhe=["cell"],nhe=["cell"],ihe=["height","width","columnIndex","isVisible","columnKey","isHeaderOrFooter","touchEnabled"];function N_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ou(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N_(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ahe(e){var t=ohe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function ohe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Fg=function(e){Ht(r,e);var t=ahe(r);function r(){return ft(this,r),t.apply(this,arguments)}return pt(r,[{key:"shouldComponentUpdate",value:function(i){if(i.isScrolling&&this.props.rowIndex===i.rowIndex&&this.props.isVisible===i.isVisible)return!1;if(!i.pureRendering)return!0;var a=this.props,o=a.cell,l=Wn(a,rhe),u=i.cell,c=Wn(i,nhe);return!Zs(l,c)||!o||!u||o.type!==u.type||!Zs(o.props,u.props)}},{key:"render",value:function(){var i=this.props,a=i.height,o=i.width,l=i.isVisible,u=i.isHeaderOrFooter,c=i.touchEnabled,h=Wn(i,ihe),f={height:a,width:o};this.props.isRTL?f.right=h.left:f.left=h.left;var p=qt(Re({"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}),h.className),g={touchEnabled:c,isVisible:l,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,cellGroupType:this.props.cellGroupType,columnIndex:this.props.columnIndex,columnKey:this.props.columnKey,height:this.props.height,width:this.props.width,left:this.props.left};h.rowIndex>=0&&(g.rowIndex=h.rowIndex);var b;this.props.isHeader&&(this.props.onColumnResizeEnd||this.props.onColumnReorderEnd)?this.props.onColumnResizeEnd&&this.props.onColumnReorderEnd?(g=Ou(Ou({},g),{},{minWidth:this.props.minWidth,maxWidth:this.props.maxWidth}),b=k.createElement(tl,bt({},g,{onColumnReorderEnd:this.props.onColumnReorderEnd}),k.createElement(Pc,{onColumnResizeEnd:this.props.onColumnResizeEnd},h.cell))):this.props.onColumnReorderEnd?b=k.createElement(tl,bt({},g,{onColumnReorderEnd:this.props.onColumnReorderEnd}),h.cell):(g=Ou(Ou({},g),{},{minWidth:this.props.minWidth,maxWidth:this.props.maxWidth}),b=k.createElement(Pc,bt({},g,{onColumnResizeEnd:this.props.onColumnResizeEnd}),h.cell)):k.isValidElement(h.cell)?b=k.cloneElement(h.cell,g):typeof h.cell=="function"?b=h.cell(g):b=k.createElement(Ec,g,h.cell);var v=u?"columnheader":"gridcell";return k.createElement("div",{className:p,style:f,role:v},b)}}]),r}(k.Component);ue(Fg,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:z.bool,align:z.oneOf(["left","center","right"]),className:z.string,highlighted:z.bool,width:z.number.isRequired,minWidth:z.number,maxWidth:z.number,height:z.number.isRequired,cell:z.oneOfType([z.string,z.element,z.func]),columnKey:z.oneOfType([z.string,z.number]),rowIndex:z.number.isRequired,left:z.number,pureRendering:z.bool,touchEnabled:z.bool,isHeaderOrFooter:z.bool,isRTL:z.bool,isVisible:z.bool.isRequired,onColumnResizeEnd:z.func,onColumnReorderEnd:z.func,isHeader:z.bool,cellGroupType:z.oneOf([Oe.FIXED,Oe.FIXED_RIGHT,Oe.SCROLLABLE])});ue(Fg,"defaultProps",{align:"left",highlighted:!1});var she=bM(Fg),lhe=["offsetLeft"];function TM(e){var t=uhe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function uhe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var MM=function(e){Ht(r,e);var t=TM(r);function r(n){var i;return ft(this,r),i=t.call(this,n),ue(fe(i),"_renderCell",function(a,o,l,u,c,h,f){var p=l.cellClassName,g=l.pureRendering||!1,b=l.isReorderable?i.props.onColumnReorderEndCallback:null,v=l.isResizable?i.props.onColumnResizeEndCallback:null;return k.createElement(she,{columnIndex:l.index,isScrolling:i.props.isScrolling,isHeaderOrFooter:i.props.isHeaderOrFooter,isHeader:i.props.isHeader,isGroupHeader:i.props.isGroupHeader,align:l.align,className:p,height:o,key:h,maxWidth:l.maxWidth,minWidth:l.minWidth,touchEnabled:i.props.touchEnabled,onColumnResizeEnd:v,onColumnReorderEnd:b,rowIndex:a,columnKey:l.columnKey,width:l.width,left:c,cell:u,pureRendering:g,isRTL:i.props.isRTL,cellGroupType:i.props.cellGroupType,isVisible:i.props.isVisible&&f})}),i._initialRender=!0,i}return pt(r,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"render",value:function(){for(var i=this.props,a=i.columns,o=new Array(a.length),l=Gu(a),u=0,c=0,h=a.length;c<h;c++){var f=a[c].props,p=a[c].template,g=f.allowCellsRecycling,b=u-i.left<=i.width&&u-i.left+f.width>=0;if(!g||b){var v=f.columnKey||"cell_"+c;o[c]=this._renderCell(i.rowIndex,i.rowHeight,f,p,u,v,b)}u+=f.width}var w={height:i.height,position:"absolute",width:l,zIndex:i.zIndex};return oo(w,-1*i.left,0,this._initialRender,this.props.isRTL),k.createElement("div",{className:Re("fixedDataTableCellGroupLayout/cellGroup"),style:w},o)}}]),r}(k.Component);ue(MM,"propTypes_DISABLED_FOR_PERFORMANCE",{columns:z.array.isRequired,isScrolling:z.bool,left:z.number,height:z.number.isRequired,cellGroupWrapperHeight:z.number,rowHeight:z.number.isRequired,rowIndex:z.number.isRequired,width:z.number.isRequired,zIndex:z.number.isRequired,touchEnabled:z.bool,isHeaderOrFooter:z.bool,isRTL:z.bool,onColumnResizeEndCallback:z.func,onColumnReorderEndCallback:z.func,isHeader:z.bool,isVisible:z.bool.isRequired});var ks=function(e){Ht(r,e);var t=TM(r);function r(){return ft(this,r),t.apply(this,arguments)}return pt(r,[{key:"shouldComponentUpdate",value:function(i){return!(i.isScrolling&&this.props.rowIndex===i.rowIndex&&this.props.left===i.left&&this.props.offsetLeft===i.offsetLeft&&this.props.isVisible===i.isVisible)}},{key:"render",value:function(){var i=this.props,a=i.offsetLeft,o=Wn(i,lhe),l={height:o.cellGroupWrapperHeight||o.height,width:o.width};return this.props.isRTL?l.right=a:l.left=a,k.createElement("div",{style:l,className:Re("fixedDataTableCellGroupLayout/cellGroupWrapper")},k.createElement(MM,o))}}]),r}(k.Component);ue(ks,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:z.bool,height:z.number.isRequired,offsetLeft:z.number,left:z.number,zIndex:z.number.isRequired});ue(ks,"defaultProps",{left:0,offsetLeft:0});var che=["offsetTop","zIndex"];function SM(e){var t=dhe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function dhe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var hhe=1,EM=function(e){Ht(r,e);var t=SM(r);function r(){var n;ft(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),ue(fe(n),"mouseLeaveIndex",null),ue(fe(n),"_getRowExpanded",function(l){if(n.props.rowExpanded){var u={rowIndex:n.props.index,height:l,width:n.props.width},c;return k.isValidElement(n.props.rowExpanded)?c=k.cloneElement(n.props.rowExpanded,u):typeof n.props.rowExpanded=="function"&&(c=n.props.rowExpanded(u)),c}}),ue(fe(n),"_renderColumnsLeftShadow",function(l){var u=Re({"fixedDataTableRowLayout/fixedColumnsDivider":l>0,"fixedDataTableRowLayout/columnsShadow":n.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":l>0,"public/fixedDataTableRow/columnsShadow":n.props.scrollLeft>0}),c=n.props.cellGroupWrapperHeight?n.props.cellGroupWrapperHeight-hhe:n.props.height,h={left:l,height:c};return n.props.isRTL&&(h.right=l,h.left="auto"),k.createElement("div",{className:u,style:h})}),ue(fe(n),"_renderFixedRightColumnsShadow",function(l){var u=Re("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","fixedDataTableRowLayout/fixedColumnsDivider","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow","public/fixedDataTableRow/fixedColumnsDivider"),c={height:n.props.height,left:l};return n.props.isRTL&&(c.right=l,c.left="auto"),k.createElement("div",{className:u,style:c})}),ue(fe(n),"_renderColumnsRightShadow",function(l){if(Math.ceil(n.props.scrollLeft+n.props.width)<Math.floor(l)){var u=Re("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow"),c={height:n.props.height};return k.createElement("div",{className:u,style:c})}}),ue(fe(n),"_onClick",function(l){n.props.onClick(l,n.props.index)}),ue(fe(n),"_onContextMenu",function(l){n.props.onContextMenu(l,n.props.index)}),ue(fe(n),"_onDoubleClick",function(l){n.props.onDoubleClick(l,n.props.index)}),ue(fe(n),"_onMouseUp",function(l){n.props.onMouseUp(l,n.props.index)}),ue(fe(n),"_onMouseDown",function(l){n.props.onMouseDown(l,n.props.index)}),ue(fe(n),"_onMouseEnter",function(l){n.mouseLeaveIndex=n.props.index,n.props.onMouseEnter&&n.props.onMouseEnter(l,n.props.index)}),ue(fe(n),"_onMouseLeave",function(l){n.mouseLeaveIndex===null&&(n.mouseLeaveIndex=n.props.index),n.props.onMouseLeave(l,n.mouseLeaveIndex),n.mouseLeaveIndex=null}),ue(fe(n),"_onTouchStart",function(l){n.props.onTouchStart(l,n.props.index)}),ue(fe(n),"_onTouchEnd",function(l){n.props.onTouchEnd(l,n.props.index)}),ue(fe(n),"_onTouchMove",function(l){n.props.onTouchMove(l,n.props.index)}),n}return pt(r,[{key:"shouldComponentUpdate",value:function(i){return i.isScrolling?i.visible?this.props.visible!==i.visible?!0:!(this.props.index===i.index&&this.props.scrollLeft===i.scrollLeft):!1:!0}},{key:"render",value:function(){var i=this.props.subRowHeight||0,a={width:this.props.width,height:this.props.height+i},o=Re({"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}),l=Gu(this.props.fixedColumns),u=k.createElement(ks,{key:"fixed_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,left:0,width:l,zIndex:2,columns:this.props.fixedColumns,touchEnabled:this.props.touchEnabled,onColumnResizeEndCallback:this.props.onColumnResizeEndCallback,onColumnReorderEndCallback:this.props.onColumnReorderEndCallback,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,isRTL:this.props.isRTL,cellGroupType:Oe.FIXED,isVisible:this.props.visible}),c=this._renderColumnsLeftShadow(l),h=Gu(this.props.fixedRightColumns),f=this.props.showScrollbarY?this.props.scrollbarYWidth:0,p=k.createElement(ks,{key:"fixed_right_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,offsetLeft:this.props.width-h-f,width:h,zIndex:2,columns:this.props.fixedRightColumns,touchEnabled:this.props.touchEnabled,onColumnResizeEndCallback:this.props.onColumnResizeEndCallback,onColumnReorderEndCallback:this.props.onColumnReorderEndCallback,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,isRTL:this.props.isRTL,cellGroupType:Oe.FIXED_RIGHT,isVisible:this.props.visible}),g=h?this._renderFixedRightColumnsShadow(this.props.width-h-f-5):null,b=k.createElement(ks,{key:"scrollable_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,align:"right",left:this.props.scrollLeft,offsetLeft:l,width:this.props.width-l-h-f,zIndex:0,columns:this.props.scrollableColumns,touchEnabled:this.props.touchEnabled,onColumnResizeEndCallback:this.props.onColumnResizeEndCallback,onColumnReorderEndCallback:this.props.onColumnReorderEndCallback,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,isRTL:this.props.isRTL,cellGroupType:Oe.SCROLLABLE,isVisible:this.props.visible}),v=Gu(this.props.scrollableColumns),w=this._renderColumnsRightShadow(l+v),C=this._getRowExpanded(i),T={height:i,top:this.props.height,width:this.props.width},E=null;if(this.props.showScrollbarY){var S={width:f,height:this.props.height,left:this.props.isRTL?2:this.props.width-f-2};E=k.createElement("div",{style:S,className:Re("public/fixedDataTable/scrollbarSpacer")})}return k.createElement("div",bt({className:qt(o,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:a}),k.createElement("div",{className:Re("fixedDataTableRowLayout/body")},u,b,c,p,g,E),C&&k.createElement("div",{className:Re("fixedDataTableRowLayout/rowExpanded"),style:T},C),w)}}]),r}(k.Component);ue(EM,"propTypes",{isScrolling:z.bool,fixedColumns:z.array.isRequired,fixedRightColumns:z.array.isRequired,height:z.number.isRequired,cellGroupWrapperHeight:z.number,subRowHeight:z.number,rowExpanded:z.oneOfType([z.element,z.func]),index:z.number.isRequired,scrollableColumns:z.array.isRequired,scrollLeft:z.number.isRequired,width:z.number.isRequired,onClick:z.func,onContextMenu:z.func,onDoubleClick:z.func,onColumnReorderEndCallback:z.func,touchEnabled:z.bool,isHeaderOrFooter:z.bool,ariaRowIndex:z.number,isRTL:z.bool,attributes:z.object,onColumnResizeEndCallback:z.func,isHeader:z.bool,isGroupHeader:z.bool,scrollToX:z.func});var Ds=function(e){Ht(r,e);var t=SM(r);function r(n){var i;return ft(this,r),i=t.call(this,n),i._initialRender=!0,i}return pt(r,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"shouldComponentUpdate",value:function(i){return!i.isScrolling||this.props.visible!==i.visible?!0:i.visible?!(i.isScrolling&&this.props.index===i.index&&this.props.offsetTop===i.offsetTop&&this.props.scrollLeft===i.scrollLeft):!1}},{key:"render",value:function(){var i=this.props,a=i.offsetTop,o=i.zIndex,l=Wn(i,che),u={width:this.props.width,height:this.props.height,zIndex:o||0,visibility:l.visible?"visible":"hidden"};return oo(u,0,a,this._initialRender,this.props.isRTL),k.createElement("div",{style:u,className:Re("fixedDataTableRowLayout/rowWrapper")},k.createElement(EM,l))}}]),r}(k.Component);ue(Ds,"propTypes",{isScrolling:z.bool,height:z.number.isRequired,zIndex:z.number,offsetTop:z.number.isRequired,visible:z.bool.isRequired,width:z.number.isRequired});function fhe(e){var t=phe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function phe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var PM=function(e){Ht(r,e);var t=fhe(r);function r(n){var i;return ft(this,r),i=t.call(this,n),i._staticRowArray=[],i._initialRender=!0,i}return pt(r,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"shouldComponentUpdate",value:function(){return!0}},{key:"componentWillUnmount",value:function(){this._staticRowArray.length=0}},{key:"render",value:function(){var i=this.props,a=i.offsetTop,o=i.rowOffsets,l=i.scrollTop,u=i.isScrolling,c=i.rowsToRender;c=c||[],u?this._staticRowArray.length=Math.max(this._staticRowArray.length,c.length):this._staticRowArray.length=c.length;for(var h=1e6,f=a-l%h,p=0;p<this._staticRowArray.length;p++){var g,b=ide(c[p],(g=this._staticRowArray[p])===null||g===void 0?void 0:g.props.index);if(Os(b)||!Vi(b,0,this.props.rowSettings.rowsCount)){this._staticRowArray[p]=null;continue}var v=o[b]-Math.floor(l/h)*h;this._staticRowArray[p]=this.renderRow({rowIndex:b,key:p,rowOffsetTop:v})}var w={position:"relative"};oo(w,0,f,!1);var C=this._staticRowArray.slice().sort(this.rowSortComparator);return k.createElement("div",{style:w},C)}},{key:"renderRow",value:function(i){var a=i.rowIndex,o=i.key,l=i.rowOffsetTop,u=this.props,c=u.rowClassNameGetter||Zt,h={};h.height=this.props.rowSettings.rowHeightGetter(a),h.subRowHeight=this.props.rowSettings.subRowHeightGetter(a),h.offsetTop=l,h.key=u.rowKeyGetter?u.rowKeyGetter(a):o,h.attributes=u.rowSettings.rowAttributesGetter&&u.rowSettings.rowAttributesGetter(a);var f=a===u.rowSettings.rowsCount-1&&u.showLastRowBorder;h.className=qt(c(a),Re("public/fixedDataTable/bodyRow"),Re({"fixedDataTableLayout/hasBottomBorder":f,"public/fixedDataTable/hasBottomBorder":f}));var p=Vi(a,this.props.firstViewportRowIndex,this.props.endViewportRowIndex);return k.createElement(Ds,bt({key:o,index:a,ariaRowIndex:a+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:p},h))}},{key:"rowSortComparator",value:function(i,a){var o,l;return((o=i==null?void 0:i.props.ariaRowIndex)!==null&&o!==void 0?o:-1)-((l=a==null?void 0:a.props.ariaRowIndex)!==null&&l!==void 0?l:-1)}}]),r}(k.Component);ue(PM,"propTypes",{ariaRowIndexOffset:z.number,isScrolling:z.bool,firstViewportRowIndex:z.number.isRequired,endViewportRowIndex:z.number.isRequired,fixedColumns:z.array.isRequired,fixedRightColumns:z.array.isRequired,height:z.number.isRequired,offsetTop:z.number.isRequired,onRowClick:z.func,onRowContextMenu:z.func,onRowDoubleClick:z.func,onRowMouseDown:z.func,onRowMouseUp:z.func,onRowMouseEnter:z.func,onRowMouseLeave:z.func,onRowTouchStart:z.func,onRowTouchEnd:z.func,onRowTouchMove:z.func,rowClassNameGetter:z.func,rowExpanded:z.oneOfType([z.element,z.func]),rowOffsets:z.object.isRequired,rowKeyGetter:z.func,rowSettings:z.shape({rowAttributesGetter:z.func,rowHeightGetter:z.func,rowsCount:z.number.isRequired,subRowHeightGetter:z.func}),rowsToRender:z.array.isRequired,scrollLeft:z.number.isRequired,scrollTop:z.number.isRequired,scrollableColumns:z.array.isRequired,showLastRowBorder:z.bool,showScrollbarY:z.bool,width:z.number.isRequired,isRTL:z.bool});var L_=1.6,mhe=1.6,ghe=325,os=100,vhe=function(){function e(t,r,n,i,a){ft(this,e),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 r!="function"&&(r=r?Zt.thatReturnsTrue:Zt.thatReturnsFalse),typeof n!="function"&&(n=n?Zt.thatReturnsTrue:Zt.thatReturnsFalse),this._handleScrollX=r,this._handleScrollY=n,this._preventDefault=i,this._stopPropagation=a,this._onTouchScrollCallback=t,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 pt(e,[{key:"onTouchStart",value:function(r){this._lastTouchX=r.touches[0].pageX,this._lastTouchY=r.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,os),this._stopPropagation&&r.stopPropagation()}},{key:"onTouchEnd",value:function(r){clearInterval(this._trackerId),this._trackerId=null,li(this._startAutoScroll),this._stopPropagation&&r.stopPropagation()}},{key:"onTouchCancel",value:function(r){clearInterval(this._trackerId),this._trackerId=null,this._stopPropagation&&r.stopPropagation()}},{key:"onTouchMove",value:function(r){this._preventDefault&&r.preventDefault();var n=r.touches[0].pageX,i=r.touches[0].pageY;this._deltaX=L_*(this._lastTouchX-n),this._deltaY=L_*(this._lastTouchY-i);var a=this._handleScrollX(this._deltaX,this._deltaY),o=this._handleScrollY(this._deltaY,this._deltaX);if(!(!a&&!o)){a?this._lastTouchX=n:this._deltaX=0,o?this._lastTouchY=i:this._deltaY=0,r.defaultPrevented||r.preventDefault();var l=!1;(Math.abs(this._deltaX)>2||Math.abs(this._deltaY)>2)&&(this._stopPropagation&&r.stopPropagation(),l=!0),l===!0&&this._dragAnimationId===null&&(this._dragAnimationId=li(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 r=Date.now(),n=r-this._lastFrameTimestamp,i=this._velocityX,a=this._velocityY,o=.8;n<os&&(o*=n/os),i===0&&a===0&&(o=1),this._velocityX=o*(os*this._accumulatedDeltaX/(1+n)),o<1&&(this._velocityX+=(1-o)*i),this._velocityY=o*(os*this._accumulatedDeltaY/(1+n)),o<1&&(this._velocityY+=(1-o)*a),this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=r}},{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 r=Date.now()-this._autoScrollTimestamp,n=mhe*Math.exp(-r/ghe),i=n*this._velocityX,a=n*this._velocityY;(Math.abs(i)<=5||!this._handleScrollX(i,a))&&(i=0),(Math.abs(a)<=5||!this._handleScrollY(a,i))&&(a=0),(i!==0||a!==0)&&(this._onTouchScrollCallback(i,a),li(this._autoScroll))}}]),e}();function yhe(e){var t=bhe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function bhe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var ku=25,zg=function(e){Ht(r,e);var t=yhe(r);function r(n){var i;return ft(this,r),i=t.call(this,n),ue(fe(i),"_shouldHandleTouchX",function(a){return i.props.touchScrollEnabled&&i._shouldHandleWheelX(a)}),ue(fe(i),"_shouldHandleTouchY",function(a){return i.props.touchScrollEnabled&&i._shouldHandleWheelY(a)}),ue(fe(i),"_shouldHandleWheelX",function(a){var o=i.props,l=o.maxScrollX,u=o.scrollFlags,c=o.scrollX,h=u.overflowX;return h==="hidden"||(a=Math.round(a),a===0)?!1:a<0&&c>0||a>=0&&c<l}),ue(fe(i),"_shouldHandleWheelY",function(a){var o=i.props,l=o.maxScrollY,u=o.scrollFlags,c=o.scrollY,h=u.overflowY;return h==="hidden"||a===0||(a=Math.round(a),a===0)?!1:a<0&&c>0||a>=0&&c<l}),ue(fe(i),"_reportContentHeight",function(){var a=ja(i.props),o=a.contentHeight,l=i.props.onContentHeightChange;o!==i._contentHeight&&l&&l(o),i._contentHeight=o}),ue(fe(i),"_renderRows",function(a,o,l,u,c,h){var f=Ki(i.props),p=f.scrollEnabledY,g=i.props;return k.createElement(PM,{ariaRowIndexOffset:h,isScrolling:g.scrolling,fixedColumns:o,fixedRightColumns:l,firstViewportRowIndex:g.firstRowIndex,endViewportRowIndex:g.endRowIndex,height:c,offsetTop:a,onRowClick:g.onRowClick,onRowContextMenu:g.onRowContextMenu,onRowDoubleClick:g.onRowDoubleClick,onRowMouseUp:g.onRowMouseUp,onRowMouseDown:g.onRowMouseDown,onRowMouseEnter:g.onRowMouseEnter,onRowMouseLeave:g.onRowMouseLeave,onRowTouchStart:g.touchScrollEnabled?g.onRowTouchStart:null,onRowTouchEnd:g.touchScrollEnabled?g.onRowTouchEnd:null,onRowTouchMove:g.touchScrollEnabled?g.onRowTouchMove:null,rowClassNameGetter:g.rowClassNameGetter,rowExpanded:g.rowExpanded,rowKeyGetter:g.rowKeyGetter,rowSettings:g.rowSettings,scrollLeft:g.scrollX,scrollTop:g.scrollY,scrollableColumns:u,showLastRowBorder:!0,width:g.tableSize.width,rowsToRender:g.rows,rowOffsets:g.rowOffsets,showScrollbarY:p,scrollbarYWidth:g.scrollbarYWidth,isRTL:g.isRTL})}),ue(fe(i),"_onRef",function(a){i._divRef=a,i._wheelHandler&&(i.props.stopReactWheelPropagation?i._wheelHandler.setRoot(a):i._wheelHandler.setRoot(null))}),ue(fe(i),"_onScroll",function(a,o){var l=i.props,u=l.maxScrollX,c=l.maxScrollY,h=l.onHorizontalScroll,f=l.onVerticalScroll,p=l.scrollActions,g=l.scrollFlags,b=l.scrollX,v=l.scrollY,w=g.overflowX,C=g.overflowY,T=b,E=v;if(Math.abs(o)>Math.abs(a)&&C!=="hidden")E+=o,E=E<0?0:E,E=E>c?c:E,(!f||f(E))&&p.scrollToY(E);else if(a&&w!=="hidden"){T+=a,T=T<0?0:T,T=T>u?u:T;var S=Math.round(T);(!h||h(S))&&p.scrollToX(S)}}),ue(fe(i),"_scrollTo",function(a,o){i.props.scrollActions.scrollToX(a),i.props.scrollActions.scrollToY(o)}),ue(fe(i),"_didScroll",function(a){var o=i.props,l=o.onScrollStart,u=o.scrollX,c=o.scrollY,h=o.onHorizontalScroll,f=o.onVerticalScroll,p=o.tableSize.ownerHeight,g=o.scrolling,b=a.endRowIndex,v=a.firstRowIndex,w=a.scrollX,C=a.scrollY,T=a.tableSize.ownerHeight,E=a.scrolling,S=p!==T&&!(M_(p)&&M_(T)),P=u!==w,R=c!==C;!S&&!P&&!R||(!E&&g&&l&&l(w,C,v,b),P&&h&&h(u),R&&f&&f(c),i._didScrollStop())}),ue(fe(i),"_didScrollStopSync",function(){var a=i.props,o=a.endRowIndex,l=a.firstRowIndex,u=a.onScrollEnd,c=a.scrollActions,h=a.scrollX,f=a.scrollY,p=a.scrolling;p&&(c.stopScroll(),u&&u(h,f,l,o))}),i._didScrollStop=Pce(i._didScrollStopSync,200,fe(i)),i._onKeyDown=i._onKeyDown.bind(fe(i)),i._setupHandlers(),i}return pt(r,[{key:"componentWillUnmount",value:function(){this._cleanupHandlers(),this._didScrollStop.reset(),this._didScrollStopSync()}},{key:"_setupHandlers",value:function(){this._wheelHandler||(this._wheelHandler=new QT(this._onScroll,this._shouldHandleWheelX,this._shouldHandleWheelY,this.props.isRTL,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._touchHandler||(this._touchHandler=new vhe(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(i){var a=ja(this.props),o=a.scrollbarYHeight;if(this.props.keyboardPageEnabled)switch(i.key){case"PageDown":this._onScroll(0,o),i.preventDefault();break;case"PageUp":this._onScroll(0,o*-1),i.preventDefault();break}if(this.props.keyboardScrollEnabled)switch(i.key){case"ArrowDown":this._onScroll(0,ku),i.preventDefault();break;case"ArrowUp":this._onScroll(0,ku*-1),i.preventDefault();break;case"ArrowRight":this._onScroll(ku,0),i.preventDefault();break;case"ArrowLeft":this._onScroll(ku*-1,0),i.preventDefault();break}}},{key:"shouldComponentUpdate",value:function(i){return!Zs(this.props,i)}},{key:"componentDidMount",value:function(){this._setupHandlers(),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"componentDidUpdate",value:function(i){this._didScroll(i),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"_reportScrollBarsUpdates",value:function(){var i=ja(this.props),a=i.bodyOffsetTop,o=i.scrollbarXOffsetTop,l=i.visibleRowsHeight,u=this.props,c=u.tableSize.width,h=u.scrollContentHeight,f=u.scrollY,p=u.scrollX,g={viewportHeight:l,contentHeight:h,scrollbarYOffsetTop:a,scrollY:f,viewportWidth:c,contentWidth:c+this.props.maxScrollX,scrollbarXOffsetTop:o,scrollX:p,scrollTo:this._scrollTo,scrollToX:this.props.scrollActions.scrollToX,scrollToY:this.props.scrollActions.scrollToY};Zs(this.previousScrollState,g)||(this.props.onScrollBarsUpdate(g),this.previousScrollState=g)}},{key:"render",value:function(){var i=Rce(this.props),a=i.ariaGroupHeaderIndex,o=i.ariaHeaderIndex,l=i.ariaFooterIndex,u=i.ariaRowCount,c=i.ariaRowIndexOffset,h=rde(this.props),f=h.fixedColumnGroups,p=h.fixedColumns,g=h.fixedRightColumnGroups,b=h.fixedRightColumns,v=h.scrollableColumnGroups,w=h.scrollableColumns,C=ja(this.props),T=C.bodyHeight,E=C.bodyOffsetTop,S=C.componentHeight,P=C.footOffsetTop,R=C.scrollbarXOffsetTop,N=C.visibleRowsHeight,W=this.props,G=W.className,K=W.elementHeights,Z=W.gridAttributesGetter,O=W.maxScrollY,$=W.onColumnReorderEndCallback,X=W.onColumnResizeEndCallback,B=W.scrollContentHeight,V=W.scrollX,H=W.scrollY,U=W.scrolling,te=W.tableSize,F=W.touchScrollEnabled,Y=W.scrollbarYWidth,ne=te.ownerHeight,ie=te.width,re=K.cellGroupWrapperHeight,oe=K.footerHeight,le=K.groupHeaderHeight,de=K.headerHeight,ce=Ki(this.props),ve=ce.scrollEnabledX,Ce=ce.scrollEnabledY,ye=Z&&Z(),J;le>0&&(J=k.createElement(Ds,{key:"group_header",ariaRowIndex:a,isHeaderOrFooter:!0,isScrolling:U,className:qt(Re("fixedDataTableLayout/header"),Re("public/fixedDataTable/header")),width:ie,height:le,cellGroupWrapperHeight:re,index:0,zIndex:1,offsetTop:0,scrollLeft:V,fixedColumns:f,fixedRightColumns:g,scrollableColumns:v,visible:!0,touchEnabled:F,onColumnResizeEndCallback:X,onColumnReorderEndCallback:$,showScrollbarY:Ce,scrollbarYWidth:Y,isRTL:this.props.isRTL,isHeader:!0,isGroupHeader:!0}));var we;Ce&&(we=this.props.scrollbarY);var Ee;ve&&(Ee=this.props.scrollbarX);var ke=null;oe&&(ke=k.createElement(Ds,{key:"footer",ariaRowIndex:l,isHeaderOrFooter:!0,isScrolling:U,className:qt(Re("fixedDataTableLayout/footer"),Re("public/fixedDataTable/footer")),width:ie,height:oe,index:-1,zIndex:1,offsetTop:P,visible:!0,fixedColumns:p.footer,fixedRightColumns:b.footer,scrollableColumns:w.footer,scrollLeft:V,showScrollbarY:Ce,scrollbarYWidth:Y,isRTL:this.props.isRTL}));var $e=this._renderRows(E,p.cell,b.cell,w.cell,T,c),je=k.createElement(Ds,{key:"header",ariaRowIndex:o,isHeaderOrFooter:!0,isScrolling:U,className:qt(Re("fixedDataTableLayout/header"),Re("public/fixedDataTable/header")),width:ie,height:de,cellGroupWrapperHeight:re,index:-1,zIndex:1,offsetTop:le,scrollLeft:V,visible:!0,fixedColumns:p.header,fixedRightColumns:b.header,scrollableColumns:w.header,touchEnabled:F,onColumnResizeEndCallback:X,onColumnReorderEndCallback:$,showScrollbarY:Ce,scrollbarYWidth:Y,isRTL:this.props.isRTL,isHeader:!0}),Ue;H&&(Ue=k.createElement("div",{className:qt(Re("fixedDataTableLayout/topShadow"),Re("public/fixedDataTable/topShadow")),style:{top:E}}));var ir=ne&&ne<S&&B>N,Pt;(ir||H<O)&&(Pt=k.createElement("div",{className:qt(Re("fixedDataTableLayout/bottomShadow"),Re("public/fixedDataTable/bottomShadow")),style:{top:P}}));var Wt=null;(this.props.keyboardPageEnabled||this.props.keyboardScrollEnabled)&&(Wt=0);var kt=G;return this.props.isRTL&&(kt=qt(kt,"fixedDataTable_isRTL")),k.createElement("div",bt({className:qt(kt,Re("fixedDataTableLayout/main"),Re("public/fixedDataTable/main")),role:"grid","aria-rowcount":u},ye,{tabIndex:Wt,onKeyDown:this._onKeyDown,onTouchStart:F?this._touchHandler.onTouchStart:null,onTouchEnd:F?this._touchHandler.onTouchEnd:null,onTouchCancel:F?this._touchHandler.onTouchCancel:null,ref:this._onRef,style:{height:S,width:ie}}),k.createElement("div",{className:Re("fixedDataTableLayout/rowsContainer"),style:{height:R,width:ie}},J,je,$e,ke,Ue,Pt),we,Ee)}}]),r}(k.Component);ue(zg,"propTypes",{width:z.number.isRequired,height:z.number,className:z.string,maxHeight:z.number,ownerHeight:z.number,overflowX:z.oneOf(["hidden","auto"]),overflowY:z.oneOf(["hidden","auto"]),touchScrollEnabled:z.bool,keyboardScrollEnabled:z.bool,keyboardPageEnabled:z.bool,scrollbarX:z.node,scrollbarXHeight:z.number,scrollbarY:z.node,scrollbarYWidth:z.number,onScrollBarsUpdate:z.func,defaultScrollbars:z.bool,showScrollbarX:z.bool,showScrollbarY:z.bool,onHorizontalScroll:z.func,onVerticalScroll:z.func,rowsCount:z.number.isRequired,rowHeight:z.number.isRequired,rowHeightGetter:z.func,subRowHeight:z.number,subRowHeightGetter:z.func,rowExpanded:z.oneOfType([z.element,z.func]),rowClassNameGetter:z.func,rowKeyGetter:z.func,groupHeaderHeight:z.number,headerHeight:z.number.isRequired,cellGroupWrapperHeight:z.number,footerHeight:z.number,scrollLeft:z.number,scrollToColumn:z.number,scrollTop:z.number,isVerticalScrollExact:z.bool,scrollToRow:z.number,onScrollStart:z.func,onScrollEnd:z.func,stopReactWheelPropagation:z.bool,stopScrollDefaultHandling:z.bool,stopScrollPropagation:z.bool,onContentHeightChange:z.func,onRowClick:z.func,onRowContextMenu:z.func,onRowDoubleClick:z.func,onRowMouseDown:z.func,onRowMouseUp:z.func,onRowMouseEnter:z.func,onRowMouseLeave:z.func,onRowTouchStart:z.func,onRowTouchEnd:z.func,onRowTouchMove:z.func,onColumnResizeEndCallback:z.func,onColumnReorderEndCallback:z.func,isRTL:z.bool,bufferRowCount:z.number,elementHeights:z.shape({cellGroupWrapperHeight:z.number,footerHeight:z.number,groupHeaderHeight:z.number,headerHeight:z.number}),gridAttributesGetter:z.func,rowAttributesGetter:z.func});ue(zg,"defaultProps",{elementHeights:{cellGroupWrapperHeight:void 0,footerHeight:0,groupHeaderHeight:0,headerHeight:0},keyboardScrollEnabled:!1,keyboardPageEnabled:!1,touchScrollEnabled:!1,stopScrollPropagation:!1});var _he={get:function(){return oce({reducer:fce,devTools:process.env.NODE_ENV!=="production",middleware:function(r){return r({immutableCheck:!1,serializableCheck:!1})}})}},whe=gg,xhe=Ol,Che=Sd,The=Kr,Mhe=Rl,She=qs.exports,Ehe=Ad,Phe=ST,Ahe="[object Map]",Rhe="[object Set]",Ohe=Object.prototype,khe=Ohe.hasOwnProperty;function Dhe(e){if(e==null)return!0;if(Mhe(e)&&(The(e)||typeof e=="string"||typeof e.splice=="function"||She(e)||Phe(e)||Che(e)))return!e.length;var t=xhe(e);if(t==Ahe||t==Rhe)return!e.size;if(Ehe(e))return!whe(e).length;for(var r in e)if(khe.call(e,r))return!1;return!0}var I_=Dhe;function AM(e){var t=Nhe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Nhe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Lhe=function(e){Ht(r,e);var t=AM(r);function r(){var n;ft(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),ue(fe(n),"state",{}),ue(fe(n),"_onScrollBarsUpdate",function(l){n.setState(l)}),ue(fe(n),"_onVerticalScroll",function(l){n.state.scrollToY!==void 0&&n.state.scrollToY(l)}),ue(fe(n),"_onHorizontalScroll",function(l){n.state.scrollToX!==void 0&&n.state.scrollToX(l)}),n}return pt(r,[{key:"render",value:function(){var i=!I_(this.state)&&k.createElement(Rr,{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}),a=!I_(this.state)&&k.createElement(RM,{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 k.cloneElement(this.props.children,{onScrollBarsUpdate:this._onScrollBarsUpdate,scrollbarX:a,scrollbarY:i})}}]),r}(k.Component),RM=function(e){Ht(r,e);var t=AM(r);function r(){return ft(this,r),t.apply(this,arguments)}return pt(r,[{key:"render",value:function(){var i=this.props,a=i.offset,o=i.size,l={height:Rr.SIZE,width:o},u={height:Rr.SIZE,overflow:"hidden",width:o,top:a};return k.createElement("div",{className:qt(Re("public/fixedDataTable/horizontalScrollbar")),style:l},k.createElement("div",{style:u},k.createElement(Rr,bt({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}}]),r}(k.PureComponent);ue(RM,"propTypes",{contentSize:z.number.isRequired,offset:z.number.isRequired,onScroll:z.func.isRequired,position:z.number.isRequired,size:z.number.isRequired,isRTL:z.bool});var Ihe=function(){return Zn([function(t){return ja(t).componentHeight},function(t){return t.elementHeights.groupHeaderHeight},function(t){return t.scrollX},function(t){return t.maxScrollX},function(t){return kl(t).availableScrollWidth},function(t){return t.isRTL}],function(t,r,n,i,a,o){return{tableHeight:t,groupHeaderHeight:r,scrollX:n,maxScrollX:i,availableScrollWidth:a,isRTL:o}})},$he=ia,Fhe=Kr,zhe=wi,Bhe="[object String]";function Hhe(e){return typeof e=="string"||!Fhe(e)&&zhe(e)&&$he(e)==Bhe}var Whe=Hhe;function jhe(e){return function(t){return t==null?void 0:t[e]}}var Vhe=jhe,Ghe=Vhe,Uhe=Ghe("length"),Yhe=Uhe,qhe="\\ud800-\\udfff",Xhe="\\u0300-\\u036f",Zhe="\\ufe20-\\ufe2f",Khe="\\u20d0-\\u20ff",Qhe=Xhe+Zhe+Khe,Jhe="\\ufe0e\\ufe0f",efe="\\u200d",tfe=RegExp("["+efe+qhe+Qhe+Jhe+"]");function rfe(e){return tfe.test(e)}var nfe=rfe,OM="\\ud800-\\udfff",ife="\\u0300-\\u036f",afe="\\ufe20-\\ufe2f",ofe="\\u20d0-\\u20ff",sfe=ife+afe+ofe,lfe="\\ufe0e\\ufe0f",ufe="["+OM+"]",Cm="["+sfe+"]",Tm="\\ud83c[\\udffb-\\udfff]",cfe="(?:"+Cm+"|"+Tm+")",kM="[^"+OM+"]",DM="(?:\\ud83c[\\udde6-\\uddff]){2}",NM="[\\ud800-\\udbff][\\udc00-\\udfff]",dfe="\\u200d",LM=cfe+"?",IM="["+lfe+"]?",hfe="(?:"+dfe+"(?:"+[kM,DM,NM].join("|")+")"+IM+LM+")*",ffe=IM+LM+hfe,pfe="(?:"+[kM+Cm+"?",Cm,DM,NM,ufe].join("|")+")",$_=RegExp(Tm+"(?="+Tm+")|"+pfe+ffe,"g");function mfe(e){for(var t=$_.lastIndex=0;$_.test(e);)++t;return t}var gfe=mfe,vfe=Yhe,yfe=nfe,bfe=gfe;function _fe(e){return yfe(e)?bfe(e):vfe(e)}var wfe=_fe,xfe=gg,Cfe=Ol,Tfe=Rl,Mfe=Whe,Sfe=wfe,Efe="[object Map]",Pfe="[object Set]";function Afe(e){if(e==null)return 0;if(Tfe(e))return Mfe(e)?Sfe(e):e.length;var t=Cfe(e);return t==Efe||t==Pfe?e.size:xfe(e).length}var bf=Afe,Rfe=function(t){return{offset:t.offset,width:t.width,index:t.index,columnKey:t.columnKey}},Du=function(t){return{offset:t.offset,width:t.width,index:t.index,columnKey:t.columnKey}},Ofe=function(){return Zn([function(t){return kl(t)},function(t,r){return r}],function(t,r){var n=t.fixedColumns,i=t.fixedRightColumns,a=t.scrollableColumns,o=t.fixedColumnGroups,l=t.fixedRightColumnGroups,u=t.scrollableColumnGroups,c=function(H){var U=n.length+a.length+i.length;if(H<0||H>=U||!Number.isInteger(H))throw"columnIndex must be an integer between 0 and ".concat(U-1," inclusive")},h=function(H){var U=o.length+u.length+l.length;if(H<0||H>=U||!Number.isInteger(H))throw"columnGroupIndex must be an integer between 0 and ".concat(U-1," inclusive")},f=function(H){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!(U&&Os(H))&&H!==Oe.FIXED&&H!==Oe.FIXED_RIGHT&&H!==Oe.SCROLLABLE)throw"Invalid CellGroupType"},p=function(H){return H<n.length?Oe.FIXED:H<n.length+a.length?Oe.SCROLLABLE:Oe.FIXED_RIGHT},g=function(H){return H<o.length?Oe.FIXED:H<o.length+u.length?Oe.SCROLLABLE:Oe.FIXED_RIGHT},b=function(H,U){if(U===Oe.FIXED)return H;if(U===Oe.SCROLLABLE)return H-n.length;if(U===Oe.FIXED_RIGHT)return H-n.length-a.length},v=function(H,U){if(U===Oe.FIXED)return H;if(U===Oe.SCROLLABLE)return H-o.length;if(U===Oe.FIXED_RIGHT)return H-o.length-u.length},w=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Oe.SCROLLABLE;f(H);var U=W(H);return U.reduce(function(te,F){return te+F.width},0)},C=function(H,U){var te=W(U),F=b(H,U);return te[F]},T=function(H){c(H);var U=p(H),te=C(H,U);return Rfe(te)},E=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(f(H,!0),Os(H))return n.length+a.length+i.length;var U=W(H);return U.length},S=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(f(H,!0),Os(H))return o.length+u.length+l.length;var U=G(H);return U.length},P=function(H,U){var te=G(U),F=v(H,U);return Du(te[F])},R=function(H){h(H);var U=g(H);return P(H,U)},N=function(H){c(H);var U=p(H),te=C(H,U).groupIdx,F=K(te);return Du(F)},W=function(H){if(H===Oe.FIXED)return n;if(H===Oe.FIXED_RIGHT)return i;if(H===Oe.SCROLLABLE)return a;throw"Invalid cell group type"},G=function(H){if(H===Oe.FIXED)return o;if(H===Oe.FIXED_RIGHT)return l;if(H===Oe.SCROLLABLE)return u;throw"Invalid cell group type"},K=function(H){var U=bf(o),te=bf(u),F=bf(l);if(Vi(H,0,U))return o[H];if(Vi(H,U,U+te))return u[H-U];if(Vi(H,U+te,U+te+F))return l[H-U-te];throw"Invalid absolute column group index"},Z=function(H,U){if(H.length===0)return{element:null,distanceFromOffset:null};for(var te=0,F=0;F!==H.length&&!(te>U);)te+=H[F].width,F++;return F=Dd(F-1,0,H.length-1),{element:H[F],distanceFromOffset:H[F].width-(te-U)}},O=function(H){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oe.SCROLLABLE;f(U);var te=W(U),F=Z(te,H),Y=F.element,ne=F.distanceFromOffset;return Y&&(Y=Du(Y)),{column:Y,distanceFromOffset:ne}},$=function(H){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oe.SCROLLABLE;f(U);var te=G(U),F=Z(te,H),Y=F.element,ne=F.distanceFromOffset;return Y&&(Y=Du(Y)),{columnGroup:Y,distanceFromOffset:ne}},X=r.scrollToX,B=r.updateRowHeights;return{getColumn:T,getColumnGroup:R,getColumnGroupByChild:N,getColumnAtOffset:O,getColumnGroupAtOffset:$,getCellGroupWidth:w,getColumnCount:E,getColumnGroupCount:S,scrollToX:X,updateRowHeights:B}})};function F_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _f(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F_(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var kfe=function(){var t=[],r=null,n=function(l){return t=t.concat(l),function(){var u=t.indexOf(l);t.splice(u,1)}},i=Ihe(),a=Ofe();return{getValue:Zn([function(o){return i(o)},function(o,l){return a(o,l)}],function(o,l){return r=_f(_f(_f({},o),l),{},{subscribe:n}),r}),notify:function(){t.forEach(function(l){return l(r)})}}};function z_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?z_(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dfe(e){var t=Nfe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Nfe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var $M=function(e){Ht(r,e);var t=Dfe(r);function r(n){var i;return ft(this,r),i=t.call(this,n),i._initialize(n),i.fixedDataTableApi=kfe(),i.previousApiValue=null,i}return pt(r,[{key:"componentDidMount",value:function(){this._initialize(this.props)}},{key:"componentWillUnmount",value:function(){this._cleanup()}},{key:"componentDidUpdate",value:function(){this.notifyApiValueChanges()}},{key:"_initialize",value:function(i){var a=this;if(!this.reduxStore){this.reduxStore=_he.get(),this.reduxStore.dispatch(pce(i)),this.scrollActions=_ce(this.reduxStore,function(){return a.props}),this.unsubscribe=this.reduxStore.subscribe(this.onStoreUpdate.bind(this));var o={boundState:r.getBoundState(this.reduxStore),reduxStore:this.reduxStore,props:i};this.state?this.setState(o):this.state=o}}},{key:"_cleanup",value:function(){this.reduxStore&&(this.unsubscribe(),this.unsubscribe=null,this.reduxStore=null)}},{key:"getApi",value:function(){var i=this;return this.fixedDataTableApi.getValue(Nu(Nu({},this.props),this.reduxStore.getState()),Nu(Nu({},this.scrollActions),{},{updateRowHeights:function(o){return TT({updateRowHeights:bce},i.reduxStore.dispatch).updateRowHeights(o)}}))}},{key:"notifyApiValueChanges",value:function(){var i=this.getApi();this.previousApiValue!==i&&(this.fixedDataTableApi.notify(),this.previousApiValue=i)}},{key:"render",value:function(){var i=this.getApi(),a=k.createElement(zg,bt({},this.props,this.state.boundState,{scrollActions:this.scrollActions}));return this.props.defaultScrollbars?k.createElement(lo.Provider,{value:i},k.createElement(Lhe,this.props,a)):k.createElement(lo.Provider,{value:i},a)}},{key:"onStoreUpdate",value:function(){var i=r.getBoundState(this.reduxStore);this.state.boundState.propsRevision===i.propsRevision&&this.setState({boundState:i})}}],[{key:"getDerivedStateFromProps",value:function(i,a){return vn(i.height!==void 0||i.maxHeight!==void 0,"You must set either a height or a maxHeight"),i===a.props?null:(a.reduxStore.dispatch(mce({newProps:i,oldProps:a.props})),{boundState:r.getBoundState(a.reduxStore),props:i})}},{key:"getBoundState",value:function(i){var a=i.getState(),o=vs(a,["columnGroupElements","columnElements","elementHeights","elementTemplates","firstRowIndex","endRowIndex","maxScrollX","maxScrollY","propsRevision","rows","rowOffsets","rowSettings","scrollContentHeight","scrollFlags","scrollX","scrollY","scrolling","scrollJumpedX","scrollJumpedY","tableSize"]);return o}}]),r}(k.Component);ue($M,"defaultProps",{defaultScrollbars:!0,scrollbarXHeight:Rr.SIZE,scrollbarYWidth:Rr.SIZE});var Lfe=bM($M);function Ife(e){var t=$fe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function $fe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Ud=function(e){Ht(r,e);var t=Ife(r);function r(){return ft(this,r),t.apply(this,arguments)}return pt(r,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumn /> should never render");return null}}]),r}(k.Component);ue(Ud,"__TableColumn__",!0);ue(Ud,"propTypes",{align:z.oneOf(["left","center","right"]),fixed:z.bool,fixedRight:z.bool,header:z.oneOfType([z.node,z.func]),cell:z.oneOfType([z.node,z.func]),footer:z.oneOfType([z.node,z.func]),columnKey:z.oneOfType([z.string,z.number]),width:z.number.isRequired,minWidth:z.number,maxWidth:z.number,flexGrow:z.number,isResizable:z.bool,isReorderable:z.bool,allowCellsRecycling:z.bool,pureRendering:z.bool,cellClassName:z.string});ue(Ud,"defaultProps",{allowCellsRecycling:!1,fixed:!1,fixedRight:!1});function Ffe(e){var t=zfe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function zfe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Bg=function(e){Ht(r,e);var t=Ffe(r);function r(){return ft(this,r),t.apply(this,arguments)}return pt(r,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumnGroup /> should never render");return null}}]),r}(k.Component);ue(Bg,"__TableColumnGroup__",!0);ue(Bg,"propTypes",{align:z.oneOf(["left","center","right"]),fixed:z.bool,header:z.oneOfType([z.node,z.func])});ue(Bg,"defaultProps",{fixed:!1});const Bfe=()=>typeof window=="undefined"||typeof document=="undefined"||!document.body||typeof window.innerWidth!="number"||typeof document.body.clientWidth!="number"?0:Math.max(0,window.innerWidth-document.body.clientWidth),Hfe="#f4f4f8",Wfe="#edeef1",jfe="#e3e5ea",Vfe="#f9f9fb",Gfe="#ffcb05",Ufe="#1faff3",Yfe="#e5e5e5",qfe="#5b6372",Xfe="#3a4356",Zfe="#3c3c42",Kfe="#a3a3a3",Qfe="#d0d3db",Jfe="_headerCell_2qf2w_16",epe="_noSort_2qf2w_29",tpe="_standard_2qf2w_29",rpe="_caret_2qf2w_33",npe="_headerLabel_2qf2w_38",ipe="_icon_2qf2w_43",ape="_numberIcon_2qf2w_50",ope="_dateIcon_2qf2w_54",spe="_textIcon_2qf2w_58",lpe="_booleanIcon_2qf2w_62",upe="_sortIcon_2qf2w_66",cpe="_sortAscending_2qf2w_74",dpe="_sortDescending_2qf2w_78",ei={athensGray:Hfe,athensGrayDark:Wfe,athensGrayDark2:jfe,athensGrayLight:Vfe,defaultBrandColor:Gfe,dodgerBlue:Ufe,mercury:Yfe,shuttleGrayDark:qfe,oxfordBlue:Xfe,darkModeDefaultBackground:Zfe,indicatorGrey:Kfe,secondaryButtonHover:Qfe,headerCell:Jfe,noSort:epe,standard:tpe,caret:rpe,headerLabel:npe,icon:ipe,numberIcon:ape,dateIcon:ope,textIcon:spe,booleanIcon:lpe,sortIcon:upe,sortAscending:cpe,sortDescending:dpe},hpe="_icon_t30x8_1",fpe="_numberIcon_t30x8_11",ppe="_dateIcon_t30x8_15",mpe="_textIcon_t30x8_19",gpe="_booleanIcon_t30x8_23",ss={icon:hpe,numberIcon:fpe,dateIcon:ppe,textIcon:mpe,booleanIcon:gpe},vpe=({columnType:e})=>y.jsx("div",{className:Ys(ss.icon,{[ss.numberIcon]:j.isNumber(e),[ss.dateIcon]:j.isDatetime(e),[ss.textIcon]:j.isText(e),[ss.booleanIcon]:j.isBoolean(e)})}),ype=({column:e,onClick:t,isSelected:r,children:n,showFieldTypeIcon:i,sortIcon:a="standard"})=>y.jsxs("div",{className:ei.headerCell,onClick:()=>{t(e)},children:[i&&y.jsx(vpe,{columnType:e.type}),y.jsx("div",{className:ei.headerLabel,children:n}),y.jsx("div",{className:Ys(ei.sortIcon,{[ei.caret]:a==="caret",[ei.standard]:a==="standard",[ei.noSort]:!r||e.direction===0,[ei.sortAscending]:r&&e.direction===1,[ei.sortDescending]:r&&e.direction===-1})})]}),bpe=26,_pe=26,B_=8,FM=36,zM=29,BM=24,Mm=350,wpe=126,xpe=38,Cpe=55,Tpe=(e,t,r,n)=>{const a=document.createElement("canvas").getContext("2d");if(!a)return[];a.font=`13px ${n||"Open Sans"}`;const o=e.columns.map(f=>a.measureText(f.name).width+FM+(t?zM:0)),l=a.measureText("0").width,u=e.columns.map(f=>({type:j.simpleColumnType(f.type),index:f.index})),{rows:c}=e,h=u.map(f=>{const p=c.reduce((g,b)=>{var T;const v=b[f.index].displayValue,w=(T=r[f.index])!=null&&T.isHtml?Mpe(v):v,C=f.type==="number"?b[f.index].displayValue.length*l:a.measureText(w).width;return Math.max(g,C)},0);return BM+p});return o.map((f,p)=>{var g;return(g=r[p])!=null&&g.width?r[p].width:Math.ceil(Math.max(wpe,Math.min(Mm,Math.max(f,h[p]))))})};function Mpe(e){const t=document.createElement("div");return t.innerHTML=e,HM(t)}function HM(e){let t,r,n,i;for(r="",t=0;t<e.childNodes.length;t++)i=e.childNodes[t],n=null,i.nodeType===1?n=HM(i):i.nodeType===3&&(n=i.nodeValue),n&&(r+=n);return r}const H_=e=>e%2===1,W_=({colIndex:e=0,rowIndex:t=0,themeSettings:r,customStyles:n,isHeaderCell:i})=>{var c,h,f,p,g,b,v,w,C,T,E,S,P,R,N,W,G,K;let a=r.chart.textColor;const o=r.typography.fontFamily;let l=r.chart.backgroundColor;const u=y.getSlightlyDifferentColor(l);return i?(h=(c=n==null?void 0:n.header)==null?void 0:c.color)!=null&&h.enabled&&(l=((p=(f=n==null?void 0:n.header)==null?void 0:f.color)==null?void 0:p.backgroundColor)||u,a=((b=(g=n==null?void 0:n.header)==null?void 0:g.color)==null?void 0:b.textColor)||a):((w=(v=n==null?void 0:n.columns)==null?void 0:v.alternatingColor)!=null&&w.enabled&&H_(e)&&(l=((T=(C=n==null?void 0:n.columns)==null?void 0:C.alternatingColor)==null?void 0:T.backgroundColor)||u,a=((S=(E=n==null?void 0:n.columns)==null?void 0:E.alternatingColor)==null?void 0:S.textColor)||a),(R=(P=n==null?void 0:n.rows)==null?void 0:P.alternatingColor)!=null&&R.enabled&&H_(t)&&(l=((W=(N=n==null?void 0:n.rows)==null?void 0:N.alternatingColor)==null?void 0:W.backgroundColor)||u,a=((K=(G=n==null?void 0:n.rows)==null?void 0:G.alternatingColor)==null?void 0:K.textColor)||a)),{color:a,backgroundColor:l,fontFamily:o}},Spe="#f4f4f8",Epe="#edeef1",Ppe="#e3e5ea",Ape="#f9f9fb",Rpe="#ffcb05",Ope="#1faff3",kpe="#e5e5e5",Dpe="#5b6372",Npe="#3a4356",Lpe="#3c3c42",Ipe="#a3a3a3",$pe="#d0d3db",Fpe="_tableWrapper_1ode4_16",zpe="_table_1ode4_16",Bpe="_tableHeader_1ode4_78",Hpe="_tableCell_1ode4_88",Wpe="_tableCellContent_1ode4_99",jpe="_headerColor_1ode4_105",Vpe="_rowColor_1ode4_109",bs={athensGray:Spe,athensGrayDark:Epe,athensGrayDark2:Ppe,athensGrayLight:Ape,defaultBrandColor:Rpe,dodgerBlue:Ope,mercury:kpe,shuttleGrayDark:Dpe,oxfordBlue:Npe,darkModeDefaultBackground:Lpe,indicatorGrey:Ipe,secondaryButtonHover:$pe,tableWrapper:Fpe,table:zpe,tableHeader:Bpe,tableCell:Hpe,tableCellContent:Wpe,headerColor:jpe,rowColor:Vpe},Gpe=e=>j.isNumber(e)?"right":"left",Upe=new RegExp(`<\\/?[\\w\\s="/.':;#-\\/\\?]+>`),j_=({displayValue:e,width:t,padding:r,ellipsizedLength:n,isHtml:i})=>{var f,p,g,b,v,w,C,T;const{app:a}=Et(),o=(b=(g=(p=(f=a==null?void 0:a.settings)==null?void 0:f.chartConfig)==null?void 0:p.tabular)==null?void 0:g.htmlContent)==null?void 0:b.enabled,l=(T=(C=(w=(v=a==null?void 0:a.settings)==null?void 0:v.chartConfig)==null?void 0:w.tabular)==null?void 0:C.htmlContent)==null?void 0:T.sanitizeContents,{isHtmlValue:u,value:c}=k.useMemo(()=>{let E=i;o&&typeof E=="undefined"&&(E=Upe.test(e));const S=E&&l?y.purify.sanitize(e):e;return{isHtmlValue:E,value:S}},[o,i,e,l]),h=c.length>n;return y.jsx("div",{className:bs.tableCellContent,style:{maxWidth:`${t-r}px`},children:u?y.jsx("div",{dangerouslySetInnerHTML:{__html:c}}):h?y.jsx(bd,{title:c,children:y.jsx("div",{children:c})}):y.jsx("div",{children:c})})},Ype=({dataTable:e,dataOptions:t,height:r,width:n,customStyles:i,themeSettings:a,onSortUpdate:o})=>{var T,E,S;const l=i&&i.showFieldTypeIcon!==void 0?i.showFieldTypeIcon:!0,u=FM+(l?zM:0),c=(i==null?void 0:i.paddingVertical)||B_,h=(i==null?void 0:i.paddingHorizontal)||B_,f=((T=i==null?void 0:i.columns)==null?void 0:T.width)==="auto"?(n-h*2-Bfe())/t.columns.length:void 0,p=k.useMemo(()=>t.columns.map(P=>({isHtml:"isHtml"in P&&!!P.isHtml,width:f})),[t.columns,f]),[g,b]=k.useState(((E=document.fonts)==null?void 0:E.status)==="loaded"),v=(S=a.typography)==null?void 0:S.fontFamily,w=k.useMemo(()=>Tpe(e,l,p,v),[e,l,p,v,g]);k.useEffect(()=>{var P;(P=document.fonts)==null||P.ready.then(()=>{b(!0)}).catch(R=>{console.warn("Failed to observe font loading",R)})},[]);const C=k.useMemo(()=>e.columns.map((P,R)=>{const N=w[R],W=t.columns[R],G=W_({isHeaderCell:!0,themeSettings:a,customStyles:i});return N?y.jsx(Ud,{maxWidth:Mm,minWidth:Mm,allowCellsRecycling:!0,width:N,header:y.jsx(Ec,{className:Ys(bs.tableHeader),style:G,children:y.jsx(ype,{column:P,onClick:o,isSelected:!!Math.abs(P.direction),showFieldTypeIcon:l,sortIcon:(i==null?void 0:i.sortIcon)||"standard",children:y.jsx(j_,{displayValue:y.getDataOptionTitle(W),width:N,padding:u,ellipsizedLength:xpe})})}),cell:O=>{var $=O,{rowIndex:K}=$,Z=xe($,["rowIndex"]);return y.jsx(Ec,I(M({className:Ys(bs.tableCell),style:W_({colIndex:R,rowIndex:K,themeSettings:a,customStyles:i})},Z),{children:y.jsx(j_,{displayValue:e.rows[K][R].displayValue,width:N,padding:BM,ellipsizedLength:Cpe,isHtml:"isHtml"in W?W.isHtml:void 0})}))},align:Gpe(P.type)},`col${R}`):null}),[e,w,a,i,o,l,t,u]);return k.useMemo(()=>y.jsx("div",{className:bs.tableWrapper,style:{padding:`${c}px ${h}px`},children:y.jsx(Lfe,{className:bs.table,rowHeight:(i==null?void 0:i.rowHeight)||_pe,rowsCount:e.rows.length,width:n-h*2,height:r-c*2,headerHeight:(i==null?void 0:i.headerHeight)||bpe,children:C})}),[C,i,e,r,h,c,n])},qpe=(e,t)=>{if(!e.columns.some(o=>j.isNumber(o.type)))return e;const r=e.columns,i=e.rows.map(o=>o.map((l,u)=>{const c=r[u].type,h=y.getCompleteNumberFormatConfig(t.columns[u].numberFormatConfig);if(j.isNumber(c)){const f=y.createCompareValue(l.displayValue,c);return{displayValue:y.applyFormatPlainText(h,f.value),compareValue:f}}else return l}));return{columns:r,rows:i}},Xpe="_component_1rw9b_1",Zpe={component:Xpe},Kpe=({dataTable:e,dataOptions:t,designOptions:r={},onSortUpdate:n,themeSettings:i,width:a=400,height:o=500})=>{const l=k.useRef(null),u=k.useRef(e),c=k.useMemo(()=>qpe(e,t),[e,t]);k.useLayoutEffect(()=>{u.current=e},[e]);const h=k.useMemo(()=>M({sortIcon:"caret",showFieldTypeIcon:!1},r),[r]);return y.jsx("div",{className:Zpe.component,ref:l,children:y.jsx(Ype,{dataTable:c,dataOptions:t,onSortUpdate:n,height:o,width:a,customStyles:h,themeSettings:i})})},WM=e=>{const t=[],r=[];for(const n of e.columns)y.isMeasureColumn(n)?r.push(y.translateColumnToMeasure(n)):t.push(y.translateColumnToAttribute(n));return{attributes:t,measures:r}},Qpe=({dataSet:e,dataOptions:t,filters:r,filterRelations:n,count:i,offset:a})=>{const o=tg(),[l,u]=k.useState(ui(e)?null:e),[c,h]=k.useState(!1),f=k.useRef(!0),{isInitialized:p,app:g}=Et(),[b,v]=k.useState(t);return k.useEffect(()=>{var E;let w=!1;if(!t)return;const{attributes:C,measures:T}=WM(t);if(ui(e)){if(!p){o(new j.TranslatableError("errors.chartNoSisenseContext"));return}if(!g||!f.current&&a>0)return;h(!0),((E=g.settings.queryCacheConfig)!=null&&E.enabled?j.executeQueryWithCache:j.executeQuery)({dataSource:e,dimensions:C,measures:T,filters:r,filterRelations:n,count:i+1,offset:a,ungroup:!0},g).then(P=>{if(w)return;f.current=P.rows.length>i;const R=f.current?P.rows.slice(0,i):P.rows;a>0?u(N=>{const W=N==null?void 0:N.rows.length,G=W?W>a?N.rows.slice(0,a):N.rows:null;return{columns:P.columns,rows:G?[...G,...R]:R}}):u({columns:P.columns,rows:R}),v(t)}).finally(()=>{h(!1)}).catch(P=>{w||o(P)})}else u(e),v(t);return()=>{w=!0}},[g,e,t,r,n,a,i,p,o]),[c?null:l,b]},Jpe=({data:e,innerDataOptions:t,dataColumnNamesMapping:r,needToAggregate:n=!1})=>{const{app:i}=Et();return k.useMemo(()=>{if(!e||!t)return null;let a=y.createDataTableFromData(Hp(e,t,i==null?void 0:i.settings.locale,i==null?void 0:i.settings.dateConfig));const o=t.columns.filter(u=>!y.isMeasureColumn(u)).map(y.translateColumnToAttribute),l=t.columns.filter(u=>y.isMeasureColumn(u)).map(y.translateColumnToMeasure);return GC(a,o,l,r),n&&(a=VC(a,o,l,r)),kU(t,a)},[e,t,n,r,i])},eme=e=>({"& .MuiPaginationItem-circular.Mui-selected":{color:e.chart.textColor},"& .MuiPaginationItem-circular":{color:e.chart.secondaryTextColor,fontFamily:e.typography.fontFamily}}),tme=e=>({paddingVertical:e.paddingVertical,paddingHorizontal:e.paddingHorizontal,header:e.header,rows:e.rows,columns:e.columns}),jM=25,VM=10,GM=({dataSet:e,dataOptions:t,styleOptions:r={},filters:n,onDataReady:i})=>{const{rowsPerPage:a=jM,width:o,height:l}=r,{themeSettings:u}=ot(),[c,h]=k.useState(0),{filters:f,relations:p}=j.getFilterListAndRelationsJaql(n),[g,b]=k.useState(1),v=k.useRef(null),w=k.useMemo(()=>wC(t),[t]),C=k.useMemo(()=>eg(w.columns.filter(y.isMeasureColumn).map(y.translateColumnToMeasure)),[w]),T=k.useMemo(()=>tme(r),[r]),[E,S]=k.useState(w),[P,R]=k.useState(e),[N,W]=Qpe({dataSet:P,dataOptions:E,filters:f,filterRelations:p,count:a*VM,offset:c}),G=k.useMemo(()=>{if(N&&i){const B=i(N);if(!YC(B))throw new j.TranslatableError("errors.incorrectOnDataReadyHandler");return B}return N},[N]),K=Jpe({data:G,innerDataOptions:W,dataColumnNamesMapping:C,needToAggregate:!ui(P)});k.useEffect(()=>{S(w),R(e),b(1),h(0)},[e,w]);const Z=k.useCallback(B=>{if(!N)return;Math.floor(N.rows.length/a)===B&&h(N.rows.length),b(B)},[N,a]),O=k.useCallback(B=>{b(1),h(0),E&&S(OU(E,B))},[E]),$=k.useMemo(()=>{if(!K||ui(P))return K;const B=K.columns.find(V=>V.direction!==0);return B?y.orderBy(K,[B]):K},[K,P]),X=k.useMemo(()=>$?{columns:$.columns,rows:$.rows.slice((g-1)*a,g*a)}:void 0,[$,g,a]);return W?y.jsx(md,{defaultSize:gd("table"),size:{width:o,height:l},children:B=>{if(!K||!X)return y.jsx(td,{themeSettings:u});if(y.isDataTableEmpty(K))return y.jsx(Q0,{iconType:"table"});const V=Math.ceil(K.rows.length/a);return y.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:u.chart.backgroundColor},"aria-label":"table-root",children:[y.jsx(Kpe,{dataTable:X,dataOptions:W,designOptions:T,themeSettings:u,width:B.width,height:B.height-32,onSortUpdate:O}),y.jsx(Aw,{ref:v,page:g,count:V,onChange:(U,te)=>Z(te),sx:eme(u)})]})}}):null},rme=k.createContext(null),wf={didCatch:!1,error:null};class Sm extends k.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=wf}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:a,reason:"imperative-api"}),this.setState(wf)}}componentDidCatch(t,r){var n,i;(n=(i=this.props).onError)===null||n===void 0||n.call(i,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:i}=this.props;if(n&&r.error!==null&&nme(t.resetKeys,i)){var a,o;(a=(o=this.props).onReset)===null||a===void 0||a.call(o,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(wf)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:a,error:o}=this.state;let l=t;if(a){const u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")l=r(u);else if(n)l=k.createElement(n,u);else if(i===null||k.isValidElement(i))l=i;else throw o}return k.createElement(rme.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},l)}}function nme(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}function Hg(e,t,r){const n=od(e);return typeof e!="object"&&e===n?!1:n==null||(t?t.some(a=>!j.isEqual(n[a],e[a])):!j.isEqual(n,e))?!0:r?r(e,n):!1}const UM=k.createContext(void 0),ime=({children:e})=>{const[t,r]=k.useState([]),[n,i]=k.useState([]),a=()=>r([]),o=()=>i([]);return y.jsx(UM.Provider,{value:{errors:t,warnings:n,clearError:a,clearWarning:o,setErrors:r,setWarnings:i},children:e})},YM=()=>{const e=k.useContext(UM);return e||{errors:[],warnings:[],setErrors:()=>{console.warn("setErrors called, but context is not available.")},setWarnings:()=>{console.warn("setWarnings called, but context is not available.")},clearError:()=>{console.warn("clearError called, but context is not available.")},clearWarning:()=>{console.warn("clearWarning called, but context is not available.")}}},ame="BE#081586",ome="BE#733473",sme=e=>{const[t,r]=k.useState(0),{setErrors:n,errors:i}=YM(),a=Hg(e,["dataOptions","filters"]);if(k.useEffect(()=>{a&&i.length>0&&(r(t+1),n([]))},[e.dataOptions,e.filters]),!ui(e.dataSet))throw new j.TranslatableError("errors.undefinedDataSource");const o=j.cloneDeep(e.dataOptions),l=y.extractTrendMeasures(o);o.value.push(...l);const u=y.extractForecastMeasures(o);o.value.push(...u);const c=k.useCallback(({error:p})=>{console.debug("Unexpected error occurred when rendering advanced chart:",p);const g=j.cloneDeep(o),b=f(p.toString());return g.value=g.value.filter(v=>{const w="column"in v?v.column.name:v.name;return!("column"in v&&"type"in v.column&&v.column.type==="calculatedmeasure"&&b.some(C=>C.includes(w)))}),y.jsx(Sm,{fallbackRender:h,onError:v=>{const w=f(v.toString());n(C=>[...new Set([...C,...w])])},children:y.jsx(Wu,I(M({},e),{dataOptions:g}))},`errorboundary_${t}`)},[e,i]),h=k.useCallback(({error:p})=>(console.debug("Error occurred when rendering fallback chart:",p),p.toString().includes(ame)?y.jsx(Wu,M({},e)):y.jsx(_0,{error:i[0]})),[e,i]),f=p=>{if(p.includes(ome)){const g=/Error: BE#733473 More than 1 Function failed, aggregated failures:\s*/;if(g.test(p))return p.replace(g,"").split(";").map(v=>v.trim()).filter(Boolean)}return[p.trim()]};return y.jsx(Sm,{fallbackRender:c,onError:p=>{const g=f(p.toString());n(b=>[...new Set([...b,...g])])},children:y.jsx(Wu,I(M({},e),{dataOptions:o}))},`errorboundary_${t}`)},qM=e=>{const{dataSet:t}=e;return!!t&&typeof t!="string"&&"rows"in t&&"columns"in t},XM=ml({componentName:"Chart",shouldSkipSisenseContextWaiting:qM,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(e=>{if(lme(e))return y.jsx(GM,M({},e));if(ume(e))return y.jsx(sme,M({},e));if(ZM(e))return y.jsx(Wu,M({},e));throw new j.TranslatableError("errors.chartInvalidProps")});function lme(e){return e.chartType==="table"&&"columns"in e.dataOptions}function ZM(e){return e.chartType!=="table"}function ume(e){return!ZM(e)||!y.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 Em(e,t){switch(t.type){case"loading":return cme(e);case"success":return dme(t.data);case"error":return hme(t.error)}}function cme(e){return e.status==="loading"?e:I(M({},e),{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0})}function dme(e){return{isLoading:!1,isError:!1,isSuccess:!0,data:e,status:"success",error:void 0}}function hme(e){return{isLoading:!1,isError:!0,isSuccess:!1,data:void 0,status:"error",error:e}}function KM({enabled:e},t){const r=k.useRef(!1);return k.useCallback((n,i=!1)=>{const a=e===!1||!n,o=r.current;return r.current=a,!a&&(o||t||i)},[e,t])}const QM="sdkHookInit",fme=(e,t,r,n)=>{if(!r)return;Gw(QM,{packageName:t,packageVersion:"2.17.0",hookName:e},r.httpClient).finally(n)};function pme(e){const{tracking:t,app:r}=Et(),{trackEvent:n}=k0(),i=k.useRef(!1);k.useEffect(()=>{if(!(!t||!r)&&!i.current){const a={packageName:t.packageName||"sdk-ui",packageVersion:"2.17.0",hookName:e};n(QM,a,!t.enabled).finally(()=>i.current=!0)}},[t,e,n,r])}const JM=e=>t=>(...r)=>(pme(e),t(...r));var xf=function(){return j.root.Date.now()},mme="Expected a function",gme=Math.max,vme=Math.min;function yme(e,t,r){var n,i,a,o,l,u,c=0,h=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(mme);t=y.toNumber(t)||0,j.isObject(r)&&(h=!!r.leading,f="maxWait"in r,a=f?gme(y.toNumber(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function g(R){var N=n,W=i;return n=i=void 0,c=R,o=e.apply(W,N),o}function b(R){return c=R,l=setTimeout(C,t),h?g(R):o}function v(R){var N=R-u,W=R-c,G=t-N;return f?vme(G,a-W):G}function w(R){var N=R-u,W=R-c;return u===void 0||N>=t||N<0||f&&W>=a}function C(){var R=xf();if(w(R))return T(R);l=setTimeout(C,v(R))}function T(R){return l=void 0,p&&n?g(R):(n=i=void 0,o)}function E(){l!==void 0&&clearTimeout(l),c=0,n=u=i=l=void 0}function S(){return l===void 0?o:T(xf())}function P(){var R=xf(),N=w(R);if(n=arguments,i=this,u=R,N){if(l===void 0)return b(u);if(f)return clearTimeout(l),l=setTimeout(C,t),g(u)}return l===void 0&&(l=setTimeout(C,t)),o}return P.cancel=E,P.flush=S,P}function bme(e,t,r){r=typeof r=="function"?r:void 0;var n=r?r(e,t):void 0;return n===void 0?j.baseIsEqual(e,t,void 0,r):!!n}const _me=e=>{const t=wme(e);return t.config.disabled=!e.config.disabled,t},wme=e=>{const t=j.cloneDeep(e);return Object.setPrototypeOf(t,e),t};function xme(e,t,r){const n=M({guid:t},r?{backgroundFilter:r}:{});return j.members(e,[],n)}function Yd(e){if(!j.isMembersFilter(e))throw new j.TranslatableError("errors.notAMembersFilter");const{attribute:t,config:{guid:r,backgroundFilter:n}}=e;return xme(t,r,n)}function Wg(e){return"members"in e&&e.members.length===0}function Yr(e,t){return e.expression===(t==null?void 0:t.expression)&&e.granularity===t.granularity}function eS(e,t){return e===void 0&&t===void 0?!1:[e,t].some(r=>r===void 0)||e.length!==t.length?!0:e.length===0&&t.length===0?!1:e.some((r,n)=>!bme(r,t[n],tS))}function jg(e,t){return Yr(e.attribute,t.attribute)}function tS(e,t){const r=y.flow(Cme,Tme);return j.isEqual(r(e),r(t))}function Cme(e){return I(M({},e),{name:""})}function Tme(e){return I(M({},e),{config:I(M({},e.config),{guid:""})})}function Mme(e,t,r,n){if(r===void 0&&n===void 0)return!1;if([r,n].some(a=>a===void 0))return!0;function i(a,o){const l=a,u=a,c=o,h=o;return a===void 0&&o===void 0?!0:[a,o].some(f=>f===void 0)||l.operator!==c.operator?!1:u.instanceid&&h.instanceid?!eS(e==null?void 0:e.filter(f=>f.config.guid===u.instanceid),t==null?void 0:t.filter(f=>f.config.guid===h.instanceid)):i(l.left,c.left)&&i(l.right,c.right)||i(l.left,c.right)&&i(l.right,c.left)}return!i(r,n)}function rS(e){return function(t){t=j.toString(t);var r=CC(t)?zp(t):void 0,n=r?r[0]:t.charAt(0),i=r?xC(r,1).join(""):t.slice(1);return n[e]()+i}}var nS=rS("toUpperCase");function Sme(e){return nS(j.toString(e).toLowerCase())}function Eme(e,t,r,n){for(var i=-1,a=e==null?0:e.length;++i<a;)r=t(r,e[i],i,e);return r}function Pme(e){return function(t){return e==null?void 0:e[t]}}var Ame={À:"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"},Rme=Pme(Ame),Ome=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kme="\\u0300-\\u036f",Dme="\\ufe20-\\ufe2f",Nme="\\u20d0-\\u20ff",Lme=kme+Dme+Nme,Ime="["+Lme+"]",$me=RegExp(Ime,"g");function Fme(e){return e=j.toString(e),e&&e.replace(Ome,Rme).replace($me,"")}var zme=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Bme(e){return e.match(zme)||[]}var Hme=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Wme(e){return Hme.test(e)}var iS="\\ud800-\\udfff",jme="\\u0300-\\u036f",Vme="\\ufe20-\\ufe2f",Gme="\\u20d0-\\u20ff",Ume=jme+Vme+Gme,aS="\\u2700-\\u27bf",oS="a-z\\xdf-\\xf6\\xf8-\\xff",Yme="\\xac\\xb1\\xd7\\xf7",qme="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xme="\\u2000-\\u206f",Zme=" \\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",sS="A-Z\\xc0-\\xd6\\xd8-\\xde",Kme="\\ufe0e\\ufe0f",lS=Yme+qme+Xme+Zme,uS="['’]",V_="["+lS+"]",Qme="["+Ume+"]",cS="\\d+",Jme="["+aS+"]",dS="["+oS+"]",hS="[^"+iS+lS+cS+aS+oS+sS+"]",e0e="\\ud83c[\\udffb-\\udfff]",t0e="(?:"+Qme+"|"+e0e+")",r0e="[^"+iS+"]",fS="(?:\\ud83c[\\udde6-\\uddff]){2}",pS="[\\ud800-\\udbff][\\udc00-\\udfff]",Fa="["+sS+"]",n0e="\\u200d",G_="(?:"+dS+"|"+hS+")",i0e="(?:"+Fa+"|"+hS+")",U_="(?:"+uS+"(?:d|ll|m|re|s|t|ve))?",Y_="(?:"+uS+"(?:D|LL|M|RE|S|T|VE))?",mS=t0e+"?",gS="["+Kme+"]?",a0e="(?:"+n0e+"(?:"+[r0e,fS,pS].join("|")+")"+gS+mS+")*",o0e="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s0e="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",l0e=gS+mS+a0e,u0e="(?:"+[Jme,fS,pS].join("|")+")"+l0e,c0e=RegExp([Fa+"?"+dS+"+"+U_+"(?="+[V_,Fa,"$"].join("|")+")",i0e+"+"+Y_+"(?="+[V_,Fa+G_,"$"].join("|")+")",Fa+"?"+G_+"+"+U_,Fa+"+"+Y_,s0e,o0e,cS,u0e].join("|"),"g");function d0e(e){return e.match(c0e)||[]}function h0e(e,t,r){return e=j.toString(e),t=t,t===void 0?Wme(e)?d0e(e):Bme(e):e.match(t)||[]}var f0e="['’]",p0e=RegExp(f0e,"g");function m0e(e){return function(t){return Eme(h0e(Fme(t).replace(p0e,"")),e,"")}}var vS=m0e(function(e,t,r){return t=t.toLowerCase(),e+(r?Sme(t):t)});function g0e(e,t,r,n){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(n,o,r(o),e)}return n}function v0e(e,t){return function(r,n){if(r==null)return r;if(!j.isArrayLike(r))return e(r,n);for(var i=r.length,a=-1,o=Object(r);++a<i&&n(o[a],a,o)!==!1;);return r}}var y0e=v0e(j.baseForOwn);function b0e(e,t,r,n){return y0e(e,function(i,a,o){t(n,i,r(i),o)}),n}function yS(e,t){return function(r,n){var i=j.isArray(r)?g0e:b0e,a=t?t():{};return i(r,e,j.baseIteratee(n),a)}}var Dl=yS(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),Nl=(e=>(e.HIGHLIGHT="highlight",e.FILTER="filter",e))(Nl||{});function _0e(e){const{_id:t,title:r,levels:n}=e;return{id:t,title:r,levels:n.map(i=>j.createDimensionalElementFromJaql(i))}}function bS(e,t,r){return er(this,null,function*(){const i=yield new z0(e,r).getHierarchies(t);return i==null?void 0:i.map(a=>_0e(a))})}const w0e=JM("useGetHierarchyModels")(_S);function _S(e){const t=Hg(e,["dataSource","dimension","ids","alwaysIncluded"]),r=KM(e,t),[n,i]=k.useReducer(Em,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:a,app:o}=Et();return k.useEffect(()=>{a||i({type:"error",error:new j.TranslatableError("errors.sisenseContextNotFound")}),r(o)&&(i({type:"loading"}),bS(o.httpClient,e,o.defaultDataSource).then(l=>{i({type:"success",data:l})}).catch(l=>{i({type:"error",error:l})}))},[o,a,e,r]),n.data&&t?q_(Em(n,{type:"loading"})):q_(n)}function q_(e){const n=e,{data:t}=n,r=xe(n,["data"]);return I(M({},r),{hierarchies:t})}function Vg(e,{onLocalStateChange:t,syncCompareFn:r=j.isEqual}={}){const[n,i]=k.useState(e),a=k.useRef(e);k.useEffect(()=>{r(a.current,e)||i(e),a.current=e},[e,r]);const o=k.useCallback(l=>{i(u=>{const c=j.isFunction(l)?l(u):l;return t==null||t(c),c})},[t]);return[n,o]}function x0e(e){return dt("MuiCard",e)}ht("MuiCard",["root"]);const C0e=e=>{const{classes:t}=e;return St({root:["root"]},x0e,t)},T0e=De(Kc,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),wS=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiCard"}),c=n,{className:i,raised:a=!1}=c,o=xe(c,["className","raised"]),l=I(M({},n),{raised:a}),u=C0e(l);return me.jsx(T0e,M({className:He(u.root,i),elevation:a?8:void 0,ref:r,ownerState:l},o))});process.env.NODE_ENV!=="production"&&(wS.propTypes={children:_.node,classes:_.object,className:_.string,raised:qn(_.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function M0e(e){return dt("MuiCardContent",e)}ht("MuiCardContent",["root"]);const S0e=e=>{const{classes:t}=e;return St({root:["root"]},M0e,t)},E0e=De("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),xS=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiCardContent"}),c=n,{className:i,component:a="div"}=c,o=xe(c,["className","component"]),l=I(M({},n),{component:a}),u=S0e(l);return me.jsx(E0e,M({as:a,className:He(u.root,i),ownerState:l,ref:r},o))});process.env.NODE_ENV!=="production"&&(xS.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function P0e(e){return dt("MuiCircularProgress",e)}ht("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ti=44,Pm=hl`
398
+ 0% {
399
+ transform: rotate(0deg);
400
+ }
401
+
402
+ 100% {
403
+ transform: rotate(360deg);
404
+ }
405
+ `,Am=hl`
406
+ 0% {
407
+ stroke-dasharray: 1px, 200px;
408
+ stroke-dashoffset: 0;
409
+ }
410
+
411
+ 50% {
412
+ stroke-dasharray: 100px, 200px;
413
+ stroke-dashoffset: -15px;
414
+ }
415
+
416
+ 100% {
417
+ stroke-dasharray: 1px, 200px;
418
+ stroke-dashoffset: -126px;
419
+ }
420
+ `,A0e=typeof Pm!="string"?Uc`
421
+ animation: ${Pm} 1.4s linear infinite;
422
+ `:null,R0e=typeof Am!="string"?Uc`
423
+ animation: ${Am} 1.4s ease-in-out infinite;
424
+ `:null,O0e=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,a={root:["root",r,`color${Ie(n)}`],svg:["svg"],circle:["circle",`circle${Ie(r)}`,i&&"circleDisableShrink"]};return St(a,P0e,t)},k0e=De("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Ie(r.color)}`]]}})($t(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:A0e||{animation:`${Pm} 1.4s linear infinite`}},...Object.entries(e.palette).filter(pi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),D0e=De("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),N0e=De("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Ie(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})($t(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:R0e||{animation:`${Am} 1.4s ease-in-out infinite`}}]}))),Gg=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiCircularProgress"}),T=n,{className:i,color:a="primary",disableShrink:o=!1,size:l=40,style:u,thickness:c=3.6,value:h=0,variant:f="indeterminate"}=T,p=xe(T,["className","color","disableShrink","size","style","thickness","value","variant"]),g=I(M({},n),{color:a,disableShrink:o,size:l,thickness:c,value:h,variant:f}),b=O0e(g),v={},w={},C={};if(f==="determinate"){const E=2*Math.PI*((ti-c)/2);v.strokeDasharray=E.toFixed(3),C["aria-valuenow"]=Math.round(h),v.strokeDashoffset=`${((100-h)/100*E).toFixed(3)}px`,w.transform="rotate(-90deg)"}return me.jsx(k0e,I(M(M({className:He(b.root,i),style:M(M({width:l,height:l},w),u),ownerState:g,ref:r,role:"progressbar"},C),p),{children:me.jsx(D0e,{className:b.svg,ownerState:g,viewBox:`${ti/2} ${ti/2} ${ti} ${ti}`,children:me.jsx(N0e,{className:b.circle,style:v,ownerState:g,cx:ti,cy:ti,r:(ti-c)/2,fill:"none",strokeWidth:c})})}))});process.env.NODE_ENV!=="production"&&(Gg.propTypes={classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["inherit","primary","secondary","error","info","success","warning"]),_.string]),disableShrink:qn(_.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:_.oneOfType([_.number,_.string]),style:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),thickness:_.number,value:_.number,variant:_.oneOf(["determinate","indeterminate"])});function L0e(e){return dt("MuiIconButton",e)}const X_=ht("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),I0e=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a,loading:o}=e,l={root:["root",o&&"loading",r&&"disabled",n!=="default"&&`color${Ie(n)}`,i&&`edge${Ie(i)}`,`size${Ie(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return St(l,L0e,t)},$0e=De(ra,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${Ie(r.color)}`],r.edge&&t[`edge${Ie(r.edge)}`],t[`size${Ie(r.size)}`]]}})($t(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),$t(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(pi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(pi()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${X_.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${X_.loading}`]:{color:"transparent"}}))),F0e=De("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),uo=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiIconButton"}),E=n,{edge:i=!1,children:a,className:o,color:l="default",disabled:u=!1,disableFocusRipple:c=!1,size:h="medium",id:f,loading:p=null,loadingIndicator:g}=E,b=xe(E,["edge","children","className","color","disabled","disableFocusRipple","size","id","loading","loadingIndicator"]),v=qc(f),w=g!=null?g:me.jsx(Gg,{"aria-labelledby":v,color:"inherit",size:16}),C=I(M({},n),{edge:i,color:l,disabled:u,disableFocusRipple:c,loading:p,loadingIndicator:w,size:h}),T=I0e(C);return me.jsxs($0e,I(M({id:p?v:f,className:He(T.root,o),centerRipple:!0,focusRipple:!c,disabled:u||p,ref:r},b),{ownerState:C,children:[typeof p=="boolean"&&me.jsx("span",{className:T.loadingWrapper,style:{display:"contents"},children:me.jsx(F0e,{className:T.loadingIndicator,ownerState:C,children:p&&w})}),a]}))});process.env.NODE_ENV!=="production"&&(uo.propTypes={children:qn(_.node,e=>Q.Children.toArray(e.children).some(r=>Q.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(`
425
+ `)):null),classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),_.string]),disabled:_.bool,disableFocusRipple:_.bool,disableRipple:_.bool,edge:_.oneOf(["end","start",!1]),id:_.string,loading:_.bool,loadingIndicator:_.node,size:_.oneOfType([_.oneOf(["small","medium","large"]),_.string]),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function z0e({fill:e="rgba(38, 46, 61, 0.67)"}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:y.jsx("path",{fill:e,d:"M11.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zM13 8.878c0-1.27-.499-1.896-1.496-1.878C10.501 7.03 10 7.68 10 8.95c0 .737.17 1.647.51 2.731l.318.98c.081.245.14.413.175.503.197.533.376.811.537.835.15.018.314-.248.493-.8.083-.257.161-.512.233-.763.071-.252.146-.503.224-.755.34-1.12.51-2.054.51-2.803zM11.5 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"})})}function B0e({title:e,description:t,errorMessages:r=[],styleOptions:n,onRefresh:i}){var C,T,E;const[a,o]=k.useState(null),{themeSettings:l}=ot(),{typography:{primaryTextColor:u,secondaryTextColor:c,fontFamily:h}}=l,{t:f}=y.useTranslation(),p=S=>{o(S.currentTarget)},g=()=>{o(null)},b=k.useMemo(()=>e?y.jsx(Er,{variant:"body2",style:{color:u,fontFamily:h,fontSize:13},children:e}):null,[e,u,h]),v=k.useMemo(()=>r.length===0?null:r.map(S=>y.jsxs(y.Fragment,{children:[y.jsx(Hi,{sx:{my:1,borderColor:c,opacity:.3,marginY:"8px"}}),y.jsxs("div",{className:"csdk-flex",children:[y.jsx("div",{className:"csdk-shrink-0 csdk-grow-0",children:y.jsx(z0e,{fill:"#fa5656"})}),y.jsx(Er,{variant:"body2",className:"csdk-grow-1",style:{color:c,fontFamily:h,fontSize:13,marginLeft:5,lineHeight:"24px",letterSpacing:"normal",overflowWrap:"anywhere"},children:S})]})]})),[r,c,h]),w=k.useMemo(()=>t?y.jsxs(y.Fragment,{children:[y.jsx(Hi,{sx:{my:"8px",borderColor:c,opacity:.3}}),y.jsx(Er,{variant:"body2",style:{color:c,fontFamily:h,fontSize:13},children:t})]}):null,[t,c,h]);return y.jsxs(y.Fragment,{children:[y.jsx(bd,{title:f("widgetHeader.info.tooltip"),style:{color:(C=l.chart)==null?void 0:C.textColor,fontFamily:(T=l.typography)==null?void 0:T.fontFamily},children:y.jsx(uo,{onClick:p,sx:{p:0},children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:y.jsx("path",{fill:(n==null?void 0:n.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"})})})}),y.jsx(R0,{open:!!a,position:a?{anchorEl:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},contentOrigin:{vertical:"top",horizontal:"center"}}:void 0,onClose:g,children:y.jsxs(wS,{raised:!0,className:"csdk-max-w-xs csdk-w-[300px]",children:[y.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-justify-between csdk-items-center csdk-py-[5px] csdk-px-[12px]",style:{backgroundColor:y.getSlightlyDifferentColor(l.general.backgroundColor)},children:[y.jsx(Er,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:l.typography.primaryTextColor,fontFamily:l.typography.fontFamily},children:f("widgetHeader.info.details")}),y.jsx(uo,{onClick:i,sx:{p:0},children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:y.jsx("path",{fill:(E=l.chart)==null?void 0:E.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"})})})]}),y.jsx(Hi,{sx:{borderColor:l.typography.secondaryTextColor,opacity:.3}}),y.jsxs(xS,{style:{backgroundColor:l.general.backgroundColor,padding:12},children:[b,v,w]})]})})]})}const H0e=({title:e,description:t,errorMessages:r=[],warningMessages:n=[],dataSetName:i,styleOptions:a,onRefresh:o})=>{var c,h,f;const{themeSettings:l}=ot(),u=()=>{var g;const p=y.jsx(y.Fragment,{children:y.jsx(B0e,{title:i,description:t,styleOptions:a,errorMessages:r,warningMessages:n,onRefresh:o})});return a!=null&&a.renderToolbar?(g=a==null?void 0:a.renderToolbar)==null?void 0:g.call(a,o,p):p};return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-items-center csdk-px-2 csdk-min-h-[32px]",style:{backgroundColor:(a==null?void 0:a.backgroundColor)||l.widget.header.backgroundColor},children:[y.jsx("div",{className:"csdk-w-full csdk-whitespace-nowrap csdk-overflow-hidden",style:{textAlign:W0e((a==null?void 0:a.titleAlignment)||l.widget.header.titleAlignment),color:(a==null?void 0:a.titleTextColor)||l.widget.header.titleTextColor,fontFamily:(c=l.typography)==null?void 0:c.fontFamily,fontSize:l.widget.header.titleFontSize},children:(f=(h=a==null?void 0:a.renderTitle)==null?void 0:h.call(a,e))!=null?f:e}),y.jsx("div",{className:"csdk-ml-auto csdk-flex csdk-items-center",children:u()})]}),j.get(a,"dividerLine",l.widget.header.dividerLine)&&y.jsx(Hi,{style:{backgroundColor:(a==null?void 0:a.dividerLineColor)||l.widget.header.dividerLineColor||"#e6e6e6"}})]})};function W0e(e){return e.toLowerCase()}var CS=(e=>(e.None="",e.Large="30px",e.Medium="20px",e.Small="10px",e))(CS||{}),Rm=(e=>(e.None="",e.Light="0.15",e.Medium="0.3",e.Dark="0.7",e))(Rm||{}),Om=(e=>(e.None="",e.Large="3px 12px",e.Medium="2px 8px",e.Small="1px 4px",e))(Om||{}),Ug=(e=>(e.None="",e.Large="15px",e.Medium="10px",e.Small="5px",e))(Ug||{});const j0e=(e,t)=>{const r=j.get(e,"shadow",t.widget.shadow),n=j.get(e,"spaceAround",t.widget.spaceAround);if(r==="None"||n==="None")return"none";if(r in Rm&&n in Om){const i=Rm[`${r}`];return`0px ${Om[`${n}`]} rgba(9, 9, 10, ${i})`}return"none"},TS=e=>y.jsx(ime,{children:y.jsx(V0e,M({},e))}),V0e=({dataSetName:e,styleOptions:t,title:r,description:n,topSlot:i,bottomSlot:a,children:o,onRefresh:l=()=>{}})=>{var p,g,b;const{errors:u,warnings:c}=YM(),{themeSettings:h}=ot(),f=k.useMemo(()=>{var v;return{chart:{backgroundColor:(t==null?void 0:t.backgroundColor)||((v=h.chart)==null?void 0:v.backgroundColor)}}},[t==null?void 0:t.backgroundColor,(p=h.chart)==null?void 0:p.backgroundColor]);return y.jsx("div",{className:"csdk-w-full csdk-h-full csdk-overflow-hidden csdk-accessible",children:y.jsx("div",{className:"csdk-h-full",style:{padding:Ug[j.get(t,"spaceAround",h.widget.spaceAround)]||"0px"},children:y.jsxs("div",{className:"csdk-h-full csdk-overflow-hidden",style:{backgroundColor:(t==null?void 0:t.backgroundColor)||"unset",borderWidth:j.get(t,"border",h.widget.border)?"1px":0,borderColor:(t==null?void 0:t.borderColor)||h.widget.borderColor,borderRadius:CS[(t==null?void 0:t.cornerRadius)||h.widget.cornerRadius]||0,boxShadow:j0e(t,h),display:"flex",flexDirection:"column"},children:[!((g=t==null?void 0:t.header)!=null&&g.hidden)&&y.jsx(H0e,{title:r,description:n,dataSetName:e,errorMessages:u,warningMessages:c,styleOptions:t==null?void 0:t.header,onRefresh:l}),i,y.jsx(Zw,{theme:f,children:y.jsx("div",{style:{flexGrow:1,minWidth:0,minHeight:0,backgroundColor:(t==null?void 0:t.backgroundColor)||((b=h.chart)==null?void 0:b.backgroundColor)},children:o})}),a]})})})},Z_=(e,t)=>{var r;return y.isCartesian(e)&&((r=t.category)==null?void 0:r.length)===1||y.isScatter(e)};function G0e({chartType:e,dataOptions:t,enabled:r}){const[n,i]=k.useState([]),a=k.useRef(r&&Z_(e,t));k.useEffect(()=>{a.current=r&&Z_(e,t)},[e,t,r]);const o=k.useMemo(()=>{if(n.length===0)return f=>I(M({},f),{series:f.series.map(p=>I(M({},p),{data:p.data.map(g=>I(M({},g),{selected:!1}))}))});if(y.isScatter(e))return f=>I(M({},f),{series:f.series.map(p=>I(M({},p),{data:p.data.map(g=>I(M({},g),{selected:!n.some(b=>{var v,w;return b.x===g.x&&b.y===g.y&&b.size===g.z&&b.breakByPoint===((v=g.custom)==null?void 0:v.maskedBreakByPoint)&&b.breakByColor===((w=g.custom)==null?void 0:w.maskedBreakByColor)})}))}))});{const f=n.reduce((p,{categoryValue:g})=>(g&&(p[`${g}`]=!0),p),{});return p=>I(M({},p),{series:p.series.map(g=>I(M({},g),{data:g.data.map(b=>{var v,w;return f[(w=(v=b.custom)==null?void 0:v.xValue)==null?void 0:w[0]]?b:I(M({},b),{selected:!0})})}))})}},[n,e]),l=k.useMemo(()=>f=>{var p;return I(M({},f),{chart:I(M({},f.chart),{events:I(M({},(p=f.chart)==null?void 0:p.events),{click:()=>{i([])}})})})},[]),u=k.useCallback(f=>(a.current&&(f=o(f),f=l(f)),f),[o,l]),c=k.useCallback(f=>{a.current&&i(f)},[]),h=k.useCallback(f=>{a.current&&i([f])},[]);return{onBeforeRender:u,onDataPointsSelected:c,onDataPointClick:h}}const MS=()=>{const e=Zc();if(!e)throw new j.TranslatableError("errors.missingMenuRoot");return e};var U0e=Object.prototype,Y0e=U0e.hasOwnProperty,q0e=yS(function(e,t,r){Y0e.call(e,r)?e[r].push(t):j.baseAssignValue(e,r,[t])});function km(e){return e&&e.length?J0(e):[]}var rl=(e=>(e.WIDGET_POINTS_DRILLDOWN="widget-points-drilldown",e.WIDGET_POINTS_CROSSFILTERING="widget-points-crossfiltering",e))(rl||{}),co=(e=>(e.DRILLDOWN_CHART_POINTS_SELECTION="drilldown-chart-points-selection",e.DRILLDOWN_DRILL_DIRECTIONS="drilldown-drill-directions",e.CROSSFILTERING_CHART_POINTS_SELECTION="crossfiltering-chart-points-selection",e))(co||{});function X0e(e,t){return t.all?[]:e.filter(r=>{var n;return!((n=t.ids)!=null&&n.includes(r.config.guid))})}function SS(e,t){return e.find(r=>Yr(r.attribute,t))}function ES(e,t,r){const n=SS(r,e);return j.members(e,t.map(i=>`${i}`),{guid:n==null?void 0:n.config.guid,backgroundFilter:n==null?void 0:n.config.backgroundFilter})}function PS(e,t){return jg(e,t)&&"members"in e&&"members"in t&&j.isEqual(e.members,t.members)}const AS=2;function Z0e(e,t){const r=e[t];return r?Array.isArray(r)?r:[r]:[]}function xi(e,t){if(!e.length||!t.length)return[];const r=e.flatMap(({entries:i={}})=>t.flatMap(a=>Z0e(i,a)).filter(a=>!!a.attribute)),n=q0e(r,({attribute:i})=>i==null?void 0:i.expression);return Object.values(n).filter(i=>i.length>0&&!!i[0].attribute).map(i=>{const a=i[0].attribute,o=km(i.map(({value:u})=>u).filter(u=>u!=null)),l=km(i.map(({displayValue:u})=>u).filter(u=>u!==void 0));return{attribute:a,values:o,displayValues:l}})}function K0e(e){return xi(e,["category"])}function Q0e(e){return xi(e,["category"])}function J0e(e,t){const r=xi(e,["category"]),n=r.length-1;return t.category.map((i,a)=>n===a?r[a]:{attribute:y.translateColumnToAttribute(i),values:[],displayValues:[]})}function ege(e){return xi(e,["x","y","breakByPoint","breakByColor"])}function tge(e){return xi(e,["geo"])}function rge(e){return xi(e,["geo"])}function nge(e){return xi(e,["date"])}function ige(e){const t=e.filter(r=>r.isDataCell&&!r.isTotalCell);return xi(t.map(r=>{var n,i,a,o,l,u;return(i=(n=r.entries)==null?void 0:n.values)!=null&&i.length?r:I(M({},r),{entries:{rows:(o=(a=r.entries.rows)==null?void 0:a.slice(-1))!=null?o:[],columns:(u=(l=r.entries.columns)==null?void 0:l.slice(-1))!=null?u:[],values:[]}})}),["rows","columns","values"])}function Zu(e,t,r){return e==="custom"?[]:e==="text"?[]:e==="pivot"?ige(r):e==="treemap"||e==="sunburst"?J0e(r,t):y.isCartesian(e)||e==="pie"||e==="funnel"?K0e(r):y.isBoxplot(e)?Q0e(r):y.isScatter(e)?ege(r):y.isScattermap(e)?tge(r):y.isAreamap(e)?rge(r):y.isCalendarHeatmap(e)?nge(r):[]}function Yg(e,t){let r=[];return e==="custom"?r=[]:e==="text"?r=[]:e==="pivot"?r=[...t.rows||[],...t.columns||[]]:y.isCartesian(e)||y.isCategorical(e)||y.isBoxplot(e)||y.isRange(e)?r=[...t.category]:y.isScatter(e)?r=[t.x,t.y,t.breakByPoint,t.breakByColor].filter(n=>!!(n&&!y.isMeasureColumn(n))):y.isScattermap(e)||y.isAreamap(e)?r=[...t.geo]:y.isCalendarHeatmap(e)&&(r=[t.date]),r.map(y.translateColumnToAttribute)}function age(e,t,r){const n=SS(t,e.attribute);if(!n||Wg(n))return null;if(PS(e,n))return Yd(e);if(j.isMembersFilter(n)&&r){const[i,a]=Dl(n.members,l=>e.members.includes(l));if(i.length===e.members.length&&a.length)return ES(e.attribute,a,[n])}return null}function oge(e,t,r){const n=t.filter(o=>!o.config.disabled),i=e.map(o=>age(o,n,r)).filter(o=>!!o),a=e.length!==i.length;return{filters:a?e:i,isSelection:a}}function Cf(e,t,r=!1){const n=e.map(({attribute:a,values:o})=>ES(a,o,t)),i=sge(t,n);return oge(i,t,r)}function sge(e,t){const r=e.filter(n=>n.config.locked);return r.length?t.filter(n=>!r.some(i=>jg(i,n))):t}function lge(e,t,r){const n=Zu(e,t,r).filter(({displayValues:l})=>l.length);if(n.length===0)return"";const[i]=n,a=r.length===1,o=i.displayValues.length>AS;return n.length>1?a?n.map(l=>l.displayValues[0]).join(", "):o?"":i.displayValues.join(", "):o?i.attribute.name:i.displayValues.join(", ")}function K_(e,t,r){const n=lge(e,t,r);return n?{id:co.CROSSFILTERING_CHART_POINTS_SELECTION,sectionTitle:n}:null}function Q_(e,t){return{items:[{caption:e,onClick:t}]}}function uge(e,t){return Yg(e,t)[0]}function cge(e){return[...y.CARTESIAN_CHART_TYPES,...y.CATEGORICAL_CHART_TYPES,...y.SCATTER_CHART_TYPES,...y.BOXPLOT_CHART_TYPES,...y.RANGE_CHART_TYPES].includes(e)}function dge(e,t){return Yg(e,t).length===1}function hge(e,t){return dge(e,t)&&cge(e)}function RS(e,t,r){const n=i=>!!i&&!Yr(r,y.translateColumnToAttribute(i));if(y.isCartesian(e)||y.isCategorical(e)||y.isBoxplot(e)||y.isRange(e)){const i=t.category[0];if(n(i))return I(M({},t),{category:[r]})}else if(y.isScatter(e)){const i=t,a=["x","y","breakByPoint","breakByColor"];for(const o of a){const l=i[o];if(l&&!y.isMeasureColumn(l)&&n(l))return I(M({},i),{[o]:r})}}return t}function J_(e,t,r){return e.map(n=>{const i=["x","y","breakByPoint","breakByColor"],a=[...i,"size"].some(l=>l in n),o=i.find(l=>r[l]&&!y.isMeasureColumn(r[l]));if(a){const l=t,u=l.type==="mouseup";u&&console.warn("No drilldown support for multi-selection in scatter chart");const c=u?n[o]:l.point.options.custom[vS(`{masked ${o}`)];return{categoryValue:c,categoryDisplayValue:c}}return n})}function Dm(e,t){return e.filter(r=>{if(j.MetadataTypes.isAttribute(r)){const a=r;return t.every(o=>!Yr(o,a))}const i=r;return t.every((a,o)=>i.levels[o]&&Yr(a,i.levels[o]))})}function Nm(e,t){return[y.translateColumnToAttribute(e),...t.map(({nextDimension:r})=>r)]}const fge=po(me.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"),pge=De(ra)($t(({theme:e})=>I(M({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":M({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":M({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:gp(e.palette.grey[200],.12)}:{backgroundColor:gp(e.palette.grey[600],.12)})}))),mge=De(fge)({width:24,height:16});function OS(e){const a=e,{slots:t={},slotProps:r={}}=a,n=xe(a,["slots","slotProps"]),i=e;return me.jsx("li",{children:me.jsx(pge,I(M({focusRipple:!0},n),{ownerState:i,children:me.jsx(mge,M({as:t.CollapsedIcon,ownerState:i},r.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(OS.propTypes={slotProps:_.shape({collapsedIcon:_.oneOfType([_.func,_.object])}),slots:_.shape({CollapsedIcon:_.elementType}),sx:_.object});function gge(e){return dt("MuiBreadcrumbs",e)}const vge=ht("MuiBreadcrumbs",["root","ol","li","separator"]),yge=e=>{const{classes:t}=e;return St({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},gge,t)},bge=De(Er,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${vge.li}`]:t.li},t.root]})({}),_ge=De("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),wge=De("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function xge(e,t,r,n){return e.reduce((i,a,o)=>(o<e.length-1?i=i.concat(a,me.jsx(wge,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${o}`)):i.push(a),i),[])}const kS=Q.forwardRef(function(t,r){const n=wt({props:t,name:"MuiBreadcrumbs"}),N=n,{children:i,className:a,component:o="nav",slots:l={},slotProps:u={},expandText:c="Show path",itemsAfterCollapse:h=1,itemsBeforeCollapse:f=1,maxItems:p=8,separator:g="/"}=N,b=xe(N,["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),[v,w]=Q.useState(!1),C=I(M({},n),{component:o,expanded:v,expandText:c,itemsAfterCollapse:h,itemsBeforeCollapse:f,maxItems:p,separator:g}),T=yge(C),E=f0({elementType:l.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:C}),S=Q.useRef(null),P=W=>{const G=()=>{w(!0);const K=S.current.querySelector("a[href],button,[tabindex]");K&&K.focus()};return f+h>=W.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${h}} + itemsBeforeCollapse={${f}} >= maxItems={${p}}`].join(`
426
+ `)),W):[...W.slice(0,f),me.jsx(OS,{"aria-label":c,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:E},onClick:G},"ellipsis"),...W.slice(W.length-h,W.length)]},R=Q.Children.toArray(i).filter(W=>(process.env.NODE_ENV!=="production"&&x0.isFragment(W)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
427
+ `)),Q.isValidElement(W))).map((W,G)=>me.jsx("li",{className:T.li,children:W},`child-${G}`));return me.jsx(bge,I(M({ref:r,component:o,color:"textSecondary",className:He(T.root,a),ownerState:C},b),{children:me.jsx(_ge,{className:T.ol,ref:S,ownerState:C,children:xge(v||p&&R.length<=p?R:P(R),T.separator,g,C)})}))});process.env.NODE_ENV!=="production"&&(kS.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,expandText:_.string,itemsAfterCollapse:mn,itemsBeforeCollapse:mn,maxItems:mn,separator:_.node,slotProps:_.shape({collapsedIcon:_.oneOfType([_.func,_.object])}),slots:_.shape({CollapsedIcon:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function Cge(e){return dt("MuiButton",e)}const ki=ht("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","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),DS=Q.createContext({});process.env.NODE_ENV!=="production"&&(DS.displayName="ButtonGroupContext");const NS=Q.createContext(void 0);process.env.NODE_ENV!=="production"&&(NS.displayName="ButtonGroupButtonContext");const Tge=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,loading:o,loadingPosition:l,classes:u}=e,c={root:["root",o&&"loading",a,`${a}${Ie(t)}`,`size${Ie(i)}`,`${a}Size${Ie(i)}`,`color${Ie(t)}`,r&&"disableElevation",n&&"fullWidth",o&&`loadingPosition${Ie(l)}`],startIcon:["icon","startIcon",`iconSize${Ie(i)}`],endIcon:["icon","endIcon",`iconSize${Ie(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},h=St(c,Cge,u);return M(M({},u),h)},LS=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Mge=De(ra,{shouldForwardProp:e=>pl(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ie(r.color)}`],t[`size${Ie(r.size)}`],t[`${r.variant}Size${Ie(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})($t(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return I(M({},e.typography.button),{minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ki.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ki.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ki.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ki.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(pi()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.5)`:yt(e.palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette[n].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette[n].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ki.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ki.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ki.loading}`]:{color:"transparent"}}}]})})),Sge=De("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${Ie(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...LS]})),Ege=De("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${Ie(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...LS]})),Pge=De("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),e2=De("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),nl=Q.forwardRef(function(t,r){const n=Q.useContext(DS),i=Q.useContext(NS),a=Ls(n,t),o=wt({props:a,name:"MuiButton"}),U=o,{children:l,color:u="primary",component:c="button",className:h,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:b,focusVisibleClassName:v,fullWidth:w=!1,id:C,loading:T=null,loadingIndicator:E,loadingPosition:S="center",size:P="medium",startIcon:R,type:N,variant:W="text"}=U,G=xe(U,["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","id","loading","loadingIndicator","loadingPosition","size","startIcon","type","variant"]),K=qc(C),Z=E!=null?E:me.jsx(Gg,{"aria-labelledby":K,color:"inherit",size:16}),O=I(M({},o),{color:u,component:c,disabled:f,disableElevation:p,disableFocusRipple:g,fullWidth:w,loading:T,loadingIndicator:Z,loadingPosition:S,size:P,type:N,variant:W}),$=Tge(O),X=(R||T&&S==="start")&&me.jsx(Sge,{className:$.startIcon,ownerState:O,children:R||me.jsx(e2,{className:$.loadingIconPlaceholder,ownerState:O})}),B=(b||T&&S==="end")&&me.jsx(Ege,{className:$.endIcon,ownerState:O,children:b||me.jsx(e2,{className:$.loadingIconPlaceholder,ownerState:O})}),V=i||"",H=typeof T=="boolean"?me.jsx("span",{className:$.loadingWrapper,style:{display:"contents"},children:T&&me.jsx(Pge,{className:$.loadingIndicator,ownerState:O,children:Z})}):null;return me.jsxs(Mge,I(M({ownerState:O,className:He(n.className,$.root,h,V),component:c,disabled:f||T,focusRipple:!g,focusVisibleClassName:He($.focusVisible,v),ref:r,type:N,id:T?K:C},G),{classes:$,children:[X,S!=="end"&&H,l,S==="end"&&H,B]}))});process.env.NODE_ENV!=="production"&&(nl.propTypes={children:_.node,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["inherit","primary","secondary","success","error","info","warning"]),_.string]),component:_.elementType,disabled:_.bool,disableElevation:_.bool,disableFocusRipple:_.bool,disableRipple:_.bool,endIcon:_.node,focusVisibleClassName:_.string,fullWidth:_.bool,href:_.string,id:_.string,loading:_.bool,loadingIndicator:_.node,loadingPosition:_.oneOf(["center","end","start"]),size:_.oneOfType([_.oneOf(["small","medium","large"]),_.string]),startIcon:_.node,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),type:_.oneOfType([_.oneOf(["button","reset","submit"]),_.string]),variant:_.oneOfType([_.oneOf(["contained","outlined","text"]),_.string])});const Age=Gt(uo)`
428
+ && {
429
+ position: absolute;
430
+ left: 0;
431
+ right: auto;
432
+ margin: auto;
433
+ bottom: 0;
434
+ top: 0;
435
+ z-index: 10;
436
+ background: linear-gradient(to right, white 30%, rgba(255, 255, 255, 0) 100%);
437
+ display: inline-flex;
438
+
439
+ span[aria-label='prev-item'] {
440
+ width: 0;
441
+ height: 0;
442
+ border-top: 6px solid transparent;
443
+ border-bottom: 6px solid transparent;
444
+ border-right: 5px solid #000;
445
+ color: transparent;
446
+ opacity: 0.3;
447
+
448
+ &:hover {
449
+ opacity: 0.8;
450
+ }
451
+ }
452
+ }
453
+ `,Rge=Gt(uo)`
454
+ && {
455
+ position: absolute;
456
+ left: auto;
457
+ right: 0;
458
+ margin: auto;
459
+ bottom: 0;
460
+ top: 0;
461
+ z-index: 10;
462
+ background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, white 70%);
463
+ display: inline-flex;
464
+
465
+ span[aria-label='next-item'] {
466
+ width: 0;
467
+ height: 0;
468
+ border-top: 6px solid transparent;
469
+ border-bottom: 6px solid transparent;
470
+ border-left: 5px solid #000;
471
+ color: transparent;
472
+ opacity: 0.3;
473
+
474
+ &:hover {
475
+ opacity: 0.8;
476
+ }
477
+ }
478
+ }
479
+ `,Oge=({currentDimension:e,children:t})=>{const{t:r}=y.useTranslation(),n=k.useRef(null),[i,a]=k.useState(0),[o,l]=k.useState(0),[u,c]=k.useState(0),h=()=>{var b;return(b=n.current)==null?void 0:b.querySelector("ol")};k.useEffect(()=>{const b=h();if(b){const v=b.clientWidth,w=b.scrollWidth,C=b.scrollLeft;a(v),l(w),c(C)}},[e]),k.useEffect(()=>{const b=h();function v(){if(b){const T=b.clientWidth;a(T)}}function w(){if(b){const T=b.scrollLeft;c(T)}}const C=new ResizeObserver(v);return b?(C.observe(b),b.addEventListener("scroll",w),()=>{C.disconnect(),b.removeEventListener("scroll",w)}):()=>{}},[]);const f=b=>{const w="smooth",C=h();C&&C.scrollBy({left:b==="right"?200:-200,behavior:w})},p=u!=0,g=Math.floor(o-u)>i;return y.jsxs("div",{style:{position:"relative"},children:[p&&y.jsx(Age,{onClick:()=>f("left"),children:y.jsx("span",{"aria-label":"prev-item",children:r("drilldown.breadcrumbsPrev")})}),g&&y.jsx(Rge,{onClick:()=>f("right"),children:y.jsx("span",{"aria-label":"next-item",children:r("drilldown.breadcrumbsNext")})}),y.jsx("div",{ref:n,children:t})]})},kge=({clearDrilldownSelections:e,currentDimension:t,setIsHovered:r,themeProps:n})=>{const{t:i}=y.useTranslation(),a=t.name,o=Gt(nl)`
480
+ && {
481
+ background-color: ${n.activeDrillBackgroundColor};
482
+ color: ${n.primaryButtonTextColor};
483
+ border-radius: 100%;
484
+ border: 2px solid white;
485
+ min-width: 39px;
486
+ width: 39px;
487
+ height: 39px;
488
+ z-index: 10;
489
+ padding: 7px;
490
+ cursor: pointer;
491
+ text-transform: none;
492
+ margin-right: -5px;
493
+
494
+ &:hover {
495
+ background-color: ${n.activeDrillHoverBackgroundColor};
496
+ color: ${n.primaryTextColor};
497
+ }
498
+ }
499
+ `,l=Gt.svg`
500
+ width: 22px;
501
+ height: 22px;
502
+ fill: #9ea2ab;
503
+ `,u=()=>y.jsx(o,{theme:n,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:e,children:y.jsx(l,{width:22,height:22,viewBox:"0 0 24 24",children:y.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=Gt(nl)`
504
+ && {
505
+ position: relative;
506
+ font-family: ${f=>f.theme.fontFamily};
507
+ border-radius: 0;
508
+ border: 1px solid ${bn};
509
+ background-color: ${f=>f.theme.chartBackgroundColor};
510
+ border-right: none;
511
+ border-left: none;
512
+ color: ${f=>f.theme.secondaryTextColor};
513
+ padding-right: 1.25rem;
514
+ padding-left: 1.875rem;
515
+ height: 1.64rem;
516
+ font-size: 13px;
517
+ transition: background-color 0.2s, border-color 0.2s, color 0.2s;
518
+ text-transform: none;
519
+ cursor: auto;
520
+ pointer-events: none;
521
+ white-space: nowrap;
522
+
523
+ &:hover {
524
+ background-color: ${f=>f.theme.chartBackgroundColor};
525
+ border: 1px solid ${bn};
526
+ border-right: none;
527
+ border-left: none;
528
+ }
529
+ }
530
+ `;return{CancelButton:u,CurrentDrillButton:()=>y.jsxs(c,{theme:n,children:[a," (",i("drilldown.breadcrumbsAllSuffix"),")",y.jsx("span",{className:"flex items-center justify-between",children:y.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 ${bn}`,borderRight:`1px solid ${bn}`}})})]})}},Dge={modifiers:[{name:"offset",options:{offset:[0,12]}}]},Nge=({themeProps:e,filterDisplayValues:t,currentTable:r,currentColumn:n})=>{const{t:i}=y.useTranslation();return y.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:[y.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[y.jsx(Er,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.members")}),y.jsx(Er,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:t.join(", ")})]}),y.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[y.jsx(Er,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.table")}),y.jsx(Er,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:r})]}),y.jsxs("div",{className:"csdk-p-3 csdk-pl-1",children:[y.jsx(Er,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.column")}),y.jsx(Er,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:n})]})]})},Lge=({popperParams:e,currentDimension:t,themeProps:r})=>{const n=t.expression.match(/\[(.*?)]/),[i,a]=n?n[1].split("."):["",""],o=!!e;return y.jsx(Pl,{open:o,anchorEl:e==null?void 0:e.anchorEl,placement:"bottom",popperOptions:Dge,children:e&&y.jsx(Nge,{themeProps:r,filterDisplayValues:e.filterDisplayValues,currentTable:i,currentColumn:a})})},Ige=()=>{const{themeSettings:{typography:{primaryTextColor:e,secondaryTextColor:t,fontFamily:r},general:{backgroundColor:n,brandColor:i,primaryButtonTextColor:a},chart:{backgroundColor:o}}}=ot(),l=y.scaleBrightness(o,-.02),u=y.scaleBrightness(l,-.05);return{primaryTextColor:e,secondaryTextColor:t,fontFamily:r,backgroundColor:n,brandColor:i,primaryButtonTextColor:a,chartBackgroundColor:o,activeDrillBackgroundColor:l,activeDrillHoverBackgroundColor:u}},bn="#F2F2F2",$ge=Gt(nl)`
531
+ && {
532
+ font-family: ${({theme:e})=>e.fontFamily};
533
+ position: relative;
534
+ border-radius: 0;
535
+ border: 1px solid ${bn};
536
+ border-right: none;
537
+ color: ${({active:e,theme:t})=>e==="true"?t.primaryTextColor:t.secondaryTextColor};
538
+ background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillBackgroundColor:t.chartBackgroundColor};
539
+ padding-right: 1.25rem;
540
+ padding-left: 1.875rem;
541
+ height: 1.64rem;
542
+ font-size: 13px;
543
+ text-transform: none;
544
+ transition: background-color 0.2s, border-color 0.2s, color 0.2s;
545
+ white-space: nowrap;
546
+ cursor: ${({active:e})=>e==="true"?"pointer":"auto"};
547
+ margin-right: ${({active:e})=>e==="true"?"5px":"0px"};
548
+
549
+ &:hover {
550
+ background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillHoverBackgroundColor:t.chartBackgroundColor};
551
+ border: 1px solid ${bn};
552
+ border-right: none;
553
+ }
554
+
555
+ .MuiTouchRipple-root {
556
+ display: none;
557
+ }
558
+ }
559
+ `,Fge=Gt(kS)`
560
+ .MuiBreadcrumbs-ol {
561
+ flex-wrap: nowrap;
562
+ overflow: hidden;
563
+ }
564
+ .MuiBreadcrumbs-separator {
565
+ display: none;
566
+ }
567
+ `,zge=({isActive:e,filterDisplayValue:t,handleMouseEnter:r,handleMouseLeave:n,handleClick:i,themeProps:a,popperParams:o,index:l})=>y.jsx($ge,{theme:a,active:e.toString(),index:l,onMouseEnter:r,onMouseLeave:n,onClick:i,children:y.jsxs("span",{className:"flex items-center justify-between",children:[y.jsxs("span",{className:"mr-2",children:[t.slice(0,2).join(", "),t.length>2&&", ..."]}),e?y.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===(o==null?void 0:o.filterDisplayValues)?a.activeDrillHoverBackgroundColor:a.activeDrillBackgroundColor,borderTop:`1px solid ${bn}`,borderRight:`1px solid ${bn}`,transition:"background-color 0.2s, border-color 0.2s, color 0.2s",zIndex:8}}):void 0,y.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:a.chartBackgroundColor,borderTop:`1px solid ${bn}`,borderRight:`1px solid ${bn}`,zIndex:7,transition:"background-color 0.2s, border-color 0.2s, color 0.2s"}})]})}),IS=ml({componentName:"DrilldownBreadcrumbs",shouldSkipSisenseContextWaiting:!0})(({filtersDisplayValues:e,currentDimension:t,clearDrilldownSelections:r,sliceDrilldownSelections:n})=>{const[i,a]=k.useState(null),[o,l]=k.useState(!1),u=Ige(),{CancelButton:c,CurrentDrillButton:h}=kge({clearDrilldownSelections:r,currentDimension:t,isHovered:o,setIsHovered:l,themeProps:u}),f=v=>w=>{l(!0),a({filterDisplayValues:v,anchorEl:w.currentTarget})},p=()=>{l(!1),a(null)},g=v=>v<e.length-1,b=v=>v===e.length-2;return e.length?y.jsx("div",{"aria-label":"drilldown-breadcrumbs",children:y.jsx(Oge,{currentDimension:t,children:y.jsxs(Fge,{separator:null,sx:{backgroundColor:u.chartBackgroundColor,padding:"4px"},children:[y.jsx(c,{}),e.map((v,w)=>{const C=g(w),T=b(w);return y.jsx("div",{children:y.jsx(zge,{isActive:C,isLastActive:T,filterDisplayValue:v,handleMouseEnter:f(v),handleMouseLeave:p,handleClick:()=>n(w+1),themeProps:u,popperParams:i,index:w})},w)}),y.jsx(h,{}),y.jsx(Lge,{popperParams:i,currentDimension:t,themeProps:u})]})})}):null}),$S=e=>{const{initialDimension:t,onDrilldownSelectionsChange:r}=e,n=k.useMemo(()=>e.drilldownPaths||[],[e.drilldownPaths]),i=k.useMemo(()=>e.drilldownSelections||[],[e.drilldownSelections]),{t:a}=y.useTranslation();if(!t)throw new j.TranslatableError("errors.drilldownNoInitialDimension");const[o,l]=Vg(i,{onLocalStateChange:r}),u=k.useMemo(()=>Nm(t,o),[t,o]),c=k.useMemo(()=>Dm(n,u),[n,u]),h=k.useCallback((w,C,T)=>{l(E=>FS(E,w,C,T))},[l]),f=k.useCallback(w=>{l(C=>C.slice(0,w))},[l]),p=k.useCallback(()=>{l([])},[l]),{drilldownFilters:g,drilldownFiltersDisplayValues:b,drilldownDimension:v}=k.useMemo(()=>zS(o,t,a),[o,t,a]);return{drilldownSelections:o,availableDrilldownPaths:c,drilldownFilters:g,drilldownFiltersDisplayValues:b,drilldownDimension:v,selectDrilldown:h,sliceDrilldownSelections:f,clearDrilldownSelections:p}},FS=(e,t,r,n)=>{var p,g;if(!(n!=null&&n.levels))return[...e,{points:t,nextDimension:r}];if(Yr(n.levels[0],r))return[];const a=(p=e==null?void 0:e.findIndex(b=>Yr(b.nextDimension,r)))!=null?p:-1;if(a!==-1)return e.slice(0,a+1);const l=(g=j.last(e))==null?void 0:g.nextDimension,u=e.length?n.levels.findIndex(b=>l&&Yr(b,l)):0,c=n.levels.indexOf(r),f=n.levels.slice(u+1,c+1).map((b,v)=>({points:v===0?t:[],nextDimension:b}));return[...e,...f]},zS=(e,t,r)=>{let n=t&&y.translateColumnToAttribute(t);const i=[],a=[];return e.forEach(({points:o,nextDimension:l})=>{i.push(j.members(n,o.map(Bge)));const u=o.length?o.map(BS):[`${n.name} (${r("drilldown.breadcrumbsAllSuffix")})`];a.push(u),n=l}),{drilldownFilters:i,drilldownFiltersDisplayValues:a,drilldownDimension:n}};function BS(e){return"categoryDisplayValue"in e?`${e.categoryDisplayValue}`:"categoryValue"in e?`${e.categoryValue}`:""}function Bge(e){return"categoryValue"in e?`${e.categoryValue}`:""}const Hge=({initialDimension:e,drilldownSelections:t,openMenu:r,onDrilldownSelectionsChange:n})=>{const{t:i}=y.useTranslation(),{drilldownFilters:a,drilldownFiltersDisplayValues:o,drilldownDimension:l,selectDrilldown:u,sliceDrilldownSelections:c,clearDrilldownSelections:h}=$S({initialDimension:e,drilldownSelections:t,onDrilldownSelectionsChange:n}),f=k.useCallback((g,b,v=[])=>{const w=[HS(b,l),WS(v,l,(C,T)=>{u(b,C,T)},i)];r({id:rl.WIDGET_POINTS_DRILLDOWN,position:g,itemSections:w})},[l,i,u,r]),p=k.useMemo(()=>l&&y.jsx(IS,{filtersDisplayValues:o,currentDimension:l,clearDrilldownSelections:h,sliceDrilldownSelections:c}),[h,l,o,c]);return{drilldownDimension:l,drilldownFilters:a,breadcrumbs:p,openDrilldownMenu:f}};function HS(e,t){const r=km(e.map(BS).filter(n=>!!n));return r.length>AS?{id:co.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:t.name}:{id:co.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:r.join(", ")}}function Wge(e){return 30+12*e}function WS(e,t,r,n){const[i,a]=Dl(e,j.MetadataTypes.isAttribute.bind(j.MetadataTypes)),o=i.map(u=>({caption:u.name,onClick:()=>r(u)})),l=a.map(u=>({caption:u.title,subItems:[{items:u.levels.map((c,h)=>({caption:c.name,class:h===0?"":"csdk-drilldown-hierarchy-nested-menu-item",style:{paddingLeft:`${Wge(h)}px`},disabled:Yr(c,t),onClick:()=>r(c,u)}))}]}));return{id:co.DRILLDOWN_DRILL_DIRECTIONS,sectionTitle:n("drilldown.drillMenuItem"),items:[...l,...o]}}function jge({attribute:e,dataSource:t,drilldownPaths:r=[],enabled:n}){const[i,a]=k.useMemo(()=>Dl(r,Y0),[r]),{hierarchies:o=[]}=_S({enabled:n,dataSource:t,dimension:e,ids:i,alwaysIncluded:!0});return k.useMemo(()=>o.length?[...o,...a]:a,[o,a])}const Vge=({propsToExtend:e,onDrilldownSelectionsChange:t})=>{const{chartType:r,dataOptions:n,dataSource:i,drilldownOptions:a}=e,{drilldownSelections:o}=a||{},{openMenu:l}=MS(),u=k.useMemo(()=>hge(r,n),[r,n]),c=k.useMemo(()=>(a==null?void 0:a.drilldownPaths)||[],[a==null?void 0:a.drilldownPaths]),h=k.useMemo(()=>{const G=j.createAttribute({name:"dummy drilldown initial attribute"});return uge(r,n)||G},[r,n]),f=jge({attribute:h,dataSource:i,drilldownPaths:c,enabled:u}),p=k.useRef(f);k.useEffect(()=>{p.current=f},[f]);const g=k.useMemo(()=>{var K;return(!!((K=a==null?void 0:a.drilldownSelections)!=null&&K.length)||!!(f!=null&&f.length))&&u},[a,u,f]),{drilldownDimension:b,drilldownFilters:v,breadcrumbs:w,openDrilldownMenu:C}=Hge({initialDimension:h,drilldownSelections:o,openMenu:l,onDrilldownSelectionsChange:t}),T=k.useCallback((G,K)=>{const Z=J_(G,K,n),O=Nm(h,o||[]),$=Dm(p.current,O);C({left:K.clientX,top:K.clientY},Z,$)},[n,h,o,C]),E=k.useCallback((G,K)=>{const Z=J_([G],K,n),O=Nm(h,o||[]),$=Dm(p.current,O);C({left:K.clientX,top:K.clientY},Z,$)},[n,h,o,C]),S=k.useMemo(()=>RS(r,n,b),[r,n,b]),P=k.useMemo(()=>v.length?j.mergeFiltersOrFilterRelations(e.filters||[],v):e.filters,[e.filters,v]),R=k.useMemo(()=>y.combineHandlers([T,e.onDataPointsSelected]),[T,e.onDataPointsSelected]),N=k.useMemo(()=>y.combineHandlers([E,e.onDataPointContextMenu]),[E,e.onDataPointContextMenu]);return{propsWithDrilldown:I(M({},e),{dataOptions:S,filters:P,onDataPointsSelected:R,onDataPointContextMenu:N}),isDrilldownEnabled:g,breadcrumbs:w}},Gge=ml({componentName:"ChartWidget"})(e=>{var G,K;const{app:t}=Et(),{chartType:r,dataSource:n=t==null?void 0:t.defaultDataSource,dataOptions:i,styleOptions:a,highlightSelectionDisabled:o=!1,highlights:l,description:u,onChange:c}=e,{width:h,height:f}=a||{},p=k.useMemo(()=>{var Z;return IC(r,{hasHeader:!((Z=a==null?void 0:a.header)!=null&&Z.hidden)})},[r,(G=a==null?void 0:a.header)==null?void 0:G.hidden]),g=k.useMemo(()=>({width:h,height:f}),[h,f]),[b,v]=k.useState(0),w=k.useMemo(()=>j.omit(a,["width","height"]),[a]),C=k.useCallback(Z=>{c==null||c({drilldownOptions:{drilldownSelections:Z}})},[c]),{propsWithDrilldown:T,isDrilldownEnabled:E,breadcrumbs:S}=Vge({propsToExtend:e,onDrilldownSelectionsChange:C}),P=G0e({chartType:r,dataOptions:i,enabled:!o&&!E&&!(l!=null&&l.length)}),R=(K=t==null?void 0:t.settings.accessibilityConfig)==null?void 0:K.enabled,N=k.useCallback(Z=>{var O;return R?I(M({},Z),{accessibility:I(M({},Z.accessibility),{description:u!=null?u:(O=Z.accessibility)==null?void 0:O.description})}):Z},[u,R]);if(!r||!i)return null;const W=I(M({},T),{dataSet:n,styleOptions:w,refreshCounter:b,onDataPointClick:k.useMemo(()=>y.combineHandlers([P.onDataPointClick,e.onDataPointClick]),[P.onDataPointClick,e.onDataPointClick]),onDataPointContextMenu:T.onDataPointContextMenu,onDataPointsSelected:k.useMemo(()=>y.combineHandlers([P.onDataPointsSelected,T.onDataPointsSelected]),[P.onDataPointsSelected,T.onDataPointsSelected]),onBeforeRender:k.useMemo(()=>y.combineHandlers([N,P.onBeforeRender,e.onBeforeRender],!0),[N,P.onBeforeRender,e.onBeforeRender])});return y.jsx(md,{defaultSize:p,size:g,children:y.jsx(TS,I(M({},e),{topSlot:y.jsxs(y.Fragment,{children:[e.topSlot,S]}),dataSetName:n&&j.getDataSourceName(n),onRefresh:()=>v(b+1),children:y.jsx(XM,M({},W))}))})});function Uge({fill:e="rgba(38, 46, 61, 0.67)"}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 7C11 6.44772 11.4477 6 12 6C12.5523 6 13 6.44772 13 7C13 7.55228 12.5523 8 12 8C11.4477 8 11 7.55228 11 7ZM11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12ZM12 16C11.4477 16 11 16.4477 11 17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17C13 16.4477 12.5523 16 12 16Z",fill:e})})}class Do{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 il=typeof window=="undefined"||"Deno"in window;function Wr(){}function Yge(e,t){return typeof e=="function"?e(t):e}function Lm(e){return typeof e=="number"&&e>=0&&e!==1/0}function jS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _s(e,t,r){return Ll(e)?typeof t=="function"?I(M({},r),{queryKey:e,queryFn:t}):I(M({},t),{queryKey:e}):e}function qge(e,t,r){return Ll(e)?I(M({},t),{mutationKey:e}):typeof e=="function"?I(M({},t),{mutationFn:e}):M({},e)}function ii(e,t,r){return Ll(e)?[I(M({},t),{queryKey:e}),r]:[e||{},t]}function t2(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:l}=e;if(Ll(o)){if(n){if(t.queryHash!==qg(o,t.options))return!1}else if(!Ga(t.queryKey,o))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof i!="undefined"&&i!==t.state.fetchStatus||a&&!a(t))}function r2(e,t){const{exact:r,fetching:n,predicate:i,mutationKey:a}=e;if(Ll(a)){if(!t.options.mutationKey)return!1;if(r){if(Bi(t.options.mutationKey)!==Bi(a))return!1}else if(!Ga(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||i&&!i(t))}function qg(e,t){return((t==null?void 0:t.queryKeyHashFn)||Bi)(e)}function Bi(e){return JSON.stringify(e,(t,r)=>Im(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Ga(e,t){return VS(e,t)}function VS(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!VS(e[r],t[r])):!1}function GS(e,t){if(e===t)return e;const r=n2(e)&&n2(t);if(r||Im(e)&&Im(t)){const n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),a=i.length,o=r?[]:{};let l=0;for(let u=0;u<a;u++){const c=r?u:i[u];o[c]=GS(e[c],t[c]),o[c]===e[c]&&l++}return n===a&&l===n?e:o}return t}function Ac(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function n2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Im(e){if(!i2(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const r=t.prototype;return!(!i2(r)||!r.hasOwnProperty("isPrototypeOf"))}function i2(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ll(e){return Array.isArray(e)}function US(e){return new Promise(t=>{setTimeout(t,e)})}function a2(e){US(0).then(e)}function Xge(){if(typeof AbortController=="function")return new AbortController}function $m(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?GS(e,t):t}class Zge extends Do{constructor(){super(),this.setup=t=>{if(!il&&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 Rc=new Zge,o2=["online","offline"];class Kge extends Do{constructor(){super(),this.setup=t=>{if(!il&&window.addEventListener){const r=()=>t();return o2.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{o2.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 Oc=new Kge;function Qge(e){return Math.min(1e3*cn(2,e),3e4)}function qd(e){return(e!=null?e:"online")==="online"?Oc.isOnline():!0}class YS{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Ku(e){return e instanceof YS}function qS(e){let t=!1,r=0,n=!1,i,a,o;const l=new Promise((w,C)=>{a=w,o=C}),u=w=>{n||(g(new YS(w)),e.abort==null||e.abort())},c=()=>{t=!0},h=()=>{t=!1},f=()=>!Rc.isFocused()||e.networkMode!=="always"&&!Oc.isOnline(),p=w=>{n||(n=!0,e.onSuccess==null||e.onSuccess(w),i==null||i(),a(w))},g=w=>{n||(n=!0,e.onError==null||e.onError(w),i==null||i(),o(w))},b=()=>new Promise(w=>{i=C=>{const T=n||!f();return T&&w(C),T},e.onPause==null||e.onPause()}).then(()=>{i=void 0,n||e.onContinue==null||e.onContinue()}),v=()=>{if(n)return;let w;try{w=e.fn()}catch(C){w=Promise.reject(C)}Promise.resolve(w).then(p).catch(C=>{var T,E;if(n)return;const S=(T=e.retry)!=null?T:3,P=(E=e.retryDelay)!=null?E:Qge,R=typeof P=="function"?P(r,C):P,N=S===!0||typeof S=="number"&&r<S||typeof S=="function"&&S(r,C);if(t||!N){g(C);return}r++,e.onFail==null||e.onFail(r,C),US(R).then(()=>{if(f())return b()}).then(()=>{t?g(C):v()})})};return qd(e.networkMode)?v():b().then(v),{promise:l,cancel:u,continue:()=>(i==null?void 0:i())?l:Promise.resolve(),cancelRetry:c,continueRetry:h}}const Xg=console;function Jge(){let e=[],t=0,r=h=>{h()},n=h=>{h()};const i=h=>{let f;t++;try{f=h()}finally{t--,t||l()}return f},a=h=>{t?e.push(h):a2(()=>{r(h)})},o=h=>(...f)=>{a(()=>{h(...f)})},l=()=>{const h=e;e=[],h.length&&a2(()=>{n(()=>{h.forEach(f=>{r(f)})})})};return{batch:i,batchCalls:o,schedule:a,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{n=h}}}const It=Jge();class XS{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Lm(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:il?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class eve extends XS{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Xg,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||tve(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options=M(M({},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=$m(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(Wr).catch(Wr):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||!jS(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,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return(a=this.retryer)==null||a.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(b=>b.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 o=Xge(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};u(l);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};if(u(h),(n=this.options.behavior)==null||n.onFetch(h),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=h.fetchOptions)==null?void 0:i.meta)){var f;this.dispatch({type:"fetch",meta:(f=h.fetchOptions)==null?void 0:f.meta})}const p=g=>{if(Ku(g)&&g.silent||this.dispatch({type:"error",error:g}),!Ku(g)){var b,v,w,C;(b=(v=this.cache.config).onError)==null||b.call(v,g,this),(w=(C=this.cache.config).onSettled)==null||w.call(C,this.state.data,g,this),process.env.NODE_ENV!=="production"&&this.logger.error(g)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=qS({fn:h.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:g=>{var b,v,w,C;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),p(new Error(this.queryHash+" data is undefined"));return}this.setData(g),(b=(v=this.cache.config).onSuccess)==null||b.call(v,g,this),(w=(C=this.cache.config).onSettled)==null||w.call(C,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(g,b)=>{this.dispatch({type:"failed",failureCount:g,error:b})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var i,a;switch(t.type){case"failed":return I(M({},n),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return I(M({},n),{fetchStatus:"paused"});case"continue":return I(M({},n),{fetchStatus:"fetching"});case"fetch":return M(I(M({},n),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:qd(this.options.networkMode)?"fetching":"paused"}),!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return M(I(M({},n),{data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const o=t.error;return Ku(o)&&o.revert&&this.revertState?I(M({},this.revertState),{fetchStatus:"idle"}):I(M({},n),{error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"});case"invalidate":return I(M({},n),{isInvalidated:!0});case"setState":return M(M({},n),t.state)}};this.state=r(this.state),It.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function tve(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 rve extends Do{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var i;const a=r.queryKey,o=(i=r.queryHash)!=null?i:qg(a,r);let l=this.get(o);return l||(l=new eve({cache:this,logger:t.getLogger(),queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(l)),l}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(){It.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=ii(t,r);return typeof n.exact=="undefined"&&(n.exact=!0),this.queries.find(i=>t2(n,i))}findAll(t,r){const[n]=ii(t,r);return Object.keys(n).length>0?this.queries.filter(i=>t2(n,i)):this.queries}notify(t){It.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){It.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){It.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class nve extends XS{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Xg,this.observers=[],this.state=t.state||ZS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=M(M({},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 er(this,null,function*(){const t=()=>{var N;return this.retryer=qS({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(W,G)=>{this.dispatch({type:"failed",failureCount:W,error:G})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(N=this.options.retry)!=null?N:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,i,a,o,l,u,c,h;if(!r){var f,p,g,b;this.dispatch({type:"loading",variables:this.options.variables}),yield(f=(p=this.mutationCache.config).onMutate)==null?void 0:f.call(p,this.state.variables,this);const W=yield(g=(b=this.options).onMutate)==null?void 0:g.call(b,this.state.variables);W!==this.state.context&&this.dispatch({type:"loading",context:W,variables:this.state.variables})}const N=yield t();return yield(n=(i=this.mutationCache.config).onSuccess)==null?void 0:n.call(i,N,this.state.variables,this.state.context,this),yield(a=(o=this.options).onSuccess)==null?void 0:a.call(o,N,this.state.variables,this.state.context),yield(l=(u=this.mutationCache.config).onSettled)==null?void 0:l.call(u,N,null,this.state.variables,this.state.context,this),yield(c=(h=this.options).onSettled)==null?void 0:c.call(h,N,null,this.state.variables,this.state.context),this.dispatch({type:"success",data:N}),N}catch(N){try{var v,w,C,T,E,S,P,R;throw yield(v=(w=this.mutationCache.config).onError)==null?void 0:v.call(w,N,this.state.variables,this.state.context,this),process.env.NODE_ENV!=="production"&&this.logger.error(N),yield(C=(T=this.options).onError)==null?void 0:C.call(T,N,this.state.variables,this.state.context),yield(E=(S=this.mutationCache.config).onSettled)==null?void 0:E.call(S,void 0,N,this.state.variables,this.state.context,this),yield(P=(R=this.options).onSettled)==null?void 0:P.call(R,void 0,N,this.state.variables,this.state.context),N}finally{this.dispatch({type:"error",error:N})}}})}dispatch(t){const r=n=>{switch(t.type){case"failed":return I(M({},n),{failureCount:t.failureCount,failureReason:t.error});case"pause":return I(M({},n),{isPaused:!0});case"continue":return I(M({},n),{isPaused:!1});case"loading":return I(M({},n),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!qd(this.options.networkMode),status:"loading",variables:t.variables});case"success":return I(M({},n),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return I(M({},n),{data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"});case"setState":return M(M({},n),t.state)}};this.state=r(this.state),It.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function ZS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class ive extends Do{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const i=new nve({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(i),i}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(){It.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=>r2(t,r))}findAll(t){return this.mutations.filter(r=>r2(t,r))}notify(t){It.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 It.batch(()=>r.reduce((n,i)=>n.then(()=>i.continue().catch(Wr)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function ave(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,i,a,o;const l=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,u=(n=e.fetchOptions)==null||(i=n.meta)==null?void 0:i.fetchMore,c=u==null?void 0:u.pageParam,h=(u==null?void 0:u.direction)==="forward",f=(u==null?void 0:u.direction)==="backward",p=((a=e.state.data)==null?void 0:a.pages)||[],g=((o=e.state.data)==null?void 0:o.pageParams)||[];let b=g,v=!1;const w=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>{var N;if((N=e.signal)!=null&&N.aborted)v=!0;else{var W;(W=e.signal)==null||W.addEventListener("abort",()=>{v=!0})}return e.signal}})},C=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),T=(R,N,W,G)=>(b=G?[N,...b]:[...b,N],G?[W,...R]:[...R,W]),E=(R,N,W,G)=>{if(v)return Promise.reject("Cancelled");if(typeof W=="undefined"&&!N&&R.length)return Promise.resolve(R);const K={queryKey:e.queryKey,pageParam:W,meta:e.options.meta};w(K);const Z=C(K);return Promise.resolve(Z).then($=>T(R,W,$,G))};let S;if(!p.length)S=E([]);else if(h){const R=typeof c!="undefined",N=R?c:s2(e.options,p);S=E(p,R,N)}else if(f){const R=typeof c!="undefined",N=R?c:ove(e.options,p);S=E(p,R,N,!0)}else{b=[];const R=typeof e.options.getNextPageParam=="undefined";S=(l&&p[0]?l(p[0],0,p):!0)?E([],R,g[0]):Promise.resolve(T([],g[0],p[0]));for(let W=1;W<p.length;W++)S=S.then(G=>{if(l&&p[W]?l(p[W],W,p):!0){const Z=R?g[W]:s2(e.options,G);return E(G,R,Z)}return Promise.resolve(T(G,g[W],p[W]))})}return S.then(R=>({pages:R,pageParams:b}))}}}}function s2(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function ove(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class sve{constructor(t={}){this.queryCache=t.queryCache||new rve,this.mutationCache=t.mutationCache||new ive,this.logger=t.logger||Xg,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=Rc.subscribe(()=>{Rc.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Oc.subscribe(()=>{Oc.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]=ii(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll(I(M({},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 i=_s(t,r,n),a=this.getQueryData(i.queryKey);return a?Promise.resolve(a):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const i=n.data;return[r,i]})}setQueryData(t,r,n){const i=this.queryCache.find(t),a=i==null?void 0:i.state.data,o=Yge(r,a);if(typeof o=="undefined")return;const l=_s(t),u=this.defaultQueryOptions(l);return this.queryCache.build(this,u).setData(o,I(M({},n),{manual:!0}))}setQueriesData(t,r,n){return It.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=ii(t,r),i=this.queryCache;It.batch(()=>{i.findAll(n).forEach(a=>{i.remove(a)})})}resetQueries(t,r,n){const[i,a]=ii(t,r,n),o=this.queryCache,l=M({type:"active"},i);return It.batch(()=>(o.findAll(i).forEach(u=>{u.reset()}),this.refetchQueries(l,a)))}cancelQueries(t,r,n){const[i,a={}]=ii(t,r,n);typeof a.revert=="undefined"&&(a.revert=!0);const o=It.batch(()=>this.queryCache.findAll(i).map(l=>l.cancel(a)));return Promise.all(o).then(Wr).catch(Wr)}invalidateQueries(t,r,n){const[i,a]=ii(t,r,n);return It.batch(()=>{var o,l;if(this.queryCache.findAll(i).forEach(c=>{c.invalidate()}),i.refetchType==="none")return Promise.resolve();const u=I(M({},i),{type:(o=(l=i.refetchType)!=null?l:i.type)!=null?o:"active"});return this.refetchQueries(u,a)})}refetchQueries(t,r,n){const[i,a]=ii(t,r,n),o=It.batch(()=>this.queryCache.findAll(i).filter(u=>!u.isDisabled()).map(u=>{var c;return u.fetch(void 0,I(M({},a),{cancelRefetch:(c=a==null?void 0:a.cancelRefetch)!=null?c:!0,meta:{refetchPage:i.refetchPage}}))}));let l=Promise.all(o).then(Wr);return a!=null&&a.throwOnError||(l=l.catch(Wr)),l}fetchQuery(t,r,n){const i=_s(t,r,n),a=this.defaultQueryOptions(i);typeof a.retry=="undefined"&&(a.retry=!1);const o=this.queryCache.build(this,a);return o.isStaleByTime(a.staleTime)?o.fetch(a):Promise.resolve(o.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(Wr).catch(Wr)}fetchInfiniteQuery(t,r,n){const i=_s(t,r,n);return i.behavior=ave(),this.fetchQuery(i)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(Wr).catch(Wr)}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(i=>Bi(t)===Bi(i.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>Ga(t,n.queryKey));return process.env.NODE_ENV!=="production"&&this.queryDefaults.filter(i=>Ga(t,i.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(i=>Bi(t)===Bi(i.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>Ga(t,n.mutationKey));return process.env.NODE_ENV!=="production"&&this.mutationDefaults.filter(i=>Ga(t,i.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=I(M(M(M({},this.defaultOptions.queries),this.getQueryDefaults(t==null?void 0:t.queryKey)),t),{_defaulted:!0});return!r.queryHash&&r.queryKey&&(r.queryHash=qg(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:I(M(M(M({},this.defaultOptions.mutations),this.getMutationDefaults(t==null?void 0:t.mutationKey)),t),{_defaulted:!0})}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class lve extends Do{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),l2(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fm(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fm(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,i=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"),Ac(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 a=this.hasListeners();a&&u2(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(r),a&&(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();a&&(this.currentQuery!==i||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return cve(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 i=n,{refetchPage:t}=i,r=xe(i,["refetchPage"]);return this.fetch(I(M({},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(I(M({},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(Wr)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),il||this.currentResult.isStale||!Lm(this.options.staleTime))return;const r=jS(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,!(il||this.options.enabled===!1||!Lm(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Rc.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,i=this.options,a=this.currentResult,o=this.currentResultState,l=this.currentResultOptions,u=t!==n,c=u?t.state:this.currentQueryInitialState,h=u?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:p,error:g,errorUpdatedAt:b,fetchStatus:v,status:w}=f,C=!1,T=!1,E;if(r._optimisticResults){const W=this.hasListeners(),G=!W&&l2(t,r),K=W&&u2(t,n,r,i);(G||K)&&(v=qd(t.options.networkMode)?"fetching":"paused",p||(w="loading")),r._optimisticResults==="isRestoring"&&(v="idle")}if(r.keepPreviousData&&!f.dataUpdatedAt&&h!=null&&h.isSuccess&&w!=="error")E=h.data,p=h.dataUpdatedAt,w=h.status,C=!0;else if(r.select&&typeof f.data!="undefined")if(a&&f.data===(o==null?void 0:o.data)&&r.select===this.selectFn)E=this.selectResult;else try{this.selectFn=r.select,E=r.select(f.data),E=$m(a==null?void 0:a.data,E,r),this.selectResult=E,this.selectError=null}catch(W){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(W),this.selectError=W}else E=f.data;if(typeof r.placeholderData!="undefined"&&typeof E=="undefined"&&w==="loading"){let W;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData))W=a.data;else if(W=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof W!="undefined")try{W=r.select(W),this.selectError=null}catch(G){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(G),this.selectError=G}typeof W!="undefined"&&(w="success",E=$m(a==null?void 0:a.data,W,r),T=!0)}this.selectError&&(g=this.selectError,E=this.selectResult,b=Date.now(),w="error");const S=v==="fetching",P=w==="loading",R=w==="error";return{status:w,fetchStatus:v,isLoading:P,isSuccess:w==="success",isError:R,isInitialLoading:P&&S,data:E,dataUpdatedAt:p,error:g,errorUpdatedAt:b,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:S,isRefetching:S&&!P,isLoadingError:R&&f.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:T,isPreviousData:C,isRefetchError:R&&f.dataUpdatedAt!==0,isStale:Zg(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,Ac(n,r))return;this.currentResult=n;const i={cache:!0},a=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!this.trackedProps.size)return!0;const u=new Set(l!=null?l:this.trackedProps);return this.options.useErrorBoundary&&u.add("error"),Object.keys(this.currentResult).some(c=>{const h=c;return this.currentResult[h]!==r[h]&&u.has(h)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),this.notify(M(M({},i),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"&&!Ku(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){It.batch(()=>{if(t.onSuccess){var r,n,i,a;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(i=(a=this.options).onSettled)==null||i.call(a,this.currentResult.data,null)}else if(t.onError){var o,l,u,c;(o=(l=this.options).onError)==null||o.call(l,this.currentResult.error),(u=(c=this.options).onSettled)==null||u.call(c,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function uve(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function l2(e,t){return uve(e,t)||e.state.dataUpdatedAt>0&&Fm(e,t,t.refetchOnMount)}function Fm(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Zg(e,t)}return!1}function u2(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Zg(e,r)}function Zg(e,t){return e.isStaleByTime(t.staleTime)}function cve(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!Ac(e.getCurrentResult(),t)}var zm={exports:{}},Tf={};/**
568
+ * @license React
569
+ * use-sync-external-store-shim.production.js
570
+ *
571
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
572
+ *
573
+ * This source code is licensed under the MIT license found in the
574
+ * LICENSE file in the root directory of this source tree.
575
+ */var c2;function dve(){if(c2)return Tf;c2=1;var e=k;function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function l(f,p){var g=p(),b=n({inst:{value:g,getSnapshot:p}}),v=b[0].inst,w=b[1];return a(function(){v.value=g,v.getSnapshot=p,u(v)&&w({inst:v})},[f,g,p]),i(function(){return u(v)&&w({inst:v}),f(function(){u(v)&&w({inst:v})})},[f]),o(g),g}function u(f){var p=f.getSnapshot;f=f.value;try{var g=p();return!r(f,g)}catch(b){return!0}}function c(f,p){return p()}var h=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?c:l;return Tf.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,Tf}var Mf={};/**
576
+ * @license React
577
+ * use-sync-external-store-shim.development.js
578
+ *
579
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
580
+ *
581
+ * This source code is licensed under the MIT license found in the
582
+ * LICENSE file in the root directory of this source tree.
583
+ */var d2;function hve(){return d2||(d2=1,process.env.NODE_ENV!=="production"&&function(){function e(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}function t(g,b){h||i.startTransition===void 0||(h=!0,console.error("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 v=b();if(!f){var w=b();a(v,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}w=o({inst:{value:v,getSnapshot:b}});var C=w[0].inst,T=w[1];return u(function(){C.value=v,C.getSnapshot=b,r(C)&&T({inst:C})},[g,v,b]),l(function(){return r(C)&&T({inst:C}),g(function(){r(C)&&T({inst:C})})},[g]),c(v),v}function r(g){var b=g.getSnapshot;g=g.value;try{var v=b();return!a(g,v)}catch(w){return!0}}function n(g,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=k,a=typeof Object.is=="function"?Object.is:e,o=i.useState,l=i.useEffect,u=i.useLayoutEffect,c=i.useDebugValue,h=!1,f=!1,p=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?n:t;Mf.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Mf}process.env.NODE_ENV==="production"?zm.exports=dve():zm.exports=hve();var fve=zm.exports;const KS=fve.useSyncExternalStore,h2=Q.createContext(void 0),QS=Q.createContext(!1);function JS(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=h2),window.ReactQueryClientContext):h2)}const eE=({context:e}={})=>{const t=Q.useContext(JS(e,Q.useContext(QS)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},pve=({client:e,children:t,context:r,contextSharing:n=!1})=>{Q.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 i=JS(r,n);return Q.createElement(QS.Provider,{value:!r&&n},Q.createElement(i.Provider,{value:e},t))},mve=Q.createContext(!1),gve=()=>Q.useContext(mve);function vve(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const yve=Q.createContext(vve()),bve=()=>Q.useContext(yve);function tE(e,t){return typeof e=="function"?e(...t):!!e}const _ve=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},wve=e=>{Q.useEffect(()=>{e.clearReset()},[e])},xve=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&tE(r,[e.error,n]),Cve=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Tve=(e,t)=>e.isLoading&&e.isFetching&&!t,Mve=(e,t,r)=>(e==null?void 0:e.suspense)&&Tve(t,r),Sve=(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 Eve(e,t){const r=eE({context:e.context}),n=gve(),i=bve(),a=r.defaultQueryOptions(e);a._optimisticResults=n?"isRestoring":"optimistic",a.onError&&(a.onError=It.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=It.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=It.batchCalls(a.onSettled)),Cve(a),_ve(a,i),wve(i);const[o]=Q.useState(()=>new t(r,a)),l=o.getOptimisticResult(a);if(KS(Q.useCallback(u=>{const c=n?()=>{}:o.subscribe(It.batchCalls(u));return o.updateResult(),c},[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),Q.useEffect(()=>{o.setOptions(a,{listeners:!1})},[a,o]),Mve(a,l,n))throw Sve(a,o,i);if(xve({result:l,errorResetBoundary:i,useErrorBoundary:a.useErrorBoundary,query:o.getCurrentQuery()}))throw l.error;return a.notifyOnChangeProps?l:o.trackResult(l)}function Pve(e,t,r){const n=_s(e,t,r);return Eve(n,lve)}function Ave(e){const t={};return{flatFilters:e.reduce((n,i)=>(j.isCascadingFilter(i)?(t[i.config.guid]||(t[i.config.guid]=[]),i.filters.forEach(a=>{t[i.config.guid].push(a),n.push(a)})):n.push(i),n),[]),cascadingToPureFiltersMap:t}}function rE(e,t,r){const n=t.filter(j.isCascadingFilter);return Ove(e,n).map(a=>{if(Rve(a)){const o=n.find(u=>u.config.guid===a.groupId);if(!o)throw new j.TranslatableError("errors.cascadingFilterOriginalNotFound");const l=r==null?void 0:r.shouldResetFiltersDeeperThanModified;return kve(a,o,{shouldResetFiltersDeeperThanModified:l})}return a})}function Rve(e){return"groupId"in e}function Ove(e,t){const r=[];return e.forEach(n=>{const i=t.find(a=>a.filters.some(o=>j.getFilterCompareId(o)===j.getFilterCompareId(n)));if(i){const a=i.config.guid,o=r.find(l=>"groupId"in l&&l.groupId===a);o?o.filters.push(n):r.push({groupId:a,filters:[n],previousFilters:i.filters})}else r.push(n)}),r}function kve(e,t,r){const n=r!=null&&r.shouldResetFiltersDeeperThanModified?Lve(e.filters,e.previousFilters):e.filters,i=Dve(n,t.config.disabled);return j.cascading(n,{guid:t.config.guid,disabled:i})}function Dve(e,t){return e.some(n=>n.config.disabled!==t)?!t:t}function Nve(e,t,r){const{flatFilters:n,cascadingToPureFiltersMap:i}=Ave(e);return{pureFilters:n,updateFilters:o=>{const l=rE(o,e,{shouldResetFiltersDeeperThanModified:!0});t(l)},pureFiltersIgnoringRules:Ive(r,i)}}function Lve(e,t){const r=e.reduce((n,i,a)=>{const o=t.find(l=>jg(l,i));return o&&!PS(i,o)?a:n},-1);return r===-1?e:e.map((n,i)=>i>r?Yd(n):n)}function Ive(e,t){var r;return{all:e.all,ids:((r=e.ids)==null?void 0:r.reduce((n,i)=>{const a=t[i];return a?n.concat(a.map(o=>o.config.guid)):n.concat(i)},[]))||[]}}const $ve=Gt.button`
584
+ color: ${({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor}};
585
+ background: none;
586
+ font-size: 13px;
587
+ border: none;
588
+ height: 26px;
589
+ padding: 0 6px 0 2px;
590
+ margin: 0 4px 0 4px;
591
+ border-radius: 4px;
592
+ cursor: pointer;
593
+ display: flex;
594
+ align-items: center;
595
+ justify-content: center;
596
+ &:hover {
597
+ background-color: rgba(247, 247, 247, 1);
598
+ }
599
+ `,Fve=Gt.span`
600
+ color: ${({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor}};
601
+ display: inline-block;
602
+ padding-top: 3px;
603
+ white-space: nowrap;
604
+ `,zve=({onClick:e})=>{var n;const{themeSettings:t}=ot(),{t:r}=y.useTranslation();return y.jsxs($ve,{onClick:e,theme:t,children:[y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:y.jsx("path",{fill:(n=t.chart)==null?void 0:n.textColor,d:"M7.187 7l9.774 10.279A1 1 0 0 0 17 17V8a1 1 0 0 0-1-1H7.187zm9.018 10.979L6.206 7.463l.487-.415A1 1 0 0 0 6 8v9a1 1 0 0 0 1 1h9c.07 0 .139-.007.205-.021zM7 6h9a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"})}),y.jsx(Fve,{theme:t,children:r("commonFilter.clearSelectionButton")})]})},f2={applyMode:Nl.HIGHLIGHT,shouldAffectFilters:!0,ignoreFilters:{all:!1,ids:[]},forceApplyBackgroundFilters:!0};function Bve(e,t){return e==="table"?{applyMode:Nl.FILTER,shouldAffectFilters:!1,ignoreFilters:j.merge$1(f2.ignoreFilters,t.ignoreFilters||{})}:j.merge$1(f2,t)}function Hve(e,t,r,n,i,a,o){const l={},u=Bve(r,i),{pureFilters:c,updateFilters:h,pureFiltersIgnoringRules:f}=Nve(e,t,u.ignoreFilters||{}),p=c.filter(E=>!E.config.disabled),g=X0e(p,f),b=Yg(r,n),v=u.shouldAffectFilters&&b.length,[w,C]=jve(g,b,u.applyMode),T=u.forceApplyBackgroundFilters?j.mergeFilters(Wve(c),w):w;if(l.filters=T,l.highlights=C,l.onDataPointsSelected=(E,S)=>{const P=[];if(v){const R=K_(r,n,E);R&&P.push(R);const N=Zu(r,n,E),{filters:W,isSelection:G}=Cf(N,c,!0),K=a(G?"commonFilter.selectMenuItem":"commonFilter.unselectMenuItem"),Z=Q_(K,()=>{h(j.mergeFilters(c,W))});P.push(Z)}P.length&&(o==null||o({id:rl.WIDGET_POINTS_CROSSFILTERING,position:{left:S.clientX,top:S.clientY},itemSections:P}))},l.onDataPointContextMenu=(E,S)=>{const P=[];if(v){const R=K_(r,n,[E]);R&&P.push(R);const N=Zu(r,n,[E]);if(!N.length)return;const{filters:W,isSelection:G}=Cf(N,c,!0),K=a(G?"commonFilter.selectMenuItem":"commonFilter.unselectMenuItem"),Z=Q_(K,()=>{h(j.mergeFilters(c,W))});P.push(Z)}P.length&&(o==null||o({id:rl.WIDGET_POINTS_CROSSFILTERING,position:{left:S.clientX,top:S.clientY},itemSections:P}))},v){l.onDataPointClick=R=>{const N=Zu(r,n,[R]),{filters:W}=Cf(N,c);h(j.mergeFilters(c,W))};const E=p.filter(R=>b==null?void 0:b.some(N=>j.isMembersFilter(R)&&Yr(R.attribute,N)&&!Wg(R)&&!R.config.locked)),S=!!E.length,P=()=>{const R=E.map(Yd);h(j.mergeFilters(c,R))};S&&(l.renderToolbar=(R,N)=>{const W=b.map(({expression:G})=>G).join(";");return y.jsxs("div",{style:{display:"flex"},children:[y.jsx(zve,{onClick:P}),N]},W)})}return l}function Wve(e){return e.map(t=>{var r;return(r=t.config)==null?void 0:r.backgroundFilter}).filter(t=>!!t)}function jve(e,t,r){if(r===Nl.HIGHLIGHT){const[n,i]=Dl(e,o=>t.every(l=>!Yr(l,o.attribute))),a=i.filter(o=>!Wg(o));return[n,a]}return[e,[]]}function Vve(e,t){const r=k.useRef(void 0),[n,i]=Vg(k.useMemo(()=>j.splitFiltersAndRelations(e),[e]),{onLocalStateChange:k.useCallback(g=>{const{filters:b,relations:v}=g;if(t){const w=j.combineFiltersAndRelations(b,v);j.isEqual(r.current,w)||(r.current=w,t(w))}},[t])}),{filters:a,relations:o}=n,l=k.useMemo(()=>j.combineFiltersAndRelations(a,o),[a,o]),u=k.useCallback(g=>{if(j.isFilterRelations(g)){const{filters:b,relations:v}=j.splitFiltersAndRelations(g);i({filters:b||[],relations:v||null})}else i({filters:g,relations:null})},[i]),c=k.useCallback(g=>{const b=j.mergeFilters(a,[g]);i({filters:b,relations:j.calculateNewRelations(a,o,b)})},[a,o,i]),h=k.useCallback(g=>{i({filters:g,relations:j.calculateNewRelations(a,o,g)})},[a,o,i]),f=k.useMemo(()=>a.some(g=>j.isCascadingFilter(g)),[a]),p=k.useCallback(g=>{if(!o)return g;const b=f?rE(g,a):g,v=j.calculateNewRelations(a,o,b);return j.combineFiltersAndRelations(b,v)},[f,a,o]);return{regularFilters:a,addFilter:c,filtersOrFilterRelations:l,setFiltersOrFilterRelations:u,setFilters:h,applyRelationsToOtherFilters:p}}const Gve=({initialFilters:e=[],openMenu:t,onBeforeMenuOpen:r,onFiltersChange:n}={})=>{const{t:i}=y.useTranslation(),{filtersOrFilterRelations:a,regularFilters:o,addFilter:l,setFiltersOrFilterRelations:u,setFilters:c,applyRelationsToOtherFilters:h}=Vve(e,n),f=k.useCallback((p,g={})=>{var S,P;if(y.isTextWidgetProps(p))return p;const b=y.getInternalWidgetType(p),v=p,w=j.cloneDeep(p),T="drilldownOptions"in p&&((P=(S=p.drilldownOptions)==null?void 0:S.drilldownSelections)==null?void 0:P.length)?RS(p.chartType,p.dataOptions,j.last(p.drilldownOptions.drilldownSelections).nextDimension):p.dataOptions,E=Hve(o,c,b,T,g,i,t);return w.highlights=j.mergeFilters(E.highlights,v.highlights),w.onBeforeMenuOpen=r,w.filters=h(j.mergeFilters(E.filters,j.getFiltersArray(v.filters))),E.onDataPointClick&&y.registerDataPointClickHandler(w,E.onDataPointClick),E.onDataPointsSelected&&y.registerDataPointsSelectedHandler(w,E.onDataPointsSelected),E.onDataPointContextMenu&&y.registerDataPointContextMenuHandler(w,E.onDataPointContextMenu),E.renderToolbar&&y.registerRenderToolbarHandler(w,E.renderToolbar),w},[o,c,i,t,r,h]);return{filters:a,setFilters:u,addFilter:l,connectToWidgetProps:f}};exports.ArrowIcon=kp;exports.Backdrop=S0;exports.Button=nl;exports.ButtonBase=ra;exports.CONTEXT_MENU_SELECTED_WITH_DOT_CLASS=V8;exports.Chart=XM;exports.ChartWidget=Gge;exports.ColorFormatType=m3;exports.CommonFiltersApplyMode=Nl;exports.ContextMenu=Bw;exports.DEFAULT_HYPERLINK_COLOR=Qm;exports.DEFAULT_PIVOT_TABLE_SIZE=LC;exports.DEFAULT_TABLE_ROWS_PER_PAGE=jM;exports.DEFAULT_WIDGET_HEADER_HEIGHT=NC;exports.DatePeriod=T2;exports.DoubleArrowIcon=Dp;exports.DrilldownBreadcrumbs=IS;exports.DynamicSizeContainer=md;exports.EMPTY_PIVOT_QUERY_RESULT_DATA=b3;exports.ElementStates=Xw;exports.ErrorBoundary=Sm;exports.ErrorBoundary$1=Iw;exports.ErrorBoundaryBox=_0;exports.ExclamationMarkIcon=Lw;exports.Fade=M0;exports.I18nProvider=Nw;exports.IconButton=uo;exports.JaqlDataType=g3;exports.LEGACY_DESIGN_TYPES=ls;exports.List=C0;exports.ListContext=$s;exports.LoadingDots=O0;exports.LoadingIndicator=td;exports.LoadingOverlay=gs;exports.Menu=Qc;exports.MenuIds=rl;exports.MenuItem=Jc;exports.MenuList=T0;exports.MenuProvider=Hw;exports.MenuSectionIds=co;exports.Modal=E0;exports.ModalProvider=Ww;exports.NoResultsOverlay=Q0;exports.PAGES_BATCH_SIZE=VM;exports.PanelType=f3;exports.Paper=Kc;exports.PluginsPanelFields=y3;exports.PluginsTypesFields=v3;exports.Popover=R0;exports.Popper=Pl;exports.PropTypes=_;exports.QueryClient=sve;exports.QueryClientProvider=pve;exports.RestApi=z0;exports.RestApiNotReadyError=AH;exports.SisenseContext=y0;exports.SortingDirection=p3;exports.Subscribable=Do;exports.TableComponent=GM;exports.ThemeContext=b0;exports.ThemeProvider=Zw;exports.ThreeDotsIcon=Uge;exports.Tooltip=bd;exports.Transition=tn;exports.Typography=Er;exports.UserType=m2;exports.WidgetContainer=TS;exports.WidgetSpaceAround=Ug;exports._extends=Ns;exports._typeof=Ju;exports.alpha=yt;exports.areFiltersEqual=tS;exports.asSisenseComponent=ml;exports.basePickBy=Ow;exports.baseUniq=J0;exports.boxWhiskerProcessResult=SX;exports.camelCase=vS;exports.capitalize=Ie;exports.classNames=Ys;exports.clearMembersFilter=Yd;exports.cloneFilterAndToggleDisabled=_me;exports.clsx=He;exports.composeClasses=St;exports.convertToThemeSettings=z2;exports.createCaseFirst=rS;exports.createChainedFunction=yp;exports.createFormatter=Lt;exports.createHeaderCellValueFormatter=vH;exports.createLevelAttribute=Ex;exports.createPanelColorFormat=m$;exports.createSimplePaletteValueFilter=pi;exports.createStyled=ow;exports.createSvgIcon=po;exports.createTheme=Yc;exports.createUnarySpacing=Bc;exports.createValueColorOptions=kw;exports.createValueToColorMap=Dw;exports.createValueToColorMultiColumnsMap=g$;exports.css=Uc;exports.darken=Dc;exports.dataLoadStateReducer=Em;exports.debounce=yme;exports.deepmerge=gr;exports.defaultDateConfig=sl;exports.duration=vw;exports.elementAcceptingRef=ta;exports.elementTypeAcceptingRef=c0;exports.exactProp=h0;exports.extendSxProp=J2;exports.formatDateValue=ll;exports.formatDatetimeString=F0;exports.generateUtilityClass=dt;exports.generateUtilityClasses=ht;exports.getBaseDateFnsLocale=al;exports.getChartDefaultSize=gd;exports.getDataPointMetadata=Ve;exports.getDefaultDateMask=B5;exports.getDefaultOptions=Jm;exports.getDefaultState=ZS;exports.getDefaultThemeSettings=Qu;exports.getDrilldownMenuItems=WS;exports.getHierarchyModels=bS;exports.getLegacyPalette=W2;exports.getListItemTextUtilityClass=k8;exports.getNonceFromMetaTag=Vw;exports.getNumberFormatConfig=Tx;exports.getPaletteName=B2;exports.getPivotDataOptionByJaqlIndex=Cx;exports.getPivotDataOptionIdByJaqlIndex=mH;exports.getReactElementRef=fo;exports.getSelectionTitleMenuItem=HS;exports.getTableAttributesAndMeasures=WM;exports.getThemeSettingsByOid=H2;exports.getTransitionProps=Fs;exports.getTranslatedDataOptions=UC;exports.getValue=ho;exports.getWidgetDefaultSize=IC;exports.handleBreakpoints=Cn;exports.isFiltersChanged=eS;exports.isPropValid=ew;exports.isRelationsChanged=Mme;exports.isSameAttribute=Yr;exports.isString=Y0;exports.isThemeOid=Iu;exports.lighten=Nc;exports.listItemTextClasses=Mp;exports.locale=Ef;exports.memoTheme=$t;exports.mergeBreakpointsInOrder=yL;exports.notifyManager=It;exports.ownerDocument=Or;exports.parseDataTableDateValue=h4;exports.parseMutationArgs=qge;exports.partition=Dl;exports.processDrilldownSelections=zS;exports.refType=ul;exports.resolveBreakpointValues=_L;exports.resolveProps=Ls;exports.rootShouldForwardProp=pl;exports.shallowEqualObjects=Ac;exports.shouldSkipSisenseContextWaiting=qM;exports.shouldThrowError=tE;exports.startOfPeriod=d4;exports.startOfUTCWeek=Sf;exports.styled=Gt;exports.styled$1=De;exports.toDate=Lr;exports.trackHook=fme;exports.translatePivotTableDataOptions=GU;exports.translateTableDataOptions=wC;exports.typographyClasses=E8;exports.updateDrilldownSelections=FS;exports.upperFirst=nS;exports.useCommonFilters=Gve;exports.useControlled=l0;exports.useDefaultProps=wt;exports.useDrilldownCore=$S;exports.useEnhancedEffect=fi;exports.useEventCallback=Bn;exports.useForkRef=vr;exports.useGetHierarchyModels=w0e;exports.useHasChanged=Hg;exports.useId=qc;exports.useMenu=MS;exports.useModalContext=ed;exports.usePrevious=od;exports.useQuery=Pve;exports.useQueryClient=eE;exports.useRestApi=Mx;exports.useSetError=tg;exports.useShouldLoad=KM;exports.useSisenseContext=Et;exports.useSlot=Xt;exports.useSyncExternalStore=KS;exports.useSyncedState=Vg;exports.useTheme=fl;exports.useTheme$1=rw;exports.useThemeContext=ot;exports.useTimeout=$i;exports.withErrorBoundary=$w;exports.withTracking=JM;exports.withTracking$1=qw;