@stlite/desktop 0.95.0 → 0.96.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/bin/dump_artifacts.js +1 -1
  3. package/build/assets/{ErrorOutline.esm-C-dv9Xq1-skkXNqDc.js → ErrorOutline.esm-_LuTQzkr-BFWi9Uuj.js} +1 -1
  4. package/build/assets/{FileDownload.esm-ORp-UC-S-BrsUfuH5.js → FileDownload.esm-CUqXYNk4-DieQ2Qle.js} +1 -1
  5. package/build/assets/FileHelper-DbeeBEs5-Co0d-OBP.js +5 -0
  6. package/build/assets/{FormClearHelper-DtwjWakY-CxfcniD6.js → FormClearHelper-C58X4iX0-CI3cpm91.js} +1 -1
  7. package/build/assets/IFrameUtil-8kJzIdKx-BKMrKnrz.js +1 -0
  8. package/build/assets/{InputInstructions-CshBE9XZ-BbegIdTI.js → InputInstructions-BSpH125g-CSupbuK3.js} +1 -1
  9. package/build/assets/Particles-6ak5Hlgw-4VTgCETZ.js +1 -0
  10. package/build/assets/ProgressBar-CQHaVJeY-Bo6RDYz5.js +2 -0
  11. package/build/assets/StreamlitSyntaxHighlighter-DSYWFRjz-B77VB7yz.js +8 -0
  12. package/build/assets/Toolbar-Cr9ArNQU-D5-awBnv.js +1 -0
  13. package/build/assets/_baseAssignValue-3fAevQ7t-BOcc6F75.js +1 -0
  14. package/build/assets/_baseIndexOf-OsCSwRmV--aVpkM1d.js +1 -0
  15. package/build/assets/{base-input-DbV2D5sF-DJkpBRM1.js → base-input-CAXjxi6E-LJzeEbPm.js} +4 -4
  16. package/build/assets/{checkbox-CG80fxUD-CavQvTtP.js → checkbox-OEhCo8NJ-C1rXZb97.js} +2 -2
  17. package/build/assets/{createSuper-BlgWzn8_-h1vcwEzv.js → createSuper-bIcQlS98-B8MWK81T.js} +1 -1
  18. package/build/assets/data-grid-overlay-editor-DbHL3o_S-CiO7EIHu.js +1 -0
  19. package/build/assets/{downloader-DcCTL3Wz-CqotLrf1.js → downloader-DcCTL3Wz-Dj-02g6N.js} +1 -1
  20. package/build/assets/embed-DJe7ZhON-C4OnDOK-.js +195 -0
  21. package/build/assets/{es6--XPcqeHG-DdkxL8eW.js → es6--XPcqeHG-2BbC2xK9.js} +2 -2
  22. package/build/assets/{iframeResizer.contentWindow-DEXh82Lp-CG3rnwWO.js → iframeResizer.contentWindow-9ByjY9IM-BBpPzlnE.js} +1 -1
  23. package/build/assets/{index-vRM8HrbM-CZbE9IiJ.js → index-10RiWKwV-Cn-PcXb4.js} +3 -3
  24. package/build/assets/index-47jAZmzN-8ZV_muwb.js +1 -0
  25. package/build/assets/index-99W3Zegr-DhiLonYo.js +1 -0
  26. package/build/assets/index-BGCCnxH2-jQwb1QhH.js +1 -0
  27. package/build/assets/{index-CNKtyIol-BPke8suV.js → index-BHN72E4J-BztQAHMJ.js} +1 -1
  28. package/build/assets/index-BSOGSXpv-Bd9gyoUy.js +27 -0
  29. package/build/assets/index-BVhYQGzc-Do7aV0dQ.js +1 -0
  30. package/build/assets/index-BVuioNdm-CVDd_GaD.js +1 -0
  31. package/build/assets/index-BYGDMULw-4dwQq_lE.js +1 -0
  32. package/build/assets/index-B_94eI3S-ADuW4ppz.js +6 -0
  33. package/build/assets/index-Bck9VlwE-zB2PlFuX.js +3 -0
  34. package/build/assets/index-Bdi0ug4X.js +181 -0
  35. package/build/assets/{index-y3ITDERN-Ccy-wRE2.js → index-BrYfiXJ9-D7No2wma.js} +1 -1
  36. package/build/assets/index-BwqdV017-BaIzlXlX.js +2 -0
  37. package/build/assets/index-C6MBr137-B6bz_i6a.js +1 -0
  38. package/build/assets/index-CAtZcI5--D0BcKLsl.js +2 -0
  39. package/build/assets/index-CF9SDiIL-0Yw8O39Y.js +1 -0
  40. package/build/assets/index-CFA5JkEa-DUK-7VD7.js +1 -0
  41. package/build/assets/index-CJA4Tdig-Rs7zFCTh.js +1 -0
  42. package/build/assets/index-CVld_lKx-CBWAU0gM.js +14 -0
  43. package/build/assets/{index-BqCY3Zlk-mm_Bt8ZF.js → index-CY18be0x-Bq4JW-41.js} +1 -1
  44. package/build/assets/index-CaWaI2PT-DvorZu2G.js +2 -0
  45. package/build/assets/{index-CiBn_-AR-CMINgD7R.js → index-Cbq5ClnA-Ct1ftt5G.js} +1 -1
  46. package/build/assets/index-CceTm1nk-D-m7sDsR.js +1 -0
  47. package/build/assets/{index-SbKh1OIB-BjfuWdcF.js → index-Cp-N8m1m-CSwdpflI.js} +4 -4
  48. package/build/assets/index-CucLKMvI-CdFsTlcF.js +1 -0
  49. package/build/assets/index-CxZCITs0-CLi85oo1.js +1 -0
  50. package/build/assets/{index-C7cG_aL6-BWm5S1-m.js → index-D3vT_IC--BZlisRXs.js} +64 -64
  51. package/build/assets/index-D5L-gN8f-Bny7-WhK.js +11 -0
  52. package/build/assets/index-D7zRUNKG-2cwkh8qP.js +1 -0
  53. package/build/assets/index-D8RPh1xj-BLIXkU4c.js +1 -0
  54. package/build/assets/index-DNE2UpRK-CMtd92Tg.js +1 -0
  55. package/build/assets/index-D_5mY4iN-C3O2lE89.js +1 -0
  56. package/build/assets/index-DfPnrVLL-B6NKOBTt.js +1 -0
  57. package/build/assets/index-Do4wh7Iw-cPdQGRDQ.js +1 -0
  58. package/build/assets/{index-D2j0kQLw-67iH-2yA.js → index-DttfDE80-GomZzukD.js} +1 -1
  59. package/build/assets/index-DwedDN1c-C-Y3cCQP.js +1 -0
  60. package/build/assets/index-Fvxtopfe-CxLnCat0.js +1 -0
  61. package/build/assets/index-G4vqu33f-DO7BfNY6.js +1 -0
  62. package/build/assets/index-KWOwopwF-CN_5PcLU.js +2 -0
  63. package/build/assets/index-NPM6VaN3-C-0cbqN2.js +3 -0
  64. package/build/assets/index-Q4xI4OhR-D81jje-l.js +1 -0
  65. package/build/assets/index-R0bDPfYF-CRQIdCoC.js +263 -0
  66. package/build/assets/index-R1QyBsfg-tcyjJ4fb.js +1 -0
  67. package/build/assets/index-YOustUZZ-CX09XTf8.js +2 -0
  68. package/build/assets/index-b6W2ubHd-BapgUWLx.js +1 -0
  69. package/build/assets/index-h-ZgFEXT-DdL6EMUv.js +2 -0
  70. package/build/assets/index-lGTf3abu-B6CGTEed.js +1 -0
  71. package/build/assets/index-nXfHwIms-cOwCevci.js +198 -0
  72. package/build/assets/index-tU7dWFCN-DURbp79P.js +1 -0
  73. package/build/assets/inherits-Byw8NQvD-DdaLbWVP.js +1 -0
  74. package/build/assets/{input-DNUwcYWK-C9eVW6-S.js → input-5gXdrXd2-J6HaBKjM.js} +2 -2
  75. package/build/assets/main-DvFfgny--BkQIK2a9.js +13 -0
  76. package/build/assets/{memory-B3L1Fctl-CQ-Y_gc6.js → memory-B3L1Fctl-mli5o0A1.js} +1 -1
  77. package/build/assets/moment-CU6QKNej-DcQX_LE0.js +4 -0
  78. package/build/assets/number-overlay-editor-BQ0qCmxT-5g_cUv4i.js +9 -0
  79. package/build/assets/pandasStylerUtils-BvB3vP-L-D9viw-G9.js +1 -0
  80. package/build/assets/{sandbox-ChAzL-i--DqMwo4R7.js → sandbox-ChAzL-i--CSnZJIg8.js} +1 -1
  81. package/build/assets/slicedToArray-CrkrjOeW-7_omneg6.js +2 -0
  82. package/build/assets/styled-components-DkuYntx5-DrGZZlKf.js +1 -0
  83. package/build/assets/threshold-eWsxmMyL-jpRnj60B.js +1 -0
  84. package/build/assets/{timepicker-CkLW19xP-CTuglWU6.js → timepicker-BMxsIjZb-Uq5-wJ6H.js} +1 -1
  85. package/build/assets/timer-DAAwtI0i-CB52lra-.js +1 -0
  86. package/build/assets/toConsumableArray-BpgQ3N5A-AHKfFeLf.js +2 -0
  87. package/build/assets/uniqueId-BrCTHDA7-CGglDaT_.js +1 -0
  88. package/build/assets/unsupportedIterableToArray-CFN3yOc2-C4SckrTc.js +1 -0
  89. package/build/assets/urls-CuMqgoDl-BWqF1s4U.js +1 -0
  90. package/build/assets/{useBasicWidgetState-BTyLgyXa-DI96f9E0.js → useBasicWidgetState-CzHHKP20-CGMCneWD.js} +1 -1
  91. package/build/assets/useIntlLocale-5C0LAQxq-ow_F-T5t.js +12 -0
  92. package/build/assets/{useTextInputAutoExpand-YLx_K1sh-DhWKaGOV.js → useTextInputAutoExpand-BMCOrWKx-DmoV3o2_.js} +2 -2
  93. package/build/assets/{useUpdateUiValue-B9j1K8e5-CIeTAxHC.js → useUpdateUiValue-BtVkPggP-4VTS40xs.js} +1 -1
  94. package/build/assets/useWaveformController-DuJh2iwj-BQGl9KsR.js +1 -0
  95. package/build/assets/value-DwxUZIyI-CNuykc50.js +1 -0
  96. package/build/assets/withCalculatedWidth-C0lBnc3E-BAFtxM9t.js +1 -0
  97. package/build/assets/withFullScreenWrapper-wajYPLRg-e8FnO2xN.js +1 -0
  98. package/build/index.html +1 -1
  99. package/package.json +3 -3
  100. package/wheels/streamlit-1.52.2-cp313-none-any.whl +0 -0
  101. package/build/assets/FileHelper-DQKV3o5U-qFf0CL_R.js +0 -5
  102. package/build/assets/Particles-DbEEaBdi-Cslh0fnd.js +0 -1
  103. package/build/assets/ProgressBar-ohpf-YR2-PWD0xacp.js +0 -2
  104. package/build/assets/Toolbar-Cc8tCeKL-JHIp2NvW.js +0 -1
  105. package/build/assets/data-grid-overlay-editor-DsmOmCoE-DU0EvyVM.js +0 -1
  106. package/build/assets/index-3Q8l-56I-Bp9UZWPZ.js +0 -27
  107. package/build/assets/index-8FM--PX3-C2rsm2es.js +0 -1
  108. package/build/assets/index-B1y_Hrx0-DDwLQ3XW.js +0 -1
  109. package/build/assets/index-BECG__WC-DerPiN--.js +0 -1
  110. package/build/assets/index-BQn4Faen-CVQ5ESXY.js +0 -3
  111. package/build/assets/index-BReUOw2L-emeACiGh.js +0 -1371
  112. package/build/assets/index-BiS_E3zu-CwIGZcqG.js +0 -1
  113. package/build/assets/index-BmlZuG1z-BtaDcb9o.js +0 -1
  114. package/build/assets/index-BvblFOYP.js +0 -691
  115. package/build/assets/index-Bzy7yu67-C3L4ShMk.js +0 -2
  116. package/build/assets/index-CO05R5cS-DHfFy15g.js +0 -1
  117. package/build/assets/index-CQfw52g6-BJ-a84bb.js +0 -1
  118. package/build/assets/index-CTvmRzFN-By1zFrdQ.js +0 -2
  119. package/build/assets/index-Cb_C2vCk-DrzTyNQF.js +0 -198
  120. package/build/assets/index-CnMc0ayy-CKIU12h5.js +0 -1
  121. package/build/assets/index-D0Ry9mHz-DBJluHQV.js +0 -3
  122. package/build/assets/index-D42P77wj-jZCT0fQL.js +0 -1
  123. package/build/assets/index-D7LfqMh3-DvKIa3UK.js +0 -1
  124. package/build/assets/index-DD64_I3e-Cxdt0Oji.js +0 -1
  125. package/build/assets/index-DEYeMrzr-DP5rSRot.js +0 -1
  126. package/build/assets/index-DTog-cZN-vTBq72Ci.js +0 -1
  127. package/build/assets/index-DU0kTHM_-CInhbPr8.js +0 -12
  128. package/build/assets/index-DeKEPgyN-DF3OyxuW.js +0 -1
  129. package/build/assets/index-DrS8S2M--C4mGh6T8.js +0 -1
  130. package/build/assets/index-DxTzjSNF-B-v_CQEN.js +0 -2
  131. package/build/assets/index-IXLMpVV4-D8dPiMEz.js +0 -2
  132. package/build/assets/index-Ray843Xd-CpBr9wfH.js +0 -1
  133. package/build/assets/index-S-A7KecP-DJ0BKtLt.js +0 -1
  134. package/build/assets/index-Uvv6so0Q-Lbl8GAad.js +0 -1
  135. package/build/assets/index-YbT2v6Cb-CoC81Jcm.js +0 -1
  136. package/build/assets/inherits-CYghrBFU-Cf4k8aUQ.js +0 -1
  137. package/build/assets/number-overlay-editor-C2e7pY6x-BnC-vP7l.js +0 -9
  138. package/build/assets/slicedToArray-D4uL3Bzl-95JmZlNK.js +0 -2
  139. package/build/assets/uniqueId-C6wp_e1D-D_RnWRJW.js +0 -1
  140. package/build/assets/withFullScreenWrapper-DqrJMIkm-BwrYir6f.js +0 -1
  141. package/wheels/streamlit-1.51.0-cp313-none-any.whl +0 -0
