Files
server/opt/monitoring/grafana/plugins/grafana-metricsdrilldown-app/503.js
2026-01-07 20:52:11 +01:00

2 lines
5.7 KiB
JavaScript

(self.webpackChunkgrafana_metricsdrilldown_app=self.webpackChunkgrafana_metricsdrilldown_app||[]).push([[503],{2757:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},3298:function(e){e.exports=function(){"use strict";var e={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},t=Array.prototype.slice;function n(e){var n=e.length;return n?1===n?[e[0]]:2===n?[e[0],e[1]]:3===n?[e[0],e[1],e[2]]:t.call(e,0):[]}function r(t){var n={};for(var r in t)e[r]||(n[r]=t[r]);return n}function o(e){return"function"==typeof e&&e.isMemoized}function i(e,t){return e===t||e!=e&&t!=t}function a(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}var s=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:n(this.keys),size:this.size,values:n(this.values)}},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,n=t.isMatchingKey,r=t.maxSize,o=this.keys,i=o.length;if(!i)return-1;if(n(o[0],e))return 0;if(r>1)for(var a=1;a<i;a++)if(n(o[a],e))return a;return-1},e.prototype._getKeyIndexForMany=function(e){var t=this.options.isEqual,n=this.keys,r=n.length;if(!r)return-1;if(1===r)return this._getKeyIndexForSingle(e);var o,i,a=e.length;if(a>1){for(var s=0;s<r;s++)if((o=n[s]).length===a){for(i=0;i<a&&t(o[i],e[i]);i++);if(i===a)return s}}else for(s=0;s<r;s++)if((o=n[s]).length===a&&t(o[0],e[0]))return s;return-1},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var n=t[0],r=n.length;if(e.length!==r)return-1;var o=this.options.isEqual;if(r>1){for(var i=0;i<r;i++)if(!o(n[i],e[i]))return-1;return 0}return o(n[0],e[0])?0:-1},e.prototype.orderByLru=function(e,t,n){for(var r=this.keys,o=this.values,i=r.length,a=n;a--;)r[a+1]=r[a],o[a+1]=o[a];r[0]=e,o[0]=t;var s=this.options.maxSize;i===s&&n===i?(r.pop(),o.pop()):n>=s&&(r.length=o.length=s)},e.prototype.updateAsyncCache=function(e){var t=this,n=this.options,r=n.onCacheChange,o=n.onCacheHit,i=this.keys[0],a=this.values[0];this.values[0]=a.then(function(n){return t.shouldUpdateOnHit&&o(t,t.options,e),t.shouldUpdateOnChange&&r(t,t.options,e),n},function(e){var n=t.getKeyIndex(i);throw-1!==n&&(t.keys.splice(n,1),t.values.splice(n,1)),e})},e}();function u(e,t){if(void 0===t&&(t={}),o(e))return u(e.fn,a(e.options,t));if("function"!=typeof e)throw new TypeError("You must pass a function to `memoize`.");var f=t.isEqual,h=void 0===f?i:f,c=t.isMatchingKey,l=t.isPromise,p=void 0!==l&&l,y=t.maxSize,g=void 0===y?1:y,d=t.onCacheAdd,A=t.onCacheChange,v=t.onCacheHit,E=t.transformKey,m=a({isEqual:h,isMatchingKey:c,isPromise:p,maxSize:g,onCacheAdd:d,onCacheChange:A,onCacheHit:v,transformKey:E},r(t)),I=new s(m),S=I.keys,C=I.values,_=I.canTransformKey,N=I.shouldCloneArguments,O=I.shouldUpdateOnAdd,K=I.shouldUpdateOnChange,U=I.shouldUpdateOnHit,H=function(){var t=N?n(arguments):arguments;_&&(t=E(t));var r=S.length?I.getKeyIndex(t):-1;if(-1!==r)U&&v(I,m,H),r&&(I.orderByLru(S[r],C[r],r),K&&A(I,m,H));else{var o=e.apply(this,arguments),i=N?t:n(arguments);I.orderByLru(i,o,S.length),p&&I.updateAsyncCache(H),O&&d(I,m,H),K&&A(I,m,H)}return C[0]};return H.cache=I,H.fn=e,H.isMemoized=!0,H.options=m,H}return u}()},5503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BRAZILIAN_PORTUGUESE:()=>o.jQ,CHINESE_SIMPLIFIED:()=>o.fY,CHINESE_TRADITIONAL:()=>o.AY,CZECH_CZECHIA:()=>o.w2,DEFAULT_LANGUAGE:()=>o.Nm,DUTCH_NETHERLANDS:()=>o.wQ,ENGLISH_US:()=>o.MB,FRENCH_FRANCE:()=>o.NY,GERMAN_GERMANY:()=>o.rT,HUNGARIAN_HUNGARY:()=>o.tv,INDONESIAN_INDONESIA:()=>o.IP,ITALIAN_ITALY:()=>o.bE,JAPANESE_JAPAN:()=>o.Hp,KOREAN_KOREA:()=>o.y6,LANGUAGES:()=>r.Y,POLISH_POLAND:()=>o.tS,PORTUGUESE_PORTUGAL:()=>o.LE,PSEUDO_LOCALE:()=>o.wi,RUSSIAN_RUSSIA:()=>o.k8,SPANISH_SPAIN:()=>o.d_,SWEDISH_SWEDEN:()=>o.$0,TURKISH_TURKEY:()=>o.mz,Trans:()=>i.x6,formatDate:()=>p,formatDateRange:()=>g,formatDuration:()=>y,initPluginTranslations:()=>i.wR,initRegionalFormatForTests:()=>d,t:()=>i.t});var r=n(5730),o=n(116),i=n(5591),a=n(2757),s=n(3298);const u=e=>s(e,{isEqual:a});function f(e){e.cache.keys.length=0,e.cache.values.length=0}let h;const c=u((e,t)=>new Intl.DateTimeFormat(e,t)),l=u((e,t)=>new Intl.DurationFormat(e,t)),p=u((e,t={})=>{const n="string"==typeof e?new Date(e):e;return c(h,t).format(n)}),y=u((e,t={})=>l(h,t).format(e)),g=(e,t,n={})=>{const r="string"==typeof e?new Date(e):e,o="string"==typeof t?new Date(t):t;return c(h,n).formatRange(r,o)},d=e=>{f(p),f(y),h=e}}}]);
//# sourceMappingURL=503.js.map?_cache=60d29976a765e012e812