streamlit-nightly 1.42.1.dev20250215__py2.py3-none-any.whl → 1.42.2.dev20250217__py2.py3-none-any.whl

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 (86) hide show
  1. streamlit/elements/bokeh_chart.py +2 -3
  2. streamlit/elements/graphviz_chart.py +2 -3
  3. streamlit/elements/lib/column_types.py +97 -44
  4. streamlit/elements/lib/subtitle_utils.py +2 -2
  5. streamlit/elements/lib/utils.py +1 -2
  6. streamlit/elements/vega_charts.py +2 -5
  7. streamlit/runtime/caching/cache_utils.py +2 -3
  8. streamlit/runtime/caching/hashing.py +1 -2
  9. streamlit/runtime/forward_msg_cache.py +1 -5
  10. streamlit/runtime/fragment.py +3 -5
  11. streamlit/runtime/memory_media_file_storage.py +1 -2
  12. streamlit/static/index.html +1 -1
  13. streamlit/static/static/js/{FileDownload.esm.K0RIIaSL.js → FileDownload.esm.NwWY1bYI.js} +1 -1
  14. streamlit/static/static/js/{FileDropzone.DRcTUuNN.js → FileDropzone.CZxPg3X2.js} +1 -1
  15. streamlit/static/static/js/{FormClearHelper.Dha_cfuU.js → FormClearHelper.Doa6Lh7Q.js} +1 -1
  16. streamlit/static/static/js/{Hooks.BrulV197.js → Hooks.CxtftrJy.js} +1 -1
  17. streamlit/static/static/js/{InputInstructions.C_m6JNSV.js → InputInstructions.CWLH2hJc.js} +1 -1
  18. streamlit/static/static/js/{ProgressBar.CXgDz0lS.js → ProgressBar.WE22u_Ob.js} +1 -1
  19. streamlit/static/static/js/{RenderInPortalIfExists.DbjYtj_E.js → RenderInPortalIfExists.BUcod3KW.js} +1 -1
  20. streamlit/static/static/js/{Toolbar.B5RomQbU.js → Toolbar.C714dqzb.js} +1 -1
  21. streamlit/static/static/js/{base-input.B_U9Mij-.js → base-input.C0t7SpL6.js} +1 -1
  22. streamlit/static/static/js/{createSuper.DiPn7x2M.js → createSuper.ViswZ8TH.js} +1 -1
  23. streamlit/static/static/js/{data-grid-overlay-editor.CxpMznuV.js → data-grid-overlay-editor.BhPr4kO6.js} +1 -1
  24. streamlit/static/static/js/{downloader.CMxfwi0g.js → downloader.91Q7jIso.js} +1 -1
  25. streamlit/static/static/js/{es6.CWDfc2yc.js → es6.DNX_sNKu.js} +2 -2
  26. streamlit/static/static/js/{iframeResizer.contentWindow.CyCMpBzy.js → iframeResizer.contentWindow.CDWUcDmU.js} +1 -1
  27. streamlit/static/static/js/{index.CTrIDSw5.js → index.-b7dNs6l.js} +1 -1
  28. streamlit/static/static/js/{index.eP8uJaty.js → index.0VYiXfju.js} +1 -1
  29. streamlit/static/static/js/{index.vyj1usur.js → index.B3HJ1joN.js} +28 -28
  30. streamlit/static/static/js/{index.B7-ka68B.js → index.BJ2gQSjT.js} +1 -1
  31. streamlit/static/static/js/{index.FVzOj77v.js → index.BLBTL57W.js} +1 -1
  32. streamlit/static/static/js/{index.OiKVkRzb.js → index.BNP-YHIi.js} +1 -1
  33. streamlit/static/static/js/{index.CLXysuIS.js → index.BOAkIKUg.js} +1 -1
  34. streamlit/static/static/js/{index.CxX3WJZV.js → index.BU0eO7qf.js} +1 -1
  35. streamlit/static/static/js/{index.11KmKkMp.js → index.BVHKdy_B.js} +1 -1
  36. streamlit/static/static/js/{index.YBzhCbWe.js → index.BY7jwxwh.js} +1 -1
  37. streamlit/static/static/js/{index.BoLiyuG0.js → index.BeOYoTtD.js} +1 -1
  38. streamlit/static/static/js/{index.CMM3vxd_.js → index.Byw8b24h.js} +1 -1
  39. streamlit/static/static/js/{index.DcCioSks.js → index.C2dTzC3_.js} +1 -1
  40. streamlit/static/static/js/{index.DaR46enR.js → index.CC8zeoS7.js} +1 -1
  41. streamlit/static/static/js/{index.BW9gD4O1.js → index.CCj1lvY2.js} +1 -1
  42. streamlit/static/static/js/{index.Ctuil2Zq.js → index.CPeAZG1R.js} +1 -1
  43. streamlit/static/static/js/{index.Djk5RccG.js → index.CX29idWq.js} +1 -1
  44. streamlit/static/static/js/{index.CxT-55oh.js → index.ChTsHUaC.js} +1 -1
  45. streamlit/static/static/js/{index.Di8ddb5O.js → index.CiWJLcV9.js} +1 -1
  46. streamlit/static/static/js/{index.B9xlEQvM.js → index.DAlDuq3e.js} +1 -1
  47. streamlit/static/static/js/{index.CnzapoES.js → index.DZlSz8lf.js} +1 -1
  48. streamlit/static/static/js/{index.DsPUu3xS.js → index.Df7Lr-8j.js} +1 -1
  49. streamlit/static/static/js/{index.CBswNuTs.js → index.DoLrZkRU.js} +1 -1
  50. streamlit/static/static/js/{index.CmyE8x29.js → index.DxXPukev.js} +1 -1
  51. streamlit/static/static/js/{index.FjL8doTL.js → index.Dz2gm3-U.js} +1 -1
  52. streamlit/static/static/js/{index.CZjrVNQ3.js → index.FawRMwD-.js} +1 -1
  53. streamlit/static/static/js/{index.CGHmjGTj.js → index.VDF9za4g.js} +1 -1
  54. streamlit/static/static/js/{index.D4y-ZpWF.js → index.Vo9Xk_-P.js} +1 -1
  55. streamlit/static/static/js/{index.CrDkQv4h.js → index.aoRAdNJI.js} +1 -1
  56. streamlit/static/static/js/{index.DeuQX1T6.js → index.bLZVjplR.js} +3 -3
  57. streamlit/static/static/js/{index.fz6QTJde.js → index.hEabuvQl.js} +1 -1
  58. streamlit/static/static/js/{index.DUqWz4q7.js → index.idE2oxkV.js} +1 -1
  59. streamlit/static/static/js/{index.Bb_vborY.js → index.jaOfuXT_.js} +1 -1
  60. streamlit/static/static/js/{index.XB-MiuZp.js → index.mQsqDFei.js} +1 -1
  61. streamlit/static/static/js/{index.B5QCo4O8.js → index.rqm-tyVr.js} +1 -1
  62. streamlit/static/static/js/{index.68LnD3a5.js → index.wclN5y6j.js} +1 -1
  63. streamlit/static/static/js/{index.ZlPieA63.js → index.xj8ZjDtP.js} +1 -1
  64. streamlit/static/static/js/{input.D-b9-dhW.js → input.CeAboTLQ.js} +1 -1
  65. streamlit/static/static/js/{memory.C27_0JRm.js → memory.BilaH12K.js} +1 -1
  66. streamlit/static/static/js/{mergeWith.D8F46YVj.js → mergeWith.B34IaY8d.js} +1 -1
  67. streamlit/static/static/js/{number-overlay-editor.CaHpEyvW.js → number-overlay-editor.BCo5wJKi.js} +1 -1
  68. streamlit/static/static/js/{possibleConstructorReturn.CnSJ4CFa.js → possibleConstructorReturn.CRrAWWQi.js} +1 -1
  69. streamlit/static/static/js/{sandbox.Cx5mAMmC.js → sandbox.ZIG5vd5E.js} +1 -1
  70. streamlit/static/static/js/{textarea.YeGMY3Ts.js → textarea.B7ggnxCh.js} +1 -1
  71. streamlit/static/static/js/{timepicker.BSApuR_7.js → timepicker.D1BZ0rZq.js} +1 -1
  72. streamlit/static/static/js/{toConsumableArray.DFJurSxu.js → toConsumableArray.bbNBXf55.js} +1 -1
  73. streamlit/static/static/js/{uniqueId.B4ugkryR.js → uniqueId.BRO0jXkb.js} +1 -1
  74. streamlit/static/static/js/{useBasicWidgetState.e9cw5rKa.js → useBasicWidgetState.DNqxSbNL.js} +1 -1
  75. streamlit/static/static/js/{useOnInputChange.CHDPgswc.js → useOnInputChange.LSJywRT_.js} +1 -1
  76. streamlit/static/static/js/{withFullScreenWrapper.BKBYrOn-.js → withFullScreenWrapper.wyYj-oat.js} +1 -1
  77. streamlit/testing/v1/app_test.py +2 -4
  78. streamlit/util.py +6 -9
  79. streamlit/watcher/util.py +2 -7
  80. streamlit/web/server/app_static_file_handler.py +16 -1
  81. {streamlit_nightly-1.42.1.dev20250215.dist-info → streamlit_nightly-1.42.2.dev20250217.dist-info}/METADATA +1 -1
  82. {streamlit_nightly-1.42.1.dev20250215.dist-info → streamlit_nightly-1.42.2.dev20250217.dist-info}/RECORD +86 -86
  83. {streamlit_nightly-1.42.1.dev20250215.data → streamlit_nightly-1.42.2.dev20250217.data}/scripts/streamlit.cmd +0 -0
  84. {streamlit_nightly-1.42.1.dev20250215.dist-info → streamlit_nightly-1.42.2.dev20250217.dist-info}/WHEEL +0 -0
  85. {streamlit_nightly-1.42.1.dev20250215.dist-info → streamlit_nightly-1.42.2.dev20250217.dist-info}/entry_points.txt +0 -0
  86. {streamlit_nightly-1.42.1.dev20250215.dist-info → streamlit_nightly-1.42.2.dev20250217.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- import{r as g,bK as Er,bL as Rr,bM as Tr,bN as Lr,d as Jr,bO as en,g as tn,bq as X,bE as Ae,bF as Ee,bP as rn,bD as xr,br as W,H as jr,bQ as nn,bR as Br,bS as sr,bT as an,bs as Be,bU as on,bV as sn,bW as ln,B as Fr,A as un,y as lr,az as cn,O as Tt,K as pn,C as dn,j as We,bm as fn,bz as hn,bn as yn,b6 as vn,bo as gn}from"./index.DeuQX1T6.js";import{a as mn}from"./useBasicWidgetState.e9cw5rKa.js";import{D as Pe,a as Ie,T as bn,l as rt}from"./timepicker.BSApuR_7.js";import{I as On}from"./input.D-b9-dhW.js";import{I as Dn}from"./base-input.B_U9Mij-.js";import"./FormClearHelper.Dha_cfuU.js";import"./possibleConstructorReturn.CnSJ4CFa.js";import"./createSuper.DiPn7x2M.js";var Sn=["title","size","color","overrides"];function ft(){return ft=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ft.apply(this,arguments)}function $n(t,r){if(t==null)return{};var n=_n(t,r),a,e;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e<o.length;e++)a=o[e],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function _n(t,r){if(t==null)return{};var n={},a=Object.keys(t),e,o;for(o=0;o<a.length;o++)e=a[o],!(r.indexOf(e)>=0)&&(n[e]=t[e]);return n}function wn(t,r){return Pn(t)||Mn(t,r)||Cn(t,r)||kn()}function kn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as g,bK as Er,bL as Rr,bM as Tr,bN as Lr,d as Jr,bO as en,g as tn,bq as X,bE as Ae,bF as Ee,bP as rn,bD as xr,br as W,H as jr,bQ as nn,bR as Br,bS as sr,bT as an,bs as Be,bU as on,bV as sn,bW as ln,B as Fr,A as un,y as lr,az as cn,O as Tt,K as pn,C as dn,j as We,bm as fn,bz as hn,bn as yn,b6 as vn,bo as gn}from"./index.bLZVjplR.js";import{a as mn}from"./useBasicWidgetState.DNqxSbNL.js";import{D as Pe,a as Ie,T as bn,l as rt}from"./timepicker.D1BZ0rZq.js";import{I as On}from"./input.CeAboTLQ.js";import{I as Dn}from"./base-input.C0t7SpL6.js";import"./FormClearHelper.Doa6Lh7Q.js";import"./possibleConstructorReturn.CRrAWWQi.js";import"./createSuper.ViswZ8TH.js";var Sn=["title","size","color","overrides"];function ft(){return ft=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ft.apply(this,arguments)}function $n(t,r){if(t==null)return{};var n=_n(t,r),a,e;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e<o.length;e++)a=o[e],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function _n(t,r){if(t==null)return{};var n={},a=Object.keys(t),e,o;for(o=0;o<a.length;o++)e=a[o],!(r.indexOf(e)>=0)&&(n[e]=t[e]);return n}function wn(t,r){return Pn(t)||Mn(t,r)||Cn(t,r)||kn()}function kn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cn(t,r){if(t){if(typeof t=="string")return ur(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ur(t,r)}}function ur(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=t[n];return a}function Mn(t,r){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],e=!0,o=!1,i,l;try{for(n=n.call(t);!(e=(i=n.next()).done)&&(a.push(i.value),!(r&&a.length===r));e=!0);}catch(u){o=!0,l=u}finally{try{!e&&n.return!=null&&n.return()}finally{if(o)throw l}}return a}}function Pn(t){if(Array.isArray(t))return t}function In(t,r){var n=Er(),a=wn(n,2),e=a[1],o=t.title,i=o===void 0?"Left":o,l=t.size,u=t.color,d=t.overrides,f=d===void 0?{}:d,c=$n(t,Sn),m=Rr({component:e.icons&&e.icons.ChevronLeft?e.icons.ChevronLeft:null},f&&f.Svg?Tr(f.Svg):{});return g.createElement(Lr,ft({viewBox:"0 0 24 24",ref:r,title:i,size:l,color:u,overrides:{Svg:m}},c),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 12C9 12.2652 9.10536 12.5196 9.29289 12.7071L13.2929 16.7071C13.6834 17.0976 14.3166 17.0976 14.7071 16.7071C15.0976 16.3166 15.0976 15.6834 14.7071 15.2929L11.4142 12L14.7071 8.70711C15.0976 8.31658 15.0976 7.68342 14.7071 7.29289C14.3166 6.90237 13.6834 6.90237 13.2929 7.29289L9.29289 11.2929C9.10536 11.4804 9 11.7348 9 12Z"}))}const cr=g.forwardRef(In);var Hn=["title","size","color","overrides"];function ht(){return ht=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ht.apply(this,arguments)}function An(t,r){if(t==null)return{};var n=En(t,r),a,e;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e<o.length;e++)a=o[e],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function En(t,r){if(t==null)return{};var n={},a=Object.keys(t),e,o;for(o=0;o<a.length;o++)e=a[o],!(r.indexOf(e)>=0)&&(n[e]=t[e]);return n}function Rn(t,r){return jn(t)||xn(t,r)||Ln(t,r)||Tn()}function Tn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ln(t,r){if(t){if(typeof t=="string")return pr(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pr(t,r)}}function pr(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=t[n];return a}function xn(t,r){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],e=!0,o=!1,i,l;try{for(n=n.call(t);!(e=(i=n.next()).done)&&(a.push(i.value),!(r&&a.length===r));e=!0);}catch(u){o=!0,l=u}finally{try{!e&&n.return!=null&&n.return()}finally{if(o)throw l}}return a}}function jn(t){if(Array.isArray(t))return t}function Bn(t,r){var n=Er(),a=Rn(n,2),e=a[1],o=t.title,i=o===void 0?"Right":o,l=t.size,u=t.color,d=t.overrides,f=d===void 0?{}:d,c=An(t,Hn),m=Rr({component:e.icons&&e.icons.ChevronRight?e.icons.ChevronRight:null},f&&f.Svg?Tr(f.Svg):{});return g.createElement(Lr,ht({viewBox:"0 0 24 24",ref:r,title:i,size:l,color:u,overrides:{Svg:m}},c),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29289 7.29289C8.90237 7.68342 8.90237 8.31658 9.29289 8.70711L12.5858 12L9.29289 15.2929C8.90237 15.6834 8.90237 16.3166 9.29289 16.7071C9.68342 17.0976 10.3166 17.0976 10.7071 16.7071L14.7071 12.7071C14.8946 12.5196 15 12.2652 15 12C15 11.7348 14.8946 11.4804 14.7071 11.2929L10.7071 7.29289C10.3166 6.90237 9.68342 6.90237 9.29289 7.29289Z"}))}const dr=g.forwardRef(Bn);var nt={exports:{}},at,fr;function Fn(){if(fr)return at;fr=1;function t(p){return p&&typeof p=="object"&&"default"in p?p.default:p}var r=t(Jr()),n=en();function a(p,b){for(var S=Object.getOwnPropertyNames(b),y=0;y<S.length;y++){var s=S[y],M=Object.getOwnPropertyDescriptor(b,s);M&&M.configurable&&p[s]===void 0&&Object.defineProperty(p,s,M)}return p}function e(){return(e=Object.assign||function(p){for(var b=1;b<arguments.length;b++){var S=arguments[b];for(var y in S)Object.prototype.hasOwnProperty.call(S,y)&&(p[y]=S[y])}return p}).apply(this,arguments)}function o(p,b){p.prototype=Object.create(b.prototype),a(p.prototype.constructor=p,b)}function i(p,b){if(p==null)return{};var S,y,s={},M=Object.keys(p);for(y=0;y<M.length;y++)S=M[y],0<=b.indexOf(S)||(s[S]=p[S]);return s}function l(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}var u=function(p,b,S,y,s,M,Y,te){if(!p){var R;if(b===void 0)R=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var j=[S,y,s,M,Y,te],N=0;(R=new Error(b.replace(/%s/g,function(){return j[N++]}))).name="Invariant Violation"}throw R.framesToPop=1,R}},d=u;function f(p,b,S){if("selectionStart"in p&&"selectionEnd"in p)p.selectionStart=b,p.selectionEnd=S;else{var y=p.createTextRange();y.collapse(!0),y.moveStart("character",b),y.moveEnd("character",S-b),y.select()}}function c(p){var b=0,S=0;if("selectionStart"in p&&"selectionEnd"in p)b=p.selectionStart,S=p.selectionEnd;else{var y=document.selection.createRange();y.parentElement()===p&&(b=-y.moveStart("character",-p.value.length),S=-y.moveEnd("character",-p.value.length))}return{start:b,end:S,length:S-b}}var m={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},h="_";function v(p,b,S){var y="",s="",M=null,Y=[];if(b===void 0&&(b=h),S==null&&(S=m),!p||typeof p!="string")return{maskChar:b,formatChars:S,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var te=!1;return p.split("").forEach(function(R){te=!te&&R==="\\"||(te||!S[R]?(Y.push(y.length),y.length===Y.length-1&&(s+=R)):M=y.length+1,y+=R,!1)}),{maskChar:b,formatChars:S,prefix:s,mask:y,lastEditablePosition:M,permanents:Y}}function O(p,b){return p.permanents.indexOf(b)!==-1}function D(p,b,S){var y=p.mask,s=p.formatChars;if(!S)return!1;if(O(p,b))return y[b]===S;var M=s[y[b]];return new RegExp(M).test(S)}function _(p,b){return b.split("").every(function(S,y){return O(p,y)||!D(p,y,S)})}function $(p,b){var S=p.maskChar,y=p.prefix;if(!S){for(;b.length>y.length&&O(p,b.length-1);)b=b.slice(0,b.length-1);return b.length}for(var s=y.length,M=b.length;M>=y.length;M--){var Y=b[M];if(!O(p,M)&&D(p,M,Y)){s=M+1;break}}return s}function k(p,b){return $(p,b)===p.mask.length}function w(p,b){var S=p.maskChar,y=p.mask,s=p.prefix;if(!S){for((b=A(p,"",b,0)).length<s.length&&(b=s);b.length<y.length&&O(p,b.length);)b+=y[b.length];return b}if(b)return A(p,w(p,""),b,0);for(var M=0;M<y.length;M++)O(p,M)?b+=y[M]:b+=S;return b}function L(p,b,S,y){var s=S+y,M=p.maskChar,Y=p.mask,te=p.prefix,R=b.split("");if(M)return R.map(function(N,re){return re<S||s<=re?N:O(p,re)?Y[re]:M}).join("");for(var j=s;j<R.length;j++)O(p,j)&&(R[j]="");return S=Math.max(te.length,S),R.splice(S,s-S),b=R.join(""),w(p,b)}function A(p,b,S,y){var s=p.mask,M=p.maskChar,Y=p.prefix,te=S.split(""),R=k(p,b);return!M&&y>b.length&&(b+=s.slice(b.length,y)),te.every(function(j){for(;se=j,O(p,z=y)&&se!==s[z];){if(y>=b.length&&(b+=s[y]),N=j,re=y,M&&O(p,re)&&N===M)return!0;if(++y>=s.length)return!1}var N,re,z,se;return!D(p,y,j)&&j!==M||(y<b.length?b=M||R||y<Y.length?b.slice(0,y)+j+b.slice(y+1):(b=b.slice(0,y)+j+b.slice(y),w(p,b)):M||(b+=j),++y<s.length)}),b}function x(p,b,S,y){var s=p.mask,M=p.maskChar,Y=S.split(""),te=y;return Y.every(function(R){for(;N=R,O(p,j=y)&&N!==s[j];)if(++y>=s.length)return!1;var j,N;return(D(p,y,R)||R===M)&&y++,y<s.length}),y-te}function B(p,b){for(var S=b;0<=S;--S)if(!O(p,S))return S;return null}function H(p,b){for(var S=p.mask,y=b;y<S.length;++y)if(!O(p,y))return y;return null}function E(p){return p||p===0?p+"":""}function P(p,b,S,y,s){var M=p.mask,Y=p.prefix,te=p.lastEditablePosition,R=b,j="",N=0,re=0,z=Math.min(s.start,S.start);return S.end>s.start?re=(N=x(p,y,j=R.slice(s.start,S.end),z))?s.length:0:R.length<y.length&&(re=y.length-R.length),R=y,re&&(re===1&&!s.length&&(z=s.start===S.start?H(p,S.start):B(p,S.start)),R=L(p,R,z,re)),R=A(p,R,j,z),(z+=N)>=M.length?z=M.length:z<Y.length&&!N?z=Y.length:z>=Y.length&&z<te&&N&&(z=H(p,z)),j||(j=null),{value:R=w(p,R),enteredString:j,selection:{start:z,end:z}}}function I(){var p=new RegExp("windows","i"),b=new RegExp("phone","i"),S=navigator.userAgent;return p.test(S)&&b.test(S)}function T(p){return typeof p=="function"}function q(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function ve(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function ie(p){return(ve()?q():function(){return setTimeout(p,1e3/60)})(p)}function J(p){(ve()||clearTimeout)(p)}var ee=function(p){function b(y){var s=p.call(this,y)||this;s.focused=!1,s.mounted=!1,s.previousSelection=null,s.selectionDeferId=null,s.saveSelectionLoopDeferId=null,s.saveSelectionLoop=function(){s.previousSelection=s.getSelection(),s.saveSelectionLoopDeferId=ie(s.saveSelectionLoop)},s.runSaveSelectionLoop=function(){s.saveSelectionLoopDeferId===null&&s.saveSelectionLoop()},s.stopSaveSelectionLoop=function(){s.saveSelectionLoopDeferId!==null&&(J(s.saveSelectionLoopDeferId),s.saveSelectionLoopDeferId=null,s.previousSelection=null)},s.getInputDOMNode=function(){if(!s.mounted)return null;var C=n.findDOMNode(l(l(s))),F=typeof window<"u"&&C instanceof window.Element;if(C&&!F)return null;if(C.nodeName!=="INPUT"&&(C=C.querySelector("input")),!C)throw new Error("react-input-mask: inputComponent doesn't contain input node");return C},s.getInputValue=function(){var C=s.getInputDOMNode();return C?C.value:null},s.setInputValue=function(C){var F=s.getInputDOMNode();F&&(s.value=C,F.value=C)},s.setCursorToEnd=function(){var C=$(s.maskOptions,s.value),F=H(s.maskOptions,C);F!==null&&s.setCursorPosition(F)},s.setSelection=function(C,F,U){U===void 0&&(U={});var V=s.getInputDOMNode(),Q=s.isFocused();V&&Q&&(U.deferred||f(V,C,F),s.selectionDeferId!==null&&J(s.selectionDeferId),s.selectionDeferId=ie(function(){s.selectionDeferId=null,f(V,C,F)}),s.previousSelection={start:C,end:F,length:Math.abs(F-C)})},s.getSelection=function(){return c(s.getInputDOMNode())},s.getCursorPosition=function(){return s.getSelection().start},s.setCursorPosition=function(C){s.setSelection(C,C)},s.isFocused=function(){return s.focused},s.getBeforeMaskedValueChangeConfig=function(){var C=s.maskOptions,F=C.mask,U=C.maskChar,V=C.permanents,Q=C.formatChars;return{mask:F,maskChar:U,permanents:V,alwaysShowMask:!!s.props.alwaysShowMask,formatChars:Q}},s.isInputAutofilled=function(C,F,U,V){var Q=s.getInputDOMNode();try{if(Q.matches(":-webkit-autofill"))return!0}catch{}return!s.focused||V.end<U.length&&F.end===C.length},s.onChange=function(C){var F=l(l(s)).beforePasteState,U=l(l(s)).previousSelection,V=s.props.beforeMaskedValueChange,Q=s.getInputValue(),fe=s.value,he=s.getSelection();s.isInputAutofilled(Q,he,fe,U)&&(fe=w(s.maskOptions,""),U={start:0,end:0,length:0}),F&&(U=F.selection,fe=F.value,he={start:U.start+Q.length,end:U.start+Q.length,length:0},Q=fe.slice(0,U.start)+Q+fe.slice(U.end),s.beforePasteState=null);var _e=P(s.maskOptions,Q,he,fe,U),Ne=_e.enteredString,me=_e.selection,ke=_e.value;if(T(V)){var He=V({value:ke,selection:me},{value:fe,selection:U},Ne,s.getBeforeMaskedValueChangeConfig());ke=He.value,me=He.selection}s.setInputValue(ke),T(s.props.onChange)&&s.props.onChange(C),s.isWindowsPhoneBrowser?s.setSelection(me.start,me.end,{deferred:!0}):s.setSelection(me.start,me.end)},s.onFocus=function(C){var F=s.props.beforeMaskedValueChange,U=s.maskOptions,V=U.mask,Q=U.prefix;if(s.focused=!0,s.mounted=!0,V){if(s.value)$(s.maskOptions,s.value)<s.maskOptions.mask.length&&s.setCursorToEnd();else{var fe=w(s.maskOptions,Q),he=w(s.maskOptions,fe),_e=$(s.maskOptions,he),Ne=H(s.maskOptions,_e),me={start:Ne,end:Ne};if(T(F)){var ke=F({value:he,selection:me},{value:s.value,selection:null},null,s.getBeforeMaskedValueChangeConfig());he=ke.value,me=ke.selection}var He=he!==s.getInputValue();He&&s.setInputValue(he),He&&T(s.props.onChange)&&s.props.onChange(C),s.setSelection(me.start,me.end)}s.runSaveSelectionLoop()}T(s.props.onFocus)&&s.props.onFocus(C)},s.onBlur=function(C){var F=s.props.beforeMaskedValueChange,U=s.maskOptions.mask;if(s.stopSaveSelectionLoop(),s.focused=!1,U&&!s.props.alwaysShowMask&&_(s.maskOptions,s.value)){var V="";T(F)&&(V=F({value:V,selection:null},{value:s.value,selection:s.previousSelection},null,s.getBeforeMaskedValueChangeConfig()).value);var Q=V!==s.getInputValue();Q&&s.setInputValue(V),Q&&T(s.props.onChange)&&s.props.onChange(C)}T(s.props.onBlur)&&s.props.onBlur(C)},s.onMouseDown=function(C){if(!s.focused&&document.addEventListener){s.mouseDownX=C.clientX,s.mouseDownY=C.clientY,s.mouseDownTime=new Date().getTime();var F=function U(V){if(document.removeEventListener("mouseup",U),s.focused){var Q=Math.abs(V.clientX-s.mouseDownX),fe=Math.abs(V.clientY-s.mouseDownY),he=Math.max(Q,fe),_e=new Date().getTime()-s.mouseDownTime;(he<=10&&_e<=200||he<=5&&_e<=300)&&s.setCursorToEnd()}};document.addEventListener("mouseup",F)}T(s.props.onMouseDown)&&s.props.onMouseDown(C)},s.onPaste=function(C){T(s.props.onPaste)&&s.props.onPaste(C),C.defaultPrevented||(s.beforePasteState={value:s.getInputValue(),selection:s.getSelection()},s.setInputValue(""))},s.handleRef=function(C){s.props.children==null&&T(s.props.inputRef)&&s.props.inputRef(C)};var M=y.mask,Y=y.maskChar,te=y.formatChars,R=y.alwaysShowMask,j=y.beforeMaskedValueChange,N=y.defaultValue,re=y.value;s.maskOptions=v(M,Y,te),N==null&&(N=""),re==null&&(re=N);var z=E(re);if(s.maskOptions.mask&&(R||z)&&(z=w(s.maskOptions,z),T(j))){var se=y.value;y.value==null&&(se=N),z=j({value:z,selection:null},{value:se=E(se),selection:null},null,s.getBeforeMaskedValueChangeConfig()).value}return s.value=z,s}o(b,p);var S=b.prototype;return S.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=I(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},S.componentDidUpdate=function(){var y=this.previousSelection,s=this.props,M=s.beforeMaskedValueChange,Y=s.alwaysShowMask,te=s.mask,R=s.maskChar,j=s.formatChars,N=this.maskOptions,re=Y||this.isFocused(),z=this.props.value!=null,se=z?E(this.props.value):this.value,C=y?y.start:null;if(this.maskOptions=v(te,R,j),this.maskOptions.mask){!N.mask&&this.isFocused()&&this.runSaveSelectionLoop();var F=this.maskOptions.mask&&this.maskOptions.mask!==N.mask;if(N.mask||z||(se=this.getInputValue()),(F||this.maskOptions.mask&&(se||re))&&(se=w(this.maskOptions,se)),F){var U=$(this.maskOptions,se);(C===null||U<C)&&(C=k(this.maskOptions,se)?U:H(this.maskOptions,U))}!this.maskOptions.mask||!_(this.maskOptions,se)||re||z&&this.props.value||(se="");var V={start:C,end:C};if(T(M)){var Q=M({value:se,selection:V},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());se=Q.value,V=Q.selection}this.value=se;var fe=this.getInputValue()!==this.value;fe?(this.setInputValue(this.value),this.forceUpdate()):F&&this.forceUpdate();var he=!1;V.start!=null&&V.end!=null&&(he=!y||y.start!==V.start||y.end!==V.end),(he||fe)&&this.setSelection(V.start,V.end)}else N.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},S.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&J(this.selectionDeferId),this.stopSaveSelectionLoop()},S.render=function(){var y,s=this.props,M=(s.mask,s.alwaysShowMask,s.maskChar,s.formatChars,s.inputRef,s.beforeMaskedValueChange,s.children),Y=i(s,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(M){T(M)||d(!1);var te=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],R=e({},Y);te.forEach(function(N){return delete R[N]}),y=M(R),te.filter(function(N){return y.props[N]!=null&&y.props[N]!==Y[N]}).length&&d(!1)}else y=r.createElement("input",e({ref:this.handleRef},Y));var j={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(Y.disabled||Y.readOnly||(j.onChange=this.onChange,j.onPaste=this.onPaste,j.onMouseDown=this.onMouseDown),Y.value!=null&&(j.value=this.value)),y=r.cloneElement(y,j)},b}(r.Component);return at=ee,at}var hr;function Nn(){return hr||(hr=1,nt.exports=Fn()),nt.exports}var Wn=Nn();const Vn=tn(Wn);var Yn=["startEnhancer","endEnhancer","error","positive","onChange","onFocus","onBlur","value","disabled","readOnly"],zn=["Input"],Un=["mask","maskChar","overrides"];function yr(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function ot(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?yr(Object(n),!0).forEach(function(a){qn(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function qn(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function ze(t){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ze(t)}function Fe(){return Fe=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Fe.apply(this,arguments)}function yt(t,r){if(t==null)return{};var n=Kn(t,r),a,e;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e<o.length;e++)a=o[e],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function Kn(t,r){if(t==null)return{};var n={},a=Object.keys(t),e,o;for(o=0;o<a.length;o++)e=a[o],!(r.indexOf(e)>=0)&&(n[e]=t[e]);return n}var Nr=g.forwardRef(function(t,r){t.startEnhancer,t.endEnhancer,t.error,t.positive;var n=t.onChange,a=t.onFocus,e=t.onBlur,o=t.value,i=t.disabled,l=t.readOnly,u=yt(t,Yn);return g.createElement(Vn,Fe({onChange:n,onFocus:a,onBlur:e,value:o,disabled:i,readOnly:l},u),function(d){return g.createElement(Dn,Fe({ref:r,onChange:n,onFocus:a,onBlur:e,value:o,disabled:i,readOnly:l},d))})});Nr.displayName="MaskOverride";function Wr(t){var r=t.mask,n=t.maskChar,a=t.overrides;a=a===void 0?{}:a;var e=a.Input,o=e===void 0?{}:e,i=yt(a,zn),l=yt(t,Un),u=Nr,d={},f={};typeof o=="function"?u=o:ze(o)==="object"&&(u=o.component||u,d=o.props||{},f=o.style||{}),ze(d)==="object"&&(d=ot(ot({},d),{},{mask:d.mask||r,maskChar:d.maskChar||n}));var c=ot({Input:{component:u,props:d,style:f}},i);return g.createElement(On,Fe({},l,{overrides:c}))}Wr.defaultProps={maskChar:" "};var Lt=Object.freeze({horizontal:"horizontal",vertical:"vertical"}),Vr=[0,1,2,3,4,5,6],Xn=[0,1,2,3,4,5,6,7,8,9,10,11],oe={high:"high",default:"default"},$e={startDate:"startDate",endDate:"endDate"},Qn={locked:"locked"};function vr(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function Me(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?vr(Object(n),!0).forEach(function(a){Zn(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function Zn(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var xt=X("label",function(t){var r=t.$disabled,n=t.$theme,a=n.colors,e=n.typography;return Me(Me({},e.font250),{},{width:"100%",color:r?a.contentSecondary:a.contentPrimary,display:"block",paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0})});xt.displayName="Label";xt.displayName="Label";var jt=X("span",function(t){var r=t.$theme.sizing;return{display:"flex",width:"100%",marginTop:r.scale300,marginRight:0,marginBottom:r.scale300,marginLeft:0}});jt.displayName="LabelContainer";jt.displayName="LabelContainer";var Bt=X("span",function(t){var r=t.$disabled,n=t.$counterError,a=t.$theme,e=a.colors,o=a.typography;return Me(Me({},o.font100),{},{flex:0,width:"100%",color:n?e.negative400:r?e.contentSecondary:e.contentPrimary})});Bt.displayName="LabelEndEnhancer";Bt.displayName="LabelEndEnhancer";var Ft=X("div",function(t){var r=t.$error,n=t.$positive,a=t.$theme,e=a.colors,o=a.sizing,i=a.typography,l=e.contentSecondary;return r?l=e.negative400:n&&(l=e.positive400),Me(Me({},i.font100),{},{color:l,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,marginTop:o.scale300,marginRight:0,marginBottom:o.scale300,marginLeft:0})});Ft.displayName="Caption";Ft.displayName="Caption";var Nt=X("div",function(t){var r=t.$theme.sizing;return{width:"100%",marginBottom:r.scale600}});Nt.displayName="ControlContainer";Nt.displayName="ControlContainer";function we(){return we=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},we.apply(this,arguments)}function Ue(t){"@babel/helpers - typeof";return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ue(t)}function Gn(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Jn(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function ea(t,r,n){return r&&Jn(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ta(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&vt(t,r)}function vt(t,r){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,e){return a.__proto__=e,a},vt(t,r)}function ra(t){var r=oa();return function(){var a=qe(t),e;if(r){var o=qe(this).constructor;e=Reflect.construct(a,arguments,o)}else e=a.apply(this,arguments);return na(this,e)}}function na(t,r){if(r&&(Ue(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aa(t)}function aa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oa(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qe(t){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qe(t)}function ia(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function sa(t,r,n,a){return r&&typeof r!="boolean"?typeof r=="function"?r(a):r:n&&typeof n!="boolean"?typeof n=="function"?n(a):n:t?typeof t=="function"?t(a):t:null}var gt=function(t){ta(n,t);var r=ra(n);function n(){return Gn(this,n),r.apply(this,arguments)}return ea(n,[{key:"render",value:function(){var e=this.props,o=e.overrides,i=o.Label,l=o.LabelEndEnhancer,u=o.LabelContainer,d=o.Caption,f=o.ControlContainer,c=e.label,m=e.caption,h=e.disabled,v=e.error,O=e.positive,D=e.htmlFor,_=e.children,$=e.counter,k=g.Children.only(_).props,w={$disabled:!!h,$error:!!v,$positive:!!O},L=Ae(i)||xt,A=Ae(l)||Bt,x=Ae(u)||jt,B=Ae(d)||Ft,H=Ae(f)||Nt,E=sa(m,v,O,w),P=this.props.labelEndEnhancer;if($){var I=null,T=null,q=null;Ue($)==="object"&&(T=$.length,I=$.maxLength,q=$.error),I=I||k.maxLength,T==null&&typeof k.value=="string"&&(T=k.value.length),T==null&&(T=0),w.$length=T,I==null?P||(P="".concat(T)):(w.$maxLength=T,P||(P="".concat(T,"/").concat(I)),T>I&&q==null&&(q=!0)),q&&(w.$error=!0,w.$counterError=!0)}return g.createElement(g.Fragment,null,c&&g.createElement(x,we({},w,Ee(u)),g.createElement(L,we({"data-baseweb":"form-control-label",htmlFor:D||k.id},w,Ee(i)),typeof c=="function"?c(w):c),!!P&&g.createElement(A,we({},w,Ee(l)),typeof P=="function"?P(w):P)),g.createElement(rn,null,function(ve){return g.createElement(H,we({"data-baseweb":"form-control-container"},w,Ee(f)),g.Children.map(_,function(ie,J){if(ie){var ee=ie.key||String(J);return g.cloneElement(ie,{key:ee,"aria-errormessage":v?ve:null,"aria-describedby":m||O?ve:null,disabled:k.disabled||h,error:typeof k.error<"u"?k.error:w.$error,positive:typeof k.positive<"u"?k.positive:w.$positive})}}),(!!m||!!v||O)&&g.createElement(B,we({"data-baseweb":"form-control-caption",id:ve},w,Ee(d)),E))}))}}]),n}(g.Component);ia(gt,"defaultProps",{overrides:{},label:null,caption:null,disabled:!1,counter:!1});function gr(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function mr(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?gr(Object(n),!0).forEach(function(a){la(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function la(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var ua=function(r){return Xn.map(function(n){return{id:n.toString(),label:r(n)}})},ca=function(r,n){return r.map(function(a){return n.includes(Number(a.id))?a:mr(mr({},a),{},{disabled:!0})})},pa=function(r){var n=r.filterMonthsList,a=r.formatMonthLabel,e=ua(a);return n&&(e=ca(e,n)),e};function da(t){var r=t.$range,n=r===void 0?!1:r,a=t.$disabled,e=a===void 0?!1:a,o=t.$isHighlighted,i=o===void 0?!1:o,l=t.$isHovered,u=l===void 0?!1:l,d=t.$selected,f=d===void 0?!1:d,c=t.$hasRangeSelected,m=c===void 0?!1:c,h=t.$startDate,v=h===void 0?!1:h,O=t.$endDate,D=O===void 0?!1:O,_=t.$pseudoSelected,$=_===void 0?!1:_,k=t.$hasRangeHighlighted,w=k===void 0?!1:k,L=t.$pseudoHighlighted,A=L===void 0?!1:L,x=t.$hasRangeOnRight,B=x===void 0?!1:x,H=t.$startOfMonth,E=H===void 0?!1:H,P=t.$endOfMonth,I=P===void 0?!1:P,T=t.$outsideMonth,q=T===void 0?!1:T;return"".concat(+n).concat(+e).concat(+(i||u)).concat(+f).concat(+m).concat(+v).concat(+D).concat(+$).concat(+w).concat(+A).concat(+(w&&!A&&B)).concat(+(w&&!A&&!B)).concat(+E).concat(+I).concat(+q)}function fa(t,r){return ga(t)||va(t,r)||ya(t,r)||ha()}function ha(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ya(t,r){if(t){if(typeof t=="string")return br(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return br(t,r)}}function br(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=t[n];return a}function va(t,r){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],e=!0,o=!1,i,l;try{for(n=n.call(t);!(e=(i=n.next()).done)&&(a.push(i.value),!(r&&a.length===r));e=!0);}catch(u){o=!0,l=u}finally{try{!e&&n.return!=null&&n.return()}finally{if(o)throw l}}return a}}function ga(t){if(Array.isArray(t))return t}function Or(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function ne(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Or(Object(n),!0).forEach(function(a){xe(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function xe(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var Wt=X("div",function(t){var r=t.$separateRangeInputs;return ne({width:"100%"},r?{display:"flex",justifyContent:"center"}:{})});Wt.displayName="StyledInputWrapper";Wt.displayName="StyledInputWrapper";var Vt=X("div",function(t){var r=t.$theme;return ne(ne({},r.typography.LabelMedium),{},{marginBottom:r.sizing.scale300})});Vt.displayName="StyledInputLabel";Vt.displayName="StyledInputLabel";var Yt=X("div",function(t){var r=t.$theme;return{width:"100%",marginRight:r.sizing.scale300}});Yt.displayName="StyledStartDate";Yt.displayName="StyledStartDate";var zt=X("div",function(t){return t.$theme,{width:"100%"}});zt.displayName="StyledEndDate";zt.displayName="StyledEndDate";var Ut=X("div",function(t){var r=t.$theme,n=r.typography,a=r.colors,e=r.borders;return ne(ne({},n.font200),{},{color:a.calendarForeground,backgroundColor:a.calendarBackground,textAlign:"center",borderTopLeftRadius:e.surfaceBorderRadius,borderTopRightRadius:e.surfaceBorderRadius,borderBottomRightRadius:e.surfaceBorderRadius,borderBottomLeftRadius:e.surfaceBorderRadius,display:"inline-block"})});Ut.displayName="StyledRoot";Ut.displayName="StyledRoot";var qt=X("div",function(t){var r=t.$orientation;return{display:"flex",flexDirection:r===Lt.vertical?"column":"row"}});qt.displayName="StyledMonthContainer";qt.displayName="StyledMonthContainer";var Kt=X("div",function(t){var r=t.$theme.sizing,n=t.$density;return{paddingTop:r.scale300,paddingBottom:n===oe.high?r.scale400:r.scale300,paddingLeft:r.scale500,paddingRight:r.scale500}});Kt.displayName="StyledCalendarContainer";Kt.displayName="StyledCalendarContainer";var Ke=X("div",function(t){var r=t.$theme,n=r.direction==="rtl"?"right":"left";return{marginBottom:r.sizing.scale600,paddingLeft:r.sizing.scale600,paddingRight:r.sizing.scale600,textAlign:n}});Ke.displayName="StyledSelectorContainer";Ke.displayName="StyledSelectorContainer";var Xt=X("div",function(t){var r=t.$theme,n=r.typography,a=r.borders,e=r.colors,o=r.sizing,i=t.$density;return ne(ne({},i===oe.high?n.LabelMedium:n.LabelLarge),{},{color:e.calendarHeaderForeground,display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:o.scale600,paddingBottom:o.scale300,paddingLeft:o.scale600,paddingRight:o.scale600,backgroundColor:e.calendarHeaderBackground,borderTopLeftRadius:a.surfaceBorderRadius,borderTopRightRadius:a.surfaceBorderRadius,borderBottomRightRadius:0,borderBottomLeftRadius:0,minHeight:i===oe.high?"calc(".concat(o.scale800," + ").concat(o.scale0,")"):o.scale950})});Xt.displayName="StyledCalendarHeader";Xt.displayName="StyledCalendarHeader";var Qt=X("div",function(t){return{color:t.$theme.colors.calendarHeaderForeground,backgroundColor:t.$theme.colors.calendarHeaderBackground,whiteSpace:"nowrap"}});Qt.displayName="StyledMonthHeader";Qt.displayName="StyledMonthHeader";var Zt=X("button",function(t){var r=t.$theme,n=r.typography,a=r.colors,e=t.$isFocusVisible,o=t.$density;return ne(ne({},o===oe.high?n.LabelMedium:n.LabelLarge),{},{alignItems:"center",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,color:a.calendarHeaderForeground,cursor:"pointer",display:"flex",outline:"none",":focus":{boxShadow:e?"0 0 0 3px ".concat(a.accent):"none"}})});Zt.displayName="StyledMonthYearSelectButton";Zt.displayName="StyledMonthYearSelectButton";var Gt=X("span",function(t){var r=t.$theme.direction==="rtl"?"marginRight":"marginLeft";return xe({alignItems:"center",display:"flex"},r,t.$theme.sizing.scale500)});Gt.displayName="StyledMonthYearSelectIconContainer";Gt.displayName="StyledMonthYearSelectIconContainer";function Yr(t){var r=t.$theme,n=t.$disabled,a=t.$isFocusVisible;return{boxSizing:"border-box",display:"flex",color:n?r.colors.calendarHeaderForegroundDisabled:r.colors.calendarHeaderForeground,cursor:n?"default":"pointer",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0",marginBottom:0,marginTop:0,outline:"none",":focus":n?{}:{boxShadow:a?"0 0 0 3px ".concat(r.colors.accent):"none"}}}var Jt=X("button",Yr);Jt.displayName="StyledPrevButton";Jt.displayName="StyledPrevButton";var er=X("button",Yr);er.displayName="StyledNextButton";er.displayName="StyledNextButton";var tr=X("div",function(t){return{display:"inline-block"}});tr.displayName="StyledMonth";tr.displayName="StyledMonth";var rr=X("div",function(t){var r=t.$theme.sizing;return{whiteSpace:"nowrap",display:"flex",marginBottom:r.scale0}});rr.displayName="StyledWeek";rr.displayName="StyledWeek";function K(t,r){var n,a=t.substr(0,12)+"1"+t.substr(13),e=t.substr(0,13)+"1"+t.substr(14);return n={},xe(n,t,r),xe(n,a,r),xe(n,e,r),n}function it(t,r){var n=r.colors,a={":before":{content:null},":after":{content:null}},e=a,o={color:n.calendarForegroundDisabled,":before":{content:null},":after":{content:null}},i={color:n.calendarForegroundDisabled,":before":{borderTopStyle:"none",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"none",backgroundColor:"transparent"},":after":{borderTopLeftRadius:"0%",borderTopRightRadius:"0%",borderBottomLeftRadius:"0%",borderBottomRightRadius:"0%",borderTopColor:"transparent",borderBottomColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}},l={":before":{content:null}},u=1;t&&t[u]==="1"&&(e=o);var d=Object.assign({},K("001000000000000",{color:n.calendarDayForegroundPseudoSelected}),K("000100000000000",{color:n.calendarDayForegroundSelected}),K("001100000000000",{color:n.calendarDayForegroundSelectedHighlighted}),{"010000000000000":{color:n.calendarForegroundDisabled,":after":{content:null}}},{"011000000000000":{color:n.calendarForegroundDisabled,":after":{content:null}}},K("000000000000001",i),K("101000000000000",l),K("101010000000000",l),K("100100000000000",{color:n.calendarDayForegroundSelected}),K("101100000000000",{color:n.calendarDayForegroundSelectedHighlighted,":before":{content:null}}),K("100111100000000",{color:n.calendarDayForegroundSelected,":before":{content:null}}),K("101111100000000",{color:n.calendarDayForegroundSelectedHighlighted,":before":{content:null}}),K("100111000000000",{color:n.calendarDayForegroundSelected}),K("100110100000000",{color:n.calendarDayForegroundSelected,":before":{left:null,right:"50%"}}),K("100100001010000",{color:n.calendarDayForegroundSelected}),K("100100001001000",{color:n.calendarDayForegroundSelected,":before":{left:null,right:"50%"}}),K("101000001010000",{":before":{left:null,right:"50%"}}),{"101000001001000":{}},{"101000001001100":{}},{"101000001001010":{}},K("100010010000000",{color:n.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}),{"101000001100000":{color:n.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}},K("100000001100000",{color:n.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}),K("101111000000000",{color:n.calendarDayForegroundSelectedHighlighted}),K("101110100000000",{color:n.calendarDayForegroundSelectedHighlighted,":before":{left:null,right:"50%"}}),K("101010010000000",{color:n.calendarDayForegroundPseudoSelectedHighlighted,":before":{left:"0",width:"100%"}}),K("100000000000001",i),K("100000001010001",i),K("100000001001001",i),K("100010000000001",i));return d[t]||e}var nr=X("div",function(t){var r=t.$disabled,n=t.$isFocusVisible,a=t.$isHighlighted,e=t.$peekNextMonth,o=t.$pseudoSelected,i=t.$range,l=t.$selected,u=t.$outsideMonth,d=t.$outsideMonthWithinRange,f=t.$hasDateLabel,c=t.$density,m=t.$hasLockedBehavior,h=t.$selectedInput,v=t.$value,O=t.$theme,D=O.colors,_=O.typography,$=O.sizing,k=da(t),w;f?c===oe.high?w="60px":w="70px":c===oe.high?w="40px":w="48px";var L=Array.isArray(v)?v:[v,null],A=fa(L,2),x=A[0],B=A[1],H=h===$e.startDate?B!==null&&typeof B<"u":x!==null&&typeof x<"u",E=i&&!(m&&!H);return ne(ne(ne({},c===oe.high?_.ParagraphSmall:_.ParagraphMedium),{},{boxSizing:"border-box",position:"relative",cursor:r||!e&&u?"default":"pointer",color:D.calendarForeground,display:"inline-block",width:c===oe.high?"42px":"50px",height:w,lineHeight:c===oe.high?$.scale700:$.scale900,textAlign:"center",paddingTop:$.scale300,paddingBottom:$.scale300,paddingLeft:$.scale300,paddingRight:$.scale300,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,outline:"none",backgroundColor:"transparent",transform:"scale(1)"},it(k,t.$theme)),{},{":after":ne(ne({zIndex:-1,content:'""',boxSizing:"border-box",display:"inline-block",boxShadow:n&&(!u||e)?"0 0 0 3px ".concat(D.accent):"none",backgroundColor:l?D.calendarDayBackgroundSelectedHighlighted:o&&a?D.calendarDayBackgroundPseudoSelectedHighlighted:D.calendarBackground,height:f?"100%":c===oe.high?"42px":"50px",width:"100%",position:"absolute",top:f?0:"-1px",left:0,paddingTop:$.scale200,paddingBottom:$.scale200,borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderTopColor:D.borderSelected,borderBottomColor:D.borderSelected,borderRightColor:D.borderSelected,borderLeftColor:D.borderSelected,borderTopLeftRadius:f?$.scale800:"100%",borderTopRightRadius:f?$.scale800:"100%",borderBottomLeftRadius:f?$.scale800:"100%",borderBottomRightRadius:f?$.scale800:"100%"},it(k,t.$theme)[":after"]||{}),d?{content:null}:{})},E?{":before":ne(ne({zIndex:-1,content:'""',boxSizing:"border-box",display:"inline-block",backgroundColor:D.mono300,position:"absolute",height:"100%",width:"50%",top:0,left:"50%",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftWidth:"0",borderRightWidth:"0",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopColor:"transparent",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"},it(k,t.$theme)[":before"]||{}),d?{backgroundColor:D.mono300,left:"0",width:"100%",content:'""'}:{})}:{})});nr.displayName="StyledDay";nr.displayName="StyledDay";var ar=X("div",function(t){var r=t.$theme,n=r.typography,a=r.colors,e=t.$selected;return ne(ne({},n.ParagraphXSmall),{},{color:e?a.contentInverseTertiary:a.contentTertiary})});ar.displayName="StyledDayLabel";ar.displayName="StyledDayLabel";var or=X("div",function(t){var r=t.$theme,n=r.typography,a=r.colors,e=r.sizing,o=t.$density;return ne(ne({},n.LabelMedium),{},{color:a.contentTertiary,boxSizing:"border-box",position:"relative",cursor:"default",display:"inline-block",width:o===oe.high?"42px":"50px",height:o===oe.high?"40px":"48px",textAlign:"center",lineHeight:e.scale900,paddingTop:e.scale300,paddingBottom:e.scale300,paddingLeft:e.scale200,paddingRight:e.scale200,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,backgroundColor:"transparent"})});or.displayName="StyledWeekdayHeader";or.displayName="StyledWeekdayHeader";function mt(t){"@babel/helpers - typeof";return mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mt(t)}function ye(){return ye=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ye.apply(this,arguments)}function be(t,r){return Da(t)||Oa(t,r)||ba(t,r)||ma()}function ma(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -1 +1 @@
1
- import{n as s,r as b,R as u,az as k,b5 as C,y as L,j as n,b3 as v,b6 as y,C as T,G as w,ay as S}from"./index.DeuQX1T6.js";const h=s("div",{target:"e1xmaixs0"})({display:"flex",flexDirection:"column"}),P=s("a",{target:"e1xmaixs1"})(({disabled:a,isCurrentPage:o,fluidWidth:l,theme:e})=>({textDecoration:"none",width:typeof l=="number"?`${l}px`:"fit-content",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:e.spacing.sm,borderRadius:e.radii.default,paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm,marginTop:e.spacing.threeXS,marginBottom:e.spacing.threeXS,lineHeight:e.lineHeights.menuItem,backgroundColor:o?e.colors.darkenedBgMix15:"transparent","&:hover":{backgroundColor:o?e.colors.darkenedBgMix25:e.colors.darkenedBgMix15},"&:active,&:visited,&:hover":{textDecoration:"none"},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:e.colors.darkenedBgMix15},"@media print":{paddingLeft:e.spacing.none},...a?{borderColor:e.colors.borderColor,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:"not-allowed","&:hover":{color:e.colors.fadedText40,backgroundColor:e.colors.transparent}}:{}})),m=s("span",{target:"e1xmaixs2"})(({disabled:a,theme:o})=>({color:o.colors.bodyText,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell",...a?{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}:{}}));function B(a,o){return a===null&&o?!0:a===null&&!o?!1:a===!0}function D(a){const{onPageChange:o,currentPageScriptHash:l}=u.useContext(k),e=u.useContext(C),{colors:i}=L(),{disabled:t,element:r,width:c}=a,p={width:c},f=B(r.useContainerWidth,e),d=l===r.pageScriptHash,x=g=>{r.external?t&&g.preventDefault():(g.preventDefault(),t||o(r.pageScriptHash))};return n("div",{className:"stPageLink","data-testid":"stPageLink",style:p,children:n(v,{help:r.help,placement:y.TOP_RIGHT,children:n(h,{children:T(P,{"data-testid":"stPageLink-NavLink",disabled:t,isCurrentPage:d,fluidWidth:f?c:!1,href:r.page,target:r.external?"_blank":"",rel:"noreferrer",onClick:x,children:[r.icon&&n(w,{size:"lg",color:t?i.fadedText40:i.bodyText,iconValue:r.icon}),n(m,{disabled:t,children:n(S,{source:r.label,allowHTML:!1,isLabel:!0,boldLabel:d,largerLabel:!0,disableLinks:!0})})]})})})})}const M=b.memo(D);export{M as default};
1
+ import{n as s,r as b,R as u,az as k,b5 as C,y as L,j as n,b3 as v,b6 as y,C as T,G as w,ay as S}from"./index.bLZVjplR.js";const h=s("div",{target:"e1xmaixs0"})({display:"flex",flexDirection:"column"}),P=s("a",{target:"e1xmaixs1"})(({disabled:a,isCurrentPage:o,fluidWidth:l,theme:e})=>({textDecoration:"none",width:typeof l=="number"?`${l}px`:"fit-content",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:e.spacing.sm,borderRadius:e.radii.default,paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm,marginTop:e.spacing.threeXS,marginBottom:e.spacing.threeXS,lineHeight:e.lineHeights.menuItem,backgroundColor:o?e.colors.darkenedBgMix15:"transparent","&:hover":{backgroundColor:o?e.colors.darkenedBgMix25:e.colors.darkenedBgMix15},"&:active,&:visited,&:hover":{textDecoration:"none"},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:e.colors.darkenedBgMix15},"@media print":{paddingLeft:e.spacing.none},...a?{borderColor:e.colors.borderColor,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:"not-allowed","&:hover":{color:e.colors.fadedText40,backgroundColor:e.colors.transparent}}:{}})),m=s("span",{target:"e1xmaixs2"})(({disabled:a,theme:o})=>({color:o.colors.bodyText,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell",...a?{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}:{}}));function B(a,o){return a===null&&o?!0:a===null&&!o?!1:a===!0}function D(a){const{onPageChange:o,currentPageScriptHash:l}=u.useContext(k),e=u.useContext(C),{colors:i}=L(),{disabled:t,element:r,width:c}=a,p={width:c},f=B(r.useContainerWidth,e),d=l===r.pageScriptHash,x=g=>{r.external?t&&g.preventDefault():(g.preventDefault(),t||o(r.pageScriptHash))};return n("div",{className:"stPageLink","data-testid":"stPageLink",style:p,children:n(v,{help:r.help,placement:y.TOP_RIGHT,children:n(h,{children:T(P,{"data-testid":"stPageLink-NavLink",disabled:t,isCurrentPage:d,fluidWidth:f?c:!1,href:r.page,target:r.external?"_blank":"",rel:"noreferrer",onClick:x,children:[r.icon&&n(w,{size:"lg",color:t?i.fadedText40:i.bodyText,iconValue:r.icon}),n(m,{disabled:t,children:n(S,{source:r.label,allowHTML:!1,isLabel:!0,boldLabel:d,largerLabel:!0,disableLinks:!0})})]})})})})}const M=b.memo(D);export{M as default};
@@ -1,4 +1,4 @@
1
- import{at as QL,n as ZL,z as Qe,aB as eP,aC as hE,aD as tP,aE as nP,aF as pa,aG as Dd,L as iP,y as rP,r as wt,K as Gy,g as oP,a8 as sP,aj as aP,af as gE,ag as pE,Q as uP,aH as lP,M as mE,aw as yE,an as Dk,C as cP,j as dm,aI as fP}from"./index.DeuQX1T6.js";import{S as bE,T as dP}from"./Toolbar.B5RomQbU.js";import{u as Rk,E as Nk,w as hP}from"./withFullScreenWrapper.BKBYrOn-.js";import{m as gP}from"./mergeWith.D8F46YVj.js";import{a as ic,n as pP,b as mP,c as ag,t as Ds,p as yP,d as bP,e as vP,i as Wo,f as ug,g as vE,l as ku,h as Vy,j as lg,k as xE,m as go,o as Va,q as xP,r as qo,s as wP,u as EP,v as SP,w as _P}from"./threshold.DjX0wlsa.js";import{f as $P,a as z0,b as Lk,c as AP,R as cg,r as Pk,d as Xy,e as Yy,C as Ky,g as wE,h as EE,i as fg,j as I0,n as It,k as Oc,l as kP,m as CP,o as FP,p as TP,q as MP,s as OP,t as DP,u as RP,v as NP,w as LP,x as PP,y as Rd}from"./value.CgPGBV_l.js";import{P as zP,i as IP,a as BP,b as UP,p as Jy,T as jP,n as WP,t as qP,d as HP}from"./timer.CAwTRJ_g.js";import{u as GP}from"./FormClearHelper.Dha_cfuU.js";const VP=e=>({"#vg-tooltip-element":{visibility:"hidden",position:"fixed",fontFamily:e.genericFonts.bodyFont,color:e.colors.bodyText,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,backgroundColor:QL(e.colors.bgColor,.05),fontSize:e.fontSizes.twoSm,boxShadow:"rgb(0 0 0 / 16%) 0px 1px 4px",maxWidth:e.sizes.maxChartTooltipWidth,padding:`${e.spacing.xs} ${e.spacing.md}`,borderRadius:e.radii.default,zIndex:e.zIndices.popup,"&.visible":{visibility:"visible"},h2:{marginTop:e.spacing.none,marginBottom:e.spacing.sm,fontSize:e.fontSizes.sm},td:{border:"none"},table:{borderSpacing:0,tr:{border:"none",td:{overflow:"hidden",textOverflow:"ellipsis",paddingTop:e.spacing.threeXS,paddingBottom:e.spacing.threeXS},"td.key":{maxWidth:`calc((${e.sizes.maxChartTooltipWidth} - 2 * ${e.spacing.md}) * 0.4)`,textAlign:"right",color:e.colors.fadedText60,whiteSpace:"nowrap",paddingRight:e.spacing.twoXS},"td.value":{maxWidth:`calc((${e.sizes.maxChartTooltipWidth} - 2 * ${e.spacing.md}) * 0.6)`,textAlign:"left",display:"-webkit-box",WebkitLineClamp:"5",WebkitBoxOrient:"vertical",lineClamp:"5",wordWrap:"break-word"}}}}}),XP=ZL("div",{target:"e1xm3y80"})(({theme:e,useContainerWidth:t,isFullScreen:n})=>({width:t||n?"100%":"auto",height:n?"100%":"auto","&.vega-embed":{position:"relative",display:"inline-block",boxSizing:"border-box","details:not([open]) > :not(summary)":{display:"none !important"},"details[open] summary":{opacity:.7},"&:hover summary, .vega-embed:focus summary":{background:"transparent"},"&:hover summary, &:focus-within summary":{opacity:"1 !important",transition:"opacity 0.2s ease"},"&.has-actions":{paddingRight:0},".vega-actions":{position:"absolute",display:"flex",flexDirection:"column",paddingBottom:e.spacing.sm,paddingTop:e.spacing.sm,zIndex:e.zIndices.popup,top:`calc(${e.iconSizes.md} + 2 * ${e.spacing.xs} + ${e.spacing.xs})`,right:0,backgroundColor:e.colors.bgColor,boxShadow:"rgb(0 0 0 / 16%) 0px 4px 16px",border:`${e.sizes.borderWidth} solid ${e.colors.fadedText10}`,animationDuration:"0.15s",animationName:"scale-in",animationTimingFunction:"cubic-bezier(0.2, 0, 0.13, 1.5)",textAlign:"left",borderRadius:e.radii.default,a:{fontFamily:e.genericFonts.bodyFont,fontWeight:e.fontWeights.normal,fontSize:e.fontSizes.md,margin:0,padding:`${e.spacing.twoXS} ${e.spacing.twoXL}`,color:e.colors.bodyText,whiteSpace:"nowrap",textDecoration:"none"},"a:hover, a:focus":{backgroundColor:e.colors.secondaryBg,color:e.colors.bodyText},":before":{content:"none"},":after":{content:"none"}},"@keyframes scale-in":{from:{opacity:0,transform:"scale(0.6)"},to:{opacity:1,transform:"scale(1)"}},".chart-wrapper":{"&.fit-x":{width:"100%"},"&.fit-y":{height:"100%"}},summary:{position:"absolute",top:0,right:0,opacity:0,listStyle:"none",cursor:"pointer",display:"list-item",padding:e.spacing.xs,height:"auto",zIndex:e.zIndices.menuButton,border:"none",boxShadow:"none",borderRadius:e.radii.default,color:e.colors.fadedText10,backgroundColor:"transparent",transition:"opacity 300ms 150ms,transform 300ms 150ms",lineHeight:0,"&::-webkit-details-marker":{display:"none"},"&:active, &:focus-visible, &:hover":{border:"none",boxShadow:"none",color:e.colors.bodyText,opacity:"1 !important",background:e.colors.darkenedBgMix25},svg:{width:e.iconSizes.md,height:e.iconSizes.md}}}}));function SE(e,t){const n={font:t.genericFonts.bodyFont,background:t.colors.bgColor,fieldTitle:"verbal",autosize:{type:"fit",contains:"padding"},title:{align:"left",anchor:"start",color:t.colors.headingColor,titleFontStyle:"normal",fontWeight:t.fontWeights.bold,fontSize:Qe(t.fontSizes.md),orient:"top",offset:26},header:{titleFontWeight:t.fontWeights.normal,titleFontSize:Qe(t.fontSizes.md),titleColor:pa(t),titleFontStyle:"normal",labelFontSize:Qe(t.fontSizes.twoSm),labelFontWeight:t.fontWeights.normal,labelColor:pa(t),labelFontStyle:"normal"},axis:{labelFontSize:Qe(t.fontSizes.twoSm),labelFontWeight:t.fontWeights.normal,labelColor:pa(t),labelFontStyle:"normal",titleFontWeight:t.fontWeights.normal,titleFontSize:Qe(t.fontSizes.sm),titleColor:pa(t),titleFontStyle:"normal",ticks:!1,gridColor:Dd(t),domain:!1,domainWidth:1,domainColor:Dd(t),labelFlush:!0,labelFlushOffset:1,labelBound:!1,labelLimit:100,titlePadding:Qe(t.spacing.lg),labelPadding:Qe(t.spacing.lg),labelSeparation:Qe(t.spacing.twoXS),labelOverlap:!0},legend:{labelFontSize:Qe(t.fontSizes.sm),labelFontWeight:t.fontWeights.normal,labelColor:pa(t),titleFontSize:Qe(t.fontSizes.sm),titleFontWeight:t.fontWeights.normal,titleFontStyle:"normal",titleColor:pa(t),titlePadding:5,labelPadding:Qe(t.spacing.lg),columnPadding:Qe(t.spacing.sm),rowPadding:Qe(t.spacing.twoXS),padding:7,symbolStrokeWidth:Qe(t.spacing.twoXS)},range:{category:nP(t),diverging:tP(t),ramp:hE(t),heatmap:hE(t)},view:{columns:1,strokeWidth:0,stroke:"transparent",continuousHeight:Qe(t.sizes.defaultChartHeight),continuousWidth:Qe(t.sizes.defaultChartWidth)},concat:{columns:1},facet:{columns:1},mark:{tooltip:!0,color:eP(t)},bar:{binSpacing:Qe(t.spacing.twoXS),discreteBandSize:{band:.85}},axisDiscrete:{grid:!1},axisXPoint:{grid:!1},axisTemporal:{grid:!1},axisXBand:{grid:!1}};return e?gP({},n,e,(i,r)=>Array.isArray(r)?r:void 0):n}function YP(e,t){const{colors:n,fontSizes:i,genericFonts:r}=t,o={labelFont:r.bodyFont,titleFont:r.bodyFont,labelFontSize:Qe(i.twoSm),titleFontSize:Qe(i.twoSm)},s={background:n.bgColor,axis:{labelColor:n.bodyText,titleColor:n.bodyText,gridColor:Dd(t),...o},legend:{labelColor:n.bodyText,titleColor:n.bodyText,...o},title:{color:n.bodyText,subtitleColor:n.bodyText,...o},header:{labelColor:n.bodyText,titleColor:n.bodyText,...o},view:{stroke:Dd(t),continuousHeight:Qe(t.sizes.defaultChartHeight),continuousWidth:Qe(t.sizes.defaultChartWidth)},mark:{tooltip:!0}};return e?iP({},s,e):s}const KP=20;function JP(e){"params"in e&&"encoding"in e&&e.params.forEach(t=>{"select"in t&&(["interval","point"].includes(t.select)&&(t.select={type:t.select}),"type"in t.select&&t.select.type==="point"&&!("encodings"in t.select)&&Gy(t.select.encodings)&&(t.select.encodings=Object.keys(e.encoding)))})}const QP=(e,t,n,i,r,o,s,a)=>{var l,c;const u=JSON.parse(e);if(n==="streamlit"?u.config=SE(u.config,r):((c=(l=u.usermeta)==null?void 0:l.embedOptions)==null?void 0:c.theme)==="streamlit"?(u.config=SE(u.config,r),u.usermeta.embedOptions.theme=void 0):u.config=YP(u.config,r),o?(u.width=s,u.height=a,"vconcat"in u&&u.vconcat.forEach(f=>{f.width=s})):t&&(u.width=s,"vconcat"in u&&u.vconcat.forEach(f=>{f.width=s})),u.padding||(u.padding={}),Gy(u.padding.bottom)&&(u.padding.bottom=KP),u.datasets)throw new Error("Datasets should not be passed as part of the spec");return i.length>0&&JP(u),u},ZP=e=>{const t=rP(),{expanded:n,width:i,height:r}=Rk(Nk),{id:o,formId:s,spec:a,data:u,datasets:l,useContainerWidth:c,vegaLiteTheme:f,selectionMode:d}=e,h=wt.useMemo(()=>d,[JSON.stringify(d)]),g=wt.useMemo(()=>QP(a,c,f,h,t,n,i,r),[a,c,f,h,t,n,i,r]);return{id:o,formId:s,vegaLiteTheme:f,spec:g,selectionMode:h,data:u,datasets:l,useContainerWidth:c}};function _n(e,t,n){return e.fields=t||[],e.fname=n,e}function Je(e){return e==null?null:e.fname}function jt(e){return e==null?null:e.fields}function zk(e){return e.length===1?ez(e[0]):tz(e)}const ez=e=>function(t){return t[e]},tz=e=>{const t=e.length;return function(n){for(let i=0;i<t;++i)n=n[e[i]];return n}};function N(e){throw Error(e)}function ur(e){const t=[],n=e.length;let i=null,r=0,o="",s,a,u;e=e+"";function l(){t.push(o+e.substring(s,a)),o="",s=a+1}for(s=a=0;a<n;++a)if(u=e[a],u==="\\")o+=e.substring(s,a++),s=a;else if(u===i)l(),i=null,r=-1;else{if(i)continue;s===r&&u==='"'||s===r&&u==="'"?(s=a+1,i=u):u==="."&&!r?a>s?l():s=a+1:u==="["?(a>s&&l(),r=s=a+1):u==="]"&&(r||N("Access path missing open bracket: "+e),r>0&&l(),r=0,s=a+1)}return r&&N("Access path missing closing bracket: "+e),i&&N("Access path missing closing quote: "+e),a>s&&(a++,l()),t}function Jn(e,t,n){const i=ur(e);return e=i.length===1?i[0]:e,_n((n&&n.get||zk)(i),[e],t||e)}const Dc=Jn("id"),Gt=_n(e=>e,[],"identity"),ho=_n(()=>0,[],"zero"),Cu=_n(()=>1,[],"one"),Ln=_n(()=>!0,[],"true"),ro=_n(()=>!1,[],"false");function nz(e,t,n){const i=[t].concat([].slice.call(n));console[e].apply(console,i)}const Ik=0,Qy=1,Zy=2,Bk=3,Uk=4;function eb(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nz,i=e||Ik;return{level(r){return arguments.length?(i=+r,this):i},error(){return i>=Qy&&n(t||"error","ERROR",arguments),this},warn(){return i>=Zy&&n(t||"warn","WARN",arguments),this},info(){return i>=Bk&&n(t||"log","INFO",arguments),this},debug(){return i>=Uk&&n(t||"log","DEBUG",arguments),this}}}var L=Array.isArray;function X(e){return e===Object(e)}const _E=e=>e!=="__proto__";function Fu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((i,r)=>{for(const o in r)if(o==="signals")i.signals=iz(i.signals,r.signals);else{const s=o==="legend"?{layout:1}:o==="style"?!0:null;Tu(i,o,r[o],s)}return i},{})}function Tu(e,t,n,i){if(!_E(t))return;let r,o;if(X(n)&&!L(n)){o=X(e[t])?e[t]:e[t]={};for(r in n)i&&(i===!0||i[r])?Tu(o,r,n[r]):_E(r)&&(o[r]=n[r])}else e[t]=n}function iz(e,t){if(e==null)return t;const n={},i=[];function r(o){n[o.name]||(n[o.name]=1,i.push(o))}return t.forEach(r),e.forEach(r),i}function xe(e){return e[e.length-1]}function Bt(e){return e==null||e===""?null:+e}const jk=e=>t=>e*Math.exp(t),Wk=e=>t=>Math.log(e*t),qk=e=>t=>Math.sign(t)*Math.log1p(Math.abs(t/e)),Hk=e=>t=>Math.sign(t)*Math.expm1(Math.abs(t))*e,Nd=e=>t=>t<0?-Math.pow(-t,e):Math.pow(t,e);function dg(e,t,n,i){const r=n(e[0]),o=n(xe(e)),s=(o-r)*t;return[i(r-s),i(o-s)]}function Gk(e,t){return dg(e,t,Bt,Gt)}function Vk(e,t){var n=Math.sign(e[0]);return dg(e,t,Wk(n),jk(n))}function Xk(e,t,n){return dg(e,t,Nd(n),Nd(1/n))}function Yk(e,t,n){return dg(e,t,qk(n),Hk(n))}function hg(e,t,n,i,r){const o=i(e[0]),s=i(xe(e)),a=t!=null?i(t):(o+s)/2;return[r(a+(o-a)*n),r(a+(s-a)*n)]}function tb(e,t,n){return hg(e,t,n,Bt,Gt)}function nb(e,t,n){const i=Math.sign(e[0]);return hg(e,t,n,Wk(i),jk(i))}function Ld(e,t,n,i){return hg(e,t,n,Nd(i),Nd(1/i))}function ib(e,t,n,i){return hg(e,t,n,qk(i),Hk(i))}function Kk(e){return 1+~~(new Date(e).getMonth()/3)}function Jk(e){return 1+~~(new Date(e).getUTCMonth()/3)}function Y(e){return e!=null?L(e)?e:[e]:[]}function Qk(e,t,n){let i=e[0],r=e[1],o;return r<i&&(o=r,r=i,i=o),o=r-i,o>=n-t?[t,n]:[i=Math.min(Math.max(i,t),n-o),i+o]}function fe(e){return typeof e=="function"}const rz="descending";function rb(e,t,n){n=n||{},t=Y(t)||[];const i=[],r=[],o={},s=n.comparator||oz;return Y(e).forEach((a,u)=>{a!=null&&(i.push(t[u]===rz?-1:1),r.push(a=fe(a)?a:Jn(a,null,n)),(jt(a)||[]).forEach(l=>o[l]=1))}),r.length===0?null:_n(s(r,i),Object.keys(o))}const gg=(e,t)=>(e<t||e==null)&&t!=null?-1:(e>t||t==null)&&e!=null?1:(t=t instanceof Date?+t:t,(e=e instanceof Date?+e:e)!==e&&t===t?-1:t!==t&&e===e?1:0),oz=(e,t)=>e.length===1?sz(e[0],t[0]):az(e,t,e.length),sz=(e,t)=>function(n,i){return gg(e(n),e(i))*t},az=(e,t,n)=>(t.push(0),function(i,r){let o,s=0,a=-1;for(;s===0&&++a<n;)o=e[a],s=gg(o(i),o(r));return s*t[a]});function Vt(e){return fe(e)?e:()=>e}function ob(e,t){let n;return i=>{n&&clearTimeout(n),n=setTimeout(()=>(t(i),n=null),e)}}function ce(e){for(let t,n,i=1,r=arguments.length;i<r;++i){t=arguments[i];for(n in t)e[n]=t[n]}return e}function Zi(e,t){let n=0,i,r,o,s;if(e&&(i=e.length))if(t==null){for(r=e[n];n<i&&(r==null||r!==r);r=e[++n]);for(o=s=r;n<i;++n)r=e[n],r!=null&&(r<o&&(o=r),r>s&&(s=r))}else{for(r=t(e[n]);n<i&&(r==null||r!==r);r=t(e[++n]));for(o=s=r;n<i;++n)r=t(e[n]),r!=null&&(r<o&&(o=r),r>s&&(s=r))}return[o,s]}function Zk(e,t){const n=e.length;let i=-1,r,o,s,a,u;if(t==null){for(;++i<n;)if(o=e[i],o!=null&&o>=o){r=s=o;break}if(i===n)return[-1,-1];for(a=u=i;++i<n;)o=e[i],o!=null&&(r>o&&(r=o,a=i),s<o&&(s=o,u=i))}else{for(;++i<n;)if(o=t(e[i],i,e),o!=null&&o>=o){r=s=o;break}if(i===n)return[-1,-1];for(a=u=i;++i<n;)o=t(e[i],i,e),o!=null&&(r>o&&(r=o,a=i),s<o&&(s=o,u=i))}return[a,u]}const uz=Object.prototype.hasOwnProperty;function J(e,t){return uz.call(e,t)}const _f={};function Mu(e){let t={},n;function i(o){return J(t,o)&&t[o]!==_f}const r={size:0,empty:0,object:t,has:i,get(o){return i(o)?t[o]:void 0},set(o,s){return i(o)||(++r.size,t[o]===_f&&--r.empty),t[o]=s,this},delete(o){return i(o)&&(--r.size,++r.empty,t[o]=_f),this},clear(){r.size=r.empty=0,r.object=t={}},test(o){return arguments.length?(n=o,r):n},clean(){const o={};let s=0;for(const a in t){const u=t[a];u!==_f&&(!n||!n(u))&&(o[a]=u,++s)}r.size=s,r.empty=0,r.object=t=o}};return e&&Object.keys(e).forEach(o=>{r.set(o,e[o])}),r}function eC(e,t,n,i,r,o){if(!n&&n!==0)return o;const s=+n;let a=e[0],u=xe(e),l;u<a&&(l=a,a=u,u=l),l=Math.abs(t-a);const c=Math.abs(u-t);return l<c&&l<=s?i:c<=s?r:o}function G(e,t,n){const i=e.prototype=Object.create(t.prototype);return Object.defineProperty(i,"constructor",{value:e,writable:!0,enumerable:!0,configurable:!0}),ce(i,n)}function Ma(e,t,n,i){let r=t[0],o=t[t.length-1],s;return r>o&&(s=r,r=o,o=s),n=n===void 0||n,i=i===void 0||i,(n?r<=e:r<e)&&(i?e<=o:e<o)}function Ho(e){return typeof e=="boolean"}function _o(e){return Object.prototype.toString.call(e)==="[object Date]"}function tC(e){return e&&fe(e[Symbol.iterator])}function $e(e){return typeof e=="number"}function nC(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function K(e){return typeof e=="string"}function sb(e,t,n){e&&(e=t?Y(e).map(a=>a.replace(/\\(.)/g,"$1")):Y(e));const i=e&&e.length,r=n&&n.get||zk,o=a=>r(t?[a]:ur(a));let s;if(!i)s=function(){return""};else if(i===1){const a=o(e[0]);s=function(u){return""+a(u)}}else{const a=e.map(o);s=function(u){let l=""+a[0](u),c=0;for(;++c<i;)l+="|"+a[c](u);return l}}return _n(s,e,"key")}function iC(e,t){const n=e[0],i=xe(e),r=+t;return r?r===1?i:n+r*(i-n):n}const lz=1e4;function rC(e){e=+e||lz;let t,n,i;const r=()=>{t={},n={},i=0},o=(s,a)=>(++i>e&&(n=t,t={},i=1),t[s]=a);return r(),{clear:r,has:s=>J(t,s)||J(n,s),get:s=>J(t,s)?t[s]:J(n,s)?o(s,n[s]):void 0,set:(s,a)=>J(t,s)?t[s]=a:o(s,a)}}function oC(e,t,n,i){const r=t.length,o=n.length;if(!o)return t;if(!r)return n;const s=i||new t.constructor(r+o);let a=0,u=0,l=0;for(;a<r&&u<o;++l)s[l]=e(t[a],n[u])>0?n[u++]:t[a++];for(;a<r;++a,++l)s[l]=t[a];for(;u<o;++u,++l)s[l]=n[u];return s}function El(e,t){let n="";for(;--t>=0;)n+=e;return n}function sC(e,t,n,i){const r=n||" ",o=e+"",s=t-o.length;return s<=0?o:i==="left"?El(r,s)+o:i==="center"?El(r,~~(s/2))+o+El(r,Math.ceil(s/2)):o+El(r,s)}function Rc(e){return e&&xe(e)-e[0]||0}function H(e){return L(e)?"["+e.map(H)+"]":X(e)||K(e)?JSON.stringify(e).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):e}function ab(e){return e==null||e===""?null:!e||e==="false"||e==="0"?!1:!!e}const cz=e=>$e(e)||_o(e)?e:Date.parse(e);function ub(e,t){return t=t||cz,e==null||e===""?null:t(e)}function lb(e){return e==null||e===""?null:e+""}function vi(e){const t={},n=e.length;for(let i=0;i<n;++i)t[e[i]]=!0;return t}function aC(e,t,n,i){const r=i??"…",o=e+"",s=o.length,a=Math.max(0,t-r.length);return s<=t?o:n==="left"?r+o.slice(s-a):n==="center"?o.slice(0,Math.ceil(a/2))+r+o.slice(s-~~(a/2)):o.slice(0,a)+r}function ao(e,t,n){if(e)if(t){const i=e.length;for(let r=0;r<i;++r){const o=t(e[r]);o&&n(o,r,e)}}else e.forEach(n)}var $E={},hm={},gm=34,Qu=10,pm=13;function uC(e){return new Function("d","return {"+e.map(function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'}).join(",")+"}")}function fz(e,t){var n=uC(e);return function(i,r){return t(n(i),r,e)}}function AE(e){var t=Object.create(null),n=[];return e.forEach(function(i){for(var r in i)r in t||n.push(t[r]=r)}),n}function dn(e,t){var n=e+"",i=n.length;return i<t?new Array(t-i+1).join(0)+n:n}function dz(e){return e<0?"-"+dn(-e,6):e>9999?"+"+dn(e,6):dn(e,4)}function hz(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),i=e.getUTCSeconds(),r=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":dz(e.getUTCFullYear())+"-"+dn(e.getUTCMonth()+1,2)+"-"+dn(e.getUTCDate(),2)+(r?"T"+dn(t,2)+":"+dn(n,2)+":"+dn(i,2)+"."+dn(r,3)+"Z":i?"T"+dn(t,2)+":"+dn(n,2)+":"+dn(i,2)+"Z":n||t?"T"+dn(t,2)+":"+dn(n,2)+"Z":"")}function gz(e){var t=new RegExp('["'+e+`
1
+ import{at as QL,n as ZL,z as Qe,aB as eP,aC as hE,aD as tP,aE as nP,aF as pa,aG as Dd,L as iP,y as rP,r as wt,K as Gy,g as oP,a8 as sP,aj as aP,af as gE,ag as pE,Q as uP,aH as lP,M as mE,aw as yE,an as Dk,C as cP,j as dm,aI as fP}from"./index.bLZVjplR.js";import{S as bE,T as dP}from"./Toolbar.C714dqzb.js";import{u as Rk,E as Nk,w as hP}from"./withFullScreenWrapper.wyYj-oat.js";import{m as gP}from"./mergeWith.B34IaY8d.js";import{a as ic,n as pP,b as mP,c as ag,t as Ds,p as yP,d as bP,e as vP,i as Wo,f as ug,g as vE,l as ku,h as Vy,j as lg,k as xE,m as go,o as Va,q as xP,r as qo,s as wP,u as EP,v as SP,w as _P}from"./threshold.DjX0wlsa.js";import{f as $P,a as z0,b as Lk,c as AP,R as cg,r as Pk,d as Xy,e as Yy,C as Ky,g as wE,h as EE,i as fg,j as I0,n as It,k as Oc,l as kP,m as CP,o as FP,p as TP,q as MP,s as OP,t as DP,u as RP,v as NP,w as LP,x as PP,y as Rd}from"./value.CgPGBV_l.js";import{P as zP,i as IP,a as BP,b as UP,p as Jy,T as jP,n as WP,t as qP,d as HP}from"./timer.CAwTRJ_g.js";import{u as GP}from"./FormClearHelper.Doa6Lh7Q.js";const VP=e=>({"#vg-tooltip-element":{visibility:"hidden",position:"fixed",fontFamily:e.genericFonts.bodyFont,color:e.colors.bodyText,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,backgroundColor:QL(e.colors.bgColor,.05),fontSize:e.fontSizes.twoSm,boxShadow:"rgb(0 0 0 / 16%) 0px 1px 4px",maxWidth:e.sizes.maxChartTooltipWidth,padding:`${e.spacing.xs} ${e.spacing.md}`,borderRadius:e.radii.default,zIndex:e.zIndices.popup,"&.visible":{visibility:"visible"},h2:{marginTop:e.spacing.none,marginBottom:e.spacing.sm,fontSize:e.fontSizes.sm},td:{border:"none"},table:{borderSpacing:0,tr:{border:"none",td:{overflow:"hidden",textOverflow:"ellipsis",paddingTop:e.spacing.threeXS,paddingBottom:e.spacing.threeXS},"td.key":{maxWidth:`calc((${e.sizes.maxChartTooltipWidth} - 2 * ${e.spacing.md}) * 0.4)`,textAlign:"right",color:e.colors.fadedText60,whiteSpace:"nowrap",paddingRight:e.spacing.twoXS},"td.value":{maxWidth:`calc((${e.sizes.maxChartTooltipWidth} - 2 * ${e.spacing.md}) * 0.6)`,textAlign:"left",display:"-webkit-box",WebkitLineClamp:"5",WebkitBoxOrient:"vertical",lineClamp:"5",wordWrap:"break-word"}}}}}),XP=ZL("div",{target:"e1xm3y80"})(({theme:e,useContainerWidth:t,isFullScreen:n})=>({width:t||n?"100%":"auto",height:n?"100%":"auto","&.vega-embed":{position:"relative",display:"inline-block",boxSizing:"border-box","details:not([open]) > :not(summary)":{display:"none !important"},"details[open] summary":{opacity:.7},"&:hover summary, .vega-embed:focus summary":{background:"transparent"},"&:hover summary, &:focus-within summary":{opacity:"1 !important",transition:"opacity 0.2s ease"},"&.has-actions":{paddingRight:0},".vega-actions":{position:"absolute",display:"flex",flexDirection:"column",paddingBottom:e.spacing.sm,paddingTop:e.spacing.sm,zIndex:e.zIndices.popup,top:`calc(${e.iconSizes.md} + 2 * ${e.spacing.xs} + ${e.spacing.xs})`,right:0,backgroundColor:e.colors.bgColor,boxShadow:"rgb(0 0 0 / 16%) 0px 4px 16px",border:`${e.sizes.borderWidth} solid ${e.colors.fadedText10}`,animationDuration:"0.15s",animationName:"scale-in",animationTimingFunction:"cubic-bezier(0.2, 0, 0.13, 1.5)",textAlign:"left",borderRadius:e.radii.default,a:{fontFamily:e.genericFonts.bodyFont,fontWeight:e.fontWeights.normal,fontSize:e.fontSizes.md,margin:0,padding:`${e.spacing.twoXS} ${e.spacing.twoXL}`,color:e.colors.bodyText,whiteSpace:"nowrap",textDecoration:"none"},"a:hover, a:focus":{backgroundColor:e.colors.secondaryBg,color:e.colors.bodyText},":before":{content:"none"},":after":{content:"none"}},"@keyframes scale-in":{from:{opacity:0,transform:"scale(0.6)"},to:{opacity:1,transform:"scale(1)"}},".chart-wrapper":{"&.fit-x":{width:"100%"},"&.fit-y":{height:"100%"}},summary:{position:"absolute",top:0,right:0,opacity:0,listStyle:"none",cursor:"pointer",display:"list-item",padding:e.spacing.xs,height:"auto",zIndex:e.zIndices.menuButton,border:"none",boxShadow:"none",borderRadius:e.radii.default,color:e.colors.fadedText10,backgroundColor:"transparent",transition:"opacity 300ms 150ms,transform 300ms 150ms",lineHeight:0,"&::-webkit-details-marker":{display:"none"},"&:active, &:focus-visible, &:hover":{border:"none",boxShadow:"none",color:e.colors.bodyText,opacity:"1 !important",background:e.colors.darkenedBgMix25},svg:{width:e.iconSizes.md,height:e.iconSizes.md}}}}));function SE(e,t){const n={font:t.genericFonts.bodyFont,background:t.colors.bgColor,fieldTitle:"verbal",autosize:{type:"fit",contains:"padding"},title:{align:"left",anchor:"start",color:t.colors.headingColor,titleFontStyle:"normal",fontWeight:t.fontWeights.bold,fontSize:Qe(t.fontSizes.md),orient:"top",offset:26},header:{titleFontWeight:t.fontWeights.normal,titleFontSize:Qe(t.fontSizes.md),titleColor:pa(t),titleFontStyle:"normal",labelFontSize:Qe(t.fontSizes.twoSm),labelFontWeight:t.fontWeights.normal,labelColor:pa(t),labelFontStyle:"normal"},axis:{labelFontSize:Qe(t.fontSizes.twoSm),labelFontWeight:t.fontWeights.normal,labelColor:pa(t),labelFontStyle:"normal",titleFontWeight:t.fontWeights.normal,titleFontSize:Qe(t.fontSizes.sm),titleColor:pa(t),titleFontStyle:"normal",ticks:!1,gridColor:Dd(t),domain:!1,domainWidth:1,domainColor:Dd(t),labelFlush:!0,labelFlushOffset:1,labelBound:!1,labelLimit:100,titlePadding:Qe(t.spacing.lg),labelPadding:Qe(t.spacing.lg),labelSeparation:Qe(t.spacing.twoXS),labelOverlap:!0},legend:{labelFontSize:Qe(t.fontSizes.sm),labelFontWeight:t.fontWeights.normal,labelColor:pa(t),titleFontSize:Qe(t.fontSizes.sm),titleFontWeight:t.fontWeights.normal,titleFontStyle:"normal",titleColor:pa(t),titlePadding:5,labelPadding:Qe(t.spacing.lg),columnPadding:Qe(t.spacing.sm),rowPadding:Qe(t.spacing.twoXS),padding:7,symbolStrokeWidth:Qe(t.spacing.twoXS)},range:{category:nP(t),diverging:tP(t),ramp:hE(t),heatmap:hE(t)},view:{columns:1,strokeWidth:0,stroke:"transparent",continuousHeight:Qe(t.sizes.defaultChartHeight),continuousWidth:Qe(t.sizes.defaultChartWidth)},concat:{columns:1},facet:{columns:1},mark:{tooltip:!0,color:eP(t)},bar:{binSpacing:Qe(t.spacing.twoXS),discreteBandSize:{band:.85}},axisDiscrete:{grid:!1},axisXPoint:{grid:!1},axisTemporal:{grid:!1},axisXBand:{grid:!1}};return e?gP({},n,e,(i,r)=>Array.isArray(r)?r:void 0):n}function YP(e,t){const{colors:n,fontSizes:i,genericFonts:r}=t,o={labelFont:r.bodyFont,titleFont:r.bodyFont,labelFontSize:Qe(i.twoSm),titleFontSize:Qe(i.twoSm)},s={background:n.bgColor,axis:{labelColor:n.bodyText,titleColor:n.bodyText,gridColor:Dd(t),...o},legend:{labelColor:n.bodyText,titleColor:n.bodyText,...o},title:{color:n.bodyText,subtitleColor:n.bodyText,...o},header:{labelColor:n.bodyText,titleColor:n.bodyText,...o},view:{stroke:Dd(t),continuousHeight:Qe(t.sizes.defaultChartHeight),continuousWidth:Qe(t.sizes.defaultChartWidth)},mark:{tooltip:!0}};return e?iP({},s,e):s}const KP=20;function JP(e){"params"in e&&"encoding"in e&&e.params.forEach(t=>{"select"in t&&(["interval","point"].includes(t.select)&&(t.select={type:t.select}),"type"in t.select&&t.select.type==="point"&&!("encodings"in t.select)&&Gy(t.select.encodings)&&(t.select.encodings=Object.keys(e.encoding)))})}const QP=(e,t,n,i,r,o,s,a)=>{var l,c;const u=JSON.parse(e);if(n==="streamlit"?u.config=SE(u.config,r):((c=(l=u.usermeta)==null?void 0:l.embedOptions)==null?void 0:c.theme)==="streamlit"?(u.config=SE(u.config,r),u.usermeta.embedOptions.theme=void 0):u.config=YP(u.config,r),o?(u.width=s,u.height=a,"vconcat"in u&&u.vconcat.forEach(f=>{f.width=s})):t&&(u.width=s,"vconcat"in u&&u.vconcat.forEach(f=>{f.width=s})),u.padding||(u.padding={}),Gy(u.padding.bottom)&&(u.padding.bottom=KP),u.datasets)throw new Error("Datasets should not be passed as part of the spec");return i.length>0&&JP(u),u},ZP=e=>{const t=rP(),{expanded:n,width:i,height:r}=Rk(Nk),{id:o,formId:s,spec:a,data:u,datasets:l,useContainerWidth:c,vegaLiteTheme:f,selectionMode:d}=e,h=wt.useMemo(()=>d,[JSON.stringify(d)]),g=wt.useMemo(()=>QP(a,c,f,h,t,n,i,r),[a,c,f,h,t,n,i,r]);return{id:o,formId:s,vegaLiteTheme:f,spec:g,selectionMode:h,data:u,datasets:l,useContainerWidth:c}};function _n(e,t,n){return e.fields=t||[],e.fname=n,e}function Je(e){return e==null?null:e.fname}function jt(e){return e==null?null:e.fields}function zk(e){return e.length===1?ez(e[0]):tz(e)}const ez=e=>function(t){return t[e]},tz=e=>{const t=e.length;return function(n){for(let i=0;i<t;++i)n=n[e[i]];return n}};function N(e){throw Error(e)}function ur(e){const t=[],n=e.length;let i=null,r=0,o="",s,a,u;e=e+"";function l(){t.push(o+e.substring(s,a)),o="",s=a+1}for(s=a=0;a<n;++a)if(u=e[a],u==="\\")o+=e.substring(s,a++),s=a;else if(u===i)l(),i=null,r=-1;else{if(i)continue;s===r&&u==='"'||s===r&&u==="'"?(s=a+1,i=u):u==="."&&!r?a>s?l():s=a+1:u==="["?(a>s&&l(),r=s=a+1):u==="]"&&(r||N("Access path missing open bracket: "+e),r>0&&l(),r=0,s=a+1)}return r&&N("Access path missing closing bracket: "+e),i&&N("Access path missing closing quote: "+e),a>s&&(a++,l()),t}function Jn(e,t,n){const i=ur(e);return e=i.length===1?i[0]:e,_n((n&&n.get||zk)(i),[e],t||e)}const Dc=Jn("id"),Gt=_n(e=>e,[],"identity"),ho=_n(()=>0,[],"zero"),Cu=_n(()=>1,[],"one"),Ln=_n(()=>!0,[],"true"),ro=_n(()=>!1,[],"false");function nz(e,t,n){const i=[t].concat([].slice.call(n));console[e].apply(console,i)}const Ik=0,Qy=1,Zy=2,Bk=3,Uk=4;function eb(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nz,i=e||Ik;return{level(r){return arguments.length?(i=+r,this):i},error(){return i>=Qy&&n(t||"error","ERROR",arguments),this},warn(){return i>=Zy&&n(t||"warn","WARN",arguments),this},info(){return i>=Bk&&n(t||"log","INFO",arguments),this},debug(){return i>=Uk&&n(t||"log","DEBUG",arguments),this}}}var L=Array.isArray;function X(e){return e===Object(e)}const _E=e=>e!=="__proto__";function Fu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((i,r)=>{for(const o in r)if(o==="signals")i.signals=iz(i.signals,r.signals);else{const s=o==="legend"?{layout:1}:o==="style"?!0:null;Tu(i,o,r[o],s)}return i},{})}function Tu(e,t,n,i){if(!_E(t))return;let r,o;if(X(n)&&!L(n)){o=X(e[t])?e[t]:e[t]={};for(r in n)i&&(i===!0||i[r])?Tu(o,r,n[r]):_E(r)&&(o[r]=n[r])}else e[t]=n}function iz(e,t){if(e==null)return t;const n={},i=[];function r(o){n[o.name]||(n[o.name]=1,i.push(o))}return t.forEach(r),e.forEach(r),i}function xe(e){return e[e.length-1]}function Bt(e){return e==null||e===""?null:+e}const jk=e=>t=>e*Math.exp(t),Wk=e=>t=>Math.log(e*t),qk=e=>t=>Math.sign(t)*Math.log1p(Math.abs(t/e)),Hk=e=>t=>Math.sign(t)*Math.expm1(Math.abs(t))*e,Nd=e=>t=>t<0?-Math.pow(-t,e):Math.pow(t,e);function dg(e,t,n,i){const r=n(e[0]),o=n(xe(e)),s=(o-r)*t;return[i(r-s),i(o-s)]}function Gk(e,t){return dg(e,t,Bt,Gt)}function Vk(e,t){var n=Math.sign(e[0]);return dg(e,t,Wk(n),jk(n))}function Xk(e,t,n){return dg(e,t,Nd(n),Nd(1/n))}function Yk(e,t,n){return dg(e,t,qk(n),Hk(n))}function hg(e,t,n,i,r){const o=i(e[0]),s=i(xe(e)),a=t!=null?i(t):(o+s)/2;return[r(a+(o-a)*n),r(a+(s-a)*n)]}function tb(e,t,n){return hg(e,t,n,Bt,Gt)}function nb(e,t,n){const i=Math.sign(e[0]);return hg(e,t,n,Wk(i),jk(i))}function Ld(e,t,n,i){return hg(e,t,n,Nd(i),Nd(1/i))}function ib(e,t,n,i){return hg(e,t,n,qk(i),Hk(i))}function Kk(e){return 1+~~(new Date(e).getMonth()/3)}function Jk(e){return 1+~~(new Date(e).getUTCMonth()/3)}function Y(e){return e!=null?L(e)?e:[e]:[]}function Qk(e,t,n){let i=e[0],r=e[1],o;return r<i&&(o=r,r=i,i=o),o=r-i,o>=n-t?[t,n]:[i=Math.min(Math.max(i,t),n-o),i+o]}function fe(e){return typeof e=="function"}const rz="descending";function rb(e,t,n){n=n||{},t=Y(t)||[];const i=[],r=[],o={},s=n.comparator||oz;return Y(e).forEach((a,u)=>{a!=null&&(i.push(t[u]===rz?-1:1),r.push(a=fe(a)?a:Jn(a,null,n)),(jt(a)||[]).forEach(l=>o[l]=1))}),r.length===0?null:_n(s(r,i),Object.keys(o))}const gg=(e,t)=>(e<t||e==null)&&t!=null?-1:(e>t||t==null)&&e!=null?1:(t=t instanceof Date?+t:t,(e=e instanceof Date?+e:e)!==e&&t===t?-1:t!==t&&e===e?1:0),oz=(e,t)=>e.length===1?sz(e[0],t[0]):az(e,t,e.length),sz=(e,t)=>function(n,i){return gg(e(n),e(i))*t},az=(e,t,n)=>(t.push(0),function(i,r){let o,s=0,a=-1;for(;s===0&&++a<n;)o=e[a],s=gg(o(i),o(r));return s*t[a]});function Vt(e){return fe(e)?e:()=>e}function ob(e,t){let n;return i=>{n&&clearTimeout(n),n=setTimeout(()=>(t(i),n=null),e)}}function ce(e){for(let t,n,i=1,r=arguments.length;i<r;++i){t=arguments[i];for(n in t)e[n]=t[n]}return e}function Zi(e,t){let n=0,i,r,o,s;if(e&&(i=e.length))if(t==null){for(r=e[n];n<i&&(r==null||r!==r);r=e[++n]);for(o=s=r;n<i;++n)r=e[n],r!=null&&(r<o&&(o=r),r>s&&(s=r))}else{for(r=t(e[n]);n<i&&(r==null||r!==r);r=t(e[++n]));for(o=s=r;n<i;++n)r=t(e[n]),r!=null&&(r<o&&(o=r),r>s&&(s=r))}return[o,s]}function Zk(e,t){const n=e.length;let i=-1,r,o,s,a,u;if(t==null){for(;++i<n;)if(o=e[i],o!=null&&o>=o){r=s=o;break}if(i===n)return[-1,-1];for(a=u=i;++i<n;)o=e[i],o!=null&&(r>o&&(r=o,a=i),s<o&&(s=o,u=i))}else{for(;++i<n;)if(o=t(e[i],i,e),o!=null&&o>=o){r=s=o;break}if(i===n)return[-1,-1];for(a=u=i;++i<n;)o=t(e[i],i,e),o!=null&&(r>o&&(r=o,a=i),s<o&&(s=o,u=i))}return[a,u]}const uz=Object.prototype.hasOwnProperty;function J(e,t){return uz.call(e,t)}const _f={};function Mu(e){let t={},n;function i(o){return J(t,o)&&t[o]!==_f}const r={size:0,empty:0,object:t,has:i,get(o){return i(o)?t[o]:void 0},set(o,s){return i(o)||(++r.size,t[o]===_f&&--r.empty),t[o]=s,this},delete(o){return i(o)&&(--r.size,++r.empty,t[o]=_f),this},clear(){r.size=r.empty=0,r.object=t={}},test(o){return arguments.length?(n=o,r):n},clean(){const o={};let s=0;for(const a in t){const u=t[a];u!==_f&&(!n||!n(u))&&(o[a]=u,++s)}r.size=s,r.empty=0,r.object=t=o}};return e&&Object.keys(e).forEach(o=>{r.set(o,e[o])}),r}function eC(e,t,n,i,r,o){if(!n&&n!==0)return o;const s=+n;let a=e[0],u=xe(e),l;u<a&&(l=a,a=u,u=l),l=Math.abs(t-a);const c=Math.abs(u-t);return l<c&&l<=s?i:c<=s?r:o}function G(e,t,n){const i=e.prototype=Object.create(t.prototype);return Object.defineProperty(i,"constructor",{value:e,writable:!0,enumerable:!0,configurable:!0}),ce(i,n)}function Ma(e,t,n,i){let r=t[0],o=t[t.length-1],s;return r>o&&(s=r,r=o,o=s),n=n===void 0||n,i=i===void 0||i,(n?r<=e:r<e)&&(i?e<=o:e<o)}function Ho(e){return typeof e=="boolean"}function _o(e){return Object.prototype.toString.call(e)==="[object Date]"}function tC(e){return e&&fe(e[Symbol.iterator])}function $e(e){return typeof e=="number"}function nC(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function K(e){return typeof e=="string"}function sb(e,t,n){e&&(e=t?Y(e).map(a=>a.replace(/\\(.)/g,"$1")):Y(e));const i=e&&e.length,r=n&&n.get||zk,o=a=>r(t?[a]:ur(a));let s;if(!i)s=function(){return""};else if(i===1){const a=o(e[0]);s=function(u){return""+a(u)}}else{const a=e.map(o);s=function(u){let l=""+a[0](u),c=0;for(;++c<i;)l+="|"+a[c](u);return l}}return _n(s,e,"key")}function iC(e,t){const n=e[0],i=xe(e),r=+t;return r?r===1?i:n+r*(i-n):n}const lz=1e4;function rC(e){e=+e||lz;let t,n,i;const r=()=>{t={},n={},i=0},o=(s,a)=>(++i>e&&(n=t,t={},i=1),t[s]=a);return r(),{clear:r,has:s=>J(t,s)||J(n,s),get:s=>J(t,s)?t[s]:J(n,s)?o(s,n[s]):void 0,set:(s,a)=>J(t,s)?t[s]=a:o(s,a)}}function oC(e,t,n,i){const r=t.length,o=n.length;if(!o)return t;if(!r)return n;const s=i||new t.constructor(r+o);let a=0,u=0,l=0;for(;a<r&&u<o;++l)s[l]=e(t[a],n[u])>0?n[u++]:t[a++];for(;a<r;++a,++l)s[l]=t[a];for(;u<o;++u,++l)s[l]=n[u];return s}function El(e,t){let n="";for(;--t>=0;)n+=e;return n}function sC(e,t,n,i){const r=n||" ",o=e+"",s=t-o.length;return s<=0?o:i==="left"?El(r,s)+o:i==="center"?El(r,~~(s/2))+o+El(r,Math.ceil(s/2)):o+El(r,s)}function Rc(e){return e&&xe(e)-e[0]||0}function H(e){return L(e)?"["+e.map(H)+"]":X(e)||K(e)?JSON.stringify(e).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):e}function ab(e){return e==null||e===""?null:!e||e==="false"||e==="0"?!1:!!e}const cz=e=>$e(e)||_o(e)?e:Date.parse(e);function ub(e,t){return t=t||cz,e==null||e===""?null:t(e)}function lb(e){return e==null||e===""?null:e+""}function vi(e){const t={},n=e.length;for(let i=0;i<n;++i)t[e[i]]=!0;return t}function aC(e,t,n,i){const r=i??"…",o=e+"",s=o.length,a=Math.max(0,t-r.length);return s<=t?o:n==="left"?r+o.slice(s-a):n==="center"?o.slice(0,Math.ceil(a/2))+r+o.slice(s-~~(a/2)):o.slice(0,a)+r}function ao(e,t,n){if(e)if(t){const i=e.length;for(let r=0;r<i;++r){const o=t(e[r]);o&&n(o,r,e)}}else e.forEach(n)}var $E={},hm={},gm=34,Qu=10,pm=13;function uC(e){return new Function("d","return {"+e.map(function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'}).join(",")+"}")}function fz(e,t){var n=uC(e);return function(i,r){return t(n(i),r,e)}}function AE(e){var t=Object.create(null),n=[];return e.forEach(function(i){for(var r in i)r in t||n.push(t[r]=r)}),n}function dn(e,t){var n=e+"",i=n.length;return i<t?new Array(t-i+1).join(0)+n:n}function dz(e){return e<0?"-"+dn(-e,6):e>9999?"+"+dn(e,6):dn(e,4)}function hz(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),i=e.getUTCSeconds(),r=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":dz(e.getUTCFullYear())+"-"+dn(e.getUTCMonth()+1,2)+"-"+dn(e.getUTCDate(),2)+(r?"T"+dn(t,2)+":"+dn(n,2)+":"+dn(i,2)+"."+dn(r,3)+"Z":i?"T"+dn(t,2)+":"+dn(n,2)+":"+dn(i,2)+"Z":n||t?"T"+dn(t,2)+":"+dn(n,2)+"Z":"")}function gz(e){var t=new RegExp('["'+e+`
2
2
  \r]`),n=e.charCodeAt(0);function i(f,d){var h,g,p=r(f,function(m,y){if(h)return h(m,y-1);g=m,h=d?fz(m,d):uC(m)});return p.columns=g||[],p}function r(f,d){var h=[],g=f.length,p=0,m=0,y,b=g<=0,v=!1;f.charCodeAt(g-1)===Qu&&--g,f.charCodeAt(g-1)===pm&&--g;function x(){if(b)return hm;if(v)return v=!1,$E;var S,w=p,_;if(f.charCodeAt(w)===gm){for(;p++<g&&f.charCodeAt(p)!==gm||f.charCodeAt(++p)===gm;);return(S=p)>=g?b=!0:(_=f.charCodeAt(p++))===Qu?v=!0:_===pm&&(v=!0,f.charCodeAt(p)===Qu&&++p),f.slice(w+1,S-1).replace(/""/g,'"')}for(;p<g;){if((_=f.charCodeAt(S=p++))===Qu)v=!0;else if(_===pm)v=!0,f.charCodeAt(p)===Qu&&++p;else if(_!==n)continue;return f.slice(w,S)}return b=!0,f.slice(w,g)}for(;(y=x())!==hm;){for(var E=[];y!==$E&&y!==hm;)E.push(y),y=x();d&&(E=d(E,m++))==null||h.push(E)}return h}function o(f,d){return f.map(function(h){return d.map(function(g){return c(h[g])}).join(e)})}function s(f,d){return d==null&&(d=AE(f)),[d.map(c).join(e)].concat(o(f,d)).join(`
3
3
  `)}function a(f,d){return d==null&&(d=AE(f)),o(f,d).join(`
4
4
  `)}function u(f){return f.map(l).join(`
@@ -1,4 +1,4 @@
1
- import{bq as x,bD as ae,bE as T,r as g,bF as w,y as le,D as ce,j as S,C as se,bm as ue,ay as de,bu as fe,bn as ge,b6 as he,bG as be,at as me,bH as ve,bI as pe}from"./index.DeuQX1T6.js";import{a as ye}from"./useBasicWidgetState.e9cw5rKa.js";import"./FormClearHelper.Dha_cfuU.js";var F=Object.freeze({default:"default",toggle:"toggle",toggle_round:"toggle"}),$e=Object.freeze({top:"top",right:"right",bottom:"bottom",left:"left"});function q(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function P(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?q(Object(o),!0).forEach(function(r){G(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):q(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function G(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ke(e){var t=e.$disabled,o=e.$checked,r=e.$error,i=e.$isIndeterminate,l=e.$theme,n=e.$isFocusVisible,c=l.colors;return t?c.tickFillDisabled:o||i?"transparent":r?c.borderNegative:n?c.borderSelected:c.tickBorder}function Te(e){var t=e.$labelPlacement,o=t===void 0?"":t,r=e.$theme,i=r.sizing,l=i.scale300,n;switch(o){case"top":n="Bottom";break;case"bottom":n="Top";break;case"left":n="Right";break;default:case"right":n="Left";break}return r.direction==="rtl"&&n==="Left"?n="Right":r.direction==="rtl"&&n==="Right"&&(n="Left"),G({},"padding".concat(n),l)}function we(e){var t=e.$disabled,o=e.$checked,r=e.$isIndeterminate,i=e.$error,l=e.$isHovered,n=e.$isActive,c=e.$theme,a=c.colors;return t?o||r?a.tickFillDisabled:a.tickFill:i&&(r||o)?n?a.tickFillErrorSelectedHoverActive:l?a.tickFillErrorSelectedHover:a.tickFillErrorSelected:i?n?a.tickFillErrorHoverActive:l?a.tickFillErrorHover:a.tickFillError:r||o?n?a.tickFillSelectedHoverActive:l?a.tickFillSelectedHover:a.tickFillSelected:n?a.tickFillActive:l?a.tickFillHover:a.tickFill}function xe(e){var t=e.$disabled,o=e.$theme,r=o.colors;return t?r.contentSecondary:r.contentPrimary}var M=x("label",function(e){var t=e.$disabled,o=e.$labelPlacement;return{flexDirection:o==="top"||o==="bottom"?"column":"row",display:"flex",alignItems:o==="top"||o==="bottom"?"center":"flex-start",cursor:t?"not-allowed":"pointer",userSelect:"none"}});M.displayName="Root";M.displayName="Root";var _=x("span",function(e){var t=e.$checked,o=e.$disabled,r=e.$error,i=e.$isIndeterminate,l=e.$theme,n=e.$isFocusVisible,c=l.sizing,a=l.animation,s=o?l.colors.tickMarkFillDisabled:r?l.colors.tickMarkFillError:l.colors.tickMarkFill,$=encodeURIComponent(`
1
+ import{bq as x,bD as ae,bE as T,r as g,bF as w,y as le,D as ce,j as S,C as se,bm as ue,ay as de,bu as fe,bn as ge,b6 as he,bG as be,at as me,bH as ve,bI as pe}from"./index.bLZVjplR.js";import{a as ye}from"./useBasicWidgetState.DNqxSbNL.js";import"./FormClearHelper.Doa6Lh7Q.js";var F=Object.freeze({default:"default",toggle:"toggle",toggle_round:"toggle"}),$e=Object.freeze({top:"top",right:"right",bottom:"bottom",left:"left"});function q(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function P(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?q(Object(o),!0).forEach(function(r){G(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):q(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function G(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ke(e){var t=e.$disabled,o=e.$checked,r=e.$error,i=e.$isIndeterminate,l=e.$theme,n=e.$isFocusVisible,c=l.colors;return t?c.tickFillDisabled:o||i?"transparent":r?c.borderNegative:n?c.borderSelected:c.tickBorder}function Te(e){var t=e.$labelPlacement,o=t===void 0?"":t,r=e.$theme,i=r.sizing,l=i.scale300,n;switch(o){case"top":n="Bottom";break;case"bottom":n="Top";break;case"left":n="Right";break;default:case"right":n="Left";break}return r.direction==="rtl"&&n==="Left"?n="Right":r.direction==="rtl"&&n==="Right"&&(n="Left"),G({},"padding".concat(n),l)}function we(e){var t=e.$disabled,o=e.$checked,r=e.$isIndeterminate,i=e.$error,l=e.$isHovered,n=e.$isActive,c=e.$theme,a=c.colors;return t?o||r?a.tickFillDisabled:a.tickFill:i&&(r||o)?n?a.tickFillErrorSelectedHoverActive:l?a.tickFillErrorSelectedHover:a.tickFillErrorSelected:i?n?a.tickFillErrorHoverActive:l?a.tickFillErrorHover:a.tickFillError:r||o?n?a.tickFillSelectedHoverActive:l?a.tickFillSelectedHover:a.tickFillSelected:n?a.tickFillActive:l?a.tickFillHover:a.tickFill}function xe(e){var t=e.$disabled,o=e.$theme,r=o.colors;return t?r.contentSecondary:r.contentPrimary}var M=x("label",function(e){var t=e.$disabled,o=e.$labelPlacement;return{flexDirection:o==="top"||o==="bottom"?"column":"row",display:"flex",alignItems:o==="top"||o==="bottom"?"center":"flex-start",cursor:t?"not-allowed":"pointer",userSelect:"none"}});M.displayName="Root";M.displayName="Root";var _=x("span",function(e){var t=e.$checked,o=e.$disabled,r=e.$error,i=e.$isIndeterminate,l=e.$theme,n=e.$isFocusVisible,c=l.sizing,a=l.animation,s=o?l.colors.tickMarkFillDisabled:r?l.colors.tickMarkFillError:l.colors.tickMarkFill,$=encodeURIComponent(`
2
2
  <svg width="14" height="4" viewBox="0 0 14 4" fill="none" xmlns="http://www.w3.org/2000/svg">
3
3
  <path d="M14 0.5H0V3.5H14V0.5Z" fill="`.concat(s,`"/>
4
4
  </svg>
@@ -1 +1 @@
1
- import{r as c,b2 as s,j as e,b3 as B,bk as f,b1 as h,b4 as m}from"./index.DeuQX1T6.js";function p(n){const{disabled:o,element:t,widgetMgr:l,width:a,fragmentId:r}=n,d={width:a};let i=s.SECONDARY;t.type==="primary"?i=s.PRIMARY:t.type==="tertiary"&&(i=s.TERTIARY);const u=t.help?a:!0;return e("div",{className:"stButton","data-testid":"stButton",style:d,children:e(B,{help:t.help,children:e(f,{kind:i,size:h.SMALL,disabled:o,fluidWidth:t.useContainerWidth?u:!1,onClick:()=>l.setTriggerValue(t,{fromUi:!0},r),children:e(m,{icon:t.icon,label:t.label})})})})}const y=c.memo(p);export{y as default};
1
+ import{r as c,b2 as s,j as e,b3 as B,bk as f,b1 as h,b4 as m}from"./index.bLZVjplR.js";function p(n){const{disabled:o,element:t,widgetMgr:l,width:a,fragmentId:r}=n,d={width:a};let i=s.SECONDARY;t.type==="primary"?i=s.PRIMARY:t.type==="tertiary"&&(i=s.TERTIARY);const u=t.help?a:!0;return e("div",{className:"stButton","data-testid":"stButton",style:d,children:e(B,{help:t.help,children:e(f,{kind:i,size:h.SMALL,disabled:o,fluidWidth:t.useContainerWidth?u:!1,onClick:()=>l.setTriggerValue(t,{fromUi:!0},r),children:e(m,{icon:t.icon,label:t.label})})})})}const y=c.memo(p);export{y as default};
@@ -1 +1 @@
1
- import{n as c,b0 as v,at as y,b1 as l,b2 as t,j as s,r as C,b3 as k,b4 as B}from"./index.DeuQX1T6.js";function S(o,i){switch(o){case l.XSMALL:return{padding:`${i.spacing.twoXS} ${i.spacing.sm}`,fontSize:i.fontSizes.sm};case l.SMALL:return{padding:`${i.spacing.twoXS} ${i.spacing.md}`};case l.LARGE:return{padding:`${i.spacing.md} ${i.spacing.md}`};default:return{padding:`${i.spacing.xs} ${i.spacing.md}`}}}const g=c("a",{target:"efj1jhq0"})(({fluidWidth:o,size:i,theme:r})=>{const a=typeof o=="number"?`${o}px`:"100%";return{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:r.fontWeights.normal,padding:`${r.spacing.xs} ${r.spacing.md}`,borderRadius:r.radii.default,minHeight:r.sizes.minElementHeight,margin:0,lineHeight:r.lineHeights.base,color:r.colors.primary,textDecoration:"none",width:o?a:"auto",userSelect:"none","&:visited":{color:r.colors.primary},"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${y(r.colors.primary,.5)}`},"&:hover":{textDecoration:"none"},"&:active":{textDecoration:"none"},...S(i,r)}}),x=c(g,{target:"efj1jhq1"})(({theme:o})=>({backgroundColor:o.colors.primary,color:o.colors.white,border:`${o.sizes.borderWidth} solid ${o.colors.primary}`,"&:hover":{backgroundColor:v(o.colors.primary,.05),color:o.colors.white},"&:active":{backgroundColor:"transparent",color:o.colors.primary},"&:visited:not(:active)":{color:o.colors.white},"&[disabled], &[disabled]:hover, &[disabled]:active, &[disabled]:visited":{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}})),$=c(g,{target:"efj1jhq2"})(({theme:o})=>({backgroundColor:o.colors.lightenedBg05,color:o.colors.bodyText,border:`${o.sizes.borderWidth} solid ${o.colors.borderColor}`,"&:visited":{color:o.colors.bodyText},"&:hover":{borderColor:o.colors.primary,color:o.colors.primary},"&:active":{color:o.colors.white,borderColor:o.colors.primary,backgroundColor:o.colors.primary},"&:focus:not(:active)":{borderColor:o.colors.primary,color:o.colors.primary},"&[disabled], &[disabled]:hover, &[disabled]:active":{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}})),L=c(g,{target:"efj1jhq3"})(({theme:o})=>({padding:o.spacing.none,backgroundColor:o.colors.transparent,color:o.colors.bodyText,border:"none","&:visited":{color:o.colors.bodyText},"&:hover":{color:o.colors.primary},"&:active":{color:o.colors.primary},"&:focus":{outline:"none"},"&:focus-visible":{color:o.colors.primary,boxShadow:`0 0 0 0.2rem ${y(o.colors.primary,.5)}`},"&[disabled], &[disabled]:hover, &[disabled]:active":{backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}}));function w({kind:o,size:i,disabled:r,fluidWidth:a,children:d,autoFocus:n,href:e,rel:u,target:b,onClick:f}){let p=x;return o===t.SECONDARY?p=$:o===t.TERTIARY&&(p=L),s(p,{kind:o,size:i||l.MEDIUM,fluidWidth:a||!1,disabled:r||!1,autoFocus:n||!1,href:e,target:b,rel:u,onClick:f,tabIndex:r?-1:0,"data-testid":`stBaseLinkButton-${o}`,children:d})}function T(o){const{disabled:i,element:r,width:a}=o,d={width:a};let n=t.SECONDARY;r.type==="primary"?n=t.PRIMARY:r.type==="tertiary"&&(n=t.TERTIARY);const e=r.help?a:!0,u=b=>{o.disabled&&b.preventDefault()};return s("div",{className:"stLinkButton","data-testid":"stLinkButton",style:d,children:s(k,{help:r.help,children:s(w,{kind:n,size:l.SMALL,disabled:i,onClick:u,fluidWidth:r.useContainerWidth?e:!1,href:r.url,target:"_blank",rel:"noreferrer","aria-disabled":i,children:s(B,{icon:r.icon,label:r.label})})})})}const z=C.memo(T);export{z as default};
1
+ import{n as c,b0 as v,at as y,b1 as l,b2 as t,j as s,r as C,b3 as k,b4 as B}from"./index.bLZVjplR.js";function S(o,i){switch(o){case l.XSMALL:return{padding:`${i.spacing.twoXS} ${i.spacing.sm}`,fontSize:i.fontSizes.sm};case l.SMALL:return{padding:`${i.spacing.twoXS} ${i.spacing.md}`};case l.LARGE:return{padding:`${i.spacing.md} ${i.spacing.md}`};default:return{padding:`${i.spacing.xs} ${i.spacing.md}`}}}const g=c("a",{target:"efj1jhq0"})(({fluidWidth:o,size:i,theme:r})=>{const a=typeof o=="number"?`${o}px`:"100%";return{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:r.fontWeights.normal,padding:`${r.spacing.xs} ${r.spacing.md}`,borderRadius:r.radii.default,minHeight:r.sizes.minElementHeight,margin:0,lineHeight:r.lineHeights.base,color:r.colors.primary,textDecoration:"none",width:o?a:"auto",userSelect:"none","&:visited":{color:r.colors.primary},"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${y(r.colors.primary,.5)}`},"&:hover":{textDecoration:"none"},"&:active":{textDecoration:"none"},...S(i,r)}}),x=c(g,{target:"efj1jhq1"})(({theme:o})=>({backgroundColor:o.colors.primary,color:o.colors.white,border:`${o.sizes.borderWidth} solid ${o.colors.primary}`,"&:hover":{backgroundColor:v(o.colors.primary,.05),color:o.colors.white},"&:active":{backgroundColor:"transparent",color:o.colors.primary},"&:visited:not(:active)":{color:o.colors.white},"&[disabled], &[disabled]:hover, &[disabled]:active, &[disabled]:visited":{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}})),$=c(g,{target:"efj1jhq2"})(({theme:o})=>({backgroundColor:o.colors.lightenedBg05,color:o.colors.bodyText,border:`${o.sizes.borderWidth} solid ${o.colors.borderColor}`,"&:visited":{color:o.colors.bodyText},"&:hover":{borderColor:o.colors.primary,color:o.colors.primary},"&:active":{color:o.colors.white,borderColor:o.colors.primary,backgroundColor:o.colors.primary},"&:focus:not(:active)":{borderColor:o.colors.primary,color:o.colors.primary},"&[disabled], &[disabled]:hover, &[disabled]:active":{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}})),L=c(g,{target:"efj1jhq3"})(({theme:o})=>({padding:o.spacing.none,backgroundColor:o.colors.transparent,color:o.colors.bodyText,border:"none","&:visited":{color:o.colors.bodyText},"&:hover":{color:o.colors.primary},"&:active":{color:o.colors.primary},"&:focus":{outline:"none"},"&:focus-visible":{color:o.colors.primary,boxShadow:`0 0 0 0.2rem ${y(o.colors.primary,.5)}`},"&[disabled], &[disabled]:hover, &[disabled]:active":{backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}}));function w({kind:o,size:i,disabled:r,fluidWidth:a,children:d,autoFocus:n,href:e,rel:u,target:b,onClick:f}){let p=x;return o===t.SECONDARY?p=$:o===t.TERTIARY&&(p=L),s(p,{kind:o,size:i||l.MEDIUM,fluidWidth:a||!1,disabled:r||!1,autoFocus:n||!1,href:e,target:b,rel:u,onClick:f,tabIndex:r?-1:0,"data-testid":`stBaseLinkButton-${o}`,children:d})}function T(o){const{disabled:i,element:r,width:a}=o,d={width:a};let n=t.SECONDARY;r.type==="primary"?n=t.PRIMARY:r.type==="tertiary"&&(n=t.TERTIARY);const e=r.help?a:!0,u=b=>{o.disabled&&b.preventDefault()};return s("div",{className:"stLinkButton","data-testid":"stLinkButton",style:d,children:s(k,{help:r.help,children:s(w,{kind:n,size:l.SMALL,disabled:i,onClick:u,fluidWidth:r.useContainerWidth?e:!1,href:r.url,target:"_blank",rel:"noreferrer","aria-disabled":i,children:s(B,{icon:r.icon,label:r.label})})})})}const z=C.memo(T);export{z as default};
@@ -1 +1 @@
1
- import{n as o,bh as S,i as x,r as u,R as d,j as r,C as f,b$ as g,ay as $}from"./index.DeuQX1T6.js";const m=o(S,{shouldForwardProp:x,target:"e1xotax90"})(({theme:e})=>({fontSize:e.fontSizes.sm,width:e.sizes.spinnerSize,height:e.sizes.spinnerSize,borderWidth:e.sizes.spinnerThickness,justifyContents:"center",padding:e.spacing.none,margin:e.spacing.none,borderColor:e.colors.borderColor,borderTopColor:e.colors.secondary,flexGrow:0,flexShrink:0})),T=o("div",{target:"e1xotax91"})(({theme:e,width:t,cache:n})=>({width:t,...n?{paddingBottom:e.spacing.lg,background:`linear-gradient(to bottom, ${e.colors.bgColor} 0%, ${e.colors.bgColor} 80%, transparent 100%)`}:null})),h=o("div",{target:"e1xotax92"})(({theme:e})=>({opacity:.6,fontSize:e.fontSizes.sm})),y=o("div",{target:"e1xotax93"})(({theme:e})=>({display:"flex",gap:e.spacing.sm,alignItems:"center",width:"100%"})),b=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),s=e%60;if(t===0&&n===0)return`(${s.toFixed(1)} seconds)`;if(t===0){const l=`${n} minute${n===1?"":"s"}`,p=s===0?"":`, ${s.toFixed(1)} seconds`;return`(${l}${p})`}const i=`${t} hour${t===1?"":"s"}`,a=n===0?"":`, ${n} minute${n===1?"":"s"}`,c=s===0?"":`, ${s.toFixed(1)} seconds`;return`(${i}${a}${c})`};function z({width:e,element:t}){const{cache:n,showTime:s}=t,[i,a]=d.useState(0);return d.useEffect(()=>{if(!s)return;const c=setInterval(()=>{a(l=>l+.1)},100);return()=>clearInterval(c)},[s]),r(T,{className:g({stSpinner:!0,stCacheSpinner:n}),"data-testid":"stSpinner",width:e,cache:n,children:f(y,{children:[r(m,{}),r($,{source:t.text,allowHTML:!1}),s&&r(h,{children:b(i)})]})})}const w=u.memo(z);export{w as default};
1
+ import{n as o,bh as S,i as x,r as u,R as d,j as r,C as f,b$ as g,ay as $}from"./index.bLZVjplR.js";const m=o(S,{shouldForwardProp:x,target:"e1xotax90"})(({theme:e})=>({fontSize:e.fontSizes.sm,width:e.sizes.spinnerSize,height:e.sizes.spinnerSize,borderWidth:e.sizes.spinnerThickness,justifyContents:"center",padding:e.spacing.none,margin:e.spacing.none,borderColor:e.colors.borderColor,borderTopColor:e.colors.secondary,flexGrow:0,flexShrink:0})),T=o("div",{target:"e1xotax91"})(({theme:e,width:t,cache:n})=>({width:t,...n?{paddingBottom:e.spacing.lg,background:`linear-gradient(to bottom, ${e.colors.bgColor} 0%, ${e.colors.bgColor} 80%, transparent 100%)`}:null})),h=o("div",{target:"e1xotax92"})(({theme:e})=>({opacity:.6,fontSize:e.fontSizes.sm})),y=o("div",{target:"e1xotax93"})(({theme:e})=>({display:"flex",gap:e.spacing.sm,alignItems:"center",width:"100%"})),b=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),s=e%60;if(t===0&&n===0)return`(${s.toFixed(1)} seconds)`;if(t===0){const l=`${n} minute${n===1?"":"s"}`,p=s===0?"":`, ${s.toFixed(1)} seconds`;return`(${l}${p})`}const i=`${t} hour${t===1?"":"s"}`,a=n===0?"":`, ${n} minute${n===1?"":"s"}`,c=s===0?"":`, ${s.toFixed(1)} seconds`;return`(${i}${a}${c})`};function z({width:e,element:t}){const{cache:n,showTime:s}=t,[i,a]=d.useState(0);return d.useEffect(()=>{if(!s)return;const c=setInterval(()=>{a(l=>l+.1)},100);return()=>clearInterval(c)},[s]),r(T,{className:g({stSpinner:!0,stCacheSpinner:n}),"data-testid":"stSpinner",width:e,cache:n,children:f(y,{children:[r(m,{}),r($,{source:t.text,allowHTML:!1}),s&&r(h,{children:b(i)})]})})}const w=u.memo(z);export{w as default};
@@ -1 +1 @@
1
- import{r as s,y as U,cl as T,C as k,j as l,bm as A,bz as L,bn as P,b6 as B,bo as D}from"./index.DeuQX1T6.js";import{u as j}from"./uniqueId.B4ugkryR.js";import{u as _,a as K,b as O}from"./useOnInputChange.CHDPgswc.js";import{I as $}from"./InputInstructions.C_m6JNSV.js";import{a as q}from"./useBasicWidgetState.e9cw5rKa.js";import{T as G}from"./textarea.YeGMY3Ts.js";import"./inputUtils.CQWz5UKz.js";import"./FormClearHelper.Dha_cfuU.js";import"./base-input.B_U9Mij-.js";const W=(a,t)=>a.getStringValue(t)??t.default??null,N=a=>a.default??null,w=a=>a.value??null,J=(a,t,o,u)=>{t.setStringValue(a,o.value,{fromUi:o.fromUi},u)},Q=({disabled:a,element:t,widgetMgr:o,fragmentId:u,width:h})=>{var x;const b=s.useRef(j("text_area_")).current,[r,n]=s.useState(!1),[S,g]=s.useState(!1),[i,d]=s.useState(W(o,t)??null),y=s.useCallback(()=>{d(t.default??null),n(!0)},[t]),[I,c]=q({getStateFromWidgetMgr:W,getDefaultStateFromProto:N,getCurrStateFromProto:w,updateWidgetMgrState:J,element:t,widgetMgr:o,fragmentId:u,onFormCleared:y});_(I,i,d,r);const e=U(),m=s.useCallback(()=>{n(!1),c({value:i,fromUi:!0})},[i,c]),C=s.useCallback(()=>{r&&m(),g(!1)},[r,m]),V=s.useCallback(()=>{g(!0)},[]),F=K({formId:t.formId,maxChars:t.maxChars,setDirty:n,setUiValue:d,setValueWithSource:c}),v=O(t.formId,m,r,o,u,!0),z={width:h},{height:f,placeholder:E,formId:p}=t,H=T({formId:p})?o.allowFormEnterToSubmit(p):r,R=S&&h>e.breakpoints.hideWidgetDetails;return k("div",{className:"stTextArea","data-testid":"stTextArea",style:z,children:[l(D,{label:t.label,disabled:a,labelVisibility:A((x=t.labelVisibility)==null?void 0:x.value),htmlFor:b,children:t.help&&l(L,{children:l(P,{content:t.help,placement:B.TOP_RIGHT})})}),l(G,{value:i??"",placeholder:E,onBlur:C,onFocus:V,onChange:F,onKeyDown:v,"aria-label":t.label,disabled:a,id:b,overrides:{Input:{style:{lineHeight:e.lineHeights.inputWidget,height:f?`${f}px`:"",minHeight:e.sizes.largestElementHeight,resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:e.spacing.lg,paddingLeft:e.spacing.lg,paddingBottom:e.spacing.lg,paddingTop:e.spacing.lg}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth}}}}),R&&l($,{dirty:r,value:i??"",maxLength:t.maxChars,type:"multiline",inForm:T({formId:p}),allowEnterToSubmit:H})]})},rt=s.memo(Q);export{rt as default};
1
+ import{r as s,y as U,cl as T,C as k,j as l,bm as A,bz as L,bn as P,b6 as B,bo as D}from"./index.bLZVjplR.js";import{u as j}from"./uniqueId.BRO0jXkb.js";import{u as _,a as K,b as O}from"./useOnInputChange.LSJywRT_.js";import{I as $}from"./InputInstructions.CWLH2hJc.js";import{a as q}from"./useBasicWidgetState.DNqxSbNL.js";import{T as G}from"./textarea.B7ggnxCh.js";import"./inputUtils.CQWz5UKz.js";import"./FormClearHelper.Doa6Lh7Q.js";import"./base-input.C0t7SpL6.js";const W=(a,t)=>a.getStringValue(t)??t.default??null,N=a=>a.default??null,w=a=>a.value??null,J=(a,t,o,u)=>{t.setStringValue(a,o.value,{fromUi:o.fromUi},u)},Q=({disabled:a,element:t,widgetMgr:o,fragmentId:u,width:h})=>{var x;const b=s.useRef(j("text_area_")).current,[r,n]=s.useState(!1),[S,g]=s.useState(!1),[i,d]=s.useState(W(o,t)??null),y=s.useCallback(()=>{d(t.default??null),n(!0)},[t]),[I,c]=q({getStateFromWidgetMgr:W,getDefaultStateFromProto:N,getCurrStateFromProto:w,updateWidgetMgrState:J,element:t,widgetMgr:o,fragmentId:u,onFormCleared:y});_(I,i,d,r);const e=U(),m=s.useCallback(()=>{n(!1),c({value:i,fromUi:!0})},[i,c]),C=s.useCallback(()=>{r&&m(),g(!1)},[r,m]),V=s.useCallback(()=>{g(!0)},[]),F=K({formId:t.formId,maxChars:t.maxChars,setDirty:n,setUiValue:d,setValueWithSource:c}),v=O(t.formId,m,r,o,u,!0),z={width:h},{height:f,placeholder:E,formId:p}=t,H=T({formId:p})?o.allowFormEnterToSubmit(p):r,R=S&&h>e.breakpoints.hideWidgetDetails;return k("div",{className:"stTextArea","data-testid":"stTextArea",style:z,children:[l(D,{label:t.label,disabled:a,labelVisibility:A((x=t.labelVisibility)==null?void 0:x.value),htmlFor:b,children:t.help&&l(L,{children:l(P,{content:t.help,placement:B.TOP_RIGHT})})}),l(G,{value:i??"",placeholder:E,onBlur:C,onFocus:V,onChange:F,onKeyDown:v,"aria-label":t.label,disabled:a,id:b,overrides:{Input:{style:{lineHeight:e.lineHeights.inputWidget,height:f?`${f}px`:"",minHeight:e.sizes.largestElementHeight,resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:e.spacing.lg,paddingLeft:e.spacing.lg,paddingBottom:e.spacing.lg,paddingTop:e.spacing.lg}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth}}}}),R&&l($,{dirty:r,value:i??"",maxLength:t.maxChars,type:"multiline",inForm:T({formId:p}),allowEnterToSubmit:H})]})},rt=s.memo(Q);export{rt as default};
@@ -1,2 +1,2 @@
1
- import{d as Ge,bq as J,r as x,bT as mt,bD as bt,br as G,bU as yt,bV as Tt,n as me,at as kt,y as Ot,aH as wt,C as Ve,j as re,R as ze,ch as Rt,bm as St,bz as Mt,bn as _t,b6 as $t,bo as Et,O as It,ci as $e}from"./index.DeuQX1T6.js";import{s as Ne}from"./sprintf.D7DtBTRn.js";import{a as xt}from"./useBasicWidgetState.e9cw5rKa.js";import"./FormClearHelper.Dha_cfuU.js";var se={},H={},ce={},ue={},Ue;function Ie(){if(Ue)return ue;Ue=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.Direction=void 0;var e;return function(r){r.Right="to right",r.Left="to left",r.Down="to bottom",r.Up="to top"}(e||(ue.Direction=e={})),ue}var He;function Je(){return He||(He=1,function(e){var r=ce&&ce.__spreadArray||function(i,o,c){if(c||arguments.length===2)for(var f=0,y=o.length,h;f<y;f++)(h||!(f in o))&&(h||(h=Array.prototype.slice.call(o,0,f)),h[f]=o[f]);return i.concat(h||Array.prototype.slice.call(o))};Object.defineProperty(e,"__esModule",{value:!0}),e.isIOS=e.useThumbOverlap=e.assertUnreachable=e.voidFn=e.getTrackBackground=e.replaceAt=e.schd=e.translate=e.getClosestThumbIndex=e.translateThumbs=e.getPaddingAndBorder=e.getMargin=e.checkInitialOverlap=e.checkValuesAgainstBoundaries=e.checkBoundaries=e.isVertical=e.relativeValue=e.normalizeValue=e.isStepDivisible=e.isTouchEvent=e.getStepDecimals=void 0;var a=Ge(),s=Ie(),m=function(i){var o=i.toString().split(".")[1];return o?o.length:0};e.getStepDecimals=m;function M(i){return i.touches&&i.touches.length||i.changedTouches&&i.changedTouches.length}e.isTouchEvent=M;function u(i,o,c){var f=(o-i)/c,y=8,h=Number(f.toFixed(y));return parseInt(h.toString(),10)===h}e.isStepDivisible=u;function g(i,o,c,f,y,h,v){var S=1e11;if(i=Math.round(i*S)/S,!h){var P=v[o-1],I=v[o+1];if(P&&P>i)return P;if(I&&I<i)return I}if(i>f)return f;if(i<c)return c;var U=Math.floor(i*S-c*S)%Math.floor(y*S),z=Math.floor(i*S-Math.abs(U)),q=U===0?i:z/S,A=Math.abs(U/S)<y/2?q:q+y,L=(0,e.getStepDecimals)(y);return parseFloat(A.toFixed(L))}e.normalizeValue=g;function j(i,o,c){return(i-o)/(c-o)}e.relativeValue=j;function V(i){return i===s.Direction.Up||i===s.Direction.Down}e.isVertical=V;function F(i,o,c){if(o>=c)throw new RangeError("min (".concat(o,") is equal/bigger than max (").concat(c,")"));if(i<o)throw new RangeError("value (".concat(i,") is smaller than min (").concat(o,")"));if(i>c)throw new RangeError("value (".concat(i,") is bigger than max (").concat(c,")"))}e.checkBoundaries=F;function _(i,o,c){return i<o?o:i>c?c:i}e.checkValuesAgainstBoundaries=_;function T(i){if(!(i.length<2)&&!i.slice(1).every(function(o,c){return i[c]<=o}))throw new RangeError("values={[".concat(i,"]} needs to be sorted when allowOverlap={false}"))}e.checkInitialOverlap=T;function d(i){var o=window.getComputedStyle(i);return{top:parseInt(o["margin-top"],10),bottom:parseInt(o["margin-bottom"],10),left:parseInt(o["margin-left"],10),right:parseInt(o["margin-right"],10)}}e.getMargin=d;function t(i){var o=window.getComputedStyle(i);return{top:parseInt(o["padding-top"],10)+parseInt(o["border-top-width"],10),bottom:parseInt(o["padding-bottom"],10)+parseInt(o["border-bottom-width"],10),left:parseInt(o["padding-left"],10)+parseInt(o["border-left-width"],10),right:parseInt(o["padding-right"],10)+parseInt(o["border-right-width"],10)}}e.getPaddingAndBorder=t;function n(i,o,c){var f=c?-1:1;i.forEach(function(y,h){return p(y,f*o[h].x,o[h].y)})}e.translateThumbs=n;function l(i,o,c,f){for(var y=0,h=D(i[0],o,c,f),v=1;v<i.length;v++){var S=D(i[v],o,c,f);S<h&&(h=S,y=v)}return y}e.getClosestThumbIndex=l;function p(i,o,c){i.style.transform="translate(".concat(o,"px, ").concat(c,"px)")}e.translate=p;var b=function(i){var o=[],c=null,f=function(){for(var y=[],h=0;h<arguments.length;h++)y[h]=arguments[h];o=y,!c&&(c=requestAnimationFrame(function(){c=null,i.apply(void 0,o)}))};return f};e.schd=b;function k(i,o,c){var f=i.slice(0);return f[o]=c,f}e.replaceAt=k;function E(i){var o=i.values,c=i.colors,f=i.min,y=i.max,h=i.direction,v=h===void 0?s.Direction.Right:h,S=i.rtl,P=S===void 0?!1:S;P&&v===s.Direction.Right?v=s.Direction.Left:P&&s.Direction.Left&&(v=s.Direction.Right);var I=o.slice(0).sort(function(z,q){return z-q}).map(function(z){return(z-f)/(y-f)*100}),U=I.reduce(function(z,q,A){return"".concat(z,", ").concat(c[A]," ").concat(q,"%, ").concat(c[A+1]," ").concat(q,"%")},"");return"linear-gradient(".concat(v,", ").concat(c[0]," 0%").concat(U,", ").concat(c[c.length-1]," 100%)")}e.getTrackBackground=E;function O(){}e.voidFn=O;function w(i){throw new Error("Didn't expect to get here")}e.assertUnreachable=w;var $=function(i,o,c,f,y){y===void 0&&(y=function(v){return v});var h=Math.ceil(r([i],Array.from(i.children),!0).reduce(function(v,S){var P=Math.ceil(S.getBoundingClientRect().width);if(S.innerText&&S.innerText.includes(c)&&S.childElementCount===0){var I=S.cloneNode(!0);I.innerHTML=y(o.toFixed(f)),I.style.visibility="hidden",document.body.appendChild(I),P=Math.ceil(I.getBoundingClientRect().width),document.body.removeChild(I)}return P>v?P:v},i.getBoundingClientRect().width));return h},B=function(i,o,c,f,y,h,v){v===void 0&&(v=function(I){return I});var S=[],P=function(I){var U=$(c[I],f[I],y,h,v),z=o[I].x;o.forEach(function(q,A){var L=q.x,Z=$(c[A],f[A],y,h,v);I!==A&&(z>=L&&z<=L+Z||z+U>=L&&z+U<=L+Z)&&(S.includes(A)||(S.push(I),S.push(A),S=r(r([],S,!0),[I,A],!1),P(A)))})};return P(i),Array.from(new Set(S.sort()))},R=function(i,o,c,f,y,h){f===void 0&&(f=.1),y===void 0&&(y=" - "),h===void 0&&(h=function(A){return A});var v=(0,e.getStepDecimals)(f),S=(0,a.useState)({}),P=S[0],I=S[1],U=(0,a.useState)(h(o[c].toFixed(v))),z=U[0],q=U[1];return(0,a.useEffect)(function(){if(i){var A=i.getThumbs();if(A.length<1)return;var L={},Z=i.getOffsets(),ne=B(c,Z,A,o,y,v,h),le=h(o[c].toFixed(v));if(ne.length){var Q=ne.reduce(function(ee,oe,ge,pe){return ee.length?r(r([],ee,!0),[Z[pe[ge]].x],!1):[Z[pe[ge]].x]},[]);if(Math.min.apply(Math,Q)===Z[c].x){var de=[];ne.forEach(function(ee){de.push(o[ee].toFixed(v))}),le=Array.from(new Set(de.sort(function(ee,oe){return parseFloat(ee)-parseFloat(oe)}))).map(h).join(y);var fe=Math.min.apply(Math,Q),he=Math.max.apply(Math,Q),_e=A[ne[Q.indexOf(he)]].getBoundingClientRect().width;L.left="".concat(Math.abs(fe-(he+_e))/2,"px"),L.transform="translate(-50%, 0)"}else L.visibility="hidden"}q(le),I(L)}},[i,o]),[z,P]};e.useThumbOverlap=R;function D(i,o,c,f){var y=i.getBoundingClientRect(),h=y.left,v=y.top,S=y.width,P=y.height;return V(f)?Math.abs(c-(v+P/2)):Math.abs(o-(h+S/2))}var C=function(){var i,o=((i=navigator.userAgentData)===null||i===void 0?void 0:i.platform)||navigator.platform;return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(o)||navigator.userAgent.includes("Mac")&&"ontouchend"in document};e.isIOS=C}(ce)),ce}var qe;function Ct(){if(qe)return H;qe=1;var e=H&&H.__extends||function(){var _=function(T,d){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])},_(T,d)};return function(T,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");_(T,d);function t(){this.constructor=T}T.prototype=d===null?Object.create(d):(t.prototype=d.prototype,new t)}}(),r=H&&H.__createBinding||(Object.create?function(_,T,d,t){t===void 0&&(t=d);var n=Object.getOwnPropertyDescriptor(T,d);(!n||("get"in n?!T.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return T[d]}}),Object.defineProperty(_,t,n)}:function(_,T,d,t){t===void 0&&(t=d),_[t]=T[d]}),a=H&&H.__setModuleDefault||(Object.create?function(_,T){Object.defineProperty(_,"default",{enumerable:!0,value:T})}:function(_,T){_.default=T}),s=H&&H.__importStar||function(_){if(_&&_.__esModule)return _;var T={};if(_!=null)for(var d in _)d!=="default"&&Object.prototype.hasOwnProperty.call(_,d)&&r(T,_,d);return a(T,_),T},m=H&&H.__spreadArray||function(_,T,d){if(d||arguments.length===2)for(var t=0,n=T.length,l;t<n;t++)(l||!(t in T))&&(l||(l=Array.prototype.slice.call(T,0,t)),l[t]=T[t]);return _.concat(l||Array.prototype.slice.call(T))};Object.defineProperty(H,"__esModule",{value:!0});var M=s(Ge()),u=Je(),g=Ie(),j=["ArrowRight","ArrowUp","k","PageUp"],V=["ArrowLeft","ArrowDown","j","PageDown"],F=function(_){e(T,_);function T(d){var t=_.call(this,d)||this;if(t.trackRef=M.createRef(),t.thumbRefs=[],t.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(t.props.values.length).fill(0).map(function(n,l){return l}),isChanged:!1,markOffsets:[]},t.getOffsets=function(){var n=t.props,l=n.direction,p=n.values,b=n.min,k=n.max,E=t.trackRef.current;if(!E)return console.warn("No track element found."),[];var O=E.getBoundingClientRect(),w=(0,u.getPaddingAndBorder)(E);return t.getThumbs().map(function($,B){var R={x:0,y:0},D=$.getBoundingClientRect(),C=(0,u.getMargin)($);switch(l){case g.Direction.Right:return R.x=(C.left+w.left)*-1,R.y=((D.height-O.height)/2+w.top)*-1,R.x+=O.width*(0,u.relativeValue)(p[B],b,k)-D.width/2,R;case g.Direction.Left:return R.x=(C.right+w.right)*-1,R.y=((D.height-O.height)/2+w.top)*-1,R.x+=O.width-O.width*(0,u.relativeValue)(p[B],b,k)-D.width/2,R;case g.Direction.Up:return R.x=((D.width-O.width)/2+C.left+w.left)*-1,R.y=-w.left,R.y+=O.height-O.height*(0,u.relativeValue)(p[B],b,k)-D.height/2,R;case g.Direction.Down:return R.x=((D.width-O.width)/2+C.left+w.left)*-1,R.y=-w.left,R.y+=O.height*(0,u.relativeValue)(p[B],b,k)-D.height/2,R;default:return(0,u.assertUnreachable)(l)}})},t.getThumbs=function(){return t.trackRef&&t.trackRef.current?Array.from(t.trackRef.current.children).filter(function(n){return n.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},t.getTargetIndex=function(n){return t.getThumbs().findIndex(function(l){return l===n.target||l.contains(n.target)})},t.addTouchEvents=function(n){document.addEventListener("touchmove",t.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",t.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",t.schdOnEnd,{passive:!1})},t.addMouseEvents=function(n){document.addEventListener("mousemove",t.schdOnMouseMove),document.addEventListener("mouseup",t.schdOnEnd)},t.onMouseDownTrack=function(n){var l;if(!(n.button!==0||(0,u.isIOS)()))if(n.persist(),n.preventDefault(),t.addMouseEvents(n.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(b){var k;return(k=b.current)===null||k===void 0?void 0:k.contains(n.target)}))return;t.setState({draggedTrackPos:[n.clientX,n.clientY]},function(){return t.onMove(n.clientX,n.clientY)})}else{var p=(0,u.getClosestThumbIndex)(t.thumbRefs.map(function(b){return b.current}),n.clientX,n.clientY,t.props.direction);(l=t.thumbRefs[p].current)===null||l===void 0||l.focus(),t.setState({draggedThumbIndex:p},function(){return t.onMove(n.clientX,n.clientY)})}},t.onResize=function(){(0,u.translateThumbs)(t.getThumbs(),t.getOffsets(),t.props.rtl),t.calculateMarkOffsets()},t.onTouchStartTrack=function(n){var l;if(n.persist(),t.addTouchEvents(n.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(b){var k;return(k=b.current)===null||k===void 0?void 0:k.contains(n.target)}))return;t.setState({draggedTrackPos:[n.touches[0].clientX,n.touches[0].clientY]},function(){return t.onMove(n.touches[0].clientX,n.touches[0].clientY)})}else{var p=(0,u.getClosestThumbIndex)(t.thumbRefs.map(function(b){return b.current}),n.touches[0].clientX,n.touches[0].clientY,t.props.direction);(l=t.thumbRefs[p].current)===null||l===void 0||l.focus(),t.setState({draggedThumbIndex:p},function(){return t.onMove(n.touches[0].clientX,n.touches[0].clientY)})}},t.onMouseOrTouchStart=function(n){if(!t.props.disabled){var l=(0,u.isTouchEvent)(n);if(!(!l&&n.button!==0)){var p=t.getTargetIndex(n);p!==-1&&(l?t.addTouchEvents(n):t.addMouseEvents(n),t.setState({draggedThumbIndex:p,thumbZIndexes:t.state.thumbZIndexes.map(function(b,k){return k===p?Math.max.apply(Math,t.state.thumbZIndexes):b<=t.state.thumbZIndexes[p]?b:b-1})}))}}},t.onMouseMove=function(n){n.preventDefault(),t.onMove(n.clientX,n.clientY)},t.onTouchMove=function(n){n.preventDefault(),t.onMove(n.touches[0].clientX,n.touches[0].clientY)},t.onKeyDown=function(n){var l=t.props,p=l.values,b=l.onChange,k=l.step,E=l.rtl,O=l.direction,w=t.state.isChanged,$=t.getTargetIndex(n.nativeEvent),B=E||O===g.Direction.Left||O===g.Direction.Down?-1:1;$!==-1&&(j.includes(n.key)?(n.preventDefault(),t.setState({draggedThumbIndex:$,isChanged:!0}),b((0,u.replaceAt)(p,$,t.normalizeValue(p[$]+B*(n.key==="PageUp"?k*10:k),$)))):V.includes(n.key)?(n.preventDefault(),t.setState({draggedThumbIndex:$,isChanged:!0}),b((0,u.replaceAt)(p,$,t.normalizeValue(p[$]-B*(n.key==="PageDown"?k*10:k),$)))):n.key==="Tab"?t.setState({draggedThumbIndex:-1},function(){w&&t.fireOnFinalChange()}):w&&t.fireOnFinalChange())},t.onKeyUp=function(n){var l=t.state.isChanged;t.setState({draggedThumbIndex:-1},function(){l&&t.fireOnFinalChange()})},t.onMove=function(n,l){var p=t.state,b=p.draggedThumbIndex,k=p.draggedTrackPos,E=t.props,O=E.direction,w=E.min,$=E.max,B=E.onChange,R=E.values,D=E.step,C=E.rtl;if(b===-1&&k[0]===-1&&k[1]===-1)return null;var i=t.trackRef.current;if(!i)return null;var o=i.getBoundingClientRect(),c=(0,u.isVertical)(O)?o.height:o.width;if(k[0]!==-1&&k[1]!==-1){var f=n-k[0],y=l-k[1],h=0;switch(O){case g.Direction.Right:case g.Direction.Left:h=f/c*($-w);break;case g.Direction.Down:case g.Direction.Up:h=y/c*($-w);break;default:(0,u.assertUnreachable)(O)}if(C&&(h*=-1),Math.abs(h)>=D/2){for(var v=0;v<t.thumbRefs.length;v++){if(R[v]===$&&Math.sign(h)===1||R[v]===w&&Math.sign(h)===-1)return;var S=R[v]+h;S>$?h=$-R[v]:S<w&&(h=w-R[v])}for(var P=R.slice(0),v=0;v<t.thumbRefs.length;v++)P=(0,u.replaceAt)(P,v,t.normalizeValue(R[v]+h,v));t.setState({draggedTrackPos:[n,l]}),B(P)}}else{var I=0;switch(O){case g.Direction.Right:I=(n-o.left)/c*($-w)+w;break;case g.Direction.Left:I=(c-(n-o.left))/c*($-w)+w;break;case g.Direction.Down:I=(l-o.top)/c*($-w)+w;break;case g.Direction.Up:I=(c-(l-o.top))/c*($-w)+w;break;default:(0,u.assertUnreachable)(O)}C&&(I=$+w-I),Math.abs(R[b]-I)>=D/2&&B((0,u.replaceAt)(R,b,t.normalizeValue(I,b)))}},t.normalizeValue=function(n,l){var p=t.props,b=p.min,k=p.max,E=p.step,O=p.allowOverlap,w=p.values;return(0,u.normalizeValue)(n,l,b,k,E,O,w)},t.onEnd=function(n){if(n.preventDefault(),document.removeEventListener("mousemove",t.schdOnMouseMove),document.removeEventListener("touchmove",t.schdOnTouchMove),document.removeEventListener("mouseup",t.schdOnEnd),document.removeEventListener("touchend",t.schdOnEnd),document.removeEventListener("touchcancel",t.schdOnEnd),t.state.draggedThumbIndex===-1&&t.state.draggedTrackPos[0]===-1&&t.state.draggedTrackPos[1]===-1)return null;t.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){t.fireOnFinalChange()})},t.fireOnFinalChange=function(){t.setState({isChanged:!1});var n=t.props,l=n.onFinalChange,p=n.values;l&&l(p)},t.updateMarkRefs=function(n){if(!n.renderMark){t.numOfMarks=void 0,t.markRefs=void 0;return}t.numOfMarks=(n.max-n.min)/t.props.step,t.markRefs=[];for(var l=0;l<t.numOfMarks+1;l++)t.markRefs[l]=M.createRef()},t.calculateMarkOffsets=function(){if(!(!t.props.renderMark||!t.trackRef||!t.numOfMarks||!t.markRefs||t.trackRef.current===null)){for(var n=window.getComputedStyle(t.trackRef.current),l=parseInt(n.width,10),p=parseInt(n.height,10),b=parseInt(n.paddingLeft,10),k=parseInt(n.paddingTop,10),E=[],O=0;O<t.numOfMarks+1;O++){var w=9999,$=9999;if(t.markRefs[O].current){var B=t.markRefs[O].current.getBoundingClientRect();w=B.height,$=B.width}t.props.direction===g.Direction.Left||t.props.direction===g.Direction.Right?E.push([Math.round(l/t.numOfMarks*O+b-$/2),-Math.round((w-p)/2)]):E.push([Math.round(p/t.numOfMarks*O+k-w/2),-Math.round(($-l)/2)])}t.setState({markOffsets:E})}},d.step===0)throw new Error('"step" property should be a positive number');return t.schdOnMouseMove=(0,u.schd)(t.onMouseMove),t.schdOnTouchMove=(0,u.schd)(t.onTouchMove),t.schdOnEnd=(0,u.schd)(t.onEnd),t.thumbRefs=d.values.map(function(){return M.createRef()}),t.updateMarkRefs(d),t}return T.prototype.componentDidMount=function(){var d=this,t=this.props,n=t.values,l=t.min,p=t.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",d.onResize)},unobserve:function(){return window.removeEventListener("resize",d.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,u.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(b){return(0,u.checkBoundaries)(b,d.props.min,d.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,u.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),n.forEach(function(b){(0,u.isStepDivisible)(l,b,p)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},T.prototype.componentDidUpdate=function(d,t){var n=this.props,l=n.max,p=n.min,b=n.step,k=n.values,E=n.rtl;(d.max!==l||d.min!==p||d.step!==b)&&this.updateMarkRefs(this.props),(0,u.translateThumbs)(this.getThumbs(),this.getOffsets(),E),(d.max!==l||d.min!==p||d.step!==b||t.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),k.forEach(function(O){(0,u.isStepDivisible)(p,O,b)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},T.prototype.componentWillUnmount=function(){var d={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,d),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},T.prototype.render=function(){var d=this,t=this.props,n=t.label,l=t.labelledBy,p=t.renderTrack,b=t.renderThumb,k=t.renderMark,E=k===void 0?function(){return null}:k,O=t.values,w=t.min,$=t.max,B=t.allowOverlap,R=t.disabled,D=this.state,C=D.draggedThumbIndex,i=D.thumbZIndexes,o=D.markOffsets;return p({props:{style:{transform:"scale(1)",cursor:C>-1?"grabbing":this.props.draggableTrack?(0,u.isVertical)(this.props.direction)?"ns-resize":"ew-resize":O.length===1&&!R?"pointer":"inherit"},onMouseDown:R?u.voidFn:this.onMouseDownTrack,onTouchStart:R?u.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:R,children:m(m([],o.map(function(c,f,y){return E({props:{style:d.props.direction===g.Direction.Left||d.props.direction===g.Direction.Right?{position:"absolute",left:"".concat(c[0],"px"),marginTop:"".concat(c[1],"px")}:{position:"absolute",top:"".concat(c[0],"px"),marginLeft:"".concat(c[1],"px")},key:"mark".concat(f),ref:d.markRefs[f]},index:f})}),!0),O.map(function(c,f){var y=d.state.draggedThumbIndex===f;return b({index:f,value:c,isDragged:y,props:{style:{position:"absolute",zIndex:i[f],cursor:R?"inherit":y?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:f,tabIndex:R?void 0:0,"aria-valuemax":B?$:O[f+1]||$,"aria-valuemin":B?w:O[f-1]||w,"aria-valuenow":c,draggable:!1,ref:d.thumbRefs[f],"aria-label":n,"aria-labelledby":l,role:"slider",onKeyDown:R?u.voidFn:d.onKeyDown,onKeyUp:R?u.voidFn:d.onKeyUp}})}),!0)})},T.defaultProps={label:"Accessibility label",labelledBy:null,step:1,direction:g.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},T}(M.Component);return H.default=F,H}var We;function Dt(){return We||(We=1,function(e){var r=se&&se.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkValuesAgainstBoundaries=e.relativeValue=e.useThumbOverlap=e.Direction=e.getTrackBackground=e.Range=void 0;var a=r(Ct());e.Range=a.default;var s=Je();Object.defineProperty(e,"getTrackBackground",{enumerable:!0,get:function(){return s.getTrackBackground}}),Object.defineProperty(e,"useThumbOverlap",{enumerable:!0,get:function(){return s.useThumbOverlap}}),Object.defineProperty(e,"relativeValue",{enumerable:!0,get:function(){return s.relativeValue}}),Object.defineProperty(e,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return s.checkValuesAgainstBoundaries}});var m=Ie();Object.defineProperty(e,"Direction",{enumerable:!0,get:function(){return m.Direction}})}(se)),se}var Qe=Dt();function Ke(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter(function(m){return Object.getOwnPropertyDescriptor(e,m).enumerable})),a.push.apply(a,s)}return a}function ve(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?Ke(Object(a),!0).forEach(function(s){Pt(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ke(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}function Pt(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var be=J("div",{position:"relative",width:"100%"});be.displayName="Root";be.displayName="Root";be.displayName="StyledRoot";var ye=J("div",function(e){var r=e.$theme,a=e.$value,s=a===void 0?[]:a,m=e.$disabled,M=e.$isDragged,u=r.sizing,g="inherit";return m?g="not-allowed":M?g="grabbing":s.length===1&&(g="pointer"),{paddingTop:u.scale600,paddingBottom:u.scale600,paddingRight:u.scale600,paddingLeft:u.scale600,display:"flex",cursor:g,backgroundColor:r.colors.sliderTrackFill}});ye.displayName="Track";ye.displayName="Track";ye.displayName="StyledTrack";var Te=J("div",function(e){var r=e.$theme,a=e.$value,s=a===void 0?[]:a,m=e.$min,M=e.$max,u=e.$disabled,g=r.colors,j=r.borders,V=r.direction,F=r.borders.useRoundedCorners?j.radius100:0;return{borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,background:Qe.getTrackBackground({values:s,colors:s.length===1?[u?g.borderOpaque:g.primary,u?g.backgroundSecondary:g.borderOpaque]:[u?g.backgroundSecondary:g.borderOpaque,u?g.borderOpaque:g.primary,u?g.backgroundSecondary:g.borderOpaque],min:m||0,max:M||0,rtl:V==="rtl"}),height:"2px",width:"100%",alignSelf:"center",cursor:u?"not-allowed":"inherit"}});Te.displayName="InnerTrack";Te.displayName="InnerTrack";Te.displayName="StyledInnerTrack";var ke=J("div",function(e){return{width:"4px",height:"2px",backgroundColor:e.$theme.colors.backgroundPrimary,marginLeft:"16px"}});ke.displayName="Mark";ke.displayName="Mark";ke.displayName="StyledMark";var Oe=J("div",function(e){return ve(ve({},e.$theme.typography.font200),{},{color:e.$theme.colors.contentPrimary})});Oe.displayName="Tick";Oe.displayName="Tick";Oe.displayName="StyledTick";var we=J("div",function(e){var r=e.$theme,a=r.sizing;return{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:a.scale600,paddingLeft:a.scale600,paddingBottom:a.scale400}});we.displayName="TickBar";we.displayName="TickBar";we.displayName="StyledTickBar";var Re=J("div",function(e){var r=e.$theme,a=e.$value,s=a===void 0?[]:a,m=e.$thumbIndex,M=e.$disabled,u=s.length===2&&m===0,g=s.length===2&&m===1;return r.direction==="rtl"&&(g||u)&&(u=!u,g=!g),{height:"24px",width:"24px",borderTopLeftRadius:"24px",borderTopRightRadius:"24px",borderBottomLeftRadius:"24px",borderBottomRightRadius:"24px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:M?r.colors.sliderHandleFillDisabled:r.colors.sliderHandleFill,outline:"none",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(r.colors.accent):"0 1px 4px rgba(0, 0, 0, 0.12)",cursor:M?"not-allowed":"inherit"}});Re.displayName="Thumb";Re.displayName="Thumb";Re.displayName="StyledThumb";var Se=J("div",function(e){var r=e.$disabled,a=e.$theme;return{position:"absolute",top:"-16px",width:"4px",height:"20px",backgroundColor:r?a.colors.sliderHandleFillDisabled:a.colors.sliderHandleInnerFill}});Se.displayName="InnerThumb";Se.displayName="InnerThumb";Se.displayName="StyledInnerThumb";var Me=J("div",function(e){var r=e.$disabled,a=e.$theme;return ve(ve({position:"absolute",top:"-".concat(a.sizing.scale1400)},a.typography.font200),{},{backgroundColor:r?a.colors.sliderHandleFillDisabled:a.colors.sliderHandleInnerFill,color:a.colors.contentInversePrimary,paddingLeft:a.sizing.scale600,paddingRight:a.sizing.scale600,paddingTop:a.sizing.scale500,paddingBottom:a.sizing.scale500,borderBottomLeftRadius:"48px",borderBottomRightRadius:"48px",borderTopLeftRadius:"48px",borderTopRightRadius:"48px",whiteSpace:"nowrap"})});Me.displayName="ThumbValue";Me.displayName="ThumbValue";Me.displayName="StyledThumbValue";function Ye(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter(function(m){return Object.getOwnPropertyDescriptor(e,m).enumerable})),a.push.apply(a,s)}return a}function Bt(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?Ye(Object(a),!0).forEach(function(s){At(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ye(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}function At(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Y.apply(this,arguments)}function K(e,r){return Vt(e)||jt(e,r)||Ft(e,r)||Lt()}function Lt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{d as Ge,bq as J,r as x,bT as mt,bD as bt,br as G,bU as yt,bV as Tt,n as me,at as kt,y as Ot,aH as wt,C as Ve,j as re,R as ze,ch as Rt,bm as St,bz as Mt,bn as _t,b6 as $t,bo as Et,O as It,ci as $e}from"./index.bLZVjplR.js";import{s as Ne}from"./sprintf.D7DtBTRn.js";import{a as xt}from"./useBasicWidgetState.DNqxSbNL.js";import"./FormClearHelper.Doa6Lh7Q.js";var se={},H={},ce={},ue={},Ue;function Ie(){if(Ue)return ue;Ue=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.Direction=void 0;var e;return function(r){r.Right="to right",r.Left="to left",r.Down="to bottom",r.Up="to top"}(e||(ue.Direction=e={})),ue}var He;function Je(){return He||(He=1,function(e){var r=ce&&ce.__spreadArray||function(i,o,c){if(c||arguments.length===2)for(var f=0,y=o.length,h;f<y;f++)(h||!(f in o))&&(h||(h=Array.prototype.slice.call(o,0,f)),h[f]=o[f]);return i.concat(h||Array.prototype.slice.call(o))};Object.defineProperty(e,"__esModule",{value:!0}),e.isIOS=e.useThumbOverlap=e.assertUnreachable=e.voidFn=e.getTrackBackground=e.replaceAt=e.schd=e.translate=e.getClosestThumbIndex=e.translateThumbs=e.getPaddingAndBorder=e.getMargin=e.checkInitialOverlap=e.checkValuesAgainstBoundaries=e.checkBoundaries=e.isVertical=e.relativeValue=e.normalizeValue=e.isStepDivisible=e.isTouchEvent=e.getStepDecimals=void 0;var a=Ge(),s=Ie(),m=function(i){var o=i.toString().split(".")[1];return o?o.length:0};e.getStepDecimals=m;function M(i){return i.touches&&i.touches.length||i.changedTouches&&i.changedTouches.length}e.isTouchEvent=M;function u(i,o,c){var f=(o-i)/c,y=8,h=Number(f.toFixed(y));return parseInt(h.toString(),10)===h}e.isStepDivisible=u;function g(i,o,c,f,y,h,v){var S=1e11;if(i=Math.round(i*S)/S,!h){var P=v[o-1],I=v[o+1];if(P&&P>i)return P;if(I&&I<i)return I}if(i>f)return f;if(i<c)return c;var U=Math.floor(i*S-c*S)%Math.floor(y*S),z=Math.floor(i*S-Math.abs(U)),q=U===0?i:z/S,A=Math.abs(U/S)<y/2?q:q+y,L=(0,e.getStepDecimals)(y);return parseFloat(A.toFixed(L))}e.normalizeValue=g;function j(i,o,c){return(i-o)/(c-o)}e.relativeValue=j;function V(i){return i===s.Direction.Up||i===s.Direction.Down}e.isVertical=V;function F(i,o,c){if(o>=c)throw new RangeError("min (".concat(o,") is equal/bigger than max (").concat(c,")"));if(i<o)throw new RangeError("value (".concat(i,") is smaller than min (").concat(o,")"));if(i>c)throw new RangeError("value (".concat(i,") is bigger than max (").concat(c,")"))}e.checkBoundaries=F;function _(i,o,c){return i<o?o:i>c?c:i}e.checkValuesAgainstBoundaries=_;function T(i){if(!(i.length<2)&&!i.slice(1).every(function(o,c){return i[c]<=o}))throw new RangeError("values={[".concat(i,"]} needs to be sorted when allowOverlap={false}"))}e.checkInitialOverlap=T;function d(i){var o=window.getComputedStyle(i);return{top:parseInt(o["margin-top"],10),bottom:parseInt(o["margin-bottom"],10),left:parseInt(o["margin-left"],10),right:parseInt(o["margin-right"],10)}}e.getMargin=d;function t(i){var o=window.getComputedStyle(i);return{top:parseInt(o["padding-top"],10)+parseInt(o["border-top-width"],10),bottom:parseInt(o["padding-bottom"],10)+parseInt(o["border-bottom-width"],10),left:parseInt(o["padding-left"],10)+parseInt(o["border-left-width"],10),right:parseInt(o["padding-right"],10)+parseInt(o["border-right-width"],10)}}e.getPaddingAndBorder=t;function n(i,o,c){var f=c?-1:1;i.forEach(function(y,h){return p(y,f*o[h].x,o[h].y)})}e.translateThumbs=n;function l(i,o,c,f){for(var y=0,h=D(i[0],o,c,f),v=1;v<i.length;v++){var S=D(i[v],o,c,f);S<h&&(h=S,y=v)}return y}e.getClosestThumbIndex=l;function p(i,o,c){i.style.transform="translate(".concat(o,"px, ").concat(c,"px)")}e.translate=p;var b=function(i){var o=[],c=null,f=function(){for(var y=[],h=0;h<arguments.length;h++)y[h]=arguments[h];o=y,!c&&(c=requestAnimationFrame(function(){c=null,i.apply(void 0,o)}))};return f};e.schd=b;function k(i,o,c){var f=i.slice(0);return f[o]=c,f}e.replaceAt=k;function E(i){var o=i.values,c=i.colors,f=i.min,y=i.max,h=i.direction,v=h===void 0?s.Direction.Right:h,S=i.rtl,P=S===void 0?!1:S;P&&v===s.Direction.Right?v=s.Direction.Left:P&&s.Direction.Left&&(v=s.Direction.Right);var I=o.slice(0).sort(function(z,q){return z-q}).map(function(z){return(z-f)/(y-f)*100}),U=I.reduce(function(z,q,A){return"".concat(z,", ").concat(c[A]," ").concat(q,"%, ").concat(c[A+1]," ").concat(q,"%")},"");return"linear-gradient(".concat(v,", ").concat(c[0]," 0%").concat(U,", ").concat(c[c.length-1]," 100%)")}e.getTrackBackground=E;function O(){}e.voidFn=O;function w(i){throw new Error("Didn't expect to get here")}e.assertUnreachable=w;var $=function(i,o,c,f,y){y===void 0&&(y=function(v){return v});var h=Math.ceil(r([i],Array.from(i.children),!0).reduce(function(v,S){var P=Math.ceil(S.getBoundingClientRect().width);if(S.innerText&&S.innerText.includes(c)&&S.childElementCount===0){var I=S.cloneNode(!0);I.innerHTML=y(o.toFixed(f)),I.style.visibility="hidden",document.body.appendChild(I),P=Math.ceil(I.getBoundingClientRect().width),document.body.removeChild(I)}return P>v?P:v},i.getBoundingClientRect().width));return h},B=function(i,o,c,f,y,h,v){v===void 0&&(v=function(I){return I});var S=[],P=function(I){var U=$(c[I],f[I],y,h,v),z=o[I].x;o.forEach(function(q,A){var L=q.x,Z=$(c[A],f[A],y,h,v);I!==A&&(z>=L&&z<=L+Z||z+U>=L&&z+U<=L+Z)&&(S.includes(A)||(S.push(I),S.push(A),S=r(r([],S,!0),[I,A],!1),P(A)))})};return P(i),Array.from(new Set(S.sort()))},R=function(i,o,c,f,y,h){f===void 0&&(f=.1),y===void 0&&(y=" - "),h===void 0&&(h=function(A){return A});var v=(0,e.getStepDecimals)(f),S=(0,a.useState)({}),P=S[0],I=S[1],U=(0,a.useState)(h(o[c].toFixed(v))),z=U[0],q=U[1];return(0,a.useEffect)(function(){if(i){var A=i.getThumbs();if(A.length<1)return;var L={},Z=i.getOffsets(),ne=B(c,Z,A,o,y,v,h),le=h(o[c].toFixed(v));if(ne.length){var Q=ne.reduce(function(ee,oe,ge,pe){return ee.length?r(r([],ee,!0),[Z[pe[ge]].x],!1):[Z[pe[ge]].x]},[]);if(Math.min.apply(Math,Q)===Z[c].x){var de=[];ne.forEach(function(ee){de.push(o[ee].toFixed(v))}),le=Array.from(new Set(de.sort(function(ee,oe){return parseFloat(ee)-parseFloat(oe)}))).map(h).join(y);var fe=Math.min.apply(Math,Q),he=Math.max.apply(Math,Q),_e=A[ne[Q.indexOf(he)]].getBoundingClientRect().width;L.left="".concat(Math.abs(fe-(he+_e))/2,"px"),L.transform="translate(-50%, 0)"}else L.visibility="hidden"}q(le),I(L)}},[i,o]),[z,P]};e.useThumbOverlap=R;function D(i,o,c,f){var y=i.getBoundingClientRect(),h=y.left,v=y.top,S=y.width,P=y.height;return V(f)?Math.abs(c-(v+P/2)):Math.abs(o-(h+S/2))}var C=function(){var i,o=((i=navigator.userAgentData)===null||i===void 0?void 0:i.platform)||navigator.platform;return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(o)||navigator.userAgent.includes("Mac")&&"ontouchend"in document};e.isIOS=C}(ce)),ce}var qe;function Ct(){if(qe)return H;qe=1;var e=H&&H.__extends||function(){var _=function(T,d){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])},_(T,d)};return function(T,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");_(T,d);function t(){this.constructor=T}T.prototype=d===null?Object.create(d):(t.prototype=d.prototype,new t)}}(),r=H&&H.__createBinding||(Object.create?function(_,T,d,t){t===void 0&&(t=d);var n=Object.getOwnPropertyDescriptor(T,d);(!n||("get"in n?!T.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return T[d]}}),Object.defineProperty(_,t,n)}:function(_,T,d,t){t===void 0&&(t=d),_[t]=T[d]}),a=H&&H.__setModuleDefault||(Object.create?function(_,T){Object.defineProperty(_,"default",{enumerable:!0,value:T})}:function(_,T){_.default=T}),s=H&&H.__importStar||function(_){if(_&&_.__esModule)return _;var T={};if(_!=null)for(var d in _)d!=="default"&&Object.prototype.hasOwnProperty.call(_,d)&&r(T,_,d);return a(T,_),T},m=H&&H.__spreadArray||function(_,T,d){if(d||arguments.length===2)for(var t=0,n=T.length,l;t<n;t++)(l||!(t in T))&&(l||(l=Array.prototype.slice.call(T,0,t)),l[t]=T[t]);return _.concat(l||Array.prototype.slice.call(T))};Object.defineProperty(H,"__esModule",{value:!0});var M=s(Ge()),u=Je(),g=Ie(),j=["ArrowRight","ArrowUp","k","PageUp"],V=["ArrowLeft","ArrowDown","j","PageDown"],F=function(_){e(T,_);function T(d){var t=_.call(this,d)||this;if(t.trackRef=M.createRef(),t.thumbRefs=[],t.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(t.props.values.length).fill(0).map(function(n,l){return l}),isChanged:!1,markOffsets:[]},t.getOffsets=function(){var n=t.props,l=n.direction,p=n.values,b=n.min,k=n.max,E=t.trackRef.current;if(!E)return console.warn("No track element found."),[];var O=E.getBoundingClientRect(),w=(0,u.getPaddingAndBorder)(E);return t.getThumbs().map(function($,B){var R={x:0,y:0},D=$.getBoundingClientRect(),C=(0,u.getMargin)($);switch(l){case g.Direction.Right:return R.x=(C.left+w.left)*-1,R.y=((D.height-O.height)/2+w.top)*-1,R.x+=O.width*(0,u.relativeValue)(p[B],b,k)-D.width/2,R;case g.Direction.Left:return R.x=(C.right+w.right)*-1,R.y=((D.height-O.height)/2+w.top)*-1,R.x+=O.width-O.width*(0,u.relativeValue)(p[B],b,k)-D.width/2,R;case g.Direction.Up:return R.x=((D.width-O.width)/2+C.left+w.left)*-1,R.y=-w.left,R.y+=O.height-O.height*(0,u.relativeValue)(p[B],b,k)-D.height/2,R;case g.Direction.Down:return R.x=((D.width-O.width)/2+C.left+w.left)*-1,R.y=-w.left,R.y+=O.height*(0,u.relativeValue)(p[B],b,k)-D.height/2,R;default:return(0,u.assertUnreachable)(l)}})},t.getThumbs=function(){return t.trackRef&&t.trackRef.current?Array.from(t.trackRef.current.children).filter(function(n){return n.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},t.getTargetIndex=function(n){return t.getThumbs().findIndex(function(l){return l===n.target||l.contains(n.target)})},t.addTouchEvents=function(n){document.addEventListener("touchmove",t.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",t.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",t.schdOnEnd,{passive:!1})},t.addMouseEvents=function(n){document.addEventListener("mousemove",t.schdOnMouseMove),document.addEventListener("mouseup",t.schdOnEnd)},t.onMouseDownTrack=function(n){var l;if(!(n.button!==0||(0,u.isIOS)()))if(n.persist(),n.preventDefault(),t.addMouseEvents(n.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(b){var k;return(k=b.current)===null||k===void 0?void 0:k.contains(n.target)}))return;t.setState({draggedTrackPos:[n.clientX,n.clientY]},function(){return t.onMove(n.clientX,n.clientY)})}else{var p=(0,u.getClosestThumbIndex)(t.thumbRefs.map(function(b){return b.current}),n.clientX,n.clientY,t.props.direction);(l=t.thumbRefs[p].current)===null||l===void 0||l.focus(),t.setState({draggedThumbIndex:p},function(){return t.onMove(n.clientX,n.clientY)})}},t.onResize=function(){(0,u.translateThumbs)(t.getThumbs(),t.getOffsets(),t.props.rtl),t.calculateMarkOffsets()},t.onTouchStartTrack=function(n){var l;if(n.persist(),t.addTouchEvents(n.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(b){var k;return(k=b.current)===null||k===void 0?void 0:k.contains(n.target)}))return;t.setState({draggedTrackPos:[n.touches[0].clientX,n.touches[0].clientY]},function(){return t.onMove(n.touches[0].clientX,n.touches[0].clientY)})}else{var p=(0,u.getClosestThumbIndex)(t.thumbRefs.map(function(b){return b.current}),n.touches[0].clientX,n.touches[0].clientY,t.props.direction);(l=t.thumbRefs[p].current)===null||l===void 0||l.focus(),t.setState({draggedThumbIndex:p},function(){return t.onMove(n.touches[0].clientX,n.touches[0].clientY)})}},t.onMouseOrTouchStart=function(n){if(!t.props.disabled){var l=(0,u.isTouchEvent)(n);if(!(!l&&n.button!==0)){var p=t.getTargetIndex(n);p!==-1&&(l?t.addTouchEvents(n):t.addMouseEvents(n),t.setState({draggedThumbIndex:p,thumbZIndexes:t.state.thumbZIndexes.map(function(b,k){return k===p?Math.max.apply(Math,t.state.thumbZIndexes):b<=t.state.thumbZIndexes[p]?b:b-1})}))}}},t.onMouseMove=function(n){n.preventDefault(),t.onMove(n.clientX,n.clientY)},t.onTouchMove=function(n){n.preventDefault(),t.onMove(n.touches[0].clientX,n.touches[0].clientY)},t.onKeyDown=function(n){var l=t.props,p=l.values,b=l.onChange,k=l.step,E=l.rtl,O=l.direction,w=t.state.isChanged,$=t.getTargetIndex(n.nativeEvent),B=E||O===g.Direction.Left||O===g.Direction.Down?-1:1;$!==-1&&(j.includes(n.key)?(n.preventDefault(),t.setState({draggedThumbIndex:$,isChanged:!0}),b((0,u.replaceAt)(p,$,t.normalizeValue(p[$]+B*(n.key==="PageUp"?k*10:k),$)))):V.includes(n.key)?(n.preventDefault(),t.setState({draggedThumbIndex:$,isChanged:!0}),b((0,u.replaceAt)(p,$,t.normalizeValue(p[$]-B*(n.key==="PageDown"?k*10:k),$)))):n.key==="Tab"?t.setState({draggedThumbIndex:-1},function(){w&&t.fireOnFinalChange()}):w&&t.fireOnFinalChange())},t.onKeyUp=function(n){var l=t.state.isChanged;t.setState({draggedThumbIndex:-1},function(){l&&t.fireOnFinalChange()})},t.onMove=function(n,l){var p=t.state,b=p.draggedThumbIndex,k=p.draggedTrackPos,E=t.props,O=E.direction,w=E.min,$=E.max,B=E.onChange,R=E.values,D=E.step,C=E.rtl;if(b===-1&&k[0]===-1&&k[1]===-1)return null;var i=t.trackRef.current;if(!i)return null;var o=i.getBoundingClientRect(),c=(0,u.isVertical)(O)?o.height:o.width;if(k[0]!==-1&&k[1]!==-1){var f=n-k[0],y=l-k[1],h=0;switch(O){case g.Direction.Right:case g.Direction.Left:h=f/c*($-w);break;case g.Direction.Down:case g.Direction.Up:h=y/c*($-w);break;default:(0,u.assertUnreachable)(O)}if(C&&(h*=-1),Math.abs(h)>=D/2){for(var v=0;v<t.thumbRefs.length;v++){if(R[v]===$&&Math.sign(h)===1||R[v]===w&&Math.sign(h)===-1)return;var S=R[v]+h;S>$?h=$-R[v]:S<w&&(h=w-R[v])}for(var P=R.slice(0),v=0;v<t.thumbRefs.length;v++)P=(0,u.replaceAt)(P,v,t.normalizeValue(R[v]+h,v));t.setState({draggedTrackPos:[n,l]}),B(P)}}else{var I=0;switch(O){case g.Direction.Right:I=(n-o.left)/c*($-w)+w;break;case g.Direction.Left:I=(c-(n-o.left))/c*($-w)+w;break;case g.Direction.Down:I=(l-o.top)/c*($-w)+w;break;case g.Direction.Up:I=(c-(l-o.top))/c*($-w)+w;break;default:(0,u.assertUnreachable)(O)}C&&(I=$+w-I),Math.abs(R[b]-I)>=D/2&&B((0,u.replaceAt)(R,b,t.normalizeValue(I,b)))}},t.normalizeValue=function(n,l){var p=t.props,b=p.min,k=p.max,E=p.step,O=p.allowOverlap,w=p.values;return(0,u.normalizeValue)(n,l,b,k,E,O,w)},t.onEnd=function(n){if(n.preventDefault(),document.removeEventListener("mousemove",t.schdOnMouseMove),document.removeEventListener("touchmove",t.schdOnTouchMove),document.removeEventListener("mouseup",t.schdOnEnd),document.removeEventListener("touchend",t.schdOnEnd),document.removeEventListener("touchcancel",t.schdOnEnd),t.state.draggedThumbIndex===-1&&t.state.draggedTrackPos[0]===-1&&t.state.draggedTrackPos[1]===-1)return null;t.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){t.fireOnFinalChange()})},t.fireOnFinalChange=function(){t.setState({isChanged:!1});var n=t.props,l=n.onFinalChange,p=n.values;l&&l(p)},t.updateMarkRefs=function(n){if(!n.renderMark){t.numOfMarks=void 0,t.markRefs=void 0;return}t.numOfMarks=(n.max-n.min)/t.props.step,t.markRefs=[];for(var l=0;l<t.numOfMarks+1;l++)t.markRefs[l]=M.createRef()},t.calculateMarkOffsets=function(){if(!(!t.props.renderMark||!t.trackRef||!t.numOfMarks||!t.markRefs||t.trackRef.current===null)){for(var n=window.getComputedStyle(t.trackRef.current),l=parseInt(n.width,10),p=parseInt(n.height,10),b=parseInt(n.paddingLeft,10),k=parseInt(n.paddingTop,10),E=[],O=0;O<t.numOfMarks+1;O++){var w=9999,$=9999;if(t.markRefs[O].current){var B=t.markRefs[O].current.getBoundingClientRect();w=B.height,$=B.width}t.props.direction===g.Direction.Left||t.props.direction===g.Direction.Right?E.push([Math.round(l/t.numOfMarks*O+b-$/2),-Math.round((w-p)/2)]):E.push([Math.round(p/t.numOfMarks*O+k-w/2),-Math.round(($-l)/2)])}t.setState({markOffsets:E})}},d.step===0)throw new Error('"step" property should be a positive number');return t.schdOnMouseMove=(0,u.schd)(t.onMouseMove),t.schdOnTouchMove=(0,u.schd)(t.onTouchMove),t.schdOnEnd=(0,u.schd)(t.onEnd),t.thumbRefs=d.values.map(function(){return M.createRef()}),t.updateMarkRefs(d),t}return T.prototype.componentDidMount=function(){var d=this,t=this.props,n=t.values,l=t.min,p=t.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",d.onResize)},unobserve:function(){return window.removeEventListener("resize",d.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,u.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(b){return(0,u.checkBoundaries)(b,d.props.min,d.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,u.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),n.forEach(function(b){(0,u.isStepDivisible)(l,b,p)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},T.prototype.componentDidUpdate=function(d,t){var n=this.props,l=n.max,p=n.min,b=n.step,k=n.values,E=n.rtl;(d.max!==l||d.min!==p||d.step!==b)&&this.updateMarkRefs(this.props),(0,u.translateThumbs)(this.getThumbs(),this.getOffsets(),E),(d.max!==l||d.min!==p||d.step!==b||t.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),k.forEach(function(O){(0,u.isStepDivisible)(p,O,b)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},T.prototype.componentWillUnmount=function(){var d={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,d),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},T.prototype.render=function(){var d=this,t=this.props,n=t.label,l=t.labelledBy,p=t.renderTrack,b=t.renderThumb,k=t.renderMark,E=k===void 0?function(){return null}:k,O=t.values,w=t.min,$=t.max,B=t.allowOverlap,R=t.disabled,D=this.state,C=D.draggedThumbIndex,i=D.thumbZIndexes,o=D.markOffsets;return p({props:{style:{transform:"scale(1)",cursor:C>-1?"grabbing":this.props.draggableTrack?(0,u.isVertical)(this.props.direction)?"ns-resize":"ew-resize":O.length===1&&!R?"pointer":"inherit"},onMouseDown:R?u.voidFn:this.onMouseDownTrack,onTouchStart:R?u.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:R,children:m(m([],o.map(function(c,f,y){return E({props:{style:d.props.direction===g.Direction.Left||d.props.direction===g.Direction.Right?{position:"absolute",left:"".concat(c[0],"px"),marginTop:"".concat(c[1],"px")}:{position:"absolute",top:"".concat(c[0],"px"),marginLeft:"".concat(c[1],"px")},key:"mark".concat(f),ref:d.markRefs[f]},index:f})}),!0),O.map(function(c,f){var y=d.state.draggedThumbIndex===f;return b({index:f,value:c,isDragged:y,props:{style:{position:"absolute",zIndex:i[f],cursor:R?"inherit":y?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:f,tabIndex:R?void 0:0,"aria-valuemax":B?$:O[f+1]||$,"aria-valuemin":B?w:O[f-1]||w,"aria-valuenow":c,draggable:!1,ref:d.thumbRefs[f],"aria-label":n,"aria-labelledby":l,role:"slider",onKeyDown:R?u.voidFn:d.onKeyDown,onKeyUp:R?u.voidFn:d.onKeyUp}})}),!0)})},T.defaultProps={label:"Accessibility label",labelledBy:null,step:1,direction:g.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},T}(M.Component);return H.default=F,H}var We;function Dt(){return We||(We=1,function(e){var r=se&&se.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkValuesAgainstBoundaries=e.relativeValue=e.useThumbOverlap=e.Direction=e.getTrackBackground=e.Range=void 0;var a=r(Ct());e.Range=a.default;var s=Je();Object.defineProperty(e,"getTrackBackground",{enumerable:!0,get:function(){return s.getTrackBackground}}),Object.defineProperty(e,"useThumbOverlap",{enumerable:!0,get:function(){return s.useThumbOverlap}}),Object.defineProperty(e,"relativeValue",{enumerable:!0,get:function(){return s.relativeValue}}),Object.defineProperty(e,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return s.checkValuesAgainstBoundaries}});var m=Ie();Object.defineProperty(e,"Direction",{enumerable:!0,get:function(){return m.Direction}})}(se)),se}var Qe=Dt();function Ke(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter(function(m){return Object.getOwnPropertyDescriptor(e,m).enumerable})),a.push.apply(a,s)}return a}function ve(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?Ke(Object(a),!0).forEach(function(s){Pt(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ke(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}function Pt(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var be=J("div",{position:"relative",width:"100%"});be.displayName="Root";be.displayName="Root";be.displayName="StyledRoot";var ye=J("div",function(e){var r=e.$theme,a=e.$value,s=a===void 0?[]:a,m=e.$disabled,M=e.$isDragged,u=r.sizing,g="inherit";return m?g="not-allowed":M?g="grabbing":s.length===1&&(g="pointer"),{paddingTop:u.scale600,paddingBottom:u.scale600,paddingRight:u.scale600,paddingLeft:u.scale600,display:"flex",cursor:g,backgroundColor:r.colors.sliderTrackFill}});ye.displayName="Track";ye.displayName="Track";ye.displayName="StyledTrack";var Te=J("div",function(e){var r=e.$theme,a=e.$value,s=a===void 0?[]:a,m=e.$min,M=e.$max,u=e.$disabled,g=r.colors,j=r.borders,V=r.direction,F=r.borders.useRoundedCorners?j.radius100:0;return{borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,background:Qe.getTrackBackground({values:s,colors:s.length===1?[u?g.borderOpaque:g.primary,u?g.backgroundSecondary:g.borderOpaque]:[u?g.backgroundSecondary:g.borderOpaque,u?g.borderOpaque:g.primary,u?g.backgroundSecondary:g.borderOpaque],min:m||0,max:M||0,rtl:V==="rtl"}),height:"2px",width:"100%",alignSelf:"center",cursor:u?"not-allowed":"inherit"}});Te.displayName="InnerTrack";Te.displayName="InnerTrack";Te.displayName="StyledInnerTrack";var ke=J("div",function(e){return{width:"4px",height:"2px",backgroundColor:e.$theme.colors.backgroundPrimary,marginLeft:"16px"}});ke.displayName="Mark";ke.displayName="Mark";ke.displayName="StyledMark";var Oe=J("div",function(e){return ve(ve({},e.$theme.typography.font200),{},{color:e.$theme.colors.contentPrimary})});Oe.displayName="Tick";Oe.displayName="Tick";Oe.displayName="StyledTick";var we=J("div",function(e){var r=e.$theme,a=r.sizing;return{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:a.scale600,paddingLeft:a.scale600,paddingBottom:a.scale400}});we.displayName="TickBar";we.displayName="TickBar";we.displayName="StyledTickBar";var Re=J("div",function(e){var r=e.$theme,a=e.$value,s=a===void 0?[]:a,m=e.$thumbIndex,M=e.$disabled,u=s.length===2&&m===0,g=s.length===2&&m===1;return r.direction==="rtl"&&(g||u)&&(u=!u,g=!g),{height:"24px",width:"24px",borderTopLeftRadius:"24px",borderTopRightRadius:"24px",borderBottomLeftRadius:"24px",borderBottomRightRadius:"24px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:M?r.colors.sliderHandleFillDisabled:r.colors.sliderHandleFill,outline:"none",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(r.colors.accent):"0 1px 4px rgba(0, 0, 0, 0.12)",cursor:M?"not-allowed":"inherit"}});Re.displayName="Thumb";Re.displayName="Thumb";Re.displayName="StyledThumb";var Se=J("div",function(e){var r=e.$disabled,a=e.$theme;return{position:"absolute",top:"-16px",width:"4px",height:"20px",backgroundColor:r?a.colors.sliderHandleFillDisabled:a.colors.sliderHandleInnerFill}});Se.displayName="InnerThumb";Se.displayName="InnerThumb";Se.displayName="StyledInnerThumb";var Me=J("div",function(e){var r=e.$disabled,a=e.$theme;return ve(ve({position:"absolute",top:"-".concat(a.sizing.scale1400)},a.typography.font200),{},{backgroundColor:r?a.colors.sliderHandleFillDisabled:a.colors.sliderHandleInnerFill,color:a.colors.contentInversePrimary,paddingLeft:a.sizing.scale600,paddingRight:a.sizing.scale600,paddingTop:a.sizing.scale500,paddingBottom:a.sizing.scale500,borderBottomLeftRadius:"48px",borderBottomRightRadius:"48px",borderTopLeftRadius:"48px",borderTopRightRadius:"48px",whiteSpace:"nowrap"})});Me.displayName="ThumbValue";Me.displayName="ThumbValue";Me.displayName="StyledThumbValue";function Ye(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter(function(m){return Object.getOwnPropertyDescriptor(e,m).enumerable})),a.push.apply(a,s)}return a}function Bt(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?Ye(Object(a),!0).forEach(function(s){At(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ye(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}function At(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Y.apply(this,arguments)}function K(e,r){return Vt(e)||jt(e,r)||Ft(e,r)||Lt()}function Lt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ft(e,r){if(e){if(typeof e=="string")return Xe(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Xe(e,r)}}function Xe(e,r){(r==null||r>e.length)&&(r=e.length);for(var a=0,s=new Array(r);a<r;a++)s[a]=e[a];return s}function jt(e,r){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var s=[],m=!0,M=!1,u,g;try{for(a=a.call(e);!(m=(u=a.next()).done)&&(s.push(u.value),!(r&&s.length===r));m=!0);}catch(j){M=!0,g=j}finally{try{!m&&a.return!=null&&a.return()}finally{if(M)throw g}}return s}}function Vt(e){if(Array.isArray(e))return e}var zt=function(r){if(r.length>2||r.length===0)throw new Error("the value prop represents positions of thumbs, so its length can be only one or two");return r};function Nt(e){var r=e.overrides,a=r===void 0?{}:r,s=e.disabled,m=s===void 0?!1:s,M=e.marks,u=M===void 0?!1:M,g=e.onChange,j=g===void 0?function(){}:g,V=e.onFinalChange,F=V===void 0?function(){}:V,_=e.min,T=_===void 0?0:_,d=e.max,t=d===void 0?100:d,n=e.step,l=n===void 0?1:n,p=e.persistentThumb,b=p===void 0?!1:p,k=e.valueToLabel,E=k===void 0?function(X){return X}:k,O=e.value,w=x.useContext(mt),$=x.useState(!1),B=K($,2),R=B[0],D=B[1],C=x.useState(!1),i=K(C,2),o=i[0],c=i[1],f=x.useState(!1),y=K(f,2),h=y[0],v=y[1],S=x.useState(-1),P=K(S,2),I=P[0],U=P[1],z=x.useCallback(function(X){bt(X)&&v(!0);var N=X.target.parentNode.firstChild===X.target?0:1;U(N)},[]),q=x.useCallback(function(X){h!==!1&&v(!1),U(-1)},[]),A=zt(O),L={$disabled:m,$step:l,$min:T,$max:t,$marks:u,$value:A,$isFocusVisible:h},Z=G(a.Root,be),ne=K(Z,2),le=ne[0],Q=ne[1],de=G(a.Track,ye),fe=K(de,2),he=fe[0],_e=fe[1],ee=G(a.InnerTrack,Te),oe=K(ee,2),ge=oe[0],pe=oe[1],et=G(a.Thumb,Re),xe=K(et,2),tt=xe[0],rt=xe[1],nt=G(a.InnerThumb,Se),Ce=K(nt,2),at=Ce[0],it=Ce[1],ot=G(a.ThumbValue,Me),De=K(ot,2),st=De[0],ct=De[1],ut=G(a.Tick,Oe),Pe=K(ut,2),Be=Pe[0],Ae=Pe[1],lt=G(a.TickBar,we),Le=K(lt,2),dt=Le[0],ft=Le[1],ht=G(a.Mark,ke),Fe=K(ht,2),gt=Fe[0],pt=Fe[1];return x.createElement(le,Y({"data-baseweb":"slider"},L,Q,{onFocus:Tt(Q,z),onBlur:yt(Q,q)}),x.createElement(Qe.Range,Y({step:l,min:T,max:t,values:A,disabled:m,onChange:function(N){return j({value:N})},onFinalChange:function(N){return F({value:N})},rtl:w.direction==="rtl",renderTrack:function(N){var te=N.props,W=N.children,ae=N.isDragged;return x.createElement(he,Y({onMouseDown:te.onMouseDown,onTouchStart:te.onTouchStart,$isDragged:ae},L,_e),x.createElement(ge,Y({$isDragged:ae,ref:te.ref},L,pe),W))},renderThumb:function(N){var te=N.props,W=N.index,ae=N.isDragged,je=b||(!!W&&o||!W&&R||ae)&&!m;return x.createElement(tt,Y({},te,{onMouseEnter:function(){W===0?D(!0):c(!0)},onMouseLeave:function(){W===0?D(!1):c(!1)},$thumbIndex:W,$isDragged:ae,style:Bt({},te.style)},L,rt,{$isFocusVisible:h&&I===W}),je&&x.createElement(st,Y({$thumbIndex:W,$isDragged:ae},L,ct),E(A[W])),je&&x.createElement(at,Y({$thumbIndex:W,$isDragged:ae},L,it)))}},u?{renderMark:function(N){var te=N.props,W=N.index;return x.createElement(gt,Y({$markIndex:W},te,L,pt))}}:{})),x.createElement(dt,Y({},L,ft),x.createElement(Be,Y({},L,Ae),E(T)),x.createElement(Be,Y({},L,Ae),E(t))))}const Ut=me("div",{target:"e8lt0n70"})(({disabled:e,theme:r})=>({alignItems:"center",backgroundColor:e?r.colors.gray:r.colors.primary,borderTopLeftRadius:"100%",borderTopRightRadius:"100%",borderBottomLeftRadius:"100%",borderBottomRightRadius:"100%",borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none",boxShadow:"none",display:"flex",justifyContent:"center",height:r.sizes.sliderThumb,width:r.sizes.sliderThumb,":focus":{outline:"none"},":focus-visible":{boxShadow:`0 0 0 0.2rem ${kt(r.colors.primary,.5)}`}})),Ht=me("div",{target:"e8lt0n71"})(({disabled:e,theme:r})=>({fontFamily:r.genericFonts.codeFont,fontSize:r.fontSizes.sm,color:e?r.colors.gray:r.colors.primary,top:"-1.6em",position:"absolute",whiteSpace:"nowrap",backgroundColor:r.colors.transparent,lineHeight:r.lineHeights.base,fontWeight:r.fontWeights.normal,pointerEvents:"none"})),qt=me("div",{target:"e8lt0n72"})(({theme:e})=>({fontSize:e.fontSizes.sm,paddingBottom:e.spacing.none,paddingLeft:e.spacing.none,paddingRight:e.spacing.none,paddingTop:"0.65em",justifyContent:"space-between",alignItems:"center",display:"flex"})),Ze=me("div",{target:"e8lt0n73"})(({disabled:e,theme:r})=>({lineHeight:r.lineHeights.base,fontWeight:r.fontWeights.normal,fontFamily:r.genericFonts.codeFont,color:e?r.colors.fadedText40:"inherit"})),Wt=200;function Kt({disabled:e,element:r,widgetMgr:a,width:s,fragmentId:m}){var D;const[M,u]=xt({getStateFromWidgetMgr:Yt,getDefaultStateFromProto:Xt,getCurrStateFromProto:Zt,updateWidgetMgrState:Gt,element:r,widgetMgr:a,fragmentId:m}),[g,j]=x.useState(M),V=x.useRef(null),[F]=x.useState([]),[_]=x.useState([]),{colors:T,fonts:d,fontSizes:t,spacing:n}=Ot(),l={width:s},p=g.map(C=>Ee(C,r)),b=Ee(r.min,r),k=Ee(r.max,r),E=r.label;x.useEffect(()=>{j(M)},[M]);const O=x.useCallback(wt(Wt,C=>{u({value:C,fromUi:!0})}),[]),w=x.useCallback(({value:C})=>{j(C),O(C)},[O]),$=x.useCallback(()=>Ve(qt,{"data-testid":"stSliderTickBar",children:[re(Ze,{disabled:e,"data-testid":"stSliderTickBarMin",children:b}),re(Ze,{disabled:e,"data-testid":"stSliderTickBarMax",children:k})]}),[b,k,e]),B=x.useCallback(ze.forwardRef(function(i,o){const{$thumbIndex:c}=i,f=c||0;F[f]=o,_[f]||(_[f]=ze.createRef());const y=Rt(i,["role","style","aria-valuemax","aria-valuemin","aria-valuenow","tabIndex","onKeyUp","onKeyDown","onMouseEnter","onMouseLeave","draggable"]),h=p[f];return re(Ut,{...y,disabled:i.$disabled===!0,ref:F[f],"aria-valuetext":h,"aria-label":E,children:re(Ht,{"data-testid":"stSliderThumbValue",disabled:i.$disabled===!0,ref:_[f],children:h})})}),[]);x.useEffect(()=>{var y,h;_.map((v,S)=>{v.current&&(v.current.innerText=p[S])}),F.map((v,S)=>{v.current&&v.current.setAttribute("aria-valuetext",p[S])});const C=V.current??null,i=F[0].current,o=(y=F[1])==null?void 0:y.current,c=_[0].current,f=(h=_[1])==null?void 0:h.current;er(C,i,o,c,f)});const R=x.useCallback(({$disabled:C})=>({height:n.twoXS,...C?{background:T.darkenedBgMix25}:{}}),[T,n]);return Ve("div",{ref:V,className:"stSlider","data-testid":"stSlider",style:l,children:[re(Et,{label:r.label,disabled:e,labelVisibility:St((D=r.labelVisibility)==null?void 0:D.value),children:r.help&&re(Mt,{children:re(_t,{content:r.help,placement:$t.TOP_RIGHT})})}),re(Nt,{min:r.min,max:r.max,step:r.step,value:Qt(g,r),onChange:w,disabled:e,overrides:{Thumb:B,Tick:{style:{fontFamily:d.monospace}},Track:{style:{backgroundColor:"none !important",paddingBottom:n.none,paddingLeft:n.none,paddingRight:n.none,paddingTop:`calc(${t.sm} * 1.35)`}},InnerTrack:{style:R},TickBar:$}})]})}function Yt(e,r){return e.getDoubleArrayValue(r)}function Xt(e){return e.default}function Zt(e){return e.value}function Gt(e,r,a,s){r.setDoubleArrayValue(e,a.value,{fromUi:a.fromUi},s)}function Jt(e){const{dataType:r}=e;return r===$e.DataType.DATETIME||r===$e.DataType.DATE||r===$e.DataType.TIME}function Ee(e,r){const{format:a,options:s}=r;return Jt(r)?It.utc(e/1e3).format(a):s.length>0?Ne.sprintf(a,s[e]):Ne.sprintf(a,e)}function Qt(e,r){const{min:a,max:s}=r;let m=e[0],M=e.length>1?e[1]:e[0];return m>M&&(m=M),m<a&&(m=a),m>s&&(m=s),M<a&&(M=a),M>s&&(M=s),e.length>1?[m,M]:[m]}function er(e,r,a,s,m){!e||!r||!s||(ie(e,r,s),a&&m&&(ie(e,a,m),tr(e,r,a,s,m)))}function ie(e,r,a){const s=e.getBoundingClientRect(),m=r.getBoundingClientRect(),M=a.getBoundingClientRect(),u=m.left+m.width/2,g=u-M.width/2<s.left,j=u+M.width/2>s.right;a.style.left=g?"0":"",a.style.right=j?"0":""}function tr(e,r,a,s,m){const u=e.getBoundingClientRect(),g=r.getBoundingClientRect(),j=a.getBoundingClientRect(),V=s.getBoundingClientRect(),F=m.getBoundingClientRect(),_=u.left+u.width/2,T=g.left+g.width/2,d=j.left+j.width/2,t=T-V.width/2>=u.left,n=d+F.width/2<=u.right,l=g.left-V.width>=u.left,p=j.right+F.width<=u.right,b=t?V.width/2:V.width,k=n?F.width/2:F.width,E=T+b;if(d-k-E>24){ie(e,r,s),ie(e,a,m);return}if(l&&p){s.style.left="",s.style.right=`${Math.round(g.width)}px`,m.style.left=`${Math.round(j.width)}px`,m.style.right="";return}T<_?(ie(e,r,s),m.style.left=`${Math.round(T+b+24-d)}px`,m.style.right=""):(ie(e,a,m),s.style.left="",s.style.right=`${-Math.round(d-k-24-T)}px`)}const or=x.memo(Kt);export{or as default};
@@ -1 +1 @@
1
- import{r as i,j as g,bm as m,bJ as b}from"./index.DeuQX1T6.js";import{a as f}from"./useBasicWidgetState.e9cw5rKa.js";import"./FormClearHelper.Dha_cfuU.js";const p=(t,e)=>t.getStringValue(e),C=t=>t.default??null,d=t=>t.value??null,S=(t,e,r,o)=>{e.setStringValue(t,r.value,{fromUi:r.fromUi},o)},V=({element:t,disabled:e,widgetMgr:r,width:o,fragmentId:s})=>{var l;const[u,a]=f({getStateFromWidgetMgr:p,getDefaultStateFromProto:C,getCurrStateFromProto:d,updateWidgetMgrState:S,element:t,widgetMgr:r,fragmentId:s}),n=i.useCallback(c=>{a({value:c,fromUi:!0})},[a]);return g(b,{label:t.label,labelVisibility:m((l=t.labelVisibility)==null?void 0:l.value),help:t.help,onChange:n,disabled:e,width:o,value:u})},v=i.memo(V);export{v as default};
1
+ import{r as i,j as g,bm as m,bJ as b}from"./index.bLZVjplR.js";import{a as f}from"./useBasicWidgetState.DNqxSbNL.js";import"./FormClearHelper.Doa6Lh7Q.js";const p=(t,e)=>t.getStringValue(e),C=t=>t.default??null,d=t=>t.value??null,S=(t,e,r,o)=>{e.setStringValue(t,r.value,{fromUi:r.fromUi},o)},V=({element:t,disabled:e,widgetMgr:r,width:o,fragmentId:s})=>{var l;const[u,a]=f({getStateFromWidgetMgr:p,getDefaultStateFromProto:C,getCurrStateFromProto:d,updateWidgetMgrState:S,element:t,widgetMgr:r,fragmentId:s}),n=i.useCallback(c=>{a({value:c,fromUi:!0})},[a]);return g(b,{label:t.label,labelVisibility:m((l=t.labelVisibility)==null?void 0:l.value),help:t.help,onChange:n,disabled:e,width:o,value:u})},v=i.memo(V);export{v as default};