From 3ad4949c0e7c43463db70bc7ff24837ea52621e4 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 19 Aug 2021 18:21:25 +0200 Subject: [PATCH] fix web tests --- mitmproxy/test/tflow.py | 47 +- mitmproxy/tools/web/static/app.css | 2 +- mitmproxy/tools/web/static/app.js | 103 ++- mitmproxy/tools/web/static/vendor.css | 6 +- test/mitmproxy/tools/web/test_app.py | 6 +- web/package-lock.json | 133 +-- web/package.json | 13 +- .../components/Command/CommandSpec.js | 11 +- .../__tests__/components/CommandBarSpec.tsx | 26 + .../components/ContentView/CodeEditorSpec.tsx | 14 - .../ContentView/ContentLoaderSpec.js | 74 -- .../ContentView/ContentViewOptionsSpec.js | 20 - .../components/ContentView/ContentViewSpec.js | 60 -- .../ContentView/DownloadContentButtonSpec.js | 15 - .../components/ContentView/MetaViewsSpec.js | 37 - .../ContentView/ShowFullContentButtonSpec.js | 22 - .../ContentView/UploadContentButtonSpec.js | 12 - .../ContentView/ViewSelectorSpec.tsx | 20 - .../__snapshots__/ContentLoaderSpec.js.snap | 11 - .../ContentViewOptionsSpec.js.snap | 41 - .../__snapshots__/ContentViewSpec.js.snap | 39 - .../DownloadContentButtonSpec.js.snap | 13 - .../__snapshots__/MetaViewsSpec.js.snap | 66 -- .../ShowFullContentButtonSpec.js.snap | 3 - .../UploadContentButtonSpec.js.snap | 19 - .../__snapshots__/ViewSelectorSpec.tsx.snap | 21 - .../__tests__/components/ContentViewSpec.js | 62 -- .../{EventLogSpec.js => EventLogSpec.tsx} | 0 .../components/FlowTable/FlowColumnsSpec.js | 137 --- .../components/FlowTable/FlowColumnsSpec.tsx | 98 ++ .../components/FlowTable/FlowRowSpec.tsx | 8 +- .../__snapshots__/FlowColumnsSpec.js.snap | 203 ----- .../__snapshots__/FlowColumnsSpec.tsx.snap | 310 +++++++ .../__snapshots__/FlowRowSpec.tsx.snap | 16 +- .../{FlowTableSpec.js => FlowTableSpec.tsx} | 0 .../components/FlowView/DetailsSpec.js | 69 -- .../components/FlowView/HeadersSpec.js | 132 --- .../components/FlowView/MessagesSpec.js | 146 --- .../__tests__/components/FlowView/NavSpec.js | 38 - .../components/FlowView/ToggleEditSpec.tsx | 21 - .../__snapshots__/DetailsSpec.js.snap | 591 ------------ .../__snapshots__/HeadersSpec.js.snap | 123 --- .../__snapshots__/MessagesSpec.js.snap | 496 ---------- .../FlowView/__snapshots__/NavSpec.js.snap | 35 - .../__snapshots__/ToggleEditSpec.tsx.snap | 35 - .../js/__tests__/components/FlowViewSpec.tsx | 29 + .../components/Header/FlowMenuSpec.js | 35 - .../components/Header/FlowMenuSpec.tsx | 8 + .../Header/__snapshots__/FileMenuSpec.js.snap | 2 +- .../Header/__snapshots__/FlowMenuSpec.js.snap | 120 --- .../__snapshots__/FlowMenuSpec.tsx.snap | 134 +++ .../Header/__snapshots__/MainMenuSpec.js.snap | 100 +- .../__snapshots__/OptionMenuSpec.js.snap | 15 +- .../ValueEditor/ValidateEditorSpec.js | 47 - .../components/ValueEditor/ValueEditorSpec.js | 155 ---- .../__snapshots__/ValidateEditorSpec.js.snap | 20 - .../__snapshots__/ValueEditorSpec.js.snap | 20 - .../__snapshots__/CommandBarSpec.tsx.snap | 111 +++ .../__snapshots__/ContentViewSpec.js.snap | 80 -- ...tLogSpec.js.snap => EventLogSpec.tsx.snap} | 0 ...bleSpec.js.snap => FlowTableSpec.tsx.snap} | 0 .../__snapshots__/FlowViewSpec.tsx.snap | 854 ++++++++++++++++++ .../components/common/DropdownSpec.tsx | 12 +- .../common/__snapshots__/ButtonSpec.js.snap | 3 +- .../__snapshots__/DropdownSpec.tsx.snap | 2 +- .../contentviews/CodeEditorSpec.tsx | 10 + .../contentviews/HttpMessageSpec.tsx | 60 ++ .../contentviews/LineRendererSpec.tsx | 28 + .../contentviews/ViewSelectorSpec.tsx | 15 + .../__snapshots__/CodeEditorSpec.tsx.snap | 0 .../__snapshots__/HttpMessageSpec.tsx.snap | 241 +++++ .../__snapshots__/LineRendererSpec.tsx.snap | 31 + .../__snapshots__/ViewSelectorSpec.tsx.snap | 66 ++ .../contentviews/useContentSpec.tsx | 31 + .../components/editors/ValidateEditorSpec.tsx | 27 + .../components/editors/ValueEditorSpec.tsx | 21 + .../__snapshots__/ValidateEditorSpec.tsx.snap | 12 + .../__snapshots__/ValueEditorSpec.tsx.snap | 12 + web/src/js/__tests__/ducks/_tflow.ts | 36 +- web/src/js/__tests__/ducks/eventLogSpec.js | 2 +- web/src/js/__tests__/ducks/flowsSpec.js | 226 ----- web/src/js/__tests__/ducks/flowsSpec.tsx | 197 ++++ web/src/js/__tests__/ducks/optionsSpec.js | 69 -- web/src/js/__tests__/ducks/optionsSpec.tsx | 40 + web/src/js/__tests__/ducks/tutils.ts | 49 +- web/src/js/__tests__/ducks/ui/flowSpec.js | 110 --- web/src/js/__tests__/ducks/ui/flowSpec.tsx | 20 + web/src/js/__tests__/ducks/ui/headerSpec.js | 33 - web/src/js/__tests__/ducks/ui/indexSpec.js | 1 - web/src/js/__tests__/ducks/ui/keyboardSpec.js | 2 +- web/src/js/__tests__/ducks/utils/storeSpec.js | 3 +- web/src/js/__tests__/test-utils.tsx | 4 +- web/src/js/__tests__/urlStateSpec.js | 7 +- web/src/js/__tests__/utilsSpec.js | 19 +- web/src/js/components/CommandBar.tsx | 2 +- .../js/components/FlowTable/FlowColumns.tsx | 14 +- web/src/js/components/FlowView.tsx | 4 +- web/src/js/components/FlowView/Connection.tsx | 1 + web/src/js/components/FlowView/Error.tsx | 1 + .../js/components/FlowView/HttpMessages.tsx | 2 + web/src/js/components/FlowView/Timing.tsx | 1 + web/src/js/components/FlowView/WebSocket.tsx | 1 + web/src/js/components/Header/FilterDocs.tsx | 4 +- web/src/js/components/Header/FlowMenu.tsx | 2 +- web/src/js/components/ProxyApp.tsx | 28 - web/src/js/components/common/Splitter.tsx | 6 +- .../components/common/ToggleInputButton.tsx | 4 +- .../components/contentviews/HttpMessage.tsx | 9 +- .../js/components/contentviews/useContent.ts | 4 +- .../js/components/editors/ValidateEditor.tsx | 6 +- web/src/js/components/editors/ValueEditor.tsx | 7 +- web/src/js/ducks/flows.ts | 14 +- web/src/js/ducks/ui/flow.ts | 2 +- web/src/js/ducks/utils/store.ts | 2 +- web/src/js/flow.ts | 2 +- web/src/js/flow/utils.ts | 3 +- 116 files changed, 2678 insertions(+), 3914 deletions(-) create mode 100644 web/src/js/__tests__/components/CommandBarSpec.tsx delete mode 100644 web/src/js/__tests__/components/ContentView/CodeEditorSpec.tsx delete mode 100644 web/src/js/__tests__/components/ContentView/ContentLoaderSpec.js delete mode 100644 web/src/js/__tests__/components/ContentView/ContentViewOptionsSpec.js delete mode 100644 web/src/js/__tests__/components/ContentView/ContentViewSpec.js delete mode 100644 web/src/js/__tests__/components/ContentView/DownloadContentButtonSpec.js delete mode 100644 web/src/js/__tests__/components/ContentView/MetaViewsSpec.js delete mode 100644 web/src/js/__tests__/components/ContentView/ShowFullContentButtonSpec.js delete mode 100644 web/src/js/__tests__/components/ContentView/UploadContentButtonSpec.js delete mode 100644 web/src/js/__tests__/components/ContentView/ViewSelectorSpec.tsx delete mode 100644 web/src/js/__tests__/components/ContentView/__snapshots__/ContentLoaderSpec.js.snap delete mode 100644 web/src/js/__tests__/components/ContentView/__snapshots__/ContentViewOptionsSpec.js.snap delete mode 100644 web/src/js/__tests__/components/ContentView/__snapshots__/ContentViewSpec.js.snap delete mode 100644 web/src/js/__tests__/components/ContentView/__snapshots__/DownloadContentButtonSpec.js.snap delete mode 100644 web/src/js/__tests__/components/ContentView/__snapshots__/MetaViewsSpec.js.snap delete mode 100644 web/src/js/__tests__/components/ContentView/__snapshots__/ShowFullContentButtonSpec.js.snap delete mode 100644 web/src/js/__tests__/components/ContentView/__snapshots__/UploadContentButtonSpec.js.snap delete mode 100644 web/src/js/__tests__/components/ContentView/__snapshots__/ViewSelectorSpec.tsx.snap delete mode 100644 web/src/js/__tests__/components/ContentViewSpec.js rename web/src/js/__tests__/components/{EventLogSpec.js => EventLogSpec.tsx} (100%) delete mode 100644 web/src/js/__tests__/components/FlowTable/FlowColumnsSpec.js create mode 100644 web/src/js/__tests__/components/FlowTable/FlowColumnsSpec.tsx delete mode 100644 web/src/js/__tests__/components/FlowTable/__snapshots__/FlowColumnsSpec.js.snap create mode 100644 web/src/js/__tests__/components/FlowTable/__snapshots__/FlowColumnsSpec.tsx.snap rename web/src/js/__tests__/components/{FlowTableSpec.js => FlowTableSpec.tsx} (100%) delete mode 100644 web/src/js/__tests__/components/FlowView/DetailsSpec.js delete mode 100644 web/src/js/__tests__/components/FlowView/HeadersSpec.js delete mode 100644 web/src/js/__tests__/components/FlowView/MessagesSpec.js delete mode 100644 web/src/js/__tests__/components/FlowView/NavSpec.js delete mode 100644 web/src/js/__tests__/components/FlowView/ToggleEditSpec.tsx delete mode 100644 web/src/js/__tests__/components/FlowView/__snapshots__/DetailsSpec.js.snap delete mode 100644 web/src/js/__tests__/components/FlowView/__snapshots__/HeadersSpec.js.snap delete mode 100644 web/src/js/__tests__/components/FlowView/__snapshots__/MessagesSpec.js.snap delete mode 100644 web/src/js/__tests__/components/FlowView/__snapshots__/NavSpec.js.snap delete mode 100644 web/src/js/__tests__/components/FlowView/__snapshots__/ToggleEditSpec.tsx.snap create mode 100644 web/src/js/__tests__/components/FlowViewSpec.tsx delete mode 100644 web/src/js/__tests__/components/Header/FlowMenuSpec.js create mode 100644 web/src/js/__tests__/components/Header/FlowMenuSpec.tsx delete mode 100644 web/src/js/__tests__/components/Header/__snapshots__/FlowMenuSpec.js.snap create mode 100644 web/src/js/__tests__/components/Header/__snapshots__/FlowMenuSpec.tsx.snap delete mode 100644 web/src/js/__tests__/components/ValueEditor/ValidateEditorSpec.js delete mode 100644 web/src/js/__tests__/components/ValueEditor/ValueEditorSpec.js delete mode 100644 web/src/js/__tests__/components/ValueEditor/__snapshots__/ValidateEditorSpec.js.snap delete mode 100644 web/src/js/__tests__/components/ValueEditor/__snapshots__/ValueEditorSpec.js.snap create mode 100644 web/src/js/__tests__/components/__snapshots__/CommandBarSpec.tsx.snap delete mode 100644 web/src/js/__tests__/components/__snapshots__/ContentViewSpec.js.snap rename web/src/js/__tests__/components/__snapshots__/{EventLogSpec.js.snap => EventLogSpec.tsx.snap} (100%) rename web/src/js/__tests__/components/__snapshots__/{FlowTableSpec.js.snap => FlowTableSpec.tsx.snap} (100%) create mode 100644 web/src/js/__tests__/components/__snapshots__/FlowViewSpec.tsx.snap create mode 100644 web/src/js/__tests__/components/contentviews/CodeEditorSpec.tsx create mode 100644 web/src/js/__tests__/components/contentviews/HttpMessageSpec.tsx create mode 100644 web/src/js/__tests__/components/contentviews/LineRendererSpec.tsx create mode 100644 web/src/js/__tests__/components/contentviews/ViewSelectorSpec.tsx rename web/src/js/__tests__/components/{ContentView => contentviews}/__snapshots__/CodeEditorSpec.tsx.snap (100%) create mode 100644 web/src/js/__tests__/components/contentviews/__snapshots__/HttpMessageSpec.tsx.snap create mode 100644 web/src/js/__tests__/components/contentviews/__snapshots__/LineRendererSpec.tsx.snap create mode 100644 web/src/js/__tests__/components/contentviews/__snapshots__/ViewSelectorSpec.tsx.snap create mode 100644 web/src/js/__tests__/components/contentviews/useContentSpec.tsx create mode 100644 web/src/js/__tests__/components/editors/ValidateEditorSpec.tsx create mode 100644 web/src/js/__tests__/components/editors/ValueEditorSpec.tsx create mode 100644 web/src/js/__tests__/components/editors/__snapshots__/ValidateEditorSpec.tsx.snap create mode 100644 web/src/js/__tests__/components/editors/__snapshots__/ValueEditorSpec.tsx.snap delete mode 100644 web/src/js/__tests__/ducks/flowsSpec.js create mode 100644 web/src/js/__tests__/ducks/flowsSpec.tsx delete mode 100644 web/src/js/__tests__/ducks/optionsSpec.js create mode 100644 web/src/js/__tests__/ducks/optionsSpec.tsx delete mode 100644 web/src/js/__tests__/ducks/ui/flowSpec.js create mode 100644 web/src/js/__tests__/ducks/ui/flowSpec.tsx delete mode 100644 web/src/js/__tests__/ducks/ui/headerSpec.js diff --git a/mitmproxy/test/tflow.py b/mitmproxy/test/tflow.py index fc477be9d..13e7bb606 100644 --- a/mitmproxy/test/tflow.py +++ b/mitmproxy/test/tflow.py @@ -1,4 +1,5 @@ import uuid +from typing import Literal, Union from mitmproxy import connection from mitmproxy import controller @@ -66,14 +67,8 @@ def twebsocketflow(messages=True, err=None, close_code=None, close_reason='') -> timestamp_start=946681202, timestamp_end=946681203, ) - flow.websocket = websocket.WebSocketData() - if messages is True: - flow.websocket.messages = [ - websocket.WebSocketMessage(Opcode.BINARY, True, b"hello binary", 946681203), - websocket.WebSocketMessage(Opcode.TEXT, True, b"hello text", 946681204), - websocket.WebSocketMessage(Opcode.TEXT, False, b"it's me", 946681205), - ] + flow.websocket = twebsocket() flow.websocket.close_reason = close_reason @@ -91,15 +86,15 @@ def twebsocketflow(messages=True, err=None, close_code=None, close_reason='') -> return flow -def tflow(client_conn=True, server_conn=True, req=True, resp=None, err=None) -> http.HTTPFlow: - """ - @type client_conn: bool | None | mitmproxy.proxy.connection.ClientConnection - @type server_conn: bool | None | mitmproxy.proxy.connection.ServerConnection - @type req: bool | None | mitmproxy.proxy.protocol.http.Request - @type resp: bool | None | mitmproxy.proxy.protocol.http.Response - @type err: bool | None | mitmproxy.proxy.protocol.primitives.Error - @return: mitmproxy.proxy.protocol.http.HTTPFlow - """ +def tflow( + client_conn: Union[Literal[True], None, connection.Client] = True, + server_conn: Union[Literal[True], None, connection.Server] = True, + req: Union[Literal[True], None, http.Request] = True, + resp: Union[Literal[True], None, http.Response] = None, + err: Union[Literal[True], None, flow.Error] = None, + ws: Union[Literal[True], None, websocket.WebSocketData] = None, +) -> http.HTTPFlow: + """Create a flow for testing.""" if client_conn is True: client_conn = tclient_conn() if server_conn is True: @@ -110,11 +105,14 @@ def tflow(client_conn=True, server_conn=True, req=True, resp=None, err=None) -> resp = tresp() if err is True: err = terr() + if ws is True: + ws = twebsocket() f = http.HTTPFlow(client_conn, server_conn) f.request = req f.response = resp f.error = err + f.websocket = ws f.reply = controller.DummyReply() return f @@ -197,3 +195,20 @@ def tserver_conn() -> connection.Server: def terr(content: str = "error") -> flow.Error: err = flow.Error(content, 946681207) return err + + +def twebsocket(messages: bool = True) -> websocket.WebSocketData: + ws = websocket.WebSocketData() + + if messages: + ws.messages = [ + websocket.WebSocketMessage(Opcode.BINARY, True, b"hello binary", 946681203), + websocket.WebSocketMessage(Opcode.TEXT, True, b"hello text", 946681204), + websocket.WebSocketMessage(Opcode.TEXT, False, b"it's me", 946681205), + ] + ws.close_reason = "Close Reason" + ws.close_code = 1000 + ws.closed_by_client = False + ws.timestamp_end = 946681205 + + return ws diff --git a/mitmproxy/tools/web/static/app.css b/mitmproxy/tools/web/static/app.css index 6567eb61b..3ab71f5ac 100644 --- a/mitmproxy/tools/web/static/app.css +++ b/mitmproxy/tools/web/static/app.css @@ -1,2 +1,2 @@ -html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}.resource-icon{width:32px;height:32px}.resource-icon-css{background-image:url(images/chrome-devtools/resourceCSSIcon.png)}.resource-icon-document{background-image:url(images/chrome-devtools/resourceDocumentIcon.png)}.resource-icon-js{background-image:url(images/chrome-devtools/resourceJSIcon.png)}.resource-icon-plain{background-image:url(images/chrome-devtools/resourcePlainIcon.png)}.resource-icon-executable{background-image:url(images/resourceExecutableIcon.png)}.resource-icon-flash{background-image:url(images/resourceFlashIcon.png)}.resource-icon-image{background-image:url(images/resourceImageIcon.png)}.resource-icon-java{background-image:url(images/resourceJavaIcon.png)}.resource-icon-not-modified{background-image:url(images/resourceNotModifiedIcon.png)}.resource-icon-redirect{background-image:url(images/resourceRedirectIcon.png)}#container,#mitmproxy,body,html{height:100%;margin:0;overflow:hidden}#container{display:flex;flex-direction:column;outline:0}#container>.eventlog,#container>footer,#container>header{flex:0 0 auto}.main-view{flex:1 1 auto;height:0;display:flex;flex-direction:row}.main-view.vertical{flex-direction:column}.main-view .flow-detail,.main-view .flow-table{flex:1 1 auto}.splitter{flex:0 0 1px;background-color:#aaa;position:relative}.splitter>div{position:absolute}.splitter.splitter-x{cursor:col-resize}.splitter.splitter-x>div{margin-left:-1px;width:4px;height:100%}.splitter.splitter-y{cursor:row-resize}.splitter.splitter-y>div{margin-top:-1px;height:4px;width:100%}.nav-tabs{border-bottom:solid #a6a6a6 1px}.nav-tabs>a{display:inline-block;border:solid transparent 1px;text-decoration:none}.nav-tabs>a.active{background-color:#fff;border-color:#a6a6a6;border-bottom-color:#fff}.nav-tabs>a.special{color:#fff;background-color:#396cad;border-bottom-color:#396cad}.nav-tabs>a.special:hover{background-color:#5386c6}.nav-tabs-lg>a{padding:3px 14px;margin:0 2px -1px}.nav-tabs-sm>a{padding:0 7px;margin:2px 2px -1px}.nav-tabs-sm>a.nav-action{float:right;padding:0;margin:1px 0 0}header{padding-top:6px;background-color:#fff}header>div{display:block;margin:0;padding:0;border-bottom:solid #a6a6a6 1px;height:95px;overflow:visible}.menu-group{margin:0 5px 0 6px;display:inline-block;height:95px}.menu-content{height:79px;display:flow-root}.menu-content>.btn{height:79px;text-align:center;margin:0 1px;padding:12px 5px;border:none;border-radius:0}.menu-content>.btn i{font-size:20px;display:block;margin:0 auto 5px}.menu-content>.btn.btn-sm{height:26.33333333px;padding:0 5px}.menu-content>.btn.btn-sm i{display:inline-block;font-size:14px;margin:0}.menu-entry{text-align:left;height:26.33333333px;line-height:1;padding:.5rem 1rem}.menu-entry label{font-size:1.2rem;font-weight:400;margin:0}.menu-entry input[type=checkbox]{margin:0 2px;vertical-align:middle}.menu-legend{color:#777;height:16px;text-align:center;font-size:12px;padding:0 5px}.menu-group+.menu-group:before{margin-left:-6px;content:" ";border-left:solid 1px #e6e6e6;margin-top:10px;height:75px;position:absolute}.main-menu{display:flex}.main-menu .menu-group{width:50%}.main-menu .btn-sm{margin-top:6px}.filter-input{margin:4px 0}.filter-input .popover{top:27px;left:43px;display:block;max-width:none;opacity:.9}@media (max-width:767px){.filter-input .popover{top:16px;left:29px;right:2px}}.filter-input .popover .popover-content{max-height:500px;overflow-y:auto}.filter-input .popover .popover-content tr{cursor:pointer}.filter-input .popover .popover-content tr:hover{background-color:hsla(209,52%,84%,.5)!important}.connection-indicator{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;float:right;margin:5px;opacity:1;transition:all 1s linear}a.connection-indicator:focus,a.connection-indicator:hover{color:#fff;text-decoration:none;cursor:pointer}.connection-indicator:empty{display:none}.btn .connection-indicator{position:relative;top:-1px}.connection-indicator.fetching,.connection-indicator.init{background-color:#5bc0de}.connection-indicator.established{background-color:#5cb85c;opacity:0}.connection-indicator.error{background-color:#d9534f;transition:all .2s linear}.connection-indicator.offline{background-color:#f0ad4e;opacity:1}.flow-table{width:100%;overflow-y:scroll;overflow-x:hidden}.flow-table table{width:100%;table-layout:fixed}.flow-table thead tr{background-color:#f2f2f2;border-bottom:solid #bebebe 1px;line-height:23px}.flow-table th{font-weight:400;position:relative!important;padding-left:1px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.flow-table th.sort-asc,.flow-table th.sort-desc{background-color:#fafafa}.flow-table th.sort-asc:after,.flow-table th.sort-desc:after{font:normal normal normal 14px/1 FontAwesome;position:absolute;right:3px;top:3px;padding:2px;background-color:rgba(250,250,250,.8)}.flow-table th.sort-asc:after{content:"\f0de"}.flow-table th.sort-desc:after{content:"\f0dd"}.flow-table tr{cursor:pointer;background-color:#fff}.flow-table tr:nth-child(even){background-color:#f2f2f2}.flow-table tr.selected{background-color:#e0ebf5!important}.flow-table tr.highlighted{background-color:#ffeb99}.flow-table tr.highlighted:nth-child(even){background-color:#ffe57f}.flow-table td{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.flow-table tr.intercepted:not(.has-response) .col-method,.flow-table tr.intercepted:not(.has-response) .col-path{color:#ff7f00}.flow-table tr.intercepted.has-response .col-size,.flow-table tr.intercepted.has-response .col-status,.flow-table tr.intercepted.has-response .col-time{color:#ff7f00}.flow-table .fa{line-height:inherit}.flow-table .col-tls{width:10px}.flow-table .col-tls-https{background-color:rgba(0,185,0,.5)}.flow-table .col-icon{width:32px}.flow-table .col-path .fa{margin-left:0}.flow-table .col-path .fa-repeat{color:green}.flow-table .col-path .fa-pause{color:#ff7f00}.flow-table .col-path .fa-exclamation,.flow-table .col-path .fa-times{color:#8b0000}.flow-table .col-method{width:60px}.flow-table .col-status{width:50px}.flow-table .col-size{width:70px}.flow-table .col-time{width:50px}.flow-table .col-timestamp{width:auto}.flow-table td.col-size,.flow-table td.col-time{text-align:right}.flow-table .col-quickactions{width:0;direction:rtl;overflow:hidden;background-color:inherit;font-size:20px}.flow-table .col-quickactions *{direction:ltr}.flow-table .col-quickactions.hover,.flow-table tr:hover .col-quickactions{overflow:visible}.flow-table .col-quickactions>div{height:32px;background-color:inherit;display:inline-flex;align-items:center}.flow-table .col-quickactions>div>a{margin-right:2px;height:32px;width:32px;border-radius:16px;text-align:center}.flow-table .col-quickactions>div>a.open,.flow-table .col-quickactions>div>a:hover{background-color:rgba(0,0,0,.05)}.flow-table .col-quickactions .fa-ellipsis-h{transform:translate(0,3px)}.flow-table .col-quickactions .fa-play{transform:translate(1px,2px)}.flow-table .col-quickactions .fa-repeat{transform:translate(0,2px)}.flow-detail{width:100%;overflow:hidden;display:flex;flex-direction:column}.flow-detail nav{background-color:#f2f2f2}.flow-detail section{overflow-y:scroll}.flow-detail section>article{overflow:auto;padding:5px 12px 0}.flow-detail section>footer{box-shadow:0 0 3px gray;padding:2px;margin:0;height:23px}.flow-detail section.detail,.flow-detail section.error{overflow:auto;padding:5px 12px 0}.flow-detail .first-line{font-family:Menlo,Monaco,Consolas,"Courier New",monospace;background-color:#428bca;color:#fff;margin:0 -8px;padding:4px 8px;border-radius:5px;word-break:break-all;max-height:100px;overflow-y:auto}.flow-detail .first-line .inline-input.editable{border-color:rgba(255,255,255,.5)}.flow-detail .request-line{margin-bottom:2px}.flow-detail hr{margin:0 0 5px}.inline-input{display:inline;margin:0 -3px;padding:0 3px;border:solid transparent 1px}.inline-input.editable{border-color:#ccc}.inline-input[contenteditable]{background-color:rgba(255,255,255,.2)}.inline-input[contenteditable].has-warning{color:#ffb8b8}.view-all-content-btn{float:right;margin-bottom:12px}.flow-detail table{font-family:Menlo,Monaco,Consolas,"Courier New",monospace;width:100%;table-layout:fixed;word-break:break-all}.flow-detail table tr:not(:first-child){border-top:1px solid #f7f7f7}.flow-detail table td{vertical-align:top}.connection-table td:first-child{width:50%;padding-right:1em}.header-table td{line-height:1.3em}.header-table .header-name{width:33%}.header-table .header-colon{position:absolute;opacity:0}.header-table .inline-input{display:inline-block;width:100%;height:100%}.connection-table td,.timing-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flowview-image{text-align:center}.flowview-image img{max-width:100%;max-height:100%}.edit-flow-container{position:fixed;right:20px}.edit-flow{cursor:pointer;position:absolute;right:0;top:5px;height:40px;width:40px;border-radius:20px;z-index:10000;background-color:rgba(255,255,255,.7);border:solid 2px rgba(248,145,59,.7);text-align:center;font-size:22px;line-height:37px;transition:all .1s ease-in-out}.edit-flow:hover{background-color:rgba(239,108,0,.7);color:rgba(0,0,0,.8);border:solid 2px transparent}.eventlog{height:200px;flex:0 0 auto;display:flex;flex-direction:column}.eventlog>div{background-color:#f2f2f2;padding:0 5px;flex:0 0 auto;border-top:1px solid #aaa;cursor:row-resize}.eventlog>pre{flex:1 1 auto;margin:0;border-radius:0;overflow-x:auto;overflow-y:scroll;background-color:#fcfcfc}.eventlog .fa-close{cursor:pointer;float:right;color:grey;padding:3px 0;padding-left:10px}.eventlog .fa-close:hover{color:#000}.eventlog .btn-toggle{margin-top:-2px;margin-left:3px;padding:2px 2px;font-size:10px;line-height:10px;border-radius:2px}.eventlog .label{cursor:pointer;vertical-align:middle;display:inline-block;margin-top:-2px;margin-left:3px}footer{box-shadow:0 -1px 3px #d3d3d3;padding:0 10px 3px}footer .label{margin-right:3px}.CodeMirror{border:1px solid #ccc;height:auto!important}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:0;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:0}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:0 0!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:0 0}.contentview .header{font-weight:700}.contentview .highlight{font-weight:700}.contentview .offset{color:#00f}.contentview .codeeditor{margin-bottom:12px}.modal-visible{display:block}.modal-dialog{overflow-y:initial!important}.modal-body{max-height:calc(100vh - 200px);overflow-y:auto}.dropdown-menu{margin:0!important}.dropdown-menu>li>a{padding:3px 10px} +html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}.resource-icon{width:32px;height:32px}.resource-icon-css{background-image:url(images/chrome-devtools/resourceCSSIcon.png)}.resource-icon-document{background-image:url(images/chrome-devtools/resourceDocumentIcon.png)}.resource-icon-js{background-image:url(images/chrome-devtools/resourceJSIcon.png)}.resource-icon-plain{background-image:url(images/chrome-devtools/resourcePlainIcon.png)}.resource-icon-executable{background-image:url(images/resourceExecutableIcon.png)}.resource-icon-flash{background-image:url(images/resourceFlashIcon.png)}.resource-icon-image{background-image:url(images/resourceImageIcon.png)}.resource-icon-java{background-image:url(images/resourceJavaIcon.png)}.resource-icon-not-modified{background-image:url(images/resourceNotModifiedIcon.png)}.resource-icon-redirect{background-image:url(images/resourceRedirectIcon.png)}.resource-icon-websocket{background-image:url(images/resourceWebSocketIcon.png)}#container,#mitmproxy,body,html{height:100%;margin:0;overflow:hidden}#container{display:flex;flex-direction:column;outline:0}#container>.eventlog,#container>footer,#container>header{flex:0 0 auto}.main-view{flex:1 1 auto;height:0;display:flex;flex-direction:row}.main-view.vertical{flex-direction:column}.main-view .flow-detail,.main-view .flow-table{flex:1 1 auto}.splitter{flex:0 0 1px;background-color:#aaa;position:relative}.splitter>div{position:absolute}.splitter.splitter-x{cursor:col-resize}.splitter.splitter-x>div{margin-left:-1px;width:4px;height:100%}.splitter.splitter-y{cursor:row-resize}.splitter.splitter-y>div{margin-top:-1px;height:4px;width:100%}.nav-tabs{border-bottom:solid #a6a6a6 1px}.nav-tabs>a{display:inline-block;border:solid transparent 1px;text-decoration:none}.nav-tabs>a.active{background-color:#fff;border-color:#a6a6a6;border-bottom-color:#fff}.nav-tabs>a.special{color:#fff;background-color:#396cad;border-bottom-color:#396cad}.nav-tabs>a.special:hover{background-color:#5386c6}.nav-tabs-lg>a{padding:3px 14px;margin:0 2px -1px}.nav-tabs-sm>a{padding:0 7px;margin:2px 2px -1px}header{padding-top:6px;background-color:#fff}header>div{display:block;margin:0;padding:0;border-bottom:solid #a6a6a6 1px;height:95px;overflow:visible}.menu-group{margin:0 5px 0 6px;display:inline-block;height:95px}.menu-content{height:79px;display:flow-root}.menu-content>a{display:inline-block}.menu-content>.btn,.menu-content>a>.btn{height:79px;text-align:center;margin:0 1px;padding:12px 5px;border:none;border-radius:0}.menu-content>.btn i,.menu-content>a>.btn i{font-size:20px;display:block;margin:0 auto 5px}.menu-content>.btn.btn-sm{height:26.33333333px;padding:0 5px}.menu-content>.btn.btn-sm i{display:inline-block;font-size:14px;margin:0}.menu-entry{text-align:left;height:26.33333333px;line-height:1;padding:.5rem 1rem}.menu-entry label{font-size:1.2rem;font-weight:400;margin:0}.menu-entry input[type=checkbox]{margin:0 2px;vertical-align:middle}.menu-legend{color:#777;height:16px;text-align:center;font-size:12px;padding:0 5px}.menu-group+.menu-group:before{margin-left:-6px;content:" ";border-left:solid 1px #e6e6e6;margin-top:10px;height:75px;position:absolute}.main-menu{display:flex}.main-menu .menu-group{width:50%}.main-menu .btn-sm{margin-top:6px}.filter-input{margin:4px 0}.filter-input .popover{top:27px;left:43px;display:block;max-width:none;opacity:.9}@media (max-width:767px){.filter-input .popover{top:16px;left:29px;right:2px}}.filter-input .popover .popover-content{max-height:500px;overflow-y:auto}.filter-input .popover .popover-content tr{cursor:pointer}.filter-input .popover .popover-content tr:hover{background-color:hsla(209,52%,84%,.5)!important}.connection-indicator{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;float:right;margin:5px;opacity:1;transition:all 1s linear}a.connection-indicator:focus,a.connection-indicator:hover{color:#fff;text-decoration:none;cursor:pointer}.connection-indicator:empty{display:none}.btn .connection-indicator{position:relative;top:-1px}.connection-indicator.fetching,.connection-indicator.init{background-color:#5bc0de}.connection-indicator.established{background-color:#5cb85c;opacity:0}.connection-indicator.error{background-color:#d9534f;transition:all .2s linear}.connection-indicator.offline{background-color:#f0ad4e;opacity:1}.flow-table{width:100%;overflow-y:scroll;overflow-x:hidden}.flow-table table{width:100%;table-layout:fixed}.flow-table thead tr{background-color:#f2f2f2;border-bottom:solid #bebebe 1px;line-height:23px}.flow-table th{font-weight:400;position:relative!important;padding-left:1px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.flow-table th.sort-asc,.flow-table th.sort-desc{background-color:#fafafa}.flow-table th.sort-asc:after,.flow-table th.sort-desc:after{font:normal normal normal 14px/1 FontAwesome;position:absolute;right:3px;top:3px;padding:2px;background-color:rgba(250,250,250,.8)}.flow-table th.sort-asc:after{content:"\f0de"}.flow-table th.sort-desc:after{content:"\f0dd"}.flow-table tr{cursor:pointer;background-color:#fff}.flow-table tr:nth-child(even){background-color:#f2f2f2}.flow-table tr.selected{background-color:#e0ebf5!important}.flow-table tr.highlighted{background-color:#ffeb99}.flow-table tr.highlighted:nth-child(even){background-color:#ffe57f}.flow-table td{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.flow-table tr.intercepted:not(.has-response) .col-method,.flow-table tr.intercepted:not(.has-response) .col-path{color:#ff7f00}.flow-table tr.intercepted.has-response .col-size,.flow-table tr.intercepted.has-response .col-status,.flow-table tr.intercepted.has-response .col-time{color:#ff7f00}.flow-table .fa{line-height:inherit}.flow-table .col-tls{width:10px}.flow-table .col-tls-https{background-color:rgba(0,185,0,.5)}.flow-table .col-icon{width:32px}.flow-table .col-path .fa{margin-left:0;font-size:16px}.flow-table .col-path .fa-repeat{color:green}.flow-table .col-path .fa-pause{color:#ff7f00}.flow-table .col-path .fa-exclamation,.flow-table .col-path .fa-times{color:#8b0000}.flow-table .col-method{width:60px}.flow-table .col-status{width:50px}.flow-table .col-size{width:70px}.flow-table .col-time{width:50px}.flow-table .col-timestamp{width:auto}.flow-table td.col-size,.flow-table td.col-time{text-align:right}.flow-table .col-quickactions{width:0;direction:rtl;overflow:hidden;background-color:inherit;font-size:20px}.flow-table .col-quickactions *{direction:ltr}.flow-table .col-quickactions.hover,.flow-table tr:hover .col-quickactions{overflow:visible}.flow-table .col-quickactions>div{height:32px;background-color:inherit;display:inline-flex;align-items:center}.flow-table .col-quickactions>div>a{margin-right:2px;height:32px;width:32px;border-radius:16px;text-align:center}.flow-table .col-quickactions>div>a.open,.flow-table .col-quickactions>div>a:hover{background-color:rgba(0,0,0,.05)}.flow-table .col-quickactions .fa-ellipsis-h{transform:translate(0,3px)}.flow-table .col-quickactions .fa-play{transform:translate(1px,2px)}.flow-table .col-quickactions .fa-repeat{transform:translate(0,2px)}.flow-detail{width:100%;overflow:hidden;display:flex;flex-direction:column}.flow-detail nav{background-color:#f2f2f2}.flow-detail section{overflow-y:scroll;flex:1;padding:5px 12px 10px}.flow-detail section>footer{box-shadow:0 0 3px gray;padding:2px;margin:0;height:23px}.flow-detail .first-line{font-family:Menlo,Monaco,Consolas,"Courier New",monospace;background-color:#428bca;color:#fff;margin:0 -8px 2px;padding:4px 8px;border-radius:5px;word-break:break-all;max-height:100px;overflow-y:auto}.flow-detail .contentview{margin:0 -12px;padding:0 12px}.flow-detail .contentview .controls{display:flex;align-items:center}.flow-detail .contentview .controls h5{flex:1;font-size:12px;font-weight:700;margin:10px 0}.flow-detail .contentview pre button:not(:only-child){margin-top:6px}.flow-detail hr{margin:0}.inline-input{display:inline;margin:0 -3px;padding:0 3px;border:solid transparent 1px}.inline-input:hover{box-shadow:0 0 0 1px rgba(0,0,0,.0125),0 2px 4px rgba(0,0,0,.05),0 2px 6px rgba(0,0,0,.025);background-color:rgba(255,255,255,.1)}.inline-input[placeholder]:empty:not(:focus-visible):before{content:attr(placeholder);color:#d3d3d3;font-style:italic}.inline-input[contenteditable]{outline-width:0;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.2),0 2px 6px rgba(0,0,0,.1);background-color:rgba(255,255,255,.2)}.inline-input[contenteditable].has-warning{color:#ffb8b8}.flow-detail table{width:100%;table-layout:fixed;word-break:break-all}.flow-detail table td:nth-child(2){font-family:Menlo,Monaco,Consolas,"Courier New",monospace;width:70%}.flow-detail table tr:not(:first-child){border-top:1px solid #f7f7f7}.flow-detail table td{vertical-align:top}.connection-table td:first-child{padding-right:1em}.headers,.trailers{position:relative;min-height:2ex;overflow-wrap:break-word}.headers .kv-row,.trailers .kv-row{margin-bottom:.3em;max-height:12.4ex;overflow-y:auto}.headers .kv-key,.trailers .kv-key{font-weight:700}.headers .kv-value,.trailers .kv-value{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}.headers .inline-input,.trailers .inline-input{background-color:#fff}.headers .kv-add-row,.trailers .kv-add-row{opacity:0;color:#666;position:absolute;bottom:4px;right:4px;transition:all .1s ease-in-out}.headers:hover .kv-add-row,.trailers:hover .kv-add-row{opacity:1}.connection-table td,.timing-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}dl.cert-attributes{display:flex;flex-flow:row;flex-wrap:wrap;margin-bottom:0}dl.cert-attributes dd,dl.cert-attributes dt{text-overflow:ellipsis;overflow:hidden}dl.cert-attributes dt{flex:0 0 2em}dl.cert-attributes dd{flex:0 0 calc(100% - 2em)}.flowview-image{text-align:center;padding:10px 0}.flowview-image img{max-width:100%;max-height:100%}.edit-flow-container{position:fixed;right:20px}.edit-flow{cursor:pointer;position:absolute;right:0;top:5px;height:40px;width:40px;border-radius:20px;z-index:10000;background-color:rgba(255,255,255,.7);border:solid 2px rgba(248,145,59,.7);text-align:center;font-size:22px;line-height:37px;transition:all .1s ease-in-out}.edit-flow:hover{background-color:rgba(239,108,0,.7);color:rgba(0,0,0,.8);border:solid 2px transparent}.eventlog{height:200px;flex:0 0 auto;display:flex;flex-direction:column}.eventlog>div{background-color:#f2f2f2;padding:0 5px;flex:0 0 auto;border-top:1px solid #aaa;cursor:row-resize}.eventlog>pre{flex:1 1 auto;margin:0;border-radius:0;overflow-x:auto;overflow-y:scroll;background-color:#fcfcfc}.eventlog .fa-close{cursor:pointer;float:right;color:grey;padding:3px 0;padding-left:10px}.eventlog .fa-close:hover{color:#000}.eventlog .btn-toggle{margin-top:-2px;margin-left:3px;padding:2px 2px;font-size:10px;line-height:10px;border-radius:2px}.eventlog .label{cursor:pointer;vertical-align:middle;display:inline-block;margin-top:-2px;margin-left:3px}footer{box-shadow:0 -1px 3px #d3d3d3;padding:0 0 4px 3px}footer .label{margin-right:3px}.CodeMirror{border:1px solid #ccc;height:auto!important}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:0;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:0}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:0 0!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:0 0}.contentview .header{font-weight:700}.contentview .highlight{font-weight:700}.contentview .offset{color:#00f}.contentview .codeeditor{margin-bottom:12px}.modal-visible{display:block}.modal-dialog{overflow-y:initial!important}.modal-body{max-height:calc(100vh - 200px);overflow-y:auto}.dropdown-menu{margin:0!important}.dropdown-menu>li>a{padding:3px 10px}.command-title{background-color:#f2f2f2;border:1px solid #aaa}.command-result{display:block;margin:0;background-color:#fcfcfc;height:100px;max-height:100px;overflow:auto}.command-suggestion{background-color:#9c9c9c}.argument-suggestion{background-color:hsla(209,52%,84%,.5)!important}.command>.popover{display:block;position:relative;max-width:none}.available-commands{overflow:auto} /*# sourceMappingURL=app.css.map */ diff --git a/mitmproxy/tools/web/static/app.js b/mitmproxy/tools/web/static/app.js index b249275ee..080ca0e49 100644 --- a/mitmproxy/tools/web/static/app.js +++ b/mitmproxy/tools/web/static/app.js @@ -1,63 +1,66 @@ -(()=>{var SA=Object.create;var mc=Object.defineProperty;var CA=Object.getOwnPropertyDescriptor;var _A=Object.getOwnPropertyNames;var EA=Object.getPrototypeOf,bA=Object.prototype.hasOwnProperty;var TA=(e,t,i)=>t in e?mc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var vC=e=>mc(e,"__esModule",{value:!0}),o=(e,t)=>mc(e,"name",{value:t,configurable:!0});var Gt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),OA=(e,t)=>{vC(e);for(var i in t)mc(e,i,{get:t[i],enumerable:!0})},kA=(e,t,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of _A(t))!bA.call(e,a)&&a!=="default"&&mc(e,a,{get:()=>t[a],enumerable:!(i=CA(t,a))||i.enumerable});return e},re=e=>kA(vC(mc(e!=null?SA(EA(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var At=(e,t,i)=>(TA(e,typeof t!="symbol"?t+"":t,i),i);var E0=Gt((_R,gC)=>{"use strict";var mC=Object.getOwnPropertySymbols,NA=Object.prototype.hasOwnProperty,LA=Object.prototype.propertyIsEnumerable;function PA(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}o(PA,"toObject");function MA(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;var a=Object.getOwnPropertyNames(t).map(function(m){return t[m]});if(a.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(m){p[m]=m}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch(m){return!1}}o(MA,"shouldUseNative");gC.exports=MA()?Object.assign:function(e,t){for(var i,a=PA(e),p,m=1;m{"use strict";var b0=E0(),gc=60103,yC=60106;pt.Fragment=60107;pt.StrictMode=60108;pt.Profiler=60114;var wC=60109,xC=60110,SC=60112;pt.Suspense=60113;var CC=60115,_C=60116;typeof Symbol=="function"&&Symbol.for&&(to=Symbol.for,gc=to("react.element"),yC=to("react.portal"),pt.Fragment=to("react.fragment"),pt.StrictMode=to("react.strict_mode"),pt.Profiler=to("react.profiler"),wC=to("react.provider"),xC=to("react.context"),SC=to("react.forward_ref"),pt.Suspense=to("react.suspense"),CC=to("react.memo"),_C=to("react.lazy"));var to,EC=typeof Symbol=="function"&&Symbol.iterator;function AA(e){return e===null||typeof e!="object"?null:(e=EC&&e[EC]||e["@@iterator"],typeof e=="function"?e:null)}o(AA,"y");function Sd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i{"use strict";DC.exports=AC()});var UC=Gt(_t=>{"use strict";var wc,Cd,tm,P0;typeof performance=="object"&&typeof performance.now=="function"?(IC=performance,_t.unstable_now=function(){return IC.now()}):(M0=Date,FC=M0.now(),_t.unstable_now=function(){return M0.now()-FC});var IC,M0,FC;typeof window=="undefined"||typeof MessageChannel!="function"?(xc=null,A0=null,D0=o(function(){if(xc!==null)try{var e=_t.unstable_now();xc(!0,e),xc=null}catch(t){throw setTimeout(D0,0),t}},"w"),wc=o(function(e){xc!==null?setTimeout(wc,0,e):(xc=e,setTimeout(D0,0))},"f"),Cd=o(function(e,t){A0=setTimeout(e,t)},"g"),tm=o(function(){clearTimeout(A0)},"h"),_t.unstable_shouldYield=function(){return!1},P0=_t.unstable_forceFrameRate=function(){}):(RC=window.setTimeout,WC=window.clearTimeout,typeof console!="undefined"&&(HC=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof HC!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),_d=!1,Ed=null,rm=-1,I0=5,F0=0,_t.unstable_shouldYield=function(){return _t.unstable_now()>=F0},P0=o(function(){},"k"),_t.unstable_forceFrameRate=function(e){0>e||125>>1,p=e[a];if(p!==void 0&&0om(d,i))b!==void 0&&0>om(b,d)?(e[a]=b,e[w]=i,a=w):(e[a]=d,e[m]=i,a=m);else if(b!==void 0&&0>om(b,i))e[a]=b,e[w]=i,a=w;else break e}}return t}return null}o(im,"K");function om(e,t){var i=e.sortIndex-t.sortIndex;return i!==0?i:e.id-t.id}o(om,"I");var bs=[],Eu=[],WA=1,ro=null,An=3,sm=!1,Ba=!1,bd=!1;function H0(e){for(var t=Ro(Eu);t!==null;){if(t.callback===null)im(Eu);else if(t.startTime<=e)im(Eu),t.sortIndex=t.expirationTime,W0(bs,t);else break;t=Ro(Eu)}}o(H0,"T");function U0(e){if(bd=!1,H0(e),!Ba)if(Ro(bs)!==null)Ba=!0,wc(B0);else{var t=Ro(Eu);t!==null&&Cd(U0,t.startTime-e)}}o(U0,"U");function B0(e,t){Ba=!1,bd&&(bd=!1,tm()),sm=!0;var i=An;try{for(H0(t),ro=Ro(bs);ro!==null&&(!(ro.expirationTime>t)||e&&!_t.unstable_shouldYield());){var a=ro.callback;if(typeof a=="function"){ro.callback=null,An=ro.priorityLevel;var p=a(ro.expirationTime<=t);t=_t.unstable_now(),typeof p=="function"?ro.callback=p:ro===Ro(bs)&&im(bs),H0(t)}else im(bs);ro=Ro(bs)}if(ro!==null)var m=!0;else{var d=Ro(Eu);d!==null&&Cd(U0,d.startTime-t),m=!1}return m}finally{ro=null,An=i,sm=!1}}o(B0,"V");var HA=P0;_t.unstable_IdlePriority=5;_t.unstable_ImmediatePriority=1;_t.unstable_LowPriority=4;_t.unstable_NormalPriority=3;_t.unstable_Profiling=null;_t.unstable_UserBlockingPriority=2;_t.unstable_cancelCallback=function(e){e.callback=null};_t.unstable_continueExecution=function(){Ba||sm||(Ba=!0,wc(B0))};_t.unstable_getCurrentPriorityLevel=function(){return An};_t.unstable_getFirstCallbackNode=function(){return Ro(bs)};_t.unstable_next=function(e){switch(An){case 1:case 2:case 3:var t=3;break;default:t=An}var i=An;An=t;try{return e()}finally{An=i}};_t.unstable_pauseExecution=function(){};_t.unstable_requestPaint=HA;_t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var i=An;An=e;try{return t()}finally{An=i}};_t.unstable_scheduleCallback=function(e,t,i){var a=_t.unstable_now();switch(typeof i=="object"&&i!==null?(i=i.delay,i=typeof i=="number"&&0a?(e.sortIndex=i,W0(Eu,e),Ro(bs)===null&&e===Ro(Eu)&&(bd?tm():bd=!0,Cd(U0,i-a))):(e.sortIndex=p,W0(bs,e),Ba||sm||(Ba=!0,wc(B0))),e};_t.unstable_wrapCallback=function(e){var t=An;return function(){var i=An;An=t;try{return e.apply(this,arguments)}finally{An=i}}}});var zC=Gt((OR,BC)=>{"use strict";BC.exports=UC()});var Nb=Gt(uo=>{"use strict";var lm=ke(),Kt=E0(),tn=zC();function he(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;it}return!1}o(jA,"na");function Zn(e,t,i,a,p,m,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=p,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=m,this.removeEmptyString=d}o(Zn,"B");var gn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gn[e]=new Zn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gn[t]=new Zn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gn[e]=new Zn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gn[e]=new Zn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){gn[e]=new Zn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gn[e]=new Zn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gn[e]=new Zn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gn[e]=new Zn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gn[e]=new Zn(e,5,!1,e.toLowerCase(),null,!1,!1)});var z0=/[\-:]([a-z])/g;function j0(e){return e[1].toUpperCase()}o(j0,"pa");"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(z0,j0);gn[t]=new Zn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(z0,j0);gn[t]=new Zn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(z0,j0);gn[t]=new Zn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gn[e]=new Zn(e,1,!1,e.toLowerCase(),null,!1,!1)});gn.xlinkHref=new Zn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gn[e]=new Zn(e,1,!1,e.toLowerCase(),null,!0,!0)});function q0(e,t,i,a){var p=gn.hasOwnProperty(t)?gn[t]:null,m=p!==null?p.type===0:a?!1:!(!(2w||p[d]!==m[w])return` -`+p[d].replace(" at new "," at ");while(1<=d&&0<=w);break}}}finally{ew=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?Pd(e):""}o(cm,"Pa");function qA(e){switch(e.tag){case 5:return Pd(e.type);case 16:return Pd("Lazy");case 13:return Pd("Suspense");case 19:return Pd("SuspenseList");case 0:case 2:case 15:return e=cm(e.type,!1),e;case 11:return e=cm(e.type.render,!1),e;case 22:return e=cm(e.type._render,!1),e;case 1:return e=cm(e.type,!0),e;default:return""}}o(qA,"Qa");function Cc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bu:return"Fragment";case qa:return"Portal";case kd:return"Profiler";case $0:return"StrictMode";case Nd:return"Suspense";case am:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G0:return(e.displayName||"Context")+".Consumer";case V0:return(e._context.displayName||"Context")+".Provider";case um:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case fm:return Cc(e.type);case Y0:return Cc(e._render);case K0:t=e._payload,e=e._init;try{return Cc(e(t))}catch(i){}}return null}o(Cc,"Ra");function Tu(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}o(Tu,"Sa");function YC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}o(YC,"Ta");function $A(e){var t=YC(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof i!="undefined"&&typeof i.get=="function"&&typeof i.set=="function"){var p=i.get,m=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return p.call(this)},set:function(d){a=""+d,m.call(this,d)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}o($A,"Ua");function pm(e){e._valueTracker||(e._valueTracker=$A(e))}o(pm,"Va");function XC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),a="";return e&&(a=YC(e)?e.checked?"true":"false":e.value),e=a,e!==i?(t.setValue(e),!0):!1}o(XC,"Wa");function dm(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}o(dm,"Xa");function tw(e,t){var i=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}o(tw,"Ya");function QC(e,t){var i=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;i=Tu(t.value!=null?t.value:i),e._wrapperState={initialChecked:a,initialValue:i,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}o(QC,"Za");function ZC(e,t){t=t.checked,t!=null&&q0(e,"checked",t,!1)}o(ZC,"$a");function rw(e,t){ZC(e,t);var i=Tu(t.value),a=t.type;if(i!=null)a==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?nw(e,t.type,i):t.hasOwnProperty("defaultValue")&&nw(e,t.type,Tu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}o(rw,"ab");function JC(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}o(JC,"cb");function nw(e,t,i){(t!=="number"||dm(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}o(nw,"bb");function VA(e){var t="";return lm.Children.forEach(e,function(i){i!=null&&(t+=i)}),t}o(VA,"db");function iw(e,t){return e=Kt({children:void 0},t),(t=VA(t.children))&&(e.children=t),e}o(iw,"eb");function _c(e,t,i,a){if(e=e.options,t){t={};for(var p=0;p=i.length))throw Error(he(93));i=i[0]}t=i}t==null&&(t=""),i=t}e._wrapperState={initialValue:Tu(i)}}o(e_,"hb");function t_(e,t){var i=Tu(t.value),a=Tu(t.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),t.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),a!=null&&(e.defaultValue=""+a)}o(t_,"ib");function r_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}o(r_,"jb");var sw={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function n_(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}o(n_,"lb");function lw(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?n_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}o(lw,"mb");var hm,i_=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,i,a,p){MSApp.execUnsafeLocalFunction(function(){return e(t,i,a,p)})}:e}(function(e,t){if(e.namespaceURI!==sw.svg||"innerHTML"in e)e.innerHTML=t;else{for(hm=hm||document.createElement("div"),hm.innerHTML=""+t.valueOf().toString()+"",t=hm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Md(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}o(Md,"pb");var Ad={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},GA=["Webkit","ms","Moz","O"];Object.keys(Ad).forEach(function(e){GA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ad[t]=Ad[e]})});function o_(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||Ad.hasOwnProperty(e)&&Ad[e]?(""+t).trim():t+"px"}o(o_,"sb");function s_(e,t){e=e.style;for(var i in t)if(t.hasOwnProperty(i)){var a=i.indexOf("--")===0,p=o_(i,t[i],a);i==="float"&&(i="cssFloat"),a?e.setProperty(i,p):e[i]=p}}o(s_,"tb");var KA=Kt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uw(e,t){if(t){if(KA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(he(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(he(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(he(61))}if(t.style!=null&&typeof t.style!="object")throw Error(he(62))}}o(uw,"vb");function aw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}o(aw,"wb");function fw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}o(fw,"xb");var cw=null,Ec=null,bc=null;function l_(e){if(e=Qd(e)){if(typeof cw!="function")throw Error(he(280));var t=e.stateNode;t&&(t=Dm(t),cw(e.stateNode,e.type,t))}}o(l_,"Bb");function u_(e){Ec?bc?bc.push(e):bc=[e]:Ec=e}o(u_,"Eb");function a_(){if(Ec){var e=Ec,t=bc;if(bc=Ec=null,l_(e),t)for(e=0;ea?0:1<i;i++)t.push(e);return t}o(Ew,"Zc");function Sm(e,t,i){e.pendingLanes|=t;var a=t-1;e.suspendedLanes&=a,e.pingedLanes&=a,e=e.eventTimes,t=31-Lu(t),e[t]=i}o(Sm,"$c");var Lu=Math.clz32?Math.clz32:fD,uD=Math.log,aD=Math.LN2;function fD(e){return e===0?32:31-(uD(e)/aD|0)|0}o(fD,"ad");var cD=tn.unstable_UserBlockingPriority,pD=tn.unstable_runWithPriority,Cm=!0;function dD(e,t,i,a){$a||dw();var p=bw,m=$a;$a=!0;try{f_(p,e,t,i,a)}finally{($a=m)||vw()}}o(dD,"gd");function hD(e,t,i,a){pD(cD,bw.bind(null,e,t,i,a))}o(hD,"id");function bw(e,t,i,a){if(Cm){var p;if((p=(t&4)==0)&&0=qd),F_=String.fromCharCode(32),R_=!1;function W_(e,t){switch(e){case"keyup":return RD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}o(W_,"ge");function H_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}o(H_,"he");var Pc=!1;function HD(e,t){switch(e){case"compositionend":return H_(t);case"keypress":return t.which!==32?null:(R_=!0,F_);case"textInput":return e=t.data,e===F_&&R_?null:e;default:return null}}o(HD,"je");function UD(e,t){if(Pc)return e==="compositionend"||!Aw&&W_(e,t)?(e=L_(),_m=Ow=Pu=null,Pc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:i,offset:t-e};e=a}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=$_(i)}}o(V_,"Le");function G_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?G_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}o(G_,"Me");function K_(){for(var e=window,t=dm();t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch(a){i=!1}if(i)e=t.contentWindow;else break;t=dm(e.document)}return t}o(K_,"Ne");function Iw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}o(Iw,"Oe");var XD=hl&&"documentMode"in document&&11>=document.documentMode,Mc=null,Fw=null,Kd=null,Rw=!1;function Y_(e,t,i){var a=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Rw||Mc==null||Mc!==dm(a)||(a=Mc,"selectionStart"in a&&Iw(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Kd&&Gd(Kd,a)||(Kd=a,a=Lm(Fw,"onSelect"),0Rc||(e.current=qw[Rc],qw[Rc]=null,Rc--)}o(zt,"H");function sr(e,t){Rc++,qw[Rc]=e.current,e.current=t}o(sr,"I");var Du={},Dn=Au(Du),mi=Au(!1),Ka=Du;function Wc(e,t){var i=e.type.contextTypes;if(!i)return Du;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var p={},m;for(m in i)p[m]=t[m];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=p),p}o(Wc,"Ef");function gi(e){return e=e.childContextTypes,e!=null}o(gi,"Ff");function Im(){zt(mi),zt(Dn)}o(Im,"Gf");function cE(e,t,i){if(Dn.current!==Du)throw Error(he(168));sr(Dn,t),sr(mi,i)}o(cE,"Hf");function pE(e,t,i){var a=e.stateNode;if(e=t.childContextTypes,typeof a.getChildContext!="function")return i;a=a.getChildContext();for(var p in a)if(!(p in e))throw Error(he(108,Cc(t)||"Unknown",p));return Kt({},i,a)}o(pE,"If");function Fm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Du,Ka=Dn.current,sr(Dn,e),sr(mi,mi.current),!0}o(Fm,"Jf");function dE(e,t,i){var a=e.stateNode;if(!a)throw Error(he(169));i?(e=pE(e,t,Ka),a.__reactInternalMemoizedMergedChildContext=e,zt(mi),zt(Dn),sr(Dn,e)):zt(mi),sr(mi,i)}o(dE,"Kf");var $w=null,Ya=null,JD=tn.unstable_runWithPriority,Vw=tn.unstable_scheduleCallback,Gw=tn.unstable_cancelCallback,eI=tn.unstable_shouldYield,hE=tn.unstable_requestPaint,Kw=tn.unstable_now,tI=tn.unstable_getCurrentPriorityLevel,Rm=tn.unstable_ImmediatePriority,vE=tn.unstable_UserBlockingPriority,mE=tn.unstable_NormalPriority,gE=tn.unstable_LowPriority,yE=tn.unstable_IdlePriority,Yw={},rI=hE!==void 0?hE:function(){},vl=null,Wm=null,Xw=!1,wE=Kw(),In=1e4>wE?Kw:function(){return Kw()-wE};function Hc(){switch(tI()){case Rm:return 99;case vE:return 98;case mE:return 97;case gE:return 96;case yE:return 95;default:throw Error(he(332))}}o(Hc,"eg");function xE(e){switch(e){case 99:return Rm;case 98:return vE;case 97:return mE;case 96:return gE;case 95:return yE;default:throw Error(he(332))}}o(xE,"fg");function Xa(e,t){return e=xE(e),JD(e,t)}o(Xa,"gg");function Zd(e,t,i){return e=xE(e),Vw(e,t,i)}o(Zd,"hg");function Os(){if(Wm!==null){var e=Wm;Wm=null,Gw(e)}SE()}o(Os,"ig");function SE(){if(!Xw&&vl!==null){Xw=!0;var e=0;try{var t=vl;Xa(99,function(){for(;ece?(me=se,se=null):me=se.sibling;var ye=z(I,se,W[ce],K);if(ye===null){se===null&&(se=me);break}e&&se&&ye.alternate===null&&t(I,se),A=m(ye,A,ce),fe===null?V=ye:fe.sibling=ye,fe=ye,se=me}if(ce===W.length)return i(I,se),V;if(se===null){for(;cece?(me=se,se=null):me=se.sibling;var ze=z(I,se,ye.value,K);if(ze===null){se===null&&(se=me);break}e&&se&&ze.alternate===null&&t(I,se),A=m(ze,A,ce),fe===null?V=ze:fe.sibling=ze,fe=ze,se=me}if(ye.done)return i(I,se),V;if(se===null){for(;!ye.done;ce++,ye=W.next())ye=Y(I,ye.value,K),ye!==null&&(A=m(ye,A,ce),fe===null?V=ye:fe.sibling=ye,fe=ye);return V}for(se=a(I,se);!ye.done;ce++,ye=W.next())ye=X(se,I,ce,ye.value,K),ye!==null&&(e&&ye.alternate!==null&&se.delete(ye.key===null?ce:ye.key),A=m(ye,A,ce),fe===null?V=ye:fe.sibling=ye,fe=ye);return e&&se.forEach(function(Ye){return t(I,Ye)}),V}return o(J,"w"),function(I,A,W,K){var V=typeof W=="object"&&W!==null&&W.type===bu&&W.key===null;V&&(W=W.props.children);var fe=typeof W=="object"&&W!==null;if(fe)switch(W.$$typeof){case Od:e:{for(fe=W.key,V=A;V!==null;){if(V.key===fe){switch(V.tag){case 7:if(W.type===bu){i(I,V.sibling),A=p(V,W.props.children),A.return=I,I=A;break e}break;default:if(V.elementType===W.type){i(I,V.sibling),A=p(V,W.props),A.ref=eh(I,V,W),A.return=I,I=A;break e}}i(I,V);break}else t(I,V);V=V.sibling}W.type===bu?(A=Yc(W.props.children,I.mode,K,W.key),A.return=I,I=A):(K=ag(W.type,W.key,W.props,null,I.mode,K),K.ref=eh(I,A,W),K.return=I,I=K)}return d(I);case qa:e:{for(V=W.key;A!==null;){if(A.key===V)if(A.tag===4&&A.stateNode.containerInfo===W.containerInfo&&A.stateNode.implementation===W.implementation){i(I,A.sibling),A=p(A,W.children||[]),A.return=I,I=A;break e}else{i(I,A);break}else t(I,A);A=A.sibling}A=R1(W,I.mode,K),A.return=I,I=A}return d(I)}if(typeof W=="string"||typeof W=="number")return W=""+W,A!==null&&A.tag===6?(i(I,A.sibling),A=p(A,W),A.return=I,I=A):(i(I,A),A=F1(W,I.mode,K),A.return=I,I=A),d(I);if(qm(W))return ee(I,A,W,K);if(Ld(W))return J(I,A,W,K);if(fe&&$m(I,W),typeof W=="undefined"&&!V)switch(I.tag){case 1:case 22:case 0:case 11:case 15:throw Error(he(152,Cc(I.type)||"Component"))}return i(I,A)}}o(LE,"Sg");var Vm=LE(!0),PE=LE(!1),th={},ks=Au(th),rh=Au(th),nh=Au(th);function Qa(e){if(e===th)throw Error(he(174));return e}o(Qa,"dh");function t1(e,t){switch(sr(nh,t),sr(rh,e),sr(ks,th),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:lw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=lw(t,e)}zt(ks),sr(ks,t)}o(t1,"eh");function zc(){zt(ks),zt(rh),zt(nh)}o(zc,"fh");function ME(e){Qa(nh.current);var t=Qa(ks.current),i=lw(t,e.type);t!==i&&(sr(rh,e),sr(ks,i))}o(ME,"gh");function r1(e){rh.current===e&&(zt(ks),zt(rh))}o(r1,"hh");var lr=Au(0);function Gm(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!=0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}o(Gm,"ih");var ml=null,Wu=null,Ns=!1;function AE(e,t){var i=lo(5,null,null,0);i.elementType="DELETED",i.type="DELETED",i.stateNode=t,i.return=e,i.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=i,e.lastEffect=i):e.firstEffect=e.lastEffect=i}o(AE,"mh");function DE(e,t){switch(e.tag){case 5:var i=e.type;return t=t.nodeType!==1||i.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}o(DE,"oh");function n1(e){if(Ns){var t=Wu;if(t){var i=t;if(!DE(e,t)){if(t=Dc(i.nextSibling),!t||!DE(e,t)){e.flags=e.flags&-1025|2,Ns=!1,ml=e;return}AE(ml,i)}ml=e,Wu=Dc(t.firstChild)}else e.flags=e.flags&-1025|2,Ns=!1,ml=e}}o(n1,"ph");function IE(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ml=e}o(IE,"qh");function Km(e){if(e!==ml)return!1;if(!Ns)return IE(e),Ns=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Bw(t,e.memoizedProps))for(t=Wu;t;)AE(e,t),t=Dc(t.nextSibling);if(IE(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(he(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(t===0){Wu=Dc(e.nextSibling);break e}t--}else i!=="$"&&i!=="$!"&&i!=="$?"||t++}e=e.nextSibling}Wu=null}}else Wu=ml?Dc(e.stateNode.nextSibling):null;return!0}o(Km,"rh");function i1(){Wu=ml=null,Ns=!1}o(i1,"sh");var jc=[];function o1(){for(var e=0;em))throw Error(he(301));m+=1,yn=Fn=null,t.updateQueue=null,ih.current=lI,e=i(a,p)}while(sh)}if(ih.current=Jm,t=Fn!==null&&Fn.next!==null,oh=0,yn=Fn=yr=null,Ym=!1,t)throw Error(he(300));return e}o(l1,"Ch");function Za(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yn===null?yr.memoizedState=yn=e:yn=yn.next=e,yn}o(Za,"Hh");function Ja(){if(Fn===null){var e=yr.alternate;e=e!==null?e.memoizedState:null}else e=Fn.next;var t=yn===null?yr.memoizedState:yn.next;if(t!==null)yn=t,Fn=e;else{if(e===null)throw Error(he(310));Fn=e,e={memoizedState:Fn.memoizedState,baseState:Fn.baseState,baseQueue:Fn.baseQueue,queue:Fn.queue,next:null},yn===null?yr.memoizedState=yn=e:yn=yn.next=e}return yn}o(Ja,"Ih");function Ls(e,t){return typeof t=="function"?t(e):t}o(Ls,"Jh");function lh(e){var t=Ja(),i=t.queue;if(i===null)throw Error(he(311));i.lastRenderedReducer=e;var a=Fn,p=a.baseQueue,m=i.pending;if(m!==null){if(p!==null){var d=p.next;p.next=m.next,m.next=d}a.baseQueue=p=m,i.pending=null}if(p!==null){p=p.next,a=a.baseState;var w=d=m=null,b=p;do{var L=b.lane;if((oh&L)===L)w!==null&&(w=w.next={lane:0,action:b.action,eagerReducer:b.eagerReducer,eagerState:b.eagerState,next:null}),a=b.eagerReducer===e?b.eagerState:e(a,b.action);else{var F={lane:L,action:b.action,eagerReducer:b.eagerReducer,eagerState:b.eagerState,next:null};w===null?(d=w=F,m=a):w=w.next=F,yr.lanes|=L,ch|=L}b=b.next}while(b!==null&&b!==p);w===null?m=a:w.next=d,no(a,t.memoizedState)||(Ho=!0),t.memoizedState=a,t.baseState=m,t.baseQueue=w,i.lastRenderedState=a}return[t.memoizedState,i.dispatch]}o(lh,"Kh");function uh(e){var t=Ja(),i=t.queue;if(i===null)throw Error(he(311));i.lastRenderedReducer=e;var a=i.dispatch,p=i.pending,m=t.memoizedState;if(p!==null){i.pending=null;var d=p=p.next;do m=e(m,d.action),d=d.next;while(d!==p);no(m,t.memoizedState)||(Ho=!0),t.memoizedState=m,t.baseQueue===null&&(t.baseState=m),i.lastRenderedState=m}return[m,a]}o(uh,"Lh");function FE(e,t,i){var a=t._getVersion;a=a(t._source);var p=t._workInProgressVersionPrimary;if(p!==null?e=p===a:(e=e.mutableReadLanes,(e=(oh&e)===e)&&(t._workInProgressVersionPrimary=a,jc.push(t))),e)return i(t._source);throw jc.push(t),Error(he(350))}o(FE,"Mh");function RE(e,t,i,a){var p=Jn;if(p===null)throw Error(he(349));var m=t._getVersion,d=m(t._source),w=ih.current,b=w.useState(function(){return FE(p,t,i)}),L=b[1],F=b[0];b=yn;var Y=e.memoizedState,z=Y.refs,X=z.getSnapshot,ee=Y.source;Y=Y.subscribe;var J=yr;return e.memoizedState={refs:z,source:t,subscribe:a},w.useEffect(function(){z.getSnapshot=i,z.setSnapshot=L;var I=m(t._source);if(!no(d,I)){I=i(t._source),no(F,I)||(L(I),I=Uu(J),p.mutableReadLanes|=I&p.pendingLanes),I=p.mutableReadLanes,p.entangledLanes|=I;for(var A=p.entanglements,W=I;0i?98:i,function(){e(!0)}),Xa(97<\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=d.createElement(i,{is:a.is}):(e=d.createElement(i),i==="select"&&(d=e,a.multiple?d.multiple=!0:a.size&&(d.size=a.size))):e=d.createElementNS(e,i),e[Mu]=t,e[Am]=a,ib(e,t,!1,!1),t.stateNode=e,d=aw(i,a),i){case"dialog":Bt("cancel",e),Bt("close",e),p=a;break;case"iframe":case"object":case"embed":Bt("load",e),p=a;break;case"video":case"audio":for(p=0;pO1&&(t.flags|=64,m=!0,fh(a,!1),t.lanes=33554432)}else{if(!m)if(e=Gm(d),e!==null){if(t.flags|=64,m=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),fh(a,!0),a.tail===null&&a.tailMode==="hidden"&&!d.alternate&&!Ns)return t=t.lastEffect=a.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*In()-a.renderingStartTime>O1&&i!==1073741824&&(t.flags|=64,m=!0,fh(a,!1),t.lanes=33554432);a.isBackwards?(d.sibling=t.child,t.child=d):(i=a.last,i!==null?i.sibling=d:t.child=d,a.last=d)}return a.tail!==null?(i=a.tail,a.rendering=i,a.tail=i.sibling,a.lastEffect=t.lastEffect,a.renderingStartTime=In(),i.sibling=null,t=lr.current,sr(lr,m?t&1|2:t&1),i):null;case 23:case 24:return A1(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&a.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(he(156,t.tag))}o(aI,"Gi");function fI(e){switch(e.tag){case 1:gi(e.type)&&Im();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(zc(),zt(mi),zt(Dn),o1(),t=e.flags,(t&64)!=0)throw Error(he(285));return e.flags=t&-4097|64,e;case 5:return r1(e),null;case 13:return zt(lr),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return zt(lr),null;case 4:return zc(),null;case 10:return Zw(e),null;case 23:case 24:return A1(),null;default:return null}}o(fI,"Li");function g1(e,t){try{var i="",a=t;do i+=qA(a),a=a.return;while(a);var p=i}catch(m){p=` -Error generating stack: `+m.message+` -`+m.stack}return{value:e,source:t,stack:p}}o(g1,"Mi");function y1(e,t){try{console.error(t.value)}catch(i){setTimeout(function(){throw i})}}o(y1,"Ni");var cI=typeof WeakMap=="function"?WeakMap:Map;function lb(e,t,i){i=Fu(-1,i),i.tag=3,i.payload={element:null};var a=t.value;return i.callback=function(){ng||(ng=!0,k1=a),y1(e,t)},i}o(lb,"Pi");function ub(e,t,i){i=Fu(-1,i),i.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var p=t.value;i.payload=function(){return y1(e,t),a(p)}}var m=e.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(i.callback=function(){typeof a!="function"&&(Ps===null?Ps=new Set([this]):Ps.add(this),y1(e,t));var d=t.stack;this.componentDidCatch(t.value,{componentStack:d!==null?d:""})}),i}o(ub,"Si");var pI=typeof WeakSet=="function"?WeakSet:Set;function ab(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(i){ju(e,i)}else t.current=null}o(ab,"Vi");function dI(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var i=e.memoizedProps,a=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?i:Wo(t.type,i),a),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&zw(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(he(163))}o(dI,"Xi");function hI(e,t,i){switch(i.tag){case 0:case 11:case 15:case 22:if(t=i.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)==3){var a=e.create;e.destroy=a()}e=e.next}while(e!==t)}if(t=i.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var p=e;a=p.next,p=p.tag,(p&4)!=0&&(p&1)!=0&&(Eb(i,e),CI(i,e)),e=a}while(e!==t)}return;case 1:e=i.stateNode,i.flags&4&&(t===null?e.componentDidMount():(a=i.elementType===i.type?t.memoizedProps:Wo(i.type,t.memoizedProps),e.componentDidUpdate(a,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=i.updateQueue,t!==null&&bE(i,t,e);return;case 3:if(t=i.updateQueue,t!==null){if(e=null,i.child!==null)switch(i.child.tag){case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}bE(i,t,e)}return;case 5:e=i.stateNode,t===null&&i.flags&4&&sE(i.type,i.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:i.memoizedState===null&&(i=i.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&C_(i))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(he(163))}o(hI,"Yi");function fb(e,t){for(var i=e;;){if(i.tag===5){var a=i.stateNode;if(t)a=a.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{a=i.stateNode;var p=i.memoizedProps.style;p=p!=null&&p.hasOwnProperty("display")?p.display:null,a.style.display=o_("display",p)}}else if(i.tag===6)i.stateNode.nodeValue=t?"":i.memoizedProps;else if((i.tag!==23&&i.tag!==24||i.memoizedState===null||i===e)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}o(fb,"aj");function cb(e,t){if(Ya&&typeof Ya.onCommitFiberUnmount=="function")try{Ya.onCommitFiberUnmount($w,t)}catch(m){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var i=e=e.next;do{var a=i,p=a.destroy;if(a=a.tag,p!==void 0)if((a&4)!=0)Eb(t,i);else{a=t;try{p()}catch(m){ju(a,m)}}i=i.next}while(i!==e)}break;case 1:if(ab(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(m){ju(t,m)}break;case 5:ab(t);break;case 4:vb(e,t)}}o(cb,"bj");function pb(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}o(pb,"dj");function db(e){return e.tag===5||e.tag===3||e.tag===4}o(db,"ej");function hb(e){e:{for(var t=e.return;t!==null;){if(db(t))break e;t=t.return}throw Error(he(160))}var i=t;switch(t=i.stateNode,i.tag){case 5:var a=!1;break;case 3:t=t.containerInfo,a=!0;break;case 4:t=t.containerInfo,a=!0;break;default:throw Error(he(161))}i.flags&16&&(Md(t,""),i.flags&=-17);e:t:for(i=e;;){for(;i.sibling===null;){if(i.return===null||db(i.return)){i=null;break e}i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue t;i.child.return=i,i=i.child}if(!(i.flags&2)){i=i.stateNode;break e}}a?w1(e,i,t):x1(e,i,t)}o(hb,"fj");function w1(e,t,i){var a=e.tag,p=a===5||a===6;if(p)e=p?e.stateNode:e.stateNode.instance,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Pm));else if(a!==4&&(e=e.child,e!==null))for(w1(e,t,i),e=e.sibling;e!==null;)w1(e,t,i),e=e.sibling}o(w1,"gj");function x1(e,t,i){var a=e.tag,p=a===5||a===6;if(p)e=p?e.stateNode:e.stateNode.instance,t?i.insertBefore(e,t):i.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(x1(e,t,i),e=e.sibling;e!==null;)x1(e,t,i),e=e.sibling}o(x1,"hj");function vb(e,t){for(var i=t,a=!1,p,m;;){if(!a){a=i.return;e:for(;;){if(a===null)throw Error(he(160));switch(p=a.stateNode,a.tag){case 5:m=!1;break e;case 3:p=p.containerInfo,m=!0;break e;case 4:p=p.containerInfo,m=!0;break e}a=a.return}a=!0}if(i.tag===5||i.tag===6){e:for(var d=e,w=i,b=w;;)if(cb(d,b),b.child!==null&&b.tag!==4)b.child.return=b,b=b.child;else{if(b===w)break e;for(;b.sibling===null;){if(b.return===null||b.return===w)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}m?(d=p,w=i.stateNode,d.nodeType===8?d.parentNode.removeChild(w):d.removeChild(w)):p.removeChild(i.stateNode)}else if(i.tag===4){if(i.child!==null){p=i.stateNode.containerInfo,m=!0,i.child.return=i,i=i.child;continue}}else if(cb(e,i),i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return,i.tag===4&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}o(vb,"cj");function S1(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do(a.tag&3)==3&&(e=a.destroy,a.destroy=void 0,e!==void 0&&e()),a=a.next;while(a!==i)}return;case 1:return;case 5:if(i=t.stateNode,i!=null){a=t.memoizedProps;var p=e!==null?e.memoizedProps:a;e=t.type;var m=t.updateQueue;if(t.updateQueue=null,m!==null){for(i[Am]=a,e==="input"&&a.type==="radio"&&a.name!=null&&ZC(i,a),aw(e,p),t=aw(e,a),p=0;pp&&(p=d),i&=~m}if(i=p,i=In()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*mI(i/1960))-i,10{var BM=Object.create;var gc=Object.defineProperty,UM=Object.defineProperties,zM=Object.getOwnPropertyDescriptor,$M=Object.getOwnPropertyDescriptors,jM=Object.getOwnPropertyNames,tv=Object.getOwnPropertySymbols,qM=Object.getPrototypeOf,N0=Object.prototype.hasOwnProperty,cC=Object.prototype.propertyIsEnumerable;var L0=(e,t,i)=>t in e?gc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Ne=(e,t)=>{for(var i in t||(t={}))N0.call(t,i)&&L0(e,i,t[i]);if(tv)for(var i of tv(t))cC.call(t,i)&&L0(e,i,t[i]);return e},Ht=(e,t)=>UM(e,$M(t)),pC=e=>gc(e,"__esModule",{value:!0}),o=(e,t)=>gc(e,"name",{value:t,configurable:!0});var Us=(e,t)=>{var i={};for(var l in e)N0.call(e,l)&&t.indexOf(l)<0&&(i[l]=e[l]);if(e!=null&&tv)for(var l of tv(e))t.indexOf(l)<0&&cC.call(e,l)&&(i[l]=e[l]);return i};var fr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dC=(e,t)=>{pC(e);for(var i in t)gc(e,i,{get:t[i],enumerable:!0})},VM=(e,t,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of jM(t))!N0.call(e,l)&&l!=="default"&&gc(e,l,{get:()=>t[l],enumerable:!(i=zM(t,l))||i.enumerable});return e},pe=e=>VM(pC(gc(e!=null?BM(qM(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var es=(e,t,i)=>(L0(e,typeof t!="symbol"?t+"":t,i),i);var Ma=(e,t,i)=>new Promise((l,d)=>{var v=_=>{try{y(i.next(_))}catch(O){d(O)}},p=_=>{try{y(i.throw(_))}catch(O){d(O)}},y=_=>_.done?l(_.value):Promise.resolve(_.value).then(v,p);y((i=i.apply(e,t)).next())});var P0=fr((VI,mC)=>{"use strict";var hC=Object.getOwnPropertySymbols,KM=Object.prototype.hasOwnProperty,GM=Object.prototype.propertyIsEnumerable;function YM(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}o(YM,"toObject");function XM(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;var l=Object.getOwnPropertyNames(t).map(function(v){return t[v]});if(l.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(v){d[v]=v}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch(v){return!1}}o(XM,"shouldUseNative");mC.exports=XM()?Object.assign:function(e,t){for(var i,l=YM(e),d,v=1;v{"use strict";var M0=P0(),yc=60103,vC=60106;Et.Fragment=60107;Et.StrictMode=60108;Et.Profiler=60114;var gC=60109,yC=60110,wC=60112;Et.Suspense=60113;var xC=60115,SC=60116;typeof Symbol=="function"&&Symbol.for&&(xo=Symbol.for,yc=xo("react.element"),vC=xo("react.portal"),Et.Fragment=xo("react.fragment"),Et.StrictMode=xo("react.strict_mode"),Et.Profiler=xo("react.profiler"),gC=xo("react.provider"),yC=xo("react.context"),wC=xo("react.forward_ref"),Et.Suspense=xo("react.suspense"),xC=xo("react.memo"),SC=xo("react.lazy"));var xo,CC=typeof Symbol=="function"&&Symbol.iterator;function QM(e){return e===null||typeof e!="object"?null:(e=CC&&e[CC]||e["@@iterator"],typeof e=="function"?e:null)}o(QM,"y");function yd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i{"use strict";MC.exports=PC()});var HC=fr(At=>{"use strict";var xc,wd,iv,H0;typeof performance=="object"&&typeof performance.now=="function"?(AC=performance,At.unstable_now=function(){return AC.now()}):(W0=Date,DC=W0.now(),At.unstable_now=function(){return W0.now()-DC});var AC,W0,DC;typeof window=="undefined"||typeof MessageChannel!="function"?(Sc=null,B0=null,U0=o(function(){if(Sc!==null)try{var e=At.unstable_now();Sc(!0,e),Sc=null}catch(t){throw setTimeout(U0,0),t}},"w"),xc=o(function(e){Sc!==null?setTimeout(xc,0,e):(Sc=e,setTimeout(U0,0))},"f"),wd=o(function(e,t){B0=setTimeout(e,t)},"g"),iv=o(function(){clearTimeout(B0)},"h"),At.unstable_shouldYield=function(){return!1},H0=At.unstable_forceFrameRate=function(){}):(FC=window.setTimeout,RC=window.clearTimeout,typeof console!="undefined"&&(IC=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof IC!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),xd=!1,Sd=null,ov=-1,z0=5,$0=0,At.unstable_shouldYield=function(){return At.unstable_now()>=$0},H0=o(function(){},"k"),At.unstable_forceFrameRate=function(e){0>e||125>>1,d=e[l];if(d!==void 0&&0av(p,i))_!==void 0&&0>av(_,p)?(e[l]=_,e[y]=i,l=y):(e[l]=p,e[v]=i,l=v);else if(_!==void 0&&0>av(_,i))e[l]=_,e[y]=i,l=y;else break e}}return t}return null}o(lv,"K");function av(e,t){var i=e.sortIndex-t.sortIndex;return i!==0?i:e.id-t.id}o(av,"I");var zs=[],Aa=[],rA=1,So=null,Kn=3,uv=!1,qu=!1,Cd=!1;function V0(e){for(var t=ts(Aa);t!==null;){if(t.callback===null)lv(Aa);else if(t.startTime<=e)lv(Aa),t.sortIndex=t.expirationTime,q0(zs,t);else break;t=ts(Aa)}}o(V0,"T");function K0(e){if(Cd=!1,V0(e),!qu)if(ts(zs)!==null)qu=!0,xc(G0);else{var t=ts(Aa);t!==null&&wd(K0,t.startTime-e)}}o(K0,"U");function G0(e,t){qu=!1,Cd&&(Cd=!1,iv()),uv=!0;var i=Kn;try{for(V0(t),So=ts(zs);So!==null&&(!(So.expirationTime>t)||e&&!At.unstable_shouldYield());){var l=So.callback;if(typeof l=="function"){So.callback=null,Kn=So.priorityLevel;var d=l(So.expirationTime<=t);t=At.unstable_now(),typeof d=="function"?So.callback=d:So===ts(zs)&&lv(zs),V0(t)}else lv(zs);So=ts(zs)}if(So!==null)var v=!0;else{var p=ts(Aa);p!==null&&wd(K0,p.startTime-t),v=!1}return v}finally{So=null,Kn=i,uv=!1}}o(G0,"V");var nA=H0;At.unstable_IdlePriority=5;At.unstable_ImmediatePriority=1;At.unstable_LowPriority=4;At.unstable_NormalPriority=3;At.unstable_Profiling=null;At.unstable_UserBlockingPriority=2;At.unstable_cancelCallback=function(e){e.callback=null};At.unstable_continueExecution=function(){qu||uv||(qu=!0,xc(G0))};At.unstable_getCurrentPriorityLevel=function(){return Kn};At.unstable_getFirstCallbackNode=function(){return ts(zs)};At.unstable_next=function(e){switch(Kn){case 1:case 2:case 3:var t=3;break;default:t=Kn}var i=Kn;Kn=t;try{return e()}finally{Kn=i}};At.unstable_pauseExecution=function(){};At.unstable_requestPaint=nA;At.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var i=Kn;Kn=e;try{return t()}finally{Kn=i}};At.unstable_scheduleCallback=function(e,t,i){var l=At.unstable_now();switch(typeof i=="object"&&i!==null?(i=i.delay,i=typeof i=="number"&&0l?(e.sortIndex=i,q0(Aa,e),ts(zs)===null&&e===ts(Aa)&&(Cd?iv():Cd=!0,wd(K0,i-l))):(e.sortIndex=d,q0(zs,e),qu||uv||(qu=!0,xc(G0))),e};At.unstable_wrapCallback=function(e){var t=Kn;return function(){var i=Kn;Kn=t;try{return e.apply(this,arguments)}finally{Kn=i}}}});var BC=fr((XI,WC)=>{"use strict";WC.exports=HC()});var kb=fr(ko=>{"use strict";var fv=Fe(),cr=P0(),xn=BC();function ye(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;it}return!1}o(lA,"na");function pi(e,t,i,l,d,v,p){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=l,this.attributeNamespace=d,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=v,this.removeEmptyString=p}o(pi,"B");var Pn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pn[e]=new pi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pn[t]=new pi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pn[e]=new pi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pn[e]=new pi(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Pn[e]=new pi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pn[e]=new pi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pn[e]=new pi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pn[e]=new pi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pn[e]=new pi(e,5,!1,e.toLowerCase(),null,!1,!1)});var Y0=/[\-:]([a-z])/g;function X0(e){return e[1].toUpperCase()}o(X0,"pa");"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Y0,X0);Pn[t]=new pi(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Y0,X0);Pn[t]=new pi(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Y0,X0);Pn[t]=new pi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pn[e]=new pi(e,1,!1,e.toLowerCase(),null,!1,!1)});Pn.xlinkHref=new pi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pn[e]=new pi(e,1,!1,e.toLowerCase(),null,!0,!0)});function Q0(e,t,i,l){var d=Pn.hasOwnProperty(t)?Pn[t]:null,v=d!==null?d.type===0:l?!1:!(!(2y||d[p]!==v[y])return` +`+d[p].replace(" at new "," at ");while(1<=p&&0<=y);break}}}finally{lw=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?Od(e):""}o(hv,"Pa");function aA(e){switch(e.tag){case 5:return Od(e.type);case 16:return Od("Lazy");case 13:return Od("Suspense");case 19:return Od("SuspenseList");case 0:case 2:case 15:return e=hv(e.type,!1),e;case 11:return e=hv(e.type.render,!1),e;case 22:return e=hv(e.type._render,!1),e;case 1:return e=hv(e.type,!0),e;default:return""}}o(aA,"Qa");function _c(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Da:return"Fragment";case Gu:return"Portal";case bd:return"Profiler";case Z0:return"StrictMode";case Td:return"Suspense";case pv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ew:return(e.displayName||"Context")+".Consumer";case J0:return(e._context.displayName||"Context")+".Provider";case cv:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case dv:return _c(e.type);case rw:return _c(e._render);case tw:t=e._payload,e=e._init;try{return _c(e(t))}catch(i){}}return null}o(_c,"Ra");function Fa(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}o(Fa,"Sa");function KC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}o(KC,"Ta");function uA(e){var t=KC(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof i!="undefined"&&typeof i.get=="function"&&typeof i.set=="function"){var d=i.get,v=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(p){l=""+p,v.call(this,p)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(p){l=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}o(uA,"Ua");function mv(e){e._valueTracker||(e._valueTracker=uA(e))}o(mv,"Va");function GC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),l="";return e&&(l=KC(e)?e.checked?"true":"false":e.value),e=l,e!==i?(t.setValue(e),!0):!1}o(GC,"Wa");function vv(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}o(vv,"Xa");function aw(e,t){var i=t.checked;return cr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}o(aw,"Ya");function YC(e,t){var i=t.defaultValue==null?"":t.defaultValue,l=t.checked!=null?t.checked:t.defaultChecked;i=Fa(t.value!=null?t.value:i),e._wrapperState={initialChecked:l,initialValue:i,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}o(YC,"Za");function XC(e,t){t=t.checked,t!=null&&Q0(e,"checked",t,!1)}o(XC,"$a");function uw(e,t){XC(e,t);var i=Fa(t.value),l=t.type;if(i!=null)l==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fw(e,t.type,i):t.hasOwnProperty("defaultValue")&&fw(e,t.type,Fa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}o(uw,"ab");function QC(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var l=t.type;if(!(l!=="submit"&&l!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}o(QC,"cb");function fw(e,t,i){(t!=="number"||vv(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}o(fw,"bb");function fA(e){var t="";return fv.Children.forEach(e,function(i){i!=null&&(t+=i)}),t}o(fA,"db");function cw(e,t){return e=cr({children:void 0},t),(t=fA(t.children))&&(e.children=t),e}o(cw,"eb");function Ec(e,t,i,l){if(e=e.options,t){t={};for(var d=0;d=i.length))throw Error(ye(93));i=i[0]}t=i}t==null&&(t=""),i=t}e._wrapperState={initialValue:Fa(i)}}o(ZC,"hb");function JC(e,t){var i=Fa(t.value),l=Fa(t.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),t.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),l!=null&&(e.defaultValue=""+l)}o(JC,"ib");function e_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}o(e_,"jb");var dw={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function t_(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}o(t_,"lb");function hw(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?t_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}o(hw,"mb");var gv,r_=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,i,l,d){MSApp.execUnsafeLocalFunction(function(){return e(t,i,l,d)})}:e}(function(e,t){if(e.namespaceURI!==dw.svg||"innerHTML"in e)e.innerHTML=t;else{for(gv=gv||document.createElement("div"),gv.innerHTML=""+t.valueOf().toString()+"",t=gv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Nd(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}o(Nd,"pb");var Ld={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cA=["Webkit","ms","Moz","O"];Object.keys(Ld).forEach(function(e){cA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ld[t]=Ld[e]})});function n_(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||Ld.hasOwnProperty(e)&&Ld[e]?(""+t).trim():t+"px"}o(n_,"sb");function i_(e,t){e=e.style;for(var i in t)if(t.hasOwnProperty(i)){var l=i.indexOf("--")===0,d=n_(i,t[i],l);i==="float"&&(i="cssFloat"),l?e.setProperty(i,d):e[i]=d}}o(i_,"tb");var pA=cr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mw(e,t){if(t){if(pA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ye(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ye(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(ye(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ye(62))}}o(mw,"vb");function vw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}o(vw,"wb");function gw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}o(gw,"xb");var yw=null,bc=null,Tc=null;function o_(e){if(e=Gd(e)){if(typeof yw!="function")throw Error(ye(280));var t=e.stateNode;t&&(t=Iv(t),yw(e.stateNode,e.type,t))}}o(o_,"Bb");function s_(e){bc?Tc?Tc.push(e):Tc=[e]:bc=e}o(s_,"Eb");function l_(){if(bc){var e=bc,t=Tc;if(Tc=bc=null,o_(e),t)for(e=0;el?0:1<i;i++)t.push(e);return t}o(Pw,"Zc");function Ev(e,t,i){e.pendingLanes|=t;var l=t-1;e.suspendedLanes&=l,e.pingedLanes&=l,e=e.eventTimes,t=31-Wa(t),e[t]=i}o(Ev,"$c");var Wa=Math.clz32?Math.clz32:OA,TA=Math.log,kA=Math.LN2;function OA(e){return e===0?32:31-(TA(e)/kA|0)|0}o(OA,"ad");var NA=xn.unstable_UserBlockingPriority,LA=xn.unstable_runWithPriority,bv=!0;function PA(e,t,i,l){Yu||xw();var d=Mw,v=Yu;Yu=!0;try{a_(d,e,t,i,l)}finally{(Yu=v)||Cw()}}o(PA,"gd");function MA(e,t,i,l){LA(NA,Mw.bind(null,e,t,i,l))}o(MA,"id");function Mw(e,t,i,l){if(bv){var d;if((d=(t&4)==0)&&0<$s.length&&-1=Ud),D_=String.fromCharCode(32),F_=!1;function R_(e,t){switch(e){case"keyup":return tD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}o(R_,"ge");function I_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}o(I_,"he");var Mc=!1;function nD(e,t){switch(e){case"compositionend":return I_(t);case"keypress":return t.which!==32?null:(F_=!0,D_);case"textInput":return e=t.data,e===D_&&F_?null:e;default:return null}}o(nD,"je");function iD(e,t){if(Mc)return e==="compositionend"||!Bw&&R_(e,t)?(e=O_(),Tv=Dw=Ba=null,Mc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:i,offset:t-e};e=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=$_(i)}}o(j_,"Le");function q_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?q_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}o(q_,"Me");function V_(){for(var e=window,t=vv();t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch(l){i=!1}if(i)e=t.contentWindow;else break;t=vv(e.document)}return t}o(V_,"Ne");function zw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}o(zw,"Oe");var hD=Ll&&"documentMode"in document&&11>=document.documentMode,Ac=null,$w=null,qd=null,jw=!1;function K_(e,t,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;jw||Ac==null||Ac!==vv(l)||(l=Ac,"selectionStart"in l&&zw(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),qd&&jd(qd,l)||(qd=l,l=Av($w,"onSelect"),0Hc||(e.current=Qw[Hc],Qw[Hc]=null,Hc--)}o(or,"H");function Cr(e,t){Hc++,Qw[Hc]=e.current,e.current=t}o(Cr,"I");var $a={},Gn=za($a),Pi=za(!1),Zu=$a;function Wc(e,t){var i=e.type.contextTypes;if(!i)return $a;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===t)return l.__reactInternalMemoizedMaskedChildContext;var d={},v;for(v in i)d[v]=t[v];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=d),d}o(Wc,"Ef");function Mi(e){return e=e.childContextTypes,e!=null}o(Mi,"Ff");function Hv(){or(Pi),or(Gn)}o(Hv,"Gf");function uE(e,t,i){if(Gn.current!==$a)throw Error(ye(168));Cr(Gn,t),Cr(Pi,i)}o(uE,"Hf");function fE(e,t,i){var l=e.stateNode;if(e=t.childContextTypes,typeof l.getChildContext!="function")return i;l=l.getChildContext();for(var d in l)if(!(d in e))throw Error(ye(108,_c(t)||"Unknown",d));return cr({},i,l)}o(fE,"If");function Wv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$a,Zu=Gn.current,Cr(Gn,e),Cr(Pi,Pi.current),!0}o(Wv,"Jf");function cE(e,t,i){var l=e.stateNode;if(!l)throw Error(ye(169));i?(e=fE(e,t,Zu),l.__reactInternalMemoizedMergedChildContext=e,or(Pi),or(Gn),Cr(Gn,e)):or(Pi),Cr(Pi,i)}o(cE,"Kf");var Zw=null,Ju=null,gD=xn.unstable_runWithPriority,Jw=xn.unstable_scheduleCallback,e1=xn.unstable_cancelCallback,yD=xn.unstable_shouldYield,pE=xn.unstable_requestPaint,t1=xn.unstable_now,wD=xn.unstable_getCurrentPriorityLevel,Bv=xn.unstable_ImmediatePriority,dE=xn.unstable_UserBlockingPriority,hE=xn.unstable_NormalPriority,mE=xn.unstable_LowPriority,vE=xn.unstable_IdlePriority,r1={},xD=pE!==void 0?pE:function(){},Pl=null,Uv=null,n1=!1,gE=t1(),Yn=1e4>gE?t1:function(){return t1()-gE};function Bc(){switch(wD()){case Bv:return 99;case dE:return 98;case hE:return 97;case mE:return 96;case vE:return 95;default:throw Error(ye(332))}}o(Bc,"eg");function yE(e){switch(e){case 99:return Bv;case 98:return dE;case 97:return hE;case 96:return mE;case 95:return vE;default:throw Error(ye(332))}}o(yE,"fg");function ef(e,t){return e=yE(e),gD(e,t)}o(ef,"gg");function Yd(e,t,i){return e=yE(e),Jw(e,t,i)}o(Yd,"hg");function js(){if(Uv!==null){var e=Uv;Uv=null,e1(e)}wE()}o(js,"ig");function wE(){if(!n1&&Pl!==null){n1=!0;var e=0;try{var t=Pl;ef(99,function(){for(;ehe?(me=ie,ie=null):me=ie.sibling;var xe=B(F,ie,R[he],K);if(xe===null){ie===null&&(ie=me);break}e&&ie&&xe.alternate===null&&t(F,ie),P=v(xe,P,he),ue===null?V=xe:ue.sibling=xe,ue=xe,ie=me}if(he===R.length)return i(F,ie),V;if(ie===null){for(;hehe?(me=ie,ie=null):me=ie.sibling;var Ve=B(F,ie,xe.value,K);if(Ve===null){ie===null&&(ie=me);break}e&&ie&&Ve.alternate===null&&t(F,ie),P=v(Ve,P,he),ue===null?V=Ve:ue.sibling=Ve,ue=Ve,ie=me}if(xe.done)return i(F,ie),V;if(ie===null){for(;!xe.done;he++,xe=R.next())xe=Y(F,xe.value,K),xe!==null&&(P=v(xe,P,he),ue===null?V=xe:ue.sibling=xe,ue=xe);return V}for(ie=l(F,ie);!xe.done;he++,xe=R.next())xe=X(ie,F,he,xe.value,K),xe!==null&&(e&&xe.alternate!==null&&ie.delete(xe.key===null?he:xe.key),P=v(xe,P,he),ue===null?V=xe:ue.sibling=xe,ue=xe);return e&&ie.forEach(function(Qe){return t(F,Qe)}),V}return o(Q,"w"),function(F,P,R,K){var V=typeof R=="object"&&R!==null&&R.type===Da&&R.key===null;V&&(R=R.props.children);var ue=typeof R=="object"&&R!==null;if(ue)switch(R.$$typeof){case Ed:e:{for(ue=R.key,V=P;V!==null;){if(V.key===ue){switch(V.tag){case 7:if(R.type===Da){i(F,V.sibling),P=d(V,R.props.children),P.return=F,F=P;break e}break;default:if(V.elementType===R.type){i(F,V.sibling),P=d(V,R.props),P.ref=Qd(F,V,R),P.return=F,F=P;break e}}i(F,V);break}else t(F,V);V=V.sibling}R.type===Da?(P=Xc(R.props.children,F.mode,K,R.key),P.return=F,F=P):(K=pg(R.type,R.key,R.props,null,F.mode,K),K.ref=Qd(F,P,R),K.return=F,F=K)}return p(F);case Gu:e:{for(V=R.key;P!==null;){if(P.key===V)if(P.tag===4&&P.stateNode.containerInfo===R.containerInfo&&P.stateNode.implementation===R.implementation){i(F,P.sibling),P=d(P,R.children||[]),P.return=F,F=P;break e}else{i(F,P);break}else t(F,P);P=P.sibling}P=j1(R,F.mode,K),P.return=F,F=P}return p(F)}if(typeof R=="string"||typeof R=="number")return R=""+R,P!==null&&P.tag===6?(i(F,P.sibling),P=d(P,R),P.return=F,F=P):(i(F,P),P=$1(R,F.mode,K),P.return=F,F=P),p(F);if(Kv(R))return te(F,P,R,K);if(kd(R))return Q(F,P,R,K);if(ue&&Gv(F,R),typeof R=="undefined"&&!V)switch(F.tag){case 1:case 22:case 0:case 11:case 15:throw Error(ye(152,_c(F.type)||"Component"))}return i(F,P)}}o(OE,"Sg");var Yv=OE(!0),NE=OE(!1),Zd={},qs=za(Zd),Jd=za(Zd),eh=za(Zd);function tf(e){if(e===Zd)throw Error(ye(174));return e}o(tf,"dh");function a1(e,t){switch(Cr(eh,t),Cr(Jd,e),Cr(qs,Zd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hw(t,e)}or(qs),Cr(qs,t)}o(a1,"eh");function $c(){or(qs),or(Jd),or(eh)}o($c,"fh");function LE(e){tf(eh.current);var t=tf(qs.current),i=hw(t,e.type);t!==i&&(Cr(Jd,e),Cr(qs,i))}o(LE,"gh");function u1(e){Jd.current===e&&(or(qs),or(Jd))}o(u1,"hh");var _r=za(0);function Xv(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!=0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}o(Xv,"ih");var Ml=null,Ka=null,Vs=!1;function PE(e,t){var i=To(5,null,null,0);i.elementType="DELETED",i.type="DELETED",i.stateNode=t,i.return=e,i.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=i,e.lastEffect=i):e.firstEffect=e.lastEffect=i}o(PE,"mh");function ME(e,t){switch(e.tag){case 5:var i=e.type;return t=t.nodeType!==1||i.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}o(ME,"oh");function f1(e){if(Vs){var t=Ka;if(t){var i=t;if(!ME(e,t)){if(t=Fc(i.nextSibling),!t||!ME(e,t)){e.flags=e.flags&-1025|2,Vs=!1,Ml=e;return}PE(Ml,i)}Ml=e,Ka=Fc(t.firstChild)}else e.flags=e.flags&-1025|2,Vs=!1,Ml=e}}o(f1,"ph");function AE(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ml=e}o(AE,"qh");function Qv(e){if(e!==Ml)return!1;if(!Vs)return AE(e),Vs=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Gw(t,e.memoizedProps))for(t=Ka;t;)PE(e,t),t=Fc(t.nextSibling);if(AE(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ye(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(t===0){Ka=Fc(e.nextSibling);break e}t--}else i!=="$"&&i!=="$!"&&i!=="$?"||t++}e=e.nextSibling}Ka=null}}else Ka=Ml?Fc(e.stateNode.nextSibling):null;return!0}o(Qv,"rh");function c1(){Ka=Ml=null,Vs=!1}o(c1,"sh");var jc=[];function p1(){for(var e=0;ev))throw Error(ye(301));v+=1,Mn=Xn=null,t.updateQueue=null,th.current=bD,e=i(l,d)}while(nh)}if(th.current=rg,t=Xn!==null&&Xn.next!==null,rh=0,Mn=Xn=Dr=null,Zv=!1,t)throw Error(ye(300));return e}o(h1,"Ch");function rf(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mn===null?Dr.memoizedState=Mn=e:Mn=Mn.next=e,Mn}o(rf,"Hh");function nf(){if(Xn===null){var e=Dr.alternate;e=e!==null?e.memoizedState:null}else e=Xn.next;var t=Mn===null?Dr.memoizedState:Mn.next;if(t!==null)Mn=t,Xn=e;else{if(e===null)throw Error(ye(310));Xn=e,e={memoizedState:Xn.memoizedState,baseState:Xn.baseState,baseQueue:Xn.baseQueue,queue:Xn.queue,next:null},Mn===null?Dr.memoizedState=Mn=e:Mn=Mn.next=e}return Mn}o(nf,"Ih");function Ks(e,t){return typeof t=="function"?t(e):t}o(Ks,"Jh");function ih(e){var t=nf(),i=t.queue;if(i===null)throw Error(ye(311));i.lastRenderedReducer=e;var l=Xn,d=l.baseQueue,v=i.pending;if(v!==null){if(d!==null){var p=d.next;d.next=v.next,v.next=p}l.baseQueue=d=v,i.pending=null}if(d!==null){d=d.next,l=l.baseState;var y=p=v=null,_=d;do{var O=_.lane;if((rh&O)===O)y!==null&&(y=y.next={lane:0,action:_.action,eagerReducer:_.eagerReducer,eagerState:_.eagerState,next:null}),l=_.eagerReducer===e?_.eagerState:e(l,_.action);else{var D={lane:O,action:_.action,eagerReducer:_.eagerReducer,eagerState:_.eagerState,next:null};y===null?(p=y=D,v=l):y=y.next=D,Dr.lanes|=O,ah|=O}_=_.next}while(_!==null&&_!==d);y===null?v=l:y.next=p,Co(l,t.memoizedState)||(ns=!0),t.memoizedState=l,t.baseState=v,t.baseQueue=y,i.lastRenderedState=l}return[t.memoizedState,i.dispatch]}o(ih,"Kh");function oh(e){var t=nf(),i=t.queue;if(i===null)throw Error(ye(311));i.lastRenderedReducer=e;var l=i.dispatch,d=i.pending,v=t.memoizedState;if(d!==null){i.pending=null;var p=d=d.next;do v=e(v,p.action),p=p.next;while(p!==d);Co(v,t.memoizedState)||(ns=!0),t.memoizedState=v,t.baseQueue===null&&(t.baseState=v),i.lastRenderedState=v}return[v,l]}o(oh,"Lh");function DE(e,t,i){var l=t._getVersion;l=l(t._source);var d=t._workInProgressVersionPrimary;if(d!==null?e=d===l:(e=e.mutableReadLanes,(e=(rh&e)===e)&&(t._workInProgressVersionPrimary=l,jc.push(t))),e)return i(t._source);throw jc.push(t),Error(ye(350))}o(DE,"Mh");function FE(e,t,i,l){var d=di;if(d===null)throw Error(ye(349));var v=t._getVersion,p=v(t._source),y=th.current,_=y.useState(function(){return DE(d,t,i)}),O=_[1],D=_[0];_=Mn;var Y=e.memoizedState,B=Y.refs,X=B.getSnapshot,te=Y.source;Y=Y.subscribe;var Q=Dr;return e.memoizedState={refs:B,source:t,subscribe:l},y.useEffect(function(){B.getSnapshot=i,B.setSnapshot=O;var F=v(t._source);if(!Co(p,F)){F=i(t._source),Co(D,F)||(O(F),F=Ya(Q),d.mutableReadLanes|=F&d.pendingLanes),F=d.mutableReadLanes,d.entangledLanes|=F;for(var P=d.entanglements,R=F;0i?98:i,function(){e(!0)}),ef(97<\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=p.createElement(i,{is:l.is}):(e=p.createElement(i),i==="select"&&(p=e,l.multiple?p.multiple=!0:l.size&&(p.size=l.size))):e=p.createElementNS(e,i),e[Ua]=t,e[Rv]=l,rb(e,t,!1,!1),t.stateNode=e,p=vw(i,l),i){case"dialog":ir("cancel",e),ir("close",e),d=l;break;case"iframe":case"object":case"embed":ir("load",e),d=l;break;case"video":case"audio":for(d=0;dD1&&(t.flags|=64,v=!0,lh(l,!1),t.lanes=33554432)}else{if(!v)if(e=Xv(p),e!==null){if(t.flags|=64,v=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),lh(l,!0),l.tail===null&&l.tailMode==="hidden"&&!p.alternate&&!Vs)return t=t.lastEffect=l.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Yn()-l.renderingStartTime>D1&&i!==1073741824&&(t.flags|=64,v=!0,lh(l,!1),t.lanes=33554432);l.isBackwards?(p.sibling=t.child,t.child=p):(i=l.last,i!==null?i.sibling=p:t.child=p,l.last=p)}return l.tail!==null?(i=l.tail,l.rendering=i,l.tail=i.sibling,l.lastEffect=t.lastEffect,l.renderingStartTime=Yn(),i.sibling=null,t=_r.current,Cr(_r,v?t&1|2:t&1),i):null;case 23:case 24:return B1(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&l.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(ye(156,t.tag))}o(kD,"Gi");function OD(e){switch(e.tag){case 1:Mi(e.type)&&Hv();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if($c(),or(Pi),or(Gn),p1(),t=e.flags,(t&64)!=0)throw Error(ye(285));return e.flags=t&-4097|64,e;case 5:return u1(e),null;case 13:return or(_r),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return or(_r),null;case 4:return $c(),null;case 10:return o1(e),null;case 23:case 24:return B1(),null;default:return null}}o(OD,"Li");function E1(e,t){try{var i="",l=t;do i+=aA(l),l=l.return;while(l);var d=i}catch(v){d=` +Error generating stack: `+v.message+` +`+v.stack}return{value:e,source:t,stack:d}}o(E1,"Mi");function b1(e,t){try{console.error(t.value)}catch(i){setTimeout(function(){throw i})}}o(b1,"Ni");var ND=typeof WeakMap=="function"?WeakMap:Map;function ob(e,t,i){i=qa(-1,i),i.tag=3,i.payload={element:null};var l=t.value;return i.callback=function(){sg||(sg=!0,F1=l),b1(e,t)},i}o(ob,"Pi");function sb(e,t,i){i=qa(-1,i),i.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var d=t.value;i.payload=function(){return b1(e,t),l(d)}}var v=e.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(i.callback=function(){typeof l!="function"&&(Gs===null?Gs=new Set([this]):Gs.add(this),b1(e,t));var p=t.stack;this.componentDidCatch(t.value,{componentStack:p!==null?p:""})}),i}o(sb,"Si");var LD=typeof WeakSet=="function"?WeakSet:Set;function lb(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(i){Za(e,i)}else t.current=null}o(lb,"Vi");function PD(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var i=e.memoizedProps,l=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?i:rs(t.type,i),l),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&Yw(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(ye(163))}o(PD,"Xi");function MD(e,t,i){switch(i.tag){case 0:case 11:case 15:case 22:if(t=i.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)==3){var l=e.create;e.destroy=l()}e=e.next}while(e!==t)}if(t=i.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var d=e;l=d.next,d=d.tag,(d&4)!=0&&(d&1)!=0&&(Cb(i,e),BD(i,e)),e=l}while(e!==t)}return;case 1:e=i.stateNode,i.flags&4&&(t===null?e.componentDidMount():(l=i.elementType===i.type?t.memoizedProps:rs(i.type,t.memoizedProps),e.componentDidUpdate(l,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=i.updateQueue,t!==null&&_E(i,t,e);return;case 3:if(t=i.updateQueue,t!==null){if(e=null,i.child!==null)switch(i.child.tag){case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}_E(i,t,e)}return;case 5:e=i.stateNode,t===null&&i.flags&4&&iE(i.type,i.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:i.memoizedState===null&&(i=i.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&x_(i))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(ye(163))}o(MD,"Yi");function ab(e,t){for(var i=e;;){if(i.tag===5){var l=i.stateNode;if(t)l=l.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none";else{l=i.stateNode;var d=i.memoizedProps.style;d=d!=null&&d.hasOwnProperty("display")?d.display:null,l.style.display=n_("display",d)}}else if(i.tag===6)i.stateNode.nodeValue=t?"":i.memoizedProps;else if((i.tag!==23&&i.tag!==24||i.memoizedState===null||i===e)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}o(ab,"aj");function ub(e,t){if(Ju&&typeof Ju.onCommitFiberUnmount=="function")try{Ju.onCommitFiberUnmount(Zw,t)}catch(v){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var i=e=e.next;do{var l=i,d=l.destroy;if(l=l.tag,d!==void 0)if((l&4)!=0)Cb(t,i);else{l=t;try{d()}catch(v){Za(l,v)}}i=i.next}while(i!==e)}break;case 1:if(lb(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(v){Za(t,v)}break;case 5:lb(t);break;case 4:db(e,t)}}o(ub,"bj");function fb(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}o(fb,"dj");function cb(e){return e.tag===5||e.tag===3||e.tag===4}o(cb,"ej");function pb(e){e:{for(var t=e.return;t!==null;){if(cb(t))break e;t=t.return}throw Error(ye(160))}var i=t;switch(t=i.stateNode,i.tag){case 5:var l=!1;break;case 3:t=t.containerInfo,l=!0;break;case 4:t=t.containerInfo,l=!0;break;default:throw Error(ye(161))}i.flags&16&&(Nd(t,""),i.flags&=-17);e:t:for(i=e;;){for(;i.sibling===null;){if(i.return===null||cb(i.return)){i=null;break e}i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue t;i.child.return=i,i=i.child}if(!(i.flags&2)){i=i.stateNode;break e}}l?T1(e,i,t):k1(e,i,t)}o(pb,"fj");function T1(e,t,i){var l=e.tag,d=l===5||l===6;if(d)e=d?e.stateNode:e.stateNode.instance,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Dv));else if(l!==4&&(e=e.child,e!==null))for(T1(e,t,i),e=e.sibling;e!==null;)T1(e,t,i),e=e.sibling}o(T1,"gj");function k1(e,t,i){var l=e.tag,d=l===5||l===6;if(d)e=d?e.stateNode:e.stateNode.instance,t?i.insertBefore(e,t):i.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(k1(e,t,i),e=e.sibling;e!==null;)k1(e,t,i),e=e.sibling}o(k1,"hj");function db(e,t){for(var i=t,l=!1,d,v;;){if(!l){l=i.return;e:for(;;){if(l===null)throw Error(ye(160));switch(d=l.stateNode,l.tag){case 5:v=!1;break e;case 3:d=d.containerInfo,v=!0;break e;case 4:d=d.containerInfo,v=!0;break e}l=l.return}l=!0}if(i.tag===5||i.tag===6){e:for(var p=e,y=i,_=y;;)if(ub(p,_),_.child!==null&&_.tag!==4)_.child.return=_,_=_.child;else{if(_===y)break e;for(;_.sibling===null;){if(_.return===null||_.return===y)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}v?(p=d,y=i.stateNode,p.nodeType===8?p.parentNode.removeChild(y):p.removeChild(y)):d.removeChild(i.stateNode)}else if(i.tag===4){if(i.child!==null){d=i.stateNode.containerInfo,v=!0,i.child.return=i,i=i.child;continue}}else if(ub(e,i),i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return,i.tag===4&&(l=!1)}i.sibling.return=i.return,i=i.sibling}}o(db,"cj");function O1(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do(l.tag&3)==3&&(e=l.destroy,l.destroy=void 0,e!==void 0&&e()),l=l.next;while(l!==i)}return;case 1:return;case 5:if(i=t.stateNode,i!=null){l=t.memoizedProps;var d=e!==null?e.memoizedProps:l;e=t.type;var v=t.updateQueue;if(t.updateQueue=null,v!==null){for(i[Rv]=l,e==="input"&&l.type==="radio"&&l.name!=null&&XC(i,l),vw(e,d),t=vw(e,l),d=0;dd&&(d=p),i&=~v}if(i=d,i=Yn()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*DD(i/1960))-i,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}wn!==5&&(wn=2),b=g1(b,w),z=d;do{switch(z.tag){case 3:m=b,z.flags|=4096,t&=-t,z.lanes|=t;var fe=lb(z,m,t);EE(z,fe);break e;case 1:m=b;var se=z.type,ce=z.stateNode;if((z.flags&64)==0&&(typeof se.getDerivedStateFromError=="function"||ce!==null&&typeof ce.componentDidCatch=="function"&&(Ps===null||!Ps.has(ce)))){z.flags|=4096,t&=-t,z.lanes|=t;var me=ub(z,m,t);EE(z,me);break e}}z=z.return}while(z!==null)}_b(i)}catch(ye){t=ye,Ur===i&&i!==null&&(Ur=i=i.return);continue}break}while(1)}o(xb,"Sj");function Sb(){var e=tg.current;return tg.current=Jm,e===null?Jm:e}o(Sb,"Pj");function mh(e,t){var i=Ue;Ue|=16;var a=Sb();Jn===e&&Rn===t||Kc(e,t);do try{yI();break}catch(p){xb(e,p)}while(1);if(Qw(),Ue=i,tg.current=a,Ur!==null)throw Error(he(261));return Jn=null,Rn=0,wn}o(mh,"Tj");function yI(){for(;Ur!==null;)Cb(Ur)}o(yI,"ak");function wI(){for(;Ur!==null&&!eI();)Cb(Ur)}o(wI,"Rj");function Cb(e){var t=Tb(e.alternate,e,ef);e.memoizedProps=e.pendingProps,t===null?_b(e):Ur=t,C1.current=null}o(Cb,"bk");function _b(e){var t=e;do{var i=t.alternate;if(e=t.return,(t.flags&2048)==0){if(i=aI(i,t,ef),i!==null){Ur=i;return}if(i=t,i.tag!==24&&i.tag!==23||i.memoizedState===null||(ef&1073741824)!=0||(i.mode&4)==0){for(var a=0,p=i.child;p!==null;)a|=p.lanes|p.childLanes,p=p.sibling;i.childLanes=a}e!==null&&(e.flags&2048)==0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1d&&(w=d,d=fe,fe=w),w=V_(W,fe),m=V_(W,d),w&&m&&(V.rangeCount!==1||V.anchorNode!==w.node||V.anchorOffset!==w.offset||V.focusNode!==m.node||V.focusOffset!==m.offset)&&(K=K.createRange(),K.setStart(w.node,w.offset),V.removeAllRanges(),fe>d?(V.addRange(K),V.extend(m.node,m.offset)):(K.setEnd(m.node,m.offset),V.addRange(K)))))),K=[],V=W;V=V.parentNode;)V.nodeType===1&&K.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof W.focus=="function"&&W.focus(),W=0;WIn()-T1?Kc(e,0):E1|=i),so(e,t)}o(EI,"Yj");function bI(e,t){var i=e.stateNode;i!==null&&i.delete(t),t=0,t===0&&(t=e.mode,(t&2)==0?t=1:(t&4)==0?t=Hc()===99?1:2:(wl===0&&(wl=qc),t=Nc(62914560&~wl),t===0&&(t=4194304))),i=Ii(),e=lg(e,t),e!==null&&(Sm(e,t,i),so(e,i))}o(bI,"lj");var Tb;Tb=o(function(e,t,i){var a=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||mi.current)Ho=!0;else if((i&a)!=0)Ho=(e.flags&16384)!=0;else{switch(Ho=!1,t.tag){case 3:QE(t),i1();break;case 5:ME(t);break;case 1:gi(t.type)&&Fm(t);break;case 4:t1(t,t.stateNode.containerInfo);break;case 10:a=t.memoizedProps.value;var p=t.type._context;sr(Hm,p._currentValue),p._currentValue=a;break;case 13:if(t.memoizedState!==null)return(i&t.child.childLanes)!=0?ZE(e,t,i):(sr(lr,lr.current&1),t=gl(e,t,i),t!==null?t.sibling:null);sr(lr,lr.current&1);break;case 19:if(a=(i&t.childLanes)!=0,(e.flags&64)!=0){if(a)return nb(e,t,i);t.flags|=64}if(p=t.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),sr(lr,lr.current),a)break;return null;case 23:case 24:return t.lanes=0,p1(e,t,i)}return gl(e,t,i)}else Ho=!1;switch(t.lanes=0,t.tag){case 2:if(a=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,p=Wc(t,Dn.current),Bc(t,i),p=l1(null,t,a,e,p,i),t.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,gi(a)){var m=!0;Fm(t)}else m=!1;t.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Jw(t);var d=a.getDerivedStateFromProps;typeof d=="function"&&zm(t,a,d,e),p.updater=jm,t.stateNode=p,p._reactInternals=t,e1(t,a,e,i),t=h1(null,t,a,!0,m,i)}else t.tag=0,wi(null,t,p,i),t=t.child;return t;case 16:p=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,m=p._init,p=m(p._payload),t.type=p,m=t.tag=OI(p),e=Wo(p,e),m){case 0:t=d1(null,t,p,e,i);break e;case 1:t=XE(null,t,p,e,i);break e;case 11:t=VE(null,t,p,e,i);break e;case 14:t=GE(null,t,p,Wo(p.type,e),a,i);break e}throw Error(he(306,p,""))}return t;case 0:return a=t.type,p=t.pendingProps,p=t.elementType===a?p:Wo(a,p),d1(e,t,a,p,i);case 1:return a=t.type,p=t.pendingProps,p=t.elementType===a?p:Wo(a,p),XE(e,t,a,p,i);case 3:if(QE(t),a=t.updateQueue,e===null||a===null)throw Error(he(282));if(a=t.pendingProps,p=t.memoizedState,p=p!==null?p.element:null,_E(e,t),Jd(t,a,null,i),a=t.memoizedState.element,a===p)i1(),t=gl(e,t,i);else{if(p=t.stateNode,(m=p.hydrate)&&(Wu=Dc(t.stateNode.containerInfo.firstChild),ml=t,m=Ns=!0),m){if(e=p.mutableSourceEagerHydrationData,e!=null)for(p=0;p{"use strict";function Lb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lb)}catch(e){console.error(e)}}o(Lb,"checkDCE");Lb(),Pb.exports=Nb()});var Ab=Gt((LR,Mb)=>{"use strict";var DI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Mb.exports=DI});var Rb=Gt((PR,Fb)=>{"use strict";var II=Ab();function Db(){}o(Db,"emptyFunction");function Ib(){}o(Ib,"emptyFunctionWithReset");Ib.resetWarningCache=Db;Fb.exports=function(){function e(a,p,m,d,w,b){if(b!==II){var L=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw L.name="Invariant Violation",L}}o(e,"shim"),e.isRequired=e;function t(){return e}o(t,"getShim");var i={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ib,resetWarningCache:Db};return i.PropTypes=i,i}});var Hb=Gt((DR,Wb)=>{Wb.exports=Rb()();var MR,AR});var Vb=Gt(Ot=>{"use strict";var rn=typeof Symbol=="function"&&Symbol.for,z1=rn?Symbol.for("react.element"):60103,j1=rn?Symbol.for("react.portal"):60106,dg=rn?Symbol.for("react.fragment"):60107,hg=rn?Symbol.for("react.strict_mode"):60108,vg=rn?Symbol.for("react.profiler"):60114,mg=rn?Symbol.for("react.provider"):60109,gg=rn?Symbol.for("react.context"):60110,q1=rn?Symbol.for("react.async_mode"):60111,yg=rn?Symbol.for("react.concurrent_mode"):60111,wg=rn?Symbol.for("react.forward_ref"):60112,xg=rn?Symbol.for("react.suspense"):60113,HI=rn?Symbol.for("react.suspense_list"):60120,Sg=rn?Symbol.for("react.memo"):60115,Cg=rn?Symbol.for("react.lazy"):60116,UI=rn?Symbol.for("react.block"):60121,BI=rn?Symbol.for("react.fundamental"):60117,zI=rn?Symbol.for("react.responder"):60118,jI=rn?Symbol.for("react.scope"):60119;function Fi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case z1:switch(e=e.type,e){case q1:case yg:case dg:case vg:case hg:case xg:return e;default:switch(e=e&&e.$$typeof,e){case gg:case wg:case Cg:case Sg:case mg:return e;default:return t}}case j1:return t}}}o(Fi,"z");function $b(e){return Fi(e)===yg}o($b,"A");Ot.AsyncMode=q1;Ot.ConcurrentMode=yg;Ot.ContextConsumer=gg;Ot.ContextProvider=mg;Ot.Element=z1;Ot.ForwardRef=wg;Ot.Fragment=dg;Ot.Lazy=Cg;Ot.Memo=Sg;Ot.Portal=j1;Ot.Profiler=vg;Ot.StrictMode=hg;Ot.Suspense=xg;Ot.isAsyncMode=function(e){return $b(e)||Fi(e)===q1};Ot.isConcurrentMode=$b;Ot.isContextConsumer=function(e){return Fi(e)===gg};Ot.isContextProvider=function(e){return Fi(e)===mg};Ot.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===z1};Ot.isForwardRef=function(e){return Fi(e)===wg};Ot.isFragment=function(e){return Fi(e)===dg};Ot.isLazy=function(e){return Fi(e)===Cg};Ot.isMemo=function(e){return Fi(e)===Sg};Ot.isPortal=function(e){return Fi(e)===j1};Ot.isProfiler=function(e){return Fi(e)===vg};Ot.isStrictMode=function(e){return Fi(e)===hg};Ot.isSuspense=function(e){return Fi(e)===xg};Ot.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===dg||e===yg||e===vg||e===hg||e===xg||e===HI||typeof e=="object"&&e!==null&&(e.$$typeof===Cg||e.$$typeof===Sg||e.$$typeof===mg||e.$$typeof===gg||e.$$typeof===wg||e.$$typeof===BI||e.$$typeof===zI||e.$$typeof===jI||e.$$typeof===UI)};Ot.typeOf=Fi});var Kb=Gt((YR,Gb)=>{"use strict";Gb.exports=Vb()});var tT=Gt((XR,eT)=>{"use strict";var $1=Kb(),qI={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$I={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},VI={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Yb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},V1={};V1[$1.ForwardRef]=VI;V1[$1.Memo]=Yb;function Xb(e){return $1.isMemo(e)?Yb:V1[e.$$typeof]||qI}o(Xb,"getStatics");var GI=Object.defineProperty,KI=Object.getOwnPropertyNames,Qb=Object.getOwnPropertySymbols,YI=Object.getOwnPropertyDescriptor,XI=Object.getPrototypeOf,Zb=Object.prototype;function Jb(e,t,i){if(typeof t!="string"){if(Zb){var a=XI(t);a&&a!==Zb&&Jb(e,a,i)}var p=KI(t);Qb&&(p=p.concat(Qb(t)));for(var m=Xb(e),d=Xb(t),w=0;w{"use strict";var nn=typeof Symbol=="function"&&Symbol.for,G1=nn?Symbol.for("react.element"):60103,K1=nn?Symbol.for("react.portal"):60106,_g=nn?Symbol.for("react.fragment"):60107,Eg=nn?Symbol.for("react.strict_mode"):60108,bg=nn?Symbol.for("react.profiler"):60114,Tg=nn?Symbol.for("react.provider"):60109,Og=nn?Symbol.for("react.context"):60110,Y1=nn?Symbol.for("react.async_mode"):60111,kg=nn?Symbol.for("react.concurrent_mode"):60111,Ng=nn?Symbol.for("react.forward_ref"):60112,Lg=nn?Symbol.for("react.suspense"):60113,QI=nn?Symbol.for("react.suspense_list"):60120,Pg=nn?Symbol.for("react.memo"):60115,Mg=nn?Symbol.for("react.lazy"):60116,ZI=nn?Symbol.for("react.block"):60121,JI=nn?Symbol.for("react.fundamental"):60117,eF=nn?Symbol.for("react.responder"):60118,tF=nn?Symbol.for("react.scope"):60119;function Ri(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case G1:switch(e=e.type,e){case Y1:case kg:case _g:case bg:case Eg:case Lg:return e;default:switch(e=e&&e.$$typeof,e){case Og:case Ng:case Mg:case Pg:case Tg:return e;default:return t}}case K1:return t}}}o(Ri,"z");function rT(e){return Ri(e)===kg}o(rT,"A");kt.AsyncMode=Y1;kt.ConcurrentMode=kg;kt.ContextConsumer=Og;kt.ContextProvider=Tg;kt.Element=G1;kt.ForwardRef=Ng;kt.Fragment=_g;kt.Lazy=Mg;kt.Memo=Pg;kt.Portal=K1;kt.Profiler=bg;kt.StrictMode=Eg;kt.Suspense=Lg;kt.isAsyncMode=function(e){return rT(e)||Ri(e)===Y1};kt.isConcurrentMode=rT;kt.isContextConsumer=function(e){return Ri(e)===Og};kt.isContextProvider=function(e){return Ri(e)===Tg};kt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===G1};kt.isForwardRef=function(e){return Ri(e)===Ng};kt.isFragment=function(e){return Ri(e)===_g};kt.isLazy=function(e){return Ri(e)===Mg};kt.isMemo=function(e){return Ri(e)===Pg};kt.isPortal=function(e){return Ri(e)===K1};kt.isProfiler=function(e){return Ri(e)===bg};kt.isStrictMode=function(e){return Ri(e)===Eg};kt.isSuspense=function(e){return Ri(e)===Lg};kt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_g||e===kg||e===bg||e===Eg||e===Lg||e===QI||typeof e=="object"&&e!==null&&(e.$$typeof===Mg||e.$$typeof===Pg||e.$$typeof===Tg||e.$$typeof===Og||e.$$typeof===Ng||e.$$typeof===JI||e.$$typeof===eF||e.$$typeof===tF||e.$$typeof===ZI)};kt.typeOf=Ri});var oT=Gt((ZR,iT)=>{"use strict";iT.exports=nT()});var yT=Gt((pW,gT)=>{"use strict";var EF="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";gT.exports=EF});var CT=Gt((dW,ST)=>{"use strict";var bF=yT();function wT(){}o(wT,"emptyFunction");function xT(){}o(xT,"emptyFunctionWithReset");xT.resetWarningCache=wT;ST.exports=function(){function e(a,p,m,d,w,b){if(b!==bF){var L=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw L.name="Invariant Violation",L}}o(e,"shim"),e.isRequired=e;function t(){return e}o(t,"getShim");var i={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xT,resetWarningCache:wT};return i.PropTypes=i,i}});var It=Gt((mW,_T)=>{_T.exports=CT()();var hW,vW});var Uo=Gt((Zc,Ch)=>{(function(){var e,t="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",p="Expected a function",m="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",w=500,b="__lodash_placeholder__",L=1,F=2,Y=4,z=1,X=2,ee=1,J=2,I=4,A=8,W=16,K=32,V=64,fe=128,se=256,ce=512,me=30,ye="...",ze=800,Ye=16,Se=1,Et=2,Rt=3,vt=1/0,rt=9007199254740991,nt=17976931348623157e292,Sr=0/0,lt=4294967295,jn=lt-1,fr=lt>>>1,Nt=[["ary",fe],["bind",ee],["bindKey",J],["curry",A],["curryRight",W],["flip",ce],["partial",K],["partialRight",V],["rearg",se]],mt="[object Arguments]",Ze="[object Array]",Lr="[object AsyncFunction]",Pt="[object Boolean]",Mt="[object Date]",qr="[object DOMException]",cr="[object Error]",_n="[object Function]",En="[object GeneratorFunction]",Xt="[object Map]",je="[object Number]",bn="[object Null]",an="[object Object]",qn="[object Promise]",ni="[object Proxy]",fn="[object RegExp]",Qt="[object Set]",cn="[object String]",Ci="[object Symbol]",ea="[object Undefined]",$r="[object WeakMap]",Yo="[object WeakSet]",_i="[object ArrayBuffer]",go="[object DataView]",yo="[object Float32Array]",wo="[object Float64Array]",Pl="[object Int8Array]",$n="[object Int16Array]",Ml="[object Int32Array]",Ne="[object Uint8Array]",Fs="[object Uint8ClampedArray]",Pr="[object Uint16Array]",Lt="[object Uint32Array]",Zt=/\b__p \+= '';/g,Cf=/\b(__p \+=) '' \+/g,pn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xo=/&(?:amp|lt|gt|quot|#39);/g,Cr=/[&<>"']/g,ta=RegExp(xo.source),ra=RegExp(Cr.source),Rs=/<%-([\s\S]+?)%>/g,Al=/<%([\s\S]+?)%>/g,na=/<%=([\s\S]+?)%>/g,bp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dl=/^\w*$/,Tp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ws=/[\\^$.*+?()[\]{}|]/g,_f=RegExp(Ws.source),Hs=/^\s+/,Op=/\s/,Ef=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ia=/\{\n\/\* \[wrapped with (.+)\] \*/,kp=/,? & /,Il=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xo=/[()=,{}\[\]\/\s]/,Np=/\\(\\)?/g,bf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Us=/\w*$/,oa=/^[-+]0x[0-9a-f]+$/i,So=/^0b[01]+$/i,Lp=/^\[object .+?Constructor\]$/,Co=/^0o[0-7]+$/i,Fl=/^(?:0|[1-9]\d*)$/,Tf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,ii="\\ud800-\\udfff",sa="\\u0300-\\u036f",oi="\\ufe20-\\ufe2f",it="\\u20d0-\\u20ff",Ei=sa+oi+it,_o="\\u2700-\\u27bf",Bs="a-z\\xdf-\\xf6\\xf8-\\xff",le="\\xac\\xb1\\xd7\\xf7",Ie="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rl="\\u2000-\\u206f",Wl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Eo="A-Z\\xc0-\\xd6\\xd8-\\xde",Qo="\\ufe0e\\ufe0f",Hl=le+Ie+Rl+Wl,De="['\u2019]",Pp="["+ii+"]",zs="["+Hl+"]",Vn="["+Ei+"]",Tn="\\d+",la="["+_o+"]",ua="["+Bs+"]",Zo="[^"+ii+Hl+Tn+_o+Bs+Eo+"]",js="\\ud83c[\\udffb-\\udfff]",Of="(?:"+Vn+"|"+js+")",Ul="[^"+ii+"]",Bl="(?:\\ud83c[\\udde6-\\uddff]){2}",zl="[\\ud800-\\udbff][\\udc00-\\udfff]",bo="["+Eo+"]",aa="\\u200d",kf="(?:"+ua+"|"+Zo+")",Mp="(?:"+bo+"|"+Zo+")",fa="(?:"+De+"(?:d|ll|m|re|s|t|ve))?",si="(?:"+De+"(?:D|LL|M|RE|S|T|VE))?",M=Of+"?",Ae="["+Qo+"]?",To="(?:"+aa+"(?:"+[Ul,Bl,zl].join("|")+")"+Ae+M+")*",Vr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ca="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ve=Ae+M+To,jl="(?:"+[la,Bl,zl].join("|")+")"+ve,Yh="(?:"+[Ul+Vn+"?",Vn,Bl,zl,Pp].join("|")+")",Nf=RegExp(De,"g"),Ap=RegExp(Vn,"g"),Lf=RegExp(js+"(?="+js+")|"+Yh+ve,"g"),pa=RegExp([bo+"?"+ua+"+"+fa+"(?="+[zs,bo,"$"].join("|")+")",Mp+"+"+si+"(?="+[zs,bo+kf,"$"].join("|")+")",bo+"?"+kf+"+"+fa,bo+"+"+si,ca,Vr,Tn,jl].join("|"),"g"),Jo=RegExp("["+aa+ii+Ei+Qo+"]"),Ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,es=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ql=-1,Te={};Te[yo]=Te[wo]=Te[Pl]=Te[$n]=Te[Ml]=Te[Ne]=Te[Fs]=Te[Pr]=Te[Lt]=!0,Te[mt]=Te[Ze]=Te[_i]=Te[Pt]=Te[go]=Te[Mt]=Te[cr]=Te[_n]=Te[Xt]=Te[je]=Te[an]=Te[fn]=Te[Qt]=Te[cn]=Te[$r]=!1;var gt={};gt[mt]=gt[Ze]=gt[_i]=gt[go]=gt[Pt]=gt[Mt]=gt[yo]=gt[wo]=gt[Pl]=gt[$n]=gt[Ml]=gt[Xt]=gt[je]=gt[an]=gt[fn]=gt[Qt]=gt[cn]=gt[Ci]=gt[Ne]=gt[Fs]=gt[Pr]=gt[Lt]=!0,gt[cr]=gt[_n]=gt[$r]=!1;var On={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},da={"&":"&","<":"<",">":">",'"':""","'":"'"},qs={"&":"&","<":"<",">":">",""":'"',"'":"'"},dn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dp=parseFloat,Ip=parseInt,$l=typeof global=="object"&&global&&global.Object===Object&&global,_r=typeof self=="object"&&self&&self.Object===Object&&self,wt=$l||_r||Function("return this")(),ts=typeof Zc=="object"&&Zc&&!Zc.nodeType&&Zc,Er=ts&&typeof Ch=="object"&&Ch&&!Ch.nodeType&&Ch,rs=Er&&Er.exports===ts,$s=rs&&$l.process,pr=function(){try{var $=Er&&Er.require&&Er.require("util").types;return $||$s&&$s.binding&&$s.binding("util")}catch(te){}}(),Pf=pr&&pr.isArrayBuffer,Mf=pr&&pr.isDate,ha=pr&&pr.isMap,va=pr&&pr.isRegExp,Vl=pr&&pr.isSet,Gl=pr&&pr.isTypedArray;function hn($,te,Q){switch(Q.length){case 0:return $.call(te);case 1:return $.call(te,Q[0]);case 2:return $.call(te,Q[0],Q[1]);case 3:return $.call(te,Q[0],Q[1],Q[2])}return $.apply(te,Q)}o(hn,"apply");function Fp($,te,Q,Ce){for(var He=-1,ct=$==null?0:$.length;++He-1}o(ns,"arrayIncludes");function is($,te,Q){for(var Ce=-1,He=$==null?0:$.length;++Ce-1;);return Q}o(bi,"charsStartIndex");function ji($,te){for(var Q=$.length;Q--&&Oo(te,$[Q],0)>-1;);return Q}o(ji,"charsEndIndex");function Up($,te){for(var Q=$.length,Ce=0;Q--;)$[Q]===te&&++Ce;return Ce}o(Up,"countHolders");var Gs=k(On),Ti=k(da);function Xh($){return"\\"+dn[$]}o(Xh,"escapeStringChar");function Bp($,te){return $==null?e:$[te]}o(Bp,"getValue");function Oi($){return Jo.test($)}o(Oi,"hasUnicode");function qi($){return Ee.test($)}o(qi,"hasUnicodeWord");function Qh($){for(var te,Q=[];!(te=$.next()).done;)Q.push(te.value);return Q}o(Qh,"iteratorToArray");function If($){var te=-1,Q=Array($.size);return $.forEach(function(Ce,He){Q[++te]=[He,Ce]}),Q}o(If,"mapToArray");function Zh($,te){return function(Q){return $(te(Q))}}o(Zh,"overArg");function ss($,te){for(var Q=-1,Ce=$.length,He=0,ct=[];++Q-1}o(Xy,"listCacheHas");function jf(s,f){var h=this.__data__,y=tl(h,s);return y<0?(++this.size,h.push([s,f])):h[y][1]=f,this}o(jf,"listCacheSet"),Xi.prototype.clear=Kp,Xi.prototype.delete=av,Xi.prototype.get=Ea,Xi.prototype.has=Xy,Xi.prototype.set=jf;function tr(s){var f=-1,h=s==null?0:s.length;for(this.clear();++f=f?s:f)),s}o(rl,"baseClamp");function mn(s,f,h,y,T,N){var R,H=f&L,G=f&F,ie=f&Y;if(h&&(R=T?h(s,y,T,N):h(s)),R!==e)return R;if(!rr(s))return s;var oe=$e(s);if(oe){if(R=u(s),!H)return Or(s,R)}else{var ue=Yr(s),xe=ue==_n||ue==En;if(_u(s))return cd(s,H);if(ue==an||ue==mt||xe&&!T){if(R=G||xe?{}:l(s),!H)return G?Av(s,Jy(R,s)):l0(s,Jp(R,s))}else{if(!gt[ue])return T?s:{};R=c(s,ue,H)}}N||(N=new ai);var Pe=N.get(s);if(Pe)return Pe;N.set(s,R),eC(s)?s.forEach(function(Re){R.add(mn(Re,f,h,Re,s,N))}):ZS(s)&&s.forEach(function(Re,tt){R.set(tt,mn(Re,f,h,tt,s,N))});var Fe=ie?G?fc:Wa:G?hi:en,Xe=oe?e:Fe(s);return kn(Xe||s,function(Re,tt){Xe&&(tt=Re,Re=s[tt]),Ta(R,tt,mn(Re,f,h,tt,s,N))}),R}o(mn,"baseClone");function hv(s){var f=en(s);return function(h){return vv(h,s,f)}}o(hv,"baseConforms");function vv(s,f,h){var y=h.length;if(s==null)return!y;for(s=ot(s);y--;){var T=h[y],N=f[T],R=s[T];if(R===e&&!(T in s)||!N(R))return!1}return!0}o(vv,"baseConformsTo");function mv(s,f,h){if(typeof s!="function")throw new Pn(p);return St(function(){s.apply(e,h)},f)}o(mv,"baseDelay");function ou(s,f,h,y){var T=-1,N=ns,R=!0,H=s.length,G=[],ie=f.length;if(!H)return G;h&&(f=ft(f,nr(h))),y?(N=is,R=!1):f.length>=i&&(N=Mr,R=!1,f=new Fr(f));e:for(;++TT?0:T+h),y=y===e||y>T?T:Ge(y),y<0&&(y+=T),y=h>y?0:rC(y);h0&&h(H)?f>1?Rr(H,f-1,h,y,T):Bi(T,H):y||(T[T.length]=H)}return T}o(Rr,"baseFlatten");var Kf=Iv(),br=Iv(!0);function Yn(s,f){return s&&Kf(s,f,en)}o(Yn,"baseForOwn");function Yf(s,f){return s&&br(s,f,en)}o(Yf,"baseForOwnRight");function ka(s,f){return Ui(f,function(h){return fl(s[h])})}o(ka,"baseFunctions");function ws(s,f){f=Li(f,s);for(var h=0,y=f.length;s!=null&&hf}o(Xf,"baseGt");function gv(s,f){return s!=null&&Be.call(s,f)}o(gv,"baseHas");function yv(s,f){return s!=null&&f in ot(s)}o(yv,"baseHasIn");function su(s,f,h){return s>=Ar(f,h)&&s=120&&oe.length>=120)?new Fr(R&&oe):e}oe=s[0];var ue=-1,xe=H[0];e:for(;++ue-1;)H!==s&&eu.call(H,G,1),eu.call(s,G,1);return s}o(id,"basePullAll");function od(s,f){for(var h=s?f.length:0,y=h-1;h--;){var T=f[h];if(h==y||T!==N){var N=T;S(T)?eu.call(s,T,1):Aa(s,T)}}return s}o(od,"basePullAt");function tc(s,f){return s+ru(ds()*(f-s+1))}o(tc,"baseRandom");function Ov(s,f,h,y){for(var T=-1,N=Wt(tu((f-s)/(h||1)),0),R=Q(N);N--;)R[y?N:++T]=s,s+=h;return R}o(Ov,"baseRange");function sd(s,f){var h="";if(!s||f<1||f>rt)return h;do f%2&&(h+=s),f=ru(f/2),f&&(s+=s);while(f);return h}o(sd,"baseRepeat");function Ve(s,f){return Xr(Le(s,f,vi),s+"")}o(Ve,"baseRest");function n0(s){return qf(vc(s))}o(n0,"baseSample");function Cs(s,f){var h=vc(s);return kr(h,rl(f,0,h.length))}o(Cs,"baseSampleSize");function Lo(s,f,h,y){if(!rr(s))return s;f=Li(f,s);for(var T=-1,N=f.length,R=N-1,H=s;H!=null&&++TT?0:T+f),h=h>T?T:h,h<0&&(h+=T),T=f>h?0:h-f>>>0,f>>>=0;for(var N=Q(T);++y>>1,R=s[N];R!==null&&!Pi(R)&&(h?R<=f:R=i){var ie=f?null:Ra(s);if(ie)return Ff(ie);R=!1,T=Mr,G=new Fr}else G=f?[]:H;e:for(;++y=y?s:fi(s,f,h)}o(_s,"castSlice");var hu=Hy||function(s){return wt.clearTimeout(s)};function cd(s,f){if(f)return s.slice();var h=s.length,y=ov?ov(h):new s.constructor(h);return s.copy(y),y}o(cd,"cloneBuffer");function oc(s){var f=new s.constructor(s.byteLength);return new Xs(f).set(new Xs(s)),f}o(oc,"cloneArrayBuffer");function s0(s,f){var h=f?oc(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.byteLength)}o(s0,"cloneDataView");function pd(s){var f=new s.constructor(s.source,Us.exec(s));return f.lastIndex=s.lastIndex,f}o(pd,"cloneRegExp");function Nv(s){return Ht?ot(Ht.call(s)):{}}o(Nv,"cloneSymbol");function Lv(s,f){var h=f?oc(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.length)}o(Lv,"cloneTypedArray");function dd(s,f){if(s!==f){var h=s!==e,y=s===null,T=s===s,N=Pi(s),R=f!==e,H=f===null,G=f===f,ie=Pi(f);if(!H&&!ie&&!N&&s>f||N&&R&&G&&!H&&!ie||y&&R&&G||!h&&G||!T)return 1;if(!y&&!N&&!ie&&s=H)return G;var ie=h[y];return G*(ie=="desc"?-1:1)}}return s.index-f.index}o(Pv,"compareMultiple");function Mv(s,f,h,y){for(var T=-1,N=s.length,R=h.length,H=-1,G=f.length,ie=Wt(N-R,0),oe=Q(G+ie),ue=!y;++H1?h[T-1]:e,R=T>2?h[2]:e;for(N=s.length>3&&typeof N=="function"?(T--,N):e,R&&C(h[0],h[1],R)&&(N=T<3?e:N,T=1),f=ot(f);++y-1?T[N?f[R]:R]:e}}o(vd,"createFind");function Wv(s){return Ao(function(f){var h=f.length,y=h,T=vn.prototype.thru;for(s&&f.reverse();y--;){var N=f[y];if(typeof N!="function")throw new Pn(p);if(T&&!R&&Ha(N)=="wrapper")var R=new vn([],!0)}for(y=R?y:h;++y1&&st.reverse(),oe&&GH))return!1;var ie=N.get(s),oe=N.get(f);if(ie&&oe)return ie==f&&oe==s;var ue=-1,xe=!0,Pe=h&X?new Fr:e;for(N.set(s,f),N.set(f,s);++ue1?"& ":"")+f[y],f=f.join(h>2?", ":" "),s.replace(Ef,`{ +Add a component higher in the tree to provide a loading indicator or placeholder to display.`)}An!==5&&(An=2),_=E1(_,y),B=p;do{switch(B.tag){case 3:v=_,B.flags|=4096,t&=-t,B.lanes|=t;var ue=ob(B,v,t);CE(B,ue);break e;case 1:v=_;var ie=B.type,he=B.stateNode;if((B.flags&64)==0&&(typeof ie.getDerivedStateFromError=="function"||he!==null&&typeof he.componentDidCatch=="function"&&(Gs===null||!Gs.has(he)))){B.flags|=4096,t&=-t,B.lanes|=t;var me=sb(B,v,t);CE(B,me);break e}}B=B.return}while(B!==null)}Sb(i)}catch(xe){t=xe,rn===i&&i!==null&&(rn=i=i.return);continue}break}while(1)}o(yb,"Sj");function wb(){var e=ig.current;return ig.current=rg,e===null?rg:e}o(wb,"Pj");function dh(e,t){var i=Ge;Ge|=16;var l=wb();di===e&&Qn===t||Yc(e,t);do try{RD();break}catch(d){yb(e,d)}while(1);if(i1(),Ge=i,ig.current=l,rn!==null)throw Error(ye(261));return di=null,Qn=0,An}o(dh,"Tj");function RD(){for(;rn!==null;)xb(rn)}o(RD,"ak");function ID(){for(;rn!==null&&!yD();)xb(rn)}o(ID,"Rj");function xb(e){var t=Eb(e.alternate,e,of);e.memoizedProps=e.pendingProps,t===null?Sb(e):rn=t,N1.current=null}o(xb,"bk");function Sb(e){var t=e;do{var i=t.alternate;if(e=t.return,(t.flags&2048)==0){if(i=kD(i,t,of),i!==null){rn=i;return}if(i=t,i.tag!==24&&i.tag!==23||i.memoizedState===null||(of&1073741824)!=0||(i.mode&4)==0){for(var l=0,d=i.child;d!==null;)l|=d.lanes|d.childLanes,d=d.sibling;i.childLanes=l}e!==null&&(e.flags&2048)==0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1p&&(y=p,p=ue,ue=y),y=j_(R,ue),v=j_(R,p),y&&v&&(V.rangeCount!==1||V.anchorNode!==y.node||V.anchorOffset!==y.offset||V.focusNode!==v.node||V.focusOffset!==v.offset)&&(K=K.createRange(),K.setStart(y.node,y.offset),V.removeAllRanges(),ue>p?(V.addRange(K),V.extend(v.node,v.offset)):(K.setEnd(v.node,v.offset),V.addRange(K)))))),K=[],V=R;V=V.parentNode;)V.nodeType===1&&K.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;RYn()-A1?Yc(e,0):P1|=i),bo(e,t)}o(zD,"Yj");function $D(e,t){var i=e.stateNode;i!==null&&i.delete(t),t=0,t===0&&(t=e.mode,(t&2)==0?t=1:(t&4)==0?t=Bc()===99?1:2:(Fl===0&&(Fl=qc),t=Lc(62914560&~Fl),t===0&&(t=4194304))),i=Yi(),e=fg(e,t),e!==null&&(Ev(e,t,i),bo(e,i))}o($D,"lj");var Eb;Eb=o(function(e,t,i){var l=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Pi.current)ns=!0;else if((i&l)!=0)ns=(e.flags&16384)!=0;else{switch(ns=!1,t.tag){case 3:YE(t),c1();break;case 5:LE(t);break;case 1:Mi(t.type)&&Wv(t);break;case 4:a1(t,t.stateNode.containerInfo);break;case 10:l=t.memoizedProps.value;var d=t.type._context;Cr(zv,d._currentValue),d._currentValue=l;break;case 13:if(t.memoizedState!==null)return(i&t.child.childLanes)!=0?XE(e,t,i):(Cr(_r,_r.current&1),t=Al(e,t,i),t!==null?t.sibling:null);Cr(_r,_r.current&1);break;case 19:if(l=(i&t.childLanes)!=0,(e.flags&64)!=0){if(l)return tb(e,t,i);t.flags|=64}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Cr(_r,_r.current),l)break;return null;case 23:case 24:return t.lanes=0,w1(e,t,i)}return Al(e,t,i)}else ns=!1;switch(t.lanes=0,t.tag){case 2:if(l=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,d=Wc(t,Gn.current),zc(t,i),d=h1(null,t,l,e,d,i),t.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mi(l)){var v=!0;Wv(t)}else v=!1;t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,s1(t);var p=l.getDerivedStateFromProps;typeof p=="function"&&qv(t,l,p,e),d.updater=Vv,t.stateNode=d,d._reactInternals=t,l1(t,l,e,i),t=S1(null,t,l,!0,v,i)}else t.tag=0,Di(null,t,d,i),t=t.child;return t;case 16:d=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,v=d._init,d=v(d._payload),t.type=d,v=t.tag=qD(d),e=rs(d,e),v){case 0:t=x1(null,t,d,e,i);break e;case 1:t=GE(null,t,d,e,i);break e;case 11:t=jE(null,t,d,e,i);break e;case 14:t=qE(null,t,d,rs(d.type,e),l,i);break e}throw Error(ye(306,d,""))}return t;case 0:return l=t.type,d=t.pendingProps,d=t.elementType===l?d:rs(l,d),x1(e,t,l,d,i);case 1:return l=t.type,d=t.pendingProps,d=t.elementType===l?d:rs(l,d),GE(e,t,l,d,i);case 3:if(YE(t),l=t.updateQueue,e===null||l===null)throw Error(ye(282));if(l=t.pendingProps,d=t.memoizedState,d=d!==null?d.element:null,SE(e,t),Xd(t,l,null,i),l=t.memoizedState.element,l===d)c1(),t=Al(e,t,i);else{if(d=t.stateNode,(v=d.hydrate)&&(Ka=Fc(t.stateNode.containerInfo.firstChild),Ml=t,v=Vs=!0),v){if(e=d.mutableSourceEagerHydrationData,e!=null)for(d=0;d{"use strict";function Ob(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ob)}catch(e){console.error(e)}}o(Ob,"checkDCE");Ob(),Nb.exports=kb()});var Pb=fr((JI,Lb)=>{"use strict";var ZD="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Lb.exports=ZD});var Fb=fr((e2,Db)=>{"use strict";var JD=Pb();function Mb(){}o(Mb,"emptyFunction");function Ab(){}o(Ab,"emptyFunctionWithReset");Ab.resetWarningCache=Mb;Db.exports=function(){function e(l,d,v,p,y,_){if(_!==JD){var O=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw O.name="Invariant Violation",O}}o(e,"shim"),e.isRequired=e;function t(){return e}o(t,"getShim");var i={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ab,resetWarningCache:Mb};return i.PropTypes=i,i}});var Ib=fr((n2,Rb)=>{Rb.exports=Fb()();var t2,r2});var jb=fr(Wt=>{"use strict";var Sn=typeof Symbol=="function"&&Symbol.for,Y1=Sn?Symbol.for("react.element"):60103,X1=Sn?Symbol.for("react.portal"):60106,vg=Sn?Symbol.for("react.fragment"):60107,gg=Sn?Symbol.for("react.strict_mode"):60108,yg=Sn?Symbol.for("react.profiler"):60114,wg=Sn?Symbol.for("react.provider"):60109,xg=Sn?Symbol.for("react.context"):60110,Q1=Sn?Symbol.for("react.async_mode"):60111,Sg=Sn?Symbol.for("react.concurrent_mode"):60111,Cg=Sn?Symbol.for("react.forward_ref"):60112,_g=Sn?Symbol.for("react.suspense"):60113,nF=Sn?Symbol.for("react.suspense_list"):60120,Eg=Sn?Symbol.for("react.memo"):60115,bg=Sn?Symbol.for("react.lazy"):60116,iF=Sn?Symbol.for("react.block"):60121,oF=Sn?Symbol.for("react.fundamental"):60117,sF=Sn?Symbol.for("react.responder"):60118,lF=Sn?Symbol.for("react.scope"):60119;function Xi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Y1:switch(e=e.type,e){case Q1:case Sg:case vg:case yg:case gg:case _g:return e;default:switch(e=e&&e.$$typeof,e){case xg:case Cg:case bg:case Eg:case wg:return e;default:return t}}case X1:return t}}}o(Xi,"z");function $b(e){return Xi(e)===Sg}o($b,"A");Wt.AsyncMode=Q1;Wt.ConcurrentMode=Sg;Wt.ContextConsumer=xg;Wt.ContextProvider=wg;Wt.Element=Y1;Wt.ForwardRef=Cg;Wt.Fragment=vg;Wt.Lazy=bg;Wt.Memo=Eg;Wt.Portal=X1;Wt.Profiler=yg;Wt.StrictMode=gg;Wt.Suspense=_g;Wt.isAsyncMode=function(e){return $b(e)||Xi(e)===Q1};Wt.isConcurrentMode=$b;Wt.isContextConsumer=function(e){return Xi(e)===xg};Wt.isContextProvider=function(e){return Xi(e)===wg};Wt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Y1};Wt.isForwardRef=function(e){return Xi(e)===Cg};Wt.isFragment=function(e){return Xi(e)===vg};Wt.isLazy=function(e){return Xi(e)===bg};Wt.isMemo=function(e){return Xi(e)===Eg};Wt.isPortal=function(e){return Xi(e)===X1};Wt.isProfiler=function(e){return Xi(e)===yg};Wt.isStrictMode=function(e){return Xi(e)===gg};Wt.isSuspense=function(e){return Xi(e)===_g};Wt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===vg||e===Sg||e===yg||e===gg||e===_g||e===nF||typeof e=="object"&&e!==null&&(e.$$typeof===bg||e.$$typeof===Eg||e.$$typeof===wg||e.$$typeof===xg||e.$$typeof===Cg||e.$$typeof===oF||e.$$typeof===sF||e.$$typeof===lF||e.$$typeof===iF)};Wt.typeOf=Xi});var Vb=fr((y2,qb)=>{"use strict";qb.exports=jb()});var Jb=fr((w2,Zb)=>{"use strict";var Z1=Vb(),aF={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},uF={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fF={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Kb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J1={};J1[Z1.ForwardRef]=fF;J1[Z1.Memo]=Kb;function Gb(e){return Z1.isMemo(e)?Kb:J1[e.$$typeof]||aF}o(Gb,"getStatics");var cF=Object.defineProperty,pF=Object.getOwnPropertyNames,Yb=Object.getOwnPropertySymbols,dF=Object.getOwnPropertyDescriptor,hF=Object.getPrototypeOf,Xb=Object.prototype;function Qb(e,t,i){if(typeof t!="string"){if(Xb){var l=hF(t);l&&l!==Xb&&Qb(e,l,i)}var d=pF(t);Yb&&(d=d.concat(Yb(t)));for(var v=Gb(e),p=Gb(t),y=0;y{"use strict";var Cn=typeof Symbol=="function"&&Symbol.for,ex=Cn?Symbol.for("react.element"):60103,tx=Cn?Symbol.for("react.portal"):60106,Tg=Cn?Symbol.for("react.fragment"):60107,kg=Cn?Symbol.for("react.strict_mode"):60108,Og=Cn?Symbol.for("react.profiler"):60114,Ng=Cn?Symbol.for("react.provider"):60109,Lg=Cn?Symbol.for("react.context"):60110,rx=Cn?Symbol.for("react.async_mode"):60111,Pg=Cn?Symbol.for("react.concurrent_mode"):60111,Mg=Cn?Symbol.for("react.forward_ref"):60112,Ag=Cn?Symbol.for("react.suspense"):60113,mF=Cn?Symbol.for("react.suspense_list"):60120,Dg=Cn?Symbol.for("react.memo"):60115,Fg=Cn?Symbol.for("react.lazy"):60116,vF=Cn?Symbol.for("react.block"):60121,gF=Cn?Symbol.for("react.fundamental"):60117,yF=Cn?Symbol.for("react.responder"):60118,wF=Cn?Symbol.for("react.scope"):60119;function Qi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ex:switch(e=e.type,e){case rx:case Pg:case Tg:case Og:case kg:case Ag:return e;default:switch(e=e&&e.$$typeof,e){case Lg:case Mg:case Fg:case Dg:case Ng:return e;default:return t}}case tx:return t}}}o(Qi,"z");function eT(e){return Qi(e)===Pg}o(eT,"A");Bt.AsyncMode=rx;Bt.ConcurrentMode=Pg;Bt.ContextConsumer=Lg;Bt.ContextProvider=Ng;Bt.Element=ex;Bt.ForwardRef=Mg;Bt.Fragment=Tg;Bt.Lazy=Fg;Bt.Memo=Dg;Bt.Portal=tx;Bt.Profiler=Og;Bt.StrictMode=kg;Bt.Suspense=Ag;Bt.isAsyncMode=function(e){return eT(e)||Qi(e)===rx};Bt.isConcurrentMode=eT;Bt.isContextConsumer=function(e){return Qi(e)===Lg};Bt.isContextProvider=function(e){return Qi(e)===Ng};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ex};Bt.isForwardRef=function(e){return Qi(e)===Mg};Bt.isFragment=function(e){return Qi(e)===Tg};Bt.isLazy=function(e){return Qi(e)===Fg};Bt.isMemo=function(e){return Qi(e)===Dg};Bt.isPortal=function(e){return Qi(e)===tx};Bt.isProfiler=function(e){return Qi(e)===Og};Bt.isStrictMode=function(e){return Qi(e)===kg};Bt.isSuspense=function(e){return Qi(e)===Ag};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Tg||e===Pg||e===Og||e===kg||e===Ag||e===mF||typeof e=="object"&&e!==null&&(e.$$typeof===Fg||e.$$typeof===Dg||e.$$typeof===Ng||e.$$typeof===Lg||e.$$typeof===Mg||e.$$typeof===gF||e.$$typeof===yF||e.$$typeof===wF||e.$$typeof===vF)};Bt.typeOf=Qi});var nT=fr((S2,rT)=>{"use strict";rT.exports=tT()});var ep=fr((Jc,wh)=>{(function(){var e,t="4.17.21",i=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",v="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",y=500,_="__lodash_placeholder__",O=1,D=2,Y=4,B=1,X=2,te=1,Q=2,F=4,P=8,R=16,K=32,V=64,ue=128,ie=256,he=512,me=30,xe="...",Ve=800,Qe=16,Ee=1,xt=2,qe=3,ct=1/0,ze=9007199254740991,lt=17976931348623157e292,Zt=0/0,at=4294967295,Rr=at-1,Kt=at>>>1,Ot=[["ary",ue],["bind",te],["bindKey",Q],["curry",P],["curryRight",R],["flip",he],["partial",K],["partialRight",V],["rearg",ie]],St="[object Arguments]",it="[object Array]",br="[object AsyncFunction]",zt="[object Boolean]",$t="[object Date]",ne="[object DOMException]",Ze="[object Error]",Tr="[object Function]",jt="[object GeneratorFunction]",qt="[object Map]",we="[object Number]",kr="[object Null]",ln="[object Object]",In="[object Promise]",ii="[object Proxy]",an="[object RegExp]",Gt="[object Set]",dr="[object String]",ut="[object Symbol]",Io="[object Undefined]",yr="[object WeakMap]",Ii="[object WeakSet]",un="[object ArrayBuffer]",Hn="[object DataView]",vi="[object Float32Array]",gi="[object Float64Array]",Wn="[object Int8Array]",Tn="[object Int16Array]",Zs="[object Int32Array]",H="[object Uint8Array]",J="[object Uint8ClampedArray]",de="[object Uint16Array]",be="[object Uint32Array]",Jt=/\b__p \+= '';/g,zl=/\b(__p \+=) '' \+/g,Ft=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ir=/&(?:amp|lt|gt|quot|#39);/g,er=/[&<>"']/g,oi=RegExp(Ir.source),fs=RegExp(er.source),no=/<%-([\s\S]+?)%>/g,yi=/<%([\s\S]+?)%>/g,Js=/<%=([\s\S]+?)%>/g,cs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fn=/^\w*$/,_p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,el=/[\\^$.*+?()[\]{}|]/g,Ef=RegExp(el.source),tl=/^\s+/,Ep=/\s/,bf=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,au=/\{\n\/\* \[wrapped with (.+)\] \*/,bp=/,? & /,$l=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ps=/[()=,{}\[\]\/\s]/,Tp=/\\(\\)?/g,Tf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rl=/\w*$/,uu=/^[-+]0x[0-9a-f]+$/i,Ho=/^0b[01]+$/i,kp=/^\[object .+?Constructor\]$/,Wo=/^0o[0-7]+$/i,jl=/^(?:0|[1-9]\d*)$/,kf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Rt=/($^)/,Le=/['\n\r\u2028\u2029\\]/g,wi="\\ud800-\\udfff",fu="\\u0300-\\u036f",xi="\\ufe20-\\ufe2f",dt="\\u20d0-\\u20ff",Hi=fu+xi+dt,Bo="\\u2700-\\u27bf",nl="a-z\\xdf-\\xf6\\xf8-\\xff",ae="\\xac\\xb1\\xd7\\xf7",Ue="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ql="\\u2000-\\u206f",Vl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Uo="A-Z\\xc0-\\xd6\\xd8-\\xde",ds="\\ufe0e\\ufe0f",Kl=ae+Ue+ql+Vl,Be="['\u2019]",Op="["+wi+"]",il="["+Kl+"]",si="["+Hi+"]",Bn="\\d+",cu="["+Bo+"]",pu="["+nl+"]",hs="[^"+wi+Kl+Bn+Bo+nl+Uo+"]",ol="\\ud83c[\\udffb-\\udfff]",Of="(?:"+si+"|"+ol+")",Gl="[^"+wi+"]",Yl="(?:\\ud83c[\\udde6-\\uddff]){2}",Xl="[\\ud800-\\udbff][\\udc00-\\udfff]",zo="["+Uo+"]",du="\\u200d",Nf="(?:"+pu+"|"+hs+")",Np="(?:"+zo+"|"+hs+")",hu="(?:"+Be+"(?:d|ll|m|re|s|t|ve))?",Si="(?:"+Be+"(?:D|LL|M|RE|S|T|VE))?",M=Of+"?",We="["+ds+"]?",$o="(?:"+du+"(?:"+[Gl,Yl,Xl].join("|")+")"+We+M+")*",cn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Se=We+M+$o,Ql="(?:"+[cu,Yl,Xl].join("|")+")"+Se,Qh="(?:"+[Gl+si+"?",si,Yl,Xl,Op].join("|")+")",Lf=RegExp(Be,"g"),Lp=RegExp(si,"g"),Pf=RegExp(ol+"(?="+ol+")|"+Qh+Se,"g"),vu=RegExp([zo+"?"+pu+"+"+hu+"(?="+[il,zo,"$"].join("|")+")",Np+"+"+Si+"(?="+[il,zo+Nf,"$"].join("|")+")",zo+"?"+Nf+"+"+hu,zo+"+"+Si,mu,cn,Bn,Ql].join("|"),"g"),ms=RegExp("["+du+wi+Hi+ds+"]"),Pe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Zl=-1,Ae={};Ae[vi]=Ae[gi]=Ae[Wn]=Ae[Tn]=Ae[Zs]=Ae[H]=Ae[J]=Ae[de]=Ae[be]=!0,Ae[St]=Ae[it]=Ae[un]=Ae[zt]=Ae[Hn]=Ae[$t]=Ae[Ze]=Ae[Tr]=Ae[qt]=Ae[we]=Ae[ln]=Ae[an]=Ae[Gt]=Ae[dr]=Ae[yr]=!1;var Tt={};Tt[St]=Tt[it]=Tt[un]=Tt[Hn]=Tt[zt]=Tt[$t]=Tt[vi]=Tt[gi]=Tt[Wn]=Tt[Tn]=Tt[Zs]=Tt[qt]=Tt[we]=Tt[ln]=Tt[an]=Tt[Gt]=Tt[dr]=Tt[ut]=Tt[H]=Tt[J]=Tt[de]=Tt[be]=!0,Tt[Ze]=Tt[Tr]=Tt[yr]=!1;var Un={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},gu={"&":"&","<":"<",">":">",'"':""","'":"'"},sl={"&":"&","<":"<",">":">",""":'"',"'":"'"},kn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pp=parseFloat,Mp=parseInt,Jl=typeof global=="object"&&global&&global.Object===Object&&global,Hr=typeof self=="object"&&self&&self.Object===Object&&self,Nt=Jl||Hr||Function("return this")(),gs=typeof Jc=="object"&&Jc&&!Jc.nodeType&&Jc,Wr=gs&&typeof wh=="object"&&wh&&!wh.nodeType&&wh,ys=Wr&&Wr.exports===gs,ll=ys&&Jl.process,Or=function(){try{var q=Wr&&Wr.require&&Wr.require("util").types;return q||ll&&ll.binding&&ll.binding("util")}catch(re){}}(),Mf=Or&&Or.isArrayBuffer,Af=Or&&Or.isDate,yu=Or&&Or.isMap,wu=Or&&Or.isRegExp,ea=Or&&Or.isSet,ta=Or&&Or.isTypedArray;function On(q,re,Z){switch(Z.length){case 0:return q.call(re);case 1:return q.call(re,Z[0]);case 2:return q.call(re,Z[0],Z[1]);case 3:return q.call(re,Z[0],Z[1],Z[2])}return q.apply(re,Z)}o(On,"apply");function Ap(q,re,Z,Oe){for(var Ke=-1,_t=q==null?0:q.length;++Ke<_t;){var Nr=q[Ke];re(Oe,Nr,Z(Nr),q)}return Oe}o(Ap,"arrayAggregator");function zn(q,re){for(var Z=-1,Oe=q==null?0:q.length;++Z-1}o(ws,"arrayIncludes");function xs(q,re,Z){for(var Oe=-1,Ke=q==null?0:q.length;++Oe-1;);return Z}o(Wi,"charsStartIndex");function lo(q,re){for(var Z=q.length;Z--&&jo(re,q[Z],0)>-1;);return Z}o(lo,"charsEndIndex");function Ip(q,re){for(var Z=q.length,Oe=0;Z--;)q[Z]===re&&++Oe;return Oe}o(Ip,"countHolders");var ul=k(Un),Bi=k(gu);function Zh(q){return"\\"+kn[q]}o(Zh,"escapeStringChar");function Hp(q,re){return q==null?e:q[re]}o(Hp,"getValue");function Ui(q){return ms.test(q)}o(Ui,"hasUnicode");function ao(q){return Pe.test(q)}o(ao,"hasUnicodeWord");function Jh(q){for(var re,Z=[];!(re=q.next()).done;)Z.push(re.value);return Z}o(Jh,"iteratorToArray");function Rf(q){var re=-1,Z=Array(q.size);return q.forEach(function(Oe,Ke){Z[++re]=[Ke,Oe]}),Z}o(Rf,"mapToArray");function em(q,re){return function(Z){return q(re(Z))}}o(em,"overArg");function Cs(q,re){for(var Z=-1,Oe=q.length,Ke=0,_t=[];++Z-1}o(t0,"listCacheHas");function jf(s,f){var h=this.__data__,w=gl(h,s);return w<0?(++this.size,h.push([s,f])):h[w][1]=f,this}o(jf,"listCacheSet"),mo.prototype.clear=qp,mo.prototype.delete=cm,mo.prototype.get=Ou,mo.prototype.has=t0,mo.prototype.set=jf;function vr(s){var f=-1,h=s==null?0:s.length;for(this.clear();++f=f?s:f)),s}o(yl,"baseClamp");function Ln(s,f,h,w,b,N){var I,W=f&O,G=f&D,se=f&Y;if(h&&(I=b?h(s,w,b,N):h(s)),I!==e)return I;if(!gr(s))return s;var le=tt(s);if(le){if(I=u(s),!W)return zr(s,I)}else{var fe=hn(s),ke=fe==Tr||fe==jt;if(Pa(s))return ad(s,W);if(fe==ln||fe==St||ke&&!b){if(I=G||ke?{}:a(s),!W)return G?Fm(s,i0(I,s)):p0(s,Xp(I,s))}else{if(!Tt[fe])return b?s:{};I=c(s,fe,W)}}N||(N=new Ei);var Ie=N.get(s);if(Ie)return Ie;N.set(s,I),XS(s)?s.forEach(function(je){I.add(Ln(je,f,h,je,s,N))}):GS(s)&&s.forEach(function(je,pt){I.set(pt,Ln(je,f,h,pt,s,N))});var $e=se?G?cc:zu:G?Ni:wn,ot=le?e:$e(s);return zn(ot||s,function(je,pt){ot&&(pt=je,je=s[pt]),Lu(I,pt,Ln(je,f,h,pt,s,N))}),I}o(Ln,"baseClone");function vm(s){var f=wn(s);return function(h){return gm(h,s,f)}}o(vm,"baseConforms");function gm(s,f,h){var w=h.length;if(s==null)return!w;for(s=ht(s);w--;){var b=h[w],N=f[b],I=s[b];if(I===e&&!(b in s)||!N(I))return!1}return!0}o(gm,"baseConformsTo");function ym(s,f,h){if(typeof s!="function")throw new qn(d);return Pt(function(){s.apply(e,h)},f)}o(ym,"baseDelay");function da(s,f,h,w){var b=-1,N=ws,I=!0,W=s.length,G=[],se=f.length;if(!W)return G;h&&(f=Ct(f,wr(h))),w?(N=xs,I=!1):f.length>=i&&(N=Gr,I=!1,f=new Zr(f));e:for(;++bb?0:b+h),w=w===e||w>b?b:nt(w),w<0&&(w+=b),w=h>w?0:ZS(w);h0&&h(W)?f>1?Jr(W,f-1,h,w,b):oo(b,W):w||(b[b.length]=W)}return b}o(Jr,"baseFlatten");var Yf=Im(),Br=Im(!0);function ui(s,f){return s&&Yf(s,f,wn)}o(ui,"baseForOwn");function Xf(s,f){return s&&Br(s,f,wn)}o(Xf,"baseForOwnRight");function Mu(s,f){return io(f,function(h){return Tl(s[h])})}o(Mu,"baseFunctions");function Fs(s,f){f=ji(f,s);for(var h=0,w=f.length;s!=null&&hf}o(Qf,"baseGt");function wm(s,f){return s!=null&&Ye.call(s,f)}o(wm,"baseHas");function xm(s,f){return s!=null&&f in ht(s)}o(xm,"baseHasIn");function ha(s,f,h){return s>=Yr(f,h)&&s=120&&le.length>=120)?new Zr(I&&le):e}le=s[0];var fe=-1,ke=W[0];e:for(;++fe-1;)W!==s&&aa.call(W,G,1),aa.call(s,G,1);return s}o(td,"basePullAll");function rd(s,f){for(var h=s?f.length:0,w=h-1;h--;){var b=f[h];if(h==w||b!==N){var N=b;S(b)?aa.call(s,b,1):Iu(s,b)}}return s}o(rd,"basePullAt");function rc(s,f){return s+fa(Ns()*(f-s+1))}o(rc,"baseRandom");function Nm(s,f,h,w){for(var b=-1,N=tr(ua((f-s)/(h||1)),0),I=Z(N);N--;)I[w?N:++b]=s,s+=h;return I}o(Nm,"baseRange");function nd(s,f){var h="";if(!s||f<1||f>ze)return h;do f%2&&(h+=s),f=fa(f/2),f&&(s+=s);while(f);return h}o(nd,"baseRepeat");function rt(s,f){return mn(Re(s,f,Li),s+"")}o(rt,"baseRest");function a0(s){return qf(vc(s))}o(a0,"baseSample");function Hs(s,f){var h=vc(s);return $r(h,yl(f,0,h.length))}o(Hs,"baseSampleSize");function Ko(s,f,h,w){if(!gr(s))return s;f=ji(f,s);for(var b=-1,N=f.length,I=N-1,W=s;W!=null&&++bb?0:b+f),h=h>b?b:h,h<0&&(h+=b),b=f>h?0:h-f>>>0,f>>>=0;for(var N=Z(b);++w>>1,I=s[N];I!==null&&!qi(I)&&(h?I<=f:I=i){var se=f?null:Uu(s);if(se)return If(se);I=!1,b=Gr,G=new Zr}else G=f?[]:W;e:for(;++w=w?s:bi(s,f,h)}o(Ws,"castSlice");var Ca=jy||function(s){return Nt.clearTimeout(s)};function ad(s,f){if(f)return s.slice();var h=s.length,w=lm?lm(h):new s.constructor(h);return s.copy(w),w}o(ad,"cloneBuffer");function sc(s){var f=new s.constructor(s.byteLength);return new pl(f).set(new pl(s)),f}o(sc,"cloneArrayBuffer");function c0(s,f){var h=f?sc(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.byteLength)}o(c0,"cloneDataView");function ud(s){var f=new s.constructor(s.source,rl.exec(s));return f.lastIndex=s.lastIndex,f}o(ud,"cloneRegExp");function Pm(s){return rr?ht(rr.call(s)):{}}o(Pm,"cloneSymbol");function Mm(s,f){var h=f?sc(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.length)}o(Mm,"cloneTypedArray");function fd(s,f){if(s!==f){var h=s!==e,w=s===null,b=s===s,N=qi(s),I=f!==e,W=f===null,G=f===f,se=qi(f);if(!W&&!se&&!N&&s>f||N&&I&&G&&!W&&!se||w&&I&&G||!h&&G||!b)return 1;if(!w&&!N&&!se&&s=W)return G;var se=h[w];return G*(se=="desc"?-1:1)}}return s.index-f.index}o(Am,"compareMultiple");function Dm(s,f,h,w){for(var b=-1,N=s.length,I=h.length,W=-1,G=f.length,se=tr(N-I,0),le=Z(G+se),fe=!w;++W1?h[b-1]:e,I=b>2?h[2]:e;for(N=s.length>3&&typeof N=="function"?(b--,N):e,I&&C(h[0],h[1],I)&&(N=b<3?e:N,b=1),f=ht(f);++w-1?b[N?f[I]:I]:e}}o(pd,"createFind");function Bm(s){return Xo(function(f){var h=f.length,w=h,b=Nn.prototype.thru;for(s&&f.reverse();w--;){var N=f[w];if(typeof N!="function")throw new qn(d);if(b&&!I&&$u(N)=="wrapper")var I=new Nn([],!0)}for(w=I?w:h;++w1&&mt.reverse(),le&&GW))return!1;var se=N.get(s),le=N.get(f);if(se&&le)return se==f&&le==s;var fe=-1,ke=!0,Ie=h&X?new Zr:e;for(N.set(s,f),N.set(f,s);++fe1?"& ":"")+f[w],f=f.join(h>2?", ":" "),s.replace(bf,`{ /* [wrapped with `+f+`] */ -`)}o(v,"insertWrapDetails");function g(s){return $e(s)||Ua(s)||!!(Qs&&s&&s[Qs])}o(g,"isFlattenable");function S(s,f){var h=typeof s;return f=f??rt,!!f&&(h=="number"||h!="symbol"&&Fl.test(s))&&s>-1&&s%1==0&&s0){if(++f>=ze)return arguments[0]}else f=0;return s.apply(e,arguments)}}o(Vt,"shortOut");function kr(s,f){var h=-1,y=s.length,T=y-1;for(f=f===e?y:f;++h1?s[f-1]:e;return h=typeof h=="function"?(s.pop(),h):e,US(s,h)});function BS(s){var f=O(s);return f.__chain__=!0,f}o(BS,"chain");function fL(s,f){return f(s),s}o(fL,"tap");function $v(s,f){return f(s)}o($v,"thru");var cL=Ao(function(s){var f=s.length,h=f?s[0]:0,y=this.__wrapped__,T=o(function(N){return ed(N,s)},"interceptor");return f>1||this.__actions__.length||!(y instanceof Je)||!S(h)?this.thru(T):(y=y.slice(h,+h+(f?1:0)),y.__actions__.push({func:$v,args:[T],thisArg:e}),new vn(y,this.__chain__).thru(function(N){return f&&!N.length&&N.push(e),N}))});function pL(){return BS(this)}o(pL,"wrapperChain");function dL(){return new vn(this.value(),this.__chain__)}o(dL,"wrapperCommit");function hL(){this.__values__===e&&(this.__values__=tC(this.value()));var s=this.__index__>=this.__values__.length,f=s?e:this.__values__[this.__index__++];return{done:s,value:f}}o(hL,"wrapperNext");function vL(){return this}o(vL,"wrapperToIterator");function mL(s){for(var f,h=this;h instanceof zf;){var y=Zr(h);y.__index__=0,y.__values__=e,f?T.__wrapped__=y:f=y;var T=y;h=h.__wrapped__}return T.__wrapped__=s,f}o(mL,"wrapperPlant");function gL(){var s=this.__wrapped__;if(s instanceof Je){var f=s;return this.__actions__.length&&(f=new Je(this)),f=f.reverse(),f.__actions__.push({func:$v,args:[a0],thisArg:e}),new vn(f,this.__chain__)}return this.thru(a0)}o(gL,"wrapperReverse");function yL(){return kv(this.__wrapped__,this.__actions__)}o(yL,"wrapperValue");var wL=lc(function(s,f,h){Be.call(s,h)?++s[h]:Qi(s,h,1)});function xL(s,f,h){var y=$e(s)?ma:Gf;return h&&C(s,f,h)&&(f=e),y(s,Me(f,3))}o(xL,"every");function SL(s,f){var h=$e(s)?Ui:rd;return h(s,Me(f,3))}o(SL,"filter");var CL=vd(dc),_L=vd(FS);function EL(s,f){return Rr(Vv(s,f),1)}o(EL,"flatMap");function bL(s,f){return Rr(Vv(s,f),vt)}o(bL,"flatMapDeep");function TL(s,f,h){return h=h===e?1:Ge(h),Rr(Vv(s,f),h)}o(TL,"flatMapDepth");function zS(s,f){var h=$e(s)?kn:Kn;return h(s,Me(f,3))}o(zS,"forEach");function jS(s,f){var h=$e(s)?Rp:Vf;return h(s,Me(f,3))}o(jS,"forEachRight");var OL=lc(function(s,f,h){Be.call(s,h)?s[h].push(f):Qi(s,h,[f])});function kL(s,f,h,y){s=di(s)?s:vc(s),h=h&&!y?Ge(h):0;var T=s.length;return h<0&&(h=Wt(T+h,0)),Qv(s)?h<=T&&s.indexOf(f,h)>-1:!!T&&Oo(s,f,h)>-1}o(kL,"includes");var NL=Ve(function(s,f,h){var y=-1,T=typeof f=="function",N=di(s)?Q(s.length):[];return Kn(s,function(R){N[++y]=T?hn(f,R,h):lu(R,f,h)}),N}),LL=lc(function(s,f,h){Qi(s,h,f)});function Vv(s,f){var h=$e(s)?ft:pu;return h(s,Me(f,3))}o(Vv,"map");function PL(s,f,h,y){return s==null?[]:($e(f)||(f=f==null?[]:[f]),h=y?e:h,$e(h)||(h=h==null?[]:[h]),Gr(s,f,h))}o(PL,"orderBy");var ML=lc(function(s,f,h){s[h?0:1].push(f)},function(){return[[],[]]});function AL(s,f,h){var y=$e(s)?Kl:U,T=arguments.length<3;return y(s,Me(f,4),h,T,Kn)}o(AL,"reduce");function DL(s,f,h){var y=$e(s)?Wp:U,T=arguments.length<3;return y(s,Me(f,4),h,T,Vf)}o(DL,"reduceRight");function IL(s,f){var h=$e(s)?Ui:rd;return h(s,Yv(Me(f,3)))}o(IL,"reject");function FL(s){var f=$e(s)?qf:n0;return f(s)}o(FL,"sample");function RL(s,f,h){(h?C(s,f,h):f===e)?f=1:f=Ge(f);var y=$e(s)?ys:Cs;return y(s,f)}o(RL,"sampleSize");function WL(s){var f=$e(s)?dv:Po;return f(s)}o(WL,"shuffle");function HL(s){if(s==null)return 0;if(di(s))return Qv(s)?Ks(s):s.length;var f=Yr(s);return f==Xt||f==Qt?s.size:Jf(s).length}o(HL,"size");function UL(s,f,h){var y=$e(s)?zi:i0;return h&&C(s,f,h)&&(f=e),y(s,Me(f,3))}o(UL,"some");var BL=Ve(function(s,f){if(s==null)return[];var h=f.length;return h>1&&C(s,f[0],f[1])?f=[]:h>2&&C(f[0],f[1],f[2])&&(f=[f[0]]),Gr(s,Rr(f,1),[])}),Gv=Uy||function(){return wt.Date.now()};function zL(s,f){if(typeof f!="function")throw new Pn(p);return s=Ge(s),function(){if(--s<1)return f.apply(this,arguments)}}o(zL,"after");function qS(s,f,h){return f=h?e:f,f=s&&f==null?s.length:f,pi(s,fe,e,e,e,e,f)}o(qS,"ary");function $S(s,f){var h;if(typeof f!="function")throw new Pn(p);return s=Ge(s),function(){return--s>0&&(h=f.apply(this,arguments)),s<=1&&(f=e),h}}o($S,"before");var c0=Ve(function(s,f,h){var y=ee;if(h.length){var T=ss(h,wu(c0));y|=K}return pi(s,y,f,h,T)}),VS=Ve(function(s,f,h){var y=ee|J;if(h.length){var T=ss(h,wu(VS));y|=K}return pi(f,y,s,h,T)});function GS(s,f,h){f=h?e:f;var y=pi(s,A,e,e,e,e,e,f);return y.placeholder=GS.placeholder,y}o(GS,"curry");function KS(s,f,h){f=h?e:f;var y=pi(s,W,e,e,e,e,e,f);return y.placeholder=KS.placeholder,y}o(KS,"curryRight");function YS(s,f,h){var y,T,N,R,H,G,ie=0,oe=!1,ue=!1,xe=!0;if(typeof s!="function")throw new Pn(p);f=eo(f)||0,rr(h)&&(oe=!!h.leading,ue="maxWait"in h,N=ue?Wt(eo(h.maxWait)||0,f):N,xe="trailing"in h?!!h.trailing:xe);function Pe(gr){var Fo=y,pl=T;return y=T=e,ie=gr,R=s.apply(pl,Fo),R}o(Pe,"invokeFunc");function Fe(gr){return ie=gr,H=St(tt,f),oe?Pe(gr):R}o(Fe,"leadingEdge");function Xe(gr){var Fo=gr-G,pl=gr-ie,hC=f-Fo;return ue?Ar(hC,N-pl):hC}o(Xe,"remainingWait");function Re(gr){var Fo=gr-G,pl=gr-ie;return G===e||Fo>=f||Fo<0||ue&&pl>=N}o(Re,"shouldInvoke");function tt(){var gr=Gv();if(Re(gr))return st(gr);H=St(tt,Xe(gr))}o(tt,"timerExpired");function st(gr){return H=e,xe&&y?Pe(gr):(y=T=e,R)}o(st,"trailingEdge");function Mi(){H!==e&&hu(H),ie=0,y=G=T=H=e}o(Mi,"cancel");function Qn(){return H===e?R:st(Gv())}o(Qn,"flush");function Ai(){var gr=Gv(),Fo=Re(gr);if(y=arguments,T=this,G=gr,Fo){if(H===e)return Fe(G);if(ue)return hu(H),H=St(tt,f),Pe(G)}return H===e&&(H=St(tt,f)),R}return o(Ai,"debounced"),Ai.cancel=Mi,Ai.flush=Qn,Ai}o(YS,"debounce");var jL=Ve(function(s,f){return mv(s,1,f)}),qL=Ve(function(s,f,h){return mv(s,eo(f)||0,h)});function $L(s){return pi(s,ce)}o($L,"flip");function Kv(s,f){if(typeof s!="function"||f!=null&&typeof f!="function")throw new Pn(p);var h=o(function(){var y=arguments,T=f?f.apply(this,y):y[0],N=h.cache;if(N.has(T))return N.get(T);var R=s.apply(this,y);return h.cache=N.set(T,R)||N,R},"memoized");return h.cache=new(Kv.Cache||tr),h}o(Kv,"memoize"),Kv.Cache=tr;function Yv(s){if(typeof s!="function")throw new Pn(p);return function(){var f=arguments;switch(f.length){case 0:return!s.call(this);case 1:return!s.call(this,f[0]);case 2:return!s.call(this,f[0],f[1]);case 3:return!s.call(this,f[0],f[1],f[2])}return!s.apply(this,f)}}o(Yv,"negate");function VL(s){return $S(2,s)}o(VL,"once");var GL=o0(function(s,f){f=f.length==1&&$e(f[0])?ft(f[0],nr(Me())):ft(Rr(f,1),nr(Me()));var h=f.length;return Ve(function(y){for(var T=-1,N=Ar(y.length,h);++T=f}),Ua=uu(function(){return arguments}())?uu:function(s){return or(s)&&Be.call(s,"callee")&&!Hf.call(s,"callee")},$e=Q.isArray,uP=Pf?nr(Pf):e0;function di(s){return s!=null&&Xv(s.length)&&!fl(s)}o(di,"isArrayLike");function mr(s){return or(s)&&di(s)}o(mr,"isArrayLikeObject");function aP(s){return s===!0||s===!1||or(s)&&Tr(s)==Pt}o(aP,"isBoolean");var _u=xa||_0,fP=Mf?nr(Mf):au;function cP(s){return or(s)&&s.nodeType===1&&!xd(s)}o(cP,"isElement");function pP(s){if(s==null)return!0;if(di(s)&&($e(s)||typeof s=="string"||typeof s.splice=="function"||_u(s)||hc(s)||Ua(s)))return!s.length;var f=Yr(s);if(f==Xt||f==Qt)return!s.size;if(Z(s))return!Jf(s).length;for(var h in s)if(Be.call(s,h))return!1;return!0}o(pP,"isEmpty");function dP(s,f){return fu(s,f)}o(dP,"isEqual");function hP(s,f,h){h=typeof h=="function"?h:e;var y=h?h(s,f):e;return y===e?fu(s,f,e,h):!!y}o(hP,"isEqualWith");function d0(s){if(!or(s))return!1;var f=Tr(s);return f==cr||f==qr||typeof s.message=="string"&&typeof s.name=="string"&&!xd(s)}o(d0,"isError");function vP(s){return typeof s=="number"&&sv(s)}o(vP,"isFinite");function fl(s){if(!rr(s))return!1;var f=Tr(s);return f==_n||f==En||f==Lr||f==ni}o(fl,"isFunction");function QS(s){return typeof s=="number"&&s==Ge(s)}o(QS,"isInteger");function Xv(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=rt}o(Xv,"isLength");function rr(s){var f=typeof s;return s!=null&&(f=="object"||f=="function")}o(rr,"isObject");function or(s){return s!=null&&typeof s=="object"}o(or,"isObjectLike");var ZS=ha?nr(ha):xv;function mP(s,f){return s===f||il(s,f,xu(f))}o(mP,"isMatch");function gP(s,f,h){return h=typeof h=="function"?h:e,il(s,f,xu(f),h)}o(gP,"isMatchWith");function yP(s){return JS(s)&&s!=+s}o(yP,"isNaN");function wP(s){if(B(s))throw new He(a);return cu(s)}o(wP,"isNative");function xP(s){return s===null}o(xP,"isNull");function SP(s){return s==null}o(SP,"isNil");function JS(s){return typeof s=="number"||or(s)&&Tr(s)==je}o(JS,"isNumber");function xd(s){if(!or(s)||Tr(s)!=an)return!1;var f=Jl(s);if(f===null)return!0;var h=Be.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&Gi.call(h)==Wy}o(xd,"isPlainObject");var h0=va?nr(va):Na;function CP(s){return QS(s)&&s>=-rt&&s<=rt}o(CP,"isSafeInteger");var eC=Vl?nr(Vl):La;function Qv(s){return typeof s=="string"||!$e(s)&&or(s)&&Tr(s)==cn}o(Qv,"isString");function Pi(s){return typeof s=="symbol"||or(s)&&Tr(s)==Ci}o(Pi,"isSymbol");var hc=Gl?nr(Gl):Sv;function _P(s){return s===e}o(_P,"isUndefined");function EP(s){return or(s)&&Yr(s)==$r}o(EP,"isWeakMap");function bP(s){return or(s)&&Tr(s)==Yo}o(bP,"isWeakSet");var TP=xt(Ss),OP=xt(function(s,f){return s<=f});function tC(s){if(!s)return[];if(di(s))return Qv(s)?ui(s):Or(s);if(fs&&s[fs])return Qh(s[fs]());var f=Yr(s),h=f==Xt?If:f==Qt?Ff:vc;return h(s)}o(tC,"toArray");function cl(s){if(!s)return s===0?s:0;if(s=eo(s),s===vt||s===-vt){var f=s<0?-1:1;return f*nt}return s===s?s:0}o(cl,"toFinite");function Ge(s){var f=cl(s),h=f%1;return f===f?h?f-h:f:0}o(Ge,"toInteger");function rC(s){return s?rl(Ge(s),0,lt):0}o(rC,"toLength");function eo(s){if(typeof s=="number")return s;if(Pi(s))return Sr;if(rr(s)){var f=typeof s.valueOf=="function"?s.valueOf():s;s=rr(f)?f+"":f}if(typeof s!="string")return s===0?s:+s;s=Ln(s);var h=So.test(s);return h||Co.test(s)?Ip(s.slice(2),h?2:8):oa.test(s)?Sr:+s}o(eo,"toNumber");function nC(s){return Mn(s,hi(s))}o(nC,"toPlainObject");function kP(s){return s?rl(Ge(s),-rt,rt):s===0?s:0}o(kP,"toSafeInteger");function Ct(s){return s==null?"":Kr(s)}o(Ct,"toString");var NP=vu(function(s,f){if(Z(f)||di(f)){Mn(f,en(f),s);return}for(var h in f)Be.call(f,h)&&Ta(s,h,f[h])}),iC=vu(function(s,f){Mn(f,hi(f),s)}),Zv=vu(function(s,f,h,y){Mn(f,hi(f),s,y)}),LP=vu(function(s,f,h,y){Mn(f,en(f),s,y)}),PP=Ao(ed);function MP(s,f){var h=Yi(s);return f==null?h:Jp(h,f)}o(MP,"create");var AP=Ve(function(s,f){s=ot(s);var h=-1,y=f.length,T=y>2?f[2]:e;for(T&&C(f[0],f[1],T)&&(y=1);++h1),N}),Mn(s,fc(s),h),y&&(h=mn(h,L|F|Y,Bv));for(var T=f.length;T--;)Aa(h,f[T]);return h});function QP(s,f){return sC(s,Yv(Me(f)))}o(QP,"omitBy");var ZP=Ao(function(s,f){return s==null?{}:bv(s,f)});function sC(s,f){if(s==null)return{};var h=ft(fc(s),function(y){return[y]});return f=Me(f),Tv(s,h,function(y,T){return f(y,T[0])})}o(sC,"pickBy");function JP(s,f,h){f=Li(f,s);var y=-1,T=f.length;for(T||(T=1,s=e);++yf){var y=s;s=f,f=y}if(h||s%1||f%1){var T=ds();return Ar(s+T*(f-s+Dp("1e-"+((T+"").length-1))),f)}return tc(s,f)}o(aM,"random");var fM=mu(function(s,f,h){return f=f.toLowerCase(),s+(h?aC(f):f)});function aC(s){return g0(Ct(s).toLowerCase())}o(aC,"capitalize");function fC(s){return s=Ct(s),s&&s.replace(Tf,Gs).replace(Ap,"")}o(fC,"deburr");function cM(s,f,h){s=Ct(s),f=Kr(f);var y=s.length;h=h===e?y:rl(Ge(h),0,y);var T=h;return h-=f.length,h>=0&&s.slice(h,T)==f}o(cM,"endsWith");function pM(s){return s=Ct(s),s&&ra.test(s)?s.replace(Cr,Ti):s}o(pM,"escape");function dM(s){return s=Ct(s),s&&_f.test(s)?s.replace(Ws,"\\$&"):s}o(dM,"escapeRegExp");var hM=mu(function(s,f,h){return s+(h?"-":"")+f.toLowerCase()}),vM=mu(function(s,f,h){return s+(h?" ":"")+f.toLowerCase()}),mM=Rv("toLowerCase");function gM(s,f,h){s=Ct(s),f=Ge(f);var y=f?Ks(s):0;if(!f||y>=f)return s;var T=(f-y)/2;return uc(ru(T),h)+s+uc(tu(T),h)}o(gM,"pad");function yM(s,f,h){s=Ct(s),f=Ge(f);var y=f?Ks(s):0;return f&&y>>0,h?(s=Ct(s),s&&(typeof f=="string"||f!=null&&!h0(f))&&(f=Kr(f),!f&&Oi(s))?_s(ui(s),0,h):s.split(f,h)):[]}o(EM,"split");var bM=mu(function(s,f,h){return s+(h?" ":"")+g0(f)});function TM(s,f,h){return s=Ct(s),h=h==null?0:rl(Ge(h),0,s.length),f=Kr(f),s.slice(h,h+f.length)==f}o(TM,"startsWith");function OM(s,f,h){var y=O.templateSettings;h&&C(s,f,h)&&(f=e),s=Ct(s),f=Zv({},f,y,ac);var T=Zv({},f.imports,y.imports,ac),N=en(T),R=li(T,N),H,G,ie=0,oe=f.interpolate||bt,ue="__p += '",xe=ls((f.escape||bt).source+"|"+oe.source+"|"+(oe===na?bf:bt).source+"|"+(f.evaluate||bt).source+"|$","g"),Pe="//# sourceURL="+(Be.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ql+"]")+` -`;s.replace(xe,function(Re,tt,st,Mi,Qn,Ai){return st||(st=Mi),ue+=s.slice(ie,Ai).replace(_e,Xh),tt&&(H=!0,ue+=`' + -__e(`+tt+`) + -'`),Qn&&(G=!0,ue+=`'; -`+Qn+`; -__p += '`),st&&(ue+=`' + -((__t = (`+st+`)) == null ? '' : __t) + -'`),ie=Ai+Re.length,Re}),ue+=`'; -`;var Fe=Be.call(f,"variable")&&f.variable;if(!Fe)ue=`with (obj) { -`+ue+` +`)}o(m,"insertWrapDetails");function g(s){return tt(s)||ju(s)||!!(dl&&s&&s[dl])}o(g,"isFlattenable");function S(s,f){var h=typeof s;return f=f??ze,!!f&&(h=="number"||h!="symbol"&&jl.test(s))&&s>-1&&s%1==0&&s0){if(++f>=Ve)return arguments[0]}else f=0;return s.apply(e,arguments)}}o(ur,"shortOut");function $r(s,f){var h=-1,w=s.length,b=w-1;for(f=f===e?w:f;++h1?s[f-1]:e;return h=typeof h=="function"?(s.pop(),h):e,RS(s,h)});function IS(s){var f=T(s);return f.__chain__=!0,f}o(IS,"chain");function NN(s,f){return f(s),s}o(NN,"tap");function Km(s,f){return f(s)}o(Km,"thru");var LN=Xo(function(s){var f=s.length,h=f?s[0]:0,w=this.__wrapped__,b=o(function(N){return Qp(N,s)},"interceptor");return f>1||this.__actions__.length||!(w instanceof ft)||!S(h)?this.thru(b):(w=w.slice(h,+h+(f?1:0)),w.__actions__.push({func:Km,args:[b],thisArg:e}),new Nn(w,this.__chain__).thru(function(N){return f&&!N.length&&N.push(e),N}))});function PN(){return IS(this)}o(PN,"wrapperChain");function MN(){return new Nn(this.value(),this.__chain__)}o(MN,"wrapperCommit");function AN(){this.__values__===e&&(this.__values__=QS(this.value()));var s=this.__index__>=this.__values__.length,f=s?e:this.__values__[this.__index__++];return{done:s,value:f}}o(AN,"wrapperNext");function DN(){return this}o(DN,"wrapperToIterator");function FN(s){for(var f,h=this;h instanceof $f;){var w=gn(h);w.__index__=0,w.__values__=e,f?b.__wrapped__=w:f=w;var b=w;h=h.__wrapped__}return b.__wrapped__=s,f}o(FN,"wrapperPlant");function RN(){var s=this.__wrapped__;if(s instanceof ft){var f=s;return this.__actions__.length&&(f=new ft(this)),f=f.reverse(),f.__actions__.push({func:Km,args:[h0],thisArg:e}),new Nn(f,this.__chain__)}return this.thru(h0)}o(RN,"wrapperReverse");function IN(){return Lm(this.__wrapped__,this.__actions__)}o(IN,"wrapperValue");var HN=ac(function(s,f,h){Ye.call(s,h)?++s[h]:vo(s,h,1)});function WN(s,f,h){var w=tt(s)?xu:Gf;return h&&C(s,f,h)&&(f=e),w(s,He(f,3))}o(WN,"every");function BN(s,f){var h=tt(s)?io:Jp;return h(s,He(f,3))}o(BN,"filter");var UN=pd(hc),zN=pd(MS);function $N(s,f){return Jr(Gm(s,f),1)}o($N,"flatMap");function jN(s,f){return Jr(Gm(s,f),ct)}o(jN,"flatMapDeep");function qN(s,f,h){return h=h===e?1:nt(h),Jr(Gm(s,f),h)}o(qN,"flatMapDepth");function HS(s,f){var h=tt(s)?zn:ai;return h(s,He(f,3))}o(HS,"forEach");function WS(s,f){var h=tt(s)?Dp:Kf;return h(s,He(f,3))}o(WS,"forEachRight");var VN=ac(function(s,f,h){Ye.call(s,h)?s[h].push(f):vo(s,h,[f])});function KN(s,f,h,w){s=Oi(s)?s:vc(s),h=h&&!w?nt(h):0;var b=s.length;return h<0&&(h=tr(b+h,0)),Jm(s)?h<=b&&s.indexOf(f,h)>-1:!!b&&jo(s,f,h)>-1}o(KN,"includes");var GN=rt(function(s,f,h){var w=-1,b=typeof f=="function",N=Oi(s)?Z(s.length):[];return ai(s,function(I){N[++w]=b?On(f,I,h):ma(I,f,h)}),N}),YN=ac(function(s,f,h){vo(s,h,f)});function Gm(s,f){var h=tt(s)?Ct:xa;return h(s,He(f,3))}o(Gm,"map");function XN(s,f,h,w){return s==null?[]:(tt(f)||(f=f==null?[]:[f]),h=w?e:h,tt(h)||(h=h==null?[]:[h]),pn(s,f,h))}o(XN,"orderBy");var QN=ac(function(s,f,h){s[h?0:1].push(f)},function(){return[[],[]]});function ZN(s,f,h){var w=tt(s)?ra:U,b=arguments.length<3;return w(s,He(f,4),h,b,ai)}o(ZN,"reduce");function JN(s,f,h){var w=tt(s)?Fp:U,b=arguments.length<3;return w(s,He(f,4),h,b,Kf)}o(JN,"reduceRight");function eL(s,f){var h=tt(s)?io:Jp;return h(s,Qm(He(f,3)))}o(eL,"reject");function tL(s){var f=tt(s)?qf:a0;return f(s)}o(tL,"sample");function rL(s,f,h){(h?C(s,f,h):f===e)?f=1:f=nt(f);var w=tt(s)?Ds:Hs;return w(s,f)}o(rL,"sampleSize");function nL(s){var f=tt(s)?mm:Go;return f(s)}o(nL,"shuffle");function iL(s){if(s==null)return 0;if(Oi(s))return Jm(s)?fl(s):s.length;var f=hn(s);return f==qt||f==Gt?s.size:ec(s).length}o(iL,"size");function oL(s,f,h){var w=tt(s)?so:u0;return h&&C(s,f,h)&&(f=e),w(s,He(f,3))}o(oL,"some");var sL=rt(function(s,f){if(s==null)return[];var h=f.length;return h>1&&C(s,f[0],f[1])?f=[]:h>2&&C(f[0],f[1],f[2])&&(f=[f[0]]),pn(s,Jr(f,1),[])}),Ym=qy||function(){return Nt.Date.now()};function lL(s,f){if(typeof f!="function")throw new qn(d);return s=nt(s),function(){if(--s<1)return f.apply(this,arguments)}}o(lL,"after");function BS(s,f,h){return f=h?e:f,f=s&&f==null?s.length:f,ki(s,ue,e,e,e,e,f)}o(BS,"ary");function US(s,f){var h;if(typeof f!="function")throw new qn(d);return s=nt(s),function(){return--s>0&&(h=f.apply(this,arguments)),s<=1&&(f=e),h}}o(US,"before");var v0=rt(function(s,f,h){var w=te;if(h.length){var b=Cs(h,ka(v0));w|=K}return ki(s,w,f,h,b)}),zS=rt(function(s,f,h){var w=te|Q;if(h.length){var b=Cs(h,ka(zS));w|=K}return ki(f,w,s,h,b)});function $S(s,f,h){f=h?e:f;var w=ki(s,P,e,e,e,e,e,f);return w.placeholder=$S.placeholder,w}o($S,"curry");function jS(s,f,h){f=h?e:f;var w=ki(s,R,e,e,e,e,e,f);return w.placeholder=jS.placeholder,w}o(jS,"curryRight");function qS(s,f,h){var w,b,N,I,W,G,se=0,le=!1,fe=!1,ke=!0;if(typeof s!="function")throw new qn(d);f=wo(f)||0,gr(h)&&(le=!!h.leading,fe="maxWait"in h,N=fe?tr(wo(h.maxWait)||0,f):N,ke="trailing"in h?!!h.trailing:ke);function Ie(Ar){var Jo=w,Ol=b;return w=b=e,se=Ar,I=s.apply(Ol,Jo),I}o(Ie,"invokeFunc");function $e(Ar){return se=Ar,W=Pt(pt,f),le?Ie(Ar):I}o($e,"leadingEdge");function ot(Ar){var Jo=Ar-G,Ol=Ar-se,fC=f-Jo;return fe?Yr(fC,N-Ol):fC}o(ot,"remainingWait");function je(Ar){var Jo=Ar-G,Ol=Ar-se;return G===e||Jo>=f||Jo<0||fe&&Ol>=N}o(je,"shouldInvoke");function pt(){var Ar=Ym();if(je(Ar))return mt(Ar);W=Pt(pt,ot(Ar))}o(pt,"timerExpired");function mt(Ar){return W=e,ke&&w?Ie(Ar):(w=b=e,I)}o(mt,"trailingEdge");function Vi(){W!==e&&Ca(W),se=0,w=G=b=W=e}o(Vi,"cancel");function ci(){return W===e?I:mt(Ym())}o(ci,"flush");function Ki(){var Ar=Ym(),Jo=je(Ar);if(w=arguments,b=this,G=Ar,Jo){if(W===e)return $e(G);if(fe)return Ca(W),W=Pt(pt,f),Ie(G)}return W===e&&(W=Pt(pt,f)),I}return o(Ki,"debounced"),Ki.cancel=Vi,Ki.flush=ci,Ki}o(qS,"debounce");var aL=rt(function(s,f){return ym(s,1,f)}),uL=rt(function(s,f,h){return ym(s,wo(f)||0,h)});function fL(s){return ki(s,he)}o(fL,"flip");function Xm(s,f){if(typeof s!="function"||f!=null&&typeof f!="function")throw new qn(d);var h=o(function(){var w=arguments,b=f?f.apply(this,w):w[0],N=h.cache;if(N.has(b))return N.get(b);var I=s.apply(this,w);return h.cache=N.set(b,I)||N,I},"memoized");return h.cache=new(Xm.Cache||vr),h}o(Xm,"memoize"),Xm.Cache=vr;function Qm(s){if(typeof s!="function")throw new qn(d);return function(){var f=arguments;switch(f.length){case 0:return!s.call(this);case 1:return!s.call(this,f[0]);case 2:return!s.call(this,f[0],f[1]);case 3:return!s.call(this,f[0],f[1],f[2])}return!s.apply(this,f)}}o(Qm,"negate");function cL(s){return US(2,s)}o(cL,"once");var pL=f0(function(s,f){f=f.length==1&&tt(f[0])?Ct(f[0],wr(He())):Ct(Jr(f,1),wr(He()));var h=f.length;return rt(function(w){for(var b=-1,N=Yr(w.length,h);++b=f}),ju=va(function(){return arguments}())?va:function(s){return Sr(s)&&Ye.call(s,"callee")&&!Bf.call(s,"callee")},tt=Z.isArray,kL=Mf?wr(Mf):o0;function Oi(s){return s!=null&&Zm(s.length)&&!Tl(s)}o(Oi,"isArrayLike");function Mr(s){return Sr(s)&&Oi(s)}o(Mr,"isArrayLikeObject");function OL(s){return s===!0||s===!1||Sr(s)&&Ur(s)==zt}o(OL,"isBoolean");var Pa=Eu||O0,NL=Af?wr(Af):ga;function LL(s){return Sr(s)&&s.nodeType===1&&!gd(s)}o(LL,"isElement");function PL(s){if(s==null)return!0;if(Oi(s)&&(tt(s)||typeof s=="string"||typeof s.splice=="function"||Pa(s)||mc(s)||ju(s)))return!s.length;var f=hn(s);if(f==qt||f==Gt)return!s.size;if(ee(s))return!ec(s).length;for(var h in s)if(Ye.call(s,h))return!1;return!0}o(PL,"isEmpty");function ML(s,f){return ya(s,f)}o(ML,"isEqual");function AL(s,f,h){h=typeof h=="function"?h:e;var w=h?h(s,f):e;return w===e?ya(s,f,e,h):!!w}o(AL,"isEqualWith");function y0(s){if(!Sr(s))return!1;var f=Ur(s);return f==Ze||f==ne||typeof s.message=="string"&&typeof s.name=="string"&&!gd(s)}o(y0,"isError");function DL(s){return typeof s=="number"&&am(s)}o(DL,"isFinite");function Tl(s){if(!gr(s))return!1;var f=Ur(s);return f==Tr||f==jt||f==br||f==ii}o(Tl,"isFunction");function KS(s){return typeof s=="number"&&s==nt(s)}o(KS,"isInteger");function Zm(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=ze}o(Zm,"isLength");function gr(s){var f=typeof s;return s!=null&&(f=="object"||f=="function")}o(gr,"isObject");function Sr(s){return s!=null&&typeof s=="object"}o(Sr,"isObjectLike");var GS=yu?wr(yu):Cm;function FL(s,f){return s===f||xl(s,f,Oa(f))}o(FL,"isMatch");function RL(s,f,h){return h=typeof h=="function"?h:e,xl(s,f,Oa(f),h)}o(RL,"isMatchWith");function IL(s){return YS(s)&&s!=+s}o(IL,"isNaN");function HL(s){if(z(s))throw new Ke(l);return wa(s)}o(HL,"isNative");function WL(s){return s===null}o(WL,"isNull");function BL(s){return s==null}o(BL,"isNil");function YS(s){return typeof s=="number"||Sr(s)&&Ur(s)==we}o(YS,"isNumber");function gd(s){if(!Sr(s)||Ur(s)!=ln)return!1;var f=la(s);if(f===null)return!0;var h=Ye.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&co.call(h)==$y}o(gd,"isPlainObject");var w0=wu?wr(wu):Au;function UL(s){return KS(s)&&s>=-ze&&s<=ze}o(UL,"isSafeInteger");var XS=ea?wr(ea):Du;function Jm(s){return typeof s=="string"||!tt(s)&&Sr(s)&&Ur(s)==dr}o(Jm,"isString");function qi(s){return typeof s=="symbol"||Sr(s)&&Ur(s)==ut}o(qi,"isSymbol");var mc=ta?wr(ta):_m;function zL(s){return s===e}o(zL,"isUndefined");function $L(s){return Sr(s)&&hn(s)==yr}o($L,"isWeakMap");function jL(s){return Sr(s)&&Ur(s)==Ii}o(jL,"isWeakSet");var qL=Lt(Is),VL=Lt(function(s,f){return s<=f});function QS(s){if(!s)return[];if(Oi(s))return Jm(s)?_i(s):zr(s);if(Ts&&s[Ts])return Jh(s[Ts]());var f=hn(s),h=f==qt?Rf:f==Gt?If:vc;return h(s)}o(QS,"toArray");function kl(s){if(!s)return s===0?s:0;if(s=wo(s),s===ct||s===-ct){var f=s<0?-1:1;return f*lt}return s===s?s:0}o(kl,"toFinite");function nt(s){var f=kl(s),h=f%1;return f===f?h?f-h:f:0}o(nt,"toInteger");function ZS(s){return s?yl(nt(s),0,at):0}o(ZS,"toLength");function wo(s){if(typeof s=="number")return s;if(qi(s))return Zt;if(gr(s)){var f=typeof s.valueOf=="function"?s.valueOf():s;s=gr(f)?f+"":f}if(typeof s!="string")return s===0?s:+s;s=jn(s);var h=Ho.test(s);return h||Wo.test(s)?Mp(s.slice(2),h?2:8):uu.test(s)?Zt:+s}o(wo,"toNumber");function JS(s){return Vn(s,Ni(s))}o(JS,"toPlainObject");function KL(s){return s?yl(nt(s),-ze,ze):s===0?s:0}o(KL,"toSafeInteger");function Mt(s){return s==null?"":dn(s)}o(Mt,"toString");var GL=_a(function(s,f){if(ee(f)||Oi(f)){Vn(f,wn(f),s);return}for(var h in f)Ye.call(f,h)&&Lu(s,h,f[h])}),eC=_a(function(s,f){Vn(f,Ni(f),s)}),ev=_a(function(s,f,h,w){Vn(f,Ni(f),s,w)}),YL=_a(function(s,f,h,w){Vn(f,wn(f),s,w)}),XL=Xo(Qp);function QL(s,f){var h=ho(s);return f==null?h:Xp(h,f)}o(QL,"create");var ZL=rt(function(s,f){s=ht(s);var h=-1,w=f.length,b=w>2?f[2]:e;for(b&&C(f[0],f[1],b)&&(w=1);++h1),N}),Vn(s,cc(s),h),w&&(h=Ln(h,O|D|Y,$m));for(var b=f.length;b--;)Iu(h,f[b]);return h});function vP(s,f){return rC(s,Qm(He(f)))}o(vP,"omitBy");var gP=Xo(function(s,f){return s==null?{}:km(s,f)});function rC(s,f){if(s==null)return{};var h=Ct(cc(s),function(w){return[w]});return f=He(f),Om(s,h,function(w,b){return f(w,b[0])})}o(rC,"pickBy");function yP(s,f,h){f=ji(f,s);var w=-1,b=f.length;for(b||(b=1,s=e);++wf){var w=s;s=f,f=w}if(h||s%1||f%1){var b=Ns();return Yr(s+b*(f-s+Pp("1e-"+((b+"").length-1))),f)}return rc(s,f)}o(OP,"random");var NP=Ea(function(s,f,h){return f=f.toLowerCase(),s+(h?oC(f):f)});function oC(s){return C0(Mt(s).toLowerCase())}o(oC,"capitalize");function sC(s){return s=Mt(s),s&&s.replace(kf,ul).replace(Lp,"")}o(sC,"deburr");function LP(s,f,h){s=Mt(s),f=dn(f);var w=s.length;h=h===e?w:yl(nt(h),0,w);var b=h;return h-=f.length,h>=0&&s.slice(h,b)==f}o(LP,"endsWith");function PP(s){return s=Mt(s),s&&fs.test(s)?s.replace(er,Bi):s}o(PP,"escape");function MP(s){return s=Mt(s),s&&Ef.test(s)?s.replace(el,"\\$&"):s}o(MP,"escapeRegExp");var AP=Ea(function(s,f,h){return s+(h?"-":"")+f.toLowerCase()}),DP=Ea(function(s,f,h){return s+(h?" ":"")+f.toLowerCase()}),FP=Wm("toLowerCase");function RP(s,f,h){s=Mt(s),f=nt(f);var w=f?fl(s):0;if(!f||w>=f)return s;var b=(f-w)/2;return uc(fa(b),h)+s+uc(ua(b),h)}o(RP,"pad");function IP(s,f,h){s=Mt(s),f=nt(f);var w=f?fl(s):0;return f&&w>>0,h?(s=Mt(s),s&&(typeof f=="string"||f!=null&&!w0(f))&&(f=dn(f),!f&&Ui(s))?Ws(_i(s),0,h):s.split(f,h)):[]}o($P,"split");var jP=Ea(function(s,f,h){return s+(h?" ":"")+C0(f)});function qP(s,f,h){return s=Mt(s),h=h==null?0:yl(nt(h),0,s.length),f=dn(f),s.slice(h,h+f.length)==f}o(qP,"startsWith");function VP(s,f,h){var w=T.templateSettings;h&&C(s,f,h)&&(f=e),s=Mt(s),f=ev({},f,w,fc);var b=ev({},f.imports,w.imports,fc),N=wn(b),I=Ci(b,N),W,G,se=0,le=f.interpolate||Rt,fe="__p += '",ke=_s((f.escape||Rt).source+"|"+le.source+"|"+(le===Js?Tf:Rt).source+"|"+(f.evaluate||Rt).source+"|$","g"),Ie="//# sourceURL="+(Ye.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Zl+"]")+` +`;s.replace(ke,function(je,pt,mt,Vi,ci,Ki){return mt||(mt=Vi),fe+=s.slice(se,Ki).replace(Le,Zh),pt&&(W=!0,fe+=`' + +__e(`+pt+`) + +'`),ci&&(G=!0,fe+=`'; +`+ci+`; +__p += '`),mt&&(fe+=`' + +((__t = (`+mt+`)) == null ? '' : __t) + +'`),se=Ki+je.length,je}),fe+=`'; +`;var $e=Ye.call(f,"variable")&&f.variable;if(!$e)fe=`with (obj) { +`+fe+` } -`;else if(Xo.test(Fe))throw new He(m);ue=(G?ue.replace(Zt,""):ue).replace(Cf,"$1").replace(pn,"$1;"),ue="function("+(Fe||"obj")+`) { -`+(Fe?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(H?", __e = _.escape":"")+(G?`, __j = Array.prototype.join; +`;else if(ps.test($e))throw new Ke(v);fe=(G?fe.replace(Jt,""):fe).replace(zl,"$1").replace(Ft,"$1;"),fe="function("+($e||"obj")+`) { +`+($e?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(W?", __e = _.escape":"")+(G?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+ue+`return __p -}`;var Xe=pC(function(){return ct(N,Pe+"return "+ue).apply(e,R)});if(Xe.source=ue,d0(Xe))throw Xe;return Xe}o(OM,"template");function kM(s){return Ct(s).toLowerCase()}o(kM,"toLower");function NM(s){return Ct(s).toUpperCase()}o(NM,"toUpper");function LM(s,f,h){if(s=Ct(s),s&&(h||f===e))return Ln(s);if(!s||!(f=Kr(f)))return s;var y=ui(s),T=ui(f),N=bi(y,T),R=ji(y,T)+1;return _s(y,N,R).join("")}o(LM,"trim");function PM(s,f,h){if(s=Ct(s),s&&(h||f===e))return s.slice(0,Rf(s)+1);if(!s||!(f=Kr(f)))return s;var y=ui(s),T=ji(y,ui(f))+1;return _s(y,0,T).join("")}o(PM,"trimEnd");function MM(s,f,h){if(s=Ct(s),s&&(h||f===e))return s.replace(Hs,"");if(!s||!(f=Kr(f)))return s;var y=ui(s),T=bi(y,ui(f));return _s(y,T).join("")}o(MM,"trimStart");function AM(s,f){var h=me,y=ye;if(rr(f)){var T="separator"in f?f.separator:T;h="length"in f?Ge(f.length):h,y="omission"in f?Kr(f.omission):y}s=Ct(s);var N=s.length;if(Oi(s)){var R=ui(s);N=R.length}if(h>=N)return s;var H=h-Ks(y);if(H<1)return y;var G=R?_s(R,0,H).join(""):s.slice(0,H);if(T===e)return G+y;if(R&&(H+=G.length-H),h0(T)){if(s.slice(H).search(T)){var ie,oe=G;for(T.global||(T=ls(T.source,Ct(Us.exec(T))+"g")),T.lastIndex=0;ie=T.exec(oe);)var ue=ie.index;G=G.slice(0,ue===e?H:ue)}}else if(s.indexOf(Kr(T),H)!=H){var xe=G.lastIndexOf(T);xe>-1&&(G=G.slice(0,xe))}return G+y}o(AM,"truncate");function DM(s){return s=Ct(s),s&&ta.test(s)?s.replace(xo,Wf):s}o(DM,"unescape");var IM=mu(function(s,f,h){return s+(h?" ":"")+f.toUpperCase()}),g0=Rv("toUpperCase");function cC(s,f,h){return s=Ct(s),f=h?e:f,f===e?qi(s)?ki(s):Df(s):s.match(f)||[]}o(cC,"words");var pC=Ve(function(s,f){try{return hn(s,e,f)}catch(h){return d0(h)?h:new He(h)}}),FM=Ao(function(s,f){return kn(f,function(h){h=yt(h),Qi(s,h,c0(s[h],s))}),s});function RM(s){var f=s==null?0:s.length,h=Me();return s=f?ft(s,function(y){if(typeof y[1]!="function")throw new Pn(p);return[h(y[0]),y[1]]}):[],Ve(function(y){for(var T=-1;++Trt)return[];var h=lt,y=Ar(s,lt);f=Me(f),s-=lt;for(var T=Jt(y,f);++h0||f<0)?new Je(h):(s<0?h=h.takeRight(-s):s&&(h=h.drop(s)),f!==e&&(f=Ge(f),h=f<0?h.dropRight(-f):h.take(f-s)),h)},Je.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Je.prototype.toArray=function(){return this.take(lt)},Yn(Je.prototype,function(s,f){var h=/^(?:filter|find|map|reject)|While$/.test(f),y=/^(?:head|last)$/.test(f),T=O[y?"take"+(f=="last"?"Right":""):f],N=y||/^find/.test(f);!T||(O.prototype[f]=function(){var R=this.__wrapped__,H=y?[1]:arguments,G=R instanceof Je,ie=H[0],oe=G||$e(R),ue=o(function(tt){var st=T.apply(O,Bi([tt],H));return y&&xe?st[0]:st},"interceptor");oe&&h&&typeof ie=="function"&&ie.length!=1&&(G=oe=!1);var xe=this.__chain__,Pe=!!this.__actions__.length,Fe=N&&!xe,Xe=G&&!Pe;if(!N&&oe){R=Xe?R:new Je(this);var Re=s.apply(R,H);return Re.__actions__.push({func:$v,args:[ue],thisArg:e}),new vn(Re,xe)}return Fe&&Xe?s.apply(this,H):(Re=this.thru(ue),Fe?y?Re.value()[0]:Re.value():Re)})}),kn(["pop","push","shift","sort","splice","unshift"],function(s){var f=Zl[s],h=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",y=/^(?:pop|shift)$/.test(s);O.prototype[s]=function(){var T=arguments;if(y&&!this.__chain__){var N=this.value();return f.apply($e(N)?N:[],T)}return this[h](function(R){return f.apply($e(R)?R:[],T)})}}),Yn(Je.prototype,function(s,f){var h=O[f];if(h){var y=h.name+"";Be.call(iu,y)||(iu[y]=[]),iu[y].push({name:f,func:h})}}),iu[Da(e,J).name]=[{name:"wrapper",func:e}],Je.prototype.clone=Gy,Je.prototype.reverse=Ky,Je.prototype.value=qp,O.prototype.at=cL,O.prototype.chain=pL,O.prototype.commit=dL,O.prototype.next=hL,O.prototype.plant=mL,O.prototype.reverse=gL,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=yL,O.prototype.first=O.prototype.head,fs&&(O.prototype[fs]=vL),O},"runInContext"),$i=rv();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(wt._=$i,define(function(){return $i})):Er?((Er.exports=$i)._=$i,ts._=$i):wt._=$i}).call(Zc)});var TT=Gt((ox,sx)=>{(function(e,t){typeof ox=="object"&&typeof sx!="undefined"?sx.exports=t():typeof define=="function"&&define.amd?define(t):e.stable=t()})(ox,function(){"use strict";var e=o(function(a,p){return t(a.slice(),p)},"stable");e.inplace=function(a,p){var m=t(a,p);return m!==a&&i(m,null,a.length,a),a};function t(a,p){typeof p!="function"&&(p=o(function(L,F){return String(L).localeCompare(F)},"comp"));var m=a.length;if(m<=1)return a;for(var d=new Array(m),w=1;ww&&(Y=w),z>w&&(z=w),X=F,ee=Y;;)if(X{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var i=[],a=0;a{aO.exports=o(function(t,i,a,p){var m=a?a.call(p,t,i):void 0;if(m!==void 0)return!!m;if(t===i)return!0;if(typeof t!="object"||!t||typeof i!="object"||!i)return!1;var d=Object.keys(t),w=Object.keys(i);if(d.length!==w.length)return!1;for(var b=Object.prototype.hasOwnProperty.bind(i),L=0;L{var T2=typeof Element!="undefined",O2=typeof Map=="function",k2=typeof Set=="function",N2=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function uy(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var i,a,p;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(a=i;a--!=0;)if(!uy(e[a],t[a]))return!1;return!0}var m;if(O2&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(m=e.entries();!(a=m.next()).done;)if(!t.has(a.value[0]))return!1;for(m=e.entries();!(a=m.next()).done;)if(!uy(a.value[1],t.get(a.value[0])))return!1;return!0}if(k2&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(m=e.entries();!(a=m.next()).done;)if(!t.has(a.value[0]))return!1;return!0}if(N2&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(a=i;a--!=0;)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(p=Object.keys(e),i=p.length,i!==Object.keys(t).length)return!1;for(a=i;a--!=0;)if(!Object.prototype.hasOwnProperty.call(t,p[a]))return!1;if(T2&&e instanceof Element)return!1;for(a=i;a--!=0;)if(!((p[a]==="_owner"||p[a]==="__v"||p[a]==="__o")&&e.$$typeof)&&!uy(e[p[a]],t[p[a]]))return!1;return!0}return e!==e&&t!==t}o(uy,"equal");jO.exports=o(function(t,i){try{return uy(t,i)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}},"isEqual")});var Ck=Gt((iS,oS)=>{(function(e,t){typeof iS=="object"&&typeof oS!="undefined"?oS.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.CodeMirror=t())})(iS,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,i=/gecko\/\d/i.test(e),a=/MSIE \d/.test(e),p=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),m=/Edge\/(\d+)/.exec(e),d=a||p||m,w=d&&(a?document.documentMode||6:+(m||p)[1]),b=!m&&/WebKit\//.test(e),L=b&&/Qt\/\d+\.\d+/.test(e),F=!m&&/Chrome\//.test(e),Y=/Opera\//.test(e),z=/Apple Computer/.test(navigator.vendor),X=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),ee=/PhantomJS/.test(e),J=z&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),I=/Android/.test(e),A=J||I||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),W=J||/Mac/.test(t),K=/\bCrOS\b/.test(e),V=/win/i.test(t),fe=Y&&e.match(/Version\/(\d*\.\d*)/);fe&&(fe=Number(fe[1])),fe&&fe>=15&&(Y=!1,b=!0);var se=W&&(L||Y&&(fe==null||fe<12.11)),ce=i||d&&w>=9;function me(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}o(me,"classTest");var ye=o(function(r,n){var u=r.className,l=me(n).exec(u);if(l){var c=u.slice(l.index+l[0].length);r.className=u.slice(0,l.index)+(c?l[1]+c:"")}},"rmClass");function ze(r){for(var n=r.childNodes.length;n>0;--n)r.removeChild(r.firstChild);return r}o(ze,"removeChildren");function Ye(r,n){return ze(r).appendChild(n)}o(Ye,"removeChildrenAndAdd");function Se(r,n,u,l){var c=document.createElement(r);if(u&&(c.className=u),l&&(c.style.cssText=l),typeof n=="string")c.appendChild(document.createTextNode(n));else if(n)for(var v=0;v=n)return g+(n-v);g+=S-v,g+=u-g%u,v=S+1}}o(Nt,"countColumn");var mt=o(function(){this.id=null,this.f=null,this.time=0,this.handler=jn(this.onTimeout,this)},"Delayed");mt.prototype.onTimeout=function(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)},mt.prototype.set=function(r,n){this.f=n;var u=+new Date+r;(!this.id||u=n)return l+Math.min(g,n-c);if(c+=v-l,c+=u-c%u,l=v+1,c>=n)return l}}o(_n,"findColumn");var En=[""];function Xt(r){for(;En.length<=r;)En.push(je(En)+" ");return En[r]}o(Xt,"spaceStr");function je(r){return r[r.length-1]}o(je,"lst");function bn(r,n){for(var u=[],l=0;l"\x80"&&(r.toUpperCase()!=r.toLowerCase()||fn.test(r))}o(Qt,"isWordCharBasic");function cn(r,n){return n?n.source.indexOf("\\w")>-1&&Qt(r)?!0:n.test(r):Qt(r)}o(cn,"isWordChar");function Ci(r){for(var n in r)if(r.hasOwnProperty(n)&&r[n])return!1;return!0}o(Ci,"isEmpty");var ea=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function $r(r){return r.charCodeAt(0)>=768&&ea.test(r)}o($r,"isExtendingChar");function Yo(r,n,u){for(;(u<0?n>0:nu?-1:1;;){if(n==u)return n;var c=(n+u)/2,v=l<0?Math.ceil(c):Math.floor(c);if(v==n)return r(v)?n:u;r(v)?u=v:n=v+l}}o(_i,"findFirst");function go(r,n,u,l){if(!r)return l(n,u,"ltr",0);for(var c=!1,v=0;vn||n==u&&g.to==n)&&(l(Math.max(g.from,n),Math.min(g.to,u),g.level==1?"rtl":"ltr",v),c=!0)}c||l(n,u,"ltr")}o(go,"iterateBidiSections");var yo=null;function wo(r,n,u){var l;yo=null;for(var c=0;cn)return c;v.to==n&&(v.from!=v.to&&u=="before"?l=c:yo=c),v.from==n&&(v.from!=v.to&&u!="before"?l=c:yo=c)}return l??yo}o(wo,"getBidiPartAt");var Pl=function(){var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(E){return E<=247?r.charAt(E):1424<=E&&E<=1524?"R":1536<=E&&E<=1785?n.charAt(E-1536):1774<=E&&E<=2220?"r":8192<=E&&E<=8203?"w":E==8204?"b":"L"}o(u,"charType");var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,v=/[LRr]/,g=/[Lb1n]/,S=/[1n]/;function C(E,P,D){this.level=E,this.from=P,this.to=D}return o(C,"BidiSpan"),function(E,P){var D=P=="ltr"?"L":"R";if(E.length==0||P=="ltr"&&!l.test(E))return!1;for(var q=E.length,B=[],Z=0;Z-1&&(l[n]=c.slice(0,v).concat(c.slice(v+1)))}}}o(Pr,"off");function Lt(r,n){var u=Fs(r,n);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),c=0;c0}o(pn,"hasHandler");function xo(r){r.prototype.on=function(n,u){Ne(this,n,u)},r.prototype.off=function(n,u){Pr(this,n,u)}}o(xo,"eventMixin");function Cr(r){r.preventDefault?r.preventDefault():r.returnValue=!1}o(Cr,"e_preventDefault");function ta(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}o(ta,"e_stopPropagation");function ra(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}o(ra,"e_defaultPrevented");function Rs(r){Cr(r),ta(r)}o(Rs,"e_stop");function Al(r){return r.target||r.srcElement}o(Al,"e_target");function na(r){var n=r.which;return n==null&&(r.button&1?n=1:r.button&2?n=3:r.button&4&&(n=2)),W&&r.ctrlKey&&n==1&&(n=3),n}o(na,"e_button");var bp=function(){if(d&&w<9)return!1;var r=Se("div");return"draggable"in r||"dragDrop"in r}(),Dl;function Tp(r){if(Dl==null){var n=Se("span","\u200B");Ye(r,Se("span",[n,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(Dl=n.offsetWidth<=1&&n.offsetHeight>2&&!(d&&w<8))}var u=Dl?Se("span","\u200B"):Se("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}o(Tp,"zeroWidthElement");var Ws;function _f(r){if(Ws!=null)return Ws;var n=Ye(r,document.createTextNode("A\u062EA")),u=Rt(n,0,1).getBoundingClientRect(),l=Rt(n,1,2).getBoundingClientRect();return ze(r),!u||u.left==u.right?!1:Ws=l.right-u.right<3}o(_f,"hasBadBidiRects");var Hs=` +`)+fe+`return __p +}`;var ot=aC(function(){return _t(N,Ie+"return "+fe).apply(e,I)});if(ot.source=fe,y0(ot))throw ot;return ot}o(VP,"template");function KP(s){return Mt(s).toLowerCase()}o(KP,"toLower");function GP(s){return Mt(s).toUpperCase()}o(GP,"toUpper");function YP(s,f,h){if(s=Mt(s),s&&(h||f===e))return jn(s);if(!s||!(f=dn(f)))return s;var w=_i(s),b=_i(f),N=Wi(w,b),I=lo(w,b)+1;return Ws(w,N,I).join("")}o(YP,"trim");function XP(s,f,h){if(s=Mt(s),s&&(h||f===e))return s.slice(0,Hf(s)+1);if(!s||!(f=dn(f)))return s;var w=_i(s),b=lo(w,_i(f))+1;return Ws(w,0,b).join("")}o(XP,"trimEnd");function QP(s,f,h){if(s=Mt(s),s&&(h||f===e))return s.replace(tl,"");if(!s||!(f=dn(f)))return s;var w=_i(s),b=Wi(w,_i(f));return Ws(w,b).join("")}o(QP,"trimStart");function ZP(s,f){var h=me,w=xe;if(gr(f)){var b="separator"in f?f.separator:b;h="length"in f?nt(f.length):h,w="omission"in f?dn(f.omission):w}s=Mt(s);var N=s.length;if(Ui(s)){var I=_i(s);N=I.length}if(h>=N)return s;var W=h-fl(w);if(W<1)return w;var G=I?Ws(I,0,W).join(""):s.slice(0,W);if(b===e)return G+w;if(I&&(W+=G.length-W),w0(b)){if(s.slice(W).search(b)){var se,le=G;for(b.global||(b=_s(b.source,Mt(rl.exec(b))+"g")),b.lastIndex=0;se=b.exec(le);)var fe=se.index;G=G.slice(0,fe===e?W:fe)}}else if(s.indexOf(dn(b),W)!=W){var ke=G.lastIndexOf(b);ke>-1&&(G=G.slice(0,ke))}return G+w}o(ZP,"truncate");function JP(s){return s=Mt(s),s&&oi.test(s)?s.replace(Ir,Wf):s}o(JP,"unescape");var eM=Ea(function(s,f,h){return s+(h?" ":"")+f.toUpperCase()}),C0=Wm("toUpperCase");function lC(s,f,h){return s=Mt(s),f=h?e:f,f===e?ao(s)?zi(s):Ff(s):s.match(f)||[]}o(lC,"words");var aC=rt(function(s,f){try{return On(s,e,f)}catch(h){return y0(h)?h:new Ke(h)}}),tM=Xo(function(s,f){return zn(f,function(h){h=kt(h),vo(s,h,v0(s[h],s))}),s});function rM(s){var f=s==null?0:s.length,h=He();return s=f?Ct(s,function(w){if(typeof w[1]!="function")throw new qn(d);return[h(w[0]),w[1]]}):[],rt(function(w){for(var b=-1;++bze)return[];var h=at,w=Yr(s,at);f=He(f),s-=at;for(var b=hr(w,f);++h0||f<0)?new ft(h):(s<0?h=h.takeRight(-s):s&&(h=h.drop(s)),f!==e&&(f=nt(f),h=f<0?h.dropRight(-f):h.take(f-s)),h)},ft.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ft.prototype.toArray=function(){return this.take(at)},ui(ft.prototype,function(s,f){var h=/^(?:filter|find|map|reject)|While$/.test(f),w=/^(?:head|last)$/.test(f),b=T[w?"take"+(f=="last"?"Right":""):f],N=w||/^find/.test(f);!b||(T.prototype[f]=function(){var I=this.__wrapped__,W=w?[1]:arguments,G=I instanceof ft,se=W[0],le=G||tt(I),fe=o(function(pt){var mt=b.apply(T,oo([pt],W));return w&&ke?mt[0]:mt},"interceptor");le&&h&&typeof se=="function"&&se.length!=1&&(G=le=!1);var ke=this.__chain__,Ie=!!this.__actions__.length,$e=N&&!ke,ot=G&&!Ie;if(!N&&le){I=ot?I:new ft(this);var je=s.apply(I,W);return je.__actions__.push({func:Km,args:[fe],thisArg:e}),new Nn(je,ke)}return $e&&ot?s.apply(this,W):(je=this.thru(fe),$e?w?je.value()[0]:je.value():je)})}),zn(["pop","push","shift","sort","splice","unshift"],function(s){var f=sa[s],h=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",w=/^(?:pop|shift)$/.test(s);T.prototype[s]=function(){var b=arguments;if(w&&!this.__chain__){var N=this.value();return f.apply(tt(N)?N:[],b)}return this[h](function(I){return f.apply(tt(I)?I:[],b)})}}),ui(ft.prototype,function(s,f){var h=T[f];if(h){var w=h.name+"";Ye.call(pa,w)||(pa[w]=[]),pa[w].push({name:f,func:h})}}),pa[Hu(e,Q).name]=[{name:"wrapper",func:e}],ft.prototype.clone=Zy,ft.prototype.reverse=Jy,ft.prototype.value=Up,T.prototype.at=LN,T.prototype.chain=PN,T.prototype.commit=MN,T.prototype.next=AN,T.prototype.plant=FN,T.prototype.reverse=RN,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=IN,T.prototype.first=T.prototype.head,Ts&&(T.prototype[Ts]=DN),T},"runInContext"),uo=im();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Nt._=uo,define(function(){return uo})):Wr?((Wr.exports=uo)._=uo,gs._=uo):Nt._=uo}).call(Jc)});var xT=fr((fx,cx)=>{(function(e,t){typeof fx=="object"&&typeof cx!="undefined"?cx.exports=t():typeof define=="function"&&define.amd?define(t):e.stable=t()})(fx,function(){"use strict";var e=o(function(l,d){return t(l.slice(),d)},"stable");e.inplace=function(l,d){var v=t(l,d);return v!==l&&i(v,null,l.length,l),l};function t(l,d){typeof d!="function"&&(d=o(function(O,D){return String(O).localeCompare(D)},"comp"));var v=l.length;if(v<=1)return l;for(var p=new Array(v),y=1;yy&&(Y=y),B>y&&(B=y),X=D,te=Y;;)if(X{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var i=[],l=0;l{var HR=typeof Element!="undefined",WR=typeof Map=="function",BR=typeof Set=="function",UR=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function iy(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var i,l,d;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(l=i;l--!=0;)if(!iy(e[l],t[l]))return!1;return!0}var v;if(WR&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(v=e.entries();!(l=v.next()).done;)if(!t.has(l.value[0]))return!1;for(v=e.entries();!(l=v.next()).done;)if(!iy(l.value[1],t.get(l.value[0])))return!1;return!0}if(BR&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(v=e.entries();!(l=v.next()).done;)if(!t.has(l.value[0]))return!1;return!0}if(UR&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(l=i;l--!=0;)if(e[l]!==t[l])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(d=Object.keys(e),i=d.length,i!==Object.keys(t).length)return!1;for(l=i;l--!=0;)if(!Object.prototype.hasOwnProperty.call(t,d[l]))return!1;if(HR&&e instanceof Element)return!1;for(l=i;l--!=0;)if(!((d[l]==="_owner"||d[l]==="__v"||d[l]==="__o")&&e.$$typeof)&&!iy(e[d[l]],t[d[l]]))return!1;return!0}return e!==e&&t!==t}o(iy,"equal");nk.exports=o(function(t,i){try{return iy(t,i)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},"isEqual")});var jk=fr((tS,rS)=>{(function(e,t){typeof tS=="object"&&typeof rS!="undefined"?rS.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.CodeMirror=t())})(tS,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,i=/gecko\/\d/i.test(e),l=/MSIE \d/.test(e),d=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),v=/Edge\/(\d+)/.exec(e),p=l||d||v,y=p&&(l?document.documentMode||6:+(v||d)[1]),_=!v&&/WebKit\//.test(e),O=_&&/Qt\/\d+\.\d+/.test(e),D=!v&&/Chrome\//.test(e),Y=/Opera\//.test(e),B=/Apple Computer/.test(navigator.vendor),X=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),te=/PhantomJS/.test(e),Q=B&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),F=/Android/.test(e),P=Q||F||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),R=Q||/Mac/.test(t),K=/\bCrOS\b/.test(e),V=/win/i.test(t),ue=Y&&e.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(Y=!1,_=!0);var ie=R&&(O||Y&&(ue==null||ue<12.11)),he=i||p&&y>=9;function me(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}o(me,"classTest");var xe=o(function(r,n){var u=r.className,a=me(n).exec(u);if(a){var c=u.slice(a.index+a[0].length);r.className=u.slice(0,a.index)+(c?a[1]+c:"")}},"rmClass");function Ve(r){for(var n=r.childNodes.length;n>0;--n)r.removeChild(r.firstChild);return r}o(Ve,"removeChildren");function Qe(r,n){return Ve(r).appendChild(n)}o(Qe,"removeChildrenAndAdd");function Ee(r,n,u,a){var c=document.createElement(r);if(u&&(c.className=u),a&&(c.style.cssText=a),typeof n=="string")c.appendChild(document.createTextNode(n));else if(n)for(var m=0;m=n)return g+(n-m);g+=S-m,g+=u-g%u,m=S+1}}o(Ot,"countColumn");var St=o(function(){this.id=null,this.f=null,this.time=0,this.handler=Rr(this.onTimeout,this)},"Delayed");St.prototype.onTimeout=function(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)},St.prototype.set=function(r,n){this.f=n;var u=+new Date+r;(!this.id||u=n)return a+Math.min(g,n-c);if(c+=m-a,c+=u-c%u,a=m+1,c>=n)return a}}o(Tr,"findColumn");var jt=[""];function qt(r){for(;jt.length<=r;)jt.push(we(jt)+" ");return jt[r]}o(qt,"spaceStr");function we(r){return r[r.length-1]}o(we,"lst");function kr(r,n){for(var u=[],a=0;a"\x80"&&(r.toUpperCase()!=r.toLowerCase()||an.test(r))}o(Gt,"isWordCharBasic");function dr(r,n){return n?n.source.indexOf("\\w")>-1&&Gt(r)?!0:n.test(r):Gt(r)}o(dr,"isWordChar");function ut(r){for(var n in r)if(r.hasOwnProperty(n)&&r[n])return!1;return!0}o(ut,"isEmpty");var Io=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function yr(r){return r.charCodeAt(0)>=768&&Io.test(r)}o(yr,"isExtendingChar");function Ii(r,n,u){for(;(u<0?n>0:nu?-1:1;;){if(n==u)return n;var c=(n+u)/2,m=a<0?Math.ceil(c):Math.floor(c);if(m==n)return r(m)?n:u;r(m)?u=m:n=m+a}}o(un,"findFirst");function Hn(r,n,u,a){if(!r)return a(n,u,"ltr",0);for(var c=!1,m=0;mn||n==u&&g.to==n)&&(a(Math.max(g.from,n),Math.min(g.to,u),g.level==1?"rtl":"ltr",m),c=!0)}c||a(n,u,"ltr")}o(Hn,"iterateBidiSections");var vi=null;function gi(r,n,u){var a;vi=null;for(var c=0;cn)return c;m.to==n&&(m.from!=m.to&&u=="before"?a=c:vi=c),m.from==n&&(m.from!=m.to&&u!="before"?a=c:vi=c)}return a??vi}o(gi,"getBidiPartAt");var Wn=function(){var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(E){return E<=247?r.charAt(E):1424<=E&&E<=1524?"R":1536<=E&&E<=1785?n.charAt(E-1536):1774<=E&&E<=2220?"r":8192<=E&&E<=8203?"w":E==8204?"b":"L"}o(u,"charType");var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,m=/[LRr]/,g=/[Lb1n]/,S=/[1n]/;function C(E,L,A){this.level=E,this.from=L,this.to=A}return o(C,"BidiSpan"),function(E,L){var A=L=="ltr"?"L":"R";if(E.length==0||L=="ltr"&&!a.test(E))return!1;for(var j=E.length,z=[],ee=0;ee-1&&(a[n]=c.slice(0,m).concat(c.slice(m+1)))}}}o(de,"off");function be(r,n){var u=J(r,n);if(!!u.length)for(var a=Array.prototype.slice.call(arguments,2),c=0;c0}o(Ft,"hasHandler");function Ir(r){r.prototype.on=function(n,u){H(this,n,u)},r.prototype.off=function(n,u){de(this,n,u)}}o(Ir,"eventMixin");function er(r){r.preventDefault?r.preventDefault():r.returnValue=!1}o(er,"e_preventDefault");function oi(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}o(oi,"e_stopPropagation");function fs(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}o(fs,"e_defaultPrevented");function no(r){er(r),oi(r)}o(no,"e_stop");function yi(r){return r.target||r.srcElement}o(yi,"e_target");function Js(r){var n=r.which;return n==null&&(r.button&1?n=1:r.button&2?n=3:r.button&4&&(n=2)),R&&r.ctrlKey&&n==1&&(n=3),n}o(Js,"e_button");var cs=function(){if(p&&y<9)return!1;var r=Ee("div");return"draggable"in r||"dragDrop"in r}(),fn;function _p(r){if(fn==null){var n=Ee("span","\u200B");Qe(r,Ee("span",[n,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(fn=n.offsetWidth<=1&&n.offsetHeight>2&&!(p&&y<8))}var u=fn?Ee("span","\u200B"):Ee("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}o(_p,"zeroWidthElement");var el;function Ef(r){if(el!=null)return el;var n=Qe(r,document.createTextNode("A\u062EA")),u=qe(n,0,1).getBoundingClientRect(),a=qe(n,1,2).getBoundingClientRect();return Ve(r),!u||u.left==u.right?!1:el=a.right-u.right<3}o(Ef,"hasBadBidiRects");var tl=` -b`.split(/\n/).length!=3?function(r){for(var n=0,u=[],l=r.length;n<=l;){var c=r.indexOf(` -`,n);c==-1&&(c=r.length);var v=r.slice(n,r.charAt(c-1)=="\r"?c-1:c),g=v.indexOf("\r");g!=-1?(u.push(v.slice(0,g)),n+=g+1):(u.push(v),n=c+1)}return u}:function(r){return r.split(/\r\n?|\n/)},Op=window.getSelection?function(r){try{return r.selectionStart!=r.selectionEnd}catch(n){return!1}}:function(r){var n;try{n=r.ownerDocument.selection.createRange()}catch(u){}return!n||n.parentElement()!=r?!1:n.compareEndPoints("StartToEnd",n)!=0},Ef=function(){var r=Se("div");return"oncopy"in r?!0:(r.setAttribute("oncopy","return;"),typeof r.oncopy=="function")}(),ia=null;function kp(r){if(ia!=null)return ia;var n=Ye(r,Se("span","x")),u=n.getBoundingClientRect(),l=Rt(n,0,1).getBoundingClientRect();return ia=Math.abs(u.left-l.left)>1}o(kp,"hasBadZoomedRects");var Il={},Xo={};function Np(r,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Il[r]=n}o(Np,"defineMode");function bf(r,n){Xo[r]=n}o(bf,"defineMIME");function Us(r){if(typeof r=="string"&&Xo.hasOwnProperty(r))r=Xo[r];else if(r&&typeof r.name=="string"&&Xo.hasOwnProperty(r.name)){var n=Xo[r.name];typeof n=="string"&&(n={name:n}),r=ni(n,r),r.name=n.name}else{if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(r))return Us("application/xml");if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(r))return Us("application/json")}return typeof r=="string"?{name:r}:r||{name:"null"}}o(Us,"resolveMode");function oa(r,n){n=Us(n);var u=Il[n.name];if(!u)return oa(r,"text/plain");var l=u(r,n);if(So.hasOwnProperty(n.name)){var c=So[n.name];for(var v in c)!c.hasOwnProperty(v)||(l.hasOwnProperty(v)&&(l["_"+v]=l[v]),l[v]=c[v])}if(l.name=n.name,n.helperType&&(l.helperType=n.helperType),n.modeProps)for(var g in n.modeProps)l[g]=n.modeProps[g];return l}o(oa,"getMode");var So={};function Lp(r,n){var u=So.hasOwnProperty(r)?So[r]:So[r]={};fr(n,u)}o(Lp,"extendMode");function Co(r,n){if(n===!0)return n;if(r.copyState)return r.copyState(n);var u={};for(var l in n){var c=n[l];c instanceof Array&&(c=c.concat([])),u[l]=c}return u}o(Co,"copyState");function Fl(r,n){for(var u;r.innerMode&&(u=r.innerMode(n),!(!u||u.mode==r));)n=u.state,r=u.mode;return u||{mode:r,state:n}}o(Fl,"innerMode");function Tf(r,n,u){return r.startState?r.startState(n,u):!0}o(Tf,"startState");var bt=o(function(r,n,u){this.pos=this.start=0,this.string=r,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u},"StringStream");bt.prototype.eol=function(){return this.pos>=this.string.length},bt.prototype.sol=function(){return this.pos==this.lineStart},bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},bt.prototype.next=function(){if(this.posn},bt.prototype.eatSpace=function(){for(var r=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>r},bt.prototype.skipToEnd=function(){this.pos=this.string.length},bt.prototype.skipTo=function(r){var n=this.string.indexOf(r,this.pos);if(n>-1)return this.pos=n,!0},bt.prototype.backUp=function(r){this.pos-=r},bt.prototype.column=function(){return this.lastColumnPos0?null:(v&&n!==!1&&(this.pos+=v[0].length),v)}},bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},bt.prototype.hideFirstChars=function(r,n){this.lineStart+=r;try{return n()}finally{this.lineStart-=r}},bt.prototype.lookAhead=function(r){var n=this.lineOracle;return n&&n.lookAhead(r)},bt.prototype.baseToken=function(){var r=this.lineOracle;return r&&r.baseToken(this.pos)};function _e(r,n){if(n-=r.first,n<0||n>=r.size)throw new Error("There is no line "+(n+r.first)+" in the document.");for(var u=r;!u.lines;)for(var l=0;;++l){var c=u.children[l],v=c.chunkSize();if(n=r.first&&nu?le(u,_e(r,u).text.length):Pp(n,_e(r,n.line).text.length)}o(De,"clipPos");function Pp(r,n){var u=r.ch;return u==null||u>n?le(r.line,n):u<0?le(r.line,0):r}o(Pp,"clipToLen");function zs(r,n){for(var u=[],l=0;lthis.maxLookAhead&&(this.maxLookAhead=r),n},Tn.prototype.baseToken=function(r){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=r;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-r}},Tn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tn.fromSaved=function(r,n,u){return n instanceof Vn?new Tn(r,Co(r.mode,n.state),u,n.lookAhead):new Tn(r,Co(r.mode,n),u)},Tn.prototype.save=function(r){var n=r!==!1?Co(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Vn(n,this.maxLookAhead):n};function la(r,n,u,l){var c=[r.state.modeGen],v={};aa(r,n.text,r.doc.mode,u,function(E,P){return c.push(E,P)},v,l);for(var g=u.state,S=o(function(E){u.baseTokens=c;var P=r.state.overlays[E],D=1,q=0;u.state=!0,aa(r,n.text,P.mode,u,function(B,Z){for(var ne=D;qB&&c.splice(D,1,B,c[D+1],ae),D+=2,q=Math.min(B,ae)}if(!!Z)if(P.opaque)c.splice(ne,D-ne,B,"overlay "+Z),D=ne+2;else for(;ner.options.maxHighlightLength&&Co(r.doc.mode,l.state),v=la(r,n,l);c&&(l.state=c),n.stateAfter=l.save(!c),n.styles=v.styles,v.classes?n.styleClasses=v.classes:n.styleClasses&&(n.styleClasses=null),u===r.doc.highlightFrontier&&(r.doc.modeFrontier=Math.max(r.doc.modeFrontier,++r.doc.highlightFrontier))}return n.styles}o(ua,"getLineStyles");function Zo(r,n,u){var l=r.doc,c=r.display;if(!l.mode.startState)return new Tn(l,!0,n);var v=kf(r,n,u),g=v>l.first&&_e(l,v-1).stateAfter,S=g?Tn.fromSaved(l,g,v):new Tn(l,Tf(l.mode),v);return l.iter(v,n,function(C){js(r,C.text,S);var E=S.line;C.stateAfter=E==n-1||E%5==0||E>=c.viewFrom&&En.start)return v}throw new Error("Mode "+r.name+" failed to advance stream.")}o(Ul,"readToken");var Bl=o(function(r,n,u){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=n||null,this.state=u},"Token");function zl(r,n,u,l){var c=r.doc,v=c.mode,g;n=De(c,n);var S=_e(c,n.line),C=Zo(r,n.line,u),E=new bt(S.text,r.options.tabSize,C),P;for(l&&(P=[]);(l||E.posr.options.maxHighlightLength?(S=!1,g&&js(r,n,l,P.pos),P.pos=n.length,D=null):D=bo(Ul(u,P,l.state,q),v),q){var B=q[0].name;B&&(D="m-"+(D?B+" "+D:B))}if(!S||E!=D){for(;Cg;--S){if(S<=v.first)return v.first;var C=_e(v,S-1),E=C.stateAfter;if(E&&(!u||S+(E instanceof Vn?E.lookAhead:0)<=v.modeFrontier))return S;var P=Nt(C.text,null,r.options.tabSize);(c==null||l>P)&&(c=S-1,l=P)}return c}o(kf,"findStartLine");function Mp(r,n){if(r.modeFrontier=Math.min(r.modeFrontier,n),!(r.highlightFrontieru;l--){var c=_e(r,l).stateAfter;if(c&&(!(c instanceof Vn)||l+c.lookAhead=n:v.to>n);(l||(l=[])).push(new To(g,v.from,C?null:v.to))}}return l}o(jl,"markedSpansBefore");function Yh(r,n,u){var l;if(r)for(var c=0;c=n:v.to>n);if(S||v.from==n&&g.type=="bookmark"&&(!u||v.marker.insertLeft)){var C=v.from==null||(g.inclusiveLeft?v.from<=n:v.from0&&S)for(var we=0;we0)){var P=[C,1],D=Ie(E.from,S.from),q=Ie(E.to,S.to);(D<0||!g.inclusiveLeft&&!D)&&P.push({from:E.from,to:S.from}),(q>0||!g.inclusiveRight&&!q)&&P.push({from:S.to,to:E.to}),c.splice.apply(c,P),C+=P.length-3}}return c}o(Lf,"removeReadOnlyRanges");function pa(r){var n=r.markedSpans;if(!!n){for(var u=0;un)&&(!l||ql(l,v.marker)<0)&&(l=v.marker)}return l}o(da,"collapsedSpanAround");function qs(r,n,u,l,c){var v=_e(r,n),g=si&&v.markedSpans;if(g)for(var S=0;S=0&&D<=0||P<=0&&D>=0)&&(P<=0&&(C.marker.inclusiveRight&&c.inclusiveLeft?Ie(E.to,u)>=0:Ie(E.to,u)>0)||P>=0&&(C.marker.inclusiveRight&&c.inclusiveLeft?Ie(E.from,l)<=0:Ie(E.from,l)<0)))return!0}}}o(qs,"conflictingCollapsedRange");function dn(r){for(var n;n=gt(r);)r=n.find(-1,!0).line;return r}o(dn,"visualLine");function Dp(r){for(var n;n=On(r);)r=n.find(1,!0).line;return r}o(Dp,"visualLineEnd");function Ip(r){for(var n,u;n=On(r);)r=n.find(1,!0).line,(u||(u=[])).push(r);return u}o(Ip,"visualLineContinued");function $l(r,n){var u=_e(r,n),l=dn(u);return u==l?n:it(l)}o($l,"visualLineNo");function _r(r,n){if(n>r.lastLine())return n;var u=_e(r,n),l;if(!wt(r,u))return n;for(;l=On(u);)u=l.find(1,!0).line;return it(u)+1}o(_r,"visualLineEndNo");function wt(r,n){var u=si&&n.markedSpans;if(u){for(var l=void 0,c=0;cn.maxLineLength&&(n.maxLineLength=c,n.maxLine=l)})}o($s,"findMaxLine");var pr=o(function(r,n,u){this.text=r,Jo(this,n),this.height=u?u(this):1},"Line");pr.prototype.lineNo=function(){return it(this)},xo(pr);function Pf(r,n,u,l){r.text=n,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),pa(r),Jo(r,u);var c=l?l(r):1;c!=r.height&&oi(r,c)}o(Pf,"updateLine");function Mf(r){r.parent=null,pa(r)}o(Mf,"cleanUpLine");var ha={},va={};function Vl(r,n){if(!r||/^\s*$/.test(r))return null;var u=n.addModeClass?va:ha;return u[r]||(u[r]=r.replace(/\S+/g,"cm-$&"))}o(Vl,"interpretTokenStyle");function Gl(r,n){var u=Et("span",null,null,b?"padding-right: .1px":null),l={pre:Et("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:r,trailingSpace:!1,splitSpaces:r.getOption("lineWrapping")};n.measure={};for(var c=0;c<=(n.rest?n.rest.length:0);c++){var v=c?n.rest[c-1]:n.line,g=void 0;l.pos=0,l.addToken=Fp,_f(r.display.measure)&&(g=$n(v,r.doc.direction))&&(l.addToken=Rp(l.addToken,g)),l.map=[];var S=n!=r.display.externalMeasured&&it(v);Ui(v,l,ua(r,v,S)),v.styleClasses&&(v.styleClasses.bgClass&&(l.bgClass=Sr(v.styleClasses.bgClass,l.bgClass||"")),v.styleClasses.textClass&&(l.textClass=Sr(v.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Tp(r.display.measure))),c==0?(n.measure.map=l.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(l.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(b){var C=l.content.lastChild;(/\bcm-tab\b/.test(C.className)||C.querySelector&&C.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Lt(r,"renderLine",r,n.line,l.pre),l.pre.className&&(l.textClass=Sr(l.pre.className,l.textClass||"")),l}o(Gl,"buildLineContent");function hn(r){var n=Se("span","\u2022","cm-invalidchar");return n.title="\\u"+r.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}o(hn,"defaultSpecialCharPlaceholder");function Fp(r,n,u,l,c,v,g){if(!!n){var S=r.splitSpaces?kn(n,r.trailingSpace):n,C=r.cm.state.specialChars,E=!1,P;if(!C.test(n))r.col+=n.length,P=document.createTextNode(S),r.map.push(r.pos,r.pos+n.length,P),d&&w<9&&(E=!0),r.pos+=n.length;else{P=document.createDocumentFragment();for(var D=0;;){C.lastIndex=D;var q=C.exec(n),B=q?q.index-D:n.length-D;if(B){var Z=document.createTextNode(S.slice(D,D+B));d&&w<9?P.appendChild(Se("span",[Z])):P.appendChild(Z),r.map.push(r.pos,r.pos+B,Z),r.col+=B,r.pos+=B}if(!q)break;D+=B+1;var ne=void 0;if(q[0]==" "){var ae=r.cm.options.tabSize,pe=ae-r.col%ae;ne=P.appendChild(Se("span",Xt(pe),"cm-tab")),ne.setAttribute("role","presentation"),ne.setAttribute("cm-text"," "),r.col+=pe}else q[0]=="\r"||q[0]==` -`?(ne=P.appendChild(Se("span",q[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ne.setAttribute("cm-text",q[0]),r.col+=1):(ne=r.cm.options.specialCharPlaceholder(q[0]),ne.setAttribute("cm-text",q[0]),d&&w<9?P.appendChild(Se("span",[ne])):P.appendChild(ne),r.col+=1);r.map.push(r.pos,r.pos+1,ne),r.pos++}}if(r.trailingSpace=S.charCodeAt(n.length-1)==32,u||l||c||E||v||g){var ge=u||"";l&&(ge+=l),c&&(ge+=c);var de=Se("span",[P],ge,v);if(g)for(var we in g)g.hasOwnProperty(we)&&we!="style"&&we!="class"&&de.setAttribute(we,g[we]);return r.content.appendChild(de)}r.content.appendChild(P)}}o(Fp,"buildToken");function kn(r,n){if(r.length>1&&!/ /.test(r))return r;for(var u=n,l="",c=0;cE&&D.from<=E));q++);if(D.to>=P)return r(u,l,c,v,g,S,C);r(u,l.slice(0,D.to-E),c,v,null,S,C),v=null,l=l.slice(D.to-E),E=D.to}}}o(Rp,"buildTokenBadBidi");function ma(r,n,u,l){var c=!l&&u.widgetNode;c&&r.map.push(r.pos,r.pos+n,c),!l&&r.cm.display.input.needsContentAttribute&&(c||(c=r.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",u.id)),c&&(r.cm.display.input.setUneditable(c),r.content.appendChild(c)),r.pos+=n,r.trailingSpace=!1}o(ma,"buildCollapsedSpan");function Ui(r,n,u){var l=r.markedSpans,c=r.text,v=0;if(!l){for(var g=1;gC||qe.collapsed&&Oe.to==C&&Oe.from==C)){if(Oe.to!=null&&Oe.to!=C&&B>Oe.to&&(B=Oe.to,ne=""),qe.className&&(Z+=" "+qe.className),qe.css&&(q=(q?q+";":"")+qe.css),qe.startStyle&&Oe.from==C&&(ae+=" "+qe.startStyle),qe.endStyle&&Oe.to==B&&(we||(we=[])).push(qe.endStyle,Oe.to),qe.title&&((ge||(ge={})).title=qe.title),qe.attributes)for(var ht in qe.attributes)(ge||(ge={}))[ht]=qe.attributes[ht];qe.collapsed&&(!pe||ql(pe.marker,qe)<0)&&(pe=Oe)}else Oe.from>C&&B>Oe.from&&(B=Oe.from)}if(we)for(var ir=0;ir=S)break;for(var Xr=Math.min(S,B);;){if(P){var Qr=C+P.length;if(!pe){var Vt=Qr>Xr?P.slice(0,Xr-C):P;n.addToken(n,Vt,D?D+Z:Z,ae,C+Vt.length==B?ne:"",q,ge)}if(Qr>=Xr){P=P.slice(Xr-C),C=Xr;break}C=Qr,ae=""}P=c.slice(v,v=u[E++]),D=Vl(u[E++],n.cm.options)}}}o(Ui,"insertLineContent");function ns(r,n,u){this.line=n,this.rest=Ip(n),this.size=this.rest?it(je(this.rest))-u+1:1,this.node=this.text=null,this.hidden=wt(r,n)}o(ns,"LineView");function is(r,n,u){for(var l=[],c,v=n;v2&&v.push((C.bottom+E.top)/2-u.top)}}v.push(u.bottom-u.top)}}o(Up,"ensureLineHeights");function Gs(r,n,u){if(r.line==n)return{map:r.measure.map,cache:r.measure.cache};for(var l=0;lu)return{map:r.measure.maps[c],cache:r.measure.caches[c],before:!0}}o(Gs,"mapFromLineView");function Ti(r,n){n=dn(n);var u=it(n),l=r.display.externalMeasured=new ns(r.doc,n,u);l.lineN=u;var c=l.built=Gl(r,l);return l.text=c.pre,Ye(r.display.lineMeasure,c.pre),l}o(Ti,"updateExternalMeasurement");function Xh(r,n,u,l){return qi(r,Oi(r,n),u,l)}o(Xh,"measureChar");function Bp(r,n){if(n>=r.display.viewFrom&&n=u.lineN&&nn)&&(v=C-S,c=v-1,n>=C&&(g="right")),c!=null){if(l=r[E+2],S==C&&u==(l.insertLeft?"left":"right")&&(g=u),u=="left"&&c==0)for(;E&&r[E-2]==r[E-3]&&r[E-1].insertLeft;)l=r[(E-=3)+2],g="left";if(u=="right"&&c==C-S)for(;E=0&&(u=r[c]).left==u.right;c--);return u}o(Zh,"getUsefulRect");function ss(r,n,u,l){var c=If(n.map,u,l),v=c.node,g=c.start,S=c.end,C=c.collapse,E;if(v.nodeType==3){for(var P=0;P<4;P++){for(;g&&$r(n.line.text.charAt(c.coverStart+g));)--g;for(;c.coverStart+S0&&(C=l="right");var D;r.options.lineWrapping&&(D=v.getClientRects()).length>1?E=D[l=="right"?D.length-1:0]:E=v.getBoundingClientRect()}if(d&&w<9&&!g&&(!E||!E.left&&!E.right)){var q=v.parentNode.getClientRects()[0];q?E={left:q.left,right:q.left+Ql(r.display),top:q.top,bottom:q.bottom}:E=Qh}for(var B=E.top-n.rect.top,Z=E.bottom-n.rect.top,ne=(B+Z)/2,ae=n.view.measure.heights,pe=0;pe=l.text.length?(C=l.text.length,E="before"):C<=0&&(C=0,E="after"),!S)return g(E=="before"?C-1:C,E=="before");function P(Z,ne,ae){var pe=S[ne],ge=pe.level==1;return g(ae?Z-1:Z,ge!=ae)}o(P,"getBidi");var D=wo(S,C,E),q=yo,B=P(C,D,E=="before");return q!=null&&(B.other=P(C,q,E!="before")),B}o(ki,"cursorCoords");function rv(r,n){var u=0;n=De(r.doc,n),r.options.lineWrapping||(u=Ql(r.display)*n.ch);var l=_e(r.doc,n.line),c=Er(l)+Ln(r.display);return{left:u,right:u,top:c,bottom:c+l.height}}o(rv,"estimateCoords");function $i(r,n,u,l,c){var v=le(r,n,u);return v.xRel=c,l&&(v.outside=l),v}o($i,"PosWithInfo");function $(r,n,u){var l=r.doc;if(u+=r.display.viewOffset,u<0)return $i(l.first,0,null,-1,-1);var c=Ei(l,u),v=l.first+l.size-1;if(c>v)return $i(l.first+l.size-1,_e(l,v).text.length,null,1,1);n<0&&(n=0);for(var g=_e(l,c);;){var S=He(r,g,c,n,u),C=da(g,S.ch+(S.xRel>0||S.outside>0?1:0));if(!C)return S;var E=C.find(1);if(E.line==c)return E;g=_e(l,c=E.line)}}o($,"coordsChar");function te(r,n,u,l){l-=Rf(n);var c=n.text.length,v=_i(function(g){return qi(r,u,g-1).bottom<=l},c,0);return c=_i(function(g){return qi(r,u,g).top>l},v,c),{begin:v,end:c}}o(te,"wrappedLineExtent");function Q(r,n,u,l){u||(u=Oi(r,n));var c=Wf(r,n,qi(r,u,l),"line").top;return te(r,n,u,c)}o(Q,"wrappedLineExtentChar");function Ce(r,n,u,l){return r.bottom<=u?!1:r.top>u?!0:(l?r.left:r.right)>n}o(Ce,"boxIsAfter");function He(r,n,u,l,c){c-=Er(n);var v=Oi(r,n),g=Rf(n),S=0,C=n.text.length,E=!0,P=$n(n,r.doc.direction);if(P){var D=(r.options.lineWrapping?dr:ct)(r,n,u,v,P,l,c);E=D.level!=1,S=E?D.from:D.to-1,C=E?D.to:D.from-1}var q=null,B=null,Z=_i(function(Le){var Oe=qi(r,v,Le);return Oe.top+=g,Oe.bottom+=g,Ce(Oe,l,c,!1)?(Oe.top<=c&&Oe.left<=l&&(q=Le,B=Oe),!0):!1},S,C),ne,ae,pe=!1;if(B){var ge=l-B.left=we.bottom?1:0}return Z=Yo(n.text,Z,1),$i(u,Z,ae,pe,l-ne)}o(He,"coordsCharInner");function ct(r,n,u,l,c,v,g){var S=_i(function(D){var q=c[D],B=q.level!=1;return Ce(ki(r,le(u,B?q.to:q.from,B?"before":"after"),"line",n,l),v,g,!0)},0,c.length-1),C=c[S];if(S>0){var E=C.level!=1,P=ki(r,le(u,E?C.from:C.to,E?"after":"before"),"line",n,l);Ce(P,v,g,!0)&&P.top>g&&(C=c[S-1])}return C}o(ct,"coordsBidiPart");function dr(r,n,u,l,c,v,g){var S=te(r,n,l,g),C=S.begin,E=S.end;/\s/.test(n.text.charAt(E-1))&&E--;for(var P=null,D=null,q=0;q=E||B.to<=C)){var Z=B.level!=1,ne=qi(r,l,Z?Math.min(E,B.to)-1:Math.max(C,B.from)).right,ae=neae)&&(P=B,D=ae)}}return P||(P=c[c.length-1]),P.fromE&&(P={from:P.from,to:E,level:P.level}),P}o(dr,"coordsBidiPartWrapped");var ot;function ls(r){if(r.cachedTextHeight!=null)return r.cachedTextHeight;if(ot==null){ot=Se("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)ot.appendChild(document.createTextNode("x")),ot.appendChild(Se("br"));ot.appendChild(document.createTextNode("x"))}Ye(r.measure,ot);var u=ot.offsetHeight/50;return u>3&&(r.cachedTextHeight=u),ze(r.measure),u||1}o(ls,"textHeight");function Ql(r){if(r.cachedCharWidth!=null)return r.cachedCharWidth;var n=Se("span","xxxxxxxxxx"),u=Se("pre",[n],"CodeMirror-line-like");Ye(r.measure,u);var l=n.getBoundingClientRect(),c=(l.right-l.left)/10;return c>2&&(r.cachedCharWidth=c),c||10}o(Ql,"charWidth");function Pn(r){for(var n=r.display,u={},l={},c=n.gutters.clientLeft,v=n.gutters.firstChild,g=0;v;v=v.nextSibling,++g){var S=r.display.gutterSpecs[g].className;u[S]=v.offsetLeft+v.clientLeft+c,l[S]=v.clientWidth}return{fixedPos:Zl(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}o(Pn,"getDimensions");function Zl(r){return r.scroller.getBoundingClientRect().left-r.sizer.getBoundingClientRect().left}o(Zl,"compensateForHScroll");function nv(r){var n=ls(r.display),u=r.options.lineWrapping,l=u&&Math.max(5,r.display.scroller.clientWidth/Ql(r.display)-3);return function(c){if(wt(r.doc,c))return 0;var v=0;if(c.widgets)for(var g=0;g0&&(E=_e(r.doc,C.line).text).length==C.ch){var P=Nt(E,E.length,r.options.tabSize)-E.length;C=le(C.line,Math.max(0,Math.round((v-li(r.display).left)/Ql(r.display))-P))}return C}o(Vi,"posFromMouse");function Gi(r,n){if(n>=r.display.viewTo||(n-=r.display.viewFrom,n<0))return null;for(var u=r.display.view,l=0;ln)&&(c.updateLineNumbers=n),r.curOp.viewChanged=!0,n>=c.viewTo)si&&$l(r.doc,n)c.viewFrom?ko(r):(c.viewFrom+=l,c.viewTo+=l);else if(n<=c.viewFrom&&u>=c.viewTo)ko(r);else if(n<=c.viewFrom){var v=Ys(r,u,u+l,1);v?(c.view=c.view.slice(v.index),c.viewFrom=v.lineN,c.viewTo+=l):ko(r)}else if(u>=c.viewTo){var g=Ys(r,n,n,-1);g?(c.view=c.view.slice(0,g.index),c.viewTo=g.lineN):ko(r)}else{var S=Ys(r,n,n,-1),C=Ys(r,u,u+l,1);S&&C?(c.view=c.view.slice(0,S.index).concat(is(r,S.lineN,C.lineN)).concat(c.view.slice(C.index)),c.viewTo+=l):ko(r)}var E=c.externalMeasured;E&&(u=c.lineN&&n=l.viewTo)){var v=l.view[Gi(r,n)];if(v.node!=null){var g=v.changes||(v.changes=[]);Ze(g,u)==-1&&g.push(u)}}}o(as,"regLineChange");function ko(r){r.display.viewFrom=r.display.viewTo=r.doc.first,r.display.view=[],r.display.viewOffset=0}o(ko,"resetView");function Ys(r,n,u,l){var c=Gi(r,n),v,g=r.display.view;if(!si||u==r.doc.first+r.doc.size)return{index:c,lineN:u};for(var S=r.display.viewFrom,C=0;C0){if(c==g.length-1)return null;v=S+g[c].size-n,c++}else v=S-n;n+=v,u+=v}for(;$l(r.doc,u)!=u;){if(c==(l<0?0:g.length-1))return null;u+=l*g[c-(l<0?1:0)].size,c+=l}return{index:c,lineN:u}}o(Ys,"viewCuttingPoint");function Wy(r,n,u){var l=r.display,c=l.view;c.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=is(r,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=is(r,n,l.viewFrom).concat(l.view):l.viewFromu&&(l.view=l.view.slice(0,Gi(r,u)))),l.viewTo=u}o(Wy,"adjustView");function iv(r){for(var n=r.display.view,u=0,l=0;l=r.display.viewTo||S.to().line0?n.blinker=setInterval(function(){r.hasFocus()||Qs(r),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},r.options.cursorBlinkRate):r.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}o(Jl,"restartBlink");function jp(r){r.hasFocus()||(r.display.input.focus(),r.state.focused||eu(r))}o(jp,"ensureFocus");function Hf(r){r.state.delayingBlurEvent=!0,setTimeout(function(){r.state.delayingBlurEvent&&(r.state.delayingBlurEvent=!1,r.state.focused&&Qs(r))},100)}o(Hf,"delayBlurEvent");function eu(r,n){r.state.delayingBlurEvent&&!r.state.draggingText&&(r.state.delayingBlurEvent=!1),r.options.readOnly!="nocursor"&&(r.state.focused||(Lt(r,"focus",r,n),r.state.focused=!0,nt(r.display.wrapper,"CodeMirror-focused"),!r.curOp&&r.display.selForContextMenu!=r.doc.sel&&(r.display.input.reset(),b&&setTimeout(function(){return r.display.input.reset(!0)},20)),r.display.input.receivedFocus()),Jl(r))}o(eu,"onFocus");function Qs(r,n){r.state.delayingBlurEvent||(r.state.focused&&(Lt(r,"blur",r,n),r.state.focused=!1,ye(r.display.wrapper,"CodeMirror-focused")),clearInterval(r.display.blinker),setTimeout(function(){r.state.focused||(r.display.shift=!1)},150))}o(Qs,"onBlur");function fs(r){for(var n=r.display,u=n.lineDiv.offsetTop,l=0;l.005||P<-.005)&&(oi(c.line,g),cs(c.line),c.rest))for(var D=0;Dr.display.sizerWidth){var q=Math.ceil(S/Ql(r.display));q>r.display.maxLineLength&&(r.display.maxLineLength=q,r.display.maxLine=c.line,r.display.maxLineChanged=!0)}}}}o(fs,"updateHeightsInViewport");function cs(r){if(r.widgets)for(var n=0;n=g&&(v=Ei(n,Er(_e(n,C))-r.wrapper.clientHeight),g=C)}return{from:v,to:Math.max(g,v+1)}}o(Zs,"visibleLines");function Hy(r,n){if(!Zt(r,"scrollCursorIntoView")){var u=r.display,l=u.sizer.getBoundingClientRect(),c=null;if(n.top+l.top<0?c=!0:n.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!ee){var v=Se("div","\u200B",null,`position: absolute; - top: `+(n.top-u.viewOffset-Ln(r.display))+`px; - height: `+(n.bottom-n.top+Mr(r)+u.barHeight)+`px; - left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");r.display.lineSpace.appendChild(v),v.scrollIntoView(c),r.display.lineSpace.removeChild(v)}}}o(Hy,"maybeScrollWindow");function Uy(r,n,u,l){l==null&&(l=0);var c;!r.options.lineWrapping&&n==u&&(u=n.sticky=="before"?le(n.line,n.ch+1,"before"):n,n=n.ch?le(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var v=0;v<5;v++){var g=!1,S=ki(r,n),C=!u||u==n?S:ki(r,u);c={left:Math.min(S.left,C.left),top:Math.min(S.top,C.top)-l,right:Math.max(S.left,C.left),bottom:Math.max(S.bottom,C.bottom)+l};var E=tu(r,c),P=r.doc.scrollTop,D=r.doc.scrollLeft;if(E.scrollTop!=null&&(Wt(r,E.scrollTop),Math.abs(r.doc.scrollTop-P)>1&&(g=!0)),E.scrollLeft!=null&&(Js(r,E.scrollLeft),Math.abs(r.doc.scrollLeft-D)>1&&(g=!0)),!g)break}return c}o(Uy,"scrollPosIntoView");function By(r,n){var u=tu(r,n);u.scrollTop!=null&&Wt(r,u.scrollTop),u.scrollLeft!=null&&Js(r,u.scrollLeft)}o(By,"scrollIntoView");function tu(r,n){var u=r.display,l=ls(r.display);n.top<0&&(n.top=0);var c=r.curOp&&r.curOp.scrollTop!=null?r.curOp.scrollTop:u.scroller.scrollTop,v=ji(r),g={};n.bottom-n.top>v&&(n.bottom=n.top+v);var S=r.doc.height+nr(u),C=n.topS-l;if(n.topc+v){var P=Math.min(n.top,(E?S:n.bottom)-v);P!=c&&(g.scrollTop=P)}var D=r.options.fixedGutter?0:u.gutters.offsetWidth,q=r.curOp&&r.curOp.scrollLeft!=null?r.curOp.scrollLeft:u.scroller.scrollLeft-D,B=bi(r)-u.gutters.offsetWidth,Z=n.right-n.left>B;return Z&&(n.right=n.left+B),n.left<10?g.scrollLeft=0:n.leftB+q-3&&(g.scrollLeft=n.right+(Z?0:10)-B),g}o(tu,"calculateScrollPos");function ru(r,n){n!=null&&(Uf(r),r.curOp.scrollTop=(r.curOp.scrollTop==null?r.doc.scrollTop:r.curOp.scrollTop)+n)}o(ru,"addToScrollTop");function ps(r){Uf(r);var n=r.getCursor();r.curOp.scrollToPos={from:n,to:n,margin:r.options.cursorScrollMargin}}o(ps,"ensureCursorVisible");function xa(r,n,u){(n!=null||u!=null)&&Uf(r),n!=null&&(r.curOp.scrollLeft=n),u!=null&&(r.curOp.scrollTop=u)}o(xa,"scrollToCoords");function sv(r,n){Uf(r),r.curOp.scrollToPos=n}o(sv,"scrollToRange");function Uf(r){var n=r.curOp.scrollToPos;if(n){r.curOp.scrollToPos=null;var u=rv(r,n.from),l=rv(r,n.to);lv(r,u,l,n.margin)}}o(Uf,"resolveScrollToPos");function lv(r,n,u,l){var c=tu(r,{left:Math.min(n.left,u.left),top:Math.min(n.top,u.top)-l,right:Math.max(n.right,u.right),bottom:Math.max(n.bottom,u.bottom)+l});xa(r,c.scrollLeft,c.scrollTop)}o(lv,"scrollToCoordsRange");function Wt(r,n){Math.abs(r.doc.scrollTop-n)<2||(i||$p(r,{top:n}),Ar(r,n,!0),i&&$p(r),Yi(r,100))}o(Wt,"updateScrollTop");function Ar(r,n,u){n=Math.max(0,Math.min(r.display.scroller.scrollHeight-r.display.scroller.clientHeight,n)),!(r.display.scroller.scrollTop==n&&!u)&&(r.doc.scrollTop=n,r.display.scrollbars.setScrollTop(n),r.display.scroller.scrollTop!=n&&(r.display.scroller.scrollTop=n))}o(Ar,"setScrollTop");function Js(r,n,u,l){n=Math.max(0,Math.min(n,r.display.scroller.scrollWidth-r.display.scroller.clientWidth)),!((u?n==r.doc.scrollLeft:Math.abs(r.doc.scrollLeft-n)<2)&&!l)&&(r.doc.scrollLeft=n,uv(r),r.display.scroller.scrollLeft!=n&&(r.display.scroller.scrollLeft=n),r.display.scrollbars.setScrollLeft(n))}o(Js,"setScrollLeft");function Sa(r){var n=r.display,u=n.gutters.offsetWidth,l=Math.round(r.doc.height+nr(r.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:r.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+Mr(r)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}o(Sa,"measureForScrollbars");var ds=o(function(r,n,u){this.cm=u;var l=this.vert=Se("div",[Se("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=Se("div",[Se("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=c.tabIndex=-1,r(l),r(c),Ne(l,"scroll",function(){l.clientHeight&&n(l.scrollTop,"vertical")}),Ne(c,"scroll",function(){c.clientWidth&&n(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&w<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")},"NativeScrollbars");ds.prototype.update=function(r){var n=r.scrollWidth>r.clientWidth+1,u=r.scrollHeight>r.clientHeight+1,l=r.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=n?l+"px":"0";var c=r.viewHeight-(n?l:0);this.vert.firstChild.style.height=Math.max(0,r.scrollHeight-r.clientHeight+c)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=r.barLeft+"px";var v=r.viewWidth-r.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,r.scrollWidth-r.clientWidth+v)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&r.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:n?l:0}},ds.prototype.setScrollLeft=function(r){this.horiz.scrollLeft!=r&&(this.horiz.scrollLeft=r),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ds.prototype.setScrollTop=function(r){this.vert.scrollTop!=r&&(this.vert.scrollTop=r),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ds.prototype.zeroWidthHack=function(){var r=W&&!X?"12px":"18px";this.horiz.style.height=this.vert.style.width=r,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new mt,this.disableVert=new mt},ds.prototype.enableZeroWidthBar=function(r,n,u){r.style.pointerEvents="auto";function l(){var c=r.getBoundingClientRect(),v=u=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);v!=r?r.style.pointerEvents="none":n.set(1e3,l)}o(l,"maybeDisable"),n.set(1e3,l)},ds.prototype.clear=function(){var r=this.horiz.parentNode;r.removeChild(this.horiz),r.removeChild(this.vert)};var Ca=o(function(){},"NullScrollbars");Ca.prototype.update=function(){return{bottom:0,right:0}},Ca.prototype.setScrollLeft=function(){},Ca.prototype.setScrollTop=function(){},Ca.prototype.clear=function(){};function hs(r,n){n||(n=Sa(r));var u=r.display.barWidth,l=r.display.barHeight;nu(r,n);for(var c=0;c<4&&u!=r.display.barWidth||l!=r.display.barHeight;c++)u!=r.display.barWidth&&r.options.lineWrapping&&fs(r),nu(r,Sa(r)),u=r.display.barWidth,l=r.display.barHeight}o(hs,"updateScrollbars");function nu(r,n){var u=r.display,l=u.scrollbars.update(n);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&r.options.coverGutterNextToScrollbar&&r.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=n.gutterWidth+"px"):u.gutterFiller.style.display=""}o(nu,"updateScrollbarsInner");var Bf={native:ds,null:Ca};function el(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&ye(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new Bf[r.options.scrollbarStyle](function(n){r.display.wrapper.insertBefore(n,r.display.scrollbarFiller),Ne(n,"mousedown",function(){r.state.focused&&setTimeout(function(){return r.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,u){u=="horizontal"?Js(r,n):Wt(r,n)},r),r.display.scrollbars.addClass&&nt(r.display.wrapper,r.display.scrollbars.addClass)}o(el,"initScrollbars");var _a=0;function Ni(r){r.curOp={cm:r,viewChanged:!1,startHeight:r.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++_a,markArrays:null},Bi(r.curOp)}o(Ni,"startOperation");function Ki(r){var n=r.curOp;n&&Wp(n,function(u){for(var l=0;l=u.viewTo)||u.maxLineChanged&&n.options.lineWrapping,r.update=r.mustUpdate&&new vn(n,r.mustUpdate&&{top:r.scrollTop,ensure:r.scrollToPos},r.forceUpdate)}o(zy,"endOperation_R1");function jy(r){r.updatedDisplay=r.mustUpdate&&qp(r.cm,r.update)}o(jy,"endOperation_W1");function qy(r){var n=r.cm,u=n.display;r.updatedDisplay&&fs(n),r.barMeasure=Sa(n),u.maxLineChanged&&!n.options.lineWrapping&&(r.adjustWidthTo=Xh(n,u.maxLine,u.maxLine.text.length).left+3,n.display.sizerWidth=r.adjustWidthTo,r.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+r.adjustWidthTo+Mr(n)+n.display.barWidth),r.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+r.adjustWidthTo-bi(n))),(r.updatedDisplay||r.selectionChanged)&&(r.preparedSelection=u.input.prepareSelection())}o(qy,"endOperation_R2");function $y(r){var n=r.cm;r.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=r.adjustWidthTo+"px",r.maxScrollLeft=r.display.viewTo)){var u=+new Date+r.options.workTime,l=Zo(r,n.highlightFrontier),c=[];n.iter(l.line,Math.min(n.first+n.size,r.display.viewTo+500),function(v){if(l.line>=r.display.viewFrom){var g=v.styles,S=v.text.length>r.options.maxHighlightLength?Co(n.mode,l.state):null,C=la(r,v,l,!0);S&&(l.state=S),v.styles=C.styles;var E=v.styleClasses,P=C.classes;P?v.styleClasses=P:E&&(v.styleClasses=null);for(var D=!g||g.length!=v.styles.length||E!=P&&(!E||!P||E.bgClass!=P.bgClass||E.textClass!=P.textClass),q=0;!D&&qu)return Yi(r,r.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),c.length&&Dr(r,function(){for(var v=0;v=u.viewFrom&&n.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&iv(r)==0)return!1;Xi(r)&&(ko(r),n.dims=Pn(r));var c=l.first+l.size,v=Math.max(n.visible.from-r.options.viewportMargin,l.first),g=Math.min(c,n.visible.to+r.options.viewportMargin);u.viewFromg&&u.viewTo-g<20&&(g=Math.min(c,u.viewTo)),si&&(v=$l(r.doc,v),g=_r(r.doc,g));var S=v!=u.viewFrom||g!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;Wy(r,v,g),u.viewOffset=Er(_e(r.doc,u.viewFrom)),r.display.mover.style.top=u.viewOffset+"px";var C=iv(r);if(!S&&C==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var E=Gy(r);return C>4&&(u.lineDiv.style.display="none"),Yy(r,u.updateLineNumbers,n.dims),C>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Ky(E),ze(u.cursorDiv),ze(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,S&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,Yi(r,400)),u.updateLineNumbers=null,!0}o(qp,"updateDisplayIfNeeded");function vs(r,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!r.options.lineWrapping||n.oldDisplayWidth==bi(r)){if(u&&u.top!=null&&(u={top:Math.min(r.doc.height+nr(r.display)-ji(r),u.top)}),n.visible=Zs(r.display,r.doc,u),n.visible.from>=r.display.viewFrom&&n.visible.to<=r.display.viewTo)break}else l&&(n.visible=Zs(r.display,r.doc,u));if(!qp(r,n))break;fs(r);var c=Sa(r);ya(r),hs(r,c),Gp(r,c),n.force=!1}n.signal(r,"update",r),(r.display.viewFrom!=r.display.reportedViewFrom||r.display.viewTo!=r.display.reportedViewTo)&&(n.signal(r,"viewportChange",r,r.display.viewFrom,r.display.viewTo),r.display.reportedViewFrom=r.display.viewFrom,r.display.reportedViewTo=r.display.viewTo)}o(vs,"postUpdateDisplay");function $p(r,n){var u=new vn(r,n);if(qp(r,u)){fs(r),vs(r,u);var l=Sa(r);ya(r),hs(r,l),Gp(r,l),u.finish()}}o($p,"updateDisplaySimple");function Yy(r,n,u){var l=r.display,c=r.options.lineNumbers,v=l.lineDiv,g=v.firstChild;function S(Z){var ne=Z.nextSibling;return b&&W&&r.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),ne}o(S,"rm");for(var C=l.view,E=l.viewFrom,P=0;P-1&&(B=!1),Df(r,D,E,u)),B&&(ze(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(Bs(r.options,E)))),g=D.node.nextSibling}E+=D.size}for(;g;)g=S(g)}o(Yy,"patchDisplay");function Vp(r){var n=r.gutters.offsetWidth;r.sizer.style.marginLeft=n+"px",qt(r,"gutterChanged",r)}o(Vp,"updateGutterSpace");function Gp(r,n){r.display.sizer.style.minHeight=n.docHeight+"px",r.display.heightForcer.style.top=n.docHeight+"px",r.display.gutters.style.height=n.docHeight+r.display.barHeight+Mr(r)+"px"}o(Gp,"setDocumentHeight");function uv(r){var n=r.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!r.options.fixedGutter))){for(var l=Zl(n)-n.scroller.scrollLeft+r.doc.scrollLeft,c=n.gutters.offsetWidth,v=l+"px",g=0;gg.clientWidth,C=g.scrollHeight>g.clientHeight;if(!!(l&&S||c&&C)){if(c&&W&&b){e:for(var E=n.target,P=v.view;E!=g;E=E.parentNode)for(var D=0;D=0&&Ie(r,l.to())<=0)return u}return-1};var ut=o(function(r,n){this.anchor=r,this.head=n},"Range");ut.prototype.from=function(){return Qo(this.anchor,this.head)},ut.prototype.to=function(){return Eo(this.anchor,this.head)},ut.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Fr(r,n,u){var l=r&&r.options.selectionsMayTouch,c=n[u];n.sort(function(q,B){return Ie(q.from(),B.from())}),u=Ze(n,c);for(var v=1;v0:C>=0){var E=Qo(S.from(),g.from()),P=Eo(S.to(),g.to()),D=S.empty()?g.from()==g.head:S.from()==S.head;v<=u&&--u,n.splice(--v,2,new ut(D?P:E,D?E:P))}}return new Gn(n,u)}o(Fr,"normalizeSelection");function ms(r,n){return new Gn([new ut(r,n||r)],0)}o(ms,"simpleSelection");function gs(r){return r.text?le(r.from.line+r.text.length-1,je(r.text).length+(r.text.length==1?r.from.ch:0)):r.to}o(gs,"changeEnd");function ai(r,n){if(Ie(r,n.from)<0)return r;if(Ie(r,n.to)<=0)return gs(n);var u=r.line+n.text.length-(n.to.line-n.from.line)-1,l=r.ch;return r.line==n.to.line&&(l+=gs(n).ch-n.to.ch),le(u,l)}o(ai,"adjustForChange");function Yp(r,n){for(var u=[],l=0;l1&&r.remove(S.line+1,Z-1),r.insert(S.line+1,pe)}qt(r,"change",r,n)}o(qf,"updateDoc");function ys(r,n,u){function l(c,v,g){if(c.linked)for(var S=0;S1&&!r.done[r.done.length-2].ranges)return r.done.pop(),je(r.done)}o(Jy,"lastChangeEvent");function Qi(r,n,u,l){var c=r.history;c.undone.length=0;var v=+new Date,g,S;if((c.lastOp==l||c.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&c.lastModTime>v-(r.cm?r.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(g=Jy(c,c.lastOp==l)))S=je(g.changes),Ie(n.from,n.to)==0&&Ie(n.from,S.to)==0?S.to=gs(n):g.changes.push(Zp(r,n));else{var C=je(c.done);for((!C||!C.ranges)&&mn(r.sel,c.done),g={changes:[Zp(r,n)],generation:c.generation},c.done.push(g);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(u),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=v,c.lastOp=c.lastSelOp=l,c.lastOrigin=c.lastSelOrigin=n.origin,S||Lt(r,"historyAdded")}o(Qi,"addChangeToHistory");function ed(r,n,u,l){var c=n.charAt(0);return c=="*"||c=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-r.history.lastSelTime<=(r.cm?r.cm.options.historyEventDelay:500)}o(ed,"selectionEventCanBeMerged");function rl(r,n,u,l){var c=r.history,v=l&&l.origin;u==c.lastSelOp||v&&c.lastSelOrigin==v&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==v||ed(r,v,je(c.done),n))?c.done[c.done.length-1]=n:mn(n,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=v,c.lastSelOp=u,l&&l.clearRedo!==!1&&Jp(c.undone)}o(rl,"addSelectionToHistory");function mn(r,n){var u=je(n);u&&u.ranges&&u.equals(r)||n.push(r)}o(mn,"pushSelectionToHistory");function hv(r,n,u,l){var c=n["spans_"+r.id],v=0;r.iter(Math.max(r.first,u),Math.min(r.first+r.size,l),function(g){g.markedSpans&&((c||(c=n["spans_"+r.id]={}))[v]=g.markedSpans),++v})}o(hv,"attachLocalSpans");function vv(r){if(!r)return null;for(var n,u=0;u-1&&(je(S)[D]=E[D],delete E[D])}}return l}o(Kn,"copyHistoryArray");function Vf(r,n,u,l){if(l){var c=r.anchor;if(u){var v=Ie(n,c)<0;v!=Ie(u,c)<0?(c=n,n=u):v!=Ie(n,u)<0&&(n=u)}return new ut(c,n)}else return new ut(u||n,n)}o(Vf,"extendRange");function Gf(r,n,u,l,c){c==null&&(c=r.cm&&(r.cm.display.shift||r.extend)),br(r,new Gn([Vf(r.sel.primary(),n,u,c)],0),l)}o(Gf,"extendSelection");function Oa(r,n,u){for(var l=[],c=r.cm&&(r.cm.display.shift||r.extend),v=0;v=n.ch:S.to>n.ch))){if(c&&(Lt(C,"beforeCursorEnter"),C.explicitlyCleared))if(v.markedSpans){--g;continue}else break;if(!C.atomic)continue;if(u){var D=C.find(l<0?1:-1),q=void 0;if((l<0?P:E)&&(D=Xf(r,D,-l,D&&D.line==n.line?v:null)),D&&D.line==n.line&&(q=Ie(D,u))&&(l<0?q<0:q>0))return nl(r,D,n,l,c)}var B=C.find(l<0?-1:1);return(l<0?E:P)&&(B=Xf(r,B,l,B.line==n.line?v:null)),B?nl(r,B,n,l,c):null}}return n}o(nl,"skipAtomicInner");function Tr(r,n,u,l,c){var v=l||1,g=nl(r,n,u,v,c)||!c&&nl(r,n,u,v,!0)||nl(r,n,u,-v,c)||!c&&nl(r,n,u,-v,!0);return g||(r.cantEdit=!0,le(r.first,0))}o(Tr,"skipAtomic");function Xf(r,n,u,l){return u<0&&n.ch==0?n.line>r.first?De(r,le(n.line-1)):null:u>0&&n.ch==(l||_e(r,n.line)).text.length?n.line=0;--c)Qf(r,{from:l[c].from,to:l[c].to,text:c?[""]:n.text,origin:n.origin});else Qf(r,n)}}o(su,"makeChange");function Qf(r,n){if(!(n.text.length==1&&n.text[0]==""&&Ie(n.from,n.to)==0)){var u=Yp(r,n);Qi(r,n,u,r.cm?r.cm.curOp.id:NaN),uu(r,n,u,Nf(r,n));var l=[];ys(r,function(c,v){!v&&Ze(l,c.history)==-1&&(xv(c.history,n),l.push(c.history)),uu(c,n,null,Nf(c,n))})}}o(Qf,"makeChangeInner");function Zf(r,n,u){var l=r.cm&&r.cm.state.suppressEdits;if(!(l&&!u)){for(var c=r.history,v,g=r.sel,S=n=="undo"?c.done:c.undone,C=n=="undo"?c.undone:c.done,E=0;E=0;--B){var Z=q(B);if(Z)return Z.v}}}}o(Zf,"makeChangeFromHistory");function lu(r,n){if(n!=0&&(r.first+=n,r.sel=new Gn(bn(r.sel.ranges,function(c){return new ut(le(c.anchor.line+n,c.anchor.ch),le(c.head.line+n,c.head.ch))}),r.sel.primIndex),r.cm)){Be(r.cm,r.first,r.first-n,n);for(var u=r.cm.display,l=u.viewFrom;lr.lastLine())){if(n.from.linev&&(n={from:n.from,to:le(v,_e(r,v).text.length),text:[n.text[0]],origin:n.origin}),n.removed=ii(r,n.from,n.to),u||(u=Yp(r,n)),r.cm?e0(r.cm,n,l):qf(r,n,l),Yn(r,u,Mt),r.cantEdit&&Tr(r,le(r.firstLine(),0))&&(r.cantEdit=!1)}}o(uu,"makeChangeSingleDoc");function e0(r,n,u){var l=r.doc,c=r.display,v=n.from,g=n.to,S=!1,C=v.line;r.options.lineWrapping||(C=it(dn(_e(l,v.line))),l.iter(C,g.line+1,function(B){if(B==c.maxLine)return S=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Cf(r),qf(l,n,u,nv(r)),r.options.lineWrapping||(l.iter(C,v.line+n.text.length,function(B){var Z=rs(B);Z>c.maxLineLength&&(c.maxLine=B,c.maxLineLength=Z,c.maxLineChanged=!0,S=!1)}),S&&(r.curOp.updateMaxLine=!0)),Mp(l,v.line),Yi(r,400);var E=n.text.length-(g.line-v.line)-1;n.full?Be(r):v.line==g.line&&n.text.length==1&&!Qp(r.doc,n)?as(r,v.line,"text"):Be(r,v.line,g.line+1,E);var P=pn(r,"changes"),D=pn(r,"change");if(D||P){var q={from:v,to:g,text:n.text,removed:n.removed,origin:n.origin};D&&qt(r,"change",r,q),P&&(r.curOp.changeObjs||(r.curOp.changeObjs=[])).push(q)}r.display.selForContextMenu=null}o(e0,"makeChangeSingleDocInEditor");function au(r,n,u,l,c){var v;l||(l=u),Ie(l,u)<0&&(v=[l,u],u=v[0],l=v[1]),typeof n=="string"&&(n=r.splitLines(n)),su(r,{from:u,to:l,text:n,origin:c})}o(au,"replaceRange");function fu(r,n,u,l){u1||!(this.children[0]instanceof cu))){var S=[];this.collapse(S),this.children=[new cu(S)],this.children[0].parent=this}},collapse:function(r){for(var n=0;n50){for(var g=c.lines.length%25+25,S=g;S10);r.parent.maybeSpill()}},iterN:function(r,n,u){for(var l=0;lr.display.maxLineLength&&(r.display.maxLine=E,r.display.maxLineLength=P,r.display.maxLineChanged=!0)}l!=null&&r&&this.collapsed&&Be(r,l,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,r&&ka(r.doc)),r&&qt(r,"markerCleared",r,this,l,c),n&&Ki(r),this.parent&&this.parent.clear()}},xs.prototype.find=function(r,n){r==null&&this.type=="bookmark"&&(r=1);for(var u,l,c=0;c0||g==0&&v.clearWhenEmpty!==!1)return v;if(v.replacedWith&&(v.collapsed=!0,v.widgetNode=Et("span",[v.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||v.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(v.widgetNode.insertLeft=!0)),v.collapsed){if(qs(r,n.line,n,u,v)||n.line!=u.line&&qs(r,u.line,n,u,v))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ae()}v.addToHistory&&Qi(r,{from:n,to:u,origin:"markText"},r.sel,NaN);var S=n.line,C=r.cm,E;if(r.iter(S,u.line+1,function(D){C&&v.collapsed&&!C.options.lineWrapping&&dn(D)==C.display.maxLine&&(E=!0),v.collapsed&&S!=n.line&&oi(D,0),ve(D,new To(v,S==n.line?n.ch:null,S==u.line?u.ch:null),r.cm&&r.cm.curOp),++S}),v.collapsed&&r.iter(n.line,u.line+1,function(D){wt(r,D)&&oi(D,0)}),v.clearOnEnter&&Ne(v,"beforeCursorEnter",function(){return v.clear()}),v.readOnly&&(M(),(r.history.done.length||r.history.undone.length)&&r.clearHistory()),v.collapsed&&(v.id=++Jf,v.atomic=!0),C){if(E&&(C.curOp.updateMaxLine=!0),v.collapsed)Be(C,n.line,u.line+1);else if(v.className||v.startStyle||v.endStyle||v.css||v.attributes||v.title)for(var P=n.line;P<=u.line;P++)as(C,P,"text");v.atomic&&ka(C.doc),qt(C,"markerAdded",C,v)}return v}o(Ss,"markText");var pu=o(function(r,n){this.markers=r,this.primary=n;for(var u=0;u=0;C--)su(this,l[C]);S?Kf(this,S):this.cm&&ps(this.cm)}),undo:O(function(){Zf(this,"undo")}),redo:O(function(){Zf(this,"redo")}),undoSelection:O(function(){Zf(this,"undo",!0)}),redoSelection:O(function(){Zf(this,"redo",!0)}),setExtending:function(r){this.extend=r},getExtending:function(){return this.extend},historySize:function(){for(var r=this.history,n=0,u=0,l=0;l=r.ch)&&n.push(c.marker.parent||c.marker)}return n},findMarks:function(r,n,u){r=De(this,r),n=De(this,n);var l=[],c=r.line;return this.iter(r.line,n.line+1,function(v){var g=v.markedSpans;if(g)for(var S=0;S=C.to||C.from==null&&c!=r.line||C.from!=null&&c==n.line&&C.from>=n.ch)&&(!u||u(C.marker))&&l.push(C.marker.parent||C.marker)}++c}),l},getAllMarks:function(){var r=[];return this.iter(function(n){var u=n.markedSpans;if(u)for(var l=0;lr)return n=r,!0;r-=v,++u}),De(this,le(u,n))},indexFromPos:function(r){r=De(this,r);var n=r.ch;if(r.linen&&(n=r.from),r.to!=null&&r.to-1){n.state.draggingText(r),setTimeout(function(){return n.display.input.focus()},20);return}try{var P=r.dataTransfer.getData("Text");if(P){var D;if(n.state.draggingText&&!n.state.draggingText.copy&&(D=n.listSelections()),Yn(n.doc,ms(u,u)),D)for(var q=0;q=0;S--)au(r.doc,"",l[S].from,l[S].to,"+delete");ps(r)})}o(Xn,"deleteNearSelection");function Aa(r,n,u){var l=Yo(r.text,n+u,u);return l<0||l>r.text.length?null:l}o(Aa,"moveCharLogically");function nc(r,n,u){var l=Aa(r,n.ch,u);return l==null?null:new le(n.line,l,u<0?"after":"before")}o(nc,"moveLogically");function du(r,n,u,l,c){if(r){n.doc.direction=="rtl"&&(c=-c);var v=$n(u,n.doc.direction);if(v){var g=c<0?je(v):v[0],S=c<0==(g.level==1),C=S?"after":"before",E;if(g.level>0||n.doc.direction=="rtl"){var P=Oi(n,u);E=c<0?u.text.length-1:0;var D=qi(n,P,E).top;E=_i(function(q){return qi(n,P,q).top==D},c<0==(g.level==1)?g.from:g.to-1,E),C=="before"&&(E=Aa(u,E,1))}else E=c<0?g.to:g.from;return new le(l,E,C)}}return new le(l,c<0?u.text.length:0,c<0?"before":"after")}o(du,"endOfLine");function kv(r,n,u,l){var c=$n(n,r.doc.direction);if(!c)return nc(n,u,l);u.ch>=n.text.length?(u.ch=n.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var v=wo(c,u.ch,u.sticky),g=c[v];if(r.doc.direction=="ltr"&&g.level%2==0&&(l>0?g.to>u.ch:g.from=g.from&&q>=P.begin)){var B=D?"before":"after";return new le(u.line,q,B)}}var Z=o(function(pe,ge,de){for(var we=o(function(ht,ir){return ir?new le(u.line,S(ht,1),"before"):new le(u.line,ht,"after")},"getRes");pe>=0&&pe0==(Le.level!=1),qe=Oe?de.begin:S(de.end,-1);if(Le.from<=qe&&qe0?P.end:S(P.begin,-1);return ae!=null&&!(l>0&&ae==n.text.length)&&(ne=Z(l>0?0:c.length-1,l,E(ae)),ne)?ne:null}o(kv,"moveVisually");var ol={selectAll:gv,singleSelection:function(r){return r.setSelection(r.getCursor("anchor"),r.getCursor("head"),Mt)},killLine:function(r){return Xn(r,function(n){if(n.empty()){var u=_e(r.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line0)c=new le(c.line,c.ch+1),r.replaceRange(v.charAt(c.ch-1)+v.charAt(c.ch-2),le(c.line,c.ch-2),c,"+transpose");else if(c.line>r.doc.first){var g=_e(r.doc,c.line-1).text;g&&(c=new le(c.line,1),r.replaceRange(v.charAt(0)+r.doc.lineSeparator()+g.charAt(g.length-1),le(c.line-1,g.length-1),c,"+transpose"))}}u.push(new ut(c,c))}r.setSelections(u)})},newlineAndIndent:function(r){return Dr(r,function(){for(var n=r.listSelections(),u=n.length-1;u>=0;u--)r.replaceRange(r.doc.lineSeparator(),n[u].anchor,n[u].head,"+input");n=r.listSelections();for(var l=0;lr&&Ie(n,this.pos)==0&&u==this.button};var Or,Mn;function l0(r,n){var u=+new Date;return Mn&&Mn.compare(u,r,n)?(Or=Mn=null,"triple"):Or&&Or.compare(u,r,n)?(Mn=new sc(u,r,n),Or=null,"double"):(Or=new sc(u,r,n),Mn=null,"single")}o(l0,"clickRepeat");function Av(r){var n=this,u=n.display;if(!(Zt(n,r)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=r.shiftKey,er(u,r)){b||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!hd(n,r)){var l=Vi(n,r),c=na(r),v=l?l0(l,c):"single";window.focus(),c==1&&n.state.selectingText&&n.state.selectingText(r),!(l&&lc(n,c,l,v,r))&&(c==1?l?Dv(n,l,v,r):Al(r)==u.scroller&&Cr(r):c==2?(l&&Gf(n.doc,l),setTimeout(function(){return u.input.focus()},20)):c==3&&(ce?n.display.input.onContextMenu(r):Hf(n)))}}}o(Av,"onMouseDown");function lc(r,n,u,l,c){var v="Click";return l=="double"?v="Double"+v:l=="triple"&&(v="Triple"+v),v=(n==1?"Left":n==2?"Middle":"Right")+v,hu(r,ld(v,c),c,function(g){if(typeof g=="string"&&(g=ol[g]),!g)return!1;var S=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),S=g(r,u)!=Pt}finally{r.state.suppressEdits=!1}return S})}o(lc,"handleMappedButton");function vu(r,n,u){var l=r.getOption("configureMouse"),c=l?l(r,n,u):{};if(c.unit==null){var v=K?u.shiftKey&&u.metaKey:u.altKey;c.unit=v?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(c.extend==null||r.doc.extend)&&(c.extend=r.doc.extend||u.shiftKey),c.addNew==null&&(c.addNew=W?u.metaKey:u.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(W?u.altKey:u.ctrlKey)),c}o(vu,"configureMouse");function Dv(r,n,u,l){d?setTimeout(jn(jp,r),0):r.curOp.focus=rt();var c=vu(r,u,l),v=r.doc.sel,g;r.options.dragDrop&&bp&&!r.isReadOnly()&&u=="single"&&(g=v.contains(n))>-1&&(Ie((g=v.ranges[g]).from(),n)<0||n.xRel>0)&&(Ie(g.to(),n)>0||n.xRel<0)?Iv(r,l,n,c):Rv(r,l,n,c)}o(Dv,"leftButtonDown");function Iv(r,n,u,l){var c=r.display,v=!1,g=Ht(r,function(E){b&&(c.scroller.draggable=!1),r.state.draggingText=!1,r.state.delayingBlurEvent&&(r.hasFocus()?r.state.delayingBlurEvent=!1:Hf(r)),Pr(c.wrapper.ownerDocument,"mouseup",g),Pr(c.wrapper.ownerDocument,"mousemove",S),Pr(c.scroller,"dragstart",C),Pr(c.scroller,"drop",g),v||(Cr(E),l.addNew||Gf(r.doc,u,null,null,l.extend),b&&!z||d&&w==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),S=o(function(E){v=v||Math.abs(n.clientX-E.clientX)+Math.abs(n.clientY-E.clientY)>=10},"mouseMove"),C=o(function(){return v=!0},"dragStart");b&&(c.scroller.draggable=!0),r.state.draggingText=g,g.copy=!l.moveOnDrag,Ne(c.wrapper.ownerDocument,"mouseup",g),Ne(c.wrapper.ownerDocument,"mousemove",S),Ne(c.scroller,"dragstart",C),Ne(c.scroller,"drop",g),r.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}o(Iv,"leftButtonStartDrag");function Fv(r,n,u){if(u=="char")return new ut(n,n);if(u=="word")return r.findWordAt(n);if(u=="line")return new ut(le(n.line,0),De(r.doc,le(n.line+1,0)));var l=u(r,n);return new ut(l.from,l.to)}o(Fv,"rangeForUnit");function Rv(r,n,u,l){d&&Hf(r);var c=r.display,v=r.doc;Cr(n);var g,S,C=v.sel,E=C.ranges;if(l.addNew&&!l.extend?(S=v.sel.contains(u),S>-1?g=E[S]:g=new ut(u,u)):(g=v.sel.primary(),S=v.sel.primIndex),l.unit=="rectangle")l.addNew||(g=new ut(u,u)),u=Vi(r,n,!0,!0),S=-1;else{var P=Fv(r,u,l.unit);l.extend?g=Vf(g,P.anchor,P.head,l.extend):g=P}l.addNew?S==-1?(S=E.length,br(v,Fr(r,E.concat([g]),S),{scroll:!1,origin:"*mouse"})):E.length>1&&E[S].empty()&&l.unit=="char"&&!l.extend?(br(v,Fr(r,E.slice(0,S).concat(E.slice(S+1)),0),{scroll:!1,origin:"*mouse"}),C=v.sel):td(v,S,g,qr):(S=0,br(v,new Gn([g],0),qr),C=v.sel);var D=u;function q(de){if(Ie(D,de)!=0)if(D=de,l.unit=="rectangle"){for(var we=[],Le=r.options.tabSize,Oe=Nt(_e(v,u.line).text,u.ch,Le),qe=Nt(_e(v,de.line).text,de.ch,Le),ht=Math.min(Oe,qe),ir=Math.max(Oe,qe),St=Math.min(u.line,de.line),Xr=Math.min(r.lastLine(),Math.max(u.line,de.line));St<=Xr;St++){var Qr=_e(v,St).text,Vt=_n(Qr,ht,Le);ht==ir?we.push(new ut(le(St,Vt),le(St,Vt))):Qr.length>Vt&&we.push(new ut(le(St,Vt),le(St,_n(Qr,ir,Le))))}we.length||we.push(new ut(u,u)),br(v,Fr(r,C.ranges.slice(0,S).concat(we),S),{origin:"*mouse",scroll:!1}),r.scrollIntoView(de)}else{var kr=g,hr=Fv(r,de,l.unit),yt=kr.anchor,Tt;Ie(hr.anchor,yt)>0?(Tt=hr.head,yt=Qo(kr.from(),hr.anchor)):(Tt=hr.anchor,yt=Eo(kr.to(),hr.head));var Ut=C.ranges.slice(0);Ut[S]=mu(r,new ut(De(v,yt),Tt)),br(v,Fr(r,Ut,S),qr)}}o(q,"extendTo");var B=c.wrapper.getBoundingClientRect(),Z=0;function ne(de){var we=++Z,Le=Vi(r,de,!0,l.unit=="rectangle");if(!!Le)if(Ie(Le,D)!=0){r.curOp.focus=rt(),q(Le);var Oe=Zs(c,v);(Le.line>=Oe.to||Le.lineB.bottom?20:0;qe&&setTimeout(Ht(r,function(){Z==we&&(c.scroller.scrollTop+=qe,ne(de))}),50)}}o(ne,"extend");function ae(de){r.state.selectingText=!1,Z=Infinity,de&&(Cr(de),c.input.focus()),Pr(c.wrapper.ownerDocument,"mousemove",pe),Pr(c.wrapper.ownerDocument,"mouseup",ge),v.history.lastSelOrigin=null}o(ae,"done");var pe=Ht(r,function(de){de.buttons===0||!na(de)?ae(de):ne(de)}),ge=Ht(r,ae);r.state.selectingText=ge,Ne(c.wrapper.ownerDocument,"mousemove",pe),Ne(c.wrapper.ownerDocument,"mouseup",ge)}o(Rv,"leftButtonSelect");function mu(r,n){var u=n.anchor,l=n.head,c=_e(r.doc,u.line);if(Ie(u,l)==0&&u.sticky==l.sticky)return n;var v=$n(c);if(!v)return n;var g=wo(v,u.ch,u.sticky),S=v[g];if(S.from!=u.ch&&S.to!=u.ch)return n;var C=g+(S.from==u.ch==(S.level!=1)?0:1);if(C==0||C==v.length)return n;var E;if(l.line!=u.line)E=(l.line-u.line)*(r.doc.direction=="ltr"?1:-1)>0;else{var P=wo(v,l.ch,l.sticky),D=P-g||(l.ch-u.ch)*(S.level==1?-1:1);P==C-1||P==C?E=D<0:E=D>0}var q=v[C+(E?-1:0)],B=E==(q.level==1),Z=B?q.from:q.to,ne=B?"after":"before";return u.ch==Z&&u.sticky==ne?n:new ut(new le(u.line,Z,ne),l)}o(mu,"bidiSimplify");function gu(r,n,u,l){var c,v;if(n.touches)c=n.touches[0].clientX,v=n.touches[0].clientY;else try{c=n.clientX,v=n.clientY}catch(q){return!1}if(c>=Math.floor(r.display.gutters.getBoundingClientRect().right))return!1;l&&Cr(n);var g=r.display,S=g.lineDiv.getBoundingClientRect();if(v>S.bottom||!pn(r,u))return ra(n);v-=S.top-g.viewOffset;for(var C=0;C=c){var P=Ei(r.doc,v),D=r.display.gutterSpecs[C];return Lt(r,u,r,P,D.className,n),ra(n)}}}o(gu,"gutterEvent");function hd(r,n){return gu(r,n,"gutterClick",!0)}o(hd,"clickInGutter");function vd(r,n){er(r.display,n)||Wv(r,n)||Zt(r,n,"contextmenu")||ce||r.display.input.onContextMenu(n)}o(vd,"onContextMenu");function Wv(r,n){return pn(r,"gutterContextMenu")?gu(r,n,"gutterContextMenu",!1):!1}o(Wv,"contextMenuInGutter");function Da(r){r.display.wrapper.className=r.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+r.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ga(r)}o(Da,"themeChanged");var sl={toString:function(){return"CodeMirror.Init"}},Ia={},yu={};function uc(r){var n=r.optionHandlers;function u(l,c,v,g){r.defaults[l]=c,v&&(n[l]=g?function(S,C,E){E!=sl&&v(S,C,E)}:v)}o(u,"option"),r.defineOption=u,r.Init=sl,u("value","",function(l,c){return l.setValue(c)},!0),u("mode",null,function(l,c){l.doc.modeOption=c,Xp(l)},!0),u("indentUnit",2,Xp,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){ba(l),ga(l),Be(l)},!0),u("lineSeparator",null,function(l,c){if(l.doc.lineSep=c,!!c){var v=[],g=l.doc.first;l.doc.iter(function(C){for(var E=0;;){var P=C.text.indexOf(c,E);if(P==-1)break;E=P+c.length,v.push(le(g,P))}g++});for(var S=v.length-1;S>=0;S--)au(l.doc,c,v[S],le(v[S].line,v[S].ch+c.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,c,v){l.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),v!=sl&&l.refresh()}),u("specialCharPlaceholder",hn,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,c){return l.getInputField().spellcheck=c},!0),u("autocorrect",!1,function(l,c){return l.getInputField().autocorrect=c},!0),u("autocapitalize",!1,function(l,c){return l.getInputField().autocapitalize=c},!0),u("rtlMoveVisually",!V),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){Da(l),Ea(l)},!0),u("keyMap","default",function(l,c,v){var g=Kr(c),S=v!=sl&&Kr(v);S&&S.detach&&S.detach(l,g),g.attach&&g.attach(l,S||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Hv,!0),u("gutters",[],function(l,c){l.display.gutterSpecs=Kp(c,l.options.lineNumbers),Ea(l)},!0),u("fixedGutter",!0,function(l,c){l.display.gutters.style.left=c?Zl(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return hs(l)},!0),u("scrollbarStyle","native",function(l){el(l),hs(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,c){l.display.gutterSpecs=Kp(l.options.gutters,c),Ea(l)},!0),u("firstLineNumber",1,Ea,!0),u("lineNumberFormatter",function(l){return l},Ea,!0),u("showCursorWhenSelecting",!1,ya,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,c){c=="nocursor"&&(Qs(l),l.display.input.blur()),l.display.input.readOnlyChanged(c)}),u("screenReaderLabel",null,function(l,c){c=c===""?null:c,l.display.input.screenReaderLabelChanged(c)}),u("disableInput",!1,function(l,c){c||l.display.input.reset()},!0),u("dragDrop",!0,u0),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,ya,!0),u("singleCursorHeightPerLine",!0,ya,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,ba,!0),u("addModeClass",!1,ba,!0),u("pollInterval",100),u("undoDepth",200,function(l,c){return l.doc.history.undoDepth=c}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,ba,!0),u("moveInputWithCursor",!0,function(l,c){c||l.display.input.resetPosition()}),u("tabindex",null,function(l,c){return l.display.input.getField().tabIndex=c||""}),u("autofocus",null),u("direction","ltr",function(l,c){return l.doc.setDirection(c)},!0),u("phrases",null)}o(uc,"defineOptions");function u0(r,n,u){var l=u&&u!=sl;if(!n!=!l){var c=r.display.dragFunctions,v=n?Ne:Pr;v(r.display.scroller,"dragstart",c.start),v(r.display.scroller,"dragenter",c.enter),v(r.display.scroller,"dragover",c.over),v(r.display.scroller,"dragleave",c.leave),v(r.display.scroller,"drop",c.drop)}}o(u0,"dragDropChanged");function Hv(r){r.options.lineWrapping?(nt(r.display.wrapper,"CodeMirror-wrap"),r.display.sizer.style.minWidth="",r.display.sizerWidth=null):(ye(r.display.wrapper,"CodeMirror-wrap"),$s(r)),us(r),Be(r),ga(r),setTimeout(function(){return hs(r)},100)}o(Hv,"wrappingChanged");function xt(r,n){var u=this;if(!(this instanceof xt))return new xt(r,n);this.options=n=n?fr(n):{},fr(Ia,n,!1);var l=n.value;typeof l=="string"?l=new Gr(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var c=new xt.inputStyles[n.inputStyle](this),v=this.display=new Xy(r,l,c,n);v.wrapper.CodeMirror=this,Da(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),el(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new mt,keySeq:null,specialChars:null},n.autofocus&&!A&&v.input.focus(),d&&w<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Uv(this),sd(),Ni(this),this.curOp.forceUpdate=!0,dv(this,l),n.autofocus&&!A||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&eu(u)},20):Qs(this);for(var g in yu)yu.hasOwnProperty(g)&&yu[g](this,n[g],sl);Xi(this),n.finishInit&&n.finishInit(this);for(var S=0;S20*20}o(g,"farAway"),Ne(n.scroller,"touchstart",function(C){if(!Zt(r,C)&&!v(C)&&!hd(r,C)){n.input.ensurePolled(),clearTimeout(u);var E=+new Date;n.activeTouch={start:E,moved:!1,prev:E-l.end<=300?l:null},C.touches.length==1&&(n.activeTouch.left=C.touches[0].pageX,n.activeTouch.top=C.touches[0].pageY)}}),Ne(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),Ne(n.scroller,"touchend",function(C){var E=n.activeTouch;if(E&&!er(n,C)&&E.left!=null&&!E.moved&&new Date-E.start<300){var P=r.coordsChar(n.activeTouch,"page"),D;!E.prev||g(E,E.prev)?D=new ut(P,P):!E.prev.prev||g(E,E.prev.prev)?D=r.findWordAt(P):D=new ut(le(P.line,0),De(r.doc,le(P.line+1,0))),r.setSelection(D.anchor,D.head),r.focus(),Cr(C)}c()}),Ne(n.scroller,"touchcancel",c),Ne(n.scroller,"scroll",function(){n.scroller.clientHeight&&(Wt(r,n.scroller.scrollTop),Js(r,n.scroller.scrollLeft,!0),Lt(r,"scroll",r))}),Ne(n.scroller,"mousewheel",function(C){return cv(r,C)}),Ne(n.scroller,"DOMMouseScroll",function(C){return cv(r,C)}),Ne(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(C){Zt(r,C)||Rs(C)},over:function(C){Zt(r,C)||(id(r,C),Rs(C))},start:function(C){return r0(r,C)},drop:Ht(r,Tv),leave:function(C){Zt(r,C)||od(r)}};var S=n.input.getField();Ne(S,"keyup",function(C){return dd.call(r,C)}),Ne(S,"keydown",Ht(r,Nv)),Ne(S,"keypress",Ht(r,Pv)),Ne(S,"focus",function(C){return eu(r,C)}),Ne(S,"blur",function(C){return Qs(r,C)})}o(Uv,"registerEventHandlers");var Fa=[];xt.defineInitHook=function(r){return Fa.push(r)};function Ra(r,n,u,l){var c=r.doc,v;u==null&&(u="add"),u=="smart"&&(c.mode.indent?v=Zo(r,n).state:u="prev");var g=r.options.tabSize,S=_e(c,n),C=Nt(S.text,null,g);S.stateAfter&&(S.stateAfter=null);var E=S.text.match(/^\s*/)[0],P;if(!l&&!/\S/.test(S.text))P=0,u="not";else if(u=="smart"&&(P=c.mode.indent(v,S.text.slice(E.length),S.text),P==Pt||P>150)){if(!l)return;u="prev"}u=="prev"?n>c.first?P=Nt(_e(c,n-1).text,null,g):P=0:u=="add"?P=C+r.options.indentUnit:u=="subtract"?P=C-r.options.indentUnit:typeof u=="number"&&(P=C+u),P=Math.max(0,P);var D="",q=0;if(r.options.indentWithTabs)for(var B=Math.floor(P/g);B;--B)q+=g,D+=" ";if(qg,C=Hs(n),E=null;if(S&&l.ranges.length>1)if(ci&&ci.text.join(` -`)==n){if(l.ranges.length%ci.text.length==0){E=[];for(var P=0;P=0;q--){var B=l.ranges[q],Z=B.from(),ne=B.to();B.empty()&&(u&&u>0?Z=le(Z.line,Z.ch-u):r.state.overwrite&&!S?ne=le(ne.line,Math.min(_e(v,ne.line).text.length,ne.ch+je(C).length)):S&&ci&&ci.lineWise&&ci.text.join(` +b`.split(/\n/).length!=3?function(r){for(var n=0,u=[],a=r.length;n<=a;){var c=r.indexOf(` +`,n);c==-1&&(c=r.length);var m=r.slice(n,r.charAt(c-1)=="\r"?c-1:c),g=m.indexOf("\r");g!=-1?(u.push(m.slice(0,g)),n+=g+1):(u.push(m),n=c+1)}return u}:function(r){return r.split(/\r\n?|\n/)},Ep=window.getSelection?function(r){try{return r.selectionStart!=r.selectionEnd}catch(n){return!1}}:function(r){var n;try{n=r.ownerDocument.selection.createRange()}catch(u){}return!n||n.parentElement()!=r?!1:n.compareEndPoints("StartToEnd",n)!=0},bf=function(){var r=Ee("div");return"oncopy"in r?!0:(r.setAttribute("oncopy","return;"),typeof r.oncopy=="function")}(),au=null;function bp(r){if(au!=null)return au;var n=Qe(r,Ee("span","x")),u=n.getBoundingClientRect(),a=qe(n,0,1).getBoundingClientRect();return au=Math.abs(u.left-a.left)>1}o(bp,"hasBadZoomedRects");var $l={},ps={};function Tp(r,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),$l[r]=n}o(Tp,"defineMode");function Tf(r,n){ps[r]=n}o(Tf,"defineMIME");function rl(r){if(typeof r=="string"&&ps.hasOwnProperty(r))r=ps[r];else if(r&&typeof r.name=="string"&&ps.hasOwnProperty(r.name)){var n=ps[r.name];typeof n=="string"&&(n={name:n}),r=ii(n,r),r.name=n.name}else{if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(r))return rl("application/xml");if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(r))return rl("application/json")}return typeof r=="string"?{name:r}:r||{name:"null"}}o(rl,"resolveMode");function uu(r,n){n=rl(n);var u=$l[n.name];if(!u)return uu(r,"text/plain");var a=u(r,n);if(Ho.hasOwnProperty(n.name)){var c=Ho[n.name];for(var m in c)!c.hasOwnProperty(m)||(a.hasOwnProperty(m)&&(a["_"+m]=a[m]),a[m]=c[m])}if(a.name=n.name,n.helperType&&(a.helperType=n.helperType),n.modeProps)for(var g in n.modeProps)a[g]=n.modeProps[g];return a}o(uu,"getMode");var Ho={};function kp(r,n){var u=Ho.hasOwnProperty(r)?Ho[r]:Ho[r]={};Kt(n,u)}o(kp,"extendMode");function Wo(r,n){if(n===!0)return n;if(r.copyState)return r.copyState(n);var u={};for(var a in n){var c=n[a];c instanceof Array&&(c=c.concat([])),u[a]=c}return u}o(Wo,"copyState");function jl(r,n){for(var u;r.innerMode&&(u=r.innerMode(n),!(!u||u.mode==r));)n=u.state,r=u.mode;return u||{mode:r,state:n}}o(jl,"innerMode");function kf(r,n,u){return r.startState?r.startState(n,u):!0}o(kf,"startState");var Rt=o(function(r,n,u){this.pos=this.start=0,this.string=r,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u},"StringStream");Rt.prototype.eol=function(){return this.pos>=this.string.length},Rt.prototype.sol=function(){return this.pos==this.lineStart},Rt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Rt.prototype.next=function(){if(this.posn},Rt.prototype.eatSpace=function(){for(var r=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>r},Rt.prototype.skipToEnd=function(){this.pos=this.string.length},Rt.prototype.skipTo=function(r){var n=this.string.indexOf(r,this.pos);if(n>-1)return this.pos=n,!0},Rt.prototype.backUp=function(r){this.pos-=r},Rt.prototype.column=function(){return this.lastColumnPos0?null:(m&&n!==!1&&(this.pos+=m[0].length),m)}},Rt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Rt.prototype.hideFirstChars=function(r,n){this.lineStart+=r;try{return n()}finally{this.lineStart-=r}},Rt.prototype.lookAhead=function(r){var n=this.lineOracle;return n&&n.lookAhead(r)},Rt.prototype.baseToken=function(){var r=this.lineOracle;return r&&r.baseToken(this.pos)};function Le(r,n){if(n-=r.first,n<0||n>=r.size)throw new Error("There is no line "+(n+r.first)+" in the document.");for(var u=r;!u.lines;)for(var a=0;;++a){var c=u.children[a],m=c.chunkSize();if(n=r.first&&nu?ae(u,Le(r,u).text.length):Op(n,Le(r,n.line).text.length)}o(Be,"clipPos");function Op(r,n){var u=r.ch;return u==null||u>n?ae(r.line,n):u<0?ae(r.line,0):r}o(Op,"clipToLen");function il(r,n){for(var u=[],a=0;athis.maxLookAhead&&(this.maxLookAhead=r),n},Bn.prototype.baseToken=function(r){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=r;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-r}},Bn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Bn.fromSaved=function(r,n,u){return n instanceof si?new Bn(r,Wo(r.mode,n.state),u,n.lookAhead):new Bn(r,Wo(r.mode,n),u)},Bn.prototype.save=function(r){var n=r!==!1?Wo(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new si(n,this.maxLookAhead):n};function cu(r,n,u,a){var c=[r.state.modeGen],m={};du(r,n.text,r.doc.mode,u,function(E,L){return c.push(E,L)},m,a);for(var g=u.state,S=o(function(E){u.baseTokens=c;var L=r.state.overlays[E],A=1,j=0;u.state=!0,du(r,n.text,L.mode,u,function(z,ee){for(var oe=A;jz&&c.splice(A,1,z,c[A+1],ce),A+=2,j=Math.min(z,ce)}if(!!ee)if(L.opaque)c.splice(oe,A-oe,z,"overlay "+ee),A=oe+2;else for(;oer.options.maxHighlightLength&&Wo(r.doc.mode,a.state),m=cu(r,n,a);c&&(a.state=c),n.stateAfter=a.save(!c),n.styles=m.styles,m.classes?n.styleClasses=m.classes:n.styleClasses&&(n.styleClasses=null),u===r.doc.highlightFrontier&&(r.doc.modeFrontier=Math.max(r.doc.modeFrontier,++r.doc.highlightFrontier))}return n.styles}o(pu,"getLineStyles");function hs(r,n,u){var a=r.doc,c=r.display;if(!a.mode.startState)return new Bn(a,!0,n);var m=Nf(r,n,u),g=m>a.first&&Le(a,m-1).stateAfter,S=g?Bn.fromSaved(a,g,m):new Bn(a,kf(a.mode),m);return a.iter(m,n,function(C){ol(r,C.text,S);var E=S.line;C.stateAfter=E==n-1||E%5==0||E>=c.viewFrom&&En.start)return m}throw new Error("Mode "+r.name+" failed to advance stream.")}o(Gl,"readToken");var Yl=o(function(r,n,u){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=n||null,this.state=u},"Token");function Xl(r,n,u,a){var c=r.doc,m=c.mode,g;n=Be(c,n);var S=Le(c,n.line),C=hs(r,n.line,u),E=new Rt(S.text,r.options.tabSize,C),L;for(a&&(L=[]);(a||E.posr.options.maxHighlightLength?(S=!1,g&&ol(r,n,a,L.pos),L.pos=n.length,A=null):A=zo(Gl(u,L,a.state,j),m),j){var z=j[0].name;z&&(A="m-"+(A?z+" "+A:z))}if(!S||E!=A){for(;Cg;--S){if(S<=m.first)return m.first;var C=Le(m,S-1),E=C.stateAfter;if(E&&(!u||S+(E instanceof si?E.lookAhead:0)<=m.modeFrontier))return S;var L=Ot(C.text,null,r.options.tabSize);(c==null||a>L)&&(c=S-1,a=L)}return c}o(Nf,"findStartLine");function Np(r,n){if(r.modeFrontier=Math.min(r.modeFrontier,n),!(r.highlightFrontieru;a--){var c=Le(r,a).stateAfter;if(c&&(!(c instanceof si)||a+c.lookAhead=n:m.to>n);(a||(a=[])).push(new $o(g,m.from,C?null:m.to))}}return a}o(Ql,"markedSpansBefore");function Qh(r,n,u){var a;if(r)for(var c=0;c=n:m.to>n);if(S||m.from==n&&g.type=="bookmark"&&(!u||m.marker.insertLeft)){var C=m.from==null||(g.inclusiveLeft?m.from<=n:m.from0&&S)for(var Te=0;Te0)){var L=[C,1],A=Ue(E.from,S.from),j=Ue(E.to,S.to);(A<0||!g.inclusiveLeft&&!A)&&L.push({from:E.from,to:S.from}),(j>0||!g.inclusiveRight&&!j)&&L.push({from:S.to,to:E.to}),c.splice.apply(c,L),C+=L.length-3}}return c}o(Pf,"removeReadOnlyRanges");function vu(r){var n=r.markedSpans;if(!!n){for(var u=0;un)&&(!a||Zl(a,m.marker)<0)&&(a=m.marker)}return a}o(gu,"collapsedSpanAround");function sl(r,n,u,a,c){var m=Le(r,n),g=Si&&m.markedSpans;if(g)for(var S=0;S=0&&A<=0||L<=0&&A>=0)&&(L<=0&&(C.marker.inclusiveRight&&c.inclusiveLeft?Ue(E.to,u)>=0:Ue(E.to,u)>0)||L>=0&&(C.marker.inclusiveRight&&c.inclusiveLeft?Ue(E.from,a)<=0:Ue(E.from,a)<0)))return!0}}}o(sl,"conflictingCollapsedRange");function kn(r){for(var n;n=Tt(r);)r=n.find(-1,!0).line;return r}o(kn,"visualLine");function Pp(r){for(var n;n=Un(r);)r=n.find(1,!0).line;return r}o(Pp,"visualLineEnd");function Mp(r){for(var n,u;n=Un(r);)r=n.find(1,!0).line,(u||(u=[])).push(r);return u}o(Mp,"visualLineContinued");function Jl(r,n){var u=Le(r,n),a=kn(u);return u==a?n:dt(a)}o(Jl,"visualLineNo");function Hr(r,n){if(n>r.lastLine())return n;var u=Le(r,n),a;if(!Nt(r,u))return n;for(;a=Un(u);)u=a.find(1,!0).line;return dt(u)+1}o(Hr,"visualLineEndNo");function Nt(r,n){var u=Si&&n.markedSpans;if(u){for(var a=void 0,c=0;cn.maxLineLength&&(n.maxLineLength=c,n.maxLine=a)})}o(ll,"findMaxLine");var Or=o(function(r,n,u){this.text=r,ms(this,n),this.height=u?u(this):1},"Line");Or.prototype.lineNo=function(){return dt(this)},Ir(Or);function Mf(r,n,u,a){r.text=n,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),vu(r),ms(r,u);var c=a?a(r):1;c!=r.height&&xi(r,c)}o(Mf,"updateLine");function Af(r){r.parent=null,vu(r)}o(Af,"cleanUpLine");var yu={},wu={};function ea(r,n){if(!r||/^\s*$/.test(r))return null;var u=n.addModeClass?wu:yu;return u[r]||(u[r]=r.replace(/\S+/g,"cm-$&"))}o(ea,"interpretTokenStyle");function ta(r,n){var u=xt("span",null,null,_?"padding-right: .1px":null),a={pre:xt("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:r,trailingSpace:!1,splitSpaces:r.getOption("lineWrapping")};n.measure={};for(var c=0;c<=(n.rest?n.rest.length:0);c++){var m=c?n.rest[c-1]:n.line,g=void 0;a.pos=0,a.addToken=Ap,Ef(r.display.measure)&&(g=Tn(m,r.doc.direction))&&(a.addToken=Dp(a.addToken,g)),a.map=[];var S=n!=r.display.externalMeasured&&dt(m);io(m,a,pu(r,m,S)),m.styleClasses&&(m.styleClasses.bgClass&&(a.bgClass=Zt(m.styleClasses.bgClass,a.bgClass||"")),m.styleClasses.textClass&&(a.textClass=Zt(m.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(_p(r.display.measure))),c==0?(n.measure.map=a.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(a.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(_){var C=a.content.lastChild;(/\bcm-tab\b/.test(C.className)||C.querySelector&&C.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return be(r,"renderLine",r,n.line,a.pre),a.pre.className&&(a.textClass=Zt(a.pre.className,a.textClass||"")),a}o(ta,"buildLineContent");function On(r){var n=Ee("span","\u2022","cm-invalidchar");return n.title="\\u"+r.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}o(On,"defaultSpecialCharPlaceholder");function Ap(r,n,u,a,c,m,g){if(!!n){var S=r.splitSpaces?zn(n,r.trailingSpace):n,C=r.cm.state.specialChars,E=!1,L;if(!C.test(n))r.col+=n.length,L=document.createTextNode(S),r.map.push(r.pos,r.pos+n.length,L),p&&y<9&&(E=!0),r.pos+=n.length;else{L=document.createDocumentFragment();for(var A=0;;){C.lastIndex=A;var j=C.exec(n),z=j?j.index-A:n.length-A;if(z){var ee=document.createTextNode(S.slice(A,A+z));p&&y<9?L.appendChild(Ee("span",[ee])):L.appendChild(ee),r.map.push(r.pos,r.pos+z,ee),r.col+=z,r.pos+=z}if(!j)break;A+=z+1;var oe=void 0;if(j[0]==" "){var ce=r.cm.options.tabSize,ve=ce-r.col%ce;oe=L.appendChild(Ee("span",qt(ve),"cm-tab")),oe.setAttribute("role","presentation"),oe.setAttribute("cm-text"," "),r.col+=ve}else j[0]=="\r"||j[0]==` +`?(oe=L.appendChild(Ee("span",j[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),oe.setAttribute("cm-text",j[0]),r.col+=1):(oe=r.cm.options.specialCharPlaceholder(j[0]),oe.setAttribute("cm-text",j[0]),p&&y<9?L.appendChild(Ee("span",[oe])):L.appendChild(oe),r.col+=1);r.map.push(r.pos,r.pos+1,oe),r.pos++}}if(r.trailingSpace=S.charCodeAt(n.length-1)==32,u||a||c||E||m||g){var Ce=u||"";a&&(Ce+=a),c&&(Ce+=c);var ge=Ee("span",[L],Ce,m);if(g)for(var Te in g)g.hasOwnProperty(Te)&&Te!="style"&&Te!="class"&&ge.setAttribute(Te,g[Te]);return r.content.appendChild(ge)}r.content.appendChild(L)}}o(Ap,"buildToken");function zn(r,n){if(r.length>1&&!/ /.test(r))return r;for(var u=n,a="",c=0;cE&&A.from<=E));j++);if(A.to>=L)return r(u,a,c,m,g,S,C);r(u,a.slice(0,A.to-E),c,m,null,S,C),m=null,a=a.slice(A.to-E),E=A.to}}}o(Dp,"buildTokenBadBidi");function xu(r,n,u,a){var c=!a&&u.widgetNode;c&&r.map.push(r.pos,r.pos+n,c),!a&&r.cm.display.input.needsContentAttribute&&(c||(c=r.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",u.id)),c&&(r.cm.display.input.setUneditable(c),r.content.appendChild(c)),r.pos+=n,r.trailingSpace=!1}o(xu,"buildCollapsedSpan");function io(r,n,u){var a=r.markedSpans,c=r.text,m=0;if(!a){for(var g=1;gC||Je.collapsed&&De.to==C&&De.from==C)){if(De.to!=null&&De.to!=C&&z>De.to&&(z=De.to,oe=""),Je.className&&(ee+=" "+Je.className),Je.css&&(j=(j?j+";":"")+Je.css),Je.startStyle&&De.from==C&&(ce+=" "+Je.startStyle),Je.endStyle&&De.to==z&&(Te||(Te=[])).push(Je.endStyle,De.to),Je.title&&((Ce||(Ce={})).title=Je.title),Je.attributes)for(var bt in Je.attributes)(Ce||(Ce={}))[bt]=Je.attributes[bt];Je.collapsed&&(!ve||Zl(ve.marker,Je)<0)&&(ve=De)}else De.from>C&&z>De.from&&(z=De.from)}if(Te)for(var xr=0;xr=S)break;for(var mn=Math.min(S,z);;){if(L){var vn=C+L.length;if(!ve){var ur=vn>mn?L.slice(0,mn-C):L;n.addToken(n,ur,A?A+ee:ee,ce,C+ur.length==z?oe:"",j,Ce)}if(vn>=mn){L=L.slice(mn-C),C=mn;break}C=vn,ce=""}L=c.slice(m,m=u[E++]),A=ea(u[E++],n.cm.options)}}}o(io,"insertLineContent");function ws(r,n,u){this.line=n,this.rest=Mp(n),this.size=this.rest?dt(we(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Nt(r,n)}o(ws,"LineView");function xs(r,n,u){for(var a=[],c,m=n;m2&&m.push((C.bottom+E.top)/2-u.top)}}m.push(u.bottom-u.top)}}o(Ip,"ensureLineHeights");function ul(r,n,u){if(r.line==n)return{map:r.measure.map,cache:r.measure.cache};for(var a=0;au)return{map:r.measure.maps[c],cache:r.measure.caches[c],before:!0}}o(ul,"mapFromLineView");function Bi(r,n){n=kn(n);var u=dt(n),a=r.display.externalMeasured=new ws(r.doc,n,u);a.lineN=u;var c=a.built=ta(r,a);return a.text=c.pre,Qe(r.display.lineMeasure,c.pre),a}o(Bi,"updateExternalMeasurement");function Zh(r,n,u,a){return ao(r,Ui(r,n),u,a)}o(Zh,"measureChar");function Hp(r,n){if(n>=r.display.viewFrom&&n=u.lineN&&nn)&&(m=C-S,c=m-1,n>=C&&(g="right")),c!=null){if(a=r[E+2],S==C&&u==(a.insertLeft?"left":"right")&&(g=u),u=="left"&&c==0)for(;E&&r[E-2]==r[E-3]&&r[E-1].insertLeft;)a=r[(E-=3)+2],g="left";if(u=="right"&&c==C-S)for(;E=0&&(u=r[c]).left==u.right;c--);return u}o(em,"getUsefulRect");function Cs(r,n,u,a){var c=Rf(n.map,u,a),m=c.node,g=c.start,S=c.end,C=c.collapse,E;if(m.nodeType==3){for(var L=0;L<4;L++){for(;g&&yr(n.line.text.charAt(c.coverStart+g));)--g;for(;c.coverStart+S0&&(C=a="right");var A;r.options.lineWrapping&&(A=m.getClientRects()).length>1?E=A[a=="right"?A.length-1:0]:E=m.getBoundingClientRect()}if(p&&y<9&&!g&&(!E||!E.left&&!E.right)){var j=m.parentNode.getClientRects()[0];j?E={left:j.left,right:j.left+oa(r.display),top:j.top,bottom:j.bottom}:E=Jh}for(var z=E.top-n.rect.top,ee=E.bottom-n.rect.top,oe=(z+ee)/2,ce=n.view.measure.heights,ve=0;ve=a.text.length?(C=a.text.length,E="before"):C<=0&&(C=0,E="after"),!S)return g(E=="before"?C-1:C,E=="before");function L(ee,oe,ce){var ve=S[oe],Ce=ve.level==1;return g(ce?ee-1:ee,Ce!=ce)}o(L,"getBidi");var A=gi(S,C,E),j=vi,z=L(C,A,E=="before");return j!=null&&(z.other=L(C,j,E!="before")),z}o(zi,"cursorCoords");function im(r,n){var u=0;n=Be(r.doc,n),r.options.lineWrapping||(u=oa(r.display)*n.ch);var a=Le(r.doc,n.line),c=Wr(a)+jn(r.display);return{left:u,right:u,top:c,bottom:c+a.height}}o(im,"estimateCoords");function uo(r,n,u,a,c){var m=ae(r,n,u);return m.xRel=c,a&&(m.outside=a),m}o(uo,"PosWithInfo");function q(r,n,u){var a=r.doc;if(u+=r.display.viewOffset,u<0)return uo(a.first,0,null,-1,-1);var c=Hi(a,u),m=a.first+a.size-1;if(c>m)return uo(a.first+a.size-1,Le(a,m).text.length,null,1,1);n<0&&(n=0);for(var g=Le(a,c);;){var S=Ke(r,g,c,n,u),C=gu(g,S.ch+(S.xRel>0||S.outside>0?1:0));if(!C)return S;var E=C.find(1);if(E.line==c)return E;g=Le(a,c=E.line)}}o(q,"coordsChar");function re(r,n,u,a){a-=Hf(n);var c=n.text.length,m=un(function(g){return ao(r,u,g-1).bottom<=a},c,0);return c=un(function(g){return ao(r,u,g).top>a},m,c),{begin:m,end:c}}o(re,"wrappedLineExtent");function Z(r,n,u,a){u||(u=Ui(r,n));var c=Wf(r,n,ao(r,u,a),"line").top;return re(r,n,u,c)}o(Z,"wrappedLineExtentChar");function Oe(r,n,u,a){return r.bottom<=u?!1:r.top>u?!0:(a?r.left:r.right)>n}o(Oe,"boxIsAfter");function Ke(r,n,u,a,c){c-=Wr(n);var m=Ui(r,n),g=Hf(n),S=0,C=n.text.length,E=!0,L=Tn(n,r.doc.direction);if(L){var A=(r.options.lineWrapping?Nr:_t)(r,n,u,m,L,a,c);E=A.level!=1,S=E?A.from:A.to-1,C=E?A.to:A.from-1}var j=null,z=null,ee=un(function(Re){var De=ao(r,m,Re);return De.top+=g,De.bottom+=g,Oe(De,a,c,!1)?(De.top<=c&&De.left<=a&&(j=Re,z=De),!0):!1},S,C),oe,ce,ve=!1;if(z){var Ce=a-z.left=Te.bottom?1:0}return ee=Ii(n.text,ee,1),uo(u,ee,ce,ve,a-oe)}o(Ke,"coordsCharInner");function _t(r,n,u,a,c,m,g){var S=un(function(A){var j=c[A],z=j.level!=1;return Oe(zi(r,ae(u,z?j.to:j.from,z?"before":"after"),"line",n,a),m,g,!0)},0,c.length-1),C=c[S];if(S>0){var E=C.level!=1,L=zi(r,ae(u,E?C.from:C.to,E?"after":"before"),"line",n,a);Oe(L,m,g,!0)&&L.top>g&&(C=c[S-1])}return C}o(_t,"coordsBidiPart");function Nr(r,n,u,a,c,m,g){var S=re(r,n,a,g),C=S.begin,E=S.end;/\s/.test(n.text.charAt(E-1))&&E--;for(var L=null,A=null,j=0;j=E||z.to<=C)){var ee=z.level!=1,oe=ao(r,a,ee?Math.min(E,z.to)-1:Math.max(C,z.from)).right,ce=oece)&&(L=z,A=ce)}}return L||(L=c[c.length-1]),L.fromE&&(L={from:L.from,to:E,level:L.level}),L}o(Nr,"coordsBidiPartWrapped");var ht;function _s(r){if(r.cachedTextHeight!=null)return r.cachedTextHeight;if(ht==null){ht=Ee("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)ht.appendChild(document.createTextNode("x")),ht.appendChild(Ee("br"));ht.appendChild(document.createTextNode("x"))}Qe(r.measure,ht);var u=ht.offsetHeight/50;return u>3&&(r.cachedTextHeight=u),Ve(r.measure),u||1}o(_s,"textHeight");function oa(r){if(r.cachedCharWidth!=null)return r.cachedCharWidth;var n=Ee("span","xxxxxxxxxx"),u=Ee("pre",[n],"CodeMirror-line-like");Qe(r.measure,u);var a=n.getBoundingClientRect(),c=(a.right-a.left)/10;return c>2&&(r.cachedCharWidth=c),c||10}o(oa,"charWidth");function qn(r){for(var n=r.display,u={},a={},c=n.gutters.clientLeft,m=n.gutters.firstChild,g=0;m;m=m.nextSibling,++g){var S=r.display.gutterSpecs[g].className;u[S]=m.offsetLeft+m.clientLeft+c,a[S]=m.clientWidth}return{fixedPos:sa(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:a,wrapperWidth:n.wrapper.clientWidth}}o(qn,"getDimensions");function sa(r){return r.scroller.getBoundingClientRect().left-r.sizer.getBoundingClientRect().left}o(sa,"compensateForHScroll");function om(r){var n=_s(r.display),u=r.options.lineWrapping,a=u&&Math.max(5,r.display.scroller.clientWidth/oa(r.display)-3);return function(c){if(Nt(r.doc,c))return 0;var m=0;if(c.widgets)for(var g=0;g0&&(E=Le(r.doc,C.line).text).length==C.ch){var L=Ot(E,E.length,r.options.tabSize)-E.length;C=ae(C.line,Math.max(0,Math.round((m-Ci(r.display).left)/oa(r.display))-L))}return C}o(fo,"posFromMouse");function co(r,n){if(n>=r.display.viewTo||(n-=r.display.viewFrom,n<0))return null;for(var u=r.display.view,a=0;an)&&(c.updateLineNumbers=n),r.curOp.viewChanged=!0,n>=c.viewTo)Si&&Jl(r.doc,n)c.viewFrom?qo(r):(c.viewFrom+=a,c.viewTo+=a);else if(n<=c.viewFrom&&u>=c.viewTo)qo(r);else if(n<=c.viewFrom){var m=cl(r,u,u+a,1);m?(c.view=c.view.slice(m.index),c.viewFrom=m.lineN,c.viewTo+=a):qo(r)}else if(u>=c.viewTo){var g=cl(r,n,n,-1);g?(c.view=c.view.slice(0,g.index),c.viewTo=g.lineN):qo(r)}else{var S=cl(r,n,n,-1),C=cl(r,u,u+a,1);S&&C?(c.view=c.view.slice(0,S.index).concat(xs(r,S.lineN,C.lineN)).concat(c.view.slice(C.index)),c.viewTo+=a):qo(r)}var E=c.externalMeasured;E&&(u=c.lineN&&n=a.viewTo)){var m=a.view[co(r,n)];if(m.node!=null){var g=m.changes||(m.changes=[]);it(g,u)==-1&&g.push(u)}}}o(bs,"regLineChange");function qo(r){r.display.viewFrom=r.display.viewTo=r.doc.first,r.display.view=[],r.display.viewOffset=0}o(qo,"resetView");function cl(r,n,u,a){var c=co(r,n),m,g=r.display.view;if(!Si||u==r.doc.first+r.doc.size)return{index:c,lineN:u};for(var S=r.display.viewFrom,C=0;C0){if(c==g.length-1)return null;m=S+g[c].size-n,c++}else m=S-n;n+=m,u+=m}for(;Jl(r.doc,u)!=u;){if(c==(a<0?0:g.length-1))return null;u+=a*g[c-(a<0?1:0)].size,c+=a}return{index:c,lineN:u}}o(cl,"viewCuttingPoint");function $y(r,n,u){var a=r.display,c=a.view;c.length==0||n>=a.viewTo||u<=a.viewFrom?(a.view=xs(r,n,u),a.viewFrom=n):(a.viewFrom>n?a.view=xs(r,n,a.viewFrom).concat(a.view):a.viewFromu&&(a.view=a.view.slice(0,co(r,u)))),a.viewTo=u}o($y,"adjustView");function sm(r){for(var n=r.display.view,u=0,a=0;a=r.display.viewTo||S.to().line0?n.blinker=setInterval(function(){r.hasFocus()||dl(r),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},r.options.cursorBlinkRate):r.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}o(la,"restartBlink");function Bp(r){r.hasFocus()||(r.display.input.focus(),r.state.focused||aa(r))}o(Bp,"ensureFocus");function Bf(r){r.state.delayingBlurEvent=!0,setTimeout(function(){r.state.delayingBlurEvent&&(r.state.delayingBlurEvent=!1,r.state.focused&&dl(r))},100)}o(Bf,"delayBlurEvent");function aa(r,n){r.state.delayingBlurEvent&&!r.state.draggingText&&(r.state.delayingBlurEvent=!1),r.options.readOnly!="nocursor"&&(r.state.focused||(be(r,"focus",r,n),r.state.focused=!0,lt(r.display.wrapper,"CodeMirror-focused"),!r.curOp&&r.display.selForContextMenu!=r.doc.sel&&(r.display.input.reset(),_&&setTimeout(function(){return r.display.input.reset(!0)},20)),r.display.input.receivedFocus()),la(r))}o(aa,"onFocus");function dl(r,n){r.state.delayingBlurEvent||(r.state.focused&&(be(r,"blur",r,n),r.state.focused=!1,xe(r.display.wrapper,"CodeMirror-focused")),clearInterval(r.display.blinker),setTimeout(function(){r.state.focused||(r.display.shift=!1)},150))}o(dl,"onBlur");function Ts(r){for(var n=r.display,u=n.lineDiv.offsetTop,a=0;a.005||L<-.005)&&(xi(c.line,g),ks(c.line),c.rest))for(var A=0;Ar.display.sizerWidth){var j=Math.ceil(S/oa(r.display));j>r.display.maxLineLength&&(r.display.maxLineLength=j,r.display.maxLine=c.line,r.display.maxLineChanged=!0)}}}}o(Ts,"updateHeightsInViewport");function ks(r){if(r.widgets)for(var n=0;n=g&&(m=Hi(n,Wr(Le(n,C))-r.wrapper.clientHeight),g=C)}return{from:m,to:Math.max(g,m+1)}}o(hl,"visibleLines");function jy(r,n){if(!Jt(r,"scrollCursorIntoView")){var u=r.display,a=u.sizer.getBoundingClientRect(),c=null;if(n.top+a.top<0?c=!0:n.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!te){var m=Ee("div","\u200B",null,`position: absolute; + top: `+(n.top-u.viewOffset-jn(r.display))+`px; + height: `+(n.bottom-n.top+Gr(r)+u.barHeight)+`px; + left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");r.display.lineSpace.appendChild(m),m.scrollIntoView(c),r.display.lineSpace.removeChild(m)}}}o(jy,"maybeScrollWindow");function qy(r,n,u,a){a==null&&(a=0);var c;!r.options.lineWrapping&&n==u&&(u=n.sticky=="before"?ae(n.line,n.ch+1,"before"):n,n=n.ch?ae(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var m=0;m<5;m++){var g=!1,S=zi(r,n),C=!u||u==n?S:zi(r,u);c={left:Math.min(S.left,C.left),top:Math.min(S.top,C.top)-a,right:Math.max(S.left,C.left),bottom:Math.max(S.bottom,C.bottom)+a};var E=ua(r,c),L=r.doc.scrollTop,A=r.doc.scrollLeft;if(E.scrollTop!=null&&(tr(r,E.scrollTop),Math.abs(r.doc.scrollTop-L)>1&&(g=!0)),E.scrollLeft!=null&&(ml(r,E.scrollLeft),Math.abs(r.doc.scrollLeft-A)>1&&(g=!0)),!g)break}return c}o(qy,"scrollPosIntoView");function Vy(r,n){var u=ua(r,n);u.scrollTop!=null&&tr(r,u.scrollTop),u.scrollLeft!=null&&ml(r,u.scrollLeft)}o(Vy,"scrollIntoView");function ua(r,n){var u=r.display,a=_s(r.display);n.top<0&&(n.top=0);var c=r.curOp&&r.curOp.scrollTop!=null?r.curOp.scrollTop:u.scroller.scrollTop,m=lo(r),g={};n.bottom-n.top>m&&(n.bottom=n.top+m);var S=r.doc.height+wr(u),C=n.topS-a;if(n.topc+m){var L=Math.min(n.top,(E?S:n.bottom)-m);L!=c&&(g.scrollTop=L)}var A=r.options.fixedGutter?0:u.gutters.offsetWidth,j=r.curOp&&r.curOp.scrollLeft!=null?r.curOp.scrollLeft:u.scroller.scrollLeft-A,z=Wi(r)-u.gutters.offsetWidth,ee=n.right-n.left>z;return ee&&(n.right=n.left+z),n.left<10?g.scrollLeft=0:n.leftz+j-3&&(g.scrollLeft=n.right+(ee?0:10)-z),g}o(ua,"calculateScrollPos");function fa(r,n){n!=null&&(Uf(r),r.curOp.scrollTop=(r.curOp.scrollTop==null?r.doc.scrollTop:r.curOp.scrollTop)+n)}o(fa,"addToScrollTop");function Os(r){Uf(r);var n=r.getCursor();r.curOp.scrollToPos={from:n,to:n,margin:r.options.cursorScrollMargin}}o(Os,"ensureCursorVisible");function Eu(r,n,u){(n!=null||u!=null)&&Uf(r),n!=null&&(r.curOp.scrollLeft=n),u!=null&&(r.curOp.scrollTop=u)}o(Eu,"scrollToCoords");function am(r,n){Uf(r),r.curOp.scrollToPos=n}o(am,"scrollToRange");function Uf(r){var n=r.curOp.scrollToPos;if(n){r.curOp.scrollToPos=null;var u=im(r,n.from),a=im(r,n.to);um(r,u,a,n.margin)}}o(Uf,"resolveScrollToPos");function um(r,n,u,a){var c=ua(r,{left:Math.min(n.left,u.left),top:Math.min(n.top,u.top)-a,right:Math.max(n.right,u.right),bottom:Math.max(n.bottom,u.bottom)+a});Eu(r,c.scrollLeft,c.scrollTop)}o(um,"scrollToCoordsRange");function tr(r,n){Math.abs(r.doc.scrollTop-n)<2||(i||zp(r,{top:n}),Yr(r,n,!0),i&&zp(r),ho(r,100))}o(tr,"updateScrollTop");function Yr(r,n,u){n=Math.max(0,Math.min(r.display.scroller.scrollHeight-r.display.scroller.clientHeight,n)),!(r.display.scroller.scrollTop==n&&!u)&&(r.doc.scrollTop=n,r.display.scrollbars.setScrollTop(n),r.display.scroller.scrollTop!=n&&(r.display.scroller.scrollTop=n))}o(Yr,"setScrollTop");function ml(r,n,u,a){n=Math.max(0,Math.min(n,r.display.scroller.scrollWidth-r.display.scroller.clientWidth)),!((u?n==r.doc.scrollLeft:Math.abs(r.doc.scrollLeft-n)<2)&&!a)&&(r.doc.scrollLeft=n,fm(r),r.display.scroller.scrollLeft!=n&&(r.display.scroller.scrollLeft=n),r.display.scrollbars.setScrollLeft(n))}o(ml,"setScrollLeft");function bu(r){var n=r.display,u=n.gutters.offsetWidth,a=Math.round(r.doc.height+wr(r.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:r.options.fixedGutter?u:0,docHeight:a,scrollHeight:a+Gr(r)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}o(bu,"measureForScrollbars");var Ns=o(function(r,n,u){this.cm=u;var a=this.vert=Ee("div",[Ee("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=Ee("div",[Ee("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=c.tabIndex=-1,r(a),r(c),H(a,"scroll",function(){a.clientHeight&&n(a.scrollTop,"vertical")}),H(c,"scroll",function(){c.clientWidth&&n(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&y<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")},"NativeScrollbars");Ns.prototype.update=function(r){var n=r.scrollWidth>r.clientWidth+1,u=r.scrollHeight>r.clientHeight+1,a=r.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=n?a+"px":"0";var c=r.viewHeight-(n?a:0);this.vert.firstChild.style.height=Math.max(0,r.scrollHeight-r.clientHeight+c)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=u?a+"px":"0",this.horiz.style.left=r.barLeft+"px";var m=r.viewWidth-r.barLeft-(u?a:0);this.horiz.firstChild.style.width=Math.max(0,r.scrollWidth-r.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&r.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?a:0,bottom:n?a:0}},Ns.prototype.setScrollLeft=function(r){this.horiz.scrollLeft!=r&&(this.horiz.scrollLeft=r),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ns.prototype.setScrollTop=function(r){this.vert.scrollTop!=r&&(this.vert.scrollTop=r),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ns.prototype.zeroWidthHack=function(){var r=R&&!X?"12px":"18px";this.horiz.style.height=this.vert.style.width=r,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new St,this.disableVert=new St},Ns.prototype.enableZeroWidthBar=function(r,n,u){r.style.pointerEvents="auto";function a(){var c=r.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);m!=r?r.style.pointerEvents="none":n.set(1e3,a)}o(a,"maybeDisable"),n.set(1e3,a)},Ns.prototype.clear=function(){var r=this.horiz.parentNode;r.removeChild(this.horiz),r.removeChild(this.vert)};var Tu=o(function(){},"NullScrollbars");Tu.prototype.update=function(){return{bottom:0,right:0}},Tu.prototype.setScrollLeft=function(){},Tu.prototype.setScrollTop=function(){},Tu.prototype.clear=function(){};function Ls(r,n){n||(n=bu(r));var u=r.display.barWidth,a=r.display.barHeight;ca(r,n);for(var c=0;c<4&&u!=r.display.barWidth||a!=r.display.barHeight;c++)u!=r.display.barWidth&&r.options.lineWrapping&&Ts(r),ca(r,bu(r)),u=r.display.barWidth,a=r.display.barHeight}o(Ls,"updateScrollbars");function ca(r,n){var u=r.display,a=u.scrollbars.update(n);u.sizer.style.paddingRight=(u.barWidth=a.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=a.bottom)+"px",u.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=a.bottom+"px",u.scrollbarFiller.style.width=a.right+"px"):u.scrollbarFiller.style.display="",a.bottom&&r.options.coverGutterNextToScrollbar&&r.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=a.bottom+"px",u.gutterFiller.style.width=n.gutterWidth+"px"):u.gutterFiller.style.display=""}o(ca,"updateScrollbarsInner");var zf={native:Ns,null:Tu};function vl(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&xe(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new zf[r.options.scrollbarStyle](function(n){r.display.wrapper.insertBefore(n,r.display.scrollbarFiller),H(n,"mousedown",function(){r.state.focused&&setTimeout(function(){return r.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,u){u=="horizontal"?ml(r,n):tr(r,n)},r),r.display.scrollbars.addClass&<(r.display.wrapper,r.display.scrollbars.addClass)}o(vl,"initScrollbars");var ku=0;function $i(r){r.curOp={cm:r,viewChanged:!1,startHeight:r.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ku,markArrays:null},oo(r.curOp)}o($i,"startOperation");function po(r){var n=r.curOp;n&&Fp(n,function(u){for(var a=0;a=u.viewTo)||u.maxLineChanged&&n.options.lineWrapping,r.update=r.mustUpdate&&new Nn(n,r.mustUpdate&&{top:r.scrollTop,ensure:r.scrollToPos},r.forceUpdate)}o(Ky,"endOperation_R1");function Gy(r){r.updatedDisplay=r.mustUpdate&&Up(r.cm,r.update)}o(Gy,"endOperation_W1");function Yy(r){var n=r.cm,u=n.display;r.updatedDisplay&&Ts(n),r.barMeasure=bu(n),u.maxLineChanged&&!n.options.lineWrapping&&(r.adjustWidthTo=Zh(n,u.maxLine,u.maxLine.text.length).left+3,n.display.sizerWidth=r.adjustWidthTo,r.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+r.adjustWidthTo+Gr(n)+n.display.barWidth),r.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+r.adjustWidthTo-Wi(n))),(r.updatedDisplay||r.selectionChanged)&&(r.preparedSelection=u.input.prepareSelection())}o(Yy,"endOperation_R2");function Xy(r){var n=r.cm;r.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=r.adjustWidthTo+"px",r.maxScrollLeft=r.display.viewTo)){var u=+new Date+r.options.workTime,a=hs(r,n.highlightFrontier),c=[];n.iter(a.line,Math.min(n.first+n.size,r.display.viewTo+500),function(m){if(a.line>=r.display.viewFrom){var g=m.styles,S=m.text.length>r.options.maxHighlightLength?Wo(n.mode,a.state):null,C=cu(r,m,a,!0);S&&(a.state=S),m.styles=C.styles;var E=m.styleClasses,L=C.classes;L?m.styleClasses=L:E&&(m.styleClasses=null);for(var A=!g||g.length!=m.styles.length||E!=L&&(!E||!L||E.bgClass!=L.bgClass||E.textClass!=L.textClass),j=0;!A&&ju)return ho(r,r.options.workDelay),!0}),n.highlightFrontier=a.line,n.modeFrontier=Math.max(n.modeFrontier,a.line),c.length&&Xr(r,function(){for(var m=0;m=u.viewFrom&&n.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&sm(r)==0)return!1;mo(r)&&(qo(r),n.dims=qn(r));var c=a.first+a.size,m=Math.max(n.visible.from-r.options.viewportMargin,a.first),g=Math.min(c,n.visible.to+r.options.viewportMargin);u.viewFromg&&u.viewTo-g<20&&(g=Math.min(c,u.viewTo)),Si&&(m=Jl(r.doc,m),g=Hr(r.doc,g));var S=m!=u.viewFrom||g!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;$y(r,m,g),u.viewOffset=Wr(Le(r.doc,u.viewFrom)),r.display.mover.style.top=u.viewOffset+"px";var C=sm(r);if(!S&&C==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var E=Zy(r);return C>4&&(u.lineDiv.style.display="none"),e0(r,u.updateLineNumbers,n.dims),C>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Jy(E),Ve(u.cursorDiv),Ve(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,S&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,ho(r,400)),u.updateLineNumbers=null,!0}o(Up,"updateDisplayIfNeeded");function Ps(r,n){for(var u=n.viewport,a=!0;;a=!1){if(!a||!r.options.lineWrapping||n.oldDisplayWidth==Wi(r)){if(u&&u.top!=null&&(u={top:Math.min(r.doc.height+wr(r.display)-lo(r),u.top)}),n.visible=hl(r.display,r.doc,u),n.visible.from>=r.display.viewFrom&&n.visible.to<=r.display.viewTo)break}else a&&(n.visible=hl(r.display,r.doc,u));if(!Up(r,n))break;Ts(r);var c=bu(r);Cu(r),Ls(r,c),jp(r,c),n.force=!1}n.signal(r,"update",r),(r.display.viewFrom!=r.display.reportedViewFrom||r.display.viewTo!=r.display.reportedViewTo)&&(n.signal(r,"viewportChange",r,r.display.viewFrom,r.display.viewTo),r.display.reportedViewFrom=r.display.viewFrom,r.display.reportedViewTo=r.display.viewTo)}o(Ps,"postUpdateDisplay");function zp(r,n){var u=new Nn(r,n);if(Up(r,u)){Ts(r),Ps(r,u);var a=bu(r);Cu(r),Ls(r,a),jp(r,a),u.finish()}}o(zp,"updateDisplaySimple");function e0(r,n,u){var a=r.display,c=r.options.lineNumbers,m=a.lineDiv,g=m.firstChild;function S(ee){var oe=ee.nextSibling;return _&&R&&r.display.currentWheelTarget==ee?ee.style.display="none":ee.parentNode.removeChild(ee),oe}o(S,"rm");for(var C=a.view,E=a.viewFrom,L=0;L-1&&(z=!1),Ff(r,A,E,u)),z&&(Ve(A.lineNumber),A.lineNumber.appendChild(document.createTextNode(nl(r.options,E)))),g=A.node.nextSibling}E+=A.size}for(;g;)g=S(g)}o(e0,"patchDisplay");function $p(r){var n=r.gutters.offsetWidth;r.sizer.style.marginLeft=n+"px",lr(r,"gutterChanged",r)}o($p,"updateGutterSpace");function jp(r,n){r.display.sizer.style.minHeight=n.docHeight+"px",r.display.heightForcer.style.top=n.docHeight+"px",r.display.gutters.style.height=n.docHeight+r.display.barHeight+Gr(r)+"px"}o(jp,"setDocumentHeight");function fm(r){var n=r.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!r.options.fixedGutter))){for(var a=sa(n)-n.scroller.scrollLeft+r.doc.scrollLeft,c=n.gutters.offsetWidth,m=a+"px",g=0;gg.clientWidth,C=g.scrollHeight>g.clientHeight;if(!!(a&&S||c&&C)){if(c&&R&&_){e:for(var E=n.target,L=m.view;E!=g;E=E.parentNode)for(var A=0;A=0&&Ue(r,a.to())<=0)return u}return-1};var vt=o(function(r,n){this.anchor=r,this.head=n},"Range");vt.prototype.from=function(){return ds(this.anchor,this.head)},vt.prototype.to=function(){return Uo(this.anchor,this.head)},vt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Zr(r,n,u){var a=r&&r.options.selectionsMayTouch,c=n[u];n.sort(function(j,z){return Ue(j.from(),z.from())}),u=it(n,c);for(var m=1;m0:C>=0){var E=ds(S.from(),g.from()),L=Uo(S.to(),g.to()),A=S.empty()?g.from()==g.head:S.from()==S.head;m<=u&&--u,n.splice(--m,2,new vt(A?L:E,A?E:L))}}return new li(n,u)}o(Zr,"normalizeSelection");function Ms(r,n){return new li([new vt(r,n||r)],0)}o(Ms,"simpleSelection");function As(r){return r.text?ae(r.from.line+r.text.length-1,we(r.text).length+(r.text.length==1?r.from.ch:0)):r.to}o(As,"changeEnd");function Ei(r,n){if(Ue(r,n.from)<0)return r;if(Ue(r,n.to)<=0)return As(n);var u=r.line+n.text.length-(n.to.line-n.from.line)-1,a=r.ch;return r.line==n.to.line&&(a+=As(n).ch-n.to.ch),ae(u,a)}o(Ei,"adjustForChange");function Vp(r,n){for(var u=[],a=0;a1&&r.remove(S.line+1,ee-1),r.insert(S.line+1,ve)}lr(r,"change",r,n)}o(qf,"updateDoc");function Ds(r,n,u){function a(c,m,g){if(c.linked)for(var S=0;S1&&!r.done[r.done.length-2].ranges)return r.done.pop(),we(r.done)}o(i0,"lastChangeEvent");function vo(r,n,u,a){var c=r.history;c.undone.length=0;var m=+new Date,g,S;if((c.lastOp==a||c.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&c.lastModTime>m-(r.cm?r.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(g=i0(c,c.lastOp==a)))S=we(g.changes),Ue(n.from,n.to)==0&&Ue(n.from,S.to)==0?S.to=As(n):g.changes.push(Yp(r,n));else{var C=we(c.done);for((!C||!C.ranges)&&Ln(r.sel,c.done),g={changes:[Yp(r,n)],generation:c.generation},c.done.push(g);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(u),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=m,c.lastOp=c.lastSelOp=a,c.lastOrigin=c.lastSelOrigin=n.origin,S||be(r,"historyAdded")}o(vo,"addChangeToHistory");function Qp(r,n,u,a){var c=n.charAt(0);return c=="*"||c=="+"&&u.ranges.length==a.ranges.length&&u.somethingSelected()==a.somethingSelected()&&new Date-r.history.lastSelTime<=(r.cm?r.cm.options.historyEventDelay:500)}o(Qp,"selectionEventCanBeMerged");function yl(r,n,u,a){var c=r.history,m=a&&a.origin;u==c.lastSelOp||m&&c.lastSelOrigin==m&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==m||Qp(r,m,we(c.done),n))?c.done[c.done.length-1]=n:Ln(n,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=m,c.lastSelOp=u,a&&a.clearRedo!==!1&&Xp(c.undone)}o(yl,"addSelectionToHistory");function Ln(r,n){var u=we(n);u&&u.ranges&&u.equals(r)||n.push(r)}o(Ln,"pushSelectionToHistory");function vm(r,n,u,a){var c=n["spans_"+r.id],m=0;r.iter(Math.max(r.first,u),Math.min(r.first+r.size,a),function(g){g.markedSpans&&((c||(c=n["spans_"+r.id]={}))[m]=g.markedSpans),++m})}o(vm,"attachLocalSpans");function gm(r){if(!r)return null;for(var n,u=0;u-1&&(we(S)[A]=E[A],delete E[A])}}return a}o(ai,"copyHistoryArray");function Kf(r,n,u,a){if(a){var c=r.anchor;if(u){var m=Ue(n,c)<0;m!=Ue(u,c)<0?(c=n,n=u):m!=Ue(n,u)<0&&(n=u)}return new vt(c,n)}else return new vt(u||n,n)}o(Kf,"extendRange");function Gf(r,n,u,a,c){c==null&&(c=r.cm&&(r.cm.display.shift||r.extend)),Br(r,new li([Kf(r.sel.primary(),n,u,c)],0),a)}o(Gf,"extendSelection");function Pu(r,n,u){for(var a=[],c=r.cm&&(r.cm.display.shift||r.extend),m=0;m=n.ch:S.to>n.ch))){if(c&&(be(C,"beforeCursorEnter"),C.explicitlyCleared))if(m.markedSpans){--g;continue}else break;if(!C.atomic)continue;if(u){var A=C.find(a<0?1:-1),j=void 0;if((a<0?L:E)&&(A=Qf(r,A,-a,A&&A.line==n.line?m:null)),A&&A.line==n.line&&(j=Ue(A,u))&&(a<0?j<0:j>0))return wl(r,A,n,a,c)}var z=C.find(a<0?-1:1);return(a<0?E:L)&&(z=Qf(r,z,a,z.line==n.line?m:null)),z?wl(r,z,n,a,c):null}}return n}o(wl,"skipAtomicInner");function Ur(r,n,u,a,c){var m=a||1,g=wl(r,n,u,m,c)||!c&&wl(r,n,u,m,!0)||wl(r,n,u,-m,c)||!c&&wl(r,n,u,-m,!0);return g||(r.cantEdit=!0,ae(r.first,0))}o(Ur,"skipAtomic");function Qf(r,n,u,a){return u<0&&n.ch==0?n.line>r.first?Be(r,ae(n.line-1)):null:u>0&&n.ch==(a||Le(r,n.line)).text.length?n.line=0;--c)Zf(r,{from:a[c].from,to:a[c].to,text:c?[""]:n.text,origin:n.origin});else Zf(r,n)}}o(ha,"makeChange");function Zf(r,n){if(!(n.text.length==1&&n.text[0]==""&&Ue(n.from,n.to)==0)){var u=Vp(r,n);vo(r,n,u,r.cm?r.cm.curOp.id:NaN),va(r,n,u,Lf(r,n));var a=[];Ds(r,function(c,m){!m&&it(a,c.history)==-1&&(Cm(c.history,n),a.push(c.history)),va(c,n,null,Lf(c,n))})}}o(Zf,"makeChangeInner");function Jf(r,n,u){var a=r.cm&&r.cm.state.suppressEdits;if(!(a&&!u)){for(var c=r.history,m,g=r.sel,S=n=="undo"?c.done:c.undone,C=n=="undo"?c.undone:c.done,E=0;E=0;--z){var ee=j(z);if(ee)return ee.v}}}}o(Jf,"makeChangeFromHistory");function ma(r,n){if(n!=0&&(r.first+=n,r.sel=new li(kr(r.sel.ranges,function(c){return new vt(ae(c.anchor.line+n,c.anchor.ch),ae(c.head.line+n,c.head.ch))}),r.sel.primIndex),r.cm)){Ye(r.cm,r.first,r.first-n,n);for(var u=r.cm.display,a=u.viewFrom;ar.lastLine())){if(n.from.linem&&(n={from:n.from,to:ae(m,Le(r,m).text.length),text:[n.text[0]],origin:n.origin}),n.removed=wi(r,n.from,n.to),u||(u=Vp(r,n)),r.cm?o0(r.cm,n,a):qf(r,n,a),ui(r,u,$t),r.cantEdit&&Ur(r,ae(r.firstLine(),0))&&(r.cantEdit=!1)}}o(va,"makeChangeSingleDoc");function o0(r,n,u){var a=r.doc,c=r.display,m=n.from,g=n.to,S=!1,C=m.line;r.options.lineWrapping||(C=dt(kn(Le(a,m.line))),a.iter(C,g.line+1,function(z){if(z==c.maxLine)return S=!0,!0})),a.sel.contains(n.from,n.to)>-1&&zl(r),qf(a,n,u,om(r)),r.options.lineWrapping||(a.iter(C,m.line+n.text.length,function(z){var ee=ys(z);ee>c.maxLineLength&&(c.maxLine=z,c.maxLineLength=ee,c.maxLineChanged=!0,S=!1)}),S&&(r.curOp.updateMaxLine=!0)),Np(a,m.line),ho(r,400);var E=n.text.length-(g.line-m.line)-1;n.full?Ye(r):m.line==g.line&&n.text.length==1&&!Gp(r.doc,n)?bs(r,m.line,"text"):Ye(r,m.line,g.line+1,E);var L=Ft(r,"changes"),A=Ft(r,"change");if(A||L){var j={from:m,to:g,text:n.text,removed:n.removed,origin:n.origin};A&&lr(r,"change",r,j),L&&(r.curOp.changeObjs||(r.curOp.changeObjs=[])).push(j)}r.display.selForContextMenu=null}o(o0,"makeChangeSingleDocInEditor");function ga(r,n,u,a,c){var m;a||(a=u),Ue(a,u)<0&&(m=[a,u],u=m[0],a=m[1]),typeof n=="string"&&(n=r.splitLines(n)),ha(r,{from:u,to:a,text:n,origin:c})}o(ga,"replaceRange");function ya(r,n,u,a){u1||!(this.children[0]instanceof wa))){var S=[];this.collapse(S),this.children=[new wa(S)],this.children[0].parent=this}},collapse:function(r){for(var n=0;n50){for(var g=c.lines.length%25+25,S=g;S10);r.parent.maybeSpill()}},iterN:function(r,n,u){for(var a=0;ar.display.maxLineLength&&(r.display.maxLine=E,r.display.maxLineLength=L,r.display.maxLineChanged=!0)}a!=null&&r&&this.collapsed&&Ye(r,a,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,r&&Mu(r.doc)),r&&lr(r,"markerCleared",r,this,a,c),n&&po(r),this.parent&&this.parent.clear()}},Rs.prototype.find=function(r,n){r==null&&this.type=="bookmark"&&(r=1);for(var u,a,c=0;c0||g==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=xt("span",[m.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(sl(r,n.line,n,u,m)||n.line!=u.line&&sl(r,u.line,n,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");We()}m.addToHistory&&vo(r,{from:n,to:u,origin:"markText"},r.sel,NaN);var S=n.line,C=r.cm,E;if(r.iter(S,u.line+1,function(A){C&&m.collapsed&&!C.options.lineWrapping&&kn(A)==C.display.maxLine&&(E=!0),m.collapsed&&S!=n.line&&xi(A,0),Se(A,new $o(m,S==n.line?n.ch:null,S==u.line?u.ch:null),r.cm&&r.cm.curOp),++S}),m.collapsed&&r.iter(n.line,u.line+1,function(A){Nt(r,A)&&xi(A,0)}),m.clearOnEnter&&H(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(M(),(r.history.done.length||r.history.undone.length)&&r.clearHistory()),m.collapsed&&(m.id=++ec,m.atomic=!0),C){if(E&&(C.curOp.updateMaxLine=!0),m.collapsed)Ye(C,n.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var L=n.line;L<=u.line;L++)bs(C,L,"text");m.atomic&&Mu(C.doc),lr(C,"markerAdded",C,m)}return m}o(Is,"markText");var xa=o(function(r,n){this.markers=r,this.primary=n;for(var u=0;u=0;C--)ha(this,a[C]);S?Yf(this,S):this.cm&&Os(this.cm)}),undo:T(function(){Jf(this,"undo")}),redo:T(function(){Jf(this,"redo")}),undoSelection:T(function(){Jf(this,"undo",!0)}),redoSelection:T(function(){Jf(this,"redo",!0)}),setExtending:function(r){this.extend=r},getExtending:function(){return this.extend},historySize:function(){for(var r=this.history,n=0,u=0,a=0;a=r.ch)&&n.push(c.marker.parent||c.marker)}return n},findMarks:function(r,n,u){r=Be(this,r),n=Be(this,n);var a=[],c=r.line;return this.iter(r.line,n.line+1,function(m){var g=m.markedSpans;if(g)for(var S=0;S=C.to||C.from==null&&c!=r.line||C.from!=null&&c==n.line&&C.from>=n.ch)&&(!u||u(C.marker))&&a.push(C.marker.parent||C.marker)}++c}),a},getAllMarks:function(){var r=[];return this.iter(function(n){var u=n.markedSpans;if(u)for(var a=0;ar)return n=r,!0;r-=m,++u}),Be(this,ae(u,n))},indexFromPos:function(r){r=Be(this,r);var n=r.ch;if(r.linen&&(n=r.from),r.to!=null&&r.to-1){n.state.draggingText(r),setTimeout(function(){return n.display.input.focus()},20);return}try{var L=r.dataTransfer.getData("Text");if(L){var A;if(n.state.draggingText&&!n.state.draggingText.copy&&(A=n.listSelections()),ui(n.doc,Ms(u,u)),A)for(var j=0;j=0;S--)ga(r.doc,"",a[S].from,a[S].to,"+delete");Os(r)})}o(fi,"deleteNearSelection");function Iu(r,n,u){var a=Ii(r.text,n+u,u);return a<0||a>r.text.length?null:a}o(Iu,"moveCharLogically");function ic(r,n,u){var a=Iu(r,n.ch,u);return a==null?null:new ae(n.line,a,u<0?"after":"before")}o(ic,"moveLogically");function Sa(r,n,u,a,c){if(r){n.doc.direction=="rtl"&&(c=-c);var m=Tn(u,n.doc.direction);if(m){var g=c<0?we(m):m[0],S=c<0==(g.level==1),C=S?"after":"before",E;if(g.level>0||n.doc.direction=="rtl"){var L=Ui(n,u);E=c<0?u.text.length-1:0;var A=ao(n,L,E).top;E=un(function(j){return ao(n,L,j).top==A},c<0==(g.level==1)?g.from:g.to-1,E),C=="before"&&(E=Iu(u,E,1))}else E=c<0?g.to:g.from;return new ae(a,E,C)}}return new ae(a,c<0?u.text.length:0,c<0?"before":"after")}o(Sa,"endOfLine");function Lm(r,n,u,a){var c=Tn(n,r.doc.direction);if(!c)return ic(n,u,a);u.ch>=n.text.length?(u.ch=n.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var m=gi(c,u.ch,u.sticky),g=c[m];if(r.doc.direction=="ltr"&&g.level%2==0&&(a>0?g.to>u.ch:g.from=g.from&&j>=L.begin)){var z=A?"before":"after";return new ae(u.line,j,z)}}var ee=o(function(ve,Ce,ge){for(var Te=o(function(bt,xr){return xr?new ae(u.line,S(bt,1),"before"):new ae(u.line,bt,"after")},"getRes");ve>=0&&ve0==(Re.level!=1),Je=De?ge.begin:S(ge.end,-1);if(Re.from<=Je&&Je0?L.end:S(L.begin,-1);return ce!=null&&!(a>0&&ce==n.text.length)&&(oe=ee(a>0?0:c.length-1,a,E(ce)),oe)?oe:null}o(Lm,"moveVisually");var Sl={selectAll:wm,singleSelection:function(r){return r.setSelection(r.getCursor("anchor"),r.getCursor("head"),$t)},killLine:function(r){return fi(r,function(n){if(n.empty()){var u=Le(r.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line0)c=new ae(c.line,c.ch+1),r.replaceRange(m.charAt(c.ch-1)+m.charAt(c.ch-2),ae(c.line,c.ch-2),c,"+transpose");else if(c.line>r.doc.first){var g=Le(r.doc,c.line-1).text;g&&(c=new ae(c.line,1),r.replaceRange(m.charAt(0)+r.doc.lineSeparator()+g.charAt(g.length-1),ae(c.line-1,g.length-1),c,"+transpose"))}}u.push(new vt(c,c))}r.setSelections(u)})},newlineAndIndent:function(r){return Xr(r,function(){for(var n=r.listSelections(),u=n.length-1;u>=0;u--)r.replaceRange(r.doc.lineSeparator(),n[u].anchor,n[u].head,"+input");n=r.listSelections();for(var a=0;ar&&Ue(n,this.pos)==0&&u==this.button};var zr,Vn;function p0(r,n){var u=+new Date;return Vn&&Vn.compare(u,r,n)?(zr=Vn=null,"triple"):zr&&zr.compare(u,r,n)?(Vn=new lc(u,r,n),zr=null,"double"):(zr=new lc(u,r,n),Vn=null,"single")}o(p0,"clickRepeat");function Fm(r){var n=this,u=n.display;if(!(Jt(n,r)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=r.shiftKey,mr(u,r)){_||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!cd(n,r)){var a=fo(n,r),c=Js(r),m=a?p0(a,c):"single";window.focus(),c==1&&n.state.selectingText&&n.state.selectingText(r),!(a&&ac(n,c,a,m,r))&&(c==1?a?Rm(n,a,m,r):yi(r)==u.scroller&&er(r):c==2?(a&&Gf(n.doc,a),setTimeout(function(){return u.input.focus()},20)):c==3&&(he?n.display.input.onContextMenu(r):Bf(n)))}}}o(Fm,"onMouseDown");function ac(r,n,u,a,c){var m="Click";return a=="double"?m="Double"+m:a=="triple"&&(m="Triple"+m),m=(n==1?"Left":n==2?"Middle":"Right")+m,Ca(r,id(m,c),c,function(g){if(typeof g=="string"&&(g=Sl[g]),!g)return!1;var S=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),S=g(r,u)!=zt}finally{r.state.suppressEdits=!1}return S})}o(ac,"handleMappedButton");function _a(r,n,u){var a=r.getOption("configureMouse"),c=a?a(r,n,u):{};if(c.unit==null){var m=K?u.shiftKey&&u.metaKey:u.altKey;c.unit=m?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(c.extend==null||r.doc.extend)&&(c.extend=r.doc.extend||u.shiftKey),c.addNew==null&&(c.addNew=R?u.metaKey:u.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(R?u.altKey:u.ctrlKey)),c}o(_a,"configureMouse");function Rm(r,n,u,a){p?setTimeout(Rr(Bp,r),0):r.curOp.focus=ze();var c=_a(r,u,a),m=r.doc.sel,g;r.options.dragDrop&&cs&&!r.isReadOnly()&&u=="single"&&(g=m.contains(n))>-1&&(Ue((g=m.ranges[g]).from(),n)<0||n.xRel>0)&&(Ue(g.to(),n)>0||n.xRel<0)?Im(r,a,n,c):Wm(r,a,n,c)}o(Rm,"leftButtonDown");function Im(r,n,u,a){var c=r.display,m=!1,g=rr(r,function(E){_&&(c.scroller.draggable=!1),r.state.draggingText=!1,r.state.delayingBlurEvent&&(r.hasFocus()?r.state.delayingBlurEvent=!1:Bf(r)),de(c.wrapper.ownerDocument,"mouseup",g),de(c.wrapper.ownerDocument,"mousemove",S),de(c.scroller,"dragstart",C),de(c.scroller,"drop",g),m||(er(E),a.addNew||Gf(r.doc,u,null,null,a.extend),_&&!B||p&&y==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),S=o(function(E){m=m||Math.abs(n.clientX-E.clientX)+Math.abs(n.clientY-E.clientY)>=10},"mouseMove"),C=o(function(){return m=!0},"dragStart");_&&(c.scroller.draggable=!0),r.state.draggingText=g,g.copy=!a.moveOnDrag,H(c.wrapper.ownerDocument,"mouseup",g),H(c.wrapper.ownerDocument,"mousemove",S),H(c.scroller,"dragstart",C),H(c.scroller,"drop",g),r.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}o(Im,"leftButtonStartDrag");function Hm(r,n,u){if(u=="char")return new vt(n,n);if(u=="word")return r.findWordAt(n);if(u=="line")return new vt(ae(n.line,0),Be(r.doc,ae(n.line+1,0)));var a=u(r,n);return new vt(a.from,a.to)}o(Hm,"rangeForUnit");function Wm(r,n,u,a){p&&Bf(r);var c=r.display,m=r.doc;er(n);var g,S,C=m.sel,E=C.ranges;if(a.addNew&&!a.extend?(S=m.sel.contains(u),S>-1?g=E[S]:g=new vt(u,u)):(g=m.sel.primary(),S=m.sel.primIndex),a.unit=="rectangle")a.addNew||(g=new vt(u,u)),u=fo(r,n,!0,!0),S=-1;else{var L=Hm(r,u,a.unit);a.extend?g=Kf(g,L.anchor,L.head,a.extend):g=L}a.addNew?S==-1?(S=E.length,Br(m,Zr(r,E.concat([g]),S),{scroll:!1,origin:"*mouse"})):E.length>1&&E[S].empty()&&a.unit=="char"&&!a.extend?(Br(m,Zr(r,E.slice(0,S).concat(E.slice(S+1)),0),{scroll:!1,origin:"*mouse"}),C=m.sel):Zp(m,S,g,ne):(S=0,Br(m,new li([g],0),ne),C=m.sel);var A=u;function j(ge){if(Ue(A,ge)!=0)if(A=ge,a.unit=="rectangle"){for(var Te=[],Re=r.options.tabSize,De=Ot(Le(m,u.line).text,u.ch,Re),Je=Ot(Le(m,ge.line).text,ge.ch,Re),bt=Math.min(De,Je),xr=Math.max(De,Je),Pt=Math.min(u.line,ge.line),mn=Math.min(r.lastLine(),Math.max(u.line,ge.line));Pt<=mn;Pt++){var vn=Le(m,Pt).text,ur=Tr(vn,bt,Re);bt==xr?Te.push(new vt(ae(Pt,ur),ae(Pt,ur))):vn.length>ur&&Te.push(new vt(ae(Pt,ur),ae(Pt,Tr(vn,xr,Re))))}Te.length||Te.push(new vt(u,u)),Br(m,Zr(r,C.ranges.slice(0,S).concat(Te),S),{origin:"*mouse",scroll:!1}),r.scrollIntoView(ge)}else{var $r=g,Lr=Hm(r,ge,a.unit),kt=$r.anchor,It;Ue(Lr.anchor,kt)>0?(It=Lr.head,kt=ds($r.from(),Lr.anchor)):(It=Lr.anchor,kt=Uo($r.to(),Lr.head));var nr=C.ranges.slice(0);nr[S]=Ea(r,new vt(Be(m,kt),It)),Br(m,Zr(r,nr,S),ne)}}o(j,"extendTo");var z=c.wrapper.getBoundingClientRect(),ee=0;function oe(ge){var Te=++ee,Re=fo(r,ge,!0,a.unit=="rectangle");if(!!Re)if(Ue(Re,A)!=0){r.curOp.focus=ze(),j(Re);var De=hl(c,m);(Re.line>=De.to||Re.linez.bottom?20:0;Je&&setTimeout(rr(r,function(){ee==Te&&(c.scroller.scrollTop+=Je,oe(ge))}),50)}}o(oe,"extend");function ce(ge){r.state.selectingText=!1,ee=Infinity,ge&&(er(ge),c.input.focus()),de(c.wrapper.ownerDocument,"mousemove",ve),de(c.wrapper.ownerDocument,"mouseup",Ce),m.history.lastSelOrigin=null}o(ce,"done");var ve=rr(r,function(ge){ge.buttons===0||!Js(ge)?ce(ge):oe(ge)}),Ce=rr(r,ce);r.state.selectingText=Ce,H(c.wrapper.ownerDocument,"mousemove",ve),H(c.wrapper.ownerDocument,"mouseup",Ce)}o(Wm,"leftButtonSelect");function Ea(r,n){var u=n.anchor,a=n.head,c=Le(r.doc,u.line);if(Ue(u,a)==0&&u.sticky==a.sticky)return n;var m=Tn(c);if(!m)return n;var g=gi(m,u.ch,u.sticky),S=m[g];if(S.from!=u.ch&&S.to!=u.ch)return n;var C=g+(S.from==u.ch==(S.level!=1)?0:1);if(C==0||C==m.length)return n;var E;if(a.line!=u.line)E=(a.line-u.line)*(r.doc.direction=="ltr"?1:-1)>0;else{var L=gi(m,a.ch,a.sticky),A=L-g||(a.ch-u.ch)*(S.level==1?-1:1);L==C-1||L==C?E=A<0:E=A>0}var j=m[C+(E?-1:0)],z=E==(j.level==1),ee=z?j.from:j.to,oe=z?"after":"before";return u.ch==ee&&u.sticky==oe?n:new vt(new ae(u.line,ee,oe),a)}o(Ea,"bidiSimplify");function ba(r,n,u,a){var c,m;if(n.touches)c=n.touches[0].clientX,m=n.touches[0].clientY;else try{c=n.clientX,m=n.clientY}catch(j){return!1}if(c>=Math.floor(r.display.gutters.getBoundingClientRect().right))return!1;a&&er(n);var g=r.display,S=g.lineDiv.getBoundingClientRect();if(m>S.bottom||!Ft(r,u))return fs(n);m-=S.top-g.viewOffset;for(var C=0;C=c){var L=Hi(r.doc,m),A=r.display.gutterSpecs[C];return be(r,u,r,L,A.className,n),fs(n)}}}o(ba,"gutterEvent");function cd(r,n){return ba(r,n,"gutterClick",!0)}o(cd,"clickInGutter");function pd(r,n){mr(r.display,n)||Bm(r,n)||Jt(r,n,"contextmenu")||he||r.display.input.onContextMenu(n)}o(pd,"onContextMenu");function Bm(r,n){return Ft(r,"gutterContextMenu")?ba(r,n,"gutterContextMenu",!1):!1}o(Bm,"contextMenuInGutter");function Hu(r){r.display.wrapper.className=r.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+r.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Su(r)}o(Hu,"themeChanged");var Cl={toString:function(){return"CodeMirror.Init"}},Wu={},Ta={};function uc(r){var n=r.optionHandlers;function u(a,c,m,g){r.defaults[a]=c,m&&(n[a]=g?function(S,C,E){E!=Cl&&m(S,C,E)}:m)}o(u,"option"),r.defineOption=u,r.Init=Cl,u("value","",function(a,c){return a.setValue(c)},!0),u("mode",null,function(a,c){a.doc.modeOption=c,Kp(a)},!0),u("indentUnit",2,Kp,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(a){Nu(a),Su(a),Ye(a)},!0),u("lineSeparator",null,function(a,c){if(a.doc.lineSep=c,!!c){var m=[],g=a.doc.first;a.doc.iter(function(C){for(var E=0;;){var L=C.text.indexOf(c,E);if(L==-1)break;E=L+c.length,m.push(ae(g,L))}g++});for(var S=m.length-1;S>=0;S--)ga(a.doc,c,m[S],ae(m[S].line,m[S].ch+c.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,c,m){a.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),m!=Cl&&a.refresh()}),u("specialCharPlaceholder",On,function(a){return a.refresh()},!0),u("electricChars",!0),u("inputStyle",P?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(a,c){return a.getInputField().spellcheck=c},!0),u("autocorrect",!1,function(a,c){return a.getInputField().autocorrect=c},!0),u("autocapitalize",!1,function(a,c){return a.getInputField().autocapitalize=c},!0),u("rtlMoveVisually",!V),u("wholeLineUpdateBefore",!0),u("theme","default",function(a){Hu(a),Ou(a)},!0),u("keyMap","default",function(a,c,m){var g=dn(c),S=m!=Cl&&dn(m);S&&S.detach&&S.detach(a,g),g.attach&&g.attach(a,S||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Um,!0),u("gutters",[],function(a,c){a.display.gutterSpecs=qp(c,a.options.lineNumbers),Ou(a)},!0),u("fixedGutter",!0,function(a,c){a.display.gutters.style.left=c?sa(a.display)+"px":"0",a.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(a){return Ls(a)},!0),u("scrollbarStyle","native",function(a){vl(a),Ls(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),u("lineNumbers",!1,function(a,c){a.display.gutterSpecs=qp(a.options.gutters,c),Ou(a)},!0),u("firstLineNumber",1,Ou,!0),u("lineNumberFormatter",function(a){return a},Ou,!0),u("showCursorWhenSelecting",!1,Cu,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(a,c){c=="nocursor"&&(dl(a),a.display.input.blur()),a.display.input.readOnlyChanged(c)}),u("screenReaderLabel",null,function(a,c){c=c===""?null:c,a.display.input.screenReaderLabelChanged(c)}),u("disableInput",!1,function(a,c){c||a.display.input.reset()},!0),u("dragDrop",!0,d0),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Cu,!0),u("singleCursorHeightPerLine",!0,Cu,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Nu,!0),u("addModeClass",!1,Nu,!0),u("pollInterval",100),u("undoDepth",200,function(a,c){return a.doc.history.undoDepth=c}),u("historyEventDelay",1250),u("viewportMargin",10,function(a){return a.refresh()},!0),u("maxHighlightLength",1e4,Nu,!0),u("moveInputWithCursor",!0,function(a,c){c||a.display.input.resetPosition()}),u("tabindex",null,function(a,c){return a.display.input.getField().tabIndex=c||""}),u("autofocus",null),u("direction","ltr",function(a,c){return a.doc.setDirection(c)},!0),u("phrases",null)}o(uc,"defineOptions");function d0(r,n,u){var a=u&&u!=Cl;if(!n!=!a){var c=r.display.dragFunctions,m=n?H:de;m(r.display.scroller,"dragstart",c.start),m(r.display.scroller,"dragenter",c.enter),m(r.display.scroller,"dragover",c.over),m(r.display.scroller,"dragleave",c.leave),m(r.display.scroller,"drop",c.drop)}}o(d0,"dragDropChanged");function Um(r){r.options.lineWrapping?(lt(r.display.wrapper,"CodeMirror-wrap"),r.display.sizer.style.minWidth="",r.display.sizerWidth=null):(xe(r.display.wrapper,"CodeMirror-wrap"),ll(r)),Es(r),Ye(r),Su(r),setTimeout(function(){return Ls(r)},100)}o(Um,"wrappingChanged");function Lt(r,n){var u=this;if(!(this instanceof Lt))return new Lt(r,n);this.options=n=n?Kt(n):{},Kt(Wu,n,!1);var a=n.value;typeof a=="string"?a=new pn(a,n.mode,null,n.lineSeparator,n.direction):n.mode&&(a.modeOption=n.mode),this.doc=a;var c=new Lt.inputStyles[n.inputStyle](this),m=this.display=new t0(r,a,c,n);m.wrapper.CodeMirror=this,Hu(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new St,keySeq:null,specialChars:null},n.autofocus&&!P&&m.input.focus(),p&&y<11&&setTimeout(function(){return u.display.input.reset(!0)},20),zm(this),nd(),$i(this),this.curOp.forceUpdate=!0,mm(this,a),n.autofocus&&!P||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&aa(u)},20):dl(this);for(var g in Ta)Ta.hasOwnProperty(g)&&Ta[g](this,n[g],Cl);mo(this),n.finishInit&&n.finishInit(this);for(var S=0;S20*20}o(g,"farAway"),H(n.scroller,"touchstart",function(C){if(!Jt(r,C)&&!m(C)&&!cd(r,C)){n.input.ensurePolled(),clearTimeout(u);var E=+new Date;n.activeTouch={start:E,moved:!1,prev:E-a.end<=300?a:null},C.touches.length==1&&(n.activeTouch.left=C.touches[0].pageX,n.activeTouch.top=C.touches[0].pageY)}}),H(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),H(n.scroller,"touchend",function(C){var E=n.activeTouch;if(E&&!mr(n,C)&&E.left!=null&&!E.moved&&new Date-E.start<300){var L=r.coordsChar(n.activeTouch,"page"),A;!E.prev||g(E,E.prev)?A=new vt(L,L):!E.prev.prev||g(E,E.prev.prev)?A=r.findWordAt(L):A=new vt(ae(L.line,0),Be(r.doc,ae(L.line+1,0))),r.setSelection(A.anchor,A.head),r.focus(),er(C)}c()}),H(n.scroller,"touchcancel",c),H(n.scroller,"scroll",function(){n.scroller.clientHeight&&(tr(r,n.scroller.scrollTop),ml(r,n.scroller.scrollLeft,!0),be(r,"scroll",r))}),H(n.scroller,"mousewheel",function(C){return dm(r,C)}),H(n.scroller,"DOMMouseScroll",function(C){return dm(r,C)}),H(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(C){Jt(r,C)||no(C)},over:function(C){Jt(r,C)||(td(r,C),no(C))},start:function(C){return l0(r,C)},drop:rr(r,Om),leave:function(C){Jt(r,C)||rd(r)}};var S=n.input.getField();H(S,"keyup",function(C){return fd.call(r,C)}),H(S,"keydown",rr(r,Pm)),H(S,"keypress",rr(r,Am)),H(S,"focus",function(C){return aa(r,C)}),H(S,"blur",function(C){return dl(r,C)})}o(zm,"registerEventHandlers");var Bu=[];Lt.defineInitHook=function(r){return Bu.push(r)};function Uu(r,n,u,a){var c=r.doc,m;u==null&&(u="add"),u=="smart"&&(c.mode.indent?m=hs(r,n).state:u="prev");var g=r.options.tabSize,S=Le(c,n),C=Ot(S.text,null,g);S.stateAfter&&(S.stateAfter=null);var E=S.text.match(/^\s*/)[0],L;if(!a&&!/\S/.test(S.text))L=0,u="not";else if(u=="smart"&&(L=c.mode.indent(m,S.text.slice(E.length),S.text),L==zt||L>150)){if(!a)return;u="prev"}u=="prev"?n>c.first?L=Ot(Le(c,n-1).text,null,g):L=0:u=="add"?L=C+r.options.indentUnit:u=="subtract"?L=C-r.options.indentUnit:typeof u=="number"&&(L=C+u),L=Math.max(0,L);var A="",j=0;if(r.options.indentWithTabs)for(var z=Math.floor(L/g);z;--z)j+=g,A+=" ";if(jg,C=tl(n),E=null;if(S&&a.ranges.length>1)if(Ti&&Ti.text.join(` +`)==n){if(a.ranges.length%Ti.text.length==0){E=[];for(var L=0;L=0;j--){var z=a.ranges[j],ee=z.from(),oe=z.to();z.empty()&&(u&&u>0?ee=ae(ee.line,ee.ch-u):r.state.overwrite&&!S?oe=ae(oe.line,Math.min(Le(m,oe.line).text.length,oe.ch+we(C).length)):S&&Ti&&Ti.lineWise&&Ti.text.join(` `)==C.join(` -`)&&(Z=ne=le(Z.line,0)));var ae={from:Z,to:ne,text:E?E[q%E.length]:C,origin:c||(S?"paste":r.state.cutIncoming>g?"cut":"+input")};su(r.doc,ae),qt(r,"inputRead",r,ae)}n&&!S&&Bv(r,n),ps(r),r.curOp.updateInput<2&&(r.curOp.updateInput=D),r.curOp.typing=!0,r.state.pasteIncoming=r.state.cutIncoming=-1}o(ac,"applyTextInput");function md(r,n){var u=r.clipboardData&&r.clipboardData.getData("Text");if(u)return r.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Dr(n,function(){return ac(n,u,0,null,"paste")}),!0}o(md,"handlePaste");function Bv(r,n){if(!(!r.options.electricChars||!r.options.smartIndent))for(var u=r.doc.sel,l=u.ranges.length-1;l>=0;l--){var c=u.ranges[l];if(!(c.head.ch>100||l&&u.ranges[l-1].head.line==c.head.line)){var v=r.getModeAt(c.head),g=!1;if(v.electricChars){for(var S=0;S-1){g=Ra(r,c.head.line,"smart");break}}else v.electricInput&&v.electricInput.test(_e(r.doc,c.head.line).text.slice(0,c.head.ch))&&(g=Ra(r,c.head.line,"smart"));g&&qt(r,"electricInput",r,c.head.line)}}}o(Bv,"triggerElectric");function gd(r){for(var n=[],u=[],l=0;lv&&(Ra(this,S.head.line,l,!0),v=S.head.line,g==this.doc.sel.primIndex&&ps(this));else{var C=S.from(),E=S.to(),P=Math.max(v,C.line);v=Math.min(this.lastLine(),E.line-(E.ch?0:1))+1;for(var D=P;D0&&td(this.doc,g,new ut(C,q[g].to()),Mt)}}}),getTokenAt:function(l,c){return zl(this,l,c)},getLineTokens:function(l,c){return zl(this,le(l),c,!0)},getTokenTypeAt:function(l){l=De(this.doc,l);var c=ua(this,_e(this.doc,l.line)),v=0,g=(c.length-1)/2,S=l.ch,C;if(S==0)C=c[2];else for(;;){var E=v+g>>1;if((E?c[E*2-1]:0)>=S)g=E;else if(c[E*2+1]C&&(l=C,g=!0),S=_e(this.doc,l)}else S=l;return Wf(this,S,{top:0,left:0},c||"page",v||g).top+(g?this.doc.height-Er(S):0)},defaultTextHeight:function(){return ls(this.display)},defaultCharWidth:function(){return Ql(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,c,v,g,S){var C=this.display;l=ki(this,De(this.doc,l));var E=l.bottom,P=l.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),C.sizer.appendChild(c),g=="over")E=l.top;else if(g=="above"||g=="near"){var D=Math.max(C.wrapper.clientHeight,this.doc.height),q=Math.max(C.sizer.clientWidth,C.lineSpace.clientWidth);(g=="above"||l.bottom+c.offsetHeight>D)&&l.top>c.offsetHeight?E=l.top-c.offsetHeight:l.bottom+c.offsetHeight<=D&&(E=l.bottom),P+c.offsetWidth>q&&(P=q-c.offsetWidth)}c.style.top=E+"px",c.style.left=c.style.right="",S=="right"?(P=C.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(S=="left"?P=0:S=="middle"&&(P=(C.sizer.clientWidth-c.offsetWidth)/2),c.style.left=P+"px"),v&&By(this,{left:P,top:E,right:P+c.offsetWidth,bottom:E+c.offsetHeight})},triggerOnKeyDown:Ir(Nv),triggerOnKeyPress:Ir(Pv),triggerOnKeyUp:dd,triggerOnMouseDown:Ir(Av),execCommand:function(l){if(ol.hasOwnProperty(l))return ol[l].call(null,this)},triggerElectric:Ir(function(l){Bv(this,l)}),findPosH:function(l,c,v,g){var S=1;c<0&&(S=-1,c=-c);for(var C=De(this.doc,l),E=0;E0&&P(v.charAt(g-1));)--g;for(;S.5||this.options.lineWrapping)&&us(this),Lt(this,"refresh",this)}),swapDoc:Ir(function(l){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),dv(this,l),ga(this),this.display.input.reset(),xa(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,qt(this,"swapDoc",this,c),c}),phrase:function(l){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,l)?c[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},xo(r),r.registerHelper=function(l,c,v){u.hasOwnProperty(l)||(u[l]=r[l]={_global:[]}),u[l][c]=v},r.registerGlobalHelper=function(l,c,v,g){r.registerHelper(l,c,g),u[l]._global.push({pred:v,val:g})}}o(Ao,"addEditorMethods");function Wa(r,n,u,l,c){var v=n,g=u,S=_e(r,n.line),C=c&&r.direction=="rtl"?-u:u;function E(){var ge=n.line+C;return ge=r.first+r.size?!1:(n=new le(ge,n.ch,n.sticky),S=_e(r,ge))}o(E,"findNextLine");function P(ge){var de;if(l=="codepoint"){var we=S.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(we))de=null;else{var Le=u>0?we>=55296&&we<56320:we>=56320&&we<57343;de=new le(n.line,Math.max(0,Math.min(S.text.length,n.ch+u*(Le?2:1))),-u)}}else c?de=kv(r.cm,S,n,u):de=nc(S,n,u);if(de==null)if(!ge&&E())n=du(c,r.cm,S,n.line,C);else return!1;else n=de;return!0}if(o(P,"moveOnce"),l=="char"||l=="codepoint")P();else if(l=="column")P(!0);else if(l=="word"||l=="group")for(var D=null,q=l=="group",B=r.cm&&r.cm.getHelper(n,"wordChars"),Z=!0;!(u<0&&!P(!Z));Z=!1){var ne=S.text.charAt(n.ch)||` -`,ae=cn(ne,B)?"w":q&&ne==` -`?"n":!q||/\s/.test(ne)?null:"p";if(q&&!Z&&!ae&&(ae="s"),D&&D!=ae){u<0&&(u=1,P(),n.sticky="after");break}if(ae&&(D=ae),u>0&&!P(!Z))break}var pe=Tr(r,n,v,g,!0);return Rl(v,pe)&&(pe.hitSide=!0),pe}o(Wa,"findPosH");function fc(r,n,u,l){var c=r.doc,v=n.left,g;if(l=="page"){var S=Math.min(r.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),C=Math.max(S-.5*ls(r.display),3);g=(u>0?n.bottom:n.top)+u*C}else l=="line"&&(g=u>0?n.bottom+3:n.top-3);for(var E;E=$(r,v,g),!!E.outside;){if(u<0?g<=0:g>=c.height){E.hitSide=!0;break}g+=u*5}return E}o(fc,"findPosV");var at=o(function(r){this.cm=r,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new mt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null},"ContentEditableInput");at.prototype.init=function(r){var n=this,u=this,l=u.cm,c=u.div=r.lineDiv;c.contentEditable=!0,zv(c,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function v(S){for(var C=S.target;C;C=C.parentNode){if(C==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(C.className))break}return!1}o(v,"belongsToInput"),Ne(c,"paste",function(S){!v(S)||Zt(l,S)||md(S,l)||w<=11&&setTimeout(Ht(l,function(){return n.updateFromDOM()}),20)}),Ne(c,"compositionstart",function(S){n.composing={data:S.data,done:!1}}),Ne(c,"compositionupdate",function(S){n.composing||(n.composing={data:S.data,done:!1})}),Ne(c,"compositionend",function(S){n.composing&&(S.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),Ne(c,"touchstart",function(){return u.forceCompositionEnd()}),Ne(c,"input",function(){n.composing||n.readFromDOMSoon()});function g(S){if(!(!v(S)||Zt(l,S))){if(l.somethingSelected())pi({lineWise:!1,text:l.getSelections()}),S.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var C=gd(l);pi({lineWise:!0,text:C.text}),S.type=="cut"&&l.operation(function(){l.setSelections(C.ranges,0,Mt),l.replaceSelection("",null,"cut")})}else return;if(S.clipboardData){S.clipboardData.clearData();var E=ci.text.join(` -`);if(S.clipboardData.setData("Text",E),S.clipboardData.getData("Text")==E){S.preventDefault();return}}var P=jv(),D=P.firstChild;l.display.lineSpace.insertBefore(P,l.display.lineSpace.firstChild),D.value=ci.text.join(` -`);var q=rt();lt(D),setTimeout(function(){l.display.lineSpace.removeChild(P),q.focus(),q==c&&u.showPrimarySelection()},50)}}o(g,"onCopyCut"),Ne(c,"copy",g),Ne(c,"cut",g)},at.prototype.screenReaderLabelChanged=function(r){r?this.div.setAttribute("aria-label",r):this.div.removeAttribute("aria-label")},at.prototype.prepareSelection=function(){var r=wa(this.cm,!1);return r.focus=rt()==this.div,r},at.prototype.showSelection=function(r,n){!r||!this.cm.display.view.length||((r.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(r))},at.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},at.prototype.showPrimarySelection=function(){var r=this.getSelection(),n=this.cm,u=n.doc.sel.primary(),l=u.from(),c=u.to();if(n.display.viewTo==n.display.viewFrom||l.line>=n.display.viewTo||c.line=n.display.viewFrom&&Ha(n,l)||{node:S[0].measure.map[2],offset:0},E=c.liner.firstLine()&&(l=le(l.line-1,_e(r.doc,l.line-1).length)),c.ch==_e(r.doc,c.line).text.length&&c.linen.viewTo-1)return!1;var v,g,S;l.line==n.viewFrom||(v=Gi(r,l.line))==0?(g=it(n.view[0].line),S=n.view[0].node):(g=it(n.view[v].line),S=n.view[v-1].node.nextSibling);var C=Gi(r,c.line),E,P;if(C==n.view.length-1?(E=n.viewTo-1,P=n.lineDiv.lastChild):(E=it(n.view[C+1].line)-1,P=n.view[C+1].node.previousSibling),!S)return!1;for(var D=r.doc.splitLines(cc(r,S,P,g,E)),q=ii(r.doc,le(g,0),le(E,_e(r.doc,E).text.length));D.length>1&&q.length>1;)if(je(D)==je(q))D.pop(),q.pop(),E--;else if(D[0]==q[0])D.shift(),q.shift(),g++;else break;for(var B=0,Z=0,ne=D[0],ae=q[0],pe=Math.min(ne.length,ae.length);Bl.ch&&ge.charCodeAt(ge.length-Z-1)==de.charCodeAt(de.length-Z-1);)B--,Z++;D[D.length-1]=ge.slice(0,ge.length-Z).replace(/^\u200b+/,""),D[0]=D[0].slice(B).replace(/\u200b+$/,"");var Le=le(g,B),Oe=le(E,q.length?je(q).length-Z:0);if(D.length>1||D[0]||Ie(Le,Oe))return au(r.doc,D,Le,Oe,"+input"),!0},at.prototype.ensurePolled=function(){this.forceCompositionEnd()},at.prototype.reset=function(){this.forceCompositionEnd()},at.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},at.prototype.readFromDOMSoon=function(){var r=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(r.readDOMTimeout=null,r.composing)if(r.composing.done)r.composing=null;else return;r.updateFromDOM()},80))},at.prototype.updateFromDOM=function(){var r=this;(this.cm.isReadOnly()||!this.pollContent())&&Dr(this.cm,function(){return Be(r.cm)})},at.prototype.setUneditable=function(r){r.contentEditable="false"},at.prototype.onKeyPress=function(r){r.charCode==0||this.composing||(r.preventDefault(),this.cm.isReadOnly()||Ht(this.cm,ac)(this.cm,String.fromCharCode(r.charCode==null?r.keyCode:r.charCode),0))},at.prototype.readOnlyChanged=function(r){this.div.contentEditable=String(r!="nocursor")},at.prototype.onContextMenu=function(){},at.prototype.resetPosition=function(){},at.prototype.needsContentAttribute=!0;function Ha(r,n){var u=Bp(r,n.line);if(!u||u.hidden)return null;var l=_e(r.doc,n.line),c=Gs(u,l,n.line),v=$n(l,r.doc.direction),g="left";if(v){var S=wo(v,n.ch);g=S%2?"right":"left"}var C=If(c.map,n.ch,g);return C.offset=C.collapse=="right"?C.end:C.start,C}o(Ha,"posToDOM");function wu(r){for(var n=r;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}o(wu,"isInGutter");function Me(r,n){return n&&(r.bad=!0),r}o(Me,"badPos");function cc(r,n,u,l,c){var v="",g=!1,S=r.doc.lineSeparator(),C=!1;function E(B){return function(Z){return Z.id==B}}o(E,"recognizeMarker");function P(){g&&(v+=S,C&&(v+=S),g=C=!1)}o(P,"close");function D(B){B&&(P(),v+=B)}o(D,"addText");function q(B){if(B.nodeType==1){var Z=B.getAttribute("cm-text");if(Z){D(Z);return}var ne=B.getAttribute("cm-marker"),ae;if(ne){var pe=r.findMarks(le(l,0),le(c+1,0),E(+ne));pe.length&&(ae=pe[0].find(0))&&D(ii(r.doc,ae.from,ae.to).join(S));return}if(B.getAttribute("contenteditable")=="false")return;var ge=/^(pre|div|p|li|table|br)$/i.test(B.nodeName);if(!/^br$/i.test(B.nodeName)&&B.textContent.length==0)return;ge&&P();for(var de=0;de=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),Ne(c,"paste",function(g){Zt(l,g)||md(g,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function v(g){if(!Zt(l,g)){if(l.somethingSelected())pi({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var S=gd(l);pi({lineWise:!0,text:S.text}),g.type=="cut"?l.setSelections(S.ranges,null,Mt):(u.prevInput="",c.value=S.text.join(` -`),lt(c))}else return;g.type=="cut"&&(l.state.cutIncoming=+new Date)}}o(v,"prepareCopyCut"),Ne(c,"cut",v),Ne(c,"copy",v),Ne(r.scroller,"paste",function(g){if(!(er(r,g)||Zt(l,g))){if(!c.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var S=new Event("paste");S.clipboardData=g.clipboardData,c.dispatchEvent(S)}}),Ne(r.lineSpace,"selectstart",function(g){er(r,g)||Cr(g)}),Ne(c,"compositionstart",function(){var g=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:g,range:l.markText(g,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Ne(c,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},$t.prototype.createField=function(r){this.wrapper=jv(),this.textarea=this.wrapper.firstChild},$t.prototype.screenReaderLabelChanged=function(r){r?this.textarea.setAttribute("aria-label",r):this.textarea.removeAttribute("aria-label")},$t.prototype.prepareSelection=function(){var r=this.cm,n=r.display,u=r.doc,l=wa(r);if(r.options.moveInputWithCursor){var c=ki(r,u.sel.primary().head,"div"),v=n.wrapper.getBoundingClientRect(),g=n.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,c.top+g.top-v.top)),l.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,c.left+g.left-v.left))}return l},$t.prototype.showSelection=function(r){var n=this.cm,u=n.display;Ye(u.cursorDiv,r.cursors),Ye(u.selectionDiv,r.selection),r.teTop!=null&&(this.wrapper.style.top=r.teTop+"px",this.wrapper.style.left=r.teLeft+"px")},$t.prototype.reset=function(r){if(!(this.contextMenuPending||this.composing)){var n=this.cm;if(n.somethingSelected()){this.prevInput="";var u=n.getSelection();this.textarea.value=u,n.state.focused&<(this.textarea),d&&w>=9&&(this.hasSelection=u)}else r||(this.prevInput=this.textarea.value="",d&&w>=9&&(this.hasSelection=null))}},$t.prototype.getField=function(){return this.textarea},$t.prototype.supportsTouch=function(){return!1},$t.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!A||rt()!=this.textarea))try{this.textarea.focus()}catch(r){}},$t.prototype.blur=function(){this.textarea.blur()},$t.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$t.prototype.receivedFocus=function(){this.slowPoll()},$t.prototype.slowPoll=function(){var r=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){r.poll(),r.cm.state.focused&&r.slowPoll()})},$t.prototype.fastPoll=function(){var r=!1,n=this;n.pollingFast=!0;function u(){var l=n.poll();!l&&!r?(r=!0,n.polling.set(60,u)):(n.pollingFast=!1,n.slowPoll())}o(u,"p"),n.polling.set(20,u)},$t.prototype.poll=function(){var r=this,n=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!n.state.focused||Op(u)&&!l&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var c=u.value;if(c==l&&!n.somethingSelected())return!1;if(d&&w>=9&&this.hasSelection===c||W&&/[\uf700-\uf7ff]/.test(c))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var v=c.charCodeAt(0);if(v==8203&&!l&&(l="\u200B"),v==8666)return this.reset(),this.cm.execCommand("undo")}for(var g=0,S=Math.min(l.length,c.length);g1e3||c.indexOf(` -`)>-1?u.value=r.prevInput="":r.prevInput=c,r.composing&&(r.composing.range.clear(),r.composing.range=n.markText(r.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},$t.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$t.prototype.onKeyPress=function(){d&&w>=9&&(this.hasSelection=null),this.fastPoll()},$t.prototype.onContextMenu=function(r){var n=this,u=n.cm,l=u.display,c=n.textarea;n.contextMenuPending&&n.contextMenuPending();var v=Vi(u,r),g=l.scroller.scrollTop;if(!v||Y)return;var S=u.options.resetSelectionOnContextMenu;S&&u.doc.sel.contains(v)==-1&&Ht(u,br)(u.doc,ms(v),Mt);var C=c.style.cssText,E=n.wrapper.style.cssText,P=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px; - top: `+(r.clientY-P.top-5)+"px; left: "+(r.clientX-P.left-5)+`px; - z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;b&&(D=window.scrollY),l.input.focus(),b&&window.scrollTo(null,D),l.input.reset(),u.somethingSelected()||(c.value=n.prevInput=" "),n.contextMenuPending=B,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function q(){if(c.selectionStart!=null){var ne=u.somethingSelected(),ae="\u200B"+(ne?c.value:"");c.value="\u21DA",c.value=ae,n.prevInput=ne?"":"\u200B",c.selectionStart=1,c.selectionEnd=ae.length,l.selForContextMenu=u.doc.sel}}o(q,"prepareSelectAllHack");function B(){if(n.contextMenuPending==B&&(n.contextMenuPending=!1,n.wrapper.style.cssText=E,c.style.cssText=C,d&&w<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=g),c.selectionStart!=null)){(!d||d&&w<9)&&q();var ne=0,ae=o(function(){l.selForContextMenu==u.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&n.prevInput=="\u200B"?Ht(u,gv)(u):ne++<10?l.detectingSelectAll=setTimeout(ae,500):(l.selForContextMenu=null,l.input.reset())},"poll");l.detectingSelectAll=setTimeout(ae,200)}}if(o(B,"rehide"),d&&w>=9&&q(),ce){Rs(r);var Z=o(function(){Pr(window,"mouseup",Z),setTimeout(B,20)},"mouseup");Ne(window,"mouseup",Z)}else setTimeout(B,50)},$t.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},$t.prototype.setUneditable=function(){},$t.prototype.needsContentAttribute=!1;function yd(r,n){if(n=n?fr(n):{},n.value=r.value,!n.tabindex&&r.tabIndex&&(n.tabindex=r.tabIndex),!n.placeholder&&r.placeholder&&(n.placeholder=r.placeholder),n.autofocus==null){var u=rt();n.autofocus=u==r||r.getAttribute("autofocus")!=null&&u==document.body}function l(){r.value=S.getValue()}o(l,"save");var c;if(r.form&&(Ne(r.form,"submit",l),!n.leaveSubmitMethodAlone)){var v=r.form;c=v.submit;try{var g=v.submit=function(){l(),v.submit=c,v.submit(),v.submit=g}}catch(C){}}n.finishInit=function(C){C.save=l,C.getTextArea=function(){return r},C.toTextArea=function(){C.toTextArea=isNaN,l(),r.parentNode.removeChild(C.getWrapperElement()),r.style.display="",r.form&&(Pr(r.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=c))}},r.style.display="none";var S=xt(function(C){return r.parentNode.insertBefore(C,r.nextSibling)},n);return S}o(yd,"fromTextArea");function qv(r){r.off=Pr,r.on=Ne,r.wheelEventPixels=Qy,r.Doc=Gr,r.splitLines=Hs,r.countColumn=Nt,r.findColumn=_n,r.isWordChar=Qt,r.Pass=Pt,r.signal=Lt,r.Line=pr,r.changeEnd=gs,r.scrollbarModel=Bf,r.Pos=le,r.cmpPos=Ie,r.modes=Il,r.mimeModes=Xo,r.resolveMode=Us,r.getMode=oa,r.modeExtensions=So,r.extendMode=Lp,r.copyState=Co,r.startState=Tf,r.innerMode=Fl,r.commands=ol,r.keyMap=Po,r.keyName=ud,r.isModifierKey=rc,r.lookupKey=Mo,r.normalizeKeyMap=i0,r.StringStream=bt,r.SharedTextMarker=pu,r.TextMarker=xs,r.LineWidget=La,r.e_preventDefault=Cr,r.e_stopPropagation=ta,r.e_stop=Rs,r.addClass=nt,r.contains=vt,r.rmClass=ye,r.keyNames=Cs}o(qv,"addLegacyProps"),uc(xt),Ao(xt);var Yr="iter insert remove copy getEditor constructor".split(" ");for(var pc in Gr.prototype)Gr.prototype.hasOwnProperty(pc)&&Ze(Yr,pc)<0&&(xt.prototype[pc]=function(r){return function(){return r.apply(this.doc,arguments)}}(Gr.prototype[pc]));return xo(Gr),xt.inputStyles={textarea:$t,contenteditable:at},xt.defineMode=function(r){!xt.defaults.mode&&r!="null"&&(xt.defaults.mode=r),Np.apply(this,arguments)},xt.defineMIME=bf,xt.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),xt.defineMIME("text/plain","null"),xt.defineExtension=function(r,n){xt.prototype[r]=n},xt.defineDocExtension=function(r,n){Gr.prototype[r]=n},xt.fromTextArea=yd,qv(xt),xt.version="5.62.0",xt})});var IS=re(ke()),wN=re(Ms());var xh=re(ke()),UR=re(Hb());var Ub=re(ke()),Wn=Ub.default.createContext(null);function FI(e){e()}o(FI,"defaultNoopBatch");var Bb=FI,zb=o(function(t){return Bb=t},"setBatch"),jb=o(function(){return Bb},"getBatch");var qb={notify:o(function(){},"notify")};function RI(){var e=jb(),t=null,i=null;return{clear:o(function(){t=null,i=null},"clear"),notify:o(function(){e(function(){for(var p=t;p;)p.callback(),p=p.next})},"notify"),get:o(function(){for(var p=[],m=t;m;)p.push(m),m=m.next;return p},"get"),subscribe:o(function(p){var m=!0,d=i={callback:p,next:null,prev:i};return d.prev?d.prev.next=d:t=d,o(function(){!m||t===null||(m=!1,d.next?d.next.prev=d.prev:i=d.prev,d.prev?d.prev.next=d.next:t=d.next)},"unsubscribe")},"subscribe")}}o(RI,"createListenerCollection");var Xc=function(){function e(i,a){this.store=i,this.parentSub=a,this.unsubscribe=null,this.listeners=qb,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}o(e,"Subscription");var t=e.prototype;return t.addNestedSub=o(function(a){return this.trySubscribe(),this.listeners.subscribe(a)},"addNestedSub"),t.notifyNestedSubs=o(function(){this.listeners.notify()},"notifyNestedSubs"),t.handleChangeWrapper=o(function(){this.onStateChange&&this.onStateChange()},"handleChangeWrapper"),t.isSubscribed=o(function(){return Boolean(this.unsubscribe)},"isSubscribed"),t.trySubscribe=o(function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=RI())},"trySubscribe"),t.tryUnsubscribe=o(function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=qb)},"tryUnsubscribe"),e}();var pg=re(ke()),rf=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?pg.useLayoutEffect:pg.useEffect;function WI(e){var t=e.store,i=e.context,a=e.children,p=(0,xh.useMemo)(function(){var w=new Xc(t);return w.onStateChange=w.notifyNestedSubs,{store:t,subscription:w}},[t]),m=(0,xh.useMemo)(function(){return t.getState()},[t]);rf(function(){var w=p.subscription;return w.trySubscribe(),m!==t.getState()&&w.notifyNestedSubs(),function(){w.tryUnsubscribe(),w.onStateChange=null}},[p,m]);var d=i||Wn;return xh.default.createElement(d.Provider,{value:p},a)}o(WI,"Provider");var B1=WI;function ao(){return ao=Object.assign||function(e){for(var t=1;t=0)&&(i[p]=e[p]);return i}o($u,"_objectWithoutPropertiesLoose");var X1=re(tT()),jt=re(ke()),sT=re(oT());var rF=[],nF=[null,null];function iF(e,t){var i=e[1];return[t.payload,i+1]}o(iF,"storeStateUpdatesReducer");function lT(e,t,i){rf(function(){return e.apply(void 0,t)},i)}o(lT,"useIsomorphicLayoutEffectWithArgs");function oF(e,t,i,a,p,m,d){e.current=a,t.current=p,i.current=!1,m.current&&(m.current=null,d())}o(oF,"captureWrapperProps");function sF(e,t,i,a,p,m,d,w,b,L){if(!!e){var F=!1,Y=null,z=o(function(){if(!F){var J=t.getState(),I,A;try{I=a(J,p.current)}catch(W){A=W,Y=W}A||(Y=null),I===m.current?d.current||b():(m.current=I,w.current=I,d.current=!0,L({type:"STORE_UPDATED",payload:{error:A}}))}},"checkForUpdates");i.onStateChange=z,i.trySubscribe(),z();var X=o(function(){if(F=!0,i.tryUnsubscribe(),i.onStateChange=null,Y)throw Y},"unsubscribeWrapper");return X}}o(sF,"subscribeUpdates");var lF=o(function(){return[null,0]},"initStateUpdates");function Ag(e,t){t===void 0&&(t={});var i=t,a=i.getDisplayName,p=a===void 0?function(se){return"ConnectAdvanced("+se+")"}:a,m=i.methodName,d=m===void 0?"connectAdvanced":m,w=i.renderCountProp,b=w===void 0?void 0:w,L=i.shouldHandleStateChanges,F=L===void 0?!0:L,Y=i.storeKey,z=Y===void 0?"store":Y,X=i.withRef,ee=X===void 0?!1:X,J=i.forwardRef,I=J===void 0?!1:J,A=i.context,W=A===void 0?Wn:A,K=$u(i,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);if(!1)var V;var fe=W;return o(function(ce){var me=ce.displayName||ce.name||"Component",ye=p(me),ze=ao({},K,{getDisplayName:p,methodName:d,renderCountProp:b,shouldHandleStateChanges:F,storeKey:z,displayName:ye,wrappedComponentName:me,WrappedComponent:ce}),Ye=K.pure;function Se(nt){return e(nt.dispatch,ze)}o(Se,"createChildSelector");var Et=Ye?jt.useMemo:function(nt){return nt()};function Rt(nt){var Sr=(0,jt.useMemo)(function(){var $r=nt.reactReduxForwardedRef,Yo=$u(nt,["reactReduxForwardedRef"]);return[nt.context,$r,Yo]},[nt]),lt=Sr[0],jn=Sr[1],fr=Sr[2],Nt=(0,jt.useMemo)(function(){return lt&<.Consumer&&(0,sT.isContextConsumer)(jt.default.createElement(lt.Consumer,null))?lt:fe},[lt,fe]),mt=(0,jt.useContext)(Nt),Ze=Boolean(nt.store)&&Boolean(nt.store.getState)&&Boolean(nt.store.dispatch),Lr=Boolean(mt)&&Boolean(mt.store),Pt=Ze?nt.store:mt.store,Mt=(0,jt.useMemo)(function(){return Se(Pt)},[Pt]),qr=(0,jt.useMemo)(function(){if(!F)return nF;var $r=new Xc(Pt,Ze?null:mt.subscription),Yo=$r.notifyNestedSubs.bind($r);return[$r,Yo]},[Pt,Ze,mt]),cr=qr[0],_n=qr[1],En=(0,jt.useMemo)(function(){return Ze?mt:ao({},mt,{subscription:cr})},[Ze,mt,cr]),Xt=(0,jt.useReducer)(iF,rF,lF),je=Xt[0],bn=je[0],an=Xt[1];if(bn&&bn.error)throw bn.error;var qn=(0,jt.useRef)(),ni=(0,jt.useRef)(fr),fn=(0,jt.useRef)(),Qt=(0,jt.useRef)(!1),cn=Et(function(){return fn.current&&fr===ni.current?fn.current:Mt(Pt.getState(),fr)},[Pt,bn,fr]);lT(oF,[ni,qn,Qt,fr,cn,fn,_n]),lT(sF,[F,Pt,cr,Mt,ni,qn,Qt,fn,_n,an],[Pt,cr,Mt]);var Ci=(0,jt.useMemo)(function(){return jt.default.createElement(ce,ao({},cn,{ref:jn}))},[jn,ce,cn]),ea=(0,jt.useMemo)(function(){return F?jt.default.createElement(Nt.Provider,{value:En},Ci):Ci},[Nt,Ci,En]);return ea}o(Rt,"ConnectFunction");var vt=Ye?jt.default.memo(Rt):Rt;if(vt.WrappedComponent=ce,vt.displayName=Rt.displayName=ye,I){var rt=jt.default.forwardRef(o(function(Sr,lt){return jt.default.createElement(vt,ao({},Sr,{reactReduxForwardedRef:lt}))},"forwardConnectRef"));return rt.displayName=ye,rt.WrappedComponent=ce,(0,X1.default)(rt,ce)}return(0,X1.default)(vt,ce)},"wrapWithConnect")}o(Ag,"connectAdvanced");function uT(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}o(uT,"is");function Qc(e,t){if(uT(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var p=0;p=0;a--){var p=t[a](e);if(p)return p}return function(m,d){throw new Error("Invalid value of type "+typeof e+" for "+i+" argument when connecting component "+d.wrappedComponentName+".")}}o(J1,"match");function xF(e,t){return e===t}o(xF,"strictEqual");function SF(e){var t=e===void 0?{}:e,i=t.connectHOC,a=i===void 0?Ag:i,p=t.mapStateToPropsFactories,m=p===void 0?cT:p,d=t.mapDispatchToPropsFactories,w=d===void 0?fT:d,b=t.mergePropsFactories,L=b===void 0?pT:b,F=t.selectorFactory,Y=F===void 0?Z1:F;return o(function(X,ee,J,I){I===void 0&&(I={});var A=I,W=A.pure,K=W===void 0?!0:W,V=A.areStatesEqual,fe=V===void 0?xF:V,se=A.areOwnPropsEqual,ce=se===void 0?Qc:se,me=A.areStatePropsEqual,ye=me===void 0?Qc:me,ze=A.areMergedPropsEqual,Ye=ze===void 0?Qc:ze,Se=$u(A,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),Et=J1(X,m,"mapStateToProps"),Rt=J1(ee,w,"mapDispatchToProps"),vt=J1(J,L,"mergeProps");return a(Y,ao({methodName:"connect",getDisplayName:o(function(nt){return"Connect("+nt+")"},"getDisplayName"),shouldHandleStateChanges:Boolean(X),initMapStateToProps:Et,initMapDispatchToProps:Rt,initMergeProps:vt,pure:K,areStatesEqual:fe,areOwnPropsEqual:ce,areStatePropsEqual:ye,areMergedPropsEqual:Ye},Se))},"connect")}o(SF,"createConnect");var et=SF();var hT=re(ke());var dT=re(ke());function Ig(){var e=(0,dT.useContext)(Wn);return e}o(Ig,"useReduxContext");function Fg(e){e===void 0&&(e=Wn);var t=e===Wn?Ig:function(){return(0,hT.useContext)(e)};return o(function(){var a=t(),p=a.store;return p},"useStore")}o(Fg,"createStoreHook");var ex=Fg();function vT(e){e===void 0&&(e=Wn);var t=e===Wn?ex:Fg(e);return o(function(){var a=t();return a.dispatch},"useDispatch")}o(vT,"createDispatchHook");var xl=vT();var Wi=re(ke());var CF=o(function(t,i){return t===i},"refEquality");function _F(e,t,i,a){var p=(0,Wi.useReducer)(function(ee){return ee+1},0),m=p[1],d=(0,Wi.useMemo)(function(){return new Xc(i,a)},[i,a]),w=(0,Wi.useRef)(),b=(0,Wi.useRef)(),L=(0,Wi.useRef)(),F=(0,Wi.useRef)(),Y=i.getState(),z;try{if(e!==b.current||Y!==L.current||w.current){var X=e(Y);F.current===void 0||!t(X,F.current)?z=X:z=F.current}else z=F.current}catch(ee){throw w.current&&(ee.message+=` +`)&&(ee=oe=ae(ee.line,0)));var ce={from:ee,to:oe,text:E?E[j%E.length]:C,origin:c||(S?"paste":r.state.cutIncoming>g?"cut":"+input")};ha(r.doc,ce),lr(r,"inputRead",r,ce)}n&&!S&&$m(r,n),Os(r),r.curOp.updateInput<2&&(r.curOp.updateInput=A),r.curOp.typing=!0,r.state.pasteIncoming=r.state.cutIncoming=-1}o(fc,"applyTextInput");function dd(r,n){var u=r.clipboardData&&r.clipboardData.getData("Text");if(u)return r.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Xr(n,function(){return fc(n,u,0,null,"paste")}),!0}o(dd,"handlePaste");function $m(r,n){if(!(!r.options.electricChars||!r.options.smartIndent))for(var u=r.doc.sel,a=u.ranges.length-1;a>=0;a--){var c=u.ranges[a];if(!(c.head.ch>100||a&&u.ranges[a-1].head.line==c.head.line)){var m=r.getModeAt(c.head),g=!1;if(m.electricChars){for(var S=0;S-1){g=Uu(r,c.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(Le(r.doc,c.head.line).text.slice(0,c.head.ch))&&(g=Uu(r,c.head.line,"smart"));g&&lr(r,"electricInput",r,c.head.line)}}}o($m,"triggerElectric");function hd(r){for(var n=[],u=[],a=0;am&&(Uu(this,S.head.line,a,!0),m=S.head.line,g==this.doc.sel.primIndex&&Os(this));else{var C=S.from(),E=S.to(),L=Math.max(m,C.line);m=Math.min(this.lastLine(),E.line-(E.ch?0:1))+1;for(var A=L;A0&&Zp(this.doc,g,new vt(C,j[g].to()),$t)}}}),getTokenAt:function(a,c){return Xl(this,a,c)},getLineTokens:function(a,c){return Xl(this,ae(a),c,!0)},getTokenTypeAt:function(a){a=Be(this.doc,a);var c=pu(this,Le(this.doc,a.line)),m=0,g=(c.length-1)/2,S=a.ch,C;if(S==0)C=c[2];else for(;;){var E=m+g>>1;if((E?c[E*2-1]:0)>=S)g=E;else if(c[E*2+1]C&&(a=C,g=!0),S=Le(this.doc,a)}else S=a;return Wf(this,S,{top:0,left:0},c||"page",m||g).top+(g?this.doc.height-Wr(S):0)},defaultTextHeight:function(){return _s(this.display)},defaultCharWidth:function(){return oa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,c,m,g,S){var C=this.display;a=zi(this,Be(this.doc,a));var E=a.bottom,L=a.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),C.sizer.appendChild(c),g=="over")E=a.top;else if(g=="above"||g=="near"){var A=Math.max(C.wrapper.clientHeight,this.doc.height),j=Math.max(C.sizer.clientWidth,C.lineSpace.clientWidth);(g=="above"||a.bottom+c.offsetHeight>A)&&a.top>c.offsetHeight?E=a.top-c.offsetHeight:a.bottom+c.offsetHeight<=A&&(E=a.bottom),L+c.offsetWidth>j&&(L=j-c.offsetWidth)}c.style.top=E+"px",c.style.left=c.style.right="",S=="right"?(L=C.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(S=="left"?L=0:S=="middle"&&(L=(C.sizer.clientWidth-c.offsetWidth)/2),c.style.left=L+"px"),m&&Vy(this,{left:L,top:E,right:L+c.offsetWidth,bottom:E+c.offsetHeight})},triggerOnKeyDown:Qr(Pm),triggerOnKeyPress:Qr(Am),triggerOnKeyUp:fd,triggerOnMouseDown:Qr(Fm),execCommand:function(a){if(Sl.hasOwnProperty(a))return Sl[a].call(null,this)},triggerElectric:Qr(function(a){$m(this,a)}),findPosH:function(a,c,m,g){var S=1;c<0&&(S=-1,c=-c);for(var C=Be(this.doc,a),E=0;E0&&L(m.charAt(g-1));)--g;for(;S.5||this.options.lineWrapping)&&Es(this),be(this,"refresh",this)}),swapDoc:Qr(function(a){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),mm(this,a),Su(this),this.display.input.reset(),Eu(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,lr(this,"swapDoc",this,c),c}),phrase:function(a){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,a)?c[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ir(r),r.registerHelper=function(a,c,m){u.hasOwnProperty(a)||(u[a]=r[a]={_global:[]}),u[a][c]=m},r.registerGlobalHelper=function(a,c,m,g){r.registerHelper(a,c,g),u[a]._global.push({pred:m,val:g})}}o(Xo,"addEditorMethods");function zu(r,n,u,a,c){var m=n,g=u,S=Le(r,n.line),C=c&&r.direction=="rtl"?-u:u;function E(){var Ce=n.line+C;return Ce=r.first+r.size?!1:(n=new ae(Ce,n.ch,n.sticky),S=Le(r,Ce))}o(E,"findNextLine");function L(Ce){var ge;if(a=="codepoint"){var Te=S.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(Te))ge=null;else{var Re=u>0?Te>=55296&&Te<56320:Te>=56320&&Te<57343;ge=new ae(n.line,Math.max(0,Math.min(S.text.length,n.ch+u*(Re?2:1))),-u)}}else c?ge=Lm(r.cm,S,n,u):ge=ic(S,n,u);if(ge==null)if(!Ce&&E())n=Sa(c,r.cm,S,n.line,C);else return!1;else n=ge;return!0}if(o(L,"moveOnce"),a=="char"||a=="codepoint")L();else if(a=="column")L(!0);else if(a=="word"||a=="group")for(var A=null,j=a=="group",z=r.cm&&r.cm.getHelper(n,"wordChars"),ee=!0;!(u<0&&!L(!ee));ee=!1){var oe=S.text.charAt(n.ch)||` +`,ce=dr(oe,z)?"w":j&&oe==` +`?"n":!j||/\s/.test(oe)?null:"p";if(j&&!ee&&!ce&&(ce="s"),A&&A!=ce){u<0&&(u=1,L(),n.sticky="after");break}if(ce&&(A=ce),u>0&&!L(!ee))break}var ve=Ur(r,n,m,g,!0);return ql(m,ve)&&(ve.hitSide=!0),ve}o(zu,"findPosH");function cc(r,n,u,a){var c=r.doc,m=n.left,g;if(a=="page"){var S=Math.min(r.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),C=Math.max(S-.5*_s(r.display),3);g=(u>0?n.bottom:n.top)+u*C}else a=="line"&&(g=u>0?n.bottom+3:n.top-3);for(var E;E=q(r,m,g),!!E.outside;){if(u<0?g<=0:g>=c.height){E.hitSide=!0;break}g+=u*5}return E}o(cc,"findPosV");var gt=o(function(r){this.cm=r,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new St,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null},"ContentEditableInput");gt.prototype.init=function(r){var n=this,u=this,a=u.cm,c=u.div=r.lineDiv;c.contentEditable=!0,jm(c,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function m(S){for(var C=S.target;C;C=C.parentNode){if(C==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(C.className))break}return!1}o(m,"belongsToInput"),H(c,"paste",function(S){!m(S)||Jt(a,S)||dd(S,a)||y<=11&&setTimeout(rr(a,function(){return n.updateFromDOM()}),20)}),H(c,"compositionstart",function(S){n.composing={data:S.data,done:!1}}),H(c,"compositionupdate",function(S){n.composing||(n.composing={data:S.data,done:!1})}),H(c,"compositionend",function(S){n.composing&&(S.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),H(c,"touchstart",function(){return u.forceCompositionEnd()}),H(c,"input",function(){n.composing||n.readFromDOMSoon()});function g(S){if(!(!m(S)||Jt(a,S))){if(a.somethingSelected())ki({lineWise:!1,text:a.getSelections()}),S.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var C=hd(a);ki({lineWise:!0,text:C.text}),S.type=="cut"&&a.operation(function(){a.setSelections(C.ranges,0,$t),a.replaceSelection("",null,"cut")})}else return;if(S.clipboardData){S.clipboardData.clearData();var E=Ti.text.join(` +`);if(S.clipboardData.setData("Text",E),S.clipboardData.getData("Text")==E){S.preventDefault();return}}var L=qm(),A=L.firstChild;a.display.lineSpace.insertBefore(L,a.display.lineSpace.firstChild),A.value=Ti.text.join(` +`);var j=ze();at(A),setTimeout(function(){a.display.lineSpace.removeChild(L),j.focus(),j==c&&u.showPrimarySelection()},50)}}o(g,"onCopyCut"),H(c,"copy",g),H(c,"cut",g)},gt.prototype.screenReaderLabelChanged=function(r){r?this.div.setAttribute("aria-label",r):this.div.removeAttribute("aria-label")},gt.prototype.prepareSelection=function(){var r=_u(this.cm,!1);return r.focus=ze()==this.div,r},gt.prototype.showSelection=function(r,n){!r||!this.cm.display.view.length||((r.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(r))},gt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},gt.prototype.showPrimarySelection=function(){var r=this.getSelection(),n=this.cm,u=n.doc.sel.primary(),a=u.from(),c=u.to();if(n.display.viewTo==n.display.viewFrom||a.line>=n.display.viewTo||c.line=n.display.viewFrom&&$u(n,a)||{node:S[0].measure.map[2],offset:0},E=c.liner.firstLine()&&(a=ae(a.line-1,Le(r.doc,a.line-1).length)),c.ch==Le(r.doc,c.line).text.length&&c.linen.viewTo-1)return!1;var m,g,S;a.line==n.viewFrom||(m=co(r,a.line))==0?(g=dt(n.view[0].line),S=n.view[0].node):(g=dt(n.view[m].line),S=n.view[m-1].node.nextSibling);var C=co(r,c.line),E,L;if(C==n.view.length-1?(E=n.viewTo-1,L=n.lineDiv.lastChild):(E=dt(n.view[C+1].line)-1,L=n.view[C+1].node.previousSibling),!S)return!1;for(var A=r.doc.splitLines(pc(r,S,L,g,E)),j=wi(r.doc,ae(g,0),ae(E,Le(r.doc,E).text.length));A.length>1&&j.length>1;)if(we(A)==we(j))A.pop(),j.pop(),E--;else if(A[0]==j[0])A.shift(),j.shift(),g++;else break;for(var z=0,ee=0,oe=A[0],ce=j[0],ve=Math.min(oe.length,ce.length);za.ch&&Ce.charCodeAt(Ce.length-ee-1)==ge.charCodeAt(ge.length-ee-1);)z--,ee++;A[A.length-1]=Ce.slice(0,Ce.length-ee).replace(/^\u200b+/,""),A[0]=A[0].slice(z).replace(/\u200b+$/,"");var Re=ae(g,z),De=ae(E,j.length?we(j).length-ee:0);if(A.length>1||A[0]||Ue(Re,De))return ga(r.doc,A,Re,De,"+input"),!0},gt.prototype.ensurePolled=function(){this.forceCompositionEnd()},gt.prototype.reset=function(){this.forceCompositionEnd()},gt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},gt.prototype.readFromDOMSoon=function(){var r=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(r.readDOMTimeout=null,r.composing)if(r.composing.done)r.composing=null;else return;r.updateFromDOM()},80))},gt.prototype.updateFromDOM=function(){var r=this;(this.cm.isReadOnly()||!this.pollContent())&&Xr(this.cm,function(){return Ye(r.cm)})},gt.prototype.setUneditable=function(r){r.contentEditable="false"},gt.prototype.onKeyPress=function(r){r.charCode==0||this.composing||(r.preventDefault(),this.cm.isReadOnly()||rr(this.cm,fc)(this.cm,String.fromCharCode(r.charCode==null?r.keyCode:r.charCode),0))},gt.prototype.readOnlyChanged=function(r){this.div.contentEditable=String(r!="nocursor")},gt.prototype.onContextMenu=function(){},gt.prototype.resetPosition=function(){},gt.prototype.needsContentAttribute=!0;function $u(r,n){var u=Hp(r,n.line);if(!u||u.hidden)return null;var a=Le(r.doc,n.line),c=ul(u,a,n.line),m=Tn(a,r.doc.direction),g="left";if(m){var S=gi(m,n.ch);g=S%2?"right":"left"}var C=Rf(c.map,n.ch,g);return C.offset=C.collapse=="right"?C.end:C.start,C}o($u,"posToDOM");function ka(r){for(var n=r;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}o(ka,"isInGutter");function He(r,n){return n&&(r.bad=!0),r}o(He,"badPos");function pc(r,n,u,a,c){var m="",g=!1,S=r.doc.lineSeparator(),C=!1;function E(z){return function(ee){return ee.id==z}}o(E,"recognizeMarker");function L(){g&&(m+=S,C&&(m+=S),g=C=!1)}o(L,"close");function A(z){z&&(L(),m+=z)}o(A,"addText");function j(z){if(z.nodeType==1){var ee=z.getAttribute("cm-text");if(ee){A(ee);return}var oe=z.getAttribute("cm-marker"),ce;if(oe){var ve=r.findMarks(ae(a,0),ae(c+1,0),E(+oe));ve.length&&(ce=ve[0].find(0))&&A(wi(r.doc,ce.from,ce.to).join(S));return}if(z.getAttribute("contenteditable")=="false")return;var Ce=/^(pre|div|p|li|table|br)$/i.test(z.nodeName);if(!/^br$/i.test(z.nodeName)&&z.textContent.length==0)return;Ce&&L();for(var ge=0;ge=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),H(c,"paste",function(g){Jt(a,g)||dd(g,a)||(a.state.pasteIncoming=+new Date,u.fastPoll())});function m(g){if(!Jt(a,g)){if(a.somethingSelected())ki({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var S=hd(a);ki({lineWise:!0,text:S.text}),g.type=="cut"?a.setSelections(S.ranges,null,$t):(u.prevInput="",c.value=S.text.join(` +`),at(c))}else return;g.type=="cut"&&(a.state.cutIncoming=+new Date)}}o(m,"prepareCopyCut"),H(c,"cut",m),H(c,"copy",m),H(r.scroller,"paste",function(g){if(!(mr(r,g)||Jt(a,g))){if(!c.dispatchEvent){a.state.pasteIncoming=+new Date,u.focus();return}var S=new Event("paste");S.clipboardData=g.clipboardData,c.dispatchEvent(S)}}),H(r.lineSpace,"selectstart",function(g){mr(r,g)||er(g)}),H(c,"compositionstart",function(){var g=a.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:g,range:a.markText(g,a.getCursor("to"),{className:"CodeMirror-composing"})}}),H(c,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},ar.prototype.createField=function(r){this.wrapper=qm(),this.textarea=this.wrapper.firstChild},ar.prototype.screenReaderLabelChanged=function(r){r?this.textarea.setAttribute("aria-label",r):this.textarea.removeAttribute("aria-label")},ar.prototype.prepareSelection=function(){var r=this.cm,n=r.display,u=r.doc,a=_u(r);if(r.options.moveInputWithCursor){var c=zi(r,u.sel.primary().head,"div"),m=n.wrapper.getBoundingClientRect(),g=n.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,c.top+g.top-m.top)),a.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,c.left+g.left-m.left))}return a},ar.prototype.showSelection=function(r){var n=this.cm,u=n.display;Qe(u.cursorDiv,r.cursors),Qe(u.selectionDiv,r.selection),r.teTop!=null&&(this.wrapper.style.top=r.teTop+"px",this.wrapper.style.left=r.teLeft+"px")},ar.prototype.reset=function(r){if(!(this.contextMenuPending||this.composing)){var n=this.cm;if(n.somethingSelected()){this.prevInput="";var u=n.getSelection();this.textarea.value=u,n.state.focused&&at(this.textarea),p&&y>=9&&(this.hasSelection=u)}else r||(this.prevInput=this.textarea.value="",p&&y>=9&&(this.hasSelection=null))}},ar.prototype.getField=function(){return this.textarea},ar.prototype.supportsTouch=function(){return!1},ar.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!P||ze()!=this.textarea))try{this.textarea.focus()}catch(r){}},ar.prototype.blur=function(){this.textarea.blur()},ar.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ar.prototype.receivedFocus=function(){this.slowPoll()},ar.prototype.slowPoll=function(){var r=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){r.poll(),r.cm.state.focused&&r.slowPoll()})},ar.prototype.fastPoll=function(){var r=!1,n=this;n.pollingFast=!0;function u(){var a=n.poll();!a&&!r?(r=!0,n.polling.set(60,u)):(n.pollingFast=!1,n.slowPoll())}o(u,"p"),n.polling.set(20,u)},ar.prototype.poll=function(){var r=this,n=this.cm,u=this.textarea,a=this.prevInput;if(this.contextMenuPending||!n.state.focused||Ep(u)&&!a&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var c=u.value;if(c==a&&!n.somethingSelected())return!1;if(p&&y>=9&&this.hasSelection===c||R&&/[\uf700-\uf7ff]/.test(c))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var m=c.charCodeAt(0);if(m==8203&&!a&&(a="\u200B"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var g=0,S=Math.min(a.length,c.length);g1e3||c.indexOf(` +`)>-1?u.value=r.prevInput="":r.prevInput=c,r.composing&&(r.composing.range.clear(),r.composing.range=n.markText(r.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ar.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ar.prototype.onKeyPress=function(){p&&y>=9&&(this.hasSelection=null),this.fastPoll()},ar.prototype.onContextMenu=function(r){var n=this,u=n.cm,a=u.display,c=n.textarea;n.contextMenuPending&&n.contextMenuPending();var m=fo(u,r),g=a.scroller.scrollTop;if(!m||Y)return;var S=u.options.resetSelectionOnContextMenu;S&&u.doc.sel.contains(m)==-1&&rr(u,Br)(u.doc,Ms(m),$t);var C=c.style.cssText,E=n.wrapper.style.cssText,L=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px; + top: `+(r.clientY-L.top-5)+"px; left: "+(r.clientX-L.left-5)+`px; + z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`; + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var A;_&&(A=window.scrollY),a.input.focus(),_&&window.scrollTo(null,A),a.input.reset(),u.somethingSelected()||(c.value=n.prevInput=" "),n.contextMenuPending=z,a.selForContextMenu=u.doc.sel,clearTimeout(a.detectingSelectAll);function j(){if(c.selectionStart!=null){var oe=u.somethingSelected(),ce="\u200B"+(oe?c.value:"");c.value="\u21DA",c.value=ce,n.prevInput=oe?"":"\u200B",c.selectionStart=1,c.selectionEnd=ce.length,a.selForContextMenu=u.doc.sel}}o(j,"prepareSelectAllHack");function z(){if(n.contextMenuPending==z&&(n.contextMenuPending=!1,n.wrapper.style.cssText=E,c.style.cssText=C,p&&y<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=g),c.selectionStart!=null)){(!p||p&&y<9)&&j();var oe=0,ce=o(function(){a.selForContextMenu==u.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&n.prevInput=="\u200B"?rr(u,wm)(u):oe++<10?a.detectingSelectAll=setTimeout(ce,500):(a.selForContextMenu=null,a.input.reset())},"poll");a.detectingSelectAll=setTimeout(ce,200)}}if(o(z,"rehide"),p&&y>=9&&j(),he){no(r);var ee=o(function(){de(window,"mouseup",ee),setTimeout(z,20)},"mouseup");H(window,"mouseup",ee)}else setTimeout(z,50)},ar.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},ar.prototype.setUneditable=function(){},ar.prototype.needsContentAttribute=!1;function md(r,n){if(n=n?Kt(n):{},n.value=r.value,!n.tabindex&&r.tabIndex&&(n.tabindex=r.tabIndex),!n.placeholder&&r.placeholder&&(n.placeholder=r.placeholder),n.autofocus==null){var u=ze();n.autofocus=u==r||r.getAttribute("autofocus")!=null&&u==document.body}function a(){r.value=S.getValue()}o(a,"save");var c;if(r.form&&(H(r.form,"submit",a),!n.leaveSubmitMethodAlone)){var m=r.form;c=m.submit;try{var g=m.submit=function(){a(),m.submit=c,m.submit(),m.submit=g}}catch(C){}}n.finishInit=function(C){C.save=a,C.getTextArea=function(){return r},C.toTextArea=function(){C.toTextArea=isNaN,a(),r.parentNode.removeChild(C.getWrapperElement()),r.style.display="",r.form&&(de(r.form,"submit",a),!n.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=c))}},r.style.display="none";var S=Lt(function(C){return r.parentNode.insertBefore(C,r.nextSibling)},n);return S}o(md,"fromTextArea");function Vm(r){r.off=de,r.on=H,r.wheelEventPixels=r0,r.Doc=pn,r.splitLines=tl,r.countColumn=Ot,r.findColumn=Tr,r.isWordChar=Gt,r.Pass=zt,r.signal=be,r.Line=Or,r.changeEnd=As,r.scrollbarModel=zf,r.Pos=ae,r.cmpPos=Ue,r.modes=$l,r.mimeModes=ps,r.resolveMode=rl,r.getMode=uu,r.modeExtensions=Ho,r.extendMode=kp,r.copyState=Wo,r.startState=kf,r.innerMode=jl,r.commands=Sl,r.keyMap=Go,r.keyName=od,r.isModifierKey=nc,r.lookupKey=Yo,r.normalizeKeyMap=u0,r.StringStream=Rt,r.SharedTextMarker=xa,r.TextMarker=Rs,r.LineWidget=Du,r.e_preventDefault=er,r.e_stopPropagation=oi,r.e_stop=no,r.addClass=lt,r.contains=ct,r.rmClass=xe,r.keyNames=Hs}o(Vm,"addLegacyProps"),uc(Lt),Xo(Lt);var hn="iter insert remove copy getEditor constructor".split(" ");for(var dc in pn.prototype)pn.prototype.hasOwnProperty(dc)&&it(hn,dc)<0&&(Lt.prototype[dc]=function(r){return function(){return r.apply(this.doc,arguments)}}(pn.prototype[dc]));return Ir(pn),Lt.inputStyles={textarea:ar,contenteditable:gt},Lt.defineMode=function(r){!Lt.defaults.mode&&r!="null"&&(Lt.defaults.mode=r),Tp.apply(this,arguments)},Lt.defineMIME=Tf,Lt.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),Lt.defineMIME("text/plain","null"),Lt.defineExtension=function(r,n){Lt.prototype[r]=n},Lt.defineDocExtension=function(r,n){pn.prototype[r]=n},Lt.fromTextArea=md,Vm(Lt),Lt.version="5.62.0",Lt})});var iO=fr((ez,nO)=>{"use strict";var xI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";nO.exports=xI});var aO=fr((tz,lO)=>{"use strict";var SI=iO();function oO(){}o(oO,"emptyFunction");function sO(){}o(sO,"emptyFunctionWithReset");sO.resetWarningCache=oO;lO.exports=function(){function e(l,d,v,p,y,_){if(_!==SI){var O=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw O.name="Invariant Violation",O}}o(e,"shim"),e.isRequired=e;function t(){return e}o(t,"getShim");var i={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:sO,resetWarningCache:oO};return i.PropTypes=i,i}});var zh=fr((iz,uO)=>{uO.exports=aO()();var rz,nz});var aS=fr((oz,fO)=>{fO.exports=o(function(t,i,l,d){var v=l?l.call(d,t,i):void 0;if(v!==void 0)return!!v;if(t===i)return!0;if(typeof t!="object"||!t||typeof i!="object"||!i)return!1;var p=Object.keys(t),y=Object.keys(i);if(p.length!==y.length)return!1;for(var _=Object.prototype.hasOwnProperty.bind(i),O=0;O=0)&&(i[d]=e[d]);return i}o(tu,"_objectWithoutPropertiesLoose");var nx=pe(Jb()),sr=pe(Fe()),iT=pe(nT());var xF=[],SF=[null,null];function CF(e,t){var i=e[1];return[t.payload,i+1]}o(CF,"storeStateUpdatesReducer");function oT(e,t,i){lf(function(){return e.apply(void 0,t)},i)}o(oT,"useIsomorphicLayoutEffectWithArgs");function _F(e,t,i,l,d,v,p){e.current=l,t.current=d,i.current=!1,v.current&&(v.current=null,p())}o(_F,"captureWrapperProps");function EF(e,t,i,l,d,v,p,y,_,O){if(!!e){var D=!1,Y=null,B=o(function(){if(!D){var Q=t.getState(),F,P;try{F=l(Q,d.current)}catch(R){P=R,Y=R}P||(Y=null),F===v.current?p.current||_():(v.current=F,y.current=F,p.current=!0,O({type:"STORE_UPDATED",payload:{error:P}}))}},"checkForUpdates");i.onStateChange=B,i.trySubscribe(),B();var X=o(function(){if(D=!0,i.tryUnsubscribe(),i.onStateChange=null,Y)throw Y},"unsubscribeWrapper");return X}}o(EF,"subscribeUpdates");var bF=o(function(){return[null,0]},"initStateUpdates");function Rg(e,t){t===void 0&&(t={});var i=t,l=i.getDisplayName,d=l===void 0?function(ie){return"ConnectAdvanced("+ie+")"}:l,v=i.methodName,p=v===void 0?"connectAdvanced":v,y=i.renderCountProp,_=y===void 0?void 0:y,O=i.shouldHandleStateChanges,D=O===void 0?!0:O,Y=i.storeKey,B=Y===void 0?"store":Y,X=i.withRef,te=X===void 0?!1:X,Q=i.forwardRef,F=Q===void 0?!1:Q,P=i.context,R=P===void 0?Zn:P,K=tu(i,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);if(!1)var V;var ue=R;return o(function(he){var me=he.displayName||he.name||"Component",xe=d(me),Ve=Oo({},K,{getDisplayName:d,methodName:p,renderCountProp:_,shouldHandleStateChanges:D,storeKey:B,displayName:xe,wrappedComponentName:me,WrappedComponent:he}),Qe=K.pure;function Ee(lt){return e(lt.dispatch,Ve)}o(Ee,"createChildSelector");var xt=Qe?sr.useMemo:function(lt){return lt()};function qe(lt){var Zt=(0,sr.useMemo)(function(){var yr=lt.reactReduxForwardedRef,Ii=tu(lt,["reactReduxForwardedRef"]);return[lt.context,yr,Ii]},[lt]),at=Zt[0],Rr=Zt[1],Kt=Zt[2],Ot=(0,sr.useMemo)(function(){return at&&at.Consumer&&(0,iT.isContextConsumer)(sr.default.createElement(at.Consumer,null))?at:ue},[at,ue]),St=(0,sr.useContext)(Ot),it=Boolean(lt.store)&&Boolean(lt.store.getState)&&Boolean(lt.store.dispatch),br=Boolean(St)&&Boolean(St.store),zt=it?lt.store:St.store,$t=(0,sr.useMemo)(function(){return Ee(zt)},[zt]),ne=(0,sr.useMemo)(function(){if(!D)return SF;var yr=new Qc(zt,it?null:St.subscription),Ii=yr.notifyNestedSubs.bind(yr);return[yr,Ii]},[zt,it,St]),Ze=ne[0],Tr=ne[1],jt=(0,sr.useMemo)(function(){return it?St:Oo({},St,{subscription:Ze})},[it,St,Ze]),qt=(0,sr.useReducer)(CF,xF,bF),we=qt[0],kr=we[0],ln=qt[1];if(kr&&kr.error)throw kr.error;var In=(0,sr.useRef)(),ii=(0,sr.useRef)(Kt),an=(0,sr.useRef)(),Gt=(0,sr.useRef)(!1),dr=xt(function(){return an.current&&Kt===ii.current?an.current:$t(zt.getState(),Kt)},[zt,kr,Kt]);oT(_F,[ii,In,Gt,Kt,dr,an,Tr]),oT(EF,[D,zt,Ze,$t,ii,In,Gt,an,Tr,ln],[zt,Ze,$t]);var ut=(0,sr.useMemo)(function(){return sr.default.createElement(he,Oo({},dr,{ref:Rr}))},[Rr,he,dr]),Io=(0,sr.useMemo)(function(){return D?sr.default.createElement(Ot.Provider,{value:jt},ut):ut},[Ot,ut,jt]);return Io}o(qe,"ConnectFunction");var ct=Qe?sr.default.memo(qe):qe;if(ct.WrappedComponent=he,ct.displayName=qe.displayName=xe,F){var ze=sr.default.forwardRef(o(function(Zt,at){return sr.default.createElement(ct,Oo({},Zt,{reactReduxForwardedRef:at}))},"forwardConnectRef"));return ze.displayName=xe,ze.WrappedComponent=he,(0,nx.default)(ze,he)}return(0,nx.default)(ct,he)},"wrapWithConnect")}o(Rg,"connectAdvanced");function sT(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}o(sT,"is");function Zc(e,t){if(sT(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;for(var d=0;d=0;l--){var d=t[l](e);if(d)return d}return function(v,p){throw new Error("Invalid value of type "+typeof e+" for "+i+" argument when connecting component "+p.wrappedComponentName+".")}}o(sx,"match");function HF(e,t){return e===t}o(HF,"strictEqual");function WF(e){var t=e===void 0?{}:e,i=t.connectHOC,l=i===void 0?Rg:i,d=t.mapStateToPropsFactories,v=d===void 0?uT:d,p=t.mapDispatchToPropsFactories,y=p===void 0?aT:p,_=t.mergePropsFactories,O=_===void 0?fT:_,D=t.selectorFactory,Y=D===void 0?ox:D;return o(function(X,te,Q,F){F===void 0&&(F={});var P=F,R=P.pure,K=R===void 0?!0:R,V=P.areStatesEqual,ue=V===void 0?HF:V,ie=P.areOwnPropsEqual,he=ie===void 0?Zc:ie,me=P.areStatePropsEqual,xe=me===void 0?Zc:me,Ve=P.areMergedPropsEqual,Qe=Ve===void 0?Zc:Ve,Ee=tu(P,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),xt=sx(X,v,"mapStateToProps"),qe=sx(te,y,"mapDispatchToProps"),ct=sx(Q,O,"mergeProps");return l(Y,Oo({methodName:"connect",getDisplayName:o(function(lt){return"Connect("+lt+")"},"getDisplayName"),shouldHandleStateChanges:Boolean(X),initMapStateToProps:xt,initMapDispatchToProps:qe,initMergeProps:ct,pure:K,areStatesEqual:ue,areOwnPropsEqual:he,areStatePropsEqual:xe,areMergedPropsEqual:Qe},Ee))},"connect")}o(WF,"createConnect");var Fi=WF();var pT=pe(Fe());var cT=pe(Fe());function Hg(){var e=(0,cT.useContext)(Zn);return e}o(Hg,"useReduxContext");function Wg(e){e===void 0&&(e=Zn);var t=e===Zn?Hg:function(){return(0,pT.useContext)(e)};return o(function(){var l=t(),d=l.store;return d},"useStore")}o(Wg,"createStoreHook");var lx=Wg();function dT(e){e===void 0&&(e=Zn);var t=e===Zn?lx:Wg(e);return o(function(){var l=t();return l.dispatch},"useDispatch")}o(dT,"createDispatchHook");var Ys=dT();var Zi=pe(Fe());var BF=o(function(t,i){return t===i},"refEquality");function UF(e,t,i,l){var d=(0,Zi.useReducer)(function(te){return te+1},0),v=d[1],p=(0,Zi.useMemo)(function(){return new Qc(i,l)},[i,l]),y=(0,Zi.useRef)(),_=(0,Zi.useRef)(),O=(0,Zi.useRef)(),D=(0,Zi.useRef)(),Y=i.getState(),B;try{if(e!==_.current||Y!==O.current||y.current){var X=e(Y);D.current===void 0||!t(X,D.current)?B=X:B=D.current}else B=D.current}catch(te){throw y.current&&(te.message+=` The error may be correlated with this previous error: -`+w.current.stack+` +`+y.current.stack+` -`),ee}return rf(function(){b.current=e,L.current=Y,F.current=z,w.current=void 0}),rf(function(){function ee(){try{var J=i.getState(),I=b.current(J);if(t(I,F.current))return;F.current=I,L.current=J}catch(A){w.current=A}m()}return o(ee,"checkForUpdates"),d.onStateChange=ee,d.trySubscribe(),ee(),function(){return d.tryUnsubscribe()}},[i,d]),z}o(_F,"useSelectorWithStoreAndSubscription");function mT(e){e===void 0&&(e=Wn);var t=e===Wn?Ig:function(){return(0,Wi.useContext)(e)};return o(function(a,p){p===void 0&&(p=CF);var m=t(),d=m.store,w=m.subscription,b=_F(a,p,d,w);return(0,Wi.useDebugValue)(b),b},"useSelector")}o(mT,"createSelectorHook");var tx=mT();var rx=re(Ms());zb(rx.unstable_batchedUpdates);var Ll=re(ke()),f5=re(It());var nx=re(Uo()),ET=re(ke());window._=nx.default;window.React=ET.default;var dt={UP:38,DOWN:40,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,LEFT:37,RIGHT:39,ENTER:13,ESC:27,TAB:9,SPACE:32,BACKSPACE:8,SHIFT:16};for(var Rg=65;Rg<=90;Rg++)dt[String.fromCharCode(Rg)]=Rg;var Jc=o(function(e){if(e===0)return"0";for(var t=["b","kb","mb","gb","tb"],i=0;ie);i++);var a;return e%Math.pow(1024,i)==0?a=0:a=1,(e/Math.pow(1024,i)).toFixed(a)+t[i]},"formatSize"),Wg=o(function(e){for(var t=e,i=["ms","s","min","h"],a=[1e3,60,60],p=0;Math.abs(t)>=a[p]&&pFt(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),...i});function ix(e,t){let i={...t};for(let a in e)nx.default.isEqual(t[a],e[a])?i[a]=void 0:Object.prototype.toString.call(t[a])==="[object Object]"&&Object.prototype.toString.call(e[a])==="[object Object]"&&(i[a]=ix(e[a],t[a]));return i}o(ix,"getDiff");var BT=re(Uo());var Eh={};OA(Eh,{ADD:()=>fx,RECEIVE:()=>dx,REMOVE:()=>px,SET_FILTER:()=>ux,SET_SORT:()=>ax,UPDATE:()=>cx,add:()=>kF,default:()=>Bo,receive:()=>PF,remove:()=>LF,setFilter:()=>hx,setSort:()=>OT,update:()=>NF});var lx=re(TT()),ux="LIST_SET_FILTER",ax="LIST_SET_SORT",fx="LIST_ADD",cx="LIST_UPDATE",px="LIST_REMOVE",dx="LIST_RECEIVE",OF={byId:{},list:[],listIndex:{},view:[],viewIndex:{}};function Bo(e=OF,t){let{byId:i,list:a,listIndex:p,view:m,viewIndex:d}=e;switch(t.type){case ux:m=(0,lx.default)(a.filter(t.filter),t.sort),d={},m.forEach((L,F)=>{d[L.id]=F});break;case ax:m=(0,lx.default)([...m],t.sort),d={},m.forEach((L,F)=>{d[L.id]=F});break;case fx:if(t.item.id in i)break;i={...i,[t.item.id]:t.item},p={...p,[t.item.id]:a.length},a=[...a,t.item],t.filter(t.item)&&({view:m,viewIndex:d}=kT(e,t.item,t.sort));break;case cx:i={...i,[t.item.id]:t.item},a=[...a],a[p[t.item.id]]=t.item;let w=t.item.id in d,b=t.filter(t.item);b&&!w?{view:m,viewIndex:d}=kT(e,t.item,t.sort):!b&&w?{data:m,dataIndex:d}=vx(m,d,t.item.id):b&&w&&({view:m,viewIndex:d}=MF(e,t.item,t.sort));break;case px:if(!(t.id in i))break;i={...i},delete i[t.id],{data:a,dataIndex:p}=vx(a,p,t.id),t.id in d&&({data:m,dataIndex:d}=vx(m,d,t.id));break;case dx:a=t.list,p={},i={},a.forEach((L,F)=>{i[L.id]=L,p[L.id]=F}),m=a.filter(t.filter).sort(t.sort),d={},m.forEach((L,F)=>{d[L.id]=F});break}return{byId:i,list:a,listIndex:p,view:m,viewIndex:d}}o(Bo,"reduce");function hx(e=Hg,t=_h){return{type:ux,filter:e,sort:t}}o(hx,"setFilter");function OT(e=_h){return{type:ax,sort:e}}o(OT,"setSort");function kF(e,t=Hg,i=_h){return{type:fx,item:e,filter:t,sort:i}}o(kF,"add");function NF(e,t=Hg,i=_h){return{type:cx,item:e,filter:t,sort:i}}o(NF,"update");function LF(e){return{type:px,id:e}}o(LF,"remove");function PF(e,t=Hg,i=_h){return{type:dx,list:e,filter:t,sort:i}}o(PF,"receive");function kT(e,t,i){let a=AF(e.view,t,i),p=[...e.view],m={...e.viewIndex};p.splice(a,0,t);for(let d=p.length-1;d>=a;d--)m[p[d].id]=d;return{view:p,viewIndex:m}}o(kT,"sortedInsert");function vx(e,t,i){let a=t[i],p=[...e],m={...t};delete m[i],p.splice(a,1);for(let d=p.length-1;d>=a;d--)m[p[d].id]=d;return{data:p,dataIndex:m}}o(vx,"removeData");function MF(e,t,i){let a=[...e.view],p={...e.viewIndex},m=p[t.id];for(a[m]=t;m+10;)a[m]=a[m+1],a[m+1]=t,p[t.id]=m+1,p[a[m].id]=m,++m;for(;m>0&&i(a[m],a[m-1])<0;)a[m]=a[m-1],a[m-1]=t,p[t.id]=m-1,p[a[m].id]=m,--m;return{view:a,viewIndex:p}}o(MF,"sortedUpdate");function AF(e,t,i){let a=0,p=e.length;for(;a>>1;i(t,e[m])>=0?a=m+1:p=m}return a}o(AF,"sortedIndex");function Hg(){return!0}o(Hg,"defaultFilter");function _h(e,t){return 0}o(_h,"defaultSort");var mx=re(Uo()),NT={http:80,https:443},zo={getContentType:function(e){var t=this.get_first_header(e,/^Content-Type$/i);if(t)return t.split(";")[0].trim()},get_first_header:function(e,t){if(e._headerLookups||Object.defineProperty(e,"_headerLookups",{value:{},configurable:!1,enumerable:!1,writable:!1}),!(t in e._headerLookups)){for(var i,a=0;a1?arguments[1]:{},m=this,d={},w={start:ql},b=ql,L={type:"other",description:"filter expression"},F=o(function(x){return x},"peg$c1"),Y={type:"other",description:"whitespace"},z=/^[ \t\n\r]/,X={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},ee={type:"other",description:"control character"},J=/^[|&!()~"]/,I={type:"class",value:'[|&!()~"]',description:'[|&!()~"]'},A={type:"other",description:"optional whitespace"},W="|",K={type:"literal",value:"|",description:'"|"'},V=o(function(x,k){return $s(x,k)},"peg$c11"),fe="&",se={type:"literal",value:"&",description:'"&"'},ce=o(function(x,k){return pr(x,k)},"peg$c14"),me="!",ye={type:"literal",value:"!",description:'"!"'},ze=o(function(x){return Pf(x)},"peg$c17"),Ye="(",Se={type:"literal",value:"(",description:'"("'},Et=")",Rt={type:"literal",value:")",description:'")"'},vt=o(function(x){return Mf(x)},"peg$c22"),rt="true",nt={type:"literal",value:"true",description:'"true"'},Sr=o(function(){return ha},"peg$c25"),lt="false",jn={type:"literal",value:"false",description:'"false"'},fr=o(function(){return va},"peg$c28"),Nt="~a",mt={type:"literal",value:"~a",description:'"~a"'},Ze=o(function(){return Gl},"peg$c31"),Lr="~b",Pt={type:"literal",value:"~b",description:'"~b"'},Mt=o(function(x){return Fp(x)},"peg$c34"),qr="~bq",cr={type:"literal",value:"~bq",description:'"~bq"'},_n=o(function(x){return kn(x)},"peg$c37"),En="~bs",Xt={type:"literal",value:"~bs",description:'"~bs"'},je=o(function(x){return Rp(x)},"peg$c40"),bn="~c",an={type:"literal",value:"~c",description:'"~c"'},qn=o(function(x){return hn(x)},"peg$c43"),ni="~d",fn={type:"literal",value:"~d",description:'"~d"'},Qt=o(function(x){return ma(x)},"peg$c46"),cn="~dst",Ci={type:"literal",value:"~dst",description:'"~dst"'},ea=o(function(x){return Ui(x)},"peg$c49"),$r="~e",Yo={type:"literal",value:"~e",description:'"~e"'},_i=o(function(){return ns},"peg$c52"),go="~h",yo={type:"literal",value:"~h",description:'"~h"'},wo=o(function(x){return is(x)},"peg$c55"),Pl="~hq",$n={type:"literal",value:"~hq",description:'"~hq"'},Ml=o(function(x){return ft(x)},"peg$c58"),Ne="~hs",Fs={type:"literal",value:"~hs",description:'"~hs"'},Pr=o(function(x){return Bi(x)},"peg$c61"),Lt="~http",Zt={type:"literal",value:"~http",description:'"~http"'},Cf=o(function(){return Kl},"peg$c64"),pn="~m",xo={type:"literal",value:"~m",description:'"~m"'},Cr=o(function(x){return Wp(x)},"peg$c67"),ta="~marked",ra={type:"literal",value:"~marked",description:'"~marked"'},Rs=o(function(){return zi},"peg$c70"),Al="~q",na={type:"literal",value:"~q",description:'"~q"'},bp=o(function(){return qt},"peg$c73"),Dl="~src",Tp={type:"literal",value:"~src",description:'"~src"'},Ws=o(function(x){return Df(x)},"peg$c76"),_f="~s",Hs={type:"literal",value:"~s",description:'"~s"'},Op=o(function(){return Af},"peg$c79"),Ef="~t",ia={type:"literal",value:"~t",description:'"~t"'},kp=o(function(x){return os(x)},"peg$c82"),Il="~tcp",Xo={type:"literal",value:"~tcp",description:'"~tcp"'},Np=o(function(){return Vs},"peg$c85"),bf="~tq",Us={type:"literal",value:"~tq",description:'"~tq"'},oa=o(function(x){return Oo(x)},"peg$c88"),So="~ts",Lp={type:"literal",value:"~ts",description:'"~ts"'},Co=o(function(x){return Hp(x)},"peg$c91"),Fl="~u",Tf={type:"literal",value:"~u",description:'"~u"'},bt=o(function(x){return Yl(x)},"peg$c94"),_e="~websocket",ii={type:"literal",value:"~websocket",description:'"~websocket"'},sa=o(function(){return Xl},"peg$c97"),oi={type:"other",description:"integer"},it=/^['"]/,Ei={type:"class",value:`['"]`,description:`['"]`},_o=/^[0-9]/,Bs={type:"class",value:"[0-9]",description:"[0-9]"},le=o(function(x){return parseInt(x.join(""),10)},"peg$c103"),Ie={type:"other",description:"string"},Rl='"',Wl={type:"literal",value:'"',description:'"\\""'},Eo=o(function(x){return x.join("")},"peg$c107"),Qo="'",Hl={type:"literal",value:"'",description:`"'"`},De=/^["\\]/,Pp={type:"class",value:'["\\\\]',description:'["\\\\]'},zs={type:"any",description:"any character"},Vn=o(function(x){return x},"peg$c113"),Tn="\\",la={type:"literal",value:"\\",description:'"\\\\"'},ua=/^['\\]/,Zo={type:"class",value:"['\\\\]",description:"['\\\\]"},js=/^['"\\]/,Of={type:"class",value:`['"\\\\]`,description:`['"\\\\]`},Ul="n",Bl={type:"literal",value:"n",description:'"n"'},zl=o(function(){return` -`},"peg$c122"),bo="r",aa={type:"literal",value:"r",description:'"r"'},kf=o(function(){return"\r"},"peg$c125"),Mp="t",fa={type:"literal",value:"t",description:'"t"'},si=o(function(){return" "},"peg$c128"),M=0,Ae=0,To=[{line:1,column:1,seenCR:!1}],Vr=0,ca=[],ve=0,jl;if("startRule"in p){if(!(p.startRule in w))throw new Error(`Can't start parsing from rule "`+p.startRule+'".');b=w[p.startRule]}function Yh(){return a.substring(Ae,M)}o(Yh,"text");function Nf(){return Jo(Ae,M)}o(Nf,"location");function Ap(x){throw es(null,[{type:"other",description:x}],a.substring(Ae,M),Jo(Ae,M))}o(Ap,"expected");function Lf(x){throw es(x,null,a.substring(Ae,M),Jo(Ae,M))}o(Lf,"error");function pa(x){var k=To[x],U,j;if(k)return k;for(U=x-1;!To[U];)U--;for(k=To[U],k={line:k.line,column:k.column,seenCR:k.seenCR};UVr&&(Vr=M,ca=[]),ca.push(x))}o(Ee,"peg$fail");function es(x,k,U,j){function Nn(er){var Ln=1;for(er.sort(function(nr,li){return nr.descriptionli.description?1:0});Ln1?li.slice(0,-1).join(", ")+" or "+li[er.length-1]:li[0],bi=Ln?'"'+nr(Ln)+'"':"end of input","Expected "+Mr+" but "+bi+" found."}return o(Jt,"buildMessage"),k!==null&&Nn(k),new t(x!==null?x:Jt(k,U),k,U,j)}o(es,"peg$buildException");function ql(){var x,k,U,j;return ve++,x=M,k=On(),k!==d?(U=da(),U!==d?(j=On(),j!==d?(Ae=x,k=F(U),x=k):(M=x,x=d)):(M=x,x=d)):(M=x,x=d),ve--,x===d&&(k=d,ve===0&&Ee(L)),x}o(ql,"peg$parsestart");function Te(){var x,k;return ve++,z.test(a.charAt(M))?(x=a.charAt(M),M++):(x=d,ve===0&&Ee(X)),ve--,x===d&&(k=d,ve===0&&Ee(Y)),x}o(Te,"peg$parsews");function gt(){var x,k;return ve++,J.test(a.charAt(M))?(x=a.charAt(M),M++):(x=d,ve===0&&Ee(I)),ve--,x===d&&(k=d,ve===0&&Ee(ee)),x}o(gt,"peg$parsecc");function On(){var x,k;for(ve++,x=[],k=Te();k!==d;)x.push(k),k=Te();return ve--,x===d&&(k=d,ve===0&&Ee(A)),x}o(On,"peg$parse__");function da(){var x,k,U,j,Nn,Jt;return x=M,k=qs(),k!==d?(U=On(),U!==d?(a.charCodeAt(M)===124?(j=W,M++):(j=d,ve===0&&Ee(K)),j!==d?(Nn=On(),Nn!==d?(Jt=da(),Jt!==d?(Ae=x,k=V(k,Jt),x=k):(M=x,x=d)):(M=x,x=d)):(M=x,x=d)):(M=x,x=d)):(M=x,x=d),x===d&&(x=qs()),x}o(da,"peg$parseOrExpr");function qs(){var x,k,U,j,Nn,Jt;if(x=M,k=dn(),k!==d?(U=On(),U!==d?(a.charCodeAt(M)===38?(j=fe,M++):(j=d,ve===0&&Ee(se)),j!==d?(Nn=On(),Nn!==d?(Jt=qs(),Jt!==d?(Ae=x,k=ce(k,Jt),x=k):(M=x,x=d)):(M=x,x=d)):(M=x,x=d)):(M=x,x=d)):(M=x,x=d),x===d){if(x=M,k=dn(),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=qs(),j!==d?(Ae=x,k=ce(k,j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;x===d&&(x=dn())}return x}o(qs,"peg$parseAndExpr");function dn(){var x,k,U,j;return x=M,a.charCodeAt(M)===33?(k=me,M++):(k=d,ve===0&&Ee(ye)),k!==d?(U=On(),U!==d?(j=dn(),j!==d?(Ae=x,k=ze(j),x=k):(M=x,x=d)):(M=x,x=d)):(M=x,x=d),x===d&&(x=Dp()),x}o(dn,"peg$parseNotExpr");function Dp(){var x,k,U,j,Nn,Jt;return x=M,a.charCodeAt(M)===40?(k=Ye,M++):(k=d,ve===0&&Ee(Se)),k!==d?(U=On(),U!==d?(j=da(),j!==d?(Nn=On(),Nn!==d?(a.charCodeAt(M)===41?(Jt=Et,M++):(Jt=d,ve===0&&Ee(Rt)),Jt!==d?(Ae=x,k=vt(j),x=k):(M=x,x=d)):(M=x,x=d)):(M=x,x=d)):(M=x,x=d)):(M=x,x=d),x===d&&(x=Ip()),x}o(Dp,"peg$parseBindingExpr");function Ip(){var x,k,U,j;if(x=M,a.substr(M,4)===rt?(k=rt,M+=4):(k=d,ve===0&&Ee(nt)),k!==d&&(Ae=x,k=Sr()),x=k,x===d&&(x=M,a.substr(M,5)===lt?(k=lt,M+=5):(k=d,ve===0&&Ee(jn)),k!==d&&(Ae=x,k=fr()),x=k,x===d&&(x=M,a.substr(M,2)===Nt?(k=Nt,M+=2):(k=d,ve===0&&Ee(mt)),k!==d&&(Ae=x,k=Ze()),x=k,x===d))){if(x=M,a.substr(M,2)===Lr?(k=Lr,M+=2):(k=d,ve===0&&Ee(Pt)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=_r(),j!==d?(Ae=x,k=Mt(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d){if(x=M,a.substr(M,3)===qr?(k=qr,M+=3):(k=d,ve===0&&Ee(cr)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=_r(),j!==d?(Ae=x,k=_n(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d){if(x=M,a.substr(M,3)===En?(k=En,M+=3):(k=d,ve===0&&Ee(Xt)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=_r(),j!==d?(Ae=x,k=je(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d){if(x=M,a.substr(M,2)===bn?(k=bn,M+=2):(k=d,ve===0&&Ee(an)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=$l(),j!==d?(Ae=x,k=qn(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d){if(x=M,a.substr(M,2)===ni?(k=ni,M+=2):(k=d,ve===0&&Ee(fn)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=_r(),j!==d?(Ae=x,k=Qt(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d){if(x=M,a.substr(M,4)===cn?(k=cn,M+=4):(k=d,ve===0&&Ee(Ci)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=_r(),j!==d?(Ae=x,k=ea(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d&&(x=M,a.substr(M,2)===$r?(k=$r,M+=2):(k=d,ve===0&&Ee(Yo)),k!==d&&(Ae=x,k=_i()),x=k,x===d)){if(x=M,a.substr(M,2)===go?(k=go,M+=2):(k=d,ve===0&&Ee(yo)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=_r(),j!==d?(Ae=x,k=wo(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d){if(x=M,a.substr(M,3)===Pl?(k=Pl,M+=3):(k=d,ve===0&&Ee($n)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=_r(),j!==d?(Ae=x,k=Ml(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d){if(x=M,a.substr(M,3)===Ne?(k=Ne,M+=3):(k=d,ve===0&&Ee(Fs)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=_r(),j!==d?(Ae=x,k=Pr(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d&&(x=M,a.substr(M,5)===Lt?(k=Lt,M+=5):(k=d,ve===0&&Ee(Zt)),k!==d&&(Ae=x,k=Cf()),x=k,x===d)){if(x=M,a.substr(M,2)===pn?(k=pn,M+=2):(k=d,ve===0&&Ee(xo)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=_r(),j!==d?(Ae=x,k=Cr(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d&&(x=M,a.substr(M,7)===ta?(k=ta,M+=7):(k=d,ve===0&&Ee(ra)),k!==d&&(Ae=x,k=Rs()),x=k,x===d&&(x=M,a.substr(M,2)===Al?(k=Al,M+=2):(k=d,ve===0&&Ee(na)),k!==d&&(Ae=x,k=bp()),x=k,x===d))){if(x=M,a.substr(M,4)===Dl?(k=Dl,M+=4):(k=d,ve===0&&Ee(Tp)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=_r(),j!==d?(Ae=x,k=Ws(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d&&(x=M,a.substr(M,2)===_f?(k=_f,M+=2):(k=d,ve===0&&Ee(Hs)),k!==d&&(Ae=x,k=Op()),x=k,x===d)){if(x=M,a.substr(M,2)===Ef?(k=Ef,M+=2):(k=d,ve===0&&Ee(ia)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=_r(),j!==d?(Ae=x,k=kp(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d&&(x=M,a.substr(M,4)===Il?(k=Il,M+=4):(k=d,ve===0&&Ee(Xo)),k!==d&&(Ae=x,k=Np()),x=k,x===d)){if(x=M,a.substr(M,3)===bf?(k=bf,M+=3):(k=d,ve===0&&Ee(Us)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=_r(),j!==d?(Ae=x,k=oa(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d){if(x=M,a.substr(M,3)===So?(k=So,M+=3):(k=d,ve===0&&Ee(Lp)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=_r(),j!==d?(Ae=x,k=Co(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d){if(x=M,a.substr(M,2)===Fl?(k=Fl,M+=2):(k=d,ve===0&&Ee(Tf)),k!==d){if(U=[],j=Te(),j!==d)for(;j!==d;)U.push(j),j=Te();else U=d;U!==d?(j=_r(),j!==d?(Ae=x,k=bt(j),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;x===d&&(x=M,a.substr(M,10)===_e?(k=_e,M+=10):(k=d,ve===0&&Ee(ii)),k!==d&&(Ae=x,k=sa()),x=k,x===d&&(x=M,k=_r(),k!==d&&(Ae=x,k=bt(k)),x=k))}}}}}}}}}}}}}}}return x}o(Ip,"peg$parseExpr");function $l(){var x,k,U,j;if(ve++,x=M,it.test(a.charAt(M))?(k=a.charAt(M),M++):(k=d,ve===0&&Ee(Ei)),k===d&&(k=null),k!==d){if(U=[],_o.test(a.charAt(M))?(j=a.charAt(M),M++):(j=d,ve===0&&Ee(Bs)),j!==d)for(;j!==d;)U.push(j),_o.test(a.charAt(M))?(j=a.charAt(M),M++):(j=d,ve===0&&Ee(Bs));else U=d;U!==d?(it.test(a.charAt(M))?(j=a.charAt(M),M++):(j=d,ve===0&&Ee(Ei)),j===d&&(j=null),j!==d?(Ae=x,k=le(U),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;return ve--,x===d&&(k=d,ve===0&&Ee(oi)),x}o($l,"peg$parseIntegerLiteral");function _r(){var x,k,U,j;if(ve++,x=M,a.charCodeAt(M)===34?(k=Rl,M++):(k=d,ve===0&&Ee(Wl)),k!==d){for(U=[],j=wt();j!==d;)U.push(j),j=wt();U!==d?(a.charCodeAt(M)===34?(j=Rl,M++):(j=d,ve===0&&Ee(Wl)),j!==d?(Ae=x,k=Eo(U),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d){if(x=M,a.charCodeAt(M)===39?(k=Qo,M++):(k=d,ve===0&&Ee(Hl)),k!==d){for(U=[],j=ts();j!==d;)U.push(j),j=ts();U!==d?(a.charCodeAt(M)===39?(j=Qo,M++):(j=d,ve===0&&Ee(Hl)),j!==d?(Ae=x,k=Eo(U),x=k):(M=x,x=d)):(M=x,x=d)}else M=x,x=d;if(x===d)if(x=M,k=M,ve++,U=gt(),ve--,U===d?k=void 0:(M=k,k=d),k!==d){if(U=[],j=Er(),j!==d)for(;j!==d;)U.push(j),j=Er();else U=d;U!==d?(Ae=x,k=Eo(U),x=k):(M=x,x=d)}else M=x,x=d}return ve--,x===d&&(k=d,ve===0&&Ee(Ie)),x}o(_r,"peg$parseStringLiteral");function wt(){var x,k,U;return x=M,k=M,ve++,De.test(a.charAt(M))?(U=a.charAt(M),M++):(U=d,ve===0&&Ee(Pp)),ve--,U===d?k=void 0:(M=k,k=d),k!==d?(a.length>M?(U=a.charAt(M),M++):(U=d,ve===0&&Ee(zs)),U!==d?(Ae=x,k=Vn(U),x=k):(M=x,x=d)):(M=x,x=d),x===d&&(x=M,a.charCodeAt(M)===92?(k=Tn,M++):(k=d,ve===0&&Ee(la)),k!==d?(U=rs(),U!==d?(Ae=x,k=Vn(U),x=k):(M=x,x=d)):(M=x,x=d)),x}o(wt,"peg$parseDoubleStringChar");function ts(){var x,k,U;return x=M,k=M,ve++,ua.test(a.charAt(M))?(U=a.charAt(M),M++):(U=d,ve===0&&Ee(Zo)),ve--,U===d?k=void 0:(M=k,k=d),k!==d?(a.length>M?(U=a.charAt(M),M++):(U=d,ve===0&&Ee(zs)),U!==d?(Ae=x,k=Vn(U),x=k):(M=x,x=d)):(M=x,x=d),x===d&&(x=M,a.charCodeAt(M)===92?(k=Tn,M++):(k=d,ve===0&&Ee(la)),k!==d?(U=rs(),U!==d?(Ae=x,k=Vn(U),x=k):(M=x,x=d)):(M=x,x=d)),x}o(ts,"peg$parseSingleStringChar");function Er(){var x,k,U;return x=M,k=M,ve++,U=Te(),ve--,U===d?k=void 0:(M=k,k=d),k!==d?(a.length>M?(U=a.charAt(M),M++):(U=d,ve===0&&Ee(zs)),U!==d?(Ae=x,k=Vn(U),x=k):(M=x,x=d)):(M=x,x=d),x}o(Er,"peg$parseUnquotedStringChar");function rs(){var x,k;return js.test(a.charAt(M))?(x=a.charAt(M),M++):(x=d,ve===0&&Ee(Of)),x===d&&(x=M,a.charCodeAt(M)===110?(k=Ul,M++):(k=d,ve===0&&Ee(Bl)),k!==d&&(Ae=x,k=zl()),x=k,x===d&&(x=M,a.charCodeAt(M)===114?(k=bo,M++):(k=d,ve===0&&Ee(aa)),k!==d&&(Ae=x,k=kf()),x=k,x===d&&(x=M,a.charCodeAt(M)===116?(k=Mp,M++):(k=d,ve===0&&Ee(fa)),k!==d&&(Ae=x,k=si()),x=k))),x}o(rs,"peg$parseEscapeSequence");function $s(x,k){function U(){return x.apply(this,arguments)||k.apply(this,arguments)}return o(U,"orFilter"),U.desc=x.desc+" or "+k.desc,U}o($s,"or");function pr(x,k){function U(){return x.apply(this,arguments)&&k.apply(this,arguments)}return o(U,"andFilter"),U.desc=x.desc+" and "+k.desc,U}o(pr,"and");function Pf(x){function k(){return!x.apply(this,arguments)}return o(k,"notFilter"),k.desc="not "+x.desc,k}o(Pf,"not");function Mf(x){function k(){return x.apply(this,arguments)}return o(k,"bindingFilter"),k.desc="("+x.desc+")",k}o(Mf,"binding");function ha(x){return!0}o(ha,"trueFilter"),ha.desc="true";function va(x){return!1}o(va,"falseFilter"),va.desc="false";var Vl=[new RegExp("text/javascript"),new RegExp("application/x-javascript"),new RegExp("application/javascript"),new RegExp("text/css"),new RegExp("image/.*"),new RegExp("application/x-shockwave-flash")];function Gl(x){if(x.response){for(var k=Sl.getContentType(x.response),U=Vl.length;U--;)if(Vl[U].test(k))return!0}return!1}o(Gl,"assetFilter"),Gl.desc="is asset";function hn(x){function k(U){return U.response&&U.response.status_code===x}return o(k,"responseCodeFilter"),k.desc="resp. code is "+x,k}o(hn,"responseCode");function Fp(x){x=new RegExp(x,"i");function k(U){return!0}return o(k,"bodyFilter"),k.desc="body filters are not implemented yet, see https://github.com/mitmproxy/mitmweb/issues/10",k}o(Fp,"body");function kn(x){x=new RegExp(x,"i");function k(U){return!0}return o(k,"requestBodyFilter"),k.desc="body filters are not implemented yet, see https://github.com/mitmproxy/mitmweb/issues/10",k}o(kn,"requestBody");function Rp(x){x=new RegExp(x,"i");function k(U){return!0}return o(k,"responseBodyFilter"),k.desc="body filters are not implemented yet, see https://github.com/mitmproxy/mitmweb/issues/10",k}o(Rp,"responseBody");function ma(x){x=new RegExp(x,"i");function k(U){return U.request&&(x.test(U.request.host)||x.test(U.request.pretty_host))}return o(k,"domainFilter"),k.desc="domain matches "+x,k}o(ma,"domain");function Ui(x){x=new RegExp(x,"i");function k(U){return!!U.server_conn.address&&x.test(U.server_conn.address[0]+":"+U.server_conn.address[1])}return o(k,"destinationFilter"),k.desc="destination address matches "+x,k}o(Ui,"destination");function ns(x){return!!x.error}o(ns,"errorFilter"),ns.desc="has error";function is(x){x=new RegExp(x,"i");function k(U){return U.request&&fo.match_header(U.request,x)||U.response&&Sl.match_header(U.response,x)}return o(k,"headerFilter"),k.desc="header matches "+x,k}o(is,"header");function ft(x){x=new RegExp(x,"i");function k(U){return U.request&&fo.match_header(U.request,x)}return o(k,"requestHeaderFilter"),k.desc="req. header matches "+x,k}o(ft,"requestHeader");function Bi(x){x=new RegExp(x,"i");function k(U){return U.response&&Sl.match_header(U.response,x)}return o(k,"responseHeaderFilter"),k.desc="resp. header matches "+x,k}o(Bi,"responseHeader");function Kl(x){return x.type==="http"}o(Kl,"httpFilter"),Kl.desc="is an HTTP Flow";function Wp(x){x=new RegExp(x,"i");function k(U){return U.request&&x.test(U.request.method)}return o(k,"methodFilter"),k.desc="method matches "+x,k}o(Wp,"method");function zi(x){return x.marked}o(zi,"markedFilter"),zi.desc="is marked";function qt(x){return x.request&&!x.response}o(qt,"noResponseFilter"),qt.desc="has no response";function Af(x){return!!x.response}o(Af,"responseFilter"),Af.desc="has response";function Df(x){x=new RegExp(x,"i");function k(U){return!!U.client_conn.address&&x.test(U.client_conn.address[0]+":"+U.client_conn.address[1])}return o(k,"sourceFilter"),k.desc="source address matches "+x,k}o(Df,"source");function os(x){x=new RegExp(x,"i");function k(U){return U.request&&x.test(fo.getContentType(U.request))||U.response&&x.test(Sl.getContentType(U.response))}return o(k,"contentTypeFilter"),k.desc="content type matches "+x,k}o(os,"contentType");function Vs(x){return x.type==="tcp"}o(Vs,"tcpFilter"),Vs.desc="is a TCP Flow";function Oo(x){x=new RegExp(x,"i");function k(U){return U.request&&x.test(fo.getContentType(U.request))}return o(k,"requestContentTypeFilter"),k.desc="req. content type matches "+x,k}o(Oo,"requestContentType");function Hp(x){x=new RegExp(x,"i");function k(U){return U.response&&x.test(Sl.getContentType(U.response))}return o(k,"responseContentTypeFilter"),k.desc="resp. content type matches "+x,k}o(Hp,"responseContentType");function Yl(x){x=new RegExp(x,"i");function k(U){return U.request&&x.test(fo.pretty_url(U.request))}return o(k,"urlFilter"),k.desc="url matches "+x,k}o(Yl,"url");function Xl(x){return x.type==="websocket"}if(o(Xl,"websocketFilter"),Xl.desc="is a Websocket Flow",jl=b(),jl!==d&&M===a.length)return jl;throw jl!==d&&M1)a=a.filter(p=>p!==t.data);else if(a=[],t.data in e.viewIndex&&e.view.length>1){let p=e.viewIndex[t.data],m;p===e.view.length-1?m=e.view[p-1]:m=e.view[p+1],a.push(m.id)}}return{...e,selected:a,...Bo(e,i)};case PT:return{...e,filter:t.filter,...Bo(e,hx(DT(t.filter),Sx(e.sort)))};case AT:return{...e,highlight:t.highlight};case MT:return{...e,sort:t.sort,...Bo(e,OT(Sx(t.sort)))};case tp:return{...e,selected:t.flowIds};default:return e}}o(xx,"reduce");var UF={TLSColumn:e=>e.request.scheme,PathColumn:e=>fo.pretty_url(e.request),MethodColumn:e=>e.request.method,StatusColumn:e=>e.response&&e.response.status_code,TimeColumn:e=>e.response&&e.response.timestamp_end-e.request.timestamp_start,SizeColumn:e=>{let t=e.request.contentLength;return e.response&&(t+=e.response.contentLength||0),t}};function DT(e){if(!!e)return nf.parse(e)}o(DT,"makeFilter");function Sx({column:e,desc:t}){let i=UF[e];if(!!i)return(a,p)=>{let m=i(a),d=i(p);return m>d?t?-1:1:mFt(`/flows/${e.id}/resume`,{method:"POST"})}o(rp,"resume");function zg(){return e=>Ft("/flows/resume",{method:"POST"})}o(zg,"resumeAll");function jg(e){return t=>Ft(`/flows/${e.id}/kill`,{method:"POST"})}o(jg,"kill");function FT(){return e=>Ft("/flows/kill",{method:"POST"})}o(FT,"killAll");function qg(e){return t=>Ft(`/flows/${e.id}`,{method:"DELETE"})}o(qg,"remove");function $g(e){return t=>Ft(`/flows/${e.id}/duplicate`,{method:"POST"})}o($g,"duplicate");function np(e){return t=>Ft(`/flows/${e.id}/replay`,{method:"POST"})}o(np,"replay");function Vg(e){return t=>Ft(`/flows/${e.id}/revert`,{method:"POST"})}o(Vg,"revert");function RT(e,t){return i=>Ft.put(`/flows/${e.id}`,t)}o(RT,"update");function WT(e,t,i){let a=new FormData;return t=new window.Blob([t],{type:"plain/text"}),a.append("file",t),p=>Ft(`/flows/${e.id}/${i}/content.data`,{method:"POST",body:a})}o(WT,"uploadContent");function Gg(){return e=>Ft("/clear",{method:"POST"})}o(Gg,"clear");function HT(){return window.location.href="/flows/dump",{type:WF}}o(HT,"download");function UT(e){let t=new FormData;return t.append("file",e),i=>Ft("/flows/dump",{method:"POST",body:t})}o(UT,"upload");function sf(e){return{type:tp,flowIds:e?[e]:[]}}o(sf,"select");var zT="UI_FLOWVIEW_SET_CONTENT_VIEW",jT="UI_FLOWVIEW_DISPLAY_LARGE",qT="UI_FLOWVIEW_SET_TAB",$T="UI_FLOWVIEW_START_EDIT",VT="UI_FLOWVIEW_UPDATE_EDIT",GT="UI_FLOWVIEW_ABORT_EDIT";var KT="UI_SET_SHOW_FULL_CONTENT",YT="UI_SET_CONTENT_VIEW_DESCRIPTION",XT="UI_SET_CONTENT",BF={displayLarge:!1,viewDescription:"",showFullContent:!1,modifiedFlow:void 0,contentView:"Auto",tab:"request",content:[],maxContentLines:80},zF=o((e=BF,t)=>{let i=e.modifiedFlow,a=t.content||e.content,p=a&&a.length<=e.maxContentLines;switch(t.type){case $T:return{...e,modifiedFlow:t.flow,contentView:"Edit",showFullContent:!0};case VT:return{...e,modifiedFlow:BT.default.merge({},e.modifiedFlow,t.update)};case GT:return{...e,modifiedFlow:void 0};case tp:return{...e,modifiedFlow:void 0,displayLarge:!1,contentView:i?"Auto":e.contentView,showFullContent:p};case wx:return t.data.id===e.modifiedFlow?.id?{...e,modifiedFlow:void 0,displayLarge:!1,contentView:i?"Auto":e.contentView,showFullContent:!1}:e;case YT:return{...e,viewDescription:t.description};case KT:return{...e,showFullContent:!0};case qT:return{...e,tab:t.tab?t.tab:"request",displayLarge:!1,showFullContent:e.contentView==="Edit"};case zT:return{...e,contentView:t.contentView,showFullContent:t.contentView==="Edit"};case XT:return{...e,content:t.content,showFullContent:p};case jT:return{...e,displayLarge:!0};default:return e}},"reducer"),QT=zF;function ZT(e){return{type:zT,contentView:e}}o(ZT,"setContentView");function JT(){return{type:jT}}o(JT,"displayLarge");function lf(e){return{type:qT,tab:e}}o(lf,"selectTab");function eO(e){return{type:$T,flow:e}}o(eO,"startEdit");function Kg(e){return{type:VT,update:e}}o(Kg,"updateEdit");function tO(e){return{type:YT,description:e}}o(tO,"setContentViewDescription");function rO(){return{type:KT}}o(rO,"setShowFullContent");function nO(e){return{type:XT,content:e}}o(nO,"setContent");function iO(e,t){let i=ix(e,t);return Object.values(i).some(a=>a!==void 0)?RT(e,i):{type:GT}}o(iO,"stopEdit");var Yg="UI_HIDE_MODAL",oO="UI_SET_ACTIVE_MODAL",jF={activeModal:void 0};function Cx(e=jF,t){switch(t.type){case oO:return{...e,activeModal:t.activeModal};case Yg:return{...e,activeModal:void 0};default:return e}}o(Cx,"reducer");function sO(e){return{type:oO,activeModal:e}}o(sO,"setActiveModal");function Xg(){return{type:Yg}}o(Xg,"hideModal");function lO(e){if(e.ctrlKey||e.metaKey)return()=>{};let t=e.keyCode,i=e.shiftKey;return e.preventDefault(),(a,p)=>{let m=p().flows,d=m.byId[p().flows.selected[0]];switch(t){case dt.K:case dt.UP:a(of(m,-1));break;case dt.J:case dt.DOWN:a(of(m,1));break;case dt.SPACE:case dt.PAGE_DOWN:a(of(m,10));break;case dt.PAGE_UP:a(of(m,-10));break;case dt.END:a(of(m,1e10));break;case dt.HOME:a(of(m,-1e10));break;case dt.ESC:p().ui.modal.activeModal?a(Xg()):a(sf(null));break;case dt.LEFT:{if(!d)break;let w=["request","response","error"].filter(F=>d[F]).concat(["details"]),b=p().ui.flow.tab,L=w[(w.indexOf(b)-1+w.length)%w.length];a(lf(L));break}case dt.TAB:case dt.RIGHT:{if(!d)break;let w=["request","response","error"].filter(F=>d[F]).concat(["details"]),b=p().ui.flow.tab,L=w[(w.indexOf(b)+1)%w.length];a(lf(L));break}case dt.D:{if(!d)return;a(i?$g(d):qg(d));break}case dt.A:{i?a(zg()):d&&d.intercepted&&a(rp(d));break}case dt.R:{!i&&d&&a(np(d));break}case dt.V:{!i&&d&&d.modified&&a(Vg(d));break}case dt.X:{i?a(FT()):d&&d.intercepted&&a(jg(d));break}case dt.Z:{i||a(Gg());break}default:return}}}o(lO,"onKeyDown");var zh=re(ke()),Vk=re(It());var bh=re(ke()),Th=re(Ms()),uO=re(xi()),ip=class extends bh.Component{constructor(t,i){super(t,i);this.state={applied:!1,startX:!1,startY:!1},this.onMouseMove=this.onMouseMove.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onDragEnd=this.onDragEnd.bind(this)}onMouseDown(t){this.setState({startX:t.pageX,startY:t.pageY}),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("dragend",this.onDragEnd)}onDragEnd(){Th.default.findDOMNode(this).style.transform="",window.removeEventListener("dragend",this.onDragEnd),window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove)}onMouseUp(t){this.onDragEnd();let i=Th.default.findDOMNode(this),a=i.previousElementSibling,p=a.offsetHeight+t.pageY-this.state.startY;this.props.axis==="x"&&(p=a.offsetWidth+t.pageX-this.state.startX),a.style.flex=`0 0 ${Math.max(0,p)}px`,i.nextElementSibling.style.flex="1 1 auto",this.setState({applied:!0}),this.onResize()}onMouseMove(t){let i=0,a=0;this.props.axis==="x"?i=t.pageX-this.state.startX:a=t.pageY-this.state.startY,Th.default.findDOMNode(this).style.transform=`translate(${i}px, ${a}px)`}onResize(){window.setTimeout(()=>window.dispatchEvent(new CustomEvent("resize")),1)}reset(t){if(!this.state.applied)return;let i=Th.default.findDOMNode(this);i.previousElementSibling.style.flex="",i.nextElementSibling.style.flex="",t||this.setState({applied:!1}),this.onResize()}componentWillUnmount(){this.reset(!0)}render(){return bh.default.createElement("div",{className:(0,uO.default)("splitter",this.props.axis==="x"?"splitter-x":"splitter-y")},bh.default.createElement("div",{onMouseDown:this.onMouseDown,draggable:"true"}))}};o(ip,"Splitter"),At(ip,"defaultProps",{axis:"x"});var Ds=re(ke()),Dh=re(It()),my=re(Ms());var yk=re(_x());var HW=re(ke()),Ex=re(Ms()),fO=Symbol("shouldStick"),cO=o(e=>e.scrollTop+e.clientHeight===e.scrollHeight,"isAtBottom"),Zg=o(e=>Object.assign(o(class extends e{static displayName=e.name;UNSAFE_componentWillUpdate(){let i=Ex.default.findDOMNode(this);this[fO]=i.scrollTop&&cO(i),super.UNSAFE_componentWillUpdate&&super.UNSAFE_componentWillUpdate(),super.componentWillUpdate&&super.componentWillUpdate()}componentDidUpdate(){let i=Ex.default.findDOMNode(this);this[fO]&&!cO(i)&&(i.scrollTop=i.scrollHeight),super.componentDidUpdate&&super.componentDidUpdate()}},"AutoScrollWrapper"),e),"default");function op(e){if(!e)return{start:0,end:0,paddingTop:0,paddingBottom:0};let{itemCount:t,rowHeight:i,viewportTop:a,viewportHeight:p,itemHeights:m}=e,d=a+p,w=0,b=0,L=0,F=0;if(m)for(let Y=0,z=0;Y{switch(t.type){case Tx:let i={};for(let[p,m]of Object.entries(t.data))i[p]=m;return i;case Ox:let a={...e};for(let[p,m]of Object.entries(t.data))a[p]=m;return a;default:return e}},"reducer"),xO=$F;function VF(e,t,i){return async a=>{try{let p=await Ft.put("/options",{[e]:t});if(p.status===200)a(mO(e));else throw await p.text()}catch(p){return a(gO(e,p))}}}o(VF,"pureSendUpdate");var GF=wO.default.throttle(VF,500,{leading:!0,trailing:!0});function uf(e,t){return i=>{i(vO(e,t)),GF(e,t,i)}}o(uf,"update");function SO(){return e=>Ft("/options/save",{method:"POST"})}o(SO,"save");function CO(e){return(t,i)=>{let a=i().options.intercept;a&&a.includes(e)||(a?a=`${a} | ${e}`:a=e,t(uf("intercept",a)))}}o(CO,"addInterceptFilter");var ur=re(ke());var Jg=re(ke());var kx=o(function(t){return t.reduce(function(i,a){var p=a[0],m=a[1];return i[p]=m,i},{})},"fromEntries"),Nx=typeof window!="undefined"&&window.document&&window.document.createElement?Jg.useLayoutEffect:Jg.useEffect;var Yu=re(ke());var Nr="top",on="bottom",Br="right",zr="left",ey="auto",Vu=[Nr,on,Br,zr],Cl="start",ty="end",_O="clippingParents",ry="viewport",sp="popper",EO="reference",Lx=Vu.reduce(function(e,t){return e.concat([t+"-"+Cl,t+"-"+ty])},[]),ny=[].concat(Vu,[ey]).reduce(function(e,t){return e.concat([t,t+"-"+Cl,t+"-"+ty])},[]),KF="beforeRead",YF="read",XF="afterRead",QF="beforeMain",ZF="main",JF="afterMain",e2="beforeWrite",t2="write",r2="afterWrite",bO=[KF,YF,XF,QF,ZF,JF,e2,t2,r2];function sn(e){return e?(e.nodeName||"").toLowerCase():null}o(sn,"getNodeName");function wr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}o(wr,"getWindow");function _l(e){var t=wr(e).Element;return e instanceof t||e instanceof Element}o(_l,"isElement");function xn(e){var t=wr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}o(xn,"isHTMLElement");function iy(e){if(typeof ShadowRoot=="undefined")return!1;var t=wr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}o(iy,"isShadowRoot");function n2(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var a=t.styles[i]||{},p=t.attributes[i]||{},m=t.elements[i];!xn(m)||!sn(m)||(Object.assign(m.style,a),Object.keys(p).forEach(function(d){var w=p[d];w===!1?m.removeAttribute(d):m.setAttribute(d,w===!0?"":w)}))})}o(n2,"applyStyles");function i2(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(a){var p=t.elements[a],m=t.attributes[a]||{},d=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:i[a]),w=d.reduce(function(b,L){return b[L]="",b},{});!xn(p)||!sn(p)||(Object.assign(p.style,w),Object.keys(m).forEach(function(b){p.removeAttribute(b)}))})}}o(i2,"effect");var TO={name:"applyStyles",enabled:!0,phase:"write",fn:n2,effect:i2,requires:["computeStyles"]};function ln(e){return e.split("-")[0]}o(ln,"getBasePlacement");function co(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}o(co,"getBoundingClientRect");function af(e){var t=co(e),i=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:a}}o(af,"getLayoutRect");function Oh(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&iy(i)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}o(Oh,"contains");function ei(e){return wr(e).getComputedStyle(e)}o(ei,"getComputedStyle");function Px(e){return["table","td","th"].indexOf(sn(e))>=0}o(Px,"isTableElement");function Sn(e){return((_l(e)?e.ownerDocument:e.document)||window.document).documentElement}o(Sn,"getDocumentElement");function El(e){return sn(e)==="html"?e:e.assignedSlot||e.parentNode||(iy(e)?e.host:null)||Sn(e)}o(El,"getParentNode");function OO(e){return!xn(e)||ei(e).position==="fixed"?null:e.offsetParent}o(OO,"getTrueOffsetParent");function o2(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,i=navigator.userAgent.indexOf("Trident")!==-1;if(i&&xn(e)){var a=ei(e);if(a.position==="fixed")return null}for(var p=El(e);xn(p)&&["html","body"].indexOf(sn(p))<0;){var m=ei(p);if(m.transform!=="none"||m.perspective!=="none"||m.contain==="paint"||["transform","perspective"].indexOf(m.willChange)!==-1||t&&m.willChange==="filter"||t&&m.filter&&m.filter!=="none")return p;p=p.parentNode}return null}o(o2,"getContainingBlock");function jo(e){for(var t=wr(e),i=OO(e);i&&Px(i)&&ei(i).position==="static";)i=OO(i);return i&&(sn(i)==="html"||sn(i)==="body"&&ei(i).position==="static")?t:i||o2(e)||t}o(jo,"getOffsetParent");function ff(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}o(ff,"getMainAxisFromPlacement");var po=Math.max,Gu=Math.min,kh=Math.round;function cf(e,t,i){return po(e,Gu(t,i))}o(cf,"within");function Nh(){return{top:0,right:0,bottom:0,left:0}}o(Nh,"getFreshSideObject");function Lh(e){return Object.assign({},Nh(),e)}o(Lh,"mergePaddingObject");function Ph(e,t){return t.reduce(function(i,a){return i[a]=e,i},{})}o(Ph,"expandToHashMap");var s2=o(function(t,i){return t=typeof t=="function"?t(Object.assign({},i.rects,{placement:i.placement})):t,Lh(typeof t!="number"?t:Ph(t,Vu))},"toPaddingObject");function l2(e){var t,i=e.state,a=e.name,p=e.options,m=i.elements.arrow,d=i.modifiersData.popperOffsets,w=ln(i.placement),b=ff(w),L=[zr,Br].indexOf(w)>=0,F=L?"height":"width";if(!(!m||!d)){var Y=s2(p.padding,i),z=af(m),X=b==="y"?Nr:zr,ee=b==="y"?on:Br,J=i.rects.reference[F]+i.rects.reference[b]-d[b]-i.rects.popper[F],I=d[b]-i.rects.reference[b],A=jo(m),W=A?b==="y"?A.clientHeight||0:A.clientWidth||0:0,K=J/2-I/2,V=Y[X],fe=W-z[F]-Y[ee],se=W/2-z[F]/2+K,ce=cf(V,se,fe),me=b;i.modifiersData[a]=(t={},t[me]=ce,t.centerOffset=ce-se,t)}}o(l2,"arrow");function u2(e){var t=e.state,i=e.options,a=i.element,p=a===void 0?"[data-popper-arrow]":a;p!=null&&(typeof p=="string"&&(p=t.elements.popper.querySelector(p),!p)||!Oh(t.elements.popper,p)||(t.elements.arrow=p))}o(u2,"effect");var kO={name:"arrow",enabled:!0,phase:"main",fn:l2,effect:u2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var a2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function f2(e){var t=e.x,i=e.y,a=window,p=a.devicePixelRatio||1;return{x:kh(kh(t*p)/p)||0,y:kh(kh(i*p)/p)||0}}o(f2,"roundOffsetsByDPR");function NO(e){var t,i=e.popper,a=e.popperRect,p=e.placement,m=e.offsets,d=e.position,w=e.gpuAcceleration,b=e.adaptive,L=e.roundOffsets,F=L===!0?f2(m):typeof L=="function"?L(m):m,Y=F.x,z=Y===void 0?0:Y,X=F.y,ee=X===void 0?0:X,J=m.hasOwnProperty("x"),I=m.hasOwnProperty("y"),A=zr,W=Nr,K=window;if(b){var V=jo(i),fe="clientHeight",se="clientWidth";V===wr(i)&&(V=Sn(i),ei(V).position!=="static"&&(fe="scrollHeight",se="scrollWidth")),V=V,p===Nr&&(W=on,ee-=V[fe]-a.height,ee*=w?1:-1),p===zr&&(A=Br,z-=V[se]-a.width,z*=w?1:-1)}var ce=Object.assign({position:d},b&&a2);if(w){var me;return Object.assign({},ce,(me={},me[W]=I?"0":"",me[A]=J?"0":"",me.transform=(K.devicePixelRatio||1)<2?"translate("+z+"px, "+ee+"px)":"translate3d("+z+"px, "+ee+"px, 0)",me))}return Object.assign({},ce,(t={},t[W]=I?ee+"px":"",t[A]=J?z+"px":"",t.transform="",t))}o(NO,"mapToStyles");function c2(e){var t=e.state,i=e.options,a=i.gpuAcceleration,p=a===void 0?!0:a,m=i.adaptive,d=m===void 0?!0:m,w=i.roundOffsets,b=w===void 0?!0:w;if(!1)var L;var F={placement:ln(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:p};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,NO(Object.assign({},F,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:d,roundOffsets:b})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,NO(Object.assign({},F,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}o(c2,"computeStyles");var LO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:c2,data:{}};var oy={passive:!0};function p2(e){var t=e.state,i=e.instance,a=e.options,p=a.scroll,m=p===void 0?!0:p,d=a.resize,w=d===void 0?!0:d,b=wr(t.elements.popper),L=[].concat(t.scrollParents.reference,t.scrollParents.popper);return m&&L.forEach(function(F){F.addEventListener("scroll",i.update,oy)}),w&&b.addEventListener("resize",i.update,oy),function(){m&&L.forEach(function(F){F.removeEventListener("scroll",i.update,oy)}),w&&b.removeEventListener("resize",i.update,oy)}}o(p2,"effect");var PO={name:"eventListeners",enabled:!0,phase:"write",fn:o(function(){},"fn"),effect:p2,data:{}};var d2={left:"right",right:"left",bottom:"top",top:"bottom"};function lp(e){return e.replace(/left|right|bottom|top/g,function(t){return d2[t]})}o(lp,"getOppositePlacement");var h2={start:"end",end:"start"};function sy(e){return e.replace(/start|end/g,function(t){return h2[t]})}o(sy,"getOppositeVariationPlacement");function pf(e){var t=wr(e),i=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:i,scrollTop:a}}o(pf,"getWindowScroll");function df(e){return co(Sn(e)).left+pf(e).scrollLeft}o(df,"getWindowScrollBarX");function Mx(e){var t=wr(e),i=Sn(e),a=t.visualViewport,p=i.clientWidth,m=i.clientHeight,d=0,w=0;return a&&(p=a.width,m=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(d=a.offsetLeft,w=a.offsetTop)),{width:p,height:m,x:d+df(e),y:w}}o(Mx,"getViewportRect");function Ax(e){var t,i=Sn(e),a=pf(e),p=(t=e.ownerDocument)==null?void 0:t.body,m=po(i.scrollWidth,i.clientWidth,p?p.scrollWidth:0,p?p.clientWidth:0),d=po(i.scrollHeight,i.clientHeight,p?p.scrollHeight:0,p?p.clientHeight:0),w=-a.scrollLeft+df(e),b=-a.scrollTop;return ei(p||i).direction==="rtl"&&(w+=po(i.clientWidth,p?p.clientWidth:0)-m),{width:m,height:d,x:w,y:b}}o(Ax,"getDocumentRect");function hf(e){var t=ei(e),i=t.overflow,a=t.overflowX,p=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+p+a)}o(hf,"isScrollParent");function ly(e){return["html","body","#document"].indexOf(sn(e))>=0?e.ownerDocument.body:xn(e)&&hf(e)?e:ly(El(e))}o(ly,"getScrollParent");function Ku(e,t){var i;t===void 0&&(t=[]);var a=ly(e),p=a===((i=e.ownerDocument)==null?void 0:i.body),m=wr(a),d=p?[m].concat(m.visualViewport||[],hf(a)?a:[]):a,w=t.concat(d);return p?w:w.concat(Ku(El(d)))}o(Ku,"listScrollParents");function up(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}o(up,"rectToClientRect");function v2(e){var t=co(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}o(v2,"getInnerBoundingClientRect");function MO(e,t){return t===ry?up(Mx(e)):xn(t)?v2(t):up(Ax(Sn(e)))}o(MO,"getClientRectFromMixedType");function m2(e){var t=Ku(El(e)),i=["absolute","fixed"].indexOf(ei(e).position)>=0,a=i&&xn(e)?jo(e):e;return _l(a)?t.filter(function(p){return _l(p)&&Oh(p,a)&&sn(p)!=="body"}):[]}o(m2,"getClippingParents");function Dx(e,t,i){var a=t==="clippingParents"?m2(e):[].concat(t),p=[].concat(a,[i]),m=p[0],d=p.reduce(function(w,b){var L=MO(e,b);return w.top=po(L.top,w.top),w.right=Gu(L.right,w.right),w.bottom=Gu(L.bottom,w.bottom),w.left=po(L.left,w.left),w},MO(e,m));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}o(Dx,"getClippingRect");function As(e){return e.split("-")[1]}o(As,"getVariation");function Mh(e){var t=e.reference,i=e.element,a=e.placement,p=a?ln(a):null,m=a?As(a):null,d=t.x+t.width/2-i.width/2,w=t.y+t.height/2-i.height/2,b;switch(p){case Nr:b={x:d,y:t.y-i.height};break;case on:b={x:d,y:t.y+t.height};break;case Br:b={x:t.x+t.width,y:w};break;case zr:b={x:t.x-i.width,y:w};break;default:b={x:t.x,y:t.y}}var L=p?ff(p):null;if(L!=null){var F=L==="y"?"height":"width";switch(m){case Cl:b[L]=b[L]-(t[F]/2-i[F]/2);break;case ty:b[L]=b[L]+(t[F]/2-i[F]/2);break;default:}}return b}o(Mh,"computeOffsets");function qo(e,t){t===void 0&&(t={});var i=t,a=i.placement,p=a===void 0?e.placement:a,m=i.boundary,d=m===void 0?_O:m,w=i.rootBoundary,b=w===void 0?ry:w,L=i.elementContext,F=L===void 0?sp:L,Y=i.altBoundary,z=Y===void 0?!1:Y,X=i.padding,ee=X===void 0?0:X,J=Lh(typeof ee!="number"?ee:Ph(ee,Vu)),I=F===sp?EO:sp,A=e.elements.reference,W=e.rects.popper,K=e.elements[z?I:F],V=Dx(_l(K)?K:K.contextElement||Sn(e.elements.popper),d,b),fe=co(A),se=Mh({reference:fe,element:W,strategy:"absolute",placement:p}),ce=up(Object.assign({},W,se)),me=F===sp?ce:fe,ye={top:V.top-me.top+J.top,bottom:me.bottom-V.bottom+J.bottom,left:V.left-me.left+J.left,right:me.right-V.right+J.right},ze=e.modifiersData.offset;if(F===sp&&ze){var Ye=ze[p];Object.keys(ye).forEach(function(Se){var Et=[Br,on].indexOf(Se)>=0?1:-1,Rt=[Nr,on].indexOf(Se)>=0?"y":"x";ye[Se]+=Ye[Rt]*Et})}return ye}o(qo,"detectOverflow");function Ix(e,t){t===void 0&&(t={});var i=t,a=i.placement,p=i.boundary,m=i.rootBoundary,d=i.padding,w=i.flipVariations,b=i.allowedAutoPlacements,L=b===void 0?ny:b,F=As(a),Y=F?w?Lx:Lx.filter(function(ee){return As(ee)===F}):Vu,z=Y.filter(function(ee){return L.indexOf(ee)>=0});z.length===0&&(z=Y);var X=z.reduce(function(ee,J){return ee[J]=qo(e,{placement:J,boundary:p,rootBoundary:m,padding:d})[ln(J)],ee},{});return Object.keys(X).sort(function(ee,J){return X[ee]-X[J]})}o(Ix,"computeAutoPlacement");function g2(e){if(ln(e)===ey)return[];var t=lp(e);return[sy(e),t,sy(t)]}o(g2,"getExpandedFallbackPlacements");function y2(e){var t=e.state,i=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var p=i.mainAxis,m=p===void 0?!0:p,d=i.altAxis,w=d===void 0?!0:d,b=i.fallbackPlacements,L=i.padding,F=i.boundary,Y=i.rootBoundary,z=i.altBoundary,X=i.flipVariations,ee=X===void 0?!0:X,J=i.allowedAutoPlacements,I=t.options.placement,A=ln(I),W=A===I,K=b||(W||!ee?[lp(I)]:g2(I)),V=[I].concat(K).reduce(function(Ze,Lr){return Ze.concat(ln(Lr)===ey?Ix(t,{placement:Lr,boundary:F,rootBoundary:Y,padding:L,flipVariations:ee,allowedAutoPlacements:J}):Lr)},[]),fe=t.rects.reference,se=t.rects.popper,ce=new Map,me=!0,ye=V[0],ze=0;ze=0,vt=Rt?"width":"height",rt=qo(t,{placement:Ye,boundary:F,rootBoundary:Y,altBoundary:z,padding:L}),nt=Rt?Et?Br:zr:Et?on:Nr;fe[vt]>se[vt]&&(nt=lp(nt));var Sr=lp(nt),lt=[];if(m&<.push(rt[Se]<=0),w&<.push(rt[nt]<=0,rt[Sr]<=0),lt.every(function(Ze){return Ze})){ye=Ye,me=!1;break}ce.set(Ye,lt)}if(me)for(var jn=ee?3:1,fr=o(function(Lr){var Pt=V.find(function(Mt){var qr=ce.get(Mt);if(qr)return qr.slice(0,Lr).every(function(cr){return cr})});if(Pt)return ye=Pt,"break"},"_loop"),Nt=jn;Nt>0;Nt--){var mt=fr(Nt);if(mt==="break")break}t.placement!==ye&&(t.modifiersData[a]._skip=!0,t.placement=ye,t.reset=!0)}}o(y2,"flip");var AO={name:"flip",enabled:!0,phase:"main",fn:y2,requiresIfExists:["offset"],data:{_skip:!1}};function DO(e,t,i){return i===void 0&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}o(DO,"getSideOffsets");function IO(e){return[Nr,Br,on,zr].some(function(t){return e[t]>=0})}o(IO,"isAnySideFullyClipped");function w2(e){var t=e.state,i=e.name,a=t.rects.reference,p=t.rects.popper,m=t.modifiersData.preventOverflow,d=qo(t,{elementContext:"reference"}),w=qo(t,{altBoundary:!0}),b=DO(d,a),L=DO(w,p,m),F=IO(b),Y=IO(L);t.modifiersData[i]={referenceClippingOffsets:b,popperEscapeOffsets:L,isReferenceHidden:F,hasPopperEscaped:Y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":F,"data-popper-escaped":Y})}o(w2,"hide");var FO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:w2};function x2(e,t,i){var a=ln(e),p=[zr,Nr].indexOf(a)>=0?-1:1,m=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,d=m[0],w=m[1];return d=d||0,w=(w||0)*p,[zr,Br].indexOf(a)>=0?{x:w,y:d}:{x:d,y:w}}o(x2,"distanceAndSkiddingToXY");function S2(e){var t=e.state,i=e.options,a=e.name,p=i.offset,m=p===void 0?[0,0]:p,d=ny.reduce(function(F,Y){return F[Y]=x2(Y,t.rects,m),F},{}),w=d[t.placement],b=w.x,L=w.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=b,t.modifiersData.popperOffsets.y+=L),t.modifiersData[a]=d}o(S2,"offset");var RO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:S2};function C2(e){var t=e.state,i=e.name;t.modifiersData[i]=Mh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}o(C2,"popperOffsets");var WO={name:"popperOffsets",enabled:!0,phase:"read",fn:C2,data:{}};function Fx(e){return e==="x"?"y":"x"}o(Fx,"getAltAxis");function _2(e){var t=e.state,i=e.options,a=e.name,p=i.mainAxis,m=p===void 0?!0:p,d=i.altAxis,w=d===void 0?!1:d,b=i.boundary,L=i.rootBoundary,F=i.altBoundary,Y=i.padding,z=i.tether,X=z===void 0?!0:z,ee=i.tetherOffset,J=ee===void 0?0:ee,I=qo(t,{boundary:b,rootBoundary:L,padding:Y,altBoundary:F}),A=ln(t.placement),W=As(t.placement),K=!W,V=ff(A),fe=Fx(V),se=t.modifiersData.popperOffsets,ce=t.rects.reference,me=t.rects.popper,ye=typeof J=="function"?J(Object.assign({},t.rects,{placement:t.placement})):J,ze={x:0,y:0};if(!!se){if(m||w){var Ye=V==="y"?Nr:zr,Se=V==="y"?on:Br,Et=V==="y"?"height":"width",Rt=se[V],vt=se[V]+I[Ye],rt=se[V]-I[Se],nt=X?-me[Et]/2:0,Sr=W===Cl?ce[Et]:me[Et],lt=W===Cl?-me[Et]:-ce[Et],jn=t.elements.arrow,fr=X&&jn?af(jn):{width:0,height:0},Nt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Nh(),mt=Nt[Ye],Ze=Nt[Se],Lr=cf(0,ce[Et],fr[Et]),Pt=K?ce[Et]/2-nt-Lr-mt-ye:Sr-Lr-mt-ye,Mt=K?-ce[Et]/2+nt+Lr+Ze+ye:lt+Lr+Ze+ye,qr=t.elements.arrow&&jo(t.elements.arrow),cr=qr?V==="y"?qr.clientTop||0:qr.clientLeft||0:0,_n=t.modifiersData.offset?t.modifiersData.offset[t.placement][V]:0,En=se[V]+Pt-_n-cr,Xt=se[V]+Mt-_n;if(m){var je=cf(X?Gu(vt,En):vt,Rt,X?po(rt,Xt):rt);se[V]=je,ze[V]=je-Rt}if(w){var bn=V==="x"?Nr:zr,an=V==="x"?on:Br,qn=se[fe],ni=qn+I[bn],fn=qn-I[an],Qt=cf(X?Gu(ni,En):ni,qn,X?po(fn,Xt):fn);se[fe]=Qt,ze[fe]=Qt-qn}}t.modifiersData[a]=ze}}o(_2,"preventOverflow");var HO={name:"preventOverflow",enabled:!0,phase:"main",fn:_2,requiresIfExists:["offset"]};function Rx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}o(Rx,"getHTMLElementScroll");function Wx(e){return e===wr(e)||!xn(e)?pf(e):Rx(e)}o(Wx,"getNodeScroll");function Hx(e,t,i){i===void 0&&(i=!1);var a=Sn(t),p=co(e),m=xn(t),d={scrollLeft:0,scrollTop:0},w={x:0,y:0};return(m||!m&&!i)&&((sn(t)!=="body"||hf(a))&&(d=Wx(t)),xn(t)?(w=co(t),w.x+=t.clientLeft,w.y+=t.clientTop):a&&(w.x=df(a))),{x:p.left+d.scrollLeft-w.x,y:p.top+d.scrollTop-w.y,width:p.width,height:p.height}}o(Hx,"getCompositeRect");function E2(e){var t=new Map,i=new Set,a=[];e.forEach(function(m){t.set(m.name,m)});function p(m){i.add(m.name);var d=[].concat(m.requires||[],m.requiresIfExists||[]);d.forEach(function(w){if(!i.has(w)){var b=t.get(w);b&&p(b)}}),a.push(m)}return o(p,"sort"),e.forEach(function(m){i.has(m.name)||p(m)}),a}o(E2,"order");function Ux(e){var t=E2(e);return bO.reduce(function(i,a){return i.concat(t.filter(function(p){return p.phase===a}))},[])}o(Ux,"orderModifiers");function Bx(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}o(Bx,"debounce");function zx(e){var t=e.reduce(function(i,a){var p=i[a.name];return i[a.name]=p?Object.assign({},p,a,{options:Object.assign({},p.options,a.options),data:Object.assign({},p.data,a.data)}):a,i},{});return Object.keys(t).map(function(i){return t[i]})}o(zx,"mergeByName");var UO={placement:"bottom",modifiers:[],strategy:"absolute"};function BO(){for(var e=arguments.length,t=new Array(e),i=0;iur.default.createElement("li",{role:"separator",className:"divider"}),"Divider");function Cn({onClick:e,children:t,...i}){return ur.default.createElement("li",null,ur.default.createElement("a",{href:"#",onClick:o(p=>{p.preventDefault(),e()},"click"),...i},t))}o(Cn,"MenuItem");function fy({title:e,children:t}){let[i,a]=(0,ur.useState)(!1),[p,m]=(0,ur.useState)(null),[d,w]=(0,ur.useState)(null),{styles:b,attributes:L}=ay(p,d,{placement:"right-start"}),F=null;return i&&(F=ur.default.createElement("ul",{className:"dropdown-menu show",ref:w,style:b.popper,...L.popper},t)),ur.default.createElement("li",{ref:m,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1)},ur.default.createElement("a",null,ur.default.createElement("i",{className:"fa fa-caret-right pull-right","aria-hidden":"true"})," ",e),F)}o(fy,"SubMenu");var ap=ur.default.memo(o(function({text:t,children:i,options:a,className:p,onOpen:m,...d}){let[w,b]=(0,ur.useState)(null),[L,F]=(0,ur.useState)(!1),[Y,z]=(0,ur.useState)(null),{styles:X,attributes:ee}=ay(w,Y,{...a}),J=o(A=>{F(A),m&&m(A)},"setOpen");(0,ur.useEffect)(()=>{!L||setTimeout(()=>{document.addEventListener("click",()=>{setTimeout(()=>J(!1))},{once:!0})})},[L]);let I;return L?I=ur.default.createElement("ul",{className:"dropdown-menu show",ref:z,style:X.popper,...ee.popper},i):I=null,ur.default.createElement(ur.default.Fragment,null,ur.default.createElement("a",{href:"#",ref:b,className:(0,VO.default)(p,{open:L}),onClick:()=>J(!0),...d},t),I)},"Dropdown"));var qx=o(({flow:e})=>Qe.default.createElement("td",{className:(0,cy.default)("col-tls",e.client_conn.tls_established?"col-tls-https":"col-tls-http")}),"TLSColumn");qx.headerClass="col-tls";qx.headerName="";var $x=o(({flow:e})=>Qe.default.createElement("td",{className:"col-icon"},Qe.default.createElement("div",{className:(0,cy.default)("resource-icon",P2(e))})),"IconColumn");$x.headerClass="col-icon";$x.headerName="";var P2=o(e=>{if(e.type!=="http"||!e.response)return"resource-icon-plain";var t=Sl.getContentType(e.response)||"";return e.response.status_code===304?"resource-icon-not-modified":300<=e.response.status_code&&e.response.status_code<400?"resource-icon-redirect":t.indexOf("image")>=0?"resource-icon-image":t.indexOf("javascript")>=0?"resource-icon-js":t.indexOf("css")>=0?"resource-icon-css":t.indexOf("html")>=0?"resource-icon-document":"resource-icon-plain"},"getIcon"),Vx=o(({flow:e})=>{let t;return e.error&&(e.error.msg==="Connection killed."?t=Qe.default.createElement("i",{className:"fa fa-fw fa-times pull-right"}):t=Qe.default.createElement("i",{className:"fa fa-fw fa-exclamation pull-right"})),Qe.default.createElement("td",{className:"col-path"},e.is_replay==="request"&&Qe.default.createElement("i",{className:"fa fa-fw fa-repeat pull-right"}),e.intercepted&&Qe.default.createElement("i",{className:"fa fa-fw fa-pause pull-right"}),t,e.type==="http"?fo.pretty_url(e.request):null)},"PathColumn");Vx.headerClass="col-path";Vx.headerName="Path";var Gx=o(({flow:e})=>Qe.default.createElement("td",{className:"col-method"},e.type==="http"?e.request.method:e.type.toLowerCase()),"MethodColumn");Gx.headerClass="col-method";Gx.headerName="Method";var Kx=o(({flow:e})=>{let t="darkred";return e.type!=="http"||!e.response?Qe.default.createElement("td",{className:"col-status"}):(100<=e.response.status_code&&e.response.status_code<200?t="green":200<=e.response.status_code&&e.response.status_code<300?t="darkgreen":300<=e.response.status_code&&e.response.status_code<400?t="lightblue":(400<=e.response.status_code&&e.response.status_code<500||500<=e.response.status_code&&e.response.status_code<600)&&(t="lightred"),Qe.default.createElement("td",{className:"col-status",style:{color:t}},e.response.status_code))},"StatusColumn");Kx.headerClass="col-status";Kx.headerName="Status";var Yx=o(({flow:e})=>Qe.default.createElement("td",{className:"col-size"},Jc(M2(e))),"SizeColumn"),M2=o(e=>{if(e.type!=="http")return 0;let t=e.request.contentLength;return e.response&&(t+=e.response.contentLength||0),t},"getTotalSize");Yx.headerClass="col-size";Yx.headerName="Size";var Xx=o(({flow:e})=>Qe.default.createElement("td",{className:"col-time"},e.type==="http"&&e.response?.timestamp_end?Wg(1e3*(e.response.timestamp_end-e.request.timestamp_start)):"..."),"TimeColumn");Xx.headerClass="col-time";Xx.headerName="Time";var Qx=o(({flow:e})=>Qe.default.createElement("td",{className:"col-start"},e.type==="http"&&e.request.timestamp_start?ep(e.request.timestamp_start):"..."),"TimeStampColumn");Qx.headerClass="col-timestamp";Qx.headerName="TimeStamp";var vf=o(({flow:e})=>{let t=xl(),[i,a]=(0,Qe.useState)(!1),p=o(b=>{!e||Ft(`/flows/${e.id}/export/${b}.json`,{method:"POST"}).then(L=>L.json()).then(L=>{navigator.clipboard.writeText(L.export)})},"copy"),m=null;if(e.intercepted?m=Qe.default.createElement("a",{href:"#",className:"quickaction",onClick:()=>t(rp(e))},Qe.default.createElement("i",{className:"fa fa-fw fa-play text-success"})):m=Qe.default.createElement("a",{href:"#",className:"quickaction",onClick:()=>t(np(e))},Qe.default.createElement("i",{className:"fa fa-fw fa-repeat text-primary"})),e.type!=="http")return Qe.default.createElement("td",{className:"col-quickactions"});let d=o(b=>t(CO(b)),"filt"),w=e.response&&Sl.getContentType(e.response);return Qe.default.createElement("td",{className:(0,cy.default)("col-quickactions",{hover:i}),onClick:b=>0},Qe.default.createElement("div",null,m,Qe.default.createElement(ap,{text:Qe.default.createElement("i",{className:"fa fa-fw fa-ellipsis-h text-muted"}),className:"quickaction",onOpen:a,options:{placement:"bottom-end"}},Qe.default.createElement(fy,{title:"Copy..."},Qe.default.createElement(Cn,{onClick:()=>p("raw_request")},"Copy raw request"),Qe.default.createElement(Cn,{onClick:()=>p("raw_response")},"Copy raw response"),Qe.default.createElement(Cn,{onClick:()=>p("raw")},"Copy raw request and response"),Qe.default.createElement(Cn,{onClick:()=>p("curl")},"Copy as cURL"),Qe.default.createElement(Cn,{onClick:()=>p("httpie")},"Copy as HTTPie")),Qe.default.createElement(fy,{title:"Intercept requests like this"},Qe.default.createElement(Cn,{onClick:()=>d(`~q ${e.request.host}`)},"Requests to ",e.request.host),e.request.path!=="/"&&Qe.default.createElement(Cn,{onClick:()=>d(`~q ${e.request.host}${e.request.path}`)},"Requests to ",e.request.host+e.request.path),e.request.method!=="GET"&&Qe.default.createElement(Cn,{onClick:()=>d(`~q ~m ${e.request.method} ${e.request.host}`)},e.request.method," requests to ",e.request.host)),Qe.default.createElement(fy,{title:"Intercept responses like this"},Qe.default.createElement(Cn,{onClick:()=>d(`~s ${e.request.host}`)},"Responses from ",e.request.host),e.request.path!=="/"&&Qe.default.createElement(Cn,{onClick:()=>d(`~s ${e.request.host}${e.request.path}`)},"Responses from ",e.request.host+e.request.path),!!w&&Qe.default.createElement(Cn,{onClick:()=>d(`~ts ${w}`)},"Responses with a ",w," content type.")))))},"QuickActionsColumn");vf.headerClass="col-quickactions";vf.headerName="";var Ah={};for(let e of[qx,$x,Vx,Gx,Kx,Qx,Yx,Xx,vf])Ah[e.name.replace(/Column$/,"").toLowerCase()]=e;function Zx(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}o(Zx,"_defineProperty");function KO(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(p){return Object.getOwnPropertyDescriptor(e,p).enumerable})),i.push.apply(i,a)}return i}o(KO,"ownKeys");function py(e){for(var t=1;ti[a.level]))};case QO:case I2:return{...e,...Bo(e,Eh[t.cmd](t.data,a=>e.filters[a.level]))};default:return e}}o(rS,"reduce");function ek(e){return{type:JO,filter:e}}o(ek,"toggleFilter");function fp(){return{type:ZO}}o(fp,"toggleVisibility");function tk(e,t="web"){let i={id:Math.random().toString(),message:e,level:t};return{type:QO,cmd:"add",data:i}}o(tk,"add");var rk="UI_SET_ACTIVE_MENU",R2={activeMenu:"Start",isFlowSelected:!1};function nS(e=R2,t){switch(t.type){case rk:return{...e,activeMenu:t.activeMenu};case tp:if(t.flowIds.length>0&&!e.isFlowSelected)return{...e,activeMenu:"Flow",isFlowSelected:!0};if(t.flowIds.length===0&&e.isFlowSelected){let i=e.activeMenu;return i==="Flow"&&(i="Start"),{...e,activeMenu:i,isFlowSelected:!1}}return e;default:return e}}o(nS,"reducer");function nk(e){return{type:rk,activeMenu:e}}o(nk,"setActiveMenu");var ik=hy({flow:QT,header:nS,modal:Cx,optionsEditor:bx});var Un;(function(m){m.INIT="CONNECTION_INIT",m.FETCHING="CONNECTION_FETCHING",m.ESTABLISHED="CONNECTION_ESTABLISHED",m.ERROR="CONNECTION_ERROR",m.OFFLINE="CONNECTION_OFFLINE"})(Un||(Un={}));var W2={state:Un.INIT,message:void 0},H2=o((e=W2,t)=>{switch(t.type){case Un.ESTABLISHED:case Un.FETCHING:case Un.ERROR:case Un.OFFLINE:return{state:t.type,message:t.message};default:return e}},"reducer"),ok=H2;function sk(){return{type:Un.FETCHING}}o(sk,"startFetching");function lk(){return{type:Un.ESTABLISHED}}o(lk,"connectionEstablished");function uk(e){return{type:Un.ERROR,message:e}}o(uk,"connectionError");function ak(e){return function(t){var i=t.dispatch,a=t.getState;return function(p){return function(m){return typeof m=="function"?m(i,a,e):p(m)}}}}o(ak,"createThunkMiddleware");var fk=ak();fk.withExtraArgument=ak;var ck=fk;var U2=window.MITMWEB_CONF||{static:!1,version:"1.2.3",contentViews:["Auto","Raw"]},B2=o((e=U2,t)=>e,"reducer"),pk=B2;var z2={},j2=o((e=z2,t)=>{switch(t.type){case Tx:return t.data;case Ox:return{...e,...t.data};default:return e}},"reducer"),dk=j2;var q2=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||tS,$2=hy({eventLog:rS,flows:xx,connection:ok,ui:ik,options:xO,options_meta:dk,conf:pk}),V2=o(e=>eS($2,e,q2(XO(ck))),"createAppStore"),cp=V2(void 0),$o=o(()=>xl(),"useAppDispatch"),ar=tx;var vk=vy.default.memo(o(function(){let t=$o(),i=ar(w=>w.flows.sort.desc),a=ar(w=>w.flows.sort.column),p=ar(w=>w.options.web_columns),m=i?"sort-desc":"sort-asc",d=p.map(w=>Ah[w]).concat(vf);return vy.default.createElement("tr",null,d.map(w=>vy.default.createElement("th",{className:(0,hk.default)(w.headerClass,a===w.name&&m),key:w.name,onClick:()=>t(IT(w.name,w.name!==a?!1:!i))},w.headerName)))},"FlowTableHead"));var pp=re(ke()),mk=re(xi());var gk=pp.default.memo(o(function({flow:t,selected:i,highlighted:a}){let p=$o(),m=ar(L=>L.options.web_columns),d=(0,mk.default)({selected:i,highlighted:a,intercepted:t.intercepted,"has-request":t.type==="http"&&t.request,"has-response":t.type==="http"&&t.response}),w=(0,pp.useCallback)(L=>{let F=L.target;for(;F.parentNode;){if(F.classList.contains("col-quickactions"))return;F=F.parentNode}p(sf(t.id))},[t]),b=m.map(L=>Ah[L]).concat(vf);return pp.default.createElement("tr",{className:d,onClick:w},b.map(L=>pp.default.createElement(L,{key:L.name,flow:t})))},"FlowRow"));var Ih=class extends Ds.default.Component{constructor(t,i){super(t,i);this.state={vScroll:op()},this.onViewportUpdate=this.onViewportUpdate.bind(this)}UNSAFE_componentWillMount(){window.addEventListener("resize",this.onViewportUpdate)}UNSAFE_componentWillUnmount(){window.removeEventListener("resize",this.onViewportUpdate)}componentDidUpdate(){if(this.onViewportUpdate(),!this.shouldScrollIntoView)return;this.shouldScrollIntoView=!1;let{rowHeight:t,flows:i,selected:a}=this.props,p=my.default.findDOMNode(this),m=my.default.findDOMNode(this.refs.head),d=m?m.offsetHeight:0,w=i.indexOf(a)*t+d,b=w+t,L=p.scrollTop,F=p.offsetHeight;w-dL+F&&(p.scrollTop=b-F)}UNSAFE_componentWillReceiveProps(t){t.selected&&t.selected!==this.props.selected&&(this.shouldScrollIntoView=!0)}onViewportUpdate(){let t=my.default.findDOMNode(this),i=t.scrollTop||0,a=op({viewportTop:i,viewportHeight:t.offsetHeight||0,itemCount:this.props.flows.length,rowHeight:this.props.rowHeight});(this.state.viewportTop!==i||!(0,yk.default)(this.state.vScroll,a))&&this.setState({vScroll:a,viewportTop:i})}render(){let{vScroll:t,viewportTop:i}=this.state,{flows:a,selected:p,highlight:m}=this.props,d=m?nf.parse(m):()=>!1;return Ds.default.createElement("div",{className:"flow-table",onScroll:this.onViewportUpdate},Ds.default.createElement("table",null,Ds.default.createElement("thead",{ref:"head",style:{transform:`translateY(${i}px)`}},Ds.default.createElement(vk,null)),Ds.default.createElement("tbody",null,Ds.default.createElement("tr",{style:{height:t.paddingTop}}),a.slice(t.start,t.end).map(w=>Ds.default.createElement(gk,{key:w.id,flow:w,selected:w===p,highlighted:d(w)})),Ds.default.createElement("tr",{style:{height:t.paddingBottom}}))))}};o(Ih,"FlowTable"),At(Ih,"propTypes",{flows:Dh.default.array.isRequired,rowHeight:Dh.default.number,highlight:Dh.default.string,selected:Dh.default.object}),At(Ih,"defaultProps",{rowHeight:32});var G2=Zg(Ih),wk=et(e=>({flows:e.flows.view,highlight:e.flows.highlight,selected:e.flows.byId[e.flows.selected[0]]}))(G2);var Ly=re(ke());var qk=re(Uo());var Fh=re(ke()),mf=re(It());var xk=re(xi()),Sk=re(Uo());K2.propTypes={icon:mf.default.string.isRequired,title:mf.default.string.isRequired,onClick:mf.default.func.isRequired};function K2({icon:e,title:t,onClick:i}){return Fh.default.createElement("a",{title:t,href:"#",className:"nav-action",onClick:a=>{a.preventDefault(),i(a)}},Fh.default.createElement("i",{className:`fa fa-fw ${e}`}))}o(K2,"NavAction");gy.propTypes={active:mf.default.string.isRequired,tabs:mf.default.array.isRequired,onSelectTab:mf.default.func.isRequired};function gy({active:e,tabs:t,onSelectTab:i}){return Fh.default.createElement("nav",{className:"nav-tabs nav-tabs-sm"},t.map(a=>Fh.default.createElement("a",{key:a,href:"#",className:(0,xk.default)({active:e===a}),onClick:p=>{p.preventDefault(),i(a)}},Sk.default.capitalize(a))))}o(gy,"Nav");var Ke=re(ke()),Bk=re(It());var Qu=re(ke()),dS=re(It());var Vo=re(ke()),Xu=re(It());var Rh=re(ke()),yy=re(It());function wy(e){return class extends Rh.default.Component{static displayName=e.displayName||e.name;static matches=e.matches;static propTypes={...e.propTypes,content:yy.default.string,flow:yy.default.object.isRequired,message:yy.default.object.isRequired};constructor(t){super(t);this.state={content:void 0,request:void 0}}componentDidMount(){this.updateContent(this.props)}UNSAFE_componentWillReceiveProps(t){(t.message.content!==this.props.message.content||t.message.contentHash!==this.props.message.contentHash||t.contentView!==this.props.contentView)&&this.updateContent(t)}componentWillUnmount(){this.state.request&&this.state.request.abort()}updateContent(t){if(this.state.request&&this.state.request.abort(),t.message.content!==void 0)return this.setState({request:void 0,content:t.message.content});if(t.message.contentLength===0)return this.setState({request:void 0,content:""});let i=zo.getContentURL(t.flow,t.message,t.contentView),a=new XMLHttpRequest;a.addEventListener("load",this.requestComplete.bind(this,a)),a.addEventListener("error",this.requestFailed.bind(this,a)),a.open("GET",i),a.send(),this.setState({request:a,content:void 0})}requestComplete(t,i){t===this.state.request&&this.setState({content:t.responseText,request:void 0})}requestFailed(t,i){t===this.state.request&&(console.error(i),this.setState({content:"Error getting content.",request:void 0}))}render(){return this.state.content!==void 0?Rh.default.createElement(e,{content:this.state.content,...this.props}):Rh.default.createElement("div",{className:"text-center"},Rh.default.createElement("i",{className:"fa fa-spinner fa-spin"}))}}}o(wy,"withContentLoader");var lS=re(ke()),uS=re(It());var xy=re(ke()),_k=re(xi()),Ek=re(Ck()),sS=re(Uo());function bk(e){return e&&e.replace(/\r\n|\r/g,` -`)}o(bk,"normalizeLineEndings");var dp=class extends xy.default.Component{constructor(t){super(t);this.state={isFocused:!1}}getCodeMirrorInstance(){return this.props.codeMirrorInstance||Ek.default}UNSAFE_componentWillMount(){this.componentWillReceiveProps=sS.default.debounce(this.componentWillReceiveProps,0),this.props.path&&console.error("Warning: react-codemirror: the `path` prop has been changed to `name`")}componentDidMount(){let t=this.getCodeMirrorInstance();this.codeMirror=t.fromTextArea(this.textareaNode,this.props.options),this.codeMirror.on("change",this.codemirrorValueChanged),this.codeMirror.on("cursorActivity",this.cursorActivity),this.codeMirror.on("focus",this.focusChanged.bind(this,!0)),this.codeMirror.on("blur",this.focusChanged.bind(this,!1)),this.codeMirror.on("scroll",this.scrollChanged),this.codeMirror.setValue(this.props.defaultValue||this.props.value||"")}componentWillUnmount(){this.codeMirror&&this.codeMirror.toTextArea()}UNSAFE_componentWillReceiveProps(t){if(this.codeMirror&&t.value!==void 0&&t.value!==this.props.value&&bk(this.codeMirror.getValue())!==bk(t.value))if(this.props.preserveScrollPosition){var i=this.codeMirror.getScrollInfo();this.codeMirror.setValue(t.value),this.codeMirror.scrollTo(i.left,i.top)}else this.codeMirror.setValue(t.value);if(typeof t.options=="object")for(let a in t.options)t.options.hasOwnProperty(a)&&this.setOptionIfChanged(a,t.options[a])}setOptionIfChanged(t,i){let a=this.codeMirror.getOption(t);sS.default.isEqual(a,i)||this.codeMirror.setOption(t,i)}getCodeMirror(){return this.codeMirror}focus(){this.codeMirror&&this.codeMirror.focus()}focusChanged(t){this.setState({isFocused:t}),this.props.onFocusChange&&this.props.onFocusChange(t)}cursorActivity(t){this.props.onCursorActivity&&this.props.onCursorActivity(t)}scrollChanged(t){this.props.onScroll&&this.props.onScroll(t.getScrollInfo())}codemirrorValueChanged(t,i){this.props.onChange&&i.origin!=="setValue"&&this.props.onChange(t.getValue(),i)}render(){let t=(0,_k.default)("ReactCodeMirror",this.state.isFocused?"ReactCodeMirror--focused":null,this.props.className);return xy.default.createElement("div",{className:t},xy.default.createElement("textarea",{ref:i=>this.textareaNode=i,name:this.props.name||this.props.path,defaultValue:this.props.value,autoComplete:"off",autoFocus:this.props.autoFocus}))}};o(dp,"CodeMirror"),dp.defaultProps={preserveScrollPosition:!1};Sy.propTypes={content:uS.default.string.isRequired,onChange:uS.default.func.isRequired};function Sy({content:e,onChange:t}){return lS.default.createElement("div",{className:"codeeditor",onKeyDown:a=>a.stopPropagation()},lS.default.createElement(dp,{value:e,onChange:t,options:{lineNumbers:!0}}))}o(Sy,"CodeEditor");var Y2=/^image\/(png|jpe?g|gif|webp|vnc.microsoft.icon|x-icon)$/i;hp.matches=e=>Y2.test(zo.getContentType(e));hp.propTypes={flow:Xu.default.object.isRequired,message:Xu.default.object.isRequired};function hp({flow:e,message:t}){return Vo.default.createElement("div",{className:"flowview-image"},Vo.default.createElement("img",{src:zo.getContentURL(e,t),alt:"preview",className:"img-thumbnail"}))}o(hp,"ViewImage");Wh.propTypes={content:Xu.default.string.isRequired};function Wh({content:e,onChange:t}){return Vo.default.createElement(Sy,{content:e,onChange:t})}o(Wh,"Edit");Wh=wy(Wh);var Cy=class extends Vo.Component{UNSAFE_componentWillMount(){this.setContentView(this.props)}UNSAFE_componentWillReceiveProps(t){t.content!==this.props.content&&this.setContentView(t)}setContentView(t){try{this.data=JSON.parse(t.content)}catch(i){this.data={lines:[],description:i.message}}t.setContentViewDescription(t.contentView!==this.data.description?this.data.description:""),t.setContent(this.data.lines)}render(){let{content:t,contentView:i,message:a,maxLines:p}=this.props,m=this.props.showFullContent?this.data.lines:this.data.lines.slice(0,p);return Vo.default.createElement("div",null,hp.matches(a)&&Vo.default.createElement(hp,{...this.props}),Vo.default.createElement("pre",null,m.map((d,w)=>Vo.default.createElement("div",{key:`line${w}`},d.map((b,L)=>{let[F,Y]=b;return Vo.default.createElement("span",{key:`tuple${L}`,className:F},Y)})))))}};o(Cy,"PureViewServer"),At(Cy,"propTypes",{showFullContent:Xu.default.bool.isRequired,maxLines:Xu.default.number.isRequired,setContentViewDescription:Xu.default.func.isRequired,setContent:Xu.default.func.isRequired});var Tk=et(e=>({showFullContent:e.ui.flow.showFullContent,maxLines:e.ui.flow.maxContentLines}),{setContentViewDescription:tO,setContent:nO})(wy(Cy));var bl=re(ke());var Ok=re(ke()),kk=re(It());var Hh=re(ke()),_y=Hh.default.memo(o(function({icon:t,text:i,className:a,title:p,onOpenFile:m,onClick:d}){let w;return Hh.default.createElement("a",{href:"#",onClick:b=>{w.click(),d&&d(b)},className:a,title:p},Hh.default.createElement("i",{className:"fa fa-fw "+t}),i,Hh.default.createElement("input",{ref:b=>w=b,className:"hidden",type:"file",onChange:b=>{b.preventDefault(),b.target.files&&b.target.files.length>0&&m(b.target.files[0]),w.value=""}}))},"FileChooser"));vp.propTypes={uploadContent:kk.default.func.isRequired};function vp({uploadContent:e}){return Ok.default.createElement(_y,{icon:"fa-upload",title:"Upload a file to replace the content.",onOpenFile:e,className:"btn btn-default btn-xs"})}o(vp,"UploadContentButton");var aS=re(ke());var fS=re(It());mp.propTypes={flow:fS.default.object.isRequired,message:fS.default.object.isRequired};function mp({flow:e,message:t}){return aS.default.createElement("a",{className:"btn btn-default btn-xs",href:zo.getContentURL(e,t),title:"Download the content of the flow."},aS.default.createElement("i",{className:"fa fa-download"}))}o(mp,"DownloadContentButton");function Nk({flow:e,message:t}){return bl.default.createElement("div",{className:"alert alert-info"},"No ",e.request===t?"request":"response"," content.")}o(Nk,"ContentEmpty");function Lk({flow:e,message:t}){return bl.default.createElement("div",{className:"alert alert-info"},e.request===t?"Request":"Response"," content missing.")}o(Lk,"ContentMissing");function Pk({message:e,onClick:t,uploadContent:i,flow:a}){return bl.default.createElement("div",null,bl.default.createElement("div",{className:"alert alert-warning"},bl.default.createElement("button",{onClick:t,className:"btn btn-xs btn-warning pull-right"},"Display anyway"),Jc(e.contentLength)," content size."),bl.default.createElement("div",{className:"view-options text-center"},bl.default.createElement(vp,{uploadContent:i}),"\xA0",bl.default.createElement(mp,{flow:a,message:e})))}o(Pk,"ContentTooLarge");var Ey=re(ke()),pS=re(It());var Ez=re(Ms());var cS=re(ke()),Uh=re(It()),Mk=re(xi());Bn.propTypes={onClick:Uh.default.func.isRequired,children:Uh.default.node,icon:Uh.default.string,title:Uh.default.string};function Bn({onClick:e,children:t,icon:i,disabled:a,className:p,title:m}){return cS.default.createElement("button",{className:(0,Mk.default)(p,"btn btn-default"),onClick:a?void 0:e,disabled:a,title:m},i&&cS.default.createElement("i",{className:"fa fa-fw "+i}),t)}o(Bn,"Button");Ak.propTypes={setShowFullContent:pS.default.func.isRequired,showFullContent:pS.default.bool.isRequired};function Ak({setShowFullContent:e,showFullContent:t,visibleLines:i,contentLines:a}){return!t&&Ey.default.createElement("div",null,Ey.default.createElement(Bn,{className:"view-all-content-btn btn-xs",onClick:()=>e()},"Show full content"),Ey.default.createElement("span",{className:"pull-right"}," ",i,"/",a," are visible \xA0 "))}o(Ak,"ShowFullContentButton");var Dk=et(e=>({showFullContent:e.ui.flow.showFullContent,visibleLines:e.ui.flow.maxContentLines,contentLines:e.ui.flow.content.length}),{setShowFullContent:rO})(Ak);by.propTypes={flow:dS.default.object.isRequired,message:dS.default.object.isRequired};by.isContentTooLarge=e=>e.contentLength>1024*1024*(hp.matches(e)?10:.2);function by(e){let{flow:t,message:i,contentView:a,isDisplayLarge:p,displayLarge:m,onContentChange:d,readonly:w}=e;if(i.contentLength===0&&w)return Qu.default.createElement(Nk,{...e});if(i.contentLength===null&&w)return Qu.default.createElement(Lk,{...e});if(!p&&by.isContentTooLarge(i))return Qu.default.createElement(Pk,{...e,onClick:m});let b;return a==="Edit"?b=Qu.default.createElement(Wh,{flow:t,message:i,onChange:d}):b=Qu.default.createElement(Tk,{flow:t,message:i,contentView:a}),Qu.default.createElement("div",{className:"contentview"},b,Qu.default.createElement(Dk,null))}o(by,"ContentView");var hS=et(e=>({contentView:e.ui.flow.contentView,isDisplayLarge:e.ui.flow.displayLarge}),{displayLarge:JT,updateEdit:Kg})(by);var Zu=re(ke()),vS=re(It());var gf=re(ke());var Ik=gf.default.memo(o(function(){let t=$o(),i=ar(m=>m.conf.contentViews||[]),a=ar(m=>m.ui.flow.contentView),p=gf.default.createElement("span",null,gf.default.createElement("b",null,"View:")," ",a.toLowerCase()," ",gf.default.createElement("span",{className:"caret"}));return gf.default.createElement(ap,{text:p,className:"btn btn-default btn-xs pull-left",options:{placement:"top-start"}},i.map(m=>gf.default.createElement(Cn,{key:m,onClick:()=>t(ZT(m))},m.toLowerCase().replace("_"," "))))},"ViewSelector"));Fk.propTypes={flow:vS.default.object.isRequired,message:vS.default.object.isRequired};function Fk({flow:e,message:t,uploadContent:i,readonly:a,contentViewDescription:p}){return Zu.default.createElement("div",{className:"view-options"},a?Zu.default.createElement(Ik,{message:t}):Zu.default.createElement("span",null,Zu.default.createElement("b",null,"View:")," edit"),"\xA0",Zu.default.createElement(mp,{flow:e,message:t}),"\xA0",!a&&Zu.default.createElement(vp,{uploadContent:i}),"\xA0",a&&Zu.default.createElement("span",null,p))}o(Fk,"ContentViewOptions");var mS=et(e=>({contentViewDescription:e.ui.flow.viewDescription,readonly:!e.ui.flow.modifiedFlow}))(Fk);var Oy=re(ke()),gp=re(It());var Ty=re(ke()),yf=re(It()),gS=re(Uo()),Rk=re(xi());var ho=class extends Ty.Component{constructor(t){super(t);this.state={editable:!1},this.onPaste=this.onPaste.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.blur=this.blur.bind(this),this.onBlur=this.onBlur.bind(this),this.reset=this.reset.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onInput=this.onInput.bind(this)}blur(){this.input.blur()}reset(){this.input.innerHTML=gS.default.escape(this.props.content)}render(){let t=(0,Rk.default)("inline-input",{readonly:this.props.readonly,editable:!this.props.readonly},this.props.className);return Ty.default.createElement("div",{ref:i=>this.input=i,tabIndex:this.props.readonly?void 0:0,className:t,contentEditable:this.state.editable||void 0,onFocus:this.onFocus,onMouseDown:this.onMouseDown,onClick:this.onClick,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onInput:this.onInput,onPaste:this.onPaste,dangerouslySetInnerHTML:{__html:gS.default.escape(this.props.content)}})}onPaste(t){t.preventDefault();var i=t.clipboardData.getData("text/plain");document.execCommand("insertHTML",!1,i)}onMouseDown(t){this._mouseDown=!0,window.addEventListener("mouseup",this.onMouseUp)}onMouseUp(){this._mouseDown&&(this._mouseDown=!1,window.removeEventListener("mouseup",this.onMouseUp))}onClick(t){this.onMouseUp(),this.onFocus(t)}onFocus(t){if(this._mouseDown||this._ignore_events||this.state.editable||this.props.readonly)return;let i=window.getSelection(),a;if(i.rangeCount>0)a=i.getRangeAt(0);else if(document.caretPositionFromPoint&&t.clientX&&t.clientY){let p=document.caretPositionFromPoint(t.clientX,t.clientY);a=document.createRange(),a.setStart(p.offsetNode,p.offset)}else document.caretRangeFromPoint&&t.clientX&&t.clientY?a=document.caretRangeFromPoint(t.clientX,t.clientY):(a=document.createRange(),a.selectNodeContents(this.input));this._ignore_events=!0,this.setState({editable:!0},()=>{this.input.blur(),this.input.focus(),this._ignore_events=!1,a.selectNodeContents(this.input),i.removeAllRanges(),i.addRange(a)})}onBlur(t){this._ignore_events||this.props.readonly||(window.getSelection().removeAllRanges(),this.setState({editable:!1}),this.props.onDone(this.input.textContent))}onKeyDown(t){switch(t.stopPropagation(),t.keyCode){case dt.ESC:t.preventDefault(),this.reset(),this.blur();break;case dt.ENTER:t.shiftKey||(t.preventDefault(),this.blur());break;default:break}this.props.onKeyDown(t)}onInput(){this.props.onInput(this.input.textContent)}};o(ho,"ValueEditor"),At(ho,"propTypes",{content:yf.default.string.isRequired,readonly:yf.default.bool,onDone:yf.default.func.isRequired,className:yf.default.string,onInput:yf.default.func,onKeyDown:yf.default.func}),At(ho,"defaultProps",{onInput:()=>{},onKeyDown:()=>{}});var Wk=re(xi()),Tl=class extends Oy.Component{constructor(t){super(t);this.state={valid:t.isValid(t.content)},this.onInput=this.onInput.bind(this),this.onDone=this.onDone.bind(this)}UNSAFE_componentWillReceiveProps(t){this.setState({valid:t.isValid(t.content)})}onInput(t){this.setState({valid:this.props.isValid(t)})}onDone(t){this.props.isValid(t)||(this.editor.reset(),t=this.props.content),this.props.onDone(t)}render(){let t=(0,Wk.default)(this.props.className,{"has-success":this.state.valid,"has-warning":!this.state.valid});return Oy.default.createElement(ho,{content:this.props.content,readonly:this.props.readonly,onDone:this.onDone,onInput:this.onInput,className:t,ref:i=>this.editor=i})}};o(Tl,"ValidateEditor"),At(Tl,"propTypes",{content:gp.default.string.isRequired,readonly:gp.default.bool,onDone:gp.default.func.isRequired,className:gp.default.string,isValid:gp.default.func.isRequired});var Yz=re(ke());function ti({children:e}){return window.MITMWEB_CONF&&window.MITMWEB_CONF.static?null:[e]}o(ti,"HideInStatic");var ri=re(ke()),ky=re(It()),Hk=re(Ms());var Ny=class extends ri.Component{constructor(t){super(t);this.onKeyDown=this.onKeyDown.bind(this)}render(){let{onTab:t,...i}=this.props;return ri.default.createElement(ho,{...i,onKeyDown:this.onKeyDown})}focus(){Hk.default.findDOMNode(this).focus()}onKeyDown(t){switch(t.keyCode){case dt.BACKSPACE:var i=window.getSelection().getRangeAt(0);i.startOffset===0&&i.endOffset===0&&this.props.onRemove(t);break;case dt.ENTER:case dt.TAB:t.shiftKey||this.props.onTab(t);break}}};o(Ny,"HeaderEditor");var Is=class extends ri.Component{onChange(t,i,a){let p=_.cloneDeep(this.props.message[this.props.type]);p[t][i]=a,!p[t][0]&&!p[t][1]&&(p.length===1?(p[0][0]="Name",p[0][1]="Value"):(p.splice(t,1),t===p.length&&(this._nextSel=`${t-1}-value`))),this.props.onChange(p)}edit(){this.refs["0-key"].focus()}onTab(t,i,a){let p=this.props.message[this.props.type];if(i===0){this._nextSel=`${t}-value`;return}if(t!==p.length-1){this._nextSel=`${t+1}-key`;return}a.preventDefault();let m=_.cloneDeep(this.props.message[this.props.type]);m.push(["Name","Value"]),this.props.onChange(m),this._nextSel=`${t+1}-key`}componentDidUpdate(){this._nextSel&&this.refs[this._nextSel]&&(this.refs[this._nextSel].focus(),this._nextSel=void 0)}onRemove(t,i,a){i===1?(a.preventDefault(),this.refs[`${t}-key`].focus()):t>0&&(a.preventDefault(),this.refs[`${t-1}-value`].focus())}render(){let{message:t,readonly:i}=this.props;return t[this.props.type]?ri.default.createElement("table",{className:"header-table"},ri.default.createElement("tbody",null,t[this.props.type].map((a,p)=>ri.default.createElement("tr",{key:p},ri.default.createElement("td",{className:"header-name"},ri.default.createElement(Ny,{ref:`${p}-key`,content:a[0],readonly:i,onDone:m=>this.onChange(p,0,m),onRemove:m=>this.onRemove(p,0,m),onTab:m=>this.onTab(p,0,m)}),ri.default.createElement("span",{className:"header-colon"},":")),ri.default.createElement("td",{className:"header-value"},ri.default.createElement(Ny,{ref:`${p}-value`,content:a[1],readonly:i,onDone:m=>this.onChange(p,1,m),onRemove:m=>this.onRemove(p,1,m),onTab:m=>this.onTab(p,1,m)})))))):ri.default.createElement("table",{className:"header-table"},ri.default.createElement("tbody",null))}};o(Is,"Headers"),At(Is,"propTypes",{onChange:ky.default.func.isRequired,message:ky.default.object.isRequired,type:ky.default.string.isRequired}),At(Is,"defaultProps",{type:"headers"});var yp=re(ke()),Bh=re(It());Uk.propTypes={isEdit:Bh.default.bool.isRequired,flow:Bh.default.object.isRequired,startEdit:Bh.default.func.isRequired,stopEdit:Bh.default.func.isRequired};function Uk({isEdit:e,startEdit:t,stopEdit:i,flow:a,modifiedFlow:p}){return yp.default.createElement("div",{className:"edit-flow-container"},e?yp.default.createElement("a",{className:"edit-flow",title:"Finish Edit",onClick:()=>i(a,p)},yp.default.createElement("i",{className:"fa fa-check"})):yp.default.createElement("a",{className:"edit-flow",title:"Edit Flow",onClick:()=>t(a)},yp.default.createElement("i",{className:"fa fa-pencil"})))}o(Uk,"ToggleEdit");var yS=et(e=>({isEdit:!!e.ui.flow.modifiedFlow,modifiedFlow:e.ui.flow.modifiedFlow||e.flows.byId[e.flows.selected[0]],flow:e.flows.byId[e.flows.selected[0]]}),{startEdit:eO,stopEdit:iO})(Uk);function X2({flow:e,readonly:t,updateFlow:i}){return Ke.default.createElement("div",{className:"first-line request-line"},Ke.default.createElement("div",null,Ke.default.createElement(ho,{content:e.request.method,readonly:t,onDone:a=>i({request:{method:a}})}),"\xA0",Ke.default.createElement(Tl,{content:fo.pretty_url(e.request),readonly:t,onDone:a=>i({request:{path:"",...gx(a)}}),isValid:a=>!!gx(a).host}),"\xA0",Ke.default.createElement(Tl,{content:e.request.http_version,readonly:t,onDone:a=>i({request:{http_version:a}}),isValid:yx})))}o(X2,"RequestLine");function Q2({flow:e,readonly:t,updateFlow:i}){return Ke.default.createElement("div",{className:"first-line response-line"},Ke.default.createElement(Tl,{content:e.response.http_version,readonly:t,onDone:a=>i({response:{http_version:a}}),isValid:yx}),"\xA0",Ke.default.createElement(Tl,{content:e.response.status_code+"",readonly:t,onDone:a=>i({response:{code:parseInt(a)}}),isValid:a=>/^\d+$/.test(a)}),"\xA0",Ke.default.createElement(ho,{content:e.response.reason,readonly:t,onDone:a=>i({response:{msg:a}})}))}o(Q2,"ResponseLine");var zk=et(e=>({flow:e.ui.flow.modifiedFlow||e.flows.byId[e.flows.selected[0]],isEdit:!!e.ui.flow.modifiedFlow}),{updateFlow:Kg,uploadContent:WT}),wp=class extends Ke.Component{render(){let{flow:t,isEdit:i,updateFlow:a,uploadContent:p}=this.props,m=!i&&(t.request.contentLength==0||t.request.contentLength==null);return Ke.default.createElement("section",{className:"request"},Ke.default.createElement("article",null,Ke.default.createElement(yS,null),Ke.default.createElement(X2,{flow:t,readonly:!i,updateFlow:a}),Ke.default.createElement(Is,{message:t.request,readonly:!i,onChange:d=>a({request:{headers:d}})}),Ke.default.createElement("hr",null),Ke.default.createElement(hS,{readonly:!i,flow:t,onContentChange:d=>a({request:{content:d}}),message:t.request}),Ke.default.createElement("hr",null),Ke.default.createElement(Is,{message:t.request,readonly:!i,onChange:d=>a({request:{trailers:d}}),type:"trailers"})),Ke.default.createElement(ti,null,!m&&Ke.default.createElement("footer",null,Ke.default.createElement(mS,{flow:t,readonly:!i,message:t.request,uploadContent:d=>p(t,d,"request")}))))}};o(wp,"Request");wp=zk(wp);var xp=class extends Ke.Component{render(){let{flow:t,isEdit:i,updateFlow:a,uploadContent:p}=this.props,m=!i&&(t.response.contentLength==0||t.response.contentLength==null);return Ke.default.createElement("section",{className:"response"},Ke.default.createElement("article",null,Ke.default.createElement(yS,null),Ke.default.createElement(Q2,{flow:t,readonly:!i,updateFlow:a}),Ke.default.createElement(Is,{message:t.response,readonly:!i,onChange:d=>a({response:{headers:d}})}),Ke.default.createElement("hr",null),Ke.default.createElement(hS,{readonly:!i,flow:t,onContentChange:d=>a({response:{content:d}}),message:t.response}),Ke.default.createElement("hr",null),Ke.default.createElement(Is,{message:t.response,readonly:!i,onChange:d=>a({response:{trailers:d}}),type:"trailers"})),Ke.default.createElement(ti,null,!m&&Ke.default.createElement("footer",null,Ke.default.createElement(mS,{flow:t,message:t.response,uploadContent:d=>p(t,d,"response"),readonly:!i}))))}};o(xp,"Response");xp=zk(xp);wS.propTypes={flow:Bk.default.object.isRequired};function wS({flow:e}){return Ke.default.createElement("section",{className:"error"},Ke.default.createElement("div",{className:"alert alert-warning"},e.error.msg,Ke.default.createElement("div",null,Ke.default.createElement("small",null,ep(e.error.timestamp)))))}o(wS,"ErrorView");var We=re(ke()),wj=re(Uo());function Z2({t:e,deltaTo:t,title:i}){return e?We.default.createElement("tr",null,We.default.createElement("td",null,i,":"),We.default.createElement("td",null,ep(e),t&&We.default.createElement("span",{className:"text-muted"},"(",Wg(1e3*(e-t)),")"))):We.default.createElement("tr",null)}o(Z2,"TimeStamp");function jk({conn:e}){return We.default.createElement("table",{className:"connection-table"},We.default.createElement("tbody",null,We.default.createElement("tr",{key:"address"},We.default.createElement("td",null,"Address:"),We.default.createElement("td",null,e.address.join(":"))),e.sni&&We.default.createElement("tr",{key:"sni"},We.default.createElement("td",null,We.default.createElement("abbr",{title:"TLS Server Name Indication"},"TLS SNI:")),We.default.createElement("td",null,e.sni)),e.tls_version&&We.default.createElement("tr",{key:"tls_version"},We.default.createElement("td",null,"TLS version:"),We.default.createElement("td",null,e.tls_version)),e.cipher_name&&We.default.createElement("tr",{key:"cipher_name"},We.default.createElement("td",null,"cipher name:"),We.default.createElement("td",null,e.cipher_name)),e.alpn_proto_negotiated&&We.default.createElement("tr",{key:"ALPN"},We.default.createElement("td",null,We.default.createElement("abbr",{title:"ALPN protocol negotiated"},"ALPN:")),We.default.createElement("td",null,e.alpn_proto_negotiated)),e.ip_address&&We.default.createElement("tr",{key:"ip_address"},We.default.createElement("td",null,"Resolved address:"),We.default.createElement("td",null,e.ip_address.join(":"))),e.source_address&&We.default.createElement("tr",{key:"source_address"},We.default.createElement("td",null,"Source address:"),We.default.createElement("td",null,e.source_address.join(":")))))}o(jk,"ConnectionInfo");function J2({flow:e}){return We.default.createElement("div",null,e.client_conn.cert&&[We.default.createElement("h4",{key:"name"},"Client Certificate"),We.default.createElement("pre",{key:"value",style:{maxHeight:100}},e.client_conn.cert)],e.server_conn.cert&&[We.default.createElement("h4",{key:"name"},"Server Certificate"),We.default.createElement("pre",{key:"value",style:{maxHeight:100}},e.server_conn.cert)])}o(J2,"CertificateInfo");function eR({flow:e}){let{server_conn:t,client_conn:i,request:a,response:p}=e,m=[{title:"Server conn. initiated",t:t.timestamp_start,deltaTo:a.timestamp_start},{title:"Server conn. TCP handshake",t:t.timestamp_tcp_setup,deltaTo:a.timestamp_start},{title:"Server conn. SSL handshake",t:t.timestamp_ssl_setup,deltaTo:a.timestamp_start},{title:"Client conn. established",t:i.timestamp_start,deltaTo:a.timestamp_start},{title:"Client conn. SSL handshake",t:i.timestamp_ssl_setup,deltaTo:a.timestamp_start},{title:"First request byte",t:a.timestamp_start},{title:"Request complete",t:a.timestamp_end,deltaTo:a.timestamp_start},p&&{title:"First response byte",t:p.timestamp_start,deltaTo:a.timestamp_start},p&&{title:"Response complete",t:p.timestamp_end,deltaTo:a.timestamp_start}];return We.default.createElement("div",null,We.default.createElement("h4",null,"Timing"),We.default.createElement("table",{className:"timing-table"},We.default.createElement("tbody",null,m.filter(d=>d).sort((d,w)=>d.t-w.t).map(d=>We.default.createElement(Z2,{key:d.title,...d})))))}o(eR,"Timing");function xS({flow:e}){return We.default.createElement("section",{className:"detail"},We.default.createElement("h4",null,"Client Connection"),We.default.createElement(jk,{conn:e.client_conn}),e.server_conn.address&&[We.default.createElement("h4",{key:"sc"},"Server Connection"),We.default.createElement(jk,{key:"sc-ci",conn:e.server_conn})],We.default.createElement(J2,{flow:e}),We.default.createElement(eR,{flow:e}))}o(xS,"Details");var tR={Request:wp,Response:xp,Error:wS,Details:xS};function rR({flow:e,tabName:t,selectTab:i}){let a=["request","response","error"].filter(m=>e[m]);a.push("details"),a.indexOf(t)<0&&(t==="response"&&e.error?t="error":t==="error"&&e.response?t="response":t=a[0]);let p=tR[qk.default.capitalize(t)];return Ly.default.createElement("div",{className:"flow-detail"},Ly.default.createElement(gy,{tabs:a,active:t,onSelectTab:i}),Ly.default.createElement(p,{flow:e}))}o(rR,"FlowView");var $k=et(e=>({flow:e.flows.byId[e.flows.selected[0]],tabName:e.ui.flow.tab}),{selectTab:lf})(rR);Gk.propTypes={hasSelection:Vk.default.bool.isRequired};function Gk({hasSelection:e}){return zh.default.createElement("div",{className:"main-view"},zh.default.createElement(wk,null),e&&zh.default.createElement(ip,{key:"splitter"}),e&&zh.default.createElement($k,{key:"flowDetails"}))}o(Gk,"MainView");var Kk=et(e=>({hasSelection:!!e.flows.byId[e.flows.selected[0]]}),{})(Gk);var Ko=re(ke()),_q=re(It());var iN=re(xi());var zn=re(ke());var Go=re(ke()),Py=re(Ms()),Yk=re(xi());var Hi=re(ke());var Ol=class extends Hi.Component{constructor(t,i){super(t,i);this.state={doc:Ol.doc}}componentDidMount(){Ol.xhr||(Ol.xhr=Ft("/filter-help").then(t=>t.json()),Ol.xhr.catch(()=>{Ol.xhr=null})),this.state.doc||Ol.xhr.then(t=>{Ol.doc=t,this.setState({doc:t})})}render(){let{doc:t}=this.state;return t?Hi.default.createElement("table",{className:"table table-condensed"},Hi.default.createElement("tbody",null,t.commands.map(i=>Hi.default.createElement("tr",{key:i[1],onClick:a=>this.props.selectHandler(i[0].split(" ")[0]+" ")},Hi.default.createElement("td",null,i[0].replace(" ","\xA0")),Hi.default.createElement("td",null,i[1]))),Hi.default.createElement("tr",{key:"docs-link"},Hi.default.createElement("td",{colSpan:"2"},Hi.default.createElement("a",{href:"https://mitmproxy.org/docs/latest/concepts-filters/",target:"_blank"},Hi.default.createElement("i",{className:"fa fa-external-link"}),"\xA0 mitmproxy docs"))))):Hi.default.createElement("i",{className:"fa fa-spinner fa-spin"})}},wf=Ol;o(wf,"FilterDocs"),At(wf,"xhr",null),At(wf,"doc",null);var xf=class extends Go.Component{constructor(t,i){super(t,i);this.state={value:this.props.value,focus:!1,mousefocus:!1},this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.selectFilter=this.selectFilter.bind(this)}UNSAFE_componentWillReceiveProps(t){this.setState({value:t.value})}isValid(t){try{return t&&nf.parse(t),!0}catch(i){return!1}}getDesc(){if(!this.state.value)return Go.default.createElement(wf,{selectHandler:this.selectFilter});try{return nf.parse(this.state.value).desc}catch(t){return""+t}}onChange(t){let i=t.target.value;this.setState({value:i}),this.isValid(i)&&this.props.onChange(i)}onFocus(){this.setState({focus:!0})}onBlur(){this.setState({focus:!1})}onMouseEnter(){this.setState({mousefocus:!0})}onMouseLeave(){this.setState({mousefocus:!1})}onKeyDown(t){(t.keyCode===dt.ESC||t.keyCode===dt.ENTER)&&(this.blur(),this.setState({mousefocus:!1})),t.stopPropagation()}selectFilter(t){this.setState({value:t}),Py.default.findDOMNode(this.refs.input).focus()}blur(){Py.default.findDOMNode(this.refs.input).blur()}select(){Py.default.findDOMNode(this.refs.input).select()}render(){let{type:t,color:i,placeholder:a}=this.props,{value:p,focus:m,mousefocus:d}=this.state;return Go.default.createElement("div",{className:(0,Yk.default)("filter-input input-group",{"has-error":!this.isValid(p)})},Go.default.createElement("span",{className:"input-group-addon"},Go.default.createElement("i",{className:"fa fa-fw fa-"+t,style:{color:i}})),Go.default.createElement("input",{type:"text",ref:"input",placeholder:a,className:"form-control",value:p,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown}),(m||d)&&Go.default.createElement("div",{className:"popover bottom",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},Go.default.createElement("div",{className:"arrow"}),Go.default.createElement("div",{className:"popover-content"},this.getDesc())))}};o(xf,"FilterInput");jh.title="Start";function jh(){return zn.default.createElement("div",{className:"main-menu"},zn.default.createElement("div",{className:"menu-group"},zn.default.createElement("div",{className:"menu-content"},zn.default.createElement(iR,null),zn.default.createElement(oR,null)),zn.default.createElement("div",{className:"menu-legend"},"Find")),zn.default.createElement("div",{className:"menu-group"},zn.default.createElement("div",{className:"menu-content"},zn.default.createElement(nR,null),zn.default.createElement(sR,null)),zn.default.createElement("div",{className:"menu-legend"},"Intercept")))}o(jh,"MainMenu");function nR(){let e=$o(),t=ar(i=>i.options.intercept);return zn.default.createElement(xf,{value:t||"",placeholder:"Intercept",type:"pause",color:"hsl(208, 56%, 53%)",onChange:i=>e(uf("intercept",i))})}o(nR,"InterceptInput");function iR(){let e=ar(t=>t.flows.filter);return zn.default.createElement(xf,{value:e||"",placeholder:"Search",type:"search",color:"black",onChange:Ug})}o(iR,"FlowFilterInput");function oR(){let e=ar(t=>t.flows.highlight);return zn.default.createElement(xf,{value:e||"",placeholder:"Highlight",type:"tag",color:"hsl(48, 100%, 50%)",onChange:Bg})}o(oR,"HighlightInput");function sR(){let e=$o();return zn.default.createElement(Bn,{className:"btn-sm",title:"[a]ccept all",icon:"fa-forward text-success",onClick:()=>e(zg())},"Resume All")}o(sR,"ResumeAll");var jr=re(ke());var Sp=re(ke());function Xk({value:e,onChange:t,children:i}){return Sp.default.createElement("div",{className:"menu-entry"},Sp.default.createElement("label",null,Sp.default.createElement("input",{type:"checkbox",checked:e,onChange:t}),i))}o(Xk,"MenuToggle");function My({name:e,children:t}){let i=$o(),a=ar(p=>p.options[e]);return Sp.default.createElement(Xk,{value:!!a,onChange:()=>i(uf(e,!a))},t)}o(My,"OptionsToggle");function Qk(){let e=xl(),t=ar(i=>i.eventLog.visible);return Sp.default.createElement(Xk,{value:t,onChange:()=>e(fp())},"Display Event Log")}o(Qk,"EventlogToggle");var SS=re(ke()),Zk=re(It());Ay.propTypes={resource:Zk.default.string.isRequired};function Ay({children:e,resource:t}){let i=`https://docs.mitmproxy.org/stable/${t}`;return SS.default.createElement("a",{target:"_blank",href:i},e||SS.default.createElement("i",{className:"fa fa-question-circle"}))}o(Ay,"DocsLink");Jk.title="Options";function Jk({openOptions:e}){return jr.default.createElement("div",null,jr.default.createElement(ti,null,jr.default.createElement("div",{className:"menu-group"},jr.default.createElement("div",{className:"menu-content"},jr.default.createElement(Bn,{title:"Open Options",icon:"fa-cogs text-primary",onClick:e},"Edit Options ",jr.default.createElement("sup",null,"alpha"))),jr.default.createElement("div",{className:"menu-legend"},"Options Editor")),jr.default.createElement("div",{className:"menu-group"},jr.default.createElement("div",{className:"menu-content"},jr.default.createElement(My,{name:"anticache"},"Strip cache headers ",jr.default.createElement(Ay,{resource:"overview-features/#anticache"})),jr.default.createElement(My,{name:"showhost"},"Use host header for display"),jr.default.createElement(My,{name:"ssl_insecure"},"Don't verify server certificates")),jr.default.createElement("div",{className:"menu-legend"},"Quick Options"))),jr.default.createElement("div",{className:"menu-group"},jr.default.createElement("div",{className:"menu-content"},jr.default.createElement(Qk,null)),jr.default.createElement("div",{className:"menu-legend"},"View Options")))}o(Jk,"OptionMenu");var eN=et(null,{openOptions:()=>sO("OptionModal")})(Jk);var Si=re(ke());var tN=Si.default.memo(o(function(){let t=xl();return Si.default.createElement(ap,{className:"pull-left special",text:"mitmproxy",options:{placement:"bottom-start"}},Si.default.createElement(Cn,{onClick:()=>confirm("Delete all flows?")&&t(Gg())},Si.default.createElement("i",{className:"fa fa-fw fa-trash"}),"\xA0Clear All"),Si.default.createElement("li",null,Si.default.createElement(_y,{icon:"fa-folder-open",text:"\xA0Open...",onClick:i=>i.stopPropagation(),onOpenFile:i=>{t(UT(i)),document.body.click()}})),Si.default.createElement(Cn,{onClick:()=>t(HT())},Si.default.createElement("i",{className:"fa fa-fw fa-floppy-o"}),"\xA0Save..."),Si.default.createElement(ti,null,Si.default.createElement(GO,null),Si.default.createElement("li",null,Si.default.createElement("a",{href:"http://mitm.it/",target:"_blank"},Si.default.createElement("i",{className:"fa fa-fw fa-external-link"}),"\xA0Install Certificates..."))))},"FileMenu"));var xr=re(ke()),Ju=re(It());CS.title="Flow";CS.propTypes={flow:Ju.default.object,resumeFlow:Ju.default.func.isRequired,killFlow:Ju.default.func.isRequired,replayFlow:Ju.default.func.isRequired,duplicateFlow:Ju.default.func.isRequired,removeFlow:Ju.default.func.isRequired,revertFlow:Ju.default.func.isRequired};function CS({flow:e,resumeFlow:t,killFlow:i,replayFlow:a,duplicateFlow:p,removeFlow:m,revertFlow:d}){return e?xr.default.createElement("div",{className:"flow-menu"},xr.default.createElement(ti,null,xr.default.createElement("div",{className:"menu-group"},xr.default.createElement("div",{className:"menu-content"},xr.default.createElement(Bn,{title:"[r]eplay flow",icon:"fa-repeat text-primary",onClick:()=>a(e)},"Replay"),xr.default.createElement(Bn,{title:"[D]uplicate flow",icon:"fa-copy text-info",onClick:()=>p(e)},"Duplicate"),xr.default.createElement(Bn,{disabled:!e||!e.modified,title:"revert changes to flow [V]",icon:"fa-history text-warning",onClick:()=>d(e)},"Revert"),xr.default.createElement(Bn,{title:"[d]elete flow",icon:"fa-trash text-danger",onClick:()=>m(e)},"Delete")),xr.default.createElement("div",{className:"menu-legend"},"Flow Modification"))),xr.default.createElement("div",{className:"menu-group"},xr.default.createElement("div",{className:"menu-content"},xr.default.createElement(Bn,{title:"download",icon:"fa-download",onClick:()=>window.location=zo.getContentURL(e,e.response)},"Download")),xr.default.createElement("div",{className:"menu-legend"},"Export")),xr.default.createElement(ti,null,xr.default.createElement("div",{className:"menu-group"},xr.default.createElement("div",{className:"menu-content"},xr.default.createElement(Bn,{disabled:!e||!e.intercepted,title:"[a]ccept intercepted flow",icon:"fa-play text-success",onClick:()=>t(e)},"Resume"),xr.default.createElement(Bn,{disabled:!e||!e.intercepted,title:"kill intercepted flow [x]",icon:"fa-times text-danger",onClick:()=>i(e)},"Abort")),xr.default.createElement("div",{className:"menu-legend"},"Interception")))):xr.default.createElement("div",null)}o(CS,"FlowMenu");var rN=et(e=>({flow:e.flows.byId[e.flows.selected[0]]}),{resumeFlow:rp,killFlow:jg,replayFlow:np,duplicateFlow:$g,removeFlow:qg,revertFlow:Vg})(CS);var Sf=re(ke());var nN=Sf.default.memo(o(function(){let t=ar(a=>a.connection.state),i=ar(a=>a.connection.message);switch(t){case Un.INIT:return Sf.default.createElement("span",{className:"connection-indicator init"},"connecting\u2026");case Un.FETCHING:return Sf.default.createElement("span",{className:"connection-indicator fetching"},"fetching data\u2026");case Un.ESTABLISHED:return Sf.default.createElement("span",{className:"connection-indicator established"},"connected");case Un.ERROR:return Sf.default.createElement("span",{className:"connection-indicator error",title:i},"connection lost");case Un.OFFLINE:return Sf.default.createElement("span",{className:"connection-indicator offline"},"offline");default:let a=t;throw"unknown connection state"}},"ConnectionIndicator"));var _S=class extends Ko.Component{handleClick(t,i){i.preventDefault(),this.props.setActiveMenu(t.title)}render(){let{selectedFlowId:t,activeMenu:i}=this.props,a=[..._S.entries];t&&a.push(rN);let p=_.find(a,m=>m.title==i)||jh;return Ko.default.createElement("header",null,Ko.default.createElement("nav",{className:"nav-tabs nav-tabs-lg"},Ko.default.createElement(tN,null),a.map(m=>Ko.default.createElement("a",{key:m.title,href:"#",className:(0,iN.default)({active:m===p}),onClick:d=>this.handleClick(m,d)},m.title)),Ko.default.createElement(ti,null,Ko.default.createElement(nN,null))),Ko.default.createElement("div",null,Ko.default.createElement(p,null)))}},Dy=_S;o(Dy,"Header"),At(Dy,"entries",[jh,eN]);var oN=et(e=>({selectedFlowId:e.flows.selected[0],activeMenu:e.ui.header.activeMenu}),{setActiveMenu:nk})(Dy);var Nl=re(ke()),Cp=re(It());var ES=re(ke()),Iy=re(It());Fy.propTypes={checked:Iy.default.bool.isRequired,onToggle:Iy.default.func.isRequired,text:Iy.default.string.isRequired};function Fy({checked:e,onToggle:t,text:i}){return ES.default.createElement("div",{className:"btn btn-toggle "+(e?"btn-primary":"btn-default"),onClick:t},ES.default.createElement("i",{className:"fa fa-fw "+(e?"fa-check-square-o":"fa-square-o")}),"\xA0",i)}o(Fy,"ToggleButton");var kl=re(ke()),bS=re(It()),sN=re(Ms()),lN=re(_x());var qh=class extends kl.Component{constructor(t){super(t);this.heights={},this.state={vScroll:op()},this.onViewportUpdate=this.onViewportUpdate.bind(this)}componentDidMount(){window.addEventListener("resize",this.onViewportUpdate),this.onViewportUpdate()}componentWillUnmount(){window.removeEventListener("resize",this.onViewportUpdate)}componentDidUpdate(){this.onViewportUpdate()}onViewportUpdate(){let t=sN.default.findDOMNode(this),i=op({itemCount:this.props.events.length,rowHeight:this.props.rowHeight,viewportTop:t.scrollTop,viewportHeight:t.offsetHeight,itemHeights:this.props.events.map(a=>this.heights[a.id])});(0,lN.default)(this.state.vScroll,i)||this.setState({vScroll:i})}setHeight(t,i){if(i&&!this.heights[t]){let a=i.offsetHeight;this.heights[t]!==a&&(this.heights[t]=a,this.onViewportUpdate())}}render(){let{vScroll:t}=this.state,{events:i}=this.props;return kl.default.createElement("pre",{onScroll:this.onViewportUpdate},kl.default.createElement("div",{style:{height:t.paddingTop}}),i.slice(t.start,t.end).map(a=>kl.default.createElement("div",{key:a.id,ref:p=>this.setHeight(a.id,p)},kl.default.createElement(lR,{event:a}),a.message)),kl.default.createElement("div",{style:{height:t.paddingBottom}}))}};o(qh,"EventLogList"),At(qh,"propTypes",{events:bS.default.array.isRequired,rowHeight:bS.default.number}),At(qh,"defaultProps",{rowHeight:18});function lR({event:e}){let t={web:"html5",debug:"bug",warn:"exclamation-triangle",error:"ban"}[e.level]||"info";return kl.default.createElement("i",{className:`fa fa-fw fa-${t}`})}o(lR,"LogIcon");var uN=Zg(qh);var $h=class extends Nl.Component{constructor(t,i){super(t,i);this.state={height:this.props.defaultHeight},this.onDragStart=this.onDragStart.bind(this),this.onDragMove=this.onDragMove.bind(this),this.onDragStop=this.onDragStop.bind(this)}onDragStart(t){t.preventDefault(),this.dragStart=this.state.height+t.pageY,window.addEventListener("mousemove",this.onDragMove),window.addEventListener("mouseup",this.onDragStop),window.addEventListener("dragend",this.onDragStop)}onDragMove(t){t.preventDefault(),this.setState({height:this.dragStart-t.pageY})}onDragStop(t){t.preventDefault(),window.removeEventListener("mousemove",this.onDragMove)}render(){let{height:t}=this.state,{filters:i,events:a,toggleFilter:p,close:m}=this.props;return Nl.default.createElement("div",{className:"eventlog",style:{height:t}},Nl.default.createElement("div",{onMouseDown:this.onDragStart},"Eventlog",Nl.default.createElement("div",{className:"pull-right"},["debug","info","web","warn","error"].map(d=>Nl.default.createElement(Fy,{key:d,text:d,checked:i[d],onToggle:()=>p(d)})),Nl.default.createElement("i",{onClick:m,className:"fa fa-close"}))),Nl.default.createElement(uN,{events:a}))}};o($h,"PureEventLog"),At($h,"propTypes",{filters:Cp.default.object.isRequired,events:Cp.default.array.isRequired,toggleFilter:Cp.default.func.isRequired,close:Cp.default.func.isRequired,defaultHeight:Cp.default.number}),At($h,"defaultProps",{defaultHeight:200});var aN=et(e=>({filters:e.eventLog.filters,events:e.eventLog.view}),{close:fp,toggleFilter:ek})($h);var un=re(ke());function TS(){let e=ar(I=>I.conf.version),{mode:t,intercept:i,showhost:a,upstream_cert:p,rawtcp:m,http2:d,websocket:w,anticache:b,anticomp:L,stickyauth:F,stickycookie:Y,stream_large_bodies:z,listen_host:X,listen_port:ee,server:J}=ar(I=>I.options);return un.default.createElement("footer",null,t&&t!=="regular"&&un.default.createElement("span",{className:"label label-success"},t," mode"),i&&un.default.createElement("span",{className:"label label-success"},"Intercept: ",i),a&&un.default.createElement("span",{className:"label label-success"},"showhost"),!p&&un.default.createElement("span",{className:"label label-success"},"no-upstream-cert"),!m&&un.default.createElement("span",{className:"label label-success"},"no-raw-tcp"),!d&&un.default.createElement("span",{className:"label label-success"},"no-http2"),!w&&un.default.createElement("span",{className:"label label-success"},"no-websocket"),b&&un.default.createElement("span",{className:"label label-success"},"anticache"),L&&un.default.createElement("span",{className:"label label-success"},"anticomp"),F&&un.default.createElement("span",{className:"label label-success"},"stickyauth: ",F),Y&&un.default.createElement("span",{className:"label label-success"},"stickycookie: ",Y),z&&un.default.createElement("span",{className:"label label-success"},"stream: ",Jc(z)),un.default.createElement("div",{className:"pull-right"},un.default.createElement(ti,null,J&&un.default.createElement("span",{className:"label label-primary",title:"HTTP Proxy Server Address"},X||"*",":",ee)),un.default.createElement("span",{className:"label label-info",title:"Mitmproxy Version"},e)))}o(TS,"Footer");var Vh=re(ke());var PS=re(ke());var _p=re(ke());function OS({children:e}){return _p.default.createElement("div",null,_p.default.createElement("div",{className:"modal-backdrop fade in"}),_p.default.createElement("div",{className:"modal modal-visible",id:"optionsModal",tabIndex:"-1",role:"dialog","aria-labelledby":"options"},_p.default.createElement("div",{className:"modal-dialog modal-lg",role:"document"},_p.default.createElement("div",{className:"modal-content"},e))))}o(OS,"ModalLayout");var Yt=re(ke());var vo=re(ke()),mo=re(It());var fN=re(xi()),uR=o(e=>{e.keyCode!==dt.ESC&&e.stopPropagation()},"stopPropagation");kS.propTypes={value:mo.default.bool.isRequired,onChange:mo.default.func.isRequired};function kS({value:e,onChange:t,...i}){return vo.default.createElement("div",{className:"checkbox"},vo.default.createElement("label",null,vo.default.createElement("input",{type:"checkbox",checked:e,onChange:a=>t(a.target.checked),...i}),"Enable"))}o(kS,"BooleanOption");NS.propTypes={value:mo.default.string,onChange:mo.default.func.isRequired};function NS({value:e,onChange:t,...i}){return vo.default.createElement("input",{type:"text",value:e||"",onChange:a=>t(a.target.value),...i})}o(NS,"StringOption");function aR(e){return function({onChange:t,...i}){return vo.default.createElement(e,{onChange:a=>t(a||null),...i})}}o(aR,"Optional");cN.propTypes={value:mo.default.number.isRequired,onChange:mo.default.func.isRequired};function cN({value:e,onChange:t,...i}){return vo.default.createElement("input",{type:"number",value:e,onChange:a=>t(parseInt(a.target.value)),...i})}o(cN,"NumberOption");pN.propTypes={value:mo.default.string.isRequired,onChange:mo.default.func.isRequired};function pN({value:e,onChange:t,choices:i,...a}){return vo.default.createElement("select",{onChange:p=>t(p.target.value),value:e,...a},i.map(p=>vo.default.createElement("option",{key:p,value:p},p)))}o(pN,"ChoicesOption");dN.propTypes={value:mo.default.arrayOf(mo.default.string).isRequired,onChange:mo.default.func.isRequired};function dN({value:e,onChange:t,...i}){let a=Math.max(e.length,1);return vo.default.createElement("textarea",{rows:a,value:e.join(` +`),te}return lf(function(){_.current=e,O.current=Y,D.current=B,y.current=void 0}),lf(function(){function te(){try{var Q=i.getState(),F=_.current(Q);if(t(F,D.current))return;D.current=F,O.current=Q}catch(P){y.current=P}v()}return o(te,"checkForUpdates"),p.onStateChange=te,p.trySubscribe(),te(),function(){return p.tryUnsubscribe()}},[i,p]),B}o(UF,"useSelectorWithStoreAndSubscription");function hT(e){e===void 0&&(e=Zn);var t=e===Zn?Hg:function(){return(0,Zi.useContext)(e)};return o(function(l,d){d===void 0&&(d=BF);var v=t(),p=v.store,y=v.subscription,_=UF(l,d,p,y);return(0,Zi.useDebugValue)(_),_},"useSelector")}o(hT,"createSelectorHook");var ax=hT();var ux=pe(eu());Bb(ux.unstable_batchedUpdates);var Rn=pe(Fe());var mT=pe(ep()),zF=pe(Fe());window._=mT.default;window.React=zF;var yt={UP:38,DOWN:40,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,LEFT:37,RIGHT:39,ENTER:13,ESC:27,TAB:9,SPACE:32,BACKSPACE:8,SHIFT:16};for(var Bg=65;Bg<=90;Bg++)yt[String.fromCharCode(Bg)]=Bg;var Ug=o(function(e){if(e===0)return"0";for(var t=["b","kb","mb","gb","tb"],i=0;ie);i++);var l;return e%Math.pow(1024,i)==0?l=0:l=1,(e/Math.pow(1024,i)).toFixed(l)+t[i]},"formatSize"),zg=o(function(e){for(var t=e,i=["ms","s","min","h"],l=[1e3,60,60],d=0;Math.abs(t)>=l[d]&&dDt(e,Ne({method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)},i));function vT(e,...t){return Ma(this,null,function*(){return yield(yield Dt(`/commands/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({arguments:t})})).json()})}o(vT,"runCommand");var gT="UI_FLOWVIEW_SET_TAB",yT="SET_CONTENT_VIEW_FOR",qF={tab:"request",contentViewFor:{}},VF=o((e=qF,t)=>{switch(t.type){case yT:return Ht(Ne({},e),{contentViewFor:Ht(Ne({},e.contentViewFor),{[t.messageId]:t.contentView})});case gT:return Ht(Ne({},e),{tab:t.tab?t.tab:"request"});default:return e}},"reducer"),wT=VF;function af(e){return{type:gT,tab:e}}o(af,"selectTab");function $g(e,t){return{type:yT,messageId:e,contentView:t}}o($g,"setContentViewFor");var Sh={};dC(Sh,{ADD:()=>mx,RECEIVE:()=>yx,REMOVE:()=>gx,SET_FILTER:()=>dx,SET_SORT:()=>hx,UPDATE:()=>vx,add:()=>KF,defaultState:()=>jg,receive:()=>XF,reduce:()=>tp,remove:()=>YF,setFilter:()=>wx,setSort:()=>ST,update:()=>GF});var px=pe(xT()),dx="LIST_SET_FILTER",hx="LIST_SET_SORT",mx="LIST_ADD",vx="LIST_UPDATE",gx="LIST_REMOVE",yx="LIST_RECEIVE",jg={byId:{},list:[],listIndex:{},view:[],viewIndex:{}};function tp(e=jg,t){let{byId:i,list:l,listIndex:d,view:v,viewIndex:p}=e;switch(t.type){case dx:v=(0,px.default)(l.filter(t.filter),t.sort),p={},v.forEach((O,D)=>{p[O.id]=D});break;case hx:v=(0,px.default)([...v],t.sort),p={},v.forEach((O,D)=>{p[O.id]=D});break;case mx:if(t.item.id in i)break;i=Ht(Ne({},i),{[t.item.id]:t.item}),d=Ht(Ne({},d),{[t.item.id]:l.length}),l=[...l,t.item],t.filter(t.item)&&({view:v,viewIndex:p}=CT(e,t.item,t.sort));break;case vx:i=Ht(Ne({},i),{[t.item.id]:t.item}),l=[...l],l[d[t.item.id]]=t.item;let y=t.item.id in p,_=t.filter(t.item);_&&!y?{view:v,viewIndex:p}=CT(e,t.item,t.sort):!_&&y?{data:v,dataIndex:p}=xx(v,p,t.item.id):_&&y&&({view:v,viewIndex:p}=QF(e,t.item,t.sort));break;case gx:if(!(t.id in i))break;i=Ne({},i),delete i[t.id],{data:l,dataIndex:d}=xx(l,d,t.id),t.id in p&&({data:v,dataIndex:p}=xx(v,p,t.id));break;case yx:l=t.list,d={},i={},l.forEach((O,D)=>{i[O.id]=O,d[O.id]=D}),v=l.filter(t.filter).sort(t.sort),p={},v.forEach((O,D)=>{p[O.id]=D});break}return{byId:i,list:l,listIndex:d,view:v,viewIndex:p}}o(tp,"reduce");function wx(e=qg,t=xh){return{type:dx,filter:e,sort:t}}o(wx,"setFilter");function ST(e=xh){return{type:hx,sort:e}}o(ST,"setSort");function KF(e,t=qg,i=xh){return{type:mx,item:e,filter:t,sort:i}}o(KF,"add");function GF(e,t=qg,i=xh){return{type:vx,item:e,filter:t,sort:i}}o(GF,"update");function YF(e){return{type:gx,id:e}}o(YF,"remove");function XF(e,t=qg,i=xh){return{type:yx,list:e,filter:t,sort:i}}o(XF,"receive");function CT(e,t,i){let l=ZF(e.view,t,i),d=[...e.view],v=Ne({},e.viewIndex);d.splice(l,0,t);for(let p=d.length-1;p>=l;p--)v[d[p].id]=p;return{view:d,viewIndex:v}}o(CT,"sortedInsert");function xx(e,t,i){let l=t[i],d=[...e],v=Ne({},t);delete v[i],d.splice(l,1);for(let p=d.length-1;p>=l;p--)v[d[p].id]=p;return{data:d,dataIndex:v}}o(xx,"removeData");function QF(e,t,i){let l=[...e.view],d=Ne({},e.viewIndex),v=d[t.id];for(l[v]=t;v+10;)l[v]=l[v+1],l[v+1]=t,d[t.id]=v+1,d[l[v].id]=v,++v;for(;v>0&&i(l[v],l[v-1])<0;)l[v]=l[v-1],l[v-1]=t,d[t.id]=v-1,d[l[v].id]=v,--v;return{view:l,viewIndex:d}}o(QF,"sortedUpdate");function ZF(e,t,i){let l=0,d=e.length;for(;l>>1;i(t,e[v])>=0?l=v+1:d=v}return l}o(ZF,"sortedIndex");function qg(){return!0}o(qg,"defaultFilter");function xh(e,t){return 0}o(xh,"defaultSort");var _T={http:80,https:443},jr=class{static getContentType(t){var i=jr.get_first_header(t,/^Content-Type$/i);if(i)return i.split(";")[0].trim()}static get_first_header(t,i){let l=t;l._headerLookups||Object.defineProperty(l,"_headerLookups",{value:{},configurable:!1,enumerable:!1,writable:!1});let d=i.toString();if(!(d in l._headerLookups)){let v;for(let p=0;p{if(e.type!=="http")return 0;let t=e.request.contentLength||0;return e.response&&(t+=e.response.contentLength||0),t},"getTotalSize");var uf=function(){"use strict";function e(l,d){function v(){this.constructor=l}o(v,"ctor"),v.prototype=d.prototype,l.prototype=new v}o(e,"peg$subclass");function t(l,d,v,p){this.message=l,this.expected=d,this.found=v,this.location=p,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,t)}o(t,"peg$SyntaxError"),e(t,Error);function i(l){var d=arguments.length>1?arguments[1]:{},v=this,p={},y={start:Zl},_=Zl,O={type:"other",description:"filter expression"},D=o(function(x){return x},"peg$c1"),Y={type:"other",description:"whitespace"},B=/^[ \t\n\r]/,X={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},te={type:"other",description:"control character"},Q=/^[|&!()~"]/,F={type:"class",value:'[|&!()~"]',description:'[|&!()~"]'},P={type:"other",description:"optional whitespace"},R="|",K={type:"literal",value:"|",description:'"|"'},V=o(function(x,k){return ll(x,k)},"peg$c11"),ue="&",ie={type:"literal",value:"&",description:'"&"'},he=o(function(x,k){return Or(x,k)},"peg$c14"),me="!",xe={type:"literal",value:"!",description:'"!"'},Ve=o(function(x){return Mf(x)},"peg$c17"),Qe="(",Ee={type:"literal",value:"(",description:'"("'},xt=")",qe={type:"literal",value:")",description:'")"'},ct=o(function(x){return Af(x)},"peg$c22"),ze="true",lt={type:"literal",value:"true",description:'"true"'},Zt=o(function(){return yu},"peg$c25"),at="false",Rr={type:"literal",value:"false",description:'"false"'},Kt=o(function(){return wu},"peg$c28"),Ot="~a",St={type:"literal",value:"~a",description:'"~a"'},it=o(function(){return ta},"peg$c31"),br="~b",zt={type:"literal",value:"~b",description:'"~b"'},$t=o(function(x){return Ap(x)},"peg$c34"),ne="~bq",Ze={type:"literal",value:"~bq",description:'"~bq"'},Tr=o(function(x){return zn(x)},"peg$c37"),jt="~bs",qt={type:"literal",value:"~bs",description:'"~bs"'},we=o(function(x){return Dp(x)},"peg$c40"),kr="~c",ln={type:"literal",value:"~c",description:'"~c"'},In=o(function(x){return On(x)},"peg$c43"),ii="~d",an={type:"literal",value:"~d",description:'"~d"'},Gt=o(function(x){return xu(x)},"peg$c46"),dr="~dst",ut={type:"literal",value:"~dst",description:'"~dst"'},Io=o(function(x){return io(x)},"peg$c49"),yr="~e",Ii={type:"literal",value:"~e",description:'"~e"'},un=o(function(){return ws},"peg$c52"),Hn="~h",vi={type:"literal",value:"~h",description:'"~h"'},gi=o(function(x){return xs(x)},"peg$c55"),Wn="~hq",Tn={type:"literal",value:"~hq",description:'"~hq"'},Zs=o(function(x){return Ct(x)},"peg$c58"),H="~hs",J={type:"literal",value:"~hs",description:'"~hs"'},de=o(function(x){return oo(x)},"peg$c61"),be="~http",Jt={type:"literal",value:"~http",description:'"~http"'},zl=o(function(){return ra},"peg$c64"),Ft="~m",Ir={type:"literal",value:"~m",description:'"~m"'},er=o(function(x){return Fp(x)},"peg$c67"),oi="~marked",fs={type:"literal",value:"~marked",description:'"~marked"'},no=o(function(){return so},"peg$c70"),yi="~q",Js={type:"literal",value:"~q",description:'"~q"'},cs=o(function(){return lr},"peg$c73"),fn="~src",_p={type:"literal",value:"~src",description:'"~src"'},el=o(function(x){return Ff(x)},"peg$c76"),Ef="~s",tl={type:"literal",value:"~s",description:'"~s"'},Ep=o(function(){return Df},"peg$c79"),bf="~t",au={type:"literal",value:"~t",description:'"~t"'},bp=o(function(x){return Ss(x)},"peg$c82"),$l="~tcp",ps={type:"literal",value:"~tcp",description:'"~tcp"'},Tp=o(function(){return al},"peg$c85"),Tf="~tq",rl={type:"literal",value:"~tq",description:'"~tq"'},uu=o(function(x){return jo(x)},"peg$c88"),Ho="~ts",kp={type:"literal",value:"~ts",description:'"~ts"'},Wo=o(function(x){return Rp(x)},"peg$c91"),jl="~u",kf={type:"literal",value:"~u",description:'"~u"'},Rt=o(function(x){return na(x)},"peg$c94"),Le="~websocket",wi={type:"literal",value:"~websocket",description:'"~websocket"'},fu=o(function(){return ia},"peg$c97"),xi={type:"other",description:"integer"},dt=/^['"]/,Hi={type:"class",value:`['"]`,description:`['"]`},Bo=/^[0-9]/,nl={type:"class",value:"[0-9]",description:"[0-9]"},ae=o(function(x){return parseInt(x.join(""),10)},"peg$c103"),Ue={type:"other",description:"string"},ql='"',Vl={type:"literal",value:'"',description:'"\\""'},Uo=o(function(x){return x.join("")},"peg$c107"),ds="'",Kl={type:"literal",value:"'",description:`"'"`},Be=/^["\\]/,Op={type:"class",value:'["\\\\]',description:'["\\\\]'},il={type:"any",description:"any character"},si=o(function(x){return x},"peg$c113"),Bn="\\",cu={type:"literal",value:"\\",description:'"\\\\"'},pu=/^['\\]/,hs={type:"class",value:"['\\\\]",description:"['\\\\]"},ol=/^['"\\]/,Of={type:"class",value:`['"\\\\]`,description:`['"\\\\]`},Gl="n",Yl={type:"literal",value:"n",description:'"n"'},Xl=o(function(){return` +`},"peg$c122"),zo="r",du={type:"literal",value:"r",description:'"r"'},Nf=o(function(){return"\r"},"peg$c125"),Np="t",hu={type:"literal",value:"t",description:'"t"'},Si=o(function(){return" "},"peg$c128"),M=0,We=0,$o=[{line:1,column:1,seenCR:!1}],cn=0,mu=[],Se=0,Ql;if("startRule"in d){if(!(d.startRule in y))throw new Error(`Can't start parsing from rule "`+d.startRule+'".');_=y[d.startRule]}function Qh(){return l.substring(We,M)}o(Qh,"text");function Lf(){return ms(We,M)}o(Lf,"location");function Lp(x){throw vs(null,[{type:"other",description:x}],l.substring(We,M),ms(We,M))}o(Lp,"expected");function Pf(x){throw vs(x,null,l.substring(We,M),ms(We,M))}o(Pf,"error");function vu(x){var k=$o[x],U,$;if(k)return k;for(U=x-1;!$o[U];)U--;for(k=$o[U],k={line:k.line,column:k.column,seenCR:k.seenCR};Ucn&&(cn=M,mu=[]),mu.push(x))}o(Pe,"peg$fail");function vs(x,k,U,$){function $n(mr){var jn=1;for(mr.sort(function(wr,Ci){return wr.descriptionCi.description?1:0});jn1?Ci.slice(0,-1).join(", ")+" or "+Ci[mr.length-1]:Ci[0],Wi=jn?'"'+wr(jn)+'"':"end of input","Expected "+Gr+" but "+Wi+" found."}return o(hr,"buildMessage"),k!==null&&$n(k),new t(x!==null?x:hr(k,U),k,U,$)}o(vs,"peg$buildException");function Zl(){var x,k,U,$;return Se++,x=M,k=Un(),k!==p?(U=gu(),U!==p?($=Un(),$!==p?(We=x,k=D(U),x=k):(M=x,x=p)):(M=x,x=p)):(M=x,x=p),Se--,x===p&&(k=p,Se===0&&Pe(O)),x}o(Zl,"peg$parsestart");function Ae(){var x,k;return Se++,B.test(l.charAt(M))?(x=l.charAt(M),M++):(x=p,Se===0&&Pe(X)),Se--,x===p&&(k=p,Se===0&&Pe(Y)),x}o(Ae,"peg$parsews");function Tt(){var x,k;return Se++,Q.test(l.charAt(M))?(x=l.charAt(M),M++):(x=p,Se===0&&Pe(F)),Se--,x===p&&(k=p,Se===0&&Pe(te)),x}o(Tt,"peg$parsecc");function Un(){var x,k;for(Se++,x=[],k=Ae();k!==p;)x.push(k),k=Ae();return Se--,x===p&&(k=p,Se===0&&Pe(P)),x}o(Un,"peg$parse__");function gu(){var x,k,U,$,$n,hr;return x=M,k=sl(),k!==p?(U=Un(),U!==p?(l.charCodeAt(M)===124?($=R,M++):($=p,Se===0&&Pe(K)),$!==p?($n=Un(),$n!==p?(hr=gu(),hr!==p?(We=x,k=V(k,hr),x=k):(M=x,x=p)):(M=x,x=p)):(M=x,x=p)):(M=x,x=p)):(M=x,x=p),x===p&&(x=sl()),x}o(gu,"peg$parseOrExpr");function sl(){var x,k,U,$,$n,hr;if(x=M,k=kn(),k!==p?(U=Un(),U!==p?(l.charCodeAt(M)===38?($=ue,M++):($=p,Se===0&&Pe(ie)),$!==p?($n=Un(),$n!==p?(hr=sl(),hr!==p?(We=x,k=he(k,hr),x=k):(M=x,x=p)):(M=x,x=p)):(M=x,x=p)):(M=x,x=p)):(M=x,x=p),x===p){if(x=M,k=kn(),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=sl(),$!==p?(We=x,k=he(k,$),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;x===p&&(x=kn())}return x}o(sl,"peg$parseAndExpr");function kn(){var x,k,U,$;return x=M,l.charCodeAt(M)===33?(k=me,M++):(k=p,Se===0&&Pe(xe)),k!==p?(U=Un(),U!==p?($=kn(),$!==p?(We=x,k=Ve($),x=k):(M=x,x=p)):(M=x,x=p)):(M=x,x=p),x===p&&(x=Pp()),x}o(kn,"peg$parseNotExpr");function Pp(){var x,k,U,$,$n,hr;return x=M,l.charCodeAt(M)===40?(k=Qe,M++):(k=p,Se===0&&Pe(Ee)),k!==p?(U=Un(),U!==p?($=gu(),$!==p?($n=Un(),$n!==p?(l.charCodeAt(M)===41?(hr=xt,M++):(hr=p,Se===0&&Pe(qe)),hr!==p?(We=x,k=ct($),x=k):(M=x,x=p)):(M=x,x=p)):(M=x,x=p)):(M=x,x=p)):(M=x,x=p),x===p&&(x=Mp()),x}o(Pp,"peg$parseBindingExpr");function Mp(){var x,k,U,$;if(x=M,l.substr(M,4)===ze?(k=ze,M+=4):(k=p,Se===0&&Pe(lt)),k!==p&&(We=x,k=Zt()),x=k,x===p&&(x=M,l.substr(M,5)===at?(k=at,M+=5):(k=p,Se===0&&Pe(Rr)),k!==p&&(We=x,k=Kt()),x=k,x===p&&(x=M,l.substr(M,2)===Ot?(k=Ot,M+=2):(k=p,Se===0&&Pe(St)),k!==p&&(We=x,k=it()),x=k,x===p))){if(x=M,l.substr(M,2)===br?(k=br,M+=2):(k=p,Se===0&&Pe(zt)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Hr(),$!==p?(We=x,k=$t($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p){if(x=M,l.substr(M,3)===ne?(k=ne,M+=3):(k=p,Se===0&&Pe(Ze)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Hr(),$!==p?(We=x,k=Tr($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p){if(x=M,l.substr(M,3)===jt?(k=jt,M+=3):(k=p,Se===0&&Pe(qt)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Hr(),$!==p?(We=x,k=we($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p){if(x=M,l.substr(M,2)===kr?(k=kr,M+=2):(k=p,Se===0&&Pe(ln)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Jl(),$!==p?(We=x,k=In($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p){if(x=M,l.substr(M,2)===ii?(k=ii,M+=2):(k=p,Se===0&&Pe(an)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Hr(),$!==p?(We=x,k=Gt($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p){if(x=M,l.substr(M,4)===dr?(k=dr,M+=4):(k=p,Se===0&&Pe(ut)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Hr(),$!==p?(We=x,k=Io($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p&&(x=M,l.substr(M,2)===yr?(k=yr,M+=2):(k=p,Se===0&&Pe(Ii)),k!==p&&(We=x,k=un()),x=k,x===p)){if(x=M,l.substr(M,2)===Hn?(k=Hn,M+=2):(k=p,Se===0&&Pe(vi)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Hr(),$!==p?(We=x,k=gi($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p){if(x=M,l.substr(M,3)===Wn?(k=Wn,M+=3):(k=p,Se===0&&Pe(Tn)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Hr(),$!==p?(We=x,k=Zs($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p){if(x=M,l.substr(M,3)===H?(k=H,M+=3):(k=p,Se===0&&Pe(J)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Hr(),$!==p?(We=x,k=de($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p&&(x=M,l.substr(M,5)===be?(k=be,M+=5):(k=p,Se===0&&Pe(Jt)),k!==p&&(We=x,k=zl()),x=k,x===p)){if(x=M,l.substr(M,2)===Ft?(k=Ft,M+=2):(k=p,Se===0&&Pe(Ir)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Hr(),$!==p?(We=x,k=er($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p&&(x=M,l.substr(M,7)===oi?(k=oi,M+=7):(k=p,Se===0&&Pe(fs)),k!==p&&(We=x,k=no()),x=k,x===p&&(x=M,l.substr(M,2)===yi?(k=yi,M+=2):(k=p,Se===0&&Pe(Js)),k!==p&&(We=x,k=cs()),x=k,x===p))){if(x=M,l.substr(M,4)===fn?(k=fn,M+=4):(k=p,Se===0&&Pe(_p)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Hr(),$!==p?(We=x,k=el($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p&&(x=M,l.substr(M,2)===Ef?(k=Ef,M+=2):(k=p,Se===0&&Pe(tl)),k!==p&&(We=x,k=Ep()),x=k,x===p)){if(x=M,l.substr(M,2)===bf?(k=bf,M+=2):(k=p,Se===0&&Pe(au)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Hr(),$!==p?(We=x,k=bp($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p&&(x=M,l.substr(M,4)===$l?(k=$l,M+=4):(k=p,Se===0&&Pe(ps)),k!==p&&(We=x,k=Tp()),x=k,x===p)){if(x=M,l.substr(M,3)===Tf?(k=Tf,M+=3):(k=p,Se===0&&Pe(rl)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Hr(),$!==p?(We=x,k=uu($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p){if(x=M,l.substr(M,3)===Ho?(k=Ho,M+=3):(k=p,Se===0&&Pe(kp)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Hr(),$!==p?(We=x,k=Wo($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p){if(x=M,l.substr(M,2)===jl?(k=jl,M+=2):(k=p,Se===0&&Pe(kf)),k!==p){if(U=[],$=Ae(),$!==p)for(;$!==p;)U.push($),$=Ae();else U=p;U!==p?($=Hr(),$!==p?(We=x,k=Rt($),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;x===p&&(x=M,l.substr(M,10)===Le?(k=Le,M+=10):(k=p,Se===0&&Pe(wi)),k!==p&&(We=x,k=fu()),x=k,x===p&&(x=M,k=Hr(),k!==p&&(We=x,k=Rt(k)),x=k))}}}}}}}}}}}}}}}return x}o(Mp,"peg$parseExpr");function Jl(){var x,k,U,$;if(Se++,x=M,dt.test(l.charAt(M))?(k=l.charAt(M),M++):(k=p,Se===0&&Pe(Hi)),k===p&&(k=null),k!==p){if(U=[],Bo.test(l.charAt(M))?($=l.charAt(M),M++):($=p,Se===0&&Pe(nl)),$!==p)for(;$!==p;)U.push($),Bo.test(l.charAt(M))?($=l.charAt(M),M++):($=p,Se===0&&Pe(nl));else U=p;U!==p?(dt.test(l.charAt(M))?($=l.charAt(M),M++):($=p,Se===0&&Pe(Hi)),$===p&&($=null),$!==p?(We=x,k=ae(U),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;return Se--,x===p&&(k=p,Se===0&&Pe(xi)),x}o(Jl,"peg$parseIntegerLiteral");function Hr(){var x,k,U,$;if(Se++,x=M,l.charCodeAt(M)===34?(k=ql,M++):(k=p,Se===0&&Pe(Vl)),k!==p){for(U=[],$=Nt();$!==p;)U.push($),$=Nt();U!==p?(l.charCodeAt(M)===34?($=ql,M++):($=p,Se===0&&Pe(Vl)),$!==p?(We=x,k=Uo(U),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p){if(x=M,l.charCodeAt(M)===39?(k=ds,M++):(k=p,Se===0&&Pe(Kl)),k!==p){for(U=[],$=gs();$!==p;)U.push($),$=gs();U!==p?(l.charCodeAt(M)===39?($=ds,M++):($=p,Se===0&&Pe(Kl)),$!==p?(We=x,k=Uo(U),x=k):(M=x,x=p)):(M=x,x=p)}else M=x,x=p;if(x===p)if(x=M,k=M,Se++,U=Tt(),Se--,U===p?k=void 0:(M=k,k=p),k!==p){if(U=[],$=Wr(),$!==p)for(;$!==p;)U.push($),$=Wr();else U=p;U!==p?(We=x,k=Uo(U),x=k):(M=x,x=p)}else M=x,x=p}return Se--,x===p&&(k=p,Se===0&&Pe(Ue)),x}o(Hr,"peg$parseStringLiteral");function Nt(){var x,k,U;return x=M,k=M,Se++,Be.test(l.charAt(M))?(U=l.charAt(M),M++):(U=p,Se===0&&Pe(Op)),Se--,U===p?k=void 0:(M=k,k=p),k!==p?(l.length>M?(U=l.charAt(M),M++):(U=p,Se===0&&Pe(il)),U!==p?(We=x,k=si(U),x=k):(M=x,x=p)):(M=x,x=p),x===p&&(x=M,l.charCodeAt(M)===92?(k=Bn,M++):(k=p,Se===0&&Pe(cu)),k!==p?(U=ys(),U!==p?(We=x,k=si(U),x=k):(M=x,x=p)):(M=x,x=p)),x}o(Nt,"peg$parseDoubleStringChar");function gs(){var x,k,U;return x=M,k=M,Se++,pu.test(l.charAt(M))?(U=l.charAt(M),M++):(U=p,Se===0&&Pe(hs)),Se--,U===p?k=void 0:(M=k,k=p),k!==p?(l.length>M?(U=l.charAt(M),M++):(U=p,Se===0&&Pe(il)),U!==p?(We=x,k=si(U),x=k):(M=x,x=p)):(M=x,x=p),x===p&&(x=M,l.charCodeAt(M)===92?(k=Bn,M++):(k=p,Se===0&&Pe(cu)),k!==p?(U=ys(),U!==p?(We=x,k=si(U),x=k):(M=x,x=p)):(M=x,x=p)),x}o(gs,"peg$parseSingleStringChar");function Wr(){var x,k,U;return x=M,k=M,Se++,U=Ae(),Se--,U===p?k=void 0:(M=k,k=p),k!==p?(l.length>M?(U=l.charAt(M),M++):(U=p,Se===0&&Pe(il)),U!==p?(We=x,k=si(U),x=k):(M=x,x=p)):(M=x,x=p),x}o(Wr,"peg$parseUnquotedStringChar");function ys(){var x,k;return ol.test(l.charAt(M))?(x=l.charAt(M),M++):(x=p,Se===0&&Pe(Of)),x===p&&(x=M,l.charCodeAt(M)===110?(k=Gl,M++):(k=p,Se===0&&Pe(Yl)),k!==p&&(We=x,k=Xl()),x=k,x===p&&(x=M,l.charCodeAt(M)===114?(k=zo,M++):(k=p,Se===0&&Pe(du)),k!==p&&(We=x,k=Nf()),x=k,x===p&&(x=M,l.charCodeAt(M)===116?(k=Np,M++):(k=p,Se===0&&Pe(hu)),k!==p&&(We=x,k=Si()),x=k))),x}o(ys,"peg$parseEscapeSequence");function ll(x,k){function U(){return x.apply(this,arguments)||k.apply(this,arguments)}return o(U,"orFilter"),U.desc=x.desc+" or "+k.desc,U}o(ll,"or");function Or(x,k){function U(){return x.apply(this,arguments)&&k.apply(this,arguments)}return o(U,"andFilter"),U.desc=x.desc+" and "+k.desc,U}o(Or,"and");function Mf(x){function k(){return!x.apply(this,arguments)}return o(k,"notFilter"),k.desc="not "+x.desc,k}o(Mf,"not");function Af(x){function k(){return x.apply(this,arguments)}return o(k,"bindingFilter"),k.desc="("+x.desc+")",k}o(Af,"binding");function yu(x){return!0}o(yu,"trueFilter"),yu.desc="true";function wu(x){return!1}o(wu,"falseFilter"),wu.desc="false";var ea=[new RegExp("text/javascript"),new RegExp("application/x-javascript"),new RegExp("application/javascript"),new RegExp("text/css"),new RegExp("image/.*"),new RegExp("application/x-shockwave-flash")];function ta(x){if(x.response){for(var k=is.getContentType(x.response),U=ea.length;U--;)if(ea[U].test(k))return!0}return!1}o(ta,"assetFilter"),ta.desc="is asset";function On(x){function k(U){return U.response&&U.response.status_code===x}return o(k,"responseCodeFilter"),k.desc="resp. code is "+x,k}o(On,"responseCode");function Ap(x){x=new RegExp(x,"i");function k(U){return!0}return o(k,"bodyFilter"),k.desc="body filters are not implemented yet, see https://github.com/mitmproxy/mitmweb/issues/10",k}o(Ap,"body");function zn(x){x=new RegExp(x,"i");function k(U){return!0}return o(k,"requestBodyFilter"),k.desc="body filters are not implemented yet, see https://github.com/mitmproxy/mitmweb/issues/10",k}o(zn,"requestBody");function Dp(x){x=new RegExp(x,"i");function k(U){return!0}return o(k,"responseBodyFilter"),k.desc="body filters are not implemented yet, see https://github.com/mitmproxy/mitmweb/issues/10",k}o(Dp,"responseBody");function xu(x){x=new RegExp(x,"i");function k(U){return U.request&&(x.test(U.request.host)||x.test(U.request.pretty_host))}return o(k,"domainFilter"),k.desc="domain matches "+x,k}o(xu,"domain");function io(x){x=new RegExp(x,"i");function k(U){return!!U.server_conn.address&&x.test(U.server_conn.address[0]+":"+U.server_conn.address[1])}return o(k,"destinationFilter"),k.desc="destination address matches "+x,k}o(io,"destination");function ws(x){return!!x.error}o(ws,"errorFilter"),ws.desc="has error";function xs(x){x=new RegExp(x,"i");function k(U){return U.request&&Ji.match_header(U.request,x)||U.response&&is.match_header(U.response,x)}return o(k,"headerFilter"),k.desc="header matches "+x,k}o(xs,"header");function Ct(x){x=new RegExp(x,"i");function k(U){return U.request&&Ji.match_header(U.request,x)}return o(k,"requestHeaderFilter"),k.desc="req. header matches "+x,k}o(Ct,"requestHeader");function oo(x){x=new RegExp(x,"i");function k(U){return U.response&&is.match_header(U.response,x)}return o(k,"responseHeaderFilter"),k.desc="resp. header matches "+x,k}o(oo,"responseHeader");function ra(x){return x.type==="http"}o(ra,"httpFilter"),ra.desc="is an HTTP Flow";function Fp(x){x=new RegExp(x,"i");function k(U){return U.request&&x.test(U.request.method)}return o(k,"methodFilter"),k.desc="method matches "+x,k}o(Fp,"method");function so(x){return x.marked}o(so,"markedFilter"),so.desc="is marked";function lr(x){return x.request&&!x.response}o(lr,"noResponseFilter"),lr.desc="has no response";function Df(x){return!!x.response}o(Df,"responseFilter"),Df.desc="has response";function Ff(x){x=new RegExp(x,"i");function k(U){return!!U.client_conn.peername&&x.test(U.client_conn.peername[0]+":"+U.client_conn.peername[1])}return o(k,"sourceFilter"),k.desc="source address matches "+x,k}o(Ff,"source");function Ss(x){x=new RegExp(x,"i");function k(U){return U.request&&x.test(Ji.getContentType(U.request))||U.response&&x.test(is.getContentType(U.response))}return o(k,"contentTypeFilter"),k.desc="content type matches "+x,k}o(Ss,"contentType");function al(x){return x.type==="tcp"}o(al,"tcpFilter"),al.desc="is a TCP Flow";function jo(x){x=new RegExp(x,"i");function k(U){return U.request&&x.test(Ji.getContentType(U.request))}return o(k,"requestContentTypeFilter"),k.desc="req. content type matches "+x,k}o(jo,"requestContentType");function Rp(x){x=new RegExp(x,"i");function k(U){return U.response&&x.test(is.getContentType(U.response))}return o(k,"responseContentTypeFilter"),k.desc="resp. content type matches "+x,k}o(Rp,"responseContentType");function na(x){x=new RegExp(x,"i");function k(U){return U.request&&x.test(Ji.pretty_url(U.request))}return o(k,"urlFilter"),k.desc="url matches "+x,k}o(na,"url");function ia(x){return x.type==="websocket"}if(o(ia,"websocketFilter"),ia.desc="is a Websocket Flow",Ql=_(),Ql!==p&&M===l.length)return Ql;throw Ql!==p&&MVx,icon:()=>ay,method:()=>fy,path:()=>uy,quickactions:()=>op,size:()=>py,status:()=>cy,time:()=>dy,timestamp:()=>hy,tls:()=>ly});var et=pe(Fe());var sy=pe(Jn());var Kg="UI_HIDE_MODAL",ET="UI_SET_ACTIVE_MODAL",tR={activeModal:void 0};function bx(e=tR,t){switch(t.type){case ET:return Ht(Ne({},e),{activeModal:t.activeModal});case Kg:return Ht(Ne({},e),{activeModal:void 0});default:return e}}o(bx,"reducer");function bT(e){return{type:ET,activeModal:e}}o(bT,"setActiveModal");function Gg(){return{type:Kg}}o(Gg,"hideModal");var TT="UI_OPTION_UPDATE_START",kT="UI_OPTION_UPDATE_SUCCESS",OT="UI_OPTION_UPDATE_ERROR",rR={};function Tx(e=rR,t){switch(t.type){case TT:return Ht(Ne({},e),{[t.option]:{isUpdating:!0,value:t.value,error:!1}});case kT:return Ht(Ne({},e),{[t.option]:void 0});case OT:let i=e[t.option].value;return typeof i=="boolean"&&(i=!i),Ht(Ne({},e),{[t.option]:{value:i,isUpdating:!1,error:t.error}});case Kg:return{};default:return e}}o(Tx,"reducer");function NT(e,t){return{type:TT,option:e,value:t}}o(NT,"startUpdate");function LT(e){return{type:kT,option:e}}o(LT,"updateSuccess");function PT(e,t){return{type:OT,option:e,error:t}}o(PT,"updateError");var AT=pe(ep());var MT={add_upstream_certs_to_client_chain:!1,allow_hosts:[],anticache:!1,anticomp:!1,block_global:!0,block_list:[],block_private:!1,body_size_limit:void 0,cert_passphrase:void 0,certs:[],ciphers_client:void 0,ciphers_server:void 0,client_certs:void 0,client_replay:[],command_history:!0,confdir:"~/.mitmproxy",connection_strategy:"eager",console_focus_follow:!1,content_view_lines_cutoff:512,export_preserve_original_ip:!1,http2:!0,ignore_hosts:[],intercept:void 0,intercept_active:!1,keep_host_header:!1,key_size:2048,listen_host:"",listen_port:8080,map_local:[],map_remote:[],mode:"regular",modify_body:[],modify_headers:[],onboarding:!0,onboarding_host:"mitm.it",onboarding_port:80,proxy_debug:!1,proxyauth:void 0,rawtcp:!0,readfile_filter:void 0,rfile:void 0,save_stream_file:void 0,save_stream_filter:void 0,scripts:[],server:!0,server_replay:[],server_replay_ignore_content:!1,server_replay_ignore_host:!1,server_replay_ignore_params:[],server_replay_ignore_payload_params:[],server_replay_ignore_port:!1,server_replay_kill_extra:!1,server_replay_nopop:!1,server_replay_refresh:!0,server_replay_use_headers:[],showhost:!1,ssl_insecure:!1,ssl_verify_upstream_trusted_ca:void 0,ssl_verify_upstream_trusted_confdir:void 0,stickyauth:void 0,stickycookie:void 0,stream_large_bodies:void 0,tcp_hosts:[],termlog_verbosity:"info",tls_version_client_max:"UNBOUNDED",tls_version_client_min:"TLS1_2",tls_version_server_max:"UNBOUNDED",tls_version_server_min:"TLS1_2",upstream_auth:void 0,upstream_cert:!0,view_filter:void 0,view_order:"time",view_order_reversed:!1,web_columns:["tls","icon","path","method","status","size","time"],web_debug:!1,web_host:"127.0.0.1",web_open_browser:!0,web_port:8081,web_static_viewer:"",websocket:!0};var kx="OPTIONS_RECEIVE",Ox="OPTIONS_UPDATE";var nR=o((e=MT,t)=>{switch(t.type){case kx:let i={};for(let[d,{value:v}]of Object.entries(t.data))i[d]=v;return i;case Ox:let l=Ne({},e);for(let[d,{value:v}]of Object.entries(t.data))l[d]=v;return l;default:return e}},"reducer"),DT=nR;function iR(e,t,i){return Ma(this,null,function*(){try{let l=yield Dt.put("/options",{[e]:t});if(l.status===200)i(LT(e));else throw yield l.text()}catch(l){i(PT(e,l))}})}o(iR,"pureSendUpdate");var oR=AT.default.throttle(iR,500,{leading:!0,trailing:!0});function ff(e,t){return i=>{i(NT(e,t)),oR(e,t,i)}}o(ff,"update");function FT(){return e=>Dt("/options/save",{method:"POST"})}o(FT,"save");function RT(e){return(t,i)=>{let l=i().options.intercept;l&&l.includes(e)||(l?l=`${l} | ${e}`:l=e,t(ff("intercept",l)))}}o(RT,"addInterceptFilter");var Er=pe(Fe());var Yg=pe(Fe());var Nx=o(function(t){return t.reduce(function(i,l){var d=l[0],v=l[1];return i[d]=v,i},{})},"fromEntries"),Lx=typeof window!="undefined"&&window.document&&window.document.createElement?Yg.useLayoutEffect:Yg.useEffect;var ou=pe(Fe());var qr="top",_n="bottom",nn="right",on="left",Xg="auto",ru=[qr,_n,nn,on],Rl="start",Qg="end",IT="clippingParents",Zg="viewport",rp="popper",HT="reference",Px=ru.reduce(function(e,t){return e.concat([t+"-"+Rl,t+"-"+Qg])},[]),Jg=[].concat(ru,[Xg]).reduce(function(e,t){return e.concat([t,t+"-"+Rl,t+"-"+Qg])},[]),sR="beforeRead",lR="read",aR="afterRead",uR="beforeMain",fR="main",cR="afterMain",pR="beforeWrite",dR="write",hR="afterWrite",WT=[sR,lR,aR,uR,fR,cR,pR,dR,hR];function En(e){return e?(e.nodeName||"").toLowerCase():null}o(En,"getNodeName");function Fr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}o(Fr,"getWindow");function Il(e){var t=Fr(e).Element;return e instanceof t||e instanceof Element}o(Il,"isElement");function Dn(e){var t=Fr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}o(Dn,"isHTMLElement");function ey(e){if(typeof ShadowRoot=="undefined")return!1;var t=Fr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}o(ey,"isShadowRoot");function mR(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var l=t.styles[i]||{},d=t.attributes[i]||{},v=t.elements[i];!Dn(v)||!En(v)||(Object.assign(v.style,l),Object.keys(d).forEach(function(p){var y=d[p];y===!1?v.removeAttribute(p):v.setAttribute(p,y===!0?"":y)}))})}o(mR,"applyStyles");function vR(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(l){var d=t.elements[l],v=t.attributes[l]||{},p=Object.keys(t.styles.hasOwnProperty(l)?t.styles[l]:i[l]),y=p.reduce(function(_,O){return _[O]="",_},{});!Dn(d)||!En(d)||(Object.assign(d.style,y),Object.keys(v).forEach(function(_){d.removeAttribute(_)}))})}}o(vR,"effect");var BT={name:"applyStyles",enabled:!0,phase:"write",fn:mR,effect:vR,requires:["computeStyles"]};function bn(e){return e.split("-")[0]}o(bn,"getBasePlacement");function Lo(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}o(Lo,"getBoundingClientRect");function cf(e){var t=Lo(e),i=e.offsetWidth,l=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:l}}o(cf,"getLayoutRect");function _h(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&ey(i)){var l=t;do{if(l&&e.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}o(_h,"contains");function hi(e){return Fr(e).getComputedStyle(e)}o(hi,"getComputedStyle");function Mx(e){return["table","td","th"].indexOf(En(e))>=0}o(Mx,"isTableElement");function Fn(e){return((Il(e)?e.ownerDocument:e.document)||window.document).documentElement}o(Fn,"getDocumentElement");function Hl(e){return En(e)==="html"?e:e.assignedSlot||e.parentNode||(ey(e)?e.host:null)||Fn(e)}o(Hl,"getParentNode");function UT(e){return!Dn(e)||hi(e).position==="fixed"?null:e.offsetParent}o(UT,"getTrueOffsetParent");function gR(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,i=navigator.userAgent.indexOf("Trident")!==-1;if(i&&Dn(e)){var l=hi(e);if(l.position==="fixed")return null}for(var d=Hl(e);Dn(d)&&["html","body"].indexOf(En(d))<0;){var v=hi(d);if(v.transform!=="none"||v.perspective!=="none"||v.contain==="paint"||["transform","perspective"].indexOf(v.willChange)!==-1||t&&v.willChange==="filter"||t&&v.filter&&v.filter!=="none")return d;d=d.parentNode}return null}o(gR,"getContainingBlock");function os(e){for(var t=Fr(e),i=UT(e);i&&Mx(i)&&hi(i).position==="static";)i=UT(i);return i&&(En(i)==="html"||En(i)==="body"&&hi(i).position==="static")?t:i||gR(e)||t}o(os,"getOffsetParent");function pf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}o(pf,"getMainAxisFromPlacement");var Po=Math.max,nu=Math.min,Eh=Math.round;function df(e,t,i){return Po(e,nu(t,i))}o(df,"within");function bh(){return{top:0,right:0,bottom:0,left:0}}o(bh,"getFreshSideObject");function Th(e){return Object.assign({},bh(),e)}o(Th,"mergePaddingObject");function kh(e,t){return t.reduce(function(i,l){return i[l]=e,i},{})}o(kh,"expandToHashMap");var yR=o(function(t,i){return t=typeof t=="function"?t(Object.assign({},i.rects,{placement:i.placement})):t,Th(typeof t!="number"?t:kh(t,ru))},"toPaddingObject");function wR(e){var t,i=e.state,l=e.name,d=e.options,v=i.elements.arrow,p=i.modifiersData.popperOffsets,y=bn(i.placement),_=pf(y),O=[on,nn].indexOf(y)>=0,D=O?"height":"width";if(!(!v||!p)){var Y=yR(d.padding,i),B=cf(v),X=_==="y"?qr:on,te=_==="y"?_n:nn,Q=i.rects.reference[D]+i.rects.reference[_]-p[_]-i.rects.popper[D],F=p[_]-i.rects.reference[_],P=os(v),R=P?_==="y"?P.clientHeight||0:P.clientWidth||0:0,K=Q/2-F/2,V=Y[X],ue=R-B[D]-Y[te],ie=R/2-B[D]/2+K,he=df(V,ie,ue),me=_;i.modifiersData[l]=(t={},t[me]=he,t.centerOffset=he-ie,t)}}o(wR,"arrow");function xR(e){var t=e.state,i=e.options,l=i.element,d=l===void 0?"[data-popper-arrow]":l;d!=null&&(typeof d=="string"&&(d=t.elements.popper.querySelector(d),!d)||!_h(t.elements.popper,d)||(t.elements.arrow=d))}o(xR,"effect");var zT={name:"arrow",enabled:!0,phase:"main",fn:wR,effect:xR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var SR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function CR(e){var t=e.x,i=e.y,l=window,d=l.devicePixelRatio||1;return{x:Eh(Eh(t*d)/d)||0,y:Eh(Eh(i*d)/d)||0}}o(CR,"roundOffsetsByDPR");function $T(e){var t,i=e.popper,l=e.popperRect,d=e.placement,v=e.offsets,p=e.position,y=e.gpuAcceleration,_=e.adaptive,O=e.roundOffsets,D=O===!0?CR(v):typeof O=="function"?O(v):v,Y=D.x,B=Y===void 0?0:Y,X=D.y,te=X===void 0?0:X,Q=v.hasOwnProperty("x"),F=v.hasOwnProperty("y"),P=on,R=qr,K=window;if(_){var V=os(i),ue="clientHeight",ie="clientWidth";V===Fr(i)&&(V=Fn(i),hi(V).position!=="static"&&(ue="scrollHeight",ie="scrollWidth")),V=V,d===qr&&(R=_n,te-=V[ue]-l.height,te*=y?1:-1),d===on&&(P=nn,B-=V[ie]-l.width,B*=y?1:-1)}var he=Object.assign({position:p},_&&SR);if(y){var me;return Object.assign({},he,(me={},me[R]=F?"0":"",me[P]=Q?"0":"",me.transform=(K.devicePixelRatio||1)<2?"translate("+B+"px, "+te+"px)":"translate3d("+B+"px, "+te+"px, 0)",me))}return Object.assign({},he,(t={},t[R]=F?te+"px":"",t[P]=Q?B+"px":"",t.transform="",t))}o($T,"mapToStyles");function _R(e){var t=e.state,i=e.options,l=i.gpuAcceleration,d=l===void 0?!0:l,v=i.adaptive,p=v===void 0?!0:v,y=i.roundOffsets,_=y===void 0?!0:y;if(!1)var O;var D={placement:bn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:d};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$T(Object.assign({},D,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:p,roundOffsets:_})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$T(Object.assign({},D,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:_})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}o(_R,"computeStyles");var jT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_R,data:{}};var ty={passive:!0};function ER(e){var t=e.state,i=e.instance,l=e.options,d=l.scroll,v=d===void 0?!0:d,p=l.resize,y=p===void 0?!0:p,_=Fr(t.elements.popper),O=[].concat(t.scrollParents.reference,t.scrollParents.popper);return v&&O.forEach(function(D){D.addEventListener("scroll",i.update,ty)}),y&&_.addEventListener("resize",i.update,ty),function(){v&&O.forEach(function(D){D.removeEventListener("scroll",i.update,ty)}),y&&_.removeEventListener("resize",i.update,ty)}}o(ER,"effect");var qT={name:"eventListeners",enabled:!0,phase:"write",fn:o(function(){},"fn"),effect:ER,data:{}};var bR={left:"right",right:"left",bottom:"top",top:"bottom"};function np(e){return e.replace(/left|right|bottom|top/g,function(t){return bR[t]})}o(np,"getOppositePlacement");var TR={start:"end",end:"start"};function ry(e){return e.replace(/start|end/g,function(t){return TR[t]})}o(ry,"getOppositeVariationPlacement");function hf(e){var t=Fr(e),i=t.pageXOffset,l=t.pageYOffset;return{scrollLeft:i,scrollTop:l}}o(hf,"getWindowScroll");function mf(e){return Lo(Fn(e)).left+hf(e).scrollLeft}o(mf,"getWindowScrollBarX");function Ax(e){var t=Fr(e),i=Fn(e),l=t.visualViewport,d=i.clientWidth,v=i.clientHeight,p=0,y=0;return l&&(d=l.width,v=l.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(p=l.offsetLeft,y=l.offsetTop)),{width:d,height:v,x:p+mf(e),y}}o(Ax,"getViewportRect");function Dx(e){var t,i=Fn(e),l=hf(e),d=(t=e.ownerDocument)==null?void 0:t.body,v=Po(i.scrollWidth,i.clientWidth,d?d.scrollWidth:0,d?d.clientWidth:0),p=Po(i.scrollHeight,i.clientHeight,d?d.scrollHeight:0,d?d.clientHeight:0),y=-l.scrollLeft+mf(e),_=-l.scrollTop;return hi(d||i).direction==="rtl"&&(y+=Po(i.clientWidth,d?d.clientWidth:0)-v),{width:v,height:p,x:y,y:_}}o(Dx,"getDocumentRect");function vf(e){var t=hi(e),i=t.overflow,l=t.overflowX,d=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+d+l)}o(vf,"isScrollParent");function ny(e){return["html","body","#document"].indexOf(En(e))>=0?e.ownerDocument.body:Dn(e)&&vf(e)?e:ny(Hl(e))}o(ny,"getScrollParent");function iu(e,t){var i;t===void 0&&(t=[]);var l=ny(e),d=l===((i=e.ownerDocument)==null?void 0:i.body),v=Fr(l),p=d?[v].concat(v.visualViewport||[],vf(l)?l:[]):l,y=t.concat(p);return d?y:y.concat(iu(Hl(p)))}o(iu,"listScrollParents");function ip(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}o(ip,"rectToClientRect");function kR(e){var t=Lo(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}o(kR,"getInnerBoundingClientRect");function VT(e,t){return t===Zg?ip(Ax(e)):Dn(t)?kR(t):ip(Dx(Fn(e)))}o(VT,"getClientRectFromMixedType");function OR(e){var t=iu(Hl(e)),i=["absolute","fixed"].indexOf(hi(e).position)>=0,l=i&&Dn(e)?os(e):e;return Il(l)?t.filter(function(d){return Il(d)&&_h(d,l)&&En(d)!=="body"}):[]}o(OR,"getClippingParents");function Fx(e,t,i){var l=t==="clippingParents"?OR(e):[].concat(t),d=[].concat(l,[i]),v=d[0],p=d.reduce(function(y,_){var O=VT(e,_);return y.top=Po(O.top,y.top),y.right=nu(O.right,y.right),y.bottom=nu(O.bottom,y.bottom),y.left=Po(O.left,y.left),y},VT(e,v));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}o(Fx,"getClippingRect");function Xs(e){return e.split("-")[1]}o(Xs,"getVariation");function Oh(e){var t=e.reference,i=e.element,l=e.placement,d=l?bn(l):null,v=l?Xs(l):null,p=t.x+t.width/2-i.width/2,y=t.y+t.height/2-i.height/2,_;switch(d){case qr:_={x:p,y:t.y-i.height};break;case _n:_={x:p,y:t.y+t.height};break;case nn:_={x:t.x+t.width,y};break;case on:_={x:t.x-i.width,y};break;default:_={x:t.x,y:t.y}}var O=d?pf(d):null;if(O!=null){var D=O==="y"?"height":"width";switch(v){case Rl:_[O]=_[O]-(t[D]/2-i[D]/2);break;case Qg:_[O]=_[O]+(t[D]/2-i[D]/2);break;default:}}return _}o(Oh,"computeOffsets");function ss(e,t){t===void 0&&(t={});var i=t,l=i.placement,d=l===void 0?e.placement:l,v=i.boundary,p=v===void 0?IT:v,y=i.rootBoundary,_=y===void 0?Zg:y,O=i.elementContext,D=O===void 0?rp:O,Y=i.altBoundary,B=Y===void 0?!1:Y,X=i.padding,te=X===void 0?0:X,Q=Th(typeof te!="number"?te:kh(te,ru)),F=D===rp?HT:rp,P=e.elements.reference,R=e.rects.popper,K=e.elements[B?F:D],V=Fx(Il(K)?K:K.contextElement||Fn(e.elements.popper),p,_),ue=Lo(P),ie=Oh({reference:ue,element:R,strategy:"absolute",placement:d}),he=ip(Object.assign({},R,ie)),me=D===rp?he:ue,xe={top:V.top-me.top+Q.top,bottom:me.bottom-V.bottom+Q.bottom,left:V.left-me.left+Q.left,right:me.right-V.right+Q.right},Ve=e.modifiersData.offset;if(D===rp&&Ve){var Qe=Ve[d];Object.keys(xe).forEach(function(Ee){var xt=[nn,_n].indexOf(Ee)>=0?1:-1,qe=[qr,_n].indexOf(Ee)>=0?"y":"x";xe[Ee]+=Qe[qe]*xt})}return xe}o(ss,"detectOverflow");function Rx(e,t){t===void 0&&(t={});var i=t,l=i.placement,d=i.boundary,v=i.rootBoundary,p=i.padding,y=i.flipVariations,_=i.allowedAutoPlacements,O=_===void 0?Jg:_,D=Xs(l),Y=D?y?Px:Px.filter(function(te){return Xs(te)===D}):ru,B=Y.filter(function(te){return O.indexOf(te)>=0});B.length===0&&(B=Y);var X=B.reduce(function(te,Q){return te[Q]=ss(e,{placement:Q,boundary:d,rootBoundary:v,padding:p})[bn(Q)],te},{});return Object.keys(X).sort(function(te,Q){return X[te]-X[Q]})}o(Rx,"computeAutoPlacement");function NR(e){if(bn(e)===Xg)return[];var t=np(e);return[ry(e),t,ry(t)]}o(NR,"getExpandedFallbackPlacements");function LR(e){var t=e.state,i=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var d=i.mainAxis,v=d===void 0?!0:d,p=i.altAxis,y=p===void 0?!0:p,_=i.fallbackPlacements,O=i.padding,D=i.boundary,Y=i.rootBoundary,B=i.altBoundary,X=i.flipVariations,te=X===void 0?!0:X,Q=i.allowedAutoPlacements,F=t.options.placement,P=bn(F),R=P===F,K=_||(R||!te?[np(F)]:NR(F)),V=[F].concat(K).reduce(function(it,br){return it.concat(bn(br)===Xg?Rx(t,{placement:br,boundary:D,rootBoundary:Y,padding:O,flipVariations:te,allowedAutoPlacements:Q}):br)},[]),ue=t.rects.reference,ie=t.rects.popper,he=new Map,me=!0,xe=V[0],Ve=0;Ve=0,ct=qe?"width":"height",ze=ss(t,{placement:Qe,boundary:D,rootBoundary:Y,altBoundary:B,padding:O}),lt=qe?xt?nn:on:xt?_n:qr;ue[ct]>ie[ct]&&(lt=np(lt));var Zt=np(lt),at=[];if(v&&at.push(ze[Ee]<=0),y&&at.push(ze[lt]<=0,ze[Zt]<=0),at.every(function(it){return it})){xe=Qe,me=!1;break}he.set(Qe,at)}if(me)for(var Rr=te?3:1,Kt=o(function(br){var zt=V.find(function($t){var ne=he.get($t);if(ne)return ne.slice(0,br).every(function(Ze){return Ze})});if(zt)return xe=zt,"break"},"_loop"),Ot=Rr;Ot>0;Ot--){var St=Kt(Ot);if(St==="break")break}t.placement!==xe&&(t.modifiersData[l]._skip=!0,t.placement=xe,t.reset=!0)}}o(LR,"flip");var KT={name:"flip",enabled:!0,phase:"main",fn:LR,requiresIfExists:["offset"],data:{_skip:!1}};function GT(e,t,i){return i===void 0&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}o(GT,"getSideOffsets");function YT(e){return[qr,nn,_n,on].some(function(t){return e[t]>=0})}o(YT,"isAnySideFullyClipped");function PR(e){var t=e.state,i=e.name,l=t.rects.reference,d=t.rects.popper,v=t.modifiersData.preventOverflow,p=ss(t,{elementContext:"reference"}),y=ss(t,{altBoundary:!0}),_=GT(p,l),O=GT(y,d,v),D=YT(_),Y=YT(O);t.modifiersData[i]={referenceClippingOffsets:_,popperEscapeOffsets:O,isReferenceHidden:D,hasPopperEscaped:Y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":D,"data-popper-escaped":Y})}o(PR,"hide");var XT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:PR};function MR(e,t,i){var l=bn(e),d=[on,qr].indexOf(l)>=0?-1:1,v=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,p=v[0],y=v[1];return p=p||0,y=(y||0)*d,[on,nn].indexOf(l)>=0?{x:y,y:p}:{x:p,y}}o(MR,"distanceAndSkiddingToXY");function AR(e){var t=e.state,i=e.options,l=e.name,d=i.offset,v=d===void 0?[0,0]:d,p=Jg.reduce(function(D,Y){return D[Y]=MR(Y,t.rects,v),D},{}),y=p[t.placement],_=y.x,O=y.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=_,t.modifiersData.popperOffsets.y+=O),t.modifiersData[l]=p}o(AR,"offset");var QT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:AR};function DR(e){var t=e.state,i=e.name;t.modifiersData[i]=Oh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}o(DR,"popperOffsets");var ZT={name:"popperOffsets",enabled:!0,phase:"read",fn:DR,data:{}};function Ix(e){return e==="x"?"y":"x"}o(Ix,"getAltAxis");function FR(e){var t=e.state,i=e.options,l=e.name,d=i.mainAxis,v=d===void 0?!0:d,p=i.altAxis,y=p===void 0?!1:p,_=i.boundary,O=i.rootBoundary,D=i.altBoundary,Y=i.padding,B=i.tether,X=B===void 0?!0:B,te=i.tetherOffset,Q=te===void 0?0:te,F=ss(t,{boundary:_,rootBoundary:O,padding:Y,altBoundary:D}),P=bn(t.placement),R=Xs(t.placement),K=!R,V=pf(P),ue=Ix(V),ie=t.modifiersData.popperOffsets,he=t.rects.reference,me=t.rects.popper,xe=typeof Q=="function"?Q(Object.assign({},t.rects,{placement:t.placement})):Q,Ve={x:0,y:0};if(!!ie){if(v||y){var Qe=V==="y"?qr:on,Ee=V==="y"?_n:nn,xt=V==="y"?"height":"width",qe=ie[V],ct=ie[V]+F[Qe],ze=ie[V]-F[Ee],lt=X?-me[xt]/2:0,Zt=R===Rl?he[xt]:me[xt],at=R===Rl?-me[xt]:-he[xt],Rr=t.elements.arrow,Kt=X&&Rr?cf(Rr):{width:0,height:0},Ot=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bh(),St=Ot[Qe],it=Ot[Ee],br=df(0,he[xt],Kt[xt]),zt=K?he[xt]/2-lt-br-St-xe:Zt-br-St-xe,$t=K?-he[xt]/2+lt+br+it+xe:at+br+it+xe,ne=t.elements.arrow&&os(t.elements.arrow),Ze=ne?V==="y"?ne.clientTop||0:ne.clientLeft||0:0,Tr=t.modifiersData.offset?t.modifiersData.offset[t.placement][V]:0,jt=ie[V]+zt-Tr-Ze,qt=ie[V]+$t-Tr;if(v){var we=df(X?nu(ct,jt):ct,qe,X?Po(ze,qt):ze);ie[V]=we,Ve[V]=we-qe}if(y){var kr=V==="x"?qr:on,ln=V==="x"?_n:nn,In=ie[ue],ii=In+F[kr],an=In-F[ln],Gt=df(X?nu(ii,jt):ii,In,X?Po(an,qt):an);ie[ue]=Gt,Ve[ue]=Gt-In}}t.modifiersData[l]=Ve}}o(FR,"preventOverflow");var JT={name:"preventOverflow",enabled:!0,phase:"main",fn:FR,requiresIfExists:["offset"]};function Hx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}o(Hx,"getHTMLElementScroll");function Wx(e){return e===Fr(e)||!Dn(e)?hf(e):Hx(e)}o(Wx,"getNodeScroll");function Bx(e,t,i){i===void 0&&(i=!1);var l=Fn(t),d=Lo(e),v=Dn(t),p={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(v||!v&&!i)&&((En(t)!=="body"||vf(l))&&(p=Wx(t)),Dn(t)?(y=Lo(t),y.x+=t.clientLeft,y.y+=t.clientTop):l&&(y.x=mf(l))),{x:d.left+p.scrollLeft-y.x,y:d.top+p.scrollTop-y.y,width:d.width,height:d.height}}o(Bx,"getCompositeRect");function RR(e){var t=new Map,i=new Set,l=[];e.forEach(function(v){t.set(v.name,v)});function d(v){i.add(v.name);var p=[].concat(v.requires||[],v.requiresIfExists||[]);p.forEach(function(y){if(!i.has(y)){var _=t.get(y);_&&d(_)}}),l.push(v)}return o(d,"sort"),e.forEach(function(v){i.has(v.name)||d(v)}),l}o(RR,"order");function Ux(e){var t=RR(e);return WT.reduce(function(i,l){return i.concat(t.filter(function(d){return d.phase===l}))},[])}o(Ux,"orderModifiers");function zx(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}o(zx,"debounce");function $x(e){var t=e.reduce(function(i,l){var d=i[l.name];return i[l.name]=d?Object.assign({},d,l,{options:Object.assign({},d.options,l.options),data:Object.assign({},d.data,l.data)}):l,i},{});return Object.keys(t).map(function(i){return t[i]})}o($x,"mergeByName");var ek={placement:"bottom",modifiers:[],strategy:"absolute"};function tk(){for(var e=arguments.length,t=new Array(e),i=0;iEr.default.createElement("li",{role:"separator",className:"divider"}),"Divider");function Vt(l){var d=l,{onClick:e,children:t}=d,i=Us(d,["onClick","children"]);return Er.default.createElement("li",null,Er.default.createElement("a",Ne({href:"#",onClick:o(p=>{p.preventDefault(),e()},"click")},i),t))}o(Vt,"MenuItem");function Nh({title:e,children:t,className:i}){let[l,d]=(0,Er.useState)(!1),[v,p]=(0,Er.useState)(null),[y,_]=(0,Er.useState)(null),{styles:O,attributes:D}=oy(v,y,{placement:"right-start"}),Y=null;return l&&(Y=Er.default.createElement("ul",Ne({className:(0,qx.default)("dropdown-menu show",i),ref:_,style:O.popper},D.popper),t)),Er.default.createElement("li",{ref:p,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)},Er.default.createElement("a",null,Er.default.createElement("i",{className:"fa fa-caret-right pull-right","aria-hidden":"true"})," ",e),Y)}o(Nh,"SubMenu");var Wl=Er.default.memo(o(function(y){var _=y,{text:t,children:i,options:l,className:d,onOpen:v}=_,p=Us(_,["text","children","options","className","onOpen"]);let[O,D]=(0,Er.useState)(null),[Y,B]=(0,Er.useState)(!1),[X,te]=(0,Er.useState)(null),{styles:Q,attributes:F}=oy(O,X,Ne({},l)),P=o(K=>{B(K),v&&v(K)},"setOpen");(0,Er.useEffect)(()=>{!X||document.addEventListener("click",K=>{X.contains(K.target)?document.addEventListener("click",()=>P(!1),{once:!0}):(K.preventDefault(),K.stopPropagation(),P(!1))},{once:!0,capture:!0})},[X]);let R;return Y?R=Er.default.createElement("ul",Ne({className:"dropdown-menu show",ref:te,style:Q.popper},F.popper),i):R=null,Er.default.createElement(Er.default.Fragment,null,Er.default.createElement("a",Ne({href:"#",ref:D,className:(0,qx.default)(d,{open:Y}),onClick:K=>{K.preventDefault(),P(!0)}},p),t),R)},"Dropdown"));var Mo=o((e,t)=>Ma(void 0,null,function*(){let i=yield vT("export",t,`@${e.id}`);yield navigator.clipboard.writeText(i)}),"copy");var ly=o(({flow:e})=>et.default.createElement("td",{className:(0,sy.default)("col-tls",e.client_conn.tls_established?"col-tls-https":"col-tls-http")}),"tls");ly.headerName="";ly.sortKey=e=>e.type==="http"&&e.request.scheme;var ay=o(({flow:e})=>et.default.createElement("td",{className:"col-icon"},et.default.createElement("div",{className:(0,sy.default)("resource-icon",$R(e))})),"icon");ay.headerName="";ay.sortKey=e=>0;var $R=o(e=>{if(e.type!=="http"||!e.response)return"resource-icon-plain";if(e.websocket)return"resource-icon-websocket";var t=is.getContentType(e.response)||"";return e.response.status_code===304?"resource-icon-not-modified":300<=e.response.status_code&&e.response.status_code<400?"resource-icon-redirect":t.indexOf("image")>=0?"resource-icon-image":t.indexOf("javascript")>=0?"resource-icon-js":t.indexOf("css")>=0?"resource-icon-css":t.indexOf("html")>=0?"resource-icon-document":"resource-icon-plain"},"getIcon"),uy=o(({flow:e})=>{let t;return e.error&&(e.error.msg==="Connection killed."?t=et.default.createElement("i",{className:"fa fa-fw fa-times pull-right"}):t=et.default.createElement("i",{className:"fa fa-fw fa-exclamation pull-right"})),et.default.createElement("td",{className:"col-path"},e.is_replay==="request"&&et.default.createElement("i",{className:"fa fa-fw fa-repeat pull-right"}),e.intercepted&&et.default.createElement("i",{className:"fa fa-fw fa-pause pull-right"}),t,et.default.createElement("span",{className:"marker pull-right"},e.marked),e.type==="http"?Ji.pretty_url(e.request):null)},"path");uy.headerName="Path";uy.sortKey=e=>e.type==="http"&&Ji.pretty_url(e.request);var fy=o(({flow:e})=>et.default.createElement("td",{className:"col-method"},e.type==="http"?e.request.method:e.type.toLowerCase()),"method");fy.headerName="Method";fy.sortKey=e=>e.type==="http"&&e.request.method;var cy=o(({flow:e})=>{let t="darkred";return e.type!=="http"||!e.response?et.default.createElement("td",{className:"col-status"}):(100<=e.response.status_code&&e.response.status_code<200?t="green":200<=e.response.status_code&&e.response.status_code<300?t="darkgreen":300<=e.response.status_code&&e.response.status_code<400?t="lightblue":(400<=e.response.status_code&&e.response.status_code<500||500<=e.response.status_code&&e.response.status_code<600)&&(t="lightred"),et.default.createElement("td",{className:"col-status",style:{color:t}},e.response.status_code))},"status");cy.headerName="Status";cy.sortKey=e=>e.type==="http"&&e.response&&e.response.status_code;var py=o(({flow:e})=>et.default.createElement("td",{className:"col-size"},Ug(Ex(e))),"size");py.headerName="Size";py.sortKey=e=>Ex(e);var dy=o(({flow:e})=>{let t=Ch(e),i=_x(e);return et.default.createElement("td",{className:"col-time"},t&&i?zg(1e3*(i-t)):"...")},"time");dy.headerName="Time";dy.sortKey=e=>{let t=Ch(e),i=_x(e);return t&&i&&i-t};var hy=o(({flow:e})=>{let t=Ch(e);return et.default.createElement("td",{className:"col-start"},t?No(t):"...")},"timestamp");hy.headerName="Start time";hy.sortKey=e=>Ch(e);var jR={":red_circle:":"\u{1F534}",":orange_circle:":"\u{1F7E0}",":yellow_circle:":"\u{1F7E1}",":green_circle:":"\u{1F7E2}",":large_blue_circle:":"\u{1F535}",":purple_circle:":"\u{1F7E3}",":brown_circle:":"\u{1F7E4}"},op=o(({flow:e})=>{let t=Ys(),[i,l]=(0,et.useState)(!1),d=null;if(e.intercepted?d=et.default.createElement("a",{href:"#",className:"quickaction",onClick:()=>t(sp(e))},et.default.createElement("i",{className:"fa fa-fw fa-play text-success"})):d=et.default.createElement("a",{href:"#",className:"quickaction",onClick:()=>t(lp(e))},et.default.createElement("i",{className:"fa fa-fw fa-repeat text-primary"})),e.type!=="http")return et.default.createElement("td",{className:"col-quickactions"});let v=o(y=>t(RT(y)),"filt"),p=e.response&&is.getContentType(e.response);return et.default.createElement("td",{className:(0,sy.default)("col-quickactions",{hover:i}),onClick:()=>0},et.default.createElement("div",null,d,et.default.createElement(Wl,{text:et.default.createElement("i",{className:"fa fa-fw fa-ellipsis-h text-muted"}),className:"quickaction",onOpen:l,options:{placement:"bottom-end"}},et.default.createElement(Nh,{title:"Copy..."},et.default.createElement(Vt,{onClick:()=>Mo(e,"raw_request")},"Copy raw request"),et.default.createElement(Vt,{onClick:()=>Mo(e,"raw_response")},"Copy raw response"),et.default.createElement(Vt,{onClick:()=>Mo(e,"raw")},"Copy raw request and response"),et.default.createElement(Vt,{onClick:()=>Mo(e,"curl")},"Copy as cURL"),et.default.createElement(Vt,{onClick:()=>Mo(e,"httpie")},"Copy as HTTPie")),et.default.createElement(Nh,{title:"Mark...",className:"markers-menu"},et.default.createElement(Vt,{onClick:()=>t(Ri(e,{marked:""}))},"\u26AA (no marker)"),Object.entries(jR).map(([y,_])=>et.default.createElement(Vt,{key:y,onClick:()=>t(Ri(e,{marked:y}))},_," ",y.replace(/[:_]/g," ")))),et.default.createElement(Nh,{title:"Intercept requests like this"},et.default.createElement(Vt,{onClick:()=>v(`~q ${e.request.host}`)},"Requests to ",e.request.host),e.request.path!=="/"&&et.default.createElement(Vt,{onClick:()=>v(`~q ${e.request.host}${e.request.path}`)},"Requests to ",e.request.host+e.request.path),e.request.method!=="GET"&&et.default.createElement(Vt,{onClick:()=>v(`~q ~m ${e.request.method} ${e.request.host}`)},e.request.method," requests to ",e.request.host)),et.default.createElement(Nh,{title:"Intercept responses like this"},et.default.createElement(Vt,{onClick:()=>v(`~s ${e.request.host}`)},"Responses from ",e.request.host),e.request.path!=="/"&&et.default.createElement(Vt,{onClick:()=>v(`~s ${e.request.host}${e.request.path}`)},"Responses from ",e.request.host+e.request.path),!!p&&et.default.createElement(Vt,{onClick:()=>v(`~ts ${p}`)},"Responses with a ",p," content type.")))))},"quickactions");op.headerName="";op.sortKey=e=>0;var Vx={icon:ay,method:fy,path:uy,quickactions:op,size:py,status:cy,time:dy,timestamp:hy,tls:ly};var qR="FLOWS_ADD",VR="FLOWS_UPDATE",lk="FLOWS_REMOVE",KR="FLOWS_RECEIVE",ak="FLOWS_SELECT",uk="FLOWS_SET_FILTER",fk="FLOWS_SET_SORT",ck="FLOWS_SET_HIGHLIGHT",GR="FLOWS_REQUEST_ACTION",YR=Ne({highlight:void 0,filter:void 0,sort:{column:void 0,desc:!1},selected:[]},jg);function Kx(e=YR,t){switch(t.type){case qR:case VR:case lk:case KR:let i=Sh[t.cmd](t.data,pk(e.filter),Gx(e.sort)),l=e.selected;if(t.type===lk&&e.selected.includes(t.data)){if(e.selected.length>1)l=l.filter(d=>d!==t.data);else if(l=[],t.data in e.viewIndex&&e.view.length>1){let d=e.viewIndex[t.data],v;d===e.view.length-1?v=e.view[d-1]:v=e.view[d+1],l.push(v.id)}}return Ne(Ht(Ne({},e),{selected:l}),tp(e,i));case uk:return Ne(Ht(Ne({},e),{filter:t.filter}),tp(e,wx(pk(t.filter),Gx(e.sort))));case ck:return Ht(Ne({},e),{highlight:t.highlight});case fk:return Ne(Ht(Ne({},e),{sort:t.sort}),tp(e,ST(Gx(t.sort))));case ak:return Ht(Ne({},e),{selected:t.flowIds});default:return e}}o(Kx,"reduce");function pk(e){if(!!e)return uf.parse(e)}o(pk,"makeFilter");function Gx({column:e,desc:t}){if(!e)return;let i=Vx[e].sortKey;if(!!i)return(l,d)=>{let v=i(l),p=i(d);return v>p?t?-1:1:vDt(`/flows/${e.id}/resume`,{method:"POST"})}o(sp,"resume");function gy(){return e=>Dt("/flows/resume",{method:"POST"})}o(gy,"resumeAll");function yy(e){return t=>Dt(`/flows/${e.id}/kill`,{method:"POST"})}o(yy,"kill");function hk(){return e=>Dt("/flows/kill",{method:"POST"})}o(hk,"killAll");function wy(e){return t=>Dt(`/flows/${e.id}`,{method:"DELETE"})}o(wy,"remove");function xy(e){return t=>Dt(`/flows/${e.id}/duplicate`,{method:"POST"})}o(xy,"duplicate");function lp(e){return t=>Dt(`/flows/${e.id}/replay`,{method:"POST"})}o(lp,"replay");function Sy(e){return t=>Dt(`/flows/${e.id}/revert`,{method:"POST"})}o(Sy,"revert");function Ri(e,t){return i=>Dt.put(`/flows/${e.id}`,t)}o(Ri,"update");function mk(e,t,i){let l=new FormData;return t=new window.Blob([t],{type:"plain/text"}),l.append("file",t),d=>Dt(`/flows/${e.id}/${i}/content.data`,{method:"POST",body:l})}o(mk,"uploadContent");function Cy(){return e=>Dt("/clear",{method:"POST"})}o(Cy,"clear");function vk(){return window.location.href="/flows/dump",{type:GR}}o(vk,"download");function gk(e){let t=new FormData;return t.append("file",e),i=>Dt("/flows/dump",{method:"POST",body:t})}o(gk,"upload");function yf(e){return{type:ak,flowIds:e?[e]:[]}}o(yf,"select");var Wh=pe(Fe());var Ut=pe(Fe());var up=pe(Fe());var Ph=pe(Fe()),yk=pe(Jn());var wk=(()=>{let e=document.createElement("div");return e.setAttribute("contenteditable","PLAINTEXT-ONLY"),e.contentEditable==="plaintext-only"?"plaintext-only":"true"})(),ap=!1,Qs=class extends Ph.Component{constructor(){super(...arguments);this.input=Ph.default.createRef();this.isEditing=o(()=>{var t;return((t=this.input.current)==null?void 0:t.contentEditable)===wk},"isEditing");this.startEditing=o(()=>{if(!this.input.current)return console.error("unreachable");this.isEditing()||(this.suppress_events=!0,this.input.current.blur(),this.input.current.contentEditable=wk,window.requestAnimationFrame(()=>{var l,d;if(!this.input.current)return;this.input.current.focus(),this.suppress_events=!1;let t=document.createRange();t.selectNodeContents(this.input.current);let i=window.getSelection();i==null||i.removeAllRanges(),i==null||i.addRange(t),(d=(l=this.props).onEditStart)==null||d.call(l)}))},"startEditing");this.resetValue=o(()=>{var t,i;if(!this.input.current)return console.error("unreachable");this.input.current.textContent=this.props.content,(i=(t=this.props).onInput)==null||i.call(t,this.props.content)},"resetValue");this.finishEditing=o(()=>{if(!this.input.current)return console.error("unreachable");this.props.onEditDone(this.input.current.textContent||""),this.input.current.blur(),this.input.current.contentEditable="inherit"},"finishEditing");this.onPaste=o(t=>{t.preventDefault();let i=t.clipboardData.getData("text/plain");document.execCommand("insertHTML",!1,i)},"onPaste");this.suppress_events=!1;this.onMouseDown=o(t=>{ap&&console.debug("onMouseDown",this.suppress_events),this.suppress_events=!0,window.addEventListener("mouseup",this.onMouseUp,{once:!0})},"onMouseDown");this.onMouseUp=o(t=>{var d;let i=t.target===this.input.current,l=!((d=window.getSelection())==null?void 0:d.toString());ap&&console.warn("mouseUp",this.suppress_events,i,l),i&&l&&this.startEditing(),this.suppress_events=!1},"onMouseUp");this.onClick=o(t=>{ap&&console.debug("onClick",this.suppress_events)},"onClick");this.onFocus=o(t=>{if(ap&&console.debug("onFocus",this.props.content,this.suppress_events),!this.input.current)throw"unreachable";this.suppress_events||this.startEditing()},"onFocus");this.onInput=o(t=>{var i,l,d;(d=(l=this.props).onInput)==null||d.call(l,((i=this.input.current)==null?void 0:i.textContent)||"")},"onInput");this.onBlur=o(t=>{ap&&console.debug("onBlur",this.props.content,this.suppress_events),!this.suppress_events&&this.finishEditing()},"onBlur");this.onKeyDown=o(t=>{var i,l;switch(ap&&console.debug("keydown",t),t.stopPropagation(),t.keyCode){case yt.ESC:t.preventDefault(),this.resetValue(),this.finishEditing();break;case yt.ENTER:t.shiftKey||(t.preventDefault(),this.finishEditing());break;default:break}(l=(i=this.props).onKeyDown)==null||l.call(i,t)},"onKeyDown")}render(){let t=(0,yk.default)("inline-input",this.props.className);return Ph.default.createElement("span",{ref:this.input,tabIndex:0,className:t,placeholder:this.props.placeholder,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onInput:this.onInput,onPaste:this.onPaste,onMouseDown:this.onMouseDown,onClick:this.onClick},this.props.content)}componentDidUpdate(t){var i,l;t.content!==this.props.content&&((l=(i=this.props).onInput)==null||l.call(i,this.props.content))}};o(Qs,"ValueEditor");var xk=pe(Jn());function wf(e){let[t,i]=(0,up.useState)(e.isValid(e.content)),l=(0,up.useRef)(null),d=o(p=>{var y;e.isValid(p)?e.onEditDone(p):(y=l.current)==null||y.resetValue()},"onEditDone"),v=(0,xk.default)(e.className,t?"has-success":"has-warning");return up.default.createElement(Qs,Ht(Ne({},e),{className:v,onInput:p=>i(e.isValid(p)),onEditDone:d,ref:l}))}o(wf,"ValidateEditor");function Yx(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}o(Yx,"_defineProperty");function Sk(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(e,d).enumerable})),i.push.apply(i,l)}return i}o(Sk,"ownKeys");function _y(e){for(var t=1;ti[l.level])));case Ek:case ZR:return Ne(Ne({},e),tp(e,Sh[t.cmd](t.data,l=>e.filters[l.level])));default:return e}}o(Jx,"reduce");function kk(e){return{type:Tk,filter:e}}o(kk,"toggleFilter");function fp(){return{type:bk}}o(fp,"toggleVisibility");function Ok(e,t="web"){let i={id:Math.random().toString(),message:e,level:t};return{type:Ek,cmd:"add",data:i}}o(Ok,"add");var Nk=by({flow:wT,modal:bx,optionsEditor:Tx});var ti;(function(v){v.INIT="CONNECTION_INIT",v.FETCHING="CONNECTION_FETCHING",v.ESTABLISHED="CONNECTION_ESTABLISHED",v.ERROR="CONNECTION_ERROR",v.OFFLINE="CONNECTION_OFFLINE"})(ti||(ti={}));var eI={state:ti.INIT,message:void 0},tI=o((e=eI,t)=>{switch(t.type){case ti.ESTABLISHED:case ti.FETCHING:case ti.ERROR:case ti.OFFLINE:return{state:t.type,message:t.message};default:return e}},"reducer"),Lk=tI;function Pk(){return{type:ti.FETCHING}}o(Pk,"startFetching");function Mk(){return{type:ti.ESTABLISHED}}o(Mk,"connectionEstablished");function Ak(e){return{type:ti.ERROR,message:e}}o(Ak,"connectionError");var Dk="COMMANDBAR_TOGGLE_VISIBILITY",rI={visible:!1},nI=o((e=rI,t)=>{switch(t.type){case Dk:return Ht(Ne({},e),{visible:!e.visible});default:return e}},"reducer"),Fk=nI;function Ty(){return{type:Dk}}o(Ty,"toggleVisibility");function Rk(e){return function(t){var i=t.dispatch,l=t.getState;return function(d){return function(v){return typeof v=="function"?v(i,l,e):d(v)}}}}o(Rk,"createThunkMiddleware");var Ik=Rk();Ik.withExtraArgument=Rk;var Hk=Ik;var iI=window.MITMWEB_CONF||{static:!1,version:"1.2.3",contentViews:["Auto","Raw"]},oI=o((e=iI,t)=>e,"reducer"),Wk=oI;var sI={},lI=o((e=sI,t)=>{switch(t.type){case kx:return t.data;case Ox:return Ne(Ne({},e),t.data);default:return e}},"reducer"),Bk=lI;var aI=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Zx,uI=by({commandBar:Fk,eventLog:Jx,flows:Kx,connection:Lk,ui:Nk,options:DT,options_meta:Bk,conf:Wk}),fI=o(e=>Qx(uI,e,aI(_k(Hk))),"createAppStore"),cp=fI(void 0),Xt=o(()=>Ys(),"useAppDispatch"),st=ax;var eo=pe(Fe());var Uk=pe(ep()),zk=pe(Jn()),eS=class extends eo.Component{constructor(){super(...arguments);this.container=eo.default.createRef();this.nameInput=eo.default.createRef();this.valueInput=eo.default.createRef();this.render=o(()=>{let[t,i]=this.props.item;return eo.default.createElement("div",{ref:this.container,className:"kv-row",onClick:this.onClick,onKeyDownCapture:this.onKeyDown},eo.default.createElement(Qs,{ref:this.nameInput,className:"kv-key",content:t,onEditStart:this.props.onEditStart,onEditDone:l=>this.props.onEditDone([l,i])}),":\xA0",eo.default.createElement(Qs,{ref:this.valueInput,className:"kv-value",content:i,onEditStart:this.props.onEditStart,onEditDone:l=>this.props.onEditDone([t,l]),placeholder:"empty"}))},"render");this.onClick=o(t=>{t.target===this.container.current&&this.props.onClickEmptyArea()},"onClick");this.onKeyDown=o(t=>{var i;t.target===((i=this.valueInput.current)==null?void 0:i.input.current)&&t.key==="Tab"&&this.props.onTabNext()},"onKeyDown")}};o(eS,"Row");var pp=class extends eo.Component{constructor(){super(...arguments);this.rowRefs={};this.state={currentList:this.props.data||[],initialList:this.props.data};this.render=o(()=>{this.rowRefs={};let t=this.state.currentList.map((i,l)=>eo.default.createElement(eS,{key:l,item:i,onEditStart:()=>this.currentlyEditing=l,onEditDone:d=>this.onEditDone(l,d),onClickEmptyArea:()=>this.onClickEmptyArea(l),onTabNext:()=>this.onTabNext(l),ref:d=>this.rowRefs[l]=d}));return eo.default.createElement("div",{className:(0,zk.default)("kv-editor",this.props.className),onMouseDown:this.onMouseDown},t,eo.default.createElement("div",{onClick:i=>{i.preventDefault(),this.onClickEmptyArea(this.state.currentList.length-1)},className:"kv-add-row fa fa-plus-square-o",role:"button","aria-label":"Add"}))},"render");this.onEditDone=o((t,i)=>{let l=[...this.state.currentList];i[0]?l[t]=i:l.splice(t,1),this.currentlyEditing=void 0,(0,Uk.isEqual)(this.state.currentList,l)||this.props.onChange(l),this.setState({currentList:l})},"onEditDone");this.onClickEmptyArea=o(t=>{if(this.justFinishedEditing)return;let i=[...this.state.currentList];i.splice(t+1,0,["",""]),this.setState({currentList:i},()=>{var l,d;return(d=(l=this.rowRefs[t+1])==null?void 0:l.nameInput.current)==null?void 0:d.startEditing()})},"onClickEmptyArea");this.onTabNext=o(t=>{t==this.state.currentList.length-1&&this.onClickEmptyArea(t)},"onTabNext");this.onMouseDown=o(t=>{this.justFinishedEditing=this.currentlyEditing},"onMouseDown")}static getDerivedStateFromProps(t,i){return t.data!==i.initialList?{currentList:t.data||[],initialList:t.data}:null}};o(pp,"KeyValueListEditor");var Qt=pe(Fe());var Mh=pe(Fe());var ky=80;function Oy(e,t){let[i,l]=(0,Mh.useState)(),[d,v]=(0,Mh.useState)();return(0,Mh.useEffect)(()=>{d&&d.abort();let p=new AbortController;return Dt(e,{signal:p.signal}).then(y=>{if(!y.ok)throw`${y.status} ${y.statusText}`.trim();return y.text()}).then(y=>{l(y)}).catch(y=>{p.signal.aborted||l(`Error getting content: ${y}.`)}),v(p),()=>{p.signal.aborted||p.abort()}},[e,t]),i}o(Oy,"useContent");var Ah=pe(Fe()),Ny=Ah.default.memo(o(function({icon:t,text:i,className:l,title:d,onOpenFile:v,onClick:p}){let y;return Ah.default.createElement("a",{href:"#",onClick:_=>{y.click(),p&&p(_)},className:l,title:d},Ah.default.createElement("i",{className:"fa fa-fw "+t}),i,Ah.default.createElement("input",{ref:_=>y=_,className:"hidden",type:"file",onChange:_=>{_.preventDefault(),_.target.files&&_.target.files.length>0&&v(_.target.files[0]),y.value=""}}))},"FileChooser"));var dp=pe(Fe()),$k=pe(Jn());function Vr({onClick:e,children:t,icon:i,disabled:l,className:d,title:v}){return dp.createElement("button",{className:(0,$k.default)(d,"btn btn-default"),onClick:l?void 0:e,disabled:l,title:v},i&&dp.createElement(dp.Fragment,null,dp.createElement("i",{className:"fa "+i}),"\xA0"),t)}o(Vr,"Button");var Fh=pe(Fe()),Yk=pe(Fe());var Dh=pe(Fe()),qk=pe(Jn()),Vk=pe(jk()),Kk=pe(ep());function Gk(e){return e&&e.replace(/\r\n|\r/g,` +`)}o(Gk,"normalizeLineEndings");var hp=class extends Dh.Component{constructor(t){super(t);this.state={isFocused:!1}}getCodeMirrorInstance(){return this.props.codeMirrorInstance||Vk.default}UNSAFE_componentWillMount(){this.props.path&&console.error("Warning: react-codemirror: the `path` prop has been changed to `name`")}componentDidMount(){let t=this.getCodeMirrorInstance();this.codeMirror=t.fromTextArea(this.textareaNode,this.props.options),this.codeMirror.on("change",this.codemirrorValueChanged.bind(this)),this.codeMirror.on("cursorActivity",this.cursorActivity.bind(this)),this.codeMirror.on("focus",this.focusChanged.bind(this,!0)),this.codeMirror.on("blur",this.focusChanged.bind(this,!1)),this.codeMirror.on("scroll",this.scrollChanged.bind(this)),this.codeMirror.setValue(this.props.defaultValue||this.props.value||"")}componentWillUnmount(){this.codeMirror&&this.codeMirror.toTextArea()}UNSAFE_componentWillReceiveProps(t){if(this.codeMirror&&t.value!==void 0&&t.value!==this.props.value&&Gk(this.codeMirror.getValue())!==Gk(t.value))if(this.props.preserveScrollPosition){var i=this.codeMirror.getScrollInfo();this.codeMirror.setValue(t.value),this.codeMirror.scrollTo(i.left,i.top)}else this.codeMirror.setValue(t.value);if(typeof t.options=="object")for(let l in t.options)t.options.hasOwnProperty(l)&&this.setOptionIfChanged(l,t.options[l])}setOptionIfChanged(t,i){let l=this.codeMirror.getOption(t);Kk.default.isEqual(l,i)||this.codeMirror.setOption(t,i)}getCodeMirror(){return this.codeMirror}focus(){this.codeMirror&&this.codeMirror.focus()}focusChanged(t){this.setState({isFocused:t}),this.props.onFocusChange&&this.props.onFocusChange(t)}cursorActivity(t){this.props.onCursorActivity&&this.props.onCursorActivity(t)}scrollChanged(t){this.props.onScroll&&this.props.onScroll(t.getScrollInfo())}codemirrorValueChanged(t,i){this.props.onChange&&i.origin!=="setValue"&&this.props.onChange(t.getValue(),i)}render(){let t=(0,qk.default)("ReactCodeMirror",this.state.isFocused?"ReactCodeMirror--focused":null,this.props.className);return Dh.createElement("div",{className:t},Dh.createElement("textarea",{ref:i=>this.textareaNode=i,name:this.props.name||this.props.path,defaultValue:this.props.value,autoComplete:"off",autoFocus:this.props.autoFocus}))}};o(hp,"CodeMirror"),hp.defaultProps={preserveScrollPosition:!1};var Rh=class extends Yk.Component{constructor(){super(...arguments);this.editor=Fh.createRef();this.getContent=o(()=>{var t;return(t=this.editor.current)==null?void 0:t.codeMirror.getValue()},"getContent");this.render=o(()=>{let t={lineNumbers:!0};return Fh.createElement("div",{className:"codeeditor",onKeyDown:i=>i.stopPropagation()},Fh.createElement(hp,{ref:this.editor,value:this.props.initialContent,onChange:()=>0,options:t}))},"render")}};o(Rh,"CodeEditor");var xf=pe(Fe()),cI=xf.default.memo(o(function({lines:t,maxLines:i,showMore:l}){return t.length===0?null:xf.default.createElement("pre",null,t.map((d,v)=>v===i?xf.default.createElement("button",{key:"showmore",onClick:l,className:"btn btn-xs btn-info"},xf.default.createElement("i",{className:"fa fa-angle-double-down","aria-hidden":"true"})," Show more"):xf.default.createElement("div",{key:v},d.map(([p,y],_)=>xf.default.createElement("span",{key:_,className:p},y)))))},"LineRenderer")),Ly=cI;var Sf=pe(Fe());function Ih({value:e,onChange:t}){let i=st(d=>d.conf.contentViews||[]),l=Sf.default.createElement("span",null,Sf.default.createElement("i",{className:"fa fa-fw fa-files-o"}),"\xA0",Sf.default.createElement("b",null,"View:")," ",e.toLowerCase()," ",Sf.default.createElement("span",{className:"caret"}));return Sf.default.createElement(Wl,{text:l,className:"btn btn-default btn-xs",options:{placement:"top-start"}},i.map(d=>Sf.default.createElement(Vt,{key:d,onClick:()=>t(d)},d.toLowerCase().replace("_"," "))))}o(Ih,"ViewSelector");function nS({flow:e,message:t}){let i=Xt(),l=e.request===t?"request":"response",d=st(te=>te.ui.flow.contentViewFor[e.id+l]||"Auto"),v=(0,Qt.useRef)(null),[p,y]=(0,Qt.useState)(ky),_=(0,Qt.useCallback)(()=>y(Math.max(1024,p*2)),[p]),[O,D]=(0,Qt.useState)(!1),Y;O?Y=jr.getContentURL(e,t):Y=jr.getContentURL(e,t,d,p+1);let B=Oy(Y,t.contentHash),X=(0,Qt.useMemo)(()=>{if(B&&!O)try{return JSON.parse(B)}catch(te){return{description:"Network Error",lines:[[["error",`${B}`]]]}}else return},[B]);if(O)return Qt.default.createElement("div",{className:"contentview",key:"edit"},Qt.default.createElement("div",{className:"controls"},Qt.default.createElement("h5",null,"[Editing]"),Qt.default.createElement(Vr,{onClick:o(()=>Ma(this,null,function*(){var F;let Q=(F=v.current)==null?void 0:F.getContent();yield i(Ri(e,{[l]:{content:Q}})),D(!1)}),"save"),icon:"fa-check text-success",className:"btn-xs"},"Done"),"\xA0",Qt.default.createElement(Vr,{onClick:()=>D(!1),icon:"fa-times text-danger",className:"btn-xs"},"Cancel")),Qt.default.createElement(Rh,{ref:v,initialContent:B||""}));{let te=X?X.description:"Loading...";return Qt.default.createElement("div",{className:"contentview",key:"view"},Qt.default.createElement("div",{className:"controls"},Qt.default.createElement("h5",null,te),Qt.default.createElement(Vr,{onClick:()=>D(!0),icon:"fa-edit",className:"btn-xs"},"Edit"),"\xA0",Qt.default.createElement(Ny,{icon:"fa-upload",text:"Replace",title:"Upload a file to replace the content.",onOpenFile:Q=>i(mk(e,Q,l)),className:"btn btn-default btn-xs"}),"\xA0",Qt.default.createElement(Ih,{value:d,onChange:Q=>i($g(e.id+l,Q))})),iS.matches(t)&&Qt.default.createElement(iS,{flow:e,message:t}),Qt.default.createElement(Ly,{lines:(X==null?void 0:X.lines)||[],maxLines:p,showMore:_}))}}o(nS,"HttpMessage");var pI=/^image\/(png|jpe?g|gif|webp|vnc.microsoft.icon|x-icon)$/i;iS.matches=e=>pI.test(jr.getContentType(e)||"");function iS({flow:e,message:t}){return Qt.default.createElement("div",{className:"flowview-image"},Qt.default.createElement("img",{src:jr.getContentURL(e,t),alt:"preview",className:"img-thumbnail"}))}o(iS,"ViewImage");function dI({flow:e}){let t=Xt();return Ut.createElement("div",{className:"first-line request-line"},Ut.createElement("div",null,Ut.createElement(wf,{content:e.request.method,onEditDone:i=>t(Ri(e,{request:{method:i}})),isValid:i=>i.length>0}),"\xA0",Ut.createElement(wf,{content:Ji.pretty_url(e.request),onEditDone:i=>t(Ri(e,{request:Ne({path:""},Sx(i))})),isValid:i=>{var l;return!!((l=Sx(i))==null?void 0:l.host)}}),"\xA0",Ut.createElement(wf,{content:e.request.http_version,onEditDone:i=>t(Ri(e,{request:{http_version:i}})),isValid:Cx})))}o(dI,"RequestLine");function hI({flow:e}){let t=Xt();return Ut.createElement("div",{className:"first-line response-line"},Ut.createElement(wf,{content:e.response.http_version,onEditDone:i=>t(Ri(e,{response:{http_version:i}})),isValid:Cx}),"\xA0",Ut.createElement(wf,{content:e.response.status_code+"",onEditDone:i=>t(Ri(e,{response:{code:parseInt(i)}})),isValid:i=>/^\d+$/.test(i)}),e.response.http_version!=="HTTP/2.0"&&Ut.createElement(Ut.Fragment,null,"\xA0",Ut.createElement(Qs,{content:e.response.reason,onEditDone:i=>t(Ri(e,{response:{msg:i}}))})))}o(hI,"ResponseLine");function mI({flow:e,message:t}){let i=Xt(),l=e.request===t?"request":"response";return Ut.createElement(pp,{className:"headers",data:t.headers,onChange:d=>i(Ri(e,{[l]:{headers:d}}))})}o(mI,"Headers");function vI({flow:e,message:t}){let i=Xt(),l=e.request===t?"request":"response";return!jr.get_first_header(t,/^trailer$/i)?null:Ut.createElement(Ut.Fragment,null,Ut.createElement("hr",null),Ut.createElement("h5",null,"HTTP Trailers"),Ut.createElement(pp,{className:"trailers",data:t.trailers,onChange:v=>i(Ri(e,{[l]:{trailers:v}}))}))}o(vI,"Trailers");var Xk=Ut.memo(o(function({flow:t,message:i}){let l=t.request===i?"request":"response",d=t.request===i?dI:hI;return Ut.createElement("section",{className:l},Ut.createElement(d,{flow:t}),Ut.createElement(mI,{flow:t,message:i}),Ut.createElement("hr",null),Ut.createElement(nS,{key:t.id+l,flow:t,message:i}),Ut.createElement(vI,{flow:t,message:i}))},"Message"));function oS(){let e=st(t=>t.flows.byId[t.flows.selected[0]]);return Ut.createElement(Xk,{flow:e,message:e.request})}o(oS,"Request");oS.displayName="Request";function sS(){let e=st(t=>t.flows.byId[t.flows.selected[0]]);return Ut.createElement(Xk,{flow:e,message:e.response})}o(sS,"Response");sS.displayName="Response";var _e=pe(Fe());function Qk({conn:e}){var i,l,d;let t=null;return"address"in e?t=_e.createElement(_e.Fragment,null,_e.createElement("tr",null,_e.createElement("td",null,"Address:"),_e.createElement("td",null,(i=e.address)==null?void 0:i.join(":"))),e.peername&&_e.createElement("tr",null,_e.createElement("td",null,"Resolved address:"),_e.createElement("td",null,e.peername.join(":"))),e.sockname&&_e.createElement("tr",null,_e.createElement("td",null,"Source address:"),_e.createElement("td",null,e.sockname.join(":")))):((l=e.peername)==null?void 0:l[0])&&(t=_e.createElement(_e.Fragment,null,_e.createElement("tr",null,_e.createElement("td",null,"Address:"),_e.createElement("td",null,(d=e.peername)==null?void 0:d.join(":"))))),_e.createElement("table",{className:"connection-table"},_e.createElement("tbody",null,t,e.sni?_e.createElement("tr",null,_e.createElement("td",null,_e.createElement("abbr",{title:"TLS Server Name Indication"},"SNI"),":"),_e.createElement("td",null,e.sni)):null,e.alpn?_e.createElement("tr",null,_e.createElement("td",null,_e.createElement("abbr",{title:"ALPN protocol negotiated"},"ALPN"),":"),_e.createElement("td",null,e.alpn)):null,e.tls_version?_e.createElement("tr",null,_e.createElement("td",null,"TLS Version:"),_e.createElement("td",null,e.tls_version)):null,e.cipher?_e.createElement("tr",null,_e.createElement("td",null,"TLS Cipher:"),_e.createElement("td",null,e.cipher)):null))}o(Qk,"ConnectionInfo");function Zk(e){return _e.createElement("dl",{className:"cert-attributes"},e.map(([t,i])=>_e.createElement(_e.Fragment,{key:t},_e.createElement("dt",null,t),_e.createElement("dd",null,i))))}o(Zk,"attrList");function gI({flow:e}){var i;let t=(i=e.server_conn)==null?void 0:i.cert;return t?_e.createElement(_e.Fragment,null,_e.createElement("h4",{key:"name"},"Server Certificate"),_e.createElement("table",{className:"certificate-table"},_e.createElement("tbody",null,_e.createElement("tr",null,_e.createElement("td",null,"Type"),_e.createElement("td",null,t.keyinfo[0],", ",t.keyinfo[1]," bits")),_e.createElement("tr",null,_e.createElement("td",null,"SHA256 digest"),_e.createElement("td",null,t.sha256)),_e.createElement("tr",null,_e.createElement("td",null,"Valid from"),_e.createElement("td",null,No(t.notbefore,{milliseconds:!1}))),_e.createElement("tr",null,_e.createElement("td",null,"Valid to"),_e.createElement("td",null,No(t.notafter,{milliseconds:!1}))),_e.createElement("tr",null,_e.createElement("td",null,"Subject Alternative Names"),_e.createElement("td",null,t.altnames.join(", "))),_e.createElement("tr",null,_e.createElement("td",null,"Subject"),_e.createElement("td",null,Zk(t.subject))),_e.createElement("tr",null,_e.createElement("td",null,"Issuer"),_e.createElement("td",null,Zk(t.issuer))),_e.createElement("tr",null,_e.createElement("td",null,"Serial"),_e.createElement("td",null,t.serial))))):_e.createElement(_e.Fragment,null)}o(gI,"CertificateInfo");function Py({flow:e}){var t;return _e.createElement("section",{className:"detail"},_e.createElement("h4",null,"Client Connection"),_e.createElement(Qk,{conn:e.client_conn}),((t=e.server_conn)==null?void 0:t.address)&&_e.createElement(_e.Fragment,null,_e.createElement("h4",null,"Server Connection"),_e.createElement(Qk,{conn:e.server_conn})),_e.createElement(gI,{flow:e}))}o(Py,"Connection");Py.displayName="Connection";var Hh=pe(Fe());function My({flow:e}){return Hh.createElement("section",{className:"error"},Hh.createElement("div",{className:"alert alert-warning"},e.error.msg,Hh.createElement("div",null,Hh.createElement("small",null,No(e.error.timestamp)))))}o(My,"Error");My.displayName="Error";var ls=pe(Fe());function yI({t:e,deltaTo:t,title:i}){return e?ls.createElement("tr",null,ls.createElement("td",null,i,":"),ls.createElement("td",null,No(e),t&&ls.createElement("span",{className:"text-muted"},"(",zg(1e3*(e-t)),")"))):ls.createElement("tr",null)}o(yI,"TimeStamp");function Ay({flow:e}){var l,d,v,p,y;let t;e.type==="http"?t=e.request.timestamp_start:t=e.client_conn.timestamp_start;let i=[{title:"Server conn. initiated",t:(l=e.server_conn)==null?void 0:l.timestamp_start,deltaTo:t},{title:"Server conn. TCP handshake",t:(d=e.server_conn)==null?void 0:d.timestamp_tcp_setup,deltaTo:t},{title:"Server conn. TLS handshake",t:(v=e.server_conn)==null?void 0:v.timestamp_tls_setup,deltaTo:t},{title:"Client conn. established",t:e.client_conn.timestamp_start,deltaTo:e.type==="http"?t:void 0},{title:"Client conn. TLS handshake",t:e.client_conn.timestamp_tls_setup,deltaTo:t}];return e.type==="http"&&i.push({title:"First request byte",t:e.request.timestamp_start},{title:"Request complete",t:e.request.timestamp_end,deltaTo:t},{title:"First response byte",t:(p=e.response)==null?void 0:p.timestamp_start,deltaTo:t},{title:"Response complete",t:(y=e.response)==null?void 0:y.timestamp_end,deltaTo:t}),ls.createElement("section",{className:"timing"},ls.createElement("h4",null,"Timing"),ls.createElement("table",{className:"timing-table"},ls.createElement("tbody",null,i.filter(_=>!!_.t).sort((_,O)=>_.t-O.t).map(_=>ls.createElement(yI,Ne({key:_.title},_))))))}o(Ay,"Timing");Ay.displayName="Timing";var ri=pe(Fe()),mp=pe(Fe());function Dy({flow:e}){let t=Xt(),i=st(_=>_.ui.flow.contentViewFor[e.id+"ws"]||"Auto"),[l,d]=(0,mp.useState)(ky),v=(0,mp.useCallback)(()=>d(Math.max(1024,l*2)),[l]),p=Oy(jr.getContentURL(e,"messages",i,l+1),e.id+e.websocket.messages_meta.count),y=(0,mp.useMemo)(()=>p&&JSON.parse(p),[p])||[];return ri.createElement("section",{className:"websocket"},ri.createElement("h4",null,"WebSocket"),ri.createElement("div",{className:"contentview"},ri.createElement("div",{className:"controls"},ri.createElement("h5",null,e.websocket.messages_meta.count," Messages"),ri.createElement(Ih,{value:i,onChange:_=>t($g(e.id+"ws",_))})),y.map((_,O)=>{let D=`fa fa-fw fa-arrow-${_.from_client?"right text-primary":"left text-danger"}`,Y=ri.createElement("div",{key:O},ri.createElement("small",null,ri.createElement("i",{className:D}),ri.createElement("span",{className:"pull-right"},_.timestamp&&No(_.timestamp))),ri.createElement(Ly,{lines:_.lines,maxLines:l,showMore:v}));return l-=_.lines.length,Y})),ri.createElement(wI,{websocket:e.websocket}))}o(Dy,"WebSocket");Dy.displayName="WebSocket";function wI({websocket:e}){if(!e.timestamp_end)return null;let t=e.close_reason?`(${e.close_reason})`:"";return ri.createElement("div",null,ri.createElement("i",{className:"fa fa-fw fa-window-close text-muted"}),"\xA0 Closed by ",e.closed_by_client?"client":"server"," with code ",e.close_code," ",t,".",ri.createElement("small",{className:"pull-right"},No(e.timestamp_end)))}o(wI,"CloseSummary");var Jk=pe(Jn()),eO={request:oS,response:sS,error:My,connection:Py,timing:Ay,websocket:Dy};function Fy(e){let t=["request","response","websocket","error"].filter(i=>e[i]);return t.push("connection"),t.push("timing"),t}o(Fy,"tabsForFlow");function lS(){let e=Xt(),t=st(v=>v.flows.byId[v.flows.selected[0]]),i=Fy(t),l=st(v=>v.ui.flow.tab);i.indexOf(l)<0&&(l==="response"&&t.error?l="error":l==="error"&&"response"in t?l="response":l=i[0]);let d=eO[l];return Wh.createElement("div",{className:"flow-detail"},Wh.createElement("nav",{className:"nav-tabs nav-tabs-sm"},i.map(v=>Wh.createElement("a",{key:v,href:"#",className:(0,Jk.default)({active:l===v}),onClick:p=>{p.preventDefault(),e(af(v))}},eO[v].displayName))),Wh.createElement(d,{flow:t}))}o(lS,"FlowView");function tO(e){if(e.ctrlKey||e.metaKey)return()=>{};let t=e.keyCode,i=e.shiftKey;return e.preventDefault(),(l,d)=>{let v=d().flows,p=v.byId[d().flows.selected[0]];switch(t){case yt.K:case yt.UP:l(gf(v,-1));break;case yt.J:case yt.DOWN:l(gf(v,1));break;case yt.SPACE:case yt.PAGE_DOWN:l(gf(v,10));break;case yt.PAGE_UP:l(gf(v,-10));break;case yt.END:l(gf(v,1e10));break;case yt.HOME:l(gf(v,-1e10));break;case yt.ESC:d().ui.modal.activeModal?l(Gg()):l(yf(null));break;case yt.LEFT:{if(!p)break;let y=Fy(p),_=d().ui.flow.tab,O=y[(y.indexOf(_)-1+y.length)%y.length];l(af(O));break}case yt.TAB:case yt.RIGHT:{if(!p)break;let y=Fy(p),_=d().ui.flow.tab,O=y[(y.indexOf(_)+1)%y.length];l(af(O));break}case yt.D:{if(!p)return;l(i?xy(p):wy(p));break}case yt.A:{i?l(gy()):p&&p.intercepted&&l(sp(p));break}case yt.R:{!i&&p&&l(lp(p));break}case yt.V:{!i&&p&&p.modified&&l(Sy(p));break}case yt.X:{i?l(hk()):p&&p.intercepted&&l(yy(p));break}case yt.Z:{i||l(Cy());break}default:return}}}o(tO,"onKeyDown");var Vh=pe(Fe());var Bh=pe(Fe()),Uh=pe(eu()),rO=pe(Jn()),vp=class extends Bh.Component{constructor(t,i){super(t,i);this.state={applied:!1,startX:0,startY:0},this.onMouseMove=this.onMouseMove.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onDragEnd=this.onDragEnd.bind(this)}onMouseDown(t){this.setState({startX:t.pageX,startY:t.pageY}),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("dragend",this.onDragEnd)}onDragEnd(){Uh.default.findDOMNode(this).style.transform="",window.removeEventListener("dragend",this.onDragEnd),window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove)}onMouseUp(t){this.onDragEnd();let i=Uh.default.findDOMNode(this),l=i.previousElementSibling,d=l.offsetHeight+t.pageY-this.state.startY;this.props.axis==="x"&&(d=l.offsetWidth+t.pageX-this.state.startX),l.style.flex=`0 0 ${Math.max(0,d)}px`,i.nextElementSibling.style.flex="1 1 auto",this.setState({applied:!0}),this.onResize()}onMouseMove(t){let i=0,l=0;this.props.axis==="x"?i=t.pageX-this.state.startX:l=t.pageY-this.state.startY,Uh.default.findDOMNode(this).style.transform=`translate(${i}px, ${l}px)`}onResize(){window.setTimeout(()=>window.dispatchEvent(new CustomEvent("resize")),1)}reset(t){if(!this.state.applied)return;let i=Uh.default.findDOMNode(this);i.previousElementSibling.style.flex="",i.nextElementSibling.style.flex="",t||this.setState({applied:!1}),this.onResize()}componentWillUnmount(){this.reset(!0)}render(){return Bh.default.createElement("div",{className:(0,rO.default)("splitter",this.props.axis==="x"?"splitter-x":"splitter-y")},Bh.default.createElement("div",{onMouseDown:this.onMouseDown,draggable:"true"}))}};o(vp,"Splitter"),vp.defaultProps={axis:"x"};var as=pe(Fe()),jh=pe(zh()),Iy=pe(eu());var gO=pe(aS());var sz=pe(Fe()),uS=pe(eu()),cO=Symbol("shouldStick"),pO=o(e=>e.scrollTop+e.clientHeight===e.scrollHeight,"isAtBottom"),Ry=o(e=>{var t;return Object.assign((o(t=class extends e{UNSAFE_componentWillUpdate(){let l=uS.default.findDOMNode(this);this[cO]=l.scrollTop&&pO(l),super.UNSAFE_componentWillUpdate&&super.UNSAFE_componentWillUpdate(),super.componentWillUpdate&&super.componentWillUpdate()}componentDidUpdate(){let l=uS.default.findDOMNode(this);this[cO]&&!pO(l)&&(l.scrollTop=l.scrollHeight),super.componentDidUpdate&&super.componentDidUpdate()}},"AutoScrollWrapper"),es(t,"displayName",e.name),t),e)},"default");function gp(e){if(!e)return{start:0,end:0,paddingTop:0,paddingBottom:0};let{itemCount:t,rowHeight:i,viewportTop:l,viewportHeight:d,itemHeights:v}=e,p=l+d,y=0,_=0,O=0,D=0;if(v)for(let Y=0,B=0;Yy.flows.sort.desc),l=st(y=>y.flows.sort.column),d=st(y=>y.options.web_columns),v=i?"sort-desc":"sort-asc",p=d.map(y=>Lh[y]).filter(y=>y).concat(op);return $h.createElement("tr",null,p.map(y=>$h.createElement("th",{className:(0,dO.default)(`col-${y.name}`,l===y.name&&v),key:y.name,onClick:()=>t(dk(y.name,y.name!==l?!1:!i))},y.headerName)))},"FlowTableHead"));var yp=pe(Fe()),mO=pe(Jn());var vO=yp.default.memo(o(function({flow:t,selected:i,highlighted:l}){let d=Xt(),v=st(O=>O.options.web_columns),p=(0,mO.default)({selected:i,highlighted:l,intercepted:t.intercepted,"has-request":t.type==="http"&&t.request,"has-response":t.type==="http"&&t.response}),y=(0,yp.useCallback)(O=>{let D=O.target;for(;D.parentNode;){if(D.classList.contains("col-quickactions"))return;D=D.parentNode}d(yf(t.id))},[t]),_=v.map(O=>Lh[O]).filter(O=>O).concat(op);return yp.default.createElement("tr",{className:p,onClick:y},_.map(O=>yp.default.createElement(O,{key:O.name,flow:t})))},"FlowRow"));var qh=class extends as.Component{constructor(t,i){super(t,i);this.state={vScroll:gp()},this.onViewportUpdate=this.onViewportUpdate.bind(this)}UNSAFE_componentWillMount(){window.addEventListener("resize",this.onViewportUpdate)}UNSAFE_componentWillUnmount(){window.removeEventListener("resize",this.onViewportUpdate)}componentDidUpdate(){if(this.onViewportUpdate(),!this.shouldScrollIntoView)return;this.shouldScrollIntoView=!1;let{rowHeight:t,flows:i,selected:l}=this.props,d=Iy.default.findDOMNode(this),v=Iy.default.findDOMNode(this.refs.head),p=v?v.offsetHeight:0,y=i.indexOf(l)*t+p,_=y+t,O=d.scrollTop,D=d.offsetHeight;y-pO+D&&(d.scrollTop=_-D)}UNSAFE_componentWillReceiveProps(t){t.selected&&t.selected!==this.props.selected&&(this.shouldScrollIntoView=!0)}onViewportUpdate(){let t=Iy.default.findDOMNode(this),i=t.scrollTop||0,l=gp({viewportTop:i,viewportHeight:t.offsetHeight||0,itemCount:this.props.flows.length,rowHeight:this.props.rowHeight});(this.state.viewportTop!==i||!(0,gO.default)(this.state.vScroll,l))&&this.setState({vScroll:l,viewportTop:i})}render(){let{vScroll:t,viewportTop:i}=this.state,{flows:l,selected:d,highlight:v}=this.props,p=v?uf.parse(v):()=>!1;return as.createElement("div",{className:"flow-table",onScroll:this.onViewportUpdate},as.createElement("table",null,as.createElement("thead",{ref:"head",style:{transform:`translateY(${i}px)`}},as.createElement(hO,null)),as.createElement("tbody",null,as.createElement("tr",{style:{height:t.paddingTop}}),l.slice(t.start,t.end).map(y=>as.createElement(vO,{key:y.id,flow:y,selected:y===d,highlighted:p(y)})),as.createElement("tr",{style:{height:t.paddingBottom}}))))}};o(qh,"FlowTable"),es(qh,"propTypes",{flows:jh.default.array.isRequired,rowHeight:jh.default.number,highlight:jh.default.string,selected:jh.default.object}),es(qh,"defaultProps",{rowHeight:32});var CI=Ry(qh),yO=Fi(e=>({flows:e.flows.view,highlight:e.flows.highlight,selected:e.flows.byId[e.flows.selected[0]]}))(CI);function fS(){let e=st(t=>!!t.flows.byId[t.flows.selected[0]]);return Vh.createElement("div",{className:"main-view"},Vh.createElement(yO,null),e&&Vh.createElement(vp,{key:"splitter"}),e&&Vh.createElement(lS,{key:"flowDetails"}))}o(fS,"MainView");var Do=pe(Fe()),EO=pe(Jn());var ni=pe(Fe());var us=pe(Fe()),Hy=pe(eu()),wO=pe(Jn());var to=pe(Fe());var ro=class extends to.Component{constructor(t,i){super(t,i);this.state={doc:ro.doc}}componentDidMount(){ro.xhr||(ro.xhr=Dt("/filter-help").then(t=>t.json()),ro.xhr.catch(()=>{ro.xhr=null})),this.state.doc||ro.xhr.then(t=>{ro.doc=t,this.setState({doc:t})})}render(){let{doc:t}=this.state;return t?to.default.createElement("table",{className:"table table-condensed"},to.default.createElement("tbody",null,t.commands.map(i=>to.default.createElement("tr",{key:i[1],onClick:l=>this.props.selectHandler(i[0].split(" ")[0]+" ")},to.default.createElement("td",null,i[0].replace(" ","\xA0")),to.default.createElement("td",null,i[1]))),to.default.createElement("tr",{key:"docs-link"},to.default.createElement("td",{colSpan:2},to.default.createElement("a",{href:"https://mitmproxy.org/docs/latest/concepts-filters/",target:"_blank"},to.default.createElement("i",{className:"fa fa-external-link"}),"\xA0 mitmproxy docs"))))):to.default.createElement("i",{className:"fa fa-spinner fa-spin"})}};o(ro,"FilterDocs");var Cf=class extends us.Component{constructor(t,i){super(t,i);this.state={value:this.props.value,focus:!1,mousefocus:!1},this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.selectFilter=this.selectFilter.bind(this)}UNSAFE_componentWillReceiveProps(t){this.setState({value:t.value})}isValid(t){try{return t&&uf.parse(t),!0}catch(i){return!1}}getDesc(){if(!this.state.value)return us.default.createElement(ro,{selectHandler:this.selectFilter});try{return uf.parse(this.state.value).desc}catch(t){return""+t}}onChange(t){let i=t.target.value;this.setState({value:i}),this.isValid(i)&&this.props.onChange(i)}onFocus(){this.setState({focus:!0})}onBlur(){this.setState({focus:!1})}onMouseEnter(){this.setState({mousefocus:!0})}onMouseLeave(){this.setState({mousefocus:!1})}onKeyDown(t){(t.keyCode===yt.ESC||t.keyCode===yt.ENTER)&&(this.blur(),this.setState({mousefocus:!1})),t.stopPropagation()}selectFilter(t){this.setState({value:t}),Hy.default.findDOMNode(this.refs.input).focus()}blur(){Hy.default.findDOMNode(this.refs.input).blur()}select(){Hy.default.findDOMNode(this.refs.input).select()}render(){let{type:t,color:i,placeholder:l}=this.props,{value:d,focus:v,mousefocus:p}=this.state;return us.default.createElement("div",{className:(0,wO.default)("filter-input input-group",{"has-error":!this.isValid(d)})},us.default.createElement("span",{className:"input-group-addon"},us.default.createElement("i",{className:"fa fa-fw fa-"+t,style:{color:i}})),us.default.createElement("input",{type:"text",ref:"input",placeholder:l,className:"form-control",value:d,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown}),(v||p)&&us.default.createElement("div",{className:"popover bottom",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},us.default.createElement("div",{className:"arrow"}),us.default.createElement("div",{className:"popover-content"},this.getDesc())))}};o(Cf,"FilterInput");wp.title="Start";function wp(){return ni.createElement("div",{className:"main-menu"},ni.createElement("div",{className:"menu-group"},ni.createElement("div",{className:"menu-content"},ni.createElement(EI,null),ni.createElement(bI,null)),ni.createElement("div",{className:"menu-legend"},"Find")),ni.createElement("div",{className:"menu-group"},ni.createElement("div",{className:"menu-content"},ni.createElement(_I,null),ni.createElement(TI,null)),ni.createElement("div",{className:"menu-legend"},"Intercept")))}o(wp,"StartMenu");function _I(){let e=Xt(),t=st(i=>i.options.intercept);return ni.createElement(Cf,{value:t||"",placeholder:"Intercept",type:"pause",color:"hsl(208, 56%, 53%)",onChange:i=>e(ff("intercept",i))})}o(_I,"InterceptInput");function EI(){let e=Xt(),t=st(i=>i.flows.filter);return ni.createElement(Cf,{value:t||"",placeholder:"Search",type:"search",color:"black",onChange:i=>e(my(i))})}o(EI,"FlowFilterInput");function bI(){let e=Xt(),t=st(i=>i.flows.highlight);return ni.createElement(Cf,{value:t||"",placeholder:"Highlight",type:"tag",color:"hsl(48, 100%, 50%)",onChange:i=>e(vy(i))})}o(bI,"HighlightInput");function TI(){let e=Xt();return ni.createElement(Vr,{className:"btn-sm",title:"[a]ccept all",icon:"fa-forward text-success",onClick:()=>e(gy())},"Resume All")}o(TI,"ResumeAll");var Kr=pe(Fe());var _f=pe(Fe());function cS({value:e,onChange:t,children:i}){return _f.createElement("div",{className:"menu-entry"},_f.createElement("label",null,_f.createElement("input",{type:"checkbox",checked:e,onChange:t}),i))}o(cS,"MenuToggle");function Wy({name:e,children:t}){let i=Xt(),l=st(d=>d.options[e]);return _f.createElement(cS,{value:!!l,onChange:()=>i(ff(e,!l))},t)}o(Wy,"OptionsToggle");function xO(){let e=Ys(),t=st(i=>i.eventLog.visible);return _f.createElement(cS,{value:t,onChange:()=>e(fp())},"Display Event Log")}o(xO,"EventlogToggle");function SO(){let e=Ys(),t=st(i=>i.commandBar.visible);return _f.createElement(cS,{value:t,onChange:()=>e(Ty())},"Display Command Bar")}o(SO,"CommandBarToggle");var pS=pe(Fe());function dS({children:e,resource:t}){let i=`https://docs.mitmproxy.org/stable/${t}`;return pS.createElement("a",{target:"_blank",href:i},e||pS.createElement("i",{className:"fa fa-question-circle"}))}o(dS,"DocsLink");var By=pe(Fe());function Ao({children:e}){return window.MITMWEB_CONF&&window.MITMWEB_CONF.static?null:By.createElement(By.Fragment,null,e)}o(Ao,"HideInStatic");Uy.title="Options";function Uy(){let e=Xt(),t=o(()=>bT("OptionModal"),"openOptions");return Kr.createElement("div",null,Kr.createElement(Ao,null,Kr.createElement("div",{className:"menu-group"},Kr.createElement("div",{className:"menu-content"},Kr.createElement(Vr,{title:"Open Options",icon:"fa-cogs text-primary",onClick:()=>e(t())},"Edit Options ",Kr.createElement("sup",null,"alpha"))),Kr.createElement("div",{className:"menu-legend"},"Options Editor")),Kr.createElement("div",{className:"menu-group"},Kr.createElement("div",{className:"menu-content"},Kr.createElement(Wy,{name:"anticache"},"Strip cache headers ",Kr.createElement(dS,{resource:"overview-features/#anticache"})),Kr.createElement(Wy,{name:"showhost"},"Use host header for display"),Kr.createElement(Wy,{name:"ssl_insecure"},"Don't verify server certificates")),Kr.createElement("div",{className:"menu-legend"},"Quick Options"))),Kr.createElement("div",{className:"menu-group"},Kr.createElement("div",{className:"menu-content"},Kr.createElement(xO,null),Kr.createElement(SO,null)),Kr.createElement("div",{className:"menu-legend"},"View Options")))}o(Uy,"OptionMenu");var mi=pe(Fe());var CO=mi.memo(o(function(){let t=Ys();return mi.createElement(Wl,{className:"pull-left special",text:"File",options:{placement:"bottom-start"}},mi.createElement("li",null,mi.createElement(Ny,{icon:"fa-folder-open",text:"\xA0Open...",onClick:i=>i.stopPropagation(),onOpenFile:i=>{t(gk(i)),document.body.click()}})),mi.createElement(Vt,{onClick:()=>t(vk())},mi.createElement("i",{className:"fa fa-fw fa-floppy-o"}),"\xA0Save..."),mi.createElement(Vt,{onClick:()=>confirm("Delete all flows?")&&t(Cy())},mi.createElement("i",{className:"fa fa-fw fa-trash"}),"\xA0Clear All"),mi.createElement(Ao,null,mi.createElement(sk,null),mi.createElement("li",null,mi.createElement("a",{href:"http://mitm.it/",target:"_blank"},mi.createElement("i",{className:"fa fa-fw fa-external-link"}),"\xA0Install Certificates..."))))},"FileMenu"));var wt=pe(Fe());xp.title="Flow";function xp(){let e=Xt(),t=st(i=>i.flows.byId[i.flows.selected[0]]);return t?wt.createElement("div",{className:"flow-menu"},wt.createElement(Ao,null,wt.createElement("div",{className:"menu-group"},wt.createElement("div",{className:"menu-content"},wt.createElement(Vr,{title:"[r]eplay flow",icon:"fa-repeat text-primary",onClick:()=>e(lp(t)),disabled:!(t.type==="http"&&!t.websocket)},"Replay"),wt.createElement(Vr,{title:"[D]uplicate flow",icon:"fa-copy text-info",onClick:()=>e(xy(t))},"Duplicate"),wt.createElement(Vr,{disabled:!t||!t.modified,title:"revert changes to flow [V]",icon:"fa-history text-warning",onClick:()=>e(Sy(t))},"Revert"),wt.createElement(Vr,{title:"[d]elete flow",icon:"fa-trash text-danger",onClick:()=>e(wy(t))},"Delete")),wt.createElement("div",{className:"menu-legend"},"Flow Modification"))),wt.createElement("div",{className:"menu-group"},wt.createElement("div",{className:"menu-content"},wt.createElement(kI,{flow:t}),wt.createElement(Wl,{className:"",text:wt.createElement(Vr,{title:"Export flow.",icon:"fa-clone",onClick:()=>1},"Export\u25BE"),options:{placement:"bottom-start"}},wt.createElement(Vt,{onClick:()=>Mo(t,"raw_request")},"Copy raw request"),wt.createElement(Vt,{onClick:()=>Mo(t,"raw_response")},"Copy raw response"),wt.createElement(Vt,{onClick:()=>Mo(t,"raw")},"Copy raw request and response"),wt.createElement(Vt,{onClick:()=>Mo(t,"curl")},"Copy as cURL"),wt.createElement(Vt,{onClick:()=>Mo(t,"httpie")},"Copy as HTTPie"))),wt.createElement("div",{className:"menu-legend"},"Export")),wt.createElement(Ao,null,wt.createElement("div",{className:"menu-group"},wt.createElement("div",{className:"menu-content"},wt.createElement(Vr,{disabled:!t||!t.intercepted,title:"[a]ccept intercepted flow",icon:"fa-play text-success",onClick:()=>e(sp(t))},"Resume"),wt.createElement(Vr,{disabled:!t||!t.intercepted,title:"kill intercepted flow [x]",icon:"fa-times text-danger",onClick:()=>e(yy(t))},"Abort")),wt.createElement("div",{className:"menu-legend"},"Interception")))):wt.createElement("div",null)}o(xp,"FlowMenu");function kI({flow:e}){var t;if(e.type!=="http")return null;if(e.request.contentLength&&!((t=e.response)==null?void 0:t.contentLength))return wt.createElement(Vr,{icon:"fa-download",onClick:()=>window.location.href=jr.getContentURL(e,e.request)},"Download");if(e.response){let i=e.response;if(!e.request.contentLength&&e.response.contentLength)return wt.createElement(Vr,{icon:"fa-download",onClick:()=>window.location.href=jr.getContentURL(e,i)},"Download");if(e.request.contentLength&&e.response.contentLength)return wt.createElement(Wl,{text:wt.createElement(Vr,{icon:"fa-download",onClick:()=>1},"Download\u25BE"),options:{placement:"bottom-start"}},wt.createElement(Vt,{onClick:()=>window.location.href=jr.getContentURL(e,e.request)},"Download request"),wt.createElement(Vt,{onClick:()=>window.location.href=jr.getContentURL(e,i)},"Download response"))}return null}o(kI,"DownloadButton");var su=pe(Fe());var _O=su.memo(o(function(){let t=st(l=>l.connection.state),i=st(l=>l.connection.message);switch(t){case ti.INIT:return su.createElement("span",{className:"connection-indicator init"},"connecting\u2026");case ti.FETCHING:return su.createElement("span",{className:"connection-indicator fetching"},"fetching data\u2026");case ti.ESTABLISHED:return su.createElement("span",{className:"connection-indicator established"},"connected");case ti.ERROR:return su.createElement("span",{className:"connection-indicator error",title:i},"connection lost");case ti.OFFLINE:return su.createElement("span",{className:"connection-indicator offline"},"offline");default:let l=t;throw"unknown connection state"}},"ConnectionIndicator"));function hS(){let e=st(y=>y.flows.selected.filter(_=>_ in y.flows.byId)),[t,i]=(0,Do.useState)(()=>wp),[l,d]=(0,Do.useState)(!1),v=[wp,Uy];e.length>0?(l||(i(()=>xp),d(!0)),v.push(xp)):(l&&d(!1),t===xp&&i(()=>wp));function p(y,_){_.preventDefault(),i(()=>y)}return o(p,"handleClick"),Do.default.createElement("header",null,Do.default.createElement("nav",{className:"nav-tabs nav-tabs-lg"},Do.default.createElement(CO,null),v.map(y=>Do.default.createElement("a",{key:y.title,href:"#",className:(0,EO.default)({active:y===t}),onClick:_=>p(y,_)},y.title)),Do.default.createElement(Ao,null,Do.default.createElement(_O,null))),Do.default.createElement("div",null,Do.default.createElement(t,null)))}o(hS,"Header");var Xe=pe(Fe()),bO=pe(Jn());var mS=function(){"use strict";function e(l,d){function v(){this.constructor=l}o(v,"ctor"),v.prototype=d.prototype,l.prototype=new v}o(e,"peg$subclass");function t(l,d,v,p){this.message=l,this.expected=d,this.found=v,this.location=p,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,t)}o(t,"peg$SyntaxError"),e(t,Error);function i(l){var d=arguments.length>1?arguments[1]:{},v=this,p={},y={Expr:yr},_=yr,O=o(function(H,J){return[H,...J]},"peg$c0"),D=o(function(H){return[H]},"peg$c1"),Y=o(function(){return""},"peg$c2"),B={type:"other",description:"string"},X='"',te={type:"literal",value:'"',description:'"\\""'},Q=o(function(H){return H.join("")},"peg$c6"),F="'",P={type:"literal",value:"'",description:`"'"`},R=/^["\\]/,K={type:"class",value:'["\\\\]',description:'["\\\\]'},V={type:"any",description:"any character"},ue=o(function(H){return H},"peg$c12"),ie="\\",he={type:"literal",value:"\\",description:'"\\\\"'},me=/^['\\]/,xe={type:"class",value:"['\\\\]",description:"['\\\\]"},Ve=/^['"\\]/,Qe={type:"class",value:`['"\\\\]`,description:`['"\\\\]`},Ee="n",xt={type:"literal",value:"n",description:'"n"'},qe=o(function(){return` +`},"peg$c21"),ct="r",ze={type:"literal",value:"r",description:'"r"'},lt=o(function(){return"\r"},"peg$c24"),Zt="t",at={type:"literal",value:"t",description:'"t"'},Rr=o(function(){return" "},"peg$c27"),Kt={type:"other",description:"whitespace"},Ot=/^[ \t\n\r]/,St={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},it={type:"other",description:"control character"},br=/^[|&!()~"]/,zt={type:"class",value:'[|&!()~"]',description:'[|&!()~"]'},$t={type:"other",description:"optional whitespace"},ne=0,Ze=0,Tr=[{line:1,column:1,seenCR:!1}],jt=0,qt=[],we=0,kr;if("startRule"in d){if(!(d.startRule in y))throw new Error(`Can't start parsing from rule "`+d.startRule+'".');_=y[d.startRule]}function ln(){return l.substring(Ze,ne)}o(ln,"text");function In(){return dr(Ze,ne)}o(In,"location");function ii(H){throw Io(null,[{type:"other",description:H}],l.substring(Ze,ne),dr(Ze,ne))}o(ii,"expected");function an(H){throw Io(H,null,l.substring(Ze,ne),dr(Ze,ne))}o(an,"error");function Gt(H){var J=Tr[H],de,be;if(J)return J;for(de=H-1;!Tr[de];)de--;for(J=Tr[de],J={line:J.line,column:J.column,seenCR:J.seenCR};dejt&&(jt=ne,qt=[]),qt.push(H))}o(ut,"peg$fail");function Io(H,J,de,be){function Jt(Ft){var Ir=1;for(Ft.sort(function(er,oi){return er.descriptionoi.description?1:0});Ir1?oi.slice(0,-1).join(", ")+" or "+oi[Ft.length-1]:oi[0],no=Ir?'"'+er(Ir)+'"':"end of input","Expected "+fs+" but "+no+" found."}return o(zl,"buildMessage"),J!==null&&Jt(J),new t(H!==null?H:zl(J,de),J,de,be)}o(Io,"peg$buildException");function yr(){var H,J,de,be;if(H=ne,J=Ii(),J!==p){if(de=[],be=Wn(),be!==p)for(;be!==p;)de.push(be),be=Wn();else de=p;de!==p?(be=yr(),be!==p?(Ze=H,J=O(J,be),H=J):(ne=H,H=p)):(ne=H,H=p)}else ne=H,H=p;if(H===p&&(H=ne,J=Ii(),J!==p&&(Ze=H,J=D(J)),H=J,H===p)){for(H=ne,J=[],de=Wn();de!==p;)J.push(de),de=Wn();J!==p&&(Ze=H,J=Y()),H=J}return H}o(yr,"peg$parseExpr");function Ii(){var H,J,de,be;if(we++,H=ne,l.charCodeAt(ne)===34?(J=X,ne++):(J=p,we===0&&ut(te)),J!==p){for(de=[],be=un();be!==p;)de.push(be),be=un();de!==p?(l.charCodeAt(ne)===34?(be=X,ne++):(be=p,we===0&&ut(te)),be!==p?(Ze=H,J=Q(de),H=J):(ne=H,H=p)):(ne=H,H=p)}else ne=H,H=p;if(H===p){if(H=ne,l.charCodeAt(ne)===39?(J=F,ne++):(J=p,we===0&&ut(P)),J!==p){for(de=[],be=Hn();be!==p;)de.push(be),be=Hn();de!==p?(l.charCodeAt(ne)===39?(be=F,ne++):(be=p,we===0&&ut(P)),be!==p?(Ze=H,J=Q(de),H=J):(ne=H,H=p)):(ne=H,H=p)}else ne=H,H=p;if(H===p){if(H=ne,J=ne,we++,de=Tn(),we--,de===p?J=void 0:(ne=J,J=p),J!==p){if(de=[],be=vi(),be!==p)for(;be!==p;)de.push(be),be=vi();else de=p;de!==p?(Ze=H,J=Q(de),H=J):(ne=H,H=p)}else ne=H,H=p;if(H===p){if(H=ne,l.charCodeAt(ne)===34?(J=X,ne++):(J=p,we===0&&ut(te)),J!==p){for(de=[],be=un();be!==p;)de.push(be),be=un();de!==p?(Ze=H,J=Q(de),H=J):(ne=H,H=p)}else ne=H,H=p;if(H===p)if(H=ne,l.charCodeAt(ne)===39?(J=F,ne++):(J=p,we===0&&ut(P)),J!==p){for(de=[],be=Hn();be!==p;)de.push(be),be=Hn();de!==p?(Ze=H,J=Q(de),H=J):(ne=H,H=p)}else ne=H,H=p}}}return we--,H===p&&(J=p,we===0&&ut(B)),H}o(Ii,"peg$parseStringLiteral");function un(){var H,J,de;return H=ne,J=ne,we++,R.test(l.charAt(ne))?(de=l.charAt(ne),ne++):(de=p,we===0&&ut(K)),we--,de===p?J=void 0:(ne=J,J=p),J!==p?(l.length>ne?(de=l.charAt(ne),ne++):(de=p,we===0&&ut(V)),de!==p?(Ze=H,J=ue(de),H=J):(ne=H,H=p)):(ne=H,H=p),H===p&&(H=ne,l.charCodeAt(ne)===92?(J=ie,ne++):(J=p,we===0&&ut(he)),J!==p?(de=gi(),de!==p?(Ze=H,J=ue(de),H=J):(ne=H,H=p)):(ne=H,H=p)),H}o(un,"peg$parseDoubleStringChar");function Hn(){var H,J,de;return H=ne,J=ne,we++,me.test(l.charAt(ne))?(de=l.charAt(ne),ne++):(de=p,we===0&&ut(xe)),we--,de===p?J=void 0:(ne=J,J=p),J!==p?(l.length>ne?(de=l.charAt(ne),ne++):(de=p,we===0&&ut(V)),de!==p?(Ze=H,J=ue(de),H=J):(ne=H,H=p)):(ne=H,H=p),H===p&&(H=ne,l.charCodeAt(ne)===92?(J=ie,ne++):(J=p,we===0&&ut(he)),J!==p?(de=gi(),de!==p?(Ze=H,J=ue(de),H=J):(ne=H,H=p)):(ne=H,H=p)),H}o(Hn,"peg$parseSingleStringChar");function vi(){var H,J,de;return H=ne,J=ne,we++,de=Wn(),we--,de===p?J=void 0:(ne=J,J=p),J!==p?(l.length>ne?(de=l.charAt(ne),ne++):(de=p,we===0&&ut(V)),de!==p?(Ze=H,J=ue(de),H=J):(ne=H,H=p)):(ne=H,H=p),H}o(vi,"peg$parseUnquotedStringChar");function gi(){var H,J;return Ve.test(l.charAt(ne))?(H=l.charAt(ne),ne++):(H=p,we===0&&ut(Qe)),H===p&&(H=ne,l.charCodeAt(ne)===110?(J=Ee,ne++):(J=p,we===0&&ut(xt)),J!==p&&(Ze=H,J=qe()),H=J,H===p&&(H=ne,l.charCodeAt(ne)===114?(J=ct,ne++):(J=p,we===0&&ut(ze)),J!==p&&(Ze=H,J=lt()),H=J,H===p&&(H=ne,l.charCodeAt(ne)===116?(J=Zt,ne++):(J=p,we===0&&ut(at)),J!==p&&(Ze=H,J=Rr()),H=J))),H}o(gi,"peg$parseEscapeSequence");function Wn(){var H,J;return we++,Ot.test(l.charAt(ne))?(H=l.charAt(ne),ne++):(H=p,we===0&&ut(St)),we--,H===p&&(J=p,we===0&&ut(Kt)),H}o(Wn,"peg$parsews");function Tn(){var H,J;return we++,br.test(l.charAt(ne))?(H=l.charAt(ne),ne++):(H=p,we===0&&ut(zt)),we--,H===p&&(J=p,we===0&&ut(it)),H}o(Tn,"peg$parsecc");function Zs(){var H,J;for(we++,H=[],J=Wn();J!==p;)H.push(J),J=Wn();return we--,H===p&&(J=p,we===0&&ut($t)),H}if(o(Zs,"peg$parse__"),kr=_(),kr!==p&&ne===l.length)return kr;throw kr!==p&&ne{t&&t.current.addEventListener("DOMNodeInserted",i=>{let l=i.currentTarget;l.scroll({top:l.scrollHeight,behavior:"auto"})})},[]),Xe.default.createElement("div",{className:"command-result",ref:t},e.map(i=>Xe.default.createElement("div",{key:i.id},Xe.default.createElement("div",null,Xe.default.createElement("strong",null,"$ ",i.command)),i.result)))}o(OI,"Results");function NI({nextArgs:e,currentArg:t,help:i,description:l,availableCommands:d}){let v=[];for(let p=0;p0&&Xe.default.createElement("div",null,Xe.default.createElement("strong",null,"Argument suggestion:")," ",v),(i==null?void 0:i.includes("->"))&&Xe.default.createElement("div",null,Xe.default.createElement("strong",null,"Signature help: "),i),l&&Xe.default.createElement("div",null,"# ",l),Xe.default.createElement("div",null,Xe.default.createElement("strong",null,"Available Commands: "),Xe.default.createElement("p",{className:"available-commands"},JSON.stringify(d)))))}o(NI,"CommandHelp");function gS(){let[e,t]=(0,Xe.useState)(""),[i,l]=(0,Xe.useState)(""),[d,v]=(0,Xe.useState)(0),[p,y]=(0,Xe.useState)([]),[_,O]=(0,Xe.useState)([]),[D,Y]=(0,Xe.useState)({}),[B,X]=(0,Xe.useState)([]),[te,Q]=(0,Xe.useState)(0),[F,P]=(0,Xe.useState)(""),[R,K]=(0,Xe.useState)(""),[V,ue]=(0,Xe.useState)([]),[ie,he]=(0,Xe.useState)([]),[me,xe]=(0,Xe.useState)(0);(0,Xe.useEffect)(()=>{Dt("/commands",{method:"GET"}).then(qe=>qe.json()).then(qe=>{Y(qe.commands),y(vS(qe.commands)),O(Object.keys(qe))}).catch(qe=>console.error(qe))},[]);let Ve=o((qe,ct)=>{var at,Rr,Kt;let ze=mS.parse(ct),lt=mS.parse(qe);P((at=D[ze[0]])==null?void 0:at.signature_help),K((Rr=D[ze[0]])==null?void 0:Rr.description),y(vS(D,lt[0])),O(vS(D,ze[0]));let Zt=(Kt=D[ze[0]])==null?void 0:Kt.args;Zt&&(X([ze[0],...Zt]),Q(ze.length-1))},"parseCommand"),Qe=o(qe=>{t(qe.target.value),l(qe.target.value),v(0)},"onChange"),Ee=o(qe=>{if(qe.keyCode===yt.ENTER){let ct={command:e};Dt("/commands",{method:"POST",body:JSON.stringify(ct),headers:{"Content-Type":"application/json"}}).then(ze=>ze.json()).then(ze=>{he(ze.history),xe(me+1),X([]),ue([...V,{id:V.length,command:e,result:JSON.stringify(ze.result)}])}),P(""),K(""),t(""),l(""),v(0),y(_)}qe.keyCode===yt.UP&&me>0&&(t(ie[me-1]),l(ie[me-1]),xe(me-1)),qe.keyCode===yt.DOWN&&(t(ie[me]),l(ie[me]),me{if(!e){O(Object.keys(D));return}Ve(i,e),qe.stopPropagation()},"onKeyUp");return Xe.default.createElement("div",{className:"command"},Xe.default.createElement("div",{className:"command-title"},"Command Result"),Xe.default.createElement(OI,{results:V}),Xe.default.createElement(NI,{nextArgs:B,currentArg:te,help:F,description:R,availableCommands:_}),Xe.default.createElement("div",{className:(0,bO.default)("command-input input-group")},Xe.default.createElement("span",{className:"input-group-addon"},Xe.default.createElement("i",{className:"fa fa-fw fa-terminal"})),Xe.default.createElement("input",{type:"text",placeholder:"Enter command",className:"form-control",value:e,onChange:Qe,onKeyDown:Ee,onKeyUp:xt})))}o(gS,"CommandBar");var Ul=pe(Fe()),Sp=pe(zh());var yS=pe(Fe());function wS({checked:e,onToggle:t,text:i}){return yS.default.createElement("div",{className:"btn btn-toggle "+(e?"btn-primary":"btn-default"),onClick:t},yS.default.createElement("i",{className:"fa fa-fw "+(e?"fa-check-square-o":"fa-square-o")}),"\xA0",i)}o(wS,"ToggleButton");var Bl=pe(Fe()),xS=pe(zh()),TO=pe(eu()),kO=pe(aS());var Kh=class extends Bl.Component{constructor(t){super(t);this.heights={},this.state={vScroll:gp()},this.onViewportUpdate=this.onViewportUpdate.bind(this)}componentDidMount(){window.addEventListener("resize",this.onViewportUpdate),this.onViewportUpdate()}componentWillUnmount(){window.removeEventListener("resize",this.onViewportUpdate)}componentDidUpdate(){this.onViewportUpdate()}onViewportUpdate(){let t=TO.default.findDOMNode(this),i=gp({itemCount:this.props.events.length,rowHeight:this.props.rowHeight,viewportTop:t.scrollTop,viewportHeight:t.offsetHeight,itemHeights:this.props.events.map(l=>this.heights[l.id])});(0,kO.default)(this.state.vScroll,i)||this.setState({vScroll:i})}setHeight(t,i){if(i&&!this.heights[t]){let l=i.offsetHeight;this.heights[t]!==l&&(this.heights[t]=l,this.onViewportUpdate())}}render(){let{vScroll:t}=this.state,{events:i}=this.props;return Bl.default.createElement("pre",{onScroll:this.onViewportUpdate},Bl.default.createElement("div",{style:{height:t.paddingTop}}),i.slice(t.start,t.end).map(l=>Bl.default.createElement("div",{key:l.id,ref:d=>this.setHeight(l.id,d)},Bl.default.createElement(LI,{event:l}),l.message)),Bl.default.createElement("div",{style:{height:t.paddingBottom}}))}};o(Kh,"EventLogList"),es(Kh,"propTypes",{events:xS.default.array.isRequired,rowHeight:xS.default.number}),es(Kh,"defaultProps",{rowHeight:18});function LI({event:e}){let t={web:"html5",debug:"bug",warn:"exclamation-triangle",error:"ban"}[e.level]||"info";return Bl.default.createElement("i",{className:`fa fa-fw fa-${t}`})}o(LI,"LogIcon");var OO=Ry(Kh);var Gh=class extends Ul.Component{constructor(t,i){super(t,i);this.state={height:this.props.defaultHeight},this.onDragStart=this.onDragStart.bind(this),this.onDragMove=this.onDragMove.bind(this),this.onDragStop=this.onDragStop.bind(this)}onDragStart(t){t.preventDefault(),this.dragStart=this.state.height+t.pageY,window.addEventListener("mousemove",this.onDragMove),window.addEventListener("mouseup",this.onDragStop),window.addEventListener("dragend",this.onDragStop)}onDragMove(t){t.preventDefault(),this.setState({height:this.dragStart-t.pageY})}onDragStop(t){t.preventDefault(),window.removeEventListener("mousemove",this.onDragMove)}render(){let{height:t}=this.state,{filters:i,events:l,toggleFilter:d,close:v}=this.props;return Ul.default.createElement("div",{className:"eventlog",style:{height:t}},Ul.default.createElement("div",{onMouseDown:this.onDragStart},"Eventlog",Ul.default.createElement("div",{className:"pull-right"},["debug","info","web","warn","error"].map(p=>Ul.default.createElement(wS,{key:p,text:p,checked:i[p],onToggle:()=>d(p)})),Ul.default.createElement("i",{onClick:v,className:"fa fa-close"}))),Ul.default.createElement(OO,{events:l}))}};o(Gh,"PureEventLog"),es(Gh,"propTypes",{filters:Sp.default.object.isRequired,events:Sp.default.array.isRequired,toggleFilter:Sp.default.func.isRequired,close:Sp.default.func.isRequired,defaultHeight:Sp.default.number}),es(Gh,"defaultProps",{defaultHeight:200});var NO=Fi(e=>({filters:e.eventLog.filters,events:e.eventLog.view}),{close:fp,toggleFilter:kk})(Gh);var sn=pe(Fe());function SS(){let e=st(P=>P.conf.version),{mode:t,intercept:i,showhost:l,upstream_cert:d,rawtcp:v,http2:p,websocket:y,anticache:_,anticomp:O,stickyauth:D,stickycookie:Y,stream_large_bodies:B,listen_host:X,listen_port:te,server:Q,ssl_insecure:F}=st(P=>P.options);return sn.createElement("footer",null,t&&t!=="regular"&&sn.createElement("span",{className:"label label-success"},t," mode"),i&&sn.createElement("span",{className:"label label-success"},"Intercept: ",i),F&&sn.createElement("span",{className:"label label-danger"},"ssl_insecure"),l&&sn.createElement("span",{className:"label label-success"},"showhost"),!d&&sn.createElement("span",{className:"label label-success"},"no-upstream-cert"),!v&&sn.createElement("span",{className:"label label-success"},"no-raw-tcp"),!p&&sn.createElement("span",{className:"label label-success"},"no-http2"),!y&&sn.createElement("span",{className:"label label-success"},"no-websocket"),_&&sn.createElement("span",{className:"label label-success"},"anticache"),O&&sn.createElement("span",{className:"label label-success"},"anticomp"),D&&sn.createElement("span",{className:"label label-success"},"stickyauth: ",D),Y&&sn.createElement("span",{className:"label label-success"},"stickycookie: ",Y),B&&sn.createElement("span",{className:"label label-success"},"stream: ",Ug(B)),sn.createElement("div",{className:"pull-right"},sn.createElement(Ao,null,Q&&sn.createElement("span",{className:"label label-primary",title:"HTTP Proxy Server Address"},X||"*",":",te)),sn.createElement("span",{className:"label label-default",title:"Mitmproxy Version"},"mitmproxy ",e)))}o(SS,"Footer");var kS=pe(Fe());var TS=pe(Fe());var Cp=pe(Fe());function CS({children:e}){return Cp.createElement("div",null,Cp.createElement("div",{className:"modal-backdrop fade in"}),Cp.createElement("div",{className:"modal modal-visible",id:"optionsModal",tabIndex:"-1",role:"dialog","aria-labelledby":"options"},Cp.createElement("div",{className:"modal-dialog modal-lg",role:"document"},Cp.createElement("div",{className:"modal-content"},e))))}o(CS,"ModalLayout");var pr=pe(Fe());var Fo=pe(Fe()),Ro=pe(zh());var LO=pe(Jn()),PI=o(e=>{e.keyCode!==yt.ESC&&e.stopPropagation()},"stopPropagation");_S.propTypes={value:Ro.default.bool.isRequired,onChange:Ro.default.func.isRequired};function _S(l){var d=l,{value:e,onChange:t}=d,i=Us(d,["value","onChange"]);return Fo.default.createElement("div",{className:"checkbox"},Fo.default.createElement("label",null,Fo.default.createElement("input",Ne({type:"checkbox",checked:e,onChange:v=>t(v.target.checked)},i)),"Enable"))}o(_S,"BooleanOption");ES.propTypes={value:Ro.default.string,onChange:Ro.default.func.isRequired};function ES(l){var d=l,{value:e,onChange:t}=d,i=Us(d,["value","onChange"]);return Fo.default.createElement("input",Ne({type:"text",value:e||"",onChange:v=>t(v.target.value)},i))}o(ES,"StringOption");function MI(e){return function(l){var d=l,{onChange:t}=d,i=Us(d,["onChange"]);return Fo.default.createElement(e,Ne({onChange:v=>t(v||null)},i))}}o(MI,"Optional");PO.propTypes={value:Ro.default.number.isRequired,onChange:Ro.default.func.isRequired};function PO(l){var d=l,{value:e,onChange:t}=d,i=Us(d,["value","onChange"]);return Fo.default.createElement("input",Ne({type:"number",value:e,onChange:v=>t(parseInt(v.target.value))},i))}o(PO,"NumberOption");MO.propTypes={value:Ro.default.string.isRequired,onChange:Ro.default.func.isRequired};function MO(d){var v=d,{value:e,onChange:t,choices:i}=v,l=Us(v,["value","onChange","choices"]);return Fo.default.createElement("select",Ne({onChange:p=>t(p.target.value),value:e},l),i.map(p=>Fo.default.createElement("option",{key:p,value:p},p)))}o(MO,"ChoicesOption");AO.propTypes={value:Ro.default.arrayOf(Ro.default.string).isRequired,onChange:Ro.default.func.isRequired};function AO(l){var d=l,{value:e,onChange:t}=d,i=Us(d,["value","onChange"]);let v=Math.max(e.length,1);return Fo.default.createElement("textarea",Ne({rows:v,value:e.join(` `),onChange:p=>t(p.target.value.split(` -`)),...i})}o(dN,"StringSequenceOption");var fR={bool:kS,str:NS,int:cN,"optional str":aR(NS),"sequence of str":dN};function cR({choices:e,type:t,value:i,onChange:a,name:p,error:m}){let d,w={};if(e)d=pN,w.choices=e;else if(d=fR[t],!d)throw`unknown option type ${t}`;return d!==kS&&(w.className="form-control"),vo.default.createElement("div",{className:(0,fN.default)({"has-error":m})},vo.default.createElement(d,{name:p,value:i,onChange:a,onKeyDown:uR,...w}))}o(cR,"PureOption");var hN=et((e,{name:t})=>({...e.options_meta[t],...e.ui.optionsEditor[t]}),(e,{name:t})=>({onChange:i=>e(uf(t,i))}))(cR);var Ry=re(Uo());function pR({help:e}){return Yt.default.createElement("div",{className:"help-block small"},e)}o(pR,"PureOptionHelp");var dR=et((e,{name:t})=>({help:e.options_meta[t].help}))(pR);function hR({error:e}){return e?Yt.default.createElement("div",{className:"small text-danger"},e):null}o(hR,"PureOptionError");var vR=et((e,{name:t})=>({error:e.ui.optionsEditor[t]&&e.ui.optionsEditor[t].error}))(hR);function mR({value:e,defaultVal:t}){if(e===t)return null;if(typeof t=="boolean")t=t?"true":"false";else if(Array.isArray(t)){if(Ry.default.isEmpty(Ry.default.compact(e))&&Ry.default.isEmpty(t))return null;t="[ ]"}else t===""?t='""':t===null&&(t="null");return Yt.default.createElement("div",{className:"small"},"Default: ",Yt.default.createElement("strong",null," ",t," ")," ")}o(mR,"PureOptionDefault");var gR=et((e,{name:t})=>({value:e.options[t],defaultVal:e.options_meta[t].default}))(mR),LS=class extends Yt.Component{constructor(t,i){super(t,i);this.state={title:"Options"}}componentWillUnmount(){}render(){let{hideModal:t,options:i}=this.props,{title:a}=this.state;return Yt.default.createElement("div",null,Yt.default.createElement("div",{className:"modal-header"},Yt.default.createElement("button",{type:"button",className:"close","data-dismiss":"modal",onClick:()=>{t()}},Yt.default.createElement("i",{className:"fa fa-fw fa-times"})),Yt.default.createElement("div",{className:"modal-title"},Yt.default.createElement("h4",null,a))),Yt.default.createElement("div",{className:"modal-body"},Yt.default.createElement("div",{className:"form-horizontal"},i.map(p=>Yt.default.createElement("div",{key:p,className:"form-group"},Yt.default.createElement("div",{className:"col-xs-6"},Yt.default.createElement("label",{htmlFor:p},p),Yt.default.createElement(dR,{name:p})),Yt.default.createElement("div",{className:"col-xs-6"},Yt.default.createElement(hN,{name:p}),Yt.default.createElement(vR,{name:p}),Yt.default.createElement(gR,{name:p})))))),Yt.default.createElement("div",{className:"modal-footer"}))}};o(LS,"PureOptionModal");var vN=et(e=>({options:Object.keys(e.options_meta).sort()}),{hideModal:Xg,save:SO})(LS);function yR(){return PS.default.createElement(OS,null,PS.default.createElement(vN,null))}o(yR,"OptionModal");var mN=[yR];var MS=class extends Vh.Component{constructor(t,i){super(t,i)}render(){let{activeModal:t}=this.props,i=mN.find(a=>a.name===t);return t?Vh.default.createElement(i,null):Vh.default.createElement("div",null)}};o(MS,"PureModal");var gN=et(e=>({activeModal:e.ui.modal.activeModal}))(MS);var AS=class extends Ll.Component{componentDidMount(){window.addEventListener("keydown",this.props.onKeyDown)}componentWillUnmount(){window.removeEventListener("keydown",this.props.onKeyDown)}render(){let{showEventLog:t}=this.props;return Ll.default.createElement("div",{id:"container",tabIndex:"0"},Ll.default.createElement(oN,null),Ll.default.createElement(Kk,null),t&&Ll.default.createElement(aN,{key:"eventlog"}),Ll.default.createElement(TS,null),Ll.default.createElement(gN,null))}};o(AS,"ProxyAppMain");var yN=et(e=>({showEventLog:e.eventLog.visible}),{onKeyDown:lO})(AS);var Ep={SEARCH:"s",HIGHLIGHT:"h",SHOW_EVENTLOG:"e"};function wR(e){let[t,i]=window.location.hash.substr(1).split("?",2),a=t.substr(1).split("/");if(a[0]==="flows"&&a.length==3){let[p,m]=a.slice(1);e.dispatch(sf(p)),e.dispatch(lf(m))}i&&i.split("&").forEach(p=>{let[m,d]=p.split("=",2);switch(m){case Ep.SEARCH:e.dispatch(Ug(d));break;case Ep.HIGHLIGHT:e.dispatch(Bg(d));break;case Ep.SHOW_EVENTLOG:e.getState().eventLog.visible||e.dispatch(fp());break;default:console.error(`unimplemented query arg: ${p}`)}})}o(wR,"updateStoreFromUrl");function xR(e){let t=e.getState(),i={[Ep.SEARCH]:t.flows.filter,[Ep.HIGHLIGHT]:t.flows.highlight,[Ep.SHOW_EVENTLOG]:t.eventLog.visible},a=Object.keys(i).filter(d=>i[d]).map(d=>`${d}=${i[d]}`).join("&"),p;t.flows.selected.length>0?p=`/flows/${t.flows.selected[0]}/${t.ui.flow.tab}`:p="/flows",a&&(p+="?"+a);let m=window.location.pathname;m==="blank"&&(m="/"),window.location.hash.substr(1)!==p&&history.replaceState(void 0,"",`${m}#${p}`)}o(xR,"updateUrlFromStore");function DS(e){wR(e),e.subscribe(()=>xR(e))}o(DS,"initialize");var SR="reset",Gh=class{constructor(t){this.activeFetches={},this.store=t,this.connect()}connect(){this.socket=new WebSocket(location.origin.replace("http","ws")+"/updates"),this.socket.addEventListener("open",()=>this.onOpen()),this.socket.addEventListener("close",t=>this.onClose(t)),this.socket.addEventListener("message",t=>this.onMessage(JSON.parse(t.data))),this.socket.addEventListener("error",t=>this.onError(t))}onOpen(){this.fetchData("flows"),this.fetchData("events"),this.fetchData("options"),this.store.dispatch(sk())}fetchData(t){let i=[];this.activeFetches[t]=i,Ft(`./${t}`).then(a=>a.json()).then(a=>{this.activeFetches[t]===i&&this.receive(t,a)})}onMessage(t){if(t.cmd===SR)return this.fetchData(t.resource);if(t.resource in this.activeFetches)this.activeFetches[t.resource].push(t);else{let i=`${t.resource}_${t.cmd}`.toUpperCase();this.store.dispatch({type:i,...t})}}receive(t,i){let a=`${t}_RECEIVE`.toUpperCase();this.store.dispatch({type:a,cmd:"receive",resource:t,data:i});let p=this.activeFetches[t];delete this.activeFetches[t],p.forEach(m=>this.onMessage(m)),Object.keys(this.activeFetches).length===0&&this.store.dispatch(lk())}onClose(t){this.store.dispatch(uk(`Connection closed at ${new Date().toUTCString()} with error code ${t.code}.`)),console.error("websocket connection closed",t)}onError(){console.error("websocket connection errored",arguments)}};o(Gh,"WebsocketBackend");var Kh=class{constructor(t){this.store=t,this.onOpen()}onOpen(){this.fetchData("flows"),this.fetchData("options")}fetchData(t){Ft(`./${t}`).then(i=>i.json()).then(i=>{this.receive(t,i)})}receive(t,i){let a=`${t}_RECEIVE`.toUpperCase();this.store.dispatch({type:a,cmd:"receive",resource:t,data:i})}};o(Kh,"StaticBackend");DS(cp);window.MITMWEB_STATIC?window.backend=new Kh(cp):window.backend=new Gh(cp);window.addEventListener("error",e=>{cp.dispatch(tk(e))});document.addEventListener("DOMContentLoaded",()=>{(0,wN.render)(IS.default.createElement(B1,{store:cp},IS.default.createElement(yN,null)),document.getElementById("mitmproxy"))});})(); +`))},i))}o(AO,"StringSequenceOption");var AI={bool:_S,str:ES,int:PO,"optional str":MI(ES),"sequence of str":AO};function DI({choices:e,type:t,value:i,onChange:l,name:d,error:v}){let p,y={};if(e)p=MO,y.choices=e;else if(p=AI[t],!p)throw`unknown option type ${t}`;return p!==_S&&(y.className="form-control"),Fo.default.createElement("div",{className:(0,LO.default)({"has-error":v})},Fo.default.createElement(p,Ne({name:d,value:i,onChange:l,onKeyDown:PI},y)))}o(DI,"PureOption");var DO=Fi((e,{name:t})=>Ne(Ne({},e.options_meta[t]),e.ui.optionsEditor[t]),(e,{name:t})=>({onChange:i=>e(ff(t,i))}))(DI);var zy=pe(ep());function FI({help:e}){return pr.default.createElement("div",{className:"help-block small"},e)}o(FI,"PureOptionHelp");var RI=Fi((e,{name:t})=>({help:e.options_meta[t].help}))(FI);function II({error:e}){return e?pr.default.createElement("div",{className:"small text-danger"},e):null}o(II,"PureOptionError");var HI=Fi((e,{name:t})=>({error:e.ui.optionsEditor[t]&&e.ui.optionsEditor[t].error}))(II);function WI({value:e,defaultVal:t}){if(e===t)return null;if(typeof t=="boolean")t=t?"true":"false";else if(Array.isArray(t)){if(zy.default.isEmpty(zy.default.compact(e))&&zy.default.isEmpty(t))return null;t="[ ]"}else t===""?t='""':t===null&&(t="null");return pr.default.createElement("div",{className:"small"},"Default: ",pr.default.createElement("strong",null," ",t," ")," ")}o(WI,"PureOptionDefault");var BI=Fi((e,{name:t})=>({value:e.options[t],defaultVal:e.options_meta[t].default}))(WI),bS=class extends pr.Component{constructor(t,i){super(t,i);this.state={title:"Options"}}componentWillUnmount(){}render(){let{hideModal:t,options:i}=this.props,{title:l}=this.state;return pr.default.createElement("div",null,pr.default.createElement("div",{className:"modal-header"},pr.default.createElement("button",{type:"button",className:"close","data-dismiss":"modal",onClick:()=>{t()}},pr.default.createElement("i",{className:"fa fa-fw fa-times"})),pr.default.createElement("div",{className:"modal-title"},pr.default.createElement("h4",null,l))),pr.default.createElement("div",{className:"modal-body"},pr.default.createElement("div",{className:"form-horizontal"},i.map(d=>pr.default.createElement("div",{key:d,className:"form-group"},pr.default.createElement("div",{className:"col-xs-6"},pr.default.createElement("label",{htmlFor:d},d),pr.default.createElement(RI,{name:d})),pr.default.createElement("div",{className:"col-xs-6"},pr.default.createElement(DO,{name:d}),pr.default.createElement(HI,{name:d}),pr.default.createElement(BI,{name:d})))))),pr.default.createElement("div",{className:"modal-footer"}))}};o(bS,"PureOptionModal");var FO=Fi(e=>({options:Object.keys(e.options_meta).sort()}),{hideModal:Gg,save:FT})(bS);function UI(){return TS.createElement(CS,null,TS.createElement(FO,null))}o(UI,"OptionModal");var RO=[UI];function OS(){let e=st(i=>i.ui.modal.activeModal),t=RO.find(i=>i.name===e);return e?kS.createElement(t,null):kS.createElement("div",null)}o(OS,"PureModal");var NS=class extends Rn.Component{constructor(){super(...arguments);this.state={};this.render=o(()=>{var l;let{showEventLog:t,showCommandBar:i}=this.props;return this.state.error?(console.log("ERR",this.state),Rn.default.createElement("div",{className:"container"},Rn.default.createElement("h1",null,"mitmproxy has crashed."),Rn.default.createElement("pre",null,this.state.error.stack,Rn.default.createElement("br",null),Rn.default.createElement("br",null),"Component Stack:",(l=this.state.errorInfo)==null?void 0:l.componentStack),Rn.default.createElement("p",null,"Please lodge a bug report at ",Rn.default.createElement("a",{href:"https://github.com/mitmproxy/mitmproxy/issues"},"https://github.com/mitmproxy/mitmproxy/issues"),"."))):Rn.default.createElement("div",{id:"container",tabIndex:0},Rn.default.createElement(hS,null),Rn.default.createElement(fS,null),i&&Rn.default.createElement(gS,{key:"commandbar"}),t&&Rn.default.createElement(NO,{key:"eventlog"}),Rn.default.createElement(SS,null),Rn.default.createElement(OS,null))},"render")}componentDidMount(){window.addEventListener("keydown",this.props.onKeyDown)}componentWillUnmount(){window.removeEventListener("keydown",this.props.onKeyDown)}componentDidCatch(t,i){this.setState({error:t,errorInfo:i})}};o(NS,"ProxyAppMain");var IO=Fi(e=>({showEventLog:e.eventLog.visible,showCommandBar:e.commandBar.visible}),{onKeyDown:tO})(NS);var lu={SEARCH:"s",HIGHLIGHT:"h",SHOW_EVENTLOG:"e",SHOW_COMMANDBAR:"c"};function zI(e){let[t,i]=window.location.hash.substr(1).split("?",2),l=t.substr(1).split("/");if(l[0]==="flows"&&l.length==3){let[d,v]=l.slice(1);e.dispatch(yf(d)),e.dispatch(af(v))}i&&i.split("&").forEach(d=>{let[v,p]=d.split("=",2);switch(v){case lu.SEARCH:e.dispatch(my(p));break;case lu.HIGHLIGHT:e.dispatch(vy(p));break;case lu.SHOW_EVENTLOG:e.getState().eventLog.visible||e.dispatch(fp());break;case lu.SHOW_COMMANDBAR:e.getState().commandBar.visible||e.dispatch(Ty());break;default:console.error(`unimplemented query arg: ${d}`)}})}o(zI,"updateStoreFromUrl");function $I(e){let t=e.getState(),i={[lu.SEARCH]:t.flows.filter,[lu.HIGHLIGHT]:t.flows.highlight,[lu.SHOW_EVENTLOG]:t.eventLog.visible,[lu.SHOW_COMMANDBAR]:t.commandBar.visible},l=Object.keys(i).filter(p=>i[p]).map(p=>`${p}=${i[p]}`).join("&"),d;t.flows.selected.length>0?d=`/flows/${t.flows.selected[0]}/${t.ui.flow.tab}`:d="/flows",l&&(d+="?"+l);let v=window.location.pathname;v==="blank"&&(v="/"),window.location.hash.substr(1)!==d&&history.replaceState(void 0,"",`${v}#${d}`)}o($I,"updateUrlFromStore");function LS(e){zI(e),e.subscribe(()=>$I(e))}o(LS,"initialize");var jI="reset",Yh=class{constructor(t){this.activeFetches={},this.store=t,this.connect()}connect(){this.socket=new WebSocket(location.origin.replace("http","ws")+"/updates"),this.socket.addEventListener("open",()=>this.onOpen()),this.socket.addEventListener("close",t=>this.onClose(t)),this.socket.addEventListener("message",t=>this.onMessage(JSON.parse(t.data))),this.socket.addEventListener("error",t=>this.onError(t))}onOpen(){this.fetchData("flows"),this.fetchData("events"),this.fetchData("options"),this.store.dispatch(Pk())}fetchData(t){let i=[];this.activeFetches[t]=i,Dt(`./${t}`).then(l=>l.json()).then(l=>{this.activeFetches[t]===i&&this.receive(t,l)})}onMessage(t){if(t.cmd===jI)return this.fetchData(t.resource);if(t.resource in this.activeFetches)this.activeFetches[t.resource].push(t);else{let i=`${t.resource}_${t.cmd}`.toUpperCase();this.store.dispatch(Ne({type:i},t))}}receive(t,i){let l=`${t}_RECEIVE`.toUpperCase();this.store.dispatch({type:l,cmd:"receive",resource:t,data:i});let d=this.activeFetches[t];delete this.activeFetches[t],d.forEach(v=>this.onMessage(v)),Object.keys(this.activeFetches).length===0&&this.store.dispatch(Mk())}onClose(t){this.store.dispatch(Ak(`Connection closed at ${new Date().toUTCString()} with error code ${t.code}.`)),console.error("websocket connection closed",t)}onError(){console.error("websocket connection errored",arguments)}};o(Yh,"WebsocketBackend");var Xh=class{constructor(t){this.store=t,this.onOpen()}onOpen(){this.fetchData("flows"),this.fetchData("options")}fetchData(t){Dt(`./${t}`).then(i=>i.json()).then(i=>{this.receive(t,i)})}receive(t,i){let l=`${t}_RECEIVE`.toUpperCase();this.store.dispatch({type:l,cmd:"receive",resource:t,data:i})}};o(Xh,"StaticBackend");LS(cp);window.MITMWEB_STATIC?window.backend=new Xh(cp):window.backend=new Yh(cp);window.addEventListener("error",e=>{cp.dispatch(Ok(`${e.message} +${e.error.stack}`))});document.addEventListener("DOMContentLoaded",()=>{(0,HO.render)(PS.createElement(G1,{store:cp},PS.createElement(IO,null)),document.getElementById("mitmproxy"))});})(); /* object-assign (c) Sindre Sorhus diff --git a/mitmproxy/tools/web/static/vendor.css b/mitmproxy/tools/web/static/vendor.css index 7a70571d9..d440a1692 100644 --- a/mitmproxy/tools/web/static/vendor.css +++ b/mitmproxy/tools/web/static/vendor.css @@ -1,5 +1,5 @@ -/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:"Glyphicons Halflings";src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format("embedded-opentype"),url(../fonts/glyphicons-halflings-regular.woff2) format("woff2"),url(../fonts/glyphicons-halflings-regular.woff) format("woff"),url(../fonts/glyphicons-halflings-regular.ttf) format("truetype"),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format("svg")}.glyphicon{position:relative;top:1px;display:inline-block;font-family:"Glyphicons Halflings";font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:transparent}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none;margin-left:-5px}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:"\2014 \00A0"}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:""}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:"\00A0 \2014"}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.row-no-gutters{margin-right:0;margin-left:0}.row-no-gutters [class*=col-]{padding-right:0;padding-left:0}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;appearance:none}input[type=checkbox],input[type=radio]{margin:4px 0 0;line-height:normal}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],.input-group-sm input[type=time],input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],.input-group-lg input[type=time],input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;white-space:nowrap;vertical-align:middle;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;opacity:.65;-webkit-box-shadow:none;box-shadow:none}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;background-image:none;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;background-image:none;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;background-image:none;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;background-image:none;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;background-image:none;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;background-image:none;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-property:height,visibility;transition-property:height,visibility;-webkit-transition-duration:.35s;transition-duration:.35s;-webkit-transition-timing-function:ease;transition-timing-function:ease}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:32px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);-webkit-overflow-scrolling:touch}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-brand{float:left;height:32px;padding:6px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-right:15px;margin-top:-1px;margin-bottom:-1px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:3px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:6px;padding-bottom:6px}}.navbar-form{padding:10px 15px;margin-right:-15px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);margin-top:-1px;margin-bottom:-1px}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:-1px;margin-bottom:-1px}.navbar-btn.btn-sm{margin-top:1px;margin-bottom:1px}.navbar-btn.btn-xs{margin-top:5px;margin-bottom:5px}.navbar-text{margin-top:6px;margin-bottom:6px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important;float:left}.navbar-right{float:right!important;float:right;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#fff;border-color:#e0e0e0}.navbar-default .navbar-brand{color:#303030}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#161616;background-color:transparent}.navbar-default .navbar-text{color:#303030}.navbar-default .navbar-nav>li>a{color:#303030}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#eee}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#eee}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#303030}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#eee}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e0e0e0}.navbar-default .navbar-link{color:#303030}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#303030}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0%;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5}button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none;appearance:none}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5);outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.in{opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-style:normal;font-weight:400;line-height:1.42857143;line-break:auto;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;font-size:12px;opacity:0}.tooltip.in{opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-style:normal;font-weight:400;line-height:1.42857143;line-break:auto;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;font-size:14px;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover>.arrow{border-width:11px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-moz-transition:-moz-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;-moz-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);left:0}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);left:0}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);left:0}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:rgba(0,0,0,0);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:"\2039"}.carousel-control .icon-next:before{content:"\203a"}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}/*! - * Font Awesome 4.2.0 by @davegandy - http://fontawesome.io - @fontawesome +/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:"Glyphicons Halflings";src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format("embedded-opentype"),url(../fonts/glyphicons-halflings-regular.woff2) format("woff2"),url(../fonts/glyphicons-halflings-regular.woff) format("woff"),url(../fonts/glyphicons-halflings-regular.ttf) format("truetype"),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format("svg")}.glyphicon{position:relative;top:1px;display:inline-block;font-family:"Glyphicons Halflings";font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:transparent}body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none;margin-left:-5px}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:"\2014 \00A0"}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:""}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:"\00A0 \2014"}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.row-no-gutters{margin-right:0;margin-left:0}.row-no-gutters [class*=col-]{padding-right:0;padding-left:0}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;appearance:none}input[type=checkbox],input[type=radio]{margin:4px 0 0;line-height:normal}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],.input-group-sm input[type=time],input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],.input-group-lg input[type=time],input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;white-space:nowrap;vertical-align:middle;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;opacity:.65;-webkit-box-shadow:none;box-shadow:none}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;background-image:none;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;background-image:none;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;background-image:none;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;background-image:none;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;background-image:none;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;background-image:none;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-property:height,visibility;transition-property:height,visibility;-webkit-transition-duration:.35s;transition-duration:.35s;-webkit-transition-timing-function:ease;transition-timing-function:ease}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:32px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);-webkit-overflow-scrolling:touch}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-brand{float:left;height:32px;padding:6px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-right:15px;margin-top:-1px;margin-bottom:-1px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:3px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:6px;padding-bottom:6px}}.navbar-form{padding:10px 15px;margin-right:-15px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);margin-top:-1px;margin-bottom:-1px}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:-1px;margin-bottom:-1px}.navbar-btn.btn-sm{margin-top:1px;margin-bottom:1px}.navbar-btn.btn-xs{margin-top:5px;margin-bottom:5px}.navbar-text{margin-top:6px;margin-bottom:6px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important;float:left}.navbar-right{float:right!important;float:right;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#fff;border-color:#e0e0e0}.navbar-default .navbar-brand{color:#303030}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#161616;background-color:transparent}.navbar-default .navbar-text{color:#303030}.navbar-default .navbar-nav>li>a{color:#303030}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#eee}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#eee}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#303030}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#eee}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e0e0e0}.navbar-default .navbar-link{color:#303030}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#303030}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0%;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5}button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none;appearance:none}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5);outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.in{opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.42857143;line-break:auto;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;font-size:12px;opacity:0}.tooltip.in{opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.42857143;line-break:auto;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;font-size:14px;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover>.arrow{border-width:11px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-moz-transition:-moz-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;-moz-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);left:0}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);left:0}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);left:0}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:rgba(0,0,0,0);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:"\2039"}.carousel-control .icon-next:before{content:"\203a"}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}/*! + * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) - */@font-face{font-family:FontAwesome;src:url(fonts/fontawesome-webfont.eot?v=4.2.0);src:url(fonts/fontawesome-webfont.eot?#iefix&v=4.2.0) format('embedded-opentype'),url(fonts/fontawesome-webfont.woff?v=4.2.0) format('woff'),url(fonts/fontawesome-webfont.ttf?v=4.2.0) format('truetype'),url(fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular) format('svg');font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scale(-1,1);-ms-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{-webkit-transform:scale(1,-1);-ms-transform:scale(1,-1);transform:scale(1,-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-rotate-90{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-close:before,.fa-remove:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-cog:before,.fa-gear:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-repeat:before,.fa-rotate-right:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-exclamation-triangle:before,.fa-warning:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-cogs:before,.fa-gears:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-floppy-o:before,.fa-save:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-sort:before,.fa-unsorted:before{content:"\f0dc"}.fa-sort-desc:before,.fa-sort-down:before{content:"\f0dd"}.fa-sort-asc:before,.fa-sort-up:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-gavel:before,.fa-legal:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-bolt:before,.fa-flash:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-clipboard:before,.fa-paste:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-chain-broken:before,.fa-unlink:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:"\f150"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:"\f151"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:"\f152"}.fa-eur:before,.fa-euro:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-inr:before,.fa-rupee:before{content:"\f156"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:"\f157"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:"\f158"}.fa-krw:before,.fa-won:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-try:before,.fa-turkish-lira:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:"\f19c"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:"\f1c5"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:"\f1c6"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-empire:before,.fa-ge:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-paper-plane:before,.fa-send:before{content:"\f1d8"}.fa-paper-plane-o:before,.fa-send-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"} + */@font-face{font-family:FontAwesome;src:url(fonts/fontawesome-webfont.eot?v=4.7.0);src:url(fonts/fontawesome-webfont.eot?#iefix&v=4.7.0) format('embedded-opentype'),url(fonts/fontawesome-webfont.woff2?v=4.7.0) format('woff2'),url(fonts/fontawesome-webfont.woff?v=4.7.0) format('woff'),url(fonts/fontawesome-webfont.ttf?v=4.7.0) format('truetype'),url(fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular) format('svg');font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scale(-1,1);-ms-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{-webkit-transform:scale(1,-1);-ms-transform:scale(1,-1);transform:scale(1,-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-rotate-90{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-close:before,.fa-remove:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-cog:before,.fa-gear:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-repeat:before,.fa-rotate-right:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-exclamation-triangle:before,.fa-warning:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-cogs:before,.fa-gears:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-floppy-o:before,.fa-save:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-sort:before,.fa-unsorted:before{content:"\f0dc"}.fa-sort-desc:before,.fa-sort-down:before{content:"\f0dd"}.fa-sort-asc:before,.fa-sort-up:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-gavel:before,.fa-legal:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-bolt:before,.fa-flash:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-clipboard:before,.fa-paste:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-chain-broken:before,.fa-unlink:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:"\f150"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:"\f151"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:"\f152"}.fa-eur:before,.fa-euro:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-inr:before,.fa-rupee:before{content:"\f156"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:"\f157"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:"\f158"}.fa-krw:before,.fa-won:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-try:before,.fa-turkish-lira:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:"\f19c"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:"\f1c5"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:"\f1c6"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:"\f1d0"}.fa-empire:before,.fa-ge:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-paper-plane:before,.fa-send:before{content:"\f1d8"}.fa-paper-plane-o:before,.fa-send-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-bed:before,.fa-hotel:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-y-combinator:before,.fa-yc:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-television:before,.fa-tv:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:"\f2a3"}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-sign-language:before,.fa-signing:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.fa-handshake-o:before{content:"\f2b5"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-o:before{content:"\f2b7"}.fa-linode:before{content:"\f2b8"}.fa-address-book:before{content:"\f2b9"}.fa-address-book-o:before{content:"\f2ba"}.fa-address-card:before,.fa-vcard:before{content:"\f2bb"}.fa-address-card-o:before,.fa-vcard-o:before{content:"\f2bc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-circle-o:before{content:"\f2be"}.fa-user-o:before{content:"\f2c0"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\f2c3"}.fa-quora:before{content:"\f2c4"}.fa-free-code-camp:before{content:"\f2c5"}.fa-telegram:before{content:"\f2c6"}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:"\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-shower:before{content:"\f2cc"}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:"\f2cd"}.fa-podcast:before{content:"\f2ce"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\f2d4"}.fa-bandcamp:before{content:"\f2d5"}.fa-grav:before{content:"\f2d6"}.fa-etsy:before{content:"\f2d7"}.fa-imdb:before{content:"\f2d8"}.fa-ravelry:before{content:"\f2d9"}.fa-eercast:before{content:"\f2da"}.fa-microchip:before{content:"\f2db"}.fa-snowflake-o:before{content:"\f2dc"}.fa-superpowers:before{content:"\f2dd"}.fa-wpexplorer:before{content:"\f2de"}.fa-meetup:before{content:"\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto} /*# sourceMappingURL=vendor.css.map */ diff --git a/test/mitmproxy/tools/web/test_app.py b/test/mitmproxy/tools/web/test_app.py index 3a2f97f73..d3f76c70e 100644 --- a/test/mitmproxy/tools/web/test_app.py +++ b/test/mitmproxy/tools/web/test_app.py @@ -324,7 +324,7 @@ class TestApp(tornado.testing.AsyncHTTPTestCase): ws_client2.close() def test_generate_tflow_js(self): - tf = tflow.tflow(resp=True, err=True) + tf = tflow.tflow(resp=True, err=True, ws=True) tf.request.trailers = Headers(trailer="qvalue") tf.response.trailers = Headers(trailer="qvalue") @@ -342,9 +342,9 @@ class TestApp(tornado.testing.AsyncHTTPTestCase): ).replace(": null", ": undefined") content = ( - "/** Auto-generated by test_app.py:TestApp._test_generate_tflow_js */\n" + "/** Auto-generated by test_app.py:TestApp.test_generate_tflow_js */\n" "import {HTTPFlow} from '../../flow';\n" - "export default function(): HTTPFlow {\n" + "export default function(): Required {\n" f" return {tflow_json}\n" "}" ) diff --git a/web/package-lock.json b/web/package-lock.json index fb87f54d6..f64c4ef14 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -2651,12 +2651,6 @@ } } }, - "core-js": { - "version": "3.15.2", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.15.2.tgz", - "integrity": "sha512-tKs41J7NJVuaya8DxIOCnl8QuPHx5/ZVbFo1oKgVl1qHFBBrDctzQGtuLjPpRdNTWmKPH6oEvgN/MUID+l485Q==", - "dev": true - }, "core-js-pure": { "version": "3.15.0", "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.15.0.tgz", @@ -2669,6 +2663,15 @@ "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, + "cross-fetch": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz", + "integrity": "sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==", + "dev": true, + "requires": { + "node-fetch": "2.6.1" + } + }, "cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -3521,52 +3524,6 @@ "bser": "^2.0.0" } }, - "fetch-mock": { - "version": "9.11.0", - "resolved": "https://registry.npmjs.org/fetch-mock/-/fetch-mock-9.11.0.tgz", - "integrity": "sha512-PG1XUv+x7iag5p/iNHD4/jdpxL9FtVSqRMUQhPab4hVDt80T1MH5ehzVrL2IdXO9Q2iBggArFvPqjUbHFuI58Q==", - "dev": true, - "requires": { - "@babel/core": "^7.0.0", - "@babel/runtime": "^7.0.0", - "core-js": "^3.0.0", - "debug": "^4.1.1", - "glob-to-regexp": "^0.4.0", - "is-subset": "^0.1.1", - "lodash.isequal": "^4.5.0", - "path-to-regexp": "^2.2.1", - "querystring": "^0.2.0", - "whatwg-url": "^6.5.0" - }, - "dependencies": { - "tr46": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "webidl-conversions": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", - "dev": true - }, - "whatwg-url": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.5.0.tgz", - "integrity": "sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ==", - "dev": true, - "requires": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" - } - } - } - }, "fill-range": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", @@ -3864,12 +3821,6 @@ "unique-stream": "^2.0.2" } }, - "glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "dev": true - }, "glob-watcher": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/glob-watcher/-/glob-watcher-5.0.3.tgz", @@ -5191,12 +5142,6 @@ "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", "dev": true }, - "is-subset": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-subset/-/is-subset-0.1.1.tgz", - "integrity": "sha1-ilkRfZMt4d4A8kX83TnOQ/HpOaY=", - "dev": true - }, "is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", @@ -5535,6 +5480,16 @@ "jest-util": "^27.0.2" } }, + "jest-fetch-mock": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/jest-fetch-mock/-/jest-fetch-mock-3.0.3.tgz", + "integrity": "sha512-Ux1nWprtLrdrH4XwE7O7InRY6psIi3GOsqNESJgMJ+M5cv4A8Lh7SN9d2V2kKRZ8ebAfcd1LNyZguAOb6JiDqw==", + "dev": true, + "requires": { + "cross-fetch": "^3.0.4", + "promise-polyfill": "^8.1.3" + } + }, "jest-get-type": { "version": "27.0.1", "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.0.1.tgz", @@ -6313,12 +6268,6 @@ "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=", "dev": true }, - "lodash.isequal": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=", - "dev": true - }, "lodash.isobject": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/lodash.isobject/-/lodash.isobject-2.4.1.tgz", @@ -6331,7 +6280,8 @@ "lodash.isplainobject": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=" + "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=", + "dev": true }, "lodash.keys": { "version": "2.4.1", @@ -6362,12 +6312,6 @@ "integrity": "sha1-UvBWEP/53tQiYRRB7R/BI6AwAbM=", "dev": true }, - "lodash.sortby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", - "dev": true - }, "lodash.template": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", @@ -6768,11 +6712,6 @@ "minimist": "^1.2.5" } }, - "mock-xmlhttprequest": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mock-xmlhttprequest/-/mock-xmlhttprequest-1.2.0.tgz", - "integrity": "sha512-iCP2jcd8WUrswkminVid7gL3PQ1hhD2UnfEV0dkQjdZmvLPS8mVhIooX1sooGF8/8RkVp4wwVI+wj7zo2S7seQ==" - }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", @@ -7294,12 +7233,6 @@ "integrity": "sha1-v8zcjfWxLcUsi0PsONGNcsBLqW0=", "dev": true }, - "path-to-regexp": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.4.0.tgz", - "integrity": "sha512-G6zHoVqC6GGTQkZwF4lkuEyMbVOjoBKAEybQUypI1WTkqinCOrq2x6U2+phkJ1XsEMTy4LjtwPI7HW+NVrRR2w==", - "dev": true - }, "path-type": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", @@ -7494,6 +7427,12 @@ "asap": "~2.0.3" } }, + "promise-polyfill": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/promise-polyfill/-/promise-polyfill-8.2.0.tgz", + "integrity": "sha512-k/TC0mIcPVF6yHhUvwAp7cvL6I2fFV7TzF1DuGPI8mBh4QQazf36xCKEHKTZKRysEoTQoQdKyP25J8MPJp7j5g==", + "dev": true + }, "prompts": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.1.tgz", @@ -7578,12 +7517,6 @@ "side-channel": "^1.0.4" } }, - "querystring": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz", - "integrity": "sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==", - "dev": true - }, "raw-body": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-1.1.7.tgz", @@ -7621,7 +7554,8 @@ "react-is": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true }, "react-popper": { "version": "2.2.5", @@ -7682,6 +7616,7 @@ "version": "16.14.1", "resolved": "https://registry.npmjs.org/react-shallow-renderer/-/react-shallow-renderer-16.14.1.tgz", "integrity": "sha512-rkIMcQi01/+kxiTE9D3fdS959U1g7gs+/rborw++42m1O9FAQiNI/UNRZExVUoAOprn4umcXf+pFRou8i4zuBg==", + "dev": true, "requires": { "object-assign": "^4.1.1", "react-is": "^16.12.0 || ^17.0.0" @@ -7691,6 +7626,7 @@ "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-17.0.2.tgz", "integrity": "sha512-yaQ9cB89c17PUb0x6UfWRs7kQCorVdHlutU1boVPEsB8IDZH6n9tHxMacc3y0JoXOJUsZb/t/Mb8FUWMKaM7iQ==", + "dev": true, "requires": { "object-assign": "^4.1.1", "react-is": "^17.0.2", @@ -7843,6 +7779,7 @@ "version": "1.5.4", "resolved": "https://registry.npmjs.org/redux-mock-store/-/redux-mock-store-1.5.4.tgz", "integrity": "sha512-xmcA0O/tjCLXhh9Fuiq6pMrJCwFRaouA8436zcikdIpYWWCjU76CRk+i2bHx8EeiSiMGnB85/lZdU3wIJVXHTA==", + "dev": true, "requires": { "lodash.isplainobject": "^4.0.6" } @@ -9212,6 +9149,12 @@ "is-typedarray": "^1.0.0" } }, + "typescript": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.5.tgz", + "integrity": "sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==", + "dev": true + }, "uglify-js": { "version": "2.8.29", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", diff --git a/web/package.json b/web/package.json index 595ec274b..29820afde 100644 --- a/web/package.json +++ b/web/package.json @@ -5,7 +5,7 @@ "verbose": true }, "scripts": { - "test": "jest --coverage", + "test": "tsc --noEmit && jest --coverage", "build": "gulp prod", "start": "gulp" }, @@ -15,15 +15,12 @@ "classnames": "^2.3.1", "codemirror": "^5.62.0", "lodash": "^4.17.21", - "mock-xmlhttprequest": "^1.1.0", "prop-types": "^15.7.2", "react": "^17.0.2", "react-dom": "^17.0.2", "react-popper": "^2.2.5", "react-redux": "^7.2.4", - "react-test-renderer": "^17.0.2", "redux": "^4.1.0", - "redux-mock-store": "^1.5.4", "redux-thunk": "^2.3.0", "shallowequal": "^1.1.0", "stable": "^0.1.8" @@ -34,7 +31,6 @@ "@types/redux-mock-store": "^1.0.2", "esbuild": "^0.12.9", "esbuild-jest": "^0.5.0", - "fetch-mock": "^9.11.0", "gulp": "^4.0.2", "gulp-clean-css": "^4.3.0", "gulp-esbuild": "^0.8.2", @@ -46,7 +42,10 @@ "gulp-replace": "^1.1.3", "gulp-sourcemaps": "^3.0.0", "jest": "^27.0.4", - "node-fetch": "^2.6.1", - "through2": "^4.0.2" + "jest-fetch-mock": "^3.0.3", + "react-test-renderer": "^17.0.2", + "redux-mock-store": "^1.5.4", + "through2": "^4.0.2", + "typescript": "^4.3.5" } } diff --git a/web/src/js/__tests__/components/Command/CommandSpec.js b/web/src/js/__tests__/components/Command/CommandSpec.js index 552a115d9..03a262ecd 100644 --- a/web/src/js/__tests__/components/Command/CommandSpec.js +++ b/web/src/js/__tests__/components/Command/CommandSpec.js @@ -1,11 +1,14 @@ import * as React from "react" import CommandBar from '../../../components/CommandBar' -import { render } from "../../test-utils" -import fetchMock from 'fetch-mock'; -import { act, waitFor } from '@testing-library/react' +import {render} from "../../test-utils" +import fetchMock, {enableFetchMocks} from "jest-fetch-mock"; +import {waitFor} from '@testing-library/react' + +enableFetchMocks() + test('CommandBar Component', async () => { - fetchMock.get('./commands.json', {status: 200, body: {"commands": "foo"}}) + fetchMock.mockResponseOnce(JSON.stringify({"commands": "foo"})); const {asFragment, store} = render( diff --git a/web/src/js/__tests__/components/CommandBarSpec.tsx b/web/src/js/__tests__/components/CommandBarSpec.tsx new file mode 100644 index 000000000..120dac729 --- /dev/null +++ b/web/src/js/__tests__/components/CommandBarSpec.tsx @@ -0,0 +1,26 @@ +import * as React from "react" +import {render, waitFor, screen} from "../test-utils"; +import CommandBar from "../../components/CommandBar"; +import fetchMock, {enableFetchMocks} from "jest-fetch-mock"; + +enableFetchMocks(); + +test("CommandBar", async () => { + fetchMock.mockResponseOnce(JSON.stringify({ + "flow.decode": {"help": "Decode flows.", + "parameters": [{"name": "flows", "type": "flow[]", "kind": "POSITIONAL_OR_KEYWORD"}, { + "name": "part", + "type": "str", + "kind": "POSITIONAL_OR_KEYWORD" + }], + "return_type": null, + "signature_help": "flow.decode flows part" + } + } + )); + + const {asFragment} = render(); + expect(asFragment()).toMatchSnapshot(); + await waitFor(() => screen.getByText('["flow.decode"]')) + expect(asFragment()).toMatchSnapshot(); +}); diff --git a/web/src/js/__tests__/components/ContentView/CodeEditorSpec.tsx b/web/src/js/__tests__/components/ContentView/CodeEditorSpec.tsx deleted file mode 100644 index 83737b823..000000000 --- a/web/src/js/__tests__/components/ContentView/CodeEditorSpec.tsx +++ /dev/null @@ -1,14 +0,0 @@ -jest.mock("../../../contrib/CodeMirror") -import * as React from 'react'; -import CodeEditor from '../../../components/ContentView/CodeEditor' -import {render} from '@testing-library/react' - - -test("CodeEditor", async () => { - - const changeFn = jest.fn(), - {asFragment} = render( - - ); - expect(asFragment()).toMatchSnapshot() -}); diff --git a/web/src/js/__tests__/components/ContentView/ContentLoaderSpec.js b/web/src/js/__tests__/components/ContentView/ContentLoaderSpec.js deleted file mode 100644 index 65d99ba5f..000000000 --- a/web/src/js/__tests__/components/ContentView/ContentLoaderSpec.js +++ /dev/null @@ -1,74 +0,0 @@ -import * as React from "react" -import renderer from 'react-test-renderer' -import withContentLoader from '../../../components/contentviews/useContent' -import { TFlow } from '../../ducks/tutils' -import TestUtils from 'react-dom/test-utils' -import mockXMLHttpRequest from 'mock-xmlhttprequest' - -global.XMLHttpRequest = mockXMLHttpRequest -class tComponent extends React.Component { - constructor(props, context){ - super(props, context) - } - render() { - return (

foo

) - } -} - -let tflow = new TFlow(), - ContentLoader = withContentLoader(tComponent) - -describe('ContentLoader Component', () => { - it('should render correctly', () => { - let contentLoader = renderer.create(), - tree = contentLoader.toJSON() - expect(tree).toMatchSnapshot() - }) - - let contentLoader = TestUtils.renderIntoDocument() - - it('should handle updateContent', () => { - tflow.response.content = 'foo' - contentLoader.updateContent({flow: tflow, message: tflow.response}) - expect(contentLoader.state.request).toEqual(undefined) - expect(contentLoader.state.content).toEqual('foo') - // when content length is 0 or null - tflow.response.contentLength = 0 - tflow.response.content = undefined - contentLoader.updateContent({flow: tflow, message: tflow.response}) - expect(contentLoader.state.request).toEqual(undefined) - expect(contentLoader.state.content).toEqual('') - }) - - it('should handle componentWillReceiveProps', () => { - contentLoader.updateContent = jest.fn() - contentLoader.UNSAFE_componentWillReceiveProps({flow: tflow, message: tflow.request}) - expect(contentLoader.updateContent).toBeCalled() - }) - - it('should handle requestComplete', () => { - expect(contentLoader.requestComplete(tflow.request, {})).toEqual(undefined) - // request == this.state.request - contentLoader.state.request = tflow.request - contentLoader.requestComplete(tflow.request, {}) - expect(contentLoader.state.content).toEqual(tflow.request.responseText) - expect(contentLoader.state.request).toEqual(undefined) - }) - - it('should handle requestFailed', () => { - console.error = jest.fn() - expect(contentLoader.requestFailed(tflow.request, {})).toEqual(undefined) - //request == this.state.request - contentLoader.state.request = tflow.request - contentLoader.requestFailed(tflow.request, 'foo error') - expect(contentLoader.state.content).toEqual('Error getting content.') - expect(contentLoader.state.request).toEqual(undefined) - expect(console.error).toBeCalledWith('foo error') - }) - - it('should handle componentWillUnmount', () => { - contentLoader.state.request = { abort : jest.fn() } - contentLoader.componentWillUnmount() - expect(contentLoader.state.request.abort).toBeCalled() - }) -}) diff --git a/web/src/js/__tests__/components/ContentView/ContentViewOptionsSpec.js b/web/src/js/__tests__/components/ContentView/ContentViewOptionsSpec.js deleted file mode 100644 index 32ce576d2..000000000 --- a/web/src/js/__tests__/components/ContentView/ContentViewOptionsSpec.js +++ /dev/null @@ -1,20 +0,0 @@ -import * as React from "react" -import renderer from 'react-test-renderer' -import ContentViewOptions from '../../../components/ContentView/ContentViewOptions' -import { Provider } from 'react-redux' -import { TFlow, TStore } from '../../ducks/tutils' -import { uploadContent } from '../../../ducks/flows' - -let tflow = new TFlow() - -describe('ContentViewOptions Component', () => { - let store = TStore() - it('should render correctly', () => { - let provider = renderer.create( - - - ), - tree = provider.toJSON() - expect(tree).toMatchSnapshot() - }) -}) diff --git a/web/src/js/__tests__/components/ContentView/ContentViewSpec.js b/web/src/js/__tests__/components/ContentView/ContentViewSpec.js deleted file mode 100644 index f595b0dbb..000000000 --- a/web/src/js/__tests__/components/ContentView/ContentViewSpec.js +++ /dev/null @@ -1,60 +0,0 @@ -import * as React from "react" -import renderer from 'react-test-renderer' -import TestUtils from 'react-dom/test-utils' -import { Provider } from 'react-redux' -import { ViewServer, ViewImage, PureViewServer, Edit } from '../../../components/ContentView/ContentViews' -import { TFlow, TStore } from '../../ducks/tutils' -import mockXMLHttpRequest from 'mock-xmlhttprequest' - -window.XMLHttpRequest = mockXMLHttpRequest -let tflow = new TFlow() - -describe('ViewImage Component', () => { - let viewImage = renderer.create(), - tree = viewImage.toJSON() - - it('should render correctly', () => { - expect(tree).toMatchSnapshot() - }) -}) - -describe('ViewServer Component', () => { - let store = TStore() - - it('should render correctly and connect to state', () => { - let provider = renderer.create( - - - ), - tree = provider.toJSON() - expect(tree).toMatchSnapshot() - - let viewServer = renderer.create( - - - - ) - tree = viewServer.toJSON() - expect(tree).toMatchSnapshot() - }) -}) - -describe('Edit Component', () => { - it('should render correctly', () => { - let edit = renderer.create(), - tree = edit.toJSON() - expect(tree).toMatchSnapshot() - }) -}) diff --git a/web/src/js/__tests__/components/ContentView/DownloadContentButtonSpec.js b/web/src/js/__tests__/components/ContentView/DownloadContentButtonSpec.js deleted file mode 100644 index 652d2ca77..000000000 --- a/web/src/js/__tests__/components/ContentView/DownloadContentButtonSpec.js +++ /dev/null @@ -1,15 +0,0 @@ -import * as React from "react" -import renderer from 'react-test-renderer' -import DownloadContentButton from '../../../components/ContentView/DownloadContentButton' -import { TFlow } from '../../ducks/tutils' - -let tflow = new TFlow() -describe('DownloadContentButton Component', () => { - it('should render correctly', () => { - let downloadContentButton = renderer.create( - - ), - tree = downloadContentButton.toJSON() - expect(tree).toMatchSnapshot() - }) -}) diff --git a/web/src/js/__tests__/components/ContentView/MetaViewsSpec.js b/web/src/js/__tests__/components/ContentView/MetaViewsSpec.js deleted file mode 100644 index d5bdcc8f7..000000000 --- a/web/src/js/__tests__/components/ContentView/MetaViewsSpec.js +++ /dev/null @@ -1,37 +0,0 @@ -import * as React from "react" -import renderer from 'react-test-renderer' -import { ContentEmpty, ContentMissing, ContentTooLarge } from '../../../components/ContentView/MetaViews' -import { TFlow } from '../../ducks/tutils' - -let tflow = new TFlow() - -describe('ContentEmpty Components', () => { - it('should render correctly', () => { - let contentEmpty = renderer.create(), - tree = contentEmpty.toJSON() - expect(tree).toMatchSnapshot() - }) -}) - -describe('ContentMissing Components', () => { - it('should render correctly', () => { - let contentMissing = renderer.create(), - tree = contentMissing.toJSON() - expect(tree).toMatchSnapshot() - }) -}) - -describe('ContentTooLarge Components', () => { - it('should render correctly', () => { - let clickFn = jest.fn(), - uploadContentFn = jest.fn(), - contentTooLarge = renderer.create(), - tree = contentTooLarge.toJSON() - expect(tree).toMatchSnapshot() - }) -}) diff --git a/web/src/js/__tests__/components/ContentView/ShowFullContentButtonSpec.js b/web/src/js/__tests__/components/ContentView/ShowFullContentButtonSpec.js deleted file mode 100644 index e2b5f1980..000000000 --- a/web/src/js/__tests__/components/ContentView/ShowFullContentButtonSpec.js +++ /dev/null @@ -1,22 +0,0 @@ -import * as React from "react" -import renderer from 'react-test-renderer' -import { Provider } from 'react-redux' -import ShowFullContentButton from '../../../components/ContentView/ShowFullContentButton' -import { TStore } from '../../ducks/tutils' - - -describe('ShowFullContentButton Component', () => { - let store = TStore() - - let setShowFullContentFn = jest.fn(), - showFullContentButton = renderer.create( - - - - ), - tree = showFullContentButton.toJSON() - - it('should render correctly', () => { - expect(tree).toMatchSnapshot() - }) -}) diff --git a/web/src/js/__tests__/components/ContentView/UploadContentButtonSpec.js b/web/src/js/__tests__/components/ContentView/UploadContentButtonSpec.js deleted file mode 100644 index 2a5b0ddec..000000000 --- a/web/src/js/__tests__/components/ContentView/UploadContentButtonSpec.js +++ /dev/null @@ -1,12 +0,0 @@ -import * as React from "react" -import renderer from 'react-test-renderer' -import UploadContentButton from '../../../components/ContentView/UploadContentButton' - -describe('UpdateContentButton Component', () => { - it('should render correctly', () => { - let uploadContentFn = jest.fn(), - uploadContentButton = renderer.create(), - tree = uploadContentButton.toJSON() - expect(tree).toMatchSnapshot() - }) -}) diff --git a/web/src/js/__tests__/components/ContentView/ViewSelectorSpec.tsx b/web/src/js/__tests__/components/ContentView/ViewSelectorSpec.tsx deleted file mode 100644 index d252a2097..000000000 --- a/web/src/js/__tests__/components/ContentView/ViewSelectorSpec.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import * as React from "react" -import renderer from 'react-test-renderer' -import ViewSelector from '../../../components/ContentView/ViewSelector' -import { Provider } from 'react-redux' -import { TStore } from '../../ducks/tutils' - - -describe('ViewSelector Component', () => { - let store = TStore(), - viewSelector = renderer.create( - - - - ), - tree = viewSelector.toJSON() - - it('should render correctly', () => { - expect(tree).toMatchSnapshot() - }) -}) diff --git a/web/src/js/__tests__/components/ContentView/__snapshots__/ContentLoaderSpec.js.snap b/web/src/js/__tests__/components/ContentView/__snapshots__/ContentLoaderSpec.js.snap deleted file mode 100644 index 88d4a380a..000000000 --- a/web/src/js/__tests__/components/ContentView/__snapshots__/ContentLoaderSpec.js.snap +++ /dev/null @@ -1,11 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`ContentLoader Component should render correctly 1`] = ` -
- -
-`; diff --git a/web/src/js/__tests__/components/ContentView/__snapshots__/ContentViewOptionsSpec.js.snap b/web/src/js/__tests__/components/ContentView/__snapshots__/ContentViewOptionsSpec.js.snap deleted file mode 100644 index 57368de2b..000000000 --- a/web/src/js/__tests__/components/ContentView/__snapshots__/ContentViewOptionsSpec.js.snap +++ /dev/null @@ -1,41 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`ContentViewOptions Component should render correctly 1`] = ` -
- - - View: - - edit - -   - - - -   - - - - -   -
-`; diff --git a/web/src/js/__tests__/components/ContentView/__snapshots__/ContentViewSpec.js.snap b/web/src/js/__tests__/components/ContentView/__snapshots__/ContentViewSpec.js.snap deleted file mode 100644 index 7415725f6..000000000 --- a/web/src/js/__tests__/components/ContentView/__snapshots__/ContentViewSpec.js.snap +++ /dev/null @@ -1,39 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Edit Component should render correctly 1`] = ` -
- -
-`; - -exports[`ViewImage Component should render correctly 1`] = ` -
- preview -
-`; - -exports[`ViewServer Component should render correctly and connect to state 1`] = ` -
- -
-`; - -exports[`ViewServer Component should render correctly and connect to state 2`] = ` -
-
-
-`; diff --git a/web/src/js/__tests__/components/ContentView/__snapshots__/DownloadContentButtonSpec.js.snap b/web/src/js/__tests__/components/ContentView/__snapshots__/DownloadContentButtonSpec.js.snap deleted file mode 100644 index 76f21ce15..000000000 --- a/web/src/js/__tests__/components/ContentView/__snapshots__/DownloadContentButtonSpec.js.snap +++ /dev/null @@ -1,13 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`DownloadContentButton Component should render correctly 1`] = ` - - - -`; diff --git a/web/src/js/__tests__/components/ContentView/__snapshots__/MetaViewsSpec.js.snap b/web/src/js/__tests__/components/ContentView/__snapshots__/MetaViewsSpec.js.snap deleted file mode 100644 index 833eb7b43..000000000 --- a/web/src/js/__tests__/components/ContentView/__snapshots__/MetaViewsSpec.js.snap +++ /dev/null @@ -1,66 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`ContentEmpty Components should render correctly 1`] = ` -
- No - response - content. -
-`; - -exports[`ContentMissing Components should render correctly 1`] = ` -
- Response - content missing. -
-`; - -exports[`ContentTooLarge Components should render correctly 1`] = ` -
-
- - 7b - content size. -
-
- - - - -   - - - -
-
-`; diff --git a/web/src/js/__tests__/components/ContentView/__snapshots__/ShowFullContentButtonSpec.js.snap b/web/src/js/__tests__/components/ContentView/__snapshots__/ShowFullContentButtonSpec.js.snap deleted file mode 100644 index 504f4a231..000000000 --- a/web/src/js/__tests__/components/ContentView/__snapshots__/ShowFullContentButtonSpec.js.snap +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`ShowFullContentButton Component should render correctly 1`] = `null`; diff --git a/web/src/js/__tests__/components/ContentView/__snapshots__/UploadContentButtonSpec.js.snap b/web/src/js/__tests__/components/ContentView/__snapshots__/UploadContentButtonSpec.js.snap deleted file mode 100644 index f642d7310..000000000 --- a/web/src/js/__tests__/components/ContentView/__snapshots__/UploadContentButtonSpec.js.snap +++ /dev/null @@ -1,19 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`UpdateContentButton Component should render correctly 1`] = ` - - - - -`; diff --git a/web/src/js/__tests__/components/ContentView/__snapshots__/ViewSelectorSpec.tsx.snap b/web/src/js/__tests__/components/ContentView/__snapshots__/ViewSelectorSpec.tsx.snap deleted file mode 100644 index f1253e247..000000000 --- a/web/src/js/__tests__/components/ContentView/__snapshots__/ViewSelectorSpec.tsx.snap +++ /dev/null @@ -1,21 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`ViewSelector Component should render correctly 1`] = ` - - - - View: - - - auto - - - - -`; diff --git a/web/src/js/__tests__/components/ContentViewSpec.js b/web/src/js/__tests__/components/ContentViewSpec.js deleted file mode 100644 index 33c78d9e2..000000000 --- a/web/src/js/__tests__/components/ContentViewSpec.js +++ /dev/null @@ -1,62 +0,0 @@ -import * as React from "react" -import renderer from 'react-test-renderer' -import ContentView from '../../components/ContentView' -import { TStore, TFlow } from '../ducks/tutils' -import { Provider } from 'react-redux' -import mockXMLHttpRequest from 'mock-xmlhttprequest' - -window.XMLHttpRequest = mockXMLHttpRequest - -describe('ContentView Component', () => { - let store = TStore() - - it('should render correctly', () => { - store.getState().ui.flow.contentView = 'Edit' - let tflow = TFlow(), - provider = renderer.create( - - - ), - tree = provider.toJSON() - expect(tree).toMatchSnapshot() - }) - - it('should render correctly with empty content', () => { - let tflow = TFlow() - tflow.response.contentLength = 0 - let provider = renderer.create( - - - ), - tree = provider.toJSON() - expect(tree).toMatchSnapshot() - }) - - it('should render correctly with missing content', () => { - let tflow = TFlow() - tflow.response.contentLength = null - let provider = renderer.create( - - - ), - tree = provider.toJSON() - expect(tree).toMatchSnapshot() - }) - - it('should render correctly with content too large', () => { - let tflow = TFlow() - tflow.response.contentLength = 1024 * 1024 * 100 - let provider = renderer.create( - - - ), - tree = provider.toJSON() - expect(tree).toMatchSnapshot() - }) -}) diff --git a/web/src/js/__tests__/components/EventLogSpec.js b/web/src/js/__tests__/components/EventLogSpec.tsx similarity index 100% rename from web/src/js/__tests__/components/EventLogSpec.js rename to web/src/js/__tests__/components/EventLogSpec.tsx diff --git a/web/src/js/__tests__/components/FlowTable/FlowColumnsSpec.js b/web/src/js/__tests__/components/FlowTable/FlowColumnsSpec.js deleted file mode 100644 index c6f9e1165..000000000 --- a/web/src/js/__tests__/components/FlowTable/FlowColumnsSpec.js +++ /dev/null @@ -1,137 +0,0 @@ -import * as React from "react" -import renderer from 'react-test-renderer' -import { - icon, - method, - path, - quickactions, - size, - status, - time, - timestamp, - tls -} from '../../../components/FlowTable/FlowColumns' -import {TFlow, TStore} from '../../ducks/tutils' -import {Provider} from 'react-redux' - -describe('Flowcolumns Components', () => { - - let tflow = TFlow() - it('should render TLSColumn', () => { - let tlsColumn = renderer.create(), - tree = tlsColumn.toJSON() - expect(tree).toMatchSnapshot() - }) - - it('should render IconColumn', () => { - let tflow = TFlow(), - iconColumn = renderer.create(), - tree = iconColumn.toJSON() - // plain - expect(tree).toMatchSnapshot() - // not modified - tflow.response.status_code = 304 - iconColumn = renderer.create() - tree = iconColumn.toJSON() - expect(tree).toMatchSnapshot() - // redirect - tflow.response.status_code = 302 - iconColumn = renderer.create() - tree = iconColumn.toJSON() - expect(tree).toMatchSnapshot() - // image - let imageFlow = TFlow() - imageFlow.response.headers = [['Content-Type', 'image/jpeg']] - iconColumn = renderer.create() - tree = iconColumn.toJSON() - expect(tree).toMatchSnapshot() - // javascript - let jsFlow = TFlow() - jsFlow.response.headers = [['Content-Type', 'application/x-javascript']] - iconColumn = renderer.create() - tree = iconColumn.toJSON() - expect(tree).toMatchSnapshot() - // css - let cssFlow = TFlow() - cssFlow.response.headers = [['Content-Type', 'text/css']] - iconColumn = renderer.create() - tree = iconColumn.toJSON() - expect(tree).toMatchSnapshot() - // html - let htmlFlow = TFlow() - htmlFlow.response.headers = [['Content-Type', 'text/html']] - iconColumn = renderer.create() - tree = iconColumn.toJSON() - expect(tree).toMatchSnapshot() - // default - let fooFlow = TFlow() - fooFlow.response.headers = [['Content-Type', 'foo']] - iconColumn = renderer.create() - tree = iconColumn.toJSON() - expect(tree).toMatchSnapshot() - // no response - tflow.response = null - iconColumn = renderer.create() - tree = iconColumn.toJSON() - expect(tree).toMatchSnapshot() - }) - - it('should render pathColumn', () => { - let tflow = TFlow(), - pathColumn = renderer.create(), - tree = pathColumn.toJSON() - expect(tree).toMatchSnapshot() - - tflow.error.msg = 'Connection killed.' - tflow.intercepted = true - pathColumn = renderer.create() - tree = pathColumn.toJSON() - expect(tree).toMatchSnapshot() - }) - - it('should render MethodColumn', () => { - let methodColumn = renderer.create(), - tree = methodColumn.toJSON() - expect(tree).toMatchSnapshot() - }) - - it('should render StatusColumn', () => { - let statusColumn = renderer.create(), - tree = statusColumn.toJSON() - expect(tree).toMatchSnapshot() - }) - - it('should render SizeColumn', () => { - let sizeColumn = renderer.create(), - tree = sizeColumn.toJSON() - expect(tree).toMatchSnapshot() - }) - - it('should render TimeColumn', () => { - let tflow = TFlow(), - timeColumn = renderer.create(