@perses-dev/victorialogs-plugin 0.5.0-beta.7 → 0.5.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__mf/js/{VictoriaLogs.ca556252.js → VictoriaLogs.635392ce.js} +2 -2
- package/__mf/js/async/1433.3d2ebb70.js +7 -0
- package/__mf/js/async/1616.0258fe9a.js +1 -0
- package/__mf/js/async/198.cc78ac12.js +2 -0
- package/__mf/js/async/2043.2c73ebfe.js +2 -0
- package/__mf/js/async/2377.2348cb20.js +1 -0
- package/__mf/js/async/2786.5f881482.js +2 -0
- package/__mf/js/async/2901.9c427b40.js +1 -0
- package/__mf/js/async/3286.38c055b9.js +2 -0
- package/__mf/js/async/392.49d52d98.js +2 -0
- package/__mf/js/async/4077.39e0efff.js +1 -0
- package/__mf/js/async/4121.356a5dcc.js +2 -0
- package/__mf/js/async/4248.847c390d.js +1 -0
- package/__mf/js/async/4496.af265a24.js +1 -0
- package/__mf/js/async/4960.f43ba55c.js +2 -0
- package/__mf/js/async/5019.644f7b0c.js +1 -0
- package/__mf/js/async/5071.6670fa87.js +1 -0
- package/__mf/js/async/5440.1ca84a65.js +2 -0
- package/__mf/js/async/5587.3f86da0e.js +1 -0
- package/__mf/js/async/5706.87cad874.js +1 -0
- package/__mf/js/async/6274.a464d64f.js +2 -0
- package/__mf/js/async/6609.6f2adcdd.js +88 -0
- package/__mf/js/async/6854.207d90c8.js +1 -0
- package/__mf/js/async/7192.92d05ad2.js +1 -0
- package/__mf/js/async/{7740.071ecf65.js → 7740.57961d20.js} +1 -1
- package/__mf/js/async/7817.4a21d143.js +2 -0
- package/__mf/js/async/7862.f33fc6ee.js +2 -0
- package/__mf/js/async/7958.426f9f71.js +52 -0
- package/__mf/js/async/7968.62aeba5d.js +1 -0
- package/__mf/js/async/7978.f0523bd3.js +1 -0
- package/__mf/js/async/{8253.35b5a0dc.js → 8253.66844887.js} +1 -1
- package/__mf/js/async/8356.b320d176.js +1 -0
- package/__mf/js/async/8470.ccd01079.js +2 -0
- package/__mf/js/async/873.d1c527eb.js +1 -0
- package/__mf/js/async/9207.3c630cde.js +1 -0
- package/__mf/js/async/9235.ce1cdbe4.js +1 -0
- package/__mf/js/async/941.fd358e10.js +2 -0
- package/__mf/js/async/{9440.0e7f2584.js → 9440.c066de88.js} +2 -2
- package/__mf/js/async/9588.453d5d98.js +1 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsDatasource.049ba3c8.js +2 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.ae8c52fb.js +2 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.975e3794.js +2 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.08f75beb.js +1 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.d266fd53.js +1 -0
- package/__mf/js/{main.e604f250.js → main.4f60490d.js} +3 -3
- package/lib/components/logsql-editor.js +2 -2
- package/lib/components/logsql-editor.js.map +1 -1
- package/lib/components/logsql-extension.d.ts +1 -1
- package/lib/components/logsql-extension.d.ts.map +1 -1
- package/lib/components/logsql-extension.js +1 -1
- package/lib/components/logsql-extension.js.map +1 -1
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.d.ts.map +1 -1
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.js +9 -5
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.js.map +1 -1
- package/lib/model/client.d.ts +2 -0
- package/lib/model/client.d.ts.map +1 -1
- package/lib/model/client.js +8 -4
- package/lib/model/client.js.map +1 -1
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.d.ts.map +1 -1
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js +5 -6
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js.map +1 -1
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.d.ts.map +1 -1
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js +5 -6
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js.map +1 -1
- package/mf-manifest.json +135 -135
- package/mf-stats.json +135 -135
- package/package.json +6 -6
- package/__mf/js/async/1616.a3cbd019.js +0 -1
- package/__mf/js/async/198.42cbc766.js +0 -2
- package/__mf/js/async/2043.09d2b336.js +0 -2
- package/__mf/js/async/2377.955d23a6.js +0 -1
- package/__mf/js/async/2786.4f8e4f80.js +0 -2
- package/__mf/js/async/2901.ead6a746.js +0 -1
- package/__mf/js/async/3068.121a74bc.js +0 -88
- package/__mf/js/async/3286.5f22185a.js +0 -2
- package/__mf/js/async/3873.fc2ead2a.js +0 -52
- package/__mf/js/async/392.241997df.js +0 -2
- package/__mf/js/async/4077.8bd92530.js +0 -1
- package/__mf/js/async/4121.f0c5c912.js +0 -2
- package/__mf/js/async/4248.99e208e8.js +0 -1
- package/__mf/js/async/4496.c8ce9931.js +0 -1
- package/__mf/js/async/4960.2753b110.js +0 -2
- package/__mf/js/async/5019.ad81a49d.js +0 -1
- package/__mf/js/async/5071.65fbbcc1.js +0 -1
- package/__mf/js/async/537.8e3a78c1.js +0 -7
- package/__mf/js/async/5440.badac8c0.js +0 -2
- package/__mf/js/async/5587.66c9d9a7.js +0 -1
- package/__mf/js/async/5706.bb73a688.js +0 -1
- package/__mf/js/async/6274.264e01dd.js +0 -2
- package/__mf/js/async/6854.5e11cf4a.js +0 -1
- package/__mf/js/async/7192.3c06168c.js +0 -1
- package/__mf/js/async/7817.50337aae.js +0 -2
- package/__mf/js/async/7862.09331015.js +0 -2
- package/__mf/js/async/7968.b157175c.js +0 -1
- package/__mf/js/async/7978.1033463f.js +0 -1
- package/__mf/js/async/8356.66de7816.js +0 -1
- package/__mf/js/async/8470.2c612fd2.js +0 -2
- package/__mf/js/async/873.edbf5c7e.js +0 -1
- package/__mf/js/async/9207.786bc303.js +0 -1
- package/__mf/js/async/9235.8a5eac53.js +0 -1
- package/__mf/js/async/941.f8103f8e.js +0 -2
- package/__mf/js/async/9588.bf6042f9.js +0 -1
- package/__mf/js/async/__federation_expose_VictoriaLogsDatasource.90a59ac1.js +0 -2
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.98706d8a.js +0 -2
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.320f2e3b.js +0 -2
- package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.49a0e8f6.js +0 -1
- package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.3aad6f1d.js +0 -1
- /package/__mf/css/async/{537.85c2cbf6.css → 1433.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{537.8e3a78c1.js.LICENSE.txt → 1433.3d2ebb70.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{198.42cbc766.js.LICENSE.txt → 198.cc78ac12.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2043.09d2b336.js.LICENSE.txt → 2043.2c73ebfe.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2786.4f8e4f80.js.LICENSE.txt → 2786.5f881482.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.241997df.js.LICENSE.txt → 392.49d52d98.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4121.f0c5c912.js.LICENSE.txt → 4121.356a5dcc.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4960.2753b110.js.LICENSE.txt → 4960.f43ba55c.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5440.badac8c0.js.LICENSE.txt → 5440.1ca84a65.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6274.264e01dd.js.LICENSE.txt → 6274.a464d64f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3068.121a74bc.js.LICENSE.txt → 6609.6f2adcdd.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{7817.50337aae.js.LICENSE.txt → 7817.4a21d143.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{7862.09331015.js.LICENSE.txt → 7862.f33fc6ee.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{8470.2c612fd2.js.LICENSE.txt → 8470.ccd01079.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.f8103f8e.js.LICENSE.txt → 941.fd358e10.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{9440.0e7f2584.js.LICENSE.txt → 9440.c066de88.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_VictoriaLogsDatasource.90a59ac1.js.LICENSE.txt → __federation_expose_VictoriaLogsDatasource.049ba3c8.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_VictoriaLogsFieldNamesVariable.98706d8a.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldNamesVariable.ae8c52fb.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_VictoriaLogsFieldValuesVariable.320f2e3b.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldValuesVariable.975e3794.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_VictoriaLogs_0_5_0_beta_7=self.chunk_VictoriaLogs_0_5_0_beta_7||[]).push([["9207"],{68150(e,t,r){r.d(t,{A:()=>h});var n=r(70451),o=r(11750),a=r(81023),l=r(77308),s=r(72052),i=r(11502),u=r(29009),d=r(46733);function c(e){return(0,d.Ay)("MuiCard",e)}(0,u.A)("MuiCard",["root"]);var f=r(62540);let p=(0,l.A)(i.A,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),h=n.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiCard"}),{className:n,raised:l=!1,...i}=r,u={...r,raised:l},d=(e=>{let{classes:t}=e;return(0,a.A)({root:["root"]},c,t)})(u);return(0,f.jsx)(p,{className:(0,o.A)(d.root,n),elevation:l?8:void 0,ref:t,ownerState:u,...i})})},32189(e,t,r){r.d(t,{A:()=>p});var n=r(70451),o=r(11750),a=r(81023),l=r(77308),s=r(72052),i=r(29009),u=r(46733);function d(e){return(0,u.Ay)("MuiCardContent",e)}(0,i.A)("MuiCardContent",["root"]);var c=r(62540);let f=(0,l.A)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),p=n.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiCardContent"}),{className:n,component:l="div",...i}=r,u={...r,component:l},p=(e=>{let{classes:t}=e;return(0,a.A)({root:["root"]},d,t)})(u);return(0,c.jsx)(f,{as:l,className:(0,o.A)(p.root,n),ownerState:u,ref:t,...i})})},35875(e,t,r){r.d(t,{A:()=>b});var n=r(70451),o=r(81023),a=r(47599),l=r(88091),s=r(77308),i=r(72052),u=r(29009),d=r(46733);function c(e){return(0,d.Ay)("MuiCardHeader",e)}let f=(0,u.A)("MuiCardHeader",["root","avatar","action","content","title","subheader"]);var p=r(73397),h=r(62540);let m=(0,s.A)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${f.title}`]:t.title},{[`& .${f.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),v=(0,s.A)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),y=(0,s.A)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),g=(0,s.A)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${a.A.root}:where(& .${f.title})`]:{display:"block"},[`.${a.A.root}:where(& .${f.subheader})`]:{display:"block"}}),b=n.forwardRef(function(e,t){let r=(0,i.b)({props:e,name:"MuiCardHeader"}),{action:n,avatar:a,component:s="div",disableTypography:u=!1,subheader:d,subheaderTypographyProps:f,title:b,titleTypographyProps:M,slots:A={},slotProps:w={},...j}=r,P={...r,component:s,disableTypography:u},_=(e=>{let{classes:t}=e;return(0,o.A)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},c,t)})(P),C={slots:A,slotProps:{title:M,subheader:f,...w}},O=b,[x,H]=(0,p.A)("title",{className:_.title,elementType:l.A,externalForwardedProps:C,ownerState:P,additionalProps:{variant:a?"body2":"h5",component:"span"}});null==O||O.type===l.A||u||(O=(0,h.jsx)(x,{...H,children:O}));let S=d,[V,L]=(0,p.A)("subheader",{className:_.subheader,elementType:l.A,externalForwardedProps:C,ownerState:P,additionalProps:{variant:a?"body2":"body1",color:"textSecondary",component:"span"}});null==S||S.type===l.A||u||(S=(0,h.jsx)(V,{...L,children:S}));let[N,R]=(0,p.A)("root",{ref:t,className:_.root,elementType:m,externalForwardedProps:{...C,...j,component:s},ownerState:P}),[E,T]=(0,p.A)("avatar",{className:_.avatar,elementType:v,externalForwardedProps:C,ownerState:P}),[$,k]=(0,p.A)("content",{className:_.content,elementType:g,externalForwardedProps:C,ownerState:P}),[U,F]=(0,p.A)("action",{className:_.action,elementType:y,externalForwardedProps:C,ownerState:P});return(0,h.jsxs)(N,{...R,children:[a&&(0,h.jsx)(E,{...T,children:a}),(0,h.jsxs)($,{...k,children:[O,S]}),n&&(0,h.jsx)(U,{...F,children:n})]})})},45158(e,t,r){r.d(t,{A:()=>m});var n=r(70451),o=r(11750),a=r(81023),l=r(77308),s=r(72052),i=r(29009),u=r(46733);function d(e){return(0,u.Ay)("MuiFormGroup",e)}(0,i.A)("MuiFormGroup",["root","row","error"]);var c=r(42872),f=r(87842),p=r(62540);let h=(0,l.A)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),m=n.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiFormGroup"}),{className:n,row:l=!1,...i}=r,u=(0,c.A)(),m=(0,f.A)({props:r,muiFormControl:u,states:["error"]}),v={...r,row:l,error:m.error},y=(e=>{let{classes:t,row:r,error:n}=e;return(0,a.A)({root:["root",r&&"row",n&&"error"]},d,t)})(v);return(0,p.jsx)(h,{className:(0,o.A)(y.root,n),ownerState:v,ref:t,...i})})},4178(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z","Alert")},46001(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z","ArrowDown")},65168(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z","ArrowUp")},10571(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z","OpenInNew")},49603(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z","Pencil")},4150(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z","TrashCan")},96945(e,t,r){let n,o,a;function l(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;let r=e instanceof Array?e[0]:e;return null==r||t||""!==r?r:null}r.d(t,{useQueryParams:()=>w,JsonParam:()=>i,useQueryParam:()=>j,StringParam:()=>s});let s={encode:function(e){return null==e?e:String(e)},decode:function(e){let t=l(e,!0);return null==t?t:String(t)}},i={encode:function(e){return null==e?e:JSON.stringify(e)},decode:function(e){let t=l(e);if(null==t)return t;let r=null;try{r=JSON.parse(t)}catch(e){}return r}};'{}[],":'.split("").map(e=>[e,encodeURIComponent(e)]);var u=r(70451);let d=new class{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,t,r,n){this.paramsMap.set(e,{stringified:t,decoded:r,decode:n})}has(e,t,r){if(!this.paramsMap.has(e))return!1;let n=this.paramsMap.get(e);return!!n&&n.stringified===t&&(null==r||n.decode===r)}get(e){var t;if(this.paramsMap.has(e))return null==(t=this.paramsMap.get(e))?void 0:t.decoded}registerParams(e){for(let t of e){let e=this.registeredParams.get(t)||0;this.registeredParams.set(t,e+1)}}unregisterParams(e){for(let t of e){let e=(this.registeredParams.get(t)||0)-1;e<=0?(this.registeredParams.delete(t),this.paramsMap.has(t)&&this.paramsMap.delete(t)):this.registeredParams.set(t,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}};function c(e,t,r,n){var o;if(!r||!t.length)return e;let a={...e},l=!1;for(let e of t)Object.prototype.hasOwnProperty.call(a,e)||(a[e]=null!=(o=r[e])?o:n,l=!0);return l?a:e}let f=Object.prototype.hasOwnProperty;function p(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function h(e,t,r){var n,o;if(p(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(let l=0;l<a.length;l++){let s=null!=(o=null==(n=null==r?void 0:r[a[l]])?void 0:n.equals)?o:p;if(!f.call(t,a[l])||!s(e[a[l]],t[a[l]]))return!1}return!0}function m(e,t,r){let n={};for(let o of Object.keys(t)){let a,l=t[o],s=e[o];if(r.has(o,s,l.decode))a=r.get(o);else{if(a=l.decode(s),l.equals&&r.has(o,s)){let e=r.get(o);l.equals(a,e)&&(a=e)}void 0!==a&&r.set(o,s,a,l.decode)}void 0===a&&void 0!==l.default&&(a=l.default),n[o]=a}return n}function v(){let e;return function(t,r,n){let o=m(t,r,n);return null!=e&&h(e,o)?e:(e=o,o)}}let y={},g=(e,t,r)=>{if(n===t&&a===e&&o===r)return y;n=t,a=e;let l=e(null!=t?t:"");o=r;let s=function(e){if(e)return Object.fromEntries(e.split("\n").map(e=>e.split("\0")))}(r);for(let[e,t]of Object.entries(l)){(null==s?void 0:s[e])&&(delete l[e],l[e=s[e]]=t);let r=y[e];h(t,r)&&(l[e]=r)}return y=l,l},b={adapter:{},options:{searchStringToObject:function(e){let t=new URLSearchParams(e),r={};for(let[e,n]of t)Object.prototype.hasOwnProperty.call(r,e)?Array.isArray(r[e])?r[e].push(n):r[e]=[r[e],n]:r[e]=n;return r},objectToSearchString:function(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(void 0!==n&&null!==n)if(Array.isArray(n))for(let e of n)t.append(r,null!=e?e:"");else t.append(r,n);return t.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},M=u.createContext(b),A=[];function w(e,t){let{adapter:r,options:n}=function(){let e=u.useContext(M);if(void 0===e||e===b)throw Error("useQueryParams must be used within a QueryParamProvider");return e}(),[o]=(0,u.useState)(v),{paramConfigMap:a,options:l}=function(e,t){let r;return{paramConfigMap:r=void 0===e?{}:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,"inherit"])):e,options:t}}(e,t),i=(0,u.useMemo)(()=>{var e;let t;return null==(e=l)&&(e={}),t={...n,...e},e.params&&n.params&&(t.params={...n.params,...e.params}),t},[n,l]),f=function(e,t){var r,n,o;let a={},l=!1,i=Object.keys(e);if(t.includeKnownParams||!1!==t.includeKnownParams&&0===i.length){let e=Object.keys(null!=(r=t.params)?r:{});i.push(...e)}for(let r of i){let i=e[r];if(null!=i&&"object"==typeof i){a[r]=i;continue}l=!0,a[r]=null!=(o=null==(n=t.params)?void 0:n[r])?o:s}return l?a:e}(a,i),p=g(i.searchStringToObject,r.location.search,function(e){let t;for(let r in e)if(e[r].urlName){let n=e[r].urlName,o=`${n}\0${r}`;t?t.push(o):t=[o]}return t?t.join("\n"):void 0}(f));i.includeAllParams&&(f=c(f,Object.keys(p),i.params,s));let h=o(p,f,d),y=Object.keys(f).join("\0");(0,u.useEffect)(()=>{let e=y.split("\0");return d.registerParams(e),()=>{d.unregisterParams(e)}},[y]);let w={adapter:r,paramConfigMap:f,options:i},j=(0,u.useRef)(w);null==j.current&&(j.current=w),(0,u.useEffect)(()=>{j.current.adapter=r,j.current.paramConfigMap=f,j.current.options=i},[r,f,i]);let[P]=(0,u.useState)(()=>(e,t)=>{let{adapter:r,paramConfigMap:n,options:o}=j.current;null==t&&(t=o.updateType),function(e,{immediate:t}={}){A.push(e),1===A.length&&(t?e=>e():e=>setTimeout(()=>e(),0))(()=>{let t,r=A.slice();A.length=0;let n=r[0].currentSearchString;for(let e=0;e<r.length;++e)t=function({changes:e,updateType:t,currentSearchString:r,paramConfigMap:n,options:o}){let a,l,s,{searchStringToObject:i,objectToSearchString:u}=o;null==t&&(t=o.updateType);let f=g(i,r),p=c(n,Object.keys(e),o.params);return l="function"==typeof e?e(m(f,p,d)):e,a=function(e,t){let r={};for(let n of Object.keys(t)){let o=t[n];e[n]?r[n]=e[n].encode(t[n]):r[n]=null==o?o:String(o)}return r}(p,l),o.removeDefaultsFromUrl&&function(e,t){var r;for(let n in e)(null==(r=t[n])?void 0:r.default)!==void 0&&void 0!==e[n]&&t[n].encode(t[n].default)===e[n]&&(e[n]=void 0)}(a,p),a=function(e,t){var r;let n={};for(let o in e)(null==(r=t[o])?void 0:r.urlName)!=null?n[t[o].urlName]=e[o]:n[o]=e[o];return n}(a,p),(null==(s=u("push"===t||"replace"===t?a:{...f,...a}))?void 0:s.length)&&"?"!==s[0]&&(s=`?${s}`),null!=s?s:""}(0===e?r[e]:{...r[e],currentSearchString:t});e.options.skipUpdateWhenNoChange&&t===n||function({searchString:e,adapter:t,navigate:r,updateType:n}){let o={...t.location,search:e};r&&("string"==typeof n&&n.startsWith("replace")?t.replace(o):t.push(o))}({searchString:null!=t?t:"",adapter:r[r.length-1].adapter,navigate:!0,updateType:r[r.length-1].updateType})})}({changes:e,updateType:t,currentSearchString:r.location.search,paramConfigMap:n,options:o,adapter:r},{immediate:!o.enableBatching})});return[h,P]}let j=(e,t,r)=>{let[n,o]=w((0,u.useMemo)(()=>({[e]:null!=t?t:"inherit"}),[e,t]),r);return[n[e],(0,u.useCallback)((t,r)=>"function"==typeof t?o(r=>{let n=t(r[e]);return{[e]:n}},r):o({[e]:t},r),[e,o])]}},42338(e,t,r){r.r(t),r.d(t,{zodResolver:()=>s});var n=r(25511),o=r(76970);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function l(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}function s(e,t,r){if(void 0===r&&(r={}),"_zod"in e&&"object"==typeof e._zod)return function(s,i,u){try{return Promise.resolve(l(function(){function o(e){return u.shouldUseNativeValidation&&(0,n.validateFieldsNatively)({},u),{errors:{},values:r.raw?Object.assign({},s):e}}return"sync"===r.mode?o(e.parse(s,t)):Promise.resolve(e.parseAsync(s,t)).then(o)},function(e){var t;if(!(null==e||null==(t=e._zod)||null==(t=t.traits)||!t.has("$ZodError")))return{values:{},errors:(0,n.toNestErrors)(function(e,t){for(var r=Object.create(null);e.length;)!function(){var n=e[0],l=n.code,s=n.message,i=n.path.join(".");if(!r[i])if("invalid_union"===n.code&&n.errors.length>0){var u,d,c=n.errors.reduce(function(e,t){return t.length<e.length?t:e})[0];r[i]={message:null!=(u=null==c?void 0:c.message)?u:s,type:null!=(d=null==c?void 0:c.code)?d:l}}else r[i]={message:s,type:l};if("invalid_union"===n.code&&n.errors.forEach(function(t){return t.forEach(function(t){return e.push(a({},t,{path:[].concat(n.path,t.path)}))})}),t){var f=r[i].types,p=f&&f[n.code];r[i]=(0,o.appendErrors)(i,t,r,l,p?[].concat(p,n.message):n.message)}e.shift()}();return r}(e.issues,!u.shouldUseNativeValidation&&"all"===u.criteriaMode),u)};throw e}))}catch(e){return Promise.reject(e)}};if("_def"in e&&"object"==typeof e._def)return function(a,s,i){try{return Promise.resolve(l(function(){return Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](a,t)).then(function(e){return i.shouldUseNativeValidation&&(0,n.validateFieldsNatively)({},i),{errors:{},values:r.raw?Object.assign({},a):e}})},function(e){if(Array.isArray(null==e?void 0:e.issues))return{values:{},errors:(0,n.toNestErrors)(function(e,t){for(var r=Object.create(null);e.length;){var n=e[0],a=n.code,l=n.message,s=n.path.join(".");if(!r[s])if("unionErrors"in n){var i,u,d=n.unionErrors.reduce(function(e,t){return t.errors.length<e.errors.length?t:e}).errors[0];r[s]={message:null!=(i=null==d?void 0:d.message)?i:l,type:null!=(u=null==d?void 0:d.code)?u:a}}else r[s]={message:l,type:a};if("unionErrors"in n&&n.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=r[s].types,f=c&&c[n.code];r[s]=(0,o.appendErrors)(s,t,r,a,f?[].concat(f,n.message):n.message)}e.shift()}return r}(e.errors,!i.shouldUseNativeValidation&&"all"===i.criteriaMode),i)};throw e}))}catch(e){return Promise.reject(e)}};throw Error("Invalid input: not a Zod schema")}},21320(e,t,r){r.d(t,{s:()=>l}),r(62540);var n=r(70451),o=r(65152);let a=(0,n.createContext)(o.hd);function l(){let e=(0,n.useContext)(a),t=(0,n.useCallback)(async(...t)=>{let r=await e(...t);return await r.json()},[e]);return{fetch:e,fetchJson:t}}},57789(e,t,r){r.d(t,{Ml:()=>l,to:()=>a});var n=r(65152);function o(e){return"object"==typeof e&&null!==e}function a(e){return o(e)&&o(e.proxy)&&"HTTPProxy"===e.proxy.kind&&o(e.proxy.spec)&&"string"==typeof e.proxy.spec.url}function l({project:e,dashboard:t}={}){return async(r,o)=>{let l=o.startsWith("/")?o:`/${o}`,s=r.plugin.spec;if("object"==typeof s&&null!==s&&"string"==typeof s.directUrl)await (0,n.hd)(new URL(l,s.directUrl).toString(),{method:"GET",headers:{"Content-Type":"application/json"}});else if(a(s)){let o=function({project:e,dashboard:t,name:r}){let n="u">typeof window&&window.PERSES_APP_CONFIG?.api_prefix||"",o=`${!e&&!t?"globaldatasources":"datasources"}`;return t&&(o=`dashboards/${encodeURIComponent(t)}/${o}`),e&&(o=`projects/${encodeURIComponent(e)}/${o}`),o=void 0===r?`unsaved/${o}`:`${o}/${encodeURIComponent(r)}`,`${n}/proxy/${o}`}({project:e,dashboard:t});await (0,n.hd)(`${o}${l}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({method:"GET",spec:r,body:null})})}else throw Error(`Unsupported datasource spec type for plugin kind '${r.plugin.kind}'`)}}},65152(e,t,r){async function n(...e){let t=await globalThis.fetch(...e);if(!1===t.ok){let e=t.headers.get("content-type");if(e?.includes("application/json")){let e=await t.clone().json();if(e.error)throw new a(e.error,t.status);if(e.message)throw new a(e.message,t.status)}let r=await t.clone().text();if(r)throw new a(r,t.status);throw new o(t)}return t}r.d(t,{hd:()=>n});class o extends Error{status;constructor(e){super(`${e.status} ${e.statusText}`),this.status=e.status,Object.setPrototypeOf(this,o.prototype)}}class a extends Error{status;constructor(e,t){super(e),this.status=t,Object.setPrototypeOf(this,a.prototype)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_VictoriaLogs_0_5_0_beta_7=self.chunk_VictoriaLogs_0_5_0_beta_7||[]).push([["9235"],{63859(e,t,r){r.r(t),r.d(t,{default:()=>g});var i=r(68102),a=r(69402),n=r(37696),o=r(60755),s=r(309),l=r(70451),c=r(19597),d=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,p=(0,c.A)(function(e){return d.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),u=function(e){return"theme"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?p:u},f=function(e,t,r){var i;if(t){var a=t.shouldForwardProp;i=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof i&&r&&(i=e.__emotion_forwardProp),i},h=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return(0,s.SF)(t,r,i),(0,o.s)(function(){return(0,s.sk)(t,r,i)}),null},g=(function e(t,r){var o,c,d=t.__emotion_real===t,p=d&&t.__emotion_base||t;void 0!==r&&(o=r.label,c=r.target);var u=f(t,r,d),g=u||m(p),y=!g("as");return function(){var v=arguments,k=d&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&k.push("label:"+o+";"),null==v[0]||void 0===v[0].raw)k.push.apply(k,v);else{var b=v[0];k.push(b[0]);for(var _=v.length,x=1;x<_;x++)k.push(v[x],b[x])}var w=(0,a.withEmotionCache)(function(e,t,r){var i=y&&e.as||p,o="",d=[],f=e;if(null==e.theme){for(var v in f={},e)f[v]=e[v];f.theme=l.useContext(a.ThemeContext)}"string"==typeof e.className?o=(0,s.Rk)(t.registered,d,e.className):null!=e.className&&(o=e.className+" ");var b=(0,n.J)(k.concat(d),t.registered,f);o+=t.key+"-"+b.name,void 0!==c&&(o+=" "+c);var _=y&&void 0===u?m(i):g,x={};for(var w in e)(!y||"as"!==w)&&_(w)&&(x[w]=e[w]);return x.className=o,r&&(x.ref=r),l.createElement(l.Fragment,null,l.createElement(h,{cache:t,serialized:b,isStringTag:"string"==typeof i}),l.createElement(i,x))});return w.displayName=void 0!==o?o:"Styled("+("string"==typeof p?p:p.displayName||p.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=p,w.__emotion_styles=k,w.__emotion_forwardProp=u,Object.defineProperty(w,"toString",{value:function(){return"."+c}}),w.withComponent=function(t,a){return e(t,(0,i.A)({},r,a,{shouldForwardProp:f(w,a,!0)})).apply(void 0,k)},w}}).bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){g[e]=g(e)})},60755(e,t,r){r.d(t,{i:()=>o,s:()=>n});var i=r(70451),a=!!i.useInsertionEffect&&i.useInsertionEffect,n=a||function(e){return e()},o=a||i.useLayoutEffect},309(e,t,r){function i(e,t,r){var i="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(i+=r+" ")}),i}r.d(t,{Rk:()=>i,SF:()=>a,sk:()=>n});var a=function(e,t,r){var i=e.key+"-"+t.name;!1===r&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},n=function(e,t,r){a(e,t,r);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do e.insert(t===n?"."+i:"",n,e.sheet,!0),n=n.next;while(void 0!==n)}}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 941.f8103f8e.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.chunk_VictoriaLogs_0_5_0_beta_7=self.chunk_VictoriaLogs_0_5_0_beta_7||[]).push([["941"],{7470(e,r,t){var o=t(20231);r.createRoot=o.createRoot,r.hydrateRoot=o.hydrateRoot},2192(e,r,t){var o=t(70451),_=Symbol.for("react.element"),a=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function f(e,r,t){var o,a={},f=null,l=null;for(o in void 0!==t&&(f=""+t),void 0!==r.key&&(f=""+r.key),void 0!==r.ref&&(l=r.ref),r)n.call(r,o)&&!c.hasOwnProperty(o)&&(a[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===a[o]&&(a[o]=r[o]);return{$$typeof:_,type:e,key:f,ref:l,props:a,_owner:s.current}}r.Fragment=a,r.jsx=f,r.jsxs=f},62540(e,r,t){e.exports=t(2192)},86604(e,r,t){t.r(r);var o=t(62540),_=t(70451),a=t.n(_);t(7470).createRoot(document.getElementById("root")).render((0,o.jsx)(a().StrictMode,{}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_VictoriaLogs_0_5_0_beta_7=self.chunk_VictoriaLogs_0_5_0_beta_7||[]).push([["9588"],{65130(t,e,r){r.d(e,{f:()=>i});var n=r(12015),a=r(4721);function i(t,e,r){let i=(0,a.a)(t,r?.in);return isNaN(e)?(0,n.w)(r?.in||t,NaN):(e&&i.setDate(i.getDate()+e),i)}},54266(t,e,r){r.d(e,{L:()=>i});var n=r(67251),a=r(30439);function i(t,e,r){return(0,n.A)(t,e*a.s0,r)}},67251(t,e,r){r.d(e,{A:()=>i});var n=r(12015),a=r(4721);function i(t,e,r){return(0,n.w)(r?.in||t,+(0,a.a)(t)+e)}},47196(t,e,r){r.d(e,{z:()=>a});var n=r(4721);function a(t,e,r){let a=(0,n.a)(t,r?.in);return a.setTime(a.getTime()+6e4*e),a}},38086(t,e,r){r.d(e,{P:()=>i});var n=r(12015),a=r(4721);function i(t,e,r){let i=(0,a.a)(t,r?.in);if(isNaN(e))return(0,n.w)(r?.in||t,NaN);if(!e)return i;let s=i.getDate(),o=(0,n.w)(r?.in||t,i.getTime());return(o.setMonth(i.getMonth()+e+1,0),s>=o.getDate())?o:(i.setFullYear(o.getFullYear(),o.getMonth(),s),i)}},43628(t,e,r){r.d(e,{p:()=>a});var n=r(67251);function a(t,e,r){return(0,n.A)(t,1e3*e,r)}},54708(t,e,r){r.d(e,{J:()=>a});var n=r(65130);function a(t,e,r){return(0,n.f)(t,7*e,r)}},16299(t,e,r){r.d(e,{e:()=>a});var n=r(38086);function a(t,e,r){return(0,n.P)(t,12*e,r)}},85910(t,e,r){r.d(e,{D:()=>a});var n=r(4721);function a(t,e){let r=(0,n.a)(t,e?.in);return r.setHours(23,59,59,999),r}},73206(t,e,r){r.d(e,{p:()=>a});var n=r(4721);function a(t,e){let r=(0,n.a)(t,e?.in),a=r.getMonth();return r.setFullYear(r.getFullYear(),a+1,0),r.setHours(23,59,59,999),r}},44766(t,e,r){r.d(e,{$:()=>i});var n=r(350),a=r(4721);function i(t,e){let r=(0,n.q)(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=(0,a.a)(t,e?.in),o=s.getDay();return s.setDate(s.getDate()+((o<i?-7:0)+6-(o-i))),s.setHours(23,59,59,999),s}},65043(t,e,r){r.d(e,{Q:()=>a});var n=r(4721);function a(t,e){let r=(0,n.a)(t,e?.in),a=r.getFullYear();return r.setFullYear(a+1,0,0),r.setHours(23,59,59,999),r}},47918(t,e,r){r.d(e,{p:()=>a});var n=r(4721);function a(t,e){return(0,n.a)(t,e?.in).getDate()}},54354(t,e,r){r.d(e,{P:()=>i});var n=r(12015),a=r(4721);function i(t,e){let r=(0,a.a)(t,e?.in),i=r.getFullYear(),s=r.getMonth(),o=(0,n.w)(r,0);return o.setFullYear(i,s+1,0),o.setHours(0,0,0,0),o.getDate()}},6299(t,e,r){r.d(e,{q:()=>a});var n=r(350);function a(){return Object.assign({},(0,n.q)())}},8151(t,e,r){r.d(e,{q:()=>a});var n=r(4721);function a(t,e){return(0,n.a)(t,e?.in).getHours()}},83487(t,e,r){r.d(e,{g:()=>a});var n=r(4721);function a(t,e){let r=(0,n.a)(t,e?.in).getDay();return 0===r?7:r}},51148(t,e,r){r.d(e,{D:()=>a});var n=r(4721);function a(t){return(0,n.a)(t).getMilliseconds()}},91733(t,e,r){r.d(e,{O:()=>a});var n=r(4721);function a(t,e){return(0,n.a)(t,e?.in).getMinutes()}},99042(t,e,r){r.d(e,{t:()=>a});var n=r(4721);function a(t,e){return(0,n.a)(t,e?.in).getMonth()}},89321(t,e,r){r.d(e,{S:()=>a});var n=r(4721);function a(t){return(0,n.a)(t).getSeconds()}},18463(t,e,r){r.d(e,{C:()=>a});var n=r(4721);function a(t,e){return(0,n.a)(t,e?.in).getFullYear()}},54752(t,e,r){r.d(e,{d:()=>a});var n=r(4721);function a(t,e){return+(0,n.a)(t)>+(0,n.a)(e)}},36163(t,e,r){r.d(e,{Y:()=>a});var n=r(4721);function a(t,e){return+(0,n.a)(t)<+(0,n.a)(e)}},28850(t,e,r){r.d(e,{n:()=>a});var n=r(4721);function a(t,e){return+(0,n.a)(t)==+(0,n.a)(e)}},45350(t,e,r){r.d(e,{r:()=>i});var n=r(79147),a=r(18109);function i(t,e,r){let[i,s]=(0,n.x)(r?.in,t,e);return+(0,a.o)(i)==+(0,a.o)(s)}},56756(t,e,r){r.d(e,{l:()=>i});var n=r(79147),a=r(61777);function i(t,e,r){let[i,s]=(0,n.x)(r?.in,t,e);return+(0,a.Q)(i)==+(0,a.Q)(s)}},39270(t,e,r){r.d(e,{t:()=>a});var n=r(79147);function a(t,e,r){let[a,i]=(0,n.x)(r?.in,t,e);return a.getFullYear()===i.getFullYear()&&a.getMonth()===i.getMonth()}},67619(t,e,r){r.d(e,{s:()=>a});var n=r(79147);function a(t,e,r){let[a,i]=(0,n.x)(r?.in,t,e);return a.getFullYear()===i.getFullYear()}},682(t,e,r){r.d(e,{v:()=>a});var n=r(4721);function a(t,e,r){let a=+(0,n.a)(t,r?.in),[i,s]=[+(0,n.a)(e.start,r?.in),+(0,n.a)(e.end,r?.in)].sort((t,e)=>t-e);return a>=i&&a<=s}},12282(t,e,r){r.d(e,{T_:()=>tn,qg:()=>tc});var n=r(67671),a=r(72710),i=r(43743),s=r(12015),o=r(6299),u=r(4721),d=r(88733);class c{subPriority=0;validate(t,e){return!0}}class l extends c{constructor(t,e,r,n,a){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=n,a&&(this.subPriority=a)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}}class w extends c{priority=10;subPriority=-1;constructor(t,e){super(),this.context=t||(t=>(0,s.w)(e,t))}set(t,e){return e.timestampIsSet?t:(0,s.w)(t,(0,d.m)(t,this.context))}}class h{run(t,e,r,n){let a=this.parse(t,e,r,n);return a?{setter:new l(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(t,e,r){return!0}}var f=r(30439);let m=/^(1[0-2]|0?\d)/,g=/^(3[0-1]|[0-2]?\d)/,p=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,x=/^(5[0-3]|[0-4]?\d)/,y=/^(2[0-3]|[0-1]?\d)/,b=/^(2[0-4]|[0-1]?\d)/,v=/^(1[0-1]|0?\d)/,T=/^(1[0-2]|0?\d)/,k=/^[0-5]?\d/,M=/^[0-5]?\d/,D=/^\d/,Y=/^\d{1,2}/,H=/^\d{1,3}/,q=/^\d{1,4}/,N=/^-?\d+/,P=/^-?\d/,Q=/^-?\d{1,2}/,F=/^-?\d{1,3}/,L=/^-?\d{1,4}/,S=/^([+-])(\d{2})(\d{2})?|Z/,E=/^([+-])(\d{2})(\d{2})|Z/,I=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,O=/^([+-])(\d{2}):(\d{2})|Z/,R=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function G(t,e){return t?{value:e(t.value),rest:t.rest}:t}function X(t,e){let r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function B(t,e){let r=e.match(t);if(!r)return null;if("Z"===r[0])return{value:0,rest:e.slice(1)};let n="+"===r[1]?1:-1,a=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:n*(a*f.s0+6e4*i+1e3*s),rest:e.slice(r[0].length)}}function _(t,e){switch(t){case 1:return X(D,e);case 2:return X(Y,e);case 3:return X(H,e);case 4:return X(q,e);default:return X(RegExp("^\\d{1,"+t+"}"),e)}}function A(t,e){switch(t){case 1:return X(P,e);case 2:return X(Q,e);case 3:return X(F,e);case 4:return X(L,e);default:return X(RegExp("^-?\\d{1,"+t+"}"),e)}}function Z(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function $(t,e){let r,n=e>0,a=n?e:1-e;if(a<=50)r=t||100;else{let e=a+50;r=t+100*Math.trunc(e/100)-100*(t>=e%100)}return n?r:1-r}function C(t){return t%400==0||t%4==0&&t%100!=0}var K=r(33191),W=r(53819),V=r(29350),j=r(63214),z=r(33029);let J=[31,28,31,30,31,30,31,31,30,31,30,31],U=[31,29,31,30,31,30,31,31,30,31,30,31];var tt=r(61926),te=r(68251),tr=r(63134);let tn={G:new class extends h{priority=140;parse(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,e,r){return e.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]},y:new class extends h{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,e,r){let n=t=>({year:t,isTwoDigitYear:"yy"===e});switch(e){case"y":return G(_(4,t),n);case"yo":return G(r.ordinalNumber(t,{unit:"year"}),n);default:return G(_(e.length,t),n)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r){let n=t.getFullYear();if(r.isTwoDigitYear){let e=$(r.year,n);return t.setFullYear(e,0,1),t.setHours(0,0,0,0),t}let a="era"in e&&1!==e.era?1-r.year:r.year;return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}},Y:new class extends h{priority=130;parse(t,e,r){let n=t=>({year:t,isTwoDigitYear:"YY"===e});switch(e){case"Y":return G(_(4,t),n);case"Yo":return G(r.ordinalNumber(t,{unit:"year"}),n);default:return G(_(e.length,t),n)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,n){let a=(0,K.h)(t,n);if(r.isTwoDigitYear){let e=$(r.year,a);return t.setFullYear(e,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),(0,W.k)(t,n)}let i="era"in e&&1!==e.era?1-r.year:r.year;return t.setFullYear(i,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),(0,W.k)(t,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends h{priority=130;parse(t,e){return"R"===e?A(4,t):A(e.length,t)}set(t,e,r){let n=(0,s.w)(t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),(0,V.b)(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends h{priority=130;parse(t,e){return"u"===e?A(4,t):A(e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends h{priority=120;parse(t,e,r){switch(e){case"Q":case"QQ":return _(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends h{priority=120;parse(t,e,r){switch(e){case"q":case"qq":return _(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends h{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,e,r){let n=t=>t-1;switch(e){case"M":return G(X(m,t),n);case"MM":return G(_(2,t),n);case"Mo":return G(r.ordinalNumber(t,{unit:"month"}),n);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}},L:new class extends h{priority=110;parse(t,e,r){let n=t=>t-1;switch(e){case"L":return G(X(m,t),n);case"LL":return G(_(2,t),n);case"Lo":return G(r.ordinalNumber(t,{unit:"month"}),n);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends h{priority=100;parse(t,e,r){switch(e){case"w":return X(x,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return _(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,n){return(0,W.k)((0,j.Z)(t,r,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends h{priority=100;parse(t,e,r){switch(e){case"I":return X(x,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return _(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return(0,V.b)((0,z.O)(t,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends h{priority=90;subPriority=1;parse(t,e,r){switch(e){case"d":return X(g,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return _(e.length,t)}}validate(t,e){let r=C(t.getFullYear()),n=t.getMonth();return r?e>=1&&e<=U[n]:e>=1&&e<=J[n]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends h{priority=90;subpriority=1;parse(t,e,r){switch(e){case"D":case"DD":return X(p,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return _(e.length,t)}}validate(t,e){return C(t.getFullYear())?e>=1&&e<=366:e>=1&&e<=365}set(t,e,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends h{priority=90;parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,n){return(t=(0,tt.l)(t,r,n)).setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends h{priority=90;parse(t,e,r,n){let a=t=>{let e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return G(_(e.length,t),a);case"eo":return G(r.ordinalNumber(t,{unit:"day"}),a);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,n){return(t=(0,tt.l)(t,r,n)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends h{priority=90;parse(t,e,r,n){let a=t=>{let e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return G(_(e.length,t),a);case"co":return G(r.ordinalNumber(t,{unit:"day"}),a);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,n){return(t=(0,tt.l)(t,r,n)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends h{priority=90;parse(t,e,r){let n=t=>0===t?7:t;switch(e){case"i":case"ii":return _(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return G(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return G(r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return G(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);default:return G(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n)}}validate(t,e){return e>=1&&e<=7}set(t,e,r){return(t=(0,te.a)(t,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends h{priority=80;parse(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(Z(r),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends h{priority=80;parse(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(Z(r),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends h{priority=80;parse(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(Z(r),0,0,0),t}incompatibleTokens=["a","b","t","T"]},h:new class extends h{priority=70;parse(t,e,r){switch(e){case"h":return X(T,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return _(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,r){let n=t.getHours()>=12;return n&&r<12?t.setHours(r+12,0,0,0):n||12!==r?t.setHours(r,0,0,0):t.setHours(0,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]},H:new class extends h{priority=70;parse(t,e,r){switch(e){case"H":return X(y,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return _(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends h{priority=70;parse(t,e,r){switch(e){case"K":return X(v,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return _(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]},k:new class extends h{priority=70;parse(t,e,r){switch(e){case"k":return X(b,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return _(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,r){return t.setHours(r<=24?r%24:r,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends h{priority=60;parse(t,e,r){switch(e){case"m":return X(k,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return _(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}incompatibleTokens=["t","T"]},s:new class extends h{priority=50;parse(t,e,r){switch(e){case"s":return X(M,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return _(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}incompatibleTokens=["t","T"]},S:new class extends h{priority=30;parse(t,e){return G(_(e.length,t),t=>Math.trunc(t*Math.pow(10,-e.length+3)))}set(t,e,r){return t.setMilliseconds(r),t}incompatibleTokens=["t","T"]},X:new class extends h{priority=10;parse(t,e){switch(e){case"X":return B(S,t);case"XX":return B(E,t);case"XXXX":return B(I,t);case"XXXXX":return B(R,t);default:return B(O,t)}}set(t,e,r){return e.timestampIsSet?t:(0,s.w)(t,t.getTime()-(0,tr.G)(t)-r)}incompatibleTokens=["t","T","x"]},x:new class extends h{priority=10;parse(t,e){switch(e){case"x":return B(S,t);case"xx":return B(E,t);case"xxxx":return B(I,t);case"xxxxx":return B(R,t);default:return B(O,t)}}set(t,e,r){return e.timestampIsSet?t:(0,s.w)(t,t.getTime()-(0,tr.G)(t)-r)}incompatibleTokens=["t","T","X"]},t:new class extends h{priority=40;parse(t){return X(N,t)}set(t,e,r){return[(0,s.w)(t,1e3*r),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends h{priority=20;parse(t){return X(N,t)}set(t,e,r){return[(0,s.w)(t,r),{timestampIsSet:!0}]}incompatibleTokens="*"}},ta=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ti=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ts=/^'([^]*?)'?$/,to=/''/g,tu=/\S/,td=/[a-zA-Z]/;function tc(t,e,r,d){let c=()=>(0,s.w)(d?.in||r,NaN),l=(0,o.q)(),h=d?.locale??l.locale??n.c,f=d?.firstWeekContainsDate??d?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,m=d?.weekStartsOn??d?.locale?.options?.weekStartsOn??l.weekStartsOn??l.locale?.options?.weekStartsOn??0;if(!e)return t?c():(0,u.a)(r,d?.in);let g={firstWeekContainsDate:f,weekStartsOn:m,locale:h},p=[new w(d?.in,r)],x=e.match(ti).map(t=>{let e=t[0];return e in a.m?(0,a.m[e])(t,h.formatLong):t}).join("").match(ta),y=[];for(let r of x){!d?.useAdditionalWeekYearTokens&&(0,i.xM)(r)&&(0,i.Ss)(r,e,t),!d?.useAdditionalDayOfYearTokens&&(0,i.ef)(r)&&(0,i.Ss)(r,e,t);let n=r[0],a=tn[n];if(a){let{incompatibleTokens:e}=a;if(Array.isArray(e)){let t=y.find(t=>e.includes(t.token)||t.token===n);if(t)throw RangeError(`The format string mustn't contain \`${t.fullToken}\` and \`${r}\` at the same time`)}else if("*"===a.incompatibleTokens&&y.length>0)throw RangeError(`The format string mustn't contain \`${r}\` and any other token at the same time`);y.push({token:n,fullToken:r});let i=a.run(t,r,h.match,g);if(!i)return c();p.push(i.setter),t=i.rest}else{if(n.match(td))throw RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===r?r="'":"'"===n&&(r=r.match(ts)[1].replace(to,"'")),0!==t.indexOf(r))return c();t=t.slice(r.length)}}if(t.length>0&&tu.test(t))return c();let b=p.map(t=>t.priority).sort((t,e)=>e-t).filter((t,e,r)=>r.indexOf(t)===e).map(t=>p.filter(e=>e.priority===t).sort((t,e)=>e.subPriority-t.subPriority)).map(t=>t[0]),v=(0,u.a)(r,d?.in);if(isNaN(+v))return c();let T={};for(let t of b){if(!t.validate(v,g))return c();let e=t.set(v,T,g);Array.isArray(e)?(v=e[0],Object.assign(T,e[1])):v=e}return v}},41042(t,e,r){r.d(e,{X:()=>a});var n=r(4721);function a(t,e,r){let a=(0,n.a)(t,r?.in);return a.setDate(e),a}},61926(t,e,r){r.d(e,{l:()=>s});var n=r(350),a=r(65130),i=r(4721);function s(t,e,r){let s=(0,n.q)(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,u=(0,i.a)(t,r?.in),d=u.getDay(),c=7-o,l=e<0||e>6?e-(d+c)%7:((e%7+7)%7+c)%7-(d+c)%7;return(0,a.f)(u,l,r)}},38267(t,e,r){r.d(e,{a:()=>a});var n=r(4721);function a(t,e,r){let a=(0,n.a)(t,r?.in);return a.setHours(e),a}},68251(t,e,r){r.d(e,{a:()=>s});var n=r(65130),a=r(83487),i=r(4721);function s(t,e,r){let s=(0,i.a)(t,r?.in),o=(0,a.g)(s,r);return(0,n.f)(s,e-o,r)}},33029(t,e,r){r.d(e,{O:()=>i});var n=r(92913),a=r(4721);function i(t,e,r){let i=(0,a.a)(t,r?.in),s=(0,n.s)(i,r)-e;return i.setDate(i.getDate()-7*s),i}},98608(t,e,r){r.d(e,{$:()=>a});var n=r(4721);function a(t,e,r){let a=(0,n.a)(t,r?.in);return a.setMilliseconds(e),a}},47025(t,e,r){r.d(e,{g:()=>a});var n=r(4721);function a(t,e,r){let a=(0,n.a)(t,r?.in);return a.setMinutes(e),a}},30118(t,e,r){r.d(e,{Z:()=>s});var n=r(12015),a=r(54354),i=r(4721);function s(t,e,r){let s=(0,i.a)(t,r?.in),o=s.getFullYear(),u=s.getDate(),d=(0,n.w)(r?.in||t,0);d.setFullYear(o,e,15),d.setHours(0,0,0,0);let c=(0,a.P)(d);return s.setMonth(e,Math.min(u,c)),s}},84253(t,e,r){r.d(e,{g:()=>a});var n=r(4721);function a(t,e,r){let a=(0,n.a)(t,r?.in);return a.setSeconds(e),a}},63214(t,e,r){r.d(e,{Z:()=>i});var n=r(55578),a=r(4721);function i(t,e,r){let i=(0,a.a)(t,r?.in),s=(0,n.N)(i,r)-e;return i.setDate(i.getDate()-7*s),(0,a.a)(i,r?.in)}},8643(t,e,r){r.d(e,{i:()=>i});var n=r(12015),a=r(4721);function i(t,e,r){let i=(0,a.a)(t,r?.in);return isNaN(+i)?(0,n.w)(r?.in||t,NaN):(i.setFullYear(e),i)}},61777(t,e,r){r.d(e,{Q:()=>a});var n=r(4721);function a(t,e){let r=(0,n.a)(t,e?.in);return r.setMinutes(0,0,0),r}},19681(t,e,r){r.d(e,{w:()=>a});var n=r(4721);function a(t,e){let r=(0,n.a)(t,e?.in);return r.setDate(1),r.setHours(0,0,0,0),r}},88733(t,e,r){r.d(e,{m:()=>a});var n=r(12015);function a(t,e){var r;let a="function"==typeof(r=e)&&r.prototype?.constructor===r?new e(0):(0,n.w)(e,0);return a.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),a}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see __federation_expose_VictoriaLogsDatasource.90a59ac1.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.chunk_VictoriaLogs_0_5_0_beta_7=self.chunk_VictoriaLogs_0_5_0_beta_7||[]).push([["4090"],{2192(e,t,r){var n=r(70451),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(e,t,r){var n,a={},d=null,c=null;for(n in void 0!==r&&(d=""+r),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,n)&&!l.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:d,ref:c,props:a,_owner:i.current}}t.Fragment=a,t.jsx=d,t.jsxs=d},62540(e,t,r){e.exports=r(2192)},29867(e,t,r){function n(e,t){if(t.startsWith("http://")||t.startsWith("https://"))return new URL(e,t);return new URL(t.endsWith("/")&&e.startsWith("/")?t+e.slice(1):t.endsWith("/")||e.startsWith("/")?t+e:t+"/"+e,window.location.origin)}async function o(e,t){let r=n("/select/logsql/query",t.datasourceUrl),o={query:e.query,start:e.start,end:e.end};(null==e?void 0:e.limit)&&(o.limit=e.limit.toString()),(null==e?void 0:e.offset)&&(o.offset=e.offset.toString());let a=new URLSearchParams(o).toString(),s=await fetch(r.toString(),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/stream+json",...t.headers},body:a});if(200!==s.status)throw Error(await s.text());let i=[];if(!(null==s?void 0:s.body))return i;let l=s.body.getReader(),d=new TextDecoder("utf-8"),c="",u=await l.read();for(;!u.done;){let e=(c+=d.decode(u.value,{stream:!0})).indexOf("\n");for(;-1!==e;){let t=c.slice(0,e);c=c.slice(e+1),i.push(JSON.parse(t)),e=c.indexOf("\n")}u=await l.read()}return c.trim().length>0&&i.push(JSON.parse(c)),i}async function a(e,t){let r=n("/select/logsql/stats_query_range",t.datasourceUrl),o={query:e.query,start:e.start,end:e.end};(null==e?void 0:e.step)&&(o.step=e.step.toString());let a=new URLSearchParams(o).toString(),s=await fetch(r.toString(),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",...t.headers},body:a});return await s.json()}async function s(e,t){let r=n("/select/logsql/field_names",t.datasourceUrl),o={query:e.query};e.start&&(o.start=e.start),e.end&&(o.end=e.end);let a=new URLSearchParams(o).toString(),s=await fetch(r.toString(),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",...t.headers},body:a});return await s.json()}async function i(e,t){let r=n("/select/logsql/field_values",t.datasourceUrl),o={query:e.query,field:e.field};e.start&&(o.start=e.start),e.end&&(o.end=e.end);let a=new URLSearchParams(o).toString(),s=await fetch(r.toString(),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",...t.headers},body:a});return await s.json()}r.r(t),r.d(t,{VictoriaLogsDatasource:()=>u,VictoriaLogsDatasourceEditor:()=>c});var l=r(62540),d=r(19037);function c(e){let{value:t,onChange:r,isReadonly:n}=e;return(0,l.jsx)(d.HTTPSettingsEditor,{value:t,onChange:r,isReadonly:n,initialSpecDirect:{directUrl:""},initialSpecProxy:{proxy:{kind:"HTTPProxy",spec:{allowedEndpoints:[{endpointPattern:"/select/logsql/stats_query",method:"POST"},{endpointPattern:"/select/logsql/stats_query_range",method:"POST"},{endpointPattern:"/select/logsql/field_names",method:"POST"},{endpointPattern:"/select/logsql/field_values",method:"POST"},{endpointPattern:"/select/logsql/tail",method:"POST"},{endpointPattern:"/select/logsql/query",method:"POST"},{endpointPattern:"/select/logsql/hits",method:"POST"},{endpointPattern:"/select/logsql/facets",method:"POST"},{endpointPattern:"/select/logsql/stream_ids",method:"POST"},{endpointPattern:"/select/logsql/streams",method:"POST"},{endpointPattern:"/select/logsql/stream_field_names",method:"POST"},{endpointPattern:"/select/logsql/stream_field_values",method:"POST"}],url:""}}}})}let u={createClient:(e,t)=>{let{directUrl:r,proxy:n}=e,{proxyUrl:l}=t,d=r??l;if(void 0===d)throw Error("No URL specified for VictoriaLogs client. You can use directUrl in the spec to configure it.");let c=null==n?void 0:n.spec.headers;return{options:{datasourceUrl:d},streamQueryRange:(e,t)=>o(e,{datasourceUrl:d,headers:t??c}),statsQueryRange:(e,t)=>a(e,{datasourceUrl:d,headers:t??c}),fieldNames:(e,t)=>s(e,{datasourceUrl:d,headers:t??c}),fieldValues:(e,t)=>i(e,{datasourceUrl:d,headers:t??c})}},OptionsEditorComponent:c,createInitialOptions:()=>({directUrl:""})}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see __federation_expose_VictoriaLogsFieldNamesVariable.98706d8a.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.chunk_VictoriaLogs_0_5_0_beta_7=self.chunk_VictoriaLogs_0_5_0_beta_7||[]).push([["3859"],{2192(e,a,r){var t=r(70451),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function n(e,a,r){var t,s={},n=null,c=null;for(t in void 0!==r&&(n=""+r),void 0!==a.key&&(n=""+a.key),void 0!==a.ref&&(c=a.ref),a)i.call(a,t)&&!u.hasOwnProperty(t)&&(s[t]=a[t]);if(e&&e.defaultProps)for(t in a=e.defaultProps)void 0===s[t]&&(s[t]=a[t]);return{$$typeof:o,type:e,key:n,ref:c,props:s,_owner:l.current}}a.Fragment=s,a.jsx=n,a.jsxs=n},62540(e,a,r){e.exports=r(2192)},50095(e,a,r){r.d(a,{H6:()=>l,m_:()=>o,fZ:()=>i,jx:()=>s});var t=r(19037);let o="VictoriaLogsDatasource",s={kind:o};function i(e){return!(0,t.isVariableDatasource)(e)&&void 0===e.name}function l(e){return(0,t.isVariableDatasource)(e)||e.kind===o}},92229(e,a,r){r.d(a,{Iq:()=>s,RG:()=>i,gZ:()=>l});var t=r(19037),o=r(91807);let s=e=>e?e.map(e=>({value:e.value,label:e.value})):[];function i(e){let{start:a,end:r}=e;return{start:a.toISOString(),end:r.toISOString()}}function l(e,a){let{absoluteTimeRange:{start:r,end:s}}=(0,t.useTimeRange)(),{data:i}=(0,t.useDatasourceClient)(a),l=!!i&&!!e;return(0,o.useQuery)({enabled:l,queryKey:["datasource",a.name,"query",e],queryFn:async()=>await i.fieldNames({start:r.toISOString(),end:s.toISOString(),query:e})})}},84704(e,a,r){r.r(a),r.d(a,{VictoriaLogsFieldNamesVariable:()=>_});var t=r(19037),o=r(50095),s=r(92229),i=r(62540),l=r(315),u=r(67987),n=r(93648),c=r(38662),d=r(70451);let _={getVariableOptions:async(e,a)=>{let r=(0,t.datasourceSelectValueToSelector)(e.datasource??o.jx,a.variables,await a.datasourceStore.listDatasourceSelectItems(o.m_))??o.jx,i=await a.datasourceStore.getDatasourceClient(r),l=(0,s.RG)(a.timeRange),u=(0,t.replaceVariables)(e.query,a.variables),{values:n}=u?await i.fieldNames({query:u,...l}):{values:[]};return{data:(0,s.Iq)(n)}},dependsOn:e=>({variables:[...(0,t.parseVariables)(e.query),...e.datasource&&(0,t.isVariableDatasource)(e.datasource)?(0,t.parseVariables)(e.datasource):[]]}),OptionsEditorComponent:function(e){let{onChange:a,value:r,value:{datasource:s,query:_}}=e,p=s??o.jx,y=(0,t.useDatasourceSelectValueToSelector)(p,o.m_),b=(0,d.useCallback)(e=>{if((0,t.isVariableDatasource)(e)||(0,o.H6)(e))return void a((0,c.produce)(r,a=>{a.datasource=!(0,t.isVariableDatasource)(e)&&(0,o.fZ)(e)?void 0:e}));throw Error("Got unexpected non-VictoriaLogs datasource selector")},[a,r]),f=(0,d.useCallback)(e=>{a((0,c.produce)(r,a=>{a.query=e.target.value}))},[a,r]);return(0,i.jsxs)(l.A,{spacing:2,children:[(0,i.jsx)(u.A,{margin:"dense",children:(0,i.jsx)(t.DatasourceSelect,{datasourcePluginKind:"VictoriaLogsDatasource",value:y,onChange:b,disabled:e.isReadonly,labelId:"victorialogs-datasource-field",label:"VictoriaLogs Datasource"})}),(0,i.jsx)(n.A,{label:"Query",InputLabelProps:{shrink:!!e.isReadonly||void 0},InputProps:{readOnly:e.isReadonly},value:_,onChange:f})]})},createInitialOptions:()=>({query:""})}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see __federation_expose_VictoriaLogsFieldValuesVariable.320f2e3b.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.chunk_VictoriaLogs_0_5_0_beta_7=self.chunk_VictoriaLogs_0_5_0_beta_7||[]).push([["4209"],{2192(e,a,r){var t=r(70451),o=Symbol.for("react.element"),l=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function u(e,a,r){var t,l={},u=null,c=null;for(t in void 0!==r&&(u=""+r),void 0!==a.key&&(u=""+a.key),void 0!==a.ref&&(c=a.ref),a)i.call(a,t)&&!n.hasOwnProperty(t)&&(l[t]=a[t]);if(e&&e.defaultProps)for(t in a=e.defaultProps)void 0===l[t]&&(l[t]=a[t]);return{$$typeof:o,type:e,key:u,ref:c,props:l,_owner:s.current}}a.Fragment=l,a.jsx=u,a.jsxs=u},62540(e,a,r){e.exports=r(2192)},50095(e,a,r){r.d(a,{H6:()=>s,m_:()=>o,fZ:()=>i,jx:()=>l});var t=r(19037);let o="VictoriaLogsDatasource",l={kind:o};function i(e){return!(0,t.isVariableDatasource)(e)&&void 0===e.name}function s(e){return(0,t.isVariableDatasource)(e)||e.kind===o}},92229(e,a,r){r.d(a,{Iq:()=>l,RG:()=>i,gZ:()=>s});var t=r(19037),o=r(91807);let l=e=>e?e.map(e=>({value:e.value,label:e.value})):[];function i(e){let{start:a,end:r}=e;return{start:a.toISOString(),end:r.toISOString()}}function s(e,a){let{absoluteTimeRange:{start:r,end:l}}=(0,t.useTimeRange)(),{data:i}=(0,t.useDatasourceClient)(a),s=!!i&&!!e;return(0,o.useQuery)({enabled:s,queryKey:["datasource",a.name,"query",e],queryFn:async()=>await i.fieldNames({start:r.toISOString(),end:l.toISOString(),query:e})})}},85624(e,a,r){r.r(a),r.d(a,{VictoriaLogsFieldValuesVariable:()=>p});var t=r(19037),o=r(50095),l=r(92229),i=r(62540),s=r(315),n=r(67987),u=r(31271),c=r(93648),d=r(38662),f=r(70451);let p={getVariableOptions:async(e,a)=>{let r=(0,t.datasourceSelectValueToSelector)(e.datasource??o.jx,a.variables,await a.datasourceStore.listDatasourceSelectItems(o.m_))??o.jx,i=await a.datasourceStore.getDatasourceClient(r),s=(0,t.replaceVariables)(e.query,a.variables),n=(0,l.RG)(a.timeRange),{values:u}=s?await i.fieldValues({field:(0,t.replaceVariables)(e.field,a.variables),query:s,...n}):{values:[]};return{data:(0,l.Iq)(u)}},dependsOn:e=>({variables:[...(0,t.parseVariables)(e.query),...(0,t.parseVariables)(e.field),...e.datasource&&(0,t.isVariableDatasource)(e.datasource)?(0,t.parseVariables)(e.datasource):[]]}),OptionsEditorComponent:function(e){let{onChange:a,value:r,value:{datasource:p,query:b,field:v}}=e,g=p??o.jx,y=(0,t.useDatasourceSelectValueToSelector)(g,o.m_),{data:_,isLoading:V}=(0,l.gZ)(b,y),S=(0,f.useCallback)(e=>{if((0,t.isVariableDatasource)(e)||(0,o.H6)(e))return void a((0,d.produce)(r,a=>{a.datasource=!(0,t.isVariableDatasource)(e)&&(0,o.fZ)(e)?void 0:e}));throw Error("Got unexpected non-VictoriaLogs datasource selector")},[a,r]),m=(0,f.useCallback)(e=>{a((0,d.produce)(r,a=>{a.query=e.target.value}))},[a,r]),O=(0,f.useCallback)((e,t)=>{a((0,d.produce)(r,e=>{e.field=t||""}))},[a,r]),j=(0,f.useMemo)(()=>(null==_?void 0:_.values.map(e=>e.value))||[],[_]);return(0,i.jsxs)(s.A,{spacing:2,children:[(0,i.jsx)(n.A,{margin:"dense",children:(0,i.jsx)(t.DatasourceSelect,{datasourcePluginKind:"VictoriaLogsDatasource",value:g,onChange:S,readOnly:e.isReadonly,labelId:"victorialogs-datasource-field",label:"VictoriaLogs Datasource"})}),(0,i.jsx)(u.A,{freeSolo:!0,disableClearable:!0,value:v,loading:V,options:j,renderInput:e=>(0,i.jsx)(c.A,{...e,required:!0,label:"Field Name",variant:"outlined"}),onChange:O}),(0,i.jsx)(c.A,{required:!0,label:"Query",InputLabelProps:{shrink:!!e.isReadonly||void 0},InputProps:{readOnly:e.isReadonly},value:b,onChange:m})]})},createInitialOptions:()=>({field:"",query:""})}},68102(e,a,r){r.d(a,{A:()=>t});function t(){return(t=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var t in r)({}).hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e}).apply(null,arguments)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_VictoriaLogs_0_5_0_beta_7=self.chunk_VictoriaLogs_0_5_0_beta_7||[]).push([["6545"],{6465(e,t,r){r.d(t,{m:()=>g});var a=r(62540),o=r(56599),i=r(29068),n=r(70451),s=r(63960),l=r(6365),u=r(31650);let c=(0,u.pn)({LineComment:u._A.comment,"Identifier StreamSelector":u._A.labelName,"LabelName LabelMatcher":u._A.labelName,String:u._A.string,"Number Float Duration":u._A.number,"LogRangeAggregation VectorAggregation":u._A.function(u._A.keyword),"And Or Unless":u._A.logicOperator,"Eq Neq Re Nre Gt Lt Gte Lte":u._A.compareOperator,"Add Sub Mul Div Mod Pow":u._A.arithmeticOperator,Pipe:u._A.operator,"By Without":u._A.keyword,"( )":u._A.paren,"[ ]":u._A.squareBracket,"{ }":u._A.brace,"⚠":u._A.invalid});function g(e){let t=(0,o.A)(),r="dark"===t.palette.mode,u=(0,n.useMemo)(()=>[s.bj.define({parser:l.K3.configure({props:[c]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}})],[]),g=(0,n.useMemo)(()=>{let e="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return i.Lz.theme({"&":{backgroundColor:"transparent !important",border:`1px solid ${e}`,borderRadius:`${t.shape.borderRadius}px`},"&.cm-focused.cm-editor":{outline:"none"},".cm-content":{padding:"8px"}})},[t]);return(0,a.jsx)(i.Ay,{...e,theme:r?"dark":"light",basicSetup:{lineNumbers:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1,foldGutter:!1,syntaxHighlighting:!0},extensions:[i.Lz.lineWrapping,u,g],placeholder:'Example: {job="my-service"} |= "error"'})}},50095(e,t,r){r.d(t,{H6:()=>s,m_:()=>o,fZ:()=>n,jx:()=>i});var a=r(19037);let o="VictoriaLogsDatasource",i={kind:o};function n(e){return!(0,a.isVariableDatasource)(e)&&void 0===e.name}function s(e){return(0,a.isVariableDatasource)(e)||e.kind===o}},7140(e,t,r){r.d(t,{N:()=>a,S:()=>o});let a="VictoriaLogsDatasource",o={kind:a}},49008(e,t,r){r.r(t),r.d(t,{VictoriaLogsLogQueryEditor:()=>m,getVictoriaLogsLogData:()=>i,VictoriaLogsLogQuery:()=>p});var a=r(19037),o=r(7140);let i=async(e,t)=>{var r,i;let n;if(!e.query)return{logs:{entries:[],totalCount:0},timeRange:{start:t.timeRange.start,end:t.timeRange.end}};let s=(0,a.replaceVariables)(e.query,t.variableState),l=await t.datasourceStore.getDatasourceClient(e.datasource??o.S),{start:u,end:c}=t.timeRange;return{logs:(r=await l.streamQueryRange({query:s,start:u.toISOString(),end:c.toISOString()}),i=c.getTime().toString(),n=[],r.forEach(e=>{let{_msg:t,_time:r,...a}=e,o=r||t?Date.parse(r):i;n.push({timestamp:Number(o)/1e3,line:t||"",labels:a})}),{entries:n,totalCount:n.length}),timeRange:{start:u,end:c},metadata:{executedQueryString:s}}};var n=r(62540),s=r(315),l=r(54227),u=r(44791),c=r(70451),g=r(6465),d=r(50095);function m(e){let{onChange:t,value:r}=e,{datasource:i}=r,m=i??o.S,p=(0,a.useDatasourceSelectValueToSelector)(m,d.m_),[b,h]=(0,c.useState)(r.query);(0,c.useEffect)(()=>{h(r.query)},[r.query]);let y=(0,c.useCallback)(e=>{h(e)},[]),_=(0,c.useCallback)(e=>{t({...r,query:e})},[t,r]);return(0,n.jsxs)(s.A,{spacing:1.5,paddingBottom:1,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(l.A,{sx:{display:"block",marginBottom:"4px",fontWeight:500},children:"Datasource"}),(0,n.jsx)(a.DatasourceSelect,{datasourcePluginKind:o.N,value:p,onChange:e=>{if(!(0,a.isVariableDatasource)(e)&&e.kind===o.N)return void t({...r,datasource:e});throw Error("Got unexpected non VictoriaLogsQuery datasource selection")},label:"VictoriaLogs Datasource",notched:!0})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(l.A,{sx:{display:"block",marginBottom:"4px",fontWeight:500},children:"LogsQL Query"}),(0,n.jsx)(g.m,{value:b,onChange:y,onBlur:()=>_(b),onKeyDown:(0,u.createModEnterHandler)(()=>_(b)),placeholder:'Enter LogsQL query (e.g. {job="mysql"} |= "error")'})]})]})}let p={getLogData:i,OptionsEditorComponent:m,createInitialOptions:()=>({query:""}),dependsOn:e=>({variables:[...new Set((0,a.parseVariables)(e.query))]}),createVolumeQuery:(e,t)=>{if(!e.query||!e.query.trim())return null;let r=(0,a.calculateVolumeInterval)(t.timeRange.end.getTime()-t.timeRange.start.getTime());return{kind:"TimeSeriesQuery",spec:{plugin:{kind:"VictoriaLogsTimeSeriesQuery",spec:{query:`${e.query} | stats by (_time:${r}, _stream) count() as volume`,datasource:e.datasource,step:r}}}}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_VictoriaLogs_0_5_0_beta_7=self.chunk_VictoriaLogs_0_5_0_beta_7||[]).push([["7843"],{6465(e,t,r){r.d(t,{m:()=>d});var a=r(62540),n=r(56599),s=r(29068),i=r(70451),o=r(63960),u=r(6365),l=r(31650);let c=(0,l.pn)({LineComment:l._A.comment,"Identifier StreamSelector":l._A.labelName,"LabelName LabelMatcher":l._A.labelName,String:l._A.string,"Number Float Duration":l._A.number,"LogRangeAggregation VectorAggregation":l._A.function(l._A.keyword),"And Or Unless":l._A.logicOperator,"Eq Neq Re Nre Gt Lt Gte Lte":l._A.compareOperator,"Add Sub Mul Div Mod Pow":l._A.arithmeticOperator,Pipe:l._A.operator,"By Without":l._A.keyword,"( )":l._A.paren,"[ ]":l._A.squareBracket,"{ }":l._A.brace,"⚠":l._A.invalid});function d(e){let t=(0,n.A)(),r="dark"===t.palette.mode,l=(0,i.useMemo)(()=>[o.bj.define({parser:u.K3.configure({props:[c]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}})],[]),d=(0,i.useMemo)(()=>{let e="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return s.Lz.theme({"&":{backgroundColor:"transparent !important",border:`1px solid ${e}`,borderRadius:`${t.shape.borderRadius}px`},"&.cm-focused.cm-editor":{outline:"none"},".cm-content":{padding:"8px"}})},[t]);return(0,a.jsx)(s.Ay,{...e,theme:r?"dark":"light",basicSetup:{lineNumbers:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1,foldGutter:!1,syntaxHighlighting:!0},extensions:[s.Lz.lineWrapping,l,d],placeholder:'Example: {job="my-service"} |= "error"'})}},50095(e,t,r){r.d(t,{H6:()=>o,m_:()=>n,fZ:()=>i,jx:()=>s});var a=r(19037);let n="VictoriaLogsDatasource",s={kind:n};function i(e){return!(0,a.isVariableDatasource)(e)&&void 0===e.name}function o(e){return(0,a.isVariableDatasource)(e)||e.kind===n}},7140(e,t,r){r.d(t,{N:()=>a,S:()=>n});let a="VictoriaLogsDatasource",n={kind:a}},43198(e,t,r){r.r(t),r.d(t,{VictoriaLogsQueryEditor:()=>h,VictoriaLogsTimeSeriesQuery:()=>b,getVictoriaLogsTimeSeriesData:()=>o});var a=r(19037),n=r(88685),s=r(94461),i=r(7140);let o=async(e,t)=>{if(!e.query)return{series:[],timeRange:{start:t.timeRange.start,end:t.timeRange.end},stepMs:15e3};let r=(0,a.replaceVariables)(e.query,t.variableState),o=await t.datasourceStore.getDatasourceClient(e.datasource??i.S),{start:u,end:l}=t.timeRange,c=e.step?function(e){if(!e)return;let t=(0,n.pW)(e);return Math.floor((0,s.milliseconds)(t)/1e3)}(e.step)??15:15,d=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=(t-e)/1e3/1e4;return n>1&&(n=Math.ceil(n)),Math.max(a/1e3,r,n)}(u.getTime(),l.getTime(),c,t.suggestedStepMs),m=d<60?`${Math.round(d)}s`:d<3600?`${Math.round(d/60)}m`:`${Math.round(d/3600)}h`,g=await o.statsQueryRange({query:r,step:m,start:u.toISOString(),end:l.toISOString()});if("error"===g.status)throw Error(g.error);return{series:g.data.result.map(e=>{let t={...e.metric};if(delete t._stream,delete t.__name__,e.metric._stream){let r=e.metric._stream.match(/{([^}]+)}/);r&&r[1]&&r[1].split(",").forEach(e=>{let[r,a]=e.split("=").map(e=>e.trim().replace(/^"|"$/g,""));r&&a&&(t[r]=a)})}return{name:Object.entries(t).map(e=>{let[t,r]=e;return`${t}=${r}`}).join(", "),values:e.values.map(e=>{let[t,r]=e;return[1e3*Number(t),Number(r)]}),labels:t}}),timeRange:{start:u,end:l},stepMs:1e3*d,metadata:{executedQueryString:r}}};var u=r(62540),l=r(315),c=r(54227),d=r(44791),m=r(70451),g=r(6465),p=r(50095);function h(e){let{onChange:t,value:r}=e,{datasource:n}=r,s=n??i.S,o=(0,a.useDatasourceSelectValueToSelector)(s,p.m_),[h,b]=(0,m.useState)(r.query);(0,m.useEffect)(()=>{b(r.query)},[r.query]);let _=(0,m.useCallback)(e=>{b(e)},[]),y=(0,m.useCallback)(e=>{t({...r,query:e})},[t,r]);return(0,u.jsxs)(l.A,{spacing:1.5,paddingBottom:1,children:[(0,u.jsxs)("div",{children:[(0,u.jsx)(c.A,{sx:{display:"block",marginBottom:"4px",fontWeight:500},children:"Datasource"}),(0,u.jsx)(a.DatasourceSelect,{datasourcePluginKind:i.N,value:o,onChange:e=>{if(!(0,a.isVariableDatasource)(e)&&e.kind===i.N)return void t({...r,datasource:e});throw Error("Got unexpected non VictoriaLogsQuery datasource selection")},label:"VictoriaLogs Datasource",notched:!0})]}),(0,u.jsxs)("div",{children:[(0,u.jsx)(c.A,{sx:{display:"block",marginBottom:"4px",fontWeight:500},children:"LogsQL Query"}),(0,u.jsx)(g.m,{value:h,onChange:_,onBlur:()=>y(h),onKeyDown:(0,d.createModEnterHandler)(()=>y(h)),placeholder:'Enter LogsQL query (e.g. {job="mysql"} |= "error")'})]})]})}let b={getTimeSeriesData:o,OptionsEditorComponent:h,createInitialOptions:()=>({query:""}),dependsOn:e=>({variables:[...new Set((0,a.parseVariables)(e.query))]})}},88685(e,t,r){r.d(t,{FM:()=>d,HA:()=>s,HZ:()=>a,Mk:()=>i,a3:()=>c,g3:()=>l,pW:()=>u,x8:()=>n});let a=36e5,n=864e5,s=6048e5,i=31536e6,o=/^(?:(\d+)y)?(?:(\d+)w)?(?:(\d+)d)?(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?(?:(\d+)ms)?$/;function u(e){let t=o.exec(e);if(null===t)throw Error(`Invalid duration string '${e}'`);return{years:parseInt(t[1]??"0"),months:0,weeks:parseInt(t[2]??"0"),days:parseInt(t[3]??"0"),hours:parseInt(t[4]??"0"),minutes:parseInt(t[5]??"0"),seconds:parseInt(t[6]??"0")+parseInt(t[7]??"0")/1e3}}function l(e){return""!==e&&o.test(e)}function c(e){let t=[];if(e.years&&t.push(`${e.years}y`),e.weeks&&t.push(`${e.weeks}w`),e.days&&t.push(`${e.days}d`),e.hours&&t.push(`${e.hours}h`),e.minutes&&t.push(`${e.minutes}m`),e.seconds){let r=Math.trunc(e.seconds);r&&t.push(`${r}s`);let a=Math.round((e.seconds-r)*1e3);a&&t.push(`${a}ms`)}return t.join("")}function d(e){var t;let r,o,u,l,c;return(r=Math.trunc((t=e.end.valueOf()-e.start.valueOf())/i))>0&&(t-=r*i),(o=Math.trunc(t/s))>0&&(t-=o*s),(u=Math.trunc(t/n))>0&&(t-=u*n),(l=Math.trunc(t/a))>0&&(t-=l*a),(c=Math.trunc(t/6e4))>0&&(t-=6e4*c),{years:r,months:0,weeks:o,days:u,hours:l,minutes:c,seconds:t/1e3}}}}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|