web-interface.assets.app.b756052e6bb60e2d0228.js Maven / Gradle / Ivy
/*! For license information please see app.b756052e6bb60e2d0228.js.LICENSE.txt */
!function(e){function t(t){for(var n,o,i=t[0],a=t[1],c=0,s=[];c div {\n position: relative;\n pointer-events: auto;\n overflow: hidden;\n margin: 0 0 6px;\n padding: 15px 15px 15px 50px;\n width: 300px;\n -moz-border-radius: 3px 3px 3px 3px;\n -webkit-border-radius: 3px 3px 3px 3px;\n border-radius: 3px 3px 3px 3px;\n background-position: 15px center;\n background-repeat: no-repeat;\n -moz-box-shadow: 0 0 12px #999999;\n -webkit-box-shadow: 0 0 12px #999999;\n box-shadow: 0 0 12px #999999;\n color: #FFFFFF;\n opacity: 0.8;\n -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);\n filter: alpha(opacity=80);\n}\n#toast-container > div.rtl {\n direction: rtl;\n padding: 15px 50px 15px 15px;\n background-position: right 15px center;\n}\n#toast-container > div:hover {\n -moz-box-shadow: 0 0 12px #000000;\n -webkit-box-shadow: 0 0 12px #000000;\n box-shadow: 0 0 12px #000000;\n opacity: 1;\n -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);\n filter: alpha(opacity=100);\n cursor: pointer;\n}\n#toast-container > .toast-info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=") !important;\n}\n#toast-container > .toast-error {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=") !important;\n}\n#toast-container > .toast-success {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==") !important;\n}\n#toast-container > .toast-warning {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=") !important;\n}\n#toast-container.toast-top-center > div,\n#toast-container.toast-bottom-center > div {\n width: 300px;\n margin-left: auto;\n margin-right: auto;\n}\n#toast-container.toast-top-full-width > div,\n#toast-container.toast-bottom-full-width > div {\n width: 96%;\n margin-left: auto;\n margin-right: auto;\n}\n.toast {\n background-color: #030303;\n}\n.toast-success {\n background-color: #51A351;\n}\n.toast-error {\n background-color: #BD362F;\n}\n.toast-info {\n background-color: #2F96B4;\n}\n.toast-warning {\n background-color: #F89406;\n}\n.toast-progress {\n position: absolute;\n left: 0;\n bottom: 0;\n height: 4px;\n background-color: #000000;\n opacity: 0.4;\n -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);\n filter: alpha(opacity=40);\n}\n/*Responsive Design*/\n@media all and (max-width: 240px) {\n #toast-container > div {\n padding: 8px 8px 8px 50px;\n width: 11em;\n }\n #toast-container > div.rtl {\n padding: 8px 50px 8px 8px;\n }\n #toast-container .toast-close-button {\n right: -0.2em;\n top: -0.2em;\n }\n #toast-container .rtl .toast-close-button {\n left: -0.2em;\n right: 0.2em;\n }\n}\n@media all and (min-width: 241px) and (max-width: 480px) {\n #toast-container > div {\n padding: 8px 8px 8px 50px;\n width: 18em;\n }\n #toast-container > div.rtl {\n padding: 8px 50px 8px 8px;\n }\n #toast-container .toast-close-button {\n right: -0.2em;\n top: -0.2em;\n }\n #toast-container .rtl .toast-close-button {\n left: -0.2em;\n right: 0.2em;\n }\n}\n@media all and (min-width: 481px) and (max-width: 768px) {\n #toast-container > div {\n padding: 15px 15px 15px 50px;\n width: 25em;\n }\n #toast-container > div.rtl {\n padding: 15px 50px 15px 15px;\n }\n}\n',"",{version:3,sources:["webpack://./node_modules/toastr/toastr.less"],names:[],mappings:"AAsCA;EACC,iBAAA;AArCD;AAwCA;EArBC,yBAAA;EACA,qBAAA;AAhBD;AAoCA;;EAKE,cAAA;AArCF;AAgCA;EASG,cAAA;EACA,qBAAA;AAtCH;AA0CA;EACC,kBAAA;EACA,aAAA;EACA,WAAA;EACA,YAAA;EACA,eAAA;EACA,iBAAA;EACA,cAAA;EACA,oCAAA;EACA,4BAAA;EAlDA,YAAA;EACA,+DAAA;EACA,yBAAA;EAkDA,cAAA;AAtCD;AAwCC;;EAEC,cAAA;EACA,qBAAA;EACA,eAAA;EA1DD,YAAA;EACA,+DAAA;EACA,yBAAA;AAqBD;AAwCA;EACC,YAAA;EACA,WAAA;EACA,YAAA;AAtCD;AACA;;yDAEyD;AAyCzD;EACC,UAAA;EACA,eAAA;EACA,uBAAA;EACA,SAAA;EACA,wBAAA;AAvCD;AA4CA;EACC,MAAA;EACA,QAAA;EACA,WAAA;AA1CD;AA6CA;EACC,SAAA;EACA,QAAA;EACA,WAAA;AA3CD;AA8CA;EACC,MAAA;EACA,QAAA;EACA,WAAA;AA5CD;AA+CA;EACC,SAAA;EACA,QAAA;EACA,WAAA;AA7CD;AAgDA;EACC,SAAA;EACA,UAAA;AA9CD;AAiDA;EACC,SAAA;EACA,WAAA;AA/CD;AAkDA;EACC,WAAA;EACA,YAAA;AAhDD;AAmDA;EACC,YAAA;EACA,UAAA;AAjDD;AAoDA;EACC,eAAA;EACA,eAAA;EAEA,oBAAA;EAnDC,YAAY;AACd;AA8CA;EAME,2BAAA;EACA,8BAAA;EACA,sBAAA;AAjDF;AAyCA;EAYE,kBAAA;EAEA,oBAAA;EACA,gBAAA;EACA,eAAA;EACA,4BAAA;EACA,YAAA;EA7JD,mCAAA;EACA,sCAAA;EACA,8BAAA;EA6JC,gCAAA;EACA,4BAAA;EA1JD,iCAAA;EACA,oCAAA;EACA,4BAAA;EA0JC,cAAA;EArJD,YAAA;EACA,+DAAA;EACA,yBAAA;AAuGD;AAqBA;EA4BE,cAAA;EACA,4BAAA;EACA,sCAAA;AA9CF;AAgBA;EArIC,iCAAA;EACA,oCAAA;EACA,4BAAA;EAKA,UAAA;EACA,gEAAA;EACA,0BAAA;EAgKC,eAAA;AA3CF;AAOA;EAwCE,0wBAAA;AA5CF;AAIA;EA4CE,kzBAAA;AA7CF;AACA;EAgDE,sgBAAA;AA9CF;AAFA;EAoDE,0uBAAA;AA/CF;AAmDC;;EAEC,YAAA;EACA,iBAAA;EACA,kBAAA;AAjDF;AAoDC;;EAEC,UAAA;EACA,iBAAA;EACA,kBAAA;AAlDF;AAsDA;EACC,yBAAA;AApDD;AAuDA;EACC,yBAAA;AArDD;AAwDA;EACC,yBAAA;AAtDD;AAyDA;EACC,yBAAA;AAvDD;AA0DA;EACC,yBAAA;AAxDD;AA2DA;EACC,kBAAA;EACA,OAAA;EACA,SAAA;EACA,WAAA;EACA,yBAAA;EA9NA,YAAA;EACA,+DAAA;EACA,yBAAA;AAsKD;AACA,oBAAoB;AA2DpB;EACC;IAGE,yBAAA;IACA,WAAA;EA3DD;EAuDD;IAQE,yBAAA;EA5DD;EA+DA;IACC,aAAA;IACA,WAAA;EA7DD;EAgEA;IACC,YAAA;IACA,YAAA;EA9DD;AACF;AAkEA;EACC;IAEE,yBAAA;IACA,WAAA;EAjED;EA8DD;IAOE,yBAAA;EAlED;EAqEA;IACC,aAAA;IACA,WAAA;EAnED;EAsEA;IACC,YAAA;IACA,YAAA;EApED;AACF;AAwEA;EACC;IAEE,4BAAA;IACA,WAAA;EAvED;EAoED;IAOE,4BAAA;EAxED;AACF",sourcesContent:['// Mix-ins\n.borderRadius(@radius) {\n\t-moz-border-radius: @radius;\n\t-webkit-border-radius: @radius;\n\tborder-radius: @radius;\n}\n\n.boxShadow(@boxShadow) {\n\t-moz-box-shadow: @boxShadow;\n\t-webkit-box-shadow: @boxShadow;\n\tbox-shadow: @boxShadow;\n}\n\n.opacity(@opacity) {\n\t@opacityPercent: (@opacity * 100);\n\topacity: @opacity;\n\t-ms-filter: ~"progid:DXImageTransform.Microsoft.Alpha(Opacity=@{opacityPercent})";\n\tfilter: ~"alpha(opacity=@{opacityPercent})";\n}\n\n.wordWrap(@wordWrap: break-word) {\n\t-ms-word-wrap: @wordWrap;\n\tword-wrap: @wordWrap;\n}\n\n// Variables\n@black: #000000;\n@grey: #999999;\n@light-grey: #CCCCCC;\n@white: #FFFFFF;\n@near-black: #030303;\n@green: #51A351;\n@red: #BD362F;\n@blue: #2F96B4;\n@orange: #F89406;\n@default-container-opacity: .8;\n\n// Styles\n.toast-title {\n\tfont-weight: bold;\n}\n\n.toast-message {\n\t.wordWrap();\n\n\ta,\n\tlabel {\n\t\tcolor: @white;\n\t}\n\n\t\ta:hover {\n\t\t\tcolor: @light-grey;\n\t\t\ttext-decoration: none;\n\t\t}\n}\n\n.toast-close-button {\n\tposition: relative;\n\tright: -0.3em;\n\ttop: -0.3em;\n\tfloat: right;\n\tfont-size: 20px;\n\tfont-weight: bold;\n\tcolor: @white;\n\t-webkit-text-shadow: 0 1px 0 rgba(255,255,255,1);\n\ttext-shadow: 0 1px 0 rgba(255,255,255,1);\n\t.opacity(0.8);\n\tline-height: 1;\n\n\t&:hover,\n\t&:focus {\n\t\tcolor: @black;\n\t\ttext-decoration: none;\n\t\tcursor: pointer;\n\t\t.opacity(0.4);\n\t}\n}\n\n.rtl .toast-close-button {\n\tleft: -0.3em;\n\tfloat: left;\n\tright: 0.3em;\n}\n\n/*Additional properties for button version\n iOS requires the button element instead of an anchor tag.\n If you want the anchor version, it requires `href="#"`.*/\nbutton.toast-close-button {\n\tpadding: 0;\n\tcursor: pointer;\n\tbackground: transparent;\n\tborder: 0;\n\t-webkit-appearance: none;\n}\n\n//#endregion\n\n.toast-top-center {\n\ttop: 0;\n\tright: 0;\n\twidth: 100%;\n}\n\n.toast-bottom-center {\n\tbottom: 0;\n\tright: 0;\n\twidth: 100%;\n}\n\n.toast-top-full-width {\n\ttop: 0;\n\tright: 0;\n\twidth: 100%;\n}\n\n.toast-bottom-full-width {\n\tbottom: 0;\n\tright: 0;\n\twidth: 100%;\n}\n\n.toast-top-left {\n\ttop: 12px;\n\tleft: 12px;\n}\n\n.toast-top-right {\n\ttop: 12px;\n\tright: 12px;\n}\n\n.toast-bottom-right {\n\tright: 12px;\n\tbottom: 12px;\n}\n\n.toast-bottom-left {\n\tbottom: 12px;\n\tleft: 12px;\n}\n\n#toast-container {\n\tposition: fixed;\n\tz-index: 999999;\n\t// The container should not be clickable.\n\tpointer-events: none;\n\t* {\n\t\t-moz-box-sizing: border-box;\n\t\t-webkit-box-sizing: border-box;\n\t\tbox-sizing: border-box;\n\t}\n\n\t> div {\n\t\tposition: relative;\n\t\t// The toast itself should be clickable.\n\t\tpointer-events: auto;\n\t\toverflow: hidden;\n\t\tmargin: 0 0 6px;\n\t\tpadding: 15px 15px 15px 50px;\n\t\twidth: 300px;\n\t\t.borderRadius(3px 3px 3px 3px);\n\t\tbackground-position: 15px center;\n\t\tbackground-repeat: no-repeat;\n\t\t.boxShadow(0 0 12px @grey);\n\t\tcolor: @white;\n\t\t.opacity(@default-container-opacity);\n\t}\n\n\t> div.rtl {\n\t\tdirection: rtl;\n\t\tpadding: 15px 50px 15px 15px;\n\t\tbackground-position: right 15px center;\n\t}\n\n\t> div:hover {\n\t\t.boxShadow(0 0 12px @black);\n\t\t.opacity(1);\n\t\tcursor: pointer;\n\t}\n\n\t> .toast-info {\n\t\tbackground-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=") !important;\n\t}\n\n\t> .toast-error {\n\t\tbackground-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=") !important;\n\t}\n\n\t> .toast-success {\n\t\tbackground-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==") !important;\n\t}\n\n\t> .toast-warning {\n\t\tbackground-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=") !important;\n\t}\n\n\t/*overrides*/\n\t&.toast-top-center > div,\n\t&.toast-bottom-center > div {\n\t\twidth: 300px;\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t&.toast-top-full-width > div,\n\t&.toast-bottom-full-width > div {\n\t\twidth: 96%;\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n}\n\n.toast {\n\tbackground-color: @near-black;\n}\n\n.toast-success {\n\tbackground-color: @green;\n}\n\n.toast-error {\n\tbackground-color: @red;\n}\n\n.toast-info {\n\tbackground-color: @blue;\n}\n\n.toast-warning {\n\tbackground-color: @orange;\n}\n\n.toast-progress {\n\tposition: absolute;\n\tleft: 0;\n\tbottom: 0;\n\theight: 4px;\n\tbackground-color: @black;\n\t.opacity(0.4);\n}\n\n/*Responsive Design*/\n\n@media all and (max-width: 240px) {\n\t#toast-container {\n\n\t\t> div {\n\t\t\tpadding: 8px 8px 8px 50px;\n\t\t\twidth: 11em;\n\t\t}\n\n\t\t> div.rtl {\n\t\t\tpadding: 8px 50px 8px 8px;\n\t\t}\n\n\t\t& .toast-close-button {\n\t\t\tright: -0.2em;\n\t\t\ttop: -0.2em;\n\t\t}\n\n\t\t& .rtl .toast-close-button {\n\t\t\tleft: -0.2em;\n\t\t\tright: 0.2em;\n\t\t}\n\t}\n}\n\n@media all and (min-width: 241px) and (max-width: 480px) {\n\t#toast-container {\n\t\t> div {\n\t\t\tpadding: 8px 8px 8px 50px;\n\t\t\twidth: 18em;\n\t\t}\n\n\t\t> div.rtl {\n\t\t\tpadding: 8px 50px 8px 8px;\n\t\t}\n\n\t\t& .toast-close-button {\n\t\t\tright: -0.2em;\n\t\t\ttop: -0.2em;\n\t\t}\n\n\t\t& .rtl .toast-close-button {\n\t\t\tleft: -0.2em;\n\t\t\tright: 0.2em;\n\t\t}\n\t}\n}\n\n@media all and (min-width: 481px) and (max-width: 768px) {\n\t#toast-container {\n\t\t> div {\n\t\t\tpadding: 15px 15px 15px 50px;\n\t\t\twidth: 25em;\n\t\t}\n\n\t\t> div.rtl {\n\t\t\tpadding: 15px 50px 15px 15px;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.a=a},"+fdB5KSI":function(e,t,n){"use strict";var r=n("ivGQtwpr"),o=n("ii0bleBb"),i=n.n(o),a=n("Qpk+Ye0V"),c=n("Ejb6zZ6L"),l=function(e){var t=e.question,n=Object(a.useLocation)(),o=Object(r.useCallback)((function(e){return e.pathname===n.pathname||t}),[n.pathname,t]),i=Object(r.useCallback)((function(e){return c.a.gl2DevMode()?null:(e.returnValue=t,t)}),[t]);return Object(r.useEffect)((function(){return window.addEventListener("beforeunload",i),function(){window.removeEventListener("beforeunload",i)}}),[i]),r.createElement(a.Prompt,{when:!c.a.gl2DevMode(),message:o})};l.propTypes={question:i.a.string},l.defaultProps={question:"Are you sure?"},t.a=l},"+luSDeBg":function(e,exports,t){e.exports=t.p+"1c2e1cdea02e7dfab25424e6e42d7973.woff2"},"+txzzQG+":function(e,t,n){"use strict";var r=n("ivGQtwpr"),o=n.n(r),i=r.createContext(void 0),a=r.createContext((function(){})),c=n("VPaD/Np4"),l=n.n(c),s=n("CzyxmveH"),u=n("a0O+uV5V"),f=n("kcvrazAT"),d=n("m4G3HF66"),p=n.n(d),h=n("ii0bleBb"),m=n.n(h),g=r.createContext(void 0),b=n("0tVB/fkh"),v=s.default.div.withConfig({displayName:"NavItem__Container",componentId:"sc-101inzn-0"})((function(e){var t=e.theme,n=t.colors,r=t.fonts,o=e.isSelected,i=e.sidebarIsPinned;return Object(s.css)(["position:relative;z-index:4;width:100%;height:40px;text-align:center;cursor:pointer;font-size:",";color:",";background:",";:hover{color:",";background:",";}:active{background:",";}",""],r.size.h3,n.variant.darkest.default,o?n.gray[90]:n.global.contentBackground,o?n.variant.darkest.default:n.variant.darker.default,o?n.gray[80]:n.variant.lightest.default,n.variant.lighter.default,o&&!i&&Object(s.css)(["::before,::after{content:'';position:absolute;right:-5px;height:15px;width:5px;background-color:",";}::before{transform:skewY(-45deg);top:calc(50% - 12px);}::after{transform:skewY(45deg);bottom:calc(50% - 12px);}"],n.global.contentBackground))})),y=s.default.span.withConfig({displayName:"NavItem__IconWrap",componentId:"sc-101inzn-1"})((function(e){var t=e.showTitleOnHover,n=e.isSelected,r=e.theme.colors,o=e.sidebarIsPinned;return"\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n justify-content: center;\n position: relative;\n\n :hover {\n + div {\n display: ".concat(t&&!n?"flex":"none",";\n }\n\n ::after {\n display: ").concat(t?"block":"none",";\n }\n }\n\n ::after {\n display: ").concat(n?"block":"none",";\n box-shadow: ").concat(n&&!o?"inset 2px -2px 2px 0 ".concat(r.global.navigationBoxShadow):"none",";\n background-color: ").concat(n?r.global.contentBackground:r.variant.lightest.info,";\n border: ").concat(n?"none":"1px solid ".concat(r.variant.light.info),";\n content: ' ';\n position: absolute;\n left: 82.5%;\n top: calc(50% - 9px);\n width: 18px;\n height: 18px;\n transform: rotate(45deg);\n }\n")})),A=s.default.div.withConfig({displayName:"NavItem__Title",componentId:"sc-101inzn-2"})((function(e){var t=e.theme,n=t.colors,r=t.fonts;return Object(s.css)(["display:none;position:absolute;padding:0 10px;left:100%;top:calc(50% - 13px);height:25px;background-color:",";border:1px solid ",";border-left:none;box-shadow:3px 3px 3px ",";z-index:4;border-radius:0 3px 3px 0;align-items:center;span{color:",";font-size:",";font-weight:bold;text-transform:uppercase;}"],n.variant.lightest.info,n.variant.light.info,n.global.navigationBoxShadow,n.variant.darker.info,r.size.body)})),w=function(e){var t=e.isSelected,n=e.title,o=e.icon,i=e.onClick,a=e.showTitleOnHover,c=e.sidebarIsPinned;return r.createElement(v,{"aria-label":n,isSelected:t,onClick:i,title:a?"":n,sidebarIsPinned:c},r.createElement(y,{showTitleOnHover:a,isSelected:t,sidebarIsPinned:c},r.createElement(b.z,{name:o})),a&&!t&&r.createElement(A,null,r.createElement("span",null,n)))};w.propTypes={icon:m.a.node.isRequired,isSelected:m.a.bool,showTitleOnHover:m.a.bool,sidebarIsPinned:m.a.bool.isRequired,title:m.a.string.isRequired},w.defaultProps={isSelected:!1,showTitleOnHover:!0};var x=w,E=s.default.div.withConfig({displayName:"SidebarNavigation__Container",componentId:"sc-1pzqtla-0"})((function(e){var t=e.isOpen,n=e.sidebarIsPinned,r=e.theme;return Object(s.css)(["background:",";color:",";box-shadow:",";width:50px;height:100%;position:relative;z-index:1031;::before{content:'';position:absolute;top:0;right:-6px;height:6px;width:6px;border-top-left-radius:50%;background:transparent;box-shadow:-6px -6px 0 3px ",";z-index:4;}"],r.colors.global.navigationBackground,r.utils.contrastingColor(r.colors.global.navigationBackground,"AA"),n&&t?"none":"3px 3px 3px ".concat(r.colors.global.navigationBoxShadow),r.colors.global.navigationBackground)})),C=s.default.div.withConfig({displayName:"SidebarNavigation__SectionList",componentId:"sc-1pzqtla-1"})(["> *{margin-bottom:5px;:last-child{margin-bottom:0;}}"]),O=s.default.div.withConfig({displayName:"SidebarNavigation__HorizontalRuleWrapper",componentId:"sc-1pzqtla-2"})(["padding:0 10px;hr{border-color:currentColor;margin:5px 0 10px 0;}"]),S=function(e){var t=e.sections,n=e.activeSection,o=e.selectSidebarSection,i=e.sidebarIsPinned,a=e.toggleSidebar,c=n?"chevron-left":"chevron-right",l=null==n?void 0:n.key;return r.createElement(E,{sidebarIsPinned:i,isOpen:!!n},r.createElement(x,{icon:c,onClick:a,showTitleOnHover:!1,title:"".concat(n?"Close":"Open"," sidebar"),sidebarIsPinned:i}),r.createElement(O,null,r.createElement("hr",null)),r.createElement(C,null,t.map((function(e){var t=e.key,n=e.icon,a=e.title;return r.createElement(x,{isSelected:l===t,icon:n,onClick:function(){return o(t)},key:t,title:a,sidebarIsPinned:i})}))))},k=n("SOTkmQHs"),j=n("hUK85KXT"),z=function(e,t){return null!=e?e:"Unsaved ".concat(Object(j.a)({type:t,capitalize:!0}))},M=s.default.div.withConfig({displayName:"ContentColumn__Container",componentId:"sc-171qjzu-0"})((function(e){var t=e.theme,n=e.sidebarIsPinned;return Object(s.css)(["position:",";width:270px;height:",";top:",";left:",";background:",";border-right:",";box-shadow:",";z-index:",";",""],n?"relative":"fixed",n?"100%":"calc(100% - 50px)",n?0:"50px",n?0:"50px",t.colors.global.contentBackground,n?"none":"1px solid ".concat(t.colors.variant.light.default),n?"3px 3px 3px ".concat(t.colors.global.navigationBoxShadow):"none",n?1030:6,n&&Object(s.css)(["::before{content:'';position:absolute;top:0;right:-6px;height:6px;width:6px;border-top-left-radius:50%;background:transparent;box-shadow:-6px -6px 0 3px ",";z-index:5;}"],t.colors.global.contentBackground))})),B=s.default.div.withConfig({displayName:"ContentColumn__ContentGrid",componentId:"sc-171qjzu-1"})((function(e){var t=e.theme;return Object(s.css)(["display:grid;display:-ms-grid;grid-template-columns:1fr;grid-template-rows:auto minmax(1px,1fr);-ms-grid-columns:1fr;-ms-grid-rows:auto 1fr;height:100%;overflow-y:auto;padding:5px 15px 0 15px;color:",";"],t.colors.global.textDefault)})),I=s.default.div.withConfig({displayName:"ContentColumn__Header",componentId:"sc-171qjzu-2"})(["grid-column:1;-ms-grid-column:1;grid-row:1;-ms-grid-row:1;"]),D=s.default.div.withConfig({displayName:"ContentColumn__SearchTitle",componentId:"sc-171qjzu-3"})(["height:35px;display:grid;display:-ms-grid;grid-template-columns:1fr auto;-ms-grid-columns:1fr auto;> *:nth-child(1){grid-column:1;-ms-grid-column:1;}> *:nth-child(2){grid-column:2;-ms-grid-column:2;}"]),P=s.default.h1.withConfig({displayName:"ContentColumn__Title",componentId:"sc-171qjzu-4"})(["color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;line-height:1.5;"]),T=s.default.div.withConfig({displayName:"ContentColumn__OverlayToggle",componentId:"sc-171qjzu-5"})((function(e){var t=e.theme,n=e.sidebarIsPinned;return Object(s.css)(["> *{font-size:",";color:",";}"],t.fonts.size.large,n?t.colors.variant.info:t.colors.gray[30])})),R=s.default.hr.withConfig({displayName:"ContentColumn__HorizontalRule",componentId:"sc-171qjzu-6"})(["margin:5px 0 10px 0;"]),N=s.default.h2.withConfig({displayName:"ContentColumn__SectionTitle",componentId:"sc-171qjzu-7"})(["margin-bottom:10px;"]),H=s.default.div.withConfig({displayName:"ContentColumn__CenterVertical",componentId:"sc-171qjzu-8"})(["display:inline-grid;display:-ms-inline-grid;align-content:center;"]),L=s.default.div.withConfig({displayName:"ContentColumn__SectionContent",componentId:"sc-171qjzu-9"})(["grid-column:1;-ms-grid-column:1;grid-row:2;-ms-grid-row:2;> *:last-child{padding-bottom:15px;}"]),F=function(e){var t=e.children,n=e.sectionTitle,o=e.closeSidebar,i=e.searchPageLayout,a=e.viewMetadata,c=null==i?void 0:i.config.sidebar.isPinned;return r.createElement(k.a.Consumer,null,(function(e){var l=z(null==a?void 0:a.title,e);return r.createElement(M,{sidebarIsPinned:c},r.createElement(B,null,r.createElement(I,null,r.createElement(D,{title:l},r.createElement(H,null,r.createElement(P,{onClick:o},l)),r.createElement(H,null,r.createElement(T,{sidebarIsPinned:c},r.createElement(b.A,{onClick:function(){return function(e){e&&(0,e.actions.toggleSidebarPinning)()}(i)},title:"Display sidebar ".concat(c?"as overlay":"inline"),name:"thumbtack"})))),r.createElement(R,null),r.createElement(N,null,n)),r.createElement(L,null,t)))}))},V=n("9pdI12pI"),_=n.n(V),q=n("Ejb6zZ6L"),G=n("Qrf/Fkdk"),W=n("GhoMYXSj"),U=function(e){var t,n=e.results,i=n.timestamp,a=n.duration,c=Object(r.useContext)(G.a),l=null!==(t=null==c?void 0:c.timezone)&&void 0!==t?t:q.a.rootTimeZone();return i&&a?o.a.createElement("span",null,"Query executed in ",_()(a).format("0,0"),"ms at ",o.a.createElement(b.hb,{dateTime:i,format:W.a.Formats.DATETIME,tz:l}),"."):o.a.createElement("i",null,"No query executed yet.")};U.propTypes={results:m.a.object.isRequired};var Y=U,J=s.default.p.withConfig({displayName:"SectionInfo__Title",componentId:"sc-1nvu6z2-0"})((function(e){var t=e.theme;return Object(s.css)(["color:",";margin-bottom:15px;"],t.colors.global.textDefault)})),Z=s.default.h3.withConfig({displayName:"SectionSubheadline",componentId:"ldnlgb-0"})(["margin-bottom:10px;"]),K=function(e){var t=e.results,n=e.viewMetadata,o=!n.id,i=Object(r.useContext)(k.a),a=i?r.createElement(j.a,{type:i}):"",c=r.createElement(r.Fragment,null,r.createElement(Z,null,"Execution"),r.createElement("p",null,r.createElement(Y,{results:t})));return o?r.createElement(r.Fragment,null,r.createElement(J,null,"Save the search or export it to a dashboard to add a custom summary and description."),c):r.createElement(r.Fragment,null,(!n.summary||!n.description)&&r.createElement(J,null,"To add a description and summary for this ",a," click on the ",r.createElement(b.z,{name:"ellipsis-h"}),' icon in the search bar to open its action menu. The action menu includes the option "Edit metadata".'),c,r.createElement(Z,null,"Search"),r.createElement("p",null,n.summary||r.createElement("i",null,"This ",a," has no summary.")),r.createElement("p",null,n.description||r.createElement("i",null,"This ",a," has no description.")))};K.propTypes={results:m.a.object.isRequired,viewMetadata:m.a.shape({activeQuery:m.a.string,description:m.a.string,id:m.a.string,summary:m.a.string,title:m.a.string}).isRequired};var Q=K,X=n("x7QKyhPE"),ee=n.n(X),te=n("AztyBNMT"),ne=n("nHcjWeCO"),re=n("qoq4u5Uq"),oe=n("kcs233Mk");function ie(e){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:5;return Object(Se.a)(e).colors(t)}(e.gradient);return Object(s.css)(["border:none;background:linear-gradient(0deg,",");"],t.map((function(e,n){return"".concat(e," ").concat(n*(100/t.length),"%")})).join(", "))})),Me=r.forwardRef((function(e,t){var n=e.color,o=e.onClick,i=void 0===o?function(){}:o;if("static"===n.type)return r.createElement(je,{ref:t,onClick:i,color:n.color});if("gradient"===n.type)return r.createElement(ze,{ref:t,onClick:i,gradient:n.gradient});throw new Error("Invalid highlighting color type: ".concat(n))}));Me.propTypes={color:m.a.any.isRequired,onClick:m.a.func},Me.defaultProps={onClick:function(){}};var Be=Me,Ie=n("Yf3UL7lG"),De=n("bZTPhJoC");function Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?t:void 0},Ve=function(){return r.createElement(we.Field,{name:"color",validate:Fe},(function(){return r.createElement(r.Fragment,null,r.createElement(we.Field,{name:"color.gradient"},(function(e){var t=e.field,n=t.name,o=t.value,i=t.onChange,a=e.meta;return r.createElement(Ee.d,{id:"".concat(n,"-name"),error:null==a?void 0:a.error,label:"Gradient Name"},r.createElement(b.X,{options:He,inputProps:{"aria-label":"Select gradient colors"},value:o,onChange:function(e){return i({target:{name:n,value:e}})}}))})),r.createElement(we.Field,{name:"color.lower"},(function(e){var t=e.field,n=t.name,o=t.value,i=t.onChange,a=e.meta;return r.createElement(Ee.d,{id:n,"aria-label":"Specify lowest value",label:"Lowest Value",type:"number",value:o,error:null==a?void 0:a.error,onChange:i,help:"The lowest value expected in the field/series.",required:!0})})),r.createElement(we.Field,{name:"color.upper"},(function(e){var t=e.field,n=t.name,o=t.value,i=t.onChange,a=e.meta;return r.createElement(Ee.d,{id:n,"aria-label":"Specify highest value",label:"Highest Value",type:"number",value:o,error:null==a?void 0:a.error,onChange:i,help:"The highest value expected in the field/series.",required:!0})})))}))},_e=function(e){switch(e.type){case"static":return r.createElement(Re,null);case"gradient":return r.createElement(Ve,null);default:return null}},qe=s.default.div.withConfig({displayName:"HighlightingColorForm__Container",componentId:"sc-1r4pqbv-1"})(["margin-left:10px;"]),Ge=function(e){if("static"===e)return{type:"static",color:ge.a[Math.floor(Math.random()*ge.a.length)]};if("gradient"===e)return{type:"gradient",gradient:"Viridis",upper:0,lower:0};throw new Error("Invalid color type: ".concat(e))},We=function(e){var t,n,o=e.field,i=null!==(t=null==o||null===(n=o.type)||void 0===n?void 0:n.isNumeric())&&void 0!==t&&t,a=Object(we.useFormikContext)().setFieldValue,c=Object(r.useCallback)((function(e){var t=e.target.value;a("color",Ge(t))}),[a]);return r.createElement(we.Field,{name:"color.type",validate:function(e){return function(e,t){return e&&""!==e?t||"gradient"!==e?void 0:"A gradient can only be defined for numeric fields.":"Coloring is required"}(e,i)}},(function(e){var t=e.field,n=t.name,o=t.value,a=e.meta;return r.createElement(r.Fragment,null,r.createElement(Ee.d,{id:"".concat(n,"-coloring"),label:"Coloring",error:null==a?void 0:a.error},r.createElement(qe,null,r.createElement(Ee.d,{checked:"static"===o,formGroupClassName:"",id:n,label:"Static Color",onChange:c,type:"radio",value:"static"}),r.createElement(Ee.d,{checked:"gradient"===o,formGroupClassName:"",id:n,disabled:!i,label:"Gradient",onChange:c,type:"radio",value:"gradient"}))),o&&r.createElement(_e,{type:o}))}))},Ue=n("i/JBU46s"),Ye=n("UiiGBwxs");function Je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ze(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ze(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n *:nth-child(1){grid-column:1;-ms-grid-column:1;}> *:nth-child(2){grid-column:2;-ms-grid-column:2;}> *:nth-child(3){grid-column:3;-ms-grid-column:3;}"]),it=s.default.div.withConfig({displayName:"HighlightingRule__ButtonContainer",componentId:"p8gu8w-1"})(["display:flex;"]),at=s.default.div.withConfig({displayName:"HighlightingRule__RuleContainer",componentId:"p8gu8w-2"})(["padding-top:4px;"]),ct=function(e){var t=e.color,n=e.onChange,o=Object(r.useCallback)((function(e,t,r){return n(Ie.b.create(e),r)}),[n]);if(t.isStatic())return r.createElement(b.c,{id:"formatting-rule-color",placement:"right",color:t.color,colors:ge.a.map((function(e){return[e]})),triggerNode:r.createElement(Be,{color:t}),onChange:o});if(t.isGradient())return r.createElement(Be,{color:t});throw new Error("Invalid highlighting color: ".concat(t))},lt=function(e){var t=e.rule,n=t.field,o=t.value,i=t.color,a=t.condition,c=nt(Object(r.useState)(!1),2),l=c[0],s=c[1],u=Object(r.useCallback)((function(e,n){return function(e,t,n){return ye.a.update(e,{color:t}).then(n)}(t,e,n)}),[t]);return r.createElement(r.Fragment,null,r.createElement(ot,null,r.createElement(ct,{color:i,onChange:u}),r.createElement(at,null,r.createElement("strong",null,n)," ",Ae.a[a]," ",r.createElement("i",null,'"',String(o),'"'),"."),r.createElement(it,null,r.createElement(b.A,{title:"Edit this Highlighting Rule",name:"edit",onClick:function(){return s(!0)}}),r.createElement(b.A,{title:"Remove this Highlighting Rule",name:"trash-alt",onClick:function(){return function(e){window.confirm("Do you really want to remove this highlighting?")&&ye.a.remove(e)}(t)}}))),l&&r.createElement(tt,{onClose:function(){return s(!1)},rule:t}))};lt.propTypes={rule:m.a.instanceOf(Ae.c).isRequired};var st=lt;function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ft(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0||i.size>0),config:l.searchesClusterConfig}}))},kt=n("3MLSbCDi"),jt=n("mc0qlNhN"),zt=n("jHp4XH0b"),Mt=n("ZCyXzcVy"),Bt=function(e){var t=e.children;return r.createElement(k.a.Consumer,null,(function(e){return e===Mt.a.Type.Dashboard?t:null}))},It=n("1VHdW8bt"),Dt=n("P4PkhE7l"),Pt=n("ebhnZ4+9"),Tt=n("WcihDImJ"),Rt=n("w5PbEc64"),Nt=n("pX2Hr5lv"),Ht=n("qo+szktW"),Lt=n("phfxikYD"),Ft=n("fedQ+uRG"),Vt=n("/dGTpQRu"),_t=n("SwH9crDZ"),qt=n("/RUHPmZd");function Gt(){return(Gt=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Zt=s.default.div.withConfig({displayName:"WidgetContainer__Container",componentId:"sc-3cycy3-0"})(["z-index:auto;"," margin-bottom:0;"],qt.a),Kt=r.forwardRef((function(e,t){var n=e.children,o=e.className,i=e.isFocused,a=e.style,c=Jt(e,["children","className","isFocused","style"]),l=Ut(Ut({},a),{},{transition:"none"});return i&&(l=Ut(Ut({},l),{},{height:"100%",width:"100%",zIndex:2,top:0,left:0})),r.createElement(Zt,Gt({className:o,style:l,ref:t},c),n)}));Kt.defaultProps={className:void 0,style:{}},Kt.propTypes={children:m.a.node.isRequired,className:m.a.string,isFocused:m.a.bool.isRequired,style:m.a.object};var Qt=Kt,Xt=n("bedpdhz4"),$t=r.createContext(void 0),en=n("mRXwKqDg"),tn=r.createContext({settings:{},setSettings:function(){}}),nn=Object(en.a)("contexts.ExportSettingsContext",(function(){return tn}));function rn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return on(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return on(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function on(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:"All Time";return e[t]?W.a.now().subtract(1e3*e[t]).fromNow():n},mn=function(e,t){switch((e||{}).type){case"relative":return function(e){return Object(pn.d)(e)?0===e.range?"All Time":"".concat(hn(e,"range")," - Now"):"".concat(hn(e,"from")," - ").concat(hn(e,"to","Now"))}(e);case"absolute":return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=e.from,r=e.to;return"".concat(t(n)," - ").concat(t(r))}(e,t);case"keyword":return function(e){return e.keyword}(e);default:return""}},gn=n("9cO40p0M"),bn=n("q2+Secrb"),vn=n("L432Ufip"),yn=s.default.div.withConfig({displayName:"TimerangeInfo__Wrapper",componentId:"sc-1m6lezs-0"})((function(e){var t=e.theme;return Object(s.css)(["font-size:",";color:",";width:max-content;"],t.fonts.size.tiny,t.colors.gray[30])})),An=function(e){var t,n=e.className,o=e.widget,i=e.activeQuery,a=e.widgetId,c=Object(r.useContext)(bn.a).localizeTime,l=Object(f.b)(gn.b),s=l.result,u=l.widgetMapping,d=Object(f.b)(vn.b),p=null!=d&&d.timerange?"Global Override: ".concat(mn(d.timerange)):void 0,h=mn(o.timerange||ge.g,c),m=a?null==u||null===(t=u.get(a))||void 0===t?void 0:t.first():void 0,g=i&&m?function(e,t,n){var r;return null==e||null===(r=e.results[t].searchTypes[n])||void 0===r?void 0:r.effective_timerange}(s,i,m):void 0,v=g?mn(g,c):"Effective widget time range is currently not available.";return r.createElement(yn,{className:n},r.createElement(b.eb,{titleOverride:v},p||h))};An.defaultProps={className:void 0,activeQuery:void 0,widgetId:void 0};var wn=An,xn=function(e){return e.activeQuery},En=function(e){var t=Object(f.b)(oe.b,xn),n=Object(r.useCallback)((function(t){return t.get(e)}),[e]),o=Object(f.b)(Ht.b,n),i=Object(r.useCallback)((function(e){var n=e.result,r=e.widgetMapping,i=null==n?void 0:n.forId(t);return i?function(e,t,n){var r,o=n.searchTypes,i=Object(Tt.c)(e.type).searchResultTransformer||function(e){return e},a=t.get(e.id,c.Set()),l=a.map((function(e){return o[e]})).filter((function(e){return void 0!==e})).toArray(),s=n.errors.filter((function(e){return a.includes(e.searchTypeId)})),u=i(l,e);if(s&&s.length>0&&(r=s),!l||0===l.length){var f=n.errors.filter((function(e){return"query"===e.type}));f.length>0&&(r=r?[].concat(r,f):f)}return{widgetData:u,error:r}}(o,r,i):{widgetData:void 0,error:[]}}),[t,o]);return Object(f.b)(gn.b,i)};function Cn(e){return(Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function On(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(t>d.asSeconds()||0===t))return null;var o=f[e].replace(/Search\sin(\sthe\slast)?\s/,""),i=r.createElement(re.y,{eventKey:t,key:"relative-option-".concat(e),disabled:n},o);return"PT0S"===e?(h=i,null):i})),h&&t.push(h)}else t=r.createElement(re.y,{eventKey:"300",disabled:!0},"Loading...");return r.createElement(re.m,{title:p,id:"relative-timerange-selector","aria-label":"Open time range preset select",bsSize:l,className:a,onToggle:i,onSelect:function(e){null!=e&&o(parseInt(e,10))}},s&&r.createElement(re.y,{header:!0},s),t,r.createElement(b.B,{permissions:"clusterconfigentry:edit"},r.createElement(re.y,{divider:!0}),r.createElement(lr,{href:"/system/configurations",target:"_blank"},"Configure Ranges ",r.createElement(cr,{name:"external-link-alt"}))))};sr.propTypes={bsSize:m.a.string,className:m.a.string,disabled:m.a.bool,displayTitle:m.a.bool,header:m.a.string,onChange:m.a.func,onToggle:m.a.func},sr.defaultProps={bsSize:"small",className:void 0,disabled:!1,onChange:void 0,onToggle:void 0,header:void 0,displayTitle:!0};var ur=sr,fr=Object(s.default)(ur).withConfig({displayName:"TimeRangeDropdownButton__StyledRangePresetDropdown",componentId:"sc-1q4k30o-0"})(["padding:6px;"]),dr=s.default.div.withConfig({displayName:"TimeRangeDropdownButton__RelativePosition",componentId:"sc-1q4k30o-1"})(["position:relative;"]),pr=Object(s.default)(re.f).withConfig({displayName:"TimeRangeDropdownButton__StyledButtonGroup",componentId:"sc-1q4k30o-2"})(["display:flex;"]),hr=function(e){var t=e.children,n=e.disabled,o=e.hasErrorOnMount,i=e.onPresetSelectOpen,a=e.setCurrentTimeRange,c=e.show,l=e.showPresetDropdown,s=void 0===l||l,u=e.toggleShow,f=Object(we.useFormikContext)().submitForm,d=Object(r.useRef)(),p=s?r.createElement(fr,{disabled:n,displayTitle:!1,onChange:function(e){a(ir({type:"relative",from:e})),f()},onToggle:function(e){e&&i()},header:"From (Until Now)",bsSize:null}):null;return r.createElement(dr,{ref:d},r.createElement(pr,null,r.createElement(Qn,{hasError:o,disabled:n,onClick:function(e){e.currentTarget.blur(),u()}}),p),r.createElement(rr.Overlay,{show:c,trigger:"click",placement:"bottom",onHide:u,container:d.current},t))};hr.defaultProps={hasErrorOnMount:!1,disabled:!1,show:!1,showPresetDropdown:!0};var mr=hr,gr=function(e){return e.toString(W.a.Formats.TIMESTAMP)},br=function(e){var t=e.type;switch(e.type){case"absolute":return{type:e.type,from:W.a.parseFromString(e.from).toISOString(),to:W.a.parseFromString(e.to).toISOString()};case"relative":if(Object(pn.d)(e))return{type:e.type,range:e.range};if(Object(pn.c)(e))return"to"in e?{type:e.type,from:e.from,to:e.to}:{type:e.type,from:e.from};throw new Error("Invalid relative time range");case"keyword":return e;default:throw new Error("Invalid time range type: ".concat(t))}},vr=function(e){var t=e.type;switch(e.type){case"absolute":return{type:e.type,from:gr(W.a.parseFromString(e.from)),to:gr(W.a.parseFromString(e.to))};case"relative":if(Object(pn.d)(e))return e.range===ge.k?{type:e.type,range:e.range}:{type:e.type,from:e.range};if(Object(pn.c)(e))return"to"in e?{type:e.type,from:e.from,to:e.to}:{type:e.type,from:e.from};throw new Error("Invalid relative time range");case"keyword":return e;default:throw new Error("Invalid time range type: ".concat(t))}},yr=function(e){return Object(pn.d)(e)?e.range:Object(pn.c)(e)?e.from:ge.e},Ar=function(e){return Object(pn.c)(e)&&e.to?e.to:0},wr={absolute:function(e){return{type:"absolute",from:gr(new W.a(Un()().subtract(yr(e),"seconds"))),to:gr(new W.a(Un()().subtract(Ar(e),"seconds")))}},relative:function(){return{type:"relative",from:300}},keyword:function(){return{type:"keyword",keyword:"Last five minutes"}},disabled:function(){}},xr=s.default.div.withConfig({displayName:"AbsoluteDateInput__Wrapper",componentId:"qljjci-0"})(["margin:9px 6px;width:100%;.form-group{margin:0;}"]),Er=function(e){var t=e.name,n=e.disabled,o=e.onChange,i=e.value,a=e.hasError;return r.createElement(xr,null,r.createElement(Ee.d,{type:"text",id:"date-input-".concat(t),name:t,autoComplete:"off",disabled:n,onChange:function(e){return o(e.target.value)},placeholder:W.a.Formats.DATETIME,value:i,buttonAfter:r.createElement(re.e,{disabled:n,onClick:function(){return o(W.a.now().format(W.a.Formats.TIMESTAMP))},title:"Insert current date"},r.createElement(b.z,{name:"magic"})),className:"mousetrap",bsStyle:a?"error":null}))};Er.propTypes={name:m.a.string.isRequired,disabled:m.a.bool,onChange:m.a.func,value:m.a.string,hasError:m.a.bool},Er.defaultProps={disabled:!1,onChange:function(){},value:"",hasError:!1};var Cr=Er,Or=s.default.span.withConfig({displayName:"AbsoluteTimestamp__ErrorMessage",componentId:"sc-1kyqyo4-0"})((function(e){var t=e.theme;return Object(s.css)(["color:",";font-size:",";font-style:italic;padding:3px 3px 9px;height:1.5em;"],t.colors.variant.dark.danger,t.fonts.size.small)})),Sr=function(e){var t=e.disabled,n=e.nextTimeRange,o=e.range;return r.createElement(we.Field,{name:"nextTimeRange[".concat(o,"]")},(function(e){var i=e.field,a=i.value,c=i.onChange,l=i.name,s=e.meta.error,u=s?n[o]:a||n[o];return r.createElement(r.Fragment,null,r.createElement(Cr,{name:l,disabled:t,value:u,onChange:function(e){return c({target:{name:l,value:e}})}}),r.createElement(Or,null,s))}))};Sr.propTypes={disabled:m.a.bool,nextTimeRange:m.a.shape({from:m.a.string,to:m.a.string}).isRequired,range:m.a.oneOf(["to","from"]).isRequired},Sr.defaultProps={disabled:!1};var kr=Sr,jr=n("awUYZK9l");function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:2;return String(e).padStart(t,"0")}(t[e])}));return{initialDateTime:t,handleChangeSetTime:function(e){var n=e.target.getAttribute("id").split("-").pop(),r=function(e,t){var n=e.match(/[^0-9]/g),r=Number(n?0:e);if("hours"===t){if(r>23)return 23}else if(r>59)return 59;return r}(e.target.value,n);return Un()(Tr(Tr({},t),{},Rr({},n,r))).format(W.a.Formats.DATETIME)},handleClickTimeNow:function(){var e=W.a.now().toObject();return Un()(Tr(Tr({},t),{},{hours:e.hours,minutes:e.minutes,seconds:e.seconds})).format(W.a.Formats.DATETIME)},handleTimeToggle:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Un()(Tr(Tr({},t),{},{hours:e?23:0,minutes:e?59:0,seconds:e?59:0})).format(W.a.Formats.DATETIME)}}},Jr=function(e){var t,n,o,i=e.dateTime,a=e.range,c=e.onChange,l=Object(r.useRef)(Hr),s=Yr(i),u=s.initialDateTime,f=s.handleChangeSetTime,d=s.handleClickTimeNow,p=s.handleTimeToggle,h=function(e){l.current=Hr,c(f(e))};return r.createElement(Fr,null,r.createElement(Gr,null,r.createElement("label",{htmlFor:"".concat(a,"-time-hours"),title:"".concat(a," hours label")},"HH"),r.createElement("label",{htmlFor:"".concat(a,"-time-minutes"),title:"".concat(a," minutes label")},"mm"),r.createElement("label",{htmlFor:"".concat(a,"-time-seconds"),title:"".concat(a," seconds label")},"ss"),r.createElement(Wr,null,r.createElement(_r,null,r.createElement(qr,{bsStyle:"link",bsSize:"small",onClick:function(){var e=l.current===Nr;l.current=e?"hourglass-end":Nr,c(p(e))},title:"Toggle between beginning and end of day"},r.createElement(b.z,{name:l.current}))),r.createElement(Vr,{type:"number",id:"".concat(a,"-time-hours"),title:"".concat(a," hour"),value:null!==(t=u.hours)&&void 0!==t?t:"",onChange:h,onFocus:Ur,bsSize:"sm"}),r.createElement(_r,null,":"),r.createElement(Vr,{type:"number",id:"".concat(a,"-time-minutes"),title:"".concat(a," minutes"),value:null!==(n=u.minutes)&&void 0!==n?n:"",onChange:h,onFocus:Ur,bsSize:"sm"}),r.createElement(_r,null,":"),r.createElement(Vr,{type:"number",id:"".concat(a,"-time-seconds"),title:"".concat(a," seconds"),value:null!==(o=u.seconds)&&void 0!==o?o:"",onChange:h,onFocus:Ur,bsSize:"sm"}),r.createElement(_r,null,r.createElement(qr,{bsStyle:"link",bsSize:"small",onClick:function(){l.current=Hr,c(d())},title:"Set to current local time"},r.createElement(b.z,{name:"magic"}))))))};Jr.propTypes={dateTime:m.a.string.isRequired,range:m.a.string.isRequired,onChange:m.a.func},Jr.defaultProps={onChange:function(){}};var Zr=Jr,Kr=s.default.span.withConfig({displayName:"AbsoluteCalendar__ErrorMessage",componentId:"trf4bt-0"})((function(e){var t=e.theme;return Object(s.css)(["color:",";font-size:",";font-style:italic;padding:3px 3px 9px;height:1.5em;"],t.colors.variant.dark.danger,t.fonts.size.small)})),Qr=function(e){var t=e.startDate,n=e.nextTimeRange,o=e.range;return r.createElement(we.Field,{name:"nextTimeRange[".concat(o,"]")},(function(e){var i=e.field,a=i.value,c=i.onChange,l=i.name,s=e.meta.error,u=function(e){return c({target:{name:l,value:e}})},f=s?n[o]:a||n[o];return r.createElement(r.Fragment,null,r.createElement(Dr,{onChange:u,startDate:t,dateTime:f}),r.createElement(Zr,{onChange:u,range:o,dateTime:f}),r.createElement(Kr,null,s))}))};Qr.propTypes={nextTimeRange:m.a.shape({from:m.a.string,to:m.a.string}).isRequired,startDate:m.a.instanceOf(Date),range:m.a.oneOf(["to","from"]).isRequired},Qr.defaultProps={startDate:void 0};var Xr=Qr;function $r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n span{flex:1;}code{color:",";background:transparent;font-size:",";}"],t.colors.variant.lightest.primary,t.colors.variant.darker.primary,t.fonts.size.body)})),Ao=function(e){var t=e.timerange,n=e.toggleDropdownShow,o=mo(Object(r.useState)(vo),2),i=o[0],a=i.from,c=i.until,l=o[1],s=Object(r.useRef)(!1);return Object(r.useEffect)((function(){Object(pn.a)(t)&&!t.from?s.current||ho.a.testNaturalDate(t.keyword).then((function(e){s.current=!0,l({from:e.from,until:e.to})}),(function(){l(vo)})):t&&"type"in t&&l(function(e){var t=bo;if(!e)return vo;switch(e.type){case"relative":return Object(pn.d)(e)&&(t=hn(e,"range")),Object(pn.c)(e)&&(t=hn(e,"from")),{from:t,until:hn(e,"to","Now")};case"absolute":case"keyword":return{from:e.from,until:e.to};default:throw new Error("Invalid Timerange Type")}}(t))}),[s,t]),r.createElement(yo,{"aria-label":"Search Time Range, Opens Time Range Selector On Click",role:"button",onClick:n},t&&"type"in t?r.createElement(r.Fragment,null,r.createElement("span",{"data-testid":"from"},r.createElement("strong",null,"From"),": ",r.createElement("code",null,a)),r.createElement("span",{"data-testid":"to"},r.createElement("strong",null,"Until"),": ",r.createElement("code",null,c))):r.createElement("span",null,r.createElement("code",null,"No Override")))};Ao.defaultProps={toggleDropdownShow:void 0};var wo=Ao;function xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function So(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ko(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ko(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ko(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ro=s.default.div.withConfig({displayName:"TimerangeSelector__TimerangeWrap",componentId:"sc-4mw1y4-0"})((function(e){var t=e.theme;return Object(s.css)([".form-group{margin-bottom:0;}.relative{color:",";}.absolute{font-size:",";}"],t.colors.gray[40],t.fonts.size.body)})),No=function(e){var t=e.className,n=e.children,o=To(e,["className","children"]);return r.createElement(Ro,Po({className:t},o),n)};No.propTypes={className:m.a.string,children:m.a.node.isRequired,style:m.a.object},No.defaultProps={className:void 0,style:void 0};var Ho=No;function Lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:"All Time",r=null==e?void 0:e[t];if(!r)return n;var o=Un()().subtract(r,"seconds"),i=Un.a.preciseDiff(Un()(),o);return"".concat(i," ago")},mi=function(e){var t=e.timerange,n=Object(we.useFormikContext)().isValid,o=ai(Object(r.useState)(vo),2),i=o[0],a=i.from,c=i.until,l=o[1];return Object(r.useEffect)((function(){var e=vo;n&&(e=function(e){var t=bo,n=bo;return e?Object(pn.b)(e)?(Object(pn.d)(e)&&(t=hi(e,"range")),Object(pn.c)(e)&&(t=hi(e,"from")),{from:t,until:n=hi(e,"to","Now")}):{from:"from"in e?e.from:t,until:"to"in e?e.to:n}:vo}(t)),l(e)}),[n,t]),r.createElement(li,{"data-testid":"time-range-live-preview"},r.createElement(si,null,r.createElement(fi,null,"From"),r.createElement(di,{title:"Dates Formatted as [".concat(W.a.Formats.TIMESTAMP,"]")},a)),r.createElement(pi,null,r.createElement(b.z,{name:"arrow-right"})),r.createElement(ui,null,r.createElement(fi,null,"Until"),r.createElement(di,{title:"Dates Formatted as [".concat(W.a.Formats.TIMESTAMP,"]")},c)))};mi.propTypes={timerange:m.a.shape({range:m.a.oneOfType([m.a.string,m.a.number]),from:m.a.oneOfType([m.a.string,m.a.number]),to:m.a.oneOfType([m.a.string,m.a.number])})},mi.defaultProps={timerange:void 0};var gi=mi,bi=Object(r.createContext)({limitDuration:0}),vi=function(e){var t=e.children,n=e.limitDuration;return o.a.createElement(bi.Provider,{value:{limitDuration:n}},t)};vi.propTypes={children:m.a.node.isRequired,limitDuration:m.a.number.isRequired};var yi=vi;function Ai(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n span{font-weight:600;}"]),Bi=s.default.span.withConfig({displayName:"TimeRangeDropdown__LimitLabel",componentId:"sc-194ht14-4"})((function(e){var t=e.theme;return Object(s.css)(["> svg{margin-right:3px;color:",";}> span{font-size:",";color:",";}"],t.colors.variant.dark.warning,t.fonts.size.small,t.colors.variant.darkest.warning)})),Ii=Object(s.default)(re.e).withConfig({displayName:"TimeRangeDropdown__CancelButton",componentId:"sc-194ht14-5"})(["margin-right:6px;"]),Di={absolute:{type:"absolute",from:W.a.now().subtract(300,"seconds").format(W.a.Formats.TIMESTAMP),to:W.a.now().format(W.a.Formats.TIMESTAMP)},relative:{type:"relative",from:300},keyword:{type:"keyword",keyword:"Last five minutes"},disabled:void 0},Pi=function(e,t){if(0===t)return!1;switch(null==e?void 0:e.type){case"absolute":case"keyword":var n=e.from,r=W.a.now().subtract(Number(t),"seconds").format(W.a.Formats.TIMESTAMP);return Un()(n).isBefore(r);default:return!1}},Ti=function(e,t){var n={},r="Format must be: YYYY-MM-DD [HH:mm:ss[.SSS]].",o="Range is outside limit duration.",i='The "Until" date must come after the "From" date.';return"absolute"===(null==e?void 0:e.type)&&(W.a.isValidDateString(e.from)||(n.nextTimeRange=Ei(Ei({},n.nextTimeRange),{},{from:r})),W.a.isValidDateString(e.to)||(n.nextTimeRange=Ei(Ei({},n.nextTimeRange),{},{to:r})),e.from>=e.to&&(n.nextTimeRange=Ei(Ei({},n.nextTimeRange),{},{to:i})),Pi(e,t)&&(n.nextTimeRange=Ei(Ei({},n.nextTimeRange),{},{from:"Date is outside limit duration."}))),"relative"===(null==e?void 0:e.type)&&(t>0&&((e.from>t||!e.from)&&(n.nextTimeRange=Ei(Ei({},n.nextTimeRange),{},{from:o})),e.to>t&&(n.nextTimeRange=Ei(Ei({},n.nextTimeRange),{},{to:o}))),null===e.from&&(n.nextTimeRange=Ei(Ei({},n.nextTimeRange),{},{from:"Cannot be empty."})),e.from&&null===e.to&&(n.nextTimeRange=Ei(Ei({},n.nextTimeRange),{},{to:"Cannot be empty."})),e.from&&e.from<=e.to&&(n.nextTimeRange=Ei(Ei({},n.nextTimeRange),{},{to:i}))),"keyword"===(null==e?void 0:e.type)&&Pi(e,t)&&(n.nextTimeRange={keyword:o}),n},Ri=function(e){return Object(pn.d)(e)?{type:e.type,from:e.range}:e},Ni=function(e){var t=e.noOverride,n=e.toggleDropdownShow,o=e.currentTimeRange,i=e.setCurrentTimeRange,a=e.validTypes,c=void 0===a?Si:a,l=e.position,s=Object(r.useContext)(bi).limitDuration,u=Ai(Object(r.useState)(!1),2),f=u[0],d=u[1],p=Ai(Object(r.useState)("type"in o?o.type:void 0),2),h=p[0],m=p[1],g="bottom"===l,v=function(){i({}),n()},y=Object(r.useCallback)((function(){n()}),[n]),A=r.createElement(Mi,null,r.createElement("span",null,"Search Time Range"),s>0&&r.createElement(Bi,null,r.createElement(b.z,{name:"exclamation-triangle"}),r.createElement("span",null,"Admin has limited searching to ",Un.a.duration(-s,"seconds").humanize(!0))));return r.createElement(ki,{id:"timerange-type","data-testid":"timerange-type",placement:l,positionTop:g?36:-10,positionLeft:g?-15:45,arrowOffsetTop:g?void 0:25,arrowOffsetLeft:g?34:-11,title:A},r.createElement(we.Formik,{initialValues:{nextTimeRange:Ri(o)},validate:function(e){var t=e.nextTimeRange;return Ti(t,s)},onSubmit:function(e){var t=e.nextTimeRange;i(ir(t)),n()},validateOnMount:!0},(function(e){var n=e.values.nextTimeRange,o=e.isValid,i=e.setFieldValue,a=e.submitForm;return r.createElement(b.F,{shortcuts:{enter:a,esc:y}},r.createElement(we.Form,null,r.createElement(re.L,null,r.createElement(re.j,{md:12},r.createElement(gi,{timerange:n}),r.createElement(ji,{id:"dateTimeTypes",defaultActiveKey:ge.p[0].type,activeKey:null!=h?h:-1,onSelect:function(e){i("nextTimeRange","type"in n?function(e,t){if(t===(e&&"type"in e?e.type:"disabled"))return e;if(!wr[t])throw new Error("Invalid time range type: ".concat(t));return wr[t](e)}(n,e):Di[e]),m(e)},animation:!1},function(e){var t=e.activeTab,n=e.limitDuration,o=e.setValidatingKeyword,i=e.tabs;return ge.p.filter((function(e){var t=e.type;return i.includes(t)})).map((function(e){var i=e.type,a=e.name,c=Oi[i];return r.createElement(re.M,{title:a,key:"time-range-type-selector-".concat(i),eventKey:i},i===t&&r.createElement(c,{disabled:!1,limitDuration:n,setValidatingKeyword:"keyword"===i?o:void 0}))}))}({activeTab:h,limitDuration:s,setValidatingKeyword:d,tabs:c}),!h&&r.createElement(ii,null)))),r.createElement(re.L,{className:"row-sm"},r.createElement(re.j,{md:6},r.createElement(zi,null,"All timezones using: ",r.createElement("b",null,W.a.getUserTimezone()))),r.createElement(re.j,{md:6},r.createElement("div",{className:"pull-right"},t&&r.createElement(re.e,{bsStyle:"link",onClick:v},"No Override"),r.createElement(Ii,{bsStyle:"default",onClick:y},"Cancel"),r.createElement(re.e,{bsStyle:"success",disabled:!o||f,type:"submit"},"Apply"))))))})))};Ni.defaultProps={noOverride:!1,validTypes:Si};var Hi=Ni;function Li(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Yi=Object(s.default)(re.e).withConfig({displayName:"SearchButton__StyledButton",componentId:"sc-4p0rhx-0"})(["margin-right:7px;"]),Ji=Object(s.default)(Yi).withConfig({displayName:"SearchButton__DirtyButton",componentId:"sc-4p0rhx-1"})((function(e){var t=e.theme;return Object(s.css)(["position:relative;&::after{position:absolute;content:'';height:16px;width:16px;top:-5px;right:-6px;border-radius:50%;background-color:",";}"],t.colors.variant.warning)})),Zi=function(e){var t=e.disabled,n=e.glyph;return o.a.createElement(Ji,{type:"submit",bsStyle:"success",disabled:t,title:"Perform search (changes were made after last search execution)",className:"pull-left"},o.a.createElement(b.z,{name:n}))},Ki=function(e){var t=e.disabled,n=e.glyph;return o.a.createElement(Yi,{bsStyle:"success",onClick:function(){return gn.a.refresh()},disabled:t,title:"Perform search",className:"pull-left"},o.a.createElement(b.z,{name:n}))},Qi=function(e){var t=e.dirty,n=Ui(e,["dirty"]);return t?o.a.createElement(Zi,n):o.a.createElement(Ki,n)};Qi.defaultProps={disabled:!1,dirty:!1,glyph:"search"},Qi.propTypes={disabled:m.a.bool,dirty:m.a.bool,glyph:m.a.string};var Xi=Qi,$i=n("IZzvjOlY"),ea=Object($i.a)((function(){return Promise.all([n.e("3a36711c-13"),n.e("3a36711c-67"),n.e("3a36711c-77")]).then(n.bind(null,"smnLGptQ"))})),ta=Object(s.default)(we.Form).withConfig({displayName:"SearchBarForm__StyledForm",componentId:"sc-1xfwpqs-0"})(["height:100%;"]),na=function(e){return Object(ne.isFunction)(e)},ra=function(e){var t=e.timerange,n=e.streams,r=e.queryString;return{timerange:br(t),streams:n,queryString:r}},oa=function(e){var t=e.initialValues,n=e.limitDuration,o=e.onSubmit,i=e.children,a=e.validateOnMount,c=e.formRef,l=Object(r.useCallback)((function(e){var t=e.timerange,n=e.streams,r=e.queryString;return o(ra({timerange:t,streams:n,queryString:r}))}),[o]),s=t.timerange,u=t.streams,f={queryString:t.queryString,streams:u,timerange:vr(s)};return r.createElement(we.Formik,{initialValues:f,enableReinitialize:!0,onSubmit:l,innerRef:c,validate:function(e){var t=e.timerange;return Ti(t,n)},validateOnMount:a},(function(){return r.createElement(yi,{limitDuration:n},r.createElement(ta,null,na(i)?i.apply(void 0,arguments):i))}))};oa.propTypes={initialValues:m.a.exact({timerange:m.a.object.isRequired,queryString:m.a.string.isRequired,streams:m.a.arrayOf(m.a.string).isRequired}).isRequired,onSubmit:m.a.func.isRequired,limitDuration:m.a.number.isRequired,validateOnMount:m.a.bool},oa.defaultProps={validateOnMount:!0,formRef:void 0};var ia=oa,aa=s.default.div.withConfig({displayName:"WidgetQueryOverride__Wrapper",componentId:"sc-1b8lv6y-0"})(["width:25%;min-width:300px;max-width:500px;display:flex;align-items:center;&::before{box-shadow:17px 0 16px -16px rgb(0 0 0 / 40%) inset;}"]),ca=s.default.div.withConfig({displayName:"WidgetQueryOverride__TimeRangeInfo",componentId:"sc-1b8lv6y-1"})((function(e){var t=e.theme;return"\n margin-left: 10px;\n border: 1px dashed ".concat(t.colors.input.border,";\n display: flex;\n align-items: center;\n width: 100%;\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n padding: 0 5px;\n min-height: 34px;\n border-left: 0;\n\n .query {\n flex: 1;\n }\n")})),la=Object(s.default)(re.e).withConfig({displayName:"WidgetQueryOverride__ResetButton",componentId:"sc-1b8lv6y-2"})(["margin-left:5px;"]),sa=function(e){var t=e.value,n=e.onReset;return r.createElement(aa,null,r.createElement(ca,null,r.createElement(ea,{onChange:function(){return Promise.resolve("")},onExecute:function(){},disabled:!0,value:t.query_string,height:32}),r.createElement(la,{bsSize:"xs",bsStyle:"primary",onClick:n,"data-testid":"reset-global-query"},"Reset Global Filter")))};function ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fa(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ha=s.default.div.withConfig({displayName:"WidgetQueryControls__SecondRow",componentId:"sc-13bh5rr-0"})(["display:flex;.query{flex:1;}"]),ma=Object(s.default)(re.L).withConfig({displayName:"WidgetQueryControls__WidgetTopRow",componentId:"sc-13bh5rr-1"})(["margin-top:10px;margin-bottom:10px;"]),ga=function(e,t){var n=t.timerange,r=t.streams,o=t.queryString;return e.toBuilder().timerange(n).query(Object(Jn.a)(o)).streams(r).build()},ba=function(){return vn.a.resetTimeRange().then(gn.a.refresh)},va=function(){return vn.a.resetQuery().then(gn.a.refresh)},ya=function(e){var t,n,o,i=e.availableStreams,a=e.globalOverride,c=Object(r.useContext)($t),l=Object(f.b)(xt.b,(function(e){return e.searchesClusterConfig})),s=null!==(t=Un.a.duration(null==l?void 0:l.query_time_range_limit).asSeconds())&&void 0!==t?t:0,u=c.streams,d=null!==(n=c.timerange)&&void 0!==n?n:ge.g,p=(null!==(o=c.query)&&void 0!==o?o:Object(Jn.a)("")).query_string,h=void 0!==(null==a?void 0:a.timerange),m=void 0!==(null==a?void 0:a.query),g=Object(r.useRef)(null);return function(e){var t=Object(r.useContext)(Nn.a).bindApplySearchControlsChanges;Object(r.useEffect)((function(){t((function(t){if(e.current){var n=e.current,r=n.dirty,o=n.values,i=n.isValid;if(r&&i){var a=ra(o);return ga(t,a)}}}))}),[e,t])}(g),r.createElement(r.Fragment,null,r.createElement(ia,{initialValues:{timerange:d,streams:u,queryString:p},limitDuration:s,formRef:g,onSubmit:function(e){return function(e,t){var n=e.timerange,r=e.streams,o=e.queryString,i=ga(t,{timerange:n,streams:r,queryString:o});return Ht.a.update(t.id,i)}(e,c)},validateOnMount:!1},(function(e){var t=e.dirty,n=e.isValid,o=e.isSubmitting,c=e.handleSubmit,l=e.values,s=e.setFieldValue;return r.createElement(r.Fragment,null,r.createElement(Zn.b,{formKey:"widget-query-controls"}),r.createElement(ma,null,r.createElement(re.j,{md:6},!h&&r.createElement(qi,{disabled:h,onChange:function(e){return s("timerange",e)},value:null==l?void 0:l.timerange,hasErrorOnMount:!n,position:"right"}),h&&r.createElement(nr,{value:null==a?void 0:a.timerange,onReset:ba})),r.createElement(re.j,{md:6},r.createElement(we.Field,{name:"streams"},(function(e){var t=e.field,n=t.name,o=t.value,a=t.onChange;return r.createElement(Wi,{value:o,streams:i,onChange:function(e){return a({target:{value:e,name:n}})}})})))),r.createElement(ha,null,r.createElement(Xi,{disabled:o||!n,dirty:t}),r.createElement(we.Field,{name:"queryString"},(function(e){var t=e.field,n=t.name,o=t.value,i=t.onChange;return r.createElement(ea,{value:o,placeholder:'Type your search query here and press enter. E.g.: ("not found" AND http) OR http_response_code:[400 TO 404]',onChange:function(e){return i({target:{value:e,name:n}}),Promise.resolve(e)},onExecute:c})})),r.createElement("div",{className:"pull-right search-help"},r.createElement(zt.a,{page:jt.a.PAGES.SEARCH_QUERY_LANGUAGE,title:"Search query syntax documentation",text:r.createElement(b.z,{name:"lightbulb",type:"regular"})})),m&&r.createElement(sa,{value:null==a?void 0:a.query,onReset:va})))})))};ya.propTypes={};var Aa=Object(f.a)(ya,{availableStreams:Yn.b,globalOverride:vn.b},(function(e){var t=e.availableStreams.streams,n=void 0===t?[]:t;return fa(fa({},pa(e,["availableStreams"])),{},{availableStreams:n.map((function(e){return{key:e.title,value:e.id}}))})})),wa=n("nOgP+Oz5");function xa(e){return(xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ea(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function lc(e,t){for(var n=0;n1?r.createElement(we.Field,{name:"format"},(function(e){var n=e.field,o=n.name,i=n.value,a=n.onChange;return r.createElement(r.Fragment,null,r.createElement("label",{htmlFor:o},"Output Format"),r.createElement(Oe.b,{name:o,value:i,options:t,onChange:function(e){return a({target:{name:o,value:e}})}}))})):null},Ac=function(e){var t,n=e.widget,o=(null!==(t=Object(r.useMemo)((function(){return(null==n?void 0:n.type)&&Object(Tt.c)(n.type)}),[n]))&&void 0!==t?t:{}).exportComponent,i=void 0===o?function(){return null}:o;return r.createElement(i,{widget:n})},wc=function(e){var t=e.selectedWidget,n=e.view.getWidgetTitleByWidget(t);return r.createElement(re.L,null,r.createElement("i",null,r.createElement(It.a,null,t&&"The following settings are based on the message table: ".concat(n),r.createElement("br",null)),r.createElement(Bt,null,t&&"You are currently exporting the search results for the message table: ".concat(n),r.createElement("br",null))))},xc=function(e){var t=e.fields,n=e.selectedWidget,o=e.view;return r.createElement(r.Fragment,null,r.createElement(re.L,null,r.createElement(yc,null)),n&&r.createElement(wc,{selectedWidget:n,view:o}),r.createElement(re.L,null,r.createElement("p",null,"Define the fields for your file. You can change the field order with drag and drop.",r.createElement("br",null)),n&&r.createElement("p",null,"The export supports fields created by decorators which are part of the message table, but they currently do not appear in the field list. If you want to export a decorated field, just enter its name."),r.createElement("p",null,"When you've finished the configuration, click on ",r.createElement("q",null,"Start Download"),".")),r.createElement(re.L,null,r.createElement(we.Field,{name:"selectedFields"},(function(e){var o=e.field,i=o.name,a=o.value,c=o.onChange;return r.createElement(r.Fragment,null,r.createElement("label",{htmlFor:i},"Fields to export"),r.createElement(bc.a,{fields:t,onChange:function(e){var t=e.map((function(e){return{field:e.value}}));return c({target:{name:i,value:t}})},value:a,allowOptionCreation:!!n,inputId:i}))}))),r.createElement(re.L,null,r.createElement(we.Field,{name:"limit"},(function(e){var t=e.field,n=t.name,o=t.value,i=t.onChange;return r.createElement(r.Fragment,null,r.createElement("label",{htmlFor:n},"Messages limit"),r.createElement(Ee.d,{type:"number",id:n,name:n,onChange:i,min:1,step:1,value:o}),r.createElement(re.s,null,"Messages are loaded in chunks. If a limit is defined, all chunks up to the one where the limit is reached will be retrieved. Which means the total number of delivered messages can be higher than the defined limit."))}))),r.createElement(Ac,{widget:n}))},Ec=n("L+5XEiOD"),Cc=n("HbbeyvOy"),Oc=n("IU8ofT4O"),Sc=n("1VnJesae"),kc=function(e,t){var n=Sc.a.getStore("Session"),r=document.createElement("a");r.download=t,r.href=Object(Cc.g)(Oc.a.MessagesController.jobResults(e,t).url,n.getSessionId()),document.body.appendChild(r),r.click(),document.body.removeChild(r)},jc=function(e,t,n,r,o){var i=Oc.a.ExportJobsController.exportSearchType(t,n).url;return Object(Ec.c)("POST",Object(Cc.f)(i),e,r).then((function(e){return kc(e,o)})).catch((function(){Vn.a.error("Export for widget failed")}))},zc=function(e,t){return e.find((function(e){return e.id===t}))},Mc=function(e){var t=te.PluginStore.exports("views.export.formats").find((function(t){return t.type===e}));if(!t)throw new Error('Unknown export format "'.concat(t,'"'));return t},Bc=function(e,t,n,r,o,i){if(1!==n.size)throw new Error("Searches must only have a single query!");var a=Mc(e),c=a.mimeType,l=a.fileExtension,s="".concat(i,".").concat(l);return r?jc(t,o,r.id,c,s):function(e,t,n,r){var o=Oc.a.ExportJobsController.exportSearch(t).url;return Object(Ec.c)("POST",Object(Cc.f)(o),e,n).then((function(e){return kc(e,r)})).catch((function(){Vn.a.error("Export failed")}))}(t,o,c,s)},Ic={title:"Export all search results",shouldEnableDownload:function(e,t,n,r){return!r&&!e&&!!n&&n.length>0},shouldAllowWidgetSelection:function(e,t,n){return!e&&!t&&n.size>1},shouldShowWidgetSelection:function(e,t,n){return!e&&!t&&n.size>1},initialWidget:function(e,t){return t?zc(e,t):1===e.size?e.first():null},downloadFile:function(e,t,n,r,o,i){return Bc(e,t,n,r,o,i)}},Dc={title:"Export message table search results",shouldEnableDownload:function(e,t,n,r){return!r&&!!t&&!!n&&n.length>0},shouldAllowWidgetSelection:function(e,t){return!e&&!t},shouldShowWidgetSelection:function(e,t){return!e&&!t},initialWidget:function(e,t){return t?zc(e,t):null},downloadFile:function(e,t,n,r,o,i){return function(e,t,n,r,o){if(!n)throw new Error("Exports on a dashboard require a selected widget!");var i=Mc(e),a=i.mimeType,c=i.fileExtension,l="".concat(o,".").concat(c);return jc(t,r,n.id,a,l)}(e,t,r,o,i)}},Pc=function(e){switch(e){case Mt.a.Type.Dashboard:return Dc;case Mt.a.Type.Search:default:return Ic}},Tc=n("H1SnJhgx");function Rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hc=function(e,t,n,r,o,i,a,c){var l=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]&&arguments[3];if(n.type!==Mt.a.Type.Dashboard)throw new Error("Unexpected type ".concat(n.type," expected ").concat(Mt.a.Type.Dashboard));var o=Kc(e,n);if(o){var i=$c(o,2),a=i[0],c=i[1],l=al(e,c,n),s=n.state.get(c),u=s.widgetPositions,f=u[e],d=r?n:ol(e,c,n),p=r?a.toBuilder().newId().build():a;return Object(Qc.a)(il(p,t,d,l,f))}},ll=n("psq2jKZs"),sl=n("KQXACCw7"),ul=n("ncXD1qQT"),fl=n("L3VtQM2F");function dl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?r.createElement(r.Fragment,null,r.createElement(re.y,{divider:!0}),a):null},Cl=n("FX4+hB/0");function Ol(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sl(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o.a.createElement(re.w,null,A):o.a.createElement("span",null,"No dashboards found");return o.a.createElement(re.A,{show:!0},o.a.createElement(re.A.Body,null,o.a.createElement(b.W,{onSearch:g,onReset:v}),o.a.createElement(b.P,{onChange:y,activePage:h.page,totalItems:l.total,pageSize:h.perPage,pageSizes:[5,10,15]},w)),o.a.createElement(re.A.Footer,null,o.a.createElement(re.e,{bsStyle:"primary",disabled:null===f,onClick:function(){return s(t,f)}},"Select"),o.a.createElement(re.e,{onClick:n},"Cancel")))}),{dashboards:Cl.b}),Bl=n("FOEh8xnd"),Il=n("2CqCdVks"),Dl=n("F7rCM7Fb"),Pl=Object(en.c)("views.QueryIds",(function(){return Wa.a.createStore({state:{},init:function(){this.listenTo(oe.b,this.onViewsStoreUpdate,this.onViewsStoreUpdate)},getInitialState:function(){return this._state()},onViewsStoreUpdate:function(e){var t,n,r,o=null==e||null===(t=e.view)||void 0===t||null===(n=t.search)||void 0===n||null===(r=n.queries)||void 0===r?void 0:r.map((function(e){return e.id})).toOrderedSet();Object(ne.isEqual)(this.state,o)||(this.state=o,this._trigger())},_state:function(){return this.state},_trigger:function(){this.trigger(this._state())}})}));function Tl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o.a.createElement(re.w,null,y):o.a.createElement("span",null,"No pages found");return o.a.createElement(Bl.a,{show:!0,onCancel:n,submitButtonDisabled:!l,onSubmitForm:b,title:"Choose Target Page"},A,o.a.createElement(Io.a,{type:"checkbox",id:"keepCopy",name:"keepCopy",label:"Keep Copy on this Page",onChange:g,help:"When 'Keep Copy on the Page' is enabled, the widget will be copied and not moved to another page",checked:d}))},Hl=function(e){e.stopPropagation(),e.preventDefault()},Ll=function(e){var t=e.children;return r.createElement("span",{role:"presentation",onClick:Hl,onMouseDown:Hl},t)};function Fl(e){return(Fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vl(e,t){for(var n=0;n2?e:r.Children.map(e,(function(e){return null!=e&&e.props?r.cloneElement(e,Jl(Jl({},e.props),t.closeOnChildSelect(e,n+1))):e}))})),t.state={show:!1},t}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.container,i=t.element,a=this.state.show,c=this.closeOnChildrenSelect(n,0);return r.createElement(Ll,null,r.createElement(Kl,{bsRole:"toggle",onClick:this._onToggle},r.createElement("span",{ref:function(t){e.target=t}},i)),r.createElement(rr.Overlay,{show:a,container:o,placement:"bottom",shouldUpdatePosition:!0,rootClose:!0,onHide:this._onToggle,target:function(){return e.target}},r.createElement(Ql,null,r.createElement(re.n,{show:a},r.createElement(re.y,{header:!0},"Actions"),c))))}}])&&Vl(t.prototype,n),o&&Vl(t,o),a}(r.Component);Zl(Xl,"defaultProps",{container:void 0}),Zl(Xl,"propTypes",{children:m.a.node.isRequired,container:m.a.oneOfType([m.a.node,m.a.func]),element:m.a.node.isRequired});var $l=Xl,es=function(e){var t=e.children,n=r.createElement(b.A,{"data-testid":"widgetActionDropDown",name:"chevron-down",title:"Open actions dropdown"});return r.createElement($l,{element:n},t)},ts=function(e){var t=e.onStretch,n=e.position,o=e.widgetId,i=e.widgetType,a=Object(r.useCallback)((function(){var e=n.col,r=n.row,a=n.height,c=n.width,l=Object(Tt.c)(i).defaultWidth;t({id:o,col:e,row:r,height:a,width:c===1/0?l:1/0})}),[t,n,o,i]);if(!n)return r.createElement(kt.a,null);var c=n.width===1/0,l=c?"compress":"arrows-alt-h",s=c?"Compress width":"Stretch width";return r.createElement(b.A,{onClick:a,name:l,title:s})};ts.propTypes={widgetId:m.a.string.isRequired,widgetType:m.a.string.isRequired,position:m.a.shape(un.a).isRequired,onStretch:m.a.func.isRequired};var ns=ts,rs=n("GQ8g8YVH");function os(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return is(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return is(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function is(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n *:not(:last-child){margin-right:2px;}"]),cs=function(e,t,n,r){var o=e.view;if(r){var i=function(e){return function(t){var i=fl.a.fromJSON(t),a=vl(n,o,e.toBuilder().search(i).build());a&&a.search&&ul.a.create(a.search).then((function(e){var t=e.search;return function(e,t,n){var r=e.toBuilder().search(n).build();sl.a.update(r).then((function(){return Object(ll.b)(t)}))}(a,r,t)}))}};sl.a.get(r).then((function(e){var t=Mt.a.fromJSON(e);ul.a.get(e.search_id).then(i(t))})),t(!1)}},ls=function(e){var t=e.isFocused,n=e.onPositionsChange,o=e.position,i=e.title,a=e.toggleEdit,c=Object(r.useContext)($t),l=Object(f.b)(oe.b),s=Object(r.useContext)(Nt.a),u=s.setWidgetFocusing,d=s.unsetWidgetFocusing,p=os(Object(r.useState)(!1),2),h=p[0],m=p[1],g=os(Object(r.useState)(!1),2),v=g[0],y=g[1],A=os(Object(r.useState)(!1),2),w=A[0],x=A[1],E=Object(r.useCallback)((function(e,t){return cs(l,m,e,t)}),[l]),C=Object(r.useCallback)((function(e,t,n){return function(e,t,n,r,o){var i=e.view;if(r){var a=cl(n,r,i,o);a&&ul.a.create(a.search).then((function(e){var n=a.toBuilder().search(e.search).build();oe.a.update(n).then((function(){t(!1),oe.a.selectQuery(r).then((function(){ul.a.executeWithCurrentState()}))}))}))}}(l,x,e,t,n)}),[l]);return r.createElement(as,null,r.createElement(rs.a,null,r.createElement(Bt,null,r.createElement(xl,null)),t&&r.createElement(b.A,{name:"compress-arrows-alt",title:"Un-focus widget",onClick:function(){return d()}}),!t&&r.createElement(r.Fragment,null,r.createElement(ns,{widgetId:c.id,widgetType:c.type,onStretch:n,position:o}),r.createElement(b.A,{name:"expand-arrows-alt",title:"Focus this widget",onClick:function(){return u(c.id)}})),r.createElement(b.A,{name:"edit",title:"Edit",onClick:a}),r.createElement(es,null,r.createElement(re.y,{onSelect:function(){return function(e,t,n){Ht.a.duplicate(e).then((function(e){cn.b.set(cn.a.Widget,e.id,"".concat(n," (copy)")).then((function(){t(void 0)}))}))}(c.id,u,i)}},"Duplicate"),r.createElement(It.a,null,r.createElement(re.y,{onSelect:function(){return m(!0)}},"Copy to Dashboard")),c.isExportable&&r.createElement(re.y,{onSelect:function(){return y(!0)}},"Export"),r.createElement(Bt,null,r.createElement(re.y,{onSelect:function(){return x(!0)}},"Move to Page")),r.createElement(El,{widget:c,onSelect:function(){}}),r.createElement(re.y,{divider:!0}),r.createElement(re.y,{onSelect:function(){return function(e,t){window.confirm('Are you sure you want to remove the widget "'.concat(t,'"?'))&&Ht.a.remove(e)}(c.id,i)}},"Delete")),h&&r.createElement(Ml,{widgetId:c.id,onSubmit:E,onCancel:function(){return m(!1)}}),v&&r.createElement(Zc,{view:l.view,directExportWidgetId:c.id,closeModal:function(){return y(!1)}}),w&&r.createElement(Nl,{view:l.view,widgetId:c.id,onCancel:function(){return x(!1)},onSubmit:C})))};function ss(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return us(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return us(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function us(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)return r.createElement(qa.a,{errors:m});if(g){var b=o.config,v=o.filter;return r.createElement(p,{config:b,data:g,editing:s,fields:c,filter:v,height:i,queryId:l,onConfigChange:d,setLoadingState:u,title:t,toggleEdit:f,type:o.type,width:a,id:n})}return r.createElement(_a,null)},ps=function(e){var t=e.children,n=e.config,o=e.editing,i=e.fields,a=e.id,c=e.onToggleEdit,l=e.onCancelEdit,s=e.onWidgetConfigChange,u=e.type,f=Object(r.useMemo)((function(){return function(e){return Object(Tt.c)(e).editComponent}(u)}),[u]);return o?r.createElement(Fa,{onFinish:c,onCancel:l},r.createElement(f,{config:n,fields:i,editing:o,id:a,type:u,onChange:s},t)):r.createElement(r.Fragment,null,t)},hs=function(e){var t=e.id,n=e.editing,o=e.height,i=e.width,a=e.widget,c=e.fields,l=e.onSizeChange,s=e.title,u=e.position,d=e.onPositionsChange,p=ss(Object(r.useState)(!1),2),h=p[0],m=p[1],g=ss(Object(r.useState)(n?a:void 0),2),b=g[0],v=g[1],y=Object(r.useContext)(Nt.a),A=y.focusedWidget,w=y.setWidgetEditing,x=y.unsetWidgetEditing,E=Object(r.useCallback)((function(){n?(x(),v(void 0)):(fn.a.disable(),w(a.id),v(a))}),[n,w,x,a]),C=Object(r.useCallback)((function(){b&&Ht.a.update(t,b),E()}),[t,b,E]),O=Object(r.useCallback)((function(e){return cn.b.set("widget",t,e)}),[t]),S=Object(r.useCallback)((function(e){return Ht.a.updateConfig(t,e)}),[t]),k=Object(f.b)(oe.b,(function(e){return e.activeQuery})),j=a.config,z=(null==A?void 0:A.id)===t;return r.createElement(ic,{id:t},r.createElement(Dn,{widgetId:t,onSizeChange:l},r.createElement(Ft.a.Consumer,null,(function(e){return r.createElement(Pn.a,{title:s,hideDragHandle:!e||z,loading:h,onRename:O},n?null:r.createElement(ls,{isFocused:z,toggleEdit:E,title:s,position:u,onPositionsChange:d}))})),r.createElement(ps,{onToggleEdit:E,onCancelEdit:C,onWidgetConfigChange:S,config:j,editing:n,fields:c,id:t,type:a.type},r.createElement(pc,null,r.createElement(ds,{id:t,editing:n,queryId:k,widget:a,fields:c,title:s,height:o,width:i,setLoadingState:m,onToggleEdit:E,onWidgetConfigChange:S}))),r.createElement(fs,null,r.createElement(Bt,null,!n&&r.createElement(wn,{widget:a,activeQuery:k,widgetId:t})))))};hs.propTypes={editing:m.a.bool,fields:m.a.any.isRequired,height:m.a.number,id:m.a.string.isRequired,onPositionsChange:m.a.func.isRequired,onSizeChange:m.a.func.isRequired,title:m.a.string.isRequired,widget:m.a.instanceOf(dn.a).isRequired,width:m.a.number},hs.defaultProps={height:1,width:1,editing:!1};var ms=hs,gs=Object(f.a)((function(e){var t=e.children,n=e.widget,o=e.globalOverride,i=e.currentQuery;if(Object(r.useContext)(k.a)===Mt.a.Type.Dashboard){var a=n.streams,c=n.timerange,l=n.query,s={streams:a,timerange:(o&&o.timerange?o.timerange:c)||{type:"relative",from:300},query:(o&&o.query?o.query:l)||Object(Jn.a)("")};return r.createElement(Al.a.Provider,{value:s},t)}if(i){var u={streams:Object(Jn.d)(i.filter).toJS(),timerange:i.timerange,query:i.query};return r.createElement(Al.a.Provider,{value:u},t)}return t}),{currentQuery:Dl.a,globalOverride:vn.b}),bs=n("nin+2C/+"),vs=function(){return Object(f.b)(Dl.a)};function ys(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var As=function(e){var t=e.children,n=Object(r.useContext)($t),o=n.timerange,i=n.streams,a=vs(),l=Object(bs.a)(i,o).data,s=c.List(l);return r.createElement(Ce.a.Provider,{value:{all:s,queryFields:c.Map(ys({},a.id,s))}},t)},ws=function(e){var t=e.editing,n=e.fields,i=e.onPositionsChange,a=void 0===i?function(){}:i,c=e.onWidgetSizeChange,l=void 0===c?function(){}:c,s=e.position,u=e.widgetId,d=e.widgetDimension,p=d.height,h=d.width,m=Object(f.b)(Ht.b,(function(e){return e.get(u)})),g=Object(r.useContext)(k.a),b=Object(f.b)(cn.c,(function(e){return null==e?void 0:e.getIn([sn.a.Widget,m.id],Object(ln.a)(m))})),v=g===Mt.a.Type.Dashboard?As:o.a.Fragment;return o.a.createElement(gs,{widget:m},o.a.createElement($t.Provider,{value:m},o.a.createElement(Xt.b.Provider,{value:{widget:m}},o.a.createElement(an,null,o.a.createElement(v,null,o.a.createElement(ms,{editing:t,fields:n,height:p,id:m.id,onPositionsChange:a,onSizeChange:l,position:s,title:b,widget:m,width:h}))))))};ws.propTypes={editing:m.a.bool.isRequired,fields:m.a.object.isRequired,onPositionsChange:m.a.func,onWidgetSizeChange:m.a.func,position:m.a.shape(un.a).isRequired,widgetDimension:m.a.object.isRequired},ws.defaultProps={onPositionsChange:function(){},onWidgetSizeChange:function(){}};var xs=ws;function Es(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cs(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=12?1/0:o)},Hs=function(e){var t=e.id,n=Ns(e);Lt.a.updateWidgetPosition(t,n)},Ls=function(e){var t=Object.fromEntries(e.map((function(e){return[e.id,Ns(e)]})));Lt.a.widgetPositions(t)},Fs=function(){var e,t,n=Object(r.useContext)(Ft.a),o=Object(r.useContext)(Nt.a).focusedWidget,i=Es(Object(r.useState)({}),2),a=i[0],c=i[1],l=Object(f.b)(Ht.b,(function(e){return e.map((function(e){return{id:e.id,type:e.type}})).toArray().reverse()})),s=Ts(),u=(e=Object(r.useContext)(Ce.a),t=Object(f.b)(Vt.a,(function(e){return e.activeQuery})),Object(r.useMemo)((function(){return e.queryFields.get(t,e.all)}),[e.all,e.queryFields,t])),d=Object(r.useMemo)((function(){return l.map((function(e){var t=e.id;return s[t]?r.createElement(Qt,{key:t,isFocused:(null==o?void 0:o.id)===t&&(null==o?void 0:o.focusing)},r.createElement(Is,{fields:u,positions:s,widgetId:t,setWidgetDimensions:c,widgetDimensions:a,focusedWidget:o,onPositionsChange:Hs})):null})).filter((function(e){return null!==e}))}),[u,o,s,a,l]);return r.createElement(zs,null,r.createElement(Rs,{locked:!n,positions:s,onPositionsChange:Ls},d))};Fs.displayName="WidgetGrid";var Vs=r.memo(Fs),_s=Object(s.default)(re.u).withConfig({displayName:"Query__StyledJumbotron",componentId:"sc-1p8j4ke-0"})((function(e){var t=e.theme;return Object(s.css)([".container-fluid &{border:1px solid ",";border-top-left-radius:0;border-top-right-radius:0;margin-bottom:0;}"],t.colors.gray[80])})),qs=function(){return r.createElement(_s,null,r.createElement("h2",null,r.createElement(Bt,null,"This dashboard has no widgets yet"),r.createElement(It.a,null,"There are no widgets defined to visualize the search result")),r.createElement("br",null),r.createElement("p",null,'Create a new widget by selecting a widget type in the left sidebar section "Create".',r.createElement("br",null)),r.createElement("p",null,"A few tips for creating searches and dashboards"),r.createElement("ul",null,r.createElement("li",null,r.createElement("p",null,"1. Start with a ",r.createElement("b",null,"question")," you want to answer. Define the problem you want to solve.")),r.createElement("li",null,r.createElement("p",null,"2. ",r.createElement("b",null,"Limit")," the data to only the data points you want to see.")),r.createElement("li",null,r.createElement("p",null,"3. ",r.createElement("b",null,"Visualize")," the data. Does it answer your question?")),r.createElement(Bt,null,r.createElement("li",null,r.createElement("p",null,"4. ",r.createElement("b",null,"Share")," the dashboard with your colleagues. Prepare it for ",r.createElement("b",null,"reuse")," by using parameters (contained in ",r.createElement("a",{href:"https://www.graylog.org/graylog-enterprise-edition",target:"_blank",rel:"noopener noreferrer"},"Graylog Enterprise"),").")))),r.createElement("p",null,"You can also have a look at the ",r.createElement(zt.a,{page:jt.a.PAGES.DASHBOARDS,text:"documentation"}),", to learn more about the widget creation."))},Gs=function(){return Object(f.b)(Ht.b,(function(e){return(null==e?void 0:e.size)>0}))?r.createElement(Vs,null):r.createElement(qs,null)},Ws=r.memo(Gs);Ws.displayName="Query";var Us=Ws,Ys=Object(en.b)("views.SearchLoadingState",(function(){return Wa.a.createActions(["loading","finished"])})),Js=Object(en.c)("views.SearchLoadingState",(function(){return Wa.a.createStore({listenables:[Ys],isLoading:!1,init:function(){gn.a.execute.listen(this.loading),gn.a.execute.completed.listen(this.finished)},getInitialState:function(){return this._state()},loading:function(){this.isLoading=!0,this._trigger()},finished:function(){this.isLoading=!1,this._trigger()},_state:function(){return{isLoading:this.isLoading}},_trigger:function(){this.trigger(this._state())}})})),Zs=n("zB3Bzp0J"),Ks=Object(s.default)(re.L).withConfig({displayName:"SearchResult__StyledRow",componentId:"nvyzff-0"})((function(e){var t=e.$hasFocusedWidget;return Object(s.css)(["height:",";overflow:",";"],t?"100%":"auto",t?"auto":"visible")})),Qs=Object(s.default)(re.j).withConfig({displayName:"SearchResult__StyledCol",componentId:"nvyzff-1"})(["height:100%;"]),Xs=function(){return Object(f.b)(Js).isLoading&&r.createElement(Zs.a,{text:"Updating search results..."})},$s=r.memo((function(e){var t=e.hasErrors,n=Object(r.useContext)(Ce.a),o=Object(r.useContext)(Nt.a).focusedWidget;if(!n)return r.createElement(kt.a,null);var i=!(null==o||!o.id),a=t?null:r.createElement(Us,null);return r.createElement(Ks,{$hasFocusedWidget:i},r.createElement(Qs,null,a,r.createElement(Xs,null)))}));$s.displayName="SearchResult";var eu=$s,tu=n("dCJg5+2Q"),nu=Object(wa.a)((function(e){var t=e.headerElements,n=void 0===t?[]:t;return r.createElement(r.Fragment,null,n.map((function(e,t){return r.createElement(e,{key:t})})))}),{headerElements:"views.elements.header"}),ru=Object(wa.a)((function(e){var t=e.queryBarElements,n=void 0===t?[]:t;return r.createElement(r.Fragment,null,n.map((function(e,t){return r.createElement(e,{key:t})})))}),{queryBarElements:"views.elements.queryBar"}),ou=n("+fdB5KSI"),iu=function(){return Object(f.b)(oe.b,(function(e){return e.dirty}))?o.a.createElement(ou.a,{question:"Are you sure you want to leave the page? Any unsaved changes will be lost."}):null},au=n("GaFHk8Qk"),cu=n.n(au),lu=n("9yY3JNeM"),su=n("kj+wLQOH"),uu=n("iM49FwvD");function fu(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function du(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){fu(i,r,o,a,c,"next",e)}function c(e){fu(i,r,o,a,c,"throw",e)}a(void 0)}))}}var pu=du(regeneratorRuntime.mark((function e(){var t,n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=oe.b.getInitialState(),n=t.view,r=Object(lu.a)(),e.next=4,Object(su.a)(n.type);case 4:return o=e.sent,e.abrupt("return",uu.a.create(r,o).then((function(){return r})));case 6:case"end":return e.stop()}}),e)}))),hu=Object(en.c)("views.QueryTitles",(function(){return Wa.a.createStore({init:function(){this.listenTo(oe.b,this.onViewStoreUpdate,this.onViewStoreUpdate)},getInitialState:function(){return this._state()},onViewStoreUpdate:function(e){var t,n=e.view,r=(null!==(t=null==n?void 0:n.state)&&void 0!==t?t:l.a.Map()).map((function(e){return e.titles.getIn(["tab","title"])})).filter((function(e){return void 0!==e})).toMap();Object(ne.isEqual)(this.state,r)||(this.state=r,this._trigger())},_state:function(){return this.state},_trigger:function(){this.trigger(this._state())}})})),mu={dashboardPage:void 0,setDashboardPage:function(){},unsetDashboardPage:function(){}},gu=r.createContext(mu),bu=Object(en.a)("contexts.DashboardPage",(function(){return gu}));function vu(e){return(vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yu(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n li{> a{color:",";border:none;:hover,:active,:focus{transition:color 150ms ease-in-out;background:transparent;color:",";}}}> li.active{z-index:1;display:flex;flex-direction:column;align-items:center;margin-bottom:-3px;> a{padding:9px 15px;border:1px solid ",";border-bottom:none;background-color:",";color:",";:hover,:active,:focus{border:1px solid ",";border-bottom:none;color:",";}}}> li.query-tabs-more,> li.query-tabs-more a{cursor:pointer;}}"],15,t.colors.variant.dark.default,t.colors.variant.dark.primary,t.colors.variant.lighter.default,t.colors.global.contentBackground,t.colors.variant.darkest.primary,t.colors.variant.lighter.default,t.colors.variant.darkest.primary)})),Vu=function(e){var t=e.maxWidth,n=e.queries,o=e.titles,i=e.selectedQueryId,a=e.onRemove,c=e.onSelect,l=e.queryTitleEditModal,s=Ru(Object(r.useState)(!1),2),u=s[0],f=s[1],d=Ru(Object(r.useState)(),2),p=d[0],h=d[1],m=Object(r.useMemo)((function(){var e=[],t=[],s=[];return n.keySeq().forEach((function(u,f){var d=o.get(u,"Page#".concat(f+1)),m=r.createElement(Tu,{active:u===i,id:u,onClose:function(){return a(u)},openEditModal:function(e){l&&l.current.open(e)},allowsClosing:n.size>1,title:d});e.push(p===u?null:r.createElement(re.D,{eventKey:u,key:u,"data-tab-id":u,onClick:function(){h(void 0),c(u)}},m)),t.push(p===u?null:r.createElement(re.y,{eventKey:u,key:u,"data-tab-id":u,onClick:function(){h(u),c(u)}},m)),s.push(p!==u?null:r.createElement(re.D,{eventKey:u,key:u,"data-tab-id":u,onClick:function(){return c(u)},className:Lu},m))})),{navItems:e,menuItems:t,lockedItems:s}}),[p,a,c,n,l,i,o]);return Object(r.useEffect)((function(){!function(e,t,n){var r=document.querySelector("#dashboard-tabs"),o=r.querySelectorAll(":scope > li:not(.dropdown):not(.query-tabs-new)"),i=r.querySelectorAll("li.dropdown .dropdown-menu li"),a=r.querySelector("li.query-tabs-more"),c=r.querySelector("li.query-tabs-new"),l=[],s=a.offsetWidth+c.offsetWidth+15,u=0;o.forEach((function(e){e.classList.remove(Hu),e.setAttribute("aria-hidden","false"),t&&e.querySelector("a").dataset.tabId===t&&(s+=e.offsetWidth)})),o.forEach((function(t,n){t.classList.contains(Lu)||(u+=t.offsetWidth,e>=u+s?l.splice(n,1):(t.classList.add(Hu),t.setAttribute("aria-hidden","true"),l.push(n)))})),i.forEach((function(e,t){if(e.classList.remove(Hu),e.setAttribute("aria-hidden","false"),l.includes(t)){if(e.classList.contains("active")){var r=e.querySelector("a").dataset.tabId;n(r)}}else e.classList.add(Hu),e.setAttribute("aria-hidden","true")})),l.length&&a.classList.contains(Hu)?a.classList.remove(Hu):l.length||a.classList.contains(Hu)||a.classList.add(Hu)}(t,p,h)}),[t,p,i]),r.createElement(Fu,{bsStyle:"tabs",activeKey:i,id:"dashboard-tabs"},m.navItems,r.createElement(ju.a,{eventKey:"more",title:r.createElement(b.z,{name:"ellipsis-h"}),className:"query-tabs-more",id:"query-tabs-more","aria-label":"More Dashboard Tabs",noCaret:!0,pullRight:!0,active:u,open:u,onToggle:function(e){return f(e)}},m.menuItems),m.lockedItems,r.createElement(re.D,{key:"new",eventKey:"new",title:"Create New Tab",onClick:function(){return c("new")},className:"query-tabs-new"},r.createElement(b.z,{name:"plus"})))};Vu.propTypes={maxWidth:m.a.number.isRequired,queries:cu.a.orderedSetOf(m.a.string).isRequired,titles:m.a.object.isRequired,selectedQueryId:m.a.string.isRequired,onRemove:m.a.func.isRequired,onSelect:m.a.func.isRequired,queryTitleEditModal:m.a.oneOfType([m.a.func,m.a.shape({current:m.a.object})]).isRequired};var _u=Vu,qu=function(e){var t=e.onRemove,n=e.onSelect,o=e.onTitleChange,i=e.queries,a=e.selectedQueryId,c=e.titles,l=Object(r.useRef)();return r.createElement(re.L,null,r.createElement(re.j,null,r.createElement(Dt.SizeMe,null,(function(e){var s=e.size;return s.width?r.createElement(_u,{maxWidth:s.width,queries:i,titles:c,selectedQueryId:a,onRemove:t,onSelect:n,queryTitleEditModal:l,onTitleChange:o}):r.createElement("div",null)})),r.createElement(ku,{onTitleChange:function(e){return o(a,e)},ref:l})))};qu.propTypes={onRemove:m.a.func.isRequired,onSelect:m.a.func.isRequired,onTitleChange:m.a.func.isRequired,queries:cu.a.orderedSetOf(m.a.string).isRequired,selectedQueryId:m.a.string.isRequired,titles:m.a.object.isRequired};var Gu=qu,Wu=function(e,t){return cn.b.set("tab","title",t)},Uu=function(e){var t=e.queries,n=e.queryTitles,o=e.viewMetadata.activeQuery,i=Object(r.useContext)(bu).setDashboardPage,a=Object(r.useCallback)((function(e){return"new"===e?pu().then((function(e){return i(e.id),e})):(i(e),oe.a.selectQuery(e))}),[i]),c=Object(r.useCallback)((function(e){return function(e,t,n,r){if(1===n.size)return Promise.resolve();if(e===t){var o=n.toIndexedSeq(),i=o.indexOf(e),a=Math.min(0,i-1);r(o.filter((function(t){return t!==e})).get(a))}return uu.a.remove(e).then((function(){return _t.a.remove(e)}))}(e,o,t,i)}),[o,t,i]);return r.createElement(Gu,{queries:t,selectedQueryId:o,titles:n,onSelect:a,onTitleChange:Wu,onRemove:c})};Uu.propTypes={queries:au.orderedSetOf(m.a.string).isRequired,queryTitles:au.mapOf(m.a.string,m.a.string).isRequired,viewMetadata:m.a.exact({id:m.a.string,title:m.a.string,description:m.a.string,summary:m.a.string,activeQuery:m.a.string.isRequired}).isRequired};var Yu=Object(f.a)(Uu,{queries:Pl,queryTitles:hu,viewMetadata:Vt.a}),Ju=n("8cmQSZtb"),Zu=n("I4/vmcFU"),Ku=n("muMsUXR5"),Qu=n("jg2NYLcB"),Xu=(n("6vz+Sea9"),"object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()});function $u(e){cancelAnimationFrame(e.id)}function ef(e,t){var n=Xu();var r={id:requestAnimationFrame((function o(){Xu()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var tf=null;function nf(e){if(void 0===e&&(e=!1),null===tf||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?tf="positive-descending":(t.scrollLeft=1,tf=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),tf}return tf}var rf=function(e,t){return e};function of(e){var t,n,o=e.getItemOffset,i=e.getEstimatedTotalSize,a=e.getItemSize,c=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,Object(Ku.a)(Object(Ku.a)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Object(Ku.a)(Object(Ku.a)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Object(Qu.a)((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=Object(Qu.a)((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,i=r.direction,c=r.itemSize,l=r.layout,s=n._getItemStyleCache(f&&c,f&&l,f&&i);if(s.hasOwnProperty(e))t=s[e];else{var u,d=o(n.props,e,n._instanceProps),p=a(n.props,e,n._instanceProps),h="horizontal"===i||"horizontal"===l;s[e]=((u={position:"absolute"})["rtl"===i?"right":"left"]=h?d:0,u.top=h?0:d,u.height=h?"100%":p,u.width=h?p:"100%",t=u)}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Object(Qu.a)((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(nf()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset0)for(var k=C;k<=O;k++)S.push(Object(r.createElement)(t,{data:f,key:p(k,f),index:k,isScrolling:v?A:void 0,style:this._getItemStyle(k)}));var j=i(this.props,this._instanceProps);return Object(r.createElement)(m||g||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:Object(Ju.default)({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},Object(r.createElement)(l||s||"div",{children:S,ref:c,style:{height:w?"100%":j,pointerEvents:A?"none":void 0,width:w?j:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,c=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,c,l)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var c=l(this.props,a,this._instanceProps),u=s(this.props,c,a,this._instanceProps),f=o&&"backward"!==i?1:Math.max(1,n),d=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-f),Math.max(0,Math.min(t-1,u+d)),c,u]},t}(r.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var af=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},cf=of({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r){var o=e.direction,i=e.height,a=e.itemCount,c=e.itemSize,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,f=Math.max(0,a*c-u),d=Math.min(f,t*c),p=Math.max(0,t*c-u+c);switch("smart"===n&&(n=r>=p-u&&r<=d+u?"auto":"center"),n){case"start":return d;case"end":return p;case"center":var h=Math.round(p+(d-p)/2);return hf+Math.floor(u/2)?f:h;case"auto":default:return r>=p&&r<=d?r:r2&&void 0!==arguments[2]?arguments[2]:"all"){case"all":return t.filter(n);case"allreserved":return t;case"current":default:return e.filter(n)}}(o,i,a).filter(c).sortBy((function(e){return e.name.toLocaleUpperCase()}));if(l.isEmpty())return r.createElement("i",null,"No fields to show. Try changing your filter term or select a different field set above.");var s=function(e){var n=e.index,i=e.style;return r.createElement(Af,{fieldType:l.get(n),selectedQuery:t,activeQueryFields:o,style:i})};return r.createElement(Dt.SizeMe,{monitorHeight:!0,refreshRate:100},(function(e){var t=e.size,n=t.height,o=t.width;return r.createElement(wf,null,r.createElement(cf,{height:n||50,width:o,itemCount:l.size,itemSize:20},s))}))},Cf=function(e){var t=e.onSelect,n=e.selected,o=e.group,i=e.text,a=e.title;return r.createElement("a",{onClick:function(){return t(o)},role:"button",style:{fontWeight:n?"bold":"normal"},tabIndex:0,title:a},i)};function Of(){return(Of=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n *:nth-child(1){grid-column:1;-ms-grid-column:1;grid-row:1;-ms-grid-row:1;}> *:nth-child(2){grid-column:1;-ms-grid-column:1;grid-row:2;-ms-grid-row:2;}"]),zf=s.default.form.withConfig({displayName:"FieldsOverview__FilterForm",componentId:"sc-1kb7ays-1"})(["display:flex;"]),Mf=s.default.div.withConfig({displayName:"FieldsOverview__FilterInputWrapper",componentId:"sc-1kb7ays-2"})(["margin-right:5px;"]),Bf=s.default.input.withConfig({displayName:"FieldsOverview__FilterInput",componentId:"sc-1kb7ays-3"})(["width:100%;"]),If=s.default.div.withConfig({displayName:"FieldsOverview__FieldGroups",componentId:"sc-1kb7ays-4"})(["margin-top:5px;margin-bottom:0;"]),Df=function(e){var t=e.allFields,n=e.activeQueryFields,o=e.viewMetadata,i=Sf(Object(r.useState)("current"),2),a=i[0],c=i[1],l=Sf(Object(r.useState)(void 0),2),s=l[0],u=l[1];return r.createElement(jf,null,r.createElement("div",null,r.createElement(zf,{onSubmit:function(e){return e.preventDefault()}},r.createElement(Mf,{className:"form-group has-feedback"},r.createElement(Bf,{id:"common-search-form-query-input",className:"query form-control",onChange:function(e){return u(e.target.value)},value:s||"",placeholder:"Filter fields",type:"text",autoComplete:"off",spellCheck:"false"})),r.createElement("div",{className:"form-group"},r.createElement(re.e,{type:"reset",className:"reset-button",onClick:function(){return u(void 0)}},"Reset"))),r.createElement(If,null,"List fields of"," ",r.createElement(Cf,{selected:"current"===a,group:"current",text:"current query",title:"This shows fields which occur in your current query.",onSelect:c}),", ",r.createElement(Cf,{selected:"all"===a,group:"all",text:"all",title:"This shows all fields, but no reserved (gl2_*) fields.",onSelect:c})," or ",r.createElement(Cf,{onSelect:c,selected:"allreserved"===a,group:"allreserved",text:"all including reserved",title:"This shows all fields, including reserved (gl2_*) fields."})," fields."),r.createElement("hr",null)),r.createElement(Ef,{viewMetadata:o,filter:s,activeQueryFields:n,allFields:t,currentGroup:a}))},Pf=function(e){return r.createElement(Ce.a.Consumer,null,(function(t){var n=e.viewMetadata.activeQuery,o=null==t?void 0:t.all,i=null==t?void 0:t.queryFields,a=null==i?void 0:i.get(n,o);return r.createElement(Df,Of({},e,{allFields:o,activeQueryFields:a}))}))};Pf.propTypes={viewMetadata:m.a.object.isRequired};var Tf=Object(f.a)(Pf,{viewMetadata:Vt.a});function Rf(e){return(Rf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Hf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n .btn-group{.btn:first-child{max-width:100%;}}"]),Jf=s.default.span.withConfig({displayName:"RefreshControls__ButtonLabel",componentId:"sc-4zxylo-1"})(["display:inline-block;text-overflow:ellipsis;overflow:hidden;max-width:calc(100% - 9px);vertical-align:inherit;"]),Zf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vf(e,t)}(a,e);var t,n,r,i=_f(a);function a(){var e;Lf(this,a);for(var t=arguments.length,n=new Array(t),r=0;r0&&t.bottom>0}},ed=function(e){var t=e.children,n=e.value,o=Object(r.useRef)();return Object(r.useEffect)((function(){$f.scrollToHint(o.current)}),[n]),r.createElement("span",{ref:o},t)};ed.propTypes={children:m.a.node.isRequired,value:m.a.any.isRequired};var td=ed,nd=n("dOmQZ9N/"),rd=Object(f.a)((function(e){var t=e.currentView,n=e.searches,r=e.show,i=e.onClose;return o.a.createElement(hc.a,{showModal:r,onHide:i},o.a.createElement(re.A.Header,{closeButton:!0},o.a.createElement(re.A.Title,null,"Debug information")),o.a.createElement(re.A.Body,null,o.a.createElement("textarea",{disabled:!0,style:{height:"80vh",width:"100%"},value:JSON.stringify({currentView:t,searches:n},null,2)})),o.a.createElement(re.A.Footer,null,o.a.createElement(re.e,{type:"button",onClick:function(){return i()},bsStyle:"primary"},"Close")))}),{currentView:oe.b,searches:gn.b}),od=function(e){return oe.a.update(e).then((function(e){var t=e.view;return sl.a.update(t)})).then((function(e){var t=e.title;return Vn.a.success('Saving view "'.concat(t,'" was successful!'),"Success!")})).catch((function(e){return Vn.a.error("Saving view failed: ".concat(e),"Error!")}))},id=function(e){return"view:edit:".concat(e)},ad=n("uJdA8AMc"),cd=n("L8npJDrf");function ld(e){return(ld="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sd(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Pd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Td(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Td(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Td(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,C=function(e,t){return Object(nd.c)(null==t?void 0:t.permissions,[id(e.id)])||e.type===Mt.a.Type.Dashboard&&Object(nd.c)(null==t?void 0:t.permissions,["dashboards:edit:".concat(e.id)])}(t,a),O=Object(j.a)({type:t.type}),S=q.a.gl2DevMode()&&o.a.createElement(o.a.Fragment,null,o.a.createElement(re.y,{divider:!0}),o.a.createElement(re.y,{onSelect:function(){return d(!0)}},o.a.createElement(b.z,{name:"code"})," Debug"));return o.a.createElement(re.f,null,o.a.createElement(re.e,{onClick:function(){return od(t)},disabled:n||E||!C,"data-testid":"dashboard-save-button"},o.a.createElement(b.z,{name:"save"})," Save"),o.a.createElement(re.e,{onClick:function(){return m(!0)},disabled:E,"data-testid":"dashboard-save-as-button"},o.a.createElement(b.z,{name:"copy"})," Save as"),o.a.createElement(b.ab,{entityType:"dashboard",entityId:t.id,onClick:function(){return s(!0)},bsStyle:"default",disabledInfo:n&&"Only saved dashboards can be shared."}),o.a.createElement(re.m,{title:o.a.createElement(b.z,{name:"ellipsis-h"}),id:"query-tab-actions-dropdown",pullRight:!0,noCaret:!0},o.a.createElement(re.y,{onSelect:function(){return y(!0)},disabled:n||!C},o.a.createElement(b.z,{name:"edit"})," Edit metadata"),o.a.createElement(re.y,{onSelect:function(){return x(!0)}},o.a.createElement(b.z,{name:"cloud-download-alt"})," Export"),S,o.a.createElement(Bt,null,o.a.createElement(re.y,{divider:!0}),o.a.createElement(Md,{view:t,disabled:n}))),f&&o.a.createElement(rd,{show:!0,onClose:function(){return d(!1)}}),h&&o.a.createElement(gd,{show:!0,view:t.toBuilder().newId().build(),title:"Save new dashboard",onClose:function(){return m(!1)},onSave:function(e){return function(e){return sl.a.create(e).then((function(){return oe.a.load(e)})).then((function(e){return Object(ll.b)(e.view.id)})).then((function(){return Vn.a.success('Saving view "'.concat(e.title,'" was successful!'),"Success!")})).catch((function(e){return Vn.a.error("Saving view failed: ".concat(e),"Error!")}))}(e)}}),v&&o.a.createElement(gd,{show:!0,view:t,title:"Editing dashboard",onClose:function(){return y(!1)},onSave:od}),l&&o.a.createElement(ad.a,{entityId:t.id,entityType:"dashboard",entityTitle:t.title,description:"Search for a User or Team to add as collaborator on this ".concat(O,"."),onClose:function(){return s(!1)}}),w&&o.a.createElement(Zc,{view:t,closeModal:function(){return x(!1)}}))};Rd.propTypes={metadata:m.a.shape({undeclared:cu.a.setOf(m.a.string)}).isRequired,view:m.a.object.isRequired,isNewView:m.a.bool.isRequired};var Nd=Object(f.a)(Rd,{metadata:Ct.b,view:oe.b},(function(e){var t=e.view;return function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&r.createElement(re.w,null,A.map((function(e){return r.createElement(i.Consumer,{key:e.id},(function(i){return r.createElement(re.x,{onClick:function(){return function(e,t,n){t&&n&&(n(t),e())}(t,e.id,i)},header:e.title,active:e.id===o},e.summary,r.createElement(mp,{onClick:function(t){return function(e,t,n,r){e.stopPropagation();var o=null==t?void 0:t.find((function(e){return e.id===r}));t&&window.confirm('You are about to delete saved search: "'.concat(o.title,'". Are you sure?'))&&n(o)}(t,A,n,e.id)},role:"button",title:"Delete search ".concat(e.title),tabIndex:0},r.createElement(b.z,{name:"trash-alt"})))}))})))))),r.createElement(re.A.Footer,null,r.createElement(re.e,{onClick:t},"Cancel")))};bp.propTypes={toggleModal:m.a.func.isRequired,deleteSavedSearch:m.a.func.isRequired};var vp=bp;function yp(e){return(yp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ap(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Np=Object(s.default)(re.L).withConfig({displayName:"SearchBar__TopRow",componentId:"ixyk32-0"})(["margin-bottom:10px;"]),Hp=Object(s.default)(re.j).withConfig({displayName:"SearchBar__FlexCol",componentId:"ixyk32-1"})(["display:flex;align-items:stretch;justify-content:space-between;"]),Lp=s.default.div.withConfig({displayName:"SearchBar__StreamWrap",componentId:"ixyk32-2"})(["flex:1;> div{margin-right:18px;}"]),Fp=s.default.div.withConfig({displayName:"SearchBar__SearchButtonAndQuery",componentId:"ixyk32-3"})(["flex:1;display:flex;"]),Vp=Object(s.default)(ea).withConfig({displayName:"SearchBar__StyledQueryInput",componentId:"ixyk32-4"})(["flex:1;"]),_p={disableSearch:!1,onSubmit:function(e,t){var n=e.timerange,r=e.streams,o=e.queryString,i=t.toBuilder().timerange(n).filter(Object(Jn.c)(r)).query(Object(Jn.a)(o)).build();return uu.a.update(i.id,i)}},qp=function(e){var t,n=e.availableStreams,o=e.config,i=e.currentQuery,a=e.disableSearch,l=void 0===a?_p.disableSearch:a,s=e.queryFilters,u=e.onSubmit,f=void 0===u?_p.onSubmit:u;if(!i||!o)return r.createElement(b.db,null);var d=i.id,p=i.query,h=i.timerange,m=p.query_string,g=Object(Jn.d)(s.get(d,c.Map())).toJS(),v=null!==(t=Un.a.duration(o.query_time_range_limit).asSeconds())&&void 0!==t?t:0,y=function(e){return f(e,i)};return r.createElement(Nt.a.Consumer,null,(function(e){var t=e.focusedWidget,o=(t=void 0===t?{editing:!1}:t).editing;return r.createElement(td,{value:p.query_string},r.createElement(b.u,null,r.createElement(ia,{initialValues:{timerange:h,streams:g,queryString:m},limitDuration:v,onSubmit:y},(function(e){var t=e.dirty,i=e.isSubmitting,a=e.isValid,c=e.handleSubmit,s=e.values,u=e.setFieldValue;return r.createElement(r.Fragment,null,r.createElement(Np,null,r.createElement(re.j,{md:5},r.createElement(qi,{disabled:l,onChange:function(e){return u("timerange",e)},value:null==s?void 0:s.timerange,hasErrorOnMount:!a})),r.createElement(re.j,{mdHidden:!0,lgHidden:!0},r.createElement(Bp,null)),r.createElement(Hp,{md:7},r.createElement(Lp,null,r.createElement(we.Field,{name:"streams"},(function(e){var t=e.field,o=t.name,i=t.value,a=t.onChange;return r.createElement(Wi,{value:i,streams:n,onChange:function(e){return a({target:{value:e,name:o}})}})}))),r.createElement(Kf,null))),r.createElement(Hd,null,r.createElement(Fp,null,r.createElement(Xi,{disabled:l||i||!a,dirty:t}),r.createElement(we.Field,{name:"queryString"},(function(e){var t=e.field,n=t.name,o=t.value,i=t.onChange;return r.createElement(Vp,{value:o,placeholder:'Type your search query here and press enter. E.g.: ("not found" AND http) OR http_response_code:[400 TO 404]',onChange:function(e){return i({target:{value:e,name:n}}),Promise.resolve(e)},onExecute:c})})),r.createElement("div",{className:"search-help"},r.createElement(zt.a,{page:jt.a.PAGES.SEARCH_QUERY_LANGUAGE,title:"Search query syntax documentation",text:r.createElement(b.z,{name:"lightbulb"})}))),!o&&r.createElement(Ld,null,r.createElement(jp,null))))}))))}))};qp.propTypes={disableSearch:m.a.bool,onSubmit:m.a.func},qp.defaultProps=_p;var Gp=Object(f.a)(qp,{currentQuery:Dl.a,availableStreams:Yn.b,queryFilters:Ip.a},(function(e){var t=e.availableStreams.streams;return Pp(Pp({},Rp(e,["availableStreams"])),{},{availableStreams:t.map((function(e){return{key:e.title,value:e.id}}))})})),Wp=function(e){var t=e.type,n=e.children;return r.createElement(k.a.Provider,{value:t},n)};Wp.propTypes={type:m.a.oneOf(["SEARCH","DASHBOARD"]).isRequired,children:m.a.node.isRequired};var Up=Object(f.a)(Wp,{view:oe.b},(function(e){var t=e.view;return{type:t&&t.view?t.view.type:void 0}})),Yp=n("JpBT5HKk"),Jp=n("jhGBPIpo"),Zp=function(e){var t=e.children,n=Object(Yp.a)(),o=(null!=n?n:{}).highlightMessage;return o?r.createElement(Jp.a.Provider,{value:o.toString()},t):t},Kp=function(e){var t=e.children,n=Object(f.b)(tu.b);return n?r.createElement(Ce.a.Provider,{value:n},t):t};Kp.propTypes={children:m.a.node.isRequired};var Qp=Kp,Xp=function(e){var t=e.children,n=Object(f.b)(ye.b);return n?r.createElement(be.a.Provider,{value:n},t):t};Xp.propTypes={children:m.a.node.isRequired};var $p,eh=Xp,th=n("9luOASNt"),nh=n("21p8kIWv"),rh=n("pSISWc05");function oh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ih(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ih(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ih(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:yd.a.push,n=oe.b.getInitialState()||{},r=n.view;if(r&&r.type===Mt.a.Type.Search){var o=r.search.queries;if(1!==o.size)throw new Error("Searches must only have a single query!");var i=o.first();if(i){var a=i.query.query_string,l=i.timerange,s=i.filter,u=void 0===s?c.Map():s,f=new vd.a(e).setSearch("q",a).removeQuery("from").removeQuery("to").removeQuery("keyword").removeQuery("relative"),d=zh(l).reduce((function(e,t){var n=Ch(t,2),r=n[0],o=n[1];return e.setSearch(r,String(o))}),f),p=Object(Jn.d)(u),h=p.isEmpty()?d.removeSearch("streams").toString():d.setSearch("streams",p.join(",")).toString();e!==h&&t(h)}}},Bh=function(e){var t,n,o;Object(r.useEffect)((function(){return Mh(e,yd.a.replace)}),[]),t=[Eh.a.update.completed,Eh.a.query.completed,Eh.a.timerange.completed],n=function(){return Mh(e)},o=[e],Object(r.useEffect)((function(){var e=t.map((function(e){return e.listen(n)}));return function(){return e.forEach((function(e){return e()}))}}),o)},Ih=n("SsCDmYpL"),Dh=Object(xh.a)((function(e){var t=e.location,n=t.pathname,o=t.search,i="".concat(n).concat(o);return function(e){Object(r.useEffect)((function(){var t=oe.b.getInitialState().view;Object(Ih.a)({view:t,query:e,retry:function(){return Promise.resolve()}})}),[e])}(t.query),Bh(i),r.createElement(r.Fragment,null)}));function Ph(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Th(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Th(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Th(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n *:nth-child(2){flex-grow:1;}"]):Object(s.css)(["flex:1;"])})),Nh=Object(s.default)(u.a).withConfig({displayName:"Search__SearchArea",componentId:"gi71pi-1"})((function(){var e=Object(r.useContext)(Nt.a).focusedWidget;return Object(s.css)(["",""],(null==e?void 0:e.id)&&Object(s.css)([".page-content-grid{display:flex;flex-direction:column;height:100%;width:100%;overflow:",";}"],null!=e&&e.id?"auto":"visible"))})),Hh=Object(f.a)(wt,{viewMetadata:Vt.a,searches:gn.b},(function(e){var t,n=e.viewMetadata,r=e.searches;return{viewMetadata:n,queryId:n.activeQuery,results:null==r||null===(t=r.result)||void 0===t?void 0:t.forId(n.activeQuery)}})),Lh=St(Gp),Fh=St(Zd),Vh=function(e){var t,n=e.children,o=Object(f.b)(oe.b).view,i=(null!==(t=Object(f.b)(xt.b))&&void 0!==t?t:{}).searchesClusterConfig,a=Object(r.useContext)(G.a);return r.createElement(Xt.b.Provider,{value:{view:o,analysisDisabledFields:null==i?void 0:i.analysis_disabled_fields,currentUser:a}},n)};Vh.displayName="ViewAdditionalContextProvider";var _h=function(){var e,t=Object(vc.a)("views.hooks.searchRefresh"),n=Ph(Object(r.useState)(!1),2),o=n[0],i=n[1],a=Object(r.useCallback)((function(){return function(e,t,n){var r=oe.b.getInitialState().view;return Ct.a.parseSearch(r.search).then((function(o){return function(e,t){return!e||0===e.length||e.every((function(e){return e(t)}))}(e,{view:r,searchMetadata:o,executionState:t})?(tu.a.refresh(),n(!1),gn.a.execute(t)):(n(!0),Promise.reject(o))}))}(t,Ot.b.getInitialState(),i)}),[t]);return gn.a.refresh,oe.a.search,e=a,Object(r.useEffect)((function(){var t=c.List();return e().finally((function(){t=t.push(gn.a.refresh.listen(e)).push(oe.a.search.completed.listen(e))})),function(){t.forEach((function(e){return e()}))}}),[e]),Object(r.useEffect)((function(){xt.a.refresh(),Yn.a.refresh()}),[]),r.createElement(r.Fragment,null,r.createElement(Dh,null),r.createElement(wh,null,r.createElement(Nt.a.Consumer,null,(function(e){var t=e.focusedWidget,n=(t=void 0===t?{focusing:!1,editing:!1}:t).focusing,i=t.editing;return r.createElement(Up,null,r.createElement(rs.a,null,r.createElement(Bt,null,r.createElement(iu,null))),r.createElement(Ft.a.Consumer,null,(function(e){return r.createElement(mh,null,r.createElement(Qp,null,r.createElement(Vh,null,r.createElement(eh,null,r.createElement(Rh,{id:"main-row",interactive:e},r.createElement(rs.a,null,r.createElement(Hh,null,r.createElement(Tf,null))),r.createElement(Nh,null,r.createElement(rs.a,null,r.createElement(nu,null),r.createElement(Bt,null,!i&&r.createElement(Fh,{onExecute:a})),r.createElement(It.a,null,r.createElement(Lh,{onExecute:a})),r.createElement(ru,null),r.createElement(Bt,null,!n&&r.createElement(Yu,null))),r.createElement(Zp,null,r.createElement(eu,{hasErrors:o}))))))))})))}))))},qh=n("TX7qjhwA"),Gh=n("R1bYEKAv"),Wh=function(){return r.createElement(b.j,{title:"No stream permissions."},r.createElement(u.a,null,r.createElement(Gh.a,{title:"No stream permissions."}),r.createElement(re.L,{className:"content"},r.createElement(re.j,{md:12},r.createElement(re.c,{bsStyle:"warning"},r.createElement(b.z,{name:"info-circle"})," We cannot start a search right now, because you are not allowed to access any stream. If you feel this is an error, please contact your administrator.")))))},Uh=function(e){var t=e.children,n=Object(r.useContext)(qh.a);return n&&n.length>0?t:r.createElement(Wh,null)};function Yh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n/g," "))?t=String(t).replace(/(&&|\|\||[:\\/+\-!(){}[\]^"~*?])/g,"\\$&"):(t=String(t).replace(/(["\\])/g,"\\$&"),t='"'.concat(t,'"')),t},i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AND";return"*"===Object(r.trim)(e)||""===Object(r.trim)(e)?t:"*"===Object(r.trim)(t)||""===Object(r.trim)(t)?e:"".concat(e," ").concat(n," ").concat(t)}},"/8dZfPfB":function(e,exports,t){var n,r;!function(){var o={version:"3.5.17"},i=[].slice,a=function(e){return i.call(e)},c=this.document;function l(e){return e&&(e.ownerDocument||e.document||e).documentElement}function s(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(c)try{a(c.documentElement.childNodes)[0].nodeType}catch(e){a=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),c)try{c.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var u=this.Element.prototype,f=u.setAttribute,d=u.setAttributeNS,p=this.CSSStyleDeclaration.prototype,h=p.setProperty;u.setAttribute=function(e,t){f.call(this,e,t+"")},u.setAttributeNS=function(e,t,n){d.call(this,e,t,n+"")},p.setProperty=function(e,t,n){h.call(this,e,t+"",n)}}function m(e,t){return et?1:e>=t?0:NaN}function g(e){return null===e?NaN:+e}function b(e){return!isNaN(e)}function v(e){return{left:function(t,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}o.ascending=m,o.descending=function(e,t){return te?1:t>=e?0:NaN},o.min=function(e,t){var n,r,o=-1,i=e.length;if(1===arguments.length){for(;++o=r){n=r;break}for(;++or&&(n=r)}else{for(;++o=r){n=r;break}for(;++or&&(n=r)}return n},o.max=function(e,t){var n,r,o=-1,i=e.length;if(1===arguments.length){for(;++o=r){n=r;break}for(;++on&&(n=r)}else{for(;++o=r){n=r;break}for(;++on&&(n=r)}return n},o.extent=function(e,t){var n,r,o,i=-1,a=e.length;if(1===arguments.length){for(;++i=r){n=o=r;break}for(;++ir&&(n=r),o=r){n=o=r;break}for(;++ir&&(n=r),o1)return a/(l-1)},o.deviation=function(){var e=o.variance.apply(this,arguments);return e?Math.sqrt(e):e};var y=v(m);function A(e){return e.length}o.bisectLeft=y.left,o.bisect=o.bisectRight=y.right,o.bisector=function(e){return v(1===e.length?function(t,n){return m(e(t),n)}:e)},o.shuffle=function(e,t,n){(i=arguments.length)<3&&(n=e.length,i<2&&(t=0));for(var r,o,i=n-t;i;)o=Math.random()*i--|0,r=e[i+t],e[i+t]=e[o+t],e[o+t]=r;return e},o.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},o.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],o=new Array(n<0?0:n);t=0;)for(t=(r=e[o]).length;--t>=0;)n[--a]=r[t];return n};var w=Math.abs;function x(e){for(var t=1;e*t%1;)t*=10;return t}function E(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function C(){this._=Object.create(null)}o.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n==1/0)throw new Error("infinite range");var r,o=[],i=x(w(n)),a=-1;if(e*=i,t*=i,(n*=i)<0)for(;(r=e+n*++a)>t;)o.push(r/i);else for(;(r=e+n*++a)=r.length)return t?t.call(n,i):e?i.sort(e):i;for(var l,s,u,f,d=-1,p=i.length,h=r[c++],m=new C;++d=r.length)return e;var n=[],o=i[t++];return e.forEach((function(e,r){n.push({key:e,values:c(r,t)})})),o?n.sort((function(e,t){return o(e.key,t.key)})):n}return n.map=function(e,t){return a(t,e,0)},n.entries=function(e){return c(a(o.map,e,0),0)},n.key=function(e){return r.push(e),n},n.sortKeys=function(e){return i[r.length-1]=e,n},n.sortValues=function(t){return e=t,n},n.rollup=function(e){return t=e,n},n},o.set=function(e){var t=new I;if(e)for(var n=0,r=e.length;n=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},o.event=null,o.requote=function(e){return e.replace(q,"\\$&")};var q=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,G={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function W(e){return G(e,Z),e}var U=function(e,t){return t.querySelector(e)},Y=function(e,t){return t.querySelectorAll(e)},J=function(e,t){var n=e.matches||e[T(e,"matchesSelector")];return(J=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(U=function(e,t){return Sizzle(e,t)[0]||null},Y=Sizzle,J=Sizzle.matchesSelector),o.selection=function(){return o.select(c.documentElement)};var Z=o.selection.prototype=[];function K(e){return"function"==typeof e?e:function(){return U(e,this)}}function Q(e){return"function"==typeof e?e:function(){return Y(e,this)}}Z.select=function(e){var t,n,r,o,i=[];e=K(e);for(var a=-1,c=this.length;++a=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),ee.hasOwnProperty(n)?{space:ee[n],local:e}:e}},Z.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return(e=o.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(te(t,e[t]));return this}return this.each(te(e,t))},Z.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=oe(e)).length,o=-1;if(t=n.classList){for(;++o=0;)(n=r[o])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},Z.sort=function(e){e=pe.apply(this,arguments);for(var t=-1,n=this.length;++t=t&&(t=o+1);!(a=c[t])&&++t0&&(e=e.slice(0,i));var l=ye.get(e);function s(){var t=this[r];t&&(this.removeEventListener(e,t,t.$),delete this[r])}return l&&(e=l,c=we),i?t?function(){var o=c(t,a(arguments));s.call(this),this.addEventListener(e,this[r]=o,o.$=n),o._=t}:s:t?N:function(){var t,n=new RegExp("^__on([^.]+)"+o.requote(e)+"$");for(var r in this)if(t=r.match(n)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}}o.selection.enter=me,o.selection.enter.prototype=ge,ge.append=Z.append,ge.empty=Z.empty,ge.node=Z.node,ge.call=Z.call,ge.size=Z.size,ge.select=function(e){for(var t,n,r,o,i,a=[],c=-1,l=this.length;++c0?1:e<0?-1:0}function Ne(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function He(e){return e>1?0:e<-1?Me:Math.acos(e)}function Le(e){return e>1?De:e<-1?-De:Math.asin(e)}function Fe(e){return((e=Math.exp(e))+1/e)/2}function Ve(e){return(e=Math.sin(e/2))*e}var _e=Math.SQRT2;o.interpolateZoom=function(e,t){var n,r,o=e[0],i=e[1],a=e[2],c=t[0],l=t[1],s=t[2],u=c-o,f=l-i,d=u*u+f*f;if(d0&&(e=e.transition().duration(m)),e.call(x.event)}function k(){l&&l.domain(a.range().map((function(e){return(e-d.x)/d.k})).map(a.invert)),f&&f.domain(u.range().map((function(e){return(e-d.y)/d.k})).map(u.invert))}function j(e){g++||e({type:"zoomstart"})}function z(e){k(),e({type:"zoom",scale:d.k,translate:[d.x,d.y]})}function M(e){--g||(e({type:"zoomend"}),t=null)}function B(){var e=this,t=w.of(e,arguments),n=0,r=o.select(s(e)).on(v,c).on(y,l),i=E(o.mouse(e)),a=Ce(e);function c(){n=1,O(o.mouse(e),i),z(t)}function l(){r.on(v,null).on(y,null),a(n),M(t)}Rc.call(e),j(t)}function I(){var e,t=this,n=w.of(t,arguments),r={},a=0,c=".zoom-"+o.event.changedTouches[0].identifier,l="touchmove"+c,s="touchend"+c,u=[],f=o.select(t),p=Ce(t);function h(){var n=o.touches(t);return e=d.k,n.forEach((function(e){e.identifier in r&&(r[e.identifier]=E(e))})),n}function m(){var e=o.event.target;o.select(e).on(l,g).on(s,v),u.push(e);for(var n=o.event.changedTouches,c=0,f=n.length;c1){b=p[0];var y=p[1],A=b[0]-y[0],w=b[1]-y[1];a=A*A+w*w}}function g(){var c,l,s,u,f=o.touches(t);Rc.call(t);for(var d=0,p=f.length;d360?e-=360:e<0&&(e+=360),e<60?r+(o-r)*e/60:e<180?o:e<240?r+(o-r)*(240-e)/60:r}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,r=2*(n=n<0?0:n>1?1:n)-(o=n<=.5?n*(1+t):n+t-n*t),new st(i(e+120),i(e),i(e-120))}function Ke(e,t,n){return this instanceof Ke?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof Ke?new Ke(e.h,e.c,e.l):it(e instanceof $e?e.l:(e=gt((e=o.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Ke(e,t,n)}Je.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ye(this.h,this.s,this.l/e)},Je.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ye(this.h,this.s,e*this.l)},Je.rgb=function(){return Ze(this.h,this.s,this.l)},o.hcl=Ke;var Qe=Ke.prototype=new Ue;function Xe(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new $e(n,Math.cos(e*=Pe)*t,Math.sin(e)*t)}function $e(e,t,n){return this instanceof $e?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof $e?new $e(e.l,e.a,e.b):e instanceof Ke?Xe(e.h,e.c,e.l):gt((e=st(e)).r,e.g,e.b):new $e(e,t,n)}Qe.brighter=function(e){return new Ke(this.h,this.c,Math.min(100,this.l+et*(arguments.length?e:1)))},Qe.darker=function(e){return new Ke(this.h,this.c,Math.max(0,this.l-et*(arguments.length?e:1)))},Qe.rgb=function(){return Xe(this.h,this.c,this.l).rgb()},o.lab=$e;var et=18,tt=.95047,nt=1.08883,rt=$e.prototype=new Ue;function ot(e,t,n){var r=(e+16)/116,o=r+t/500,i=r-n/200;return new st(lt(3.2404542*(o=at(o)*tt)-1.5371385*(r=1*at(r))-.4985314*(i=at(i)*nt)),lt(-.969266*o+1.8760108*r+.041556*i),lt(.0556434*o-.2040259*r+1.0572252*i))}function it(e,t,n){return e>0?new Ke(Math.atan2(n,t)*Te,Math.sqrt(t*t+n*n),e):new Ke(NaN,NaN,e)}function at(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function ct(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function lt(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function st(e,t,n){return this instanceof st?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof st?new st(e.r,e.g,e.b):ht(""+e,st,Ze):new st(e,t,n)}function ut(e){return new st(e>>16,e>>8&255,255&e)}function ft(e){return ut(e)+""}rt.brighter=function(e){return new $e(Math.min(100,this.l+et*(arguments.length?e:1)),this.a,this.b)},rt.darker=function(e){return new $e(Math.max(0,this.l-et*(arguments.length?e:1)),this.a,this.b)},rt.rgb=function(){return ot(this.l,this.a,this.b)},o.rgb=st;var dt=st.prototype=new Ue;function pt(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function ht(e,t,n){var r,o,i,a=0,c=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(o=r[2].split(","),r[1]){case"hsl":return n(parseFloat(o[0]),parseFloat(o[1])/100,parseFloat(o[2])/100);case"rgb":return t(vt(o[0]),vt(o[1]),vt(o[2]))}return(i=yt.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(a=(3840&i)>>4,a|=a>>4,c=240&i,c|=c>>4,l=15&i,l|=l<<4):7===e.length&&(a=(16711680&i)>>16,c=(65280&i)>>8,l=255&i)),t(a,c,l))}function mt(e,t,n){var r,o,i=Math.min(e/=255,t/=255,n/=255),a=Math.max(e,t,n),c=a-i,l=(a+i)/2;return c?(o=l<.5?c/(a+i):c/(2-a-i),r=e==a?(t-n)/c+(t0&&l<1?0:r),new Ye(r,o,l)}function gt(e,t,n){var r=ct((.4124564*(e=bt(e))+.3575761*(t=bt(t))+.1804375*(n=bt(n)))/tt),o=ct((.2126729*e+.7151522*t+.072175*n)/1);return $e(116*o-16,500*(r-o),200*(o-ct((.0193339*e+.119192*t+.9503041*n)/nt)))}function bt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}dt.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,o=30;return t||n||r?(t&&t=200&&t<300||304===t){try{e=n.call(i,s)}catch(e){return void c.error.call(i,e)}c.load.call(i,e)}else c.error.call(i,s)}return this.XDomainRequest&&!("withCredentials"in s)&&/^(http(s)?:)?\/\//.test(e)&&(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=f:s.onreadystatechange=function(){s.readyState>3&&f()},s.onprogress=function(e){var t=o.event;o.event=e;try{c.progress.call(i,s)}finally{o.event=t}},i.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?l[e]:(null==t?delete l[e]:l[e]=t+"",i)},i.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",i):t},i.responseType=function(e){return arguments.length?(u=e,i):u},i.response=function(e){return n=e,i},["get","post"].forEach((function(e){i[e]=function(){return i.send.apply(i,[e].concat(a(arguments)))}})),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),s.open(n,e,!0),null==t||"accept"in l||(l.accept=t+",*/*"),s.setRequestHeader)for(var a in l)s.setRequestHeader(a,l[a]);return null!=t&&s.overrideMimeType&&s.overrideMimeType(t),null!=u&&(s.responseType=u),null!=o&&i.on("error",o).on("load",(function(e){o(null,e)})),c.beforesend.call(i,s),s.send(null==r?null:r),i},i.abort=function(){return s.abort(),i},o.rebind(i,c,"on"),null==r?i:i.get(function(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}(r))}yt.forEach((function(e,t){yt.set(e,ut(t))})),o.functor=At,o.xhr=wt(D),o.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function o(e,n,r){arguments.length<3&&(r=n,n=null);var o=xt(e,t,null==n?i:a(n),r);return o.row=function(e){return arguments.length?o.response(null==(n=e)?i:a(e)):n},o}function i(e){return o.parse(e.responseText)}function a(e){return function(t){return o.parse(t.responseText,e)}}function c(t){return t.map(l).join(e)}function l(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return o.parse=function(e,t){var n;return o.parseRows(e,(function(e,r){if(n)return n(e,r-1);var o=new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+"]"})).join(",")+"}");n=t?function(e,n){return t(o(e),n)}:o}))},o.parseRows=function(e,t){var n,o,i={},a={},c=[],l=e.length,s=0,u=0;function f(){if(s>=l)return a;if(o)return o=!1,i;var t=s;if(34===e.charCodeAt(t)){for(var n=t;n++24?(isFinite(t)&&(clearTimeout(St),St=setTimeout(zt,t)),Ot=0):(Ot=1,kt(zt))}function Mt(){for(var e=Date.now(),t=Et;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Bt(){for(var e,t=Et,n=1/0;t;)t.c?(t.t8?function(e){return e/n}:function(e){return e*n},symbol:e}}));function Pt(e){var t=e.decimal,n=e.thousands,r=e.grouping,i=e.currency,a=r&&n?function(e,t){for(var o=e.length,i=[],a=0,c=r[0],l=0;o>0&&c>0&&(l+c+1>t&&(c=Math.max(1,t-l)),i.push(e.substring(o-=c,o+c)),!((l+=c+1)>t));)c=r[a=(a+1)%r.length];return i.reverse().join(n)}:D;return function(e){var n=Tt.exec(e),r=n[1]||" ",c=n[2]||">",l=n[3]||"-",s=n[4]||"",u=n[5],f=+n[6],d=n[7],p=n[8],h=n[9],m=1,g="",b="",v=!1,y=!0;switch(p&&(p=+p.substring(1)),(u||"0"===r&&"="===c)&&(u=r="0",c="="),h){case"n":d=!0,h="g";break;case"%":m=100,b="%",h="f";break;case"p":m=100,b="%",h="r";break;case"b":case"o":case"x":case"X":"#"===s&&(g="0"+h.toLowerCase());case"c":y=!1;case"d":v=!0,p=0;break;case"s":m=-1,h="r"}"$"===s&&(g=i[0],b=i[1]),"r"!=h||p||(h="g"),null!=p&&("g"==h?p=Math.max(1,Math.min(21,p)):"e"!=h&&"f"!=h||(p=Math.max(0,Math.min(20,p)))),h=Rt.get(h)||Nt;var A=u&&d;return function(e){var n=b;if(v&&e%1)return"";var i=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===l?"":l;if(m<0){var s=o.formatPrefix(e,p);e=s.scale(e),n=s.symbol+b}else e*=m;var w,x,E=(e=h(e,p)).lastIndexOf(".");if(E<0){var C=y?e.lastIndexOf("e"):-1;C<0?(w=e,x=""):(w=e.substring(0,C),x=e.substring(C))}else w=e.substring(0,E),x=t+e.substring(E+1);!u&&d&&(w=a(w,1/0));var O=g.length+w.length+x.length+(A?0:i.length),S=O"===c?S+i+e:"^"===c?S.substring(0,O>>=1)+i+e+S.substring(O):i+(A?e:S+e))+n}}}o.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=o.round(e,It(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Dt[8+n/3]};var Tt=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Rt=o.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=o.round(e,It(e,t))).toFixed(Math.max(0,Math.min(20,It(e*(1+1e-15),t))))}});function Nt(e){return e+""}var Ht=o.time={},Lt=Date;function Ft(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Ft.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Vt.setUTCDate.apply(this._,arguments)},setDay:function(){Vt.setUTCDay.apply(this._,arguments)},setFullYear:function(){Vt.setUTCFullYear.apply(this._,arguments)},setHours:function(){Vt.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Vt.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Vt.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Vt.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Vt.setUTCSeconds.apply(this._,arguments)},setTime:function(){Vt.setTime.apply(this._,arguments)}};var Vt=Date.prototype;function _t(e,t,n){function r(t){var n=e(t),r=i(n,1);return t-n1)for(;a=s)return-1;if(37===(o=t.charCodeAt(c++))){if(a=t.charAt(c++),!(i=x[a in Wt?t.charAt(c++):a])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}u.utc=function(e){var t=u(e);function n(e){try{var n=new(Lt=Ft);return n._=e,t(n)}finally{Lt=Date}}return n.parse=function(e){try{Lt=Ft;var n=t.parse(e);return n&&n._}finally{Lt=Date}},n.toString=t.toString,n},u.multi=u.utc.multi=pn;var d=o.map(),p=Zt(a),h=Kt(a),m=Zt(c),g=Kt(c),b=Zt(l),v=Kt(l),y=Zt(s),A=Kt(s);i.forEach((function(e,t){d.set(e.toLowerCase(),t)}));var w={a:function(e){return c[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:u(t),d:function(e,t){return Jt(e.getDate(),t,2)},e:function(e,t){return Jt(e.getDate(),t,2)},H:function(e,t){return Jt(e.getHours(),t,2)},I:function(e,t){return Jt(e.getHours()%12||12,t,2)},j:function(e,t){return Jt(1+Ht.dayOfYear(e),t,3)},L:function(e,t){return Jt(e.getMilliseconds(),t,3)},m:function(e,t){return Jt(e.getMonth()+1,t,2)},M:function(e,t){return Jt(e.getMinutes(),t,2)},p:function(e){return i[+(e.getHours()>=12)]},S:function(e,t){return Jt(e.getSeconds(),t,2)},U:function(e,t){return Jt(Ht.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Jt(Ht.mondayOfYear(e),t,2)},x:u(n),X:u(r),y:function(e,t){return Jt(e.getFullYear()%100,t,2)},Y:function(e,t){return Jt(e.getFullYear()%1e4,t,4)},Z:fn,"%":function(){return"%"}},x={a:function(e,t,n){m.lastIndex=0;var r=m.exec(t.slice(n));return r?(e.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){p.lastIndex=0;var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){y.lastIndex=0;var r=y.exec(t.slice(n));return r?(e.m=A.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){b.lastIndex=0;var r=b.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,t,n){return f(e,w.c.toString(),t,n)},d:on,e:on,H:cn,I:cn,j:an,L:un,m:rn,M:ln,p:function(e,t,n){var r=d.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)},S:sn,U:Xt,w:Qt,W:$t,x:function(e,t,n){return f(e,w.x.toString(),t,n)},X:function(e,t,n){return f(e,w.X.toString(),t,n)},y:tn,Y:en,Z:nn,"%":dn};return u}Ht.year=_t((function(e){return(e=Ht.day(e)).setMonth(0,1),e}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e){return e.getFullYear()})),Ht.years=Ht.year.range,Ht.years.utc=Ht.year.utc.range,Ht.day=_t((function(e){var t=new Lt(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e){return e.getDate()-1})),Ht.days=Ht.day.range,Ht.days.utc=Ht.day.utc.range,Ht.dayOfYear=function(e){var t=Ht.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(e,t){t=7-t;var n=Ht[e]=_t((function(e){return(e=Ht.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e}),(function(e,t){e.setDate(e.getDate()+7*Math.floor(t))}),(function(e){var n=Ht.year(e).getDay();return Math.floor((Ht.dayOfYear(e)+(n+t)%7)/7)-(n!==t)}));Ht[e+"s"]=n.range,Ht[e+"s"].utc=n.utc.range,Ht[e+"OfYear"]=function(e){var n=Ht.year(e).getDay();return Math.floor((Ht.dayOfYear(e)+(n+t)%7)/7)}})),Ht.week=Ht.sunday,Ht.weeks=Ht.sunday.range,Ht.weeks.utc=Ht.sunday.utc.range,Ht.weekOfYear=Ht.sundayOfYear;var Wt={"-":"",_:" ",0:"0"},Ut=/^\s*\d+/,Yt=/^%/;function Jt(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+o[0].length):-1}function nn(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function rn(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function on(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function an(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function cn(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ln(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function sn(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function un(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function fn(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=w(t)/60|0,o=w(t)%60;return n+Jt(r,"0",2)+Jt(o,"0",2)}function dn(e,t,n){Yt.lastIndex=0;var r=Yt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function pn(e){for(var t=e.length,n=-1;++n=0?1:-1,c=a*i,l=Math.cos(t),s=Math.sin(t),u=o*s,f=r*l+u*Math.cos(c),d=u*a*Math.sin(c);Tn.add(Math.atan2(d,f)),n=e,r=l,o=s}Rn.point=function(a,c){Rn.point=i,n=(e=a)*Pe,r=Math.cos(c=(t=c)*Pe/2+Me/4),o=Math.sin(c)},Rn.lineEnd=function(){i(e,t)}}function Hn(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function Ln(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Fn(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Vn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function _n(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function qn(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Gn(e){return[Math.atan2(e[1],e[0]),Le(e[2])]}function Wn(e,t){return w(e[0]-t[0])je?r=90:s<-je&&(t=-90),f[0]=e,f[1]=n}};function p(o,i){u.push(f=[e=o,n=o]),ir&&(r=i)}function h(o,a){var c=Hn([o*Pe,a*Pe]);if(l){var s=Fn(l,c),u=Fn([s[1],-s[0],0],s);qn(u),u=Gn(u);var f=o-i,d=f>0?1:-1,h=u[0]*Te*d,m=w(f)>180;if(m^(d*ir&&(r=g);else if(m^(d*i<(h=(h+360)%360-180)&&hr&&(r=a);m?oA(e,n)&&(n=o):A(o,n)>A(e,n)&&(e=o):n>=e?(on&&(n=o)):o>i?A(e,o)>A(e,n)&&(n=o):A(o,n)>A(e,n)&&(e=o)}else p(o,a);l=c,i=o}function m(){d.point=h}function g(){f[0]=e,f[1]=n,d.point=p,l=null}function b(e,t){if(l){var n=e-i;s+=w(n)>180?n+(n>0?360:-360):n}else a=e,c=t;Rn.point(e,t),h(e,t)}function v(){Rn.lineStart()}function y(){b(a,c),Rn.lineEnd(),w(s)>je&&(e=-(n=180)),f[0]=e,f[1]=n,l=null}function A(e,t){return(t-=e)<0?t+360:t}function x(e,t){return e[0]-t[0]}function E(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eA(m[0],m[1])&&(m[1]=p[1]),A(p[0],m[1])>A(m[0],m[1])&&(m[0]=p[0])):c.push(m=p);for(var l,s,p,h=-1/0,m=(a=0,c[s=c.length-1]);a<=s;m=p,++a)p=c[a],(l=A(m[1],p[0]))>h&&(h=l,e=p[0],n=m[1])}return u=f=null,e===1/0||t===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,t],[n,r]]}}(),o.geo.centroid=function(e){Cn=On=Sn=kn=jn=zn=Mn=Bn=In=Dn=Pn=0,o.geo.stream(e,Un);var t=In,n=Dn,r=Pn,i=t*t+n*n+r*r;return i=0;--c)o.point((f=u[c])[0],f[1]);else r(p.x,p.p.x,-1,o);p=p.p}u=(p=p.o).z,h=!h}while(!p.v);o.lineEnd()}}}function tr(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r=0?1:-1,E=x*w,C=E>Me,O=h*y;if(Tn.add(Math.atan2(O*x*Math.sin(E),m*A+O*Math.cos(E))),i+=C?w+x*Be:w,C^d>=n^b>=n){var S=Fn(Hn(f),Hn(e));qn(S);var k=Fn(o,S);qn(k);var j=(C^w>=0?-1:1)*Le(k[2]);(r>j||r===j&&(S[0]||S[1]))&&(a+=C^w>=0?1:-1)}if(!g++)break;d=b,h=y,m=A,f=e}}return(i<-je||i0){for(y||(a.polygonStart(),y=!0),a.lineStart();++i1&&2&t&&n.push(n.pop().concat(n.shift())),c.push(n.filter(or))}return u}}function or(e){return e.length>1}function ir(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:N,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function ar(e,t){return((e=e.x)[0]<0?e[1]-De-je:De-e[1])-((t=t.x)[0]<0?t[1]-De-je:De-t[1])}var cr=rr($n,(function(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var c=i>0?Me:-Me,l=w(i-n);w(l-Me)0?De:-De),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(c,r),e.point(i,r),t=0):o!==c&&l>=Me&&(w(n-o)je?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(n)-Math.sin(r)*(o=Math.cos(t))*Math.sin(e))/(o*i*a)):(t+r)/2}(n,r,i,a),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(c,r),t=0),e.point(n=i,r=a),o=c},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var o;if(null==e)o=n*De,r.point(-Me,o),r.point(0,o),r.point(Me,o),r.point(Me,0),r.point(Me,-o),r.point(0,-o),r.point(-Me,-o),r.point(-Me,0),r.point(-Me,o);else if(w(e[0]-t[0])>je){var i=e[0]0,r=w(t)>je;return rr(o,(function(e){var t,c,l,s,u;return{lineStart:function(){s=l=!1,u=1},point:function(f,d){var p,h=[f,d],m=o(f,d),g=n?m?0:a(f,d):m?a(f+(f<0?Me:-Me),d):0;if(!t&&(s=l=m)&&e.lineStart(),m!==l&&(p=i(t,h),(Wn(t,p)||Wn(h,p))&&(h[0]+=je,h[1]+=je,m=o(h[0],h[1]))),m!==l)u=0,m?(e.lineStart(),p=i(h,t),e.point(p[0],p[1])):(p=i(t,h),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(r&&t&&n^m){var b;g&c||!(b=i(h,t,!0))||(u=0,n?(e.lineStart(),e.point(b[0][0],b[0][1]),e.point(b[1][0],b[1][1]),e.lineEnd()):(e.point(b[1][0],b[1][1]),e.lineEnd(),e.lineStart(),e.point(b[0][0],b[0][1])))}!m||t&&Wn(t,h)||e.point(h[0],h[1]),t=h,l=m,c=g},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return u|(s&&l)<<1}}}),Wr(e,6*Pe),n?[0,-e]:[-Me,e-Me]);function o(e,n){return Math.cos(e)*Math.cos(n)>t}function i(e,n,r){var o=[1,0,0],i=Fn(Hn(e),Hn(n)),a=Ln(i,i),c=i[0],l=a-c*c;if(!l)return!r&&e;var s=t*a/l,u=-t*c/l,f=Fn(o,i),d=_n(o,s);Vn(d,_n(i,u));var p=f,h=Ln(d,p),m=Ln(p,p),g=h*h-m*(Ln(d,d)-1);if(!(g<0)){var b=Math.sqrt(g),v=_n(p,(-h-b)/m);if(Vn(v,d),v=Gn(v),!r)return v;var y,A=e[0],x=n[0],E=e[1],C=n[1];x0^v[1]<(w(v[0]-A)Me^(A<=v[0]&&v[0]<=x)){var k=_n(p,(-h+b)/m);return Vn(k,d),[v,Gn(k)]}}}function a(t,r){var o=n?e:Me-e,i=0;return t<-o?i|=1:t>o&&(i|=2),r<-o?i|=4:r>o&&(i|=8),i}}function sr(e,t,n,r){return function(o){var i,a=o.a,c=o.b,l=a.x,s=a.y,u=0,f=1,d=c.x-l,p=c.y-s;if(i=e-l,d||!(i>0)){if(i/=d,d<0){if(i0){if(i>f)return;i>u&&(u=i)}if(i=n-l,d||!(i<0)){if(i/=d,d<0){if(i>f)return;i>u&&(u=i)}else if(d>0){if(i0)){if(i/=p,p<0){if(i0){if(i>f)return;i>u&&(u=i)}if(i=r-s,p||!(i<0)){if(i/=p,p<0){if(i>f)return;i>u&&(u=i)}else if(p>0){if(i0&&(o.a={x:l+u*d,y:s+u*p}),f<1&&(o.b={x:l+f*d,y:s+f*p}),o}}}}}}var ur=1e9;function fr(e,t,n,r){return function(l){var s,u,f,d,p,h,m,g,b,v,y,A=l,w=ir(),x=sr(e,t,n,r),E={point:S,lineStart:function(){E.point=k,u&&u.push(f=[]);v=!0,b=!1,m=g=NaN},lineEnd:function(){s&&(k(d,p),h&&b&&w.rejoin(),s.push(w.buffer()));E.point=S,b&&l.lineEnd()},polygonStart:function(){l=w,s=[],u=[],y=!0},polygonEnd:function(){l=A,s=o.merge(s);var t=function(e){for(var t=0,n=u.length,r=e[1],o=0;or&&Ne(s,i,e)>0&&++t:i[1]<=r&&Ne(s,i,e)<0&&--t,s=i;return 0!==t}([e,r]),n=y&&t,i=s.length;(n||i)&&(l.polygonStart(),n&&(l.lineStart(),C(null,null,1,l),l.lineEnd()),i&&er(s,a,t,C,l),l.polygonEnd()),s=u=f=null}};function C(o,a,l,s){var u=0,f=0;if(null==o||(u=i(o,l))!==(f=i(a,l))||c(o,a)<0^l>0)do{s.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+l+4)%4)!==f);else s.point(a[0],a[1])}function O(o,i){return e<=o&&o<=n&&t<=i&&i<=r}function S(e,t){O(e,t)&&l.point(e,t)}function k(e,t){var n=O(e=Math.max(-1e9,Math.min(ur,e)),t=Math.max(-1e9,Math.min(ur,t)));if(u&&f.push([e,t]),v)d=e,p=t,h=n,v=!1,n&&(l.lineStart(),l.point(e,t));else if(n&&b)l.point(e,t);else{var r={a:{x:m,y:g},b:{x:e,y:t}};x(r)?(b||(l.lineStart(),l.point(r.a.x,r.a.y)),l.point(r.b.x,r.b.y),n||l.lineEnd(),y=!1):n&&(l.lineStart(),l.point(e,t),y=!1)}m=e,g=t,b=n}return E};function i(r,o){return w(r[0]-e)0?0:3:w(r[0]-n)0?2:1:w(r[1]-t)0?1:0:o>0?3:2}function a(e,t){return c(e.x,t.x)}function c(e,t){var n=i(e,1),r=i(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}}function dr(e){var t=0,n=Me/3,r=Nr(e),o=r(t,n);return o.parallels=function(e){return arguments.length?r(t=e[0]*Me/180,n=e[1]*Me/180):[t/Me*180,n/Me*180]},o}function pr(e,t){var n=Math.sin(e),r=(n+Math.sin(t))/2,o=1+n*(2*r-n),i=Math.sqrt(o)/r;function a(e,t){var n=Math.sqrt(o-2*r*Math.sin(t))/r;return[n*Math.sin(e*=r),i-n*Math.cos(e)]}return a.invert=function(e,t){var n=i-t;return[Math.atan2(e,n)/r,Le((o-(e*e+n*n)*r*r)/(2*r))]},a}o.geo.clipExtent=function(){var e,t,n,r,o,i,a={stream:function(e){return o&&(o.valid=!1),(o=i(e)).valid=!0,o},extent:function(c){return arguments.length?(i=fr(e=+c[0][0],t=+c[0][1],n=+c[1][0],r=+c[1][1]),o&&(o.valid=!1,o=null),a):[[e,t],[n,r]]}};return a.extent([[0,0],[960,500]])},(o.geo.conicEqualArea=function(){return dr(pr)}).raw=pr,o.geo.albers=function(){return o.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},o.geo.albersUsa=function(){var e,t,n,r,i=o.geo.albers(),a=o.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=o.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,n){e=[t,n]}};function s(o){var i=o[0],a=o[1];return e=null,t(i,a),e||(n(i,a),e)||r(i,a),e}return s.invert=function(e){var t=i.scale(),n=i.translate(),r=(e[0]-n[0])/t,o=(e[1]-n[1])/t;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?c:i).invert(e)},s.stream=function(e){var t=i.stream(e),n=a.stream(e),r=c.stream(e);return{point:function(e,o){t.point(e,o),n.point(e,o),r.point(e,o)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},s.precision=function(e){return arguments.length?(i.precision(e),a.precision(e),c.precision(e),s):i.precision()},s.scale=function(e){return arguments.length?(i.scale(e),a.scale(.35*e),c.scale(e),s.translate(i.translate())):i.scale()},s.translate=function(e){if(!arguments.length)return i.translate();var o=i.scale(),u=+e[0],f=+e[1];return t=i.translate(e).clipExtent([[u-.455*o,f-.238*o],[u+.455*o,f+.238*o]]).stream(l).point,n=a.translate([u-.307*o,f+.201*o]).clipExtent([[u-.425*o+je,f+.12*o+je],[u-.214*o-je,f+.234*o-je]]).stream(l).point,r=c.translate([u-.205*o,f+.212*o]).clipExtent([[u-.214*o+je,f+.166*o+je],[u-.115*o-je,f+.234*o-je]]).stream(l).point,s},s.scale(1070)};var hr,mr,gr,br,vr,yr,Ar={point:N,lineStart:N,lineEnd:N,polygonStart:function(){mr=0,Ar.lineStart=wr},polygonEnd:function(){Ar.lineStart=Ar.lineEnd=Ar.point=N,hr+=w(mr/2)}};function wr(){var e,t,n,r;function o(e,t){mr+=r*e-n*t,n=e,r=t}Ar.point=function(i,a){Ar.point=o,e=n=i,t=r=a},Ar.lineEnd=function(){o(e,t)}}var xr={point:function(e,t){evr&&(vr=e);t
yr&&(yr=t)},lineStart:N,lineEnd:N,polygonStart:N,polygonEnd:N};function Er(){var e=Cr(4.5),t=[],n={point:r,lineStart:function(){n.point=o},lineEnd:a,polygonStart:function(){n.lineEnd=c},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(t){return e=Cr(t),n},result:function(){if(t.length){var e=t.join("");return t=[],e}}};function r(n,r){t.push("M",n,",",r,e)}function o(e,r){t.push("M",e,",",r),n.point=i}function i(e,n){t.push("L",e,",",n)}function a(){n.point=r}function c(){t.push("Z")}return n}function Cr(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var Or,Sr={point:kr,lineStart:jr,lineEnd:zr,polygonStart:function(){Sr.lineStart=Mr},polygonEnd:function(){Sr.point=kr,Sr.lineStart=jr,Sr.lineEnd=zr}};function kr(e,t){Sn+=e,kn+=t,++jn}function jr(){var e,t;function n(n,r){var o=n-e,i=r-t,a=Math.sqrt(o*o+i*i);zn+=a*(e+n)/2,Mn+=a*(t+r)/2,Bn+=a,kr(e=n,t=r)}Sr.point=function(r,o){Sr.point=n,kr(e=r,t=o)}}function zr(){Sr.point=kr}function Mr(){var e,t,n,r;function o(e,t){var o=e-n,i=t-r,a=Math.sqrt(o*o+i*i);zn+=a*(n+e)/2,Mn+=a*(r+t)/2,Bn+=a,In+=(a=r*e-n*t)*(n+e),Dn+=a*(r+t),Pn+=3*a,kr(n=e,r=t)}Sr.point=function(i,a){Sr.point=o,kr(e=n=i,t=r=a)},Sr.lineEnd=function(){o(e,t)}}function Br(e){var t=4.5,n={point:r,lineStart:function(){n.point=o},lineEnd:a,polygonStart:function(){n.lineEnd=c},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(e){return t=e,n},result:N};function r(n,r){e.moveTo(n+t,r),e.arc(n,r,t,0,Be)}function o(t,r){e.moveTo(t,r),n.point=i}function i(t,n){e.lineTo(t,n)}function a(){n.point=r}function c(){e.closePath()}return n}function Ir(e){var t=.5,n=Math.cos(30*Pe),r=16;function o(e){return(r?a:i)(e)}function i(t){return Tr(t,(function(n,r){n=e(n,r),t.point(n[0],n[1])}))}function a(t){var n,o,i,a,l,s,u,f,d,p,h,m,g={point:b,lineStart:v,lineEnd:A,polygonStart:function(){t.polygonStart(),g.lineStart=w},polygonEnd:function(){t.polygonEnd(),g.lineStart=v}};function b(n,r){n=e(n,r),t.point(n[0],n[1])}function v(){f=NaN,g.point=y,t.lineStart()}function y(n,o){var i=Hn([n,o]),a=e(n,o);c(f,d,u,p,h,m,f=a[0],d=a[1],u=n,p=i[0],h=i[1],m=i[2],r,t),t.point(f,d)}function A(){g.point=b,t.lineEnd()}function w(){v(),g.point=x,g.lineEnd=E}function x(e,t){y(n=e,t),o=f,i=d,a=p,l=h,s=m,g.point=y}function E(){c(f,d,u,p,h,m,o,i,n,a,l,s,r,t),g.lineEnd=A,A()}return g}function c(r,o,i,a,l,s,u,f,d,p,h,m,g,b){var v=u-r,y=f-o,A=v*v+y*y;if(A>4*t&&g--){var x=a+p,E=l+h,C=s+m,O=Math.sqrt(x*x+E*E+C*C),S=Math.asin(C/=O),k=w(w(C)-1)t||w((v*B+y*I)/A-.5)>.3||a*p+l*h+s*m0&&16,o):Math.sqrt(t)},o}function Dr(e){var t=Ir((function(t,n){return e([t*Te,n*Te])}));return function(e){return Hr(t(e))}}function Pr(e){this.stream=e}function Tr(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function Rr(e){return Nr((function(){return e}))()}function Nr(e){var t,n,r,i,a,c,l=Ir((function(e,n){return[(e=t(e,n))[0]*s+i,a-e[1]*s]})),s=150,u=480,f=250,d=0,p=0,h=0,m=0,g=0,b=cr,v=D,y=null,A=null;function w(e){return[(e=r(e[0]*Pe,e[1]*Pe))[0]*s+i,a-e[1]*s]}function x(e){return(e=r.invert((e[0]-i)/s,(a-e[1])/s))&&[e[0]*Te,e[1]*Te]}function E(){r=Xn(n=Vr(h,m,g),t);var e=t(d,p);return i=u-e[0]*s,a=f+e[1]*s,C()}function C(){return c&&(c.valid=!1,c=null),w}return w.stream=function(e){return c&&(c.valid=!1),(c=Hr(b(n,l(v(e))))).valid=!0,c},w.clipAngle=function(e){return arguments.length?(b=null==e?(y=e,cr):lr((y=+e)*Pe),C()):y},w.clipExtent=function(e){return arguments.length?(A=e,v=e?fr(e[0][0],e[0][1],e[1][0],e[1][1]):D,C()):A},w.scale=function(e){return arguments.length?(s=+e,E()):s},w.translate=function(e){return arguments.length?(u=+e[0],f=+e[1],E()):[u,f]},w.center=function(e){return arguments.length?(d=e[0]%360*Pe,p=e[1]%360*Pe,E()):[d*Te,p*Te]},w.rotate=function(e){return arguments.length?(h=e[0]%360*Pe,m=e[1]%360*Pe,g=e.length>2?e[2]%360*Pe:0,E()):[h*Te,m*Te,g*Te]},o.rebind(w,l,"precision"),function(){return t=e.apply(this,arguments),w.invert=t.invert&&x,E()}}function Hr(e){return Tr(e,(function(t,n){e.point(t*Pe,n*Pe)}))}function Lr(e,t){return[e,t]}function Fr(e,t){return[e>Me?e-Be:e<-Me?e+Be:e,t]}function Vr(e,t,n){return e?t||n?Xn(qr(e),Gr(t,n)):qr(e):t||n?Gr(t,n):Fr}function _r(e){return function(t,n){return[(t+=e)>Me?t-Be:t<-Me?t+Be:t,n]}}function qr(e){var t=_r(e);return t.invert=_r(-e),t}function Gr(e,t){var n=Math.cos(e),r=Math.sin(e),o=Math.cos(t),i=Math.sin(t);function a(e,t){var a=Math.cos(t),c=Math.cos(e)*a,l=Math.sin(e)*a,s=Math.sin(t),u=s*n+c*r;return[Math.atan2(l*o-u*i,c*n-s*r),Le(u*o+l*i)]}return a.invert=function(e,t){var a=Math.cos(t),c=Math.cos(e)*a,l=Math.sin(e)*a,s=Math.sin(t),u=s*o-l*i;return[Math.atan2(l*o+s*i,c*n+u*r),Le(u*n-c*r)]},a}function Wr(e,t){var n=Math.cos(e),r=Math.sin(e);return function(o,i,a,c){var l=a*t;null!=o?(o=Ur(n,o),i=Ur(n,i),(a>0?oi)&&(o+=a*Be)):(o=e+a*Be,i=e-.5*l);for(var s,u=o;a>0?u>i:u2?e[2]*Pe:0),t.invert=function(t){return(t=e.invert(t[0]*Pe,t[1]*Pe))[0]*=Te,t[1]*=Te,t},t},Fr.invert=Lr,o.geo.circle=function(){var e,t,n=[0,0],r=6;function o(){var e="function"==typeof n?n.apply(this,arguments):n,r=Vr(-e[0]*Pe,-e[1]*Pe,0).invert,o=[];return t(null,null,1,{point:function(e,t){o.push(e=r(e,t)),e[0]*=Te,e[1]*=Te}}),{type:"Polygon",coordinates:[o]}}return o.origin=function(e){return arguments.length?(n=e,o):n},o.angle=function(n){return arguments.length?(t=Wr((e=+n)*Pe,r*Pe),o):e},o.precision=function(n){return arguments.length?(t=Wr(e*Pe,(r=+n)*Pe),o):r},o.angle(90)},o.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Pe,o=e[1]*Pe,i=t[1]*Pe,a=Math.sin(r),c=Math.cos(r),l=Math.sin(o),s=Math.cos(o),u=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((n=f*a)*n+(n=s*u-l*f*c)*n),l*u+s*f*c)},o.geo.graticule=function(){var e,t,n,r,i,a,c,l,s,u,f,d,p=10,h=p,m=90,g=360,b=2.5;function v(){return{type:"MultiLineString",coordinates:y()}}function y(){return o.range(Math.ceil(r/m)*m,n,m).map(f).concat(o.range(Math.ceil(l/g)*g,c,g).map(d)).concat(o.range(Math.ceil(t/p)*p,e,p).filter((function(e){return w(e%m)>je})).map(s)).concat(o.range(Math.ceil(a/h)*h,i,h).filter((function(e){return w(e%g)>je})).map(u))}return v.lines=function(){return y().map((function(e){return{type:"LineString",coordinates:e}}))},v.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(d(c).slice(1),f(n).reverse().slice(1),d(l).reverse().slice(1))]}},v.extent=function(e){return arguments.length?v.majorExtent(e).minorExtent(e):v.minorExtent()},v.majorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],l=+e[0][1],c=+e[1][1],r>n&&(e=r,r=n,n=e),l>c&&(e=l,l=c,c=e),v.precision(b)):[[r,l],[n,c]]},v.minorExtent=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],a=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),a>i&&(n=a,a=i,i=n),v.precision(b)):[[t,a],[e,i]]},v.step=function(e){return arguments.length?v.majorStep(e).minorStep(e):v.minorStep()},v.majorStep=function(e){return arguments.length?(m=+e[0],g=+e[1],v):[m,g]},v.minorStep=function(e){return arguments.length?(p=+e[0],h=+e[1],v):[p,h]},v.precision=function(o){return arguments.length?(b=+o,s=Yr(a,i,90),u=Jr(t,e,b),f=Yr(l,c,90),d=Jr(r,n,b),v):b},v.majorExtent([[-180,-90+je],[180,90-je]]).minorExtent([[-180,-80-je],[180,80+je]])},o.geo.greatArc=function(){var e,t,n=Zr,r=Kr;function i(){return{type:"LineString",coordinates:[e||n.apply(this,arguments),t||r.apply(this,arguments)]}}return i.distance=function(){return o.geo.distance(e||n.apply(this,arguments),t||r.apply(this,arguments))},i.source=function(t){return arguments.length?(n=t,e="function"==typeof t?null:t,i):n},i.target=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,i):r},i.precision=function(){return arguments.length?i:0},i},o.geo.interpolate=function(e,t){return n=e[0]*Pe,r=e[1]*Pe,o=t[0]*Pe,i=t[1]*Pe,a=Math.cos(r),c=Math.sin(r),l=Math.cos(i),s=Math.sin(i),u=a*Math.cos(n),f=a*Math.sin(n),d=l*Math.cos(o),p=l*Math.sin(o),h=2*Math.asin(Math.sqrt(Ve(i-r)+a*l*Ve(o-n))),m=1/Math.sin(h),(g=h?function(e){var t=Math.sin(e*=h)*m,n=Math.sin(h-e)*m,r=n*u+t*d,o=n*f+t*p,i=n*c+t*s;return[Math.atan2(o,r)*Te,Math.atan2(i,Math.sqrt(r*r+o*o))*Te]}:function(){return[n*Te,r*Te]}).distance=h,g;var n,r,o,i,a,c,l,s,u,f,d,p,h,m,g},o.geo.length=function(e){return Or=0,o.geo.stream(e,Qr),Or};var Qr={sphere:N,point:N,lineStart:function(){var e,t,n;function r(r,o){var i=Math.sin(o*=Pe),a=Math.cos(o),c=w((r*=Pe)-e),l=Math.cos(c);Or+=Math.atan2(Math.sqrt((c=a*Math.sin(c))*c+(c=n*i-t*a*l)*c),t*i+n*a*l),e=r,t=i,n=a}Qr.point=function(o,i){e=o*Pe,t=Math.sin(i*=Pe),n=Math.cos(i),Qr.point=r},Qr.lineEnd=function(){Qr.point=Qr.lineEnd=N}},lineEnd:N,polygonStart:N,polygonEnd:N};function Xr(e,t){function n(t,n){var r=Math.cos(t),o=Math.cos(n),i=e(r*o);return[i*o*Math.sin(t),i*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),o=t(r),i=Math.sin(o),a=Math.cos(o);return[Math.atan2(e*i,r*a),Math.asin(r&&n*i/r)]},n}var $r=Xr((function(e){return Math.sqrt(2/(1+e))}),(function(e){return 2*Math.asin(e/2)}));(o.geo.azimuthalEqualArea=function(){return Rr($r)}).raw=$r;var eo=Xr((function(e){var t=Math.acos(e);return t&&t/Math.sin(t)}),D);function to(e,t){var n=Math.cos(e),r=function(e){return Math.tan(Me/4+e/2)},o=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(r(t)/r(e)),i=n*Math.pow(r(e),o)/o;if(!o)return oo;function a(e,t){i>0?t<-De+je&&(t=-De+je):t>De-je&&(t=De-je);var n=i/Math.pow(r(t),o);return[n*Math.sin(o*e),i-n*Math.cos(o*e)]}return a.invert=function(e,t){var n=i-t,r=Re(o)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/o,2*Math.atan(Math.pow(i/r,1/o))-De]},a}function no(e,t){var n=Math.cos(e),r=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),o=n/r+e;if(w(r)1&&Ne(e[n[r-2]],e[n[r-1]],e[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}function po(e,t){return e[0]-t[0]||e[1]-t[1]}(o.geo.stereographic=function(){return Rr(co)}).raw=co,lo.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-De]},(o.geo.transverseMercator=function(){var e=io(lo),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90])}).raw=lo,o.geom={},o.geom.hull=function(e){var t=so,n=uo;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,o=At(t),i=At(n),a=e.length,c=[],l=[];for(r=0;r=0;--r)p.push(e[c[s[r]][2]]);for(r=+f;rje)c=c.L;else{if(!((o=i-Bo(c,a))>je)){r>-je?(t=c.P,n=c):o>-je?(t=c,n=c.N):t=n=c;break}if(!c.R){t=c;break}c=c.R}var l=So(e);if(Ao.insert(t,l),t||n){if(t===n)return Ro(t),n=So(t.site),Ao.insert(l,n),l.edge=n.edge=Lo(t.site,l.site),To(t),void To(n);if(n){Ro(t),Ro(n);var s=t.site,u=s.x,f=s.y,d=e.x-u,p=e.y-f,h=n.site,m=h.x-u,g=h.y-f,b=2*(d*g-p*m),v=d*d+p*p,y=m*m+g*g,A={x:(g*v-p*y)/b+u,y:(d*y-m*v)/b+f};Vo(n.edge,s,h,A),l.edge=Lo(s,e,null,A),n.edge=Lo(e,h,null,A),To(t),To(n)}else l.edge=Lo(t.site,l.site)}}function Mo(e,t){var n=e.site,r=n.x,o=n.y,i=o-t;if(!i)return r;var a=e.P;if(!a)return-1/0;var c=(n=a.site).x,l=n.y,s=l-t;if(!s)return c;var u=c-r,f=1/i-1/s,d=u/s;return f?(-d+Math.sqrt(d*d-2*f*(u*u/(-2*s)-l+s/2+o-i/2)))/f+r:(r+c)/2}function Bo(e,t){var n=e.N;if(n)return Mo(n,t);var r=e.site;return r.y===t?r.x:1/0}function Io(e){this.site=e,this.edges=[]}function Do(e,t){return t.angle-e.angle}function Po(){Go(this),this.x=this.y=this.arc=this.site=this.cy=null}function To(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,o=e.site,i=n.site;if(r!==i){var a=o.x,c=o.y,l=r.x-a,s=r.y-c,u=i.x-a,f=2*(l*(g=i.y-c)-s*u);if(!(f>=-ze)){var d=l*l+s*s,p=u*u+g*g,h=(g*d-s*p)/f,m=(l*p-u*d)/f,g=m+c,b=Co.pop()||new Po;b.arc=e,b.site=o,b.x=h+a,b.y=g+Math.sqrt(h*h+m*m),b.cy=g,e.circle=b;for(var v=null,y=xo._;y;)if(b.y=c)return;if(d>h){if(i){if(i.y>=s)return}else i={x:g,y:l};n={x:g,y:s}}else{if(i){if(i.y1)if(d>h){if(i){if(i.y>=s)return}else i={x:(l-o)/r,y:l};n={x:(s-o)/r,y:s}}else{if(i){if(i.y=c)return}else i={x:a,y:r*a+o};n={x:c,y:r*c+o}}else{if(i){if(i.xje||w(o-n)>je)&&(c.splice(a,0,new _o(Fo(i.site,u,w(r-f)je?{x:f,y:w(t-f)je?{x:w(n-h)je?{x:d,y:w(t-d)je?{x:w(n-p)=n&&s.x<=o&&s.y>=r&&s.y<=a?[[n,a],[o,a],[o,r],[n,r]]:[]).point=e[c]})),t}function c(e){return e.map((function(e,t){return{x:Math.round(r(e,t)/je)*je,y:Math.round(o(e,t)/je)*je,i:t}}))}return a.links=function(e){return Jo(c(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},a.triangles=function(e){var t=[];return Jo(c(e)).cells.forEach((function(n,r){for(var o,i,a,c,l=n.site,s=n.edges.sort(Do),u=-1,f=s.length,d=s[f-1].edge,p=d.l===l?d.r:d.l;++ui||f>a||d=w)<<1|t>=A,E=x+4;xi&&(o=t.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,l.push({i:a,x:ri(n,r)})),i=ai.lastIndex;return im&&(m=l.x),l.y>g&&(g=l.y),s.push(l.x),u.push(l.y);else for(f=0;fm&&(m=y),A>g&&(g=A),s.push(y),u.push(A)}var x=m-p,E=g-h;function C(e,t,n,r,o,i,a,c){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var l=e.x,s=e.y;if(null!=l)if(w(l-n)+w(s-r)<.01)O(e,t,n,r,o,i,a,c);else{var u=e.point;e.x=e.y=e.point=null,O(e,u,l,s,o,i,a,c),O(e,t,n,r,o,i,a,c)}else e.x=n,e.y=r,e.point=t}else O(e,t,n,r,o,i,a,c)}function O(e,t,n,r,o,i,a,c){var l=.5*(o+a),s=.5*(i+c),u=n>=l,f=r>=s,d=f<<1|u;e.leaf=!1,u?o=l:a=l,f?i=s:c=s,C(e=e.nodes[d]||(e.nodes[d]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,n,r,o,i,a,c)}x>E?g=h+x:m=p+E;var S={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){C(S,e,+b(e,++f),+v(e,f),p,h,m,g)},visit:function(e){$o(e,S,p,h,m,g)},find:function(e){return ei(S,e[0],e[1],p,h,m,g)}};if(f=-1,null==t){for(;++f=0&&!(n=o.interpolators[r](e,t)););return n}function li(e,t){var n,r=[],o=[],i=e.length,a=t.length,c=Math.min(e.length,t.length);for(n=0;n=1?1:e(t)}}function pi(e){return function(t){return 1-e(1-t)}}function hi(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function mi(e){return e*e}function gi(e){return e*e*e}function bi(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function vi(e){return 1-Math.cos(e*De)}function yi(e){return Math.pow(2,10*(e-1))}function Ai(e){return 1-Math.sqrt(1-e*e)}function wi(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function xi(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function Ei(e){var t,n,r,o=[e.a,e.b],i=[e.c,e.d],a=Oi(o),c=Ci(o,i),l=Oi(((t=i)[0]+=(r=-c)*(n=o)[0],t[1]+=r*n[1],t))||0;o[0]*i[1]=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=ui.get(n)||si,di((r=fi.get(r)||D)(n.apply(null,i.call(arguments,1))))},o.interpolateHcl=function(e,t){e=o.hcl(e),t=o.hcl(t);var n=e.h,r=e.c,i=e.l,a=t.h-n,c=t.c-r,l=t.l-i;isNaN(c)&&(c=0,r=isNaN(r)?t.c:r);isNaN(a)?(a=0,n=isNaN(n)?t.h:n):a>180?a-=360:a<-180&&(a+=360);return function(e){return Xe(n+a*e,r+c*e,i+l*e)+""}},o.interpolateHsl=function(e,t){e=o.hsl(e),t=o.hsl(t);var n=e.h,r=e.s,i=e.l,a=t.h-n,c=t.s-r,l=t.l-i;isNaN(c)&&(c=0,r=isNaN(r)?t.s:r);isNaN(a)?(a=0,n=isNaN(n)?t.h:n):a>180?a-=360:a<-180&&(a+=360);return function(e){return Ze(n+a*e,r+c*e,i+l*e)+""}},o.interpolateLab=function(e,t){e=o.lab(e),t=o.lab(t);var n=e.l,r=e.a,i=e.b,a=t.l-n,c=t.a-r,l=t.b-i;return function(e){return ot(n+a*e,r+c*e,i+l*e)+""}},o.interpolateRound=xi,o.transform=function(e){var t=c.createElementNS(o.ns.prefix.svg,"g");return(o.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new Ei(n?n.matrix:Si)})(e)},Ei.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Si={a:1,b:0,c:0,d:1,e:0,f:0};function ki(e){return e.length?e.pop()+",":""}function ji(e,t){var n=[],r=[];return e=o.transform(e),t=o.transform(t),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var o=n.push("translate(",null,",",null,")");r.push({i:o-4,x:ri(e[0],t[0])},{i:o-2,x:ri(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}(e.translate,t.translate,n,r),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(ki(n)+"rotate(",null,")")-2,x:ri(e,t)})):t&&n.push(ki(n)+"rotate("+t+")")}(e.rotate,t.rotate,n,r),function(e,t,n,r){e!==t?r.push({i:n.push(ki(n)+"skewX(",null,")")-2,x:ri(e,t)}):t&&n.push(ki(n)+"skewX("+t+")")}(e.skew,t.skew,n,r),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var o=n.push(ki(n)+"scale(",null,",",null,")");r.push({i:o-4,x:ri(e[0],t[0])},{i:o-2,x:ri(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(ki(n)+"scale("+t+")")}(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,o=-1,i=r.length;++o0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:"end",alpha:n=0})):t>0&&(l.start({type:"start",alpha:n=t}),e=jt(c.tick)),c):n},c.start=function(){var e,t,n,o=b.length,l=v.length,u=s[0],h=s[1];for(e=0;e=0;)n.push(o[r])}function qi(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(i=e.children)&&(o=i.length))for(var o,i,a=-1;++a=0;)a.push(u=s[l]),u.parent=i,u.depth=i.depth+1;n&&(i.value=0),i.children=s}else n&&(i.value=+n.call(r,i,i.depth)||0),delete i.children;return qi(o,(function(t){var r,o;e&&(r=t.children)&&r.sort(e),n&&(o=t.parent)&&(o.value+=t.value)})),c}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(_i(e,(function(e){e.children&&(e.value=0)})),qi(e,(function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},r},o.layout.partition=function(){var e=o.layout.hierarchy(),t=[1,1];function n(e,t,r,o){var i=e.children;if(e.x=t,e.y=e.depth*o,e.dx=r,e.dy=o,i&&(a=i.length)){var a,c,l,s=-1;for(r=e.value?r/e.value:0;++sc&&(c=r),a.push(r)}for(n=0;no&&(r=n,o=t);return r}function ra(e){return e.reduce(oa,0)}function oa(e,t){return e+t[1]}function ia(e,t){return aa(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function aa(e,t){for(var n=-1,r=+e[0],o=(e[1]-r)/t,i=[];++n<=t;)i[n]=o*n+r;return i}function ca(e){return[o.min(e),o.max(e)]}function la(e,t){return e.value-t.value}function sa(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function ua(e,t){e._pack_next=t,t._pack_prev=e}function fa(e,t){var n=t.x-e.x,r=t.y-e.y,o=e.r+t.r;return.999*o*o>n*n+r*r}function da(e){if((t=e.children)&&(l=t.length)){var t,n,r,o,i,a,c,l,s=1/0,u=-1/0,f=1/0,d=-1/0;if(t.forEach(pa),(n=t[0]).x=-n.r,n.y=0,y(n),l>1&&((r=t[1]).x=r.r,r.y=0,y(r),l>2))for(ga(n,r,o=t[2]),y(o),sa(n,o),n._pack_prev=o,sa(o,r),r=n._pack_next,i=3;i0)for(a=-1;++a=f[0]&&l<=f[1]&&((c=s[o.bisect(d,l,1,h)-1]).y+=m,c.push(i[a]));return s}return i.value=function(e){return arguments.length?(t=e,i):t},i.range=function(e){return arguments.length?(n=At(e),i):n},i.bins=function(e){return arguments.length?(r="number"==typeof e?function(t){return aa(t,e)}:At(e),i):r},i.frequency=function(t){return arguments.length?(e=!!t,i):e},i},o.layout.pack=function(){var e,t=o.layout.hierarchy().sort(la),n=0,r=[1,1];function i(o,i){var a=t.call(this,o,i),c=a[0],l=r[0],s=r[1],u=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(c.x=c.y=0,qi(c,(function(e){e.r=+u(e.value)})),qi(c,da),n){var f=n*(e?1:Math.max(2*c.r/l,2*c.r/s))/2;qi(c,(function(e){e.r+=f})),qi(c,da),qi(c,(function(e){e.r-=f}))}return ma(c,l/2,s/2,e?1:1/Math.max(2*c.r/l,2*c.r/s)),a}return i.size=function(e){return arguments.length?(r=e,i):r},i.radius=function(t){return arguments.length?(e=null==t||"function"==typeof t?t:+t,i):e},i.padding=function(e){return arguments.length?(n=+e,i):n},Vi(i,t)},o.layout.tree=function(){var e=o.layout.hierarchy().sort(null).value(null),t=ba,n=[1,1],r=null;function i(o,i){var s=e.call(this,o,i),u=s[0],f=function(e){var t,n={A:null,children:[e]},r=[n];for(;null!=(t=r.pop());)for(var o,i=t.children,a=0,c=i.length;ap.x&&(p=e),e.depth>h.depth&&(h=e)}));var m=t(d,p)/2-d.x,g=n[0]/(p.x+t(p,d)/2+m),b=n[1]/(h.depth||1);_i(u,(function(e){e.x=(e.x+m)*g,e.y=e.depth*b}))}return s}function a(e){var n=e.children,r=e.parent.children,o=e.i?r[e.i-1]:null;if(n.length){!function(e){var t,n=0,r=0,o=e.children,i=o.length;for(;--i>=0;)(t=o[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(e);var i=(n[0].z+n[n.length-1].z)/2;o?(e.z=o.z+t(e._,o._),e.m=e.z-i):e.z=i}else o&&(e.z=o.z+t(e._,o._));e.parent.A=function(e,n,r){if(n){for(var o,i=e,a=e,c=n,l=i.parent.children[0],s=i.m,u=a.m,f=c.m,d=l.m;c=ya(c),i=va(i),c&&i;)l=va(l),(a=ya(a)).a=e,(o=c.z+f-i.z-s+t(c._,i._))>0&&(Aa(wa(c,e,r),e,o),s+=o,u+=o),f+=c.m,s+=i.m,d+=l.m,u+=a.m;c&&!ya(a)&&(a.t=c,a.m+=f-u),i&&!va(l)&&(l.t=i,l.m+=s-d,r=e)}return r}(e,o,e.parent.A||r[0])}function c(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function l(e){e.x*=n[0],e.y=e.depth*n[1]}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(r=null==(n=e)?l:null,i):r?null:n},i.nodeSize=function(e){return arguments.length?(r=null==(n=e)?null:l,i):r?n:null},Vi(i,e)},o.layout.cluster=function(){var e=o.layout.hierarchy().sort(null).value(null),t=ba,n=[1,1],r=!1;function i(i,a){var c,l=e.call(this,i,a),s=l[0],u=0;qi(s,(function(e){var n=e.children;n&&n.length?(e.x=function(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}(n),e.y=function(e){return 1+o.max(e,(function(e){return e.y}))}(n)):(e.x=c?u+=t(e,c):0,e.y=0,c=e)}));var f=xa(s),d=Ea(s),p=f.x-t(f,d)/2,h=d.x+t(d,f)/2;return qi(s,r?function(e){e.x=(e.x-s.x)*n[0],e.y=(s.y-e.y)*n[1]}:function(e){e.x=(e.x-p)/(h-p)*n[0],e.y=(1-(s.y?e.y/s.y:1))*n[1]}),l}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(r=null==(n=e),i):r?null:n},i.nodeSize=function(e){return arguments.length?(r=null!=(n=e),i):r?n:null},Vi(i,e)},o.layout.treemap=function(){var e,t=o.layout.hierarchy(),n=Math.round,r=[1,1],i=null,a=Ca,c=!1,l="squarify",s=.5*(1+Math.sqrt(5));function u(e,t){for(var n,r,o=-1,i=e.length;++o0;)c.push(n=s[o-1]),c.area+=n.area,"squarify"!==l||(r=p(c,m))<=d?(s.pop(),d=r):(c.area-=c.pop().area,h(c,m,i,!1),m=Math.min(i.dx,i.dy),c.length=c.area=0,d=1/0);c.length&&(h(c,m,i,!0),c.length=c.area=0),t.forEach(f)}}function d(e){var t=e.children;if(t&&t.length){var n,r=a(e),o=t.slice(),i=[];for(u(o,r.dx*r.dy/e.value),i.area=0;n=o.pop();)i.push(n),i.area+=n.area,null!=n.z&&(h(i,n.z?r.dx:r.dy,r,!o.length),i.length=i.area=0);t.forEach(d)}}function p(e,t){for(var n,r=e.area,o=0,i=1/0,a=-1,c=e.length;++ao&&(o=n));return t*=t,(r*=r)?Math.max(t*o*s/r,r/(t*i*s)):1/0}function h(e,t,r,o){var i,a=-1,c=e.length,l=r.x,s=r.y,u=t?n(e.area/t):0;if(t==r.dx){for((o||u>r.dy)&&(u=r.dy);++ar.dx)&&(u=r.dx);++a1);return e+t*n*Math.sqrt(-2*Math.log(o)/o)}},logNormal:function(){var e=o.random.normal.apply(o,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=o.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n2?Ia:ja,l=r?Mi:zi;return o=a(e,t,l,n),i=a(t,e,l,ci),c}function c(e){return o(e)}return c.invert=function(e){return i(e)},c.domain=function(t){return arguments.length?(e=t.map(Number),a()):e},c.range=function(e){return arguments.length?(t=e,a()):t},c.rangeRound=function(e){return c.range(e).interpolate(xi)},c.clamp=function(e){return arguments.length?(r=e,a()):r},c.interpolate=function(e){return arguments.length?(n=e,a()):n},c.ticks=function(t){return Na(e,t)},c.tickFormat=function(t,n){return Ha(e,t,n)},c.nice=function(t){return Ta(e,t),a()},c.copy=function(){return Da(e,t,n,r)},a()}function Pa(e,t){return o.rebind(e,t,"range","rangeRound","interpolate","clamp")}function Ta(e,t){return za(e,Ma(Ra(e,t)[2])),za(e,Ma(Ra(e,t)[2])),e}function Ra(e,t){null==t&&(t=10);var n=Sa(e),r=n[1]-n[0],o=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*o;return i<=.15?o*=10:i<=.35?o*=5:i<=.75&&(o*=2),n[0]=Math.ceil(n[0]/o)*o,n[1]=Math.floor(n[1]/o)*o+.5*o,n[2]=o,n}function Na(e,t){return o.range.apply(o,Ra(e,t))}function Ha(e,t,n){var r=Ra(e,t);if(n){var i=Tt.exec(n);if(i.shift(),"s"===i[8]){var a=o.formatPrefix(Math.max(w(r[0]),w(r[1])));return i[7]||(i[7]="."+Fa(a.scale(r[2]))),i[8]="f",n=o.format(i.join("")),function(e){return n(a.scale(e))+a.symbol}}i[7]||(i[7]="."+function(e,t){var n=Fa(t[2]);return e in La?Math.abs(n-Fa(Math.max(w(t[0]),w(t[1]))))+ +("e"!==e):n-2*("%"===e)}(i[8],r)),n=i.join("")}else n=",."+Fa(r[2])+"f";return o.format(n)}o.scale.linear=function(){return Da([0,1],[0,1],ci,!1)};var La={s:1,g:1,p:1,r:1,e:1};function Fa(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function Va(e,t,n,r){function i(e){return(n?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function a(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function c(t){return e(i(t))}return c.invert=function(t){return a(e.invert(t))},c.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(i)),c):r},c.base=function(n){return arguments.length?(t=+n,e.domain(r.map(i)),c):t},c.nice=function(){var t=za(r.map(i),n?Math:qa);return e.domain(t),r=t.map(a),c},c.ticks=function(){var e=Sa(r),o=[],c=e[0],l=e[1],s=Math.floor(i(c)),u=Math.ceil(i(l)),f=t%1?2:t;if(isFinite(u-s)){if(n){for(;s0;d--)o.push(a(s)*d);for(s=0;o[s]l;u--);o=o.slice(s,u)}return o},c.tickFormat=function(e,n){if(!arguments.length)return _a;arguments.length<2?n=_a:"function"!=typeof n&&(n=o.format(n));var r=Math.max(1,t*e/c.ticks().length);return function(e){var o=e/a(Math.round(i(e)));return o*t0?n[r-1]:e[0],rf?0:1;if(s=Ie)return l(s,p)+(c?l(c,1-p):"")+"Z";var h,m,g,b,v,y,A,w,x,E,C,O,S=0,k=0,j=[];if((b=(+a.apply(this,arguments)||0)/2)&&(g=r===nc?Math.sqrt(c*c+s*s):+r.apply(this,arguments),p||(k*=-1),s&&(k=Le(g/s*Math.sin(b))),c&&(S=Le(g/c*Math.sin(b)))),s){v=s*Math.cos(u+k),y=s*Math.sin(u+k),A=s*Math.cos(f-k),w=s*Math.sin(f-k);var z=Math.abs(f-u-2*k)<=Me?0:1;if(k&&lc(v,y,A,w)===p^z){var M=(u+f)/2;v=s*Math.cos(M),y=s*Math.sin(M),A=w=null}}else v=y=0;if(c){x=c*Math.cos(f-S),E=c*Math.sin(f-S),C=c*Math.cos(u+S),O=c*Math.sin(u+S);var B=Math.abs(u-f+2*S)<=Me?0:1;if(S&&lc(x,E,C,O)===1-p^B){var I=(u+f)/2;x=c*Math.cos(I),E=c*Math.sin(I),C=O=null}}else x=E=0;if(d>je&&(h=Math.min(Math.abs(s-c)/2,+n.apply(this,arguments)))>.001){m=c0?0:1}function sc(e,t,n,r,o){var i=e[0]-t[0],a=e[1]-t[1],c=(o?r:-r)/Math.sqrt(i*i+a*a),l=c*a,s=-c*i,u=e[0]+l,f=e[1]+s,d=t[0]+l,p=t[1]+s,h=(u+d)/2,m=(f+p)/2,g=d-u,b=p-f,v=g*g+b*b,y=n-r,A=u*p-d*f,w=(b<0?-1:1)*Math.sqrt(Math.max(0,y*y*v-A*A)),x=(A*b-g*w)/v,E=(-A*g-b*w)/v,C=(A*b+g*w)/v,O=(-A*g+b*w)/v,S=x-h,k=E-m,j=C-h,z=O-m;return S*S+k*k>j*j+z*z&&(x=C,E=O),[[x-l,E-s],[x*n/y,E*n/y]]}function uc(e){var t=so,n=uo,r=$n,o=dc,i=o.key,a=.7;function c(i){var c,l=[],s=[],u=-1,f=i.length,d=At(t),p=At(n);function h(){l.push("M",o(e(s),a))}for(;++u1&&o.push("H",r[0]);return o.join("")},"step-before":hc,"step-after":mc,basis:vc,"basis-open":function(e){if(e.length<4)return dc(e);var t,n=[],r=-1,o=e.length,i=[0],a=[0];for(;++r<3;)t=e[r],i.push(t[0]),a.push(t[1]);n.push(yc(xc,i)+","+yc(xc,a)),--r;for(;++r9&&(o=3*t/Math.sqrt(o),a[c]=o*n,a[c+1]=o*r);c=-1;for(;++c<=l;)o=(e[Math.min(l,c+1)][0]-e[Math.max(0,c-1)][0])/(6*(1+a[c]*a[c])),i.push([o||0,a[c]*o||0]);return i}(e))}});function dc(e){return e.length>1?e.join("L"):e+"Z"}function pc(e){return e.join("L")+"Z"}function hc(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t1){c=t[1],i=e[l],l++,r+="C"+(o[0]+a[0])+","+(o[1]+a[1])+","+(i[0]-c[0])+","+(i[1]-c[1])+","+i[0]+","+i[1];for(var s=2;sMe)+",1 "+t}function l(e,t,n,r){return"Q 0,0 "+r}return i.radius=function(e){return arguments.length?(n=At(e),i):n},i.source=function(t){return arguments.length?(e=At(t),i):e},i.target=function(e){return arguments.length?(t=At(e),i):t},i.startAngle=function(e){return arguments.length?(r=At(e),i):r},i.endAngle=function(e){return arguments.length?(o=At(e),i):o},i},o.svg.diagonal=function(){var e=Zr,t=Kr,n=jc;function r(r,o){var i=e.call(this,r,o),a=t.call(this,r,o),c=(i.y+a.y)/2,l=[i,{x:i.x,y:c},{x:a.x,y:c},a];return"M"+(l=l.map(n))[0]+"C"+l[1]+" "+l[2]+" "+l[3]}return r.source=function(t){return arguments.length?(e=At(t),r):e},r.target=function(e){return arguments.length?(t=At(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},o.svg.diagonal.radial=function(){var e=o.svg.diagonal(),t=jc,n=e.projection;return e.projection=function(e){return arguments.length?n(zc(t=e)):t},e},o.svg.symbol=function(){var e=Bc,t=Mc;function n(n,r){return(Dc.get(e.call(this,n,r))||Ic)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=At(t),n):e},n.size=function(e){return arguments.length?(t=At(e),n):t},n};var Dc=o.map({circle:Ic,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Tc)),n=t*Tc;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Pc),n=t*Pc/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Pc),n=t*Pc/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});o.svg.symbolTypes=Dc.keys();var Pc=Math.sqrt(3),Tc=Math.tan(30*Pe);Z.transition=function(e){for(var t,n,r=Lc||++_c,o=Wc(e),i=[],a=Fc||{time:Date.now(),ease:bi,delay:0,duration:250},c=-1,l=this.length;++c0;)s[--d].call(e,a);if(i>=1)return f.event&&f.event.end.call(e,e.__data__,t),--u.count?delete u[r]:delete e[n],1}f||(i=o.time,a=jt((function(e){var t=f.delay;if(a.t=t+i,t<=e)return d(e-t);a.c=d}),0,i),f=u[r]={tween:new C,time:i,timer:a,delay:o.delay,duration:o.duration,ease:o.ease,index:t},o=null,++u.count)}Vc.call=Z.call,Vc.empty=Z.empty,Vc.node=Z.node,Vc.size=Z.size,o.transition=function(e,t){return e&&e.transition?Lc?e.transition(t):e:o.selection().transition(e)},o.transition.prototype=Vc,Vc.select=function(e){var t,n,r,o=this.id,i=this.namespace,a=[];e=K(e);for(var c=-1,l=this.length;++crect,.s>rect").attr("width",a[1]-a[0])}function m(e){e.select(".extent").attr("y",c[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",c[1]-c[0])}function g(){var f,g,b=this,v=o.select(o.event.target),y=n.of(b,arguments),A=o.select(b),w=v.datum(),x=!/^(n|s)$/.test(w)&&r,E=!/^(e|w)$/.test(w)&&i,C=v.classed("extent"),O=Ce(b),S=o.mouse(b),k=o.select(s(b)).on("keydown.brush",M).on("keyup.brush",B);if(o.event.changedTouches?k.on("touchmove.brush",I).on("touchend.brush",P):k.on("mousemove.brush",I).on("mouseup.brush",P),A.interrupt().selectAll("*").interrupt(),C)S[0]=a[0]-S[0],S[1]=c[0]-S[1];else if(w){var j=+/w$/.test(w),z=+/^n/.test(w);g=[a[1-j]-S[0],c[1-z]-S[1]],S[0]=a[j],S[1]=c[z]}else o.event.altKey&&(f=S.slice());function M(){32==o.event.keyCode&&(C||(f=null,S[0]-=a[1],S[1]-=c[1],C=2),F())}function B(){32==o.event.keyCode&&2==C&&(S[0]+=a[1],S[1]+=c[1],C=0,F())}function I(){var e=o.mouse(b),t=!1;g&&(e[0]+=g[0],e[1]+=g[1]),C||(o.event.altKey?(f||(f=[(a[0]+a[1])/2,(c[0]+c[1])/2]),S[0]=a[+(e[0]1?{floor:function(t){for(;c(t=e.floor(t));)t=ol(t-1);return t},ceil:function(t){for(;c(t=e.ceil(t));)t=ol(+t+1);return t}}:e))},r.ticks=function(e,t){var n=Sa(r.domain()),o=null==e?i(n,10):"number"==typeof e?i(n,e):!e.range&&[{range:e},t];return o&&(e=o[0],t=o[1]),e.range(n[0],ol(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return rl(e.copy(),t,n)},Pa(r,e)}function ol(e){return new Date(e)}$c.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?nl:tl,nl.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},nl.toString=tl.toString,Ht.second=_t((function(e){return new Lt(1e3*Math.floor(e/1e3))}),(function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))}),(function(e){return e.getSeconds()})),Ht.seconds=Ht.second.range,Ht.seconds.utc=Ht.second.utc.range,Ht.minute=_t((function(e){return new Lt(6e4*Math.floor(e/6e4))}),(function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))}),(function(e){return e.getMinutes()})),Ht.minutes=Ht.minute.range,Ht.minutes.utc=Ht.minute.utc.range,Ht.hour=_t((function(e){var t=e.getTimezoneOffset()/60;return new Lt(36e5*(Math.floor(e/36e5-t)+t))}),(function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))}),(function(e){return e.getHours()})),Ht.hours=Ht.hour.range,Ht.hours.utc=Ht.hour.utc.range,Ht.month=_t((function(e){return(e=Ht.day(e)).setDate(1),e}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e){return e.getMonth()})),Ht.months=Ht.month.range,Ht.months.utc=Ht.month.utc.range;var il=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],al=[[Ht.second,1],[Ht.second,5],[Ht.second,15],[Ht.second,30],[Ht.minute,1],[Ht.minute,5],[Ht.minute,15],[Ht.minute,30],[Ht.hour,1],[Ht.hour,3],[Ht.hour,6],[Ht.hour,12],[Ht.day,1],[Ht.day,2],[Ht.week,1],[Ht.month,1],[Ht.month,3],[Ht.year,1]],cl=$c.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",$n]]),ll={range:function(e,t,n){return o.range(Math.ceil(e/n)*n,+t,n).map(ol)},floor:D,ceil:D};al.year=Ht.year,Ht.scale=function(){return rl(o.scale.linear(),al,cl)};var sl=al.map((function(e){return[e[0].utc,e[1]]})),ul=el.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",$n]]);function fl(e){return JSON.parse(e.responseText)}function dl(e){var t=c.createRange();return t.selectNode(c.body),t.createContextualFragment(e.responseText)}sl.year=Ht.year.utc,Ht.scale.utc=function(){return rl(o.scale.linear(),sl,ul)},o.text=wt((function(e){return e.responseText})),o.json=function(e,t){return xt(e,"application/json",fl,t)},o.html=function(e,t){return xt(e,"text/html",dl,t)},o.xml=wt((function(e){return e.responseXML})),this.d3=o,void 0===(r="function"==typeof(n=o)?n.call(exports,t,exports,e):n)||(e.exports=r)}()},"/EaYMLoI":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.flattenNames=void 0;var n=a(t("X6P4SH4J")),r=a(t("Q29gfrW7")),o=a(t("JZOQkEtL")),i=a(t("Pd5CUaTj"));function a(e){return e&&e.__esModule?e:{default:e}}var c=exports.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=[];return(0,i.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return a.push(e)})):(0,o.default)(t)?(0,r.default)(t,(function(e,t){!0===e&&a.push(t),a.push(t+"-"+e)})):(0,n.default)(t)&&a.push(t)})),a};exports.default=c},"/GL+Bo9v":function(e,exports){e.exports=function(e,t,n,r,o,i,a){var c=1/(t-n),l=1/(r-o),s=1/(i-a);return e[0]=-2*c,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(t+n)*c,e[13]=(o+r)*l,e[14]=(a+i)*s,e[15]=1,e}},"/Llx+klj":function(e,exports,t){"use strict";var n=t("EW1eGdmB"),r=t("0Ft3SWJB").isArrayOrTypedArray;e.exports=function(e,t,o,i){function a(n){var r=e[n];return void 0!==r?r:(t._template||{})[n]}var c=a("tick0"),l=a("dtick"),s=a("tickvals"),u=o("tickmode",r(s)?"array":l?"linear":"auto");if("auto"===u)o("nticks");else if("linear"===u){var f=t.dtick=n.dtick(l,i);t.tick0=n.tick0(c,i,t.calendar,f)}else if("multicategory"!==i){void 0===o("tickvals")?t.tickmode="auto":o("ticktext")}}},"/RUHPmZd":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("wMSvutaJ"),o=n("CzyxmveH"),i=Object(o.css)((function(e){var t=e.theme;return Object(o.css)(["background-color:",";border:1px solid ",";margin-bottom:",";border-radius:4px;"],t.colors.global.contentBackground,t.colors.variant.lighter.default,t.spacings.xs)})),a=Object(o.default)(r.Row).withConfig({displayName:"Row",componentId:"bn2o06-0"})(["&.content{","}"],i);t.b=a},"/UP5lv0M":function(e,exports,t){"use strict";e.exports=function(e){e._responsiveChartHandler&&(window.removeEventListener("resize",e._responsiveChartHandler),delete e._responsiveChartHandler)}},"/XJIss0p":function(e,exports){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},"/XTO1Lxl":function(e,t,n){"use strict";t.a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII="},"/dGTpQRu":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("4KF7VOU5"),o=n.n(r),i=n("nHcjWeCO"),a=n("mRXwKqDg"),c=n("kcs233Mk"),l=Object(a.c)("views.ViewMetadata",(function(){return o.a.createStore({state:{},init:function(){this.listenTo(c.b,this.onViewStoreUpdate,this.onViewStoreUpdate)},getInitialState:function(){return this._state()},onViewStoreUpdate:function(e){var t,n=e.view,r=e.activeQuery;n?t={id:n.id,title:n.title,description:n.description,summary:n.summary,activeQuery:r}:t={};Object(i.isEqual)(this.state,t)||(this.state=t,this._trigger())},_state:function(){return this.state},_trigger:function(){this.trigger(this._state())}})}))},"/i9G99bu":function(e,t,n){"use strict";var r=n("ivGQtwpr"),o=n("mRXwKqDg"),i=r.createContext({hasErrors:!1,setHasErrors:function(){}});t.a=Object(o.a)("contexts.ValidationStateContext",(function(){return i}))},"/izbD/JW":function(e,t,n){"use strict";var r=n("CzyxmveH"),o=Object(r.createGlobalStyle)((function(e){var t=e.theme;return Object(r.css)(["#editor{height:256px;}html{font-size:"," !important;}body{background-color:",";color:",";font-family:",";height:100vh;}#app-root{height:100%;}ul{list-style-type:none;margin:0;}ul.no-padding{padding:0;}hr{border-top:1px solid ",";}h1,h2,h3,h4,h5,h6{font-weight:normal;padding:0;margin:0;color:",";}h1{font-size:",";}h2{font-size:",";}h3{font-size:",";}h4{font-size:",";}h5{font-size:",";}h6{font-size:",";font-weight:bold;}a{color:",";}a:hover,a:focus{color:",';}a:active,select:active,input[type="file"]:active,input[type="radio"]:active,input[type="checkbox"]:active,.btn:active{outline:none;outline-offset:0;}input.form-control,select.form-control,textarea,textarea.form-control{color:',";background-color:",";border-color:",";font-family:",";&::placeholder{color:",";}&:focus{border-color:",";box-shadow:",";}&[disabled],&[readonly],fieldset[disabled] &{background-color:",";color:",";}}legend small{color:",";margin-left:5px;}small{font-size:",";}.input-group-addon.input-group-separator{border-right-width:0;border-left-width:0;}.content{padding-top:15px;padding-bottom:15px;background-color:",";border:1px solid ",";margin-bottom:10px;p.description{margin-top:3px;color:",";}}.actions-lg .actions-container{margin-top:10px;padding-left:50px;}.content p.description-tooltips{margin-top:10px;}.notifications-none{margin-top:10px;}.no-bm{margin-bottom:0;}.has-bm{margin-bottom:10px;}.modal form{margin-bottom:0;}.alert-bar{margin:10px -20px 0;}.xtrc-converter-subfields{margin-left:20px;}.u-light{border-bottom:1px dotted ",";margin-bottom:5px;padding-bottom:5px;}.input-docs{margin-left:3px;}.input-docs:hover{text-decoration:none;}.timerange-selector select{margin-bottom:0;}.master-node{color:",";}.loglevel-metrics-row{margin-top:2px;margin-left:10px;}.loglevel-metrics dl{margin-bottom:5px;margin-top:5px;}.loglevel-metrics dt{float:left;margin-right:5px;}.subsystems{margin-top:10px;margin-left:10px;}.sources.overlay{background-color:",";height:200px;line-height:200px;opacity:0.2;position:absolute;text-align:center;font-size:50px;}.metrics-filter{margin-bottom:15px !important;}dl.metric-timer dd{margin-left:145px;}td.centered{text-align:center;}td.limited{max-width:180px;overflow:hidden;text-overflow:ellipsis;}.configuration-field-optional{margin-left:5px;font-size:",";}.index-description{margin-bottom:7px;}.index-description .index-info{margin-top:5px;}.index-description .index-info dl{margin-top:5px;}.index-details{margin-left:5px;}.index-label{vertical-align:text-top;}.index-label .label{margin-right:5px;}.index-more-actions{font-size:90%;margin-left:5px;}.shard-meters{margin-top:10px;}.shard-meters dl{margin-bottom:0;margin-top:0;}.shard-meters dl dt{float:left;}.shard-meters dl dd{margin-left:65px;}.shards{margin:0;padding:0;margin-top:5px;}dl.system-journal{margin-top:5px;margin-bottom:0;}.system-journal dt{float:left;}.system-journal dd{margin-left:120px;}dl.system-dl{margin:0;}.system-dl dt{float:left;clear:left;}.system-dl dd{margin-left:180px;}.search-help{margin:0 5px;line-height:34px;}.no-widgets{margin-top:15px;}table .dc-table-column{word-break:break-all;}.sources th{background-color:",";color:",";font-weight:normal;}.sources .dc-table-column._3{padding-right:0;text-align:right;}.parse-error{background-color:",";color:",";padding-left:2px;padding-right:2px;}.add-alert-type{margin-bottom:0;}.alerts{margin-top:15px;}.alerts tbody{border:none;}.alerts th{background-color:",";color:",";font-weight:normal;}.alerts th a{display:block;}.alerts th a:focus{color:",";}.result-highlight-colored{background-color:",";}.annotation .content{margin-bottom:10px;cursor:auto !important;}.scrollable-table{width:100%;overflow:auto;}.well.configuration-well{margin-top:5px;margin-bottom:0;padding:9px;font-family:",';word-wrap:break-word;}.well.configuration-well > ul{padding:0;margin:0;}.well.react-configuration-well{white-space:pre-line;}.well.configuration-well .configuration-section{margin-bottom:10px;}.well.configuration-well li:not(:last-child){margin-bottom:5px;}.well.configuration-well .key{display:inline;}.alert-callback .well.configuration-well .key{display:inline-block;min-width:140px;vertical-align:top;}.well.configuration-well .value{display:inline;}.alert-callback .well.configuration-well .value{display:inline-block;}.form-inline label{margin-right:10px;}.form-horizontal .help-block.help-standalone{line-height:20px;margin-top:7px;}.form-horizontal.pull-left label.control-label{width:auto;}.form-horizontal.pull-left div.controls{display:inline-block;float:right;margin-left:20px;}form.extractor-form .control-group label{display:inline-block;}.configuration-bundles input[type="file"]{line-height:inherit !important;}table th.actions,table td.actions{width:110px;}.btn-text{font-family:',";font-size:",";padding:0;vertical-align:baseline;}.message-loader-form input{margin-right:5px;}nav.navbar-fixed-top ul.dropdown-menu li a{font-size:",";}nav.navbar-fixed-top ul.dropdown-menu{padding-top:10px;padding-bottom:10px;}nav.navbar-fixed-top ul.dropdown-menu li{padding:2px 2px 2px 0;}nav.navbar-fixed-top ul.dropdown-menu li.divider{padding:0;}table.indexer-failures{margin-top:10px;}div.row-sm{margin-bottom:5px;}.table-sm{margin-bottom:0;}.graylog-input-metrics{margin-top:5px;}.filter .form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle;}div.alert-callback hr{margin-top:10px;margin-bottom:10px;}div.alert-callbacks{margin-top:10px;}.alarm-callbacks{padding:0;}.alarm-callbacks li:not(:last-child){margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid ",";}.threaddump{font-size:",";}h2.extractor-title{margin-bottom:2px;}.stream-loader{margin-top:5px;}.form-inline .typeahead-wrapper{display:inline-block;vertical-align:middle;width:auto;}.typeahead-wrapper .tt-menu{background-color:",";box-shadow:0 3px 3px ",";color:",";.tt-suggestion:hover,.tt-suggestion.tt-cursor{color:",";background-color:",";background-image:none;}}.form-group-inline{display:inline-block;margin:0;}ul.tag-list,ul.pill-list{display:inline-block;list-style:none;padding:0;position:relative;}ul.pill-list{margin-left:10px;vertical-align:middle;}ul.tag-list > li,ul.pill-list > li{display:inline-block;vertical-align:middle;}.tags-input ul.tag-list > li{padding-top:10px;padding-bottom:5px;}.tag,.pill{font-size:",";margin-right:5px;}.pill{color:",";background-color:",";padding:6px 12px;}.tag-remove,.pill-remove{color:",';cursor:pointer;margin-left:5px;}.tag-remove::before,.pill-remove::before{content:"×";}.save-button-margin{margin-right:5px;}.form-control.message-id-input{width:300px;}.ace_editor.ace_autocomplete.ace-queryinput{width:600px !important;margin-top:6px;}code{color:',";background-color:",";}pre{color:",";background-color:",";border-color:",';}input[type="range"],input[type="range"]:focus{box-shadow:none;height:auto;}'],t.fonts.size.root,t.colors.global.background,t.colors.global.textDefault,t.fonts.family.body,t.colors.global.background,t.colors.global.textDefault,t.fonts.size.h1,t.fonts.size.h2,t.fonts.size.h3,t.fonts.size.h4,t.fonts.size.h5,t.fonts.size.h6,t.colors.global.link,t.colors.global.linkHover,t.colors.input.color,t.colors.input.background,t.colors.input.border,t.fonts.family.body,t.colors.input.placeholder,t.colors.input.borderFocus,t.colors.input.boxShadow,t.colors.input.backgroundDisabled,t.colors.input.colorDisabled,t.colors.gray[60],t.fonts.size.small,t.colors.global.contentBackground,t.colors.gray[80],t.colors.gray[50],t.colors.gray[70],t.colors.variant.dark.warning,t.colors.gray[60],t.fonts.size.small,t.colors.gray[20],t.utils.readableColor(t.colors.gray[20]),t.colors.variant.light.danger,t.utils.contrastingColor(t.colors.variant.light.danger),t.colors.gray[10],t.colors.global.textAlt,t.colors.global.textAlt,t.colors.variant.warning,t.fonts.family.monospace,t.fonts.family.body,t.fonts.size.small,t.fonts.size.body,t.colors.gray[90],t.fonts.size.small,t.colors.global.contentBackground,t.colors.global.navigationBoxShadow,t.colors.global.textDefault,t.colors.variant.darkest.info,t.colors.variant.lighter.info,t.fonts.size.body,t.colors.global.textDefault,t.colors.gray[90],t.colors.global.textDefault,t.colors.variant.darker.danger,t.colors.variant.lightest.danger,t.colors.variant.darker.default,t.colors.variant.lightest.default,t.colors.variant.lighter.default)}));t.a=o},"/lavANvI":function(e,t,n){"use strict";var r=n("AztyBNMT"),o=n("oCSEoDew"),i=n.n(o),a=n("Ejb6zZ6L"),c=n("LHgfPCv1");function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s={STARTPAGE:"/",NOTFOUND:"/notfound",SEARCH:"/search",STREAMS:"/streams",LEGACY_ALERTS:{LIST:"/legacy/alerts",CONDITIONS:"/legacy/alerts/conditions",NEW_CONDITION:"/legacy/alerts/conditions/new",NOTIFICATIONS:"/legacy/alerts/notifications",NEW_NOTIFICATION:"/legacy/alerts/notifications/new"},ALERTS:{LIST:"/alerts",DEFINITIONS:{LIST:"/alerts/definitions",CREATE:"/alerts/definitions/new",edit:function(e){return"/alerts/definitions/".concat(e,"/edit")},show:function(e){return"/alerts/definitions/".concat(e)}},NOTIFICATIONS:{LIST:"/alerts/notifications",CREATE:"/alerts/notifications/new",edit:function(e){return"/alerts/notifications/".concat(e,"/edit")},show:function(e){return"/alerts/notifications/".concat(e)}}},SOURCES:"/sources",DASHBOARDS:"/dashboards",GETTING_STARTED:"/gettingstarted",SYSTEM:{CONFIGURATIONS:"/system/configurations",CONTENTPACKS:{LIST:"/system/contentpacks",EXPORT:"/system/contentpacks/export",CREATE:"/system/contentpacks/create",edit:function(e,t){return"/system/contentpacks/".concat(e,"/").concat(t,"/edit")},show:function(e){return"/system/contentpacks/".concat(e)}},GROKPATTERNS:"/system/grokpatterns",INDICES:{LIST:"/system/indices",FAILURES:"/system/indices/failures"},INDEX_SETS:{CONFIGURATION:function(e,t){return t?"/system/index_sets/".concat(e,"/configuration?from=").concat(t):"/system/index_sets/".concat(e,"/configuration")},SHOW:function(e){return"/system/index_sets/".concat(e)},CREATE:"/system/index_sets/create"},INPUTS:"/system/inputs",LOGGING:"/system/logging",METRICS:function(e){return"/system/metrics/node/".concat(e)},NODES:{LIST:"/system/nodes",SHOW:function(e){return"/system/nodes/".concat(e)}},THREADDUMP:function(e){return"/system/threaddump/".concat(e)},OUTPUTS:"/system/outputs",OVERVIEW:"/system/overview",PROCESSBUFFERDUMP:function(e){return"/system/processbufferdump/".concat(e)},AUTHENTICATION:{BACKENDS:{OVERVIEW:"/system/authentication/services",ACTIVE:"/system/authentication/services/active",CREATE:"/system/authentication/services/create",createBackend:function(e){return"/system/authentication/services/create/".concat(e)},show:function(e){return"/system/authentication/services/".concat(e)},edit:function(e,t){var n="/system/authentication/services/edit/".concat(e);return t?"".concat(n,"?initialStepKey=").concat(t):n}},AUTHENTICATORS:{SHOW:"/system/authentication/authenticator",EDIT:"/system/authentication/authenticator/edit"}},USERS:{CREATE:"/system/users/new",edit:function(e){return"/system/users/edit/".concat(e)},TOKENS:{edit:function(e){return"/system/users/tokens/".concat(e)}},OVERVIEW:"/system/users",show:function(e){return"/system/users/".concat(e)}},AUTHZROLES:{OVERVIEW:"/system/roles",show:function(e){return"/system/roles/".concat(e)},edit:function(e){return"/system/roles/edit/".concat(e)}},LOOKUPTABLES:{OVERVIEW:"/system/lookuptables",CREATE:"/system/lookuptables/create",show:function(e){return"/system/lookuptables/table/".concat(e)},edit:function(e){return"/system/lookuptables/table/".concat(e,"/edit")},CACHES:{OVERVIEW:"/system/lookuptables/caches",CREATE:"/system/lookuptables/caches/create",show:function(e){return"/system/lookuptables/caches/".concat(e)},edit:function(e){return"/system/lookuptables/caches/".concat(e,"/edit")}},DATA_ADAPTERS:{OVERVIEW:"/system/lookuptables/data_adapters",CREATE:"/system/lookuptables/data_adapters/create",show:function(e){return"/system/lookuptables/data_adapter/".concat(e)},edit:function(e){return"/system/lookuptables/data_adapter/".concat(e,"/edit")}}},PIPELINES:{OVERVIEW:"/system/pipelines",PIPELINE:function(e){return"/system/pipelines/".concat(e)},RULES:"/system/pipelines/rules",RULE:function(e){return"/system/pipelines/rules/".concat(e)},SIMULATOR:"/system/pipelines/simulate"},ENTERPRISE:"/system/enterprise",SIDECARS:{OVERVIEW:"/system/sidecars",STATUS:function(e){return"/system/sidecars/".concat(e,"/status")},ADMINISTRATION:"/system/sidecars/administration",CONFIGURATION:"/system/sidecars/configuration",NEW_CONFIGURATION:"/system/sidecars/configuration/new",EDIT_CONFIGURATION:function(e){return"/system/sidecars/configuration/edit/".concat(e)},NEW_COLLECTOR:"/system/sidecars/collector/new",EDIT_COLLECTOR:function(e){return"/system/sidecars/collector/edit/".concat(e)}}},VIEWS:{LIST:c.y,VIEWID:function(e){return"".concat(c.y,"/").concat(e)}},EXTENDEDSEARCH:c.s,search_with_query:function(e,t,n){var r=new i.a(s.SEARCH),o={q:e};return t&&n&&(o[t]=n),r.query(o),r.resource()},_common_search_url:function(e,t,n,r){var o=new i.a(e),a={q:t,interval:r};return n&&Object.keys(n).forEach((function(e){a[e]=n[e]})),o.setQuery(a),o.resource()},search:function(e,t,n){return s._common_search_url(s.SEARCH,e,t,n)},message_show:function(e,t){return"/messages/".concat(e,"/").concat(t)},stream_edit:function(e){return"/streams/".concat(e,"/edit")},stream_edit_example:function(e,t,n){return"".concat(s.stream_edit(e),"?index=").concat(t,"&message_id=").concat(n)},stream_outputs:function(e){return"/streams/".concat(e,"/outputs")},stream_search:function(e,t,n,r){return s._common_search_url("".concat(s.STREAMS,"/").concat(e,"/search"),t,n,r)},stream_alerts:function(e){return"/alerts/?stream_id=".concat(e)},legacy_stream_search:function(e){return"/streams/".concat(e,"/messages")},show_alert:function(e){return"".concat(s.LEGACY_ALERTS.LIST,"/").concat(e)},show_alert_condition:function(e,t){return"".concat(s.LEGACY_ALERTS.CONDITIONS,"/").concat(e,"/").concat(t)},new_alert_condition_for_stream:function(e){return"".concat(s.LEGACY_ALERTS.NEW_CONDITION,"?stream_id=").concat(e)},new_alert_notification_for_stream:function(e){return"".concat(s.LEGACY_ALERTS.NEW_NOTIFICATION,"?stream_id=").concat(e)},dashboard_show:function(e){return"/dashboards/".concat(e)},node:function(e){return"/system/nodes/".concat(e)},node_inputs:function(e){return"".concat(s.SYSTEM.INPUTS,"/").concat(e)},global_input_extractors:function(e){return"/system/inputs/".concat(e,"/extractors")},local_input_extractors:function(e,t){return"/system/inputs/".concat(e,"/").concat(t,"/extractors")},export_extractors:function(e,t){return"".concat(s.local_input_extractors(e,t),"/export")},import_extractors:function(e,t){return"".concat(s.local_input_extractors(e,t),"/import")},new_extractor:function(e,t,n,r,o,a){var c=new i.a("/system/inputs/".concat(e,"/").concat(t,"/extractors/new")),l={extractor_type:n,field:r,example_index:o,example_id:a};return c.search(l),c.resource()},edit_extractor:function(e,t,n){return"/system/inputs/".concat(e,"/").concat(t,"/extractors/").concat(n,"/edit")},edit_input_extractor:function(e,t,n){return"/system/inputs/".concat(e,"/").concat(t,"/extractors/").concat(n,"/edit")},getting_started:function(e){return"".concat(s.GETTING_STARTED,"?menu=").concat(e)},filtered_metrics:function(e,t){return"".concat(s.SYSTEM.METRICS(e),"?filter=").concat(t)}},u=function e(t,n){var r={};return Object.keys(t).forEach((function(o){switch(l(t[o])){case"string":r[o]=new i.a("".concat(n,"/").concat(t[o])).normalizePath().resource();break;case"function":r[o]=function(){var e=t[o].apply(t,arguments);return new i.a("".concat(n,"/").concat(e)).normalizePath().resource()};break;case"object":r[o]=e(t[o],n)}})),r},f=a.a.gl2AppPathPrefix()?u(s,a.a.gl2AppPathPrefix()):s,d=s,p=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};r.PluginStore.exports("routes").forEach((function(e){var t=new i.a(e.path),r=t.segment(),o=r.map((function(e){return e.replace(":","")})).join("_").toUpperCase(),a=r.filter((function(e){return e.startsWith(":")}));a.length>0?n[o]=function(){for(var e=arguments.length,n=new Array(e),o=0;o=0))return e;if(3===a)o[a]>1&&(o[a]=1);else if(o[a]>=1)return e}var c=Math.round(255*o[0])+", "+Math.round(255*o[1])+", "+Math.round(255*o[2]);return i?"rgba("+c+", "+o[3]+")":"rgb("+c+")"}o.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},o.rgb=function(e){return o.tinyRGB(n(e))},o.opacity=function(e){return e?n(e).getAlpha():0},o.addOpacity=function(e,t){var r=n(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"},o.combine=function(e,t){var r=n(e).toRgb();if(1===r.a)return n(e).toRgbString();var o=n(t||c).toRgb(),i=1===o.a?o:{r:255*(1-o.a)+o.r*o.a,g:255*(1-o.a)+o.g*o.a,b:255*(1-o.a)+o.b*o.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return n(a).toRgbString()},o.contrast=function(e,t,r){var i=n(e);return 1!==i.getAlpha()&&(i=n(o.combine(e,c))),(i.isDark()?t?i.lighten(t):c:r?i.darken(r):a).toString()},o.stroke=function(e,t){var r=n(t);e.style({stroke:o.tinyRGB(r),"stroke-opacity":r.getAlpha()})},o.fill=function(e,t){var r=n(t);e.style({fill:o.tinyRGB(r),"fill-opacity":r.getAlpha()})},o.clean=function(e){if(e&&"object"==typeof e){var t,n,r,i,a=Object.keys(e);for(t=0;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nu))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var h=-1,m=!0,g=2&i?new n:void 0;for(l.set(e,t),l.set(t,e);++h.5});return n.default.createElement("div",{style:o.picker})};exports.default=i},"06hQxAAN":function(e,exports){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"08s03RBq":function(e,exports,t){var n=t("euujeYld");e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},"0A/qkoTJ":function(e,exports,t){var n=t("kTyaawi/"),r=t("NHjteNds");e.exports=function(e,t){return e&&n(t,r(t),e)}},"0Ft3SWJB":function(e,exports,t){"use strict";var n=t("/8dZfPfB"),r=t("0P6BOAlX").utcFormat,o=t("yAcToaBS"),i=t("46lPXjlm"),a=i.FP_SAFE,c=i.BADNUM,l=e.exports={};l.nestedProperty=t("+I+lImdb"),l.keyedContainer=t("n4B/fXq8"),l.relativeAttr=t("QsWpYxCi"),l.isPlainObject=t("btK4Orgn"),l.toLogRange=t("wJP3FIsq"),l.relinkPrivateKeys=t("Ci9z87+I");var s=t("OPxZozoA");l.isTypedArray=s.isTypedArray,l.isArrayOrTypedArray=s.isArrayOrTypedArray,l.isArray1D=s.isArray1D,l.ensureArray=s.ensureArray,l.concat=s.concat,l.maxRowLength=s.maxRowLength,l.minRowLength=s.minRowLength;var u=t("0JON8+ab");l.mod=u.mod,l.modHalf=u.modHalf;var f=t("dgdMg1th");l.valObjectMeta=f.valObjectMeta,l.coerce=f.coerce,l.coerce2=f.coerce2,l.coerceFont=f.coerceFont,l.coerceHoverinfo=f.coerceHoverinfo,l.coerceSelectionMarkerOpacity=f.coerceSelectionMarkerOpacity,l.validate=f.validate;var d=t("Kj2dRMkH");l.dateTime2ms=d.dateTime2ms,l.isDateTime=d.isDateTime,l.ms2DateTime=d.ms2DateTime,l.ms2DateTimeLocal=d.ms2DateTimeLocal,l.cleanDate=d.cleanDate,l.isJSDate=d.isJSDate,l.formatDate=d.formatDate,l.incrementMonth=d.incrementMonth,l.dateTick0=d.dateTick0,l.dfltRange=d.dfltRange,l.findExactDates=d.findExactDates,l.MIN_MS=d.MIN_MS,l.MAX_MS=d.MAX_MS;var p=t("WoUvVyRa");l.findBin=p.findBin,l.sorterAsc=p.sorterAsc,l.sorterDes=p.sorterDes,l.distinctVals=p.distinctVals,l.roundUp=p.roundUp,l.sort=p.sort,l.findIndexOfMin=p.findIndexOfMin;var h=t("0cs6LEsq");l.aggNums=h.aggNums,l.len=h.len,l.mean=h.mean,l.median=h.median,l.midRange=h.midRange,l.variance=h.variance,l.stdev=h.stdev,l.interp=h.interp;var m=t("mi7jljcm");l.init2dArray=m.init2dArray,l.transposeRagged=m.transposeRagged,l.dot=m.dot,l.translationMatrix=m.translationMatrix,l.rotationMatrix=m.rotationMatrix,l.rotationXYMatrix=m.rotationXYMatrix,l.apply3DTransform=m.apply3DTransform,l.apply2DTransform=m.apply2DTransform,l.apply2DTransform2=m.apply2DTransform2,l.convertCssMatrix=m.convertCssMatrix,l.inverseTransformMatrix=m.inverseTransformMatrix;var g=t("oOm/nKw3");l.deg2rad=g.deg2rad,l.rad2deg=g.rad2deg,l.angleDelta=g.angleDelta,l.angleDist=g.angleDist,l.isFullCircle=g.isFullCircle,l.isAngleInsideSector=g.isAngleInsideSector,l.isPtInsideSector=g.isPtInsideSector,l.pathArc=g.pathArc,l.pathSector=g.pathSector,l.pathAnnulus=g.pathAnnulus;var b=t("5XAAJc+x");l.isLeftAnchor=b.isLeftAnchor,l.isCenterAnchor=b.isCenterAnchor,l.isRightAnchor=b.isRightAnchor,l.isTopAnchor=b.isTopAnchor,l.isMiddleAnchor=b.isMiddleAnchor,l.isBottomAnchor=b.isBottomAnchor;var v=t("UrKfhgLr");l.segmentsIntersect=v.segmentsIntersect,l.segmentDistance=v.segmentDistance,l.getTextLocation=v.getTextLocation,l.clearLocationCache=v.clearLocationCache,l.getVisibleSegment=v.getVisibleSegment,l.findPointOnPath=v.findPointOnPath;var y=t("xE+ZFgwY");l.extendFlat=y.extendFlat,l.extendDeep=y.extendDeep,l.extendDeepAll=y.extendDeepAll,l.extendDeepNoArrays=y.extendDeepNoArrays;var A=t("jGt2471r");l.log=A.log,l.warn=A.warn,l.error=A.error;var w=t("oaJ8xVPa");l.counterRegex=w.counter;var x=t("9bxIX4ke");l.throttle=x.throttle,l.throttleDone=x.done,l.clearThrottle=x.clear;var E=t("5u0twCBb");function C(e){var t={};for(var n in e)for(var r=e[n],o=0;oa?c:o(e)?Number(e):c:c},l.isIndex=function(e,t){return!(void 0!==t&&e>=t)&&(o(e)&&e>=0&&e%1==0)},l.noop=t("lHLBDM7v"),l.identity=t("jKiUIMfn"),l.repeat=function(e,t){for(var n=new Array(t),r=0;rn?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},l.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},l.simpleMap=function(e,t,n,r,o){for(var i=e.length,a=new Array(i),c=0;c=Math.pow(2,n)?o>10?(l.warn("randstr failed uniqueness"),s):e(t,n,r,(o||0)+1):s},l.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={optionList:[],_newoption:function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)}};return n["_"+t]=e,n},l.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var n,r,o,i,a=e.length,c=2*a,l=2*t-1,s=new Array(l),u=new Array(a);for(n=0;n=c&&(o-=c*Math.floor(o/c)),o<0?o=-1-o:o>=a&&(o=c-1-o),i+=e[o]*s[r];u[n]=i}return u},l.syncOrAsync=function(e,t,n){var r;function o(){return l.syncOrAsync(e,t,n)}for(;e.length;)if((r=(0,e.splice(0,1)[0])(t))&&r.then)return r.then(o).then(void 0,l.promiseError);return n&&n(t)},l.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},l.noneOrAll=function(e,t,n){if(e){var r,o=!1,i=!0;for(r=0;r0?t:0}))},l.fillArray=function(e,t,n,r){if(r=r||l.identity,l.isArrayOrTypedArray(e))for(var o=0;o1?o+a[1]:"";if(i&&(a.length>1||c.length>4||n))for(;r.test(c);)c=c.replace(r,"$1"+i+"$2");return c+l},l.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var M=/^\w*$/;l.templateString=function(e,t){var n={};return e.replace(l.TEMPLATE_STRING_REGEX,(function(e,r){var o;return M.test(r)?o=t[r]:(n[r]=n[r]||l.nestedProperty(t,r).get,o=n[r]()),l.isValidTextValue(o)?o:""}))};var B={max:10,count:0,name:"hovertemplate"};l.hovertemplateString=function(){return P.apply(B,arguments)};var I={max:10,count:0,name:"texttemplate"};l.texttemplateString=function(){return P.apply(I,arguments)};var D=/^[:|\|]/;function P(e,t,o){var i=this,a=arguments;t||(t={});var c={};return e.replace(l.TEMPLATE_STRING_REGEX,(function(e,s,u){var f,d,p,h;for(p=3;p=48&&a<=57,s=c>=48&&c<=57;if(l&&(r=10*r+a-48),s&&(o=10*o+c-48),!l||!s){if(r!==o)return r-o;if(a!==c)return a-c}}return o-r};var T=2e9;l.seedPseudoRandom=function(){T=2e9},l.pseudoRandom=function(){var e=T;return T=(69069*T+1)%4294967296,Math.abs(T-e)<429496729?l.pseudoRandom():T/4294967296},l.fillText=function(e,t,n){var r=Array.isArray(n)?function(e){n.push(e)}:function(e){n.text=e},o=l.extractOption(e,t,"htx","hovertext");if(l.isValidTextValue(o))return r(o);var i=l.extractOption(e,t,"tx","text");return l.isValidTextValue(i)?r(i):void 0},l.isValidTextValue=function(e){return e||0===e},l.formatPercent=function(e,t){t=t||0;for(var n=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",r=0;r1&&(u=1):u=0,l.strTranslate(o-u*(n+a),i-u*(r+c))+l.strScale(u)+(s?"rotate("+s+(t?"":" "+n+" "+r)+")":"")},l.ensureUniformFontSize=function(e,t){var n=l.extendFlat({},t);return n.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),n},l.join2=function(e,t,n){var r=e.length;return r>1?e.slice(0,-1).join(t)+n+e[r-1]:e.join(t)}},"0I3yHkbj":function(e,t,n){"use strict";var r=n("dZUWVuuc"),o=n.n(r),i=n("DjJvgDaP"),a=n.n(i)()(o.a);a.push([e.i,"._3M1VALZIHbTNuRZSFYMXyh {\n min-width: fit-content;\n}\n\n","",{version:3,sources:["webpack://./src/views/components/aggregationbuilder/pivottypes/TimeUnitTimeHistogramPivot.css"],names:[],mappings:"AAAA;IACI,sBAAsB;AAC1B",sourcesContent:[":local(.useFullWidth) {\n min-width: fit-content;\n}\n\n"],sourceRoot:""}]),a.locals={useFullWidth:"_3M1VALZIHbTNuRZSFYMXyh"},t.a=a},"0IgrHjWZ":function(e,t,n){"use strict";var r,o=n("ivGQtwpr"),i=n("ii0bleBb"),a=n.n(i),c=n("CzyxmveH"),l=n("nHcjWeCO"),s=n("VgplIV7d"),u=n("qoq4u5Uq"),f=n("gWSkRuxf"),d=n("lTFXlobu"),p=n("2mLJ+Y9G"),h=n("3LTI4Ym/"),m=n("P+4eXGvA"),g=n("dFpwyWHg"),b=n.n(g),v=n("BUp8diFb"),y=0,A={injectType:"lazyStyleTag",insert:"head",singleton:!1},w={};w.locals=v.a.locals||{},w.use=function(){return y++||(r=b()(v.a,A)),w},w.unuse=function(){y>0&&!--y&&(r(),r=null)};var x=w,E=n("fedQ+uRG"),C=n("BhucbIkU");function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;tt/2?e-Math.round(e/t)*t:e}}},"0P6BOAlX":function(e,t,n){"use strict";n.r(t),n.d(t,"timeFormatDefaultLocale",(function(){return it})),n.d(t,"timeFormat",(function(){return N})),n.d(t,"timeParse",(function(){return H})),n.d(t,"utcFormat",(function(){return L})),n.d(t,"utcParse",(function(){return F})),n.d(t,"timeFormatLocale",(function(){return T})),n.d(t,"isoFormat",(function(){return ct})),n.d(t,"isoParse",(function(){return lt}));var r=new Date,o=new Date;function i(e,t,n,a){function c(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return c.floor=function(t){return e(t=new Date(+t)),t},c.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},c.round=function(e){var t=c(e),n=c.ceil(e);return e-t0))return a;do{a.push(i=new Date(+n)),t(n,o),e(n)}while(i=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(c.count=function(t,i){return r.setTime(+t),o.setTime(+i),e(r),e(o),Math.floor(n(r,o))},c.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?c.filter(a?function(t){return a(t)%e==0}:function(t){return c.count(0,t)%e==0}):c:null}),c}var a=864e5,c=6048e5;function l(e){return i((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/c}))}var s=l(0),u=l(1),f=l(2),d=l(3),p=l(4),h=l(5),m=l(6),g=(s.range,u.range,f.range,d.range,p.range,h.range,m.range,i((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/a}),(function(e){return e.getUTCDate()-1}))),b=g;g.range;function v(e){return i((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/c}))}var y=v(0),A=v(1),w=v(2),x=v(3),E=v(4),C=v(5),O=v(6),S=(y.range,A.range,w.range,x.range,E.range,C.range,O.range,i((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/a}),(function(e){return e.getDate()-1}))),k=S,j=(S.range,i((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));j.every=function(e){return isFinite(e=Math.floor(e))&&e>0?i((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var z=j,M=(j.range,i((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));M.every=function(e){return isFinite(e=Math.floor(e))&&e>0?i((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var B=M;M.range;function I(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function D(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function P(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function T(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,c=e.months,l=e.shortMonths,s=Y(o),f=J(o),d=Y(i),p=J(i),h=Y(a),m=J(a),g=Y(c),v=J(c),y=Y(l),w=J(l),x={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:ge,e:ge,f:we,g:Ie,G:Pe,H:be,I:ve,j:ye,L:Ae,m:xe,M:Ee,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:rt,s:ot,S:Ce,u:Oe,U:Se,V:je,w:ze,W:Me,x:null,X:null,y:Be,Y:De,Z:Te,"%":nt},E={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:Re,e:Re,f:Ve,g:Xe,G:et,H:Ne,I:He,j:Le,L:Fe,m:_e,M:qe,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:rt,s:ot,S:Ge,u:We,U:Ue,V:Je,w:Ze,W:Ke,x:null,X:null,y:Qe,Y:$e,Z:tt,"%":nt},C={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=m[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=w[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return j(e,t,n,r)},d:ae,e:ae,f:de,g:ne,G:te,H:le,I:le,j:ce,L:fe,m:ie,M:se,p:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.p=f[r[0].toLowerCase()],n+r[0].length):-1},q:oe,Q:he,s:me,S:ue,u:K,U:Q,V:X,w:Z,W:ee,x:function(e,t,r){return j(e,n,t,r)},X:function(e,t,n){return j(e,r,t,n)},y:ne,Y:te,Z:re,"%":pe};function O(e,t){return function(n){var r,o,i,a=[],c=-1,l=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++c53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=D(P(i.y,0,1))).getUTCDay(),r=o>4||0===o?u.ceil(r):u(r),r=b.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=I(P(i.y,0,1))).getDay(),r=o>4||0===o?A.ceil(r):A(r),r=k.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?D(P(i.y,0,1)).getUTCDay():I(P(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,D(i)):I(i)}}function j(e,t,n,r){for(var o,i,a=0,c=t.length,l=n.length;a=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=C[o in V?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),E.x=O(n,E),E.X=O(r,E),E.c=O(t,E),{format:function(e){var t=O(e+="",x);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",E);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}var R,N,H,L,F,V={"-":"",_:" ",0:"0"},_=/^\s*\d+/,q=/^%/,G=/[\\^$*+?|[\]().{}]/g;function W(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function re(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function oe(e,t,n){var r=_.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function ie(e,t,n){var r=_.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ae(e,t,n){var r=_.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ce(e,t,n){var r=_.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function le(e,t,n){var r=_.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function se(e,t,n){var r=_.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ue(e,t,n){var r=_.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function fe(e,t,n){var r=_.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function de(e,t,n){var r=_.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function pe(e,t,n){var r=q.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function he(e,t,n){var r=_.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function me(e,t,n){var r=_.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ge(e,t){return W(e.getDate(),t,2)}function be(e,t){return W(e.getHours(),t,2)}function ve(e,t){return W(e.getHours()%12||12,t,2)}function ye(e,t){return W(1+k.count(z(e),e),t,3)}function Ae(e,t){return W(e.getMilliseconds(),t,3)}function we(e,t){return Ae(e,t)+"000"}function xe(e,t){return W(e.getMonth()+1,t,2)}function Ee(e,t){return W(e.getMinutes(),t,2)}function Ce(e,t){return W(e.getSeconds(),t,2)}function Oe(e){var t=e.getDay();return 0===t?7:t}function Se(e,t){return W(y.count(z(e)-1,e),t,2)}function ke(e){var t=e.getDay();return t>=4||0===t?E(e):E.ceil(e)}function je(e,t){return e=ke(e),W(E.count(z(e),e)+(4===z(e).getDay()),t,2)}function ze(e){return e.getDay()}function Me(e,t){return W(A.count(z(e)-1,e),t,2)}function Be(e,t){return W(e.getFullYear()%100,t,2)}function Ie(e,t){return W((e=ke(e)).getFullYear()%100,t,2)}function De(e,t){return W(e.getFullYear()%1e4,t,4)}function Pe(e,t){var n=e.getDay();return W((e=n>=4||0===n?E(e):E.ceil(e)).getFullYear()%1e4,t,4)}function Te(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+W(t/60|0,"0",2)+W(t%60,"0",2)}function Re(e,t){return W(e.getUTCDate(),t,2)}function Ne(e,t){return W(e.getUTCHours(),t,2)}function He(e,t){return W(e.getUTCHours()%12||12,t,2)}function Le(e,t){return W(1+b.count(B(e),e),t,3)}function Fe(e,t){return W(e.getUTCMilliseconds(),t,3)}function Ve(e,t){return Fe(e,t)+"000"}function _e(e,t){return W(e.getUTCMonth()+1,t,2)}function qe(e,t){return W(e.getUTCMinutes(),t,2)}function Ge(e,t){return W(e.getUTCSeconds(),t,2)}function We(e){var t=e.getUTCDay();return 0===t?7:t}function Ue(e,t){return W(s.count(B(e)-1,e),t,2)}function Ye(e){var t=e.getUTCDay();return t>=4||0===t?p(e):p.ceil(e)}function Je(e,t){return e=Ye(e),W(p.count(B(e),e)+(4===B(e).getUTCDay()),t,2)}function Ze(e){return e.getUTCDay()}function Ke(e,t){return W(u.count(B(e)-1,e),t,2)}function Qe(e,t){return W(e.getUTCFullYear()%100,t,2)}function Xe(e,t){return W((e=Ye(e)).getUTCFullYear()%100,t,2)}function $e(e,t){return W(e.getUTCFullYear()%1e4,t,4)}function et(e,t){var n=e.getUTCDay();return W((e=n>=4||0===n?p(e):p.ceil(e)).getUTCFullYear()%1e4,t,4)}function tt(){return"+0000"}function nt(){return"%"}function rt(e){return+e}function ot(e){return Math.floor(+e/1e3)}function it(e){return R=T(e),N=R.format,H=R.parse,L=R.utcFormat,F=R.utcParse,R}it({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var at="%Y-%m-%dT%H:%M:%S.%LZ";var ct=Date.prototype.toISOString?function(e){return e.toISOString()}:L(at);var lt=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:F(at)},"0UGjr0SH":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;no.length)&&(i=o.length),n(t)||(t=!1),r(o[0])){for(c=new Array(i),a=0;ae.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}},"0gG/d5L/":function(e,exports,t){var n=t("GMq6hY2e");e.exports=function(){return n.Date.now()}},"0tVB/fkh":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u.a})),n.d(t,"c",(function(){return x})),n.d(t,"d",(function(){return E.a})),n.d(t,"e",(function(){return C.a})),n.d(t,"f",(function(){return O.a})),n.d(t,"g",(function(){return j})),n.d(t,"h",(function(){return z.a})),n.d(t,"i",(function(){return L})),n.d(t,"j",(function(){return F.a})),n.d(t,"k",(function(){return G})),n.d(t,"l",(function(){return W.a})),n.d(t,"m",(function(){return ee})),n.d(t,"n",(function(){return te.a})),n.d(t,"o",(function(){return ne.a})),n.d(t,"p",(function(){return ae})),n.d(t,"q",(function(){return fe})),n.d(t,"r",(function(){return Be})),n.d(t,"s",(function(){return Te})),n.d(t,"t",(function(){return He})),n.d(t,"u",(function(){return Fe})),n.d(t,"v",(function(){return We})),n.d(t,"w",(function(){return Ve.a})),n.d(t,"x",(function(){return Ke.a})),n.d(t,"z",(function(){return Z.a})),n.d(t,"A",(function(){return Qe.a})),n.d(t,"B",(function(){return Xe.a})),n.d(t,"C",(function(){return $e.a})),n.d(t,"D",(function(){return tt})),n.d(t,"y",(function(){return _t})),n.d(t,"H",(function(){return $t})),n.d(t,"I",(function(){return rn})),n.d(t,"F",(function(){return un})),n.d(t,"G",(function(){return Cn})),n.d(t,"J",(function(){return Rn})),n.d(t,"K",(function(){return Wn})),n.d(t,"L",(function(){return Jn})),n.d(t,"M",(function(){return Zn.a})),n.d(t,"Q",(function(){return Kn.a})),n.d(t,"N",(function(){return Qn.a})),n.d(t,"P",(function(){return Xn.b})),n.d(t,"O",(function(){return sr.b})),n.d(t,"R",(function(){return yr})),n.d(t,"T",(function(){return Or})),n.d(t,"S",(function(){return Sr.a})),n.d(t,"U",(function(){return Ur})),n.d(t,"V",(function(){return oo})),n.d(t,"W",(function(){return io.a})),n.d(t,"X",(function(){return en.b})),n.d(t,"Z",(function(){return bo})),n.d(t,"Y",(function(){return Io})),n.d(t,"bb",(function(){return Do.a})),n.d(t,"ab",(function(){return Lo})),n.d(t,"cb",(function(){return Ca})),n.d(t,"db",(function(){return Qt.a})),n.d(t,"eb",(function(){return _o})),n.d(t,"hb",(function(){return qo.a})),n.d(t,"ib",(function(){return ai})),n.d(t,"jb",(function(){return ji})),n.d(t,"E",(function(){return Fi})),n.d(t,"gb",(function(){return Vi.a})),n.d(t,"fb",(function(){return _i})),n.d(t,"lb",(function(){return qi.a})),n.d(t,"kb",(function(){return Ea}));var r=n("IZzvjOlY"),o=n("ivGQtwpr"),i=n.n(o),a=n("CzyxmveH"),c=a.default.div.withConfig({displayName:"Center__Container",componentId:"g2d56f-0"})((function(e){var t=e.$fullHeight;return"\n display: flex;\n height: ".concat(t?"100%":"auto",";\n justify-content: center;\n align-items: center;\n")})),l=function(e){var t=e.children,n=e.fullHeight;return o.createElement(c,{$fullHeight:n},t)};l.defaultProps={fullHeight:!0};var s=l,u=n("9PduZh9b"),f=n("gWSkRuxf"),d=n("ii0bleBb"),p=n.n(d),h=n("VgplIV7d"),m=n("qoq4u5Uq");function g(){return(g=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var A=Object(a.default)(m.I).withConfig({displayName:"ColorPickerPopover__StyledPopover",componentId:"sc-1gpbkof-0"})([".popover-content{padding:0;}"]),w=function(e){var t=e.id,n=e.placement,r=e.title,i=e.triggerNode,a=e.onChange,c=y(e,["id","placement","title","triggerNode","onChange"]),l=b(Object(o.useState)(!1),2),s=l[0],u=l[1],d=Object(o.useRef)(),p=function(){u(!s)};return o.createElement(o.Fragment,null,Object(o.cloneElement)(i,{onClick:p,ref:d}),s&&o.createElement(h.Overlay,{show:s,containerPadding:10,placement:n,shouldUpdatePosition:!0,target:d.current,rootClose:!0,onHide:p},o.createElement(A,{id:t,title:r},o.createElement(f.a,g({onChange:function(e,t){a(e,t,p)}},c)))))};w.propTypes={id:p.a.string.isRequired,placement:p.a.oneOf(["top","right","bottom","left"]),title:p.a.string,triggerNode:p.a.node.isRequired,onChange:p.a.func.isRequired},w.defaultProps={placement:"bottom",title:"Pick a color",colors:void 0};var x=w,E=n("+fdB5KSI"),C=n("fao3zrpD"),O=n("tHBUgh4Y"),S=o.forwardRef((function(e,t){var n=e.formatSelection,r=e.children,i=e.className;return o.createElement("div",{className:i,ref:t,onCopy:function(e){var t=n(document.getSelection());e.clipboardData.setData("text/plain",t),e.preventDefault()}},r)}));S.defaultProps={className:void 0};var k=a.default.span.withConfig({displayName:"CountBadge__Badge",componentId:"sc-1jj05u2-0"})((function(e){var t=e.theme;return"\n background-color: ".concat(t.colors.variant.light.info,";\n")})),j=function(e){var t=e.children;return o.createElement(k,{className:"badge"},t)},z=n("W9+Cbakt"),M=n("awUYZK9l"),B=n.n(M),I=n("GhoMYXSj"),D=n("dFpwyWHg"),P=n.n(D),T=n("TxzB85fo"),R={insert:"head",singleton:!1},N=(P()(T.a,R),T.a.locals,Object(a.default)(B.a).withConfig({displayName:"DatePicker__StyledDayPicker",componentId:"sc-1xq6p2r-0"})((function(e){var t=e.theme;return Object(a.css)(["width:100%;.DayPicker-Day{min-width:34px;max-width:34px;min-height:34px;max-height:34px;&--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){background-color:",";color:",";}&--today{color:",";}&:focus{outline-color:",";}}&:not(.DayPicker--interactionDisabled) .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside){&:focus{outline-color:",";}&:hover{background-color:",";color:",";}}"],t.colors.variant.lighter.primary,t.colors.variant.darkest.primary,t.colors.variant.info,t.colors.variant.primary,t.colors.variant.primary,t.colors.variant.lightest.primary,t.colors.variant.darker.primary)}))),H=function(e){var t,n=e.date,r=e.fromDate,o=e.onChange,a=e.showOutsideDays;if(n)try{t=I.a.parseFromString(n)}catch(e){}var c={selected:function(e){if(!t)return!1;var n=I.a.ignoreTZ(e);return t.toString(I.a.Formats.DATE)===n.toString(I.a.Formats.DATE)},disabled:{before:new Date(r)}};return i.a.createElement(N,{initialMonth:t?t.toDate():void 0,onDayClick:o,modifiers:c,showOutsideDays:a})};H.propTypes={date:p.a.string,onChange:p.a.func.isRequired,fromDate:p.a.instanceOf(Date),showOutsideDays:p.a.bool},H.defaultProps={date:void 0,fromDate:void 0,showOutsideDays:!1};var L=H,F=n("UnoHcfGT"),V=a.default.div.withConfig({displayName:"EmptyEntity__Container",componentId:"sc-1wp1lhv-0"})(["display:flex;flex-direction:column;align-items:center;p{text-align:center;}"]),_=a.default.h2.withConfig({displayName:"EmptyEntity__Headline",componentId:"sc-1wp1lhv-1"})(["margin-top:5px;margin-bottom:10px;text-align:center;"]),q=function(e){var t=e.children,n=e.title;return o.createElement(V,null,o.createElement(_,null,n),t)};q.propTypes={title:p.a.oneOfType([p.a.string,p.a.node]),children:p.a.node.isRequired},q.defaultProps={title:"Looks like there is nothing here, yet!"};var G=q,W=n("PX/kpK44"),U=n("mc0qlNhN"),Y=n("jHp4XH0b"),J=n("dAwpSZZC"),Z=n("QT/JoLpZ"),K=Object(a.default)(J.a.Title).withConfig({displayName:"EnterprisePluginNotFound__Header",componentId:"sc-1t3qyok-0"})(["display:flex;align-items:center;"]),Q=Object(a.default)(Z.a).withConfig({displayName:"EnterprisePluginNotFound__HeaderIcon",componentId:"sc-1t3qyok-1"})(["margin-right:5px;margin-top:-1px;"]),X=function(e){var t=e.featureName,n=e.wrapperClassName;return o.createElement(J.a,{bsStyle:"info",className:n},o.createElement(J.a.Heading,null,o.createElement(K,null,o.createElement(Q,{name:"crown"}),"Enterprise Feature")),o.createElement(J.a.Body,null,"To use the ",o.createElement("b",null,t)," functionality you need the ",o.createElement("a",{href:"https://www.graylog.org/products/enterprise",rel:"noopener noreferrer",target:"_blank"},"Graylog Enterprise license")," and the ",o.createElement(Y.a,{page:U.a.PAGES.ENTERPRISE_SETUP,text:"Graylog Enterprise plugin"}),"."))};X.propTypes={featureName:p.a.string.isRequired,wrapperClassName:p.a.string},X.defaultProps={wrapperClassName:"no-bm"};var ee=X,te=n("IIQr9spy"),ne=n("NzcJjUvS"),re=Object(a.default)(m.L).withConfig({displayName:"ErrorAlert__StyledRow",componentId:"ihag8e-0"})(["margin-bottom:0 !important;"]),oe=a.default.div.withConfig({displayName:"ErrorAlert__Container",componentId:"ihag8e-1"})((function(e){var t=e.margin;return"\n margin-top: ".concat(t,"px;\n margin-bottom: ").concat(t,"px;\n")})),ie=function(e){var t=e.children,n=e.onClose,r=e.bsStyle,i=void 0===r?"warning":r,a=e.marginTopBottom,c=void 0===a?15:a,l=e.runtimeError,s=l?"danger":i;return t?o.createElement(oe,{margin:c},o.createElement(m.c,{bsStyle:s},o.createElement(re,null,o.createElement(m.j,{md:11},l&&o.createElement("h4",null,"Runtime Error"),t),o.createElement(m.j,{md:1},o.createElement(m.e,{bsSize:"xsmall",bsStyle:s,className:"pull-right",onClick:function(){return n(void 0)}},o.createElement(Z.a,{name:"times"})))))):null};ie.propTypes={bsStyle:p.a.string,runtimeError:p.a.bool,marginTopBottom:p.a.number,children:p.a.oneOfType([p.a.arrayOf(p.a.element),p.a.element,p.a.string]),onClose:p.a.func},ie.defaultProps={bsStyle:"warning",runtimeError:!1,marginTopBottom:15,children:null,onClose:function(){}};var ae=ie,ce=n("suGnSKAB"),le={insert:"head",singleton:!1},se=(P()(ce.a,le),ce.a.locals||{}),ue=function(e){var t=e.children;return i.a.createElement("ul",{className:se.list},t)};ue.defaultProps={children:[]},ue.propTypes={children:p.a.oneOfType([p.a.element,p.a.arrayOf(p.a.element)])};var fe=ue;function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pe(){return(pe=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function me(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ne=function(e){var t=e.iconClass,n=e.children,r=Re(e,["iconClass","children"]);return i.a.createElement(m.e,r,i.a.createElement(Te,{iconClass:t},n))};Ne.propTypes={href:p.a.string.isRequired,children:p.a.node.isRequired,bsStyle:p.a.string,bsSize:p.a.string,target:p.a.string,iconClass:p.a.string,className:p.a.string,disabled:p.a.bool},Ne.defaultProps={bsStyle:"default",bsSize:void 0,target:"_blank",iconClass:"external-link-alt",className:"",disabled:!1};var He=Ne,Le=n("/RUHPmZd"),Fe=a.default.div.withConfig({displayName:"FlatContentRow",componentId:"sc-1iw6m68-0"})(["",' padding:9px;margin-left:-15px;margin-right:-15px;.row{margin-left:-9px;margin-right:-9px;}div[class*="col-"]{padding-right:9px;padding-left:9px;}'],Le.a),Ve=n("t+cZKeMu");function _e(){return(_e=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ge=function(e){var t=e.labelClassName,n=e.wrapperClassName,r=e.label,i=e.name,a=e.onChange,c=qe(e,["labelClassName","wrapperClassName","label","name","onChange"]);return o.createElement(Ve.a,_e({},c,{label:r,id:i,onChange:a,name:i,labelClassName:t,wrapperClassName:n}))};Ge.defaultProps={autoComplete:void 0,bsSize:void 0,buttonAfter:void 0,disabled:!1,onChange:void 0,labelClassName:"col-sm-3",wrapperClassName:"col-sm-9",formGroupClassName:void 0,type:void 0,error:void 0,placeholder:void 0,help:void 0,minLength:void 0,maxLength:void 0,required:!1,validate:function(){}};var We=Ge,Ue=n("Qrf/Fkdk"),Ye=n("mdroiMf0"),Je=function(e){var t=e.children,n=e.id,r=e.type,i=e.hideChildren,a=Object(o.useContext)(Ue.a),c=Object(Ye.a)(r,n),l="entity:own:".concat(c);if(a){var s=a.grnPermissions,u=void 0===s?[]:s,f=a.permissions.includes("*");if(u.includes(l)||f)return i||"function"!=typeof t?o.createElement(o.Fragment,null,"children"):o.createElement(o.Fragment,null,t({disabled:!1})," ")}return i||"function"!=typeof t?null:o.createElement(o.Fragment,null,t({disabled:!0})," ")};Je.propTypes={children:p.a.oneOfType([p.a.node,p.a.func]).isRequired,id:p.a.string,type:p.a.string.isRequired,hideChildren:p.a.bool},Je.defaultProps={hideChildren:!1,id:void 0};var Ze=Je,Ke=n("l/O+LciQ"),Qe=n("NgLfywoj"),Xe=n("sk/R/CzG"),$e=n("Gf35YsBX"),et=a.default.span.withConfig({displayName:"InputOptionalInfo__StyledSpan",componentId:"peeewd-0"})((function(e){var t=e.theme;return"\n color: ".concat(t.colors.gray[60],";\n font-weight: normal;\n")})),tt=function(){return o.createElement(et,null,"(Opt.)")},nt=n("TCbakIJf"),rt=n.n(nt),ot=n("pZBYnadz"),it=function(e,t){return(it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var at=function(){return(at=Object.assign||function(e){for(var t,n=1,r=arguments.length;nNumber(u)?u:S})}if(E||this.props.lockAspectRatio&&!x){S=A+(v-m)/r;this.setState({maxWidth:S>Number(u)?u:S})}if(C&&this.resizable){S=(g-y)/r+this.resizable.size.height;this.setState({maxHeight:S>Number(f)?f:S})}if(O||this.props.lockAspectRatio&&!C){S=w+(y-g)/r;this.setState({maxHeight:S>Number(f)?f:S})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(e,t,n)},t.prototype.onResize=function(e,t,n,r){if(/left/i.test(t)){var o=this.state.original.x-r.width;this.draggable.setState({x:o})}if(/top/i.test(t)){var i=this.state.original.y-r.height;this.draggable.setState({y:i})}this.updateOffsetFromParent();var a=this.offsetFromParent,c=this.getDraggablePosition().x+a.left,l=this.getDraggablePosition().y+a.top;this.resizingPosition={x:c,y:l},this.props.onResize&&this.props.onResize(e,t,n,r,{x:c,y:l})},t.prototype.onResizeStop=function(e,t,n,r){this.resizing=!1;var o=this.getMaxSizesFromProps(),i=o.maxWidth,a=o.maxHeight;this.setState({maxWidth:i,maxHeight:a}),this.props.onResizeStop&&this.props.onResizeStop(e,t,n,r,this.resizingPosition)},t.prototype.updateSize=function(e){this.resizable&&this.resizable.updateSize({width:e.width,height:e.height})},t.prototype.updatePosition=function(e){this.draggable.setState(e)},t.prototype.updateOffsetFromParent=function(){var e=this.props.scale,t=this.getParent(),n=this.getSelfElement();if(!t||null===n)return{top:0,left:0};var r=t.getBoundingClientRect(),o=r.left,i=r.top,a=n.getBoundingClientRect(),c=this.getDraggablePosition();this.offsetFromParent={left:a.left-o-c.x*e,top:a.top-i-c.y*e}},t.prototype.render=function(){var e=this.props,t=e.disableDragging,n=e.style,r=e.dragHandleClassName,i=e.position,a=e.onMouseDown,c=e.onMouseUp,l=e.dragAxis,s=e.dragGrid,u=e.bounds,f=e.enableUserSelectHack,d=e.cancel,p=e.children,h=(e.onResizeStart,e.onResize,e.onResizeStop,e.onDragStart,e.onDrag,e.onDragStop,e.resizeHandleStyles),m=e.resizeHandleClasses,g=e.resizeHandleComponent,b=e.enableResizing,v=e.resizeGrid,y=e.resizeHandleWrapperClass,A=e.resizeHandleWrapperStyle,w=e.scale,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe.length)&&(t=e.length);for(var n=0,r=new Array(t);nr?1:0}));return[{value:"und",label:"Default locale"}].concat(t)},_renderOption:function(e){return i.a.createElement("span",{key:e.value,title:"{option.value} [{option.value}]"},e.label," [",e.value,"]")},render:function(){var e=this;if(!this.state.locales)return i.a.createElement(Spinner,null);var t=this._formatLocales(this.state.locales);return i.a.createElement(en.b,tn({ref:function(t){e.locale=t}},this.props,{placeholder:"Pick a locale",options:t,optionRenderer:this._renderOption}))}}),on=n("XAUYjA+3"),an=n.n(on);function cn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ln(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ln(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var nr=function(e){var t=e.setFilteredRows,n=e.resetPagination,r=e.rows,i=tr(e,["setFilteredRows","resetPagination","rows"]);return o.createElement($n.a,er({},i,{rows:r,onDataFiltered:function(e,o){t(o&&""!==o?e:r),n()}}))};nr.defaultProps={id:void 0,filterKeys:void 0,displayKey:void 0,filterBy:void 0,filterLabel:void 0};var rr=nr;function or(){return(or=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var lr=function(e){var t=e.rows,n=void 0===t?[]:t,r=e.pagination,i=e.filterKeys,a=e.filterLabel,c=e.displayKey,l=e.filterBy,s=e.id,u=cr(e,["rows","pagination","filterKeys","filterLabel","displayKey","filterBy","id"]),f=ir(Object(o.useState)(r),2),d=f[0],p=d.perPage,h=d.page,m=f[1],g=ir(Object(o.useState)(n),2),b=g[0],v=g[1],y=function(e,t,n){var r=t*(n-1),o=r+t;return e.slice(r,o)}(b,p,h);Object(o.useEffect)((function(){v(n),m(r)}),[n,r]);return o.createElement(Xn.b,{totalItems:b.length,pageSize:p,activePage:h,onChange:function(e,t){m({page:e,perPage:t})},showPageSizeSelect:!0},o.createElement(z.a,or({},u,{id:s,customFilter:o.createElement(rr,{id:s,filterKeys:i,setFilteredRows:v,rows:n,resetPagination:function(){m({perPage:p,page:r.page})},displayKey:c,filterBy:l,filterLabel:a}),rows:y})))};lr.defaultProps={className:void 0,displayKey:void 0,filterBy:void 0,filterKeys:void 0,filterLabel:"Filter",headerCellFormatter:void 0,noDataText:void 0,pagination:{page:1,perPage:10,query:""},rowClassName:void 0,useResponsiveTable:!1},lr.propTypes={pagination:p.a.object};var sr=n("oHB5TGpC"),ur=n("H1SnJhgx");function fr(e){return(fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pr(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&i.a.createElement(m.w,{style:{marginTop:10}},t))}}])&&lo(t.prototype,n),r&&lo(t,r),a}(i.a.Component);mo(go,"propTypes",{options:p.a.array,selectedOptionsType:p.a.oneOf(["string","object"]),selectedOptions:p.a.arrayOf(p.a.oneOfType([p.a.string,p.a.object])),displayKey:p.a.string,idKey:p.a.string,onChange:p.a.func,autoFocus:p.a.bool}),mo(go,"defaultProps",{selectedOptionsType:"string",displayKey:"label",idKey:"value"});var bo=go,vo=n("pVin5tMh"),yo=n.n(vo),Ao=n("jDdy3wm7"),wo={insert:"head",singleton:!1},xo=(P()(Ao.a,wo),Ao.a.locals||{});function Eo(e){return(Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Co(e,t){for(var n=0;n0&&this.renderClearSelectionItem(),i.a.createElement(yo.a,{className:xo.scrollableList},i.a.createElement(m.w,null,p.map((function(t){return i.a.createElement(m.x,{key:t,onClick:s?function(){}:e.handleItemSelection(t),active:h.includes(t),disabled:s},r(t))})))));return i.a.createElement(m.F,{ref:function(t){e.overlay=t},trigger:c,placement:a,overlay:g,rootClose:!0},l)}}])&&Co(t.prototype,n),r&&Co(t,r),a}(i.a.Component);Mo(Bo,"propTypes",{id:p.a.string.isRequired,placement:p.a.oneOf(["top","right","bottom","left"]),title:p.a.string.isRequired,triggerNode:p.a.node.isRequired,triggerAction:p.a.oneOf(["click","hover","focus"]),items:p.a.arrayOf(p.a.string),itemFormatter:p.a.func,multiple:p.a.bool,selectedItems:p.a.arrayOf(p.a.string),onItemSelect:p.a.func.isRequired,displayDataFilter:p.a.bool,filterPlaceholder:p.a.string,clearSelectionText:p.a.string,disabled:p.a.bool}),Mo(Bo,"defaultProps",{placement:"bottom",triggerAction:"click",items:[],itemFormatter:function(e){return e},multiple:!1,selectedItems:[],displayDataFilter:!0,filterPlaceholder:"Type to filter",clearSelectionText:"Clear selection",disabled:!1});var Io=Bo,Do=n("S3hdh4Jf"),Po=n("QShKOe+t"),To=Object(a.default)(Ke.a).withConfig({displayName:"SharingDisabledPopover__StyledHoverForHelp",componentId:"sc-1bacng7-0"})(["margin-left:8px;"]),Ro=function(e){var t=e.type,n=e.description;return o.createElement(To,{title:"Sharing not possible",pullRight:!1},n||"Only owners of this ".concat(t," are allowed to share it."))};Ro.defaultProps={description:void 0};var No=Ro,Ho=function(e){var t=e.bsStyle,n=e.entityId,r=e.entityType,i=e.onClick,a=e.disabledInfo;return o.createElement(Ze,{id:n,type:r},(function(e){var n=e.disabled;return o.createElement(Po.a,{bsStyle:t,onClick:i,disabled:!!a||n,title:"Share"},o.createElement(Z.a,{name:"user-plus"})," Share ",(!!a||n)&&o.createElement(No,{type:r,description:a}))}))};Ho.defaultProps={bsStyle:"info",disabledInfo:void 0};var Lo=Ho,Fo=a.default.div.withConfig({displayName:"TextOverflowEllipsis__Wrapper",componentId:"gkmqvc-0"})(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),Vo=function(e){var t=e.children,n=e.titleOverride;return o.createElement(Fo,{title:n||t},t)};Vo.defaultProps={titleOverride:void 0};var _o=Vo,qo=n("nJQH1d3W"),Go=n("bJ2DuwDi"),Wo=n.n(Go);function Uo(e){return(Uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yo(){return(Yo=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Zo(e){return function(e){if(Array.isArray(e))return Ko(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ko(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ko(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ko(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?r[0]:e._UNCLASSIFIED_AREA,i=r.length>1?r[1]:r[0];t[o]||(t[o]=[]),t[o].push(i)}));var n=[];return Object.keys(t).sort().forEach((function(r){n.push({label:r,disabled:!0,value:r});var o=De.a.uniq(t[r]).sort().map((function(t){return{value:r===e._UNCLASSIFIED_AREA?t:"".concat(r,"/").concat(t),label:t.replace("_"," ")}}));n.push.apply(n,Zo(o))})),n})),oi(ni(e),"_renderOption",(function(e){return e.disabled?i.a.createElement("span",{key:e.value,title:e.value},e.label):i.a.createElement("span",{key:e.value,title:e.value}," ",e.label)})),e}return t=a,(n=[{key:"render",value:function(){var e=this,t=this._formatTimezones(),n=this.props,r=n.onChange,o=Jo(n,["onChange"]);return i.a.createElement(en.b,Yo({ref:function(t){e.timezone=t}},o,{inputId:"timezone-select",onChange:r,placeholder:"Pick a time zone",options:t,optionRenderer:this._renderOption}))}}])&&Xo(t.prototype,n),r&&Xo(t,r),a}(i.a.Component);oi(ii,"propTypes",{onChange:p.a.func}),oi(ii,"defaultProps",{onChange:function(){}});var ai=ii,ci=(n("GpisRHnY"),n("Y/FKx0zi")),li=n.n(ci),si=n("VPaD/Np4"),ui=n.n(si),fi=n("gCzbTwtZ"),di=n.n(fi),pi=(n("4ukn9ADr"),n("gr5Ikivs")),hi=n("IU8ofT4O"),mi=n("HbbeyvOy"),gi=n("L+5XEiOD");function bi(e){return(bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vi(){return(vi=Object.assign||function(e){for(var t=1;t-1})).map((function(t){return i.a.createElement(m.y,{key:t.value,onSelect:function(){return e._onValueTypeSelect(t.value)}},t.label)}));return i.a.createElement(m.q,{validationState:this.props.validationState},this.props.label&&i.a.createElement(m.l,{className:this.props.labelClassName},this.props.label),i.a.createElement(Mt.e,{className:this.props.wrapperClassName},i.a.createElement(m.t,null,i.a.createElement(m.p,{type:"text",onChange:this._onUpdate,value:this.state.value,required:this.props.required}),i.a.createElement(m.m,{componentClass:m.t.Button,id:"input-dropdown-addon",bsStyle:"error"===this.props.validationState?"danger":null,title:Hi.filter((function(t){return t.value===e.props.valueType}))[0].label},t)),this.props.help&&i.a.createElement(m.s,null,this.props.help)))}}])&&Bi(t.prototype,n),r&&Bi(t,r),a}(i.a.Component);Ni(Li,"propTypes",{update:p.a.func.isRequired,label:p.a.string,help:p.a.oneOfType([p.a.string,p.a.object]),required:p.a.bool,validationState:p.a.string,value:p.a.string,valueType:p.a.oneOf(Hi.map((function(e){return e.value}))),allowedTypes:function(e,t,n){var r=Hi.map((function(e){return e.value})),o=[];return e[t]instanceof Array?(e[t].forEach((function(e){r.indexOf(e)<0&&o.push(e)})),o.length>0?new Error("Invalid prop ".concat(t," supplied to ").concat(n,". Expected array of ").concat(r," but got invalid ").concat(o)):null):new Error("Invalid prop ".concat(t," supplied to ").concat(n,". Expected an array but got ").concat(e[t]))},labelClassName:p.a.string,wrapperClassName:p.a.string}),Ni(Li,"defaultProps",{value:"",valueType:"STRING",allowedTypes:Hi.map((function(e){return e.value})),label:"",help:"",required:!1,validationState:null,labelClassName:void 0,wrapperClassName:void 0});var Fi=Li,Vi=n("pjupVkkN"),_i=Gt()({displayName:"TimeUnit",propTypes:{value:p.a.number.isRequired,unit:p.a.oneOf(["NANOSECONDS","MICROSECONDS","MILLISECONDS","SECONDS","MINUTES","HOURS","DAYS"]).isRequired,zeroIsNever:p.a.bool},getDefaultProps:function(){return{zeroIsNever:!0}},UNITS:{NANOSECONDS:"nanoseconds",MICROSECONDS:"microseconds",MILLISECONDS:"milliseconds",SECONDS:"seconds",MINUTES:"minutes",HOURS:"hours",DAYS:"days"},render:function(){return 0===this.props.value&&this.props.zeroIsNever?i.a.createElement("span",null,"Never"):i.a.createElement("span",null,this.props.value," ",this.UNITS[this.props.unit])}}),qi=n("CWavSPnL"),Gi=n("x7QKyhPE"),Wi=n.n(Gi),Ui=n("kcvrazAT"),Yi=n("FOEh8xnd"),Ji=n("FiMCkbnt"),Zi=n("21p8kIWv"),Ki=n("dOmQZ9N/");function Qi(e){return(Qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ta(e){return function(e){if(Array.isArray(e))return na(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return na(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return na(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n8&&void 0!==arguments[8]&&arguments[8];return p(this,n),w(y(u=t.call(this)),"_value",void 0),u._value={columnPivots:e,rowPivots:r,series:o,sort:i,visualization:a,rollup:c,visualizationConfig:l,formattingSettings:s,eventAnnotation:f},u}return m(n,[{key:"rowPivots",get:function(){return this._value.rowPivots}},{key:"columnPivots",get:function(){return this._value.columnPivots}},{key:"series",get:function(){return this._value.series}},{key:"sort",get:function(){return this._value.sort}},{key:"rollup",get:function(){return this._value.rollup}},{key:"visualization",get:function(){return this._value.visualization}},{key:"visualizationConfig",get:function(){if(null!==this._value.visualizationConfig)return this._value.visualizationConfig}},{key:"formattingSettings",get:function(){return this._value.formattingSettings}},{key:"eventAnnotation",get:function(){return this._value.eventAnnotation}},{key:"isTimeline",get:function(){return this.rowPivots&&1===this.rowPivots.length&&this.rowPivots[0].field===i.n}},{key:"isEmpty",get:function(){var e=function(e){return!e.length};return e(this.rowPivots)&&e(this.columnPivots)&&e(this.series)}},{key:"toBuilder",value:function(){return new E(r.Map(this._value))}},{key:"toJSON",value:function(){var e=this._value;return{column_pivots:e.columnPivots,formatting_settings:e.formattingSettings,rollup:e.rollup,row_pivots:e.rowPivots,series:e.series,sort:e.sort,visualization:e.visualization,visualization_config:e.visualizationConfig,event_annotation:e.eventAnnotation}}},{key:"equals",value:function(e){var t=this;return e instanceof n&&["columnPivots","rowPivots","series","sort","rollup","eventAnnotation","visualizationConfig","visualization","formattingSettings"].every((function(n){return Object(o.a)(t[n],e[n])}))}},{key:"equalsForSearch",value:function(e){var t=this;return e instanceof n&&["rowPivots","columnPivots","series","sort","rollup","eventAnnotation","visualizationConfig"].every((function(n){return Object(a.a)(t[n],e[n])}))}}],[{key:"builder",value:function(){return(new E).rowPivots([]).columnPivots([]).series([]).sort([]).eventAnnotation(!1).rollup(!0)}},{key:"fromJSON",value:function(e){var t=e.column_pivots,n=e.formatting_settings,r=e.rollup,o=e.row_pivots,i=e.series,a=e.sort,d=e.visualization,p=e.visualization_config,h=e.event_annotation;return(new E).columnPivots(t.map(c.b.fromJSON)).rowPivots(o.map(c.b.fromJSON)).series(i.map(l.a.fromJSON)).sort(a.map(u.a.fromJSON)).visualization(d).rollup(r).visualizationConfig(null!==p?s.a.fromJSON(d,p):null).formattingSettings(null===n?void 0:f.a.fromJSON(n)).eventAnnotation(h).build()}}]),n}(n("QV5IEZon").a),E=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.Map();p(this,e),w(this,"value",void 0),this.value=t}return m(e,[{key:"columnPivots",value:function(t){return new e(this.value.set("columnPivots",t))}},{key:"rowPivots",value:function(t){return new e(this.value.set("rowPivots",t))}},{key:"series",value:function(t){return new e(this.value.set("series",t))}},{key:"sort",value:function(t){return new e(this.value.set("sort",t))}},{key:"visualization",value:function(t){return new e(this.value.set("visualization",t))}},{key:"visualizationConfig",value:function(t){return new e(this.value.set("visualizationConfig",t))}},{key:"rollup",value:function(t){return new e(this.value.set("rollup",t))}},{key:"formattingSettings",value:function(t){return new e(this.value.set("formattingSettings",t))}},{key:"eventAnnotation",value:function(t){return new e(this.value.set("eventAnnotation",t))}},{key:"build",value:function(){var e=this.value.toObject(),t=e.rowPivots,n=e.columnPivots,r=e.series,o=e.sort,i=e.visualization,a=e.rollup,c=e.visualizationConfig,l=e.formattingSettings,s=e.eventAnnotation,u=[].concat(t,n,r),f=o.filter((function(e){return u.find((function(t){return e.field===t.function||e.field===t.field}))})),d=!(n.length>0)||a;return new x(n,t,r,f,i,d,c,l,s)}}]),e}()},"1UXZJvV0":function(e,exports,t){var n=t("eSMJJvtd");e.exports=function(e,t,r){var o=e.length;return r=void 0===r?o:r,!t&&r>=o?e:n(e,t,r)}},"1VHdW8bt":function(e,t,n){"use strict";var r=n("ivGQtwpr"),o=n("ZCyXzcVy"),i=n("SOTkmQHs");t.a=function(e){var t=e.children;return r.createElement(i.a.Consumer,null,(function(e){return e===o.a.Type.Search?t:null}))}},"1VnJesae":function(e,t,n){"use strict";var r=n("21p8kIWv");function o(e,t){for(var n=0;n1);c++)n.splice(0,1);r[a]=n.join("")}var l=-1,s=0,u=0,f=-1,d=!1;for(a=0;as&&(l=f,s=u)):"0"===r[a]&&(d=!0,f=a,u=1);u>s&&(l=f,s=u),s>1&&r.splice(l,s,""),o=r.length;var p="";for(""===r[0]&&(p=":"),a=0;a0&&void 0!==arguments[0]?arguments[0]:r.Map();o(this,e),c(this,"value",void 0),this.value=t}return a(e,[{key:"name",value:function(t){return new e(this.value.set("name",t))}},{key:"build",value:function(){var e=this.value.toObject().name;return new l(e)}}]),e}()},"20fjMmlp":function(e,t,n){"use strict";var r=n("Tcl7Z3/1"),o=n("tWP0RIud"),i=n("FkRJWNmT"),a=n("j3u00ONn"),c=n("gFOjsjoV"),l=n("2mTT51OT"),s=n("ivGQtwpr"),u=n.n(s),f=n("lb5W8G2j"),d=n("O2+IqyHX"),p=n("jg2NYLcB"),h=(n("LGLPUPm5"),n("QGb3Cvzo"),n("UdSBFo3o"),n("yCbOTn9o"),n("euUgNtGQ"),n("u1waB656"),n("J58cfvX5"),n("Y/FKx0zi"),s.Component,Object(o.a)(r.a));t.a=h},"21p8kIWv":function(e,t,n){"use strict";function r(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=i(e,["children"]);return o.a.isCloud()?r.createElement(r.Fragment,null):r.Children.map(t,(function(e){return r.isValidElement(e)?r.cloneElement(e,n):e}))}},"2WaBAd13":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("VPaD/Np4");function o(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return new e(t,n,r)}}],(n=[{key:"type",get:function(){return this.value.get("type")}},{key:"properties",get:function(){return this.value.get("properties")}},{key:"indexNames",get:function(){return this.value.get("indexNames")}},{key:"isNumeric",value:function(){return this.properties.has(s)}},{key:"isEnumerable",value:function(){return this.properties.has(c)}},{key:"isCompound",value:function(){return this.properties.has(a)}},{key:"isDecorated",value:function(){return this.properties.has(u)}}])&&o(t.prototype,n),l&&o(t,l),e}();i(f,"Unknown",new f("unknown",[],[])),i(f,"Decorated",new f("decorated field",[u],[])),t.b=f;var d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return f.create(e,t,n)}},p={STRING:d("string",[c]),STRING_FTS:d("string",[l]),LONG:d("long",[s,c]),INT:d("int",[s,c]),SHORT:d("short",[s,c]),BYTE:d("byte",[s,c]),DOUBLE:d("double",[s,c]),FLOAT:d("float",[s,c]),DATE:d("date",[c]),BOOLEAN:d("boolean",[c]),BINARY:d("binary",[]),GEO_POINT:d("geo-point",[]),IP:d("ip",[c])}},"2gEPIf6i":function(e,exports,t){e.exports=t("jaIgFIJB")(1)},"2mG2jH0Y":function(e,exports,t){var n=t("06hQxAAN"),r=t("R+nhaj4z"),o=t("KqmDB8QD"),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=r(e),a=[];for(var c in e)("constructor"!=c||!t&&i.call(e,c))&&a.push(c);return a}},"2mLJ+Y9G":function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return v}));var r=["#b71c1c","#ce5246","#e27c72","#f3a4a1","#ffcdd2"],o=["#880e4f","#a5426d","#c16b8d","#dd93ae","#f8bbd0"],i=["#4a148c","#7240a3","#9869b9","#bc93d0","#e1bee7"],a=["#311b92","#6044a8","#876dbe","#ad98d3","#d1c4e9"],c=["#1a237e","#4e4998","#7772b3","#9e9dce","#c5cae9"],l=["#01579b","#4478b3","#6b9bcb","#8fbfe3","#b3e5fc"],s=["#006064","#3a8185","#62a3a8","#8ac6cc","#b2ebf2"],u=["#004d40","#356f64","#5e9389","#87b8b1","#b2dfdb"],f=["#33691e","#5d8947","#87a970","#b1cb9b","#dcedc8"],d=["#f57f17","#fd9e48","#ffbe73","#ffdc9c","#fff9c4"],p=["#e65100","#f17837","#fa9c5f","#febe88","#ffe0b2"],h=["#bf360c","#d35f39","#e58463","#f4a88f","#ffccbc"],m=["#3e2723","#624c48","#877470","#af9f9b","#d7ccc8"],g=["#263238","#4c575d","#758085","#a1abb0","#cfd8dc"],b=[r,o,i,a,c,["#0d47a1","#4b6ab7","#738fce","#97b5e4","#bbdefb"],l,s,u,["#194d33","#447155","#6e967a","#9abda1","#c8e6c9"],f,["#827717","#9e9544","#bab36d","#d5d398","#f0f4c3"],d,["#ff6f00","#ff943f","#ffb368","#ffd08e","#ffecb3"],p,h,m,g,["#000000","#3b3b3b","#777777","#b9b9b9","#ffffff"]],v=[l[1],d[1],f[1],r[1],i[1],m[1],o[1],d[3],s[3],c[0],p[0],u[0],a[0],g[2],i[4],h[0]]},"2mTT51OT":function(e,t,n){"use strict";n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return Ie})),n.d(t,"d",(function(){return S})),n.d(t,"e",(function(){return C})),n.d(t,"f",(function(){return B})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return _})),n.d(t,"i",(function(){return A})),n.d(t,"j",(function(){return b})),n.d(t,"k",(function(){return ue})),n.d(t,"l",(function(){return Be})),n.d(t,"m",(function(){return X})),n.d(t,"n",(function(){return ge})),n.d(t,"o",(function(){return se})),n.d(t,"p",(function(){return be})),n.d(t,"q",(function(){return ve})),n.d(t,"r",(function(){return te})),n.d(t,"s",(function(){return fe})),n.d(t,"t",(function(){return ye})),n.d(t,"u",(function(){return pe})),n.d(t,"v",(function(){return U})),n.d(t,"w",(function(){return F})),n.d(t,"x",(function(){return q})),n.d(t,"y",(function(){return K})),n.d(t,"z",(function(){return we})),n.d(t,"A",(function(){return xe})),n.d(t,"B",(function(){return N})),n.d(t,"C",(function(){return Ee})),n.d(t,"D",(function(){return W})),n.d(t,"E",(function(){return je})),n.d(t,"F",(function(){return ze})),n.d(t,"G",(function(){return Me})),n.d(t,"H",(function(){return ee})),n.d(t,"I",(function(){return I}));var r=n("8cmQSZtb"),o=n("lb5W8G2j");var i=n("rZdQQRbB");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c=n("u1waB656"),l=n.n(c),s=n("FkRJWNmT"),u=n("j3u00ONn"),f=n("gFOjsjoV"),d=n("XqvqThyJ"),p=n("ivGQtwpr"),h=n("Y/FKx0zi");function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t-1}function k(e){return S(e)?window.pageYOffset:e.scrollTop}function j(e,t){S(e)?window.scrollTo(0,t):e.scrollTop=t}function z(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,o=k(e),i=t-o,a=10,c=0;function l(){var t=z(c+=a,o,i,n);j(e,t),cn.bottom?j(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o=p)return{placement:"bottom",maxHeight:t};if(E>=p&&!a)return i&&M(l,C,S),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&w>=r)return i&&M(l,C,S),{placement:"bottom",maxHeight:a?w-v:E-v};if("auto"===o||a){var z=t,B=a?A:x;return B>=r&&(z=Math.min(B-v-c.controlHeight,t)),{placement:"top",maxHeight:z}}if("bottom"===o)return i&&j(l,C),{placement:"bottom",maxHeight:t};break;case"top":if(A>=p)return{placement:"top",maxHeight:t};if(x>=p&&!a)return i&&M(l,O,S),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&A>=r){var I=t;return(!a&&x>=r||a&&A>=r)&&(I=a?A-y:x-y),i&&M(l,O,S),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return s}var L=function(e){return"auto"===e?"bottom":e},F=function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return t={label:"menu"},Object(d.a)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Object(d.a)(t,"backgroundColor",a.neutral0),Object(d.a)(t,"borderRadius",o),Object(d.a)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(d.a)(t,"marginBottom",i.menuGutter),Object(d.a)(t,"marginTop",i.menuGutter),Object(d.a)(t,"position","absolute"),Object(d.a)(t,"width","100%"),Object(d.a)(t,"zIndex",1),t},V=Object(p.createContext)({getPortalPlacement:null}),_=function(e){Object(f.a)(n,e);var t=A(n);function n(){var e;Object(s.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i