!function(e){function t(t){for(var r,i,a=t[0],o=t[1],s=0,c=[];s`/app/dashboards#${p(e,t)}`;function p(e,t){return e?`${c}/${e}${t?`?${a}=(viewMode:edit)`:""}`:`${d}`}function u(e){return e?`${s}?filter="${e}"`:s}const h="dashboard_loaded",b="saved_object_loaded_time",f="saved_object_delete_time",m="saved_object_post_time",g="dashboard",E="dashboards",_="dashboard",v="searchSessionId",O=15,y=8,I=20,w=48,x=w/2,S=100,R={viewMode:n.ViewMode.EDIT,timeRestore:!1,query:{query:"",language:"kuery"},description:"",filters:[],panels:{},title:"",tags:[],useMargins:!0,syncColors:!1,syncCursor:!0,syncTooltips:!1,hidePanelTitles:!1}},function(e,t,r){e.exports=r(21)(1465)},function(e,t){e.exports=__kbnSharedDeps__.KbnI18n},function(e,t){e.exports=__kbnSharedDeps__.ElasticEui},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/embeddable/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t,r){"use strict";r.d(t,"a",(function(){return v})),r.d(t,"b",(function(){return _})),r(14),r(40);var n=r(0),i=r(23),a=r(20),o=r.n(a),s=r(27),d=r.n(s),c=r(5),l=r(10),p=r(6),u=r(4),h=r(1);const b=u.i18n.translate("sharedUXPackages.prompt.errors.notFound.title",{defaultMessage:"Page not found"}),f=u.i18n.translate("sharedUXPackages.prompt.errors.notFound.body",{defaultMessage:"Sorry, the page you're looking for can't be found. It might have been removed or renamed, or maybe it never existed at all."}),m=u.i18n.translate("sharedUXPackages.prompt.errors.notFound.goBacklabel",{defaultMessage:"Go back"}),g=({actions:e,title:t,body:i})=>{const{colorMode:a}=Object(c.useEuiTheme)(),[o,s]=Object(n.useState)(),d=Object(n.useCallback)((()=>history.back()),[]),l=Object(n.useMemo)((()=>[Object(h.jsx)(c.EuiButtonEmpty,{iconType:"arrowLeft",flush:"both",onClick:d},m)]),[d]);Object(n.useEffect)((()=>{(async()=>{if("DARK"===a){const{default:e}=await r.e(11).then(r.t.bind(null,222,7));s(e)}else{const{default:e}=await r.e(12).then(r.t.bind(null,223,7));s(e)}})()}),[a]);const p=o?Object(h.jsx)(c.EuiImage,{src:o,alt:""}):null;return Object(h.jsx)(c.EuiEmptyPrompt,{color:"subdued",titleSize:"m",icon:p,title:"string"!=typeof t&&t?t:Object(h.jsx)("h2",null,null!=t?t:b),body:null!=i?i:f,actions:null!=e?e:l})},E=({dashboardRedirect:e})=>Object(h.jsx)(g,{title:u.i18n.translate("dashboard.renderer.404Title",{defaultMessage:"Dashboard not found"}),body:u.i18n.translate("dashboard.renderer.404Body",{defaultMessage:"Sorry, the dashboard you're looking for can't be found. It might have been removed or renamed, or maybe it never existed at all."}),actions:e?[Object(h.jsx)(c.EuiButtonEmpty,{iconType:"arrowLeft",flush:"both",onClick:()=>e({destination:"listing"})},u.i18n.translate("dashboard.renderer.404Action",{defaultMessage:"View available dashboards"}))]:void 0}),_=Object(n.forwardRef)((({savedObjectId:e,getCreationOptions:t,dashboardRedirect:a,showPlainSpinner:s},u)=>{const b=Object(n.useRef)(null),[f,m]=Object(n.useState)(!0),[g,_]=Object(n.useState)(!1),[O,y]=Object(n.useState)(),[I,w]=Object(n.useState)(),[x,S]=Object(n.useState)(!1);Object(n.useImperativeHandle)(u,(()=>{return null!=(e=O)?e:null;var e}),[O]),Object(n.useEffect)((()=>{(async()=>{const{pluginServices:e}=await r.e(0).then(r.bind(null,66)),{screenshotMode:{isScreenshotMode:t}}=e.getServices();_(t())})()}),[]);const R=Object(n.useMemo)((()=>Object(i.v4)()),[]);Object(n.useEffect)((()=>{if(null==I||I.destroy(),S(!1),w(void 0),O)return void O.navigateToDashboard(e).catch((e=>{null==O||O.destroy(),y(void 0),w(new p.ErrorEmbeddable(e,{id:R})),e instanceof l.SavedObjectNotFound&&S(!0)}));m(!0);let n=!1;return(async()=>{const i=await(null==t?void 0:t()),{pluginServices:a}=await r.e(0).then(r.bind(null,66)),{embeddable:o}=a.getServices(),s=o.getEmbeddableFactory(v),d=await(null==s?void 0:s.create({id:R},void 0,i,e));m(!1),n||!d?(y(void 0),null==d||d.destroy()):Object(p.isErrorEmbeddable)(d)?(w(d),d.error instanceof l.SavedObjectNotFound&&S(!0)):(b.current&&d.render(b.current),y(d))})(),()=>{n=!0}}),[e]),d()((()=>{null==I||I.destroy(),null==O||O.destroy()}));const N=o()("dashboardViewport",{"dashboardViewport--screenshotMode":g},{"dashboardViewport--loading":f}),L=s?Object(h.jsx)(c.EuiLoadingSpinner,{size:"xxl"}):Object(h.jsx)(c.EuiLoadingElastic,{size:"xxl"});return Object(h.jsx)("div",{className:N},x?Object(h.jsx)(E,{dashboardRedirect:a}):I?I.render():f?L:Object(h.jsx)("div",{ref:b}))})),v="dashboard"},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/controls/common");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return i}));const n=1,i="dashboard"},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/kibanaUtils/common");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t){e.exports=__kbnSharedDeps__.Lodash},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/kibanaUtils/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t,r){"use strict";r.d(t,"c",(function(){return c})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return DashboardAppLocatorDefinition}));var n=r(3),i=r.n(n),a=r(11),o=r(12),s=r(2);const d=Object(a.flow)(JSON.stringify,JSON.parse),c=e=>(Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]})),e),l="DASHBOARD_APP_LOCATOR";class DashboardAppLocatorDefinition{constructor(e){i()(this,"id",l),i()(this,"getLocation",(async e=>{const{filters:t,useHash:n,preserveSavedFilters:i,dashboardId:a,...l}=e,p=null!=n?n:this.deps.useHashedUrl,u=a?`view/${a}`:"create",h=l;h.filters=e.filters&&[...await(async()=>{if(!1===i)return[];if(!e.dashboardId)return[];try{return await this.deps.getDashboardFilterFields(e.dashboardId)}catch(e){return[]}})(),...e.filters];const{isFilterPinned:b}=await Promise.resolve().then(r.t.bind(null,32,7));let f=`#/${u}`;return f=Object(o.setStateToKbnUrl)("_g",c({time:e.timeRange,filters:null==t?void 0:t.filter((e=>b(e))),refreshInterval:e.refreshInterval}),{useHash:p},f),e.searchSessionId&&(f=`${f}&${s.t}=${e.searchSessionId}`),{app:s.c,path:f,state:d(c(h))}})),this.deps=e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return DashboardContainerFactoryDefinition}));var n=r(3),i=r.n(n),a=r(4),o=r(6),s=r(7),d=r(2),c=r(16);class DashboardContainerFactoryDefinition{constructor(e){i()(this,"isContainerType",!0),i()(this,"type",s.a),i()(this,"inject",void 0),i()(this,"extract",void 0),i()(this,"isEditable",(async()=>!1)),i()(this,"getDisplayName",(()=>a.i18n.translate("dashboard.factory.displayName",{defaultMessage:"Dashboard"}))),i()(this,"create",(async(e,t,n,i)=>{const a=performance.now(),{createDashboard:s}=await Promise.all([r.e(0),r.e(2),r.e(4)]).then(r.bind(null,65));try{return await s(n,a,i)}catch(e){return new o.ErrorEmbeddable(e,{id:e.id})}})),this.persistableStateService=e,this.inject=Object(c.e)(this.persistableStateService),this.extract=Object(c.d)(this.persistableStateService)}getDefaultInput(){return d.k}}},function(e,t,r){r.r(t);var n=__kbnBundles__.get("entry/core/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t,r){"use strict";r.d(t,"g",(function(){return p})),r.d(t,"f",(function(){return u})),r.d(t,"e",(function(){return m})),r.d(t,"d",(function(){return g})),r.d(t,"c",(function(){return s})),r.d(t,"b",(function(){return d})),r.d(t,"a",(function(){return E}));var n=r(28),i=r.n(n),a=r(8),o=r(11);const s=e=>{const t={};return null==e||e.forEach(((e,r)=>{var n,i;t[null!==(n=e.panelIndex)&&void 0!==n?n:String(r)]={type:(i=e).type,version:i.version,gridData:i.gridData,panelRefName:i.panelRefName,explicitInput:{id:i.panelIndex,...void 0!==i.id&&{savedObjectId:i.id},...void 0!==i.title&&{title:i.title},...i.embeddableConfig}}})),t},d=(e,t)=>Object.values(e).map((e=>function(e,t){const r=e.explicitInput.savedObjectId;return{version:null!=t?t:e.version,type:e.type,gridData:e.gridData,panelIndex:e.explicitInput.id,embeddableConfig:Object(o.omit)(e.explicitInput,["id","savedObjectId","title"]),...void 0!==e.explicitInput.title&&{title:e.explicitInput.title},...void 0!==r&&{id:r},...void 0!==e.panelRefName&&{panelRefName:e.panelRefName}}}(e,t))),c=e=>!("version"in e)||!e.version||i()("7.3.0",e.version);function l(e){let t=[];if("string"==typeof e.panelsJSON){const r=JSON.parse(e.panelsJSON);Array.isArray(r)&&(t=r)}return{controlGroupInput:e.controlGroupInput&&Object(a.rawControlGroupAttributesToControlGroupInput)(e.controlGroupInput),type:"dashboard",panels:s(t)}}function p({attributes:e,references:t=[]},r){const n=l(e),i=r.embeddablePersistableStateService.inject(n,t),a=d(i.panels),o={...e,panelsJSON:JSON.stringify(a)};return e.controlGroupInput&&i.controlGroupInput&&(o.controlGroupInput={...e.controlGroupInput,panelsJSON:JSON.stringify(i.controlGroupInput.panels)}),o}function u({attributes:e,references:t=[]},r){const n=l(e),i=n.panels;if(Object.values(i).some(c))return function({attributes:e,references:t=[]}){if("string"!=typeof e.panelsJSON)return{attributes:e,references:t};const r=[],n=JSON.parse(String(e.panelsJSON));return n.forEach(((e,t)=>{if(!e.type)throw new Error(`"type" attribute is missing from panel "${t}"`);e.id&&(e.panelRefName=`panel_${t}`,r.push({name:`panel_${t}`,type:e.type,id:e.id}),delete e.type,delete e.id)})),{references:[...t,...r],attributes:{...e,panelsJSON:JSON.stringify(n)}}}({attributes:e,references:t});const a=Object.values(i).find((e=>void 0===e.type));if(a)throw new Error(`"type" attribute is missing from panel "${a.explicitInput.id}"`);const{references:o,state:s}=r.embeddablePersistableStateService.extract(n),p=d(s.panels),u={...e,panelsJSON:JSON.stringify(p)};return e.controlGroupInput&&s.controlGroupInput&&(u.controlGroupInput={...e.controlGroupInput,panelsJSON:JSON.stringify(s.controlGroupInput.panels)}),{references:[...t,...o],attributes:u}}const h=e=>`${e.explicitInput.id}:`,b="controlGroup_",f="dashboard_control_group",m=e=>(t,r)=>{const n={...t};if("panels"in n){n.panels={...n.panels};for(const[t,i]of Object.entries(n.panels)){n.panels[t]={...i};const a=h(i),o=r.filter((e=>0===e.name.indexOf(a))).map((e=>({...e,name:e.name.replace(a,"")}))),s=0===o.length?r:o;if(void 0!==i.panelRefName){const e=s.find((e=>e.name===i.panelRefName));if(!e)throw new Error(`Could not find reference "${i.panelRefName}"`);void 0!==e&&(n.panels[t]={...i,type:e.type,explicitInput:{...n.panels[t].explicitInput,savedObjectId:e.id}},delete n.panels[t].panelRefName)}const{type:d,...c}=e.inject({...n.panels[t].explicitInput,type:n.panels[t].type},s);n.panels[t].explicitInput=c}}if("controlGroupInput"in n&&n.controlGroupInput){const t=r.filter((e=>0===e.name.indexOf(b))).map((e=>({...e,name:e.name.replace(b,"")}))),{type:i,...o}=e.inject({...n.controlGroupInput,type:a.CONTROL_GROUP_TYPE,id:f},t);n.controlGroupInput=o}return n},g=e=>t=>{const r={...t},n=[];if("panels"in r){r.panels={...r.panels};for(const[t,i]of Object.entries(r.panels)){const a=h(i);i.explicitInput.savedObjectId&&(i.panelRefName=`panel_${t}`,n.push({name:`${a}panel_${t}`,type:i.type,id:i.explicitInput.savedObjectId}),delete i.explicitInput.savedObjectId);const{state:o,references:s}=e.extract({...i.explicitInput,type:i.type}),d=s.filter((e=>"tag"!==e.type)).map((e=>({...e,name:`${a}${e.name}`})));n.push(...d);const{type:c,...l}=o;r.panels[t].explicitInput=l}}if("controlGroupInput"in r&&r.controlGroupInput){const{state:t,references:i}=e.extract({...r.controlGroupInput,type:a.CONTROL_GROUP_TYPE,id:f});r.controlGroupInput=t;const o=i.map((e=>({...e,name:`${b}${e.name}`})));n.push(...o)}return{state:r,references:n}},E={ENABLE_LABS_UI:"labs:dashboard:enable_ui"}},function(e,t){e.exports=__kbnSharedDeps__.RxjsOperators},function(e,t,r){"use strict";var n,i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function o(e){for(var t=-1,r=0;rconsole.error("SEMVER",...e):()=>{};e.exports=r}).call(this,r(45))},function(e,t){const r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},function(e,t,r){"use strict";r.d(t,"b",(function(){return placeholder_embeddable_factory_PlaceholderEmbeddableFactory})),r.d(t,"a",(function(){return o}));var n=r(3),i=r.n(n),a=r(4);class placeholder_embeddable_factory_PlaceholderEmbeddableFactory{constructor(){i()(this,"type",o)}async isEditable(){return!1}canCreateNew(){return!1}async create(e,t){const{PlaceholderEmbeddable:n}=await Promise.all([r.e(0),r.e(10)]).then(r.bind(null,224));return new n(e,t)}getDisplayName(){return a.i18n.translate("dashboard.placeholder.factory.displayName",{defaultMessage:"placeholder"})}}const o="placeholder"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(30),i=r(0),a=n.__importDefault(r(33));t.default=function(e){var t=i.useRef(e);t.current=e,a.default((function(){return function(){return t.current()}}))}},function(e,t,r){const n=r(31);e.exports=(e,t,r)=>n(e,t,r)>0},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/embeddable/common");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t){e.exports=__kbnSharedDeps__.TsLib},function(e,t,r){const n=r(34);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},function(e,t){e.exports=__kbnSharedDeps__.KbnEsQuery},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.default=function(e){n.useEffect(e,[])}},function(e,t,r){const n=r(24),{MAX_LENGTH:i,MAX_SAFE_INTEGER:a}=r(25),{safeRe:o,t:s}=r(35),d=r(36),{compareIdentifiers:c}=r(46);class SemVer{constructor(e,t){if(t=d(t),e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[s.LOOSE]:o[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=SemVer},function(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:a}=r(25),o=r(24),s=(t=e.exports={}).re=[],d=t.safeRe=[],c=t.src=[],l=t.t={};let p=0;const u="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",a],[u,i]],b=(e,t,r)=>{const n=(e=>{for(const[t,r]of h)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),i=p++;o(e,i,t),l[e]=i,c[i]=t,s[i]=new RegExp(t,r?"g":void 0),d[i]=new RegExp(n,r?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${u}*`),b("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),b("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${u}+`),b("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),b("FULL",`^${c[l.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),b("LOOSE",`^${c[l.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),b("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),b("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),b("COERCERTL",c[l.COERCE],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",b("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",b("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},function(e,t){const r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n},function(e,t,r){"use strict";r.r(t),r.d(t,"createDashboardEditUrl",(function(){return h.v})),r.d(t,"DASHBOARD_APP_ID",(function(){return h.c})),r.d(t,"LEGACY_DASHBOARD_APP_ID",(function(){return h.p})),r.d(t,"DashboardRenderer",(function(){return E.b})),r.d(t,"DASHBOARD_CONTAINER_TYPE",(function(){return E.a})),r.d(t,"DashboardListingTable",(function(){return x})),r.d(t,"cleanEmptyKeys",(function(){return u.c})),r.d(t,"plugin",(function(){return S}));var n=r(3),i=r.n(n),a=r(4),o=r(22),s=r(17),d=r(15),c=r(10),l=r(12),p=r(14),u=r(13),h=r(2),b=r(26),f=r(9);let m;const g=new Promise((e=>m=e));class plugin_DashboardPlugin{constructor(e){i()(this,"appStateUpdater",new o.BehaviorSubject((()=>({})))),i()(this,"stopUrlTracking",void 0),i()(this,"currentHistory",void 0),i()(this,"dashboardFeatureFlagConfig",void 0),i()(this,"locator",void 0),this.initializerContext=e}async startDashboardKibanaServices(e,t,n){const{registry:i,pluginServices:a}=await r.e(0).then(r.bind(null,66));a.setRegistry(i.start({coreStart:e,startPlugins:t,initContext:n})),m()}setup(e,{share:t,embeddable:n,home:i,urlForwarding:o,data:m,contentManagement:g}){this.dashboardFeatureFlagConfig=this.initializerContext.config.get(),t&&(this.locator=t.url.locators.create(new u.b({useHashedUrl:e.uiSettings.get("state:storeInSessionStorage"),getDashboardFilterFields:async e=>{var t,n;const{pluginServices:i}=await r.e(0).then(r.bind(null,66)),{dashboardContentManagement:{loadDashboardState:a}}=i.getServices();return null!==(t=null===(n=(await a({id:e})).dashboardInput)||void 0===n?void 0:n.filters)&&void 0!==t?t:[]}})));const{appMounted:E,appUnMounted:_,stop:v,restorePreviousUrl:O}=Object(l.createKbnUrlTracker)({baseUrl:e.http.basePath.prepend("/app/dashboards"),defaultSubUrl:`#${h.o}`,storageKey:`lastUrl:${e.http.basePath.get()}:dashboard`,navLinkUpdater$:this.appStateUpdater,toastNotifications:e.notifications.toasts,stateParams:[{kbnUrlKey:"_g",stateUpdate$:m.query.state$.pipe(Object(s.filter)((({changes:e})=>!!(e.globalFilters||e.time||e.refreshInterval))),Object(s.map)((async({state:e})=>{var t;const{isFilterPinned:n}=await Promise.resolve().then(r.t.bind(null,32,7));return{...e,filters:null===(t=e.filters)||void 0===t?void 0:t.filter(n)}})))}],getHistory:()=>this.currentHistory,onBeforeNavLinkSaved:e=>{const t=["s","title","sort","sortdir"];return Object(c.replaceUrlHashQuery)(e,(e=>([h.t,...t].forEach((t=>{delete e[t]})),e)))}});e.getStartServices().then((([,e])=>{const t=new p.a(e.embeddable);n.registerEmbeddableFactory(t.type,t);const r=new b.b;n.registerEmbeddableFactory(r.type,r)})),this.stopUrlTracking=()=>{v()};const y={id:h.c,title:"Dashboard",order:2500,euiIconType:"logoKibana",defaultPath:`#${h.o}`,updater$:this.appStateUpdater,category:d.DEFAULT_APP_CATEGORIES.kibana,mount:async t=>{this.currentHistory=t.history,t.element.classList.add(d.APP_WRAPPER_CLASS);const{mountApp:n}=await Promise.all([r.e(0),r.e(1),r.e(2),r.e(5)]).then(r.bind(null,227));E();const i={restorePreviousUrl:O,scopedHistory:()=>this.currentHistory,onAppLeave:t.onAppLeave,setHeaderActionMenu:t.setHeaderActionMenu};return n({core:e,appUnMounted:_,element:t.element,mountContext:i})}};e.application.register(y),o.forwardApp(h.c,h.c,(e=>{const[,t]=/(\?.*)/.exec(e)||[];return`#/list${t||""}`})),o.forwardApp(h.p,h.c,(e=>{const[,t,r]=/dashboard\/?(.*?)($|\?.*)/.exec(e)||[];return t||r?!t&&r?`#/create${r||""}`:`#/view/${t}${r||""}`:"#/list"}));const I=a.i18n.translate("dashboard.featureCatalogue.dashboardTitle",{defaultMessage:"Dashboard"});return i&&i.featureCatalogue.register({id:h.p,title:I,subtitle:a.i18n.translate("dashboard.featureCatalogue.dashboardSubtitle",{defaultMessage:"Analyze data in dashboards."}),description:a.i18n.translate("dashboard.featureCatalogue.dashboardDescription",{defaultMessage:"Display and share a collection of visualizations and saved searches."}),icon:"dashboardApp",path:`/app/dashboards#${h.o}`,showOnHomePage:!1,category:"data",solutionId:"kibana",order:100}),g.registry.register({id:f.a,version:{latest:f.b},name:I}),{locator:this.locator}}start(e,t){return this.startDashboardKibanaServices(e,t,this.initializerContext).then((async()=>{var n;const{buildAllDashboardActions:i}=await Promise.all([r.e(0),r.e(6)]).then(r.bind(null,228));i({core:e,plugins:t,allowByValueEmbeddables:null===(n=this.dashboardFeatureFlagConfig)||void 0===n?void 0:n.allowByValueEmbeddables})})),{locator:this.locator,dashboardFeatureFlagConfig:this.dashboardFeatureFlagConfig,findDashboardsService:async()=>{const{pluginServices:e}=await r.e(0).then(r.bind(null,66)),{dashboardContentManagement:{findDashboards:t}}=e.getServices();return t}}}stop(){this.stopUrlTracking&&this.stopUrlTracking()}}var E=r(7),_=r(0),v=r.n(_),O=r(5),y=r(1);const I=()=>Object(y.jsx)(O.EuiEmptyPrompt,{icon:Object(y.jsx)(O.EuiLoadingSpinner,{size:"l"})}),w=v.a.lazy((()=>(async()=>{const e=Promise.all([r.e(0),r.e(1),r.e(9)]).then(r.bind(null,225)),[t]=await Promise.all([e,g]);return{default:t.DashboardListingTable}})().then((e=>e)))),x=e=>Object(y.jsx)(_.Suspense,{fallback:Object(y.jsx)(I,null)},Object(y.jsx)(w,e));function S(e){return new plugin_DashboardPlugin(e)}},function(e,t,r){r(39),__kbnBundles__.define("plugin/dashboard/public",r,37)},function(e,t,r){r.p=window.__kbnPublicPath__.dashboard},function(e,t,r){switch(window.__kbnThemeTag__){case"v8dark":return r(41);case"v8light":return r(43)}},function(e,t,r){var n=r(18),i=r(42);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);n(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,r){(t=r(19)(!1)).push([e.i,".react-grid-layout .gs-w{z-index:auto}.dshLayout--viewing .react-resizable-handle{display:none}.dshLayout--editing .react-resizable-handle{bottom:0;height:24px;padding-bottom:8px;padding-right:8px;right:0;width:24px;z-index:1000}.dshLayout-isMaximizedPanel{height:100%!important}.dshDashboardGrid__item--hidden{left:-9999px;position:absolute;top:-9999px}.dshLayout--noAnimation .react-grid-item.cssTransforms{transition-property:none!important}.dshDashboardGrid__item--expanded{height:100%!important;left:0!important;padding:8px;position:absolute;top:0!important;transform:none!important;width:100%!important}.kbnAppWrapper--hiddenChrome .dshDashboardGrid__item--expanded{padding:0}.react-grid-item>.react-resizable-handle{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath fill='%2398A2B3' d='M6 6H0V4.2h4.2V0H6z'/%3E%3C/svg%3E\")}.react-grid-item>.react-resizable-handle:after{border:none!important}.react-grid-item>.react-resizable-handle:focus,.react-grid-item>.react-resizable-handle:hover{background-color:#f3d3714d}.react-grid-item.react-draggable-dragging,.react-grid-item.resizing{z-index:2000!important}.react-grid-item.react-draggable-dragging{border-radius:6px;box-shadow:0 2.7px 9px rgba(0,0,0,.325),0 9.4px 24px rgba(0,0,0,.225),0 21.8px 43px #0003;transition:box-shadow .15s cubic-bezier(.694,.0482,.335,1)}.react-grid-item.react-grid-placeholder{background:#f3d371;border-radius:6px}.dshLayout-withoutMargins .embPanel{border-radius:0;box-shadow:none}.dshLayout-withoutMargins .dshDashboardGrid__item--highlighted,.dshLayout-withoutMargins .embPanel__content{border-radius:0}.dshDashboardGrid__item--expanded .embPanel,.dshLayout-withoutMargins:not(.dshLayout--editing) .embPanel{border-color:#0000}.dshDashboardGrid__item--expanded .embPanel--dragHandle:hover,.dshLayout-withoutMargins:not(.dshLayout--editing) .embPanel--dragHandle:hover{background-color:unset;cursor:default}@keyframes highlightOutline{0%{outline:4px solid #7dded800}25%{outline:4px solid #7dded880}to{outline:4px solid #7dded800}}.dshDashboardGrid__item--highlighted{animation-duration:4s;animation-name:highlightOutline;animation-timing-function:ease-out;border-radius:4px;z-index:999!important}.dshDashboardViewportWrapper{display:flex;flex:auto;flex-direction:column}.dshDashboardViewport{width:100%}.dshDashboardViewport--panelExpanded{flex:1}.dshDashboardViewport-controls{margin:0 8px;padding-bottom:4px;padding-top:8px}.dashboardViewport--screenshotMode .controlsWrapper--empty{display:none}@page{size:A4;orientation:portrait;margin:0;margin-bottom:20mm;margin-top:15mm}@media print{html{background-color:#fff}a[href]:after{content:\" [\" attr(href) \"]\"}figure{page-break-inside:avoid}*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}@media projection,screen{.printViewport__vis{height:131mm;margin:24px auto;padding:4mm;width:210mm}.printViewport__vis:nth-child(2n){padding-bottom:4mm;padding-top:4mm;page-break-after:always}.printViewport__vis:last-child{page-break-after:avoid}.printViewport__vis .embPanel__header button{display:none}}@media print{.printViewport__vis{height:131mm;padding-left:4mm;padding-right:4mm;page-break-inside:avoid;width:210mm}.printViewport__vis:nth-child(2n){padding-bottom:4mm;padding-top:4mm;page-break-after:always}.printViewport__vis:last-child{page-break-after:avoid}.printViewport__vis .euiPanel{box-shadow:none!important}.printViewport__vis .embPanel__header button{display:none}.printViewport__vis *{overflow:hidden!important}}.dashboardContainer,.dashboardViewport{display:flex;flex:auto}.dashboardViewport--loading{align-items:center;justify-content:center}.dshEmptyPromptParent{display:flex;flex-grow:1}.dshEmptyPromptPageTemplate{background-color:inherit;padding-block-start:0!important}.dshEmptyWidgetContainer{border-radius:6px;padding:32px;padding-top:0!important}.dshEmptyWidgetContainer .euiEmptyPrompt__icon{margin-bottom:0}",""]),e.exports=t},function(e,t,r){var n=r(18),i=r(44);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);n(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,r){(t=r(19)(!1)).push([e.i,".react-grid-layout .gs-w{z-index:auto}.dshLayout--viewing .react-resizable-handle{display:none}.dshLayout--editing .react-resizable-handle{bottom:0;height:24px;padding-bottom:8px;padding-right:8px;right:0;width:24px;z-index:1000}.dshLayout-isMaximizedPanel{height:100%!important}.dshDashboardGrid__item--hidden{left:-9999px;position:absolute;top:-9999px}.dshLayout--noAnimation .react-grid-item.cssTransforms{transition-property:none!important}.dshDashboardGrid__item--expanded{height:100%!important;left:0!important;padding:8px;position:absolute;top:0!important;transform:none!important;width:100%!important}.kbnAppWrapper--hiddenChrome .dshDashboardGrid__item--expanded{padding:0}.react-grid-item>.react-resizable-handle{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath fill='%2369707D' d='M6 6H0V4.2h4.2V0H6z'/%3E%3C/svg%3E\")}.react-grid-item>.react-resizable-handle:after{border:none!important}.react-grid-item>.react-resizable-handle:focus,.react-grid-item>.react-resizable-handle:hover{background-color:#fec5141a}.react-grid-item.react-draggable-dragging,.react-grid-item.resizing{z-index:2000!important}.react-grid-item.react-draggable-dragging{border-radius:6px;box-shadow:0 2.7px 9px #00000021,0 9.4px 24px #00000017,0 21.8px 43px #00000014;transition:box-shadow .15s cubic-bezier(.694,.0482,.335,1)}.react-grid-item.react-grid-placeholder{background:#fec514;border-radius:6px}.dshLayout-withoutMargins .embPanel{border-radius:0;box-shadow:none}.dshLayout-withoutMargins .dshDashboardGrid__item--highlighted,.dshLayout-withoutMargins .embPanel__content{border-radius:0}.dshDashboardGrid__item--expanded .embPanel,.dshLayout-withoutMargins:not(.dshLayout--editing) .embPanel{border-color:#0000}.dshDashboardGrid__item--expanded .embPanel--dragHandle:hover,.dshLayout-withoutMargins:not(.dshLayout--editing) .embPanel--dragHandle:hover{background-color:unset;cursor:default}@keyframes highlightOutline{0%{outline:4px solid #00bfb300}25%{outline:4px solid #00bfb380}to{outline:4px solid #00bfb300}}.dshDashboardGrid__item--highlighted{animation-duration:4s;animation-name:highlightOutline;animation-timing-function:ease-out;border-radius:4px;z-index:999!important}.dshDashboardViewportWrapper{display:flex;flex:auto;flex-direction:column}.dshDashboardViewport{width:100%}.dshDashboardViewport--panelExpanded{flex:1}.dshDashboardViewport-controls{margin:0 8px;padding-bottom:4px;padding-top:8px}.dashboardViewport--screenshotMode .controlsWrapper--empty{display:none}@page{size:A4;orientation:portrait;margin:0;margin-bottom:20mm;margin-top:15mm}@media print{html{background-color:#fff}a[href]:after{content:\" [\" attr(href) \"]\"}figure{page-break-inside:avoid}*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}@media projection,screen{.printViewport__vis{height:131mm;margin:24px auto;padding:4mm;width:210mm}.printViewport__vis:nth-child(2n){padding-bottom:4mm;padding-top:4mm;page-break-after:always}.printViewport__vis:last-child{page-break-after:avoid}.printViewport__vis .embPanel__header button{display:none}}@media print{.printViewport__vis{height:131mm;padding-left:4mm;padding-right:4mm;page-break-inside:avoid;width:210mm}.printViewport__vis:nth-child(2n){padding-bottom:4mm;padding-top:4mm;page-break-after:always}.printViewport__vis:last-child{page-break-after:avoid}.printViewport__vis .euiPanel{box-shadow:none!important}.printViewport__vis .embPanel__header button{display:none}.printViewport__vis *{overflow:hidden!important}}.dashboardContainer,.dashboardViewport{display:flex;flex:auto}.dashboardViewport--loading{align-items:center;justify-content:center}.dshEmptyPromptParent{display:flex;flex-grow:1}.dshEmptyPromptPageTemplate{background-color:inherit;padding-block-start:0!important}.dshEmptyWidgetContainer{border-radius:6px;padding:32px;padding-top:0!important}.dshEmptyWidgetContainer .euiEmptyPrompt__icon{margin-bottom:0}",""]),e.exports=t},function(e,t,r){e.exports=r(21)(448)},function(e,t){const r=/^[0-9]+$/,n=(e,t)=>{const n=r.test(e),i=r.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:en(t,e)}},function(e,t){e.exports=__kbnSharedDeps__.KbnI18nReact},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/kibanaReact/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/uiActions/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/data/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/presentationUtil/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t){e.exports=__kbnSharedDeps__.ReactDom},function(e,t){e.exports=__kbnSharedDeps__.ReactRouterDom},function(e,t){e.exports=__kbnSharedDeps__.Moment},function(e,t){e.exports=__kbnSharedDeps__.ReactRouterDomV5Compat},function(e,t){e.exports=__kbnSharedDeps__.EmotionCache},function(e,t){e.exports=__kbnSharedDeps__.KbnAnalytics},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/savedObjects/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t){e.exports=__kbnSharedDeps__.SaferLodashSet},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/visualizations/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/controls/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/savedObjectsFinder/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/share/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t,r){r.r(t);var n=__kbnBundles__.get("plugin/unifiedSearch/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))}]);