@@ -0,0 +1 @@
1
+ import{B as d,m as o,r as a,O as g,bo as w,ao as b,aV as E,ac as z,ap as C,F as y,a1 as B,I as m,_ as p}from"./index-Bdi0ug4X.js";var u=a.forwardRef(function(e,n){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(m,p({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:n}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}))});u.displayName="Fullscreen";var v=a.forwardRef(function(e,n){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(m,p({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:n}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}))});v.displayName="FullscreenExit";const c="-2.65rem",j=d("div",{target:"e2wxzia2"})(({theme:e,locked:n,target:t})=>({padding:`${e.spacing.sm} 0 ${e.spacing.sm} ${e.spacing.sm}`,position:"absolute",top:n?c:"-1rem",right:e.spacing.none,transition:"none",...!n&&{opacity:0,"&:active, &:focus-visible, &:hover":{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:c},...t&&{[`${t}:hover &, ${t}:active &, ${t}:focus-visible &`]:{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:c}}}}),""),T=d("div",{target:"e2wxzia1"})(({theme:e})=>({color:B(e)?e.colors.fadedText60:e.colors.bodyText,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",boxShadow:"1px 2px 8px rgba(0, 0, 0, 0.08)",borderRadius:e.radii.default,backgroundColor:e.colors.lightenedBg05,width:"fit-content",zIndex:e.zIndices.sidebar+1,padding:e.spacing.twoXS}),""),k=d("div",{target:"e2wxzia0"})(({height:e,useContainerWidth:n,topCentered:t,useContainerHeight:i})=>({position:"relative",height:n&&e?e:i?e||"100%":"fit-content",maxWidth:"100%",width:n?"100%":"fit-content",...t?{display:"flex",justifyContent:"center"}:{}}),"");function h({label:e,show_label:n,icon:t,onClick:i}){const l=g(),s=n?e:"";return o.jsx("div",{"data-testid":"stElementToolbarButton",children:o.jsx(w,{content:o.jsx(y,{source:e,allowHTML:!1,style:{fontSize:l.fontSizes.sm}}),placement:b.TOP,onMouseEnterDelay:1e3,inline:!0,children:o.jsxs(E,{onClick:r=>{i&&i(),r.stopPropagation()},kind:z.ELEMENT_TOOLBAR,"aria-label":e,children:[t&&o.jsx(C,{content:t,size:"md",testid:"stElementToolbarButtonIcon"}),s&&o.jsx("span",{children:s})]})})})}const H=({onExpand:e,onCollapse:n,isFullScreen:t,locked:i,children:l,target:s,disableFullscreenMode:r})=>{const x=e&&!r&&!t,f=n&&!r&&t;return o.jsx(j,{className:"stElementToolbar","data-testid":"stElementToolbar",locked:i||t,target:s,children:o.jsxs(T,{"data-testid":"stElementToolbarButtonContainer",children:[l,x&&o.jsx(h,{label:"Fullscreen",icon:u,onClick:()=>e()}),f&&o.jsx(h,{label:"Close fullscreen",icon:v,onClick:()=>n()})]})})};export{k as R,h as X,H as y};
@@ -0,0 +1 @@
1
+ import{z as D}from"./index-Bdi0ug4X.js";var Q,sn;function zu(){if(sn)return Q;sn=1;var t=typeof D=="object"&&D&&D.Object===Object&&D;return Q=t,Q}var X,ln;function $(){if(ln)return X;ln=1;var t=zu(),r=typeof self=="object"&&self&&self.Object===Object&&self,n=t||r||Function("return this")();return X=n,X}var Y,pn;function V(){if(pn)return Y;pn=1;var t=$(),r=t.Symbol;return Y=r,Y}var Z,hn;function Cu(){if(hn)return Z;hn=1;var t=V(),r=Object.prototype,n=r.hasOwnProperty,e=r.toString,u=t?t.toStringTag:void 0;function a(i){var o=n.call(i,u),f=i[u];try{i[u]=void 0;var c=!0}catch{}var s=e.call(i);return c&&(o?i[u]=f:delete i[u]),s}return Z=a,Z}var H,_n;function Lu(){if(_n)return H;_n=1;var t=Object.prototype,r=t.toString;function n(e){return r.call(e)}return H=n,H}var J,yn;function B(){if(yn)return J;yn=1;var t=V(),r=Cu(),n=Lu(),e="[object Null]",u="[object Undefined]",a=t?t.toStringTag:void 0;function i(o){return o==null?o===void 0?u:e:a&&a in Object(o)?r(o):n(o)}return J=i,J}var K,bn;function P(){if(bn)return K;bn=1;var t=Array.isArray;return K=t,K}var q,dn;function R(){if(dn)return q;dn=1;function t(r){return r!=null&&typeof r=="object"}return q=t,q}var rr,jn;function Nu(){if(jn)return rr;jn=1;function t(r){return function(n,e,u){for(var a=-1,i=Object(n),o=u(n),f=o.length;f--;){var c=o[r?f:++a];if(e(i[c],c,i)===!1)break}return n}}return rr=t,rr}var tr,gn;function Wu(){if(gn)return tr;gn=1;var t=Nu(),r=t();return tr=r,tr}var nr,On;function Gu(){if(On)return nr;On=1;function t(r,n){for(var e=-1,u=Array(r);++e<r;)u[e]=n(e);return u}return nr=t,nr}var er,wn;function Qu(){if(wn)return er;wn=1;var t=B(),r=R(),n="[object Arguments]";function e(u){return r(u)&&t(u)==n}return er=e,er}var ur,mn;function Au(){if(mn)return ur;mn=1;var t=Qu(),r=R(),n=Object.prototype,e=n.hasOwnProperty,u=n.propertyIsEnumerable,a=t((function(){return arguments})())?t:function(i){return r(i)&&e.call(i,"callee")&&!u.call(i,"callee")};return ur=a,ur}var M={exports:{}},ar,zn;function Xu(){if(zn)return ar;zn=1;function t(){return!1}return ar=t,ar}M.exports;var An;function xu(){return An||(An=1,(function(t,r){var n=$(),e=Xu(),u=r&&!r.nodeType&&r,a=u&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===u,o=i?n.Buffer:void 0,f=o?o.isBuffer:void 0,c=f||e;t.exports=c})(M,M.exports)),M.exports}var ir,xn;function Su(){if(xn)return ir;xn=1;var t=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function n(e,u){var a=typeof e;return u=u??t,!!u&&(a=="number"||a!="symbol"&&r.test(e))&&e>-1&&e%1==0&&e<u}return ir=n,ir}var or,Sn;function en(){if(Sn)return or;Sn=1;var t=9007199254740991;function r(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=t}return or=r,or}var fr,kn;function Yu(){if(kn)return fr;kn=1;var t=B(),r=en(),n=R(),e="[object Arguments]",u="[object Array]",a="[object Boolean]",i="[object Date]",o="[object Error]",f="[object Function]",c="[object Map]",s="[object Number]",v="[object Object]",l="[object RegExp]",p="[object Set]",w="[object String]",O="[object WeakMap]",g="[object ArrayBuffer]",b="[object DataView]",h="[object Float32Array]",m="[object Float64Array]",d="[object Int8Array]",z="[object Int16Array]",j="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",x="[object Uint16Array]",k="[object Uint32Array]",y={};y[h]=y[m]=y[d]=y[z]=y[j]=y[_]=y[A]=y[x]=y[k]=!0,y[e]=y[u]=y[g]=y[a]=y[b]=y[i]=y[o]=y[f]=y[c]=y[s]=y[v]=y[l]=y[p]=y[w]=y[O]=!1;function E(S){return n(S)&&r(S.length)&&!!y[t(S)]}return fr=E,fr}var cr,En;function Zu(){if(En)return cr;En=1;function t(r){return function(n){return r(n)}}return cr=t,cr}var U={exports:{}};U.exports;var $n;function Hu(){return $n||($n=1,(function(t,r){var n=zu(),e=r&&!r.nodeType&&r,u=e&&!0&&t&&!t.nodeType&&t,a=u&&u.exports===e,i=a&&n.process,o=(function(){try{var f=u&&u.require&&u.require("util").types;return f||i&&i.binding&&i.binding("util")}catch{}})();t.exports=o})(U,U.exports)),U.exports}var vr,Pn;function ku(){if(Pn)return vr;Pn=1;var t=Yu(),r=Zu(),n=Hu(),e=n&&n.isTypedArray,u=e?r(e):t;return vr=u,vr}var sr,Fn;function Ju(){if(Fn)return sr;Fn=1;var t=Gu(),r=Au(),n=P(),e=xu(),u=Su(),a=ku(),i=Object.prototype,o=i.hasOwnProperty;function f(c,s){var v=n(c),l=!v&&r(c),p=!v&&!l&&e(c),w=!v&&!l&&!p&&a(c),O=v||l||p||w,g=O?t(c.length,String):[],b=g.length;for(var h in c)(s||o.call(c,h))&&!(O&&(h=="length"||p&&(h=="offset"||h=="parent")||w&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||u(h,b)))&&g.push(h);return g}return sr=f,sr}var lr,Bn;function Ku(){if(Bn)return lr;Bn=1;var t=Object.prototype;function r(n){var e=n&&n.constructor,u=typeof e=="function"&&e.prototype||t;return n===u}return lr=r,lr}var pr,Rn;function qu(){if(Rn)return pr;Rn=1;function t(r,n){return function(e){return r(n(e))}}return pr=t,pr}var hr,Tn;function ra(){if(Tn)return hr;Tn=1;var t=qu(),r=t(Object.keys,Object);return hr=r,hr}var _r,Dn;function ta(){if(Dn)return _r;Dn=1;var t=Ku(),r=ra(),n=Object.prototype,e=n.hasOwnProperty;function u(a){if(!t(a))return r(a);var i=[];for(var o in Object(a))e.call(a,o)&&o!="constructor"&&i.push(o);return i}return _r=u,_r}var yr,Mn;function un(){if(Mn)return yr;Mn=1;function t(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}return yr=t,yr}var br,Un;function Eu(){if(Un)return br;Un=1;var t=B(),r=un(),n="[object AsyncFunction]",e="[object Function]",u="[object GeneratorFunction]",a="[object Proxy]";function i(o){if(!r(o))return!1;var f=t(o);return f==e||f==u||f==n||f==a}return br=i,br}var dr,Vn;function $u(){if(Vn)return dr;Vn=1;var t=Eu(),r=en();function n(e){return e!=null&&r(e.length)&&!t(e)}return dr=n,dr}var jr,In;function an(){if(In)return jr;In=1;var t=Ju(),r=ta(),n=$u();function e(u){return n(u)?t(u):r(u)}return jr=e,jr}var gr,Cn;function na(){if(Cn)return gr;Cn=1;var t=Wu(),r=an();function n(e,u){return e&&t(e,u,r)}return gr=n,gr}var Or,Ln;function ea(){if(Ln)return Or;Ln=1;function t(r){return r}return Or=t,Or}var wr,Nn;function ua(){if(Nn)return wr;Nn=1;function t(r,n){for(var e=-1,u=r==null?0:r.length,a=Array(u);++e<u;)a[e]=n(r[e],e,r);return a}return wr=t,wr}var mr,Wn;function aa(){if(Wn)return mr;Wn=1;function t(){this.__data__=[],this.size=0}return mr=t,mr}var zr,Gn;function Pu(){if(Gn)return zr;Gn=1;function t(r,n){return r===n||r!==r&&n!==n}return zr=t,zr}var Ar,Qn;function I(){if(Qn)return Ar;Qn=1;var t=Pu();function r(n,e){for(var u=n.length;u--;)if(t(n[u][0],e))return u;return-1}return Ar=r,Ar}var xr,Xn;function ia(){if(Xn)return xr;Xn=1;var t=I(),r=Array.prototype,n=r.splice;function e(u){var a=this.__data__,i=t(a,u);if(i<0)return!1;var o=a.length-1;return i==o?a.pop():n.call(a,i,1),--this.size,!0}return xr=e,xr}var Sr,Yn;function oa(){if(Yn)return Sr;Yn=1;var t=I();function r(n){var e=this.__data__,u=t(e,n);return u<0?void 0:e[u][1]}return Sr=r,Sr}var kr,Zn;function fa(){if(Zn)return kr;Zn=1;var t=I();function r(n){return t(this.__data__,n)>-1}return kr=r,kr}var Er,Hn;function ca(){if(Hn)return Er;Hn=1;var t=I();function r(n,e){var u=this.__data__,a=t(u,n);return a<0?(++this.size,u.push([n,e])):u[a][1]=e,this}return Er=r,Er}var $r,Jn;function C(){if(Jn)return $r;Jn=1;var t=aa(),r=ia(),n=oa(),e=fa(),u=ca();function a(i){var o=-1,f=i==null?0:i.length;for(this.clear();++o<f;){var c=i[o];this.set(c[0],c[1])}}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=e,a.prototype.set=u,$r=a,$r}var Pr,Kn;function va(){if(Kn)return Pr;Kn=1;var t=C();function r(){this.__data__=new t,this.size=0}return Pr=r,Pr}var Fr,qn;function sa(){if(qn)return Fr;qn=1;function t(r){var n=this.__data__,e=n.delete(r);return this.size=n.size,e}return Fr=t,Fr}var Br,re;function la(){if(re)return Br;re=1;function t(r){return this.__data__.get(r)}return Br=t,Br}var Rr,te;function pa(){if(te)return Rr;te=1;function t(r){return this.__data__.has(r)}return Rr=t,Rr}var Tr,ne;function ha(){if(ne)return Tr;ne=1;var t=$(),r=t["__core-js_shared__"];return Tr=r,Tr}var Dr,ee;function _a(){if(ee)return Dr;ee=1;var t=ha(),r=(function(){var e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function n(e){return!!r&&r in e}return Dr=n,Dr}var Mr,ue;function Fu(){if(ue)return Mr;ue=1;var t=Function.prototype,r=t.toString;function n(e){if(e!=null){try{return r.call(e)}catch{}try{return e+""}catch{}}return""}return Mr=n,Mr}var Ur,ae;function ya(){if(ae)return Ur;ae=1;var t=Eu(),r=_a(),n=un(),e=Fu(),u=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,i=Function.prototype,o=Object.prototype,f=i.toString,c=o.hasOwnProperty,s=RegExp("^"+f.call(c).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v(l){if(!n(l)||r(l))return!1;var p=t(l)?s:a;return p.test(e(l))}return Ur=v,Ur}var Vr,ie;function ba(){if(ie)return Vr;ie=1;function t(r,n){return r?.[n]}return Vr=t,Vr}var Ir,oe;function F(){if(oe)return Ir;oe=1;var t=ya(),r=ba();function n(e,u){var a=r(e,u);return t(a)?a:void 0}return Ir=n,Ir}var Cr,fe;function on(){if(fe)return Cr;fe=1;var t=F(),r=$(),n=t(r,"Map");return Cr=n,Cr}var Lr,ce;function L(){if(ce)return Lr;ce=1;var t=F(),r=t(Object,"create");return Lr=r,Lr}var Nr,ve;function da(){if(ve)return Nr;ve=1;var t=L();function r(){this.__data__=t?t(null):{},this.size=0}return Nr=r,Nr}var Wr,se;function ja(){if(se)return Wr;se=1;function t(r){var n=this.has(r)&&delete this.__data__[r];return this.size-=n?1:0,n}return Wr=t,Wr}var Gr,le;function ga(){if(le)return Gr;le=1;var t=L(),r="__lodash_hash_undefined__",n=Object.prototype,e=n.hasOwnProperty;function u(a){var i=this.__data__;if(t){var o=i[a];return o===r?void 0:o}return e.call(i,a)?i[a]:void 0}return Gr=u,Gr}var Qr,pe;function Oa(){if(pe)return Qr;pe=1;var t=L(),r=Object.prototype,n=r.hasOwnProperty;function e(u){var a=this.__data__;return t?a[u]!==void 0:n.call(a,u)}return Qr=e,Qr}var Xr,he;function wa(){if(he)return Xr;he=1;var t=L(),r="__lodash_hash_undefined__";function n(e,u){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=t&&u===void 0?r:u,this}return Xr=n,Xr}var Yr,_e;function ma(){if(_e)return Yr;_e=1;var t=da(),r=ja(),n=ga(),e=Oa(),u=wa();function a(i){var o=-1,f=i==null?0:i.length;for(this.clear();++o<f;){var c=i[o];this.set(c[0],c[1])}}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=e,a.prototype.set=u,Yr=a,Yr}var Zr,ye;function za(){if(ye)return Zr;ye=1;var t=ma(),r=C(),n=on();function e(){this.size=0,this.__data__={hash:new t,map:new(n||r),string:new t}}return Zr=e,Zr}var Hr,be;function Aa(){if(be)return Hr;be=1;function t(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}return Hr=t,Hr}var Jr,de;function N(){if(de)return Jr;de=1;var t=Aa();function r(n,e){var u=n.__data__;return t(e)?u[typeof e=="string"?"string":"hash"]:u.map}return Jr=r,Jr}var Kr,je;function xa(){if(je)return Kr;je=1;var t=N();function r(n){var e=t(this,n).delete(n);return this.size-=e?1:0,e}return Kr=r,Kr}var qr,ge;function Sa(){if(ge)return qr;ge=1;var t=N();function r(n){return t(this,n).get(n)}return qr=r,qr}var rt,Oe;function ka(){if(Oe)return rt;Oe=1;var t=N();function r(n){return t(this,n).has(n)}return rt=r,rt}var tt,we;function Ea(){if(we)return tt;we=1;var t=N();function r(n,e){var u=t(this,n),a=u.size;return u.set(n,e),this.size+=u.size==a?0:1,this}return tt=r,tt}var nt,me;function fn(){if(me)return nt;me=1;var t=za(),r=xa(),n=Sa(),e=ka(),u=Ea();function a(i){var o=-1,f=i==null?0:i.length;for(this.clear();++o<f;){var c=i[o];this.set(c[0],c[1])}}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=e,a.prototype.set=u,nt=a,nt}var et,ze;function $a(){if(ze)return et;ze=1;var t=C(),r=on(),n=fn(),e=200;function u(a,i){var o=this.__data__;if(o instanceof t){var f=o.__data__;if(!r||f.length<e-1)return f.push([a,i]),this.size=++o.size,this;o=this.__data__=new n(f)}return o.set(a,i),this.size=o.size,this}return et=u,et}var ut,Ae;function Bu(){if(Ae)return ut;Ae=1;var t=C(),r=va(),n=sa(),e=la(),u=pa(),a=$a();function i(o){var f=this.__data__=new t(o);this.size=f.size}return i.prototype.clear=r,i.prototype.delete=n,i.prototype.get=e,i.prototype.has=u,i.prototype.set=a,ut=i,ut}var at,xe;function Pa(){if(xe)return at;xe=1;var t="__lodash_hash_undefined__";function r(n){return this.__data__.set(n,t),this}return at=r,at}var it,Se;function Fa(){if(Se)return it;Se=1;function t(r){return this.__data__.has(r)}return it=t,it}var ot,ke;function Ba(){if(ke)return ot;ke=1;var t=fn(),r=Pa(),n=Fa();function e(u){var a=-1,i=u==null?0:u.length;for(this.__data__=new t;++a<i;)this.add(u[a])}return e.prototype.add=e.prototype.push=r,e.prototype.has=n,ot=e,ot}var ft,Ee;function Ra(){if(Ee)return ft;Ee=1;function t(r,n){for(var e=-1,u=r==null?0:r.length;++e<u;)if(n(r[e],e,r))return!0;return!1}return ft=t,ft}var ct,$e;function Ta(){if($e)return ct;$e=1;function t(r,n){return r.has(n)}return ct=t,ct}var vt,Pe;function Ru(){if(Pe)return vt;Pe=1;var t=Ba(),r=Ra(),n=Ta(),e=1,u=2;function a(i,o,f,c,s,v){var l=f&e,p=i.length,w=o.length;if(p!=w&&!(l&&w>p))return!1;var O=v.get(i),g=v.get(o);if(O&&g)return O==o&&g==i;var b=-1,h=!0,m=f&u?new t:void 0;for(v.set(i,o),v.set(o,i);++b<p;){var d=i[b],z=o[b];if(c)var j=l?c(z,d,b,o,i,v):c(d,z,b,i,o,v);if(j!==void 0){if(j)continue;h=!1;break}if(m){if(!r(o,function(_,A){if(!n(m,A)&&(d===_||s(d,_,f,c,v)))return m.push(A)})){h=!1;break}}else if(!(d===z||s(d,z,f,c,v))){h=!1;break}}return v.delete(i),v.delete(o),h}return vt=a,vt}var st,Fe;function Da(){if(Fe)return st;Fe=1;var t=$(),r=t.Uint8Array;return st=r,st}var lt,Be;function Ma(){if(Be)return lt;Be=1;function t(r){var n=-1,e=Array(r.size);return r.forEach(function(u,a){e[++n]=[a,u]}),e}return lt=t,lt}var pt,Re;function Ua(){if(Re)return pt;Re=1;function t(r){var n=-1,e=Array(r.size);return r.forEach(function(u){e[++n]=u}),e}return pt=t,pt}var ht,Te;function Va(){if(Te)return ht;Te=1;var t=V(),r=Da(),n=Pu(),e=Ru(),u=Ma(),a=Ua(),i=1,o=2,f="[object Boolean]",c="[object Date]",s="[object Error]",v="[object Map]",l="[object Number]",p="[object RegExp]",w="[object Set]",O="[object String]",g="[object Symbol]",b="[object ArrayBuffer]",h="[object DataView]",m=t?t.prototype:void 0,d=m?m.valueOf:void 0;function z(j,_,A,x,k,y,E){switch(A){case h:if(j.byteLength!=_.byteLength||j.byteOffset!=_.byteOffset)return!1;j=j.buffer,_=_.buffer;case b:return!(j.byteLength!=_.byteLength||!y(new r(j),new r(_)));case f:case c:case l:return n(+j,+_);case s:return j.name==_.name&&j.message==_.message;case p:case O:return j==_+"";case v:var S=u;case w:var G=x&i;if(S||(S=a),j.size!=_.size&&!G)return!1;var T=E.get(j);if(T)return T==_;x|=o,E.set(j,_);var Iu=e(S(j),S(_),x,k,y,E);return E.delete(j),Iu;case g:if(d)return d.call(j)==d.call(_)}return!1}return ht=z,ht}var _t,De;function Ia(){if(De)return _t;De=1;function t(r,n){for(var e=-1,u=n.length,a=r.length;++e<u;)r[a+e]=n[e];return r}return _t=t,_t}var yt,Me;function Ca(){if(Me)return yt;Me=1;var t=Ia(),r=P();function n(e,u,a){var i=u(e);return r(e)?i:t(i,a(e))}return yt=n,yt}var bt,Ue;function La(){if(Ue)return bt;Ue=1;function t(r,n){for(var e=-1,u=r==null?0:r.length,a=0,i=[];++e<u;){var o=r[e];n(o,e,r)&&(i[a++]=o)}return i}return bt=t,bt}var dt,Ve;function Na(){if(Ve)return dt;Ve=1;function t(){return[]}return dt=t,dt}var jt,Ie;function Wa(){if(Ie)return jt;Ie=1;var t=La(),r=Na(),n=Object.prototype,e=n.propertyIsEnumerable,u=Object.getOwnPropertySymbols,a=u?function(i){return i==null?[]:(i=Object(i),t(u(i),function(o){return e.call(i,o)}))}:r;return jt=a,jt}var gt,Ce;function Ga(){if(Ce)return gt;Ce=1;var t=Ca(),r=Wa(),n=an();function e(u){return t(u,n,r)}return gt=e,gt}var Ot,Le;function Qa(){if(Le)return Ot;Le=1;var t=Ga(),r=1,n=Object.prototype,e=n.hasOwnProperty;function u(a,i,o,f,c,s){var v=o&r,l=t(a),p=l.length,w=t(i),O=w.length;if(p!=O&&!v)return!1;for(var g=p;g--;){var b=l[g];if(!(v?b in i:e.call(i,b)))return!1}var h=s.get(a),m=s.get(i);if(h&&m)return h==i&&m==a;var d=!0;s.set(a,i),s.set(i,a);for(var z=v;++g<p;){b=l[g];var j=a[b],_=i[b];if(f)var A=v?f(_,j,b,i,a,s):f(j,_,b,a,i,s);if(!(A===void 0?j===_||c(j,_,o,f,s):A)){d=!1;break}z||(z=b=="constructor")}if(d&&!z){var x=a.constructor,k=i.constructor;x!=k&&"constructor"in a&&"constructor"in i&&!(typeof x=="function"&&x instanceof x&&typeof k=="function"&&k instanceof k)&&(d=!1)}return s.delete(a),s.delete(i),d}return Ot=u,Ot}var wt,Ne;function Xa(){if(Ne)return wt;Ne=1;var t=F(),r=$(),n=t(r,"DataView");return wt=n,wt}var mt,We;function Ya(){if(We)return mt;We=1;var t=F(),r=$(),n=t(r,"Promise");return mt=n,mt}var zt,Ge;function Za(){if(Ge)return zt;Ge=1;var t=F(),r=$(),n=t(r,"Set");return zt=n,zt}var At,Qe;function Ha(){if(Qe)return At;Qe=1;var t=F(),r=$(),n=t(r,"WeakMap");return At=n,At}var xt,Xe;function Ja(){if(Xe)return xt;Xe=1;var t=Xa(),r=on(),n=Ya(),e=Za(),u=Ha(),a=B(),i=Fu(),o="[object Map]",f="[object Object]",c="[object Promise]",s="[object Set]",v="[object WeakMap]",l="[object DataView]",p=i(t),w=i(r),O=i(n),g=i(e),b=i(u),h=a;return(t&&h(new t(new ArrayBuffer(1)))!=l||r&&h(new r)!=o||n&&h(n.resolve())!=c||e&&h(new e)!=s||u&&h(new u)!=v)&&(h=function(m){var d=a(m),z=d==f?m.constructor:void 0,j=z?i(z):"";if(j)switch(j){case p:return l;case w:return o;case O:return c;case g:return s;case b:return v}return d}),xt=h,xt}var St,Ye;function Ka(){if(Ye)return St;Ye=1;var t=Bu(),r=Ru(),n=Va(),e=Qa(),u=Ja(),a=P(),i=xu(),o=ku(),f=1,c="[object Arguments]",s="[object Array]",v="[object Object]",l=Object.prototype,p=l.hasOwnProperty;function w(O,g,b,h,m,d){var z=a(O),j=a(g),_=z?s:u(O),A=j?s:u(g);_=_==c?v:_,A=A==c?v:A;var x=_==v,k=A==v,y=_==A;if(y&&i(O)){if(!i(g))return!1;z=!0,x=!1}if(y&&!x)return d||(d=new t),z||o(O)?r(O,g,b,h,m,d):n(O,g,_,b,h,m,d);if(!(b&f)){var E=x&&p.call(O,"__wrapped__"),S=k&&p.call(g,"__wrapped__");if(E||S){var G=E?O.value():O,T=S?g.value():g;return d||(d=new t),m(G,T,b,h,d)}}return y?(d||(d=new t),e(O,g,b,h,m,d)):!1}return St=w,St}var kt,Ze;function Tu(){if(Ze)return kt;Ze=1;var t=Ka(),r=R();function n(e,u,a,i,o){return e===u?!0:e==null||u==null||!r(e)&&!r(u)?e!==e&&u!==u:t(e,u,a,i,n,o)}return kt=n,kt}var Et,He;function qa(){if(He)return Et;He=1;var t=Bu(),r=Tu(),n=1,e=2;function u(a,i,o,f){var c=o.length,s=c,v=!f;if(a==null)return!s;for(a=Object(a);c--;){var l=o[c];if(v&&l[2]?l[1]!==a[l[0]]:!(l[0]in a))return!1}for(;++c<s;){l=o[c];var p=l[0],w=a[p],O=l[1];if(v&&l[2]){if(w===void 0&&!(p in a))return!1}else{var g=new t;if(f)var b=f(w,O,p,a,i,g);if(!(b===void 0?r(O,w,n|e,f,g):b))return!1}}return!0}return Et=u,Et}var $t,Je;function Du(){if(Je)return $t;Je=1;var t=un();function r(n){return n===n&&!t(n)}return $t=r,$t}var Pt,Ke;function ri(){if(Ke)return Pt;Ke=1;var t=Du(),r=an();function n(e){for(var u=r(e),a=u.length;a--;){var i=u[a],o=e[i];u[a]=[i,o,t(o)]}return u}return Pt=n,Pt}var Ft,qe;function Mu(){if(qe)return Ft;qe=1;function t(r,n){return function(e){return e==null?!1:e[r]===n&&(n!==void 0||r in Object(e))}}return Ft=t,Ft}var Bt,ru;function ti(){if(ru)return Bt;ru=1;var t=qa(),r=ri(),n=Mu();function e(u){var a=r(u);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(i){return i===u||t(i,u,a)}}return Bt=e,Bt}var Rt,tu;function cn(){if(tu)return Rt;tu=1;var t=B(),r=R(),n="[object Symbol]";function e(u){return typeof u=="symbol"||r(u)&&t(u)==n}return Rt=e,Rt}var Tt,nu;function vn(){if(nu)return Tt;nu=1;var t=P(),r=cn(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,e=/^\w*$/;function u(a,i){if(t(a))return!1;var o=typeof a;return o=="number"||o=="symbol"||o=="boolean"||a==null||r(a)?!0:e.test(a)||!n.test(a)||i!=null&&a in Object(i)}return Tt=u,Tt}var Dt,eu;function ni(){if(eu)return Dt;eu=1;var t=fn(),r="Expected a function";function n(e,u){if(typeof e!="function"||u!=null&&typeof u!="function")throw new TypeError(r);var a=function(){var i=arguments,o=u?u.apply(this,i):i[0],f=a.cache;if(f.has(o))return f.get(o);var c=e.apply(this,i);return a.cache=f.set(o,c)||f,c};return a.cache=new(n.Cache||t),a}return n.Cache=t,Dt=n,Dt}var Mt,uu;function ei(){if(uu)return Mt;uu=1;var t=ni(),r=500;function n(e){var u=t(e,function(i){return a.size===r&&a.clear(),i}),a=u.cache;return u}return Mt=n,Mt}var Ut,au;function ui(){if(au)return Ut;au=1;var t=ei(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,e=t(function(u){var a=[];return u.charCodeAt(0)===46&&a.push(""),u.replace(r,function(i,o,f,c){a.push(f?c.replace(n,"$1"):o||i)}),a});return Ut=e,Ut}var Vt,iu;function ai(){if(iu)return Vt;iu=1;var t=V(),r=ua(),n=P(),e=cn(),u=t?t.prototype:void 0,a=u?u.toString:void 0;function i(o){if(typeof o=="string")return o;if(n(o))return r(o,i)+"";if(e(o))return a?a.call(o):"";var f=o+"";return f=="0"&&1/o==-1/0?"-0":f}return Vt=i,Vt}var It,ou;function ii(){if(ou)return It;ou=1;var t=ai();function r(n){return n==null?"":t(n)}return It=r,It}var Ct,fu;function Uu(){if(fu)return Ct;fu=1;var t=P(),r=vn(),n=ui(),e=ii();function u(a,i){return t(a)?a:r(a,i)?[a]:n(e(a))}return Ct=u,Ct}var Lt,cu;function W(){if(cu)return Lt;cu=1;var t=cn();function r(n){if(typeof n=="string"||t(n))return n;var e=n+"";return e=="0"&&1/n==-1/0?"-0":e}return Lt=r,Lt}var Nt,vu;function Vu(){if(vu)return Nt;vu=1;var t=Uu(),r=W();function n(e,u){u=t(u,e);for(var a=0,i=u.length;e!=null&&a<i;)e=e[r(u[a++])];return a&&a==i?e:void 0}return Nt=n,Nt}var Wt,su;function oi(){if(su)return Wt;su=1;var t=Vu();function r(n,e,u){var a=n==null?void 0:t(n,e);return a===void 0?u:a}return Wt=r,Wt}var Gt,lu;function fi(){if(lu)return Gt;lu=1;function t(r,n){return r!=null&&n in Object(r)}return Gt=t,Gt}var Qt,pu;function ci(){if(pu)return Qt;pu=1;var t=Uu(),r=Au(),n=P(),e=Su(),u=en(),a=W();function i(o,f,c){f=t(f,o);for(var s=-1,v=f.length,l=!1;++s<v;){var p=a(f[s]);if(!(l=o!=null&&c(o,p)))break;o=o[p]}return l||++s!=v?l:(v=o==null?0:o.length,!!v&&u(v)&&e(p,v)&&(n(o)||r(o)))}return Qt=i,Qt}var Xt,hu;function vi(){if(hu)return Xt;hu=1;var t=fi(),r=ci();function n(e,u){return e!=null&&r(e,u,t)}return Xt=n,Xt}var Yt,_u;function si(){if(_u)return Yt;_u=1;var t=Tu(),r=oi(),n=vi(),e=vn(),u=Du(),a=Mu(),i=W(),o=1,f=2;function c(s,v){return e(s)&&u(v)?a(i(s),v):function(l){var p=r(l,s);return p===void 0&&p===v?n(l,s):t(v,p,o|f)}}return Yt=c,Yt}var Zt,yu;function li(){if(yu)return Zt;yu=1;function t(r){return function(n){return n?.[r]}}return Zt=t,Zt}var Ht,bu;function pi(){if(bu)return Ht;bu=1;var t=Vu();function r(n){return function(e){return t(e,n)}}return Ht=r,Ht}var Jt,du;function hi(){if(du)return Jt;du=1;var t=li(),r=pi(),n=vn(),e=W();function u(a){return n(a)?t(e(a)):r(a)}return Jt=u,Jt}var Kt,ju;function di(){if(ju)return Kt;ju=1;var t=ti(),r=si(),n=ea(),e=P(),u=hi();function a(i){return typeof i=="function"?i:i==null?n:typeof i=="object"?e(i)?r(i[0],i[1]):t(i):u(i)}return Kt=a,Kt}var qt,gu;function _i(){if(gu)return qt;gu=1;var t=$u();function r(n,e){return function(u,a){if(u==null)return u;if(!t(u))return n(u,a);for(var i=u.length,o=e?i:-1,f=Object(u);(e?o--:++o<i)&&a(f[o],o,f)!==!1;);return u}}return qt=r,qt}var rn,Ou;function ji(){if(Ou)return rn;Ou=1;var t=na(),r=_i(),n=r(t);return rn=n,rn}var tn,wu;function yi(){if(wu)return tn;wu=1;var t=F(),r=(function(){try{var n=t(Object,"defineProperty");return n({},"",{}),n}catch{}})();return tn=r,tn}var nn,mu;function gi(){if(mu)return nn;mu=1;var t=yi();function r(n,e,u){e=="__proto__"&&t?t(n,e,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[e]=u}return nn=r,nn}export{Ca as B,Bu as D,Ua as F,V as H,Ia as K,P as M,Su as P,qu as Q,Au as S,Na as U,Ja as V,Zu as X,Ku as Y,Hu as Z,na as a,ji as b,un as c,Pu as d,$ as e,Ju as f,di as g,Da as h,an as i,R as j,Ga as k,ci as l,xu as m,ua as n,cn as o,Ba as p,gi as q,Za as r,Ta as s,ea as t,$u as w,B as x,Wa as z};
@@ -0,0 +1 @@
1
+ function c(r,n,t,u){for(var o=r.length,e=t+-1;++e<o;)if(n(r[e],e,r))return e;return-1}function f(r){return r!==r}function i(r,n,t){for(var u=t-1,o=r.length;++u<o;)if(r[u]===n)return u;return-1}function h(r,n,t){return n===n?i(r,n,t):c(r,f,t)}export{h as c};
@@ -1,4 +1,4 @@
1
- import{aY as P,b_ as u,c0 as ce,c1 as T,r as b,ba as H,b$ as D,aZ as w,bE as Z,bF as Y,by as te,bz as oe,bA as ne,bB as ie}from"./index-BvblFOYP.js";var pe=["title","size","color","overrides"];function L(){return L=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},L.apply(this,arguments)}function de(e,r){if(e==null)return{};var t=fe(e,r),o,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}function fe(e,r){if(e==null)return{};var t={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(r.indexOf(n)>=0)&&(t[n]=e[n]);return t}function be(e,r){return me(e)||he(e,r)||ge(e,r)||ye()}function ye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(e,r){if(e){if(typeof e=="string")return J(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return J(e,r)}}function J(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function he(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],n=!0,i=!1,a,l;try{for(t=t.call(e);!(n=(a=t.next()).done)&&(o.push(a.value),!(r&&o.length===r));n=!0);}catch(s){i=!0,l=s}finally{try{!n&&t.return!=null&&t.return()}finally{if(i)throw l}}return o}}function me(e){if(Array.isArray(e))return e}function ve(e,r){var t=te(),o=be(t,2),n=o[1],i=e.title,a=i===void 0?"Hide":i,l=e.size,s=e.color,c=e.overrides,p=c===void 0?{}:c,y=de(e,pe),h=oe({component:n.icons&&n.icons.Hide?n.icons.Hide:null},p&&p.Svg?ne(p.Svg):{});return b.createElement(ie,L({viewBox:"0 0 20 20",ref:r,title:a,size:l,color:s,overrides:{Svg:h}},y),b.createElement("path",{d:"M12.81 4.36l-1.77 1.78a4 4 0 00-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0112.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 01-12.62 5.64l1.77-1.78a4 4 0 004.9-4.9l2.76-2.75zm-.25-3.99l1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z"}))}const Oe=b.forwardRef(ve);var Ce=["title","size","color","overrides"];function A(){return A=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},A.apply(this,arguments)}function we(e,r){if(e==null)return{};var t=Fe(e,r),o,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}function Fe(e,r){if(e==null)return{};var t={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(r.indexOf(n)>=0)&&(t[n]=e[n]);return t}function Se(e,r){return Pe(e)||Te(e,r)||xe(e,r)||ke()}function ke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(e,r){if(e){if(typeof e=="string")return Q(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Q(e,r)}}function Q(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function Te(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],n=!0,i=!1,a,l;try{for(t=t.call(e);!(n=(a=t.next()).done)&&(o.push(a.value),!(r&&o.length===r));n=!0);}catch(s){i=!0,l=s}finally{try{!n&&t.return!=null&&t.return()}finally{if(i)throw l}}return o}}function Pe(e){if(Array.isArray(e))return e}function je(e,r){var t=te(),o=Se(t,2),n=o[1],i=e.title,a=i===void 0?"Show":i,l=e.size,s=e.color,c=e.overrides,p=c===void 0?{}:c,y=we(e,Ce),h=oe({component:n.icons&&n.icons.Show?n.icons.Show:null},p&&p.Svg?ne(p.Svg):{});return b.createElement(ie,A({viewBox:"0 0 20 20",ref:r,title:a,size:l,color:s,overrides:{Svg:h}},y),b.createElement("path",{d:"M.2 10a11 11 0 0119.6 0A11 11 0 01.2 10zm9.8 4a4 4 0 100-8 4 4 0 000 8zm0-2a2 2 0 110-4 2 2 0 010 4z"}))}const $e=b.forwardRef(je);function X(e,r){var t=e.disabled,o=e.error,n=e.positive,i=e.adjoined,a=e.size,l=e.required,s=e.resize,c=e.readOnly,p=r.isFocused;return{$isFocused:p,$disabled:t,$error:o,$positive:n,$adjoined:i,$size:a,$required:l,$resize:s,$isReadOnly:c}}function G(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function g(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?G(Object(t),!0).forEach(function(o){d(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}function d(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var _=P("button",function(e){var r,t=e.$theme,o=e.$size,n=e.$isFocusVisible,i=(r={},d(r,u.mini,t.sizing.scale400),d(r,u.compact,t.sizing.scale400),d(r,u.default,t.sizing.scale300),d(r,u.large,t.sizing.scale200),r)[o];return{display:"flex",alignItems:"center",borderTopStyle:"none",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"none",background:"none",paddingLeft:i,paddingRight:i,outline:n?"solid 3px ".concat(t.colors.accent):"none",color:t.colors.contentPrimary}});_.displayName="StyledMaskToggleButton";_.displayName="StyledMaskToggleButton";var K=P("div",function(e){var r,t=e.$alignTop,o=t===void 0?!1:t,n=e.$size,i=e.$theme,a=(r={},d(r,u.mini,i.sizing.scale200),d(r,u.compact,i.sizing.scale200),d(r,u.default,i.sizing.scale100),d(r,u.large,i.sizing.scale0),r)[n];return{display:"flex",alignItems:o?"flex-start":"center",paddingLeft:a,paddingRight:a,paddingTop:o?i.sizing.scale500:"0px",color:i.colors.contentPrimary}});K.displayName="StyledClearIconContainer";K.displayName="StyledClearIconContainer";var W=P(ce,function(e){var r=e.$theme,t=e.$isFocusVisible;return{cursor:"pointer",outline:t?"solid 3px ".concat(r.colors.accent):"none"}});W.displayName="StyledClearIcon";W.displayName="StyledClearIcon";function Re(e,r){var t;return(t={},d(t,u.mini,{paddingTop:r.scale100,paddingBottom:r.scale100,paddingLeft:r.scale550,paddingRight:r.scale550}),d(t,u.compact,{paddingTop:r.scale200,paddingBottom:r.scale200,paddingLeft:r.scale550,paddingRight:r.scale550}),d(t,u.default,{paddingTop:r.scale400,paddingBottom:r.scale400,paddingLeft:r.scale550,paddingRight:r.scale550}),d(t,u.large,{paddingTop:r.scale550,paddingBottom:r.scale550,paddingLeft:r.scale550,paddingRight:r.scale550}),t)[e]}function Be(e,r,t,o,n){var i=e===T.both||e===T.left&&o!=="rtl"||e===T.right&&o==="rtl"||n&&o==="rtl",a=e===T.both||e===T.right&&o!=="rtl"||e===T.left&&o==="rtl"||n&&o!=="rtl";return{paddingLeft:i?t.scale550:"0px",paddingRight:a?t.scale550:"0px"}}function z(e,r){var t;return(t={},d(t,u.mini,r.font100),d(t,u.compact,r.font200),d(t,u.default,r.font300),d(t,u.large,r.font400),t)[e]}function Ee(e,r,t){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,n=arguments.length>4?arguments[4]:void 0;return e?{borderLeftColor:n.inputFillDisabled,borderRightColor:n.inputFillDisabled,borderTopColor:n.inputFillDisabled,borderBottomColor:n.inputFillDisabled,backgroundColor:n.inputFillDisabled}:r?{borderLeftColor:n.borderSelected,borderRightColor:n.borderSelected,borderTopColor:n.borderSelected,borderBottomColor:n.borderSelected,backgroundColor:n.inputFillActive}:t?{borderLeftColor:n.inputBorderError,borderRightColor:n.inputBorderError,borderTopColor:n.inputBorderError,borderBottomColor:n.inputBorderError,backgroundColor:n.inputFillError}:o?{borderLeftColor:n.inputBorderPositive,borderRightColor:n.inputBorderPositive,borderTopColor:n.inputBorderPositive,borderBottomColor:n.inputBorderPositive,backgroundColor:n.inputFillPositive}:{borderLeftColor:n.inputBorder,borderRightColor:n.inputBorder,borderTopColor:n.inputBorder,borderBottomColor:n.inputBorder,backgroundColor:n.inputFill}}function Ie(e,r){var t=r.inputBorderRadius;return e===u.mini&&(t=r.inputBorderRadiusMini),{borderTopLeftRadius:t,borderBottomLeftRadius:t,borderTopRightRadius:t,borderBottomRightRadius:t}}var ze=function(e){var r=e.$isFocused,t=e.$adjoined,o=e.$error,n=e.$disabled,i=e.$positive,a=e.$size,l=e.$theme,s=e.$theme,c=s.borders,p=s.colors,y=s.sizing,h=s.typography,O=s.animation,S=e.$hasIconTrailing;return g(g(g(g({boxSizing:"border-box",display:"flex",overflow:"hidden",width:"100%",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",transitionProperty:"border",transitionDuration:O.timing200,transitionTimingFunction:O.easeOutCurve},Ie(a,c)),z(a,h)),Ee(n,r,o,i,p)),Be(t,a,y,l.direction,S))},ae=P("div",ze);ae.displayName="Root";ae.displayName="Root";function Me(e,r){var t;return(t={},d(t,u.mini,{paddingRight:r.scale400,paddingLeft:r.scale400}),d(t,u.compact,{paddingRight:r.scale400,paddingLeft:r.scale400}),d(t,u.default,{paddingRight:r.scale300,paddingLeft:r.scale300}),d(t,u.large,{paddingRight:r.scale200,paddingLeft:r.scale200}),t)[e]}function De(e,r,t,o,n){return e?{color:n.inputEnhancerTextDisabled,backgroundColor:n.inputFillDisabled}:r?{color:n.contentPrimary,backgroundColor:n.inputFillActive}:t?{color:n.contentPrimary,backgroundColor:n.inputFillError}:o?{color:n.contentPrimary,backgroundColor:n.inputFillPositive}:{color:n.contentPrimary,backgroundColor:n.inputFill}}var le=P("div",function(e){var r=e.$size,t=e.$disabled,o=e.$isFocused,n=e.$error,i=e.$positive,a=e.$theme,l=a.colors,s=a.sizing,c=a.typography,p=a.animation;return g(g(g({display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"color, background-color",transitionDuration:p.timing200,transitionTimingFunction:p.easeOutCurve},z(r,c)),Me(r,s)),De(t,o,n,i,l))});le.displayName="InputEnhancer";le.displayName="InputEnhancer";function Le(e,r,t,o,n){return e?{color:n.inputTextDisabled,backgroundColor:n.inputFillDisabled}:r?{color:n.contentPrimary,backgroundColor:n.inputFillActive}:t?{color:n.contentPrimary,backgroundColor:n.inputFillError}:o?{color:n.contentPrimary,backgroundColor:n.inputFillPositive}:{color:n.contentPrimary,backgroundColor:n.inputFill}}var Ae=function(e){var r=e.$isFocused,t=e.$error,o=e.$disabled,n=e.$positive,i=e.$size,a=e.$theme,l=a.colors,s=a.typography,c=a.animation;return g(g({display:"flex",width:"100%",transitionProperty:"background-color",transitionDuration:c.timing200,transitionTimingFunction:c.easeOutCurve},z(i,s)),Le(o,r,t,n,l))},U=P("div",Ae);U.displayName="InputContainer";U.displayName="InputContainer";function Ve(e,r,t,o){return e?{color:o.inputTextDisabled,"-webkit-text-fill-color":o.inputTextDisabled,caretColor:o.contentPrimary,"::placeholder":{color:o.inputPlaceholderDisabled}}:{color:o.contentPrimary,caretColor:o.contentPrimary,"::placeholder":{color:o.inputPlaceholder}}}var Ne=function(e){var r=e.$disabled,t=e.$isFocused,o=e.$error,n=e.$size,i=e.$theme,a=i.colors,l=i.sizing,s=i.typography;return g(g(g({boxSizing:"border-box",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderRightStyle:"none",borderTopStyle:"none",borderBottomStyle:"none",outline:"none",width:"100%",minWidth:0,maxWidth:"100%",cursor:r?"not-allowed":"text",margin:"0",paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0"},z(n,s)),Re(n,l)),Ve(r,t,o,a))},q=P("input",Ne);q.displayName="Input";q.displayName="Input";function _e(e){var r;return typeof window.Event=="function"?r=new window.Event(e,{bubbles:!0,cancelable:!0}):(r=document.createEvent("Event"),r.initEvent(e,!0,!0)),r}function V(e){"@babel/helpers - typeof";return V=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},V(e)}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},v.apply(this,arguments)}function F(e,r){return qe(e)||Ue(e,r)||We(e,r)||Ke()}function Ke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function We(e,r){if(e){if(typeof e=="string")return ee(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ee(e,r)}}function ee(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function Ue(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],n=!0,i=!1,a,l;try{for(t=t.call(e);!(n=(a=t.next()).done)&&(o.push(a.value),!(r&&o.length===r));n=!0);}catch(s){i=!0,l=s}finally{try{!n&&t.return!=null&&t.return()}finally{if(i)throw l}}return o}}function qe(e){if(Array.isArray(e))return e}function He(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Ze(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ye(e,r,t){return r&&Ze(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Je(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&&N(e,r)}function N(e,r){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},N(e,r)}function Qe(e){var r=Ge();return function(){var t=I(e),o;if(r){var n=I(this).constructor;o=Reflect.construct(t,arguments,n)}else o=t.apply(this,arguments);return Xe(this,o)}}function Xe(e,r){if(r&&(V(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ge(){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 I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},I(e)}function f(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var re=function(){return null},er=(function(e){Je(t,e);var r=Qe(t);function t(){var o;He(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return o=r.call.apply(r,[this].concat(i)),f(m(o),"inputRef",o.props.inputRef||b.createRef()),f(m(o),"state",{isFocused:o.props.autoFocus||!1,isMasked:o.props.type==="password",initialType:o.props.type,isFocusVisibleForClear:!1,isFocusVisibleForMaskToggle:!1}),f(m(o),"onInputKeyDown",function(l){o.props.clearOnEscape&&l.key==="Escape"&&o.inputRef.current&&!o.props.readOnly&&(o.clearValue(),l.stopPropagation())}),f(m(o),"onClearIconClick",function(){o.inputRef.current&&o.clearValue(),o.inputRef.current&&o.inputRef.current.focus()}),f(m(o),"onFocus",function(l){o.setState({isFocused:!0}),o.props.onFocus(l)}),f(m(o),"onBlur",function(l){o.setState({isFocused:!1}),o.props.onBlur(l)}),f(m(o),"handleFocusForMaskToggle",function(l){H(l)&&o.setState({isFocusVisibleForMaskToggle:!0})}),f(m(o),"handleBlurForMaskToggle",function(l){o.state.isFocusVisibleForMaskToggle!==!1&&o.setState({isFocusVisibleForMaskToggle:!1})}),f(m(o),"handleFocusForClear",function(l){H(l)&&o.setState({isFocusVisibleForClear:!0})}),f(m(o),"handleBlurForClear",function(l){o.state.isFocusVisibleForClear!==!1&&o.setState({isFocusVisibleForClear:!1})}),o}return Ye(t,[{key:"componentDidMount",value:function(){var o=this.props,n=o.autoFocus,i=o.clearable;this.inputRef.current&&(n&&this.inputRef.current.focus(),i&&this.inputRef.current.addEventListener("keydown",this.onInputKeyDown))}},{key:"componentWillUnmount",value:function(){var o=this.props.clearable;o&&this.inputRef.current&&this.inputRef.current.removeEventListener("keydown",this.onInputKeyDown)}},{key:"clearValue",value:function(){var o=this.inputRef.current;if(o){var n=Object.getOwnPropertyDescriptor(this.props.type===D.textarea?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,"value");if(n){var i=n.set;if(i){i.call(o,"");var a=_e("input");o.dispatchEvent(a)}}}}},{key:"getInputType",value:function(){return this.props.type==="password"?this.state.isMasked?"password":"text":this.props.type}},{key:"renderMaskToggle",value:function(){var o,n=this;if(this.props.type!=="password")return null;var i=w(this.props.overrides.MaskToggleButton,_),a=F(i,2),l=a[0],s=a[1],c=w(this.props.overrides.MaskToggleShowIcon,$e),p=F(c,2),y=p[0],h=p[1],O=w(this.props.overrides.MaskToggleHideIcon,Oe),S=F(O,2),j=S[0],R=S[1],C=this.state.isMasked?"Show password text":"Hide password text",$=(o={},f(o,u.mini,"12px"),f(o,u.compact,"16px"),f(o,u.default,"20px"),f(o,u.large,"24px"),o)[this.props.size];return b.createElement(l,v({$size:this.props.size,$isFocusVisible:this.state.isFocusVisibleForMaskToggle,"aria-label":C,onClick:function(){return n.setState(function(k){return{isMasked:!k.isMasked}})},title:C,type:"button"},s,{onFocus:Y(s,this.handleFocusForMaskToggle),onBlur:Z(s,this.handleBlurForMaskToggle)}),this.state.isMasked?b.createElement(y,v({size:$,title:C},h)):b.createElement(j,v({size:$,title:C},R)))}},{key:"renderClear",value:function(){var o,n=this,i=this.props,a=i.clearable,l=i.value,s=i.disabled,c=i.readOnly,p=i.overrides,y=p===void 0?{}:p;if(s||c||!a||l==null||typeof l=="string"&&l.length===0)return null;var h=w(y.ClearIconContainer,K),O=F(h,2),S=O[0],j=O[1],R=w(y.ClearIcon,W),C=F(R,2),$=C[0],k=C[1],B="Clear value",E=X(this.props,this.state),M=(o={},f(o,u.mini,"14px"),f(o,u.compact,"14px"),f(o,u.default,"16px"),f(o,u.large,"22px"),o)[this.props.size];return b.createElement(S,v({$alignTop:this.props.type===D.textarea},E,j),b.createElement($,v({size:M,tabIndex:0,title:B,"aria-label":B,onClick:this.onClearIconClick,onKeyDown:function(x){x.key&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),n.onClearIconClick())},role:"button",$isFocusVisible:this.state.isFocusVisibleForClear},E,k,{onFocus:Y(k,this.handleFocusForClear),onBlur:Z(k,this.handleBlurForClear)})))}},{key:"render",value:function(){var o=this.props.overrides,n=o.InputContainer,i=o.Input,a=o.Before,l=o.After,s=this.state.initialType==="password"&&this.props.autoComplete===t.defaultProps.autoComplete?"new-password":this.props.autoComplete,c=X(this.props,this.state),p=w(n,U),y=F(p,2),h=y[0],O=y[1],S=w(i,q),j=F(S,2),R=j[0],C=j[1],$=w(a,re),k=F($,2),B=k[0],E=k[1],M=w(l,re),x=F(M,2),se=x[0],ue=x[1];return b.createElement(h,v({"data-baseweb":this.props["data-baseweb"]||"base-input"},c,O),b.createElement(B,v({},c,E)),b.createElement(R,v({ref:this.inputRef,"aria-activedescendant":this.props["aria-activedescendant"],"aria-autocomplete":this.props["aria-autocomplete"],"aria-controls":this.props["aria-controls"],"aria-errormessage":this.props["aria-errormessage"],"aria-haspopup":this.props["aria-haspopup"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-invalid":this.props.error,"aria-required":this.props.required,autoComplete:s,disabled:this.props.disabled,readOnly:this.props.readOnly,id:this.props.id,inputMode:this.props.inputMode,maxLength:this.props.maxLength,name:this.props.name,onBlur:this.onBlur,onChange:this.props.onChange,onFocus:this.onFocus,onKeyDown:this.props.onKeyDown,onKeyPress:this.props.onKeyPress,onKeyUp:this.props.onKeyUp,pattern:this.props.pattern,placeholder:this.props.placeholder,type:this.getInputType(),required:this.props.required,role:this.props.role,value:this.props.value,min:this.props.min,max:this.props.max,step:this.props.step,rows:this.props.type===D.textarea?this.props.rows:null},c,C)),this.renderClear(),this.renderMaskToggle(),b.createElement(se,v({},c,ue)))}}]),t})(b.Component);f(er,"defaultProps",{"aria-activedescendant":null,"aria-autocomplete":null,"aria-controls":null,"aria-errormessage":null,"aria-haspopup":null,"aria-label":null,"aria-labelledby":null,"aria-describedby":null,adjoined:T.none,autoComplete:"on",autoFocus:!1,disabled:!1,error:!1,positive:!1,name:"",inputMode:"text",onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){},onFocus:function(){},onClear:function(){},clearable:!1,clearOnEscape:!0,overrides:{},pattern:null,placeholder:"",required:!1,role:null,size:u.default,type:"text",readOnly:!1});export{ze as A,Ae as D,Ne as V,X as e,q,ae as s,er as t,le as u};
1
+ import{bs as P,b$ as u,c1 as ce,c2 as T,r as b,bM as H,c0 as D,bt as w,c3 as Z,c4 as J,c5 as te,c6 as oe,c7 as ne,c8 as ie}from"./index-Bdi0ug4X.js";var pe=["title","size","color","overrides"];function L(){return L=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},L.apply(this,arguments)}function de(e,r){if(e==null)return{};var t=fe(e,r),o,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}function fe(e,r){if(e==null)return{};var t={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(r.indexOf(n)>=0)&&(t[n]=e[n]);return t}function be(e,r){return me(e)||he(e,r)||ge(e,r)||ye()}function ye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(e,r){if(e){if(typeof e=="string")return Q(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Q(e,r)}}function Q(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function he(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],n=!0,i=!1,a,l;try{for(t=t.call(e);!(n=(a=t.next()).done)&&(o.push(a.value),!(r&&o.length===r));n=!0);}catch(s){i=!0,l=s}finally{try{!n&&t.return!=null&&t.return()}finally{if(i)throw l}}return o}}function me(e){if(Array.isArray(e))return e}function ve(e,r){var t=te(),o=be(t,2),n=o[1],i=e.title,a=i===void 0?"Hide":i,l=e.size,s=e.color,c=e.overrides,p=c===void 0?{}:c,y=de(e,pe),h=oe({component:n.icons&&n.icons.Hide?n.icons.Hide:null},p&&p.Svg?ne(p.Svg):{});return b.createElement(ie,L({viewBox:"0 0 20 20",ref:r,title:a,size:l,color:s,overrides:{Svg:h}},y),b.createElement("path",{d:"M12.81 4.36l-1.77 1.78a4 4 0 00-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0112.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 01-12.62 5.64l1.77-1.78a4 4 0 004.9-4.9l2.76-2.75zm-.25-3.99l1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z"}))}const Oe=b.forwardRef(ve);var Ce=["title","size","color","overrides"];function A(){return A=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},A.apply(this,arguments)}function we(e,r){if(e==null)return{};var t=Fe(e,r),o,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}function Fe(e,r){if(e==null)return{};var t={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(r.indexOf(n)>=0)&&(t[n]=e[n]);return t}function Se(e,r){return Pe(e)||Te(e,r)||xe(e,r)||ke()}function ke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(e,r){if(e){if(typeof e=="string")return X(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return X(e,r)}}function X(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function Te(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],n=!0,i=!1,a,l;try{for(t=t.call(e);!(n=(a=t.next()).done)&&(o.push(a.value),!(r&&o.length===r));n=!0);}catch(s){i=!0,l=s}finally{try{!n&&t.return!=null&&t.return()}finally{if(i)throw l}}return o}}function Pe(e){if(Array.isArray(e))return e}function je(e,r){var t=te(),o=Se(t,2),n=o[1],i=e.title,a=i===void 0?"Show":i,l=e.size,s=e.color,c=e.overrides,p=c===void 0?{}:c,y=we(e,Ce),h=oe({component:n.icons&&n.icons.Show?n.icons.Show:null},p&&p.Svg?ne(p.Svg):{});return b.createElement(ie,A({viewBox:"0 0 20 20",ref:r,title:a,size:l,color:s,overrides:{Svg:h}},y),b.createElement("path",{d:"M.2 10a11 11 0 0119.6 0A11 11 0 01.2 10zm9.8 4a4 4 0 100-8 4 4 0 000 8zm0-2a2 2 0 110-4 2 2 0 010 4z"}))}const $e=b.forwardRef(je);function Y(e,r){var t=e.disabled,o=e.error,n=e.positive,i=e.adjoined,a=e.size,l=e.required,s=e.resize,c=e.readOnly,p=r.isFocused;return{$isFocused:p,$disabled:t,$error:o,$positive:n,$adjoined:i,$size:a,$required:l,$resize:s,$isReadOnly:c}}function G(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function g(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?G(Object(t),!0).forEach(function(o){d(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}function d(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var K=P("button",function(e){var r,t=e.$theme,o=e.$size,n=e.$isFocusVisible,i=(r={},d(r,u.mini,t.sizing.scale400),d(r,u.compact,t.sizing.scale400),d(r,u.default,t.sizing.scale300),d(r,u.large,t.sizing.scale200),r)[o];return{display:"flex",alignItems:"center",borderTopStyle:"none",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"none",background:"none",paddingLeft:i,paddingRight:i,outline:n?"solid 3px ".concat(t.colors.accent):"none",color:t.colors.contentPrimary}});K.displayName="StyledMaskToggleButton";K.displayName="StyledMaskToggleButton";var _=P("div",function(e){var r,t=e.$alignTop,o=t===void 0?!1:t,n=e.$size,i=e.$theme,a=(r={},d(r,u.mini,i.sizing.scale200),d(r,u.compact,i.sizing.scale200),d(r,u.default,i.sizing.scale100),d(r,u.large,i.sizing.scale0),r)[n];return{display:"flex",alignItems:o?"flex-start":"center",paddingLeft:a,paddingRight:a,paddingTop:o?i.sizing.scale500:"0px",color:i.colors.contentPrimary}});_.displayName="StyledClearIconContainer";_.displayName="StyledClearIconContainer";var W=P(ce,function(e){var r=e.$theme,t=e.$isFocusVisible;return{cursor:"pointer",outline:t?"solid 3px ".concat(r.colors.accent):"none"}});W.displayName="StyledClearIcon";W.displayName="StyledClearIcon";function Re(e,r){var t;return(t={},d(t,u.mini,{paddingTop:r.scale100,paddingBottom:r.scale100,paddingLeft:r.scale550,paddingRight:r.scale550}),d(t,u.compact,{paddingTop:r.scale200,paddingBottom:r.scale200,paddingLeft:r.scale550,paddingRight:r.scale550}),d(t,u.default,{paddingTop:r.scale400,paddingBottom:r.scale400,paddingLeft:r.scale550,paddingRight:r.scale550}),d(t,u.large,{paddingTop:r.scale550,paddingBottom:r.scale550,paddingLeft:r.scale550,paddingRight:r.scale550}),t)[e]}function Be(e,r,t,o,n){var i=e===T.both||e===T.left&&o!=="rtl"||e===T.right&&o==="rtl"||n&&o==="rtl",a=e===T.both||e===T.right&&o!=="rtl"||e===T.left&&o==="rtl"||n&&o!=="rtl";return{paddingLeft:i?t.scale550:"0px",paddingRight:a?t.scale550:"0px"}}function z(e,r){var t;return(t={},d(t,u.mini,r.font100),d(t,u.compact,r.font200),d(t,u.default,r.font300),d(t,u.large,r.font400),t)[e]}function Ee(e,r,t){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,n=arguments.length>4?arguments[4]:void 0;return e?{borderLeftColor:n.inputFillDisabled,borderRightColor:n.inputFillDisabled,borderTopColor:n.inputFillDisabled,borderBottomColor:n.inputFillDisabled,backgroundColor:n.inputFillDisabled}:r?{borderLeftColor:n.borderSelected,borderRightColor:n.borderSelected,borderTopColor:n.borderSelected,borderBottomColor:n.borderSelected,backgroundColor:n.inputFillActive}:t?{borderLeftColor:n.inputBorderError,borderRightColor:n.inputBorderError,borderTopColor:n.inputBorderError,borderBottomColor:n.inputBorderError,backgroundColor:n.inputFillError}:o?{borderLeftColor:n.inputBorderPositive,borderRightColor:n.inputBorderPositive,borderTopColor:n.inputBorderPositive,borderBottomColor:n.inputBorderPositive,backgroundColor:n.inputFillPositive}:{borderLeftColor:n.inputBorder,borderRightColor:n.inputBorder,borderTopColor:n.inputBorder,borderBottomColor:n.inputBorder,backgroundColor:n.inputFill}}function Ie(e,r){var t=r.inputBorderRadius;return e===u.mini&&(t=r.inputBorderRadiusMini),{borderTopLeftRadius:t,borderBottomLeftRadius:t,borderTopRightRadius:t,borderBottomRightRadius:t}}var ze=function(e){var r=e.$isFocused,t=e.$adjoined,o=e.$error,n=e.$disabled,i=e.$positive,a=e.$size,l=e.$theme,s=e.$theme,c=s.borders,p=s.colors,y=s.sizing,h=s.typography,O=s.animation,S=e.$hasIconTrailing;return g(g(g(g({boxSizing:"border-box",display:"flex",overflow:"hidden",width:"100%",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",transitionProperty:"border",transitionDuration:O.timing200,transitionTimingFunction:O.easeOutCurve},Ie(a,c)),z(a,h)),Ee(n,r,o,i,p)),Be(t,a,y,l.direction,S))},ae=P("div",ze);ae.displayName="Root";ae.displayName="Root";function Me(e,r){var t;return(t={},d(t,u.mini,{paddingRight:r.scale400,paddingLeft:r.scale400}),d(t,u.compact,{paddingRight:r.scale400,paddingLeft:r.scale400}),d(t,u.default,{paddingRight:r.scale300,paddingLeft:r.scale300}),d(t,u.large,{paddingRight:r.scale200,paddingLeft:r.scale200}),t)[e]}function De(e,r,t,o,n){return e?{color:n.inputEnhancerTextDisabled,backgroundColor:n.inputFillDisabled}:r?{color:n.contentPrimary,backgroundColor:n.inputFillActive}:t?{color:n.contentPrimary,backgroundColor:n.inputFillError}:o?{color:n.contentPrimary,backgroundColor:n.inputFillPositive}:{color:n.contentPrimary,backgroundColor:n.inputFill}}var le=P("div",function(e){var r=e.$size,t=e.$disabled,o=e.$isFocused,n=e.$error,i=e.$positive,a=e.$theme,l=a.colors,s=a.sizing,c=a.typography,p=a.animation;return g(g(g({display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"color, background-color",transitionDuration:p.timing200,transitionTimingFunction:p.easeOutCurve},z(r,c)),Me(r,s)),De(t,o,n,i,l))});le.displayName="InputEnhancer";le.displayName="InputEnhancer";function Le(e,r,t,o,n){return e?{color:n.inputTextDisabled,backgroundColor:n.inputFillDisabled}:r?{color:n.contentPrimary,backgroundColor:n.inputFillActive}:t?{color:n.contentPrimary,backgroundColor:n.inputFillError}:o?{color:n.contentPrimary,backgroundColor:n.inputFillPositive}:{color:n.contentPrimary,backgroundColor:n.inputFill}}var Ae=function(e){var r=e.$isFocused,t=e.$error,o=e.$disabled,n=e.$positive,i=e.$size,a=e.$theme,l=a.colors,s=a.typography,c=a.animation;return g(g({display:"flex",width:"100%",transitionProperty:"background-color",transitionDuration:c.timing200,transitionTimingFunction:c.easeOutCurve},z(i,s)),Le(o,r,t,n,l))},U=P("div",Ae);U.displayName="InputContainer";U.displayName="InputContainer";function Ve(e,r,t,o){return e?{color:o.inputTextDisabled,"-webkit-text-fill-color":o.inputTextDisabled,caretColor:o.contentPrimary,"::placeholder":{color:o.inputPlaceholderDisabled}}:{color:o.contentPrimary,caretColor:o.contentPrimary,"::placeholder":{color:o.inputPlaceholder}}}var Ne=function(e){var r=e.$disabled,t=e.$isFocused,o=e.$error,n=e.$size,i=e.$theme,a=i.colors,l=i.sizing,s=i.typography;return g(g(g({boxSizing:"border-box",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderRightStyle:"none",borderTopStyle:"none",borderBottomStyle:"none",outline:"none",width:"100%",minWidth:0,maxWidth:"100%",cursor:r?"not-allowed":"text",margin:"0",paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0"},z(n,s)),Re(n,l)),Ve(r,t,o,a))},q=P("input",Ne);q.displayName="Input";q.displayName="Input";function Ke(e){var r;return typeof window.Event=="function"?r=new window.Event(e,{bubbles:!0,cancelable:!0}):(r=document.createEvent("Event"),r.initEvent(e,!0,!0)),r}function V(e){"@babel/helpers - typeof";return V=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},V(e)}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},v.apply(this,arguments)}function F(e,r){return qe(e)||Ue(e,r)||We(e,r)||_e()}function _e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function We(e,r){if(e){if(typeof e=="string")return ee(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ee(e,r)}}function ee(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function Ue(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],n=!0,i=!1,a,l;try{for(t=t.call(e);!(n=(a=t.next()).done)&&(o.push(a.value),!(r&&o.length===r));n=!0);}catch(s){i=!0,l=s}finally{try{!n&&t.return!=null&&t.return()}finally{if(i)throw l}}return o}}function qe(e){if(Array.isArray(e))return e}function He(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Ze(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Je(e,r,t){return r&&Ze(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qe(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&&N(e,r)}function N(e,r){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},N(e,r)}function Xe(e){var r=Ge();return function(){var t=I(e),o;if(r){var n=I(this).constructor;o=Reflect.construct(t,arguments,n)}else o=t.apply(this,arguments);return Ye(this,o)}}function Ye(e,r){if(r&&(V(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ge(){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 I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},I(e)}function f(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var re=function(){return null},er=(function(e){Qe(t,e);var r=Xe(t);function t(){var o;He(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return o=r.call.apply(r,[this].concat(i)),f(m(o),"inputRef",o.props.inputRef||b.createRef()),f(m(o),"state",{isFocused:o.props.autoFocus||!1,isMasked:o.props.type==="password",initialType:o.props.type,isFocusVisibleForClear:!1,isFocusVisibleForMaskToggle:!1}),f(m(o),"onInputKeyDown",function(l){o.props.clearOnEscape&&l.key==="Escape"&&o.inputRef.current&&!o.props.readOnly&&(o.clearValue(),l.stopPropagation())}),f(m(o),"onClearIconClick",function(){o.inputRef.current&&o.clearValue(),o.inputRef.current&&o.inputRef.current.focus()}),f(m(o),"onFocus",function(l){o.setState({isFocused:!0}),o.props.onFocus(l)}),f(m(o),"onBlur",function(l){o.setState({isFocused:!1}),o.props.onBlur(l)}),f(m(o),"handleFocusForMaskToggle",function(l){H(l)&&o.setState({isFocusVisibleForMaskToggle:!0})}),f(m(o),"handleBlurForMaskToggle",function(l){o.state.isFocusVisibleForMaskToggle!==!1&&o.setState({isFocusVisibleForMaskToggle:!1})}),f(m(o),"handleFocusForClear",function(l){H(l)&&o.setState({isFocusVisibleForClear:!0})}),f(m(o),"handleBlurForClear",function(l){o.state.isFocusVisibleForClear!==!1&&o.setState({isFocusVisibleForClear:!1})}),o}return Je(t,[{key:"componentDidMount",value:function(){var o=this.props,n=o.autoFocus,i=o.clearable;this.inputRef.current&&(n&&this.inputRef.current.focus(),i&&this.inputRef.current.addEventListener("keydown",this.onInputKeyDown))}},{key:"componentWillUnmount",value:function(){var o=this.props.clearable;o&&this.inputRef.current&&this.inputRef.current.removeEventListener("keydown",this.onInputKeyDown)}},{key:"clearValue",value:function(){var o=this.inputRef.current;if(o){var n=Object.getOwnPropertyDescriptor(this.props.type===D.textarea?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,"value");if(n){var i=n.set;if(i){i.call(o,"");var a=Ke("input");o.dispatchEvent(a)}}}}},{key:"getInputType",value:function(){return this.props.type==="password"?this.state.isMasked?"password":"text":this.props.type}},{key:"renderMaskToggle",value:function(){var o,n=this;if(this.props.type!=="password")return null;var i=w(this.props.overrides.MaskToggleButton,K),a=F(i,2),l=a[0],s=a[1],c=w(this.props.overrides.MaskToggleShowIcon,$e),p=F(c,2),y=p[0],h=p[1],O=w(this.props.overrides.MaskToggleHideIcon,Oe),S=F(O,2),j=S[0],R=S[1],C=this.state.isMasked?"Show password text":"Hide password text",$=(o={},f(o,u.mini,"12px"),f(o,u.compact,"16px"),f(o,u.default,"20px"),f(o,u.large,"24px"),o)[this.props.size];return b.createElement(l,v({$size:this.props.size,$isFocusVisible:this.state.isFocusVisibleForMaskToggle,"aria-label":C,onClick:function(){return n.setState(function(k){return{isMasked:!k.isMasked}})},title:C,type:"button"},s,{onFocus:J(s,this.handleFocusForMaskToggle),onBlur:Z(s,this.handleBlurForMaskToggle)}),this.state.isMasked?b.createElement(y,v({size:$,title:C},h)):b.createElement(j,v({size:$,title:C},R)))}},{key:"renderClear",value:function(){var o,n=this,i=this.props,a=i.clearable,l=i.value,s=i.disabled,c=i.readOnly,p=i.overrides,y=p===void 0?{}:p;if(s||c||!a||l==null||typeof l=="string"&&l.length===0)return null;var h=w(y.ClearIconContainer,_),O=F(h,2),S=O[0],j=O[1],R=w(y.ClearIcon,W),C=F(R,2),$=C[0],k=C[1],B="Clear value",E=Y(this.props,this.state),M=(o={},f(o,u.mini,"14px"),f(o,u.compact,"14px"),f(o,u.default,"16px"),f(o,u.large,"22px"),o)[this.props.size];return b.createElement(S,v({$alignTop:this.props.type===D.textarea},E,j),b.createElement($,v({size:M,tabIndex:0,title:B,"aria-label":B,onClick:this.onClearIconClick,onKeyDown:function(x){x.key&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),n.onClearIconClick())},role:"button",$isFocusVisible:this.state.isFocusVisibleForClear},E,k,{onFocus:J(k,this.handleFocusForClear),onBlur:Z(k,this.handleBlurForClear)})))}},{key:"render",value:function(){var o=this.props.overrides,n=o.InputContainer,i=o.Input,a=o.Before,l=o.After,s=this.state.initialType==="password"&&this.props.autoComplete===t.defaultProps.autoComplete?"new-password":this.props.autoComplete,c=Y(this.props,this.state),p=w(n,U),y=F(p,2),h=y[0],O=y[1],S=w(i,q),j=F(S,2),R=j[0],C=j[1],$=w(a,re),k=F($,2),B=k[0],E=k[1],M=w(l,re),x=F(M,2),se=x[0],ue=x[1];return b.createElement(h,v({"data-baseweb":this.props["data-baseweb"]||"base-input"},c,O),b.createElement(B,v({},c,E)),b.createElement(R,v({ref:this.inputRef,"aria-activedescendant":this.props["aria-activedescendant"],"aria-autocomplete":this.props["aria-autocomplete"],"aria-controls":this.props["aria-controls"],"aria-errormessage":this.props["aria-errormessage"],"aria-haspopup":this.props["aria-haspopup"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-invalid":this.props.error,"aria-required":this.props.required,autoComplete:s,disabled:this.props.disabled,readOnly:this.props.readOnly,id:this.props.id,inputMode:this.props.inputMode,maxLength:this.props.maxLength,name:this.props.name,onBlur:this.onBlur,onChange:this.props.onChange,onFocus:this.onFocus,onKeyDown:this.props.onKeyDown,onKeyPress:this.props.onKeyPress,onKeyUp:this.props.onKeyUp,pattern:this.props.pattern,placeholder:this.props.placeholder,type:this.getInputType(),required:this.props.required,role:this.props.role,value:this.props.value,min:this.props.min,max:this.props.max,step:this.props.step,rows:this.props.type===D.textarea?this.props.rows:null},c,C)),this.renderClear(),this.renderMaskToggle(),b.createElement(se,v({},c,ue)))}}]),t})(b.Component);f(er,"defaultProps",{"aria-activedescendant":null,"aria-autocomplete":null,"aria-controls":null,"aria-errormessage":null,"aria-haspopup":null,"aria-label":null,"aria-labelledby":null,"aria-describedby":null,adjoined:T.none,autoComplete:"on",autoFocus:!1,disabled:!1,error:!1,positive:!1,name:"",inputMode:"text",onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){},onFocus:function(){},onClear:function(){},clearable:!1,clearOnEscape:!0,overrides:{},pattern:null,placeholder:"",required:!1,role:null,size:u.default,type:"text",readOnly:!1});export{ze as A,Ae as D,Ne as V,Y as e,q,ae as s,er as t,le as u};
@@ -1,4 +1,4 @@
1
- import{aY as v,ba as oe,bb as h,r as c,bc as m}from"./index-BvblFOYP.js";var S=Object.freeze({default:"default",toggle:"toggle",toggle_round:"toggle"}),ve=Object.freeze({top:"top",right:"right",bottom:"bottom",left:"left"});function _(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),o.push.apply(o,t)}return o}function x(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?_(Object(o),!0).forEach(function(t){U(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):_(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function U(e,r,o){return r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function ie(e){var r=e.$disabled,o=e.$checked,t=e.$error,s=e.$isIndeterminate,i=e.$theme,n=e.$isFocusVisible,a=i.colors;return r?a.tickFillDisabled:o||s?"transparent":t?a.borderNegative:n?a.borderSelected:a.tickBorder}function ne(e){var r=e.$labelPlacement,o=r===void 0?"":r,t=e.$theme,s=t.sizing,i=s.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 t.direction==="rtl"&&n==="Left"?n="Right":t.direction==="rtl"&&n==="Right"&&(n="Left"),U({},"padding".concat(n),i)}function ae(e){var r=e.$disabled,o=e.$checked,t=e.$isIndeterminate,s=e.$error,i=e.$isHovered,n=e.$isActive,a=e.$theme,l=a.colors;return r?o||t?l.tickFillDisabled:l.tickFill:s&&(t||o)?n?l.tickFillErrorSelectedHoverActive:i?l.tickFillErrorSelectedHover:l.tickFillErrorSelected:s?n?l.tickFillErrorHoverActive:i?l.tickFillErrorHover:l.tickFillError:t||o?n?l.tickFillSelectedHoverActive:i?l.tickFillSelectedHover:l.tickFillSelected:n?l.tickFillActive:i?l.tickFillHover:l.tickFill}function le(e){var r=e.$disabled,o=e.$theme,t=o.colors;return r?t.contentSecondary:t.contentPrimary}var L=v("label",function(e){var r=e.$disabled,o=e.$labelPlacement;return{flexDirection:o==="top"||o==="bottom"?"column":"row",display:"flex",alignItems:o==="top"||o==="bottom"?"center":"flex-start",cursor:r?"not-allowed":"pointer",userSelect:"none"}});L.displayName="Root";L.displayName="Root";var T=v("span",function(e){var r=e.$checked,o=e.$disabled,t=e.$error,s=e.$isIndeterminate,i=e.$theme,n=e.$isFocusVisible,a=i.sizing,l=i.animation,y=o?i.colors.tickMarkFillDisabled:t?i.colors.tickMarkFillError:i.colors.tickMarkFill,k=encodeURIComponent(`
1
+ import{bs as v,bM as oe,bN as h,r as c,bO as m}from"./index-Bdi0ug4X.js";var S=Object.freeze({default:"default",toggle:"toggle",toggle_round:"toggle"}),ve=Object.freeze({top:"top",right:"right",bottom:"bottom",left:"left"});function _(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),o.push.apply(o,t)}return o}function x(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?_(Object(o),!0).forEach(function(t){U(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):_(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function U(e,r,o){return r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function ie(e){var r=e.$disabled,o=e.$checked,t=e.$error,l=e.$isIndeterminate,i=e.$theme,n=e.$isFocusVisible,a=i.colors;return r?a.tickFillDisabled:o||l?"transparent":t?a.borderNegative:n?a.borderSelected:a.tickBorder}function ne(e){var r=e.$labelPlacement,o=r===void 0?"":r,t=e.$theme,l=t.sizing,i=l.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 t.direction==="rtl"&&n==="Left"?n="Right":t.direction==="rtl"&&n==="Right"&&(n="Left"),U({},"padding".concat(n),i)}function ae(e){var r=e.$disabled,o=e.$checked,t=e.$isIndeterminate,l=e.$error,i=e.$isHovered,n=e.$isActive,a=e.$theme,s=a.colors;return r?o||t?s.tickFillDisabled:s.tickFill:l&&(t||o)?n?s.tickFillErrorSelectedHoverActive:i?s.tickFillErrorSelectedHover:s.tickFillErrorSelected:l?n?s.tickFillErrorHoverActive:i?s.tickFillErrorHover:s.tickFillError:t||o?n?s.tickFillSelectedHoverActive:i?s.tickFillSelectedHover:s.tickFillSelected:n?s.tickFillActive:i?s.tickFillHover:s.tickFill}function se(e){var r=e.$disabled,o=e.$theme,t=o.colors;return r?t.contentSecondary:t.contentPrimary}var L=v("label",function(e){var r=e.$disabled,o=e.$labelPlacement;return{flexDirection:o==="top"||o==="bottom"?"column":"row",display:"flex",alignItems:o==="top"||o==="bottom"?"center":"flex-start",cursor:r?"not-allowed":"pointer",userSelect:"none"}});L.displayName="Root";L.displayName="Root";var T=v("span",function(e){var r=e.$checked,o=e.$disabled,t=e.$error,l=e.$isIndeterminate,i=e.$theme,n=e.$isFocusVisible,a=i.sizing,s=i.animation,y=o?i.colors.tickMarkFillDisabled:t?i.colors.tickMarkFillError:i.colors.tickMarkFill,k=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(y,`"/>
4
4
  </svg>
@@ -6,4 +6,4 @@ import{aY as v,ba as oe,bb as h,r as c,bc as m}from"./index-BvblFOYP.js";var S=O
6
6
  <svg width="17" height="13" viewBox="0 0 17 13" fill="none" xmlns="http://www.w3.org/2000/svg">
7
7
  <path d="M6.50002 12.6L0.400024 6.60002L2.60002 4.40002L6.50002 8.40002L13.9 0.900024L16.1 3.10002L6.50002 12.6Z" fill="`.concat(y,`"/>
8
8
  </svg>
9
- `)),f=i.borders.checkboxBorderRadius,b=ie(e);return{flex:"0 0 auto",transitionDuration:l.timing200,transitionTimingFunction:l.easeOutCurve,transitionProperty:"background-image, border-color, background-color",width:a.scale700,height:a.scale700,left:"4px",top:"4px",boxSizing:"border-box",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftWidth:"3px",borderRightWidth:"3px",borderTopWidth:"3px",borderBottomWidth:"3px",borderLeftColor:b,borderRightColor:b,borderTopColor:b,borderBottomColor:b,borderTopLeftRadius:f,borderTopRightRadius:f,borderBottomRightRadius:f,borderBottomLeftRadius:f,outline:n&&r?"3px solid ".concat(i.colors.accent):"none",display:"inline-block",verticalAlign:"middle",backgroundImage:s?"url('data:image/svg+xml,".concat(k,"');"):r?"url('data:image/svg+xml,".concat($,"');"):null,backgroundColor:ae(e),backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain",marginTop:i.sizing.scale0,marginBottom:i.sizing.scale0,marginLeft:i.sizing.scale0,marginRight:i.sizing.scale0}});T.displayName="Checkmark";T.displayName="Checkmark";var j=v("div",function(e){var r=e.$theme,o=r.typography;return x(x(x({verticalAlign:"middle"},ne(e)),{},{color:le(e)},o.LabelMedium),{},{lineHeight:"24px"})});j.displayName="Label";j.displayName="Label";var M=v("input",{opacity:0,width:0,height:0,overflow:"hidden",margin:0,padding:0,position:"absolute"});M.displayName="Input";M.displayName="Input";var B=v("div",function(e){var r=e.$theme.colors.toggleFill;return e.$disabled?r=e.$theme.colors.toggleFillDisabled:e.$checked&&e.$error?r=e.$theme.colors.tickFillErrorSelected:e.$checked&&(r=e.$theme.colors.toggleFillChecked),{backgroundColor:r,borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(e.$theme.colors.accent):e.$isHovered&&!e.$disabled?e.$theme.lighting.shadow500:e.$theme.lighting.shadow400,outline:"none",height:e.$theme.sizing.scale700,width:e.$theme.sizing.scale700,transform:e.$checked?"translateX(".concat(e.$theme.direction==="rtl"?"-100%":"100%",")"):null,transition:"transform ".concat(e.$theme.animation.timing200)}});B.displayName="Toggle";B.displayName="Toggle";var C=v("div",function(e){var r=e.$theme.colors.toggleTrackFill;return e.$disabled?r=e.$theme.colors.toggleTrackFillDisabled:e.$error&&e.$checked&&(r=e.$theme.colors.tickFillError),{alignItems:"center",backgroundColor:r,borderTopLeftRadius:"7px",borderTopRightRadius:"7px",borderBottomRightRadius:"7px",borderBottomLeftRadius:"7px",display:"flex",height:e.$theme.sizing.scale550,marginTop:e.$theme.sizing.scale200,marginBottom:e.$theme.sizing.scale100,marginLeft:e.$theme.sizing.scale200,marginRight:e.$theme.sizing.scale100,width:e.$theme.sizing.scale1000}});C.displayName="ToggleTrack";C.displayName="ToggleTrack";function P(e){"@babel/helpers - typeof";return P=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},P(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},p.apply(this,arguments)}function se(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function ce(e,r){for(var o=0;o<r.length;o++){var t=r[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function ue(e,r,o){return r&&ce(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function de(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&&E(e,r)}function E(e,r){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,t){return o.__proto__=t,o},E(e,r)}function pe(e){var r=be();return function(){var o=w(e),t;if(r){var s=w(this).constructor;t=Reflect.construct(o,arguments,s)}else t=o.apply(this,arguments);return fe(this,t)}}function fe(e,r){if(r&&(P(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function be(){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 w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},w(e)}function d(e,r,o){return r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}var ge=function(e){return e.stopPropagation()},he=(function(e){de(o,e);var r=pe(o);function o(){var t;se(this,o);for(var s=arguments.length,i=new Array(s),n=0;n<s;n++)i[n]=arguments[n];return t=r.call.apply(r,[this].concat(i)),d(u(t),"state",{isFocused:t.props.autoFocus||!1,isFocusVisible:!1,isHovered:!1,isActive:!1}),d(u(t),"onMouseEnter",function(a){t.setState({isHovered:!0}),t.props.onMouseEnter(a)}),d(u(t),"onMouseLeave",function(a){t.setState({isHovered:!1,isActive:!1}),t.props.onMouseLeave(a)}),d(u(t),"onMouseDown",function(a){t.setState({isActive:!0}),t.props.onMouseDown(a)}),d(u(t),"onMouseUp",function(a){t.setState({isActive:!1}),t.props.onMouseUp(a)}),d(u(t),"onFocus",function(a){t.setState({isFocused:!0}),t.props.onFocus(a),oe(a)&&t.setState({isFocusVisible:!0})}),d(u(t),"onBlur",function(a){t.setState({isFocused:!1}),t.props.onBlur(a),t.state.isFocusVisible!==!1&&t.setState({isFocusVisible:!1})}),t}return ue(o,[{key:"componentDidMount",value:function(){var t=this.props,s=t.autoFocus,i=t.inputRef;s&&i.current&&i.current.focus()}},{key:"render",value:function(){var t=this.props,s=t.overrides,i=s===void 0?{}:s,n=t.onChange,a=t.labelPlacement,l=a===void 0?this.props.checkmarkType===S.toggle?"left":"right":a,y=t.inputRef,k=t.isIndeterminate,$=t.error,f=t.disabled,b=t.value,q=t.name,W=t.type,F=t.checked,O=t.children,R=t.required,Z=t.title,D=i.Root,z=i.Checkmark,H=i.Label,I=i.Input,A=i.Toggle,N=i.ToggleTrack,X=h(D)||L,Y=h(z)||T,G=h(H)||j,J=h(I)||M,K=h(A)||B,Q=h(N)||C,ee={onChange:n,onFocus:this.onFocus,onBlur:this.onBlur},te={onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},g={$isFocused:this.state.isFocused,$isFocusVisible:this.state.isFocusVisible,$isHovered:this.state.isHovered,$isActive:this.state.isActive,$error:$,$checked:F,$isIndeterminate:k,$required:R,$disabled:f,$value:b},V=O&&c.createElement(G,p({$labelPlacement:l},g,m(H)),this.props.containsInteractiveElement?c.createElement("div",{onClick:function(re){return re.preventDefault()}},O):O);return c.createElement(X,p({"data-baseweb":"checkbox",title:Z||null,$labelPlacement:l},g,te,m(D)),(l==="top"||l==="left")&&V,this.props.checkmarkType===S.toggle?c.createElement(Q,p({},g,m(N)),c.createElement(K,p({},g,m(A)))):c.createElement(Y,p({},g,m(z))),c.createElement(J,p({value:b,name:q,checked:F,required:R,"aria-label":this.props["aria-label"]||this.props.ariaLabel,"aria-checked":k?"mixed":F,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":$||null,"aria-required":R||null,disabled:f,type:W,ref:y,onClick:ge},g,ee,m(I))),(l==="bottom"||l==="right")&&V)}}]),o})(c.Component);d(he,"defaultProps",{overrides:{},checked:!1,containsInteractiveElement:!1,disabled:!1,autoFocus:!1,isIndeterminate:!1,inputRef:c.createRef(),error:!1,type:"checkbox",checkmarkType:S.default,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});export{S as T,he as v,ve as y};
9
+ `)),f=i.borders.checkboxBorderRadius,b=ie(e);return{flex:"0 0 auto",transitionDuration:s.timing200,transitionTimingFunction:s.easeOutCurve,transitionProperty:"background-image, border-color, background-color",width:a.scale700,height:a.scale700,left:"4px",top:"4px",boxSizing:"border-box",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftWidth:"3px",borderRightWidth:"3px",borderTopWidth:"3px",borderBottomWidth:"3px",borderLeftColor:b,borderRightColor:b,borderTopColor:b,borderBottomColor:b,borderTopLeftRadius:f,borderTopRightRadius:f,borderBottomRightRadius:f,borderBottomLeftRadius:f,outline:n&&r?"3px solid ".concat(i.colors.accent):"none",display:"inline-block",verticalAlign:"middle",backgroundImage:l?"url('data:image/svg+xml,".concat(k,"');"):r?"url('data:image/svg+xml,".concat($,"');"):null,backgroundColor:ae(e),backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain",marginTop:i.sizing.scale0,marginBottom:i.sizing.scale0,marginLeft:i.sizing.scale0,marginRight:i.sizing.scale0}});T.displayName="Checkmark";T.displayName="Checkmark";var j=v("div",function(e){var r=e.$theme,o=r.typography;return x(x(x({verticalAlign:"middle"},ne(e)),{},{color:se(e)},o.LabelMedium),{},{lineHeight:"24px"})});j.displayName="Label";j.displayName="Label";var M=v("input",{opacity:0,width:0,height:0,overflow:"hidden",margin:0,padding:0,position:"absolute"});M.displayName="Input";M.displayName="Input";var B=v("div",function(e){var r=e.$theme.colors.toggleFill;return e.$disabled?r=e.$theme.colors.toggleFillDisabled:e.$checked&&e.$error?r=e.$theme.colors.tickFillErrorSelected:e.$checked&&(r=e.$theme.colors.toggleFillChecked),{backgroundColor:r,borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(e.$theme.colors.accent):e.$isHovered&&!e.$disabled?e.$theme.lighting.shadow500:e.$theme.lighting.shadow400,outline:"none",height:e.$theme.sizing.scale700,width:e.$theme.sizing.scale700,transform:e.$checked?"translateX(".concat(e.$theme.direction==="rtl"?"-100%":"100%",")"):null,transition:"transform ".concat(e.$theme.animation.timing200)}});B.displayName="Toggle";B.displayName="Toggle";var C=v("div",function(e){var r=e.$theme.colors.toggleTrackFill;return e.$disabled?r=e.$theme.colors.toggleTrackFillDisabled:e.$error&&e.$checked&&(r=e.$theme.colors.tickFillError),{alignItems:"center",backgroundColor:r,borderTopLeftRadius:"7px",borderTopRightRadius:"7px",borderBottomRightRadius:"7px",borderBottomLeftRadius:"7px",display:"flex",height:e.$theme.sizing.scale550,marginTop:e.$theme.sizing.scale200,marginBottom:e.$theme.sizing.scale100,marginLeft:e.$theme.sizing.scale200,marginRight:e.$theme.sizing.scale100,width:e.$theme.sizing.scale1000}});C.displayName="ToggleTrack";C.displayName="ToggleTrack";function P(e){"@babel/helpers - typeof";return P=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},P(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},p.apply(this,arguments)}function le(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function ce(e,r){for(var o=0;o<r.length;o++){var t=r[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function ue(e,r,o){return r&&ce(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function de(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&&E(e,r)}function E(e,r){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,t){return o.__proto__=t,o},E(e,r)}function pe(e){var r=be();return function(){var o=w(e),t;if(r){var l=w(this).constructor;t=Reflect.construct(o,arguments,l)}else t=o.apply(this,arguments);return fe(this,t)}}function fe(e,r){if(r&&(P(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function be(){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 w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},w(e)}function d(e,r,o){return r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}var ge=function(e){return e.stopPropagation()},he=(function(e){de(o,e);var r=pe(o);function o(){var t;le(this,o);for(var l=arguments.length,i=new Array(l),n=0;n<l;n++)i[n]=arguments[n];return t=r.call.apply(r,[this].concat(i)),d(u(t),"state",{isFocused:t.props.autoFocus||!1,isFocusVisible:!1,isHovered:!1,isActive:!1}),d(u(t),"onMouseEnter",function(a){t.setState({isHovered:!0}),t.props.onMouseEnter(a)}),d(u(t),"onMouseLeave",function(a){t.setState({isHovered:!1,isActive:!1}),t.props.onMouseLeave(a)}),d(u(t),"onMouseDown",function(a){t.setState({isActive:!0}),t.props.onMouseDown(a)}),d(u(t),"onMouseUp",function(a){t.setState({isActive:!1}),t.props.onMouseUp(a)}),d(u(t),"onFocus",function(a){t.setState({isFocused:!0}),t.props.onFocus(a),oe(a)&&t.setState({isFocusVisible:!0})}),d(u(t),"onBlur",function(a){t.setState({isFocused:!1}),t.props.onBlur(a),t.state.isFocusVisible!==!1&&t.setState({isFocusVisible:!1})}),t}return ue(o,[{key:"componentDidMount",value:function(){var t=this.props,l=t.autoFocus,i=t.inputRef;l&&i.current&&i.current.focus()}},{key:"render",value:function(){var t=this.props,l=t.overrides,i=l===void 0?{}:l,n=t.onChange,a=t.labelPlacement,s=a===void 0?this.props.checkmarkType===S.toggle?"left":"right":a,y=t.inputRef,k=t.isIndeterminate,$=t.error,f=t.disabled,b=t.value,q=t.name,W=t.type,F=t.checked,O=t.children,R=t.required,Z=t.title,D=i.Root,z=i.Checkmark,H=i.Label,I=i.Input,A=i.Toggle,N=i.ToggleTrack,X=h(D)||L,G=h(z)||T,J=h(H)||j,K=h(I)||M,Q=h(A)||B,Y=h(N)||C,ee={onChange:n,onFocus:this.onFocus,onBlur:this.onBlur},te={onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},g={$isFocused:this.state.isFocused,$isFocusVisible:this.state.isFocusVisible,$isHovered:this.state.isHovered,$isActive:this.state.isActive,$error:$,$checked:F,$isIndeterminate:k,$required:R,$disabled:f,$value:b},V=O&&c.createElement(J,p({$labelPlacement:s},g,m(H)),this.props.containsInteractiveElement?c.createElement("div",{onClick:function(re){return re.preventDefault()}},O):O);return c.createElement(X,p({"data-baseweb":"checkbox",title:Z||null,$labelPlacement:s},g,te,m(D)),(s==="top"||s==="left")&&V,this.props.checkmarkType===S.toggle?c.createElement(Y,p({},g,m(N)),c.createElement(Q,p({},g,m(A)))):c.createElement(G,p({},g,m(z))),c.createElement(K,p({value:b,name:q,checked:F,required:R,"aria-label":this.props["aria-label"]||this.props.ariaLabel,"aria-checked":k?"mixed":F,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":$||null,"aria-required":R||null,disabled:f,type:W,ref:y,onClick:ge},g,ee,m(I))),(s==="bottom"||s==="right")&&V)}}]),o})(c.Component);d(he,"defaultProps",{overrides:{},checked:!1,containsInteractiveElement:!1,disabled:!1,autoFocus:!1,isIndeterminate:!1,inputRef:c.createRef(),error:!1,type:"checkbox",checkmarkType:S.default,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});export{S as T,he as v,ve as y};
@@ -1 +1 @@
1
- import{a as o,y as a}from"./inherits-CYghrBFU-Cf4k8aUQ.js";function e(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e=function(){return!!t})()}function f(t){var c=e();return function(){var r,n=o(t);if(c){var u=o(this).constructor;r=Reflect.construct(n,arguments,u)}else r=n.apply(this,arguments);return a(this,r)}}export{f as i};
1
+ import{a as o,y as a}from"./inherits-Byw8NQvD-DdaLbWVP.js";function e(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e=function(){return!!t})()}function f(t){var c=e();return function(){var r,n=o(t);if(c){var u=o(this).constructor;r=Reflect.construct(n,arguments,u)}else r=n.apply(this,arguments);return a(this,r)}}export{f as i};
@@ -0,0 +1 @@
1
+ import{r,aL as J}from"./index-Bdi0ug4X.js";import{k as R,E as Q,B as U,w as Z,a as ee,c as te,f as re}from"./index-nXfHwIms-cOwCevci.js";import"./withFullScreenWrapper-wajYPLRg-e8FnO2xN.js";import"./Toolbar-Cr9ArNQU-D5-awBnv.js";import"./FormClearHelper-C58X4iX0-CI3cpm91.js";import"./moment-CU6QKNej-DcQX_LE0.js";import"./pandasStylerUtils-BvB3vP-L-D9viw-G9.js";import"./_baseIndexOf-OsCSwRmV--aVpkM1d.js";import"./sprintf-D5E86llw-6tzWM3a-.js";import"./_baseAssignValue-3fAevQ7t-BOcc6F75.js";import"./index-CVld_lKx-CBWAU0gM.js";import"./main-DvFfgny--BkQIK2a9.js";import"./checkbox-OEhCo8NJ-C1rXZb97.js";import"./createDownloadLinkElement-CbRjLJ8e-NbV49OP9.js";import"./slicedToArray-CrkrjOeW-7_omneg6.js";import"./unsupportedIterableToArray-CFN3yOc2-C4SckrTc.js";import"./inherits-Byw8NQvD-DdaLbWVP.js";import"./createSuper-bIcQlS98-B8MWK81T.js";import"./toConsumableArray-BpgQ3N5A-AHKfFeLf.js";import"./FileDownload.esm-CUqXYNk4-DieQ2Qle.js";const ie=()=>t=>t.targetX,ae=()=>t=>t.targetY,oe=()=>t=>t.targetWidth,ne=()=>t=>t.targetHeight,se=()=>t=>t.targetY+10,le=()=>t=>Math.max(0,(t.targetHeight-28)/2),de=re("div")({name:"DataGridOverlayEditorStyle",class:"gdg-d19meir1",propsAsIs:!1,vars:{"d19meir1-0":[ae(),"px"],"d19meir1-1":[ie(),"px"],"d19meir1-2":[oe(),"px"],"d19meir1-3":[ne(),"px"],"d19meir1-4":[se(),"px"],"d19meir1-5":[le(),"px"]}});function ce(){const[t,o]=r.useState();return[t??void 0,o]}function ue(){const[t,o]=ce(),[a,f]=r.useState(0),[m,b]=r.useState(!0);r.useLayoutEffect(()=>{if(t===void 0||!("IntersectionObserver"in window))return;const n=new IntersectionObserver(s=>{s.length!==0&&b(s[0].isIntersecting)},{threshold:1});return n.observe(t),()=>n.disconnect()},[t]),r.useEffect(()=>{if(m||t===void 0)return;let n;const s=()=>{const{right:k}=t.getBoundingClientRect();f(p=>Math.min(p+window.innerWidth-k-10,0)),n=requestAnimationFrame(s)};return n=requestAnimationFrame(s),()=>{n!==void 0&&cancelAnimationFrame(n)}},[t,m]);const C=r.useMemo(()=>({transform:`translateX(${a}px)`}),[a]);return{ref:o,style:C}}const Fe=t=>{const{target:o,content:a,onFinishEditing:f,forceEditMode:m,initialValue:b,imageEditorOverride:C,markdownDivCreateNode:n,highlight:s,className:k,theme:p,id:V,cell:g,bloom:S,portalElementRef:P,validateCell:v,getCellRenderer:M,provideEditor:N,isOutsideClick:W,customEventTarget:X,activation:w}=t,[l,Y]=r.useState(m?a:void 0),x=r.useRef(l??a);x.current=l??a;const[h,F]=r.useState(()=>v===void 0?!0:!(R(a)&&v?.(g,a,x.current)===!1)),c=r.useCallback((e,i)=>{f(h?e:void 0,i)},[h,f]),q=r.useCallback(e=>{if(v!==void 0&&e!==void 0&&R(e)){const i=v(g,e,x.current);i===!1?F(!1):(typeof i=="object"&&(e=i),F(!0))}Y(e)},[g,v]),E=r.useRef(!1),u=r.useRef(void 0),G=r.useCallback(()=>{c(l,[0,0]),E.current=!0},[l,c]),L=r.useCallback((e,i)=>{c(e,i??u.current??[0,0]),E.current=!0},[c]),j=r.useCallback(async e=>{let i=!1;e.key==="Escape"?(e.stopPropagation(),e.preventDefault(),u.current=[0,0]):e.key==="Enter"&&!e.shiftKey?(e.stopPropagation(),e.preventDefault(),u.current=[0,1],i=!0):e.key==="Tab"&&(e.stopPropagation(),e.preventDefault(),u.current=[e.shiftKey?-1:1,0],i=!0),window.setTimeout(()=>{!E.current&&u.current!==void 0&&(c(i?l:void 0,u.current),E.current=!0)},0)},[c,l]),O=l??a,[d,$]=r.useMemo(()=>{if(Q(a))return[];const e={...a,location:g,activation:w},i=N?.(e);return i!==void 0?[i,!1]:[M(a)?.provideEditor?.(e),!1]},[g,a,M,N,w]),{ref:z,style:_}=ue();let I=!0,A,B=!0,y;if(d!==void 0){I=d.disablePadding!==!0,B=d.disableStyling!==!0;const e=U(d);e&&(y=d.styleOverride);const i=e?d.editor:d;A=r.createElement(i,{portalElementRef:P,isHighlighted:s,activation:w,onChange:q,value:O,initialValue:b,onFinishedEditing:L,validatedSelection:R(O)?O.selectionRange:void 0,forceEditMode:m,target:o,imageEditorOverride:C,markdownDivCreateNode:n,isValid:h,theme:p})}y={...y,..._};const H=P?.current??document.getElementById("portal");if(H===null)return console.error('Cannot open Data Grid overlay editor, because portal not found. Please, either provide a portalElementRef or add `<div id="portal" />` as the last child of your `<body>`.'),null;let D=B?"gdg-style":"gdg-unstyle";h||(D+=" gdg-invalid"),I&&(D+=" gdg-pad");const T=S?.[0]??1,K=S?.[1]??1;return J.createPortal(r.createElement(Z.Provider,{value:p},r.createElement(ee,{style:te(p),className:k,onClickOutside:G,isOutsideClick:W,customEventTarget:X},r.createElement(de,{ref:z,id:V,className:D,style:y,as:$===!0?"label":void 0,targetX:o.x-T,targetY:o.y-K,targetWidth:o.width+T*2,targetHeight:o.height+K*2},r.createElement("div",{className:"gdg-clip-region",onKeyDown:j},A)))),H)};export{Fe as default};
@@ -1 +1 @@
1
- import{c as f,e as b}from"./es6--XPcqeHG-DdkxL8eW.js";import"./index-BvblFOYP.js";const{WritableStream:y,TransformStream:_,DOMException:P,Blob:m}=f,{GONE:v}=b,M=/constructor/i.test(window.HTMLElement);class A{constructor(e="unkown"){this.name=e,this.kind="file"}async getFile(){throw new P(...v)}async isSameEntry(e){return this===e}async createWritable(e={}){const t=await navigator.serviceWorker?.getRegistration(),a=document.createElement("a"),o=new _,u=o.writable;if(a.download=this.name,M||!t){let s=[];o.readable.pipeTo(new y({write(r){s.push(new m([r]))},close(){const r=new m(s,{type:"application/octet-stream; charset=utf-8"});s=[],a.href=URL.createObjectURL(r),a.click(),setTimeout(()=>URL.revokeObjectURL(a.href),1e4)}}))}else{const{writable:s,readablePort:r}=new O(y),n=encodeURIComponent(this.name).replace(/['()]/g,escape).replace(/\*/g,"%2A"),g={"content-disposition":"attachment; filename*=UTF-8''"+n,"content-type":"application/octet-stream; charset=utf-8",...e.size?{"content-length":e.size}:{}},w=setTimeout(()=>t.active.postMessage(0),1e4);o.readable.pipeThrough(new _({transform(c,h){if(c instanceof Uint8Array)return h.enqueue(c);const R=new Response(c).body.getReader(),d=S=>R.read().then(p=>p.done?0:d(h.enqueue(p.value)));return d()}})).pipeTo(s).finally(()=>{clearInterval(w)}),t.active.postMessage({url:t.scope+n,headers:g,readablePort:r},[r]);const i=document.createElement("iframe");i.hidden=!0,i.src=t.scope+n,document.body.appendChild(i)}return u.getWriter()}}const E=0,T=0,U=1,j=1,k=2;class L{constructor(e){e.onmessage=t=>this._onMessage(t.data),this._port=e,this._resetReady()}start(e){return this._controller=e,this._readyPromise}write(e){const t={type:E,chunk:e};return this._port.postMessage(t,[e.buffer]),this._resetReady(),this._readyPromise}close(){this._port.postMessage({type:k}),this._port.close()}abort(e){this._port.postMessage({type:j,reason:e}),this._port.close()}_onMessage(e){e.type===T&&this._resolveReady(),e.type===U&&this._onError(e.reason)}_onError(e){this._controller.error(e),this._rejectReady(e),this._port.close()}_resetReady(){this._readyPromise=new Promise((e,t)=>{this._readyResolve=e,this._readyReject=t}),this._readyPending=!0}_resolveReady(){this._readyResolve(),this._readyPending=!1}_rejectReady(e){this._readyPending||this._resetReady(),this._readyPromise.catch(()=>{}),this._readyReject(e),this._readyPending=!1}}class O{constructor(e){const t=new MessageChannel;this.readablePort=t.port1,this.writable=new e(new L(t.port2))}}export{A as FileHandle};
1
+ import{c as f,e as b}from"./es6--XPcqeHG-2BbC2xK9.js";import"./index-Bdi0ug4X.js";const{WritableStream:y,TransformStream:_,DOMException:P,Blob:m}=f,{GONE:v}=b,M=/constructor/i.test(window.HTMLElement);class A{constructor(e="unkown"){this.name=e,this.kind="file"}async getFile(){throw new P(...v)}async isSameEntry(e){return this===e}async createWritable(e={}){const t=await navigator.serviceWorker?.getRegistration(),a=document.createElement("a"),o=new _,u=o.writable;if(a.download=this.name,M||!t){let s=[];o.readable.pipeTo(new y({write(r){s.push(new m([r]))},close(){const r=new m(s,{type:"application/octet-stream; charset=utf-8"});s=[],a.href=URL.createObjectURL(r),a.click(),setTimeout(()=>URL.revokeObjectURL(a.href),1e4)}}))}else{const{writable:s,readablePort:r}=new O(y),n=encodeURIComponent(this.name).replace(/['()]/g,escape).replace(/\*/g,"%2A"),g={"content-disposition":"attachment; filename*=UTF-8''"+n,"content-type":"application/octet-stream; charset=utf-8",...e.size?{"content-length":e.size}:{}},w=setTimeout(()=>t.active.postMessage(0),1e4);o.readable.pipeThrough(new _({transform(c,h){if(c instanceof Uint8Array)return h.enqueue(c);const R=new Response(c).body.getReader(),d=S=>R.read().then(p=>p.done?0:d(h.enqueue(p.value)));return d()}})).pipeTo(s).finally(()=>{clearInterval(w)}),t.active.postMessage({url:t.scope+n,headers:g,readablePort:r},[r]);const i=document.createElement("iframe");i.hidden=!0,i.src=t.scope+n,document.body.appendChild(i)}return u.getWriter()}}const E=0,T=0,U=1,j=1,k=2;class L{constructor(e){e.onmessage=t=>this._onMessage(t.data),this._port=e,this._resetReady()}start(e){return this._controller=e,this._readyPromise}write(e){const t={type:E,chunk:e};return this._port.postMessage(t,[e.buffer]),this._resetReady(),this._readyPromise}close(){this._port.postMessage({type:k}),this._port.close()}abort(e){this._port.postMessage({type:j,reason:e}),this._port.close()}_onMessage(e){e.type===T&&this._resolveReady(),e.type===U&&this._onError(e.reason)}_onError(e){this._controller.error(e),this._rejectReady(e),this._port.close()}_resetReady(){this._readyPromise=new Promise((e,t)=>{this._readyResolve=e,this._readyReject=t}),this._readyPending=!0}_resolveReady(){this._readyResolve(),this._readyPending=!1}_rejectReady(e){this._readyPending||this._resetReady(),this._readyPromise.catch(()=>{}),this._readyReject(e),this._readyPending=!1}}class O{constructor(e){const t=new MessageChannel;this.readablePort=t.port1,this.writable=new e(new L(t.port2))}}export{A as FileHandle};