streamlit-nightly 1.46.1.dev20250619__py3-none-any.whl → 1.46.1.dev20250622__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 (83) hide show
  1. streamlit/elements/layouts.py +4 -3
  2. streamlit/static/index.html +1 -1
  3. streamlit/static/manifest.json +224 -224
  4. streamlit/static/static/js/{ErrorOutline.esm.CE5CrZXn.js → ErrorOutline.esm.DV0xGZr0.js} +1 -1
  5. streamlit/static/static/js/{FileDownload.esm.CKsNkh0l.js → FileDownload.esm.B5OHehZX.js} +1 -1
  6. streamlit/static/static/js/{FileHelper.DOVqqUxb.js → FileHelper.CIllbZ_T.js} +1 -1
  7. streamlit/static/static/js/{FormClearHelper.BWF61UOT.js → FormClearHelper.B4Xd3eAo.js} +1 -1
  8. streamlit/static/static/js/{Hooks.DfBSM43j.js → Hooks.DCO6FLy2.js} +1 -1
  9. streamlit/static/static/js/{InputInstructions.CPSPH0D_.js → InputInstructions.8iiiZurT.js} +1 -1
  10. streamlit/static/static/js/{ProgressBar.B74LzQav.js → ProgressBar.7dxhGygF.js} +2 -2
  11. streamlit/static/static/js/{RenderInPortalIfExists.BtLlUPRN.js → RenderInPortalIfExists.D4Mwwa5a.js} +1 -1
  12. streamlit/static/static/js/{Toolbar.CFs3otSU.js → Toolbar.MfU_z1Pl.js} +1 -1
  13. streamlit/static/static/js/UploadFileInfo.C-jY39rj.js +1 -0
  14. streamlit/static/static/js/{base-input.CfAzppKq.js → base-input.CD_ZJb6M.js} +4 -4
  15. streamlit/static/static/js/{checkbox.CXjMqu_k.js → checkbox.DHKvEdaN.js} +2 -2
  16. streamlit/static/static/js/{createSuper.rZ8o-25D.js → createSuper.CYFdzcEc.js} +1 -1
  17. streamlit/static/static/js/{data-grid-overlay-editor.DY8gtsPM.js → data-grid-overlay-editor.CASJyml1.js} +1 -1
  18. streamlit/static/static/js/{downloader.CUL_myC_.js → downloader.BujRtTJQ.js} +1 -1
  19. streamlit/static/static/js/{es6.COULtzvD.js → es6.BzpKRHTl.js} +2 -2
  20. streamlit/static/static/js/{iframeResizer.contentWindow.BLNtfDQq.js → iframeResizer.contentWindow.DdNKjgL-.js} +1 -1
  21. streamlit/static/static/js/{index.Dic9tQ3o.js → index.25z42FPO.js} +1 -1
  22. streamlit/static/static/js/{index.gGVA3ypj.js → index.31L_nN7t.js} +1 -1
  23. streamlit/static/static/js/{index.BkwGvHjD.js → index.B5CWfjKJ.js} +1 -1
  24. streamlit/static/static/js/{index.e5UWNEFk.js → index.B5SF9Bg7.js} +1 -1
  25. streamlit/static/static/js/{index.DINkn0av.js → index.BBxmbB8u.js} +1 -1
  26. streamlit/static/static/js/{index.DFzHHQQ2.js → index.BF7tH6NK.js} +1 -1
  27. streamlit/static/static/js/{index.DFe9cVuT.js → index.BFZO9BwP.js} +197 -197
  28. streamlit/static/static/js/{index.DNG5byMV.js → index.BLKUfpY9.js} +1 -1
  29. streamlit/static/static/js/{index.DkP2QSR6.js → index.BRALdPQV.js} +1 -1
  30. streamlit/static/static/js/{index.Bzqi27ul.js → index.BYzu-8O6.js} +1 -1
  31. streamlit/static/static/js/index.BmCdua0H.js +1 -0
  32. streamlit/static/static/js/{index.DpV5u9dH.js → index.BsUjj-QK.js} +1 -1
  33. streamlit/static/static/js/{index.C18XY7UR.js → index.C4XoxASX.js} +1 -1
  34. streamlit/static/static/js/{index.JEGXoCgS.js → index.C4zuEVgR.js} +2 -2
  35. streamlit/static/static/js/{index.CS_bDUfa.js → index.CCloC5pv.js} +1 -1
  36. streamlit/static/static/js/{index.DsVGGMVE.js → index.CGTmrxQF.js} +1 -1
  37. streamlit/static/static/js/{index.cDdLvOH8.js → index.CNPzEZK5.js} +1 -1
  38. streamlit/static/static/js/{index.BqnMmntK.js → index.CW_IFCtB.js} +2 -2
  39. streamlit/static/static/js/index.CYj0qmZR.js +1 -0
  40. streamlit/static/static/js/{index.Kn93MhMK.js → index.Cd7pSbPb.js} +1 -1
  41. streamlit/static/static/js/index.CwTKDRFO.js +1 -0
  42. streamlit/static/static/js/{index.OPM8dJsY.js → index.CweOixv3.js} +3 -3
  43. streamlit/static/static/js/{index.BkL_z3h6.js → index.D33D625y.js} +1 -1
  44. streamlit/static/static/js/{index.CZqjkdDc.js → index.DSUJ0c6K.js} +1 -1
  45. streamlit/static/static/js/{index.5Q1yjMTu.js → index.DvR5u8dP.js} +1 -1
  46. streamlit/static/static/js/{index.BOE9MgzV.js → index.EBCAt5lH.js} +1 -1
  47. streamlit/static/static/js/index.RGCDyZwL.js +1 -0
  48. streamlit/static/static/js/{index.CNG--ehl.js → index.SXFI-bxq.js} +1 -1
  49. streamlit/static/static/js/{index.Do4ZXOP3.js → index.UT1zwx6I.js} +1 -1
  50. streamlit/static/static/js/{index.BLuJFrQb.js → index.XK0W3e5F.js} +5 -5
  51. streamlit/static/static/js/{index.Dd0_GiV2.js → index.cKbFF_YI.js} +1 -1
  52. streamlit/static/static/js/{index.BElvUzo7.js → index.e7dbVhPC.js} +1 -1
  53. streamlit/static/static/js/index.fSbFmy0I.js +1 -0
  54. streamlit/static/static/js/{index.BevuuY6S.js → index.kWcXsYvp.js} +1 -1
  55. streamlit/static/static/js/{index.BHiL3Un8.js → index.l0tODCkU.js} +1 -1
  56. streamlit/static/static/js/{index.BVw3DE-Z.js → index.ofH1nMYX.js} +1 -1
  57. streamlit/static/static/js/{index.r_ZT1tVm.js → index.pFmc4GEU.js} +1 -1
  58. streamlit/static/static/js/{input.DmY67J2b.js → input.Cc_dbkdO.js} +1 -1
  59. streamlit/static/static/js/{memory.Z-pC9-3x.js → memory.BUJhegEf.js} +1 -1
  60. streamlit/static/static/js/{mergeWith.CERfzbOC.js → mergeWith.BihcIFU9.js} +1 -1
  61. streamlit/static/static/js/{number-overlay-editor.DWG8cngo.js → number-overlay-editor.t4ZZhdY2.js} +1 -1
  62. streamlit/static/static/js/{possibleConstructorReturn.D5r5oVUP.js → possibleConstructorReturn.B1UQDThh.js} +1 -1
  63. streamlit/static/static/js/{sandbox.u3nVTB99.js → sandbox.CISGR_4e.js} +1 -1
  64. streamlit/static/static/js/{textarea.DV7UDu1G.js → textarea.BXc2-al_.js} +2 -2
  65. streamlit/static/static/js/{timepicker.DVt-Vl22.js → timepicker.CmUmXHhB.js} +1 -1
  66. streamlit/static/static/js/{toConsumableArray.CtE4bR7I.js → toConsumableArray.YAwDRCO5.js} +1 -1
  67. streamlit/static/static/js/{uniqueId.C7eHRig8.js → uniqueId.B5Af-iXZ.js} +1 -1
  68. streamlit/static/static/js/useBasicWidgetState.GEeXHHcq.js +1 -0
  69. streamlit/static/static/js/{useOnInputChange.DXbMYgSJ.js → useOnInputChange.BUgD6B0U.js} +1 -1
  70. streamlit/static/static/js/{withFullScreenWrapper.Bm7qkwWH.js → withFullScreenWrapper.Pb8hqWLi.js} +1 -1
  71. {streamlit_nightly-1.46.1.dev20250619.dist-info → streamlit_nightly-1.46.1.dev20250622.dist-info}/METADATA +1 -1
  72. {streamlit_nightly-1.46.1.dev20250619.dist-info → streamlit_nightly-1.46.1.dev20250622.dist-info}/RECORD +76 -76
  73. streamlit/static/static/js/UploadFileInfo.0DCkpDDf.js +0 -6
  74. streamlit/static/static/js/index.B34FKeCx.js +0 -1
  75. streamlit/static/static/js/index.C1i_yHxK.js +0 -1
  76. streamlit/static/static/js/index.DrZDuQMW.js +0 -1
  77. streamlit/static/static/js/index.LE5mhmys.js +0 -1
  78. streamlit/static/static/js/index.LR3ezjJk.js +0 -1
  79. streamlit/static/static/js/useBasicWidgetState.CWF6bmbb.js +0 -1
  80. {streamlit_nightly-1.46.1.dev20250619.data → streamlit_nightly-1.46.1.dev20250622.data}/scripts/streamlit.cmd +0 -0
  81. {streamlit_nightly-1.46.1.dev20250619.dist-info → streamlit_nightly-1.46.1.dev20250622.dist-info}/WHEEL +0 -0
  82. {streamlit_nightly-1.46.1.dev20250619.dist-info → streamlit_nightly-1.46.1.dev20250622.dist-info}/entry_points.txt +0 -0
  83. {streamlit_nightly-1.46.1.dev20250619.dist-info → streamlit_nightly-1.46.1.dev20250622.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- import{r as v,bO as tn,bP as rn,bQ as nn,bR as an,d as Cn,bS as In,g as En,bt as J,bL as Fe,bM as Be,bT as Hn,bK as on,bu as N,G as sn,bU as xn,bV as ln,bW as Or,bX as An,bv as Xe,bY as Tn,bZ as Rn,b_ as Ln,A as un,I as jn,z as Dr,b6 as Fn,aE as Bn,S as ft,M as cn,C as Wn,j as Ce,bp as Yn,bD as Nn,bq as Vn,b7 as Sr,br as zn,B as yt,bs as qn,bm as Un,aC as Xn}from"./index.DFe9cVuT.js";import{a as Qn}from"./useBasicWidgetState.CWF6bmbb.js";import{E as Kn}from"./ErrorOutline.esm.CE5CrZXn.js";import{D as Re,a as Le,T as Gn}from"./timepicker.DVt-Vl22.js";import{I as Jn}from"./input.DmY67J2b.js";import{I as Zn}from"./base-input.CfAzppKq.js";import"./FormClearHelper.BWF61UOT.js";import"./possibleConstructorReturn.D5r5oVUP.js";import"./createSuper.rZ8o-25D.js";var ea=["title","size","color","overrides"];function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Pt.apply(this,arguments)}function ta(e,r){if(e==null)return{};var n=ra(e,r),a,t;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)a=o[t],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function ra(e,r){if(e==null)return{};var n={},a=Object.keys(e),t,o;for(o=0;o<a.length;o++)t=a[o],!(r.indexOf(t)>=0)&&(n[t]=e[t]);return n}function na(e,r){return sa(e)||ia(e,r)||oa(e,r)||aa()}function aa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as v,bP as tn,bQ as rn,bR as nn,bS as an,d as Cn,bT as In,g as En,bt as J,bM as Fe,bN as Be,bU as Hn,bL as on,bu as N,G as sn,bV as xn,bW as ln,bX as Or,bY as An,bv as Xe,bZ as Tn,b_ as Rn,b$ as Ln,A as un,I as jn,z as Dr,b6 as Fn,aE as Bn,S as ft,M as cn,C as Wn,j as Ce,bp as Yn,bE as Nn,bq as Vn,b7 as Sr,br as zn,B as yt,bs as qn,bm as Un,aC as Xn}from"./index.BFZO9BwP.js";import{a as Qn}from"./useBasicWidgetState.GEeXHHcq.js";import{E as Kn}from"./ErrorOutline.esm.DV0xGZr0.js";import{D as Re,a as Le,T as Gn}from"./timepicker.CmUmXHhB.js";import{I as Jn}from"./input.Cc_dbkdO.js";import{I as Zn}from"./base-input.CD_ZJb6M.js";import"./FormClearHelper.B4Xd3eAo.js";import"./possibleConstructorReturn.B1UQDThh.js";import"./createSuper.CYFdzcEc.js";var ea=["title","size","color","overrides"];function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Pt.apply(this,arguments)}function ta(e,r){if(e==null)return{};var n=ra(e,r),a,t;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)a=o[t],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function ra(e,r){if(e==null)return{};var n={},a=Object.keys(e),t,o;for(o=0;o<a.length;o++)t=a[o],!(r.indexOf(t)>=0)&&(n[t]=e[t]);return n}function na(e,r){return sa(e)||ia(e,r)||oa(e,r)||aa()}function aa(){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 oa(e,r){if(e){if(typeof e=="string")return wr(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wr(e,r)}}function wr(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function ia(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],t=!0,o=!1,i,s;try{for(n=n.call(e);!(t=(i=n.next()).done)&&(a.push(i.value),!(r&&a.length===r));t=!0);}catch(u){o=!0,s=u}finally{try{!t&&n.return!=null&&n.return()}finally{if(o)throw s}}return a}}function sa(e){if(Array.isArray(e))return e}function la(e,r){var n=tn(),a=na(n,2),t=a[1],o=e.title,i=o===void 0?"Left":o,s=e.size,u=e.color,c=e.overrides,p=c===void 0?{}:c,d=ta(e,ea),h=rn({component:t.icons&&t.icons.ChevronLeft?t.icons.ChevronLeft:null},p&&p.Svg?nn(p.Svg):{});return v.createElement(an,Pt({viewBox:"0 0 24 24",ref:r,title:i,size:s,color:u,overrides:{Svg:h}},d),v.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 _r=v.forwardRef(la);var ua=["title","size","color","overrides"];function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ct.apply(this,arguments)}function ca(e,r){if(e==null)return{};var n=da(e,r),a,t;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)a=o[t],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function da(e,r){if(e==null)return{};var n={},a=Object.keys(e),t,o;for(o=0;o<a.length;o++)t=a[o],!(r.indexOf(t)>=0)&&(n[t]=e[t]);return n}function fa(e,r){return ya(e)||ga(e,r)||ha(e,r)||pa()}function pa(){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 ha(e,r){if(e){if(typeof e=="string")return kr(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kr(e,r)}}function kr(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function ga(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],t=!0,o=!1,i,s;try{for(n=n.call(e);!(t=(i=n.next()).done)&&(a.push(i.value),!(r&&a.length===r));t=!0);}catch(u){o=!0,s=u}finally{try{!t&&n.return!=null&&n.return()}finally{if(o)throw s}}return a}}function ya(e){if(Array.isArray(e))return e}function ma(e,r){var n=tn(),a=fa(n,2),t=a[1],o=e.title,i=o===void 0?"Right":o,s=e.size,u=e.color,c=e.overrides,p=c===void 0?{}:c,d=ca(e,ua),h=rn({component:t.icons&&t.icons.ChevronRight?t.icons.ChevronRight:null},p&&p.Svg?nn(p.Svg):{});return v.createElement(an,Ct({viewBox:"0 0 24 24",ref:r,title:i,size:s,color:u,overrides:{Svg:h}},d),v.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 $r=v.forwardRef(ma);var mt={exports:{}},vt,Mr;function va(){if(Mr)return vt;Mr=1;function e(f){return f&&typeof f=="object"&&"default"in f?f.default:f}var r=e(Cn()),n=In();function a(f,O){for(var k=Object.getOwnPropertyNames(O),m=0;m<k.length;m++){var l=k[m],P=Object.getOwnPropertyDescriptor(O,l);P&&P.configurable&&f[l]===void 0&&Object.defineProperty(f,l,P)}return f}function t(){return(t=Object.assign||function(f){for(var O=1;O<arguments.length;O++){var k=arguments[O];for(var m in k)Object.prototype.hasOwnProperty.call(k,m)&&(f[m]=k[m])}return f}).apply(this,arguments)}function o(f,O){f.prototype=Object.create(O.prototype),a(f.prototype.constructor=f,O)}function i(f,O){if(f==null)return{};var k,m,l={},P=Object.keys(f);for(m=0;m<P.length;m++)k=P[m],0<=O.indexOf(k)||(l[k]=f[k]);return l}function s(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}var u=function(f,O,k,m,l,P,q,ae){if(!f){var T;if(O===void 0)T=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var F=[k,m,l,P,q,ae],Y=0;(T=new Error(O.replace(/%s/g,function(){return F[Y++]}))).name="Invariant Violation"}throw T.framesToPop=1,T}},c=u;function p(f,O,k){if("selectionStart"in f&&"selectionEnd"in f)f.selectionStart=O,f.selectionEnd=k;else{var m=f.createTextRange();m.collapse(!0),m.moveStart("character",O),m.moveEnd("character",k-O),m.select()}}function d(f){var O=0,k=0;if("selectionStart"in f&&"selectionEnd"in f)O=f.selectionStart,k=f.selectionEnd;else{var m=document.selection.createRange();m.parentElement()===f&&(O=-m.moveStart("character",-f.value.length),k=-m.moveEnd("character",-f.value.length))}return{start:O,end:k,length:k-O}}var h={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},y="_";function b(f,O,k){var m="",l="",P=null,q=[];if(O===void 0&&(O=y),k==null&&(k=h),!f||typeof f!="string")return{maskChar:O,formatChars:k,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var ae=!1;return f.split("").forEach(function(T){ae=!ae&&T==="\\"||(ae||!k[T]?(q.push(m.length),m.length===q.length-1&&(l+=T)):P=m.length+1,m+=T,!1)}),{maskChar:O,formatChars:k,prefix:l,mask:m,lastEditablePosition:P,permanents:q}}function g(f,O){return f.permanents.indexOf(O)!==-1}function S(f,O,k){var m=f.mask,l=f.formatChars;if(!k)return!1;if(g(f,O))return m[O]===k;var P=l[m[O]];return new RegExp(P).test(k)}function $(f,O){return O.split("").every(function(k,m){return g(f,m)||!S(f,m,k)})}function D(f,O){var k=f.maskChar,m=f.prefix;if(!k){for(;O.length>m.length&&g(f,O.length-1);)O=O.slice(0,O.length-1);return O.length}for(var l=m.length,P=O.length;P>=m.length;P--){var q=O[P];if(!g(f,P)&&S(f,P,q)){l=P+1;break}}return l}function w(f,O){return D(f,O)===f.mask.length}function _(f,O){var k=f.maskChar,m=f.mask,l=f.prefix;if(!k){for((O=I(f,"",O,0)).length<l.length&&(O=l);O.length<m.length&&g(f,O.length);)O+=m[O.length];return O}if(O)return I(f,_(f,""),O,0);for(var P=0;P<m.length;P++)g(f,P)?O+=m[P]:O+=k;return O}function B(f,O,k,m){var l=k+m,P=f.maskChar,q=f.mask,ae=f.prefix,T=O.split("");if(P)return T.map(function(Y,oe){return oe<k||l<=oe?Y:g(f,oe)?q[oe]:P}).join("");for(var F=l;F<T.length;F++)g(f,F)&&(T[F]="");return k=Math.max(ae.length,k),T.splice(k,l-k),O=T.join(""),_(f,O)}function I(f,O,k,m){var l=f.mask,P=f.maskChar,q=f.prefix,ae=k.split(""),T=w(f,O);return!P&&m>O.length&&(O+=l.slice(O.length,m)),ae.every(function(F){for(;ue=F,g(f,U=m)&&ue!==l[U];){if(m>=O.length&&(O+=l[m]),Y=F,oe=m,P&&g(f,oe)&&Y===P)return!0;if(++m>=l.length)return!1}var Y,oe,U,ue;return!S(f,m,F)&&F!==P||(m<O.length?O=P||T||m<q.length?O.slice(0,m)+F+O.slice(m+1):(O=O.slice(0,m)+F+O.slice(m),_(f,O)):P||(O+=F),++m<l.length)}),O}function x(f,O,k,m){var l=f.mask,P=f.maskChar,q=k.split(""),ae=m;return q.every(function(T){for(;Y=T,g(f,F=m)&&Y!==l[F];)if(++m>=l.length)return!1;var F,Y;return(S(f,m,T)||T===P)&&m++,m<l.length}),m-ae}function L(f,O){for(var k=O;0<=k;--k)if(!g(f,k))return k;return null}function C(f,O){for(var k=f.mask,m=O;m<k.length;++m)if(!g(f,m))return m;return null}function j(f){return f||f===0?f+"":""}function H(f,O,k,m,l){var P=f.mask,q=f.prefix,ae=f.lastEditablePosition,T=O,F="",Y=0,oe=0,U=Math.min(l.start,k.start);return k.end>l.start?oe=(Y=x(f,m,F=T.slice(l.start,k.end),U))?l.length:0:T.length<m.length&&(oe=m.length-T.length),T=m,oe&&(oe===1&&!l.length&&(U=l.start===k.start?C(f,k.start):L(f,k.start)),T=B(f,T,U,oe)),T=I(f,T,F,U),(U+=Y)>=P.length?U=P.length:U<q.length&&!Y?U=q.length:U>=q.length&&U<ae&&Y&&(U=C(f,U)),F||(F=null),{value:T=_(f,T),enteredString:F,selection:{start:U,end:U}}}function E(){var f=new RegExp("windows","i"),O=new RegExp("phone","i"),k=navigator.userAgent;return f.test(k)&&O.test(k)}function A(f){return typeof f=="function"}function R(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function ne(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function Q(f){return(ne()?R():function(){return setTimeout(f,1e3/60)})(f)}function K(f){(ne()||clearTimeout)(f)}var re=function(f){function O(m){var l=f.call(this,m)||this;l.focused=!1,l.mounted=!1,l.previousSelection=null,l.selectionDeferId=null,l.saveSelectionLoopDeferId=null,l.saveSelectionLoop=function(){l.previousSelection=l.getSelection(),l.saveSelectionLoopDeferId=Q(l.saveSelectionLoop)},l.runSaveSelectionLoop=function(){l.saveSelectionLoopDeferId===null&&l.saveSelectionLoop()},l.stopSaveSelectionLoop=function(){l.saveSelectionLoopDeferId!==null&&(K(l.saveSelectionLoopDeferId),l.saveSelectionLoopDeferId=null,l.previousSelection=null)},l.getInputDOMNode=function(){if(!l.mounted)return null;var M=n.findDOMNode(s(s(l))),W=typeof window<"u"&&M instanceof window.Element;if(M&&!W)return null;if(M.nodeName!=="INPUT"&&(M=M.querySelector("input")),!M)throw new Error("react-input-mask: inputComponent doesn't contain input node");return M},l.getInputValue=function(){var M=l.getInputDOMNode();return M?M.value:null},l.setInputValue=function(M){var W=l.getInputDOMNode();W&&(l.value=M,W.value=M)},l.setCursorToEnd=function(){var M=D(l.maskOptions,l.value),W=C(l.maskOptions,M);W!==null&&l.setCursorPosition(W)},l.setSelection=function(M,W,X){X===void 0&&(X={});var V=l.getInputDOMNode(),Z=l.isFocused();V&&Z&&(X.deferred||p(V,M,W),l.selectionDeferId!==null&&K(l.selectionDeferId),l.selectionDeferId=Q(function(){l.selectionDeferId=null,p(V,M,W)}),l.previousSelection={start:M,end:W,length:Math.abs(W-M)})},l.getSelection=function(){return d(l.getInputDOMNode())},l.getCursorPosition=function(){return l.getSelection().start},l.setCursorPosition=function(M){l.setSelection(M,M)},l.isFocused=function(){return l.focused},l.getBeforeMaskedValueChangeConfig=function(){var M=l.maskOptions,W=M.mask,X=M.maskChar,V=M.permanents,Z=M.formatChars;return{mask:W,maskChar:X,permanents:V,alwaysShowMask:!!l.props.alwaysShowMask,formatChars:Z}},l.isInputAutofilled=function(M,W,X,V){var Z=l.getInputDOMNode();try{if(Z.matches(":-webkit-autofill"))return!0}catch{}return!l.focused||V.end<X.length&&W.end===M.length},l.onChange=function(M){var W=s(s(l)).beforePasteState,X=s(s(l)).previousSelection,V=l.props.beforeMaskedValueChange,Z=l.getInputValue(),ge=l.value,ye=l.getSelection();l.isInputAutofilled(Z,ye,ge,X)&&(ge=_(l.maskOptions,""),X={start:0,end:0,length:0}),W&&(X=W.selection,ge=W.value,ye={start:X.start+Z.length,end:X.start+Z.length,length:0},Z=ge.slice(0,X.start)+Z+ge.slice(X.end),l.beforePasteState=null);var $e=H(l.maskOptions,Z,ye,ge,X),Ge=$e.enteredString,be=$e.selection,He=$e.value;if(A(V)){var je=V({value:He,selection:be},{value:ge,selection:X},Ge,l.getBeforeMaskedValueChangeConfig());He=je.value,be=je.selection}l.setInputValue(He),A(l.props.onChange)&&l.props.onChange(M),l.isWindowsPhoneBrowser?l.setSelection(be.start,be.end,{deferred:!0}):l.setSelection(be.start,be.end)},l.onFocus=function(M){var W=l.props.beforeMaskedValueChange,X=l.maskOptions,V=X.mask,Z=X.prefix;if(l.focused=!0,l.mounted=!0,V){if(l.value)D(l.maskOptions,l.value)<l.maskOptions.mask.length&&l.setCursorToEnd();else{var ge=_(l.maskOptions,Z),ye=_(l.maskOptions,ge),$e=D(l.maskOptions,ye),Ge=C(l.maskOptions,$e),be={start:Ge,end:Ge};if(A(W)){var He=W({value:ye,selection:be},{value:l.value,selection:null},null,l.getBeforeMaskedValueChangeConfig());ye=He.value,be=He.selection}var je=ye!==l.getInputValue();je&&l.setInputValue(ye),je&&A(l.props.onChange)&&l.props.onChange(M),l.setSelection(be.start,be.end)}l.runSaveSelectionLoop()}A(l.props.onFocus)&&l.props.onFocus(M)},l.onBlur=function(M){var W=l.props.beforeMaskedValueChange,X=l.maskOptions.mask;if(l.stopSaveSelectionLoop(),l.focused=!1,X&&!l.props.alwaysShowMask&&$(l.maskOptions,l.value)){var V="";A(W)&&(V=W({value:V,selection:null},{value:l.value,selection:l.previousSelection},null,l.getBeforeMaskedValueChangeConfig()).value);var Z=V!==l.getInputValue();Z&&l.setInputValue(V),Z&&A(l.props.onChange)&&l.props.onChange(M)}A(l.props.onBlur)&&l.props.onBlur(M)},l.onMouseDown=function(M){if(!l.focused&&document.addEventListener){l.mouseDownX=M.clientX,l.mouseDownY=M.clientY,l.mouseDownTime=new Date().getTime();var W=function X(V){if(document.removeEventListener("mouseup",X),l.focused){var Z=Math.abs(V.clientX-l.mouseDownX),ge=Math.abs(V.clientY-l.mouseDownY),ye=Math.max(Z,ge),$e=new Date().getTime()-l.mouseDownTime;(ye<=10&&$e<=200||ye<=5&&$e<=300)&&l.setCursorToEnd()}};document.addEventListener("mouseup",W)}A(l.props.onMouseDown)&&l.props.onMouseDown(M)},l.onPaste=function(M){A(l.props.onPaste)&&l.props.onPaste(M),M.defaultPrevented||(l.beforePasteState={value:l.getInputValue(),selection:l.getSelection()},l.setInputValue(""))},l.handleRef=function(M){l.props.children==null&&A(l.props.inputRef)&&l.props.inputRef(M)};var P=m.mask,q=m.maskChar,ae=m.formatChars,T=m.alwaysShowMask,F=m.beforeMaskedValueChange,Y=m.defaultValue,oe=m.value;l.maskOptions=b(P,q,ae),Y==null&&(Y=""),oe==null&&(oe=Y);var U=j(oe);if(l.maskOptions.mask&&(T||U)&&(U=_(l.maskOptions,U),A(F))){var ue=m.value;m.value==null&&(ue=Y),U=F({value:U,selection:null},{value:ue=j(ue),selection:null},null,l.getBeforeMaskedValueChangeConfig()).value}return l.value=U,l}o(O,f);var k=O.prototype;return k.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=E(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},k.componentDidUpdate=function(){var m=this.previousSelection,l=this.props,P=l.beforeMaskedValueChange,q=l.alwaysShowMask,ae=l.mask,T=l.maskChar,F=l.formatChars,Y=this.maskOptions,oe=q||this.isFocused(),U=this.props.value!=null,ue=U?j(this.props.value):this.value,M=m?m.start:null;if(this.maskOptions=b(ae,T,F),this.maskOptions.mask){!Y.mask&&this.isFocused()&&this.runSaveSelectionLoop();var W=this.maskOptions.mask&&this.maskOptions.mask!==Y.mask;if(Y.mask||U||(ue=this.getInputValue()),(W||this.maskOptions.mask&&(ue||oe))&&(ue=_(this.maskOptions,ue)),W){var X=D(this.maskOptions,ue);(M===null||X<M)&&(M=w(this.maskOptions,ue)?X:C(this.maskOptions,X))}!this.maskOptions.mask||!$(this.maskOptions,ue)||oe||U&&this.props.value||(ue="");var V={start:M,end:M};if(A(P)){var Z=P({value:ue,selection:V},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());ue=Z.value,V=Z.selection}this.value=ue;var ge=this.getInputValue()!==this.value;ge?(this.setInputValue(this.value),this.forceUpdate()):W&&this.forceUpdate();var ye=!1;V.start!=null&&V.end!=null&&(ye=!m||m.start!==V.start||m.end!==V.end),(ye||ge)&&this.setSelection(V.start,V.end)}else Y.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},k.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&K(this.selectionDeferId),this.stopSaveSelectionLoop()},k.render=function(){var m,l=this.props,P=(l.mask,l.alwaysShowMask,l.maskChar,l.formatChars,l.inputRef,l.beforeMaskedValueChange,l.children),q=i(l,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(P){A(P)||c(!1);var ae=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],T=t({},q);ae.forEach(function(Y){return delete T[Y]}),m=P(T),ae.filter(function(Y){return m.props[Y]!=null&&m.props[Y]!==q[Y]}).length&&c(!1)}else m=r.createElement("input",t({ref:this.handleRef},q));var F={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(q.disabled||q.readOnly||(F.onChange=this.onChange,F.onPaste=this.onPaste,F.onMouseDown=this.onMouseDown),q.value!=null&&(F.value=this.value)),m=r.cloneElement(m,F)},O}(r.Component);return vt=re,vt}var Pr;function ba(){return Pr||(Pr=1,mt.exports=va()),mt.exports}var Oa=ba();const Da=En(Oa);var Sa=["startEnhancer","endEnhancer","error","positive","onChange","onFocus","onBlur","value","disabled","readOnly"],wa=["Input"],_a=["mask","maskChar","overrides"];function Cr(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function bt(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Cr(Object(n),!0).forEach(function(a){ka(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function ka(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function tt(e){"@babel/helpers - typeof";return tt=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},tt(e)}function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Qe.apply(this,arguments)}function It(e,r){if(e==null)return{};var n=$a(e,r),a,t;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)a=o[t],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function $a(e,r){if(e==null)return{};var n={},a=Object.keys(e),t,o;for(o=0;o<a.length;o++)t=a[o],!(r.indexOf(t)>=0)&&(n[t]=e[t]);return n}var dn=v.forwardRef(function(e,r){e.startEnhancer,e.endEnhancer,e.error,e.positive;var n=e.onChange,a=e.onFocus,t=e.onBlur,o=e.value,i=e.disabled,s=e.readOnly,u=It(e,Sa);return v.createElement(Da,Qe({onChange:n,onFocus:a,onBlur:t,value:o,disabled:i,readOnly:s},u),function(c){return v.createElement(Zn,Qe({ref:r,onChange:n,onFocus:a,onBlur:t,value:o,disabled:i,readOnly:s},c))})});dn.displayName="MaskOverride";function fn(e){var r=e.mask,n=e.maskChar,a=e.overrides;a=a===void 0?{}:a;var t=a.Input,o=t===void 0?{}:t,i=It(a,wa),s=It(e,_a),u=dn,c={},p={};typeof o=="function"?u=o:tt(o)==="object"&&(u=o.component||u,c=o.props||{},p=o.style||{}),tt(c)==="object"&&(c=bt(bt({},c),{},{mask:c.mask||r,maskChar:c.maskChar||n}));var d=bt({Input:{component:u,props:c,style:p}},i);return v.createElement(Jn,Qe({},s,{overrides:d}))}fn.defaultProps={maskChar:" "};const pn=6048e5,Ma=864e5,Ir=Symbol.for("constructDateFrom");function Pe(e,r){return typeof e=="function"?e(r):e&&typeof e=="object"&&Ir in e?e[Ir](r):e instanceof Date?new e.constructor(r):new Date(r)}function Se(e,r){return Pe(r||e,e)}let Pa={};function pt(){return Pa}function Ke(e,r){var s,u,c,p;const n=pt(),a=(r==null?void 0:r.weekStartsOn)??((u=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((p=(c=n.locale)==null?void 0:c.options)==null?void 0:p.weekStartsOn)??0,t=Se(e,r==null?void 0:r.in),o=t.getDay(),i=(o<a?7:0)+o-a;return t.setDate(t.getDate()-i),t.setHours(0,0,0,0),t}function rt(e,r){return Ke(e,{...r,weekStartsOn:1})}function hn(e,r){const n=Se(e,r==null?void 0:r.in),a=n.getFullYear(),t=Pe(n,0);t.setFullYear(a+1,0,4),t.setHours(0,0,0,0);const o=rt(t),i=Pe(n,0);i.setFullYear(a,0,4),i.setHours(0,0,0,0);const s=rt(i);return n.getTime()>=o.getTime()?a+1:n.getTime()>=s.getTime()?a:a-1}function Er(e){const r=Se(e),n=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return n.setUTCFullYear(r.getFullYear()),+e-+n}function Ca(e,...r){const n=Pe.bind(null,r.find(a=>typeof a=="object"));return r.map(n)}function Hr(e,r){const n=Se(e,r==null?void 0:r.in);return n.setHours(0,0,0,0),n}function Ia(e,r,n){const[a,t]=Ca(n==null?void 0:n.in,e,r),o=Hr(a),i=Hr(t),s=+o-Er(o),u=+i-Er(i);return Math.round((s-u)/Ma)}function Ea(e,r){const n=hn(e,r),a=Pe(e,0);return a.setFullYear(n,0,4),a.setHours(0,0,0,0),rt(a)}function Ha(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function xa(e){return!(!Ha(e)&&typeof e!="number"||isNaN(+Se(e)))}function Aa(e,r){const n=Se(e,r==null?void 0:r.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Ta={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ra=(e,r,n)=>{let a;const t=Ta[e];return typeof t=="string"?a=t:r===1?a=t.one:a=t.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function Ot(e){return(r={})=>{const n=r.width?String(r.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const La={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ja={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fa={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ba={date:Ot({formats:La,defaultWidth:"full"}),time:Ot({formats:ja,defaultWidth:"full"}),dateTime:Ot({formats:Fa,defaultWidth:"full"})},Wa={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ya=(e,r,n,a)=>Wa[e];function We(e){return(r,n)=>{const a=n!=null&&n.context?String(n.context):"standalone";let t;if(a==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;t=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;t=e.values[s]||e.values[i]}const o=e.argumentCallback?e.argumentCallback(r):r;return t[o]}}const Na={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Va={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},za={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},qa={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ua={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Xa={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Qa=(e,r)=>{const n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ka={ordinalNumber:Qa,era:We({values:Na,defaultWidth:"wide"}),quarter:We({values:Va,defaultWidth:"wide",argumentCallback:e=>e-1}),month:We({values:za,defaultWidth:"wide"}),day:We({values:qa,defaultWidth:"wide"}),dayPeriod:We({values:Ua,defaultWidth:"wide",formattingValues:Xa,defaultFormattingWidth:"wide"})};function Ye(e){return(r,n={})=>{const a=n.width,t=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=r.match(t);if(!o)return null;const i=o[0],s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?Ja(s,d=>d.test(i)):Ga(s,d=>d.test(i));let c;c=e.valueCallback?e.valueCallback(u):u,c=n.valueCallback?n.valueCallback(c):c;const p=r.slice(i.length);return{value:c,rest:p}}}function Ga(e,r){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r(e[n]))return n}function Ja(e,r){for(let n=0;n<e.length;n++)if(r(e[n]))return n}function Za(e){return(r,n={})=>{const a=r.match(e.matchPattern);if(!a)return null;const t=a[0],o=r.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=n.valueCallback?n.valueCallback(i):i;const s=r.slice(t.length);return{value:i,rest:s}}}const eo=/^(\d+)(th|st|nd|rd)?/i,to=/\d+/i,ro={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},no={any:[/^b/i,/^(a|c)/i]},ao={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},oo={any:[/1/i,/2/i,/3/i,/4/i]},io={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},so={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},lo={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},uo={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},co={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},fo={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},po={ordinalNumber:Za({matchPattern:eo,parsePattern:to,valueCallback:e=>parseInt(e,10)}),era:Ye({matchPatterns:ro,defaultMatchWidth:"wide",parsePatterns:no,defaultParseWidth:"any"}),quarter:Ye({matchPatterns:ao,defaultMatchWidth:"wide",parsePatterns:oo,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ye({matchPatterns:io,defaultMatchWidth:"wide",parsePatterns:so,defaultParseWidth:"any"}),day:Ye({matchPatterns:lo,defaultMatchWidth:"wide",parsePatterns:uo,defaultParseWidth:"any"}),dayPeriod:Ye({matchPatterns:co,defaultMatchWidth:"any",parsePatterns:fo,defaultParseWidth:"any"})},Ze={code:"en-US",formatDistance:Ra,formatLong:Ba,formatRelative:Ya,localize:Ka,match:po,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ho(e,r){const n=Se(e,r==null?void 0:r.in);return Ia(n,Aa(n))+1}function go(e,r){const n=Se(e,r==null?void 0:r.in),a=+rt(n)-+Ea(n);return Math.round(a/pn)+1}function gn(e,r){var p,d,h,y;const n=Se(e,r==null?void 0:r.in),a=n.getFullYear(),t=pt(),o=(r==null?void 0:r.firstWeekContainsDate)??((d=(p=r==null?void 0:r.locale)==null?void 0:p.options)==null?void 0:d.firstWeekContainsDate)??t.firstWeekContainsDate??((y=(h=t.locale)==null?void 0:h.options)==null?void 0:y.firstWeekContainsDate)??1,i=Pe((r==null?void 0:r.in)||e,0);i.setFullYear(a+1,0,o),i.setHours(0,0,0,0);const s=Ke(i,r),u=Pe((r==null?void 0:r.in)||e,0);u.setFullYear(a,0,o),u.setHours(0,0,0,0);const c=Ke(u,r);return+n>=+s?a+1:+n>=+c?a:a-1}function yo(e,r){var s,u,c,p;const n=pt(),a=(r==null?void 0:r.firstWeekContainsDate)??((u=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(c=n.locale)==null?void 0:c.options)==null?void 0:p.firstWeekContainsDate)??1,t=gn(e,r),o=Pe((r==null?void 0:r.in)||e,0);return o.setFullYear(t,0,a),o.setHours(0,0,0,0),Ke(o,r)}function mo(e,r){const n=Se(e,r==null?void 0:r.in),a=+Ke(n,r)-+yo(n,r);return Math.round(a/pn)+1}function z(e,r){const n=e<0?"-":"",a=Math.abs(e).toString().padStart(r,"0");return n+a}const Me={y(e,r){const n=e.getFullYear(),a=n>0?n:1-n;return z(r==="yy"?a%100:a,r.length)},M(e,r){const n=e.getMonth();return r==="M"?String(n+1):z(n+1,2)},d(e,r){return z(e.getDate(),r.length)},a(e,r){const n=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,r){return z(e.getHours()%12||12,r.length)},H(e,r){return z(e.getHours(),r.length)},m(e,r){return z(e.getMinutes(),r.length)},s(e,r){return z(e.getSeconds(),r.length)},S(e,r){const n=r.length,a=e.getMilliseconds(),t=Math.trunc(a*Math.pow(10,n-3));return z(t,r.length)}},xe={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},xr={G:function(e,r,n){const a=e.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(e,r,n){if(r==="yo"){const a=e.getFullYear(),t=a>0?a:1-a;return n.ordinalNumber(t,{unit:"year"})}return Me.y(e,r)},Y:function(e,r,n,a){const t=gn(e,a),o=t>0?t:1-t;if(r==="YY"){const i=o%100;return z(i,2)}return r==="Yo"?n.ordinalNumber(o,{unit:"year"}):z(o,r.length)},R:function(e,r){const n=hn(e);return z(n,r.length)},u:function(e,r){const n=e.getFullYear();return z(n,r.length)},Q:function(e,r,n){const a=Math.ceil((e.getMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return z(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,r,n){const a=Math.ceil((e.getMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return z(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,r,n){const a=e.getMonth();switch(r){case"M":case"MM":return Me.M(e,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,r,n){const a=e.getMonth();switch(r){case"L":return String(a+1);case"LL":return z(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,r,n,a){const t=mo(e,a);return r==="wo"?n.ordinalNumber(t,{unit:"week"}):z(t,r.length)},I:function(e,r,n){const a=go(e);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):z(a,r.length)},d:function(e,r,n){return r==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Me.d(e,r)},D:function(e,r,n){const a=ho(e);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):z(a,r.length)},E:function(e,r,n){const a=e.getDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,r,n,a){const t=e.getDay(),o=(t-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return z(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(t,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})}},c:function(e,r,n,a){const t=e.getDay(),o=(t-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return z(o,r.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})}},i:function(e,r,n){const a=e.getDay(),t=a===0?7:a;switch(r){case"i":return String(t);case"ii":return z(t,r.length);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,r,n){const t=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})}},b:function(e,r,n){const a=e.getHours();let t;switch(a===12?t=xe.noon:a===0?t=xe.midnight:t=a/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})}},B:function(e,r,n){const a=e.getHours();let t;switch(a>=17?t=xe.evening:a>=12?t=xe.afternoon:a>=4?t=xe.morning:t=xe.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})}},h:function(e,r,n){if(r==="ho"){let a=e.getHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return Me.h(e,r)},H:function(e,r,n){return r==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Me.H(e,r)},K:function(e,r,n){const a=e.getHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):z(a,r.length)},k:function(e,r,n){let a=e.getHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):z(a,r.length)},m:function(e,r,n){return r==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Me.m(e,r)},s:function(e,r,n){return r==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Me.s(e,r)},S:function(e,r){return Me.S(e,r)},X:function(e,r,n){const a=e.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return Tr(a);case"XXXX":case"XX":return Ie(a);case"XXXXX":case"XXX":default:return Ie(a,":")}},x:function(e,r,n){const a=e.getTimezoneOffset();switch(r){case"x":return Tr(a);case"xxxx":case"xx":return Ie(a);case"xxxxx":case"xxx":default:return Ie(a,":")}},O:function(e,r,n){const a=e.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Ar(a,":");case"OOOO":default:return"GMT"+Ie(a,":")}},z:function(e,r,n){const a=e.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Ar(a,":");case"zzzz":default:return"GMT"+Ie(a,":")}},t:function(e,r,n){const a=Math.trunc(+e/1e3);return z(a,r.length)},T:function(e,r,n){return z(+e,r.length)}};function Ar(e,r=""){const n=e>0?"-":"+",a=Math.abs(e),t=Math.trunc(a/60),o=a%60;return o===0?n+String(t):n+String(t)+r+z(o,2)}function Tr(e,r){return e%60===0?(e>0?"-":"+")+z(Math.abs(e)/60,2):Ie(e,r)}function Ie(e,r=""){const n=e>0?"-":"+",a=Math.abs(e),t=z(Math.trunc(a/60),2),o=z(a%60,2);return n+t+r+o}const Rr=(e,r)=>{switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},yn=(e,r)=>{switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},vo=(e,r)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],t=n[2];if(!t)return Rr(e,r);let o;switch(a){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",Rr(a,r)).replace("{{time}}",yn(t,r))},bo={p:yn,P:vo},Oo=/^D+$/,Do=/^Y+$/,So=["D","DD","YY","YYYY"];function wo(e){return Oo.test(e)}function _o(e){return Do.test(e)}function ko(e,r,n){const a=$o(e,r,n);if(console.warn(a),So.includes(e))throw new RangeError(a)}function $o(e,r,n){const a=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${r}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Mo=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Po=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Co=/^'([^]*?)'?$/,Io=/''/g,Eo=/[a-zA-Z]/;function Lr(e,r,n){var p,d,h,y,b,g,S,$;const a=pt(),t=(n==null?void 0:n.locale)??a.locale??Ze,o=(n==null?void 0:n.firstWeekContainsDate)??((d=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:d.firstWeekContainsDate)??a.firstWeekContainsDate??((y=(h=a.locale)==null?void 0:h.options)==null?void 0:y.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((g=(b=n==null?void 0:n.locale)==null?void 0:b.options)==null?void 0:g.weekStartsOn)??a.weekStartsOn??(($=(S=a.locale)==null?void 0:S.options)==null?void 0:$.weekStartsOn)??0,s=Se(e,n==null?void 0:n.in);if(!xa(s))throw new RangeError("Invalid time value");let u=r.match(Po).map(D=>{const w=D[0];if(w==="p"||w==="P"){const _=bo[w];return _(D,t.formatLong)}return D}).join("").match(Mo).map(D=>{if(D==="''")return{isToken:!1,value:"'"};const w=D[0];if(w==="'")return{isToken:!1,value:Ho(D)};if(xr[w])return{isToken:!0,value:D};if(w.match(Eo))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:D}});t.localize.preprocessor&&(u=t.localize.preprocessor(s,u));const c={firstWeekContainsDate:o,weekStartsOn:i,locale:t};return u.map(D=>{if(!D.isToken)return D.value;const w=D.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&_o(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&wo(w))&&ko(w,r,String(e));const _=xr[w[0]];return _(s,w,t.localize,c)}).join("")}function Ho(e){const r=e.match(Co);return r?r[1].replace(Io,"'"):e}var Kt=Object.freeze({horizontal:"horizontal",vertical:"vertical"}),mn=[0,1,2,3,4,5,6],xo=[0,1,2,3,4,5,6,7,8,9,10,11],le={high:"high",default:"default"},ke={startDate:"startDate",endDate:"endDate"},Ao={locked:"locked"};function jr(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Te(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?jr(Object(n),!0).forEach(function(a){To(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function To(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var Gt=J("label",function(e){var r=e.$disabled,n=e.$theme,a=n.colors,t=n.typography;return Te(Te({},t.font250),{},{width:"100%",color:r?a.contentSecondary:a.contentPrimary,display:"block",paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0})});Gt.displayName="Label";Gt.displayName="Label";var Jt=J("span",function(e){var r=e.$theme.sizing;return{display:"flex",width:"100%",marginTop:r.scale300,marginRight:0,marginBottom:r.scale300,marginLeft:0}});Jt.displayName="LabelContainer";Jt.displayName="LabelContainer";var Zt=J("span",function(e){var r=e.$disabled,n=e.$counterError,a=e.$theme,t=a.colors,o=a.typography;return Te(Te({},o.font100),{},{flex:0,width:"100%",color:n?t.negative400:r?t.contentSecondary:t.contentPrimary})});Zt.displayName="LabelEndEnhancer";Zt.displayName="LabelEndEnhancer";var er=J("div",function(e){var r=e.$error,n=e.$positive,a=e.$theme,t=a.colors,o=a.sizing,i=a.typography,s=t.contentSecondary;return r?s=t.negative400:n&&(s=t.positive400),Te(Te({},i.font100),{},{color:s,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,marginTop:o.scale300,marginRight:0,marginBottom:o.scale300,marginLeft:0})});er.displayName="Caption";er.displayName="Caption";var tr=J("div",function(e){var r=e.$theme.sizing;return{width:"100%",marginBottom:r.scale600}});tr.displayName="ControlContainer";tr.displayName="ControlContainer";function Ee(){return Ee=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ee.apply(this,arguments)}function nt(e){"@babel/helpers - typeof";return nt=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},nt(e)}function Ro(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Lo(e,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(e,a.key,a)}}function jo(e,r,n){return r&&Lo(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fo(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Et(e,r)}function Et(e,r){return Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,t){return a.__proto__=t,a},Et(e,r)}function Bo(e){var r=No();return function(){var a=at(e),t;if(r){var o=at(this).constructor;t=Reflect.construct(a,arguments,o)}else t=a.apply(this,arguments);return Wo(this,t)}}function Wo(e,r){if(r&&(nt(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yo(e)}function Yo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function No(){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 at(e){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},at(e)}function Vo(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function zo(e,r,n,a){return r&&typeof r!="boolean"?typeof r=="function"?r(a):r:n&&typeof n!="boolean"?typeof n=="function"?n(a):n:e?typeof e=="function"?e(a):e:null}var Ht=function(e){Fo(n,e);var r=Bo(n);function n(){return Ro(this,n),r.apply(this,arguments)}return jo(n,[{key:"render",value:function(){var t=this.props,o=t.overrides,i=o.Label,s=o.LabelEndEnhancer,u=o.LabelContainer,c=o.Caption,p=o.ControlContainer,d=t.label,h=t.caption,y=t.disabled,b=t.error,g=t.positive,S=t.htmlFor,$=t.children,D=t.counter,w=v.Children.only($).props,_={$disabled:!!y,$error:!!b,$positive:!!g},B=Fe(i)||Gt,I=Fe(s)||Zt,x=Fe(u)||Jt,L=Fe(c)||er,C=Fe(p)||tr,j=zo(h,b,g,_),H=this.props.labelEndEnhancer;if(D){var E=null,A=null,R=null;nt(D)==="object"&&(A=D.length,E=D.maxLength,R=D.error),E=E||w.maxLength,A==null&&typeof w.value=="string"&&(A=w.value.length),A==null&&(A=0),_.$length=A,E==null?H||(H="".concat(A)):(_.$maxLength=A,H||(H="".concat(A,"/").concat(E)),A>E&&R==null&&(R=!0)),R&&(_.$error=!0,_.$counterError=!0)}return v.createElement(v.Fragment,null,d&&v.createElement(x,Ee({},_,Be(u)),v.createElement(B,Ee({"data-baseweb":"form-control-label",htmlFor:S||w.id},_,Be(i)),typeof d=="function"?d(_):d),!!H&&v.createElement(I,Ee({},_,Be(s)),typeof H=="function"?H(_):H)),v.createElement(Hn,null,function(ne){return v.createElement(C,Ee({"data-baseweb":"form-control-container"},_,Be(p)),v.Children.map($,function(Q,K){if(Q){var re=Q.key||String(K);return v.cloneElement(Q,{key:re,"aria-errormessage":b?ne:null,"aria-describedby":h||g?ne:null,disabled:w.disabled||y,error:typeof w.error<"u"?w.error:_.$error,positive:typeof w.positive<"u"?w.positive:_.$positive})}}),(!!h||!!b||g)&&v.createElement(L,Ee({"data-baseweb":"form-control-caption",id:ne},_,Be(c)),j))}))}}]),n}(v.Component);Vo(Ht,"defaultProps",{overrides:{},label:null,caption:null,disabled:!1,counter:!1});function Fr(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Br(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Fr(Object(n),!0).forEach(function(a){qo(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function qo(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var Uo=function(r){return xo.map(function(n){return{id:n.toString(),label:r(n)}})},Xo=function(r,n){return r.map(function(a){return n.includes(Number(a.id))?a:Br(Br({},a),{},{disabled:!0})})},Qo=function(r){var n=r.filterMonthsList,a=r.formatMonthLabel,t=Uo(a);return n&&(t=Xo(t,n)),t};function Ko(e){var r=e.$range,n=r===void 0?!1:r,a=e.$disabled,t=a===void 0?!1:a,o=e.$isHighlighted,i=o===void 0?!1:o,s=e.$isHovered,u=s===void 0?!1:s,c=e.$selected,p=c===void 0?!1:c,d=e.$hasRangeSelected,h=d===void 0?!1:d,y=e.$startDate,b=y===void 0?!1:y,g=e.$endDate,S=g===void 0?!1:g,$=e.$pseudoSelected,D=$===void 0?!1:$,w=e.$hasRangeHighlighted,_=w===void 0?!1:w,B=e.$pseudoHighlighted,I=B===void 0?!1:B,x=e.$hasRangeOnRight,L=x===void 0?!1:x,C=e.$startOfMonth,j=C===void 0?!1:C,H=e.$endOfMonth,E=H===void 0?!1:H,A=e.$outsideMonth,R=A===void 0?!1:A;return"".concat(+n).concat(+t).concat(+(i||u)).concat(+p).concat(+h).concat(+b).concat(+S).concat(+D).concat(+_).concat(+I).concat(+(_&&!I&&L)).concat(+(_&&!I&&!L)).concat(+j).concat(+E).concat(+R)}function Go(e,r){return ti(e)||ei(e,r)||Zo(e,r)||Jo()}function Jo(){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 Zo(e,r){if(e){if(typeof e=="string")return Wr(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wr(e,r)}}function Wr(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function ei(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],t=!0,o=!1,i,s;try{for(n=n.call(e);!(t=(i=n.next()).done)&&(a.push(i.value),!(r&&a.length===r));t=!0);}catch(u){o=!0,s=u}finally{try{!t&&n.return!=null&&n.return()}finally{if(o)throw s}}return a}}function ti(e){if(Array.isArray(e))return e}function Yr(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ie(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Yr(Object(n),!0).forEach(function(a){qe(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function qe(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var rr=J("div",function(e){var r=e.$separateRangeInputs;return ie({width:"100%"},r?{display:"flex",justifyContent:"center"}:{})});rr.displayName="StyledInputWrapper";rr.displayName="StyledInputWrapper";var nr=J("div",function(e){var r=e.$theme;return ie(ie({},r.typography.LabelMedium),{},{marginBottom:r.sizing.scale300})});nr.displayName="StyledInputLabel";nr.displayName="StyledInputLabel";var ar=J("div",function(e){var r=e.$theme;return{width:"100%",marginRight:r.sizing.scale300}});ar.displayName="StyledStartDate";ar.displayName="StyledStartDate";var or=J("div",function(e){return e.$theme,{width:"100%"}});or.displayName="StyledEndDate";or.displayName="StyledEndDate";var ir=J("div",function(e){var r=e.$theme,n=r.typography,a=r.colors,t=r.borders;return ie(ie({},n.font200),{},{color:a.calendarForeground,backgroundColor:a.calendarBackground,textAlign:"center",borderTopLeftRadius:t.surfaceBorderRadius,borderTopRightRadius:t.surfaceBorderRadius,borderBottomRightRadius:t.surfaceBorderRadius,borderBottomLeftRadius:t.surfaceBorderRadius,display:"inline-block"})});ir.displayName="StyledRoot";ir.displayName="StyledRoot";var sr=J("div",function(e){var r=e.$orientation;return{display:"flex",flexDirection:r===Kt.vertical?"column":"row"}});sr.displayName="StyledMonthContainer";sr.displayName="StyledMonthContainer";var lr=J("div",function(e){var r=e.$theme.sizing,n=e.$density;return{paddingTop:r.scale300,paddingBottom:n===le.high?r.scale400:r.scale300,paddingLeft:r.scale500,paddingRight:r.scale500}});lr.displayName="StyledCalendarContainer";lr.displayName="StyledCalendarContainer";var ot=J("div",function(e){var r=e.$theme,n=r.direction==="rtl"?"right":"left";return{marginBottom:r.sizing.scale600,paddingLeft:r.sizing.scale600,paddingRight:r.sizing.scale600,textAlign:n}});ot.displayName="StyledSelectorContainer";ot.displayName="StyledSelectorContainer";var ur=J("div",function(e){var r=e.$theme,n=r.typography,a=r.borders,t=r.colors,o=r.sizing,i=e.$density;return ie(ie({},i===le.high?n.LabelMedium:n.LabelLarge),{},{color:t.calendarHeaderForeground,display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:o.scale600,paddingBottom:o.scale300,paddingLeft:o.scale600,paddingRight:o.scale600,backgroundColor:t.calendarHeaderBackground,borderTopLeftRadius:a.surfaceBorderRadius,borderTopRightRadius:a.surfaceBorderRadius,borderBottomRightRadius:0,borderBottomLeftRadius:0,minHeight:i===le.high?"calc(".concat(o.scale800," + ").concat(o.scale0,")"):o.scale950})});ur.displayName="StyledCalendarHeader";ur.displayName="StyledCalendarHeader";var cr=J("div",function(e){return{color:e.$theme.colors.calendarHeaderForeground,backgroundColor:e.$theme.colors.calendarHeaderBackground,whiteSpace:"nowrap"}});cr.displayName="StyledMonthHeader";cr.displayName="StyledMonthHeader";var dr=J("button",function(e){var r=e.$theme,n=r.typography,a=r.colors,t=e.$isFocusVisible,o=e.$density;return ie(ie({},o===le.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:t?"0 0 0 3px ".concat(a.accent):"none"}})});dr.displayName="StyledMonthYearSelectButton";dr.displayName="StyledMonthYearSelectButton";var fr=J("span",function(e){var r=e.$theme.direction==="rtl"?"marginRight":"marginLeft";return qe({alignItems:"center",display:"flex"},r,e.$theme.sizing.scale500)});fr.displayName="StyledMonthYearSelectIconContainer";fr.displayName="StyledMonthYearSelectIconContainer";function vn(e){var r=e.$theme,n=e.$disabled,a=e.$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 pr=J("button",vn);pr.displayName="StyledPrevButton";pr.displayName="StyledPrevButton";var hr=J("button",vn);hr.displayName="StyledNextButton";hr.displayName="StyledNextButton";var gr=J("div",function(e){return{display:"inline-block"}});gr.displayName="StyledMonth";gr.displayName="StyledMonth";var yr=J("div",function(e){var r=e.$theme.sizing;return{whiteSpace:"nowrap",display:"flex",marginBottom:r.scale0}});yr.displayName="StyledWeek";yr.displayName="StyledWeek";function G(e,r){var n,a=e.substr(0,12)+"1"+e.substr(13),t=e.substr(0,13)+"1"+e.substr(14);return n={},qe(n,e,r),qe(n,a,r),qe(n,t,r),n}function Dt(e,r){var n=r.colors,a={":before":{content:null},":after":{content:null}},t=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"}},s={":before":{content:null}},u=1;e&&e[u]==="1"&&(t=o);var c=Object.assign({},G("001000000000000",{color:n.calendarDayForegroundPseudoSelected}),G("000100000000000",{color:n.calendarDayForegroundSelected}),G("001100000000000",{color:n.calendarDayForegroundSelectedHighlighted}),{"010000000000000":{color:n.calendarForegroundDisabled,":after":{content:null}}},{"011000000000000":{color:n.calendarForegroundDisabled,":after":{content:null}}},G("000000000000001",i),G("101000000000000",s),G("101010000000000",s),G("100100000000000",{color:n.calendarDayForegroundSelected}),G("101100000000000",{color:n.calendarDayForegroundSelectedHighlighted,":before":{content:null}}),G("100111100000000",{color:n.calendarDayForegroundSelected,":before":{content:null}}),G("101111100000000",{color:n.calendarDayForegroundSelectedHighlighted,":before":{content:null}}),G("100111000000000",{color:n.calendarDayForegroundSelected}),G("100110100000000",{color:n.calendarDayForegroundSelected,":before":{left:null,right:"50%"}}),G("100100001010000",{color:n.calendarDayForegroundSelected}),G("100100001001000",{color:n.calendarDayForegroundSelected,":before":{left:null,right:"50%"}}),G("101000001010000",{":before":{left:null,right:"50%"}}),{"101000001001000":{}},{"101000001001100":{}},{"101000001001010":{}},G("100010010000000",{color:n.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}),{"101000001100000":{color:n.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}},G("100000001100000",{color:n.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}),G("101111000000000",{color:n.calendarDayForegroundSelectedHighlighted}),G("101110100000000",{color:n.calendarDayForegroundSelectedHighlighted,":before":{left:null,right:"50%"}}),G("101010010000000",{color:n.calendarDayForegroundPseudoSelectedHighlighted,":before":{left:"0",width:"100%"}}),G("100000000000001",i),G("100000001010001",i),G("100000001001001",i),G("100010000000001",i));return c[e]||t}var mr=J("div",function(e){var r=e.$disabled,n=e.$isFocusVisible,a=e.$isHighlighted,t=e.$peekNextMonth,o=e.$pseudoSelected,i=e.$range,s=e.$selected,u=e.$outsideMonth,c=e.$outsideMonthWithinRange,p=e.$hasDateLabel,d=e.$density,h=e.$hasLockedBehavior,y=e.$selectedInput,b=e.$value,g=e.$theme,S=g.colors,$=g.typography,D=g.sizing,w=Ko(e),_;p?d===le.high?_="60px":_="70px":d===le.high?_="40px":_="48px";var B=Array.isArray(b)?b:[b,null],I=Go(B,2),x=I[0],L=I[1],C=y===ke.startDate?L!==null&&typeof L<"u":x!==null&&typeof x<"u",j=i&&!(h&&!C);return ie(ie(ie({},d===le.high?$.ParagraphSmall:$.ParagraphMedium),{},{boxSizing:"border-box",position:"relative",cursor:r||!t&&u?"default":"pointer",color:S.calendarForeground,display:"inline-block",width:d===le.high?"42px":"50px",height:_,lineHeight:d===le.high?D.scale700:D.scale900,textAlign:"center",paddingTop:D.scale300,paddingBottom:D.scale300,paddingLeft:D.scale300,paddingRight:D.scale300,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,outline:"none",backgroundColor:"transparent",transform:"scale(1)"},Dt(w,e.$theme)),{},{":after":ie(ie({zIndex:-1,content:'""',boxSizing:"border-box",display:"inline-block",boxShadow:n&&(!u||t)?"0 0 0 3px ".concat(S.accent):"none",backgroundColor:s?S.calendarDayBackgroundSelectedHighlighted:o&&a?S.calendarDayBackgroundPseudoSelectedHighlighted:S.calendarBackground,height:p?"100%":d===le.high?"42px":"50px",width:"100%",position:"absolute",top:p?0:"-1px",left:0,paddingTop:D.scale200,paddingBottom:D.scale200,borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderTopColor:S.borderSelected,borderBottomColor:S.borderSelected,borderRightColor:S.borderSelected,borderLeftColor:S.borderSelected,borderTopLeftRadius:p?D.scale800:"100%",borderTopRightRadius:p?D.scale800:"100%",borderBottomLeftRadius:p?D.scale800:"100%",borderBottomRightRadius:p?D.scale800:"100%"},Dt(w,e.$theme)[":after"]||{}),c?{content:null}:{})},j?{":before":ie(ie({zIndex:-1,content:'""',boxSizing:"border-box",display:"inline-block",backgroundColor:S.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"},Dt(w,e.$theme)[":before"]||{}),c?{backgroundColor:S.mono300,left:"0",width:"100%",content:'""'}:{})}:{})});mr.displayName="StyledDay";mr.displayName="StyledDay";var vr=J("div",function(e){var r=e.$theme,n=r.typography,a=r.colors,t=e.$selected;return ie(ie({},n.ParagraphXSmall),{},{color:t?a.contentInverseTertiary:a.contentTertiary})});vr.displayName="StyledDayLabel";vr.displayName="StyledDayLabel";var br=J("div",function(e){var r=e.$theme,n=r.typography,a=r.colors,t=r.sizing,o=e.$density;return ie(ie({},n.LabelMedium),{},{color:a.contentTertiary,boxSizing:"border-box",position:"relative",cursor:"default",display:"inline-block",width:o===le.high?"42px":"50px",height:o===le.high?"40px":"48px",textAlign:"center",lineHeight:t.scale900,paddingTop:t.scale300,paddingBottom:t.scale300,paddingLeft:t.scale200,paddingRight:t.scale200,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,backgroundColor:"transparent"})});br.displayName="StyledWeekdayHeader";br.displayName="StyledWeekdayHeader";function xt(e){"@babel/helpers - typeof";return xt=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},xt(e)}function me(){return me=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},me.apply(this,arguments)}function Oe(e,r){return oi(e)||ai(e,r)||ni(e,r)||ri()}function ri(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -1,4 +1,4 @@
1
- import{r as reactExports,j as jsx}from"./index.DFe9cVuT.js";/*!
1
+ import{r as reactExports,j as jsx}from"./index.BFZO9BwP.js";/*!
2
2
  * Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors
3
3
  * All rights reserved.
4
4
  *
@@ -1 +1 @@
1
- import{r as f,z as T,B as C,j as n,C as y,bp as S,aC as L,bx as W,bq as B,b7 as w,bH as R,J as E,bI as $,bJ as P}from"./index.DFe9cVuT.js";import{a as v}from"./useBasicWidgetState.CWF6bmbb.js";import{a as H,L as X,S as p}from"./checkbox.CXjMqu_k.js";import"./FormClearHelper.BWF61UOT.js";function M({element:e,disabled:a,widgetMgr:s,fragmentId:d}){var m;const[x,g]=v({getStateFromWidgetMgr:V,getDefaultStateFromProto:I,getCurrStateFromProto:j,updateWidgetMgrState:z,element:e,widgetMgr:s,fragmentId:d}),k=f.useCallback(i=>{g({value:i.target.checked,fromUi:!0})},[g]),t=T(),{colors:o,spacing:h,sizes:r}=t,b=C(t),u=a?o.fadedText40:o.bodyText;return n(P,{className:"row-widget stCheckbox","data-testid":"stCheckbox",children:n(H,{checked:x,disabled:a,onChange:k,"aria-label":e.label,checkmarkType:e.type===$.StyleType.TOGGLE?p.toggle:p.default,labelPlacement:X.right,overrides:{Root:{style:({$isFocusVisible:i})=>({marginBottom:h.none,marginTop:h.none,backgroundColor:i?o.darkenedBgMix25:"",display:"flex",alignItems:"start"})},Toggle:{style:({$checked:i})=>{let c=b?o.bgColor:o.bodyText;return a&&(c=b?o.gray70:o.gray90),{width:`calc(${r.checkbox} - ${t.spacing.twoXS})`,height:`calc(${r.checkbox} - ${t.spacing.twoXS})`,transform:i?`translateX(${r.checkbox})`:"",backgroundColor:c,boxShadow:""}}},ToggleTrack:{style:({$checked:i,$isHovered:c})=>{let l=o.fadedText40;return c&&!a&&(l=o.fadedText20),i&&!a&&(l=o.primary),{marginRight:0,marginLeft:0,marginBottom:0,marginTop:t.spacing.twoXS,paddingLeft:t.spacing.threeXS,paddingRight:t.spacing.threeXS,width:`calc(2 * ${r.checkbox})`,minWidth:`calc(2 * ${r.checkbox})`,height:r.checkbox,minHeight:r.checkbox,borderBottomLeftRadius:t.radii.full,borderTopLeftRadius:t.radii.full,borderBottomRightRadius:t.radii.full,borderTopRightRadius:t.radii.full,backgroundColor:l}}},Checkmark:{style:({$isFocusVisible:i,$checked:c})=>{const l=c&&!a?o.primary:o.fadedText40;return{outline:0,width:r.checkbox,height:r.checkbox,marginTop:t.spacing.twoXS,marginLeft:0,marginBottom:0,boxShadow:i&&c?`0 0 0 0.2rem ${E(o.primary,.5)}`:"",borderLeftWidth:r.borderWidth,borderRightWidth:r.borderWidth,borderTopWidth:r.borderWidth,borderBottomWidth:r.borderWidth,borderLeftColor:l,borderRightColor:l,borderTopColor:l,borderBottomColor:l}}},Label:{style:{lineHeight:t.lineHeights.small,paddingLeft:t.spacing.sm,position:"relative",color:u}}},children:y(R,{visibility:S((m=e.labelVisibility)==null?void 0:m.value),"data-testid":"stWidgetLabel",children:[n(L,{source:e.label,allowHTML:!1,isLabel:!0,largerLabel:!0}),e.help&&n(W,{color:u,children:n(B,{content:e.help,placement:w.TOP_RIGHT})})]})})})}function V(e,a){return e.getBoolValue(a)}function I(e){return e.default??null}function j(e){return e.value??null}function z(e,a,s,d){a.setBoolValue(e,s.value,{fromUi:s.fromUi},d)}const A=f.memo(M);export{A as default};
1
+ import{r as f,z as T,B as C,j as n,C as y,bp as S,aC as L,bx as W,bq as B,b7 as w,bI as R,J as E,bJ as $,bK as P}from"./index.BFZO9BwP.js";import{a as v}from"./useBasicWidgetState.GEeXHHcq.js";import{a as X,L as H,S as p}from"./checkbox.DHKvEdaN.js";import"./FormClearHelper.B4Xd3eAo.js";function M({element:e,disabled:a,widgetMgr:s,fragmentId:d}){var m;const[x,g]=v({getStateFromWidgetMgr:V,getDefaultStateFromProto:I,getCurrStateFromProto:j,updateWidgetMgrState:z,element:e,widgetMgr:s,fragmentId:d}),k=f.useCallback(i=>{g({value:i.target.checked,fromUi:!0})},[g]),t=T(),{colors:o,spacing:h,sizes:r}=t,b=C(t),u=a?o.fadedText40:o.bodyText;return n(P,{className:"row-widget stCheckbox","data-testid":"stCheckbox",children:n(X,{checked:x,disabled:a,onChange:k,"aria-label":e.label,checkmarkType:e.type===$.StyleType.TOGGLE?p.toggle:p.default,labelPlacement:H.right,overrides:{Root:{style:({$isFocusVisible:i})=>({marginBottom:h.none,marginTop:h.none,backgroundColor:i?o.darkenedBgMix25:"",display:"flex",alignItems:"start"})},Toggle:{style:({$checked:i})=>{let c=b?o.bgColor:o.bodyText;return a&&(c=b?o.gray70:o.gray90),{width:`calc(${r.checkbox} - ${t.spacing.twoXS})`,height:`calc(${r.checkbox} - ${t.spacing.twoXS})`,transform:i?`translateX(${r.checkbox})`:"",backgroundColor:c,boxShadow:""}}},ToggleTrack:{style:({$checked:i,$isHovered:c})=>{let l=o.fadedText40;return c&&!a&&(l=o.fadedText20),i&&!a&&(l=o.primary),{marginRight:0,marginLeft:0,marginBottom:0,marginTop:t.spacing.twoXS,paddingLeft:t.spacing.threeXS,paddingRight:t.spacing.threeXS,width:`calc(2 * ${r.checkbox})`,minWidth:`calc(2 * ${r.checkbox})`,height:r.checkbox,minHeight:r.checkbox,borderBottomLeftRadius:t.radii.full,borderTopLeftRadius:t.radii.full,borderBottomRightRadius:t.radii.full,borderTopRightRadius:t.radii.full,backgroundColor:l}}},Checkmark:{style:({$isFocusVisible:i,$checked:c})=>{const l=c&&!a?o.primary:o.fadedText40;return{outline:0,width:r.checkbox,height:r.checkbox,marginTop:t.spacing.twoXS,marginLeft:0,marginBottom:0,boxShadow:i&&c?`0 0 0 0.2rem ${E(o.primary,.5)}`:"",borderLeftWidth:r.borderWidth,borderRightWidth:r.borderWidth,borderTopWidth:r.borderWidth,borderBottomWidth:r.borderWidth,borderLeftColor:l,borderRightColor:l,borderTopColor:l,borderBottomColor:l}}},Label:{style:{lineHeight:t.lineHeights.small,paddingLeft:t.spacing.sm,position:"relative",color:u}}},children:y(R,{visibility:S((m=e.labelVisibility)==null?void 0:m.value),"data-testid":"stWidgetLabel",children:[n(L,{source:e.label,allowHTML:!1,isLabel:!0,largerLabel:!0}),e.help&&n(W,{color:u,children:n(B,{content:e.help,placement:w.TOP_RIGHT})})]})})})}function V(e,a){return e.getBoolValue(a)}function I(e){return e.default??null}function j(e){return e.value??null}function z(e,a,s,d){a.setBoolValue(e,s.value,{fromUi:s.fromUi},d)}const A=f.memo(M);export{A as default};
@@ -1 +1 @@
1
- import{n as o,bk as S,i as f,r as l,j as r,C as g,c3 as u,aC as $}from"./index.DFe9cVuT.js";const m=o(S,{shouldForwardProp:f,target:"e12gfcky0"})(({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})),x=o("div",{target:"e12gfcky1"})(({theme:e,cache:s})=>({...s?{paddingBottom:e.spacing.lg,background:`linear-gradient(to bottom, ${e.colors.bgColor} 0%, ${e.colors.bgColor} 80%, transparent 100%)`}:null})),y=o("div",{target:"e12gfcky2"})(({theme:e})=>({opacity:.6,fontSize:e.fontSizes.sm})),T=o("div",{target:"e12gfcky3"})(({theme:e})=>({display:"flex",gap:e.spacing.sm,alignItems:"center",width:"100%"})),h=e=>{const s=Math.floor(e/3600),n=Math.floor(e%3600/60),t=e%60;if(s===0&&n===0)return`(${t.toFixed(1)} seconds)`;if(s===0){const d=`${n} minute${n===1?"":"s"}`,p=t===0?"":`, ${t.toFixed(1)} seconds`;return`(${d}${p})`}const i=`${s} hour${s===1?"":"s"}`,a=n===0?"":`, ${n} minute${n===1?"":"s"}`,c=t===0?"":`, ${t.toFixed(1)} seconds`;return`(${i}${a}${c})`};function C({element:e}){const{cache:s,showTime:n}=e,[t,i]=l.useState(0);return l.useEffect(()=>{if(!n)return;const a=setInterval(()=>{i(c=>c+.1)},100);return()=>clearInterval(a)},[n]),r(x,{className:u({stSpinner:!0,stCacheSpinner:s}),"data-testid":"stSpinner",cache:s,children:g(T,{children:[r(m,{}),r($,{source:e.text,allowHTML:!1}),n&&r(y,{children:h(t)})]})})}const k=l.memo(C);export{k as default};
1
+ import{n as o,bk as S,i as f,r as l,j as r,C as g,c4 as u,aC as $}from"./index.BFZO9BwP.js";const m=o(S,{shouldForwardProp:f,target:"e12gfcky0"})(({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})),x=o("div",{target:"e12gfcky1"})(({theme:e,cache:s})=>({...s?{paddingBottom:e.spacing.lg,background:`linear-gradient(to bottom, ${e.colors.bgColor} 0%, ${e.colors.bgColor} 80%, transparent 100%)`}:null})),y=o("div",{target:"e12gfcky2"})(({theme:e})=>({opacity:.6,fontSize:e.fontSizes.sm})),T=o("div",{target:"e12gfcky3"})(({theme:e})=>({display:"flex",gap:e.spacing.sm,alignItems:"center",width:"100%"})),h=e=>{const s=Math.floor(e/3600),n=Math.floor(e%3600/60),t=e%60;if(s===0&&n===0)return`(${t.toFixed(1)} seconds)`;if(s===0){const d=`${n} minute${n===1?"":"s"}`,p=t===0?"":`, ${t.toFixed(1)} seconds`;return`(${d}${p})`}const i=`${s} hour${s===1?"":"s"}`,a=n===0?"":`, ${n} minute${n===1?"":"s"}`,c=t===0?"":`, ${t.toFixed(1)} seconds`;return`(${i}${a}${c})`};function C({element:e}){const{cache:s,showTime:n}=e,[t,i]=l.useState(0);return l.useEffect(()=>{if(!n)return;const a=setInterval(()=>{i(c=>c+.1)},100);return()=>clearInterval(a)},[n]),r(x,{className:u({stSpinner:!0,stCacheSpinner:s}),"data-testid":"stSpinner",cache:s,children:g(T,{children:[r(m,{}),r($,{source:e.text,allowHTML:!1}),n&&r(y,{children:h(t)})]})})}const k=l.memo(C);export{k as default};
@@ -1 +1 @@
1
- import{n as l,r as o,j as f,l as v}from"./index.DFe9cVuT.js";const A=l("div",{target:"ea9qfvi0"})(()=>({lineHeight:0})),g=l("audio",{target:"ea9qfvi1"})(({theme:r})=>({width:"100%",height:r.sizes.minElementHeight,margin:0,padding:0})),T=v.getLogger("Audio");function y({element:r,endpoints:s,elementMgr:u}){const i=o.useRef(null),{startTime:n,endTime:d,loop:a,autoplay:p}=r,E=o.useMemo(()=>{if(!r.id)return!0;const e=u.getElementState(r.id,"preventAutoplay");return e||u.setElementState(r.id,"preventAutoplay",!0),e??!1},[r.id,u]);o.useEffect(()=>{i.current&&(i.current.currentTime=n)},[n]),o.useEffect(()=>{const e=i.current,t=()=>{e&&(e.currentTime=r.startTime)};return e&&e.addEventListener("loadedmetadata",t),()=>{e&&e.removeEventListener("loadedmetadata",t)}},[r]),o.useEffect(()=>{const e=i.current;if(!e)return;let t=!1;const c=()=>{d>0&&e.currentTime>=d&&(a?(e.currentTime=n||0,e.play()):t||(t=!0,e.pause()))};return d>0&&e.addEventListener("timeupdate",c),()=>{e&&d>0&&e.removeEventListener("timeupdate",c)}},[d,a,n]),o.useEffect(()=>{const e=i.current;if(!e)return;const t=()=>{a&&(e.currentTime=n||0,e.play())};return e.addEventListener("ended",t),()=>{e&&e.removeEventListener("ended",t)}},[a,n]);const m=s.buildMediaURL(r.url);return f(A,{children:f(g,{className:"stAudio","data-testid":"stAudio",ref:i,controls:!0,autoPlay:p&&!E,src:m,onError:e=>{const t=e.currentTarget.src;T.error(`Client Error: Audio source error - ${t}`),s.sendClientErrorToHost("Audio","Audio source failed to load","onerror triggered",t)}})})}const S=o.memo(y);export{S as default};
1
+ import{n as l,r as o,j as f,l as v}from"./index.BFZO9BwP.js";const A=l("div",{target:"ea9qfvi0"})(()=>({lineHeight:0})),g=l("audio",{target:"ea9qfvi1"})(({theme:r})=>({width:"100%",height:r.sizes.minElementHeight,margin:0,padding:0})),T=v.getLogger("Audio");function y({element:r,endpoints:s,elementMgr:u}){const i=o.useRef(null),{startTime:n,endTime:d,loop:a,autoplay:p}=r,E=o.useMemo(()=>{if(!r.id)return!0;const e=u.getElementState(r.id,"preventAutoplay");return e||u.setElementState(r.id,"preventAutoplay",!0),e??!1},[r.id,u]);o.useEffect(()=>{i.current&&(i.current.currentTime=n)},[n]),o.useEffect(()=>{const e=i.current,t=()=>{e&&(e.currentTime=r.startTime)};return e&&e.addEventListener("loadedmetadata",t),()=>{e&&e.removeEventListener("loadedmetadata",t)}},[r]),o.useEffect(()=>{const e=i.current;if(!e)return;let t=!1;const c=()=>{d>0&&e.currentTime>=d&&(a?(e.currentTime=n||0,e.play()):t||(t=!0,e.pause()))};return d>0&&e.addEventListener("timeupdate",c),()=>{e&&d>0&&e.removeEventListener("timeupdate",c)}},[d,a,n]),o.useEffect(()=>{const e=i.current;if(!e)return;const t=()=>{a&&(e.currentTime=n||0,e.play())};return e.addEventListener("ended",t),()=>{e&&e.removeEventListener("ended",t)}},[a,n]);const m=s.buildMediaURL(r.url);return f(A,{children:f(g,{className:"stAudio","data-testid":"stAudio",ref:i,controls:!0,autoPlay:p&&!E,src:m,onError:e=>{const t=e.currentTarget.src;T.error(`Client Error: Audio source error - ${t}`),s.sendClientErrorToHost("Audio","Audio source failed to load","onerror triggered",t)}})})}const S=o.memo(y);export{S as default};
@@ -1 +1 @@
1
- import{n as p,r as s,z as T,C as y,j as i,D as w,aC as v,aR as r,F as h,B as m,aS as R,aT as C}from"./index.DFe9cVuT.js";const L=p("button",{target:"ee3yv4c0"})(({theme:o})=>({fontSize:o.fontSizes.sm,lineHeight:o.lineHeights.base,color:o.colors.fadedText60,backgroundColor:o.colors.transparent,fontFamily:"inherit",margin:o.spacing.none,border:"none",boxShadow:"none",padding:o.spacing.none,"&:hover, &:active, &:focus":{border:"none",outline:"none",boxShadow:"none"},"&:hover":{color:o.colors.primary}})),B=p("div",{target:"ee3yv4c1"})(({theme:o})=>({display:"flex",flexDirection:"row",gap:o.spacing.lg,"> span":{marginTop:o.spacing.twoXS}})),k=p("div",{target:"ee3yv4c2"})(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing.sm,alignItems:"start",justifyContent:"center",overflow:"hidden",minHeight:"100%",fontSize:o.fontSizes.sm,lineHeight:o.lineHeights.base,div:{display:"inline-flex"}}));function z(o){const a=m(o);return{Body:{props:{"data-testid":"stToast",className:"stToast"},style:{display:"flex",flexDirection:"row",gap:o.spacing.md,width:o.sizes.toastWidth,marginTop:o.spacing.sm,borderTopLeftRadius:o.radii.default,borderTopRightRadius:o.radii.default,borderBottomLeftRadius:o.radii.default,borderBottomRightRadius:o.radii.default,paddingTop:o.spacing.lg,paddingBottom:o.spacing.lg,paddingLeft:o.spacing.twoXL,paddingRight:o.spacing.twoXL,backgroundColor:a?o.colors.gray10:o.colors.gray90,color:o.colors.bodyText,boxShadow:a?"0px 4px 16px rgba(0, 0, 0, 0.16)":"0px 4px 16px rgba(0, 0, 0, 0.7)"}},CloseIcon:{style:{color:o.colors.fadedText40,width:o.fontSizes.lg,height:o.fontSizes.lg,marginRight:`calc(-1 * ${o.spacing.lg} / 2)`,":hover":{color:o.colors.bodyText}}}}}function E(o){if(o.length>104){let t=o.replace(/^(.{104}[^\s]*).*/,"$1");return t.length>104&&(t=t.substring(0,104).split(" ").slice(0,-1).join(" ")),t.trim()}return o}function D({body:o,icon:a}){const t=T(),n=E(o),d=o!==n,[e,x]=s.useState(!d),[u,b]=s.useState(0),f=s.useCallback(()=>{x(!e)},[e]),c=s.useMemo(()=>z(t),[t]),l=s.useMemo(()=>y(B,{expanded:e,children:[a&&i(w,{iconValue:a,size:"xl",testid:"stToastDynamicIcon"}),y(k,{children:[i(v,{source:e?o:n,allowHTML:!1,isToast:!0}),d&&i(L,{"data-testid":"stToastViewButton",onClick:f,children:e?"view less":"view more"})]})]}),[d,e,o,a,n,f]);s.useEffect(()=>{if(t.inSidebar)return;const g=r.info(l,{overrides:{...c}});return b(g),()=>{r.update(g,{overrides:{Body:{style:{display:"none"}}}}),r.clear(g)}},[]),s.useEffect(()=>{r.update(u,{children:l,overrides:{...c}})},[u,l,c]);const S=i(C,{kind:R.ERROR,body:"Streamlit API Error: `st.toast` cannot be called directly on the sidebar with `st.sidebar.toast`. See our `st.toast` API [docs](https://docs.streamlit.io/develop/api-reference/status/st.toast) for more information."});return i(h,{children:t.inSidebar&&S})}const I=s.memo(D);export{I as default};
1
+ import{n as p,r as s,z as T,C as y,j as i,D as w,aC as v,aR as r,F as h,B as m,aS as R,aT as C}from"./index.BFZO9BwP.js";const L=p("button",{target:"ee3yv4c0"})(({theme:o})=>({fontSize:o.fontSizes.sm,lineHeight:o.lineHeights.base,color:o.colors.fadedText60,backgroundColor:o.colors.transparent,fontFamily:"inherit",margin:o.spacing.none,border:"none",boxShadow:"none",padding:o.spacing.none,"&:hover, &:active, &:focus":{border:"none",outline:"none",boxShadow:"none"},"&:hover":{color:o.colors.primary}})),B=p("div",{target:"ee3yv4c1"})(({theme:o})=>({display:"flex",flexDirection:"row",gap:o.spacing.lg,"> span":{marginTop:o.spacing.twoXS}})),k=p("div",{target:"ee3yv4c2"})(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing.sm,alignItems:"start",justifyContent:"center",overflow:"hidden",minHeight:"100%",fontSize:o.fontSizes.sm,lineHeight:o.lineHeights.base,div:{display:"inline-flex"}}));function z(o){const a=m(o);return{Body:{props:{"data-testid":"stToast",className:"stToast"},style:{display:"flex",flexDirection:"row",gap:o.spacing.md,width:o.sizes.toastWidth,marginTop:o.spacing.sm,borderTopLeftRadius:o.radii.default,borderTopRightRadius:o.radii.default,borderBottomLeftRadius:o.radii.default,borderBottomRightRadius:o.radii.default,paddingTop:o.spacing.lg,paddingBottom:o.spacing.lg,paddingLeft:o.spacing.twoXL,paddingRight:o.spacing.twoXL,backgroundColor:a?o.colors.gray10:o.colors.gray90,color:o.colors.bodyText,boxShadow:a?"0px 4px 16px rgba(0, 0, 0, 0.16)":"0px 4px 16px rgba(0, 0, 0, 0.7)"}},CloseIcon:{style:{color:o.colors.fadedText40,width:o.fontSizes.lg,height:o.fontSizes.lg,marginRight:`calc(-1 * ${o.spacing.lg} / 2)`,":hover":{color:o.colors.bodyText}}}}}function E(o){if(o.length>104){let t=o.replace(/^(.{104}[^\s]*).*/,"$1");return t.length>104&&(t=t.substring(0,104).split(" ").slice(0,-1).join(" ")),t.trim()}return o}function D({body:o,icon:a}){const t=T(),n=E(o),d=o!==n,[e,x]=s.useState(!d),[u,b]=s.useState(0),f=s.useCallback(()=>{x(!e)},[e]),c=s.useMemo(()=>z(t),[t]),l=s.useMemo(()=>y(B,{expanded:e,children:[a&&i(w,{iconValue:a,size:"xl",testid:"stToastDynamicIcon"}),y(k,{children:[i(v,{source:e?o:n,allowHTML:!1,isToast:!0}),d&&i(L,{"data-testid":"stToastViewButton",onClick:f,children:e?"view less":"view more"})]})]}),[d,e,o,a,n,f]);s.useEffect(()=>{if(t.inSidebar)return;const g=r.info(l,{overrides:{...c}});return b(g),()=>{r.update(g,{overrides:{Body:{style:{display:"none"}}}}),r.clear(g)}},[]),s.useEffect(()=>{r.update(u,{children:l,overrides:{...c}})},[u,l,c]);const S=i(C,{kind:R.ERROR,body:"Streamlit API Error: `st.toast` cannot be called directly on the sidebar with `st.sidebar.toast`. See our `st.toast` API [docs](https://docs.streamlit.io/develop/api-reference/status/st.toast) for more information."});return i(h,{children:t.inSidebar&&S})}const I=s.memo(D);export{I as default};