define(["app/plugins/sdk"],function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=36)}([function(t,e,r){var n=r(23),o="object"==typeof self&&self&&self.Object===Object&&self,u=n||o||Function("return this")();t.exports=u},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){var n=r(50),o=r(56);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e,r){var n=r(7),o=r(52),u=r(53),i="[object Null]",a="[object Undefined]",c=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?a:i:c&&c in Object(t)?o(t):u(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){var n=r(40),o=r(41),u=r(42),i=r(43),a=r(44);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=u,c.prototype.has=i,c.prototype.set=a,t.exports=c},function(t,e,r){var n=r(21);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(0).Symbol;t.exports=n},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n=r(2)(Object,"create");t.exports=n},function(t,e,r){var n=r(65);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e,r){var n=r(19),o=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},function(t,e,r){var n=r(39),o=r(4);t.exports=function t(e,r,u,i,a){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,u,i,t,a))}},function(t,e,r){var n=r(2)(r(0),"Map");t.exports=n},function(t,e,r){var n=r(57),o=r(64),u=r(66),i=r(67),a=r(68);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=u,c.prototype.has=i,c.prototype.set=a,t.exports=c},function(t,e,r){var n=r(85),o=r(92),u=r(17);t.exports=function(t){return u(t)?n(t):o(t)}},function(t,e){var r=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}},function(t,e,r){var n=r(22),o=r(16);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e,r){var n=r(1),o=r(19),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||i.test(t)||!u.test(t)||null!=e&&t in Object(e)}},function(t,e,r){var n=r(3),o=r(4),u="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&n(t)==u}},function(t,e,r){var n=r(5),o=r(45),u=r(46),i=r(47),a=r(48),c=r(49);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=u,s.prototype.get=i,s.prototype.has=a,s.prototype.set=c,t.exports=s},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(3),o=r(8),u="[object AsyncFunction]",i="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=n(t);return e==i||e==a||e==u||e==c}},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(51))},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var n=r(69),o=r(72),u=r(73),i=1,a=2;t.exports=function(t,e,r,c,s,f){var p=r&i,l=t.length,v=e.length;if(l!=v&&!(p&&v>l))return!1;var h=f.get(t);if(h&&f.get(e))return h==e;var y=-1,d=!0,b=r&a?new n:void 0;for(f.set(t,e),f.set(e,t);++y<l;){var _=t[y],x=e[y];if(c)var g=p?c(x,_,y,e,t,f):c(_,x,y,t,e,f);if(void 0!==g){if(g)continue;d=!1;break}if(b){if(!o(e,function(t,e){if(!u(b,e)&&(_===t||s(_,t,r,c,f)))return b.push(e)})){d=!1;break}}else if(_!==x&&!s(_,x,r,c,f)){d=!1;break}}return f.delete(t),f.delete(e),d}},function(t,e,r){var n=r(87),o=r(4),u=Object.prototype,i=u.hasOwnProperty,a=u.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&i.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,e,r){(function(t){var n=r(0),o=r(88),u="object"==typeof e&&e&&!e.nodeType&&e,i=u&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===u?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||o;t.exports=c}).call(this,r(28)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?r:e)&&("number"==o||"symbol"!=o&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,r){var n=r(89),o=r(90),u=r(91),i=u&&u.isTypedArray,a=i?o(i):n;t.exports=a},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},function(t,e,r){var n=r(8);t.exports=function(t){return t==t&&!n(t)}},function(t,e){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},function(t,e,r){var n=r(35),o=r(11);t.exports=function(t,e){for(var r=0,u=(e=n(e,t)).length;null!=t&&r<u;)t=t[o(e[r++])];return r&&r==u?t:void 0}},function(t,e,r){var n=r(1),o=r(18),u=r(109),i=r(112);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:u(i(t))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationsQueryCtrl=e.QueryOptionsCtrl=e.ConfigCtrl=e.QueryCtrl=e.Datasource=void 0;var n=r(37),o=r(127),u=function(){function t(){}return t.templateUrl="partials/config.html",t}(),i=function(){function t(){}return t.templateUrl="partials/query.options.html",t}(),a=function(){function t(){}return t.templateUrl="partials/annotations.editor.html",t}();e.Datasource=n.GenericDatasource,e.QueryCtrl=o.GenericDatasourceQueryCtrl,e.ConfigCtrl=u,e.QueryOptionsCtrl=i,e.AnnotationsQueryCtrl=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GenericDatasource=void 0;var n=a(r(38)),o=a(r(8)),u=a(r(101)),i=a(r(102));function a(t){return t&&t.__esModule?t:{default:t}}var c=function(){return(c=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=function(){function t(t,e,r,n){this.name=t.name,this.url=t.url,this.q=e,this.backendSrv=r,this.templateSrv=n,this.withCredentials=t.withCredentials,this.headers={"Content-Type":"application/json"},"string"==typeof t.basicAuth&&t.basicAuth.length>0&&(this.headers.Authorization=t.basicAuth)}return t.$inject=["instanceSettings","$q","backendSrv","templateSrv"],t.prototype.query=function(t){var e=t;return e.targets=this.buildQueryTargets(t),e.targets.length<=0?this.q.when({data:[]}):(this.templateSrv.getAdhocFilters?e.adhocFilters=this.templateSrv.getAdhocFilters(this.name):e.adhocFilters=[],t.scopedVars=c({},this.getVariables(),t.scopedVars),this.doRequest({url:this.url+"/query",data:e,method:"POST"}))},t.prototype.testDatasource=function(){return this.doRequest({url:this.url+"/",method:"GET"}).then(function(t){return 200===t.status?{status:"success",message:"Data source is working",title:"Success"}:{status:"error",message:"Data source is not working: "+t.message,title:"Error"}})},t.prototype.annotationQuery=function(t){var e={annotation:{query:this.templateSrv.replace(t.annotation.query,{},"glob"),name:t.annotation.name,datasource:t.annotation.datasource,enable:t.annotation.enable,iconColor:t.annotation.iconColor},range:t.range,rangeRaw:t.rangeRaw,variables:this.getVariables()};return this.doRequest({url:this.url+"/annotations",method:"POST",data:e}).then(function(t){return t.data})},t.prototype.metricFindQuery=function(t){var e={target:this.templateSrv.replace(t,null,"regex")};return this.doRequest({url:this.url+"/search",data:e,method:"POST"}).then(this.mapToTextValue)},t.prototype.mapToTextValue=function(t){return(0,i.default)(t.data,function(t,e){return t&&t.text&&t.value?{text:t.text,value:t.value}:(0,o.default)(t)?{text:t,value:e}:{text:t,value:t}})},t.prototype.doRequest=function(t){return t.withCredentials=this.withCredentials,t.headers=this.headers,this.backendSrv.datasourceRequest(t)},t.prototype.buildQueryTargets=function(t){var e=this;return t.targets.filter(function(t){return"select metric"!==t.target}).map(function(r){var n=(0,u.default)(r.data)?null:r.data;("string"==typeof n&&""===n.trim()&&(n=null),null!==n)&&(null!==n.match(/("(\$.+?)")/g)&&n.match(/("(\$.+?)")/g).map(function(r){var o=e.templateSrv.replace(r,t.scopedVars,"json");o!==r&&(n=n.replace(r,o.substring(1,o.length-1)))}),n=JSON.parse(n));return{data:n,target:e.templateSrv.replace(r.target,t.scopedVars,"regex"),refId:r.refId,hide:r.hide,type:r.type}})},t.prototype.getVariables=function(){var t=(0,u.default)(this.templateSrv.index)?{}:this.templateSrv.index,e={};return Object.keys(t).forEach(function(r){var o=t[r],u=o.current.value;("$__all"===u||(0,n.default)(u,["$__all"]))&&(u=null===o.allValue?o.options.slice(1).map(function(t){return t.value}):o.allValue),e[r]={text:o.current.text,value:u}}),e},t.prototype.getTagKeys=function(t){var e=this;return new Promise(function(r,n){e.doRequest({url:e.url+"/tag-keys",method:"POST",data:t}).then(function(t){return r(t.data)})})},t.prototype.getTagValues=function(t){var e=this;return new Promise(function(r,n){e.doRequest({url:e.url+"/tag-values",method:"POST",data:t}).then(function(t){return r(t.data)})})},t}();e.GenericDatasource=s},function(t,e,r){var n=r(12);t.exports=function(t,e){return n(t,e)}},function(t,e,r){var n=r(20),o=r(25),u=r(74),i=r(78),a=r(96),c=r(1),s=r(27),f=r(30),p=1,l="[object Arguments]",v="[object Array]",h="[object Object]",y=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,d,b,_){var x=c(t),g=c(e),j=x?v:a(t),m=g?v:a(e),O=(j=j==l?h:j)==h,w=(m=m==l?h:m)==h,S=j==m;if(S&&s(t)){if(!s(e))return!1;x=!0,O=!1}if(S&&!O)return _||(_=new n),x||f(t)?o(t,e,r,d,b,_):u(t,e,j,r,d,b,_);if(!(r&p)){var A=O&&y.call(t,"__wrapped__"),P=w&&y.call(e,"__wrapped__");if(A||P){var C=A?t.value():t,T=P?e.value():e;return _||(_=new n),b(C,T,r,d,_)}}return!!S&&(_||(_=new n),i(t,e,r,d,b,_))}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(6),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},function(t,e,r){var n=r(6);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(6);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(6);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(5);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(5),o=r(13),u=r(14),i=200;t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<i-1)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new u(a)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(22),o=r(54),u=r(8),i=r(24),a=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,f=c.toString,p=s.hasOwnProperty,l=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!u(t)||o(t))&&(n(t)?l:a).test(i(t))}},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(7),o=Object.prototype,u=o.hasOwnProperty,i=o.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=u.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=i.call(t);return n&&(e?t[a]=r:delete t[a]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n=r(55),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!o&&o in t}},function(t,e,r){var n=r(0)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(58),o=r(5),u=r(13);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(u||o),string:new n}}},function(t,e,r){var n=r(59),o=r(60),u=r(61),i=r(62),a=r(63);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=u,c.prototype.has=i,c.prototype.set=a,t.exports=c},function(t,e,r){var n=r(9);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(9),o="__lodash_hash_undefined__",u=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return r===o?void 0:r}return u.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(9),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},function(t,e,r){var n=r(9),o="__lodash_hash_undefined__";t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?o:e,this}},function(t,e,r){var n=r(10);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(10);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(10);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(10);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},function(t,e,r){var n=r(14),o=r(70),u=r(71);function i(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}i.prototype.add=i.prototype.push=o,i.prototype.has=u,t.exports=i},function(t,e){var r="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,r),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(7),o=r(75),u=r(21),i=r(25),a=r(76),c=r(77),s=1,f=2,p="[object Boolean]",l="[object Date]",v="[object Error]",h="[object Map]",y="[object Number]",d="[object RegExp]",b="[object Set]",_="[object String]",x="[object Symbol]",g="[object ArrayBuffer]",j="[object DataView]",m=n?n.prototype:void 0,O=m?m.valueOf:void 0;t.exports=function(t,e,r,n,m,w,S){switch(r){case j:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case g:return!(t.byteLength!=e.byteLength||!w(new o(t),new o(e)));case p:case l:case y:return u(+t,+e);case v:return t.name==e.name&&t.message==e.message;case d:case _:return t==e+"";case h:var A=a;case b:var P=n&s;if(A||(A=c),t.size!=e.size&&!P)return!1;var C=S.get(t);if(C)return C==e;n|=f,S.set(t,e);var T=i(A(t),A(e),n,m,w,S);return S.delete(t),T;case x:if(O)return O.call(t)==O.call(e)}return!1}},function(t,e,r){var n=r(0).Uint8Array;t.exports=n},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},function(t,e,r){var n=r(79),o=1,u=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,c){var s=r&o,f=n(t),p=f.length;if(p!=n(e).length&&!s)return!1;for(var l=p;l--;){var v=f[l];if(!(s?v in e:u.call(e,v)))return!1}var h=c.get(t);if(h&&c.get(e))return h==e;var y=!0;c.set(t,e),c.set(e,t);for(var d=s;++l<p;){var b=t[v=f[l]],_=e[v];if(i)var x=s?i(_,b,v,e,t,c):i(b,_,v,t,e,c);if(!(void 0===x?b===_||a(b,_,r,i,c):x)){y=!1;break}d||(d="constructor"==v)}if(y&&!d){var g=t.constructor,j=e.constructor;g!=j&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof j&&j instanceof j)&&(y=!1)}return c.delete(t),c.delete(e),y}},function(t,e,r){var n=r(80),o=r(82),u=r(15);t.exports=function(t){return n(t,u,o)}},function(t,e,r){var n=r(81),o=r(1);t.exports=function(t,e,r){var u=e(t);return o(t)?u:n(u,r(t))}},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){var n=r(83),o=r(84),u=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(t){return null==t?[]:(t=Object(t),n(i(t),function(e){return u.call(t,e)}))}:o;t.exports=a},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,u=[];++r<n;){var i=t[r];e(i,r,t)&&(u[o++]=i)}return u}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(86),o=r(26),u=r(1),i=r(27),a=r(29),c=r(30),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=u(t),f=!r&&o(t),p=!r&&!f&&i(t),l=!r&&!f&&!p&&c(t),v=r||f||p||l,h=v?n(t.length,String):[],y=h.length;for(var d in t)!e&&!s.call(t,d)||v&&("length"==d||p&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||a(d,y))||h.push(d);return h}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){var n=r(3),o=r(4),u="[object Arguments]";t.exports=function(t){return o(t)&&n(t)==u}},function(t,e){t.exports=function(){return!1}},function(t,e,r){var n=r(3),o=r(16),u=r(4),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.exports=function(t){return u(t)&&o(t.length)&&!!i[n(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,r){(function(t){var n=r(23),o="object"==typeof e&&e&&!e.nodeType&&e,u=o&&"object"==typeof t&&t&&!t.nodeType&&t,i=u&&u.exports===o&&n.process,a=function(){try{var t=u&&u.require&&u.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a}).call(this,r(28)(t))},function(t,e,r){var n=r(93),o=r(94),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))u.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,r){var n=r(95)(Object.keys,Object);t.exports=n},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(97),o=r(13),u=r(98),i=r(99),a=r(100),c=r(3),s=r(24),f=s(n),p=s(o),l=s(u),v=s(i),h=s(a),y=c;(n&&"[object DataView]"!=y(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=y(new o)||u&&"[object Promise]"!=y(u.resolve())||i&&"[object Set]"!=y(new i)||a&&"[object WeakMap]"!=y(new a))&&(y=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case f:return"[object DataView]";case p:return"[object Map]";case l:return"[object Promise]";case v:return"[object Set]";case h:return"[object WeakMap]"}return e}),t.exports=y},function(t,e,r){var n=r(2)(r(0),"DataView");t.exports=n},function(t,e,r){var n=r(2)(r(0),"Promise");t.exports=n},function(t,e,r){var n=r(2)(r(0),"Set");t.exports=n},function(t,e,r){var n=r(2)(r(0),"WeakMap");t.exports=n},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,r){var n=r(31),o=r(103),u=r(121),i=r(1);t.exports=function(t,e){return(i(t)?n:u)(t,o(e,3))}},function(t,e,r){var n=r(104),o=r(107),u=r(117),i=r(1),a=r(118);t.exports=function(t){return"function"==typeof t?t:null==t?u:"object"==typeof t?i(t)?o(t[0],t[1]):n(t):a(t)}},function(t,e,r){var n=r(105),o=r(106),u=r(33);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?u(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},function(t,e,r){var n=r(20),o=r(12),u=1,i=2;t.exports=function(t,e,r,a){var c=r.length,s=c,f=!a;if(null==t)return!s;for(t=Object(t);c--;){var p=r[c];if(f&&p[2]?p[1]!==t[p[0]]:!(p[0]in t))return!1}for(;++c<s;){var l=(p=r[c])[0],v=t[l],h=p[1];if(f&&p[2]){if(void 0===v&&!(l in t))return!1}else{var y=new n;if(a)var d=a(v,h,l,t,e,y);if(!(void 0===d?o(h,v,u|i,a,y):d))return!1}}return!0}},function(t,e,r){var n=r(32),o=r(15);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var u=e[r],i=t[u];e[r]=[u,i,n(i)]}return e}},function(t,e,r){var n=r(12),o=r(108),u=r(114),i=r(18),a=r(32),c=r(33),s=r(11),f=1,p=2;t.exports=function(t,e){return i(t)&&a(e)?c(s(t),e):function(r){var i=o(r,t);return void 0===i&&i===e?u(r,t):n(e,i,f|p)}}},function(t,e,r){var n=r(34);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},function(t,e,r){var n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,u=r(110)(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(n,function(t,r,n,u){e.push(n?u.replace(o,"$1"):r||t)}),e});t.exports=u},function(t,e,r){var n=r(111),o=500;t.exports=function(t){var e=n(t,function(t){return r.size===o&&r.clear(),t}),r=e.cache;return e}},function(t,e,r){var n=r(14),o="Expected a function";function u(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],u=r.cache;if(u.has(o))return u.get(o);var i=t.apply(this,n);return r.cache=u.set(o,i)||u,i};return r.cache=new(u.Cache||n),r}u.Cache=n,t.exports=u},function(t,e,r){var n=r(113);t.exports=function(t){return null==t?"":n(t)}},function(t,e,r){var n=r(7),o=r(31),u=r(1),i=r(19),a=1/0,c=n?n.prototype:void 0,s=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(u(e))return o(e,t)+"";if(i(e))return s?s.call(e):"";var r=e+"";return"0"==r&&1/e==-a?"-0":r}},function(t,e,r){var n=r(115),o=r(116);t.exports=function(t,e){return null!=t&&o(t,e,n)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,r){var n=r(35),o=r(26),u=r(1),i=r(29),a=r(16),c=r(11);t.exports=function(t,e,r){for(var s=-1,f=(e=n(e,t)).length,p=!1;++s<f;){var l=c(e[s]);if(!(p=null!=t&&r(t,l)))break;t=t[l]}return p||++s!=f?p:!!(f=null==t?0:t.length)&&a(f)&&i(l,f)&&(u(t)||o(t))}},function(t,e){t.exports=function(t){return t}},function(t,e,r){var n=r(119),o=r(120),u=r(18),i=r(11);t.exports=function(t){return u(t)?n(i(t)):o(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,r){var n=r(34);t.exports=function(t){return function(e){return n(e,t)}}},function(t,e,r){var n=r(122),o=r(17);t.exports=function(t,e){var r=-1,u=o(t)?Array(t.length):[];return n(t,function(t,n,o){u[++r]=e(t,n,o)}),u}},function(t,e,r){var n=r(123),o=r(126)(n);t.exports=o},function(t,e,r){var n=r(124),o=r(15);t.exports=function(t,e){return t&&n(t,e,o)}},function(t,e,r){var n=r(125)();t.exports=n},function(t,e){t.exports=function(t){return function(e,r,n){for(var o=-1,u=Object(e),i=n(e),a=i.length;a--;){var c=i[t?a:++o];if(!1===r(u[c],c,u))break}return e}}},function(t,e,r){var n=r(17);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var u=r.length,i=e?u:-1,a=Object(r);(e?i--:++i<u)&&!1!==o(a[i],i,a););return r}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GenericDatasourceQueryCtrl=void 0;var n=r(128),o=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.target.hide=!1,n.target.target=n.target.target||"select metric",n.target.type||(n.target.type="table"===n.panelCtrl.panel.type?"table":"timeseries"),n.target.data=n.target.data||"",n.types=[{text:"Time series",value:"timeseries"},{text:"Table",value:"table"}],n.showJSON=!1,n}return o(e,t),e.$inject=["$scope","$injector"],e.prototype.getOptions=function(t){return this.datasource.metricFindQuery(t||"")},e.prototype.toggleEditorMode=function(){this.target.rawQuery=!this.target.rawQuery},e.prototype.onChangeInternal=function(){this.panelCtrl.refresh()},e.templateUrl="partials/query.editor.html",e}(n.QueryCtrl);e.GenericDatasourceQueryCtrl=u},function(e,r){e.exports=t}])});
//# sourceMappingURL=module.js.map