streamlit-nightly 1.41.2.dev20250112__py2.py3-none-any.whl → 1.41.2.dev20250114__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. streamlit/connections/snowflake_connection.py +30 -49
  2. streamlit/static/index.html +1 -1
  3. streamlit/static/static/js/{FileDownload.esm.DgMBFvxE.js → FileDownload.esm.xvAdcisp.js} +1 -1
  4. streamlit/static/static/js/{FormClearHelper.C-kz8EZa.js → FormClearHelper.Cwi_MzMn.js} +1 -1
  5. streamlit/static/static/js/{Hooks.BaEjlpBt.js → Hooks.ByXcZDtQ.js} +1 -1
  6. streamlit/static/static/js/{InputInstructions.2kJ3lLP5.js → InputInstructions.DQO_tWq8.js} +1 -1
  7. streamlit/static/static/js/{ProgressBar.BmX5Bd8z.js → ProgressBar.D2tsAzsU.js} +1 -1
  8. streamlit/static/static/js/{RenderInPortalIfExists.DvbHx6rz.js → RenderInPortalIfExists.Cb1iQZTk.js} +1 -1
  9. streamlit/static/static/js/{Toolbar.Cs7p2Lp9.js → Toolbar.FUQUVTZ-.js} +1 -1
  10. streamlit/static/static/js/{base-input.CmWUWSJc.js → base-input.WPHkbJPl.js} +1 -1
  11. streamlit/static/static/js/{createSuper.D46anxnG.js → createSuper.DjDIhar7.js} +1 -1
  12. streamlit/static/static/js/{data-grid-overlay-editor.BspRPTtu.js → data-grid-overlay-editor.SmXlJABI.js} +1 -1
  13. streamlit/static/static/js/{downloader.BX0QN5eD.js → downloader.CbRVsM5w.js} +1 -1
  14. streamlit/static/static/js/{es6.BlW--gnF.js → es6.C3ovyDQ0.js} +2 -2
  15. streamlit/static/static/js/{getPrototypeOf.BYTPPQIp.js → getPrototypeOf.CVYsgVl7.js} +1 -1
  16. streamlit/static/static/js/{iframeResizer.contentWindow.CNHQyyTg.js → iframeResizer.contentWindow.COP9ZNW_.js} +1 -1
  17. streamlit/static/static/js/{index.BX4DPcrq.js → index.BEVQJJoV.js} +1 -1
  18. streamlit/static/static/js/{index.BqCCfwZM.js → index.BGbkq72c.js} +1 -1
  19. streamlit/static/static/js/{index.B2lUWG_g.js → index.BH4vJGDU.js} +1 -1
  20. streamlit/static/static/js/{index.BSabhp-S.js → index.BMTeKekB.js} +1 -1
  21. streamlit/static/static/js/{index.DRm6hoq7.js → index.BPO6U_Ww.js} +1 -1
  22. streamlit/static/static/js/{index.CKhEFCMB.js → index.BbX6EljV.js} +1 -1
  23. streamlit/static/static/js/{index.7441r-sL.js → index.BfnKXy8f.js} +1 -1
  24. streamlit/static/static/js/{index.2kexLuIU.js → index.Br51_AlR.js} +5 -5
  25. streamlit/static/static/js/{index.D8V0ZERG.js → index.BvkVMkqn.js} +1 -1
  26. streamlit/static/static/js/{index.CdjxQOw-.js → index.CANLiXfL.js} +1 -1
  27. streamlit/static/static/js/{index.ClU6Toj3.js → index.CCIxkgVR.js} +1 -1
  28. streamlit/static/static/js/{index.BtaWfSZN.js → index.CDXWGWmT.js} +1 -1
  29. streamlit/static/static/js/{index.d1dU1FHw.js → index.CEaPpXYi.js} +1 -1
  30. streamlit/static/static/js/{index.B1RTO67W.js → index.CFwQY-KV.js} +1 -1
  31. streamlit/static/static/js/{index.DuEIfrbC.js → index.CMo3Hx0K.js} +1 -1
  32. streamlit/static/static/js/{index.CAmkSLgk.js → index.CNpCQb9b.js} +1 -1
  33. streamlit/static/static/js/{index.BHVs7_wn.js → index.Cg6FfZbb.js} +1 -1
  34. streamlit/static/static/js/{index.AzFWl1A_.js → index.CkiEGMvI.js} +1 -1
  35. streamlit/static/static/js/{index.-JIbeXZC.js → index.Cx7ma5cM.js} +12 -12
  36. streamlit/static/static/js/{index.a4u3c2yA.js → index.CzGQCrp7.js} +1 -1
  37. streamlit/static/static/js/{index.B3F-o9ex.js → index.D0lyWwCG.js} +1 -1
  38. streamlit/static/static/js/{index.DKFY5Ha1.js → index.D3tYsziH.js} +1 -1
  39. streamlit/static/static/js/{index.DGXjFinj.js → index.D99Ft0yx.js} +1 -1
  40. streamlit/static/static/js/{index.BBQgDj4i.js → index.DBsWPEgr.js} +1 -1
  41. streamlit/static/static/js/index.DFD0XSVm.js +1 -0
  42. streamlit/static/static/js/{index.y-VLJ65m.js → index.DFmc81Ae.js} +1 -1
  43. streamlit/static/static/js/{index.D4cEoG-b.js → index.DFwjNqMU.js} +3 -3
  44. streamlit/static/static/js/{index.Drqk1Tqs.js → index.DLx08-Iq.js} +1 -1
  45. streamlit/static/static/js/{index.BhQrqdv2.js → index.DQbNi2IT.js} +1 -1
  46. streamlit/static/static/js/{index.BhRQ3Irc.js → index.DTqVI4Zh.js} +1 -1
  47. streamlit/static/static/js/{index.tQ3BfkaX.js → index.DW-SfHSH.js} +1 -1
  48. streamlit/static/static/js/{index.BwvnBWfd.js → index.DWmj29sp.js} +1 -1
  49. streamlit/static/static/js/{index.D7zDVCSD.js → index.EqYXB49Q.js} +1 -1
  50. streamlit/static/static/js/{index.DhCGDinQ.js → index.JwwxmOA5.js} +1 -1
  51. streamlit/static/static/js/{index.5f81IBZP.js → index.MeMRgb28.js} +1 -1
  52. streamlit/static/static/js/{index.BRwmGBP4.js → index.V22boKfv.js} +12 -12
  53. streamlit/static/static/js/{index.BBK0SZBc.js → index.nDfHFYx0.js} +1 -1
  54. streamlit/static/static/js/{input.C7wSNGte.js → input.CKba1ugc.js} +1 -1
  55. streamlit/static/static/js/{memory.BF0Xc-rJ.js → memory.D29KuLLf.js} +1 -1
  56. streamlit/static/static/js/{mergeWith.CHIovAKI.js → mergeWith.Cp23ZfqA.js} +1 -1
  57. streamlit/static/static/js/{number-overlay-editor.DfAWep9y.js → number-overlay-editor.D2BUXr0s.js} +1 -1
  58. streamlit/static/static/js/{sandbox.CM0H2h0v.js → sandbox.hJRvf-68.js} +1 -1
  59. streamlit/static/static/js/{slicedToArray.BOBOh4VJ.js → slicedToArray.C2Uzm8dQ.js} +1 -1
  60. streamlit/static/static/js/{textarea.CINkGDSQ.js → textarea.DOCot5Dk.js} +1 -1
  61. streamlit/static/static/js/{timepicker.eZuQgQCF.js → timepicker.DzO-3wUS.js} +1 -1
  62. streamlit/static/static/js/{uniqueId.vdNgUDff.js → uniqueId.Drj6SPII.js} +1 -1
  63. streamlit/static/static/js/{useBasicWidgetState.De0NYf9Y.js → useBasicWidgetState.C2tMWgs5.js} +1 -1
  64. streamlit/static/static/js/{useOnInputChange.cRNtiNHf.js → useOnInputChange.9A5YfOzJ.js} +1 -1
  65. streamlit/static/static/js/{withFullScreenWrapper.D4HXFzaF.js → withFullScreenWrapper.CtPlgapz.js} +1 -1
  66. streamlit/watcher/util.py +86 -20
  67. {streamlit_nightly-1.41.2.dev20250112.dist-info → streamlit_nightly-1.41.2.dev20250114.dist-info}/METADATA +2 -2
  68. {streamlit_nightly-1.41.2.dev20250112.dist-info → streamlit_nightly-1.41.2.dev20250114.dist-info}/RECORD +72 -72
  69. streamlit/static/static/js/index.DAlH7XAu.js +0 -1
  70. {streamlit_nightly-1.41.2.dev20250112.data → streamlit_nightly-1.41.2.dev20250114.data}/scripts/streamlit.cmd +0 -0
  71. {streamlit_nightly-1.41.2.dev20250112.dist-info → streamlit_nightly-1.41.2.dev20250114.dist-info}/WHEEL +0 -0
  72. {streamlit_nightly-1.41.2.dev20250112.dist-info → streamlit_nightly-1.41.2.dev20250114.dist-info}/entry_points.txt +0 -0
  73. {streamlit_nightly-1.41.2.dev20250112.dist-info → streamlit_nightly-1.41.2.dev20250114.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.a4u3c2yA.js","./RenderInPortalIfExists.DvbHx6rz.js","./index.DuEIfrbC.js","./index.2kexLuIU.js","./FormClearHelper.C-kz8EZa.js","./withFullScreenWrapper.D4HXFzaF.js","./Toolbar.Cs7p2Lp9.js","./mergeWith.CHIovAKI.js","./sprintf.C-r3gIuM.js","./createDownloadLinkElement.DZMwyjvU.js","./slicedToArray.BOBOh4VJ.js","./getPrototypeOf.BYTPPQIp.js","./createSuper.D46anxnG.js","./FileDownload.esm.DgMBFvxE.js","../css/index.B26BQfSF.css","./index.BBQgDj4i.js","./threshold.B8r8f5kt.js","./value.iufjd77T.js","./timer.RueuYoQV.js","./index.7441r-sL.js","./useBasicWidgetState.De0NYf9Y.js","../css/index.CG16XVnL.css","./index.AzFWl1A_.js","./index.B3F-o9ex.js","./index.CKhEFCMB.js","./index.BHVs7_wn.js","./Hooks.BaEjlpBt.js","./index.DhCGDinQ.js","./index.DGXjFinj.js","./index.BhQrqdv2.js","./UploadFileInfo.C-jY39rj.js","./ProgressBar.BmX5Bd8z.js","./index.d1dU1FHw.js","./InputInstructions.2kJ3lLP5.js","./inputUtils.CQWz5UKz.js","./textarea.CINkGDSQ.js","./base-input.CmWUWSJc.js","./index.BSabhp-S.js","./index.y-VLJ65m.js","./index.-JIbeXZC.js","./timepicker.eZuQgQCF.js","./input.C7wSNGte.js","./index.DAlH7XAu.js","./index.BqCCfwZM.js","./index.DKFY5Ha1.js","./index.CdjxQOw-.js","./index.BwvnBWfd.js","./index.BBK0SZBc.js","./index.Drqk1Tqs.js","./uniqueId.vdNgUDff.js","./useOnInputChange.cRNtiNHf.js","./index.ClU6Toj3.js","./index.D4cEoG-b.js","./index.B1RTO67W.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.CzGQCrp7.js","./RenderInPortalIfExists.Cb1iQZTk.js","./index.CMo3Hx0K.js","./index.Br51_AlR.js","./FormClearHelper.Cwi_MzMn.js","./withFullScreenWrapper.CtPlgapz.js","./Toolbar.FUQUVTZ-.js","./mergeWith.Cp23ZfqA.js","./sprintf.C-r3gIuM.js","./createDownloadLinkElement.DZMwyjvU.js","./slicedToArray.C2Uzm8dQ.js","./getPrototypeOf.CVYsgVl7.js","./createSuper.DjDIhar7.js","./FileDownload.esm.xvAdcisp.js","../css/index.B26BQfSF.css","./index.DBsWPEgr.js","./threshold.B8r8f5kt.js","./value.iufjd77T.js","./timer.RueuYoQV.js","./index.BfnKXy8f.js","./useBasicWidgetState.C2tMWgs5.js","../css/index.CG16XVnL.css","./index.CkiEGMvI.js","./index.D0lyWwCG.js","./index.BbX6EljV.js","./index.Cg6FfZbb.js","./Hooks.ByXcZDtQ.js","./index.JwwxmOA5.js","./index.D99Ft0yx.js","./index.DQbNi2IT.js","./UploadFileInfo.C-jY39rj.js","./ProgressBar.D2tsAzsU.js","./index.CEaPpXYi.js","./InputInstructions.DQO_tWq8.js","./inputUtils.CQWz5UKz.js","./textarea.DOCot5Dk.js","./base-input.WPHkbJPl.js","./index.BMTeKekB.js","./index.DFmc81Ae.js","./index.Cx7ma5cM.js","./timepicker.DzO-3wUS.js","./input.CKba1ugc.js","./index.DFD0XSVm.js","./index.BGbkq72c.js","./index.D3tYsziH.js","./index.CANLiXfL.js","./index.DWmj29sp.js","./index.nDfHFYx0.js","./index.DLx08-Iq.js","./uniqueId.Drj6SPII.js","./useOnInputChange.9A5YfOzJ.js","./index.CCIxkgVR.js","./index.DFwjNqMU.js","./index.CFwQY-KV.js"])))=>i.map(i=>d[i]);
2
2
  var lr=Object.defineProperty;var B1=tt=>{throw TypeError(tt)};var sr=(tt,nt,et)=>nt in tt?lr(tt,nt,{enumerable:!0,configurable:!0,writable:!0,value:et}):tt[nt]=et;var In=(tt,nt,et)=>sr(tt,typeof nt!="symbol"?nt+"":nt,et),$1=(tt,nt,et)=>nt.has(tt)||B1("Cannot "+et);var _0=(tt,nt,et)=>($1(tt,nt,"read from private field"),et?et.call(tt):nt.get(tt)),Q0=(tt,nt,et)=>nt.has(tt)?B1("Cannot add the same private member more than once"):nt instanceof WeakSet?nt.add(tt):nt.set(tt,et),K0=(tt,nt,et,rt)=>($1(tt,nt,"write to private field"),rt?rt.call(tt,et):nt.set(tt,et),et),$0=(tt,nt,et)=>($1(tt,nt,"access private method"),et);function _mergeNamespaces(tt,nt){for(var et=0;et<nt.length;et++){const rt=nt[et];if(typeof rt!="string"&&!Array.isArray(rt)){for(const ot in rt)if(ot!=="default"&&!(ot in tt)){const at=Object.getOwnPropertyDescriptor(rt,ot);at&&Object.defineProperty(tt,ot,at.get?at:{enumerable:!0,get:()=>rt[ot]})}}}return Object.freeze(Object.defineProperty(tt,Symbol.toStringTag,{value:"Module"}))}(function(){const nt=document.createElement("link").relList;if(nt&&nt.supports&&nt.supports("modulepreload"))return;for(const ot of document.querySelectorAll('link[rel="modulepreload"]'))rt(ot);new MutationObserver(ot=>{for(const at of ot)if(at.type==="childList")for(const st of at.addedNodes)st.tagName==="LINK"&&st.rel==="modulepreload"&&rt(st)}).observe(document,{childList:!0,subtree:!0});function et(ot){const at={};return ot.integrity&&(at.integrity=ot.integrity),ot.referrerPolicy&&(at.referrerPolicy=ot.referrerPolicy),ot.crossOrigin==="use-credentials"?at.credentials="include":ot.crossOrigin==="anonymous"?at.credentials="omit":at.credentials="same-origin",at}function rt(ot){if(ot.ep)return;ot.ep=!0;const at=et(ot);fetch(ot.href,at)}})();var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(tt){return tt&&tt.__esModule&&Object.prototype.hasOwnProperty.call(tt,"default")?tt.default:tt}function getAugmentedNamespace(tt){if(tt.__esModule)return tt;var nt=tt.default;if(typeof nt=="function"){var et=function rt(){return this instanceof rt?Reflect.construct(nt,arguments,this.constructor):nt.apply(this,arguments)};et.prototype=nt.prototype}else et={};return Object.defineProperty(et,"__esModule",{value:!0}),Object.keys(tt).forEach(function(rt){var ot=Object.getOwnPropertyDescriptor(tt,rt);Object.defineProperty(et,rt,ot.get?ot:{enumerable:!0,get:function(){return tt[rt]}})}),et}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/**
3
3
  * @license React
4
4
  * react.production.min.js
@@ -96,7 +96,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
96
96
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
97
97
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
98
98
  * SOFTWARE.
99
- */var isBrowser$1=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",timeoutDuration=function(){for(var tt=["Edge","Trident","Firefox"],nt=0;nt<tt.length;nt+=1)if(isBrowser$1&&navigator.userAgent.indexOf(tt[nt])>=0)return 1;return 0}();function microtaskDebounce(tt){var nt=!1;return function(){nt||(nt=!0,window.Promise.resolve().then(function(){nt=!1,tt()}))}}function taskDebounce(tt){var nt=!1;return function(){nt||(nt=!0,setTimeout(function(){nt=!1,tt()},timeoutDuration))}}var supportsMicroTasks=isBrowser$1&&window.Promise,debounce$3=supportsMicroTasks?microtaskDebounce:taskDebounce;function isFunction$4(tt){var nt={};return tt&&nt.toString.call(tt)==="[object Function]"}function getStyleComputedProperty(tt,nt){if(tt.nodeType!==1)return[];var et=tt.ownerDocument.defaultView,rt=et.getComputedStyle(tt,null);return nt?rt[nt]:rt}function getParentNode$1(tt){return tt.nodeName==="HTML"?tt:tt.parentNode||tt.host}function getScrollParent(tt){if(!tt)return document.body;switch(tt.nodeName){case"HTML":case"BODY":return tt.ownerDocument.body;case"#document":return tt.body}var nt=getStyleComputedProperty(tt),et=nt.overflow,rt=nt.overflowX,ot=nt.overflowY;return/(auto|scroll|overlay)/.test(et+ot+rt)?tt:getScrollParent(getParentNode$1(tt))}function getReferenceNode(tt){return tt&&tt.referenceNode?tt.referenceNode:tt}var isIE11=isBrowser$1&&!!(window.MSInputMethodContext&&document.documentMode),isIE10=isBrowser$1&&/MSIE 10/.test(navigator.userAgent);function isIE$1(tt){return tt===11?isIE11:tt===10?isIE10:isIE11||isIE10}function getOffsetParent(tt){if(!tt)return document.documentElement;for(var nt=isIE$1(10)?document.body:null,et=tt.offsetParent||null;et===nt&&tt.nextElementSibling;)et=(tt=tt.nextElementSibling).offsetParent;var rt=et&&et.nodeName;return!rt||rt==="BODY"||rt==="HTML"?tt?tt.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(et.nodeName)!==-1&&getStyleComputedProperty(et,"position")==="static"?getOffsetParent(et):et}function isOffsetContainer(tt){var nt=tt.nodeName;return nt==="BODY"?!1:nt==="HTML"||getOffsetParent(tt.firstElementChild)===tt}function getRoot(tt){return tt.parentNode!==null?getRoot(tt.parentNode):tt}function findCommonOffsetParent(tt,nt){if(!tt||!tt.nodeType||!nt||!nt.nodeType)return document.documentElement;var et=tt.compareDocumentPosition(nt)&Node.DOCUMENT_POSITION_FOLLOWING,rt=et?tt:nt,ot=et?nt:tt,at=document.createRange();at.setStart(rt,0),at.setEnd(ot,0);var st=at.commonAncestorContainer;if(tt!==st&&nt!==st||rt.contains(ot))return isOffsetContainer(st)?st:getOffsetParent(st);var ut=getRoot(tt);return ut.host?findCommonOffsetParent(ut.host,nt):findCommonOffsetParent(tt,getRoot(nt).host)}function getScroll(tt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",et=nt==="top"?"scrollTop":"scrollLeft",rt=tt.nodeName;if(rt==="BODY"||rt==="HTML"){var ot=tt.ownerDocument.documentElement,at=tt.ownerDocument.scrollingElement||ot;return at[et]}return tt[et]}function includeScroll(tt,nt){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,rt=getScroll(nt,"top"),ot=getScroll(nt,"left"),at=et?-1:1;return tt.top+=rt*at,tt.bottom+=rt*at,tt.left+=ot*at,tt.right+=ot*at,tt}function getBordersSize(tt,nt){var et=nt==="x"?"Left":"Top",rt=et==="Left"?"Right":"Bottom";return parseFloat(tt["border"+et+"Width"])+parseFloat(tt["border"+rt+"Width"])}function getSize(tt,nt,et,rt){return Math.max(nt["offset"+tt],nt["scroll"+tt],et["client"+tt],et["offset"+tt],et["scroll"+tt],isIE$1(10)?parseInt(et["offset"+tt])+parseInt(rt["margin"+(tt==="Height"?"Top":"Left")])+parseInt(rt["margin"+(tt==="Height"?"Bottom":"Right")]):0)}function getWindowSizes(tt){var nt=tt.body,et=tt.documentElement,rt=isIE$1(10)&&getComputedStyle(et);return{height:getSize("Height",nt,et,rt),width:getSize("Width",nt,et,rt)}}var classCallCheck=function(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")},createClass$1=function(){function tt(nt,et){for(var rt=0;rt<et.length;rt++){var ot=et[rt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(nt,ot.key,ot)}}return function(nt,et,rt){return et&&tt(nt.prototype,et),rt&&tt(nt,rt),nt}}(),defineProperty$3=function(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt},_extends$K=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt};function getClientRect(tt){return _extends$K({},tt,{right:tt.left+tt.width,bottom:tt.top+tt.height})}function getBoundingClientRect(tt){var nt={};try{if(isIE$1(10)){nt=tt.getBoundingClientRect();var et=getScroll(tt,"top"),rt=getScroll(tt,"left");nt.top+=et,nt.left+=rt,nt.bottom+=et,nt.right+=rt}else nt=tt.getBoundingClientRect()}catch{}var ot={left:nt.left,top:nt.top,width:nt.right-nt.left,height:nt.bottom-nt.top},at=tt.nodeName==="HTML"?getWindowSizes(tt.ownerDocument):{},st=at.width||tt.clientWidth||ot.width,ut=at.height||tt.clientHeight||ot.height,ct=tt.offsetWidth-st,pt=tt.offsetHeight-ut;if(ct||pt){var dt=getStyleComputedProperty(tt);ct-=getBordersSize(dt,"x"),pt-=getBordersSize(dt,"y"),ot.width-=ct,ot.height-=pt}return getClientRect(ot)}function getOffsetRectRelativeToArbitraryNode(tt,nt){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,rt=isIE$1(10),ot=nt.nodeName==="HTML",at=getBoundingClientRect(tt),st=getBoundingClientRect(nt),ut=getScrollParent(tt),ct=getStyleComputedProperty(nt),pt=parseFloat(ct.borderTopWidth),dt=parseFloat(ct.borderLeftWidth);et&&ot&&(st.top=Math.max(st.top,0),st.left=Math.max(st.left,0));var ft=getClientRect({top:at.top-st.top-pt,left:at.left-st.left-dt,width:at.width,height:at.height});if(ft.marginTop=0,ft.marginLeft=0,!rt&&ot){var bt=parseFloat(ct.marginTop),ht=parseFloat(ct.marginLeft);ft.top-=pt-bt,ft.bottom-=pt-bt,ft.left-=dt-ht,ft.right-=dt-ht,ft.marginTop=bt,ft.marginLeft=ht}return(rt&&!et?nt.contains(ut):nt===ut&&ut.nodeName!=="BODY")&&(ft=includeScroll(ft,nt)),ft}function getViewportOffsetRectRelativeToArtbitraryNode(tt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,et=tt.ownerDocument.documentElement,rt=getOffsetRectRelativeToArbitraryNode(tt,et),ot=Math.max(et.clientWidth,window.innerWidth||0),at=Math.max(et.clientHeight,window.innerHeight||0),st=nt?0:getScroll(et),ut=nt?0:getScroll(et,"left"),ct={top:st-rt.top+rt.marginTop,left:ut-rt.left+rt.marginLeft,width:ot,height:at};return getClientRect(ct)}function isFixed$1(tt){var nt=tt.nodeName;if(nt==="BODY"||nt==="HTML")return!1;if(getStyleComputedProperty(tt,"position")==="fixed")return!0;var et=getParentNode$1(tt);return et?isFixed$1(et):!1}function getFixedPositionOffsetParent(tt){if(!tt||!tt.parentElement||isIE$1())return document.documentElement;for(var nt=tt.parentElement;nt&&getStyleComputedProperty(nt,"transform")==="none";)nt=nt.parentElement;return nt||document.documentElement}function getBoundaries(tt,nt,et,rt){var ot=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,at={top:0,left:0},st=ot?getFixedPositionOffsetParent(tt):findCommonOffsetParent(tt,getReferenceNode(nt));if(rt==="viewport")at=getViewportOffsetRectRelativeToArtbitraryNode(st,ot);else{var ut=void 0;rt==="scrollParent"?(ut=getScrollParent(getParentNode$1(nt)),ut.nodeName==="BODY"&&(ut=tt.ownerDocument.documentElement)):rt==="window"?ut=tt.ownerDocument.documentElement:ut=rt;var ct=getOffsetRectRelativeToArbitraryNode(ut,st,ot);if(ut.nodeName==="HTML"&&!isFixed$1(st)){var pt=getWindowSizes(tt.ownerDocument),dt=pt.height,ft=pt.width;at.top+=ct.top-ct.marginTop,at.bottom=dt+ct.top,at.left+=ct.left-ct.marginLeft,at.right=ft+ct.left}else at=ct}et=et||0;var bt=typeof et=="number";return at.left+=bt?et:et.left||0,at.top+=bt?et:et.top||0,at.right-=bt?et:et.right||0,at.bottom-=bt?et:et.bottom||0,at}function getArea(tt){var nt=tt.width,et=tt.height;return nt*et}function computeAutoPlacement(tt,nt,et,rt,ot){var at=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(tt.indexOf("auto")===-1)return tt;var st=getBoundaries(et,rt,at,ot),ut={top:{width:st.width,height:nt.top-st.top},right:{width:st.right-nt.right,height:st.height},bottom:{width:st.width,height:st.bottom-nt.bottom},left:{width:nt.left-st.left,height:st.height}},ct=Object.keys(ut).map(function(bt){return _extends$K({key:bt},ut[bt],{area:getArea(ut[bt])})}).sort(function(bt,ht){return ht.area-bt.area}),pt=ct.filter(function(bt){var ht=bt.width,Mt=bt.height;return ht>=et.clientWidth&&Mt>=et.clientHeight}),dt=pt.length>0?pt[0].key:ct[0].key,ft=tt.split("-")[1];return dt+(ft?"-"+ft:"")}function getReferenceOffsets(tt,nt,et){var rt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,ot=rt?getFixedPositionOffsetParent(nt):findCommonOffsetParent(nt,getReferenceNode(et));return getOffsetRectRelativeToArbitraryNode(et,ot,rt)}function getOuterSizes(tt){var nt=tt.ownerDocument.defaultView,et=nt.getComputedStyle(tt),rt=parseFloat(et.marginTop||0)+parseFloat(et.marginBottom||0),ot=parseFloat(et.marginLeft||0)+parseFloat(et.marginRight||0),at={width:tt.offsetWidth+ot,height:tt.offsetHeight+rt};return at}function getOppositePlacement(tt){var nt={left:"right",right:"left",bottom:"top",top:"bottom"};return tt.replace(/left|right|bottom|top/g,function(et){return nt[et]})}function getPopperOffsets(tt,nt,et){et=et.split("-")[0];var rt=getOuterSizes(tt),ot={width:rt.width,height:rt.height},at=["right","left"].indexOf(et)!==-1,st=at?"top":"left",ut=at?"left":"top",ct=at?"height":"width",pt=at?"width":"height";return ot[st]=nt[st]+nt[ct]/2-rt[ct]/2,et===ut?ot[ut]=nt[ut]-rt[pt]:ot[ut]=nt[getOppositePlacement(ut)],ot}function find$3(tt,nt){return Array.prototype.find?tt.find(nt):tt.filter(nt)[0]}function findIndex(tt,nt,et){if(Array.prototype.findIndex)return tt.findIndex(function(ot){return ot[nt]===et});var rt=find$3(tt,function(ot){return ot[nt]===et});return tt.indexOf(rt)}function runModifiers(tt,nt,et){var rt=et===void 0?tt:tt.slice(0,findIndex(tt,"name",et));return rt.forEach(function(ot){ot.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var at=ot.function||ot.fn;ot.enabled&&isFunction$4(at)&&(nt.offsets.popper=getClientRect(nt.offsets.popper),nt.offsets.reference=getClientRect(nt.offsets.reference),nt=at(nt,ot))}),nt}function update(){if(!this.state.isDestroyed){var tt={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};tt.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed),tt.placement=computeAutoPlacement(this.options.placement,tt.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),tt.originalPlacement=tt.placement,tt.positionFixed=this.options.positionFixed,tt.offsets.popper=getPopperOffsets(this.popper,tt.offsets.reference,tt.placement),tt.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",tt=runModifiers(this.modifiers,tt),this.state.isCreated?this.options.onUpdate(tt):(this.state.isCreated=!0,this.options.onCreate(tt))}}function isModifierEnabled(tt,nt){return tt.some(function(et){var rt=et.name,ot=et.enabled;return ot&&rt===nt})}function getSupportedPropertyName(tt){for(var nt=[!1,"ms","Webkit","Moz","O"],et=tt.charAt(0).toUpperCase()+tt.slice(1),rt=0;rt<nt.length;rt++){var ot=nt[rt],at=ot?""+ot+et:tt;if(typeof document.body.style[at]<"u")return at}return null}function destroy(){return this.state.isDestroyed=!0,isModifierEnabled(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[getSupportedPropertyName("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function getWindow(tt){var nt=tt.ownerDocument;return nt?nt.defaultView:window}function attachToScrollParents(tt,nt,et,rt){var ot=tt.nodeName==="BODY",at=ot?tt.ownerDocument.defaultView:tt;at.addEventListener(nt,et,{passive:!0}),ot||attachToScrollParents(getScrollParent(at.parentNode),nt,et,rt),rt.push(at)}function setupEventListeners(tt,nt,et,rt){et.updateBound=rt,getWindow(tt).addEventListener("resize",et.updateBound,{passive:!0});var ot=getScrollParent(tt);return attachToScrollParents(ot,"scroll",et.updateBound,et.scrollParents),et.scrollElement=ot,et.eventsEnabled=!0,et}function enableEventListeners(){this.state.eventsEnabled||(this.state=setupEventListeners(this.reference,this.options,this.state,this.scheduleUpdate))}function removeEventListeners(tt,nt){return getWindow(tt).removeEventListener("resize",nt.updateBound),nt.scrollParents.forEach(function(et){et.removeEventListener("scroll",nt.updateBound)}),nt.updateBound=null,nt.scrollParents=[],nt.scrollElement=null,nt.eventsEnabled=!1,nt}function disableEventListeners(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=removeEventListeners(this.reference,this.state))}function isNumeric(tt){return tt!==""&&!isNaN(parseFloat(tt))&&isFinite(tt)}function setStyles(tt,nt){Object.keys(nt).forEach(function(et){var rt="";["width","height","top","right","bottom","left"].indexOf(et)!==-1&&isNumeric(nt[et])&&(rt="px"),tt.style[et]=nt[et]+rt})}function setAttributes(tt,nt){Object.keys(nt).forEach(function(et){var rt=nt[et];rt!==!1?tt.setAttribute(et,nt[et]):tt.removeAttribute(et)})}function applyStyle(tt){return setStyles(tt.instance.popper,tt.styles),setAttributes(tt.instance.popper,tt.attributes),tt.arrowElement&&Object.keys(tt.arrowStyles).length&&setStyles(tt.arrowElement,tt.arrowStyles),tt}function applyStyleOnLoad(tt,nt,et,rt,ot){var at=getReferenceOffsets(ot,nt,tt,et.positionFixed),st=computeAutoPlacement(et.placement,at,nt,tt,et.modifiers.flip.boundariesElement,et.modifiers.flip.padding);return nt.setAttribute("x-placement",st),setStyles(nt,{position:et.positionFixed?"fixed":"absolute"}),et}function getRoundedOffsets(tt,nt){var et=tt.offsets,rt=et.popper,ot=et.reference,at=Math.round,st=Math.floor,ut=function(zt){return zt},ct=at(ot.width),pt=at(rt.width),dt=["left","right"].indexOf(tt.placement)!==-1,ft=tt.placement.indexOf("-")!==-1,bt=ct%2===pt%2,ht=ct%2===1&&pt%2===1,Mt=nt?dt||ft||bt?at:st:ut,mt=nt?at:ut;return{left:Mt(ht&&!ft&&nt?rt.left-1:rt.left),top:mt(rt.top),bottom:mt(rt.bottom),right:Mt(rt.right)}}var isFirefox$1=isBrowser$1&&/Firefox/i.test(navigator.userAgent);function computeStyle(tt,nt){var et=nt.x,rt=nt.y,ot=tt.offsets.popper,at=find$3(tt.instance.modifiers,function(vt){return vt.name==="applyStyle"}).gpuAcceleration;at!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var st=at!==void 0?at:nt.gpuAcceleration,ut=getOffsetParent(tt.instance.popper),ct=getBoundingClientRect(ut),pt={position:ot.position},dt=getRoundedOffsets(tt,window.devicePixelRatio<2||!isFirefox$1),ft=et==="bottom"?"top":"bottom",bt=rt==="right"?"left":"right",ht=getSupportedPropertyName("transform"),Mt=void 0,mt=void 0;if(ft==="bottom"?ut.nodeName==="HTML"?mt=-ut.clientHeight+dt.bottom:mt=-ct.height+dt.bottom:mt=dt.top,bt==="right"?ut.nodeName==="HTML"?Mt=-ut.clientWidth+dt.right:Mt=-ct.width+dt.right:Mt=dt.left,st&&ht)pt[ht]="translate3d("+Mt+"px, "+mt+"px, 0)",pt[ft]=0,pt[bt]=0,pt.willChange="transform";else{var Ot=ft==="bottom"?-1:1,zt=bt==="right"?-1:1;pt[ft]=mt*Ot,pt[bt]=Mt*zt,pt.willChange=ft+", "+bt}var yt={"x-placement":tt.placement};return tt.attributes=_extends$K({},yt,tt.attributes),tt.styles=_extends$K({},pt,tt.styles),tt.arrowStyles=_extends$K({},tt.offsets.arrow,tt.arrowStyles),tt}function isModifierRequired(tt,nt,et){var rt=find$3(tt,function(ut){var ct=ut.name;return ct===nt}),ot=!!rt&&tt.some(function(ut){return ut.name===et&&ut.enabled&&ut.order<rt.order});if(!ot){var at="`"+nt+"`",st="`"+et+"`";console.warn(st+" modifier is required by "+at+" modifier in order to work, be sure to include it before "+at+"!")}return ot}function arrow(tt,nt){var et;if(!isModifierRequired(tt.instance.modifiers,"arrow","keepTogether"))return tt;var rt=nt.element;if(typeof rt=="string"){if(rt=tt.instance.popper.querySelector(rt),!rt)return tt}else if(!tt.instance.popper.contains(rt))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),tt;var ot=tt.placement.split("-")[0],at=tt.offsets,st=at.popper,ut=at.reference,ct=["left","right"].indexOf(ot)!==-1,pt=ct?"height":"width",dt=ct?"Top":"Left",ft=dt.toLowerCase(),bt=ct?"left":"top",ht=ct?"bottom":"right",Mt=getOuterSizes(rt)[pt];ut[ht]-Mt<st[ft]&&(tt.offsets.popper[ft]-=st[ft]-(ut[ht]-Mt)),ut[ft]+Mt>st[ht]&&(tt.offsets.popper[ft]+=ut[ft]+Mt-st[ht]),tt.offsets.popper=getClientRect(tt.offsets.popper);var mt=ut[ft]+ut[pt]/2-Mt/2,Ot=getStyleComputedProperty(tt.instance.popper),zt=parseFloat(Ot["margin"+dt]),yt=parseFloat(Ot["border"+dt+"Width"]),vt=mt-tt.offsets.popper[ft]-zt-yt;return vt=Math.max(Math.min(st[pt]-Mt,vt),0),tt.arrowElement=rt,tt.offsets.arrow=(et={},defineProperty$3(et,ft,Math.round(vt)),defineProperty$3(et,bt,""),et),tt}function getOppositeVariation(tt){return tt==="end"?"start":tt==="start"?"end":tt}var placements=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],validPlacements=placements.slice(3);function clockwise(tt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,et=validPlacements.indexOf(tt),rt=validPlacements.slice(et+1).concat(validPlacements.slice(0,et));return nt?rt.reverse():rt}var BEHAVIORS={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function flip$1(tt,nt){if(isModifierEnabled(tt.instance.modifiers,"inner")||tt.flipped&&tt.placement===tt.originalPlacement)return tt;var et=getBoundaries(tt.instance.popper,tt.instance.reference,nt.padding,nt.boundariesElement,tt.positionFixed),rt=tt.placement.split("-")[0],ot=getOppositePlacement(rt),at=tt.placement.split("-")[1]||"",st=[];switch(nt.behavior){case BEHAVIORS.FLIP:st=[rt,ot];break;case BEHAVIORS.CLOCKWISE:st=clockwise(rt);break;case BEHAVIORS.COUNTERCLOCKWISE:st=clockwise(rt,!0);break;default:st=nt.behavior}return st.forEach(function(ut,ct){if(rt!==ut||st.length===ct+1)return tt;rt=tt.placement.split("-")[0],ot=getOppositePlacement(rt);var pt=tt.offsets.popper,dt=tt.offsets.reference,ft=Math.floor,bt=rt==="left"&&ft(pt.right)>ft(dt.left)||rt==="right"&&ft(pt.left)<ft(dt.right)||rt==="top"&&ft(pt.bottom)>ft(dt.top)||rt==="bottom"&&ft(pt.top)<ft(dt.bottom),ht=ft(pt.left)<ft(et.left),Mt=ft(pt.right)>ft(et.right),mt=ft(pt.top)<ft(et.top),Ot=ft(pt.bottom)>ft(et.bottom),zt=rt==="left"&&ht||rt==="right"&&Mt||rt==="top"&&mt||rt==="bottom"&&Ot,yt=["top","bottom"].indexOf(rt)!==-1,vt=!!nt.flipVariations&&(yt&&at==="start"&&ht||yt&&at==="end"&&Mt||!yt&&at==="start"&&mt||!yt&&at==="end"&&Ot),At=!!nt.flipVariationsByContent&&(yt&&at==="start"&&Mt||yt&&at==="end"&&ht||!yt&&at==="start"&&Ot||!yt&&at==="end"&&mt),St=vt||At;(bt||zt||St)&&(tt.flipped=!0,(bt||zt)&&(rt=st[ct+1]),St&&(at=getOppositeVariation(at)),tt.placement=rt+(at?"-"+at:""),tt.offsets.popper=_extends$K({},tt.offsets.popper,getPopperOffsets(tt.instance.popper,tt.offsets.reference,tt.placement)),tt=runModifiers(tt.instance.modifiers,tt,"flip"))}),tt}function keepTogether(tt){var nt=tt.offsets,et=nt.popper,rt=nt.reference,ot=tt.placement.split("-")[0],at=Math.floor,st=["top","bottom"].indexOf(ot)!==-1,ut=st?"right":"bottom",ct=st?"left":"top",pt=st?"width":"height";return et[ut]<at(rt[ct])&&(tt.offsets.popper[ct]=at(rt[ct])-et[pt]),et[ct]>at(rt[ut])&&(tt.offsets.popper[ct]=at(rt[ut])),tt}function toValue(tt,nt,et,rt){var ot=tt.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),at=+ot[1],st=ot[2];if(!at)return tt;if(st.indexOf("%")===0){var ut=void 0;switch(st){case"%p":ut=et;break;case"%":case"%r":default:ut=rt}var ct=getClientRect(ut);return ct[nt]/100*at}else if(st==="vh"||st==="vw"){var pt=void 0;return st==="vh"?pt=Math.max(document.documentElement.clientHeight,window.innerHeight||0):pt=Math.max(document.documentElement.clientWidth,window.innerWidth||0),pt/100*at}else return at}function parseOffset(tt,nt,et,rt){var ot=[0,0],at=["right","left"].indexOf(rt)!==-1,st=tt.split(/(\+|\-)/).map(function(dt){return dt.trim()}),ut=st.indexOf(find$3(st,function(dt){return dt.search(/,|\s/)!==-1}));st[ut]&&st[ut].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var ct=/\s*,\s*|\s+/,pt=ut!==-1?[st.slice(0,ut).concat([st[ut].split(ct)[0]]),[st[ut].split(ct)[1]].concat(st.slice(ut+1))]:[st];return pt=pt.map(function(dt,ft){var bt=(ft===1?!at:at)?"height":"width",ht=!1;return dt.reduce(function(Mt,mt){return Mt[Mt.length-1]===""&&["+","-"].indexOf(mt)!==-1?(Mt[Mt.length-1]=mt,ht=!0,Mt):ht?(Mt[Mt.length-1]+=mt,ht=!1,Mt):Mt.concat(mt)},[]).map(function(Mt){return toValue(Mt,bt,nt,et)})}),pt.forEach(function(dt,ft){dt.forEach(function(bt,ht){isNumeric(bt)&&(ot[ft]+=bt*(dt[ht-1]==="-"?-1:1))})}),ot}function offset$1(tt,nt){var et=nt.offset,rt=tt.placement,ot=tt.offsets,at=ot.popper,st=ot.reference,ut=rt.split("-")[0],ct=void 0;return isNumeric(+et)?ct=[+et,0]:ct=parseOffset(et,at,st,ut),ut==="left"?(at.top+=ct[0],at.left-=ct[1]):ut==="right"?(at.top+=ct[0],at.left+=ct[1]):ut==="top"?(at.left+=ct[0],at.top-=ct[1]):ut==="bottom"&&(at.left+=ct[0],at.top+=ct[1]),tt.popper=at,tt}function preventOverflow(tt,nt){var et=nt.boundariesElement||getOffsetParent(tt.instance.popper);tt.instance.reference===et&&(et=getOffsetParent(et));var rt=getSupportedPropertyName("transform"),ot=tt.instance.popper.style,at=ot.top,st=ot.left,ut=ot[rt];ot.top="",ot.left="",ot[rt]="";var ct=getBoundaries(tt.instance.popper,tt.instance.reference,nt.padding,et,tt.positionFixed);ot.top=at,ot.left=st,ot[rt]=ut,nt.boundaries=ct;var pt=nt.priority,dt=tt.offsets.popper,ft={primary:function(ht){var Mt=dt[ht];return dt[ht]<ct[ht]&&!nt.escapeWithReference&&(Mt=Math.max(dt[ht],ct[ht])),defineProperty$3({},ht,Mt)},secondary:function(ht){var Mt=ht==="right"?"left":"top",mt=dt[Mt];return dt[ht]>ct[ht]&&!nt.escapeWithReference&&(mt=Math.min(dt[Mt],ct[ht]-(ht==="right"?dt.width:dt.height))),defineProperty$3({},Mt,mt)}};return pt.forEach(function(bt){var ht=["left","top"].indexOf(bt)!==-1?"primary":"secondary";dt=_extends$K({},dt,ft[ht](bt))}),tt.offsets.popper=dt,tt}function shift(tt){var nt=tt.placement,et=nt.split("-")[0],rt=nt.split("-")[1];if(rt){var ot=tt.offsets,at=ot.reference,st=ot.popper,ut=["bottom","top"].indexOf(et)!==-1,ct=ut?"left":"top",pt=ut?"width":"height",dt={start:defineProperty$3({},ct,at[ct]),end:defineProperty$3({},ct,at[ct]+at[pt]-st[pt])};tt.offsets.popper=_extends$K({},st,dt[rt])}return tt}function hide(tt){if(!isModifierRequired(tt.instance.modifiers,"hide","preventOverflow"))return tt;var nt=tt.offsets.reference,et=find$3(tt.instance.modifiers,function(rt){return rt.name==="preventOverflow"}).boundaries;if(nt.bottom<et.top||nt.left>et.right||nt.top>et.bottom||nt.right<et.left){if(tt.hide===!0)return tt;tt.hide=!0,tt.attributes["x-out-of-boundaries"]=""}else{if(tt.hide===!1)return tt;tt.hide=!1,tt.attributes["x-out-of-boundaries"]=!1}return tt}function inner$1(tt){var nt=tt.placement,et=nt.split("-")[0],rt=tt.offsets,ot=rt.popper,at=rt.reference,st=["left","right"].indexOf(et)!==-1,ut=["top","left"].indexOf(et)===-1;return ot[st?"left":"top"]=at[et]-(ut?ot[st?"width":"height"]:0),tt.placement=getOppositePlacement(nt),tt.offsets.popper=getClientRect(ot),tt}var modifiers={shift:{order:100,enabled:!0,fn:shift},offset:{order:200,enabled:!0,fn:offset$1,offset:0},preventOverflow:{order:300,enabled:!0,fn:preventOverflow,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:keepTogether},arrow:{order:500,enabled:!0,fn:arrow,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:flip$1,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:inner$1},hide:{order:800,enabled:!0,fn:hide},computeStyle:{order:850,enabled:!0,fn:computeStyle,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:applyStyle,onLoad:applyStyleOnLoad,gpuAcceleration:void 0}},Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function tt(){},onUpdate:function tt(){},modifiers},Popper=function(){function tt(nt,et){var rt=this,ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};classCallCheck(this,tt),this.scheduleUpdate=function(){return requestAnimationFrame(rt.update)},this.update=debounce$3(this.update.bind(this)),this.options=_extends$K({},tt.Defaults,ot),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=nt&&nt.jquery?nt[0]:nt,this.popper=et&&et.jquery?et[0]:et,this.options.modifiers={},Object.keys(_extends$K({},tt.Defaults.modifiers,ot.modifiers)).forEach(function(st){rt.options.modifiers[st]=_extends$K({},tt.Defaults.modifiers[st]||{},ot.modifiers?ot.modifiers[st]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(st){return _extends$K({name:st},rt.options.modifiers[st])}).sort(function(st,ut){return st.order-ut.order}),this.modifiers.forEach(function(st){st.enabled&&isFunction$4(st.onLoad)&&st.onLoad(rt.reference,rt.popper,rt.options,st,rt.state)}),this.update();var at=this.options.eventsEnabled;at&&this.enableEventListeners(),this.state.eventsEnabled=at}return createClass$1(tt,[{key:"update",value:function(){return update.call(this)}},{key:"destroy",value:function(){return destroy.call(this)}},{key:"enableEventListeners",value:function(){return enableEventListeners.call(this)}},{key:"disableEventListeners",value:function(){return disableEventListeners.call(this)}}]),tt}();Popper.Utils=(typeof window<"u"?window:global).PopperUtils;Popper.placements=placements;Popper.Defaults=Defaults;function toPopperPlacement(tt){return tt.replace(/(Top|Left)$/,"-start").replace(/(Right|Bottom)$/,"-end")}function parsePopperOffset(tt){return{top:Math.floor(tt.top||0),left:Math.floor(tt.left||0)}}var TETHER_PLACEMENT={auto:"auto",topLeft:"topLeft",top:"top",topRight:"topRight",rightTop:"rightTop",right:"right",rightBottom:"rightBottom",bottomRight:"bottomRight",bottom:"bottom",bottomLeft:"bottomLeft",leftBottom:"leftBottom",left:"left",leftTop:"leftTop"};function _typeof$h(tt){"@babel/helpers - typeof";return _typeof$h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},_typeof$h(tt)}var _excluded$n=["modifiers"];function ownKeys$r(tt,nt){var et=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);nt&&(rt=rt.filter(function(ot){return Object.getOwnPropertyDescriptor(tt,ot).enumerable})),et.push.apply(et,rt)}return et}function _objectSpread$q(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt]!=null?arguments[nt]:{};nt%2?ownKeys$r(Object(et),!0).forEach(function(rt){_defineProperty$v(tt,rt,et[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(et)):ownKeys$r(Object(et)).forEach(function(rt){Object.defineProperty(tt,rt,Object.getOwnPropertyDescriptor(et,rt))})}return tt}function _objectWithoutProperties$t(tt,nt){if(tt==null)return{};var et=_objectWithoutPropertiesLoose$r(tt,nt),rt,ot;if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(tt);for(ot=0;ot<at.length;ot++)rt=at[ot],!(nt.indexOf(rt)>=0)&&Object.prototype.propertyIsEnumerable.call(tt,rt)&&(et[rt]=tt[rt])}return et}function _objectWithoutPropertiesLoose$r(tt,nt){if(tt==null)return{};var et={},rt=Object.keys(tt),ot,at;for(at=0;at<rt.length;at++)ot=rt[at],!(nt.indexOf(ot)>=0)&&(et[ot]=tt[ot]);return et}function _classCallCheck$o(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$e(tt,nt){for(var et=0;et<nt.length;et++){var rt=nt[et];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(tt,rt.key,rt)}}function _createClass$m(tt,nt,et){return nt&&_defineProperties$e(tt.prototype,nt),Object.defineProperty(tt,"prototype",{writable:!1}),tt}function _inherits$o(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function");tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,writable:!0,configurable:!0}}),Object.defineProperty(tt,"prototype",{writable:!1}),nt&&_setPrototypeOf$f(tt,nt)}function _setPrototypeOf$f(tt,nt){return _setPrototypeOf$f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(rt,ot){return rt.__proto__=ot,rt},_setPrototypeOf$f(tt,nt)}function _createSuper$d(tt){var nt=_isNativeReflectConstruct$d();return function(){var rt=_getPrototypeOf$e(tt),ot;if(nt){var at=_getPrototypeOf$e(this).constructor;ot=Reflect.construct(rt,arguments,at)}else ot=rt.apply(this,arguments);return _possibleConstructorReturn$o(this,ot)}}function _possibleConstructorReturn$o(tt,nt){if(nt&&(_typeof$h(nt)==="object"||typeof nt=="function"))return nt;if(nt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$f(tt)}function _assertThisInitialized$f(tt){if(tt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt}function _isNativeReflectConstruct$d(){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 _getPrototypeOf$e(tt){return _getPrototypeOf$e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$e(tt)}function _defineProperty$v(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}var Tether=function(tt){_inherits$o(et,tt);var nt=_createSuper$d(et);function et(){var rt;_classCallCheck$o(this,et);for(var ot=arguments.length,at=new Array(ot),st=0;st<ot;st++)at[st]=arguments[st];return rt=nt.call.apply(nt,[this].concat(at)),_defineProperty$v(_assertThisInitialized$f(rt),"popper",void 0),_defineProperty$v(_assertThisInitialized$f(rt),"popperHeight",0),_defineProperty$v(_assertThisInitialized$f(rt),"popperWidth",0),_defineProperty$v(_assertThisInitialized$f(rt),"anchorHeight",0),_defineProperty$v(_assertThisInitialized$f(rt),"anchorWidth",0),_defineProperty$v(_assertThisInitialized$f(rt),"state",{isMounted:!1}),_defineProperty$v(_assertThisInitialized$f(rt),"onPopperUpdate",function(ut){var ct={popper:parsePopperOffset(ut.offsets.popper),arrow:ut.offsets.arrow?parsePopperOffset(ut.offsets.arrow):{top:0,left:0}};rt.props.onPopperUpdate(ct,ut)}),rt}return _createClass$m(et,[{key:"componentDidMount",value:function(){this.setState({isMounted:!0})}},{key:"componentDidUpdate",value:function(ot,at){if(this.props.anchorRef){var st=this.props.anchorRef.getBoundingClientRect(),ut=st.height,ct=st.width;(this.anchorHeight!==ut||this.anchorWidth!==ct)&&(this.anchorHeight=ut,this.anchorWidth=ct,this.popper&&this.popper.scheduleUpdate())}if(this.props.popperRef){var pt=this.props.popperRef.getBoundingClientRect(),dt=pt.height,ft=pt.width;(this.popperHeight!==dt||this.popperWidth!==ft)&&(this.popperHeight=dt,this.popperWidth=ft,this.popper&&this.popper.scheduleUpdate()),this.state.isMounted!==at.isMounted&&this.props.anchorRef&&this.initializePopper()}}},{key:"componentWillUnmount",value:function(){this.destroyPopover()}},{key:"initializePopper",value:function(){var ot=this.props,at=ot.placement,st=ot.popperOptions,ut=st.modifiers,ct=_objectWithoutProperties$t(st,_excluded$n);!this.props.anchorRef||!this.props.popperRef||(this.popper=new Popper(this.props.anchorRef,this.props.popperRef,_objectSpread$q({placement:toPopperPlacement(at),modifiers:_objectSpread$q({arrow:{element:this.props.arrowRef,enabled:!!this.props.arrowRef},computeStyle:{gpuAcceleration:!1},applyStyle:{enabled:!1},applyReactStyle:{enabled:!0,fn:this.onPopperUpdate,order:900},preventOverflow:{enabled:!0}},ut)},ct)))}},{key:"destroyPopover",value:function(){this.popper&&(this.popper.destroy(),delete this.popper)}},{key:"render",value:function(){return this.props.children||null}}]),et}(reactExports.Component);_defineProperty$v(Tether,"defaultProps",{anchorRef:null,onPopperUpdate:function tt(){return null},placement:TETHER_PLACEMENT.auto,popperRef:null,popperOptions:{}});var BaseProvider=function tt(nt){var et=nt.children,rt=nt.overrides,ot=nt.theme,at=nt.zIndex;return reactExports.createElement(LayersManager,{zIndex:at,overrides:rt},reactExports.createElement(UIDReset,{prefix:"bui"},reactExports.createElement(ThemeProvider$1,{theme:ot},et)))};function guard(tt,nt,et){return Math.min(Math.max(tt,et),nt)}class ColorError extends Error{constructor(nt){super(`Failed to parse color: "${nt}"`)}}var ColorError$1=ColorError;function parseToRgba(tt){if(typeof tt!="string")throw new ColorError$1(tt);if(tt.trim().toLowerCase()==="transparent")return[0,0,0,0];let nt=tt.trim();nt=namedColorRegex.test(tt)?nameToHex(tt):tt;const et=reducedHexRegex.exec(nt);if(et){const st=Array.from(et).slice(1);return[...st.slice(0,3).map(ut=>parseInt(r(ut,2),16)),parseInt(r(st[3]||"f",2),16)/255]}const rt=hexRegex.exec(nt);if(rt){const st=Array.from(rt).slice(1);return[...st.slice(0,3).map(ut=>parseInt(ut,16)),parseInt(st[3]||"ff",16)/255]}const ot=rgbaRegex.exec(nt);if(ot){const st=Array.from(ot).slice(1);return[...st.slice(0,3).map(ut=>parseInt(ut,10)),parseFloat(st[3]||"1")]}const at=hslaRegex.exec(nt);if(at){const[st,ut,ct,pt]=Array.from(at).slice(1).map(parseFloat);if(guard(0,100,ut)!==ut)throw new ColorError$1(tt);if(guard(0,100,ct)!==ct)throw new ColorError$1(tt);return[...hslToRgb$1(st,ut,ct),Number.isNaN(pt)?1:pt]}throw new ColorError$1(tt)}function hash$1(tt){let nt=5381,et=tt.length;for(;et;)nt=nt*33^tt.charCodeAt(--et);return(nt>>>0)%2341}const colorToInt=tt=>parseInt(tt.replace(/_/g,""),36),compressedColorMap="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((tt,nt)=>{const et=colorToInt(nt.substring(0,3)),rt=colorToInt(nt.substring(3)).toString(16);let ot="";for(let at=0;at<6-rt.length;at++)ot+="0";return tt[et]=`${ot}${rt}`,tt},{});function nameToHex(tt){const nt=tt.toLowerCase().trim(),et=compressedColorMap[hash$1(nt)];if(!et)throw new ColorError$1(tt);return`#${et}`}const r=(tt,nt)=>Array.from(Array(nt)).map(()=>tt).join(""),reducedHexRegex=new RegExp(`^#${r("([a-f0-9])",3)}([a-f0-9])?$`,"i"),hexRegex=new RegExp(`^#${r("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),rgbaRegex=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),hslaRegex=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,namedColorRegex=/^[a-z]+$/i,roundColor=tt=>Math.round(tt*255),hslToRgb$1=(tt,nt,et)=>{let rt=et/100;if(nt===0)return[rt,rt,rt].map(roundColor);const ot=(tt%360+360)%360/60,at=(1-Math.abs(2*rt-1))*(nt/100),st=at*(1-Math.abs(ot%2-1));let ut=0,ct=0,pt=0;ot>=0&&ot<1?(ut=at,ct=st):ot>=1&&ot<2?(ut=st,ct=at):ot>=2&&ot<3?(ct=at,pt=st):ot>=3&&ot<4?(ct=st,pt=at):ot>=4&&ot<5?(ut=st,pt=at):ot>=5&&ot<6&&(ut=at,pt=st);const dt=rt-at/2,ft=ut+dt,bt=ct+dt,ht=pt+dt;return[ft,bt,ht].map(roundColor)};function parseToHsla(tt){const[nt,et,rt,ot]=parseToRgba(tt).map((ft,bt)=>bt===3?ft:ft/255),at=Math.max(nt,et,rt),st=Math.min(nt,et,rt),ut=(at+st)/2;if(at===st)return[0,0,ut,ot];const ct=at-st,pt=ut>.5?ct/(2-at-st):ct/(at+st);return[60*(nt===at?(et-rt)/ct+(et<rt?6:0):et===at?(rt-nt)/ct+2:(nt-et)/ct+4),pt,ut,ot]}function hsla(tt,nt,et,rt){return`hsla(${(tt%360).toFixed()}, ${guard(0,100,nt*100).toFixed()}%, ${guard(0,100,et*100).toFixed()}%, ${parseFloat(guard(0,1,rt).toFixed(3))})`}function darken(tt,nt){const[et,rt,ot,at]=parseToHsla(tt);return hsla(et,rt,ot-nt,at)}function getLuminance(tt){if(tt==="transparent")return 0;function nt(at){const st=at/255;return st<=.04045?st/12.92:Math.pow((st+.055)/1.055,2.4)}const[et,rt,ot]=parseToRgba(tt);return .2126*nt(et)+.7152*nt(rt)+.0722*nt(ot)}function rgba$1(tt,nt,et,rt){return`rgba(${guard(0,255,tt).toFixed()}, ${guard(0,255,nt).toFixed()}, ${guard(0,255,et).toFixed()}, ${parseFloat(guard(0,1,rt).toFixed(3))})`}function mix$1(tt,nt,et){const rt=(St,Et)=>Et===3?St:St/255,[ot,at,st,ut]=parseToRgba(tt).map(rt),[ct,pt,dt,ft]=parseToRgba(nt).map(rt),bt=ft-ut,ht=et*2-1,mt=((ht*bt===-1?ht:ht+bt/(1+ht*bt))+1)/2,Ot=1-mt,zt=(ot*Ot+ct*mt)*255,yt=(at*Ot+pt*mt)*255,vt=(st*Ot+dt*mt)*255,At=ft*et+ut*(1-et);return rgba$1(zt,yt,vt,At)}function lighten(tt,nt){return darken(tt,-nt)}function transparentize(tt,nt){const[et,rt,ot,at]=parseToRgba(tt);return rgba$1(et,rt,ot,at-nt)}function toHex(tt){const[nt,et,rt,ot]=parseToRgba(tt);let at=st=>{const ut=guard(0,255,st).toString(16);return ut.length===1?`0${ut}`:ut};return`#${at(nt)}${at(et)}${at(rt)}${ot<1?at(Math.round(ot*255)):""}`}const computeDerivedColors=tt=>{const{bodyText:nt,secondaryBg:et,bgColor:rt}=tt,ot=getLuminance(rt)>.5,at=ot?tt.blue:lighten(tt.blue,.2),st=transparentize(nt,.9),ut=transparentize(nt,.8),ct=transparentize(nt,.7),pt=transparentize(nt,.6),dt=transparentize(nt,.4),ft=ut,bt=st,ht=mix$1(rt,et,.5),Mt=ot?darken(ht,.3):lighten(ht,.6),mt=transparentize(Mt,.75),Ot=transparentize(Mt,.85),zt=lighten(rt,.025);return{linkText:at,fadedText05:st,fadedText10:ut,fadedText20:ct,fadedText40:pt,fadedText60:dt,bgMix:ht,darkenedBgMix100:Mt,darkenedBgMix25:mt,darkenedBgMix15:Ot,lightenedBg05:zt,borderColor:ft,borderColorLight:bt}};function hasLightBackgroundColor(tt){return getLuminance(tt.colors.bgColor)>.5}const createEmotionColors=tt=>{const nt=computeDerivedColors(tt);return{...tt,...nt,codeTextColor:tt.green80,codeHighlightColor:nt.bgMix,metricPositiveDeltaColor:tt.green,metricNegativeDeltaColor:tt.red,metricNeutralDeltaColor:nt.fadedText60,docStringModuleText:tt.bodyText,docStringTypeText:tt.green70,docStringContainerBackground:transparentize(tt.secondaryBg,.6),headingColor:tt.bodyText}};function getDividerColors(tt){const nt=hasLightBackgroundColor(tt),et=nt?tt.colors.blue60:tt.colors.blue90,rt=nt?tt.colors.green60:tt.colors.green90,ot=nt?tt.colors.orange60:tt.colors.orange90,at=nt?tt.colors.red60:tt.colors.red90,st=nt?tt.colors.purple60:tt.colors.purple80,ut=nt?tt.colors.gray40:tt.colors.gray70;return{blue:et,green:rt,orange:ot,red:at,violet:st,gray:ut,grey:ut,rainbow:`linear-gradient(to right, ${at}, ${ot}, ${rt}, ${et}, ${st})`}}function getMarkdownTextColors(tt){const nt=hasLightBackgroundColor(tt),et=nt?tt.colors.red80:tt.colors.red70,rt=nt?tt.colors.orange100:tt.colors.orange60,ot=nt?tt.colors.yellow100:tt.colors.yellow40,at=nt?tt.colors.green90:tt.colors.green60,st=nt?tt.colors.blue80:tt.colors.blue50,ut=nt?tt.colors.purple80:tt.colors.purple50,ct=nt?tt.colors.purple100:tt.colors.purple80,pt=nt?tt.colors.gray80:tt.colors.gray70,dt=tt.colors.primary;return{red:et,orange:rt,yellow:ot,green:at,blue:st,violet:ut,purple:ct,gray:pt,primary:dt}}function getMarkdownBgColors(tt){const nt=hasLightBackgroundColor(tt);return{redbg:transparentize(tt.colors[nt?"red80":"red60"],nt?.9:.7),orangebg:transparentize(tt.colors.yellow70,nt?.9:.7),yellowbg:transparentize(tt.colors[nt?"yellow70":"yellow50"],nt?.9:.7),greenbg:transparentize(tt.colors[nt?"green70":"green60"],nt?.9:.7),bluebg:transparentize(tt.colors[nt?"blue70":"blue60"],nt?.9:.7),violetbg:transparentize(tt.colors[nt?"purple70":"purple60"],nt?.9:.7),purplebg:transparentize(tt.colors[nt?"purple90":"purple80"],nt?.9:.7),graybg:transparentize(tt.colors[nt?"gray70":"gray50"],nt?.9:.7),primarybg:transparentize(tt.colors.primary,nt?.9:.7)}}function getGray70(tt){return hasLightBackgroundColor(tt)?tt.colors.gray70:tt.colors.gray30}function getGray30(tt){return hasLightBackgroundColor(tt)?tt.colors.gray30:tt.colors.gray85}function getGray90(tt){return hasLightBackgroundColor(tt)?tt.colors.gray90:tt.colors.gray10}function getBlue80(tt){return hasLightBackgroundColor(tt)?tt.colors.blue80:tt.colors.blue40}function getBlueArrayAsc(tt){const{colors:nt}=tt;return[nt.blue10,nt.blue20,nt.blue30,nt.blue40,nt.blue50,nt.blue60,nt.blue70,nt.blue80,nt.blue90,nt.blue100]}function getBlueArrayDesc(tt){const{colors:nt}=tt;return[nt.blue100,nt.blue90,nt.blue80,nt.blue70,nt.blue60,nt.blue50,nt.blue40,nt.blue30,nt.blue20,nt.blue10]}function getSequentialColorsArray(tt){return hasLightBackgroundColor(tt)?getBlueArrayAsc(tt):getBlueArrayDesc(tt)}function getDivergingColorsArray(tt){const{colors:nt}=tt;return[nt.red100,nt.red90,nt.red70,nt.red50,nt.red30,nt.blue30,nt.blue50,nt.blue70,nt.blue90,nt.blue100]}function getCategoricalColorsArray(tt){const{colors:nt}=tt;return hasLightBackgroundColor(tt)?[nt.blue80,nt.blue40,nt.red80,nt.red40,nt.blueGreen80,nt.green40,nt.orange80,nt.orange50,nt.purple80,nt.gray40]:[nt.blue40,nt.blue80,nt.red40,nt.red80,nt.green40,nt.blueGreen80,nt.orange50,nt.orange80,nt.purple80,nt.gray40]}function getDecreasingRed(tt){return hasLightBackgroundColor(tt)?tt.colors.red80:tt.colors.red40}function getIncreasingGreen(tt){return hasLightBackgroundColor(tt)?tt.colors.blueGreen80:tt.colors.green40}const breakpoints={hideWidgetDetails:180,hideNumberInputControls:120,sm:"576px",columns:"640px",md:"768px"},colors={transparent:"transparent",black:"#000000",white:"#ffffff",gray10:"#fafafa",gray20:"#f0f2f6",gray30:"#e6eaf1",gray40:"#d5dae5",gray50:"#bfc5d3",gray60:"#a3a8b8",gray70:"#808495",gray80:"#555867",gray85:"#31333F",gray90:"#262730",gray100:"#0e1117",red10:"#fff0f0",red20:"#ffdede",red30:"#ffc7c7",red40:"#ffabab",red50:"#ff8c8c",red60:"#ff6c6c",red70:"#ff4b4b",red80:"#ff2b2b",red90:"#bd4043",red100:"#7d353b",orange10:"#fffae8",orange20:"#fff6d0",orange30:"#ffecb0",orange40:"#ffe08e",orange50:"#ffd16a",orange60:"#ffbd45",orange70:"#ffa421",orange80:"#ff8700",orange90:"#ed6f13",orange100:"#d95a00",yellow10:"#ffffe1",yellow20:"#ffffc2",yellow30:"#ffffa0",yellow40:"#ffff7d",yellow50:"#ffff59",yellow60:"#fff835",yellow70:"#ffe312",yellow80:"#faca2b",yellow90:"#edbb16",yellow100:"#dea816",yellow110:"#916e10",green10:"#dffde9",green20:"#c0fcd3",green30:"#9ef6bb",green40:"#7defa1",green50:"#5ce488",green60:"#3dd56d",green70:"#21c354",green80:"#09ab3b",green90:"#158237",green100:"#177233",blueGreen10:"#dcfffb",blueGreen20:"#bafff7",blueGreen30:"#93ffee",blueGreen40:"#6bfde3",blueGreen50:"#45f4d5",blueGreen60:"#20e7c5",blueGreen70:"#00d4b1",blueGreen80:"#29b09d",blueGreen90:"#2c867c",blueGreen100:"#246e69",lightBlue10:"#e0feff",lightBlue20:"#bffdff",lightBlue30:"#9af8ff",lightBlue40:"#73efff",lightBlue50:"#4be4ff",lightBlue60:"#24d4ff",lightBlue70:"#00c0f2",lightBlue80:"#00a4d4",lightBlue90:"#0d8cb5",lightBlue100:"#15799e",blue10:"#e4f5ff",blue20:"#c7ebff",blue30:"#a6dcff",blue40:"#83c9ff",blue50:"#60b4ff",blue60:"#3d9df3",blue70:"#1c83e1",blue80:"#0068c9",blue90:"#0054a3",blue100:"#004280",purple10:"#f5ebff",purple20:"#ebd6ff",purple30:"#dbbbff",purple40:"#c89dff",purple50:"#b27eff",purple60:"#9a5dff",purple70:"#803df5",purple80:"#6d3fc0",purple90:"#583f84",purple100:"#3f3163"},iconSizes={xs:"0.5rem",sm:"0.75rem",md:"0.9rem",base:"1rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.8rem",threeXL:"2.3rem"},radii={md:"0.25rem",default:"0.5rem",xl:"0.75rem",xxl:"1rem",xxxl:"1.25rem",full:"9999px"},sizes={full:"100%",headerHeight:"3.75rem",fullScreenHeaderHeight:"2.875rem",sidebarTopSpace:"6rem",toastWidth:"21rem",contentMaxWidth:"46rem",maxChartTooltipWidth:"30rem",checkbox:"1rem",borderWidth:"1px",smallElementHeight:"1.5rem",minElementHeight:"2.5rem",largestElementHeight:"4.25rem",smallLogoHeight:"1.25rem",defaultLogoHeight:"1.5rem",largeLogoHeight:"2rem",sliderThumb:"0.75rem",wideSidePadding:"5rem",headerDecorationHeight:"0.125rem",appRunningMen:"1.6rem",appStatusMaxWidth:"20rem",spinnerSize:"1.375rem",spinnerThickness:"0.2rem",tabHeight:"2.5rem",minPopupWidth:"20rem",maxTooltipHeight:"18.75rem",chatAvatarSize:"2rem",clearIconSize:"1.5em",numberInputControlsWidth:"2rem",emptyDropdownHeight:"5.625rem",dropdownItemHeight:"2.5rem",maxDropdownHeight:"18.75rem",appDefaultBottomPadding:"3.5rem"},spacing$1={px:"1px",none:"0",threeXS:"0.125rem",twoXS:"0.25rem",xs:"0.375rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.25rem",twoXL:"1.5rem",threeXL:"2rem",fourXL:"4rem"},fonts={sansSerif:'"Source Sans Pro", sans-serif',monospace:'"Source Code Pro", monospace',serif:'"Source Serif Pro", serif',materialIcons:"Material Symbols Rounded"},genericFonts={bodyFont:fonts.sansSerif,codeFont:fonts.monospace,headingFont:fonts.sansSerif,iconFont:fonts.materialIcons},fontSizeTwoSmall=12,fontSizeSmall=14,fontSizeMedium=16,fontSizes={twoSm:`${fontSizeTwoSmall}px`,sm:`${fontSizeSmall}px`,md:"1rem",mdLg:"1.125rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.75rem",threeXL:"2.25rem",fourXL:"2.75rem",twoSmPx:fontSizeTwoSmall,smPx:fontSizeSmall,mdPx:fontSizeMedium},fontWeights={normal:400,bold:600,extrabold:700},lineHeights={none:1,headings:1.2,tight:1.25,inputWidget:1.4,small:1.5,base:1.6,menuItem:2},sidebar=100,menuButton=sidebar+10,balloons=1e6,header=balloons-10,bottom=sidebar-1,sidebarMobile=balloons-5,popupMenu=balloons+40,fullscreenWrapper=balloons+50,vegaTooltips=fullscreenWrapper+10,tablePortal=fullscreenWrapper+60,cacheSpinner=sidebar+1,toast=bottom+1,zIndices={hide:-1,auto:"auto",base:0,priority:1,sidebar,menuButton,balloons,header,sidebarMobile,popupMenu,fullscreenWrapper,tablePortal,bottom,cacheSpinner,toast,vegaTooltips},requiredThemeColors={bgColor:colors.white,secondaryBg:colors.gray20,bodyText:colors.gray85,warning:colors.yellow110,warningBg:transparentize(colors.yellow80,.8),success:colors.green100,successBg:transparentize(colors.green80,.8),infoBg:transparentize(colors.blue70,.9),info:colors.blue100,danger:colors.red100,dangerBg:transparentize(colors.red70,.8),primary:colors.red70,disabled:colors.gray40,lightestGray:colors.gray20,lightGray:colors.gray30,gray:colors.gray60,darkGray:colors.gray70,red:colors.red80,blue:colors.blue80,green:colors.green80,yellow:colors.yellow80},optionalThemeColors={},themeColors={...colors,...requiredThemeColors,...optionalThemeColors},emotionBaseTheme={inSidebar:!1,breakpoints,colors:createEmotionColors(themeColors),fonts,fontSizes,fontWeights,genericFonts,iconSizes,lineHeights,radii,sizes,spacing:spacing$1,zIndices},genericColors$1={...colors,navTextColor:colors.gray80,navActiveTextColor:colors.gray90,navIconColor:colors.gray60,sidebarControlColor:colors.gray70,warning:"#926C05",warningBg:transparentize(colors.yellow70,.9),successBg:transparentize(colors.green70,.9),danger:colors.red100,dangerBg:transparentize(colors.red80,.91)},emotionLightTheme={...emotionBaseTheme,inSidebar:!1,colors:createEmotionColors({...emotionBaseTheme.colors,...genericColors$1})},genericColors={...colors,bgColor:colors.gray100,secondaryBg:colors.gray90,bodyText:colors.gray10,navTextColor:colors.gray50,navActiveTextColor:colors.gray10,navIconColor:colors.gray70,sidebarControlColor:colors.gray10,warning:colors.yellow20,warningBg:transparentize(colors.yellow70,.8),success:colors.green10,successBg:transparentize(colors.green60,.8),info:colors.blue20,infoBg:transparentize(colors.blue60,.8),danger:colors.red20,dangerBg:transparentize(colors.red60,.8),primary:colors.red70,disabled:colors.gray70},emotionDarkTheme={...emotionBaseTheme,inSidebar:!1,colors:createEmotionColors({...emotionBaseTheme.colors,...genericColors})},createBaseThemePrimitives=(tt,nt)=>{const{colors:et,genericFonts:rt}=nt;return{...tt,primaryFontFamily:rt.bodyFont,primary100:et.primary,primary200:et.primary,primary300:et.primary,primary400:et.primary,primary500:et.primary,primary600:et.primary,primary700:et.primary,mono100:et.bgColor,mono200:et.secondaryBg,mono300:et.lightGray,mono400:et.lightGray,mono500:et.gray,mono600:et.fadedText40,mono700:et.gray,mono800:et.bodyText,mono900:et.bodyText,mono1000:et.black}},createThemeOverrides=tt=>{const{inSidebar:nt,colors:et,genericFonts:rt,fontSizes:ot,lineHeights:at,radii:st}=tt,ut={fontFamily:rt.bodyFont,fontSize:ot.md,fontSizeSm:ot.sm,fontWeight:"normal",lineHeight:at.base,lineHeightTight:at.tight},ct=et.widgetBackgroundColor?et.widgetBackgroundColor:et.secondaryBg,pt=nt?et.secondaryBg:et.bgColor,dt=nt?et.bgColor:et.secondaryBg;return{borders:{radius100:st.default,radius200:st.default,radius300:st.default,radius400:st.default,radius500:st.default,useRoundedCorners:!0,buttonBorderRadiusMini:st.md,buttonBorderRadius:st.default,checkboxBorderRadius:st.md,inputBorderRadiusMini:st.md,inputBorderRadius:st.default,popoverBorderRadius:st.default,surfaceBorderRadius:st.default,tagBorderRadius:st.md},typography:{font100:{},font150:{...ut},font200:{},font250:{},font300:{...ut},font350:{...ut},font400:{...ut},font450:{...ut},font460:{...ut},font470:{...ut},font500:{...ut},font600:{},LabelXSmall:{...ut},LabelSmall:{...ut},LabelMedium:{...ut},LabelLarge:{...ut},ParagraphSmall:{...ut}},colors:{white:et.white,black:et.black,primary:et.primary,primaryA:et.primary,backgroundPrimary:et.bgColor,backgroundSecondary:ct,backgroundTertiary:et.bgColor,borderOpaque:et.darkenedBgMix25,accent:transparentize(et.primary,.5),tagPrimarySolidBackground:et.primary,tagPrimaryFontDisabled:et.fadedText40,tagPrimaryOutlinedDisabled:et.transparent,borderSelected:et.primary,contentPrimary:et.bodyText,inputPlaceholder:et.fadedText60,tickFillDisabled:et.fadedText40,tickMarkFill:et.lightestGray,tickFillSelected:et.primary,datepickerBackground:pt,calendarBackground:pt,calendarForeground:et.bodyText,calendarDayForegroundPseudoSelected:et.bodyText,calendarHeaderBackground:dt,calendarHeaderBackgroundActive:dt,calendarHeaderForeground:et.bodyText,calendarHeaderForegroundDisabled:et.gray40,calendarDayBackgroundSelected:et.primary,calendarDayBackgroundSelectedHighlighted:et.primary,calendarDayForegroundSelected:et.white,calendarDayForegroundSelectedHighlighted:et.white,calendarDayForegroundPseudoSelectedHighlighted:et.bodyText,menuFontHighlighted:et.bodyText,menuFontSelected:et.bodyText,modalCloseColor:et.bodyText,notificationInfoBackground:et.infoBg,notificationInfoText:et.info,notificationPositiveBackground:et.successBg,notificationPositiveText:et.success,notificationWarningBackground:et.warningBg,notificationWarningText:et.warning,notificationNegativeBackground:et.dangerBg,notificationNegativeText:et.danger,progressbarTrackFill:ct,tickFill:et.lightenedBg05,tickMarkFillDisabled:et.lightenedBg05,menuFill:pt,buttonDisabledFill:et.lightenedBg05,tickFillHover:ct,inputFillDisabled:ct,inputFillActive:ct,toggleTrackFillDisabled:ct,tickFillActive:ct,sliderTrackFillDisabled:ct,inputBorder:et.widgetBorderColor||ct,inputFill:ct,inputEnhanceFill:ct,inputEnhancerFillDisabled:ct,buttonDisabledSpinnerBackground:et.gray40,toggleTrackFill:et.gray40,sliderTrackFill:et.gray40,sliderHandleInnerFill:et.gray40,sliderHandleInnerFillDisabled:et.gray40}}},createBaseUiTheme=(tt,nt=primitives)=>createLightTheme(createBaseThemePrimitives(nt,tt),createThemeOverrides(tt)),baseuiLightTheme=createBaseUiTheme(emotionLightTheme,primitives),baseuiDarkTheme=createBaseUiTheme(emotionDarkTheme,primitives$1),globalStyles=tt=>css$2("html{font-size:",tt.fontSizes.mdPx,"px;}@media print{html{height:100%;print-color-adjust:exact;-webkit-print-color-adjust:exact;}}*,*::before,*::after{box-sizing:border-box;}body{margin:0;font-family:",tt.genericFonts.bodyFont,";font-weight:",tt.fontWeights.normal,";line-height:",tt.lineHeights.base,";color:",tt.colors.bodyText,";background-color:",tt.colors.bgColor,";-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:",transparentize(tt.colors.black,1),';-webkit-font-smoothing:auto;}body.embedded{overflow:hidden;}body.embedded:hover{overflow:auto;}[tabindex="-1"]:focus:not(:focus-visible){outline:0 !important;}p,ol,ul,dl{margin:0 0 1rem 0;padding:0;font-size:1rem;font-weight:400;}ol ol,ul ul,ol ul,ul ol{margin-bottom:0;}a:not([href]):not([class]){&,&:hover{color:inherit;text-decoration:none;}}img,svg{vertical-align:middle;}input,button,select,optgroup,textarea{margin:0;font-family:inherit;line-height:inherit;font-size:inherit;}button,input{overflow:visible;}button,[role="button"]{&:not(:disabled){cursor:pointer;}}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button;}[hidden]{display:none !important;}::-webkit-scrollbar{background:transparent;border-radius:100px;height:6px;width:6px;}::-webkit-scrollbar:active{background:',tt.colors.fadedText10,";}:hover::-webkit-scrollbar-thumb:vertical,:hover::-webkit-scrollbar-thumb:horizontal{background:",tt.colors.fadedText40,";border-radius:100px;}"),baseTheme={name:"base",emotion:emotionBaseTheme,basewebTheme:baseuiLightTheme,primitives},darkTheme={name:"Dark",emotion:emotionDarkTheme,basewebTheme:baseuiDarkTheme,primitives:primitives$1},lightTheme={name:"Light",emotion:emotionLightTheme,basewebTheme:baseuiLightTheme,primitives},UPPERCASE=/[\p{Lu}]/u,LOWERCASE=/[\p{Ll}]/u,LEADING_CAPITAL=/^[\p{Lu}](?![\p{Lu}])/gu,IDENTIFIER=/([\p{Alpha}\p{N}_]|$)/u,SEPARATORS=/[_.\- ]+/,LEADING_SEPARATORS=new RegExp("^"+SEPARATORS.source),SEPARATORS_AND_IDENTIFIER=new RegExp(SEPARATORS.source+IDENTIFIER.source,"gu"),NUMBERS_AND_IDENTIFIER=new RegExp("\\d+"+IDENTIFIER.source,"gu"),preserveCamelCase=(tt,nt,et,rt)=>{let ot=!1,at=!1,st=!1,ut=!1;for(let ct=0;ct<tt.length;ct++){const pt=tt[ct];ut=ct>2?tt[ct-3]==="-":!0,ot&&UPPERCASE.test(pt)?(tt=tt.slice(0,ct)+"-"+tt.slice(ct),ot=!1,st=at,at=!0,ct++):at&&st&&LOWERCASE.test(pt)&&(!ut||rt)?(tt=tt.slice(0,ct-1)+"-"+tt.slice(ct-1),st=at,at=!1,ot=!0):(ot=nt(pt)===pt&&et(pt)!==pt,st=at,at=et(pt)===pt&&nt(pt)!==pt)}return tt},preserveConsecutiveUppercase=(tt,nt)=>(LEADING_CAPITAL.lastIndex=0,tt.replace(LEADING_CAPITAL,et=>nt(et))),postProcess=(tt,nt)=>(SEPARATORS_AND_IDENTIFIER.lastIndex=0,NUMBERS_AND_IDENTIFIER.lastIndex=0,tt.replace(SEPARATORS_AND_IDENTIFIER,(et,rt)=>nt(rt)).replace(NUMBERS_AND_IDENTIFIER,et=>nt(et)));function camelCase(tt,nt){if(!(typeof tt=="string"||Array.isArray(tt)))throw new TypeError("Expected the input to be `string | string[]`");if(nt={pascalCase:!1,preserveConsecutiveUppercase:!1,...nt},Array.isArray(tt)?tt=tt.map(at=>at.trim()).filter(at=>at.length).join("-"):tt=tt.trim(),tt.length===0)return"";const et=nt.locale===!1?at=>at.toLowerCase():at=>at.toLocaleLowerCase(nt.locale),rt=nt.locale===!1?at=>at.toUpperCase():at=>at.toLocaleUpperCase(nt.locale);return tt.length===1?SEPARATORS.test(tt)?"":nt.pascalCase?rt(tt):et(tt):(tt!==et(tt)&&(tt=preserveCamelCase(tt,et,rt,nt.preserveConsecutiveUppercase)),tt=tt.replace(LEADING_SEPARATORS,""),tt=nt.preserveConsecutiveUppercase?preserveConsecutiveUppercase(tt,et):et(tt),nt.pascalCase&&(tt=rt(tt.charAt(0))+tt.slice(1)),postProcess(tt,rt))}var ListCache$3=_ListCache;function stackClear$2(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$2;function stackDelete$2(tt){var nt=this.__data__,et=nt.delete(tt);return this.size=nt.size,et}var _stackDelete=stackDelete$2;function stackGet$2(tt){return this.__data__.get(tt)}var _stackGet=stackGet$2;function stackHas$2(tt){return this.__data__.has(tt)}var _stackHas=stackHas$2,ListCache$2=_ListCache,Map$3=_Map,MapCache$2=_MapCache,LARGE_ARRAY_SIZE$2=200;function stackSet$2(tt,nt){var et=this.__data__;if(et instanceof ListCache$2){var rt=et.__data__;if(!Map$3||rt.length<LARGE_ARRAY_SIZE$2-1)return rt.push([tt,nt]),this.size=++et.size,this;et=this.__data__=new MapCache$2(rt)}return et.set(tt,nt),this.size=et.size,this}var _stackSet=stackSet$2,ListCache$1=_ListCache,stackClear$1=_stackClear,stackDelete$1=_stackDelete,stackGet$1=_stackGet,stackHas$1=_stackHas,stackSet$1=_stackSet;function Stack$5(tt){var nt=this.__data__=new ListCache$1(tt);this.size=nt.size}Stack$5.prototype.clear=stackClear$1;Stack$5.prototype.delete=stackDelete$1;Stack$5.prototype.get=stackGet$1;Stack$5.prototype.has=stackHas$1;Stack$5.prototype.set=stackSet$1;var _Stack=Stack$5;function arrayEach$2(tt,nt){for(var et=-1,rt=tt==null?0:tt.length;++et<rt&&nt(tt[et],et,tt)!==!1;);return tt}var _arrayEach=arrayEach$2,defineProperty$2=_defineProperty$G;function baseAssignValue$6(tt,nt,et){nt=="__proto__"&&defineProperty$2?defineProperty$2(tt,nt,{configurable:!0,enumerable:!0,value:et,writable:!0}):tt[nt]=et}var _baseAssignValue=baseAssignValue$6,baseAssignValue$5=_baseAssignValue,eq$3=eq_1,objectProto$r=Object.prototype,hasOwnProperty$o=objectProto$r.hasOwnProperty;function assignValue$4(tt,nt,et){var rt=tt[nt];(!(hasOwnProperty$o.call(tt,nt)&&eq$3(rt,et))||et===void 0&&!(nt in tt))&&baseAssignValue$5(tt,nt,et)}var _assignValue=assignValue$4,assignValue$3=_assignValue,baseAssignValue$4=_baseAssignValue;function copyObject$7(tt,nt,et,rt){var ot=!et;et||(et={});for(var at=-1,st=nt.length;++at<st;){var ut=nt[at],ct=rt?rt(et[ut],tt[ut],ut,et,tt):void 0;ct===void 0&&(ct=tt[ut]),ot?baseAssignValue$4(et,ut,ct):assignValue$3(et,ut,ct)}return et}var _copyObject=copyObject$7,baseGetTag$5=_baseGetTag,isObjectLike$9=isObjectLike_1,argsTag$6="[object Arguments]";function baseIsArguments$2(tt){return isObjectLike$9(tt)&&baseGetTag$5(tt)==argsTag$6}var _baseIsArguments=baseIsArguments$2,baseIsArguments$1=_baseIsArguments,isObjectLike$8=isObjectLike_1,objectProto$q=Object.prototype,hasOwnProperty$n=objectProto$q.hasOwnProperty,propertyIsEnumerable$3=objectProto$q.propertyIsEnumerable,isArguments$5=baseIsArguments$1(function(){return arguments}())?baseIsArguments$1:function(tt){return isObjectLike$8(tt)&&hasOwnProperty$n.call(tt,"callee")&&!propertyIsEnumerable$3.call(tt,"callee")},isArguments_1=isArguments$5,isBuffer$8={exports:{}};function stubFalse$1(){return!1}var stubFalse_1=stubFalse$1;isBuffer$8.exports;(function(tt,nt){var et=_root,rt=stubFalse_1,ot=nt&&!nt.nodeType&&nt,at=ot&&!0&&tt&&!tt.nodeType&&tt,st=at&&at.exports===ot,ut=st?et.Buffer:void 0,ct=ut?ut.isBuffer:void 0,pt=ct||rt;tt.exports=pt})(isBuffer$8,isBuffer$8.exports);var isBufferExports=isBuffer$8.exports,baseGetTag$4=_baseGetTag,isLength$2=isLength_1,isObjectLike$7=isObjectLike_1,argsTag$5="[object Arguments]",arrayTag$4="[object Array]",boolTag$5="[object Boolean]",dateTag$5="[object Date]",errorTag$4="[object Error]",funcTag$3="[object Function]",mapTag$9="[object Map]",numberTag$5="[object Number]",objectTag$8="[object Object]",regexpTag$5="[object RegExp]",setTag$9="[object Set]",stringTag$6="[object String]",weakMapTag$4="[object WeakMap]",arrayBufferTag$5="[object ArrayBuffer]",dataViewTag$7="[object DataView]",float32Tag$3="[object Float32Array]",float64Tag$3="[object Float64Array]",int8Tag$3="[object Int8Array]",int16Tag$3="[object Int16Array]",int32Tag$3="[object Int32Array]",uint8Tag$3="[object Uint8Array]",uint8ClampedTag$3="[object Uint8ClampedArray]",uint16Tag$3="[object Uint16Array]",uint32Tag$3="[object Uint32Array]",typedArrayTags$1={};typedArrayTags$1[float32Tag$3]=typedArrayTags$1[float64Tag$3]=typedArrayTags$1[int8Tag$3]=typedArrayTags$1[int16Tag$3]=typedArrayTags$1[int32Tag$3]=typedArrayTags$1[uint8Tag$3]=typedArrayTags$1[uint8ClampedTag$3]=typedArrayTags$1[uint16Tag$3]=typedArrayTags$1[uint32Tag$3]=!0;typedArrayTags$1[argsTag$5]=typedArrayTags$1[arrayTag$4]=typedArrayTags$1[arrayBufferTag$5]=typedArrayTags$1[boolTag$5]=typedArrayTags$1[dataViewTag$7]=typedArrayTags$1[dateTag$5]=typedArrayTags$1[errorTag$4]=typedArrayTags$1[funcTag$3]=typedArrayTags$1[mapTag$9]=typedArrayTags$1[numberTag$5]=typedArrayTags$1[objectTag$8]=typedArrayTags$1[regexpTag$5]=typedArrayTags$1[setTag$9]=typedArrayTags$1[stringTag$6]=typedArrayTags$1[weakMapTag$4]=!1;function baseIsTypedArray$2(tt){return isObjectLike$7(tt)&&isLength$2(tt.length)&&!!typedArrayTags$1[baseGetTag$4(tt)]}var _baseIsTypedArray=baseIsTypedArray$2;function baseUnary$6(tt){return function(nt){return tt(nt)}}var _baseUnary=baseUnary$6,_nodeUtil={exports:{}};_nodeUtil.exports;(function(tt,nt){var et=_freeGlobal,rt=nt&&!nt.nodeType&&nt,ot=rt&&!0&&tt&&!tt.nodeType&&tt,at=ot&&ot.exports===rt,st=at&&et.process,ut=function(){try{var ct=ot&&ot.require&&ot.require("util").types;return ct||st&&st.binding&&st.binding("util")}catch{}}();tt.exports=ut})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray$1=_baseIsTypedArray,baseUnary$5=_baseUnary,nodeUtil$3=_nodeUtilExports,nodeIsTypedArray$1=nodeUtil$3&&nodeUtil$3.isTypedArray,isTypedArray$5=nodeIsTypedArray$1?baseUnary$5(nodeIsTypedArray$1):baseIsTypedArray$1,isTypedArray_1=isTypedArray$5,baseTimes$1=_baseTimes,isArguments$4=isArguments_1,isArray$f=isArray_1,isBuffer$7=isBufferExports,isIndex$3=_isIndex,isTypedArray$4=isTypedArray_1,objectProto$p=Object.prototype,hasOwnProperty$m=objectProto$p.hasOwnProperty;function arrayLikeKeys$3(tt,nt){var et=isArray$f(tt),rt=!et&&isArguments$4(tt),ot=!et&&!rt&&isBuffer$7(tt),at=!et&&!rt&&!ot&&isTypedArray$4(tt),st=et||rt||ot||at,ut=st?baseTimes$1(tt.length,String):[],ct=ut.length;for(var pt in tt)(nt||hasOwnProperty$m.call(tt,pt))&&!(st&&(pt=="length"||ot&&(pt=="offset"||pt=="parent")||at&&(pt=="buffer"||pt=="byteLength"||pt=="byteOffset")||isIndex$3(pt,ct)))&&ut.push(pt);return ut}var _arrayLikeKeys=arrayLikeKeys$3,objectProto$o=Object.prototype;function isPrototype$4(tt){var nt=tt&&tt.constructor,et=typeof nt=="function"&&nt.prototype||objectProto$o;return tt===et}var _isPrototype=isPrototype$4;function overArg$3(tt,nt){return function(et){return tt(nt(et))}}var _overArg=overArg$3,overArg$2=_overArg,nativeKeys$2=overArg$2(Object.keys,Object),_nativeKeys=nativeKeys$2,isPrototype$3=_isPrototype,nativeKeys$1=_nativeKeys,objectProto$n=Object.prototype,hasOwnProperty$l=objectProto$n.hasOwnProperty;function baseKeys$2(tt){if(!isPrototype$3(tt))return nativeKeys$1(tt);var nt=[];for(var et in Object(tt))hasOwnProperty$l.call(tt,et)&&et!="constructor"&&nt.push(et);return nt}var _baseKeys=baseKeys$2,arrayLikeKeys$2=_arrayLikeKeys,baseKeys$1=_baseKeys,isArrayLike$5=isArrayLike_1;function keys$9(tt){return isArrayLike$5(tt)?arrayLikeKeys$2(tt):baseKeys$1(tt)}var keys_1=keys$9,copyObject$6=_copyObject,keys$8=keys_1;function baseAssign$1(tt,nt){return tt&&copyObject$6(nt,keys$8(nt),tt)}var _baseAssign=baseAssign$1;function nativeKeysIn$2(tt){var nt=[];if(tt!=null)for(var et in Object(tt))nt.push(et);return nt}var _nativeKeysIn=nativeKeysIn$2,isObject$a=isObject_1,isPrototype$2=_isPrototype,nativeKeysIn$1=_nativeKeysIn,objectProto$m=Object.prototype,hasOwnProperty$k=objectProto$m.hasOwnProperty;function baseKeysIn$2(tt){if(!isObject$a(tt))return nativeKeysIn$1(tt);var nt=isPrototype$2(tt),et=[];for(var rt in tt)rt=="constructor"&&(nt||!hasOwnProperty$k.call(tt,rt))||et.push(rt);return et}var _baseKeysIn=baseKeysIn$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeysIn$1=_baseKeysIn,isArrayLike$4=isArrayLike_1;function keysIn$6(tt){return isArrayLike$4(tt)?arrayLikeKeys$1(tt,!0):baseKeysIn$1(tt)}var keysIn_1=keysIn$6,copyObject$5=_copyObject,keysIn$5=keysIn_1;function baseAssignIn$1(tt,nt){return tt&&copyObject$5(nt,keysIn$5(nt),tt)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(tt,nt){var et=_root,rt=nt&&!nt.nodeType&&nt,ot=rt&&!0&&tt&&!tt.nodeType&&tt,at=ot&&ot.exports===rt,st=at?et.Buffer:void 0,ut=st?st.allocUnsafe:void 0;function ct(pt,dt){if(dt)return pt.slice();var ft=pt.length,bt=ut?ut(ft):new pt.constructor(ft);return pt.copy(bt),bt}tt.exports=ct})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;function copyArray$4(tt,nt){var et=-1,rt=tt.length;for(nt||(nt=Array(rt));++et<rt;)nt[et]=tt[et];return nt}var _copyArray=copyArray$4;function stubArray$3(){return[]}var stubArray_1=stubArray$3,arrayFilter$1=_arrayFilter,stubArray$2=stubArray_1,objectProto$l=Object.prototype,propertyIsEnumerable$2=objectProto$l.propertyIsEnumerable,nativeGetSymbols$2=Object.getOwnPropertySymbols,getSymbols$4=nativeGetSymbols$2?function(tt){return tt==null?[]:(tt=Object(tt),arrayFilter$1(nativeGetSymbols$2(tt),function(nt){return propertyIsEnumerable$2.call(tt,nt)}))}:stubArray$2,_getSymbols=getSymbols$4,copyObject$4=_copyObject,getSymbols$3=_getSymbols;function copySymbols$1(tt,nt){return copyObject$4(tt,getSymbols$3(tt),nt)}var _copySymbols=copySymbols$1;function arrayPush$4(tt,nt){for(var et=-1,rt=nt.length,ot=tt.length;++et<rt;)tt[ot+et]=nt[et];return tt}var _arrayPush=arrayPush$4,overArg$1=_overArg,getPrototype$4=overArg$1(Object.getPrototypeOf,Object),_getPrototype=getPrototype$4,arrayPush$3=_arrayPush,getPrototype$3=_getPrototype,getSymbols$2=_getSymbols,stubArray$1=stubArray_1,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols$1?function(tt){for(var nt=[];tt;)arrayPush$3(nt,getSymbols$2(tt)),tt=getPrototype$3(tt);return nt}:stubArray$1,_getSymbolsIn=getSymbolsIn$2,copyObject$3=_copyObject,getSymbolsIn$1=_getSymbolsIn;function copySymbolsIn$1(tt,nt){return copyObject$3(tt,getSymbolsIn$1(tt),nt)}var _copySymbolsIn=copySymbolsIn$1,arrayPush$2=_arrayPush,isArray$e=isArray_1;function baseGetAllKeys$3(tt,nt,et){var rt=nt(tt);return isArray$e(tt)?rt:arrayPush$2(rt,et(tt))}var _baseGetAllKeys=baseGetAllKeys$3,baseGetAllKeys$2=_baseGetAllKeys,getSymbols$1=_getSymbols,keys$7=keys_1;function getAllKeys$3(tt){return baseGetAllKeys$2(tt,keys$7,getSymbols$1)}var _getAllKeys=getAllKeys$3,baseGetAllKeys$1=_baseGetAllKeys,getSymbolsIn=_getSymbolsIn,keysIn$4=keysIn_1;function getAllKeysIn$2(tt){return baseGetAllKeys$1(tt,keysIn$4,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$2,getNative$4=_getNative,root$b=_root,DataView$3=getNative$4(root$b,"DataView"),_DataView=DataView$3,getNative$3=_getNative,root$a=_root,Promise$3=getNative$3(root$a,"Promise"),_Promise=Promise$3,getNative$2=_getNative,root$9=_root,Set$3=getNative$2(root$9,"Set"),_Set=Set$3,getNative$1=_getNative,root$8=_root,WeakMap$3=getNative$1(root$8,"WeakMap"),_WeakMap=WeakMap$3,DataView$2=_DataView,Map$2=_Map,Promise$2=_Promise,Set$2=_Set,WeakMap$2=_WeakMap,baseGetTag$3=_baseGetTag,toSource$1=_toSource,mapTag$8="[object Map]",objectTag$7="[object Object]",promiseTag$1="[object Promise]",setTag$8="[object Set]",weakMapTag$3="[object WeakMap]",dataViewTag$6="[object DataView]",dataViewCtorString$1=toSource$1(DataView$2),mapCtorString$1=toSource$1(Map$2),promiseCtorString$1=toSource$1(Promise$2),setCtorString$1=toSource$1(Set$2),weakMapCtorString$1=toSource$1(WeakMap$2),getTag$6=baseGetTag$3;(DataView$2&&getTag$6(new DataView$2(new ArrayBuffer(1)))!=dataViewTag$6||Map$2&&getTag$6(new Map$2)!=mapTag$8||Promise$2&&getTag$6(Promise$2.resolve())!=promiseTag$1||Set$2&&getTag$6(new Set$2)!=setTag$8||WeakMap$2&&getTag$6(new WeakMap$2)!=weakMapTag$3)&&(getTag$6=function(tt){var nt=baseGetTag$3(tt),et=nt==objectTag$7?tt.constructor:void 0,rt=et?toSource$1(et):"";if(rt)switch(rt){case dataViewCtorString$1:return dataViewTag$6;case mapCtorString$1:return mapTag$8;case promiseCtorString$1:return promiseTag$1;case setCtorString$1:return setTag$8;case weakMapCtorString$1:return weakMapTag$3}return nt});var _getTag=getTag$6,objectProto$k=Object.prototype,hasOwnProperty$j=objectProto$k.hasOwnProperty;function initCloneArray$1(tt){var nt=tt.length,et=new tt.constructor(nt);return nt&&typeof tt[0]=="string"&&hasOwnProperty$j.call(tt,"index")&&(et.index=tt.index,et.input=tt.input),et}var _initCloneArray=initCloneArray$1,root$7=_root,Uint8Array$4=root$7.Uint8Array,_Uint8Array=Uint8Array$4,Uint8Array$3=_Uint8Array;function cloneArrayBuffer$4(tt){var nt=new tt.constructor(tt.byteLength);return new Uint8Array$3(nt).set(new Uint8Array$3(tt)),nt}var _cloneArrayBuffer=cloneArrayBuffer$4,cloneArrayBuffer$3=_cloneArrayBuffer;function cloneDataView$1(tt,nt){var et=nt?cloneArrayBuffer$3(tt.buffer):tt.buffer;return new tt.constructor(et,tt.byteOffset,tt.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(tt){var nt=new tt.constructor(tt.source,reFlags.exec(tt));return nt.lastIndex=tt.lastIndex,nt}var _cloneRegExp=cloneRegExp$1,Symbol$5=_Symbol,symbolProto$3=Symbol$5?Symbol$5.prototype:void 0,symbolValueOf$2=symbolProto$3?symbolProto$3.valueOf:void 0;function cloneSymbol$1(tt){return symbolValueOf$2?Object(symbolValueOf$2.call(tt)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneTypedArray$3(tt,nt){var et=nt?cloneArrayBuffer$2(tt.buffer):tt.buffer;return new tt.constructor(et,tt.byteOffset,tt.length)}var _cloneTypedArray=cloneTypedArray$3,cloneArrayBuffer$1=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=_cloneSymbol,cloneTypedArray$2=_cloneTypedArray,boolTag$4="[object Boolean]",dateTag$4="[object Date]",mapTag$7="[object Map]",numberTag$4="[object Number]",regexpTag$4="[object RegExp]",setTag$7="[object Set]",stringTag$5="[object String]",symbolTag$5="[object Symbol]",arrayBufferTag$4="[object ArrayBuffer]",dataViewTag$5="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]";function initCloneByTag$1(tt,nt,et){var rt=tt.constructor;switch(nt){case arrayBufferTag$4:return cloneArrayBuffer$1(tt);case boolTag$4:case dateTag$4:return new rt(+tt);case dataViewTag$5:return cloneDataView(tt,et);case float32Tag$2:case float64Tag$2:case int8Tag$2:case int16Tag$2:case int32Tag$2:case uint8Tag$2:case uint8ClampedTag$2:case uint16Tag$2:case uint32Tag$2:return cloneTypedArray$2(tt,et);case mapTag$7:return new rt;case numberTag$4:case stringTag$5:return new rt(tt);case regexpTag$4:return cloneRegExp(tt);case setTag$7:return new rt;case symbolTag$5:return cloneSymbol(tt)}}var _initCloneByTag=initCloneByTag$1,isObject$9=isObject_1,objectCreate$1=Object.create,baseCreate$2=function(){function tt(){}return function(nt){if(!isObject$9(nt))return{};if(objectCreate$1)return objectCreate$1(nt);tt.prototype=nt;var et=new tt;return tt.prototype=void 0,et}}(),_baseCreate=baseCreate$2,baseCreate$1=_baseCreate,getPrototype$2=_getPrototype,isPrototype$1=_isPrototype;function initCloneObject$3(tt){return typeof tt.constructor=="function"&&!isPrototype$1(tt)?baseCreate$1(getPrototype$2(tt)):{}}var _initCloneObject=initCloneObject$3,getTag$5=_getTag,isObjectLike$6=isObjectLike_1,mapTag$6="[object Map]";function baseIsMap$1(tt){return isObjectLike$6(tt)&&getTag$5(tt)==mapTag$6}var _baseIsMap=baseIsMap$1,baseIsMap=_baseIsMap,baseUnary$4=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsMap=nodeUtil$2&&nodeUtil$2.isMap,isMap$1=nodeIsMap?baseUnary$4(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$4=_getTag,isObjectLike$5=isObjectLike_1,setTag$6="[object Set]";function baseIsSet$1(tt){return isObjectLike$5(tt)&&getTag$4(tt)==setTag$6}var _baseIsSet=baseIsSet$1,baseIsSet=_baseIsSet,baseUnary$3=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet$1=nodeIsSet?baseUnary$3(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack$4=_Stack,arrayEach$1=_arrayEach,assignValue$2=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer$2=_cloneBufferExports,copyArray$3=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys$2=_getAllKeys,getAllKeysIn$1=_getAllKeysIn,getTag$3=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject$2=_initCloneObject,isArray$d=isArray_1,isBuffer$6=isBufferExports,isMap=isMap_1,isObject$8=isObject_1,isSet=isSet_1,keys$6=keys_1,keysIn$3=keysIn_1,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$4="[object Arguments]",arrayTag$3="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$3="[object Error]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$6="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$4="[object String]",symbolTag$4="[object Symbol]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$4]=cloneableTags[arrayTag$3]=cloneableTags[arrayBufferTag$3]=cloneableTags[dataViewTag$4]=cloneableTags[boolTag$3]=cloneableTags[dateTag$3]=cloneableTags[float32Tag$1]=cloneableTags[float64Tag$1]=cloneableTags[int8Tag$1]=cloneableTags[int16Tag$1]=cloneableTags[int32Tag$1]=cloneableTags[mapTag$5]=cloneableTags[numberTag$3]=cloneableTags[objectTag$6]=cloneableTags[regexpTag$3]=cloneableTags[setTag$5]=cloneableTags[stringTag$4]=cloneableTags[symbolTag$4]=cloneableTags[uint8Tag$1]=cloneableTags[uint8ClampedTag$1]=cloneableTags[uint16Tag$1]=cloneableTags[uint32Tag$1]=!0;cloneableTags[errorTag$3]=cloneableTags[funcTag$2]=cloneableTags[weakMapTag$2]=!1;function baseClone$2(tt,nt,et,rt,ot,at){var st,ut=nt&CLONE_DEEP_FLAG$2,ct=nt&CLONE_FLAT_FLAG$1,pt=nt&CLONE_SYMBOLS_FLAG$2;if(et&&(st=ot?et(tt,rt,ot,at):et(tt)),st!==void 0)return st;if(!isObject$8(tt))return tt;var dt=isArray$d(tt);if(dt){if(st=initCloneArray(tt),!ut)return copyArray$3(tt,st)}else{var ft=getTag$3(tt),bt=ft==funcTag$2||ft==genTag$1;if(isBuffer$6(tt))return cloneBuffer$2(tt,ut);if(ft==objectTag$6||ft==argsTag$4||bt&&!ot){if(st=ct||bt?{}:initCloneObject$2(tt),!ut)return ct?copySymbolsIn(tt,baseAssignIn(st,tt)):copySymbols(tt,baseAssign(st,tt))}else{if(!cloneableTags[ft])return ot?tt:{};st=initCloneByTag(tt,ft,ut)}}at||(at=new Stack$4);var ht=at.get(tt);if(ht)return ht;at.set(tt,st),isSet(tt)?tt.forEach(function(Ot){st.add(baseClone$2(Ot,nt,et,Ot,tt,at))}):isMap(tt)&&tt.forEach(function(Ot,zt){st.set(zt,baseClone$2(Ot,nt,et,zt,tt,at))});var Mt=pt?ct?getAllKeysIn$1:getAllKeys$2:ct?keysIn$3:keys$6,mt=dt?void 0:Mt(tt);return arrayEach$1(mt||tt,function(Ot,zt){mt&&(zt=Ot,Ot=tt[zt]),assignValue$2(st,zt,baseClone$2(Ot,nt,et,zt,tt,at))}),st}var _baseClone=baseClone$2,baseClone$1=_baseClone,CLONE_DEEP_FLAG$1=1,CLONE_SYMBOLS_FLAG$1=4;function cloneDeep(tt){return baseClone$1(tt,CLONE_DEEP_FLAG$1|CLONE_SYMBOLS_FLAG$1)}var cloneDeep_1=cloneDeep;const cloneDeep$1=getDefaultExportFromCjs$1(cloneDeep_1);var baseAssignValue$3=_baseAssignValue,eq$2=eq_1;function assignMergeValue$3(tt,nt,et){(et!==void 0&&!eq$2(tt[nt],et)||et===void 0&&!(nt in tt))&&baseAssignValue$3(tt,nt,et)}var _assignMergeValue=assignMergeValue$3;function createBaseFor$2(tt){return function(nt,et,rt){for(var ot=-1,at=Object(nt),st=rt(nt),ut=st.length;ut--;){var ct=st[tt?ut:++ot];if(et(at[ct],ct,at)===!1)break}return nt}}var _createBaseFor=createBaseFor$2,createBaseFor$1=_createBaseFor,baseFor$3=createBaseFor$1(),_baseFor=baseFor$3,baseGetTag$2=_baseGetTag,getPrototype$1=_getPrototype,isObjectLike$4=isObjectLike_1,objectTag$5="[object Object]",funcProto$3=Function.prototype,objectProto$j=Object.prototype,funcToString$3=funcProto$3.toString,hasOwnProperty$i=objectProto$j.hasOwnProperty,objectCtorString$1=funcToString$3.call(Object);function isPlainObject$6(tt){if(!isObjectLike$4(tt)||baseGetTag$2(tt)!=objectTag$5)return!1;var nt=getPrototype$1(tt);if(nt===null)return!0;var et=hasOwnProperty$i.call(nt,"constructor")&&nt.constructor;return typeof et=="function"&&et instanceof et&&funcToString$3.call(et)==objectCtorString$1}var isPlainObject_1=isPlainObject$6;function safeGet$3(tt,nt){if(!(nt==="constructor"&&typeof tt[nt]=="function")&&nt!="__proto__")return tt[nt]}var _safeGet=safeGet$3,copyObject$2=_copyObject,keysIn$2=keysIn_1;function toPlainObject$2(tt){return copyObject$2(tt,keysIn$2(tt))}var toPlainObject_1=toPlainObject$2,assignMergeValue$2=_assignMergeValue,cloneBuffer$1=_cloneBufferExports,cloneTypedArray$1=_cloneTypedArray,copyArray$2=_copyArray,initCloneObject$1=_initCloneObject,isArguments$3=isArguments_1,isArray$c=isArray_1,isArrayLikeObject$2=isArrayLikeObject_1,isBuffer$5=isBufferExports,isFunction$3=isFunction_1,isObject$7=isObject_1,isPlainObject$5=isPlainObject_1,isTypedArray$3=isTypedArray_1,safeGet$2=_safeGet,toPlainObject$1=toPlainObject_1;function baseMergeDeep$2(tt,nt,et,rt,ot,at,st){var ut=safeGet$2(tt,et),ct=safeGet$2(nt,et),pt=st.get(ct);if(pt){assignMergeValue$2(tt,et,pt);return}var dt=at?at(ut,ct,et+"",tt,nt,st):void 0,ft=dt===void 0;if(ft){var bt=isArray$c(ct),ht=!bt&&isBuffer$5(ct),Mt=!bt&&!ht&&isTypedArray$3(ct);dt=ct,bt||ht||Mt?isArray$c(ut)?dt=ut:isArrayLikeObject$2(ut)?dt=copyArray$2(ut):ht?(ft=!1,dt=cloneBuffer$1(ct,!0)):Mt?(ft=!1,dt=cloneTypedArray$1(ct,!0)):dt=[]:isPlainObject$5(ct)||isArguments$3(ct)?(dt=ut,isArguments$3(ut)?dt=toPlainObject$1(ut):(!isObject$7(ut)||isFunction$3(ut))&&(dt=initCloneObject$1(ct))):ft=!1}ft&&(st.set(ct,dt),ot(dt,ct,rt,at,st),st.delete(ct)),assignMergeValue$2(tt,et,dt)}var _baseMergeDeep=baseMergeDeep$2,Stack$3=_Stack,assignMergeValue$1=_assignMergeValue,baseFor$2=_baseFor,baseMergeDeep$1=_baseMergeDeep,isObject$6=isObject_1,keysIn$1=keysIn_1,safeGet$1=_safeGet;function baseMerge$2(tt,nt,et,rt,ot){tt!==nt&&baseFor$2(nt,function(at,st){if(ot||(ot=new Stack$3),isObject$6(at))baseMergeDeep$1(tt,nt,st,et,baseMerge$2,rt,ot);else{var ut=rt?rt(safeGet$1(tt,st),at,st+"",tt,nt,ot):void 0;ut===void 0&&(ut=at),assignMergeValue$1(tt,st,ut)}},keysIn$1)}var _baseMerge=baseMerge$2,baseRest$3=_baseRest,isIterateeCall$2=_isIterateeCall;function createAssigner$2(tt){return baseRest$3(function(nt,et){var rt=-1,ot=et.length,at=ot>1?et[ot-1]:void 0,st=ot>2?et[2]:void 0;for(at=tt.length>3&&typeof at=="function"?(ot--,at):void 0,st&&isIterateeCall$2(et[0],et[1],st)&&(at=ot<3?void 0:at,ot=1),nt=Object(nt);++rt<ot;){var ut=et[rt];ut&&tt(nt,ut,rt,at)}return nt})}var _createAssigner=createAssigner$2,baseMerge$1=_baseMerge,createAssigner$1=_createAssigner,merge$5=createAssigner$1(function(tt,nt,et){baseMerge$1(tt,nt,et)}),merge_1$1=merge$5;const merge$6=getDefaultExportFromCjs$1(merge_1$1);var toFinite=toFinite_1;function toInteger$2(tt){var nt=toFinite(tt),et=nt%1;return nt===nt?et?nt-et:nt:0}var toInteger_1=toInteger$2,toInteger$1=toInteger_1,FUNC_ERROR_TEXT$4="Expected a function";function before$1(tt,nt){var et;if(typeof nt!="function")throw new TypeError(FUNC_ERROR_TEXT$4);return tt=toInteger$1(tt),function(){return--tt>0&&(et=nt.apply(this,arguments)),tt<=1&&(nt=void 0),et}}var before_1=before$1,before=before_1;function once(tt){return before(2,tt)}var once_1=once;const once$1=getDefaultExportFromCjs$1(once_1);function logMessage(...tt){}function logWarning(...tt){}function logError(...tt){console.error(...tt)}function logAlways(...tt){console.log(...tt)}const CACHED_THEME_VERSION=1,CACHED_THEME_BASE_KEY=`stActiveTheme-${window.location.pathname}`,LocalStore={CACHED_THEME_VERSION,CACHED_THEME_BASE_KEY,ACTIVE_THEME:`${CACHED_THEME_BASE_KEY}-v${CACHED_THEME_VERSION}`},localStorageAvailable=()=>{const tt="testData";try{const{localStorage:nt}=window;nt.setItem(tt,tt),nt.getItem(tt),nt.removeItem(tt)}catch{return!1}return!0},AUTO_THEME_NAME="Use system setting",CUSTOM_THEME_NAME="Custom Theme";function mergeTheme(tt,nt){if(nt&&isObject$h(nt)){const et=new CustomThemeConfig(nt);return createTheme(tt.name,et,tt)}return tt}const getMergedLightTheme=once$1(()=>{var tt;return mergeTheme(lightTheme,(tt=window.__streamlit)==null?void 0:tt.LIGHT_THEME)}),getMergedDarkTheme=once$1(()=>{var tt;return mergeTheme(darkTheme,(tt=window.__streamlit)==null?void 0:tt.DARK_THEME)}),getSystemTheme=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?getMergedDarkTheme():getMergedLightTheme(),createAutoTheme=()=>({...getSystemTheme(),name:AUTO_THEME_NAME}),createPresetThemes=()=>[createAutoTheme(),getMergedLightTheme(),getMergedDarkTheme()],isPresetTheme=tt=>createPresetThemes().map(et=>et.name).includes(tt.name),fontToEnum=tt=>{const nt=Object.keys(fonts).find(rt=>fonts[rt]===tt),et=CustomThemeConfig.FontFamily.SANS_SERIF;if(nt){const rt=decamelize$2(nt).toUpperCase();return rt in CustomThemeConfig.FontFamily?CustomThemeConfig.FontFamily[rt]:et}return et},fontEnumToString=tt=>tt!=null&&tt in CustomThemeConfig.FontFamily?fonts[camelCase(CustomThemeConfig.FontFamily[tt].toString())]:void 0,bgColorToBaseString=tt=>tt===void 0||getLuminance(tt)>.5?"light":"dark",isColor=tt=>{const nt=new Option().style;return nt.color=tt,nt.color!==""},createEmotionTheme=(tt,nt=baseTheme)=>{const{colors:et,genericFonts:rt}=nt.emotion,{font:ot,radii:at,fontSizes:st,...ut}=tt,ct=fontEnumToString(ot),pt=Object.entries(ut).reduce((vt,[At,St])=>(isColor(St)?vt[At]=St:isColor(`#${St}`)&&(vt[At]=`#${St}`),vt),{}),{secondaryBackgroundColor:dt,backgroundColor:ft,primaryColor:bt,textColor:ht,skeletonBackgroundColor:Mt,widgetBackgroundColor:mt,widgetBorderColor:Ot}=pt,zt={...et};bt&&(zt.primary=bt),ht&&(zt.bodyText=ht),dt&&(zt.secondaryBg=dt),ft&&(zt.bgColor=ft),mt&&(zt.widgetBackgroundColor=mt),Ot&&(zt.widgetBorderColor=Ot),Mt&&(zt.skeletonBackgroundColor=Mt);const yt={};return at&&(yt.radii={...nt.emotion.radii},at.checkboxRadius&&(yt.radii.md=addPxUnit(at.checkboxRadius)),at.baseWidgetRadius&&(yt.radii.default=addPxUnit(at.baseWidgetRadius))),st&&(yt.fontSizes={...nt.emotion.fontSizes},st.tinyFontSize&&(yt.fontSizes.twoSm=addPxUnit(st.tinyFontSize),yt.fontSizes.twoSmPx=st.tinyFontSize),st.smallFontSize&&(yt.fontSizes.sm=addPxUnit(st.smallFontSize),yt.fontSizes.smPx=st.smallFontSize),st.baseFontSize&&(yt.fontSizes.md=addPxUnit(st.baseFontSize),yt.fontSizes.mdPx=st.baseFontSize)),{...nt.emotion,colors:createEmotionColors(zt),genericFonts:{...rt,...ct&&{bodyFont:tt.bodyFont?tt.bodyFont:ct,headingFont:tt.bodyFont?tt.bodyFont:ct,codeFont:tt.codeFont?tt.codeFont:rt.codeFont}},...yt}},toThemeInput=tt=>{const{colors:nt,genericFonts:et}=tt;return{primaryColor:nt.primary,backgroundColor:nt.bgColor,secondaryBackgroundColor:nt.secondaryBg,textColor:nt.bodyText,font:fontToEnum(et.bodyFont)}},toExportedTheme=tt=>{const{colors:nt}=tt,et=toThemeInput(tt);return{primaryColor:et.primaryColor,backgroundColor:et.backgroundColor,secondaryBackgroundColor:et.secondaryBackgroundColor,textColor:et.textColor,base:bgColorToBaseString(et.backgroundColor),font:fontEnumToString(et.font),...computeDerivedColors(nt)}},completeThemeInput=(tt,nt)=>new CustomThemeConfig({...toThemeInput(nt.emotion),...tt}),createTheme=(tt,nt,et,rt=!1)=>{et?nt=completeThemeInput(nt,et):nt.base===CustomThemeConfig.BaseTheme.DARK?nt=completeThemeInput(nt,darkTheme):nt=completeThemeInput(nt,lightTheme);const ot=nt.backgroundColor,at=merge$6(cloneDeep$1(et||(getLuminance(ot)>.5?lightTheme:darkTheme)),{emotion:{inSidebar:rt}}),st=createEmotionTheme(nt,at);return{...at,name:tt,emotion:st,basewebTheme:createBaseUiTheme(st,at.primitives)}},getCachedTheme=()=>{if(!localStorageAvailable())return null;const tt=window.localStorage.getItem(LocalStore.ACTIVE_THEME);if(!tt)return null;const{name:nt,themeInput:et}=JSON.parse(tt);switch(nt){case lightTheme.name:return getMergedLightTheme();case darkTheme.name:return getMergedDarkTheme();default:return createTheme(nt,et)}},deleteOldCachedThemes=()=>{const{CACHED_THEME_VERSION:tt,CACHED_THEME_BASE_KEY:nt}=LocalStore,{localStorage:et}=window;et.removeItem("stActiveTheme"),et.removeItem(nt);for(let rt=1;rt<=tt;rt++)et.removeItem(`${nt}-v${rt}`)},setCachedTheme=tt=>{if(!localStorageAvailable()||(deleteOldCachedThemes(),isLightThemeInQueryParams()||isDarkThemeInQueryParams()))return;const nt={name:tt.name,...!isPresetTheme(tt)&&{themeInput:toThemeInput(tt.emotion)}};window.localStorage.setItem(LocalStore.ACTIVE_THEME,JSON.stringify(nt))},removeCachedTheme=()=>{localStorageAvailable()&&window.localStorage.removeItem(LocalStore.ACTIVE_THEME)},getHostSpecifiedTheme=()=>isLightThemeInQueryParams()?getMergedLightTheme():isDarkThemeInQueryParams()?getMergedDarkTheme():createAutoTheme(),getDefaultTheme=()=>{const tt=getCachedTheme();return tt&&tt.name!==AUTO_THEME_NAME?tt:getHostSpecifiedTheme()},whiteSpace$1=/\s+/;function computeSpacingStyle(tt,nt){return tt===""?"":tt.split(whiteSpace$1).map(et=>et==="0"?nt.spacing.none:et in nt.spacing?nt.spacing[et]:(logError(`Invalid spacing value: ${et}`),nt.spacing.none)).join(" ")}function addPxUnit(tt){return`${tt}px`}function blend(tt,nt){if(nt===void 0)return tt;const[et,rt,ot,at]=parseToRgba(tt);if(at===1)return tt;const[st,ut,ct,pt]=parseToRgba(nt),dt=at+pt*(1-at),ft=Math.round((at*et+pt*st*(1-at))/dt),bt=Math.round((at*rt+pt*ut*(1-at))/dt),ht=Math.round((at*ot+pt*ct*(1-at))/dt);return toHex(`rgba(${ft}, ${bt}, ${ht}, ${dt})`)}const convertRemToPx=tt=>parseFloat(tt.replace(/rem$/,""))*(parseFloat(getComputedStyle(document.documentElement).fontSize)||16),STALE_TRANSITION_PARAMS="1s ease-in 0.5s",STALE_STYLES={opacity:.33,transition:`opacity ${STALE_TRANSITION_PARAMS}`},LibContext=React$1.createContext({isFullScreen:!1,setFullScreen:()=>{},addScriptFinishedHandler:()=>{},removeScriptFinishedHandler:()=>{},activeTheme:baseTheme,setTheme:()=>{},availableThemes:[],addThemes:()=>{},onPageChange:()=>{},currentPageScriptHash:"",libConfig:{},fragmentIdsThisRun:[],locale:window.navigator.language});var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$3(function(tt){return reactPropsRegex.test(tt)||tt.charCodeAt(0)===111&&tt.charCodeAt(1)===110&&tt.charCodeAt(2)<91}),isDevelopment=!1,testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function tt(nt){return nt!=="theme"},getDefaultShouldForwardProp=function tt(nt){return typeof nt=="string"&&nt.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function tt(nt,et,rt){var ot;if(et){var at=et.shouldForwardProp;ot=nt.__emotion_forwardProp&&at?function(st){return nt.__emotion_forwardProp(st)&&at(st)}:at}return typeof ot!="function"&&rt&&(ot=nt.__emotion_forwardProp),ot},Insertion=function tt(nt){var et=nt.cache,rt=nt.serialized,ot=nt.isStringTag;return registerStyles(et,rt,ot),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(et,rt,ot)}),null},createStyled=function tt(nt,et){var rt=nt.__emotion_real===nt,ot=rt&&nt.__emotion_base||nt,at,st;et!==void 0&&(at=et.label,st=et.target);var ut=composeShouldForwardProps(nt,et,rt),ct=ut||getDefaultShouldForwardProp(ot),pt=!ct("as");return function(){var dt=arguments,ft=rt&&nt.__emotion_styles!==void 0?nt.__emotion_styles.slice(0):[];if(at!==void 0&&ft.push("label:"+at+";"),dt[0]==null||dt[0].raw===void 0)ft.push.apply(ft,dt);else{var bt=dt[0];ft.push(bt[0]);for(var ht=dt.length,Mt=1;Mt<ht;Mt++)ft.push(dt[Mt],bt[Mt])}var mt=withEmotionCache(function(Ot,zt,yt){var vt=pt&&Ot.as||ot,At="",St=[],Et=Ot;if(Ot.theme==null){Et={};for(var Tt in Ot)Et[Tt]=Ot[Tt];Et.theme=reactExports.useContext(ThemeContext$1)}typeof Ot.className=="string"?At=getRegisteredStyles(zt.registered,St,Ot.className):Ot.className!=null&&(At=Ot.className+" ");var Rt=serializeStyles(ft.concat(St),zt.registered,Et);At+=zt.key+"-"+Rt.name,st!==void 0&&(At+=" "+st);var Ct=pt&&ut===void 0?getDefaultShouldForwardProp(vt):ct,wt={};for(var Lt in Ot)pt&&Lt==="as"||Ct(Lt)&&(wt[Lt]=Ot[Lt]);return wt.className=At,yt&&(wt.ref=yt),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Insertion,{cache:zt,serialized:Rt,isStringTag:typeof vt=="string"}),reactExports.createElement(vt,wt))});return mt.displayName=at!==void 0?at:"Styled("+(typeof ot=="string"?ot:ot.displayName||ot.name||"Component")+")",mt.defaultProps=nt.defaultProps,mt.__emotion_real=mt,mt.__emotion_base=ot,mt.__emotion_styles=ft,mt.__emotion_forwardProp=ut,Object.defineProperty(mt,"toString",{value:function(){return st===void 0&&isDevelopment?"NO_COMPONENT_SELECTOR":"."+st}}),mt.withComponent=function(Ot,zt){var yt=tt(Ot,_extends$Q({},et,zt,{shouldForwardProp:composeShouldForwardProps(mt,zt,!0)}));return yt.apply(void 0,ft)},mt}},tags=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],newStyled=createStyled.bind(null);tags.forEach(function(tt){newStyled[tt]=newStyled(tt)});var SIZE$3={small:"small",medium:"medium",large:"large"},spin={from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},StyledSpinner=styled("i",function(tt){var nt=tt.$theme,et=tt.$color,rt=et===void 0?nt.colors.contentAccent:et,ot=tt.$borderWidth,at=tt.$size,st=at===void 0?SIZE$3.medium:at,ut={large:nt.sizing.scale300,medium:nt.sizing.scale100,small:nt.sizing.scale0}[ot||st],ct={large:nt.sizing.scale1000,medium:nt.sizing.scale900,small:nt.sizing.scale800}[st];return ut||(ut=nt.sizing[ot],ut||(ut="".concat(parseInt(ot),"px"))),ct||(ct=nt.sizing[st],ct||(ct="".concat(parseInt(st),"px"))),{display:"block",animationName:spin,animationDuration:nt.animation.timing1000,animationIterationCount:"infinite",animationTimingFunction:"linear",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderRadius:"50%",borderTopColor:rt,borderRightColor:nt.colors.backgroundTertiary,borderBottomColor:nt.colors.backgroundTertiary,borderLeftColor:nt.colors.backgroundTertiary,borderLeftWidth:ut,borderRightWidth:ut,borderTopWidth:ut,borderBottomWidth:ut,width:ct,height:ct,cursor:"wait"}});StyledSpinner.displayName="StyledSpinner";StyledSpinner.displayName="StyledSpinner";const StyledSpinnerIcon=newStyled(StyledSpinner,{shouldForwardProp:tt=>isPropValid(tt)&&!["size"].includes(tt),target:"el2m2t40"})(({usingCustomTheme:tt,size:nt,margin:et,padding:rt,theme:ot})=>({width:ot.iconSizes[nt],height:ot.iconSizes[nt],fontSize:ot.iconSizes[nt],justifyContents:"center",margin:computeSpacingStyle(et,ot),padding:computeSpacingStyle(rt,ot),borderColor:ot.colors.borderColor,borderTopColor:tt?ot.colors.primary:ot.colors.blue70,borderWidth:ot.sizes.spinnerThickness,flexGrow:0,flexShrink:0})),StyledIcon=newStyled("span",{shouldForwardProp:tt=>isPropValid(tt)&&!["size","as"].includes(tt),target:"el2m2t41"})(({color:tt,size:nt,margin:et,padding:rt,theme:ot})=>({color:ot.colors[tt],fill:"currentColor",display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:ot.iconSizes[nt],width:ot.iconSizes[nt],height:ot.iconSizes[nt],margin:computeSpacingStyle(et,ot),padding:computeSpacingStyle(rt,ot),flexShrink:0})),StyledDynamicIcon=newStyled("span",{target:"el2m2t42"})(({size:tt="lg",margin:nt="",padding:et="",theme:rt})=>({fill:"currentColor",display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:rt.iconSizes[tt],width:rt.iconSizes[tt],height:rt.iconSizes[tt],margin:computeSpacingStyle(nt,rt),padding:computeSpacingStyle(et,rt),flexShrink:0})),StyledImageIcon=newStyled("img",{target:"el2m2t43"})(({})=>({width:"100%",height:"100%"})),StyledEmojiIcon=newStyled("span",{target:"el2m2t44"})(({size:tt,margin:nt,padding:et,theme:rt})=>({display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:rt.iconSizes[tt],width:rt.iconSizes[tt],height:rt.iconSizes[tt],margin:computeSpacingStyle(nt,rt),padding:computeSpacingStyle(et,rt)})),getDefaultProps$1=({size:tt,margin:nt,padding:et})=>({size:tt||"md",margin:nt||"",padding:et||""}),Icon$2=({content:tt,color:nt,size:et,margin:rt,padding:ot,testid:at})=>jsx$1(StyledIcon,{as:tt,color:nt||"inherit","aria-hidden":"true","data-testid":at,...getDefaultProps$1({size:et,margin:rt,padding:ot})}),EmojiIcon=({size:tt,margin:nt,padding:et,children:rt,testid:ot})=>jsx$1(StyledEmojiIcon,{"data-testid":ot||"stIconEmoji","aria-hidden":"true",...getDefaultProps$1({size:tt,margin:nt,padding:et}),children:rt});function arrayReduce$1(tt,nt,et,rt){var ot=-1,at=tt==null?0:tt.length;for(rt&&at&&(et=tt[++ot]);++ot<at;)et=nt(et,tt[ot],ot,tt);return et}var _arrayReduce=arrayReduce$1;function basePropertyOf$1(tt){return function(nt){return tt==null?void 0:tt[nt]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$6=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsCombo$2="["+rsComboRange$3+"]",reComboMark=RegExp(rsCombo$2,"g");function deburr$1(tt){return tt=toString$6(tt),tt&&tt.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(tt){return tt.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(tt){return reHasUnicodeWord.test(tt)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange$2="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo$1="["+rsComboRange$2+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange$2+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$1+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$2+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ$2="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$2+"]?",rsOptJoin$1="(?:"+rsZWJ$2+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsEmoji="(?:"+[rsDingbat,rsRegional$1,rsSurrPair$1].join("|")+")"+rsSeq$1,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(tt){return tt.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString$5=toString_1,unicodeWords=_unicodeWords;function words$1(tt,nt,et){return tt=toString$5(tt),nt=et?void 0:nt,nt===void 0?hasUnicodeWord(tt)?unicodeWords(tt):asciiWords(tt):tt.match(nt)||[]}var words_1=words$1,arrayReduce=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$1(tt){return function(nt){return arrayReduce(words(deburr(nt).replace(reApos,"")),tt,"")}}var _createCompounder=createCompounder$1,createCompounder=_createCompounder,snakeCase=createCompounder(function(tt,nt,et){return tt+(et?"_":"")+nt.toLowerCase()}),snakeCase_1=snakeCase;const snakeCase$1=getDefaultExportFromCjs$1(snakeCase_1),StyledMaterialIcon=newStyled("span",{target:"ehwqgy00"})(({size:tt,margin:nt,padding:et,theme:rt,color:ot})=>({display:"inline-flex",alignItems:"center",justifyContents:"center",color:ot,fontSize:rt.iconSizes[tt],width:rt.iconSizes[tt],height:rt.iconSizes[tt],margin:computeSpacingStyle(nt,rt),padding:computeSpacingStyle(et,rt),userSelect:"none",fontFamily:rt.genericFonts.iconFont,fontWeight:rt.fontWeights.normal,fontStyle:"normal",lineHeight:rt.lineHeights.none,letterSpacing:"normal",textTransform:"none",whiteSpace:"nowrap",wordWrap:"normal",direction:"ltr",fontFeatureSettings:"liga",MozFontFeatureSettings:"liga",WebkitFontFeatureSettings:"liga",WebkitFontSmoothing:"antialiased"})),getDefaultProps=({size:tt,margin:nt,padding:et,color:rt})=>({size:tt||"md",margin:nt||"",padding:et||"",color:rt||"inherit"}),MaterialFontIcon=({iconName:tt,...nt})=>jsx$1(StyledMaterialIcon,{...getDefaultProps(nt),"data-testid":nt.testid||"stIconMaterial",children:snakeCase$1(tt)});function parseIconPackEntry(tt){const nt=tt.match(/^:(.+)\/(.+):$/);if(nt===null)return{pack:"emoji",icon:tt};const et=nt[1],rt=nt[2];return{pack:et,icon:rt}}function getFilledStarIconSrc(){return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg2MF84NDMpIj48cGF0aCBkPSJNOS45OTk5NCAxNC4zOTE2TDEzLjQ1ODMgMTYuNDgzM0MxNC4wOTE2IDE2Ljg2NjYgMTQuODY2NiAxNi4zIDE0LjY5OTkgMTUuNTgzM0wxMy43ODMzIDExLjY1TDE2Ljg0MTYgOC45OTk5N0MxNy4zOTk5IDguNTE2NjMgMTcuMDk5OSA3LjU5OTk3IDE2LjM2NjYgNy41NDE2M0wxMi4zNDE2IDcuMTk5OTdMMTAuNzY2NiAzLjQ4MzNDMTAuNDgzMyAyLjgwODMgOS41MTY2MSAyLjgwODMgOS4yMzMyNyAzLjQ4MzNMNy42NTgyNyA3LjE5MTYzTDMuNjMzMjcgNy41MzMzQzIuODk5OTQgNy41OTE2MyAyLjU5OTk0IDguNTA4MyAzLjE1ODI3IDguOTkxNjNMNi4yMTY2MSAxMS42NDE2TDUuMjk5OTQgMTUuNTc1QzUuMTMzMjcgMTYuMjkxNiA1LjkwODI3IDE2Ljg1ODMgNi41NDE2MSAxNi40NzVMOS45OTk5NCAxNC4zOTE2WiIgZmlsbD0iI0ZBQ0EyQiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwXzE4NjBfODQzIj48cmVjdCB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIGZpbGw9IndoaXRlIi8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+"}const DynamicIconDispatcher=({iconValue:tt,...nt})=>{const{pack:et,icon:rt}=parseIconPackEntry(tt);switch(et){case"material":switch(rt){case"star_filled":return jsx$1(StyledDynamicIcon,{...nt,children:jsx$1(StyledImageIcon,{src:getFilledStarIconSrc(),"data-testid":nt.testid||"stImageIcon"})});default:return jsx$1(StyledDynamicIcon,{...nt,children:jsx$1(MaterialFontIcon,{pack:et,iconName:rt,...nt})})}case"emoji":default:return jsx$1(StyledDynamicIcon,{...nt,children:jsx$1(EmojiIcon,{...nt,children:rt})})}},DynamicIcon=tt=>jsx$1(reactExports.Suspense,{fallback:jsx$1(StyledDynamicIcon,{...tt,children:jsx$1(EmojiIcon,{...tt,children:" "})}),children:jsx$1(DynamicIconDispatcher,{...tt})},tt.iconValue),convert=function(tt){if(tt==null)return ok$1;if(typeof tt=="string")return typeFactory(tt);if(typeof tt=="object")return Array.isArray(tt)?anyFactory$1(tt):propsFactory(tt);if(typeof tt=="function")return castFactory$1(tt);throw new Error("Expected function, string, or object as test")};function anyFactory$1(tt){const nt=[];let et=-1;for(;++et<tt.length;)nt[et]=convert(tt[et]);return castFactory$1(rt);function rt(...ot){let at=-1;for(;++at<nt.length;)if(nt[at].call(this,...ot))return!0;return!1}}function propsFactory(tt){return castFactory$1(nt);function nt(et){let rt;for(rt in tt)if(et[rt]!==tt[rt])return!1;return!0}}function typeFactory(tt){return castFactory$1(nt);function nt(et){return et&&et.type===tt}}function castFactory$1(tt){return nt;function nt(et,...rt){return!!(et&&typeof et=="object"&&"type"in et&&tt.call(this,et,...rt))}}function ok$1(){return!0}function color(tt){return tt}const CONTINUE=!0,EXIT=!1,SKIP="skip",visitParents=function(tt,nt,et,rt){typeof nt=="function"&&typeof et!="function"&&(rt=et,et=nt,nt=null);const ot=convert(nt),at=rt?-1:1;st(tt,void 0,[])();function st(ut,ct,pt){const dt=ut&&typeof ut=="object"?ut:{};if(typeof dt.type=="string"){const bt=typeof dt.tagName=="string"?dt.tagName:typeof dt.name=="string"?dt.name:void 0;Object.defineProperty(ft,"name",{value:"node ("+(ut.type+(bt?"<"+bt+">":""))+")"})}return ft;function ft(){let bt=[],ht,Mt,mt;if((!nt||ot(ut,ct,pt[pt.length-1]||null))&&(bt=toResult(et(ut,pt)),bt[0]===EXIT))return bt;if(ut.children&&bt[0]!==SKIP)for(Mt=(rt?ut.children.length:-1)+at,mt=pt.concat(ut);Mt>-1&&Mt<ut.children.length;){if(ht=st(ut.children[Mt],Mt,mt)(),ht[0]===EXIT)return ht;Mt=typeof ht[1]=="number"?ht[1]:Mt+at}return bt}}};function toResult(tt){return Array.isArray(tt)?tt:typeof tt=="number"?[CONTINUE,tt]:[tt]}const visit=function(tt,nt,et,rt){typeof nt=="function"&&typeof et!="function"&&(rt=et,et=nt,nt=null),visitParents(tt,nt,ot,rt);function ot(at,st){const ut=st[st.length-1];return et(at,ut?ut.children.indexOf(at):null,ut)}},protocols=["http","https","mailto","tel"];function uriTransformer(tt){const nt=(tt||"").trim(),et=nt.charAt(0);if(et==="#"||et==="/")return nt;const rt=nt.indexOf(":");if(rt===-1)return nt;let ot=-1;for(;++ot<protocols.length;){const at=protocols[ot];if(rt===at.length&&nt.slice(0,at.length).toLowerCase()===at)return nt}return ot=nt.indexOf("?"),ot!==-1&&rt>ot||(ot=nt.indexOf("#"),ot!==-1&&rt>ot)?nt:"javascript:void(0)"}/*!
99
+ */var isBrowser$1=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",timeoutDuration=function(){for(var tt=["Edge","Trident","Firefox"],nt=0;nt<tt.length;nt+=1)if(isBrowser$1&&navigator.userAgent.indexOf(tt[nt])>=0)return 1;return 0}();function microtaskDebounce(tt){var nt=!1;return function(){nt||(nt=!0,window.Promise.resolve().then(function(){nt=!1,tt()}))}}function taskDebounce(tt){var nt=!1;return function(){nt||(nt=!0,setTimeout(function(){nt=!1,tt()},timeoutDuration))}}var supportsMicroTasks=isBrowser$1&&window.Promise,debounce$3=supportsMicroTasks?microtaskDebounce:taskDebounce;function isFunction$4(tt){var nt={};return tt&&nt.toString.call(tt)==="[object Function]"}function getStyleComputedProperty(tt,nt){if(tt.nodeType!==1)return[];var et=tt.ownerDocument.defaultView,rt=et.getComputedStyle(tt,null);return nt?rt[nt]:rt}function getParentNode$1(tt){return tt.nodeName==="HTML"?tt:tt.parentNode||tt.host}function getScrollParent(tt){if(!tt)return document.body;switch(tt.nodeName){case"HTML":case"BODY":return tt.ownerDocument.body;case"#document":return tt.body}var nt=getStyleComputedProperty(tt),et=nt.overflow,rt=nt.overflowX,ot=nt.overflowY;return/(auto|scroll|overlay)/.test(et+ot+rt)?tt:getScrollParent(getParentNode$1(tt))}function getReferenceNode(tt){return tt&&tt.referenceNode?tt.referenceNode:tt}var isIE11=isBrowser$1&&!!(window.MSInputMethodContext&&document.documentMode),isIE10=isBrowser$1&&/MSIE 10/.test(navigator.userAgent);function isIE$1(tt){return tt===11?isIE11:tt===10?isIE10:isIE11||isIE10}function getOffsetParent(tt){if(!tt)return document.documentElement;for(var nt=isIE$1(10)?document.body:null,et=tt.offsetParent||null;et===nt&&tt.nextElementSibling;)et=(tt=tt.nextElementSibling).offsetParent;var rt=et&&et.nodeName;return!rt||rt==="BODY"||rt==="HTML"?tt?tt.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(et.nodeName)!==-1&&getStyleComputedProperty(et,"position")==="static"?getOffsetParent(et):et}function isOffsetContainer(tt){var nt=tt.nodeName;return nt==="BODY"?!1:nt==="HTML"||getOffsetParent(tt.firstElementChild)===tt}function getRoot(tt){return tt.parentNode!==null?getRoot(tt.parentNode):tt}function findCommonOffsetParent(tt,nt){if(!tt||!tt.nodeType||!nt||!nt.nodeType)return document.documentElement;var et=tt.compareDocumentPosition(nt)&Node.DOCUMENT_POSITION_FOLLOWING,rt=et?tt:nt,ot=et?nt:tt,at=document.createRange();at.setStart(rt,0),at.setEnd(ot,0);var st=at.commonAncestorContainer;if(tt!==st&&nt!==st||rt.contains(ot))return isOffsetContainer(st)?st:getOffsetParent(st);var ut=getRoot(tt);return ut.host?findCommonOffsetParent(ut.host,nt):findCommonOffsetParent(tt,getRoot(nt).host)}function getScroll(tt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",et=nt==="top"?"scrollTop":"scrollLeft",rt=tt.nodeName;if(rt==="BODY"||rt==="HTML"){var ot=tt.ownerDocument.documentElement,at=tt.ownerDocument.scrollingElement||ot;return at[et]}return tt[et]}function includeScroll(tt,nt){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,rt=getScroll(nt,"top"),ot=getScroll(nt,"left"),at=et?-1:1;return tt.top+=rt*at,tt.bottom+=rt*at,tt.left+=ot*at,tt.right+=ot*at,tt}function getBordersSize(tt,nt){var et=nt==="x"?"Left":"Top",rt=et==="Left"?"Right":"Bottom";return parseFloat(tt["border"+et+"Width"])+parseFloat(tt["border"+rt+"Width"])}function getSize(tt,nt,et,rt){return Math.max(nt["offset"+tt],nt["scroll"+tt],et["client"+tt],et["offset"+tt],et["scroll"+tt],isIE$1(10)?parseInt(et["offset"+tt])+parseInt(rt["margin"+(tt==="Height"?"Top":"Left")])+parseInt(rt["margin"+(tt==="Height"?"Bottom":"Right")]):0)}function getWindowSizes(tt){var nt=tt.body,et=tt.documentElement,rt=isIE$1(10)&&getComputedStyle(et);return{height:getSize("Height",nt,et,rt),width:getSize("Width",nt,et,rt)}}var classCallCheck=function(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")},createClass$1=function(){function tt(nt,et){for(var rt=0;rt<et.length;rt++){var ot=et[rt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(nt,ot.key,ot)}}return function(nt,et,rt){return et&&tt(nt.prototype,et),rt&&tt(nt,rt),nt}}(),defineProperty$3=function(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt},_extends$K=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt};function getClientRect(tt){return _extends$K({},tt,{right:tt.left+tt.width,bottom:tt.top+tt.height})}function getBoundingClientRect(tt){var nt={};try{if(isIE$1(10)){nt=tt.getBoundingClientRect();var et=getScroll(tt,"top"),rt=getScroll(tt,"left");nt.top+=et,nt.left+=rt,nt.bottom+=et,nt.right+=rt}else nt=tt.getBoundingClientRect()}catch{}var ot={left:nt.left,top:nt.top,width:nt.right-nt.left,height:nt.bottom-nt.top},at=tt.nodeName==="HTML"?getWindowSizes(tt.ownerDocument):{},st=at.width||tt.clientWidth||ot.width,ut=at.height||tt.clientHeight||ot.height,ct=tt.offsetWidth-st,pt=tt.offsetHeight-ut;if(ct||pt){var dt=getStyleComputedProperty(tt);ct-=getBordersSize(dt,"x"),pt-=getBordersSize(dt,"y"),ot.width-=ct,ot.height-=pt}return getClientRect(ot)}function getOffsetRectRelativeToArbitraryNode(tt,nt){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,rt=isIE$1(10),ot=nt.nodeName==="HTML",at=getBoundingClientRect(tt),st=getBoundingClientRect(nt),ut=getScrollParent(tt),ct=getStyleComputedProperty(nt),pt=parseFloat(ct.borderTopWidth),dt=parseFloat(ct.borderLeftWidth);et&&ot&&(st.top=Math.max(st.top,0),st.left=Math.max(st.left,0));var ft=getClientRect({top:at.top-st.top-pt,left:at.left-st.left-dt,width:at.width,height:at.height});if(ft.marginTop=0,ft.marginLeft=0,!rt&&ot){var bt=parseFloat(ct.marginTop),ht=parseFloat(ct.marginLeft);ft.top-=pt-bt,ft.bottom-=pt-bt,ft.left-=dt-ht,ft.right-=dt-ht,ft.marginTop=bt,ft.marginLeft=ht}return(rt&&!et?nt.contains(ut):nt===ut&&ut.nodeName!=="BODY")&&(ft=includeScroll(ft,nt)),ft}function getViewportOffsetRectRelativeToArtbitraryNode(tt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,et=tt.ownerDocument.documentElement,rt=getOffsetRectRelativeToArbitraryNode(tt,et),ot=Math.max(et.clientWidth,window.innerWidth||0),at=Math.max(et.clientHeight,window.innerHeight||0),st=nt?0:getScroll(et),ut=nt?0:getScroll(et,"left"),ct={top:st-rt.top+rt.marginTop,left:ut-rt.left+rt.marginLeft,width:ot,height:at};return getClientRect(ct)}function isFixed$1(tt){var nt=tt.nodeName;if(nt==="BODY"||nt==="HTML")return!1;if(getStyleComputedProperty(tt,"position")==="fixed")return!0;var et=getParentNode$1(tt);return et?isFixed$1(et):!1}function getFixedPositionOffsetParent(tt){if(!tt||!tt.parentElement||isIE$1())return document.documentElement;for(var nt=tt.parentElement;nt&&getStyleComputedProperty(nt,"transform")==="none";)nt=nt.parentElement;return nt||document.documentElement}function getBoundaries(tt,nt,et,rt){var ot=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,at={top:0,left:0},st=ot?getFixedPositionOffsetParent(tt):findCommonOffsetParent(tt,getReferenceNode(nt));if(rt==="viewport")at=getViewportOffsetRectRelativeToArtbitraryNode(st,ot);else{var ut=void 0;rt==="scrollParent"?(ut=getScrollParent(getParentNode$1(nt)),ut.nodeName==="BODY"&&(ut=tt.ownerDocument.documentElement)):rt==="window"?ut=tt.ownerDocument.documentElement:ut=rt;var ct=getOffsetRectRelativeToArbitraryNode(ut,st,ot);if(ut.nodeName==="HTML"&&!isFixed$1(st)){var pt=getWindowSizes(tt.ownerDocument),dt=pt.height,ft=pt.width;at.top+=ct.top-ct.marginTop,at.bottom=dt+ct.top,at.left+=ct.left-ct.marginLeft,at.right=ft+ct.left}else at=ct}et=et||0;var bt=typeof et=="number";return at.left+=bt?et:et.left||0,at.top+=bt?et:et.top||0,at.right-=bt?et:et.right||0,at.bottom-=bt?et:et.bottom||0,at}function getArea(tt){var nt=tt.width,et=tt.height;return nt*et}function computeAutoPlacement(tt,nt,et,rt,ot){var at=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(tt.indexOf("auto")===-1)return tt;var st=getBoundaries(et,rt,at,ot),ut={top:{width:st.width,height:nt.top-st.top},right:{width:st.right-nt.right,height:st.height},bottom:{width:st.width,height:st.bottom-nt.bottom},left:{width:nt.left-st.left,height:st.height}},ct=Object.keys(ut).map(function(bt){return _extends$K({key:bt},ut[bt],{area:getArea(ut[bt])})}).sort(function(bt,ht){return ht.area-bt.area}),pt=ct.filter(function(bt){var ht=bt.width,Mt=bt.height;return ht>=et.clientWidth&&Mt>=et.clientHeight}),dt=pt.length>0?pt[0].key:ct[0].key,ft=tt.split("-")[1];return dt+(ft?"-"+ft:"")}function getReferenceOffsets(tt,nt,et){var rt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,ot=rt?getFixedPositionOffsetParent(nt):findCommonOffsetParent(nt,getReferenceNode(et));return getOffsetRectRelativeToArbitraryNode(et,ot,rt)}function getOuterSizes(tt){var nt=tt.ownerDocument.defaultView,et=nt.getComputedStyle(tt),rt=parseFloat(et.marginTop||0)+parseFloat(et.marginBottom||0),ot=parseFloat(et.marginLeft||0)+parseFloat(et.marginRight||0),at={width:tt.offsetWidth+ot,height:tt.offsetHeight+rt};return at}function getOppositePlacement(tt){var nt={left:"right",right:"left",bottom:"top",top:"bottom"};return tt.replace(/left|right|bottom|top/g,function(et){return nt[et]})}function getPopperOffsets(tt,nt,et){et=et.split("-")[0];var rt=getOuterSizes(tt),ot={width:rt.width,height:rt.height},at=["right","left"].indexOf(et)!==-1,st=at?"top":"left",ut=at?"left":"top",ct=at?"height":"width",pt=at?"width":"height";return ot[st]=nt[st]+nt[ct]/2-rt[ct]/2,et===ut?ot[ut]=nt[ut]-rt[pt]:ot[ut]=nt[getOppositePlacement(ut)],ot}function find$3(tt,nt){return Array.prototype.find?tt.find(nt):tt.filter(nt)[0]}function findIndex(tt,nt,et){if(Array.prototype.findIndex)return tt.findIndex(function(ot){return ot[nt]===et});var rt=find$3(tt,function(ot){return ot[nt]===et});return tt.indexOf(rt)}function runModifiers(tt,nt,et){var rt=et===void 0?tt:tt.slice(0,findIndex(tt,"name",et));return rt.forEach(function(ot){ot.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var at=ot.function||ot.fn;ot.enabled&&isFunction$4(at)&&(nt.offsets.popper=getClientRect(nt.offsets.popper),nt.offsets.reference=getClientRect(nt.offsets.reference),nt=at(nt,ot))}),nt}function update(){if(!this.state.isDestroyed){var tt={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};tt.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed),tt.placement=computeAutoPlacement(this.options.placement,tt.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),tt.originalPlacement=tt.placement,tt.positionFixed=this.options.positionFixed,tt.offsets.popper=getPopperOffsets(this.popper,tt.offsets.reference,tt.placement),tt.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",tt=runModifiers(this.modifiers,tt),this.state.isCreated?this.options.onUpdate(tt):(this.state.isCreated=!0,this.options.onCreate(tt))}}function isModifierEnabled(tt,nt){return tt.some(function(et){var rt=et.name,ot=et.enabled;return ot&&rt===nt})}function getSupportedPropertyName(tt){for(var nt=[!1,"ms","Webkit","Moz","O"],et=tt.charAt(0).toUpperCase()+tt.slice(1),rt=0;rt<nt.length;rt++){var ot=nt[rt],at=ot?""+ot+et:tt;if(typeof document.body.style[at]<"u")return at}return null}function destroy(){return this.state.isDestroyed=!0,isModifierEnabled(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[getSupportedPropertyName("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function getWindow(tt){var nt=tt.ownerDocument;return nt?nt.defaultView:window}function attachToScrollParents(tt,nt,et,rt){var ot=tt.nodeName==="BODY",at=ot?tt.ownerDocument.defaultView:tt;at.addEventListener(nt,et,{passive:!0}),ot||attachToScrollParents(getScrollParent(at.parentNode),nt,et,rt),rt.push(at)}function setupEventListeners(tt,nt,et,rt){et.updateBound=rt,getWindow(tt).addEventListener("resize",et.updateBound,{passive:!0});var ot=getScrollParent(tt);return attachToScrollParents(ot,"scroll",et.updateBound,et.scrollParents),et.scrollElement=ot,et.eventsEnabled=!0,et}function enableEventListeners(){this.state.eventsEnabled||(this.state=setupEventListeners(this.reference,this.options,this.state,this.scheduleUpdate))}function removeEventListeners(tt,nt){return getWindow(tt).removeEventListener("resize",nt.updateBound),nt.scrollParents.forEach(function(et){et.removeEventListener("scroll",nt.updateBound)}),nt.updateBound=null,nt.scrollParents=[],nt.scrollElement=null,nt.eventsEnabled=!1,nt}function disableEventListeners(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=removeEventListeners(this.reference,this.state))}function isNumeric(tt){return tt!==""&&!isNaN(parseFloat(tt))&&isFinite(tt)}function setStyles(tt,nt){Object.keys(nt).forEach(function(et){var rt="";["width","height","top","right","bottom","left"].indexOf(et)!==-1&&isNumeric(nt[et])&&(rt="px"),tt.style[et]=nt[et]+rt})}function setAttributes(tt,nt){Object.keys(nt).forEach(function(et){var rt=nt[et];rt!==!1?tt.setAttribute(et,nt[et]):tt.removeAttribute(et)})}function applyStyle(tt){return setStyles(tt.instance.popper,tt.styles),setAttributes(tt.instance.popper,tt.attributes),tt.arrowElement&&Object.keys(tt.arrowStyles).length&&setStyles(tt.arrowElement,tt.arrowStyles),tt}function applyStyleOnLoad(tt,nt,et,rt,ot){var at=getReferenceOffsets(ot,nt,tt,et.positionFixed),st=computeAutoPlacement(et.placement,at,nt,tt,et.modifiers.flip.boundariesElement,et.modifiers.flip.padding);return nt.setAttribute("x-placement",st),setStyles(nt,{position:et.positionFixed?"fixed":"absolute"}),et}function getRoundedOffsets(tt,nt){var et=tt.offsets,rt=et.popper,ot=et.reference,at=Math.round,st=Math.floor,ut=function(zt){return zt},ct=at(ot.width),pt=at(rt.width),dt=["left","right"].indexOf(tt.placement)!==-1,ft=tt.placement.indexOf("-")!==-1,bt=ct%2===pt%2,ht=ct%2===1&&pt%2===1,Mt=nt?dt||ft||bt?at:st:ut,mt=nt?at:ut;return{left:Mt(ht&&!ft&&nt?rt.left-1:rt.left),top:mt(rt.top),bottom:mt(rt.bottom),right:Mt(rt.right)}}var isFirefox$1=isBrowser$1&&/Firefox/i.test(navigator.userAgent);function computeStyle(tt,nt){var et=nt.x,rt=nt.y,ot=tt.offsets.popper,at=find$3(tt.instance.modifiers,function(vt){return vt.name==="applyStyle"}).gpuAcceleration;at!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var st=at!==void 0?at:nt.gpuAcceleration,ut=getOffsetParent(tt.instance.popper),ct=getBoundingClientRect(ut),pt={position:ot.position},dt=getRoundedOffsets(tt,window.devicePixelRatio<2||!isFirefox$1),ft=et==="bottom"?"top":"bottom",bt=rt==="right"?"left":"right",ht=getSupportedPropertyName("transform"),Mt=void 0,mt=void 0;if(ft==="bottom"?ut.nodeName==="HTML"?mt=-ut.clientHeight+dt.bottom:mt=-ct.height+dt.bottom:mt=dt.top,bt==="right"?ut.nodeName==="HTML"?Mt=-ut.clientWidth+dt.right:Mt=-ct.width+dt.right:Mt=dt.left,st&&ht)pt[ht]="translate3d("+Mt+"px, "+mt+"px, 0)",pt[ft]=0,pt[bt]=0,pt.willChange="transform";else{var Ot=ft==="bottom"?-1:1,zt=bt==="right"?-1:1;pt[ft]=mt*Ot,pt[bt]=Mt*zt,pt.willChange=ft+", "+bt}var yt={"x-placement":tt.placement};return tt.attributes=_extends$K({},yt,tt.attributes),tt.styles=_extends$K({},pt,tt.styles),tt.arrowStyles=_extends$K({},tt.offsets.arrow,tt.arrowStyles),tt}function isModifierRequired(tt,nt,et){var rt=find$3(tt,function(ut){var ct=ut.name;return ct===nt}),ot=!!rt&&tt.some(function(ut){return ut.name===et&&ut.enabled&&ut.order<rt.order});if(!ot){var at="`"+nt+"`",st="`"+et+"`";console.warn(st+" modifier is required by "+at+" modifier in order to work, be sure to include it before "+at+"!")}return ot}function arrow(tt,nt){var et;if(!isModifierRequired(tt.instance.modifiers,"arrow","keepTogether"))return tt;var rt=nt.element;if(typeof rt=="string"){if(rt=tt.instance.popper.querySelector(rt),!rt)return tt}else if(!tt.instance.popper.contains(rt))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),tt;var ot=tt.placement.split("-")[0],at=tt.offsets,st=at.popper,ut=at.reference,ct=["left","right"].indexOf(ot)!==-1,pt=ct?"height":"width",dt=ct?"Top":"Left",ft=dt.toLowerCase(),bt=ct?"left":"top",ht=ct?"bottom":"right",Mt=getOuterSizes(rt)[pt];ut[ht]-Mt<st[ft]&&(tt.offsets.popper[ft]-=st[ft]-(ut[ht]-Mt)),ut[ft]+Mt>st[ht]&&(tt.offsets.popper[ft]+=ut[ft]+Mt-st[ht]),tt.offsets.popper=getClientRect(tt.offsets.popper);var mt=ut[ft]+ut[pt]/2-Mt/2,Ot=getStyleComputedProperty(tt.instance.popper),zt=parseFloat(Ot["margin"+dt]),yt=parseFloat(Ot["border"+dt+"Width"]),vt=mt-tt.offsets.popper[ft]-zt-yt;return vt=Math.max(Math.min(st[pt]-Mt,vt),0),tt.arrowElement=rt,tt.offsets.arrow=(et={},defineProperty$3(et,ft,Math.round(vt)),defineProperty$3(et,bt,""),et),tt}function getOppositeVariation(tt){return tt==="end"?"start":tt==="start"?"end":tt}var placements=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],validPlacements=placements.slice(3);function clockwise(tt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,et=validPlacements.indexOf(tt),rt=validPlacements.slice(et+1).concat(validPlacements.slice(0,et));return nt?rt.reverse():rt}var BEHAVIORS={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function flip$1(tt,nt){if(isModifierEnabled(tt.instance.modifiers,"inner")||tt.flipped&&tt.placement===tt.originalPlacement)return tt;var et=getBoundaries(tt.instance.popper,tt.instance.reference,nt.padding,nt.boundariesElement,tt.positionFixed),rt=tt.placement.split("-")[0],ot=getOppositePlacement(rt),at=tt.placement.split("-")[1]||"",st=[];switch(nt.behavior){case BEHAVIORS.FLIP:st=[rt,ot];break;case BEHAVIORS.CLOCKWISE:st=clockwise(rt);break;case BEHAVIORS.COUNTERCLOCKWISE:st=clockwise(rt,!0);break;default:st=nt.behavior}return st.forEach(function(ut,ct){if(rt!==ut||st.length===ct+1)return tt;rt=tt.placement.split("-")[0],ot=getOppositePlacement(rt);var pt=tt.offsets.popper,dt=tt.offsets.reference,ft=Math.floor,bt=rt==="left"&&ft(pt.right)>ft(dt.left)||rt==="right"&&ft(pt.left)<ft(dt.right)||rt==="top"&&ft(pt.bottom)>ft(dt.top)||rt==="bottom"&&ft(pt.top)<ft(dt.bottom),ht=ft(pt.left)<ft(et.left),Mt=ft(pt.right)>ft(et.right),mt=ft(pt.top)<ft(et.top),Ot=ft(pt.bottom)>ft(et.bottom),zt=rt==="left"&&ht||rt==="right"&&Mt||rt==="top"&&mt||rt==="bottom"&&Ot,yt=["top","bottom"].indexOf(rt)!==-1,vt=!!nt.flipVariations&&(yt&&at==="start"&&ht||yt&&at==="end"&&Mt||!yt&&at==="start"&&mt||!yt&&at==="end"&&Ot),At=!!nt.flipVariationsByContent&&(yt&&at==="start"&&Mt||yt&&at==="end"&&ht||!yt&&at==="start"&&Ot||!yt&&at==="end"&&mt),St=vt||At;(bt||zt||St)&&(tt.flipped=!0,(bt||zt)&&(rt=st[ct+1]),St&&(at=getOppositeVariation(at)),tt.placement=rt+(at?"-"+at:""),tt.offsets.popper=_extends$K({},tt.offsets.popper,getPopperOffsets(tt.instance.popper,tt.offsets.reference,tt.placement)),tt=runModifiers(tt.instance.modifiers,tt,"flip"))}),tt}function keepTogether(tt){var nt=tt.offsets,et=nt.popper,rt=nt.reference,ot=tt.placement.split("-")[0],at=Math.floor,st=["top","bottom"].indexOf(ot)!==-1,ut=st?"right":"bottom",ct=st?"left":"top",pt=st?"width":"height";return et[ut]<at(rt[ct])&&(tt.offsets.popper[ct]=at(rt[ct])-et[pt]),et[ct]>at(rt[ut])&&(tt.offsets.popper[ct]=at(rt[ut])),tt}function toValue(tt,nt,et,rt){var ot=tt.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),at=+ot[1],st=ot[2];if(!at)return tt;if(st.indexOf("%")===0){var ut=void 0;switch(st){case"%p":ut=et;break;case"%":case"%r":default:ut=rt}var ct=getClientRect(ut);return ct[nt]/100*at}else if(st==="vh"||st==="vw"){var pt=void 0;return st==="vh"?pt=Math.max(document.documentElement.clientHeight,window.innerHeight||0):pt=Math.max(document.documentElement.clientWidth,window.innerWidth||0),pt/100*at}else return at}function parseOffset(tt,nt,et,rt){var ot=[0,0],at=["right","left"].indexOf(rt)!==-1,st=tt.split(/(\+|\-)/).map(function(dt){return dt.trim()}),ut=st.indexOf(find$3(st,function(dt){return dt.search(/,|\s/)!==-1}));st[ut]&&st[ut].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var ct=/\s*,\s*|\s+/,pt=ut!==-1?[st.slice(0,ut).concat([st[ut].split(ct)[0]]),[st[ut].split(ct)[1]].concat(st.slice(ut+1))]:[st];return pt=pt.map(function(dt,ft){var bt=(ft===1?!at:at)?"height":"width",ht=!1;return dt.reduce(function(Mt,mt){return Mt[Mt.length-1]===""&&["+","-"].indexOf(mt)!==-1?(Mt[Mt.length-1]=mt,ht=!0,Mt):ht?(Mt[Mt.length-1]+=mt,ht=!1,Mt):Mt.concat(mt)},[]).map(function(Mt){return toValue(Mt,bt,nt,et)})}),pt.forEach(function(dt,ft){dt.forEach(function(bt,ht){isNumeric(bt)&&(ot[ft]+=bt*(dt[ht-1]==="-"?-1:1))})}),ot}function offset$1(tt,nt){var et=nt.offset,rt=tt.placement,ot=tt.offsets,at=ot.popper,st=ot.reference,ut=rt.split("-")[0],ct=void 0;return isNumeric(+et)?ct=[+et,0]:ct=parseOffset(et,at,st,ut),ut==="left"?(at.top+=ct[0],at.left-=ct[1]):ut==="right"?(at.top+=ct[0],at.left+=ct[1]):ut==="top"?(at.left+=ct[0],at.top-=ct[1]):ut==="bottom"&&(at.left+=ct[0],at.top+=ct[1]),tt.popper=at,tt}function preventOverflow(tt,nt){var et=nt.boundariesElement||getOffsetParent(tt.instance.popper);tt.instance.reference===et&&(et=getOffsetParent(et));var rt=getSupportedPropertyName("transform"),ot=tt.instance.popper.style,at=ot.top,st=ot.left,ut=ot[rt];ot.top="",ot.left="",ot[rt]="";var ct=getBoundaries(tt.instance.popper,tt.instance.reference,nt.padding,et,tt.positionFixed);ot.top=at,ot.left=st,ot[rt]=ut,nt.boundaries=ct;var pt=nt.priority,dt=tt.offsets.popper,ft={primary:function(ht){var Mt=dt[ht];return dt[ht]<ct[ht]&&!nt.escapeWithReference&&(Mt=Math.max(dt[ht],ct[ht])),defineProperty$3({},ht,Mt)},secondary:function(ht){var Mt=ht==="right"?"left":"top",mt=dt[Mt];return dt[ht]>ct[ht]&&!nt.escapeWithReference&&(mt=Math.min(dt[Mt],ct[ht]-(ht==="right"?dt.width:dt.height))),defineProperty$3({},Mt,mt)}};return pt.forEach(function(bt){var ht=["left","top"].indexOf(bt)!==-1?"primary":"secondary";dt=_extends$K({},dt,ft[ht](bt))}),tt.offsets.popper=dt,tt}function shift(tt){var nt=tt.placement,et=nt.split("-")[0],rt=nt.split("-")[1];if(rt){var ot=tt.offsets,at=ot.reference,st=ot.popper,ut=["bottom","top"].indexOf(et)!==-1,ct=ut?"left":"top",pt=ut?"width":"height",dt={start:defineProperty$3({},ct,at[ct]),end:defineProperty$3({},ct,at[ct]+at[pt]-st[pt])};tt.offsets.popper=_extends$K({},st,dt[rt])}return tt}function hide(tt){if(!isModifierRequired(tt.instance.modifiers,"hide","preventOverflow"))return tt;var nt=tt.offsets.reference,et=find$3(tt.instance.modifiers,function(rt){return rt.name==="preventOverflow"}).boundaries;if(nt.bottom<et.top||nt.left>et.right||nt.top>et.bottom||nt.right<et.left){if(tt.hide===!0)return tt;tt.hide=!0,tt.attributes["x-out-of-boundaries"]=""}else{if(tt.hide===!1)return tt;tt.hide=!1,tt.attributes["x-out-of-boundaries"]=!1}return tt}function inner$1(tt){var nt=tt.placement,et=nt.split("-")[0],rt=tt.offsets,ot=rt.popper,at=rt.reference,st=["left","right"].indexOf(et)!==-1,ut=["top","left"].indexOf(et)===-1;return ot[st?"left":"top"]=at[et]-(ut?ot[st?"width":"height"]:0),tt.placement=getOppositePlacement(nt),tt.offsets.popper=getClientRect(ot),tt}var modifiers={shift:{order:100,enabled:!0,fn:shift},offset:{order:200,enabled:!0,fn:offset$1,offset:0},preventOverflow:{order:300,enabled:!0,fn:preventOverflow,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:keepTogether},arrow:{order:500,enabled:!0,fn:arrow,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:flip$1,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:inner$1},hide:{order:800,enabled:!0,fn:hide},computeStyle:{order:850,enabled:!0,fn:computeStyle,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:applyStyle,onLoad:applyStyleOnLoad,gpuAcceleration:void 0}},Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function tt(){},onUpdate:function tt(){},modifiers},Popper=function(){function tt(nt,et){var rt=this,ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};classCallCheck(this,tt),this.scheduleUpdate=function(){return requestAnimationFrame(rt.update)},this.update=debounce$3(this.update.bind(this)),this.options=_extends$K({},tt.Defaults,ot),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=nt&&nt.jquery?nt[0]:nt,this.popper=et&&et.jquery?et[0]:et,this.options.modifiers={},Object.keys(_extends$K({},tt.Defaults.modifiers,ot.modifiers)).forEach(function(st){rt.options.modifiers[st]=_extends$K({},tt.Defaults.modifiers[st]||{},ot.modifiers?ot.modifiers[st]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(st){return _extends$K({name:st},rt.options.modifiers[st])}).sort(function(st,ut){return st.order-ut.order}),this.modifiers.forEach(function(st){st.enabled&&isFunction$4(st.onLoad)&&st.onLoad(rt.reference,rt.popper,rt.options,st,rt.state)}),this.update();var at=this.options.eventsEnabled;at&&this.enableEventListeners(),this.state.eventsEnabled=at}return createClass$1(tt,[{key:"update",value:function(){return update.call(this)}},{key:"destroy",value:function(){return destroy.call(this)}},{key:"enableEventListeners",value:function(){return enableEventListeners.call(this)}},{key:"disableEventListeners",value:function(){return disableEventListeners.call(this)}}]),tt}();Popper.Utils=(typeof window<"u"?window:global).PopperUtils;Popper.placements=placements;Popper.Defaults=Defaults;function toPopperPlacement(tt){return tt.replace(/(Top|Left)$/,"-start").replace(/(Right|Bottom)$/,"-end")}function parsePopperOffset(tt){return{top:Math.floor(tt.top||0),left:Math.floor(tt.left||0)}}var TETHER_PLACEMENT={auto:"auto",topLeft:"topLeft",top:"top",topRight:"topRight",rightTop:"rightTop",right:"right",rightBottom:"rightBottom",bottomRight:"bottomRight",bottom:"bottom",bottomLeft:"bottomLeft",leftBottom:"leftBottom",left:"left",leftTop:"leftTop"};function _typeof$h(tt){"@babel/helpers - typeof";return _typeof$h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},_typeof$h(tt)}var _excluded$n=["modifiers"];function ownKeys$r(tt,nt){var et=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);nt&&(rt=rt.filter(function(ot){return Object.getOwnPropertyDescriptor(tt,ot).enumerable})),et.push.apply(et,rt)}return et}function _objectSpread$q(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt]!=null?arguments[nt]:{};nt%2?ownKeys$r(Object(et),!0).forEach(function(rt){_defineProperty$v(tt,rt,et[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(et)):ownKeys$r(Object(et)).forEach(function(rt){Object.defineProperty(tt,rt,Object.getOwnPropertyDescriptor(et,rt))})}return tt}function _objectWithoutProperties$t(tt,nt){if(tt==null)return{};var et=_objectWithoutPropertiesLoose$r(tt,nt),rt,ot;if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(tt);for(ot=0;ot<at.length;ot++)rt=at[ot],!(nt.indexOf(rt)>=0)&&Object.prototype.propertyIsEnumerable.call(tt,rt)&&(et[rt]=tt[rt])}return et}function _objectWithoutPropertiesLoose$r(tt,nt){if(tt==null)return{};var et={},rt=Object.keys(tt),ot,at;for(at=0;at<rt.length;at++)ot=rt[at],!(nt.indexOf(ot)>=0)&&(et[ot]=tt[ot]);return et}function _classCallCheck$o(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$e(tt,nt){for(var et=0;et<nt.length;et++){var rt=nt[et];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(tt,rt.key,rt)}}function _createClass$m(tt,nt,et){return nt&&_defineProperties$e(tt.prototype,nt),Object.defineProperty(tt,"prototype",{writable:!1}),tt}function _inherits$o(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function");tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,writable:!0,configurable:!0}}),Object.defineProperty(tt,"prototype",{writable:!1}),nt&&_setPrototypeOf$f(tt,nt)}function _setPrototypeOf$f(tt,nt){return _setPrototypeOf$f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(rt,ot){return rt.__proto__=ot,rt},_setPrototypeOf$f(tt,nt)}function _createSuper$d(tt){var nt=_isNativeReflectConstruct$d();return function(){var rt=_getPrototypeOf$e(tt),ot;if(nt){var at=_getPrototypeOf$e(this).constructor;ot=Reflect.construct(rt,arguments,at)}else ot=rt.apply(this,arguments);return _possibleConstructorReturn$o(this,ot)}}function _possibleConstructorReturn$o(tt,nt){if(nt&&(_typeof$h(nt)==="object"||typeof nt=="function"))return nt;if(nt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$f(tt)}function _assertThisInitialized$f(tt){if(tt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt}function _isNativeReflectConstruct$d(){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 _getPrototypeOf$e(tt){return _getPrototypeOf$e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$e(tt)}function _defineProperty$v(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}var Tether=function(tt){_inherits$o(et,tt);var nt=_createSuper$d(et);function et(){var rt;_classCallCheck$o(this,et);for(var ot=arguments.length,at=new Array(ot),st=0;st<ot;st++)at[st]=arguments[st];return rt=nt.call.apply(nt,[this].concat(at)),_defineProperty$v(_assertThisInitialized$f(rt),"popper",void 0),_defineProperty$v(_assertThisInitialized$f(rt),"popperHeight",0),_defineProperty$v(_assertThisInitialized$f(rt),"popperWidth",0),_defineProperty$v(_assertThisInitialized$f(rt),"anchorHeight",0),_defineProperty$v(_assertThisInitialized$f(rt),"anchorWidth",0),_defineProperty$v(_assertThisInitialized$f(rt),"state",{isMounted:!1}),_defineProperty$v(_assertThisInitialized$f(rt),"onPopperUpdate",function(ut){var ct={popper:parsePopperOffset(ut.offsets.popper),arrow:ut.offsets.arrow?parsePopperOffset(ut.offsets.arrow):{top:0,left:0}};rt.props.onPopperUpdate(ct,ut)}),rt}return _createClass$m(et,[{key:"componentDidMount",value:function(){this.setState({isMounted:!0})}},{key:"componentDidUpdate",value:function(ot,at){if(this.props.anchorRef){var st=this.props.anchorRef.getBoundingClientRect(),ut=st.height,ct=st.width;(this.anchorHeight!==ut||this.anchorWidth!==ct)&&(this.anchorHeight=ut,this.anchorWidth=ct,this.popper&&this.popper.scheduleUpdate())}if(this.props.popperRef){var pt=this.props.popperRef.getBoundingClientRect(),dt=pt.height,ft=pt.width;(this.popperHeight!==dt||this.popperWidth!==ft)&&(this.popperHeight=dt,this.popperWidth=ft,this.popper&&this.popper.scheduleUpdate()),this.state.isMounted!==at.isMounted&&this.props.anchorRef&&this.initializePopper()}}},{key:"componentWillUnmount",value:function(){this.destroyPopover()}},{key:"initializePopper",value:function(){var ot=this.props,at=ot.placement,st=ot.popperOptions,ut=st.modifiers,ct=_objectWithoutProperties$t(st,_excluded$n);!this.props.anchorRef||!this.props.popperRef||(this.popper=new Popper(this.props.anchorRef,this.props.popperRef,_objectSpread$q({placement:toPopperPlacement(at),modifiers:_objectSpread$q({arrow:{element:this.props.arrowRef,enabled:!!this.props.arrowRef},computeStyle:{gpuAcceleration:!1},applyStyle:{enabled:!1},applyReactStyle:{enabled:!0,fn:this.onPopperUpdate,order:900},preventOverflow:{enabled:!0}},ut)},ct)))}},{key:"destroyPopover",value:function(){this.popper&&(this.popper.destroy(),delete this.popper)}},{key:"render",value:function(){return this.props.children||null}}]),et}(reactExports.Component);_defineProperty$v(Tether,"defaultProps",{anchorRef:null,onPopperUpdate:function tt(){return null},placement:TETHER_PLACEMENT.auto,popperRef:null,popperOptions:{}});var BaseProvider=function tt(nt){var et=nt.children,rt=nt.overrides,ot=nt.theme,at=nt.zIndex;return reactExports.createElement(LayersManager,{zIndex:at,overrides:rt},reactExports.createElement(UIDReset,{prefix:"bui"},reactExports.createElement(ThemeProvider$1,{theme:ot},et)))};function guard(tt,nt,et){return Math.min(Math.max(tt,et),nt)}class ColorError extends Error{constructor(nt){super(`Failed to parse color: "${nt}"`)}}var ColorError$1=ColorError;function parseToRgba(tt){if(typeof tt!="string")throw new ColorError$1(tt);if(tt.trim().toLowerCase()==="transparent")return[0,0,0,0];let nt=tt.trim();nt=namedColorRegex.test(tt)?nameToHex(tt):tt;const et=reducedHexRegex.exec(nt);if(et){const st=Array.from(et).slice(1);return[...st.slice(0,3).map(ut=>parseInt(r(ut,2),16)),parseInt(r(st[3]||"f",2),16)/255]}const rt=hexRegex.exec(nt);if(rt){const st=Array.from(rt).slice(1);return[...st.slice(0,3).map(ut=>parseInt(ut,16)),parseInt(st[3]||"ff",16)/255]}const ot=rgbaRegex.exec(nt);if(ot){const st=Array.from(ot).slice(1);return[...st.slice(0,3).map(ut=>parseInt(ut,10)),parseFloat(st[3]||"1")]}const at=hslaRegex.exec(nt);if(at){const[st,ut,ct,pt]=Array.from(at).slice(1).map(parseFloat);if(guard(0,100,ut)!==ut)throw new ColorError$1(tt);if(guard(0,100,ct)!==ct)throw new ColorError$1(tt);return[...hslToRgb$1(st,ut,ct),Number.isNaN(pt)?1:pt]}throw new ColorError$1(tt)}function hash$1(tt){let nt=5381,et=tt.length;for(;et;)nt=nt*33^tt.charCodeAt(--et);return(nt>>>0)%2341}const colorToInt=tt=>parseInt(tt.replace(/_/g,""),36),compressedColorMap="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((tt,nt)=>{const et=colorToInt(nt.substring(0,3)),rt=colorToInt(nt.substring(3)).toString(16);let ot="";for(let at=0;at<6-rt.length;at++)ot+="0";return tt[et]=`${ot}${rt}`,tt},{});function nameToHex(tt){const nt=tt.toLowerCase().trim(),et=compressedColorMap[hash$1(nt)];if(!et)throw new ColorError$1(tt);return`#${et}`}const r=(tt,nt)=>Array.from(Array(nt)).map(()=>tt).join(""),reducedHexRegex=new RegExp(`^#${r("([a-f0-9])",3)}([a-f0-9])?$`,"i"),hexRegex=new RegExp(`^#${r("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),rgbaRegex=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),hslaRegex=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,namedColorRegex=/^[a-z]+$/i,roundColor=tt=>Math.round(tt*255),hslToRgb$1=(tt,nt,et)=>{let rt=et/100;if(nt===0)return[rt,rt,rt].map(roundColor);const ot=(tt%360+360)%360/60,at=(1-Math.abs(2*rt-1))*(nt/100),st=at*(1-Math.abs(ot%2-1));let ut=0,ct=0,pt=0;ot>=0&&ot<1?(ut=at,ct=st):ot>=1&&ot<2?(ut=st,ct=at):ot>=2&&ot<3?(ct=at,pt=st):ot>=3&&ot<4?(ct=st,pt=at):ot>=4&&ot<5?(ut=st,pt=at):ot>=5&&ot<6&&(ut=at,pt=st);const dt=rt-at/2,ft=ut+dt,bt=ct+dt,ht=pt+dt;return[ft,bt,ht].map(roundColor)};function parseToHsla(tt){const[nt,et,rt,ot]=parseToRgba(tt).map((ft,bt)=>bt===3?ft:ft/255),at=Math.max(nt,et,rt),st=Math.min(nt,et,rt),ut=(at+st)/2;if(at===st)return[0,0,ut,ot];const ct=at-st,pt=ut>.5?ct/(2-at-st):ct/(at+st);return[60*(nt===at?(et-rt)/ct+(et<rt?6:0):et===at?(rt-nt)/ct+2:(nt-et)/ct+4),pt,ut,ot]}function hsla(tt,nt,et,rt){return`hsla(${(tt%360).toFixed()}, ${guard(0,100,nt*100).toFixed()}%, ${guard(0,100,et*100).toFixed()}%, ${parseFloat(guard(0,1,rt).toFixed(3))})`}function darken(tt,nt){const[et,rt,ot,at]=parseToHsla(tt);return hsla(et,rt,ot-nt,at)}function getLuminance(tt){if(tt==="transparent")return 0;function nt(at){const st=at/255;return st<=.04045?st/12.92:Math.pow((st+.055)/1.055,2.4)}const[et,rt,ot]=parseToRgba(tt);return .2126*nt(et)+.7152*nt(rt)+.0722*nt(ot)}function rgba$1(tt,nt,et,rt){return`rgba(${guard(0,255,tt).toFixed()}, ${guard(0,255,nt).toFixed()}, ${guard(0,255,et).toFixed()}, ${parseFloat(guard(0,1,rt).toFixed(3))})`}function mix$1(tt,nt,et){const rt=(St,Et)=>Et===3?St:St/255,[ot,at,st,ut]=parseToRgba(tt).map(rt),[ct,pt,dt,ft]=parseToRgba(nt).map(rt),bt=ft-ut,ht=et*2-1,mt=((ht*bt===-1?ht:ht+bt/(1+ht*bt))+1)/2,Ot=1-mt,zt=(ot*Ot+ct*mt)*255,yt=(at*Ot+pt*mt)*255,vt=(st*Ot+dt*mt)*255,At=ft*et+ut*(1-et);return rgba$1(zt,yt,vt,At)}function lighten(tt,nt){return darken(tt,-nt)}function transparentize(tt,nt){const[et,rt,ot,at]=parseToRgba(tt);return rgba$1(et,rt,ot,at-nt)}function toHex(tt){const[nt,et,rt,ot]=parseToRgba(tt);let at=st=>{const ut=guard(0,255,st).toString(16);return ut.length===1?`0${ut}`:ut};return`#${at(nt)}${at(et)}${at(rt)}${ot<1?at(Math.round(ot*255)):""}`}const computeDerivedColors=tt=>{const{bodyText:nt,secondaryBg:et,bgColor:rt}=tt,ot=getLuminance(rt)>.5,at=ot?tt.blue:lighten(tt.blue,.2),st=transparentize(nt,.9),ut=transparentize(nt,.8),ct=transparentize(nt,.7),pt=transparentize(nt,.6),dt=transparentize(nt,.4),ft=ut,bt=st,ht=mix$1(rt,et,.5),Mt=ot?darken(ht,.3):lighten(ht,.6),mt=transparentize(Mt,.75),Ot=transparentize(Mt,.85),zt=lighten(rt,.025);return{linkText:at,fadedText05:st,fadedText10:ut,fadedText20:ct,fadedText40:pt,fadedText60:dt,bgMix:ht,darkenedBgMix100:Mt,darkenedBgMix25:mt,darkenedBgMix15:Ot,lightenedBg05:zt,borderColor:ft,borderColorLight:bt}};function hasLightBackgroundColor(tt){return getLuminance(tt.colors.bgColor)>.5}const createEmotionColors=tt=>{const nt=computeDerivedColors(tt);return{...tt,...nt,codeTextColor:tt.green80,codeHighlightColor:nt.bgMix,metricPositiveDeltaColor:tt.green,metricNegativeDeltaColor:tt.red,metricNeutralDeltaColor:nt.fadedText60,docStringModuleText:tt.bodyText,docStringTypeText:tt.green70,docStringContainerBackground:transparentize(tt.secondaryBg,.6),headingColor:tt.bodyText}};function getDividerColors(tt){const nt=hasLightBackgroundColor(tt),et=nt?tt.colors.blue60:tt.colors.blue90,rt=nt?tt.colors.green60:tt.colors.green90,ot=nt?tt.colors.orange60:tt.colors.orange90,at=nt?tt.colors.red60:tt.colors.red90,st=nt?tt.colors.purple60:tt.colors.purple80,ut=nt?tt.colors.gray40:tt.colors.gray70;return{blue:et,green:rt,orange:ot,red:at,violet:st,gray:ut,grey:ut,rainbow:`linear-gradient(to right, ${at}, ${ot}, ${rt}, ${et}, ${st})`}}function getMarkdownTextColors(tt){const nt=hasLightBackgroundColor(tt),et=nt?tt.colors.red80:tt.colors.red70,rt=nt?tt.colors.orange100:tt.colors.orange60,ot=nt?tt.colors.yellow100:tt.colors.yellow40,at=nt?tt.colors.green90:tt.colors.green60,st=nt?tt.colors.blue80:tt.colors.blue50,ut=nt?tt.colors.purple80:tt.colors.purple50,ct=nt?tt.colors.purple100:tt.colors.purple80,pt=nt?tt.colors.gray80:tt.colors.gray70,dt=tt.colors.primary;return{red:et,orange:rt,yellow:ot,green:at,blue:st,violet:ut,purple:ct,gray:pt,primary:dt}}function getMarkdownBgColors(tt){const nt=hasLightBackgroundColor(tt);return{redbg:transparentize(tt.colors[nt?"red80":"red60"],nt?.9:.7),orangebg:transparentize(tt.colors.yellow70,nt?.9:.7),yellowbg:transparentize(tt.colors[nt?"yellow70":"yellow50"],nt?.9:.7),greenbg:transparentize(tt.colors[nt?"green70":"green60"],nt?.9:.7),bluebg:transparentize(tt.colors[nt?"blue70":"blue60"],nt?.9:.7),violetbg:transparentize(tt.colors[nt?"purple70":"purple60"],nt?.9:.7),purplebg:transparentize(tt.colors[nt?"purple90":"purple80"],nt?.9:.7),graybg:transparentize(tt.colors[nt?"gray70":"gray50"],nt?.9:.7),primarybg:transparentize(tt.colors.primary,nt?.9:.7)}}function getGray70(tt){return hasLightBackgroundColor(tt)?tt.colors.gray70:tt.colors.gray30}function getGray30(tt){return hasLightBackgroundColor(tt)?tt.colors.gray30:tt.colors.gray85}function getGray90(tt){return hasLightBackgroundColor(tt)?tt.colors.gray90:tt.colors.gray10}function getBlue80(tt){return hasLightBackgroundColor(tt)?tt.colors.blue80:tt.colors.blue40}function getBlueArrayAsc(tt){const{colors:nt}=tt;return[nt.blue10,nt.blue20,nt.blue30,nt.blue40,nt.blue50,nt.blue60,nt.blue70,nt.blue80,nt.blue90,nt.blue100]}function getBlueArrayDesc(tt){const{colors:nt}=tt;return[nt.blue100,nt.blue90,nt.blue80,nt.blue70,nt.blue60,nt.blue50,nt.blue40,nt.blue30,nt.blue20,nt.blue10]}function getSequentialColorsArray(tt){return hasLightBackgroundColor(tt)?getBlueArrayAsc(tt):getBlueArrayDesc(tt)}function getDivergingColorsArray(tt){const{colors:nt}=tt;return[nt.red100,nt.red90,nt.red70,nt.red50,nt.red30,nt.blue30,nt.blue50,nt.blue70,nt.blue90,nt.blue100]}function getCategoricalColorsArray(tt){const{colors:nt}=tt;return hasLightBackgroundColor(tt)?[nt.blue80,nt.blue40,nt.red80,nt.red40,nt.blueGreen80,nt.green40,nt.orange80,nt.orange50,nt.purple80,nt.gray40]:[nt.blue40,nt.blue80,nt.red40,nt.red80,nt.green40,nt.blueGreen80,nt.orange50,nt.orange80,nt.purple80,nt.gray40]}function getDecreasingRed(tt){return hasLightBackgroundColor(tt)?tt.colors.red80:tt.colors.red40}function getIncreasingGreen(tt){return hasLightBackgroundColor(tt)?tt.colors.blueGreen80:tt.colors.green40}const breakpoints={hideWidgetDetails:180,hideNumberInputControls:120,sm:"576px",columns:"640px",md:"768px"},colors={transparent:"transparent",black:"#000000",white:"#ffffff",gray10:"#fafafa",gray20:"#f0f2f6",gray30:"#e6eaf1",gray40:"#d5dae5",gray50:"#bfc5d3",gray60:"#a3a8b8",gray70:"#808495",gray80:"#555867",gray85:"#31333F",gray90:"#262730",gray100:"#0e1117",red10:"#fff0f0",red20:"#ffdede",red30:"#ffc7c7",red40:"#ffabab",red50:"#ff8c8c",red60:"#ff6c6c",red70:"#ff4b4b",red80:"#ff2b2b",red90:"#bd4043",red100:"#7d353b",orange10:"#fffae8",orange20:"#fff6d0",orange30:"#ffecb0",orange40:"#ffe08e",orange50:"#ffd16a",orange60:"#ffbd45",orange70:"#ffa421",orange80:"#ff8700",orange90:"#ed6f13",orange100:"#d95a00",yellow10:"#ffffe1",yellow20:"#ffffc2",yellow30:"#ffffa0",yellow40:"#ffff7d",yellow50:"#ffff59",yellow60:"#fff835",yellow70:"#ffe312",yellow80:"#faca2b",yellow90:"#edbb16",yellow100:"#dea816",yellow110:"#916e10",green10:"#dffde9",green20:"#c0fcd3",green30:"#9ef6bb",green40:"#7defa1",green50:"#5ce488",green60:"#3dd56d",green70:"#21c354",green80:"#09ab3b",green90:"#158237",green100:"#177233",blueGreen10:"#dcfffb",blueGreen20:"#bafff7",blueGreen30:"#93ffee",blueGreen40:"#6bfde3",blueGreen50:"#45f4d5",blueGreen60:"#20e7c5",blueGreen70:"#00d4b1",blueGreen80:"#29b09d",blueGreen90:"#2c867c",blueGreen100:"#246e69",lightBlue10:"#e0feff",lightBlue20:"#bffdff",lightBlue30:"#9af8ff",lightBlue40:"#73efff",lightBlue50:"#4be4ff",lightBlue60:"#24d4ff",lightBlue70:"#00c0f2",lightBlue80:"#00a4d4",lightBlue90:"#0d8cb5",lightBlue100:"#15799e",blue10:"#e4f5ff",blue20:"#c7ebff",blue30:"#a6dcff",blue40:"#83c9ff",blue50:"#60b4ff",blue60:"#3d9df3",blue70:"#1c83e1",blue80:"#0068c9",blue90:"#0054a3",blue100:"#004280",purple10:"#f5ebff",purple20:"#ebd6ff",purple30:"#dbbbff",purple40:"#c89dff",purple50:"#b27eff",purple60:"#9a5dff",purple70:"#803df5",purple80:"#6d3fc0",purple90:"#583f84",purple100:"#3f3163"},iconSizes={xs:"0.5rem",sm:"0.75rem",md:"0.9rem",base:"1rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.8rem",threeXL:"2.3rem"},radii={md:"0.25rem",default:"0.5rem",xl:"0.75rem",xxl:"1rem",xxxl:"1.25rem",full:"9999px"},sizes={full:"100%",headerHeight:"3.75rem",fullScreenHeaderHeight:"2.875rem",sidebarTopSpace:"6rem",toastWidth:"21rem",contentMaxWidth:"46rem",maxChartTooltipWidth:"30rem",checkbox:"1rem",borderWidth:"1px",smallElementHeight:"1.5rem",minElementHeight:"2.5rem",largestElementHeight:"4.25rem",smallLogoHeight:"1.25rem",defaultLogoHeight:"1.5rem",largeLogoHeight:"2rem",sliderThumb:"0.75rem",wideSidePadding:"5rem",headerDecorationHeight:"0.125rem",appRunningMen:"1.6rem",appStatusMaxWidth:"20rem",spinnerSize:"1.375rem",spinnerThickness:"0.2rem",tabHeight:"2.5rem",minPopupWidth:"20rem",maxTooltipHeight:"18.75rem",chatAvatarSize:"2rem",clearIconSize:"1.5em",numberInputControlsWidth:"2rem",emptyDropdownHeight:"5.625rem",dropdownItemHeight:"2.5rem",maxDropdownHeight:"18.75rem",appDefaultBottomPadding:"3.5rem"},spacing$1={px:"1px",none:"0",threeXS:"0.125rem",twoXS:"0.25rem",xs:"0.375rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.25rem",twoXL:"1.5rem",threeXL:"2rem",fourXL:"4rem"},fonts={sansSerif:'"Source Sans Pro", sans-serif',monospace:'"Source Code Pro", monospace',serif:'"Source Serif Pro", serif',materialIcons:"Material Symbols Rounded"},genericFonts={bodyFont:fonts.sansSerif,codeFont:fonts.monospace,headingFont:fonts.sansSerif,iconFont:fonts.materialIcons},fontSizeTwoSmall=12,fontSizeSmall=14,fontSizeMedium=16,fontSizes={twoSm:`${fontSizeTwoSmall}px`,sm:`${fontSizeSmall}px`,md:"1rem",mdLg:"1.125rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.75rem",threeXL:"2.25rem",fourXL:"2.75rem",twoSmPx:fontSizeTwoSmall,smPx:fontSizeSmall,mdPx:fontSizeMedium},fontWeights={normal:400,bold:600,extrabold:700},lineHeights={none:1,headings:1.2,tight:1.25,inputWidget:1.4,small:1.5,base:1.6,menuItem:2},sidebar=100,menuButton=sidebar+10,balloons=1e6,header=balloons-10,bottom=sidebar-1,sidebarMobile=balloons-5,popupMenu=balloons+40,fullscreenWrapper=balloons+50,vegaTooltips=fullscreenWrapper+10,tablePortal=fullscreenWrapper+60,cacheSpinner=sidebar+1,toast=bottom+1,zIndices={hide:-1,auto:"auto",base:0,priority:1,sidebar,menuButton,balloons,header,sidebarMobile,popupMenu,fullscreenWrapper,tablePortal,bottom,cacheSpinner,toast,vegaTooltips},requiredThemeColors={bgColor:colors.white,secondaryBg:colors.gray20,bodyText:colors.gray85,warning:colors.yellow110,warningBg:transparentize(colors.yellow80,.8),success:colors.green100,successBg:transparentize(colors.green80,.8),infoBg:transparentize(colors.blue70,.9),info:colors.blue100,danger:colors.red100,dangerBg:transparentize(colors.red70,.8),primary:colors.red70,disabled:colors.gray40,lightestGray:colors.gray20,lightGray:colors.gray30,gray:colors.gray60,darkGray:colors.gray70,red:colors.red80,blue:colors.blue80,green:colors.green80,yellow:colors.yellow80},optionalThemeColors={},themeColors={...colors,...requiredThemeColors,...optionalThemeColors},emotionBaseTheme={inSidebar:!1,breakpoints,colors:createEmotionColors(themeColors),fonts,fontSizes,fontWeights,genericFonts,iconSizes,lineHeights,radii,sizes,spacing:spacing$1,zIndices},genericColors$1={...colors,navTextColor:colors.gray80,navActiveTextColor:colors.gray90,navIconColor:colors.gray60,sidebarControlColor:colors.gray70,warning:"#926C05",warningBg:transparentize(colors.yellow70,.9),successBg:transparentize(colors.green70,.9),danger:colors.red100,dangerBg:transparentize(colors.red80,.91)},emotionLightTheme={...emotionBaseTheme,inSidebar:!1,colors:createEmotionColors({...emotionBaseTheme.colors,...genericColors$1})},genericColors={...colors,bgColor:colors.gray100,secondaryBg:colors.gray90,bodyText:colors.gray10,navTextColor:colors.gray50,navActiveTextColor:colors.gray10,navIconColor:colors.gray70,sidebarControlColor:colors.gray10,warning:colors.yellow20,warningBg:transparentize(colors.yellow70,.8),success:colors.green10,successBg:transparentize(colors.green60,.8),info:colors.blue20,infoBg:transparentize(colors.blue60,.8),danger:colors.red20,dangerBg:transparentize(colors.red60,.8),primary:colors.red70,disabled:colors.gray70},emotionDarkTheme={...emotionBaseTheme,inSidebar:!1,colors:createEmotionColors({...emotionBaseTheme.colors,...genericColors})},createBaseThemePrimitives=(tt,nt)=>{const{colors:et,genericFonts:rt}=nt;return{...tt,primaryFontFamily:rt.bodyFont,primary100:et.primary,primary200:et.primary,primary300:et.primary,primary400:et.primary,primary500:et.primary,primary600:et.primary,primary700:et.primary,mono100:et.bgColor,mono200:et.secondaryBg,mono300:et.lightGray,mono400:et.lightGray,mono500:et.gray,mono600:et.fadedText40,mono700:et.gray,mono800:et.bodyText,mono900:et.bodyText,mono1000:et.black}},createThemeOverrides=tt=>{const{inSidebar:nt,colors:et,genericFonts:rt,fontSizes:ot,lineHeights:at,radii:st}=tt,ut={fontFamily:rt.bodyFont,fontSize:ot.md,fontSizeSm:ot.sm,fontWeight:"normal",lineHeight:at.base,lineHeightTight:at.tight},ct=et.widgetBackgroundColor?et.widgetBackgroundColor:et.secondaryBg,pt=nt?et.secondaryBg:et.bgColor,dt=nt?et.bgColor:et.secondaryBg;return{borders:{radius100:st.default,radius200:st.default,radius300:st.default,radius400:st.default,radius500:st.default,useRoundedCorners:!0,buttonBorderRadiusMini:st.md,buttonBorderRadius:st.default,checkboxBorderRadius:st.md,inputBorderRadiusMini:st.md,inputBorderRadius:st.default,popoverBorderRadius:st.default,surfaceBorderRadius:st.default,tagBorderRadius:st.md},typography:{font100:{},font150:{...ut},font200:{},font250:{},font300:{...ut},font350:{...ut},font400:{...ut},font450:{...ut},font460:{...ut},font470:{...ut},font500:{...ut},font600:{},LabelXSmall:{...ut},LabelSmall:{...ut},LabelMedium:{...ut},LabelLarge:{...ut},ParagraphSmall:{...ut}},colors:{white:et.white,black:et.black,primary:et.primary,primaryA:et.primary,backgroundPrimary:et.bgColor,backgroundSecondary:ct,backgroundTertiary:et.bgColor,borderOpaque:et.darkenedBgMix25,accent:transparentize(et.primary,.5),tagPrimarySolidBackground:et.primary,tagPrimaryFontDisabled:et.fadedText40,tagPrimaryOutlinedDisabled:et.transparent,borderSelected:et.primary,contentPrimary:et.bodyText,inputPlaceholder:et.fadedText60,tickFillDisabled:et.fadedText40,tickMarkFill:et.lightestGray,tickFillSelected:et.primary,datepickerBackground:pt,calendarBackground:pt,calendarForeground:et.bodyText,calendarDayForegroundPseudoSelected:et.bodyText,calendarHeaderBackground:dt,calendarHeaderBackgroundActive:dt,calendarHeaderForeground:et.bodyText,calendarHeaderForegroundDisabled:et.gray40,calendarDayBackgroundSelected:et.primary,calendarDayBackgroundSelectedHighlighted:et.primary,calendarDayForegroundSelected:et.white,calendarDayForegroundSelectedHighlighted:et.white,calendarDayForegroundPseudoSelectedHighlighted:et.bodyText,menuFontHighlighted:et.bodyText,menuFontSelected:et.bodyText,modalCloseColor:et.bodyText,notificationInfoBackground:et.infoBg,notificationInfoText:et.info,notificationPositiveBackground:et.successBg,notificationPositiveText:et.success,notificationWarningBackground:et.warningBg,notificationWarningText:et.warning,notificationNegativeBackground:et.dangerBg,notificationNegativeText:et.danger,progressbarTrackFill:ct,tickFill:et.lightenedBg05,tickMarkFillDisabled:et.lightenedBg05,menuFill:pt,buttonDisabledFill:et.lightenedBg05,tickFillHover:ct,inputFillDisabled:ct,inputFillActive:ct,toggleTrackFillDisabled:ct,tickFillActive:ct,sliderTrackFillDisabled:ct,inputBorder:et.widgetBorderColor||ct,inputFill:ct,inputEnhanceFill:ct,inputEnhancerFillDisabled:ct,buttonDisabledSpinnerBackground:et.gray40,toggleTrackFill:et.gray40,sliderTrackFill:et.gray40,sliderHandleInnerFill:et.gray40,sliderHandleInnerFillDisabled:et.gray40}}},createBaseUiTheme=(tt,nt=primitives)=>createLightTheme(createBaseThemePrimitives(nt,tt),createThemeOverrides(tt)),baseuiLightTheme=createBaseUiTheme(emotionLightTheme,primitives),baseuiDarkTheme=createBaseUiTheme(emotionDarkTheme,primitives$1),globalStyles=tt=>css$2("html{font-size:",tt.fontSizes.mdPx,"px;}@media print{html{height:100%;print-color-adjust:exact;-webkit-print-color-adjust:exact;}}*,*::before,*::after{box-sizing:border-box;}body{margin:0;font-family:",tt.genericFonts.bodyFont,";font-weight:",tt.fontWeights.normal,";line-height:",tt.lineHeights.base,";color:",tt.colors.bodyText,";background-color:",tt.colors.bgColor,";-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:",transparentize(tt.colors.black,1),';-webkit-font-smoothing:auto;}body.embedded{overflow:hidden;}body.embedded:hover{overflow:auto;}[tabindex="-1"]:focus:not(:focus-visible){outline:0 !important;}p,ol,ul,dl{margin:0 0 1rem 0;padding:0;font-size:1rem;font-weight:400;}ol ol,ul ul,ol ul,ul ol{margin-bottom:0;}a:not([href]):not([class]){&,&:hover{color:inherit;text-decoration:none;}}img,svg{vertical-align:middle;}input,button,select,optgroup,textarea{margin:0;font-family:inherit;line-height:inherit;font-size:inherit;}button,input{overflow:visible;}button,[role="button"]{&:not(:disabled){cursor:pointer;}}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button;}[hidden]{display:none !important;}::-webkit-scrollbar{background:transparent;border-radius:100px;height:6px;width:6px;}::-webkit-scrollbar:active{background:',tt.colors.fadedText10,";}:hover::-webkit-scrollbar-thumb:vertical,:hover::-webkit-scrollbar-thumb:horizontal{background:",tt.colors.fadedText40,";border-radius:100px;}"),baseTheme={name:"base",emotion:emotionBaseTheme,basewebTheme:baseuiLightTheme,primitives},darkTheme={name:"Dark",emotion:emotionDarkTheme,basewebTheme:baseuiDarkTheme,primitives:primitives$1},lightTheme={name:"Light",emotion:emotionLightTheme,basewebTheme:baseuiLightTheme,primitives},UPPERCASE=/[\p{Lu}]/u,LOWERCASE=/[\p{Ll}]/u,LEADING_CAPITAL=/^[\p{Lu}](?![\p{Lu}])/gu,IDENTIFIER=/([\p{Alpha}\p{N}_]|$)/u,SEPARATORS=/[_.\- ]+/,LEADING_SEPARATORS=new RegExp("^"+SEPARATORS.source),SEPARATORS_AND_IDENTIFIER=new RegExp(SEPARATORS.source+IDENTIFIER.source,"gu"),NUMBERS_AND_IDENTIFIER=new RegExp("\\d+"+IDENTIFIER.source,"gu"),preserveCamelCase=(tt,nt,et,rt)=>{let ot=!1,at=!1,st=!1,ut=!1;for(let ct=0;ct<tt.length;ct++){const pt=tt[ct];ut=ct>2?tt[ct-3]==="-":!0,ot&&UPPERCASE.test(pt)?(tt=tt.slice(0,ct)+"-"+tt.slice(ct),ot=!1,st=at,at=!0,ct++):at&&st&&LOWERCASE.test(pt)&&(!ut||rt)?(tt=tt.slice(0,ct-1)+"-"+tt.slice(ct-1),st=at,at=!1,ot=!0):(ot=nt(pt)===pt&&et(pt)!==pt,st=at,at=et(pt)===pt&&nt(pt)!==pt)}return tt},preserveConsecutiveUppercase=(tt,nt)=>(LEADING_CAPITAL.lastIndex=0,tt.replace(LEADING_CAPITAL,et=>nt(et))),postProcess=(tt,nt)=>(SEPARATORS_AND_IDENTIFIER.lastIndex=0,NUMBERS_AND_IDENTIFIER.lastIndex=0,tt.replace(SEPARATORS_AND_IDENTIFIER,(et,rt)=>nt(rt)).replace(NUMBERS_AND_IDENTIFIER,et=>nt(et)));function camelCase(tt,nt){if(!(typeof tt=="string"||Array.isArray(tt)))throw new TypeError("Expected the input to be `string | string[]`");if(nt={pascalCase:!1,preserveConsecutiveUppercase:!1,...nt},Array.isArray(tt)?tt=tt.map(at=>at.trim()).filter(at=>at.length).join("-"):tt=tt.trim(),tt.length===0)return"";const et=nt.locale===!1?at=>at.toLowerCase():at=>at.toLocaleLowerCase(nt.locale),rt=nt.locale===!1?at=>at.toUpperCase():at=>at.toLocaleUpperCase(nt.locale);return tt.length===1?SEPARATORS.test(tt)?"":nt.pascalCase?rt(tt):et(tt):(tt!==et(tt)&&(tt=preserveCamelCase(tt,et,rt,nt.preserveConsecutiveUppercase)),tt=tt.replace(LEADING_SEPARATORS,""),tt=nt.preserveConsecutiveUppercase?preserveConsecutiveUppercase(tt,et):et(tt),nt.pascalCase&&(tt=rt(tt.charAt(0))+tt.slice(1)),postProcess(tt,rt))}var ListCache$3=_ListCache;function stackClear$2(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$2;function stackDelete$2(tt){var nt=this.__data__,et=nt.delete(tt);return this.size=nt.size,et}var _stackDelete=stackDelete$2;function stackGet$2(tt){return this.__data__.get(tt)}var _stackGet=stackGet$2;function stackHas$2(tt){return this.__data__.has(tt)}var _stackHas=stackHas$2,ListCache$2=_ListCache,Map$3=_Map,MapCache$2=_MapCache,LARGE_ARRAY_SIZE$2=200;function stackSet$2(tt,nt){var et=this.__data__;if(et instanceof ListCache$2){var rt=et.__data__;if(!Map$3||rt.length<LARGE_ARRAY_SIZE$2-1)return rt.push([tt,nt]),this.size=++et.size,this;et=this.__data__=new MapCache$2(rt)}return et.set(tt,nt),this.size=et.size,this}var _stackSet=stackSet$2,ListCache$1=_ListCache,stackClear$1=_stackClear,stackDelete$1=_stackDelete,stackGet$1=_stackGet,stackHas$1=_stackHas,stackSet$1=_stackSet;function Stack$5(tt){var nt=this.__data__=new ListCache$1(tt);this.size=nt.size}Stack$5.prototype.clear=stackClear$1;Stack$5.prototype.delete=stackDelete$1;Stack$5.prototype.get=stackGet$1;Stack$5.prototype.has=stackHas$1;Stack$5.prototype.set=stackSet$1;var _Stack=Stack$5;function arrayEach$2(tt,nt){for(var et=-1,rt=tt==null?0:tt.length;++et<rt&&nt(tt[et],et,tt)!==!1;);return tt}var _arrayEach=arrayEach$2,defineProperty$2=_defineProperty$G;function baseAssignValue$6(tt,nt,et){nt=="__proto__"&&defineProperty$2?defineProperty$2(tt,nt,{configurable:!0,enumerable:!0,value:et,writable:!0}):tt[nt]=et}var _baseAssignValue=baseAssignValue$6,baseAssignValue$5=_baseAssignValue,eq$3=eq_1,objectProto$r=Object.prototype,hasOwnProperty$o=objectProto$r.hasOwnProperty;function assignValue$4(tt,nt,et){var rt=tt[nt];(!(hasOwnProperty$o.call(tt,nt)&&eq$3(rt,et))||et===void 0&&!(nt in tt))&&baseAssignValue$5(tt,nt,et)}var _assignValue=assignValue$4,assignValue$3=_assignValue,baseAssignValue$4=_baseAssignValue;function copyObject$7(tt,nt,et,rt){var ot=!et;et||(et={});for(var at=-1,st=nt.length;++at<st;){var ut=nt[at],ct=rt?rt(et[ut],tt[ut],ut,et,tt):void 0;ct===void 0&&(ct=tt[ut]),ot?baseAssignValue$4(et,ut,ct):assignValue$3(et,ut,ct)}return et}var _copyObject=copyObject$7,baseGetTag$5=_baseGetTag,isObjectLike$9=isObjectLike_1,argsTag$6="[object Arguments]";function baseIsArguments$2(tt){return isObjectLike$9(tt)&&baseGetTag$5(tt)==argsTag$6}var _baseIsArguments=baseIsArguments$2,baseIsArguments$1=_baseIsArguments,isObjectLike$8=isObjectLike_1,objectProto$q=Object.prototype,hasOwnProperty$n=objectProto$q.hasOwnProperty,propertyIsEnumerable$3=objectProto$q.propertyIsEnumerable,isArguments$5=baseIsArguments$1(function(){return arguments}())?baseIsArguments$1:function(tt){return isObjectLike$8(tt)&&hasOwnProperty$n.call(tt,"callee")&&!propertyIsEnumerable$3.call(tt,"callee")},isArguments_1=isArguments$5,isBuffer$8={exports:{}};function stubFalse$1(){return!1}var stubFalse_1=stubFalse$1;isBuffer$8.exports;(function(tt,nt){var et=_root,rt=stubFalse_1,ot=nt&&!nt.nodeType&&nt,at=ot&&!0&&tt&&!tt.nodeType&&tt,st=at&&at.exports===ot,ut=st?et.Buffer:void 0,ct=ut?ut.isBuffer:void 0,pt=ct||rt;tt.exports=pt})(isBuffer$8,isBuffer$8.exports);var isBufferExports=isBuffer$8.exports,baseGetTag$4=_baseGetTag,isLength$2=isLength_1,isObjectLike$7=isObjectLike_1,argsTag$5="[object Arguments]",arrayTag$4="[object Array]",boolTag$5="[object Boolean]",dateTag$5="[object Date]",errorTag$4="[object Error]",funcTag$3="[object Function]",mapTag$9="[object Map]",numberTag$5="[object Number]",objectTag$8="[object Object]",regexpTag$5="[object RegExp]",setTag$9="[object Set]",stringTag$6="[object String]",weakMapTag$4="[object WeakMap]",arrayBufferTag$5="[object ArrayBuffer]",dataViewTag$7="[object DataView]",float32Tag$3="[object Float32Array]",float64Tag$3="[object Float64Array]",int8Tag$3="[object Int8Array]",int16Tag$3="[object Int16Array]",int32Tag$3="[object Int32Array]",uint8Tag$3="[object Uint8Array]",uint8ClampedTag$3="[object Uint8ClampedArray]",uint16Tag$3="[object Uint16Array]",uint32Tag$3="[object Uint32Array]",typedArrayTags$1={};typedArrayTags$1[float32Tag$3]=typedArrayTags$1[float64Tag$3]=typedArrayTags$1[int8Tag$3]=typedArrayTags$1[int16Tag$3]=typedArrayTags$1[int32Tag$3]=typedArrayTags$1[uint8Tag$3]=typedArrayTags$1[uint8ClampedTag$3]=typedArrayTags$1[uint16Tag$3]=typedArrayTags$1[uint32Tag$3]=!0;typedArrayTags$1[argsTag$5]=typedArrayTags$1[arrayTag$4]=typedArrayTags$1[arrayBufferTag$5]=typedArrayTags$1[boolTag$5]=typedArrayTags$1[dataViewTag$7]=typedArrayTags$1[dateTag$5]=typedArrayTags$1[errorTag$4]=typedArrayTags$1[funcTag$3]=typedArrayTags$1[mapTag$9]=typedArrayTags$1[numberTag$5]=typedArrayTags$1[objectTag$8]=typedArrayTags$1[regexpTag$5]=typedArrayTags$1[setTag$9]=typedArrayTags$1[stringTag$6]=typedArrayTags$1[weakMapTag$4]=!1;function baseIsTypedArray$2(tt){return isObjectLike$7(tt)&&isLength$2(tt.length)&&!!typedArrayTags$1[baseGetTag$4(tt)]}var _baseIsTypedArray=baseIsTypedArray$2;function baseUnary$6(tt){return function(nt){return tt(nt)}}var _baseUnary=baseUnary$6,_nodeUtil={exports:{}};_nodeUtil.exports;(function(tt,nt){var et=_freeGlobal,rt=nt&&!nt.nodeType&&nt,ot=rt&&!0&&tt&&!tt.nodeType&&tt,at=ot&&ot.exports===rt,st=at&&et.process,ut=function(){try{var ct=ot&&ot.require&&ot.require("util").types;return ct||st&&st.binding&&st.binding("util")}catch{}}();tt.exports=ut})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray$1=_baseIsTypedArray,baseUnary$5=_baseUnary,nodeUtil$3=_nodeUtilExports,nodeIsTypedArray$1=nodeUtil$3&&nodeUtil$3.isTypedArray,isTypedArray$5=nodeIsTypedArray$1?baseUnary$5(nodeIsTypedArray$1):baseIsTypedArray$1,isTypedArray_1=isTypedArray$5,baseTimes$1=_baseTimes,isArguments$4=isArguments_1,isArray$f=isArray_1,isBuffer$7=isBufferExports,isIndex$3=_isIndex,isTypedArray$4=isTypedArray_1,objectProto$p=Object.prototype,hasOwnProperty$m=objectProto$p.hasOwnProperty;function arrayLikeKeys$3(tt,nt){var et=isArray$f(tt),rt=!et&&isArguments$4(tt),ot=!et&&!rt&&isBuffer$7(tt),at=!et&&!rt&&!ot&&isTypedArray$4(tt),st=et||rt||ot||at,ut=st?baseTimes$1(tt.length,String):[],ct=ut.length;for(var pt in tt)(nt||hasOwnProperty$m.call(tt,pt))&&!(st&&(pt=="length"||ot&&(pt=="offset"||pt=="parent")||at&&(pt=="buffer"||pt=="byteLength"||pt=="byteOffset")||isIndex$3(pt,ct)))&&ut.push(pt);return ut}var _arrayLikeKeys=arrayLikeKeys$3,objectProto$o=Object.prototype;function isPrototype$4(tt){var nt=tt&&tt.constructor,et=typeof nt=="function"&&nt.prototype||objectProto$o;return tt===et}var _isPrototype=isPrototype$4;function overArg$3(tt,nt){return function(et){return tt(nt(et))}}var _overArg=overArg$3,overArg$2=_overArg,nativeKeys$2=overArg$2(Object.keys,Object),_nativeKeys=nativeKeys$2,isPrototype$3=_isPrototype,nativeKeys$1=_nativeKeys,objectProto$n=Object.prototype,hasOwnProperty$l=objectProto$n.hasOwnProperty;function baseKeys$2(tt){if(!isPrototype$3(tt))return nativeKeys$1(tt);var nt=[];for(var et in Object(tt))hasOwnProperty$l.call(tt,et)&&et!="constructor"&&nt.push(et);return nt}var _baseKeys=baseKeys$2,arrayLikeKeys$2=_arrayLikeKeys,baseKeys$1=_baseKeys,isArrayLike$5=isArrayLike_1;function keys$9(tt){return isArrayLike$5(tt)?arrayLikeKeys$2(tt):baseKeys$1(tt)}var keys_1=keys$9,copyObject$6=_copyObject,keys$8=keys_1;function baseAssign$1(tt,nt){return tt&&copyObject$6(nt,keys$8(nt),tt)}var _baseAssign=baseAssign$1;function nativeKeysIn$2(tt){var nt=[];if(tt!=null)for(var et in Object(tt))nt.push(et);return nt}var _nativeKeysIn=nativeKeysIn$2,isObject$a=isObject_1,isPrototype$2=_isPrototype,nativeKeysIn$1=_nativeKeysIn,objectProto$m=Object.prototype,hasOwnProperty$k=objectProto$m.hasOwnProperty;function baseKeysIn$2(tt){if(!isObject$a(tt))return nativeKeysIn$1(tt);var nt=isPrototype$2(tt),et=[];for(var rt in tt)rt=="constructor"&&(nt||!hasOwnProperty$k.call(tt,rt))||et.push(rt);return et}var _baseKeysIn=baseKeysIn$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeysIn$1=_baseKeysIn,isArrayLike$4=isArrayLike_1;function keysIn$6(tt){return isArrayLike$4(tt)?arrayLikeKeys$1(tt,!0):baseKeysIn$1(tt)}var keysIn_1=keysIn$6,copyObject$5=_copyObject,keysIn$5=keysIn_1;function baseAssignIn$1(tt,nt){return tt&&copyObject$5(nt,keysIn$5(nt),tt)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(tt,nt){var et=_root,rt=nt&&!nt.nodeType&&nt,ot=rt&&!0&&tt&&!tt.nodeType&&tt,at=ot&&ot.exports===rt,st=at?et.Buffer:void 0,ut=st?st.allocUnsafe:void 0;function ct(pt,dt){if(dt)return pt.slice();var ft=pt.length,bt=ut?ut(ft):new pt.constructor(ft);return pt.copy(bt),bt}tt.exports=ct})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;function copyArray$4(tt,nt){var et=-1,rt=tt.length;for(nt||(nt=Array(rt));++et<rt;)nt[et]=tt[et];return nt}var _copyArray=copyArray$4;function stubArray$3(){return[]}var stubArray_1=stubArray$3,arrayFilter$1=_arrayFilter,stubArray$2=stubArray_1,objectProto$l=Object.prototype,propertyIsEnumerable$2=objectProto$l.propertyIsEnumerable,nativeGetSymbols$2=Object.getOwnPropertySymbols,getSymbols$4=nativeGetSymbols$2?function(tt){return tt==null?[]:(tt=Object(tt),arrayFilter$1(nativeGetSymbols$2(tt),function(nt){return propertyIsEnumerable$2.call(tt,nt)}))}:stubArray$2,_getSymbols=getSymbols$4,copyObject$4=_copyObject,getSymbols$3=_getSymbols;function copySymbols$1(tt,nt){return copyObject$4(tt,getSymbols$3(tt),nt)}var _copySymbols=copySymbols$1;function arrayPush$4(tt,nt){for(var et=-1,rt=nt.length,ot=tt.length;++et<rt;)tt[ot+et]=nt[et];return tt}var _arrayPush=arrayPush$4,overArg$1=_overArg,getPrototype$4=overArg$1(Object.getPrototypeOf,Object),_getPrototype=getPrototype$4,arrayPush$3=_arrayPush,getPrototype$3=_getPrototype,getSymbols$2=_getSymbols,stubArray$1=stubArray_1,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols$1?function(tt){for(var nt=[];tt;)arrayPush$3(nt,getSymbols$2(tt)),tt=getPrototype$3(tt);return nt}:stubArray$1,_getSymbolsIn=getSymbolsIn$2,copyObject$3=_copyObject,getSymbolsIn$1=_getSymbolsIn;function copySymbolsIn$1(tt,nt){return copyObject$3(tt,getSymbolsIn$1(tt),nt)}var _copySymbolsIn=copySymbolsIn$1,arrayPush$2=_arrayPush,isArray$e=isArray_1;function baseGetAllKeys$3(tt,nt,et){var rt=nt(tt);return isArray$e(tt)?rt:arrayPush$2(rt,et(tt))}var _baseGetAllKeys=baseGetAllKeys$3,baseGetAllKeys$2=_baseGetAllKeys,getSymbols$1=_getSymbols,keys$7=keys_1;function getAllKeys$3(tt){return baseGetAllKeys$2(tt,keys$7,getSymbols$1)}var _getAllKeys=getAllKeys$3,baseGetAllKeys$1=_baseGetAllKeys,getSymbolsIn=_getSymbolsIn,keysIn$4=keysIn_1;function getAllKeysIn$2(tt){return baseGetAllKeys$1(tt,keysIn$4,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$2,getNative$4=_getNative,root$b=_root,DataView$3=getNative$4(root$b,"DataView"),_DataView=DataView$3,getNative$3=_getNative,root$a=_root,Promise$3=getNative$3(root$a,"Promise"),_Promise=Promise$3,getNative$2=_getNative,root$9=_root,Set$3=getNative$2(root$9,"Set"),_Set=Set$3,getNative$1=_getNative,root$8=_root,WeakMap$3=getNative$1(root$8,"WeakMap"),_WeakMap=WeakMap$3,DataView$2=_DataView,Map$2=_Map,Promise$2=_Promise,Set$2=_Set,WeakMap$2=_WeakMap,baseGetTag$3=_baseGetTag,toSource$1=_toSource,mapTag$8="[object Map]",objectTag$7="[object Object]",promiseTag$1="[object Promise]",setTag$8="[object Set]",weakMapTag$3="[object WeakMap]",dataViewTag$6="[object DataView]",dataViewCtorString$1=toSource$1(DataView$2),mapCtorString$1=toSource$1(Map$2),promiseCtorString$1=toSource$1(Promise$2),setCtorString$1=toSource$1(Set$2),weakMapCtorString$1=toSource$1(WeakMap$2),getTag$6=baseGetTag$3;(DataView$2&&getTag$6(new DataView$2(new ArrayBuffer(1)))!=dataViewTag$6||Map$2&&getTag$6(new Map$2)!=mapTag$8||Promise$2&&getTag$6(Promise$2.resolve())!=promiseTag$1||Set$2&&getTag$6(new Set$2)!=setTag$8||WeakMap$2&&getTag$6(new WeakMap$2)!=weakMapTag$3)&&(getTag$6=function(tt){var nt=baseGetTag$3(tt),et=nt==objectTag$7?tt.constructor:void 0,rt=et?toSource$1(et):"";if(rt)switch(rt){case dataViewCtorString$1:return dataViewTag$6;case mapCtorString$1:return mapTag$8;case promiseCtorString$1:return promiseTag$1;case setCtorString$1:return setTag$8;case weakMapCtorString$1:return weakMapTag$3}return nt});var _getTag=getTag$6,objectProto$k=Object.prototype,hasOwnProperty$j=objectProto$k.hasOwnProperty;function initCloneArray$1(tt){var nt=tt.length,et=new tt.constructor(nt);return nt&&typeof tt[0]=="string"&&hasOwnProperty$j.call(tt,"index")&&(et.index=tt.index,et.input=tt.input),et}var _initCloneArray=initCloneArray$1,root$7=_root,Uint8Array$4=root$7.Uint8Array,_Uint8Array=Uint8Array$4,Uint8Array$3=_Uint8Array;function cloneArrayBuffer$4(tt){var nt=new tt.constructor(tt.byteLength);return new Uint8Array$3(nt).set(new Uint8Array$3(tt)),nt}var _cloneArrayBuffer=cloneArrayBuffer$4,cloneArrayBuffer$3=_cloneArrayBuffer;function cloneDataView$1(tt,nt){var et=nt?cloneArrayBuffer$3(tt.buffer):tt.buffer;return new tt.constructor(et,tt.byteOffset,tt.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(tt){var nt=new tt.constructor(tt.source,reFlags.exec(tt));return nt.lastIndex=tt.lastIndex,nt}var _cloneRegExp=cloneRegExp$1,Symbol$5=_Symbol,symbolProto$3=Symbol$5?Symbol$5.prototype:void 0,symbolValueOf$2=symbolProto$3?symbolProto$3.valueOf:void 0;function cloneSymbol$1(tt){return symbolValueOf$2?Object(symbolValueOf$2.call(tt)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneTypedArray$3(tt,nt){var et=nt?cloneArrayBuffer$2(tt.buffer):tt.buffer;return new tt.constructor(et,tt.byteOffset,tt.length)}var _cloneTypedArray=cloneTypedArray$3,cloneArrayBuffer$1=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=_cloneSymbol,cloneTypedArray$2=_cloneTypedArray,boolTag$4="[object Boolean]",dateTag$4="[object Date]",mapTag$7="[object Map]",numberTag$4="[object Number]",regexpTag$4="[object RegExp]",setTag$7="[object Set]",stringTag$5="[object String]",symbolTag$5="[object Symbol]",arrayBufferTag$4="[object ArrayBuffer]",dataViewTag$5="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]";function initCloneByTag$1(tt,nt,et){var rt=tt.constructor;switch(nt){case arrayBufferTag$4:return cloneArrayBuffer$1(tt);case boolTag$4:case dateTag$4:return new rt(+tt);case dataViewTag$5:return cloneDataView(tt,et);case float32Tag$2:case float64Tag$2:case int8Tag$2:case int16Tag$2:case int32Tag$2:case uint8Tag$2:case uint8ClampedTag$2:case uint16Tag$2:case uint32Tag$2:return cloneTypedArray$2(tt,et);case mapTag$7:return new rt;case numberTag$4:case stringTag$5:return new rt(tt);case regexpTag$4:return cloneRegExp(tt);case setTag$7:return new rt;case symbolTag$5:return cloneSymbol(tt)}}var _initCloneByTag=initCloneByTag$1,isObject$9=isObject_1,objectCreate$1=Object.create,baseCreate$2=function(){function tt(){}return function(nt){if(!isObject$9(nt))return{};if(objectCreate$1)return objectCreate$1(nt);tt.prototype=nt;var et=new tt;return tt.prototype=void 0,et}}(),_baseCreate=baseCreate$2,baseCreate$1=_baseCreate,getPrototype$2=_getPrototype,isPrototype$1=_isPrototype;function initCloneObject$3(tt){return typeof tt.constructor=="function"&&!isPrototype$1(tt)?baseCreate$1(getPrototype$2(tt)):{}}var _initCloneObject=initCloneObject$3,getTag$5=_getTag,isObjectLike$6=isObjectLike_1,mapTag$6="[object Map]";function baseIsMap$1(tt){return isObjectLike$6(tt)&&getTag$5(tt)==mapTag$6}var _baseIsMap=baseIsMap$1,baseIsMap=_baseIsMap,baseUnary$4=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsMap=nodeUtil$2&&nodeUtil$2.isMap,isMap$1=nodeIsMap?baseUnary$4(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$4=_getTag,isObjectLike$5=isObjectLike_1,setTag$6="[object Set]";function baseIsSet$1(tt){return isObjectLike$5(tt)&&getTag$4(tt)==setTag$6}var _baseIsSet=baseIsSet$1,baseIsSet=_baseIsSet,baseUnary$3=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet$1=nodeIsSet?baseUnary$3(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack$4=_Stack,arrayEach$1=_arrayEach,assignValue$2=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer$2=_cloneBufferExports,copyArray$3=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys$2=_getAllKeys,getAllKeysIn$1=_getAllKeysIn,getTag$3=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject$2=_initCloneObject,isArray$d=isArray_1,isBuffer$6=isBufferExports,isMap=isMap_1,isObject$8=isObject_1,isSet=isSet_1,keys$6=keys_1,keysIn$3=keysIn_1,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$4="[object Arguments]",arrayTag$3="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$3="[object Error]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$6="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$4="[object String]",symbolTag$4="[object Symbol]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$4]=cloneableTags[arrayTag$3]=cloneableTags[arrayBufferTag$3]=cloneableTags[dataViewTag$4]=cloneableTags[boolTag$3]=cloneableTags[dateTag$3]=cloneableTags[float32Tag$1]=cloneableTags[float64Tag$1]=cloneableTags[int8Tag$1]=cloneableTags[int16Tag$1]=cloneableTags[int32Tag$1]=cloneableTags[mapTag$5]=cloneableTags[numberTag$3]=cloneableTags[objectTag$6]=cloneableTags[regexpTag$3]=cloneableTags[setTag$5]=cloneableTags[stringTag$4]=cloneableTags[symbolTag$4]=cloneableTags[uint8Tag$1]=cloneableTags[uint8ClampedTag$1]=cloneableTags[uint16Tag$1]=cloneableTags[uint32Tag$1]=!0;cloneableTags[errorTag$3]=cloneableTags[funcTag$2]=cloneableTags[weakMapTag$2]=!1;function baseClone$2(tt,nt,et,rt,ot,at){var st,ut=nt&CLONE_DEEP_FLAG$2,ct=nt&CLONE_FLAT_FLAG$1,pt=nt&CLONE_SYMBOLS_FLAG$2;if(et&&(st=ot?et(tt,rt,ot,at):et(tt)),st!==void 0)return st;if(!isObject$8(tt))return tt;var dt=isArray$d(tt);if(dt){if(st=initCloneArray(tt),!ut)return copyArray$3(tt,st)}else{var ft=getTag$3(tt),bt=ft==funcTag$2||ft==genTag$1;if(isBuffer$6(tt))return cloneBuffer$2(tt,ut);if(ft==objectTag$6||ft==argsTag$4||bt&&!ot){if(st=ct||bt?{}:initCloneObject$2(tt),!ut)return ct?copySymbolsIn(tt,baseAssignIn(st,tt)):copySymbols(tt,baseAssign(st,tt))}else{if(!cloneableTags[ft])return ot?tt:{};st=initCloneByTag(tt,ft,ut)}}at||(at=new Stack$4);var ht=at.get(tt);if(ht)return ht;at.set(tt,st),isSet(tt)?tt.forEach(function(Ot){st.add(baseClone$2(Ot,nt,et,Ot,tt,at))}):isMap(tt)&&tt.forEach(function(Ot,zt){st.set(zt,baseClone$2(Ot,nt,et,zt,tt,at))});var Mt=pt?ct?getAllKeysIn$1:getAllKeys$2:ct?keysIn$3:keys$6,mt=dt?void 0:Mt(tt);return arrayEach$1(mt||tt,function(Ot,zt){mt&&(zt=Ot,Ot=tt[zt]),assignValue$2(st,zt,baseClone$2(Ot,nt,et,zt,tt,at))}),st}var _baseClone=baseClone$2,baseClone$1=_baseClone,CLONE_DEEP_FLAG$1=1,CLONE_SYMBOLS_FLAG$1=4;function cloneDeep(tt){return baseClone$1(tt,CLONE_DEEP_FLAG$1|CLONE_SYMBOLS_FLAG$1)}var cloneDeep_1=cloneDeep;const cloneDeep$1=getDefaultExportFromCjs$1(cloneDeep_1);var baseAssignValue$3=_baseAssignValue,eq$2=eq_1;function assignMergeValue$3(tt,nt,et){(et!==void 0&&!eq$2(tt[nt],et)||et===void 0&&!(nt in tt))&&baseAssignValue$3(tt,nt,et)}var _assignMergeValue=assignMergeValue$3;function createBaseFor$2(tt){return function(nt,et,rt){for(var ot=-1,at=Object(nt),st=rt(nt),ut=st.length;ut--;){var ct=st[tt?ut:++ot];if(et(at[ct],ct,at)===!1)break}return nt}}var _createBaseFor=createBaseFor$2,createBaseFor$1=_createBaseFor,baseFor$3=createBaseFor$1(),_baseFor=baseFor$3,baseGetTag$2=_baseGetTag,getPrototype$1=_getPrototype,isObjectLike$4=isObjectLike_1,objectTag$5="[object Object]",funcProto$3=Function.prototype,objectProto$j=Object.prototype,funcToString$3=funcProto$3.toString,hasOwnProperty$i=objectProto$j.hasOwnProperty,objectCtorString$1=funcToString$3.call(Object);function isPlainObject$6(tt){if(!isObjectLike$4(tt)||baseGetTag$2(tt)!=objectTag$5)return!1;var nt=getPrototype$1(tt);if(nt===null)return!0;var et=hasOwnProperty$i.call(nt,"constructor")&&nt.constructor;return typeof et=="function"&&et instanceof et&&funcToString$3.call(et)==objectCtorString$1}var isPlainObject_1=isPlainObject$6;function safeGet$3(tt,nt){if(!(nt==="constructor"&&typeof tt[nt]=="function")&&nt!="__proto__")return tt[nt]}var _safeGet=safeGet$3,copyObject$2=_copyObject,keysIn$2=keysIn_1;function toPlainObject$2(tt){return copyObject$2(tt,keysIn$2(tt))}var toPlainObject_1=toPlainObject$2,assignMergeValue$2=_assignMergeValue,cloneBuffer$1=_cloneBufferExports,cloneTypedArray$1=_cloneTypedArray,copyArray$2=_copyArray,initCloneObject$1=_initCloneObject,isArguments$3=isArguments_1,isArray$c=isArray_1,isArrayLikeObject$2=isArrayLikeObject_1,isBuffer$5=isBufferExports,isFunction$3=isFunction_1,isObject$7=isObject_1,isPlainObject$5=isPlainObject_1,isTypedArray$3=isTypedArray_1,safeGet$2=_safeGet,toPlainObject$1=toPlainObject_1;function baseMergeDeep$2(tt,nt,et,rt,ot,at,st){var ut=safeGet$2(tt,et),ct=safeGet$2(nt,et),pt=st.get(ct);if(pt){assignMergeValue$2(tt,et,pt);return}var dt=at?at(ut,ct,et+"",tt,nt,st):void 0,ft=dt===void 0;if(ft){var bt=isArray$c(ct),ht=!bt&&isBuffer$5(ct),Mt=!bt&&!ht&&isTypedArray$3(ct);dt=ct,bt||ht||Mt?isArray$c(ut)?dt=ut:isArrayLikeObject$2(ut)?dt=copyArray$2(ut):ht?(ft=!1,dt=cloneBuffer$1(ct,!0)):Mt?(ft=!1,dt=cloneTypedArray$1(ct,!0)):dt=[]:isPlainObject$5(ct)||isArguments$3(ct)?(dt=ut,isArguments$3(ut)?dt=toPlainObject$1(ut):(!isObject$7(ut)||isFunction$3(ut))&&(dt=initCloneObject$1(ct))):ft=!1}ft&&(st.set(ct,dt),ot(dt,ct,rt,at,st),st.delete(ct)),assignMergeValue$2(tt,et,dt)}var _baseMergeDeep=baseMergeDeep$2,Stack$3=_Stack,assignMergeValue$1=_assignMergeValue,baseFor$2=_baseFor,baseMergeDeep$1=_baseMergeDeep,isObject$6=isObject_1,keysIn$1=keysIn_1,safeGet$1=_safeGet;function baseMerge$2(tt,nt,et,rt,ot){tt!==nt&&baseFor$2(nt,function(at,st){if(ot||(ot=new Stack$3),isObject$6(at))baseMergeDeep$1(tt,nt,st,et,baseMerge$2,rt,ot);else{var ut=rt?rt(safeGet$1(tt,st),at,st+"",tt,nt,ot):void 0;ut===void 0&&(ut=at),assignMergeValue$1(tt,st,ut)}},keysIn$1)}var _baseMerge=baseMerge$2,baseRest$3=_baseRest,isIterateeCall$2=_isIterateeCall;function createAssigner$2(tt){return baseRest$3(function(nt,et){var rt=-1,ot=et.length,at=ot>1?et[ot-1]:void 0,st=ot>2?et[2]:void 0;for(at=tt.length>3&&typeof at=="function"?(ot--,at):void 0,st&&isIterateeCall$2(et[0],et[1],st)&&(at=ot<3?void 0:at,ot=1),nt=Object(nt);++rt<ot;){var ut=et[rt];ut&&tt(nt,ut,rt,at)}return nt})}var _createAssigner=createAssigner$2,baseMerge$1=_baseMerge,createAssigner$1=_createAssigner,merge$5=createAssigner$1(function(tt,nt,et){baseMerge$1(tt,nt,et)}),merge_1$1=merge$5;const merge$6=getDefaultExportFromCjs$1(merge_1$1);var toFinite=toFinite_1;function toInteger$2(tt){var nt=toFinite(tt),et=nt%1;return nt===nt?et?nt-et:nt:0}var toInteger_1=toInteger$2,toInteger$1=toInteger_1,FUNC_ERROR_TEXT$4="Expected a function";function before$1(tt,nt){var et;if(typeof nt!="function")throw new TypeError(FUNC_ERROR_TEXT$4);return tt=toInteger$1(tt),function(){return--tt>0&&(et=nt.apply(this,arguments)),tt<=1&&(nt=void 0),et}}var before_1=before$1,before=before_1;function once(tt){return before(2,tt)}var once_1=once;const once$1=getDefaultExportFromCjs$1(once_1);function logMessage(...tt){}function logWarning(...tt){}function logError(...tt){console.error(...tt)}function logAlways(...tt){console.log(...tt)}const CACHED_THEME_VERSION=1,CACHED_THEME_BASE_KEY=`stActiveTheme-${window.location.pathname}`,LocalStore={CACHED_THEME_VERSION,CACHED_THEME_BASE_KEY,ACTIVE_THEME:`${CACHED_THEME_BASE_KEY}-v${CACHED_THEME_VERSION}`},localStorageAvailable=()=>{const tt="testData";try{const{localStorage:nt}=window;nt.setItem(tt,tt),nt.getItem(tt),nt.removeItem(tt)}catch{return!1}return!0},AUTO_THEME_NAME="Use system setting",CUSTOM_THEME_NAME="Custom Theme";function mergeTheme(tt,nt){if(nt&&isObject$h(nt)){const et=new CustomThemeConfig(nt);return createTheme(tt.name,et,tt)}return tt}const getMergedLightTheme=once$1(()=>{var tt;return mergeTheme(lightTheme,(tt=window.__streamlit)==null?void 0:tt.LIGHT_THEME)}),getMergedDarkTheme=once$1(()=>{var tt;return mergeTheme(darkTheme,(tt=window.__streamlit)==null?void 0:tt.DARK_THEME)}),getSystemTheme=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?getMergedDarkTheme():getMergedLightTheme(),createAutoTheme=()=>({...getSystemTheme(),name:AUTO_THEME_NAME}),createPresetThemes=()=>[createAutoTheme(),getMergedLightTheme(),getMergedDarkTheme()],isPresetTheme=tt=>createPresetThemes().map(et=>et.name).includes(tt.name),fontToEnum=tt=>{const nt=Object.keys(fonts).find(rt=>fonts[rt]===tt),et=CustomThemeConfig.FontFamily.SANS_SERIF;if(nt){const rt=decamelize$2(nt).toUpperCase();return rt in CustomThemeConfig.FontFamily?CustomThemeConfig.FontFamily[rt]:et}return et},fontEnumToString=tt=>tt!=null&&tt in CustomThemeConfig.FontFamily?fonts[camelCase(CustomThemeConfig.FontFamily[tt].toString())]:void 0,bgColorToBaseString=tt=>tt===void 0||getLuminance(tt)>.5?"light":"dark",isColor=tt=>{const nt=new Option().style;return nt.color=tt,nt.color!==""},createEmotionTheme=(tt,nt=baseTheme)=>{const{colors:et,genericFonts:rt}=nt.emotion,{font:ot,radii:at,fontSizes:st,...ut}=tt,ct=fontEnumToString(ot),pt=Object.entries(ut).reduce((vt,[At,St])=>(isColor(St)?vt[At]=St:isColor(`#${St}`)&&(vt[At]=`#${St}`),vt),{}),{secondaryBackgroundColor:dt,backgroundColor:ft,primaryColor:bt,textColor:ht,skeletonBackgroundColor:Mt,widgetBackgroundColor:mt,widgetBorderColor:Ot}=pt,zt={...et};bt&&(zt.primary=bt),ht&&(zt.bodyText=ht),dt&&(zt.secondaryBg=dt),ft&&(zt.bgColor=ft),mt&&(zt.widgetBackgroundColor=mt),Ot&&(zt.widgetBorderColor=Ot),Mt&&(zt.skeletonBackgroundColor=Mt);const yt={};return at&&(yt.radii={...nt.emotion.radii},at.checkboxRadius&&(yt.radii.md=addPxUnit(at.checkboxRadius)),at.baseWidgetRadius&&(yt.radii.default=addPxUnit(at.baseWidgetRadius))),st&&(yt.fontSizes={...nt.emotion.fontSizes},st.tinyFontSize&&(yt.fontSizes.twoSm=addPxUnit(st.tinyFontSize),yt.fontSizes.twoSmPx=st.tinyFontSize),st.smallFontSize&&(yt.fontSizes.sm=addPxUnit(st.smallFontSize),yt.fontSizes.smPx=st.smallFontSize),st.baseFontSize&&(yt.fontSizes.md=addPxUnit(st.baseFontSize),yt.fontSizes.mdPx=st.baseFontSize)),{...nt.emotion,colors:createEmotionColors(zt),genericFonts:{...rt,...ct&&{bodyFont:tt.bodyFont?tt.bodyFont:ct,headingFont:tt.bodyFont?tt.bodyFont:ct,codeFont:tt.codeFont?tt.codeFont:rt.codeFont}},...yt}},toThemeInput=tt=>{const{colors:nt,genericFonts:et}=tt;return{primaryColor:nt.primary,backgroundColor:nt.bgColor,secondaryBackgroundColor:nt.secondaryBg,textColor:nt.bodyText,font:fontToEnum(et.bodyFont)}},toExportedTheme=tt=>{const{colors:nt}=tt,et=toThemeInput(tt);return{primaryColor:et.primaryColor,backgroundColor:et.backgroundColor,secondaryBackgroundColor:et.secondaryBackgroundColor,textColor:et.textColor,base:bgColorToBaseString(et.backgroundColor),font:fontEnumToString(et.font),...computeDerivedColors(nt)}},completeThemeInput=(tt,nt)=>new CustomThemeConfig({...toThemeInput(nt.emotion),...tt}),createTheme=(tt,nt,et,rt=!1)=>{et?nt=completeThemeInput(nt,et):nt.base===CustomThemeConfig.BaseTheme.DARK?nt=completeThemeInput(nt,darkTheme):nt=completeThemeInput(nt,lightTheme);const ot=nt.backgroundColor,at=merge$6(cloneDeep$1(et||(getLuminance(ot)>.5?lightTheme:darkTheme)),{emotion:{inSidebar:rt}}),st=createEmotionTheme(nt,at);return{...at,name:tt,emotion:st,basewebTheme:createBaseUiTheme(st,at.primitives)}},getCachedTheme=()=>{if(!localStorageAvailable())return null;const tt=window.localStorage.getItem(LocalStore.ACTIVE_THEME);if(!tt)return null;const{name:nt,themeInput:et}=JSON.parse(tt);switch(nt){case lightTheme.name:return getMergedLightTheme();case darkTheme.name:return getMergedDarkTheme();default:return createTheme(nt,et)}},deleteOldCachedThemes=()=>{const{CACHED_THEME_VERSION:tt,CACHED_THEME_BASE_KEY:nt}=LocalStore,{localStorage:et}=window;et.removeItem("stActiveTheme"),et.removeItem(nt);for(let rt=1;rt<=tt;rt++)et.removeItem(`${nt}-v${rt}`)},setCachedTheme=tt=>{if(!localStorageAvailable()||(deleteOldCachedThemes(),isLightThemeInQueryParams()||isDarkThemeInQueryParams()))return;const nt={name:tt.name,...!isPresetTheme(tt)&&{themeInput:toThemeInput(tt.emotion)}};window.localStorage.setItem(LocalStore.ACTIVE_THEME,JSON.stringify(nt))},removeCachedTheme=()=>{localStorageAvailable()&&window.localStorage.removeItem(LocalStore.ACTIVE_THEME)},getHostSpecifiedTheme=()=>isLightThemeInQueryParams()?getMergedLightTheme():isDarkThemeInQueryParams()?getMergedDarkTheme():createAutoTheme(),getDefaultTheme=()=>{const tt=getCachedTheme();return tt&&tt.name!==AUTO_THEME_NAME?tt:getHostSpecifiedTheme()},whiteSpace$1=/\s+/;function computeSpacingStyle(tt,nt){return tt===""?"":tt.split(whiteSpace$1).map(et=>et==="0"?nt.spacing.none:et in nt.spacing?nt.spacing[et]:(logError(`Invalid spacing value: ${et}`),nt.spacing.none)).join(" ")}function addPxUnit(tt){return`${tt}px`}function blend(tt,nt){if(nt===void 0)return tt;const[et,rt,ot,at]=parseToRgba(tt);if(at===1)return tt;const[st,ut,ct,pt]=parseToRgba(nt),dt=at+pt*(1-at),ft=Math.round((at*et+pt*st*(1-at))/dt),bt=Math.round((at*rt+pt*ut*(1-at))/dt),ht=Math.round((at*ot+pt*ct*(1-at))/dt);return toHex(`rgba(${ft}, ${bt}, ${ht}, ${dt})`)}const convertRemToPx=tt=>parseFloat(tt.replace(/rem$/,""))*(parseFloat(getComputedStyle(document.documentElement).fontSize)||16),STALE_TRANSITION_PARAMS="1s ease-in 0.5s",STALE_STYLES={opacity:.33,transition:`opacity ${STALE_TRANSITION_PARAMS}`},LibContext=React$1.createContext({isFullScreen:!1,setFullScreen:()=>{},addScriptFinishedHandler:()=>{},removeScriptFinishedHandler:()=>{},activeTheme:baseTheme,setTheme:()=>{},availableThemes:[],addThemes:()=>{},onPageChange:()=>{},currentPageScriptHash:"",libConfig:{},fragmentIdsThisRun:[],locale:window.navigator.language});var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$3(function(tt){return reactPropsRegex.test(tt)||tt.charCodeAt(0)===111&&tt.charCodeAt(1)===110&&tt.charCodeAt(2)<91}),isDevelopment=!1,testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function tt(nt){return nt!=="theme"},getDefaultShouldForwardProp=function tt(nt){return typeof nt=="string"&&nt.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function tt(nt,et,rt){var ot;if(et){var at=et.shouldForwardProp;ot=nt.__emotion_forwardProp&&at?function(st){return nt.__emotion_forwardProp(st)&&at(st)}:at}return typeof ot!="function"&&rt&&(ot=nt.__emotion_forwardProp),ot},Insertion=function tt(nt){var et=nt.cache,rt=nt.serialized,ot=nt.isStringTag;return registerStyles(et,rt,ot),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(et,rt,ot)}),null},createStyled=function tt(nt,et){var rt=nt.__emotion_real===nt,ot=rt&&nt.__emotion_base||nt,at,st;et!==void 0&&(at=et.label,st=et.target);var ut=composeShouldForwardProps(nt,et,rt),ct=ut||getDefaultShouldForwardProp(ot),pt=!ct("as");return function(){var dt=arguments,ft=rt&&nt.__emotion_styles!==void 0?nt.__emotion_styles.slice(0):[];if(at!==void 0&&ft.push("label:"+at+";"),dt[0]==null||dt[0].raw===void 0)ft.push.apply(ft,dt);else{var bt=dt[0];ft.push(bt[0]);for(var ht=dt.length,Mt=1;Mt<ht;Mt++)ft.push(dt[Mt],bt[Mt])}var mt=withEmotionCache(function(Ot,zt,yt){var vt=pt&&Ot.as||ot,At="",St=[],Et=Ot;if(Ot.theme==null){Et={};for(var Tt in Ot)Et[Tt]=Ot[Tt];Et.theme=reactExports.useContext(ThemeContext$1)}typeof Ot.className=="string"?At=getRegisteredStyles(zt.registered,St,Ot.className):Ot.className!=null&&(At=Ot.className+" ");var Rt=serializeStyles(ft.concat(St),zt.registered,Et);At+=zt.key+"-"+Rt.name,st!==void 0&&(At+=" "+st);var Ct=pt&&ut===void 0?getDefaultShouldForwardProp(vt):ct,wt={};for(var Lt in Ot)pt&&Lt==="as"||Ct(Lt)&&(wt[Lt]=Ot[Lt]);return wt.className=At,yt&&(wt.ref=yt),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Insertion,{cache:zt,serialized:Rt,isStringTag:typeof vt=="string"}),reactExports.createElement(vt,wt))});return mt.displayName=at!==void 0?at:"Styled("+(typeof ot=="string"?ot:ot.displayName||ot.name||"Component")+")",mt.defaultProps=nt.defaultProps,mt.__emotion_real=mt,mt.__emotion_base=ot,mt.__emotion_styles=ft,mt.__emotion_forwardProp=ut,Object.defineProperty(mt,"toString",{value:function(){return st===void 0&&isDevelopment?"NO_COMPONENT_SELECTOR":"."+st}}),mt.withComponent=function(Ot,zt){var yt=tt(Ot,_extends$Q({},et,zt,{shouldForwardProp:composeShouldForwardProps(mt,zt,!0)}));return yt.apply(void 0,ft)},mt}},tags=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],newStyled=createStyled.bind(null);tags.forEach(function(tt){newStyled[tt]=newStyled(tt)});var SIZE$3={small:"small",medium:"medium",large:"large"},spin={from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},StyledSpinner=styled("i",function(tt){var nt=tt.$theme,et=tt.$color,rt=et===void 0?nt.colors.contentAccent:et,ot=tt.$borderWidth,at=tt.$size,st=at===void 0?SIZE$3.medium:at,ut={large:nt.sizing.scale300,medium:nt.sizing.scale100,small:nt.sizing.scale0}[ot||st],ct={large:nt.sizing.scale1000,medium:nt.sizing.scale900,small:nt.sizing.scale800}[st];return ut||(ut=nt.sizing[ot],ut||(ut="".concat(parseInt(ot),"px"))),ct||(ct=nt.sizing[st],ct||(ct="".concat(parseInt(st),"px"))),{display:"block",animationName:spin,animationDuration:nt.animation.timing1000,animationIterationCount:"infinite",animationTimingFunction:"linear",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderRadius:"50%",borderTopColor:rt,borderRightColor:nt.colors.backgroundTertiary,borderBottomColor:nt.colors.backgroundTertiary,borderLeftColor:nt.colors.backgroundTertiary,borderLeftWidth:ut,borderRightWidth:ut,borderTopWidth:ut,borderBottomWidth:ut,width:ct,height:ct,cursor:"wait"}});StyledSpinner.displayName="StyledSpinner";StyledSpinner.displayName="StyledSpinner";const StyledSpinnerIcon=newStyled(StyledSpinner,{shouldForwardProp:tt=>isPropValid(tt)&&!["size"].includes(tt),target:"el2m2t40"})(({usingCustomTheme:tt,size:nt,margin:et,padding:rt,theme:ot})=>({width:ot.iconSizes[nt],height:ot.iconSizes[nt],fontSize:ot.iconSizes[nt],justifyContents:"center",margin:computeSpacingStyle(et,ot),padding:computeSpacingStyle(rt,ot),borderColor:ot.colors.borderColor,borderTopColor:tt?ot.colors.primary:ot.colors.blue70,borderWidth:ot.sizes.spinnerThickness,flexGrow:0,flexShrink:0})),StyledIcon=newStyled("span",{shouldForwardProp:tt=>isPropValid(tt)&&!["size","as"].includes(tt),target:"el2m2t41"})(({color:tt,size:nt,margin:et,padding:rt,theme:ot})=>({color:ot.colors[tt],fill:"currentColor",display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:ot.iconSizes[nt],width:ot.iconSizes[nt],height:ot.iconSizes[nt],margin:computeSpacingStyle(et,ot),padding:computeSpacingStyle(rt,ot),flexShrink:0})),StyledDynamicIcon=newStyled("span",{target:"el2m2t42"})(({size:tt="lg",margin:nt="",padding:et="",theme:rt})=>({fill:"currentColor",display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:rt.iconSizes[tt],width:rt.iconSizes[tt],height:rt.iconSizes[tt],margin:computeSpacingStyle(nt,rt),padding:computeSpacingStyle(et,rt),flexShrink:0})),StyledImageIcon=newStyled("img",{target:"el2m2t43"})(({})=>({width:"100%",height:"100%"})),StyledEmojiIcon=newStyled("span",{target:"el2m2t44"})(({size:tt,margin:nt,padding:et,theme:rt})=>({display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:rt.iconSizes[tt],width:rt.iconSizes[tt],height:rt.iconSizes[tt],margin:computeSpacingStyle(nt,rt),padding:computeSpacingStyle(et,rt)})),getDefaultProps$1=({size:tt,margin:nt,padding:et})=>({size:tt||"md",margin:nt||"",padding:et||""}),Icon$2=({content:tt,color:nt,size:et,margin:rt,padding:ot,testid:at})=>jsx$1(StyledIcon,{as:tt,color:nt||"inherit","aria-hidden":"true","data-testid":at,...getDefaultProps$1({size:et,margin:rt,padding:ot})}),EmojiIcon=({size:tt,margin:nt,padding:et,children:rt,testid:ot})=>jsx$1(StyledEmojiIcon,{"data-testid":ot||"stIconEmoji","aria-hidden":"true",...getDefaultProps$1({size:tt,margin:nt,padding:et}),children:rt});function arrayReduce$1(tt,nt,et,rt){var ot=-1,at=tt==null?0:tt.length;for(rt&&at&&(et=tt[++ot]);++ot<at;)et=nt(et,tt[ot],ot,tt);return et}var _arrayReduce=arrayReduce$1;function basePropertyOf$1(tt){return function(nt){return tt==null?void 0:tt[nt]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$6=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsCombo$2="["+rsComboRange$3+"]",reComboMark=RegExp(rsCombo$2,"g");function deburr$1(tt){return tt=toString$6(tt),tt&&tt.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(tt){return tt.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(tt){return reHasUnicodeWord.test(tt)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange$2="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo$1="["+rsComboRange$2+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange$2+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$1+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$2+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ$2="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$2+"]?",rsOptJoin$1="(?:"+rsZWJ$2+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsEmoji="(?:"+[rsDingbat,rsRegional$1,rsSurrPair$1].join("|")+")"+rsSeq$1,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(tt){return tt.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString$5=toString_1,unicodeWords=_unicodeWords;function words$1(tt,nt,et){return tt=toString$5(tt),nt=et?void 0:nt,nt===void 0?hasUnicodeWord(tt)?unicodeWords(tt):asciiWords(tt):tt.match(nt)||[]}var words_1=words$1,arrayReduce=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$1(tt){return function(nt){return arrayReduce(words(deburr(nt).replace(reApos,"")),tt,"")}}var _createCompounder=createCompounder$1,createCompounder=_createCompounder,snakeCase=createCompounder(function(tt,nt,et){return tt+(et?"_":"")+nt.toLowerCase()}),snakeCase_1=snakeCase;const snakeCase$1=getDefaultExportFromCjs$1(snakeCase_1),StyledMaterialIcon=newStyled("span",{target:"ehwqgy00"})(({size:tt,margin:nt,padding:et,theme:rt,color:ot})=>({display:"inline-flex",alignItems:"center",justifyContents:"center",color:ot,fontSize:rt.iconSizes[tt],width:rt.iconSizes[tt],height:rt.iconSizes[tt],margin:computeSpacingStyle(nt,rt),padding:computeSpacingStyle(et,rt),userSelect:"none",fontFamily:rt.genericFonts.iconFont,fontWeight:rt.fontWeights.normal,fontStyle:"normal",lineHeight:rt.lineHeights.none,letterSpacing:"normal",textTransform:"none",whiteSpace:"nowrap",wordWrap:"normal",direction:"ltr",fontFeatureSettings:"liga",MozFontFeatureSettings:"liga",WebkitFontFeatureSettings:"liga",WebkitFontSmoothing:"antialiased"})),getDefaultProps=({size:tt,margin:nt,padding:et,color:rt})=>({size:tt||"md",margin:nt||"",padding:et||"",color:rt||"inherit"}),MaterialFontIcon=({iconName:tt,...nt})=>jsx$1(StyledMaterialIcon,{...getDefaultProps(nt),"data-testid":nt.testid||"stIconMaterial",translate:"no",children:snakeCase$1(tt)});function parseIconPackEntry(tt){const nt=tt.match(/^:(.+)\/(.+):$/);if(nt===null)return{pack:"emoji",icon:tt};const et=nt[1],rt=nt[2];return{pack:et,icon:rt}}function getFilledStarIconSrc(){return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg2MF84NDMpIj48cGF0aCBkPSJNOS45OTk5NCAxNC4zOTE2TDEzLjQ1ODMgMTYuNDgzM0MxNC4wOTE2IDE2Ljg2NjYgMTQuODY2NiAxNi4zIDE0LjY5OTkgMTUuNTgzM0wxMy43ODMzIDExLjY1TDE2Ljg0MTYgOC45OTk5N0MxNy4zOTk5IDguNTE2NjMgMTcuMDk5OSA3LjU5OTk3IDE2LjM2NjYgNy41NDE2M0wxMi4zNDE2IDcuMTk5OTdMMTAuNzY2NiAzLjQ4MzNDMTAuNDgzMyAyLjgwODMgOS41MTY2MSAyLjgwODMgOS4yMzMyNyAzLjQ4MzNMNy42NTgyNyA3LjE5MTYzTDMuNjMzMjcgNy41MzMzQzIuODk5OTQgNy41OTE2MyAyLjU5OTk0IDguNTA4MyAzLjE1ODI3IDguOTkxNjNMNi4yMTY2MSAxMS42NDE2TDUuMjk5OTQgMTUuNTc1QzUuMTMzMjcgMTYuMjkxNiA1LjkwODI3IDE2Ljg1ODMgNi41NDE2MSAxNi40NzVMOS45OTk5NCAxNC4zOTE2WiIgZmlsbD0iI0ZBQ0EyQiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwXzE4NjBfODQzIj48cmVjdCB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIGZpbGw9IndoaXRlIi8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+"}const DynamicIconDispatcher=({iconValue:tt,...nt})=>{const{pack:et,icon:rt}=parseIconPackEntry(tt);switch(et){case"material":switch(rt){case"star_filled":return jsx$1(StyledDynamicIcon,{...nt,children:jsx$1(StyledImageIcon,{src:getFilledStarIconSrc(),"data-testid":nt.testid||"stImageIcon"})});default:return jsx$1(StyledDynamicIcon,{...nt,children:jsx$1(MaterialFontIcon,{pack:et,iconName:rt,...nt})})}case"emoji":default:return jsx$1(StyledDynamicIcon,{...nt,children:jsx$1(EmojiIcon,{...nt,children:rt})})}},DynamicIcon=tt=>jsx$1(reactExports.Suspense,{fallback:jsx$1(StyledDynamicIcon,{...tt,children:jsx$1(EmojiIcon,{...tt,children:" "})}),children:jsx$1(DynamicIconDispatcher,{...tt})},tt.iconValue),convert=function(tt){if(tt==null)return ok$1;if(typeof tt=="string")return typeFactory(tt);if(typeof tt=="object")return Array.isArray(tt)?anyFactory$1(tt):propsFactory(tt);if(typeof tt=="function")return castFactory$1(tt);throw new Error("Expected function, string, or object as test")};function anyFactory$1(tt){const nt=[];let et=-1;for(;++et<tt.length;)nt[et]=convert(tt[et]);return castFactory$1(rt);function rt(...ot){let at=-1;for(;++at<nt.length;)if(nt[at].call(this,...ot))return!0;return!1}}function propsFactory(tt){return castFactory$1(nt);function nt(et){let rt;for(rt in tt)if(et[rt]!==tt[rt])return!1;return!0}}function typeFactory(tt){return castFactory$1(nt);function nt(et){return et&&et.type===tt}}function castFactory$1(tt){return nt;function nt(et,...rt){return!!(et&&typeof et=="object"&&"type"in et&&tt.call(this,et,...rt))}}function ok$1(){return!0}function color(tt){return tt}const CONTINUE=!0,EXIT=!1,SKIP="skip",visitParents=function(tt,nt,et,rt){typeof nt=="function"&&typeof et!="function"&&(rt=et,et=nt,nt=null);const ot=convert(nt),at=rt?-1:1;st(tt,void 0,[])();function st(ut,ct,pt){const dt=ut&&typeof ut=="object"?ut:{};if(typeof dt.type=="string"){const bt=typeof dt.tagName=="string"?dt.tagName:typeof dt.name=="string"?dt.name:void 0;Object.defineProperty(ft,"name",{value:"node ("+(ut.type+(bt?"<"+bt+">":""))+")"})}return ft;function ft(){let bt=[],ht,Mt,mt;if((!nt||ot(ut,ct,pt[pt.length-1]||null))&&(bt=toResult(et(ut,pt)),bt[0]===EXIT))return bt;if(ut.children&&bt[0]!==SKIP)for(Mt=(rt?ut.children.length:-1)+at,mt=pt.concat(ut);Mt>-1&&Mt<ut.children.length;){if(ht=st(ut.children[Mt],Mt,mt)(),ht[0]===EXIT)return ht;Mt=typeof ht[1]=="number"?ht[1]:Mt+at}return bt}}};function toResult(tt){return Array.isArray(tt)?tt:typeof tt=="number"?[CONTINUE,tt]:[tt]}const visit=function(tt,nt,et,rt){typeof nt=="function"&&typeof et!="function"&&(rt=et,et=nt,nt=null),visitParents(tt,nt,ot,rt);function ot(at,st){const ut=st[st.length-1];return et(at,ut?ut.children.indexOf(at):null,ut)}},protocols=["http","https","mailto","tel"];function uriTransformer(tt){const nt=(tt||"").trim(),et=nt.charAt(0);if(et==="#"||et==="/")return nt;const rt=nt.indexOf(":");if(rt===-1)return nt;let ot=-1;for(;++ot<protocols.length;){const at=protocols[ot];if(rt===at.length&&nt.slice(0,at.length).toLowerCase()===at)return nt}return ot=nt.indexOf("?"),ot!==-1&&rt>ot||(ot=nt.indexOf("#"),ot!==-1&&rt>ot)?nt:"javascript:void(0)"}/*!
100
100
  * Determine if an object is a Buffer
101
101
  *
102
102
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -439,7 +439,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
439
439
  ${nt.stack}`)}}render(){const{error:nt}=this.state;return nt?nt.name==="ChunkLoadError"?jsx$1(ErrorElement,{width:this.props.width,name:"Network issue",message:jsxs("p",{children:["Cannot load Streamlit frontend code. This can happen when you update Streamlit while a Streamlit app is running.",jsx$1("br",{}),"To fix this, simply reload this app by pressing"," ",jsx$1(StyledInlineCode,{children:"F5"}),","," ",jsx$1(StyledInlineCode,{children:"Ctrl+R"}),", or"," ",jsx$1(StyledInlineCode,{children:"Cmd+R"}),".",jsx$1("br",{}),"If the error persists, try force-clearing your browser's cache as described"," ",jsx$1("a",{href:"https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Cache_clearing_and_disabling",rel:"noopener noreferrer",target:"_blank",children:"here"})]})}):jsx$1(ErrorElement,{width:this.props.width,name:nt.name,message:nt.message,stack:nt.stack}):this.props.children}};N1.getDerivedStateFromError=nt=>({error:nt});let ErrorBoundary=N1;var PLACEMENT={auto:"auto",topLeft:"topLeft",top:"top",topRight:"topRight",rightTop:"rightTop",right:"right",rightBottom:"rightBottom",bottomRight:"bottomRight",bottom:"bottom",bottomLeft:"bottomLeft",leftBottom:"leftBottom",left:"left",leftTop:"leftTop"},TRIGGER_TYPE={click:"click",hover:"hover"},STATE_CHANGE_TYPE$1={open:"open",close:"close"},ACCESSIBILITY_TYPE={none:"none",menu:"menu",tooltip:"tooltip"},POPOVER_MARGIN=8,ARROW_SIZE=6,ANIMATE_OUT_TIME=0,ANIMATE_IN_TIME=20,ARROW_WIDTH=Math.ceil(Math.sqrt(Math.pow(ARROW_SIZE*2,2)/2));function _typeof$c(tt){"@babel/helpers - typeof";return _typeof$c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},_typeof$c(tt)}function ownKeys$l(tt,nt){var et=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);nt&&(rt=rt.filter(function(ot){return Object.getOwnPropertyDescriptor(tt,ot).enumerable})),et.push.apply(et,rt)}return et}function _objectSpread$k(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt]!=null?arguments[nt]:{};nt%2?ownKeys$l(Object(et),!0).forEach(function(rt){_defineProperty$o(tt,rt,et[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(et)):ownKeys$l(Object(et)).forEach(function(rt){Object.defineProperty(tt,rt,Object.getOwnPropertyDescriptor(et,rt))})}return tt}function _classCallCheck$k(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$a(tt,nt){for(var et=0;et<nt.length;et++){var rt=nt[et];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(tt,rt.key,rt)}}function _createClass$i(tt,nt,et){return nt&&_defineProperties$a(tt.prototype,nt),Object.defineProperty(tt,"prototype",{writable:!1}),tt}function _inherits$k(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function");tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,writable:!0,configurable:!0}}),Object.defineProperty(tt,"prototype",{writable:!1}),nt&&_setPrototypeOf$a(tt,nt)}function _setPrototypeOf$a(tt,nt){return _setPrototypeOf$a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(rt,ot){return rt.__proto__=ot,rt},_setPrototypeOf$a(tt,nt)}function _createSuper$9(tt){var nt=_isNativeReflectConstruct$9();return function(){var rt=_getPrototypeOf$a(tt),ot;if(nt){var at=_getPrototypeOf$a(this).constructor;ot=Reflect.construct(rt,arguments,at)}else ot=rt.apply(this,arguments);return _possibleConstructorReturn$k(this,ot)}}function _possibleConstructorReturn$k(tt,nt){if(nt&&(_typeof$c(nt)==="object"||typeof nt=="function"))return nt;if(nt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$a(tt)}function _assertThisInitialized$a(tt){if(tt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt}function _isNativeReflectConstruct$9(){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 _getPrototypeOf$a(tt){return _getPrototypeOf$a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$a(tt)}function _defineProperty$o(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}var defaultStateReducer=function tt(nt,et){return et},StatefulContainer$1=function(tt){_inherits$k(et,tt);var nt=_createSuper$9(et);function et(){var rt;_classCallCheck$k(this,et);for(var ot=arguments.length,at=new Array(ot),st=0;st<ot;st++)at[st]=arguments[st];return rt=nt.call.apply(nt,[this].concat(at)),_defineProperty$o(_assertThisInitialized$a(rt),"state",_objectSpread$k({isOpen:!1},rt.props.initialState)),_defineProperty$o(_assertThisInitialized$a(rt),"onBlur",function(ut){rt.props.onBlur&&rt.props.onBlur(ut),!(rt.props.focusLock||rt.props.autoFocus)&&rt.close()}),_defineProperty$o(_assertThisInitialized$a(rt),"onClick",function(ut){rt.props.onClick&&rt.props.onClick(ut),rt.state.isOpen?rt.close():rt.open()}),_defineProperty$o(_assertThisInitialized$a(rt),"onClickOutside",function(){rt.close()}),_defineProperty$o(_assertThisInitialized$a(rt),"onEsc",function(){rt.close()}),_defineProperty$o(_assertThisInitialized$a(rt),"onFocus",function(ut){rt.props.onFocus&&rt.props.onFocus(ut),isFocusVisible(ut)&&rt.open()}),_defineProperty$o(_assertThisInitialized$a(rt),"onMouseEnter",function(ut){rt.props.onMouseEnter&&rt.props.onMouseEnter(ut),rt.open()}),_defineProperty$o(_assertThisInitialized$a(rt),"onMouseLeave",function(ut){rt.props.onMouseLeave&&rt.props.onMouseLeave(ut),rt.close()}),_defineProperty$o(_assertThisInitialized$a(rt),"onContentClose",function(){rt.close()}),_defineProperty$o(_assertThisInitialized$a(rt),"renderContent",function(){var ut=rt.props.content;return typeof ut=="function"?ut({close:rt.onContentClose}):ut}),rt}return _createClass$i(et,[{key:"open",value:function(){this.internalSetState(STATE_CHANGE_TYPE$1.open,{isOpen:!0}),this.props.onOpen&&this.props.onOpen()}},{key:"close",value:function(){this.internalSetState(STATE_CHANGE_TYPE$1.close,{isOpen:!1}),this.props.onClose&&this.props.onClose()}},{key:"internalSetState",value:function(ot,at){var st=this.props.stateReducer;if(typeof st!="function"){this.setState(at);return}this.setState(function(ut){return st(ot,at,ut)})}},{key:"render",value:function(){var ot=this.props,at=ot.accessibilityType,st=ot.autoFocus,ut=ot.animateOutTime,ct=ot.dismissOnClickOutside,pt=ot.dismissOnEsc,dt=ot.focusLock,ft=ot.ignoreBoundary,bt=ot.mountNode,ht=ot.onBlur,Mt=ot.onClick,mt=ot.onFocus,Ot=ot.onMouseEnter,zt=ot.onMouseLeave,yt=ot.onMouseEnterDelay,vt=ot.onMouseLeaveDelay,At=ot.overrides,St=ot.placement,Et=ot.popperOptions,Tt=ot.renderAll,Rt=ot.returnFocus,Ct=ot.showArrow,wt=ot.triggerType,Lt=ot.popoverMargin,Ht=ot.focusOptions,jt={accessibilityType:at,animateOutTime:ut,autoFocus:st,content:this.renderContent,focusLock:dt,ignoreBoundary:ft,isOpen:this.state.isOpen,mountNode:bt,onBlur:ht,onClick:Mt,onFocus:mt,onMouseEnter:Ot,onMouseLeave:zt,onMouseEnterDelay:yt,onMouseLeaveDelay:vt,overrides:At,placement:St,popperOptions:Et,renderAll:Tt,returnFocus:Rt,showArrow:Ct,triggerType:wt,popoverMargin:Lt,focusOptions:Ht};return ct&&(jt.onClickOutside=this.onClickOutside),pt&&(jt.onEsc=this.onEsc),wt===TRIGGER_TYPE.hover?(jt.onBlur=this.onBlur,jt.onFocus=this.onFocus,jt.onMouseEnter=this.onMouseEnter,jt.onMouseLeave=this.onMouseLeave):jt.onClick=this.onClick,this.props.children(jt)}}]),et}(reactExports.Component);_defineProperty$o(StatefulContainer$1,"defaultProps",{accessibilityType:ACCESSIBILITY_TYPE.menu,ignoreBoundary:!1,overrides:{},onMouseEnterDelay:200,onMouseLeaveDelay:200,placement:PLACEMENT.auto,popperOptions:{},showArrow:!1,triggerType:TRIGGER_TYPE.click,dismissOnClickOutside:!0,dismissOnEsc:!0,stateReducer:defaultStateReducer,popoverMargin:POPOVER_MARGIN});var FOCUS_GROUP="data-focus-lock",FOCUS_DISABLED="data-focus-lock-disabled",FOCUS_ALLOW="data-no-focus-lock",FOCUS_AUTO="data-autofocus-inside",FOCUS_NO_AUTOFOCUS="data-no-autofocus";function assignRef(tt,nt){return typeof tt=="function"?tt(nt):tt&&(tt.current=nt),tt}function useCallbackRef(tt,nt){var et=reactExports.useState(function(){return{value:tt,callback:nt,facade:{get current(){return et.value},set current(rt){var ot=et.value;ot!==rt&&(et.value=rt,et.callback(rt,ot))}}}})[0];return et.callback=nt,et.facade}var useIsomorphicLayoutEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,currentValues=new WeakMap;function useMergeRefs(tt,nt){var et=useCallbackRef(null,function(rt){return tt.forEach(function(ot){return assignRef(ot,rt)})});return useIsomorphicLayoutEffect(function(){var rt=currentValues.get(et);if(rt){var ot=new Set(rt),at=new Set(tt),st=et.current;ot.forEach(function(ut){at.has(ut)||assignRef(ut,null)}),at.forEach(function(ut){ot.has(ut)||assignRef(ut,st)})}currentValues.set(et,tt)},[tt]),et}var hiddenGuard={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function ItoI(tt){return tt}function innerCreateMedium(tt,nt){nt===void 0&&(nt=ItoI);var et=[],rt=!1,ot={read:function(){if(rt)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return et.length?et[et.length-1]:tt},useMedium:function(at){var st=nt(at,rt);return et.push(st),function(){et=et.filter(function(ut){return ut!==st})}},assignSyncMedium:function(at){for(rt=!0;et.length;){var st=et;et=[],st.forEach(at)}et={push:function(ut){return at(ut)},filter:function(){return et}}},assignMedium:function(at){rt=!0;var st=[];if(et.length){var ut=et;et=[],ut.forEach(at),st=et}var ct=function(){var dt=st;st=[],dt.forEach(at)},pt=function(){return Promise.resolve().then(ct)};pt(),et={push:function(dt){st.push(dt),pt()},filter:function(dt){return st=st.filter(dt),et}}}};return ot}function createMedium(tt,nt){return nt===void 0&&(nt=ItoI),innerCreateMedium(tt,nt)}function createSidecarMedium(tt){tt===void 0&&(tt={});var nt=innerCreateMedium(null);return nt.options=__assign$2({async:!0,ssr:!1},tt),nt}var mediumFocus=createMedium({},function(tt){var nt=tt.target,et=tt.currentTarget;return{target:nt,currentTarget:et}}),mediumBlur=createMedium(),mediumEffect=createMedium(),mediumSidecar=createSidecarMedium({async:!0,ssr:typeof document<"u"}),focusScope=reactExports.createContext(void 0),emptyArray=[],FocusLock=reactExports.forwardRef(function tt(nt,et){var rt,ot=reactExports.useState(),at=ot[0],st=ot[1],ut=reactExports.useRef(),ct=reactExports.useRef(!1),pt=reactExports.useRef(null),dt=reactExports.useState({}),ft=dt[1],bt=nt.children,ht=nt.disabled,Mt=ht===void 0?!1:ht,mt=nt.noFocusGuards,Ot=mt===void 0?!1:mt,zt=nt.persistentFocus,yt=zt===void 0?!1:zt,vt=nt.crossFrame,At=vt===void 0?!0:vt,St=nt.autoFocus,Et=St===void 0?!0:St;nt.allowTextSelection;var Tt=nt.group,Rt=nt.className,Ct=nt.whiteList,wt=nt.hasPositiveIndices,Lt=nt.shards,Ht=Lt===void 0?emptyArray:Lt,jt=nt.as,s0=jt===void 0?"div":jt,Ut=nt.lockProps,Yt=Ut===void 0?{}:Ut,O0=nt.sideCar,a0=nt.returnFocus,b0=a0===void 0?!1:a0,kt=nt.focusOptions,o0=nt.onActivation,qt=nt.onDeactivation,Dt=reactExports.useState({}),Bt=Dt[0],p0=reactExports.useCallback(function(Zt){var Kt=Zt.captureFocusRestore;if(!pt.current){var n0,c0=(n0=document)==null?void 0:n0.activeElement;pt.current=c0,c0!==document.body&&(pt.current=Kt(c0))}ut.current&&o0&&o0(ut.current),ct.current=!0,ft()},[o0]),r0=reactExports.useCallback(function(){ct.current=!1,qt&&qt(ut.current),ft()},[qt]),l0=reactExports.useCallback(function(Zt){var Kt=pt.current;if(Kt){var n0=(typeof Kt=="function"?Kt():Kt)||document.body,c0=typeof b0=="function"?b0(n0):b0;if(c0){var u0=typeof c0=="object"?c0:void 0;pt.current=null,Zt?Promise.resolve().then(function(){return n0.focus(u0)}):n0.focus(u0)}}},[b0]),f0=reactExports.useCallback(function(Zt){ct.current&&mediumFocus.useMedium(Zt)},[]),i0=mediumBlur.useMedium,$t=reactExports.useCallback(function(Zt){ut.current!==Zt&&(ut.current=Zt,st(Zt))},[]),It=_extends$Q((rt={},rt[FOCUS_DISABLED]=Mt&&"disabled",rt[FOCUS_GROUP]=Tt,rt),Yt),Vt=Ot!==!0,xt=Vt&&Ot!=="tail",Ft=useMergeRefs([et,$t]),Pt=reactExports.useMemo(function(){return{observed:ut,shards:Ht,enabled:!Mt,active:ct.current}},[Mt,ct.current,Ht,at]);return reactExports.createElement(reactExports.Fragment,null,Vt&&[reactExports.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:Mt?-1:0,style:hiddenGuard}),wt?reactExports.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:Mt?-1:1,style:hiddenGuard}):null],!Mt&&reactExports.createElement(O0,{id:Bt,sideCar:mediumSidecar,observed:at,disabled:Mt,persistentFocus:yt,crossFrame:At,autoFocus:Et,whiteList:Ct,shards:Ht,onActivation:p0,onDeactivation:r0,returnFocus:l0,focusOptions:kt,noFocusGuards:Ot}),reactExports.createElement(s0,_extends$Q({ref:Ft},It,{className:Rt,onBlur:i0,onFocus:f0}),reactExports.createElement(focusScope.Provider,{value:Pt},bt)),xt&&reactExports.createElement("div",{"data-focus-guard":!0,tabIndex:Mt?-1:0,style:hiddenGuard}))});FocusLock.propTypes={};function _inheritsLoose(tt,nt){tt.prototype=Object.create(nt.prototype),tt.prototype.constructor=tt,_setPrototypeOf$e(tt,nt)}function withSideEffect(tt,nt){function et(rt){return rt.displayName||rt.name||"Component"}return function(ot){var at=[],st;function ut(){st=tt(at.map(function(pt){return pt.props})),nt(st)}var ct=function(pt){_inheritsLoose(dt,pt);function dt(){return pt.apply(this,arguments)||this}dt.peek=function(){return st};var ft=dt.prototype;return ft.componentDidMount=function(){at.push(this),ut()},ft.componentDidUpdate=function(){ut()},ft.componentWillUnmount=function(){var ht=at.indexOf(this);at.splice(ht,1),ut()},ft.render=function(){return React$1.createElement(ot,this.props)},dt}(reactExports.PureComponent);return _defineProperty$u(ct,"displayName","SideEffect("+et(ot)+")"),ct}}var toArray$2=function(tt){for(var nt=Array(tt.length),et=0;et<tt.length;++et)nt[et]=tt[et];return nt},asArray=function(tt){return Array.isArray(tt)?tt:[tt]},getFirst=function(tt){return Array.isArray(tt)?tt[0]:tt},isElementHidden=function(tt){if(tt.nodeType!==Node.ELEMENT_NODE)return!1;var nt=window.getComputedStyle(tt,null);return!nt||!nt.getPropertyValue?!1:nt.getPropertyValue("display")==="none"||nt.getPropertyValue("visibility")==="hidden"},getParentNode=function(tt){return tt.parentNode&&tt.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?tt.parentNode.host:tt.parentNode},isTopNode=function(tt){return tt===document||tt&&tt.nodeType===Node.DOCUMENT_NODE},isInert=function(tt){return tt.hasAttribute("inert")},isVisibleUncached=function(tt,nt){return!tt||isTopNode(tt)||!isElementHidden(tt)&&!isInert(tt)&&nt(getParentNode(tt))},isVisibleCached=function(tt,nt){var et=tt.get(nt);if(et!==void 0)return et;var rt=isVisibleUncached(nt,isVisibleCached.bind(void 0,tt));return tt.set(nt,rt),rt},isAutoFocusAllowedUncached=function(tt,nt){return tt&&!isTopNode(tt)?isAutoFocusAllowed(tt)?nt(getParentNode(tt)):!1:!0},isAutoFocusAllowedCached=function(tt,nt){var et=tt.get(nt);if(et!==void 0)return et;var rt=isAutoFocusAllowedUncached(nt,isAutoFocusAllowedCached.bind(void 0,tt));return tt.set(nt,rt),rt},getDataset=function(tt){return tt.dataset},isHTMLButtonElement=function(tt){return tt.tagName==="BUTTON"},isHTMLInputElement=function(tt){return tt.tagName==="INPUT"},isRadioElement=function(tt){return isHTMLInputElement(tt)&&tt.type==="radio"},notHiddenInput=function(tt){return!((isHTMLInputElement(tt)||isHTMLButtonElement(tt))&&(tt.type==="hidden"||tt.disabled))},isAutoFocusAllowed=function(tt){var nt=tt.getAttribute(FOCUS_NO_AUTOFOCUS);return![!0,"true",""].includes(nt)},isGuard=function(tt){var nt;return!!(tt&&(!((nt=getDataset(tt))===null||nt===void 0)&&nt.focusGuard))},isNotAGuard=function(tt){return!isGuard(tt)},isDefined=function(tt){return!!tt},tabSort=function(tt,nt){var et=Math.max(0,tt.tabIndex),rt=Math.max(0,nt.tabIndex),ot=et-rt,at=tt.index-nt.index;if(ot){if(!et)return 1;if(!rt)return-1}return ot||at},getTabIndex=function(tt){return tt.tabIndex<0&&!tt.hasAttribute("tabindex")?0:tt.tabIndex},orderByTabIndex=function(tt,nt,et){return toArray$2(tt).map(function(rt,ot){var at=getTabIndex(rt);return{node:rt,index:ot,tabIndex:et&&at===-1?(rt.dataset||{}).focusGuard?0:-1:at}}).filter(function(rt){return!nt||rt.tabIndex>=0}).sort(tabSort)},tabbables=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],queryTabbables=tabbables.join(","),queryGuardTabbables="".concat(queryTabbables,", [data-focus-guard]"),getFocusablesWithShadowDom=function(tt,nt){return toArray$2((tt.shadowRoot||tt).children).reduce(function(et,rt){return et.concat(rt.matches(nt?queryGuardTabbables:queryTabbables)?[rt]:[],getFocusablesWithShadowDom(rt))},[])},getFocusablesWithIFrame=function(tt,nt){var et;return tt instanceof HTMLIFrameElement&&(!((et=tt.contentDocument)===null||et===void 0)&&et.body)?getFocusables([tt.contentDocument.body],nt):[tt]},getFocusables=function(tt,nt){return tt.reduce(function(et,rt){var ot,at=getFocusablesWithShadowDom(rt,nt),st=(ot=[]).concat.apply(ot,at.map(function(ut){return getFocusablesWithIFrame(ut,nt)}));return et.concat(st,rt.parentNode?toArray$2(rt.parentNode.querySelectorAll(queryTabbables)).filter(function(ut){return ut===rt}):[])},[])},getParentAutofocusables=function(tt){var nt=tt.querySelectorAll("[".concat(FOCUS_AUTO,"]"));return toArray$2(nt).map(function(et){return getFocusables([et])}).reduce(function(et,rt){return et.concat(rt)},[])},filterFocusable=function(tt,nt){return toArray$2(tt).filter(function(et){return isVisibleCached(nt,et)}).filter(function(et){return notHiddenInput(et)})},filterAutoFocusable=function(tt,nt){return nt===void 0&&(nt=new Map),toArray$2(tt).filter(function(et){return isAutoFocusAllowedCached(nt,et)})},getTabbableNodes=function(tt,nt,et){return orderByTabIndex(filterFocusable(getFocusables(tt,et),nt),!0,et)},getFocusableNodes=function(tt,nt){return orderByTabIndex(filterFocusable(getFocusables(tt),nt),!1)},parentAutofocusables=function(tt,nt){return filterFocusable(getParentAutofocusables(tt),nt)},contains=function(tt,nt){return tt.shadowRoot?contains(tt.shadowRoot,nt):Object.getPrototypeOf(tt).contains!==void 0&&Object.getPrototypeOf(tt).contains.call(tt,nt)?!0:toArray$2(tt.children).some(function(et){var rt;if(et instanceof HTMLIFrameElement){var ot=(rt=et.contentDocument)===null||rt===void 0?void 0:rt.body;return ot?contains(ot,nt):!1}return contains(et,nt)})},filterNested=function(tt){for(var nt=new Set,et=tt.length,rt=0;rt<et;rt+=1)for(var ot=rt+1;ot<et;ot+=1){var at=tt[rt].compareDocumentPosition(tt[ot]);(at&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&nt.add(ot),(at&Node.DOCUMENT_POSITION_CONTAINS)>0&&nt.add(rt)}return tt.filter(function(st,ut){return!nt.has(ut)})},getTopParent=function(tt){return tt.parentNode?getTopParent(tt.parentNode):tt},getAllAffectedNodes=function(tt){var nt=asArray(tt);return nt.filter(Boolean).reduce(function(et,rt){var ot=rt.getAttribute(FOCUS_GROUP);return et.push.apply(et,ot?filterNested(toArray$2(getTopParent(rt).querySelectorAll("[".concat(FOCUS_GROUP,'="').concat(ot,'"]:not([').concat(FOCUS_DISABLED,'="disabled"])')))):[rt]),et},[])},safeProbe=function(tt){try{return tt()}catch{return}},getActiveElement=function(tt){if(tt===void 0&&(tt=document),!(!tt||!tt.activeElement)){var nt=tt.activeElement;return nt.shadowRoot?getActiveElement(nt.shadowRoot):nt instanceof HTMLIFrameElement&&safeProbe(function(){return nt.contentWindow.document})?getActiveElement(nt.contentWindow.document):nt}},focusInFrame=function(tt,nt){return tt===nt},focusInsideIframe=function(tt,nt){return!!toArray$2(tt.querySelectorAll("iframe")).some(function(et){return focusInFrame(et,nt)})},focusInside=function(tt,nt){return nt===void 0&&(nt=getActiveElement(getFirst(tt).ownerDocument)),!nt||nt.dataset&&nt.dataset.focusGuard?!1:getAllAffectedNodes(tt).some(function(et){return contains(et,nt)||focusInsideIframe(et,nt)})},focusIsHidden=function(tt){tt===void 0&&(tt=document);var nt=getActiveElement(tt);return nt?toArray$2(tt.querySelectorAll("[".concat(FOCUS_ALLOW,"]"))).some(function(et){return contains(et,nt)}):!1},findSelectedRadio=function(tt,nt){return nt.filter(isRadioElement).filter(function(et){return et.name===tt.name}).filter(function(et){return et.checked})[0]||tt},correctNode=function(tt,nt){return isRadioElement(tt)&&tt.name?findSelectedRadio(tt,nt):tt},correctNodes=function(tt){var nt=new Set;return tt.forEach(function(et){return nt.add(correctNode(et,tt))}),tt.filter(function(et){return nt.has(et)})},pickFirstFocus=function(tt){return tt[0]&&tt.length>1?correctNode(tt[0],tt):tt[0]},pickFocusable=function(tt,nt){return tt.indexOf(correctNode(nt,tt))},NEW_FOCUS="NEW_FOCUS",newFocus=function(tt,nt,et,rt,ot){var at=tt.length,st=tt[0],ut=tt[at-1],ct=isGuard(rt);if(!(rt&&tt.indexOf(rt)>=0)){var pt=rt!==void 0?et.indexOf(rt):-1,dt=ot?et.indexOf(ot):pt,ft=ot?tt.indexOf(ot):-1;if(pt===-1)return ft!==-1?ft:NEW_FOCUS;if(ft===-1)return NEW_FOCUS;var bt=pt-dt,ht=et.indexOf(st),Mt=et.indexOf(ut),mt=correctNodes(et),Ot=rt!==void 0?mt.indexOf(rt):-1,zt=Ot-(ot?mt.indexOf(ot):pt);if(!bt&&ft>=0||nt.length===0)return ft;var yt=pickFocusable(tt,nt[0]),vt=pickFocusable(tt,nt[nt.length-1]);if(pt<=ht&&ct&&Math.abs(bt)>1)return vt;if(pt>=Mt&&ct&&Math.abs(bt)>1)return yt;if(bt&&Math.abs(zt)>1)return ft;if(pt<=ht)return vt;if(pt>Mt)return yt;if(bt)return Math.abs(bt)>1?ft:(at+ft+bt)%at}},findAutoFocused=function(tt){return function(nt){var et,rt=(et=getDataset(nt))===null||et===void 0?void 0:et.autofocus;return nt.autofocus||rt!==void 0&&rt!=="false"||tt.indexOf(nt)>=0}},pickAutofocus=function(tt,nt,et){var rt=tt.map(function(at){var st=at.node;return st}),ot=filterAutoFocusable(rt.filter(findAutoFocused(et)));return ot&&ot.length?pickFirstFocus(ot):pickFirstFocus(filterAutoFocusable(nt))},getParents=function(tt,nt){return nt===void 0&&(nt=[]),nt.push(tt),tt.parentNode&&getParents(tt.parentNode.host||tt.parentNode,nt),nt},getCommonParent=function(tt,nt){for(var et=getParents(tt),rt=getParents(nt),ot=0;ot<et.length;ot+=1){var at=et[ot];if(rt.indexOf(at)>=0)return at}return!1},getTopCommonParent=function(tt,nt,et){var rt=asArray(tt),ot=asArray(nt),at=rt[0],st=!1;return ot.filter(Boolean).forEach(function(ut){st=getCommonParent(st||ut,ut)||st,et.filter(Boolean).forEach(function(ct){var pt=getCommonParent(at,ct);pt&&(!st||contains(pt,st)?st=pt:st=getCommonParent(pt,st))})}),st},allParentAutofocusables=function(tt,nt){return tt.reduce(function(et,rt){return et.concat(parentAutofocusables(rt,nt))},[])},reorderNodes=function(tt,nt){var et=new Map;return nt.forEach(function(rt){return et.set(rt.node,rt)}),tt.map(function(rt){return et.get(rt)}).filter(isDefined)},focusSolver=function(tt,nt){var et=getActiveElement(asArray(tt).length>0?document:getFirst(tt).ownerDocument),rt=getAllAffectedNodes(tt).filter(isNotAGuard),ot=getTopCommonParent(et||tt,tt,rt),at=new Map,st=getFocusableNodes(rt,at),ut=st.filter(function(Mt){var mt=Mt.node;return isNotAGuard(mt)});if(ut[0]){var ct=getFocusableNodes([ot],at).map(function(Mt){var mt=Mt.node;return mt}),pt=reorderNodes(ct,ut),dt=pt.map(function(Mt){var mt=Mt.node;return mt}),ft=pt.filter(function(Mt){var mt=Mt.tabIndex;return mt>=0}).map(function(Mt){var mt=Mt.node;return mt}),bt=newFocus(dt,ft,ct,et,nt);if(bt===NEW_FOCUS){var ht=pickAutofocus(st,ft,allParentAutofocusables(rt,at))||pickAutofocus(st,dt,allParentAutofocusables(rt,at));if(ht)return{node:ht};console.warn("focus-lock: cannot find any node to move focus into");return}return bt===void 0?bt:pt[bt]}},expandFocusableNodes=function(tt){var nt=getAllAffectedNodes(tt).filter(isNotAGuard),et=getTopCommonParent(tt,tt,nt),rt=orderByTabIndex(getFocusables([et],!0),!0,!0),ot=getFocusables(nt,!1);return rt.map(function(at){var st=at.node,ut=at.index;return{node:st,index:ut,lockItem:ot.indexOf(st)>=0,guard:isGuard(st)}})},focusOn=function(tt,nt){tt&&("focus"in tt&&tt.focus(nt),"contentWindow"in tt&&tt.contentWindow&&tt.contentWindow.focus())},guardCount=0,lockDisabled=!1,moveFocusInside=function(tt,nt,et){et===void 0&&(et={});var rt=focusSolver(tt,nt);if(!lockDisabled&&rt){if(guardCount>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),lockDisabled=!0,setTimeout(function(){lockDisabled=!1},1);return}guardCount++,focusOn(rt.node,et.focusOptions),guardCount--}};function weakRef(tt){if(!tt)return null;if(typeof WeakRef>"u")return function(){return tt||null};var nt=tt?new WeakRef(tt):null;return function(){return(nt==null?void 0:nt.deref())||null}}var recordElementLocation=function(tt){if(!tt)return null;for(var nt=[],et=tt;et&&et!==document.body;)nt.push({current:weakRef(et),parent:weakRef(et.parentElement),left:weakRef(et.previousElementSibling),right:weakRef(et.nextElementSibling)}),et=et.parentElement;return{element:weakRef(tt),stack:nt,ownerDocument:tt.ownerDocument}},restoreFocusTo=function(tt){var nt,et,rt,ot,at;if(tt)for(var st=tt.stack,ut=tt.ownerDocument,ct=new Map,pt=0,dt=st;pt<dt.length;pt++){var ft=dt[pt],bt=(nt=ft.parent)===null||nt===void 0?void 0:nt.call(ft);if(bt&&ut.contains(bt)){for(var ht=(et=ft.left)===null||et===void 0?void 0:et.call(ft),Mt=ft.current(),mt=bt.contains(Mt)?Mt:void 0,Ot=(rt=ft.right)===null||rt===void 0?void 0:rt.call(ft),zt=getTabbableNodes([bt],ct),yt=(at=(ot=mt??(ht==null?void 0:ht.nextElementSibling))!==null&&ot!==void 0?ot:Ot)!==null&&at!==void 0?at:ht;yt;){for(var vt=0,At=zt;vt<At.length;vt++){var St=At[vt];if(yt!=null&&yt.contains(St.node))return St.node}yt=yt.nextElementSibling}if(zt.length)return zt[0].node}}},captureFocusRestore=function(tt){var nt=recordElementLocation(tt);return function(){return restoreFocusTo(nt)}},getRelativeFocusable=function(tt,nt,et){if(!tt||!nt)return console.error("no element or scope given"),{};var rt=asArray(nt);if(rt.every(function(st){return!contains(st,tt)}))return console.error("Active element is not contained in the scope"),{};var ot=et?getTabbableNodes(rt,new Map):getFocusableNodes(rt,new Map),at=ot.findIndex(function(st){var ut=st.node;return ut===tt});if(at!==-1)return{prev:ot[at-1],next:ot[at+1],first:ot[0],last:ot[ot.length-1]}},getBoundary=function(tt,nt){var et=nt?getTabbableNodes(asArray(tt),new Map):getFocusableNodes(asArray(tt),new Map);return{first:et[0],last:et[et.length-1]}},defaultOptions$1=function(tt){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},tt)},moveFocus=function(tt,nt,et){nt===void 0&&(nt={});var rt=defaultOptions$1(nt),ot=getRelativeFocusable(tt,rt.scope,rt.onlyTabbable);if(ot){var at=et(ot,rt.cycle);at&&focusOn(at.node,rt.focusOptions)}},focusNextElement=function(tt,nt){nt===void 0&&(nt={}),moveFocus(tt,nt,function(et,rt){var ot=et.next,at=et.first;return ot||rt&&at})},focusPrevElement=function(tt,nt){nt===void 0&&(nt={}),moveFocus(tt,nt,function(et,rt){var ot=et.prev,at=et.last;return ot||rt&&at})},pickBoundary=function(tt,nt,et){var rt,ot=getBoundary(tt,(rt=nt.onlyTabbable)!==null&&rt!==void 0?rt:!0),at=ot[et];at&&focusOn(at.node,nt.focusOptions)},focusFirstElement=function(tt,nt){nt===void 0&&(nt={}),pickBoundary(tt,nt,"first")},focusLastElement=function(tt,nt){nt===void 0&&(nt={}),pickBoundary(tt,nt,"last")};function deferAction(tt){setTimeout(tt,1)}var inlineProp=function tt(nt,et){var rt={};return rt[nt]=et,rt},extractRef=function tt(nt){return nt&&"current"in nt?nt.current:nt},focusOnBody=function tt(){return document&&document.activeElement===document.body},isFreeFocus=function tt(){return focusOnBody()||focusIsHidden()},lastActiveTrap=null,lastActiveFocus=null,tryRestoreFocus=function tt(){return null},lastPortaledElement=null,focusWasOutsideWindow=!1,windowFocused=!1,defaultWhitelist=function tt(){return!0},focusWhitelisted=function tt(nt){return(lastActiveTrap.whiteList||defaultWhitelist)(nt)},recordPortal=function tt(nt,et){lastPortaledElement={observerNode:nt,portaledElement:et}},focusIsPortaledPair=function tt(nt){return lastPortaledElement&&lastPortaledElement.portaledElement===nt};function autoGuard(tt,nt,et,rt){var ot=null,at=tt;do{var st=rt[at];if(st.guard)st.node.dataset.focusAutoGuard&&(ot=st);else if(st.lockItem){if(at!==tt)return;ot=null}else break}while((at+=et)!==nt);ot&&(ot.node.tabIndex=0)}var focusWasOutside=function tt(nt){return nt?!!focusWasOutsideWindow:focusWasOutsideWindow==="meanwhile"},checkInHost=function tt(nt,et,rt){return et&&(et.host===nt&&(!et.activeElement||rt.contains(et.activeElement))||et.parentNode&&tt(nt,et.parentNode,rt))},withinHost=function tt(nt,et){return et.some(function(rt){return checkInHost(nt,rt,rt)})},getNodeFocusables=function tt(nt){return getFocusableNodes(nt,new Map)},isNotFocusable=function tt(nt){return!getNodeFocusables([nt.parentNode]).some(function(et){return et.node===nt})},activateTrap=function tt(){var nt=!1;if(lastActiveTrap){var et=lastActiveTrap,rt=et.observed,ot=et.persistentFocus,at=et.autoFocus,st=et.shards,ut=et.crossFrame,ct=et.focusOptions,pt=et.noFocusGuards,dt=rt||lastPortaledElement&&lastPortaledElement.portaledElement;if(focusOnBody()&&lastActiveFocus&&(!document.body.contains(lastActiveFocus)||isNotFocusable(lastActiveFocus))){lastActiveFocus=null;var ft=tryRestoreFocus();ft&&ft.focus()}var bt=document&&document.activeElement;if(dt){var ht=[dt].concat(st.map(extractRef).filter(Boolean)),Mt=function(){if(!focusWasOutside(ut)||!pt||!lastActiveFocus||windowFocused)return!1;var vt=getNodeFocusables(ht),At=vt.findIndex(function(St){var Et=St.node;return Et===lastActiveFocus});return At===0||At===vt.length-1};if((!bt||focusWhitelisted(bt))&&(ot||Mt()||!isFreeFocus()||!lastActiveFocus&&at)&&(dt&&!(focusInside(ht)||bt&&withinHost(bt,ht)||focusIsPortaledPair(bt))&&(document&&!lastActiveFocus&&bt&&!at?(bt.blur&&bt.blur(),document.body.focus()):(nt=moveFocusInside(ht,lastActiveFocus,{focusOptions:ct}),lastPortaledElement={})),focusWasOutsideWindow=!1,lastActiveFocus=document&&document.activeElement,tryRestoreFocus=captureFocusRestore(lastActiveFocus)),document&&bt!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var mt=document&&document.activeElement,Ot=expandFocusableNodes(ht),zt=Ot.map(function(yt){var vt=yt.node;return vt}).indexOf(mt);zt>-1&&(Ot.filter(function(yt){var vt=yt.guard,At=yt.node;return vt&&At.dataset.focusAutoGuard}).forEach(function(yt){var vt=yt.node;return vt.removeAttribute("tabIndex")}),autoGuard(zt,Ot.length,1,Ot),autoGuard(zt,-1,-1,Ot))}}}return nt},onTrap=function tt(nt){activateTrap()&&nt&&(nt.stopPropagation(),nt.preventDefault())},onBlur=function tt(){return deferAction(activateTrap)},onFocus=function tt(nt){var et=nt.target,rt=nt.currentTarget;rt.contains(et)||recordPortal(rt,et)},FocusWatcher=function tt(){return null},onWindowFocus=function tt(){windowFocused=!0},onWindowBlur=function tt(){windowFocused=!1,focusWasOutsideWindow="just",deferAction(function(){focusWasOutsideWindow="meanwhile"})},attachHandler=function tt(){document.addEventListener("focusin",onTrap),document.addEventListener("focusout",onBlur),window.addEventListener("focus",onWindowFocus),window.addEventListener("blur",onWindowBlur)},detachHandler=function tt(){document.removeEventListener("focusin",onTrap),document.removeEventListener("focusout",onBlur),window.removeEventListener("focus",onWindowFocus),window.removeEventListener("blur",onWindowBlur)};function reducePropsToState(tt){return tt.filter(function(nt){var et=nt.disabled;return!et})}var focusLockAPI={moveFocusInside,focusInside,focusNextElement,focusPrevElement,focusFirstElement,focusLastElement,captureFocusRestore};function handleStateChangeOnClient(tt){var nt=tt.slice(-1)[0];nt&&!lastActiveTrap&&attachHandler();var et=lastActiveTrap,rt=et&&nt&&nt.id===et.id;lastActiveTrap=nt,et&&!rt&&(et.onDeactivation(),tt.filter(function(ot){var at=ot.id;return at===et.id}).length||et.returnFocus(!nt)),nt?(lastActiveFocus=null,(!rt||et.observed!==nt.observed)&&nt.onActivation(focusLockAPI),activateTrap(),deferAction(activateTrap)):(detachHandler(),lastActiveFocus=null)}mediumFocus.assignSyncMedium(onFocus);mediumBlur.assignMedium(onBlur);mediumEffect.assignMedium(function(tt){return tt(focusLockAPI)});const FocusTrap=withSideEffect(reducePropsToState,handleStateChangeOnClient)(FocusWatcher);var FocusLockCombination=reactExports.forwardRef(function tt(nt,et){return reactExports.createElement(FocusLock,_extends$Q({sideCar:FocusTrap,ref:et},nt))}),_ref=FocusLock.propTypes||{};_ref.sideCar;_objectWithoutPropertiesLoose$m(_ref,["sideCar"]);FocusLockCombination.propTypes={};var useFocusInside=function tt(nt){reactExports.useEffect(function(){var et=!0;return mediumEffect.useMedium(function(rt){var ot=nt&&nt.current;et&&ot&&(rt.focusInside(ot)||rt.moveFocusInside(ot,null))}),function(){et=!1}},[nt])};function MoveFocusInside(tt){var nt=tt.disabled,et=nt===void 0?!1:nt,rt=tt.className,ot=tt.children,at=reactExports.useRef(null);return useFocusInside(et?void 0:at),reactExports.createElement("div",_extends$Q({},inlineProp(FOCUS_AUTO,!et),{ref:at,className:rt}),ot)}MoveFocusInside.propTypes={};function ownKeys$k(tt,nt){var et=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);nt&&(rt=rt.filter(function(ot){return Object.getOwnPropertyDescriptor(tt,ot).enumerable})),et.push.apply(et,rt)}return et}function _objectSpread$j(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt]!=null?arguments[nt]:{};nt%2?ownKeys$k(Object(et),!0).forEach(function(rt){_defineProperty$n(tt,rt,et[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(et)):ownKeys$k(Object(et)).forEach(function(rt){Object.defineProperty(tt,rt,Object.getOwnPropertyDescriptor(et,rt))})}return tt}function _defineProperty$n(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}function _slicedToArray$g(tt,nt){return _arrayWithHoles$g(tt)||_iterableToArrayLimit$g(tt,nt)||_unsupportedIterableToArray$g(tt,nt)||_nonIterableRest$g()}function _nonIterableRest$g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
440
440
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$g(tt,nt){if(tt){if(typeof tt=="string")return _arrayLikeToArray$g(tt,nt);var et=Object.prototype.toString.call(tt).slice(8,-1);if(et==="Object"&&tt.constructor&&(et=tt.constructor.name),et==="Map"||et==="Set")return Array.from(tt);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$g(tt,nt)}}function _arrayLikeToArray$g(tt,nt){(nt==null||nt>tt.length)&&(nt=tt.length);for(var et=0,rt=new Array(nt);et<nt;et++)rt[et]=tt[et];return rt}function _iterableToArrayLimit$g(tt,nt){var et=tt==null?null:typeof Symbol<"u"&&tt[Symbol.iterator]||tt["@@iterator"];if(et!=null){var rt=[],ot=!0,at=!1,st,ut;try{for(et=et.call(tt);!(ot=(st=et.next()).done)&&(rt.push(st.value),!(nt&&rt.length===nt));ot=!0);}catch(ct){at=!0,ut=ct}finally{try{!ot&&et.return!=null&&et.return()}finally{if(at)throw ut}}return rt}}function _arrayWithHoles$g(tt){if(Array.isArray(tt))return tt}var OPPOSITE_POSITIONS={top:"bottom",bottom:"top",right:"left",left:"right"};function getOppositePosition(tt){return OPPOSITE_POSITIONS[tt]}function isVerticalPosition(tt){return tt==="top"||tt==="bottom"}function capitalize(tt){return tt.charAt(0).toUpperCase()+tt.slice(1)}function fromPopperPlacement(tt){var nt=tt.replace(/(top|bottom)-start$/,"$1Left").replace(/(top|bottom)-end$/,"$1Right").replace(/(left|right)-start$/,"$1Top").replace(/(left|right)-end$/,"$1Bottom");return PLACEMENT[nt]||null}function splitPlacement(tt){var nt=tt.match(/^([a-z]+)([A-Z][a-z]+)?/)||[];return nt.slice(1,3).filter(Boolean).map(function(et){return et.toLowerCase()})}function getPopoverMarginStyles(tt,nt,et){var rt=splitPlacement(nt),ot=_slicedToArray$g(rt,1),at=ot[0],st=getOppositePosition(at);if(!st)return null;var ut="margin".concat(capitalize(st));return _defineProperty$n({},ut,"".concat(tt+et,"px"))}function getStartPosition(tt,nt,et,rt){tt=_objectSpread$j({},tt);var ot=splitPlacement(nt),at=_slicedToArray$g(ot,1),st=at[0],ut=(et>0?et:rt)*2;return isVerticalPosition(st)?tt.top+=st==="top"?ut:-ut:tt.left+=st==="left"?ut:-ut,"translate3d(".concat(tt.left,"px, ").concat(tt.top,"px, 0)")}function getEndPosition(tt){return"translate3d(".concat(tt.left,"px, ").concat(tt.top,"px, 0)")}function getArrowPositionStyles(tt,nt){var et,rt=splitPlacement(nt),ot=_slicedToArray$g(rt,1),at=ot[0],st=getOppositePosition(at);if(!st)return null;var ut=isVerticalPosition(at)?"left":"top";return et={},_defineProperty$n(et,ut,"".concat(tt[ut],"px")),_defineProperty$n(et,st,"-".concat(ARROW_SIZE-2,"px")),et}function ownKeys$j(tt,nt){var et=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);nt&&(rt=rt.filter(function(ot){return Object.getOwnPropertyDescriptor(tt,ot).enumerable})),et.push.apply(et,rt)}return et}function _objectSpread$i(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt]!=null?arguments[nt]:{};nt%2?ownKeys$j(Object(et),!0).forEach(function(rt){_defineProperty$m(tt,rt,et[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(et)):ownKeys$j(Object(et)).forEach(function(rt){Object.defineProperty(tt,rt,Object.getOwnPropertyDescriptor(et,rt))})}return tt}function _defineProperty$m(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}function getBodyStyles(tt){var nt=tt.$animationDuration,et=tt.$isOpen,rt=tt.$isAnimating,ot=tt.$placement,at=tt.$popoverOffset,st=tt.$showArrow,ut=tt.$theme,ct=tt.$popoverMargin,pt=tt.$isHoverTrigger;return _objectSpread$i(_objectSpread$i({position:"absolute",top:0,left:0,backgroundColor:ut.colors.backgroundTertiary,borderTopLeftRadius:ut.borders.popoverBorderRadius,borderTopRightRadius:ut.borders.popoverBorderRadius,borderBottomRightRadius:ut.borders.popoverBorderRadius,borderBottomLeftRadius:ut.borders.popoverBorderRadius,boxShadow:ut.lighting.shadow600,transitionProperty:"opacity,transform",transitionDuration:rt?et?"0.1s":"".concat(nt,"ms"):"0s",transitionTimingFunction:et?ut.animation.easeOutCurve:ut.animation.easeInCurve,opacity:rt&&et?1:0,transform:rt&&et?getEndPosition(at):getStartPosition(at,ot,st?ARROW_SIZE:0,ct)},getPopoverMarginStyles(st?ARROW_SIZE:0,ot,ct)),pt?{animationDuration:".1s",animationName:{"0%":{pointerEvents:"none"},"99%":{pointerEvents:"none"},"100%":{pointerEvents:"auto"}}}:{})}var Body$2=styled("div",getBodyStyles);Body$2.displayName="Body";Body$2.displayName="Body";function getArrowStyles(tt){var nt=tt.$arrowOffset,et=tt.$placement,rt=tt.$theme;return _objectSpread$i({backgroundColor:rt.colors.backgroundTertiary,boxShadow:rt.lighting.shadow600,width:"".concat(ARROW_WIDTH,"px"),height:"".concat(ARROW_WIDTH,"px"),transform:"rotate(45deg)",position:"absolute"},getArrowPositionStyles(nt,et))}var Arrow$1=styled("div",getArrowStyles);Arrow$1.displayName="Arrow";Arrow$1.displayName="Arrow";function getInnerStyles(tt){var nt=tt.$theme;return{backgroundColor:nt.colors.backgroundTertiary,borderTopLeftRadius:nt.borders.popoverBorderRadius,borderTopRightRadius:nt.borders.popoverBorderRadius,borderBottomRightRadius:nt.borders.popoverBorderRadius,borderBottomLeftRadius:nt.borders.popoverBorderRadius,color:nt.colors.contentPrimary,position:"relative"}}var Inner$1=styled("div",getInnerStyles);Inner$1.displayName="Inner";Inner$1.displayName="Inner";var Padding=styled("div",{paddingLeft:"12px",paddingTop:"12px",paddingRight:"12px",paddingBottom:"12px"});Padding.displayName="Padding";Padding.displayName="Padding";var Hidden=styled("div",{display:"none"});Hidden.displayName="Hidden";Hidden.displayName="Hidden";var baseDefaultProps$1={accessibilityType:ACCESSIBILITY_TYPE.menu,focusLock:!1,autoFocus:!0,returnFocus:!0,ignoreBoundary:!1,overrides:{},onMouseEnterDelay:200,onMouseLeaveDelay:200,placement:PLACEMENT.auto,showArrow:!1,triggerType:TRIGGER_TYPE.click,renderAll:!1};function ownKeys$i(tt,nt){var et=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);nt&&(rt=rt.filter(function(ot){return Object.getOwnPropertyDescriptor(tt,ot).enumerable})),et.push.apply(et,rt)}return et}function _objectSpread$h(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt]!=null?arguments[nt]:{};nt%2?ownKeys$i(Object(et),!0).forEach(function(rt){_defineProperty$l(tt,rt,et[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(et)):ownKeys$i(Object(et)).forEach(function(rt){Object.defineProperty(tt,rt,Object.getOwnPropertyDescriptor(et,rt))})}return tt}function _extends$A(){return _extends$A=Object.assign?Object.assign.bind():function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_extends$A.apply(this,arguments)}function _typeof$b(tt){"@babel/helpers - typeof";return _typeof$b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},_typeof$b(tt)}function _classCallCheck$j(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$9(tt,nt){for(var et=0;et<nt.length;et++){var rt=nt[et];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(tt,rt.key,rt)}}function _createClass$h(tt,nt,et){return nt&&_defineProperties$9(tt.prototype,nt),Object.defineProperty(tt,"prototype",{writable:!1}),tt}function _inherits$j(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function");tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,writable:!0,configurable:!0}}),Object.defineProperty(tt,"prototype",{writable:!1}),nt&&_setPrototypeOf$9(tt,nt)}function _setPrototypeOf$9(tt,nt){return _setPrototypeOf$9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(rt,ot){return rt.__proto__=ot,rt},_setPrototypeOf$9(tt,nt)}function _createSuper$8(tt){var nt=_isNativeReflectConstruct$8();return function(){var rt=_getPrototypeOf$9(tt),ot;if(nt){var at=_getPrototypeOf$9(this).constructor;ot=Reflect.construct(rt,arguments,at)}else ot=rt.apply(this,arguments);return _possibleConstructorReturn$j(this,ot)}}function _possibleConstructorReturn$j(tt,nt){if(nt&&(_typeof$b(nt)==="object"||typeof nt=="function"))return nt;if(nt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$9(tt)}function _assertThisInitialized$9(tt){if(tt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt}function _isNativeReflectConstruct$8(){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 _getPrototypeOf$9(tt){return _getPrototypeOf$9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$9(tt)}function _defineProperty$l(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}var PopoverInner=function(tt){_inherits$j(et,tt);var nt=_createSuper$8(et);function et(){var rt;_classCallCheck$j(this,et);for(var ot=arguments.length,at=new Array(ot),st=0;st<ot;st++)at[st]=arguments[st];return rt=nt.call.apply(nt,[this].concat(at)),_defineProperty$l(_assertThisInitialized$9(rt),"animateInTimer",void 0),_defineProperty$l(_assertThisInitialized$9(rt),"animateOutTimer",void 0),_defineProperty$l(_assertThisInitialized$9(rt),"animateOutCompleteTimer",void 0),_defineProperty$l(_assertThisInitialized$9(rt),"onMouseEnterTimer",void 0),_defineProperty$l(_assertThisInitialized$9(rt),"onMouseLeaveTimer",void 0),_defineProperty$l(_assertThisInitialized$9(rt),"anchorRef",reactExports.createRef()),_defineProperty$l(_assertThisInitialized$9(rt),"popperRef",reactExports.createRef()),_defineProperty$l(_assertThisInitialized$9(rt),"arrowRef",reactExports.createRef()),_defineProperty$l(_assertThisInitialized$9(rt),"state",rt.getDefaultState(rt.props)),_defineProperty$l(_assertThisInitialized$9(rt),"animateIn",function(){rt.props.isOpen&&rt.setState({isAnimating:!0})}),_defineProperty$l(_assertThisInitialized$9(rt),"animateOut",function(){rt.props.isOpen||(rt.setState({isAnimating:!0}),rt.animateOutCompleteTimer=setTimeout(function(){rt.setState({isAnimating:!1,placement:rt.props.placement})},rt.props.animateOutTime||ANIMATE_OUT_TIME))}),_defineProperty$l(_assertThisInitialized$9(rt),"onAnchorClick",function(ut){rt.props.onClick&&rt.props.onClick(ut)}),_defineProperty$l(_assertThisInitialized$9(rt),"onAnchorMouseEnter",function(ut){rt.onMouseLeaveTimer&&clearTimeout(rt.onMouseLeaveTimer),rt.triggerOnMouseEnterWithDelay(ut)}),_defineProperty$l(_assertThisInitialized$9(rt),"onAnchorMouseLeave",function(ut){rt.onMouseEnterTimer&&clearTimeout(rt.onMouseEnterTimer),rt.triggerOnMouseLeaveWithDelay(ut)}),_defineProperty$l(_assertThisInitialized$9(rt),"onPopoverMouseEnter",function(){rt.onMouseLeaveTimer&&clearTimeout(rt.onMouseLeaveTimer)}),_defineProperty$l(_assertThisInitialized$9(rt),"onPopoverMouseLeave",function(ut){rt.triggerOnMouseLeaveWithDelay(ut)}),_defineProperty$l(_assertThisInitialized$9(rt),"onPopperUpdate",function(ut,ct){var pt=fromPopperPlacement(ct.placement)||PLACEMENT.top;return rt.setState({arrowOffset:ut.arrow,popoverOffset:ut.popper,placement:pt}),rt.animateInTimer=setTimeout(rt.animateIn,ANIMATE_IN_TIME),ct}),_defineProperty$l(_assertThisInitialized$9(rt),"triggerOnMouseLeave",function(ut){rt.props.onMouseLeave&&rt.props.onMouseLeave(ut)}),_defineProperty$l(_assertThisInitialized$9(rt),"triggerOnMouseEnter",function(ut){rt.props.onMouseEnter&&rt.props.onMouseEnter(ut)}),_defineProperty$l(_assertThisInitialized$9(rt),"onDocumentClick",function(ut){var ct=ut.composedPath?ut.composedPath()[0]:ut.target,pt=rt.popperRef.current,dt=rt.anchorRef.current;!pt||pt===ct||ct instanceof Node&&pt.contains(ct)||!dt||dt===ct||ct instanceof Node&&dt.contains(ct)||rt.props.onClickOutside&&rt.props.onClickOutside(ut)}),rt}return _createClass$h(et,[{key:"componentDidMount",value:function(){this.setState({isMounted:!0})}},{key:"componentDidUpdate",value:function(ot,at){this.init(ot,at),this.props.accessibilityType!==ACCESSIBILITY_TYPE.tooltip&&this.props.autoFocus&&!this.state.autoFocusAfterPositioning&&this.popperRef.current!==null&&this.popperRef.current.getBoundingClientRect().top>0&&this.setState({autoFocusAfterPositioning:!0})}},{key:"init",value:function(ot,at){if(this.props.isOpen!==ot.isOpen||this.state.isMounted!==at.isMounted||this.state.isLayerMounted!==at.isLayerMounted){if(this.props.isOpen&&this.state.isLayerMounted){this.clearTimers();return}if(!this.props.isOpen&&ot.isOpen){this.animateOutTimer=setTimeout(this.animateOut,20);return}}}},{key:"componentWillUnmount",value:function(){this.clearTimers()}},{key:"getDefaultState",value:function(ot){return{isAnimating:!1,arrowOffset:{left:0,top:0},popoverOffset:{left:0,top:0},placement:ot.placement,isMounted:!1,isLayerMounted:!1,autoFocusAfterPositioning:!1}}},{key:"clearTimers",value:function(){[this.animateInTimer,this.animateOutTimer,this.animateOutCompleteTimer,this.onMouseEnterTimer,this.onMouseLeaveTimer].forEach(function(ot){ot&&clearTimeout(ot)})}},{key:"triggerOnMouseLeaveWithDelay",value:function(ot){var at=this,st=this.props.onMouseLeaveDelay;if(st){this.onMouseLeaveTimer=setTimeout(function(){return at.triggerOnMouseLeave(ot)},st);return}this.triggerOnMouseLeave(ot)}},{key:"triggerOnMouseEnterWithDelay",value:function(ot){var at=this,st=this.props.onMouseEnterDelay;if(st){this.onMouseEnterTimer=setTimeout(function(){return at.triggerOnMouseEnter(ot)},st);return}this.triggerOnMouseEnter(ot)}},{key:"isClickTrigger",value:function(){return this.props.triggerType===TRIGGER_TYPE.click}},{key:"isHoverTrigger",value:function(){return this.props.triggerType===TRIGGER_TYPE.hover}},{key:"isAccessibilityTypeMenu",value:function(){return this.props.accessibilityType===ACCESSIBILITY_TYPE.menu}},{key:"isAccessibilityTypeTooltip",value:function(){return this.props.accessibilityType===ACCESSIBILITY_TYPE.tooltip}},{key:"getAnchorIdAttr",value:function(){var ot=this.getPopoverIdAttr();return ot?"".concat(ot,"__anchor"):null}},{key:"getPopoverIdAttr",value:function(){return this.props.id||null}},{key:"getAnchorProps",value:function(){var ot=this.props.isOpen,at={ref:this.anchorRef},st=this.getPopoverIdAttr();if(this.isAccessibilityTypeMenu()){var ut=this.isClickTrigger()?"aria-controls":"aria-owns";at[ut]=ot?st:null,at["aria-haspopup"]=!0,at["aria-expanded"]=!!ot}else this.isAccessibilityTypeTooltip()&&(at.id=this.getAnchorIdAttr(),at["aria-describedby"]=ot?st:null);return this.isHoverTrigger()?(at.onMouseEnter=this.onAnchorMouseEnter,at.onMouseLeave=this.onAnchorMouseLeave,at.onBlur=this.props.onBlur,at.onFocus=this.props.onFocus):at.onClick=this.onAnchorClick,at}},{key:"getPopoverBodyProps",value:function(){var ot={},at=this.getPopoverIdAttr();return this.isAccessibilityTypeMenu()?ot.id=at:this.isAccessibilityTypeTooltip()&&(ot.id=at,ot.role="tooltip"),this.isHoverTrigger()&&(ot.onMouseEnter=this.onPopoverMouseEnter,ot.onMouseLeave=this.onPopoverMouseLeave),ot}},{key:"getSharedProps",value:function(){var ot=this.props,at=ot.isOpen,st=ot.showArrow,ut=ot.popoverMargin,ct=ut===void 0?POPOVER_MARGIN:ut,pt=this.state,dt=pt.isAnimating,ft=pt.arrowOffset,bt=pt.popoverOffset,ht=pt.placement;return{$showArrow:!!st,$arrowOffset:ft,$popoverOffset:bt,$placement:ht,$isAnimating:dt,$animationDuration:this.props.animateOutTime||ANIMATE_OUT_TIME,$isOpen:at,$popoverMargin:ct,$isHoverTrigger:this.isHoverTrigger()}}},{key:"getAnchorFromChildren",value:function(){var ot=this.props.children,at=reactExports.Children.toArray(ot);return at.length!==1&&console.error("[baseui] Exactly 1 child must be passed to Popover/Tooltip, found ".concat(at.length," children")),at[0]}},{key:"renderAnchor",value:function(){var ot=this.getAnchorFromChildren();if(!ot)return null;var at=reactExports.isValidElement(ot),st=this.getAnchorProps();return _typeof$b(ot)==="object"&&at?reactExports.cloneElement(ot,st):reactExports.createElement("span",_extends$A({key:"popover-anchor"},st),ot)}},{key:"renderPopover",value:function(ot){var at=this.props,st=at.showArrow,ut=at.overrides,ct=ut===void 0?{}:ut,pt=ct.Arrow,dt=ct.Body,ft=ct.Inner,bt=getOverride(pt)||Arrow$1,ht=getOverride(dt)||Body$2,Mt=getOverride(ft)||Inner$1,mt=this.getSharedProps(),Ot=this.getPopoverBodyProps();return reactExports.createElement(ht,_extends$A({key:"popover-body",ref:this.popperRef,"data-baseweb":this.props["data-baseweb"]||"popover"},Ot,mt,getOverrideProps(dt)),st?reactExports.createElement(bt,_extends$A({key:"popover-arrow",ref:this.arrowRef},mt,getOverrideProps(pt))):null,reactExports.createElement(Mt,_extends$A({},mt,getOverrideProps(ft)),ot))}},{key:"renderContent",value:function(){var ot=this.props.content;return typeof ot=="function"?ot():ot}},{key:"render",value:function(){var ot=this,at=this.state.isMounted&&(this.props.isOpen||this.state.isAnimating),st=[this.renderAnchor()],ut=at||this.props.renderAll?this.renderContent():null,ct={modifiers:{preventOverflow:{enabled:!this.props.ignoreBoundary,padding:0}}};return ut&&(at?st.push(reactExports.createElement(Layer,{key:"new-layer",mountNode:this.props.mountNode,onEscape:this.props.onEsc,onDocumentClick:this.isHoverTrigger()?void 0:this.onDocumentClick,isHoverLayer:this.isHoverTrigger(),onMount:function(){return ot.setState({isLayerMounted:!0})},onUnmount:function(){return ot.setState({isLayerMounted:!1})}},reactExports.createElement(Tether,{anchorRef:this.anchorRef.current,arrowRef:this.arrowRef.current,popperRef:this.popperRef.current,popperOptions:_objectSpread$h(_objectSpread$h({},ct),this.props.popperOptions),onPopperUpdate:this.onPopperUpdate,placement:this.state.placement},this.props.focusLock&&this.props.accessibilityType!==ACCESSIBILITY_TYPE.tooltip?reactExports.createElement(FocusLockCombination,{disabled:!this.props.focusLock,noFocusGuards:!1,returnFocus:!this.isHoverTrigger()&&this.props.returnFocus,autoFocus:this.state.autoFocusAfterPositioning,crossFrame:!1,focusOptions:this.props.focusOptions},this.renderPopover(ut)):reactExports.createElement(MoveFocusInside,{disabled:!this.props.autoFocus||!this.state.autoFocusAfterPositioning},this.renderPopover(ut))))):st.push(reactExports.createElement(Hidden,{key:"hidden-layer"},ut))),st}}]),et}(reactExports.Component);_defineProperty$l(PopoverInner,"defaultProps",baseDefaultProps$1);var Popover$1=function tt(nt){var et=nt.innerRef,rt=useUID();return reactExports.createElement(PopoverInner,_extends$A({id:nt.id||rt,ref:et},nt))};Popover$1.defaultProps=baseDefaultProps$1;var _excluded$i=["children"];function _objectWithoutProperties$k(tt,nt){if(tt==null)return{};var et=_objectWithoutPropertiesLoose$i(tt,nt),rt,ot;if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(tt);for(ot=0;ot<at.length;ot++)rt=at[ot],!(nt.indexOf(rt)>=0)&&Object.prototype.propertyIsEnumerable.call(tt,rt)&&(et[rt]=tt[rt])}return et}function _objectWithoutPropertiesLoose$i(tt,nt){if(tt==null)return{};var et={},rt=Object.keys(tt),ot,at;for(at=0;at<rt.length;at++)ot=rt[at],!(nt.indexOf(ot)>=0)&&(et[ot]=tt[ot]);return et}function StatefulPopover(tt){var nt=tt.children,et=_objectWithoutProperties$k(tt,_excluded$i);return reactExports.createElement(StatefulContainer$1,et,function(rt){return reactExports.createElement(Popover$1,rt,nt)})}StatefulPopover.defaultProps={accessibilityType:ACCESSIBILITY_TYPE.menu,ignoreBoundary:!1,overrides:{},onMouseEnterDelay:200,onMouseLeaveDelay:200,placement:PLACEMENT.auto,showArrow:!1,triggerType:TRIGGER_TYPE.click,dismissOnClickOutside:!0,dismissOnEsc:!0,stateReducer:function tt(nt,et){return et},popoverMargin:POPOVER_MARGIN};var baseDefaultProps={accessibilityType:ACCESSIBILITY_TYPE.tooltip,focusLock:!1,autoFocus:!1,returnFocus:!1,onMouseEnterDelay:200,onMouseLeaveDelay:200,overrides:{},placement:PLACEMENT.auto,popoverMargin:0,showArrow:!1,triggerType:TRIGGER_TYPE.hover,renderAll:!1};function _typeof$a(tt){"@babel/helpers - typeof";return _typeof$a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},_typeof$a(tt)}function ownKeys$h(tt,nt){var et=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);nt&&(rt=rt.filter(function(ot){return Object.getOwnPropertyDescriptor(tt,ot).enumerable})),et.push.apply(et,rt)}return et}function _objectSpread$g(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt]!=null?arguments[nt]:{};nt%2?ownKeys$h(Object(et),!0).forEach(function(rt){_defineProperty$k(tt,rt,et[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(et)):ownKeys$h(Object(et)).forEach(function(rt){Object.defineProperty(tt,rt,Object.getOwnPropertyDescriptor(et,rt))})}return tt}function _classCallCheck$i(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$8(tt,nt){for(var et=0;et<nt.length;et++){var rt=nt[et];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(tt,rt.key,rt)}}function _createClass$g(tt,nt,et){return nt&&_defineProperties$8(tt.prototype,nt),Object.defineProperty(tt,"prototype",{writable:!1}),tt}function _inherits$i(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function");tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,writable:!0,configurable:!0}}),Object.defineProperty(tt,"prototype",{writable:!1}),nt&&_setPrototypeOf$8(tt,nt)}function _setPrototypeOf$8(tt,nt){return _setPrototypeOf$8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(rt,ot){return rt.__proto__=ot,rt},_setPrototypeOf$8(tt,nt)}function _createSuper$7(tt){var nt=_isNativeReflectConstruct$7();return function(){var rt=_getPrototypeOf$8(tt),ot;if(nt){var at=_getPrototypeOf$8(this).constructor;ot=Reflect.construct(rt,arguments,at)}else ot=rt.apply(this,arguments);return _possibleConstructorReturn$i(this,ot)}}function _possibleConstructorReturn$i(tt,nt){if(nt&&(_typeof$a(nt)==="object"||typeof nt=="function"))return nt;if(nt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$8(tt)}function _assertThisInitialized$8(tt){if(tt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt}function _isNativeReflectConstruct$7(){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 _getPrototypeOf$8(tt){return _getPrototypeOf$8=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$8(tt)}function _defineProperty$k(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}var StatefulContainer=function(tt){_inherits$i(et,tt);var nt=_createSuper$7(et);function et(){return _classCallCheck$i(this,et),nt.apply(this,arguments)}return _createClass$g(et,[{key:"render",value:function(){return reactExports.createElement(StatefulContainer$1,this.props)}}]),et}(reactExports.Component);_defineProperty$k(StatefulContainer,"defaultProps",_objectSpread$g({},baseDefaultProps));function ownKeys$g(tt,nt){var et=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);nt&&(rt=rt.filter(function(ot){return Object.getOwnPropertyDescriptor(tt,ot).enumerable})),et.push.apply(et,rt)}return et}function _objectSpread$f(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt]!=null?arguments[nt]:{};nt%2?ownKeys$g(Object(et),!0).forEach(function(rt){_defineProperty$j(tt,rt,et[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(et)):ownKeys$g(Object(et)).forEach(function(rt){Object.defineProperty(tt,rt,Object.getOwnPropertyDescriptor(et,rt))})}return tt}function _defineProperty$j(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}var Body$1=styled("div",function(tt){return _objectSpread$f(_objectSpread$f({},getBodyStyles(tt)),{},{backgroundColor:tt.$theme.colors.tooltipBackground,borderTopLeftRadius:tt.$theme.borders.radius300,borderTopRightRadius:tt.$theme.borders.radius300,borderBottomRightRadius:tt.$theme.borders.radius300,borderBottomLeftRadius:tt.$theme.borders.radius300,boxShadow:tt.$theme.lighting.shadow400,color:tt.$theme.colors.tooltipText,transitionProperty:"opacity",transform:getEndPosition(tt.$popoverOffset)})});Body$1.displayName="Body";Body$1.displayName="Body";var Inner=styled("div",function(tt){return _objectSpread$f(_objectSpread$f(_objectSpread$f({},getInnerStyles(tt)),{},{backgroundColor:tt.$theme.colors.tooltipBackground,borderTopLeftRadius:tt.$theme.borders.radius300,borderTopRightRadius:tt.$theme.borders.radius300,borderBottomRightRadius:tt.$theme.borders.radius300,borderBottomLeftRadius:tt.$theme.borders.radius300,paddingTop:tt.$theme.sizing.scale300,paddingBottom:tt.$theme.sizing.scale300,paddingLeft:tt.$theme.sizing.scale600,paddingRight:tt.$theme.sizing.scale600},tt.$theme.typography.font150),{},{color:tt.$theme.colors.tooltipText})});Inner.displayName="Inner";Inner.displayName="Inner";var Arrow=styled("div",function(tt){return _objectSpread$f(_objectSpread$f({},getArrowStyles(tt)),{},{backgroundColor:tt.$theme.colors.tooltipBackground})});Arrow.displayName="Arrow";Arrow.displayName="Arrow";function _typeof$9(tt){"@babel/helpers - typeof";return _typeof$9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},_typeof$9(tt)}function ownKeys$f(tt,nt){var et=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);nt&&(rt=rt.filter(function(ot){return Object.getOwnPropertyDescriptor(tt,ot).enumerable})),et.push.apply(et,rt)}return et}function _objectSpread$e(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt]!=null?arguments[nt]:{};nt%2?ownKeys$f(Object(et),!0).forEach(function(rt){_defineProperty$i(tt,rt,et[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(et)):ownKeys$f(Object(et)).forEach(function(rt){Object.defineProperty(tt,rt,Object.getOwnPropertyDescriptor(et,rt))})}return tt}function _extends$z(){return _extends$z=Object.assign?Object.assign.bind():function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_extends$z.apply(this,arguments)}function _classCallCheck$h(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$7(tt,nt){for(var et=0;et<nt.length;et++){var rt=nt[et];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(tt,rt.key,rt)}}function _createClass$f(tt,nt,et){return nt&&_defineProperties$7(tt.prototype,nt),Object.defineProperty(tt,"prototype",{writable:!1}),tt}function _inherits$h(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function");tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,writable:!0,configurable:!0}}),Object.defineProperty(tt,"prototype",{writable:!1}),nt&&_setPrototypeOf$7(tt,nt)}function _setPrototypeOf$7(tt,nt){return _setPrototypeOf$7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(rt,ot){return rt.__proto__=ot,rt},_setPrototypeOf$7(tt,nt)}function _createSuper$6(tt){var nt=_isNativeReflectConstruct$6();return function(){var rt=_getPrototypeOf$7(tt),ot;if(nt){var at=_getPrototypeOf$7(this).constructor;ot=Reflect.construct(rt,arguments,at)}else ot=rt.apply(this,arguments);return _possibleConstructorReturn$h(this,ot)}}function _possibleConstructorReturn$h(tt,nt){if(nt&&(_typeof$9(nt)==="object"||typeof nt=="function"))return nt;if(nt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$7(tt)}function _assertThisInitialized$7(tt){if(tt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt}function _isNativeReflectConstruct$6(){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 _getPrototypeOf$7(tt){return _getPrototypeOf$7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$7(tt)}function _defineProperty$i(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}var Tooltip$1=function(tt){_inherits$h(et,tt);var nt=_createSuper$6(et);function et(){return _classCallCheck$h(this,et),nt.apply(this,arguments)}return _createClass$f(et,[{key:"render",value:function(){var ot=mergeOverrides({Arrow,Body:Body$1,Inner},this.props.overrides);return reactExports.createElement(Popover$1,_extends$z({autoFocus:!1,"data-baseweb":"tooltip"},this.props,{overrides:ot}))}}]),et}(reactExports.Component);_defineProperty$i(Tooltip$1,"defaultProps",_objectSpread$e({},baseDefaultProps));var _excluded$h=["children"];function _objectWithoutProperties$j(tt,nt){if(tt==null)return{};var et=_objectWithoutPropertiesLoose$h(tt,nt),rt,ot;if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(tt);for(ot=0;ot<at.length;ot++)rt=at[ot],!(nt.indexOf(rt)>=0)&&Object.prototype.propertyIsEnumerable.call(tt,rt)&&(et[rt]=tt[rt])}return et}function _objectWithoutPropertiesLoose$h(tt,nt){if(tt==null)return{};var et={},rt=Object.keys(tt),ot,at;for(at=0;at<rt.length;at++)ot=rt[at],!(nt.indexOf(ot)>=0)&&(et[ot]=tt[ot]);return et}function StatefulTooltip(tt){var nt=tt.children,et=_objectWithoutProperties$j(tt,_excluded$h);return reactExports.createElement(StatefulContainer,et,function(rt){return reactExports.createElement(Tooltip$1,rt,nt)})}StatefulTooltip.defaultProps=StatefulContainer.defaultProps;const StyledWrapper=newStyled("div",{target:"ebtlh8d0"})({display:"table",tableLayout:"fixed",width:"100%"}),StyledEllipsizedDiv=newStyled("div",{target:"ebtlh8d1"})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell"}),StyledTooltipContentWrapper=newStyled("div",{target:"ebtlh8d2"})(({theme:tt})=>({boxSizing:"border-box",fontSize:`${tt.fontSizes.sm}`,maxWidth:`calc(${tt.sizes.contentMaxWidth} - 2 * ${tt.spacing.threeXL})`,maxHeight:tt.sizes.maxTooltipHeight,overflow:["auto","overlay"],padding:`${tt.spacing.xs} ${tt.spacing.md}`,[`@media (max-width: ${tt.breakpoints.sm})`]:{maxWidth:`calc(100% - ${tt.spacing.threeXL})`},img:{maxWidth:"100%"},"*":{fontSize:`${tt.fontSizes.sm} !important`}}));var Placement;(function(tt){tt.AUTO="auto",tt.TOP_LEFT="topLeft",tt.TOP="top",tt.TOP_RIGHT="topRight",tt.RIGHT_TOP="rightTop",tt.RIGHT="right",tt.RIGHT_BOTTOM="rightBottom",tt.BOTTOM_RIGHT="bottomRight",tt.BOTTOM="bottom",tt.BOTTOM_LEFT="bottomLeft",tt.LEFT_BOTTOM="leftBottom",tt.LEFT="left",tt.LEFT_TOP="leftTop"})(Placement||(Placement={}));function Tooltip({content:tt,placement:nt,children:et,inline:rt,style:ot,onMouseEnterDelay:at}){const st=useTheme(),{colors:ut,fontSizes:ct,radii:pt,fontWeights:dt}=st,ft=reactExports.useRef(null);return jsx$1(StatefulTooltip,{onOpen:()=>{var ht;const bt=(ht=ft.current)==null?void 0:ht.parentElement;bt&&setTimeout(()=>{var yt;const Mt=bt.getBoundingClientRect(),mt=Mt.x,Ot=mt+Mt.width-window.innerWidth,zt=bt.parentElement;if(Ot>0&&zt){const vt=new DOMMatrix((yt=window.getComputedStyle(zt))==null?void 0:yt.transform);zt.style.transform=`translate3d(${vt.e-Ot}px, ${vt.f}px, 0px)`}mt<0&&(bt.style.left=`${-mt}px`)},0)},content:tt?jsx$1(StyledTooltipContentWrapper,{className:"stTooltipContent","data-testid":"stTooltipContent",ref:ft,children:tt}):null,placement:PLACEMENT[nt],accessibilityType:ACCESSIBILITY_TYPE.tooltip,showArrow:!1,popoverMargin:10,onMouseEnterDelay:at,overrides:{Body:{style:{borderTopLeftRadius:pt.default,borderTopRightRadius:pt.default,borderBottomLeftRadius:pt.default,borderBottomRightRadius:pt.default,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}},Inner:{style:{backgroundColor:hasLightBackgroundColor(st)?ut.bgColor:ut.secondaryBg,color:ut.bodyText,fontSize:ct.sm,fontWeight:dt.normal,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},children:jsx$1("div",{style:{display:"flex",flexDirection:"row",justifyContent:rt?"flex-end":"",...ot},"data-testid":"stTooltipHoverTarget",className:"stTooltipHoverTarget",children:et})})}function OverflowTooltip({content:tt,placement:nt,children:et,inline:rt,style:ot}){const at=React$1.useRef(null),[st,ut]=reactExports.useState(!1);return React$1.useEffect(()=>{const ct=at!=null&&at.current?at.current.offsetWidth<at.current.scrollWidth:!1;ct!==st&&ut(ct)},[et,st]),jsx$1(Tooltip,{content:st?tt:"",placement:nt,inline:rt,children:jsx$1(StyledWrapper,{children:jsx$1(StyledEllipsizedDiv,{ref:at,style:ot,children:et})})})}const StyledTooltipIconWrapper=newStyled("div",{target:"e1pw9gww0"})(({isLatex:tt,theme:nt})=>({display:"flex",alignItems:"center",marginTop:tt?nt.spacing.md:"0","& .stTooltipHoverTarget > svg":{stroke:nt.colors.fadedText60,strokeWidth:2.25}})),StyledLabelHelpWrapper=newStyled("div",{target:"e1pw9gww1"})(({isLatex:tt})=>({display:"flex",visibility:"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center",...tt?{justifyContent:"center"}:{}})),StyledLabelHelpInline=newStyled("label",{target:"e1pw9gww2"})(({theme:tt})=>({marginLeft:tt.spacing.xs,position:"relative",display:"flex",flexDirection:"row"}));function TooltipIcon({placement:tt=Placement.AUTO,isLatex:nt=!1,content:et,children:rt,markdownProps:ot,onMouseEnterDelay:at}){const st=useTheme();return jsx$1(StyledTooltipIconWrapper,{className:"stTooltipIcon","data-testid":"stTooltipIcon",isLatex:nt,children:jsx$1(Tooltip,{content:jsx$1(StreamlitMarkdown$1,{style:{fontSize:st.fontSizes.sm},source:et,allowHTML:!1,...ot||{}}),placement:tt,onMouseEnterDelay:at,inline:!0,children:rt||jsx$1(HelpCircle,{className:"icon",size:st.iconSizes.base})})})}const InlineTooltipIcon=({placement:tt=Placement.TOP_RIGHT,isLatex:nt=!1,content:et,children:rt,markdownProps:ot})=>jsx$1(StyledLabelHelpInline,{children:jsx$1(TooltipIcon,{placement:tt,isLatex:nt,content:et,markdownProps:ot,children:rt})}),streamlitLogo="data:image/svg+xml,%3csvg%20width='301'%20height='165'%20viewBox='0%200%20301%20165'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M150.731%20101.547L98.1387%2073.7471L6.84674%2025.4969C6.7634%2025.4136%206.59674%2025.4136%206.51341%2025.4136C3.18007%2023.8303%20-0.236608%2027.1636%201.0134%2030.497L47.5302%20149.139L47.5385%20149.164C47.5885%20149.281%2047.6302%20149.397%2047.6802%20149.514C49.5885%20153.939%2053.7552%20156.672%2058.2886%20157.747C58.6719%20157.831%2058.9461%20157.906%2059.4064%20157.998C59.8645%20158.1%2060.5052%20158.239%2061.0552%20158.281C61.1469%20158.289%2061.2302%20158.289%2061.3219%20158.297H61.3886C61.4552%20158.306%2061.5219%20158.306%2061.5886%20158.314H61.6802C61.7386%20158.322%2061.8052%20158.322%2061.8636%20158.322H61.9719C62.0386%20158.331%2062.1052%20158.331%2062.1719%20158.331V158.331C121.084%20164.754%20180.519%20164.754%20239.431%20158.331V158.331C240.139%20158.331%20240.831%20158.297%20241.497%20158.231C241.714%20158.206%20241.922%20158.181%20242.131%20158.156C242.156%20158.147%20242.189%20158.147%20242.214%20158.139C242.356%20158.122%20242.497%20158.097%20242.639%20158.072C242.847%20158.047%20243.056%20158.006%20243.264%20157.964C243.681%20157.872%20243.87%20157.806%20244.436%20157.611C245.001%20157.417%20245.94%20157.077%20246.527%20156.794C247.115%20156.511%20247.522%20156.239%20248.014%20155.931C248.622%20155.547%20249.201%20155.155%20249.788%20154.715C250.041%20154.521%20250.214%20154.397%20250.397%20154.222L250.297%20154.164L150.731%20101.547Z'%20fill='%23FF4B4B'/%3e%3cpath%20d='M294.766%2025.4981H294.683L203.357%2073.7483L254.124%20149.357L300.524%2030.4981V30.3315C301.691%2026.8314%20298.108%2023.6648%20294.766%2025.4981'%20fill='%237D353B'/%3e%3cpath%20d='M155.598%202.55572C153.264%20-0.852624%20148.181%20-0.852624%20145.931%202.55572L98.1389%2073.7477L150.731%20101.548L250.398%20154.222C251.024%20153.609%20251.526%20153.012%20252.056%20152.381C252.806%20151.456%20253.506%20150.465%20254.123%20149.356L203.356%2073.7477L155.598%202.55572Z'%20fill='%23BD4043'/%3e%3c/svg%3e";function convertRemToEm(tt){return tt.replace(/rem$/,"em")}function sharedMarkdownStyle(tt){return{a:{color:tt.colors.linkText,textDecoration:"underline"}}}function convertFontSizes(tt,nt,et,rt,ot,at){return ot?at?convertRemToEm(rt):nt:at?convertRemToEm(et):tt}function getMarkdownHeadingDefinitions(tt,nt,et){return{"h1, h2, h3, h4, h5, h6":{fontFamily:tt.genericFonts.headingFont,fontWeight:tt.fontWeights.bold,lineHeight:tt.lineHeights.headings,margin:0,color:"inherit"},h1:{fontSize:convertFontSizes(tt.fontSizes.fourXL,tt.fontSizes.xl,tt.fontSizes.threeXL,tt.fontSizes.xl,nt,et),fontWeight:nt?tt.fontWeights.bold:tt.fontWeights.extrabold,padding:`${tt.spacing.xl} 0 ${tt.spacing.lg} 0`},"h1 b, h1 strong":{fontWeight:tt.fontWeights.extrabold},"h2, h3":{letterSpacing:"-0.005em"},h2:{fontSize:convertFontSizes(tt.fontSizes.threeXL,tt.fontSizes.lg,tt.fontSizes.twoXL,tt.fontSizes.lg,nt,et),padding:`${tt.spacing.lg} 0 ${tt.spacing.lg} 0`},h3:{fontSize:convertFontSizes(tt.fontSizes.twoXL,tt.fontSizes.mdLg,tt.fontSizes.lg,tt.fontSizes.mdLg,nt,et),padding:`${tt.spacing.sm} 0 ${tt.spacing.lg} 0`},h4:{fontSize:convertFontSizes(tt.fontSizes.xl,tt.fontSizes.md,tt.fontSizes.md,tt.fontSizes.md,nt,et),padding:`${tt.spacing.md} 0 ${tt.spacing.lg} 0`},h5:{fontSize:convertFontSizes(tt.fontSizes.lg,tt.fontSizes.sm,tt.fontSizes.md,tt.fontSizes.md,nt,et),padding:`0 0 ${tt.spacing.lg} 0`},h6:{fontSize:convertFontSizes(tt.fontSizes.md,tt.fontSizes.twoSm,tt.fontSizes.md,tt.fontSizes.md,nt,et),padding:`0 0 ${tt.spacing.lg} 0`}}}const StyledStreamlitMarkdown=newStyled("div",{target:"egexzqm0"})(({theme:tt,isCaption:nt,isInSidebarOrDialog:et,isLabel:rt,boldLabel:ot,largerLabel:at,isToast:st})=>{const ut=rt&&!at||st||nt;return{fontFamily:tt.genericFonts.bodyFont,fontSize:ut?tt.fontSizes.sm:tt.fontSizes.md,marginBottom:rt?"":`-${tt.spacing.lg}`,opacity:nt?.6:void 0,color:"inherit",...sharedMarkdownStyle(tt),...getMarkdownHeadingDefinitions(tt,et,nt),p:{wordBreak:"break-word",marginBottom:rt?tt.spacing.none:"",fontWeight:ot?tt.fontWeights.bold:"",marginTop:tt.spacing.none,marginLeft:tt.spacing.none,marginRight:tt.spacing.none},img:{maxWidth:"100%",maxHeight:rt?"1em":void 0,verticalAlign:"middle"},li:{margin:"0.2em 0 0.2em 1.2em",padding:"0 0 0 0.6em"},blockquote:{margin:"1em 0 1em 0",padding:"0 0 0 1.2em",borderLeft:`${tt.sizes.borderWidth} solid ${tt.colors.lightGray}`},"b, strong":{fontWeight:tt.fontWeights.bold},hr:{margin:"2em 0",padding:0,color:"inherit",backgroundColor:"transparent",border:"none",borderBottom:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`,"&:not([size])":{height:tt.sizes.borderWidth}},table:{marginBottom:tt.spacing.lg,borderCollapse:"collapse"},tr:{borderTop:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`},th:{textAlign:"inherit"},"th, td":{padding:`${tt.spacing.xs} ${tt.spacing.md}`,border:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`},"span.has-background-color":{padding:`${tt.spacing.threeXS} ${tt.spacing.twoXS}`,margin:tt.spacing.none,borderRadius:tt.radii.md},"p, ol, ul, dl, li":{fontSize:"inherit"}}}),StyledLinkIcon=newStyled("a",{target:"egexzqm1"})(({theme:tt})=>({lineHeight:0,display:"inline-flex",alignItems:"center",justifyContent:"center",svg:{stroke:tt.colors.fadedText60,strokeWidth:2.25},"&:hover svg":{stroke:tt.colors.bodyText}})),StyledHeadingWithActionElements=newStyled("div",{target:"egexzqm2"})(({theme:tt})=>({"h1, h2, h3, h4, h5, h6, span":{scrollMarginTop:tt.sizes.headerHeight},...sharedMarkdownStyle(tt),wordBreak:"break-word",textWrap:"pretty",[StyledLinkIcon]:{visibility:"hidden"},"&:hover":{[StyledLinkIcon]:{visibility:"visible"}}})),StyledHeadingActionElements=newStyled("span",{target:"egexzqm3"})(({theme:tt})=>({marginLeft:tt.spacing.sm,display:"inline-flex",gap:tt.spacing.sm,verticalAlign:"middle","& > *":{marginLeft:"0 !important"}})),StyledHeaderDivider=newStyled("hr",{target:"egexzqm4"})(({theme:tt,rainbow:nt,color:et})=>({height:`${tt.spacing.threeXS} !important`,marginTop:tt.spacing.sm,marginBottom:tt.spacing.none,border:"none",borderRadius:tt.radii.full,...nt?{background:et}:{backgroundColor:et}})),StyledPreWrapper=newStyled("div",{target:"egexzqm5"})(({theme:tt})=>({marginBottom:tt.spacing.lg}));var Tags;(function(tt){tt.H1="h1",tt.H2="h2",tt.H3="h3"})(Tags||(Tags={}));function createAnchorFromText(tt){let nt="";return tt&&/^[\x00-\x7F]*$/.test(tt)?nt=tt==null?void 0:tt.toLowerCase().split(/[^\p{L}\p{N}]+/gu).filter(Boolean).join("-"):tt&&(nt=xxhash.h32(tt,43981).toString(16)),nt}function transformLinkUri(tt){return tt}const scrollNodeIntoView=once$1(tt=>{tt.scrollIntoView(!0)}),HeaderActionElements=({elementId:tt,help:nt,hideAnchor:et})=>{const rt=useTheme();return!nt&&et?jsx$1(Fragment,{}):jsxs(StyledHeadingActionElements,{"data-testid":"stHeaderActionElements",children:[nt&&jsx$1(InlineTooltipIcon,{content:nt}),tt&&!et&&jsx$1(StyledLinkIcon,{href:`#${tt}`,children:jsx$1(Link2,{size:rt.iconSizes.base})})]})},HeadingWithActionElements=({tag:tt,anchor:nt,help:et,hideAnchor:rt,children:ot,tagProps:at})=>{const st=React$1.useContext(IsSidebarContext),ut=React$1.useContext(IsDialogContext),[ct,pt]=React$1.useState(nt),[dt,ft]=React$1.useState(null),{addScriptFinishedHandler:bt,removeScriptFinishedHandler:ht}=React$1.useContext(LibContext),Mt=React$1.useCallback(()=>{dt!==null&&window.setTimeout(()=>{scrollNodeIntoView(dt)},300)},[dt]);React$1.useEffect(()=>(bt(Mt),()=>{ht(Mt)}),[bt,ht,Mt]);const mt=React$1.useCallback(At=>{if(At===null)return;const St=nt||createAnchorFromText(At.textContent);pt(St);const Et=window.location.hash.slice(1);Et&&Et===St&&ft(At)},[nt]),Ot=st||ut,zt=jsx$1(HeaderActionElements,{elementId:ct,help:et,hideAnchor:rt||Ot}),yt=Ot?{}:{ref:mt,id:ct},vt=React$1.createElement(tt,{...at,...yt},jsxs(Fragment,{children:[ot,zt]}));return Ot?vt:jsx$1(StyledHeadingWithActionElements,{"data-testid":"stHeadingWithActionElements",children:vt})},CustomHeading=({node:tt,children:nt,...et})=>{const rt=et["data-anchor"];return jsx$1(HeadingWithActionElements,{tag:tt.tagName,anchor:rt,tagProps:et,children:nt})},CustomCodeTag=({inline:tt,className:nt,children:et,...rt})=>{const ot=/language-(\w+)/.exec(nt||""),at=String(et).trim().replace(/\n$/,""),st=ot&&ot[1]||"";return tt?jsx$1(StyledInlineCode,{className:nt,...omit$1(rt,"node"),children:et}):jsx$1(StreamlitSyntaxHighlighter$1,{language:st,showLineNumbers:!1,children:at})},CustomPreTag=({children:tt})=>jsx$1(StyledPreWrapper,{"data-testid":"stMarkdownPre",children:tt});function RenderedMarkdown({allowHTML:tt,source:nt,overrideComponents:et,isLabel:rt,disableLinks:ot}){const at={pre:CustomPreTag,code:CustomCodeTag,a:LinkWithTargetBlank,h1:CustomHeading,h2:CustomHeading,h3:CustomHeading,h4:CustomHeading,h5:CustomHeading,h6:CustomHeading,...et||{}},st=useTheme(),{red:ut,orange:ct,yellow:pt,green:dt,blue:ft,violet:bt,purple:ht,gray:Mt,primary:mt}=getMarkdownTextColors(st),{redbg:Ot,orangebg:zt,yellowbg:yt,greenbg:vt,bluebg:At,violetbg:St,purplebg:Et,graybg:Tt,primarybg:Rt}=getMarkdownBgColors(st),Ct=new Map(Object.entries({red:`color: ${ut}`,blue:`color: ${ft}`,green:`color: ${dt}`,violet:`color: ${bt}`,orange:`color: ${ct}`,gray:`color: ${Mt}`,grey:`color: ${Mt}`,primary:`color: ${mt}`,rainbow:`color: transparent; background-clip: text; -webkit-background-clip: text; background-image: linear-gradient(to right,
441
441
  ${ut}, ${ct}, ${pt}, ${dt}, ${ft}, ${bt}, ${ht});`,"red-background":`background-color: ${Ot}`,"blue-background":`background-color: ${At}`,"green-background":`background-color: ${vt}`,"violet-background":`background-color: ${St}`,"orange-background":`background-color: ${zt}`,"gray-background":`background-color: ${Tt}`,"grey-background":`background-color: ${Tt}`,"primary-background":`background-color: ${Rt}`,"rainbow-background":`background: linear-gradient(to right,
442
- ${Ot}, ${zt}, ${yt}, ${vt}, ${At}, ${St}, ${Et});`}));function wt(){return a0=>{visit(a0,"textDirective",(b0,kt,o0)=>{const qt=String(b0.name);if(Ct.has(qt)){const Dt=b0.data||(b0.data={}),Bt=Ct.get(qt);Dt.hName="span",Dt.hProperties=Dt.hProperties||{},Dt.hProperties.style=Bt,Bt&&(/background-color:/.test(Bt)||/background:/.test(Bt))&&(Dt.hProperties.className=(Dt.hProperties.className||"")+" has-background-color")}else b0.type="text",b0.value=`:${qt}`,b0.data={}})}}function Lt(){return a0=>{function b0(kt,o0){return{type:"text",value:kt,data:{hName:"span",hProperties:{role:"img",ariaLabel:o0+" icon",style:{display:"inline-block",fontFamily:st.genericFonts.iconFont,fontWeight:st.fontWeights.normal,userSelect:"none",verticalAlign:"bottom",whiteSpace:"nowrap",wordWrap:"normal"}},hChildren:[{type:"text",value:o0}]}}}return findAndReplace(a0,[[/:material_(\w+):/g,b0]]),a0}}function Ht(){return a0=>{function b0(){return{type:"text",value:"",data:{hName:"img",hProperties:{src:streamlitLogo,alt:"Streamlit logo",style:{display:"inline-block",userSelect:"none",height:"0.75em",verticalAlign:"baseline",marginBottom:"-0.05ex"}}}}}return findAndReplace(a0,[[/:streamlit:/g,b0]]),a0}}function jt(){return a0=>(visit(a0,(b0,kt,o0)=>{if(!(o0&&(o0.type==="link"||o0.type==="linkReference"))&&b0.type==="text"&&b0.value){const qt=[[/(^|\s)<->(\s|$)/g,"$1↔$2"],[/(^|\s)->(\s|$)/g,"$1→$2"],[/(^|\s)<-(\s|$)/g,"$1←$2"],[/(^|\s)--(\s|$)/g,"$1—$2"],[/(^|\s)>=(\s|$)/g,"$1≥$2"],[/(^|\s)<=(\s|$)/g,"$1≤$2"],[/(^|\s)~=(\s|$)/g,"$1≈$2"]];let Dt=b0.value;for(const[Bt,p0]of qt)Dt=Dt.replace(Bt,p0);Dt!==b0.value&&(b0.value=Dt)}}),a0)}const s0=[remarkMath,plugin,remarkGfm,remarkDirective,wt,Lt,Ht,jt],Ut=[rehypeKatex,...tt?[rehypeRaw]:[]],Yt=nt.replaceAll(":material/",":material_"),O0=["table","thead","tbody","tr","th","td","h1","h2","h3","h4","h5","h6","ul","ol","li","input","hr","blockquote",...ot?["a"]:[]];return jsx$1(ErrorBoundary,{children:jsx$1(ReactMarkdown,{remarkPlugins:s0,rehypePlugins:Ut,components:at,transformLinkUri,disallowedElements:rt?O0:[],unwrapDisallowed:!0,children:Yt})})}const StreamlitMarkdown=({source:tt,allowHTML:nt,style:et,isCaption:rt,isLabel:ot,boldLabel:at,largerLabel:st,disableLinks:ut,isToast:ct})=>{const pt=reactExports.useContext(IsSidebarContext),dt=reactExports.useContext(IsDialogContext);return jsx$1(StyledStreamlitMarkdown,{isCaption:!!rt,isInSidebarOrDialog:pt||dt,isLabel:ot,boldLabel:at,largerLabel:st,isToast:ct,style:et,"data-testid":rt?"stCaptionContainer":"stMarkdownContainer",children:jsx$1(RenderedMarkdown,{source:tt,allowHTML:nt,isLabel:ot,disableLinks:ut})})};function LinkWithTargetBlank(tt){const{href:nt}=tt;if(nt&&nt.startsWith("#")){const{children:ut,...ct}=tt;return jsx$1("a",{...omit$1(ct,"node"),children:ut})}const{title:et,children:rt,target:ot,rel:at,...st}=tt;return jsx$1("a",{href:nt,title:et,target:ot||"_blank",rel:at||"noopener noreferrer",...omit$1(st,"node"),children:rt})}const StreamlitMarkdown$1=reactExports.memo(StreamlitMarkdown),DynamicButtonLabel=({icon:tt,label:nt,iconSize:et})=>{const rt=tt==null?void 0:tt.startsWith(":material");return jsxs(Fragment,{children:[tt&&jsx$1(DynamicIcon,{size:et??(rt?"lg":"base"),margin:nt?rt?"0 sm 0 0":"0 md 0 0":"0",color:"inherit",iconValue:tt}),nt&&jsx$1(StreamlitMarkdown$1,{source:nt,allowHTML:!1,isLabel:!0,largerLabel:!0,disableLinks:!0})]})};var BaseButtonKind;(function(tt){tt.PRIMARY="primary",tt.SECONDARY="secondary",tt.TERTIARY="tertiary",tt.GHOST="ghost",tt.LINK="link",tt.ICON="icon",tt.BORDERLESS_ICON="borderlessIcon",tt.BORDERLESS_ICON_ACTIVE="borderlessIconActive",tt.MINIMAL="minimal",tt.PRIMARY_FORM_SUBMIT="primaryFormSubmit",tt.SECONDARY_FORM_SUBMIT="secondaryFormSubmit",tt.TERTIARY_FORM_SUBMIT="tertiaryFormSubmit",tt.HEADER_BUTTON="header",tt.HEADER_NO_PADDING="headerNoPadding",tt.ELEMENT_TOOLBAR="elementToolbar",tt.PILLS="pills",tt.PILLS_ACTIVE="pillsActive",tt.SEGMENTED_CONTROL="segmented_control",tt.SEGMENTED_CONTROL_ACTIVE="segmented_controlActive"})(BaseButtonKind||(BaseButtonKind={}));var BaseButtonSize;(function(tt){tt.XSMALL="xsmall",tt.SMALL="small",tt.MEDIUM="medium",tt.LARGE="large"})(BaseButtonSize||(BaseButtonSize={}));function getSizeStyle(tt,nt){switch(tt){case"xsmall":return{padding:`${nt.spacing.twoXS} ${nt.spacing.sm}`,fontSize:nt.fontSizes.sm};case"small":return{padding:`${nt.spacing.twoXS} ${nt.spacing.md}`};case"large":return{padding:`${nt.spacing.md} ${nt.spacing.md}`};default:return{padding:`${nt.spacing.xs} ${nt.spacing.md}`}}}const StyledBaseButton=newStyled("button",{target:"e1bocl8m0"})(({fluidWidth:tt,size:nt,theme:et})=>{const rt=typeof tt=="number"?`${tt}px`:"100%";return{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:et.fontWeights.normal,padding:`${et.spacing.xs} ${et.spacing.md}`,borderRadius:et.radii.default,minHeight:et.sizes.minElementHeight,margin:et.spacing.none,lineHeight:et.lineHeights.base,textTransform:"none",fontSize:"inherit",fontFamily:"inherit",color:"inherit",width:tt?rt:"auto",cursor:"pointer",userSelect:"none","&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${transparentize(et.colors.primary,.5)}`},...getSizeStyle(nt,et)}}),StyledPrimaryButton=newStyled(StyledBaseButton,{target:"e1bocl8m1"})(({theme:tt})=>({backgroundColor:tt.colors.primary,color:tt.colors.white,border:`${tt.sizes.borderWidth} solid ${tt.colors.primary}`,"&:hover":{backgroundColor:darken(tt.colors.primary,.05)},"&:active":{backgroundColor:"transparent",color:tt.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:tt.colors.borderColor,backgroundColor:tt.colors.transparent,color:tt.colors.fadedText40,cursor:"not-allowed"}})),StyledSecondaryButton=newStyled(StyledBaseButton,{target:"e1bocl8m2"})(({theme:tt})=>({backgroundColor:tt.colors.lightenedBg05,border:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`,"&:hover":{borderColor:tt.colors.primary,color:tt.colors.primary},"&:active":{color:tt.colors.white,borderColor:tt.colors.primary,backgroundColor:tt.colors.primary},"&:focus:not(:active)":{borderColor:tt.colors.primary,color:tt.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:tt.colors.borderColor,backgroundColor:tt.colors.transparent,color:tt.colors.fadedText40,cursor:"not-allowed"}})),StyledTertiaryButton=newStyled(StyledBaseButton,{target:"e1bocl8m3"})(({theme:tt})=>({padding:tt.spacing.none,backgroundColor:tt.colors.transparent,border:"none","&:active":{color:tt.colors.primary},"&:focus":{outline:"none"},"&:focus-visible":{color:tt.colors.primary,boxShadow:`0 0 0 0.2rem ${transparentize(tt.colors.primary,.5)}`},"&:hover":{color:tt.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:tt.colors.transparent,color:tt.colors.fadedText40,cursor:"not-allowed"}})),StyledGhostButton=newStyled(StyledBaseButton,{target:"e1bocl8m4"})(({theme:tt})=>({backgroundColor:tt.colors.transparent,border:`${tt.sizes.borderWidth} solid ${tt.colors.transparent}`,"&:hover":{borderColor:tt.colors.transparent,color:tt.colors.primary},"&:active":{color:tt.colors.primary,borderColor:tt.colors.transparent,backgroundColor:tt.colors.transparent},"&:focus:not(:active)":{borderColor:tt.colors.transparent,color:tt.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:tt.colors.lightGray,borderColor:tt.colors.transparent,color:tt.colors.gray}})),StyledLinkButton=newStyled(StyledBaseButton,{target:"e1bocl8m5"})(({theme:tt})=>({backgroundColor:tt.colors.transparent,padding:tt.spacing.none,border:"none",color:tt.colors.primary,"&:hover":{textDecoration:"underline"},"&:active":{backgroundColor:tt.colors.transparent,color:tt.colors.primary,textDecoration:"underline"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:tt.colors.lightGray,borderColor:tt.colors.transparent,color:tt.colors.gray}})),StyledMinimalButton=newStyled(StyledBaseButton,{target:"e1bocl8m6"})(({theme:tt})=>({backgroundColor:tt.colors.transparent,border:"none",boxShadow:"none",padding:tt.spacing.none,"&:hover, &:active, &:focus-visible":{color:tt.colors.primary}})),StyledPrimaryFormSubmitButton=newStyled(StyledPrimaryButton,{target:"e1bocl8m7"})(),StyledSecondaryFormSubmitButton=newStyled(StyledSecondaryButton,{target:"e1bocl8m8"})(),StyledTertiaryFormSubmitButton=newStyled(StyledTertiaryButton,{target:"e1bocl8m9"})(),StyledIconButton=newStyled(StyledBaseButton,{target:"e1bocl8m10"})(({theme:tt})=>({backgroundColor:tt.colors.transparent,border:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`,flex:"1 1 0",padding:0,"&:hover":{borderColor:tt.colors.primary,color:tt.colors.primary},"&:active":{backgroundColor:tt.colors.primary,borderColor:tt.colors.primary,color:tt.colors.white},"&:not(:active)":{boxShadow:"none"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:tt.colors.lightGray,borderColor:tt.colors.transparent,color:tt.colors.gray,cursor:"not-allowed"}})),StyledButtonGroupBaseButton=newStyled(StyledBaseButton,{target:"e1bocl8m12"})(({theme:tt})=>({background:tt.colors.bgColor,color:tt.colors.text,border:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`,fontSize:tt.fontSizes.sm,lineHeight:tt.lineHeights.base,fontWeight:tt.fontWeights.normal,height:tt.sizes.largeLogoHeight,minHeight:tt.sizes.largeLogoHeight,maxWidth:tt.sizes.contentMaxWidth,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&:hover":{borderColor:tt.colors.primary,color:tt.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{color:tt.colors.fadedText20,borderColor:tt.colors.fadedText20,cursor:"not-allowed"},"& div":{textOverflow:"ellipsis",overflow:"hidden"},"& p":{fontSize:tt.fontSizes.sm,textOverflow:"ellipsis",overflow:"hidden"}})),StyledPillsButton=newStyled(StyledButtonGroupBaseButton,{target:"e1bocl8m13"})(({theme:tt})=>({borderRadius:tt.radii.full,padding:`${tt.spacing.twoXS} ${tt.spacing.md}`})),StyledPillsButtonActive=newStyled(StyledPillsButton,{target:"e1bocl8m14"})(({theme:tt})=>({backgroundColor:transparentize(tt.colors.primary,.9),borderColor:tt.colors.primary,color:tt.colors.primary,"&:hover":{backgroundColor:transparentize(tt.colors.primary,.8),borderColor:tt.colors.primary,color:tt.colors.primary}})),StyledSegmentedControlButton=newStyled(StyledButtonGroupBaseButton,{target:"e1bocl8m15"})(({theme:tt})=>({padding:`${tt.spacing.twoXS} ${tt.spacing.lg}`,borderRadius:"0",flex:"1 0 fit-content",maxWidth:"100%",marginRight:`-${tt.sizes.borderWidth}`,"&:first-child":{borderTopLeftRadius:tt.radii.default,borderBottomLeftRadius:tt.radii.default},"&:last-child":{borderTopRightRadius:tt.radii.default,borderBottomRightRadius:tt.radii.default,marginRight:tt.spacing.none},"&:hover":{zIndex:tt.zIndices.priority}})),StyledSegmentedControlButtonActive=newStyled(StyledSegmentedControlButton,{target:"e1bocl8m16"})(({theme:tt})=>({backgroundColor:transparentize(tt.colors.primary,.9),borderColor:tt.colors.primary,color:tt.colors.primary,zIndex:tt.zIndices.priority,"&:hover":{backgroundColor:transparentize(tt.colors.primary,.8)}})),StyledHeaderButton=newStyled(StyledBaseButton,{target:"e1bocl8m17"})(({theme:tt})=>({backgroundColor:tt.colors.transparent,border:"none",padding:tt.spacing.sm,fontSize:tt.fontSizes.sm,marginLeft:tt.spacing.threeXS,marginRight:tt.spacing.threeXS,lineHeight:tt.lineHeights.none,minWidth:tt.spacing.threeXL,minHeight:tt.spacing.threeXL,"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${transparentize(tt.colors.gray90,.8)}`},"&:hover":{backgroundColor:tt.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:tt.colors.lightGray,borderColor:tt.colors.transparent,color:tt.colors.gray}})),StyledHeaderNoPaddingButton=newStyled(StyledHeaderButton,{target:"e1bocl8m18"})(()=>({padding:0})),StyledBorderlessIconButton=newStyled(StyledBaseButton,{target:"e1bocl8m19"})(({size:tt,theme:nt})=>{const et={xsmall:nt.spacing.threeXS,small:nt.spacing.twoXS,medium:nt.spacing.md,large:nt.spacing.lg};return{backgroundColor:nt.colors.transparent,color:nt.colors.fadedText60,padding:et[tt],marginLeft:nt.spacing.none,marginRight:nt.spacing.none,border:"none",display:"flex",minHeight:"unset","&:focus":{boxShadow:"none",outline:"none"},"&:hover":{color:nt.colors.text},"&:disabled, &:disabled:hover, &:disabled:active":{color:nt.colors.fadedText10,cursor:"not-allowed",img:{opacity:.4}}}}),StyledBorderlessIconButtonActive=newStyled(StyledBorderlessIconButton,{target:"e1bocl8m20"})(({theme:tt})=>({color:tt.colors.bodyText,"&:disabled, &:disabled:hover, &:disabled:active":{color:tt.colors.fadedText40}})),StyledTooltipNormal=newStyled("div",{target:"e1bocl8m21"})(({theme:tt})=>({display:"block",[`@media (max-width: ${tt.breakpoints.sm})`]:{display:"none"}})),StyledTooltipMobile=newStyled("div",{target:"e1bocl8m22"})(({theme:tt})=>({display:"none",[`@media (max-width: ${tt.breakpoints.sm})`]:{display:"block"}})),StyledElementToolbarButton=newStyled(StyledBaseButton,{target:"e1bocl8m23"})(({theme:tt})=>({backgroundColor:tt.colors.transparent,border:"none",padding:tt.spacing.xs,fontSize:tt.fontSizes.twoSm,marginLeft:tt.spacing.none,marginRight:tt.spacing.none,display:"flex",gap:tt.spacing.xs,alignItems:"center",minHeight:"unset",lineHeight:tt.iconSizes.md,"&:focus":{outline:"none",border:"none",boxShadow:"none"},"&:focus-visible":{outline:"none",border:"none",boxShadow:"none",backgroundColor:tt.colors.darkenedBgMix25},"&:hover":{backgroundColor:tt.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:tt.colors.lightGray,borderColor:tt.colors.transparent,color:tt.colors.gray}}));function BaseButton(tt){const{kind:nt,size:et,disabled:rt,onClick:ot,fluidWidth:at,children:st,autoFocus:ut}=tt;let ct=StyledPrimaryButton;return nt===BaseButtonKind.SECONDARY?ct=StyledSecondaryButton:nt===BaseButtonKind.TERTIARY?ct=StyledTertiaryButton:nt===BaseButtonKind.GHOST?ct=StyledGhostButton:nt===BaseButtonKind.LINK?ct=StyledLinkButton:nt===BaseButtonKind.ICON?ct=StyledIconButton:nt===BaseButtonKind.PILLS?ct=StyledPillsButton:nt===BaseButtonKind.PILLS_ACTIVE?ct=StyledPillsButtonActive:nt===BaseButtonKind.SEGMENTED_CONTROL?ct=StyledSegmentedControlButton:nt===BaseButtonKind.SEGMENTED_CONTROL_ACTIVE?ct=StyledSegmentedControlButtonActive:nt===BaseButtonKind.BORDERLESS_ICON?ct=StyledBorderlessIconButton:nt===BaseButtonKind.BORDERLESS_ICON_ACTIVE?ct=StyledBorderlessIconButtonActive:nt===BaseButtonKind.MINIMAL?ct=StyledMinimalButton:nt===BaseButtonKind.PRIMARY_FORM_SUBMIT?ct=StyledPrimaryFormSubmitButton:nt===BaseButtonKind.SECONDARY_FORM_SUBMIT?ct=StyledSecondaryFormSubmitButton:nt===BaseButtonKind.TERTIARY_FORM_SUBMIT?ct=StyledTertiaryFormSubmitButton:nt===BaseButtonKind.HEADER_BUTTON?ct=StyledHeaderButton:nt===BaseButtonKind.HEADER_NO_PADDING?ct=StyledHeaderNoPaddingButton:nt===BaseButtonKind.ELEMENT_TOOLBAR&&(ct=StyledElementToolbarButton),jsx$1(ct,{kind:nt,size:et??BaseButtonSize.MEDIUM,fluidWidth:at||!1,disabled:rt||!1,onClick:ot||(()=>{}),autoFocus:ut||!1,"data-testid":tt["data-testid"]??`stBaseButton-${nt}`,"aria-label":tt["aria-label"]??"",children:st})}function BaseButtonTooltip({children:tt,help:nt,placement:et}){return nt?jsxs(Fragment,{children:[jsx$1(StyledTooltipNormal,{children:jsx$1(TooltipIcon,{content:nt,placement:et||Placement.TOP,children:tt})}),jsx$1(StyledTooltipMobile,{children:tt})]}):tt}function FormSubmitButton(tt){const{disabled:nt,element:et,widgetMgr:rt,hasInProgressUpload:ot,width:at,fragmentId:st}=tt,{formId:ut}=et,ct={width:at};let pt=BaseButtonKind.SECONDARY_FORM_SUBMIT;et.type==="primary"?pt=BaseButtonKind.PRIMARY_FORM_SUBMIT:et.type==="tertiary"&&(pt=BaseButtonKind.TERTIARY_FORM_SUBMIT),reactExports.useEffect(()=>(rt.addSubmitButton(ut,et),()=>rt.removeSubmitButton(ut,et)),[rt,ut,et]);const dt=et.help?at:!0;return jsx$1("div",{className:"stFormSubmitButton","data-testid":"stFormSubmitButton",style:ct,children:jsx$1(BaseButtonTooltip,{help:et.help,children:jsx$1(BaseButton,{kind:pt,size:BaseButtonSize.SMALL,fluidWidth:et.useContainerWidth?dt:!1,disabled:nt||ot,onClick:()=>{rt.submitForm(et.formId,st,et)},children:jsx$1(DynamicButtonLabel,{icon:et.icon,label:et.label})})})})}const StyledFormSubmitContent=newStyled("div",{target:"e1ttwmlf0"})({display:"flex"}),StyledForm=newStyled("div",{target:"e1ttwmlf1"})(({theme:tt,border:nt})=>({...nt&&{border:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`,borderRadius:tt.radii.default,padding:`calc(${tt.spacing.lg} - ${tt.sizes.borderWidth})`}})),StyledErrorContainer=newStyled("div",{target:"e1ttwmlf2"})(({theme:tt})=>({marginTop:tt.spacing.lg}));function FormSubmitContent(tt){const{width:nt}=tt;return jsx$1(StyledFormSubmitContent,{style:{width:nt},children:jsx$1(FormSubmitButton,{...tt})})}const StyledAlertContent=newStyled("div",{target:"emaxq6v0"})(({theme:tt})=>({display:"flex",gap:tt.spacing.sm,width:"100%",[`${StyledEmojiIcon}, ${StyledIcon}, ${StyledMaterialIcon}`]:{position:"relative",top:"2px"},[`${StyledCodeBlock} code`]:{paddingRight:tt.spacing.lg}}));function getAlertElementKind(tt){switch(tt){case Alert.Format.ERROR:return Kind.ERROR;case Alert.Format.INFO:return Kind.INFO;case Alert.Format.SUCCESS:return Kind.SUCCESS;case Alert.Format.WARNING:return Kind.WARNING;default:throw new Error(`Unexpected alert type: ${tt}`)}}function AlertElement({icon:tt,body:nt,kind:et,width:rt}){const ot=useTheme(),at={width:tt?`calc(100% - (${ot.iconSizes.lg} + ${ot.spacing.sm}))`:"100%"};return jsx$1("div",{className:"stAlert","data-testid":"stAlert",children:jsx$1(AlertContainer,{width:rt,kind:et,children:jsxs(StyledAlertContent,{children:[tt&&jsx$1(DynamicIcon,{iconValue:tt,size:"lg",testid:"stAlertDynamicIcon"}),jsx$1(StreamlitMarkdown$1,{source:nt,allowHTML:!1,style:at})]})})})}var ScriptRunState;(function(tt){tt.NOT_RUNNING="notRunning",tt.RUNNING="running",tt.RERUN_REQUESTED="rerunRequested",tt.STOP_REQUESTED="stopRequested",tt.COMPILATION_ERROR="compilationError"})(ScriptRunState||(ScriptRunState={}));const MISSING_SUBMIT_BUTTON_WARNING=`**Missing Submit Button**
442
+ ${Ot}, ${zt}, ${yt}, ${vt}, ${At}, ${St}, ${Et});`}));function wt(){return a0=>{visit(a0,"textDirective",(b0,kt,o0)=>{const qt=String(b0.name);if(Ct.has(qt)){const Dt=b0.data||(b0.data={}),Bt=Ct.get(qt);Dt.hName="span",Dt.hProperties=Dt.hProperties||{},Dt.hProperties.style=Bt,Bt&&(/background-color:/.test(Bt)||/background:/.test(Bt))&&(Dt.hProperties.className=(Dt.hProperties.className||"")+" has-background-color")}else b0.type="text",b0.value=`:${qt}`,b0.data={}})}}function Lt(){return a0=>{function b0(kt,o0){return{type:"text",value:kt,data:{hName:"span",hProperties:{role:"img",ariaLabel:o0+" icon",translate:"no",style:{display:"inline-block",fontFamily:st.genericFonts.iconFont,fontWeight:st.fontWeights.normal,userSelect:"none",verticalAlign:"bottom",whiteSpace:"nowrap",wordWrap:"normal"}},hChildren:[{type:"text",value:o0}]}}}return findAndReplace(a0,[[/:material_(\w+):/g,b0]]),a0}}function Ht(){return a0=>{function b0(){return{type:"text",value:"",data:{hName:"img",hProperties:{src:streamlitLogo,alt:"Streamlit logo",style:{display:"inline-block",userSelect:"none",height:"0.75em",verticalAlign:"baseline",marginBottom:"-0.05ex"}}}}}return findAndReplace(a0,[[/:streamlit:/g,b0]]),a0}}function jt(){return a0=>(visit(a0,(b0,kt,o0)=>{if(!(o0&&(o0.type==="link"||o0.type==="linkReference"))&&b0.type==="text"&&b0.value){const qt=[[/(^|\s)<->(\s|$)/g,"$1↔$2"],[/(^|\s)->(\s|$)/g,"$1→$2"],[/(^|\s)<-(\s|$)/g,"$1←$2"],[/(^|\s)--(\s|$)/g,"$1—$2"],[/(^|\s)>=(\s|$)/g,"$1≥$2"],[/(^|\s)<=(\s|$)/g,"$1≤$2"],[/(^|\s)~=(\s|$)/g,"$1≈$2"]];let Dt=b0.value;for(const[Bt,p0]of qt)Dt=Dt.replace(Bt,p0);Dt!==b0.value&&(b0.value=Dt)}}),a0)}const s0=[remarkMath,plugin,remarkGfm,remarkDirective,wt,Lt,Ht,jt],Ut=[rehypeKatex,...tt?[rehypeRaw]:[]],Yt=nt.replaceAll(":material/",":material_"),O0=["table","thead","tbody","tr","th","td","h1","h2","h3","h4","h5","h6","ul","ol","li","input","hr","blockquote",...ot?["a"]:[]];return jsx$1(ErrorBoundary,{children:jsx$1(ReactMarkdown,{remarkPlugins:s0,rehypePlugins:Ut,components:at,transformLinkUri,disallowedElements:rt?O0:[],unwrapDisallowed:!0,children:Yt})})}const StreamlitMarkdown=({source:tt,allowHTML:nt,style:et,isCaption:rt,isLabel:ot,boldLabel:at,largerLabel:st,disableLinks:ut,isToast:ct})=>{const pt=reactExports.useContext(IsSidebarContext),dt=reactExports.useContext(IsDialogContext);return jsx$1(StyledStreamlitMarkdown,{isCaption:!!rt,isInSidebarOrDialog:pt||dt,isLabel:ot,boldLabel:at,largerLabel:st,isToast:ct,style:et,"data-testid":rt?"stCaptionContainer":"stMarkdownContainer",children:jsx$1(RenderedMarkdown,{source:tt,allowHTML:nt,isLabel:ot,disableLinks:ut})})};function LinkWithTargetBlank(tt){const{href:nt}=tt;if(nt&&nt.startsWith("#")){const{children:ut,...ct}=tt;return jsx$1("a",{...omit$1(ct,"node"),children:ut})}const{title:et,children:rt,target:ot,rel:at,...st}=tt;return jsx$1("a",{href:nt,title:et,target:ot||"_blank",rel:at||"noopener noreferrer",...omit$1(st,"node"),children:rt})}const StreamlitMarkdown$1=reactExports.memo(StreamlitMarkdown),DynamicButtonLabel=({icon:tt,label:nt,iconSize:et})=>{const rt=tt==null?void 0:tt.startsWith(":material");return jsxs(Fragment,{children:[tt&&jsx$1(DynamicIcon,{size:et??(rt?"lg":"base"),margin:nt?rt?"0 sm 0 0":"0 md 0 0":"0",color:"inherit",iconValue:tt}),nt&&jsx$1(StreamlitMarkdown$1,{source:nt,allowHTML:!1,isLabel:!0,largerLabel:!0,disableLinks:!0})]})};var BaseButtonKind;(function(tt){tt.PRIMARY="primary",tt.SECONDARY="secondary",tt.TERTIARY="tertiary",tt.GHOST="ghost",tt.LINK="link",tt.ICON="icon",tt.BORDERLESS_ICON="borderlessIcon",tt.BORDERLESS_ICON_ACTIVE="borderlessIconActive",tt.MINIMAL="minimal",tt.PRIMARY_FORM_SUBMIT="primaryFormSubmit",tt.SECONDARY_FORM_SUBMIT="secondaryFormSubmit",tt.TERTIARY_FORM_SUBMIT="tertiaryFormSubmit",tt.HEADER_BUTTON="header",tt.HEADER_NO_PADDING="headerNoPadding",tt.ELEMENT_TOOLBAR="elementToolbar",tt.PILLS="pills",tt.PILLS_ACTIVE="pillsActive",tt.SEGMENTED_CONTROL="segmented_control",tt.SEGMENTED_CONTROL_ACTIVE="segmented_controlActive"})(BaseButtonKind||(BaseButtonKind={}));var BaseButtonSize;(function(tt){tt.XSMALL="xsmall",tt.SMALL="small",tt.MEDIUM="medium",tt.LARGE="large"})(BaseButtonSize||(BaseButtonSize={}));function getSizeStyle(tt,nt){switch(tt){case"xsmall":return{padding:`${nt.spacing.twoXS} ${nt.spacing.sm}`,fontSize:nt.fontSizes.sm};case"small":return{padding:`${nt.spacing.twoXS} ${nt.spacing.md}`};case"large":return{padding:`${nt.spacing.md} ${nt.spacing.md}`};default:return{padding:`${nt.spacing.xs} ${nt.spacing.md}`}}}const StyledBaseButton=newStyled("button",{target:"e1bocl8m0"})(({fluidWidth:tt,size:nt,theme:et})=>{const rt=typeof tt=="number"?`${tt}px`:"100%";return{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:et.fontWeights.normal,padding:`${et.spacing.xs} ${et.spacing.md}`,borderRadius:et.radii.default,minHeight:et.sizes.minElementHeight,margin:et.spacing.none,lineHeight:et.lineHeights.base,textTransform:"none",fontSize:"inherit",fontFamily:"inherit",color:"inherit",width:tt?rt:"auto",cursor:"pointer",userSelect:"none","&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${transparentize(et.colors.primary,.5)}`},...getSizeStyle(nt,et)}}),StyledPrimaryButton=newStyled(StyledBaseButton,{target:"e1bocl8m1"})(({theme:tt})=>({backgroundColor:tt.colors.primary,color:tt.colors.white,border:`${tt.sizes.borderWidth} solid ${tt.colors.primary}`,"&:hover":{backgroundColor:darken(tt.colors.primary,.05)},"&:active":{backgroundColor:"transparent",color:tt.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:tt.colors.borderColor,backgroundColor:tt.colors.transparent,color:tt.colors.fadedText40,cursor:"not-allowed"}})),StyledSecondaryButton=newStyled(StyledBaseButton,{target:"e1bocl8m2"})(({theme:tt})=>({backgroundColor:tt.colors.lightenedBg05,border:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`,"&:hover":{borderColor:tt.colors.primary,color:tt.colors.primary},"&:active":{color:tt.colors.white,borderColor:tt.colors.primary,backgroundColor:tt.colors.primary},"&:focus:not(:active)":{borderColor:tt.colors.primary,color:tt.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:tt.colors.borderColor,backgroundColor:tt.colors.transparent,color:tt.colors.fadedText40,cursor:"not-allowed"}})),StyledTertiaryButton=newStyled(StyledBaseButton,{target:"e1bocl8m3"})(({theme:tt})=>({padding:tt.spacing.none,backgroundColor:tt.colors.transparent,border:"none","&:active":{color:tt.colors.primary},"&:focus":{outline:"none"},"&:focus-visible":{color:tt.colors.primary,boxShadow:`0 0 0 0.2rem ${transparentize(tt.colors.primary,.5)}`},"&:hover":{color:tt.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:tt.colors.transparent,color:tt.colors.fadedText40,cursor:"not-allowed"}})),StyledGhostButton=newStyled(StyledBaseButton,{target:"e1bocl8m4"})(({theme:tt})=>({backgroundColor:tt.colors.transparent,border:`${tt.sizes.borderWidth} solid ${tt.colors.transparent}`,"&:hover":{borderColor:tt.colors.transparent,color:tt.colors.primary},"&:active":{color:tt.colors.primary,borderColor:tt.colors.transparent,backgroundColor:tt.colors.transparent},"&:focus:not(:active)":{borderColor:tt.colors.transparent,color:tt.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:tt.colors.lightGray,borderColor:tt.colors.transparent,color:tt.colors.gray}})),StyledLinkButton=newStyled(StyledBaseButton,{target:"e1bocl8m5"})(({theme:tt})=>({backgroundColor:tt.colors.transparent,padding:tt.spacing.none,border:"none",color:tt.colors.primary,"&:hover":{textDecoration:"underline"},"&:active":{backgroundColor:tt.colors.transparent,color:tt.colors.primary,textDecoration:"underline"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:tt.colors.lightGray,borderColor:tt.colors.transparent,color:tt.colors.gray}})),StyledMinimalButton=newStyled(StyledBaseButton,{target:"e1bocl8m6"})(({theme:tt})=>({backgroundColor:tt.colors.transparent,border:"none",boxShadow:"none",padding:tt.spacing.none,"&:hover, &:active, &:focus-visible":{color:tt.colors.primary}})),StyledPrimaryFormSubmitButton=newStyled(StyledPrimaryButton,{target:"e1bocl8m7"})(),StyledSecondaryFormSubmitButton=newStyled(StyledSecondaryButton,{target:"e1bocl8m8"})(),StyledTertiaryFormSubmitButton=newStyled(StyledTertiaryButton,{target:"e1bocl8m9"})(),StyledIconButton=newStyled(StyledBaseButton,{target:"e1bocl8m10"})(({theme:tt})=>({backgroundColor:tt.colors.transparent,border:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`,flex:"1 1 0",padding:0,"&:hover":{borderColor:tt.colors.primary,color:tt.colors.primary},"&:active":{backgroundColor:tt.colors.primary,borderColor:tt.colors.primary,color:tt.colors.white},"&:not(:active)":{boxShadow:"none"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:tt.colors.lightGray,borderColor:tt.colors.transparent,color:tt.colors.gray,cursor:"not-allowed"}})),StyledButtonGroupBaseButton=newStyled(StyledBaseButton,{target:"e1bocl8m12"})(({theme:tt})=>({background:tt.colors.bgColor,color:tt.colors.text,border:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`,fontSize:tt.fontSizes.sm,lineHeight:tt.lineHeights.base,fontWeight:tt.fontWeights.normal,height:tt.sizes.largeLogoHeight,minHeight:tt.sizes.largeLogoHeight,maxWidth:tt.sizes.contentMaxWidth,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&:hover":{borderColor:tt.colors.primary,color:tt.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{color:tt.colors.fadedText20,borderColor:tt.colors.fadedText20,cursor:"not-allowed"},"& div":{textOverflow:"ellipsis",overflow:"hidden"},"& p":{fontSize:tt.fontSizes.sm,textOverflow:"ellipsis",overflow:"hidden"}})),StyledPillsButton=newStyled(StyledButtonGroupBaseButton,{target:"e1bocl8m13"})(({theme:tt})=>({borderRadius:tt.radii.full,padding:`${tt.spacing.twoXS} ${tt.spacing.md}`})),StyledPillsButtonActive=newStyled(StyledPillsButton,{target:"e1bocl8m14"})(({theme:tt})=>({backgroundColor:transparentize(tt.colors.primary,.9),borderColor:tt.colors.primary,color:tt.colors.primary,"&:hover":{backgroundColor:transparentize(tt.colors.primary,.8),borderColor:tt.colors.primary,color:tt.colors.primary}})),StyledSegmentedControlButton=newStyled(StyledButtonGroupBaseButton,{target:"e1bocl8m15"})(({theme:tt})=>({padding:`${tt.spacing.twoXS} ${tt.spacing.lg}`,borderRadius:"0",flex:"1 0 fit-content",maxWidth:"100%",marginRight:`-${tt.sizes.borderWidth}`,"&:first-child":{borderTopLeftRadius:tt.radii.default,borderBottomLeftRadius:tt.radii.default},"&:last-child":{borderTopRightRadius:tt.radii.default,borderBottomRightRadius:tt.radii.default,marginRight:tt.spacing.none},"&:hover":{zIndex:tt.zIndices.priority}})),StyledSegmentedControlButtonActive=newStyled(StyledSegmentedControlButton,{target:"e1bocl8m16"})(({theme:tt})=>({backgroundColor:transparentize(tt.colors.primary,.9),borderColor:tt.colors.primary,color:tt.colors.primary,zIndex:tt.zIndices.priority,"&:hover":{backgroundColor:transparentize(tt.colors.primary,.8)}})),StyledHeaderButton=newStyled(StyledBaseButton,{target:"e1bocl8m17"})(({theme:tt})=>({backgroundColor:tt.colors.transparent,border:"none",padding:tt.spacing.sm,fontSize:tt.fontSizes.sm,marginLeft:tt.spacing.threeXS,marginRight:tt.spacing.threeXS,lineHeight:tt.lineHeights.none,minWidth:tt.spacing.threeXL,minHeight:tt.spacing.threeXL,"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${transparentize(tt.colors.gray90,.8)}`},"&:hover":{backgroundColor:tt.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:tt.colors.lightGray,borderColor:tt.colors.transparent,color:tt.colors.gray}})),StyledHeaderNoPaddingButton=newStyled(StyledHeaderButton,{target:"e1bocl8m18"})(()=>({padding:0})),StyledBorderlessIconButton=newStyled(StyledBaseButton,{target:"e1bocl8m19"})(({size:tt,theme:nt})=>{const et={xsmall:nt.spacing.threeXS,small:nt.spacing.twoXS,medium:nt.spacing.md,large:nt.spacing.lg};return{backgroundColor:nt.colors.transparent,color:nt.colors.fadedText60,padding:et[tt],marginLeft:nt.spacing.none,marginRight:nt.spacing.none,border:"none",display:"flex",minHeight:"unset","&:focus":{boxShadow:"none",outline:"none"},"&:hover":{color:nt.colors.text},"&:disabled, &:disabled:hover, &:disabled:active":{color:nt.colors.fadedText10,cursor:"not-allowed",img:{opacity:.4}}}}),StyledBorderlessIconButtonActive=newStyled(StyledBorderlessIconButton,{target:"e1bocl8m20"})(({theme:tt})=>({color:tt.colors.bodyText,"&:disabled, &:disabled:hover, &:disabled:active":{color:tt.colors.fadedText40}})),StyledTooltipNormal=newStyled("div",{target:"e1bocl8m21"})(({theme:tt})=>({display:"block",[`@media (max-width: ${tt.breakpoints.sm})`]:{display:"none"}})),StyledTooltipMobile=newStyled("div",{target:"e1bocl8m22"})(({theme:tt})=>({display:"none",[`@media (max-width: ${tt.breakpoints.sm})`]:{display:"block"}})),StyledElementToolbarButton=newStyled(StyledBaseButton,{target:"e1bocl8m23"})(({theme:tt})=>({backgroundColor:tt.colors.transparent,border:"none",padding:tt.spacing.xs,fontSize:tt.fontSizes.twoSm,marginLeft:tt.spacing.none,marginRight:tt.spacing.none,display:"flex",gap:tt.spacing.xs,alignItems:"center",minHeight:"unset",lineHeight:tt.iconSizes.md,"&:focus":{outline:"none",border:"none",boxShadow:"none"},"&:focus-visible":{outline:"none",border:"none",boxShadow:"none",backgroundColor:tt.colors.darkenedBgMix25},"&:hover":{backgroundColor:tt.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:tt.colors.lightGray,borderColor:tt.colors.transparent,color:tt.colors.gray}}));function BaseButton(tt){const{kind:nt,size:et,disabled:rt,onClick:ot,fluidWidth:at,children:st,autoFocus:ut}=tt;let ct=StyledPrimaryButton;return nt===BaseButtonKind.SECONDARY?ct=StyledSecondaryButton:nt===BaseButtonKind.TERTIARY?ct=StyledTertiaryButton:nt===BaseButtonKind.GHOST?ct=StyledGhostButton:nt===BaseButtonKind.LINK?ct=StyledLinkButton:nt===BaseButtonKind.ICON?ct=StyledIconButton:nt===BaseButtonKind.PILLS?ct=StyledPillsButton:nt===BaseButtonKind.PILLS_ACTIVE?ct=StyledPillsButtonActive:nt===BaseButtonKind.SEGMENTED_CONTROL?ct=StyledSegmentedControlButton:nt===BaseButtonKind.SEGMENTED_CONTROL_ACTIVE?ct=StyledSegmentedControlButtonActive:nt===BaseButtonKind.BORDERLESS_ICON?ct=StyledBorderlessIconButton:nt===BaseButtonKind.BORDERLESS_ICON_ACTIVE?ct=StyledBorderlessIconButtonActive:nt===BaseButtonKind.MINIMAL?ct=StyledMinimalButton:nt===BaseButtonKind.PRIMARY_FORM_SUBMIT?ct=StyledPrimaryFormSubmitButton:nt===BaseButtonKind.SECONDARY_FORM_SUBMIT?ct=StyledSecondaryFormSubmitButton:nt===BaseButtonKind.TERTIARY_FORM_SUBMIT?ct=StyledTertiaryFormSubmitButton:nt===BaseButtonKind.HEADER_BUTTON?ct=StyledHeaderButton:nt===BaseButtonKind.HEADER_NO_PADDING?ct=StyledHeaderNoPaddingButton:nt===BaseButtonKind.ELEMENT_TOOLBAR&&(ct=StyledElementToolbarButton),jsx$1(ct,{kind:nt,size:et??BaseButtonSize.MEDIUM,fluidWidth:at||!1,disabled:rt||!1,onClick:ot||(()=>{}),autoFocus:ut||!1,"data-testid":tt["data-testid"]??`stBaseButton-${nt}`,"aria-label":tt["aria-label"]??"",children:st})}function BaseButtonTooltip({children:tt,help:nt,placement:et}){return nt?jsxs(Fragment,{children:[jsx$1(StyledTooltipNormal,{children:jsx$1(TooltipIcon,{content:nt,placement:et||Placement.TOP,children:tt})}),jsx$1(StyledTooltipMobile,{children:tt})]}):tt}function FormSubmitButton(tt){const{disabled:nt,element:et,widgetMgr:rt,hasInProgressUpload:ot,width:at,fragmentId:st}=tt,{formId:ut}=et,ct={width:at};let pt=BaseButtonKind.SECONDARY_FORM_SUBMIT;et.type==="primary"?pt=BaseButtonKind.PRIMARY_FORM_SUBMIT:et.type==="tertiary"&&(pt=BaseButtonKind.TERTIARY_FORM_SUBMIT),reactExports.useEffect(()=>(rt.addSubmitButton(ut,et),()=>rt.removeSubmitButton(ut,et)),[rt,ut,et]);const dt=et.help?at:!0;return jsx$1("div",{className:"stFormSubmitButton","data-testid":"stFormSubmitButton",style:ct,children:jsx$1(BaseButtonTooltip,{help:et.help,children:jsx$1(BaseButton,{kind:pt,size:BaseButtonSize.SMALL,fluidWidth:et.useContainerWidth?dt:!1,disabled:nt||ot,onClick:()=>{rt.submitForm(et.formId,st,et)},children:jsx$1(DynamicButtonLabel,{icon:et.icon,label:et.label})})})})}const StyledFormSubmitContent=newStyled("div",{target:"e1ttwmlf0"})({display:"flex"}),StyledForm=newStyled("div",{target:"e1ttwmlf1"})(({theme:tt,border:nt})=>({...nt&&{border:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`,borderRadius:tt.radii.default,padding:`calc(${tt.spacing.lg} - ${tt.sizes.borderWidth})`}})),StyledErrorContainer=newStyled("div",{target:"e1ttwmlf2"})(({theme:tt})=>({marginTop:tt.spacing.lg}));function FormSubmitContent(tt){const{width:nt}=tt;return jsx$1(StyledFormSubmitContent,{style:{width:nt},children:jsx$1(FormSubmitButton,{...tt})})}const StyledAlertContent=newStyled("div",{target:"emaxq6v0"})(({theme:tt})=>({display:"flex",gap:tt.spacing.sm,width:"100%",[`${StyledEmojiIcon}, ${StyledIcon}, ${StyledMaterialIcon}`]:{position:"relative",top:"2px"},[`${StyledCodeBlock} code`]:{paddingRight:tt.spacing.lg}}));function getAlertElementKind(tt){switch(tt){case Alert.Format.ERROR:return Kind.ERROR;case Alert.Format.INFO:return Kind.INFO;case Alert.Format.SUCCESS:return Kind.SUCCESS;case Alert.Format.WARNING:return Kind.WARNING;default:throw new Error(`Unexpected alert type: ${tt}`)}}function AlertElement({icon:tt,body:nt,kind:et,width:rt}){const ot=useTheme(),at={width:tt?`calc(100% - (${ot.iconSizes.lg} + ${ot.spacing.sm}))`:"100%"};return jsx$1("div",{className:"stAlert","data-testid":"stAlert",children:jsx$1(AlertContainer,{width:rt,kind:et,children:jsxs(StyledAlertContent,{children:[tt&&jsx$1(DynamicIcon,{iconValue:tt,size:"lg",testid:"stAlertDynamicIcon"}),jsx$1(StreamlitMarkdown$1,{source:nt,allowHTML:!1,style:at})]})})})}var ScriptRunState;(function(tt){tt.NOT_RUNNING="notRunning",tt.RUNNING="running",tt.RERUN_REQUESTED="rerunRequested",tt.STOP_REQUESTED="stopRequested",tt.COMPILATION_ERROR="compilationError"})(ScriptRunState||(ScriptRunState={}));const MISSING_SUBMIT_BUTTON_WARNING=`**Missing Submit Button**
443
443
 
444
444
  This form has no submit button, which means that user interactions will never be sent to your Streamlit app.
445
445
 
@@ -680,7 +680,7 @@ If this is an installed component that works locally, the app may be having trou
680
680
 
681
681
  For more troubleshooting help, please see the [Streamlit Component docs](${COMPONENT_DEVELOPER_URL}) or visit our [forums](${COMMUNITY_URL}).`,et}function tryParseArgs(tt,nt,et,rt){if(!rt)try{return parseArgs(tt,nt)}catch(ot){const at=ensureError(ot);et(at)}return[{},[]]}function compareDataframeArgs(tt,nt){return tt===nt||tt.length===nt.length&&tt.every((et,rt)=>{const ot=nt[rt];return et.key===ot.key&&et.value===ot.value})}function ComponentInstance(tt){const[nt,et]=reactExports.useState(),{disabled:rt,element:ot,registry:at,theme:st,widgetMgr:ut,width:ct,fragmentId:pt}=tt,{componentName:dt,jsonArgs:ft,specialArgs:bt,url:ht}=ot,[Mt,mt]=tryParseArgs(ft,bt,et,nt),Ot=reactExports.useRef({args:{},dataframeArgs:[]}),zt=compareDataframeArgs(Ot.current.dataframeArgs,mt);Ot.current.args=Mt,Ot.current.dataframeArgs=mt;const[yt,vt]=reactExports.useState(),[At,St]=reactExports.useState(isNaN(Mt.height)?void 0:Mt.height),Et=reactExports.useRef(!1),Tt=reactExports.useRef(null),Rt=reactExports.useRef(),Ct=useTimeout(()=>logWarning(getWarnMessage(dt,ht)),COMPONENT_READY_WARNING_TIME_MS/4),wt=useTimeout(()=>vt(!0),COMPONENT_READY_WARNING_TIME_MS);if(reactExports.useEffect(()=>{Et.current&&sendRenderMessage(Ot.current.args,Ot.current.dataframeArgs,rt,st,Tt.current??void 0)},[rt,At,zt,ft,st,ct]),reactExports.useEffect(()=>{const jt=Ut=>{Ut!==void 0&&Ut!==At&&(isNullOrUndefined$1(Tt.current)||(Tt.current.height=Ut.toString(),St(Ut)))},s0=()=>{sendRenderMessage(Ot.current.args,Ot.current.dataframeArgs,rt,st,Tt.current??void 0),Ct(),wt(),Et.current=!0,vt(!1)};Rt.current={isReady:()=>Et.current,element:ot,widgetMgr:ut,setComponentError:et,componentReadyCallback:s0,frameHeightCallback:jt,fragmentId:pt}},[dt,rt,ot,At,zt,yt,ft,st,ut,wt,Ct,pt]),reactExports.useEffect(()=>{var s0;const jt=((s0=Tt.current)==null?void 0:s0.contentWindow)??void 0;if(jt)return at.registerListener(jt,createIframeMessageHandler(Rt)),()=>{jt&&at.deregisterListener(jt)}},[at,dt]),nt)return jsx$1(ErrorElement,{name:nt.name,message:nt.message});const Lt=!Et.current&&!yt&&At!==0&&jsx$1(Skeleton,{element:Skeleton$1.create({height:At,style:Skeleton$1.SkeletonStyle.ELEMENT})}),Ht=!Et.current&&yt?jsx$1(AlertElement,{width:ct,body:getWarnMessage(dt,ht),kind:Kind.WARNING}):null;return jsxs(Fragment,{children:[Lt,Ht,jsx$1(StyledComponentIframe,{className:"stCustomComponentV1","data-testid":"stCustomComponentV1",allow:DEFAULT_IFRAME_FEATURE_POLICY,ref:Tt,src:getSrc(dt,at,ht),width:ct,height:At??0,scrolling:"no",sandbox:DEFAULT_IFRAME_SANDBOX_POLICY,title:dt,componentReady:Et.current})]})}const ComponentInstance$1=withTheme(ComponentInstance);class ComponentRegistry{constructor(nt){this.msgListeners=new Map,this.registerListener=(et,rt)=>{this.msgListeners.has(et),this.msgListeners.set(et,rt)},this.deregisterListener=et=>{this.msgListeners.delete(et)},this.getComponentURL=(et,rt)=>this.endpoints.buildComponentURL(et,rt),this.onMessageEvent=et=>{if(isNullOrUndefined$1(et.data)||!et.data.hasOwnProperty("isStreamlitMessage"))return;if(isNullOrUndefined$1(et.source)){logWarning("Received component message with no eventSource!",et.data);return}const rt=this.msgListeners.get(et.source);if(isNullOrUndefined$1(rt)||typeof rt!="function"){logWarning("Received component message for unregistered ComponentInstance!",et.data);return}const{type:ot}=et.data;if(isNullOrUndefined$1(ot)){logWarning("Received Streamlit message with no type!",et.data);return}rt(ot,et.data)},this.endpoints=nt,window.addEventListener("message",this.onMessageEvent)}}const Maybe=reactExports.memo(function tt({children:nt}){return jsx$1(Fragment,{children:nt})},(tt,nt)=>!(tt.enable||nt.enable));function makeMarkdownHeading(tt,nt){switch(tt.toLowerCase()){case Tags.H1:return`# ${nt}`;case Tags.H2:return`## ${nt}`;case Tags.H3:return`### ${nt}`;default:throw new Error(`Unrecognized tag for header: ${tt}`)}}function Heading(tt){const{width:nt,element:et}=tt,{tag:rt,anchor:ot,body:at,help:st,hideAnchor:ut,divider:ct}=et,pt=React$1.useContext(IsSidebarContext),dt=React$1.useContext(IsDialogContext),[ft,...bt]=at.split(`
682
682
  `);return jsxs("div",{style:{width:nt},className:"stHeading","data-testid":"stHeading",children:[jsxs(StyledStreamlitMarkdown,{isCaption:!1,isInSidebarOrDialog:pt||dt,style:{width:nt},"data-testid":"stMarkdownContainer",children:[jsx$1(HeadingWithActionElements,{anchor:ot,help:st,hideAnchor:ut,tag:rt,children:jsx$1(RenderedMarkdown,{allowHTML:!1,source:makeMarkdownHeading(rt,ft),overrideComponents:{p:reactExports.Fragment,h1:reactExports.Fragment,h2:reactExports.Fragment,h3:reactExports.Fragment,h4:reactExports.Fragment,h5:reactExports.Fragment,h6:reactExports.Fragment}})}),bt.length>0&&jsx$1(RenderedMarkdown,{source:bt.join(`
683
- `),allowHTML:!1})]}),ct&&jsx$1(StyledHeaderDivider,{"data-testid":"stHeadingDivider",rainbow:ct.includes("linear"),color:ct})]})}const StyledCheckbox$1=newStyled("div",{target:"e1kzzvq90"})(({width:tt,theme:nt})=>({width:tt,display:"flex",alignItems:"center",minHeight:nt.sizes.smallElementHeight})),StyledContent=newStyled("div",{target:"e1kzzvq91"})(({visibility:tt})=>({display:tt===LabelVisibilityOptions.Collapsed?"none":"flex",visibility:tt===LabelVisibilityOptions.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"}));function translateGapWidth(tt,nt){let et=nt.spacing.lg;return tt==="medium"?et=nt.spacing.threeXL:tt==="large"&&(et=nt.spacing.fourXL),et}const StyledHorizontalBlock=newStyled("div",{target:"e1kefhzc0"})(({theme:tt,gap:nt})=>({display:"flex",flexWrap:"wrap",flexGrow:1,alignItems:"stretch",gap:translateGapWidth(nt,tt)})),GLOBAL_ELEMENTS=["balloons","snow"],StyledElementContainer=newStyled("div",{target:"e1kefhzc1"})(({theme:tt,isStale:nt,width:et,elementType:rt})=>({width:et,position:"relative","@media print":{overflow:"visible"},":is(.stHtml-empty)":{display:"none"},":has(> .stCacheSpinner)":{height:tt.spacing.none,overflow:"visible",visibility:"visible",marginBottom:`-${tt.spacing.lg}`,zIndex:tt.zIndices.cacheSpinner},":has(> .stPageLink)":{marginTop:`-${tt.spacing.xs}`,marginBottom:`-${tt.spacing.xs}`},...nt&&rt!=="skeleton"&&STALE_STYLES,...rt==="empty"?{display:"none"}:{},...GLOBAL_ELEMENTS.includes(rt)?{marginBottom:`-${tt.spacing.lg}`}:{}})),StyledColumn=newStyled("div",{target:"e1kefhzc2"})(({theme:tt,weight:nt,gap:et,showBorder:rt,verticalAlignment:ot})=>{const{VerticalAlignment:at}=Block$2.Column,st=nt*100,ut=translateGapWidth(et,tt),ct=`calc(${st}% - ${ut})`;return{width:ct,flex:`1 1 ${ct}`,[`@media (max-width: ${tt.breakpoints.columns})`]:{minWidth:`calc(100% - ${tt.spacing.twoXL})`},...ot===at.BOTTOM&&{marginTop:"auto",[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginBottom:tt.spacing.sm}},...ot===at.TOP&&{[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginTop:tt.spacing.sm}},...ot===at.CENTER&&{marginTop:"auto",marginBottom:"auto"},...rt&&{border:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`,borderRadius:tt.radii.default,padding:`calc(${tt.spacing.lg} - ${tt.sizes.borderWidth})`}}}),StyledVerticalBlock=newStyled("div",{target:"e1kefhzc3"})(({width:tt,theme:nt})=>({width:tt,position:"relative",display:"flex",flex:1,flexDirection:"column",gap:nt.spacing.lg})),StyledVerticalBlockWrapper=newStyled("div",{target:"e1kefhzc4"})({display:"flex",flexDirection:"column",flex:1}),StyledVerticalBlockBorderWrapper=newStyled("div",{target:"e1kefhzc5"})(({theme:tt,border:nt,height:et})=>({...nt&&{border:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`,borderRadius:tt.radii.default,padding:`calc(${tt.spacing.lg} - ${tt.sizes.borderWidth})`},...et&&{height:`${et}px`,overflow:"auto"}})),Audio=React$1.lazy(()=>__vitePreload(()=>import("./index.BtaWfSZN.js"),[],import.meta.url)),Balloons=React$1.lazy(()=>__vitePreload(()=>import("./index.a4u3c2yA.js"),__vite__mapDeps([0,1]),import.meta.url)),Snow=React$1.lazy(()=>__vitePreload(()=>import("./index.DuEIfrbC.js"),__vite__mapDeps([2,1]),import.meta.url)),ArrowDataFrame=React$1.lazy(()=>__vitePreload(()=>import("./index.2kexLuIU.js").then(tt=>tt.c),__vite__mapDeps([3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)),ArrowVegaLiteChart=React$1.lazy(()=>__vitePreload(()=>import("./index.BBQgDj4i.js"),__vite__mapDeps([15,6,5,7,16,17,18,4]),import.meta.url)),Toast=React$1.lazy(()=>__vitePreload(()=>import("./index.CAmkSLgk.js"),[],import.meta.url)),BokehChart=React$1.lazy(()=>__vitePreload(()=>import("./index.D8V0ZERG.js"),[],import.meta.url)),DebouncedBokehChart=debounceRender(BokehChart,100),DeckGlJsonChart=React$1.lazy(()=>__vitePreload(()=>import("./index.7441r-sL.js"),__vite__mapDeps([19,10,11,6,5,20,4,16,17,21]),import.meta.url)),GraphVizChart=React$1.lazy(()=>__vitePreload(()=>import("./index.AzFWl1A_.js"),__vite__mapDeps([22,18,17,6,5]),import.meta.url)),IFrame=React$1.lazy(()=>__vitePreload(()=>import("./index.DRm6hoq7.js"),[],import.meta.url)),ImageList=React$1.lazy(()=>__vitePreload(()=>import("./index.B3F-o9ex.js"),__vite__mapDeps([23,6,5]),import.meta.url)),LinkButton=React$1.lazy(()=>__vitePreload(()=>import("./index.B2lUWG_g.js"),[],import.meta.url)),PageLink=React$1.lazy(()=>__vitePreload(()=>import("./index.tQ3BfkaX.js"),[],import.meta.url)),PlotlyChart=React$1.lazy(()=>__vitePreload(()=>import("./index.CKhEFCMB.js"),__vite__mapDeps([24,4,5]),import.meta.url)),Video=React$1.lazy(()=>__vitePreload(()=>import("./index.BX4DPcrq.js"),[],import.meta.url)),AudioInput=React$1.lazy(()=>__vitePreload(()=>import("./index.BHVs7_wn.js"),__vite__mapDeps([25,4,6,26,9,13]),import.meta.url)),Button=React$1.lazy(()=>__vitePreload(()=>import("./index.BhRQ3Irc.js"),[],import.meta.url)),ButtonGroup=React$1.lazy(()=>__vitePreload(()=>import("./index.DhCGDinQ.js"),__vite__mapDeps([27,20,4]),import.meta.url)),DownloadButton=React$1.lazy(()=>__vitePreload(()=>import("./index.DGXjFinj.js"),__vite__mapDeps([28,9]),import.meta.url)),CameraInput=React$1.lazy(()=>__vitePreload(()=>import("./index.BhQrqdv2.js"),__vite__mapDeps([29,4,30,31]),import.meta.url)),ChatInput=React$1.lazy(()=>__vitePreload(()=>import("./index.d1dU1FHw.js"),__vite__mapDeps([32,33,34,35,36]),import.meta.url)),Checkbox=React$1.lazy(()=>__vitePreload(()=>import("./index.BSabhp-S.js"),__vite__mapDeps([37,20,4]),import.meta.url)),ColorPicker=React$1.lazy(()=>__vitePreload(()=>import("./index.y-VLJ65m.js"),__vite__mapDeps([38,20,4]),import.meta.url)),DateInput=React$1.lazy(()=>__vitePreload(()=>import("./index.-JIbeXZC.js"),__vite__mapDeps([39,20,4,40,11,12,41,36]),import.meta.url)),Html=React$1.lazy(()=>__vitePreload(()=>import("./index.D7zDVCSD.js"),[],import.meta.url)),Multiselect=React$1.lazy(()=>__vitePreload(()=>import("./index.DAlH7XAu.js"),__vite__mapDeps([42,20,4]),import.meta.url)),Progress=React$1.lazy(()=>__vitePreload(()=>import("./index.BqCCfwZM.js"),__vite__mapDeps([43,31]),import.meta.url)),Spinner=React$1.lazy(()=>__vitePreload(()=>import("./index.5f81IBZP.js"),[],import.meta.url)),Radio=React$1.lazy(()=>__vitePreload(()=>import("./index.DKFY5Ha1.js"),__vite__mapDeps([44,20,4]),import.meta.url)),Selectbox$1=React$1.lazy(()=>__vitePreload(()=>import("./index.CdjxQOw-.js"),__vite__mapDeps([45,20,4]),import.meta.url)),Slider$1=React$1.lazy(()=>__vitePreload(()=>import("./index.BwvnBWfd.js"),__vite__mapDeps([46,8,20,4]),import.meta.url)),FileUploader=React$1.lazy(()=>__vitePreload(()=>import("./index.BBK0SZBc.js"),__vite__mapDeps([47,4,31,26,30]),import.meta.url)),TextArea=React$1.lazy(()=>__vitePreload(()=>import("./index.Drqk1Tqs.js"),__vite__mapDeps([48,49,50,34,33,20,4,35,36]),import.meta.url)),TextInput=React$1.lazy(()=>__vitePreload(()=>import("./index.ClU6Toj3.js"),__vite__mapDeps([51,49,50,34,20,4,33,41,36]),import.meta.url)),TimeInput=React$1.lazy(()=>__vitePreload(()=>import("./index.D4cEoG-b.js"),__vite__mapDeps([52,20,4,40,11,12]),import.meta.url)),NumberInput=React$1.lazy(()=>__vitePreload(()=>import("./index.B1RTO67W.js"),__vite__mapDeps([53,8,49,4,33,41,36]),import.meta.url)),StreamlitSyntaxHighlighter=React$1.lazy(()=>__vitePreload(()=>Promise.resolve().then(()=>StreamlitSyntaxHighlighter$2),void 0,import.meta.url));function hideIfStale(tt,nt){return tt?jsx$1(Fragment,{}):nt}const RawElementNodeRenderer=tt=>{const{node:nt}=tt;if(!nt)throw new Error("ElementNode not found.");const et={width:tt.width,disableFullscreenMode:tt.disableFullscreenMode},rt={...et,widgetMgr:tt.widgetMgr,disabled:tt.widgetsDisabled,fragmentId:nt.fragmentId};switch(nt.element.type){case"alert":{const at=nt.element.alert;return jsx$1(AlertElement,{icon:at.icon,body:at.body,kind:getAlertElementKind(at.format),...et})}case"arrowTable":return jsx$1(ArrowTable,{element:nt.quiverElement,...et});case"audio":return jsx$1(Audio,{element:nt.element.audio,endpoints:tt.endpoints,...et,elementMgr:tt.widgetMgr});case"balloons":return hideIfStale(tt.isStale,jsx$1(Balloons,{scriptRunId:tt.scriptRunId}));case"bokehChart":return jsx$1(DebouncedBokehChart,{element:nt.element.bokehChart,...et});case"code":{const at=nt.element.code;return jsx$1(StreamlitSyntaxHighlighter,{language:at.language,showLineNumbers:at.showLineNumbers,wrapLines:at.wrapLines,height:at.height,children:at.codeText})}case"deckGlJsonChart":return jsx$1(DeckGlJsonChart,{element:nt.element.deckGlJsonChart,...rt});case"docString":return jsx$1(DocString,{element:nt.element.docString,...et});case"empty":return jsx$1("div",{className:"stEmpty","data-testid":"stEmpty"});case"exception":return jsx$1(ExceptionElement,{element:nt.element.exception,...et});case"graphvizChart":return jsx$1(GraphVizChart,{element:nt.element.graphvizChart,...et});case"heading":return jsx$1(Heading,{element:nt.element.heading,...et});case"iframe":return jsx$1(IFrame,{element:nt.element.iframe,...et});case"imgs":return jsx$1(ImageList,{element:nt.element.imgs,endpoints:tt.endpoints,...et});case"json":return jsx$1(Json,{element:nt.element.json,...et});case"markdown":return jsx$1(Markdown,{element:nt.element.markdown,...et});case"metric":return jsx$1(Metric,{element:nt.element.metric});case"html":return jsx$1(Html,{element:nt.element.html,...et});case"pageLink":{const at=nt.element.pageLink,st=rt.disabled||at.disabled;return jsx$1(PageLink,{element:at,disabled:st,...et})}case"progress":return jsx$1(Progress,{element:nt.element.progress,...et});case"skeleton":return jsx$1(Skeleton,{element:nt.element.skeleton});case"snow":return hideIfStale(tt.isStale,jsx$1(Snow,{scriptRunId:tt.scriptRunId}));case"spinner":return jsx$1(Spinner,{element:nt.element.spinner,...et});case"text":return jsx$1(TextElement,{element:nt.element.text,...et});case"video":return jsx$1(Video,{element:nt.element.video,endpoints:tt.endpoints,...et,elementMgr:tt.widgetMgr});case"toast":{const at=nt.element.toast;return jsx$1(Toast,{body:at.body,icon:at.icon,...et},nt.scriptRunId)}case"arrowDataFrame":{const at=nt.element.arrowDataFrame;return rt.disabled=rt.disabled||at.disabled,jsx$1(ArrowDataFrame,{element:at,data:nt.quiverElement,...at.id&&{key:at.id},...rt})}case"arrowVegaLiteChart":const ot=nt.vegaLiteChartElement;return jsx$1(ArrowVegaLiteChart,{element:ot,...rt},ot.id||void 0);case"audioInput":{const at=nt.element.audioInput;return rt.disabled=rt.disabled||at.disabled,jsx$1(AudioInput,{uploadClient:tt.uploadClient,element:at,...rt},at.id)}case"button":{const at=nt.element.button;if(rt.disabled=rt.disabled||at.disabled,at.isFormSubmitter){const{formId:st}=at,ut=tt.formsData.formsWithUploads.has(st);return jsx$1(FormSubmitContent,{element:at,hasInProgressUpload:ut,...rt})}return jsx$1(Button,{element:at,...rt})}case"buttonGroup":{const at=nt.element.buttonGroup;return rt.disabled=rt.disabled||at.disabled,jsx$1(ButtonGroup,{element:at,...rt},at.id)}case"downloadButton":{const at=nt.element.downloadButton;return rt.disabled=rt.disabled||at.disabled,jsx$1(DownloadButton,{endpoints:tt.endpoints,element:at,...rt},at.id)}case"cameraInput":{const at=nt.element.cameraInput;return rt.disabled=rt.disabled||at.disabled,jsx$1(CameraInput,{element:at,uploadClient:tt.uploadClient,...rt},at.id)}case"chatInput":{const at=nt.element.chatInput;return rt.disabled=rt.disabled||at.disabled,jsx$1(ChatInput,{element:at,...rt},at.id)}case"checkbox":{const at=nt.element.checkbox;return rt.disabled=rt.disabled||at.disabled,jsx$1(Checkbox,{element:at,...rt},at.id)}case"colorPicker":{const at=nt.element.colorPicker;return rt.disabled=rt.disabled||at.disabled,jsx$1(ColorPicker,{element:at,...rt},at.id)}case"componentInstance":return jsx$1(ComponentInstance$1,{registry:tt.componentRegistry,element:nt.element.componentInstance,...rt});case"dateInput":{const at=nt.element.dateInput;return rt.disabled=rt.disabled||at.disabled,jsx$1(DateInput,{element:at,...rt},at.id)}case"fileUploader":{const at=nt.element.fileUploader;return rt.disabled=rt.disabled||at.disabled,jsx$1(FileUploader,{element:at,uploadClient:tt.uploadClient,...rt},at.id)}case"linkButton":{const at=nt.element.linkButton;return rt.disabled=rt.disabled||at.disabled,jsx$1(LinkButton,{element:at,...rt})}case"multiselect":{const at=nt.element.multiselect;return rt.disabled=rt.disabled||at.disabled,jsx$1(Multiselect,{element:at,...rt},at.id)}case"numberInput":{const at=nt.element.numberInput;return rt.disabled=rt.disabled||at.disabled,jsx$1(NumberInput,{element:at,...rt},at.id)}case"plotlyChart":{const at=nt.element.plotlyChart;return jsx$1(PlotlyChart,{element:at,...rt},at.id)}case"radio":{const at=nt.element.radio;return rt.disabled=rt.disabled||at.disabled,jsx$1(Radio,{element:at,...rt},at.id)}case"selectbox":{const at=nt.element.selectbox;return rt.disabled=rt.disabled||at.disabled,jsx$1(Selectbox$1,{element:at,...rt},at.id)}case"slider":{const at=nt.element.slider;return rt.disabled=rt.disabled||at.disabled,jsx$1(Slider$1,{element:at,...rt},at.id)}case"textArea":{const at=nt.element.textArea;return rt.disabled=rt.disabled||at.disabled,jsx$1(TextArea,{element:at,...rt},at.id)}case"textInput":{const at=nt.element.textInput;return rt.disabled=rt.disabled||at.disabled,jsx$1(TextInput,{element:at,...rt},at.id)}case"timeInput":{const at=nt.element.timeInput;return rt.disabled=rt.disabled||at.disabled,jsx$1(TimeInput,{element:at,...rt},at.id)}default:throw new Error(`Unrecognized Element type ${nt.element.type}`)}},ElementNodeRenderer=tt=>{const{isFullScreen:nt,fragmentIdsThisRun:et}=React$1.useContext(LibContext),{node:rt,width:ot}=tt,at=rt.element.type||"",st=shouldComponentBeEnabled(at,tt.scriptRunState),ut=isComponentStale(st,rt,tt.scriptRunState,tt.scriptRunId,et),ct=getElementId(rt.element),pt=getKeyFromId(ct);return jsx$1(Maybe,{enable:st,children:jsx$1(StyledElementContainer,{className:classNames("stElementContainer","element-container",convertKeyToClassName(pt)),"data-testid":"stElementContainer","data-stale":ut,isStale:ut&&!nt,width:ot,elementType:at,children:jsx$1(ErrorBoundary,{width:ot,children:jsx$1(reactExports.Suspense,{fallback:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:jsx$1(RawElementNodeRenderer,{...tt,isStale:ut})})})})})},BlockNodeRenderer=tt=>{const{node:nt}=tt,{fragmentIdsThisRun:et}=reactExports.useContext(LibContext);if(nt.isEmpty&&!nt.deltaBlock.allowEmpty)return jsx$1(Fragment,{});const rt=shouldComponentBeEnabled("",tt.scriptRunState),ot=isComponentStale(rt,nt,tt.scriptRunState,tt.scriptRunId,et),at={...tt,node:nt},st=tt.disableFullscreenMode||notNullOrUndefined(nt.deltaBlock.dialog)||notNullOrUndefined(nt.deltaBlock.popover),ut=jsx$1(LayoutBlock,{...at,disableFullscreenMode:st});if(nt.deltaBlock.dialog)return jsx$1(DialogWithProvider,{element:nt.deltaBlock.dialog,deltaMsgReceivedAt:nt.deltaMsgReceivedAt,children:ut});if(nt.deltaBlock.expandable)return jsx$1(Expander,{empty:nt.isEmpty,isStale:ot,element:nt.deltaBlock.expandable,children:ut});if(nt.deltaBlock.popover)return jsx$1(Popover,{empty:nt.isEmpty,element:nt.deltaBlock.popover,width:tt.width,children:ut});if(nt.deltaBlock.type==="form"){const{formId:ct,clearOnSubmit:pt,enterToSubmit:dt,border:ft}=nt.deltaBlock.form,bt=tt.formsData.submitButtons.get(ct),ht=bt!==void 0&&bt.length>0;return jsx$1(Form,{formId:ct,clearOnSubmit:pt,enterToSubmit:dt,width:tt.width,hasSubmitButton:ht,scriptRunState:tt.scriptRunState,widgetMgr:tt.widgetMgr,border:ft,children:ut})}if(nt.deltaBlock.chatMessage)return jsx$1(ChatMessage,{element:nt.deltaBlock.chatMessage,endpoints:tt.endpoints,children:ut});if(nt.deltaBlock.column)return jsx$1(StyledColumn,{weight:nt.deltaBlock.column.weight??0,gap:nt.deltaBlock.column.gap??"",verticalAlignment:nt.deltaBlock.column.verticalAlignment??void 0,showBorder:nt.deltaBlock.column.showBorder??!1,className:"stColumn","data-testid":"stColumn",children:ut});if(nt.deltaBlock.tabContainer){const pt={...at,isStale:ot,renderTabContent:dt=>jsx$1(VerticalBlock,{...dt})};return jsx$1(Tabs,{...pt})}return ut},ChildRenderer=tt=>{const{libConfig:nt}=reactExports.useContext(LibContext);assignDividerColor(tt.node,useTheme());const et=new Set;return jsx$1(Fragment,{children:tt.node.children&&tt.node.children.map((rt,ot)=>{const at=nt.disableFullscreenMode||tt.disableFullscreenMode;if(rt instanceof ElementNode){const st={...tt,disableFullscreenMode:at,node:rt},ut=getElementId(rt.element)||ot.toString();return et.has(ut)?null:(et.add(ut),jsx$1(ElementNodeRenderer,{...st},ut))}if(rt instanceof BlockNode){const st={...tt,disableFullscreenMode:at,node:rt};return jsx$1(BlockNodeRenderer,{...st},ot)}throw new Error(`Unrecognized AppNode: ${rt}`)})})};function ScrollToBottomVerticalBlockWrapper(tt){const{border:nt,height:et,children:rt}=tt,ot=useScrollToBottom();return jsx$1(StyledVerticalBlockBorderWrapper,{border:nt,height:et,"data-testid":"stVerticalBlockBorderWrapper","data-test-scroll-behavior":"scroll-to-bottom",ref:ot,children:rt})}const VerticalBlock=tt=>{var ft,bt;const nt=reactExports.useRef(null),[et,rt]=React$1.useState(-1),ot=reactExports.useMemo(()=>new ResizeObserver(([ht])=>{window.requestAnimationFrame(()=>{rt(ht.target.getBoundingClientRect().width||-1)})}),[rt]),at=((ft=tt.node.deltaBlock.vertical)==null?void 0:ft.border)??!1,st=((bt=tt.node.deltaBlock.vertical)==null?void 0:bt.height)||void 0,ut=st&&tt.node.children.find(ht=>ht instanceof BlockNode&&ht.deltaBlock.type==="chatMessage")!==void 0;reactExports.useEffect(()=>(nt.current&&ot.observe(nt.current),()=>{ot.disconnect()}),[ot,ut]);const ct=ut?ScrollToBottomVerticalBlockWrapper:StyledVerticalBlockBorderWrapper,pt={...tt,width:et},dt=getKeyFromId(tt.node.deltaBlock.id);return jsx$1(ct,{border:at,height:st,"data-testid":"stVerticalBlockBorderWrapper","data-test-scroll-behavior":"normal",children:jsx$1(StyledVerticalBlockWrapper,{ref:nt,children:jsx$1(StyledVerticalBlock,{width:et,className:classNames("stVerticalBlock",convertKeyToClassName(dt)),"data-testid":"stVerticalBlock",children:jsx$1(ChildRenderer,{...pt})})})})},HorizontalBlock=tt=>{var et;const nt=((et=tt.node.deltaBlock.horizontal)==null?void 0:et.gap)??"";return jsx$1(StyledHorizontalBlock,{gap:nt,className:"stHorizontalBlock","data-testid":"stHorizontalBlock",children:jsx$1(ChildRenderer,{...tt})})};function LayoutBlock(tt){return tt.node.deltaBlock.horizontal?jsx$1(HorizontalBlock,{...tt}):jsx$1(VerticalBlock,{...tt})}const StyledDataFrameOverlay=newStyled("div",{target:"e19n7mk11"})(({theme:tt})=>({position:"fixed",top:0,left:0,zIndex:tt.zIndices.tablePortal,lineHeight:"100%"})),PortalContext=React$1.createContext(null),PortalProvider=({children:tt})=>{const nt=reactExports.useRef(null),et=reactExports.useCallback(()=>nt.current,[]);return jsxs(PortalContext.Provider,{value:et,children:[tt,jsx$1(StyledDataFrameOverlay,{"data-testid":"portal",id:"portal",ref:nt})]})};function ThemeProvider({theme:tt,baseuiTheme:nt,children:et}){return jsx$1(ThemeProvider$1,{theme:nt||baseuiLightTheme,children:jsx$1(ThemeProvider$2,{theme:tt,children:et})})}function toCodePoint(tt,nt){const et=[];let rt=0,ot=0,at=0;for(;at<tt.length;)rt=tt.charCodeAt(at++),ot?(et.push((65536+(ot-55296<<10)+(rt-56320)).toString(16)),ot=0):55296<=rt&&rt<=56319?ot=rt:et.push(rt.toString(16));return et.join("-")}const UFE0Fg=/\uFE0F/g,U200D="‍";function grabTheRightIcon(tt){return toCodePoint(tt.indexOf(U200D)<0?tt.replace(UFE0Fg,""):tt)}function iconToUrl(tt){const nt=/^:(.+)\/(.+):$/,et=tt.match(nt);return et===null?"":`https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsrounded/${et[2]}/default/24px.svg`}function handleFavicon(tt,nt,et){const rt=extractEmoji(tt);let ot;rt&&!tt.startsWith(":material")?ot=`https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/${grabTheRightIcon(rt)}.png`:tt.startsWith(":material")?ot=iconToUrl(tt):ot=et.buildMediaURL(tt),overwriteFavicon(ot),nt({type:"SET_PAGE_FAVICON",favicon:ot})}function overwriteFavicon(tt){const nt=document.querySelector("link[rel='shortcut icon']");nt&&(nt.href=tt)}function extractEmoji(tt){const nt=tt.replace("-","_");return nodeEmoji$1.hasEmoji(nodeEmoji$1.get(nt))?nodeEmoji$1.get(nt):nodeEmoji$1.hasEmoji(tt)?tt:""}var lib$2={},flattenNames$1={},baseFor$1=_baseFor,keys$2=keys_1;function baseForOwn$4(tt,nt){return tt&&baseFor$1(tt,nt,keys$2)}var _baseForOwn=baseForOwn$4,identity$3=identity_1;function castFunction$2(tt){return typeof tt=="function"?tt:identity$3}var _castFunction=castFunction$2,baseForOwn$3=_baseForOwn,castFunction$1=_castFunction;function forOwn(tt,nt){return tt&&baseForOwn$3(tt,castFunction$1(nt))}var forOwn_1=forOwn,HASH_UNDEFINED$3="__lodash_hash_undefined__";function setCacheAdd$2(tt){return this.__data__.set(tt,HASH_UNDEFINED$3),this}var _setCacheAdd=setCacheAdd$2;function setCacheHas$2(tt){return this.__data__.has(tt)}var _setCacheHas=setCacheHas$2,MapCache$1=_MapCache,setCacheAdd$1=_setCacheAdd,setCacheHas$1=_setCacheHas;function SetCache$3(tt){var nt=-1,et=tt==null?0:tt.length;for(this.__data__=new MapCache$1;++nt<et;)this.add(tt[nt])}SetCache$3.prototype.add=SetCache$3.prototype.push=setCacheAdd$1;SetCache$3.prototype.has=setCacheHas$1;var _SetCache=SetCache$3;function arraySome$2(tt,nt){for(var et=-1,rt=tt==null?0:tt.length;++et<rt;)if(nt(tt[et],et,tt))return!0;return!1}var _arraySome=arraySome$2;function cacheHas$3(tt,nt){return tt.has(nt)}var _cacheHas=cacheHas$3,SetCache$2=_SetCache,arraySome$1=_arraySome,cacheHas$2=_cacheHas,COMPARE_PARTIAL_FLAG$b=1,COMPARE_UNORDERED_FLAG$7=2;function equalArrays$3(tt,nt,et,rt,ot,at){var st=et&COMPARE_PARTIAL_FLAG$b,ut=tt.length,ct=nt.length;if(ut!=ct&&!(st&&ct>ut))return!1;var pt=at.get(tt),dt=at.get(nt);if(pt&&dt)return pt==nt&&dt==tt;var ft=-1,bt=!0,ht=et&COMPARE_UNORDERED_FLAG$7?new SetCache$2:void 0;for(at.set(tt,nt),at.set(nt,tt);++ft<ut;){var Mt=tt[ft],mt=nt[ft];if(rt)var Ot=st?rt(mt,Mt,ft,nt,tt,at):rt(Mt,mt,ft,tt,nt,at);if(Ot!==void 0){if(Ot)continue;bt=!1;break}if(ht){if(!arraySome$1(nt,function(zt,yt){if(!cacheHas$2(ht,yt)&&(Mt===zt||ot(Mt,zt,et,rt,at)))return ht.push(yt)})){bt=!1;break}}else if(!(Mt===mt||ot(Mt,mt,et,rt,at))){bt=!1;break}}return at.delete(tt),at.delete(nt),bt}var _equalArrays=equalArrays$3,Symbol$2=_Symbol,Uint8Array$2=_Uint8Array,eq$1=eq_1,equalArrays$2=_equalArrays,mapToArray$1=_mapToArray,setToArray$1=_setToArray,COMPARE_PARTIAL_FLAG$a=1,COMPARE_UNORDERED_FLAG$6=2,boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$2="[object Error]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",symbolProto$2=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf$1=symbolProto$2?symbolProto$2.valueOf:void 0;function equalByTag$2(tt,nt,et,rt,ot,at,st){switch(et){case dataViewTag$3:if(tt.byteLength!=nt.byteLength||tt.byteOffset!=nt.byteOffset)return!1;tt=tt.buffer,nt=nt.buffer;case arrayBufferTag$2:return!(tt.byteLength!=nt.byteLength||!at(new Uint8Array$2(tt),new Uint8Array$2(nt)));case boolTag$2:case dateTag$2:case numberTag$2:return eq$1(+tt,+nt);case errorTag$2:return tt.name==nt.name&&tt.message==nt.message;case regexpTag$2:case stringTag$2:return tt==nt+"";case mapTag$3:var ut=mapToArray$1;case setTag$3:var ct=rt&COMPARE_PARTIAL_FLAG$a;if(ut||(ut=setToArray$1),tt.size!=nt.size&&!ct)return!1;var pt=st.get(tt);if(pt)return pt==nt;rt|=COMPARE_UNORDERED_FLAG$6,st.set(tt,nt);var dt=equalArrays$2(ut(tt),ut(nt),rt,ot,at,st);return st.delete(tt),dt;case symbolTag$2:if(symbolValueOf$1)return symbolValueOf$1.call(tt)==symbolValueOf$1.call(nt)}return!1}var _equalByTag=equalByTag$2,getAllKeys$1=_getAllKeys,COMPARE_PARTIAL_FLAG$9=1,objectProto$h=Object.prototype,hasOwnProperty$f=objectProto$h.hasOwnProperty;function equalObjects$2(tt,nt,et,rt,ot,at){var st=et&COMPARE_PARTIAL_FLAG$9,ut=getAllKeys$1(tt),ct=ut.length,pt=getAllKeys$1(nt),dt=pt.length;if(ct!=dt&&!st)return!1;for(var ft=ct;ft--;){var bt=ut[ft];if(!(st?bt in nt:hasOwnProperty$f.call(nt,bt)))return!1}var ht=at.get(tt),Mt=at.get(nt);if(ht&&Mt)return ht==nt&&Mt==tt;var mt=!0;at.set(tt,nt),at.set(nt,tt);for(var Ot=st;++ft<ct;){bt=ut[ft];var zt=tt[bt],yt=nt[bt];if(rt)var vt=st?rt(yt,zt,bt,nt,tt,at):rt(zt,yt,bt,tt,nt,at);if(!(vt===void 0?zt===yt||ot(zt,yt,et,rt,at):vt)){mt=!1;break}Ot||(Ot=bt=="constructor")}if(mt&&!Ot){var At=tt.constructor,St=nt.constructor;At!=St&&"constructor"in tt&&"constructor"in nt&&!(typeof At=="function"&&At instanceof At&&typeof St=="function"&&St instanceof St)&&(mt=!1)}return at.delete(tt),at.delete(nt),mt}var _equalObjects=equalObjects$2,Stack$2=_Stack,equalArrays$1=_equalArrays,equalByTag$1=_equalByTag,equalObjects$1=_equalObjects,getTag$1=_getTag,isArray$7=isArray_1,isBuffer$2=isBufferExports,isTypedArray$2=isTypedArray_1,COMPARE_PARTIAL_FLAG$8=1,argsTag$3="[object Arguments]",arrayTag$2="[object Array]",objectTag$4="[object Object]",objectProto$g=Object.prototype,hasOwnProperty$e=objectProto$g.hasOwnProperty;function baseIsEqualDeep$2(tt,nt,et,rt,ot,at){var st=isArray$7(tt),ut=isArray$7(nt),ct=st?arrayTag$2:getTag$1(tt),pt=ut?arrayTag$2:getTag$1(nt);ct=ct==argsTag$3?objectTag$4:ct,pt=pt==argsTag$3?objectTag$4:pt;var dt=ct==objectTag$4,ft=pt==objectTag$4,bt=ct==pt;if(bt&&isBuffer$2(tt)){if(!isBuffer$2(nt))return!1;st=!0,dt=!1}if(bt&&!dt)return at||(at=new Stack$2),st||isTypedArray$2(tt)?equalArrays$1(tt,nt,et,rt,ot,at):equalByTag$1(tt,nt,ct,et,rt,ot,at);if(!(et&COMPARE_PARTIAL_FLAG$8)){var ht=dt&&hasOwnProperty$e.call(tt,"__wrapped__"),Mt=ft&&hasOwnProperty$e.call(nt,"__wrapped__");if(ht||Mt){var mt=ht?tt.value():tt,Ot=Mt?nt.value():nt;return at||(at=new Stack$2),ot(mt,Ot,et,rt,at)}}return bt?(at||(at=new Stack$2),equalObjects$1(tt,nt,et,rt,ot,at)):!1}var _baseIsEqualDeep=baseIsEqualDeep$2,baseIsEqualDeep$1=_baseIsEqualDeep,isObjectLike$1=isObjectLike_1;function baseIsEqual$4(tt,nt,et,rt,ot){return tt===nt?!0:tt==null||nt==null||!isObjectLike$1(tt)&&!isObjectLike$1(nt)?tt!==tt&&nt!==nt:baseIsEqualDeep$1(tt,nt,et,rt,baseIsEqual$4,ot)}var _baseIsEqual=baseIsEqual$4,Stack$1=_Stack,baseIsEqual$3=_baseIsEqual,COMPARE_PARTIAL_FLAG$7=1,COMPARE_UNORDERED_FLAG$5=2;function baseIsMatch$2(tt,nt,et,rt){var ot=et.length,at=ot,st=!rt;if(tt==null)return!at;for(tt=Object(tt);ot--;){var ut=et[ot];if(st&&ut[2]?ut[1]!==tt[ut[0]]:!(ut[0]in tt))return!1}for(;++ot<at;){ut=et[ot];var ct=ut[0],pt=tt[ct],dt=ut[1];if(st&&ut[2]){if(pt===void 0&&!(ct in tt))return!1}else{var ft=new Stack$1;if(rt)var bt=rt(pt,dt,ct,tt,nt,ft);if(!(bt===void 0?baseIsEqual$3(dt,pt,COMPARE_PARTIAL_FLAG$7|COMPARE_UNORDERED_FLAG$5,rt,ft):bt))return!1}}return!0}var _baseIsMatch=baseIsMatch$2,isObject$3=isObject_1;function isStrictComparable$3(tt){return tt===tt&&!isObject$3(tt)}var _isStrictComparable=isStrictComparable$3,isStrictComparable$2=_isStrictComparable,keys$1=keys_1;function getMatchData$2(tt){for(var nt=keys$1(tt),et=nt.length;et--;){var rt=nt[et],ot=tt[rt];nt[et]=[rt,ot,isStrictComparable$2(ot)]}return nt}var _getMatchData=getMatchData$2;function matchesStrictComparable$3(tt,nt){return function(et){return et==null?!1:et[tt]===nt&&(nt!==void 0||tt in Object(et))}}var _matchesStrictComparable=matchesStrictComparable$3,baseIsMatch$1=_baseIsMatch,getMatchData$1=_getMatchData,matchesStrictComparable$2=_matchesStrictComparable;function baseMatches$2(tt){var nt=getMatchData$1(tt);return nt.length==1&&nt[0][2]?matchesStrictComparable$2(nt[0][0],nt[0][1]):function(et){return et===tt||baseIsMatch$1(et,tt,nt)}}var _baseMatches=baseMatches$2;function baseHasIn$2(tt,nt){return tt!=null&&nt in Object(tt)}var _baseHasIn=baseHasIn$2,castPath$3=_castPath,isArguments$1=isArguments_1,isArray$6=isArray_1,isIndex$2=_isIndex,isLength$1=isLength_1,toKey$4=_toKey;function hasPath$2(tt,nt,et){nt=castPath$3(nt,tt);for(var rt=-1,ot=nt.length,at=!1;++rt<ot;){var st=toKey$4(nt[rt]);if(!(at=tt!=null&&et(tt,st)))break;tt=tt[st]}return at||++rt!=ot?at:(ot=tt==null?0:tt.length,!!ot&&isLength$1(ot)&&isIndex$2(st,ot)&&(isArray$6(tt)||isArguments$1(tt)))}var _hasPath=hasPath$2,baseHasIn$1=_baseHasIn,hasPath$1=_hasPath;function hasIn$3(tt,nt){return tt!=null&&hasPath$1(tt,nt,baseHasIn$1)}var hasIn_1=hasIn$3,baseIsEqual$2=_baseIsEqual,get$2=get_1,hasIn$2=hasIn_1,isKey$2=_isKey,isStrictComparable$1=_isStrictComparable,matchesStrictComparable$1=_matchesStrictComparable,toKey$3=_toKey,COMPARE_PARTIAL_FLAG$6=1,COMPARE_UNORDERED_FLAG$4=2;function baseMatchesProperty$2(tt,nt){return isKey$2(tt)&&isStrictComparable$1(nt)?matchesStrictComparable$1(toKey$3(tt),nt):function(et){var rt=get$2(et,tt);return rt===void 0&&rt===nt?hasIn$2(et,tt):baseIsEqual$2(nt,rt,COMPARE_PARTIAL_FLAG$6|COMPARE_UNORDERED_FLAG$4)}}var _baseMatchesProperty=baseMatchesProperty$2,baseGet$3=_baseGet;function basePropertyDeep$2(tt){return function(nt){return baseGet$3(nt,tt)}}var _basePropertyDeep=basePropertyDeep$2,baseProperty$1=_baseProperty,basePropertyDeep$1=_basePropertyDeep,isKey$1=_isKey,toKey$2=_toKey;function property$2(tt){return isKey$1(tt)?baseProperty$1(toKey$2(tt)):basePropertyDeep$1(tt)}var property_1=property$2,baseMatches$1=_baseMatches,baseMatchesProperty$1=_baseMatchesProperty,identity$2=identity_1,isArray$5=isArray_1,property$1=property_1;function baseIteratee$5(tt){return typeof tt=="function"?tt:tt==null?identity$2:typeof tt=="object"?isArray$5(tt)?baseMatchesProperty$1(tt[0],tt[1]):baseMatches$1(tt):property$1(tt)}var _baseIteratee=baseIteratee$5,isArrayLike$2=isArrayLike_1;function createBaseEach$2(tt,nt){return function(et,rt){if(et==null)return et;if(!isArrayLike$2(et))return tt(et,rt);for(var ot=et.length,at=nt?ot:-1,st=Object(et);(nt?at--:++at<ot)&&rt(st[at],at,st)!==!1;);return et}}var _createBaseEach=createBaseEach$2,baseForOwn$2=_baseForOwn,createBaseEach$1=_createBaseEach,baseEach$3=createBaseEach$1(baseForOwn$2),_baseEach=baseEach$3,baseEach$2=_baseEach,isArrayLike$1=isArrayLike_1;function baseMap$3(tt,nt){var et=-1,rt=isArrayLike$1(tt)?Array(tt.length):[];return baseEach$2(tt,function(ot,at,st){rt[++et]=nt(ot,at,st)}),rt}var _baseMap=baseMap$3,arrayMap$3=_arrayMap,baseIteratee$4=_baseIteratee,baseMap$2=_baseMap,isArray$4=isArray_1;function map$1(tt,nt){var et=isArray$4(tt)?arrayMap$3:baseMap$2;return et(tt,baseIteratee$4(nt))}var map_1=map$1;Object.defineProperty(flattenNames$1,"__esModule",{value:!0});flattenNames$1.flattenNames=void 0;var _isString2=isString_1,_isString3=_interopRequireDefault$7(_isString2),_forOwn2$2=forOwn_1,_forOwn3$2=_interopRequireDefault$7(_forOwn2$2),_isPlainObject2=isPlainObject_1,_isPlainObject3=_interopRequireDefault$7(_isPlainObject2),_map2=map_1,_map3=_interopRequireDefault$7(_map2);function _interopRequireDefault$7(tt){return tt&&tt.__esModule?tt:{default:tt}}var flattenNames=flattenNames$1.flattenNames=function tt(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],et=[];return(0,_map3.default)(nt,function(rt){Array.isArray(rt)?tt(rt).map(function(ot){return et.push(ot)}):(0,_isPlainObject3.default)(rt)?(0,_forOwn3$2.default)(rt,function(ot,at){ot===!0&&et.push(at),et.push(at+"-"+ot)}):(0,_isString3.default)(rt)&&et.push(rt)}),et};flattenNames$1.default=flattenNames;var mergeClasses$1={};Object.defineProperty(mergeClasses$1,"__esModule",{value:!0});mergeClasses$1.mergeClasses=void 0;var _forOwn2$1=forOwn_1,_forOwn3$1=_interopRequireDefault$6(_forOwn2$1),_cloneDeep2=cloneDeep_1,_cloneDeep3=_interopRequireDefault$6(_cloneDeep2),_extends$w=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt};function _interopRequireDefault$6(tt){return tt&&tt.__esModule?tt:{default:tt}}var mergeClasses=mergeClasses$1.mergeClasses=function tt(nt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=nt.default&&(0,_cloneDeep3.default)(nt.default)||{};return et.map(function(ot){var at=nt[ot];return at&&(0,_forOwn3$1.default)(at,function(st,ut){rt[ut]||(rt[ut]={}),rt[ut]=_extends$w({},rt[ut],at[ut])}),ot}),rt};mergeClasses$1.default=mergeClasses;var autoprefix$1={};Object.defineProperty(autoprefix$1,"__esModule",{value:!0});autoprefix$1.autoprefix=void 0;var _forOwn2=forOwn_1,_forOwn3=_interopRequireDefault$5(_forOwn2),_extends$v=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt};function _interopRequireDefault$5(tt){return tt&&tt.__esModule?tt:{default:tt}}var transforms={borderRadius:function tt(nt){return{msBorderRadius:nt,MozBorderRadius:nt,OBorderRadius:nt,WebkitBorderRadius:nt,borderRadius:nt}},boxShadow:function tt(nt){return{msBoxShadow:nt,MozBoxShadow:nt,OBoxShadow:nt,WebkitBoxShadow:nt,boxShadow:nt}},userSelect:function tt(nt){return{WebkitTouchCallout:nt,KhtmlUserSelect:nt,MozUserSelect:nt,msUserSelect:nt,WebkitUserSelect:nt,userSelect:nt}},flex:function tt(nt){return{WebkitBoxFlex:nt,MozBoxFlex:nt,WebkitFlex:nt,msFlex:nt,flex:nt}},flexBasis:function tt(nt){return{WebkitFlexBasis:nt,flexBasis:nt}},justifyContent:function tt(nt){return{WebkitJustifyContent:nt,justifyContent:nt}},transition:function tt(nt){return{msTransition:nt,MozTransition:nt,OTransition:nt,WebkitTransition:nt,transition:nt}},transform:function tt(nt){return{msTransform:nt,MozTransform:nt,OTransform:nt,WebkitTransform:nt,transform:nt}},absolute:function tt(nt){var et=nt&&nt.split(" ");return{position:"absolute",top:et&&et[0],right:et&&et[1],bottom:et&&et[2],left:et&&et[3]}},extend:function tt(nt,et){var rt=et[nt];return rt||{extend:nt}}},autoprefix=autoprefix$1.autoprefix=function tt(nt){var et={};return(0,_forOwn3.default)(nt,function(rt,ot){var at={};(0,_forOwn3.default)(rt,function(st,ut){var ct=transforms[ut];ct?at=_extends$v({},at,ct(st)):at[ut]=st}),et[ot]=at}),et};autoprefix$1.default=autoprefix;var hover$1={};Object.defineProperty(hover$1,"__esModule",{value:!0});hover$1.hover=void 0;var _extends$u=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_react$3=reactExports,_react2$3=_interopRequireDefault$4(_react$3);function _interopRequireDefault$4(tt){return tt&&tt.__esModule?tt:{default:tt}}function _classCallCheck$f(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$f(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$f(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var hover=hover$1.hover=function tt(nt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(rt){_inherits$f(ot,rt);function ot(){var at,st,ut,ct;_classCallCheck$f(this,ot);for(var pt=arguments.length,dt=Array(pt),ft=0;ft<pt;ft++)dt[ft]=arguments[ft];return ct=(st=(ut=_possibleConstructorReturn$f(this,(at=ot.__proto__||Object.getPrototypeOf(ot)).call.apply(at,[this].concat(dt))),ut),ut.state={hover:!1},ut.handleMouseOver=function(){return ut.setState({hover:!0})},ut.handleMouseOut=function(){return ut.setState({hover:!1})},ut.render=function(){return _react2$3.default.createElement(et,{onMouseOver:ut.handleMouseOver,onMouseOut:ut.handleMouseOut},_react2$3.default.createElement(nt,_extends$u({},ut.props,ut.state)))},st),_possibleConstructorReturn$f(ut,ct)}return ot}(_react2$3.default.Component)};hover$1.default=hover;var active$1={};Object.defineProperty(active$1,"__esModule",{value:!0});active$1.active=void 0;var _extends$t=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_react$2=reactExports,_react2$2=_interopRequireDefault$3(_react$2);function _interopRequireDefault$3(tt){return tt&&tt.__esModule?tt:{default:tt}}function _classCallCheck$e(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$e(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$e(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var active=active$1.active=function tt(nt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(rt){_inherits$e(ot,rt);function ot(){var at,st,ut,ct;_classCallCheck$e(this,ot);for(var pt=arguments.length,dt=Array(pt),ft=0;ft<pt;ft++)dt[ft]=arguments[ft];return ct=(st=(ut=_possibleConstructorReturn$e(this,(at=ot.__proto__||Object.getPrototypeOf(ot)).call.apply(at,[this].concat(dt))),ut),ut.state={active:!1},ut.handleMouseDown=function(){return ut.setState({active:!0})},ut.handleMouseUp=function(){return ut.setState({active:!1})},ut.render=function(){return _react2$2.default.createElement(et,{onMouseDown:ut.handleMouseDown,onMouseUp:ut.handleMouseUp},_react2$2.default.createElement(nt,_extends$t({},ut.props,ut.state)))},st),_possibleConstructorReturn$e(ut,ct)}return ot}(_react2$2.default.Component)};active$1.default=active;var loop={};Object.defineProperty(loop,"__esModule",{value:!0});var loopable=function tt(nt,et){var rt={},ot=function(st){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;rt[st]=ut};return nt===0&&ot("first-child"),nt===et-1&&ot("last-child"),(nt===0||nt%2===0)&&ot("even"),Math.abs(nt%2)===1&&ot("odd"),ot("nth-child",nt),rt};loop.default=loopable;Object.defineProperty(lib$2,"__esModule",{value:!0});lib$2.ReactCSS=lib$2.loop=lib$2.handleActive=handleHover=lib$2.handleHover=lib$2.hover=void 0;var _flattenNames=flattenNames$1,_flattenNames2=_interopRequireDefault$2(_flattenNames),_mergeClasses=mergeClasses$1,_mergeClasses2=_interopRequireDefault$2(_mergeClasses),_autoprefix=autoprefix$1,_autoprefix2=_interopRequireDefault$2(_autoprefix),_hover2=hover$1,_hover3=_interopRequireDefault$2(_hover2),_active=active$1,_active2=_interopRequireDefault$2(_active),_loop2=loop,_loop3=_interopRequireDefault$2(_loop2);function _interopRequireDefault$2(tt){return tt&&tt.__esModule?tt:{default:tt}}lib$2.hover=_hover3.default;var handleHover=lib$2.handleHover=_hover3.default;lib$2.handleActive=_active2.default;lib$2.loop=_loop3.default;var ReactCSS=lib$2.ReactCSS=function tt(nt){for(var et=arguments.length,rt=Array(et>1?et-1:0),ot=1;ot<et;ot++)rt[ot-1]=arguments[ot];var at=(0,_flattenNames2.default)(rt),st=(0,_mergeClasses2.default)(nt,at);return(0,_autoprefix2.default)(st)},_default$2=lib$2.default=ReactCSS,calculateChange$2=function tt(nt,et,rt,ot,at){var st=at.clientWidth,ut=at.clientHeight,ct=typeof nt.pageX=="number"?nt.pageX:nt.touches[0].pageX,pt=typeof nt.pageY=="number"?nt.pageY:nt.touches[0].pageY,dt=ct-(at.getBoundingClientRect().left+window.pageXOffset),ft=pt-(at.getBoundingClientRect().top+window.pageYOffset);if(rt==="vertical"){var bt=void 0;if(ft<0?bt=0:ft>ut?bt=1:bt=Math.round(ft*100/ut)/100,et.a!==bt)return{h:et.h,s:et.s,l:et.l,a:bt,source:"rgb"}}else{var ht=void 0;if(dt<0?ht=0:dt>st?ht=1:ht=Math.round(dt*100/st)/100,ot!==ht)return{h:et.h,s:et.s,l:et.l,a:ht,source:"rgb"}}return null},checkboardCache={},render=function tt(nt,et,rt,ot){if(typeof document>"u"&&!ot)return null;var at=ot?new ot:document.createElement("canvas");at.width=rt*2,at.height=rt*2;var st=at.getContext("2d");return st?(st.fillStyle=nt,st.fillRect(0,0,at.width,at.height),st.fillStyle=et,st.fillRect(0,0,rt,rt),st.translate(rt,rt),st.fillRect(0,0,rt,rt),at.toDataURL()):null},get$1=function tt(nt,et,rt,ot){var at=nt+"-"+et+"-"+rt+(ot?"-server":"");if(checkboardCache[at])return checkboardCache[at];var st=render(nt,et,rt,ot);return checkboardCache[at]=st,st},_extends$s=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},Checkboard=function tt(nt){var et=nt.white,rt=nt.grey,ot=nt.size,at=nt.renderers,st=nt.borderRadius,ut=nt.boxShadow,ct=nt.children,pt=_default$2({default:{grid:{borderRadius:st,boxShadow:ut,absolute:"0px 0px 0px 0px",background:"url("+get$1(et,rt,ot,at.canvas)+") center left"}}});return reactExports.isValidElement(ct)?React$1.cloneElement(ct,_extends$s({},ct.props,{style:_extends$s({},ct.props.style,pt.grid)})):React$1.createElement("div",{style:pt.grid})};Checkboard.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var _extends$r=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_createClass$d=function(){function tt(nt,et){for(var rt=0;rt<et.length;rt++){var ot=et[rt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(nt,ot.key,ot)}}return function(nt,et,rt){return et&&tt(nt.prototype,et),rt&&tt(nt,rt),nt}}();function _classCallCheck$d(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$d(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$d(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var Alpha=function(tt){_inherits$d(nt,tt);function nt(){var et,rt,ot,at;_classCallCheck$d(this,nt);for(var st=arguments.length,ut=Array(st),ct=0;ct<st;ct++)ut[ct]=arguments[ct];return at=(rt=(ot=_possibleConstructorReturn$d(this,(et=nt.__proto__||Object.getPrototypeOf(nt)).call.apply(et,[this].concat(ut))),ot),ot.handleChange=function(pt){var dt=calculateChange$2(pt,ot.props.hsl,ot.props.direction,ot.props.a,ot.container);dt&&typeof ot.props.onChange=="function"&&ot.props.onChange(dt,pt)},ot.handleMouseDown=function(pt){ot.handleChange(pt),window.addEventListener("mousemove",ot.handleChange),window.addEventListener("mouseup",ot.handleMouseUp)},ot.handleMouseUp=function(){ot.unbindEventListeners()},ot.unbindEventListeners=function(){window.removeEventListener("mousemove",ot.handleChange),window.removeEventListener("mouseup",ot.handleMouseUp)},rt),_possibleConstructorReturn$d(ot,at)}return _createClass$d(nt,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var rt=this,ot=this.props.rgb,at=_default$2({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+ot.r+","+ot.g+","+ot.b+`, 0) 0%,
683
+ `),allowHTML:!1})]}),ct&&jsx$1(StyledHeaderDivider,{"data-testid":"stHeadingDivider",rainbow:ct.includes("linear"),color:ct})]})}const StyledCheckbox$1=newStyled("div",{target:"e1kzzvq90"})(({width:tt,theme:nt})=>({width:tt,display:"flex",alignItems:"center",minHeight:nt.sizes.smallElementHeight})),StyledContent=newStyled("div",{target:"e1kzzvq91"})(({visibility:tt})=>({display:tt===LabelVisibilityOptions.Collapsed?"none":"flex",visibility:tt===LabelVisibilityOptions.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"}));function translateGapWidth(tt,nt){let et=nt.spacing.lg;return tt==="medium"?et=nt.spacing.threeXL:tt==="large"&&(et=nt.spacing.fourXL),et}const StyledHorizontalBlock=newStyled("div",{target:"e1kefhzc0"})(({theme:tt,gap:nt})=>({display:"flex",flexWrap:"wrap",flexGrow:1,alignItems:"stretch",gap:translateGapWidth(nt,tt)})),GLOBAL_ELEMENTS=["balloons","snow"],StyledElementContainer=newStyled("div",{target:"e1kefhzc1"})(({theme:tt,isStale:nt,width:et,elementType:rt})=>({width:et,position:"relative","@media print":{overflow:"visible"},":is(.stHtml-empty)":{display:"none"},":has(> .stCacheSpinner)":{height:tt.spacing.none,overflow:"visible",visibility:"visible",marginBottom:`-${tt.spacing.lg}`,zIndex:tt.zIndices.cacheSpinner},":has(> .stPageLink)":{marginTop:`-${tt.spacing.xs}`,marginBottom:`-${tt.spacing.xs}`},...nt&&rt!=="skeleton"&&STALE_STYLES,...rt==="empty"?{display:"none"}:{},...GLOBAL_ELEMENTS.includes(rt)?{marginBottom:`-${tt.spacing.lg}`}:{}})),StyledColumn=newStyled("div",{target:"e1kefhzc2"})(({theme:tt,weight:nt,gap:et,showBorder:rt,verticalAlignment:ot})=>{const{VerticalAlignment:at}=Block$2.Column,st=nt*100,ut=translateGapWidth(et,tt),ct=`calc(${st}% - ${ut})`;return{width:ct,flex:`1 1 ${ct}`,[`@media (max-width: ${tt.breakpoints.columns})`]:{minWidth:`calc(100% - ${tt.spacing.twoXL})`},...ot===at.BOTTOM&&{marginTop:"auto",[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginBottom:tt.spacing.sm}},...ot===at.TOP&&{[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginTop:tt.spacing.sm}},...ot===at.CENTER&&{marginTop:"auto",marginBottom:"auto"},...rt&&{border:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`,borderRadius:tt.radii.default,padding:`calc(${tt.spacing.lg} - ${tt.sizes.borderWidth})`}}}),StyledVerticalBlock=newStyled("div",{target:"e1kefhzc3"})(({width:tt,theme:nt})=>({width:tt,position:"relative",display:"flex",flex:1,flexDirection:"column",gap:nt.spacing.lg})),StyledVerticalBlockWrapper=newStyled("div",{target:"e1kefhzc4"})({display:"flex",flexDirection:"column",flex:1}),StyledVerticalBlockBorderWrapper=newStyled("div",{target:"e1kefhzc5"})(({theme:tt,border:nt,height:et})=>({...nt&&{border:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`,borderRadius:tt.radii.default,padding:`calc(${tt.spacing.lg} - ${tt.sizes.borderWidth})`},...et&&{height:`${et}px`,overflow:"auto"}})),Audio=React$1.lazy(()=>__vitePreload(()=>import("./index.CDXWGWmT.js"),[],import.meta.url)),Balloons=React$1.lazy(()=>__vitePreload(()=>import("./index.CzGQCrp7.js"),__vite__mapDeps([0,1]),import.meta.url)),Snow=React$1.lazy(()=>__vitePreload(()=>import("./index.CMo3Hx0K.js"),__vite__mapDeps([2,1]),import.meta.url)),ArrowDataFrame=React$1.lazy(()=>__vitePreload(()=>import("./index.Br51_AlR.js").then(tt=>tt.c),__vite__mapDeps([3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)),ArrowVegaLiteChart=React$1.lazy(()=>__vitePreload(()=>import("./index.DBsWPEgr.js"),__vite__mapDeps([15,6,5,7,16,17,18,4]),import.meta.url)),Toast=React$1.lazy(()=>__vitePreload(()=>import("./index.CNpCQb9b.js"),[],import.meta.url)),BokehChart=React$1.lazy(()=>__vitePreload(()=>import("./index.BvkVMkqn.js"),[],import.meta.url)),DebouncedBokehChart=debounceRender(BokehChart,100),DeckGlJsonChart=React$1.lazy(()=>__vitePreload(()=>import("./index.BfnKXy8f.js"),__vite__mapDeps([19,10,11,6,5,20,4,16,17,21]),import.meta.url)),GraphVizChart=React$1.lazy(()=>__vitePreload(()=>import("./index.CkiEGMvI.js"),__vite__mapDeps([22,18,17,6,5]),import.meta.url)),IFrame=React$1.lazy(()=>__vitePreload(()=>import("./index.BPO6U_Ww.js"),[],import.meta.url)),ImageList=React$1.lazy(()=>__vitePreload(()=>import("./index.D0lyWwCG.js"),__vite__mapDeps([23,6,5]),import.meta.url)),LinkButton=React$1.lazy(()=>__vitePreload(()=>import("./index.BH4vJGDU.js"),[],import.meta.url)),PageLink=React$1.lazy(()=>__vitePreload(()=>import("./index.DW-SfHSH.js"),[],import.meta.url)),PlotlyChart=React$1.lazy(()=>__vitePreload(()=>import("./index.BbX6EljV.js"),__vite__mapDeps([24,4,5]),import.meta.url)),Video=React$1.lazy(()=>__vitePreload(()=>import("./index.BEVQJJoV.js"),[],import.meta.url)),AudioInput=React$1.lazy(()=>__vitePreload(()=>import("./index.Cg6FfZbb.js"),__vite__mapDeps([25,4,6,26,9,13]),import.meta.url)),Button=React$1.lazy(()=>__vitePreload(()=>import("./index.DTqVI4Zh.js"),[],import.meta.url)),ButtonGroup=React$1.lazy(()=>__vitePreload(()=>import("./index.JwwxmOA5.js"),__vite__mapDeps([27,20,4]),import.meta.url)),DownloadButton=React$1.lazy(()=>__vitePreload(()=>import("./index.D99Ft0yx.js"),__vite__mapDeps([28,9]),import.meta.url)),CameraInput=React$1.lazy(()=>__vitePreload(()=>import("./index.DQbNi2IT.js"),__vite__mapDeps([29,4,30,31]),import.meta.url)),ChatInput=React$1.lazy(()=>__vitePreload(()=>import("./index.CEaPpXYi.js"),__vite__mapDeps([32,33,34,35,36]),import.meta.url)),Checkbox=React$1.lazy(()=>__vitePreload(()=>import("./index.BMTeKekB.js"),__vite__mapDeps([37,20,4]),import.meta.url)),ColorPicker=React$1.lazy(()=>__vitePreload(()=>import("./index.DFmc81Ae.js"),__vite__mapDeps([38,20,4]),import.meta.url)),DateInput=React$1.lazy(()=>__vitePreload(()=>import("./index.Cx7ma5cM.js"),__vite__mapDeps([39,20,4,40,11,12,41,36]),import.meta.url)),Html=React$1.lazy(()=>__vitePreload(()=>import("./index.EqYXB49Q.js"),[],import.meta.url)),Multiselect=React$1.lazy(()=>__vitePreload(()=>import("./index.DFD0XSVm.js"),__vite__mapDeps([42,20,4]),import.meta.url)),Progress=React$1.lazy(()=>__vitePreload(()=>import("./index.BGbkq72c.js"),__vite__mapDeps([43,31]),import.meta.url)),Spinner=React$1.lazy(()=>__vitePreload(()=>import("./index.MeMRgb28.js"),[],import.meta.url)),Radio=React$1.lazy(()=>__vitePreload(()=>import("./index.D3tYsziH.js"),__vite__mapDeps([44,20,4]),import.meta.url)),Selectbox$1=React$1.lazy(()=>__vitePreload(()=>import("./index.CANLiXfL.js"),__vite__mapDeps([45,20,4]),import.meta.url)),Slider$1=React$1.lazy(()=>__vitePreload(()=>import("./index.DWmj29sp.js"),__vite__mapDeps([46,8,20,4]),import.meta.url)),FileUploader=React$1.lazy(()=>__vitePreload(()=>import("./index.nDfHFYx0.js"),__vite__mapDeps([47,4,31,26,30]),import.meta.url)),TextArea=React$1.lazy(()=>__vitePreload(()=>import("./index.DLx08-Iq.js"),__vite__mapDeps([48,49,50,34,33,20,4,35,36]),import.meta.url)),TextInput=React$1.lazy(()=>__vitePreload(()=>import("./index.CCIxkgVR.js"),__vite__mapDeps([51,49,50,34,20,4,33,41,36]),import.meta.url)),TimeInput=React$1.lazy(()=>__vitePreload(()=>import("./index.DFwjNqMU.js"),__vite__mapDeps([52,20,4,40,11,12]),import.meta.url)),NumberInput=React$1.lazy(()=>__vitePreload(()=>import("./index.CFwQY-KV.js"),__vite__mapDeps([53,8,49,4,33,41,36]),import.meta.url)),StreamlitSyntaxHighlighter=React$1.lazy(()=>__vitePreload(()=>Promise.resolve().then(()=>StreamlitSyntaxHighlighter$2),void 0,import.meta.url));function hideIfStale(tt,nt){return tt?jsx$1(Fragment,{}):nt}const RawElementNodeRenderer=tt=>{const{node:nt}=tt;if(!nt)throw new Error("ElementNode not found.");const et={width:tt.width,disableFullscreenMode:tt.disableFullscreenMode},rt={...et,widgetMgr:tt.widgetMgr,disabled:tt.widgetsDisabled,fragmentId:nt.fragmentId};switch(nt.element.type){case"alert":{const at=nt.element.alert;return jsx$1(AlertElement,{icon:at.icon,body:at.body,kind:getAlertElementKind(at.format),...et})}case"arrowTable":return jsx$1(ArrowTable,{element:nt.quiverElement,...et});case"audio":return jsx$1(Audio,{element:nt.element.audio,endpoints:tt.endpoints,...et,elementMgr:tt.widgetMgr});case"balloons":return hideIfStale(tt.isStale,jsx$1(Balloons,{scriptRunId:tt.scriptRunId}));case"bokehChart":return jsx$1(DebouncedBokehChart,{element:nt.element.bokehChart,...et});case"code":{const at=nt.element.code;return jsx$1(StreamlitSyntaxHighlighter,{language:at.language,showLineNumbers:at.showLineNumbers,wrapLines:at.wrapLines,height:at.height,children:at.codeText})}case"deckGlJsonChart":return jsx$1(DeckGlJsonChart,{element:nt.element.deckGlJsonChart,...rt});case"docString":return jsx$1(DocString,{element:nt.element.docString,...et});case"empty":return jsx$1("div",{className:"stEmpty","data-testid":"stEmpty"});case"exception":return jsx$1(ExceptionElement,{element:nt.element.exception,...et});case"graphvizChart":return jsx$1(GraphVizChart,{element:nt.element.graphvizChart,...et});case"heading":return jsx$1(Heading,{element:nt.element.heading,...et});case"iframe":return jsx$1(IFrame,{element:nt.element.iframe,...et});case"imgs":return jsx$1(ImageList,{element:nt.element.imgs,endpoints:tt.endpoints,...et});case"json":return jsx$1(Json,{element:nt.element.json,...et});case"markdown":return jsx$1(Markdown,{element:nt.element.markdown,...et});case"metric":return jsx$1(Metric,{element:nt.element.metric});case"html":return jsx$1(Html,{element:nt.element.html,...et});case"pageLink":{const at=nt.element.pageLink,st=rt.disabled||at.disabled;return jsx$1(PageLink,{element:at,disabled:st,...et})}case"progress":return jsx$1(Progress,{element:nt.element.progress,...et});case"skeleton":return jsx$1(Skeleton,{element:nt.element.skeleton});case"snow":return hideIfStale(tt.isStale,jsx$1(Snow,{scriptRunId:tt.scriptRunId}));case"spinner":return jsx$1(Spinner,{element:nt.element.spinner,...et});case"text":return jsx$1(TextElement,{element:nt.element.text,...et});case"video":return jsx$1(Video,{element:nt.element.video,endpoints:tt.endpoints,...et,elementMgr:tt.widgetMgr});case"toast":{const at=nt.element.toast;return jsx$1(Toast,{body:at.body,icon:at.icon,...et},nt.scriptRunId)}case"arrowDataFrame":{const at=nt.element.arrowDataFrame;return rt.disabled=rt.disabled||at.disabled,jsx$1(ArrowDataFrame,{element:at,data:nt.quiverElement,...at.id&&{key:at.id},...rt})}case"arrowVegaLiteChart":const ot=nt.vegaLiteChartElement;return jsx$1(ArrowVegaLiteChart,{element:ot,...rt},ot.id||void 0);case"audioInput":{const at=nt.element.audioInput;return rt.disabled=rt.disabled||at.disabled,jsx$1(AudioInput,{uploadClient:tt.uploadClient,element:at,...rt},at.id)}case"button":{const at=nt.element.button;if(rt.disabled=rt.disabled||at.disabled,at.isFormSubmitter){const{formId:st}=at,ut=tt.formsData.formsWithUploads.has(st);return jsx$1(FormSubmitContent,{element:at,hasInProgressUpload:ut,...rt})}return jsx$1(Button,{element:at,...rt})}case"buttonGroup":{const at=nt.element.buttonGroup;return rt.disabled=rt.disabled||at.disabled,jsx$1(ButtonGroup,{element:at,...rt},at.id)}case"downloadButton":{const at=nt.element.downloadButton;return rt.disabled=rt.disabled||at.disabled,jsx$1(DownloadButton,{endpoints:tt.endpoints,element:at,...rt},at.id)}case"cameraInput":{const at=nt.element.cameraInput;return rt.disabled=rt.disabled||at.disabled,jsx$1(CameraInput,{element:at,uploadClient:tt.uploadClient,...rt},at.id)}case"chatInput":{const at=nt.element.chatInput;return rt.disabled=rt.disabled||at.disabled,jsx$1(ChatInput,{element:at,...rt},at.id)}case"checkbox":{const at=nt.element.checkbox;return rt.disabled=rt.disabled||at.disabled,jsx$1(Checkbox,{element:at,...rt},at.id)}case"colorPicker":{const at=nt.element.colorPicker;return rt.disabled=rt.disabled||at.disabled,jsx$1(ColorPicker,{element:at,...rt},at.id)}case"componentInstance":return jsx$1(ComponentInstance$1,{registry:tt.componentRegistry,element:nt.element.componentInstance,...rt});case"dateInput":{const at=nt.element.dateInput;return rt.disabled=rt.disabled||at.disabled,jsx$1(DateInput,{element:at,...rt},at.id)}case"fileUploader":{const at=nt.element.fileUploader;return rt.disabled=rt.disabled||at.disabled,jsx$1(FileUploader,{element:at,uploadClient:tt.uploadClient,...rt},at.id)}case"linkButton":{const at=nt.element.linkButton;return rt.disabled=rt.disabled||at.disabled,jsx$1(LinkButton,{element:at,...rt})}case"multiselect":{const at=nt.element.multiselect;return rt.disabled=rt.disabled||at.disabled,jsx$1(Multiselect,{element:at,...rt},at.id)}case"numberInput":{const at=nt.element.numberInput;return rt.disabled=rt.disabled||at.disabled,jsx$1(NumberInput,{element:at,...rt},at.id)}case"plotlyChart":{const at=nt.element.plotlyChart;return jsx$1(PlotlyChart,{element:at,...rt},at.id)}case"radio":{const at=nt.element.radio;return rt.disabled=rt.disabled||at.disabled,jsx$1(Radio,{element:at,...rt},at.id)}case"selectbox":{const at=nt.element.selectbox;return rt.disabled=rt.disabled||at.disabled,jsx$1(Selectbox$1,{element:at,...rt},at.id)}case"slider":{const at=nt.element.slider;return rt.disabled=rt.disabled||at.disabled,jsx$1(Slider$1,{element:at,...rt},at.id)}case"textArea":{const at=nt.element.textArea;return rt.disabled=rt.disabled||at.disabled,jsx$1(TextArea,{element:at,...rt},at.id)}case"textInput":{const at=nt.element.textInput;return rt.disabled=rt.disabled||at.disabled,jsx$1(TextInput,{element:at,...rt},at.id)}case"timeInput":{const at=nt.element.timeInput;return rt.disabled=rt.disabled||at.disabled,jsx$1(TimeInput,{element:at,...rt},at.id)}default:throw new Error(`Unrecognized Element type ${nt.element.type}`)}},ElementNodeRenderer=tt=>{const{isFullScreen:nt,fragmentIdsThisRun:et}=React$1.useContext(LibContext),{node:rt,width:ot}=tt,at=rt.element.type||"",st=shouldComponentBeEnabled(at,tt.scriptRunState),ut=isComponentStale(st,rt,tt.scriptRunState,tt.scriptRunId,et),ct=getElementId(rt.element),pt=getKeyFromId(ct);return jsx$1(Maybe,{enable:st,children:jsx$1(StyledElementContainer,{className:classNames("stElementContainer","element-container",convertKeyToClassName(pt)),"data-testid":"stElementContainer","data-stale":ut,isStale:ut&&!nt,width:ot,elementType:at,children:jsx$1(ErrorBoundary,{width:ot,children:jsx$1(reactExports.Suspense,{fallback:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:jsx$1(RawElementNodeRenderer,{...tt,isStale:ut})})})})})},BlockNodeRenderer=tt=>{const{node:nt}=tt,{fragmentIdsThisRun:et}=reactExports.useContext(LibContext);if(nt.isEmpty&&!nt.deltaBlock.allowEmpty)return jsx$1(Fragment,{});const rt=shouldComponentBeEnabled("",tt.scriptRunState),ot=isComponentStale(rt,nt,tt.scriptRunState,tt.scriptRunId,et),at={...tt,node:nt},st=tt.disableFullscreenMode||notNullOrUndefined(nt.deltaBlock.dialog)||notNullOrUndefined(nt.deltaBlock.popover),ut=jsx$1(LayoutBlock,{...at,disableFullscreenMode:st});if(nt.deltaBlock.dialog)return jsx$1(DialogWithProvider,{element:nt.deltaBlock.dialog,deltaMsgReceivedAt:nt.deltaMsgReceivedAt,children:ut});if(nt.deltaBlock.expandable)return jsx$1(Expander,{empty:nt.isEmpty,isStale:ot,element:nt.deltaBlock.expandable,children:ut});if(nt.deltaBlock.popover)return jsx$1(Popover,{empty:nt.isEmpty,element:nt.deltaBlock.popover,width:tt.width,children:ut});if(nt.deltaBlock.type==="form"){const{formId:ct,clearOnSubmit:pt,enterToSubmit:dt,border:ft}=nt.deltaBlock.form,bt=tt.formsData.submitButtons.get(ct),ht=bt!==void 0&&bt.length>0;return jsx$1(Form,{formId:ct,clearOnSubmit:pt,enterToSubmit:dt,width:tt.width,hasSubmitButton:ht,scriptRunState:tt.scriptRunState,widgetMgr:tt.widgetMgr,border:ft,children:ut})}if(nt.deltaBlock.chatMessage)return jsx$1(ChatMessage,{element:nt.deltaBlock.chatMessage,endpoints:tt.endpoints,children:ut});if(nt.deltaBlock.column)return jsx$1(StyledColumn,{weight:nt.deltaBlock.column.weight??0,gap:nt.deltaBlock.column.gap??"",verticalAlignment:nt.deltaBlock.column.verticalAlignment??void 0,showBorder:nt.deltaBlock.column.showBorder??!1,className:"stColumn","data-testid":"stColumn",children:ut});if(nt.deltaBlock.tabContainer){const pt={...at,isStale:ot,renderTabContent:dt=>jsx$1(VerticalBlock,{...dt})};return jsx$1(Tabs,{...pt})}return ut},ChildRenderer=tt=>{const{libConfig:nt}=reactExports.useContext(LibContext);assignDividerColor(tt.node,useTheme());const et=new Set;return jsx$1(Fragment,{children:tt.node.children&&tt.node.children.map((rt,ot)=>{const at=nt.disableFullscreenMode||tt.disableFullscreenMode;if(rt instanceof ElementNode){const st={...tt,disableFullscreenMode:at,node:rt},ut=getElementId(rt.element)||ot.toString();return et.has(ut)?null:(et.add(ut),jsx$1(ElementNodeRenderer,{...st},ut))}if(rt instanceof BlockNode){const st={...tt,disableFullscreenMode:at,node:rt};return jsx$1(BlockNodeRenderer,{...st},ot)}throw new Error(`Unrecognized AppNode: ${rt}`)})})};function ScrollToBottomVerticalBlockWrapper(tt){const{border:nt,height:et,children:rt}=tt,ot=useScrollToBottom();return jsx$1(StyledVerticalBlockBorderWrapper,{border:nt,height:et,"data-testid":"stVerticalBlockBorderWrapper","data-test-scroll-behavior":"scroll-to-bottom",ref:ot,children:rt})}const VerticalBlock=tt=>{var ft,bt;const nt=reactExports.useRef(null),[et,rt]=React$1.useState(-1),ot=reactExports.useMemo(()=>new ResizeObserver(([ht])=>{window.requestAnimationFrame(()=>{rt(ht.target.getBoundingClientRect().width||-1)})}),[rt]),at=((ft=tt.node.deltaBlock.vertical)==null?void 0:ft.border)??!1,st=((bt=tt.node.deltaBlock.vertical)==null?void 0:bt.height)||void 0,ut=st&&tt.node.children.find(ht=>ht instanceof BlockNode&&ht.deltaBlock.type==="chatMessage")!==void 0;reactExports.useEffect(()=>(nt.current&&ot.observe(nt.current),()=>{ot.disconnect()}),[ot,ut]);const ct=ut?ScrollToBottomVerticalBlockWrapper:StyledVerticalBlockBorderWrapper,pt={...tt,width:et},dt=getKeyFromId(tt.node.deltaBlock.id);return jsx$1(ct,{border:at,height:st,"data-testid":"stVerticalBlockBorderWrapper","data-test-scroll-behavior":"normal",children:jsx$1(StyledVerticalBlockWrapper,{ref:nt,children:jsx$1(StyledVerticalBlock,{width:et,className:classNames("stVerticalBlock",convertKeyToClassName(dt)),"data-testid":"stVerticalBlock",children:jsx$1(ChildRenderer,{...pt})})})})},HorizontalBlock=tt=>{var et;const nt=((et=tt.node.deltaBlock.horizontal)==null?void 0:et.gap)??"";return jsx$1(StyledHorizontalBlock,{gap:nt,className:"stHorizontalBlock","data-testid":"stHorizontalBlock",children:jsx$1(ChildRenderer,{...tt})})};function LayoutBlock(tt){return tt.node.deltaBlock.horizontal?jsx$1(HorizontalBlock,{...tt}):jsx$1(VerticalBlock,{...tt})}const StyledDataFrameOverlay=newStyled("div",{target:"e19n7mk11"})(({theme:tt})=>({position:"fixed",top:0,left:0,zIndex:tt.zIndices.tablePortal,lineHeight:"100%"})),PortalContext=React$1.createContext(null),PortalProvider=({children:tt})=>{const nt=reactExports.useRef(null),et=reactExports.useCallback(()=>nt.current,[]);return jsxs(PortalContext.Provider,{value:et,children:[tt,jsx$1(StyledDataFrameOverlay,{"data-testid":"portal",id:"portal",ref:nt})]})};function ThemeProvider({theme:tt,baseuiTheme:nt,children:et}){return jsx$1(ThemeProvider$1,{theme:nt||baseuiLightTheme,children:jsx$1(ThemeProvider$2,{theme:tt,children:et})})}function toCodePoint(tt,nt){const et=[];let rt=0,ot=0,at=0;for(;at<tt.length;)rt=tt.charCodeAt(at++),ot?(et.push((65536+(ot-55296<<10)+(rt-56320)).toString(16)),ot=0):55296<=rt&&rt<=56319?ot=rt:et.push(rt.toString(16));return et.join("-")}const UFE0Fg=/\uFE0F/g,U200D="‍";function grabTheRightIcon(tt){return toCodePoint(tt.indexOf(U200D)<0?tt.replace(UFE0Fg,""):tt)}function iconToUrl(tt){const nt=/^:(.+)\/(.+):$/,et=tt.match(nt);return et===null?"":`https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsrounded/${et[2]}/default/24px.svg`}function handleFavicon(tt,nt,et){const rt=extractEmoji(tt);let ot;rt&&!tt.startsWith(":material")?ot=`https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/${grabTheRightIcon(rt)}.png`:tt.startsWith(":material")?ot=iconToUrl(tt):ot=et.buildMediaURL(tt),overwriteFavicon(ot),nt({type:"SET_PAGE_FAVICON",favicon:ot})}function overwriteFavicon(tt){const nt=document.querySelector("link[rel='shortcut icon']");nt&&(nt.href=tt)}function extractEmoji(tt){const nt=tt.replace("-","_");return nodeEmoji$1.hasEmoji(nodeEmoji$1.get(nt))?nodeEmoji$1.get(nt):nodeEmoji$1.hasEmoji(tt)?tt:""}var lib$2={},flattenNames$1={},baseFor$1=_baseFor,keys$2=keys_1;function baseForOwn$4(tt,nt){return tt&&baseFor$1(tt,nt,keys$2)}var _baseForOwn=baseForOwn$4,identity$3=identity_1;function castFunction$2(tt){return typeof tt=="function"?tt:identity$3}var _castFunction=castFunction$2,baseForOwn$3=_baseForOwn,castFunction$1=_castFunction;function forOwn(tt,nt){return tt&&baseForOwn$3(tt,castFunction$1(nt))}var forOwn_1=forOwn,HASH_UNDEFINED$3="__lodash_hash_undefined__";function setCacheAdd$2(tt){return this.__data__.set(tt,HASH_UNDEFINED$3),this}var _setCacheAdd=setCacheAdd$2;function setCacheHas$2(tt){return this.__data__.has(tt)}var _setCacheHas=setCacheHas$2,MapCache$1=_MapCache,setCacheAdd$1=_setCacheAdd,setCacheHas$1=_setCacheHas;function SetCache$3(tt){var nt=-1,et=tt==null?0:tt.length;for(this.__data__=new MapCache$1;++nt<et;)this.add(tt[nt])}SetCache$3.prototype.add=SetCache$3.prototype.push=setCacheAdd$1;SetCache$3.prototype.has=setCacheHas$1;var _SetCache=SetCache$3;function arraySome$2(tt,nt){for(var et=-1,rt=tt==null?0:tt.length;++et<rt;)if(nt(tt[et],et,tt))return!0;return!1}var _arraySome=arraySome$2;function cacheHas$3(tt,nt){return tt.has(nt)}var _cacheHas=cacheHas$3,SetCache$2=_SetCache,arraySome$1=_arraySome,cacheHas$2=_cacheHas,COMPARE_PARTIAL_FLAG$b=1,COMPARE_UNORDERED_FLAG$7=2;function equalArrays$3(tt,nt,et,rt,ot,at){var st=et&COMPARE_PARTIAL_FLAG$b,ut=tt.length,ct=nt.length;if(ut!=ct&&!(st&&ct>ut))return!1;var pt=at.get(tt),dt=at.get(nt);if(pt&&dt)return pt==nt&&dt==tt;var ft=-1,bt=!0,ht=et&COMPARE_UNORDERED_FLAG$7?new SetCache$2:void 0;for(at.set(tt,nt),at.set(nt,tt);++ft<ut;){var Mt=tt[ft],mt=nt[ft];if(rt)var Ot=st?rt(mt,Mt,ft,nt,tt,at):rt(Mt,mt,ft,tt,nt,at);if(Ot!==void 0){if(Ot)continue;bt=!1;break}if(ht){if(!arraySome$1(nt,function(zt,yt){if(!cacheHas$2(ht,yt)&&(Mt===zt||ot(Mt,zt,et,rt,at)))return ht.push(yt)})){bt=!1;break}}else if(!(Mt===mt||ot(Mt,mt,et,rt,at))){bt=!1;break}}return at.delete(tt),at.delete(nt),bt}var _equalArrays=equalArrays$3,Symbol$2=_Symbol,Uint8Array$2=_Uint8Array,eq$1=eq_1,equalArrays$2=_equalArrays,mapToArray$1=_mapToArray,setToArray$1=_setToArray,COMPARE_PARTIAL_FLAG$a=1,COMPARE_UNORDERED_FLAG$6=2,boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$2="[object Error]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",symbolProto$2=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf$1=symbolProto$2?symbolProto$2.valueOf:void 0;function equalByTag$2(tt,nt,et,rt,ot,at,st){switch(et){case dataViewTag$3:if(tt.byteLength!=nt.byteLength||tt.byteOffset!=nt.byteOffset)return!1;tt=tt.buffer,nt=nt.buffer;case arrayBufferTag$2:return!(tt.byteLength!=nt.byteLength||!at(new Uint8Array$2(tt),new Uint8Array$2(nt)));case boolTag$2:case dateTag$2:case numberTag$2:return eq$1(+tt,+nt);case errorTag$2:return tt.name==nt.name&&tt.message==nt.message;case regexpTag$2:case stringTag$2:return tt==nt+"";case mapTag$3:var ut=mapToArray$1;case setTag$3:var ct=rt&COMPARE_PARTIAL_FLAG$a;if(ut||(ut=setToArray$1),tt.size!=nt.size&&!ct)return!1;var pt=st.get(tt);if(pt)return pt==nt;rt|=COMPARE_UNORDERED_FLAG$6,st.set(tt,nt);var dt=equalArrays$2(ut(tt),ut(nt),rt,ot,at,st);return st.delete(tt),dt;case symbolTag$2:if(symbolValueOf$1)return symbolValueOf$1.call(tt)==symbolValueOf$1.call(nt)}return!1}var _equalByTag=equalByTag$2,getAllKeys$1=_getAllKeys,COMPARE_PARTIAL_FLAG$9=1,objectProto$h=Object.prototype,hasOwnProperty$f=objectProto$h.hasOwnProperty;function equalObjects$2(tt,nt,et,rt,ot,at){var st=et&COMPARE_PARTIAL_FLAG$9,ut=getAllKeys$1(tt),ct=ut.length,pt=getAllKeys$1(nt),dt=pt.length;if(ct!=dt&&!st)return!1;for(var ft=ct;ft--;){var bt=ut[ft];if(!(st?bt in nt:hasOwnProperty$f.call(nt,bt)))return!1}var ht=at.get(tt),Mt=at.get(nt);if(ht&&Mt)return ht==nt&&Mt==tt;var mt=!0;at.set(tt,nt),at.set(nt,tt);for(var Ot=st;++ft<ct;){bt=ut[ft];var zt=tt[bt],yt=nt[bt];if(rt)var vt=st?rt(yt,zt,bt,nt,tt,at):rt(zt,yt,bt,tt,nt,at);if(!(vt===void 0?zt===yt||ot(zt,yt,et,rt,at):vt)){mt=!1;break}Ot||(Ot=bt=="constructor")}if(mt&&!Ot){var At=tt.constructor,St=nt.constructor;At!=St&&"constructor"in tt&&"constructor"in nt&&!(typeof At=="function"&&At instanceof At&&typeof St=="function"&&St instanceof St)&&(mt=!1)}return at.delete(tt),at.delete(nt),mt}var _equalObjects=equalObjects$2,Stack$2=_Stack,equalArrays$1=_equalArrays,equalByTag$1=_equalByTag,equalObjects$1=_equalObjects,getTag$1=_getTag,isArray$7=isArray_1,isBuffer$2=isBufferExports,isTypedArray$2=isTypedArray_1,COMPARE_PARTIAL_FLAG$8=1,argsTag$3="[object Arguments]",arrayTag$2="[object Array]",objectTag$4="[object Object]",objectProto$g=Object.prototype,hasOwnProperty$e=objectProto$g.hasOwnProperty;function baseIsEqualDeep$2(tt,nt,et,rt,ot,at){var st=isArray$7(tt),ut=isArray$7(nt),ct=st?arrayTag$2:getTag$1(tt),pt=ut?arrayTag$2:getTag$1(nt);ct=ct==argsTag$3?objectTag$4:ct,pt=pt==argsTag$3?objectTag$4:pt;var dt=ct==objectTag$4,ft=pt==objectTag$4,bt=ct==pt;if(bt&&isBuffer$2(tt)){if(!isBuffer$2(nt))return!1;st=!0,dt=!1}if(bt&&!dt)return at||(at=new Stack$2),st||isTypedArray$2(tt)?equalArrays$1(tt,nt,et,rt,ot,at):equalByTag$1(tt,nt,ct,et,rt,ot,at);if(!(et&COMPARE_PARTIAL_FLAG$8)){var ht=dt&&hasOwnProperty$e.call(tt,"__wrapped__"),Mt=ft&&hasOwnProperty$e.call(nt,"__wrapped__");if(ht||Mt){var mt=ht?tt.value():tt,Ot=Mt?nt.value():nt;return at||(at=new Stack$2),ot(mt,Ot,et,rt,at)}}return bt?(at||(at=new Stack$2),equalObjects$1(tt,nt,et,rt,ot,at)):!1}var _baseIsEqualDeep=baseIsEqualDeep$2,baseIsEqualDeep$1=_baseIsEqualDeep,isObjectLike$1=isObjectLike_1;function baseIsEqual$4(tt,nt,et,rt,ot){return tt===nt?!0:tt==null||nt==null||!isObjectLike$1(tt)&&!isObjectLike$1(nt)?tt!==tt&&nt!==nt:baseIsEqualDeep$1(tt,nt,et,rt,baseIsEqual$4,ot)}var _baseIsEqual=baseIsEqual$4,Stack$1=_Stack,baseIsEqual$3=_baseIsEqual,COMPARE_PARTIAL_FLAG$7=1,COMPARE_UNORDERED_FLAG$5=2;function baseIsMatch$2(tt,nt,et,rt){var ot=et.length,at=ot,st=!rt;if(tt==null)return!at;for(tt=Object(tt);ot--;){var ut=et[ot];if(st&&ut[2]?ut[1]!==tt[ut[0]]:!(ut[0]in tt))return!1}for(;++ot<at;){ut=et[ot];var ct=ut[0],pt=tt[ct],dt=ut[1];if(st&&ut[2]){if(pt===void 0&&!(ct in tt))return!1}else{var ft=new Stack$1;if(rt)var bt=rt(pt,dt,ct,tt,nt,ft);if(!(bt===void 0?baseIsEqual$3(dt,pt,COMPARE_PARTIAL_FLAG$7|COMPARE_UNORDERED_FLAG$5,rt,ft):bt))return!1}}return!0}var _baseIsMatch=baseIsMatch$2,isObject$3=isObject_1;function isStrictComparable$3(tt){return tt===tt&&!isObject$3(tt)}var _isStrictComparable=isStrictComparable$3,isStrictComparable$2=_isStrictComparable,keys$1=keys_1;function getMatchData$2(tt){for(var nt=keys$1(tt),et=nt.length;et--;){var rt=nt[et],ot=tt[rt];nt[et]=[rt,ot,isStrictComparable$2(ot)]}return nt}var _getMatchData=getMatchData$2;function matchesStrictComparable$3(tt,nt){return function(et){return et==null?!1:et[tt]===nt&&(nt!==void 0||tt in Object(et))}}var _matchesStrictComparable=matchesStrictComparable$3,baseIsMatch$1=_baseIsMatch,getMatchData$1=_getMatchData,matchesStrictComparable$2=_matchesStrictComparable;function baseMatches$2(tt){var nt=getMatchData$1(tt);return nt.length==1&&nt[0][2]?matchesStrictComparable$2(nt[0][0],nt[0][1]):function(et){return et===tt||baseIsMatch$1(et,tt,nt)}}var _baseMatches=baseMatches$2;function baseHasIn$2(tt,nt){return tt!=null&&nt in Object(tt)}var _baseHasIn=baseHasIn$2,castPath$3=_castPath,isArguments$1=isArguments_1,isArray$6=isArray_1,isIndex$2=_isIndex,isLength$1=isLength_1,toKey$4=_toKey;function hasPath$2(tt,nt,et){nt=castPath$3(nt,tt);for(var rt=-1,ot=nt.length,at=!1;++rt<ot;){var st=toKey$4(nt[rt]);if(!(at=tt!=null&&et(tt,st)))break;tt=tt[st]}return at||++rt!=ot?at:(ot=tt==null?0:tt.length,!!ot&&isLength$1(ot)&&isIndex$2(st,ot)&&(isArray$6(tt)||isArguments$1(tt)))}var _hasPath=hasPath$2,baseHasIn$1=_baseHasIn,hasPath$1=_hasPath;function hasIn$3(tt,nt){return tt!=null&&hasPath$1(tt,nt,baseHasIn$1)}var hasIn_1=hasIn$3,baseIsEqual$2=_baseIsEqual,get$2=get_1,hasIn$2=hasIn_1,isKey$2=_isKey,isStrictComparable$1=_isStrictComparable,matchesStrictComparable$1=_matchesStrictComparable,toKey$3=_toKey,COMPARE_PARTIAL_FLAG$6=1,COMPARE_UNORDERED_FLAG$4=2;function baseMatchesProperty$2(tt,nt){return isKey$2(tt)&&isStrictComparable$1(nt)?matchesStrictComparable$1(toKey$3(tt),nt):function(et){var rt=get$2(et,tt);return rt===void 0&&rt===nt?hasIn$2(et,tt):baseIsEqual$2(nt,rt,COMPARE_PARTIAL_FLAG$6|COMPARE_UNORDERED_FLAG$4)}}var _baseMatchesProperty=baseMatchesProperty$2,baseGet$3=_baseGet;function basePropertyDeep$2(tt){return function(nt){return baseGet$3(nt,tt)}}var _basePropertyDeep=basePropertyDeep$2,baseProperty$1=_baseProperty,basePropertyDeep$1=_basePropertyDeep,isKey$1=_isKey,toKey$2=_toKey;function property$2(tt){return isKey$1(tt)?baseProperty$1(toKey$2(tt)):basePropertyDeep$1(tt)}var property_1=property$2,baseMatches$1=_baseMatches,baseMatchesProperty$1=_baseMatchesProperty,identity$2=identity_1,isArray$5=isArray_1,property$1=property_1;function baseIteratee$5(tt){return typeof tt=="function"?tt:tt==null?identity$2:typeof tt=="object"?isArray$5(tt)?baseMatchesProperty$1(tt[0],tt[1]):baseMatches$1(tt):property$1(tt)}var _baseIteratee=baseIteratee$5,isArrayLike$2=isArrayLike_1;function createBaseEach$2(tt,nt){return function(et,rt){if(et==null)return et;if(!isArrayLike$2(et))return tt(et,rt);for(var ot=et.length,at=nt?ot:-1,st=Object(et);(nt?at--:++at<ot)&&rt(st[at],at,st)!==!1;);return et}}var _createBaseEach=createBaseEach$2,baseForOwn$2=_baseForOwn,createBaseEach$1=_createBaseEach,baseEach$3=createBaseEach$1(baseForOwn$2),_baseEach=baseEach$3,baseEach$2=_baseEach,isArrayLike$1=isArrayLike_1;function baseMap$3(tt,nt){var et=-1,rt=isArrayLike$1(tt)?Array(tt.length):[];return baseEach$2(tt,function(ot,at,st){rt[++et]=nt(ot,at,st)}),rt}var _baseMap=baseMap$3,arrayMap$3=_arrayMap,baseIteratee$4=_baseIteratee,baseMap$2=_baseMap,isArray$4=isArray_1;function map$1(tt,nt){var et=isArray$4(tt)?arrayMap$3:baseMap$2;return et(tt,baseIteratee$4(nt))}var map_1=map$1;Object.defineProperty(flattenNames$1,"__esModule",{value:!0});flattenNames$1.flattenNames=void 0;var _isString2=isString_1,_isString3=_interopRequireDefault$7(_isString2),_forOwn2$2=forOwn_1,_forOwn3$2=_interopRequireDefault$7(_forOwn2$2),_isPlainObject2=isPlainObject_1,_isPlainObject3=_interopRequireDefault$7(_isPlainObject2),_map2=map_1,_map3=_interopRequireDefault$7(_map2);function _interopRequireDefault$7(tt){return tt&&tt.__esModule?tt:{default:tt}}var flattenNames=flattenNames$1.flattenNames=function tt(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],et=[];return(0,_map3.default)(nt,function(rt){Array.isArray(rt)?tt(rt).map(function(ot){return et.push(ot)}):(0,_isPlainObject3.default)(rt)?(0,_forOwn3$2.default)(rt,function(ot,at){ot===!0&&et.push(at),et.push(at+"-"+ot)}):(0,_isString3.default)(rt)&&et.push(rt)}),et};flattenNames$1.default=flattenNames;var mergeClasses$1={};Object.defineProperty(mergeClasses$1,"__esModule",{value:!0});mergeClasses$1.mergeClasses=void 0;var _forOwn2$1=forOwn_1,_forOwn3$1=_interopRequireDefault$6(_forOwn2$1),_cloneDeep2=cloneDeep_1,_cloneDeep3=_interopRequireDefault$6(_cloneDeep2),_extends$w=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt};function _interopRequireDefault$6(tt){return tt&&tt.__esModule?tt:{default:tt}}var mergeClasses=mergeClasses$1.mergeClasses=function tt(nt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=nt.default&&(0,_cloneDeep3.default)(nt.default)||{};return et.map(function(ot){var at=nt[ot];return at&&(0,_forOwn3$1.default)(at,function(st,ut){rt[ut]||(rt[ut]={}),rt[ut]=_extends$w({},rt[ut],at[ut])}),ot}),rt};mergeClasses$1.default=mergeClasses;var autoprefix$1={};Object.defineProperty(autoprefix$1,"__esModule",{value:!0});autoprefix$1.autoprefix=void 0;var _forOwn2=forOwn_1,_forOwn3=_interopRequireDefault$5(_forOwn2),_extends$v=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt};function _interopRequireDefault$5(tt){return tt&&tt.__esModule?tt:{default:tt}}var transforms={borderRadius:function tt(nt){return{msBorderRadius:nt,MozBorderRadius:nt,OBorderRadius:nt,WebkitBorderRadius:nt,borderRadius:nt}},boxShadow:function tt(nt){return{msBoxShadow:nt,MozBoxShadow:nt,OBoxShadow:nt,WebkitBoxShadow:nt,boxShadow:nt}},userSelect:function tt(nt){return{WebkitTouchCallout:nt,KhtmlUserSelect:nt,MozUserSelect:nt,msUserSelect:nt,WebkitUserSelect:nt,userSelect:nt}},flex:function tt(nt){return{WebkitBoxFlex:nt,MozBoxFlex:nt,WebkitFlex:nt,msFlex:nt,flex:nt}},flexBasis:function tt(nt){return{WebkitFlexBasis:nt,flexBasis:nt}},justifyContent:function tt(nt){return{WebkitJustifyContent:nt,justifyContent:nt}},transition:function tt(nt){return{msTransition:nt,MozTransition:nt,OTransition:nt,WebkitTransition:nt,transition:nt}},transform:function tt(nt){return{msTransform:nt,MozTransform:nt,OTransform:nt,WebkitTransform:nt,transform:nt}},absolute:function tt(nt){var et=nt&&nt.split(" ");return{position:"absolute",top:et&&et[0],right:et&&et[1],bottom:et&&et[2],left:et&&et[3]}},extend:function tt(nt,et){var rt=et[nt];return rt||{extend:nt}}},autoprefix=autoprefix$1.autoprefix=function tt(nt){var et={};return(0,_forOwn3.default)(nt,function(rt,ot){var at={};(0,_forOwn3.default)(rt,function(st,ut){var ct=transforms[ut];ct?at=_extends$v({},at,ct(st)):at[ut]=st}),et[ot]=at}),et};autoprefix$1.default=autoprefix;var hover$1={};Object.defineProperty(hover$1,"__esModule",{value:!0});hover$1.hover=void 0;var _extends$u=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_react$3=reactExports,_react2$3=_interopRequireDefault$4(_react$3);function _interopRequireDefault$4(tt){return tt&&tt.__esModule?tt:{default:tt}}function _classCallCheck$f(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$f(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$f(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var hover=hover$1.hover=function tt(nt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(rt){_inherits$f(ot,rt);function ot(){var at,st,ut,ct;_classCallCheck$f(this,ot);for(var pt=arguments.length,dt=Array(pt),ft=0;ft<pt;ft++)dt[ft]=arguments[ft];return ct=(st=(ut=_possibleConstructorReturn$f(this,(at=ot.__proto__||Object.getPrototypeOf(ot)).call.apply(at,[this].concat(dt))),ut),ut.state={hover:!1},ut.handleMouseOver=function(){return ut.setState({hover:!0})},ut.handleMouseOut=function(){return ut.setState({hover:!1})},ut.render=function(){return _react2$3.default.createElement(et,{onMouseOver:ut.handleMouseOver,onMouseOut:ut.handleMouseOut},_react2$3.default.createElement(nt,_extends$u({},ut.props,ut.state)))},st),_possibleConstructorReturn$f(ut,ct)}return ot}(_react2$3.default.Component)};hover$1.default=hover;var active$1={};Object.defineProperty(active$1,"__esModule",{value:!0});active$1.active=void 0;var _extends$t=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_react$2=reactExports,_react2$2=_interopRequireDefault$3(_react$2);function _interopRequireDefault$3(tt){return tt&&tt.__esModule?tt:{default:tt}}function _classCallCheck$e(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$e(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$e(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var active=active$1.active=function tt(nt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(rt){_inherits$e(ot,rt);function ot(){var at,st,ut,ct;_classCallCheck$e(this,ot);for(var pt=arguments.length,dt=Array(pt),ft=0;ft<pt;ft++)dt[ft]=arguments[ft];return ct=(st=(ut=_possibleConstructorReturn$e(this,(at=ot.__proto__||Object.getPrototypeOf(ot)).call.apply(at,[this].concat(dt))),ut),ut.state={active:!1},ut.handleMouseDown=function(){return ut.setState({active:!0})},ut.handleMouseUp=function(){return ut.setState({active:!1})},ut.render=function(){return _react2$2.default.createElement(et,{onMouseDown:ut.handleMouseDown,onMouseUp:ut.handleMouseUp},_react2$2.default.createElement(nt,_extends$t({},ut.props,ut.state)))},st),_possibleConstructorReturn$e(ut,ct)}return ot}(_react2$2.default.Component)};active$1.default=active;var loop={};Object.defineProperty(loop,"__esModule",{value:!0});var loopable=function tt(nt,et){var rt={},ot=function(st){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;rt[st]=ut};return nt===0&&ot("first-child"),nt===et-1&&ot("last-child"),(nt===0||nt%2===0)&&ot("even"),Math.abs(nt%2)===1&&ot("odd"),ot("nth-child",nt),rt};loop.default=loopable;Object.defineProperty(lib$2,"__esModule",{value:!0});lib$2.ReactCSS=lib$2.loop=lib$2.handleActive=handleHover=lib$2.handleHover=lib$2.hover=void 0;var _flattenNames=flattenNames$1,_flattenNames2=_interopRequireDefault$2(_flattenNames),_mergeClasses=mergeClasses$1,_mergeClasses2=_interopRequireDefault$2(_mergeClasses),_autoprefix=autoprefix$1,_autoprefix2=_interopRequireDefault$2(_autoprefix),_hover2=hover$1,_hover3=_interopRequireDefault$2(_hover2),_active=active$1,_active2=_interopRequireDefault$2(_active),_loop2=loop,_loop3=_interopRequireDefault$2(_loop2);function _interopRequireDefault$2(tt){return tt&&tt.__esModule?tt:{default:tt}}lib$2.hover=_hover3.default;var handleHover=lib$2.handleHover=_hover3.default;lib$2.handleActive=_active2.default;lib$2.loop=_loop3.default;var ReactCSS=lib$2.ReactCSS=function tt(nt){for(var et=arguments.length,rt=Array(et>1?et-1:0),ot=1;ot<et;ot++)rt[ot-1]=arguments[ot];var at=(0,_flattenNames2.default)(rt),st=(0,_mergeClasses2.default)(nt,at);return(0,_autoprefix2.default)(st)},_default$2=lib$2.default=ReactCSS,calculateChange$2=function tt(nt,et,rt,ot,at){var st=at.clientWidth,ut=at.clientHeight,ct=typeof nt.pageX=="number"?nt.pageX:nt.touches[0].pageX,pt=typeof nt.pageY=="number"?nt.pageY:nt.touches[0].pageY,dt=ct-(at.getBoundingClientRect().left+window.pageXOffset),ft=pt-(at.getBoundingClientRect().top+window.pageYOffset);if(rt==="vertical"){var bt=void 0;if(ft<0?bt=0:ft>ut?bt=1:bt=Math.round(ft*100/ut)/100,et.a!==bt)return{h:et.h,s:et.s,l:et.l,a:bt,source:"rgb"}}else{var ht=void 0;if(dt<0?ht=0:dt>st?ht=1:ht=Math.round(dt*100/st)/100,ot!==ht)return{h:et.h,s:et.s,l:et.l,a:ht,source:"rgb"}}return null},checkboardCache={},render=function tt(nt,et,rt,ot){if(typeof document>"u"&&!ot)return null;var at=ot?new ot:document.createElement("canvas");at.width=rt*2,at.height=rt*2;var st=at.getContext("2d");return st?(st.fillStyle=nt,st.fillRect(0,0,at.width,at.height),st.fillStyle=et,st.fillRect(0,0,rt,rt),st.translate(rt,rt),st.fillRect(0,0,rt,rt),at.toDataURL()):null},get$1=function tt(nt,et,rt,ot){var at=nt+"-"+et+"-"+rt+(ot?"-server":"");if(checkboardCache[at])return checkboardCache[at];var st=render(nt,et,rt,ot);return checkboardCache[at]=st,st},_extends$s=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},Checkboard=function tt(nt){var et=nt.white,rt=nt.grey,ot=nt.size,at=nt.renderers,st=nt.borderRadius,ut=nt.boxShadow,ct=nt.children,pt=_default$2({default:{grid:{borderRadius:st,boxShadow:ut,absolute:"0px 0px 0px 0px",background:"url("+get$1(et,rt,ot,at.canvas)+") center left"}}});return reactExports.isValidElement(ct)?React$1.cloneElement(ct,_extends$s({},ct.props,{style:_extends$s({},ct.props.style,pt.grid)})):React$1.createElement("div",{style:pt.grid})};Checkboard.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var _extends$r=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_createClass$d=function(){function tt(nt,et){for(var rt=0;rt<et.length;rt++){var ot=et[rt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(nt,ot.key,ot)}}return function(nt,et,rt){return et&&tt(nt.prototype,et),rt&&tt(nt,rt),nt}}();function _classCallCheck$d(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$d(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$d(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var Alpha=function(tt){_inherits$d(nt,tt);function nt(){var et,rt,ot,at;_classCallCheck$d(this,nt);for(var st=arguments.length,ut=Array(st),ct=0;ct<st;ct++)ut[ct]=arguments[ct];return at=(rt=(ot=_possibleConstructorReturn$d(this,(et=nt.__proto__||Object.getPrototypeOf(nt)).call.apply(et,[this].concat(ut))),ot),ot.handleChange=function(pt){var dt=calculateChange$2(pt,ot.props.hsl,ot.props.direction,ot.props.a,ot.container);dt&&typeof ot.props.onChange=="function"&&ot.props.onChange(dt,pt)},ot.handleMouseDown=function(pt){ot.handleChange(pt),window.addEventListener("mousemove",ot.handleChange),window.addEventListener("mouseup",ot.handleMouseUp)},ot.handleMouseUp=function(){ot.unbindEventListeners()},ot.unbindEventListeners=function(){window.removeEventListener("mousemove",ot.handleChange),window.removeEventListener("mouseup",ot.handleMouseUp)},rt),_possibleConstructorReturn$d(ot,at)}return _createClass$d(nt,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var rt=this,ot=this.props.rgb,at=_default$2({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+ot.r+","+ot.g+","+ot.b+`, 0) 0%,
684
684
  rgba(`+ot.r+","+ot.g+","+ot.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:ot.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+ot.r+","+ot.g+","+ot.b+`, 0) 0%,
685
685
  rgba(`+ot.r+","+ot.g+","+ot.b+", 1) 100%)"},pointer:{left:0,top:ot.a*100+"%"}},overwrite:_extends$r({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return React$1.createElement("div",{style:at.alpha},React$1.createElement("div",{style:at.checkboard},React$1.createElement(Checkboard,{renderers:this.props.renderers})),React$1.createElement("div",{style:at.gradient}),React$1.createElement("div",{style:at.container,ref:function(ut){return rt.container=ut},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},React$1.createElement("div",{style:at.pointer},this.props.pointer?React$1.createElement(this.props.pointer,this.props):React$1.createElement("div",{style:at.slider}))))}}]),nt}(reactExports.PureComponent||reactExports.Component),_createClass$c=function(){function tt(nt,et){for(var rt=0;rt<et.length;rt++){var ot=et[rt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(nt,ot.key,ot)}}return function(nt,et,rt){return et&&tt(nt.prototype,et),rt&&tt(nt,rt),nt}}();function _defineProperty$d(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}function _classCallCheck$c(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$c(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$c(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var DEFAULT_ARROW_OFFSET=1,UP_KEY_CODE=38,DOWN_KEY_CODE=40,VALID_KEY_CODES=[UP_KEY_CODE,DOWN_KEY_CODE],isValidKeyCode=function tt(nt){return VALID_KEY_CODES.indexOf(nt)>-1},getNumberValue=function tt(nt){return Number(String(nt).replace(/%/g,""))},idCounter=1,EditableInput=function(tt){_inherits$c(nt,tt);function nt(et){_classCallCheck$c(this,nt);var rt=_possibleConstructorReturn$c(this,(nt.__proto__||Object.getPrototypeOf(nt)).call(this));return rt.handleBlur=function(){rt.state.blurValue&&rt.setState({value:rt.state.blurValue,blurValue:null})},rt.handleChange=function(ot){rt.setUpdatedValue(ot.target.value,ot)},rt.handleKeyDown=function(ot){var at=getNumberValue(ot.target.value);if(!isNaN(at)&&isValidKeyCode(ot.keyCode)){var st=rt.getArrowOffset(),ut=ot.keyCode===UP_KEY_CODE?at+st:at-st;rt.setUpdatedValue(ut,ot)}},rt.handleDrag=function(ot){if(rt.props.dragLabel){var at=Math.round(rt.props.value+ot.movementX);at>=0&&at<=rt.props.dragMax&&rt.props.onChange&&rt.props.onChange(rt.getValueObjectWithLabel(at),ot)}},rt.handleMouseDown=function(ot){rt.props.dragLabel&&(ot.preventDefault(),rt.handleDrag(ot),window.addEventListener("mousemove",rt.handleDrag),window.addEventListener("mouseup",rt.handleMouseUp))},rt.handleMouseUp=function(){rt.unbindEventListeners()},rt.unbindEventListeners=function(){window.removeEventListener("mousemove",rt.handleDrag),window.removeEventListener("mouseup",rt.handleMouseUp)},rt.state={value:String(et.value).toUpperCase(),blurValue:String(et.value).toUpperCase()},rt.inputId="rc-editable-input-"+idCounter++,rt}return _createClass$c(nt,[{key:"componentDidUpdate",value:function(rt,ot){this.props.value!==this.state.value&&(rt.value!==this.props.value||ot.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(rt){return _defineProperty$d({},this.props.label,rt)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||DEFAULT_ARROW_OFFSET}},{key:"setUpdatedValue",value:function(rt,ot){var at=this.props.label?this.getValueObjectWithLabel(rt):rt;this.props.onChange&&this.props.onChange(at,ot),this.setState({value:rt})}},{key:"render",value:function(){var rt=this,ot=_default$2({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return React$1.createElement("div",{style:ot.wrap},React$1.createElement("input",{id:this.inputId,style:ot.input,ref:function(st){return rt.input=st},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?React$1.createElement("label",{htmlFor:this.inputId,style:ot.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),nt}(reactExports.PureComponent||reactExports.Component),calculateChange$1=function tt(nt,et,rt,ot){var at=ot.clientWidth,st=ot.clientHeight,ut=typeof nt.pageX=="number"?nt.pageX:nt.touches[0].pageX,ct=typeof nt.pageY=="number"?nt.pageY:nt.touches[0].pageY,pt=ut-(ot.getBoundingClientRect().left+window.pageXOffset),dt=ct-(ot.getBoundingClientRect().top+window.pageYOffset);if(et==="vertical"){var ft=void 0;if(dt<0)ft=359;else if(dt>st)ft=0;else{var bt=-(dt*100/st)+100;ft=360*bt/100}if(rt.h!==ft)return{h:ft,s:rt.s,l:rt.l,a:rt.a,source:"hsl"}}else{var ht=void 0;if(pt<0)ht=0;else if(pt>at)ht=359;else{var Mt=pt*100/at;ht=360*Mt/100}if(rt.h!==ht)return{h:ht,s:rt.s,l:rt.l,a:rt.a,source:"hsl"}}return null},_createClass$b=function(){function tt(nt,et){for(var rt=0;rt<et.length;rt++){var ot=et[rt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(nt,ot.key,ot)}}return function(nt,et,rt){return et&&tt(nt.prototype,et),rt&&tt(nt,rt),nt}}();function _classCallCheck$b(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$b(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$b(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var Hue=function(tt){_inherits$b(nt,tt);function nt(){var et,rt,ot,at;_classCallCheck$b(this,nt);for(var st=arguments.length,ut=Array(st),ct=0;ct<st;ct++)ut[ct]=arguments[ct];return at=(rt=(ot=_possibleConstructorReturn$b(this,(et=nt.__proto__||Object.getPrototypeOf(nt)).call.apply(et,[this].concat(ut))),ot),ot.handleChange=function(pt){var dt=calculateChange$1(pt,ot.props.direction,ot.props.hsl,ot.container);dt&&typeof ot.props.onChange=="function"&&ot.props.onChange(dt,pt)},ot.handleMouseDown=function(pt){ot.handleChange(pt),window.addEventListener("mousemove",ot.handleChange),window.addEventListener("mouseup",ot.handleMouseUp)},ot.handleMouseUp=function(){ot.unbindEventListeners()},rt),_possibleConstructorReturn$b(ot,at)}return _createClass$b(nt,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var rt=this,ot=this.props.direction,at=ot===void 0?"horizontal":ot,st=_default$2({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:at==="vertical"});return React$1.createElement("div",{style:st.hue},React$1.createElement("div",{className:"hue-"+at,style:st.container,ref:function(ct){return rt.container=ct},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},React$1.createElement("style",null,`
686
686
  .hue-horizontal {
@@ -706,7 +706,7 @@ For more troubleshooting help, please see the [Streamlit Component docs](${COMPO
706
706
  background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
707
707
  background: linear-gradient(to top, #000, rgba(0,0,0,0));
708
708
  }
709
- `),React$1.createElement("div",{style:dt.white,className:"saturation-white"},React$1.createElement("div",{style:dt.black,className:"saturation-black"}),React$1.createElement("div",{style:dt.pointer},this.props.pointer?React$1.createElement(this.props.pointer,this.props):React$1.createElement("div",{style:dt.circle}))))}}]),nt}(reactExports.PureComponent||reactExports.Component);function arrayEach(tt,nt){for(var et=-1,rt=tt==null?0:tt.length;++et<rt&&nt(tt[et],et,tt)!==!1;);return tt}var nativeKeys=overArg(Object.keys,Object),objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function baseKeys(tt){if(!isPrototype(tt))return nativeKeys(tt);var nt=[];for(var et in Object(tt))hasOwnProperty$4.call(tt,et)&&et!="constructor"&&nt.push(et);return nt}function keys(tt){return isArrayLike(tt)?arrayLikeKeys(tt):baseKeys(tt)}function baseForOwn$1(tt,nt){return tt&&baseFor(tt,nt,keys)}function createBaseEach(tt,nt){return function(et,rt){if(et==null)return et;if(!isArrayLike(et))return tt(et,rt);for(var ot=et.length,at=-1,st=Object(et);++at<ot&&rt(st[at],at,st)!==!1;);return et}}var baseEach$1=createBaseEach(baseForOwn$1);function castFunction(tt){return typeof tt=="function"?tt:identity$1}function forEach$1(tt,nt){var et=isArray$3(tt)?arrayEach:baseEach$1;return et(tt,castFunction(nt))}function _typeof$7(tt){"@babel/helpers - typeof";return _typeof$7=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},_typeof$7(tt)}var trimLeft=/^\s+/,trimRight=/\s+$/;function tinycolor(tt,nt){if(tt=tt||"",nt=nt||{},tt instanceof tinycolor)return tt;if(!(this instanceof tinycolor))return new tinycolor(tt,nt);var et=inputToRGB(tt);this._originalInput=tt,this._r=et.r,this._g=et.g,this._b=et.b,this._a=et.a,this._roundA=Math.round(100*this._a)/100,this._format=nt.format||et.format,this._gradientType=nt.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=et.ok}tinycolor.prototype={isDark:function tt(){return this.getBrightness()<128},isLight:function tt(){return!this.isDark()},isValid:function tt(){return this._ok},getOriginalInput:function tt(){return this._originalInput},getFormat:function tt(){return this._format},getAlpha:function tt(){return this._a},getBrightness:function tt(){var nt=this.toRgb();return(nt.r*299+nt.g*587+nt.b*114)/1e3},getLuminance:function tt(){var nt=this.toRgb(),et,rt,ot,at,st,ut;return et=nt.r/255,rt=nt.g/255,ot=nt.b/255,et<=.03928?at=et/12.92:at=Math.pow((et+.055)/1.055,2.4),rt<=.03928?st=rt/12.92:st=Math.pow((rt+.055)/1.055,2.4),ot<=.03928?ut=ot/12.92:ut=Math.pow((ot+.055)/1.055,2.4),.2126*at+.7152*st+.0722*ut},setAlpha:function tt(nt){return this._a=boundAlpha(nt),this._roundA=Math.round(100*this._a)/100,this},toHsv:function tt(){var nt=rgbToHsv(this._r,this._g,this._b);return{h:nt.h*360,s:nt.s,v:nt.v,a:this._a}},toHsvString:function tt(){var nt=rgbToHsv(this._r,this._g,this._b),et=Math.round(nt.h*360),rt=Math.round(nt.s*100),ot=Math.round(nt.v*100);return this._a==1?"hsv("+et+", "+rt+"%, "+ot+"%)":"hsva("+et+", "+rt+"%, "+ot+"%, "+this._roundA+")"},toHsl:function tt(){var nt=rgbToHsl(this._r,this._g,this._b);return{h:nt.h*360,s:nt.s,l:nt.l,a:this._a}},toHslString:function tt(){var nt=rgbToHsl(this._r,this._g,this._b),et=Math.round(nt.h*360),rt=Math.round(nt.s*100),ot=Math.round(nt.l*100);return this._a==1?"hsl("+et+", "+rt+"%, "+ot+"%)":"hsla("+et+", "+rt+"%, "+ot+"%, "+this._roundA+")"},toHex:function tt(nt){return rgbToHex(this._r,this._g,this._b,nt)},toHexString:function tt(nt){return"#"+this.toHex(nt)},toHex8:function tt(nt){return rgbaToHex(this._r,this._g,this._b,this._a,nt)},toHex8String:function tt(nt){return"#"+this.toHex8(nt)},toRgb:function tt(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function tt(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function tt(){return{r:Math.round(bound01(this._r,255)*100)+"%",g:Math.round(bound01(this._g,255)*100)+"%",b:Math.round(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function tt(){return this._a==1?"rgb("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%)":"rgba("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function tt(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function tt(nt){var et="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),rt=et,ot=this._gradientType?"GradientType = 1, ":"";if(nt){var at=tinycolor(nt);rt="#"+rgbaToArgbHex(at._r,at._g,at._b,at._a)}return"progid:DXImageTransform.Microsoft.gradient("+ot+"startColorstr="+et+",endColorstr="+rt+")"},toString:function tt(nt){var et=!!nt;nt=nt||this._format;var rt=!1,ot=this._a<1&&this._a>=0,at=!et&&ot&&(nt==="hex"||nt==="hex6"||nt==="hex3"||nt==="hex4"||nt==="hex8"||nt==="name");return at?nt==="name"&&this._a===0?this.toName():this.toRgbString():(nt==="rgb"&&(rt=this.toRgbString()),nt==="prgb"&&(rt=this.toPercentageRgbString()),(nt==="hex"||nt==="hex6")&&(rt=this.toHexString()),nt==="hex3"&&(rt=this.toHexString(!0)),nt==="hex4"&&(rt=this.toHex8String(!0)),nt==="hex8"&&(rt=this.toHex8String()),nt==="name"&&(rt=this.toName()),nt==="hsl"&&(rt=this.toHslString()),nt==="hsv"&&(rt=this.toHsvString()),rt||this.toHexString())},clone:function tt(){return tinycolor(this.toString())},_applyModification:function tt(nt,et){var rt=nt.apply(null,[this].concat([].slice.call(et)));return this._r=rt._r,this._g=rt._g,this._b=rt._b,this.setAlpha(rt._a),this},lighten:function tt(){return this._applyModification(_lighten,arguments)},brighten:function tt(){return this._applyModification(_brighten,arguments)},darken:function tt(){return this._applyModification(_darken,arguments)},desaturate:function tt(){return this._applyModification(_desaturate,arguments)},saturate:function tt(){return this._applyModification(_saturate,arguments)},greyscale:function tt(){return this._applyModification(_greyscale,arguments)},spin:function tt(){return this._applyModification(_spin,arguments)},_applyCombination:function tt(nt,et){return nt.apply(null,[this].concat([].slice.call(et)))},analogous:function tt(){return this._applyCombination(_analogous,arguments)},complement:function tt(){return this._applyCombination(_complement,arguments)},monochromatic:function tt(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function tt(){return this._applyCombination(_splitcomplement,arguments)},triad:function tt(){return this._applyCombination(polyad,[3])},tetrad:function tt(){return this._applyCombination(polyad,[4])}};tinycolor.fromRatio=function(tt,nt){if(_typeof$7(tt)=="object"){var et={};for(var rt in tt)tt.hasOwnProperty(rt)&&(rt==="a"?et[rt]=tt[rt]:et[rt]=convertToPercentage(tt[rt]));tt=et}return tinycolor(tt,nt)};function inputToRGB(tt){var nt={r:0,g:0,b:0},et=1,rt=null,ot=null,at=null,st=!1,ut=!1;return typeof tt=="string"&&(tt=stringInputToObject(tt)),_typeof$7(tt)=="object"&&(isValidCSSUnit(tt.r)&&isValidCSSUnit(tt.g)&&isValidCSSUnit(tt.b)?(nt=rgbToRgb(tt.r,tt.g,tt.b),st=!0,ut=String(tt.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(tt.h)&&isValidCSSUnit(tt.s)&&isValidCSSUnit(tt.v)?(rt=convertToPercentage(tt.s),ot=convertToPercentage(tt.v),nt=hsvToRgb(tt.h,rt,ot),st=!0,ut="hsv"):isValidCSSUnit(tt.h)&&isValidCSSUnit(tt.s)&&isValidCSSUnit(tt.l)&&(rt=convertToPercentage(tt.s),at=convertToPercentage(tt.l),nt=hslToRgb(tt.h,rt,at),st=!0,ut="hsl"),tt.hasOwnProperty("a")&&(et=tt.a)),et=boundAlpha(et),{ok:st,format:tt.format||ut,r:Math.min(255,Math.max(nt.r,0)),g:Math.min(255,Math.max(nt.g,0)),b:Math.min(255,Math.max(nt.b,0)),a:et}}function rgbToRgb(tt,nt,et){return{r:bound01(tt,255)*255,g:bound01(nt,255)*255,b:bound01(et,255)*255}}function rgbToHsl(tt,nt,et){tt=bound01(tt,255),nt=bound01(nt,255),et=bound01(et,255);var rt=Math.max(tt,nt,et),ot=Math.min(tt,nt,et),at,st,ut=(rt+ot)/2;if(rt==ot)at=st=0;else{var ct=rt-ot;switch(st=ut>.5?ct/(2-rt-ot):ct/(rt+ot),rt){case tt:at=(nt-et)/ct+(nt<et?6:0);break;case nt:at=(et-tt)/ct+2;break;case et:at=(tt-nt)/ct+4;break}at/=6}return{h:at,s:st,l:ut}}function hslToRgb(tt,nt,et){var rt,ot,at;tt=bound01(tt,360),nt=bound01(nt,100),et=bound01(et,100);function st(pt,dt,ft){return ft<0&&(ft+=1),ft>1&&(ft-=1),ft<1/6?pt+(dt-pt)*6*ft:ft<1/2?dt:ft<2/3?pt+(dt-pt)*(2/3-ft)*6:pt}if(nt===0)rt=ot=at=et;else{var ut=et<.5?et*(1+nt):et+nt-et*nt,ct=2*et-ut;rt=st(ct,ut,tt+1/3),ot=st(ct,ut,tt),at=st(ct,ut,tt-1/3)}return{r:rt*255,g:ot*255,b:at*255}}function rgbToHsv(tt,nt,et){tt=bound01(tt,255),nt=bound01(nt,255),et=bound01(et,255);var rt=Math.max(tt,nt,et),ot=Math.min(tt,nt,et),at,st,ut=rt,ct=rt-ot;if(st=rt===0?0:ct/rt,rt==ot)at=0;else{switch(rt){case tt:at=(nt-et)/ct+(nt<et?6:0);break;case nt:at=(et-tt)/ct+2;break;case et:at=(tt-nt)/ct+4;break}at/=6}return{h:at,s:st,v:ut}}function hsvToRgb(tt,nt,et){tt=bound01(tt,360)*6,nt=bound01(nt,100),et=bound01(et,100);var rt=Math.floor(tt),ot=tt-rt,at=et*(1-nt),st=et*(1-ot*nt),ut=et*(1-(1-ot)*nt),ct=rt%6,pt=[et,st,at,at,ut,et][ct],dt=[ut,et,et,st,at,at][ct],ft=[at,at,ut,et,et,st][ct];return{r:pt*255,g:dt*255,b:ft*255}}function rgbToHex(tt,nt,et,rt){var ot=[pad2(Math.round(tt).toString(16)),pad2(Math.round(nt).toString(16)),pad2(Math.round(et).toString(16))];return rt&&ot[0].charAt(0)==ot[0].charAt(1)&&ot[1].charAt(0)==ot[1].charAt(1)&&ot[2].charAt(0)==ot[2].charAt(1)?ot[0].charAt(0)+ot[1].charAt(0)+ot[2].charAt(0):ot.join("")}function rgbaToHex(tt,nt,et,rt,ot){var at=[pad2(Math.round(tt).toString(16)),pad2(Math.round(nt).toString(16)),pad2(Math.round(et).toString(16)),pad2(convertDecimalToHex(rt))];return ot&&at[0].charAt(0)==at[0].charAt(1)&&at[1].charAt(0)==at[1].charAt(1)&&at[2].charAt(0)==at[2].charAt(1)&&at[3].charAt(0)==at[3].charAt(1)?at[0].charAt(0)+at[1].charAt(0)+at[2].charAt(0)+at[3].charAt(0):at.join("")}function rgbaToArgbHex(tt,nt,et,rt){var ot=[pad2(convertDecimalToHex(rt)),pad2(Math.round(tt).toString(16)),pad2(Math.round(nt).toString(16)),pad2(Math.round(et).toString(16))];return ot.join("")}tinycolor.equals=function(tt,nt){return!tt||!nt?!1:tinycolor(tt).toRgbString()==tinycolor(nt).toRgbString()};tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function _desaturate(tt,nt){nt=nt===0?0:nt||10;var et=tinycolor(tt).toHsl();return et.s-=nt/100,et.s=clamp01(et.s),tinycolor(et)}function _saturate(tt,nt){nt=nt===0?0:nt||10;var et=tinycolor(tt).toHsl();return et.s+=nt/100,et.s=clamp01(et.s),tinycolor(et)}function _greyscale(tt){return tinycolor(tt).desaturate(100)}function _lighten(tt,nt){nt=nt===0?0:nt||10;var et=tinycolor(tt).toHsl();return et.l+=nt/100,et.l=clamp01(et.l),tinycolor(et)}function _brighten(tt,nt){nt=nt===0?0:nt||10;var et=tinycolor(tt).toRgb();return et.r=Math.max(0,Math.min(255,et.r-Math.round(255*-(nt/100)))),et.g=Math.max(0,Math.min(255,et.g-Math.round(255*-(nt/100)))),et.b=Math.max(0,Math.min(255,et.b-Math.round(255*-(nt/100)))),tinycolor(et)}function _darken(tt,nt){nt=nt===0?0:nt||10;var et=tinycolor(tt).toHsl();return et.l-=nt/100,et.l=clamp01(et.l),tinycolor(et)}function _spin(tt,nt){var et=tinycolor(tt).toHsl(),rt=(et.h+nt)%360;return et.h=rt<0?360+rt:rt,tinycolor(et)}function _complement(tt){var nt=tinycolor(tt).toHsl();return nt.h=(nt.h+180)%360,tinycolor(nt)}function polyad(tt,nt){if(isNaN(nt)||nt<=0)throw new Error("Argument to polyad must be a positive number");for(var et=tinycolor(tt).toHsl(),rt=[tinycolor(tt)],ot=360/nt,at=1;at<nt;at++)rt.push(tinycolor({h:(et.h+at*ot)%360,s:et.s,l:et.l}));return rt}function _splitcomplement(tt){var nt=tinycolor(tt).toHsl(),et=nt.h;return[tinycolor(tt),tinycolor({h:(et+72)%360,s:nt.s,l:nt.l}),tinycolor({h:(et+216)%360,s:nt.s,l:nt.l})]}function _analogous(tt,nt,et){nt=nt||6,et=et||30;var rt=tinycolor(tt).toHsl(),ot=360/et,at=[tinycolor(tt)];for(rt.h=(rt.h-(ot*nt>>1)+720)%360;--nt;)rt.h=(rt.h+ot)%360,at.push(tinycolor(rt));return at}function _monochromatic(tt,nt){nt=nt||6;for(var et=tinycolor(tt).toHsv(),rt=et.h,ot=et.s,at=et.v,st=[],ut=1/nt;nt--;)st.push(tinycolor({h:rt,s:ot,v:at})),at=(at+ut)%1;return st}tinycolor.mix=function(tt,nt,et){et=et===0?0:et||50;var rt=tinycolor(tt).toRgb(),ot=tinycolor(nt).toRgb(),at=et/100,st={r:(ot.r-rt.r)*at+rt.r,g:(ot.g-rt.g)*at+rt.g,b:(ot.b-rt.b)*at+rt.b,a:(ot.a-rt.a)*at+rt.a};return tinycolor(st)};tinycolor.readability=function(tt,nt){var et=tinycolor(tt),rt=tinycolor(nt);return(Math.max(et.getLuminance(),rt.getLuminance())+.05)/(Math.min(et.getLuminance(),rt.getLuminance())+.05)};tinycolor.isReadable=function(tt,nt,et){var rt=tinycolor.readability(tt,nt),ot,at;switch(at=!1,ot=validateWCAG2Parms(et),ot.level+ot.size){case"AAsmall":case"AAAlarge":at=rt>=4.5;break;case"AAlarge":at=rt>=3;break;case"AAAsmall":at=rt>=7;break}return at};tinycolor.mostReadable=function(tt,nt,et){var rt=null,ot=0,at,st,ut,ct;et=et||{},st=et.includeFallbackColors,ut=et.level,ct=et.size;for(var pt=0;pt<nt.length;pt++)at=tinycolor.readability(tt,nt[pt]),at>ot&&(ot=at,rt=tinycolor(nt[pt]));return tinycolor.isReadable(tt,rt,{level:ut,size:ct})||!st?rt:(et.includeFallbackColors=!1,tinycolor.mostReadable(tt,["#fff","#000"],et))};var names=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hexNames=tinycolor.hexNames=flip(names);function flip(tt){var nt={};for(var et in tt)tt.hasOwnProperty(et)&&(nt[tt[et]]=et);return nt}function boundAlpha(tt){return tt=parseFloat(tt),(isNaN(tt)||tt<0||tt>1)&&(tt=1),tt}function bound01(tt,nt){isOnePointZero(tt)&&(tt="100%");var et=isPercentage(tt);return tt=Math.min(nt,Math.max(0,parseFloat(tt))),et&&(tt=parseInt(tt*nt,10)/100),Math.abs(tt-nt)<1e-6?1:tt%nt/parseFloat(nt)}function clamp01(tt){return Math.min(1,Math.max(0,tt))}function parseIntFromHex(tt){return parseInt(tt,16)}function isOnePointZero(tt){return typeof tt=="string"&&tt.indexOf(".")!=-1&&parseFloat(tt)===1}function isPercentage(tt){return typeof tt=="string"&&tt.indexOf("%")!=-1}function pad2(tt){return tt.length==1?"0"+tt:""+tt}function convertToPercentage(tt){return tt<=1&&(tt=tt*100+"%"),tt}function convertDecimalToHex(tt){return Math.round(parseFloat(tt)*255).toString(16)}function convertHexToDecimal(tt){return parseIntFromHex(tt)/255}var matchers=function(){var tt="[-\\+]?\\d+%?",nt="[-\\+]?\\d*\\.\\d+%?",et="(?:"+nt+")|(?:"+tt+")",rt="[\\s|\\(]+("+et+")[,|\\s]+("+et+")[,|\\s]+("+et+")\\s*\\)?",ot="[\\s|\\(]+("+et+")[,|\\s]+("+et+")[,|\\s]+("+et+")[,|\\s]+("+et+")\\s*\\)?";return{CSS_UNIT:new RegExp(et),rgb:new RegExp("rgb"+rt),rgba:new RegExp("rgba"+ot),hsl:new RegExp("hsl"+rt),hsla:new RegExp("hsla"+ot),hsv:new RegExp("hsv"+rt),hsva:new RegExp("hsva"+ot),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function isValidCSSUnit(tt){return!!matchers.CSS_UNIT.exec(tt)}function stringInputToObject(tt){tt=tt.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var nt=!1;if(names[tt])tt=names[tt],nt=!0;else if(tt=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var et;return(et=matchers.rgb.exec(tt))?{r:et[1],g:et[2],b:et[3]}:(et=matchers.rgba.exec(tt))?{r:et[1],g:et[2],b:et[3],a:et[4]}:(et=matchers.hsl.exec(tt))?{h:et[1],s:et[2],l:et[3]}:(et=matchers.hsla.exec(tt))?{h:et[1],s:et[2],l:et[3],a:et[4]}:(et=matchers.hsv.exec(tt))?{h:et[1],s:et[2],v:et[3]}:(et=matchers.hsva.exec(tt))?{h:et[1],s:et[2],v:et[3],a:et[4]}:(et=matchers.hex8.exec(tt))?{r:parseIntFromHex(et[1]),g:parseIntFromHex(et[2]),b:parseIntFromHex(et[3]),a:convertHexToDecimal(et[4]),format:nt?"name":"hex8"}:(et=matchers.hex6.exec(tt))?{r:parseIntFromHex(et[1]),g:parseIntFromHex(et[2]),b:parseIntFromHex(et[3]),format:nt?"name":"hex"}:(et=matchers.hex4.exec(tt))?{r:parseIntFromHex(et[1]+""+et[1]),g:parseIntFromHex(et[2]+""+et[2]),b:parseIntFromHex(et[3]+""+et[3]),a:convertHexToDecimal(et[4]+""+et[4]),format:nt?"name":"hex8"}:(et=matchers.hex3.exec(tt))?{r:parseIntFromHex(et[1]+""+et[1]),g:parseIntFromHex(et[2]+""+et[2]),b:parseIntFromHex(et[3]+""+et[3]),format:nt?"name":"hex"}:!1}function validateWCAG2Parms(tt){var nt,et;return tt=tt||{level:"AA",size:"small"},nt=(tt.level||"AA").toUpperCase(),et=(tt.size||"small").toLowerCase(),nt!=="AA"&&nt!=="AAA"&&(nt="AA"),et!=="small"&&et!=="large"&&(et="small"),{level:nt,size:et}}var simpleCheckForValidColor=function tt(nt){var et=["r","g","b","a","h","s","l","v"],rt=0,ot=0;return forEach$1(et,function(at){if(nt[at]&&(rt+=1,isNaN(nt[at])||(ot+=1),at==="s"||at==="l")){var st=/^\d+%$/;st.test(nt[at])&&(ot+=1)}}),rt===ot?nt:!1},toState=function tt(nt,et){var rt=nt.hex?tinycolor(nt.hex):tinycolor(nt),ot=rt.toHsl(),at=rt.toHsv(),st=rt.toRgb(),ut=rt.toHex();ot.s===0&&(ot.h=et||0,at.h=et||0);var ct=ut==="000000"&&st.a===0;return{hsl:ot,hex:ct?"transparent":"#"+ut,rgb:st,hsv:at,oldHue:nt.h||et||ot.h,source:nt.source}},isValidHex=function tt(nt){if(nt==="transparent")return!0;var et=String(nt).charAt(0)==="#"?1:0;return nt.length!==4+et&&nt.length<7+et&&tinycolor(nt).isValid()},getContrastingColor=function tt(nt){if(!nt)return"#fff";var et=toState(nt);if(et.hex==="transparent")return"rgba(0,0,0,0.4)";var rt=(et.rgb.r*299+et.rgb.g*587+et.rgb.b*114)/1e3;return rt>=128?"#000":"#fff"},isvalidColorString=function tt(nt,et){var rt=nt.replace("°","");return tinycolor(et+" ("+rt+")")._ok},_extends$q=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_createClass$9=function(){function tt(nt,et){for(var rt=0;rt<et.length;rt++){var ot=et[rt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(nt,ot.key,ot)}}return function(nt,et,rt){return et&&tt(nt.prototype,et),rt&&tt(nt,rt),nt}}();function _classCallCheck$9(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$9(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$9(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var ColorWrap=function tt(nt){var et=function(rt){_inherits$9(ot,rt);function ot(at){_classCallCheck$9(this,ot);var st=_possibleConstructorReturn$9(this,(ot.__proto__||Object.getPrototypeOf(ot)).call(this));return st.handleChange=function(ut,ct){var pt=simpleCheckForValidColor(ut);if(pt){var dt=toState(ut,ut.h||st.state.oldHue);st.setState(dt),st.props.onChangeComplete&&st.debounce(st.props.onChangeComplete,dt,ct),st.props.onChange&&st.props.onChange(dt,ct)}},st.handleSwatchHover=function(ut,ct){var pt=simpleCheckForValidColor(ut);if(pt){var dt=toState(ut,ut.h||st.state.oldHue);st.props.onSwatchHover&&st.props.onSwatchHover(dt,ct)}},st.state=_extends$q({},toState(at.color,0)),st.debounce=debounce(function(ut,ct,pt){ut(ct,pt)},100),st}return _createClass$9(ot,[{key:"render",value:function(){var st={};return this.props.onSwatchHover&&(st.onSwatchHover=this.handleSwatchHover),React$1.createElement(nt,_extends$q({},this.props,this.state,{onChange:this.handleChange},st))}}],[{key:"getDerivedStateFromProps",value:function(st,ut){return _extends$q({},toState(st.color,ut.oldHue))}}]),ot}(reactExports.PureComponent||reactExports.Component);return et.propTypes=_extends$q({},nt.propTypes),et.defaultProps=_extends$q({},nt.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),et},_extends$p=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_createClass$8=function(){function tt(nt,et){for(var rt=0;rt<et.length;rt++){var ot=et[rt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(nt,ot.key,ot)}}return function(nt,et,rt){return et&&tt(nt.prototype,et),rt&&tt(nt,rt),nt}}();function _classCallCheck$8(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$8(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$8(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var handleFocus=function tt(nt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(rt){_inherits$8(ot,rt);function ot(){var at,st,ut,ct;_classCallCheck$8(this,ot);for(var pt=arguments.length,dt=Array(pt),ft=0;ft<pt;ft++)dt[ft]=arguments[ft];return ct=(st=(ut=_possibleConstructorReturn$8(this,(at=ot.__proto__||Object.getPrototypeOf(ot)).call.apply(at,[this].concat(dt))),ut),ut.state={focus:!1},ut.handleFocus=function(){return ut.setState({focus:!0})},ut.handleBlur=function(){return ut.setState({focus:!1})},st),_possibleConstructorReturn$8(ut,ct)}return _createClass$8(ot,[{key:"render",value:function(){return React$1.createElement(et,{onFocus:this.handleFocus,onBlur:this.handleBlur},React$1.createElement(nt,_extends$p({},this.props,this.state)))}}]),ot}(React$1.Component)},_extends$o=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},ENTER=13,Swatch=function tt(nt){var et=nt.color,rt=nt.style,ot=nt.onClick,at=ot===void 0?function(){}:ot,st=nt.onHover,ut=nt.title,ct=ut===void 0?et:ut,pt=nt.children,dt=nt.focus,ft=nt.focusStyle,bt=ft===void 0?{}:ft,ht=et==="transparent",Mt=_default$2({default:{swatch:_extends$o({background:et,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},rt,dt?bt:{})}}),mt=function(At){return at(et,At)},Ot=function(At){return At.keyCode===ENTER&&at(et,At)},zt=function(At){return st(et,At)},yt={};return st&&(yt.onMouseOver=zt),React$1.createElement("div",_extends$o({style:Mt.swatch,onClick:mt,title:ct,tabIndex:0,onKeyDown:Ot},yt),pt,ht&&React$1.createElement(Checkboard,{borderRadius:Mt.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const Swatch$1=handleFocus(Swatch);var AlphaPointer=function tt(nt){var et=nt.direction,rt=_default$2({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:et==="vertical"});return React$1.createElement("div",{style:rt.picker})},_extends$n=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},AlphaPicker=function tt(nt){var et=nt.rgb,rt=nt.hsl,ot=nt.width,at=nt.height,st=nt.onChange,ut=nt.direction,ct=nt.style,pt=nt.renderers,dt=nt.pointer,ft=nt.className,bt=ft===void 0?"":ft,ht=_default$2({default:{picker:{position:"relative",width:ot,height:at},alpha:{radius:"2px",style:ct}}});return React$1.createElement("div",{style:ht.picker,className:"alpha-picker "+bt},React$1.createElement(Alpha,_extends$n({},ht.alpha,{rgb:et,hsl:rt,pointer:dt,renderers:pt,onChange:st,direction:ut})))};AlphaPicker.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:AlphaPointer};ColorWrap(AlphaPicker);function arrayMap$2(tt,nt){for(var et=-1,rt=tt==null?0:tt.length,ot=Array(rt);++et<rt;)ot[et]=nt(tt[et],et,tt);return ot}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(tt){return this.__data__.set(tt,HASH_UNDEFINED),this}function setCacheHas(tt){return this.__data__.has(tt)}function SetCache$1(tt){var nt=-1,et=tt==null?0:tt.length;for(this.__data__=new MapCache;++nt<et;)this.add(tt[nt])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;function arraySome(tt,nt){for(var et=-1,rt=tt==null?0:tt.length;++et<rt;)if(nt(tt[et],et,tt))return!0;return!1}function cacheHas$1(tt,nt){return tt.has(nt)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(tt,nt,et,rt,ot,at){var st=et&COMPARE_PARTIAL_FLAG$5,ut=tt.length,ct=nt.length;if(ut!=ct&&!(st&&ct>ut))return!1;var pt=at.get(tt),dt=at.get(nt);if(pt&&dt)return pt==nt&&dt==tt;var ft=-1,bt=!0,ht=et&COMPARE_UNORDERED_FLAG$3?new SetCache$1:void 0;for(at.set(tt,nt),at.set(nt,tt);++ft<ut;){var Mt=tt[ft],mt=nt[ft];if(rt)var Ot=st?rt(mt,Mt,ft,nt,tt,at):rt(Mt,mt,ft,tt,nt,at);if(Ot!==void 0){if(Ot)continue;bt=!1;break}if(ht){if(!arraySome(nt,function(zt,yt){if(!cacheHas$1(ht,yt)&&(Mt===zt||ot(Mt,zt,et,rt,at)))return ht.push(yt)})){bt=!1;break}}else if(!(Mt===mt||ot(Mt,mt,et,rt,at))){bt=!1;break}}return at.delete(tt),at.delete(nt),bt}function mapToArray(tt){var nt=-1,et=Array(tt.size);return tt.forEach(function(rt,ot){et[++nt]=[ot,rt]}),et}function setToArray(tt){var nt=-1,et=Array(tt.size);return tt.forEach(function(rt){et[++nt]=rt}),et}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag$1="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",symbolProto$1=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0;function equalByTag(tt,nt,et,rt,ot,at,st){switch(et){case dataViewTag$1:if(tt.byteLength!=nt.byteLength||tt.byteOffset!=nt.byteOffset)return!1;tt=tt.buffer,nt=nt.buffer;case arrayBufferTag:return!(tt.byteLength!=nt.byteLength||!at(new Uint8Array$1(tt),new Uint8Array$1(nt)));case boolTag:case dateTag:case numberTag:return eq(+tt,+nt);case errorTag:return tt.name==nt.name&&tt.message==nt.message;case regexpTag:case stringTag:return tt==nt+"";case mapTag$1:var ut=mapToArray;case setTag$1:var ct=rt&COMPARE_PARTIAL_FLAG$4;if(ut||(ut=setToArray),tt.size!=nt.size&&!ct)return!1;var pt=st.get(tt);if(pt)return pt==nt;rt|=COMPARE_UNORDERED_FLAG$2,st.set(tt,nt);var dt=equalArrays(ut(tt),ut(nt),rt,ot,at,st);return st.delete(tt),dt;case symbolTag:if(symbolValueOf)return symbolValueOf.call(tt)==symbolValueOf.call(nt)}return!1}function arrayPush(tt,nt){for(var et=-1,rt=nt.length,ot=tt.length;++et<rt;)tt[ot+et]=nt[et];return tt}function baseGetAllKeys(tt,nt,et){var rt=nt(tt);return isArray$3(tt)?rt:arrayPush(rt,et(tt))}function arrayFilter(tt,nt){for(var et=-1,rt=tt==null?0:tt.length,ot=0,at=[];++et<rt;){var st=tt[et];nt(st,et,tt)&&(at[ot++]=st)}return at}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(tt){return tt==null?[]:(tt=Object(tt),arrayFilter(nativeGetSymbols(tt),function(nt){return propertyIsEnumerable.call(tt,nt)}))}:stubArray;function getAllKeys(tt){return baseGetAllKeys(tt,keys,getSymbols)}var COMPARE_PARTIAL_FLAG$3=1,objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function equalObjects(tt,nt,et,rt,ot,at){var st=et&COMPARE_PARTIAL_FLAG$3,ut=getAllKeys(tt),ct=ut.length,pt=getAllKeys(nt),dt=pt.length;if(ct!=dt&&!st)return!1;for(var ft=ct;ft--;){var bt=ut[ft];if(!(st?bt in nt:hasOwnProperty$3.call(nt,bt)))return!1}var ht=at.get(tt),Mt=at.get(nt);if(ht&&Mt)return ht==nt&&Mt==tt;var mt=!0;at.set(tt,nt),at.set(nt,tt);for(var Ot=st;++ft<ct;){bt=ut[ft];var zt=tt[bt],yt=nt[bt];if(rt)var vt=st?rt(yt,zt,bt,nt,tt,at):rt(zt,yt,bt,tt,nt,at);if(!(vt===void 0?zt===yt||ot(zt,yt,et,rt,at):vt)){mt=!1;break}Ot||(Ot=bt=="constructor")}if(mt&&!Ot){var At=tt.constructor,St=nt.constructor;At!=St&&"constructor"in tt&&"constructor"in nt&&!(typeof At=="function"&&At instanceof At&&typeof St=="function"&&St instanceof St)&&(mt=!1)}return at.delete(tt),at.delete(nt),mt}var DataView$1=getNative(root$1,"DataView"),Promise$1=getNative(root$1,"Promise"),Set$1=getNative(root$1,"Set"),WeakMap$1=getNative(root$1,"WeakMap"),mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1&&getTag(new DataView$1(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag(new Map$1)!=mapTag||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag||WeakMap$1&&getTag(new WeakMap$1)!=weakMapTag)&&(getTag=function(tt){var nt=baseGetTag(tt),et=nt==objectTag$1?tt.constructor:void 0,rt=et?toSource(et):"";if(rt)switch(rt){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return nt});var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function baseIsEqualDeep(tt,nt,et,rt,ot,at){var st=isArray$3(tt),ut=isArray$3(nt),ct=st?arrayTag:getTag(tt),pt=ut?arrayTag:getTag(nt);ct=ct==argsTag?objectTag:ct,pt=pt==argsTag?objectTag:pt;var dt=ct==objectTag,ft=pt==objectTag,bt=ct==pt;if(bt&&isBuffer$1(tt)){if(!isBuffer$1(nt))return!1;st=!0,dt=!1}if(bt&&!dt)return at||(at=new Stack),st||isTypedArray$1(tt)?equalArrays(tt,nt,et,rt,ot,at):equalByTag(tt,nt,ct,et,rt,ot,at);if(!(et&COMPARE_PARTIAL_FLAG$2)){var ht=dt&&hasOwnProperty$2.call(tt,"__wrapped__"),Mt=ft&&hasOwnProperty$2.call(nt,"__wrapped__");if(ht||Mt){var mt=ht?tt.value():tt,Ot=Mt?nt.value():nt;return at||(at=new Stack),ot(mt,Ot,et,rt,at)}}return bt?(at||(at=new Stack),equalObjects(tt,nt,et,rt,ot,at)):!1}function baseIsEqual$1(tt,nt,et,rt,ot){return tt===nt?!0:tt==null||nt==null||!isObjectLike(tt)&&!isObjectLike(nt)?tt!==tt&&nt!==nt:baseIsEqualDeep(tt,nt,et,rt,baseIsEqual$1,ot)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(tt,nt,et,rt){var ot=et.length,at=ot;if(tt==null)return!at;for(tt=Object(tt);ot--;){var st=et[ot];if(st[2]?st[1]!==tt[st[0]]:!(st[0]in tt))return!1}for(;++ot<at;){st=et[ot];var ut=st[0],ct=tt[ut],pt=st[1];if(st[2]){if(ct===void 0&&!(ut in tt))return!1}else{var dt=new Stack,ft;if(!(ft===void 0?baseIsEqual$1(pt,ct,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,rt,dt):ft))return!1}}return!0}function isStrictComparable(tt){return tt===tt&&!isObject$2(tt)}function getMatchData(tt){for(var nt=keys(tt),et=nt.length;et--;){var rt=nt[et],ot=tt[rt];nt[et]=[rt,ot,isStrictComparable(ot)]}return nt}function matchesStrictComparable(tt,nt){return function(et){return et==null?!1:et[tt]===nt&&(nt!==void 0||tt in Object(et))}}function baseMatches(tt){var nt=getMatchData(tt);return nt.length==1&&nt[0][2]?matchesStrictComparable(nt[0][0],nt[0][1]):function(et){return et===tt||baseIsMatch(et,tt,nt)}}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(tt,nt){if(isArray$3(tt))return!1;var et=typeof tt;return et=="number"||et=="symbol"||et=="boolean"||tt==null||isSymbol$1(tt)?!0:reIsPlainProp.test(tt)||!reIsDeepProp.test(tt)||nt!=null&&tt in Object(nt)}var FUNC_ERROR_TEXT="Expected a function";function memoize(tt,nt){if(typeof tt!="function"||nt!=null&&typeof nt!="function")throw new TypeError(FUNC_ERROR_TEXT);var et=function(){var rt=arguments,ot=nt?nt.apply(this,rt):rt[0],at=et.cache;if(at.has(ot))return at.get(ot);var st=tt.apply(this,rt);return et.cache=at.set(ot,st)||at,st};return et.cache=new(memoize.Cache||MapCache),et}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(tt){var nt=memoize(tt,function(rt){return et.size===MAX_MEMOIZE_SIZE&&et.clear(),rt}),et=nt.cache;return nt}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(tt){var nt=[];return tt.charCodeAt(0)===46&&nt.push(""),tt.replace(rePropName,function(et,rt,ot,at){nt.push(ot?at.replace(reEscapeChar,"$1"):rt||et)}),nt}),INFINITY$1=1/0,symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString(tt){if(typeof tt=="string")return tt;if(isArray$3(tt))return arrayMap$2(tt,baseToString)+"";if(isSymbol$1(tt))return symbolToString?symbolToString.call(tt):"";var nt=tt+"";return nt=="0"&&1/tt==-INFINITY$1?"-0":nt}function toString$1(tt){return tt==null?"":baseToString(tt)}function castPath$2(tt,nt){return isArray$3(tt)?tt:isKey(tt,nt)?[tt]:stringToPath(toString$1(tt))}var INFINITY=1/0;function toKey$1(tt){if(typeof tt=="string"||isSymbol$1(tt))return tt;var nt=tt+"";return nt=="0"&&1/tt==-INFINITY?"-0":nt}function baseGet$2(tt,nt){nt=castPath$2(nt,tt);for(var et=0,rt=nt.length;tt!=null&&et<rt;)tt=tt[toKey$1(nt[et++])];return et&&et==rt?tt:void 0}function get(tt,nt,et){var rt=tt==null?void 0:baseGet$2(tt,nt);return rt===void 0?et:rt}function baseHasIn(tt,nt){return tt!=null&&nt in Object(tt)}function hasPath(tt,nt,et){nt=castPath$2(nt,tt);for(var rt=-1,ot=nt.length,at=!1;++rt<ot;){var st=toKey$1(nt[rt]);if(!(at=tt!=null&&et(tt,st)))break;tt=tt[st]}return at||++rt!=ot?at:(ot=tt==null?0:tt.length,!!ot&&isLength(ot)&&isIndex$1(st,ot)&&(isArray$3(tt)||isArguments(tt)))}function hasIn$1(tt,nt){return tt!=null&&hasPath(tt,nt,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(tt,nt){return isKey(tt)&&isStrictComparable(nt)?matchesStrictComparable(toKey$1(tt),nt):function(et){var rt=get(et,tt);return rt===void 0&&rt===nt?hasIn$1(et,tt):baseIsEqual$1(nt,rt,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(tt){return function(nt){return nt==null?void 0:nt[tt]}}function basePropertyDeep(tt){return function(nt){return baseGet$2(nt,tt)}}function property(tt){return isKey(tt)?baseProperty(toKey$1(tt)):basePropertyDeep(tt)}function baseIteratee$3(tt){return typeof tt=="function"?tt:tt==null?identity$1:typeof tt=="object"?isArray$3(tt)?baseMatchesProperty(tt[0],tt[1]):baseMatches(tt):property(tt)}function baseMap$1(tt,nt){var et=-1,rt=isArrayLike(tt)?Array(tt.length):[];return baseEach$1(tt,function(ot,at,st){rt[++et]=nt(ot,at,st)}),rt}function map(tt,nt){var et=isArray$3(tt)?arrayMap$2:baseMap$1;return et(tt,baseIteratee$3(nt))}var BlockSwatches=function tt(nt){var et=nt.colors,rt=nt.onClick,ot=nt.onSwatchHover,at=_default$2({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return React$1.createElement("div",{style:at.swatches},map(et,function(st){return React$1.createElement(Swatch$1,{key:st,color:st,style:at.swatch,onClick:rt,onHover:ot,focusStyle:{boxShadow:"0 0 4px "+st}})}),React$1.createElement("div",{style:at.clear}))},Block=function tt(nt){var et=nt.onChange,rt=nt.onSwatchHover,ot=nt.hex,at=nt.colors,st=nt.width,ut=nt.triangle,ct=nt.styles,pt=ct===void 0?{}:ct,dt=nt.className,ft=dt===void 0?"":dt,bt=ot==="transparent",ht=function(Ot,zt){isValidHex(Ot)&&et({hex:Ot,source:"hex"},zt)},Mt=_default$2(merge$1({default:{card:{width:st,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:ot,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:getContrastingColor(ot),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+ot+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},pt),{"hide-triangle":ut==="hide"});return React$1.createElement("div",{style:Mt.card,className:"block-picker "+ft},React$1.createElement("div",{style:Mt.triangle}),React$1.createElement("div",{style:Mt.head},bt&&React$1.createElement(Checkboard,{borderRadius:"6px 6px 0 0"}),React$1.createElement("div",{style:Mt.label},ot)),React$1.createElement("div",{style:Mt.body},React$1.createElement(BlockSwatches,{colors:at,onClick:ht,onSwatchHover:rt}),React$1.createElement(EditableInput,{style:{input:Mt.input},value:ot,onChange:ht})))};Block.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),colors:PropTypes.arrayOf(PropTypes.string),triangle:PropTypes.oneOf(["top","hide"]),styles:PropTypes.object};Block.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};ColorWrap(Block);var red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},pink={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},deepPurple={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},indigo={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},cyan={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},teal={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},lightGreen={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},lime={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},yellow={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},amber={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},deepOrange={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},brown={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},blueGrey={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},CircleSwatch=function tt(nt){var et=nt.color,rt=nt.onClick,ot=nt.onSwatchHover,at=nt.hover,st=nt.active,ut=nt.circleSize,ct=nt.circleSpacing,pt=_default$2({default:{swatch:{width:ut,height:ut,marginRight:ct,marginBottom:ct,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(ut/2+1)+"px "+et,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+et}}},{hover:at,active:st});return React$1.createElement("div",{style:pt.swatch},React$1.createElement(Swatch$1,{style:pt.Swatch,color:et,onClick:rt,onHover:ot,focusStyle:{boxShadow:pt.Swatch.boxShadow+", 0 0 5px "+et}}))};CircleSwatch.defaultProps={circleSize:28,circleSpacing:14};const CircleSwatch$1=handleHover(CircleSwatch);var Circle=function tt(nt){var et=nt.width,rt=nt.onChange,ot=nt.onSwatchHover,at=nt.colors,st=nt.hex,ut=nt.circleSize,ct=nt.styles,pt=ct===void 0?{}:ct,dt=nt.circleSpacing,ft=nt.className,bt=ft===void 0?"":ft,ht=_default$2(merge$1({default:{card:{width:et,display:"flex",flexWrap:"wrap",marginRight:-dt,marginBottom:-dt}}},pt)),Mt=function(Ot,zt){return rt({hex:Ot,source:"hex"},zt)};return React$1.createElement("div",{style:ht.card,className:"circle-picker "+bt},map(at,function(mt){return React$1.createElement(CircleSwatch$1,{key:mt,color:mt,onClick:Mt,onSwatchHover:ot,active:st===mt.toLowerCase(),circleSize:ut,circleSpacing:dt})}))};Circle.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),circleSize:PropTypes.number,circleSpacing:PropTypes.number,styles:PropTypes.object};Circle.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[red[500],pink[500],purple[500],deepPurple[500],indigo[500],blue[500],lightBlue[500],cyan[500],teal[500],green[500],lightGreen[500],lime[500],yellow[500],amber[500],orange[500],deepOrange[500],brown[500],blueGrey[500]],styles:{}};ColorWrap(Circle);function isUndefined$1(tt){return tt===void 0}var UnfoldMoreHorizontalIcon={};Object.defineProperty(UnfoldMoreHorizontalIcon,"__esModule",{value:!0});var _extends$m=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_react$1=reactExports,_react2$1=_interopRequireDefault$1(_react$1);function _interopRequireDefault$1(tt){return tt&&tt.__esModule?tt:{default:tt}}function _objectWithoutProperties$h(tt,nt){var et={};for(var rt in tt)nt.indexOf(rt)>=0||Object.prototype.hasOwnProperty.call(tt,rt)&&(et[rt]=tt[rt]);return et}var DEFAULT_SIZE$2=24,_default$1=UnfoldMoreHorizontalIcon.default=function(tt){var nt=tt.fill,et=nt===void 0?"currentColor":nt,rt=tt.width,ot=rt===void 0?DEFAULT_SIZE$2:rt,at=tt.height,st=at===void 0?DEFAULT_SIZE$2:at,ut=tt.style,ct=ut===void 0?{}:ut,pt=_objectWithoutProperties$h(tt,["fill","width","height","style"]);return _react2$1.default.createElement("svg",_extends$m({viewBox:"0 0 "+DEFAULT_SIZE$2+" "+DEFAULT_SIZE$2,style:_extends$m({fill:et,width:ot,height:st},ct)},pt),_react2$1.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},_createClass$7=function(){function tt(nt,et){for(var rt=0;rt<et.length;rt++){var ot=et[rt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(nt,ot.key,ot)}}return function(nt,et,rt){return et&&tt(nt.prototype,et),rt&&tt(nt,rt),nt}}();function _classCallCheck$7(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$7(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$7(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var ChromeFields=function(tt){_inherits$7(nt,tt);function nt(et){_classCallCheck$7(this,nt);var rt=_possibleConstructorReturn$7(this,(nt.__proto__||Object.getPrototypeOf(nt)).call(this));return rt.toggleViews=function(){rt.state.view==="hex"?rt.setState({view:"rgb"}):rt.state.view==="rgb"?rt.setState({view:"hsl"}):rt.state.view==="hsl"&&(rt.props.hsl.a===1?rt.setState({view:"hex"}):rt.setState({view:"rgb"}))},rt.handleChange=function(ot,at){ot.hex?isValidHex(ot.hex)&&rt.props.onChange({hex:ot.hex,source:"hex"},at):ot.r||ot.g||ot.b?rt.props.onChange({r:ot.r||rt.props.rgb.r,g:ot.g||rt.props.rgb.g,b:ot.b||rt.props.rgb.b,source:"rgb"},at):ot.a?(ot.a<0?ot.a=0:ot.a>1&&(ot.a=1),rt.props.onChange({h:rt.props.hsl.h,s:rt.props.hsl.s,l:rt.props.hsl.l,a:Math.round(ot.a*100)/100,source:"rgb"},at)):(ot.h||ot.s||ot.l)&&(typeof ot.s=="string"&&ot.s.includes("%")&&(ot.s=ot.s.replace("%","")),typeof ot.l=="string"&&ot.l.includes("%")&&(ot.l=ot.l.replace("%","")),ot.s==1?ot.s=.01:ot.l==1&&(ot.l=.01),rt.props.onChange({h:ot.h||rt.props.hsl.h,s:Number(isUndefined$1(ot.s)?rt.props.hsl.s:ot.s),l:Number(isUndefined$1(ot.l)?rt.props.hsl.l:ot.l),source:"hsl"},at))},rt.showHighlight=function(ot){ot.currentTarget.style.background="#eee"},rt.hideHighlight=function(ot){ot.currentTarget.style.background="transparent"},et.hsl.a!==1&&et.view==="hex"?rt.state={view:"rgb"}:rt.state={view:et.view},rt}return _createClass$7(nt,[{key:"render",value:function(){var rt=this,ot=_default$2({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),at=void 0;return this.state.view==="hex"?at=React$1.createElement("div",{style:ot.fields,className:"flexbox-fix"},React$1.createElement("div",{style:ot.field},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?at=React$1.createElement("div",{style:ot.fields,className:"flexbox-fix"},React$1.createElement("div",{style:ot.field},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),React$1.createElement("div",{style:ot.field},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),React$1.createElement("div",{style:ot.field},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),React$1.createElement("div",{style:ot.alpha},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(at=React$1.createElement("div",{style:ot.fields,className:"flexbox-fix"},React$1.createElement("div",{style:ot.field},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),React$1.createElement("div",{style:ot.field},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),React$1.createElement("div",{style:ot.field},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),React$1.createElement("div",{style:ot.alpha},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),React$1.createElement("div",{style:ot.wrap,className:"flexbox-fix"},at,React$1.createElement("div",{style:ot.toggle},React$1.createElement("div",{style:ot.icon,onClick:this.toggleViews,ref:function(ut){return rt.icon=ut}},React$1.createElement(_default$1,{style:ot.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(rt,ot){return rt.hsl.a!==1&&ot.view==="hex"?{view:"rgb"}:null}}]),nt}(React$1.Component);ChromeFields.defaultProps={view:"hex"};var ChromePointer=function tt(){var nt=_default$2({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return React$1.createElement("div",{style:nt.picker})},ChromePointerCircle=function tt(){var nt=_default$2({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return React$1.createElement("div",{style:nt.picker})},Chrome=function tt(nt){var et=nt.width,rt=nt.onChange,ot=nt.disableAlpha,at=nt.rgb,st=nt.hsl,ut=nt.hsv,ct=nt.hex,pt=nt.renderers,dt=nt.styles,ft=dt===void 0?{}:dt,bt=nt.className,ht=bt===void 0?"":bt,Mt=nt.defaultView,mt=_default$2(merge$1({default:{picker:{width:et,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+at.r+", "+at.g+", "+at.b+", "+at.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},ft),{disableAlpha:ot});return React$1.createElement("div",{style:mt.picker,className:"chrome-picker "+ht},React$1.createElement("div",{style:mt.saturation},React$1.createElement(Saturation,{style:mt.Saturation,hsl:st,hsv:ut,pointer:ChromePointerCircle,onChange:rt})),React$1.createElement("div",{style:mt.body},React$1.createElement("div",{style:mt.controls,className:"flexbox-fix"},React$1.createElement("div",{style:mt.color},React$1.createElement("div",{style:mt.swatch},React$1.createElement("div",{style:mt.active}),React$1.createElement(Checkboard,{renderers:pt}))),React$1.createElement("div",{style:mt.toggles},React$1.createElement("div",{style:mt.hue},React$1.createElement(Hue,{style:mt.Hue,hsl:st,pointer:ChromePointer,onChange:rt})),React$1.createElement("div",{style:mt.alpha},React$1.createElement(Alpha,{style:mt.Alpha,rgb:at,hsl:st,pointer:ChromePointer,renderers:pt,onChange:rt})))),React$1.createElement(ChromeFields,{rgb:at,hsl:st,hex:ct,view:Mt,onChange:rt,disableAlpha:ot})))};Chrome.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),disableAlpha:PropTypes.bool,styles:PropTypes.object,defaultView:PropTypes.oneOf(["hex","rgb","hsl"])};Chrome.defaultProps={width:225,disableAlpha:!1,styles:{}};const ChromePicker=ColorWrap(Chrome);var CompactColor=function tt(nt){var et=nt.color,rt=nt.onClick,ot=rt===void 0?function(){}:rt,at=nt.onSwatchHover,st=nt.active,ut=_default$2({default:{color:{background:et,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:getContrastingColor(et),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:st,"color-#FFFFFF":et==="#FFFFFF",transparent:et==="transparent"});return React$1.createElement(Swatch$1,{style:ut.color,color:et,onClick:ot,onHover:at,focusStyle:{boxShadow:"0 0 4px "+et}},React$1.createElement("div",{style:ut.dot}))},CompactFields=function tt(nt){var et=nt.hex,rt=nt.rgb,ot=nt.onChange,at=_default$2({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:et},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),st=function(ct,pt){ct.r||ct.g||ct.b?ot({r:ct.r||rt.r,g:ct.g||rt.g,b:ct.b||rt.b,source:"rgb"},pt):ot({hex:ct.hex,source:"hex"},pt)};return React$1.createElement("div",{style:at.fields,className:"flexbox-fix"},React$1.createElement("div",{style:at.active}),React$1.createElement(EditableInput,{style:{wrap:at.HEXwrap,input:at.HEXinput,label:at.HEXlabel},label:"hex",value:et,onChange:st}),React$1.createElement(EditableInput,{style:{wrap:at.RGBwrap,input:at.RGBinput,label:at.RGBlabel},label:"r",value:rt.r,onChange:st}),React$1.createElement(EditableInput,{style:{wrap:at.RGBwrap,input:at.RGBinput,label:at.RGBlabel},label:"g",value:rt.g,onChange:st}),React$1.createElement(EditableInput,{style:{wrap:at.RGBwrap,input:at.RGBinput,label:at.RGBlabel},label:"b",value:rt.b,onChange:st}))},Compact=function tt(nt){var et=nt.onChange,rt=nt.onSwatchHover,ot=nt.colors,at=nt.hex,st=nt.rgb,ut=nt.styles,ct=ut===void 0?{}:ut,pt=nt.className,dt=pt===void 0?"":pt,ft=_default$2(merge$1({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},ct)),bt=function(Mt,mt){Mt.hex?isValidHex(Mt.hex)&&et({hex:Mt.hex,source:"hex"},mt):et(Mt,mt)};return React$1.createElement(Raised,{style:ft.Compact,styles:ct},React$1.createElement("div",{style:ft.compact,className:"compact-picker "+dt},React$1.createElement("div",null,map(ot,function(ht){return React$1.createElement(CompactColor,{key:ht,color:ht,active:ht.toLowerCase()===at,onClick:bt,onSwatchHover:rt})}),React$1.createElement("div",{style:ft.clear})),React$1.createElement(CompactFields,{hex:at,rgb:st,onChange:bt})))};Compact.propTypes={colors:PropTypes.arrayOf(PropTypes.string),styles:PropTypes.object};Compact.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};ColorWrap(Compact);var GithubSwatch=function tt(nt){var et=nt.hover,rt=nt.color,ot=nt.onClick,at=nt.onSwatchHover,st={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},ut=_default$2({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:st}},{hover:et});return React$1.createElement("div",{style:ut.swatch},React$1.createElement(Swatch$1,{color:rt,onClick:ot,onHover:at,focusStyle:st}))};const GithubSwatch$1=handleHover(GithubSwatch);var Github=function tt(nt){var et=nt.width,rt=nt.colors,ot=nt.onChange,at=nt.onSwatchHover,st=nt.triangle,ut=nt.styles,ct=ut===void 0?{}:ut,pt=nt.className,dt=pt===void 0?"":pt,ft=_default$2(merge$1({default:{card:{width:et,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},ct),{"hide-triangle":st==="hide","top-left-triangle":st==="top-left","top-right-triangle":st==="top-right","bottom-left-triangle":st==="bottom-left","bottom-right-triangle":st==="bottom-right"}),bt=function(Mt,mt){return ot({hex:Mt,source:"hex"},mt)};return React$1.createElement("div",{style:ft.card,className:"github-picker "+dt},React$1.createElement("div",{style:ft.triangleShadow}),React$1.createElement("div",{style:ft.triangle}),map(rt,function(ht){return React$1.createElement(GithubSwatch$1,{color:ht,key:ht,onClick:bt,onSwatchHover:at})}))};Github.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),colors:PropTypes.arrayOf(PropTypes.string),triangle:PropTypes.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:PropTypes.object};Github.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};ColorWrap(Github);var SliderPointer$1=function tt(nt){var et=nt.direction,rt=_default$2({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:et==="vertical"});return React$1.createElement("div",{style:rt.picker})},_extends$l=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},HuePicker=function tt(nt){var et=nt.width,rt=nt.height,ot=nt.onChange,at=nt.hsl,st=nt.direction,ut=nt.pointer,ct=nt.styles,pt=ct===void 0?{}:ct,dt=nt.className,ft=dt===void 0?"":dt,bt=_default$2(merge$1({default:{picker:{position:"relative",width:et,height:rt},hue:{radius:"2px"}}},pt)),ht=function(mt){return ot({a:1,h:mt.h,l:.5,s:1})};return React$1.createElement("div",{style:bt.picker,className:"hue-picker "+ft},React$1.createElement(Hue,_extends$l({},bt.hue,{hsl:at,pointer:ut,onChange:ht,direction:st})))};HuePicker.propTypes={styles:PropTypes.object};HuePicker.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:SliderPointer$1,styles:{}};ColorWrap(HuePicker);var Material=function tt(nt){var et=nt.onChange,rt=nt.hex,ot=nt.rgb,at=nt.styles,st=at===void 0?{}:at,ut=nt.className,ct=ut===void 0?"":ut,pt=_default$2(merge$1({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+rt,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},st)),dt=function(bt,ht){bt.hex?isValidHex(bt.hex)&&et({hex:bt.hex,source:"hex"},ht):(bt.r||bt.g||bt.b)&&et({r:bt.r||ot.r,g:bt.g||ot.g,b:bt.b||ot.b,source:"rgb"},ht)};return React$1.createElement(Raised,{styles:st},React$1.createElement("div",{style:pt.material,className:"material-picker "+ct},React$1.createElement(EditableInput,{style:{wrap:pt.HEXwrap,input:pt.HEXinput,label:pt.HEXlabel},label:"hex",value:rt,onChange:dt}),React$1.createElement("div",{style:pt.split,className:"flexbox-fix"},React$1.createElement("div",{style:pt.third},React$1.createElement(EditableInput,{style:{wrap:pt.RGBwrap,input:pt.RGBinput,label:pt.RGBlabel},label:"r",value:ot.r,onChange:dt})),React$1.createElement("div",{style:pt.third},React$1.createElement(EditableInput,{style:{wrap:pt.RGBwrap,input:pt.RGBinput,label:pt.RGBlabel},label:"g",value:ot.g,onChange:dt})),React$1.createElement("div",{style:pt.third},React$1.createElement(EditableInput,{style:{wrap:pt.RGBwrap,input:pt.RGBinput,label:pt.RGBlabel},label:"b",value:ot.b,onChange:dt})))))};ColorWrap(Material);var PhotoshopPicker=function tt(nt){var et=nt.onChange,rt=nt.rgb,ot=nt.hsv,at=nt.hex,st=_default$2({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),ut=function(pt,dt){pt["#"]?isValidHex(pt["#"])&&et({hex:pt["#"],source:"hex"},dt):pt.r||pt.g||pt.b?et({r:pt.r||rt.r,g:pt.g||rt.g,b:pt.b||rt.b,source:"rgb"},dt):(pt.h||pt.s||pt.v)&&et({h:pt.h||ot.h,s:pt.s||ot.s,v:pt.v||ot.v,source:"hsv"},dt)};return React$1.createElement("div",{style:st.fields},React$1.createElement(EditableInput,{style:{wrap:st.RGBwrap,input:st.RGBinput,label:st.RGBlabel},label:"h",value:Math.round(ot.h),onChange:ut}),React$1.createElement(EditableInput,{style:{wrap:st.RGBwrap,input:st.RGBinput,label:st.RGBlabel},label:"s",value:Math.round(ot.s*100),onChange:ut}),React$1.createElement(EditableInput,{style:{wrap:st.RGBwrap,input:st.RGBinput,label:st.RGBlabel},label:"v",value:Math.round(ot.v*100),onChange:ut}),React$1.createElement("div",{style:st.divider}),React$1.createElement(EditableInput,{style:{wrap:st.RGBwrap,input:st.RGBinput,label:st.RGBlabel},label:"r",value:rt.r,onChange:ut}),React$1.createElement(EditableInput,{style:{wrap:st.RGBwrap,input:st.RGBinput,label:st.RGBlabel},label:"g",value:rt.g,onChange:ut}),React$1.createElement(EditableInput,{style:{wrap:st.RGBwrap,input:st.RGBinput,label:st.RGBlabel},label:"b",value:rt.b,onChange:ut}),React$1.createElement("div",{style:st.divider}),React$1.createElement(EditableInput,{style:{wrap:st.HEXwrap,input:st.HEXinput,label:st.HEXlabel},label:"#",value:at.replace("#",""),onChange:ut}),React$1.createElement("div",{style:st.fieldSymbols},React$1.createElement("div",{style:st.symbol},"°"),React$1.createElement("div",{style:st.symbol},"%"),React$1.createElement("div",{style:st.symbol},"%")))},PhotoshopPointerCircle$1=function tt(nt){var et=nt.hsl,rt=_default$2({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":et.l>.5});return React$1.createElement("div",{style:rt.picker})},PhotoshopPointerCircle=function tt(){var nt=_default$2({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return React$1.createElement("div",{style:nt.pointer},React$1.createElement("div",{style:nt.left},React$1.createElement("div",{style:nt.leftInside})),React$1.createElement("div",{style:nt.right},React$1.createElement("div",{style:nt.rightInside})))},PhotoshopButton=function tt(nt){var et=nt.onClick,rt=nt.label,ot=nt.children,at=nt.active,st=_default$2({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:at});return React$1.createElement("div",{style:st.button,onClick:et},rt||ot)},PhotoshopPreviews=function tt(nt){var et=nt.rgb,rt=nt.currentColor,ot=_default$2({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+et.r+","+et.g+", "+et.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:rt,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return React$1.createElement("div",null,React$1.createElement("div",{style:ot.label},"new"),React$1.createElement("div",{style:ot.swatches},React$1.createElement("div",{style:ot.new}),React$1.createElement("div",{style:ot.current})),React$1.createElement("div",{style:ot.label},"current"))},_createClass$6=function(){function tt(nt,et){for(var rt=0;rt<et.length;rt++){var ot=et[rt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(nt,ot.key,ot)}}return function(nt,et,rt){return et&&tt(nt.prototype,et),rt&&tt(nt,rt),nt}}();function _classCallCheck$6(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$6(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$6(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var Photoshop=function(tt){_inherits$6(nt,tt);function nt(et){_classCallCheck$6(this,nt);var rt=_possibleConstructorReturn$6(this,(nt.__proto__||Object.getPrototypeOf(nt)).call(this));return rt.state={currentColor:et.hex},rt}return _createClass$6(nt,[{key:"render",value:function(){var rt=this.props,ot=rt.styles,at=ot===void 0?{}:ot,st=rt.className,ut=st===void 0?"":st,ct=_default$2(merge$1({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},at));return React$1.createElement("div",{style:ct.picker,className:"photoshop-picker "+ut},React$1.createElement("div",{style:ct.head},this.props.header),React$1.createElement("div",{style:ct.body,className:"flexbox-fix"},React$1.createElement("div",{style:ct.saturation},React$1.createElement(Saturation,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:PhotoshopPointerCircle$1,onChange:this.props.onChange})),React$1.createElement("div",{style:ct.hue},React$1.createElement(Hue,{direction:"vertical",hsl:this.props.hsl,pointer:PhotoshopPointerCircle,onChange:this.props.onChange})),React$1.createElement("div",{style:ct.controls},React$1.createElement("div",{style:ct.top,className:"flexbox-fix"},React$1.createElement("div",{style:ct.previews},React$1.createElement(PhotoshopPreviews,{rgb:this.props.rgb,currentColor:this.state.currentColor})),React$1.createElement("div",{style:ct.actions},React$1.createElement(PhotoshopButton,{label:"OK",onClick:this.props.onAccept,active:!0}),React$1.createElement(PhotoshopButton,{label:"Cancel",onClick:this.props.onCancel}),React$1.createElement(PhotoshopPicker,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),nt}(React$1.Component);Photoshop.propTypes={header:PropTypes.string,styles:PropTypes.object};Photoshop.defaultProps={header:"Color Picker",styles:{}};ColorWrap(Photoshop);var SketchFields=function tt(nt){var et=nt.onChange,rt=nt.rgb,ot=nt.hsl,at=nt.hex,st=nt.disableAlpha,ut=_default$2({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:st}),ct=function(dt,ft){dt.hex?isValidHex(dt.hex)&&et({hex:dt.hex,source:"hex"},ft):dt.r||dt.g||dt.b?et({r:dt.r||rt.r,g:dt.g||rt.g,b:dt.b||rt.b,a:rt.a,source:"rgb"},ft):dt.a&&(dt.a<0?dt.a=0:dt.a>100&&(dt.a=100),dt.a/=100,et({h:ot.h,s:ot.s,l:ot.l,a:dt.a,source:"rgb"},ft))};return React$1.createElement("div",{style:ut.fields,className:"flexbox-fix"},React$1.createElement("div",{style:ut.double},React$1.createElement(EditableInput,{style:{input:ut.input,label:ut.label},label:"hex",value:at.replace("#",""),onChange:ct})),React$1.createElement("div",{style:ut.single},React$1.createElement(EditableInput,{style:{input:ut.input,label:ut.label},label:"r",value:rt.r,onChange:ct,dragLabel:"true",dragMax:"255"})),React$1.createElement("div",{style:ut.single},React$1.createElement(EditableInput,{style:{input:ut.input,label:ut.label},label:"g",value:rt.g,onChange:ct,dragLabel:"true",dragMax:"255"})),React$1.createElement("div",{style:ut.single},React$1.createElement(EditableInput,{style:{input:ut.input,label:ut.label},label:"b",value:rt.b,onChange:ct,dragLabel:"true",dragMax:"255"})),React$1.createElement("div",{style:ut.alpha},React$1.createElement(EditableInput,{style:{input:ut.input,label:ut.label},label:"a",value:Math.round(rt.a*100),onChange:ct,dragLabel:"true",dragMax:"100"})))},_extends$k=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},SketchPresetColors=function tt(nt){var et=nt.colors,rt=nt.onClick,ot=rt===void 0?function(){}:rt,at=nt.onSwatchHover,st=_default$2({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!et||!et.length}),ut=function(pt,dt){ot({hex:pt,source:"hex"},dt)};return React$1.createElement("div",{style:st.colors,className:"flexbox-fix"},et.map(function(ct){var pt=typeof ct=="string"?{color:ct}:ct,dt=""+pt.color+(pt.title||"");return React$1.createElement("div",{key:dt,style:st.swatchWrap},React$1.createElement(Swatch$1,_extends$k({},pt,{style:st.swatch,onClick:ut,onHover:at,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+pt.color}})))}))};SketchPresetColors.propTypes={colors:PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string,PropTypes.shape({color:PropTypes.string,title:PropTypes.string})])).isRequired};var _extends$j=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},Sketch=function tt(nt){var et=nt.width,rt=nt.rgb,ot=nt.hex,at=nt.hsv,st=nt.hsl,ut=nt.onChange,ct=nt.onSwatchHover,pt=nt.disableAlpha,dt=nt.presetColors,ft=nt.renderers,bt=nt.styles,ht=bt===void 0?{}:bt,Mt=nt.className,mt=Mt===void 0?"":Mt,Ot=_default$2(merge$1({default:_extends$j({picker:{width:et,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+rt.r+","+rt.g+","+rt.b+","+rt.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},ht),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},ht),{disableAlpha:pt});return React$1.createElement("div",{style:Ot.picker,className:"sketch-picker "+mt},React$1.createElement("div",{style:Ot.saturation},React$1.createElement(Saturation,{style:Ot.Saturation,hsl:st,hsv:at,onChange:ut})),React$1.createElement("div",{style:Ot.controls,className:"flexbox-fix"},React$1.createElement("div",{style:Ot.sliders},React$1.createElement("div",{style:Ot.hue},React$1.createElement(Hue,{style:Ot.Hue,hsl:st,onChange:ut})),React$1.createElement("div",{style:Ot.alpha},React$1.createElement(Alpha,{style:Ot.Alpha,rgb:rt,hsl:st,renderers:ft,onChange:ut}))),React$1.createElement("div",{style:Ot.color},React$1.createElement(Checkboard,null),React$1.createElement("div",{style:Ot.activeColor}))),React$1.createElement(SketchFields,{rgb:rt,hsl:st,hex:ot,onChange:ut,disableAlpha:pt}),React$1.createElement(SketchPresetColors,{colors:dt,onClick:ut,onSwatchHover:ct}))};Sketch.propTypes={disableAlpha:PropTypes.bool,width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),styles:PropTypes.object};Sketch.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};ColorWrap(Sketch);var SliderSwatch=function tt(nt){var et=nt.hsl,rt=nt.offset,ot=nt.onClick,at=ot===void 0?function(){}:ot,st=nt.active,ut=nt.first,ct=nt.last,pt=_default$2({default:{swatch:{height:"12px",background:"hsl("+et.h+", 50%, "+rt*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:st,first:ut,last:ct}),dt=function(bt){return at({h:et.h,s:.5,l:rt,source:"hsl"},bt)};return React$1.createElement("div",{style:pt.swatch,onClick:dt})},SliderSwatches=function tt(nt){var et=nt.onClick,rt=nt.hsl,ot=_default$2({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),at=.1;return React$1.createElement("div",{style:ot.swatches},React$1.createElement("div",{style:ot.swatch},React$1.createElement(SliderSwatch,{hsl:rt,offset:".80",active:Math.abs(rt.l-.8)<at&&Math.abs(rt.s-.5)<at,onClick:et,first:!0})),React$1.createElement("div",{style:ot.swatch},React$1.createElement(SliderSwatch,{hsl:rt,offset:".65",active:Math.abs(rt.l-.65)<at&&Math.abs(rt.s-.5)<at,onClick:et})),React$1.createElement("div",{style:ot.swatch},React$1.createElement(SliderSwatch,{hsl:rt,offset:".50",active:Math.abs(rt.l-.5)<at&&Math.abs(rt.s-.5)<at,onClick:et})),React$1.createElement("div",{style:ot.swatch},React$1.createElement(SliderSwatch,{hsl:rt,offset:".35",active:Math.abs(rt.l-.35)<at&&Math.abs(rt.s-.5)<at,onClick:et})),React$1.createElement("div",{style:ot.swatch},React$1.createElement(SliderSwatch,{hsl:rt,offset:".20",active:Math.abs(rt.l-.2)<at&&Math.abs(rt.s-.5)<at,onClick:et,last:!0})),React$1.createElement("div",{style:ot.clear}))},SliderPointer=function tt(){var nt=_default$2({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return React$1.createElement("div",{style:nt.picker})},Slider=function tt(nt){var et=nt.hsl,rt=nt.onChange,ot=nt.pointer,at=nt.styles,st=at===void 0?{}:at,ut=nt.className,ct=ut===void 0?"":ut,pt=_default$2(merge$1({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},st));return React$1.createElement("div",{style:pt.wrap||{},className:"slider-picker "+ct},React$1.createElement("div",{style:pt.hue},React$1.createElement(Hue,{style:pt.Hue,hsl:et,pointer:ot,onChange:rt})),React$1.createElement("div",{style:pt.swatches},React$1.createElement(SliderSwatches,{hsl:et,onClick:rt})))};Slider.propTypes={styles:PropTypes.object};Slider.defaultProps={pointer:SliderPointer,styles:{}};ColorWrap(Slider);var CheckIcon={};Object.defineProperty(CheckIcon,"__esModule",{value:!0});var _extends$i=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_react=reactExports,_react2=_interopRequireDefault(_react);function _interopRequireDefault(tt){return tt&&tt.__esModule?tt:{default:tt}}function _objectWithoutProperties$g(tt,nt){var et={};for(var rt in tt)nt.indexOf(rt)>=0||Object.prototype.hasOwnProperty.call(tt,rt)&&(et[rt]=tt[rt]);return et}var DEFAULT_SIZE$1=24,_default=CheckIcon.default=function(tt){var nt=tt.fill,et=nt===void 0?"currentColor":nt,rt=tt.width,ot=rt===void 0?DEFAULT_SIZE$1:rt,at=tt.height,st=at===void 0?DEFAULT_SIZE$1:at,ut=tt.style,ct=ut===void 0?{}:ut,pt=_objectWithoutProperties$g(tt,["fill","width","height","style"]);return _react2.default.createElement("svg",_extends$i({viewBox:"0 0 "+DEFAULT_SIZE$1+" "+DEFAULT_SIZE$1,style:_extends$i({fill:et,width:ot,height:st},ct)},pt),_react2.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},SwatchesColor=function tt(nt){var et=nt.color,rt=nt.onClick,ot=rt===void 0?function(){}:rt,at=nt.onSwatchHover,st=nt.first,ut=nt.last,ct=nt.active,pt=_default$2({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:et,marginBottom:"1px"},check:{color:getContrastingColor(et),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:st,last:ut,active:ct,"color-#FFFFFF":et==="#FFFFFF",transparent:et==="transparent"});return React$1.createElement(Swatch$1,{color:et,style:pt.color,onClick:ot,onHover:at,focusStyle:{boxShadow:"0 0 4px "+et}},React$1.createElement("div",{style:pt.check},React$1.createElement(_default,null)))},SwatchesGroup=function tt(nt){var et=nt.onClick,rt=nt.onSwatchHover,ot=nt.group,at=nt.active,st=_default$2({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return React$1.createElement("div",{style:st.group},map(ot,function(ut,ct){return React$1.createElement(SwatchesColor,{key:ut,color:ut,active:ut.toLowerCase()===at,first:ct===0,last:ct===ot.length-1,onClick:et,onSwatchHover:rt})}))},Swatches=function tt(nt){var et=nt.width,rt=nt.height,ot=nt.onChange,at=nt.onSwatchHover,st=nt.colors,ut=nt.hex,ct=nt.styles,pt=ct===void 0?{}:ct,dt=nt.className,ft=dt===void 0?"":dt,bt=_default$2(merge$1({default:{picker:{width:et,height:rt},overflow:{height:rt,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},pt)),ht=function(mt,Ot){return ot({hex:mt,source:"hex"},Ot)};return React$1.createElement("div",{style:bt.picker,className:"swatches-picker "+ft},React$1.createElement(Raised,null,React$1.createElement("div",{style:bt.overflow},React$1.createElement("div",{style:bt.body},map(st,function(Mt){return React$1.createElement(SwatchesGroup,{key:Mt.toString(),group:Mt,active:ut,onClick:ht,onSwatchHover:at})}),React$1.createElement("div",{style:bt.clear})))))};Swatches.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),height:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),colors:PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.string)),styles:PropTypes.object};Swatches.defaultProps={width:320,height:240,colors:[[red[900],red[700],red[500],red[300],red[100]],[pink[900],pink[700],pink[500],pink[300],pink[100]],[purple[900],purple[700],purple[500],purple[300],purple[100]],[deepPurple[900],deepPurple[700],deepPurple[500],deepPurple[300],deepPurple[100]],[indigo[900],indigo[700],indigo[500],indigo[300],indigo[100]],[blue[900],blue[700],blue[500],blue[300],blue[100]],[lightBlue[900],lightBlue[700],lightBlue[500],lightBlue[300],lightBlue[100]],[cyan[900],cyan[700],cyan[500],cyan[300],cyan[100]],[teal[900],teal[700],teal[500],teal[300],teal[100]],["#194D33",green[700],green[500],green[300],green[100]],[lightGreen[900],lightGreen[700],lightGreen[500],lightGreen[300],lightGreen[100]],[lime[900],lime[700],lime[500],lime[300],lime[100]],[yellow[900],yellow[700],yellow[500],yellow[300],yellow[100]],[amber[900],amber[700],amber[500],amber[300],amber[100]],[orange[900],orange[700],orange[500],orange[300],orange[100]],[deepOrange[900],deepOrange[700],deepOrange[500],deepOrange[300],deepOrange[100]],[brown[900],brown[700],brown[500],brown[300],brown[100]],[blueGrey[900],blueGrey[700],blueGrey[500],blueGrey[300],blueGrey[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};ColorWrap(Swatches);var Twitter=function tt(nt){var et=nt.onChange,rt=nt.onSwatchHover,ot=nt.hex,at=nt.colors,st=nt.width,ut=nt.triangle,ct=nt.styles,pt=ct===void 0?{}:ct,dt=nt.className,ft=dt===void 0?"":dt,bt=_default$2(merge$1({default:{card:{width:st,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},pt),{"hide-triangle":ut==="hide","top-left-triangle":ut==="top-left","top-right-triangle":ut==="top-right"}),ht=function(mt,Ot){isValidHex(mt)&&et({hex:mt,source:"hex"},Ot)};return React$1.createElement("div",{style:bt.card,className:"twitter-picker "+ft},React$1.createElement("div",{style:bt.triangleShadow}),React$1.createElement("div",{style:bt.triangle}),React$1.createElement("div",{style:bt.body},map(at,function(Mt,mt){return React$1.createElement(Swatch$1,{key:mt,color:Mt,hex:Mt,style:bt.swatch,onClick:ht,onHover:rt,focusStyle:{boxShadow:"0 0 4px "+Mt}})}),React$1.createElement("div",{style:bt.hash},"#"),React$1.createElement(EditableInput,{label:null,style:{input:bt.input},value:ot.replace("#",""),onChange:ht}),React$1.createElement("div",{style:bt.clear})))};Twitter.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),triangle:PropTypes.oneOf(["hide","top-left","top-right"]),colors:PropTypes.arrayOf(PropTypes.string),styles:PropTypes.object};Twitter.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};ColorWrap(Twitter);var GooglePointerCircle=function tt(nt){var et=_default$2({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(nt.hsl.h)+", "+Math.round(nt.hsl.s*100)+"%, "+Math.round(nt.hsl.l*100)+"%)"}}});return React$1.createElement("div",{style:et.picker})};GooglePointerCircle.propTypes={hsl:PropTypes.shape({h:PropTypes.number,s:PropTypes.number,l:PropTypes.number,a:PropTypes.number})};GooglePointerCircle.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var GooglePointer=function tt(nt){var et=_default$2({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(nt.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return React$1.createElement("div",{style:et.picker})};GooglePointer.propTypes={hsl:PropTypes.shape({h:PropTypes.number,s:PropTypes.number,l:PropTypes.number,a:PropTypes.number})};GooglePointer.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var GoogleFields=function tt(nt){var et=nt.onChange,rt=nt.rgb,ot=nt.hsl,at=nt.hex,st=nt.hsv,ut=function(ht,Mt){if(ht.hex)isValidHex(ht.hex)&&et({hex:ht.hex,source:"hex"},Mt);else if(ht.rgb){var mt=ht.rgb.split(",");isvalidColorString(ht.rgb,"rgb")&&et({r:mt[0],g:mt[1],b:mt[2],a:1,source:"rgb"},Mt)}else if(ht.hsv){var Ot=ht.hsv.split(",");isvalidColorString(ht.hsv,"hsv")&&(Ot[2]=Ot[2].replace("%",""),Ot[1]=Ot[1].replace("%",""),Ot[0]=Ot[0].replace("°",""),Ot[1]==1?Ot[1]=.01:Ot[2]==1&&(Ot[2]=.01),et({h:Number(Ot[0]),s:Number(Ot[1]),v:Number(Ot[2]),source:"hsv"},Mt))}else if(ht.hsl){var zt=ht.hsl.split(",");isvalidColorString(ht.hsl,"hsl")&&(zt[2]=zt[2].replace("%",""),zt[1]=zt[1].replace("%",""),zt[0]=zt[0].replace("°",""),ft[1]==1?ft[1]=.01:ft[2]==1&&(ft[2]=.01),et({h:Number(zt[0]),s:Number(zt[1]),v:Number(zt[2]),source:"hsl"},Mt))}},ct=_default$2({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),pt=rt.r+", "+rt.g+", "+rt.b,dt=Math.round(ot.h)+"°, "+Math.round(ot.s*100)+"%, "+Math.round(ot.l*100)+"%",ft=Math.round(st.h)+"°, "+Math.round(st.s*100)+"%, "+Math.round(st.v*100)+"%";return React$1.createElement("div",{style:ct.wrap,className:"flexbox-fix"},React$1.createElement("div",{style:ct.fields},React$1.createElement("div",{style:ct.double},React$1.createElement(EditableInput,{style:{input:ct.input,label:ct.label},label:"hex",value:at,onChange:ut})),React$1.createElement("div",{style:ct.column},React$1.createElement("div",{style:ct.single},React$1.createElement(EditableInput,{style:{input:ct.input2,label:ct.label2},label:"rgb",value:pt,onChange:ut})),React$1.createElement("div",{style:ct.single},React$1.createElement(EditableInput,{style:{input:ct.input2,label:ct.label2},label:"hsv",value:ft,onChange:ut})),React$1.createElement("div",{style:ct.single},React$1.createElement(EditableInput,{style:{input:ct.input2,label:ct.label2},label:"hsl",value:dt,onChange:ut})))))},Google=function tt(nt){var et=nt.width,rt=nt.onChange,ot=nt.rgb,at=nt.hsl,st=nt.hsv,ut=nt.hex,ct=nt.header,pt=nt.styles,dt=pt===void 0?{}:pt,ft=nt.className,bt=ft===void 0?"":ft,ht=_default$2(merge$1({default:{picker:{width:et,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+ot.r+", "+ot.g+", "+ot.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},dt));return React$1.createElement("div",{style:ht.picker,className:"google-picker "+bt},React$1.createElement("div",{style:ht.head},ct),React$1.createElement("div",{style:ht.swatch}),React$1.createElement("div",{style:ht.saturation},React$1.createElement(Saturation,{hsl:at,hsv:st,pointer:GooglePointerCircle,onChange:rt})),React$1.createElement("div",{style:ht.body},React$1.createElement("div",{style:ht.controls,className:"flexbox-fix"},React$1.createElement("div",{style:ht.hue},React$1.createElement(Hue,{style:ht.Hue,hsl:at,radius:"4px",pointer:GooglePointer,onChange:rt}))),React$1.createElement(GoogleFields,{rgb:ot,hsl:at,hex:ut,hsv:st,onChange:rt})))};Google.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),styles:PropTypes.object,header:PropTypes.string};Google.defaultProps={width:652,styles:{},header:"Color picker"};ColorWrap(Google);const StyledColorPicker=newStyled("div",{target:"eavvuaz0"})(({disabled:tt,width:nt,theme:et})=>({fontFamily:et.genericFonts.bodyFont,display:"flex",flexDirection:"column",alignItems:"flex-start",cursor:tt?"not-allowed":"default",width:nt})),StyledChromePicker=newStyled("div",{target:"eavvuaz1"})(({theme:tt})=>({div:{fontFamily:`${tt.genericFonts.bodyFont} !important`}})),StyledColorPreview=newStyled("div",{target:"eavvuaz2"})(({disabled:tt,theme:nt})=>({height:nt.sizes.minElementHeight,borderRadius:nt.radii.default,borderColor:nt.colors.borderColor,cursor:tt?"not-allowed":"pointer",pointerEvents:tt?"none":"auto",boxShadow:"none",lineHeight:nt.lineHeights.base,gap:nt.spacing.md,"&:focus":{outline:"none"},display:"flex"})),StyledColorBlock=newStyled("div",{target:"eavvuaz3"})(({backgroundColor:tt,disabled:nt,theme:et})=>({width:et.sizes.minElementHeight,height:et.sizes.minElementHeight,borderRadius:et.radii.default,borderColor:et.colors.borderColor,borderWidth:et.sizes.borderWidth,opacity:nt?"0.4":"",backgroundColor:tt,borderStyle:"solid",cursor:"pointer",lineHeight:et.lineHeights.base,"&:focus":{outline:"none"}})),StyledColorValue=newStyled("div",{target:"eavvuaz4"})({display:"flex",alignItems:"center"});class BaseColorPicker extends React$1.PureComponent{constructor(){super(...arguments),this.state={value:this.props.value},this.onColorChange=nt=>{this.setState({value:nt.hex})},this.onColorClose=()=>{this.props.onChange(this.state.value)}}componentDidUpdate(nt){nt.value!==this.props.value&&this.props.value!==this.state.value&&this.setState((et,rt)=>({value:rt.value}))}componentDidCatch(nt){if((nt==null?void 0:nt.name)==="SecurityError")logWarning(`Swallowing ColorPicker SecurityError '${nt.name}: ${nt.message}'`),this.forceUpdate();else throw nt}render(){const{width:nt,showValue:et,label:rt,labelVisibility:ot,help:at,disabled:st}=this.props,{value:ut}=this.state;return jsxs(StyledColorPicker,{className:"stColorPicker","data-testid":"stColorPicker",width:nt,disabled:st,children:[jsx$1(WidgetLabel,{label:rt,disabled:st,labelVisibility:ot,children:at&&jsx$1(StyledWidgetLabelHelpInline,{children:jsx$1(TooltipIcon,{content:at,placement:Placement.TOP_RIGHT})})}),jsx$1(StatefulPopover,{onClose:this.onColorClose,content:()=>jsx$1(StyledChromePicker,{"data-testid":"stColorPickerPopover",children:jsx$1(ChromePicker,{color:ut,onChange:this.onColorChange,disableAlpha:!0})}),children:jsxs(StyledColorPreview,{disabled:st,children:[jsx$1(StyledColorBlock,{"data-testid":"stColorPickerBlock",backgroundColor:ut,disabled:st}),et&&jsx$1(StyledColorValue,{children:ut.toUpperCase()})]})})]})}}var lib$1={},uaParser_min={exports:{}};(function(tt,nt){(function(et,rt){var ot="1.0.39",at="",st="?",ut="function",ct="undefined",pt="object",dt="string",ft="major",bt="model",ht="name",Mt="type",mt="vendor",Ot="version",zt="architecture",yt="console",vt="mobile",At="tablet",St="smarttv",Et="wearable",Tt="embedded",Rt=500,Ct="Amazon",wt="Apple",Lt="ASUS",Ht="BlackBerry",jt="Browser",s0="Chrome",Ut="Edge",Yt="Firefox",O0="Google",a0="Huawei",b0="LG",kt="Microsoft",o0="Motorola",qt="Opera",Dt="Samsung",Bt="Sharp",p0="Sony",r0="Xiaomi",l0="Zebra",f0="Facebook",i0="Chromium OS",$t="Mac OS",It=" Browser",Vt=function(e0,Nt){var Xt={};for(var d0 in e0)Nt[d0]&&Nt[d0].length%2===0?Xt[d0]=Nt[d0].concat(e0[d0]):Xt[d0]=e0[d0];return Xt},xt=function(e0){for(var Nt={},Xt=0;Xt<e0.length;Xt++)Nt[e0[Xt].toUpperCase()]=e0[Xt];return Nt},Ft=function(e0,Nt){return typeof e0===dt?Pt(Nt).indexOf(Pt(e0))!==-1:!1},Pt=function(e0){return e0.toLowerCase()},Zt=function(e0){return typeof e0===dt?e0.replace(/[^\d\.]/g,at).split(".")[0]:rt},Kt=function(e0,Nt){if(typeof e0===dt)return e0=e0.replace(/^\s\s*/,at),typeof Nt===ct?e0:e0.substring(0,Rt)},n0=function(e0,Nt){for(var Xt=0,d0,z0,w0,E0,g0,k0;Xt<Nt.length&&!g0;){var I0=Nt[Xt],N0=Nt[Xt+1];for(d0=z0=0;d0<I0.length&&!g0&&I0[d0];)if(g0=I0[d0++].exec(e0),g0)for(w0=0;w0<N0.length;w0++)k0=g0[++z0],E0=N0[w0],typeof E0===pt&&E0.length>0?E0.length===2?typeof E0[1]==ut?this[E0[0]]=E0[1].call(this,k0):this[E0[0]]=E0[1]:E0.length===3?typeof E0[1]===ut&&!(E0[1].exec&&E0[1].test)?this[E0[0]]=k0?E0[1].call(this,k0,E0[2]):rt:this[E0[0]]=k0?k0.replace(E0[1],E0[2]):rt:E0.length===4&&(this[E0[0]]=k0?E0[3].call(this,k0.replace(E0[1],E0[2])):rt):this[E0]=k0||rt;Xt+=2}},c0=function(e0,Nt){for(var Xt in Nt)if(typeof Nt[Xt]===pt&&Nt[Xt].length>0){for(var d0=0;d0<Nt[Xt].length;d0++)if(Ft(Nt[Xt][d0],e0))return Xt===st?rt:Xt}else if(Ft(Nt[Xt],e0))return Xt===st?rt:Xt;return Nt.hasOwnProperty("*")?Nt["*"]:e0},u0={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},y0={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},D0={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[Ot,[ht,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[Ot,[ht,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[ht,Ot],[/opios[\/ ]+([\w\.]+)/i],[Ot,[ht,qt+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[Ot,[ht,qt+" GX"]],[/\bopr\/([\w\.]+)/i],[Ot,[ht,qt]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[Ot,[ht,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[ht,Ot],[/quark(?:pc)?\/([-\w\.]+)/i],[Ot,[ht,"Quark"]],[/\bddg\/([\w\.]+)/i],[Ot,[ht,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[Ot,[ht,"UC"+jt]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[Ot,[ht,"WeChat"]],[/konqueror\/([\w\.]+)/i],[Ot,[ht,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[Ot,[ht,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[Ot,[ht,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[Ot,[ht,"Smart Lenovo "+jt]],[/(avast|avg)\/([\w\.]+)/i],[[ht,/(.+)/,"$1 Secure "+jt],Ot],[/\bfocus\/([\w\.]+)/i],[Ot,[ht,Yt+" Focus"]],[/\bopt\/([\w\.]+)/i],[Ot,[ht,qt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[Ot,[ht,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[Ot,[ht,"Dolphin"]],[/coast\/([\w\.]+)/i],[Ot,[ht,qt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[Ot,[ht,"MIUI "+jt]],[/fxios\/([-\w\.]+)/i],[Ot,[ht,Yt]],[/\bqihu|(qi?ho?o?|360)browser/i],[[ht,"360"+It]],[/\b(qq)\/([\w\.]+)/i],[[ht,/(.+)/,"$1Browser"],Ot],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[ht,/(.+)/,"$1"+It],Ot],[/samsungbrowser\/([\w\.]+)/i],[Ot,[ht,Dt+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[ht,/_/g," "],Ot],[/metasr[\/ ]?([\d\.]+)/i],[Ot,[ht,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[ht,"Sogou Mobile"],Ot],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[ht,Ot],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[ht],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[ht,f0],Ot],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[ht,Ot],[/\bgsa\/([\w\.]+) .*safari\//i],[Ot,[ht,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[Ot,[ht,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[Ot,[ht,s0+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[ht,s0+" WebView"],Ot],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[Ot,[ht,"Android "+jt]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[ht,Ot],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[Ot,[ht,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[Ot,ht],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[ht,[Ot,c0,u0]],[/(webkit|khtml)\/([\w\.]+)/i],[ht,Ot],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[ht,"Netscape"],Ot],[/(wolvic)\/([\w\.]+)/i],[ht,Ot],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[Ot,[ht,Yt+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[ht,[Ot,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[ht,[Ot,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[zt,"amd64"]],[/(ia32(?=;))/i],[[zt,Pt]],[/((?:i[346]|x)86)[;\)]/i],[[zt,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[zt,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[zt,"armhf"]],[/windows (ce|mobile); ppc;/i],[[zt,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[zt,/ower/,at,Pt]],[/(sun4\w)[;\)]/i],[[zt,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[zt,Pt]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[bt,[mt,Dt],[Mt,At]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[bt,[mt,Dt],[Mt,vt]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[bt,[mt,wt],[Mt,vt]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[bt,[mt,wt],[Mt,At]],[/(macintosh);/i],[bt,[mt,wt]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[bt,[mt,Bt],[Mt,vt]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[bt,[mt,a0],[Mt,At]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[bt,[mt,a0],[Mt,vt]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[bt,/_/g," "],[mt,r0],[Mt,vt]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[bt,/_/g," "],[mt,r0],[Mt,At]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[bt,[mt,"OPPO"],[Mt,vt]],[/\b(opd2\d{3}a?) bui/i],[bt,[mt,"OPPO"],[Mt,At]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[bt,[mt,"Vivo"],[Mt,vt]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[bt,[mt,"Realme"],[Mt,vt]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[bt,[mt,o0],[Mt,vt]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[bt,[mt,o0],[Mt,At]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[bt,[mt,b0],[Mt,At]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[bt,[mt,b0],[Mt,vt]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[bt,[mt,"Lenovo"],[Mt,At]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[bt,/_/g," "],[mt,"Nokia"],[Mt,vt]],[/(pixel c)\b/i],[bt,[mt,O0],[Mt,At]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[bt,[mt,O0],[Mt,vt]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[bt,[mt,p0],[Mt,vt]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[bt,"Xperia Tablet"],[mt,p0],[Mt,At]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[bt,[mt,"OnePlus"],[Mt,vt]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[bt,[mt,Ct],[Mt,At]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[bt,/(.+)/g,"Fire Phone $1"],[mt,Ct],[Mt,vt]],[/(playbook);[-\w\),; ]+(rim)/i],[bt,mt,[Mt,At]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[bt,[mt,Ht],[Mt,vt]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[bt,[mt,Lt],[Mt,At]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[bt,[mt,Lt],[Mt,vt]],[/(nexus 9)/i],[bt,[mt,"HTC"],[Mt,At]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[mt,[bt,/_/g," "],[Mt,vt]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[bt,[mt,"TCL"],[Mt,At]],[/(itel) ((\w+))/i],[[mt,Pt],bt,[Mt,c0,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[bt,[mt,"Acer"],[Mt,At]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[bt,[mt,"Meizu"],[Mt,vt]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[bt,[mt,"Ulefone"],[Mt,vt]],[/droid.+; (a(?:015|06[35]|142p?))/i],[bt,[mt,"Nothing"],[Mt,vt]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[mt,bt,[Mt,vt]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[mt,bt,[Mt,At]],[/(surface duo)/i],[bt,[mt,kt],[Mt,At]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[bt,[mt,"Fairphone"],[Mt,vt]],[/(u304aa)/i],[bt,[mt,"AT&T"],[Mt,vt]],[/\bsie-(\w*)/i],[bt,[mt,"Siemens"],[Mt,vt]],[/\b(rct\w+) b/i],[bt,[mt,"RCA"],[Mt,At]],[/\b(venue[\d ]{2,7}) b/i],[bt,[mt,"Dell"],[Mt,At]],[/\b(q(?:mv|ta)\w+) b/i],[bt,[mt,"Verizon"],[Mt,At]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[bt,[mt,"Barnes & Noble"],[Mt,At]],[/\b(tm\d{3}\w+) b/i],[bt,[mt,"NuVision"],[Mt,At]],[/\b(k88) b/i],[bt,[mt,"ZTE"],[Mt,At]],[/\b(nx\d{3}j) b/i],[bt,[mt,"ZTE"],[Mt,vt]],[/\b(gen\d{3}) b.+49h/i],[bt,[mt,"Swiss"],[Mt,vt]],[/\b(zur\d{3}) b/i],[bt,[mt,"Swiss"],[Mt,At]],[/\b((zeki)?tb.*\b) b/i],[bt,[mt,"Zeki"],[Mt,At]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[mt,"Dragon Touch"],bt,[Mt,At]],[/\b(ns-?\w{0,9}) b/i],[bt,[mt,"Insignia"],[Mt,At]],[/\b((nxa|next)-?\w{0,9}) b/i],[bt,[mt,"NextBook"],[Mt,At]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[mt,"Voice"],bt,[Mt,vt]],[/\b(lvtel\-)?(v1[12]) b/i],[[mt,"LvTel"],bt,[Mt,vt]],[/\b(ph-1) /i],[bt,[mt,"Essential"],[Mt,vt]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[bt,[mt,"Envizen"],[Mt,At]],[/\b(trio[-\w\. ]+) b/i],[bt,[mt,"MachSpeed"],[Mt,At]],[/\btu_(1491) b/i],[bt,[mt,"Rotor"],[Mt,At]],[/(shield[\w ]+) b/i],[bt,[mt,"Nvidia"],[Mt,At]],[/(sprint) (\w+)/i],[mt,bt,[Mt,vt]],[/(kin\.[onetw]{3})/i],[[bt,/\./g," "],[mt,kt],[Mt,vt]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[bt,[mt,l0],[Mt,At]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[bt,[mt,l0],[Mt,vt]],[/smart-tv.+(samsung)/i],[mt,[Mt,St]],[/hbbtv.+maple;(\d+)/i],[[bt,/^/,"SmartTV"],[mt,Dt],[Mt,St]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[mt,b0],[Mt,St]],[/(apple) ?tv/i],[mt,[bt,wt+" TV"],[Mt,St]],[/crkey/i],[[bt,s0+"cast"],[mt,O0],[Mt,St]],[/droid.+aft(\w+)( bui|\))/i],[bt,[mt,Ct],[Mt,St]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[bt,[mt,Bt],[Mt,St]],[/(bravia[\w ]+)( bui|\))/i],[bt,[mt,p0],[Mt,St]],[/(mitv-\w{5}) bui/i],[bt,[mt,r0],[Mt,St]],[/Hbbtv.*(technisat) (.*);/i],[mt,bt,[Mt,St]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[mt,Kt],[bt,Kt],[Mt,St]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[Mt,St]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[mt,bt,[Mt,yt]],[/droid.+; (shield) bui/i],[bt,[mt,"Nvidia"],[Mt,yt]],[/(playstation [345portablevi]+)/i],[bt,[mt,p0],[Mt,yt]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[bt,[mt,kt],[Mt,yt]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[bt,[mt,Dt],[Mt,Et]],[/((pebble))app/i],[mt,bt,[Mt,Et]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[bt,[mt,wt],[Mt,Et]],[/droid.+; (glass) \d/i],[bt,[mt,O0],[Mt,Et]],[/droid.+; (wt63?0{2,3})\)/i],[bt,[mt,l0],[Mt,Et]],[/(quest( \d| pro)?)/i],[bt,[mt,f0],[Mt,Et]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[mt,[Mt,Tt]],[/(aeobc)\b/i],[bt,[mt,Ct],[Mt,Tt]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[bt,[Mt,vt]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[bt,[Mt,At]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[Mt,At]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[Mt,vt]],[/(android[-\w\. ]{0,9});.+buil/i],[bt,[mt,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[Ot,[ht,Ut+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[Ot,[ht,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[ht,Ot],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[Ot,ht]],os:[[/microsoft (windows) (vista|xp)/i],[ht,Ot],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[ht,[Ot,c0,y0]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[Ot,c0,y0],[ht,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[Ot,/_/g,"."],[ht,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[ht,$t],[Ot,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[Ot,ht],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[ht,Ot],[/\(bb(10);/i],[Ot,[ht,Ht]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[Ot,[ht,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[Ot,[ht,Yt+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[Ot,[ht,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[Ot,[ht,"watchOS"]],[/crkey\/([\d\.]+)/i],[Ot,[ht,s0+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[ht,i0],Ot],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[ht,Ot],[/(sunos) ?([\w\.\d]*)/i],[[ht,"Solaris"],Ot],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[ht,Ot]]},S0=function(e0,Nt){if(typeof e0===pt&&(Nt=e0,e0=rt),!(this instanceof S0))return new S0(e0,Nt).getResult();var Xt=typeof et!==ct&&et.navigator?et.navigator:rt,d0=e0||(Xt&&Xt.userAgent?Xt.userAgent:at),z0=Xt&&Xt.userAgentData?Xt.userAgentData:rt,w0=Nt?Vt(D0,Nt):D0,E0=Xt&&Xt.userAgent==d0;return this.getBrowser=function(){var g0={};return g0[ht]=rt,g0[Ot]=rt,n0.call(g0,d0,w0.browser),g0[ft]=Zt(g0[Ot]),E0&&Xt&&Xt.brave&&typeof Xt.brave.isBrave==ut&&(g0[ht]="Brave"),g0},this.getCPU=function(){var g0={};return g0[zt]=rt,n0.call(g0,d0,w0.cpu),g0},this.getDevice=function(){var g0={};return g0[mt]=rt,g0[bt]=rt,g0[Mt]=rt,n0.call(g0,d0,w0.device),E0&&!g0[Mt]&&z0&&z0.mobile&&(g0[Mt]=vt),E0&&g0[bt]=="Macintosh"&&Xt&&typeof Xt.standalone!==ct&&Xt.maxTouchPoints&&Xt.maxTouchPoints>2&&(g0[bt]="iPad",g0[Mt]=At),g0},this.getEngine=function(){var g0={};return g0[ht]=rt,g0[Ot]=rt,n0.call(g0,d0,w0.engine),g0},this.getOS=function(){var g0={};return g0[ht]=rt,g0[Ot]=rt,n0.call(g0,d0,w0.os),E0&&!g0[ht]&&z0&&z0.platform&&z0.platform!="Unknown"&&(g0[ht]=z0.platform.replace(/chrome os/i,i0).replace(/macos/i,$t)),g0},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return d0},this.setUA=function(g0){return d0=typeof g0===dt&&g0.length>Rt?Kt(g0,Rt):g0,this},this.setUA(d0),this};S0.VERSION=ot,S0.BROWSER=xt([ht,Ot,ft]),S0.CPU=xt([zt]),S0.DEVICE=xt([bt,mt,Mt,yt,vt,St,At,Et,Tt]),S0.ENGINE=S0.OS=xt([ht,Ot]),tt.exports&&(nt=tt.exports=S0),nt.UAParser=S0;var x0=typeof et!==ct&&(et.jQuery||et.Zepto);if(x0&&!x0.ua){var m0=new S0;x0.ua=m0.getResult(),x0.ua.get=function(){return m0.getUA()},x0.ua.set=function(e0){m0.setUA(e0);var Nt=m0.getResult();for(var Xt in Nt)x0.ua[Xt]=Nt[Xt]}}})(typeof window=="object"?window:commonjsGlobal$1)})(uaParser_min,uaParser_min.exports);var uaParser_minExports=uaParser_min.exports;Object.defineProperty(lib$1,"__esModule",{value:!0});function _interopDefault(tt){return tt&&typeof tt=="object"&&"default"in tt?tt.default:tt}var React=reactExports,React__default=_interopDefault(React),UAParser$1=uaParser_minExports,ClientUAInstance=new UAParser$1,browser=ClientUAInstance.getBrowser(),cpu=ClientUAInstance.getCPU(),device=ClientUAInstance.getDevice(),engine$1=ClientUAInstance.getEngine(),os=ClientUAInstance.getOS(),ua=ClientUAInstance.getUA(),setUa=function tt(nt){return ClientUAInstance.setUA(nt)},parseUserAgent=function tt(nt){if(!nt){console.error("No userAgent string was provided");return}var et=new UAParser$1(nt);return{UA:et,browser:et.getBrowser(),cpu:et.getCPU(),device:et.getDevice(),engine:et.getEngine(),os:et.getOS(),ua:et.getUA(),setUserAgent:function(ot){return et.setUA(ot)}}},UAHelper=Object.freeze({ClientUAInstance,browser,cpu,device,engine:engine$1,os,ua,setUa,parseUserAgent});function ownKeys$a(tt,nt){var et=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);nt&&(rt=rt.filter(function(ot){return Object.getOwnPropertyDescriptor(tt,ot).enumerable})),et.push.apply(et,rt)}return et}function _objectSpread2(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt]!=null?arguments[nt]:{};nt%2?ownKeys$a(Object(et),!0).forEach(function(rt){_defineProperty$c(tt,rt,et[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(et)):ownKeys$a(Object(et)).forEach(function(rt){Object.defineProperty(tt,rt,Object.getOwnPropertyDescriptor(et,rt))})}return tt}function _typeof$6(tt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(nt){return typeof nt}:_typeof$6=function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},_typeof$6(tt)}function _classCallCheck$5(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(tt,nt){for(var et=0;et<nt.length;et++){var rt=nt[et];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(tt,rt.key,rt)}}function _createClass$5(tt,nt,et){return nt&&_defineProperties$5(tt.prototype,nt),tt}function _defineProperty$c(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}function _extends$h(){return _extends$h=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_extends$h.apply(this,arguments)}function _inherits$5(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function");tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,writable:!0,configurable:!0}}),nt&&_setPrototypeOf$5(tt,nt)}function _getPrototypeOf$5(tt){return _getPrototypeOf$5=Object.setPrototypeOf?Object.getPrototypeOf:function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$5(tt)}function _setPrototypeOf$5(tt,nt){return _setPrototypeOf$5=Object.setPrototypeOf||function(rt,ot){return rt.__proto__=ot,rt},_setPrototypeOf$5(tt,nt)}function _objectWithoutPropertiesLoose$f(tt,nt){if(tt==null)return{};var et={},rt=Object.keys(tt),ot,at;for(at=0;at<rt.length;at++)ot=rt[at],!(nt.indexOf(ot)>=0)&&(et[ot]=tt[ot]);return et}function _objectWithoutProperties$f(tt,nt){if(tt==null)return{};var et=_objectWithoutPropertiesLoose$f(tt,nt),rt,ot;if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(tt);for(ot=0;ot<at.length;ot++)rt=at[ot],!(nt.indexOf(rt)>=0)&&Object.prototype.propertyIsEnumerable.call(tt,rt)&&(et[rt]=tt[rt])}return et}function _assertThisInitialized$5(tt){if(tt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt}function _possibleConstructorReturn$5(tt,nt){if(nt&&(typeof nt=="object"||typeof nt=="function"))return nt;if(nt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$5(tt)}function _slicedToArray$d(tt,nt){return _arrayWithHoles$d(tt)||_iterableToArrayLimit$d(tt,nt)||_unsupportedIterableToArray$d(tt,nt)||_nonIterableRest$d()}function _arrayWithHoles$d(tt){if(Array.isArray(tt))return tt}function _iterableToArrayLimit$d(tt,nt){var et=tt==null?null:typeof Symbol<"u"&&tt[Symbol.iterator]||tt["@@iterator"];if(et!=null){var rt=[],ot=!0,at=!1,st,ut;try{for(et=et.call(tt);!(ot=(st=et.next()).done)&&(rt.push(st.value),!(nt&&rt.length===nt));ot=!0);}catch(ct){at=!0,ut=ct}finally{try{!ot&&et.return!=null&&et.return()}finally{if(at)throw ut}}return rt}}function _unsupportedIterableToArray$d(tt,nt){if(tt){if(typeof tt=="string")return _arrayLikeToArray$d(tt,nt);var et=Object.prototype.toString.call(tt).slice(8,-1);if(et==="Object"&&tt.constructor&&(et=tt.constructor.name),et==="Map"||et==="Set")return Array.from(tt);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$d(tt,nt)}}function _arrayLikeToArray$d(tt,nt){(nt==null||nt>tt.length)&&(nt=tt.length);for(var et=0,rt=new Array(nt);et<nt;et++)rt[et]=tt[et];return rt}function _nonIterableRest$d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
709
+ `),React$1.createElement("div",{style:dt.white,className:"saturation-white"},React$1.createElement("div",{style:dt.black,className:"saturation-black"}),React$1.createElement("div",{style:dt.pointer},this.props.pointer?React$1.createElement(this.props.pointer,this.props):React$1.createElement("div",{style:dt.circle}))))}}]),nt}(reactExports.PureComponent||reactExports.Component);function arrayEach(tt,nt){for(var et=-1,rt=tt==null?0:tt.length;++et<rt&&nt(tt[et],et,tt)!==!1;);return tt}var nativeKeys=overArg(Object.keys,Object),objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function baseKeys(tt){if(!isPrototype(tt))return nativeKeys(tt);var nt=[];for(var et in Object(tt))hasOwnProperty$4.call(tt,et)&&et!="constructor"&&nt.push(et);return nt}function keys(tt){return isArrayLike(tt)?arrayLikeKeys(tt):baseKeys(tt)}function baseForOwn$1(tt,nt){return tt&&baseFor(tt,nt,keys)}function createBaseEach(tt,nt){return function(et,rt){if(et==null)return et;if(!isArrayLike(et))return tt(et,rt);for(var ot=et.length,at=-1,st=Object(et);++at<ot&&rt(st[at],at,st)!==!1;);return et}}var baseEach$1=createBaseEach(baseForOwn$1);function castFunction(tt){return typeof tt=="function"?tt:identity$1}function forEach$1(tt,nt){var et=isArray$3(tt)?arrayEach:baseEach$1;return et(tt,castFunction(nt))}function _typeof$7(tt){"@babel/helpers - typeof";return _typeof$7=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},_typeof$7(tt)}var trimLeft=/^\s+/,trimRight=/\s+$/;function tinycolor(tt,nt){if(tt=tt||"",nt=nt||{},tt instanceof tinycolor)return tt;if(!(this instanceof tinycolor))return new tinycolor(tt,nt);var et=inputToRGB(tt);this._originalInput=tt,this._r=et.r,this._g=et.g,this._b=et.b,this._a=et.a,this._roundA=Math.round(100*this._a)/100,this._format=nt.format||et.format,this._gradientType=nt.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=et.ok}tinycolor.prototype={isDark:function tt(){return this.getBrightness()<128},isLight:function tt(){return!this.isDark()},isValid:function tt(){return this._ok},getOriginalInput:function tt(){return this._originalInput},getFormat:function tt(){return this._format},getAlpha:function tt(){return this._a},getBrightness:function tt(){var nt=this.toRgb();return(nt.r*299+nt.g*587+nt.b*114)/1e3},getLuminance:function tt(){var nt=this.toRgb(),et,rt,ot,at,st,ut;return et=nt.r/255,rt=nt.g/255,ot=nt.b/255,et<=.03928?at=et/12.92:at=Math.pow((et+.055)/1.055,2.4),rt<=.03928?st=rt/12.92:st=Math.pow((rt+.055)/1.055,2.4),ot<=.03928?ut=ot/12.92:ut=Math.pow((ot+.055)/1.055,2.4),.2126*at+.7152*st+.0722*ut},setAlpha:function tt(nt){return this._a=boundAlpha(nt),this._roundA=Math.round(100*this._a)/100,this},toHsv:function tt(){var nt=rgbToHsv(this._r,this._g,this._b);return{h:nt.h*360,s:nt.s,v:nt.v,a:this._a}},toHsvString:function tt(){var nt=rgbToHsv(this._r,this._g,this._b),et=Math.round(nt.h*360),rt=Math.round(nt.s*100),ot=Math.round(nt.v*100);return this._a==1?"hsv("+et+", "+rt+"%, "+ot+"%)":"hsva("+et+", "+rt+"%, "+ot+"%, "+this._roundA+")"},toHsl:function tt(){var nt=rgbToHsl(this._r,this._g,this._b);return{h:nt.h*360,s:nt.s,l:nt.l,a:this._a}},toHslString:function tt(){var nt=rgbToHsl(this._r,this._g,this._b),et=Math.round(nt.h*360),rt=Math.round(nt.s*100),ot=Math.round(nt.l*100);return this._a==1?"hsl("+et+", "+rt+"%, "+ot+"%)":"hsla("+et+", "+rt+"%, "+ot+"%, "+this._roundA+")"},toHex:function tt(nt){return rgbToHex(this._r,this._g,this._b,nt)},toHexString:function tt(nt){return"#"+this.toHex(nt)},toHex8:function tt(nt){return rgbaToHex(this._r,this._g,this._b,this._a,nt)},toHex8String:function tt(nt){return"#"+this.toHex8(nt)},toRgb:function tt(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function tt(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function tt(){return{r:Math.round(bound01(this._r,255)*100)+"%",g:Math.round(bound01(this._g,255)*100)+"%",b:Math.round(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function tt(){return this._a==1?"rgb("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%)":"rgba("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function tt(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function tt(nt){var et="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),rt=et,ot=this._gradientType?"GradientType = 1, ":"";if(nt){var at=tinycolor(nt);rt="#"+rgbaToArgbHex(at._r,at._g,at._b,at._a)}return"progid:DXImageTransform.Microsoft.gradient("+ot+"startColorstr="+et+",endColorstr="+rt+")"},toString:function tt(nt){var et=!!nt;nt=nt||this._format;var rt=!1,ot=this._a<1&&this._a>=0,at=!et&&ot&&(nt==="hex"||nt==="hex6"||nt==="hex3"||nt==="hex4"||nt==="hex8"||nt==="name");return at?nt==="name"&&this._a===0?this.toName():this.toRgbString():(nt==="rgb"&&(rt=this.toRgbString()),nt==="prgb"&&(rt=this.toPercentageRgbString()),(nt==="hex"||nt==="hex6")&&(rt=this.toHexString()),nt==="hex3"&&(rt=this.toHexString(!0)),nt==="hex4"&&(rt=this.toHex8String(!0)),nt==="hex8"&&(rt=this.toHex8String()),nt==="name"&&(rt=this.toName()),nt==="hsl"&&(rt=this.toHslString()),nt==="hsv"&&(rt=this.toHsvString()),rt||this.toHexString())},clone:function tt(){return tinycolor(this.toString())},_applyModification:function tt(nt,et){var rt=nt.apply(null,[this].concat([].slice.call(et)));return this._r=rt._r,this._g=rt._g,this._b=rt._b,this.setAlpha(rt._a),this},lighten:function tt(){return this._applyModification(_lighten,arguments)},brighten:function tt(){return this._applyModification(_brighten,arguments)},darken:function tt(){return this._applyModification(_darken,arguments)},desaturate:function tt(){return this._applyModification(_desaturate,arguments)},saturate:function tt(){return this._applyModification(_saturate,arguments)},greyscale:function tt(){return this._applyModification(_greyscale,arguments)},spin:function tt(){return this._applyModification(_spin,arguments)},_applyCombination:function tt(nt,et){return nt.apply(null,[this].concat([].slice.call(et)))},analogous:function tt(){return this._applyCombination(_analogous,arguments)},complement:function tt(){return this._applyCombination(_complement,arguments)},monochromatic:function tt(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function tt(){return this._applyCombination(_splitcomplement,arguments)},triad:function tt(){return this._applyCombination(polyad,[3])},tetrad:function tt(){return this._applyCombination(polyad,[4])}};tinycolor.fromRatio=function(tt,nt){if(_typeof$7(tt)=="object"){var et={};for(var rt in tt)tt.hasOwnProperty(rt)&&(rt==="a"?et[rt]=tt[rt]:et[rt]=convertToPercentage(tt[rt]));tt=et}return tinycolor(tt,nt)};function inputToRGB(tt){var nt={r:0,g:0,b:0},et=1,rt=null,ot=null,at=null,st=!1,ut=!1;return typeof tt=="string"&&(tt=stringInputToObject(tt)),_typeof$7(tt)=="object"&&(isValidCSSUnit(tt.r)&&isValidCSSUnit(tt.g)&&isValidCSSUnit(tt.b)?(nt=rgbToRgb(tt.r,tt.g,tt.b),st=!0,ut=String(tt.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(tt.h)&&isValidCSSUnit(tt.s)&&isValidCSSUnit(tt.v)?(rt=convertToPercentage(tt.s),ot=convertToPercentage(tt.v),nt=hsvToRgb(tt.h,rt,ot),st=!0,ut="hsv"):isValidCSSUnit(tt.h)&&isValidCSSUnit(tt.s)&&isValidCSSUnit(tt.l)&&(rt=convertToPercentage(tt.s),at=convertToPercentage(tt.l),nt=hslToRgb(tt.h,rt,at),st=!0,ut="hsl"),tt.hasOwnProperty("a")&&(et=tt.a)),et=boundAlpha(et),{ok:st,format:tt.format||ut,r:Math.min(255,Math.max(nt.r,0)),g:Math.min(255,Math.max(nt.g,0)),b:Math.min(255,Math.max(nt.b,0)),a:et}}function rgbToRgb(tt,nt,et){return{r:bound01(tt,255)*255,g:bound01(nt,255)*255,b:bound01(et,255)*255}}function rgbToHsl(tt,nt,et){tt=bound01(tt,255),nt=bound01(nt,255),et=bound01(et,255);var rt=Math.max(tt,nt,et),ot=Math.min(tt,nt,et),at,st,ut=(rt+ot)/2;if(rt==ot)at=st=0;else{var ct=rt-ot;switch(st=ut>.5?ct/(2-rt-ot):ct/(rt+ot),rt){case tt:at=(nt-et)/ct+(nt<et?6:0);break;case nt:at=(et-tt)/ct+2;break;case et:at=(tt-nt)/ct+4;break}at/=6}return{h:at,s:st,l:ut}}function hslToRgb(tt,nt,et){var rt,ot,at;tt=bound01(tt,360),nt=bound01(nt,100),et=bound01(et,100);function st(pt,dt,ft){return ft<0&&(ft+=1),ft>1&&(ft-=1),ft<1/6?pt+(dt-pt)*6*ft:ft<1/2?dt:ft<2/3?pt+(dt-pt)*(2/3-ft)*6:pt}if(nt===0)rt=ot=at=et;else{var ut=et<.5?et*(1+nt):et+nt-et*nt,ct=2*et-ut;rt=st(ct,ut,tt+1/3),ot=st(ct,ut,tt),at=st(ct,ut,tt-1/3)}return{r:rt*255,g:ot*255,b:at*255}}function rgbToHsv(tt,nt,et){tt=bound01(tt,255),nt=bound01(nt,255),et=bound01(et,255);var rt=Math.max(tt,nt,et),ot=Math.min(tt,nt,et),at,st,ut=rt,ct=rt-ot;if(st=rt===0?0:ct/rt,rt==ot)at=0;else{switch(rt){case tt:at=(nt-et)/ct+(nt<et?6:0);break;case nt:at=(et-tt)/ct+2;break;case et:at=(tt-nt)/ct+4;break}at/=6}return{h:at,s:st,v:ut}}function hsvToRgb(tt,nt,et){tt=bound01(tt,360)*6,nt=bound01(nt,100),et=bound01(et,100);var rt=Math.floor(tt),ot=tt-rt,at=et*(1-nt),st=et*(1-ot*nt),ut=et*(1-(1-ot)*nt),ct=rt%6,pt=[et,st,at,at,ut,et][ct],dt=[ut,et,et,st,at,at][ct],ft=[at,at,ut,et,et,st][ct];return{r:pt*255,g:dt*255,b:ft*255}}function rgbToHex(tt,nt,et,rt){var ot=[pad2(Math.round(tt).toString(16)),pad2(Math.round(nt).toString(16)),pad2(Math.round(et).toString(16))];return rt&&ot[0].charAt(0)==ot[0].charAt(1)&&ot[1].charAt(0)==ot[1].charAt(1)&&ot[2].charAt(0)==ot[2].charAt(1)?ot[0].charAt(0)+ot[1].charAt(0)+ot[2].charAt(0):ot.join("")}function rgbaToHex(tt,nt,et,rt,ot){var at=[pad2(Math.round(tt).toString(16)),pad2(Math.round(nt).toString(16)),pad2(Math.round(et).toString(16)),pad2(convertDecimalToHex(rt))];return ot&&at[0].charAt(0)==at[0].charAt(1)&&at[1].charAt(0)==at[1].charAt(1)&&at[2].charAt(0)==at[2].charAt(1)&&at[3].charAt(0)==at[3].charAt(1)?at[0].charAt(0)+at[1].charAt(0)+at[2].charAt(0)+at[3].charAt(0):at.join("")}function rgbaToArgbHex(tt,nt,et,rt){var ot=[pad2(convertDecimalToHex(rt)),pad2(Math.round(tt).toString(16)),pad2(Math.round(nt).toString(16)),pad2(Math.round(et).toString(16))];return ot.join("")}tinycolor.equals=function(tt,nt){return!tt||!nt?!1:tinycolor(tt).toRgbString()==tinycolor(nt).toRgbString()};tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function _desaturate(tt,nt){nt=nt===0?0:nt||10;var et=tinycolor(tt).toHsl();return et.s-=nt/100,et.s=clamp01(et.s),tinycolor(et)}function _saturate(tt,nt){nt=nt===0?0:nt||10;var et=tinycolor(tt).toHsl();return et.s+=nt/100,et.s=clamp01(et.s),tinycolor(et)}function _greyscale(tt){return tinycolor(tt).desaturate(100)}function _lighten(tt,nt){nt=nt===0?0:nt||10;var et=tinycolor(tt).toHsl();return et.l+=nt/100,et.l=clamp01(et.l),tinycolor(et)}function _brighten(tt,nt){nt=nt===0?0:nt||10;var et=tinycolor(tt).toRgb();return et.r=Math.max(0,Math.min(255,et.r-Math.round(255*-(nt/100)))),et.g=Math.max(0,Math.min(255,et.g-Math.round(255*-(nt/100)))),et.b=Math.max(0,Math.min(255,et.b-Math.round(255*-(nt/100)))),tinycolor(et)}function _darken(tt,nt){nt=nt===0?0:nt||10;var et=tinycolor(tt).toHsl();return et.l-=nt/100,et.l=clamp01(et.l),tinycolor(et)}function _spin(tt,nt){var et=tinycolor(tt).toHsl(),rt=(et.h+nt)%360;return et.h=rt<0?360+rt:rt,tinycolor(et)}function _complement(tt){var nt=tinycolor(tt).toHsl();return nt.h=(nt.h+180)%360,tinycolor(nt)}function polyad(tt,nt){if(isNaN(nt)||nt<=0)throw new Error("Argument to polyad must be a positive number");for(var et=tinycolor(tt).toHsl(),rt=[tinycolor(tt)],ot=360/nt,at=1;at<nt;at++)rt.push(tinycolor({h:(et.h+at*ot)%360,s:et.s,l:et.l}));return rt}function _splitcomplement(tt){var nt=tinycolor(tt).toHsl(),et=nt.h;return[tinycolor(tt),tinycolor({h:(et+72)%360,s:nt.s,l:nt.l}),tinycolor({h:(et+216)%360,s:nt.s,l:nt.l})]}function _analogous(tt,nt,et){nt=nt||6,et=et||30;var rt=tinycolor(tt).toHsl(),ot=360/et,at=[tinycolor(tt)];for(rt.h=(rt.h-(ot*nt>>1)+720)%360;--nt;)rt.h=(rt.h+ot)%360,at.push(tinycolor(rt));return at}function _monochromatic(tt,nt){nt=nt||6;for(var et=tinycolor(tt).toHsv(),rt=et.h,ot=et.s,at=et.v,st=[],ut=1/nt;nt--;)st.push(tinycolor({h:rt,s:ot,v:at})),at=(at+ut)%1;return st}tinycolor.mix=function(tt,nt,et){et=et===0?0:et||50;var rt=tinycolor(tt).toRgb(),ot=tinycolor(nt).toRgb(),at=et/100,st={r:(ot.r-rt.r)*at+rt.r,g:(ot.g-rt.g)*at+rt.g,b:(ot.b-rt.b)*at+rt.b,a:(ot.a-rt.a)*at+rt.a};return tinycolor(st)};tinycolor.readability=function(tt,nt){var et=tinycolor(tt),rt=tinycolor(nt);return(Math.max(et.getLuminance(),rt.getLuminance())+.05)/(Math.min(et.getLuminance(),rt.getLuminance())+.05)};tinycolor.isReadable=function(tt,nt,et){var rt=tinycolor.readability(tt,nt),ot,at;switch(at=!1,ot=validateWCAG2Parms(et),ot.level+ot.size){case"AAsmall":case"AAAlarge":at=rt>=4.5;break;case"AAlarge":at=rt>=3;break;case"AAAsmall":at=rt>=7;break}return at};tinycolor.mostReadable=function(tt,nt,et){var rt=null,ot=0,at,st,ut,ct;et=et||{},st=et.includeFallbackColors,ut=et.level,ct=et.size;for(var pt=0;pt<nt.length;pt++)at=tinycolor.readability(tt,nt[pt]),at>ot&&(ot=at,rt=tinycolor(nt[pt]));return tinycolor.isReadable(tt,rt,{level:ut,size:ct})||!st?rt:(et.includeFallbackColors=!1,tinycolor.mostReadable(tt,["#fff","#000"],et))};var names=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hexNames=tinycolor.hexNames=flip(names);function flip(tt){var nt={};for(var et in tt)tt.hasOwnProperty(et)&&(nt[tt[et]]=et);return nt}function boundAlpha(tt){return tt=parseFloat(tt),(isNaN(tt)||tt<0||tt>1)&&(tt=1),tt}function bound01(tt,nt){isOnePointZero(tt)&&(tt="100%");var et=isPercentage(tt);return tt=Math.min(nt,Math.max(0,parseFloat(tt))),et&&(tt=parseInt(tt*nt,10)/100),Math.abs(tt-nt)<1e-6?1:tt%nt/parseFloat(nt)}function clamp01(tt){return Math.min(1,Math.max(0,tt))}function parseIntFromHex(tt){return parseInt(tt,16)}function isOnePointZero(tt){return typeof tt=="string"&&tt.indexOf(".")!=-1&&parseFloat(tt)===1}function isPercentage(tt){return typeof tt=="string"&&tt.indexOf("%")!=-1}function pad2(tt){return tt.length==1?"0"+tt:""+tt}function convertToPercentage(tt){return tt<=1&&(tt=tt*100+"%"),tt}function convertDecimalToHex(tt){return Math.round(parseFloat(tt)*255).toString(16)}function convertHexToDecimal(tt){return parseIntFromHex(tt)/255}var matchers=function(){var tt="[-\\+]?\\d+%?",nt="[-\\+]?\\d*\\.\\d+%?",et="(?:"+nt+")|(?:"+tt+")",rt="[\\s|\\(]+("+et+")[,|\\s]+("+et+")[,|\\s]+("+et+")\\s*\\)?",ot="[\\s|\\(]+("+et+")[,|\\s]+("+et+")[,|\\s]+("+et+")[,|\\s]+("+et+")\\s*\\)?";return{CSS_UNIT:new RegExp(et),rgb:new RegExp("rgb"+rt),rgba:new RegExp("rgba"+ot),hsl:new RegExp("hsl"+rt),hsla:new RegExp("hsla"+ot),hsv:new RegExp("hsv"+rt),hsva:new RegExp("hsva"+ot),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function isValidCSSUnit(tt){return!!matchers.CSS_UNIT.exec(tt)}function stringInputToObject(tt){tt=tt.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var nt=!1;if(names[tt])tt=names[tt],nt=!0;else if(tt=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var et;return(et=matchers.rgb.exec(tt))?{r:et[1],g:et[2],b:et[3]}:(et=matchers.rgba.exec(tt))?{r:et[1],g:et[2],b:et[3],a:et[4]}:(et=matchers.hsl.exec(tt))?{h:et[1],s:et[2],l:et[3]}:(et=matchers.hsla.exec(tt))?{h:et[1],s:et[2],l:et[3],a:et[4]}:(et=matchers.hsv.exec(tt))?{h:et[1],s:et[2],v:et[3]}:(et=matchers.hsva.exec(tt))?{h:et[1],s:et[2],v:et[3],a:et[4]}:(et=matchers.hex8.exec(tt))?{r:parseIntFromHex(et[1]),g:parseIntFromHex(et[2]),b:parseIntFromHex(et[3]),a:convertHexToDecimal(et[4]),format:nt?"name":"hex8"}:(et=matchers.hex6.exec(tt))?{r:parseIntFromHex(et[1]),g:parseIntFromHex(et[2]),b:parseIntFromHex(et[3]),format:nt?"name":"hex"}:(et=matchers.hex4.exec(tt))?{r:parseIntFromHex(et[1]+""+et[1]),g:parseIntFromHex(et[2]+""+et[2]),b:parseIntFromHex(et[3]+""+et[3]),a:convertHexToDecimal(et[4]+""+et[4]),format:nt?"name":"hex8"}:(et=matchers.hex3.exec(tt))?{r:parseIntFromHex(et[1]+""+et[1]),g:parseIntFromHex(et[2]+""+et[2]),b:parseIntFromHex(et[3]+""+et[3]),format:nt?"name":"hex"}:!1}function validateWCAG2Parms(tt){var nt,et;return tt=tt||{level:"AA",size:"small"},nt=(tt.level||"AA").toUpperCase(),et=(tt.size||"small").toLowerCase(),nt!=="AA"&&nt!=="AAA"&&(nt="AA"),et!=="small"&&et!=="large"&&(et="small"),{level:nt,size:et}}var simpleCheckForValidColor=function tt(nt){var et=["r","g","b","a","h","s","l","v"],rt=0,ot=0;return forEach$1(et,function(at){if(nt[at]&&(rt+=1,isNaN(nt[at])||(ot+=1),at==="s"||at==="l")){var st=/^\d+%$/;st.test(nt[at])&&(ot+=1)}}),rt===ot?nt:!1},toState=function tt(nt,et){var rt=nt.hex?tinycolor(nt.hex):tinycolor(nt),ot=rt.toHsl(),at=rt.toHsv(),st=rt.toRgb(),ut=rt.toHex();ot.s===0&&(ot.h=et||0,at.h=et||0);var ct=ut==="000000"&&st.a===0;return{hsl:ot,hex:ct?"transparent":"#"+ut,rgb:st,hsv:at,oldHue:nt.h||et||ot.h,source:nt.source}},isValidHex=function tt(nt){if(nt==="transparent")return!0;var et=String(nt).charAt(0)==="#"?1:0;return nt.length!==4+et&&nt.length<7+et&&tinycolor(nt).isValid()},getContrastingColor=function tt(nt){if(!nt)return"#fff";var et=toState(nt);if(et.hex==="transparent")return"rgba(0,0,0,0.4)";var rt=(et.rgb.r*299+et.rgb.g*587+et.rgb.b*114)/1e3;return rt>=128?"#000":"#fff"},isvalidColorString=function tt(nt,et){var rt=nt.replace("°","");return tinycolor(et+" ("+rt+")")._ok},_extends$q=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_createClass$9=function(){function tt(nt,et){for(var rt=0;rt<et.length;rt++){var ot=et[rt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(nt,ot.key,ot)}}return function(nt,et,rt){return et&&tt(nt.prototype,et),rt&&tt(nt,rt),nt}}();function _classCallCheck$9(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$9(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$9(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var ColorWrap=function tt(nt){var et=function(rt){_inherits$9(ot,rt);function ot(at){_classCallCheck$9(this,ot);var st=_possibleConstructorReturn$9(this,(ot.__proto__||Object.getPrototypeOf(ot)).call(this));return st.handleChange=function(ut,ct){var pt=simpleCheckForValidColor(ut);if(pt){var dt=toState(ut,ut.h||st.state.oldHue);st.setState(dt),st.props.onChangeComplete&&st.debounce(st.props.onChangeComplete,dt,ct),st.props.onChange&&st.props.onChange(dt,ct)}},st.handleSwatchHover=function(ut,ct){var pt=simpleCheckForValidColor(ut);if(pt){var dt=toState(ut,ut.h||st.state.oldHue);st.props.onSwatchHover&&st.props.onSwatchHover(dt,ct)}},st.state=_extends$q({},toState(at.color,0)),st.debounce=debounce(function(ut,ct,pt){ut(ct,pt)},100),st}return _createClass$9(ot,[{key:"render",value:function(){var st={};return this.props.onSwatchHover&&(st.onSwatchHover=this.handleSwatchHover),React$1.createElement(nt,_extends$q({},this.props,this.state,{onChange:this.handleChange},st))}}],[{key:"getDerivedStateFromProps",value:function(st,ut){return _extends$q({},toState(st.color,ut.oldHue))}}]),ot}(reactExports.PureComponent||reactExports.Component);return et.propTypes=_extends$q({},nt.propTypes),et.defaultProps=_extends$q({},nt.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),et},_extends$p=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_createClass$8=function(){function tt(nt,et){for(var rt=0;rt<et.length;rt++){var ot=et[rt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(nt,ot.key,ot)}}return function(nt,et,rt){return et&&tt(nt.prototype,et),rt&&tt(nt,rt),nt}}();function _classCallCheck$8(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$8(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$8(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var handleFocus=function tt(nt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(rt){_inherits$8(ot,rt);function ot(){var at,st,ut,ct;_classCallCheck$8(this,ot);for(var pt=arguments.length,dt=Array(pt),ft=0;ft<pt;ft++)dt[ft]=arguments[ft];return ct=(st=(ut=_possibleConstructorReturn$8(this,(at=ot.__proto__||Object.getPrototypeOf(ot)).call.apply(at,[this].concat(dt))),ut),ut.state={focus:!1},ut.handleFocus=function(){return ut.setState({focus:!0})},ut.handleBlur=function(){return ut.setState({focus:!1})},st),_possibleConstructorReturn$8(ut,ct)}return _createClass$8(ot,[{key:"render",value:function(){return React$1.createElement(et,{onFocus:this.handleFocus,onBlur:this.handleBlur},React$1.createElement(nt,_extends$p({},this.props,this.state)))}}]),ot}(React$1.Component)},_extends$o=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},ENTER=13,Swatch=function tt(nt){var et=nt.color,rt=nt.style,ot=nt.onClick,at=ot===void 0?function(){}:ot,st=nt.onHover,ut=nt.title,ct=ut===void 0?et:ut,pt=nt.children,dt=nt.focus,ft=nt.focusStyle,bt=ft===void 0?{}:ft,ht=et==="transparent",Mt=_default$2({default:{swatch:_extends$o({background:et,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},rt,dt?bt:{})}}),mt=function(At){return at(et,At)},Ot=function(At){return At.keyCode===ENTER&&at(et,At)},zt=function(At){return st(et,At)},yt={};return st&&(yt.onMouseOver=zt),React$1.createElement("div",_extends$o({style:Mt.swatch,onClick:mt,title:ct,tabIndex:0,onKeyDown:Ot},yt),pt,ht&&React$1.createElement(Checkboard,{borderRadius:Mt.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const Swatch$1=handleFocus(Swatch);var AlphaPointer=function tt(nt){var et=nt.direction,rt=_default$2({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:et==="vertical"});return React$1.createElement("div",{style:rt.picker})},_extends$n=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},AlphaPicker=function tt(nt){var et=nt.rgb,rt=nt.hsl,ot=nt.width,at=nt.height,st=nt.onChange,ut=nt.direction,ct=nt.style,pt=nt.renderers,dt=nt.pointer,ft=nt.className,bt=ft===void 0?"":ft,ht=_default$2({default:{picker:{position:"relative",width:ot,height:at},alpha:{radius:"2px",style:ct}}});return React$1.createElement("div",{style:ht.picker,className:"alpha-picker "+bt},React$1.createElement(Alpha,_extends$n({},ht.alpha,{rgb:et,hsl:rt,pointer:dt,renderers:pt,onChange:st,direction:ut})))};AlphaPicker.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:AlphaPointer};ColorWrap(AlphaPicker);function arrayMap$2(tt,nt){for(var et=-1,rt=tt==null?0:tt.length,ot=Array(rt);++et<rt;)ot[et]=nt(tt[et],et,tt);return ot}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(tt){return this.__data__.set(tt,HASH_UNDEFINED),this}function setCacheHas(tt){return this.__data__.has(tt)}function SetCache$1(tt){var nt=-1,et=tt==null?0:tt.length;for(this.__data__=new MapCache;++nt<et;)this.add(tt[nt])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;function arraySome(tt,nt){for(var et=-1,rt=tt==null?0:tt.length;++et<rt;)if(nt(tt[et],et,tt))return!0;return!1}function cacheHas$1(tt,nt){return tt.has(nt)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(tt,nt,et,rt,ot,at){var st=et&COMPARE_PARTIAL_FLAG$5,ut=tt.length,ct=nt.length;if(ut!=ct&&!(st&&ct>ut))return!1;var pt=at.get(tt),dt=at.get(nt);if(pt&&dt)return pt==nt&&dt==tt;var ft=-1,bt=!0,ht=et&COMPARE_UNORDERED_FLAG$3?new SetCache$1:void 0;for(at.set(tt,nt),at.set(nt,tt);++ft<ut;){var Mt=tt[ft],mt=nt[ft];if(rt)var Ot=st?rt(mt,Mt,ft,nt,tt,at):rt(Mt,mt,ft,tt,nt,at);if(Ot!==void 0){if(Ot)continue;bt=!1;break}if(ht){if(!arraySome(nt,function(zt,yt){if(!cacheHas$1(ht,yt)&&(Mt===zt||ot(Mt,zt,et,rt,at)))return ht.push(yt)})){bt=!1;break}}else if(!(Mt===mt||ot(Mt,mt,et,rt,at))){bt=!1;break}}return at.delete(tt),at.delete(nt),bt}function mapToArray(tt){var nt=-1,et=Array(tt.size);return tt.forEach(function(rt,ot){et[++nt]=[ot,rt]}),et}function setToArray(tt){var nt=-1,et=Array(tt.size);return tt.forEach(function(rt){et[++nt]=rt}),et}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag$1="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",symbolProto$1=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0;function equalByTag(tt,nt,et,rt,ot,at,st){switch(et){case dataViewTag$1:if(tt.byteLength!=nt.byteLength||tt.byteOffset!=nt.byteOffset)return!1;tt=tt.buffer,nt=nt.buffer;case arrayBufferTag:return!(tt.byteLength!=nt.byteLength||!at(new Uint8Array$1(tt),new Uint8Array$1(nt)));case boolTag:case dateTag:case numberTag:return eq(+tt,+nt);case errorTag:return tt.name==nt.name&&tt.message==nt.message;case regexpTag:case stringTag:return tt==nt+"";case mapTag$1:var ut=mapToArray;case setTag$1:var ct=rt&COMPARE_PARTIAL_FLAG$4;if(ut||(ut=setToArray),tt.size!=nt.size&&!ct)return!1;var pt=st.get(tt);if(pt)return pt==nt;rt|=COMPARE_UNORDERED_FLAG$2,st.set(tt,nt);var dt=equalArrays(ut(tt),ut(nt),rt,ot,at,st);return st.delete(tt),dt;case symbolTag:if(symbolValueOf)return symbolValueOf.call(tt)==symbolValueOf.call(nt)}return!1}function arrayPush(tt,nt){for(var et=-1,rt=nt.length,ot=tt.length;++et<rt;)tt[ot+et]=nt[et];return tt}function baseGetAllKeys(tt,nt,et){var rt=nt(tt);return isArray$3(tt)?rt:arrayPush(rt,et(tt))}function arrayFilter(tt,nt){for(var et=-1,rt=tt==null?0:tt.length,ot=0,at=[];++et<rt;){var st=tt[et];nt(st,et,tt)&&(at[ot++]=st)}return at}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(tt){return tt==null?[]:(tt=Object(tt),arrayFilter(nativeGetSymbols(tt),function(nt){return propertyIsEnumerable.call(tt,nt)}))}:stubArray;function getAllKeys(tt){return baseGetAllKeys(tt,keys,getSymbols)}var COMPARE_PARTIAL_FLAG$3=1,objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function equalObjects(tt,nt,et,rt,ot,at){var st=et&COMPARE_PARTIAL_FLAG$3,ut=getAllKeys(tt),ct=ut.length,pt=getAllKeys(nt),dt=pt.length;if(ct!=dt&&!st)return!1;for(var ft=ct;ft--;){var bt=ut[ft];if(!(st?bt in nt:hasOwnProperty$3.call(nt,bt)))return!1}var ht=at.get(tt),Mt=at.get(nt);if(ht&&Mt)return ht==nt&&Mt==tt;var mt=!0;at.set(tt,nt),at.set(nt,tt);for(var Ot=st;++ft<ct;){bt=ut[ft];var zt=tt[bt],yt=nt[bt];if(rt)var vt=st?rt(yt,zt,bt,nt,tt,at):rt(zt,yt,bt,tt,nt,at);if(!(vt===void 0?zt===yt||ot(zt,yt,et,rt,at):vt)){mt=!1;break}Ot||(Ot=bt=="constructor")}if(mt&&!Ot){var At=tt.constructor,St=nt.constructor;At!=St&&"constructor"in tt&&"constructor"in nt&&!(typeof At=="function"&&At instanceof At&&typeof St=="function"&&St instanceof St)&&(mt=!1)}return at.delete(tt),at.delete(nt),mt}var DataView$1=getNative(root$1,"DataView"),Promise$1=getNative(root$1,"Promise"),Set$1=getNative(root$1,"Set"),WeakMap$1=getNative(root$1,"WeakMap"),mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1&&getTag(new DataView$1(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag(new Map$1)!=mapTag||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag||WeakMap$1&&getTag(new WeakMap$1)!=weakMapTag)&&(getTag=function(tt){var nt=baseGetTag(tt),et=nt==objectTag$1?tt.constructor:void 0,rt=et?toSource(et):"";if(rt)switch(rt){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return nt});var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function baseIsEqualDeep(tt,nt,et,rt,ot,at){var st=isArray$3(tt),ut=isArray$3(nt),ct=st?arrayTag:getTag(tt),pt=ut?arrayTag:getTag(nt);ct=ct==argsTag?objectTag:ct,pt=pt==argsTag?objectTag:pt;var dt=ct==objectTag,ft=pt==objectTag,bt=ct==pt;if(bt&&isBuffer$1(tt)){if(!isBuffer$1(nt))return!1;st=!0,dt=!1}if(bt&&!dt)return at||(at=new Stack),st||isTypedArray$1(tt)?equalArrays(tt,nt,et,rt,ot,at):equalByTag(tt,nt,ct,et,rt,ot,at);if(!(et&COMPARE_PARTIAL_FLAG$2)){var ht=dt&&hasOwnProperty$2.call(tt,"__wrapped__"),Mt=ft&&hasOwnProperty$2.call(nt,"__wrapped__");if(ht||Mt){var mt=ht?tt.value():tt,Ot=Mt?nt.value():nt;return at||(at=new Stack),ot(mt,Ot,et,rt,at)}}return bt?(at||(at=new Stack),equalObjects(tt,nt,et,rt,ot,at)):!1}function baseIsEqual$1(tt,nt,et,rt,ot){return tt===nt?!0:tt==null||nt==null||!isObjectLike(tt)&&!isObjectLike(nt)?tt!==tt&&nt!==nt:baseIsEqualDeep(tt,nt,et,rt,baseIsEqual$1,ot)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(tt,nt,et,rt){var ot=et.length,at=ot;if(tt==null)return!at;for(tt=Object(tt);ot--;){var st=et[ot];if(st[2]?st[1]!==tt[st[0]]:!(st[0]in tt))return!1}for(;++ot<at;){st=et[ot];var ut=st[0],ct=tt[ut],pt=st[1];if(st[2]){if(ct===void 0&&!(ut in tt))return!1}else{var dt=new Stack,ft;if(!(ft===void 0?baseIsEqual$1(pt,ct,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,rt,dt):ft))return!1}}return!0}function isStrictComparable(tt){return tt===tt&&!isObject$2(tt)}function getMatchData(tt){for(var nt=keys(tt),et=nt.length;et--;){var rt=nt[et],ot=tt[rt];nt[et]=[rt,ot,isStrictComparable(ot)]}return nt}function matchesStrictComparable(tt,nt){return function(et){return et==null?!1:et[tt]===nt&&(nt!==void 0||tt in Object(et))}}function baseMatches(tt){var nt=getMatchData(tt);return nt.length==1&&nt[0][2]?matchesStrictComparable(nt[0][0],nt[0][1]):function(et){return et===tt||baseIsMatch(et,tt,nt)}}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(tt,nt){if(isArray$3(tt))return!1;var et=typeof tt;return et=="number"||et=="symbol"||et=="boolean"||tt==null||isSymbol$1(tt)?!0:reIsPlainProp.test(tt)||!reIsDeepProp.test(tt)||nt!=null&&tt in Object(nt)}var FUNC_ERROR_TEXT="Expected a function";function memoize(tt,nt){if(typeof tt!="function"||nt!=null&&typeof nt!="function")throw new TypeError(FUNC_ERROR_TEXT);var et=function(){var rt=arguments,ot=nt?nt.apply(this,rt):rt[0],at=et.cache;if(at.has(ot))return at.get(ot);var st=tt.apply(this,rt);return et.cache=at.set(ot,st)||at,st};return et.cache=new(memoize.Cache||MapCache),et}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(tt){var nt=memoize(tt,function(rt){return et.size===MAX_MEMOIZE_SIZE&&et.clear(),rt}),et=nt.cache;return nt}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(tt){var nt=[];return tt.charCodeAt(0)===46&&nt.push(""),tt.replace(rePropName,function(et,rt,ot,at){nt.push(ot?at.replace(reEscapeChar,"$1"):rt||et)}),nt}),INFINITY$1=1/0,symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString(tt){if(typeof tt=="string")return tt;if(isArray$3(tt))return arrayMap$2(tt,baseToString)+"";if(isSymbol$1(tt))return symbolToString?symbolToString.call(tt):"";var nt=tt+"";return nt=="0"&&1/tt==-INFINITY$1?"-0":nt}function toString$1(tt){return tt==null?"":baseToString(tt)}function castPath$2(tt,nt){return isArray$3(tt)?tt:isKey(tt,nt)?[tt]:stringToPath(toString$1(tt))}var INFINITY=1/0;function toKey$1(tt){if(typeof tt=="string"||isSymbol$1(tt))return tt;var nt=tt+"";return nt=="0"&&1/tt==-INFINITY?"-0":nt}function baseGet$2(tt,nt){nt=castPath$2(nt,tt);for(var et=0,rt=nt.length;tt!=null&&et<rt;)tt=tt[toKey$1(nt[et++])];return et&&et==rt?tt:void 0}function get(tt,nt,et){var rt=tt==null?void 0:baseGet$2(tt,nt);return rt===void 0?et:rt}function baseHasIn(tt,nt){return tt!=null&&nt in Object(tt)}function hasPath(tt,nt,et){nt=castPath$2(nt,tt);for(var rt=-1,ot=nt.length,at=!1;++rt<ot;){var st=toKey$1(nt[rt]);if(!(at=tt!=null&&et(tt,st)))break;tt=tt[st]}return at||++rt!=ot?at:(ot=tt==null?0:tt.length,!!ot&&isLength(ot)&&isIndex$1(st,ot)&&(isArray$3(tt)||isArguments(tt)))}function hasIn$1(tt,nt){return tt!=null&&hasPath(tt,nt,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(tt,nt){return isKey(tt)&&isStrictComparable(nt)?matchesStrictComparable(toKey$1(tt),nt):function(et){var rt=get(et,tt);return rt===void 0&&rt===nt?hasIn$1(et,tt):baseIsEqual$1(nt,rt,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(tt){return function(nt){return nt==null?void 0:nt[tt]}}function basePropertyDeep(tt){return function(nt){return baseGet$2(nt,tt)}}function property(tt){return isKey(tt)?baseProperty(toKey$1(tt)):basePropertyDeep(tt)}function baseIteratee$3(tt){return typeof tt=="function"?tt:tt==null?identity$1:typeof tt=="object"?isArray$3(tt)?baseMatchesProperty(tt[0],tt[1]):baseMatches(tt):property(tt)}function baseMap$1(tt,nt){var et=-1,rt=isArrayLike(tt)?Array(tt.length):[];return baseEach$1(tt,function(ot,at,st){rt[++et]=nt(ot,at,st)}),rt}function map(tt,nt){var et=isArray$3(tt)?arrayMap$2:baseMap$1;return et(tt,baseIteratee$3(nt))}var BlockSwatches=function tt(nt){var et=nt.colors,rt=nt.onClick,ot=nt.onSwatchHover,at=_default$2({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return React$1.createElement("div",{style:at.swatches},map(et,function(st){return React$1.createElement(Swatch$1,{key:st,color:st,style:at.swatch,onClick:rt,onHover:ot,focusStyle:{boxShadow:"0 0 4px "+st}})}),React$1.createElement("div",{style:at.clear}))},Block=function tt(nt){var et=nt.onChange,rt=nt.onSwatchHover,ot=nt.hex,at=nt.colors,st=nt.width,ut=nt.triangle,ct=nt.styles,pt=ct===void 0?{}:ct,dt=nt.className,ft=dt===void 0?"":dt,bt=ot==="transparent",ht=function(Ot,zt){isValidHex(Ot)&&et({hex:Ot,source:"hex"},zt)},Mt=_default$2(merge$1({default:{card:{width:st,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:ot,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:getContrastingColor(ot),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+ot+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},pt),{"hide-triangle":ut==="hide"});return React$1.createElement("div",{style:Mt.card,className:"block-picker "+ft},React$1.createElement("div",{style:Mt.triangle}),React$1.createElement("div",{style:Mt.head},bt&&React$1.createElement(Checkboard,{borderRadius:"6px 6px 0 0"}),React$1.createElement("div",{style:Mt.label},ot)),React$1.createElement("div",{style:Mt.body},React$1.createElement(BlockSwatches,{colors:at,onClick:ht,onSwatchHover:rt}),React$1.createElement(EditableInput,{style:{input:Mt.input},value:ot,onChange:ht})))};Block.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),colors:PropTypes.arrayOf(PropTypes.string),triangle:PropTypes.oneOf(["top","hide"]),styles:PropTypes.object};Block.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};ColorWrap(Block);var red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},pink={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},deepPurple={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},indigo={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},cyan={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},teal={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},lightGreen={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},lime={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},yellow={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},amber={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},deepOrange={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},brown={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},blueGrey={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},CircleSwatch=function tt(nt){var et=nt.color,rt=nt.onClick,ot=nt.onSwatchHover,at=nt.hover,st=nt.active,ut=nt.circleSize,ct=nt.circleSpacing,pt=_default$2({default:{swatch:{width:ut,height:ut,marginRight:ct,marginBottom:ct,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(ut/2+1)+"px "+et,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+et}}},{hover:at,active:st});return React$1.createElement("div",{style:pt.swatch},React$1.createElement(Swatch$1,{style:pt.Swatch,color:et,onClick:rt,onHover:ot,focusStyle:{boxShadow:pt.Swatch.boxShadow+", 0 0 5px "+et}}))};CircleSwatch.defaultProps={circleSize:28,circleSpacing:14};const CircleSwatch$1=handleHover(CircleSwatch);var Circle=function tt(nt){var et=nt.width,rt=nt.onChange,ot=nt.onSwatchHover,at=nt.colors,st=nt.hex,ut=nt.circleSize,ct=nt.styles,pt=ct===void 0?{}:ct,dt=nt.circleSpacing,ft=nt.className,bt=ft===void 0?"":ft,ht=_default$2(merge$1({default:{card:{width:et,display:"flex",flexWrap:"wrap",marginRight:-dt,marginBottom:-dt}}},pt)),Mt=function(Ot,zt){return rt({hex:Ot,source:"hex"},zt)};return React$1.createElement("div",{style:ht.card,className:"circle-picker "+bt},map(at,function(mt){return React$1.createElement(CircleSwatch$1,{key:mt,color:mt,onClick:Mt,onSwatchHover:ot,active:st===mt.toLowerCase(),circleSize:ut,circleSpacing:dt})}))};Circle.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),circleSize:PropTypes.number,circleSpacing:PropTypes.number,styles:PropTypes.object};Circle.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[red[500],pink[500],purple[500],deepPurple[500],indigo[500],blue[500],lightBlue[500],cyan[500],teal[500],green[500],lightGreen[500],lime[500],yellow[500],amber[500],orange[500],deepOrange[500],brown[500],blueGrey[500]],styles:{}};ColorWrap(Circle);function isUndefined$1(tt){return tt===void 0}var UnfoldMoreHorizontalIcon={};Object.defineProperty(UnfoldMoreHorizontalIcon,"__esModule",{value:!0});var _extends$m=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_react$1=reactExports,_react2$1=_interopRequireDefault$1(_react$1);function _interopRequireDefault$1(tt){return tt&&tt.__esModule?tt:{default:tt}}function _objectWithoutProperties$h(tt,nt){var et={};for(var rt in tt)nt.indexOf(rt)>=0||Object.prototype.hasOwnProperty.call(tt,rt)&&(et[rt]=tt[rt]);return et}var DEFAULT_SIZE$2=24,_default$1=UnfoldMoreHorizontalIcon.default=function(tt){var nt=tt.fill,et=nt===void 0?"currentColor":nt,rt=tt.width,ot=rt===void 0?DEFAULT_SIZE$2:rt,at=tt.height,st=at===void 0?DEFAULT_SIZE$2:at,ut=tt.style,ct=ut===void 0?{}:ut,pt=_objectWithoutProperties$h(tt,["fill","width","height","style"]);return _react2$1.default.createElement("svg",_extends$m({viewBox:"0 0 "+DEFAULT_SIZE$2+" "+DEFAULT_SIZE$2,style:_extends$m({fill:et,width:ot,height:st},ct)},pt),_react2$1.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},_createClass$7=function(){function tt(nt,et){for(var rt=0;rt<et.length;rt++){var ot=et[rt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(nt,ot.key,ot)}}return function(nt,et,rt){return et&&tt(nt.prototype,et),rt&&tt(nt,rt),nt}}();function _classCallCheck$7(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$7(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$7(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var ChromeFields=function(tt){_inherits$7(nt,tt);function nt(et){_classCallCheck$7(this,nt);var rt=_possibleConstructorReturn$7(this,(nt.__proto__||Object.getPrototypeOf(nt)).call(this));return rt.toggleViews=function(){rt.state.view==="hex"?rt.setState({view:"rgb"}):rt.state.view==="rgb"?rt.setState({view:"hsl"}):rt.state.view==="hsl"&&(rt.props.hsl.a===1?rt.setState({view:"hex"}):rt.setState({view:"rgb"}))},rt.handleChange=function(ot,at){ot.hex?isValidHex(ot.hex)&&rt.props.onChange({hex:ot.hex,source:"hex"},at):ot.r||ot.g||ot.b?rt.props.onChange({r:ot.r||rt.props.rgb.r,g:ot.g||rt.props.rgb.g,b:ot.b||rt.props.rgb.b,source:"rgb"},at):ot.a?(ot.a<0?ot.a=0:ot.a>1&&(ot.a=1),rt.props.onChange({h:rt.props.hsl.h,s:rt.props.hsl.s,l:rt.props.hsl.l,a:Math.round(ot.a*100)/100,source:"rgb"},at)):(ot.h||ot.s||ot.l)&&(typeof ot.s=="string"&&ot.s.includes("%")&&(ot.s=ot.s.replace("%","")),typeof ot.l=="string"&&ot.l.includes("%")&&(ot.l=ot.l.replace("%","")),ot.s==1?ot.s=.01:ot.l==1&&(ot.l=.01),rt.props.onChange({h:ot.h||rt.props.hsl.h,s:Number(isUndefined$1(ot.s)?rt.props.hsl.s:ot.s),l:Number(isUndefined$1(ot.l)?rt.props.hsl.l:ot.l),source:"hsl"},at))},rt.showHighlight=function(ot){ot.currentTarget.style.background="#eee"},rt.hideHighlight=function(ot){ot.currentTarget.style.background="transparent"},et.hsl.a!==1&&et.view==="hex"?rt.state={view:"rgb"}:rt.state={view:et.view},rt}return _createClass$7(nt,[{key:"render",value:function(){var rt=this,ot=_default$2({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),at=void 0;return this.state.view==="hex"?at=React$1.createElement("div",{style:ot.fields,className:"flexbox-fix"},React$1.createElement("div",{style:ot.field},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?at=React$1.createElement("div",{style:ot.fields,className:"flexbox-fix"},React$1.createElement("div",{style:ot.field},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),React$1.createElement("div",{style:ot.field},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),React$1.createElement("div",{style:ot.field},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),React$1.createElement("div",{style:ot.alpha},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(at=React$1.createElement("div",{style:ot.fields,className:"flexbox-fix"},React$1.createElement("div",{style:ot.field},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),React$1.createElement("div",{style:ot.field},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),React$1.createElement("div",{style:ot.field},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),React$1.createElement("div",{style:ot.alpha},React$1.createElement(EditableInput,{style:{input:ot.input,label:ot.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),React$1.createElement("div",{style:ot.wrap,className:"flexbox-fix"},at,React$1.createElement("div",{style:ot.toggle},React$1.createElement("div",{style:ot.icon,onClick:this.toggleViews,ref:function(ut){return rt.icon=ut}},React$1.createElement(_default$1,{style:ot.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(rt,ot){return rt.hsl.a!==1&&ot.view==="hex"?{view:"rgb"}:null}}]),nt}(React$1.Component);ChromeFields.defaultProps={view:"hex"};var ChromePointer=function tt(){var nt=_default$2({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return React$1.createElement("div",{style:nt.picker})},ChromePointerCircle=function tt(){var nt=_default$2({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return React$1.createElement("div",{style:nt.picker})},Chrome=function tt(nt){var et=nt.width,rt=nt.onChange,ot=nt.disableAlpha,at=nt.rgb,st=nt.hsl,ut=nt.hsv,ct=nt.hex,pt=nt.renderers,dt=nt.styles,ft=dt===void 0?{}:dt,bt=nt.className,ht=bt===void 0?"":bt,Mt=nt.defaultView,mt=_default$2(merge$1({default:{picker:{width:et,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+at.r+", "+at.g+", "+at.b+", "+at.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},ft),{disableAlpha:ot});return React$1.createElement("div",{style:mt.picker,className:"chrome-picker "+ht},React$1.createElement("div",{style:mt.saturation},React$1.createElement(Saturation,{style:mt.Saturation,hsl:st,hsv:ut,pointer:ChromePointerCircle,onChange:rt})),React$1.createElement("div",{style:mt.body},React$1.createElement("div",{style:mt.controls,className:"flexbox-fix"},React$1.createElement("div",{style:mt.color},React$1.createElement("div",{style:mt.swatch},React$1.createElement("div",{style:mt.active}),React$1.createElement(Checkboard,{renderers:pt}))),React$1.createElement("div",{style:mt.toggles},React$1.createElement("div",{style:mt.hue},React$1.createElement(Hue,{style:mt.Hue,hsl:st,pointer:ChromePointer,onChange:rt})),React$1.createElement("div",{style:mt.alpha},React$1.createElement(Alpha,{style:mt.Alpha,rgb:at,hsl:st,pointer:ChromePointer,renderers:pt,onChange:rt})))),React$1.createElement(ChromeFields,{rgb:at,hsl:st,hex:ct,view:Mt,onChange:rt,disableAlpha:ot})))};Chrome.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),disableAlpha:PropTypes.bool,styles:PropTypes.object,defaultView:PropTypes.oneOf(["hex","rgb","hsl"])};Chrome.defaultProps={width:225,disableAlpha:!1,styles:{}};const ChromePicker=ColorWrap(Chrome);var CompactColor=function tt(nt){var et=nt.color,rt=nt.onClick,ot=rt===void 0?function(){}:rt,at=nt.onSwatchHover,st=nt.active,ut=_default$2({default:{color:{background:et,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:getContrastingColor(et),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:st,"color-#FFFFFF":et==="#FFFFFF",transparent:et==="transparent"});return React$1.createElement(Swatch$1,{style:ut.color,color:et,onClick:ot,onHover:at,focusStyle:{boxShadow:"0 0 4px "+et}},React$1.createElement("div",{style:ut.dot}))},CompactFields=function tt(nt){var et=nt.hex,rt=nt.rgb,ot=nt.onChange,at=_default$2({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:et},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),st=function(ct,pt){ct.r||ct.g||ct.b?ot({r:ct.r||rt.r,g:ct.g||rt.g,b:ct.b||rt.b,source:"rgb"},pt):ot({hex:ct.hex,source:"hex"},pt)};return React$1.createElement("div",{style:at.fields,className:"flexbox-fix"},React$1.createElement("div",{style:at.active}),React$1.createElement(EditableInput,{style:{wrap:at.HEXwrap,input:at.HEXinput,label:at.HEXlabel},label:"hex",value:et,onChange:st}),React$1.createElement(EditableInput,{style:{wrap:at.RGBwrap,input:at.RGBinput,label:at.RGBlabel},label:"r",value:rt.r,onChange:st}),React$1.createElement(EditableInput,{style:{wrap:at.RGBwrap,input:at.RGBinput,label:at.RGBlabel},label:"g",value:rt.g,onChange:st}),React$1.createElement(EditableInput,{style:{wrap:at.RGBwrap,input:at.RGBinput,label:at.RGBlabel},label:"b",value:rt.b,onChange:st}))},Compact=function tt(nt){var et=nt.onChange,rt=nt.onSwatchHover,ot=nt.colors,at=nt.hex,st=nt.rgb,ut=nt.styles,ct=ut===void 0?{}:ut,pt=nt.className,dt=pt===void 0?"":pt,ft=_default$2(merge$1({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},ct)),bt=function(Mt,mt){Mt.hex?isValidHex(Mt.hex)&&et({hex:Mt.hex,source:"hex"},mt):et(Mt,mt)};return React$1.createElement(Raised,{style:ft.Compact,styles:ct},React$1.createElement("div",{style:ft.compact,className:"compact-picker "+dt},React$1.createElement("div",null,map(ot,function(ht){return React$1.createElement(CompactColor,{key:ht,color:ht,active:ht.toLowerCase()===at,onClick:bt,onSwatchHover:rt})}),React$1.createElement("div",{style:ft.clear})),React$1.createElement(CompactFields,{hex:at,rgb:st,onChange:bt})))};Compact.propTypes={colors:PropTypes.arrayOf(PropTypes.string),styles:PropTypes.object};Compact.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};ColorWrap(Compact);var GithubSwatch=function tt(nt){var et=nt.hover,rt=nt.color,ot=nt.onClick,at=nt.onSwatchHover,st={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},ut=_default$2({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:st}},{hover:et});return React$1.createElement("div",{style:ut.swatch},React$1.createElement(Swatch$1,{color:rt,onClick:ot,onHover:at,focusStyle:st}))};const GithubSwatch$1=handleHover(GithubSwatch);var Github=function tt(nt){var et=nt.width,rt=nt.colors,ot=nt.onChange,at=nt.onSwatchHover,st=nt.triangle,ut=nt.styles,ct=ut===void 0?{}:ut,pt=nt.className,dt=pt===void 0?"":pt,ft=_default$2(merge$1({default:{card:{width:et,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},ct),{"hide-triangle":st==="hide","top-left-triangle":st==="top-left","top-right-triangle":st==="top-right","bottom-left-triangle":st==="bottom-left","bottom-right-triangle":st==="bottom-right"}),bt=function(Mt,mt){return ot({hex:Mt,source:"hex"},mt)};return React$1.createElement("div",{style:ft.card,className:"github-picker "+dt},React$1.createElement("div",{style:ft.triangleShadow}),React$1.createElement("div",{style:ft.triangle}),map(rt,function(ht){return React$1.createElement(GithubSwatch$1,{color:ht,key:ht,onClick:bt,onSwatchHover:at})}))};Github.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),colors:PropTypes.arrayOf(PropTypes.string),triangle:PropTypes.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:PropTypes.object};Github.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};ColorWrap(Github);var SliderPointer$1=function tt(nt){var et=nt.direction,rt=_default$2({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:et==="vertical"});return React$1.createElement("div",{style:rt.picker})},_extends$l=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},HuePicker=function tt(nt){var et=nt.width,rt=nt.height,ot=nt.onChange,at=nt.hsl,st=nt.direction,ut=nt.pointer,ct=nt.styles,pt=ct===void 0?{}:ct,dt=nt.className,ft=dt===void 0?"":dt,bt=_default$2(merge$1({default:{picker:{position:"relative",width:et,height:rt},hue:{radius:"2px"}}},pt)),ht=function(mt){return ot({a:1,h:mt.h,l:.5,s:1})};return React$1.createElement("div",{style:bt.picker,className:"hue-picker "+ft},React$1.createElement(Hue,_extends$l({},bt.hue,{hsl:at,pointer:ut,onChange:ht,direction:st})))};HuePicker.propTypes={styles:PropTypes.object};HuePicker.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:SliderPointer$1,styles:{}};ColorWrap(HuePicker);var Material=function tt(nt){var et=nt.onChange,rt=nt.hex,ot=nt.rgb,at=nt.styles,st=at===void 0?{}:at,ut=nt.className,ct=ut===void 0?"":ut,pt=_default$2(merge$1({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+rt,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},st)),dt=function(bt,ht){bt.hex?isValidHex(bt.hex)&&et({hex:bt.hex,source:"hex"},ht):(bt.r||bt.g||bt.b)&&et({r:bt.r||ot.r,g:bt.g||ot.g,b:bt.b||ot.b,source:"rgb"},ht)};return React$1.createElement(Raised,{styles:st},React$1.createElement("div",{style:pt.material,className:"material-picker "+ct},React$1.createElement(EditableInput,{style:{wrap:pt.HEXwrap,input:pt.HEXinput,label:pt.HEXlabel},label:"hex",value:rt,onChange:dt}),React$1.createElement("div",{style:pt.split,className:"flexbox-fix"},React$1.createElement("div",{style:pt.third},React$1.createElement(EditableInput,{style:{wrap:pt.RGBwrap,input:pt.RGBinput,label:pt.RGBlabel},label:"r",value:ot.r,onChange:dt})),React$1.createElement("div",{style:pt.third},React$1.createElement(EditableInput,{style:{wrap:pt.RGBwrap,input:pt.RGBinput,label:pt.RGBlabel},label:"g",value:ot.g,onChange:dt})),React$1.createElement("div",{style:pt.third},React$1.createElement(EditableInput,{style:{wrap:pt.RGBwrap,input:pt.RGBinput,label:pt.RGBlabel},label:"b",value:ot.b,onChange:dt})))))};ColorWrap(Material);var PhotoshopPicker=function tt(nt){var et=nt.onChange,rt=nt.rgb,ot=nt.hsv,at=nt.hex,st=_default$2({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),ut=function(pt,dt){pt["#"]?isValidHex(pt["#"])&&et({hex:pt["#"],source:"hex"},dt):pt.r||pt.g||pt.b?et({r:pt.r||rt.r,g:pt.g||rt.g,b:pt.b||rt.b,source:"rgb"},dt):(pt.h||pt.s||pt.v)&&et({h:pt.h||ot.h,s:pt.s||ot.s,v:pt.v||ot.v,source:"hsv"},dt)};return React$1.createElement("div",{style:st.fields},React$1.createElement(EditableInput,{style:{wrap:st.RGBwrap,input:st.RGBinput,label:st.RGBlabel},label:"h",value:Math.round(ot.h),onChange:ut}),React$1.createElement(EditableInput,{style:{wrap:st.RGBwrap,input:st.RGBinput,label:st.RGBlabel},label:"s",value:Math.round(ot.s*100),onChange:ut}),React$1.createElement(EditableInput,{style:{wrap:st.RGBwrap,input:st.RGBinput,label:st.RGBlabel},label:"v",value:Math.round(ot.v*100),onChange:ut}),React$1.createElement("div",{style:st.divider}),React$1.createElement(EditableInput,{style:{wrap:st.RGBwrap,input:st.RGBinput,label:st.RGBlabel},label:"r",value:rt.r,onChange:ut}),React$1.createElement(EditableInput,{style:{wrap:st.RGBwrap,input:st.RGBinput,label:st.RGBlabel},label:"g",value:rt.g,onChange:ut}),React$1.createElement(EditableInput,{style:{wrap:st.RGBwrap,input:st.RGBinput,label:st.RGBlabel},label:"b",value:rt.b,onChange:ut}),React$1.createElement("div",{style:st.divider}),React$1.createElement(EditableInput,{style:{wrap:st.HEXwrap,input:st.HEXinput,label:st.HEXlabel},label:"#",value:at.replace("#",""),onChange:ut}),React$1.createElement("div",{style:st.fieldSymbols},React$1.createElement("div",{style:st.symbol},"°"),React$1.createElement("div",{style:st.symbol},"%"),React$1.createElement("div",{style:st.symbol},"%")))},PhotoshopPointerCircle$1=function tt(nt){var et=nt.hsl,rt=_default$2({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":et.l>.5});return React$1.createElement("div",{style:rt.picker})},PhotoshopPointerCircle=function tt(){var nt=_default$2({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return React$1.createElement("div",{style:nt.pointer},React$1.createElement("div",{style:nt.left},React$1.createElement("div",{style:nt.leftInside})),React$1.createElement("div",{style:nt.right},React$1.createElement("div",{style:nt.rightInside})))},PhotoshopButton=function tt(nt){var et=nt.onClick,rt=nt.label,ot=nt.children,at=nt.active,st=_default$2({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:at});return React$1.createElement("div",{style:st.button,onClick:et},rt||ot)},PhotoshopPreviews=function tt(nt){var et=nt.rgb,rt=nt.currentColor,ot=_default$2({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+et.r+","+et.g+", "+et.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:rt,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return React$1.createElement("div",null,React$1.createElement("div",{style:ot.label},"new"),React$1.createElement("div",{style:ot.swatches},React$1.createElement("div",{style:ot.new}),React$1.createElement("div",{style:ot.current})),React$1.createElement("div",{style:ot.label},"current"))},_createClass$6=function(){function tt(nt,et){for(var rt=0;rt<et.length;rt++){var ot=et[rt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(nt,ot.key,ot)}}return function(nt,et,rt){return et&&tt(nt.prototype,et),rt&&tt(nt,rt),nt}}();function _classCallCheck$6(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$6(tt,nt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:tt}function _inherits$6(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,nt):tt.__proto__=nt)}var Photoshop=function(tt){_inherits$6(nt,tt);function nt(et){_classCallCheck$6(this,nt);var rt=_possibleConstructorReturn$6(this,(nt.__proto__||Object.getPrototypeOf(nt)).call(this));return rt.state={currentColor:et.hex},rt}return _createClass$6(nt,[{key:"render",value:function(){var rt=this.props,ot=rt.styles,at=ot===void 0?{}:ot,st=rt.className,ut=st===void 0?"":st,ct=_default$2(merge$1({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},at));return React$1.createElement("div",{style:ct.picker,className:"photoshop-picker "+ut},React$1.createElement("div",{style:ct.head},this.props.header),React$1.createElement("div",{style:ct.body,className:"flexbox-fix"},React$1.createElement("div",{style:ct.saturation},React$1.createElement(Saturation,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:PhotoshopPointerCircle$1,onChange:this.props.onChange})),React$1.createElement("div",{style:ct.hue},React$1.createElement(Hue,{direction:"vertical",hsl:this.props.hsl,pointer:PhotoshopPointerCircle,onChange:this.props.onChange})),React$1.createElement("div",{style:ct.controls},React$1.createElement("div",{style:ct.top,className:"flexbox-fix"},React$1.createElement("div",{style:ct.previews},React$1.createElement(PhotoshopPreviews,{rgb:this.props.rgb,currentColor:this.state.currentColor})),React$1.createElement("div",{style:ct.actions},React$1.createElement(PhotoshopButton,{label:"OK",onClick:this.props.onAccept,active:!0}),React$1.createElement(PhotoshopButton,{label:"Cancel",onClick:this.props.onCancel}),React$1.createElement(PhotoshopPicker,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),nt}(React$1.Component);Photoshop.propTypes={header:PropTypes.string,styles:PropTypes.object};Photoshop.defaultProps={header:"Color Picker",styles:{}};ColorWrap(Photoshop);var SketchFields=function tt(nt){var et=nt.onChange,rt=nt.rgb,ot=nt.hsl,at=nt.hex,st=nt.disableAlpha,ut=_default$2({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:st}),ct=function(dt,ft){dt.hex?isValidHex(dt.hex)&&et({hex:dt.hex,source:"hex"},ft):dt.r||dt.g||dt.b?et({r:dt.r||rt.r,g:dt.g||rt.g,b:dt.b||rt.b,a:rt.a,source:"rgb"},ft):dt.a&&(dt.a<0?dt.a=0:dt.a>100&&(dt.a=100),dt.a/=100,et({h:ot.h,s:ot.s,l:ot.l,a:dt.a,source:"rgb"},ft))};return React$1.createElement("div",{style:ut.fields,className:"flexbox-fix"},React$1.createElement("div",{style:ut.double},React$1.createElement(EditableInput,{style:{input:ut.input,label:ut.label},label:"hex",value:at.replace("#",""),onChange:ct})),React$1.createElement("div",{style:ut.single},React$1.createElement(EditableInput,{style:{input:ut.input,label:ut.label},label:"r",value:rt.r,onChange:ct,dragLabel:"true",dragMax:"255"})),React$1.createElement("div",{style:ut.single},React$1.createElement(EditableInput,{style:{input:ut.input,label:ut.label},label:"g",value:rt.g,onChange:ct,dragLabel:"true",dragMax:"255"})),React$1.createElement("div",{style:ut.single},React$1.createElement(EditableInput,{style:{input:ut.input,label:ut.label},label:"b",value:rt.b,onChange:ct,dragLabel:"true",dragMax:"255"})),React$1.createElement("div",{style:ut.alpha},React$1.createElement(EditableInput,{style:{input:ut.input,label:ut.label},label:"a",value:Math.round(rt.a*100),onChange:ct,dragLabel:"true",dragMax:"100"})))},_extends$k=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},SketchPresetColors=function tt(nt){var et=nt.colors,rt=nt.onClick,ot=rt===void 0?function(){}:rt,at=nt.onSwatchHover,st=_default$2({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!et||!et.length}),ut=function(pt,dt){ot({hex:pt,source:"hex"},dt)};return React$1.createElement("div",{style:st.colors,className:"flexbox-fix"},et.map(function(ct){var pt=typeof ct=="string"?{color:ct}:ct,dt=""+pt.color+(pt.title||"");return React$1.createElement("div",{key:dt,style:st.swatchWrap},React$1.createElement(Swatch$1,_extends$k({},pt,{style:st.swatch,onClick:ut,onHover:at,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+pt.color}})))}))};SketchPresetColors.propTypes={colors:PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string,PropTypes.shape({color:PropTypes.string,title:PropTypes.string})])).isRequired};var _extends$j=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},Sketch=function tt(nt){var et=nt.width,rt=nt.rgb,ot=nt.hex,at=nt.hsv,st=nt.hsl,ut=nt.onChange,ct=nt.onSwatchHover,pt=nt.disableAlpha,dt=nt.presetColors,ft=nt.renderers,bt=nt.styles,ht=bt===void 0?{}:bt,Mt=nt.className,mt=Mt===void 0?"":Mt,Ot=_default$2(merge$1({default:_extends$j({picker:{width:et,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+rt.r+","+rt.g+","+rt.b+","+rt.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},ht),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},ht),{disableAlpha:pt});return React$1.createElement("div",{style:Ot.picker,className:"sketch-picker "+mt},React$1.createElement("div",{style:Ot.saturation},React$1.createElement(Saturation,{style:Ot.Saturation,hsl:st,hsv:at,onChange:ut})),React$1.createElement("div",{style:Ot.controls,className:"flexbox-fix"},React$1.createElement("div",{style:Ot.sliders},React$1.createElement("div",{style:Ot.hue},React$1.createElement(Hue,{style:Ot.Hue,hsl:st,onChange:ut})),React$1.createElement("div",{style:Ot.alpha},React$1.createElement(Alpha,{style:Ot.Alpha,rgb:rt,hsl:st,renderers:ft,onChange:ut}))),React$1.createElement("div",{style:Ot.color},React$1.createElement(Checkboard,null),React$1.createElement("div",{style:Ot.activeColor}))),React$1.createElement(SketchFields,{rgb:rt,hsl:st,hex:ot,onChange:ut,disableAlpha:pt}),React$1.createElement(SketchPresetColors,{colors:dt,onClick:ut,onSwatchHover:ct}))};Sketch.propTypes={disableAlpha:PropTypes.bool,width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),styles:PropTypes.object};Sketch.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};ColorWrap(Sketch);var SliderSwatch=function tt(nt){var et=nt.hsl,rt=nt.offset,ot=nt.onClick,at=ot===void 0?function(){}:ot,st=nt.active,ut=nt.first,ct=nt.last,pt=_default$2({default:{swatch:{height:"12px",background:"hsl("+et.h+", 50%, "+rt*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:st,first:ut,last:ct}),dt=function(bt){return at({h:et.h,s:.5,l:rt,source:"hsl"},bt)};return React$1.createElement("div",{style:pt.swatch,onClick:dt})},SliderSwatches=function tt(nt){var et=nt.onClick,rt=nt.hsl,ot=_default$2({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),at=.1;return React$1.createElement("div",{style:ot.swatches},React$1.createElement("div",{style:ot.swatch},React$1.createElement(SliderSwatch,{hsl:rt,offset:".80",active:Math.abs(rt.l-.8)<at&&Math.abs(rt.s-.5)<at,onClick:et,first:!0})),React$1.createElement("div",{style:ot.swatch},React$1.createElement(SliderSwatch,{hsl:rt,offset:".65",active:Math.abs(rt.l-.65)<at&&Math.abs(rt.s-.5)<at,onClick:et})),React$1.createElement("div",{style:ot.swatch},React$1.createElement(SliderSwatch,{hsl:rt,offset:".50",active:Math.abs(rt.l-.5)<at&&Math.abs(rt.s-.5)<at,onClick:et})),React$1.createElement("div",{style:ot.swatch},React$1.createElement(SliderSwatch,{hsl:rt,offset:".35",active:Math.abs(rt.l-.35)<at&&Math.abs(rt.s-.5)<at,onClick:et})),React$1.createElement("div",{style:ot.swatch},React$1.createElement(SliderSwatch,{hsl:rt,offset:".20",active:Math.abs(rt.l-.2)<at&&Math.abs(rt.s-.5)<at,onClick:et,last:!0})),React$1.createElement("div",{style:ot.clear}))},SliderPointer=function tt(){var nt=_default$2({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return React$1.createElement("div",{style:nt.picker})},Slider=function tt(nt){var et=nt.hsl,rt=nt.onChange,ot=nt.pointer,at=nt.styles,st=at===void 0?{}:at,ut=nt.className,ct=ut===void 0?"":ut,pt=_default$2(merge$1({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},st));return React$1.createElement("div",{style:pt.wrap||{},className:"slider-picker "+ct},React$1.createElement("div",{style:pt.hue},React$1.createElement(Hue,{style:pt.Hue,hsl:et,pointer:ot,onChange:rt})),React$1.createElement("div",{style:pt.swatches},React$1.createElement(SliderSwatches,{hsl:et,onClick:rt})))};Slider.propTypes={styles:PropTypes.object};Slider.defaultProps={pointer:SliderPointer,styles:{}};ColorWrap(Slider);var CheckIcon={};Object.defineProperty(CheckIcon,"__esModule",{value:!0});var _extends$i=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_react=reactExports,_react2=_interopRequireDefault(_react);function _interopRequireDefault(tt){return tt&&tt.__esModule?tt:{default:tt}}function _objectWithoutProperties$g(tt,nt){var et={};for(var rt in tt)nt.indexOf(rt)>=0||Object.prototype.hasOwnProperty.call(tt,rt)&&(et[rt]=tt[rt]);return et}var DEFAULT_SIZE$1=24,_default=CheckIcon.default=function(tt){var nt=tt.fill,et=nt===void 0?"currentColor":nt,rt=tt.width,ot=rt===void 0?DEFAULT_SIZE$1:rt,at=tt.height,st=at===void 0?DEFAULT_SIZE$1:at,ut=tt.style,ct=ut===void 0?{}:ut,pt=_objectWithoutProperties$g(tt,["fill","width","height","style"]);return _react2.default.createElement("svg",_extends$i({viewBox:"0 0 "+DEFAULT_SIZE$1+" "+DEFAULT_SIZE$1,style:_extends$i({fill:et,width:ot,height:st},ct)},pt),_react2.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},SwatchesColor=function tt(nt){var et=nt.color,rt=nt.onClick,ot=rt===void 0?function(){}:rt,at=nt.onSwatchHover,st=nt.first,ut=nt.last,ct=nt.active,pt=_default$2({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:et,marginBottom:"1px"},check:{color:getContrastingColor(et),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:st,last:ut,active:ct,"color-#FFFFFF":et==="#FFFFFF",transparent:et==="transparent"});return React$1.createElement(Swatch$1,{color:et,style:pt.color,onClick:ot,onHover:at,focusStyle:{boxShadow:"0 0 4px "+et}},React$1.createElement("div",{style:pt.check},React$1.createElement(_default,null)))},SwatchesGroup=function tt(nt){var et=nt.onClick,rt=nt.onSwatchHover,ot=nt.group,at=nt.active,st=_default$2({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return React$1.createElement("div",{style:st.group},map(ot,function(ut,ct){return React$1.createElement(SwatchesColor,{key:ut,color:ut,active:ut.toLowerCase()===at,first:ct===0,last:ct===ot.length-1,onClick:et,onSwatchHover:rt})}))},Swatches=function tt(nt){var et=nt.width,rt=nt.height,ot=nt.onChange,at=nt.onSwatchHover,st=nt.colors,ut=nt.hex,ct=nt.styles,pt=ct===void 0?{}:ct,dt=nt.className,ft=dt===void 0?"":dt,bt=_default$2(merge$1({default:{picker:{width:et,height:rt},overflow:{height:rt,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},pt)),ht=function(mt,Ot){return ot({hex:mt,source:"hex"},Ot)};return React$1.createElement("div",{style:bt.picker,className:"swatches-picker "+ft},React$1.createElement(Raised,null,React$1.createElement("div",{style:bt.overflow},React$1.createElement("div",{style:bt.body},map(st,function(Mt){return React$1.createElement(SwatchesGroup,{key:Mt.toString(),group:Mt,active:ut,onClick:ht,onSwatchHover:at})}),React$1.createElement("div",{style:bt.clear})))))};Swatches.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),height:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),colors:PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.string)),styles:PropTypes.object};Swatches.defaultProps={width:320,height:240,colors:[[red[900],red[700],red[500],red[300],red[100]],[pink[900],pink[700],pink[500],pink[300],pink[100]],[purple[900],purple[700],purple[500],purple[300],purple[100]],[deepPurple[900],deepPurple[700],deepPurple[500],deepPurple[300],deepPurple[100]],[indigo[900],indigo[700],indigo[500],indigo[300],indigo[100]],[blue[900],blue[700],blue[500],blue[300],blue[100]],[lightBlue[900],lightBlue[700],lightBlue[500],lightBlue[300],lightBlue[100]],[cyan[900],cyan[700],cyan[500],cyan[300],cyan[100]],[teal[900],teal[700],teal[500],teal[300],teal[100]],["#194D33",green[700],green[500],green[300],green[100]],[lightGreen[900],lightGreen[700],lightGreen[500],lightGreen[300],lightGreen[100]],[lime[900],lime[700],lime[500],lime[300],lime[100]],[yellow[900],yellow[700],yellow[500],yellow[300],yellow[100]],[amber[900],amber[700],amber[500],amber[300],amber[100]],[orange[900],orange[700],orange[500],orange[300],orange[100]],[deepOrange[900],deepOrange[700],deepOrange[500],deepOrange[300],deepOrange[100]],[brown[900],brown[700],brown[500],brown[300],brown[100]],[blueGrey[900],blueGrey[700],blueGrey[500],blueGrey[300],blueGrey[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};ColorWrap(Swatches);var Twitter=function tt(nt){var et=nt.onChange,rt=nt.onSwatchHover,ot=nt.hex,at=nt.colors,st=nt.width,ut=nt.triangle,ct=nt.styles,pt=ct===void 0?{}:ct,dt=nt.className,ft=dt===void 0?"":dt,bt=_default$2(merge$1({default:{card:{width:st,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},pt),{"hide-triangle":ut==="hide","top-left-triangle":ut==="top-left","top-right-triangle":ut==="top-right"}),ht=function(mt,Ot){isValidHex(mt)&&et({hex:mt,source:"hex"},Ot)};return React$1.createElement("div",{style:bt.card,className:"twitter-picker "+ft},React$1.createElement("div",{style:bt.triangleShadow}),React$1.createElement("div",{style:bt.triangle}),React$1.createElement("div",{style:bt.body},map(at,function(Mt,mt){return React$1.createElement(Swatch$1,{key:mt,color:Mt,hex:Mt,style:bt.swatch,onClick:ht,onHover:rt,focusStyle:{boxShadow:"0 0 4px "+Mt}})}),React$1.createElement("div",{style:bt.hash},"#"),React$1.createElement(EditableInput,{label:null,style:{input:bt.input},value:ot.replace("#",""),onChange:ht}),React$1.createElement("div",{style:bt.clear})))};Twitter.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),triangle:PropTypes.oneOf(["hide","top-left","top-right"]),colors:PropTypes.arrayOf(PropTypes.string),styles:PropTypes.object};Twitter.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};ColorWrap(Twitter);var GooglePointerCircle=function tt(nt){var et=_default$2({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(nt.hsl.h)+", "+Math.round(nt.hsl.s*100)+"%, "+Math.round(nt.hsl.l*100)+"%)"}}});return React$1.createElement("div",{style:et.picker})};GooglePointerCircle.propTypes={hsl:PropTypes.shape({h:PropTypes.number,s:PropTypes.number,l:PropTypes.number,a:PropTypes.number})};GooglePointerCircle.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var GooglePointer=function tt(nt){var et=_default$2({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(nt.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return React$1.createElement("div",{style:et.picker})};GooglePointer.propTypes={hsl:PropTypes.shape({h:PropTypes.number,s:PropTypes.number,l:PropTypes.number,a:PropTypes.number})};GooglePointer.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var GoogleFields=function tt(nt){var et=nt.onChange,rt=nt.rgb,ot=nt.hsl,at=nt.hex,st=nt.hsv,ut=function(ht,Mt){if(ht.hex)isValidHex(ht.hex)&&et({hex:ht.hex,source:"hex"},Mt);else if(ht.rgb){var mt=ht.rgb.split(",");isvalidColorString(ht.rgb,"rgb")&&et({r:mt[0],g:mt[1],b:mt[2],a:1,source:"rgb"},Mt)}else if(ht.hsv){var Ot=ht.hsv.split(",");isvalidColorString(ht.hsv,"hsv")&&(Ot[2]=Ot[2].replace("%",""),Ot[1]=Ot[1].replace("%",""),Ot[0]=Ot[0].replace("°",""),Ot[1]==1?Ot[1]=.01:Ot[2]==1&&(Ot[2]=.01),et({h:Number(Ot[0]),s:Number(Ot[1]),v:Number(Ot[2]),source:"hsv"},Mt))}else if(ht.hsl){var zt=ht.hsl.split(",");isvalidColorString(ht.hsl,"hsl")&&(zt[2]=zt[2].replace("%",""),zt[1]=zt[1].replace("%",""),zt[0]=zt[0].replace("°",""),ft[1]==1?ft[1]=.01:ft[2]==1&&(ft[2]=.01),et({h:Number(zt[0]),s:Number(zt[1]),v:Number(zt[2]),source:"hsl"},Mt))}},ct=_default$2({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),pt=rt.r+", "+rt.g+", "+rt.b,dt=Math.round(ot.h)+"°, "+Math.round(ot.s*100)+"%, "+Math.round(ot.l*100)+"%",ft=Math.round(st.h)+"°, "+Math.round(st.s*100)+"%, "+Math.round(st.v*100)+"%";return React$1.createElement("div",{style:ct.wrap,className:"flexbox-fix"},React$1.createElement("div",{style:ct.fields},React$1.createElement("div",{style:ct.double},React$1.createElement(EditableInput,{style:{input:ct.input,label:ct.label},label:"hex",value:at,onChange:ut})),React$1.createElement("div",{style:ct.column},React$1.createElement("div",{style:ct.single},React$1.createElement(EditableInput,{style:{input:ct.input2,label:ct.label2},label:"rgb",value:pt,onChange:ut})),React$1.createElement("div",{style:ct.single},React$1.createElement(EditableInput,{style:{input:ct.input2,label:ct.label2},label:"hsv",value:ft,onChange:ut})),React$1.createElement("div",{style:ct.single},React$1.createElement(EditableInput,{style:{input:ct.input2,label:ct.label2},label:"hsl",value:dt,onChange:ut})))))},Google=function tt(nt){var et=nt.width,rt=nt.onChange,ot=nt.rgb,at=nt.hsl,st=nt.hsv,ut=nt.hex,ct=nt.header,pt=nt.styles,dt=pt===void 0?{}:pt,ft=nt.className,bt=ft===void 0?"":ft,ht=_default$2(merge$1({default:{picker:{width:et,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+ot.r+", "+ot.g+", "+ot.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},dt));return React$1.createElement("div",{style:ht.picker,className:"google-picker "+bt},React$1.createElement("div",{style:ht.head},ct),React$1.createElement("div",{style:ht.swatch}),React$1.createElement("div",{style:ht.saturation},React$1.createElement(Saturation,{hsl:at,hsv:st,pointer:GooglePointerCircle,onChange:rt})),React$1.createElement("div",{style:ht.body},React$1.createElement("div",{style:ht.controls,className:"flexbox-fix"},React$1.createElement("div",{style:ht.hue},React$1.createElement(Hue,{style:ht.Hue,hsl:at,radius:"4px",pointer:GooglePointer,onChange:rt}))),React$1.createElement(GoogleFields,{rgb:ot,hsl:at,hex:ut,hsv:st,onChange:rt})))};Google.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),styles:PropTypes.object,header:PropTypes.string};Google.defaultProps={width:652,styles:{},header:"Color picker"};ColorWrap(Google);const StyledColorPicker=newStyled("div",{target:"e1e9y8rp0"})(({disabled:tt,width:nt,theme:et})=>({fontFamily:et.genericFonts.bodyFont,display:"flex",flexDirection:"column",alignItems:"flex-start",cursor:tt?"not-allowed":"default",width:nt})),StyledChromePicker=newStyled("div",{target:"e1e9y8rp1"})(({theme:tt})=>({div:{fontFamily:`${tt.genericFonts.bodyFont} !important`},label:{fontSize:`${tt.fontSizes.sm} !important`,color:`${tt.colors.bodyText} !important`},input:{fontSize:`${tt.fontSizes.md} !important`,height:`${tt.sizes.minElementHeight} !important`,backgroundColor:`${tt.colors.secondaryBg} !important`,color:`${tt.colors.bodyText} !important`,borderRadius:`${tt.radii.default} !important`,boxShadow:"none !important","&:focus-visible":{outline:`${tt.sizes.borderWidth} solid ${tt.colors.primary} !important`}},svg:{fill:`${tt.colors.bodyText} !important`}})),StyledColorPreview=newStyled("div",{target:"e1e9y8rp2"})(({disabled:tt,theme:nt})=>({height:nt.sizes.minElementHeight,borderRadius:nt.radii.default,borderColor:nt.colors.borderColor,cursor:tt?"not-allowed":"pointer",pointerEvents:tt?"none":"auto",boxShadow:"none",lineHeight:nt.lineHeights.base,gap:nt.spacing.md,"&:focus":{outline:"none"},display:"flex"})),StyledColorBlock=newStyled("div",{target:"e1e9y8rp3"})(({backgroundColor:tt,disabled:nt,theme:et})=>({width:et.sizes.minElementHeight,height:et.sizes.minElementHeight,borderRadius:et.radii.default,borderColor:et.colors.borderColor,borderWidth:et.sizes.borderWidth,opacity:nt?"0.4":"",backgroundColor:tt,borderStyle:"solid",cursor:"pointer",lineHeight:et.lineHeights.base,"&:focus":{outline:"none"}})),StyledColorValue=newStyled("div",{target:"e1e9y8rp4"})({display:"flex",alignItems:"center"});Saturation.prototype.getContainerRenderWindow=function(){const tt=this.container;let nt=window,et=window;try{for(;!nt.document.contains(tt)&&nt.parent!==nt;)et=nt,nt=nt.parent}catch{nt=et}return nt};const BaseColorPicker=tt=>{const{disabled:nt,width:et,value:rt,showValue:ot,label:at,labelVisibility:st,onChange:ut,help:ct}=tt,[pt,dt]=React$1.useState(rt),ft=useTheme();React$1.useEffect(()=>{dt(rt)},[rt]);const bt=React$1.useCallback(mt=>{dt(mt.hex)},[]),ht=React$1.useCallback(()=>{ut(pt)},[ut,pt]),Mt={default:{picker:{borderRadius:ft.radii.default,boxShadow:"none",backgroundColor:ft.colors.bgColor},saturation:{borderRadius:`${ft.radii.default} ${ft.radii.default} 0 0`,userSelect:"none"},body:{padding:ft.spacing.xl}}};return jsxs(StyledColorPicker,{className:"stColorPicker","data-testid":"stColorPicker",width:et,disabled:nt,children:[jsx$1(WidgetLabel,{label:at,disabled:nt,labelVisibility:st,children:ct&&jsx$1(StyledWidgetLabelHelpInline,{children:jsx$1(TooltipIcon,{content:ct,placement:Placement.TOP_RIGHT})})}),jsx$1(StatefulPopover,{onClose:ht,placement:"bottomLeft",content:()=>jsx$1(StyledChromePicker,{"data-testid":"stColorPickerPopover",children:jsx$1(ChromePicker,{color:pt,onChange:bt,disableAlpha:!0,styles:Mt})}),children:jsxs(StyledColorPreview,{disabled:nt,children:[jsx$1(StyledColorBlock,{"data-testid":"stColorPickerBlock",backgroundColor:pt,disabled:nt}),ot&&jsx$1(StyledColorValue,{children:pt.toUpperCase()})]})})]})},BaseColorPicker$1=reactExports.memo(BaseColorPicker);var lib$1={},uaParser_min={exports:{}};(function(tt,nt){(function(et,rt){var ot="1.0.39",at="",st="?",ut="function",ct="undefined",pt="object",dt="string",ft="major",bt="model",ht="name",Mt="type",mt="vendor",Ot="version",zt="architecture",yt="console",vt="mobile",At="tablet",St="smarttv",Et="wearable",Tt="embedded",Rt=500,Ct="Amazon",wt="Apple",Lt="ASUS",Ht="BlackBerry",jt="Browser",s0="Chrome",Ut="Edge",Yt="Firefox",O0="Google",a0="Huawei",b0="LG",kt="Microsoft",o0="Motorola",qt="Opera",Dt="Samsung",Bt="Sharp",p0="Sony",r0="Xiaomi",l0="Zebra",f0="Facebook",i0="Chromium OS",$t="Mac OS",It=" Browser",Vt=function(e0,Nt){var Xt={};for(var d0 in e0)Nt[d0]&&Nt[d0].length%2===0?Xt[d0]=Nt[d0].concat(e0[d0]):Xt[d0]=e0[d0];return Xt},xt=function(e0){for(var Nt={},Xt=0;Xt<e0.length;Xt++)Nt[e0[Xt].toUpperCase()]=e0[Xt];return Nt},Ft=function(e0,Nt){return typeof e0===dt?Pt(Nt).indexOf(Pt(e0))!==-1:!1},Pt=function(e0){return e0.toLowerCase()},Zt=function(e0){return typeof e0===dt?e0.replace(/[^\d\.]/g,at).split(".")[0]:rt},Kt=function(e0,Nt){if(typeof e0===dt)return e0=e0.replace(/^\s\s*/,at),typeof Nt===ct?e0:e0.substring(0,Rt)},n0=function(e0,Nt){for(var Xt=0,d0,z0,w0,E0,g0,k0;Xt<Nt.length&&!g0;){var I0=Nt[Xt],N0=Nt[Xt+1];for(d0=z0=0;d0<I0.length&&!g0&&I0[d0];)if(g0=I0[d0++].exec(e0),g0)for(w0=0;w0<N0.length;w0++)k0=g0[++z0],E0=N0[w0],typeof E0===pt&&E0.length>0?E0.length===2?typeof E0[1]==ut?this[E0[0]]=E0[1].call(this,k0):this[E0[0]]=E0[1]:E0.length===3?typeof E0[1]===ut&&!(E0[1].exec&&E0[1].test)?this[E0[0]]=k0?E0[1].call(this,k0,E0[2]):rt:this[E0[0]]=k0?k0.replace(E0[1],E0[2]):rt:E0.length===4&&(this[E0[0]]=k0?E0[3].call(this,k0.replace(E0[1],E0[2])):rt):this[E0]=k0||rt;Xt+=2}},c0=function(e0,Nt){for(var Xt in Nt)if(typeof Nt[Xt]===pt&&Nt[Xt].length>0){for(var d0=0;d0<Nt[Xt].length;d0++)if(Ft(Nt[Xt][d0],e0))return Xt===st?rt:Xt}else if(Ft(Nt[Xt],e0))return Xt===st?rt:Xt;return Nt.hasOwnProperty("*")?Nt["*"]:e0},u0={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},y0={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},D0={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[Ot,[ht,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[Ot,[ht,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[ht,Ot],[/opios[\/ ]+([\w\.]+)/i],[Ot,[ht,qt+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[Ot,[ht,qt+" GX"]],[/\bopr\/([\w\.]+)/i],[Ot,[ht,qt]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[Ot,[ht,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[ht,Ot],[/quark(?:pc)?\/([-\w\.]+)/i],[Ot,[ht,"Quark"]],[/\bddg\/([\w\.]+)/i],[Ot,[ht,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[Ot,[ht,"UC"+jt]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[Ot,[ht,"WeChat"]],[/konqueror\/([\w\.]+)/i],[Ot,[ht,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[Ot,[ht,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[Ot,[ht,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[Ot,[ht,"Smart Lenovo "+jt]],[/(avast|avg)\/([\w\.]+)/i],[[ht,/(.+)/,"$1 Secure "+jt],Ot],[/\bfocus\/([\w\.]+)/i],[Ot,[ht,Yt+" Focus"]],[/\bopt\/([\w\.]+)/i],[Ot,[ht,qt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[Ot,[ht,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[Ot,[ht,"Dolphin"]],[/coast\/([\w\.]+)/i],[Ot,[ht,qt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[Ot,[ht,"MIUI "+jt]],[/fxios\/([-\w\.]+)/i],[Ot,[ht,Yt]],[/\bqihu|(qi?ho?o?|360)browser/i],[[ht,"360"+It]],[/\b(qq)\/([\w\.]+)/i],[[ht,/(.+)/,"$1Browser"],Ot],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[ht,/(.+)/,"$1"+It],Ot],[/samsungbrowser\/([\w\.]+)/i],[Ot,[ht,Dt+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[ht,/_/g," "],Ot],[/metasr[\/ ]?([\d\.]+)/i],[Ot,[ht,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[ht,"Sogou Mobile"],Ot],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[ht,Ot],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[ht],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[ht,f0],Ot],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[ht,Ot],[/\bgsa\/([\w\.]+) .*safari\//i],[Ot,[ht,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[Ot,[ht,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[Ot,[ht,s0+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[ht,s0+" WebView"],Ot],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[Ot,[ht,"Android "+jt]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[ht,Ot],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[Ot,[ht,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[Ot,ht],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[ht,[Ot,c0,u0]],[/(webkit|khtml)\/([\w\.]+)/i],[ht,Ot],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[ht,"Netscape"],Ot],[/(wolvic)\/([\w\.]+)/i],[ht,Ot],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[Ot,[ht,Yt+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[ht,[Ot,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[ht,[Ot,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[zt,"amd64"]],[/(ia32(?=;))/i],[[zt,Pt]],[/((?:i[346]|x)86)[;\)]/i],[[zt,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[zt,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[zt,"armhf"]],[/windows (ce|mobile); ppc;/i],[[zt,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[zt,/ower/,at,Pt]],[/(sun4\w)[;\)]/i],[[zt,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[zt,Pt]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[bt,[mt,Dt],[Mt,At]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[bt,[mt,Dt],[Mt,vt]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[bt,[mt,wt],[Mt,vt]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[bt,[mt,wt],[Mt,At]],[/(macintosh);/i],[bt,[mt,wt]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[bt,[mt,Bt],[Mt,vt]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[bt,[mt,a0],[Mt,At]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[bt,[mt,a0],[Mt,vt]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[bt,/_/g," "],[mt,r0],[Mt,vt]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[bt,/_/g," "],[mt,r0],[Mt,At]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[bt,[mt,"OPPO"],[Mt,vt]],[/\b(opd2\d{3}a?) bui/i],[bt,[mt,"OPPO"],[Mt,At]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[bt,[mt,"Vivo"],[Mt,vt]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[bt,[mt,"Realme"],[Mt,vt]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[bt,[mt,o0],[Mt,vt]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[bt,[mt,o0],[Mt,At]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[bt,[mt,b0],[Mt,At]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[bt,[mt,b0],[Mt,vt]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[bt,[mt,"Lenovo"],[Mt,At]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[bt,/_/g," "],[mt,"Nokia"],[Mt,vt]],[/(pixel c)\b/i],[bt,[mt,O0],[Mt,At]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[bt,[mt,O0],[Mt,vt]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[bt,[mt,p0],[Mt,vt]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[bt,"Xperia Tablet"],[mt,p0],[Mt,At]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[bt,[mt,"OnePlus"],[Mt,vt]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[bt,[mt,Ct],[Mt,At]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[bt,/(.+)/g,"Fire Phone $1"],[mt,Ct],[Mt,vt]],[/(playbook);[-\w\),; ]+(rim)/i],[bt,mt,[Mt,At]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[bt,[mt,Ht],[Mt,vt]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[bt,[mt,Lt],[Mt,At]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[bt,[mt,Lt],[Mt,vt]],[/(nexus 9)/i],[bt,[mt,"HTC"],[Mt,At]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[mt,[bt,/_/g," "],[Mt,vt]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[bt,[mt,"TCL"],[Mt,At]],[/(itel) ((\w+))/i],[[mt,Pt],bt,[Mt,c0,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[bt,[mt,"Acer"],[Mt,At]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[bt,[mt,"Meizu"],[Mt,vt]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[bt,[mt,"Ulefone"],[Mt,vt]],[/droid.+; (a(?:015|06[35]|142p?))/i],[bt,[mt,"Nothing"],[Mt,vt]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[mt,bt,[Mt,vt]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[mt,bt,[Mt,At]],[/(surface duo)/i],[bt,[mt,kt],[Mt,At]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[bt,[mt,"Fairphone"],[Mt,vt]],[/(u304aa)/i],[bt,[mt,"AT&T"],[Mt,vt]],[/\bsie-(\w*)/i],[bt,[mt,"Siemens"],[Mt,vt]],[/\b(rct\w+) b/i],[bt,[mt,"RCA"],[Mt,At]],[/\b(venue[\d ]{2,7}) b/i],[bt,[mt,"Dell"],[Mt,At]],[/\b(q(?:mv|ta)\w+) b/i],[bt,[mt,"Verizon"],[Mt,At]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[bt,[mt,"Barnes & Noble"],[Mt,At]],[/\b(tm\d{3}\w+) b/i],[bt,[mt,"NuVision"],[Mt,At]],[/\b(k88) b/i],[bt,[mt,"ZTE"],[Mt,At]],[/\b(nx\d{3}j) b/i],[bt,[mt,"ZTE"],[Mt,vt]],[/\b(gen\d{3}) b.+49h/i],[bt,[mt,"Swiss"],[Mt,vt]],[/\b(zur\d{3}) b/i],[bt,[mt,"Swiss"],[Mt,At]],[/\b((zeki)?tb.*\b) b/i],[bt,[mt,"Zeki"],[Mt,At]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[mt,"Dragon Touch"],bt,[Mt,At]],[/\b(ns-?\w{0,9}) b/i],[bt,[mt,"Insignia"],[Mt,At]],[/\b((nxa|next)-?\w{0,9}) b/i],[bt,[mt,"NextBook"],[Mt,At]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[mt,"Voice"],bt,[Mt,vt]],[/\b(lvtel\-)?(v1[12]) b/i],[[mt,"LvTel"],bt,[Mt,vt]],[/\b(ph-1) /i],[bt,[mt,"Essential"],[Mt,vt]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[bt,[mt,"Envizen"],[Mt,At]],[/\b(trio[-\w\. ]+) b/i],[bt,[mt,"MachSpeed"],[Mt,At]],[/\btu_(1491) b/i],[bt,[mt,"Rotor"],[Mt,At]],[/(shield[\w ]+) b/i],[bt,[mt,"Nvidia"],[Mt,At]],[/(sprint) (\w+)/i],[mt,bt,[Mt,vt]],[/(kin\.[onetw]{3})/i],[[bt,/\./g," "],[mt,kt],[Mt,vt]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[bt,[mt,l0],[Mt,At]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[bt,[mt,l0],[Mt,vt]],[/smart-tv.+(samsung)/i],[mt,[Mt,St]],[/hbbtv.+maple;(\d+)/i],[[bt,/^/,"SmartTV"],[mt,Dt],[Mt,St]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[mt,b0],[Mt,St]],[/(apple) ?tv/i],[mt,[bt,wt+" TV"],[Mt,St]],[/crkey/i],[[bt,s0+"cast"],[mt,O0],[Mt,St]],[/droid.+aft(\w+)( bui|\))/i],[bt,[mt,Ct],[Mt,St]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[bt,[mt,Bt],[Mt,St]],[/(bravia[\w ]+)( bui|\))/i],[bt,[mt,p0],[Mt,St]],[/(mitv-\w{5}) bui/i],[bt,[mt,r0],[Mt,St]],[/Hbbtv.*(technisat) (.*);/i],[mt,bt,[Mt,St]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[mt,Kt],[bt,Kt],[Mt,St]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[Mt,St]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[mt,bt,[Mt,yt]],[/droid.+; (shield) bui/i],[bt,[mt,"Nvidia"],[Mt,yt]],[/(playstation [345portablevi]+)/i],[bt,[mt,p0],[Mt,yt]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[bt,[mt,kt],[Mt,yt]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[bt,[mt,Dt],[Mt,Et]],[/((pebble))app/i],[mt,bt,[Mt,Et]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[bt,[mt,wt],[Mt,Et]],[/droid.+; (glass) \d/i],[bt,[mt,O0],[Mt,Et]],[/droid.+; (wt63?0{2,3})\)/i],[bt,[mt,l0],[Mt,Et]],[/(quest( \d| pro)?)/i],[bt,[mt,f0],[Mt,Et]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[mt,[Mt,Tt]],[/(aeobc)\b/i],[bt,[mt,Ct],[Mt,Tt]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[bt,[Mt,vt]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[bt,[Mt,At]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[Mt,At]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[Mt,vt]],[/(android[-\w\. ]{0,9});.+buil/i],[bt,[mt,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[Ot,[ht,Ut+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[Ot,[ht,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[ht,Ot],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[Ot,ht]],os:[[/microsoft (windows) (vista|xp)/i],[ht,Ot],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[ht,[Ot,c0,y0]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[Ot,c0,y0],[ht,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[Ot,/_/g,"."],[ht,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[ht,$t],[Ot,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[Ot,ht],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[ht,Ot],[/\(bb(10);/i],[Ot,[ht,Ht]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[Ot,[ht,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[Ot,[ht,Yt+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[Ot,[ht,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[Ot,[ht,"watchOS"]],[/crkey\/([\d\.]+)/i],[Ot,[ht,s0+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[ht,i0],Ot],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[ht,Ot],[/(sunos) ?([\w\.\d]*)/i],[[ht,"Solaris"],Ot],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[ht,Ot]]},S0=function(e0,Nt){if(typeof e0===pt&&(Nt=e0,e0=rt),!(this instanceof S0))return new S0(e0,Nt).getResult();var Xt=typeof et!==ct&&et.navigator?et.navigator:rt,d0=e0||(Xt&&Xt.userAgent?Xt.userAgent:at),z0=Xt&&Xt.userAgentData?Xt.userAgentData:rt,w0=Nt?Vt(D0,Nt):D0,E0=Xt&&Xt.userAgent==d0;return this.getBrowser=function(){var g0={};return g0[ht]=rt,g0[Ot]=rt,n0.call(g0,d0,w0.browser),g0[ft]=Zt(g0[Ot]),E0&&Xt&&Xt.brave&&typeof Xt.brave.isBrave==ut&&(g0[ht]="Brave"),g0},this.getCPU=function(){var g0={};return g0[zt]=rt,n0.call(g0,d0,w0.cpu),g0},this.getDevice=function(){var g0={};return g0[mt]=rt,g0[bt]=rt,g0[Mt]=rt,n0.call(g0,d0,w0.device),E0&&!g0[Mt]&&z0&&z0.mobile&&(g0[Mt]=vt),E0&&g0[bt]=="Macintosh"&&Xt&&typeof Xt.standalone!==ct&&Xt.maxTouchPoints&&Xt.maxTouchPoints>2&&(g0[bt]="iPad",g0[Mt]=At),g0},this.getEngine=function(){var g0={};return g0[ht]=rt,g0[Ot]=rt,n0.call(g0,d0,w0.engine),g0},this.getOS=function(){var g0={};return g0[ht]=rt,g0[Ot]=rt,n0.call(g0,d0,w0.os),E0&&!g0[ht]&&z0&&z0.platform&&z0.platform!="Unknown"&&(g0[ht]=z0.platform.replace(/chrome os/i,i0).replace(/macos/i,$t)),g0},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return d0},this.setUA=function(g0){return d0=typeof g0===dt&&g0.length>Rt?Kt(g0,Rt):g0,this},this.setUA(d0),this};S0.VERSION=ot,S0.BROWSER=xt([ht,Ot,ft]),S0.CPU=xt([zt]),S0.DEVICE=xt([bt,mt,Mt,yt,vt,St,At,Et,Tt]),S0.ENGINE=S0.OS=xt([ht,Ot]),tt.exports&&(nt=tt.exports=S0),nt.UAParser=S0;var x0=typeof et!==ct&&(et.jQuery||et.Zepto);if(x0&&!x0.ua){var m0=new S0;x0.ua=m0.getResult(),x0.ua.get=function(){return m0.getUA()},x0.ua.set=function(e0){m0.setUA(e0);var Nt=m0.getResult();for(var Xt in Nt)x0.ua[Xt]=Nt[Xt]}}})(typeof window=="object"?window:commonjsGlobal$1)})(uaParser_min,uaParser_min.exports);var uaParser_minExports=uaParser_min.exports;Object.defineProperty(lib$1,"__esModule",{value:!0});function _interopDefault(tt){return tt&&typeof tt=="object"&&"default"in tt?tt.default:tt}var React=reactExports,React__default=_interopDefault(React),UAParser$1=uaParser_minExports,ClientUAInstance=new UAParser$1,browser=ClientUAInstance.getBrowser(),cpu=ClientUAInstance.getCPU(),device=ClientUAInstance.getDevice(),engine$1=ClientUAInstance.getEngine(),os=ClientUAInstance.getOS(),ua=ClientUAInstance.getUA(),setUa=function tt(nt){return ClientUAInstance.setUA(nt)},parseUserAgent=function tt(nt){if(!nt){console.error("No userAgent string was provided");return}var et=new UAParser$1(nt);return{UA:et,browser:et.getBrowser(),cpu:et.getCPU(),device:et.getDevice(),engine:et.getEngine(),os:et.getOS(),ua:et.getUA(),setUserAgent:function(ot){return et.setUA(ot)}}},UAHelper=Object.freeze({ClientUAInstance,browser,cpu,device,engine:engine$1,os,ua,setUa,parseUserAgent});function ownKeys$a(tt,nt){var et=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);nt&&(rt=rt.filter(function(ot){return Object.getOwnPropertyDescriptor(tt,ot).enumerable})),et.push.apply(et,rt)}return et}function _objectSpread2(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt]!=null?arguments[nt]:{};nt%2?ownKeys$a(Object(et),!0).forEach(function(rt){_defineProperty$c(tt,rt,et[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(et)):ownKeys$a(Object(et)).forEach(function(rt){Object.defineProperty(tt,rt,Object.getOwnPropertyDescriptor(et,rt))})}return tt}function _typeof$6(tt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(nt){return typeof nt}:_typeof$6=function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},_typeof$6(tt)}function _classCallCheck$5(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(tt,nt){for(var et=0;et<nt.length;et++){var rt=nt[et];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(tt,rt.key,rt)}}function _createClass$5(tt,nt,et){return nt&&_defineProperties$5(tt.prototype,nt),tt}function _defineProperty$c(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}function _extends$h(){return _extends$h=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_extends$h.apply(this,arguments)}function _inherits$5(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function");tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,writable:!0,configurable:!0}}),nt&&_setPrototypeOf$5(tt,nt)}function _getPrototypeOf$5(tt){return _getPrototypeOf$5=Object.setPrototypeOf?Object.getPrototypeOf:function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$5(tt)}function _setPrototypeOf$5(tt,nt){return _setPrototypeOf$5=Object.setPrototypeOf||function(rt,ot){return rt.__proto__=ot,rt},_setPrototypeOf$5(tt,nt)}function _objectWithoutPropertiesLoose$f(tt,nt){if(tt==null)return{};var et={},rt=Object.keys(tt),ot,at;for(at=0;at<rt.length;at++)ot=rt[at],!(nt.indexOf(ot)>=0)&&(et[ot]=tt[ot]);return et}function _objectWithoutProperties$f(tt,nt){if(tt==null)return{};var et=_objectWithoutPropertiesLoose$f(tt,nt),rt,ot;if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(tt);for(ot=0;ot<at.length;ot++)rt=at[ot],!(nt.indexOf(rt)>=0)&&Object.prototype.propertyIsEnumerable.call(tt,rt)&&(et[rt]=tt[rt])}return et}function _assertThisInitialized$5(tt){if(tt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt}function _possibleConstructorReturn$5(tt,nt){if(nt&&(typeof nt=="object"||typeof nt=="function"))return nt;if(nt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$5(tt)}function _slicedToArray$d(tt,nt){return _arrayWithHoles$d(tt)||_iterableToArrayLimit$d(tt,nt)||_unsupportedIterableToArray$d(tt,nt)||_nonIterableRest$d()}function _arrayWithHoles$d(tt){if(Array.isArray(tt))return tt}function _iterableToArrayLimit$d(tt,nt){var et=tt==null?null:typeof Symbol<"u"&&tt[Symbol.iterator]||tt["@@iterator"];if(et!=null){var rt=[],ot=!0,at=!1,st,ut;try{for(et=et.call(tt);!(ot=(st=et.next()).done)&&(rt.push(st.value),!(nt&&rt.length===nt));ot=!0);}catch(ct){at=!0,ut=ct}finally{try{!ot&&et.return!=null&&et.return()}finally{if(at)throw ut}}return rt}}function _unsupportedIterableToArray$d(tt,nt){if(tt){if(typeof tt=="string")return _arrayLikeToArray$d(tt,nt);var et=Object.prototype.toString.call(tt).slice(8,-1);if(et==="Object"&&tt.constructor&&(et=tt.constructor.name),et==="Map"||et==="Set")return Array.from(tt);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$d(tt,nt)}}function _arrayLikeToArray$d(tt,nt){(nt==null||nt>tt.length)&&(nt=tt.length);for(var et=0,rt=new Array(nt);et<nt;et++)rt[et]=tt[et];return rt}function _nonIterableRest$d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
710
710
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var DeviceTypes={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},BrowserTypes={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},OsTypes={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},InitialDeviceTypes={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},checkDeviceType=function tt(nt){switch(nt){case DeviceTypes.Mobile:return{isMobile:!0};case DeviceTypes.Tablet:return{isTablet:!0};case DeviceTypes.SmartTv:return{isSmartTV:!0};case DeviceTypes.Console:return{isConsole:!0};case DeviceTypes.Wearable:return{isWearable:!0};case DeviceTypes.Browser:return{isBrowser:!0};case DeviceTypes.Embedded:return{isEmbedded:!0};default:return InitialDeviceTypes}},setUserAgent=function tt(nt){return setUa(nt)},setDefaults=function tt(nt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return nt||et},getNavigatorInstance=function tt(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},isIOS13Check=function tt(nt){var et=getNavigatorInstance();return et&&et.platform&&(et.platform.indexOf(nt)!==-1||et.platform==="MacIntel"&&et.maxTouchPoints>1&&!window.MSStream)},browserPayload=function tt(nt,et,rt,ot,at){return{isBrowser:nt,browserMajorVersion:setDefaults(et.major),browserFullVersion:setDefaults(et.version),browserName:setDefaults(et.name),engineName:setDefaults(rt.name),engineVersion:setDefaults(rt.version),osName:setDefaults(ot.name),osVersion:setDefaults(ot.version),userAgent:setDefaults(at)}},mobilePayload=function tt(nt,et,rt,ot){return _objectSpread2({},nt,{vendor:setDefaults(et.vendor),model:setDefaults(et.model),os:setDefaults(rt.name),osVersion:setDefaults(rt.version),ua:setDefaults(ot)})},smartTvPayload=function tt(nt,et,rt,ot){return{isSmartTV:nt,engineName:setDefaults(et.name),engineVersion:setDefaults(et.version),osName:setDefaults(rt.name),osVersion:setDefaults(rt.version),userAgent:setDefaults(ot)}},consolePayload=function tt(nt,et,rt,ot){return{isConsole:nt,engineName:setDefaults(et.name),engineVersion:setDefaults(et.version),osName:setDefaults(rt.name),osVersion:setDefaults(rt.version),userAgent:setDefaults(ot)}},wearablePayload=function tt(nt,et,rt,ot){return{isWearable:nt,engineName:setDefaults(et.name),engineVersion:setDefaults(et.version),osName:setDefaults(rt.name),osVersion:setDefaults(rt.version),userAgent:setDefaults(ot)}},embeddedPayload=function tt(nt,et,rt,ot,at){return{isEmbedded:nt,vendor:setDefaults(et.vendor),model:setDefaults(et.model),engineName:setDefaults(rt.name),engineVersion:setDefaults(rt.version),osName:setDefaults(ot.name),osVersion:setDefaults(ot.version),userAgent:setDefaults(at)}};function deviceDetect(tt){var nt=tt?parseUserAgent(tt):UAHelper,et=nt.device,rt=nt.browser,ot=nt.engine,at=nt.os,st=nt.ua,ut=checkDeviceType(et.type),ct=ut.isBrowser,pt=ut.isMobile,dt=ut.isTablet,ft=ut.isSmartTV,bt=ut.isConsole,ht=ut.isWearable,Mt=ut.isEmbedded;if(ct)return browserPayload(ct,rt,ot,at,st);if(ft)return smartTvPayload(ft,ot,at,st);if(bt)return consolePayload(bt,ot,at,st);if(pt||dt)return mobilePayload(ut,et,at,st);if(ht)return wearablePayload(ht,ot,at,st);if(Mt)return embeddedPayload(Mt,et,ot,at,st)}var isMobileType=function tt(nt){var et=nt.type;return et===DeviceTypes.Mobile},isTabletType=function tt(nt){var et=nt.type;return et===DeviceTypes.Tablet},isMobileAndTabletType=function tt(nt){var et=nt.type;return et===DeviceTypes.Mobile||et===DeviceTypes.Tablet},isSmartTVType=function tt(nt){var et=nt.type;return et===DeviceTypes.SmartTv},isBrowserType=function tt(nt){var et=nt.type;return et===DeviceTypes.Browser},isWearableType=function tt(nt){var et=nt.type;return et===DeviceTypes.Wearable},isConsoleType=function tt(nt){var et=nt.type;return et===DeviceTypes.Console},isEmbeddedType=function tt(nt){var et=nt.type;return et===DeviceTypes.Embedded},getMobileVendor=function tt(nt){var et=nt.vendor;return setDefaults(et)},getMobileModel=function tt(nt){var et=nt.model;return setDefaults(et)},getDeviceType=function tt(nt){var et=nt.type;return setDefaults(et,"browser")},isAndroidType=function tt(nt){var et=nt.name;return et===OsTypes.Android},isWindowsType=function tt(nt){var et=nt.name;return et===OsTypes.Windows},isMacOsType=function tt(nt){var et=nt.name;return et===OsTypes.MAC_OS},isWinPhoneType=function tt(nt){var et=nt.name;return et===OsTypes.WindowsPhone},isIOSType=function tt(nt){var et=nt.name;return et===OsTypes.IOS},getOsVersion=function tt(nt){var et=nt.version;return setDefaults(et)},getOsName=function tt(nt){var et=nt.name;return setDefaults(et)},isChromeType=function tt(nt){var et=nt.name;return et===BrowserTypes.Chrome},isFirefoxType=function tt(nt){var et=nt.name;return et===BrowserTypes.Firefox},isChromiumType=function tt(nt){var et=nt.name;return et===BrowserTypes.Chromium},isEdgeType=function tt(nt){var et=nt.name;return et===BrowserTypes.Edge},isYandexType=function tt(nt){var et=nt.name;return et===BrowserTypes.Yandex},isSafariType=function tt(nt){var et=nt.name;return et===BrowserTypes.Safari||et===BrowserTypes.MobileSafari},isMobileSafariType=function tt(nt){var et=nt.name;return et===BrowserTypes.MobileSafari},isOperaType=function tt(nt){var et=nt.name;return et===BrowserTypes.Opera},isIEType=function tt(nt){var et=nt.name;return et===BrowserTypes.InternetExplorer||et===BrowserTypes.Ie},isMIUIType=function tt(nt){var et=nt.name;return et===BrowserTypes.MIUI},isSamsungBrowserType=function tt(nt){var et=nt.name;return et===BrowserTypes.SamsungBrowser},getBrowserFullVersion=function tt(nt){var et=nt.version;return setDefaults(et)},getBrowserVersion=function tt(nt){var et=nt.major;return setDefaults(et)},getBrowserName=function tt(nt){var et=nt.name;return setDefaults(et)},getEngineName=function tt(nt){var et=nt.name;return setDefaults(et)},getEngineVersion=function tt(nt){var et=nt.version;return setDefaults(et)},isElectronType=function tt(){var nt=getNavigatorInstance(),et=nt&&nt.userAgent&&nt.userAgent.toLowerCase();return typeof et=="string"?/electron/.test(et):!1},isEdgeChromiumType=function tt(nt){return typeof nt=="string"&&nt.indexOf("Edg/")!==-1},getIOS13=function tt(){var nt=getNavigatorInstance();return nt&&(/iPad|iPhone|iPod/.test(nt.platform)||nt.platform==="MacIntel"&&nt.maxTouchPoints>1)&&!window.MSStream},getIPad13=function tt(){return isIOS13Check("iPad")},getIphone13=function tt(){return isIOS13Check("iPhone")},getIPod13=function tt(){return isIOS13Check("iPod")},getUseragent=function tt(nt){return setDefaults(nt)};function buildSelectorsObject(tt){var nt=tt||UAHelper,et=nt.device,rt=nt.browser,ot=nt.os,at=nt.engine,st=nt.ua;return{isSmartTV:isSmartTVType(et),isConsole:isConsoleType(et),isWearable:isWearableType(et),isEmbedded:isEmbeddedType(et),isMobileSafari:isMobileSafariType(rt)||getIPad13(),isChromium:isChromiumType(rt),isMobile:isMobileAndTabletType(et)||getIPad13(),isMobileOnly:isMobileType(et),isTablet:isTabletType(et)||getIPad13(),isBrowser:isBrowserType(et),isDesktop:isBrowserType(et),isAndroid:isAndroidType(ot),isWinPhone:isWinPhoneType(ot),isIOS:isIOSType(ot)||getIPad13(),isChrome:isChromeType(rt),isFirefox:isFirefoxType(rt),isSafari:isSafariType(rt),isOpera:isOperaType(rt),isIE:isIEType(rt),osVersion:getOsVersion(ot),osName:getOsName(ot),fullBrowserVersion:getBrowserFullVersion(rt),browserVersion:getBrowserVersion(rt),browserName:getBrowserName(rt),mobileVendor:getMobileVendor(et),mobileModel:getMobileModel(et),engineName:getEngineName(at),engineVersion:getEngineVersion(at),getUA:getUseragent(st),isEdge:isEdgeType(rt)||isEdgeChromiumType(st),isYandex:isYandexType(rt),deviceType:getDeviceType(et),isIOS13:getIOS13(),isIPad13:getIPad13(),isIPhone13:getIphone13(),isIPod13:getIPod13(),isElectron:isElectronType(),isEdgeChromium:isEdgeChromiumType(st),isLegacyEdge:isEdgeType(rt)&&!isEdgeChromiumType(st),isWindows:isWindowsType(ot),isMacOs:isMacOsType(ot),isMIUI:isMIUIType(rt),isSamsungBrowser:isSamsungBrowserType(rt)}}var isSmartTV=isSmartTVType(device),isConsole=isConsoleType(device),isWearable=isWearableType(device),isEmbedded=isEmbeddedType(device),isMobileSafari=isMobileSafariType(browser)||getIPad13(),isChromium=isChromiumType(browser),isMobile=isMobileAndTabletType(device)||getIPad13(),isMobileOnly=isMobileType(device),isTablet=isTabletType(device)||getIPad13(),isBrowser=isBrowserType(device),isDesktop=isBrowserType(device),isAndroid=isAndroidType(os),isWinPhone=isWinPhoneType(os),isIOS=isIOSType(os)||getIPad13(),isChrome=isChromeType(browser),isFirefox=isFirefoxType(browser),isSafari=isSafariType(browser),isOpera=isOperaType(browser),isIE=isIEType(browser),osVersion=getOsVersion(os),osName=getOsName(os),fullBrowserVersion=getBrowserFullVersion(browser),browserVersion=getBrowserVersion(browser),browserName=getBrowserName(browser),mobileVendor=getMobileVendor(device),mobileModel=getMobileModel(device),engineName=getEngineName(engine$1),engineVersion=getEngineVersion(engine$1),getUA=getUseragent(ua),isEdge=isEdgeType(browser)||isEdgeChromiumType(ua),isYandex=isYandexType(browser),deviceType=getDeviceType(device),isIOS13=getIOS13(),isIPad13=getIPad13(),isIPhone13=getIphone13(),isIPod13=getIPod13(),isElectron=isElectronType(),isEdgeChromium=isEdgeChromiumType(ua),isLegacyEdge=isEdgeType(browser)&&!isEdgeChromiumType(ua),isWindows=isWindowsType(os),isMacOs=isMacOsType(os),isMIUI=isMIUIType(browser),isSamsungBrowser=isSamsungBrowserType(browser),getSelectorsByUserAgent=function tt(nt){if(!nt||typeof nt!="string"){console.error("No valid user agent string was provided");return}var et=parseUserAgent(nt),rt=et.device,ot=et.browser,at=et.os,st=et.engine,ut=et.ua;return buildSelectorsObject({device:rt,browser:ot,os:at,engine:st,ua:ut})},AndroidView=function tt(nt){var et=nt.renderWithFragment,rt=nt.children,ot=_objectWithoutProperties$f(nt,["renderWithFragment","children"]);return isAndroid?et?React__default.createElement(React.Fragment,null,rt):React__default.createElement("div",ot,rt):null},BrowserView=function tt(nt){var et=nt.renderWithFragment,rt=nt.children,ot=_objectWithoutProperties$f(nt,["renderWithFragment","children"]);return isBrowser?et?React__default.createElement(React.Fragment,null,rt):React__default.createElement("div",ot,rt):null},IEView=function tt(nt){var et=nt.renderWithFragment,rt=nt.children,ot=_objectWithoutProperties$f(nt,["renderWithFragment","children"]);return isIE?et?React__default.createElement(React.Fragment,null,rt):React__default.createElement("div",ot,rt):null},IOSView=function tt(nt){var et=nt.renderWithFragment,rt=nt.children,ot=_objectWithoutProperties$f(nt,["renderWithFragment","children"]);return isIOS?et?React__default.createElement(React.Fragment,null,rt):React__default.createElement("div",ot,rt):null},MobileView=function tt(nt){var et=nt.renderWithFragment,rt=nt.children,ot=_objectWithoutProperties$f(nt,["renderWithFragment","children"]);return isMobile?et?React__default.createElement(React.Fragment,null,rt):React__default.createElement("div",ot,rt):null},TabletView=function tt(nt){var et=nt.renderWithFragment,rt=nt.children,ot=_objectWithoutProperties$f(nt,["renderWithFragment","children"]);return isTablet?et?React__default.createElement(React.Fragment,null,rt):React__default.createElement("div",ot,rt):null},WinPhoneView=function tt(nt){var et=nt.renderWithFragment,rt=nt.children,ot=_objectWithoutProperties$f(nt,["renderWithFragment","children"]);return isWinPhone?et?React__default.createElement(React.Fragment,null,rt):React__default.createElement("div",ot,rt):null},MobileOnlyView=function tt(nt){var et=nt.renderWithFragment,rt=nt.children;nt.viewClassName,nt.style;var ot=_objectWithoutProperties$f(nt,["renderWithFragment","children","viewClassName","style"]);return isMobileOnly?et?React__default.createElement(React.Fragment,null,rt):React__default.createElement("div",ot,rt):null},SmartTVView=function tt(nt){var et=nt.renderWithFragment,rt=nt.children,ot=_objectWithoutProperties$f(nt,["renderWithFragment","children"]);return isSmartTV?et?React__default.createElement(React.Fragment,null,rt):React__default.createElement("div",ot,rt):null},ConsoleView=function tt(nt){var et=nt.renderWithFragment,rt=nt.children,ot=_objectWithoutProperties$f(nt,["renderWithFragment","children"]);return isConsole?et?React__default.createElement(React.Fragment,null,rt):React__default.createElement("div",ot,rt):null},WearableView=function tt(nt){var et=nt.renderWithFragment,rt=nt.children,ot=_objectWithoutProperties$f(nt,["renderWithFragment","children"]);return isWearable?et?React__default.createElement(React.Fragment,null,rt):React__default.createElement("div",ot,rt):null},CustomView=function tt(nt){var et=nt.renderWithFragment,rt=nt.children;nt.viewClassName,nt.style;var ot=nt.condition,at=_objectWithoutProperties$f(nt,["renderWithFragment","children","viewClassName","style","condition"]);return ot?et?React__default.createElement(React.Fragment,null,rt):React__default.createElement("div",at,rt):null};function withOrientationChange(tt){return function(nt){_inherits$5(et,nt);function et(rt){var ot;return _classCallCheck$5(this,et),ot=_possibleConstructorReturn$5(this,_getPrototypeOf$5(et).call(this,rt)),ot.isEventListenerAdded=!1,ot.handleOrientationChange=ot.handleOrientationChange.bind(_assertThisInitialized$5(ot)),ot.onOrientationChange=ot.onOrientationChange.bind(_assertThisInitialized$5(ot)),ot.onPageLoad=ot.onPageLoad.bind(_assertThisInitialized$5(ot)),ot.state={isLandscape:!1,isPortrait:!1},ot}return _createClass$5(et,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var ot=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:ot===0,isLandscape:ot===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":_typeof$6(window))!==void 0&&isMobile&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return React__default.createElement(tt,_extends$h({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),et}(React__default.Component)}function useMobileOrientation(){var tt=React.useState(function(){var at=window.innerWidth>window.innerHeight?90:0;return{isPortrait:at===0,isLandscape:at===90,orientation:at===0?"portrait":"landscape"}}),nt=_slicedToArray$d(tt,2),et=nt[0],rt=nt[1],ot=React.useCallback(function(){var at=window.innerWidth>window.innerHeight?90:0,st={isPortrait:at===0,isLandscape:at===90,orientation:at===0?"portrait":"landscape"};et.orientation!==st.orientation&&rt(st)},[et.orientation]);return React.useEffect(function(){return(typeof window>"u"?"undefined":_typeof$6(window))!==void 0&&isMobile&&(ot(),window.addEventListener("load",ot,!1),window.addEventListener("resize",ot,!1)),function(){window.removeEventListener("resize",ot,!1),window.removeEventListener("load",ot,!1)}},[ot]),et}function useDeviceData(tt){var nt=tt||window.navigator.userAgent;return parseUserAgent(nt)}function useDeviceSelectors(tt){var nt=tt||window.navigator.userAgent,et=useDeviceData(nt),rt=buildSelectorsObject(et);return[rt,et]}lib$1.AndroidView=AndroidView;lib$1.BrowserTypes=BrowserTypes;lib$1.BrowserView=BrowserView;lib$1.ConsoleView=ConsoleView;lib$1.CustomView=CustomView;lib$1.IEView=IEView;lib$1.IOSView=IOSView;lib$1.MobileOnlyView=MobileOnlyView;lib$1.MobileView=MobileView;lib$1.OsTypes=OsTypes;lib$1.SmartTVView=SmartTVView;lib$1.TabletView=TabletView;lib$1.WearableView=WearableView;lib$1.WinPhoneView=WinPhoneView;lib$1.browserName=browserName;lib$1.browserVersion=browserVersion;lib$1.deviceDetect=deviceDetect;lib$1.deviceType=deviceType;lib$1.engineName=engineName;lib$1.engineVersion=engineVersion;lib$1.fullBrowserVersion=fullBrowserVersion;lib$1.getSelectorsByUserAgent=getSelectorsByUserAgent;lib$1.getUA=getUA;lib$1.isAndroid=isAndroid;lib$1.isBrowser=isBrowser;lib$1.isChrome=isChrome;lib$1.isChromium=isChromium;lib$1.isConsole=isConsole;lib$1.isDesktop=isDesktop;lib$1.isEdge=isEdge;lib$1.isEdgeChromium=isEdgeChromium;lib$1.isElectron=isElectron;lib$1.isEmbedded=isEmbedded;lib$1.isFirefox=isFirefox;lib$1.isIE=isIE;lib$1.isIOS=isIOS;lib$1.isIOS13=isIOS13;lib$1.isIPad13=isIPad13;lib$1.isIPhone13=isIPhone13;lib$1.isIPod13=isIPod13;lib$1.isLegacyEdge=isLegacyEdge;lib$1.isMIUI=isMIUI;lib$1.isMacOs=isMacOs;var isMobile_1=lib$1.isMobile=isMobile;lib$1.isMobileOnly=isMobileOnly;lib$1.isMobileSafari=isMobileSafari;lib$1.isOpera=isOpera;lib$1.isSafari=isSafari;lib$1.isSamsungBrowser=isSamsungBrowser;lib$1.isSmartTV=isSmartTV;lib$1.isTablet=isTablet;lib$1.isWearable=isWearable;lib$1.isWinPhone=isWinPhone;lib$1.isWindows=isWindows;lib$1.isYandex=isYandex;lib$1.mobileModel=mobileModel;lib$1.mobileVendor=mobileVendor;lib$1.osName=osName;lib$1.osVersion=osVersion;lib$1.parseUserAgent=parseUserAgent;lib$1.setUserAgent=setUserAgent;lib$1.useDeviceData=useDeviceData;lib$1.useDeviceSelectors=useDeviceSelectors;lib$1.useMobileOrientation=useMobileOrientation;lib$1.withOrientationChange=withOrientationChange;var _excluded$e=["title","size","color","overrides"];function _extends$g(){return _extends$g=Object.assign?Object.assign.bind():function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_extends$g.apply(this,arguments)}function _objectWithoutProperties$e(tt,nt){if(tt==null)return{};var et=_objectWithoutPropertiesLoose$e(tt,nt),rt,ot;if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(tt);for(ot=0;ot<at.length;ot++)rt=at[ot],!(nt.indexOf(rt)>=0)&&Object.prototype.propertyIsEnumerable.call(tt,rt)&&(et[rt]=tt[rt])}return et}function _objectWithoutPropertiesLoose$e(tt,nt){if(tt==null)return{};var et={},rt=Object.keys(tt),ot,at;for(at=0;at<rt.length;at++)ot=rt[at],!(nt.indexOf(ot)>=0)&&(et[ot]=tt[ot]);return et}function _slicedToArray$c(tt,nt){return _arrayWithHoles$c(tt)||_iterableToArrayLimit$c(tt,nt)||_unsupportedIterableToArray$c(tt,nt)||_nonIterableRest$c()}function _nonIterableRest$c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
711
711
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$c(tt,nt){if(tt){if(typeof tt=="string")return _arrayLikeToArray$c(tt,nt);var et=Object.prototype.toString.call(tt).slice(8,-1);if(et==="Object"&&tt.constructor&&(et=tt.constructor.name),et==="Map"||et==="Set")return Array.from(tt);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$c(tt,nt)}}function _arrayLikeToArray$c(tt,nt){(nt==null||nt>tt.length)&&(nt=tt.length);for(var et=0,rt=new Array(nt);et<nt;et++)rt[et]=tt[et];return rt}function _iterableToArrayLimit$c(tt,nt){var et=tt==null?null:typeof Symbol<"u"&&tt[Symbol.iterator]||tt["@@iterator"];if(et!=null){var rt=[],ot=!0,at=!1,st,ut;try{for(et=et.call(tt);!(ot=(st=et.next()).done)&&(rt.push(st.value),!(nt&&rt.length===nt));ot=!0);}catch(ct){at=!0,ut=ct}finally{try{!ot&&et.return!=null&&et.return()}finally{if(at)throw ut}}return rt}}function _arrayWithHoles$c(tt){if(Array.isArray(tt))return tt}function ChevronDown(tt,nt){var et=useStyletron(),rt=_slicedToArray$c(et,2),ot=rt[1],at=tt.title,st=at===void 0?"Down":at,ut=tt.size,ct=tt.color,pt=tt.overrides,dt=pt===void 0?{}:pt,ft=_objectWithoutProperties$e(tt,_excluded$e),bt=mergeOverride({component:ot.icons&&ot.icons.ChevronDown?ot.icons.ChevronDown:null},dt&&dt.Svg?toObjectOverride(dt.Svg):{});return reactExports.createElement(Icon$1,_extends$g({viewBox:"0 0 24 24",ref:nt,title:st,size:ut,color:ct,overrides:{Svg:bt}},ft),reactExports.createElement("path",{transform:"rotate(270, 12, 12)",fillRule:"evenodd",clipRule:"evenodd",d:"M9 12C9 12.2652 9.10536 12.5196 9.29289 12.7071L13.2929 16.7071C13.6834 17.0976 14.3166 17.0976 14.7071 16.7071C15.0976 16.3166 15.0976 15.6834 14.7071 15.2929L11.4142 12L14.7071 8.70711C15.0976 8.31658 15.0976 7.68342 14.7071 7.29289C14.3166 6.90237 13.6834 6.90237 13.2929 7.29289L9.29289 11.2929C9.10536 11.4804 9 11.7348 9 12Z"}))}const ChevronDown$1=reactExports.forwardRef(ChevronDown);var _excluded$d=["title","size","color","overrides"];function _extends$f(){return _extends$f=Object.assign?Object.assign.bind():function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_extends$f.apply(this,arguments)}function _objectWithoutProperties$d(tt,nt){if(tt==null)return{};var et=_objectWithoutPropertiesLoose$d(tt,nt),rt,ot;if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(tt);for(ot=0;ot<at.length;ot++)rt=at[ot],!(nt.indexOf(rt)>=0)&&Object.prototype.propertyIsEnumerable.call(tt,rt)&&(et[rt]=tt[rt])}return et}function _objectWithoutPropertiesLoose$d(tt,nt){if(tt==null)return{};var et={},rt=Object.keys(tt),ot,at;for(at=0;at<rt.length;at++)ot=rt[at],!(nt.indexOf(ot)>=0)&&(et[ot]=tt[ot]);return et}function _slicedToArray$b(tt,nt){return _arrayWithHoles$b(tt)||_iterableToArrayLimit$b(tt,nt)||_unsupportedIterableToArray$b(tt,nt)||_nonIterableRest$b()}function _nonIterableRest$b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
712
712
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$b(tt,nt){if(tt){if(typeof tt=="string")return _arrayLikeToArray$b(tt,nt);var et=Object.prototype.toString.call(tt).slice(8,-1);if(et==="Object"&&tt.constructor&&(et=tt.constructor.name),et==="Map"||et==="Set")return Array.from(tt);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$b(tt,nt)}}function _arrayLikeToArray$b(tt,nt){(nt==null||nt>tt.length)&&(nt=tt.length);for(var et=0,rt=new Array(nt);et<nt;et++)rt[et]=tt[et];return rt}function _iterableToArrayLimit$b(tt,nt){var et=tt==null?null:typeof Symbol<"u"&&tt[Symbol.iterator]||tt["@@iterator"];if(et!=null){var rt=[],ot=!0,at=!1,st,ut;try{for(et=et.call(tt);!(ot=(st=et.next()).done)&&(rt.push(st.value),!(nt&&rt.length===nt));ot=!0);}catch(ct){at=!0,ut=ct}finally{try{!ot&&et.return!=null&&et.return()}finally{if(at)throw ut}}return rt}}function _arrayWithHoles$b(tt){if(Array.isArray(tt))return tt}function DeleteAlt(tt,nt){var et=useStyletron(),rt=_slicedToArray$b(et,2),ot=rt[1],at=tt.title,st=at===void 0?"Delete Alt":at,ut=tt.size,ct=tt.color,pt=tt.overrides,dt=pt===void 0?{}:pt,ft=_objectWithoutProperties$d(tt,_excluded$d),bt=mergeOverride({component:ot.icons&&ot.icons.DeleteAlt?ot.icons.DeleteAlt:null},dt&&dt.Svg?toObjectOverride(dt.Svg):{});return reactExports.createElement(Icon$1,_extends$f({viewBox:"0 0 24 24",ref:nt,title:st,size:ut,color:ct,overrides:{Svg:bt}},ft),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58173 16.4183 4 12 4C7.58173 4 4 7.58173 4 12C4 16.4183 7.58173 20 12 20ZM10.0303 8.96967C9.73743 8.67679 9.26257 8.67679 8.96967 8.96967C8.67676 9.26257 8.67676 9.73743 8.96967 10.0303L10.9393 12L8.96967 13.9697C8.67676 14.2626 8.67676 14.7374 8.96967 15.0303C9.26257 15.3232 9.73743 15.3232 10.0303 15.0303L12 13.0607L13.9697 15.0303C14.2626 15.3232 14.7374 15.3232 15.0303 15.0303C15.3232 14.7374 15.3232 14.2626 15.0303 13.9697L13.0607 12L15.0303 10.0303C15.3232 9.73743 15.3232 9.26257 15.0303 8.96967C14.7374 8.67679 14.2626 8.67679 13.9697 8.96967L12 10.9393L10.0303 8.96967Z"}))}const DeleteAlt$1=reactExports.forwardRef(DeleteAlt);var _excluded$c=["title","size","color","overrides"];function _extends$e(){return _extends$e=Object.assign?Object.assign.bind():function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_extends$e.apply(this,arguments)}function _objectWithoutProperties$c(tt,nt){if(tt==null)return{};var et=_objectWithoutPropertiesLoose$c(tt,nt),rt,ot;if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(tt);for(ot=0;ot<at.length;ot++)rt=at[ot],!(nt.indexOf(rt)>=0)&&Object.prototype.propertyIsEnumerable.call(tt,rt)&&(et[rt]=tt[rt])}return et}function _objectWithoutPropertiesLoose$c(tt,nt){if(tt==null)return{};var et={},rt=Object.keys(tt),ot,at;for(at=0;at<rt.length;at++)ot=rt[at],!(nt.indexOf(ot)>=0)&&(et[ot]=tt[ot]);return et}function _slicedToArray$a(tt,nt){return _arrayWithHoles$a(tt)||_iterableToArrayLimit$a(tt,nt)||_unsupportedIterableToArray$a(tt,nt)||_nonIterableRest$a()}function _nonIterableRest$a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -721,7 +721,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
721
721
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$3(tt,nt){if(tt){if(typeof tt=="string")return _arrayLikeToArray$3(tt,nt);var et=Object.prototype.toString.call(tt).slice(8,-1);if(et==="Object"&&tt.constructor&&(et=tt.constructor.name),et==="Map"||et==="Set")return Array.from(tt);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$3(tt,nt)}}function _iterableToArray(tt){if(typeof Symbol<"u"&&tt[Symbol.iterator]!=null||tt["@@iterator"]!=null)return Array.from(tt)}function _arrayWithoutHoles(tt){if(Array.isArray(tt))return _arrayLikeToArray$3(tt)}function _arrayLikeToArray$3(tt,nt){(nt==null||nt>tt.length)&&(nt=tt.length);for(var et=0,rt=new Array(nt);et<nt;et++)rt[et]=tt[et];return rt}function _classCallCheck(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function _defineProperties(tt,nt){for(var et=0;et<nt.length;et++){var rt=nt[et];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(tt,rt.key,rt)}}function _createClass(tt,nt,et){return nt&&_defineProperties(tt.prototype,nt),Object.defineProperty(tt,"prototype",{writable:!1}),tt}function _inherits(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function");tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,writable:!0,configurable:!0}}),Object.defineProperty(tt,"prototype",{writable:!1}),nt&&_setPrototypeOf(tt,nt)}function _setPrototypeOf(tt,nt){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(rt,ot){return rt.__proto__=ot,rt},_setPrototypeOf(tt,nt)}function _createSuper(tt){var nt=_isNativeReflectConstruct();return function(){var rt=_getPrototypeOf(tt),ot;if(nt){var at=_getPrototypeOf(this).constructor;ot=Reflect.construct(rt,arguments,at)}else ot=rt.apply(this,arguments);return _possibleConstructorReturn(this,ot)}}function _possibleConstructorReturn(tt,nt){if(nt&&(_typeof$1(nt)==="object"||typeof nt=="function"))return nt;if(nt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(tt)}function _assertThisInitialized(tt){if(tt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt}function _isNativeReflectConstruct(){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 _getPrototypeOf(tt){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf(tt)}function _defineProperty$3(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}function Noop(){return null}var isClick=function tt(nt){return nt.type==="click"},isLeftClick=function tt(nt){return nt.button!==null&&nt.button!==void 0&&nt.button===0},containsNode=function tt(nt,et){if(typeof document<"u")return et&&nt&&nt.contains(et)};function isInteractive(tt,nt){if(tt instanceof Element)for(var et=tt;et&&et!==nt;){var rt=et.getAttribute("role");if(rt==="button"||rt==="link")return!0;et.tagName&&(et=et.parentElement)}return!1}var Select$1=function(tt){_inherits(et,tt);var nt=_createSuper(et);function et(rt){var ot;return _classCallCheck(this,et),ot=nt.call(this,rt),_defineProperty$3(_assertThisInitialized(ot),"anchor",reactExports.createRef()),_defineProperty$3(_assertThisInitialized(ot),"dropdown",reactExports.createRef()),_defineProperty$3(_assertThisInitialized(ot),"input",void 0),_defineProperty$3(_assertThisInitialized(ot),"dragging",void 0),_defineProperty$3(_assertThisInitialized(ot),"focusAfterClear",void 0),_defineProperty$3(_assertThisInitialized(ot),"openAfterFocus",void 0),_defineProperty$3(_assertThisInitialized(ot),"justSelected",void 0),_defineProperty$3(_assertThisInitialized(ot),"options",[]),_defineProperty$3(_assertThisInitialized(ot),"state",{activeDescendant:null,inputValue:"",isFocused:!1,isOpen:ot.props.startOpen,isPseudoFocused:!1}),_defineProperty$3(_assertThisInitialized(ot),"isItMounted",!1),_defineProperty$3(_assertThisInitialized(ot),"handleTouchOutside",function(at){containsNode(ot.dropdown.current,at.target)||containsNode(ot.anchor.current,at.target)||ot.closeMenu()}),_defineProperty$3(_assertThisInitialized(ot),"handleTouchMove",function(){return ot.dragging=!0}),_defineProperty$3(_assertThisInitialized(ot),"handleTouchStart",function(){return ot.dragging=!1}),_defineProperty$3(_assertThisInitialized(ot),"handleTouchEnd",function(at){ot.dragging||ot.handleClick(at)}),_defineProperty$3(_assertThisInitialized(ot),"handleClick",function(at){if(!(ot.props.disabled||!isClick(at)&&!isLeftClick(at))){if(at.target===ot.input){ot.state.isFocused||(ot.openAfterFocus=ot.props.openOnClick,ot.focus()),ot.state.isOpen||ot.setState({isOpen:!0,isFocused:!0,isPseudoFocused:!1});return}if(!(ot.input&&isInteractive(at.target,ot.input))){if(!ot.props.searchable){ot.focus(),ot.state.isOpen?ot.setState({isOpen:!1,isFocused:!1}):ot.setState({isOpen:!0,isFocused:!0});return}ot.state.isFocused?(ot.focus(),ot.input&&(ot.input.value=""),ot.setState(function(st){return{isOpen:!ot.focusAfterClear&&!st.isOpen,isPseudoFocused:!1}}),ot.focusAfterClear=!1):(ot.focusAfterClear=!1,ot.openAfterFocus=ot.props.openOnClick,ot.focus())}}}),_defineProperty$3(_assertThisInitialized(ot),"handleInputFocus",function(at){if(!ot.props.disabled){ot.props.onFocus&&ot.props.onFocus(at);var st=ot.state.isOpen||ot.openAfterFocus;st=!ot.focusAfterClear&&st,ot.setState({isFocused:!0,isOpen:!!st}),ot.focusAfterClear=!1,ot.openAfterFocus=!1}}),_defineProperty$3(_assertThisInitialized(ot),"handleBlur",function(at){if(at.relatedTarget){if(containsNode(ot.anchor.current,at.relatedTarget)||containsNode(ot.dropdown.current,at.relatedTarget))return}else if(containsNode(ot.anchor.current,at.target))return;ot.props.onBlur&&ot.props.onBlur(at),ot.isItMounted&&ot.setState({isFocused:!1,isOpen:!1,isPseudoFocused:!1,inputValue:ot.props.onBlurResetsInput?"":ot.state.inputValue})}),_defineProperty$3(_assertThisInitialized(ot),"handleClickOutside",function(at){if(ot.justSelected){ot.justSelected=!1;return}if(!containsNode(ot.dropdown.current,at.target)){var st=ot.state.isFocused||ot.state.isPseudoFocused;st&&!containsNode(ot.anchor.current,at.target)&&ot.handleBlur(at)}}),_defineProperty$3(_assertThisInitialized(ot),"handleInputChange",function(at){var st=at.target.value;ot.setState({inputValue:st,isOpen:!0,isPseudoFocused:!1}),ot.props.onInputChange&&ot.props.onInputChange(at)}),_defineProperty$3(_assertThisInitialized(ot),"handleKeyDown",function(at){if(!ot.props.disabled)switch(at.keyCode){case 8:!ot.state.inputValue&&ot.props.backspaceRemoves&&(at.preventDefault(),ot.backspaceValue());break;case 9:ot.setState(function(st){return{isPseudoFocused:!1,isFocused:!1,isOpen:!1,inputValue:!ot.props.onCloseResetsInput||!ot.props.onBlurResetsInput?st.inputValue:""}});break;case 27:!ot.state.isOpen&&ot.props.clearable&&ot.props.escapeClearsValue&&(ot.clearValue(at),ot.setState({isFocused:!1,isPseudoFocused:!1}));break;case 32:if(ot.props.searchable)break;at.preventDefault(),ot.state.isOpen||ot.setState({isOpen:!0});break;case 38:at.preventDefault(),ot.state.isOpen||ot.setState({isOpen:!0});break;case 40:at.preventDefault(),ot.state.isOpen||ot.setState({isOpen:!0});break;case 33:at.preventDefault(),ot.state.isOpen||ot.setState({isOpen:!0});break;case 34:at.preventDefault(),ot.state.isOpen||ot.setState({isOpen:!0});break;case 35:if(at.shiftKey)break;at.preventDefault(),ot.state.isOpen||ot.setState({isOpen:!0});break;case 36:if(at.shiftKey)break;at.preventDefault(),ot.state.isOpen||ot.setState({isOpen:!0});break;case 46:!ot.state.inputValue&&ot.props.deleteRemoves&&(at.preventDefault(),ot.popValue());break}}),_defineProperty$3(_assertThisInitialized(ot),"getOptionLabel",function(at,st){var ut=st.option;return ut.isCreatable?"".concat(at.select.create," “").concat(ut[ot.props.labelKey],"”"):ut[ot.props.labelKey]}),_defineProperty$3(_assertThisInitialized(ot),"getValueLabel",function(at){var st=at.option;return st[ot.props.labelKey]}),_defineProperty$3(_assertThisInitialized(ot),"handleActiveDescendantChange",function(at){at?ot.setState({activeDescendant:at}):ot.setState({activeDescendant:null})}),_defineProperty$3(_assertThisInitialized(ot),"handleInputRef",function(at){ot.input=at,typeof ot.props.inputRef=="function"?ot.props.inputRef(at):ot.props.inputRef&&(ot.props.inputRef.current=at),ot.props.controlRef&&typeof ot.props.controlRef=="function"&&ot.props.controlRef(at)}),_defineProperty$3(_assertThisInitialized(ot),"selectValue",function(at){var st=at.item;if(!st.disabled){ot.justSelected=!0;var ut=ot.props.onSelectResetsInput?"":ot.state.inputValue;ot.props.multi?ot.setState({inputValue:ut,isOpen:!ot.props.closeOnSelect},function(){var ct=ot.props.value;ct.some(function(pt){return pt[ot.props.valueKey]===st[ot.props.valueKey]})?ot.removeValue(st):ot.addValue(st)}):(ot.focus(),ot.setState({inputValue:ut,isOpen:!ot.props.closeOnSelect,isFocused:!0,isPseudoFocused:!1},function(){ot.setValue([st],st,STATE_CHANGE_TYPE.select)}))}}),_defineProperty$3(_assertThisInitialized(ot),"addValue",function(at){var st=_toConsumableArray(ot.props.value);ot.setValue(st.concat(at),at,STATE_CHANGE_TYPE.select)}),_defineProperty$3(_assertThisInitialized(ot),"backspaceValue",function(){var at=ot.popValue();if(at){var st=ot.props.value.length,ut=ot.props.getValueLabel||ot.getValueLabel,ct=ut({option:at,index:st-1});if(!ot.props.backspaceClearsInputValue&&typeof ct=="string"){var pt=ct.slice(0,-1);ot.setState({inputValue:pt,isOpen:!0})}}}),_defineProperty$3(_assertThisInitialized(ot),"popValue",function(){var at=_toConsumableArray(ot.props.value),st=at.length;if(st&&at[st-1].clearableValue!==!1){var ut=at.pop();return ot.setValue(at,ut,STATE_CHANGE_TYPE.remove),ut}}),_defineProperty$3(_assertThisInitialized(ot),"removeValue",function(at){var st=_toConsumableArray(ot.props.value);ot.setValue(st.filter(function(ut){return ut[ot.props.valueKey]!==at[ot.props.valueKey]}),at,STATE_CHANGE_TYPE.remove),ot.focus()}),_defineProperty$3(_assertThisInitialized(ot),"clearValue",function(at){if(!(isClick(at)&&!isLeftClick(at))){if(ot.props.value){var st=ot.props.value.filter(function(ut){return ut.clearableValue===!1});ot.setValue(st,null,STATE_CHANGE_TYPE.clear)}ot.setState({inputValue:"",isOpen:!1}),ot.focus(),ot.focusAfterClear=!0}}),_defineProperty$3(_assertThisInitialized(ot),"shouldShowPlaceholder",function(){return!(ot.state.inputValue||ot.props.value&&ot.props.value.length)}),_defineProperty$3(_assertThisInitialized(ot),"shouldShowValue",function(){return!ot.state.inputValue}),ot.options=normalizeOptions(rt.options),ot}return _createClass(et,[{key:"componentDidMount",value:function(){this.props.autoFocus&&this.focus(),this.isItMounted=!0;var ot=this.props.controlRef;ot&&typeof ot!="function"&&(ot.current={setDropdownOpen:this.handleDropdownOpen.bind(this),setInputValue:this.handleSetInputValue.bind(this),setInputFocus:this.handleSetInputFocus.bind(this),setInputBlur:this.handleSetInputBlur.bind(this),focus:this.handleSetInputFocus.bind(this),blur:this.handleSetInputBlur.bind(this)})}},{key:"componentDidUpdate",value:function(ot,at){var st=this;typeof document<"u"&&(at.isOpen!==this.state.isOpen&&(this.state.isOpen?(this.props.onOpen&&this.props.onOpen(),document.addEventListener("touchstart",this.handleTouchOutside)):(this.props.onClose&&this.props.onClose(),document.removeEventListener("touchstart",this.handleTouchOutside))),!at.isFocused&&this.state.isFocused&&setTimeout(function(){return document.addEventListener("click",st.handleClickOutside)},0))}},{key:"componentWillUnmount",value:function(){typeof document<"u"&&(document.removeEventListener("touchstart",this.handleTouchOutside),document.removeEventListener("click",this.handleClickOutside)),this.isItMounted=!1}},{key:"focus",value:function(){this.input&&this.input.focus()}},{key:"handleDropdownOpen",value:function(ot){this.setState({isOpen:ot})}},{key:"handleSetInputValue",value:function(ot){this.setState({inputValue:ot})}},{key:"handleSetInputFocus",value:function(){this.input.focus()}},{key:"handleSetInputBlur",value:function(){this.input.blur()}},{key:"closeMenu",value:function(){this.props.onCloseResetsInput?this.setState({inputValue:"",isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}):this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi})}},{key:"getValueArray",value:function(ot){var at=this;if(!Array.isArray(ot)){if(ot==null)return[];ot=[ot]}return ot.map(function(st){return expandValue(st,at.props)})}},{key:"setValue",value:function(ot,at,st){this.props.onChange&&this.props.onChange({value:ot,option:at,type:st})}},{key:"renderLoading",value:function(){if(this.props.isLoading){var ot=this.props.overrides,at=ot===void 0?{}:ot,st=getOverrides(at.LoadingIndicator,StyledLoadingIndicator),ut=_slicedToArray$3(st,2),ct=ut[0],pt=ut[1];return reactExports.createElement(ct,_extends$5({role:"status"},pt),reactExports.createElement("span",{style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0}},"Loading"))}}},{key:"renderValue",value:function(ot){var at=this,st=this.props.overrides,ut=st===void 0?{}:st,ct=this.getSharedProps(),pt=this.props.getValueLabel||this.getValueLabel,dt=this.props.valueComponent||Noop;if(!ot.length)return null;if(this.props.multi)return ot.map(function(ft,bt){var ht=ct.$disabled||ft.clearableValue===!1;return reactExports.createElement(dt,_extends$5({value:ft,key:"value-".concat(bt,"-").concat(ft[at.props.valueKey]),removeValue:function(){return at.removeValue(ft)},disabled:ht,overrides:{Tag:ut.Tag,MultiValue:ut.MultiValue}},ct,{$disabled:ht}),pt({option:ft,index:bt}))});if(this.shouldShowValue())return reactExports.createElement(dt,_extends$5({value:ot[0][this.props.valueKey],disabled:this.props.disabled,overrides:{SingleValue:ut.SingleValue}},ct),pt({option:ot[0]}))}},{key:"renderInput",value:function(ot){var at=this,st=this.props.overrides,ut=st===void 0?{}:st,ct=getOverrides(ut.InputContainer,StyledInputContainer),pt=_slicedToArray$3(ct,2),dt=pt[0],ft=pt[1],bt=this.getSharedProps(),ht=this.state.isOpen,Mt=this.getValueArray(this.props.value).map(function(zt){return zt[at.props.labelKey]}).join(", "),mt=Mt.length?"Selected ".concat(Mt,". "):"",Ot="".concat(mt).concat(this.props["aria-label"]||"");return this.props.searchable?reactExports.createElement(dt,_extends$5({},bt,ft),reactExports.createElement(AutosizeInput,_extends$5({"aria-activedescendant":this.state.activeDescendant,"aria-autocomplete":"list","aria-controls":this.state.isOpen?ot:null,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-disabled":this.props.disabled||null,"aria-expanded":ht,"aria-haspopup":"listbox","aria-label":Ot,"aria-labelledby":this.props["aria-labelledby"],"aria-required":this.props.required||null,disabled:this.props.disabled||null,id:this.props.id||null,inputRef:this.handleInputRef,onChange:this.handleInputChange,onFocus:this.handleInputFocus,overrides:{Input:ut.Input},required:this.props.required&&!this.props.value.length||null,role:"combobox",value:this.state.inputValue,tabIndex:0},bt))):reactExports.createElement(dt,_extends$5({"aria-activedescendant":this.state.activeDescendant,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-disabled":this.props.disabled,"aria-labelledby":this.props["aria-labelledby"],"aria-owns":this.state.isOpen?ot:null,"aria-required":this.props.required||null,onFocus:this.handleInputFocus,tabIndex:0},bt,ft),reactExports.createElement("input",_extends$5({"aria-hidden":!0,id:this.props.id||null,ref:this.handleInputRef,style:{opacity:0,width:0,overflow:"hidden",border:"none",padding:0},tabIndex:-1},ut.Input?ut.Input.props?ut.Input.props:{}:{})))}},{key:"renderClear",value:function(){var ot,at=!!(this.props.value&&this.props.value.length||this.state.inputValue);if(!(!this.props.clearable||this.props.disabled||this.props.isLoading||!at)){var st=this.getSharedProps();st.$size;var ut=_objectWithoutProperties$3(st,_excluded$3),ct=this.props.overrides,pt=ct===void 0?{}:ct,dt=getOverrides(pt.ClearIcon,DeleteAlt$1),ft=_slicedToArray$3(dt,2),bt=ft[0],ht=ft[1],Mt=this.props.multi?"Clear all":"Clear value",mt=(ot={},_defineProperty$3(ot,SIZE$1.mini,15),_defineProperty$3(ot,SIZE$1.compact,15),_defineProperty$3(ot,SIZE$1.default,18),_defineProperty$3(ot,SIZE$1.large,22),ot);return reactExports.createElement(bt,_extends$5({title:Mt,"aria-label":Mt,onClick:this.clearValue,role:"button",size:mt[this.props.size]||mt[SIZE$1.default]},ut,ht))}}},{key:"renderArrow",value:function(){var ot;if(this.props.type!==TYPE.select)return null;var at=this.getSharedProps();at.$size;var st=_objectWithoutProperties$3(at,_excluded2$1),ut=this.props.overrides,ct=ut===void 0?{}:ut,pt=getOverrides(ct.SelectArrow,TriangleDownIcon),dt=_slicedToArray$3(pt,2),ft=dt[0],bt=dt[1];bt.overrides=mergeOverrides({Svg:{style:function(mt){var Ot=mt.$theme,zt=mt.$disabled;return{color:zt?Ot.colors.inputTextDisabled:Ot.colors.contentPrimary}}}},bt.overrides);var ht=(ot={},_defineProperty$3(ot,SIZE$1.mini,16),_defineProperty$3(ot,SIZE$1.compact,16),_defineProperty$3(ot,SIZE$1.default,20),_defineProperty$3(ot,SIZE$1.large,24),ot);return reactExports.createElement(ft,_extends$5({size:ht[this.props.size]||ht[SIZE$1.default],title:"open"},st,bt))}},{key:"renderSearch",value:function(){if(this.props.type!==TYPE.search)return null;var ot=this.props.overrides,at=ot===void 0?{}:ot,st=getOverrides(at.SearchIconContainer,StyledSearchIconContainer),ut=_slicedToArray$3(st,2),ct=ut[0],pt=ut[1],dt=getOverrides(at.SearchIcon,SearchIconComponent),ft=_slicedToArray$3(dt,2),bt=ft[0],ht=ft[1],Mt=this.getSharedProps();return reactExports.createElement(ct,_extends$5({},Mt,pt),reactExports.createElement(bt,_extends$5({size:16,title:"search"},Mt,ht)))}},{key:"filterOptions",value:function(ot){var at=this,st=this.state.inputValue.trim();this.props.filterOptions&&(this.options=this.props.filterOptions(this.options,st,ot,{valueKey:this.props.valueKey,labelKey:this.props.labelKey}));var ut=this.props.ignoreCase?function(pt){return pt[at.props.labelKey].toLowerCase()!==st.toLowerCase().trim()}:function(pt){return pt[at.props.labelKey]!==st.trim()};if(st&&this.props.creatable&&this.options.concat(this.props.value).every(ut)){var ct;this.options.push((ct={id:st},_defineProperty$3(ct,this.props.labelKey,st),_defineProperty$3(ct,this.props.valueKey,st),_defineProperty$3(ct,"isCreatable",!0),ct))}return this.options}},{key:"getSharedProps",value:function(){var ot=this.props,at=ot.clearable,st=ot.creatable,ut=ot.disabled,ct=ot.error,pt=ot.positive,dt=ot.isLoading,ft=ot.multi,bt=ot.required,ht=ot.size,Mt=ot.searchable,mt=ot.type,Ot=ot.value,zt=this.state,yt=zt.isOpen,vt=zt.isFocused,At=zt.isPseudoFocused;return{$clearable:at,$creatable:st,$disabled:ut,$error:ct,$positive:pt,$isFocused:vt,$isLoading:dt,$isOpen:yt,$isPseudoFocused:At,$multi:ft,$required:bt,$searchable:Mt,$size:ht,$type:mt,$isEmpty:!this.getValueArray(Ot).length}}},{key:"render",value:function(){var ot=this;this.options=normalizeOptions(this.props.options);var at=this.props,st=at.overrides,ut=st===void 0?{}:st,ct=at.type,pt=at.multi,dt=at.noResultsMsg,ft=at.value,bt=at.filterOutSelected,ht=getOverrides(ut.Root,StyledRoot),Mt=_slicedToArray$3(ht,2),mt=Mt[0],Ot=Mt[1],zt=getOverrides(ut.ControlContainer,StyledControlContainer),yt=_slicedToArray$3(zt,2),vt=yt[0],At=yt[1],St=getOverrides(ut.ValueContainer,StyledValueContainer),Et=_slicedToArray$3(St,2),Tt=Et[0],Rt=Et[1],Ct=getOverrides(ut.IconsContainer,StyledIconsContainer),wt=_slicedToArray$3(Ct,2),Lt=wt[0],Ht=wt[1],jt=getOverrides(ut.Popover,Popover$1),s0=_slicedToArray$3(jt,2),Ut=s0[0],Yt=s0[1],O0=getOverrides(ut.Placeholder,StyledPlaceholder),a0=_slicedToArray$3(O0,2),b0=a0[0],kt=a0[1],o0=this.getSharedProps(),qt=this.getValueArray(ft),Dt=this.filterOptions(pt&&bt?qt:null),Bt=this.state.isOpen;return o0.$isOpen=Bt,reactExports.createElement(UIDConsumer,null,function(p0){return reactExports.createElement(LocaleContext.Consumer,null,function(r0){return reactExports.createElement(Ut,_extends$5({innerRef:function(f0){f0&&(ot.anchor=f0.anchorRef)},accessibilityType:ACCESSIBILITY_TYPE.none,autoFocus:!1,focusLock:!1,mountNode:ot.props.mountNode,onEsc:function(){return ot.closeMenu()},isOpen:Bt,popoverMargin:0,content:function(){var f0={error:ot.props.error,positive:ot.props.positive,getOptionLabel:ot.props.getOptionLabel||ot.getOptionLabel.bind(ot,r0),id:p0,isLoading:ot.props.isLoading,labelKey:ot.props.labelKey,maxDropdownHeight:ot.props.maxDropdownHeight,multi:pt,noResultsMsg:dt,onActiveDescendantChange:ot.handleActiveDescendantChange,onItemSelect:ot.selectValue,options:Dt,overrides:ut,required:ot.props.required,searchable:ot.props.searchable,size:ot.props.size,type:ct,value:qt,valueKey:ot.props.valueKey,width:ot.anchor.current?ot.anchor.current.clientWidth:null,keyboardControlNode:ot.anchor};return reactExports.createElement(SelectDropdown,_extends$5({innerRef:ot.dropdown},f0))},placement:PLACEMENT.bottom},Yt),reactExports.createElement(mt,_extends$5({onBlur:ot.handleBlur,"data-baseweb":"select"},o0,Ot),reactExports.createElement(vt,_extends$5({onKeyDown:ot.handleKeyDown,onClick:ot.handleClick,onTouchEnd:ot.handleTouchEnd,onTouchMove:ot.handleTouchMove,onTouchStart:ot.handleTouchStart},o0,At),ct===TYPE.search?ot.renderSearch():null,reactExports.createElement(Tt,_extends$5({},o0,Rt),ot.renderValue(qt),ot.renderInput(p0),ot.shouldShowPlaceholder()?reactExports.createElement(b0,_extends$5({},o0,kt),typeof ot.props.placeholder<"u"?ot.props.placeholder:r0.select.placeholder):null),reactExports.createElement(Lt,_extends$5({},o0,Ht),ot.renderLoading(),ot.renderClear(),ct===TYPE.select?ot.renderArrow():null))))})})}}]),et}(reactExports.Component);_defineProperty$3(Select$1,"defaultProps",defaultProps);var tint$1={exports:{}},_curry={exports:{}};(function(tt,nt){nt.__esModule=!0,nt.default=rt;function et(ot,at,st){return function(){var ct=st.concat(Array.prototype.slice.call(arguments));return ct.length>=at?ot.apply(this,ct):et(ot,at,ct)}}function rt(ot){return et(ot,ot.length,[])}tt.exports=nt.default})(_curry,_curry.exports);var _curryExports=_curry.exports,mix={exports:{}},rgba={exports:{}},parseToRgb={exports:{}},_hslToRgb={exports:{}};(function(tt,nt){nt.__esModule=!0,nt.default=void 0;function et(st){return Math.round(st*255)}function rt(st,ut,ct){return et(st)+","+et(ut)+","+et(ct)}function ot(st,ut,ct,pt){if(pt===void 0&&(pt=rt),ut===0)return pt(ct,ct,ct);var dt=(st%360+360)%360/60,ft=(1-Math.abs(2*ct-1))*ut,bt=ft*(1-Math.abs(dt%2-1)),ht=0,Mt=0,mt=0;dt>=0&&dt<1?(ht=ft,Mt=bt):dt>=1&&dt<2?(ht=bt,Mt=ft):dt>=2&&dt<3?(Mt=ft,mt=bt):dt>=3&&dt<4?(Mt=bt,mt=ft):dt>=4&&dt<5?(ht=bt,mt=ft):dt>=5&&dt<6&&(ht=ft,mt=bt);var Ot=ct-ft/2,zt=ht+Ot,yt=Mt+Ot,vt=mt+Ot;return pt(zt,yt,vt)}var at=ot;nt.default=at,tt.exports=nt.default})(_hslToRgb,_hslToRgb.exports);var _hslToRgbExports=_hslToRgb.exports,_nameToHex={exports:{}};(function(tt,nt){nt.__esModule=!0,nt.default=void 0;var et={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function rt(at){if(typeof at!="string")return at;var st=at.toLowerCase();return et[st]?"#"+et[st]:at}var ot=rt;nt.default=ot,tt.exports=nt.default})(_nameToHex,_nameToHex.exports);var _nameToHexExports=_nameToHex.exports,_errors={exports:{}};(function(tt,nt){nt.__esModule=!0,nt.default=void 0;function et(ft){if(ft===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ft}function rt(ft,bt){ft.prototype=Object.create(bt.prototype),ft.prototype.constructor=ft,ct(ft,bt)}function ot(ft){var bt=typeof Map=="function"?new Map:void 0;return ot=function(Mt){if(Mt===null||!ut(Mt))return Mt;if(typeof Mt!="function")throw new TypeError("Super expression must either be null or a function");if(typeof bt<"u"){if(bt.has(Mt))return bt.get(Mt);bt.set(Mt,mt)}function mt(){return at(Mt,arguments,pt(this).constructor)}return mt.prototype=Object.create(Mt.prototype,{constructor:{value:mt,enumerable:!1,writable:!0,configurable:!0}}),ct(mt,Mt)},ot(ft)}function at(ft,bt,ht){return st()?at=Reflect.construct:at=function(mt,Ot,zt){var yt=[null];yt.push.apply(yt,Ot);var vt=Function.bind.apply(mt,yt),At=new vt;return zt&&ct(At,zt.prototype),At},at.apply(null,arguments)}function st(){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 ut(ft){return Function.toString.call(ft).indexOf("[native code]")!==-1}function ct(ft,bt){return ct=Object.setPrototypeOf||function(Mt,mt){return Mt.__proto__=mt,Mt},ct(ft,bt)}function pt(ft){return pt=Object.setPrototypeOf?Object.getPrototypeOf:function(ht){return ht.__proto__||Object.getPrototypeOf(ht)},pt(ft)}var dt=function(ft){rt(bt,ft);function bt(ht){var Mt;return Mt=ft.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+ht+" for more information.")||this,et(Mt)}return bt}(ot(Error));nt.default=dt,tt.exports=nt.default})(_errors,_errors.exports);var _errorsExports=_errors.exports;(function(tt,nt){nt.__esModule=!0,nt.default=Mt;var et=at(_hslToRgbExports),rt=at(_nameToHexExports),ot=at(_errorsExports);function at(mt){return mt&&mt.__esModule?mt:{default:mt}}var st=/^#[a-fA-F0-9]{6}$/,ut=/^#[a-fA-F0-9]{8}$/,ct=/^#[a-fA-F0-9]{3}$/,pt=/^#[a-fA-F0-9]{4}$/,dt=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,ft=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,bt=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ht=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function Mt(mt){if(typeof mt!="string")throw new ot.default(3);var Ot=(0,rt.default)(mt);if(Ot.match(st))return{red:parseInt(""+Ot[1]+Ot[2],16),green:parseInt(""+Ot[3]+Ot[4],16),blue:parseInt(""+Ot[5]+Ot[6],16)};if(Ot.match(ut)){var zt=parseFloat((parseInt(""+Ot[7]+Ot[8],16)/255).toFixed(2));return{red:parseInt(""+Ot[1]+Ot[2],16),green:parseInt(""+Ot[3]+Ot[4],16),blue:parseInt(""+Ot[5]+Ot[6],16),alpha:zt}}if(Ot.match(ct))return{red:parseInt(""+Ot[1]+Ot[1],16),green:parseInt(""+Ot[2]+Ot[2],16),blue:parseInt(""+Ot[3]+Ot[3],16)};if(Ot.match(pt)){var yt=parseFloat((parseInt(""+Ot[4]+Ot[4],16)/255).toFixed(2));return{red:parseInt(""+Ot[1]+Ot[1],16),green:parseInt(""+Ot[2]+Ot[2],16),blue:parseInt(""+Ot[3]+Ot[3],16),alpha:yt}}var vt=dt.exec(Ot);if(vt)return{red:parseInt(""+vt[1],10),green:parseInt(""+vt[2],10),blue:parseInt(""+vt[3],10)};var At=ft.exec(Ot.substring(0,50));if(At)return{red:parseInt(""+At[1],10),green:parseInt(""+At[2],10),blue:parseInt(""+At[3],10),alpha:parseFloat(""+At[4])};var St=bt.exec(Ot);if(St){var Et=parseInt(""+St[1],10),Tt=parseInt(""+St[2],10)/100,Rt=parseInt(""+St[3],10)/100,Ct="rgb("+(0,et.default)(Et,Tt,Rt)+")",wt=dt.exec(Ct);if(!wt)throw new ot.default(4,Ot,Ct);return{red:parseInt(""+wt[1],10),green:parseInt(""+wt[2],10),blue:parseInt(""+wt[3],10)}}var Lt=ht.exec(Ot.substring(0,50));if(Lt){var Ht=parseInt(""+Lt[1],10),jt=parseInt(""+Lt[2],10)/100,s0=parseInt(""+Lt[3],10)/100,Ut="rgb("+(0,et.default)(Ht,jt,s0)+")",Yt=dt.exec(Ut);if(!Yt)throw new ot.default(4,Ot,Ut);return{red:parseInt(""+Yt[1],10),green:parseInt(""+Yt[2],10),blue:parseInt(""+Yt[3],10),alpha:parseFloat(""+Lt[4])}}throw new ot.default(5)}tt.exports=nt.default})(parseToRgb,parseToRgb.exports);var parseToRgbExports=parseToRgb.exports,rgb={exports:{}},_reduceHexValue={exports:{}};(function(tt,nt){nt.__esModule=!0,nt.default=void 0;var et=function(at){return at.length===7&&at[1]===at[2]&&at[3]===at[4]&&at[5]===at[6]?"#"+at[1]+at[3]+at[5]:at},rt=et;nt.default=rt,tt.exports=nt.default})(_reduceHexValue,_reduceHexValue.exports);var _reduceHexValueExports=_reduceHexValue.exports,_numberToHex={exports:{}};(function(tt,nt){nt.__esModule=!0,nt.default=void 0;function et(ot){var at=ot.toString(16);return at.length===1?"0"+at:at}var rt=et;nt.default=rt,tt.exports=nt.default})(_numberToHex,_numberToHex.exports);var _numberToHexExports=_numberToHex.exports;(function(tt,nt){nt.__esModule=!0,nt.default=st;var et=at(_reduceHexValueExports),rt=at(_numberToHexExports),ot=at(_errorsExports);function at(ut){return ut&&ut.__esModule?ut:{default:ut}}function st(ut,ct,pt){if(typeof ut=="number"&&typeof ct=="number"&&typeof pt=="number")return(0,et.default)("#"+(0,rt.default)(ut)+(0,rt.default)(ct)+(0,rt.default)(pt));if(typeof ut=="object"&&ct===void 0&&pt===void 0)return(0,et.default)("#"+(0,rt.default)(ut.red)+(0,rt.default)(ut.green)+(0,rt.default)(ut.blue));throw new ot.default(6)}tt.exports=nt.default})(rgb,rgb.exports);var rgbExports=rgb.exports;(function(tt,nt){nt.__esModule=!0,nt.default=st;var et=at(parseToRgbExports),rt=at(rgbExports),ot=at(_errorsExports);function at(ut){return ut&&ut.__esModule?ut:{default:ut}}function st(ut,ct,pt,dt){if(typeof ut=="string"&&typeof ct=="number"){var ft=(0,et.default)(ut);return"rgba("+ft.red+","+ft.green+","+ft.blue+","+ct+")"}else{if(typeof ut=="number"&&typeof ct=="number"&&typeof pt=="number"&&typeof dt=="number")return dt>=1?(0,rt.default)(ut,ct,pt):"rgba("+ut+","+ct+","+pt+","+dt+")";if(typeof ut=="object"&&ct===void 0&&pt===void 0&&dt===void 0)return ut.alpha>=1?(0,rt.default)(ut.red,ut.green,ut.blue):"rgba("+ut.red+","+ut.green+","+ut.blue+","+ut.alpha+")"}throw new ot.default(7)}tt.exports=nt.default})(rgba,rgba.exports);var rgbaExports=rgba.exports;(function(tt,nt){nt.__esModule=!0,nt.default=void 0;var et=at(_curryExports),rt=at(rgbaExports),ot=at(parseToRgbExports);function at(dt){return dt&&dt.__esModule?dt:{default:dt}}function st(){return st=Object.assign||function(dt){for(var ft=1;ft<arguments.length;ft++){var bt=arguments[ft];for(var ht in bt)Object.prototype.hasOwnProperty.call(bt,ht)&&(dt[ht]=bt[ht])}return dt},st.apply(this,arguments)}function ut(dt,ft,bt){if(ft==="transparent")return bt;if(bt==="transparent")return ft;if(dt===0)return bt;var ht=(0,ot.default)(ft),Mt=st({},ht,{alpha:typeof ht.alpha=="number"?ht.alpha:1}),mt=(0,ot.default)(bt),Ot=st({},mt,{alpha:typeof mt.alpha=="number"?mt.alpha:1}),zt=Mt.alpha-Ot.alpha,yt=parseFloat(dt)*2-1,vt=yt*zt===-1?yt:yt+zt,At=1+yt*zt,St=(vt/At+1)/2,Et=1-St,Tt={red:Math.floor(Mt.red*St+Ot.red*Et),green:Math.floor(Mt.green*St+Ot.green*Et),blue:Math.floor(Mt.blue*St+Ot.blue*Et),alpha:Mt.alpha*(parseFloat(dt)/1)+Ot.alpha*(1-parseFloat(dt)/1)};return(0,rt.default)(Tt)}var ct=(0,et.default)(ut),pt=ct;nt.default=pt,tt.exports=nt.default})(mix,mix.exports);var mixExports=mix.exports;(function(tt,nt){nt.__esModule=!0,nt.default=void 0;var et=ot(_curryExports),rt=ot(mixExports);function ot(ct){return ct&&ct.__esModule?ct:{default:ct}}function at(ct,pt){return pt==="transparent"?pt:(0,rt.default)(parseFloat(ct),"rgb(255, 255, 255)",pt)}var st=(0,et.default)(at),ut=st;nt.default=ut,tt.exports=nt.default})(tint$1,tint$1.exports);var tintExports=tint$1.exports;const tint=getDefaultExportFromCjs$1(tintExports);var shade$1={exports:{}};(function(tt,nt){nt.__esModule=!0,nt.default=void 0;var et=ot(_curryExports),rt=ot(mixExports);function ot(ct){return ct&&ct.__esModule?ct:{default:ct}}function at(ct,pt){return pt==="transparent"?pt:(0,rt.default)(parseFloat(ct),"rgb(0, 0, 0)",pt)}var st=(0,et.default)(at),ut=st;nt.default=ut,tt.exports=nt.default})(shade$1,shade$1.exports);var shadeExports=shade$1.exports;const shade=getDefaultExportFromCjs$1(shadeExports);var SIZE={small:"small",medium:"medium",large:"large"},VARIANT=Object.freeze({solid:"solid",light:"light",outlined:"outlined"}),KIND={custom:"custom",neutral:"neutral",primary:"primary",accent:"accent",positive:"positive",warning:"warning",negative:"negative",black:"black",blue:"blue",green:"green",red:"red",yellow:"yellow",orange:"orange",purple:"purple",brown:"brown"},_neutralColorStates,_primaryColorStates,_accentColorStates,_positiveColorStates,_warningColorStates,_negativeColorStates,_orangeColorStates,_purpleColorStates,_brownColorStates,_customColorStates,_colorMap;function ownKeys$1(tt,nt){var et=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);nt&&(rt=rt.filter(function(ot){return Object.getOwnPropertyDescriptor(tt,ot).enumerable})),et.push.apply(et,rt)}return et}function _objectSpread$1(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt]!=null?arguments[nt]:{};nt%2?ownKeys$1(Object(et),!0).forEach(function(rt){_defineProperty$2(tt,rt,et[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(et)):ownKeys$1(Object(et)).forEach(function(rt){Object.defineProperty(tt,rt,Object.getOwnPropertyDescriptor(et,rt))})}return tt}function _defineProperty$2(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}function customOnRamp(tt,nt){switch(nt){case"0":return"white";case"50":return tint(.8,tt);case"100":return tint(.6,tt);case"200":return tint(.4,tt);case"300":return tint(.2,tt);case"400":return tt;case"500":return shade(.2,tt);case"600":return shade(.4,tt);case"700":return shade(.6,tt);case"800":return shade(.8,tt);case"1000":return"black";default:return tt}}var COLOR_STATE={disabled:"disabled",solid:"solid",outline:"outline"},pick$2=function tt(nt,et,rt){return nt.name&&nt.name.includes("dark")?rt:et},neutralColorStates=(_neutralColorStates={},_defineProperty$2(_neutralColorStates,COLOR_STATE.disabled,function(tt,nt){return{color:tt.colors.tagNeutralFontDisabled,backgroundColor:null,borderColor:tt.colors.tagNeutralOutlinedDisabled}}),_defineProperty$2(_neutralColorStates,COLOR_STATE.solid,function(tt,nt){return{color:tt.colors.tagNeutralSolidFont,backgroundColor:tt.colors.tagNeutralSolidBackground,borderColor:null}}),_defineProperty$2(_neutralColorStates,COLOR_STATE.outline,function(tt,nt){return{color:tt.colors.tagNeutralOutlinedFont,backgroundColor:null,borderColor:tt.colors.tagNeutralOutlinedBackground}}),_neutralColorStates),primaryColorStates=(_primaryColorStates={},_defineProperty$2(_primaryColorStates,COLOR_STATE.disabled,function(tt,nt){return{color:tt.colors.tagPrimaryFontDisabled,backgroundColor:null,borderColor:tt.colors.tagPrimaryOutlinedDisabled}}),_defineProperty$2(_primaryColorStates,COLOR_STATE.solid,function(tt,nt){return{color:tt.colors.tagPrimarySolidFont,backgroundColor:tt.colors.tagPrimarySolidBackground,borderColor:null}}),_defineProperty$2(_primaryColorStates,COLOR_STATE.outline,function(tt,nt){return{color:tt.colors.tagPrimaryOutlinedFont,backgroundColor:null,borderColor:tt.colors.tagPrimaryOutlinedBackground}}),_primaryColorStates),accentColorStates=(_accentColorStates={},_defineProperty$2(_accentColorStates,COLOR_STATE.disabled,function(tt,nt){return{color:tt.colors.tagAccentFontDisabled,backgroundColor:null,borderColor:tt.colors.tagAccentOutlinedDisabled}}),_defineProperty$2(_accentColorStates,COLOR_STATE.solid,function(tt,nt){return{color:tt.colors.tagAccentSolidFont,backgroundColor:tt.colors.tagAccentSolidBackground,borderColor:null}}),_defineProperty$2(_accentColorStates,COLOR_STATE.outline,function(tt,nt){return{color:tt.colors.tagAccentOutlinedFont,backgroundColor:null,borderColor:tt.colors.tagAccentOutlinedBackground}}),_accentColorStates),positiveColorStates=(_positiveColorStates={},_defineProperty$2(_positiveColorStates,COLOR_STATE.disabled,function(tt,nt){return{color:tt.colors.tagPositiveFontDisabled,backgroundColor:null,borderColor:tt.colors.tagPositiveOutlinedDisabled}}),_defineProperty$2(_positiveColorStates,COLOR_STATE.solid,function(tt,nt){return{color:tt.colors.tagPositiveSolidFont,backgroundColor:tt.colors.tagPositiveSolidBackground,borderColor:null}}),_defineProperty$2(_positiveColorStates,COLOR_STATE.outline,function(tt,nt){return{color:tt.colors.tagPositiveOutlinedFont,backgroundColor:null,borderColor:tt.colors.tagPositiveOutlinedBackground}}),_positiveColorStates),warningColorStates=(_warningColorStates={},_defineProperty$2(_warningColorStates,COLOR_STATE.disabled,function(tt,nt){return{color:tt.colors.tagWarningFontDisabled,backgroundColor:null,borderColor:tt.colors.tagWarningOutlinedDisabled}}),_defineProperty$2(_warningColorStates,COLOR_STATE.solid,function(tt,nt){return{color:tt.colors.tagWarningSolidFont,backgroundColor:tt.colors.tagWarningSolidBackground,borderColor:null}}),_defineProperty$2(_warningColorStates,COLOR_STATE.outline,function(tt,nt){return{color:tt.colors.tagWarningOutlinedFont,backgroundColor:null,borderColor:tt.colors.tagWarningOutlinedBackground}}),_warningColorStates),negativeColorStates=(_negativeColorStates={},_defineProperty$2(_negativeColorStates,COLOR_STATE.disabled,function(tt,nt){return{color:tt.colors.tagNegativeFontDisabled,backgroundColor:null,borderColor:tt.colors.tagNegativeOutlinedDisabled}}),_defineProperty$2(_negativeColorStates,COLOR_STATE.solid,function(tt,nt){return{color:tt.colors.tagNegativeSolidFont,backgroundColor:tt.colors.tagNegativeSolidBackground,borderColor:null}}),_defineProperty$2(_negativeColorStates,COLOR_STATE.outline,function(tt,nt){return{color:tt.colors.tagNegativeOutlinedFont,backgroundColor:null,borderColor:tt.colors.tagNegativeOutlinedBackground}}),_negativeColorStates),orangeColorStates=(_orangeColorStates={},_defineProperty$2(_orangeColorStates,COLOR_STATE.disabled,function(tt,nt){return{color:pick$2(tt,colors$1.orange200,colors$1.orange600),backgroundColor:null,borderColor:pick$2(tt,colors$1.orange200,colors$1.orange700)}}),_defineProperty$2(_orangeColorStates,COLOR_STATE.solid,function(tt,nt){return{color:colors$1.white,backgroundColor:pick$2(tt,colors$1.orange400,colors$1.orange500),borderColor:null}}),_defineProperty$2(_orangeColorStates,COLOR_STATE.outline,function(tt,nt){return{color:pick$2(tt,colors$1.orange400,colors$1.orange300),backgroundColor:null,borderColor:pick$2(tt,colors$1.orange200,colors$1.orange500)}}),_orangeColorStates),purpleColorStates=(_purpleColorStates={},_defineProperty$2(_purpleColorStates,COLOR_STATE.disabled,function(tt,nt){return{color:pick$2(tt,colors$1.purple200,colors$1.purple600),backgroundColor:null,borderColor:pick$2(tt,colors$1.purple200,colors$1.purple700)}}),_defineProperty$2(_purpleColorStates,COLOR_STATE.solid,function(tt,nt){return{color:colors$1.white,backgroundColor:pick$2(tt,colors$1.purple400,colors$1.purple500),borderColor:null}}),_defineProperty$2(_purpleColorStates,COLOR_STATE.outline,function(tt,nt){return{color:pick$2(tt,colors$1.purple400,colors$1.purple300),backgroundColor:null,borderColor:pick$2(tt,colors$1.purple200,colors$1.purple500)}}),_purpleColorStates),brownColorStates=(_brownColorStates={},_defineProperty$2(_brownColorStates,COLOR_STATE.disabled,function(tt,nt){return{color:pick$2(tt,colors$1.brown200,colors$1.brown600),backgroundColor:null,borderColor:pick$2(tt,colors$1.brown200,colors$1.brown700)}}),_defineProperty$2(_brownColorStates,COLOR_STATE.solid,function(tt,nt){return{color:colors$1.white,backgroundColor:pick$2(tt,colors$1.brown400,colors$1.brown500),borderColor:null}}),_defineProperty$2(_brownColorStates,COLOR_STATE.outline,function(tt,nt){return{color:pick$2(tt,colors$1.brown400,colors$1.brown300),backgroundColor:null,borderColor:pick$2(tt,colors$1.brown200,colors$1.brown500)}}),_brownColorStates),customColorStates=(_customColorStates={},_defineProperty$2(_customColorStates,COLOR_STATE.disabled,function(tt,nt){return{color:customOnRamp(nt,tt.colors.tagFontDisabledRampUnit),backgroundColor:null,borderColor:customOnRamp(nt,tt.colors.tagSolidDisabledRampUnit)}}),_defineProperty$2(_customColorStates,COLOR_STATE.solid,function(tt,nt){return{color:customOnRamp(nt,tt.colors.tagSolidFontRampUnit),backgroundColor:customOnRamp(nt,tt.colors.tagSolidRampUnit),borderColor:null}}),_defineProperty$2(_customColorStates,COLOR_STATE.outline,function(tt,nt){return{color:customOnRamp(nt,tt.colors.tagOutlinedFontRampUnit),backgroundColor:null,borderColor:customOnRamp(nt,tt.colors.tagOutlinedRampUnit)}}),_customColorStates),colorMap=(_colorMap={},_defineProperty$2(_colorMap,KIND.neutral,neutralColorStates),_defineProperty$2(_colorMap,KIND.primary,primaryColorStates),_defineProperty$2(_colorMap,KIND.accent,accentColorStates),_defineProperty$2(_colorMap,KIND.positive,positiveColorStates),_defineProperty$2(_colorMap,KIND.warning,warningColorStates),_defineProperty$2(_colorMap,KIND.negative,negativeColorStates),_defineProperty$2(_colorMap,KIND.black,primaryColorStates),_defineProperty$2(_colorMap,KIND.blue,accentColorStates),_defineProperty$2(_colorMap,KIND.green,positiveColorStates),_defineProperty$2(_colorMap,KIND.red,negativeColorStates),_defineProperty$2(_colorMap,KIND.yellow,warningColorStates),_defineProperty$2(_colorMap,KIND.orange,orangeColorStates),_defineProperty$2(_colorMap,KIND.purple,purpleColorStates),_defineProperty$2(_colorMap,KIND.brown,brownColorStates),_defineProperty$2(_colorMap,KIND.custom,customColorStates),_colorMap),getColorStateFromProps=function tt(nt){return nt.$disabled?COLOR_STATE.disabled:nt.$variant===VARIANT.solid?COLOR_STATE.solid:COLOR_STATE.outline},Action$1=styled("span",function(tt){var nt,et,rt=tt.$theme,ot=tt.$disabled,at=tt.$size,st=at===void 0?SIZE.small:at,ut=rt.direction==="rtl"?"borderBottomLeftRadius":"borderBottomRightRadius",ct=rt.direction==="rtl"?"borderTopLeftRadius":"borderTopRightRadius",pt=rt.direction==="rtl"?"marginRight":"marginLeft";return et={alignItems:"center"},_defineProperty$2(et,ut,rt.borders.useRoundedCorners?rt.borders.radius400:0),_defineProperty$2(et,ct,rt.borders.useRoundedCorners?rt.borders.radius400:0),_defineProperty$2(et,"cursor",ot?"not-allowed":"pointer"),_defineProperty$2(et,"display","flex"),_defineProperty$2(et,pt,(nt={},_defineProperty$2(nt,SIZE.small,"8px"),_defineProperty$2(nt,SIZE.medium,"12px"),_defineProperty$2(nt,SIZE.large,"16px"),nt)[st]),_defineProperty$2(et,"outline","none"),_defineProperty$2(et,"transitionProperty","all"),_defineProperty$2(et,"transitionDuration","background-color"),_defineProperty$2(et,"transitionTimingFunction",rt.animation.easeOutCurve),et});Action$1.displayName="Action";Action$1.displayName="Action";var StartEnhancerContainer=styled("div",function(tt){var nt=tt.$theme,et=tt.$size,rt=et===void 0?SIZE.small:et,ot=nt.sizing.scale300;rt===SIZE.medium?ot=nt.sizing.scale400:rt===SIZE.large&&(ot=nt.sizing.scale600);var at=nt.direction==="rtl"?"paddingLeft":"paddingRight";return _defineProperty$2({alignItems:"center",display:"flex"},at,ot)});StartEnhancerContainer.displayName="StartEnhancerContainer";StartEnhancerContainer.displayName="StartEnhancerContainer";var Text=styled("span",function(tt){var nt=tt.$theme;return{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:tt.$theme.sizing.scale3200,order:nt.direction==="rtl"?1:0}});Text.displayName="Text";Text.displayName="Text";var Root$2=styled("span",function(tt){var nt,et,rt,ot=tt.$theme,at=tt.$kind,st=at===void 0?KIND.primary:at,ut=tt.$clickable,ct=tt.$variant,pt=tt.$disabled,dt=tt.$closeable,ft=tt.$isFocusVisible,bt=tt.$color,ht=tt.$size,Mt=ht===void 0?SIZE.small:ht,mt=ot.borders.tagBorderRadius,Ot=(nt={},_defineProperty$2(nt,SIZE.small,ot.sizing.scale300),_defineProperty$2(nt,SIZE.medium,ot.sizing.scale500),_defineProperty$2(nt,SIZE.large,ot.sizing.scale600),nt)[Mt],zt=!pt&&ct===VARIANT.solid?0:"2px",yt=colorMap[st][getColorStateFromProps(tt)](ot,bt),vt=yt.color,At=yt.backgroundColor,St=yt.borderColor;return _objectSpread$1(_objectSpread$1({},(et={},_defineProperty$2(et,SIZE.small,ot.typography.LabelSmall),_defineProperty$2(et,SIZE.medium,ot.typography.LabelMedium),_defineProperty$2(et,SIZE.large,ot.typography.LabelLarge),et)[Mt]),{},{alignItems:"center",color:vt,backgroundColor:At,borderLeftColor:St,borderRightColor:St,borderTopColor:St,borderBottomColor:St,borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftWidth:zt,borderRightWidth:zt,borderTopWidth:zt,borderBottomWidth:zt,borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomRightRadius:mt,borderBottomLeftRadius:mt,boxSizing:"border-box",cursor:pt?"not-allowed":ut?"pointer":"default",display:"inline-flex",height:(rt={},_defineProperty$2(rt,SIZE.small,"24px"),_defineProperty$2(rt,SIZE.medium,"32px"),_defineProperty$2(rt,SIZE.large,"40px"),rt)[Mt],justifyContent:"space-between",marginTop:"5px",marginBottom:"5px",marginLeft:"5px",marginRight:"5px",paddingTop:ot.sizing.scale0,paddingBottom:ot.sizing.scale0,paddingLeft:Ot,paddingRight:Ot,outline:"none",":hover":pt||!ut?{}:{boxShadow:"inset 0px 0px 100px ".concat(pick$2(ot,"rgba(0, 0, 0, 0.08)","rgba(255, 255, 255, 0.2)"))},":focus":pt||!ut&&!dt?{}:{boxShadow:ft?"0 0 0 3px ".concat(st===KIND.accent?ot.colors.primaryA:ot.colors.accent):"none"}})});Root$2.displayName="Root";Root$2.displayName="Root";function _typeof(tt){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},_typeof(tt)}var JOINABLE_TYPES=new Set(["string","number"]);function getTextFromChildren(tt){var nt=reactExports.Children.toArray(tt).filter(function(rt){return rt!=null});if(!nt.length)return null;var et=nt.every(function(rt){return JOINABLE_TYPES.has(_typeof(rt))});return et?nt.join(""):null}function _defineProperty$1(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}function _slicedToArray$2(tt,nt){return _arrayWithHoles$2(tt)||_iterableToArrayLimit$2(tt,nt)||_unsupportedIterableToArray$2(tt,nt)||_nonIterableRest$2()}function _nonIterableRest$2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
722
722
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$2(tt,nt){if(tt){if(typeof tt=="string")return _arrayLikeToArray$2(tt,nt);var et=Object.prototype.toString.call(tt).slice(8,-1);if(et==="Object"&&tt.constructor&&(et=tt.constructor.name),et==="Map"||et==="Set")return Array.from(tt);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$2(tt,nt)}}function _arrayLikeToArray$2(tt,nt){(nt==null||nt>tt.length)&&(nt=tt.length);for(var et=0,rt=new Array(nt);et<nt;et++)rt[et]=tt[et];return rt}function _iterableToArrayLimit$2(tt,nt){var et=tt==null?null:typeof Symbol<"u"&&tt[Symbol.iterator]||tt["@@iterator"];if(et!=null){var rt=[],ot=!0,at=!1,st,ut;try{for(et=et.call(tt);!(ot=(st=et.next()).done)&&(rt.push(st.value),!(nt&&rt.length===nt));ot=!0);}catch(ct){at=!0,ut=ct}finally{try{!ot&&et.return!=null&&et.return()}finally{if(at)throw ut}}return rt}}function _arrayWithHoles$2(tt){if(Array.isArray(tt))return tt}function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_extends$4.apply(this,arguments)}var ModifiedViewBoxDeleteIcon=function tt(nt){return reactExports.createElement(DeleteIcon,_extends$4({viewBox:"5 5 13.186 13.186"},nt))},Tag=reactExports.forwardRef(function(tt,nt){var et,rt=tt.children,ot=tt.closeable,at=ot===void 0?!0:ot,st=tt.color,ut=tt.size,ct=ut===void 0?SIZE.small:ut,pt=tt.disabled,dt=pt===void 0?!1:pt,ft=tt.isFocused,bt=ft===void 0?!1:ft,ht=tt.isHovered,Mt=ht===void 0?!1:ht,mt=tt.kind,Ot=mt===void 0?KIND.primary:mt,zt=tt.onActionClick,yt=zt===void 0?function(z0){}:zt,vt=tt.onActionKeyDown,At=vt===void 0?function(z0){}:vt,St=tt.onClick,Et=St===void 0?null:St,Tt=tt.onKeyDown,Rt=Tt===void 0?null:Tt,Ct=tt.overrides,wt=Ct===void 0?{}:Ct,Lt=tt.startEnhancer,Ht=tt.title,jt=tt.variant,s0=jt===void 0?VARIANT.light:jt,Ut=reactExports.useState(!1),Yt=_slicedToArray$2(Ut,2),O0=Yt[0],a0=Yt[1];function b0(z0){isFocusVisible(z0)&&a0(!0)}function kt(z0){O0!==!1&&a0(!1)}function o0(z0){if(z0.currentTarget===z0.target){var w0=z0.key;Et&&w0==="Enter"&&Et(z0),at&&(w0==="Backspace"||w0==="Delete")&&(yt(z0),At(z0)),Rt&&Rt(z0)}}var qt=getOverrides(wt.Root,Root$2),Dt=_slicedToArray$2(qt,2),Bt=Dt[0],p0=Dt[1],r0=getOverrides(wt.Action,Action$1),l0=_slicedToArray$2(r0,2),f0=l0[0],i0=l0[1],$t=getOverrides(wt.ActionIcon,ModifiedViewBoxDeleteIcon),It=_slicedToArray$2($t,2),Vt=It[0],xt=It[1],Ft=getOverrides(wt.StartEnhancerContainer,StartEnhancerContainer),Pt=_slicedToArray$2(Ft,2),Zt=Pt[0],Kt=Pt[1],n0=getOverrides(wt.Text,Text),c0=_slicedToArray$2(n0,2),u0=c0[0],y0=c0[1],D0=typeof Et=="function",S0=dt?{}:{onClick:Et,onKeyDown:o0},x0=dt?{}:{onClick:function(w0){w0.stopPropagation(),yt(w0)}},m0={$clickable:D0,$closeable:at,$color:st,$disabled:dt,$isFocused:bt,$isHovered:Mt,$kind:Ot,$variant:s0,$isFocusVisible:O0,$size:ct},e0=Ht||getTextFromChildren(rt),Nt=(D0||at)&&!dt,Xt=(et={},_defineProperty$1(et,SIZE.small,12),_defineProperty$1(et,SIZE.medium,16),_defineProperty$1(et,SIZE.large,20),et)[ct],d0=Lt;return reactExports.createElement(Bt,_extends$4({ref:nt,"data-baseweb":"tag","aria-label":Nt&&at?"".concat(typeof rt=="string"?"".concat(rt,", "):"","close by backspace"):null,"aria-disabled":dt?!0:null,role:Nt?"button":null,tabIndex:Nt?0:null},S0,m0,p0,{onFocus:forkFocus(p0,b0),onBlur:forkBlur(p0,kt)}),d0&&d0!==0&&reactExports.createElement(Zt,Kt,reactExports.createElement(d0,null)),reactExports.createElement(u0,_extends$4({title:e0},y0),rt),at?reactExports.createElement(f0,_extends$4({"aria-hidden":!0,role:"presentation"},x0,m0,i0),reactExports.createElement(Vt,_extends$4({size:Xt},xt))):null)});Tag.displayName="Tag";var _excluded$2=["overrides","removeValue"];function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_extends$3.apply(this,arguments)}function _slicedToArray$1(tt,nt){return _arrayWithHoles$1(tt)||_iterableToArrayLimit$1(tt,nt)||_unsupportedIterableToArray$1(tt,nt)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
723
723
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(tt,nt){if(tt){if(typeof tt=="string")return _arrayLikeToArray$1(tt,nt);var et=Object.prototype.toString.call(tt).slice(8,-1);if(et==="Object"&&tt.constructor&&(et=tt.constructor.name),et==="Map"||et==="Set")return Array.from(tt);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$1(tt,nt)}}function _arrayLikeToArray$1(tt,nt){(nt==null||nt>tt.length)&&(nt=tt.length);for(var et=0,rt=new Array(nt);et<nt;et++)rt[et]=tt[et];return rt}function _iterableToArrayLimit$1(tt,nt){var et=tt==null?null:typeof Symbol<"u"&&tt[Symbol.iterator]||tt["@@iterator"];if(et!=null){var rt=[],ot=!0,at=!1,st,ut;try{for(et=et.call(tt);!(ot=(st=et.next()).done)&&(rt.push(st.value),!(nt&&rt.length===nt));ot=!0);}catch(ct){at=!0,ut=ct}finally{try{!ot&&et.return!=null&&et.return()}finally{if(at)throw ut}}return rt}}function _arrayWithHoles$1(tt){if(Array.isArray(tt))return tt}function _objectWithoutProperties$2(tt,nt){if(tt==null)return{};var et=_objectWithoutPropertiesLoose$2(tt,nt),rt,ot;if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(tt);for(ot=0;ot<at.length;ot++)rt=at[ot],!(nt.indexOf(rt)>=0)&&Object.prototype.propertyIsEnumerable.call(tt,rt)&&(et[rt]=tt[rt])}return et}function _objectWithoutPropertiesLoose$2(tt,nt){if(tt==null)return{};var et={},rt=Object.keys(tt),ot,at;for(at=0;at<rt.length;at++)ot=rt[at],!(nt.indexOf(ot)>=0)&&(et[ot]=tt[ot]);return et}function MultiValue(tt){var nt=tt.overrides,et=nt===void 0?{}:nt,rt=tt.removeValue,ot=_objectWithoutProperties$2(tt,_excluded$2),at=getOverrides(et.Tag||et.MultiValue,Tag),st=_slicedToArray$1(at,2),ut=st[0],ct=st[1];return reactExports.createElement(ut,_extends$3({variant:VARIANT.solid,overrides:{Root:{style:function(dt){var ft=dt.$theme.sizing;return{marginRight:ft.scale0,marginBottom:ft.scale0,marginLeft:ft.scale0,marginTop:ft.scale0}}}},onActionClick:rt},ot,ct),tt.children)}var _excluded$1=["overrides"];function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_extends$2.apply(this,arguments)}function _slicedToArray(tt,nt){return _arrayWithHoles(tt)||_iterableToArrayLimit(tt,nt)||_unsupportedIterableToArray(tt,nt)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
724
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(tt,nt){if(tt){if(typeof tt=="string")return _arrayLikeToArray(tt,nt);var et=Object.prototype.toString.call(tt).slice(8,-1);if(et==="Object"&&tt.constructor&&(et=tt.constructor.name),et==="Map"||et==="Set")return Array.from(tt);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray(tt,nt)}}function _arrayLikeToArray(tt,nt){(nt==null||nt>tt.length)&&(nt=tt.length);for(var et=0,rt=new Array(nt);et<nt;et++)rt[et]=tt[et];return rt}function _iterableToArrayLimit(tt,nt){var et=tt==null?null:typeof Symbol<"u"&&tt[Symbol.iterator]||tt["@@iterator"];if(et!=null){var rt=[],ot=!0,at=!1,st,ut;try{for(et=et.call(tt);!(ot=(st=et.next()).done)&&(rt.push(st.value),!(nt&&rt.length===nt));ot=!0);}catch(ct){at=!0,ut=ct}finally{try{!ot&&et.return!=null&&et.return()}finally{if(at)throw ut}}return rt}}function _arrayWithHoles(tt){if(Array.isArray(tt))return tt}function _objectWithoutProperties$1(tt,nt){if(tt==null)return{};var et=_objectWithoutPropertiesLoose$1(tt,nt),rt,ot;if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(tt);for(ot=0;ot<at.length;ot++)rt=at[ot],!(nt.indexOf(rt)>=0)&&Object.prototype.propertyIsEnumerable.call(tt,rt)&&(et[rt]=tt[rt])}return et}function _objectWithoutPropertiesLoose$1(tt,nt){if(tt==null)return{};var et={},rt=Object.keys(tt),ot,at;for(at=0;at<rt.length;at++)ot=rt[at],!(nt.indexOf(ot)>=0)&&(et[ot]=tt[ot]);return et}function Value(tt){var nt=tt.overrides,et=nt===void 0?{}:nt,rt=_objectWithoutProperties$1(tt,_excluded$1),ot=getOverrides(et.SingleValue,StyledSingleValue),at=_slicedToArray(ot,2),st=at[0],ut=at[1];return reactExports.createElement(st,_extends$2({},rt,ut),tt.children)}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_extends$1.apply(this,arguments)}function Select(tt){return reactExports.createElement(Select$1,_extends$1({},tt,{valueComponent:tt.multi?MultiValue:Value}))}var SCORE_MIN=-1/0,SCORE_MAX=1/0,SCORE_GAP_LEADING=-.005,SCORE_GAP_TRAILING=-.005,SCORE_GAP_INNER=-.01,SCORE_MATCH_CONSECUTIVE=1,SCORE_MATCH_SLASH=.9,SCORE_MATCH_WORD=.8,SCORE_MATCH_CAPITAL=.7,SCORE_MATCH_DOT=.6;function islower(tt){return tt.toLowerCase()===tt}function isupper(tt){return tt.toUpperCase()===tt}function precompute_bonus(tt){for(var nt=tt.length,et=new Array(nt),rt="/",ot=0;ot<nt;ot++){var at=tt[ot];rt==="/"?et[ot]=SCORE_MATCH_SLASH:rt==="-"||rt==="_"||rt===" "?et[ot]=SCORE_MATCH_WORD:rt==="."?et[ot]=SCORE_MATCH_DOT:islower(rt)&&isupper(at)?et[ot]=SCORE_MATCH_CAPITAL:et[ot]=0,rt=at}return et}function compute(tt,nt,et,rt){for(var ot=tt.length,at=nt.length,st=tt.toLowerCase(),ut=nt.toLowerCase(),ct=precompute_bonus(nt),pt=0;pt<ot;pt++){et[pt]=new Array(at),rt[pt]=new Array(at);for(var dt=SCORE_MIN,ft=pt===ot-1?SCORE_GAP_TRAILING:SCORE_GAP_INNER,bt=0;bt<at;bt++)if(st[pt]===ut[bt]){var ht=SCORE_MIN;pt?bt&&(ht=Math.max(rt[pt-1][bt-1]+ct[bt],et[pt-1][bt-1]+SCORE_MATCH_CONSECUTIVE)):ht=bt*SCORE_GAP_LEADING+ct[bt],et[pt][bt]=ht,rt[pt][bt]=dt=Math.max(ht,dt+ft)}else et[pt][bt]=SCORE_MIN,rt[pt][bt]=dt=dt+ft}}function score(tt,nt){var et=tt.length,rt=nt.length;if(!et||!rt)return SCORE_MIN;if(et===rt)return SCORE_MAX;if(rt>1024)return SCORE_MIN;var ot=new Array(et),at=new Array(et);return compute(tt,nt,ot,at),at[et-1][rt-1]}function hasMatch(tt,nt){tt=tt.toLowerCase(),nt=nt.toLowerCase();for(var et=tt.length,rt=0,ot=0;rt<et;rt+=1)if(ot=nt.indexOf(tt[rt],ot)+1,ot===0)return!1;return!0}function baseSortBy$1(tt,nt){var et=tt.length;for(tt.sort(nt);et--;)tt[et]=tt[et].value;return tt}var _baseSortBy=baseSortBy$1,isSymbol=isSymbol_1;function compareAscending$1(tt,nt){if(tt!==nt){var et=tt!==void 0,rt=tt===null,ot=tt===tt,at=isSymbol(tt),st=nt!==void 0,ut=nt===null,ct=nt===nt,pt=isSymbol(nt);if(!ut&&!pt&&!at&&tt>nt||at&&st&&ct&&!ut&&!pt||rt&&st&&ct||!et&&ct||!ot)return 1;if(!rt&&!at&&!pt&&tt<nt||pt&&et&&ot&&!rt&&!at||ut&&et&&ot||!st&&ot||!ct)return-1}return 0}var _compareAscending=compareAscending$1,compareAscending=_compareAscending;function compareMultiple$1(tt,nt,et){for(var rt=-1,ot=tt.criteria,at=nt.criteria,st=ot.length,ut=et.length;++rt<st;){var ct=compareAscending(ot[rt],at[rt]);if(ct){if(rt>=ut)return ct;var pt=et[rt];return ct*(pt=="desc"?-1:1)}}return tt.index-nt.index}var _compareMultiple=compareMultiple$1,arrayMap$1=_arrayMap,baseGet$1=_baseGet,baseIteratee$2=_baseIteratee,baseMap=_baseMap,baseSortBy=_baseSortBy,baseUnary$1=_baseUnary,compareMultiple=_compareMultiple,identity=identity_1,isArray$2=isArray_1;function baseOrderBy$1(tt,nt,et){nt.length?nt=arrayMap$1(nt,function(at){return isArray$2(at)?function(st){return baseGet$1(st,at.length===1?at[0]:at)}:at}):nt=[identity];var rt=-1;nt=arrayMap$1(nt,baseUnary$1(baseIteratee$2));var ot=baseMap(tt,function(at,st,ut){var ct=arrayMap$1(nt,function(pt){return pt(at)});return{criteria:ct,index:++rt,value:at}});return baseSortBy(ot,function(at,st){return compareMultiple(at,st,et)})}var _baseOrderBy=baseOrderBy$1,baseFlatten=_baseFlatten,baseOrderBy=_baseOrderBy,baseRest$1=_baseRest,isIterateeCall=_isIterateeCall,sortBy=baseRest$1(function(tt,nt){if(tt==null)return[];var et=nt.length;return et>1&&isIterateeCall(tt,nt[0],nt[1])?nt=[]:et>2&&isIterateeCall(nt[0],nt[1],nt[2])&&(nt=[nt[0]]),baseOrderBy(tt,baseFlatten(nt,1),[])}),sortBy_1=sortBy;const sortBy$1=getDefaultExportFromCjs$1(sortBy_1);var safeIsNaN=Number.isNaN||function tt(nt){return typeof nt=="number"&&nt!==nt};function isEqual$2(tt,nt){return!!(tt===nt||safeIsNaN(tt)&&safeIsNaN(nt))}function areInputsEqual(tt,nt){if(tt.length!==nt.length)return!1;for(var et=0;et<tt.length;et++)if(!isEqual$2(tt[et],nt[et]))return!1;return!0}function memoizeOne(tt,nt){nt===void 0&&(nt=areInputsEqual);var et,rt=[],ot,at=!1;function st(){for(var ut=[],ct=0;ct<arguments.length;ct++)ut[ct]=arguments[ct];return at&&et===this&&nt(ut,rt)||(ot=tt.apply(this,ut),at=!0,et=this,rt=ut),ot}return st}var hasNativePerformanceNow=typeof performance=="object"&&typeof performance.now=="function",now=hasNativePerformanceNow?function(){return performance.now()}:function(){return Date.now()};function cancelTimeout(tt){cancelAnimationFrame(tt.id)}function requestTimeout(tt,nt){var et=now();function rt(){now()-et>=nt?tt.call(null):ot.id=requestAnimationFrame(rt)}var ot={id:requestAnimationFrame(rt)};return ot}var size=-1;function getScrollbarSize(tt){if(tt===void 0&&(tt=!1),size===-1||tt){var nt=document.createElement("div"),et=nt.style;et.width="50px",et.height="50px",et.overflow="scroll",document.body.appendChild(nt),size=nt.offsetWidth-nt.clientWidth,document.body.removeChild(nt)}return size}var cachedRTLResult=null;function getRTLOffsetType(tt){if(tt===void 0&&(tt=!1),cachedRTLResult===null||tt){var nt=document.createElement("div"),et=nt.style;et.width="50px",et.height="50px",et.overflow="scroll",et.direction="rtl";var rt=document.createElement("div"),ot=rt.style;return ot.width="100px",ot.height="100px",nt.appendChild(rt),document.body.appendChild(nt),nt.scrollLeft>0?cachedRTLResult="positive-descending":(nt.scrollLeft=1,nt.scrollLeft===0?cachedRTLResult="negative":cachedRTLResult="positive-ascending"),document.body.removeChild(nt),cachedRTLResult}return cachedRTLResult}var IS_SCROLLING_DEBOUNCE_INTERVAL$1=150,defaultItemKey$1=function tt(nt,et){return nt};function createListComponent(tt){var nt,et=tt.getItemOffset,rt=tt.getEstimatedTotalSize,ot=tt.getItemSize,at=tt.getOffsetForIndexAndAlignment,st=tt.getStartIndexForOffset,ut=tt.getStopIndexForStartIndex,ct=tt.initInstanceProps,pt=tt.shouldResetStyleCacheOnItemSizeChange,dt=tt.validateProps;return nt=function(ft){_inheritsLoose(bt,ft);function bt(Mt){var mt;return mt=ft.call(this,Mt)||this,mt._instanceProps=ct(mt.props,_assertThisInitialized$e(mt)),mt._outerRef=void 0,mt._resetIsScrollingTimeoutId=null,mt.state={instance:_assertThisInitialized$e(mt),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof mt.props.initialScrollOffset=="number"?mt.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},mt._callOnItemsRendered=void 0,mt._callOnItemsRendered=memoizeOne(function(Ot,zt,yt,vt){return mt.props.onItemsRendered({overscanStartIndex:Ot,overscanStopIndex:zt,visibleStartIndex:yt,visibleStopIndex:vt})}),mt._callOnScroll=void 0,mt._callOnScroll=memoizeOne(function(Ot,zt,yt){return mt.props.onScroll({scrollDirection:Ot,scrollOffset:zt,scrollUpdateWasRequested:yt})}),mt._getItemStyle=void 0,mt._getItemStyle=function(Ot){var zt=mt.props,yt=zt.direction,vt=zt.itemSize,At=zt.layout,St=mt._getItemStyleCache(pt&&vt,pt&&At,pt&&yt),Et;if(St.hasOwnProperty(Ot))Et=St[Ot];else{var Tt=et(mt.props,Ot,mt._instanceProps),Rt=ot(mt.props,Ot,mt._instanceProps),Ct=yt==="horizontal"||At==="horizontal",wt=yt==="rtl",Lt=Ct?Tt:0;St[Ot]=Et={position:"absolute",left:wt?void 0:Lt,right:wt?Lt:void 0,top:Ct?0:Tt,height:Ct?"100%":Rt,width:Ct?Rt:"100%"}}return Et},mt._getItemStyleCache=void 0,mt._getItemStyleCache=memoizeOne(function(Ot,zt,yt){return{}}),mt._onScrollHorizontal=function(Ot){var zt=Ot.currentTarget,yt=zt.clientWidth,vt=zt.scrollLeft,At=zt.scrollWidth;mt.setState(function(St){if(St.scrollOffset===vt)return null;var Et=mt.props.direction,Tt=vt;if(Et==="rtl")switch(getRTLOffsetType()){case"negative":Tt=-vt;break;case"positive-descending":Tt=At-yt-vt;break}return Tt=Math.max(0,Math.min(Tt,At-yt)),{isScrolling:!0,scrollDirection:St.scrollOffset<Tt?"forward":"backward",scrollOffset:Tt,scrollUpdateWasRequested:!1}},mt._resetIsScrollingDebounced)},mt._onScrollVertical=function(Ot){var zt=Ot.currentTarget,yt=zt.clientHeight,vt=zt.scrollHeight,At=zt.scrollTop;mt.setState(function(St){if(St.scrollOffset===At)return null;var Et=Math.max(0,Math.min(At,vt-yt));return{isScrolling:!0,scrollDirection:St.scrollOffset<Et?"forward":"backward",scrollOffset:Et,scrollUpdateWasRequested:!1}},mt._resetIsScrollingDebounced)},mt._outerRefSetter=function(Ot){var zt=mt.props.outerRef;mt._outerRef=Ot,typeof zt=="function"?zt(Ot):zt!=null&&typeof zt=="object"&&zt.hasOwnProperty("current")&&(zt.current=Ot)},mt._resetIsScrollingDebounced=function(){mt._resetIsScrollingTimeoutId!==null&&cancelTimeout(mt._resetIsScrollingTimeoutId),mt._resetIsScrollingTimeoutId=requestTimeout(mt._resetIsScrolling,IS_SCROLLING_DEBOUNCE_INTERVAL$1)},mt._resetIsScrolling=function(){mt._resetIsScrollingTimeoutId=null,mt.setState({isScrolling:!1},function(){mt._getItemStyleCache(-1,null)})},mt}bt.getDerivedStateFromProps=function(mt,Ot){return validateSharedProps$1(mt,Ot),dt(mt),null};var ht=bt.prototype;return ht.scrollTo=function(mt){mt=Math.max(0,mt),this.setState(function(Ot){return Ot.scrollOffset===mt?null:{scrollDirection:Ot.scrollOffset<mt?"forward":"backward",scrollOffset:mt,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},ht.scrollToItem=function(mt,Ot){Ot===void 0&&(Ot="auto");var zt=this.props,yt=zt.itemCount,vt=zt.layout,At=this.state.scrollOffset;mt=Math.max(0,Math.min(mt,yt-1));var St=0;if(this._outerRef){var Et=this._outerRef;vt==="vertical"?St=Et.scrollWidth>Et.clientWidth?getScrollbarSize():0:St=Et.scrollHeight>Et.clientHeight?getScrollbarSize():0}this.scrollTo(at(this.props,mt,Ot,At,this._instanceProps,St))},ht.componentDidMount=function(){var mt=this.props,Ot=mt.direction,zt=mt.initialScrollOffset,yt=mt.layout;if(typeof zt=="number"&&this._outerRef!=null){var vt=this._outerRef;Ot==="horizontal"||yt==="horizontal"?vt.scrollLeft=zt:vt.scrollTop=zt}this._callPropsCallbacks()},ht.componentDidUpdate=function(){var mt=this.props,Ot=mt.direction,zt=mt.layout,yt=this.state,vt=yt.scrollOffset,At=yt.scrollUpdateWasRequested;if(At&&this._outerRef!=null){var St=this._outerRef;if(Ot==="horizontal"||zt==="horizontal")if(Ot==="rtl")switch(getRTLOffsetType()){case"negative":St.scrollLeft=-vt;break;case"positive-ascending":St.scrollLeft=vt;break;default:var Et=St.clientWidth,Tt=St.scrollWidth;St.scrollLeft=Tt-Et-vt;break}else St.scrollLeft=vt;else St.scrollTop=vt}this._callPropsCallbacks()},ht.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&cancelTimeout(this._resetIsScrollingTimeoutId)},ht.render=function(){var mt=this.props,Ot=mt.children,zt=mt.className,yt=mt.direction,vt=mt.height,At=mt.innerRef,St=mt.innerElementType,Et=mt.innerTagName,Tt=mt.itemCount,Rt=mt.itemData,Ct=mt.itemKey,wt=Ct===void 0?defaultItemKey$1:Ct,Lt=mt.layout,Ht=mt.outerElementType,jt=mt.outerTagName,s0=mt.style,Ut=mt.useIsScrolling,Yt=mt.width,O0=this.state.isScrolling,a0=yt==="horizontal"||Lt==="horizontal",b0=a0?this._onScrollHorizontal:this._onScrollVertical,kt=this._getRangeToRender(),o0=kt[0],qt=kt[1],Dt=[];if(Tt>0)for(var Bt=o0;Bt<=qt;Bt++)Dt.push(reactExports.createElement(Ot,{data:Rt,key:wt(Bt,Rt),index:Bt,isScrolling:Ut?O0:void 0,style:this._getItemStyle(Bt)}));var p0=rt(this.props,this._instanceProps);return reactExports.createElement(Ht||jt||"div",{className:zt,onScroll:b0,ref:this._outerRefSetter,style:_extends$Q({position:"relative",height:vt,width:Yt,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:yt},s0)},reactExports.createElement(St||Et||"div",{children:Dt,ref:At,style:{height:a0?"100%":p0,pointerEvents:O0?"none":void 0,width:a0?p0:"100%"}}))},ht._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var mt=this.props.itemCount;if(mt>0){var Ot=this._getRangeToRender(),zt=Ot[0],yt=Ot[1],vt=Ot[2],At=Ot[3];this._callOnItemsRendered(zt,yt,vt,At)}}if(typeof this.props.onScroll=="function"){var St=this.state,Et=St.scrollDirection,Tt=St.scrollOffset,Rt=St.scrollUpdateWasRequested;this._callOnScroll(Et,Tt,Rt)}},ht._getRangeToRender=function(){var mt=this.props,Ot=mt.itemCount,zt=mt.overscanCount,yt=this.state,vt=yt.isScrolling,At=yt.scrollDirection,St=yt.scrollOffset;if(Ot===0)return[0,0,0,0];var Et=st(this.props,St,this._instanceProps),Tt=ut(this.props,Et,St,this._instanceProps),Rt=!vt||At==="backward"?Math.max(1,zt):1,Ct=!vt||At==="forward"?Math.max(1,zt):1;return[Math.max(0,Et-Rt),Math.max(0,Math.min(Ot-1,Tt+Ct)),Et,Tt]},bt}(reactExports.PureComponent),nt.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},nt}var validateSharedProps$1=function tt(nt,et){nt.children,nt.direction,nt.height,nt.layout,nt.innerTagName,nt.outerTagName,nt.width,et.instance},FixedSizeList=createListComponent({getItemOffset:function tt(nt,et){var rt=nt.itemSize;return et*rt},getItemSize:function tt(nt,et){var rt=nt.itemSize;return rt},getEstimatedTotalSize:function tt(nt){var et=nt.itemCount,rt=nt.itemSize;return rt*et},getOffsetForIndexAndAlignment:function tt(nt,et,rt,ot,at,st){var ut=nt.direction,ct=nt.height,pt=nt.itemCount,dt=nt.itemSize,ft=nt.layout,bt=nt.width,ht=ut==="horizontal"||ft==="horizontal",Mt=ht?bt:ct,mt=Math.max(0,pt*dt-Mt),Ot=Math.min(mt,et*dt),zt=Math.max(0,et*dt-Mt+dt+st);switch(rt==="smart"&&(ot>=zt-Mt&&ot<=Ot+Mt?rt="auto":rt="center"),rt){case"start":return Ot;case"end":return zt;case"center":{var yt=Math.round(zt+(Ot-zt)/2);return yt<Math.ceil(Mt/2)?0:yt>mt+Math.floor(Mt/2)?mt:yt}case"auto":default:return ot>=zt&&ot<=Ot?ot:ot<zt?zt:Ot}},getStartIndexForOffset:function tt(nt,et){var rt=nt.itemCount,ot=nt.itemSize;return Math.max(0,Math.min(rt-1,Math.floor(et/ot)))},getStopIndexForStartIndex:function tt(nt,et,rt){var ot=nt.direction,at=nt.height,st=nt.itemCount,ut=nt.itemSize,ct=nt.layout,pt=nt.width,dt=ot==="horizontal"||ct==="horizontal",ft=et*ut,bt=dt?pt:at,ht=Math.ceil((bt+rt-ft)/ut);return Math.max(0,Math.min(st-1,et+ht-1))},initInstanceProps:function tt(nt){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function tt(nt){nt.itemSize}});const ThemedStyledDropdownListItem=newStyled(StyledDropdownListItem,{shouldForwardProp:isPropValid,target:"es5gonv0"})(({theme:tt,$isHighlighted:nt})=>{const et=tt.inSidebar?tt.colors.bgColor:tt.colors.secondaryBg;return{display:"flex",alignItems:"center",paddingTop:tt.spacing.none,paddingBottom:tt.spacing.none,paddingLeft:tt.spacing.lg,paddingRight:tt.spacing.lg,background:nt?et:void 0,[`@media (max-width: ${tt.breakpoints.md})`]:{minHeight:tt.sizes.dropdownItemHeight,height:"auto !important"},"&:hover, &:active, &:focus-visible":{background:et}}});function FixedSizeListItem(tt){const{data:nt,index:et,style:rt}=tt,{item:ot,overrides:at,...st}=nt[et].props;return jsx$1(ThemedStyledDropdownListItem,{style:rt,...st,children:jsx$1(OverflowTooltip,{content:ot.label,placement:Placement.AUTO,children:ot.label})},ot.value)}const VirtualDropdown=React$1.forwardRef((tt,nt)=>{const et=useTheme(),rt=React$1.Children.toArray(tt.children);if(!rt[0]||!rt[0].props.item){const at=rt[0]?rt[0].props:{};return jsx$1(StyledList,{$style:{height:et.sizes.emptyDropdownHeight,paddingBottom:et.spacing.none,paddingTop:et.spacing.none,paddingLeft:et.spacing.none,paddingRight:et.spacing.none,display:"flex",alignItems:"center",justifyContent:"center"},ref:nt,"data-testid":"stSelectboxVirtualDropdownEmpty",children:jsx$1(StyledEmptyState,{$style:{paddingBottom:et.spacing.none,paddingTop:et.spacing.none,paddingLeft:et.spacing.none,paddingRight:et.spacing.none,color:et.colors.fadedText60},...at})})}const ot=Math.min(convertRemToPx(et.sizes.maxDropdownHeight),rt.length*convertRemToPx(et.sizes.dropdownItemHeight));return jsx$1(StyledList,{ref:nt,$style:{paddingTop:0,paddingBottom:0},"data-testid":"stSelectboxVirtualDropdown",children:jsx$1(FixedSizeList,{width:"100%",height:ot,itemCount:rt.length,itemData:rt,itemKey:(at,st)=>st[at].props.item.value,itemSize:convertRemToPx(et.sizes.dropdownItemHeight),children:FixedSizeListItem})})});VirtualDropdown.displayName="VirtualDropdown";const NO_OPTIONS_MSG="No options to select.";function fuzzyFilterSelectOptions(tt,nt){if(!nt)return tt;const et=tt.filter(rt=>hasMatch(nt,rt.label));return sortBy$1(et,rt=>score(nt,rt.label)).reverse()}const Selectbox=({disabled:tt,width:nt,value:et,onChange:rt,options:ot,label:at,labelVisibility:st,help:ut,placeholder:ct,clearable:pt})=>{const dt=useTheme(),[ft,bt]=reactExports.useState(et);reactExports.useEffect(()=>{bt(et)},[et]);const ht=reactExports.useCallback(At=>{if(At.value.length===0){bt(null),rt(null);return}const[St]=At.value,Et=parseInt(St.value,10);bt(Et),rt(Et)},[rt]),Mt=reactExports.useCallback((At,St)=>fuzzyFilterSelectOptions(At,St),[]);let mt=tt,Ot=ot,zt=[];isNullOrUndefined$1(ft)||(zt=[{label:Ot.length>0?Ot[ft]:NO_OPTIONS_MSG,value:ft.toString()}]),Ot.length===0&&(Ot=[NO_OPTIONS_MSG],mt=!0);const yt=Ot.map((At,St)=>({label:At,value:St.toString()})),vt=Ot.length>10;return jsxs("div",{className:"stSelectbox","data-testid":"stSelectbox",style:{width:nt},children:[jsx$1(WidgetLabel,{label:at,labelVisibility:st,disabled:mt,children:ut&&jsx$1(StyledWidgetLabelHelp,{children:jsx$1(TooltipIcon,{content:ut,placement:Placement.TOP_RIGHT})})}),jsx$1(Select,{disabled:mt,labelKey:"label","aria-label":at||"",onChange:ht,options:yt,filterOptions:Mt,clearable:pt||!1,escapeClearsValue:pt||!1,value:zt,valueKey:"value",placeholder:ct,overrides:{Root:{style:()=>({lineHeight:dt.lineHeights.inputWidget})},Dropdown:{component:VirtualDropdown},ClearIcon:{props:{overrides:{Svg:{style:{color:dt.colors.darkGray,padding:dt.spacing.threeXS,height:dt.sizes.clearIconSize,width:dt.sizes.clearIconSize,":hover":{fill:dt.colors.bodyText}}}}}},ControlContainer:{style:()=>({height:dt.sizes.minElementHeight,borderLeftWidth:dt.sizes.borderWidth,borderRightWidth:dt.sizes.borderWidth,borderTopWidth:dt.sizes.borderWidth,borderBottomWidth:dt.sizes.borderWidth})},IconsContainer:{style:()=>({paddingRight:dt.spacing.sm})},ValueContainer:{style:()=>({paddingRight:dt.spacing.sm,paddingLeft:dt.spacing.sm,paddingBottom:dt.spacing.sm,paddingTop:dt.spacing.sm})},Input:{props:{readOnly:isMobile_1&&!vt?"readonly":null},style:()=>({lineHeight:dt.lineHeights.inputWidget})},Popover:{props:{overrides:{Body:{style:()=>({marginTop:dt.spacing.px})}}}},SelectArrow:{component:ChevronDown$1,props:{overrides:{Svg:{style:()=>({width:dt.iconSizes.xl,height:dt.iconSizes.xl})}}}}}})]})},UISelectbox=reactExports.memo(Selectbox);class CircularBuffer{constructor(nt){this._buffer=new Array(nt),this._size=nt,this._index=0,this._wrappedCount=0}push(nt){this._buffer[this._index]=nt,this._index=(this._index+1)%this._size,this._index===0&&(this._wrappedCount=this._wrappedCount+1)}get buffer(){return this._buffer}get totalWrittenEntries(){return this._wrappedCount*this._size+this._index}}const handleRender=(tt,nt,et,rt,ot,at)=>{window.__streamlit_profiles__=window.__streamlit_profiles__||{},window.__streamlit_profiles__[tt]=window.__streamlit_profiles__[tt]||new CircularBuffer(1e3),window.__streamlit_profiles__[tt].push({phase:nt,actualDuration:et,baseDuration:rt,startTime:ot,commitTime:at})},Profiler=({id:tt,children:nt})=>jsx$1(reactExports.Profiler,{id:tt,onRender:handleRender,children:nt}),useWindowDimensions=()=>{const tt=useTheme(),[nt,et]=reactExports.useState({fullWidth:0,fullHeight:0}),rt=reactExports.useCallback(()=>{const at=convertRemToPx(tt.spacing.md),st=convertRemToPx(tt.sizes.fullScreenHeaderHeight);return{fullWidth:window.innerWidth-at*2,fullHeight:window.innerHeight-(at+st)}},[tt.sizes.fullScreenHeaderHeight,tt.spacing.md]),ot=reactExports.useCallback(()=>{et(rt())},[rt]);return reactExports.useEffect(()=>(window.addEventListener("resize",ot),()=>{window.removeEventListener("resize",ot)}),[ot]),reactExports.useEffect(()=>{ot()},[ot]),nt},WindowDimensionsContext=reactExports.createContext(null);WindowDimensionsContext.displayName="WindowDimensionsContext";const WindowDimensionsProvider=({children:tt})=>{const nt=useWindowDimensions();if(reactExports.useContext(WindowDimensionsContext))throw new Error("WindowDimensionsProvider should only be used once per app. If you need to read window dimensions, utilize `useRequiredContext(WindowDimensionsContext)` instead.");return jsx$1(WindowDimensionsContext.Provider,{value:nt,children:tt})};var baseIsEqual=_baseIsEqual;function isEqual(tt,nt){return baseIsEqual(tt,nt)}var isEqual_1=isEqual;const isEqual$1=getDefaultExportFromCjs$1(isEqual_1);let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let tt=0;tt<256;++tt)byteToHex.push((tt+256).toString(16).slice(1));function unsafeStringify(tt,nt=0){return byteToHex[tt[nt+0]]+byteToHex[tt[nt+1]]+byteToHex[tt[nt+2]]+byteToHex[tt[nt+3]]+"-"+byteToHex[tt[nt+4]]+byteToHex[tt[nt+5]]+"-"+byteToHex[tt[nt+6]]+byteToHex[tt[nt+7]]+"-"+byteToHex[tt[nt+8]]+byteToHex[tt[nt+9]]+"-"+byteToHex[tt[nt+10]]+byteToHex[tt[nt+11]]+byteToHex[tt[nt+12]]+byteToHex[tt[nt+13]]+byteToHex[tt[nt+14]]+byteToHex[tt[nt+15]]}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(tt,nt,et){if(native.randomUUID&&!nt&&!tt)return native.randomUUID();tt=tt||{};const rt=tt.random||(tt.rng||rng)();return rt[6]=rt[6]&15|64,rt[8]=rt[8]&63|128,unsafeStringify(rt)}class Resolver{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((nt,et)=>{this.resolve=nt,this.reject=et})}}class FileUploadClient{constructor(nt){this.formsWithPendingRequests=new Map,this.pendingFileURLsRequests=new Map,this.sessionInfo=nt.sessionInfo,this.endpoints=nt.endpoints,this.pendingFormUploadsChanged=nt.formsWithPendingRequestsChanged,this.requestFileURLs=nt.requestFileURLs}async uploadFile(nt,et,rt,ot,at){return this.offsetPendingRequestCount(nt.formId,1),this.endpoints.uploadFileUploaderFile(et,rt,this.sessionInfo.current.sessionId,ot,at).finally(()=>this.offsetPendingRequestCount(nt.formId,-1))}deleteFile(nt){return this.endpoints.deleteFileAtURL?this.endpoints.deleteFileAtURL(nt,this.sessionInfo.current.sessionId):Promise.resolve()}fetchFileURLs(nt){if(!this.requestFileURLs)return Promise.resolve([]);const et=new Resolver,rt=v4();return this.pendingFileURLsRequests.set(rt,et),this.requestFileURLs(rt,nt),et.promise}onFileURLsResponse(nt){const et=nt.responseId,rt=this.pendingFileURLsRequests.get(et);rt&&(nt.errorMsg?rt.reject(nt.errorMsg):rt.resolve(nt.fileUrls||[]),this.pendingFileURLsRequests.delete(et))}getFormIdSet(){return new Set(this.formsWithPendingRequests.keys())}offsetPendingRequestCount(nt,et){if(et===0||!isValidFormId(nt))return;const rt=this.formsWithPendingRequests.get(nt)??0,ot=rt+et;if(ot<0)throw new Error(`Can't offset pendingRequestCount below 0 (formId=${nt}, curCount=${rt}, offset=${et})`);const at=this.getFormIdSet();ot===0?this.formsWithPendingRequests.delete(nt):this.formsWithPendingRequests.set(nt,ot);const st=this.getFormIdSet();isEqual$1(st,at)||this.pendingFormUploadsChanged(st)}}class CacheEntry{constructor(nt,et){this.scriptRunCount=0,this.encodedMsg=nt,this.scriptRunCount=et}getAge(nt){return nt-this.scriptRunCount}}class ForwardMsgCache{constructor(nt){this.messages=new Map,this.scriptRunCount=0,this.endpoints=nt}incrementRunCount(nt){this.scriptRunCount+=1,this.messages.forEach((et,rt)=>{et.getAge(this.scriptRunCount)>nt&&this.messages.delete(rt)})}async processMessagePayload(nt,et){if(this.maybeCacheMessage(nt,et),nt.type!=="refHash")return nt;let rt=this.getCachedMessage(nt.refHash,!0);if(notNullOrUndefined(rt))logMessage(`Cached ForwardMsg HIT [hash=${nt.refHash}]`);else{logMessage(`Cached ForwardMsg MISS [hash=${nt.refHash}]`);const ot=await this.endpoints.fetchCachedForwardMsg(nt.refHash);try{rt=ForwardMsg.decode(ot)}catch(at){throw new Error(`Failed to decode ForwardMsg (hash=${nt.refHash}): ${ensureError(at).message}`)}this.maybeCacheMessage(rt,ot)}if(!nt.metadata)throw new Error("ForwardMsg has no metadata");return rt.metadata=ForwardMsg.decode(et).metadata,rt}maybeCacheMessage(nt,et){nt.type!=="refHash"&&(!nt.metadata||!nt.metadata.cacheable||this.getCachedMessage(nt.hash,!0)===void 0&&(logMessage(`Caching ForwardMsg [hash=${nt.hash}]`),this.messages.set(nt.hash,new CacheEntry(et,this.scriptRunCount))))}getCachedMessage(nt,et){const rt=this.messages.get(nt);if(!isNullOrUndefined$1(rt))return et&&(rt.scriptRunCount=this.scriptRunCount),ForwardMsg.decode(rt.encodedMsg)}}var R=class{constructor(tt,nt,et,rt,ot,at){In(this,"type",3);In(this,"name","");In(this,"prefix","");In(this,"value","");In(this,"suffix","");In(this,"modifier",3);this.type=tt,this.name=nt,this.prefix=et,this.value=rt,this.suffix=ot,this.modifier=at}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},be=/[$_\p{ID_Start}]/u,Pe=/[$_\u200C\u200D\p{ID_Continue}]/u,M=".*";function Re(tt,nt){return/^[\x00-\x7F]*$/.test(tt)}function v(tt,nt=!1){let et=[],rt=0;for(;rt<tt.length;){let ot=tt[rt],at=function(st){if(!nt)throw new TypeError(st);et.push({type:"INVALID_CHAR",index:rt,value:tt[rt++]})};if(ot==="*"){et.push({type:"ASTERISK",index:rt,value:tt[rt++]});continue}if(ot==="+"||ot==="?"){et.push({type:"OTHER_MODIFIER",index:rt,value:tt[rt++]});continue}if(ot==="\\"){et.push({type:"ESCAPED_CHAR",index:rt++,value:tt[rt++]});continue}if(ot==="{"){et.push({type:"OPEN",index:rt,value:tt[rt++]});continue}if(ot==="}"){et.push({type:"CLOSE",index:rt,value:tt[rt++]});continue}if(ot===":"){let st="",ut=rt+1;for(;ut<tt.length;){let ct=tt.substr(ut,1);if(ut===rt+1&&be.test(ct)||ut!==rt+1&&Pe.test(ct)){st+=tt[ut++];continue}break}if(!st){at(`Missing parameter name at ${rt}`);continue}et.push({type:"NAME",index:rt,value:st}),rt=ut;continue}if(ot==="("){let st=1,ut="",ct=rt+1,pt=!1;if(tt[ct]==="?"){at(`Pattern cannot start with "?" at ${ct}`);continue}for(;ct<tt.length;){if(!Re(tt[ct])){at(`Invalid character '${tt[ct]}' at ${ct}.`),pt=!0;break}if(tt[ct]==="\\"){ut+=tt[ct++]+tt[ct++];continue}if(tt[ct]===")"){if(st--,st===0){ct++;break}}else if(tt[ct]==="("&&(st++,tt[ct+1]!=="?")){at(`Capturing groups are not allowed at ${ct}`),pt=!0;break}ut+=tt[ct++]}if(pt)continue;if(st){at(`Unbalanced pattern at ${rt}`);continue}if(!ut){at(`Missing pattern at ${rt}`);continue}et.push({type:"REGEX",index:rt,value:ut}),rt=ct;continue}et.push({type:"CHAR",index:rt,value:tt[rt++]})}return et.push({type:"END",index:rt,value:""}),et}function D(tt,nt={}){let et=v(tt);nt.delimiter??(nt.delimiter="/#?"),nt.prefixes??(nt.prefixes="./");let rt=`[^${S(nt.delimiter)}]+?`,ot=[],at=0,st=0,ut=new Set,ct=yt=>{if(st<et.length&&et[st].type===yt)return et[st++].value},pt=()=>ct("OTHER_MODIFIER")??ct("ASTERISK"),dt=yt=>{let vt=ct(yt);if(vt!==void 0)return vt;let{type:At,index:St}=et[st];throw new TypeError(`Unexpected ${At} at ${St}, expected ${yt}`)},ft=()=>{let yt="",vt;for(;vt=ct("CHAR")??ct("ESCAPED_CHAR");)yt+=vt;return yt},bt=yt=>yt,ht=nt.encodePart||bt,Mt="",mt=yt=>{Mt+=yt},Ot=()=>{Mt.length&&(ot.push(new R(3,"","",ht(Mt),"",3)),Mt="")},zt=(yt,vt,At,St,Et)=>{let Tt=3;switch(Et){case"?":Tt=1;break;case"*":Tt=0;break;case"+":Tt=2;break}if(!vt&&!At&&Tt===3){mt(yt);return}if(Ot(),!vt&&!At){if(!yt)return;ot.push(new R(3,"","",ht(yt),"",Tt));return}let Rt;At?At==="*"?Rt=M:Rt=At:Rt=rt;let Ct=2;Rt===rt?(Ct=1,Rt=""):Rt===M&&(Ct=0,Rt="");let wt;if(vt?wt=vt:At&&(wt=at++),ut.has(wt))throw new TypeError(`Duplicate name '${wt}'.`);ut.add(wt),ot.push(new R(Ct,wt,ht(yt),Rt,ht(St),Tt))};for(;st<et.length;){let yt=ct("CHAR"),vt=ct("NAME"),At=ct("REGEX");if(!vt&&!At&&(At=ct("ASTERISK")),vt||At){let Et=yt??"";nt.prefixes.indexOf(Et)===-1&&(mt(Et),Et=""),Ot();let Tt=pt();zt(Et,vt,At,"",Tt);continue}let St=yt??ct("ESCAPED_CHAR");if(St){mt(St);continue}if(ct("OPEN")){let Et=ft(),Tt=ct("NAME"),Rt=ct("REGEX");!Tt&&!Rt&&(Rt=ct("ASTERISK"));let Ct=ft();dt("CLOSE");let wt=pt();zt(Et,Tt,Rt,Ct,wt);continue}Ot(),dt("END")}return ot}function S(tt){return tt.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function X(tt){return tt&&tt.ignoreCase?"ui":"u"}function Z(tt,nt,et){return F(D(tt,et),nt,et)}function k(tt){switch(tt){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}function F(tt,nt,et={}){et.delimiter??(et.delimiter="/#?"),et.prefixes??(et.prefixes="./"),et.sensitive??(et.sensitive=!1),et.strict??(et.strict=!1),et.end??(et.end=!0),et.start??(et.start=!0),et.endsWith="";let rt=et.start?"^":"";for(let ut of tt){if(ut.type===3){ut.modifier===3?rt+=S(ut.value):rt+=`(?:${S(ut.value)})${k(ut.modifier)}`;continue}nt&&nt.push(ut.name);let ct=`[^${S(et.delimiter)}]+?`,pt=ut.value;if(ut.type===1?pt=ct:ut.type===0&&(pt=M),!ut.prefix.length&&!ut.suffix.length){ut.modifier===3||ut.modifier===1?rt+=`(${pt})${k(ut.modifier)}`:rt+=`((?:${pt})${k(ut.modifier)})`;continue}if(ut.modifier===3||ut.modifier===1){rt+=`(?:${S(ut.prefix)}(${pt})${S(ut.suffix)})`,rt+=k(ut.modifier);continue}rt+=`(?:${S(ut.prefix)}`,rt+=`((?:${pt})(?:`,rt+=S(ut.suffix),rt+=S(ut.prefix),rt+=`(?:${pt}))*)${S(ut.suffix)})`,ut.modifier===0&&(rt+="?")}let ot=`[${S(et.endsWith)}]|$`,at=`[${S(et.delimiter)}]`;if(et.end)return et.strict||(rt+=`${at}?`),et.endsWith.length?rt+=`(?=${ot})`:rt+="$",new RegExp(rt,X(et));et.strict||(rt+=`(?:${at}(?=${ot}))?`);let st=!1;if(tt.length){let ut=tt[tt.length-1];ut.type===3&&ut.modifier===3&&(st=et.delimiter.indexOf(ut)>-1)}return st||(rt+=`(?=${at}|${ot})`),new RegExp(rt,X(et))}var x={delimiter:"",prefixes:"",sensitive:!0,strict:!0},B={delimiter:".",prefixes:"",sensitive:!0,strict:!0},q={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function J(tt,nt){return tt.length?tt[0]==="/"?!0:!nt||tt.length<2?!1:(tt[0]=="\\"||tt[0]=="{")&&tt[1]=="/":!1}function Q(tt,nt){return tt.startsWith(nt)?tt.substring(nt.length,tt.length):tt}function Ee(tt,nt){return tt.endsWith(nt)?tt.substr(0,tt.length-nt.length):tt}function W(tt){return!tt||tt.length<2?!1:tt[0]==="["||(tt[0]==="\\"||tt[0]==="{")&&tt[1]==="["}var ee=["ftp","file","http","https","ws","wss"];function N(tt){if(!tt)return!0;for(let nt of ee)if(tt.test(nt))return!0;return!1}function te(tt,nt){if(tt=Q(tt,"#"),nt||tt==="")return tt;let et=new URL("https://example.com");return et.hash=tt,et.hash?et.hash.substring(1,et.hash.length):""}function re(tt,nt){if(tt=Q(tt,"?"),nt||tt==="")return tt;let et=new URL("https://example.com");return et.search=tt,et.search?et.search.substring(1,et.search.length):""}function ne(tt,nt){return nt||tt===""?tt:W(tt)?j(tt):z(tt)}function se(tt,nt){if(nt||tt==="")return tt;let et=new URL("https://example.com");return et.password=tt,et.password}function ie(tt,nt){if(nt||tt==="")return tt;let et=new URL("https://example.com");return et.username=tt,et.username}function ae(tt,nt,et){if(et||tt==="")return tt;if(nt&&!ee.includes(nt))return new URL(`${nt}:${tt}`).pathname;let rt=tt[0]=="/";return tt=new URL(rt?tt:"/-"+tt,"https://example.com").pathname,rt||(tt=tt.substring(2,tt.length)),tt}function oe(tt,nt,et){return _(nt)===tt&&(tt=""),et||tt===""?tt:K(tt)}function ce(tt,nt){return tt=Ee(tt,":"),nt||tt===""?tt:y(tt)}function _(tt){switch(tt){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function y(tt){if(tt==="")return tt;if(/^[-+.A-Za-z0-9]*$/.test(tt))return tt.toLowerCase();throw new TypeError(`Invalid protocol '${tt}'.`)}function le(tt){if(tt==="")return tt;let nt=new URL("https://example.com");return nt.username=tt,nt.username}function fe(tt){if(tt==="")return tt;let nt=new URL("https://example.com");return nt.password=tt,nt.password}function z(tt){if(tt==="")return tt;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(tt))throw new TypeError(`Invalid hostname '${tt}'`);let nt=new URL("https://example.com");return nt.hostname=tt,nt.hostname}function j(tt){if(tt==="")return tt;if(/[^0-9a-fA-F[\]:]/g.test(tt))throw new TypeError(`Invalid IPv6 hostname '${tt}'`);return tt.toLowerCase()}function K(tt){if(tt===""||/^[0-9]*$/.test(tt)&&parseInt(tt)<=65535)return tt;throw new TypeError(`Invalid port '${tt}'.`)}function he(tt){if(tt==="")return tt;let nt=new URL("https://example.com");return nt.pathname=tt[0]!=="/"?"/-"+tt:tt,tt[0]!=="/"?nt.pathname.substring(2,nt.pathname.length):nt.pathname}function ue(tt){return tt===""?tt:new URL(`data:${tt}`).pathname}function de(tt){if(tt==="")return tt;let nt=new URL("https://example.com");return nt.search=tt,nt.search.substring(1,nt.search.length)}function pe(tt){if(tt==="")return tt;let nt=new URL("https://example.com");return nt.hash=tt,nt.hash.substring(1,nt.hash.length)}var Qn,hn,ln,V0,Ln,e1,yn,t1,n1,r1,C0,Y0,X1,k1,m1,v1,An,I1,G1,E1,K1,Y1,S1,Zn,Fn,J1,Z1,Q1,er,wn,tr,W1,H=(W1=class{constructor(tt){Q0(this,C0);Q0(this,Qn);Q0(this,hn,[]);Q0(this,ln,{});Q0(this,V0,0);Q0(this,Ln,1);Q0(this,e1,0);Q0(this,yn,0);Q0(this,t1,0);Q0(this,n1,0);Q0(this,r1,!1);K0(this,Qn,tt)}get result(){return _0(this,ln)}parse(){for(K0(this,hn,v(_0(this,Qn),!0));_0(this,V0)<_0(this,hn).length;K0(this,V0,_0(this,V0)+_0(this,Ln))){if(K0(this,Ln,1),_0(this,hn)[_0(this,V0)].type==="END"){if(_0(this,yn)===0){$0(this,C0,k1).call(this),$0(this,C0,Fn).call(this)?$0(this,C0,Y0).call(this,9,1):$0(this,C0,Zn).call(this)?$0(this,C0,Y0).call(this,8,1):$0(this,C0,Y0).call(this,7,0);continue}else if(_0(this,yn)===2){$0(this,C0,m1).call(this,5);continue}$0(this,C0,Y0).call(this,10,0);break}if(_0(this,t1)>0)if($0(this,C0,Z1).call(this))K0(this,t1,_0(this,t1)-1);else continue;if($0(this,C0,J1).call(this)){K0(this,t1,_0(this,t1)+1);continue}switch(_0(this,yn)){case 0:$0(this,C0,I1).call(this)&&$0(this,C0,m1).call(this,1);break;case 1:if($0(this,C0,I1).call(this)){$0(this,C0,tr).call(this);let tt=7,nt=1;$0(this,C0,G1).call(this)?(tt=2,nt=3):_0(this,r1)&&(tt=2),$0(this,C0,Y0).call(this,tt,nt)}break;case 2:$0(this,C0,E1).call(this)?$0(this,C0,m1).call(this,3):($0(this,C0,S1).call(this)||$0(this,C0,Zn).call(this)||$0(this,C0,Fn).call(this))&&$0(this,C0,m1).call(this,5);break;case 3:$0(this,C0,K1).call(this)?$0(this,C0,Y0).call(this,4,1):$0(this,C0,E1).call(this)&&$0(this,C0,Y0).call(this,5,1);break;case 4:$0(this,C0,E1).call(this)&&$0(this,C0,Y0).call(this,5,1);break;case 5:$0(this,C0,Q1).call(this)?K0(this,n1,_0(this,n1)+1):$0(this,C0,er).call(this)&&K0(this,n1,_0(this,n1)-1),$0(this,C0,Y1).call(this)&&!_0(this,n1)?$0(this,C0,Y0).call(this,6,1):$0(this,C0,S1).call(this)?$0(this,C0,Y0).call(this,7,0):$0(this,C0,Zn).call(this)?$0(this,C0,Y0).call(this,8,1):$0(this,C0,Fn).call(this)&&$0(this,C0,Y0).call(this,9,1);break;case 6:$0(this,C0,S1).call(this)?$0(this,C0,Y0).call(this,7,0):$0(this,C0,Zn).call(this)?$0(this,C0,Y0).call(this,8,1):$0(this,C0,Fn).call(this)&&$0(this,C0,Y0).call(this,9,1);break;case 7:$0(this,C0,Zn).call(this)?$0(this,C0,Y0).call(this,8,1):$0(this,C0,Fn).call(this)&&$0(this,C0,Y0).call(this,9,1);break;case 8:$0(this,C0,Fn).call(this)&&$0(this,C0,Y0).call(this,9,1);break}}_0(this,ln).hostname!==void 0&&_0(this,ln).port===void 0&&(_0(this,ln).port="")}},Qn=new WeakMap,hn=new WeakMap,ln=new WeakMap,V0=new WeakMap,Ln=new WeakMap,e1=new WeakMap,yn=new WeakMap,t1=new WeakMap,n1=new WeakMap,r1=new WeakMap,C0=new WeakSet,Y0=function(tt,nt){var et,rt,ot;switch(_0(this,yn)){case 0:break;case 1:_0(this,ln).protocol=$0(this,C0,wn).call(this);break;case 2:break;case 3:_0(this,ln).username=$0(this,C0,wn).call(this);break;case 4:_0(this,ln).password=$0(this,C0,wn).call(this);break;case 5:_0(this,ln).hostname=$0(this,C0,wn).call(this);break;case 6:_0(this,ln).port=$0(this,C0,wn).call(this);break;case 7:_0(this,ln).pathname=$0(this,C0,wn).call(this);break;case 8:_0(this,ln).search=$0(this,C0,wn).call(this);break;case 9:_0(this,ln).hash=$0(this,C0,wn).call(this);break}_0(this,yn)!==0&&tt!==10&&([1,2,3,4].includes(_0(this,yn))&&[6,7,8,9].includes(tt)&&((et=_0(this,ln)).hostname??(et.hostname="")),[1,2,3,4,5,6].includes(_0(this,yn))&&[8,9].includes(tt)&&((rt=_0(this,ln)).pathname??(rt.pathname=_0(this,r1)?"/":"")),[1,2,3,4,5,6,7].includes(_0(this,yn))&&tt===9&&((ot=_0(this,ln)).search??(ot.search=""))),$0(this,C0,X1).call(this,tt,nt)},X1=function(tt,nt){K0(this,yn,tt),K0(this,e1,_0(this,V0)+nt),K0(this,V0,_0(this,V0)+nt),K0(this,Ln,0)},k1=function(){K0(this,V0,_0(this,e1)),K0(this,Ln,0)},m1=function(tt){$0(this,C0,k1).call(this),K0(this,yn,tt)},v1=function(tt){return tt<0&&(tt=_0(this,hn).length-tt),tt<_0(this,hn).length?_0(this,hn)[tt]:_0(this,hn)[_0(this,hn).length-1]},An=function(tt,nt){let et=$0(this,C0,v1).call(this,tt);return et.value===nt&&(et.type==="CHAR"||et.type==="ESCAPED_CHAR"||et.type==="INVALID_CHAR")},I1=function(){return $0(this,C0,An).call(this,_0(this,V0),":")},G1=function(){return $0(this,C0,An).call(this,_0(this,V0)+1,"/")&&$0(this,C0,An).call(this,_0(this,V0)+2,"/")},E1=function(){return $0(this,C0,An).call(this,_0(this,V0),"@")},K1=function(){return $0(this,C0,An).call(this,_0(this,V0),":")},Y1=function(){return $0(this,C0,An).call(this,_0(this,V0),":")},S1=function(){return $0(this,C0,An).call(this,_0(this,V0),"/")},Zn=function(){if($0(this,C0,An).call(this,_0(this,V0),"?"))return!0;if(_0(this,hn)[_0(this,V0)].value!=="?")return!1;let tt=$0(this,C0,v1).call(this,_0(this,V0)-1);return tt.type!=="NAME"&&tt.type!=="REGEX"&&tt.type!=="CLOSE"&&tt.type!=="ASTERISK"},Fn=function(){return $0(this,C0,An).call(this,_0(this,V0),"#")},J1=function(){return _0(this,hn)[_0(this,V0)].type=="OPEN"},Z1=function(){return _0(this,hn)[_0(this,V0)].type=="CLOSE"},Q1=function(){return $0(this,C0,An).call(this,_0(this,V0),"[")},er=function(){return $0(this,C0,An).call(this,_0(this,V0),"]")},wn=function(){let tt=_0(this,hn)[_0(this,V0)],nt=$0(this,C0,v1).call(this,_0(this,e1)).index;return _0(this,Qn).substring(nt,tt.index)},tr=function(){let tt={};Object.assign(tt,x),tt.encodePart=y;let nt=Z($0(this,C0,wn).call(this),void 0,tt);K0(this,r1,N(nt))},W1),G=["protocol","username","password","hostname","port","pathname","search","hash"],E="*";function ge(tt,nt){if(typeof tt!="string")throw new TypeError("parameter 1 is not of type 'string'.");let et=new URL(tt,nt);return{protocol:et.protocol.substring(0,et.protocol.length-1),username:et.username,password:et.password,hostname:et.hostname,port:et.port,pathname:et.pathname,search:et.search!==""?et.search.substring(1,et.search.length):void 0,hash:et.hash!==""?et.hash.substring(1,et.hash.length):void 0}}function b(tt,nt){return nt?C(tt):tt}function w(tt,nt,et){let rt;if(typeof nt.baseURL=="string")try{rt=new URL(nt.baseURL),nt.protocol===void 0&&(tt.protocol=b(rt.protocol.substring(0,rt.protocol.length-1),et)),!et&&nt.protocol===void 0&&nt.hostname===void 0&&nt.port===void 0&&nt.username===void 0&&(tt.username=b(rt.username,et)),!et&&nt.protocol===void 0&&nt.hostname===void 0&&nt.port===void 0&&nt.username===void 0&&nt.password===void 0&&(tt.password=b(rt.password,et)),nt.protocol===void 0&&nt.hostname===void 0&&(tt.hostname=b(rt.hostname,et)),nt.protocol===void 0&&nt.hostname===void 0&&nt.port===void 0&&(tt.port=b(rt.port,et)),nt.protocol===void 0&&nt.hostname===void 0&&nt.port===void 0&&nt.pathname===void 0&&(tt.pathname=b(rt.pathname,et)),nt.protocol===void 0&&nt.hostname===void 0&&nt.port===void 0&&nt.pathname===void 0&&nt.search===void 0&&(tt.search=b(rt.search.substring(1,rt.search.length),et)),nt.protocol===void 0&&nt.hostname===void 0&&nt.port===void 0&&nt.pathname===void 0&&nt.search===void 0&&nt.hash===void 0&&(tt.hash=b(rt.hash.substring(1,rt.hash.length),et))}catch{throw new TypeError(`invalid baseURL '${nt.baseURL}'.`)}if(typeof nt.protocol=="string"&&(tt.protocol=ce(nt.protocol,et)),typeof nt.username=="string"&&(tt.username=ie(nt.username,et)),typeof nt.password=="string"&&(tt.password=se(nt.password,et)),typeof nt.hostname=="string"&&(tt.hostname=ne(nt.hostname,et)),typeof nt.port=="string"&&(tt.port=oe(nt.port,tt.protocol,et)),typeof nt.pathname=="string"){if(tt.pathname=nt.pathname,rt&&!J(tt.pathname,et)){let ot=rt.pathname.lastIndexOf("/");ot>=0&&(tt.pathname=b(rt.pathname.substring(0,ot+1),et)+tt.pathname)}tt.pathname=ae(tt.pathname,tt.protocol,et)}return typeof nt.search=="string"&&(tt.search=re(nt.search,et)),typeof nt.hash=="string"&&(tt.hash=te(nt.hash,et)),tt}function C(tt){return tt.replace(/([+*?:{}()\\])/g,"\\$1")}function Oe(tt){return tt.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function ke(tt,nt){nt.delimiter??(nt.delimiter="/#?"),nt.prefixes??(nt.prefixes="./"),nt.sensitive??(nt.sensitive=!1),nt.strict??(nt.strict=!1),nt.end??(nt.end=!0),nt.start??(nt.start=!0),nt.endsWith="";let et=".*",rt=`[^${Oe(nt.delimiter)}]+?`,ot=/[$_\u200C\u200D\p{ID_Continue}]/u,at="";for(let st=0;st<tt.length;++st){let ut=tt[st];if(ut.type===3){if(ut.modifier===3){at+=C(ut.value);continue}at+=`{${C(ut.value)}}${k(ut.modifier)}`;continue}let ct=ut.hasCustomName(),pt=!!ut.suffix.length||!!ut.prefix.length&&(ut.prefix.length!==1||!nt.prefixes.includes(ut.prefix)),dt=st>0?tt[st-1]:null,ft=st<tt.length-1?tt[st+1]:null;if(!pt&&ct&&ut.type===1&&ut.modifier===3&&ft&&!ft.prefix.length&&!ft.suffix.length)if(ft.type===3){let bt=ft.value.length>0?ft.value[0]:"";pt=ot.test(bt)}else pt=!ft.hasCustomName();if(!pt&&!ut.prefix.length&&dt&&dt.type===3){let bt=dt.value[dt.value.length-1];pt=nt.prefixes.includes(bt)}pt&&(at+="{"),at+=C(ut.prefix),ct&&(at+=`:${ut.name}`),ut.type===2?at+=`(${ut.value})`:ut.type===1?ct||(at+=`(${rt})`):ut.type===0&&(!ct&&(!dt||dt.type===3||dt.modifier!==3||pt||ut.prefix!=="")?at+="*":at+=`(${et})`),ut.type===1&&ct&&ut.suffix.length&&ot.test(ut.suffix[0])&&(at+="\\"),at+=C(ut.suffix),pt&&(at+="}"),ut.modifier!==3&&(at+=k(ut.modifier))}return at}var Dn,Bn,i1,sn,En,o1,P1,me=(P1=class{constructor(tt={},nt,et){Q0(this,Dn);Q0(this,Bn,{});Q0(this,i1,{});Q0(this,sn,{});Q0(this,En,{});Q0(this,o1,!1);try{let rt;if(typeof nt=="string"?rt=nt:et=nt,typeof tt=="string"){let ut=new H(tt);if(ut.parse(),tt=ut.result,rt===void 0&&typeof tt.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");tt.baseURL=rt}else{if(!tt||typeof tt!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(rt)throw new TypeError("parameter 1 is not of type 'string'.")}typeof et>"u"&&(et={ignoreCase:!1});let ot={ignoreCase:et.ignoreCase===!0};K0(this,Dn,w({pathname:E,protocol:E,username:E,password:E,hostname:E,port:E,search:E,hash:E},tt,!0)),_(_0(this,Dn).protocol)===_0(this,Dn).port&&(_0(this,Dn).port="");let st;for(st of G){if(!(st in _0(this,Dn)))continue;let ut={},ct=_0(this,Dn)[st];switch(_0(this,i1)[st]=[],st){case"protocol":Object.assign(ut,x),ut.encodePart=y;break;case"username":Object.assign(ut,x),ut.encodePart=le;break;case"password":Object.assign(ut,x),ut.encodePart=fe;break;case"hostname":Object.assign(ut,B),W(ct)?ut.encodePart=j:ut.encodePart=z;break;case"port":Object.assign(ut,x),ut.encodePart=K;break;case"pathname":N(_0(this,Bn).protocol)?(Object.assign(ut,q,ot),ut.encodePart=he):(Object.assign(ut,x,ot),ut.encodePart=ue);break;case"search":Object.assign(ut,x,ot),ut.encodePart=de;break;case"hash":Object.assign(ut,x,ot),ut.encodePart=pe;break}try{_0(this,En)[st]=D(ct,ut),_0(this,Bn)[st]=F(_0(this,En)[st],_0(this,i1)[st],ut),_0(this,sn)[st]=ke(_0(this,En)[st],ut),K0(this,o1,_0(this,o1)||_0(this,En)[st].some(pt=>pt.type===2))}catch{throw new TypeError(`invalid ${st} pattern '${_0(this,Dn)[st]}'.`)}}}catch(rt){throw new TypeError(`Failed to construct 'URLPattern': ${rt.message}`)}}test(tt={},nt){let et={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof tt!="string"&&nt)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof tt>"u")return!1;try{typeof tt=="object"?et=w(et,tt,!1):et=w(et,ge(tt,nt),!1)}catch{return!1}let rt;for(rt of G)if(!_0(this,Bn)[rt].exec(et[rt]))return!1;return!0}exec(tt={},nt){let et={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof tt!="string"&&nt)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof tt>"u")return;try{typeof tt=="object"?et=w(et,tt,!1):et=w(et,ge(tt,nt),!1)}catch{return null}let rt={};nt?rt.inputs=[tt,nt]:rt.inputs=[tt];let ot;for(ot of G){let at=_0(this,Bn)[ot].exec(et[ot]);if(!at)return null;let st={};for(let[ut,ct]of _0(this,i1)[ot].entries())if(typeof ct=="string"||typeof ct=="number"){let pt=at[ut+1];st[ct]=pt}rt[ot]={input:et[ot]??"",groups:st}}return rt}static compareComponent(tt,nt,et){let rt=(ut,ct)=>{for(let pt of["type","modifier","prefix","value","suffix"]){if(ut[pt]<ct[pt])return-1;if(ut[pt]!==ct[pt])return 1}return 0},ot=new R(3,"","","","",3),at=new R(0,"","","","",3),st=(ut,ct)=>{let pt=0;for(;pt<Math.min(ut.length,ct.length);++pt){let dt=rt(ut[pt],ct[pt]);if(dt)return dt}return ut.length===ct.length?0:rt(ut[pt]??ot,ct[pt]??ot)};return!_0(nt,sn)[tt]&&!_0(et,sn)[tt]?0:_0(nt,sn)[tt]&&!_0(et,sn)[tt]?st(_0(nt,En)[tt],[at]):!_0(nt,sn)[tt]&&_0(et,sn)[tt]?st([at],_0(et,En)[tt]):st(_0(nt,En)[tt],_0(et,En)[tt])}get protocol(){return _0(this,sn).protocol}get username(){return _0(this,sn).username}get password(){return _0(this,sn).password}get hostname(){return _0(this,sn).hostname}get port(){return _0(this,sn).port}get pathname(){return _0(this,sn).pathname}get search(){return _0(this,sn).search}get hash(){return _0(this,sn).hash}get hasRegExpGroups(){return _0(this,o1)}},Dn=new WeakMap,Bn=new WeakMap,i1=new WeakMap,sn=new WeakMap,En=new WeakMap,o1=new WeakMap,P1);globalThis.URLPattern||(globalThis.URLPattern=me);var baseSlice=_baseSlice,toInteger=toInteger_1;function take(tt,nt,et){return tt&&tt.length?(nt=et||nt===void 0?1:toInteger(nt),baseSlice(tt,0,nt<0?0:nt)):[]}var take_1=take;const take$1=getDefaultExportFromCjs$1(take_1),FINAL_SLASH_RE=/\/+$/,INITIAL_SLASH_RE=/^\/+/;function getWindowBaseUriParts(){const tt=window.location.hostname;let nt;window.location.port?nt=Number(window.location.port):nt=isHttps()?443:80;const et=window.location.pathname.replace(FINAL_SLASH_RE,"").replace(INITIAL_SLASH_RE,"");return{host:tt,port:nt,basePath:et}}function getPossibleBaseUris(){const tt=getWindowBaseUriParts(),{basePath:nt}=tt;if(!nt)return[tt];const et=nt.split("/"),rt=[];for(;et.length>0;)rt.push({...tt,basePath:et.join("/")}),et.pop();return rt.push({...tt,basePath:""}),take$1(rt,2)}function buildWsUri({host:tt,port:nt,basePath:et},rt){const ot=isHttps()?"wss":"ws",at=makePath(et,rt);return`${ot}://${tt}:${nt}/${at}`}function buildHttpUri({host:tt,port:nt,basePath:et},rt){const ot=isHttps()?"https":"http",at=makePath(et,rt);return`${ot}://${tt}:${nt}/${at}`}function makePath(tt,nt){return tt=tt.replace(FINAL_SLASH_RE,"").replace(INITIAL_SLASH_RE,""),nt=nt.replace(FINAL_SLASH_RE,"").replace(INITIAL_SLASH_RE,""),tt.length===0?nt:`${tt}/${nt}`}function isHttps(){return window.location.href.startsWith("https://")}function isValidOrigin(tt,nt){let et,rt,ot;try{et=new URLPattern(tt),rt=new URLPattern({protocol:et.protocol,hostname:et.hostname}),ot=new URL(nt)}catch{return!1}return ot.hostname==="localhost"&&rt.test(ot)?!0:et.test(ot)}const HOST_COMM_VERSION=1;class HostCommunicationManager{constructor(nt){this.openHostCommunication=()=>{window.addEventListener("message",this.receiveHostMessage),this.sendMessageToHost({type:"GUEST_READY",streamlitExecutionStartedAt:this.props.streamlitExecutionStartedAt,guestReadyAt:Date.now()})},this.closeHostCommunication=()=>{window.removeEventListener("message",this.receiveHostMessage)},this.resetAuthToken=()=>{this.deferredAuthToken=new Resolver},this.claimAuthToken=()=>this.deferredAuthToken.promise,this.setAllowedOrigins=({allowedOrigins:et,useExternalAuthToken:rt})=>{rt||this.deferredAuthToken.resolve(void 0),et!=null&&et.length&&(this.allowedOrigins=et,this.openHostCommunication())},this.sendMessageToSameOriginHost=et=>{window.parent.postMessage({stCommVersion:HOST_COMM_VERSION,...et},window.location.origin)},this.sendMessageToHost=et=>{window.parent.postMessage({stCommVersion:HOST_COMM_VERSION,...et},"*")},this.receiveHostMessage=et=>{const rt=et.data;if(!(rt.stCommVersion!==HOST_COMM_VERSION||!this.allowedOrigins.find(ot=>isValidOrigin(ot,et.origin)))){if(rt.type==="CLOSE_MODAL"&&this.props.closeModal(),rt.type==="STOP_SCRIPT"&&this.props.stopScript(),rt.type==="RERUN_SCRIPT"&&this.props.rerunScript(),rt.type==="CLEAR_CACHE"&&this.props.clearCache(),rt.type==="REQUEST_PAGE_CHANGE"&&this.props.pageChanged(rt.pageScriptHash),rt.type==="SEND_APP_HEARTBEAT"&&this.props.sendAppHeartbeat(),rt.type==="SET_INPUTS_DISABLED"&&this.props.setInputsDisabled(rt.disabled),rt.type==="SET_AUTH_TOKEN"&&this.deferredAuthToken.resolve(rt.authToken),rt.type==="SET_FILE_UPLOAD_CLIENT_CONFIG"){const{prefix:ot,headers:at}=rt;this.props.fileUploadClientConfigChanged({prefix:ot,headers:at})}rt.type==="SET_IS_OWNER"&&this.props.isOwnerChanged(rt.isOwner),rt.type==="SET_MENU_ITEMS"&&this.props.hostMenuItemsChanged(rt.items),rt.type==="SET_METADATA"&&this.props.deployedAppMetadataChanged(rt.metadata),rt.type==="SET_PAGE_LINK_BASE_URL"&&this.props.pageLinkBaseUrlChanged(rt.pageLinkBaseUrl),rt.type==="SET_SIDEBAR_CHEVRON_DOWNSHIFT"&&this.props.sidebarChevronDownshiftChanged(rt.sidebarChevronDownshift),rt.type==="SET_SIDEBAR_NAV_VISIBILITY"&&this.props.hostHideSidebarNavChanged(rt.hidden),rt.type==="SET_TOOLBAR_ITEMS"&&this.props.hostToolbarItemsChanged(rt.items),rt.type==="UPDATE_FROM_QUERY_PARAMS"&&(this.props.queryParamsChanged(rt.queryParams),this.props.sendRerunBackMsg()),rt.type==="UPDATE_HASH"&&(window.location.hash=rt.hash),rt.type==="SET_CUSTOM_THEME_CONFIG"&&this.props.themeChanged(rt.themeName,rt.themeInfo),rt.type==="RESTART_WEBSOCKET_CONNECTION"&&this.props.restartWebsocketConnection(),rt.type==="TERMINATE_WEBSOCKET_CONNECTION"&&this.props.terminateWebsocketConnection()}},this.props=nt,this.allowedOrigins=[],this.deferredAuthToken=new Resolver}}class SessionInfo{get current(){if(!this._current)throw new Error("Tried to use SessionInfo before it was initialized");return this._current}get last(){return this._last}setCurrent(nt){this._last=notNullOrUndefined(this._current)?{...this._current}:void 0,this._current=notNullOrUndefined(nt)?{...nt}:void 0}clearCurrent(){this.setCurrent(void 0)}get isSet(){return notNullOrUndefined(this._current)}get isHello(){return notNullOrUndefined(this._current)&&this._current.isHello}static propsFromNewSessionMessage(nt){const et=nt.initialize,rt=nt.config,ot=et.userInfo,at=et.environmentInfo;return{appId:hashString(ot.installationIdV3+nt.mainScriptPath),sessionId:et.sessionId,streamlitVersion:at.streamlitVersion,pythonVersion:at.pythonVersion,installationId:ot.installationId,installationIdV3:ot.installationIdV3,maxCachedMessageAge:rt.maxCachedMessageAge,isHello:et.isHello}}}function findNextEventIndex(tt,nt,et){const rt=typeof nt=="number"?nt:tt.indexOf(nt);for(let ot=rt;ot<tt.length;++ot)if(et(tt[ot]))return ot}function findPrevEventIndex(tt,nt,et){const rt=typeof nt=="number"?nt:tt.indexOf(nt);for(let ot=rt;ot>=0;--ot){const at=tt[ot];if(et(at))return ot}}function findPrevEvent(tt,nt,et){const rt=findPrevEventIndex(tt,nt,et);return rt!==void 0?tt[rt]:void 0}function isHandleMessageEvent(tt){return tt.messageIndex!==void 0}function getTimeDelta(tt,nt){return Math.abs(nt.timestamp-tt.timestamp)}class RerunAnalyzer{constructor(nt,et){this.getResults=()=>{const ot=new Set;if(this.rerunEvents.forEach(pt=>{isHandleMessageEvent(pt)&&ot.add(pt.messageIndex)}),ot.size===0)return"No rerun messages found!";const at=Array.from(ot).sort(compareNumbers),st=this.rerunEvents[this.rerunEvents.length-1],ut=this.rerunEvents[0],ct={messages:at.map(this.getMessageAnalysis),rerunDuration:getTimeDelta(ut,st)};return this.requestedRerun!==void 0&&(ct.requestedRerun=!0,ct.scriptRunStateAtStart=this.requestedRerun.scriptRunState,ct.requestToRerunStart=getTimeDelta(this.requestedRerun,ut)),ct},this.getMessageAnalysis=ot=>{const at=[];let st=0;for(;st<this.rerunEvents.length;){const dt=findNextMessageEvent(this.rerunEvents,st,ot);if(dt===void 0)break;at.push(this.rerunEvents[dt]),st=dt+1}if(at.length===0)throw new Error(`No messages for the given index: ${ot}`);const ut=at[0],ct=at[at.length-1],pt={messageIndex:ot,duration:getTimeDelta(ut,ct),steps:[]};for(let dt=1;dt<at.length;++dt){const ft=at[dt-1],bt=at[dt];bt.name==="DecodedMessage"&&(pt.messageType=bt.messageType,pt.len=bt.len),pt.steps.push({name:bt.name,duration:getTimeDelta(ft,bt)})}return pt};const rt=findRunStartEventIndex(nt,et);if(rt===void 0)throw new Error("Unable to find run start!");this.rerunEvents=nt.slice(rt,et+1),this.requestedRerun=findPrevEvent(nt,rt-1,ot=>ot.name==="RequestedRerun")}}function compareNumbers(tt,nt){return tt<nt?-1:tt>nt?1:0}function findRunStartEventIndex(tt,nt){const et=findPrevEventIndex(tt,nt-1,ot=>ot.name==="DecodedMessage"&&ot.messageType==="newSession");if(et===void 0)return;const{messageIndex:rt}=tt[et];return findPrevEventIndex(tt,et,ot=>ot.name==="BeginHandleMessage"&&ot.messageIndex===rt)}function findNextMessageEvent(tt,nt,et){return findNextEventIndex(tt,nt,rt=>isHandleMessageEvent(rt)&&rt.messageIndex===et)}function getRerunAnalysis(tt,nt){return new RerunAnalyzer(tt,tt.length-1).getResults()}const _1=class _1{static record(nt){this.enabled&&(nt.timestamp=performance.now(),this.events.push(nt),nt.name==="DispatchedMessage"&&nt.messageType==="scriptFinished"&&(logMessage("Rerun results",getRerunAnalysis(this.events)),this.events=[]))}};_1.enabled=!1,_1.events=[];let PerformanceEvents=_1;var j1;const nonce=((j1=document.currentScript)==null?void 0:j1.nonce)||"",cache=createCache({key:"st-emotion-cache",...nonce&&{nonce}});function RootStyleProvider(tt){const{children:nt,theme:et}=tt;return jsx$1(BaseProvider,{theme:et.basewebTheme,zIndex:et.emotion.zIndices.popupMenu,children:jsx$1(CacheProvider,{value:cache,children:jsxs(ThemeProvider$2,{theme:et.emotion,children:[jsx$1(Global,{styles:[globalStyles]}),nt]})})})}class Timer{constructor(){this.duration=0,this.startTime=0,this.running=!1}get isRunning(){return this.running}get remainingTime(){if(!this.running)return 0;const nt=Date.now()-this.startTime;return Math.max(this.duration-nt,0)}setTimeout(nt,et){this.cancel(),this.startTime=Date.now(),this.duration=et,this.running=!0,this.timerHandle=window.setTimeout(()=>{this.running=!1,nt()},et)}cancel(){this.timerHandle!==void 0&&(window.clearTimeout(this.timerHandle),this.timerHandle=void 0,this.running=!1)}}var src={exports:{}},indexLight={exports:{}},util$2={exports:{}},codegen_1=codegen;function codegen(tt,nt){typeof tt=="string"&&(nt=tt,tt=void 0);var et=[];function rt(at){if(typeof at!="string"){var st=ot();if(codegen.verbose&&console.log("codegen: "+st),st="return "+st,at){for(var ut=Object.keys(at),ct=new Array(ut.length+1),pt=new Array(ut.length),dt=0;dt<ut.length;)ct[dt]=ut[dt],pt[dt]=at[ut[dt++]];return ct[dt]=st,Function.apply(null,ct).apply(null,pt)}return Function(st)()}for(var ft=new Array(arguments.length-1),bt=0;bt<ft.length;)ft[bt]=arguments[++bt];if(bt=0,at=at.replace(/%([%dfijs])/g,function(Mt,mt){var Ot=ft[bt++];switch(mt){case"d":case"f":return String(Number(Ot));case"i":return String(Math.floor(Ot));case"j":return JSON.stringify(Ot);case"s":return String(Ot)}return"%"}),bt!==ft.length)throw Error("parameter count mismatch");return et.push(at),rt}function ot(at){return"function "+(at||nt||"")+"("+(tt&&tt.join(",")||"")+`){
724
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(tt,nt){if(tt){if(typeof tt=="string")return _arrayLikeToArray(tt,nt);var et=Object.prototype.toString.call(tt).slice(8,-1);if(et==="Object"&&tt.constructor&&(et=tt.constructor.name),et==="Map"||et==="Set")return Array.from(tt);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray(tt,nt)}}function _arrayLikeToArray(tt,nt){(nt==null||nt>tt.length)&&(nt=tt.length);for(var et=0,rt=new Array(nt);et<nt;et++)rt[et]=tt[et];return rt}function _iterableToArrayLimit(tt,nt){var et=tt==null?null:typeof Symbol<"u"&&tt[Symbol.iterator]||tt["@@iterator"];if(et!=null){var rt=[],ot=!0,at=!1,st,ut;try{for(et=et.call(tt);!(ot=(st=et.next()).done)&&(rt.push(st.value),!(nt&&rt.length===nt));ot=!0);}catch(ct){at=!0,ut=ct}finally{try{!ot&&et.return!=null&&et.return()}finally{if(at)throw ut}}return rt}}function _arrayWithHoles(tt){if(Array.isArray(tt))return tt}function _objectWithoutProperties$1(tt,nt){if(tt==null)return{};var et=_objectWithoutPropertiesLoose$1(tt,nt),rt,ot;if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(tt);for(ot=0;ot<at.length;ot++)rt=at[ot],!(nt.indexOf(rt)>=0)&&Object.prototype.propertyIsEnumerable.call(tt,rt)&&(et[rt]=tt[rt])}return et}function _objectWithoutPropertiesLoose$1(tt,nt){if(tt==null)return{};var et={},rt=Object.keys(tt),ot,at;for(at=0;at<rt.length;at++)ot=rt[at],!(nt.indexOf(ot)>=0)&&(et[ot]=tt[ot]);return et}function Value(tt){var nt=tt.overrides,et=nt===void 0?{}:nt,rt=_objectWithoutProperties$1(tt,_excluded$1),ot=getOverrides(et.SingleValue,StyledSingleValue),at=_slicedToArray(ot,2),st=at[0],ut=at[1];return reactExports.createElement(st,_extends$2({},rt,ut),tt.children)}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_extends$1.apply(this,arguments)}function Select(tt){return reactExports.createElement(Select$1,_extends$1({},tt,{valueComponent:tt.multi?MultiValue:Value}))}var SCORE_MIN=-1/0,SCORE_MAX=1/0,SCORE_GAP_LEADING=-.005,SCORE_GAP_TRAILING=-.005,SCORE_GAP_INNER=-.01,SCORE_MATCH_CONSECUTIVE=1,SCORE_MATCH_SLASH=.9,SCORE_MATCH_WORD=.8,SCORE_MATCH_CAPITAL=.7,SCORE_MATCH_DOT=.6;function islower(tt){return tt.toLowerCase()===tt}function isupper(tt){return tt.toUpperCase()===tt}function precompute_bonus(tt){for(var nt=tt.length,et=new Array(nt),rt="/",ot=0;ot<nt;ot++){var at=tt[ot];rt==="/"?et[ot]=SCORE_MATCH_SLASH:rt==="-"||rt==="_"||rt===" "?et[ot]=SCORE_MATCH_WORD:rt==="."?et[ot]=SCORE_MATCH_DOT:islower(rt)&&isupper(at)?et[ot]=SCORE_MATCH_CAPITAL:et[ot]=0,rt=at}return et}function compute(tt,nt,et,rt){for(var ot=tt.length,at=nt.length,st=tt.toLowerCase(),ut=nt.toLowerCase(),ct=precompute_bonus(nt),pt=0;pt<ot;pt++){et[pt]=new Array(at),rt[pt]=new Array(at);for(var dt=SCORE_MIN,ft=pt===ot-1?SCORE_GAP_TRAILING:SCORE_GAP_INNER,bt=0;bt<at;bt++)if(st[pt]===ut[bt]){var ht=SCORE_MIN;pt?bt&&(ht=Math.max(rt[pt-1][bt-1]+ct[bt],et[pt-1][bt-1]+SCORE_MATCH_CONSECUTIVE)):ht=bt*SCORE_GAP_LEADING+ct[bt],et[pt][bt]=ht,rt[pt][bt]=dt=Math.max(ht,dt+ft)}else et[pt][bt]=SCORE_MIN,rt[pt][bt]=dt=dt+ft}}function score(tt,nt){var et=tt.length,rt=nt.length;if(!et||!rt)return SCORE_MIN;if(et===rt)return SCORE_MAX;if(rt>1024)return SCORE_MIN;var ot=new Array(et),at=new Array(et);return compute(tt,nt,ot,at),at[et-1][rt-1]}function hasMatch(tt,nt){tt=tt.toLowerCase(),nt=nt.toLowerCase();for(var et=tt.length,rt=0,ot=0;rt<et;rt+=1)if(ot=nt.indexOf(tt[rt],ot)+1,ot===0)return!1;return!0}function baseSortBy$1(tt,nt){var et=tt.length;for(tt.sort(nt);et--;)tt[et]=tt[et].value;return tt}var _baseSortBy=baseSortBy$1,isSymbol=isSymbol_1;function compareAscending$1(tt,nt){if(tt!==nt){var et=tt!==void 0,rt=tt===null,ot=tt===tt,at=isSymbol(tt),st=nt!==void 0,ut=nt===null,ct=nt===nt,pt=isSymbol(nt);if(!ut&&!pt&&!at&&tt>nt||at&&st&&ct&&!ut&&!pt||rt&&st&&ct||!et&&ct||!ot)return 1;if(!rt&&!at&&!pt&&tt<nt||pt&&et&&ot&&!rt&&!at||ut&&et&&ot||!st&&ot||!ct)return-1}return 0}var _compareAscending=compareAscending$1,compareAscending=_compareAscending;function compareMultiple$1(tt,nt,et){for(var rt=-1,ot=tt.criteria,at=nt.criteria,st=ot.length,ut=et.length;++rt<st;){var ct=compareAscending(ot[rt],at[rt]);if(ct){if(rt>=ut)return ct;var pt=et[rt];return ct*(pt=="desc"?-1:1)}}return tt.index-nt.index}var _compareMultiple=compareMultiple$1,arrayMap$1=_arrayMap,baseGet$1=_baseGet,baseIteratee$2=_baseIteratee,baseMap=_baseMap,baseSortBy=_baseSortBy,baseUnary$1=_baseUnary,compareMultiple=_compareMultiple,identity=identity_1,isArray$2=isArray_1;function baseOrderBy$1(tt,nt,et){nt.length?nt=arrayMap$1(nt,function(at){return isArray$2(at)?function(st){return baseGet$1(st,at.length===1?at[0]:at)}:at}):nt=[identity];var rt=-1;nt=arrayMap$1(nt,baseUnary$1(baseIteratee$2));var ot=baseMap(tt,function(at,st,ut){var ct=arrayMap$1(nt,function(pt){return pt(at)});return{criteria:ct,index:++rt,value:at}});return baseSortBy(ot,function(at,st){return compareMultiple(at,st,et)})}var _baseOrderBy=baseOrderBy$1,baseFlatten=_baseFlatten,baseOrderBy=_baseOrderBy,baseRest$1=_baseRest,isIterateeCall=_isIterateeCall,sortBy=baseRest$1(function(tt,nt){if(tt==null)return[];var et=nt.length;return et>1&&isIterateeCall(tt,nt[0],nt[1])?nt=[]:et>2&&isIterateeCall(nt[0],nt[1],nt[2])&&(nt=[nt[0]]),baseOrderBy(tt,baseFlatten(nt,1),[])}),sortBy_1=sortBy;const sortBy$1=getDefaultExportFromCjs$1(sortBy_1);var safeIsNaN=Number.isNaN||function tt(nt){return typeof nt=="number"&&nt!==nt};function isEqual$2(tt,nt){return!!(tt===nt||safeIsNaN(tt)&&safeIsNaN(nt))}function areInputsEqual(tt,nt){if(tt.length!==nt.length)return!1;for(var et=0;et<tt.length;et++)if(!isEqual$2(tt[et],nt[et]))return!1;return!0}function memoizeOne(tt,nt){nt===void 0&&(nt=areInputsEqual);var et,rt=[],ot,at=!1;function st(){for(var ut=[],ct=0;ct<arguments.length;ct++)ut[ct]=arguments[ct];return at&&et===this&&nt(ut,rt)||(ot=tt.apply(this,ut),at=!0,et=this,rt=ut),ot}return st}var hasNativePerformanceNow=typeof performance=="object"&&typeof performance.now=="function",now=hasNativePerformanceNow?function(){return performance.now()}:function(){return Date.now()};function cancelTimeout(tt){cancelAnimationFrame(tt.id)}function requestTimeout(tt,nt){var et=now();function rt(){now()-et>=nt?tt.call(null):ot.id=requestAnimationFrame(rt)}var ot={id:requestAnimationFrame(rt)};return ot}var size=-1;function getScrollbarSize(tt){if(tt===void 0&&(tt=!1),size===-1||tt){var nt=document.createElement("div"),et=nt.style;et.width="50px",et.height="50px",et.overflow="scroll",document.body.appendChild(nt),size=nt.offsetWidth-nt.clientWidth,document.body.removeChild(nt)}return size}var cachedRTLResult=null;function getRTLOffsetType(tt){if(tt===void 0&&(tt=!1),cachedRTLResult===null||tt){var nt=document.createElement("div"),et=nt.style;et.width="50px",et.height="50px",et.overflow="scroll",et.direction="rtl";var rt=document.createElement("div"),ot=rt.style;return ot.width="100px",ot.height="100px",nt.appendChild(rt),document.body.appendChild(nt),nt.scrollLeft>0?cachedRTLResult="positive-descending":(nt.scrollLeft=1,nt.scrollLeft===0?cachedRTLResult="negative":cachedRTLResult="positive-ascending"),document.body.removeChild(nt),cachedRTLResult}return cachedRTLResult}var IS_SCROLLING_DEBOUNCE_INTERVAL$1=150,defaultItemKey$1=function tt(nt,et){return nt};function createListComponent(tt){var nt,et=tt.getItemOffset,rt=tt.getEstimatedTotalSize,ot=tt.getItemSize,at=tt.getOffsetForIndexAndAlignment,st=tt.getStartIndexForOffset,ut=tt.getStopIndexForStartIndex,ct=tt.initInstanceProps,pt=tt.shouldResetStyleCacheOnItemSizeChange,dt=tt.validateProps;return nt=function(ft){_inheritsLoose(bt,ft);function bt(Mt){var mt;return mt=ft.call(this,Mt)||this,mt._instanceProps=ct(mt.props,_assertThisInitialized$e(mt)),mt._outerRef=void 0,mt._resetIsScrollingTimeoutId=null,mt.state={instance:_assertThisInitialized$e(mt),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof mt.props.initialScrollOffset=="number"?mt.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},mt._callOnItemsRendered=void 0,mt._callOnItemsRendered=memoizeOne(function(Ot,zt,yt,vt){return mt.props.onItemsRendered({overscanStartIndex:Ot,overscanStopIndex:zt,visibleStartIndex:yt,visibleStopIndex:vt})}),mt._callOnScroll=void 0,mt._callOnScroll=memoizeOne(function(Ot,zt,yt){return mt.props.onScroll({scrollDirection:Ot,scrollOffset:zt,scrollUpdateWasRequested:yt})}),mt._getItemStyle=void 0,mt._getItemStyle=function(Ot){var zt=mt.props,yt=zt.direction,vt=zt.itemSize,At=zt.layout,St=mt._getItemStyleCache(pt&&vt,pt&&At,pt&&yt),Et;if(St.hasOwnProperty(Ot))Et=St[Ot];else{var Tt=et(mt.props,Ot,mt._instanceProps),Rt=ot(mt.props,Ot,mt._instanceProps),Ct=yt==="horizontal"||At==="horizontal",wt=yt==="rtl",Lt=Ct?Tt:0;St[Ot]=Et={position:"absolute",left:wt?void 0:Lt,right:wt?Lt:void 0,top:Ct?0:Tt,height:Ct?"100%":Rt,width:Ct?Rt:"100%"}}return Et},mt._getItemStyleCache=void 0,mt._getItemStyleCache=memoizeOne(function(Ot,zt,yt){return{}}),mt._onScrollHorizontal=function(Ot){var zt=Ot.currentTarget,yt=zt.clientWidth,vt=zt.scrollLeft,At=zt.scrollWidth;mt.setState(function(St){if(St.scrollOffset===vt)return null;var Et=mt.props.direction,Tt=vt;if(Et==="rtl")switch(getRTLOffsetType()){case"negative":Tt=-vt;break;case"positive-descending":Tt=At-yt-vt;break}return Tt=Math.max(0,Math.min(Tt,At-yt)),{isScrolling:!0,scrollDirection:St.scrollOffset<Tt?"forward":"backward",scrollOffset:Tt,scrollUpdateWasRequested:!1}},mt._resetIsScrollingDebounced)},mt._onScrollVertical=function(Ot){var zt=Ot.currentTarget,yt=zt.clientHeight,vt=zt.scrollHeight,At=zt.scrollTop;mt.setState(function(St){if(St.scrollOffset===At)return null;var Et=Math.max(0,Math.min(At,vt-yt));return{isScrolling:!0,scrollDirection:St.scrollOffset<Et?"forward":"backward",scrollOffset:Et,scrollUpdateWasRequested:!1}},mt._resetIsScrollingDebounced)},mt._outerRefSetter=function(Ot){var zt=mt.props.outerRef;mt._outerRef=Ot,typeof zt=="function"?zt(Ot):zt!=null&&typeof zt=="object"&&zt.hasOwnProperty("current")&&(zt.current=Ot)},mt._resetIsScrollingDebounced=function(){mt._resetIsScrollingTimeoutId!==null&&cancelTimeout(mt._resetIsScrollingTimeoutId),mt._resetIsScrollingTimeoutId=requestTimeout(mt._resetIsScrolling,IS_SCROLLING_DEBOUNCE_INTERVAL$1)},mt._resetIsScrolling=function(){mt._resetIsScrollingTimeoutId=null,mt.setState({isScrolling:!1},function(){mt._getItemStyleCache(-1,null)})},mt}bt.getDerivedStateFromProps=function(mt,Ot){return validateSharedProps$1(mt,Ot),dt(mt),null};var ht=bt.prototype;return ht.scrollTo=function(mt){mt=Math.max(0,mt),this.setState(function(Ot){return Ot.scrollOffset===mt?null:{scrollDirection:Ot.scrollOffset<mt?"forward":"backward",scrollOffset:mt,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},ht.scrollToItem=function(mt,Ot){Ot===void 0&&(Ot="auto");var zt=this.props,yt=zt.itemCount,vt=zt.layout,At=this.state.scrollOffset;mt=Math.max(0,Math.min(mt,yt-1));var St=0;if(this._outerRef){var Et=this._outerRef;vt==="vertical"?St=Et.scrollWidth>Et.clientWidth?getScrollbarSize():0:St=Et.scrollHeight>Et.clientHeight?getScrollbarSize():0}this.scrollTo(at(this.props,mt,Ot,At,this._instanceProps,St))},ht.componentDidMount=function(){var mt=this.props,Ot=mt.direction,zt=mt.initialScrollOffset,yt=mt.layout;if(typeof zt=="number"&&this._outerRef!=null){var vt=this._outerRef;Ot==="horizontal"||yt==="horizontal"?vt.scrollLeft=zt:vt.scrollTop=zt}this._callPropsCallbacks()},ht.componentDidUpdate=function(){var mt=this.props,Ot=mt.direction,zt=mt.layout,yt=this.state,vt=yt.scrollOffset,At=yt.scrollUpdateWasRequested;if(At&&this._outerRef!=null){var St=this._outerRef;if(Ot==="horizontal"||zt==="horizontal")if(Ot==="rtl")switch(getRTLOffsetType()){case"negative":St.scrollLeft=-vt;break;case"positive-ascending":St.scrollLeft=vt;break;default:var Et=St.clientWidth,Tt=St.scrollWidth;St.scrollLeft=Tt-Et-vt;break}else St.scrollLeft=vt;else St.scrollTop=vt}this._callPropsCallbacks()},ht.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&cancelTimeout(this._resetIsScrollingTimeoutId)},ht.render=function(){var mt=this.props,Ot=mt.children,zt=mt.className,yt=mt.direction,vt=mt.height,At=mt.innerRef,St=mt.innerElementType,Et=mt.innerTagName,Tt=mt.itemCount,Rt=mt.itemData,Ct=mt.itemKey,wt=Ct===void 0?defaultItemKey$1:Ct,Lt=mt.layout,Ht=mt.outerElementType,jt=mt.outerTagName,s0=mt.style,Ut=mt.useIsScrolling,Yt=mt.width,O0=this.state.isScrolling,a0=yt==="horizontal"||Lt==="horizontal",b0=a0?this._onScrollHorizontal:this._onScrollVertical,kt=this._getRangeToRender(),o0=kt[0],qt=kt[1],Dt=[];if(Tt>0)for(var Bt=o0;Bt<=qt;Bt++)Dt.push(reactExports.createElement(Ot,{data:Rt,key:wt(Bt,Rt),index:Bt,isScrolling:Ut?O0:void 0,style:this._getItemStyle(Bt)}));var p0=rt(this.props,this._instanceProps);return reactExports.createElement(Ht||jt||"div",{className:zt,onScroll:b0,ref:this._outerRefSetter,style:_extends$Q({position:"relative",height:vt,width:Yt,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:yt},s0)},reactExports.createElement(St||Et||"div",{children:Dt,ref:At,style:{height:a0?"100%":p0,pointerEvents:O0?"none":void 0,width:a0?p0:"100%"}}))},ht._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var mt=this.props.itemCount;if(mt>0){var Ot=this._getRangeToRender(),zt=Ot[0],yt=Ot[1],vt=Ot[2],At=Ot[3];this._callOnItemsRendered(zt,yt,vt,At)}}if(typeof this.props.onScroll=="function"){var St=this.state,Et=St.scrollDirection,Tt=St.scrollOffset,Rt=St.scrollUpdateWasRequested;this._callOnScroll(Et,Tt,Rt)}},ht._getRangeToRender=function(){var mt=this.props,Ot=mt.itemCount,zt=mt.overscanCount,yt=this.state,vt=yt.isScrolling,At=yt.scrollDirection,St=yt.scrollOffset;if(Ot===0)return[0,0,0,0];var Et=st(this.props,St,this._instanceProps),Tt=ut(this.props,Et,St,this._instanceProps),Rt=!vt||At==="backward"?Math.max(1,zt):1,Ct=!vt||At==="forward"?Math.max(1,zt):1;return[Math.max(0,Et-Rt),Math.max(0,Math.min(Ot-1,Tt+Ct)),Et,Tt]},bt}(reactExports.PureComponent),nt.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},nt}var validateSharedProps$1=function tt(nt,et){nt.children,nt.direction,nt.height,nt.layout,nt.innerTagName,nt.outerTagName,nt.width,et.instance},FixedSizeList=createListComponent({getItemOffset:function tt(nt,et){var rt=nt.itemSize;return et*rt},getItemSize:function tt(nt,et){var rt=nt.itemSize;return rt},getEstimatedTotalSize:function tt(nt){var et=nt.itemCount,rt=nt.itemSize;return rt*et},getOffsetForIndexAndAlignment:function tt(nt,et,rt,ot,at,st){var ut=nt.direction,ct=nt.height,pt=nt.itemCount,dt=nt.itemSize,ft=nt.layout,bt=nt.width,ht=ut==="horizontal"||ft==="horizontal",Mt=ht?bt:ct,mt=Math.max(0,pt*dt-Mt),Ot=Math.min(mt,et*dt),zt=Math.max(0,et*dt-Mt+dt+st);switch(rt==="smart"&&(ot>=zt-Mt&&ot<=Ot+Mt?rt="auto":rt="center"),rt){case"start":return Ot;case"end":return zt;case"center":{var yt=Math.round(zt+(Ot-zt)/2);return yt<Math.ceil(Mt/2)?0:yt>mt+Math.floor(Mt/2)?mt:yt}case"auto":default:return ot>=zt&&ot<=Ot?ot:ot<zt?zt:Ot}},getStartIndexForOffset:function tt(nt,et){var rt=nt.itemCount,ot=nt.itemSize;return Math.max(0,Math.min(rt-1,Math.floor(et/ot)))},getStopIndexForStartIndex:function tt(nt,et,rt){var ot=nt.direction,at=nt.height,st=nt.itemCount,ut=nt.itemSize,ct=nt.layout,pt=nt.width,dt=ot==="horizontal"||ct==="horizontal",ft=et*ut,bt=dt?pt:at,ht=Math.ceil((bt+rt-ft)/ut);return Math.max(0,Math.min(st-1,et+ht-1))},initInstanceProps:function tt(nt){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function tt(nt){nt.itemSize}});const ThemedStyledDropdownListItem=newStyled(StyledDropdownListItem,{shouldForwardProp:isPropValid,target:"es5gonv0"})(({theme:tt,$isHighlighted:nt})=>{const et=tt.inSidebar?tt.colors.bgColor:tt.colors.secondaryBg;return{display:"flex",alignItems:"center",paddingTop:tt.spacing.none,paddingBottom:tt.spacing.none,paddingLeft:tt.spacing.lg,paddingRight:tt.spacing.lg,background:nt?et:void 0,[`@media (max-width: ${tt.breakpoints.md})`]:{minHeight:tt.sizes.dropdownItemHeight,height:"auto !important"},"&:hover, &:active, &:focus-visible":{background:et}}});function FixedSizeListItem(tt){const{data:nt,index:et,style:rt}=tt,{item:ot,overrides:at,...st}=nt[et].props;return jsx$1(ThemedStyledDropdownListItem,{style:rt,...st,children:jsx$1(OverflowTooltip,{content:ot.label,placement:Placement.AUTO,children:ot.label})},ot.value)}const VirtualDropdown=React$1.forwardRef((tt,nt)=>{const et=useTheme(),rt=React$1.Children.toArray(tt.children);if(!rt[0]||!rt[0].props.item){const at=rt[0]?rt[0].props:{};return jsx$1(StyledList,{$style:{height:et.sizes.emptyDropdownHeight,paddingBottom:et.spacing.none,paddingTop:et.spacing.none,paddingLeft:et.spacing.none,paddingRight:et.spacing.none,display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"none"},ref:nt,"data-testid":"stSelectboxVirtualDropdownEmpty",children:jsx$1(StyledEmptyState,{$style:{paddingBottom:et.spacing.none,paddingTop:et.spacing.none,paddingLeft:et.spacing.none,paddingRight:et.spacing.none,color:et.colors.fadedText60},...at})})}const ot=Math.min(convertRemToPx(et.sizes.maxDropdownHeight),rt.length*convertRemToPx(et.sizes.dropdownItemHeight));return jsx$1(StyledList,{ref:nt,$style:{paddingTop:0,paddingBottom:0,boxShadow:"none"},"data-testid":"stSelectboxVirtualDropdown",children:jsx$1(FixedSizeList,{width:"100%",height:ot,itemCount:rt.length,itemData:rt,itemKey:(at,st)=>st[at].props.item.value,itemSize:convertRemToPx(et.sizes.dropdownItemHeight),children:FixedSizeListItem})})});VirtualDropdown.displayName="VirtualDropdown";const NO_OPTIONS_MSG="No options to select.";function fuzzyFilterSelectOptions(tt,nt){if(!nt)return tt;const et=tt.filter(rt=>hasMatch(nt,rt.label));return sortBy$1(et,rt=>score(nt,rt.label)).reverse()}const Selectbox=({disabled:tt,width:nt,value:et,onChange:rt,options:ot,label:at,labelVisibility:st,help:ut,placeholder:ct,clearable:pt})=>{const dt=useTheme(),[ft,bt]=reactExports.useState(et);reactExports.useEffect(()=>{bt(et)},[et]);const ht=reactExports.useCallback(At=>{if(At.value.length===0){bt(null),rt(null);return}const[St]=At.value,Et=parseInt(St.value,10);bt(Et),rt(Et)},[rt]),Mt=reactExports.useCallback((At,St)=>fuzzyFilterSelectOptions(At,St),[]);let mt=tt,Ot=ot,zt=[];isNullOrUndefined$1(ft)||(zt=[{label:Ot.length>0?Ot[ft]:NO_OPTIONS_MSG,value:ft.toString()}]),Ot.length===0&&(Ot=[NO_OPTIONS_MSG],mt=!0);const yt=Ot.map((At,St)=>({label:At,value:St.toString()})),vt=Ot.length>10;return jsxs("div",{className:"stSelectbox","data-testid":"stSelectbox",style:{width:nt},children:[jsx$1(WidgetLabel,{label:at,labelVisibility:st,disabled:mt,children:ut&&jsx$1(StyledWidgetLabelHelp,{children:jsx$1(TooltipIcon,{content:ut,placement:Placement.TOP_RIGHT})})}),jsx$1(Select,{disabled:mt,labelKey:"label","aria-label":at||"",onChange:ht,options:yt,filterOptions:Mt,clearable:pt||!1,escapeClearsValue:pt||!1,value:zt,valueKey:"value",placeholder:ct,overrides:{Root:{style:()=>({lineHeight:dt.lineHeights.inputWidget})},Dropdown:{component:VirtualDropdown},ClearIcon:{props:{overrides:{Svg:{style:{color:dt.colors.darkGray,padding:dt.spacing.threeXS,height:dt.sizes.clearIconSize,width:dt.sizes.clearIconSize,":hover":{fill:dt.colors.bodyText}}}}}},ControlContainer:{style:()=>({height:dt.sizes.minElementHeight,borderLeftWidth:dt.sizes.borderWidth,borderRightWidth:dt.sizes.borderWidth,borderTopWidth:dt.sizes.borderWidth,borderBottomWidth:dt.sizes.borderWidth})},IconsContainer:{style:()=>({paddingRight:dt.spacing.sm})},ValueContainer:{style:()=>({paddingRight:dt.spacing.sm,paddingLeft:dt.spacing.sm,paddingBottom:dt.spacing.sm,paddingTop:dt.spacing.sm})},Input:{props:{readOnly:isMobile_1&&!vt?"readonly":null},style:()=>({lineHeight:dt.lineHeights.inputWidget})},Popover:{props:{overrides:{Body:{style:()=>({marginTop:dt.spacing.px})}}}},SelectArrow:{component:ChevronDown$1,props:{overrides:{Svg:{style:()=>({width:dt.iconSizes.xl,height:dt.iconSizes.xl})}}}}}})]})},UISelectbox=reactExports.memo(Selectbox);class CircularBuffer{constructor(nt){this._buffer=new Array(nt),this._size=nt,this._index=0,this._wrappedCount=0}push(nt){this._buffer[this._index]=nt,this._index=(this._index+1)%this._size,this._index===0&&(this._wrappedCount=this._wrappedCount+1)}get buffer(){return this._buffer}get totalWrittenEntries(){return this._wrappedCount*this._size+this._index}}const handleRender=(tt,nt,et,rt,ot,at)=>{window.__streamlit_profiles__=window.__streamlit_profiles__||{},window.__streamlit_profiles__[tt]=window.__streamlit_profiles__[tt]||new CircularBuffer(1e3),window.__streamlit_profiles__[tt].push({phase:nt,actualDuration:et,baseDuration:rt,startTime:ot,commitTime:at})},Profiler=({id:tt,children:nt})=>jsx$1(reactExports.Profiler,{id:tt,onRender:handleRender,children:nt}),useWindowDimensions=()=>{const tt=useTheme(),[nt,et]=reactExports.useState({fullWidth:0,fullHeight:0}),rt=reactExports.useCallback(()=>{const at=convertRemToPx(tt.spacing.md),st=convertRemToPx(tt.sizes.fullScreenHeaderHeight);return{fullWidth:window.innerWidth-at*2,fullHeight:window.innerHeight-(at+st)}},[tt.sizes.fullScreenHeaderHeight,tt.spacing.md]),ot=reactExports.useCallback(()=>{et(rt())},[rt]);return reactExports.useEffect(()=>(window.addEventListener("resize",ot),()=>{window.removeEventListener("resize",ot)}),[ot]),reactExports.useEffect(()=>{ot()},[ot]),nt},WindowDimensionsContext=reactExports.createContext(null);WindowDimensionsContext.displayName="WindowDimensionsContext";const WindowDimensionsProvider=({children:tt})=>{const nt=useWindowDimensions();if(reactExports.useContext(WindowDimensionsContext))throw new Error("WindowDimensionsProvider should only be used once per app. If you need to read window dimensions, utilize `useRequiredContext(WindowDimensionsContext)` instead.");return jsx$1(WindowDimensionsContext.Provider,{value:nt,children:tt})};var baseIsEqual=_baseIsEqual;function isEqual(tt,nt){return baseIsEqual(tt,nt)}var isEqual_1=isEqual;const isEqual$1=getDefaultExportFromCjs$1(isEqual_1);let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let tt=0;tt<256;++tt)byteToHex.push((tt+256).toString(16).slice(1));function unsafeStringify(tt,nt=0){return byteToHex[tt[nt+0]]+byteToHex[tt[nt+1]]+byteToHex[tt[nt+2]]+byteToHex[tt[nt+3]]+"-"+byteToHex[tt[nt+4]]+byteToHex[tt[nt+5]]+"-"+byteToHex[tt[nt+6]]+byteToHex[tt[nt+7]]+"-"+byteToHex[tt[nt+8]]+byteToHex[tt[nt+9]]+"-"+byteToHex[tt[nt+10]]+byteToHex[tt[nt+11]]+byteToHex[tt[nt+12]]+byteToHex[tt[nt+13]]+byteToHex[tt[nt+14]]+byteToHex[tt[nt+15]]}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(tt,nt,et){if(native.randomUUID&&!nt&&!tt)return native.randomUUID();tt=tt||{};const rt=tt.random||(tt.rng||rng)();return rt[6]=rt[6]&15|64,rt[8]=rt[8]&63|128,unsafeStringify(rt)}class Resolver{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((nt,et)=>{this.resolve=nt,this.reject=et})}}class FileUploadClient{constructor(nt){this.formsWithPendingRequests=new Map,this.pendingFileURLsRequests=new Map,this.sessionInfo=nt.sessionInfo,this.endpoints=nt.endpoints,this.pendingFormUploadsChanged=nt.formsWithPendingRequestsChanged,this.requestFileURLs=nt.requestFileURLs}async uploadFile(nt,et,rt,ot,at){return this.offsetPendingRequestCount(nt.formId,1),this.endpoints.uploadFileUploaderFile(et,rt,this.sessionInfo.current.sessionId,ot,at).finally(()=>this.offsetPendingRequestCount(nt.formId,-1))}deleteFile(nt){return this.endpoints.deleteFileAtURL?this.endpoints.deleteFileAtURL(nt,this.sessionInfo.current.sessionId):Promise.resolve()}fetchFileURLs(nt){if(!this.requestFileURLs)return Promise.resolve([]);const et=new Resolver,rt=v4();return this.pendingFileURLsRequests.set(rt,et),this.requestFileURLs(rt,nt),et.promise}onFileURLsResponse(nt){const et=nt.responseId,rt=this.pendingFileURLsRequests.get(et);rt&&(nt.errorMsg?rt.reject(nt.errorMsg):rt.resolve(nt.fileUrls||[]),this.pendingFileURLsRequests.delete(et))}getFormIdSet(){return new Set(this.formsWithPendingRequests.keys())}offsetPendingRequestCount(nt,et){if(et===0||!isValidFormId(nt))return;const rt=this.formsWithPendingRequests.get(nt)??0,ot=rt+et;if(ot<0)throw new Error(`Can't offset pendingRequestCount below 0 (formId=${nt}, curCount=${rt}, offset=${et})`);const at=this.getFormIdSet();ot===0?this.formsWithPendingRequests.delete(nt):this.formsWithPendingRequests.set(nt,ot);const st=this.getFormIdSet();isEqual$1(st,at)||this.pendingFormUploadsChanged(st)}}class CacheEntry{constructor(nt,et){this.scriptRunCount=0,this.encodedMsg=nt,this.scriptRunCount=et}getAge(nt){return nt-this.scriptRunCount}}class ForwardMsgCache{constructor(nt){this.messages=new Map,this.scriptRunCount=0,this.endpoints=nt}incrementRunCount(nt){this.scriptRunCount+=1,this.messages.forEach((et,rt)=>{et.getAge(this.scriptRunCount)>nt&&this.messages.delete(rt)})}async processMessagePayload(nt,et){if(this.maybeCacheMessage(nt,et),nt.type!=="refHash")return nt;let rt=this.getCachedMessage(nt.refHash,!0);if(notNullOrUndefined(rt))logMessage(`Cached ForwardMsg HIT [hash=${nt.refHash}]`);else{logMessage(`Cached ForwardMsg MISS [hash=${nt.refHash}]`);const ot=await this.endpoints.fetchCachedForwardMsg(nt.refHash);try{rt=ForwardMsg.decode(ot)}catch(at){throw new Error(`Failed to decode ForwardMsg (hash=${nt.refHash}): ${ensureError(at).message}`)}this.maybeCacheMessage(rt,ot)}if(!nt.metadata)throw new Error("ForwardMsg has no metadata");return rt.metadata=ForwardMsg.decode(et).metadata,rt}maybeCacheMessage(nt,et){nt.type!=="refHash"&&(!nt.metadata||!nt.metadata.cacheable||this.getCachedMessage(nt.hash,!0)===void 0&&(logMessage(`Caching ForwardMsg [hash=${nt.hash}]`),this.messages.set(nt.hash,new CacheEntry(et,this.scriptRunCount))))}getCachedMessage(nt,et){const rt=this.messages.get(nt);if(!isNullOrUndefined$1(rt))return et&&(rt.scriptRunCount=this.scriptRunCount),ForwardMsg.decode(rt.encodedMsg)}}var R=class{constructor(tt,nt,et,rt,ot,at){In(this,"type",3);In(this,"name","");In(this,"prefix","");In(this,"value","");In(this,"suffix","");In(this,"modifier",3);this.type=tt,this.name=nt,this.prefix=et,this.value=rt,this.suffix=ot,this.modifier=at}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},be=/[$_\p{ID_Start}]/u,Pe=/[$_\u200C\u200D\p{ID_Continue}]/u,M=".*";function Re(tt,nt){return/^[\x00-\x7F]*$/.test(tt)}function v(tt,nt=!1){let et=[],rt=0;for(;rt<tt.length;){let ot=tt[rt],at=function(st){if(!nt)throw new TypeError(st);et.push({type:"INVALID_CHAR",index:rt,value:tt[rt++]})};if(ot==="*"){et.push({type:"ASTERISK",index:rt,value:tt[rt++]});continue}if(ot==="+"||ot==="?"){et.push({type:"OTHER_MODIFIER",index:rt,value:tt[rt++]});continue}if(ot==="\\"){et.push({type:"ESCAPED_CHAR",index:rt++,value:tt[rt++]});continue}if(ot==="{"){et.push({type:"OPEN",index:rt,value:tt[rt++]});continue}if(ot==="}"){et.push({type:"CLOSE",index:rt,value:tt[rt++]});continue}if(ot===":"){let st="",ut=rt+1;for(;ut<tt.length;){let ct=tt.substr(ut,1);if(ut===rt+1&&be.test(ct)||ut!==rt+1&&Pe.test(ct)){st+=tt[ut++];continue}break}if(!st){at(`Missing parameter name at ${rt}`);continue}et.push({type:"NAME",index:rt,value:st}),rt=ut;continue}if(ot==="("){let st=1,ut="",ct=rt+1,pt=!1;if(tt[ct]==="?"){at(`Pattern cannot start with "?" at ${ct}`);continue}for(;ct<tt.length;){if(!Re(tt[ct])){at(`Invalid character '${tt[ct]}' at ${ct}.`),pt=!0;break}if(tt[ct]==="\\"){ut+=tt[ct++]+tt[ct++];continue}if(tt[ct]===")"){if(st--,st===0){ct++;break}}else if(tt[ct]==="("&&(st++,tt[ct+1]!=="?")){at(`Capturing groups are not allowed at ${ct}`),pt=!0;break}ut+=tt[ct++]}if(pt)continue;if(st){at(`Unbalanced pattern at ${rt}`);continue}if(!ut){at(`Missing pattern at ${rt}`);continue}et.push({type:"REGEX",index:rt,value:ut}),rt=ct;continue}et.push({type:"CHAR",index:rt,value:tt[rt++]})}return et.push({type:"END",index:rt,value:""}),et}function D(tt,nt={}){let et=v(tt);nt.delimiter??(nt.delimiter="/#?"),nt.prefixes??(nt.prefixes="./");let rt=`[^${S(nt.delimiter)}]+?`,ot=[],at=0,st=0,ut=new Set,ct=yt=>{if(st<et.length&&et[st].type===yt)return et[st++].value},pt=()=>ct("OTHER_MODIFIER")??ct("ASTERISK"),dt=yt=>{let vt=ct(yt);if(vt!==void 0)return vt;let{type:At,index:St}=et[st];throw new TypeError(`Unexpected ${At} at ${St}, expected ${yt}`)},ft=()=>{let yt="",vt;for(;vt=ct("CHAR")??ct("ESCAPED_CHAR");)yt+=vt;return yt},bt=yt=>yt,ht=nt.encodePart||bt,Mt="",mt=yt=>{Mt+=yt},Ot=()=>{Mt.length&&(ot.push(new R(3,"","",ht(Mt),"",3)),Mt="")},zt=(yt,vt,At,St,Et)=>{let Tt=3;switch(Et){case"?":Tt=1;break;case"*":Tt=0;break;case"+":Tt=2;break}if(!vt&&!At&&Tt===3){mt(yt);return}if(Ot(),!vt&&!At){if(!yt)return;ot.push(new R(3,"","",ht(yt),"",Tt));return}let Rt;At?At==="*"?Rt=M:Rt=At:Rt=rt;let Ct=2;Rt===rt?(Ct=1,Rt=""):Rt===M&&(Ct=0,Rt="");let wt;if(vt?wt=vt:At&&(wt=at++),ut.has(wt))throw new TypeError(`Duplicate name '${wt}'.`);ut.add(wt),ot.push(new R(Ct,wt,ht(yt),Rt,ht(St),Tt))};for(;st<et.length;){let yt=ct("CHAR"),vt=ct("NAME"),At=ct("REGEX");if(!vt&&!At&&(At=ct("ASTERISK")),vt||At){let Et=yt??"";nt.prefixes.indexOf(Et)===-1&&(mt(Et),Et=""),Ot();let Tt=pt();zt(Et,vt,At,"",Tt);continue}let St=yt??ct("ESCAPED_CHAR");if(St){mt(St);continue}if(ct("OPEN")){let Et=ft(),Tt=ct("NAME"),Rt=ct("REGEX");!Tt&&!Rt&&(Rt=ct("ASTERISK"));let Ct=ft();dt("CLOSE");let wt=pt();zt(Et,Tt,Rt,Ct,wt);continue}Ot(),dt("END")}return ot}function S(tt){return tt.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function X(tt){return tt&&tt.ignoreCase?"ui":"u"}function Z(tt,nt,et){return F(D(tt,et),nt,et)}function k(tt){switch(tt){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}function F(tt,nt,et={}){et.delimiter??(et.delimiter="/#?"),et.prefixes??(et.prefixes="./"),et.sensitive??(et.sensitive=!1),et.strict??(et.strict=!1),et.end??(et.end=!0),et.start??(et.start=!0),et.endsWith="";let rt=et.start?"^":"";for(let ut of tt){if(ut.type===3){ut.modifier===3?rt+=S(ut.value):rt+=`(?:${S(ut.value)})${k(ut.modifier)}`;continue}nt&&nt.push(ut.name);let ct=`[^${S(et.delimiter)}]+?`,pt=ut.value;if(ut.type===1?pt=ct:ut.type===0&&(pt=M),!ut.prefix.length&&!ut.suffix.length){ut.modifier===3||ut.modifier===1?rt+=`(${pt})${k(ut.modifier)}`:rt+=`((?:${pt})${k(ut.modifier)})`;continue}if(ut.modifier===3||ut.modifier===1){rt+=`(?:${S(ut.prefix)}(${pt})${S(ut.suffix)})`,rt+=k(ut.modifier);continue}rt+=`(?:${S(ut.prefix)}`,rt+=`((?:${pt})(?:`,rt+=S(ut.suffix),rt+=S(ut.prefix),rt+=`(?:${pt}))*)${S(ut.suffix)})`,ut.modifier===0&&(rt+="?")}let ot=`[${S(et.endsWith)}]|$`,at=`[${S(et.delimiter)}]`;if(et.end)return et.strict||(rt+=`${at}?`),et.endsWith.length?rt+=`(?=${ot})`:rt+="$",new RegExp(rt,X(et));et.strict||(rt+=`(?:${at}(?=${ot}))?`);let st=!1;if(tt.length){let ut=tt[tt.length-1];ut.type===3&&ut.modifier===3&&(st=et.delimiter.indexOf(ut)>-1)}return st||(rt+=`(?=${at}|${ot})`),new RegExp(rt,X(et))}var x={delimiter:"",prefixes:"",sensitive:!0,strict:!0},B={delimiter:".",prefixes:"",sensitive:!0,strict:!0},q={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function J(tt,nt){return tt.length?tt[0]==="/"?!0:!nt||tt.length<2?!1:(tt[0]=="\\"||tt[0]=="{")&&tt[1]=="/":!1}function Q(tt,nt){return tt.startsWith(nt)?tt.substring(nt.length,tt.length):tt}function Ee(tt,nt){return tt.endsWith(nt)?tt.substr(0,tt.length-nt.length):tt}function W(tt){return!tt||tt.length<2?!1:tt[0]==="["||(tt[0]==="\\"||tt[0]==="{")&&tt[1]==="["}var ee=["ftp","file","http","https","ws","wss"];function N(tt){if(!tt)return!0;for(let nt of ee)if(tt.test(nt))return!0;return!1}function te(tt,nt){if(tt=Q(tt,"#"),nt||tt==="")return tt;let et=new URL("https://example.com");return et.hash=tt,et.hash?et.hash.substring(1,et.hash.length):""}function re(tt,nt){if(tt=Q(tt,"?"),nt||tt==="")return tt;let et=new URL("https://example.com");return et.search=tt,et.search?et.search.substring(1,et.search.length):""}function ne(tt,nt){return nt||tt===""?tt:W(tt)?j(tt):z(tt)}function se(tt,nt){if(nt||tt==="")return tt;let et=new URL("https://example.com");return et.password=tt,et.password}function ie(tt,nt){if(nt||tt==="")return tt;let et=new URL("https://example.com");return et.username=tt,et.username}function ae(tt,nt,et){if(et||tt==="")return tt;if(nt&&!ee.includes(nt))return new URL(`${nt}:${tt}`).pathname;let rt=tt[0]=="/";return tt=new URL(rt?tt:"/-"+tt,"https://example.com").pathname,rt||(tt=tt.substring(2,tt.length)),tt}function oe(tt,nt,et){return _(nt)===tt&&(tt=""),et||tt===""?tt:K(tt)}function ce(tt,nt){return tt=Ee(tt,":"),nt||tt===""?tt:y(tt)}function _(tt){switch(tt){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function y(tt){if(tt==="")return tt;if(/^[-+.A-Za-z0-9]*$/.test(tt))return tt.toLowerCase();throw new TypeError(`Invalid protocol '${tt}'.`)}function le(tt){if(tt==="")return tt;let nt=new URL("https://example.com");return nt.username=tt,nt.username}function fe(tt){if(tt==="")return tt;let nt=new URL("https://example.com");return nt.password=tt,nt.password}function z(tt){if(tt==="")return tt;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(tt))throw new TypeError(`Invalid hostname '${tt}'`);let nt=new URL("https://example.com");return nt.hostname=tt,nt.hostname}function j(tt){if(tt==="")return tt;if(/[^0-9a-fA-F[\]:]/g.test(tt))throw new TypeError(`Invalid IPv6 hostname '${tt}'`);return tt.toLowerCase()}function K(tt){if(tt===""||/^[0-9]*$/.test(tt)&&parseInt(tt)<=65535)return tt;throw new TypeError(`Invalid port '${tt}'.`)}function he(tt){if(tt==="")return tt;let nt=new URL("https://example.com");return nt.pathname=tt[0]!=="/"?"/-"+tt:tt,tt[0]!=="/"?nt.pathname.substring(2,nt.pathname.length):nt.pathname}function ue(tt){return tt===""?tt:new URL(`data:${tt}`).pathname}function de(tt){if(tt==="")return tt;let nt=new URL("https://example.com");return nt.search=tt,nt.search.substring(1,nt.search.length)}function pe(tt){if(tt==="")return tt;let nt=new URL("https://example.com");return nt.hash=tt,nt.hash.substring(1,nt.hash.length)}var Qn,hn,ln,V0,Ln,e1,yn,t1,n1,r1,C0,Y0,X1,k1,m1,v1,An,I1,G1,E1,K1,Y1,S1,Zn,Fn,J1,Z1,Q1,er,wn,tr,W1,H=(W1=class{constructor(tt){Q0(this,C0);Q0(this,Qn);Q0(this,hn,[]);Q0(this,ln,{});Q0(this,V0,0);Q0(this,Ln,1);Q0(this,e1,0);Q0(this,yn,0);Q0(this,t1,0);Q0(this,n1,0);Q0(this,r1,!1);K0(this,Qn,tt)}get result(){return _0(this,ln)}parse(){for(K0(this,hn,v(_0(this,Qn),!0));_0(this,V0)<_0(this,hn).length;K0(this,V0,_0(this,V0)+_0(this,Ln))){if(K0(this,Ln,1),_0(this,hn)[_0(this,V0)].type==="END"){if(_0(this,yn)===0){$0(this,C0,k1).call(this),$0(this,C0,Fn).call(this)?$0(this,C0,Y0).call(this,9,1):$0(this,C0,Zn).call(this)?$0(this,C0,Y0).call(this,8,1):$0(this,C0,Y0).call(this,7,0);continue}else if(_0(this,yn)===2){$0(this,C0,m1).call(this,5);continue}$0(this,C0,Y0).call(this,10,0);break}if(_0(this,t1)>0)if($0(this,C0,Z1).call(this))K0(this,t1,_0(this,t1)-1);else continue;if($0(this,C0,J1).call(this)){K0(this,t1,_0(this,t1)+1);continue}switch(_0(this,yn)){case 0:$0(this,C0,I1).call(this)&&$0(this,C0,m1).call(this,1);break;case 1:if($0(this,C0,I1).call(this)){$0(this,C0,tr).call(this);let tt=7,nt=1;$0(this,C0,G1).call(this)?(tt=2,nt=3):_0(this,r1)&&(tt=2),$0(this,C0,Y0).call(this,tt,nt)}break;case 2:$0(this,C0,E1).call(this)?$0(this,C0,m1).call(this,3):($0(this,C0,S1).call(this)||$0(this,C0,Zn).call(this)||$0(this,C0,Fn).call(this))&&$0(this,C0,m1).call(this,5);break;case 3:$0(this,C0,K1).call(this)?$0(this,C0,Y0).call(this,4,1):$0(this,C0,E1).call(this)&&$0(this,C0,Y0).call(this,5,1);break;case 4:$0(this,C0,E1).call(this)&&$0(this,C0,Y0).call(this,5,1);break;case 5:$0(this,C0,Q1).call(this)?K0(this,n1,_0(this,n1)+1):$0(this,C0,er).call(this)&&K0(this,n1,_0(this,n1)-1),$0(this,C0,Y1).call(this)&&!_0(this,n1)?$0(this,C0,Y0).call(this,6,1):$0(this,C0,S1).call(this)?$0(this,C0,Y0).call(this,7,0):$0(this,C0,Zn).call(this)?$0(this,C0,Y0).call(this,8,1):$0(this,C0,Fn).call(this)&&$0(this,C0,Y0).call(this,9,1);break;case 6:$0(this,C0,S1).call(this)?$0(this,C0,Y0).call(this,7,0):$0(this,C0,Zn).call(this)?$0(this,C0,Y0).call(this,8,1):$0(this,C0,Fn).call(this)&&$0(this,C0,Y0).call(this,9,1);break;case 7:$0(this,C0,Zn).call(this)?$0(this,C0,Y0).call(this,8,1):$0(this,C0,Fn).call(this)&&$0(this,C0,Y0).call(this,9,1);break;case 8:$0(this,C0,Fn).call(this)&&$0(this,C0,Y0).call(this,9,1);break}}_0(this,ln).hostname!==void 0&&_0(this,ln).port===void 0&&(_0(this,ln).port="")}},Qn=new WeakMap,hn=new WeakMap,ln=new WeakMap,V0=new WeakMap,Ln=new WeakMap,e1=new WeakMap,yn=new WeakMap,t1=new WeakMap,n1=new WeakMap,r1=new WeakMap,C0=new WeakSet,Y0=function(tt,nt){var et,rt,ot;switch(_0(this,yn)){case 0:break;case 1:_0(this,ln).protocol=$0(this,C0,wn).call(this);break;case 2:break;case 3:_0(this,ln).username=$0(this,C0,wn).call(this);break;case 4:_0(this,ln).password=$0(this,C0,wn).call(this);break;case 5:_0(this,ln).hostname=$0(this,C0,wn).call(this);break;case 6:_0(this,ln).port=$0(this,C0,wn).call(this);break;case 7:_0(this,ln).pathname=$0(this,C0,wn).call(this);break;case 8:_0(this,ln).search=$0(this,C0,wn).call(this);break;case 9:_0(this,ln).hash=$0(this,C0,wn).call(this);break}_0(this,yn)!==0&&tt!==10&&([1,2,3,4].includes(_0(this,yn))&&[6,7,8,9].includes(tt)&&((et=_0(this,ln)).hostname??(et.hostname="")),[1,2,3,4,5,6].includes(_0(this,yn))&&[8,9].includes(tt)&&((rt=_0(this,ln)).pathname??(rt.pathname=_0(this,r1)?"/":"")),[1,2,3,4,5,6,7].includes(_0(this,yn))&&tt===9&&((ot=_0(this,ln)).search??(ot.search=""))),$0(this,C0,X1).call(this,tt,nt)},X1=function(tt,nt){K0(this,yn,tt),K0(this,e1,_0(this,V0)+nt),K0(this,V0,_0(this,V0)+nt),K0(this,Ln,0)},k1=function(){K0(this,V0,_0(this,e1)),K0(this,Ln,0)},m1=function(tt){$0(this,C0,k1).call(this),K0(this,yn,tt)},v1=function(tt){return tt<0&&(tt=_0(this,hn).length-tt),tt<_0(this,hn).length?_0(this,hn)[tt]:_0(this,hn)[_0(this,hn).length-1]},An=function(tt,nt){let et=$0(this,C0,v1).call(this,tt);return et.value===nt&&(et.type==="CHAR"||et.type==="ESCAPED_CHAR"||et.type==="INVALID_CHAR")},I1=function(){return $0(this,C0,An).call(this,_0(this,V0),":")},G1=function(){return $0(this,C0,An).call(this,_0(this,V0)+1,"/")&&$0(this,C0,An).call(this,_0(this,V0)+2,"/")},E1=function(){return $0(this,C0,An).call(this,_0(this,V0),"@")},K1=function(){return $0(this,C0,An).call(this,_0(this,V0),":")},Y1=function(){return $0(this,C0,An).call(this,_0(this,V0),":")},S1=function(){return $0(this,C0,An).call(this,_0(this,V0),"/")},Zn=function(){if($0(this,C0,An).call(this,_0(this,V0),"?"))return!0;if(_0(this,hn)[_0(this,V0)].value!=="?")return!1;let tt=$0(this,C0,v1).call(this,_0(this,V0)-1);return tt.type!=="NAME"&&tt.type!=="REGEX"&&tt.type!=="CLOSE"&&tt.type!=="ASTERISK"},Fn=function(){return $0(this,C0,An).call(this,_0(this,V0),"#")},J1=function(){return _0(this,hn)[_0(this,V0)].type=="OPEN"},Z1=function(){return _0(this,hn)[_0(this,V0)].type=="CLOSE"},Q1=function(){return $0(this,C0,An).call(this,_0(this,V0),"[")},er=function(){return $0(this,C0,An).call(this,_0(this,V0),"]")},wn=function(){let tt=_0(this,hn)[_0(this,V0)],nt=$0(this,C0,v1).call(this,_0(this,e1)).index;return _0(this,Qn).substring(nt,tt.index)},tr=function(){let tt={};Object.assign(tt,x),tt.encodePart=y;let nt=Z($0(this,C0,wn).call(this),void 0,tt);K0(this,r1,N(nt))},W1),G=["protocol","username","password","hostname","port","pathname","search","hash"],E="*";function ge(tt,nt){if(typeof tt!="string")throw new TypeError("parameter 1 is not of type 'string'.");let et=new URL(tt,nt);return{protocol:et.protocol.substring(0,et.protocol.length-1),username:et.username,password:et.password,hostname:et.hostname,port:et.port,pathname:et.pathname,search:et.search!==""?et.search.substring(1,et.search.length):void 0,hash:et.hash!==""?et.hash.substring(1,et.hash.length):void 0}}function b(tt,nt){return nt?C(tt):tt}function w(tt,nt,et){let rt;if(typeof nt.baseURL=="string")try{rt=new URL(nt.baseURL),nt.protocol===void 0&&(tt.protocol=b(rt.protocol.substring(0,rt.protocol.length-1),et)),!et&&nt.protocol===void 0&&nt.hostname===void 0&&nt.port===void 0&&nt.username===void 0&&(tt.username=b(rt.username,et)),!et&&nt.protocol===void 0&&nt.hostname===void 0&&nt.port===void 0&&nt.username===void 0&&nt.password===void 0&&(tt.password=b(rt.password,et)),nt.protocol===void 0&&nt.hostname===void 0&&(tt.hostname=b(rt.hostname,et)),nt.protocol===void 0&&nt.hostname===void 0&&nt.port===void 0&&(tt.port=b(rt.port,et)),nt.protocol===void 0&&nt.hostname===void 0&&nt.port===void 0&&nt.pathname===void 0&&(tt.pathname=b(rt.pathname,et)),nt.protocol===void 0&&nt.hostname===void 0&&nt.port===void 0&&nt.pathname===void 0&&nt.search===void 0&&(tt.search=b(rt.search.substring(1,rt.search.length),et)),nt.protocol===void 0&&nt.hostname===void 0&&nt.port===void 0&&nt.pathname===void 0&&nt.search===void 0&&nt.hash===void 0&&(tt.hash=b(rt.hash.substring(1,rt.hash.length),et))}catch{throw new TypeError(`invalid baseURL '${nt.baseURL}'.`)}if(typeof nt.protocol=="string"&&(tt.protocol=ce(nt.protocol,et)),typeof nt.username=="string"&&(tt.username=ie(nt.username,et)),typeof nt.password=="string"&&(tt.password=se(nt.password,et)),typeof nt.hostname=="string"&&(tt.hostname=ne(nt.hostname,et)),typeof nt.port=="string"&&(tt.port=oe(nt.port,tt.protocol,et)),typeof nt.pathname=="string"){if(tt.pathname=nt.pathname,rt&&!J(tt.pathname,et)){let ot=rt.pathname.lastIndexOf("/");ot>=0&&(tt.pathname=b(rt.pathname.substring(0,ot+1),et)+tt.pathname)}tt.pathname=ae(tt.pathname,tt.protocol,et)}return typeof nt.search=="string"&&(tt.search=re(nt.search,et)),typeof nt.hash=="string"&&(tt.hash=te(nt.hash,et)),tt}function C(tt){return tt.replace(/([+*?:{}()\\])/g,"\\$1")}function Oe(tt){return tt.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function ke(tt,nt){nt.delimiter??(nt.delimiter="/#?"),nt.prefixes??(nt.prefixes="./"),nt.sensitive??(nt.sensitive=!1),nt.strict??(nt.strict=!1),nt.end??(nt.end=!0),nt.start??(nt.start=!0),nt.endsWith="";let et=".*",rt=`[^${Oe(nt.delimiter)}]+?`,ot=/[$_\u200C\u200D\p{ID_Continue}]/u,at="";for(let st=0;st<tt.length;++st){let ut=tt[st];if(ut.type===3){if(ut.modifier===3){at+=C(ut.value);continue}at+=`{${C(ut.value)}}${k(ut.modifier)}`;continue}let ct=ut.hasCustomName(),pt=!!ut.suffix.length||!!ut.prefix.length&&(ut.prefix.length!==1||!nt.prefixes.includes(ut.prefix)),dt=st>0?tt[st-1]:null,ft=st<tt.length-1?tt[st+1]:null;if(!pt&&ct&&ut.type===1&&ut.modifier===3&&ft&&!ft.prefix.length&&!ft.suffix.length)if(ft.type===3){let bt=ft.value.length>0?ft.value[0]:"";pt=ot.test(bt)}else pt=!ft.hasCustomName();if(!pt&&!ut.prefix.length&&dt&&dt.type===3){let bt=dt.value[dt.value.length-1];pt=nt.prefixes.includes(bt)}pt&&(at+="{"),at+=C(ut.prefix),ct&&(at+=`:${ut.name}`),ut.type===2?at+=`(${ut.value})`:ut.type===1?ct||(at+=`(${rt})`):ut.type===0&&(!ct&&(!dt||dt.type===3||dt.modifier!==3||pt||ut.prefix!=="")?at+="*":at+=`(${et})`),ut.type===1&&ct&&ut.suffix.length&&ot.test(ut.suffix[0])&&(at+="\\"),at+=C(ut.suffix),pt&&(at+="}"),ut.modifier!==3&&(at+=k(ut.modifier))}return at}var Dn,Bn,i1,sn,En,o1,P1,me=(P1=class{constructor(tt={},nt,et){Q0(this,Dn);Q0(this,Bn,{});Q0(this,i1,{});Q0(this,sn,{});Q0(this,En,{});Q0(this,o1,!1);try{let rt;if(typeof nt=="string"?rt=nt:et=nt,typeof tt=="string"){let ut=new H(tt);if(ut.parse(),tt=ut.result,rt===void 0&&typeof tt.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");tt.baseURL=rt}else{if(!tt||typeof tt!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(rt)throw new TypeError("parameter 1 is not of type 'string'.")}typeof et>"u"&&(et={ignoreCase:!1});let ot={ignoreCase:et.ignoreCase===!0};K0(this,Dn,w({pathname:E,protocol:E,username:E,password:E,hostname:E,port:E,search:E,hash:E},tt,!0)),_(_0(this,Dn).protocol)===_0(this,Dn).port&&(_0(this,Dn).port="");let st;for(st of G){if(!(st in _0(this,Dn)))continue;let ut={},ct=_0(this,Dn)[st];switch(_0(this,i1)[st]=[],st){case"protocol":Object.assign(ut,x),ut.encodePart=y;break;case"username":Object.assign(ut,x),ut.encodePart=le;break;case"password":Object.assign(ut,x),ut.encodePart=fe;break;case"hostname":Object.assign(ut,B),W(ct)?ut.encodePart=j:ut.encodePart=z;break;case"port":Object.assign(ut,x),ut.encodePart=K;break;case"pathname":N(_0(this,Bn).protocol)?(Object.assign(ut,q,ot),ut.encodePart=he):(Object.assign(ut,x,ot),ut.encodePart=ue);break;case"search":Object.assign(ut,x,ot),ut.encodePart=de;break;case"hash":Object.assign(ut,x,ot),ut.encodePart=pe;break}try{_0(this,En)[st]=D(ct,ut),_0(this,Bn)[st]=F(_0(this,En)[st],_0(this,i1)[st],ut),_0(this,sn)[st]=ke(_0(this,En)[st],ut),K0(this,o1,_0(this,o1)||_0(this,En)[st].some(pt=>pt.type===2))}catch{throw new TypeError(`invalid ${st} pattern '${_0(this,Dn)[st]}'.`)}}}catch(rt){throw new TypeError(`Failed to construct 'URLPattern': ${rt.message}`)}}test(tt={},nt){let et={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof tt!="string"&&nt)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof tt>"u")return!1;try{typeof tt=="object"?et=w(et,tt,!1):et=w(et,ge(tt,nt),!1)}catch{return!1}let rt;for(rt of G)if(!_0(this,Bn)[rt].exec(et[rt]))return!1;return!0}exec(tt={},nt){let et={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof tt!="string"&&nt)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof tt>"u")return;try{typeof tt=="object"?et=w(et,tt,!1):et=w(et,ge(tt,nt),!1)}catch{return null}let rt={};nt?rt.inputs=[tt,nt]:rt.inputs=[tt];let ot;for(ot of G){let at=_0(this,Bn)[ot].exec(et[ot]);if(!at)return null;let st={};for(let[ut,ct]of _0(this,i1)[ot].entries())if(typeof ct=="string"||typeof ct=="number"){let pt=at[ut+1];st[ct]=pt}rt[ot]={input:et[ot]??"",groups:st}}return rt}static compareComponent(tt,nt,et){let rt=(ut,ct)=>{for(let pt of["type","modifier","prefix","value","suffix"]){if(ut[pt]<ct[pt])return-1;if(ut[pt]!==ct[pt])return 1}return 0},ot=new R(3,"","","","",3),at=new R(0,"","","","",3),st=(ut,ct)=>{let pt=0;for(;pt<Math.min(ut.length,ct.length);++pt){let dt=rt(ut[pt],ct[pt]);if(dt)return dt}return ut.length===ct.length?0:rt(ut[pt]??ot,ct[pt]??ot)};return!_0(nt,sn)[tt]&&!_0(et,sn)[tt]?0:_0(nt,sn)[tt]&&!_0(et,sn)[tt]?st(_0(nt,En)[tt],[at]):!_0(nt,sn)[tt]&&_0(et,sn)[tt]?st([at],_0(et,En)[tt]):st(_0(nt,En)[tt],_0(et,En)[tt])}get protocol(){return _0(this,sn).protocol}get username(){return _0(this,sn).username}get password(){return _0(this,sn).password}get hostname(){return _0(this,sn).hostname}get port(){return _0(this,sn).port}get pathname(){return _0(this,sn).pathname}get search(){return _0(this,sn).search}get hash(){return _0(this,sn).hash}get hasRegExpGroups(){return _0(this,o1)}},Dn=new WeakMap,Bn=new WeakMap,i1=new WeakMap,sn=new WeakMap,En=new WeakMap,o1=new WeakMap,P1);globalThis.URLPattern||(globalThis.URLPattern=me);var baseSlice=_baseSlice,toInteger=toInteger_1;function take(tt,nt,et){return tt&&tt.length?(nt=et||nt===void 0?1:toInteger(nt),baseSlice(tt,0,nt<0?0:nt)):[]}var take_1=take;const take$1=getDefaultExportFromCjs$1(take_1),FINAL_SLASH_RE=/\/+$/,INITIAL_SLASH_RE=/^\/+/;function getWindowBaseUriParts(){const tt=window.location.hostname;let nt;window.location.port?nt=Number(window.location.port):nt=isHttps()?443:80;const et=window.location.pathname.replace(FINAL_SLASH_RE,"").replace(INITIAL_SLASH_RE,"");return{host:tt,port:nt,basePath:et}}function getPossibleBaseUris(){const tt=getWindowBaseUriParts(),{basePath:nt}=tt;if(!nt)return[tt];const et=nt.split("/"),rt=[];for(;et.length>0;)rt.push({...tt,basePath:et.join("/")}),et.pop();return rt.push({...tt,basePath:""}),take$1(rt,2)}function buildWsUri({host:tt,port:nt,basePath:et},rt){const ot=isHttps()?"wss":"ws",at=makePath(et,rt);return`${ot}://${tt}:${nt}/${at}`}function buildHttpUri({host:tt,port:nt,basePath:et},rt){const ot=isHttps()?"https":"http",at=makePath(et,rt);return`${ot}://${tt}:${nt}/${at}`}function makePath(tt,nt){return tt=tt.replace(FINAL_SLASH_RE,"").replace(INITIAL_SLASH_RE,""),nt=nt.replace(FINAL_SLASH_RE,"").replace(INITIAL_SLASH_RE,""),tt.length===0?nt:`${tt}/${nt}`}function isHttps(){return window.location.href.startsWith("https://")}function isValidOrigin(tt,nt){let et,rt,ot;try{et=new URLPattern(tt),rt=new URLPattern({protocol:et.protocol,hostname:et.hostname}),ot=new URL(nt)}catch{return!1}return ot.hostname==="localhost"&&rt.test(ot)?!0:et.test(ot)}const HOST_COMM_VERSION=1;class HostCommunicationManager{constructor(nt){this.openHostCommunication=()=>{window.addEventListener("message",this.receiveHostMessage),this.sendMessageToHost({type:"GUEST_READY",streamlitExecutionStartedAt:this.props.streamlitExecutionStartedAt,guestReadyAt:Date.now()})},this.closeHostCommunication=()=>{window.removeEventListener("message",this.receiveHostMessage)},this.resetAuthToken=()=>{this.deferredAuthToken=new Resolver},this.claimAuthToken=()=>this.deferredAuthToken.promise,this.setAllowedOrigins=({allowedOrigins:et,useExternalAuthToken:rt})=>{rt||this.deferredAuthToken.resolve(void 0),et!=null&&et.length&&(this.allowedOrigins=et,this.openHostCommunication())},this.sendMessageToSameOriginHost=et=>{window.parent.postMessage({stCommVersion:HOST_COMM_VERSION,...et},window.location.origin)},this.sendMessageToHost=et=>{window.parent.postMessage({stCommVersion:HOST_COMM_VERSION,...et},"*")},this.receiveHostMessage=et=>{const rt=et.data;if(!(rt.stCommVersion!==HOST_COMM_VERSION||!this.allowedOrigins.find(ot=>isValidOrigin(ot,et.origin)))){if(rt.type==="CLOSE_MODAL"&&this.props.closeModal(),rt.type==="STOP_SCRIPT"&&this.props.stopScript(),rt.type==="RERUN_SCRIPT"&&this.props.rerunScript(),rt.type==="CLEAR_CACHE"&&this.props.clearCache(),rt.type==="REQUEST_PAGE_CHANGE"&&this.props.pageChanged(rt.pageScriptHash),rt.type==="SEND_APP_HEARTBEAT"&&this.props.sendAppHeartbeat(),rt.type==="SET_INPUTS_DISABLED"&&this.props.setInputsDisabled(rt.disabled),rt.type==="SET_AUTH_TOKEN"&&this.deferredAuthToken.resolve(rt.authToken),rt.type==="SET_FILE_UPLOAD_CLIENT_CONFIG"){const{prefix:ot,headers:at}=rt;this.props.fileUploadClientConfigChanged({prefix:ot,headers:at})}rt.type==="SET_IS_OWNER"&&this.props.isOwnerChanged(rt.isOwner),rt.type==="SET_MENU_ITEMS"&&this.props.hostMenuItemsChanged(rt.items),rt.type==="SET_METADATA"&&this.props.deployedAppMetadataChanged(rt.metadata),rt.type==="SET_PAGE_LINK_BASE_URL"&&this.props.pageLinkBaseUrlChanged(rt.pageLinkBaseUrl),rt.type==="SET_SIDEBAR_CHEVRON_DOWNSHIFT"&&this.props.sidebarChevronDownshiftChanged(rt.sidebarChevronDownshift),rt.type==="SET_SIDEBAR_NAV_VISIBILITY"&&this.props.hostHideSidebarNavChanged(rt.hidden),rt.type==="SET_TOOLBAR_ITEMS"&&this.props.hostToolbarItemsChanged(rt.items),rt.type==="UPDATE_FROM_QUERY_PARAMS"&&(this.props.queryParamsChanged(rt.queryParams),this.props.sendRerunBackMsg()),rt.type==="UPDATE_HASH"&&(window.location.hash=rt.hash),rt.type==="SET_CUSTOM_THEME_CONFIG"&&this.props.themeChanged(rt.themeName,rt.themeInfo),rt.type==="RESTART_WEBSOCKET_CONNECTION"&&this.props.restartWebsocketConnection(),rt.type==="TERMINATE_WEBSOCKET_CONNECTION"&&this.props.terminateWebsocketConnection()}},this.props=nt,this.allowedOrigins=[],this.deferredAuthToken=new Resolver}}class SessionInfo{get current(){if(!this._current)throw new Error("Tried to use SessionInfo before it was initialized");return this._current}get last(){return this._last}setCurrent(nt){this._last=notNullOrUndefined(this._current)?{...this._current}:void 0,this._current=notNullOrUndefined(nt)?{...nt}:void 0}clearCurrent(){this.setCurrent(void 0)}get isSet(){return notNullOrUndefined(this._current)}get isHello(){return notNullOrUndefined(this._current)&&this._current.isHello}static propsFromNewSessionMessage(nt){const et=nt.initialize,rt=nt.config,ot=et.userInfo,at=et.environmentInfo;return{appId:hashString(ot.installationIdV3+nt.mainScriptPath),sessionId:et.sessionId,streamlitVersion:at.streamlitVersion,pythonVersion:at.pythonVersion,installationId:ot.installationId,installationIdV3:ot.installationIdV3,maxCachedMessageAge:rt.maxCachedMessageAge,isHello:et.isHello}}}function findNextEventIndex(tt,nt,et){const rt=typeof nt=="number"?nt:tt.indexOf(nt);for(let ot=rt;ot<tt.length;++ot)if(et(tt[ot]))return ot}function findPrevEventIndex(tt,nt,et){const rt=typeof nt=="number"?nt:tt.indexOf(nt);for(let ot=rt;ot>=0;--ot){const at=tt[ot];if(et(at))return ot}}function findPrevEvent(tt,nt,et){const rt=findPrevEventIndex(tt,nt,et);return rt!==void 0?tt[rt]:void 0}function isHandleMessageEvent(tt){return tt.messageIndex!==void 0}function getTimeDelta(tt,nt){return Math.abs(nt.timestamp-tt.timestamp)}class RerunAnalyzer{constructor(nt,et){this.getResults=()=>{const ot=new Set;if(this.rerunEvents.forEach(pt=>{isHandleMessageEvent(pt)&&ot.add(pt.messageIndex)}),ot.size===0)return"No rerun messages found!";const at=Array.from(ot).sort(compareNumbers),st=this.rerunEvents[this.rerunEvents.length-1],ut=this.rerunEvents[0],ct={messages:at.map(this.getMessageAnalysis),rerunDuration:getTimeDelta(ut,st)};return this.requestedRerun!==void 0&&(ct.requestedRerun=!0,ct.scriptRunStateAtStart=this.requestedRerun.scriptRunState,ct.requestToRerunStart=getTimeDelta(this.requestedRerun,ut)),ct},this.getMessageAnalysis=ot=>{const at=[];let st=0;for(;st<this.rerunEvents.length;){const dt=findNextMessageEvent(this.rerunEvents,st,ot);if(dt===void 0)break;at.push(this.rerunEvents[dt]),st=dt+1}if(at.length===0)throw new Error(`No messages for the given index: ${ot}`);const ut=at[0],ct=at[at.length-1],pt={messageIndex:ot,duration:getTimeDelta(ut,ct),steps:[]};for(let dt=1;dt<at.length;++dt){const ft=at[dt-1],bt=at[dt];bt.name==="DecodedMessage"&&(pt.messageType=bt.messageType,pt.len=bt.len),pt.steps.push({name:bt.name,duration:getTimeDelta(ft,bt)})}return pt};const rt=findRunStartEventIndex(nt,et);if(rt===void 0)throw new Error("Unable to find run start!");this.rerunEvents=nt.slice(rt,et+1),this.requestedRerun=findPrevEvent(nt,rt-1,ot=>ot.name==="RequestedRerun")}}function compareNumbers(tt,nt){return tt<nt?-1:tt>nt?1:0}function findRunStartEventIndex(tt,nt){const et=findPrevEventIndex(tt,nt-1,ot=>ot.name==="DecodedMessage"&&ot.messageType==="newSession");if(et===void 0)return;const{messageIndex:rt}=tt[et];return findPrevEventIndex(tt,et,ot=>ot.name==="BeginHandleMessage"&&ot.messageIndex===rt)}function findNextMessageEvent(tt,nt,et){return findNextEventIndex(tt,nt,rt=>isHandleMessageEvent(rt)&&rt.messageIndex===et)}function getRerunAnalysis(tt,nt){return new RerunAnalyzer(tt,tt.length-1).getResults()}const _1=class _1{static record(nt){this.enabled&&(nt.timestamp=performance.now(),this.events.push(nt),nt.name==="DispatchedMessage"&&nt.messageType==="scriptFinished"&&(logMessage("Rerun results",getRerunAnalysis(this.events)),this.events=[]))}};_1.enabled=!1,_1.events=[];let PerformanceEvents=_1;var j1;const nonce=((j1=document.currentScript)==null?void 0:j1.nonce)||"",cache=createCache({key:"st-emotion-cache",...nonce&&{nonce}});function RootStyleProvider(tt){const{children:nt,theme:et}=tt;return jsx$1(BaseProvider,{theme:et.basewebTheme,zIndex:et.emotion.zIndices.popupMenu,children:jsx$1(CacheProvider,{value:cache,children:jsxs(ThemeProvider$2,{theme:et.emotion,children:[jsx$1(Global,{styles:[globalStyles]}),nt]})})})}class Timer{constructor(){this.duration=0,this.startTime=0,this.running=!1}get isRunning(){return this.running}get remainingTime(){if(!this.running)return 0;const nt=Date.now()-this.startTime;return Math.max(this.duration-nt,0)}setTimeout(nt,et){this.cancel(),this.startTime=Date.now(),this.duration=et,this.running=!0,this.timerHandle=window.setTimeout(()=>{this.running=!1,nt()},et)}cancel(){this.timerHandle!==void 0&&(window.clearTimeout(this.timerHandle),this.timerHandle=void 0,this.running=!1)}}var src={exports:{}},indexLight={exports:{}},util$2={exports:{}},codegen_1=codegen;function codegen(tt,nt){typeof tt=="string"&&(nt=tt,tt=void 0);var et=[];function rt(at){if(typeof at!="string"){var st=ot();if(codegen.verbose&&console.log("codegen: "+st),st="return "+st,at){for(var ut=Object.keys(at),ct=new Array(ut.length+1),pt=new Array(ut.length),dt=0;dt<ut.length;)ct[dt]=ut[dt],pt[dt]=at[ut[dt++]];return ct[dt]=st,Function.apply(null,ct).apply(null,pt)}return Function(st)()}for(var ft=new Array(arguments.length-1),bt=0;bt<ft.length;)ft[bt]=arguments[++bt];if(bt=0,at=at.replace(/%([%dfijs])/g,function(Mt,mt){var Ot=ft[bt++];switch(mt){case"d":case"f":return String(Number(Ot));case"i":return String(Math.floor(Ot));case"j":return JSON.stringify(Ot);case"s":return String(Ot)}return"%"}),bt!==ft.length)throw Error("parameter count mismatch");return et.push(at),rt}function ot(at){return"function "+(at||nt||"")+"("+(tt&&tt.join(",")||"")+`){
725
725
  `+et.join(`
726
726
  `)+`
727
727
  }`}return rt.toString=ot,rt}codegen.verbose=!1;var fetch_1=fetch$1,asPromise=aspromise,inquire=inquire_1,fs=inquire("fs");function fetch$1(tt,nt,et){return typeof nt=="function"?(et=nt,nt={}):nt||(nt={}),et?!nt.xhr&&fs&&fs.readFile?fs.readFile(tt,function(ot,at){return ot&&typeof XMLHttpRequest<"u"?fetch$1.xhr(tt,nt,et):ot?et(ot):et(null,nt.binary?at:at.toString("utf8"))}):fetch$1.xhr(tt,nt,et):asPromise(fetch$1,this,tt,nt)}fetch$1.xhr=function tt(nt,et,rt){var ot=new XMLHttpRequest;ot.onreadystatechange=function(){if(ot.readyState===4){if(ot.status!==0&&ot.status!==200)return rt(Error("status "+ot.status));if(et.binary){var st=ot.response;if(!st){st=[];for(var ut=0;ut<ot.responseText.length;++ut)st.push(ot.responseText.charCodeAt(ut)&255)}return rt(null,typeof Uint8Array<"u"?new Uint8Array(st):st)}return rt(null,ot.responseText)}},et.binary&&("overrideMimeType"in ot&&ot.overrideMimeType("text/plain; charset=x-user-defined"),ot.responseType="arraybuffer"),ot.open("GET",nt),ot.send()};var path={};(function(tt){var nt=tt,et=nt.isAbsolute=function(at){return/^(?:\/|\w+:)/.test(at)},rt=nt.normalize=function(at){at=at.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var st=at.split("/"),ut=et(at),ct="";ut&&(ct=st.shift()+"/");for(var pt=0;pt<st.length;)st[pt]===".."?pt>0&&st[pt-1]!==".."?st.splice(--pt,2):ut?st.splice(pt,1):++pt:st[pt]==="."?st.splice(pt,1):++pt;return ct+st.join("/")};nt.resolve=function(at,st,ut){return ut||(st=rt(st)),et(st)?st:(ut||(at=rt(at)),(at=at.replace(/(?:\/|^)[^/]+$/,"")).length?rt(at+"/"+st):st)}})(path);var types$1={},hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(tt){var nt=tt,et=requireUtil(),rt=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function ot(at,st){var ut=0,ct={};for(st|=0;ut<at.length;)ct[rt[ut+st]]=at[ut++];return ct}nt.basic=ot([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),nt.defaults=ot([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",et.emptyArray,null]),nt.long=ot([0,0,0,1,1],7),nt.mapKey=ot([0,0,0,5,5,0,0,0,1,1,0,2],2),nt.packed=ot([1,5,0,0,0,5,5,0,0,0,1,1,0])}(types$1)),types$1}var field,hasRequiredField;function requireField(){if(hasRequiredField)return field;hasRequiredField=1,field=st;var tt=requireObject();((st.prototype=Object.create(tt.prototype)).constructor=st).className="Field";var nt=require_enum(),et=requireTypes(),rt=requireUtil(),ot,at=/^required|optional|repeated$/;st.fromJSON=function(ct,pt){return new st(ct,pt.id,pt.type,pt.rule,pt.extend,pt.options,pt.comment)};function st(ut,ct,pt,dt,ft,bt,ht){if(rt.isObject(dt)?(ht=ft,bt=dt,dt=ft=void 0):rt.isObject(ft)&&(ht=bt,bt=ft,ft=void 0),tt.call(this,ut,bt),!rt.isInteger(ct)||ct<0)throw TypeError("id must be a non-negative integer");if(!rt.isString(pt))throw TypeError("type must be a string");if(dt!==void 0&&!at.test(dt=dt.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(ft!==void 0&&!rt.isString(ft))throw TypeError("extend must be a string");dt==="proto3_optional"&&(dt="optional"),this.rule=dt&&dt!=="optional"?dt:void 0,this.type=pt,this.id=ct,this.extend=ft||void 0,this.required=dt==="required",this.optional=!this.required,this.repeated=dt==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=rt.Long?et.long[pt]!==void 0:!1,this.bytes=pt==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=ht}return Object.defineProperty(st.prototype,"packed",{get:function(){return this._packed===null&&(this._packed=this.getOption("packed")!==!1),this._packed}}),st.prototype.setOption=function(ct,pt,dt){return ct==="packed"&&(this._packed=null),tt.prototype.setOption.call(this,ct,pt,dt)},st.prototype.toJSON=function(ct){var pt=ct?!!ct.keepComments:!1;return rt.toObject(["rule",this.rule!=="optional"&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",pt?this.comment:void 0])},st.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=et.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof ot?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&this.options.default!=null&&(this.typeDefault=this.options.default,this.resolvedType instanceof nt&&typeof this.typeDefault=="string"&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&((this.options.packed===!0||this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof nt))&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=rt.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u"),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&typeof this.typeDefault=="string"){var ct;rt.base64.test(this.typeDefault)?rt.base64.decode(this.typeDefault,ct=rt.newBuffer(rt.base64.length(this.typeDefault)),0):rt.utf8.write(this.typeDefault,ct=rt.newBuffer(rt.utf8.length(this.typeDefault)),0),this.typeDefault=ct}return this.map?this.defaultValue=rt.emptyObject:this.repeated?this.defaultValue=rt.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof ot&&(this.parent.ctor.prototype[this.name]=this.defaultValue),tt.prototype.resolve.call(this)},st.d=function(ct,pt,dt,ft){return typeof pt=="function"?pt=rt.decorateType(pt).name:pt&&typeof pt=="object"&&(pt=rt.decorateEnum(pt).name),function(ht,Mt){rt.decorateType(ht.constructor).add(new st(Mt,ct,pt,dt,{default:ft}))}},st._configure=function(ct){ot=ct},field}var oneof,hasRequiredOneof;function requireOneof(){if(hasRequiredOneof)return oneof;hasRequiredOneof=1,oneof=rt;var tt=requireObject();((rt.prototype=Object.create(tt.prototype)).constructor=rt).className="OneOf";var nt=requireField(),et=requireUtil();function rt(at,st,ut,ct){if(Array.isArray(st)||(ut=st,st=void 0),tt.call(this,at,ut),!(st===void 0||Array.isArray(st)))throw TypeError("fieldNames must be an Array");this.oneof=st||[],this.fieldsArray=[],this.comment=ct}rt.fromJSON=function(st,ut){return new rt(st,ut.oneof,ut.options,ut.comment)},rt.prototype.toJSON=function(st){var ut=st?!!st.keepComments:!1;return et.toObject(["options",this.options,"oneof",this.oneof,"comment",ut?this.comment:void 0])};function ot(at){if(at.parent)for(var st=0;st<at.fieldsArray.length;++st)at.fieldsArray[st].parent||at.parent.add(at.fieldsArray[st])}return rt.prototype.add=function(st){if(!(st instanceof nt))throw TypeError("field must be a Field");return st.parent&&st.parent!==this.parent&&st.parent.remove(st),this.oneof.push(st.name),this.fieldsArray.push(st),st.partOf=this,ot(this),this},rt.prototype.remove=function(st){if(!(st instanceof nt))throw TypeError("field must be a Field");var ut=this.fieldsArray.indexOf(st);if(ut<0)throw Error(st+" is not a member of "+this);return this.fieldsArray.splice(ut,1),ut=this.oneof.indexOf(st.name),ut>-1&&this.oneof.splice(ut,1),st.partOf=null,this},rt.prototype.onAdd=function(st){tt.prototype.onAdd.call(this,st);for(var ut=this,ct=0;ct<this.oneof.length;++ct){var pt=st.get(this.oneof[ct]);pt&&!pt.partOf&&(pt.partOf=ut,ut.fieldsArray.push(pt))}ot(this)},rt.prototype.onRemove=function(st){for(var ut=0,ct;ut<this.fieldsArray.length;++ut)(ct=this.fieldsArray[ut]).parent&&ct.parent.remove(ct);tt.prototype.onRemove.call(this,st)},rt.d=function(){for(var st=new Array(arguments.length),ut=0;ut<arguments.length;)st[ut]=arguments[ut++];return function(pt,dt){et.decorateType(pt.constructor).add(new rt(dt,st)),Object.defineProperty(pt,dt,{get:et.oneOfGetter(st),set:et.oneOfSetter(st)})}},oneof}var namespace,hasRequiredNamespace;function requireNamespace(){if(hasRequiredNamespace)return namespace;hasRequiredNamespace=1,namespace=ct;var tt=requireObject();((ct.prototype=Object.create(tt.prototype)).constructor=ct).className="Namespace";var nt=requireField(),et=requireUtil(),rt=requireOneof(),ot,at,st;ct.fromJSON=function(ft,bt){return new ct(ft,bt.options).addJSON(bt.nested)};function ut(dt,ft){if(dt&&dt.length){for(var bt={},ht=0;ht<dt.length;++ht)bt[dt[ht].name]=dt[ht].toJSON(ft);return bt}}ct.arrayToJSON=ut,ct.isReservedId=function(ft,bt){if(ft){for(var ht=0;ht<ft.length;++ht)if(typeof ft[ht]!="string"&&ft[ht][0]<=bt&&ft[ht][1]>bt)return!0}return!1},ct.isReservedName=function(ft,bt){if(ft){for(var ht=0;ht<ft.length;++ht)if(ft[ht]===bt)return!0}return!1};function ct(dt,ft){tt.call(this,dt,ft),this.nested=void 0,this._nestedArray=null}function pt(dt){return dt._nestedArray=null,dt}return Object.defineProperty(ct.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=et.toArray(this.nested))}}),ct.prototype.toJSON=function(ft){return et.toObject(["options",this.options,"nested",ut(this.nestedArray,ft)])},ct.prototype.addJSON=function(ft){var bt=this;if(ft)for(var ht=Object.keys(ft),Mt=0,mt;Mt<ht.length;++Mt)mt=ft[ht[Mt]],bt.add((mt.fields!==void 0?ot.fromJSON:mt.values!==void 0?st.fromJSON:mt.methods!==void 0?at.fromJSON:mt.id!==void 0?nt.fromJSON:ct.fromJSON)(ht[Mt],mt));return this},ct.prototype.get=function(ft){return this.nested&&this.nested[ft]||null},ct.prototype.getEnum=function(ft){if(this.nested&&this.nested[ft]instanceof st)return this.nested[ft].values;throw Error("no such enum: "+ft)},ct.prototype.add=function(ft){if(!(ft instanceof nt&&ft.extend!==void 0||ft instanceof ot||ft instanceof rt||ft instanceof st||ft instanceof at||ft instanceof ct))throw TypeError("object must be a valid nested object");if(!this.nested)this.nested={};else{var bt=this.get(ft.name);if(bt)if(bt instanceof ct&&ft instanceof ct&&!(bt instanceof ot||bt instanceof at)){for(var ht=bt.nestedArray,Mt=0;Mt<ht.length;++Mt)ft.add(ht[Mt]);this.remove(bt),this.nested||(this.nested={}),ft.setOptions(bt.options,!0)}else throw Error("duplicate name '"+ft.name+"' in "+this)}return this.nested[ft.name]=ft,ft.onAdd(this),pt(this)},ct.prototype.remove=function(ft){if(!(ft instanceof tt))throw TypeError("object must be a ReflectionObject");if(ft.parent!==this)throw Error(ft+" is not a member of "+this);return delete this.nested[ft.name],Object.keys(this.nested).length||(this.nested=void 0),ft.onRemove(this),pt(this)},ct.prototype.define=function(ft,bt){if(et.isString(ft))ft=ft.split(".");else if(!Array.isArray(ft))throw TypeError("illegal path");if(ft&&ft.length&&ft[0]==="")throw Error("path must be relative");for(var ht=this;ft.length>0;){var Mt=ft.shift();if(ht.nested&&ht.nested[Mt]){if(ht=ht.nested[Mt],!(ht instanceof ct))throw Error("path conflicts with non-namespace objects")}else ht.add(ht=new ct(Mt))}return bt&&ht.addJSON(bt),ht},ct.prototype.resolveAll=function(){for(var ft=this.nestedArray,bt=0;bt<ft.length;)ft[bt]instanceof ct?ft[bt++].resolveAll():ft[bt++].resolve();return this.resolve()},ct.prototype.lookup=function(ft,bt,ht){if(typeof bt=="boolean"?(ht=bt,bt=void 0):bt&&!Array.isArray(bt)&&(bt=[bt]),et.isString(ft)&&ft.length){if(ft===".")return this.root;ft=ft.split(".")}else if(!ft.length)return this;if(ft[0]==="")return this.root.lookup(ft.slice(1),bt);var Mt=this.get(ft[0]);if(Mt){if(ft.length===1){if(!bt||bt.indexOf(Mt.constructor)>-1)return Mt}else if(Mt instanceof ct&&(Mt=Mt.lookup(ft.slice(1),bt,!0)))return Mt}else for(var mt=0;mt<this.nestedArray.length;++mt)if(this._nestedArray[mt]instanceof ct&&(Mt=this._nestedArray[mt].lookup(ft,bt,!0)))return Mt;return this.parent===null||ht?null:this.parent.lookup(ft,bt)},ct.prototype.lookupType=function(ft){var bt=this.lookup(ft,[ot]);if(!bt)throw Error("no such type: "+ft);return bt},ct.prototype.lookupEnum=function(ft){var bt=this.lookup(ft,[st]);if(!bt)throw Error("no such Enum '"+ft+"' in "+this);return bt},ct.prototype.lookupTypeOrEnum=function(ft){var bt=this.lookup(ft,[ot,st]);if(!bt)throw Error("no such Type or Enum '"+ft+"' in "+this);return bt},ct.prototype.lookupService=function(ft){var bt=this.lookup(ft,[at]);if(!bt)throw Error("no such Service '"+ft+"' in "+this);return bt},ct._configure=function(dt,ft,bt){ot=dt,at=ft,st=bt},namespace}var mapfield,hasRequiredMapfield;function requireMapfield(){if(hasRequiredMapfield)return mapfield;hasRequiredMapfield=1,mapfield=rt;var tt=requireField();((rt.prototype=Object.create(tt.prototype)).constructor=rt).className="MapField";var nt=requireTypes(),et=requireUtil();function rt(ot,at,st,ut,ct,pt){if(tt.call(this,ot,at,ut,void 0,void 0,ct,pt),!et.isString(st))throw TypeError("keyType must be a string");this.keyType=st,this.resolvedKeyType=null,this.map=!0}return rt.fromJSON=function(at,st){return new rt(at,st.id,st.keyType,st.type,st.options,st.comment)},rt.prototype.toJSON=function(at){var st=at?!!at.keepComments:!1;return et.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",st?this.comment:void 0])},rt.prototype.resolve=function(){if(this.resolved)return this;if(nt.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return tt.prototype.resolve.call(this)},rt.d=function(at,st,ut){return typeof ut=="function"?ut=et.decorateType(ut).name:ut&&typeof ut=="object"&&(ut=et.decorateEnum(ut).name),function(pt,dt){et.decorateType(pt.constructor).add(new rt(dt,at,st,ut))}},mapfield}var method,hasRequiredMethod;function requireMethod(){if(hasRequiredMethod)return method;hasRequiredMethod=1,method=et;var tt=requireObject();((et.prototype=Object.create(tt.prototype)).constructor=et).className="Method";var nt=requireUtil();function et(rt,ot,at,st,ut,ct,pt,dt,ft){if(nt.isObject(ut)?(pt=ut,ut=ct=void 0):nt.isObject(ct)&&(pt=ct,ct=void 0),!(ot===void 0||nt.isString(ot)))throw TypeError("type must be a string");if(!nt.isString(at))throw TypeError("requestType must be a string");if(!nt.isString(st))throw TypeError("responseType must be a string");tt.call(this,rt,pt),this.type=ot||"rpc",this.requestType=at,this.requestStream=ut?!0:void 0,this.responseType=st,this.responseStream=ct?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=dt,this.parsedOptions=ft}return et.fromJSON=function(ot,at){return new et(ot,at.type,at.requestType,at.responseType,at.requestStream,at.responseStream,at.options,at.comment,at.parsedOptions)},et.prototype.toJSON=function(ot){var at=ot?!!ot.keepComments:!1;return nt.toObject(["type",this.type!=="rpc"&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",at?this.comment:void 0,"parsedOptions",this.parsedOptions])},et.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),tt.prototype.resolve.call(this))},method}var service,hasRequiredService;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=ot;var tt=requireNamespace();((ot.prototype=Object.create(tt.prototype)).constructor=ot).className="Service";var nt=requireMethod(),et=requireUtil(),rt=rpc;function ot(st,ut){tt.call(this,st,ut),this.methods={},this._methodsArray=null}ot.fromJSON=function(ut,ct){var pt=new ot(ut,ct.options);if(ct.methods)for(var dt=Object.keys(ct.methods),ft=0;ft<dt.length;++ft)pt.add(nt.fromJSON(dt[ft],ct.methods[dt[ft]]));return ct.nested&&pt.addJSON(ct.nested),pt.comment=ct.comment,pt},ot.prototype.toJSON=function(ut){var ct=tt.prototype.toJSON.call(this,ut),pt=ut?!!ut.keepComments:!1;return et.toObject(["options",ct&&ct.options||void 0,"methods",tt.arrayToJSON(this.methodsArray,ut)||{},"nested",ct&&ct.nested||void 0,"comment",pt?this.comment:void 0])},Object.defineProperty(ot.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=et.toArray(this.methods))}});function at(st){return st._methodsArray=null,st}return ot.prototype.get=function(ut){return this.methods[ut]||tt.prototype.get.call(this,ut)},ot.prototype.resolveAll=function(){for(var ut=this.methodsArray,ct=0;ct<ut.length;++ct)ut[ct].resolve();return tt.prototype.resolve.call(this)},ot.prototype.add=function(ut){if(this.get(ut.name))throw Error("duplicate name '"+ut.name+"' in "+this);return ut instanceof nt?(this.methods[ut.name]=ut,ut.parent=this,at(this)):tt.prototype.add.call(this,ut)},ot.prototype.remove=function(ut){if(ut instanceof nt){if(this.methods[ut.name]!==ut)throw Error(ut+" is not a member of "+this);return delete this.methods[ut.name],ut.parent=null,at(this)}return tt.prototype.remove.call(this,ut)},ot.prototype.create=function(ut,ct,pt){for(var dt=new rt.Service(ut,ct,pt),ft=0,bt;ft<this.methodsArray.length;++ft){var ht=et.lcFirst((bt=this._methodsArray[ft]).resolve().name).replace(/[^$\w_]/g,"");dt[ht]=et.codegen(["r","c"],et.isReserved(ht)?ht+"_":ht)("return this.rpcCall(m,q,s,r,c)")({m:bt,q:bt.resolvedRequestType.ctor,s:bt.resolvedResponseType.ctor})}return dt},service}var message=Message,util$1=requireMinimal();function Message(tt){if(tt)for(var nt=Object.keys(tt),et=0;et<nt.length;++et)this[nt[et]]=tt[nt[et]]}Message.create=function tt(nt){return this.$type.create(nt)};Message.encode=function tt(nt,et){return this.$type.encode(nt,et)};Message.encodeDelimited=function tt(nt,et){return this.$type.encodeDelimited(nt,et)};Message.decode=function tt(nt){return this.$type.decode(nt)};Message.decodeDelimited=function tt(nt){return this.$type.decodeDelimited(nt)};Message.verify=function tt(nt){return this.$type.verify(nt)};Message.fromObject=function tt(nt){return this.$type.fromObject(nt)};Message.toObject=function tt(nt,et){return this.$type.toObject(nt,et)};Message.prototype.toJSON=function tt(){return this.$type.toObject(this,util$1.toJSONOptions)};var decoder_1,hasRequiredDecoder;function requireDecoder(){if(hasRequiredDecoder)return decoder_1;hasRequiredDecoder=1,decoder_1=ot;var tt=require_enum(),nt=requireTypes(),et=requireUtil();function rt(at){return"missing required '"+at.name+"'"}function ot(at){var st=et.codegen(["r","l"],at.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(at.fieldsArray.filter(function(bt){return bt.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()");at.group&&st("if((t&7)===4)")("break"),st("switch(t>>>3){");for(var ut=0;ut<at.fieldsArray.length;++ut){var ct=at._fieldsArray[ut].resolve(),pt=ct.resolvedType instanceof tt?"int32":ct.type,dt="m"+et.safeProp(ct.name);st("case %i: {",ct.id),ct.map?(st("if(%s===util.emptyObject)",dt)("%s={}",dt)("var c2 = r.uint32()+r.pos"),nt.defaults[ct.keyType]!==void 0?st("k=%j",nt.defaults[ct.keyType]):st("k=null"),nt.defaults[pt]!==void 0?st("value=%j",nt.defaults[pt]):st("value=null"),st("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",ct.keyType)("case 2:"),nt.basic[pt]===void 0?st("value=types[%i].decode(r,r.uint32())",ut):st("value=r.%s()",pt),st("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),nt.long[ct.keyType]!==void 0?st('%s[typeof k==="object"?util.longToHash(k):k]=value',dt):st("%s[k]=value",dt)):ct.repeated?(st("if(!(%s&&%s.length))",dt,dt)("%s=[]",dt),nt.packed[pt]!==void 0&&st("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",dt,pt)("}else"),nt.basic[pt]===void 0?st(ct.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",dt,ut):st("%s.push(r.%s())",dt,pt)):nt.basic[pt]===void 0?st(ct.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",dt,ut):st("%s=r.%s()",dt,pt),st("break")("}")}for(st("default:")("r.skipType(t&7)")("break")("}")("}"),ut=0;ut<at._fieldsArray.length;++ut){var ft=at._fieldsArray[ut];ft.required&&st("if(!m.hasOwnProperty(%j))",ft.name)("throw util.ProtocolError(%j,{instance:m})",rt(ft))}return st("return m")}return decoder_1}var verifier_1,hasRequiredVerifier;function requireVerifier(){if(hasRequiredVerifier)return verifier_1;hasRequiredVerifier=1,verifier_1=at;var tt=require_enum(),nt=requireUtil();function et(st,ut){return st.name+": "+ut+(st.repeated&&ut!=="array"?"[]":st.map&&ut!=="object"?"{k:"+st.keyType+"}":"")+" expected"}function rt(st,ut,ct,pt){if(ut.resolvedType)if(ut.resolvedType instanceof tt){st("switch(%s){",pt)("default:")("return%j",et(ut,"enum value"));for(var dt=Object.keys(ut.resolvedType.values),ft=0;ft<dt.length;++ft)st("case %i:",ut.resolvedType.values[dt[ft]]);st("break")("}")}else st("{")("var e=types[%i].verify(%s);",ct,pt)("if(e)")("return%j+e",ut.name+".")("}");else switch(ut.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":st("if(!util.isInteger(%s))",pt)("return%j",et(ut,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":st("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",pt,pt,pt,pt)("return%j",et(ut,"integer|Long"));break;case"float":case"double":st('if(typeof %s!=="number")',pt)("return%j",et(ut,"number"));break;case"bool":st('if(typeof %s!=="boolean")',pt)("return%j",et(ut,"boolean"));break;case"string":st("if(!util.isString(%s))",pt)("return%j",et(ut,"string"));break;case"bytes":st('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',pt,pt,pt)("return%j",et(ut,"buffer"));break}return st}function ot(st,ut,ct){switch(ut.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":st("if(!util.key32Re.test(%s))",ct)("return%j",et(ut,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":st("if(!util.key64Re.test(%s))",ct)("return%j",et(ut,"integer|Long key"));break;case"bool":st("if(!util.key2Re.test(%s))",ct)("return%j",et(ut,"boolean key"));break}return st}function at(st){var ut=nt.codegen(["m"],st.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),ct=st.oneofsArray,pt={};ct.length&&ut("var p={}");for(var dt=0;dt<st.fieldsArray.length;++dt){var ft=st._fieldsArray[dt].resolve(),bt="m"+nt.safeProp(ft.name);if(ft.optional&&ut("if(%s!=null&&m.hasOwnProperty(%j)){",bt,ft.name),ft.map)ut("if(!util.isObject(%s))",bt)("return%j",et(ft,"object"))("var k=Object.keys(%s)",bt)("for(var i=0;i<k.length;++i){"),ot(ut,ft,"k[i]"),rt(ut,ft,dt,bt+"[k[i]]")("}");else if(ft.repeated)ut("if(!Array.isArray(%s))",bt)("return%j",et(ft,"array"))("for(var i=0;i<%s.length;++i){",bt),rt(ut,ft,dt,bt+"[i]")("}");else{if(ft.partOf){var ht=nt.safeProp(ft.partOf.name);pt[ft.partOf.name]===1&&ut("if(p%s===1)",ht)("return%j",ft.partOf.name+": multiple values"),pt[ft.partOf.name]=1,ut("p%s=1",ht)}rt(ut,ft,dt,bt)}ft.optional&&ut("}")}return ut("return null")}return verifier_1}var converter={},hasRequiredConverter;function requireConverter(){return hasRequiredConverter||(hasRequiredConverter=1,function(tt){var nt=tt,et=require_enum(),rt=requireUtil();function ot(st,ut,ct,pt){var dt=!1;if(ut.resolvedType)if(ut.resolvedType instanceof et){st("switch(d%s){",pt);for(var ft=ut.resolvedType.values,bt=Object.keys(ft),ht=0;ht<bt.length;++ht)ft[bt[ht]]===ut.typeDefault&&!dt&&(st("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',pt,pt,pt),ut.repeated||st("break"),dt=!0),st("case%j:",bt[ht])("case %i:",ft[bt[ht]])("m%s=%j",pt,ft[bt[ht]])("break");st("}")}else st('if(typeof d%s!=="object")',pt)("throw TypeError(%j)",ut.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",pt,ct,pt);else{var Mt=!1;switch(ut.type){case"double":case"float":st("m%s=Number(d%s)",pt,pt);break;case"uint32":case"fixed32":st("m%s=d%s>>>0",pt,pt);break;case"int32":case"sint32":case"sfixed32":st("m%s=d%s|0",pt,pt);break;case"uint64":Mt=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":st("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",pt,pt,Mt)('else if(typeof d%s==="string")',pt)("m%s=parseInt(d%s,10)",pt,pt)('else if(typeof d%s==="number")',pt)("m%s=d%s",pt,pt)('else if(typeof d%s==="object")',pt)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",pt,pt,pt,Mt?"true":"");break;case"bytes":st('if(typeof d%s==="string")',pt)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",pt,pt,pt)("else if(d%s.length >= 0)",pt)("m%s=d%s",pt,pt);break;case"string":st("m%s=String(d%s)",pt,pt);break;case"bool":st("m%s=Boolean(d%s)",pt,pt);break}}return st}nt.fromObject=function(ut){var ct=ut.fieldsArray,pt=rt.codegen(["d"],ut.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!ct.length)return pt("return new this.ctor");pt("var m=new this.ctor");for(var dt=0;dt<ct.length;++dt){var ft=ct[dt].resolve(),bt=rt.safeProp(ft.name);ft.map?(pt("if(d%s){",bt)('if(typeof d%s!=="object")',bt)("throw TypeError(%j)",ft.fullName+": object expected")("m%s={}",bt)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",bt),ot(pt,ft,dt,bt+"[ks[i]]")("}")("}")):ft.repeated?(pt("if(d%s){",bt)("if(!Array.isArray(d%s))",bt)("throw TypeError(%j)",ft.fullName+": array expected")("m%s=[]",bt)("for(var i=0;i<d%s.length;++i){",bt),ot(pt,ft,dt,bt+"[i]")("}")("}")):(ft.resolvedType instanceof et||pt("if(d%s!=null){",bt),ot(pt,ft,dt,bt),ft.resolvedType instanceof et||pt("}"))}return pt("return m")};function at(st,ut,ct,pt){if(ut.resolvedType)ut.resolvedType instanceof et?st("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",pt,ct,pt,pt,ct,pt,pt):st("d%s=types[%i].toObject(m%s,o)",pt,ct,pt);else{var dt=!1;switch(ut.type){case"double":case"float":st("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",pt,pt,pt,pt);break;case"uint64":dt=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":st('if(typeof m%s==="number")',pt)("d%s=o.longs===String?String(m%s):m%s",pt,pt,pt)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",pt,pt,pt,pt,dt?"true":"",pt);break;case"bytes":st("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",pt,pt,pt,pt,pt);break;default:st("d%s=m%s",pt,pt);break}}return st}nt.toObject=function(ut){var ct=ut.fieldsArray.slice().sort(rt.compareFieldsById);if(!ct.length)return rt.codegen()("return {}");for(var pt=rt.codegen(["m","o"],ut.name+"$toObject")("if(!o)")("o={}")("var d={}"),dt=[],ft=[],bt=[],ht=0;ht<ct.length;++ht)ct[ht].partOf||(ct[ht].resolve().repeated?dt:ct[ht].map?ft:bt).push(ct[ht]);if(dt.length){for(pt("if(o.arrays||o.defaults){"),ht=0;ht<dt.length;++ht)pt("d%s=[]",rt.safeProp(dt[ht].name));pt("}")}if(ft.length){for(pt("if(o.objects||o.defaults){"),ht=0;ht<ft.length;++ht)pt("d%s={}",rt.safeProp(ft[ht].name));pt("}")}if(bt.length){for(pt("if(o.defaults){"),ht=0;ht<bt.length;++ht){var Mt=bt[ht],mt=rt.safeProp(Mt.name);if(Mt.resolvedType instanceof et)pt("d%s=o.enums===String?%j:%j",mt,Mt.resolvedType.valuesById[Mt.typeDefault],Mt.typeDefault);else if(Mt.long)pt("if(util.Long){")("var n=new util.Long(%i,%i,%j)",Mt.typeDefault.low,Mt.typeDefault.high,Mt.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",mt)("}else")("d%s=o.longs===String?%j:%i",mt,Mt.typeDefault.toString(),Mt.typeDefault.toNumber());else if(Mt.bytes){var Ot="["+Array.prototype.slice.call(Mt.typeDefault).join(",")+"]";pt("if(o.bytes===String)d%s=%j",mt,String.fromCharCode.apply(String,Mt.typeDefault))("else{")("d%s=%s",mt,Ot)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",mt,mt)("}")}else pt("d%s=%j",mt,Mt.typeDefault)}pt("}")}var zt=!1;for(ht=0;ht<ct.length;++ht){var Mt=ct[ht],yt=ut._fieldsArray.indexOf(Mt),mt=rt.safeProp(Mt.name);Mt.map?(zt||(zt=!0,pt("var ks2")),pt("if(m%s&&(ks2=Object.keys(m%s)).length){",mt,mt)("d%s={}",mt)("for(var j=0;j<ks2.length;++j){"),at(pt,Mt,yt,mt+"[ks2[j]]")("}")):Mt.repeated?(pt("if(m%s&&m%s.length){",mt,mt)("d%s=[]",mt)("for(var j=0;j<m%s.length;++j){",mt),at(pt,Mt,yt,mt+"[j]")("}")):(pt("if(m%s!=null&&m.hasOwnProperty(%j)){",mt,Mt.name),at(pt,Mt,yt,mt),Mt.partOf&&pt("if(o.oneofs)")("d%s=%j",rt.safeProp(Mt.partOf.name),Mt.name)),pt("}")}return pt("return d")}}(converter)),converter}var wrappers={};(function(tt){var nt=tt,et=message;nt[".google.protobuf.Any"]={fromObject:function(rt){if(rt&&rt["@type"]){var ot=rt["@type"].substring(rt["@type"].lastIndexOf("/")+1),at=this.lookup(ot);if(at){var st=rt["@type"].charAt(0)==="."?rt["@type"].slice(1):rt["@type"];return st.indexOf("/")===-1&&(st="/"+st),this.create({type_url:st,value:at.encode(at.fromObject(rt)).finish()})}}return this.fromObject(rt)},toObject:function(rt,ot){var at="type.googleapis.com/",st="",ut="";if(ot&&ot.json&&rt.type_url&&rt.value){ut=rt.type_url.substring(rt.type_url.lastIndexOf("/")+1),st=rt.type_url.substring(0,rt.type_url.lastIndexOf("/")+1);var ct=this.lookup(ut);ct&&(rt=ct.decode(rt.value))}if(!(rt instanceof this.ctor)&&rt instanceof et){var pt=rt.$type.toObject(rt,ot),dt=rt.$type.fullName[0]==="."?rt.$type.fullName.slice(1):rt.$type.fullName;return st===""&&(st=at),ut=st+dt,pt["@type"]=ut,pt}return this.toObject(rt,ot)}}})(wrappers);var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1,type=mt;var tt=requireNamespace();((mt.prototype=Object.create(tt.prototype)).constructor=mt).className="Type";var nt=require_enum(),et=requireOneof(),rt=requireField(),ot=requireMapfield(),at=requireService(),st=message,ut=reader,ct=writer,pt=requireUtil(),dt=requireEncoder(),ft=requireDecoder(),bt=requireVerifier(),ht=requireConverter(),Mt=wrappers;function mt(zt,yt){tt.call(this,zt,yt),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(mt.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var zt=Object.keys(this.fields),yt=0;yt<zt.length;++yt){var vt=this.fields[zt[yt]],At=vt.id;if(this._fieldsById[At])throw Error("duplicate id "+At+" in "+this);this._fieldsById[At]=vt}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=pt.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=pt.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=mt.generateConstructor(this)())},set:function(zt){var yt=zt.prototype;yt instanceof st||((zt.prototype=new st).constructor=zt,pt.merge(zt.prototype,yt)),zt.$type=zt.prototype.$type=this,pt.merge(zt,st,!0),this._ctor=zt;for(var vt=0;vt<this.fieldsArray.length;++vt)this._fieldsArray[vt].resolve();var At={};for(vt=0;vt<this.oneofsArray.length;++vt)At[this._oneofsArray[vt].resolve().name]={get:pt.oneOfGetter(this._oneofsArray[vt].oneof),set:pt.oneOfSetter(this._oneofsArray[vt].oneof)};vt&&Object.defineProperties(zt.prototype,At)}}}),mt.generateConstructor=function(yt){for(var vt=pt.codegen(["p"],yt.name),At=0,St;At<yt.fieldsArray.length;++At)(St=yt._fieldsArray[At]).map?vt("this%s={}",pt.safeProp(St.name)):St.repeated&&vt("this%s=[]",pt.safeProp(St.name));return vt("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")};function Ot(zt){return zt._fieldsById=zt._fieldsArray=zt._oneofsArray=null,delete zt.encode,delete zt.decode,delete zt.verify,zt}return mt.fromJSON=function(yt,vt){var At=new mt(yt,vt.options);At.extensions=vt.extensions,At.reserved=vt.reserved;for(var St=Object.keys(vt.fields),Et=0;Et<St.length;++Et)At.add((typeof vt.fields[St[Et]].keyType<"u"?ot.fromJSON:rt.fromJSON)(St[Et],vt.fields[St[Et]]));if(vt.oneofs)for(St=Object.keys(vt.oneofs),Et=0;Et<St.length;++Et)At.add(et.fromJSON(St[Et],vt.oneofs[St[Et]]));if(vt.nested)for(St=Object.keys(vt.nested),Et=0;Et<St.length;++Et){var Tt=vt.nested[St[Et]];At.add((Tt.id!==void 0?rt.fromJSON:Tt.fields!==void 0?mt.fromJSON:Tt.values!==void 0?nt.fromJSON:Tt.methods!==void 0?at.fromJSON:tt.fromJSON)(St[Et],Tt))}return vt.extensions&&vt.extensions.length&&(At.extensions=vt.extensions),vt.reserved&&vt.reserved.length&&(At.reserved=vt.reserved),vt.group&&(At.group=!0),vt.comment&&(At.comment=vt.comment),At},mt.prototype.toJSON=function(yt){var vt=tt.prototype.toJSON.call(this,yt),At=yt?!!yt.keepComments:!1;return pt.toObject(["options",vt&&vt.options||void 0,"oneofs",tt.arrayToJSON(this.oneofsArray,yt),"fields",tt.arrayToJSON(this.fieldsArray.filter(function(St){return!St.declaringField}),yt)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",vt&&vt.nested||void 0,"comment",At?this.comment:void 0])},mt.prototype.resolveAll=function(){for(var yt=this.fieldsArray,vt=0;vt<yt.length;)yt[vt++].resolve();var At=this.oneofsArray;for(vt=0;vt<At.length;)At[vt++].resolve();return tt.prototype.resolveAll.call(this)},mt.prototype.get=function(yt){return this.fields[yt]||this.oneofs&&this.oneofs[yt]||this.nested&&this.nested[yt]||null},mt.prototype.add=function(yt){if(this.get(yt.name))throw Error("duplicate name '"+yt.name+"' in "+this);if(yt instanceof rt&&yt.extend===void 0){if(this._fieldsById?this._fieldsById[yt.id]:this.fieldsById[yt.id])throw Error("duplicate id "+yt.id+" in "+this);if(this.isReservedId(yt.id))throw Error("id "+yt.id+" is reserved in "+this);if(this.isReservedName(yt.name))throw Error("name '"+yt.name+"' is reserved in "+this);return yt.parent&&yt.parent.remove(yt),this.fields[yt.name]=yt,yt.message=this,yt.onAdd(this),Ot(this)}return yt instanceof et?(this.oneofs||(this.oneofs={}),this.oneofs[yt.name]=yt,yt.onAdd(this),Ot(this)):tt.prototype.add.call(this,yt)},mt.prototype.remove=function(yt){if(yt instanceof rt&&yt.extend===void 0){if(!this.fields||this.fields[yt.name]!==yt)throw Error(yt+" is not a member of "+this);return delete this.fields[yt.name],yt.parent=null,yt.onRemove(this),Ot(this)}if(yt instanceof et){if(!this.oneofs||this.oneofs[yt.name]!==yt)throw Error(yt+" is not a member of "+this);return delete this.oneofs[yt.name],yt.parent=null,yt.onRemove(this),Ot(this)}return tt.prototype.remove.call(this,yt)},mt.prototype.isReservedId=function(yt){return tt.isReservedId(this.reserved,yt)},mt.prototype.isReservedName=function(yt){return tt.isReservedName(this.reserved,yt)},mt.prototype.create=function(yt){return new this.ctor(yt)},mt.prototype.setup=function(){for(var yt=this.fullName,vt=[],At=0;At<this.fieldsArray.length;++At)vt.push(this._fieldsArray[At].resolve().resolvedType);this.encode=dt(this)({Writer:ct,types:vt,util:pt}),this.decode=ft(this)({Reader:ut,types:vt,util:pt}),this.verify=bt(this)({types:vt,util:pt}),this.fromObject=ht.fromObject(this)({types:vt,util:pt}),this.toObject=ht.toObject(this)({types:vt,util:pt});var St=Mt[yt];if(St){var Et=Object.create(this);Et.fromObject=this.fromObject,this.fromObject=St.fromObject.bind(Et),Et.toObject=this.toObject,this.toObject=St.toObject.bind(Et)}return this},mt.prototype.encode=function(yt,vt){return this.setup().encode(yt,vt)},mt.prototype.encodeDelimited=function(yt,vt){return this.encode(yt,vt&&vt.len?vt.fork():vt).ldelim()},mt.prototype.decode=function(yt,vt){return this.setup().decode(yt,vt)},mt.prototype.decodeDelimited=function(yt){return yt instanceof ut||(yt=ut.create(yt)),this.decode(yt,yt.uint32())},mt.prototype.verify=function(yt){return this.setup().verify(yt)},mt.prototype.fromObject=function(yt){return this.setup().fromObject(yt)},mt.prototype.toObject=function(yt,vt){return this.setup().toObject(yt,vt)},mt.d=function(yt){return function(At){pt.decorateType(At,yt)}},type}var root,hasRequiredRoot;function requireRoot(){if(hasRequiredRoot)return root;hasRequiredRoot=1,root=ct;var tt=requireNamespace();((ct.prototype=Object.create(tt.prototype)).constructor=ct).className="Root";var nt=requireField(),et=require_enum(),rt=requireOneof(),ot=requireUtil(),at,st,ut;function ct(bt){tt.call(this,"",bt),this.deferred=[],this.files=[]}ct.fromJSON=function(ht,Mt){return Mt||(Mt=new ct),ht.options&&Mt.setOptions(ht.options),Mt.addJSON(ht.nested)},ct.prototype.resolvePath=ot.path.resolve,ct.prototype.fetch=ot.fetch;function pt(){}ct.prototype.load=function bt(ht,Mt,mt){typeof Mt=="function"&&(mt=Mt,Mt=void 0);var Ot=this;if(!mt)return ot.asPromise(bt,Ot,ht,Mt);var zt=mt===pt;function yt(Ct,wt){if(mt){if(zt)throw Ct;var Lt=mt;mt=null,Lt(Ct,wt)}}function vt(Ct){var wt=Ct.lastIndexOf("google/protobuf/");if(wt>-1){var Lt=Ct.substring(wt);if(Lt in ut)return Lt}return null}function At(Ct,wt){try{if(ot.isString(wt)&&wt.charAt(0)==="{"&&(wt=JSON.parse(wt)),!ot.isString(wt))Ot.setOptions(wt.options).addJSON(wt.nested);else{st.filename=Ct;var Lt=st(wt,Ot,Mt),Ht,jt=0;if(Lt.imports)for(;jt<Lt.imports.length;++jt)(Ht=vt(Lt.imports[jt])||Ot.resolvePath(Ct,Lt.imports[jt]))&&St(Ht);if(Lt.weakImports)for(jt=0;jt<Lt.weakImports.length;++jt)(Ht=vt(Lt.weakImports[jt])||Ot.resolvePath(Ct,Lt.weakImports[jt]))&&St(Ht,!0)}}catch(s0){yt(s0)}!zt&&!Et&&yt(null,Ot)}function St(Ct,wt){if(Ct=vt(Ct)||Ct,!(Ot.files.indexOf(Ct)>-1)){if(Ot.files.push(Ct),Ct in ut){zt?At(Ct,ut[Ct]):(++Et,setTimeout(function(){--Et,At(Ct,ut[Ct])}));return}if(zt){var Lt;try{Lt=ot.fs.readFileSync(Ct).toString("utf8")}catch(Ht){wt||yt(Ht);return}At(Ct,Lt)}else++Et,Ot.fetch(Ct,function(Ht,jt){if(--Et,!!mt){if(Ht){wt?Et||yt(null,Ot):yt(Ht);return}At(Ct,jt)}})}}var Et=0;ot.isString(ht)&&(ht=[ht]);for(var Tt=0,Rt;Tt<ht.length;++Tt)(Rt=Ot.resolvePath("",ht[Tt]))&&St(Rt);if(zt)return Ot;Et||yt(null,Ot)},ct.prototype.loadSync=function(ht,Mt){if(!ot.isNode)throw Error("not supported");return this.load(ht,Mt,pt)},ct.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(ht){return"'extend "+ht.extend+"' in "+ht.parent.fullName}).join(", "));return tt.prototype.resolveAll.call(this)};var dt=/^[A-Z]/;function ft(bt,ht){var Mt=ht.parent.lookup(ht.extend);if(Mt){var mt=new nt(ht.fullName,ht.id,ht.type,ht.rule,void 0,ht.options);return Mt.get(mt.name)||(mt.declaringField=ht,ht.extensionField=mt,Mt.add(mt)),!0}return!1}return ct.prototype._handleAdd=function(ht){if(ht instanceof nt)ht.extend!==void 0&&!ht.extensionField&&(ft(this,ht)||this.deferred.push(ht));else if(ht instanceof et)dt.test(ht.name)&&(ht.parent[ht.name]=ht.values);else if(!(ht instanceof rt)){if(ht instanceof at)for(var Mt=0;Mt<this.deferred.length;)ft(this,this.deferred[Mt])?this.deferred.splice(Mt,1):++Mt;for(var mt=0;mt<ht.nestedArray.length;++mt)this._handleAdd(ht._nestedArray[mt]);dt.test(ht.name)&&(ht.parent[ht.name]=ht)}},ct.prototype._handleRemove=function(ht){if(ht instanceof nt){if(ht.extend!==void 0)if(ht.extensionField)ht.extensionField.parent.remove(ht.extensionField),ht.extensionField=null;else{var Mt=this.deferred.indexOf(ht);Mt>-1&&this.deferred.splice(Mt,1)}}else if(ht instanceof et)dt.test(ht.name)&&delete ht.parent[ht.name];else if(ht instanceof tt){for(var mt=0;mt<ht.nestedArray.length;++mt)this._handleRemove(ht._nestedArray[mt]);dt.test(ht.name)&&delete ht.parent[ht.name]}},ct._configure=function(bt,ht,Mt){at=bt,st=ht,ut=Mt},root}var hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util$2.exports;hasRequiredUtil=1;var tt=util$2.exports=requireMinimal(),nt=roots,et,rt;tt.codegen=codegen_1,tt.fetch=fetch_1,tt.path=path,tt.fs=tt.inquire("fs"),tt.toArray=function(pt){if(pt){for(var dt=Object.keys(pt),ft=new Array(dt.length),bt=0;bt<dt.length;)ft[bt]=pt[dt[bt++]];return ft}return[]},tt.toObject=function(pt){for(var dt={},ft=0;ft<pt.length;){var bt=pt[ft++],ht=pt[ft++];ht!==void 0&&(dt[bt]=ht)}return dt};var ot=/\\/g,at=/"/g;tt.isReserved=function(pt){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(pt)},tt.safeProp=function(pt){return!/^[$\w_]+$/.test(pt)||tt.isReserved(pt)?'["'+pt.replace(ot,"\\\\").replace(at,'\\"')+'"]':"."+pt},tt.ucFirst=function(pt){return pt.charAt(0).toUpperCase()+pt.substring(1)};var st=/_([a-z])/g;tt.camelCase=function(pt){return pt.substring(0,1)+pt.substring(1).replace(st,function(dt,ft){return ft.toUpperCase()})},tt.compareFieldsById=function(pt,dt){return pt.id-dt.id},tt.decorateType=function(pt,dt){if(pt.$type)return dt&&pt.$type.name!==dt&&(tt.decorateRoot.remove(pt.$type),pt.$type.name=dt,tt.decorateRoot.add(pt.$type)),pt.$type;et||(et=requireType());var ft=new et(dt||pt.name);return tt.decorateRoot.add(ft),ft.ctor=pt,Object.defineProperty(pt,"$type",{value:ft,enumerable:!1}),Object.defineProperty(pt.prototype,"$type",{value:ft,enumerable:!1}),ft};var ut=0;return tt.decorateEnum=function(pt){if(pt.$type)return pt.$type;rt||(rt=require_enum());var dt=new rt("Enum"+ut++,pt);return tt.decorateRoot.add(dt),Object.defineProperty(pt,"$type",{value:dt,enumerable:!1}),dt},tt.setProperty=function(pt,dt,ft){function bt(ht,Mt,mt){var Ot=Mt.shift();if(Ot==="__proto__"||Ot==="prototype")return ht;if(Mt.length>0)ht[Ot]=bt(ht[Ot]||{},Mt,mt);else{var zt=ht[Ot];zt&&(mt=[].concat(zt).concat(mt)),ht[Ot]=mt}return ht}if(typeof pt!="object")throw TypeError("dst must be an object");if(!dt)throw TypeError("path must be specified");return dt=dt.split("."),bt(pt,dt,ft)},Object.defineProperty(tt,"decorateRoot",{get:function(){return nt.decorated||(nt.decorated=new(requireRoot()))}}),util$2.exports}var object,hasRequiredObject;function requireObject(){if(hasRequiredObject)return object;hasRequiredObject=1,object=et,et.className="ReflectionObject";var tt=requireUtil(),nt;function et(rt,ot){if(!tt.isString(rt))throw TypeError("name must be a string");if(ot&&!tt.isObject(ot))throw TypeError("options must be an object");this.options=ot,this.parsedOptions=null,this.name=rt,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}return Object.defineProperties(et.prototype,{root:{get:function(){for(var rt=this;rt.parent!==null;)rt=rt.parent;return rt}},fullName:{get:function(){for(var rt=[this.name],ot=this.parent;ot;)rt.unshift(ot.name),ot=ot.parent;return rt.join(".")}}}),et.prototype.toJSON=function(){throw Error()},et.prototype.onAdd=function(ot){this.parent&&this.parent!==ot&&this.parent.remove(this),this.parent=ot,this.resolved=!1;var at=ot.root;at instanceof nt&&at._handleAdd(this)},et.prototype.onRemove=function(ot){var at=ot.root;at instanceof nt&&at._handleRemove(this),this.parent=null,this.resolved=!1},et.prototype.resolve=function(){return this.resolved?this:(this.root instanceof nt&&(this.resolved=!0),this)},et.prototype.getOption=function(ot){if(this.options)return this.options[ot]},et.prototype.setOption=function(ot,at,st){return(!st||!this.options||this.options[ot]===void 0)&&((this.options||(this.options={}))[ot]=at),this},et.prototype.setParsedOption=function(ot,at,st){this.parsedOptions||(this.parsedOptions=[]);var ut=this.parsedOptions;if(st){var ct=ut.find(function(ft){return Object.prototype.hasOwnProperty.call(ft,ot)});if(ct){var pt=ct[ot];tt.setProperty(pt,st,at)}else ct={},ct[ot]=tt.setProperty({},st,at),ut.push(ct)}else{var dt={};dt[ot]=at,ut.push(dt)}return this},et.prototype.setOptions=function(ot,at){if(ot)for(var st=Object.keys(ot),ut=0;ut<st.length;++ut)this.setOption(st[ut],ot[st[ut]],at);return this},et.prototype.toString=function(){var ot=this.constructor.className,at=this.fullName;return at.length?ot+" "+at:ot},et._configure=function(rt){nt=rt},object}var _enum,hasRequired_enum;function require_enum(){if(hasRequired_enum)return _enum;hasRequired_enum=1,_enum=rt;var tt=requireObject();((rt.prototype=Object.create(tt.prototype)).constructor=rt).className="Enum";var nt=requireNamespace(),et=requireUtil();function rt(ot,at,st,ut,ct,pt){if(tt.call(this,ot,st),at&&typeof at!="object")throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=ut,this.comments=ct||{},this.valuesOptions=pt,this.reserved=void 0,at)for(var dt=Object.keys(at),ft=0;ft<dt.length;++ft)typeof at[dt[ft]]=="number"&&(this.valuesById[this.values[dt[ft]]=at[dt[ft]]]=dt[ft])}return rt.fromJSON=function(at,st){var ut=new rt(at,st.values,st.options,st.comment,st.comments);return ut.reserved=st.reserved,ut},rt.prototype.toJSON=function(at){var st=at?!!at.keepComments:!1;return et.toObject(["options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",st?this.comment:void 0,"comments",st?this.comments:void 0])},rt.prototype.add=function(at,st,ut,ct){if(!et.isString(at))throw TypeError("name must be a string");if(!et.isInteger(st))throw TypeError("id must be an integer");if(this.values[at]!==void 0)throw Error("duplicate name '"+at+"' in "+this);if(this.isReservedId(st))throw Error("id "+st+" is reserved in "+this);if(this.isReservedName(at))throw Error("name '"+at+"' is reserved in "+this);if(this.valuesById[st]!==void 0){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+st+" in "+this);this.values[at]=st}else this.valuesById[this.values[at]=st]=at;return ct&&(this.valuesOptions===void 0&&(this.valuesOptions={}),this.valuesOptions[at]=ct||null),this.comments[at]=ut||null,this},rt.prototype.remove=function(at){if(!et.isString(at))throw TypeError("name must be a string");var st=this.values[at];if(st==null)throw Error("name '"+at+"' does not exist in "+this);return delete this.valuesById[st],delete this.values[at],delete this.comments[at],this.valuesOptions&&delete this.valuesOptions[at],this},rt.prototype.isReservedId=function(at){return nt.isReservedId(this.reserved,at)},rt.prototype.isReservedName=function(at){return nt.isReservedName(this.reserved,at)},_enum}var encoder_1,hasRequiredEncoder;function requireEncoder(){if(hasRequiredEncoder)return encoder_1;hasRequiredEncoder=1,encoder_1=ot;var tt=require_enum(),nt=requireTypes(),et=requireUtil();function rt(at,st,ut,ct){return st.resolvedType.group?at("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",ut,ct,(st.id<<3|3)>>>0,(st.id<<3|4)>>>0):at("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",ut,ct,(st.id<<3|2)>>>0)}function ot(at){for(var st=et.codegen(["m","w"],at.name+"$encode")("if(!w)")("w=Writer.create()"),ut,ct,pt=at.fieldsArray.slice().sort(et.compareFieldsById),ut=0;ut<pt.length;++ut){var dt=pt[ut].resolve(),ft=at._fieldsArray.indexOf(dt),bt=dt.resolvedType instanceof tt?"int32":dt.type,ht=nt.basic[bt];ct="m"+et.safeProp(dt.name),dt.map?(st("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",ct,dt.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",ct)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(dt.id<<3|2)>>>0,8|nt.mapKey[dt.keyType],dt.keyType),ht===void 0?st("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",ft,ct):st(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|ht,bt,ct),st("}")("}")):dt.repeated?(st("if(%s!=null&&%s.length){",ct,ct),dt.packed&&nt.packed[bt]!==void 0?st("w.uint32(%i).fork()",(dt.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",ct)("w.%s(%s[i])",bt,ct)("w.ldelim()"):(st("for(var i=0;i<%s.length;++i)",ct),ht===void 0?rt(st,dt,ft,ct+"[i]"):st("w.uint32(%i).%s(%s[i])",(dt.id<<3|ht)>>>0,bt,ct)),st("}")):(dt.optional&&st("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",ct,dt.name),ht===void 0?rt(st,dt,ft,ct):st("w.uint32(%i).%s(%s)",(dt.id<<3|ht)>>>0,bt,ct))}return st("return w")}return encoder_1}var protobuf$1=indexLight.exports=indexMinimal;protobuf$1.build="light";function load(tt,nt,et){return typeof nt=="function"?(et=nt,nt=new protobuf$1.Root):nt||(nt=new protobuf$1.Root),nt.load(tt,et)}protobuf$1.load=load;function loadSync(tt,nt){return nt||(nt=new protobuf$1.Root),nt.loadSync(tt)}protobuf$1.loadSync=loadSync;protobuf$1.encoder=requireEncoder();protobuf$1.decoder=requireDecoder();protobuf$1.verifier=requireVerifier();protobuf$1.converter=requireConverter();protobuf$1.ReflectionObject=requireObject();protobuf$1.Namespace=requireNamespace();protobuf$1.Root=requireRoot();protobuf$1.Enum=require_enum();protobuf$1.Type=requireType();protobuf$1.Field=requireField();protobuf$1.OneOf=requireOneof();protobuf$1.MapField=requireMapfield();protobuf$1.Service=requireService();protobuf$1.Method=requireMethod();protobuf$1.Message=message;protobuf$1.wrappers=wrappers;protobuf$1.types=requireTypes();protobuf$1.util=requireUtil();protobuf$1.ReflectionObject._configure(protobuf$1.Root);protobuf$1.Namespace._configure(protobuf$1.Type,protobuf$1.Service,protobuf$1.Enum);protobuf$1.Root._configure(protobuf$1.Type);protobuf$1.Field._configure(protobuf$1.Type);var indexLightExports=indexLight.exports,tokenize_1=tokenize$1,delimRe=/[\s{}=;:[\],'"()<>]/g,stringDoubleRe=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,stringSingleRe=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,setCommentRe=/^ *[*/]+ */,setCommentAltRe=/^\s*\*?\/*/,setCommentSplitRe=/\n/g,whitespaceRe=/\s/,unescapeRe=/\\(.?)/g,unescapeMap={0:"\0",r:"\r",n:`
@@ -739,7 +739,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
739
739
  font-display: swap;
740
740
  src: url(${at}) format("woff2");
741
741
  }
742
- `});return jsx$1(Global,{styles:[css$2(nt)]})},isff=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function addEvent(tt,nt,et,rt){tt.addEventListener?tt.addEventListener(nt,et,rt):tt.attachEvent&&tt.attachEvent("on".concat(nt),et)}function removeEvent(tt,nt,et,rt){tt.removeEventListener?tt.removeEventListener(nt,et,rt):tt.detachEvent&&tt.detachEvent("on".concat(nt),et)}function getMods(tt,nt){const et=nt.slice(0,nt.length-1);for(let rt=0;rt<et.length;rt++)et[rt]=tt[et[rt].toLowerCase()];return et}function getKeys(tt){typeof tt!="string"&&(tt=""),tt=tt.replace(/\s/g,"");const nt=tt.split(",");let et=nt.lastIndexOf("");for(;et>=0;)nt[et-1]+=",",nt.splice(et,1),et=nt.lastIndexOf("");return nt}function compareArray(tt,nt){const et=tt.length>=nt.length?tt:nt,rt=tt.length>=nt.length?nt:tt;let ot=!0;for(let at=0;at<et.length;at++)rt.indexOf(et[at])===-1&&(ot=!1);return ot}const _keyMap={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":isff?173:189,"=":isff?61:187,";":isff?59:186,"'":222,"[":219,"]":221,"\\":220},_modifier={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},modifierMap={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_mods={16:!1,18:!1,17:!1,91:!1},_handlers={};for(let tt=1;tt<20;tt++)_keyMap["f".concat(tt)]=111+tt;let _downKeys=[],winListendFocus=null,_scope="all";const elementEventMap=new Map,code=tt=>_keyMap[tt.toLowerCase()]||_modifier[tt.toLowerCase()]||tt.toUpperCase().charCodeAt(0),getKey=tt=>Object.keys(_keyMap).find(nt=>_keyMap[nt]===tt),getModifier=tt=>Object.keys(_modifier).find(nt=>_modifier[nt]===tt);function setScope(tt){_scope=tt||"all"}function getScope(){return _scope||"all"}function getPressedKeyCodes(){return _downKeys.slice(0)}function getPressedKeyString(){return _downKeys.map(tt=>getKey(tt)||getModifier(tt)||String.fromCharCode(tt))}function getAllKeyCodes(){const tt=[];return Object.keys(_handlers).forEach(nt=>{_handlers[nt].forEach(et=>{let{key:rt,scope:ot,mods:at,shortcut:st}=et;tt.push({scope:ot,shortcut:st,mods:at,keys:rt.split("+").map(ut=>code(ut))})})}),tt}function filter(tt){const nt=tt.target||tt.srcElement,{tagName:et}=nt;let rt=!0;const ot=et==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(nt.type);return(nt.isContentEditable||(ot||et==="TEXTAREA"||et==="SELECT")&&!nt.readOnly)&&(rt=!1),rt}function isPressed(tt){return typeof tt=="string"&&(tt=code(tt)),_downKeys.indexOf(tt)!==-1}function deleteScope(tt,nt){let et,rt;tt||(tt=getScope());for(const ot in _handlers)if(Object.prototype.hasOwnProperty.call(_handlers,ot))for(et=_handlers[ot],rt=0;rt<et.length;)et[rt].scope===tt?et.splice(rt,1).forEach(st=>{let{element:ut}=st;return removeKeyEvent(ut)}):rt++;getScope()===tt&&setScope(nt||"all")}function clearModifier(tt){let nt=tt.keyCode||tt.which||tt.charCode;const et=_downKeys.indexOf(nt);if(et>=0&&_downKeys.splice(et,1),tt.key&&tt.key.toLowerCase()==="meta"&&_downKeys.splice(0,_downKeys.length),(nt===93||nt===224)&&(nt=91),nt in _mods){_mods[nt]=!1;for(const rt in _modifier)_modifier[rt]===nt&&(hotkeys[rt]=!1)}}function unbind(tt){if(typeof tt>"u")Object.keys(_handlers).forEach(ot=>{Array.isArray(_handlers[ot])&&_handlers[ot].forEach(at=>eachUnbind(at)),delete _handlers[ot]}),removeKeyEvent(null);else if(Array.isArray(tt))tt.forEach(ot=>{ot.key&&eachUnbind(ot)});else if(typeof tt=="object")tt.key&&eachUnbind(tt);else if(typeof tt=="string"){for(var nt=arguments.length,et=new Array(nt>1?nt-1:0),rt=1;rt<nt;rt++)et[rt-1]=arguments[rt];let[ot,at]=et;typeof ot=="function"&&(at=ot,ot=""),eachUnbind({key:tt,scope:ot,method:at,splitKey:"+"})}}const eachUnbind=tt=>{let{key:nt,scope:et,method:rt,splitKey:ot="+"}=tt;getKeys(nt).forEach(st=>{const ut=st.split(ot),ct=ut.length,pt=ut[ct-1],dt=pt==="*"?"*":code(pt);if(!_handlers[dt])return;et||(et=getScope());const ft=ct>1?getMods(_modifier,ut):[],bt=[];_handlers[dt]=_handlers[dt].filter(ht=>{const mt=(rt?ht.method===rt:!0)&&ht.scope===et&&compareArray(ht.mods,ft);return mt&&bt.push(ht.element),!mt}),bt.forEach(ht=>removeKeyEvent(ht))})};function eventHandler(tt,nt,et,rt){if(nt.element!==rt)return;let ot;if(nt.scope===et||nt.scope==="all"){ot=nt.mods.length>0;for(const at in _mods)Object.prototype.hasOwnProperty.call(_mods,at)&&(!_mods[at]&&nt.mods.indexOf(+at)>-1||_mods[at]&&nt.mods.indexOf(+at)===-1)&&(ot=!1);(nt.mods.length===0&&!_mods[16]&&!_mods[18]&&!_mods[17]&&!_mods[91]||ot||nt.shortcut==="*")&&(nt.keys=[],nt.keys=nt.keys.concat(_downKeys),nt.method(tt,nt)===!1&&(tt.preventDefault?tt.preventDefault():tt.returnValue=!1,tt.stopPropagation&&tt.stopPropagation(),tt.cancelBubble&&(tt.cancelBubble=!0)))}}function dispatch(tt,nt){const et=_handlers["*"];let rt=tt.keyCode||tt.which||tt.charCode;if(!hotkeys.filter.call(this,tt))return;if((rt===93||rt===224)&&(rt=91),_downKeys.indexOf(rt)===-1&&rt!==229&&_downKeys.push(rt),["ctrlKey","altKey","shiftKey","metaKey"].forEach(ut=>{const ct=modifierMap[ut];tt[ut]&&_downKeys.indexOf(ct)===-1?_downKeys.push(ct):!tt[ut]&&_downKeys.indexOf(ct)>-1?_downKeys.splice(_downKeys.indexOf(ct),1):ut==="metaKey"&&tt[ut]&&_downKeys.length===3&&(tt.ctrlKey||tt.shiftKey||tt.altKey||(_downKeys=_downKeys.slice(_downKeys.indexOf(ct))))}),rt in _mods){_mods[rt]=!0;for(const ut in _modifier)_modifier[ut]===rt&&(hotkeys[ut]=!0);if(!et)return}for(const ut in _mods)Object.prototype.hasOwnProperty.call(_mods,ut)&&(_mods[ut]=tt[modifierMap[ut]]);tt.getModifierState&&!(tt.altKey&&!tt.ctrlKey)&&tt.getModifierState("AltGraph")&&(_downKeys.indexOf(17)===-1&&_downKeys.push(17),_downKeys.indexOf(18)===-1&&_downKeys.push(18),_mods[17]=!0,_mods[18]=!0);const ot=getScope();if(et)for(let ut=0;ut<et.length;ut++)et[ut].scope===ot&&(tt.type==="keydown"&&et[ut].keydown||tt.type==="keyup"&&et[ut].keyup)&&eventHandler(tt,et[ut],ot,nt);if(!(rt in _handlers))return;const at=_handlers[rt],st=at.length;for(let ut=0;ut<st;ut++)if((tt.type==="keydown"&&at[ut].keydown||tt.type==="keyup"&&at[ut].keyup)&&at[ut].key){const ct=at[ut],{splitKey:pt}=ct,dt=ct.key.split(pt),ft=[];for(let bt=0;bt<dt.length;bt++)ft.push(code(dt[bt]));ft.sort().join("")===_downKeys.sort().join("")&&eventHandler(tt,ct,ot,nt)}}function hotkeys(tt,nt,et){_downKeys=[];const rt=getKeys(tt);let ot=[],at="all",st=document,ut=0,ct=!1,pt=!0,dt="+",ft=!1,bt=!1;for(et===void 0&&typeof nt=="function"&&(et=nt),Object.prototype.toString.call(nt)==="[object Object]"&&(nt.scope&&(at=nt.scope),nt.element&&(st=nt.element),nt.keyup&&(ct=nt.keyup),nt.keydown!==void 0&&(pt=nt.keydown),nt.capture!==void 0&&(ft=nt.capture),typeof nt.splitKey=="string"&&(dt=nt.splitKey),nt.single===!0&&(bt=!0)),typeof nt=="string"&&(at=nt),bt&&unbind(tt,at);ut<rt.length;ut++)tt=rt[ut].split(dt),ot=[],tt.length>1&&(ot=getMods(_modifier,tt)),tt=tt[tt.length-1],tt=tt==="*"?"*":code(tt),tt in _handlers||(_handlers[tt]=[]),_handlers[tt].push({keyup:ct,keydown:pt,scope:at,mods:ot,shortcut:rt[ut],method:et,key:rt[ut],splitKey:dt,element:st});if(typeof st<"u"&&window){if(!elementEventMap.has(st)){const ht=function(){let mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return dispatch(mt,st)},Mt=function(){let mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;dispatch(mt,st),clearModifier(mt)};elementEventMap.set(st,{keydownListener:ht,keyupListenr:Mt,capture:ft}),addEvent(st,"keydown",ht,ft),addEvent(st,"keyup",Mt,ft)}if(!winListendFocus){const ht=()=>{_downKeys=[]};winListendFocus={listener:ht,capture:ft},addEvent(window,"focus",ht,ft)}}}function trigger(tt){let nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(_handlers).forEach(et=>{_handlers[et].filter(ot=>ot.scope===nt&&ot.shortcut===tt).forEach(ot=>{ot&&ot.method&&ot.method()})})}function removeKeyEvent(tt){const nt=Object.values(_handlers).flat();if(nt.findIndex(rt=>{let{element:ot}=rt;return ot===tt})<0){const{keydownListener:rt,keyupListenr:ot,capture:at}=elementEventMap.get(tt)||{};rt&&ot&&(removeEvent(tt,"keyup",ot,at),removeEvent(tt,"keydown",rt,at),elementEventMap.delete(tt))}if((nt.length<=0||elementEventMap.size<=0)&&(Object.keys(elementEventMap).forEach(ot=>{const{keydownListener:at,keyupListenr:st,capture:ut}=elementEventMap.get(ot)||{};at&&st&&(removeEvent(ot,"keyup",st,ut),removeEvent(ot,"keydown",at,ut),elementEventMap.delete(ot))}),elementEventMap.clear(),Object.keys(_handlers).forEach(ot=>delete _handlers[ot]),winListendFocus)){const{listener:ot,capture:at}=winListendFocus;removeEvent(window,"focus",ot,at),winListendFocus=null}}const _api={getPressedKeyString,setScope,getScope,deleteScope,getPressedKeyCodes,getAllKeyCodes,isPressed,filter,trigger,unbind,keyMap:_keyMap,modifier:_modifier,modifierMap};for(const tt in _api)Object.prototype.hasOwnProperty.call(_api,tt)&&(hotkeys[tt]=_api[tt]);if(typeof window<"u"){const tt=window.hotkeys;hotkeys.noConflict=nt=>(nt&&window.hotkeys===hotkeys&&(window.hotkeys=tt),hotkeys),window.hotkeys=hotkeys}class ReactHotkeys extends React$1.Component{constructor(nt){super(nt),this.isKeyDown=!1,this.handle=void 0,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.handleKeyUpEvent=this.handleKeyUpEvent.bind(this),this.handle={}}componentDidMount(){var{filter:nt,splitKey:et}=this.props;nt&&(hotkeys.filter=nt),hotkeys.unbind(this.props.keyName),hotkeys(this.props.keyName,{splitKey:et},this.onKeyDown),document&&document.body.addEventListener("keyup",this.handleKeyUpEvent)}componentWillUnmount(){hotkeys.unbind(this.props.keyName),this.isKeyDown=!0,this.handle={},document&&document.body.removeEventListener("keyup",this.handleKeyUpEvent)}onKeyUp(nt,et){var{onKeyUp:rt,disabled:ot}=this.props;!ot&&rt&&rt(et.shortcut,nt,et)}onKeyDown(nt,et){var{onKeyDown:rt,allowRepeat:ot,disabled:at}=this.props;this.isKeyDown&&!ot||(this.isKeyDown=!0,this.handle=et,!at&&rt&&rt(et.shortcut,nt,et))}handleKeyUpEvent(nt){this.isKeyDown&&(this.isKeyDown=!1,!(this.props.keyName&&this.props.keyName.indexOf(this.handle.shortcut)<0)&&(this.onKeyUp(nt,this.handle),this.handle={}))}render(){return this.props.children||null}}ReactHotkeys.defaultProps={filter(tt){var nt=tt.target||tt.srcElement,et=nt.tagName;return!(nt.isContentEditable||et==="INPUT"||et==="SELECT"||et==="TEXTAREA")}};ReactHotkeys.propTypes={keyName:propTypesExports.string,filter:propTypesExports.func,onKeyDown:propTypesExports.func,onKeyUp:propTypesExports.func,disabled:propTypesExports.bool,splitKey:propTypesExports.string};var baseIndexOf=_baseIndexOf;function arrayIncludes$1(tt,nt){var et=tt==null?0:tt.length;return!!et&&baseIndexOf(tt,nt,0)>-1}var _arrayIncludes=arrayIncludes$1;function arrayIncludesWith$1(tt,nt,et){for(var rt=-1,ot=tt==null?0:tt.length;++rt<ot;)if(et(nt,tt[rt]))return!0;return!1}var _arrayIncludesWith=arrayIncludesWith$1,SetCache=_SetCache,arrayIncludes=_arrayIncludes,arrayIncludesWith=_arrayIncludesWith,arrayMap=_arrayMap,baseUnary=_baseUnary,cacheHas=_cacheHas,LARGE_ARRAY_SIZE=200;function baseDifference$1(tt,nt,et,rt){var ot=-1,at=arrayIncludes,st=!0,ut=tt.length,ct=[],pt=nt.length;if(!ut)return ct;et&&(nt=arrayMap(nt,baseUnary(et))),rt?(at=arrayIncludesWith,st=!1):nt.length>=LARGE_ARRAY_SIZE&&(at=cacheHas,st=!1,nt=new SetCache(nt));e:for(;++ot<ut;){var dt=tt[ot],ft=et==null?dt:et(dt);if(dt=rt||dt!==0?dt:0,st&&ft===ft){for(var bt=pt;bt--;)if(nt[bt]===ft)continue e;ct.push(dt)}else at(nt,ft,rt)||ct.push(dt)}return ct}var _baseDifference=baseDifference$1,baseDifference=_baseDifference,baseRest=_baseRest,isArrayLikeObject=isArrayLikeObject_1,without=baseRest(function(tt,nt){return isArrayLikeObject(tt)?baseDifference(tt,nt):[]}),without_1=without;const without$1=getDefaultExportFromCjs$1(without_1);var uaParser={exports:{}};(function(tt,nt){(function(et,rt){var ot="1.0.39",at="",st="?",ut="function",ct="undefined",pt="object",dt="string",ft="major",bt="model",ht="name",Mt="type",mt="vendor",Ot="version",zt="architecture",yt="console",vt="mobile",At="tablet",St="smarttv",Et="wearable",Tt="embedded",Rt=500,Ct="Amazon",wt="Apple",Lt="ASUS",Ht="BlackBerry",jt="Browser",s0="Chrome",Ut="Edge",Yt="Firefox",O0="Google",a0="Huawei",b0="LG",kt="Microsoft",o0="Motorola",qt="Opera",Dt="Samsung",Bt="Sharp",p0="Sony",r0="Xiaomi",l0="Zebra",f0="Facebook",i0="Chromium OS",$t="Mac OS",It=" Browser",Vt=function(e0,Nt){var Xt={};for(var d0 in e0)Nt[d0]&&Nt[d0].length%2===0?Xt[d0]=Nt[d0].concat(e0[d0]):Xt[d0]=e0[d0];return Xt},xt=function(e0){for(var Nt={},Xt=0;Xt<e0.length;Xt++)Nt[e0[Xt].toUpperCase()]=e0[Xt];return Nt},Ft=function(e0,Nt){return typeof e0===dt?Pt(Nt).indexOf(Pt(e0))!==-1:!1},Pt=function(e0){return e0.toLowerCase()},Zt=function(e0){return typeof e0===dt?e0.replace(/[^\d\.]/g,at).split(".")[0]:rt},Kt=function(e0,Nt){if(typeof e0===dt)return e0=e0.replace(/^\s\s*/,at),typeof Nt===ct?e0:e0.substring(0,Rt)},n0=function(e0,Nt){for(var Xt=0,d0,z0,w0,E0,g0,k0;Xt<Nt.length&&!g0;){var I0=Nt[Xt],N0=Nt[Xt+1];for(d0=z0=0;d0<I0.length&&!g0&&I0[d0];)if(g0=I0[d0++].exec(e0),g0)for(w0=0;w0<N0.length;w0++)k0=g0[++z0],E0=N0[w0],typeof E0===pt&&E0.length>0?E0.length===2?typeof E0[1]==ut?this[E0[0]]=E0[1].call(this,k0):this[E0[0]]=E0[1]:E0.length===3?typeof E0[1]===ut&&!(E0[1].exec&&E0[1].test)?this[E0[0]]=k0?E0[1].call(this,k0,E0[2]):rt:this[E0[0]]=k0?k0.replace(E0[1],E0[2]):rt:E0.length===4&&(this[E0[0]]=k0?E0[3].call(this,k0.replace(E0[1],E0[2])):rt):this[E0]=k0||rt;Xt+=2}},c0=function(e0,Nt){for(var Xt in Nt)if(typeof Nt[Xt]===pt&&Nt[Xt].length>0){for(var d0=0;d0<Nt[Xt].length;d0++)if(Ft(Nt[Xt][d0],e0))return Xt===st?rt:Xt}else if(Ft(Nt[Xt],e0))return Xt===st?rt:Xt;return Nt.hasOwnProperty("*")?Nt["*"]:e0},u0={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},y0={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},D0={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[Ot,[ht,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[Ot,[ht,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[ht,Ot],[/opios[\/ ]+([\w\.]+)/i],[Ot,[ht,qt+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[Ot,[ht,qt+" GX"]],[/\bopr\/([\w\.]+)/i],[Ot,[ht,qt]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[Ot,[ht,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[ht,Ot],[/quark(?:pc)?\/([-\w\.]+)/i],[Ot,[ht,"Quark"]],[/\bddg\/([\w\.]+)/i],[Ot,[ht,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[Ot,[ht,"UC"+jt]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[Ot,[ht,"WeChat"]],[/konqueror\/([\w\.]+)/i],[Ot,[ht,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[Ot,[ht,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[Ot,[ht,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[Ot,[ht,"Smart Lenovo "+jt]],[/(avast|avg)\/([\w\.]+)/i],[[ht,/(.+)/,"$1 Secure "+jt],Ot],[/\bfocus\/([\w\.]+)/i],[Ot,[ht,Yt+" Focus"]],[/\bopt\/([\w\.]+)/i],[Ot,[ht,qt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[Ot,[ht,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[Ot,[ht,"Dolphin"]],[/coast\/([\w\.]+)/i],[Ot,[ht,qt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[Ot,[ht,"MIUI "+jt]],[/fxios\/([-\w\.]+)/i],[Ot,[ht,Yt]],[/\bqihu|(qi?ho?o?|360)browser/i],[[ht,"360"+It]],[/\b(qq)\/([\w\.]+)/i],[[ht,/(.+)/,"$1Browser"],Ot],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[ht,/(.+)/,"$1"+It],Ot],[/samsungbrowser\/([\w\.]+)/i],[Ot,[ht,Dt+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[ht,/_/g," "],Ot],[/metasr[\/ ]?([\d\.]+)/i],[Ot,[ht,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[ht,"Sogou Mobile"],Ot],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[ht,Ot],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[ht],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[ht,f0],Ot],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[ht,Ot],[/\bgsa\/([\w\.]+) .*safari\//i],[Ot,[ht,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[Ot,[ht,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[Ot,[ht,s0+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[ht,s0+" WebView"],Ot],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[Ot,[ht,"Android "+jt]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[ht,Ot],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[Ot,[ht,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[Ot,ht],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[ht,[Ot,c0,u0]],[/(webkit|khtml)\/([\w\.]+)/i],[ht,Ot],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[ht,"Netscape"],Ot],[/(wolvic)\/([\w\.]+)/i],[ht,Ot],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[Ot,[ht,Yt+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[ht,[Ot,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[ht,[Ot,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[zt,"amd64"]],[/(ia32(?=;))/i],[[zt,Pt]],[/((?:i[346]|x)86)[;\)]/i],[[zt,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[zt,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[zt,"armhf"]],[/windows (ce|mobile); ppc;/i],[[zt,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[zt,/ower/,at,Pt]],[/(sun4\w)[;\)]/i],[[zt,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[zt,Pt]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[bt,[mt,Dt],[Mt,At]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[bt,[mt,Dt],[Mt,vt]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[bt,[mt,wt],[Mt,vt]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[bt,[mt,wt],[Mt,At]],[/(macintosh);/i],[bt,[mt,wt]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[bt,[mt,Bt],[Mt,vt]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[bt,[mt,a0],[Mt,At]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[bt,[mt,a0],[Mt,vt]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[bt,/_/g," "],[mt,r0],[Mt,vt]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[bt,/_/g," "],[mt,r0],[Mt,At]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[bt,[mt,"OPPO"],[Mt,vt]],[/\b(opd2\d{3}a?) bui/i],[bt,[mt,"OPPO"],[Mt,At]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[bt,[mt,"Vivo"],[Mt,vt]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[bt,[mt,"Realme"],[Mt,vt]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[bt,[mt,o0],[Mt,vt]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[bt,[mt,o0],[Mt,At]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[bt,[mt,b0],[Mt,At]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[bt,[mt,b0],[Mt,vt]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[bt,[mt,"Lenovo"],[Mt,At]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[bt,/_/g," "],[mt,"Nokia"],[Mt,vt]],[/(pixel c)\b/i],[bt,[mt,O0],[Mt,At]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[bt,[mt,O0],[Mt,vt]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[bt,[mt,p0],[Mt,vt]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[bt,"Xperia Tablet"],[mt,p0],[Mt,At]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[bt,[mt,"OnePlus"],[Mt,vt]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[bt,[mt,Ct],[Mt,At]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[bt,/(.+)/g,"Fire Phone $1"],[mt,Ct],[Mt,vt]],[/(playbook);[-\w\),; ]+(rim)/i],[bt,mt,[Mt,At]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[bt,[mt,Ht],[Mt,vt]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[bt,[mt,Lt],[Mt,At]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[bt,[mt,Lt],[Mt,vt]],[/(nexus 9)/i],[bt,[mt,"HTC"],[Mt,At]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[mt,[bt,/_/g," "],[Mt,vt]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[bt,[mt,"TCL"],[Mt,At]],[/(itel) ((\w+))/i],[[mt,Pt],bt,[Mt,c0,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[bt,[mt,"Acer"],[Mt,At]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[bt,[mt,"Meizu"],[Mt,vt]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[bt,[mt,"Ulefone"],[Mt,vt]],[/droid.+; (a(?:015|06[35]|142p?))/i],[bt,[mt,"Nothing"],[Mt,vt]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[mt,bt,[Mt,vt]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[mt,bt,[Mt,At]],[/(surface duo)/i],[bt,[mt,kt],[Mt,At]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[bt,[mt,"Fairphone"],[Mt,vt]],[/(u304aa)/i],[bt,[mt,"AT&T"],[Mt,vt]],[/\bsie-(\w*)/i],[bt,[mt,"Siemens"],[Mt,vt]],[/\b(rct\w+) b/i],[bt,[mt,"RCA"],[Mt,At]],[/\b(venue[\d ]{2,7}) b/i],[bt,[mt,"Dell"],[Mt,At]],[/\b(q(?:mv|ta)\w+) b/i],[bt,[mt,"Verizon"],[Mt,At]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[bt,[mt,"Barnes & Noble"],[Mt,At]],[/\b(tm\d{3}\w+) b/i],[bt,[mt,"NuVision"],[Mt,At]],[/\b(k88) b/i],[bt,[mt,"ZTE"],[Mt,At]],[/\b(nx\d{3}j) b/i],[bt,[mt,"ZTE"],[Mt,vt]],[/\b(gen\d{3}) b.+49h/i],[bt,[mt,"Swiss"],[Mt,vt]],[/\b(zur\d{3}) b/i],[bt,[mt,"Swiss"],[Mt,At]],[/\b((zeki)?tb.*\b) b/i],[bt,[mt,"Zeki"],[Mt,At]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[mt,"Dragon Touch"],bt,[Mt,At]],[/\b(ns-?\w{0,9}) b/i],[bt,[mt,"Insignia"],[Mt,At]],[/\b((nxa|next)-?\w{0,9}) b/i],[bt,[mt,"NextBook"],[Mt,At]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[mt,"Voice"],bt,[Mt,vt]],[/\b(lvtel\-)?(v1[12]) b/i],[[mt,"LvTel"],bt,[Mt,vt]],[/\b(ph-1) /i],[bt,[mt,"Essential"],[Mt,vt]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[bt,[mt,"Envizen"],[Mt,At]],[/\b(trio[-\w\. ]+) b/i],[bt,[mt,"MachSpeed"],[Mt,At]],[/\btu_(1491) b/i],[bt,[mt,"Rotor"],[Mt,At]],[/(shield[\w ]+) b/i],[bt,[mt,"Nvidia"],[Mt,At]],[/(sprint) (\w+)/i],[mt,bt,[Mt,vt]],[/(kin\.[onetw]{3})/i],[[bt,/\./g," "],[mt,kt],[Mt,vt]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[bt,[mt,l0],[Mt,At]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[bt,[mt,l0],[Mt,vt]],[/smart-tv.+(samsung)/i],[mt,[Mt,St]],[/hbbtv.+maple;(\d+)/i],[[bt,/^/,"SmartTV"],[mt,Dt],[Mt,St]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[mt,b0],[Mt,St]],[/(apple) ?tv/i],[mt,[bt,wt+" TV"],[Mt,St]],[/crkey/i],[[bt,s0+"cast"],[mt,O0],[Mt,St]],[/droid.+aft(\w+)( bui|\))/i],[bt,[mt,Ct],[Mt,St]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[bt,[mt,Bt],[Mt,St]],[/(bravia[\w ]+)( bui|\))/i],[bt,[mt,p0],[Mt,St]],[/(mitv-\w{5}) bui/i],[bt,[mt,r0],[Mt,St]],[/Hbbtv.*(technisat) (.*);/i],[mt,bt,[Mt,St]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[mt,Kt],[bt,Kt],[Mt,St]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[Mt,St]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[mt,bt,[Mt,yt]],[/droid.+; (shield) bui/i],[bt,[mt,"Nvidia"],[Mt,yt]],[/(playstation [345portablevi]+)/i],[bt,[mt,p0],[Mt,yt]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[bt,[mt,kt],[Mt,yt]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[bt,[mt,Dt],[Mt,Et]],[/((pebble))app/i],[mt,bt,[Mt,Et]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[bt,[mt,wt],[Mt,Et]],[/droid.+; (glass) \d/i],[bt,[mt,O0],[Mt,Et]],[/droid.+; (wt63?0{2,3})\)/i],[bt,[mt,l0],[Mt,Et]],[/(quest( \d| pro)?)/i],[bt,[mt,f0],[Mt,Et]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[mt,[Mt,Tt]],[/(aeobc)\b/i],[bt,[mt,Ct],[Mt,Tt]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[bt,[Mt,vt]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[bt,[Mt,At]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[Mt,At]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[Mt,vt]],[/(android[-\w\. ]{0,9});.+buil/i],[bt,[mt,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[Ot,[ht,Ut+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[Ot,[ht,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[ht,Ot],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[Ot,ht]],os:[[/microsoft (windows) (vista|xp)/i],[ht,Ot],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[ht,[Ot,c0,y0]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[Ot,c0,y0],[ht,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[Ot,/_/g,"."],[ht,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[ht,$t],[Ot,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[Ot,ht],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[ht,Ot],[/\(bb(10);/i],[Ot,[ht,Ht]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[Ot,[ht,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[Ot,[ht,Yt+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[Ot,[ht,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[Ot,[ht,"watchOS"]],[/crkey\/([\d\.]+)/i],[Ot,[ht,s0+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[ht,i0],Ot],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[ht,Ot],[/(sunos) ?([\w\.\d]*)/i],[[ht,"Solaris"],Ot],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[ht,Ot]]},S0=function(e0,Nt){if(typeof e0===pt&&(Nt=e0,e0=rt),!(this instanceof S0))return new S0(e0,Nt).getResult();var Xt=typeof et!==ct&&et.navigator?et.navigator:rt,d0=e0||(Xt&&Xt.userAgent?Xt.userAgent:at),z0=Xt&&Xt.userAgentData?Xt.userAgentData:rt,w0=Nt?Vt(D0,Nt):D0,E0=Xt&&Xt.userAgent==d0;return this.getBrowser=function(){var g0={};return g0[ht]=rt,g0[Ot]=rt,n0.call(g0,d0,w0.browser),g0[ft]=Zt(g0[Ot]),E0&&Xt&&Xt.brave&&typeof Xt.brave.isBrave==ut&&(g0[ht]="Brave"),g0},this.getCPU=function(){var g0={};return g0[zt]=rt,n0.call(g0,d0,w0.cpu),g0},this.getDevice=function(){var g0={};return g0[mt]=rt,g0[bt]=rt,g0[Mt]=rt,n0.call(g0,d0,w0.device),E0&&!g0[Mt]&&z0&&z0.mobile&&(g0[Mt]=vt),E0&&g0[bt]=="Macintosh"&&Xt&&typeof Xt.standalone!==ct&&Xt.maxTouchPoints&&Xt.maxTouchPoints>2&&(g0[bt]="iPad",g0[Mt]=At),g0},this.getEngine=function(){var g0={};return g0[ht]=rt,g0[Ot]=rt,n0.call(g0,d0,w0.engine),g0},this.getOS=function(){var g0={};return g0[ht]=rt,g0[Ot]=rt,n0.call(g0,d0,w0.os),E0&&!g0[ht]&&z0&&z0.platform&&z0.platform!="Unknown"&&(g0[ht]=z0.platform.replace(/chrome os/i,i0).replace(/macos/i,$t)),g0},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return d0},this.setUA=function(g0){return d0=typeof g0===dt&&g0.length>Rt?Kt(g0,Rt):g0,this},this.setUA(d0),this};S0.VERSION=ot,S0.BROWSER=xt([ht,Ot,ft]),S0.CPU=xt([zt]),S0.DEVICE=xt([bt,mt,Mt,yt,vt,St,At,Et,Tt]),S0.ENGINE=S0.OS=xt([ht,Ot]),tt.exports&&(nt=tt.exports=S0),nt.UAParser=S0;var x0=typeof et!==ct&&(et.jQuery||et.Zepto);if(x0&&!x0.ua){var m0=new S0;x0.ua=m0.getResult(),x0.ua.get=function(){return m0.getUA()},x0.ua.set=function(e0){m0.setUA(e0);var Nt=m0.getResult();for(var Xt in Nt)x0.ua[Xt]=Nt[Xt]}}})(typeof window=="object"?window:commonjsGlobal$1)})(uaParser,uaParser.exports);var uaParserExports=uaParser.exports;const UAParser=getDefaultExportFromCjs$1(uaParserExports);function getBrowserInfo(){const nt=new UAParser().getResult();return{browserName:nt.browser.name||"Unknown",browserVersion:nt.browser.version||"Unknown",deviceType:nt.device.type||"desktop",os:nt.os.name||"Unknown"}}const AppContext=React$1.createContext({wideMode:!1,initialSidebarState:PageConfig.SidebarState.AUTO,embedded:!1,showPadding:!1,disableScrolling:!1,showToolbar:!1,showColoredLine:!1,pageLinkBaseUrl:"",sidebarChevronDownshift:0,gitInfo:null,appConfig:{}});var __extends$1=function(){var tt=function(nt,et){return tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(rt,ot){rt.__proto__=ot}||function(rt,ot){for(var at in ot)Object.prototype.hasOwnProperty.call(ot,at)&&(rt[at]=ot[at])},tt(nt,et)};return function(nt,et){tt(nt,et);function rt(){this.constructor=nt}nt.prototype=et===null?Object.create(et):(rt.prototype=et.prototype,new rt)}}(),__assign$1=function(){return __assign$1=Object.assign||function(tt){for(var nt,et=1,rt=arguments.length;et<rt;et++){nt=arguments[et];for(var ot in nt)Object.prototype.hasOwnProperty.call(nt,ot)&&(tt[ot]=nt[ot])}return tt},__assign$1.apply(this,arguments)},rowSizeBase={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},colSizeBase={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},edgeBase={width:"20px",height:"20px",position:"absolute"},styles={top:__assign$1(__assign$1({},rowSizeBase),{top:"-5px"}),right:__assign$1(__assign$1({},colSizeBase),{left:void 0,right:"-5px"}),bottom:__assign$1(__assign$1({},rowSizeBase),{top:void 0,bottom:"-5px"}),left:__assign$1(__assign$1({},colSizeBase),{left:"-5px"}),topRight:__assign$1(__assign$1({},edgeBase),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:__assign$1(__assign$1({},edgeBase),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:__assign$1(__assign$1({},edgeBase),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:__assign$1(__assign$1({},edgeBase),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Resizer=function(tt){__extends$1(nt,tt);function nt(){var et=tt!==null&&tt.apply(this,arguments)||this;return et.onMouseDown=function(rt){et.props.onResizeStart(rt,et.props.direction)},et.onTouchStart=function(rt){et.props.onResizeStart(rt,et.props.direction)},et}return nt.prototype.render=function(){return reactExports.createElement("div",{className:this.props.className||"",style:__assign$1(__assign$1({position:"absolute",userSelect:"none"},styles[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},nt}(reactExports.PureComponent),__extends=function(){var tt=function(nt,et){return tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(rt,ot){rt.__proto__=ot}||function(rt,ot){for(var at in ot)Object.prototype.hasOwnProperty.call(ot,at)&&(rt[at]=ot[at])},tt(nt,et)};return function(nt,et){tt(nt,et);function rt(){this.constructor=nt}nt.prototype=et===null?Object.create(et):(rt.prototype=et.prototype,new rt)}}(),__assign=function(){return __assign=Object.assign||function(tt){for(var nt,et=1,rt=arguments.length;et<rt;et++){nt=arguments[et];for(var ot in nt)Object.prototype.hasOwnProperty.call(nt,ot)&&(tt[ot]=nt[ot])}return tt},__assign.apply(this,arguments)},DEFAULT_SIZE={width:"auto",height:"auto"},clamp=function(tt,nt,et){return Math.max(Math.min(tt,et),nt)},snap=function(tt,nt,et){var rt=Math.round(tt/nt);return rt*nt+et*(rt-1)},hasDirection=function(tt,nt){return new RegExp(tt,"i").test(nt)},isTouchEvent=function(tt){return!!(tt.touches&&tt.touches.length)},isMouseEvent=function(tt){return!!((tt.clientX||tt.clientX===0)&&(tt.clientY||tt.clientY===0))},findClosestSnap=function(tt,nt,et){et===void 0&&(et=0);var rt=nt.reduce(function(at,st,ut){return Math.abs(st-tt)<Math.abs(nt[at]-tt)?ut:at},0),ot=Math.abs(nt[rt]-tt);return et===0||ot<et?nt[rt]:tt},getStringSize=function(tt){return tt=tt.toString(),tt==="auto"||tt.endsWith("px")||tt.endsWith("%")||tt.endsWith("vh")||tt.endsWith("vw")||tt.endsWith("vmax")||tt.endsWith("vmin")?tt:tt+"px"},getPixelSize=function(tt,nt,et,rt){if(tt&&typeof tt=="string"){if(tt.endsWith("px"))return Number(tt.replace("px",""));if(tt.endsWith("%")){var ot=Number(tt.replace("%",""))/100;return nt*ot}if(tt.endsWith("vw")){var ot=Number(tt.replace("vw",""))/100;return et*ot}if(tt.endsWith("vh")){var ot=Number(tt.replace("vh",""))/100;return rt*ot}}return tt},calculateNewMax=function(tt,nt,et,rt,ot,at,st){return rt=getPixelSize(rt,tt.width,nt,et),ot=getPixelSize(ot,tt.height,nt,et),at=getPixelSize(at,tt.width,nt,et),st=getPixelSize(st,tt.height,nt,et),{maxWidth:typeof rt>"u"?void 0:Number(rt),maxHeight:typeof ot>"u"?void 0:Number(ot),minWidth:typeof at>"u"?void 0:Number(at),minHeight:typeof st>"u"?void 0:Number(st)}},normalizeToPair=function(tt){return Array.isArray(tt)?tt:[tt,tt]},definedProps=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],baseClassName="__resizable_base__",Resizable=function(tt){__extends(nt,tt);function nt(et){var rt,ot,at,st,ut=tt.call(this,et)||this;return ut.ratio=1,ut.resizable=null,ut.parentLeft=0,ut.parentTop=0,ut.resizableLeft=0,ut.resizableRight=0,ut.resizableTop=0,ut.resizableBottom=0,ut.targetLeft=0,ut.targetTop=0,ut.appendBase=function(){if(!ut.resizable||!ut.window)return null;var ct=ut.parentNode;if(!ct)return null;var pt=ut.window.document.createElement("div");return pt.style.width="100%",pt.style.height="100%",pt.style.position="absolute",pt.style.transform="scale(0, 0)",pt.style.left="0",pt.style.flex="0 0 100%",pt.classList?pt.classList.add(baseClassName):pt.className+=baseClassName,ct.appendChild(pt),pt},ut.removeBase=function(ct){var pt=ut.parentNode;pt&&pt.removeChild(ct)},ut.state={isResizing:!1,width:(ot=(rt=ut.propsSize)===null||rt===void 0?void 0:rt.width)!==null&&ot!==void 0?ot:"auto",height:(st=(at=ut.propsSize)===null||at===void 0?void 0:at.height)!==null&&st!==void 0?st:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},ut.onResizeStart=ut.onResizeStart.bind(ut),ut.onMouseMove=ut.onMouseMove.bind(ut),ut.onMouseUp=ut.onMouseUp.bind(ut),ut}return Object.defineProperty(nt.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||DEFAULT_SIZE},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"size",{get:function(){var et=0,rt=0;if(this.resizable&&this.window){var ot=this.resizable.offsetWidth,at=this.resizable.offsetHeight,st=this.resizable.style.position;st!=="relative"&&(this.resizable.style.position="relative"),et=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:ot,rt=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:at,this.resizable.style.position=st}return{width:et,height:rt}},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"sizeStyle",{get:function(){var et=this,rt=this.props.size,ot=function(ut){var ct;if(typeof et.state[ut]>"u"||et.state[ut]==="auto")return"auto";if(et.propsSize&&et.propsSize[ut]&&(!((ct=et.propsSize[ut])===null||ct===void 0)&&ct.toString().endsWith("%"))){if(et.state[ut].toString().endsWith("%"))return et.state[ut].toString();var pt=et.getParentSize(),dt=Number(et.state[ut].toString().replace("px","")),ft=dt/pt[ut]*100;return ft+"%"}return getStringSize(et.state[ut])},at=rt&&typeof rt.width<"u"&&!this.state.isResizing?getStringSize(rt.width):ot("width"),st=rt&&typeof rt.height<"u"&&!this.state.isResizing?getStringSize(rt.height):ot("height");return{width:at,height:st}},enumerable:!1,configurable:!0}),nt.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var et=this.appendBase();if(!et)return{width:0,height:0};var rt=!1,ot=this.parentNode.style.flexWrap;ot!=="wrap"&&(rt=!0,this.parentNode.style.flexWrap="wrap"),et.style.position="relative",et.style.minWidth="100%",et.style.minHeight="100%";var at={width:et.offsetWidth,height:et.offsetHeight};return rt&&(this.parentNode.style.flexWrap=ot),this.removeBase(et),at},nt.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},nt.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},nt.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var et=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:et.flexBasis!=="auto"?et.flexBasis:void 0})}},nt.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},nt.prototype.createSizeForCssProperty=function(et,rt){var ot=this.propsSize&&this.propsSize[rt];return this.state[rt]==="auto"&&this.state.original[rt]===et&&(typeof ot>"u"||ot==="auto")?"auto":et},nt.prototype.calculateNewMaxFromBoundary=function(et,rt){var ot=this.props.boundsByDirection,at=this.state.direction,st=ot&&hasDirection("left",at),ut=ot&&hasDirection("top",at),ct,pt;if(this.props.bounds==="parent"){var dt=this.parentNode;dt&&(ct=st?this.resizableRight-this.parentLeft:dt.offsetWidth+(this.parentLeft-this.resizableLeft),pt=ut?this.resizableBottom-this.parentTop:dt.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(ct=st?this.resizableRight:this.window.innerWidth-this.resizableLeft,pt=ut?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(ct=st?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),pt=ut?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return ct&&Number.isFinite(ct)&&(et=et&&et<ct?et:ct),pt&&Number.isFinite(pt)&&(rt=rt&&rt<pt?rt:pt),{maxWidth:et,maxHeight:rt}},nt.prototype.calculateNewSizeFromDirection=function(et,rt){var ot=this.props.scale||1,at=normalizeToPair(this.props.resizeRatio||1),st=at[0],ut=at[1],ct=this.state,pt=ct.direction,dt=ct.original,ft=this.props,bt=ft.lockAspectRatio,ht=ft.lockAspectRatioExtraHeight,Mt=ft.lockAspectRatioExtraWidth,mt=dt.width,Ot=dt.height,zt=ht||0,yt=Mt||0;return hasDirection("right",pt)&&(mt=dt.width+(et-dt.x)*st/ot,bt&&(Ot=(mt-yt)/this.ratio+zt)),hasDirection("left",pt)&&(mt=dt.width-(et-dt.x)*st/ot,bt&&(Ot=(mt-yt)/this.ratio+zt)),hasDirection("bottom",pt)&&(Ot=dt.height+(rt-dt.y)*ut/ot,bt&&(mt=(Ot-zt)*this.ratio+yt)),hasDirection("top",pt)&&(Ot=dt.height-(rt-dt.y)*ut/ot,bt&&(mt=(Ot-zt)*this.ratio+yt)),{newWidth:mt,newHeight:Ot}},nt.prototype.calculateNewSizeFromAspectRatio=function(et,rt,ot,at){var st=this.props,ut=st.lockAspectRatio,ct=st.lockAspectRatioExtraHeight,pt=st.lockAspectRatioExtraWidth,dt=typeof at.width>"u"?10:at.width,ft=typeof ot.width>"u"||ot.width<0?et:ot.width,bt=typeof at.height>"u"?10:at.height,ht=typeof ot.height>"u"||ot.height<0?rt:ot.height,Mt=ct||0,mt=pt||0;if(ut){var Ot=(bt-Mt)*this.ratio+mt,zt=(ht-Mt)*this.ratio+mt,yt=(dt-mt)/this.ratio+Mt,vt=(ft-mt)/this.ratio+Mt,At=Math.max(dt,Ot),St=Math.min(ft,zt),Et=Math.max(bt,yt),Tt=Math.min(ht,vt);et=clamp(et,At,St),rt=clamp(rt,Et,Tt)}else et=clamp(et,dt,ft),rt=clamp(rt,bt,ht);return{newWidth:et,newHeight:rt}},nt.prototype.setBoundingClientRect=function(){var et=1/(this.props.scale||1);if(this.props.bounds==="parent"){var rt=this.parentNode;if(rt){var ot=rt.getBoundingClientRect();this.parentLeft=ot.left*et,this.parentTop=ot.top*et}}if(this.props.bounds&&typeof this.props.bounds!="string"){var at=this.props.bounds.getBoundingClientRect();this.targetLeft=at.left*et,this.targetTop=at.top*et}if(this.resizable){var st=this.resizable.getBoundingClientRect(),ut=st.left,ct=st.top,pt=st.right,dt=st.bottom;this.resizableLeft=ut*et,this.resizableRight=pt*et,this.resizableTop=ct*et,this.resizableBottom=dt*et}},nt.prototype.onResizeStart=function(et,rt){if(!(!this.resizable||!this.window)){var ot=0,at=0;if(et.nativeEvent&&isMouseEvent(et.nativeEvent)?(ot=et.nativeEvent.clientX,at=et.nativeEvent.clientY):et.nativeEvent&&isTouchEvent(et.nativeEvent)&&(ot=et.nativeEvent.touches[0].clientX,at=et.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var st=this.props.onResizeStart(et,rt,this.resizable);if(st===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var ut,ct=this.window.getComputedStyle(this.resizable);if(ct.flexBasis!=="auto"){var pt=this.parentNode;if(pt){var dt=this.window.getComputedStyle(pt).flexDirection;this.flexDir=dt.startsWith("row")?"row":"column",ut=ct.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var ft={original:{x:ot,y:at,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(et.target).cursor||"auto"}),direction:rt,flexBasis:ut};this.setState(ft)}},nt.prototype.onMouseMove=function(et){var rt=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&isTouchEvent(et))try{et.preventDefault(),et.stopPropagation()}catch{}var ot=this.props,at=ot.maxWidth,st=ot.maxHeight,ut=ot.minWidth,ct=ot.minHeight,pt=isTouchEvent(et)?et.touches[0].clientX:et.clientX,dt=isTouchEvent(et)?et.touches[0].clientY:et.clientY,ft=this.state,bt=ft.direction,ht=ft.original,Mt=ft.width,mt=ft.height,Ot=this.getParentSize(),zt=calculateNewMax(Ot,this.window.innerWidth,this.window.innerHeight,at,st,ut,ct);at=zt.maxWidth,st=zt.maxHeight,ut=zt.minWidth,ct=zt.minHeight;var yt=this.calculateNewSizeFromDirection(pt,dt),vt=yt.newHeight,At=yt.newWidth,St=this.calculateNewMaxFromBoundary(at,st);this.props.snap&&this.props.snap.x&&(At=findClosestSnap(At,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(vt=findClosestSnap(vt,this.props.snap.y,this.props.snapGap));var Et=this.calculateNewSizeFromAspectRatio(At,vt,{width:St.maxWidth,height:St.maxHeight},{width:ut,height:ct});if(At=Et.newWidth,vt=Et.newHeight,this.props.grid){var Tt=snap(At,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),Rt=snap(vt,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),Ct=this.props.snapGap||0,wt=Ct===0||Math.abs(Tt-At)<=Ct?Tt:At,Lt=Ct===0||Math.abs(Rt-vt)<=Ct?Rt:vt;At=wt,vt=Lt}var Ht={width:At-ht.width,height:vt-ht.height};if(Mt&&typeof Mt=="string"){if(Mt.endsWith("%")){var jt=At/Ot.width*100;At=jt+"%"}else if(Mt.endsWith("vw")){var s0=At/this.window.innerWidth*100;At=s0+"vw"}else if(Mt.endsWith("vh")){var Ut=At/this.window.innerHeight*100;At=Ut+"vh"}}if(mt&&typeof mt=="string"){if(mt.endsWith("%")){var jt=vt/Ot.height*100;vt=jt+"%"}else if(mt.endsWith("vw")){var s0=vt/this.window.innerWidth*100;vt=s0+"vw"}else if(mt.endsWith("vh")){var Ut=vt/this.window.innerHeight*100;vt=Ut+"vh"}}var Yt={width:this.createSizeForCssProperty(At,"width"),height:this.createSizeForCssProperty(vt,"height")};this.flexDir==="row"?Yt.flexBasis=Yt.width:this.flexDir==="column"&&(Yt.flexBasis=Yt.height);var O0=this.state.width!==Yt.width,a0=this.state.height!==Yt.height,b0=this.state.flexBasis!==Yt.flexBasis,kt=O0||a0||b0;kt&&reactDomExports.flushSync(function(){rt.setState(Yt)}),this.props.onResize&&kt&&this.props.onResize(et,bt,this.resizable,Ht)}},nt.prototype.onMouseUp=function(et){var rt,ot,at=this.state,st=at.isResizing,ut=at.direction,ct=at.original;if(!(!st||!this.resizable)){var pt={width:this.size.width-ct.width,height:this.size.height-ct.height};this.props.onResizeStop&&this.props.onResizeStop(et,ut,this.resizable,pt),this.props.size&&this.setState({width:(rt=this.props.size.width)!==null&&rt!==void 0?rt:"auto",height:(ot=this.props.size.height)!==null&&ot!==void 0?ot:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:"auto"})})}},nt.prototype.updateSize=function(et){var rt,ot;this.setState({width:(rt=et.width)!==null&&rt!==void 0?rt:"auto",height:(ot=et.height)!==null&&ot!==void 0?ot:"auto"})},nt.prototype.renderResizer=function(){var et=this,rt=this.props,ot=rt.enable,at=rt.handleStyles,st=rt.handleClasses,ut=rt.handleWrapperStyle,ct=rt.handleWrapperClass,pt=rt.handleComponent;if(!ot)return null;var dt=Object.keys(ot).map(function(ft){return ot[ft]!==!1?reactExports.createElement(Resizer,{key:ft,direction:ft,onResizeStart:et.onResizeStart,replaceStyles:at&&at[ft],className:st&&st[ft]},pt&&pt[ft]?pt[ft]:null):null});return reactExports.createElement("div",{className:ct,style:ut},dt)},nt.prototype.render=function(){var et=this,rt=Object.keys(this.props).reduce(function(st,ut){return definedProps.indexOf(ut)!==-1||(st[ut]=et.props[ut]),st},{}),ot=__assign(__assign(__assign({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(ot.flexBasis=this.state.flexBasis);var at=this.props.as||"div";return reactExports.createElement(at,__assign({style:ot,className:this.props.className},rt,{ref:function(st){st&&(et.resizable=st)}}),this.state.isResizing&&reactExports.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},nt.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},nt}(reactExports.PureComponent);const conditionalCustomColor=(tt,nt,et)=>{let rt=tt.colors.bodyText!==tt.colors.gray10;return hasLightBackgroundColor(tt)&&(rt=tt.colors.bodyText!==tt.colors.gray85),rt?nt:et},StyledSidebar=newStyled("section",{target:"e1exy9mp0"})(({theme:tt,isCollapsed:nt,adjustTop:et,sidebarWidth:rt})=>{const ot=nt?0:Math.min(244,window.innerWidth),at=nt?0:Math.min(550,window.innerWidth*.9);return{position:"relative",top:et?tt.sizes.headerDecorationHeight:tt.spacing.none,backgroundColor:tt.colors.bgColor,zIndex:tt.zIndices.header+1,minWidth:ot,maxWidth:at,transform:nt?`translateX(-${rt}px)`:"none",transition:"transform 300ms, min-width 300ms, max-width 300ms","&:focus":{outline:"none"},[`@media (max-width: ${tt.breakpoints.md})`]:{boxShadow:`-2rem 0 2rem 2rem ${nt?"transparent":"#00000029"}`},"@media print":{display:nt?"none":"initial",height:"auto !important",maxHeight:"99%",boxShadow:"none"}}}),StyledSidebarNavContainer=newStyled("div",{target:"e1exy9mp1"})({position:"relative"}),StyledSidebarNavItems=newStyled("ul",{target:"e1exy9mp2"})(({theme:tt})=>({listStyle:"none",margin:tt.spacing.none,paddingBottom:tt.spacing.threeXS,paddingTop:tt.spacing.none,paddingRight:tt.spacing.none,paddingLeft:tt.spacing.none})),StyledSidebarNavLinkContainer=newStyled("div",{target:"e1exy9mp3"})({display:"flex",flexDirection:"column"}),StyledSidebarNavIcon=newStyled("span",{target:"e1exy9mp4"})(({theme:tt,isActive:nt})=>{const et=conditionalCustomColor(tt,tt.colors.fadedText60,tt.colors.navIconColor),rt=conditionalCustomColor(tt,tt.colors.bodyText,tt.colors.navActiveTextColor);return{display:"inline-flex",span:{color:nt?rt:et,fontWeight:nt?tt.fontWeights.bold:tt.fontWeights.normal}}}),StyledSidebarNavLink=newStyled("a",{target:"e1exy9mp5"})(({theme:tt,isActive:nt})=>{const et=conditionalCustomColor(tt,tt.colors.bodyText,tt.colors.navTextColor),rt={textDecoration:"none",fontWeight:nt?tt.fontWeights.bold:tt.fontWeights.normal};return{...rt,display:"flex",flexDirection:"row",alignItems:"center",gap:tt.spacing.sm,borderRadius:tt.radii.default,paddingLeft:tt.spacing.sm,paddingRight:tt.spacing.sm,marginLeft:tt.spacing.twoXL,marginRight:tt.spacing.twoXL,marginTop:tt.spacing.threeXS,marginBottom:tt.spacing.threeXS,lineHeight:tt.lineHeights.menuItem,color:et,backgroundColor:nt?tt.colors.darkenedBgMix25:"transparent","&:hover":{backgroundColor:transparentize(tt.colors.darkenedBgMix25,.1)},"&:active,&:visited,&:hover":{...rt},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:tt.colors.darkenedBgMix15},"@media print":{paddingLeft:tt.spacing.none}}}),StyledSidebarLinkText=newStyled("span",{target:"e1exy9mp6"})(({isActive:tt,theme:nt})=>{const et=conditionalCustomColor(nt,transparentize(nt.colors.bodyText,.2),nt.colors.navTextColor),rt=conditionalCustomColor(nt,nt.colors.bodyText,nt.colors.navActiveTextColor);return{color:tt?rt:et,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell"}}),StyledSidebarUserContent=newStyled("div",{target:"e1exy9mp7"})(({hasPageNavAbove:tt,theme:nt})=>({paddingTop:tt?nt.spacing.twoXL:0,paddingBottom:nt.sizes.sidebarTopSpace,paddingLeft:nt.spacing.twoXL,paddingRight:nt.spacing.twoXL})),StyledSidebarContent=newStyled("div",{target:"e1exy9mp8"})(({})=>({position:"relative",height:"100%",width:"100%",overflow:["auto","overlay"]})),RESIZE_HANDLE_WIDTH="8px",StyledResizeHandle=newStyled("div",{target:"e1exy9mp9"})(({theme:tt})=>({position:"absolute",width:RESIZE_HANDLE_WIDTH,height:"100%",cursor:"col-resize",zIndex:tt.zIndices.sidebarMobile,"&:hover":{backgroundImage:`linear-gradient(to right, transparent 20%, ${tt.colors.fadedText20} 28%, transparent 36%)`}})),StyledSidebarHeaderContainer=newStyled("div",{target:"e1exy9mp10"})(({theme:tt})=>({display:"flex",justifyContent:"space-between",alignItems:"start",padding:tt.spacing.twoXL,paddingTop:`calc(${tt.spacing.twoXL} - ${tt.sizes.headerDecorationHeight})`})),StyledLogoLink=newStyled("a",{target:"e1exy9mp11"})(({})=>({"&:hover":{opacity:"0.7"}}));function translateLogoHeight(tt,nt){return nt==="small"?tt.sizes.smallLogoHeight:nt==="large"?tt.sizes.largeLogoHeight:tt.sizes.defaultLogoHeight}const StyledLogo=newStyled("img",{target:"e1exy9mp12"})(({theme:tt,size:nt,sidebarWidth:et})=>({height:translateLogoHeight(tt,nt),marginTop:nt=="small"?tt.spacing.xs:tt.spacing.twoXS,marginBottom:nt=="small"?tt.spacing.xs:tt.spacing.twoXS,marginRight:tt.spacing.sm,marginLeft:tt.spacing.none,zIndex:tt.zIndices.header,objectFit:"contain",verticalAlign:"middle",...et&&{maxWidth:`calc(${et}px - 2 * ${tt.spacing.twoXL} - ${tt.spacing.sm} - 2.25rem)`}})),StyledNoLogoSpacer=newStyled("div",{target:"e1exy9mp13"})(({theme:tt})=>({height:tt.sizes.largeLogoHeight})),StyledSidebarOpenContainer=newStyled("div",{target:"e1exy9mp14"})(({theme:tt,chevronDownshift:nt})=>({position:"fixed",top:nt?`${nt}px`:tt.spacing.xl,left:tt.spacing.twoXL,zIndex:tt.zIndices.header,display:"flex",justifyContent:"center",alignItems:"center","@media print":{position:"static"}})),StyledOpenSidebarButton=newStyled("div",{target:"e1exy9mp15"})(({theme:tt})=>{const nt=conditionalCustomColor(tt,tt.colors.bodyText,tt.colors.sidebarControlColor);return{zIndex:tt.zIndices.header,color:nt,marginTop:tt.spacing.twoXS,button:{"&:hover":{backgroundColor:tt.colors.darkenedBgMix25}},"@media print":{display:"none"}}}),StyledCollapseSidebarButton=newStyled("div",{target:"e1exy9mp16"})(({showSidebarCollapse:tt,theme:nt})=>{const et=conditionalCustomColor(nt,nt.colors.bodyText,nt.colors.sidebarControlColor);return{display:tt?"inline":"none",transition:"left 300ms",transitionDelay:"left 300ms",color:et,lineHeight:"0","@media print":{display:"none"},[`@media (max-width: ${nt.breakpoints.sm})`]:{display:"inline"}}}),StyledSidebarNavSectionHeader=newStyled("header",{target:"e1exy9mp17"})(({theme:tt})=>{const nt=conditionalCustomColor(tt,transparentize(tt.colors.bodyText,.15),tt.colors.navTextColor);return{fontSize:tt.fontSizes.sm,fontWeight:tt.fontWeights.bold,color:nt,lineHeight:tt.lineHeights.small,paddingRight:tt.spacing.sm,marginLeft:tt.spacing.twoXL,marginRight:tt.spacing.twoXL,marginTop:tt.spacing.sm,marginBottom:tt.spacing.twoXS}}),StyledViewButton=newStyled("button",{target:"e1exy9mp18"})(({theme:tt})=>{const nt=conditionalCustomColor(tt,tt.colors.bodyText,tt.colors.navActiveTextColor);return{fontSize:tt.fontSizes.sm,fontFamily:"inherit",lineHeight:tt.lineHeights.base,color:nt,backgroundColor:tt.colors.transparent,border:"none",borderRadius:tt.radii.default,marginTop:tt.spacing.twoXS,marginLeft:tt.spacing.xl,marginBottom:tt.spacing.none,marginRight:tt.spacing.none,padding:`${tt.spacing.threeXS} ${tt.spacing.sm}`,"&:hover, &:active, &:focus":{border:"none",outline:"none",boxShadow:"none"},"&:hover":{backgroundColor:tt.colors.darkenedBgMix25}}}),StyledSidebarNavSeparator=newStyled("div",{target:"e1exy9mp19"})(({theme:tt})=>({paddingTop:tt.spacing.lg,borderBottom:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`}));function arrayAggregator$1(tt,nt,et,rt){for(var ot=-1,at=tt==null?0:tt.length;++ot<at;){var st=tt[ot];nt(rt,st,et(st),tt)}return rt}var _arrayAggregator=arrayAggregator$1,baseEach=_baseEach;function baseAggregator$1(tt,nt,et,rt){return baseEach(tt,function(ot,at,st){nt(rt,ot,et(ot),st)}),rt}var _baseAggregator=baseAggregator$1,arrayAggregator=_arrayAggregator,baseAggregator=_baseAggregator,baseIteratee$1=_baseIteratee,isArray$1=isArray_1;function createAggregator$1(tt,nt){return function(et,rt){var ot=isArray$1(et)?arrayAggregator:baseAggregator,at=nt?nt():{};return ot(et,tt,baseIteratee$1(rt),at)}}var _createAggregator=createAggregator$1,baseAssignValue$1=_baseAssignValue,createAggregator=_createAggregator,objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty,groupBy=createAggregator(function(tt,nt,et){hasOwnProperty$1.call(tt,et)?tt[et].push(nt):baseAssignValue$1(tt,et,[nt])}),groupBy_1=groupBy;const groupBy$1=getDefaultExportFromCjs$1(groupBy_1),NavSection=({header:tt="",children:nt})=>jsxs(Fragment,{children:[tt&&jsx$1(StyledSidebarNavSectionHeader,{"data-testid":"stNavSectionHeader",children:tt}),nt]}),SidebarNavLink=({isActive:tt,pageUrl:nt,icon:et,onClick:rt,children:ot})=>jsx$1(StyledSidebarNavLinkContainer,{children:jsxs(StyledSidebarNavLink,{"data-testid":"stSidebarNavLink",isActive:tt,href:nt,onClick:rt,children:[et&&et.length&&jsx$1(StyledSidebarNavIcon,{isActive:tt,children:jsx$1(DynamicIcon,{size:"md",iconValue:et})}),jsx$1(StyledSidebarLinkText,{isActive:tt,children:ot})]})}),COLLAPSE_THRESHOLD=12,NUM_PAGES_TO_SHOW_WHEN_COLLAPSED=10;function NavLink({pageUrl:tt,page:nt,isActive:et,onClick:rt}){const ot=nt.pageName;return jsx$1("li",{children:jsx$1(SidebarNavLink,{isActive:et,pageUrl:tt,icon:nt.icon,onClick:rt,children:ot})})}function generateNavSections(tt,nt,et,rt){const ot=[],at=groupBy$1(nt,ut=>ut.sectionHeader||"");let st=0;return tt.forEach(ut=>{const ct=at[ut]??[];let pt=ct;if(et){if(st>=NUM_PAGES_TO_SHOW_WHEN_COLLAPSED)return;st+ct.length>NUM_PAGES_TO_SHOW_WHEN_COLLAPSED&&(pt=ct.slice(0,NUM_PAGES_TO_SHOW_WHEN_COLLAPSED-st))}st+=pt.length,ot.push(jsx$1(NavSection,{header:ut,children:pt.map(rt)},ut))}),ot}const SidebarNav=({endpoints:tt,appPages:nt,collapseSidebar:et,expandSidebarNav:rt,currentPageScriptHash:ot,hasSidebarElements:at,navSections:st,onPageChange:ut})=>{const[ct,pt]=reactExports.useState(!1),{pageLinkBaseUrl:dt}=reactExports.useContext(AppContext);reactExports.useEffect(()=>{const zt=localStorageAvailable()&&window.localStorage.getItem("sidebarNavState")==="expanded";!ct&&(rt||zt)&&pt(!0)},[ct,rt]);const ft=reactExports.useCallback(()=>{const zt=!ct;localStorageAvailable()&&(zt?window.localStorage.setItem("sidebarNavState","expanded"):window.localStorage.removeItem("sidebarNavState")),pt(zt)},[ct]),bt=reactExports.useCallback((zt,yt)=>{const vt=tt.buildAppPageURL(dt,zt),At=zt.pageScriptHash===ot;return jsx$1(NavLink,{pageUrl:vt,page:zt,isActive:At,onClick:St=>{St.preventDefault(),ut(zt.pageScriptHash),isMobile_1&&et()}},`${zt.pageName}-${yt}`)},[et,ot,tt,ut,dt]);let ht=[];const Mt=nt.length,mt=at&&Mt>COLLAPSE_THRESHOLD&&!rt,Ot=mt&&!ct;return st.length>0?ht=generateNavSections(st,nt,Ot,bt):ht=(Ot?nt.slice(0,NUM_PAGES_TO_SHOW_WHEN_COLLAPSED):nt).map(bt),jsxs(StyledSidebarNavContainer,{"data-testid":"stSidebarNav",children:[jsx$1(StyledSidebarNavItems,{"data-testid":"stSidebarNavItems",children:ht}),mt&&jsx$1(StyledViewButton,{onClick:ft,"data-testid":"stSidebarNavViewButton",children:ct?"View less":`View ${Mt-NUM_PAGES_TO_SHOW_WHEN_COLLAPSED} more`}),at&&jsx$1(StyledSidebarNavSeparator,{"data-testid":"stSidebarNavSeparator"})]})},Cn=class Cn extends reactExports.PureComponent{constructor(nt){super(nt),this.sidebarRef=React$1.createRef(),this.handleClickOutside=rt=>{if(this.sidebarRef&&window){const{current:ot}=this.sidebarRef,{innerWidth:at}=window;ot&&!ot.contains(rt.target)&&at<=this.mediumBreakpointPx&&this.setState({collapsedSidebar:!0})}},this.setSidebarWidth=rt=>{const ot=rt.toString();this.setState({sidebarWidth:ot}),localStorageAvailable()&&window.localStorage.setItem("sidebarWidth",ot)},this.resetSidebarWidth=rt=>{rt.detail===2&&(this.setState({sidebarWidth:Cn.minWidth}),localStorageAvailable()&&window.localStorage.setItem("sidebarWidth",Cn.minWidth))},this.checkMobileOnResize=()=>{if(!window)return!1;const{innerWidth:rt}=window;return rt<this.state.lastInnerWidth&&rt<=this.mediumBreakpointPx&&this.setState({collapsedSidebar:!0}),this.setState({lastInnerWidth:rt}),!0},this.toggleCollapse=()=>{const{collapsedSidebar:rt}=this.state;this.setState({collapsedSidebar:!rt})},this.onMouseOver=()=>{this.setState({showSidebarCollapse:!0})},this.onMouseOut=()=>{this.setState({showSidebarCollapse:!1})},this.mediumBreakpointPx=Cn.calculateMaxBreakpoint(nt.theme.breakpoints.md);const et=localStorageAvailable()?window.localStorage.getItem("sidebarWidth"):void 0;this.state={collapsedSidebar:Cn.shouldCollapse(nt,this.mediumBreakpointPx),sidebarWidth:et||Cn.minWidth,lastInnerWidth:window?window.innerWidth:1/0,showSidebarCollapse:!1}}static calculateMaxBreakpoint(nt){return parseInt(nt,10)-.02}componentDidUpdate(nt){this.mediumBreakpointPx=Cn.calculateMaxBreakpoint(this.props.theme.breakpoints.md),(this.props.initialSidebarState!==nt.initialSidebarState||this.props.hasElements!==nt.hasElements)&&this.setState({collapsedSidebar:Cn.shouldCollapse(this.props,this.mediumBreakpointPx)})}static shouldCollapse(nt,et){switch(nt.initialSidebarState){case PageConfig.SidebarState.EXPANDED:return!1;case PageConfig.SidebarState.COLLAPSED:return!0;case PageConfig.SidebarState.AUTO:default:{const{innerWidth:rt}=window||{};return rt?rt<=et:!1}}}componentDidMount(){window.addEventListener("resize",this.checkMobileOnResize),document.addEventListener("mousedown",this.handleClickOutside)}componentWillUnmount(){window.removeEventListener("resize",this.checkMobileOnResize),document.removeEventListener("mousedown",this.handleClickOutside)}headerDecorationVisible(){let nt=!1;const et=document.getElementById("stDecoration");if(et){const rt=window.getComputedStyle(et);nt=rt.visibility!=="hidden"&&rt.visibility!=="collapse"&&rt.display!=="none"}return nt}renderLogo(nt){const{appLogo:et,endpoints:rt}=this.props,{sidebarWidth:ot}=this.state;if(!et)return jsx$1(StyledNoLogoSpacer,{"data-testid":"stLogoSpacer"});const at=nt&&et.iconImage?et.iconImage:et.image,st=rt.buildMediaURL(at),ut=jsx$1(StyledLogo,{src:st,size:et.size,sidebarWidth:ot,alt:"Logo",className:"stLogo","data-testid":"stLogo"});return et.link?jsx$1(StyledLogoLink,{href:et.link,target:"_blank",rel:"noreferrer","data-testid":"stLogoLink",children:ut}):ut}render(){const{collapsedSidebar:nt,sidebarWidth:et,showSidebarCollapse:rt}=this.state,{appPages:ot,chevronDownshift:at,children:st,hasElements:ut,onPageChange:ct,currentPageScriptHash:pt,hideSidebarNav:dt,expandSidebarNav:ft,navSections:bt}=this.props,ht=ot.length>1&&!dt,mt=!(isEmbed()&&!isColoredLineDisplayed())&&this.headerDecorationVisible();return jsxs(Fragment,{children:[jsxs(StyledSidebarOpenContainer,{chevronDownshift:at,"data-testid":"stSidebarCollapsedControl",children:[this.renderLogo(!0),jsx$1(StyledOpenSidebarButton,{children:jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_NO_PADDING,onClick:this.toggleCollapse,children:jsx$1(Icon$2,{content:ChevronRight,size:"xl"})})})]}),jsx$1(Resizable,{className:"stSidebar","data-testid":"stSidebar","aria-expanded":!nt,enable:{top:!1,right:!0,bottom:!1,left:!1},handleStyles:{right:{width:RESIZE_HANDLE_WIDTH,right:"-6px"}},handleComponent:{right:jsx$1(StyledResizeHandle,{onClick:this.resetSidebarWidth})},size:{width:et,height:"auto"},as:StyledSidebar,onResizeStop:(Ot,zt,yt,vt)=>{const At=parseInt(et,10)+vt.width;this.setSidebarWidth(At)},isCollapsed:nt,adjustTop:mt,sidebarWidth:et,children:jsxs(StyledSidebarContent,{"data-testid":"stSidebarContent",ref:this.sidebarRef,onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,children:[jsxs(StyledSidebarHeaderContainer,{"data-testid":"stSidebarHeader",children:[this.renderLogo(!1),jsx$1(StyledCollapseSidebarButton,{showSidebarCollapse:rt,"data-testid":"stSidebarCollapseButton",children:jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_NO_PADDING,onClick:this.toggleCollapse,children:jsx$1(Icon$2,{content:ChevronLeft,size:"xl"})})})]}),ht&&jsx$1(SidebarNav,{endpoints:this.props.endpoints,appPages:ot,collapseSidebar:this.toggleCollapse,currentPageScriptHash:pt,navSections:bt,hasSidebarElements:ut,expandSidebarNav:ft,onPageChange:ct}),jsx$1(StyledSidebarUserContent,{hasPageNavAbove:ht,"data-testid":"stSidebarUserContent",children:st})]})})]})}};Cn.minWidth="336";let Sidebar=Cn;function SidebarWithProvider(tt){return jsx$1(IsSidebarContext.Provider,{value:!0,children:jsx$1(Sidebar,{...tt})})}const Sidebar$1=withTheme(SidebarWithProvider),createSidebarTheme=tt=>createTheme("Sidebar",{secondaryBackgroundColor:tt.emotion.colors.bgColor,backgroundColor:tt.emotion.colors.secondaryBg,bodyFont:tt.emotion.genericFonts.bodyFont,codeFont:tt.emotion.genericFonts.codeFont},tt,!0),ThemedSidebar=({children:tt,...nt})=>{const{sidebarChevronDownshift:et}=React$1.useContext(AppContext),{activeTheme:rt}=React$1.useContext(LibContext),ot=createSidebarTheme(rt);return jsx$1(ThemeProvider,{theme:ot.emotion,baseuiTheme:ot.basewebTheme,children:jsx$1(Sidebar$1,{...nt,chevronDownshift:et,children:tt})})};function EventContainer({scriptRunId:tt,children:nt}){const et=useTheme();return reactExports.useEffect(()=>{var rt;(rt=toaster.getRef())==null||rt.clearAll()},[tt]),jsxs(Fragment,{children:[jsx$1(ToasterContainer,{placement:PLACEMENT$1.topRight,autoHideDuration:4*1e3,overrides:{Root:{style:{top:et.sizes.headerHeight,zIndex:et.zIndices.toast},props:{"data-testid":"stToastContainer",className:"stToastContainer"}}}}),nt]})}const StyledAppViewContainer=newStyled("div",{target:"eht7o1d0"})({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",alignContent:"flex-start",position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden","@media print":{overflow:"visible"}}),StyledAppViewMain=newStyled("section",{target:"eht7o1d1"})(({disableScrolling:tt,theme:nt})=>({display:"flex",flexDirection:"column",width:nt.sizes.full,overflow:tt?"hidden":"auto",alignItems:"center","&:focus":{outline:"none"},"@media not print":{[`@media (max-width: ${nt.breakpoints.md})`]:{position:"absolute",top:0,left:0,right:0,bottom:0}},"@media print":{overflow:"visible"}})),StyledStickyBottomContainer=newStyled("div",{target:"eht7o1d2"})(({theme:tt})=>({position:"sticky",left:0,bottom:0,width:"100%",zIndex:tt.zIndices.bottom,"@media print":{position:"static"}})),StyledInnerBottomContainer=newStyled("div",{target:"eht7o1d3"})(({theme:tt})=>({position:"relative",bottom:0,width:"100%",minWidth:"100%",backgroundColor:tt.colors.bgColor,display:"flex",flexDirection:"column",alignItems:"center"})),applyWideModePadding=tt=>({[`@media (min-width: calc(${tt.sizes.contentMaxWidth} + 2 * (${tt.sizes.wideSidePadding} - ${tt.spacing.lg})))`]:{paddingLeft:tt.sizes.wideSidePadding,paddingRight:tt.sizes.wideSidePadding},minWidth:"auto",maxWidth:"initial"}),StyledAppViewBlockContainer=newStyled("div",{target:"eht7o1d4"})(({hasSidebar:tt,hasBottom:nt,isEmbedded:et,isWideMode:rt,showPadding:ot,addPaddingForHeader:at,theme:st})=>{const ut="2.1rem";let ct=ot?"6rem":ut;(at&&!ot||et&&tt)&&(ct=`${parseFloat(st.sizes.headerHeight)+parseFloat(st.spacing.md)}rem`);const pt=ot&&!nt?"10rem":st.spacing.lg;return{width:st.sizes.full,paddingLeft:st.spacing.lg,paddingRight:st.spacing.lg,paddingTop:ct,paddingBottom:pt,maxWidth:st.sizes.contentMaxWidth,...rt&&applyWideModePadding(st),"@media print":{paddingTop:ut}}}),StyledSidebarBlockContainer=newStyled("div",{target:"eht7o1d5"})(({theme:tt})=>({width:tt.sizes.full})),StyledEventBlockContainer=newStyled("div",{target:"eht7o1d6"})({display:"none"}),StyledBottomBlockContainer=newStyled("div",{target:"eht7o1d7"})(({isWideMode:tt,showPadding:nt,theme:et})=>({width:et.sizes.full,paddingLeft:et.spacing.lg,paddingRight:et.spacing.lg,paddingTop:et.spacing.lg,paddingBottom:nt?et.sizes.appDefaultBottomPadding:et.spacing.threeXL,maxWidth:et.sizes.contentMaxWidth,...tt&&applyWideModePadding(et),"@media print":{paddingTop:et.spacing.none}})),StyledAppViewBlockSpacer=newStyled("div",{target:"eht7o1d8"})(({theme:tt})=>({width:tt.sizes.full,flexGrow:1})),StyledIFrameResizerAnchor=newStyled("div",{target:"eht7o1d9"})(({theme:tt})=>({position:"relative",bottom:tt.spacing.none}));function ScrollToBottomContainer(tt){const{className:nt,tabIndex:et,children:rt,isEmbedded:ot,disableScrolling:at}=tt,st=useScrollToBottom();return jsx$1(StyledAppViewMain,{tabIndex:et,className:nt,isEmbedded:ot,disableScrolling:at,ref:st,"data-testid":"stAppScrollToBottomContainer",children:rt})}function AppView(tt){const{elements:nt,scriptRunId:et,scriptRunState:rt,widgetMgr:ot,widgetsDisabled:at,uploadClient:st,componentRegistry:ut,formsData:ct,appLogo:pt,appPages:dt,navSections:ft,onPageChange:bt,currentPageScriptHash:ht,expandSidebarNav:Mt,hideSidebarNav:mt,sendMessageToHost:Ot,endpoints:zt}=tt;React$1.useEffect(()=>{const Dt=()=>{Ot({type:"UPDATE_HASH",hash:window.location.hash})};return window.addEventListener("hashchange",Dt,!1),()=>window.removeEventListener("hashchange",Dt,!1)},[Ot]);const{wideMode:yt,initialSidebarState:vt,embedded:At,showPadding:St,disableScrolling:Et,showToolbar:Tt,showColoredLine:Rt,sidebarChevronDownshift:Ct}=React$1.useContext(AppContext),{addScriptFinishedHandler:wt,removeScriptFinishedHandler:Lt}=React$1.useContext(LibContext),Ht=yt?"wide":"narrow",jt=!nt.sidebar.isEmpty,s0=!nt.event.isEmpty,Ut=!nt.bottom.isEmpty,[Yt,O0]=React$1.useState(!1),a0=jt||!mt&&dt.length>1||Yt;React$1.useEffect(()=>{a0&&mt&&!Yt&&O0(!0)},[a0,mt,Yt]);const b0=React$1.useCallback(()=>{!jt&&Yt&&O0(!1)},[jt,Yt]);React$1.useEffect(()=>(wt(b0),()=>{Lt(b0)}),[b0,wt,Lt]);const kt=Dt=>{const Bt=Dt.iconImage?Dt.iconImage:Dt.image,p0=zt.buildMediaURL(Bt),r0=jsx$1(StyledLogo,{src:p0,size:Dt.size,alt:"Logo",className:"stLogo","data-testid":"stLogo"});return Dt.link?jsx$1(StyledLogoLink,{href:Dt.link,target:"_blank",rel:"noreferrer","data-testid":"stLogoLink",children:r0}):r0},o0=Ut?ScrollToBottomContainer:StyledAppViewMain,qt=Dt=>jsx$1(VerticalBlock,{node:Dt,endpoints:zt,scriptRunId:et,scriptRunState:rt,widgetMgr:ot,widgetsDisabled:at,uploadClient:st,componentRegistry:ut,formsData:ct});return jsxs(StyledAppViewContainer,{className:"stAppViewContainer appview-container","data-testid":"stAppViewContainer","data-layout":Ht,children:[a0&&jsx$1(Profiler,{id:"Sidebar",children:jsx$1(ThemedSidebar,{endpoints:zt,initialSidebarState:vt,appLogo:pt,appPages:dt,navSections:ft,hasElements:jt,onPageChange:bt,currentPageScriptHash:ht,hideSidebarNav:mt,expandSidebarNav:Mt,children:jsx$1(StyledSidebarBlockContainer,{children:qt(nt.sidebar)})})}),!a0&&pt&&jsx$1(StyledSidebarOpenContainer,{chevronDownshift:Ct,"data-testid":"stSidebarCollapsedControl",children:kt(pt)}),jsxs(o0,{tabIndex:0,isEmbedded:At,disableScrolling:Et,className:"stMain","data-testid":"stMain",children:[jsx$1(Profiler,{id:"Main",children:jsx$1(StyledAppViewBlockContainer,{className:"stMainBlockContainer block-container","data-testid":"stMainBlockContainer",isWideMode:yt,showPadding:St,addPaddingForHeader:Tt||Rt,hasBottom:Ut,isEmbedded:At,hasSidebar:a0,children:qt(nt.main)})}),!Ut&&jsx$1(StyledIFrameResizerAnchor,{"data-testid":"stAppIframeResizerAnchor","data-iframe-height":!0}),Ut&&jsxs(Profiler,{id:"Bottom",children:[jsx$1(StyledAppViewBlockSpacer,{}),jsx$1(StyledStickyBottomContainer,{className:"stBottom","data-testid":"stBottom",children:jsx$1(StyledInnerBottomContainer,{children:jsx$1(StyledBottomBlockContainer,{"data-testid":"stBottomBlockContainer",isWideMode:yt,showPadding:St,children:qt(nt.bottom)})})})]})]}),s0&&jsx$1(Profiler,{id:"Event",children:jsx$1(EventContainer,{scriptRunId:nt.event.scriptRunId,children:jsx$1(StyledEventBlockContainer,{className:"stEvent","data-testid":"stEvent",children:qt(nt.event)})})})]})}var Ellipses=reactExports.forwardRef(function(tt,nt){var et={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$Q({iconAttrs:et,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},tt,{ref:nt}),reactExports.createElement("path",{d:"M0 3v2h2V3H0zm3 0v2h2V3H3zm3 0v2h2V3H6z"}))});Ellipses.displayName="Ellipses";var Info=reactExports.forwardRef(function(tt,nt){var et={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$Q({iconAttrs:et,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},tt,{ref:nt}),reactExports.createElement("path",{d:"M5 0c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM3.5 2.5C2.67 2.5 2 3.17 2 4h1c0-.28.22-.5.5-.5s.5.22.5.5-1 1.64-1 2.5C3 7.36 3.67 8 4.5 8S6 7.33 6 6.5H5c0 .28-.22.5-.5.5S4 6.78 4 6.5C4 6.14 5 4.66 5 4c0-.81-.67-1.5-1.5-1.5z"}))});Info.displayName="Info";var Warning=reactExports.forwardRef(function(tt,nt){var et={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$Q({iconAttrs:et,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},tt,{ref:nt}),reactExports.createElement("path",{d:"M3.09 0c-.06 0-.1.04-.13.09L.02 6.9c-.02.05-.03.13-.03.19v.81c0 .05.04.09.09.09h6.81c.05 0 .09-.04.09-.09v-.81c0-.05-.01-.14-.03-.19L4.01.09A.142.142 0 003.88 0h-.81zM3 3h1v2H3V3zm0 3h1v1H3V6z"}))});Warning.displayName="Warning";function hasClass(tt,nt){return tt.classList?!!nt&&tt.classList.contains(nt):(" "+(tt.className.baseVal||tt.className)+" ").indexOf(" "+nt+" ")!==-1}function addClass(tt,nt){tt.classList?tt.classList.add(nt):hasClass(tt,nt)||(typeof tt.className=="string"?tt.className=tt.className+" "+nt:tt.setAttribute("class",(tt.className&&tt.className.baseVal||"")+" "+nt))}function replaceClassName(tt,nt){return tt.replace(new RegExp("(^|\\s)"+nt+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function removeClass$1(tt,nt){tt.classList?tt.classList.remove(nt):typeof tt.className=="string"?tt.className=replaceClassName(tt.className,nt):tt.setAttribute("class",replaceClassName(tt.className&&tt.className.baseVal||"",nt))}const config={disabled:!1},TransitionGroupContext=React$1.createContext(null);var forceReflow=function tt(nt){return nt.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(tt){_inheritsLoose(nt,tt);function nt(rt,ot){var at;at=tt.call(this,rt,ot)||this;var st=ot,ut=st&&!st.isMounting?rt.enter:rt.appear,ct;return at.appearStatus=null,rt.in?ut?(ct=EXITED,at.appearStatus=ENTERING):ct=ENTERED:rt.unmountOnExit||rt.mountOnEnter?ct=UNMOUNTED:ct=EXITED,at.state={status:ct},at.nextCallback=null,at}nt.getDerivedStateFromProps=function(ot,at){var st=ot.in;return st&&at.status===UNMOUNTED?{status:EXITED}:null};var et=nt.prototype;return et.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},et.componentDidUpdate=function(ot){var at=null;if(ot!==this.props){var st=this.state.status;this.props.in?st!==ENTERING&&st!==ENTERED&&(at=ENTERING):(st===ENTERING||st===ENTERED)&&(at=EXITING)}this.updateStatus(!1,at)},et.componentWillUnmount=function(){this.cancelNextCallback()},et.getTimeouts=function(){var ot=this.props.timeout,at,st,ut;return at=st=ut=ot,ot!=null&&typeof ot!="number"&&(at=ot.exit,st=ot.enter,ut=ot.appear!==void 0?ot.appear:st),{exit:at,enter:st,appear:ut}},et.updateStatus=function(ot,at){if(ot===void 0&&(ot=!1),at!==null)if(this.cancelNextCallback(),at===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var st=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);st&&forceReflow(st)}this.performEnter(ot)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},et.performEnter=function(ot){var at=this,st=this.props.enter,ut=this.context?this.context.isMounting:ot,ct=this.props.nodeRef?[ut]:[ReactDOM.findDOMNode(this),ut],pt=ct[0],dt=ct[1],ft=this.getTimeouts(),bt=ut?ft.appear:ft.enter;if(!ot&&!st||config.disabled){this.safeSetState({status:ENTERED},function(){at.props.onEntered(pt)});return}this.props.onEnter(pt,dt),this.safeSetState({status:ENTERING},function(){at.props.onEntering(pt,dt),at.onTransitionEnd(bt,function(){at.safeSetState({status:ENTERED},function(){at.props.onEntered(pt,dt)})})})},et.performExit=function(){var ot=this,at=this.props.exit,st=this.getTimeouts(),ut=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!at||config.disabled){this.safeSetState({status:EXITED},function(){ot.props.onExited(ut)});return}this.props.onExit(ut),this.safeSetState({status:EXITING},function(){ot.props.onExiting(ut),ot.onTransitionEnd(st.exit,function(){ot.safeSetState({status:EXITED},function(){ot.props.onExited(ut)})})})},et.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},et.safeSetState=function(ot,at){at=this.setNextCallback(at),this.setState(ot,at)},et.setNextCallback=function(ot){var at=this,st=!0;return this.nextCallback=function(ut){st&&(st=!1,at.nextCallback=null,ot(ut))},this.nextCallback.cancel=function(){st=!1},this.nextCallback},et.onTransitionEnd=function(ot,at){this.setNextCallback(at);var st=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),ut=ot==null&&!this.props.addEndListener;if(!st||ut){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var ct=this.props.nodeRef?[this.nextCallback]:[st,this.nextCallback],pt=ct[0],dt=ct[1];this.props.addEndListener(pt,dt)}ot!=null&&setTimeout(this.nextCallback,ot)},et.render=function(){var ot=this.state.status;if(ot===UNMOUNTED)return null;var at=this.props,st=at.children;at.in,at.mountOnEnter,at.unmountOnExit,at.appear,at.enter,at.exit,at.timeout,at.addEndListener,at.onEnter,at.onEntering,at.onEntered,at.onExit,at.onExiting,at.onExited,at.nodeRef;var ut=_objectWithoutPropertiesLoose$m(at,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React$1.createElement(TransitionGroupContext.Provider,{value:null},typeof st=="function"?st(ot,ut):React$1.cloneElement(React$1.Children.only(st),ut))},nt}(React$1.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$1(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$1,onEntering:noop$1,onEntered:noop$1,onExit:noop$1,onExiting:noop$1,onExited:noop$1};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;var _addClass=function tt(nt,et){return nt&&et&&et.split(" ").forEach(function(rt){return addClass(nt,rt)})},removeClass=function tt(nt,et){return nt&&et&&et.split(" ").forEach(function(rt){return removeClass$1(nt,rt)})},CSSTransition=function(tt){_inheritsLoose(nt,tt);function nt(){for(var rt,ot=arguments.length,at=new Array(ot),st=0;st<ot;st++)at[st]=arguments[st];return rt=tt.call.apply(tt,[this].concat(at))||this,rt.appliedClasses={appear:{},enter:{},exit:{}},rt.onEnter=function(ut,ct){var pt=rt.resolveArguments(ut,ct),dt=pt[0],ft=pt[1];rt.removeClasses(dt,"exit"),rt.addClass(dt,ft?"appear":"enter","base"),rt.props.onEnter&&rt.props.onEnter(ut,ct)},rt.onEntering=function(ut,ct){var pt=rt.resolveArguments(ut,ct),dt=pt[0],ft=pt[1],bt=ft?"appear":"enter";rt.addClass(dt,bt,"active"),rt.props.onEntering&&rt.props.onEntering(ut,ct)},rt.onEntered=function(ut,ct){var pt=rt.resolveArguments(ut,ct),dt=pt[0],ft=pt[1],bt=ft?"appear":"enter";rt.removeClasses(dt,bt),rt.addClass(dt,bt,"done"),rt.props.onEntered&&rt.props.onEntered(ut,ct)},rt.onExit=function(ut){var ct=rt.resolveArguments(ut),pt=ct[0];rt.removeClasses(pt,"appear"),rt.removeClasses(pt,"enter"),rt.addClass(pt,"exit","base"),rt.props.onExit&&rt.props.onExit(ut)},rt.onExiting=function(ut){var ct=rt.resolveArguments(ut),pt=ct[0];rt.addClass(pt,"exit","active"),rt.props.onExiting&&rt.props.onExiting(ut)},rt.onExited=function(ut){var ct=rt.resolveArguments(ut),pt=ct[0];rt.removeClasses(pt,"exit"),rt.addClass(pt,"exit","done"),rt.props.onExited&&rt.props.onExited(ut)},rt.resolveArguments=function(ut,ct){return rt.props.nodeRef?[rt.props.nodeRef.current,ut]:[ut,ct]},rt.getClassNames=function(ut){var ct=rt.props.classNames,pt=typeof ct=="string",dt=pt&&ct?ct+"-":"",ft=pt?""+dt+ut:ct[ut],bt=pt?ft+"-active":ct[ut+"Active"],ht=pt?ft+"-done":ct[ut+"Done"];return{baseClassName:ft,activeClassName:bt,doneClassName:ht}},rt}var et=nt.prototype;return et.addClass=function(ot,at,st){var ut=this.getClassNames(at)[st+"ClassName"],ct=this.getClassNames("enter"),pt=ct.doneClassName;at==="appear"&&st==="done"&&pt&&(ut+=" "+pt),st==="active"&&ot&&forceReflow(ot),ut&&(this.appliedClasses[at][st]=ut,_addClass(ot,ut))},et.removeClasses=function(ot,at){var st=this.appliedClasses[at],ut=st.base,ct=st.active,pt=st.done;this.appliedClasses[at]={},ut&&removeClass(ot,ut),ct&&removeClass(ot,ct),pt&&removeClass(ot,pt)},et.render=function(){var ot=this.props;ot.classNames;var at=_objectWithoutPropertiesLoose$m(ot,["classNames"]);return React$1.createElement(Transition,_extends$Q({},at,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},nt}(React$1.Component);CSSTransition.defaultProps={classNames:""};CSSTransition.propTypes={};const iconRunning="data:image/gif;base64,R0lGODlhgACAAPAAAAAAAAAAACH5BAkUAAEAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAgACAAAAC/oyPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3nKcD3vA5s+Ia9oNFATAKOQKWSiXM6oTbpkzqzTrEx7ZX78ibBYfGYzDKf0So1kZ12/+Ar+Zy+s+Pr7j1f7ffnFRinRegiddg1pNho5OMIKbhGZpXXl6N3YrdlwvlF8ik6SioZWoqaauap2ur6xvoqm4oya1t6easL2Lbra1j2+5sp3ApWjKmI7Bghy1zh/DwRLd38Wi1Bje2gvc3Q7a0AHo4wTo50fb5gfs5O7h4O7y2/TY9tX40vrf/Mz+wfKZ26BAAbFVQmcOCBg4cYEnIYCKIfiXso4rFIByMcnY1sOKLxWCmhwgCWhCQaufDkN5UoS67s1JKlOJkKXa6jOdDmTJgjdRLEqc5nOaDtiJI0Gs+o0KBKkc5ryrMmVFA9p1KqGnVoVqZb0XV9ZxUWyqNflxYt67ReWEZjyVL9+TUp2rhP577NudZUTLtXpfIVu/duSrpq/7Id6zRtYcAvGQfWy60vYsgPDre9jDmz5s2cO3v+DDq06NEnCgAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aN5/rO9/4P1AGGxGGwV0wSjzmlE8C0PZ/R2XRahV2vWdcW22V9qeHV2FlWnclp0xrddr+T8dN8WZff8/o5v3/2BzgmOMhVaAiHaAe2qEbnGCk56XBHSLlgaYl5oOmJ6Rk6GUoaSVrqeIpaqLoq2OqaBxtbNyv6eljZyprbAMvL5vuLG8wwTKxofIxcBLGM2Oz8zKm8S/0wfZ0wq62r2i1sDa6QPc49Ti6O3lkObFR9Opq8rc6sBB/v3kj/rb/PXi/Om0wB2/jh10/WQQTtumxCaGsekocMI2758QmixfZiNxbi28ixxpoIIC91NCmtZC+RXyiobCkFpsuX/2TIrEAz5IubOHNK3Hkxg897NIJuGIrHptGjSIuubPLUS9STNaVWpapTzFWsP1tM5UpUadaYW82U1bA05dhHa4V+JXg2RVoPc721RVGXQ96PkMTetbAX7t9EST8EFtzV69sLh9PFlbu4Z2SNff0OVps43GXChd1OphzNaWNsPEl+xotS8umKj9mOdvwadGcrqUnXlhAbciDbt3Gv1j0QoEfVmbUMRfvbtUqmm82+7NDaOEjDYSdaDBEayPV1wmlxz8dd88jwvnOTP48+vfr17Nu7fw8/vnz4BQAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/IG1PaMc/a+537FC9Z+xIfwWEwmjkylkgl1FqFN6Y9atc6wWW2Mi/TKwELxmMwzf9E99YvddrvgQ/kcbofh828yf431FxK2ECjowcVAeKgDxsjC9phCJ2lCV1c5eImZ2bEZ16nxmRaaMRpUenFaljqxutja8NoVqzAbVWt7i5trsJuYOxuAVivsS1xqfBDZqYxAKfkquyko7TDKtxpxasctge3m7foZTq56KUdtCq2G3ojcvofomC4PQpVtr0ma594ryu4fBn8CB+orCOQgwnHMYuH7ppAGLxQRn1WkcFGiuv5p8Axu9GRNUcOE2t450+UH4y6AvwBcSwmx5bmWnFAa2kazJoScoGxOfMnTZUxgPn8uuQkUqUV6RpQmpXXUaFFWOB9yhFoV6zKpS7U+hRUVLEOvw8g6HUt1as+ZadXq7IpKo1ircuMW8srVAt1jYte1hcvP7T1aeT3+5Xu4bGKWacn6tRsWMuAbIrr0BXlYquPH/DZzXqs482WTpEZjDrx17uJ5cU2TXmvUM+MesmdTnnw7NeoRGU/Dhur69V4SYGOv/tCxRHHgx1kTtfTXuGTiMKFPl76bd3Xl0ZlP187U+m7soCtvp37de3bz4bmnX/6dfXvw49WXH1wmuO3ciK/fx0fOin6fvaVZc3VRVhtboBX4n29tJEhSfH1BqBJVFGa1Xn9CiWSgXosUZliGEYoYImoXfnXfiCR62J2AO53IYYcYZgfiUDLOuCKO/OnmoltvHZjjVZed9WKNJTYo5HHPFQmjjin6uONdRPJo5ICmzZckTRQF9WOWK00SlIK33CHTkeK0UOZ+H5FZknMEnWGOfOf5EJB7VeKw5EJ67slnn37+CWiggg5KaKGGMlIAACH5BAkUAAEALAAAAACAAIAAAAL+jI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8cyBNT2jHP2vud+xQvefsSG8AgoKhFI5HLZPD6LUefUV5Vec1nhFtfVfmFh75hc5p3R6do61na/X/HknJ6+s8P6fbUPlwUo8zc4I2aYqLjI2Ehk5rhSGGlSRilSd+lRJ6eZwdnjCQQaJCpBimi6gNqkqsAq6GoAG6tKy2d6aymqi6vZu3sJ7BuZN0sr3JWgSzm5zOwYxTAc3bpKzSh9ja2o/To8ZOj9DB7eN34AGtAGiH6cyXnnvp75Hj82f5+u/pVfz8TviruAAPU9GWiwYJwtCBc6+HfQmkJjD9gJtELOYoTpYFMw7oO40VlHSBMpjiLZL9Q3hxtUZgMpa0LCmCFh0qw48+ZDgjp3kuqJExXQaciGZmRltKTQpPSgGf3DsmcsjVLHUb0p0iTWhsqqSlTq8Y1LCrWOfj0zj+hZs6lSElsZFm5chjBFbpt7sZw5I2vz6rVDo+/Iv4CDtqX795TgwXoV4/XLLfBjyL1kLkbrtObhdj/JXhanVTPKX5/5TvZUGENappI3szY8+nXr2LJ9uq59lzbu3KV2i+7tGzbw4KZvE29qnPjq48h1M19+HLry0sGlV6d+3Tnz5mO3y+3kvWL48eTLmz8PoQAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aN5/rO9/4PDAqHQ4DRWDseiQalc8l6PoXSKgBllQKz1RJX2/taRWLwrjz2oM25dbfjdvLibAxdrrvXK3pou49nAeiHM6h0YXiVl4jEZxjG6Dj4EzmRSARo+cgUoCdxydlEFwEa2jn6UGp66gYxuYqA2vAKeyDL0FercLtwp9sb5+D7uxs820oMjHz8lSxs/PzmHL32STjNDI0Nl7vNseltpxquWUluzdh4npp+uJ7drv4eGz81b1u/R56fts6f5e8fwHACm20rKAYbwjLOulFD03BZOYYRDYqzOI3Lt/aB++x98HgvpMiRJEuaPIkypcqKIDVw3NDPBUREMwVRTDEMnUR22khk4ukJKK+P4/AVFQWO28KlP2EyferwItSpPSVRvXqTJtatGjNw/RrTZldltBKYKzZWa1iyQ9EGfdhSbFx4NUm1xSXNZSAK1dRinCjvxlqpc1caPow4seLFjBs7hqTP7169kXFm5VsXc0IVb13dxVs1RFO6oc1GBXGW3lFWZTeCBav0NWzKsl/Trv31Nu6tundf7V2Y9WjVrYkPBhzcaGfQy9kmt1vZbV+d0z1HB0w4rebNVgPbOC73+ePx5MubP48+vfr17Nu7fw8/vvzGBQAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJphPAAuoLI+3cxrZJ5+7Ne/q/6wkvQN3wSCn+kEyHEtiMJp5LqZVqtEaxVS2Sm/UewTnxlzwzn9HqNbk9RgfhPTY9jr27n3omv99UBKiVNmh4iJiouMjY6FhX9hijJJnCVVnyhhkit/khx+LJARoqmkFaY0qEOqcqwVrq+gobK+tEW2u7gJuqu8ub62sA3Cs8TBxsi1wovMys7PysGh05TV29eQ1Vqf2H2N35jXyMKg4sw3o4jl5ueK4Aq07bEO+efts+eI9PKp/PUM/eP3j7BPYDWFDcAU0EBzZiyO4gNzC/JE681DBcNvCKGSFi8kgO5MU8HUmaEmnHGsYpHF2hXOmyZURKul7S/JjM5raRrUJSqdjlUZiZ3ohKY7TTqKCSyRTdVJp0ITakRaXCtNrUXFWsWwMUo3qV69OFkjSyNLnRLNShZR36HPsw4NmfQuchROs07Aq9+vjuxdsX8CrBd2RuMFzYLwbEbRiPcutH8WHIQxx/ogyJ7omEeOBmwmxDswrOmaOOBv3C82mLQkzDkNt6amjYpXvOpm1srcjcXnnxZopa1rrfvd8RL47ruNjg0HATd36ceW5Qyh+krE5PMva3Qbfz6+79O43wSdiShyD7PPqv6tsbKgAAOw==",newYearsRunning=""+new URL("../media/fireworks.B4d-_KUe.gif",import.meta.url).href;var ConnectionState;(function(tt){tt.CONNECTED="CONNECTED",tt.DISCONNECTED_FOREVER="DISCONNECTED_FOREVER",tt.INITIAL="INITIAL",tt.PINGING_SERVER="PINGING_SERVER",tt.CONNECTING="CONNECTING"})(ConnectionState||(ConnectionState={}));const StyledConnectionStatus=newStyled("div",{target:"emoooxk0"})(({theme:tt})=>({display:"flex",alignItems:"center",justifyContent:"center",color:tt.colors.gray})),StyledConnectionStatusLabel=newStyled("label",{target:"emoooxk1"})(({isMinimized:tt,theme:nt})=>({fontSize:nt.fontSizes.sm,color:nt.colors.gray,textTransform:"uppercase",marginTop:nt.spacing.none,marginRight:tt?nt.spacing.none:nt.spacing.lg,marginBottom:nt.spacing.none,marginLeft:nt.spacing.sm,whiteSpace:"nowrap",maxWidth:tt?"0":nt.sizes.appStatusMaxWidth,transition:"opacity 500ms 0ms, clip 500ms 0ms, max-width 500ms 0ms, margin 500ms 0ms, visibility 0ms 500ms",opacity:tt?0:1,visibility:tt?"hidden":"visible",lineHeight:nt.lineHeights.none})),StyledAppStatus=newStyled("div",{target:"emoooxk2"})(({theme:tt})=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:tt.radii.md,margin:`0 ${tt.spacing.sm} 0 0`,paddingLeft:tt.spacing.sm,height:tt.sizes.appRunningMen})),minimizedStyles=tt=>({opacity:0,padding:tt.spacing.none,margin:tt.spacing.none,maxWidth:0,minWidth:0,border:0}),StyledAppStatusLabel=newStyled("label",{target:"emoooxk3"})(({isPrompt:tt,isMinimized:nt,theme:et})=>({fontSize:et.fontSizes.sm,color:tt?et.colors.bodyText:et.colors.gray,textTransform:tt?"none":"uppercase",margin:`0 0 0 ${et.spacing.lg}`,whiteSpace:"nowrap",maxWidth:et.sizes.appStatusMaxWidth,borderRadius:tt?et.radii.md:void 0,transition:`opacity 200ms ease-out 0s,
742
+ `});return jsx$1(Global,{styles:[css$2(nt)]})},isff=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function addEvent(tt,nt,et,rt){tt.addEventListener?tt.addEventListener(nt,et,rt):tt.attachEvent&&tt.attachEvent("on".concat(nt),et)}function removeEvent(tt,nt,et,rt){tt.removeEventListener?tt.removeEventListener(nt,et,rt):tt.detachEvent&&tt.detachEvent("on".concat(nt),et)}function getMods(tt,nt){const et=nt.slice(0,nt.length-1);for(let rt=0;rt<et.length;rt++)et[rt]=tt[et[rt].toLowerCase()];return et}function getKeys(tt){typeof tt!="string"&&(tt=""),tt=tt.replace(/\s/g,"");const nt=tt.split(",");let et=nt.lastIndexOf("");for(;et>=0;)nt[et-1]+=",",nt.splice(et,1),et=nt.lastIndexOf("");return nt}function compareArray(tt,nt){const et=tt.length>=nt.length?tt:nt,rt=tt.length>=nt.length?nt:tt;let ot=!0;for(let at=0;at<et.length;at++)rt.indexOf(et[at])===-1&&(ot=!1);return ot}const _keyMap={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":isff?173:189,"=":isff?61:187,";":isff?59:186,"'":222,"[":219,"]":221,"\\":220},_modifier={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},modifierMap={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_mods={16:!1,18:!1,17:!1,91:!1},_handlers={};for(let tt=1;tt<20;tt++)_keyMap["f".concat(tt)]=111+tt;let _downKeys=[],winListendFocus=null,_scope="all";const elementEventMap=new Map,code=tt=>_keyMap[tt.toLowerCase()]||_modifier[tt.toLowerCase()]||tt.toUpperCase().charCodeAt(0),getKey=tt=>Object.keys(_keyMap).find(nt=>_keyMap[nt]===tt),getModifier=tt=>Object.keys(_modifier).find(nt=>_modifier[nt]===tt);function setScope(tt){_scope=tt||"all"}function getScope(){return _scope||"all"}function getPressedKeyCodes(){return _downKeys.slice(0)}function getPressedKeyString(){return _downKeys.map(tt=>getKey(tt)||getModifier(tt)||String.fromCharCode(tt))}function getAllKeyCodes(){const tt=[];return Object.keys(_handlers).forEach(nt=>{_handlers[nt].forEach(et=>{let{key:rt,scope:ot,mods:at,shortcut:st}=et;tt.push({scope:ot,shortcut:st,mods:at,keys:rt.split("+").map(ut=>code(ut))})})}),tt}function filter(tt){const nt=tt.target||tt.srcElement,{tagName:et}=nt;let rt=!0;const ot=et==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(nt.type);return(nt.isContentEditable||(ot||et==="TEXTAREA"||et==="SELECT")&&!nt.readOnly)&&(rt=!1),rt}function isPressed(tt){return typeof tt=="string"&&(tt=code(tt)),_downKeys.indexOf(tt)!==-1}function deleteScope(tt,nt){let et,rt;tt||(tt=getScope());for(const ot in _handlers)if(Object.prototype.hasOwnProperty.call(_handlers,ot))for(et=_handlers[ot],rt=0;rt<et.length;)et[rt].scope===tt?et.splice(rt,1).forEach(st=>{let{element:ut}=st;return removeKeyEvent(ut)}):rt++;getScope()===tt&&setScope(nt||"all")}function clearModifier(tt){let nt=tt.keyCode||tt.which||tt.charCode;const et=_downKeys.indexOf(nt);if(et>=0&&_downKeys.splice(et,1),tt.key&&tt.key.toLowerCase()==="meta"&&_downKeys.splice(0,_downKeys.length),(nt===93||nt===224)&&(nt=91),nt in _mods){_mods[nt]=!1;for(const rt in _modifier)_modifier[rt]===nt&&(hotkeys[rt]=!1)}}function unbind(tt){if(typeof tt>"u")Object.keys(_handlers).forEach(ot=>{Array.isArray(_handlers[ot])&&_handlers[ot].forEach(at=>eachUnbind(at)),delete _handlers[ot]}),removeKeyEvent(null);else if(Array.isArray(tt))tt.forEach(ot=>{ot.key&&eachUnbind(ot)});else if(typeof tt=="object")tt.key&&eachUnbind(tt);else if(typeof tt=="string"){for(var nt=arguments.length,et=new Array(nt>1?nt-1:0),rt=1;rt<nt;rt++)et[rt-1]=arguments[rt];let[ot,at]=et;typeof ot=="function"&&(at=ot,ot=""),eachUnbind({key:tt,scope:ot,method:at,splitKey:"+"})}}const eachUnbind=tt=>{let{key:nt,scope:et,method:rt,splitKey:ot="+"}=tt;getKeys(nt).forEach(st=>{const ut=st.split(ot),ct=ut.length,pt=ut[ct-1],dt=pt==="*"?"*":code(pt);if(!_handlers[dt])return;et||(et=getScope());const ft=ct>1?getMods(_modifier,ut):[],bt=[];_handlers[dt]=_handlers[dt].filter(ht=>{const mt=(rt?ht.method===rt:!0)&&ht.scope===et&&compareArray(ht.mods,ft);return mt&&bt.push(ht.element),!mt}),bt.forEach(ht=>removeKeyEvent(ht))})};function eventHandler(tt,nt,et,rt){if(nt.element!==rt)return;let ot;if(nt.scope===et||nt.scope==="all"){ot=nt.mods.length>0;for(const at in _mods)Object.prototype.hasOwnProperty.call(_mods,at)&&(!_mods[at]&&nt.mods.indexOf(+at)>-1||_mods[at]&&nt.mods.indexOf(+at)===-1)&&(ot=!1);(nt.mods.length===0&&!_mods[16]&&!_mods[18]&&!_mods[17]&&!_mods[91]||ot||nt.shortcut==="*")&&(nt.keys=[],nt.keys=nt.keys.concat(_downKeys),nt.method(tt,nt)===!1&&(tt.preventDefault?tt.preventDefault():tt.returnValue=!1,tt.stopPropagation&&tt.stopPropagation(),tt.cancelBubble&&(tt.cancelBubble=!0)))}}function dispatch(tt,nt){const et=_handlers["*"];let rt=tt.keyCode||tt.which||tt.charCode;if(!hotkeys.filter.call(this,tt))return;if((rt===93||rt===224)&&(rt=91),_downKeys.indexOf(rt)===-1&&rt!==229&&_downKeys.push(rt),["ctrlKey","altKey","shiftKey","metaKey"].forEach(ut=>{const ct=modifierMap[ut];tt[ut]&&_downKeys.indexOf(ct)===-1?_downKeys.push(ct):!tt[ut]&&_downKeys.indexOf(ct)>-1?_downKeys.splice(_downKeys.indexOf(ct),1):ut==="metaKey"&&tt[ut]&&_downKeys.length===3&&(tt.ctrlKey||tt.shiftKey||tt.altKey||(_downKeys=_downKeys.slice(_downKeys.indexOf(ct))))}),rt in _mods){_mods[rt]=!0;for(const ut in _modifier)_modifier[ut]===rt&&(hotkeys[ut]=!0);if(!et)return}for(const ut in _mods)Object.prototype.hasOwnProperty.call(_mods,ut)&&(_mods[ut]=tt[modifierMap[ut]]);tt.getModifierState&&!(tt.altKey&&!tt.ctrlKey)&&tt.getModifierState("AltGraph")&&(_downKeys.indexOf(17)===-1&&_downKeys.push(17),_downKeys.indexOf(18)===-1&&_downKeys.push(18),_mods[17]=!0,_mods[18]=!0);const ot=getScope();if(et)for(let ut=0;ut<et.length;ut++)et[ut].scope===ot&&(tt.type==="keydown"&&et[ut].keydown||tt.type==="keyup"&&et[ut].keyup)&&eventHandler(tt,et[ut],ot,nt);if(!(rt in _handlers))return;const at=_handlers[rt],st=at.length;for(let ut=0;ut<st;ut++)if((tt.type==="keydown"&&at[ut].keydown||tt.type==="keyup"&&at[ut].keyup)&&at[ut].key){const ct=at[ut],{splitKey:pt}=ct,dt=ct.key.split(pt),ft=[];for(let bt=0;bt<dt.length;bt++)ft.push(code(dt[bt]));ft.sort().join("")===_downKeys.sort().join("")&&eventHandler(tt,ct,ot,nt)}}function hotkeys(tt,nt,et){_downKeys=[];const rt=getKeys(tt);let ot=[],at="all",st=document,ut=0,ct=!1,pt=!0,dt="+",ft=!1,bt=!1;for(et===void 0&&typeof nt=="function"&&(et=nt),Object.prototype.toString.call(nt)==="[object Object]"&&(nt.scope&&(at=nt.scope),nt.element&&(st=nt.element),nt.keyup&&(ct=nt.keyup),nt.keydown!==void 0&&(pt=nt.keydown),nt.capture!==void 0&&(ft=nt.capture),typeof nt.splitKey=="string"&&(dt=nt.splitKey),nt.single===!0&&(bt=!0)),typeof nt=="string"&&(at=nt),bt&&unbind(tt,at);ut<rt.length;ut++)tt=rt[ut].split(dt),ot=[],tt.length>1&&(ot=getMods(_modifier,tt)),tt=tt[tt.length-1],tt=tt==="*"?"*":code(tt),tt in _handlers||(_handlers[tt]=[]),_handlers[tt].push({keyup:ct,keydown:pt,scope:at,mods:ot,shortcut:rt[ut],method:et,key:rt[ut],splitKey:dt,element:st});if(typeof st<"u"&&window){if(!elementEventMap.has(st)){const ht=function(){let mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return dispatch(mt,st)},Mt=function(){let mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;dispatch(mt,st),clearModifier(mt)};elementEventMap.set(st,{keydownListener:ht,keyupListenr:Mt,capture:ft}),addEvent(st,"keydown",ht,ft),addEvent(st,"keyup",Mt,ft)}if(!winListendFocus){const ht=()=>{_downKeys=[]};winListendFocus={listener:ht,capture:ft},addEvent(window,"focus",ht,ft)}}}function trigger(tt){let nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(_handlers).forEach(et=>{_handlers[et].filter(ot=>ot.scope===nt&&ot.shortcut===tt).forEach(ot=>{ot&&ot.method&&ot.method()})})}function removeKeyEvent(tt){const nt=Object.values(_handlers).flat();if(nt.findIndex(rt=>{let{element:ot}=rt;return ot===tt})<0){const{keydownListener:rt,keyupListenr:ot,capture:at}=elementEventMap.get(tt)||{};rt&&ot&&(removeEvent(tt,"keyup",ot,at),removeEvent(tt,"keydown",rt,at),elementEventMap.delete(tt))}if((nt.length<=0||elementEventMap.size<=0)&&(Object.keys(elementEventMap).forEach(ot=>{const{keydownListener:at,keyupListenr:st,capture:ut}=elementEventMap.get(ot)||{};at&&st&&(removeEvent(ot,"keyup",st,ut),removeEvent(ot,"keydown",at,ut),elementEventMap.delete(ot))}),elementEventMap.clear(),Object.keys(_handlers).forEach(ot=>delete _handlers[ot]),winListendFocus)){const{listener:ot,capture:at}=winListendFocus;removeEvent(window,"focus",ot,at),winListendFocus=null}}const _api={getPressedKeyString,setScope,getScope,deleteScope,getPressedKeyCodes,getAllKeyCodes,isPressed,filter,trigger,unbind,keyMap:_keyMap,modifier:_modifier,modifierMap};for(const tt in _api)Object.prototype.hasOwnProperty.call(_api,tt)&&(hotkeys[tt]=_api[tt]);if(typeof window<"u"){const tt=window.hotkeys;hotkeys.noConflict=nt=>(nt&&window.hotkeys===hotkeys&&(window.hotkeys=tt),hotkeys),window.hotkeys=hotkeys}class ReactHotkeys extends React$1.Component{constructor(nt){super(nt),this.isKeyDown=!1,this.handle=void 0,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.handleKeyUpEvent=this.handleKeyUpEvent.bind(this),this.handle={}}componentDidMount(){var{filter:nt,splitKey:et}=this.props;nt&&(hotkeys.filter=nt),hotkeys.unbind(this.props.keyName),hotkeys(this.props.keyName,{splitKey:et},this.onKeyDown),document&&document.body.addEventListener("keyup",this.handleKeyUpEvent)}componentWillUnmount(){hotkeys.unbind(this.props.keyName),this.isKeyDown=!0,this.handle={},document&&document.body.removeEventListener("keyup",this.handleKeyUpEvent)}onKeyUp(nt,et){var{onKeyUp:rt,disabled:ot}=this.props;!ot&&rt&&rt(et.shortcut,nt,et)}onKeyDown(nt,et){var{onKeyDown:rt,allowRepeat:ot,disabled:at}=this.props;this.isKeyDown&&!ot||(this.isKeyDown=!0,this.handle=et,!at&&rt&&rt(et.shortcut,nt,et))}handleKeyUpEvent(nt){this.isKeyDown&&(this.isKeyDown=!1,!(this.props.keyName&&this.props.keyName.indexOf(this.handle.shortcut)<0)&&(this.onKeyUp(nt,this.handle),this.handle={}))}render(){return this.props.children||null}}ReactHotkeys.defaultProps={filter(tt){var nt=tt.target||tt.srcElement,et=nt.tagName;return!(nt.isContentEditable||et==="INPUT"||et==="SELECT"||et==="TEXTAREA")}};ReactHotkeys.propTypes={keyName:propTypesExports.string,filter:propTypesExports.func,onKeyDown:propTypesExports.func,onKeyUp:propTypesExports.func,disabled:propTypesExports.bool,splitKey:propTypesExports.string};var baseIndexOf=_baseIndexOf;function arrayIncludes$1(tt,nt){var et=tt==null?0:tt.length;return!!et&&baseIndexOf(tt,nt,0)>-1}var _arrayIncludes=arrayIncludes$1;function arrayIncludesWith$1(tt,nt,et){for(var rt=-1,ot=tt==null?0:tt.length;++rt<ot;)if(et(nt,tt[rt]))return!0;return!1}var _arrayIncludesWith=arrayIncludesWith$1,SetCache=_SetCache,arrayIncludes=_arrayIncludes,arrayIncludesWith=_arrayIncludesWith,arrayMap=_arrayMap,baseUnary=_baseUnary,cacheHas=_cacheHas,LARGE_ARRAY_SIZE=200;function baseDifference$1(tt,nt,et,rt){var ot=-1,at=arrayIncludes,st=!0,ut=tt.length,ct=[],pt=nt.length;if(!ut)return ct;et&&(nt=arrayMap(nt,baseUnary(et))),rt?(at=arrayIncludesWith,st=!1):nt.length>=LARGE_ARRAY_SIZE&&(at=cacheHas,st=!1,nt=new SetCache(nt));e:for(;++ot<ut;){var dt=tt[ot],ft=et==null?dt:et(dt);if(dt=rt||dt!==0?dt:0,st&&ft===ft){for(var bt=pt;bt--;)if(nt[bt]===ft)continue e;ct.push(dt)}else at(nt,ft,rt)||ct.push(dt)}return ct}var _baseDifference=baseDifference$1,baseDifference=_baseDifference,baseRest=_baseRest,isArrayLikeObject=isArrayLikeObject_1,without=baseRest(function(tt,nt){return isArrayLikeObject(tt)?baseDifference(tt,nt):[]}),without_1=without;const without$1=getDefaultExportFromCjs$1(without_1);var uaParser={exports:{}};(function(tt,nt){(function(et,rt){var ot="1.0.39",at="",st="?",ut="function",ct="undefined",pt="object",dt="string",ft="major",bt="model",ht="name",Mt="type",mt="vendor",Ot="version",zt="architecture",yt="console",vt="mobile",At="tablet",St="smarttv",Et="wearable",Tt="embedded",Rt=500,Ct="Amazon",wt="Apple",Lt="ASUS",Ht="BlackBerry",jt="Browser",s0="Chrome",Ut="Edge",Yt="Firefox",O0="Google",a0="Huawei",b0="LG",kt="Microsoft",o0="Motorola",qt="Opera",Dt="Samsung",Bt="Sharp",p0="Sony",r0="Xiaomi",l0="Zebra",f0="Facebook",i0="Chromium OS",$t="Mac OS",It=" Browser",Vt=function(e0,Nt){var Xt={};for(var d0 in e0)Nt[d0]&&Nt[d0].length%2===0?Xt[d0]=Nt[d0].concat(e0[d0]):Xt[d0]=e0[d0];return Xt},xt=function(e0){for(var Nt={},Xt=0;Xt<e0.length;Xt++)Nt[e0[Xt].toUpperCase()]=e0[Xt];return Nt},Ft=function(e0,Nt){return typeof e0===dt?Pt(Nt).indexOf(Pt(e0))!==-1:!1},Pt=function(e0){return e0.toLowerCase()},Zt=function(e0){return typeof e0===dt?e0.replace(/[^\d\.]/g,at).split(".")[0]:rt},Kt=function(e0,Nt){if(typeof e0===dt)return e0=e0.replace(/^\s\s*/,at),typeof Nt===ct?e0:e0.substring(0,Rt)},n0=function(e0,Nt){for(var Xt=0,d0,z0,w0,E0,g0,k0;Xt<Nt.length&&!g0;){var I0=Nt[Xt],N0=Nt[Xt+1];for(d0=z0=0;d0<I0.length&&!g0&&I0[d0];)if(g0=I0[d0++].exec(e0),g0)for(w0=0;w0<N0.length;w0++)k0=g0[++z0],E0=N0[w0],typeof E0===pt&&E0.length>0?E0.length===2?typeof E0[1]==ut?this[E0[0]]=E0[1].call(this,k0):this[E0[0]]=E0[1]:E0.length===3?typeof E0[1]===ut&&!(E0[1].exec&&E0[1].test)?this[E0[0]]=k0?E0[1].call(this,k0,E0[2]):rt:this[E0[0]]=k0?k0.replace(E0[1],E0[2]):rt:E0.length===4&&(this[E0[0]]=k0?E0[3].call(this,k0.replace(E0[1],E0[2])):rt):this[E0]=k0||rt;Xt+=2}},c0=function(e0,Nt){for(var Xt in Nt)if(typeof Nt[Xt]===pt&&Nt[Xt].length>0){for(var d0=0;d0<Nt[Xt].length;d0++)if(Ft(Nt[Xt][d0],e0))return Xt===st?rt:Xt}else if(Ft(Nt[Xt],e0))return Xt===st?rt:Xt;return Nt.hasOwnProperty("*")?Nt["*"]:e0},u0={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},y0={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},D0={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[Ot,[ht,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[Ot,[ht,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[ht,Ot],[/opios[\/ ]+([\w\.]+)/i],[Ot,[ht,qt+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[Ot,[ht,qt+" GX"]],[/\bopr\/([\w\.]+)/i],[Ot,[ht,qt]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[Ot,[ht,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[ht,Ot],[/quark(?:pc)?\/([-\w\.]+)/i],[Ot,[ht,"Quark"]],[/\bddg\/([\w\.]+)/i],[Ot,[ht,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[Ot,[ht,"UC"+jt]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[Ot,[ht,"WeChat"]],[/konqueror\/([\w\.]+)/i],[Ot,[ht,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[Ot,[ht,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[Ot,[ht,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[Ot,[ht,"Smart Lenovo "+jt]],[/(avast|avg)\/([\w\.]+)/i],[[ht,/(.+)/,"$1 Secure "+jt],Ot],[/\bfocus\/([\w\.]+)/i],[Ot,[ht,Yt+" Focus"]],[/\bopt\/([\w\.]+)/i],[Ot,[ht,qt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[Ot,[ht,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[Ot,[ht,"Dolphin"]],[/coast\/([\w\.]+)/i],[Ot,[ht,qt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[Ot,[ht,"MIUI "+jt]],[/fxios\/([-\w\.]+)/i],[Ot,[ht,Yt]],[/\bqihu|(qi?ho?o?|360)browser/i],[[ht,"360"+It]],[/\b(qq)\/([\w\.]+)/i],[[ht,/(.+)/,"$1Browser"],Ot],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[ht,/(.+)/,"$1"+It],Ot],[/samsungbrowser\/([\w\.]+)/i],[Ot,[ht,Dt+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[ht,/_/g," "],Ot],[/metasr[\/ ]?([\d\.]+)/i],[Ot,[ht,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[ht,"Sogou Mobile"],Ot],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[ht,Ot],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[ht],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[ht,f0],Ot],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[ht,Ot],[/\bgsa\/([\w\.]+) .*safari\//i],[Ot,[ht,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[Ot,[ht,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[Ot,[ht,s0+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[ht,s0+" WebView"],Ot],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[Ot,[ht,"Android "+jt]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[ht,Ot],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[Ot,[ht,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[Ot,ht],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[ht,[Ot,c0,u0]],[/(webkit|khtml)\/([\w\.]+)/i],[ht,Ot],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[ht,"Netscape"],Ot],[/(wolvic)\/([\w\.]+)/i],[ht,Ot],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[Ot,[ht,Yt+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[ht,[Ot,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[ht,[Ot,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[zt,"amd64"]],[/(ia32(?=;))/i],[[zt,Pt]],[/((?:i[346]|x)86)[;\)]/i],[[zt,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[zt,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[zt,"armhf"]],[/windows (ce|mobile); ppc;/i],[[zt,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[zt,/ower/,at,Pt]],[/(sun4\w)[;\)]/i],[[zt,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[zt,Pt]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[bt,[mt,Dt],[Mt,At]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[bt,[mt,Dt],[Mt,vt]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[bt,[mt,wt],[Mt,vt]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[bt,[mt,wt],[Mt,At]],[/(macintosh);/i],[bt,[mt,wt]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[bt,[mt,Bt],[Mt,vt]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[bt,[mt,a0],[Mt,At]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[bt,[mt,a0],[Mt,vt]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[bt,/_/g," "],[mt,r0],[Mt,vt]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[bt,/_/g," "],[mt,r0],[Mt,At]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[bt,[mt,"OPPO"],[Mt,vt]],[/\b(opd2\d{3}a?) bui/i],[bt,[mt,"OPPO"],[Mt,At]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[bt,[mt,"Vivo"],[Mt,vt]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[bt,[mt,"Realme"],[Mt,vt]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[bt,[mt,o0],[Mt,vt]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[bt,[mt,o0],[Mt,At]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[bt,[mt,b0],[Mt,At]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[bt,[mt,b0],[Mt,vt]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[bt,[mt,"Lenovo"],[Mt,At]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[bt,/_/g," "],[mt,"Nokia"],[Mt,vt]],[/(pixel c)\b/i],[bt,[mt,O0],[Mt,At]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[bt,[mt,O0],[Mt,vt]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[bt,[mt,p0],[Mt,vt]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[bt,"Xperia Tablet"],[mt,p0],[Mt,At]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[bt,[mt,"OnePlus"],[Mt,vt]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[bt,[mt,Ct],[Mt,At]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[bt,/(.+)/g,"Fire Phone $1"],[mt,Ct],[Mt,vt]],[/(playbook);[-\w\),; ]+(rim)/i],[bt,mt,[Mt,At]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[bt,[mt,Ht],[Mt,vt]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[bt,[mt,Lt],[Mt,At]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[bt,[mt,Lt],[Mt,vt]],[/(nexus 9)/i],[bt,[mt,"HTC"],[Mt,At]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[mt,[bt,/_/g," "],[Mt,vt]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[bt,[mt,"TCL"],[Mt,At]],[/(itel) ((\w+))/i],[[mt,Pt],bt,[Mt,c0,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[bt,[mt,"Acer"],[Mt,At]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[bt,[mt,"Meizu"],[Mt,vt]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[bt,[mt,"Ulefone"],[Mt,vt]],[/droid.+; (a(?:015|06[35]|142p?))/i],[bt,[mt,"Nothing"],[Mt,vt]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[mt,bt,[Mt,vt]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[mt,bt,[Mt,At]],[/(surface duo)/i],[bt,[mt,kt],[Mt,At]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[bt,[mt,"Fairphone"],[Mt,vt]],[/(u304aa)/i],[bt,[mt,"AT&T"],[Mt,vt]],[/\bsie-(\w*)/i],[bt,[mt,"Siemens"],[Mt,vt]],[/\b(rct\w+) b/i],[bt,[mt,"RCA"],[Mt,At]],[/\b(venue[\d ]{2,7}) b/i],[bt,[mt,"Dell"],[Mt,At]],[/\b(q(?:mv|ta)\w+) b/i],[bt,[mt,"Verizon"],[Mt,At]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[bt,[mt,"Barnes & Noble"],[Mt,At]],[/\b(tm\d{3}\w+) b/i],[bt,[mt,"NuVision"],[Mt,At]],[/\b(k88) b/i],[bt,[mt,"ZTE"],[Mt,At]],[/\b(nx\d{3}j) b/i],[bt,[mt,"ZTE"],[Mt,vt]],[/\b(gen\d{3}) b.+49h/i],[bt,[mt,"Swiss"],[Mt,vt]],[/\b(zur\d{3}) b/i],[bt,[mt,"Swiss"],[Mt,At]],[/\b((zeki)?tb.*\b) b/i],[bt,[mt,"Zeki"],[Mt,At]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[mt,"Dragon Touch"],bt,[Mt,At]],[/\b(ns-?\w{0,9}) b/i],[bt,[mt,"Insignia"],[Mt,At]],[/\b((nxa|next)-?\w{0,9}) b/i],[bt,[mt,"NextBook"],[Mt,At]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[mt,"Voice"],bt,[Mt,vt]],[/\b(lvtel\-)?(v1[12]) b/i],[[mt,"LvTel"],bt,[Mt,vt]],[/\b(ph-1) /i],[bt,[mt,"Essential"],[Mt,vt]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[bt,[mt,"Envizen"],[Mt,At]],[/\b(trio[-\w\. ]+) b/i],[bt,[mt,"MachSpeed"],[Mt,At]],[/\btu_(1491) b/i],[bt,[mt,"Rotor"],[Mt,At]],[/(shield[\w ]+) b/i],[bt,[mt,"Nvidia"],[Mt,At]],[/(sprint) (\w+)/i],[mt,bt,[Mt,vt]],[/(kin\.[onetw]{3})/i],[[bt,/\./g," "],[mt,kt],[Mt,vt]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[bt,[mt,l0],[Mt,At]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[bt,[mt,l0],[Mt,vt]],[/smart-tv.+(samsung)/i],[mt,[Mt,St]],[/hbbtv.+maple;(\d+)/i],[[bt,/^/,"SmartTV"],[mt,Dt],[Mt,St]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[mt,b0],[Mt,St]],[/(apple) ?tv/i],[mt,[bt,wt+" TV"],[Mt,St]],[/crkey/i],[[bt,s0+"cast"],[mt,O0],[Mt,St]],[/droid.+aft(\w+)( bui|\))/i],[bt,[mt,Ct],[Mt,St]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[bt,[mt,Bt],[Mt,St]],[/(bravia[\w ]+)( bui|\))/i],[bt,[mt,p0],[Mt,St]],[/(mitv-\w{5}) bui/i],[bt,[mt,r0],[Mt,St]],[/Hbbtv.*(technisat) (.*);/i],[mt,bt,[Mt,St]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[mt,Kt],[bt,Kt],[Mt,St]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[Mt,St]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[mt,bt,[Mt,yt]],[/droid.+; (shield) bui/i],[bt,[mt,"Nvidia"],[Mt,yt]],[/(playstation [345portablevi]+)/i],[bt,[mt,p0],[Mt,yt]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[bt,[mt,kt],[Mt,yt]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[bt,[mt,Dt],[Mt,Et]],[/((pebble))app/i],[mt,bt,[Mt,Et]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[bt,[mt,wt],[Mt,Et]],[/droid.+; (glass) \d/i],[bt,[mt,O0],[Mt,Et]],[/droid.+; (wt63?0{2,3})\)/i],[bt,[mt,l0],[Mt,Et]],[/(quest( \d| pro)?)/i],[bt,[mt,f0],[Mt,Et]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[mt,[Mt,Tt]],[/(aeobc)\b/i],[bt,[mt,Ct],[Mt,Tt]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[bt,[Mt,vt]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[bt,[Mt,At]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[Mt,At]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[Mt,vt]],[/(android[-\w\. ]{0,9});.+buil/i],[bt,[mt,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[Ot,[ht,Ut+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[Ot,[ht,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[ht,Ot],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[Ot,ht]],os:[[/microsoft (windows) (vista|xp)/i],[ht,Ot],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[ht,[Ot,c0,y0]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[Ot,c0,y0],[ht,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[Ot,/_/g,"."],[ht,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[ht,$t],[Ot,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[Ot,ht],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[ht,Ot],[/\(bb(10);/i],[Ot,[ht,Ht]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[Ot,[ht,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[Ot,[ht,Yt+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[Ot,[ht,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[Ot,[ht,"watchOS"]],[/crkey\/([\d\.]+)/i],[Ot,[ht,s0+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[ht,i0],Ot],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[ht,Ot],[/(sunos) ?([\w\.\d]*)/i],[[ht,"Solaris"],Ot],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[ht,Ot]]},S0=function(e0,Nt){if(typeof e0===pt&&(Nt=e0,e0=rt),!(this instanceof S0))return new S0(e0,Nt).getResult();var Xt=typeof et!==ct&&et.navigator?et.navigator:rt,d0=e0||(Xt&&Xt.userAgent?Xt.userAgent:at),z0=Xt&&Xt.userAgentData?Xt.userAgentData:rt,w0=Nt?Vt(D0,Nt):D0,E0=Xt&&Xt.userAgent==d0;return this.getBrowser=function(){var g0={};return g0[ht]=rt,g0[Ot]=rt,n0.call(g0,d0,w0.browser),g0[ft]=Zt(g0[Ot]),E0&&Xt&&Xt.brave&&typeof Xt.brave.isBrave==ut&&(g0[ht]="Brave"),g0},this.getCPU=function(){var g0={};return g0[zt]=rt,n0.call(g0,d0,w0.cpu),g0},this.getDevice=function(){var g0={};return g0[mt]=rt,g0[bt]=rt,g0[Mt]=rt,n0.call(g0,d0,w0.device),E0&&!g0[Mt]&&z0&&z0.mobile&&(g0[Mt]=vt),E0&&g0[bt]=="Macintosh"&&Xt&&typeof Xt.standalone!==ct&&Xt.maxTouchPoints&&Xt.maxTouchPoints>2&&(g0[bt]="iPad",g0[Mt]=At),g0},this.getEngine=function(){var g0={};return g0[ht]=rt,g0[Ot]=rt,n0.call(g0,d0,w0.engine),g0},this.getOS=function(){var g0={};return g0[ht]=rt,g0[Ot]=rt,n0.call(g0,d0,w0.os),E0&&!g0[ht]&&z0&&z0.platform&&z0.platform!="Unknown"&&(g0[ht]=z0.platform.replace(/chrome os/i,i0).replace(/macos/i,$t)),g0},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return d0},this.setUA=function(g0){return d0=typeof g0===dt&&g0.length>Rt?Kt(g0,Rt):g0,this},this.setUA(d0),this};S0.VERSION=ot,S0.BROWSER=xt([ht,Ot,ft]),S0.CPU=xt([zt]),S0.DEVICE=xt([bt,mt,Mt,yt,vt,St,At,Et,Tt]),S0.ENGINE=S0.OS=xt([ht,Ot]),tt.exports&&(nt=tt.exports=S0),nt.UAParser=S0;var x0=typeof et!==ct&&(et.jQuery||et.Zepto);if(x0&&!x0.ua){var m0=new S0;x0.ua=m0.getResult(),x0.ua.get=function(){return m0.getUA()},x0.ua.set=function(e0){m0.setUA(e0);var Nt=m0.getResult();for(var Xt in Nt)x0.ua[Xt]=Nt[Xt]}}})(typeof window=="object"?window:commonjsGlobal$1)})(uaParser,uaParser.exports);var uaParserExports=uaParser.exports;const UAParser=getDefaultExportFromCjs$1(uaParserExports);function getBrowserInfo(){const nt=new UAParser().getResult();return{browserName:nt.browser.name||"Unknown",browserVersion:nt.browser.version||"Unknown",deviceType:nt.device.type||"desktop",os:nt.os.name||"Unknown"}}const AppContext=React$1.createContext({wideMode:!1,initialSidebarState:PageConfig.SidebarState.AUTO,embedded:!1,showPadding:!1,disableScrolling:!1,showToolbar:!1,showColoredLine:!1,pageLinkBaseUrl:"",sidebarChevronDownshift:0,gitInfo:null,appConfig:{}});var __extends$1=function(){var tt=function(nt,et){return tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(rt,ot){rt.__proto__=ot}||function(rt,ot){for(var at in ot)Object.prototype.hasOwnProperty.call(ot,at)&&(rt[at]=ot[at])},tt(nt,et)};return function(nt,et){tt(nt,et);function rt(){this.constructor=nt}nt.prototype=et===null?Object.create(et):(rt.prototype=et.prototype,new rt)}}(),__assign$1=function(){return __assign$1=Object.assign||function(tt){for(var nt,et=1,rt=arguments.length;et<rt;et++){nt=arguments[et];for(var ot in nt)Object.prototype.hasOwnProperty.call(nt,ot)&&(tt[ot]=nt[ot])}return tt},__assign$1.apply(this,arguments)},rowSizeBase={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},colSizeBase={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},edgeBase={width:"20px",height:"20px",position:"absolute"},styles={top:__assign$1(__assign$1({},rowSizeBase),{top:"-5px"}),right:__assign$1(__assign$1({},colSizeBase),{left:void 0,right:"-5px"}),bottom:__assign$1(__assign$1({},rowSizeBase),{top:void 0,bottom:"-5px"}),left:__assign$1(__assign$1({},colSizeBase),{left:"-5px"}),topRight:__assign$1(__assign$1({},edgeBase),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:__assign$1(__assign$1({},edgeBase),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:__assign$1(__assign$1({},edgeBase),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:__assign$1(__assign$1({},edgeBase),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Resizer=function(tt){__extends$1(nt,tt);function nt(){var et=tt!==null&&tt.apply(this,arguments)||this;return et.onMouseDown=function(rt){et.props.onResizeStart(rt,et.props.direction)},et.onTouchStart=function(rt){et.props.onResizeStart(rt,et.props.direction)},et}return nt.prototype.render=function(){return reactExports.createElement("div",{className:this.props.className||"",style:__assign$1(__assign$1({position:"absolute",userSelect:"none"},styles[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},nt}(reactExports.PureComponent),__extends=function(){var tt=function(nt,et){return tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(rt,ot){rt.__proto__=ot}||function(rt,ot){for(var at in ot)Object.prototype.hasOwnProperty.call(ot,at)&&(rt[at]=ot[at])},tt(nt,et)};return function(nt,et){tt(nt,et);function rt(){this.constructor=nt}nt.prototype=et===null?Object.create(et):(rt.prototype=et.prototype,new rt)}}(),__assign=function(){return __assign=Object.assign||function(tt){for(var nt,et=1,rt=arguments.length;et<rt;et++){nt=arguments[et];for(var ot in nt)Object.prototype.hasOwnProperty.call(nt,ot)&&(tt[ot]=nt[ot])}return tt},__assign.apply(this,arguments)},DEFAULT_SIZE={width:"auto",height:"auto"},clamp=function(tt,nt,et){return Math.max(Math.min(tt,et),nt)},snap=function(tt,nt,et){var rt=Math.round(tt/nt);return rt*nt+et*(rt-1)},hasDirection=function(tt,nt){return new RegExp(tt,"i").test(nt)},isTouchEvent=function(tt){return!!(tt.touches&&tt.touches.length)},isMouseEvent=function(tt){return!!((tt.clientX||tt.clientX===0)&&(tt.clientY||tt.clientY===0))},findClosestSnap=function(tt,nt,et){et===void 0&&(et=0);var rt=nt.reduce(function(at,st,ut){return Math.abs(st-tt)<Math.abs(nt[at]-tt)?ut:at},0),ot=Math.abs(nt[rt]-tt);return et===0||ot<et?nt[rt]:tt},getStringSize=function(tt){return tt=tt.toString(),tt==="auto"||tt.endsWith("px")||tt.endsWith("%")||tt.endsWith("vh")||tt.endsWith("vw")||tt.endsWith("vmax")||tt.endsWith("vmin")?tt:tt+"px"},getPixelSize=function(tt,nt,et,rt){if(tt&&typeof tt=="string"){if(tt.endsWith("px"))return Number(tt.replace("px",""));if(tt.endsWith("%")){var ot=Number(tt.replace("%",""))/100;return nt*ot}if(tt.endsWith("vw")){var ot=Number(tt.replace("vw",""))/100;return et*ot}if(tt.endsWith("vh")){var ot=Number(tt.replace("vh",""))/100;return rt*ot}}return tt},calculateNewMax=function(tt,nt,et,rt,ot,at,st){return rt=getPixelSize(rt,tt.width,nt,et),ot=getPixelSize(ot,tt.height,nt,et),at=getPixelSize(at,tt.width,nt,et),st=getPixelSize(st,tt.height,nt,et),{maxWidth:typeof rt>"u"?void 0:Number(rt),maxHeight:typeof ot>"u"?void 0:Number(ot),minWidth:typeof at>"u"?void 0:Number(at),minHeight:typeof st>"u"?void 0:Number(st)}},normalizeToPair=function(tt){return Array.isArray(tt)?tt:[tt,tt]},definedProps=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],baseClassName="__resizable_base__",Resizable=function(tt){__extends(nt,tt);function nt(et){var rt,ot,at,st,ut=tt.call(this,et)||this;return ut.ratio=1,ut.resizable=null,ut.parentLeft=0,ut.parentTop=0,ut.resizableLeft=0,ut.resizableRight=0,ut.resizableTop=0,ut.resizableBottom=0,ut.targetLeft=0,ut.targetTop=0,ut.appendBase=function(){if(!ut.resizable||!ut.window)return null;var ct=ut.parentNode;if(!ct)return null;var pt=ut.window.document.createElement("div");return pt.style.width="100%",pt.style.height="100%",pt.style.position="absolute",pt.style.transform="scale(0, 0)",pt.style.left="0",pt.style.flex="0 0 100%",pt.classList?pt.classList.add(baseClassName):pt.className+=baseClassName,ct.appendChild(pt),pt},ut.removeBase=function(ct){var pt=ut.parentNode;pt&&pt.removeChild(ct)},ut.state={isResizing:!1,width:(ot=(rt=ut.propsSize)===null||rt===void 0?void 0:rt.width)!==null&&ot!==void 0?ot:"auto",height:(st=(at=ut.propsSize)===null||at===void 0?void 0:at.height)!==null&&st!==void 0?st:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},ut.onResizeStart=ut.onResizeStart.bind(ut),ut.onMouseMove=ut.onMouseMove.bind(ut),ut.onMouseUp=ut.onMouseUp.bind(ut),ut}return Object.defineProperty(nt.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||DEFAULT_SIZE},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"size",{get:function(){var et=0,rt=0;if(this.resizable&&this.window){var ot=this.resizable.offsetWidth,at=this.resizable.offsetHeight,st=this.resizable.style.position;st!=="relative"&&(this.resizable.style.position="relative"),et=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:ot,rt=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:at,this.resizable.style.position=st}return{width:et,height:rt}},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"sizeStyle",{get:function(){var et=this,rt=this.props.size,ot=function(ut){var ct;if(typeof et.state[ut]>"u"||et.state[ut]==="auto")return"auto";if(et.propsSize&&et.propsSize[ut]&&(!((ct=et.propsSize[ut])===null||ct===void 0)&&ct.toString().endsWith("%"))){if(et.state[ut].toString().endsWith("%"))return et.state[ut].toString();var pt=et.getParentSize(),dt=Number(et.state[ut].toString().replace("px","")),ft=dt/pt[ut]*100;return ft+"%"}return getStringSize(et.state[ut])},at=rt&&typeof rt.width<"u"&&!this.state.isResizing?getStringSize(rt.width):ot("width"),st=rt&&typeof rt.height<"u"&&!this.state.isResizing?getStringSize(rt.height):ot("height");return{width:at,height:st}},enumerable:!1,configurable:!0}),nt.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var et=this.appendBase();if(!et)return{width:0,height:0};var rt=!1,ot=this.parentNode.style.flexWrap;ot!=="wrap"&&(rt=!0,this.parentNode.style.flexWrap="wrap"),et.style.position="relative",et.style.minWidth="100%",et.style.minHeight="100%";var at={width:et.offsetWidth,height:et.offsetHeight};return rt&&(this.parentNode.style.flexWrap=ot),this.removeBase(et),at},nt.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},nt.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},nt.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var et=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:et.flexBasis!=="auto"?et.flexBasis:void 0})}},nt.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},nt.prototype.createSizeForCssProperty=function(et,rt){var ot=this.propsSize&&this.propsSize[rt];return this.state[rt]==="auto"&&this.state.original[rt]===et&&(typeof ot>"u"||ot==="auto")?"auto":et},nt.prototype.calculateNewMaxFromBoundary=function(et,rt){var ot=this.props.boundsByDirection,at=this.state.direction,st=ot&&hasDirection("left",at),ut=ot&&hasDirection("top",at),ct,pt;if(this.props.bounds==="parent"){var dt=this.parentNode;dt&&(ct=st?this.resizableRight-this.parentLeft:dt.offsetWidth+(this.parentLeft-this.resizableLeft),pt=ut?this.resizableBottom-this.parentTop:dt.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(ct=st?this.resizableRight:this.window.innerWidth-this.resizableLeft,pt=ut?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(ct=st?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),pt=ut?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return ct&&Number.isFinite(ct)&&(et=et&&et<ct?et:ct),pt&&Number.isFinite(pt)&&(rt=rt&&rt<pt?rt:pt),{maxWidth:et,maxHeight:rt}},nt.prototype.calculateNewSizeFromDirection=function(et,rt){var ot=this.props.scale||1,at=normalizeToPair(this.props.resizeRatio||1),st=at[0],ut=at[1],ct=this.state,pt=ct.direction,dt=ct.original,ft=this.props,bt=ft.lockAspectRatio,ht=ft.lockAspectRatioExtraHeight,Mt=ft.lockAspectRatioExtraWidth,mt=dt.width,Ot=dt.height,zt=ht||0,yt=Mt||0;return hasDirection("right",pt)&&(mt=dt.width+(et-dt.x)*st/ot,bt&&(Ot=(mt-yt)/this.ratio+zt)),hasDirection("left",pt)&&(mt=dt.width-(et-dt.x)*st/ot,bt&&(Ot=(mt-yt)/this.ratio+zt)),hasDirection("bottom",pt)&&(Ot=dt.height+(rt-dt.y)*ut/ot,bt&&(mt=(Ot-zt)*this.ratio+yt)),hasDirection("top",pt)&&(Ot=dt.height-(rt-dt.y)*ut/ot,bt&&(mt=(Ot-zt)*this.ratio+yt)),{newWidth:mt,newHeight:Ot}},nt.prototype.calculateNewSizeFromAspectRatio=function(et,rt,ot,at){var st=this.props,ut=st.lockAspectRatio,ct=st.lockAspectRatioExtraHeight,pt=st.lockAspectRatioExtraWidth,dt=typeof at.width>"u"?10:at.width,ft=typeof ot.width>"u"||ot.width<0?et:ot.width,bt=typeof at.height>"u"?10:at.height,ht=typeof ot.height>"u"||ot.height<0?rt:ot.height,Mt=ct||0,mt=pt||0;if(ut){var Ot=(bt-Mt)*this.ratio+mt,zt=(ht-Mt)*this.ratio+mt,yt=(dt-mt)/this.ratio+Mt,vt=(ft-mt)/this.ratio+Mt,At=Math.max(dt,Ot),St=Math.min(ft,zt),Et=Math.max(bt,yt),Tt=Math.min(ht,vt);et=clamp(et,At,St),rt=clamp(rt,Et,Tt)}else et=clamp(et,dt,ft),rt=clamp(rt,bt,ht);return{newWidth:et,newHeight:rt}},nt.prototype.setBoundingClientRect=function(){var et=1/(this.props.scale||1);if(this.props.bounds==="parent"){var rt=this.parentNode;if(rt){var ot=rt.getBoundingClientRect();this.parentLeft=ot.left*et,this.parentTop=ot.top*et}}if(this.props.bounds&&typeof this.props.bounds!="string"){var at=this.props.bounds.getBoundingClientRect();this.targetLeft=at.left*et,this.targetTop=at.top*et}if(this.resizable){var st=this.resizable.getBoundingClientRect(),ut=st.left,ct=st.top,pt=st.right,dt=st.bottom;this.resizableLeft=ut*et,this.resizableRight=pt*et,this.resizableTop=ct*et,this.resizableBottom=dt*et}},nt.prototype.onResizeStart=function(et,rt){if(!(!this.resizable||!this.window)){var ot=0,at=0;if(et.nativeEvent&&isMouseEvent(et.nativeEvent)?(ot=et.nativeEvent.clientX,at=et.nativeEvent.clientY):et.nativeEvent&&isTouchEvent(et.nativeEvent)&&(ot=et.nativeEvent.touches[0].clientX,at=et.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var st=this.props.onResizeStart(et,rt,this.resizable);if(st===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var ut,ct=this.window.getComputedStyle(this.resizable);if(ct.flexBasis!=="auto"){var pt=this.parentNode;if(pt){var dt=this.window.getComputedStyle(pt).flexDirection;this.flexDir=dt.startsWith("row")?"row":"column",ut=ct.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var ft={original:{x:ot,y:at,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(et.target).cursor||"auto"}),direction:rt,flexBasis:ut};this.setState(ft)}},nt.prototype.onMouseMove=function(et){var rt=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&isTouchEvent(et))try{et.preventDefault(),et.stopPropagation()}catch{}var ot=this.props,at=ot.maxWidth,st=ot.maxHeight,ut=ot.minWidth,ct=ot.minHeight,pt=isTouchEvent(et)?et.touches[0].clientX:et.clientX,dt=isTouchEvent(et)?et.touches[0].clientY:et.clientY,ft=this.state,bt=ft.direction,ht=ft.original,Mt=ft.width,mt=ft.height,Ot=this.getParentSize(),zt=calculateNewMax(Ot,this.window.innerWidth,this.window.innerHeight,at,st,ut,ct);at=zt.maxWidth,st=zt.maxHeight,ut=zt.minWidth,ct=zt.minHeight;var yt=this.calculateNewSizeFromDirection(pt,dt),vt=yt.newHeight,At=yt.newWidth,St=this.calculateNewMaxFromBoundary(at,st);this.props.snap&&this.props.snap.x&&(At=findClosestSnap(At,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(vt=findClosestSnap(vt,this.props.snap.y,this.props.snapGap));var Et=this.calculateNewSizeFromAspectRatio(At,vt,{width:St.maxWidth,height:St.maxHeight},{width:ut,height:ct});if(At=Et.newWidth,vt=Et.newHeight,this.props.grid){var Tt=snap(At,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),Rt=snap(vt,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),Ct=this.props.snapGap||0,wt=Ct===0||Math.abs(Tt-At)<=Ct?Tt:At,Lt=Ct===0||Math.abs(Rt-vt)<=Ct?Rt:vt;At=wt,vt=Lt}var Ht={width:At-ht.width,height:vt-ht.height};if(Mt&&typeof Mt=="string"){if(Mt.endsWith("%")){var jt=At/Ot.width*100;At=jt+"%"}else if(Mt.endsWith("vw")){var s0=At/this.window.innerWidth*100;At=s0+"vw"}else if(Mt.endsWith("vh")){var Ut=At/this.window.innerHeight*100;At=Ut+"vh"}}if(mt&&typeof mt=="string"){if(mt.endsWith("%")){var jt=vt/Ot.height*100;vt=jt+"%"}else if(mt.endsWith("vw")){var s0=vt/this.window.innerWidth*100;vt=s0+"vw"}else if(mt.endsWith("vh")){var Ut=vt/this.window.innerHeight*100;vt=Ut+"vh"}}var Yt={width:this.createSizeForCssProperty(At,"width"),height:this.createSizeForCssProperty(vt,"height")};this.flexDir==="row"?Yt.flexBasis=Yt.width:this.flexDir==="column"&&(Yt.flexBasis=Yt.height);var O0=this.state.width!==Yt.width,a0=this.state.height!==Yt.height,b0=this.state.flexBasis!==Yt.flexBasis,kt=O0||a0||b0;kt&&reactDomExports.flushSync(function(){rt.setState(Yt)}),this.props.onResize&&kt&&this.props.onResize(et,bt,this.resizable,Ht)}},nt.prototype.onMouseUp=function(et){var rt,ot,at=this.state,st=at.isResizing,ut=at.direction,ct=at.original;if(!(!st||!this.resizable)){var pt={width:this.size.width-ct.width,height:this.size.height-ct.height};this.props.onResizeStop&&this.props.onResizeStop(et,ut,this.resizable,pt),this.props.size&&this.setState({width:(rt=this.props.size.width)!==null&&rt!==void 0?rt:"auto",height:(ot=this.props.size.height)!==null&&ot!==void 0?ot:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:"auto"})})}},nt.prototype.updateSize=function(et){var rt,ot;this.setState({width:(rt=et.width)!==null&&rt!==void 0?rt:"auto",height:(ot=et.height)!==null&&ot!==void 0?ot:"auto"})},nt.prototype.renderResizer=function(){var et=this,rt=this.props,ot=rt.enable,at=rt.handleStyles,st=rt.handleClasses,ut=rt.handleWrapperStyle,ct=rt.handleWrapperClass,pt=rt.handleComponent;if(!ot)return null;var dt=Object.keys(ot).map(function(ft){return ot[ft]!==!1?reactExports.createElement(Resizer,{key:ft,direction:ft,onResizeStart:et.onResizeStart,replaceStyles:at&&at[ft],className:st&&st[ft]},pt&&pt[ft]?pt[ft]:null):null});return reactExports.createElement("div",{className:ct,style:ut},dt)},nt.prototype.render=function(){var et=this,rt=Object.keys(this.props).reduce(function(st,ut){return definedProps.indexOf(ut)!==-1||(st[ut]=et.props[ut]),st},{}),ot=__assign(__assign(__assign({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(ot.flexBasis=this.state.flexBasis);var at=this.props.as||"div";return reactExports.createElement(at,__assign({style:ot,className:this.props.className},rt,{ref:function(st){st&&(et.resizable=st)}}),this.state.isResizing&&reactExports.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},nt.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},nt}(reactExports.PureComponent);const conditionalCustomColor=(tt,nt,et)=>{let rt=tt.colors.bodyText!==tt.colors.gray10;return hasLightBackgroundColor(tt)&&(rt=tt.colors.bodyText!==tt.colors.gray85),rt?nt:et},StyledSidebar=newStyled("section",{target:"e1c29vlm0"})(({theme:tt,isCollapsed:nt,adjustTop:et,sidebarWidth:rt})=>{const ot=nt?0:Math.min(244,window.innerWidth),at=nt?0:Math.min(550,window.innerWidth*.9);return{position:"relative",top:et?tt.sizes.headerDecorationHeight:tt.spacing.none,backgroundColor:tt.colors.bgColor,zIndex:tt.zIndices.header+1,minWidth:ot,maxWidth:at,transform:nt?`translateX(-${rt}px)`:"none",transition:"transform 300ms, min-width 300ms, max-width 300ms","&:focus":{outline:"none"},[`@media (max-width: ${tt.breakpoints.md})`]:{boxShadow:`-2rem 0 2rem 2rem ${nt?"transparent":"#00000029"}`},"@media print":{display:nt?"none":"initial",height:"auto !important",maxHeight:"99%",boxShadow:"none"}}}),StyledSidebarNavContainer=newStyled("div",{target:"e1c29vlm1"})({position:"relative"}),StyledSidebarNavItems=newStyled("ul",{target:"e1c29vlm2"})(({theme:tt})=>({listStyle:"none",margin:tt.spacing.none,paddingBottom:tt.spacing.threeXS,paddingTop:tt.spacing.none,paddingRight:tt.spacing.none,paddingLeft:tt.spacing.none})),StyledSidebarNavLinkContainer=newStyled("div",{target:"e1c29vlm3"})({display:"flex",flexDirection:"column"}),StyledSidebarNavIcon=newStyled("span",{target:"e1c29vlm4"})(({theme:tt,isActive:nt})=>{const et=conditionalCustomColor(tt,tt.colors.fadedText60,tt.colors.navIconColor),rt=conditionalCustomColor(tt,tt.colors.bodyText,tt.colors.navActiveTextColor);return{display:"inline-flex",span:{color:nt?rt:et,fontWeight:nt?tt.fontWeights.bold:tt.fontWeights.normal}}}),StyledSidebarNavLink=newStyled("a",{target:"e1c29vlm5"})(({theme:tt,isActive:nt})=>{const et=conditionalCustomColor(tt,tt.colors.bodyText,tt.colors.navTextColor),rt={textDecoration:"none",fontWeight:nt?tt.fontWeights.bold:tt.fontWeights.normal};return{...rt,display:"flex",flexDirection:"row",alignItems:"center",gap:tt.spacing.sm,borderRadius:tt.radii.default,paddingLeft:tt.spacing.sm,paddingRight:tt.spacing.sm,marginLeft:tt.spacing.twoXL,marginRight:tt.spacing.twoXL,marginTop:tt.spacing.threeXS,marginBottom:tt.spacing.threeXS,lineHeight:tt.lineHeights.menuItem,color:et,backgroundColor:nt?tt.colors.darkenedBgMix25:"transparent","&:hover":{backgroundColor:transparentize(tt.colors.darkenedBgMix25,.1)},"&:active,&:visited,&:hover":{...rt},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:tt.colors.darkenedBgMix15},"@media print":{paddingLeft:tt.spacing.none}}}),StyledSidebarLinkText=newStyled("span",{target:"e1c29vlm6"})(({isActive:tt,theme:nt})=>{const et=conditionalCustomColor(nt,transparentize(nt.colors.bodyText,.2),nt.colors.navTextColor),rt=conditionalCustomColor(nt,nt.colors.bodyText,nt.colors.navActiveTextColor);return{color:tt?rt:et,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell"}}),StyledSidebarUserContent=newStyled("div",{target:"e1c29vlm7"})(({hasPageNavAbove:tt,theme:nt})=>({paddingTop:tt?nt.spacing.twoXL:0,paddingBottom:nt.sizes.sidebarTopSpace,paddingLeft:nt.spacing.twoXL,paddingRight:nt.spacing.twoXL})),StyledSidebarContent=newStyled("div",{target:"e1c29vlm8"})(({})=>({position:"relative",height:"100%",width:"100%",overflow:["auto","overlay"]})),RESIZE_HANDLE_WIDTH="8px",StyledResizeHandle=newStyled("div",{target:"e1c29vlm9"})(({theme:tt})=>({position:"absolute",width:RESIZE_HANDLE_WIDTH,height:"100%",cursor:"col-resize",zIndex:tt.zIndices.sidebarMobile,"&:hover":{backgroundImage:`linear-gradient(to right, transparent 20%, ${tt.colors.fadedText20} 28%, transparent 36%)`}})),StyledSidebarHeaderContainer=newStyled("div",{target:"e1c29vlm10"})(({theme:tt})=>({display:"flex",justifyContent:"space-between",alignItems:"start",padding:tt.spacing.twoXL,paddingTop:`calc(${tt.spacing.twoXL} - ${tt.sizes.headerDecorationHeight})`})),StyledLogoLink=newStyled("a",{target:"e1c29vlm11"})(({})=>({"&:hover":{opacity:"0.7"}}));function translateLogoHeight(tt,nt){return nt==="small"?tt.sizes.smallLogoHeight:nt==="large"?tt.sizes.largeLogoHeight:tt.sizes.defaultLogoHeight}const StyledLogo=newStyled("img",{target:"e1c29vlm12"})(({theme:tt,size:nt,sidebarWidth:et})=>({height:translateLogoHeight(tt,nt),marginTop:nt=="small"?tt.spacing.xs:tt.spacing.twoXS,marginBottom:nt=="small"?tt.spacing.xs:tt.spacing.twoXS,marginRight:tt.spacing.sm,marginLeft:tt.spacing.none,zIndex:tt.zIndices.header,objectFit:"contain",verticalAlign:"middle",...et&&{maxWidth:`calc(${et}px - 2 * ${tt.spacing.twoXL} - ${tt.spacing.sm} - 2.25rem)`}})),StyledNoLogoSpacer=newStyled("div",{target:"e1c29vlm13"})(({theme:tt})=>({height:tt.sizes.largeLogoHeight})),StyledSidebarOpenContainer=newStyled("div",{target:"e1c29vlm14"})(({theme:tt,chevronDownshift:nt})=>({position:"fixed",top:nt?`${nt}px`:tt.spacing.xl,left:tt.spacing.twoXL,zIndex:tt.zIndices.header,display:"flex",justifyContent:"center",alignItems:"center","@media print":{position:"absolute",left:0,top:0,marginTop:0,[`& > ${StyledLogo}`]:{marginTop:0}}})),StyledOpenSidebarButton=newStyled("div",{target:"e1c29vlm15"})(({theme:tt})=>{const nt=conditionalCustomColor(tt,tt.colors.bodyText,tt.colors.sidebarControlColor);return{zIndex:tt.zIndices.header,color:nt,marginTop:tt.spacing.twoXS,button:{"&:hover":{backgroundColor:tt.colors.darkenedBgMix25}},"@media print":{display:"none"}}}),StyledCollapseSidebarButton=newStyled("div",{target:"e1c29vlm16"})(({showSidebarCollapse:tt,theme:nt})=>{const et=conditionalCustomColor(nt,nt.colors.bodyText,nt.colors.sidebarControlColor);return{display:tt?"inline":"none",transition:"left 300ms",transitionDelay:"left 300ms",color:et,lineHeight:"0","@media print":{display:"none"},[`@media (max-width: ${nt.breakpoints.sm})`]:{display:"inline"}}}),StyledSidebarNavSectionHeader=newStyled("header",{target:"e1c29vlm17"})(({theme:tt})=>{const nt=conditionalCustomColor(tt,transparentize(tt.colors.bodyText,.15),tt.colors.navTextColor);return{fontSize:tt.fontSizes.sm,fontWeight:tt.fontWeights.bold,color:nt,lineHeight:tt.lineHeights.small,paddingRight:tt.spacing.sm,marginLeft:tt.spacing.twoXL,marginRight:tt.spacing.twoXL,marginTop:tt.spacing.sm,marginBottom:tt.spacing.twoXS}}),StyledViewButton=newStyled("button",{target:"e1c29vlm18"})(({theme:tt})=>{const nt=conditionalCustomColor(tt,tt.colors.bodyText,tt.colors.navActiveTextColor);return{fontSize:tt.fontSizes.sm,fontFamily:"inherit",lineHeight:tt.lineHeights.base,color:nt,backgroundColor:tt.colors.transparent,border:"none",borderRadius:tt.radii.default,marginTop:tt.spacing.twoXS,marginLeft:tt.spacing.xl,marginBottom:tt.spacing.none,marginRight:tt.spacing.none,padding:`${tt.spacing.threeXS} ${tt.spacing.sm}`,"&:hover, &:active, &:focus":{border:"none",outline:"none",boxShadow:"none"},"&:hover":{backgroundColor:tt.colors.darkenedBgMix25}}}),StyledSidebarNavSeparator=newStyled("div",{target:"e1c29vlm19"})(({theme:tt})=>({paddingTop:tt.spacing.lg,borderBottom:`${tt.sizes.borderWidth} solid ${tt.colors.borderColor}`}));function arrayAggregator$1(tt,nt,et,rt){for(var ot=-1,at=tt==null?0:tt.length;++ot<at;){var st=tt[ot];nt(rt,st,et(st),tt)}return rt}var _arrayAggregator=arrayAggregator$1,baseEach=_baseEach;function baseAggregator$1(tt,nt,et,rt){return baseEach(tt,function(ot,at,st){nt(rt,ot,et(ot),st)}),rt}var _baseAggregator=baseAggregator$1,arrayAggregator=_arrayAggregator,baseAggregator=_baseAggregator,baseIteratee$1=_baseIteratee,isArray$1=isArray_1;function createAggregator$1(tt,nt){return function(et,rt){var ot=isArray$1(et)?arrayAggregator:baseAggregator,at=nt?nt():{};return ot(et,tt,baseIteratee$1(rt),at)}}var _createAggregator=createAggregator$1,baseAssignValue$1=_baseAssignValue,createAggregator=_createAggregator,objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty,groupBy=createAggregator(function(tt,nt,et){hasOwnProperty$1.call(tt,et)?tt[et].push(nt):baseAssignValue$1(tt,et,[nt])}),groupBy_1=groupBy;const groupBy$1=getDefaultExportFromCjs$1(groupBy_1),NavSection=({header:tt="",children:nt})=>jsxs(Fragment,{children:[tt&&jsx$1(StyledSidebarNavSectionHeader,{"data-testid":"stNavSectionHeader",children:tt}),nt]}),SidebarNavLink=({isActive:tt,pageUrl:nt,icon:et,onClick:rt,children:ot})=>jsx$1(StyledSidebarNavLinkContainer,{children:jsxs(StyledSidebarNavLink,{"data-testid":"stSidebarNavLink",isActive:tt,href:nt,onClick:rt,children:[et&&et.length&&jsx$1(StyledSidebarNavIcon,{isActive:tt,children:jsx$1(DynamicIcon,{size:"md",iconValue:et})}),jsx$1(StyledSidebarLinkText,{isActive:tt,children:ot})]})}),COLLAPSE_THRESHOLD=12,NUM_PAGES_TO_SHOW_WHEN_COLLAPSED=10;function NavLink({pageUrl:tt,page:nt,isActive:et,onClick:rt}){const ot=nt.pageName;return jsx$1("li",{children:jsx$1(SidebarNavLink,{isActive:et,pageUrl:tt,icon:nt.icon,onClick:rt,children:ot})})}function generateNavSections(tt,nt,et,rt){const ot=[],at=groupBy$1(nt,ut=>ut.sectionHeader||"");let st=0;return tt.forEach(ut=>{const ct=at[ut]??[];let pt=ct;if(et){if(st>=NUM_PAGES_TO_SHOW_WHEN_COLLAPSED)return;st+ct.length>NUM_PAGES_TO_SHOW_WHEN_COLLAPSED&&(pt=ct.slice(0,NUM_PAGES_TO_SHOW_WHEN_COLLAPSED-st))}st+=pt.length,ot.push(jsx$1(NavSection,{header:ut,children:pt.map(rt)},ut))}),ot}const SidebarNav=({endpoints:tt,appPages:nt,collapseSidebar:et,expandSidebarNav:rt,currentPageScriptHash:ot,hasSidebarElements:at,navSections:st,onPageChange:ut})=>{const[ct,pt]=reactExports.useState(!1),{pageLinkBaseUrl:dt}=reactExports.useContext(AppContext);reactExports.useEffect(()=>{const zt=localStorageAvailable()&&window.localStorage.getItem("sidebarNavState")==="expanded";!ct&&(rt||zt)&&pt(!0)},[ct,rt]);const ft=reactExports.useCallback(()=>{const zt=!ct;localStorageAvailable()&&(zt?window.localStorage.setItem("sidebarNavState","expanded"):window.localStorage.removeItem("sidebarNavState")),pt(zt)},[ct]),bt=reactExports.useCallback((zt,yt)=>{const vt=tt.buildAppPageURL(dt,zt),At=zt.pageScriptHash===ot;return jsx$1(NavLink,{pageUrl:vt,page:zt,isActive:At,onClick:St=>{St.preventDefault(),ut(zt.pageScriptHash),isMobile_1&&et()}},`${zt.pageName}-${yt}`)},[et,ot,tt,ut,dt]);let ht=[];const Mt=nt.length,mt=at&&Mt>COLLAPSE_THRESHOLD&&!rt,Ot=mt&&!ct;return st.length>0?ht=generateNavSections(st,nt,Ot,bt):ht=(Ot?nt.slice(0,NUM_PAGES_TO_SHOW_WHEN_COLLAPSED):nt).map(bt),jsxs(StyledSidebarNavContainer,{"data-testid":"stSidebarNav",children:[jsx$1(StyledSidebarNavItems,{"data-testid":"stSidebarNavItems",children:ht}),mt&&jsx$1(StyledViewButton,{onClick:ft,"data-testid":"stSidebarNavViewButton",children:ct?"View less":`View ${Mt-NUM_PAGES_TO_SHOW_WHEN_COLLAPSED} more`}),at&&jsx$1(StyledSidebarNavSeparator,{"data-testid":"stSidebarNavSeparator"})]})},Cn=class Cn extends reactExports.PureComponent{constructor(nt){super(nt),this.sidebarRef=React$1.createRef(),this.handleClickOutside=rt=>{if(this.sidebarRef&&window){const{current:ot}=this.sidebarRef,{innerWidth:at}=window;ot&&!ot.contains(rt.target)&&at<=this.mediumBreakpointPx&&this.setState({collapsedSidebar:!0})}},this.setSidebarWidth=rt=>{const ot=rt.toString();this.setState({sidebarWidth:ot}),localStorageAvailable()&&window.localStorage.setItem("sidebarWidth",ot)},this.resetSidebarWidth=rt=>{rt.detail===2&&(this.setState({sidebarWidth:Cn.minWidth}),localStorageAvailable()&&window.localStorage.setItem("sidebarWidth",Cn.minWidth))},this.checkMobileOnResize=()=>{if(!window)return!1;const{innerWidth:rt}=window;return rt<this.state.lastInnerWidth&&rt<=this.mediumBreakpointPx&&this.setState({collapsedSidebar:!0}),this.setState({lastInnerWidth:rt}),!0},this.toggleCollapse=()=>{const{collapsedSidebar:rt}=this.state;this.setState({collapsedSidebar:!rt})},this.onMouseOver=()=>{this.setState({showSidebarCollapse:!0})},this.onMouseOut=()=>{this.setState({showSidebarCollapse:!1})},this.mediumBreakpointPx=Cn.calculateMaxBreakpoint(nt.theme.breakpoints.md);const et=localStorageAvailable()?window.localStorage.getItem("sidebarWidth"):void 0;this.state={collapsedSidebar:Cn.shouldCollapse(nt,this.mediumBreakpointPx),sidebarWidth:et||Cn.minWidth,lastInnerWidth:window?window.innerWidth:1/0,showSidebarCollapse:!1}}static calculateMaxBreakpoint(nt){return parseInt(nt,10)-.02}componentDidUpdate(nt){this.mediumBreakpointPx=Cn.calculateMaxBreakpoint(this.props.theme.breakpoints.md),(this.props.initialSidebarState!==nt.initialSidebarState||this.props.hasElements!==nt.hasElements)&&this.setState({collapsedSidebar:Cn.shouldCollapse(this.props,this.mediumBreakpointPx)})}static shouldCollapse(nt,et){switch(nt.initialSidebarState){case PageConfig.SidebarState.EXPANDED:return!1;case PageConfig.SidebarState.COLLAPSED:return!0;case PageConfig.SidebarState.AUTO:default:{const{innerWidth:rt}=window||{};return rt?rt<=et:!1}}}componentDidMount(){window.addEventListener("resize",this.checkMobileOnResize),document.addEventListener("mousedown",this.handleClickOutside)}componentWillUnmount(){window.removeEventListener("resize",this.checkMobileOnResize),document.removeEventListener("mousedown",this.handleClickOutside)}headerDecorationVisible(){let nt=!1;const et=document.getElementById("stDecoration");if(et){const rt=window.getComputedStyle(et);nt=rt.visibility!=="hidden"&&rt.visibility!=="collapse"&&rt.display!=="none"}return nt}renderLogo(nt){const{appLogo:et,endpoints:rt}=this.props,{sidebarWidth:ot}=this.state;if(!et)return jsx$1(StyledNoLogoSpacer,{"data-testid":"stLogoSpacer"});const at=nt&&et.iconImage?et.iconImage:et.image,st=rt.buildMediaURL(at),ut=jsx$1(StyledLogo,{src:st,size:et.size,sidebarWidth:ot,alt:"Logo",className:"stLogo","data-testid":"stLogo"});return et.link?jsx$1(StyledLogoLink,{href:et.link,target:"_blank",rel:"noreferrer","data-testid":"stLogoLink",children:ut}):ut}render(){const{collapsedSidebar:nt,sidebarWidth:et,showSidebarCollapse:rt}=this.state,{appPages:ot,chevronDownshift:at,children:st,hasElements:ut,onPageChange:ct,currentPageScriptHash:pt,hideSidebarNav:dt,expandSidebarNav:ft,navSections:bt}=this.props,ht=ot.length>1&&!dt,mt=!(isEmbed()&&!isColoredLineDisplayed())&&this.headerDecorationVisible();return jsxs(Fragment,{children:[jsxs(StyledSidebarOpenContainer,{chevronDownshift:at,"data-testid":"stSidebarCollapsedControl",children:[this.renderLogo(!0),jsx$1(StyledOpenSidebarButton,{children:jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_NO_PADDING,onClick:this.toggleCollapse,children:jsx$1(Icon$2,{content:ChevronRight,size:"xl"})})})]}),jsx$1(Resizable,{className:"stSidebar","data-testid":"stSidebar","aria-expanded":!nt,enable:{top:!1,right:!0,bottom:!1,left:!1},handleStyles:{right:{width:RESIZE_HANDLE_WIDTH,right:"-6px"}},handleComponent:{right:jsx$1(StyledResizeHandle,{onClick:this.resetSidebarWidth})},size:{width:et,height:"auto"},as:StyledSidebar,onResizeStop:(Ot,zt,yt,vt)=>{const At=parseInt(et,10)+vt.width;this.setSidebarWidth(At)},isCollapsed:nt,adjustTop:mt,sidebarWidth:et,children:jsxs(StyledSidebarContent,{"data-testid":"stSidebarContent",ref:this.sidebarRef,onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,children:[jsxs(StyledSidebarHeaderContainer,{"data-testid":"stSidebarHeader",children:[this.renderLogo(!1),jsx$1(StyledCollapseSidebarButton,{showSidebarCollapse:rt,"data-testid":"stSidebarCollapseButton",children:jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_NO_PADDING,onClick:this.toggleCollapse,children:jsx$1(Icon$2,{content:ChevronLeft,size:"xl"})})})]}),ht&&jsx$1(SidebarNav,{endpoints:this.props.endpoints,appPages:ot,collapseSidebar:this.toggleCollapse,currentPageScriptHash:pt,navSections:bt,hasSidebarElements:ut,expandSidebarNav:ft,onPageChange:ct}),jsx$1(StyledSidebarUserContent,{hasPageNavAbove:ht,"data-testid":"stSidebarUserContent",children:st})]})})]})}};Cn.minWidth="336";let Sidebar=Cn;function SidebarWithProvider(tt){return jsx$1(IsSidebarContext.Provider,{value:!0,children:jsx$1(Sidebar,{...tt})})}const Sidebar$1=withTheme(SidebarWithProvider),createSidebarTheme=tt=>createTheme("Sidebar",{secondaryBackgroundColor:tt.emotion.colors.bgColor,backgroundColor:tt.emotion.colors.secondaryBg,bodyFont:tt.emotion.genericFonts.bodyFont,codeFont:tt.emotion.genericFonts.codeFont},tt,!0),ThemedSidebar=({children:tt,...nt})=>{const{sidebarChevronDownshift:et}=React$1.useContext(AppContext),{activeTheme:rt}=React$1.useContext(LibContext),ot=createSidebarTheme(rt);return jsx$1(ThemeProvider,{theme:ot.emotion,baseuiTheme:ot.basewebTheme,children:jsx$1(Sidebar$1,{...nt,chevronDownshift:et,children:tt})})};function EventContainer({scriptRunId:tt,children:nt}){const et=useTheme();return reactExports.useEffect(()=>{var rt;(rt=toaster.getRef())==null||rt.clearAll()},[tt]),jsxs(Fragment,{children:[jsx$1(ToasterContainer,{placement:PLACEMENT$1.topRight,autoHideDuration:4*1e3,overrides:{Root:{style:{top:et.sizes.headerHeight,zIndex:et.zIndices.toast},props:{"data-testid":"stToastContainer",className:"stToastContainer"}}}}),nt]})}const StyledAppViewContainer=newStyled("div",{target:"eht7o1d0"})({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",alignContent:"flex-start",position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden","@media print":{overflow:"visible"}}),StyledAppViewMain=newStyled("section",{target:"eht7o1d1"})(({disableScrolling:tt,theme:nt})=>({display:"flex",flexDirection:"column",width:nt.sizes.full,overflow:tt?"hidden":"auto",alignItems:"center","&:focus":{outline:"none"},"@media not print":{[`@media (max-width: ${nt.breakpoints.md})`]:{position:"absolute",top:0,left:0,right:0,bottom:0}},"@media print":{overflow:"visible"}})),StyledStickyBottomContainer=newStyled("div",{target:"eht7o1d2"})(({theme:tt})=>({position:"sticky",left:0,bottom:0,width:"100%",zIndex:tt.zIndices.bottom,"@media print":{position:"static"}})),StyledInnerBottomContainer=newStyled("div",{target:"eht7o1d3"})(({theme:tt})=>({position:"relative",bottom:0,width:"100%",minWidth:"100%",backgroundColor:tt.colors.bgColor,display:"flex",flexDirection:"column",alignItems:"center"})),applyWideModePadding=tt=>({[`@media (min-width: calc(${tt.sizes.contentMaxWidth} + 2 * (${tt.sizes.wideSidePadding} - ${tt.spacing.lg})))`]:{paddingLeft:tt.sizes.wideSidePadding,paddingRight:tt.sizes.wideSidePadding},minWidth:"auto",maxWidth:"initial"}),StyledAppViewBlockContainer=newStyled("div",{target:"eht7o1d4"})(({hasSidebar:tt,hasBottom:nt,isEmbedded:et,isWideMode:rt,showPadding:ot,addPaddingForHeader:at,theme:st})=>{const ut="2.1rem";let ct=ot?"6rem":ut;(at&&!ot||et&&tt)&&(ct=`${parseFloat(st.sizes.headerHeight)+parseFloat(st.spacing.md)}rem`);const pt=ot&&!nt?"10rem":st.spacing.lg;return{width:st.sizes.full,paddingLeft:st.spacing.lg,paddingRight:st.spacing.lg,paddingTop:ct,paddingBottom:pt,maxWidth:st.sizes.contentMaxWidth,...rt&&applyWideModePadding(st),"@media print":{paddingTop:ut}}}),StyledSidebarBlockContainer=newStyled("div",{target:"eht7o1d5"})(({theme:tt})=>({width:tt.sizes.full})),StyledEventBlockContainer=newStyled("div",{target:"eht7o1d6"})({display:"none"}),StyledBottomBlockContainer=newStyled("div",{target:"eht7o1d7"})(({isWideMode:tt,showPadding:nt,theme:et})=>({width:et.sizes.full,paddingLeft:et.spacing.lg,paddingRight:et.spacing.lg,paddingTop:et.spacing.lg,paddingBottom:nt?et.sizes.appDefaultBottomPadding:et.spacing.threeXL,maxWidth:et.sizes.contentMaxWidth,...tt&&applyWideModePadding(et),"@media print":{paddingTop:et.spacing.none}})),StyledAppViewBlockSpacer=newStyled("div",{target:"eht7o1d8"})(({theme:tt})=>({width:tt.sizes.full,flexGrow:1})),StyledIFrameResizerAnchor=newStyled("div",{target:"eht7o1d9"})(({theme:tt})=>({position:"relative",bottom:tt.spacing.none}));function ScrollToBottomContainer(tt){const{className:nt,tabIndex:et,children:rt,isEmbedded:ot,disableScrolling:at}=tt,st=useScrollToBottom();return jsx$1(StyledAppViewMain,{tabIndex:et,className:nt,isEmbedded:ot,disableScrolling:at,ref:st,"data-testid":"stAppScrollToBottomContainer",children:rt})}function AppView(tt){const{elements:nt,scriptRunId:et,scriptRunState:rt,widgetMgr:ot,widgetsDisabled:at,uploadClient:st,componentRegistry:ut,formsData:ct,appLogo:pt,appPages:dt,navSections:ft,onPageChange:bt,currentPageScriptHash:ht,expandSidebarNav:Mt,hideSidebarNav:mt,sendMessageToHost:Ot,endpoints:zt}=tt;React$1.useEffect(()=>{const Dt=()=>{Ot({type:"UPDATE_HASH",hash:window.location.hash})};return window.addEventListener("hashchange",Dt,!1),()=>window.removeEventListener("hashchange",Dt,!1)},[Ot]);const{wideMode:yt,initialSidebarState:vt,embedded:At,showPadding:St,disableScrolling:Et,showToolbar:Tt,showColoredLine:Rt,sidebarChevronDownshift:Ct}=React$1.useContext(AppContext),{addScriptFinishedHandler:wt,removeScriptFinishedHandler:Lt}=React$1.useContext(LibContext),Ht=yt?"wide":"narrow",jt=!nt.sidebar.isEmpty,s0=!nt.event.isEmpty,Ut=!nt.bottom.isEmpty,[Yt,O0]=React$1.useState(!1),a0=jt||!mt&&dt.length>1||Yt;React$1.useEffect(()=>{a0&&mt&&!Yt&&O0(!0)},[a0,mt,Yt]);const b0=React$1.useCallback(()=>{!jt&&Yt&&O0(!1)},[jt,Yt]);React$1.useEffect(()=>(wt(b0),()=>{Lt(b0)}),[b0,wt,Lt]);const kt=Dt=>{const Bt=Dt.iconImage?Dt.iconImage:Dt.image,p0=zt.buildMediaURL(Bt),r0=jsx$1(StyledLogo,{src:p0,size:Dt.size,alt:"Logo",className:"stLogo","data-testid":"stLogo"});return Dt.link?jsx$1(StyledLogoLink,{href:Dt.link,target:"_blank",rel:"noreferrer","data-testid":"stLogoLink",children:r0}):r0},o0=Ut?ScrollToBottomContainer:StyledAppViewMain,qt=Dt=>jsx$1(VerticalBlock,{node:Dt,endpoints:zt,scriptRunId:et,scriptRunState:rt,widgetMgr:ot,widgetsDisabled:at,uploadClient:st,componentRegistry:ut,formsData:ct});return jsxs(StyledAppViewContainer,{className:"stAppViewContainer appview-container","data-testid":"stAppViewContainer","data-layout":Ht,children:[a0&&jsx$1(Profiler,{id:"Sidebar",children:jsx$1(ThemedSidebar,{endpoints:zt,initialSidebarState:vt,appLogo:pt,appPages:dt,navSections:ft,hasElements:jt,onPageChange:bt,currentPageScriptHash:ht,hideSidebarNav:mt,expandSidebarNav:Mt,children:jsx$1(StyledSidebarBlockContainer,{children:qt(nt.sidebar)})})}),!a0&&pt&&jsx$1(StyledSidebarOpenContainer,{chevronDownshift:Ct,"data-testid":"stSidebarCollapsedControl",children:kt(pt)}),jsxs(o0,{tabIndex:0,isEmbedded:At,disableScrolling:Et,className:"stMain","data-testid":"stMain",children:[jsx$1(Profiler,{id:"Main",children:jsx$1(StyledAppViewBlockContainer,{className:"stMainBlockContainer block-container","data-testid":"stMainBlockContainer",isWideMode:yt,showPadding:St,addPaddingForHeader:Tt||Rt,hasBottom:Ut,isEmbedded:At,hasSidebar:a0,children:qt(nt.main)})}),!Ut&&jsx$1(StyledIFrameResizerAnchor,{"data-testid":"stAppIframeResizerAnchor","data-iframe-height":!0}),Ut&&jsxs(Profiler,{id:"Bottom",children:[jsx$1(StyledAppViewBlockSpacer,{}),jsx$1(StyledStickyBottomContainer,{className:"stBottom","data-testid":"stBottom",children:jsx$1(StyledInnerBottomContainer,{children:jsx$1(StyledBottomBlockContainer,{"data-testid":"stBottomBlockContainer",isWideMode:yt,showPadding:St,children:qt(nt.bottom)})})})]})]}),s0&&jsx$1(Profiler,{id:"Event",children:jsx$1(EventContainer,{scriptRunId:nt.event.scriptRunId,children:jsx$1(StyledEventBlockContainer,{className:"stEvent","data-testid":"stEvent",children:qt(nt.event)})})})]})}var Ellipses=reactExports.forwardRef(function(tt,nt){var et={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$Q({iconAttrs:et,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},tt,{ref:nt}),reactExports.createElement("path",{d:"M0 3v2h2V3H0zm3 0v2h2V3H3zm3 0v2h2V3H6z"}))});Ellipses.displayName="Ellipses";var Info=reactExports.forwardRef(function(tt,nt){var et={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$Q({iconAttrs:et,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},tt,{ref:nt}),reactExports.createElement("path",{d:"M5 0c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM3.5 2.5C2.67 2.5 2 3.17 2 4h1c0-.28.22-.5.5-.5s.5.22.5.5-1 1.64-1 2.5C3 7.36 3.67 8 4.5 8S6 7.33 6 6.5H5c0 .28-.22.5-.5.5S4 6.78 4 6.5C4 6.14 5 4.66 5 4c0-.81-.67-1.5-1.5-1.5z"}))});Info.displayName="Info";var Warning=reactExports.forwardRef(function(tt,nt){var et={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$Q({iconAttrs:et,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},tt,{ref:nt}),reactExports.createElement("path",{d:"M3.09 0c-.06 0-.1.04-.13.09L.02 6.9c-.02.05-.03.13-.03.19v.81c0 .05.04.09.09.09h6.81c.05 0 .09-.04.09-.09v-.81c0-.05-.01-.14-.03-.19L4.01.09A.142.142 0 003.88 0h-.81zM3 3h1v2H3V3zm0 3h1v1H3V6z"}))});Warning.displayName="Warning";function hasClass(tt,nt){return tt.classList?!!nt&&tt.classList.contains(nt):(" "+(tt.className.baseVal||tt.className)+" ").indexOf(" "+nt+" ")!==-1}function addClass(tt,nt){tt.classList?tt.classList.add(nt):hasClass(tt,nt)||(typeof tt.className=="string"?tt.className=tt.className+" "+nt:tt.setAttribute("class",(tt.className&&tt.className.baseVal||"")+" "+nt))}function replaceClassName(tt,nt){return tt.replace(new RegExp("(^|\\s)"+nt+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function removeClass$1(tt,nt){tt.classList?tt.classList.remove(nt):typeof tt.className=="string"?tt.className=replaceClassName(tt.className,nt):tt.setAttribute("class",replaceClassName(tt.className&&tt.className.baseVal||"",nt))}const config={disabled:!1},TransitionGroupContext=React$1.createContext(null);var forceReflow=function tt(nt){return nt.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(tt){_inheritsLoose(nt,tt);function nt(rt,ot){var at;at=tt.call(this,rt,ot)||this;var st=ot,ut=st&&!st.isMounting?rt.enter:rt.appear,ct;return at.appearStatus=null,rt.in?ut?(ct=EXITED,at.appearStatus=ENTERING):ct=ENTERED:rt.unmountOnExit||rt.mountOnEnter?ct=UNMOUNTED:ct=EXITED,at.state={status:ct},at.nextCallback=null,at}nt.getDerivedStateFromProps=function(ot,at){var st=ot.in;return st&&at.status===UNMOUNTED?{status:EXITED}:null};var et=nt.prototype;return et.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},et.componentDidUpdate=function(ot){var at=null;if(ot!==this.props){var st=this.state.status;this.props.in?st!==ENTERING&&st!==ENTERED&&(at=ENTERING):(st===ENTERING||st===ENTERED)&&(at=EXITING)}this.updateStatus(!1,at)},et.componentWillUnmount=function(){this.cancelNextCallback()},et.getTimeouts=function(){var ot=this.props.timeout,at,st,ut;return at=st=ut=ot,ot!=null&&typeof ot!="number"&&(at=ot.exit,st=ot.enter,ut=ot.appear!==void 0?ot.appear:st),{exit:at,enter:st,appear:ut}},et.updateStatus=function(ot,at){if(ot===void 0&&(ot=!1),at!==null)if(this.cancelNextCallback(),at===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var st=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);st&&forceReflow(st)}this.performEnter(ot)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},et.performEnter=function(ot){var at=this,st=this.props.enter,ut=this.context?this.context.isMounting:ot,ct=this.props.nodeRef?[ut]:[ReactDOM.findDOMNode(this),ut],pt=ct[0],dt=ct[1],ft=this.getTimeouts(),bt=ut?ft.appear:ft.enter;if(!ot&&!st||config.disabled){this.safeSetState({status:ENTERED},function(){at.props.onEntered(pt)});return}this.props.onEnter(pt,dt),this.safeSetState({status:ENTERING},function(){at.props.onEntering(pt,dt),at.onTransitionEnd(bt,function(){at.safeSetState({status:ENTERED},function(){at.props.onEntered(pt,dt)})})})},et.performExit=function(){var ot=this,at=this.props.exit,st=this.getTimeouts(),ut=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!at||config.disabled){this.safeSetState({status:EXITED},function(){ot.props.onExited(ut)});return}this.props.onExit(ut),this.safeSetState({status:EXITING},function(){ot.props.onExiting(ut),ot.onTransitionEnd(st.exit,function(){ot.safeSetState({status:EXITED},function(){ot.props.onExited(ut)})})})},et.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},et.safeSetState=function(ot,at){at=this.setNextCallback(at),this.setState(ot,at)},et.setNextCallback=function(ot){var at=this,st=!0;return this.nextCallback=function(ut){st&&(st=!1,at.nextCallback=null,ot(ut))},this.nextCallback.cancel=function(){st=!1},this.nextCallback},et.onTransitionEnd=function(ot,at){this.setNextCallback(at);var st=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),ut=ot==null&&!this.props.addEndListener;if(!st||ut){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var ct=this.props.nodeRef?[this.nextCallback]:[st,this.nextCallback],pt=ct[0],dt=ct[1];this.props.addEndListener(pt,dt)}ot!=null&&setTimeout(this.nextCallback,ot)},et.render=function(){var ot=this.state.status;if(ot===UNMOUNTED)return null;var at=this.props,st=at.children;at.in,at.mountOnEnter,at.unmountOnExit,at.appear,at.enter,at.exit,at.timeout,at.addEndListener,at.onEnter,at.onEntering,at.onEntered,at.onExit,at.onExiting,at.onExited,at.nodeRef;var ut=_objectWithoutPropertiesLoose$m(at,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React$1.createElement(TransitionGroupContext.Provider,{value:null},typeof st=="function"?st(ot,ut):React$1.cloneElement(React$1.Children.only(st),ut))},nt}(React$1.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$1(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$1,onEntering:noop$1,onEntered:noop$1,onExit:noop$1,onExiting:noop$1,onExited:noop$1};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;var _addClass=function tt(nt,et){return nt&&et&&et.split(" ").forEach(function(rt){return addClass(nt,rt)})},removeClass=function tt(nt,et){return nt&&et&&et.split(" ").forEach(function(rt){return removeClass$1(nt,rt)})},CSSTransition=function(tt){_inheritsLoose(nt,tt);function nt(){for(var rt,ot=arguments.length,at=new Array(ot),st=0;st<ot;st++)at[st]=arguments[st];return rt=tt.call.apply(tt,[this].concat(at))||this,rt.appliedClasses={appear:{},enter:{},exit:{}},rt.onEnter=function(ut,ct){var pt=rt.resolveArguments(ut,ct),dt=pt[0],ft=pt[1];rt.removeClasses(dt,"exit"),rt.addClass(dt,ft?"appear":"enter","base"),rt.props.onEnter&&rt.props.onEnter(ut,ct)},rt.onEntering=function(ut,ct){var pt=rt.resolveArguments(ut,ct),dt=pt[0],ft=pt[1],bt=ft?"appear":"enter";rt.addClass(dt,bt,"active"),rt.props.onEntering&&rt.props.onEntering(ut,ct)},rt.onEntered=function(ut,ct){var pt=rt.resolveArguments(ut,ct),dt=pt[0],ft=pt[1],bt=ft?"appear":"enter";rt.removeClasses(dt,bt),rt.addClass(dt,bt,"done"),rt.props.onEntered&&rt.props.onEntered(ut,ct)},rt.onExit=function(ut){var ct=rt.resolveArguments(ut),pt=ct[0];rt.removeClasses(pt,"appear"),rt.removeClasses(pt,"enter"),rt.addClass(pt,"exit","base"),rt.props.onExit&&rt.props.onExit(ut)},rt.onExiting=function(ut){var ct=rt.resolveArguments(ut),pt=ct[0];rt.addClass(pt,"exit","active"),rt.props.onExiting&&rt.props.onExiting(ut)},rt.onExited=function(ut){var ct=rt.resolveArguments(ut),pt=ct[0];rt.removeClasses(pt,"exit"),rt.addClass(pt,"exit","done"),rt.props.onExited&&rt.props.onExited(ut)},rt.resolveArguments=function(ut,ct){return rt.props.nodeRef?[rt.props.nodeRef.current,ut]:[ut,ct]},rt.getClassNames=function(ut){var ct=rt.props.classNames,pt=typeof ct=="string",dt=pt&&ct?ct+"-":"",ft=pt?""+dt+ut:ct[ut],bt=pt?ft+"-active":ct[ut+"Active"],ht=pt?ft+"-done":ct[ut+"Done"];return{baseClassName:ft,activeClassName:bt,doneClassName:ht}},rt}var et=nt.prototype;return et.addClass=function(ot,at,st){var ut=this.getClassNames(at)[st+"ClassName"],ct=this.getClassNames("enter"),pt=ct.doneClassName;at==="appear"&&st==="done"&&pt&&(ut+=" "+pt),st==="active"&&ot&&forceReflow(ot),ut&&(this.appliedClasses[at][st]=ut,_addClass(ot,ut))},et.removeClasses=function(ot,at){var st=this.appliedClasses[at],ut=st.base,ct=st.active,pt=st.done;this.appliedClasses[at]={},ut&&removeClass(ot,ut),ct&&removeClass(ot,ct),pt&&removeClass(ot,pt)},et.render=function(){var ot=this.props;ot.classNames;var at=_objectWithoutPropertiesLoose$m(ot,["classNames"]);return React$1.createElement(Transition,_extends$Q({},at,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},nt}(React$1.Component);CSSTransition.defaultProps={classNames:""};CSSTransition.propTypes={};const iconRunning="data:image/gif;base64,R0lGODlhgACAAPAAAAAAAAAAACH5BAkUAAEAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAgACAAAAC/oyPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3nKcD3vA5s+Ia9oNFATAKOQKWSiXM6oTbpkzqzTrEx7ZX78ibBYfGYzDKf0So1kZ12/+Ar+Zy+s+Pr7j1f7ffnFRinRegiddg1pNho5OMIKbhGZpXXl6N3YrdlwvlF8ik6SioZWoqaauap2ur6xvoqm4oya1t6easL2Lbra1j2+5sp3ApWjKmI7Bghy1zh/DwRLd38Wi1Bje2gvc3Q7a0AHo4wTo50fb5gfs5O7h4O7y2/TY9tX40vrf/Mz+wfKZ26BAAbFVQmcOCBg4cYEnIYCKIfiXso4rFIByMcnY1sOKLxWCmhwgCWhCQaufDkN5UoS67s1JKlOJkKXa6jOdDmTJgjdRLEqc5nOaDtiJI0Gs+o0KBKkc5ryrMmVFA9p1KqGnVoVqZb0XV9ZxUWyqNflxYt67ReWEZjyVL9+TUp2rhP577NudZUTLtXpfIVu/duSrpq/7Id6zRtYcAvGQfWy60vYsgPDre9jDmz5s2cO3v+DDq06NEnCgAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aN5/rO9/4P1AGGxGGwV0wSjzmlE8C0PZ/R2XRahV2vWdcW22V9qeHV2FlWnclp0xrddr+T8dN8WZff8/o5v3/2BzgmOMhVaAiHaAe2qEbnGCk56XBHSLlgaYl5oOmJ6Rk6GUoaSVrqeIpaqLoq2OqaBxtbNyv6eljZyprbAMvL5vuLG8wwTKxofIxcBLGM2Oz8zKm8S/0wfZ0wq62r2i1sDa6QPc49Ti6O3lkObFR9Opq8rc6sBB/v3kj/rb/PXi/Om0wB2/jh10/WQQTtumxCaGsekocMI2758QmixfZiNxbi28ixxpoIIC91NCmtZC+RXyiobCkFpsuX/2TIrEAz5IubOHNK3Hkxg897NIJuGIrHptGjSIuubPLUS9STNaVWpapTzFWsP1tM5UpUadaYW82U1bA05dhHa4V+JXg2RVoPc721RVGXQ96PkMTetbAX7t9EST8EFtzV69sLh9PFlbu4Z2SNff0OVps43GXChd1OphzNaWNsPEl+xotS8umKj9mOdvwadGcrqUnXlhAbciDbt3Gv1j0QoEfVmbUMRfvbtUqmm82+7NDaOEjDYSdaDBEayPV1wmlxz8dd88jwvnOTP48+vfr17Nu7fw8/vnz4BQAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/IG1PaMc/a+537FC9Z+xIfwWEwmjkylkgl1FqFN6Y9atc6wWW2Mi/TKwELxmMwzf9E99YvddrvgQ/kcbofh828yf431FxK2ECjowcVAeKgDxsjC9phCJ2lCV1c5eImZ2bEZ16nxmRaaMRpUenFaljqxutja8NoVqzAbVWt7i5trsJuYOxuAVivsS1xqfBDZqYxAKfkquyko7TDKtxpxasctge3m7foZTq56KUdtCq2G3ojcvofomC4PQpVtr0ma594ryu4fBn8CB+orCOQgwnHMYuH7ppAGLxQRn1WkcFGiuv5p8Axu9GRNUcOE2t450+UH4y6AvwBcSwmx5bmWnFAa2kazJoScoGxOfMnTZUxgPn8uuQkUqUV6RpQmpXXUaFFWOB9yhFoV6zKpS7U+hRUVLEOvw8g6HUt1as+ZadXq7IpKo1ircuMW8srVAt1jYte1hcvP7T1aeT3+5Xu4bGKWacn6tRsWMuAbIrr0BXlYquPH/DZzXqs482WTpEZjDrx17uJ5cU2TXmvUM+MesmdTnnw7NeoRGU/Dhur69V4SYGOv/tCxRHHgx1kTtfTXuGTiMKFPl76bd3Xl0ZlP187U+m7soCtvp37de3bz4bmnX/6dfXvw49WXH1wmuO3ciK/fx0fOin6fvaVZc3VRVhtboBX4n29tJEhSfH1BqBJVFGa1Xn9CiWSgXosUZliGEYoYImoXfnXfiCR62J2AO53IYYcYZgfiUDLOuCKO/OnmoltvHZjjVZed9WKNJTYo5HHPFQmjjin6uONdRPJo5ICmzZckTRQF9WOWK00SlIK33CHTkeK0UOZ+H5FZknMEnWGOfOf5EJB7VeKw5EJ67slnn37+CWiggg5KaKGGMlIAACH5BAkUAAEALAAAAACAAIAAAAL+jI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8cyBNT2jHP2vud+xQvefsSG8AgoKhFI5HLZPD6LUefUV5Vec1nhFtfVfmFh75hc5p3R6do61na/X/HknJ6+s8P6fbUPlwUo8zc4I2aYqLjI2Ehk5rhSGGlSRilSd+lRJ6eZwdnjCQQaJCpBimi6gNqkqsAq6GoAG6tKy2d6aymqi6vZu3sJ7BuZN0sr3JWgSzm5zOwYxTAc3bpKzSh9ja2o/To8ZOj9DB7eN34AGtAGiH6cyXnnvp75Hj82f5+u/pVfz8TviruAAPU9GWiwYJwtCBc6+HfQmkJjD9gJtELOYoTpYFMw7oO40VlHSBMpjiLZL9Q3hxtUZgMpa0LCmCFh0qw48+ZDgjp3kuqJExXQaciGZmRltKTQpPSgGf3DsmcsjVLHUb0p0iTWhsqqSlTq8Y1LCrWOfj0zj+hZs6lSElsZFm5chjBFbpt7sZw5I2vz6rVDo+/Iv4CDtqX795TgwXoV4/XLLfBjyL1kLkbrtObhdj/JXhanVTPKX5/5TvZUGENappI3szY8+nXr2LJ9uq59lzbu3KV2i+7tGzbw4KZvE29qnPjq48h1M19+HLry0sGlV6d+3Tnz5mO3y+3kvWL48eTLmz8PoQAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aN5/rO9/4PDAqHQ4DRWDseiQalc8l6PoXSKgBllQKz1RJX2/taRWLwrjz2oM25dbfjdvLibAxdrrvXK3pou49nAeiHM6h0YXiVl4jEZxjG6Dj4EzmRSARo+cgUoCdxydlEFwEa2jn6UGp66gYxuYqA2vAKeyDL0FercLtwp9sb5+D7uxs820oMjHz8lSxs/PzmHL32STjNDI0Nl7vNseltpxquWUluzdh4npp+uJ7drv4eGz81b1u/R56fts6f5e8fwHACm20rKAYbwjLOulFD03BZOYYRDYqzOI3Lt/aB++x98HgvpMiRJEuaPIkypcqKIDVw3NDPBUREMwVRTDEMnUR22khk4ukJKK+P4/AVFQWO28KlP2EyferwItSpPSVRvXqTJtatGjNw/RrTZldltBKYKzZWa1iyQ9EGfdhSbFx4NUm1xSXNZSAK1dRinCjvxlqpc1caPow4seLFjBs7hqTP7169kXFm5VsXc0IVb13dxVs1RFO6oc1GBXGW3lFWZTeCBav0NWzKsl/Trv31Nu6tundf7V2Y9WjVrYkPBhzcaGfQy9kmt1vZbV+d0z1HB0w4rebNVgPbOC73+ePx5MubP48+vfr17Nu7fw8/vvzGBQAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJphPAAuoLI+3cxrZJ5+7Ne/q/6wkvQN3wSCn+kEyHEtiMJp5LqZVqtEaxVS2Sm/UewTnxlzwzn9HqNbk9RgfhPTY9jr27n3omv99UBKiVNmh4iJiouMjY6FhX9hijJJnCVVnyhhkit/khx+LJARoqmkFaY0qEOqcqwVrq+gobK+tEW2u7gJuqu8ub62sA3Cs8TBxsi1wovMys7PysGh05TV29eQ1Vqf2H2N35jXyMKg4sw3o4jl5ueK4Aq07bEO+efts+eI9PKp/PUM/eP3j7BPYDWFDcAU0EBzZiyO4gNzC/JE681DBcNvCKGSFi8kgO5MU8HUmaEmnHGsYpHF2hXOmyZURKul7S/JjM5raRrUJSqdjlUZiZ3ohKY7TTqKCSyRTdVJp0ITakRaXCtNrUXFWsWwMUo3qV69OFkjSyNLnRLNShZR36HPsw4NmfQuchROs07Aq9+vjuxdsX8CrBd2RuMFzYLwbEbRiPcutH8WHIQxx/ogyJ7omEeOBmwmxDswrOmaOOBv3C82mLQkzDkNt6amjYpXvOpm1srcjcXnnxZopa1rrfvd8RL47ruNjg0HATd36ceW5Qyh+krE5PMva3Qbfz6+79O43wSdiShyD7PPqv6tsbKgAAOw==",newYearsRunning=""+new URL("../media/fireworks.B4d-_KUe.gif",import.meta.url).href;var ConnectionState;(function(tt){tt.CONNECTED="CONNECTED",tt.DISCONNECTED_FOREVER="DISCONNECTED_FOREVER",tt.INITIAL="INITIAL",tt.PINGING_SERVER="PINGING_SERVER",tt.CONNECTING="CONNECTING"})(ConnectionState||(ConnectionState={}));const StyledConnectionStatus=newStyled("div",{target:"emoooxk0"})(({theme:tt})=>({display:"flex",alignItems:"center",justifyContent:"center",color:tt.colors.gray})),StyledConnectionStatusLabel=newStyled("label",{target:"emoooxk1"})(({isMinimized:tt,theme:nt})=>({fontSize:nt.fontSizes.sm,color:nt.colors.gray,textTransform:"uppercase",marginTop:nt.spacing.none,marginRight:tt?nt.spacing.none:nt.spacing.lg,marginBottom:nt.spacing.none,marginLeft:nt.spacing.sm,whiteSpace:"nowrap",maxWidth:tt?"0":nt.sizes.appStatusMaxWidth,transition:"opacity 500ms 0ms, clip 500ms 0ms, max-width 500ms 0ms, margin 500ms 0ms, visibility 0ms 500ms",opacity:tt?0:1,visibility:tt?"hidden":"visible",lineHeight:nt.lineHeights.none})),StyledAppStatus=newStyled("div",{target:"emoooxk2"})(({theme:tt})=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:tt.radii.md,margin:`0 ${tt.spacing.sm} 0 0`,paddingLeft:tt.spacing.sm,height:tt.sizes.appRunningMen})),minimizedStyles=tt=>({opacity:0,padding:tt.spacing.none,margin:tt.spacing.none,maxWidth:0,minWidth:0,border:0}),StyledAppStatusLabel=newStyled("label",{target:"emoooxk3"})(({isPrompt:tt,isMinimized:nt,theme:et})=>({fontSize:et.fontSizes.sm,color:tt?et.colors.bodyText:et.colors.gray,textTransform:tt?"none":"uppercase",margin:`0 0 0 ${et.spacing.lg}`,whiteSpace:"nowrap",maxWidth:et.sizes.appStatusMaxWidth,borderRadius:tt?et.radii.md:void 0,transition:`opacity 200ms ease-out 0s,
743
743
  clip 200ms ease-out 0s, min-width 200ms ease-out 0s,
744
744
  max-width 200ms ease-out 0s, padding 200ms ease-out 0s`,...nt?minimizedStyles(et):{}})),StyledAppButtonContainer=newStyled("span",{target:"emoooxk4"})(({isMinimized:tt,theme:nt})=>({marginLeft:nt.spacing.sm,whiteSpace:"nowrap",transition:`opacity 200ms ease-out 0s,
745
745
  clip 200ms ease-out 0s, min-width 200ms ease-out 0s,
@@ -779,8 +779,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
779
779
  * <xregexp.com>
780
780
  * Steven Levithan (c) 2010-2017 MIT License
781
781
  * Unicode data by Mathias Bynens <mathiasbynens.be>
782
- */nt.default=function(et){if(!et.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");et.addUnicodeData([{name:"Adlam",astral:"\uD83A[\uDD00-\uDD4A\uDD50-\uDD59\uDD5E\uDD5F]"},{name:"Ahom",astral:"\uD805[\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF3F]"},{name:"Anatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE46]"},{name:"Arabic",bmp:"؀-؄؆-؋؍-ؚ؞ؠ-ؿف-يٖ-ٯٱ-ۜ۞-ۿݐ-ݿࢠ-ࢴࢶ-ࢽࣔ-ࣣ࣡-ࣿﭐ-﯁ﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-﷽ﹰ-ﹴﹶ-ﻼ",astral:"\uD803[\uDE60-\uDE7E]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB\uDEF0\uDEF1]"},{name:"Armenian",bmp:"Ա-Ֆՙ-՟ա-և֊֍-֏ﬓ-ﬗ"},{name:"Avestan",astral:"\uD802[\uDF00-\uDF35\uDF39-\uDF3F]"},{name:"Balinese",bmp:"ᬀ-ᭋ᭐-᭼"},{name:"Bamum",bmp:"ꚠ-꛷",astral:"\uD81A[\uDC00-\uDE38]"},{name:"Bassa_Vah",astral:"\uD81A[\uDED0-\uDEED\uDEF0-\uDEF5]"},{name:"Batak",bmp:"ᯀ-᯳᯼-᯿"},{name:"Bengali",bmp:"ঀ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-৻"},{name:"Bhaiksuki",astral:"\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC45\uDC50-\uDC6C]"},{name:"Bopomofo",bmp:"˪˫ㄅ-ㄭㆠ-ㆺ"},{name:"Brahmi",astral:"\uD804[\uDC00-\uDC4D\uDC52-\uDC6F\uDC7F]"},{name:"Braille",bmp:"⠀-⣿"},{name:"Buginese",bmp:"ᨀ-ᨛ᨞᨟"},{name:"Buhid",bmp:"ᝀ-ᝓ"},{name:"Canadian_Aboriginal",bmp:"᐀-ᙿᢰ-ᣵ"},{name:"Carian",astral:"\uD800[\uDEA0-\uDED0]"},{name:"Caucasian_Albanian",astral:"\uD801[\uDD30-\uDD63\uDD6F]"},{name:"Chakma",astral:"\uD804[\uDD00-\uDD34\uDD36-\uDD43]"},{name:"Cham",bmp:"ꨀ-ꨶꩀ-ꩍ꩐-꩙꩜-꩟"},{name:"Cherokee",bmp:"Ꭰ-Ᏽᏸ-ᏽꭰ-ꮿ"},{name:"Common",bmp:"\0-@\\x5B-`\\x7B-©«-¹»-¿×÷ʹ-˟˥-˩ˬ-˿ʹ;΅·։؅،؛؜؟ـ۝࣢।॥฿࿕-࿘჻᛫-᛭᜵᜶᠂᠃᠅᳓᳡ᳩ-ᳬᳮ-ᳳᳵᳶ -​‎-⁤⁦-⁰⁴-⁾₀-₎₠-₾℀-℥℧-℩ℬ-ℱℳ-⅍⅏-⅟↉-↋←-⏾␀-␦⑀-⑊①-⟿⤀-⭳⭶-⮕⮘-⮹⮽-⯈⯊-⯑⯬-⯯⸀-⹄⿰-⿻ -〄〆〈-〠〰-〷〼-〿゛゜゠・ー㆐-㆟㇀-㇣㈠-㉟㉿-㋏㍘-㏿䷀-䷿꜀-꜡ꞈ-꞊꠰-꠹꤮ꧏ꭛﴾﴿︐-︙︰-﹒﹔-﹦﹨-﹫\uFEFF!-@[-`{-・ー゙゚¢-₩│-○-�",astral:"\uD800[\uDD00-\uDD02\uDD07-\uDD33\uDD37-\uDD3F\uDD90-\uDD9B\uDDD0-\uDDFC\uDEE1-\uDEFB]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD66\uDD6A-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDF00-\uDF56\uDF60-\uDF71]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDFCB\uDFCE-\uDFFF]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD00-\uDD0C\uDD10-\uDD2E\uDD30-\uDD6B\uDD70-\uDDAC\uDDE6-\uDDFF\uDE01\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED2\uDEE0-\uDEEC\uDEF0-\uDEF6\uDF00-\uDF73\uDF80-\uDFD4]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDD10-\uDD1E\uDD20-\uDD27\uDD30\uDD33-\uDD3E\uDD40-\uDD4B\uDD50-\uDD5E\uDD80-\uDD91\uDDC0]|\uDB40[\uDC01\uDC20-\uDC7F]"},{name:"Coptic",bmp:"Ϣ-ϯⲀ-ⳳ⳹-⳿"},{name:"Cuneiform",astral:"\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC70-\uDC74\uDC80-\uDD43]"},{name:"Cypriot",astral:"\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F]"},{name:"Cyrillic",bmp:"Ѐ-҄҇-ԯᲀ-ᲈᴫᵸⷠ-ⷿꙀ-ꚟ︮︯"},{name:"Deseret",astral:"\uD801[\uDC00-\uDC4F]"},{name:"Devanagari",bmp:"ऀ-ॐ॓-ॣ०-ॿ꣠-ꣽ"},{name:"Duployan",astral:"\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9C-\uDC9F]"},{name:"Egyptian_Hieroglyphs",astral:"\uD80C[\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]"},{name:"Elbasan",astral:"\uD801[\uDD00-\uDD27]"},{name:"Ethiopic",bmp:"ሀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፼ᎀ-᎙ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮ"},{name:"Georgian",bmp:"Ⴀ-ჅჇჍა-ჺჼ-ჿⴀ-ⴥⴧⴭ"},{name:"Glagolitic",bmp:"Ⰰ-Ⱞⰰ-ⱞ",astral:"\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]"},{name:"Gothic",astral:"\uD800[\uDF30-\uDF4A]"},{name:"Grantha",astral:"\uD804[\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]"},{name:"Greek",bmp:"Ͱ-ͳ͵-ͷͺ-ͽͿ΄ΆΈ-ΊΌΎ-ΡΣ-ϡϰ-Ͽᴦ-ᴪᵝ-ᵡᵦ-ᵪᶿἀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ῄῆ-ΐῖ-Ί῝-`ῲ-ῴῶ-῾Ωꭥ",astral:"\uD800[\uDD40-\uDD8E\uDDA0]|\uD834[\uDE00-\uDE45]"},{name:"Gujarati",bmp:"ઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૱ૹ"},{name:"Gurmukhi",bmp:"ਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵ"},{name:"Han",bmp:"⺀-⺙⺛-⻳⼀-⿕々〇〡-〩〸-〻㐀-䶵一-鿕豈-舘並-龎",astral:"[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]"},{name:"Hangul",bmp:"ᄀ-ᇿ〮〯ㄱ-ㆎ㈀-㈞㉠-㉾ꥠ-ꥼ가-힣ힰ-ퟆퟋ-ퟻᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"},{name:"Hanunoo",bmp:"ᜠ-᜴"},{name:"Hatran",astral:"\uD802[\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDCFF]"},{name:"Hebrew",bmp:"֑-ׇא-תװ-״יִ-זּטּ-לּמּנּסּףּפּצּ-ﭏ"},{name:"Hiragana",bmp:"ぁ-ゖゝ-ゟ",astral:"𛀁|🈀"},{name:"Imperial_Aramaic",astral:"\uD802[\uDC40-\uDC55\uDC57-\uDC5F]"},{name:"Inherited",bmp:"̀-ًͯ҅҆-ٰٕ॒॑᪰-᪾᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸᳹᷀-᷵᷻-᷿‌‍⃐-〪⃰-゙゚〭︀-️︠-︭",astral:"\uD800[\uDDFD\uDEE0]|\uD834[\uDD67-\uDD69\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD]|\uDB40[\uDD00-\uDDEF]"},{name:"Inscriptional_Pahlavi",astral:"\uD802[\uDF60-\uDF72\uDF78-\uDF7F]"},{name:"Inscriptional_Parthian",astral:"\uD802[\uDF40-\uDF55\uDF58-\uDF5F]"},{name:"Javanese",bmp:"ꦀ-꧍꧐-꧙꧞꧟"},{name:"Kaithi",astral:"\uD804[\uDC80-\uDCC1]"},{name:"Kannada",bmp:"ಀ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲ"},{name:"Katakana",bmp:"ァ-ヺヽ-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ッア-ン",astral:"𛀀"},{name:"Kayah_Li",bmp:"꤀-꤭꤯"},{name:"Kharoshthi",astral:"\uD802[\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F-\uDE47\uDE50-\uDE58]"},{name:"Khmer",bmp:"ក-៝០-៩៰-៹᧠-᧿"},{name:"Khojki",astral:"\uD804[\uDE00-\uDE11\uDE13-\uDE3E]"},{name:"Khudawadi",astral:"\uD804[\uDEB0-\uDEEA\uDEF0-\uDEF9]"},{name:"Lao",bmp:"ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟ"},{name:"Latin",bmp:"A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞮꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z"},{name:"Lepcha",bmp:"ᰀ-᰷᰻-᱉ᱍ-ᱏ"},{name:"Limbu",bmp:"ᤀ-ᤞᤠ-ᤫᤰ-᤻᥀᥄-᥏"},{name:"Linear_A",astral:"\uD801[\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]"},{name:"Linear_B",astral:"\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA]"},{name:"Lisu",bmp:"ꓐ-꓿"},{name:"Lycian",astral:"\uD800[\uDE80-\uDE9C]"},{name:"Lydian",astral:"\uD802[\uDD20-\uDD39\uDD3F]"},{name:"Mahajani",astral:"\uD804[\uDD50-\uDD76]"},{name:"Malayalam",bmp:"ഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-൏ൔ-ൣ൦-ൿ"},{name:"Mandaic",bmp:"ࡀ-࡛࡞"},{name:"Manichaean",astral:"\uD802[\uDEC0-\uDEE6\uDEEB-\uDEF6]"},{name:"Marchen",astral:"\uD807[\uDC70-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]"},{name:"Meetei_Mayek",bmp:"ꫠ-꫶ꯀ-꯭꯰-꯹"},{name:"Mende_Kikakui",astral:"\uD83A[\uDC00-\uDCC4\uDCC7-\uDCD6]"},{name:"Meroitic_Cursive",astral:"\uD802[\uDDA0-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDDFF]"},{name:"Meroitic_Hieroglyphs",astral:"\uD802[\uDD80-\uDD9F]"},{name:"Miao",astral:"\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]"},{name:"Modi",astral:"\uD805[\uDE00-\uDE44\uDE50-\uDE59]"},{name:"Mongolian",bmp:"᠀᠁᠄᠆-᠎᠐-᠙ᠠ-ᡷᢀ-ᢪ",astral:"\uD805[\uDE60-\uDE6C]"},{name:"Mro",astral:"\uD81A[\uDE40-\uDE5E\uDE60-\uDE69\uDE6E\uDE6F]"},{name:"Multani",astral:"\uD804[\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA9]"},{name:"Myanmar",bmp:"က-႟ꧠ-ꧾꩠ-ꩿ"},{name:"Nabataean",astral:"\uD802[\uDC80-\uDC9E\uDCA7-\uDCAF]"},{name:"New_Tai_Lue",bmp:"ᦀ-ᦫᦰ-ᧉ᧐-᧚᧞᧟"},{name:"Newa",astral:"\uD805[\uDC00-\uDC59\uDC5B\uDC5D]"},{name:"Nko",bmp:"߀-ߺ"},{name:"Ogham",bmp:" -᚜"},{name:"Ol_Chiki",bmp:"᱐-᱿"},{name:"Old_Hungarian",astral:"\uD803[\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDCFF]"},{name:"Old_Italic",astral:"\uD800[\uDF00-\uDF23]"},{name:"Old_North_Arabian",astral:"\uD802[\uDE80-\uDE9F]"},{name:"Old_Permic",astral:"\uD800[\uDF50-\uDF7A]"},{name:"Old_Persian",astral:"\uD800[\uDFA0-\uDFC3\uDFC8-\uDFD5]"},{name:"Old_South_Arabian",astral:"\uD802[\uDE60-\uDE7F]"},{name:"Old_Turkic",astral:"\uD803[\uDC00-\uDC48]"},{name:"Oriya",bmp:"ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୷"},{name:"Osage",astral:"\uD801[\uDCB0-\uDCD3\uDCD8-\uDCFB]"},{name:"Osmanya",astral:"\uD801[\uDC80-\uDC9D\uDCA0-\uDCA9]"},{name:"Pahawh_Hmong",astral:"\uD81A[\uDF00-\uDF45\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]"},{name:"Palmyrene",astral:"\uD802[\uDC60-\uDC7F]"},{name:"Pau_Cin_Hau",astral:"\uD806[\uDEC0-\uDEF8]"},{name:"Phags_Pa",bmp:"ꡀ-꡷"},{name:"Phoenician",astral:"\uD802[\uDD00-\uDD1B\uDD1F]"},{name:"Psalter_Pahlavi",astral:"\uD802[\uDF80-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]"},{name:"Rejang",bmp:"ꤰ-꥓꥟"},{name:"Runic",bmp:"ᚠ-ᛪᛮ-ᛸ"},{name:"Samaritan",bmp:"ࠀ-࠭࠰-࠾"},{name:"Saurashtra",bmp:"ꢀ-ꣅ꣎-꣙"},{name:"Sharada",astral:"\uD804[\uDD80-\uDDCD\uDDD0-\uDDDF]"},{name:"Shavian",astral:"\uD801[\uDC50-\uDC7F]"},{name:"Siddham",astral:"\uD805[\uDD80-\uDDB5\uDDB8-\uDDDD]"},{name:"SignWriting",astral:"\uD836[\uDC00-\uDE8B\uDE9B-\uDE9F\uDEA1-\uDEAF]"},{name:"Sinhala",bmp:"ංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟ෦-෯ෲ-෴",astral:"\uD804[\uDDE1-\uDDF4]"},{name:"Sora_Sompeng",astral:"\uD804[\uDCD0-\uDCE8\uDCF0-\uDCF9]"},{name:"Sundanese",bmp:"ᮀ-ᮿ᳀-᳇"},{name:"Syloti_Nagri",bmp:"ꠀ-꠫"},{name:"Syriac",bmp:"܀-܍܏-݊ݍ-ݏ"},{name:"Tagalog",bmp:"ᜀ-ᜌᜎ-᜔"},{name:"Tagbanwa",bmp:"ᝠ-ᝬᝮ-ᝰᝲᝳ"},{name:"Tai_Le",bmp:"ᥐ-ᥭᥰ-ᥴ"},{name:"Tai_Tham",bmp:"ᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪠-᪭"},{name:"Tai_Viet",bmp:"ꪀ-ꫂꫛ-꫟"},{name:"Takri",astral:"\uD805[\uDE80-\uDEB7\uDEC0-\uDEC9]"},{name:"Tamil",bmp:"ஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௺"},{name:"Tangut",astral:"𖿠|[\uD81C-\uD820][\uDC00-\uDFFF]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]"},{name:"Telugu",bmp:"ఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-్ౕౖౘ-ౚౠ-ౣ౦-౯౸-౿"},{name:"Thaana",bmp:"ހ-ޱ"},{name:"Thai",bmp:"ก-ฺเ-๛"},{name:"Tibetan",bmp:"ༀ-ཇཉ-ཬཱ-ྗྙ-ྼ྾-࿌࿎-࿔࿙࿚"},{name:"Tifinagh",bmp:"ⴰ-ⵧⵯ⵰⵿"},{name:"Tirhuta",astral:"\uD805[\uDC80-\uDCC7\uDCD0-\uDCD9]"},{name:"Ugaritic",astral:"\uD800[\uDF80-\uDF9D\uDF9F]"},{name:"Vai",bmp:"ꔀ-ꘫ"},{name:"Warang_Citi",astral:"\uD806[\uDCA0-\uDCF2\uDCFF]"},{name:"Yi",bmp:"ꀀ-ꒌ꒐-꓆"}])},tt.exports=nt.default})(unicodeScripts,unicodeScripts.exports);var unicodeScriptsExports=unicodeScripts.exports;(function(tt,nt){Object.defineProperty(nt,"__esModule",{value:!0});var et=xregexpExports,rt=yt(et),ot=buildExports,at=yt(ot),st=matchrecursiveExports,ut=yt(st),ct=unicodeBaseExports,pt=yt(ct),dt=unicodeBlocksExports,ft=yt(dt),bt=unicodeCategoriesExports,ht=yt(bt),Mt=unicodePropertiesExports,mt=yt(Mt),Ot=unicodeScriptsExports,zt=yt(Ot);function yt(vt){return vt&&vt.__esModule?vt:{default:vt}}(0,at.default)(rt.default),(0,ut.default)(rt.default),(0,pt.default)(rt.default),(0,ft.default)(rt.default),(0,ht.default)(rt.default),(0,mt.default)(rt.default),(0,zt.default)(rt.default),nt.default=rt.default,tt.exports=nt.default})(lib,lib.exports);var libExports=lib.exports;const xRegExp=libExports;var decamelize$1=(tt,nt)=>{if(typeof tt!="string")throw new TypeError("Expected a string");nt=typeof nt>"u"?"_":nt;const et=xRegExp("([\\p{Ll}\\d])(\\p{Lu})","g"),rt=xRegExp("(\\p{Lu}+)(\\p{Lu}[\\p{Ll}\\d]+)","g");return tt.replace(et,`$1${nt}$2`).replace(rt,`$1${nt}$2`).toLowerCase()};const decamelize=decamelize$1,humanizeString=tt=>{if(typeof tt!="string")throw new TypeError("Expected a string");return tt=decamelize(tt),tt=tt.toLowerCase().replace(/[_-]+/g," ").replace(/\s{2,}/g," ").trim(),tt=tt.charAt(0).toUpperCase()+tt.slice(1),tt};humanizeString$2.exports=humanizeString;humanizeString$2.exports.default=humanizeString;var humanizeStringExports=humanizeString$2.exports;const humanizeString$1=getDefaultExportFromCjs$1(humanizeStringExports);var baseAssignValue=_baseAssignValue,baseForOwn=_baseForOwn,baseIteratee=_baseIteratee;function mapValues(tt,nt){var et={};return nt=baseIteratee(nt),baseForOwn(tt,function(rt,ot,at){baseAssignValue(et,ot,nt(rt,ot,at))}),et}var mapValues_1=mapValues;const mapValues$1=getDefaultExportFromCjs$1(mapValues_1),valueToColor=(tt,nt)=>toHex(tt).toUpperCase(),displayFontOption=tt=>humanizeString$1(CustomThemeConfig.FontFamily[tt]),themeBuilder={primaryColor:{help:"Primary accent color for interactive elements.",title:"Primary color",component:BaseColorPicker,getValue:valueToColor},backgroundColor:{help:"Background color for the main content area.",title:"Background color",component:BaseColorPicker,getValue:valueToColor},secondaryBackgroundColor:{help:"Background color used for the sidebar and most interactive widgets.",title:"Secondary background color",component:BaseColorPicker,getValue:valueToColor},textColor:{help:"Color used for almost all text.",title:"Text color",component:BaseColorPicker,getValue:valueToColor},font:{help:"Font family for all text in the app, except code blocks.",title:"Font family",options:Object.keys(CustomThemeConfig.FontFamily).map(tt=>humanizeString$1(tt)),getValue:(tt,nt)=>nt.options&&nt.options.findIndex(et=>et===displayFontOption(tt))||0,component:UISelectbox}},changedColorConfig=(tt,nt)=>{const et=at=>typeof at=="string"?at.toLowerCase():at,rt=mapValues$1(toThemeInput(nt),et);tt=mapValues$1(tt,et);const ot=[];return tt.primaryColor!==rt.primaryColor&&ot.push(`primaryColor="${tt.primaryColor}"`),tt.backgroundColor!==rt.backgroundColor&&ot.push(`backgroundColor="${tt.backgroundColor}"`),tt.secondaryBackgroundColor!==rt.secondaryBackgroundColor&&ot.push(`secondaryBackgroundColor="${tt.secondaryBackgroundColor}"`),tt.textColor!==rt.textColor&&ot.push(`textColor="${tt.textColor}"`),ot},toMinimalToml=tt=>{const nt=["[theme]"],et=changedColorConfig(tt,lightTheme.emotion),rt=changedColorConfig(tt,darkTheme.emotion),ot=et.length,at=rt.length;if(ot===at?nt.push(...et):ot<at?nt.push('base="light"',...et):nt.push('base="dark"',...rt),tt.font){const st=displayFontOption(tt.font).toLowerCase();nt.push(`font="${st}"`)}return[...nt,""].join(`
783
- `)},ThemeCreatorDialog=tt=>{const[nt,et]=React$1.useState(!1),{activeTheme:rt,addThemes:ot,setTheme:at}=React$1.useContext(LibContext),st=toThemeInput(rt.emotion),ut=zt=>{ot([zt]),at(zt)},ct=(zt,yt)=>{const vt=createTheme(CUSTOM_THEME_NAME,{...st,[zt]:yt});ut(vt),et(!1)},pt=toMinimalToml(st),dt=()=>{tt.metricsMgr.enqueue("menuClick",{label:"copyThemeToClipboard"}),navigator.clipboard.writeText(pt),et(!0)},ft=({name:zt,value:yt})=>{const vt=themeBuilder[zt],At=vt.component===BaseColorPicker,St={options:vt.options||void 0,showValue:At,value:vt.getValue(yt,vt)};return jsx$1(React$1.Fragment,{children:jsx$1(vt.component,{disabled:!1,label:vt.title,help:vt.help,onChange:Et=>{ct(zt,Et)},...St})},zt)},bt=()=>{tt.backToSettings(!1)},{primaryColor:ht,textColor:Mt,backgroundColor:mt,secondaryBackgroundColor:Ot}=st;return jsxs(Modal,{animate:!1,isOpen:!0,onClose:tt.onClose,children:[jsxs(ModalHeader,{children:[jsx$1(StyledBackButton,{onClick:bt,"data-testid":"stThemeCreatorBack"}),"Edit active theme"]}),jsx$1(ModalBody$1,{children:jsxs(StyledDialogBody,{"data-testid":"stThemeCreatorDialog",children:[jsx$1(StyledFullRow,{children:jsx$1(StreamlitMarkdown$1,{source:`
782
+ */nt.default=function(et){if(!et.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");et.addUnicodeData([{name:"Adlam",astral:"\uD83A[\uDD00-\uDD4A\uDD50-\uDD59\uDD5E\uDD5F]"},{name:"Ahom",astral:"\uD805[\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF3F]"},{name:"Anatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE46]"},{name:"Arabic",bmp:"؀-؄؆-؋؍-ؚ؞ؠ-ؿف-يٖ-ٯٱ-ۜ۞-ۿݐ-ݿࢠ-ࢴࢶ-ࢽࣔ-ࣣ࣡-ࣿﭐ-﯁ﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-﷽ﹰ-ﹴﹶ-ﻼ",astral:"\uD803[\uDE60-\uDE7E]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB\uDEF0\uDEF1]"},{name:"Armenian",bmp:"Ա-Ֆՙ-՟ա-և֊֍-֏ﬓ-ﬗ"},{name:"Avestan",astral:"\uD802[\uDF00-\uDF35\uDF39-\uDF3F]"},{name:"Balinese",bmp:"ᬀ-ᭋ᭐-᭼"},{name:"Bamum",bmp:"ꚠ-꛷",astral:"\uD81A[\uDC00-\uDE38]"},{name:"Bassa_Vah",astral:"\uD81A[\uDED0-\uDEED\uDEF0-\uDEF5]"},{name:"Batak",bmp:"ᯀ-᯳᯼-᯿"},{name:"Bengali",bmp:"ঀ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-৻"},{name:"Bhaiksuki",astral:"\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC45\uDC50-\uDC6C]"},{name:"Bopomofo",bmp:"˪˫ㄅ-ㄭㆠ-ㆺ"},{name:"Brahmi",astral:"\uD804[\uDC00-\uDC4D\uDC52-\uDC6F\uDC7F]"},{name:"Braille",bmp:"⠀-⣿"},{name:"Buginese",bmp:"ᨀ-ᨛ᨞᨟"},{name:"Buhid",bmp:"ᝀ-ᝓ"},{name:"Canadian_Aboriginal",bmp:"᐀-ᙿᢰ-ᣵ"},{name:"Carian",astral:"\uD800[\uDEA0-\uDED0]"},{name:"Caucasian_Albanian",astral:"\uD801[\uDD30-\uDD63\uDD6F]"},{name:"Chakma",astral:"\uD804[\uDD00-\uDD34\uDD36-\uDD43]"},{name:"Cham",bmp:"ꨀ-ꨶꩀ-ꩍ꩐-꩙꩜-꩟"},{name:"Cherokee",bmp:"Ꭰ-Ᏽᏸ-ᏽꭰ-ꮿ"},{name:"Common",bmp:"\0-@\\x5B-`\\x7B-©«-¹»-¿×÷ʹ-˟˥-˩ˬ-˿ʹ;΅·։؅،؛؜؟ـ۝࣢।॥฿࿕-࿘჻᛫-᛭᜵᜶᠂᠃᠅᳓᳡ᳩ-ᳬᳮ-ᳳᳵᳶ -​‎-⁤⁦-⁰⁴-⁾₀-₎₠-₾℀-℥℧-℩ℬ-ℱℳ-⅍⅏-⅟↉-↋←-⏾␀-␦⑀-⑊①-⟿⤀-⭳⭶-⮕⮘-⮹⮽-⯈⯊-⯑⯬-⯯⸀-⹄⿰-⿻ -〄〆〈-〠〰-〷〼-〿゛゜゠・ー㆐-㆟㇀-㇣㈠-㉟㉿-㋏㍘-㏿䷀-䷿꜀-꜡ꞈ-꞊꠰-꠹꤮ꧏ꭛﴾﴿︐-︙︰-﹒﹔-﹦﹨-﹫\uFEFF!-@[-`{-・ー゙゚¢-₩│-○-�",astral:"\uD800[\uDD00-\uDD02\uDD07-\uDD33\uDD37-\uDD3F\uDD90-\uDD9B\uDDD0-\uDDFC\uDEE1-\uDEFB]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD66\uDD6A-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDF00-\uDF56\uDF60-\uDF71]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDFCB\uDFCE-\uDFFF]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD00-\uDD0C\uDD10-\uDD2E\uDD30-\uDD6B\uDD70-\uDDAC\uDDE6-\uDDFF\uDE01\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED2\uDEE0-\uDEEC\uDEF0-\uDEF6\uDF00-\uDF73\uDF80-\uDFD4]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDD10-\uDD1E\uDD20-\uDD27\uDD30\uDD33-\uDD3E\uDD40-\uDD4B\uDD50-\uDD5E\uDD80-\uDD91\uDDC0]|\uDB40[\uDC01\uDC20-\uDC7F]"},{name:"Coptic",bmp:"Ϣ-ϯⲀ-ⳳ⳹-⳿"},{name:"Cuneiform",astral:"\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC70-\uDC74\uDC80-\uDD43]"},{name:"Cypriot",astral:"\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F]"},{name:"Cyrillic",bmp:"Ѐ-҄҇-ԯᲀ-ᲈᴫᵸⷠ-ⷿꙀ-ꚟ︮︯"},{name:"Deseret",astral:"\uD801[\uDC00-\uDC4F]"},{name:"Devanagari",bmp:"ऀ-ॐ॓-ॣ०-ॿ꣠-ꣽ"},{name:"Duployan",astral:"\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9C-\uDC9F]"},{name:"Egyptian_Hieroglyphs",astral:"\uD80C[\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]"},{name:"Elbasan",astral:"\uD801[\uDD00-\uDD27]"},{name:"Ethiopic",bmp:"ሀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፼ᎀ-᎙ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮ"},{name:"Georgian",bmp:"Ⴀ-ჅჇჍა-ჺჼ-ჿⴀ-ⴥⴧⴭ"},{name:"Glagolitic",bmp:"Ⰰ-Ⱞⰰ-ⱞ",astral:"\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]"},{name:"Gothic",astral:"\uD800[\uDF30-\uDF4A]"},{name:"Grantha",astral:"\uD804[\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]"},{name:"Greek",bmp:"Ͱ-ͳ͵-ͷͺ-ͽͿ΄ΆΈ-ΊΌΎ-ΡΣ-ϡϰ-Ͽᴦ-ᴪᵝ-ᵡᵦ-ᵪᶿἀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ῄῆ-ΐῖ-Ί῝-`ῲ-ῴῶ-῾Ωꭥ",astral:"\uD800[\uDD40-\uDD8E\uDDA0]|\uD834[\uDE00-\uDE45]"},{name:"Gujarati",bmp:"ઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૱ૹ"},{name:"Gurmukhi",bmp:"ਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵ"},{name:"Han",bmp:"⺀-⺙⺛-⻳⼀-⿕々〇〡-〩〸-〻㐀-䶵一-鿕豈-舘並-龎",astral:"[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]"},{name:"Hangul",bmp:"ᄀ-ᇿ〮〯ㄱ-ㆎ㈀-㈞㉠-㉾ꥠ-ꥼ가-힣ힰ-ퟆퟋ-ퟻᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"},{name:"Hanunoo",bmp:"ᜠ-᜴"},{name:"Hatran",astral:"\uD802[\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDCFF]"},{name:"Hebrew",bmp:"֑-ׇא-תװ-״יִ-זּטּ-לּמּנּסּףּפּצּ-ﭏ"},{name:"Hiragana",bmp:"ぁ-ゖゝ-ゟ",astral:"𛀁|🈀"},{name:"Imperial_Aramaic",astral:"\uD802[\uDC40-\uDC55\uDC57-\uDC5F]"},{name:"Inherited",bmp:"̀-ًͯ҅҆-ٰٕ॒॑᪰-᪾᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸᳹᷀-᷵᷻-᷿‌‍⃐-〪⃰-゙゚〭︀-️︠-︭",astral:"\uD800[\uDDFD\uDEE0]|\uD834[\uDD67-\uDD69\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD]|\uDB40[\uDD00-\uDDEF]"},{name:"Inscriptional_Pahlavi",astral:"\uD802[\uDF60-\uDF72\uDF78-\uDF7F]"},{name:"Inscriptional_Parthian",astral:"\uD802[\uDF40-\uDF55\uDF58-\uDF5F]"},{name:"Javanese",bmp:"ꦀ-꧍꧐-꧙꧞꧟"},{name:"Kaithi",astral:"\uD804[\uDC80-\uDCC1]"},{name:"Kannada",bmp:"ಀ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲ"},{name:"Katakana",bmp:"ァ-ヺヽ-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ッア-ン",astral:"𛀀"},{name:"Kayah_Li",bmp:"꤀-꤭꤯"},{name:"Kharoshthi",astral:"\uD802[\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F-\uDE47\uDE50-\uDE58]"},{name:"Khmer",bmp:"ក-៝០-៩៰-៹᧠-᧿"},{name:"Khojki",astral:"\uD804[\uDE00-\uDE11\uDE13-\uDE3E]"},{name:"Khudawadi",astral:"\uD804[\uDEB0-\uDEEA\uDEF0-\uDEF9]"},{name:"Lao",bmp:"ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟ"},{name:"Latin",bmp:"A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞮꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z"},{name:"Lepcha",bmp:"ᰀ-᰷᰻-᱉ᱍ-ᱏ"},{name:"Limbu",bmp:"ᤀ-ᤞᤠ-ᤫᤰ-᤻᥀᥄-᥏"},{name:"Linear_A",astral:"\uD801[\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]"},{name:"Linear_B",astral:"\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA]"},{name:"Lisu",bmp:"ꓐ-꓿"},{name:"Lycian",astral:"\uD800[\uDE80-\uDE9C]"},{name:"Lydian",astral:"\uD802[\uDD20-\uDD39\uDD3F]"},{name:"Mahajani",astral:"\uD804[\uDD50-\uDD76]"},{name:"Malayalam",bmp:"ഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-൏ൔ-ൣ൦-ൿ"},{name:"Mandaic",bmp:"ࡀ-࡛࡞"},{name:"Manichaean",astral:"\uD802[\uDEC0-\uDEE6\uDEEB-\uDEF6]"},{name:"Marchen",astral:"\uD807[\uDC70-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]"},{name:"Meetei_Mayek",bmp:"ꫠ-꫶ꯀ-꯭꯰-꯹"},{name:"Mende_Kikakui",astral:"\uD83A[\uDC00-\uDCC4\uDCC7-\uDCD6]"},{name:"Meroitic_Cursive",astral:"\uD802[\uDDA0-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDDFF]"},{name:"Meroitic_Hieroglyphs",astral:"\uD802[\uDD80-\uDD9F]"},{name:"Miao",astral:"\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]"},{name:"Modi",astral:"\uD805[\uDE00-\uDE44\uDE50-\uDE59]"},{name:"Mongolian",bmp:"᠀᠁᠄᠆-᠎᠐-᠙ᠠ-ᡷᢀ-ᢪ",astral:"\uD805[\uDE60-\uDE6C]"},{name:"Mro",astral:"\uD81A[\uDE40-\uDE5E\uDE60-\uDE69\uDE6E\uDE6F]"},{name:"Multani",astral:"\uD804[\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA9]"},{name:"Myanmar",bmp:"က-႟ꧠ-ꧾꩠ-ꩿ"},{name:"Nabataean",astral:"\uD802[\uDC80-\uDC9E\uDCA7-\uDCAF]"},{name:"New_Tai_Lue",bmp:"ᦀ-ᦫᦰ-ᧉ᧐-᧚᧞᧟"},{name:"Newa",astral:"\uD805[\uDC00-\uDC59\uDC5B\uDC5D]"},{name:"Nko",bmp:"߀-ߺ"},{name:"Ogham",bmp:" -᚜"},{name:"Ol_Chiki",bmp:"᱐-᱿"},{name:"Old_Hungarian",astral:"\uD803[\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDCFF]"},{name:"Old_Italic",astral:"\uD800[\uDF00-\uDF23]"},{name:"Old_North_Arabian",astral:"\uD802[\uDE80-\uDE9F]"},{name:"Old_Permic",astral:"\uD800[\uDF50-\uDF7A]"},{name:"Old_Persian",astral:"\uD800[\uDFA0-\uDFC3\uDFC8-\uDFD5]"},{name:"Old_South_Arabian",astral:"\uD802[\uDE60-\uDE7F]"},{name:"Old_Turkic",astral:"\uD803[\uDC00-\uDC48]"},{name:"Oriya",bmp:"ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୷"},{name:"Osage",astral:"\uD801[\uDCB0-\uDCD3\uDCD8-\uDCFB]"},{name:"Osmanya",astral:"\uD801[\uDC80-\uDC9D\uDCA0-\uDCA9]"},{name:"Pahawh_Hmong",astral:"\uD81A[\uDF00-\uDF45\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]"},{name:"Palmyrene",astral:"\uD802[\uDC60-\uDC7F]"},{name:"Pau_Cin_Hau",astral:"\uD806[\uDEC0-\uDEF8]"},{name:"Phags_Pa",bmp:"ꡀ-꡷"},{name:"Phoenician",astral:"\uD802[\uDD00-\uDD1B\uDD1F]"},{name:"Psalter_Pahlavi",astral:"\uD802[\uDF80-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]"},{name:"Rejang",bmp:"ꤰ-꥓꥟"},{name:"Runic",bmp:"ᚠ-ᛪᛮ-ᛸ"},{name:"Samaritan",bmp:"ࠀ-࠭࠰-࠾"},{name:"Saurashtra",bmp:"ꢀ-ꣅ꣎-꣙"},{name:"Sharada",astral:"\uD804[\uDD80-\uDDCD\uDDD0-\uDDDF]"},{name:"Shavian",astral:"\uD801[\uDC50-\uDC7F]"},{name:"Siddham",astral:"\uD805[\uDD80-\uDDB5\uDDB8-\uDDDD]"},{name:"SignWriting",astral:"\uD836[\uDC00-\uDE8B\uDE9B-\uDE9F\uDEA1-\uDEAF]"},{name:"Sinhala",bmp:"ංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟ෦-෯ෲ-෴",astral:"\uD804[\uDDE1-\uDDF4]"},{name:"Sora_Sompeng",astral:"\uD804[\uDCD0-\uDCE8\uDCF0-\uDCF9]"},{name:"Sundanese",bmp:"ᮀ-ᮿ᳀-᳇"},{name:"Syloti_Nagri",bmp:"ꠀ-꠫"},{name:"Syriac",bmp:"܀-܍܏-݊ݍ-ݏ"},{name:"Tagalog",bmp:"ᜀ-ᜌᜎ-᜔"},{name:"Tagbanwa",bmp:"ᝠ-ᝬᝮ-ᝰᝲᝳ"},{name:"Tai_Le",bmp:"ᥐ-ᥭᥰ-ᥴ"},{name:"Tai_Tham",bmp:"ᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪠-᪭"},{name:"Tai_Viet",bmp:"ꪀ-ꫂꫛ-꫟"},{name:"Takri",astral:"\uD805[\uDE80-\uDEB7\uDEC0-\uDEC9]"},{name:"Tamil",bmp:"ஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௺"},{name:"Tangut",astral:"𖿠|[\uD81C-\uD820][\uDC00-\uDFFF]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]"},{name:"Telugu",bmp:"ఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-్ౕౖౘ-ౚౠ-ౣ౦-౯౸-౿"},{name:"Thaana",bmp:"ހ-ޱ"},{name:"Thai",bmp:"ก-ฺเ-๛"},{name:"Tibetan",bmp:"ༀ-ཇཉ-ཬཱ-ྗྙ-ྼ྾-࿌࿎-࿔࿙࿚"},{name:"Tifinagh",bmp:"ⴰ-ⵧⵯ⵰⵿"},{name:"Tirhuta",astral:"\uD805[\uDC80-\uDCC7\uDCD0-\uDCD9]"},{name:"Ugaritic",astral:"\uD800[\uDF80-\uDF9D\uDF9F]"},{name:"Vai",bmp:"ꔀ-ꘫ"},{name:"Warang_Citi",astral:"\uD806[\uDCA0-\uDCF2\uDCFF]"},{name:"Yi",bmp:"ꀀ-ꒌ꒐-꓆"}])},tt.exports=nt.default})(unicodeScripts,unicodeScripts.exports);var unicodeScriptsExports=unicodeScripts.exports;(function(tt,nt){Object.defineProperty(nt,"__esModule",{value:!0});var et=xregexpExports,rt=yt(et),ot=buildExports,at=yt(ot),st=matchrecursiveExports,ut=yt(st),ct=unicodeBaseExports,pt=yt(ct),dt=unicodeBlocksExports,ft=yt(dt),bt=unicodeCategoriesExports,ht=yt(bt),Mt=unicodePropertiesExports,mt=yt(Mt),Ot=unicodeScriptsExports,zt=yt(Ot);function yt(vt){return vt&&vt.__esModule?vt:{default:vt}}(0,at.default)(rt.default),(0,ut.default)(rt.default),(0,pt.default)(rt.default),(0,ft.default)(rt.default),(0,ht.default)(rt.default),(0,mt.default)(rt.default),(0,zt.default)(rt.default),nt.default=rt.default,tt.exports=nt.default})(lib,lib.exports);var libExports=lib.exports;const xRegExp=libExports;var decamelize$1=(tt,nt)=>{if(typeof tt!="string")throw new TypeError("Expected a string");nt=typeof nt>"u"?"_":nt;const et=xRegExp("([\\p{Ll}\\d])(\\p{Lu})","g"),rt=xRegExp("(\\p{Lu}+)(\\p{Lu}[\\p{Ll}\\d]+)","g");return tt.replace(et,`$1${nt}$2`).replace(rt,`$1${nt}$2`).toLowerCase()};const decamelize=decamelize$1,humanizeString=tt=>{if(typeof tt!="string")throw new TypeError("Expected a string");return tt=decamelize(tt),tt=tt.toLowerCase().replace(/[_-]+/g," ").replace(/\s{2,}/g," ").trim(),tt=tt.charAt(0).toUpperCase()+tt.slice(1),tt};humanizeString$2.exports=humanizeString;humanizeString$2.exports.default=humanizeString;var humanizeStringExports=humanizeString$2.exports;const humanizeString$1=getDefaultExportFromCjs$1(humanizeStringExports);var baseAssignValue=_baseAssignValue,baseForOwn=_baseForOwn,baseIteratee=_baseIteratee;function mapValues(tt,nt){var et={};return nt=baseIteratee(nt),baseForOwn(tt,function(rt,ot,at){baseAssignValue(et,ot,nt(rt,ot,at))}),et}var mapValues_1=mapValues;const mapValues$1=getDefaultExportFromCjs$1(mapValues_1),valueToColor=(tt,nt)=>toHex(tt).toUpperCase(),displayFontOption=tt=>humanizeString$1(CustomThemeConfig.FontFamily[tt]),themeBuilder={primaryColor:{help:"Primary accent color for interactive elements.",title:"Primary color",component:BaseColorPicker$1,getValue:valueToColor},backgroundColor:{help:"Background color for the main content area.",title:"Background color",component:BaseColorPicker$1,getValue:valueToColor},secondaryBackgroundColor:{help:"Background color used for the sidebar and most interactive widgets.",title:"Secondary background color",component:BaseColorPicker$1,getValue:valueToColor},textColor:{help:"Color used for almost all text.",title:"Text color",component:BaseColorPicker$1,getValue:valueToColor},font:{help:"Font family for all text in the app, except code blocks.",title:"Font family",options:Object.keys(CustomThemeConfig.FontFamily).map(tt=>humanizeString$1(tt)),getValue:(tt,nt)=>nt.options&&nt.options.findIndex(et=>et===displayFontOption(tt))||0,component:UISelectbox}},changedColorConfig=(tt,nt)=>{const et=at=>typeof at=="string"?at.toLowerCase():at,rt=mapValues$1(toThemeInput(nt),et);tt=mapValues$1(tt,et);const ot=[];return tt.primaryColor!==rt.primaryColor&&ot.push(`primaryColor="${tt.primaryColor}"`),tt.backgroundColor!==rt.backgroundColor&&ot.push(`backgroundColor="${tt.backgroundColor}"`),tt.secondaryBackgroundColor!==rt.secondaryBackgroundColor&&ot.push(`secondaryBackgroundColor="${tt.secondaryBackgroundColor}"`),tt.textColor!==rt.textColor&&ot.push(`textColor="${tt.textColor}"`),ot},toMinimalToml=tt=>{const nt=["[theme]"],et=changedColorConfig(tt,lightTheme.emotion),rt=changedColorConfig(tt,darkTheme.emotion),ot=et.length,at=rt.length;if(ot===at?nt.push(...et):ot<at?nt.push('base="light"',...et):nt.push('base="dark"',...rt),tt.font){const st=displayFontOption(tt.font).toLowerCase();nt.push(`font="${st}"`)}return[...nt,""].join(`
783
+ `)},ThemeCreatorDialog=tt=>{const[nt,et]=React$1.useState(!1),{activeTheme:rt,addThemes:ot,setTheme:at}=React$1.useContext(LibContext),st=toThemeInput(rt.emotion),ut=zt=>{ot([zt]),at(zt)},ct=(zt,yt)=>{const vt=createTheme(CUSTOM_THEME_NAME,{...st,[zt]:yt});ut(vt),et(!1)},pt=toMinimalToml(st),dt=()=>{tt.metricsMgr.enqueue("menuClick",{label:"copyThemeToClipboard"}),navigator.clipboard.writeText(pt),et(!0)},ft=({name:zt,value:yt})=>{const vt=themeBuilder[zt],At=vt.component===BaseColorPicker$1,St={options:vt.options||void 0,showValue:At,value:vt.getValue(yt,vt)};return jsx$1(React$1.Fragment,{children:jsx$1(vt.component,{disabled:!1,label:vt.title,help:vt.help,onChange:Et=>{ct(zt,Et)},...St})},zt)},bt=()=>{tt.backToSettings(!1)},{primaryColor:ht,textColor:Mt,backgroundColor:mt,secondaryBackgroundColor:Ot}=st;return jsxs(Modal,{animate:!1,isOpen:!0,onClose:tt.onClose,children:[jsxs(ModalHeader,{children:[jsx$1(StyledBackButton,{onClick:bt,"data-testid":"stThemeCreatorBack"}),"Edit active theme"]}),jsx$1(ModalBody$1,{children:jsxs(StyledDialogBody,{"data-testid":"stThemeCreatorDialog",children:[jsx$1(StyledFullRow,{children:jsx$1(StreamlitMarkdown$1,{source:`
784
784
  Changes made to the active theme will exist for the duration of a
785
785
  session. To discard changes and recover the original theme,
786
786
  refresh the page.`,allowHTML:!1,isCaption:!0})}),jsx$1(ft,{name:"primaryColor",value:ht}),jsx$1(ft,{name:"backgroundColor",value:mt}),jsx$1(ft,{name:"textColor",value:Mt}),jsx$1(ft,{name:"secondaryBackgroundColor",value:Ot}),jsx$1(StyledFullRow,{children:jsx$1(ft,{name:"font",value:String(st.font)})}),jsx$1(StyledFullRow,{children:jsx$1(StyledFullRow,{children:jsx$1(StreamlitMarkdown$1,{source:"\nTo save your changes, copy your custom theme into the clipboard and paste it into the\n`[theme]` section of your `.streamlit/config.toml` file.\n",allowHTML:!1,isCaption:!0})})}),jsx$1(StyledFullRow,{children:jsx$1("div",{children:jsx$1(BaseButton,{onClick:dt,kind:BaseButtonKind.SECONDARY,children:nt?jsxs(React$1.Fragment,{children:["Copied to clipboard ",jsx$1(Icon$2,{content:Check,size:"lg",color:rt.emotion.colors.success})]}):"Copy theme to clipboard"})})})]})})]})};var LevelContext=reactExports.createContext(0);function ownKeys(tt,nt){var et=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);nt&&(rt=rt.filter(function(ot){return Object.getOwnPropertyDescriptor(tt,ot).enumerable})),et.push.apply(et,rt)}return et}function _objectSpread(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt]!=null?arguments[nt]:{};nt%2?ownKeys(Object(et),!0).forEach(function(rt){_defineProperty(tt,rt,et[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(et)):ownKeys(Object(et)).forEach(function(rt){Object.defineProperty(tt,rt,Object.getOwnPropertyDescriptor(et,rt))})}return tt}function _defineProperty(tt,nt,et){return nt in tt?Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=et,tt}var Action=styled("div",function(tt){var nt=tt.$theme;return _objectSpread({},nt.typography.LabelMedium)});Action.displayName="Action";Action.displayName="Action";var Body=styled("div",function(tt){var nt=tt.$theme;return _objectSpread({marginBottom:nt.sizing.scale600,color:nt.colors.contentPrimary},nt.typography.ParagraphMedium)});Body.displayName="Body";Body.displayName="Body";var Contents=styled("div",function(tt){var nt=tt.$theme;return{marginLeft:nt.sizing.scale600,marginTop:nt.sizing.scale600,marginRight:nt.sizing.scale600,marginBottom:nt.sizing.scale600}});Contents.displayName="Contents";Contents.displayName="Contents";var HeaderImage=styled("img",function(tt){var nt=tt.$theme;return{borderTopLeftRadius:nt.borders.surfaceBorderRadius,borderTopRightRadius:nt.borders.surfaceBorderRadius,objectFit:"contain",maxWidth:"100%"}});HeaderImage.displayName="HeaderImage";HeaderImage.displayName="HeaderImage";var Root=styled("section",function(tt){var nt=tt.$theme;return{borderLeftWidth:"2px",borderTopWidth:"2px",borderRightWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderTopStyle:"solid",borderRightStyle:"solid",borderBottomStyle:"solid",borderLeftColor:nt.colors.borderOpaque,borderRightColor:nt.colors.borderOpaque,borderTopColor:nt.colors.borderOpaque,borderBottomColor:nt.colors.borderOpaque,borderTopLeftRadius:nt.borders.radius400,borderTopRightRadius:nt.borders.radius400,borderBottomLeftRadius:nt.borders.radius400,borderBottomRightRadius:nt.borders.radius400,backgroundColor:nt.colors.backgroundPrimary,overflow:"hidden"}});Root.displayName="Root";Root.displayName="Root";var Thumbnail=styled("img",function(tt){var nt=tt.$theme;return _objectSpread(_objectSpread({float:"right",height:nt.sizing.scale2400,width:nt.sizing.scale2400,objectFit:"cover",borderTopLeftRadius:nt.borders.surfaceBorderRadius,borderTopRightRadius:nt.borders.surfaceBorderRadius,borderBottomLeftRadius:nt.borders.surfaceBorderRadius,borderBottomRightRadius:nt.borders.surfaceBorderRadius},expandBorderStyles(nt.borders.border200)),{},{margin:"0 0 ".concat(nt.sizing.scale500," ").concat(nt.sizing.scale500)})});Thumbnail.displayName="Thumbnail";Thumbnail.displayName="Thumbnail";var Title=styled("h1",function(tt){var nt=tt.$theme;return _objectSpread(_objectSpread({},nt.typography.HeadingSmall),{},{color:nt.colors.contentPrimary,marginLeft:0,marginTop:0,marginRight:0,marginBottom:nt.sizing.scale500,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0})});Title.displayName="Title";Title.displayName="Title";var _excluded=["children"],_excluded2=["action","children","hasThumbnail","headerImage","thumbnail","title","overrides"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(tt){for(var nt=1;nt<arguments.length;nt++){var et=arguments[nt];for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&(tt[rt]=et[rt])}return tt},_extends.apply(this,arguments)}function _objectWithoutProperties(tt,nt){if(tt==null)return{};var et=_objectWithoutPropertiesLoose(tt,nt),rt,ot;if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(tt);for(ot=0;ot<at.length;ot++)rt=at[ot],!(nt.indexOf(rt)>=0)&&Object.prototype.propertyIsEnumerable.call(tt,rt)&&(et[rt]=tt[rt])}return et}function _objectWithoutPropertiesLoose(tt,nt){if(tt==null)return{};var et={},rt=Object.keys(tt),ot,at;for(at=0;at<rt.length;at++)ot=rt[at],!(nt.indexOf(ot)>=0)&&(et[ot]=tt[ot]);return et}function hasThumbnail(tt){return!!tt.thumbnail}var SemanticTitle=function tt(nt){var et=nt.children,rt=_objectWithoutProperties(nt,_excluded),ot=["","h1","h2","h3","h4","h5","h6"];return reactExports.createElement(LevelContext.Consumer,null,function(at){return reactExports.createElement(Title,_extends({$as:ot[at]},rt),et)})};function Card(tt){var nt=tt.action,et=tt.children,rt=tt.hasThumbnail,ot=tt.headerImage,at=tt.thumbnail,st=tt.title,ut=tt.overrides,ct=_objectWithoutProperties(tt,_excluded2),pt=ut.Action,dt=ut.Body,ft=ut.Contents,bt=ut.HeaderImage,ht=ut.Root,Mt=ut.Thumbnail,mt=ut.Title,Ot=getOverride(pt)||Action,zt=getOverride(dt)||Body,yt=getOverride(ft)||Contents,vt=getOverride(bt)||HeaderImage,At=getOverride(ht)||Root,St=getOverride(Mt)||Thumbnail,Et=getOverride(mt)||SemanticTitle,Tt=typeof ot=="string"?{src:ot}:ot,Rt=rt(tt);return reactExports.createElement(At,_extends({"data-baseweb":"card"},ct,getOverrideProps(ht)),ot&&reactExports.createElement(vt,_extends({},Tt,getOverrideProps(bt))),reactExports.createElement(yt,getOverrideProps(ft),at&&reactExports.createElement(St,_extends({src:at},getOverrideProps(Mt))),st&&reactExports.createElement(Et,_extends({$hasThumbnail:Rt},getOverrideProps(mt)),st),reactExports.createElement(zt,getOverrideProps(dt),et),nt&&reactExports.createElement(Ot,getOverrideProps(pt),nt)))}Card.defaultProps={action:null,children:null,hasThumbnail,overrides:{}};const StreamlitLogo="data:image/svg+xml,%3csvg%20width='32'%20height='19'%20viewBox='0%200%2032%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%202'%3e%3cpath%20id='path3858'%20d='M15.998%2011.078L10.3882%208.04522L0.650371%202.78157C0.641482%202.77247%200.623705%202.77248%200.614816%202.77248C0.259259%202.59975%20-0.105186%202.96338%200.0281476%203.32702L4.98994%2016.2698L4.99083%2016.2725C4.99616%2016.2852%205.00061%2016.298%205.00594%2016.3107C5.2095%2016.7934%205.65394%2017.0916%206.1375%2017.2089C6.17839%2017.218%206.20764%2017.2262%206.25673%2017.2362C6.30559%2017.2473%206.37394%2017.2625%206.43261%2017.2671C6.44239%2017.268%206.45128%2017.268%206.46106%2017.2689H6.46817C6.47528%2017.2698%206.48239%2017.2698%206.4895%2017.2707H6.49928C6.5055%2017.2716%206.51261%2017.2716%206.51883%2017.2716H6.53039C6.5375%2017.2725%206.54461%2017.2725%206.55172%2017.2725C12.8348%2017.9731%2019.1763%2017.9731%2025.4593%2017.2725C25.5349%2017.2725%2025.6087%2017.2689%2025.6798%2017.2616C25.7029%2017.2589%2025.7251%2017.2562%2025.7473%2017.2534C25.75%2017.2525%2025.7536%2017.2525%2025.7562%2017.2516C25.7713%2017.2498%2025.7864%2017.2471%2025.8016%2017.2443C25.8238%2017.2416%2025.846%2017.2371%2025.8682%2017.2325C25.9127%2017.2225%2025.9329%2017.2152%2025.9932%2017.194C26.0535%2017.1729%2026.1536%2017.1358%2026.2163%2017.1049C26.279%2017.074%2026.3224%2017.0443%2026.3749%2017.0107C26.4398%2016.9689%2026.5015%2016.9261%2026.5641%2016.8781C26.5911%2016.8569%2026.6096%2016.8434%2026.6291%2016.8243L26.6184%2016.818L15.998%2011.078Z'%20fill='%23FF2B2B'/%3e%3cpath%20id='path5063'%20d='M31.3616%202.78158H31.3527L21.6113%208.04524L27.0265%2016.2935L31.9758%203.32704V3.30886C32.1003%202.92704%2031.7181%202.58158%2031.3616%202.78158Z'%20fill='%237D353B'/%3e%3cpath%20id='path5101'%20d='M16.5171%200.278788C16.2682%20-0.0930318%2015.726%20-0.0930318%2015.486%200.278788L10.3882%208.04518L15.998%2011.0779L26.6291%2016.8242C26.6959%2016.7574%2026.7494%2016.6922%2026.806%2016.6234C26.886%2016.5225%2026.9607%2016.4143%2027.0265%2016.2934L21.6113%208.04518L16.5171%200.278788Z'%20fill='%23BD4043'/%3e%3c/g%3e%3c/svg%3e",Rocket="data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%3e%3cpath%20id='Vector'%20d='M5.95077%2010.7642L8.09076%2011.6685C8.34683%2011.157%208.61204%2010.6637%208.8864%2010.1887C9.16076%209.71374%209.46256%209.23875%209.79179%208.76376L8.25538%208.46232L5.95077%2010.7642ZM9.84666%2013.0387L12.9743%2016.1352C13.7426%2015.8429%2014.5656%2015.3954%2015.4436%2014.7925C16.3215%2014.1896%2017.1446%2013.5045%2017.9128%2012.7372C19.1931%2011.4584%2020.1946%2010.038%2020.917%208.47602C21.6395%206.91403%2021.955%205.47536%2021.8636%204.16C20.5466%204.06866%2019.1017%204.38379%2017.5287%205.10541C15.9557%205.82703%2014.529%206.82726%2013.2487%208.10608C12.4805%208.87337%2011.7946%209.69547%2011.191%2010.5724C10.5874%2011.4493%2010.1393%2012.2714%209.84666%2013.0387ZM14.7302%2011.2575C14.3096%2010.8373%2014.0992%2010.3212%2014.0992%209.70917C14.0992%209.09716%2014.3096%208.58107%2014.7302%208.16088C15.1509%207.7407%2015.6722%207.53061%2016.2941%207.53061C16.916%207.53061%2017.4373%207.7407%2017.8579%208.16088C18.2786%208.58107%2018.489%209.09716%2018.489%209.70917C18.489%2010.3212%2018.2786%2010.8373%2017.8579%2011.2575C17.4373%2011.6776%2016.916%2011.8877%2016.2941%2011.8877C15.6722%2011.8877%2015.1509%2011.6776%2014.7302%2011.2575ZM15.2515%2020.0539L17.5561%2017.752L17.2543%2016.2175C16.7788%2016.5463%2016.3032%2016.8432%2015.8277%2017.1081C15.3521%2017.373%2014.8583%2017.6333%2014.3461%2017.8891L15.2515%2020.0539ZM23.839%202.15956C24.1865%204.37009%2023.9716%206.52125%2023.1942%208.61304C22.4169%2010.7048%2021.0771%2012.7007%2019.1749%2014.6007L19.7236%2017.3136C19.7967%2017.679%2019.7784%2018.0352%2019.6687%2018.3823C19.559%2018.7294%2019.3761%2019.0309%2019.12%2019.2866L14.5108%2023.8904L12.2061%2018.4919L7.51461%2013.806L2.10974%2011.5041L6.69153%206.90033C6.9476%206.64457%207.25397%206.46188%207.61064%206.35227C7.9673%206.24265%208.32854%206.22438%208.69435%206.29746L11.4105%206.84553C13.3127%204.94556%2015.3064%203.6028%2017.3915%202.81724C19.4767%202.03168%2021.6258%201.81245%2023.839%202.15956ZM4.05769%2017.2862C4.69786%2016.6468%205.47978%2016.3225%206.40346%2016.3134C7.32713%2016.3042%208.10905%2016.6194%208.74922%2017.2588C9.38939%2017.8982%209.70491%2018.6792%209.69576%2019.6018C9.68662%2020.5243%209.36196%2021.3053%208.72179%2021.9448C8.26452%2022.4015%207.50089%2022.7943%206.43089%2023.1231C5.36089%2023.4519%203.88393%2023.7442%202%2024C2.25607%2022.1183%202.54872%2020.6431%202.87795%2019.5744C3.20718%2018.5056%203.60043%2017.7429%204.05769%2017.2862ZM5.62154%2018.8208C5.43863%2019.0035%205.25572%2019.3369%205.07282%2019.821C4.88991%2020.3051%204.76188%2020.7938%204.68872%2021.2871C5.18256%2021.214%205.67183%2021.0907%206.15653%2020.9171C6.64123%2020.7436%206.97504%2020.5655%207.15794%2020.3828C7.37743%2020.1635%207.49632%2019.8986%207.51461%2019.5881C7.5329%2019.2775%207.4323%2019.0126%207.21282%2018.7934C6.99333%2018.5741%206.72812%2018.4691%206.41718%2018.4782C6.10624%2018.4874%205.84102%2018.6015%205.62154%2018.8208Z'%20fill='%23A3A8B8'/%3e%3c/g%3e%3c/svg%3e",Snowflake=""+new URL("../media/snowflake.JU2jBHL8.svg",import.meta.url).href;function DetachedHead(){return{title:"Unable to deploy",body:jsxs(Fragment,{children:[jsx$1("p",{children:"This Git tree is in a detached HEAD state."}),jsx$1("p",{children:"Please commit the latest changes and push to GitHub to continue."})]})}}function ModuleIsNotAdded(tt){return{title:"Unable to deploy",body:jsx$1(StreamlitMarkdown$1,{source:`
@@ -788,11 +788,11 @@ The app's main file \`${tt}\` has
788
788
  not been pushed to GitHub. Please add it to continue.
789
789
  `,allowHTML:!1})}}const StyledParagraph=newStyled("p",{target:"edgwnvj0"})({textAlign:"justify"});function NoRepositoryDetected(){return{title:"Unable to deploy",body:jsxs(StyledParagraph,{children:["The app’s code is not connected to a remote GitHub repository. To deploy on Streamlit Community Cloud, please put your code in a GitHub repository and publish the current branch. Read more in"," ",jsx$1("a",{href:STREAMLIT_COMMUNITY_CLOUD_DOCS_URL,rel:"noopener noreferrer",target:"_blank",children:"our documentation"}),"."]})}}function ModalBody({children:tt}){const{colors:nt,fontSizes:et,spacing:rt}=useTheme();return jsx$1(ModalBody$2,{style:{marginTop:rt.none,marginLeft:rt.none,marginRight:rt.none,marginBottom:rt.none,paddingTop:rt.md,paddingRight:rt.none,paddingBottom:rt.none,paddingLeft:rt.none,color:nt.bodyText,fontSize:et.md,overflowY:"auto"},children:tt})}function DeployModal(tt){const{children:nt,onClose:et}=tt;return jsxs(Modal,{isOpen:!0,closeable:!0,onClose:et,size:"auto",children:[jsx$1(ModalHeader,{children:"Deploy this app using..."}),jsx$1(ModalBody,{children:nt})]})}function DeployCard(tt){const{colors:nt,spacing:et,radii:rt,breakpoints:ot,sizes:at}=useTheme(),{children:st}=tt;return jsx$1(Card,{overrides:{Root:{style:{borderTopWidth:at.borderWidth,borderBottomWidth:at.borderWidth,borderLeftWidth:at.borderWidth,borderRightWidth:at.borderWidth,borderTopStyle:"solid",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"solid",borderTopColor:nt.borderColor,borderBottomColor:nt.borderColor,borderLeftColor:nt.borderColor,borderRightColor:nt.borderColor,borderTopLeftRadius:"none",borderTopRightRadius:"none",borderBottomLeftRadius:"none",borderBottomRightRadius:"none",":last-child":{borderRightStyle:"none",borderBottomRightRadius:rt.xl},":first-child":{borderBottomLeftRadius:rt.xl},[`@media (max-width: ${ot.md})`]:{":last-child":{borderBottomLeftRadius:rt.xl}}}},Contents:{style:{marginBottom:0,marginTop:0,marginLeft:0,marginRight:0,height:"100%"}},Body:{style:{padding:et.twoXL,marginBottom:0,marginTop:0,marginLeft:0,marginRight:0,height:"100%",display:"flex",flexDirection:"column",[`@media (max-width: ${ot.md})`]:{padding:et.xl}}}},children:st})}const Checkmark="data:image/svg+xml,%3csvg%20width='12'%20height='9'%20viewBox='0%200%2012%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.00009%206.78L1.68676%204.46667C1.42676%204.20667%201.00676%204.20667%200.746758%204.46667C0.486758%204.72667%200.486758%205.14667%200.746758%205.40667L3.53342%208.19334C3.79342%208.45334%204.21342%208.45334%204.47342%208.19334L11.5268%201.14C11.7868%200.880005%2011.7868%200.460005%2011.5268%200.200005C11.2668%20-0.0599951%2010.8468%20-0.0599951%2010.5868%200.200005L4.00009%206.78Z'%20fill='%23808495'/%3e%3c/svg%3e",StyledHeader=newStyled("div",{target:"edlp5wu0"})(({theme:tt})=>({fontFamily:tt.fonts.sansSerif,fontWeight:tt.fontWeights.bold,fontSize:tt.fontSizes.lg,color:tt.colors.grey90,marginTop:tt.spacing.twoXL,marginBottom:tt.spacing.twoXS,[`@media (max-width: ${tt.breakpoints.md})`]:{marginTop:tt.spacing.md}})),StyledSubheader=newStyled("div",{target:"edlp5wu1"})(({theme:tt})=>({fontFamily:tt.fonts.sansSerif,fontWeight:tt.fontWeights.normal,fontSize:tt.fontSizes.md,color:tt.colors.grey90,marginTop:tt.spacing.twoXS,marginBottom:tt.spacing.md,[`@media (max-width: ${tt.breakpoints.md})`]:{marginTop:tt.spacing.md}})),StyledCardContainer=newStyled("div",{target:"edlp5wu2"})(({theme:tt})=>({display:"grid",maxWidth:`calc(1.25 * ${tt.sizes.contentMaxWidth})`,gridTemplateColumns:"1fr 1fr 1fr",gridGap:tt.spacing.none,[`@media (max-width: ${tt.breakpoints.md})`]:{gridTemplateColumns:"1fr"}})),StyledElement=newStyled("div",{target:"edlp5wu3"})(({theme:tt})=>({display:"inline-flex",marginTop:tt.spacing.sm,"& > span":{fontFamily:tt.fonts.sansSerif,fontWeight:tt.fontWeights.normal,fontSize:tt.fontSizes.md,marginLeft:tt.spacing.twoXL,color:tt.colors.gray70},"& > img":{position:"absolute",marginTop:tt.spacing.sm}})),StyledActionsWrapper=newStyled("div",{target:"edlp5wu4"})(({theme:tt})=>({display:"flex",marginTop:tt.spacing.threeXL,"& > button":{marginRight:tt.spacing.twoXL},[`@media (max-width: ${tt.breakpoints.md})`]:{marginTop:tt.spacing.xl}}));function DeployListElement(tt){const{children:nt}=tt;return jsxs(StyledElement,{children:[jsx$1("img",{src:Checkmark,alt:"Checkmark"}),jsx$1("span",{children:nt})]})}const{GitStates}=GitInfo,openUrl=tt=>{window.open(tt,"_blank")},getDeployAppUrl=tt=>{if(tt){const nt=new URL(DEPLOY_URL);return nt.searchParams.set("repository",tt.repository??""),nt.searchParams.set("branch",tt.branch??""),nt.searchParams.set("mainModule",tt.module??""),nt.toString()}return STREAMLIT_CLOUD_URL};function DeployDialog(tt){const{gitInfo:nt}=reactExports.useContext(AppContext),{onClose:et,metricsMgr:rt}=tt,ot=reactExports.useCallback(()=>{const{showDeployError:at,isDeployErrorModalOpen:st,metricsMgr:ut}=tt;if(ut.enqueue("menuClick",{label:"deployButtonInDialog"}),!nt){const Mt=NoRepositoryDetected();at(Mt.title,Mt.body);return}const{repository:ct,branch:pt,module:dt,untrackedFiles:ft,state:bt}=nt;if((!ct||!pt||!dt)&&bt===GitStates.DEFAULT){const Mt=NoRepositoryDetected();at(Mt.title,Mt.body);return}if(bt===GitStates.HEAD_DETACHED){const Mt=DetachedHead();at(Mt.title,Mt.body);return}if(dt&&(ft!=null&&ft.includes(dt))){const Mt=ModuleIsNotAdded(dt);at(Mt.title,Mt.body);return}st&&et(),openUrl(getDeployAppUrl(nt))},[tt,et,nt]);return jsx$1(DeployModal,{onClose:et,children:jsxs(StyledCardContainer,{children:[jsxs(DeployCard,{children:[jsxs(Body,{style:{flexGrow:1},children:[jsx$1("img",{src:StreamlitLogo,alt:"Streamlit Logo","data-testid":"stDeployDialogCommunityCloudIcon"}),jsx$1(StyledHeader,{children:"Streamlit Community Cloud"}),jsx$1(StyledSubheader,{children:"For community, always free"}),jsx$1(DeployListElement,{children:"For personal hobbies and learning"}),jsx$1(DeployListElement,{children:"Deploy unlimited public apps"}),jsx$1(DeployListElement,{children:"Explore and learn from Streamlit’s community and popular apps"})]}),jsx$1(Action,{children:jsxs(StyledActionsWrapper,{children:[jsx$1(BaseButton,{kind:BaseButtonKind.PRIMARY,onClick:ot,children:"Deploy now"}),jsx$1(BaseButton,{onClick:()=>{rt.enqueue("menuClick",{label:"readMoreCommunityCloudInDeployDialog"}),openUrl(STREAMLIT_COMMUNITY_CLOUD_DOCS_URL)},kind:BaseButtonKind.MINIMAL,children:"Learn more"})]})})]}),jsxs(DeployCard,{children:[jsxs(Body,{style:{flexGrow:1},children:[jsx$1("img",{src:Snowflake,alt:"Snowflake","data-testid":"stDeployDialogSnowflakeDeploymentIcon"}),jsx$1(StyledHeader,{children:"Snowflake"}),jsx$1(StyledSubheader,{children:"For enterprise"}),jsx$1(DeployListElement,{children:"Enterprise-level security, support, and fully managed infrastructure"}),jsx$1(DeployListElement,{children:"Deploy unlimited private apps with role-based sharing"}),jsx$1(DeployListElement,{children:"Integrate with Snowflake’s full data stack"})]}),jsx$1(Action,{children:jsxs(StyledActionsWrapper,{children:[jsx$1(BaseButton,{kind:BaseButtonKind.SECONDARY,onClick:()=>{rt.enqueue("menuClick",{label:"startTrialInDeployDialog"}),openUrl(SNOWFLAKE_TRIAL_URL)},children:"Start trial"}),jsx$1(BaseButton,{onClick:()=>{rt.enqueue("menuClick",{label:"learnMoreSnowflakeInDeployDialog"}),openUrl(SNOWFLAKE_LEARN_MORE_URL)},kind:BaseButtonKind.MINIMAL,children:"Learn more"})]})})]}),jsxs(DeployCard,{children:[jsxs(Body,{style:{flexGrow:2},children:[jsx$1("img",{src:Rocket,alt:"Rocket","data-testid":"stDeployDialogCustomDeploymentIcon"}),jsx$1(StyledHeader,{children:"Other platforms"}),jsx$1(StyledSubheader,{children:"For custom deployment "}),jsx$1(DeployListElement,{children:"Deploy on your own hardware or cloud service"}),jsx$1(DeployListElement,{children:"Set up and maintain your own authentication, resources, and costs"})]}),jsx$1(Action,{children:jsx$1(StyledActionsWrapper,{children:jsx$1(BaseButton,{onClick:()=>{rt.enqueue("menuClick",{label:"readMoreDeployTutorialInDeployDialog"}),openUrl(STREAMLIT_DEPLOY_TUTORIAL_URL)},kind:BaseButtonKind.MINIMAL,children:"Learn more"})})})]})]})})}var DialogType;(function(tt){tt.ABOUT="about",tt.CLEAR_CACHE="clearCache",tt.SETTINGS="settings",tt.SCRIPT_COMPILE_ERROR="scriptCompileError",tt.THEME_CREATOR="themeCreator",tt.WARNING="warning",tt.DEPLOY_ERROR="deployError",tt.DEPLOY_DIALOG="deployDialog"})(DialogType||(DialogType={}));function StreamlitDialog(tt){switch(tt.type){case"about":return aboutDialog(tt);case"clearCache":return clearCacheDialog(tt);case"settings":return settingsDialog(tt);case"scriptCompileError":return scriptCompileErrorDialog(tt);case"themeCreator":return jsx$1(ThemeCreatorDialog,{...tt});case"warning":return warningDialog(tt);case"deployDialog":return jsx$1(DeployDialog,{...tt});case"deployError":return deployErrorDialog(tt);case void 0:return noDialog(tt);default:return typeNotRecognizedDialog(tt)}}function aboutDialog(tt){if(tt.aboutSectionMd){const nt={overflowY:"auto",overflowX:"hidden",maxHeight:"35vh"},et=`
790
790
  `,rt=[`Made with Streamlit v${tt.sessionInfo.current.streamlitVersion}`,STREAMLIT_HOME_URL,`Copyright ${new Date().getFullYear()} Snowflake Inc. All rights reserved.`].join(et),ot=`${tt.aboutSectionMd} ${et} ${et} ${rt}`;return jsxs(Modal,{isOpen:!0,onClose:tt.onClose,children:[jsx$1(ModalHeader,{children:"About"}),jsx$1(ModalBody$1,{children:jsx$1(StyledAboutInfo,{children:jsx$1(StreamlitMarkdown$1,{source:ot,allowHTML:!1,style:nt})})})]})}return jsxs(Modal,{isOpen:!0,onClose:tt.onClose,children:[jsx$1(ModalHeader,{children:"Made with"}),jsx$1(ModalBody$1,{children:jsxs("div",{children:[tt.sessionInfo.isSet&&jsxs(Fragment,{children:["Streamlit v",tt.sessionInfo.current.streamlitVersion,jsx$1("br",{})]}),jsx$1(StyledAboutLink,{href:STREAMLIT_HOME_URL,children:STREAMLIT_HOME_URL}),jsx$1("br",{}),"Copyright ",new Date().getFullYear()," Snowflake Inc. All rights reserved."]})})]})}function clearCacheDialog(tt){const et=["**Are you sure you want to clear the app's function caches?**","This will remove all cached entries from functions using","`@st.cache_data` and `@st.cache_resource`."].join(`
791
- `);return jsx$1("div",{"data-testid":"stClearCacheDialog",children:jsxs(Modal,{isOpen:!0,onClose:tt.onClose,children:[jsx$1(ModalHeader,{children:"Clear caches"}),jsx$1(ModalBody$1,{children:jsx$1(StreamlitMarkdown$1,{source:et,allowHTML:!1})}),jsxs(ModalFooter,{children:[jsx$1(ModalButton,{kind:BaseButtonKind.GHOST,onClick:tt.onClose,children:"Cancel"}),jsx$1(ModalButton,{autoFocus:!0,kind:BaseButtonKind.SECONDARY,onClick:tt.confirmCallback,children:"Clear caches"})]})]})})}function scriptCompileErrorDialog(tt){var nt;return jsxs(Modal,{isOpen:!0,onClose:tt.onClose,size:"auto",autoFocus:!1,children:[jsx$1(ModalHeader,{children:"Script execution error"}),jsx$1(ModalBody$1,{children:jsx$1(StreamlitSyntaxHighlighter$1,{showLineNumbers:!1,wrapLines:!1,children:(nt=tt.exception)!=null&&nt.message?tt.exception.message:"No message"})}),jsx$1(ModalFooter,{children:jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:tt.onClose,children:"Close"})})]})}function settingsDialog(tt){return jsx$1(SettingsDialog,{...tt})}function warningDialog(tt){return jsxs(Modal,{isOpen:!0,onClose:tt.onClose,children:[jsx$1(ModalHeader,{children:tt.title}),jsx$1(ModalBody$1,{children:tt.msg})]})}function deployErrorDialog({title:tt,msg:nt,onClose:et,onContinue:rt,onTryAgain:ot}){const at=()=>{et(),rt&&rt()};return jsxs(Modal,{isOpen:!0,onClose:et,children:[jsx$1(ModalHeader,{children:tt}),jsx$1(ModalBody$1,{children:jsx$1(StyledDeployErrorContent,{children:nt})}),jsxs(ModalFooter,{children:[jsx$1(ModalButton,{kind:BaseButtonKind.GHOST,onClick:ot,children:"Try again"}),jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:at,children:rt?"Continue anyway":"Close"})]})]})}function noDialog({onClose:tt}){return jsx$1(Modal,{isOpen:!1,onClose:tt})}function typeNotRecognizedDialog(tt){return jsx$1(Modal,{isOpen:!0,onClose:tt.onClose,children:jsx$1(ModalBody$1,{children:`Dialog type "${tt.type}" not recognized.`})})}function bind(tt,nt){return function(){return tt.apply(nt,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(tt=>nt=>{const et=toString.call(nt);return tt[et]||(tt[et]=et.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=tt=>(tt=tt.toLowerCase(),nt=>kindOf(nt)===tt),typeOfTest=tt=>nt=>typeof nt===tt,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(tt){return tt!==null&&!isUndefined(tt)&&tt.constructor!==null&&!isUndefined(tt.constructor)&&isFunction(tt.constructor.isBuffer)&&tt.constructor.isBuffer(tt)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(tt){let nt;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?nt=ArrayBuffer.isView(tt):nt=tt&&tt.buffer&&isArrayBuffer(tt.buffer),nt}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject$1=tt=>tt!==null&&typeof tt=="object",isBoolean=tt=>tt===!0||tt===!1,isPlainObject=tt=>{if(kindOf(tt)!=="object")return!1;const nt=getPrototypeOf(tt);return(nt===null||nt===Object.prototype||Object.getPrototypeOf(nt)===null)&&!(Symbol.toStringTag in tt)&&!(Symbol.iterator in tt)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=tt=>isObject$1(tt)&&isFunction(tt.pipe),isFormData=tt=>{let nt;return tt&&(typeof FormData=="function"&&tt instanceof FormData||isFunction(tt.append)&&((nt=kindOf(tt))==="formdata"||nt==="object"&&isFunction(tt.toString)&&tt.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=tt=>tt.trim?tt.trim():tt.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(tt,nt,{allOwnKeys:et=!1}={}){if(tt===null||typeof tt>"u")return;let rt,ot;if(typeof tt!="object"&&(tt=[tt]),isArray(tt))for(rt=0,ot=tt.length;rt<ot;rt++)nt.call(null,tt[rt],rt,tt);else{const at=et?Object.getOwnPropertyNames(tt):Object.keys(tt),st=at.length;let ut;for(rt=0;rt<st;rt++)ut=at[rt],nt.call(null,tt[ut],ut,tt)}}function findKey(tt,nt){nt=nt.toLowerCase();const et=Object.keys(tt);let rt=et.length,ot;for(;rt-- >0;)if(ot=et[rt],nt===ot.toLowerCase())return ot;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=tt=>!isUndefined(tt)&&tt!==_global;function merge(){const{caseless:tt}=isContextDefined(this)&&this||{},nt={},et=(rt,ot)=>{const at=tt&&findKey(nt,ot)||ot;isPlainObject(nt[at])&&isPlainObject(rt)?nt[at]=merge(nt[at],rt):isPlainObject(rt)?nt[at]=merge({},rt):isArray(rt)?nt[at]=rt.slice():nt[at]=rt};for(let rt=0,ot=arguments.length;rt<ot;rt++)arguments[rt]&&forEach(arguments[rt],et);return nt}const extend=(tt,nt,et,{allOwnKeys:rt}={})=>(forEach(nt,(ot,at)=>{et&&isFunction(ot)?tt[at]=bind(ot,et):tt[at]=ot},{allOwnKeys:rt}),tt),stripBOM=tt=>(tt.charCodeAt(0)===65279&&(tt=tt.slice(1)),tt),inherits=(tt,nt,et,rt)=>{tt.prototype=Object.create(nt.prototype,rt),tt.prototype.constructor=tt,Object.defineProperty(tt,"super",{value:nt.prototype}),et&&Object.assign(tt.prototype,et)},toFlatObject=(tt,nt,et,rt)=>{let ot,at,st;const ut={};if(nt=nt||{},tt==null)return nt;do{for(ot=Object.getOwnPropertyNames(tt),at=ot.length;at-- >0;)st=ot[at],(!rt||rt(st,tt,nt))&&!ut[st]&&(nt[st]=tt[st],ut[st]=!0);tt=et!==!1&&getPrototypeOf(tt)}while(tt&&(!et||et(tt,nt))&&tt!==Object.prototype);return nt},endsWith=(tt,nt,et)=>{tt=String(tt),(et===void 0||et>tt.length)&&(et=tt.length),et-=nt.length;const rt=tt.indexOf(nt,et);return rt!==-1&&rt===et},toArray=tt=>{if(!tt)return null;if(isArray(tt))return tt;let nt=tt.length;if(!isNumber(nt))return null;const et=new Array(nt);for(;nt-- >0;)et[nt]=tt[nt];return et},isTypedArray=(tt=>nt=>tt&&nt instanceof tt)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(tt,nt)=>{const rt=(tt&&tt[Symbol.iterator]).call(tt);let ot;for(;(ot=rt.next())&&!ot.done;){const at=ot.value;nt.call(tt,at[0],at[1])}},matchAll=(tt,nt)=>{let et;const rt=[];for(;(et=tt.exec(nt))!==null;)rt.push(et);return rt},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=tt=>tt.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(et,rt,ot){return rt.toUpperCase()+ot}),hasOwnProperty=(({hasOwnProperty:tt})=>(nt,et)=>tt.call(nt,et))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(tt,nt)=>{const et=Object.getOwnPropertyDescriptors(tt),rt={};forEach(et,(ot,at)=>{let st;(st=nt(ot,at,tt))!==!1&&(rt[at]=st||ot)}),Object.defineProperties(tt,rt)},freezeMethods=tt=>{reduceDescriptors(tt,(nt,et)=>{if(isFunction(tt)&&["arguments","caller","callee"].indexOf(et)!==-1)return!1;const rt=tt[et];if(isFunction(rt)){if(nt.enumerable=!1,"writable"in nt){nt.writable=!1;return}nt.set||(nt.set=()=>{throw Error("Can not rewrite read-only method '"+et+"'")})}})},toObjectSet=(tt,nt)=>{const et={},rt=ot=>{ot.forEach(at=>{et[at]=!0})};return isArray(tt)?rt(tt):rt(String(tt).split(nt)),et},noop=()=>{},toFiniteNumber=(tt,nt)=>tt!=null&&Number.isFinite(tt=+tt)?tt:nt,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(tt=16,nt=ALPHABET.ALPHA_DIGIT)=>{let et="";const{length:rt}=nt;for(;tt--;)et+=nt[Math.random()*rt|0];return et};function isSpecCompliantForm(tt){return!!(tt&&isFunction(tt.append)&&tt[Symbol.toStringTag]==="FormData"&&tt[Symbol.iterator])}const toJSONObject=tt=>{const nt=new Array(10),et=(rt,ot)=>{if(isObject$1(rt)){if(nt.indexOf(rt)>=0)return;if(!("toJSON"in rt)){nt[ot]=rt;const at=isArray(rt)?[]:{};return forEach(rt,(st,ut)=>{const ct=et(st,ot+1);!isUndefined(ct)&&(at[ut]=ct)}),nt[ot]=void 0,at}}return rt};return et(tt,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=tt=>tt&&(isObject$1(tt)||isFunction(tt))&&isFunction(tt.then)&&isFunction(tt.catch),_setImmediate=((tt,nt)=>tt?setImmediate:nt?((et,rt)=>(_global.addEventListener("message",({source:ot,data:at})=>{ot===_global&&at===et&&rt.length&&rt.shift()()},!1),ot=>{rt.push(ot),_global.postMessage(et,"*")}))(`axios@${Math.random()}`,[]):et=>setTimeout(et))(typeof setImmediate=="function",isFunction(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject:isObject$1,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError(tt,nt,et,rt,ot){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=tt,this.name="AxiosError",nt&&(this.code=nt),et&&(this.config=et),rt&&(this.request=rt),ot&&(this.response=ot,this.status=ot.status?ot.status:null)}utils$1.inherits(AxiosError,Error,{toJSON:function tt(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(tt=>{descriptors[tt]={value:tt}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(tt,nt,et,rt,ot,at)=>{const st=Object.create(prototype$1);return utils$1.toFlatObject(tt,st,function(ct){return ct!==Error.prototype},ut=>ut!=="isAxiosError"),AxiosError.call(st,tt.message,nt,et,rt,ot),st.cause=tt,st.name=tt.name,at&&Object.assign(st,at),st};const httpAdapter=null;function isVisitable(tt){return utils$1.isPlainObject(tt)||utils$1.isArray(tt)}function removeBrackets(tt){return utils$1.endsWith(tt,"[]")?tt.slice(0,-2):tt}function renderKey(tt,nt,et){return tt?tt.concat(nt).map(function(ot,at){return ot=removeBrackets(ot),!et&&at?"["+ot+"]":ot}).join(et?".":""):nt}function isFlatArray(tt){return utils$1.isArray(tt)&&!tt.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function tt(nt){return/^is[A-Z]/.test(nt)});function toFormData(tt,nt,et){if(!utils$1.isObject(tt))throw new TypeError("target must be an object");nt=nt||new FormData,et=utils$1.toFlatObject(et,{metaTokens:!0,dots:!1,indexes:!1},!1,function(mt,Ot){return!utils$1.isUndefined(Ot[mt])});const rt=et.metaTokens,ot=et.visitor||dt,at=et.dots,st=et.indexes,ct=(et.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(nt);if(!utils$1.isFunction(ot))throw new TypeError("visitor must be a function");function pt(Mt){if(Mt===null)return"";if(utils$1.isDate(Mt))return Mt.toISOString();if(!ct&&utils$1.isBlob(Mt))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(Mt)||utils$1.isTypedArray(Mt)?ct&&typeof Blob=="function"?new Blob([Mt]):Buffer.from(Mt):Mt}function dt(Mt,mt,Ot){let zt=Mt;if(Mt&&!Ot&&typeof Mt=="object"){if(utils$1.endsWith(mt,"{}"))mt=rt?mt:mt.slice(0,-2),Mt=JSON.stringify(Mt);else if(utils$1.isArray(Mt)&&isFlatArray(Mt)||(utils$1.isFileList(Mt)||utils$1.endsWith(mt,"[]"))&&(zt=utils$1.toArray(Mt)))return mt=removeBrackets(mt),zt.forEach(function(vt,At){!(utils$1.isUndefined(vt)||vt===null)&&nt.append(st===!0?renderKey([mt],At,at):st===null?mt:mt+"[]",pt(vt))}),!1}return isVisitable(Mt)?!0:(nt.append(renderKey(Ot,mt,at),pt(Mt)),!1)}const ft=[],bt=Object.assign(predicates,{defaultVisitor:dt,convertValue:pt,isVisitable});function ht(Mt,mt){if(!utils$1.isUndefined(Mt)){if(ft.indexOf(Mt)!==-1)throw Error("Circular reference detected in "+mt.join("."));ft.push(Mt),utils$1.forEach(Mt,function(zt,yt){(!(utils$1.isUndefined(zt)||zt===null)&&ot.call(nt,zt,utils$1.isString(yt)?yt.trim():yt,mt,bt))===!0&&ht(zt,mt?mt.concat(yt):[yt])}),ft.pop()}}if(!utils$1.isObject(tt))throw new TypeError("data must be an object");return ht(tt),nt}function encode$1(tt){const nt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(tt).replace(/[!'()~]|%20|%00/g,function(rt){return nt[rt]})}function AxiosURLSearchParams(tt,nt){this._pairs=[],tt&&toFormData(tt,this,nt)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function tt(nt,et){this._pairs.push([nt,et])};prototype.toString=function tt(nt){const et=nt?function(rt){return nt.call(this,rt,encode$1)}:encode$1;return this._pairs.map(function(ot){return et(ot[0])+"="+et(ot[1])},"").join("&")};function encode(tt){return encodeURIComponent(tt).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(tt,nt,et){if(!nt)return tt;const rt=et&&et.encode||encode;utils$1.isFunction(et)&&(et={serialize:et});const ot=et&&et.serialize;let at;if(ot?at=ot(nt,et):at=utils$1.isURLSearchParams(nt)?nt.toString():new AxiosURLSearchParams(nt,et).toString(rt),at){const st=tt.indexOf("#");st!==-1&&(tt=tt.slice(0,st)),tt+=(tt.indexOf("?")===-1?"?":"&")+at}return tt}class InterceptorManager{constructor(){this.handlers=[]}use(nt,et,rt){return this.handlers.push({fulfilled:nt,rejected:et,synchronous:rt?rt.synchronous:!1,runWhen:rt?rt.runWhen:null}),this.handlers.length-1}eject(nt){this.handlers[nt]&&(this.handlers[nt]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(nt){utils$1.forEach(this.handlers,function(rt){rt!==null&&nt(rt)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(tt,nt){return toFormData(tt,new platform.classes.URLSearchParams,Object.assign({visitor:function(et,rt,ot,at){return platform.isNode&&utils$1.isBuffer(et)?(this.append(rt,et.toString("base64")),!1):at.defaultVisitor.apply(this,arguments)}},nt))}function parsePropPath(tt){return utils$1.matchAll(/\w+|\[(\w*)]/g,tt).map(nt=>nt[0]==="[]"?"":nt[1]||nt[0])}function arrayToObject(tt){const nt={},et=Object.keys(tt);let rt;const ot=et.length;let at;for(rt=0;rt<ot;rt++)at=et[rt],nt[at]=tt[at];return nt}function formDataToJSON(tt){function nt(et,rt,ot,at){let st=et[at++];if(st==="__proto__")return!0;const ut=Number.isFinite(+st),ct=at>=et.length;return st=!st&&utils$1.isArray(ot)?ot.length:st,ct?(utils$1.hasOwnProp(ot,st)?ot[st]=[ot[st],rt]:ot[st]=rt,!ut):((!ot[st]||!utils$1.isObject(ot[st]))&&(ot[st]=[]),nt(et,rt,ot[st],at)&&utils$1.isArray(ot[st])&&(ot[st]=arrayToObject(ot[st])),!ut)}if(utils$1.isFormData(tt)&&utils$1.isFunction(tt.entries)){const et={};return utils$1.forEachEntry(tt,(rt,ot)=>{nt(parsePropPath(rt),ot,et,0)}),et}return null}function stringifySafely(tt,nt,et){if(utils$1.isString(tt))try{return(nt||JSON.parse)(tt),utils$1.trim(tt)}catch(rt){if(rt.name!=="SyntaxError")throw rt}return(0,JSON.stringify)(tt)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function tt(nt,et){const rt=et.getContentType()||"",ot=rt.indexOf("application/json")>-1,at=utils$1.isObject(nt);if(at&&utils$1.isHTMLForm(nt)&&(nt=new FormData(nt)),utils$1.isFormData(nt))return ot?JSON.stringify(formDataToJSON(nt)):nt;if(utils$1.isArrayBuffer(nt)||utils$1.isBuffer(nt)||utils$1.isStream(nt)||utils$1.isFile(nt)||utils$1.isBlob(nt)||utils$1.isReadableStream(nt))return nt;if(utils$1.isArrayBufferView(nt))return nt.buffer;if(utils$1.isURLSearchParams(nt))return et.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),nt.toString();let ut;if(at){if(rt.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(nt,this.formSerializer).toString();if((ut=utils$1.isFileList(nt))||rt.indexOf("multipart/form-data")>-1){const ct=this.env&&this.env.FormData;return toFormData(ut?{"files[]":nt}:nt,ct&&new ct,this.formSerializer)}}return at||ot?(et.setContentType("application/json",!1),stringifySafely(nt)):nt}],transformResponse:[function tt(nt){const et=this.transitional||defaults.transitional,rt=et&&et.forcedJSONParsing,ot=this.responseType==="json";if(utils$1.isResponse(nt)||utils$1.isReadableStream(nt))return nt;if(nt&&utils$1.isString(nt)&&(rt&&!this.responseType||ot)){const st=!(et&&et.silentJSONParsing)&&ot;try{return JSON.parse(nt)}catch(ut){if(st)throw ut.name==="SyntaxError"?AxiosError.from(ut,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):ut}}return nt}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function tt(nt){return nt>=200&&nt<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],tt=>{defaults.headers[tt]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=tt=>{const nt={};let et,rt,ot;return tt&&tt.split(`
791
+ `);return jsx$1("div",{"data-testid":"stClearCacheDialog",children:jsxs(Modal,{isOpen:!0,onClose:tt.onClose,children:[jsx$1(ModalHeader,{children:"Clear caches"}),jsx$1(ModalBody$1,{children:jsx$1(StreamlitMarkdown$1,{source:et,allowHTML:!1})}),jsxs(ModalFooter,{children:[jsx$1(ModalButton,{kind:BaseButtonKind.GHOST,onClick:tt.onClose,children:"Cancel"}),jsx$1(ModalButton,{autoFocus:!0,kind:BaseButtonKind.SECONDARY,onClick:tt.confirmCallback,children:"Clear caches"})]})]})})}function scriptCompileErrorDialog(tt){var nt;return jsxs(Modal,{isOpen:!0,onClose:tt.onClose,size:"auto",autoFocus:!1,children:[jsx$1(ModalHeader,{children:"Script execution error"}),jsx$1(ModalBody$1,{children:jsx$1(StreamlitSyntaxHighlighter$1,{showLineNumbers:!1,wrapLines:!1,children:(nt=tt.exception)!=null&&nt.message?tt.exception.message:"No message"})}),jsx$1(ModalFooter,{children:jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:tt.onClose,children:"Close"})})]})}function settingsDialog(tt){return jsx$1(SettingsDialog,{...tt})}function warningDialog(tt){return jsxs(Modal,{isOpen:!0,onClose:tt.onClose,children:[jsx$1(ModalHeader,{children:tt.title}),jsx$1(ModalBody$1,{children:tt.msg})]})}function deployErrorDialog({title:tt,msg:nt,onClose:et,onContinue:rt,onTryAgain:ot}){const at=()=>{et(),rt&&rt()};return jsxs(Modal,{isOpen:!0,onClose:et,children:[jsx$1(ModalHeader,{children:tt}),jsx$1(ModalBody$1,{children:jsx$1(StyledDeployErrorContent,{children:nt})}),jsxs(ModalFooter,{children:[jsx$1(ModalButton,{kind:BaseButtonKind.GHOST,onClick:ot,children:"Try again"}),jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:at,children:rt?"Continue anyway":"Close"})]})]})}function noDialog({onClose:tt}){return jsx$1(Modal,{isOpen:!1,onClose:tt})}function typeNotRecognizedDialog(tt){return jsx$1(Modal,{isOpen:!0,onClose:tt.onClose,children:jsx$1(ModalBody$1,{children:`Dialog type "${tt.type}" not recognized.`})})}const CORS_ERROR_MESSAGE_DOCUMENTATION_LINK="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS",LOG="WebsocketConnection",WEBSOCKET_STREAM_PATH="_stcore/stream",SERVER_PING_PATH="_stcore/health",HOST_CONFIG_PATH="_stcore/host-config",PING_MINIMUM_RETRY_PERIOD_MS=500,PING_MAXIMUM_RETRY_PERIOD_MS=1e3*60,WEBSOCKET_TIMEOUT_MS=15*1e3,PING_TIMEOUT_MS=15*1e3;function bind(tt,nt){return function(){return tt.apply(nt,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(tt=>nt=>{const et=toString.call(nt);return tt[et]||(tt[et]=et.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=tt=>(tt=tt.toLowerCase(),nt=>kindOf(nt)===tt),typeOfTest=tt=>nt=>typeof nt===tt,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(tt){return tt!==null&&!isUndefined(tt)&&tt.constructor!==null&&!isUndefined(tt.constructor)&&isFunction(tt.constructor.isBuffer)&&tt.constructor.isBuffer(tt)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(tt){let nt;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?nt=ArrayBuffer.isView(tt):nt=tt&&tt.buffer&&isArrayBuffer(tt.buffer),nt}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject$1=tt=>tt!==null&&typeof tt=="object",isBoolean=tt=>tt===!0||tt===!1,isPlainObject=tt=>{if(kindOf(tt)!=="object")return!1;const nt=getPrototypeOf(tt);return(nt===null||nt===Object.prototype||Object.getPrototypeOf(nt)===null)&&!(Symbol.toStringTag in tt)&&!(Symbol.iterator in tt)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=tt=>isObject$1(tt)&&isFunction(tt.pipe),isFormData=tt=>{let nt;return tt&&(typeof FormData=="function"&&tt instanceof FormData||isFunction(tt.append)&&((nt=kindOf(tt))==="formdata"||nt==="object"&&isFunction(tt.toString)&&tt.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=tt=>tt.trim?tt.trim():tt.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(tt,nt,{allOwnKeys:et=!1}={}){if(tt===null||typeof tt>"u")return;let rt,ot;if(typeof tt!="object"&&(tt=[tt]),isArray(tt))for(rt=0,ot=tt.length;rt<ot;rt++)nt.call(null,tt[rt],rt,tt);else{const at=et?Object.getOwnPropertyNames(tt):Object.keys(tt),st=at.length;let ut;for(rt=0;rt<st;rt++)ut=at[rt],nt.call(null,tt[ut],ut,tt)}}function findKey(tt,nt){nt=nt.toLowerCase();const et=Object.keys(tt);let rt=et.length,ot;for(;rt-- >0;)if(ot=et[rt],nt===ot.toLowerCase())return ot;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=tt=>!isUndefined(tt)&&tt!==_global;function merge(){const{caseless:tt}=isContextDefined(this)&&this||{},nt={},et=(rt,ot)=>{const at=tt&&findKey(nt,ot)||ot;isPlainObject(nt[at])&&isPlainObject(rt)?nt[at]=merge(nt[at],rt):isPlainObject(rt)?nt[at]=merge({},rt):isArray(rt)?nt[at]=rt.slice():nt[at]=rt};for(let rt=0,ot=arguments.length;rt<ot;rt++)arguments[rt]&&forEach(arguments[rt],et);return nt}const extend=(tt,nt,et,{allOwnKeys:rt}={})=>(forEach(nt,(ot,at)=>{et&&isFunction(ot)?tt[at]=bind(ot,et):tt[at]=ot},{allOwnKeys:rt}),tt),stripBOM=tt=>(tt.charCodeAt(0)===65279&&(tt=tt.slice(1)),tt),inherits=(tt,nt,et,rt)=>{tt.prototype=Object.create(nt.prototype,rt),tt.prototype.constructor=tt,Object.defineProperty(tt,"super",{value:nt.prototype}),et&&Object.assign(tt.prototype,et)},toFlatObject=(tt,nt,et,rt)=>{let ot,at,st;const ut={};if(nt=nt||{},tt==null)return nt;do{for(ot=Object.getOwnPropertyNames(tt),at=ot.length;at-- >0;)st=ot[at],(!rt||rt(st,tt,nt))&&!ut[st]&&(nt[st]=tt[st],ut[st]=!0);tt=et!==!1&&getPrototypeOf(tt)}while(tt&&(!et||et(tt,nt))&&tt!==Object.prototype);return nt},endsWith=(tt,nt,et)=>{tt=String(tt),(et===void 0||et>tt.length)&&(et=tt.length),et-=nt.length;const rt=tt.indexOf(nt,et);return rt!==-1&&rt===et},toArray=tt=>{if(!tt)return null;if(isArray(tt))return tt;let nt=tt.length;if(!isNumber(nt))return null;const et=new Array(nt);for(;nt-- >0;)et[nt]=tt[nt];return et},isTypedArray=(tt=>nt=>tt&&nt instanceof tt)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(tt,nt)=>{const rt=(tt&&tt[Symbol.iterator]).call(tt);let ot;for(;(ot=rt.next())&&!ot.done;){const at=ot.value;nt.call(tt,at[0],at[1])}},matchAll=(tt,nt)=>{let et;const rt=[];for(;(et=tt.exec(nt))!==null;)rt.push(et);return rt},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=tt=>tt.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(et,rt,ot){return rt.toUpperCase()+ot}),hasOwnProperty=(({hasOwnProperty:tt})=>(nt,et)=>tt.call(nt,et))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(tt,nt)=>{const et=Object.getOwnPropertyDescriptors(tt),rt={};forEach(et,(ot,at)=>{let st;(st=nt(ot,at,tt))!==!1&&(rt[at]=st||ot)}),Object.defineProperties(tt,rt)},freezeMethods=tt=>{reduceDescriptors(tt,(nt,et)=>{if(isFunction(tt)&&["arguments","caller","callee"].indexOf(et)!==-1)return!1;const rt=tt[et];if(isFunction(rt)){if(nt.enumerable=!1,"writable"in nt){nt.writable=!1;return}nt.set||(nt.set=()=>{throw Error("Can not rewrite read-only method '"+et+"'")})}})},toObjectSet=(tt,nt)=>{const et={},rt=ot=>{ot.forEach(at=>{et[at]=!0})};return isArray(tt)?rt(tt):rt(String(tt).split(nt)),et},noop=()=>{},toFiniteNumber=(tt,nt)=>tt!=null&&Number.isFinite(tt=+tt)?tt:nt,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(tt=16,nt=ALPHABET.ALPHA_DIGIT)=>{let et="";const{length:rt}=nt;for(;tt--;)et+=nt[Math.random()*rt|0];return et};function isSpecCompliantForm(tt){return!!(tt&&isFunction(tt.append)&&tt[Symbol.toStringTag]==="FormData"&&tt[Symbol.iterator])}const toJSONObject=tt=>{const nt=new Array(10),et=(rt,ot)=>{if(isObject$1(rt)){if(nt.indexOf(rt)>=0)return;if(!("toJSON"in rt)){nt[ot]=rt;const at=isArray(rt)?[]:{};return forEach(rt,(st,ut)=>{const ct=et(st,ot+1);!isUndefined(ct)&&(at[ut]=ct)}),nt[ot]=void 0,at}}return rt};return et(tt,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=tt=>tt&&(isObject$1(tt)||isFunction(tt))&&isFunction(tt.then)&&isFunction(tt.catch),_setImmediate=((tt,nt)=>tt?setImmediate:nt?((et,rt)=>(_global.addEventListener("message",({source:ot,data:at})=>{ot===_global&&at===et&&rt.length&&rt.shift()()},!1),ot=>{rt.push(ot),_global.postMessage(et,"*")}))(`axios@${Math.random()}`,[]):et=>setTimeout(et))(typeof setImmediate=="function",isFunction(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject:isObject$1,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError(tt,nt,et,rt,ot){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=tt,this.name="AxiosError",nt&&(this.code=nt),et&&(this.config=et),rt&&(this.request=rt),ot&&(this.response=ot,this.status=ot.status?ot.status:null)}utils$1.inherits(AxiosError,Error,{toJSON:function tt(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(tt=>{descriptors[tt]={value:tt}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(tt,nt,et,rt,ot,at)=>{const st=Object.create(prototype$1);return utils$1.toFlatObject(tt,st,function(ct){return ct!==Error.prototype},ut=>ut!=="isAxiosError"),AxiosError.call(st,tt.message,nt,et,rt,ot),st.cause=tt,st.name=tt.name,at&&Object.assign(st,at),st};const httpAdapter=null;function isVisitable(tt){return utils$1.isPlainObject(tt)||utils$1.isArray(tt)}function removeBrackets(tt){return utils$1.endsWith(tt,"[]")?tt.slice(0,-2):tt}function renderKey(tt,nt,et){return tt?tt.concat(nt).map(function(ot,at){return ot=removeBrackets(ot),!et&&at?"["+ot+"]":ot}).join(et?".":""):nt}function isFlatArray(tt){return utils$1.isArray(tt)&&!tt.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function tt(nt){return/^is[A-Z]/.test(nt)});function toFormData(tt,nt,et){if(!utils$1.isObject(tt))throw new TypeError("target must be an object");nt=nt||new FormData,et=utils$1.toFlatObject(et,{metaTokens:!0,dots:!1,indexes:!1},!1,function(mt,Ot){return!utils$1.isUndefined(Ot[mt])});const rt=et.metaTokens,ot=et.visitor||dt,at=et.dots,st=et.indexes,ct=(et.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(nt);if(!utils$1.isFunction(ot))throw new TypeError("visitor must be a function");function pt(Mt){if(Mt===null)return"";if(utils$1.isDate(Mt))return Mt.toISOString();if(!ct&&utils$1.isBlob(Mt))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(Mt)||utils$1.isTypedArray(Mt)?ct&&typeof Blob=="function"?new Blob([Mt]):Buffer.from(Mt):Mt}function dt(Mt,mt,Ot){let zt=Mt;if(Mt&&!Ot&&typeof Mt=="object"){if(utils$1.endsWith(mt,"{}"))mt=rt?mt:mt.slice(0,-2),Mt=JSON.stringify(Mt);else if(utils$1.isArray(Mt)&&isFlatArray(Mt)||(utils$1.isFileList(Mt)||utils$1.endsWith(mt,"[]"))&&(zt=utils$1.toArray(Mt)))return mt=removeBrackets(mt),zt.forEach(function(vt,At){!(utils$1.isUndefined(vt)||vt===null)&&nt.append(st===!0?renderKey([mt],At,at):st===null?mt:mt+"[]",pt(vt))}),!1}return isVisitable(Mt)?!0:(nt.append(renderKey(Ot,mt,at),pt(Mt)),!1)}const ft=[],bt=Object.assign(predicates,{defaultVisitor:dt,convertValue:pt,isVisitable});function ht(Mt,mt){if(!utils$1.isUndefined(Mt)){if(ft.indexOf(Mt)!==-1)throw Error("Circular reference detected in "+mt.join("."));ft.push(Mt),utils$1.forEach(Mt,function(zt,yt){(!(utils$1.isUndefined(zt)||zt===null)&&ot.call(nt,zt,utils$1.isString(yt)?yt.trim():yt,mt,bt))===!0&&ht(zt,mt?mt.concat(yt):[yt])}),ft.pop()}}if(!utils$1.isObject(tt))throw new TypeError("data must be an object");return ht(tt),nt}function encode$1(tt){const nt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(tt).replace(/[!'()~]|%20|%00/g,function(rt){return nt[rt]})}function AxiosURLSearchParams(tt,nt){this._pairs=[],tt&&toFormData(tt,this,nt)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function tt(nt,et){this._pairs.push([nt,et])};prototype.toString=function tt(nt){const et=nt?function(rt){return nt.call(this,rt,encode$1)}:encode$1;return this._pairs.map(function(ot){return et(ot[0])+"="+et(ot[1])},"").join("&")};function encode(tt){return encodeURIComponent(tt).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(tt,nt,et){if(!nt)return tt;const rt=et&&et.encode||encode;utils$1.isFunction(et)&&(et={serialize:et});const ot=et&&et.serialize;let at;if(ot?at=ot(nt,et):at=utils$1.isURLSearchParams(nt)?nt.toString():new AxiosURLSearchParams(nt,et).toString(rt),at){const st=tt.indexOf("#");st!==-1&&(tt=tt.slice(0,st)),tt+=(tt.indexOf("?")===-1?"?":"&")+at}return tt}class InterceptorManager{constructor(){this.handlers=[]}use(nt,et,rt){return this.handlers.push({fulfilled:nt,rejected:et,synchronous:rt?rt.synchronous:!1,runWhen:rt?rt.runWhen:null}),this.handlers.length-1}eject(nt){this.handlers[nt]&&(this.handlers[nt]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(nt){utils$1.forEach(this.handlers,function(rt){rt!==null&&nt(rt)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(tt,nt){return toFormData(tt,new platform.classes.URLSearchParams,Object.assign({visitor:function(et,rt,ot,at){return platform.isNode&&utils$1.isBuffer(et)?(this.append(rt,et.toString("base64")),!1):at.defaultVisitor.apply(this,arguments)}},nt))}function parsePropPath(tt){return utils$1.matchAll(/\w+|\[(\w*)]/g,tt).map(nt=>nt[0]==="[]"?"":nt[1]||nt[0])}function arrayToObject(tt){const nt={},et=Object.keys(tt);let rt;const ot=et.length;let at;for(rt=0;rt<ot;rt++)at=et[rt],nt[at]=tt[at];return nt}function formDataToJSON(tt){function nt(et,rt,ot,at){let st=et[at++];if(st==="__proto__")return!0;const ut=Number.isFinite(+st),ct=at>=et.length;return st=!st&&utils$1.isArray(ot)?ot.length:st,ct?(utils$1.hasOwnProp(ot,st)?ot[st]=[ot[st],rt]:ot[st]=rt,!ut):((!ot[st]||!utils$1.isObject(ot[st]))&&(ot[st]=[]),nt(et,rt,ot[st],at)&&utils$1.isArray(ot[st])&&(ot[st]=arrayToObject(ot[st])),!ut)}if(utils$1.isFormData(tt)&&utils$1.isFunction(tt.entries)){const et={};return utils$1.forEachEntry(tt,(rt,ot)=>{nt(parsePropPath(rt),ot,et,0)}),et}return null}function stringifySafely(tt,nt,et){if(utils$1.isString(tt))try{return(nt||JSON.parse)(tt),utils$1.trim(tt)}catch(rt){if(rt.name!=="SyntaxError")throw rt}return(0,JSON.stringify)(tt)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function tt(nt,et){const rt=et.getContentType()||"",ot=rt.indexOf("application/json")>-1,at=utils$1.isObject(nt);if(at&&utils$1.isHTMLForm(nt)&&(nt=new FormData(nt)),utils$1.isFormData(nt))return ot?JSON.stringify(formDataToJSON(nt)):nt;if(utils$1.isArrayBuffer(nt)||utils$1.isBuffer(nt)||utils$1.isStream(nt)||utils$1.isFile(nt)||utils$1.isBlob(nt)||utils$1.isReadableStream(nt))return nt;if(utils$1.isArrayBufferView(nt))return nt.buffer;if(utils$1.isURLSearchParams(nt))return et.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),nt.toString();let ut;if(at){if(rt.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(nt,this.formSerializer).toString();if((ut=utils$1.isFileList(nt))||rt.indexOf("multipart/form-data")>-1){const ct=this.env&&this.env.FormData;return toFormData(ut?{"files[]":nt}:nt,ct&&new ct,this.formSerializer)}}return at||ot?(et.setContentType("application/json",!1),stringifySafely(nt)):nt}],transformResponse:[function tt(nt){const et=this.transitional||defaults.transitional,rt=et&&et.forcedJSONParsing,ot=this.responseType==="json";if(utils$1.isResponse(nt)||utils$1.isReadableStream(nt))return nt;if(nt&&utils$1.isString(nt)&&(rt&&!this.responseType||ot)){const st=!(et&&et.silentJSONParsing)&&ot;try{return JSON.parse(nt)}catch(ut){if(st)throw ut.name==="SyntaxError"?AxiosError.from(ut,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):ut}}return nt}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function tt(nt){return nt>=200&&nt<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],tt=>{defaults.headers[tt]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=tt=>{const nt={};let et,rt,ot;return tt&&tt.split(`
792
792
  `).forEach(function(st){ot=st.indexOf(":"),et=st.substring(0,ot).trim().toLowerCase(),rt=st.substring(ot+1).trim(),!(!et||nt[et]&&ignoreDuplicateOf[et])&&(et==="set-cookie"?nt[et]?nt[et].push(rt):nt[et]=[rt]:nt[et]=nt[et]?nt[et]+", "+rt:rt)}),nt},$internals=Symbol("internals");function normalizeHeader(tt){return tt&&String(tt).trim().toLowerCase()}function normalizeValue(tt){return tt===!1||tt==null?tt:utils$1.isArray(tt)?tt.map(normalizeValue):String(tt)}function parseTokens(tt){const nt=Object.create(null),et=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let rt;for(;rt=et.exec(tt);)nt[rt[1]]=rt[2];return nt}const isValidHeaderName=tt=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(tt.trim());function matchHeaderValue(tt,nt,et,rt,ot){if(utils$1.isFunction(rt))return rt.call(this,nt,et);if(ot&&(nt=et),!!utils$1.isString(nt)){if(utils$1.isString(rt))return nt.indexOf(rt)!==-1;if(utils$1.isRegExp(rt))return rt.test(nt)}}function formatHeader(tt){return tt.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(nt,et,rt)=>et.toUpperCase()+rt)}function buildAccessors(tt,nt){const et=utils$1.toCamelCase(" "+nt);["get","set","has"].forEach(rt=>{Object.defineProperty(tt,rt+et,{value:function(ot,at,st){return this[rt].call(this,nt,ot,at,st)},configurable:!0})})}class AxiosHeaders{constructor(nt){nt&&this.set(nt)}set(nt,et,rt){const ot=this;function at(ut,ct,pt){const dt=normalizeHeader(ct);if(!dt)throw new Error("header name must be a non-empty string");const ft=utils$1.findKey(ot,dt);(!ft||ot[ft]===void 0||pt===!0||pt===void 0&&ot[ft]!==!1)&&(ot[ft||ct]=normalizeValue(ut))}const st=(ut,ct)=>utils$1.forEach(ut,(pt,dt)=>at(pt,dt,ct));if(utils$1.isPlainObject(nt)||nt instanceof this.constructor)st(nt,et);else if(utils$1.isString(nt)&&(nt=nt.trim())&&!isValidHeaderName(nt))st(parseHeaders(nt),et);else if(utils$1.isHeaders(nt))for(const[ut,ct]of nt.entries())at(ct,ut,rt);else nt!=null&&at(et,nt,rt);return this}get(nt,et){if(nt=normalizeHeader(nt),nt){const rt=utils$1.findKey(this,nt);if(rt){const ot=this[rt];if(!et)return ot;if(et===!0)return parseTokens(ot);if(utils$1.isFunction(et))return et.call(this,ot,rt);if(utils$1.isRegExp(et))return et.exec(ot);throw new TypeError("parser must be boolean|regexp|function")}}}has(nt,et){if(nt=normalizeHeader(nt),nt){const rt=utils$1.findKey(this,nt);return!!(rt&&this[rt]!==void 0&&(!et||matchHeaderValue(this,this[rt],rt,et)))}return!1}delete(nt,et){const rt=this;let ot=!1;function at(st){if(st=normalizeHeader(st),st){const ut=utils$1.findKey(rt,st);ut&&(!et||matchHeaderValue(rt,rt[ut],ut,et))&&(delete rt[ut],ot=!0)}}return utils$1.isArray(nt)?nt.forEach(at):at(nt),ot}clear(nt){const et=Object.keys(this);let rt=et.length,ot=!1;for(;rt--;){const at=et[rt];(!nt||matchHeaderValue(this,this[at],at,nt,!0))&&(delete this[at],ot=!0)}return ot}normalize(nt){const et=this,rt={};return utils$1.forEach(this,(ot,at)=>{const st=utils$1.findKey(rt,at);if(st){et[st]=normalizeValue(ot),delete et[at];return}const ut=nt?formatHeader(at):String(at).trim();ut!==at&&delete et[at],et[ut]=normalizeValue(ot),rt[ut]=!0}),this}concat(...nt){return this.constructor.concat(this,...nt)}toJSON(nt){const et=Object.create(null);return utils$1.forEach(this,(rt,ot)=>{rt!=null&&rt!==!1&&(et[ot]=nt&&utils$1.isArray(rt)?rt.join(", "):rt)}),et}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([nt,et])=>nt+": "+et).join(`
793
793
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(nt){return nt instanceof this?nt:new this(nt)}static concat(nt,...et){const rt=new this(nt);return et.forEach(ot=>rt.set(ot)),rt}static accessor(nt){const rt=(this[$internals]=this[$internals]={accessors:{}}).accessors,ot=this.prototype;function at(st){const ut=normalizeHeader(st);rt[ut]||(buildAccessors(ot,st),rt[ut]=!0)}return utils$1.isArray(nt)?nt.forEach(at):at(nt),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:tt},nt)=>{let et=nt[0].toUpperCase()+nt.slice(1);return{get:()=>tt,set(rt){this[et]=rt}}});utils$1.freezeMethods(AxiosHeaders);function transformData(tt,nt){const et=this||defaults,rt=nt||et,ot=AxiosHeaders.from(rt.headers);let at=rt.data;return utils$1.forEach(tt,function(ut){at=ut.call(et,at,ot.normalize(),nt?nt.status:void 0)}),ot.normalize(),at}function isCancel(tt){return!!(tt&&tt.__CANCEL__)}function CanceledError(tt,nt,et){AxiosError.call(this,tt??"canceled",AxiosError.ERR_CANCELED,nt,et),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(tt,nt,et){const rt=et.config.validateStatus;!et.status||!rt||rt(et.status)?tt(et):nt(new AxiosError("Request failed with status code "+et.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(et.status/100)-4],et.config,et.request,et))}function parseProtocol(tt){const nt=/^([-+\w]{1,25})(:?\/\/|:)/.exec(tt);return nt&&nt[1]||""}function speedometer(tt,nt){tt=tt||10;const et=new Array(tt),rt=new Array(tt);let ot=0,at=0,st;return nt=nt!==void 0?nt:1e3,function(ct){const pt=Date.now(),dt=rt[at];st||(st=pt),et[ot]=ct,rt[ot]=pt;let ft=at,bt=0;for(;ft!==ot;)bt+=et[ft++],ft=ft%tt;if(ot=(ot+1)%tt,ot===at&&(at=(at+1)%tt),pt-st<nt)return;const ht=dt&&pt-dt;return ht?Math.round(bt*1e3/ht):void 0}}function throttle(tt,nt){let et=0,rt=1e3/nt,ot,at;const st=(pt,dt=Date.now())=>{et=dt,ot=null,at&&(clearTimeout(at),at=null),tt.apply(null,pt)};return[(...pt)=>{const dt=Date.now(),ft=dt-et;ft>=rt?st(pt,dt):(ot=pt,at||(at=setTimeout(()=>{at=null,st(ot)},rt-ft)))},()=>ot&&st(ot)]}const progressEventReducer=(tt,nt,et=3)=>{let rt=0;const ot=speedometer(50,250);return throttle(at=>{const st=at.loaded,ut=at.lengthComputable?at.total:void 0,ct=st-rt,pt=ot(ct),dt=st<=ut;rt=st;const ft={loaded:st,total:ut,progress:ut?st/ut:void 0,bytes:ct,rate:pt||void 0,estimated:pt&&ut&&dt?(ut-st)/pt:void 0,event:at,lengthComputable:ut!=null,[nt?"download":"upload"]:!0};tt(ft)},et)},progressEventDecorator=(tt,nt)=>{const et=tt!=null;return[rt=>nt[0]({lengthComputable:et,total:tt,loaded:rt}),nt[1]]},asyncDecorator=tt=>(...nt)=>utils$1.asap(()=>tt(...nt)),isURLSameOrigin=platform.hasStandardBrowserEnv?((tt,nt)=>et=>(et=new URL(et,platform.origin),tt.protocol===et.protocol&&tt.host===et.host&&(nt||tt.port===et.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(tt,nt,et,rt,ot,at){const st=[tt+"="+encodeURIComponent(nt)];utils$1.isNumber(et)&&st.push("expires="+new Date(et).toGMTString()),utils$1.isString(rt)&&st.push("path="+rt),utils$1.isString(ot)&&st.push("domain="+ot),at===!0&&st.push("secure"),document.cookie=st.join("; ")},read(tt){const nt=document.cookie.match(new RegExp("(^|;\\s*)("+tt+")=([^;]*)"));return nt?decodeURIComponent(nt[3]):null},remove(tt){this.write(tt,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(tt){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(tt)}function combineURLs(tt,nt){return nt?tt.replace(/\/?\/$/,"")+"/"+nt.replace(/^\/+/,""):tt}function buildFullPath(tt,nt){return tt&&!isAbsoluteURL(nt)?combineURLs(tt,nt):nt}const headersToObject=tt=>tt instanceof AxiosHeaders?{...tt}:tt;function mergeConfig(tt,nt){nt=nt||{};const et={};function rt(pt,dt,ft,bt){return utils$1.isPlainObject(pt)&&utils$1.isPlainObject(dt)?utils$1.merge.call({caseless:bt},pt,dt):utils$1.isPlainObject(dt)?utils$1.merge({},dt):utils$1.isArray(dt)?dt.slice():dt}function ot(pt,dt,ft,bt){if(utils$1.isUndefined(dt)){if(!utils$1.isUndefined(pt))return rt(void 0,pt,ft,bt)}else return rt(pt,dt,ft,bt)}function at(pt,dt){if(!utils$1.isUndefined(dt))return rt(void 0,dt)}function st(pt,dt){if(utils$1.isUndefined(dt)){if(!utils$1.isUndefined(pt))return rt(void 0,pt)}else return rt(void 0,dt)}function ut(pt,dt,ft){if(ft in nt)return rt(pt,dt);if(ft in tt)return rt(void 0,pt)}const ct={url:at,method:at,data:at,baseURL:st,transformRequest:st,transformResponse:st,paramsSerializer:st,timeout:st,timeoutMessage:st,withCredentials:st,withXSRFToken:st,adapter:st,responseType:st,xsrfCookieName:st,xsrfHeaderName:st,onUploadProgress:st,onDownloadProgress:st,decompress:st,maxContentLength:st,maxBodyLength:st,beforeRedirect:st,transport:st,httpAgent:st,httpsAgent:st,cancelToken:st,socketPath:st,responseEncoding:st,validateStatus:ut,headers:(pt,dt,ft)=>ot(headersToObject(pt),headersToObject(dt),ft,!0)};return utils$1.forEach(Object.keys(Object.assign({},tt,nt)),function(dt){const ft=ct[dt]||ot,bt=ft(tt[dt],nt[dt],dt);utils$1.isUndefined(bt)&&ft!==ut||(et[dt]=bt)}),et}const resolveConfig=tt=>{const nt=mergeConfig({},tt);let{data:et,withXSRFToken:rt,xsrfHeaderName:ot,xsrfCookieName:at,headers:st,auth:ut}=nt;nt.headers=st=AxiosHeaders.from(st),nt.url=buildURL(buildFullPath(nt.baseURL,nt.url),tt.params,tt.paramsSerializer),ut&&st.set("Authorization","Basic "+btoa((ut.username||"")+":"+(ut.password?unescape(encodeURIComponent(ut.password)):"")));let ct;if(utils$1.isFormData(et)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)st.setContentType(void 0);else if((ct=st.getContentType())!==!1){const[pt,...dt]=ct?ct.split(";").map(ft=>ft.trim()).filter(Boolean):[];st.setContentType([pt||"multipart/form-data",...dt].join("; "))}}if(platform.hasStandardBrowserEnv&&(rt&&utils$1.isFunction(rt)&&(rt=rt(nt)),rt||rt!==!1&&isURLSameOrigin(nt.url))){const pt=ot&&at&&cookies.read(at);pt&&st.set(ot,pt)}return nt},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(tt){return new Promise(function(et,rt){const ot=resolveConfig(tt);let at=ot.data;const st=AxiosHeaders.from(ot.headers).normalize();let{responseType:ut,onUploadProgress:ct,onDownloadProgress:pt}=ot,dt,ft,bt,ht,Mt;function mt(){ht&&ht(),Mt&&Mt(),ot.cancelToken&&ot.cancelToken.unsubscribe(dt),ot.signal&&ot.signal.removeEventListener("abort",dt)}let Ot=new XMLHttpRequest;Ot.open(ot.method.toUpperCase(),ot.url,!0),Ot.timeout=ot.timeout;function zt(){if(!Ot)return;const vt=AxiosHeaders.from("getAllResponseHeaders"in Ot&&Ot.getAllResponseHeaders()),St={data:!ut||ut==="text"||ut==="json"?Ot.responseText:Ot.response,status:Ot.status,statusText:Ot.statusText,headers:vt,config:tt,request:Ot};settle(function(Tt){et(Tt),mt()},function(Tt){rt(Tt),mt()},St),Ot=null}"onloadend"in Ot?Ot.onloadend=zt:Ot.onreadystatechange=function(){!Ot||Ot.readyState!==4||Ot.status===0&&!(Ot.responseURL&&Ot.responseURL.indexOf("file:")===0)||setTimeout(zt)},Ot.onabort=function(){Ot&&(rt(new AxiosError("Request aborted",AxiosError.ECONNABORTED,tt,Ot)),Ot=null)},Ot.onerror=function(){rt(new AxiosError("Network Error",AxiosError.ERR_NETWORK,tt,Ot)),Ot=null},Ot.ontimeout=function(){let At=ot.timeout?"timeout of "+ot.timeout+"ms exceeded":"timeout exceeded";const St=ot.transitional||transitionalDefaults;ot.timeoutErrorMessage&&(At=ot.timeoutErrorMessage),rt(new AxiosError(At,St.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,tt,Ot)),Ot=null},at===void 0&&st.setContentType(null),"setRequestHeader"in Ot&&utils$1.forEach(st.toJSON(),function(At,St){Ot.setRequestHeader(St,At)}),utils$1.isUndefined(ot.withCredentials)||(Ot.withCredentials=!!ot.withCredentials),ut&&ut!=="json"&&(Ot.responseType=ot.responseType),pt&&([bt,Mt]=progressEventReducer(pt,!0),Ot.addEventListener("progress",bt)),ct&&Ot.upload&&([ft,ht]=progressEventReducer(ct),Ot.upload.addEventListener("progress",ft),Ot.upload.addEventListener("loadend",ht)),(ot.cancelToken||ot.signal)&&(dt=vt=>{Ot&&(rt(!vt||vt.type?new CanceledError(null,tt,Ot):vt),Ot.abort(),Ot=null)},ot.cancelToken&&ot.cancelToken.subscribe(dt),ot.signal&&(ot.signal.aborted?dt():ot.signal.addEventListener("abort",dt)));const yt=parseProtocol(ot.url);if(yt&&platform.protocols.indexOf(yt)===-1){rt(new AxiosError("Unsupported protocol "+yt+":",AxiosError.ERR_BAD_REQUEST,tt));return}Ot.send(at||null)})},composeSignals=(tt,nt)=>{const{length:et}=tt=tt?tt.filter(Boolean):[];if(nt||et){let rt=new AbortController,ot;const at=function(pt){if(!ot){ot=!0,ut();const dt=pt instanceof Error?pt:this.reason;rt.abort(dt instanceof AxiosError?dt:new CanceledError(dt instanceof Error?dt.message:dt))}};let st=nt&&setTimeout(()=>{st=null,at(new AxiosError(`timeout ${nt} of ms exceeded`,AxiosError.ETIMEDOUT))},nt);const ut=()=>{tt&&(st&&clearTimeout(st),st=null,tt.forEach(pt=>{pt.unsubscribe?pt.unsubscribe(at):pt.removeEventListener("abort",at)}),tt=null)};tt.forEach(pt=>pt.addEventListener("abort",at));const{signal:ct}=rt;return ct.unsubscribe=()=>utils$1.asap(ut),ct}},streamChunk=function*(tt,nt){let et=tt.byteLength;if(et<nt){yield tt;return}let rt=0,ot;for(;rt<et;)ot=rt+nt,yield tt.slice(rt,ot),rt=ot},readBytes=async function*(tt,nt){for await(const et of readStream(tt))yield*streamChunk(et,nt)},readStream=async function*(tt){if(tt[Symbol.asyncIterator]){yield*tt;return}const nt=tt.getReader();try{for(;;){const{done:et,value:rt}=await nt.read();if(et)break;yield rt}}finally{await nt.cancel()}},trackStream=(tt,nt,et,rt)=>{const ot=readBytes(tt,nt);let at=0,st,ut=ct=>{st||(st=!0,rt&&rt(ct))};return new ReadableStream({async pull(ct){try{const{done:pt,value:dt}=await ot.next();if(pt){ut(),ct.close();return}let ft=dt.byteLength;if(et){let bt=at+=ft;et(bt)}ct.enqueue(new Uint8Array(dt))}catch(pt){throw ut(pt),pt}},cancel(ct){return ut(ct),ot.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(tt=>nt=>tt.encode(nt))(new TextEncoder):async tt=>new Uint8Array(await new Response(tt).arrayBuffer())),test=(tt,...nt)=>{try{return!!tt(...nt)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let tt=!1;const nt=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return tt=!0,"half"}}).headers.has("Content-Type");return tt&&!nt}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$1.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(tt=>tt.body)};isFetchSupported&&(tt=>{["text","arrayBuffer","blob","formData","stream"].forEach(nt=>{!resolvers[nt]&&(resolvers[nt]=utils$1.isFunction(tt[nt])?et=>et[nt]():(et,rt)=>{throw new AxiosError(`Response type '${nt}' is not supported`,AxiosError.ERR_NOT_SUPPORT,rt)})})})(new Response);const getBodyLength=async tt=>{if(tt==null)return 0;if(utils$1.isBlob(tt))return tt.size;if(utils$1.isSpecCompliantForm(tt))return(await new Request(platform.origin,{method:"POST",body:tt}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(tt)||utils$1.isArrayBuffer(tt))return tt.byteLength;if(utils$1.isURLSearchParams(tt)&&(tt=tt+""),utils$1.isString(tt))return(await encodeText(tt)).byteLength},resolveBodyLength=async(tt,nt)=>{const et=utils$1.toFiniteNumber(tt.getContentLength());return et??getBodyLength(nt)},fetchAdapter=isFetchSupported&&(async tt=>{let{url:nt,method:et,data:rt,signal:ot,cancelToken:at,timeout:st,onDownloadProgress:ut,onUploadProgress:ct,responseType:pt,headers:dt,withCredentials:ft="same-origin",fetchOptions:bt}=resolveConfig(tt);pt=pt?(pt+"").toLowerCase():"text";let ht=composeSignals([ot,at&&at.toAbortSignal()],st),Mt;const mt=ht&&ht.unsubscribe&&(()=>{ht.unsubscribe()});let Ot;try{if(ct&&supportsRequestStream&&et!=="get"&&et!=="head"&&(Ot=await resolveBodyLength(dt,rt))!==0){let St=new Request(nt,{method:"POST",body:rt,duplex:"half"}),Et;if(utils$1.isFormData(rt)&&(Et=St.headers.get("content-type"))&&dt.setContentType(Et),St.body){const[Tt,Rt]=progressEventDecorator(Ot,progressEventReducer(asyncDecorator(ct)));rt=trackStream(St.body,DEFAULT_CHUNK_SIZE,Tt,Rt)}}utils$1.isString(ft)||(ft=ft?"include":"omit");const zt="credentials"in Request.prototype;Mt=new Request(nt,{...bt,signal:ht,method:et.toUpperCase(),headers:dt.normalize().toJSON(),body:rt,duplex:"half",credentials:zt?ft:void 0});let yt=await fetch(Mt);const vt=supportsResponseStream&&(pt==="stream"||pt==="response");if(supportsResponseStream&&(ut||vt&&mt)){const St={};["status","statusText","headers"].forEach(Ct=>{St[Ct]=yt[Ct]});const Et=utils$1.toFiniteNumber(yt.headers.get("content-length")),[Tt,Rt]=ut&&progressEventDecorator(Et,progressEventReducer(asyncDecorator(ut),!0))||[];yt=new Response(trackStream(yt.body,DEFAULT_CHUNK_SIZE,Tt,()=>{Rt&&Rt(),mt&&mt()}),St)}pt=pt||"text";let At=await resolvers[utils$1.findKey(resolvers,pt)||"text"](yt,tt);return!vt&&mt&&mt(),await new Promise((St,Et)=>{settle(St,Et,{data:At,headers:AxiosHeaders.from(yt.headers),status:yt.status,statusText:yt.statusText,config:tt,request:Mt})})}catch(zt){throw mt&&mt(),zt&&zt.name==="TypeError"&&/fetch/i.test(zt.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,tt,Mt),{cause:zt.cause||zt}):AxiosError.from(zt,zt&&zt.code,tt,Mt)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(tt,nt)=>{if(tt){try{Object.defineProperty(tt,"name",{value:nt})}catch{}Object.defineProperty(tt,"adapterName",{value:nt})}});const renderReason=tt=>`- ${tt}`,isResolvedHandle=tt=>utils$1.isFunction(tt)||tt===null||tt===!1,adapters={getAdapter:tt=>{tt=utils$1.isArray(tt)?tt:[tt];const{length:nt}=tt;let et,rt;const ot={};for(let at=0;at<nt;at++){et=tt[at];let st;if(rt=et,!isResolvedHandle(et)&&(rt=knownAdapters[(st=String(et)).toLowerCase()],rt===void 0))throw new AxiosError(`Unknown adapter '${st}'`);if(rt)break;ot[st||"#"+at]=rt}if(!rt){const at=Object.entries(ot).map(([ut,ct])=>`adapter ${ut} `+(ct===!1?"is not supported by the environment":"is not available in the build"));let st=nt?at.length>1?`since :
794
794
  `+at.map(renderReason).join(`
795
795
  `):" "+renderReason(at[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+st,"ERR_NOT_SUPPORT")}return rt},adapters:knownAdapters};function throwIfCancellationRequested(tt){if(tt.cancelToken&&tt.cancelToken.throwIfRequested(),tt.signal&&tt.signal.aborted)throw new CanceledError(null,tt)}function dispatchRequest(tt){return throwIfCancellationRequested(tt),tt.headers=AxiosHeaders.from(tt.headers),tt.data=transformData.call(tt,tt.transformRequest),["post","put","patch"].indexOf(tt.method)!==-1&&tt.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(tt.adapter||defaults.adapter)(tt).then(function(rt){return throwIfCancellationRequested(tt),rt.data=transformData.call(tt,tt.transformResponse,rt),rt.headers=AxiosHeaders.from(rt.headers),rt},function(rt){return isCancel(rt)||(throwIfCancellationRequested(tt),rt&&rt.response&&(rt.response.data=transformData.call(tt,tt.transformResponse,rt.response),rt.response.headers=AxiosHeaders.from(rt.response.headers))),Promise.reject(rt)})}const VERSION="1.7.9",validators$1={};["object","boolean","number","function","string","symbol"].forEach((tt,nt)=>{validators$1[tt]=function(rt){return typeof rt===tt||"a"+(nt<1?"n ":" ")+tt}});const deprecatedWarnings={};validators$1.transitional=function tt(nt,et,rt){function ot(at,st){return"[Axios v"+VERSION+"] Transitional option '"+at+"'"+st+(rt?". "+rt:"")}return(at,st,ut)=>{if(nt===!1)throw new AxiosError(ot(st," has been removed"+(et?" in "+et:"")),AxiosError.ERR_DEPRECATED);return et&&!deprecatedWarnings[st]&&(deprecatedWarnings[st]=!0,console.warn(ot(st," has been deprecated since v"+et+" and will be removed in the near future"))),nt?nt(at,st,ut):!0}};validators$1.spelling=function tt(nt){return(et,rt)=>(console.warn(`${rt} is likely a misspelling of ${nt}`),!0)};function assertOptions(tt,nt,et){if(typeof tt!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const rt=Object.keys(tt);let ot=rt.length;for(;ot-- >0;){const at=rt[ot],st=nt[at];if(st){const ut=tt[at],ct=ut===void 0||st(ut,at,tt);if(ct!==!0)throw new AxiosError("option "+at+" must be "+ct,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(et!==!0)throw new AxiosError("Unknown option "+at,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(nt){this.defaults=nt,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(nt,et){try{return await this._request(nt,et)}catch(rt){if(rt instanceof Error){let ot={};Error.captureStackTrace?Error.captureStackTrace(ot):ot=new Error;const at=ot.stack?ot.stack.replace(/^.+\n/,""):"";try{rt.stack?at&&!String(rt.stack).endsWith(at.replace(/^.+\n.+\n/,""))&&(rt.stack+=`
796
- `+at):rt.stack=at}catch{}}throw rt}}_request(nt,et){typeof nt=="string"?(et=et||{},et.url=nt):et=nt||{},et=mergeConfig(this.defaults,et);const{transitional:rt,paramsSerializer:ot,headers:at}=et;rt!==void 0&&validator.assertOptions(rt,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),ot!=null&&(utils$1.isFunction(ot)?et.paramsSerializer={serialize:ot}:validator.assertOptions(ot,{encode:validators.function,serialize:validators.function},!0)),validator.assertOptions(et,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),et.method=(et.method||this.defaults.method||"get").toLowerCase();let st=at&&utils$1.merge(at.common,at[et.method]);at&&utils$1.forEach(["delete","get","head","post","put","patch","common"],Mt=>{delete at[Mt]}),et.headers=AxiosHeaders.concat(st,at);const ut=[];let ct=!0;this.interceptors.request.forEach(function(mt){typeof mt.runWhen=="function"&&mt.runWhen(et)===!1||(ct=ct&&mt.synchronous,ut.unshift(mt.fulfilled,mt.rejected))});const pt=[];this.interceptors.response.forEach(function(mt){pt.push(mt.fulfilled,mt.rejected)});let dt,ft=0,bt;if(!ct){const Mt=[dispatchRequest.bind(this),void 0];for(Mt.unshift.apply(Mt,ut),Mt.push.apply(Mt,pt),bt=Mt.length,dt=Promise.resolve(et);ft<bt;)dt=dt.then(Mt[ft++],Mt[ft++]);return dt}bt=ut.length;let ht=et;for(ft=0;ft<bt;){const Mt=ut[ft++],mt=ut[ft++];try{ht=Mt(ht)}catch(Ot){mt.call(this,Ot);break}}try{dt=dispatchRequest.call(this,ht)}catch(Mt){return Promise.reject(Mt)}for(ft=0,bt=pt.length;ft<bt;)dt=dt.then(pt[ft++],pt[ft++]);return dt}getUri(nt){nt=mergeConfig(this.defaults,nt);const et=buildFullPath(nt.baseURL,nt.url);return buildURL(et,nt.params,nt.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function tt(nt){Axios.prototype[nt]=function(et,rt){return this.request(mergeConfig(rt||{},{method:nt,url:et,data:(rt||{}).data}))}});utils$1.forEach(["post","put","patch"],function tt(nt){function et(rt){return function(at,st,ut){return this.request(mergeConfig(ut||{},{method:nt,headers:rt?{"Content-Type":"multipart/form-data"}:{},url:at,data:st}))}}Axios.prototype[nt]=et(),Axios.prototype[nt+"Form"]=et(!0)});class CancelToken{constructor(nt){if(typeof nt!="function")throw new TypeError("executor must be a function.");let et;this.promise=new Promise(function(at){et=at});const rt=this;this.promise.then(ot=>{if(!rt._listeners)return;let at=rt._listeners.length;for(;at-- >0;)rt._listeners[at](ot);rt._listeners=null}),this.promise.then=ot=>{let at;const st=new Promise(ut=>{rt.subscribe(ut),at=ut}).then(ot);return st.cancel=function(){rt.unsubscribe(at)},st},nt(function(at,st,ut){rt.reason||(rt.reason=new CanceledError(at,st,ut),et(rt.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(nt){if(this.reason){nt(this.reason);return}this._listeners?this._listeners.push(nt):this._listeners=[nt]}unsubscribe(nt){if(!this._listeners)return;const et=this._listeners.indexOf(nt);et!==-1&&this._listeners.splice(et,1)}toAbortSignal(){const nt=new AbortController,et=rt=>{nt.abort(rt)};return this.subscribe(et),nt.signal.unsubscribe=()=>this.unsubscribe(et),nt.signal}static source(){let nt;return{token:new CancelToken(function(ot){nt=ot}),cancel:nt}}}function spread(tt){return function(et){return tt.apply(null,et)}}function isAxiosError(tt){return utils$1.isObject(tt)&&tt.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([tt,nt])=>{HttpStatusCode[nt]=tt});function createInstance(tt){const nt=new Axios(tt),et=bind(Axios.prototype.request,nt);return utils$1.extend(et,Axios.prototype,nt,{allOwnKeys:!0}),utils$1.extend(et,nt,null,{allOwnKeys:!0}),et.create=function(ot){return createInstance(mergeConfig(tt,ot))},et}const axios=createInstance(defaults);axios.Axios=Axios;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function tt(nt){return Promise.all(nt)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders;axios.formToJSON=tt=>formDataToJSON(utils$1.isHTMLForm(tt)?new FormData(tt):tt);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode;axios.default=axios;const LOG="WebsocketConnection",SERVER_PING_PATH="_stcore/health",HOST_CONFIG_PATH="_stcore/host-config",WEBSOCKET_STREAM_PATH="_stcore/stream",PING_MINIMUM_RETRY_PERIOD_MS=500,PING_MAXIMUM_RETRY_PERIOD_MS=1e3*60,PING_TIMEOUT_MS=15*1e3,WEBSOCKET_TIMEOUT_MS=15*1e3,CORS_ERROR_MESSAGE_DOCUMENTATION_LINK="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS";class WebsocketConnection{constructor(nt){this.uriIndex=0,this.lastDispatchedMessageIndex=-1,this.nextMessageIndex=0,this.messageQueue={},this.state=ConnectionState.INITIAL,this.args=nt,this.cache=new ForwardMsgCache(nt.endpoints),this.stepFsm("INITIALIZED")}getBaseUriParts(){if(this.state===ConnectionState.CONNECTED)return this.args.baseUriPartsList[this.uriIndex]}disconnect(){this.setFsmState(ConnectionState.DISCONNECTED_FOREVER)}setFsmState(nt,et){switch(this.state=nt,this.state){case ConnectionState.PINGING_SERVER:this.pingServer();break}switch(this.args.onConnectionStateChange(nt,et),this.state){case ConnectionState.CONNECTING:this.connectToWebSocket();break;case ConnectionState.DISCONNECTED_FOREVER:this.closeConnection();break}}stepFsm(nt,et){if(logMessage(LOG,`State: ${this.state}; Event: ${nt}`),nt==="FATAL_ERROR"&&this.state!==ConnectionState.DISCONNECTED_FOREVER){this.setFsmState(ConnectionState.DISCONNECTED_FOREVER,et);return}switch(this.state){case ConnectionState.INITIAL:if(nt==="INITIALIZED"){this.setFsmState(ConnectionState.PINGING_SERVER);return}break;case ConnectionState.CONNECTING:if(nt==="CONNECTION_SUCCEEDED"){this.setFsmState(ConnectionState.CONNECTED);return}if(nt==="CONNECTION_TIMED_OUT"||nt==="CONNECTION_ERROR"||nt==="CONNECTION_CLOSED"){this.setFsmState(ConnectionState.PINGING_SERVER);return}break;case ConnectionState.CONNECTED:if(nt==="CONNECTION_CLOSED"||nt==="CONNECTION_ERROR"){this.setFsmState(ConnectionState.PINGING_SERVER);return}break;case ConnectionState.PINGING_SERVER:if(nt==="SERVER_PING_SUCCEEDED"){this.setFsmState(ConnectionState.CONNECTING);return}break;case ConnectionState.DISCONNECTED_FOREVER:logWarning(LOG,`Discarding ${nt} while in ${ConnectionState.DISCONNECTED_FOREVER}`);return}throw new Error(`Unsupported state transition.
796
+ `+at):rt.stack=at}catch{}}throw rt}}_request(nt,et){typeof nt=="string"?(et=et||{},et.url=nt):et=nt||{},et=mergeConfig(this.defaults,et);const{transitional:rt,paramsSerializer:ot,headers:at}=et;rt!==void 0&&validator.assertOptions(rt,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),ot!=null&&(utils$1.isFunction(ot)?et.paramsSerializer={serialize:ot}:validator.assertOptions(ot,{encode:validators.function,serialize:validators.function},!0)),validator.assertOptions(et,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),et.method=(et.method||this.defaults.method||"get").toLowerCase();let st=at&&utils$1.merge(at.common,at[et.method]);at&&utils$1.forEach(["delete","get","head","post","put","patch","common"],Mt=>{delete at[Mt]}),et.headers=AxiosHeaders.concat(st,at);const ut=[];let ct=!0;this.interceptors.request.forEach(function(mt){typeof mt.runWhen=="function"&&mt.runWhen(et)===!1||(ct=ct&&mt.synchronous,ut.unshift(mt.fulfilled,mt.rejected))});const pt=[];this.interceptors.response.forEach(function(mt){pt.push(mt.fulfilled,mt.rejected)});let dt,ft=0,bt;if(!ct){const Mt=[dispatchRequest.bind(this),void 0];for(Mt.unshift.apply(Mt,ut),Mt.push.apply(Mt,pt),bt=Mt.length,dt=Promise.resolve(et);ft<bt;)dt=dt.then(Mt[ft++],Mt[ft++]);return dt}bt=ut.length;let ht=et;for(ft=0;ft<bt;){const Mt=ut[ft++],mt=ut[ft++];try{ht=Mt(ht)}catch(Ot){mt.call(this,Ot);break}}try{dt=dispatchRequest.call(this,ht)}catch(Mt){return Promise.reject(Mt)}for(ft=0,bt=pt.length;ft<bt;)dt=dt.then(pt[ft++],pt[ft++]);return dt}getUri(nt){nt=mergeConfig(this.defaults,nt);const et=buildFullPath(nt.baseURL,nt.url);return buildURL(et,nt.params,nt.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function tt(nt){Axios.prototype[nt]=function(et,rt){return this.request(mergeConfig(rt||{},{method:nt,url:et,data:(rt||{}).data}))}});utils$1.forEach(["post","put","patch"],function tt(nt){function et(rt){return function(at,st,ut){return this.request(mergeConfig(ut||{},{method:nt,headers:rt?{"Content-Type":"multipart/form-data"}:{},url:at,data:st}))}}Axios.prototype[nt]=et(),Axios.prototype[nt+"Form"]=et(!0)});class CancelToken{constructor(nt){if(typeof nt!="function")throw new TypeError("executor must be a function.");let et;this.promise=new Promise(function(at){et=at});const rt=this;this.promise.then(ot=>{if(!rt._listeners)return;let at=rt._listeners.length;for(;at-- >0;)rt._listeners[at](ot);rt._listeners=null}),this.promise.then=ot=>{let at;const st=new Promise(ut=>{rt.subscribe(ut),at=ut}).then(ot);return st.cancel=function(){rt.unsubscribe(at)},st},nt(function(at,st,ut){rt.reason||(rt.reason=new CanceledError(at,st,ut),et(rt.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(nt){if(this.reason){nt(this.reason);return}this._listeners?this._listeners.push(nt):this._listeners=[nt]}unsubscribe(nt){if(!this._listeners)return;const et=this._listeners.indexOf(nt);et!==-1&&this._listeners.splice(et,1)}toAbortSignal(){const nt=new AbortController,et=rt=>{nt.abort(rt)};return this.subscribe(et),nt.signal.unsubscribe=()=>this.unsubscribe(et),nt.signal}static source(){let nt;return{token:new CancelToken(function(ot){nt=ot}),cancel:nt}}}function spread(tt){return function(et){return tt.apply(null,et)}}function isAxiosError(tt){return utils$1.isObject(tt)&&tt.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([tt,nt])=>{HttpStatusCode[nt]=tt});function createInstance(tt){const nt=new Axios(tt),et=bind(Axios.prototype.request,nt);return utils$1.extend(et,Axios.prototype,nt,{allOwnKeys:!0}),utils$1.extend(et,nt,null,{allOwnKeys:!0}),et.create=function(ot){return createInstance(mergeConfig(tt,ot))},et}const axios=createInstance(defaults);axios.Axios=Axios;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function tt(nt){return Promise.all(nt)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders;axios.formToJSON=tt=>formDataToJSON(utils$1.isHTMLForm(tt)?new FormData(tt):tt);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode;axios.default=axios;function doInitPings(tt,nt,et,rt,ot){const at=new Resolver;let st=0,ut=0,ct=()=>{};const pt=()=>{ut++,ut>=tt.length&&(ut=0),ct()},dt=ht=>{const Mt=Math.random()*.4-.2,mt=st===1?nt:nt*2**(st-1)*(1+Mt),Ot=Math.min(et,mt);rt(st,ht,Ot),window.setTimeout(pt,Ot)},ft=()=>{const ht=tt[ut];new URL(buildHttpUri(ht,"")).hostname==="localhost"?dt(jsx$1(StreamlitMarkdown$1,{source:"\nIs Streamlit still running? If you accidentally stopped Streamlit, just restart it in your terminal:\n\n```bash\nstreamlit run yourscript.py\n```\n ",allowHTML:!1})):dt("Connection failed with status 0.")},bt=()=>{dt(jsxs(reactExports.Fragment,{children:[jsx$1("p",{children:"Cannot connect to Streamlit (HTTP status: 403)."}),jsxs("p",{children:["If you are trying to access a Streamlit app running on another server, this could be due to the app's"," ",jsx$1("a",{href:CORS_ERROR_MESSAGE_DOCUMENTATION_LINK,children:"CORS"})," settings."]})]}))};return ct=()=>{const ht=tt[ut],Mt=buildHttpUri(ht,SERVER_PING_PATH),mt=buildHttpUri(ht,HOST_CONFIG_PATH);ut===0&&st++,Promise.all([axios.get(Mt,{timeout:PING_TIMEOUT_MS}),axios.get(mt,{timeout:PING_TIMEOUT_MS})]).then(([Ot,zt])=>{ot(zt.data),at.resolve(ut)}).catch(Ot=>{if(Ot.code==="ECONNABORTED")return dt("Connection timed out.");if(Ot.response){const{data:zt,status:yt}=Ot.response;return yt===0?ft():yt===403?bt():dt(`Connection failed with status ${yt}, and response "${zt}".`)}return Ot.request?ft():dt(Ot.message)})},ct(),at.promise}class WebsocketConnection{constructor(nt){this.uriIndex=0,this.lastDispatchedMessageIndex=-1,this.nextMessageIndex=0,this.messageQueue={},this.state=ConnectionState.INITIAL,this.args=nt,this.cache=new ForwardMsgCache(nt.endpoints),this.stepFsm("INITIALIZED")}getBaseUriParts(){if(this.state===ConnectionState.CONNECTED)return this.args.baseUriPartsList[this.uriIndex]}disconnect(){this.setFsmState(ConnectionState.DISCONNECTED_FOREVER)}setFsmState(nt,et){switch(this.state=nt,this.state){case ConnectionState.PINGING_SERVER:this.pingServer();break}switch(this.args.onConnectionStateChange(nt,et),this.state){case ConnectionState.CONNECTING:this.connectToWebSocket();break;case ConnectionState.DISCONNECTED_FOREVER:this.closeConnection();break}}stepFsm(nt,et){if(logMessage(LOG,`State: ${this.state}; Event: ${nt}`),nt==="FATAL_ERROR"&&this.state!==ConnectionState.DISCONNECTED_FOREVER){this.setFsmState(ConnectionState.DISCONNECTED_FOREVER,et);return}switch(this.state){case ConnectionState.INITIAL:if(nt==="INITIALIZED"){this.setFsmState(ConnectionState.PINGING_SERVER);return}break;case ConnectionState.CONNECTING:if(nt==="CONNECTION_SUCCEEDED"){this.setFsmState(ConnectionState.CONNECTED);return}if(nt==="CONNECTION_TIMED_OUT"||nt==="CONNECTION_ERROR"||nt==="CONNECTION_CLOSED"){this.setFsmState(ConnectionState.PINGING_SERVER);return}break;case ConnectionState.CONNECTED:if(nt==="CONNECTION_CLOSED"||nt==="CONNECTION_ERROR"){this.setFsmState(ConnectionState.PINGING_SERVER);return}break;case ConnectionState.PINGING_SERVER:if(nt==="SERVER_PING_SUCCEEDED"){this.setFsmState(ConnectionState.CONNECTING);return}break;case ConnectionState.DISCONNECTED_FOREVER:logWarning(LOG,`Discarding ${nt} while in ${ConnectionState.DISCONNECTED_FOREVER}`);return}throw new Error(`Unsupported state transition.
797
797
  State: ${this.state}
798
- Event: ${nt}`)}async pingServer(){this.uriIndex=await doInitPings(this.args.baseUriPartsList,PING_MINIMUM_RETRY_PERIOD_MS,PING_MAXIMUM_RETRY_PERIOD_MS,this.args.onRetry,this.args.onHostConfigResp),this.stepFsm("SERVER_PING_SUCCEEDED")}async getSessionTokens(){var rt,ot;const nt=await this.args.claimHostAuthToken(),et=getCookie("_streamlit_xsrf");return this.args.resetHostAuthToken(),[nt??et??"PLACEHOLDER_AUTH_TOKEN",...(rt=this.args.sessionInfo.last)!=null&&rt.sessionId?[(ot=this.args.sessionInfo.last)==null?void 0:ot.sessionId]:[]]}async connectToWebSocket(){const nt=buildWsUri(this.args.baseUriPartsList[this.uriIndex],WEBSOCKET_STREAM_PATH);if(notNullOrUndefined(this.websocket))throw new Error("Websocket already exists");const et=await this.getSessionTokens();this.websocket=new WebSocket(nt,["streamlit",...et]),this.websocket.binaryType="arraybuffer",this.setConnectionTimeout(nt);const rt=this.websocket,ot=()=>rt===this.websocket;this.websocket.addEventListener("message",at=>{ot()&&this.handleMessage(at.data).catch(st=>{const ut=`Failed to process a Websocket message (${st})`;logError(LOG,ut),this.stepFsm("FATAL_ERROR",ut)})}),this.websocket.addEventListener("open",()=>{ot()&&this.stepFsm("CONNECTION_SUCCEEDED")}),this.websocket.addEventListener("close",()=>{ot()&&(this.closeConnection(),this.stepFsm("CONNECTION_CLOSED"))}),this.websocket.addEventListener("error",()=>{ot()&&(logError(LOG,"WebSocket onerror"),this.closeConnection(),this.stepFsm("CONNECTION_ERROR"))})}setConnectionTimeout(nt){if(notNullOrUndefined(this.wsConnectionTimeoutId))throw new Error("WS timeout is already set");const et=this.websocket;this.wsConnectionTimeoutId=window.setTimeout(()=>{if(et===this.websocket&&!isNullOrUndefined$1(this.wsConnectionTimeoutId)){if(isNullOrUndefined$1(this.websocket)){this.closeConnection(),this.stepFsm("FATAL_ERROR","Null Websocket in setConnectionTimeout");return}this.websocket.readyState===0&&(this.closeConnection(),this.stepFsm("CONNECTION_TIMED_OUT"))}},WEBSOCKET_TIMEOUT_MS),logMessage(LOG,`Set WS timeout ${this.wsConnectionTimeoutId}`)}closeConnection(){this.websocket&&(this.websocket.close(),this.websocket=void 0),notNullOrUndefined(this.wsConnectionTimeoutId)&&(logMessage(LOG,`Clearing WS timeout ${this.wsConnectionTimeoutId}`),window.clearTimeout(this.wsConnectionTimeoutId),this.wsConnectionTimeoutId=void 0)}sendMessage(nt){if(!this.websocket)return;const et=BackMsg.create(nt),rt=BackMsg.encode(et).finish();this.websocket.send(rt)}incrementMessageCacheRunCount(nt){this.cache.incrementRunCount(nt)}async handleMessage(nt){const et=this.nextMessageIndex;this.nextMessageIndex+=1,PerformanceEvents.record({name:"BeginHandleMessage",messageIndex:et});const rt=new Uint8Array(nt),ot=ForwardMsg.decode(rt);for(PerformanceEvents.record({name:"DecodedMessage",messageIndex:et,messageType:ot.type,len:nt.byteLength}),this.messageQueue[et]=await this.cache.processMessagePayload(ot,rt),PerformanceEvents.record({name:"GotCachedPayload",messageIndex:et});this.lastDispatchedMessageIndex+1 in this.messageQueue;){const at=this.lastDispatchedMessageIndex+1;this.args.onMessage(this.messageQueue[at]),PerformanceEvents.record({name:"DispatchedMessage",messageIndex:at,messageType:this.messageQueue[at].type}),delete this.messageQueue[at],this.lastDispatchedMessageIndex=at}}}function doInitPings(tt,nt,et,rt,ot){const at=new Resolver;let st=0,ut=0,ct=()=>{};const pt=()=>{ut++,ut>=tt.length&&(ut=0),ct()},dt=ht=>{const Mt=Math.random()*.4-.2,mt=st===1?nt:nt*2**(st-1)*(1+Mt),Ot=Math.min(et,mt);rt(st,ht,Ot),window.setTimeout(pt,Ot)},ft=()=>{const ht=tt[ut];new URL(buildHttpUri(ht,"")).hostname==="localhost"?dt(jsx$1(StreamlitMarkdown$1,{source:"\nIs Streamlit still running? If you accidentally stopped Streamlit, just restart it in your terminal:\n\n```bash\nstreamlit run yourscript.py\n```\n ",allowHTML:!1})):dt("Connection failed with status 0.")},bt=()=>{dt(jsxs(reactExports.Fragment,{children:[jsx$1("p",{children:"Cannot connect to Streamlit (HTTP status: 403)."}),jsxs("p",{children:["If you are trying to access a Streamlit app running on another server, this could be due to the app's"," ",jsx$1("a",{href:CORS_ERROR_MESSAGE_DOCUMENTATION_LINK,children:"CORS"})," settings."]})]}))};return ct=()=>{const ht=tt[ut],Mt=buildHttpUri(ht,SERVER_PING_PATH),mt=buildHttpUri(ht,HOST_CONFIG_PATH);ut===0&&st++,Promise.all([axios.get(Mt,{timeout:PING_TIMEOUT_MS}),axios.get(mt,{timeout:PING_TIMEOUT_MS})]).then(([Ot,zt])=>{ot(zt.data),at.resolve(ut)}).catch(Ot=>{if(Ot.code==="ECONNABORTED")return dt("Connection timed out.");if(Ot.response){const{data:zt,status:yt}=Ot.response;return yt===0?ft():yt===403?bt():dt(`Connection failed with status ${yt}, and response "${zt}".`)}return Ot.request?ft():dt(Ot.message)})},ct(),at.promise}const RETRY_COUNT_FOR_WARNING=6;class ConnectionManager{constructor(nt){this.connectionState=ConnectionState.INITIAL,this.setConnectionState=(et,rt)=>{this.connectionState!==et&&(this.connectionState=et,this.props.connectionStateChanged(et)),rt&&this.props.onConnectionError(rt)},this.showRetryError=(et,rt,ot)=>{et===RETRY_COUNT_FOR_WARNING&&this.props.onConnectionError(rt)},this.props=nt,this.connect()}isConnected(){return this.connectionState===ConnectionState.CONNECTED}getBaseUriParts(){if(this.connection instanceof WebsocketConnection)return this.connection.getBaseUriParts()}sendMessage(nt){this.connection instanceof WebsocketConnection&&this.isConnected()?this.connection.sendMessage(nt):logError(`Cannot send message when server is disconnected: ${nt}`)}incrementMessageCacheRunCount(nt){this.connection instanceof WebsocketConnection&&this.connection.incrementMessageCacheRunCount(nt)}async connect(){try{this.connection=await this.connectToRunningServer()}catch(nt){const et=ensureError(nt);logError(et.message),this.setConnectionState(ConnectionState.DISCONNECTED_FOREVER,et.message)}}disconnect(){var nt;(nt=this.connection)==null||nt.disconnect()}connectToRunningServer(){const nt=getPossibleBaseUris();return new WebsocketConnection({sessionInfo:this.props.sessionInfo,endpoints:this.props.endpoints,baseUriPartsList:nt,onMessage:this.props.onMessage,onConnectionStateChange:this.setConnectionState,onRetry:this.showRetryError,claimHostAuthToken:this.props.claimHostAuthToken,resetHostAuthToken:this.props.resetHostAuthToken,onHostConfigResp:this.props.onHostConfigResp})}}class SessionEventDispatcher{constructor(){this.onSessionEvent=new dist.Signal}handleSessionEventMsg(nt){this.onSessionEvent.emit(nt)}}const MEDIA_ENDPOINT="/media",UPLOAD_FILE_ENDPOINT="/_stcore/upload_file",COMPONENT_ENDPOINT_BASE="/component",FORWARD_MSG_CACHE_ENDPOINT="/_stcore/message";class DefaultStreamlitEndpoints{constructor(nt){this.getServerUri=nt.getServerUri,this.csrfEnabled=nt.csrfEnabled}buildComponentURL(nt,et){return buildHttpUri(this.requireServerUri(),`${COMPONENT_ENDPOINT_BASE}/${nt}/${et}`)}setFileUploadClientConfig({prefix:nt,headers:et}){this.fileUploadClientConfig={prefix:nt,headers:et}}buildMediaURL(nt){return nt.startsWith(MEDIA_ENDPOINT)?buildHttpUri(this.requireServerUri(),nt):nt}buildFileUploadURL(nt){return this.fileUploadClientConfig?makePath(this.fileUploadClientConfig.prefix,nt):nt.startsWith(UPLOAD_FILE_ENDPOINT)?buildHttpUri(this.requireServerUri(),nt):nt}buildAppPageURL(nt,et){const rt=et.urlPathname,ot=et.isDefault?"":rt;if(notNullOrUndefined(nt)&&nt.length>0)return`${nt}/${ot}`;const{port:at,protocol:st}=window.location,{basePath:ut,host:ct}=this.requireServerUri(),pt=at?`:${at}`:"",dt=ut?`${ut}/`:"";return`${st}//${ct}${pt}/${dt}${ot}`}async uploadFileUploaderFile(nt,et,rt,ot,at){const st=new FormData;st.append(et.name,et);const ut=this.getAdditionalHeaders();return this.csrfRequest(this.buildFileUploadURL(nt),{cancelToken:at,method:"PUT",data:st,responseType:"text",headers:ut,onUploadProgress:ot}).then(()=>{})}getAdditionalHeaders(){let nt={};return this.fileUploadClientConfig&&(nt={...nt,...this.fileUploadClientConfig.headers}),nt}async deleteFileAtURL(nt,et){const rt=this.getAdditionalHeaders();return this.csrfRequest(this.buildFileUploadURL(nt),{method:"DELETE",data:{sessionId:et},headers:rt}).then(()=>{})}async fetchCachedForwardMsg(nt){const et=this.requireServerUri(),rt=await axios.request({url:buildHttpUri(et,`${FORWARD_MSG_CACHE_ENDPOINT}?hash=${nt}`),method:"GET",responseType:"arraybuffer"});return new Uint8Array(rt.data)}requireServerUri(){const nt=this.getServerUri();if(notNullOrUndefined(nt))return this.cachedServerUri=nt,nt;if(notNullOrUndefined(this.cachedServerUri))return this.cachedServerUri;throw new Error("not connected to a server!")}csrfRequest(nt,et){if(et.url=nt,this.csrfEnabled){const rt=getCookie("_streamlit_xsrf");notNullOrUndefined(rt)&&(et.headers={"X-Xsrftoken":rt,...et.headers||{}},et.withCredentials=!0)}return axios.request(et)}}var assignValue=_assignValue,castPath$1=_castPath,isIndex=_isIndex,isObject=isObject_1,toKey=_toKey;function baseSet$1(tt,nt,et,rt){if(!isObject(tt))return tt;nt=castPath$1(nt,tt);for(var ot=-1,at=nt.length,st=at-1,ut=tt;ut!=null&&++ot<at;){var ct=toKey(nt[ot]),pt=et;if(ct==="__proto__"||ct==="constructor"||ct==="prototype")return tt;if(ot!=st){var dt=ut[ct];pt=rt?rt(dt,ct,ut):void 0,pt===void 0&&(pt=isObject(dt)?dt:isIndex(nt[ot+1])?[]:{})}assignValue(ut,ct,pt),ut=ut[ct]}return tt}var _baseSet=baseSet$1,baseGet=_baseGet,baseSet=_baseSet,castPath=_castPath;function basePickBy$1(tt,nt,et){for(var rt=-1,ot=nt.length,at={};++rt<ot;){var st=nt[rt],ut=baseGet(tt,st);et(ut,st)&&baseSet(at,castPath(st,tt),ut)}return at}var _basePickBy=basePickBy$1,basePickBy=_basePickBy,hasIn=hasIn_1;function basePick$1(tt,nt){return basePickBy(tt,nt,function(et,rt){return hasIn(tt,rt)})}var _basePick=basePick$1,basePick=_basePick,flatRest=_flatRest,pick=flatRest(function(tt,nt){return tt==null?{}:basePick(tt,nt)}),pick_1=pick;const pick$1=getDefaultExportFromCjs$1(pick_1),DEFAULT_METRICS_CONFIG="https://data.streamlit.io/metrics.json";class MetricsManager{constructor(nt){this.initialized=!1,this.actuallySendMetrics=!1,this.metricsUrl=void 0,this.sendMessageToHost=()=>{},this.anonymousId="",this.pendingEvents=[],this.appHash="Not initialized",this.metadata={},this.setAppHash=et=>{this.appHash=et},this.setMetricsConfig=(et="")=>{this.metricsUrl=et},this.sessionInfo=nt}async initialize({gatherUsageStats:nt,sendMessageToHost:et}){this.sendMessageToHost=et,this.actuallySendMetrics=nt&&this.metricsUrl!=="off",this.getAnonymousId(),this.actuallySendMetrics&&!this.metricsUrl&&(await this.requestDefaultMetricsConfig(),this.metricsUrl||(logError("Undefined metrics config - deactivating metrics tracking."),this.actuallySendMetrics=!1)),this.actuallySendMetrics&&this.sendPendingEvents(),logAlways("Gather usage stats: ",this.actuallySendMetrics),this.initialized=!0}enqueue(nt,et={}){if(!this.initialized||!this.sessionInfo.isSet){this.pendingEvents.push([nt,et]);return}this.actuallySendMetrics&&(this.pendingEvents.length&&this.sendPendingEvents(),this.send(nt,et))}setMetadata(nt){this.metadata=nt}async requestDefaultMetricsConfig(){const nt=localStorageAvailable();if(nt){const et=window.localStorage.getItem("stMetricsConfig");if(et){this.metricsUrl=et;return}}try{const et=await fetch(DEFAULT_METRICS_CONFIG,{signal:AbortSignal.timeout(5e3)});if(!et.ok)this.metricsUrl=void 0,logError("Failed to fetch metrics config: ",et.status);else{const rt=await et.json();this.metricsUrl=rt.url??void 0,nt&&this.metricsUrl&&window.localStorage.setItem("stMetricsConfig",this.metricsUrl)}}catch(et){logError("Failed to fetch metrics config:",et)}}send(nt,et={}){const rt=this.buildEventProto(nt,et);this.metricsUrl==="postMessage"?this.postMessageEvent(nt,rt):this.track(rt)}sendPendingEvents(){this.pendingEvents.forEach(([nt,et])=>{this.send(nt,et)}),this.pendingEvents=[]}async track(nt){const et=new Request(this.metricsUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(nt.toJSON())});await fetch(et)}postMessageEvent(nt,et){this.sendMessageToHost({type:"METRICS_EVENT",eventName:nt,data:et})}buildEventProto(nt,et){const rt=new MetricsEvent({event:nt,anonymousId:this.anonymousId,...this.getHostTrackingData(),...this.getInstallationData(),reportHash:this.appHash,dev:IS_DEV_ENV,source:"browser",streamlitVersion:this.sessionInfo.current.streamlitVersion,isHello:this.sessionInfo.isHello,...this.getContextData()});if(nt==="menuClick")rt.label=et.label;else if(nt==="pageProfile")return new MetricsEvent({...rt,...et});return rt}getInstallationData(){return{machineIdV3:this.sessionInfo.current.installationIdV3}}getHostTrackingData(){return this.metadata?pick$1(this.metadata,["hostedAt","owner","repo","branch","mainModule","creatorId"]):{}}getContextData(){return{contextPageUrl:window.location.href,contextPageTitle:document.title,contextPagePath:window.location.pathname,contextPageReferrer:document.referrer,contextPageSearch:window.location.search,contextLocale:window.navigator.language,contextUserAgent:window.navigator.userAgent}}getAnonymousId(){if(!this.actuallySendMetrics)return;const nt="ajs_anonymous_id",et=localStorageAvailable(),rt=getCookie(nt),ot=et?window.localStorage.getItem(nt):null,at=new Date;at.setFullYear(new Date().getFullYear()+1),rt?(this.anonymousId=rt,et&&window.localStorage.setItem(nt,rt)):ot?(this.anonymousId=JSON.parse(ot),setCookie(nt,this.anonymousId,at)):(this.anonymousId=v4(),setCookie(nt,this.anonymousId,at),et&&window.localStorage.setItem(nt,this.anonymousId))}}const StyledApp=newStyled("div",{target:"ee4bbma0"})(({theme:tt})=>{const nt=hasLightBackgroundColor(tt);return{position:"absolute",background:tt.colors.bgColor,color:tt.colors.bodyText,top:tt.spacing.none,left:tt.spacing.none,right:tt.spacing.none,bottom:tt.spacing.none,colorScheme:nt?"light":"dark",overflow:"hidden","@media print":{float:"none",height:tt.sizes.full,position:"static",overflow:"visible"}}}),StyledRecordAudioLabel=newStyled("label",{target:"ej964cx0"})({margin:0}),StyledInstruction=newStyled("p",{target:"ej964cx1"})({margin:0}),ScreencastDialog=({onClose:tt,toggleRecordAudio:nt,recordAudio:et,startRecording:rt})=>{const[ot,at]=reactExports.useState(et),st=reactExports.useCallback(ct=>{const{checked:pt}=ct.target;pt!==ot&&(at(pt),nt())},[ot,nt]),ut=reactExports.useCallback(()=>{rt(),tt()},[rt,tt]);return jsxs(Modal,{isOpen:!0,onClose:tt,children:[jsx$1(ModalHeader,{children:"Record a screencast"}),jsxs(ModalBody$1,{children:[jsx$1("p",{children:"This will record a video with the contents of your screen, so you can easily share what you're seeing with others."}),jsx$1("p",{children:jsxs(StyledRecordAudioLabel,{"data-testid":"stScreencastAudioCheckbox",children:[jsx$1("input",{type:"checkbox",name:"recordAudio",checked:ot,onChange:st})," ","Also record audio"]})}),jsx$1(StyledInstruction,{"data-testid":"stScreencastInstruction",children:jsx$1(StreamlitMarkdown$1,{source:"Press `Esc` any time to stop recording.",allowHTML:!1})})]}),jsx$1(ModalFooter,{children:jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:ut,children:"Start recording!"})})]})},StyledVideo=newStyled("video",{target:"emkt0dj0"})(({theme:tt})=>({width:tt.sizes.full,borderRadius:tt.radii.md})),StyledDialogContainer=newStyled("div",{target:"emkt0dj1"})(({theme:tt})=>({display:"flex",flexDirection:"column",width:tt.sizes.full})),StyledRow=newStyled("div",{target:"emkt0dj2"})(({theme:tt})=>({display:"flex",flexDirection:"row",paddingTop:tt.spacing.md,paddingBottom:tt.spacing.md})),StyledFirstColumn=newStyled("div",{target:"emkt0dj3"})(({theme:tt})=>({paddingRight:tt.spacing.lg,textAlign:"right",color:tt.colors.gray,fontWeight:tt.fontWeights.bold,width:"6em"})),StyledSecondColumn=newStyled("div",{target:"emkt0dj4"})(({theme:tt})=>({flex:1,paddingRight:tt.spacing.lg,marginRight:"6em",[`@media (max-width: ${tt.breakpoints.sm})`]:{marginRight:tt.spacing.none}})),StyledVideoFormatInstructions=newStyled("p",{target:"emkt0dj5"})(({theme:tt})=>({marginTop:tt.spacing.sm,marginBottom:tt.spacing.none,fontSize:tt.fontSizes.sm})),StyledDownloadButtonContainer=newStyled("div",{target:"emkt0dj6"})(({theme:tt})=>({marginTop:tt.spacing.twoXS})),VideoRecordedDialog=({onClose:tt,videoBlob:nt,fileName:et})=>{const rt=URL.createObjectURL(nt),ot=()=>{const at=document.createElement("a");at.setAttribute("href",rt),at.setAttribute("download",`${et}.webm`),at.click(),tt()};return jsxs(Modal,{isOpen:!0,onClose:tt,overrides:{Dialog:{style:{width:"80vw"}}},children:[jsx$1(ModalHeader,{children:"Next steps"}),jsx$1(ModalBody$1,{children:jsxs(StyledDialogContainer,{"data-testid":"stVideoRecordedDialog",children:[jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 1"}),jsxs(StyledSecondColumn,{children:[jsx$1("p",{children:"Preview your video below:"}),jsx$1(StyledVideo,{src:rt,controls:!0})]})]}),jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 2"}),jsxs(StyledSecondColumn,{children:[jsx$1(StyledDownloadButtonContainer,{children:jsx$1(BaseButton,{kind:BaseButtonKind.SECONDARY,onClick:ot,children:"Save video to disk"})}),jsxs(StyledVideoFormatInstructions,{children:["This video is encoded in the"," ",jsx$1("a",{href:"https://www.webmproject.org/",children:"WebM format"}),", which is only supported by newer video players. You can also play it by dragging the file directly into your browser."]})]})]}),jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 3"}),jsxs(StyledSecondColumn,{children:["Share your video with the world on Twitter, LinkedIn, YouTube, or just plain email!"," ",jsx$1("span",{role:"img","aria-label":"Happy",children:"😀"})]})]})]})})]})},StyledScreenCastWarningDialog=newStyled("div",{target:"e1o5y2010"})({display:"flex"}),StyledUnsupportedScreenCastIcon=newStyled("div",{target:"e1o5y2011"})(({theme:tt})=>({display:"flex",alignItems:"center",justifyItems:"center",marginRight:tt.spacing.twoXL,marginLeft:tt.spacing.sm,fontSize:tt.fontSizes.fourXL})),StyledUnsupportedScreenCastExplanation=newStyled("p",{target:"e1o5y2012"})(({theme:tt})=>({margin:tt.spacing.none})),UnsupportedBrowserDialog=({onClose:tt})=>jsxs(Modal,{isOpen:!0,onClose:tt,children:[jsx$1(ModalHeader,{children:"Record a screencast"}),jsx$1(ModalBody$1,{children:jsxs(StyledScreenCastWarningDialog,{"data-testid":"stUnsupportedBrowserDialog",children:[jsx$1(StyledUnsupportedScreenCastIcon,{children:jsx$1("span",{role:"img","aria-label":"Alien Monster",children:"👾"})}),jsx$1(StyledUnsupportedScreenCastExplanation,{children:"Due to limitations with some browsers, this feature is only supported on recent desktop versions of Chrome, Firefox, and Edge."})]})})]}),UnsupportedBrowserDialog$1=reactExports.memo(UnsupportedBrowserDialog),screencastCounterAnimation=keyframes("0%{opacity:0;}25%{opacity:1;}100%{opacity:0;}"),StyledCountdown=newStyled("div",{target:"evez3ra0"})(({theme:tt})=>({position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:0,left:0,width:tt.sizes.full,height:tt.sizes.full,fontSize:"40vh",color:tt.colors.red,fontWeight:tt.fontWeights.bold,opacity:"0.8",textShadow:`1px 1px 10px ${tt.colors.darkGray}`,transition:"opacity 0.3s ease-in-out",animation:`${screencastCounterAnimation} 1s`})),Countdown=({countdown:tt,endCallback:nt})=>{const[et,rt]=reactExports.useState(tt);return jsx$1(StyledCountdown,{"data-testid":"stCountdown",onAnimationEnd:()=>{const at=et-1;at>=0&&rt(at),at===0&&nt()},children:jsx$1("span",{children:et})},`frame${et}`)};function withScreencast(tt){const et=class et extends reactExports.PureComponent{constructor(){super(...arguments),this.state={fileName:"streamlit-screencast",recordAudio:!1,currentState:this.props.testOverride||"OFF"},this.toggleRecordAudio=()=>{const{recordAudio:ot}=this.state;this.setState({recordAudio:!ot})},this.showDialog=ot=>{const{currentState:at}=this.state;ScreenCastRecorder.isSupportedBrowser()?at==="OFF"?this.setState({fileName:ot,currentState:"SETUP"}):this.stopRecording().catch(st=>logWarning(`withScreencast.stopRecording threw an error: ${st}`)):this.setState({currentState:"UNSUPPORTED"})},this.startRecording=async()=>{const{recordAudio:ot}=this.state;this.recorder=new ScreenCastRecorder({recordAudio:ot,onErrorOrStop:()=>this.stopRecording()});try{await this.recorder.initialize()}catch{this.setState({currentState:"UNSUPPORTED"});return}this.setState({currentState:"COUNTDOWN"})},this.stopRecording=async()=>{let ot;const{currentState:at}=this.state;at==="OFF"||isNullOrUndefined$1(this.recorder)||(at==="COUNTDOWN"&&this.setState({currentState:"OFF"}),at==="RECORDING"&&(this.recorder.getState()==="inactive"?this.setState({currentState:"OFF"}):(ot=await this.recorder.stop(),this.setState({outputBlob:ot,currentState:"PREVIEW_FILE"}))))},this.onCountdownEnd=async()=>{if(isNullOrUndefined$1(this.recorder))throw new Error("Countdown finished but recorder is null");this.recorder.start()?this.setState({currentState:"RECORDING"}):this.stopRecording().catch(at=>logWarning(`withScreencast.stopRecording threw an error: ${at}`))},this.getScreenCastProps=()=>({currentState:this.state.currentState,toggleRecordAudio:this.toggleRecordAudio,startRecording:this.showDialog,stopRecording:this.stopRecording}),this.closeDialog=()=>{this.setState({currentState:"OFF"})},this.render=()=>{const{outputBlob:ot,fileName:at,recordAudio:st,currentState:ut}=this.state;return jsxs("div",{className:"withScreencast","data-testid":"stScreencast",children:[jsx$1(tt,{...this.props,screenCast:this.getScreenCastProps()}),ut==="UNSUPPORTED"&&jsx$1(UnsupportedBrowserDialog$1,{onClose:this.closeDialog}),ut==="SETUP"&&jsx$1(ScreencastDialog,{recordAudio:st,onClose:this.closeDialog,startRecording:this.startRecording,toggleRecordAudio:this.toggleRecordAudio}),ut==="COUNTDOWN"&&jsx$1(Countdown,{countdown:3,endCallback:this.onCountdownEnd}),ut==="PREVIEW_FILE"&&ot&&jsx$1(VideoRecordedDialog,{onClose:this.closeDialog,videoBlob:ot,fileName:at})]})}}};et.displayName=`withScreencast(${tt.displayName||tt.name})`;let nt=et;return hoistNonReactStatics$2(nt,tt)}const showDevelopmentOptions=(tt,nt)=>nt==Config.ToolbarMode.DEVELOPER?!0:Config.ToolbarMode.VIEWER==nt||Config.ToolbarMode.MINIMAL==nt?!1:tt||isLocalhost();function getTitle(tt){return tt||"Streamlit"}class StrategyV1{constructor(nt){this.appNav=nt,this.appPages=[],this.currentPageScriptHash=null,this.hideSidebarNav=null}handleNewSession(nt){var st,ut;this.appPages=nt.appPages,this.currentPageScriptHash=nt.pageScriptHash,this.hideSidebarNav=((st=nt.config)==null?void 0:st.hideSidebarNav)??!1;const et=this.appPages[0],rt=et.urlPathname??"",ot=((ut=this.appPages.find(ct=>ct.pageScriptHash===this.currentPageScriptHash))==null?void 0:ut.urlPathname)??"",at=et.pageScriptHash===this.currentPageScriptHash;return this.appNav.onUpdatePageUrl(rt,ot,at),document.title=getTitle(ot??""),[{hideSidebarNav:this.hideSidebarNav,appPages:this.appPages,currentPageScriptHash:this.currentPageScriptHash},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:this.appPages}),this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:at?"":ot,currentPageScriptHash:this.currentPageScriptHash})}]}handlePagesChanged(nt){const{appPages:et}=nt;return[{appPages:et},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:et})}]}handlePageNotFound(nt){var ot;const{pageName:et}=nt;this.appNav.onPageNotFound(et);const rt=((ot=this.appPages[0])==null?void 0:ot.pageScriptHash)??"";return this.currentPageScriptHash=rt,[{currentPageScriptHash:rt},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:rt})}]}handleNavigation(nt){}findPageByUrlPath(nt){return this.appPages.length===0?null:this.appPages.find(et=>nt.endsWith("/"+et.urlPathname))??this.appPages[0]}clearPageElements(nt,et,rt){return AppRoot.empty(et,!1,rt,nt.logo)}}class StrategyV2{constructor(nt){this.appNav=nt,this.mainScriptHash=null,this.appPages=[],this.mainPage=null,this.hideSidebarNav=null}handleNewSession(nt){var et;return this.mainScriptHash=nt.mainScriptHash,this.hideSidebarNav===null&&(this.hideSidebarNav=((et=nt.config)==null?void 0:et.hideSidebarNav)??null),document.title=getTitle(""),[{hideSidebarNav:this.hideSidebarNav??!1},()=>{}]}handlePagesChanged(nt){}handlePageNotFound(nt){const{pageName:et}=nt;return this.appNav.onPageNotFound(et),[{currentPageScriptHash:this.mainScriptHash??""},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:this.mainScriptHash??""})}]}handleNavigation(nt){const{sections:et,position:rt,appPages:ot}=nt;this.appPages=ot,this.hideSidebarNav=rt===Navigation.Position.HIDDEN;const at=nt.pageScriptHash,st=ot.find(pt=>pt.pageScriptHash===at),ut=ot.find(pt=>pt.isDefault);this.mainPage=ut;const ct=st.urlPathname;if(!this.appNav.isPageTitleSet){const pt=getTitle(st.pageName);document.title=pt,this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:st.pageName??""})}return!this.appNav.isPageIconSet&&st.icon&&this.appNav.onPageIconChange(st.icon),this.appNav.onUpdatePageUrl(ut.urlPathname??"",ct,st.isDefault??!1),[{appPages:ot,navSections:et,hideSidebarNav:this.hideSidebarNav,expandSidebarNav:nt.expanded,currentPageScriptHash:at},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:ot}),this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:st.isDefault?"":ct,currentPageScriptHash:at})}]}findPageByUrlPath(nt){return this.appPages.find(et=>nt.endsWith("/"+et.urlPathname))??this.mainPage}clearPageElements(nt,et,rt){return nt.filterMainScriptElements(et)}}class AppNavigation{constructor(nt,et,rt,ot){this.hostCommunicationMgr=nt,this.onUpdatePageUrl=et,this.onPageNotFound=rt,this.onPageIconChange=ot,this.isPageIconSet=!1,this.isPageTitleSet=!1,this.strategy=new StrategyV1(this)}handleNewSession(nt){return this.isPageTitleSet=!1,this.isPageIconSet=!1,this.strategy.handleNewSession(nt)}handleNavigation(nt){return this.strategy instanceof StrategyV1&&(this.strategy=new StrategyV2(this)),this.strategy.handleNavigation(nt)}handlePagesChanged(nt){return this.strategy.handlePagesChanged(nt)}handlePageNotFound(nt){return this.strategy.handlePageNotFound(nt)}findPageByUrlPath(nt){return this.strategy.findPageByUrlPath(nt)}handlePageConfigChanged(nt){this.isPageIconSet=!!nt.favicon,this.isPageTitleSet=!!nt.title}clearPageElements(nt,et,rt){return this.strategy.clearPageElements(nt,et,rt)}}const ELEMENT_LIST_BUFFER_TIMEOUT_MS=10,INITIAL_SCRIPT_RUN_ID="<null>";class App extends reactExports.PureComponent{constructor(nt){super(nt),this.sessionInfo=new SessionInfo,this.metricsMgr=new MetricsManager(this.sessionInfo),this.sessionEventDispatcher=new SessionEventDispatcher,this.embeddingId=generateUID$2(),this.showDeployError=(rt,ot,at)=>{this.openDialog({type:DialogType.DEPLOY_ERROR,title:rt,msg:ot,onContinue:at,onClose:()=>{},onTryAgain:this.sendLoadGitInfoBackMsg})},this.handleThemeMessage=(rt,ot)=>{const[,at,st]=createPresetThemes(),ut=isPresetTheme(this.props.theme.activeTheme);rt===at.name&&ut?this.props.theme.setTheme(at):rt===st.name&&ut?this.props.theme.setTheme(st):ot&&this.props.theme.setImportedTheme(ot)},this.handleConnectionStateChanged=rt=>{if(logMessage(`Connection state changed from ${this.state.connectionState} to ${rt}`),rt===ConnectionState.CONNECTED){const ot=this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED||this.state.scriptRunState===ScriptRunState.RUNNING;(!this.sessionInfo.last||ot)&&(this.widgetMgr.sendUpdateWidgetsMessage(void 0),this.setState({dialog:null})),this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_CONNECTED"})}else this.state.connectionState===ConnectionState.CONNECTED&&this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_DISCONNECTED",attemptingToReconnect:rt!==ConnectionState.DISCONNECTED_FOREVER}),this.sessionInfo.isSet&&this.sessionInfo.clearCurrent();this.setState({connectionState:rt})},this.handleGitInfoChanged=rt=>{this.setState({gitInfo:rt})},this.handleCustomParentMessage=rt=>{this.state.appConfig.enableCustomParentMessages?this.hostCommunicationMgr.sendMessageToHost({type:"CUSTOM_PARENT_MESSAGE",message:rt.message}):logError("Sending messages to the host is disabled in line with the platform policy.")},this.handleMessage=rt=>{const ot=(at,st,ut)=>{const ct=at[st];if(ct in ut)return ut[ct](at[ct]);throw new Error(`Cannot handle ${st} "${ct}".`)};try{ot(rt,"type",{newSession:at=>this.handleNewSession(at),sessionStatusChanged:at=>this.handleSessionStatusChanged(at),sessionEvent:at=>this.handleSessionEvent(at),delta:at=>this.handleDeltaMsg(at,rt.metadata),pageConfigChanged:at=>this.handlePageConfigChanged(at),pageInfoChanged:at=>this.handlePageInfoChanged(at),pagesChanged:at=>this.handlePagesChanged(at),pageNotFound:at=>this.handlePageNotFound(at),gitInfoChanged:at=>this.handleGitInfoChanged(at),scriptFinished:at=>this.handleScriptFinished(at),pageProfile:at=>this.handlePageProfileMsg(at),autoRerun:at=>this.handleAutoRerun(at),fileUrlsResponse:at=>this.uploadClient.onFileURLsResponse(at),parentMessage:at=>this.handleCustomParentMessage(at),logo:at=>this.handleLogo(at,rt.metadata),navigation:at=>this.handleNavigation(at),authRedirect:at=>{isInChildFrame()?this.hostCommunicationMgr.sendMessageToSameOriginHost({type:"REDIRECT_TO_URL",url:at.url}):window.location.href=at.url}})}catch(at){const st=ensureError(at);logError(st),this.showError("Bad message format",st.message)}},this.handleLogo=(rt,ot)=>{const at={activeScriptHash:ot.activeScriptHash,scriptRunId:this.state.scriptRunId};this.setState({elements:this.pendingElementsBuffer.appRootWithLogo(rt,at)},()=>{this.pendingElementsBuffer=this.state.elements})},this.handlePageConfigChanged=rt=>{const{title:ot,favicon:at,layout:st,initialSidebarState:ut,menuItems:ct}=rt;this.appNavigation.handlePageConfigChanged(rt),ot&&(this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:ot}),document.title=ot),at&&this.onPageIconChanged(at),st!==this.state.layout&&this.setState(pt=>({layout:st,userSettings:{...pt.userSettings,wideMode:st===PageConfig.Layout.WIDE}})),ut!==this.state.initialSidebarState&&this.setState(()=>({initialSidebarState:ut})),this.setState({menuItems:ct})},this.handlePageInfoChanged=rt=>{const{queryString:ot}=rt,at=document.location.pathname+(ot?`?${ot}`:"");window.history.pushState({},"",at),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:ot?`?${ot}`:""})},this.onPageNotFound=rt=>{const ot=rt?`You have requested page /${rt}, but no corresponding file was found in the app's pages/ directory`:"The page that you have requested does not seem to exist";this.showError("Page not found",`${ot}. Running the app's main page.`)},this.handlePageNotFound=rt=>{this.maybeSetState(this.appNavigation.handlePageNotFound(rt))},this.onPageIconChanged=rt=>{handleFavicon(rt,this.hostCommunicationMgr.sendMessageToHost,this.endpoints)},this.handlePagesChanged=rt=>{this.maybeSetState(this.appNavigation.handlePagesChanged(rt))},this.handleNavigation=rt=>{this.maybeSetState(this.appNavigation.handleNavigation(rt))},this.handlePageProfileMsg=rt=>{var st,ut,ct;const ot=PageProfile.toObject(rt),at=getBrowserInfo();this.metricsMgr.enqueue("pageProfile",{...ot,isFragmentRun:!!ot.isFragmentRun,appId:this.sessionInfo.current.appId,numPages:(st=this.state.appPages)==null?void 0:st.length,sessionId:this.sessionInfo.current.sessionId,pythonVersion:this.sessionInfo.current.pythonVersion,pageScriptHash:this.state.currentPageScriptHash,activeTheme:(ct=(ut=this.props.theme)==null?void 0:ut.activeTheme)==null?void 0:ct.name,totalLoadTime:Math.round((performance.now()-this.state.latestRunTime)*1e3),browserInfo:at})},this.handleAutoRerun=rt=>{const ot=setInterval(()=>{this.widgetMgr.sendUpdateWidgetsMessage(rt.fragmentId,!0)},rt.interval*1e3);this.setState(at=>({autoReruns:[...at.autoReruns,ot]}))},this.handleSessionStatusChanged=rt=>{this.setState(ot=>{let{scriptRunState:at}=ot,{dialog:st}=ot;return rt.scriptIsRunning&&ot.scriptRunState!==ScriptRunState.STOP_REQUESTED?(at=ScriptRunState.RUNNING,notNullOrUndefined(st)&&st.type===DialogType.SCRIPT_COMPILE_ERROR&&(st=void 0)):!rt.scriptIsRunning&&ot.scriptRunState!==ScriptRunState.RERUN_REQUESTED&&ot.scriptRunState!==ScriptRunState.COMPILATION_ERROR&&(at=ScriptRunState.NOT_RUNNING),{userSettings:{...ot.userSettings,runOnSave:!!rt.runOnSave},dialog:st,scriptRunState:at}})},this.handleSessionEvent=rt=>{if(this.sessionEventDispatcher.handleSessionEventMsg(rt),rt.type==="scriptCompilationException"){this.setState({scriptRunState:ScriptRunState.COMPILATION_ERROR});const ot={type:DialogType.SCRIPT_COMPILE_ERROR,exception:rt.scriptCompilationException,onClose:()=>{}};this.openDialog(ot)}},this.maybeUpdatePageUrl=(rt,ot,at)=>{const st=this.getBaseUriParts();if(st){const{basePath:ut}=st,ct=extractPageNameFromPathName(document.location.pathname,ut);if((ct===""?rt:ct)!==ot){const dt=at?"":ot,ft=preserveEmbedQueryParams(),bt=ft?`?${ft}`:"",Mt=`${ut?`/${ut}`:""}/${dt}${bt}`;window.history.pushState({},"",Mt)}}},this.handleNewSession=rt=>{const ot=rt.initialize;if(this.hasStreamlitVersionChanged(ot)){window.location.reload();return}this.sessionInfo.isSet||this.handleOneTimeInitialization(rt);const{appHash:at,currentPageScriptHash:st}=this.state,{scriptRunId:ut,name:ct,mainScriptPath:pt,fragmentIdsThisRun:dt,pageScriptHash:ft,mainScriptHash:bt}=rt;if(dt.length)this.setState({fragmentIdsThisRun:dt,latestRunTime:performance.now()});else{this.cleanupAutoReruns();const Mt=rt.config,mt=rt.customTheme;this.processThemeInput(mt),this.setState({allowRunOnSave:Mt.allowRunOnSave,hideTopBar:Mt.hideTopBar,toolbarMode:Mt.toolbarMode,latestRunTime:performance.now(),mainScriptHash:bt,fragmentIdsThisRun:dt}),this.maybeSetState(this.appNavigation.handleNewSession(rt)),this.onPageIconChanged("./favicon.png")}const ht=hashString(this.sessionInfo.current.installationId+pt);this.metricsMgr.setMetadata(this.state.deployedAppMetadata),this.metricsMgr.setAppHash(ht),this.metricsMgr.enqueue("updateReport"),at===ht&&st===ft?this.setState({scriptRunId:ut}):this.clearAppState(ht,ut,ct,bt)},this.handleOneTimeInitialization=rt=>{const ot=rt.initialize,at=rt.config;this.sessionInfo.setCurrent(SessionInfo.propsFromNewSessionMessage(rt)),this.metricsMgr.initialize({gatherUsageStats:at.gatherUsageStats,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost}),this.handleSessionStatusChanged(ot.sessionStatus)},this.onHistoryChange=()=>{const{currentPageScriptHash:rt}=this.state,ot=this.appNavigation.findPageByUrlPath(document.location.pathname),at=document.location.toString().includes("#"),st=(ot==null?void 0:ot.pageScriptHash)===rt;isNullOrUndefined$1(ot)||at&&st||this.onPageChange(ot.pageScriptHash)},this.setAndSendTheme=rt=>{this.props.theme.setTheme(rt),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(rt.emotion)})},this.createThemeHash=rt=>{if(!rt)return"hash_for_undefined_custom_theme";const ot=Object.entries(rt);return ot.sort(),hashString(ot.join(":"))},this.closeDialog=()=>{this.setState({dialog:void 0})},this.saveSettings=rt=>{const{runOnSave:ot}=this.state.userSettings,{runOnSave:at}=rt;if(this.setState({userSettings:rt}),ot!==at&&this.isServerConnected()){const st=new BackMsg({setRunOnSave:at});st.type="setRunOnSave",this.sendBackMsg(st)}},this.handleDeltaMsg=(rt,ot)=>{if(this.pendingElementsBuffer=this.pendingElementsBuffer.applyDelta(this.state.scriptRunId,rt,ot),!this.pendingElementsTimerRunning){this.pendingElementsTimerRunning=!0;const at=this.state.scriptRunState===ScriptRunState.RUNNING;setTimeout(()=>{this.pendingElementsTimerRunning=!1,at&&this.setState({elements:this.pendingElementsBuffer})},ELEMENT_LIST_BUFFER_TIMEOUT_MS)}},this.debugShutdownRuntime=()=>{if(this.isServerConnected()){const rt=new BackMsg({debugShutdownRuntime:!0});rt.type="debugShutdownRuntime",this.sendBackMsg(rt)}},this.debugDisconnectWebsocket=()=>{if(this.isServerConnected()){const rt=new BackMsg({debugDisconnectWebsocket:!0});rt.type="debugDisconnectWebsocket",this.sendBackMsg(rt)}},this.debugClearForwardMsgCache=()=>{var rt,ot;isLocalhost()&&((ot=(rt=this.connectionManager)==null?void 0:rt.connection)==null||ot.cache.messages.clear())},this.cleanupAutoReruns=()=>{this.state.autoReruns.forEach(rt=>{clearInterval(rt)}),this.setState({autoReruns:[]})},this.rerunScript=(rt=!1)=>{if(this.closeDialog(),!this.isServerConnected()){logError("Cannot rerun script when disconnected from server.");return}this.state.scriptRunState===ScriptRunState.RUNNING||this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED||(this.setState({scriptRunState:ScriptRunState.RERUN_REQUESTED}),rt===!0&&this.saveSettings({...this.state.userSettings,runOnSave:!0}),this.widgetMgr.sendUpdateWidgetsMessage(void 0))},this.sendLoadGitInfoBackMsg=()=>{if(!this.isServerConnected()){logError("Cannot load git information when disconnected from server.");return}this.sendBackMsg(new BackMsg({loadGitInfo:!0}))},this.onPageChange=rt=>{const{elements:ot,mainScriptHash:at}=this.state;this.cleanupAutoReruns();const st=this.appNavigation.clearPageElements(ot,at,void 0),ut=new Set(Array.from(st.getElements()).map(ct=>getElementId(ct)).filter(notUndefined));this.sendRerunBackMsg(this.widgetMgr.getActiveWidgetStates(ut),void 0,rt)},this.isAppInReadyState=rt=>this.state.connectionState===ConnectionState.CONNECTED&&this.state.scriptRunState===ScriptRunState.NOT_RUNNING&&rt.scriptRunState===ScriptRunState.RUNNING&&rt.connectionState===ConnectionState.CONNECTED,this.sendRerunBackMsg=(rt,ot,at,st)=>{const ut=this.getBaseUriParts();if(!ut){logError("Cannot send rerun backMessage when disconnected from server.");return}const{currentPageScriptHash:ct}=this.state,{basePath:pt}=ut;let dt=this.getQueryString(),ft="";at?at!=ct&&(dt=preserveEmbedQueryParams(),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:dt})):ct?at=ct:(ft=extractPageNameFromPathName(document.location.pathname,pt),at=""),this.sendBackMsg(new BackMsg({rerunScript:{queryString:dt,widgetStates:rt,pageScriptHash:at,pageName:ft,fragmentId:ot,isAutoRerun:st}})),PerformanceEvents.record({name:"RequestedRerun",scriptRunState:this.state.scriptRunState})},this.stopScript=()=>{if(!this.isServerConnected()){logError("Cannot stop app when disconnected from server.");return}if(this.state.scriptRunState===ScriptRunState.NOT_RUNNING||this.state.scriptRunState===ScriptRunState.STOP_REQUESTED)return;const rt=new BackMsg({stopScript:!0});rt.type="stopScript",this.sendBackMsg(rt),this.setState({scriptRunState:ScriptRunState.STOP_REQUESTED})},this.openClearCacheDialog=()=>{if(this.isServerConnected()){const rt={type:DialogType.CLEAR_CACHE,confirmCallback:this.clearCache,defaultAction:this.clearCache,onClose:()=>{}};this.openDialog(rt)}else logError("Cannot clear cache: disconnected from server")},this.openDeployDialog=()=>{var ot;const rt={type:DialogType.DEPLOY_DIALOG,onClose:this.closeDialog,showDeployError:this.showDeployError,isDeployErrorModalOpen:((ot=this.state.dialog)==null?void 0:ot.type)===DialogType.DEPLOY_ERROR,metricsMgr:this.metricsMgr};this.openDialog(rt)},this.openThemeCreatorDialog=()=>{this.metricsMgr.enqueue("menuClick",{label:"editTheme"});const rt={type:DialogType.THEME_CREATOR,backToSettings:this.settingsCallback,onClose:this.closeDialog,metricsMgr:this.metricsMgr};this.openDialog(rt)},this.clearCache=()=>{if(this.closeDialog(),this.isServerConnected()){const rt=new BackMsg({clearCache:!0});rt.type="clearCache",this.sendBackMsg(rt)}else logError("Cannot clear cache: disconnected from server")},this.sendAppHeartbeat=()=>{if(this.isServerConnected()){const rt=new BackMsg({appHeartbeat:!0});rt.type="appHeartbeat",this.sendBackMsg(rt)}else logError("Cannot send app heartbeat: disconnected from server")},this.sendBackMsg=rt=>{this.connectionManager?this.connectionManager.sendMessage(rt):logError(`Not connected. Cannot send back message: ${rt}`)},this.handleConnectionError=rt=>{this.showError("Connection error",rt)},this.isServerConnected=()=>this.connectionManager?this.connectionManager.isConnected():!1,this.settingsCallback=(rt=!0)=>{const ot={type:DialogType.SETTINGS,isServerConnected:this.isServerConnected(),settings:this.state.userSettings,allowRunOnSave:this.state.allowRunOnSave,onSave:this.saveSettings,onClose:()=>{},developerMode:showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),openThemeCreator:this.openThemeCreatorDialog,animateModal:rt,metricsMgr:this.metricsMgr};this.openDialog(ot)},this.aboutCallback=()=>{const{menuItems:rt}=this.state,ot={type:DialogType.ABOUT,sessionInfo:this.sessionInfo,onClose:this.closeDialog,aboutSectionMd:rt==null?void 0:rt.aboutSectionMd};this.openDialog(ot)},this.printCallback=()=>{const{scriptRunState:rt}=this.state;if(rt!==ScriptRunState.NOT_RUNNING){setTimeout(this.printCallback,500);return}let ot;try{const at=getIFrameEnclosingApp(this.embeddingId);at&&at.contentWindow?ot=at.contentWindow.window:ot=window}catch{ot=window}finally{ot||(ot=window),ot.print()}},this.screencastCallback=()=>{const{scriptName:rt}=this.state,{startRecording:ot}=this.props.screenCast,at=hooks().format("YYYY-MM-DD-HH-MM-SS");ot(`streamlit-${rt}-${at}`)},this.handleFullScreen=rt=>{this.setState({isFullScreen:rt})},this.setLibConfig=rt=>{this.setState({libConfig:rt})},this.setAppConfig=rt=>{this.setState({appConfig:rt})},this.addScriptFinishedHandler=rt=>{this.setState((ot,at)=>({scriptFinishedHandlers:ot.scriptFinishedHandlers.concat(rt)}))},this.removeScriptFinishedHandler=rt=>{this.setState((ot,at)=>({scriptFinishedHandlers:without$1(ot.scriptFinishedHandlers,rt)}))},this.getBaseUriParts=()=>this.connectionManager?this.connectionManager.getBaseUriParts():void 0,this.getQueryString=()=>{const{queryParams:rt}=this.state,ot=rt&&rt.length>0?rt:document.location.search;return ot.startsWith("?")?ot.substring(1):ot},this.isInCloudEnvironment=()=>{const{hostMenuItems:rt}=this.state;return rt&&(rt==null?void 0:rt.length)>0},this.showDeployButton=()=>showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&!this.isInCloudEnvironment()&&this.sessionInfo.isSet&&!this.sessionInfo.isHello,this.deployButtonClicked=()=>{this.metricsMgr.enqueue("menuClick",{label:"deployButtonInApp"}),this.sendLoadGitInfoBackMsg(),this.openDeployDialog()},this.requestFileURLs=(rt,ot)=>{if(this.isServerConnected()){const at=new BackMsg({fileUrlsRequest:{requestId:rt,fileNames:ot.map(st=>st.name),sessionId:this.sessionInfo.current.sessionId}});at.type="fileUrlsRequest",this.sendBackMsg(at)}},this.handleKeyDown=rt=>{switch(rt){case"c":showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&this.openClearCacheDialog();break;case"r":this.rerunScript();break}},this.handleKeyUp=rt=>{rt==="esc"&&this.props.screenCast.stopRecording()},J$1();let et=this.createThemeHash();isPresetTheme(nt.theme.activeTheme)||(et=this.createThemeHash(toThemeInput(nt.theme.activeTheme.emotion))),this.state={connectionState:ConnectionState.INITIAL,elements:AppRoot.empty("",!0),isFullScreen:!1,scriptName:"",scriptRunId:INITIAL_SCRIPT_RUN_ID,appHash:null,scriptRunState:ScriptRunState.NOT_RUNNING,userSettings:{wideMode:!1,runOnSave:!1},layout:PageConfig.Layout.CENTERED,initialSidebarState:PageConfig.SidebarState.AUTO,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],themeHash:et,gitInfo:null,formsData:createFormsData(),appPages:[],navSections:[],currentPageScriptHash:"",mainScriptHash:"",hideTopBar:!0,hideSidebarNav:!0,expandSidebarNav:!1,toolbarMode:Config.ToolbarMode.MINIMAL,latestRunTime:performance.now(),fragmentIdsThisRun:[],isOwner:!1,hostMenuItems:[],hostToolbarItems:[],hostHideSidebarNav:!1,sidebarChevronDownshift:0,pageLinkBaseUrl:"",queryParams:"",deployedAppMetadata:{},libConfig:{},appConfig:{},autoReruns:[],inputsDisabled:!1},this.connectionManager=null,this.widgetMgr=new WidgetStateManager({sendRerunBackMsg:this.sendRerunBackMsg,formsDataChanged:rt=>this.setState({formsData:rt})}),this.hostCommunicationMgr=new HostCommunicationManager({streamlitExecutionStartedAt:nt.streamlitExecutionStartedAt,sendRerunBackMsg:this.sendRerunBackMsg,closeModal:this.closeDialog,stopScript:this.stopScript,rerunScript:this.rerunScript,clearCache:this.clearCache,sendAppHeartbeat:this.sendAppHeartbeat,setInputsDisabled:rt=>{this.setState({inputsDisabled:rt})},themeChanged:this.handleThemeMessage,pageChanged:this.onPageChange,isOwnerChanged:rt=>this.setState({isOwner:rt}),fileUploadClientConfigChanged:rt=>{this.endpoints.setFileUploadClientConfig!==void 0&&this.endpoints.setFileUploadClientConfig(rt)},hostMenuItemsChanged:rt=>{this.setState({hostMenuItems:rt})},hostToolbarItemsChanged:rt=>{this.setState({hostToolbarItems:rt})},hostHideSidebarNavChanged:rt=>{this.setState({hostHideSidebarNav:rt})},sidebarChevronDownshiftChanged:rt=>{this.setState({sidebarChevronDownshift:rt})},pageLinkBaseUrlChanged:rt=>{this.setState({pageLinkBaseUrl:rt})},queryParamsChanged:rt=>{this.setState({queryParams:rt})},deployedAppMetadataChanged:rt=>{this.setState({deployedAppMetadata:rt})},restartWebsocketConnection:()=>{this.connectionManager||this.initializeConnectionManager()},terminateWebsocketConnection:()=>{var rt;(rt=this.connectionManager)==null||rt.disconnect(),this.connectionManager=null}}),this.endpoints=new DefaultStreamlitEndpoints({getServerUri:this.getBaseUriParts,csrfEnabled:!0}),this.uploadClient=new FileUploadClient({sessionInfo:this.sessionInfo,endpoints:this.endpoints,formsWithPendingRequestsChanged:rt=>this.widgetMgr.setFormsWithUploadsInProgress(rt),requestFileURLs:this.requestFileURLs}),this.componentRegistry=new ComponentRegistry(this.endpoints),this.pendingElementsTimerRunning=!1,this.pendingElementsBuffer=this.state.elements,this.appNavigation=new AppNavigation(this.hostCommunicationMgr,this.maybeUpdatePageUrl,this.onPageNotFound,this.onPageIconChanged),window.streamlitDebug={clearForwardMsgCache:this.debugClearForwardMsgCache,disconnectWebsocket:this.debugDisconnectWebsocket,shutdownRuntime:this.debugShutdownRuntime}}initializeConnectionManager(){this.connectionManager=new ConnectionManager({sessionInfo:this.sessionInfo,endpoints:this.endpoints,onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged,claimHostAuthToken:this.hostCommunicationMgr.claimAuthToken,resetHostAuthToken:this.hostCommunicationMgr.resetAuthToken,onHostConfigResp:nt=>{const{allowedOrigins:et,useExternalAuthToken:rt,disableFullscreenMode:ot,enableCustomParentMessages:at,mapboxToken:st,enforceDownloadInNewTab:ut,metricsUrl:ct}=nt,pt={allowedOrigins:et,useExternalAuthToken:rt,enableCustomParentMessages:at},dt={mapboxToken:st,disableFullscreenMode:ot,enforceDownloadInNewTab:ut};this.metricsMgr.setMetricsConfig(ct),this.hostCommunicationMgr.setAllowedOrigins(pt),this.setAppConfig(pt),this.setLibConfig(dt)}})}componentDidMount(){this.initializeConnectionManager(),mark(this.state.scriptRunState),this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState}),isScrollingHidden()&&document.body.classList.add("embedded"),isInChildFrame()&&(window.iFrameResizer={heightCalculationMethod:()=>{const nt=document.querySelectorAll("[data-iframe-height]"),et=Array.from(nt).map(rt=>Math.ceil(rt.getBoundingClientRect().bottom));return Math.max(0,...et)}},__vitePreload(()=>import("./iframeResizer.contentWindow.CNHQyyTg.js").then(nt=>nt.i),[],import.meta.url)),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(this.props.theme.activeTheme.emotion)}),this.metricsMgr.enqueue("viewReport"),window.addEventListener("popstate",this.onHistoryChange,!1)}componentDidUpdate(nt,et){window.prerenderReady===!1&&this.isAppInReadyState(et)&&(window.prerenderReady=!0),this.state.scriptRunState!==et.scriptRunState&&(mark(this.state.scriptRunState),this.state.scriptRunState===ScriptRunState.NOT_RUNNING&&measure("script-run-cycle",ScriptRunState.RUNNING,ScriptRunState.NOT_RUNNING),this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState}))}componentWillUnmount(){var nt;(nt=this.connectionManager)==null||nt.disconnect(),this.hostCommunicationMgr.closeHostCommunication(),window.removeEventListener("popstate",this.onHistoryChange,!1)}showError(nt,et){logError(et);const rt={type:DialogType.WARNING,title:nt,msg:et,onClose:()=>{}};this.openDialog(rt)}hasStreamlitVersionChanged(nt){if(this.sessionInfo.isSet){const et=this.sessionInfo.current.streamlitVersion,{environmentInfo:rt}=nt;if(notNullOrUndefined(rt)&&notNullOrUndefined(rt.streamlitVersion))return et!=rt.streamlitVersion}return!1}maybeSetState(nt){if(nt){const[et,rt]=nt;this.setState(et,rt)}}processThemeInput(nt){const et=this.createThemeHash(nt);if(et===this.state.themeHash)return;this.setState({themeHash:et});const rt=!isPresetTheme(this.props.theme.activeTheme);if(nt){const ot=createTheme(CUSTOM_THEME_NAME,nt);this.props.theme.addThemes([ot]),(getCachedTheme()===null||rt)&&this.setAndSendTheme(ot)}else this.props.theme.addThemes([]),rt&&this.setAndSendTheme(getHostSpecifiedTheme())}handleScriptFinished(nt){if(nt===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||nt===ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN||nt===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY){if(window.setTimeout(()=>{this.state.scriptFinishedHandlers.map(et=>et())},0),nt===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||nt===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY){this.setState(({scriptRunId:rt,fragmentIdsThisRun:ot})=>({elements:this.pendingElementsBuffer.clearStaleNodes(rt,ot)}),()=>{this.pendingElementsBuffer=this.state.elements});const et=new Set(Array.from(this.state.elements.getElements()).map(rt=>getElementId(rt)).filter(notUndefined));this.widgetMgr.removeInactive(et)}this.connectionManager!==null&&nt!==ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN&&this.sessionInfo.isSet&&this.connectionManager.incrementMessageCacheRunCount(this.sessionInfo.current.maxCachedMessageAge)}}clearAppState(nt,et,rt,ot){const{hideSidebarNav:at,elements:st}=this.state,ut=at&&st.sidebar||void 0;this.setState({scriptRunId:et,scriptName:rt,appHash:nt,elements:this.appNavigation.clearPageElements(this.pendingElementsBuffer,ot,ut)},()=>{this.pendingElementsBuffer=this.state.elements;const ct=new Set(Array.from(this.state.elements.getElements()).map(pt=>getElementId(pt)).filter(notUndefined));this.widgetMgr.removeInactive(ct)})}openDialog(nt){this.setState({dialog:nt})}render(){const{allowRunOnSave:nt,connectionState:et,dialog:rt,elements:ot,initialSidebarState:at,menuItems:st,isFullScreen:ut,scriptRunId:ct,scriptRunState:pt,userSettings:dt,hideTopBar:ft,hideSidebarNav:bt,expandSidebarNav:ht,currentPageScriptHash:Mt,hostHideSidebarNav:mt,pageLinkBaseUrl:Ot,sidebarChevronDownshift:zt,hostMenuItems:yt,hostToolbarItems:vt,libConfig:At,appConfig:St,inputsDisabled:Et,appPages:Tt,navSections:Rt}=this.state,Ct=showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),wt=classNames("stApp",getEmbeddingIdClassName(this.embeddingId),{"streamlit-embedded":isEmbed(),"streamlit-wide":dt.wideMode}),Lt=rt?StreamlitDialog({...rt,onClose:this.closeDialog}):null,Ht=Et||et!==ConnectionState.CONNECTED;return jsx$1(AppContext.Provider,{value:{initialSidebarState:at,wideMode:dt.wideMode,embedded:isEmbed(),showPadding:!isEmbed()||isPaddingDisplayed(),disableScrolling:isScrollingHidden(),showToolbar:!isEmbed()||isToolbarDisplayed(),showColoredLine:!isEmbed()||isColoredLineDisplayed(),pageLinkBaseUrl:Ot,sidebarChevronDownshift:zt,gitInfo:this.state.gitInfo,appConfig:St},children:jsx$1(LibContext.Provider,{value:{isFullScreen:ut,setFullScreen:this.handleFullScreen,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,activeTheme:this.props.theme.activeTheme,setTheme:this.setAndSendTheme,availableThemes:this.props.theme.availableThemes,addThemes:this.props.theme.addThemes,onPageChange:this.onPageChange,currentPageScriptHash:Mt,libConfig:At,fragmentIdsThisRun:this.state.fragmentIdsThisRun,locale:window.navigator.language},children:jsx$1(ReactHotkeys,{keyName:"r,c,esc",onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,children:jsxs(StyledApp,{className:wt,"data-testid":"stApp","data-test-script-state":ct==INITIAL_SCRIPT_RUN_ID?"initial":pt,"data-test-connection-state":et,children:[jsxs(Header,{children:[!ft&&jsxs(Fragment,{children:[jsx$1(StatusWidget,{connectionState:et,sessionEventDispatcher:this.sessionEventDispatcher,scriptRunState:pt,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:nt}),jsx$1(ToolbarActions,{hostToolbarItems:vt,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,metricsMgr:this.metricsMgr})]}),this.showDeployButton()&&jsx$1(DeployButton,{onClick:this.deployButtonClicked.bind(this)}),jsx$1(MainMenu$1,{isServerConnected:this.isServerConnected(),quickRerunCallback:this.rerunScript,clearCacheCallback:this.openClearCacheDialog,settingsCallback:this.settingsCallback,aboutCallback:this.aboutCallback,printCallback:this.printCallback,screencastCallback:this.screencastCallback,screenCastState:this.props.screenCast.currentState,hostMenuItems:yt,developmentMode:Ct,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,menuItems:st,metricsMgr:this.metricsMgr,toolbarMode:this.state.toolbarMode})]}),jsx$1(AppView,{endpoints:this.endpoints,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,elements:ot,scriptRunId:ct,scriptRunState:pt,widgetMgr:this.widgetMgr,widgetsDisabled:Ht,uploadClient:this.uploadClient,componentRegistry:this.componentRegistry,formsData:this.state.formsData,appLogo:ot.logo,appPages:Tt,navSections:Rt,onPageChange:this.onPageChange,currentPageScriptHash:Mt,hideSidebarNav:bt||mt,expandSidebarNav:ht}),Lt]})})})})}}const AppWithScreencast=withScreencast(App);function useThemeManager(){const tt=getDefaultTheme(),[nt,et]=reactExports.useState(tt),[rt,ot]=reactExports.useState([]),[at,st]=reactExports.useState([...createPresetThemes(),...isPresetTheme(tt)?[]:[tt]]),ut=ft=>{st([...createPresetThemes(),...ft])},ct=reactExports.useCallback(ft=>{ft!==nt&&(et(ft),ft.name===AUTO_THEME_NAME?removeCachedTheme():setCachedTheme(ft))},[et,nt]),pt=reactExports.useCallback(()=>{nt.name===AUTO_THEME_NAME&&ct(getHostSpecifiedTheme());const ft=at.filter(bt=>bt.name!==AUTO_THEME_NAME);st([createAutoTheme(),...ft])},[nt.name,at,ct]),dt=reactExports.useCallback(ft=>{ft.fontFaces&&ot(ft.fontFaces);const bt=new CustomThemeConfig(ft),ht=createTheme(CUSTOM_THEME_NAME,bt);ct(ht)},[ot,ct]);return reactExports.useEffect(()=>{const ft=window.matchMedia("(prefers-color-scheme: dark)");return ft.addEventListener("change",pt),window.addEventListener("afterprint",pt),()=>{window.removeEventListener("afterprint",pt),ft.removeEventListener("change",pt)}},[nt,at,pt]),[{setTheme:ct,activeTheme:nt,addThemes:ut,availableThemes:at,setImportedTheme:dt},rt]}const ThemedApp=({streamlitExecutionStartedAt:tt})=>{const[nt,et]=useThemeManager(),{activeTheme:rt}=nt,ot=rt.name===CUSTOM_THEME_NAME&&et.length>0;return jsx$1(RootStyleProvider,{theme:rt,children:jsx$1(WindowDimensionsProvider,{children:jsxs(PortalProvider,{children:[ot&&jsx$1(FontFaceDeclaration,{fontFaces:et}),jsx$1(AppWithScreencast,{theme:nt,streamlitExecutionStartedAt:tt})]})})})},streamlitExecutionStartedAt=Date.now(),engine=new StyletronClient({prefix:"st-"});ReactDOM.render(jsx$1(Provider$1,{value:engine,children:jsx$1(ThemedApp,{streamlitExecutionStartedAt})}),document.getElementById("root"));export{convertTimeToDate as $,isNullOrUndefined$1 as A,merge$6 as B,numbro$1 as C,notNullOrUndefined as D,EmotionIconBase as E,Fragment as F,hooks as G,getTimezone as H,moment$1 as I,isIntegerType as J,isUnsignedIntegerType as K,isDurationType as L,isPeriodType as M,format as N,isBooleanType as O,PortalContext as P,_baseKeys as Q,React$1 as R,_getTag as S,isArguments_1 as T,isArray_1 as U,isArrayLike_1 as V,isBufferExports as W,_isPrototype as X,isTypedArray_1 as Y,isTimeType as Z,_extends$Q as _,range$1 as a,DEFAULT_IFRAME_SANDBOX_POLICY as a$,isDecimalType as a0,isStringType as a1,isEmptyType as a2,isDatetimeType as a3,isDateType as a4,isObjectType as a5,isBytesType as a6,isNumericType as a7,isCategoricalType as a8,isListType as a9,getGray30 as aA,getCategoricalColorsArray as aB,getDivergingColorsArray as aC,getSequentialColorsArray as aD,getBlue80 as aE,debounce$4 as aF,Global as aG,_baseMerge as aH,_createAssigner as aI,withTheme as aJ,DynamicIcon as aK,toaster as aL,Kind as aM,AlertElement as aN,_assertThisInitialized$e as aO,StyledInlineCode as aP,ErrorElement as aQ,axios as aR,Skeleton$1 as aS,Skeleton as aT,hoistNonReactStatics$2 as aU,ensureError as aV,lib$3 as aW,parseToRgba as aX,DeckGlJsonChart$1 as aY,_unsupportedIterableToArray$l as aZ,DEFAULT_IFRAME_FEATURE_POLICY as a_,isRangeIndexType as aa,useTheme as ab,Arrow$2 as ac,logError as ad,isArray$k as ae,_defineProperty$u as af,_objectWithoutProperties$o as ag,_typeof$g as ah,jsx as ai,css$2 as aj,_toConsumableArray$3 as ak,transparentize as al,convertRemToPx as am,mix$1 as an,logWarning as ao,isEqual$1 as ap,StyledTooltipContentWrapper as aq,StreamlitMarkdown$1 as ar,PLACEMENT as as,ACCESSIBILITY_TYPE as at,hasLightBackgroundColor as au,Popover$1 as av,LibContext as aw,jsxs as ax,Resizable as ay,getGray70 as az,reactDomExports as b,toPropertyKey as b$,darken as b0,BaseButtonSize as b1,BaseButtonKind as b2,BaseButtonTooltip as b3,DynamicButtonLabel as b4,IsSidebarContext as b5,Placement as b6,getGray90 as b7,getIncreasingGreen as b8,getDecreasingRed as b9,isFocusVisible as bA,getOverride as bB,getOverrideProps as bC,Checkbox$1 as bD,StyledContent as bE,StyledCheckbox$1 as bF,BaseColorPicker as bG,useStyletron as bH,mergeOverride as bI,toObjectOverride as bJ,Icon$1 as bK,UIDConsumer as bL,StatefulMenu as bM,mergeOverrides as bN,ChevronDown$1 as bO,ThemeContext as bP,forkFocus as bQ,forkBlur as bR,Select as bS,without$1 as bT,fuzzyFilterSelectOptions as bU,TYPE as bV,VirtualDropdown as bW,isPresetTheme as bX,classNames as bY,UISelectbox as bZ,isValidFormId as b_,PlotlyChart$1 as ba,keysToSnakeCase as bb,WindowDimensionsContext as bc,Video$1 as bd,zip$1 as be,FileUploaderState as bf,UploadedFileInfo as bg,StyledSpinner as bh,ENABLE_PERIPHERALS_DOCS_URL as bi,Icon$2 as bj,BaseButton as bk,blend as bl,labelVisibilityProtoValueToEnum as bm,TooltipIcon as bn,WidgetLabel as bo,Tooltip as bp,styled as bq,getOverrides as br,LocaleContext as bs,ButtonGroup$1 as bt,LabelVisibilityMessage as bu,StyledWidgetLabelHelpInline as bv,themeColors as bw,isMobile_1 as bx,CAMERA_PERMISSION_URL as by,StyledWidgetLabelHelp as bz,_hasPath as c,_setPrototypeOf$e as c0,hexToRgb as c1,withWrapper as c2,StyledWidgetInstructions as c3,isFromMac as c4,CUSTOM_INPUT_TYPE as c5,SIZE$1 as c6,DeleteAlt$1 as c7,ADJOINED as c8,filterOptions as c9,ENHANCER_POSITION as ca,pick$1 as cb,Slider$2 as cc,isFromWindows as cd,__awaiter as ce,__generator as cf,__spread as cg,PropTypes as ch,ChevronLeft as ci,ChevronRight as cj,isInForm as ck,toString_1 as cl,TextInput$1 as cm,ThemeProvider$1 as cn,createThemedStyled as co,createThemedUseStyletron as cp,createThemedWithStyle as cq,expandBorderStyles as cr,withStyle as cs,getAugmentedNamespace as ct,reactIsExports$1 as cu,NumberInput$1 as cv,commonjsGlobal$1 as d,classnamesExports as e,_root as f,getDefaultExportFromCjs$1 as g,isObject_1 as h,isPropValid as i,jsx$1 as j,keyframes as k,_Set as l,_setToArray as m,newStyled as n,_SetCache as o,propTypesExports as p,_arrayIncludes as q,reactExports as r,_arrayIncludesWith as s,toNumber_1 as t,_cacheHas as u,groupBy$1 as v,__vitePreload as w,flatten$2 as x,require$$0 as y,toString$9 as z};
798
+ Event: ${nt}`)}async pingServer(){this.uriIndex=await doInitPings(this.args.baseUriPartsList,PING_MINIMUM_RETRY_PERIOD_MS,PING_MAXIMUM_RETRY_PERIOD_MS,this.args.onRetry,this.args.onHostConfigResp),this.stepFsm("SERVER_PING_SUCCEEDED")}async getSessionTokens(){var rt,ot;const nt=await this.args.claimHostAuthToken(),et=getCookie("_streamlit_xsrf");return this.args.resetHostAuthToken(),[nt??et??"PLACEHOLDER_AUTH_TOKEN",...(rt=this.args.sessionInfo.last)!=null&&rt.sessionId?[(ot=this.args.sessionInfo.last)==null?void 0:ot.sessionId]:[]]}async connectToWebSocket(){const nt=buildWsUri(this.args.baseUriPartsList[this.uriIndex],WEBSOCKET_STREAM_PATH);if(notNullOrUndefined(this.websocket))throw new Error("Websocket already exists");const et=await this.getSessionTokens();this.websocket=new WebSocket(nt,["streamlit",...et]),this.websocket.binaryType="arraybuffer",this.setConnectionTimeout(nt);const rt=this.websocket,ot=()=>rt===this.websocket;this.websocket.addEventListener("message",at=>{ot()&&this.handleMessage(at.data).catch(st=>{const ut=`Failed to process a Websocket message (${st})`;logError(LOG,ut),this.stepFsm("FATAL_ERROR",ut)})}),this.websocket.addEventListener("open",()=>{ot()&&this.stepFsm("CONNECTION_SUCCEEDED")}),this.websocket.addEventListener("close",()=>{ot()&&(this.closeConnection(),this.stepFsm("CONNECTION_CLOSED"))}),this.websocket.addEventListener("error",()=>{ot()&&(logError(LOG,"WebSocket onerror"),this.closeConnection(),this.stepFsm("CONNECTION_ERROR"))})}setConnectionTimeout(nt){if(notNullOrUndefined(this.wsConnectionTimeoutId))throw new Error("WS timeout is already set");const et=this.websocket;this.wsConnectionTimeoutId=window.setTimeout(()=>{if(et===this.websocket&&!isNullOrUndefined$1(this.wsConnectionTimeoutId)){if(isNullOrUndefined$1(this.websocket)){this.closeConnection(),this.stepFsm("FATAL_ERROR","Null Websocket in setConnectionTimeout");return}this.websocket.readyState===0&&(this.closeConnection(),this.stepFsm("CONNECTION_TIMED_OUT"))}},WEBSOCKET_TIMEOUT_MS),logMessage(LOG,`Set WS timeout ${this.wsConnectionTimeoutId}`)}closeConnection(){this.websocket&&(this.websocket.close(),this.websocket=void 0),notNullOrUndefined(this.wsConnectionTimeoutId)&&(logMessage(LOG,`Clearing WS timeout ${this.wsConnectionTimeoutId}`),window.clearTimeout(this.wsConnectionTimeoutId),this.wsConnectionTimeoutId=void 0)}sendMessage(nt){if(!this.websocket)return;const et=BackMsg.create(nt),rt=BackMsg.encode(et).finish();this.websocket.send(rt)}incrementMessageCacheRunCount(nt){this.cache.incrementRunCount(nt)}async handleMessage(nt){const et=this.nextMessageIndex;this.nextMessageIndex+=1,PerformanceEvents.record({name:"BeginHandleMessage",messageIndex:et});const rt=new Uint8Array(nt),ot=ForwardMsg.decode(rt);for(PerformanceEvents.record({name:"DecodedMessage",messageIndex:et,messageType:ot.type,len:nt.byteLength}),this.messageQueue[et]=await this.cache.processMessagePayload(ot,rt),PerformanceEvents.record({name:"GotCachedPayload",messageIndex:et});this.lastDispatchedMessageIndex+1 in this.messageQueue;){const at=this.lastDispatchedMessageIndex+1;this.args.onMessage(this.messageQueue[at]),PerformanceEvents.record({name:"DispatchedMessage",messageIndex:at,messageType:this.messageQueue[at].type}),delete this.messageQueue[at],this.lastDispatchedMessageIndex=at}}}const RETRY_COUNT_FOR_WARNING=6;class ConnectionManager{constructor(nt){this.connectionState=ConnectionState.INITIAL,this.setConnectionState=(et,rt)=>{this.connectionState!==et&&(this.connectionState=et,this.props.connectionStateChanged(et)),rt&&this.props.onConnectionError(rt)},this.showRetryError=(et,rt,ot)=>{et===RETRY_COUNT_FOR_WARNING&&this.props.onConnectionError(rt)},this.props=nt,this.connect()}isConnected(){return this.connectionState===ConnectionState.CONNECTED}getBaseUriParts(){if(this.connection instanceof WebsocketConnection)return this.connection.getBaseUriParts()}sendMessage(nt){this.connection instanceof WebsocketConnection&&this.isConnected()?this.connection.sendMessage(nt):logError(`Cannot send message when server is disconnected: ${nt}`)}incrementMessageCacheRunCount(nt){this.connection instanceof WebsocketConnection&&this.connection.incrementMessageCacheRunCount(nt)}async connect(){try{this.connection=await this.connectToRunningServer()}catch(nt){const et=ensureError(nt);logError(et.message),this.setConnectionState(ConnectionState.DISCONNECTED_FOREVER,et.message)}}disconnect(){var nt;(nt=this.connection)==null||nt.disconnect()}connectToRunningServer(){const nt=getPossibleBaseUris();return new WebsocketConnection({sessionInfo:this.props.sessionInfo,endpoints:this.props.endpoints,baseUriPartsList:nt,onMessage:this.props.onMessage,onConnectionStateChange:this.setConnectionState,onRetry:this.showRetryError,claimHostAuthToken:this.props.claimHostAuthToken,resetHostAuthToken:this.props.resetHostAuthToken,onHostConfigResp:this.props.onHostConfigResp})}}class SessionEventDispatcher{constructor(){this.onSessionEvent=new dist.Signal}handleSessionEventMsg(nt){this.onSessionEvent.emit(nt)}}const MEDIA_ENDPOINT="/media",UPLOAD_FILE_ENDPOINT="/_stcore/upload_file",COMPONENT_ENDPOINT_BASE="/component",FORWARD_MSG_CACHE_ENDPOINT="/_stcore/message";class DefaultStreamlitEndpoints{constructor(nt){this.getServerUri=nt.getServerUri,this.csrfEnabled=nt.csrfEnabled}buildComponentURL(nt,et){return buildHttpUri(this.requireServerUri(),`${COMPONENT_ENDPOINT_BASE}/${nt}/${et}`)}setFileUploadClientConfig({prefix:nt,headers:et}){this.fileUploadClientConfig={prefix:nt,headers:et}}buildMediaURL(nt){return nt.startsWith(MEDIA_ENDPOINT)?buildHttpUri(this.requireServerUri(),nt):nt}buildFileUploadURL(nt){return this.fileUploadClientConfig?makePath(this.fileUploadClientConfig.prefix,nt):nt.startsWith(UPLOAD_FILE_ENDPOINT)?buildHttpUri(this.requireServerUri(),nt):nt}buildAppPageURL(nt,et){const rt=et.urlPathname,ot=et.isDefault?"":rt;if(notNullOrUndefined(nt)&&nt.length>0)return`${nt}/${ot}`;const{port:at,protocol:st}=window.location,{basePath:ut,host:ct}=this.requireServerUri(),pt=at?`:${at}`:"",dt=ut?`${ut}/`:"";return`${st}//${ct}${pt}/${dt}${ot}`}async uploadFileUploaderFile(nt,et,rt,ot,at){const st=new FormData;st.append(et.name,et);const ut=this.getAdditionalHeaders();return this.csrfRequest(this.buildFileUploadURL(nt),{cancelToken:at,method:"PUT",data:st,responseType:"text",headers:ut,onUploadProgress:ot}).then(()=>{})}getAdditionalHeaders(){let nt={};return this.fileUploadClientConfig&&(nt={...nt,...this.fileUploadClientConfig.headers}),nt}async deleteFileAtURL(nt,et){const rt=this.getAdditionalHeaders();return this.csrfRequest(this.buildFileUploadURL(nt),{method:"DELETE",data:{sessionId:et},headers:rt}).then(()=>{})}async fetchCachedForwardMsg(nt){const et=this.requireServerUri(),rt=await axios.request({url:buildHttpUri(et,`${FORWARD_MSG_CACHE_ENDPOINT}?hash=${nt}`),method:"GET",responseType:"arraybuffer"});return new Uint8Array(rt.data)}requireServerUri(){const nt=this.getServerUri();if(notNullOrUndefined(nt))return this.cachedServerUri=nt,nt;if(notNullOrUndefined(this.cachedServerUri))return this.cachedServerUri;throw new Error("not connected to a server!")}csrfRequest(nt,et){if(et.url=nt,this.csrfEnabled){const rt=getCookie("_streamlit_xsrf");notNullOrUndefined(rt)&&(et.headers={"X-Xsrftoken":rt,...et.headers||{}},et.withCredentials=!0)}return axios.request(et)}}var assignValue=_assignValue,castPath$1=_castPath,isIndex=_isIndex,isObject=isObject_1,toKey=_toKey;function baseSet$1(tt,nt,et,rt){if(!isObject(tt))return tt;nt=castPath$1(nt,tt);for(var ot=-1,at=nt.length,st=at-1,ut=tt;ut!=null&&++ot<at;){var ct=toKey(nt[ot]),pt=et;if(ct==="__proto__"||ct==="constructor"||ct==="prototype")return tt;if(ot!=st){var dt=ut[ct];pt=rt?rt(dt,ct,ut):void 0,pt===void 0&&(pt=isObject(dt)?dt:isIndex(nt[ot+1])?[]:{})}assignValue(ut,ct,pt),ut=ut[ct]}return tt}var _baseSet=baseSet$1,baseGet=_baseGet,baseSet=_baseSet,castPath=_castPath;function basePickBy$1(tt,nt,et){for(var rt=-1,ot=nt.length,at={};++rt<ot;){var st=nt[rt],ut=baseGet(tt,st);et(ut,st)&&baseSet(at,castPath(st,tt),ut)}return at}var _basePickBy=basePickBy$1,basePickBy=_basePickBy,hasIn=hasIn_1;function basePick$1(tt,nt){return basePickBy(tt,nt,function(et,rt){return hasIn(tt,rt)})}var _basePick=basePick$1,basePick=_basePick,flatRest=_flatRest,pick=flatRest(function(tt,nt){return tt==null?{}:basePick(tt,nt)}),pick_1=pick;const pick$1=getDefaultExportFromCjs$1(pick_1),DEFAULT_METRICS_CONFIG="https://data.streamlit.io/metrics.json";class MetricsManager{constructor(nt){this.initialized=!1,this.actuallySendMetrics=!1,this.metricsUrl=void 0,this.sendMessageToHost=()=>{},this.anonymousId="",this.pendingEvents=[],this.appHash="Not initialized",this.metadata={},this.setAppHash=et=>{this.appHash=et},this.setMetricsConfig=(et="")=>{this.metricsUrl=et},this.sessionInfo=nt}async initialize({gatherUsageStats:nt,sendMessageToHost:et}){this.sendMessageToHost=et,this.actuallySendMetrics=nt&&this.metricsUrl!=="off",this.getAnonymousId(),this.actuallySendMetrics&&!this.metricsUrl&&(await this.requestDefaultMetricsConfig(),this.metricsUrl||(logError("Undefined metrics config - deactivating metrics tracking."),this.actuallySendMetrics=!1)),this.actuallySendMetrics&&this.sendPendingEvents(),logAlways("Gather usage stats: ",this.actuallySendMetrics),this.initialized=!0}enqueue(nt,et={}){if(!this.initialized||!this.sessionInfo.isSet){this.pendingEvents.push([nt,et]);return}this.actuallySendMetrics&&(this.pendingEvents.length&&this.sendPendingEvents(),this.send(nt,et))}setMetadata(nt){this.metadata=nt}async requestDefaultMetricsConfig(){const nt=localStorageAvailable();if(nt){const et=window.localStorage.getItem("stMetricsConfig");if(et){this.metricsUrl=et;return}}try{const et=await fetch(DEFAULT_METRICS_CONFIG,{signal:AbortSignal.timeout(5e3)});if(!et.ok)this.metricsUrl=void 0,logError("Failed to fetch metrics config: ",et.status);else{const rt=await et.json();this.metricsUrl=rt.url??void 0,nt&&this.metricsUrl&&window.localStorage.setItem("stMetricsConfig",this.metricsUrl)}}catch(et){logError("Failed to fetch metrics config:",et)}}send(nt,et={}){const rt=this.buildEventProto(nt,et);this.metricsUrl==="postMessage"?this.postMessageEvent(nt,rt):this.track(rt)}sendPendingEvents(){this.pendingEvents.forEach(([nt,et])=>{this.send(nt,et)}),this.pendingEvents=[]}async track(nt){const et=new Request(this.metricsUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(nt.toJSON())});await fetch(et)}postMessageEvent(nt,et){this.sendMessageToHost({type:"METRICS_EVENT",eventName:nt,data:et})}buildEventProto(nt,et){const rt=new MetricsEvent({event:nt,anonymousId:this.anonymousId,...this.getHostTrackingData(),...this.getInstallationData(),reportHash:this.appHash,dev:IS_DEV_ENV,source:"browser",streamlitVersion:this.sessionInfo.current.streamlitVersion,isHello:this.sessionInfo.isHello,...this.getContextData()});if(nt==="menuClick")rt.label=et.label;else if(nt==="pageProfile")return new MetricsEvent({...rt,...et});return rt}getInstallationData(){return{machineIdV3:this.sessionInfo.current.installationIdV3}}getHostTrackingData(){return this.metadata?pick$1(this.metadata,["hostedAt","owner","repo","branch","mainModule","creatorId"]):{}}getContextData(){return{contextPageUrl:window.location.href,contextPageTitle:document.title,contextPagePath:window.location.pathname,contextPageReferrer:document.referrer,contextPageSearch:window.location.search,contextLocale:window.navigator.language,contextUserAgent:window.navigator.userAgent}}getAnonymousId(){if(!this.actuallySendMetrics)return;const nt="ajs_anonymous_id",et=localStorageAvailable(),rt=getCookie(nt),ot=et?window.localStorage.getItem(nt):null,at=new Date;at.setFullYear(new Date().getFullYear()+1),rt?(this.anonymousId=rt,et&&window.localStorage.setItem(nt,rt)):ot?(this.anonymousId=JSON.parse(ot),setCookie(nt,this.anonymousId,at)):(this.anonymousId=v4(),setCookie(nt,this.anonymousId,at),et&&window.localStorage.setItem(nt,this.anonymousId))}}const StyledApp=newStyled("div",{target:"ee4bbma0"})(({theme:tt})=>{const nt=hasLightBackgroundColor(tt);return{position:"absolute",background:tt.colors.bgColor,color:tt.colors.bodyText,top:tt.spacing.none,left:tt.spacing.none,right:tt.spacing.none,bottom:tt.spacing.none,colorScheme:nt?"light":"dark",overflow:"hidden","@media print":{float:"none",height:tt.sizes.full,position:"static",overflow:"visible"}}}),StyledRecordAudioLabel=newStyled("label",{target:"ej964cx0"})({margin:0}),StyledInstruction=newStyled("p",{target:"ej964cx1"})({margin:0}),ScreencastDialog=({onClose:tt,toggleRecordAudio:nt,recordAudio:et,startRecording:rt})=>{const[ot,at]=reactExports.useState(et),st=reactExports.useCallback(ct=>{const{checked:pt}=ct.target;pt!==ot&&(at(pt),nt())},[ot,nt]),ut=reactExports.useCallback(()=>{rt(),tt()},[rt,tt]);return jsxs(Modal,{isOpen:!0,onClose:tt,children:[jsx$1(ModalHeader,{children:"Record a screencast"}),jsxs(ModalBody$1,{children:[jsx$1("p",{children:"This will record a video with the contents of your screen, so you can easily share what you're seeing with others."}),jsx$1("p",{children:jsxs(StyledRecordAudioLabel,{"data-testid":"stScreencastAudioCheckbox",children:[jsx$1("input",{type:"checkbox",name:"recordAudio",checked:ot,onChange:st})," ","Also record audio"]})}),jsx$1(StyledInstruction,{"data-testid":"stScreencastInstruction",children:jsx$1(StreamlitMarkdown$1,{source:"Press `Esc` any time to stop recording.",allowHTML:!1})})]}),jsx$1(ModalFooter,{children:jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:ut,children:"Start recording!"})})]})},StyledVideo=newStyled("video",{target:"emkt0dj0"})(({theme:tt})=>({width:tt.sizes.full,borderRadius:tt.radii.md})),StyledDialogContainer=newStyled("div",{target:"emkt0dj1"})(({theme:tt})=>({display:"flex",flexDirection:"column",width:tt.sizes.full})),StyledRow=newStyled("div",{target:"emkt0dj2"})(({theme:tt})=>({display:"flex",flexDirection:"row",paddingTop:tt.spacing.md,paddingBottom:tt.spacing.md})),StyledFirstColumn=newStyled("div",{target:"emkt0dj3"})(({theme:tt})=>({paddingRight:tt.spacing.lg,textAlign:"right",color:tt.colors.gray,fontWeight:tt.fontWeights.bold,width:"6em"})),StyledSecondColumn=newStyled("div",{target:"emkt0dj4"})(({theme:tt})=>({flex:1,paddingRight:tt.spacing.lg,marginRight:"6em",[`@media (max-width: ${tt.breakpoints.sm})`]:{marginRight:tt.spacing.none}})),StyledVideoFormatInstructions=newStyled("p",{target:"emkt0dj5"})(({theme:tt})=>({marginTop:tt.spacing.sm,marginBottom:tt.spacing.none,fontSize:tt.fontSizes.sm})),StyledDownloadButtonContainer=newStyled("div",{target:"emkt0dj6"})(({theme:tt})=>({marginTop:tt.spacing.twoXS})),VideoRecordedDialog=({onClose:tt,videoBlob:nt,fileName:et})=>{const rt=URL.createObjectURL(nt),ot=()=>{const at=document.createElement("a");at.setAttribute("href",rt),at.setAttribute("download",`${et}.webm`),at.click(),tt()};return jsxs(Modal,{isOpen:!0,onClose:tt,overrides:{Dialog:{style:{width:"80vw"}}},children:[jsx$1(ModalHeader,{children:"Next steps"}),jsx$1(ModalBody$1,{children:jsxs(StyledDialogContainer,{"data-testid":"stVideoRecordedDialog",children:[jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 1"}),jsxs(StyledSecondColumn,{children:[jsx$1("p",{children:"Preview your video below:"}),jsx$1(StyledVideo,{src:rt,controls:!0})]})]}),jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 2"}),jsxs(StyledSecondColumn,{children:[jsx$1(StyledDownloadButtonContainer,{children:jsx$1(BaseButton,{kind:BaseButtonKind.SECONDARY,onClick:ot,children:"Save video to disk"})}),jsxs(StyledVideoFormatInstructions,{children:["This video is encoded in the"," ",jsx$1("a",{href:"https://www.webmproject.org/",children:"WebM format"}),", which is only supported by newer video players. You can also play it by dragging the file directly into your browser."]})]})]}),jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 3"}),jsxs(StyledSecondColumn,{children:["Share your video with the world on Twitter, LinkedIn, YouTube, or just plain email!"," ",jsx$1("span",{role:"img","aria-label":"Happy",children:"😀"})]})]})]})})]})},StyledScreenCastWarningDialog=newStyled("div",{target:"e1o5y2010"})({display:"flex"}),StyledUnsupportedScreenCastIcon=newStyled("div",{target:"e1o5y2011"})(({theme:tt})=>({display:"flex",alignItems:"center",justifyItems:"center",marginRight:tt.spacing.twoXL,marginLeft:tt.spacing.sm,fontSize:tt.fontSizes.fourXL})),StyledUnsupportedScreenCastExplanation=newStyled("p",{target:"e1o5y2012"})(({theme:tt})=>({margin:tt.spacing.none})),UnsupportedBrowserDialog=({onClose:tt})=>jsxs(Modal,{isOpen:!0,onClose:tt,children:[jsx$1(ModalHeader,{children:"Record a screencast"}),jsx$1(ModalBody$1,{children:jsxs(StyledScreenCastWarningDialog,{"data-testid":"stUnsupportedBrowserDialog",children:[jsx$1(StyledUnsupportedScreenCastIcon,{children:jsx$1("span",{role:"img","aria-label":"Alien Monster",children:"👾"})}),jsx$1(StyledUnsupportedScreenCastExplanation,{children:"Due to limitations with some browsers, this feature is only supported on recent desktop versions of Chrome, Firefox, and Edge."})]})})]}),UnsupportedBrowserDialog$1=reactExports.memo(UnsupportedBrowserDialog),screencastCounterAnimation=keyframes("0%{opacity:0;}25%{opacity:1;}100%{opacity:0;}"),StyledCountdown=newStyled("div",{target:"evez3ra0"})(({theme:tt})=>({position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:0,left:0,width:tt.sizes.full,height:tt.sizes.full,fontSize:"40vh",color:tt.colors.red,fontWeight:tt.fontWeights.bold,opacity:"0.8",textShadow:`1px 1px 10px ${tt.colors.darkGray}`,transition:"opacity 0.3s ease-in-out",animation:`${screencastCounterAnimation} 1s`})),Countdown=({countdown:tt,endCallback:nt})=>{const[et,rt]=reactExports.useState(tt);return jsx$1(StyledCountdown,{"data-testid":"stCountdown",onAnimationEnd:()=>{const at=et-1;at>=0&&rt(at),at===0&&nt()},children:jsx$1("span",{children:et})},`frame${et}`)};function withScreencast(tt){const et=class et extends reactExports.PureComponent{constructor(){super(...arguments),this.state={fileName:"streamlit-screencast",recordAudio:!1,currentState:this.props.testOverride||"OFF"},this.toggleRecordAudio=()=>{const{recordAudio:ot}=this.state;this.setState({recordAudio:!ot})},this.showDialog=ot=>{const{currentState:at}=this.state;ScreenCastRecorder.isSupportedBrowser()?at==="OFF"?this.setState({fileName:ot,currentState:"SETUP"}):this.stopRecording().catch(st=>logWarning(`withScreencast.stopRecording threw an error: ${st}`)):this.setState({currentState:"UNSUPPORTED"})},this.startRecording=async()=>{const{recordAudio:ot}=this.state;this.recorder=new ScreenCastRecorder({recordAudio:ot,onErrorOrStop:()=>this.stopRecording()});try{await this.recorder.initialize()}catch{this.setState({currentState:"UNSUPPORTED"});return}this.setState({currentState:"COUNTDOWN"})},this.stopRecording=async()=>{let ot;const{currentState:at}=this.state;at==="OFF"||isNullOrUndefined$1(this.recorder)||(at==="COUNTDOWN"&&this.setState({currentState:"OFF"}),at==="RECORDING"&&(this.recorder.getState()==="inactive"?this.setState({currentState:"OFF"}):(ot=await this.recorder.stop(),this.setState({outputBlob:ot,currentState:"PREVIEW_FILE"}))))},this.onCountdownEnd=async()=>{if(isNullOrUndefined$1(this.recorder))throw new Error("Countdown finished but recorder is null");this.recorder.start()?this.setState({currentState:"RECORDING"}):this.stopRecording().catch(at=>logWarning(`withScreencast.stopRecording threw an error: ${at}`))},this.getScreenCastProps=()=>({currentState:this.state.currentState,toggleRecordAudio:this.toggleRecordAudio,startRecording:this.showDialog,stopRecording:this.stopRecording}),this.closeDialog=()=>{this.setState({currentState:"OFF"})},this.render=()=>{const{outputBlob:ot,fileName:at,recordAudio:st,currentState:ut}=this.state;return jsxs("div",{className:"withScreencast","data-testid":"stScreencast",children:[jsx$1(tt,{...this.props,screenCast:this.getScreenCastProps()}),ut==="UNSUPPORTED"&&jsx$1(UnsupportedBrowserDialog$1,{onClose:this.closeDialog}),ut==="SETUP"&&jsx$1(ScreencastDialog,{recordAudio:st,onClose:this.closeDialog,startRecording:this.startRecording,toggleRecordAudio:this.toggleRecordAudio}),ut==="COUNTDOWN"&&jsx$1(Countdown,{countdown:3,endCallback:this.onCountdownEnd}),ut==="PREVIEW_FILE"&&ot&&jsx$1(VideoRecordedDialog,{onClose:this.closeDialog,videoBlob:ot,fileName:at})]})}}};et.displayName=`withScreencast(${tt.displayName||tt.name})`;let nt=et;return hoistNonReactStatics$2(nt,tt)}const showDevelopmentOptions=(tt,nt)=>nt==Config.ToolbarMode.DEVELOPER?!0:Config.ToolbarMode.VIEWER==nt||Config.ToolbarMode.MINIMAL==nt?!1:tt||isLocalhost();function getTitle(tt){return tt||"Streamlit"}class StrategyV1{constructor(nt){this.appNav=nt,this.appPages=[],this.currentPageScriptHash=null,this.hideSidebarNav=null}handleNewSession(nt){var st,ut;this.appPages=nt.appPages,this.currentPageScriptHash=nt.pageScriptHash,this.hideSidebarNav=((st=nt.config)==null?void 0:st.hideSidebarNav)??!1;const et=this.appPages[0],rt=et.urlPathname??"",ot=((ut=this.appPages.find(ct=>ct.pageScriptHash===this.currentPageScriptHash))==null?void 0:ut.urlPathname)??"",at=et.pageScriptHash===this.currentPageScriptHash;return this.appNav.onUpdatePageUrl(rt,ot,at),document.title=getTitle(ot??""),[{hideSidebarNav:this.hideSidebarNav,appPages:this.appPages,currentPageScriptHash:this.currentPageScriptHash},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:this.appPages}),this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:at?"":ot,currentPageScriptHash:this.currentPageScriptHash})}]}handlePagesChanged(nt){const{appPages:et}=nt;return[{appPages:et},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:et})}]}handlePageNotFound(nt){var ot;const{pageName:et}=nt;this.appNav.onPageNotFound(et);const rt=((ot=this.appPages[0])==null?void 0:ot.pageScriptHash)??"";return this.currentPageScriptHash=rt,[{currentPageScriptHash:rt},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:rt})}]}handleNavigation(nt){}findPageByUrlPath(nt){return this.appPages.length===0?null:this.appPages.find(et=>nt.endsWith("/"+et.urlPathname))??this.appPages[0]}clearPageElements(nt,et,rt){return AppRoot.empty(et,!1,rt,nt.logo)}}class StrategyV2{constructor(nt){this.appNav=nt,this.mainScriptHash=null,this.appPages=[],this.mainPage=null,this.hideSidebarNav=null}handleNewSession(nt){var et;return this.mainScriptHash=nt.mainScriptHash,this.hideSidebarNav===null&&(this.hideSidebarNav=((et=nt.config)==null?void 0:et.hideSidebarNav)??null),document.title=getTitle(""),[{hideSidebarNav:this.hideSidebarNav??!1},()=>{}]}handlePagesChanged(nt){}handlePageNotFound(nt){const{pageName:et}=nt;return this.appNav.onPageNotFound(et),[{currentPageScriptHash:this.mainScriptHash??""},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:this.mainScriptHash??""})}]}handleNavigation(nt){const{sections:et,position:rt,appPages:ot}=nt;this.appPages=ot,this.hideSidebarNav=rt===Navigation.Position.HIDDEN;const at=nt.pageScriptHash,st=ot.find(pt=>pt.pageScriptHash===at),ut=ot.find(pt=>pt.isDefault);this.mainPage=ut;const ct=st.urlPathname;if(!this.appNav.isPageTitleSet){const pt=getTitle(st.pageName);document.title=pt,this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:st.pageName??""})}return!this.appNav.isPageIconSet&&st.icon&&this.appNav.onPageIconChange(st.icon),this.appNav.onUpdatePageUrl(ut.urlPathname??"",ct,st.isDefault??!1),[{appPages:ot,navSections:et,hideSidebarNav:this.hideSidebarNav,expandSidebarNav:nt.expanded,currentPageScriptHash:at},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:ot}),this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:st.isDefault?"":ct,currentPageScriptHash:at})}]}findPageByUrlPath(nt){return this.appPages.find(et=>nt.endsWith("/"+et.urlPathname))??this.mainPage}clearPageElements(nt,et,rt){return nt.filterMainScriptElements(et)}}class AppNavigation{constructor(nt,et,rt,ot){this.hostCommunicationMgr=nt,this.onUpdatePageUrl=et,this.onPageNotFound=rt,this.onPageIconChange=ot,this.isPageIconSet=!1,this.isPageTitleSet=!1,this.strategy=new StrategyV1(this)}handleNewSession(nt){return this.isPageTitleSet=!1,this.isPageIconSet=!1,this.strategy.handleNewSession(nt)}handleNavigation(nt){return this.strategy instanceof StrategyV1&&(this.strategy=new StrategyV2(this)),this.strategy.handleNavigation(nt)}handlePagesChanged(nt){return this.strategy.handlePagesChanged(nt)}handlePageNotFound(nt){return this.strategy.handlePageNotFound(nt)}findPageByUrlPath(nt){return this.strategy.findPageByUrlPath(nt)}handlePageConfigChanged(nt){this.isPageIconSet=!!nt.favicon,this.isPageTitleSet=!!nt.title}clearPageElements(nt,et,rt){return this.strategy.clearPageElements(nt,et,rt)}}const ELEMENT_LIST_BUFFER_TIMEOUT_MS=10,INITIAL_SCRIPT_RUN_ID="<null>";class App extends reactExports.PureComponent{constructor(nt){super(nt),this.sessionInfo=new SessionInfo,this.metricsMgr=new MetricsManager(this.sessionInfo),this.sessionEventDispatcher=new SessionEventDispatcher,this.embeddingId=generateUID$2(),this.showDeployError=(rt,ot,at)=>{this.openDialog({type:DialogType.DEPLOY_ERROR,title:rt,msg:ot,onContinue:at,onClose:()=>{},onTryAgain:this.sendLoadGitInfoBackMsg})},this.handleThemeMessage=(rt,ot)=>{const[,at,st]=createPresetThemes(),ut=isPresetTheme(this.props.theme.activeTheme);rt===at.name&&ut?this.props.theme.setTheme(at):rt===st.name&&ut?this.props.theme.setTheme(st):ot&&this.props.theme.setImportedTheme(ot)},this.handleConnectionStateChanged=rt=>{if(logMessage(`Connection state changed from ${this.state.connectionState} to ${rt}`),rt===ConnectionState.CONNECTED){const ot=this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED||this.state.scriptRunState===ScriptRunState.RUNNING;(!this.sessionInfo.last||ot)&&(this.widgetMgr.sendUpdateWidgetsMessage(void 0),this.setState({dialog:null})),this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_CONNECTED"})}else this.state.connectionState===ConnectionState.CONNECTED&&this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_DISCONNECTED",attemptingToReconnect:rt!==ConnectionState.DISCONNECTED_FOREVER}),this.sessionInfo.isSet&&this.sessionInfo.clearCurrent();this.setState({connectionState:rt})},this.handleGitInfoChanged=rt=>{this.setState({gitInfo:rt})},this.handleCustomParentMessage=rt=>{this.state.appConfig.enableCustomParentMessages?this.hostCommunicationMgr.sendMessageToHost({type:"CUSTOM_PARENT_MESSAGE",message:rt.message}):logError("Sending messages to the host is disabled in line with the platform policy.")},this.handleMessage=rt=>{const ot=(at,st,ut)=>{const ct=at[st];if(ct in ut)return ut[ct](at[ct]);throw new Error(`Cannot handle ${st} "${ct}".`)};try{ot(rt,"type",{newSession:at=>this.handleNewSession(at),sessionStatusChanged:at=>this.handleSessionStatusChanged(at),sessionEvent:at=>this.handleSessionEvent(at),delta:at=>this.handleDeltaMsg(at,rt.metadata),pageConfigChanged:at=>this.handlePageConfigChanged(at),pageInfoChanged:at=>this.handlePageInfoChanged(at),pagesChanged:at=>this.handlePagesChanged(at),pageNotFound:at=>this.handlePageNotFound(at),gitInfoChanged:at=>this.handleGitInfoChanged(at),scriptFinished:at=>this.handleScriptFinished(at),pageProfile:at=>this.handlePageProfileMsg(at),autoRerun:at=>this.handleAutoRerun(at),fileUrlsResponse:at=>this.uploadClient.onFileURLsResponse(at),parentMessage:at=>this.handleCustomParentMessage(at),logo:at=>this.handleLogo(at,rt.metadata),navigation:at=>this.handleNavigation(at),authRedirect:at=>{isInChildFrame()?this.hostCommunicationMgr.sendMessageToSameOriginHost({type:"REDIRECT_TO_URL",url:at.url}):window.location.href=at.url}})}catch(at){const st=ensureError(at);logError(st),this.showError("Bad message format",st.message)}},this.handleLogo=(rt,ot)=>{const at={activeScriptHash:ot.activeScriptHash,scriptRunId:this.state.scriptRunId};this.setState({elements:this.pendingElementsBuffer.appRootWithLogo(rt,at)},()=>{this.pendingElementsBuffer=this.state.elements})},this.handlePageConfigChanged=rt=>{const{title:ot,favicon:at,layout:st,initialSidebarState:ut,menuItems:ct}=rt;this.appNavigation.handlePageConfigChanged(rt),ot&&(this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:ot}),document.title=ot),at&&this.onPageIconChanged(at),st!==this.state.layout&&this.setState(pt=>({layout:st,userSettings:{...pt.userSettings,wideMode:st===PageConfig.Layout.WIDE}})),ut!==this.state.initialSidebarState&&this.setState(()=>({initialSidebarState:ut})),this.setState({menuItems:ct})},this.handlePageInfoChanged=rt=>{const{queryString:ot}=rt,at=document.location.pathname+(ot?`?${ot}`:"");window.history.pushState({},"",at),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:ot?`?${ot}`:""})},this.onPageNotFound=rt=>{const ot=rt?`You have requested page /${rt}, but no corresponding file was found in the app's pages/ directory`:"The page that you have requested does not seem to exist";this.showError("Page not found",`${ot}. Running the app's main page.`)},this.handlePageNotFound=rt=>{this.maybeSetState(this.appNavigation.handlePageNotFound(rt))},this.onPageIconChanged=rt=>{handleFavicon(rt,this.hostCommunicationMgr.sendMessageToHost,this.endpoints)},this.handlePagesChanged=rt=>{this.maybeSetState(this.appNavigation.handlePagesChanged(rt))},this.handleNavigation=rt=>{this.maybeSetState(this.appNavigation.handleNavigation(rt))},this.handlePageProfileMsg=rt=>{var st,ut,ct;const ot=PageProfile.toObject(rt),at=getBrowserInfo();this.metricsMgr.enqueue("pageProfile",{...ot,isFragmentRun:!!ot.isFragmentRun,appId:this.sessionInfo.current.appId,numPages:(st=this.state.appPages)==null?void 0:st.length,sessionId:this.sessionInfo.current.sessionId,pythonVersion:this.sessionInfo.current.pythonVersion,pageScriptHash:this.state.currentPageScriptHash,activeTheme:(ct=(ut=this.props.theme)==null?void 0:ut.activeTheme)==null?void 0:ct.name,totalLoadTime:Math.round((performance.now()-this.state.latestRunTime)*1e3),browserInfo:at})},this.handleAutoRerun=rt=>{const ot=setInterval(()=>{this.widgetMgr.sendUpdateWidgetsMessage(rt.fragmentId,!0)},rt.interval*1e3);this.setState(at=>({autoReruns:[...at.autoReruns,ot]}))},this.handleSessionStatusChanged=rt=>{this.setState(ot=>{let{scriptRunState:at}=ot,{dialog:st}=ot;return rt.scriptIsRunning&&ot.scriptRunState!==ScriptRunState.STOP_REQUESTED?(at=ScriptRunState.RUNNING,notNullOrUndefined(st)&&st.type===DialogType.SCRIPT_COMPILE_ERROR&&(st=void 0)):!rt.scriptIsRunning&&ot.scriptRunState!==ScriptRunState.RERUN_REQUESTED&&ot.scriptRunState!==ScriptRunState.COMPILATION_ERROR&&(at=ScriptRunState.NOT_RUNNING),{userSettings:{...ot.userSettings,runOnSave:!!rt.runOnSave},dialog:st,scriptRunState:at}})},this.handleSessionEvent=rt=>{if(this.sessionEventDispatcher.handleSessionEventMsg(rt),rt.type==="scriptCompilationException"){this.setState({scriptRunState:ScriptRunState.COMPILATION_ERROR});const ot={type:DialogType.SCRIPT_COMPILE_ERROR,exception:rt.scriptCompilationException,onClose:()=>{}};this.openDialog(ot)}},this.maybeUpdatePageUrl=(rt,ot,at)=>{const st=this.getBaseUriParts();if(st){const{basePath:ut}=st,ct=extractPageNameFromPathName(document.location.pathname,ut);if((ct===""?rt:ct)!==ot){const dt=at?"":ot,ft=preserveEmbedQueryParams(),bt=ft?`?${ft}`:"",Mt=`${ut?`/${ut}`:""}/${dt}${bt}`;window.history.pushState({},"",Mt)}}},this.handleNewSession=rt=>{const ot=rt.initialize;if(this.hasStreamlitVersionChanged(ot)){window.location.reload();return}this.sessionInfo.isSet||this.handleOneTimeInitialization(rt);const{appHash:at,currentPageScriptHash:st}=this.state,{scriptRunId:ut,name:ct,mainScriptPath:pt,fragmentIdsThisRun:dt,pageScriptHash:ft,mainScriptHash:bt}=rt;if(dt.length)this.setState({fragmentIdsThisRun:dt,latestRunTime:performance.now()});else{this.cleanupAutoReruns();const Mt=rt.config,mt=rt.customTheme;this.processThemeInput(mt),this.setState({allowRunOnSave:Mt.allowRunOnSave,hideTopBar:Mt.hideTopBar,toolbarMode:Mt.toolbarMode,latestRunTime:performance.now(),mainScriptHash:bt,fragmentIdsThisRun:dt}),this.maybeSetState(this.appNavigation.handleNewSession(rt)),this.onPageIconChanged("./favicon.png")}const ht=hashString(this.sessionInfo.current.installationId+pt);this.metricsMgr.setMetadata(this.state.deployedAppMetadata),this.metricsMgr.setAppHash(ht),this.metricsMgr.enqueue("updateReport"),at===ht&&st===ft?this.setState({scriptRunId:ut}):this.clearAppState(ht,ut,ct,bt)},this.handleOneTimeInitialization=rt=>{const ot=rt.initialize,at=rt.config;this.sessionInfo.setCurrent(SessionInfo.propsFromNewSessionMessage(rt)),this.metricsMgr.initialize({gatherUsageStats:at.gatherUsageStats,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost}),this.handleSessionStatusChanged(ot.sessionStatus)},this.onHistoryChange=()=>{const{currentPageScriptHash:rt}=this.state,ot=this.appNavigation.findPageByUrlPath(document.location.pathname),at=document.location.toString().includes("#"),st=(ot==null?void 0:ot.pageScriptHash)===rt;isNullOrUndefined$1(ot)||at&&st||this.onPageChange(ot.pageScriptHash)},this.setAndSendTheme=rt=>{this.props.theme.setTheme(rt),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(rt.emotion)})},this.createThemeHash=rt=>{if(!rt)return"hash_for_undefined_custom_theme";const ot=Object.entries(rt);return ot.sort(),hashString(ot.join(":"))},this.closeDialog=()=>{this.setState({dialog:void 0})},this.saveSettings=rt=>{const{runOnSave:ot}=this.state.userSettings,{runOnSave:at}=rt;if(this.setState({userSettings:rt}),ot!==at&&this.isServerConnected()){const st=new BackMsg({setRunOnSave:at});st.type="setRunOnSave",this.sendBackMsg(st)}},this.handleDeltaMsg=(rt,ot)=>{if(this.pendingElementsBuffer=this.pendingElementsBuffer.applyDelta(this.state.scriptRunId,rt,ot),!this.pendingElementsTimerRunning){this.pendingElementsTimerRunning=!0;const at=this.state.scriptRunState===ScriptRunState.RUNNING;setTimeout(()=>{this.pendingElementsTimerRunning=!1,at&&this.setState({elements:this.pendingElementsBuffer})},ELEMENT_LIST_BUFFER_TIMEOUT_MS)}},this.debugShutdownRuntime=()=>{if(this.isServerConnected()){const rt=new BackMsg({debugShutdownRuntime:!0});rt.type="debugShutdownRuntime",this.sendBackMsg(rt)}},this.debugDisconnectWebsocket=()=>{if(this.isServerConnected()){const rt=new BackMsg({debugDisconnectWebsocket:!0});rt.type="debugDisconnectWebsocket",this.sendBackMsg(rt)}},this.debugClearForwardMsgCache=()=>{var rt,ot;isLocalhost()&&((ot=(rt=this.connectionManager)==null?void 0:rt.connection)==null||ot.cache.messages.clear())},this.cleanupAutoReruns=()=>{this.state.autoReruns.forEach(rt=>{clearInterval(rt)}),this.setState({autoReruns:[]})},this.rerunScript=(rt=!1)=>{if(this.closeDialog(),!this.isServerConnected()){logError("Cannot rerun script when disconnected from server.");return}this.state.scriptRunState===ScriptRunState.RUNNING||this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED||(this.setState({scriptRunState:ScriptRunState.RERUN_REQUESTED}),rt===!0&&this.saveSettings({...this.state.userSettings,runOnSave:!0}),this.widgetMgr.sendUpdateWidgetsMessage(void 0))},this.sendLoadGitInfoBackMsg=()=>{if(!this.isServerConnected()){logError("Cannot load git information when disconnected from server.");return}this.sendBackMsg(new BackMsg({loadGitInfo:!0}))},this.onPageChange=rt=>{const{elements:ot,mainScriptHash:at}=this.state;this.cleanupAutoReruns();const st=this.appNavigation.clearPageElements(ot,at,void 0),ut=new Set(Array.from(st.getElements()).map(ct=>getElementId(ct)).filter(notUndefined));this.sendRerunBackMsg(this.widgetMgr.getActiveWidgetStates(ut),void 0,rt)},this.isAppInReadyState=rt=>this.state.connectionState===ConnectionState.CONNECTED&&this.state.scriptRunState===ScriptRunState.NOT_RUNNING&&rt.scriptRunState===ScriptRunState.RUNNING&&rt.connectionState===ConnectionState.CONNECTED,this.sendRerunBackMsg=(rt,ot,at,st)=>{const ut=this.getBaseUriParts();if(!ut){logError("Cannot send rerun backMessage when disconnected from server.");return}const{currentPageScriptHash:ct}=this.state,{basePath:pt}=ut;let dt=this.getQueryString(),ft="";at?at!=ct&&(dt=preserveEmbedQueryParams(),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:dt})):ct?at=ct:(ft=extractPageNameFromPathName(document.location.pathname,pt),at=""),this.sendBackMsg(new BackMsg({rerunScript:{queryString:dt,widgetStates:rt,pageScriptHash:at,pageName:ft,fragmentId:ot,isAutoRerun:st}})),PerformanceEvents.record({name:"RequestedRerun",scriptRunState:this.state.scriptRunState})},this.stopScript=()=>{if(!this.isServerConnected()){logError("Cannot stop app when disconnected from server.");return}if(this.state.scriptRunState===ScriptRunState.NOT_RUNNING||this.state.scriptRunState===ScriptRunState.STOP_REQUESTED)return;const rt=new BackMsg({stopScript:!0});rt.type="stopScript",this.sendBackMsg(rt),this.setState({scriptRunState:ScriptRunState.STOP_REQUESTED})},this.openClearCacheDialog=()=>{if(this.isServerConnected()){const rt={type:DialogType.CLEAR_CACHE,confirmCallback:this.clearCache,defaultAction:this.clearCache,onClose:()=>{}};this.openDialog(rt)}else logError("Cannot clear cache: disconnected from server")},this.openDeployDialog=()=>{var ot;const rt={type:DialogType.DEPLOY_DIALOG,onClose:this.closeDialog,showDeployError:this.showDeployError,isDeployErrorModalOpen:((ot=this.state.dialog)==null?void 0:ot.type)===DialogType.DEPLOY_ERROR,metricsMgr:this.metricsMgr};this.openDialog(rt)},this.openThemeCreatorDialog=()=>{this.metricsMgr.enqueue("menuClick",{label:"editTheme"});const rt={type:DialogType.THEME_CREATOR,backToSettings:this.settingsCallback,onClose:this.closeDialog,metricsMgr:this.metricsMgr};this.openDialog(rt)},this.clearCache=()=>{if(this.closeDialog(),this.isServerConnected()){const rt=new BackMsg({clearCache:!0});rt.type="clearCache",this.sendBackMsg(rt)}else logError("Cannot clear cache: disconnected from server")},this.sendAppHeartbeat=()=>{if(this.isServerConnected()){const rt=new BackMsg({appHeartbeat:!0});rt.type="appHeartbeat",this.sendBackMsg(rt)}else logError("Cannot send app heartbeat: disconnected from server")},this.sendBackMsg=rt=>{this.connectionManager?this.connectionManager.sendMessage(rt):logError(`Not connected. Cannot send back message: ${rt}`)},this.handleConnectionError=rt=>{this.showError("Connection error",rt)},this.isServerConnected=()=>this.connectionManager?this.connectionManager.isConnected():!1,this.settingsCallback=(rt=!0)=>{const ot={type:DialogType.SETTINGS,isServerConnected:this.isServerConnected(),settings:this.state.userSettings,allowRunOnSave:this.state.allowRunOnSave,onSave:this.saveSettings,onClose:()=>{},developerMode:showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),openThemeCreator:this.openThemeCreatorDialog,animateModal:rt,metricsMgr:this.metricsMgr};this.openDialog(ot)},this.aboutCallback=()=>{const{menuItems:rt}=this.state,ot={type:DialogType.ABOUT,sessionInfo:this.sessionInfo,onClose:this.closeDialog,aboutSectionMd:rt==null?void 0:rt.aboutSectionMd};this.openDialog(ot)},this.printCallback=()=>{const{scriptRunState:rt}=this.state;if(rt!==ScriptRunState.NOT_RUNNING){setTimeout(this.printCallback,500);return}let ot;try{const at=getIFrameEnclosingApp(this.embeddingId);at&&at.contentWindow?ot=at.contentWindow.window:ot=window}catch{ot=window}finally{ot||(ot=window),ot.print()}},this.screencastCallback=()=>{const{scriptName:rt}=this.state,{startRecording:ot}=this.props.screenCast,at=hooks().format("YYYY-MM-DD-HH-MM-SS");ot(`streamlit-${rt}-${at}`)},this.handleFullScreen=rt=>{this.setState({isFullScreen:rt})},this.setLibConfig=rt=>{this.setState({libConfig:rt})},this.setAppConfig=rt=>{this.setState({appConfig:rt})},this.addScriptFinishedHandler=rt=>{this.setState((ot,at)=>({scriptFinishedHandlers:ot.scriptFinishedHandlers.concat(rt)}))},this.removeScriptFinishedHandler=rt=>{this.setState((ot,at)=>({scriptFinishedHandlers:without$1(ot.scriptFinishedHandlers,rt)}))},this.getBaseUriParts=()=>this.connectionManager?this.connectionManager.getBaseUriParts():void 0,this.getQueryString=()=>{const{queryParams:rt}=this.state,ot=rt&&rt.length>0?rt:document.location.search;return ot.startsWith("?")?ot.substring(1):ot},this.isInCloudEnvironment=()=>{const{hostMenuItems:rt}=this.state;return rt&&(rt==null?void 0:rt.length)>0},this.showDeployButton=()=>showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&!this.isInCloudEnvironment()&&this.sessionInfo.isSet&&!this.sessionInfo.isHello,this.deployButtonClicked=()=>{this.metricsMgr.enqueue("menuClick",{label:"deployButtonInApp"}),this.sendLoadGitInfoBackMsg(),this.openDeployDialog()},this.requestFileURLs=(rt,ot)=>{if(this.isServerConnected()){const at=new BackMsg({fileUrlsRequest:{requestId:rt,fileNames:ot.map(st=>st.name),sessionId:this.sessionInfo.current.sessionId}});at.type="fileUrlsRequest",this.sendBackMsg(at)}},this.handleKeyDown=rt=>{switch(rt){case"c":showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&this.openClearCacheDialog();break;case"r":this.rerunScript();break}},this.handleKeyUp=rt=>{rt==="esc"&&this.props.screenCast.stopRecording()},J$1();let et=this.createThemeHash();isPresetTheme(nt.theme.activeTheme)||(et=this.createThemeHash(toThemeInput(nt.theme.activeTheme.emotion))),this.state={connectionState:ConnectionState.INITIAL,elements:AppRoot.empty("",!0),isFullScreen:!1,scriptName:"",scriptRunId:INITIAL_SCRIPT_RUN_ID,appHash:null,scriptRunState:ScriptRunState.NOT_RUNNING,userSettings:{wideMode:!1,runOnSave:!1},layout:PageConfig.Layout.CENTERED,initialSidebarState:PageConfig.SidebarState.AUTO,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],themeHash:et,gitInfo:null,formsData:createFormsData(),appPages:[],navSections:[],currentPageScriptHash:"",mainScriptHash:"",hideTopBar:!0,hideSidebarNav:!0,expandSidebarNav:!1,toolbarMode:Config.ToolbarMode.MINIMAL,latestRunTime:performance.now(),fragmentIdsThisRun:[],isOwner:!1,hostMenuItems:[],hostToolbarItems:[],hostHideSidebarNav:!1,sidebarChevronDownshift:0,pageLinkBaseUrl:"",queryParams:"",deployedAppMetadata:{},libConfig:{},appConfig:{},autoReruns:[],inputsDisabled:!1},this.connectionManager=null,this.widgetMgr=new WidgetStateManager({sendRerunBackMsg:this.sendRerunBackMsg,formsDataChanged:rt=>this.setState({formsData:rt})}),this.hostCommunicationMgr=new HostCommunicationManager({streamlitExecutionStartedAt:nt.streamlitExecutionStartedAt,sendRerunBackMsg:this.sendRerunBackMsg,closeModal:this.closeDialog,stopScript:this.stopScript,rerunScript:this.rerunScript,clearCache:this.clearCache,sendAppHeartbeat:this.sendAppHeartbeat,setInputsDisabled:rt=>{this.setState({inputsDisabled:rt})},themeChanged:this.handleThemeMessage,pageChanged:this.onPageChange,isOwnerChanged:rt=>this.setState({isOwner:rt}),fileUploadClientConfigChanged:rt=>{this.endpoints.setFileUploadClientConfig!==void 0&&this.endpoints.setFileUploadClientConfig(rt)},hostMenuItemsChanged:rt=>{this.setState({hostMenuItems:rt})},hostToolbarItemsChanged:rt=>{this.setState({hostToolbarItems:rt})},hostHideSidebarNavChanged:rt=>{this.setState({hostHideSidebarNav:rt})},sidebarChevronDownshiftChanged:rt=>{this.setState({sidebarChevronDownshift:rt})},pageLinkBaseUrlChanged:rt=>{this.setState({pageLinkBaseUrl:rt})},queryParamsChanged:rt=>{this.setState({queryParams:rt})},deployedAppMetadataChanged:rt=>{this.setState({deployedAppMetadata:rt})},restartWebsocketConnection:()=>{this.connectionManager||this.initializeConnectionManager()},terminateWebsocketConnection:()=>{var rt;(rt=this.connectionManager)==null||rt.disconnect(),this.connectionManager=null}}),this.endpoints=new DefaultStreamlitEndpoints({getServerUri:this.getBaseUriParts,csrfEnabled:!0}),this.uploadClient=new FileUploadClient({sessionInfo:this.sessionInfo,endpoints:this.endpoints,formsWithPendingRequestsChanged:rt=>this.widgetMgr.setFormsWithUploadsInProgress(rt),requestFileURLs:this.requestFileURLs}),this.componentRegistry=new ComponentRegistry(this.endpoints),this.pendingElementsTimerRunning=!1,this.pendingElementsBuffer=this.state.elements,this.appNavigation=new AppNavigation(this.hostCommunicationMgr,this.maybeUpdatePageUrl,this.onPageNotFound,this.onPageIconChanged),window.streamlitDebug={clearForwardMsgCache:this.debugClearForwardMsgCache,disconnectWebsocket:this.debugDisconnectWebsocket,shutdownRuntime:this.debugShutdownRuntime}}initializeConnectionManager(){this.connectionManager=new ConnectionManager({sessionInfo:this.sessionInfo,endpoints:this.endpoints,onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged,claimHostAuthToken:this.hostCommunicationMgr.claimAuthToken,resetHostAuthToken:this.hostCommunicationMgr.resetAuthToken,onHostConfigResp:nt=>{const{allowedOrigins:et,useExternalAuthToken:rt,disableFullscreenMode:ot,enableCustomParentMessages:at,mapboxToken:st,enforceDownloadInNewTab:ut,metricsUrl:ct}=nt,pt={allowedOrigins:et,useExternalAuthToken:rt,enableCustomParentMessages:at},dt={mapboxToken:st,disableFullscreenMode:ot,enforceDownloadInNewTab:ut};this.metricsMgr.setMetricsConfig(ct),this.hostCommunicationMgr.setAllowedOrigins(pt),this.setAppConfig(pt),this.setLibConfig(dt)}})}componentDidMount(){this.initializeConnectionManager(),mark(this.state.scriptRunState),this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState}),isScrollingHidden()&&document.body.classList.add("embedded"),isInChildFrame()&&(window.iFrameResizer={heightCalculationMethod:()=>{const nt=document.querySelectorAll("[data-iframe-height]"),et=Array.from(nt).map(rt=>Math.ceil(rt.getBoundingClientRect().bottom));return Math.max(0,...et)}},__vitePreload(()=>import("./iframeResizer.contentWindow.COP9ZNW_.js").then(nt=>nt.i),[],import.meta.url)),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(this.props.theme.activeTheme.emotion)}),this.metricsMgr.enqueue("viewReport"),window.addEventListener("popstate",this.onHistoryChange,!1)}componentDidUpdate(nt,et){window.prerenderReady===!1&&this.isAppInReadyState(et)&&(window.prerenderReady=!0),this.state.scriptRunState!==et.scriptRunState&&(mark(this.state.scriptRunState),this.state.scriptRunState===ScriptRunState.NOT_RUNNING&&measure("script-run-cycle",ScriptRunState.RUNNING,ScriptRunState.NOT_RUNNING),this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState}))}componentWillUnmount(){var nt;(nt=this.connectionManager)==null||nt.disconnect(),this.hostCommunicationMgr.closeHostCommunication(),window.removeEventListener("popstate",this.onHistoryChange,!1)}showError(nt,et){logError(et);const rt={type:DialogType.WARNING,title:nt,msg:et,onClose:()=>{}};this.openDialog(rt)}hasStreamlitVersionChanged(nt){if(this.sessionInfo.isSet){const et=this.sessionInfo.current.streamlitVersion,{environmentInfo:rt}=nt;if(notNullOrUndefined(rt)&&notNullOrUndefined(rt.streamlitVersion))return et!=rt.streamlitVersion}return!1}maybeSetState(nt){if(nt){const[et,rt]=nt;this.setState(et,rt)}}processThemeInput(nt){const et=this.createThemeHash(nt);if(et===this.state.themeHash)return;this.setState({themeHash:et});const rt=!isPresetTheme(this.props.theme.activeTheme);if(nt){const ot=createTheme(CUSTOM_THEME_NAME,nt);this.props.theme.addThemes([ot]),(getCachedTheme()===null||rt)&&this.setAndSendTheme(ot)}else this.props.theme.addThemes([]),rt&&this.setAndSendTheme(getHostSpecifiedTheme())}handleScriptFinished(nt){if(nt===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||nt===ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN||nt===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY){if(window.setTimeout(()=>{this.state.scriptFinishedHandlers.map(et=>et())},0),nt===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||nt===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY){this.setState(({scriptRunId:rt,fragmentIdsThisRun:ot})=>({elements:this.pendingElementsBuffer.clearStaleNodes(rt,ot)}),()=>{this.pendingElementsBuffer=this.state.elements});const et=new Set(Array.from(this.state.elements.getElements()).map(rt=>getElementId(rt)).filter(notUndefined));this.widgetMgr.removeInactive(et)}this.connectionManager!==null&&nt!==ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN&&this.sessionInfo.isSet&&this.connectionManager.incrementMessageCacheRunCount(this.sessionInfo.current.maxCachedMessageAge)}}clearAppState(nt,et,rt,ot){const{hideSidebarNav:at,elements:st}=this.state,ut=at&&st.sidebar||void 0;this.setState({scriptRunId:et,scriptName:rt,appHash:nt,elements:this.appNavigation.clearPageElements(this.pendingElementsBuffer,ot,ut)},()=>{this.pendingElementsBuffer=this.state.elements;const ct=new Set(Array.from(this.state.elements.getElements()).map(pt=>getElementId(pt)).filter(notUndefined));this.widgetMgr.removeInactive(ct)})}openDialog(nt){this.setState({dialog:nt})}render(){const{allowRunOnSave:nt,connectionState:et,dialog:rt,elements:ot,initialSidebarState:at,menuItems:st,isFullScreen:ut,scriptRunId:ct,scriptRunState:pt,userSettings:dt,hideTopBar:ft,hideSidebarNav:bt,expandSidebarNav:ht,currentPageScriptHash:Mt,hostHideSidebarNav:mt,pageLinkBaseUrl:Ot,sidebarChevronDownshift:zt,hostMenuItems:yt,hostToolbarItems:vt,libConfig:At,appConfig:St,inputsDisabled:Et,appPages:Tt,navSections:Rt}=this.state,Ct=showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),wt=classNames("stApp",getEmbeddingIdClassName(this.embeddingId),{"streamlit-embedded":isEmbed(),"streamlit-wide":dt.wideMode}),Lt=rt?StreamlitDialog({...rt,onClose:this.closeDialog}):null,Ht=Et||et!==ConnectionState.CONNECTED;return jsx$1(AppContext.Provider,{value:{initialSidebarState:at,wideMode:dt.wideMode,embedded:isEmbed(),showPadding:!isEmbed()||isPaddingDisplayed(),disableScrolling:isScrollingHidden(),showToolbar:!isEmbed()||isToolbarDisplayed(),showColoredLine:!isEmbed()||isColoredLineDisplayed(),pageLinkBaseUrl:Ot,sidebarChevronDownshift:zt,gitInfo:this.state.gitInfo,appConfig:St},children:jsx$1(LibContext.Provider,{value:{isFullScreen:ut,setFullScreen:this.handleFullScreen,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,activeTheme:this.props.theme.activeTheme,setTheme:this.setAndSendTheme,availableThemes:this.props.theme.availableThemes,addThemes:this.props.theme.addThemes,onPageChange:this.onPageChange,currentPageScriptHash:Mt,libConfig:At,fragmentIdsThisRun:this.state.fragmentIdsThisRun,locale:window.navigator.language},children:jsx$1(ReactHotkeys,{keyName:"r,c,esc",onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,children:jsxs(StyledApp,{className:wt,"data-testid":"stApp","data-test-script-state":ct==INITIAL_SCRIPT_RUN_ID?"initial":pt,"data-test-connection-state":et,children:[jsxs(Header,{children:[!ft&&jsxs(Fragment,{children:[jsx$1(StatusWidget,{connectionState:et,sessionEventDispatcher:this.sessionEventDispatcher,scriptRunState:pt,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:nt}),jsx$1(ToolbarActions,{hostToolbarItems:vt,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,metricsMgr:this.metricsMgr})]}),this.showDeployButton()&&jsx$1(DeployButton,{onClick:this.deployButtonClicked.bind(this)}),jsx$1(MainMenu$1,{isServerConnected:this.isServerConnected(),quickRerunCallback:this.rerunScript,clearCacheCallback:this.openClearCacheDialog,settingsCallback:this.settingsCallback,aboutCallback:this.aboutCallback,printCallback:this.printCallback,screencastCallback:this.screencastCallback,screenCastState:this.props.screenCast.currentState,hostMenuItems:yt,developmentMode:Ct,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,menuItems:st,metricsMgr:this.metricsMgr,toolbarMode:this.state.toolbarMode})]}),jsx$1(AppView,{endpoints:this.endpoints,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,elements:ot,scriptRunId:ct,scriptRunState:pt,widgetMgr:this.widgetMgr,widgetsDisabled:Ht,uploadClient:this.uploadClient,componentRegistry:this.componentRegistry,formsData:this.state.formsData,appLogo:ot.logo,appPages:Tt,navSections:Rt,onPageChange:this.onPageChange,currentPageScriptHash:Mt,hideSidebarNav:bt||mt,expandSidebarNav:ht}),Lt]})})})})}}const AppWithScreencast=withScreencast(App);function useThemeManager(){const tt=getDefaultTheme(),[nt,et]=reactExports.useState(tt),[rt,ot]=reactExports.useState([]),[at,st]=reactExports.useState([...createPresetThemes(),...isPresetTheme(tt)?[]:[tt]]),ut=ft=>{st([...createPresetThemes(),...ft])},ct=reactExports.useCallback(ft=>{ft!==nt&&(et(ft),ft.name===AUTO_THEME_NAME?removeCachedTheme():setCachedTheme(ft))},[et,nt]),pt=reactExports.useCallback(()=>{nt.name===AUTO_THEME_NAME&&ct(getHostSpecifiedTheme());const ft=at.filter(bt=>bt.name!==AUTO_THEME_NAME);st([createAutoTheme(),...ft])},[nt.name,at,ct]),dt=reactExports.useCallback(ft=>{ft.fontFaces&&ot(ft.fontFaces);const bt=new CustomThemeConfig(ft),ht=createTheme(CUSTOM_THEME_NAME,bt);ct(ht)},[ot,ct]);return reactExports.useEffect(()=>{const ft=window.matchMedia("(prefers-color-scheme: dark)");return ft.addEventListener("change",pt),window.addEventListener("afterprint",pt),()=>{window.removeEventListener("afterprint",pt),ft.removeEventListener("change",pt)}},[nt,at,pt]),[{setTheme:ct,activeTheme:nt,addThemes:ut,availableThemes:at,setImportedTheme:dt},rt]}const ThemedApp=({streamlitExecutionStartedAt:tt})=>{const[nt,et]=useThemeManager(),{activeTheme:rt}=nt,ot=rt.name===CUSTOM_THEME_NAME&&et.length>0;return jsx$1(RootStyleProvider,{theme:rt,children:jsx$1(WindowDimensionsProvider,{children:jsxs(PortalProvider,{children:[ot&&jsx$1(FontFaceDeclaration,{fontFaces:et}),jsx$1(AppWithScreencast,{theme:nt,streamlitExecutionStartedAt:tt})]})})})},streamlitExecutionStartedAt=Date.now(),engine=new StyletronClient({prefix:"st-"});ReactDOM.render(jsx$1(Provider$1,{value:engine,children:jsx$1(ThemedApp,{streamlitExecutionStartedAt})}),document.getElementById("root"));export{convertTimeToDate as $,isNullOrUndefined$1 as A,merge$6 as B,numbro$1 as C,notNullOrUndefined as D,EmotionIconBase as E,Fragment as F,hooks as G,getTimezone as H,moment$1 as I,isIntegerType as J,isUnsignedIntegerType as K,isDurationType as L,isPeriodType as M,format as N,isBooleanType as O,PortalContext as P,_baseKeys as Q,React$1 as R,_getTag as S,isArguments_1 as T,isArray_1 as U,isArrayLike_1 as V,isBufferExports as W,_isPrototype as X,isTypedArray_1 as Y,isTimeType as Z,_extends$Q as _,range$1 as a,DEFAULT_IFRAME_SANDBOX_POLICY as a$,isDecimalType as a0,isStringType as a1,isEmptyType as a2,isDatetimeType as a3,isDateType as a4,isObjectType as a5,isBytesType as a6,isNumericType as a7,isCategoricalType as a8,isListType as a9,getGray30 as aA,getCategoricalColorsArray as aB,getDivergingColorsArray as aC,getSequentialColorsArray as aD,getBlue80 as aE,debounce$4 as aF,Global as aG,_baseMerge as aH,_createAssigner as aI,withTheme as aJ,DynamicIcon as aK,toaster as aL,Kind as aM,AlertElement as aN,_assertThisInitialized$e as aO,StyledInlineCode as aP,ErrorElement as aQ,axios as aR,Skeleton$1 as aS,Skeleton as aT,hoistNonReactStatics$2 as aU,ensureError as aV,lib$3 as aW,parseToRgba as aX,DeckGlJsonChart$1 as aY,_unsupportedIterableToArray$l as aZ,DEFAULT_IFRAME_FEATURE_POLICY as a_,isRangeIndexType as aa,useTheme as ab,Arrow$2 as ac,logError as ad,isArray$k as ae,_defineProperty$u as af,_objectWithoutProperties$o as ag,_typeof$g as ah,jsx as ai,css$2 as aj,_toConsumableArray$3 as ak,transparentize as al,convertRemToPx as am,mix$1 as an,logWarning as ao,isEqual$1 as ap,StyledTooltipContentWrapper as aq,StreamlitMarkdown$1 as ar,PLACEMENT as as,ACCESSIBILITY_TYPE as at,hasLightBackgroundColor as au,Popover$1 as av,LibContext as aw,jsxs as ax,Resizable as ay,getGray70 as az,reactDomExports as b,toPropertyKey as b$,darken as b0,BaseButtonSize as b1,BaseButtonKind as b2,BaseButtonTooltip as b3,DynamicButtonLabel as b4,IsSidebarContext as b5,Placement as b6,getGray90 as b7,getIncreasingGreen as b8,getDecreasingRed as b9,isFocusVisible as bA,getOverride as bB,getOverrideProps as bC,Checkbox$1 as bD,StyledContent as bE,StyledCheckbox$1 as bF,BaseColorPicker$1 as bG,useStyletron as bH,mergeOverride as bI,toObjectOverride as bJ,Icon$1 as bK,UIDConsumer as bL,StatefulMenu as bM,mergeOverrides as bN,ChevronDown$1 as bO,ThemeContext as bP,forkFocus as bQ,forkBlur as bR,Select as bS,without$1 as bT,fuzzyFilterSelectOptions as bU,TYPE as bV,VirtualDropdown as bW,isPresetTheme as bX,classNames as bY,UISelectbox as bZ,isValidFormId as b_,PlotlyChart$1 as ba,keysToSnakeCase as bb,WindowDimensionsContext as bc,Video$1 as bd,zip$1 as be,FileUploaderState as bf,UploadedFileInfo as bg,StyledSpinner as bh,ENABLE_PERIPHERALS_DOCS_URL as bi,Icon$2 as bj,BaseButton as bk,blend as bl,labelVisibilityProtoValueToEnum as bm,TooltipIcon as bn,WidgetLabel as bo,Tooltip as bp,styled as bq,getOverrides as br,LocaleContext as bs,ButtonGroup$1 as bt,LabelVisibilityMessage as bu,StyledWidgetLabelHelpInline as bv,themeColors as bw,isMobile_1 as bx,CAMERA_PERMISSION_URL as by,StyledWidgetLabelHelp as bz,_hasPath as c,_setPrototypeOf$e as c0,hexToRgb as c1,withWrapper as c2,StyledWidgetInstructions as c3,isFromMac as c4,CUSTOM_INPUT_TYPE as c5,SIZE$1 as c6,DeleteAlt$1 as c7,ADJOINED as c8,filterOptions as c9,ENHANCER_POSITION as ca,pick$1 as cb,Slider$2 as cc,isFromWindows as cd,__awaiter as ce,__generator as cf,__spread as cg,PropTypes as ch,ChevronLeft as ci,ChevronRight as cj,isInForm as ck,toString_1 as cl,TextInput$1 as cm,ThemeProvider$1 as cn,createThemedStyled as co,createThemedUseStyletron as cp,createThemedWithStyle as cq,expandBorderStyles as cr,withStyle as cs,getAugmentedNamespace as ct,reactIsExports$1 as cu,NumberInput$1 as cv,commonjsGlobal$1 as d,classnamesExports as e,_root as f,getDefaultExportFromCjs$1 as g,isObject_1 as h,isPropValid as i,jsx$1 as j,keyframes as k,_Set as l,_setToArray as m,newStyled as n,_SetCache as o,propTypesExports as p,_arrayIncludes as q,reactExports as r,_arrayIncludesWith as s,toNumber_1 as t,_cacheHas as u,groupBy$1 as v,__vitePreload as w,flatten$2 as x,require$$0 as y,toString$9 as z};