UNPKG

180 kBJavaScriptView Raw
1!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@blueprintjs/icons"),require("classnames"),require("popper.js"),require("react"),require("react-dom"),require("react-popper"),require("react-transition-group"),require("resize-observer-polyfill"),require("tslib")):"function"==typeof define&&define.amd?define(["@blueprintjs/icons","classnames","popper.js","react","react-dom","react-popper","react-transition-group","resize-observer-polyfill","tslib"],t):"object"==typeof exports?exports.Blueprint=t(require("@blueprintjs/icons"),require("classnames"),require("popper.js"),require("react"),require("react-dom"),require("react-popper"),require("react-transition-group"),require("resize-observer-polyfill"),require("tslib")):(e.Blueprint=e.Blueprint||{},e.Blueprint.Core=t(e.Blueprint.Icons,e.classNames,e.Popper,e.React,e.ReactDOM,e.ReactPopper,e.ReactTransitionGroup,e.ResizeObserver,e.window))}(self,(function(e,t,n,r,o,i,a,s,l){return function(){"use strict";var u={789:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Colors=void 0,t.Colors=Object.assign(Object.assign(Object.assign({},{BLACK:"#111418",DARK_GRAY1:"#1C2127",DARK_GRAY2:"#252A31",DARK_GRAY3:"#2F343C",DARK_GRAY4:"#383E47",DARK_GRAY5:"#404854",GRAY1:"#626E7F",GRAY2:"#738091",GRAY3:"#8F99A8",GRAY4:"#ABB3BF",GRAY5:"#C5CBD3",LIGHT_GRAY1:"#D3D8DE",LIGHT_GRAY2:"#DCE0E5",LIGHT_GRAY3:"#E5E8EB",LIGHT_GRAY4:"#EDEFF2",LIGHT_GRAY5:"#F6F7F9",WHITE:"#FFFFFF"}),{BLUE1:"#184A90",BLUE2:"#1A5BB7",BLUE3:"#1A69D5",BLUE4:"#498FF3",BLUE5:"#8ABBFF",GREEN1:"#165A32",GREEN2:"#176D3A",GREEN3:"#168845",GREEN4:"#30A660",GREEN5:"#72CA96",ORANGE1:"#77450D",ORANGE2:"#935610",ORANGE3:"#C4761C",ORANGE4:"#EA9A3E",ORANGE5:"#F7B264",RED1:"#942427",RED2:"#B3292D",RED3:"#D33136",RED4:"#E96367",RED5:"#F99498"}),{CERULEAN1:"#0C5174",CERULEAN2:"#0F6894",CERULEAN3:"#147EB3",CERULEAN4:"#3FA6DA",CERULEAN5:"#68C1EE",FOREST1:"#1D7324",FOREST2:"#238C2C",FOREST3:"#29A634",FOREST4:"#43BF4D",FOREST5:"#62D96B",GOLD1:"#5C4405",GOLD2:"#866103",GOLD3:"#D1980B",GOLD4:"#F0B726",GOLD5:"#FBD065",INDIGO1:"#5642A6",INDIGO2:"#634DBF",INDIGO3:"#7961DB",INDIGO4:"#9881F3",INDIGO5:"#BDADFF",LIME1:"#43501B",LIME2:"#5A701A",LIME3:"#8EB125",LIME4:"#B6D94C",LIME5:"#D4F17E",ROSE1:"#A82255",ROSE2:"#C22762",ROSE3:"#DB2C6F",ROSE4:"#F5498B",ROSE5:"#FF66A1",SEPIA1:"#5E4123",SEPIA2:"#7A542E",SEPIA3:"#946638",SEPIA4:"#AF855A",SEPIA5:"#D0B090",TURQUOISE1:"#004D46",TURQUOISE2:"#007067",TURQUOISE3:"#00A396",TURQUOISE4:"#13C9BA",TURQUOISE5:"#7AE1D8",VERMILION1:"#96290D",VERMILION2:"#B83211",VERMILION3:"#D33D17",VERMILION4:"#EB6847",VERMILION5:"#FF9980",VIOLET1:"#5C255C",VIOLET2:"#7C327C",VIOLET3:"#9D3F9D",VIOLET4:"#BD6BBD",VIOLET5:"#D69FD6"})},748:function(e,t,n){t.a4=void 0;n(789);var r=n(527);Object.defineProperty(t,"a4",{enumerable:!0,get:function(){return r.LegacyColors}})},527:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LegacyColors=void 0,t.LegacyColors={BLACK:"#10161A",BLUE1:"#0E5A8A",BLUE2:"#106BA3",BLUE3:"#137CBD",BLUE4:"#2B95D6",BLUE5:"#48AFF0",COBALT1:"#1F4B99",COBALT2:"#2458B3",COBALT3:"#2965CC",COBALT4:"#4580E6",COBALT5:"#669EFF",DARK_GRAY1:"#182026",DARK_GRAY2:"#202B33",DARK_GRAY3:"#293742",DARK_GRAY4:"#30404D",DARK_GRAY5:"#394B59",FOREST1:"#1D7324",FOREST2:"#238C2C",FOREST3:"#29A634",FOREST4:"#43BF4D",FOREST5:"#62D96B",GOLD1:"#A67908",GOLD2:"#BF8C0A",GOLD3:"#D99E0B",GOLD4:"#F2B824",GOLD5:"#FFC940",GRAY1:"#5C7080",GRAY2:"#738694",GRAY3:"#8A9BA8",GRAY4:"#A7B6C2",GRAY5:"#BFCCD6",GREEN1:"#0A6640",GREEN2:"#0D8050",GREEN3:"#0F9960",GREEN4:"#15B371",GREEN5:"#3DCC91",INDIGO1:"#5642A6",INDIGO2:"#634DBF",INDIGO3:"#7157D9",INDIGO4:"#9179F2",INDIGO5:"#AD99FF",LIGHT_GRAY1:"#CED9E0",LIGHT_GRAY2:"#D8E1E8",LIGHT_GRAY3:"#E1E8ED",LIGHT_GRAY4:"#EBF1F5",LIGHT_GRAY5:"#F5F8FA",LIME1:"#728C23",LIME2:"#87A629",LIME3:"#9BBF30",LIME4:"#B6D94C",LIME5:"#D1F26D",ORANGE1:"#A66321",ORANGE2:"#BF7326",ORANGE3:"#D9822B",ORANGE4:"#F29D49",ORANGE5:"#FFB366",RED1:"#A82A2A",RED2:"#C23030",RED3:"#DB3737",RED4:"#F55656",RED5:"#FF7373",ROSE1:"#A82255",ROSE2:"#C22762",ROSE3:"#DB2C6F",ROSE4:"#F5498B",ROSE5:"#FF66A1",SEPIA1:"#63411E",SEPIA2:"#7D5125",SEPIA3:"#96622D",SEPIA4:"#B07B46",SEPIA5:"#C99765",TURQUOISE1:"#008075",TURQUOISE2:"#00998C",TURQUOISE3:"#00B3A4",TURQUOISE4:"#14CCBD",TURQUOISE5:"#2EE6D6",VERMILION1:"#9E2B0E",VERMILION2:"#B83211",VERMILION3:"#D13913",VERMILION4:"#EB532D",VERMILION5:"#FF6E4A",VIOLET1:"#5C255C",VIOLET2:"#752F75",VIOLET3:"#8F398F",VIOLET4:"#A854A8",VIOLET5:"#C274C2",WHITE:"#FFFFFF"}},566:function(e,t,n){n.r(t),n.d(t,{AbstractComponent:function(){return co},AbstractComponent2:function(){return po},AbstractPureComponent:function(){return ho},AbstractPureComponent2:function(){return fo},Alert:function(){return Ea},Alignment:function(){return O},AnchorButton:function(){return ta},AnchorButtonProps:function(){return s.AnchorButtonProps},AnimationStates:function(){return Ra},Blockquote:function(){return ca},Boundary:function(){return mo},Breadcrumb:function(){return ya},Breadcrumbs:function(){return ba},Button:function(){return ea},ButtonGroup:function(){return Sa},ButtonProps:function(){return s.ButtonProps},Callout:function(){return Aa},Card:function(){return Pa},Checkbox:function(){return Xa},Classes:function(){return r},Code:function(){return pa},Collapse:function(){return Da},CollapsibleList:function(){return La},Colors:function(){return Eo},ContextMenu:function(){return Ml},ContextMenuTarget:function(){return ka},ControlGroup:function(){return za},DISPLAYNAME_PREFIX:function(){return yo},Dialog:function(){return va},DialogStep:function(){return xa},Divider:function(){return Ma},Drawer:function(){return Ha},DrawerSize:function(){return Fa},EditableText:function(){return Ka},Elevation:function(){return R},Expander:function(){return Rl},FileInput:function(){return Qa},FocusStyleManager:function(){return Zr},FormGroup:function(){return Za},H1:function(){return oa},H2:function(){return ia},H3:function(){return aa},H4:function(){return sa},H5:function(){return la},H6:function(){return ua},HTMLSelect:function(){return hs},HTMLTable:function(){return fs},HandleInteractionKind:function(){return ll},HandleType:function(){return sl},Hotkey:function(){return Ps},HotkeyConfig:function(){return g.HotkeyConfig},Hotkeys:function(){return Ds},HotkeysContext:function(){return Vs},HotkeysContextInstance:function(){return h.HotkeysContextInstance},HotkeysDialog2:function(){return Us},HotkeysProvider:function(){return zs},HotkeysProviderProps:function(){return h.HotkeysProviderProps},HotkeysTarget:function(){return Hs},HotkeysTarget2:function(){return js},HotkeysTarget2Props:function(){return m.HotkeysTarget2Props},IAnchorButtonProps:function(){return s.IAnchorButtonProps},IButtonProps:function(){return s.IButtonProps},IHotkeyProps:function(){return c.IHotkeyProps},IHotkeysDialogProps:function(){return p.IHotkeysDialogProps},IHotkeysTargetComponent:function(){return d.IHotkeysTargetComponent},IKeyCombo:function(){return l.IKeyCombo},IKeyComboProps:function(){return u.IKeyComboProps},INavbarDividerProps:function(){return v.INavbarDividerProps},Icon:function(){return Qi},IconName:function(){return ji.IconName},IconSize:function(){return qi},InputGroup:function(){return $a},Intent:function(){return I},KeyCombo:function(){return As},KeyComboTagProps:function(){return u.KeyComboTagProps},Keys:function(){return o},Label:function(){return ha},Menu:function(){return Oa},MenuDivider:function(){return ga},MenuItem:function(){return Ta},MultiSlider:function(){return ml},MultistepDialog:function(){return wa},Navbar:function(){return Js},NavbarDivider:function(){return Xs},NavbarDividerProps:function(){return v.NavbarDividerProps},NavbarGroup:function(){return Qs},NavbarHeading:function(){return Zs},NonIdealState:function(){return $s},NumericInput:function(){return ls},OL:function(){return fa},OverflowDirection:function(){return ra},OverflowList:function(){return Ia},Overlay:function(){return Ci},OverlayToaster:function(){return wl},Panel:function(){return y.Panel},PanelProps:function(){return y.PanelProps},PanelStack:function(){return tl},PanelStack2:function(){return rl},PanelStack2Props:function(){return E.PanelStack2Props},Popover:function(){return Gi},PopoverInteractionKind:function(){return Hi},PopoverPosition:function(){return il},PopperBoundary:function(){return ol.Boundary},PopperModifiers:function(){return ol.Modifiers},Portal:function(){return Ti},Position:function(){return b},Pre:function(){return da},ProgressBar:function(){return al},Radio:function(){return ja},RadioGroup:function(){return ps},RangeSlider:function(){return gl},ResizeSensor:function(){return Ii},Slider:function(){return _l},Spinner:function(){return Ji},SpinnerSize:function(){return Xi},Switch:function(){return qa},Tab:function(){return Tl},Tabs:function(){return bl},Tag:function(){return Pl},TagInput:function(){return Ll},Text:function(){return _a},TextArea:function(){return ds},Toast:function(){return kl},Toaster:function(){return xl},Tooltip:function(){return bi},Tree:function(){return Fl},TreeNode:function(){return Bl},UL:function(){return ma},UseHotkeysOptions:function(){return f.UseHotkeysOptions},UseHotkeysReturnValue:function(){return f.UseHotkeysReturnValue},Utils:function(){return i},combineRefs:function(){return Oo},comboMatches:function(){return Ts},getKeyCombo:function(){return Os},getKeyComboString:function(){return Cs},getPositionIgnoreAngles:function(){return P},getRef:function(){return Io},hideHotkeysDialog:function(){return Bs},isPositionHorizontal:function(){return S},isPositionVertical:function(){return A},isRefCallback:function(){return No},isRefObject:function(){return To},mergeRefs:function(){return Ro},parseKeyCombo:function(){return Ns},refHandler:function(){return bo},removeNonHTMLProps:function(){return _o},setHotkeysDialogProps:function(){return xs},setRef:function(){return Co},useHotkeys:function(){return Ys}});var r={};n.r(r),n.d(r,{ACTIVE:function(){return L},ALERT:function(){return Ie},ALERT_BODY:function(){return be},ALERT_CONTENTS:function(){return Se},ALERT_FOOTER:function(){return Ae},ALIGN_LEFT:function(){return k},ALIGN_RIGHT:function(){return x},BLOCKQUOTE:function(){return ye},BREADCRUMB:function(){return Pe},BREADCRUMBS:function(){return Le},BREADCRUMBS_COLLAPSED:function(){return ke},BREADCRUMB_CURRENT:function(){return De},BUTTON:function(){return xe},BUTTON_GROUP:function(){return we},BUTTON_SPINNER:function(){return Be},BUTTON_TEXT:function(){return Fe},CALLOUT:function(){return Me},CALLOUT_ICON:function(){return He},CARD:function(){return Ge},CHECKBOX:function(){return Pt},CODE:function(){return ge},CODE_BLOCK:function(){return _e},COLLAPSE:function(){return Ue},COLLAPSE_BODY:function(){return Ke},COLLAPSIBLE_LIST:function(){return Ve},CONTEXT_MENU:function(){return We},CONTEXT_MENU_POPOVER_TARGET:function(){return ze},CONTROL:function(){return bt},CONTROL_GROUP:function(){return Ye},CONTROL_INDICATOR:function(){return St},CONTROL_INDICATOR_CHILD:function(){return At},DARK:function(){return w},DIALOG:function(){return qe},DIALOG_BODY:function(){return Xe},DIALOG_CLOSE_BUTTON:function(){return Qe},DIALOG_CONTAINER:function(){return je},DIALOG_FOOTER:function(){return Ze},DIALOG_FOOTER_ACTIONS:function(){return Je},DIALOG_HEADER:function(){return $e},DIALOG_STEP:function(){return et},DIALOG_STEP_CONTAINER:function(){return tt},DIALOG_STEP_ICON:function(){return rt},DIALOG_STEP_TITLE:function(){return nt},DIALOG_STEP_VIEWED:function(){return ot},DISABLED:function(){return B},DIVIDER:function(){return it},DRAWER:function(){return at},DRAWER_BODY:function(){return st},DRAWER_FOOTER:function(){return lt},DRAWER_HEADER:function(){return ut},EDITABLE_TEXT:function(){return ct},EDITABLE_TEXT_CONTENT:function(){return pt},EDITABLE_TEXT_EDITING:function(){return dt},EDITABLE_TEXT_INPUT:function(){return ht},EDITABLE_TEXT_PLACEHOLDER:function(){return ft},ELEVATION_0:function(){return ee},ELEVATION_1:function(){return te},ELEVATION_2:function(){return ne},ELEVATION_3:function(){return re},ELEVATION_4:function(){return oe},END:function(){return or},FILE_INPUT:function(){return xt},FILE_INPUT_HAS_SELECTION:function(){return wt},FILE_UPLOAD_INPUT:function(){return Bt},FILE_UPLOAD_INPUT_CUSTOM_TEXT:function(){return Ft},FILL:function(){return F},FIXED:function(){return M},FIXED_POSITIONING_CONTAINING_BLOCK:function(){return Re},FIXED_TOP:function(){return H},FLEX_EXPANDER:function(){return mt},FOCUS_DISABLED:function(){return ue},FORM_CONTENT:function(){return qt},FORM_GROUP:function(){return Yt},FORM_HELPER_TEXT:function(){return jt},HEADING:function(){return Te},HOTKEY:function(){return Ut},HOTKEY_COLUMN:function(){return Vt},HOTKEY_DIALOG:function(){return Wt},HOTKEY_LABEL:function(){return Kt},HTML_SELECT:function(){return vt},HTML_TABLE:function(){return yt},HTML_TABLE_BORDERED:function(){return gt},HTML_TABLE_CONDENSED:function(){return _t},HTML_TABLE_STRIPED:function(){return Tt},ICON:function(){return Gr},ICON_LARGE:function(){return Kr},ICON_STANDARD:function(){return Ur},INLINE:function(){return G},INPUT:function(){return Nt},INPUT_ACTION:function(){return It},INPUT_GHOST:function(){return Ct},INPUT_GROUP:function(){return Ot},INPUT_LEFT_CONTAINER:function(){return Rt},INTENT_DANGER:function(){return le},INTENT_PRIMARY:function(){return ie},INTENT_SUCCESS:function(){return ae},INTENT_WARNING:function(){return se},INTERACTIVE:function(){return U},KEY:function(){return Mt},KEY_COMBO:function(){return Ht},LABEL:function(){return zt},LARGE:function(){return K},LIST:function(){return Ne},LIST_UNSTYLED:function(){return Ce},LOADING:function(){return V},MENU:function(){return Xt},MENU_DIVIDER:function(){return $t},MENU_HEADER:function(){return en},MENU_ITEM:function(){return Qt},MENU_ITEM_LABEL:function(){return Zt},MENU_SUBMENU:function(){return Jt},MINIMAL:function(){return W},MODIFIER_KEY:function(){return Gt},MONOSPACE_TEXT:function(){return de},MULTILINE:function(){return Y},MULTISTEP_DIALOG:function(){return tn},MULTISTEP_DIALOG_FOOTER:function(){return an},MULTISTEP_DIALOG_LEFT_PANEL:function(){return rn},MULTISTEP_DIALOG_PANELS:function(){return nn},MULTISTEP_DIALOG_RIGHT_PANEL:function(){return on},NAVBAR:function(){return sn},NAVBAR_DIVIDER:function(){return cn},NAVBAR_GROUP:function(){return ln},NAVBAR_HEADING:function(){return un},NON_IDEAL_STATE:function(){return pn},NON_IDEAL_STATE_VISUAL:function(){return dn},NUMERIC_INPUT:function(){return hn},OUTLINED:function(){return z},OVERFLOW_LIST:function(){return fn},OVERFLOW_LIST_SPACER:function(){return mn},OVERLAY:function(){return vn},OVERLAY_BACKDROP:function(){return En},OVERLAY_CONTAINER:function(){return yn},OVERLAY_CONTENT:function(){return gn},OVERLAY_END_FOCUS_TRAP:function(){return On},OVERLAY_INLINE:function(){return _n},OVERLAY_OPEN:function(){return Tn},OVERLAY_SCROLL_CONTAINER:function(){return Nn},OVERLAY_START_FOCUS_TRAP:function(){return Cn},PANEL_STACK:function(){return Rn},PANEL_STACK2:function(){return An},PANEL_STACK2_HEADER:function(){return Pn},PANEL_STACK2_HEADER_BACK:function(){return Dn},PANEL_STACK2_VIEW:function(){return Ln},PANEL_STACK_HEADER:function(){return In},PANEL_STACK_HEADER_BACK:function(){return bn},PANEL_STACK_VIEW:function(){return Sn},POPOVER:function(){return kn},POPOVER_ARROW:function(){return xn},POPOVER_BACKDROP:function(){return wn},POPOVER_CAPTURING_DISMISS:function(){return Bn},POPOVER_CONTENT:function(){return Fn},POPOVER_CONTENT_SIZING:function(){return Mn},POPOVER_DISMISS:function(){return Hn},POPOVER_DISMISS_OVERRIDE:function(){return Gn},POPOVER_OPEN:function(){return Un},POPOVER_TARGET:function(){return Kn},POPOVER_WRAPPER:function(){return Vn},PORTAL:function(){return Xn},POSITION_BOTTOM:function(){return Z},POSITION_LEFT:function(){return J},POSITION_RIGHT:function(){return $},POSITION_TOP:function(){return Q},PROGRESS_BAR:function(){return zn},PROGRESS_METER:function(){return Yn},PROGRESS_NO_ANIMATION:function(){return jn},PROGRESS_NO_STRIPES:function(){return qn},RADIO:function(){return Dt},ROUND:function(){return q},RTL:function(){return Oe},RUNNING_TEXT:function(){return pe},SELECT:function(){return Et},SKELETON:function(){return Qn},SLIDER:function(){return Zn},SLIDER_AXIS:function(){return Jn},SLIDER_HANDLE:function(){return $n},SLIDER_LABEL:function(){return er},SLIDER_PROGRESS:function(){return nr},SLIDER_TRACK:function(){return tr},SMALL:function(){return j},SPINNER:function(){return ir},SPINNER_ANIMATION:function(){return ar},SPINNER_HEAD:function(){return sr},SPINNER_NO_SPIN:function(){return lr},SPINNER_TRACK:function(){return ur},START:function(){return rr},SWITCH:function(){return Lt},SWITCH_INNER_TEXT:function(){return kt},TAB:function(){return cr},TABS:function(){return mr},TAB_INDICATOR:function(){return pr},TAB_INDICATOR_WRAPPER:function(){return dr},TAB_LIST:function(){return hr},TAB_PANEL:function(){return fr},TAG:function(){return vr},TAG_INPUT:function(){return yr},TAG_INPUT_ICON:function(){return gr},TAG_INPUT_VALUES:function(){return _r},TAG_REMOVE:function(){return Er},TEXT_DISABLED:function(){return ve},TEXT_LARGE:function(){return he},TEXT_MUTED:function(){return me},TEXT_OVERFLOW_ELLIPSIS:function(){return Ee},TEXT_SMALL:function(){return fe},TOAST:function(){return Tr},TOAST_CONTAINER:function(){return Nr},TOAST_MESSAGE:function(){return Cr},TOOLTIP:function(){return Or},TOOLTIP_INDICATOR:function(){return Rr},TRANSITION_CONTAINER:function(){return Wn},TREE:function(){return Ir},TREE_NODE:function(){return br},TREE_NODE_CARET:function(){return Sr},TREE_NODE_CARET_CLOSED:function(){return Ar},TREE_NODE_CARET_NONE:function(){return Pr},TREE_NODE_CARET_OPEN:function(){return Dr},TREE_NODE_CONTENT:function(){return Lr},TREE_NODE_EXPANDED:function(){return kr},TREE_NODE_ICON:function(){return xr},TREE_NODE_LABEL:function(){return wr},TREE_NODE_LIST:function(){return Br},TREE_NODE_SECONDARY_LABEL:function(){return Fr},TREE_NODE_SELECTED:function(){return Mr},TREE_ROOT:function(){return Hr},UI_TEXT:function(){return ce},VERTICAL:function(){return X},alignmentClass:function(){return Wr},elevationClass:function(){return zr},getClassNamespace:function(){return Vr},iconClass:function(){return Yr},intentClass:function(){return qr},positionClass:function(){return jr}});var o={};n.r(o),n.d(o,{ARROW_DOWN:function(){return Fo},ARROW_LEFT:function(){return xo},ARROW_RIGHT:function(){return Bo},ARROW_UP:function(){return wo},BACKSPACE:function(){return So},DELETE:function(){return Mo},ENTER:function(){return Po},ESCAPE:function(){return Lo},SHIFT:function(){return Do},SPACE:function(){return ko},TAB:function(){return Ao},isKeyboardClick:function(){return Ho}});var i={};n.r(i),n.d(i,{approxEqual:function(){return io},arrayLengthCompare:function(){return oo},arraysEqual:function(){return Go},clamp:function(){return ao},countDecimalPlaces:function(){return so},createReactRef:function(){return si},deepCompareKeys:function(){return Ko},elementIsOrContains:function(){return Zo},ensureElement:function(){return oi},getDeepUnequalKeyValues:function(){return Vo},getDisplayName:function(){return ii},getRef:function(){return Io},isDarkTheme:function(){return ui},isElementOfType:function(){return ai},isFunction:function(){return jo},isNodeEnv:function(){return ro},isReactChildrenElementOrElements:function(){return ri},isReactNodeEmpty:function(){return ni},safeInvoke:function(){return Xo},safeInvokeMember:function(){return li},safeInvokeOrValue:function(){return Qo},setRef:function(){return Co},shallowCompareKeys:function(){return Uo},throttle:function(){return ei},throttleEvent:function(){return Jo},throttleReactEventCallback:function(){return $o},uniqueId:function(){return uo}});var a={};n.r(a),n.d(a,{hide:function(){return Wi},isOpen:function(){return zi},show:function(){return Vi}});var s={};n.r(s),n.d(s,{T:function(){return $i}});var l={};n.r(l),n.d(l,{A6:function(){return Ts},q1:function(){return Os},$w:function(){return Cs},cU:function(){return Rs},SG:function(){return Ns}});var u={};n.r(u),n.d(u,{M:function(){return As}});var c={};n.r(c),n.d(c,{q:function(){return Ps}});var p={};n.r(p),n.d(p,{dX:function(){return Bs},sc:function(){return Fs},Ar:function(){return ks},wq:function(){return xs},_T:function(){return ws}});var d={};n.r(d),n.d(d,{N:function(){return Hs}});var h={};n.r(h),n.d(h,{B:function(){return Vs},N:function(){return zs}});var f={};n.r(f),n.d(f,{y:function(){return Ys}});var m={};n.r(m),n.d(m,{h:function(){return js}});var v={};n.r(v),n.d(v,{o:function(){return Xs}});var E={};n.r(E),n.d(E,{h:function(){return rl}});var y={};n.r(y);var g={};n.r(g);var _,T,N,C,O={CENTER:"center",LEFT:"left",RIGHT:"right"},R={ZERO:0,ONE:1,TWO:2,THREE:3,FOUR:4},I={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},b={BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",LEFT:"left",LEFT_BOTTOM:"left-bottom",LEFT_TOP:"left-top",RIGHT:"right",RIGHT_BOTTOM:"right-bottom",RIGHT_TOP:"right-top",TOP:"top",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};function S(e){return e===b.TOP||e===b.TOP_LEFT||e===b.TOP_RIGHT||e===b.BOTTOM||e===b.BOTTOM_LEFT||e===b.BOTTOM_RIGHT}function A(e){return e===b.LEFT||e===b.LEFT_TOP||e===b.LEFT_BOTTOM||e===b.RIGHT||e===b.RIGHT_TOP||e===b.RIGHT_BOTTOM}function P(e){return e===b.TOP||e===b.TOP_LEFT||e===b.TOP_RIGHT?b.TOP:e===b.BOTTOM||e===b.BOTTOM_LEFT||e===b.BOTTOM_RIGHT?b.BOTTOM:e===b.LEFT||e===b.LEFT_TOP||e===b.LEFT_BOTTOM?b.LEFT:b.RIGHT}var D="bp3";"undefined"!=typeof process&&(D=null!==(C=null!==(T=null===(_=process.env)||void 0===_?void 0:null)&&void 0!==T?T:null===(N=process.env)||void 0===N?void 0:null)&&void 0!==C?C:D);var L=D+"-active",k=D+"-align-left",x=D+"-align-right",w=D+"-dark",B=D+"-disabled",F=D+"-fill",M=D+"-fixed",H=D+"-fixed-top",G=D+"-inline",U=D+"-interactive",K=D+"-large",V=D+"-loading",W=D+"-minimal",z=D+"-outlined",Y=D+"-multiline",q=D+"-round",j=D+"-small",X=D+"-vertical",Q=jr(b.TOP),Z=jr(b.BOTTOM),J=jr(b.LEFT),$=jr(b.RIGHT),ee=zr(R.ZERO),te=zr(R.ONE),ne=zr(R.TWO),re=zr(R.THREE),oe=zr(R.FOUR),ie=qr(I.PRIMARY),ae=qr(I.SUCCESS),se=qr(I.WARNING),le=qr(I.DANGER),ue=D+"-focus-disabled",ce=D+"-ui-text",pe=D+"-running-text",de=D+"-monospace-text",he=D+"-text-large",fe=D+"-text-small",me=D+"-text-muted",ve=D+"-text-disabled",Ee=D+"-text-overflow-ellipsis",ye=D+"-blockquote",ge=D+"-code",_e=D+"-code-block",Te=D+"-heading",Ne=D+"-list",Ce=D+"-list-unstyled",Oe=D+"-rtl",Re=D+"-fixed-positioning-containing-block",Ie=D+"-alert",be=Ie+"-body",Se=Ie+"-contents",Ae=Ie+"-footer",Pe=D+"-breadcrumb",De=Pe+"-current",Le=Pe+"s",ke=Pe+"s-collapsed",xe=D+"-button",we=xe+"-group",Be=xe+"-spinner",Fe=xe+"-text",Me=D+"-callout",He=Me+"-icon",Ge=D+"-card",Ue=D+"-collapse",Ke=Ue+"-body",Ve=D+"-collapse-list",We=D+"-context-menu",ze=We+"-popover-target",Ye=D+"-control-group",qe=D+"-dialog",je=qe+"-container",Xe=qe+"-body",Qe=qe+"-close-button",Ze=qe+"-footer",Je=qe+"-footer-actions",$e=qe+"-header",et=D+"-dialog-step",tt=et+"-container",nt=et+"-title",rt=et+"-icon",ot=et+"-viewed",it=D+"-divider",at=D+"-drawer",st=at+"-body",lt=at+"-footer",ut=at+"-header",ct=D+"-editable-text",pt=ct+"-content",dt=ct+"-editing",ht=ct+"-input",ft=ct+"-placeholder",mt=D+"-flex-expander",vt=D+"-html-select",Et=D+"-select",yt=D+"-html-table",gt=yt+"-bordered",_t=yt+"-condensed",Tt=yt+"-striped",Nt=D+"-input",Ct=Nt+"-ghost",Ot=Nt+"-group",Rt=Nt+"-left-container",It=Nt+"-action",bt=D+"-control",St=bt+"-indicator",At=St+"-child",Pt=D+"-checkbox",Dt=D+"-radio",Lt=D+"-switch",kt=Lt+"-inner-text",xt=D+"-file-input",wt=D+"-file-input-has-selection",Bt=D+"-file-upload-input",Ft=D+"-file-upload-input-custom-text",Mt=D+"-key",Ht=Mt+"-combo",Gt=D+"-modifier-key",Ut=D+"-hotkey",Kt=Ut+"-label",Vt=Ut+"-column",Wt=Ut+"-dialog",zt=D+"-label",Yt=D+"-form-group",qt=D+"-form-content",jt=D+"-form-helper-text",Xt=D+"-menu",Qt=Xt+"-item",Zt=Qt+"-label",Jt=D+"-submenu",$t=Xt+"-divider",en=Xt+"-header",tn=D+"-multistep-dialog",nn=tn+"-panels",rn=tn+"-left-panel",on=tn+"-right-panel",an=tn+"-footer",sn=D+"-navbar",ln=sn+"-group",un=sn+"-heading",cn=sn+"-divider",pn=D+"-non-ideal-state",dn=pn+"-visual",hn=D+"-numeric-input",fn=D+"-overflow-list",mn=fn+"-spacer",vn=D+"-overlay",En=vn+"-backdrop",yn=vn+"-container",gn=vn+"-content",_n=vn+"-inline",Tn=vn+"-open",Nn=vn+"-scroll-container",Cn=vn+"-start-focus-trap",On=vn+"-end-focus-trap",Rn=D+"-panel-stack",In=Rn+"-header",bn=Rn+"-header-back",Sn=Rn+"-view",An=D+"-panel-stack2",Pn=Rn+"-header",Dn=Rn+"-header-back",Ln=Rn+"-view",kn=D+"-popover",xn=kn+"-arrow",wn=kn+"-backdrop",Bn=kn+"-capturing-dismiss",Fn=kn+"-content",Mn=Fn+"-sizing",Hn=kn+"-dismiss",Gn=Hn+"-override",Un=kn+"-open",Kn=kn+"-target",Vn=kn+"-wrapper",Wn=D+"-transition-container",zn=D+"-progress-bar",Yn=D+"-progress-meter",qn=D+"-no-stripes",jn=D+"-no-animation",Xn=D+"-portal",Qn=D+"-skeleton",Zn=D+"-slider",Jn=Zn+"-axis",$n=Zn+"-handle",er=Zn+"-label",tr=Zn+"-track",nr=Zn+"-progress",rr=D+"-start",or=D+"-end",ir=D+"-spinner",ar=ir+"-animation",sr=ir+"-head",lr=D+"-no-spin",ur=ir+"-track",cr=D+"-tab",pr=cr+"-indicator",dr=pr+"-wrapper",hr=cr+"-list",fr=cr+"-panel",mr=cr+"s",vr=D+"-tag",Er=vr+"-remove",yr=D+"-tag-input",gr=yr+"-icon",_r=yr+"-values",Tr=D+"-toast",Nr=Tr+"-container",Cr=Tr+"-message",Or=D+"-tooltip",Rr=Or+"-indicator",Ir=D+"-tree",br=D+"-tree-node",Sr=br+"-caret",Ar=Sr+"-closed",Pr=Sr+"-none",Dr=Sr+"-open",Lr=br+"-content",kr=br+"-expanded",xr=br+"-icon",wr=br+"-label",Br=br+"-list",Fr=br+"-secondary-label",Mr=br+"-selected",Hr=D+"-tree-root",Gr=D+"-icon",Ur=Gr+"-standard",Kr=Gr+"-large";function Vr(){return D}function Wr(e){switch(e){case O.LEFT:return k;case O.RIGHT:return x;default:return}}function zr(e){if(void 0!==e)return D+"-elevation-"+e}function Yr(e){if(null!=e)return 0===e.indexOf(D+"-icon-")?e:D+"-icon-"+e}function qr(e){if(null!=e&&e!==I.NONE)return D+"-intent-"+e.toLowerCase()}function jr(e){if(void 0!==e)return D+"-position-"+e}var Xr=function(){function e(e,t){var n=this;this.container=e,this.className=t,this.isRunning=!1,this.handleKeyDown=function(e){9===e.which&&(n.reset(),n.container.addEventListener("mousedown",n.handleMouseDown))},this.handleMouseDown=function(){n.reset(),n.container.classList.add(n.className),n.container.addEventListener("keydown",n.handleKeyDown)}}return e.prototype.isActive=function(){return this.isRunning},e.prototype.start=function(){this.container.addEventListener("mousedown",this.handleMouseDown),this.isRunning=!0},e.prototype.stop=function(){this.reset(),this.isRunning=!1},e.prototype.reset=function(){this.container.classList.remove(this.className),this.container.removeEventListener("keydown",this.handleKeyDown),this.container.removeEventListener("mousedown",this.handleMouseDown)},e}(),Qr="undefined"!=typeof document?new Xr(document.documentElement,ue):{isActive:function(){return!0},start:function(){return!0},stop:function(){return!0}},Zr={alwaysShowFocus:function(){return Qr.stop()},isActive:function(){return Qr.isActive()},onlyShowFocusOnTabs:function(){return Qr.start()}},Jr=n(770),$r=n(888),eo="[Blueprint]",to=eo+" <Dialog> iconName is ignored if title is omitted.",no=eo+" <Dialog> isCloseButtonShown prop is ignored if title is omitted.";function ro(e){return"undefined"!=typeof process&&process.env&&"production"===e}function oo(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length-t.length}function io(e,t,n){return void 0===n&&(n=1e-5),Math.abs(e-t)<=n}function ao(e,t,n){if(null==e)return e;if(n<t)throw new Error("[Blueprint] clamp: max cannot be less than min");return Math.min(Math.max(e,t),n)}function so(e){if(!isFinite(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}var lo=new Map;function uo(e){var t,n=null!==(t=lo.get(e))&&void 0!==t?t:0;return lo.set(e,n+1),e+"-"+n}var co=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.timeoutIds=[],r.clearTimeouts=function(){if(r.timeoutIds.length>0){for(var e=0,t=r.timeoutIds;e<t.length;e++){var n=t[e];window.clearTimeout(n)}r.timeoutIds=[]}},ro("production")||r.validateProps(r.props),r}return(0,Jr.__extends)(t,e),t.prototype.componentWillReceiveProps=function(e){ro("production")||this.validateProps(e)},t.prototype.componentWillUnmount=function(){this.clearTimeouts()},t.prototype.setTimeout=function(e,t){var n=window.setTimeout(e,t);return this.timeoutIds.push(n),function(){return window.clearTimeout(n)}},t.prototype.validateProps=function(e){},t}($r.Component),po=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.timeoutIds=[],r.requestIds=[],r.clearTimeouts=function(){if(r.timeoutIds.length>0){for(var e=0,t=r.timeoutIds;e<t.length;e++){var n=t[e];window.clearTimeout(n)}r.timeoutIds=[]}},r.cancelAnimationFrames=function(){if(r.requestIds.length>0){for(var e=0,t=r.requestIds;e<t.length;e++){var n=t[e];window.cancelAnimationFrame(n)}r.requestIds=[]}},ro("production")||r.validateProps(r.props),r}return(0,Jr.__extends)(t,e),t.prototype.componentDidUpdate=function(e,t,n){ro("production")||this.validateProps(this.props)},t.prototype.componentWillUnmount=function(){this.clearTimeouts(),this.cancelAnimationFrames()},t.prototype.requestAnimationFrame=function(e){var t=window.requestAnimationFrame(e);return this.requestIds.push(t),function(){return window.cancelAnimationFrame(t)}},t.prototype.setTimeout=function(e,t){var n=window.setTimeout(e,t);return this.timeoutIds.push(n),function(){return window.clearTimeout(n)}},t.prototype.validateProps=function(e){},t}($r.Component),ho=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.timeoutIds=[],r.clearTimeouts=function(){if(r.timeoutIds.length>0){for(var e=0,t=r.timeoutIds;e<t.length;e++){var n=t[e];window.clearTimeout(n)}r.timeoutIds=[]}},ro("production")||r.validateProps(r.props),r}return(0,Jr.__extends)(t,e),t.prototype.componentWillReceiveProps=function(e){ro("production")||this.validateProps(e)},t.prototype.componentWillUnmount=function(){this.clearTimeouts()},t.prototype.setTimeout=function(e,t){var n=window.setTimeout(e,t);return this.timeoutIds.push(n),function(){return window.clearTimeout(n)}},t.prototype.validateProps=function(e){},t}($r.PureComponent),fo=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.timeoutIds=[],r.requestIds=[],r.clearTimeouts=function(){if(r.timeoutIds.length>0){for(var e=0,t=r.timeoutIds;e<t.length;e++){var n=t[e];window.clearTimeout(n)}r.timeoutIds=[]}},r.cancelAnimationFrames=function(){if(r.requestIds.length>0){for(var e=0,t=r.requestIds;e<t.length;e++){var n=t[e];window.cancelAnimationFrame(n)}r.requestIds=[]}},ro("production")||r.validateProps(r.props),r}return(0,Jr.__extends)(t,e),t.prototype.componentDidUpdate=function(e,t,n){ro("production")||this.validateProps(this.props)},t.prototype.componentWillUnmount=function(){this.clearTimeouts(),this.cancelAnimationFrames()},t.prototype.requestAnimationFrame=function(e){var t=window.requestAnimationFrame(e);return this.requestIds.push(t),function(){return window.cancelAnimationFrame(t)}},t.prototype.setTimeout=function(e,t){var n=window.setTimeout(e,t);return this.timeoutIds.push(n),function(){return window.clearTimeout(n)}},t.prototype.validateProps=function(e){},t}($r.PureComponent),mo={START:"start",END:"end"},vo=n(748),Eo=(0,Jr.__assign)((0,Jr.__assign)({},vo.a4),{CERULEAN1:vo.a4.COBALT1,CERULEAN2:vo.a4.COBALT2,CERULEAN3:vo.a4.COBALT3,CERULEAN4:vo.a4.COBALT4,CERULEAN5:vo.a4.COBALT5}),yo="Blueprint3",go=["active","alignText","asyncControl","containerRef","current","elementRef","fill","icon","inputRef","intent","inline","large","loading","leftElement","leftIcon","minimal","onRemove","outlined","panel","panelClassName","popoverProps","rightElement","rightIcon","round","small","text"];function _o(e,t,n){return void 0===t&&(t=go),void 0===n&&(n=!1),n&&(t=t.concat(go)),t.reduce((function(e,t){return-1!==t.indexOf("-")||e.hasOwnProperty(t)&&delete e[t],e}),(0,Jr.__assign)({},e))}function To(e){return null!=e&&"function"!=typeof e}function No(e){return"function"==typeof e}function Co(e,t){To(e)?e.current=t:No(e)&&e(t)}function Oo(e,t){return Ro(e,t)}function Ro(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){e.forEach((function(e){Co(e,t)}))}}function Io(e){var t;return null===e?null:null!==(t=e.current)&&void 0!==t?t:e}function bo(e,t,n){return function(r){e[t]=r,Co(n,r)}}var So=8,Ao=9,Po=13,Do=16,Lo=27,ko=32,xo=37,wo=38,Bo=39,Fo=40,Mo=46;function Ho(e){return e===Po||e===ko}function Go(e,t,n){return void 0===n&&(n=function(e,t){return e===t}),null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every((function(e,r){return n(e,t[r])}))}function Uo(e,t,n){if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!=n)return Wo(e,t,n);var r=Object.keys(e),o=Object.keys(t);return Wo(e,t,{include:r})&&Wo(e,t,{include:o})}function Ko(e,t,n){if(e===t)return!0;if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e)||Array.isArray(t))return Go(e,t,Ko);if(Yo(e)||Yo(t))return e===t;if(null!=n)return zo(e,t,n);if(e.constructor!==t.constructor)return!1;var r=Object.keys(e),o=Object.keys(t);return null!=r&&null!=o&&(0===r.length&&0===o.length||Go(r,o)&&zo(e,t,r))}function Vo(e,t,n){return void 0===e&&(e={}),void 0===t&&(t={}),function(e,t,n,r){return n.filter((function(n){return!function(e,t,n){return Ko(e,t,[n])}(e,t,n)})).map((function(n){return{key:n,valueA:e[n],valueB:t[n]}}))}(e,t,null==n?function(e,t){var n=Object.keys(e),r=Object.keys(t),o=qo(n.concat(r));return Object.keys(o)}(e,t):n)}function Wo(e,t,n){return function(e,t,n){if(function(e){return null!=e&&null!=e.include}(n))return n.include;if(function(e){return null!=e&&null!=e.exclude}(n)){var r=Object.keys(e),o=Object.keys(t),i=qo(r.concat(o));return n.exclude.forEach((function(e){return delete i[e]})),Object.keys(i)}return[]}(e,t,n).every((function(n){return e.hasOwnProperty(n)===t.hasOwnProperty(n)&&e[n]===t[n]}))}function zo(e,t,n){return n.every((function(n){return e.hasOwnProperty(n)===t.hasOwnProperty(n)&&Ko(e[n],t[n])}))}function Yo(e){return"number"==typeof e||"string"==typeof e||"boolean"==typeof e}function qo(e){return e.reduce((function(e,t){return e[t]=!0,e}),{})}function jo(e){return"function"==typeof e}function Xo(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(jo(e))return e.apply(void 0,t)}function Qo(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return jo(e)?e.apply(void 0,t):e}function Zo(e,t){return e===t||e.contains(t)}function Jo(e,t,n){var r=ti((function(t){e.dispatchEvent(new CustomEvent(n,t))}));return e.addEventListener(t,r),r}function $o(e,t){return void 0===t&&(t={}),ti(e,(function(e){t.preventDefault&&e.preventDefault()}),(function(e){return e.persist()}))}function ei(e){return ti(e)}function ti(e,t,n){var r=!1;return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];jo(t)&&t.apply(void 0,o),r||(r=!0,jo(n)&&n.apply(void 0,o),requestAnimationFrame((function(){e.apply(void 0,o),r=!1})))}}function ni(e,t){return void 0===t&&(t=!1),null==e||""===e||!1===e||!t&&Array.isArray(e)&&(0===e.length||e.every((function(e){return ni(e,!0)})))}function ri(e){return!ni(e,!0)&&!0!==e}function oi(e,t){return void 0===t&&(t="span"),null==e||"boolean"==typeof e?void 0:"string"==typeof e?e.trim().length>0?$r.createElement(t,{},e):void 0:"number"==typeof e||"symbol"==typeof e.type||Array.isArray(e)?$r.createElement(t,{},e):function(e){return"object"==typeof e&&void 0!==e.type&&void 0!==e.props}(e)?e:void 0}function ii(e){return e.displayName||e.name||"Unknown"}function ai(e,t){return null!=e&&null!=e.type&&null!=e.type.displayName&&e.type.displayName===t.displayName}function si(){return void 0!==$r.createRef?$r.createRef():{current:null}}function li(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(null!=e){var o=e[t];if(jo(o))return o.apply(void 0,n)}}function ui(e){return null!=e&&e instanceof Element&&null!=e.closest("."+w)}var ci=n(957),pi=n.n(ci),di=n(757);function hi(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function fi(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function mi(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function vi(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=hi,t.componentWillReceiveProps=fi),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=mi;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}hi.__suppressDeprecationWarning=!0,fi.__suppressDeprecationWarning=!0,mi.__suppressDeprecationWarning=!0;var Ei=n(72),yi=n(323),gi=!jo(di.createPortal),_i={blueprintPortalClassName:function(e,t){if(null!=e[t]&&"string"!=typeof e[t])return new Error("[Blueprint] <Portal> context blueprintPortalClassName must be string")}},Ti=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.context={},t.state={hasMounted:!1},t.portalElement=null,t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){return gi||"undefined"==typeof document||!this.state.hasMounted||null===this.portalElement?null:di.createPortal(this.props.children,this.portalElement)},t.prototype.componentDidMount=function(){this.props.container&&(this.portalElement=this.createContainerElement(),this.props.container.appendChild(this.portalElement),this.setState({hasMounted:!0},this.props.onChildrenMount),gi&&this.unstableRenderNoPortal())},t.prototype.componentDidUpdate=function(e){var t,n;null!=this.portalElement&&e.className!==this.props.className&&(t=this.portalElement.classList,null!=(n=e.className)&&""!==n&&t.remove.apply(t,n.split(" ")),Ni(this.portalElement.classList,this.props.className)),gi&&this.unstableRenderNoPortal()},t.prototype.componentWillUnmount=function(){null!=this.portalElement&&(gi&&di.unmountComponentAtNode(this.portalElement),this.portalElement.remove())},t.prototype.createContainerElement=function(){var e=document.createElement("div");return e.classList.add(Xn),Ni(e.classList,this.props.className),null!=this.context&&Ni(e.classList,this.context.blueprintPortalClassName),e},t.prototype.unstableRenderNoPortal=function(){null!==this.portalElement&&di.unstable_renderSubtreeIntoContainer(this,$r.createElement("div",null,this.props.children),this.portalElement)},t.displayName=yo+".Portal",t.contextTypes=_i,t.defaultProps={container:"undefined"!=typeof document?document.body:void 0},t}($r.Component);function Ni(e,t){null!=t&&""!==t&&e.add.apply(e,t.split(" "))}var Ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isAutoFocusing=!1,t.state={hasEverOpened:t.props.isOpen},t.containerElement=null,t.startFocusTrapElement=null,t.endFocusTrapElement=null,t.refHandlers={container:function(e){return t.containerElement=(0,di.findDOMNode)(e)},endFocusTrap:function(e){return t.endFocusTrapElement=e},startFocusTrap:function(e){return t.startFocusTrapElement=e}},t.maybeRenderChild=function(e){if(jo(e)&&(e=e()),null==e)return null;var n="object"==typeof e?$r.cloneElement(e,{className:pi()(e.props.className,gn)}):$r.createElement("span",{className:gn},e),r=t.props,o=r.onOpening,i=r.onOpened,a=r.onClosing,s=r.transitionDuration,l=r.transitionName,u=yi.CSSTransition;return $r.createElement(u,{classNames:l,onEntering:o,onEntered:i,onExiting:a,onExited:t.handleTransitionExited,timeout:s,addEndListener:t.handleTransitionAddEnd},n)},t.handleStartFocusTrapElementFocus=function(e){var n;t.props.enforceFocus&&!t.isAutoFocusing&&null!=e.relatedTarget&&t.containerElement.contains(e.relatedTarget)&&e.relatedTarget!==t.endFocusTrapElement&&(null===(n=t.endFocusTrapElement)||void 0===n||n.focus())},t.handleStartFocusTrapElementKeyDown=function(e){var n;if(t.props.enforceFocus&&e.shiftKey&&e.which===Ao){var r=t.getKeyboardFocusableElements().pop();null!=r?r.focus():null===(n=t.endFocusTrapElement)||void 0===n||n.focus()}},t.handleEndFocusTrapElementFocus=function(e){var n,r;if(null!=e.relatedTarget&&t.containerElement.contains(e.relatedTarget)&&e.relatedTarget!==t.startFocusTrapElement){var o=t.getKeyboardFocusableElements().shift();t.isAutoFocusing||null==o||o===e.relatedTarget?null===(n=t.startFocusTrapElement)||void 0===n||n.focus():o.focus()}else{var i=t.getKeyboardFocusableElements().pop();null!=i?i.focus():null===(r=t.startFocusTrapElement)||void 0===r||r.focus()}},t.handleTransitionExited=function(e){var n,r;t.props.shouldReturnFocusOnClose&&t.lastActiveElementBeforeOpened instanceof HTMLElement&&t.lastActiveElementBeforeOpened.focus(),null===(r=(n=t.props).onClosed)||void 0===r||r.call(n,e)},t.handleBackdropMouseDown=function(e){var n,r=t.props,o=r.backdropProps,i=r.canOutsideClickClose,a=r.enforceFocus,s=r.onClose;i&&(null==s||s(e)),a&&t.bringFocusInsideOverlay(),null===(n=null==o?void 0:o.onMouseDown)||void 0===n||n.call(o,e)},t.handleDocumentClick=function(e){var r=t.props,o=r.canOutsideClickClose,i=r.isOpen,a=r.onClose,s=e.composed?e.composedPath()[0]:e.target,l=n.openStack.indexOf(t),u=n.openStack.slice(l).some((function(e){var t=e.containerElement;return t&&t.contains(s)&&!t.isSameNode(s)}));i&&!u&&o&&(null==a||a(e))},t.handleDocumentFocus=function(e){var n=e.composed?e.composedPath()[0]:e.target;t.props.enforceFocus&&null!=t.containerElement&&n instanceof Node&&!t.containerElement.contains(n)&&(e.preventDefault(),e.stopImmediatePropagation(),t.bringFocusInsideOverlay())},t.handleKeyDown=function(e){var n=t.props,r=n.canEscapeKeyClose,o=n.onClose;e.which===Lo&&r&&(null==o||o(e),e.preventDefault())},t.handleTransitionAddEnd=function(){},t}var n;return(0,Jr.__extends)(t,e),n=t,t.getDerivedStateFromProps=function(e){var t=e.isOpen;return t?{hasEverOpened:t}:null},t.prototype.render=function(){var e,t;if(this.props.lazy&&!this.state.hasEverOpened)return null;var n=this.props,r=n.autoFocus,o=n.children,i=n.className,a=n.enforceFocus,s=n.usePortal,l=n.isOpen,u=l&&null!==(t=$r.Children.map(o,this.maybeRenderChild))&&void 0!==t?t:[],c=this.maybeRenderBackdrop();null!==c&&u.unshift(c),l&&(r||a)&&u.length>0&&(u.unshift(this.renderDummyElement("__start",{className:Cn,onFocus:this.handleStartFocusTrapElementFocus,onKeyDown:this.handleStartFocusTrapElementKeyDown,ref:this.refHandlers.startFocusTrap})),a&&u.push(this.renderDummyElement("__end",{className:On,onFocus:this.handleEndFocusTrapElementFocus,ref:this.refHandlers.endFocusTrap})));var p=pi()(vn,((e={})[Tn]=l,e[_n]=!s,e),i),d=$r.createElement(yi.TransitionGroup,{appear:!0,"aria-live":"polite",className:p,component:"div",onKeyDown:this.handleKeyDown,ref:this.refHandlers.container},u);return s?$r.createElement(Ti,{className:this.props.portalClassName,container:this.props.portalContainer},d):d},t.prototype.componentDidMount=function(){this.props.isOpen&&this.overlayWillOpen()},t.prototype.componentDidUpdate=function(e){e.isOpen&&!this.props.isOpen?this.overlayWillClose():!e.isOpen&&this.props.isOpen&&this.overlayWillOpen()},t.prototype.componentWillUnmount=function(){this.overlayWillClose()},t.prototype.bringFocusInsideOverlay=function(){var e=this;return this.requestAnimationFrame((function(){var t;null!=e.containerElement&&null!=document.activeElement&&e.props.isOpen&&!e.containerElement.contains(document.activeElement)&&(null===(t=e.startFocusTrapElement)||void 0===t||t.focus(),e.isAutoFocusing=!1)}))},t.prototype.maybeRenderBackdrop=function(){var e=this.props,t=e.backdropClassName,n=e.backdropProps,r=e.hasBackdrop,o=e.isOpen,i=e.transitionDuration,a=e.transitionName;return r&&o?$r.createElement(yi.CSSTransition,{classNames:a,key:"__backdrop",timeout:i,addEndListener:this.handleTransitionAddEnd},$r.createElement("div",(0,Jr.__assign)({},n,{className:pi()(En,t,null==n?void 0:n.className),onMouseDown:this.handleBackdropMouseDown}))):null},t.prototype.renderDummyElement=function(e,t){var n=this.props,r=n.transitionDuration,o=n.transitionName;return $r.createElement(yi.CSSTransition,{classNames:o,key:e,addEndListener:this.handleTransitionAddEnd,timeout:r,unmountOnExit:!0},$r.createElement("div",(0,Jr.__assign)({tabIndex:0},t)))},t.prototype.getKeyboardFocusableElements=function(){return(null!==this.containerElement?Array.from(this.containerElement.querySelectorAll(['a[href]:not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','details:not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].join(","))):[]).filter((function(e){return!e.classList.contains(Cn)&&!e.classList.contains(On)}))},t.prototype.overlayWillClose=function(){document.removeEventListener("focus",this.handleDocumentFocus,!0),document.removeEventListener("mousedown",this.handleDocumentClick);var e=n.openStack,t=e.indexOf(this);if(-1!==t){if(e.splice(t,1),e.length>0){var r=n.getLastOpened();r.props.enforceFocus&&(r.bringFocusInsideOverlay(),document.addEventListener("focus",r.handleDocumentFocus,!0))}0===e.filter((function(e){return e.props.usePortal&&e.props.hasBackdrop})).length&&document.body.classList.remove(Tn)}},t.prototype.overlayWillOpen=function(){var e=n.getLastOpened,t=n.openStack;t.length>0&&document.removeEventListener("focus",e().handleDocumentFocus,!0),t.push(this),this.props.autoFocus&&(this.isAutoFocusing=!0,this.bringFocusInsideOverlay()),this.props.enforceFocus&&document.addEventListener("focus",this.handleDocumentFocus,!0),this.props.canOutsideClickClose&&!this.props.hasBackdrop&&document.addEventListener("mousedown",this.handleDocumentClick),this.props.hasBackdrop&&this.props.usePortal&&document.body.classList.add(Tn),this.lastActiveElementBeforeOpened=document.activeElement},t.displayName=yo+".Overlay",t.defaultProps={autoFocus:!0,backdropProps:{},canEscapeKeyClose:!0,canOutsideClickClose:!0,enforceFocus:!0,hasBackdrop:!0,isOpen:!1,lazy:!0,shouldReturnFocusOnClose:!0,transitionDuration:300,transitionName:vn,usePortal:!0},t.openStack=[],t.getLastOpened=function(){return n.openStack[n.openStack.length-1]},n=(0,Jr.__decorate)([vi],t)}(fo),Oi=n(1),Ri=n.n(Oi),Ii=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.observer=new(Ri())((function(e){var n,r;return null===(r=(n=t.props).onResize)||void 0===r?void 0:r.call(n,e)})),t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){return $r.Children.only(this.props.children)},t.prototype.componentDidMount=function(){this.observeElement()},t.prototype.componentDidUpdate=function(e){this.observeElement(this.props.observeParents!==e.observeParents)},t.prototype.componentWillUnmount=function(){this.observer.disconnect()},t.prototype.observeElement=function(e){void 0===e&&(e=!1);var t=this.getElement();if(t instanceof Element){if((t!==this.element||e)&&(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParents))for(var n=t.parentElement;null!=n;)this.observer.observe(n),n=n.parentElement}else this.observer.disconnect()},t.prototype.getElement=function(){try{return(0,di.findDOMNode)(this)}catch(e){return null}},t.displayName=yo+".ResizeSensor",(0,Jr.__decorate)([vi],t)}(fo),bi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popover=null,t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t=this,n=this.props,r=n.children,o=n.intent,i=n.popoverClassName,a=(0,Jr.__rest)(n,["children","intent","popoverClassName"]),s=pi()(Or,((e={})[W]=this.props.minimal,e),qr(o),i);return $r.createElement(Gi,(0,Jr.__assign)({interactionKind:Hi.HOVER_TARGET_ONLY,modifiers:{arrow:{enabled:!this.props.minimal}}},a,{autoFocus:!1,canEscapeKeyClose:!1,enforceFocus:!1,lazy:!0,popoverClassName:s,portalContainer:this.props.portalContainer,ref:function(e){return t.popover=e}}),r)},t.prototype.reposition=function(){null!=this.popover&&this.popover.reposition()},t.displayName=yo+".Tooltip",t.defaultProps={hoverCloseDelay:0,hoverOpenDelay:100,minimal:!1,transitionDuration:100},(0,Jr.__decorate)([vi],t)}(fo);function Si(e){return e.split("-")[0]}function Ai(e){return-1!==["left","right"].indexOf(e)}function Pi(e){switch(e){case"top":return"bottom";case"left":return"right";case"bottom":return"top";default:return"left"}}function Di(e){switch(e.split("-")[1]){case"start":return"left";case"end":return"right";default:return"center"}}function Li(e){var t=Si(e.placement);if(null==e.arrowElement)return Ai(t)?Pi(t)+" "+Di(t):Di(t)+" "+Pi(t);var n=e.arrowElement.clientHeight/2,r=e.offsets.arrow;return Ai(t)?Pi(t)+" "+(r.top+n)+"px":r.left+n+"px "+Pi(t)}var ki=function(e){if(null==e.arrowElement)return e;var t=e.arrowElement.clientWidth,n=Si(e.placement),r=Ai(n),o=r?"width":"height",i=r?"left":"top",a=Math.round(t/2/Math.sqrt(2));return"top"===n||"left"===n?(e.offsets.popper[i]-=a+4,e.offsets.arrow[i]=e.offsets.popper[o]-t+a):(e.offsets.popper[i]+=a+4,e.offsets.arrow[i]=-a),e};function xi(e){if(null==e)return 0;switch(Si(e)){case"top":return-90;case"left":return 180;case"bottom":return 90;default:return 0}}var wi=function(e){var t=e.arrowProps,n=t.ref,r=t.style,o=e.placement;return $r.createElement("div",{className:xn,ref:n,style:null==r.left||isNaN(+r.left)?{}:r},$r.createElement("svg",{viewBox:"0 0 30 30",style:{transform:"rotate("+xi(o)+"deg)"}},$r.createElement("path",{className:xn+"-border",d:"M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z"}),$r.createElement("path",{className:xn+"-fill",d:"M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z"})))};function Bi(e){switch(e){case b.TOP_LEFT:return"top-start";case b.TOP:return"top";case b.TOP_RIGHT:return"top-end";case b.RIGHT_TOP:return"right-start";case b.RIGHT:return"right";case b.RIGHT_BOTTOM:return"right-end";case b.BOTTOM_RIGHT:return"bottom-end";case b.BOTTOM:return"bottom";case b.BOTTOM_LEFT:return"bottom-start";case b.LEFT_BOTTOM:return"left-end";case b.LEFT:return"left";case b.LEFT_TOP:return"left-start";case"auto":case"auto-start":case"auto-end":return e;default:return function(e){throw new Error("Unexpected position: "+e)}(e)}}wi.displayName=yo+".PopoverArrow";var Fi,Mi,Hi={CLICK:"click",CLICK_TARGET_ONLY:"click-target",HOVER:"hover",HOVER_TARGET_ONLY:"hover-target"},Gi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popoverRef=si(),t.popoverElement=null,t.targetElement=null,t.state={hasDarkParent:!1,isOpen:t.getIsOpen(t.props),transformOrigin:""},t.isMouseInTargetOrPopover=!1,t.lostFocusOnSamePage=!0,t.handlePopoverRef=bo(t,"popoverElement",t.props.popoverRef),t.handleTargetRef=function(e){return t.targetElement=e},t.reposition=function(){var e;return null===(e=t.popperScheduleUpdate)||void 0===e?void 0:e.call(t)},t.renderPopover=function(e){var n,r=t.props,o=r.interactionKind,i=r.usePortal,a=t.state.transformOrigin;t.popperScheduleUpdate=e.scheduleUpdate;var s={onClick:t.handlePopoverClick};(o===Hi.HOVER||!i&&o===Hi.HOVER_TARGET_ONLY)&&(s.onMouseEnter=t.handleMouseEnter,s.onMouseLeave=t.handleMouseLeave);var l=pi()(kn,((n={})[w]=t.props.inheritDarkTheme&&t.state.hasDarkParent,n[W]=t.props.minimal,n[Bn]=t.props.captureDismiss,n),t.props.popoverClassName);return $r.createElement("div",{className:Wn,ref:e.ref,style:e.style},$r.createElement(Ii,{onResize:t.reposition},$r.createElement("div",(0,Jr.__assign)({className:l,style:{transformOrigin:a},ref:t.popoverRef},s),t.isArrowEnabled()&&$r.createElement(wi,{arrowProps:e.arrowProps,placement:e.placement}),$r.createElement("div",{className:Fn},t.understandChildren().content))))},t.renderTarget=function(e){var n,r,o=t.props,i=o.fill,a=o.openOnTargetFocus,s=o.targetClassName,l=o.targetProps,u=void 0===l?{}:l,c=t.state.isOpen,p=t.isControlled(),d=t.isHoverInteractionKind(),h=t.props.targetTagName;i&&(h="div");var f=d?{onBlur:t.handleTargetBlur,onFocus:t.handleTargetFocus,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave}:{onClick:t.handleTargetClick};f["aria-haspopup"]="true",f.className=pi()(Kn,((n={})[Un]=c,n),u.className,s),f.ref=e.ref;var m=oi(t.understandChildren().target);if(void 0===m)return null;var v=m.props.tabIndex,E=null==v&&a&&d?0:v,y=$r.cloneElement(m,{className:pi()(m.props.className,(r={},r[L]=c&&!p&&!d,r)),disabled:!(!c||!ai(m,bi))||m.props.disabled,tabIndex:E}),g=$r.createElement(h,(0,Jr.__assign)((0,Jr.__assign)({},u),f),y);return $r.createElement(Ii,{onResize:t.reposition},g)},t.isControlled=function(){return void 0!==t.props.isOpen},t.handleTargetFocus=function(e){var n,r;if(t.props.openOnTargetFocus&&t.isHoverInteractionKind()){if(null==e.relatedTarget&&!t.lostFocusOnSamePage)return;t.handleMouseEnter(e)}null===(r=null===(n=t.props.targetProps)||void 0===n?void 0:n.onFocus)||void 0===r||r.call(n,e)},t.handleTargetBlur=function(e){var n,r;t.props.openOnTargetFocus&&t.isHoverInteractionKind()&&(null==e.relatedTarget||t.isElementInPopover(e.relatedTarget)||t.handleMouseLeave(e)),t.lostFocusOnSamePage=null!=e.relatedTarget,null===(r=null===(n=t.props.targetProps)||void 0===n?void 0:n.onBlur)||void 0===r||r.call(n,e)},t.handleMouseEnter=function(e){var n,r;t.isMouseInTargetOrPopover=!0,t.props.usePortal||!t.isElementInPopover(e.target)||t.props.interactionKind!==Hi.HOVER_TARGET_ONLY||t.props.openOnTargetFocus?t.props.disabled||t.setOpenState(!0,e,t.props.hoverOpenDelay):t.handleMouseLeave(e),null===(r=null===(n=t.props.targetProps)||void 0===n?void 0:n.onMouseEnter)||void 0===r||r.call(n,e)},t.handleMouseLeave=function(e){var n,r;t.isMouseInTargetOrPopover=!1,t.setTimeout((function(){t.isMouseInTargetOrPopover||t.setOpenState(!1,e,t.props.hoverCloseDelay)})),null===(r=null===(n=t.props.targetProps)||void 0===n?void 0:n.onMouseLeave)||void 0===r||r.call(n,e)},t.handlePopoverClick=function(e){var n=e.target,r=n.closest("."+kn),o=r===t.popoverRef.current,i=null==r?void 0:r.classList.contains(Bn),a=n.closest("."+Hn+", ."+Gn),s=null!=a&&a.classList.contains(Hn),l=null!=n.closest(":disabled, ."+B);!s||l||i&&!o||t.setOpenState(!1,e)},t.handleOverlayClose=function(e){if(null!==t.targetElement&&void 0!==e){var n=e.target;(!Zo(t.targetElement,n)||e.nativeEvent instanceof KeyboardEvent)&&t.setOpenState(!1,e)}},t.handleTargetClick=function(e){var n,r;t.props.disabled||t.isElementInPopover(e.target)||(null==t.props.isOpen?t.setState((function(e){return{isOpen:!e.isOpen}})):t.setOpenState(!t.props.isOpen,e)),null===(r=null===(n=t.props.targetProps)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,e)},t.updatePopoverState=function(e){return t.setState({transformOrigin:Li(e)}),e},t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.className,o=n.disabled,i=n.fill,a=n.placement,s=n.position,l=void 0===s?"auto":s,u=n.shouldReturnFocusOnClose,c=this.state.isOpen,p=this.props.wrapperTagName;i&&(p="div");var d=null==oi(this.understandChildren().content);!d||o||!1===c||ro("production")||console.warn("[Blueprint] Disabling <Popover> with empty/whitespace content...");var h=pi()(Vn,r,((e={})[F]=i,e)),f=!this.isHoverInteractionKind()&&void 0,m=$r.createElement(p,{className:h},$r.createElement(Ei.Reference,{innerRef:this.handleTargetRef},this.renderTarget),$r.createElement(Ci,{autoFocus:null!==(t=this.props.autoFocus)&&void 0!==t?t:f,backdropClassName:wn,backdropProps:this.props.backdropProps,canEscapeKeyClose:this.props.canEscapeKeyClose,canOutsideClickClose:this.props.interactionKind===Hi.CLICK,className:this.props.portalClassName,enforceFocus:this.props.enforceFocus,hasBackdrop:this.props.hasBackdrop,isOpen:c&&!d,onClose:this.handleOverlayClose,onClosed:this.props.onClosed,onClosing:this.props.onClosing,onOpened:this.props.onOpened,onOpening:this.props.onOpening,transitionDuration:this.props.transitionDuration,transitionName:kn,usePortal:this.props.usePortal,portalContainer:this.props.portalContainer,shouldReturnFocusOnClose:!this.isHoverInteractionKind()&&u},$r.createElement(Ei.Popper,{innerRef:this.handlePopoverRef,placement:null!=a?a:Bi(l),modifiers:this.getPopperModifiers()},this.renderPopover)));return $r.createElement(Ei.Manager,null,m)},t.prototype.componentDidMount=function(){this.updateDarkParent()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.popoverRef!==this.props.popoverRef&&(Co(t.popoverRef,null),this.handlePopoverRef=bo(this,"popoverElement",this.props.popoverRef),Co(this.props.popoverRef,this.popoverElement)),this.updateDarkParent();var r=this.getIsOpen(this.props);null!=this.props.isOpen&&r!==this.state.isOpen?(this.setOpenState(r),this.setState({isOpen:r})):this.props.disabled&&this.state.isOpen&&null==this.props.isOpen&&this.setOpenState(!1)},t.prototype.validateProps=function(e){null==e.isOpen&&null!=e.onInteraction&&console.warn("[Blueprint] <Popover> onInteraction is ignored when uncontrolled."),e.hasBackdrop&&!e.usePortal&&console.warn("[Blueprint] <Popover usePortal={false}> ignores hasBackdrop"),e.hasBackdrop&&e.interactionKind!==Hi.CLICK&&console.error("[Blueprint] <Popover hasBackdrop={true}> requires interactionKind={PopoverInteractionKind.CLICK}."),void 0!==e.placement&&void 0!==e.position&&console.warn("[Blueprint] <Popover> supports either placement or position prop, not both.");var t=$r.Children.count(e.children),n=void 0!==e.content,r=void 0!==e.target;0!==t||r||console.error("[Blueprint] <Popover> requires target prop or at least one child element."),t>2&&console.warn("[Blueprint] <Popover> supports one or two children; additional children are ignored. First child is the target, second child is the content. You may instead supply these two as props."),t>0&&r&&console.warn("[Blueprint] <Popover> with children ignores target prop; use either prop or children."),2===t&&n&&console.warn("[Blueprint] <Popover> with two children ignores content prop; use either prop or children.")},t.prototype.updateDarkParent=function(){if(this.props.usePortal&&this.state.isOpen){var e=null!=this.targetElement&&null!=this.targetElement.closest("."+w);this.setState({hasDarkParent:e})}},t.prototype.understandChildren=function(){var e=this.props,t=e.children,n=e.content,r=e.target,o=$r.Children.toArray(t),i=o[0],a=o[1];return{content:null==a?n:a,target:null==i?r:i}},t.prototype.getIsOpen=function(e){return!e.disabled&&(null!=e.isOpen?e.isOpen:e.defaultIsOpen)},t.prototype.getPopperModifiers=function(){var e=this.props,t=e.boundary,n=e.modifiers,r=n,o=r.flip,i=void 0===o?{}:o,a=r.preventOverflow,s=void 0===a?{}:a;return(0,Jr.__assign)((0,Jr.__assign)({},n),{arrowOffset:{enabled:this.isArrowEnabled(),fn:ki,order:510},flip:(0,Jr.__assign)({boundariesElement:t},i),preventOverflow:(0,Jr.__assign)({boundariesElement:t},s),updatePopoverState:{enabled:!0,fn:this.updatePopoverState,order:900}})},t.prototype.setOpenState=function(e,t,n){var r,o,i,a,s,l=this;null===(r=this.cancelOpenTimeout)||void 0===r||r.call(this),void 0!==n&&n>0?this.cancelOpenTimeout=this.setTimeout((function(){return l.setOpenState(e,t)}),n):(null==this.props.isOpen?this.setState({isOpen:e}):null===(i=(o=this.props).onInteraction)||void 0===i||i.call(o,e,t),e||null===(s=(a=this.props).onClose)||void 0===s||s.call(a,t))},t.prototype.isArrowEnabled=function(){var e=this.props,t=e.minimal,n=e.modifiers;return!t&&(null==(null==n?void 0:n.arrow)||n.arrow.enabled)},t.prototype.isElementInPopover=function(e){var t;return null===(t=this.popoverElement)||void 0===t?void 0:t.contains(e)},t.prototype.isHoverInteractionKind=function(){return this.props.interactionKind===Hi.HOVER||this.props.interactionKind===Hi.HOVER_TARGET_ONLY},t.displayName=yo+".Popover",t.defaultProps={boundary:"scrollParent",captureDismiss:!1,defaultIsOpen:!1,disabled:!1,fill:!1,hasBackdrop:!1,hoverCloseDelay:300,hoverOpenDelay:150,inheritDarkTheme:!0,interactionKind:Hi.CLICK,minimal:!1,modifiers:{},openOnTargetFocus:!0,shouldReturnFocusOnClose:!1,targetTagName:"span",transitionDuration:300,usePortal:!0,wrapperTagName:"span"},(0,Jr.__decorate)([vi],t)}(fo),Ui={preventOverflow:{boundariesElement:"viewport"}},Ki=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isDarkTheme:!1,isOpen:!1},t.cancelContextMenu=function(e){return e.preventDefault()},t.handleBackdropContextMenu=function(e){e.persist(),e.preventDefault(),t.setTimeout((function(){var t=document.elementFromPoint(e.clientX,e.clientY),n=(e.view,(0,Jr.__rest)(e,["view"]));null==t||t.dispatchEvent(new MouseEvent("contextmenu",n))}),100)},t.handlePopoverInteraction=function(e){e||t.requestAnimationFrame((function(){return t.hide()}))},t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t=$r.createElement("div",{onContextMenu:this.cancelContextMenu},this.state.menu),n=pi()(((e={})[w]=this.state.isDarkTheme,e)),r=void 0===this.state.offset?"":this.state.offset.left+"x"+this.state.offset.top;return $r.createElement("div",{className:ze,style:this.state.offset},$r.createElement(Gi,(0,Jr.__assign)({},this.props,{backdropProps:{onContextMenu:this.handleBackdropContextMenu},content:t,enforceFocus:!1,key:r,hasBackdrop:!0,isOpen:this.state.isOpen,minimal:!0,modifiers:Ui,onInteraction:this.handlePopoverInteraction,position:b.RIGHT_TOP,popoverClassName:n,target:$r.createElement("div",null),transitionDuration:100})))},t.prototype.show=function(e,t,n,r){void 0===r&&(r=!1),this.setState({isOpen:!0,menu:e,offset:t,onClose:n,isDarkTheme:r})},t.prototype.hide=function(){var e,t;null===(t=(e=this.state).onClose)||void 0===t||t.call(e),this.setState({isOpen:!1,onClose:void 0})},(0,Jr.__decorate)([vi],t)}(fo);function Vi(e,t,n,r){void 0===Fi&&((Fi=document.createElement("div")).classList.add(We),document.body.appendChild(Fi),Mi=di.render($r.createElement(Ki,{onClosed:Yi}),Fi)),Mi.show(e,t,n,r)}function Wi(){null==Mi||Mi.hide()}function zi(){return null!=Mi&&Mi.state.isOpen}function Yi(){null!=Fi&&(di.unmountComponentAtNode(Fi),Fi.remove(),Fi=void 0,Mi=void 0)}var qi,ji=n(386);!function(e){e[e.STANDARD=16]="STANDARD",e[e.LARGE=20]="LARGE"}(qi||(qi={}));var Xi,Qi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props.icon;if(null==e||"boolean"==typeof e)return null;if("string"!=typeof e)return e;var t=this.props,n=t.className,r=t.color,o=t.htmlTitle,i=t.iconSize,a=t.intent,s=t.size,l=void 0===s?null!=i?i:qi.STANDARD:s,u=t.title,c=t.tagName,p=void 0===c?"span":c,d=(0,Jr.__rest)(t,["className","color","htmlTitle","iconSize","intent","size","title","tagName"]),h=l>=qi.LARGE?qi.LARGE:qi.STANDARD,f=this.renderSvgPaths(h,e),m=pi()(Gr,Yr(e),qr(a),n),v="0 0 "+h+" "+h;return $r.createElement(p,(0,Jr.__assign)((0,Jr.__assign)({},d),{"aria-hidden":!u||void 0,className:m,title:o}),$r.createElement("svg",{fill:r,"data-icon":e,width:l,height:l,viewBox:v},u&&$r.createElement("desc",null,u),f))},t.prototype.renderSvgPaths=function(e,t){var n=(e===qi.STANDARD?ji.IconSvgPaths16:ji.IconSvgPaths20)[t];return null==n?null:n.map((function(e,t){return $r.createElement("path",{key:t,d:e,fillRule:"evenodd"})}))},t.displayName=yo+".Icon",t.SIZE_STANDARD=qi.STANDARD,t.SIZE_LARGE=qi.LARGE,(0,Jr.__decorate)([vi],t)}(fo);!function(e){e[e.SMALL=20]="SMALL",e[e.STANDARD=50]="STANDARD",e[e.LARGE=100]="LARGE"}(Xi||(Xi={}));var Zi="M 50,50 m 0,-45 a 45,45 0 1 1 0,90 a 45,45 0 1 1 0,-90",Ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.componentDidUpdate=function(e){e.value!==this.props.value&&this.forceUpdate()},t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.intent,o=t.value,i=t.tagName,a=void 0===i?"div":i,s=this.getSize(),l=pi()(ir,qr(r),((e={})[lr]=null!=o,e),n),u=Math.min(16,4*Xi.LARGE/s),c=280-280*(null==o?.25:ao(o,0,1));return $r.createElement(a,{className:l,role:"progressbar"},$r.createElement(a,{className:ar},$r.createElement("svg",{width:s,height:s,strokeWidth:u.toFixed(2),viewBox:this.getViewBox(u)},$r.createElement("path",{className:ur,d:Zi}),$r.createElement("path",{className:sr,d:Zi,pathLength:280,strokeDasharray:"280 280",strokeDashoffset:c}))))},t.prototype.validateProps=function(e){var t=e.className,n=void 0===t?"":t;null!=e.size&&(n.indexOf(j)>=0||n.indexOf(K)>=0)&&console.warn("[Blueprint] <Spinner> Classes.SMALL/LARGE are ignored if size prop is set.")},t.prototype.getSize=function(){var e=this.props,t=e.className,n=void 0===t?"":t,r=e.size;return null==r?n.indexOf(j)>=0?Xi.SMALL:n.indexOf(K)>=0?Xi.LARGE:Xi.STANDARD:Math.max(10,r)},t.prototype.getViewBox=function(e){var t=45+e/2,n=(50-t).toFixed(2),r=(2*t).toFixed(2);return n+" "+n+" "+r+" "+r},t.displayName=yo+".Spinner",t.SIZE_SMALL=Xi.SMALL,t.SIZE_STANDARD=Xi.STANDARD,t.SIZE_LARGE=Xi.LARGE,(0,Jr.__decorate)([vi],t)}(fo),$i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isActive:!1},t.handleKeyDown=function(e){var n,r;Ho(e.which)&&(e.preventDefault(),e.which!==t.currentKeyDown&&t.setState({isActive:!0})),t.currentKeyDown=e.which,null===(r=(n=t.props).onKeyDown)||void 0===r||r.call(n,e)},t.handleKeyUp=function(e){var n,r,o;Ho(e.which)&&(t.setState({isActive:!1}),null===(n=t.buttonRef)||void 0===n||n.click()),t.currentKeyDown=void 0,null===(o=(r=t.props).onKeyUp)||void 0===o||o.call(r,e)},t.handleBlur=function(e){var n,r;t.state.isActive&&t.setState({isActive:!1}),null===(r=(n=t.props).onBlur)||void 0===r||r.call(n,e)},t}return(0,Jr.__extends)(t,e),t.prototype.getCommonButtonProps=function(){var e,t=this.props,n=t.active,r=t.alignText,o=t.fill,i=t.large,a=t.loading,s=t.outlined,l=t.minimal,u=t.small,c=t.tabIndex,p=this.props.disabled||a;return{className:pi()(xe,((e={})[L]=!p&&(n||this.state.isActive),e[B]=p,e[F]=o,e[K]=i,e[V]=a,e[W]=l,e[z]=s,e[j]=u,e),Wr(r),qr(this.props.intent),this.props.className),disabled:p,onBlur:this.handleBlur,onClick:p?void 0:this.props.onClick,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,tabIndex:p?-1:c}},t.prototype.renderChildren=function(){var e=this.props,t=e.children,n=e.icon,r=e.loading,o=e.rightIcon,i=e.text;return[r&&$r.createElement(Ji,{key:"loading",className:Be,size:qi.LARGE}),$r.createElement(Qi,{key:"leftIcon",icon:n}),(!ni(i)||!ni(t))&&$r.createElement("span",{key:"text",className:Fe},i,t),$r.createElement(Qi,{key:"rightIcon",icon:o})]},t}(fo),ea=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonRef=null,t.handleRef=bo(t,"buttonRef",t.props.elementRef),t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){return $r.createElement("button",(0,Jr.__assign)({type:"button",ref:this.handleRef},_o(this.props),this.getCommonButtonProps()),this.renderChildren())},t.prototype.componentDidUpdate=function(e){e.elementRef!==this.props.elementRef&&(Co(e.elementRef,null),this.handleRef=bo(this,"buttonRef",this.props.elementRef),Co(this.props.elementRef,this.buttonRef))},t.displayName=yo+".Button",t}($i),ta=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonRef=null,t.handleRef=bo(t,"buttonRef",t.props.elementRef),t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.href,n=e.tabIndex,r=void 0===n?0:n,o=this.getCommonButtonProps();return $r.createElement("a",(0,Jr.__assign)({role:"button",ref:this.handleRef},_o(this.props),o,{href:o.disabled?void 0:t,tabIndex:o.disabled?-1:r}),this.renderChildren())},t.prototype.componentDidUpdate=function(e){e.elementRef!==this.props.elementRef&&(Co(e.elementRef,null),this.handleRef=bo(this,"buttonRef",this.props.elementRef),Co(this.props.elementRef,this.buttonRef))},t.displayName=yo+".AnchorButton",t}($i);function na(e,t){return function(n){var r=n.className,o=n.elementRef,i=(0,Jr.__rest)(n,["className","elementRef"]);return $r.createElement(e,(0,Jr.__assign)((0,Jr.__assign)({},i),{className:pi()(t,r),ref:o}))}}var ra,oa=na("h1",Te),ia=na("h2",Te),aa=na("h3",Te),sa=na("h4",Te),la=na("h5",Te),ua=na("h6",Te),ca=na("blockquote",ye),pa=na("code",ge),da=na("pre",_e),ha=na("label",zt),fa=na("ol",Ne),ma=na("ul",Ne),va=function(e){function t(t){var n=e.call(this,t)||this,r=uo("bp-dialog");return n.titleId="title-"+r,n}return(0,Jr.__extends)(t,e),t.prototype.render=function(){return $r.createElement(Ci,(0,Jr.__assign)({},this.props,{className:Nn,hasBackdrop:!0}),$r.createElement("div",{className:je},$r.createElement("div",{className:pi()(qe,this.props.className),role:"dialog","aria-labelledby":this.props["aria-labelledby"]||(this.props.title?this.titleId:void 0),"aria-describedby":this.props["aria-describedby"],style:this.props.style},this.maybeRenderHeader(),this.props.children)))},t.prototype.validateProps=function(e){null==e.title&&(null!=e.icon&&console.warn(to),null!=e.isCloseButtonShown&&console.warn(no))},t.prototype.maybeRenderCloseButton=function(){return!1!==this.props.isCloseButtonShown?$r.createElement(ea,{"aria-label":"Close",className:Qe,icon:$r.createElement(Qi,{icon:"small-cross",size:qi.LARGE}),minimal:!0,onClick:this.props.onClose}):void 0},t.prototype.maybeRenderHeader=function(){var e=this.props,t=e.icon,n=e.title;if(null!=n)return $r.createElement("div",{className:$e},$r.createElement(Qi,{icon:t,size:qi.LARGE}),$r.createElement(sa,{id:this.titleId},n),this.maybeRenderCloseButton())},t.defaultProps={canOutsideClickClose:!0,isOpen:!1},t.displayName=yo+".Dialog",(0,Jr.__decorate)([vi],t)}(fo),Ea=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleCancel=function(e){return t.internalHandleCallbacks(!1,e)},t.handleConfirm=function(e){return t.internalHandleCallbacks(!0,e)},t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.canEscapeKeyCancel,n=e.canOutsideClickCancel,r=e.children,o=e.className,i=e.icon,a=e.intent,s=e.loading,l=e.cancelButtonText,u=e.confirmButtonText,c=(e.onClose,(0,Jr.__rest)(e,["canEscapeKeyCancel","canOutsideClickCancel","children","className","icon","intent","loading","cancelButtonText","confirmButtonText","onClose"]));return $r.createElement(va,(0,Jr.__assign)({},c,{className:pi()(Ie,o),canEscapeKeyClose:t,canOutsideClickClose:n,onClose:this.handleCancel,portalContainer:this.props.portalContainer}),$r.createElement("div",{className:be},$r.createElement(Qi,{icon:i,size:40,intent:a}),$r.createElement("div",{className:Se},r)),$r.createElement("div",{className:Ae},$r.createElement(ea,{loading:s,intent:a,text:u,onClick:this.handleConfirm}),l&&$r.createElement(ea,{text:l,disabled:s,onClick:this.handleCancel})))},t.prototype.validateProps=function(e){null==e.onClose&&null==e.cancelButtonText!=(null==e.onCancel)&&console.warn("[Blueprint] <Alert> cancelButtonText and onCancel should be set together.");var t=null!=e.onCancel||null!=e.onClose;e.canEscapeKeyCancel&&!t&&console.warn("[Blueprint] <Alert> canEscapeKeyCancel enabled without onCancel or onClose handler."),e.canOutsideClickCancel&&!t&&console.warn("[Blueprint] <Alert> canOutsideClickCancel enbaled without onCancel or onClose handler.")},t.prototype.internalHandleCallbacks=function(e,t){var n,r=this.props,o=r.onCancel,i=r.onClose,a=r.onConfirm;null===(n=e?a:o)||void 0===n||n(t),null==i||i(e,t)},t.defaultProps={canEscapeKeyCancel:!1,canOutsideClickCancel:!1,confirmButtonText:"OK",isOpen:!1,loading:!1},t.displayName=yo+".Alert",(0,Jr.__decorate)([vi],t)}(fo),ya=function(e){var t,n=pi()(Pe,((t={})[De]=e.current,t[B]=e.disabled,t),e.className),r=null!=e.icon?$r.createElement(Qi,{title:e.iconTitle,icon:e.icon}):void 0;return null==e.href&&null==e.onClick?$r.createElement("span",{className:n},r,e.text,e.children):$r.createElement("a",{className:n,href:e.href,onClick:e.disabled?void 0:e.onClick,tabIndex:e.disabled?void 0:0,target:e.target},r,e.text,e.children)},ga=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.title;return null==n?$r.createElement("li",{className:pi()($t,t)}):$r.createElement("li",{className:pi()(en,t)},$r.createElement(ua,null,n))},t.displayName=yo+".MenuDivider",t}($r.Component),_a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isContentOverflowing:!1,textContent:""},t.textRef=null,t}return(0,Jr.__extends)(t,e),t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.render=function(){var e,t=this,n=this.props,r=n.children,o=n.className,i=n.ellipsize,a=n.tagName,s=void 0===a?"div":a,l=n.title,u=(0,Jr.__rest)(n,["children","className","ellipsize","tagName","title"]),c=pi()(o,((e={})[Ee]=i,e));return $r.createElement(s,(0,Jr.__assign)((0,Jr.__assign)({},u),{className:c,ref:function(e){return t.textRef=e},title:null!=l?l:this.state.isContentOverflowing?this.state.textContent:void 0}),r)},t.prototype.update=function(){var e;if(null!=(null===(e=this.textRef)||void 0===e?void 0:e.textContent)){var t={isContentOverflowing:this.props.ellipsize&&this.textRef.scrollWidth>this.textRef.clientWidth,textContent:this.textRef.textContent};this.setState(t)}},t.displayName=yo+".Text",t.defaultProps={ellipsize:!1},(0,Jr.__decorate)([vi],t)}(fo),Ta=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.active,o=n.className,i=n.children,a=n.disabled,s=n.icon,l=n.intent,u=(n.labelClassName,n.labelElement),c=n.multiline,p=(n.popoverProps,n.shouldDismissPopover),d=n.text,h=n.textClassName,f=n.tagName,m=void 0===f?"a":f,v=n.htmlTitle,E=(0,Jr.__rest)(n,["active","className","children","disabled","icon","intent","labelClassName","labelElement","multiline","popoverProps","shouldDismissPopover","text","textClassName","tagName","htmlTitle"]),y=null!=i,g=qr(l),_=pi()(Qt,g,((e={})[L]=r,e[ie]=r&&null==g,e[B]=a,e[Hn]=p&&!a&&!y,e),o),T=$r.createElement(m,(0,Jr.__assign)((0,Jr.__assign)((0,Jr.__assign)({tabIndex:0},E),a?Ca:{}),{className:_}),$r.createElement(Qi,{icon:s}),$r.createElement(_a,{className:pi()(F,h),ellipsize:!c,title:v},d),this.maybeRenderLabel(u),y?$r.createElement(Qi,{title:"Open sub menu",icon:"caret-right"}):void 0),N=pi()(((t={})[Jt]=y,t));return $r.createElement("li",{className:N},this.maybeRenderPopover(T,i))},t.prototype.maybeRenderLabel=function(e){var t=this.props,n=t.label,r=t.labelClassName;return null==n&&null==e?null:$r.createElement("span",{className:pi()(Zt,r)},n,e)},t.prototype.maybeRenderPopover=function(e,t){if(null==t)return e;var n=this.props,r=n.disabled,o=n.popoverProps;return $r.createElement(Gi,(0,Jr.__assign)({autoFocus:!1,captureDismiss:!1,disabled:r,enforceFocus:!1,hoverCloseDelay:0,interactionKind:Hi.HOVER,modifiers:Na,position:b.RIGHT_TOP,usePortal:!1},o,{content:$r.createElement(Oa,null,t),minimal:!0,popoverClassName:pi()(Jt,null==o?void 0:o.popoverClassName),target:e}))},t.defaultProps={disabled:!1,multiline:!1,popoverProps:{},shouldDismissPopover:!0,text:""},t.displayName=yo+".MenuItem",(0,Jr.__decorate)([vi],t)}(fo),Na={flip:{boundariesElement:"viewport",padding:20},offset:{offset:-5},preventOverflow:{boundariesElement:"viewport",padding:20}},Ca={href:void 0,onClick:void 0,onMouseDown:void 0,onMouseEnter:void 0,onMouseLeave:void 0,tabIndex:-1},Oa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.children,o=t.large,i=t.ulRef,a=(0,Jr.__rest)(t,["className","children","large","ulRef"]),s=pi()(Xt,((e={})[K]=o,e),n);return $r.createElement("ul",(0,Jr.__assign)({},a,{className:s,ref:i}),r)},t.displayName=yo+".Menu",t.Divider=ga,t.Item=Ta,(0,Jr.__decorate)([vi],t)}(fo);!function(e){e[e.NONE=0]="NONE",e[e.GROW=1]="GROW",e[e.SHRINK=2]="SHRINK"}(ra||(ra={}));var Ra,Ia=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={direction:ra.NONE,lastOverflowCount:0,overflow:[],visible:t.props.items},t.previousWidths=new Map,t.spacer=null,t.resize=function(e){var n=e.some((function(e){var n=t.previousWidths.get(e.target)||0;return e.contentRect.width>n}));t.repartition(n),e.forEach((function(e){return t.previousWidths.set(e.target,e.contentRect.width)}))},t}return(0,Jr.__extends)(t,e),t.ofType=function(){return t},t.prototype.componentDidMount=function(){this.repartition(!1)},t.prototype.shouldComponentUpdate=function(e,t){return!(this.state!==t&&Uo(this.state,t))},t.prototype.componentDidUpdate=function(e,t){var n,r;e.observeParents!==this.props.observeParents&&console.warn("[Blueprint] <OverflowList> does not support changing observeParents after mounting."),e.collapseFrom===this.props.collapseFrom&&e.items===this.props.items&&e.minVisibleItems===this.props.minVisibleItems&&e.overflowRenderer===this.props.overflowRenderer&&e.alwaysRenderOverflow===this.props.alwaysRenderOverflow&&e.visibleItemRenderer===this.props.visibleItemRenderer||this.setState({direction:ra.GROW,lastOverflowCount:0,overflow:[],visible:this.props.items}),Uo(t,this.state)||this.repartition(!1);var o=this.state,i=o.direction,a=o.overflow,s=o.lastOverflowCount;i===ra.NONE&&i!==t.direction&&a.length!==s&&(null===(r=(n=this.props).onOverflow)||void 0===r||r.call(n,a))},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.collapseFrom,o=t.observeParents,i=t.style,a=t.tagName,s=void 0===a?"div":a,l=t.visibleItemRenderer,u=this.maybeRenderOverflow(),c=$r.createElement(s,{className:pi()(fn,n),style:i},r===mo.START?u:null,this.state.visible.map(l),r===mo.END?u:null,$r.createElement("div",{className:mn,ref:function(t){return e.spacer=t}}));return $r.createElement(Ii,{onResize:this.resize,observeParents:o},c)},t.prototype.maybeRenderOverflow=function(){var e=this.state.overflow;return 0!==e.length||this.props.alwaysRenderOverflow?this.props.overflowRenderer(e):null},t.prototype.repartition=function(e){var t=this;null!=this.spacer&&(e?this.setState((function(e){return{direction:ra.GROW,lastOverflowCount:e.direction===ra.NONE?e.overflow.length:e.lastOverflowCount,overflow:[],visible:t.props.items}})):this.spacer.getBoundingClientRect().width<.9?this.setState((function(e){if(e.visible.length<=t.props.minVisibleItems)return null;var n=t.props.collapseFrom===mo.START,r=e.visible.slice(),o=n?r.shift():r.pop();if(void 0===o)return null;var i=n?(0,Jr.__spreadArrays)(e.overflow,[o]):(0,Jr.__spreadArrays)([o],e.overflow);return{direction:e.direction===ra.NONE?ra.SHRINK:e.direction,overflow:i,visible:r}})):this.setState({direction:ra.NONE}))},t.displayName=yo+".OverflowList",t.defaultProps={alwaysRenderOverflow:!1,collapseFrom:mo.START,minVisibleItems:0},t}($r.Component),ba=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderOverflow=function(e){var n=t.props.collapseFrom,r=n===mo.END?b.BOTTOM_RIGHT:b.BOTTOM_LEFT,o=e;return n===mo.START&&(o=e.slice().reverse()),$r.createElement("li",null,$r.createElement(Gi,(0,Jr.__assign)({position:r,disabled:0===o.length,content:$r.createElement(Oa,null,o.map(t.renderOverflowBreadcrumb))},t.props.popoverProps),$r.createElement("span",{className:ke})))},t.renderOverflowBreadcrumb=function(e,t){var n=null!=e.href||null!=e.onClick,r=_o(e);return $r.createElement(Ta,(0,Jr.__assign)({disabled:!n},r,{text:e.text,key:t}))},t.renderBreadcrumbWrapper=function(e,n){var r=t.props.items[t.props.items.length-1]===e;return $r.createElement("li",{key:n},t.renderBreadcrumb(e,r))},t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.collapseFrom,r=e.items,o=e.minVisibleItems,i=e.overflowListProps,a=void 0===i?{}:i;return $r.createElement(Ia,(0,Jr.__assign)({collapseFrom:n,minVisibleItems:o,tagName:"ul"},a,{className:pi()(Le,a.className,t),items:r,overflowRenderer:this.renderOverflow,visibleItemRenderer:this.renderBreadcrumbWrapper}))},t.prototype.renderBreadcrumb=function(e,t){return t&&null!=this.props.currentBreadcrumbRenderer?this.props.currentBreadcrumbRenderer(e):null!=this.props.breadcrumbRenderer?this.props.breadcrumbRenderer(e):$r.createElement(ya,(0,Jr.__assign)({current:t},e))},t.defaultProps={collapseFrom:mo.START},(0,Jr.__decorate)([vi],t)}(fo),Sa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.alignText,r=t.className,o=t.fill,i=t.minimal,a=t.large,s=t.vertical,l=(0,Jr.__rest)(t,["alignText","className","fill","minimal","large","vertical"]),u=pi()(we,((e={})[F]=o,e[K]=a,e[W]=i,e[X]=s,e),Wr(n),r);return $r.createElement("div",(0,Jr.__assign)({},l,{className:u}),this.props.children)},t.displayName=yo+".ButtonGroup",(0,Jr.__decorate)([vi],t)}(fo),Aa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.children,o=t.icon,i=t.intent,a=t.title,s=(0,Jr.__rest)(t,["className","children","icon","intent","title"]),l=this.getIconName(o,i),u=pi()(Me,qr(i),((e={})[He]=null!=l,e),n);return $r.createElement("div",(0,Jr.__assign)({className:u},s),l&&$r.createElement(Qi,{icon:l,size:qi.LARGE}),a&&$r.createElement(sa,null,a),r)},t.prototype.getIconName=function(e,t){if(null!==e){if(void 0!==e)return e;switch(t){case I.DANGER:return"error";case I.PRIMARY:return"info-sign";case I.WARNING:return"warning-sign";case I.SUCCESS:return"tick";default:return}}},t.displayName=yo+".Callout",(0,Jr.__decorate)([vi],t)}(fo),Pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.elevation,o=t.interactive,i=(0,Jr.__rest)(t,["className","elevation","interactive"]),a=pi()(Ge,((e={})[U]=o,e),zr(r),n);return $r.createElement("div",(0,Jr.__assign)({className:a},i))},t.displayName=yo+".Card",t.defaultProps={elevation:R.ZERO,interactive:!1},(0,Jr.__decorate)([vi],t)}(fo);!function(e){e[e.OPEN_START=0]="OPEN_START",e[e.OPENING=1]="OPENING",e[e.OPEN=2]="OPEN",e[e.CLOSING_START=3]="CLOSING_START",e[e.CLOSING=4]="CLOSING",e[e.CLOSED=5]="CLOSED"}(Ra||(Ra={}));var Da=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={animationState:t.props.isOpen?Ra.OPEN:Ra.CLOSED,height:void 0,heightWhenOpen:void 0},t.contents=null,t.contentsRefHandler=function(e){if(t.contents=e,null!=t.contents){var n=t.contents.clientHeight;t.setState({animationState:t.props.isOpen?Ra.OPEN:Ra.CLOSED,height:0===n?void 0:n+"px",heightWhenOpen:0===n?void 0:n})}},t}return(0,Jr.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.isOpen,r=t.animationState;if(n)switch(r){case Ra.OPEN:case Ra.OPENING:break;default:return{animationState:Ra.OPEN_START}}else switch(r){case Ra.CLOSED:case Ra.CLOSING:break;default:return{animationState:Ra.CLOSING_START,height:t.heightWhenOpen+"px"}}return null},t.prototype.render=function(){var e=this.state.animationState!==Ra.CLOSED,t=e||this.props.keepChildrenMounted,n=e&&this.state.animationState!==Ra.CLOSING,r="auto"===this.state.height,o={height:e?this.state.height:void 0,overflowY:r?"visible":void 0,transition:r?"none":void 0},i={transform:n?"translateY(0)":"translateY(-"+this.state.heightWhenOpen+"px)",transition:r?"none":void 0};return $r.createElement(this.props.component,{className:pi()(Ue,this.props.className),style:o},$r.createElement("div",{className:Ke,ref:this.contentsRefHandler,style:i,"aria-hidden":!e&&this.props.keepChildrenMounted},t?this.props.children:null))},t.prototype.componentDidMount=function(){this.forceUpdate(),this.props.isOpen?this.setState({animationState:Ra.OPEN,height:"auto"}):this.setState({animationState:Ra.CLOSED,height:"0px"})},t.prototype.componentDidUpdate=function(){var e=this;if(null!=this.contents){var t=this.props.transitionDuration,n=this.state.animationState;if(n===Ra.OPEN_START){var r=this.contents.clientHeight;this.setState({animationState:Ra.OPENING,height:r+"px",heightWhenOpen:r}),this.setTimeout((function(){return e.onDelayedStateChange()}),t)}else if(n===Ra.CLOSING_START){var o=this.contents.clientHeight;this.setTimeout((function(){return e.setState({animationState:Ra.CLOSING,height:"0px",heightWhenOpen:o})})),this.setTimeout((function(){return e.onDelayedStateChange()}),t)}}},t.prototype.onDelayedStateChange=function(){switch(this.state.animationState){case Ra.OPENING:this.setState({animationState:Ra.OPEN,height:"auto"});break;case Ra.CLOSING:this.setState({animationState:Ra.CLOSED})}},t.displayName=yo+".Collapse",t.defaultProps={component:"div",isOpen:!1,keepChildrenMounted:!1,transitionDuration:200},(0,Jr.__decorate)([vi],t)}(fo),La=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t=this,n=this.props.collapseFrom,r=$r.Children.count(this.props.children),o=this.partitionChildren(),i=o[0],a=o[1],s=i.map((function(e,o){var i=n===mo.START?r-1-o:o;return $r.createElement("li",{className:t.props.visibleItemClassName,key:i},t.props.visibleItemRenderer(e.props,i))}));if(n===mo.START&&s.reverse(),a.length>0){var l=n===mo.END?b.BOTTOM_RIGHT:b.BOTTOM_LEFT;e=$r.createElement("li",{className:this.props.visibleItemClassName},$r.createElement(Gi,(0,Jr.__assign)({content:$r.createElement(Oa,null,a),position:l},this.props.dropdownProps),this.props.dropdownTarget))}return $r.createElement("ul",{className:pi()(Ve,this.props.className)},n===mo.START?e:null,s,n===mo.END?e:null)},t.prototype.partitionChildren=function(){var e=$r.Children.map(this.props.children,(function(e,t){if(!ai(e,Ta))throw new Error("[Blueprint] <CollapsibleList> children must be <MenuItem>s");return $r.cloneElement(e,{key:"visible-"+t})}));if(null==e)return[[],[]];this.props.collapseFrom===mo.START&&e.reverse();var t=this.props.visibleItemCount;return[e.slice(0,t),e.slice(t)]},t.displayName=yo+".CollapsibleList",t.defaultProps={collapseFrom:mo.START,visibleItemCount:3},t}($r.Component);function ka(e){var t;return jo(e.prototype.renderContextMenu)||console.warn("[Blueprint] @ContextMenuTarget-decorated class should implement renderContextMenu."),(t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var t=this,n=e.prototype.render.call(this);if(null==n)return n;if(!$r.isValidElement(n))return console.warn('[Blueprint] "@ContextMenuTarget-decorated components must return a single JSX.Element or an empty render.'),n;var r=n.props.onContextMenu;return $r.cloneElement(n,{onContextMenu:function(e){if(!e.defaultPrevented){if(jo(t.renderContextMenu)){var n=t.renderContextMenu(e);if(null!=n){var o=ui(di.findDOMNode(t));e.preventDefault(),Vi(n,{left:e.clientX,top:e.clientY},t.onContextMenuClose,o)}}null==r||r(e)}}})},t}(e)).displayName="ContextMenuTarget("+ii(e)+")",t}var xa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props.className;return $r.createElement("div",{className:tt},$r.createElement("div",{className:pi()(et,e),role:"dialogsteplist"}))},t.displayName=yo+".DialogStep",(0,Jr.__decorate)([vi],t)}(fo),wa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=t.getInitialIndexFromProps(t.props),t.renderDialogStep=function(e,n){var r,o=n+1,i=t.state.lastViewedIndex>=n,a=t.state.selectedIndex===n;return $r.createElement("div",{className:pi()(tt,(r={},r[L]=a,r[ot]=i,r)),key:n},$r.createElement("div",{className:et,onClick:t.handleClickDialogStep(n)},$r.createElement("div",{className:rt},o),$r.createElement("div",{className:nt},e.props.title)))},t.handleClickDialogStep=function(e){if(!(e>t.state.lastViewedIndex))return t.getDialogStepChangeHandler(e)},t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){return $r.createElement(va,(0,Jr.__assign)({},this.props,{style:this.getDialogStyle()}),$r.createElement("div",{className:nn},this.renderLeftPanel(),this.maybeRenderRightPanel()))},t.prototype.componentDidUpdate=function(e){!e.resetOnClose&&e.initialStepIndex===this.props.initialStepIndex||e.isOpen||!this.props.isOpen||this.setState(this.getInitialIndexFromProps(this.props))},t.prototype.getDialogStyle=function(){return(0,Jr.__assign)({minWidth:800,paddingBottom:0},this.props.style)},t.prototype.renderLeftPanel=function(){return $r.createElement("div",{className:rn},this.getDialogStepChildren().filter(Ba).map(this.renderDialogStep))},t.prototype.maybeRenderRightPanel=function(){var e=this.getDialogStepChildren();if(e.length<=this.state.selectedIndex)return null;var t=e[this.state.selectedIndex].props,n=t.className,r=t.panel,o=t.panelClassName;return $r.createElement("div",{className:pi()(on,n,o)},r,this.renderFooter())},t.prototype.renderFooter=function(){return $r.createElement("div",{className:an},$r.createElement("div",{className:Je},this.renderButtons()))},t.prototype.renderButtons=function(){var e,t,n=this.state.selectedIndex,r=this.getDialogStepChildren(),o=[];if(this.state.selectedIndex>0){var i=null!==(e=r[n].props.backButtonProps)&&void 0!==e?e:this.props.backButtonProps;o.push($r.createElement(ea,(0,Jr.__assign)({key:"back",onClick:this.getDialogStepChangeHandler(n-1),text:"Back"},i)))}if(n===this.getDialogStepChildren().length-1)o.push($r.createElement(ea,(0,Jr.__assign)({intent:"primary",key:"final",text:"Submit"},this.props.finalButtonProps)));else{var a=null!==(t=r[n].props.nextButtonProps)&&void 0!==t?t:this.props.nextButtonProps;o.push($r.createElement(ea,(0,Jr.__assign)({intent:"primary",key:"next",onClick:this.getDialogStepChangeHandler(n+1),text:"Next"},a)))}return o},t.prototype.getDialogStepChangeHandler=function(e){var t=this;return function(n){if(void 0!==t.props.onChange){var r=t.getDialogStepChildren(),o=r[t.state.selectedIndex].props.id,i=r[e].props.id;t.props.onChange(i,o,n)}t.setState({lastViewedIndex:Math.max(t.state.lastViewedIndex,e),selectedIndex:e})}},t.prototype.getDialogStepChildren=function(e){return void 0===e&&(e=this.props),$r.Children.toArray(e.children).filter(Ba)},t.prototype.getInitialIndexFromProps=function(e){if(void 0!==e.initialStepIndex){var t=Math.max(0,Math.min(e.initialStepIndex,this.getDialogStepChildren(e).length-1));return{lastViewedIndex:t,selectedIndex:t}}return{lastViewedIndex:0,selectedIndex:0}},t.displayName=yo+".MultistepDialog",t.defaultProps={canOutsideClickClose:!0,isOpen:!1,resetOnClose:!0},(0,Jr.__decorate)([vi],t)}(fo);function Ba(e){return ai(e,xa)}var Fa,Ma=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.tagName,r=void 0===n?"div":n,o=(0,Jr.__rest)(e,["className","tagName"]),i=pi()(it,t);return $r.createElement(r,(0,Jr.__assign)((0,Jr.__assign)({},o),{className:i}))},t.displayName=yo+".Divider",(0,Jr.__decorate)([vi],t)}(fo);!function(e){e.SMALL="360px",e.STANDARD="50%",e.LARGE="90%"}(Fa||(Fa={}));var Ha=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t,n,r=this.props,o=r.size,i=r.style,a=r.position,s=r.vertical,l=a?P(a):void 0,u=pi()(at,((e={})[X]=!l&&s,e[null!==(n=jr(l))&&void 0!==n?n:""]=!0,e),this.props.className),c=null==o?i:(0,Jr.__assign)((0,Jr.__assign)({},i),((t={})[(l?S(l):s)?"height":"width"]=o,t));return $r.createElement(Ci,(0,Jr.__assign)({},this.props,{className:yn}),$r.createElement("div",{className:u,style:c},this.maybeRenderHeader(),this.props.children))},t.prototype.validateProps=function(e){null==e.title&&(null!=e.icon&&console.warn(to),null!=e.isCloseButtonShown&&console.warn(no)),null!=e.position&&(e.vertical&&console.warn("[Blueprint] <Drawer> vertical is ignored if position is defined"),e.position!==P(e.position)&&console.warn("[Blueprint] <Drawer> all angle positions are casted into pure position (TOP, BOTTOM, LEFT or RIGHT)"))},t.prototype.maybeRenderCloseButton=function(){return!1!==this.props.isCloseButtonShown?$r.createElement(ea,{"aria-label":"Close",className:Qe,icon:$r.createElement(Qi,{icon:"small-cross",size:qi.LARGE}),minimal:!0,onClick:this.props.onClose}):null},t.prototype.maybeRenderHeader=function(){var e=this.props,t=e.icon,n=e.title;return null==n?null:$r.createElement("div",{className:ut},$r.createElement(Qi,{icon:t,size:qi.LARGE}),$r.createElement(sa,null,n),this.maybeRenderCloseButton())},t.displayName=yo+".Drawer",t.defaultProps={canOutsideClickClose:!0,isOpen:!1,style:{},vertical:!1},t.SIZE_SMALL=Fa.SMALL,t.SIZE_STANDARD=Fa.STANDARD,t.SIZE_LARGE=Fa.LARGE,(0,Jr.__decorate)([vi],t)}(fo),Ga="undefined"!=typeof navigator?navigator.userAgent:"",Ua={isEdge:/Edge/.test(Ga),isInternetExplorer:/Trident|rv:11/.test(Ga),isWebkit:/AppleWebKit/.test(Ga)},Ka=function(e){function t(t,n){var r=e.call(this,t,n)||this;r.inputElement=null,r.valueElement=null,r.refHandlers={content:function(e){r.valueElement=e},input:function(e){if(null!=e&&(r.inputElement=e,r.props.alwaysRenderInput||r.inputElement.focus(),null!=r.state&&r.state.isEditing)){var t=function(e){switch(e.type){case"textarea":return!0;case"text":case"search":case"tel":case"url":case"password":return!0;default:return!1}}(e);if(t){var n=e.value.length;e.setSelectionRange(r.props.selectAllOnFocus?0:n,n)}t&&r.props.selectAllOnFocus||(e.scrollLeft=e.scrollWidth)}}},r.cancelEditing=function(){var e,t,n,o,i=r.state,a=i.lastValue,s=i.value;r.setState({isEditing:!1,value:a}),s!==a&&(null===(t=(e=r.props).onChange)||void 0===t||t.call(e,a)),null===(o=(n=r.props).onCancel)||void 0===o||o.call(n,a)},r.toggleEditing=function(){var e,t;if(r.state.isEditing){var n=r.state.value;r.setState({isEditing:!1,lastValue:n}),null===(t=(e=r.props).onConfirm)||void 0===t||t.call(e,n)}else r.props.disabled||r.setState({isEditing:!0})},r.handleFocus=function(){var e=r.props,t=e.alwaysRenderInput,n=e.disabled,o=e.selectAllOnFocus;if(n||r.setState({isEditing:!0}),t&&o&&null!=r.inputElement){var i=r.inputElement.value.length;r.inputElement.setSelectionRange(0,i)}},r.handleTextChange=function(e){var t,n,o=e.target.value;null==r.props.value&&r.setState({value:o}),null===(n=(t=r.props).onChange)||void 0===n||n.call(t,o)},r.handleKeyEvent=function(e){var t=e.altKey,n=e.ctrlKey,o=e.metaKey,i=e.shiftKey,a=e.which;if(a!==Lo){var s=t||n||o||i;a===Po&&((t||i)&&e.preventDefault(),r.props.confirmOnEnterKey&&r.props.multiline?null!=e.target&&s?(function(e,t){var n=e.selectionEnd,r=e.selectionStart,o=e.value;if(r>=0){var i=o.substring(0,r),a=o.substring(n,o.length),s="\n".length;e.value=i+"\n"+a,e.selectionStart=r+s,e.selectionEnd=r+s}}(e.target),r.handleTextChange(e)):r.toggleEditing():r.props.multiline&&!s||r.toggleEditing())}else r.cancelEditing()};var o=null==t.value?t.defaultValue:t.value;return r.state={inputHeight:0,inputWidth:0,isEditing:!0===t.isEditing&&!1===t.disabled,lastValue:o,value:o},r}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t,n,r=this.props,o=r.alwaysRenderInput,i=r.disabled,a=r.multiline,s=r.contentId,l=null!==(t=this.props.value)&&void 0!==t?t:this.state.value,u=null!=l&&""!==l,c=pi()(ct,qr(this.props.intent),((e={})[B]=i,e[dt]=this.state.isEditing,e[ft]=!u,e[Y]=a,e),this.props.className);n=a?{height:this.state.isEditing?void 0:this.state.inputHeight}:{height:this.state.inputHeight,lineHeight:null!=this.state.inputHeight?this.state.inputHeight+"px":void 0,minWidth:this.props.minWidth};var p=o||this.state.isEditing||i?void 0:0,d=o&&!this.state.isEditing,h=null!=s?{id:s}:{};return $r.createElement("div",{className:c,onFocus:this.handleFocus,tabIndex:p},o||this.state.isEditing?this.renderInput(l):void 0,d?void 0:$r.createElement("span",(0,Jr.__assign)({},h,{className:pt,ref:this.refHandlers.content,style:n}),u?l:this.props.placeholder))},t.prototype.componentDidMount=function(){this.updateInputDimensions()},t.prototype.componentDidUpdate=function(e,t){var n,r,o={};this.props.value===e.value||null==e.value&&null==this.props.value||(o.value=this.props.value),null!=this.props.isEditing&&this.props.isEditing!==e.isEditing&&(o.isEditing=this.props.isEditing),(this.props.disabled||null==this.props.disabled&&e.disabled)&&(o.isEditing=!1),this.setState(o),this.state.isEditing&&!t.isEditing&&(null===(r=(n=this.props).onEdit)||void 0===r||r.call(n,this.state.value)),this.state.value===t.value&&this.props.alwaysRenderInput===e.alwaysRenderInput&&this.props.maxLines===e.maxLines&&this.props.minLines===e.minLines&&this.props.minWidth===e.minWidth&&this.props.multiline===e.multiline||this.updateInputDimensions()},t.prototype.renderInput=function(e){var t=this.props,n=t.disabled,r=t.maxLength,o=t.multiline,i=t.type,a=t.placeholder,s={className:ht,disabled:n,maxLength:r,onBlur:this.toggleEditing,onChange:this.handleTextChange,onKeyDown:this.handleKeyEvent,placeholder:a,value:e},l=this.state,u=l.inputHeight,c=l.inputWidth;return 0!==u&&0!==c&&(s.style={height:u,lineHeight:o||null==u?void 0:u+"px",width:o?"100%":c}),o?$r.createElement("textarea",(0,Jr.__assign)({ref:this.refHandlers.input},s)):$r.createElement("input",(0,Jr.__assign)({ref:this.refHandlers.input,type:i},s))},t.prototype.updateInputDimensions=function(){if(null!=this.valueElement){var e=this.props,t=e.maxLines,n=e.minLines,r=e.minWidth,o=e.multiline,i=this.valueElement,a=i.parentElement,s=i.textContent,l=this.valueElement,u=l.scrollHeight,c=l.scrollWidth,p=Va(this.valueElement);o&&this.state.isEditing&&/\n$/.test(null!=s?s:"")&&(u+=p),p>0&&(u=ao(u,n*p,t*p)),u=Math.max(u,(d=this.valueElement,(""===(h=getComputedStyle(d).fontSize)?0:parseInt(h.slice(0,-2),10))+1),Va(a)),c+=Ua.isInternetExplorer?30:5,this.setState({inputHeight:u,inputWidth:Math.max(c,r)}),o&&this.state.isEditing&&this.setTimeout((function(){return a.style.height=u+"px"}))}var d,h},t.displayName=yo+".EditableText",t.defaultProps={alwaysRenderInput:!1,confirmOnEnterKey:!1,defaultValue:"",disabled:!1,maxLines:1/0,minLines:1,minWidth:80,multiline:!1,placeholder:"Click to Edit",type:"text"},(0,Jr.__decorate)([vi],t)}(fo);function Va(e){var t=parseInt(getComputedStyle(e).lineHeight.slice(0,-2),10);if(isNaN(t)){var n=document.createElement("span");n.innerHTML="<br>",e.appendChild(n);var r=e.offsetHeight;n.innerHTML="<br><br>";var o=e.offsetHeight;e.removeChild(n),t=o-r}return t}var Wa,za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.children,r=t.className,o=t.fill,i=t.vertical,a=(0,Jr.__rest)(t,["children","className","fill","vertical"]),s=pi()(Ye,((e={})[F]=o,e[X]=i,e),r);return $r.createElement("div",(0,Jr.__assign)({},a,{className:s}),n)},t.displayName=yo+".ControlGroup",(0,Jr.__decorate)([vi],t)}(fo),Ya=function(e){var t,n=e.alignIndicator,r=e.children,o=e.className,i=e.indicatorChildren,a=e.inline,s=e.inputRef,l=e.label,u=e.labelElement,c=e.large,p=e.style,d=e.type,h=e.typeClassName,f=e.tagName,m=void 0===f?"label":f,v=(0,Jr.__rest)(e,["alignIndicator","children","className","indicatorChildren","inline","inputRef","label","labelElement","large","style","type","typeClassName","tagName"]),E=pi()(bt,h,((t={})[B]=v.disabled,t[G]=a,t[K]=c,t),Wr(n),o);return $r.createElement(m,{className:E,style:p},$r.createElement("input",(0,Jr.__assign)({},v,{ref:s,type:d})),$r.createElement("span",{className:St},i),l,u,r)},qa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.innerLabelChecked,n=e.innerLabel,r=(0,Jr.__rest)(e,["innerLabelChecked","innerLabel"]),o=n||t?[$r.createElement("div",{key:"checked",className:At},$r.createElement("div",{className:kt},t||n)),$r.createElement("div",{key:"unchecked",className:At},$r.createElement("div",{className:kt},n))]:null;return $r.createElement(Ya,(0,Jr.__assign)({},r,{type:"checkbox",typeClassName:Lt,indicatorChildren:o}))},t.displayName=yo+".Switch",(0,Jr.__decorate)([vi],t)}(fo),ja=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){return $r.createElement(Ya,(0,Jr.__assign)({},this.props,{type:"radio",typeClassName:Dt}))},t.displayName=yo+".Radio",(0,Jr.__decorate)([vi],t)}(fo),Xa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={indeterminate:t.props.indeterminate||t.props.defaultIndeterminate||!1},t.input=null,t.handleInputRef=bo(t,"input",t.props.inputRef),t.handleChange=function(e){var n,r,o=e.target.indeterminate;null==t.props.indeterminate&&t.setState({indeterminate:o}),null===(r=(n=t.props).onChange)||void 0===r||r.call(n,e)},t}return(0,Jr.__extends)(t,e),t.getDerivedStateFromProps=function(e){var t=e.indeterminate;return null!=t?{indeterminate:t}:null},t.prototype.render=function(){var e=this.props,t=(e.defaultIndeterminate,e.indeterminate,(0,Jr.__rest)(e,["defaultIndeterminate","indeterminate"]));return $r.createElement(Ya,(0,Jr.__assign)({},t,{inputRef:this.handleInputRef,onChange:this.handleChange,type:"checkbox",typeClassName:Pt}))},t.prototype.componentDidMount=function(){this.updateIndeterminate()},t.prototype.componentDidUpdate=function(e){this.updateIndeterminate(),e.inputRef!==this.props.inputRef&&(Co(e.inputRef,null),this.handleInputRef=bo(this,"input",this.props.inputRef),Co(this.props.inputRef,this.input))},t.prototype.updateIndeterminate=function(){null!=this.input&&(this.input.indeterminate=this.state.indeterminate)},t.displayName=yo+".Checkbox",(0,Jr.__decorate)([vi],t)}(fo),Qa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleInputChange=function(e){var n,r,o,i;null===(r=(n=t.props).onInputChange)||void 0===r||r.call(n,e),null===(i=null===(o=t.props.inputProps)||void 0===o?void 0:o.onChange)||void 0===i||i.call(o,e)},t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t,n,r=this.props,o=r.buttonText,i=r.className,a=r.disabled,s=r.fill,l=r.hasSelection,u=r.inputProps,c=r.large,p=(r.onInputChange,r.text),d=(0,Jr.__rest)(r,["buttonText","className","disabled","fill","hasSelection","inputProps","large","onInputChange","text"]),h=pi()(xt,((e={})[wt]=l,e[B]=a,e[F]=s,e[K]=c,e),i),f=((t={})[Vr()+"-button-text"]=o,t.className=pi()(Bt,((n={})[Ft]=!!o,n)),t);return $r.createElement("label",(0,Jr.__assign)({},d,{className:h}),$r.createElement("input",(0,Jr.__assign)({},u,{onChange:this.handleInputChange,type:"file",disabled:a})),$r.createElement("span",(0,Jr.__assign)({},f),p))},t.displayName=yo+".FileInput",t.defaultProps={hasSelection:!1,inputProps:{},text:"Choose file..."},(0,Jr.__decorate)([vi],t)}(fo),Za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.contentClassName,r=e.helperText,o=e.label,i=e.labelFor,a=e.labelInfo,s=e.style;return $r.createElement("div",{className:this.getClassName(),style:s},o&&$r.createElement("label",{className:zt,htmlFor:i},o," ",$r.createElement("span",{className:me},a)),$r.createElement("div",{className:pi()(qt,n)},t,r&&$r.createElement("div",{className:jt},r)))},t.prototype.getClassName=function(){var e,t=this.props,n=t.className,r=t.disabled,o=t.inline,i=t.intent;return pi()(Yt,qr(i),((e={})[B]=r,e[G]=o,e),n)},t.displayName=yo+".FormGroup",(0,Jr.__decorate)([vi],t)}(fo),Ja=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={hasPendingUpdate:!1,isComposing:!1,nextValue:t.props.value,value:t.props.value},t.handleCompositionStart=function(e){var n,r;t.setState({isComposing:!0,nextValue:t.state.value}),null===(r=(n=t.props).onCompositionStart)||void 0===r||r.call(n,e)},t.handleCompositionEnd=function(e){var n,r;t.setState({isComposing:!1}),null===(r=(n=t.props).onCompositionEnd)||void 0===r||r.call(n,e)},t.handleChange=function(e){var n,r,o=e.target.value;t.setState({nextValue:o}),null===(r=(n=t.props).onChange)||void 0===r||r.call(n,e)},t}return(0,Jr.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){return t.isComposing||void 0===e.value?null:t.nextValue!==t.value?e.value===t.nextValue?t.hasPendingUpdate?{value:e.value,hasPendingUpdate:!1}:{value:t.nextValue}:e.value===t.value?{hasPendingUpdate:!0}:{value:e.value,nextValue:e.value,hasPendingUpdate:!1}:{value:e.value,nextValue:e.value,hasPendingUpdate:!1}},t.prototype.render=function(){var e=this.state,t=e.isComposing,n=e.hasPendingUpdate,r=e.value,o=e.nextValue,i=this.props,a=i.inputRef,s=(0,Jr.__rest)(i,["inputRef"]);return $r.createElement("input",(0,Jr.__assign)({},s,{ref:a,value:t||n?o:r,onCompositionStart:this.handleCompositionStart,onCompositionEnd:this.handleCompositionEnd,onChange:this.handleChange}))},t.displayName=yo+".AsyncControllableInput",(0,Jr.__decorate)([vi],t)}($r.PureComponent),$a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.leftElement=null,t.rightElement=null,t.refHandlers={leftElement:function(e){return t.leftElement=e},rightElement:function(e){return t.rightElement=e}},t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.asyncControl,r=void 0!==n&&n,o=t.className,i=t.disabled,a=t.fill,s=t.inputRef,l=t.intent,u=t.large,c=t.small,p=t.round,d=pi()(Ot,qr(l),((e={})[B]=i,e[F]=a,e[K]=u,e[j]=c,e[q]=p,e),o),h=(0,Jr.__assign)((0,Jr.__assign)({},this.props.style),{paddingLeft:this.state.leftElementWidth,paddingRight:this.state.rightElementWidth}),f=(0,Jr.__assign)((0,Jr.__assign)({type:"text"},_o(this.props)),{className:Nt,style:h});return $r.createElement("div",{className:d},this.maybeRenderLeftElement(),r?$r.createElement(Ja,(0,Jr.__assign)({},f,{inputRef:s})):$r.createElement("input",(0,Jr.__assign)({},f,{ref:s})),this.maybeRenderRightElement())},t.prototype.componentDidMount=function(){this.updateInputWidth()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.leftElement,r=t.rightElement;e.leftElement===n&&e.rightElement===r||this.updateInputWidth()},t.prototype.validateProps=function(e){null!=e.leftElement&&null!=e.leftIcon&&console.warn("[Blueprint] <InputGroup> leftElement and leftIcon prop are mutually exclusive, with leftElement taking priority.")},t.prototype.maybeRenderLeftElement=function(){var e=this.props,t=e.leftElement,n=e.leftIcon;return null!=t?$r.createElement("span",{className:Rt,ref:this.refHandlers.leftElement},t):null!=n?$r.createElement(Qi,{icon:n}):void 0},t.prototype.maybeRenderRightElement=function(){var e=this.props.rightElement;if(null!=e)return $r.createElement("span",{className:It,ref:this.refHandlers.rightElement},e)},t.prototype.updateInputWidth=function(){var e=this.state,t=e.leftElementWidth,n=e.rightElementWidth;if(null!=this.leftElement){var r=this.leftElement.clientWidth;(void 0===t||Math.abs(r-t)>2)&&this.setState({leftElementWidth:r})}else this.setState({leftElementWidth:void 0});null!=this.rightElement?(r=this.rightElement.clientWidth,(void 0===n||Math.abs(r-n)>2)&&this.setState({rightElementWidth:r})):this.setState({rightElementWidth:void 0})},t.displayName=yo+".InputGroup",(0,Jr.__decorate)([vi],t)}(fo);function es(e){var t=1.9.toLocaleString(e),n=1..toLocaleString(e),r=9..toLocaleString(e),o=new RegExp(n+"(.+)"+r).exec(t);return o&&o[1]||"."}function ts(e,t){return void 0===t&&(t="en-US"),as(e.toLocaleString(t),t)}function ns(e){return void 0===e&&(e=""),e.toString()}function rs(e,t){var n=""+e;if(parseFloat(n).toString()===e.toString())return e.toString();if(void 0!==t){var r=es(t);return as(n,t).split("").map((function(e){return function(e,t){var n=[0,1,2,3,4,5,6,7,8,9].map((function(e){return e.toLocaleString(t)})).indexOf(e);return-1!==n?n:e}(e,t)})).join("").replace(r,".")}return e.toString()}function os(e,t){return null==e.key||!!(e.ctrlKey||e.altKey||e.metaKey)||!(1===e.key.length)||is(e.key,t)}function is(e,t){if(void 0!==t){var n=es(t).replace(".","\\."),r=[0,1,2,3,4,5,6,7,8,9].map((function(e){return e.toLocaleString(t)})).join("");return new RegExp("^[Ee"+r+"\\+\\-"+n+"]$").test(e)}return/^[Ee0-9\+\-\.]$/.test(e)}function as(e,t){return function(e){return e.replace(/[\uFF10-\uFF19]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)-65248)}))}(e).split("").filter((function(e){return is(e,t)})).join("")}!function(e){e[e.DOWN=-1]="DOWN",e[e.UP=1]="UP"}(Wa||(Wa={}));var ss=["allowNumericCharactersOnly","buttonPosition","clampValueOnBlur","className","defaultValue","majorStepSize","minorStepSize","onButtonClick","onValueChange","selectAllOnFocus","selectAllOnIncrement","stepSize"],ls=function(e){function t(){var t,r=e.apply(this,arguments)||this;return r.state={currentImeInputInvalid:!1,shouldSelectAfterUpdate:!1,stepMaxPrecision:n.getStepMaxPrecision(r.props),value:ns(null!==(t=r.props.value)&&void 0!==t?t:r.props.defaultValue)},r.didPasteEventJustOccur=!1,r.delta=0,r.inputElement=null,r.inputRef=bo(r,"inputElement",r.props.inputRef),r.incrementButtonHandlers=r.getButtonEventHandlers(Wa.UP),r.decrementButtonHandlers=r.getButtonEventHandlers(Wa.DOWN),r.handleButtonClick=function(e,t){var n,o,i=r.updateDelta(t,e),a=r.incrementValue(i);null===(o=(n=r.props).onButtonClick)||void 0===o||o.call(n,Number(rs(a,r.props.locale)),a)},r.stopContinuousChange=function(){r.delta=0,r.clearTimeouts(),clearInterval(r.intervalId),document.removeEventListener("mouseup",r.stopContinuousChange)},r.handleContinuousChange=function(){var e,t,n,o;if(void 0!==r.props.min||void 0!==r.props.max){var i=null!==(e=r.props.min)&&void 0!==e?e:-1/0,a=null!==(t=r.props.max)&&void 0!==t?t:1/0,s=Number(rs(r.state.value,r.props.locale));if(s<=i||s>=a)return void r.stopContinuousChange()}var l=r.incrementValue(r.delta);null===(o=(n=r.props).onButtonClick)||void 0===o||o.call(n,Number(rs(l,r.props.locale)),l)},r.handleInputFocus=function(e){var t,n;r.setState({shouldSelectAfterUpdate:r.props.selectAllOnFocus}),null===(n=(t=r.props).onFocus)||void 0===n||n.call(t,e)},r.handleInputBlur=function(e){var t,n;if(r.setState({shouldSelectAfterUpdate:!1}),r.props.clampValueOnBlur){var o=e.target.value;r.handleNextValue(r.roundAndClampValue(o))}null===(n=(t=r.props).onBlur)||void 0===n||n.call(t,e)},r.handleInputKeyDown=function(e){var t,n;if(!r.props.disabled&&!r.props.readOnly){var o,i=e.keyCode;if(i===wo?o=Wa.UP:i===Fo&&(o=Wa.DOWN),void 0!==o){e.preventDefault();var a=r.updateDelta(o,e);r.incrementValue(a)}null===(n=(t=r.props).onKeyDown)||void 0===n||n.call(t,e)}},r.handleCompositionEnd=function(e){r.props.allowNumericCharactersOnly&&(r.handleNextValue(as(e.data,r.props.locale)),r.setState({currentImeInputInvalid:!1}))},r.handleCompositionUpdate=function(e){if(r.props.allowNumericCharactersOnly){var t=e.data;0===as(t,r.props.locale).length&&t.length>0?r.setState({currentImeInputInvalid:!0}):r.setState({currentImeInputInvalid:!1})}},r.handleInputKeyPress=function(e){var t,n;r.props.allowNumericCharactersOnly&&!os(e,r.props.locale)&&e.preventDefault(),null===(n=(t=r.props).onKeyPress)||void 0===n||n.call(t,e)},r.handleInputPaste=function(e){var t,n;r.didPasteEventJustOccur=!0,null===(n=(t=r.props).onPaste)||void 0===n||n.call(t,e)},r.handleInputChange=function(e){var t=e.target.value,n=t;r.props.allowNumericCharactersOnly&&r.didPasteEventJustOccur&&(r.didPasteEventJustOccur=!1,n=as(t,r.props.locale)),r.handleNextValue(n),r.setState({shouldSelectAfterUpdate:!1})},r}var n;return(0,Jr.__extends)(t,e),n=t,t.getDerivedStateFromProps=function(e,t){var r,o,i={prevMaxProp:e.max,prevMinProp:e.min},a=e.min!==t.prevMinProp,s=e.max!==t.prevMaxProp,l=a||s,u=null!==(o=null===(r=e.value)||void 0===r?void 0:r.toString())&&void 0!==o?o:t.value,c=n.getStepMaxPrecision(e),p=u!==n.VALUE_EMPTY?n.roundAndClampValue(u,c,e.min,e.max,0,e.locale):n.VALUE_EMPTY;return l&&p!==t.value?(0,Jr.__assign)((0,Jr.__assign)({},i),{stepMaxPrecision:c,value:p}):(0,Jr.__assign)((0,Jr.__assign)({},i),{stepMaxPrecision:c,value:u})},t.getStepMaxPrecision=function(e){return null!=e.minorStepSize?so(e.minorStepSize):so(e.stepSize)},t.roundAndClampValue=function(e,t,r,o,i,a){if(void 0===i&&(i=0),!function(e,t){var n=rs(e,t);return null!=e&&n-parseFloat(n)+1>=0}(e,a))return n.VALUE_EMPTY;var s=rs(e,a);return ts(function(e,t,n){return ao(e,null!=t?t:-1/0,null!=n?n:1/0)}(function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}(Number(s)+i,t),r,o),a)},t.prototype.render=function(){var e,t=this.props,n=t.buttonPosition,r=t.className,o=t.fill,i=t.large,a=pi()(hn,((e={})[K]=i,e),r),s=this.renderButtons();return $r.createElement(za,{className:a,fill:o},n===b.LEFT&&s,this.renderInput(),n===b.RIGHT&&s)},t.prototype.componentDidUpdate=function(t,r){var o,i,a;e.prototype.componentDidUpdate.call(this,t,r),t.inputRef!==this.props.inputRef&&(Co(t.inputRef,null),this.inputRef=bo(this,"inputElement",this.props.inputRef),Co(this.props.inputRef,this.inputElement)),this.state.shouldSelectAfterUpdate&&(null===(o=this.inputElement)||void 0===o||o.setSelectionRange(0,this.state.value.length));var s=this.props.min!==t.min,l=this.props.max!==t.max,u=s||l,c=this.props.locale!==t.locale,p=this.state.value!==r.value;if(u&&p||c&&r.value!==n.VALUE_EMPTY){var d=rs(c?r.value:this.state.value,t.locale),h=ts(+d,this.props.locale);null===(a=(i=this.props).onValueChange)||void 0===a||a.call(i,+d,h,this.inputElement)}},t.prototype.validateProps=function(e){var t=e.majorStepSize,r=e.max,o=e.min,i=e.minorStepSize,a=e.stepSize,s=e.value;if(null!=o&&null!=r&&o>r&&console.error("[Blueprint] <NumericInput> requires min to be no greater than max if both are defined."),a<=0&&console.error("[Blueprint] <NumericInput> requires stepSize to be strictly greater than zero."),i&&i<=0&&console.error("[Blueprint] <NumericInput> requires minorStepSize to be strictly greater than zero."),t&&t<=0&&console.error("[Blueprint] <NumericInput> requires majorStepSize to be strictly greater than zero."),i&&i>a&&console.error("[Blueprint] <NumericInput> requires minorStepSize to be no greater than stepSize."),t&&t<a&&console.error("[Blueprint] <NumericInput> requires stepSize to be no greater than majorStepSize."),null!=s){var l=n.getStepMaxPrecision(e),u=n.roundAndClampValue(s.toString(),l,o,r,0,this.props.locale),c=u!==s.toString(),p=ts(Number(rs(s,this.props.locale)),this.props.locale);c&&u!==p&&console.warn("[Blueprint] <NumericInput> controlled value prop does not adhere to stepSize, min, and/or max constraints.")}},t.prototype.renderButtons=function(){var e=this.props,t=e.intent,n=e.max,r=e.min,o=e.locale,i=rs(this.state.value,o),a=this.props.disabled||this.props.readOnly,s=void 0!==n&&""!==i&&+i>=n,l=void 0!==r&&""!==i&&+i<=r;return $r.createElement(Sa,{className:M,key:"button-group",vertical:!0},$r.createElement(ea,(0,Jr.__assign)({"aria-label":"increment",disabled:a||s,icon:"chevron-up",intent:t},this.incrementButtonHandlers)),$r.createElement(ea,(0,Jr.__assign)({"aria-label":"decrement",disabled:a||l,icon:"chevron-down",intent:t},this.decrementButtonHandlers)))},t.prototype.renderInput=function(){var e=_o(this.props,ss,!0);return $r.createElement($a,(0,Jr.__assign)({asyncControl:this.props.asyncControl,autoComplete:"off"},e,{intent:this.state.currentImeInputInvalid?I.DANGER:this.props.intent,inputRef:this.inputRef,large:this.props.large,leftIcon:this.props.leftIcon,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onCompositionEnd:this.handleCompositionEnd,onCompositionUpdate:this.handleCompositionUpdate,onKeyDown:this.handleInputKeyDown,onKeyPress:this.handleInputKeyPress,onPaste:this.handleInputPaste,rightElement:this.props.rightElement,value:this.state.value}))},t.prototype.getButtonEventHandlers=function(e){var t=this;return{onKeyDown:function(n){!t.props.disabled&&Ho(n.keyCode)&&t.handleButtonClick(n,e)},onMouseDown:function(n){t.props.disabled||(t.handleButtonClick(n,e),t.startContinuousChange())}}},t.prototype.startContinuousChange=function(){var e=this;document.addEventListener("mouseup",this.stopContinuousChange),this.setTimeout((function(){e.intervalId=window.setInterval(e.handleContinuousChange,n.CONTINUOUS_CHANGE_INTERVAL)}),n.CONTINUOUS_CHANGE_DELAY)},t.prototype.handleNextValue=function(e){var t,n;null==this.props.value&&this.setState({value:e}),null===(n=(t=this.props).onValueChange)||void 0===n||n.call(t,Number(rs(e,this.props.locale)),e,this.inputElement)},t.prototype.incrementValue=function(e){var t=this.state.value===n.VALUE_EMPTY?n.VALUE_ZERO:this.state.value,r=this.roundAndClampValue(t,e);return r!==this.state.value&&(this.handleNextValue(r),this.setState({shouldSelectAfterUpdate:this.props.selectAllOnIncrement})),r},t.prototype.getIncrementDelta=function(e,t,n){var r=this.props,o=r.majorStepSize,i=r.minorStepSize,a=r.stepSize;return t&&null!=o?e*o:n&&null!=i?e*i:e*a},t.prototype.roundAndClampValue=function(e,t){return void 0===t&&(t=0),n.roundAndClampValue(e,this.state.stepMaxPrecision,this.props.min,this.props.max,t,this.props.locale)},t.prototype.updateDelta=function(e,t){return this.delta=this.getIncrementDelta(e,t.shiftKey,t.altKey),this.delta},t.displayName=yo+".NumericInput",t.VALUE_EMPTY="",t.VALUE_ZERO="0",t.defaultProps={allowNumericCharactersOnly:!0,buttonPosition:b.RIGHT,clampValueOnBlur:!1,defaultValue:n.VALUE_EMPTY,large:!1,majorStepSize:10,minorStepSize:.1,selectAllOnFocus:!1,selectAllOnIncrement:!1,stepSize:1},t.CONTINUOUS_CHANGE_DELAY=300,t.CONTINUOUS_CHANGE_INTERVAL=100,n=(0,Jr.__decorate)([vi],t)}(fo),us=0;function cs(){return ps.displayName+"-"+us++}for(var ps=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoGroupName=cs(),t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props.label;return $r.createElement("div",{className:this.props.className},null==e?null:$r.createElement("label",{className:zt},e),Array.isArray(this.props.options)?this.renderOptions():this.renderChildren())},t.prototype.validateProps=function(){null!=this.props.children&&null!=this.props.options&&console.warn("[Blueprint] <RadioGroup> children and options prop are mutually exclusive, with options taking priority.")},t.prototype.renderChildren=function(){var e=this;return $r.Children.map(this.props.children,(function(t){return ai(t,ja)?$r.cloneElement(t,e.getRadioProps(t.props)):t}))},t.prototype.renderOptions=function(){var e,t=this;return null===(e=this.props.options)||void 0===e?void 0:e.map((function(e){return $r.createElement(ja,(0,Jr.__assign)({},t.getRadioProps(e),{key:e.value,labelElement:e.label||e.value}))}))},t.prototype.getRadioProps=function(e){var t=this.props.name,n=e.className,r=e.disabled,o=e.value;return{checked:o===this.props.selectedValue,className:n,disabled:r||this.props.disabled,inline:this.props.inline,name:null==t?this.autoGroupName:t,onChange:this.props.onChange,value:o}},t.displayName=yo+".RadioGroup",(0,Jr.__decorate)([vi],t)}(fo),ds=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.textareaElement=null,t.handleRef=bo(t,"textareaElement",t.props.inputRef),t.handleChange=function(e){t.props.growVertically&&t.setState({height:e.target.scrollHeight}),null!=t.props.onChange&&t.props.onChange(e)},t}return(0,Jr.__extends)(t,e),t.prototype.componentDidMount=function(){var e;this.props.growVertically&&null!==this.textareaElement&&this.setState({height:null===(e=this.textareaElement)||void 0===e?void 0:e.scrollHeight})},t.prototype.componentDidUpdate=function(e){e.inputRef!==this.props.inputRef&&(Co(e.inputRef,null),this.handleRef=bo(this,"textareaElement",this.props.inputRef),Co(this.props.inputRef,this.textareaElement))},t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.fill,o=(t.inputRef,t.intent),i=t.large,a=t.small,s=t.growVertically,l=(0,Jr.__rest)(t,["className","fill","inputRef","intent","large","small","growVertically"]),u=pi()(Nt,qr(o),((e={})[F]=r,e[K]=i,e[j]=a,e),n),c=l.style,p=void 0===c?{}:c;return s&&null!=this.state.height&&(p=(0,Jr.__assign)((0,Jr.__assign)({},p),{height:this.state.height+"px"})),$r.createElement("textarea",(0,Jr.__assign)({},l,{className:u,onChange:this.handleChange,ref:this.handleRef,style:p}))},t.displayName=yo+".TextArea",(0,Jr.__decorate)([vi],t)}(fo),hs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.disabled,o=t.elementRef,i=t.fill,a=t.iconProps,s=t.large,l=t.minimal,u=t.options,c=void 0===u?[]:u,p=(0,Jr.__rest)(t,["className","disabled","elementRef","fill","iconProps","large","minimal","options"]),d=pi()(vt,((e={})[B]=r,e[F]=i,e[K]=s,e[W]=l,e),n),h=c.map((function(e){var t="object"==typeof e?e:{value:e};return $r.createElement("option",(0,Jr.__assign)({},t,{key:t.value,children:t.label||t.value}))}));return $r.createElement("div",{className:d},$r.createElement("select",(0,Jr.__assign)({disabled:r,ref:o},p,{multiple:!1}),h,p.children),$r.createElement(Qi,(0,Jr.__assign)({icon:"double-caret-vertical",title:"Open dropdown"},a)))},(0,Jr.__decorate)([vi],t)}(fo),fs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.bordered,r=t.className,o=t.condensed,i=t.elementRef,a=t.interactive,s=t.small,l=t.striped,u=(0,Jr.__rest)(t,["bordered","className","condensed","elementRef","interactive","small","striped"]),c=pi()(yt,((e={})[gt]=n,e[_t]=o,e[Tt]=l,e[U]=a,e[j]=s,e),r);return $r.createElement("table",(0,Jr.__assign)({},u,{ref:i,className:c}))},(0,Jr.__decorate)([vi],t)}(fo),ms={8:"backspace",9:"tab",13:"enter",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},vs={16:"shift",17:"ctrl",18:"alt",91:"meta",93:"meta",224:"meta"},Es={alt:1,ctrl:2,meta:4,shift:8},ys={cmd:"meta",command:"meta",escape:"esc",minus:"-",mod:Is()?"meta":"ctrl",option:"alt",plus:"+",return:"enter",win:"meta"},gs={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=","{":"[","}":"]","|":"\\",":":";",'"':"'","<":",",">":".","?":"/"},_s=1;_s<=12;++_s)ms[111+_s]="f"+_s;for(_s=0;_s<=9;++_s)ms[96+_s]="num"+_s.toString();function Ts(e,t){return e.modifiers===t.modifiers&&e.key===t.key}var Ns=function(e){for(var t,n=0,r=0,o=e.replace(/\s/g,"").toLowerCase().split("+");r<o.length;r++){var i=o[r];if(""===i)throw new Error('Failed to parse key combo "'+e+'".\n Valid key combos look like "cmd + plus", "shift+p", or "!"');null!=ys[i]&&(i=ys[i]),null!=Es[i]?n+=Es[i]:null!=gs[i]?(n+=Es.shift,t=gs[i]):t=i.toLowerCase()}return{modifiers:n,key:t}},Cs=function(e){var t=[];e.ctrlKey&&t.push("ctrl"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),e.metaKey&&t.push("meta");var n=e.which;return null!=vs[n]||(null!=ms[n]?t.push(ms[n]):t.push(String.fromCharCode(n).toLowerCase())),t.join(" + ")},Os=function(e){var t,n=e.which;null!=vs[n]||(t=null!=ms[n]?ms[n]:String.fromCharCode(n).toLowerCase());var r=0;return e.altKey&&(r+=Es.alt),e.ctrlKey&&(r+=Es.ctrl),e.metaKey&&(r+=Es.meta),e.shiftKey&&(r+=Es.shift),{modifiers:r,key:t}},Rs=function(e,t){return e.replace(/\s/g,"").split("+").map((function(e){var n=null!=ys[e]?ys[e]:e;return"meta"===n?Is(t)?"cmd":"ctrl":n}))};function Is(e){var t=null!=e?e:"undefined"!=typeof navigator?navigator.platform:void 0;return null!=t&&/Mac|iPod|iPhone|iPad/.test(t)}var bs,Ss={alt:{icon:"key-option",iconTitle:"Alt/Option key"},cmd:{icon:"key-command",iconTitle:"Command key"},ctrl:{icon:"key-control",iconTitle:"Control key"},delete:{icon:"key-delete",iconTitle:"Delete key"},down:{icon:"arrow-down",iconTitle:"Down key"},enter:{icon:"key-enter",iconTitle:"Enter key"},left:{icon:"arrow-left",iconTitle:"Left key"},meta:{icon:"key-command",iconTitle:"Command key"},right:{icon:"arrow-right",iconTitle:"Right key"},shift:{icon:"key-shift",iconTitle:"Shift key"},up:{icon:"arrow-up",iconTitle:"Up key"}},As=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderKey=function(e,t){var n,r=Ss[e],o="key-"+t;return $r.createElement("kbd",{className:pi()(Mt,(n={},n[Gt]=null!=r,n)),key:o},null!=r&&$r.createElement(Qi,{icon:r.icon,title:r.iconTitle}),e)},t.renderMinimalKey=function(e,t){var n=Ss[e];return null==n?e:$r.createElement(Qi,{icon:n.icon,title:n.iconTitle,key:"key-"+t})},t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.combo,r=e.minimal,o=Rs(n).map((function(e){return 1===e.length?e.toUpperCase():e})).map(r?this.renderMinimalKey:this.renderKey);return $r.createElement("span",{className:pi()(Ht,t)},o)},t.displayName=yo+".KeyCombo",(0,Jr.__decorate)([vi],t)}(fo),Ps=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.className,r=(0,Jr.__rest)(e,["label","className"]),o=pi()(Ut,n);return $r.createElement("div",{className:o},$r.createElement("div",{className:Kt},t),$r.createElement(As,(0,Jr.__assign)({},r)))},t.prototype.validateProps=function(e){!0!==e.global&&null==e.group&&console.error("non-global <Hotkey>s must define a group")},t.displayName=yo+".Hotkey",t.defaultProps={allowInInput:!1,disabled:!1,global:!1,preventDefault:!1,stopPropagation:!1},(0,Jr.__decorate)([vi],t)}(fo),Ds=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){if(!ri(this.props.children))return null;var e,t=$r.Children.map(this.props.children,(function(e){return e.props}));t.sort((function(e,t){return e.global===t.global&&e.group&&t.group?e.group.localeCompare(t.group):e.global?-1:1}));for(var n=[],r=0,o=t;r<o.length;r++){var i=o[r],a=i.group;a!==e&&(n.push($r.createElement(sa,{key:"group-"+n.length},a)),e=a),n.push($r.createElement(Ps,(0,Jr.__assign)({key:n.length},i)))}var s=pi()(Vt,this.props.className);return $r.createElement("div",{className:s},n)},t.prototype.validateProps=function(e){ri(e.children)&&$r.Children.forEach(e.children,(function(e){if(!ai(e,Ps))throw new Error("[Blueprint] <Hotkeys> only accepts <Hotkey> children.")}))},t.displayName=yo+".Hotkeys",t.defaultProps={tabIndex:0},(0,Jr.__decorate)([vi],t)}(fo),Ls=new(function(){function e(){var e=this;this.componentProps={globalHotkeysGroup:"Global hotkeys"},this.container=null,this.hotkeysQueue=[],this.isDialogShowing=!1,this.show=function(){e.isDialogShowing=!0,e.render()},this.hide=function(){e.isDialogShowing=!1,e.render()}}return e.prototype.render=function(){null==this.container&&(this.container=this.getContainer()),di.render(this.renderComponent(),this.container)},e.prototype.unmount=function(){null!=this.container&&(di.unmountComponentAtNode(this.container),this.container.remove(),this.container=null)},e.prototype.enqueueHotkeysForDisplay=function(e){this.hotkeysQueue.push(e),window.clearTimeout(this.showTimeoutToken),this.showTimeoutToken=window.setTimeout(this.show,10)},e.prototype.hideAfterDelay=function(){window.clearTimeout(this.hideTimeoutToken),this.hideTimeoutToken=window.setTimeout(this.hide,10)},e.prototype.isShowing=function(){return this.isDialogShowing},e.prototype.getContainer=function(){return null==this.container&&(this.container=document.createElement("div"),this.container.classList.add(Xn),document.body.appendChild(this.container)),this.container},e.prototype.renderComponent=function(){return $r.createElement(va,(0,Jr.__assign)({},this.componentProps,{className:pi()(Wt,this.componentProps.className),isOpen:this.isDialogShowing,onClose:this.hide}),$r.createElement("div",{className:Xe},this.renderHotkeys()))},e.prototype.renderHotkeys=function(){var e=this,t=this.emptyHotkeyQueue().map((function(t,n){var r=!0===t.global&&null==t.group?e.componentProps.globalHotkeysGroup:t.group;return $r.createElement(Ps,(0,Jr.__assign)({key:n},t,{group:r}))}));return $r.createElement(Ds,null,t)},e.prototype.emptyHotkeyQueue=function(){var e=this.hotkeysQueue.reduce((function(e,t){return e.concat(t)}),[]);return this.hotkeysQueue.length=0,e},e}());function ks(){return Ls.isShowing()}function xs(e){for(var t in e)e.hasOwnProperty(t)&&(Ls.componentProps[t]=e[t])}function ws(e){Ls.enqueueHotkeysForDisplay(e)}function Bs(){Ls.hide()}function Fs(){Ls.hideAfterDelay()}!function(e){e.LOCAL="local",e.GLOBAL="global"}(bs||(bs={}));var Ms=function(){function e(e){var t=this;this.scope=e,this.actions=[],this.handleKeyDown=function(e){var n=Os(e);t.isTextInput(e)||!Ts(Ns("?"),n)?ks()||t.invokeNamedCallbackIfComboRecognized(n,"onKeyDown",e):ks()?Fs():ws(t.actions.map((function(e){return e.props})))},this.handleKeyUp=function(e){ks()||t.invokeNamedCallbackIfComboRecognized(Os(e),"onKeyUp",e)}}return e.prototype.count=function(){return this.actions.length},e.prototype.clear=function(){this.actions=[]},e.prototype.setHotkeys=function(e){var t=this,n=[];$r.Children.forEach(e.children,(function(e){ai(e,Ps)&&t.isScope(e.props)&&n.push({combo:Ns(e.props.combo),props:e.props})})),this.actions=n},e.prototype.invokeNamedCallbackIfComboRecognized=function(e,t,n){for(var r,o,i=this.isTextInput(n),a=0,s=this.actions;a<s.length;a++){var l=s[a];!(i&&!l.props.allowInInput||l.props.disabled)&&Ts(l.combo,e)&&(l.props.preventDefault&&n.preventDefault(),l.props.stopPropagation&&(n.isPropagationStopped=!0,n.stopPropagation()),null===(o=(r=l.props)[t])||void 0===o||o.call(r,n))}},e.prototype.isScope=function(e){return(e.global?bs.GLOBAL:bs.LOCAL)===this.scope},e.prototype.isTextInput=function(e){var t=e.target;if(null==t||null==t.closest)return!1;var n=t.closest("input, textarea, [contenteditable=true]");if(null==n)return!1;if("input"===n.tagName.toLowerCase()){var r=n.type;if("checkbox"===r||"radio"===r)return!1}return!n.readOnly},e}();function Hs(e){var t;return jo(e.prototype.renderHotkeys)||console.warn("[Blueprint] @HotkeysTarget-decorated class should implement renderHotkeys."),(t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.globalHotkeysEvents=new Ms(bs.GLOBAL),t.localHotkeysEvents=new Ms(bs.LOCAL),t}return(0,Jr.__extends)(t,e),t.prototype.componentDidMount=function(){null!=e.prototype.componentDidMount&&e.prototype.componentDidMount.call(this),document.addEventListener("keydown",this.globalHotkeysEvents.handleKeyDown),document.addEventListener("keyup",this.globalHotkeysEvents.handleKeyUp)},t.prototype.componentWillUnmount=function(){var t;null===(t=e.prototype.componentWillUnmount)||void 0===t||t.call(this),document.removeEventListener("keydown",this.globalHotkeysEvents.handleKeyDown),document.removeEventListener("keyup",this.globalHotkeysEvents.handleKeyUp),this.globalHotkeysEvents.clear(),this.localHotkeysEvents.clear()},t.prototype.render=function(){var t=this,n=e.prototype.render.call(this);if(null==n)return n;if(!$r.isValidElement(n))return console.warn('[Blueprint] "@HotkeysTarget-decorated components must return a single JSX.Element or an empty render.'),n;if(jo(this.renderHotkeys)){var r=this.renderHotkeys();if(this.localHotkeysEvents&&this.localHotkeysEvents.setHotkeys(r.props),this.globalHotkeysEvents&&this.globalHotkeysEvents.setHotkeys(r.props),this.localHotkeysEvents.count()>0){var o=void 0===r.props.tabIndex?0:r.props.tabIndex,i=n.props,a=i.onKeyDown,s=i.onKeyUp;return $r.cloneElement(n,{onKeyDown:function(e){t.localHotkeysEvents.handleKeyDown(e.nativeEvent),null==a||a(e)},onKeyUp:function(e){t.localHotkeysEvents.handleKeyUp(e.nativeEvent),null==s||s(e)},tabIndex:o})}}return n},t}(e)).displayName="HotkeysTarget("+ii(e)+")",t}var Gs,Us=function(e){var t=e.globalGroupName,n=void 0===t?"Global":t,r=e.hotkeys,o=(0,Jr.__rest)(e,["globalGroupName","hotkeys"]);return $r.createElement(va,(0,Jr.__assign)({},o,{className:pi()(Wt,o.className)}),$r.createElement("div",{className:Xe},$r.createElement(Ds,null,r.map((function(e,t){return $r.createElement(Ps,(0,Jr.__assign)({key:t},e,{group:!0===e.global&&null==e.group?n:e.group}))})))))},Ks={hotkeys:[],isDialogOpen:!1},Vs=null===(Gs=$r.createContext)||void 0===Gs?void 0:Gs.call($r,[Ks,function(){return null}]),Ws=function(e,t){switch(t.type){case"ADD_HOTKEYS":for(var n=[],r=0,o=t.payload;r<o.length;r++){for(var i=o[r],a=!0,s=0,l=e.hotkeys;s<l.length;s++){var u=l[s];a&&(a=!Uo(i,u,{exclude:["onKeyDown","onKeyUp"]}))}a&&n.push(i)}return(0,Jr.__assign)((0,Jr.__assign)({},e),{hotkeys:(0,Jr.__spreadArrays)(e.hotkeys,n)});case"REMOVE_HOTKEYS":return(0,Jr.__assign)((0,Jr.__assign)({},e),{hotkeys:e.hotkeys.filter((function(e){return-1===t.payload.indexOf(e)}))});case"OPEN_DIALOG":return(0,Jr.__assign)((0,Jr.__assign)({},e),{isDialogOpen:!0});case"CLOSE_DIALOG":return(0,Jr.__assign)((0,Jr.__assign)({},e),{isDialogOpen:!1});default:return e}},zs=function(e){var t,n=e.children,r=e.dialogProps,o=e.renderDialog,i=e.value,a=null!=i,s=null!=i?i:$r.useReducer(Ws,Ks),l=s[0],u=s[1],c=$r.useCallback((function(){return u({type:"CLOSE_DIALOG"})}),[]),p=null!==(t=null==o?void 0:o(l,{handleDialogClose:c}))&&void 0!==t?t:$r.createElement(Us,(0,Jr.__assign)({},r,{isOpen:l.isDialogOpen,hotkeys:l.hotkeys,onClose:c}));return $r.createElement(Vs.Provider,{value:[l,u]},n,a?void 0:p)};function Ys(e,t){void 0===t&&(t={});var n=t.document,r=void 0===n?function(){if("undefined"!=typeof window)return window.document}():n,o=t.showDialogKeyCombo,i=void 0===o?"?":o,a=$r.useMemo((function(){return e.filter((function(e){return!e.global})).map((function(e){return{combo:Ns(e.combo),config:e}}))}),[e]),s=$r.useMemo((function(){return e.filter((function(e){return e.global})).map((function(e){return{combo:Ns(e.combo),config:e}}))}),[e]),l=$r.useContext(Vs)[1];$r.useEffect((function(){var e=(0,Jr.__spreadArrays)(s.map((function(e){return e.config})),a.map((function(e){return e.config})));return l({type:"ADD_HOTKEYS",payload:e}),function(){return l({type:"REMOVE_HOTKEYS",payload:e})}}),[e]);var u=function(e,t,n,r){for(var o,i,l=qs(r),u=0,c=e?s:a;u<c.length;u++){var p=c[u],d=p.config,h=d.allowInInput,f=void 0!==h&&h,m=d.disabled,v=void 0!==m&&m,E=d.preventDefault,y=void 0!==E&&E,g=d.stopPropagation,_=void 0!==g&&g;!(l&&!f||v)&&Ts(p.combo,t)&&(y&&r.preventDefault(),_&&(r.isPropagationStopped=!0,r.stopPropagation()),null===(i=(o=p.config)[n])||void 0===i||i.call(o,r))}},c=$r.useCallback((function(e){var t=Os(e);!qs(e)&&Ts(Ns(i),t)?l({type:"OPEN_DIALOG"}):u(!0,Os(e),"onKeyDown",e)}),[s]),p=$r.useCallback((function(e){return u(!0,Os(e),"onKeyUp",e)}),[s]),d=$r.useCallback((function(e){return u(!1,Os(e.nativeEvent),"onKeyDown",e.nativeEvent)}),[a]),h=$r.useCallback((function(e){return u(!1,Os(e.nativeEvent),"onKeyUp",e.nativeEvent)}),[a]);return $r.useEffect((function(){return r.addEventListener("keydown",c),r.addEventListener("keyup",p),function(){r.removeEventListener("keydown",c),r.removeEventListener("keyup",p)}}),[c,p]),{handleKeyDown:d,handleKeyUp:h}}function qs(e){var t=e.target;if(null==t||null==t.closest)return!1;var n=t.closest("input, textarea, [contenteditable=true]");if(null==n)return!1;if("input"===n.tagName.toLowerCase()){var r=n.type;if("checkbox"===r||"radio"===r)return!1}return!n.readOnly}var js=function(e){var t=e.children,n=e.hotkeys,r=e.options,o=Ys(n,r),i=o.handleKeyDown,a=o.handleKeyUp;return $r.useEffect((function(){ro("production")||"function"!=typeof t&&n.some((function(e){return!e.global}))&&console.error("[Blueprint] <HotkeysTarget2> was configured with local hotkeys, but you did not use the generated event handlers to bind their event handlers. Try using a render function as the child of this component.")}),[n]),"function"==typeof t?t({handleKeyDown:i,handleKeyUp:a}):t},Xs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,Jr.__rest)(e,["className"]);return $r.createElement("div",(0,Jr.__assign)({className:pi()(cn,t)},n))},t.displayName=yo+".NavbarDivider",(0,Jr.__decorate)([vi],t)}(fo),Qs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.align,n=e.children,r=e.className,o=(0,Jr.__rest)(e,["align","children","className"]),i=pi()(ln,Wr(t),r);return $r.createElement("div",(0,Jr.__assign)({className:i},o),n)},t.displayName=yo+".NavbarGroup",t.defaultProps={align:O.LEFT},(0,Jr.__decorate)([vi],t)}(fo),Zs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=(0,Jr.__rest)(e,["children","className"]);return $r.createElement("div",(0,Jr.__assign)({className:pi()(un,n)},r),t)},t.displayName=yo+".NavbarHeading",(0,Jr.__decorate)([vi],t)}(fo),Js=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.children,r=t.className,o=t.fixedToTop,i=(0,Jr.__rest)(t,["children","className","fixedToTop"]),a=pi()(sn,((e={})[H]=o,e),r);return $r.createElement("div",(0,Jr.__assign)({className:a},i),n)},t.displayName=yo+".Navbar",t.Divider=Xs,t.Group=Qs,t.Heading=Zs,(0,Jr.__decorate)([vi],t)}(fo),$s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.action,n=e.children,r=e.className,o=e.description,i=e.title;return $r.createElement("div",{className:pi()(pn,r)},this.maybeRenderVisual(),i&&$r.createElement(sa,null,i),o&&oi(o,"div"),t,n)},t.prototype.maybeRenderVisual=function(){var e=this.props.icon;return null==e?null:$r.createElement("div",{className:dn},$r.createElement(Qi,{icon:e,size:3*qi.LARGE}))},t.displayName=yo+".NonIdealState",(0,Jr.__decorate)([vi],t)}(fo),el=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClose=function(){return t.props.onClose(t.props.panel)},t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.panel,n=e.onOpen;return $r.createElement("div",{className:Sn},this.maybeRenderHeader(),$r.createElement(t.component,(0,Jr.__assign)({openPanel:n,closePanel:this.handleClose},t.props)))},t.prototype.maybeRenderHeader=function(){return this.props.showHeader?$r.createElement("div",{className:In},$r.createElement("span",null,this.maybeRenderBack()),$r.createElement(_a,{className:Te,ellipsize:!0,title:this.props.panel.htmlTitle},this.props.panel.title),$r.createElement("span",null)):null},t.prototype.maybeRenderBack=function(){return void 0===this.props.previousPanel?null:$r.createElement(ea,{"aria-label":"Back",className:bn,icon:"chevron-left",minimal:!0,onClick:this.handleClose,small:!0,text:this.props.previousPanel.title,title:this.props.previousPanel.htmlTitle})},(0,Jr.__decorate)([vi],t)}(fo),tl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={direction:"push",stack:null!=t.props.stack?t.props.stack.slice().reverse():void 0!==t.props.initialPanel?[t.props.initialPanel]:[]},t.renderPanel=function(e,n){var r=t.props,o=r.renderActivePanelOnly,i=r.showPanelHeader,a=void 0===i||i,s=t.state.stack,l=s.length-n,u=o?s.length:l;return $r.createElement(yi.CSSTransition,{classNames:Rn,key:u,timeout:400},$r.createElement(el,{onClose:t.handlePanelClose,onOpen:t.handlePanelOpen,panel:e,previousPanel:s[n+1],showHeader:a}))},t.handlePanelClose=function(e){var n,r,o=t.state.stack;o[0]!==e||o.length<=1||(null===(r=(n=t.props).onClose)||void 0===r||r.call(n,e),null==t.props.stack&&t.setState((function(e){return{direction:"pop",stack:e.stack.slice(1)}})))},t.handlePanelOpen=function(e){var n,r;null===(r=(n=t.props).onOpen)||void 0===r||r.call(n,e),null==t.props.stack&&t.setState((function(t){return{direction:"push",stack:(0,Jr.__spreadArrays)([e],t.stack)}}))},t}return(0,Jr.__extends)(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.props.stack!==t.stack&&null!=t.stack&&this.setState({stack:this.props.stack.slice().reverse()}),(null!=this.props.stack?this.props.stack.length:0)!==(null!=t.stack?t.stack.length:0)&&null!=t.stack&&this.setState({direction:t.stack.length-this.props.stack.length<0?"push":"pop"})},t.prototype.render=function(){var e=pi()(Rn,Rn+"-"+this.state.direction,this.props.className);return $r.createElement(yi.TransitionGroup,{className:e,component:"div"},this.renderPanels())},t.prototype.validateProps=function(e){(null==e.initialPanel&&null==e.stack||null!=e.initialPanel&&null!=e.stack)&&console.error("[Blueprint] <PanelStack> requires exactly one of initialPanel and stack prop"),null!=e.stack&&0===e.stack.length&&console.error("[Blueprint] <PanelStack> requires at least one panel in the stack")},t.prototype.renderPanels=function(){var e=this.props.renderActivePanelOnly,t=void 0===e||e,n=this.state.stack;return 0===n.length?null:(t?[n[0]]:n).map(this.renderPanel).reverse()},(0,Jr.__decorate)([vi],t)}(fo),nl=function(e){var t=$r.useCallback((function(){return e.onClose(e.panel)}),[e.onClose,e.panel]),n=void 0===e.previousPanel?null:$r.createElement(ea,{"aria-label":"Back",className:bn,icon:"chevron-left",minimal:!0,onClick:t,small:!0,text:e.previousPanel.title,title:e.previousPanel.htmlTitle}),r=$r.useMemo((function(){return function(){return e.panel.renderPanel((0,Jr.__assign)({closePanel:t,openPanel:e.onOpen},e.panel.props))}}),[e.panel,e.onOpen]);return $r.createElement("div",{className:Ln},e.showHeader&&$r.createElement("div",{className:Pn},$r.createElement("span",null,n),$r.createElement(_a,{className:Te,ellipsize:!0,title:e.panel.htmlTitle},e.panel.title),$r.createElement("span",null)),$r.createElement(r,null))};nl.displayName=yo+".PanelView2";var rl=function(e){var t=e.renderActivePanelOnly,n=void 0===t||t,r=e.showPanelHeader,o=void 0===r||r,i=e.stack,a=$r.useState("push"),s=a[0],l=a[1],u=$r.useState(void 0!==e.initialPanel?[e.initialPanel]:[]),c=u[0],p=u[1],d=$r.useMemo((function(){return null!=i?i.slice().reverse():c}),[c,i]),h=$r.useRef(d.length);$r.useEffect((function(){d.length!==h.current&&l(d.length-h.current<0?"pop":"push"),h.current=d.length}),[d]);var f=$r.useCallback((function(t){var n;null===(n=e.onOpen)||void 0===n||n.call(e,t),null==e.stack&&p((function(e){return(0,Jr.__spreadArrays)([t],e)}))}),[e.onOpen]),m=$r.useCallback((function(t){var n;d[0]!==t||d.length<=1||(null===(n=e.onClose)||void 0===n||n.call(e,t),null==e.stack&&p((function(e){return e.slice(1)})))}),[d,e.onClose]);if(0===d.length)return null;var v=(n?[d[0]]:d).map((function(e,t){var r=d.length-t,i=n?d.length:r;return $r.createElement(yi.CSSTransition,{classNames:An,key:i,timeout:400},$r.createElement(nl,{onClose:m,onOpen:f,panel:e,previousPanel:d[t+1],showHeader:o}))})).reverse(),E=pi()(An,An+"-"+s,e.className);return $r.createElement(yi.TransitionGroup,{className:E,component:"div"},v)};rl.displayName=yo+".PanelStack2";var ol=n(722),il=(0,Jr.__assign)((0,Jr.__assign)({},b),{AUTO:"auto",AUTO_END:"auto-end",AUTO_START:"auto-start"}),al=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.animate,r=void 0===n||n,o=t.className,i=t.intent,a=t.stripes,s=void 0===a||a,l=t.value,u=pi()(zn,qr(i),((e={})[jn]=!r,e[qn]=!s,e),o),c=null==l?void 0:100*ao(l,0,1),p=null==c?void 0:c+"%";return $r.createElement("div",{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":null==c?void 0:Math.round(c),className:u,role:"progressbar"},$r.createElement("div",{className:Yn,style:{width:p}}))},t.displayName=yo+".ProgressBar",(0,Jr.__decorate)([vi],t)}(fo),sl={FULL:"full",START:"start",END:"end"},ll={LOCK:"lock",PUSH:"push",NONE:"none"};function ul(e){return(100*e).toFixed(2)+"%"}function cl(e,t,n,r){for(var o=t<n?1:-1,i=t;i!==n+o;i+=o)e[i]=r}var pl=["max","min","stepSize","tickSize","value"],dl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isMoving:!1},t.handleElement=null,t.refHandlers={handle:function(e){return t.handleElement=e}},t.beginHandleMovement=function(e){document.addEventListener("mousemove",t.handleHandleMovement),document.addEventListener("mouseup",t.endHandleMovement),t.setState({isMoving:!0}),t.changeValue(t.clientToValue(t.mouseEventClientOffset(e)))},t.beginHandleTouchMovement=function(e){document.addEventListener("touchmove",t.handleHandleTouchMovement),document.addEventListener("touchend",t.endHandleTouchMovement),document.addEventListener("touchcancel",t.endHandleTouchMovement),t.setState({isMoving:!0}),t.changeValue(t.clientToValue(t.touchEventClientOffset(e)))},t.getStyleProperties=function(){if(null==t.handleElement)return{};var e=t.props,n=e.min,r=void 0===n?0:n,o=e.tickSizeRatio,i=e.value,a=e.vertical,s=t.getHandleMidpointAndOffset(t.handleElement,!0).handleMidpoint,l="calc("+ul((i-r)*o)+" - "+s+"px)";return a?{bottom:l}:{left:l}},t.endHandleMovement=function(e){t.handleMoveEndedAt(t.mouseEventClientOffset(e))},t.endHandleTouchMovement=function(e){t.handleMoveEndedAt(t.touchEventClientOffset(e))},t.handleMoveEndedAt=function(e){var n,r;t.removeDocumentEventListeners(),t.setState({isMoving:!1});var o=t.changeValue(t.clientToValue(e));null===(r=(n=t.props).onRelease)||void 0===r||r.call(n,o)},t.handleHandleMovement=function(e){t.handleMovedTo(t.mouseEventClientOffset(e))},t.handleHandleTouchMovement=function(e){t.handleMovedTo(t.touchEventClientOffset(e))},t.handleMovedTo=function(e){t.state.isMoving&&!t.props.disabled&&t.changeValue(t.clientToValue(e))},t.handleKeyDown=function(e){var n=t.props,r=n.stepSize,o=n.value,i=e.which;i===Fo||i===xo?(t.changeValue(o-r),e.preventDefault()):i!==wo&&i!==Bo||(t.changeValue(o+r),e.preventDefault())},t.handleKeyUp=function(e){var n,r;[wo,Fo,xo,Bo].indexOf(e.which)>=0&&(null===(r=(n=t.props).onRelease)||void 0===r||r.call(n,t.props.value))},t}return(0,Jr.__extends)(t,e),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.disabled,o=t.label,i=this.state.isMoving;return $r.createElement("span",{className:pi()($n,(e={},e[L]=i,e),n),onKeyDown:r?void 0:this.handleKeyDown,onKeyUp:r?void 0:this.handleKeyUp,onMouseDown:r?void 0:this.beginHandleMovement,onTouchStart:r?void 0:this.beginHandleTouchMovement,ref:this.refHandlers.handle,style:this.getStyleProperties(),tabIndex:0},null==o?null:$r.createElement("span",{className:er},o))},t.prototype.componentWillUnmount=function(){this.removeDocumentEventListeners()},t.prototype.clientToValue=function(e){var t=this.props,n=t.stepSize,r=t.tickSize,o=t.value,i=t.vertical;if(null==this.handleElement)return o;var a=(i?window.innerHeight-e:e)-this.getHandleElementCenterPixel(this.handleElement);return isNaN(a)?o:o+Math.round(a/(r*n))*n},t.prototype.mouseEventClientOffset=function(e){return this.props.vertical?e.clientY:e.clientX},t.prototype.touchEventClientOffset=function(e){var t=e.changedTouches[0];return this.props.vertical?t.clientY:t.clientX},t.prototype.validateProps=function(e){for(var t=0,n=pl;t<n.length;t++){var r=n[t];if("number"!=typeof e[r])throw new Error("[Blueprint] <Handle> requires number value for "+r+" prop")}},t.prototype.changeValue=function(e,t){return void 0===t&&(t=this.props.onChange),e=this.clamp(e),isNaN(e)||this.props.value===e||null==t||t(e),e},t.prototype.clamp=function(e){return ao(e,this.props.min,this.props.max)},t.prototype.getHandleElementCenterPixel=function(e){var t=this.getHandleMidpointAndOffset(e),n=t.handleMidpoint;return t.handleOffset+n},t.prototype.getHandleMidpointAndOffset=function(e,t){if(void 0===t&&(t=!1),null==e)return{handleMidpoint:0,handleOffset:0};var n=this.props.vertical,r=e.getBoundingClientRect(),o=n?t?"width":"height":t?"height":"width",i=n?window.innerHeight-(r.top+r[o]):r.left;return{handleMidpoint:r[o]/2,handleOffset:i}},t.prototype.removeDocumentEventListeners=function(){document.removeEventListener("mousemove",this.handleHandleMovement),document.removeEventListener("mouseup",this.endHandleMovement),document.removeEventListener("touchmove",this.handleHandleTouchMovement),document.removeEventListener("touchend",this.endHandleTouchMovement),document.removeEventListener("touchcancel",this.endHandleTouchMovement)},t.displayName=yo+".SliderHandle",(0,Jr.__decorate)([vi],t)}(fo),hl=function(){return null};hl.displayName=yo+".MultiSliderHandle";var fl,ml=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={labelPrecision:vl(t.props),tickSize:0,tickSizeRatio:0},t.handleElements=[],t.trackElement=null,t.addHandleRef=function(e){null!=e&&t.handleElements.push(e)},t.maybeHandleTrackClick=function(e){if(t.canHandleTrackEvent(e)){var n=t.nearestHandleForValue(t.handleElements,(function(t){return t.mouseEventClientOffset(e)}));n&&n.beginHandleMovement(e)}},t.maybeHandleTrackTouch=function(e){if(t.canHandleTrackEvent(e)){var n=t.nearestHandleForValue(t.handleElements,(function(t){return t.touchEventClientOffset(e)}));n&&n.beginHandleTouchMovement(e)}},t.canHandleTrackEvent=function(e){var n=e.target;return!t.props.disabled&&null==n.closest("."+$n)},t.getHandlerForIndex=function(e,n){return function(r){null==n||n(t.getNewHandleValues(r,e))}},t.handleChange=function(e){var n,r,o=El(t.props),i=o.map((function(e){return e.value}));Go(e,i)||(null===(r=(n=t.props).onChange)||void 0===r||r.call(n,e),o.forEach((function(t,n){var r;i[n]!==e[n]&&(null===(r=t.onChange)||void 0===r||r.call(t,e[n]))})))},t.handleRelease=function(e){var n,r,o=El(t.props);null===(r=(n=t.props).onRelease)||void 0===r||r.call(n,e),o.forEach((function(t,n){var r;null===(r=t.onRelease)||void 0===r||r.call(t,e[n])}))},t}var n;return(0,Jr.__extends)(t,e),n=t,t.getDerivedStateFromProps=function(e){return{labelPrecision:n.getLabelPrecision(e)}},t.getLabelPrecision=function(e){var t=e.labelPrecision,n=e.stepSize;return null==t?so(n):t},t.prototype.getSnapshotBeforeUpdate=function(e){var t=El(e);return El(this.props).length!==t.length&&(this.handleElements=[]),null},t.prototype.render=function(){var e,t=this,n=pi()(Zn,((e={})[B]=this.props.disabled,e[Zn+"-unlabeled"]=!1===this.props.labelRenderer,e[X]=this.props.vertical,e),this.props.className);return $r.createElement("div",{className:n,onMouseDown:this.maybeHandleTrackClick,onTouchStart:this.maybeHandleTrackTouch},$r.createElement("div",{className:tr,ref:function(e){return t.trackElement=e}},this.renderTracks()),$r.createElement("div",{className:Jn},this.renderLabels()),this.renderHandles())},t.prototype.componentDidMount=function(){this.updateTickSize()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateTickSize()},t.prototype.validateProps=function(e){if(e.stepSize<=0)throw new Error("[Blueprint] <Slider> stepSize must be greater than zero.");if(void 0!==e.labelStepSize&&void 0!==e.labelValues)throw new Error("[Blueprint] <MultiSlider> labelStepSize and labelValues prop are mutually exclusive, with labelStepSize taking priority.");if(void 0!==e.labelStepSize&&e.labelStepSize<=0)throw new Error("[Blueprint] <Slider> labelStepSize must be greater than zero.");var t=!1;if($r.Children.forEach(e.children,(function(e){e&&!ai(e,n.Handle)&&(t=!0)})),t)throw new Error("[Blueprint] <MultiSlider> children must be <SliderHandle>s or <SliderTrackStop>s")},t.prototype.formatLabel=function(e,t){void 0===t&&(t=!1);var n=this.props.labelRenderer;return!1===n?void 0:jo(n)?n(e,{isHandleTooltip:t}):e.toFixed(this.state.labelPrecision)},t.prototype.renderLabels=function(){var e=this;if(!1===this.props.labelRenderer)return null;var t=this.getLabelValues(),n=this.props,r=n.max,o=n.min;return t.map((function(t,n){var i=ul((t-o)/(r-o)),a=e.props.vertical?{bottom:i}:{left:i};return $r.createElement("div",{className:er,key:n,style:a},e.formatLabel(t))}))},t.prototype.renderTracks=function(){var e=yl(this.props);e.push({value:this.props.max});for(var t={value:this.props.min},n=[],r=0;r<e.length;r++){var o=e[r];n.push(this.renderTrackFill(r,t,o)),t=o}return n},t.prototype.renderTrackFill=function(e,t,n){var r=[this.getOffsetRatio(t.value),this.getOffsetRatio(n.value)].sort((function(e,t){return e-t})),o=r[0],i=r[1],a=ul(o),s=ul(1-i),l=this.props.vertical?{bottom:a,top:s,left:0}:{left:a,right:s,top:0},u=(0,Jr.__assign)((0,Jr.__assign)({},l),t.trackStyleAfter||n.trackStyleBefore||{}),c=pi()(nr,qr(this.getTrackIntent(t,n)));return $r.createElement("div",{key:"track-"+e,className:c,style:u})},t.prototype.renderHandles=function(){var e=this,t=this.props,n=t.disabled,r=t.max,o=t.min,i=t.stepSize,a=t.vertical,s=El(this.props);return 0===s.length?null:s.map((function(t,l){var u,c=t.value,p=t.type,d=t.className;return $r.createElement(dl,{className:pi()((u={},u[rr]=p===sl.START,u[or]=p===sl.END,u),d),disabled:n,key:l+"-"+s.length,label:e.formatLabel(c,!0),max:r,min:o,onChange:e.getHandlerForIndex(l,e.handleChange),onRelease:e.getHandlerForIndex(l,e.handleRelease),ref:e.addHandleRef,stepSize:i,tickSize:e.state.tickSize,tickSizeRatio:e.state.tickSizeRatio,value:c,vertical:a})}))},t.prototype.nearestHandleForValue=function(e,t){return function(e,t){if(0!==e.length){for(var n=e[0],r=t(n),o=1;o<e.length;o++){var i=e[o],a=t(i);a<r&&(n=i,r=a)}return n}}(e,(function(e){var n=t(e),r=e.clientToValue(n),o=e.props.value;return Math.abs(r-o)}))},t.prototype.getNewHandleValues=function(e,t){var n=El(this.props).map((function(e){return e.value})),r=n.slice();r[t]=e,r.sort((function(e,t){return e-t}));var o=r.indexOf(e),i=this.findFirstLockedHandleIndex(t,o);return-1!==i?(cl(n,t,i,n[i]),n):(cl(r,t,o,e),r)},t.prototype.findFirstLockedHandleIndex=function(e,t){for(var n=e<t?1:-1,r=El(this.props),o=e+n;o!==t+n;o+=n)if(r[o].interactionKind!==ll.PUSH)return o;return-1},t.prototype.getLabelValues=function(){var e=this.props,t=e.labelStepSize,n=e.labelValues,r=e.min,o=e.max,i=[];if(void 0!==n)i=n;else for(var a=r;a<o||io(a,o);a+=null!=t?t:1)i.push(a);return i},t.prototype.getOffsetRatio=function(e){return ao((e-this.props.min)*this.state.tickSizeRatio,0,1)},t.prototype.getTrackIntent=function(e,t){return this.props.showTrackFill?void 0!==e.intentAfter?e.intentAfter:void 0!==t&&void 0!==t.intentBefore?t.intentBefore:this.props.defaultTrackIntent:I.NONE},t.prototype.updateTickSize=function(){if(null!=this.trackElement){var e=this.props.vertical?this.trackElement.clientHeight:this.trackElement.clientWidth,t=1/(this.props.max-this.props.min),n=e*t;this.setState({tickSize:n,tickSizeRatio:t})}},t.defaultSliderProps={disabled:!1,max:10,min:0,showTrackFill:!0,stepSize:1,vertical:!1},t.defaultProps=(0,Jr.__assign)((0,Jr.__assign)({},n.defaultSliderProps),{defaultTrackIntent:I.NONE}),t.displayName=yo+".MultiSlider",t.Handle=hl,n=(0,Jr.__decorate)([vi],t)}(fo);function vl(e){var t=e.labelPrecision,n=e.stepSize,r=void 0===n?ml.defaultSliderProps.stepSize:n;return null==t?so(r):t}function El(e){return yl(e,(function(e){return e.interactionKind!==ll.NONE}))}function yl(e,t){var n=e.children;void 0===t&&(t=function(){return!0});var r=$r.Children.map(n,(function(e){return ai(e,ml.Handle)&&t(e.props)?e.props:null})),o=null!=r?r:[];return(o=o.filter((function(e){return null!==e}))).sort((function(e,t){return e.value-t.value})),o}!function(e){e[e.START=0]="START",e[e.END=1]="END"}(fl||(fl={}));var gl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.value,n=(0,Jr.__rest)(e,["value"]);return $r.createElement(ml,(0,Jr.__assign)({},n),$r.createElement(ml.Handle,{value:t[fl.START],type:"start",intentAfter:n.intent}),$r.createElement(ml.Handle,{value:t[fl.END],type:"end"}))},t.prototype.validateProps=function(e){var t=e.value;if(null==t||null==t[fl.START]||null==t[fl.END])throw new Error("[Blueprint] <RangeSlider> value prop must be an array of two non-null numbers.")},t.defaultProps=(0,Jr.__assign)((0,Jr.__assign)({},ml.defaultSliderProps),{intent:I.PRIMARY,value:[0,10]}),t.displayName=yo+".RangeSlider",(0,Jr.__decorate)([vi],t)}(fo),_l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.initialValue,n=e.intent,r=e.value,o=e.onChange,i=e.onRelease,a=(0,Jr.__rest)(e,["initialValue","intent","value","onChange","onRelease"]);return $r.createElement(ml,(0,Jr.__assign)({},a),$r.createElement(ml.Handle,{value:r,intentAfter:r<t?n:void 0,intentBefore:r>=t?n:void 0,onChange:o,onRelease:i}),$r.createElement(ml.Handle,{value:t,interactionKind:"none"}))},t.defaultProps=(0,Jr.__assign)((0,Jr.__assign)({},ml.defaultSliderProps),{initialValue:0,intent:I.PRIMARY,value:0}),t.displayName=yo+".Slider",(0,Jr.__decorate)([vi],t)}(fo),Tl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.panel;return $r.createElement("div",{className:pi()(fr,t),role:"tablist"},n)},t.defaultProps={disabled:!1},t.displayName=yo+".Tab",(0,Jr.__decorate)([vi],t)}(fo),Nl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){return t.props.onClick(t.props.id,e)},t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,r=e.disabled,o=e.id,i=e.parentId,a=e.selected,s=e.title,l=(0,Jr.__rest)(e,["className","children","disabled","id","parentId","selected","title"]);return $r.createElement("div",(0,Jr.__assign)({},_o(l),{"aria-controls":Cl(i,o),"aria-disabled":r,"aria-expanded":a,"aria-selected":a,className:pi()(cr,t),"data-tab-id":o,id:Ol(i,o),onClick:r?void 0:this.handleClick,role:"tab",tabIndex:r?void 0:a?0:-1}),s,n)},t.displayName=yo+".TabTitle",(0,Jr.__decorate)([vi],t)}(fo);function Cl(e,t){return fr+"_"+e+"_"+t}function Ol(e,t){return cr+"-title_"+e+"_"+t}var Rl=function(){return $r.createElement("div",{className:mt})},Il="."+cr,bl=function(e){function t(t){var n=e.call(this,t)||this;n.tablistElement=null,n.refHandlers={tablist:function(e){return n.tablistElement=e}},n.handleKeyDown=function(e){var t,r=null===(t=document.activeElement)||void 0===t?void 0:t.closest(Il);if(null!=r){var o=n.getTabElements().filter((function(e){return"false"===e.getAttribute("aria-disabled")})),i=o.indexOf(r),a=n.getKeyCodeDirection(e);if(i>=0&&void 0!==a){e.preventDefault();var s=o.length;o[(i+a+s)%s].focus()}}},n.handleKeyPress=function(e){var t=e.target.closest(Il);null!=t&&Ho(e.which)&&(e.preventDefault(),t.click())},n.handleTabClick=function(e,t){var r,o;null===(o=(r=n.props).onChange)||void 0===o||o.call(r,e,n.state.selectedTabId,t),void 0===n.props.selectedTabId&&n.setState({selectedTabId:e})},n.renderTabPanel=function(e){var t=e.props,r=t.className,o=t.panel,i=t.id,a=t.panelClassName;if(void 0!==o)return $r.createElement("div",{"aria-labelledby":Ol(n.props.id,i),"aria-hidden":i!==n.state.selectedTabId,className:pi()(fr,r,a),id:Cl(n.props.id,i),key:i,role:"tabpanel"},o)},n.renderTabTitle=function(e){if(Al(e)){var t=e.props.id;return $r.createElement(Nl,(0,Jr.__assign)({},e.props,{parentId:n.props.id,onClick:n.handleTabClick,selected:t===n.state.selectedTabId}))}return e};var r=n.getInitialSelectedTabId();return n.state={selectedTabId:r},n}return(0,Jr.__extends)(t,e),t.getDerivedStateFromProps=function(e){var t=e.selectedTabId;return void 0!==t?{selectedTabId:t}:null},t.prototype.render=function(){var e,t,n=this.state,r=n.indicatorWrapperStyle,o=n.selectedTabId,i=$r.Children.map(this.props.children,this.renderTabTitle),a=this.getTabChildren().filter(this.props.renderActiveTabPanelOnly?function(e){return e.props.id===o}:function(){return!0}).map(this.renderTabPanel),s=this.props.animate?$r.createElement("div",{className:dr,style:r},$r.createElement("div",{className:pr})):null,l=pi()(mr,((e={})[X]=this.props.vertical,e),this.props.className),u=pi()(hr,((t={})[K]=this.props.large,t));return $r.createElement("div",{className:l},$r.createElement("div",{className:u,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,ref:this.refHandlers.tablist,role:"tablist"},s,i),a)},t.prototype.componentDidMount=function(){this.moveSelectionIndicator(!1)},t.prototype.componentDidUpdate=function(e,t){(this.state.selectedTabId!==t.selectedTabId||null!=t.selectedTabId&&!Go(this.getTabChildrenProps(e),this.getTabChildrenProps(),Uo))&&this.moveSelectionIndicator()},t.prototype.getInitialSelectedTabId=function(){var e=this.props,t=e.defaultSelectedTabId,n=e.selectedTabId;if(void 0!==n)return n;if(void 0!==t)return t;var r=this.getTabChildren();return 0===r.length?void 0:r[0].props.id},t.prototype.getKeyCodeDirection=function(e){return Sl(e,xo,wo)?-1:Sl(e,Bo,Fo)?1:void 0},t.prototype.getTabChildrenProps=function(e){return void 0===e&&(e=this.props),this.getTabChildren(e).map((function(e){return e.props}))},t.prototype.getTabChildren=function(e){return void 0===e&&(e=this.props),$r.Children.toArray(e.children).filter(Al)},t.prototype.getTabElements=function(e){return void 0===e&&(e=""),null==this.tablistElement?[]:Array.from(this.tablistElement.querySelectorAll(Il+e))},t.prototype.moveSelectionIndicator=function(e){if(void 0===e&&(e=!0),null!=this.tablistElement&&this.props.animate){var t=Il+'[data-tab-id="'+this.state.selectedTabId+'"]',n=this.tablistElement.querySelector(t),r={display:"none"};if(null!=n){var o=n.clientHeight,i=n.clientWidth,a=n.offsetLeft,s=n.offsetTop;r={height:o,transform:"translateX("+Math.floor(a)+"px) translateY("+Math.floor(s)+"px)",width:i},e||(r.transition="none")}this.setState({indicatorWrapperStyle:r})}},t.Expander=Rl,t.Tab=Tl,t.defaultProps={animate:!0,large:!1,renderActiveTabPanelOnly:!1,vertical:!1},t.displayName=yo+".Tabs",(0,Jr.__decorate)([vi],t)}(fo);function Sl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.indexOf(e.which)>=0}function Al(e){return ai(e,Tl)}var Pl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onRemoveClick=function(e){var n,r;null===(r=(n=t.props).onRemove)||void 0===r||r.call(n,e,t.props)},t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.active,r=t.children,o=t.className,i=t.fill,a=t.icon,s=t.intent,l=t.interactive,u=t.large,c=t.minimal,p=t.multiline,d=t.onRemove,h=t.rightIcon,f=t.round,m=t.tabIndex,v=void 0===m?0:m,E=t.htmlTitle,y=t.elementRef,g=(0,Jr.__rest)(t,["active","children","className","fill","icon","intent","interactive","large","minimal","multiline","onRemove","rightIcon","round","tabIndex","htmlTitle","elementRef"]),_=jo(d),T=pi()(vr,qr(s),((e={})[L]=n,e[F]=i,e[U]=l,e[K]=u,e[W]=c,e[q]=f,e),o),N=u||T.indexOf(K)>=0,C=_?$r.createElement("button",{"aria-label":"Remove",type:"button",className:Er,onClick:this.onRemoveClick,tabIndex:l?v:void 0},$r.createElement(Qi,{icon:"small-cross",size:N?qi.LARGE:qi.STANDARD})):null;return $r.createElement("span",(0,Jr.__assign)({},g,{className:T,tabIndex:l?v:void 0,ref:y}),$r.createElement(Qi,{icon:a}),!ni(r)&&$r.createElement(_a,{className:F,ellipsize:!p,tagName:"span",title:E},r),$r.createElement(Qi,{icon:h}),C)},t.displayName=yo+".Tag",(0,Jr.__decorate)([vi],t)}(fo),Dl=-1,Ll=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={activeIndex:Dl,inputValue:t.props.inputValue||"",isInputFocused:!1},t.inputElement=null,t.handleRef=bo(t,"inputElement",t.props.inputRef),t.addTags=function(e,n){void 0===n&&(n="default");var r=t.props,o=r.inputValue,i=r.onAdd,a=r.onChange,s=r.values,l=t.getValues(e),u=!1!==(null==i?void 0:i(l,n))&&void 0===o;jo(a)&&(u=!1!==a((0,Jr.__spreadArrays)(s,l))&&u),u&&t.setState({inputValue:""})},t.maybeRenderTag=function(e,n){if(!e)return null;var r=t.props,o=r.large,i=r.tagProps,a=jo(i)?i(e,n):i;return $r.createElement(Pl,(0,Jr.__assign)({active:n===t.state.activeIndex,"data-tag-index":n,key:e+"__"+n,large:o,onRemove:t.props.disabled?void 0:t.handleRemoveTag},a),e)},t.handleContainerClick=function(){var e;null===(e=t.inputElement)||void 0===e||e.focus()},t.handleContainerBlur=function(e){var n=e.currentTarget;t.requestAnimationFrame((function(){n.contains(document.activeElement)||(t.props.addOnBlur&&void 0!==t.state.inputValue&&t.state.inputValue.length>0&&t.addTags(t.state.inputValue,"blur"),t.setState({activeIndex:Dl,isInputFocused:!1}))}))},t.handleInputFocus=function(e){var n,r;t.setState({isInputFocused:!0}),null===(r=null===(n=t.props.inputProps)||void 0===n?void 0:n.onFocus)||void 0===r||r.call(n,e)},t.handleInputChange=function(e){var n,r,o,i;t.setState({activeIndex:Dl,inputValue:e.currentTarget.value}),null===(r=(n=t.props).onInputChange)||void 0===r||r.call(n,e),null===(i=null===(o=t.props.inputProps)||void 0===o?void 0:o.onChange)||void 0===i||i.call(o,e)},t.handleInputKeyDown=function(e){var n=e.currentTarget,r=n.selectionEnd,o=n.value,i=t.state.activeIndex,a=i;if(e.which===Po&&o.length>0)t.addTags(o,"default");else if(0===r&&t.props.values.length>0)if(e.which===xo||e.which===Bo){var s=t.getNextActiveIndex(e.which===Bo?1:-1);s!==i&&(e.stopPropagation(),a=s,t.setState({activeIndex:s}))}else e.which===So?t.handleBackspaceToRemove(e):e.which===Mo&&t.handleDeleteToRemove(e);t.invokeKeyPressCallback("onKeyDown",e,a)},t.handleInputKeyUp=function(e){t.invokeKeyPressCallback("onKeyUp",e,t.state.activeIndex)},t.handleInputPaste=function(e){var n=t.props.separator,r=e.clipboardData.getData("text");t.props.addOnPaste&&0!==r.length&&!1!==n&&1!==r.split(n).length&&(e.preventDefault(),t.addTags(r,"paste"))},t.handleRemoveTag=function(e){var n=+e.currentTarget.parentElement.getAttribute("data-tag-index");t.removeIndexFromValues(n)},t}return(0,Jr.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){return e.inputValue!==t.prevInputValueProp?{inputValue:e.inputValue,prevInputValueProp:e.inputValue}:null},t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.disabled,o=t.fill,i=t.inputProps,a=t.intent,s=t.large,l=t.leftIcon,u=t.placeholder,c=t.values,p=pi()(Nt,yr,((e={})[L]=this.state.isInputFocused,e[B]=r,e[F]=o,e[K]=s,e),qr(a),n),d=p.indexOf(K)>Dl,h=c.some((function(e){return!!e})),f=null==u||h?null==i?void 0:i.placeholder:u;return $r.createElement("div",{className:p,onBlur:this.handleContainerBlur,onClick:this.handleContainerClick},$r.createElement(Qi,{className:gr,icon:l,size:d?qi.LARGE:qi.STANDARD}),$r.createElement("div",{className:_r},c.map(this.maybeRenderTag),this.props.children,$r.createElement("input",(0,Jr.__assign)({value:this.state.inputValue},i,{onFocus:this.handleInputFocus,onChange:this.handleInputChange,onKeyDown:this.handleInputKeyDown,onKeyUp:this.handleInputKeyUp,onPaste:this.handleInputPaste,placeholder:f,ref:this.handleRef,className:pi()(Ct,null==i?void 0:i.className),disabled:r}))),this.props.rightElement)},t.prototype.componentDidUpdate=function(e){e.inputRef!==this.props.inputRef&&(Co(e.inputRef,null),this.handleRef=bo(this,"inputElement",this.props.inputRef),Co(this.props.inputRef,this.inputElement))},t.prototype.getNextActiveIndex=function(e){var t=this.state.activeIndex;return t===Dl?e<0?this.findNextIndex(this.props.values.length,-1):Dl:this.findNextIndex(t,e)},t.prototype.findNextIndex=function(e,t){for(var n=this.props.values,r=e+t;r>0&&r<n.length&&!n[r];)r+=t;return ao(r,0,n.length)},t.prototype.getValues=function(e){var t=this.props.separator;return(!1===t?[e]:e.split(t)).map((function(e){return e.trim()})).filter((function(e){return e.length>0}))},t.prototype.handleBackspaceToRemove=function(e){var t=this.state.activeIndex;this.setState({activeIndex:this.getNextActiveIndex(-1)}),this.isValidIndex(t)&&(e.stopPropagation(),this.removeIndexFromValues(t))},t.prototype.handleDeleteToRemove=function(e){var t=this.state.activeIndex;this.isValidIndex(t)&&(e.stopPropagation(),this.removeIndexFromValues(t))},t.prototype.removeIndexFromValues=function(e){var t=this.props,n=t.onChange,r=t.onRemove,o=t.values;null==r||r(o[e],e),jo(n)&&n(o.filter((function(t,n){return n!==e})))},t.prototype.invokeKeyPressCallback=function(e,t,n){var r,o,i,a;null===(o=(r=this.props)[e])||void 0===o||o.call(r,t,n===Dl?void 0:n),null===(a=(i=this.props.inputProps)[e])||void 0===a||a.call(i,t)},t.prototype.isValidIndex=function(e){return e!==Dl&&e<this.props.values.length},t.displayName=yo+".TagInput",t.defaultProps={addOnBlur:!1,addOnPaste:!0,inputProps:{},separator:/[,\n\r]/,tagProps:{}},(0,Jr.__decorate)([vi],t)}(fo),kl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleActionClick=function(e){var n,r;null===(r=null===(n=t.props.action)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,e),t.triggerDismiss(!1)},t.handleCloseClick=function(){return t.triggerDismiss(!1)},t.startTimeout=function(){t.clearTimeouts(),t.props.timeout>0&&t.setTimeout((function(){return t.triggerDismiss(!0)}),t.props.timeout)},t}return(0,Jr.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.icon,r=e.intent,o=e.message;return $r.createElement("div",{className:pi()(Tr,qr(r),t),onBlur:this.startTimeout,onFocus:this.clearTimeouts,onMouseEnter:this.clearTimeouts,onMouseLeave:this.startTimeout,tabIndex:0},$r.createElement(Qi,{icon:n}),$r.createElement("span",{className:Cr},o),$r.createElement(Sa,{minimal:!0},this.maybeRenderActionButton(),$r.createElement(ea,{"aria-label":"Close",icon:"cross",onClick:this.handleCloseClick})))},t.prototype.componentDidMount=function(){this.startTimeout()},t.prototype.componentDidUpdate=function(e){e.timeout!==this.props.timeout&&(this.props.timeout>0?this.startTimeout():this.clearTimeouts())},t.prototype.componentWillUnmount=function(){this.clearTimeouts()},t.prototype.maybeRenderActionButton=function(){var e=this.props.action;return null==e?void 0:$r.createElement(ta,(0,Jr.__assign)({},e,{intent:void 0,onClick:this.handleActionClick}))},t.prototype.triggerDismiss=function(e){var t,n;this.clearTimeouts(),null===(n=(t=this.props).onDismiss)||void 0===n||n.call(t,e)},t.defaultProps={className:"",message:"",timeout:5e3},t.displayName=yo+".Toast",(0,Jr.__decorate)([vi],t)}(fo),xl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={toasts:[]},t.toastId=0,t.renderToast=function(e){return $r.createElement(kl,(0,Jr.__assign)({},e,{onDismiss:t.getDismissHandler(e)}))},t.getDismissHandler=function(e){return function(n){t.dismiss(e.key,n)}},t.handleClose=function(e){e.which===Lo&&t.clear()},t}var n;return(0,Jr.__extends)(t,e),n=t,t.create=function(e,t){void 0===t&&(t=document.body),null==e||null==e.usePortal||ro("production")||console.warn("[Blueprint] Toaster.create() ignores inline prop as it always creates a new element.");var r=document.createElement("div");t.appendChild(r);var o=di.render($r.createElement(n,(0,Jr.__assign)({},e,{usePortal:!1})),r);if(null==o)throw new Error("[Blueprint] Toaster.create() is not supported inside React lifecycle methods in React 16. See usage example on the docs site.");return o},t.prototype.show=function(e,t){this.props.maxToasts&&this.dismissIfAtLimit();var n=this.createToastOptions(e,t);return void 0===t||this.isNewToastKey(t)?this.setState((function(e){return{toasts:(0,Jr.__spreadArrays)([n],e.toasts)}})):this.setState((function(e){return{toasts:e.toasts.map((function(e){return e.key===t?n:e}))}})),n.key},t.prototype.dismiss=function(e,t){void 0===t&&(t=!1),this.setState((function(n){return{toasts:n.toasts.filter((function(n){var r,o=n.key===e;return o&&(null===(r=n.onDismiss)||void 0===r||r.call(n,t)),!o}))}}))},t.prototype.clear=function(){this.state.toasts.forEach((function(e){var t;return null===(t=e.onDismiss)||void 0===t?void 0:t.call(e,!1)})),this.setState({toasts:[]})},t.prototype.getToasts=function(){return this.state.toasts},t.prototype.render=function(){var e=pi()(Nr,this.getPositionClasses(),this.props.className);return $r.createElement(Ci,{autoFocus:this.props.autoFocus,canEscapeKeyClose:this.props.canEscapeKeyClear,canOutsideClickClose:!1,className:e,enforceFocus:!1,hasBackdrop:!1,isOpen:this.state.toasts.length>0||null!=this.props.children,onClose:this.handleClose,transitionDuration:350,transitionName:Tr,usePortal:this.props.usePortal},this.state.toasts.map(this.renderToast,this),this.props.children)},t.prototype.validateProps=function(e){var t=e.maxToasts;if(void 0!==t&&t<1)throw new Error("[Blueprint] <Toaster> maxToasts is set to an invalid number, must be greater than 0")},t.prototype.isNewToastKey=function(e){return this.state.toasts.every((function(t){return t.key!==e}))},t.prototype.dismissIfAtLimit=function(){this.state.toasts.length===this.props.maxToasts&&this.dismiss(this.state.toasts[this.state.toasts.length-1].key)},t.prototype.createToastOptions=function(e,t){return void 0===t&&(t="toast-"+this.toastId++),(0,Jr.__assign)((0,Jr.__assign)({},e),{key:t})},t.prototype.getPositionClasses=function(){var e=this.props.position.split("-");return(0,Jr.__spreadArrays)(e.map((function(e){return Nr+"-"+e.toLowerCase()})),[Nr+"-"+(this.props.usePortal?"in-portal":"inline")])},t.displayName=yo+".Toaster",t.defaultProps={autoFocus:!1,canEscapeKeyClear:!0,position:b.TOP,usePortal:!0},n=(0,Jr.__decorate)([vi],t)}(fo),wl=xl,Bl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleCaretClick=function(e){var n;e.stopPropagation();var r=t.props,o=r.isExpanded,i=r.onCollapse,a=r.onExpand;null===(n=o?i:a)||void 0===n||n(t,e)},t.handleClick=function(e){var n,r;null===(r=(n=t.props).onClick)||void 0===r||r.call(n,t,e)},t.handleContentRef=function(e){var n,r;null===(r=(n=t.props).contentRef)||void 0===r||r.call(n,t,e)},t.handleContextMenu=function(e){var n,r;null===(r=(n=t.props).onContextMenu)||void 0===r||r.call(n,t,e)},t.handleDoubleClick=function(e){var n,r;null===(r=(n=t.props).onDoubleClick)||void 0===r||r.call(n,t,e)},t.handleMouseEnter=function(e){var n,r;null===(r=(n=t.props).onMouseEnter)||void 0===r||r.call(n,t,e)},t.handleMouseLeave=function(e){var n,r;null===(r=(n=t.props).onMouseLeave)||void 0===r||r.call(n,t,e)},t}return(0,Jr.__extends)(t,e),t.ofType=function(){return t},t.prototype.render=function(){var e,t=this.props,n=t.children,r=t.className,o=t.disabled,i=t.icon,a=t.isExpanded,s=t.isSelected,l=t.label,u=pi()(br,((e={})[B]=o,e[Mr]=s,e[kr]=a,e),r),c=pi()(Lr,Lr+"-"+this.props.depth),p=!0===o?{}:{onClick:this.handleClick,onContextMenu:this.handleContextMenu,onDoubleClick:this.handleDoubleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave};return $r.createElement("li",{className:u},$r.createElement("div",(0,Jr.__assign)({className:c,ref:this.handleContentRef},p),this.maybeRenderCaret(),$r.createElement(Qi,{className:xr,icon:i}),$r.createElement("span",{className:wr},l),this.maybeRenderSecondaryLabel()),$r.createElement(Da,{isOpen:a},n))},t.prototype.maybeRenderCaret=function(){var e=this.props,t=e.children,n=e.isExpanded,r=e.disabled,o=e.hasCaret;if(void 0===o?$r.Children.count(t)>0:o){var i=pi()(Sr,n?Dr:Ar),a=!0===r?void 0:this.handleCaretClick;return $r.createElement(Qi,{title:n?"Collapse group":"Expand group",className:i,onClick:a,icon:"chevron-right"})}return $r.createElement("span",{className:Pr})},t.prototype.maybeRenderSecondaryLabel=function(){return null!=this.props.secondaryLabel?$r.createElement("span",{className:Fr},this.props.secondaryLabel):void 0},t.displayName=yo+".TreeNode",t}($r.Component),Fl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.nodeRefs={},t.handleNodeCollapse=function(e,n){t.handlerHelper(t.props.onNodeCollapse,e,n)},t.handleNodeClick=function(e,n){t.handlerHelper(t.props.onNodeClick,e,n)},t.handleContentRef=function(e,n){null!=n?t.nodeRefs[e.props.id]=n:delete t.nodeRefs[e.props.id]},t.handleNodeContextMenu=function(e,n){t.handlerHelper(t.props.onNodeContextMenu,e,n)},t.handleNodeDoubleClick=function(e,n){t.handlerHelper(t.props.onNodeDoubleClick,e,n)},t.handleNodeExpand=function(e,n){t.handlerHelper(t.props.onNodeExpand,e,n)},t.handleNodeMouseEnter=function(e,n){t.handlerHelper(t.props.onNodeMouseEnter,e,n)},t.handleNodeMouseLeave=function(e,n){t.handlerHelper(t.props.onNodeMouseLeave,e,n)},t}return(0,Jr.__extends)(t,e),t.ofType=function(){return t},t.nodeFromPath=function(e,n){return 1===e.length?n[e[0]]:t.nodeFromPath(e.slice(1),n[e[0]].childNodes)},t.prototype.render=function(){return $r.createElement("div",{className:pi()(Ir,this.props.className)},this.renderNodes(this.props.contents,[],Hr))},t.prototype.getNodeContentElement=function(e){return this.nodeRefs[e]},t.prototype.renderNodes=function(e,t,n){var r=this;if(null==e)return null;var o=e.map((function(e,n){var o=t.concat(n),i=Bl.ofType();return $r.createElement(i,(0,Jr.__assign)({},e,{key:e.id,contentRef:r.handleContentRef,depth:o.length-1,onClick:r.handleNodeClick,onContextMenu:r.handleNodeContextMenu,onCollapse:r.handleNodeCollapse,onDoubleClick:r.handleNodeDoubleClick,onExpand:r.handleNodeExpand,onMouseEnter:r.handleNodeMouseEnter,onMouseLeave:r.handleNodeMouseLeave,path:o}),r.renderNodes(e.childNodes,o))}));return $r.createElement("ul",{className:pi()(Br,n)},o)},t.prototype.handlerHelper=function(e,n,r){jo(e)&&e(t.nodeFromPath(n.props.path,this.props.contents),n.props.path,r)},t.displayName=yo+".Tree",t}($r.Component),Ml=a},386:function(t){t.exports=e},957:function(e){e.exports=t},722:function(e){e.exports=n},888:function(e){e.exports=r},757:function(e){e.exports=o},72:function(e){e.exports=i},323:function(e){e.exports=a},1:function(e){e.exports=s},770:function(e){e.exports=l}},c={};function p(e){if(c[e])return c[e].exports;var t=c[e]={exports:{}};return u[e](t,t.exports,p),t.exports}return p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,{a:t}),t},p.d=function(e,t){for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p(566)}()}));
\No newline at end of file