@banyan_cloud/roots 1.0.60 → 1.0.62

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/dist/cjs/index.js CHANGED
@@ -1462,13 +1462,13 @@ var getInitialsOfName = function getInitialsOfName() {
1462
1462
  }
1463
1463
  return initials;
1464
1464
  };
1465
- function safeJSONParse(object) {
1465
+ var safeJSONParse = function safeJSONParse(object) {
1466
1466
  try {
1467
1467
  return JSON.parse(object);
1468
1468
  } catch (error) {
1469
1469
  return null;
1470
1470
  }
1471
- }
1471
+ };
1472
1472
  function cloneDeep(object) {
1473
1473
  return safeJSONParse(JSON.stringify(object));
1474
1474
  }
@@ -1574,9 +1574,14 @@ var getDayInfo = function getDayInfo(date) {
1574
1574
  meridian: meridian
1575
1575
  };
1576
1576
  };
1577
- var getDatesInAMonth = function getDatesInAMonth(_ref) {
1578
- var month = _ref.month,
1579
- year = _ref.year;
1577
+ var getDatesInStringFormat = function getDatesInStringFormat(_ref) {
1578
+ var startingDate = _ref.startingDate,
1579
+ endingDate = _ref.endingDate;
1580
+ return ["".concat(startingDate.getDate(), " ").concat(MONTHS[startingDate.getMonth()].substring(0, 3), " ").concat(startingDate.getFullYear()), "".concat(endingDate.getDate(), " ").concat(MONTHS[endingDate.getMonth()].substring(0, 3), " ").concat(endingDate.getFullYear())];
1581
+ };
1582
+ var getDatesInAMonth = function getDatesInAMonth(_ref2) {
1583
+ var month = _ref2.month,
1584
+ year = _ref2.year;
1580
1585
  var date = new Date(Date.UTC(year, month, 1));
1581
1586
  var dates = [];
1582
1587
  var days = [];
@@ -7733,7 +7738,7 @@ var checkForListedLanguage = (function (astGenerator, language) {
7733
7738
  return langs.indexOf(language) !== -1;
7734
7739
  });
7735
7740
 
7736
- var _excluded$1 = ["language", "children", "style", "customStyle", "codeTagProps", "useInlineStyles", "showLineNumbers", "showInlineLineNumbers", "startingLineNumber", "lineNumberContainerStyle", "lineNumberStyle", "wrapLines", "wrapLongLines", "lineProps", "renderer", "PreTag", "CodeTag", "code", "astGenerator"];
7741
+ var _excluded$2 = ["language", "children", "style", "customStyle", "codeTagProps", "useInlineStyles", "showLineNumbers", "showInlineLineNumbers", "startingLineNumber", "lineNumberContainerStyle", "lineNumberStyle", "wrapLines", "wrapLongLines", "lineProps", "renderer", "PreTag", "CodeTag", "code", "astGenerator"];
7737
7742
 
7738
7743
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7739
7744
 
@@ -8078,7 +8083,7 @@ function highlight$1 (defaultAstGenerator, defaultStyle) {
8078
8083
  _ref7$code = _ref7.code,
8079
8084
  code = _ref7$code === void 0 ? (Array.isArray(children) ? children[0] : children) || '' : _ref7$code,
8080
8085
  astGenerator = _ref7.astGenerator,
8081
- rest = _objectWithoutProperties(_ref7, _excluded$1);
8086
+ rest = _objectWithoutProperties(_ref7, _excluded$2);
8082
8087
 
8083
8088
  astGenerator = astGenerator || defaultAstGenerator;
8084
8089
  var allLineNumbers = showLineNumbers ? /*#__PURE__*/React.createElement(AllLineNumbers, {
@@ -16732,43 +16737,34 @@ function ada(Prism) {
16732
16737
  };
16733
16738
  }
16734
16739
 
16735
- var agda_1;
16736
- var hasRequiredAgda;
16737
-
16738
- function requireAgda () {
16739
- if (hasRequiredAgda) return agda_1;
16740
- hasRequiredAgda = 1;
16741
-
16742
- agda_1 = agda;
16743
- agda.displayName = 'agda';
16744
- agda.aliases = [];
16745
- function agda(Prism) {
16740
+ var agda_1 = agda;
16741
+ agda.displayName = 'agda';
16742
+ agda.aliases = [];
16743
+ function agda(Prism) {
16746
16744
  (function (Prism) {
16747
- Prism.languages.agda = {
16748
- comment: /\{-[\s\S]*?(?:-\}|$)|--.*/,
16749
- string: {
16750
- pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,
16751
- greedy: true
16752
- },
16753
- punctuation: /[(){}⦃⦄.;@]/,
16754
- 'class-name': {
16755
- pattern: /((?:data|record) +)\S+/,
16756
- lookbehind: true
16757
- },
16758
- function: {
16759
- pattern: /(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,
16760
- lookbehind: true
16761
- },
16762
- operator: {
16763
- pattern: /(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,
16764
- lookbehind: true
16765
- },
16766
- keyword:
16767
- /\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/
16768
- };
16769
- })(Prism);
16770
- }
16771
- return agda_1;
16745
+ Prism.languages.agda = {
16746
+ comment: /\{-[\s\S]*?(?:-\}|$)|--.*/,
16747
+ string: {
16748
+ pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,
16749
+ greedy: true
16750
+ },
16751
+ punctuation: /[(){}⦃⦄.;@]/,
16752
+ 'class-name': {
16753
+ pattern: /((?:data|record) +)\S+/,
16754
+ lookbehind: true
16755
+ },
16756
+ function: {
16757
+ pattern: /(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,
16758
+ lookbehind: true
16759
+ },
16760
+ operator: {
16761
+ pattern: /(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,
16762
+ lookbehind: true
16763
+ },
16764
+ keyword:
16765
+ /\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/
16766
+ };
16767
+ })(Prism);
16772
16768
  }
16773
16769
 
16774
16770
  var al_1 = al;
@@ -18355,172 +18351,181 @@ function autoit(Prism) {
18355
18351
  };
18356
18352
  }
18357
18353
 
18358
- var avisynth_1 = avisynth;
18359
- avisynth.displayName = 'avisynth';
18360
- avisynth.aliases = ['avs'];
18361
- function avisynth(Prism) {
18354
+ var avisynth_1;
18355
+ var hasRequiredAvisynth;
18356
+
18357
+ function requireAvisynth () {
18358
+ if (hasRequiredAvisynth) return avisynth_1;
18359
+ hasRequiredAvisynth = 1;
18360
+
18361
+ avisynth_1 = avisynth;
18362
+ avisynth.displayName = 'avisynth';
18363
+ avisynth.aliases = ['avs'];
18364
+ function avisynth(Prism) {
18362
18365
  (function (Prism) {
18363
- function replace(pattern, replacements) {
18364
- return pattern.replace(/<<(\d+)>>/g, function (m, index) {
18365
- return replacements[+index]
18366
- })
18367
- }
18368
- function re(pattern, replacements, flags) {
18369
- return RegExp(replace(pattern, replacements), flags || '')
18370
- }
18371
- var types = /bool|clip|float|int|string|val/.source;
18372
- var internals = [
18373
- // bools
18374
- /is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/
18375
- .source, // control
18376
- /apply|assert|default|eval|import|nop|select|undefined/.source, // global
18377
- /opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/
18378
- .source, // conv
18379
- /hex(?:value)?|value/.source, // numeric
18380
- /abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/
18381
- .source, // trig
18382
- /a?sinh?|a?cosh?|a?tan[2h]?/.source, // bit
18383
- /(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/
18384
- .source, // runtime
18385
- /average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/
18386
- .source, // script
18387
- /getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/
18388
- .source, // string
18389
- /chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/
18390
- .source, // version
18391
- /isversionorgreater|version(?:number|string)/.source, // helper
18392
- /buildpixeltype|colorspacenametopixeltype/.source, // avsplus
18393
- /addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source
18394
- ].join('|');
18395
- var properties = [
18396
- // content
18397
- /has(?:audio|video)/.source, // resolution
18398
- /height|width/.source, // framerate
18399
- /frame(?:count|rate)|framerate(?:denominator|numerator)/.source, // interlacing
18400
- /getparity|is(?:field|frame)based/.source, // color format
18401
- /bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/
18402
- .source, // audio
18403
- /audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/
18404
- .source
18405
- ].join('|');
18406
- var filters = [
18407
- // source
18408
- /avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/
18409
- .source, // color
18410
- /coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/
18411
- .source, // overlay
18412
- /(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source, // geometry
18413
- /addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/
18414
- .source, // pixel
18415
- /blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/
18416
- .source, // timeline
18417
- /trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/
18418
- .source, // interlace
18419
- /assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/
18420
- .source, // audio
18421
- /amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/
18422
- .source, // conditional
18423
- /animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/
18424
- .source, // export
18425
- /imagewriter/.source, // debug
18426
- /blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/
18427
- .source
18428
- ].join('|');
18429
- var allinternals = [internals, properties, filters].join('|');
18430
- Prism.languages.avisynth = {
18431
- comment: [
18432
- {
18433
- // Matches [* *] nestable block comments, but only supports 1 level of nested comments
18434
- // /\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|<self>)*\*\]/
18435
- pattern:
18436
- /(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,
18437
- lookbehind: true,
18438
- greedy: true
18439
- },
18440
- {
18441
- // Matches /* */ block comments
18442
- pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
18443
- lookbehind: true,
18444
- greedy: true
18445
- },
18446
- {
18447
- // Matches # comments
18448
- pattern: /(^|[^\\$])#.*/,
18449
- lookbehind: true,
18450
- greedy: true
18451
- }
18452
- ],
18453
- // Handle before strings because optional arguments are surrounded by double quotes
18454
- argument: {
18455
- pattern: re(/\b(?:<<0>>)\s+("?)\w+\1/.source, [types], 'i'),
18456
- inside: {
18457
- keyword: /^\w+/
18458
- }
18459
- },
18460
- // Optional argument assignment
18461
- 'argument-label': {
18462
- pattern: /([,(][\s\\]*)\w+\s*=(?!=)/,
18463
- lookbehind: true,
18464
- inside: {
18465
- 'argument-name': {
18466
- pattern: /^\w+/,
18467
- alias: 'punctuation'
18468
- },
18469
- punctuation: /=$/
18470
- }
18471
- },
18472
- string: [
18473
- {
18474
- // triple double-quoted
18475
- pattern: /"""[\s\S]*?"""/,
18476
- greedy: true
18477
- },
18478
- {
18479
- // single double-quoted
18480
- pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
18481
- greedy: true,
18482
- inside: {
18483
- constant: {
18484
- // These *are* case-sensitive!
18485
- pattern:
18486
- /\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/
18487
- }
18488
- }
18489
- }
18490
- ],
18491
- // The special "last" variable that takes the value of the last implicitly returned clip
18492
- variable: /\b(?:last)\b/i,
18493
- boolean: /\b(?:false|no|true|yes)\b/i,
18494
- keyword:
18495
- /\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,
18496
- constant: /\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,
18497
- // AviSynth's internal functions, filters, and properties
18498
- 'builtin-function': {
18499
- pattern: re(/\b(?:<<0>>)\b/.source, [allinternals], 'i'),
18500
- alias: 'function'
18501
- },
18502
- 'type-cast': {
18503
- pattern: re(/\b(?:<<0>>)(?=\s*\()/.source, [types], 'i'),
18504
- alias: 'keyword'
18505
- },
18506
- // External/user-defined filters
18507
- function: {
18508
- pattern: /\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,
18509
- lookbehind: true
18510
- },
18511
- // Matches a \ as the first or last character on a line
18512
- 'line-continuation': {
18513
- pattern: /(^[ \t]*)\\|\\(?=[ \t]*$)/m,
18514
- lookbehind: true,
18515
- alias: 'punctuation'
18516
- },
18517
- number:
18518
- /\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,
18519
- operator: /\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,
18520
- punctuation: /[{}\[\]();,.]/
18521
- };
18522
- Prism.languages.avs = Prism.languages.avisynth;
18523
- })(Prism);
18366
+ function replace(pattern, replacements) {
18367
+ return pattern.replace(/<<(\d+)>>/g, function (m, index) {
18368
+ return replacements[+index]
18369
+ })
18370
+ }
18371
+ function re(pattern, replacements, flags) {
18372
+ return RegExp(replace(pattern, replacements), flags || '')
18373
+ }
18374
+ var types = /bool|clip|float|int|string|val/.source;
18375
+ var internals = [
18376
+ // bools
18377
+ /is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/
18378
+ .source, // control
18379
+ /apply|assert|default|eval|import|nop|select|undefined/.source, // global
18380
+ /opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/
18381
+ .source, // conv
18382
+ /hex(?:value)?|value/.source, // numeric
18383
+ /abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/
18384
+ .source, // trig
18385
+ /a?sinh?|a?cosh?|a?tan[2h]?/.source, // bit
18386
+ /(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/
18387
+ .source, // runtime
18388
+ /average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/
18389
+ .source, // script
18390
+ /getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/
18391
+ .source, // string
18392
+ /chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/
18393
+ .source, // version
18394
+ /isversionorgreater|version(?:number|string)/.source, // helper
18395
+ /buildpixeltype|colorspacenametopixeltype/.source, // avsplus
18396
+ /addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source
18397
+ ].join('|');
18398
+ var properties = [
18399
+ // content
18400
+ /has(?:audio|video)/.source, // resolution
18401
+ /height|width/.source, // framerate
18402
+ /frame(?:count|rate)|framerate(?:denominator|numerator)/.source, // interlacing
18403
+ /getparity|is(?:field|frame)based/.source, // color format
18404
+ /bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/
18405
+ .source, // audio
18406
+ /audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/
18407
+ .source
18408
+ ].join('|');
18409
+ var filters = [
18410
+ // source
18411
+ /avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/
18412
+ .source, // color
18413
+ /coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/
18414
+ .source, // overlay
18415
+ /(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source, // geometry
18416
+ /addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/
18417
+ .source, // pixel
18418
+ /blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/
18419
+ .source, // timeline
18420
+ /trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/
18421
+ .source, // interlace
18422
+ /assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/
18423
+ .source, // audio
18424
+ /amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/
18425
+ .source, // conditional
18426
+ /animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/
18427
+ .source, // export
18428
+ /imagewriter/.source, // debug
18429
+ /blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/
18430
+ .source
18431
+ ].join('|');
18432
+ var allinternals = [internals, properties, filters].join('|');
18433
+ Prism.languages.avisynth = {
18434
+ comment: [
18435
+ {
18436
+ // Matches [* *] nestable block comments, but only supports 1 level of nested comments
18437
+ // /\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|<self>)*\*\]/
18438
+ pattern:
18439
+ /(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,
18440
+ lookbehind: true,
18441
+ greedy: true
18442
+ },
18443
+ {
18444
+ // Matches /* */ block comments
18445
+ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
18446
+ lookbehind: true,
18447
+ greedy: true
18448
+ },
18449
+ {
18450
+ // Matches # comments
18451
+ pattern: /(^|[^\\$])#.*/,
18452
+ lookbehind: true,
18453
+ greedy: true
18454
+ }
18455
+ ],
18456
+ // Handle before strings because optional arguments are surrounded by double quotes
18457
+ argument: {
18458
+ pattern: re(/\b(?:<<0>>)\s+("?)\w+\1/.source, [types], 'i'),
18459
+ inside: {
18460
+ keyword: /^\w+/
18461
+ }
18462
+ },
18463
+ // Optional argument assignment
18464
+ 'argument-label': {
18465
+ pattern: /([,(][\s\\]*)\w+\s*=(?!=)/,
18466
+ lookbehind: true,
18467
+ inside: {
18468
+ 'argument-name': {
18469
+ pattern: /^\w+/,
18470
+ alias: 'punctuation'
18471
+ },
18472
+ punctuation: /=$/
18473
+ }
18474
+ },
18475
+ string: [
18476
+ {
18477
+ // triple double-quoted
18478
+ pattern: /"""[\s\S]*?"""/,
18479
+ greedy: true
18480
+ },
18481
+ {
18482
+ // single double-quoted
18483
+ pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
18484
+ greedy: true,
18485
+ inside: {
18486
+ constant: {
18487
+ // These *are* case-sensitive!
18488
+ pattern:
18489
+ /\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/
18490
+ }
18491
+ }
18492
+ }
18493
+ ],
18494
+ // The special "last" variable that takes the value of the last implicitly returned clip
18495
+ variable: /\b(?:last)\b/i,
18496
+ boolean: /\b(?:false|no|true|yes)\b/i,
18497
+ keyword:
18498
+ /\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,
18499
+ constant: /\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,
18500
+ // AviSynth's internal functions, filters, and properties
18501
+ 'builtin-function': {
18502
+ pattern: re(/\b(?:<<0>>)\b/.source, [allinternals], 'i'),
18503
+ alias: 'function'
18504
+ },
18505
+ 'type-cast': {
18506
+ pattern: re(/\b(?:<<0>>)(?=\s*\()/.source, [types], 'i'),
18507
+ alias: 'keyword'
18508
+ },
18509
+ // External/user-defined filters
18510
+ function: {
18511
+ pattern: /\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,
18512
+ lookbehind: true
18513
+ },
18514
+ // Matches a \ as the first or last character on a line
18515
+ 'line-continuation': {
18516
+ pattern: /(^[ \t]*)\\|\\(?=[ \t]*$)/m,
18517
+ lookbehind: true,
18518
+ alias: 'punctuation'
18519
+ },
18520
+ number:
18521
+ /\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,
18522
+ operator: /\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,
18523
+ punctuation: /[{}\[\]();,.]/
18524
+ };
18525
+ Prism.languages.avs = Prism.languages.avisynth;
18526
+ })(Prism);
18527
+ }
18528
+ return avisynth_1;
18524
18529
  }
18525
18530
 
18526
18531
  var avroIdl_1 = avroIdl;
@@ -39582,7 +39587,7 @@ refractor.register(abap_1);
39582
39587
  refractor.register(abnf_1);
39583
39588
  refractor.register(actionscript_1);
39584
39589
  refractor.register(ada_1);
39585
- refractor.register(requireAgda());
39590
+ refractor.register(agda_1);
39586
39591
  refractor.register(al_1);
39587
39592
  refractor.register(antlr4_1);
39588
39593
  refractor.register(apacheconf_1);
@@ -39598,7 +39603,7 @@ refractor.register(asmatmel_1);
39598
39603
  refractor.register(aspnet_1);
39599
39604
  refractor.register(autohotkey_1);
39600
39605
  refractor.register(autoit_1);
39601
- refractor.register(avisynth_1);
39606
+ refractor.register(requireAvisynth());
39602
39607
  refractor.register(avroIdl_1);
39603
39608
  refractor.register(bash_1);
39604
39609
  refractor.register(basic_1);
@@ -41873,8 +41878,8 @@ var css$G = ".Body_module_root__85b1b679 {\n padding: 0.5rem 0.5rem;\n display
41873
41878
  var modules_e6b80d99 = {"root":"Body_module_root__85b1b679"};
41874
41879
  n(css$G,{});
41875
41880
 
41876
- var css$F = ".Dates_module_dates__e3e1fc43 {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n align-items: center;\n flex-wrap: wrap;\n}\n.Dates_module_dates__e3e1fc43 div {\n flex-basis: 14.28%;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n margin-bottom: 0.25rem;\n cursor: pointer;\n align-self: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.Dates_module_dates__e3e1fc43 div .Dates_module_date__e3e1fc43 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n text-align: center;\n vertical-align: middle;\n border-radius: 1.5rem;\n height: 2.5rem;\n width: 2.5rem;\n font-weight: 400;\n font-size: 0.875rem;\n color: var(--black);\n}\n.Dates_module_dates__e3e1fc43 div .Dates_module_selected__e3e1fc43 {\n background-color: var(--highlight);\n color: var(--white);\n}\n.Dates_module_dates__e3e1fc43 div .Dates_module_unSelected__e3e1fc43 {\n background-color: var(--white);\n border-color: var(--highlight);\n border-width: 0.125rem;\n border-style: solid;\n color: var(--black);\n}\n.Dates_module_dates__e3e1fc43 div .Dates_module_disabled__e3e1fc43 {\n border-radius: 1.5rem;\n color: var(--grey2);\n}\n.Dates_module_dates__e3e1fc43 div .Dates_module_diffMonth__e3e1fc43 {\n opacity: 0.6;\n}\n.Dates_module_dates__e3e1fc43 div:hover .Dates_module_date__e3e1fc43 {\n background: var(--background);\n color: var(--highlight);\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n}\n.Dates_module_dates__e3e1fc43 div:hover .Dates_module_selected__e3e1fc43 {\n background-color: var(--highlight);\n color: var(--white);\n}\n.Dates_module_dates__e3e1fc43 div:hover .Dates_module_disabled__e3e1fc43 {\n background: transparent;\n box-shadow: none;\n border-radius: 1.5rem;\n color: var(--grey2);\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_minInRange__e3e1fc43 {\n background-color: var(--highlight);\n border-radius: 1.5rem 0rem 0rem 1.5rem;\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_minInRange__e3e1fc43 .Dates_module_date__e3e1fc43 {\n color: var(--white);\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_minInRange__e3e1fc43:hover .Dates_module_date__e3e1fc43 {\n background: var(--highlight);\n color: var(--white);\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_maxInRange__e3e1fc43 {\n background-color: var(--highlight);\n border-radius: 0rem 1.5rem 1.5rem 0rem;\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_maxInRange__e3e1fc43 .Dates_module_date__e3e1fc43 {\n color: var(--white);\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_maxInRange__e3e1fc43:hover .Dates_module_date__e3e1fc43 {\n background: var(--highlight);\n color: var(--white);\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_midInRange__e3e1fc43 {\n background: var(--background);\n border-radius: 0rem;\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_midInRange__e3e1fc43 .Dates_module_date__e3e1fc43 {\n color: var(--highlight);\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_firstHovered__e3e1fc43 {\n background: var(--background);\n border-radius: 0rem 1.5rem 1.5rem 0rem;\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_firstHovered__e3e1fc43 .Dates_module_date__e3e1fc43 {\n color: var(--highlight);\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_lastHovered__e3e1fc43 {\n background: var(--background);\n border-radius: 1.5rem 0rem 0rem 1.5rem;\n}\n.Dates_module_dates__e3e1fc43 .Dates_module_lastHovered__e3e1fc43 .Dates_module_date__e3e1fc43 {\n color: var(--highlight);\n}";
41877
- var modules_b02dadcc = {"dates":"Dates_module_dates__e3e1fc43","date":"Dates_module_date__e3e1fc43","selected":"Dates_module_selected__e3e1fc43","unSelected":"Dates_module_unSelected__e3e1fc43","disabled":"Dates_module_disabled__e3e1fc43","diffMonth":"Dates_module_diffMonth__e3e1fc43","minInRange":"Dates_module_minInRange__e3e1fc43","maxInRange":"Dates_module_maxInRange__e3e1fc43","midInRange":"Dates_module_midInRange__e3e1fc43","first-hovered":"Dates_module_firstHovered__e3e1fc43","last-hovered":"Dates_module_lastHovered__e3e1fc43"};
41881
+ var css$F = ".Dates_module_dates__e964f6bf {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n align-items: center;\n flex-wrap: wrap;\n}\n.Dates_module_dates__e964f6bf div {\n flex-basis: 14.28%;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n margin-bottom: 0.25rem;\n cursor: pointer;\n align-self: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.Dates_module_dates__e964f6bf div .Dates_module_date__e964f6bf {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n text-align: center;\n vertical-align: middle;\n border-radius: 1.5rem;\n height: 2.5rem;\n width: 2.5rem;\n font-weight: 400;\n font-size: 0.875rem;\n color: var(--black);\n}\n.Dates_module_dates__e964f6bf div .Dates_module_selected__e964f6bf {\n background-color: var(--highlight);\n color: var(--white);\n}\n.Dates_module_dates__e964f6bf div .Dates_module_unSelected__e964f6bf {\n background-color: var(--white);\n border-color: var(--highlight);\n border-width: 0.125rem;\n border-style: solid;\n color: var(--black);\n}\n.Dates_module_dates__e964f6bf div .Dates_module_disabled__e964f6bf {\n border-radius: 1.5rem;\n color: var(--grey2);\n}\n.Dates_module_dates__e964f6bf div .Dates_module_diffMonth__e964f6bf {\n opacity: 0.6;\n}\n.Dates_module_dates__e964f6bf div:hover .Dates_module_date__e964f6bf {\n background: var(--background);\n color: var(--highlight);\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n}\n.Dates_module_dates__e964f6bf div:hover .Dates_module_selected__e964f6bf {\n background-color: var(--highlight);\n color: var(--white);\n}\n.Dates_module_dates__e964f6bf div:hover .Dates_module_disabled__e964f6bf {\n background: transparent;\n box-shadow: none;\n border-radius: 1.5rem;\n color: var(--grey2);\n}\n.Dates_module_dates__e964f6bf .Dates_module_minInRange__e964f6bf {\n background-color: var(--highlight);\n border-radius: 1.5rem 0rem 0rem 1.5rem;\n}\n.Dates_module_dates__e964f6bf .Dates_module_minInRange__e964f6bf .Dates_module_date__e964f6bf {\n color: var(--white);\n}\n.Dates_module_dates__e964f6bf .Dates_module_minInRange__e964f6bf:hover .Dates_module_date__e964f6bf {\n background: var(--highlight);\n color: var(--white);\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n}\n.Dates_module_dates__e964f6bf .Dates_module_maxInRange__e964f6bf {\n background-color: var(--highlight);\n border-radius: 0rem 1.5rem 1.5rem 0rem;\n}\n.Dates_module_dates__e964f6bf .Dates_module_maxInRange__e964f6bf .Dates_module_date__e964f6bf {\n color: var(--white);\n}\n.Dates_module_dates__e964f6bf .Dates_module_maxInRange__e964f6bf:hover .Dates_module_date__e964f6bf {\n background: var(--highlight);\n color: var(--white);\n box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);\n}\n.Dates_module_dates__e964f6bf .Dates_module_midInRange__e964f6bf {\n background: var(--background);\n border-radius: 0rem;\n}\n.Dates_module_dates__e964f6bf .Dates_module_midInRange__e964f6bf .Dates_module_date__e964f6bf {\n color: var(--highlight);\n}\n.Dates_module_dates__e964f6bf .Dates_module_midInRangeSelected__e964f6bf {\n background: var(--background);\n border-radius: 0rem;\n}\n.Dates_module_dates__e964f6bf .Dates_module_midInRangeSelected__e964f6bf .Dates_module_date__e964f6bf {\n color: var(--white);\n}\n.Dates_module_dates__e964f6bf .Dates_module_firstHovered__e964f6bf {\n background: var(--background);\n border-radius: 0rem 1.5rem 1.5rem 0rem;\n}\n.Dates_module_dates__e964f6bf .Dates_module_firstHovered__e964f6bf .Dates_module_date__e964f6bf {\n color: var(--highlight);\n}\n.Dates_module_dates__e964f6bf .Dates_module_lastHovered__e964f6bf {\n background: var(--background);\n border-radius: 1.5rem 0rem 0rem 1.5rem;\n}\n.Dates_module_dates__e964f6bf .Dates_module_lastHovered__e964f6bf .Dates_module_date__e964f6bf {\n color: var(--highlight);\n}";
41882
+ var modules_b02dadcc = {"dates":"Dates_module_dates__e964f6bf","date":"Dates_module_date__e964f6bf","selected":"Dates_module_selected__e964f6bf","unSelected":"Dates_module_unSelected__e964f6bf","disabled":"Dates_module_disabled__e964f6bf","diffMonth":"Dates_module_diffMonth__e964f6bf","minInRange":"Dates_module_minInRange__e964f6bf","maxInRange":"Dates_module_maxInRange__e964f6bf","midInRange":"Dates_module_midInRange__e964f6bf","midInRangeSelected":"Dates_module_midInRangeSelected__e964f6bf","first-hovered":"Dates_module_firstHovered__e964f6bf","last-hovered":"Dates_module_lastHovered__e964f6bf"};
41878
41883
  n(css$F,{});
41879
41884
 
41880
41885
  var getDatesOfLastWeekOfLastMonth = function getDatesOfLastWeekOfLastMonth(_ref) {
@@ -42101,9 +42106,9 @@ var Dates = function Dates(props) {
42101
42106
  if (hoveredEndingDate) {
42102
42107
  isMidItem = isBefore(date, fromUnixTime(hoveredEndingDate)) && isAfter(date, fromUnixTime(firstItem)) || isAfter(date, fromUnixTime(hoveredEndingDate)) && isBefore(date, fromUnixTime(firstItem));
42103
42108
  } else {
42104
- isMidItem = isBefore(date, fromUnixTime(lastItem)) && isAfter(date, fromUnixTime(firstItem).setHours(23, 59, 59, 59));
42109
+ isMidItem = isBefore(date, fromUnixTime(lastItem).setHours(0, 0, 0, 0)) && isAfter(date, fromUnixTime(firstItem).setHours(23, 59, 59, 59));
42105
42110
  }
42106
- var parentClassNames = classes(isMidItem ? modules_b02dadcc.midInRange : '', isFirstItem ? isHoveringBeforeSelectedDate ? modules_b02dadcc.maxInRange : modules_b02dadcc.minInRange : '', isLastItem ? modules_b02dadcc.maxInRange : '', isLastItemHovered ? modules_b02dadcc['first-hovered'] : '', isFirstItemHovered ? modules_b02dadcc['last-hovered'] : '');
42111
+ var parentClassNames = classes(isMidItem ? selectedSingleDate ? modules_b02dadcc.midInRangeSelected : modules_b02dadcc.midInRange : '', isFirstItem ? isHoveringBeforeSelectedDate ? modules_b02dadcc.maxInRange : modules_b02dadcc.minInRange : '', isLastItem ? modules_b02dadcc.maxInRange : '', isLastItemHovered ? modules_b02dadcc['first-hovered'] : '', isFirstItemHovered ? modules_b02dadcc['last-hovered'] : '');
42107
42112
  var childClassNames = classes(date ? modules_b02dadcc.date : '', selectedSingleDate ? modules_b02dadcc.selected : '', isUnSelected ? modules_b02dadcc.unSelected : '', notSameMonth ? modules_b02dadcc.diffMonth : '', isDisabled ? modules_b02dadcc.disabled : '');
42108
42113
  return /*#__PURE__*/jsxRuntime.jsx("div", {
42109
42114
  className: parentClassNames,
@@ -43098,29 +43103,48 @@ var getDateAndUnixRange = function getDateAndUnixRange(duration) {
43098
43103
  startingDate.setHours(0, 0, 0, 0);
43099
43104
  var endingDate = new Date();
43100
43105
  endingDate.setHours(0, 0, 0, 0);
43101
- var dates = ["".concat(startingDate.getDate(), " ").concat(MONTHS[startingDate.getMonth()].substring(0, 3), " ").concat(startingDate.getFullYear()), "".concat(endingDate.getDate(), " ").concat(MONTHS[endingDate.getMonth()].substring(0, 3), " ").concat(endingDate.getFullYear())];
43106
+ var dates = getDatesInStringFormat({
43107
+ startingDate: startingDate,
43108
+ endingDate: endingDate
43109
+ });
43102
43110
  var unix = [getUnixTime(startingDate), getUnixTime(endingDate)];
43103
43111
  return {
43104
43112
  dates: dates,
43105
43113
  unix: unix
43106
43114
  };
43107
43115
  };
43108
- var dateRanges = [{
43109
- title: '7 Days',
43110
- dateRange: getDateAndUnixRange({
43111
- days: 7
43112
- })
43113
- }, {
43114
- title: '15 Days',
43115
- dateRange: getDateAndUnixRange({
43116
- days: 15
43117
- })
43118
- }, {
43119
- title: '1 Month',
43120
- dateRange: getDateAndUnixRange({
43121
- months: 1
43122
- })
43123
- }];
43116
+ var dateRanges = function dateRanges() {
43117
+ var customRanges = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
43118
+ if ((customRanges === null || customRanges === void 0 ? void 0 : customRanges.length) > 0) {
43119
+ return customRanges.map(function (range) {
43120
+ return {
43121
+ title: range.title,
43122
+ dateRange: getDateAndUnixRange(_defineProperty$1({}, range.type, [range.value]))
43123
+ };
43124
+ });
43125
+ }
43126
+ return [{
43127
+ title: 'Last 24 Hours',
43128
+ dateRange: getDateAndUnixRange({
43129
+ hours: 24
43130
+ })
43131
+ }, {
43132
+ title: 'Last 7 Days',
43133
+ dateRange: getDateAndUnixRange({
43134
+ days: 7
43135
+ })
43136
+ }, {
43137
+ title: 'Last 15 Days',
43138
+ dateRange: getDateAndUnixRange({
43139
+ days: 15
43140
+ })
43141
+ }, {
43142
+ title: 'Last 1 Month',
43143
+ dateRange: getDateAndUnixRange({
43144
+ months: 1
43145
+ })
43146
+ }];
43147
+ };
43124
43148
 
43125
43149
  var SelectedDateView = function SelectedDateView(props) {
43126
43150
  var value = props.value,
@@ -43151,7 +43175,9 @@ var Footer = function Footer(props) {
43151
43175
  setSelectedRange = props.setSelectedRange,
43152
43176
  range = props.range,
43153
43177
  goToDate = props.goToDate,
43154
- onApply = props.onApply;
43178
+ onApply = props.onApply,
43179
+ setFixedRange = props.setFixedRange,
43180
+ customRanges = props.customRanges;
43155
43181
  var date = selectedDate.date,
43156
43182
  month = selectedDate.month,
43157
43183
  year = selectedDate.year;
@@ -43159,8 +43185,9 @@ var Footer = function Footer(props) {
43159
43185
  dates = _selectedRange$dates === void 0 ? [] : _selectedRange$dates;
43160
43186
  var monthInShort = month === null || month === void 0 ? void 0 : month.substr(0, 3);
43161
43187
  var datesSelected = date || dates.length === 2;
43162
- var selectFixedDateRange = function selectFixedDateRange(dateRange) {
43188
+ var selectFixedDateRange = function selectFixedDateRange(dateRange, title) {
43163
43189
  setSelectedRange(dateRange);
43190
+ setFixedRange(title);
43164
43191
  };
43165
43192
  var resetDate = function resetDate() {
43166
43193
  goToDate(getUnixTime(new Date()));
@@ -43214,7 +43241,7 @@ var Footer = function Footer(props) {
43214
43241
  var timeValue = "".concat(getTimePickerValue().hours, ":").concat(getTimePickerValue().minutes, " ").concat(getTimePickerValue().meridian);
43215
43242
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
43216
43243
  className: modules_b490bd5d.root,
43217
- children: [/*#__PURE__*/jsxRuntime.jsx(TimePicker, {
43244
+ children: [!range && /*#__PURE__*/jsxRuntime.jsx(TimePicker, {
43218
43245
  value: getTimePickerValue(),
43219
43246
  onChange: onTimeChange,
43220
43247
  className: modules_b490bd5d['time-picker']
@@ -43235,7 +43262,7 @@ var Footer = function Footer(props) {
43235
43262
  action: resetDate
43236
43263
  }), range && /*#__PURE__*/jsxRuntime.jsx("div", {
43237
43264
  className: modules_b490bd5d['date-ranges'],
43238
- children: dateRanges.map(function (_ref) {
43265
+ children: dateRanges(customRanges).map(function (_ref) {
43239
43266
  var _selectedRange$unix;
43240
43267
  var dateRange = _ref.dateRange,
43241
43268
  title = _ref.title;
@@ -43243,7 +43270,7 @@ var Footer = function Footer(props) {
43243
43270
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
43244
43271
  className: classes(modules_b490bd5d['date-range'], selectedFixedDateRange ? modules_b490bd5d.selected : ''),
43245
43272
  onClick: function onClick() {
43246
- selectFixedDateRange(dateRange);
43273
+ selectFixedDateRange(dateRange, title);
43247
43274
  },
43248
43275
  children: [/*#__PURE__*/jsxRuntime.jsx(HalfShade, {}), /*#__PURE__*/jsxRuntime.jsx("span", {
43249
43276
  children: title
@@ -43267,7 +43294,9 @@ var Calender = function Calender(props) {
43267
43294
  onApply = props.onApply,
43268
43295
  disabledDates = props.disabledDates,
43269
43296
  disableDatesBefore = props.disableDatesBefore,
43270
- value = props.value;
43297
+ value = props.value,
43298
+ setFixedRange = props.setFixedRange,
43299
+ customRanges = props.customRanges;
43271
43300
  var _getDayInfo = getDayInfo(new Date()),
43272
43301
  month = _getDayInfo.month,
43273
43302
  year = _getDayInfo.year,
@@ -43283,10 +43312,16 @@ var Calender = function Calender(props) {
43283
43312
  selectedMonth = _useState2[0],
43284
43313
  setSelectedMonth = _useState2[1];
43285
43314
  React.useEffect(function () {
43286
- if (value) {
43287
- var _date = fromUnixTime(value);
43288
- var dateAsNumber = _date.getDate();
43289
- var selectedDayInfo = getDayInfo(_date);
43315
+ if (range && value) {
43316
+ setSelectedRange({
43317
+ dates: getDatesInStringFormat({
43318
+ startingDate: fromUnixTime(value[0]),
43319
+ endingDate: fromUnixTime(value[1])
43320
+ }),
43321
+ unix: [value[0], value[1]]
43322
+ });
43323
+ var dateAsNumber = fromUnixTime(value[0]).getDate();
43324
+ var selectedDayInfo = getDayInfo(fromUnixTime(value[0]));
43290
43325
  var selectedDateMonth = {
43291
43326
  month: selectedDayInfo.month,
43292
43327
  monthAsNumber: selectedDayInfo.monthAsNumber,
@@ -43302,19 +43337,40 @@ var Calender = function Calender(props) {
43302
43337
  month: selectedDateMonth.month,
43303
43338
  year: selectedDateMonth.year,
43304
43339
  date: dateAsNumber,
43305
- unix: getUnixTime(_date)
43340
+ unix: getUnixTime(fromUnixTime(value[0]))
43306
43341
  }));
43307
- return;
43308
- }
43309
- var date = new Date();
43310
- if (!range && !isBefore(date, disableDatesBefore)) {
43342
+ } else if (value) {
43343
+ var date = fromUnixTime(value);
43311
43344
  var _dateAsNumber = date.getDate();
43345
+ var _selectedDayInfo = getDayInfo(date);
43346
+ var _selectedDateMonth = {
43347
+ month: _selectedDayInfo.month,
43348
+ monthAsNumber: _selectedDayInfo.monthAsNumber,
43349
+ year: _selectedDayInfo.year,
43350
+ dayAsNumber: _selectedDayInfo.dayAsNumber
43351
+ };
43352
+ setSelectedMonth({
43353
+ month: _selectedDayInfo.month,
43354
+ monthAsNumber: _selectedDayInfo.monthAsNumber,
43355
+ year: _selectedDayInfo.year
43356
+ });
43312
43357
  setSelectedDate(_objectSpread2(_objectSpread2({}, selectedDate), {}, {
43313
- month: selectedMonth.month,
43314
- year: selectedMonth.year,
43358
+ month: _selectedDateMonth.month,
43359
+ year: _selectedDateMonth.year,
43315
43360
  date: _dateAsNumber,
43316
43361
  unix: getUnixTime(date)
43317
43362
  }));
43363
+ } else {
43364
+ var _date = new Date();
43365
+ if (!range && !isBefore(_date, disableDatesBefore)) {
43366
+ var _dateAsNumber2 = _date.getDate();
43367
+ setSelectedDate(_objectSpread2(_objectSpread2({}, selectedDate), {}, {
43368
+ month: selectedMonth.month,
43369
+ year: selectedMonth.year,
43370
+ date: _dateAsNumber2,
43371
+ unix: getUnixTime(_date)
43372
+ }));
43373
+ }
43318
43374
  }
43319
43375
  }, []);
43320
43376
  var goToDate = function goToDate(unix) {
@@ -43391,7 +43447,9 @@ var Calender = function Calender(props) {
43391
43447
  selectedRange: selectedRange,
43392
43448
  setSelectedRange: setSelectedRange,
43393
43449
  onApply: onApply,
43394
- goToDate: goToDate
43450
+ goToDate: goToDate,
43451
+ customRanges: customRanges,
43452
+ setFixedRange: setFixedRange
43395
43453
  })]
43396
43454
  });
43397
43455
  };
@@ -43435,7 +43493,9 @@ var DatePicker = function DatePicker(props) {
43435
43493
  className = props.className,
43436
43494
  disableDatesBefore = props.disableDatesBefore,
43437
43495
  theme = props.theme,
43438
- onClear = props.onClear;
43496
+ onClear = props.onClear,
43497
+ displayDateSelectionValue = props.displayValue,
43498
+ customRanges = props.customRanges;
43439
43499
  var _useState = React.useState(false),
43440
43500
  _useState2 = _slicedToArray(_useState, 2),
43441
43501
  open = _useState2[0],
@@ -43449,25 +43509,38 @@ var DatePicker = function DatePicker(props) {
43449
43509
  _useState4 = _slicedToArray(_useState3, 2),
43450
43510
  selectedRange = _useState4[0],
43451
43511
  setSelectedRange = _useState4[1];
43452
- var _useState5 = React.useState(function () {
43453
- return '';
43454
- }),
43512
+ var _useState5 = React.useState(null),
43455
43513
  _useState6 = _slicedToArray(_useState5, 2),
43456
- selectedDate = _useState6[0],
43457
- setSelectedDate = _useState6[1];
43514
+ fixedRange = _useState6[0],
43515
+ setFixedRange = _useState6[1];
43458
43516
  var _useState7 = React.useState(function () {
43459
43517
  return '';
43460
43518
  }),
43461
43519
  _useState8 = _slicedToArray(_useState7, 2),
43462
- error = _useState8[0],
43463
- setError = _useState8[1];
43520
+ selectedDate = _useState8[0],
43521
+ setSelectedDate = _useState8[1];
43522
+ var _useState9 = React.useState(function () {
43523
+ return '';
43524
+ }),
43525
+ _useState10 = _slicedToArray(_useState9, 2),
43526
+ error = _useState10[0],
43527
+ setError = _useState10[1];
43464
43528
  var datePickerRef = React.useRef();
43465
- var sDate = fromUnixTime(value);
43466
- var displayValue = '';
43529
+ var displayValue = displayDateSelectionValue;
43530
+ if (range) {
43531
+ var _sDate$getMonth$toStr, _eDate$getMonth$toStr;
43532
+ var sDate = fromUnixTime(value[0]);
43533
+ var eDate = fromUnixTime(value[1]);
43534
+ displayValue = " ".concat(sDate.getDate(), " ").concat(MONTHS[(_sDate$getMonth$toStr = sDate.getMonth().toString()) === null || _sDate$getMonth$toStr === void 0 ? void 0 : _sDate$getMonth$toStr.substring(0, 3)], " - ").concat(eDate.getDate(), " ").concat(MONTHS[(_eDate$getMonth$toStr = eDate.getMonth().toString()) === null || _eDate$getMonth$toStr === void 0 ? void 0 : _eDate$getMonth$toStr.substring(0, 3)], " ").concat(eDate.getFullYear());
43535
+ }
43467
43536
  if (!range && value) {
43468
- var _sDate$getMonth$toStr;
43469
- var timeValue = "".concat((sDate.getHours() + 11) % 12 + 1, ":").concat(sDate.getMinutes(), " ").concat(sDate.getHours() >= 12 ? 'PM' : 'AM');
43470
- displayValue = " ".concat(sDate.getDate(), " ").concat(MONTHS[(_sDate$getMonth$toStr = sDate.getMonth().toString()) === null || _sDate$getMonth$toStr === void 0 ? void 0 : _sDate$getMonth$toStr.substring(0, 3)], " ").concat(sDate.getFullYear(), " ").concat(timeValue);
43537
+ var _sDate$getMonth$toStr2;
43538
+ var _sDate = fromUnixTime(value);
43539
+ var timeValue = "".concat((_sDate.getHours() + 11) % 12 + 1, ":").concat(_sDate.getMinutes(), " ").concat(_sDate.getHours() >= 12 ? 'PM' : 'AM');
43540
+ displayValue = " ".concat(_sDate.getDate(), " ").concat(MONTHS[(_sDate$getMonth$toStr2 = _sDate.getMonth().toString()) === null || _sDate$getMonth$toStr2 === void 0 ? void 0 : _sDate$getMonth$toStr2.substring(0, 3)], " ").concat(_sDate.getFullYear(), " ").concat(timeValue);
43541
+ }
43542
+ if (fixedRange) {
43543
+ displayValue = fixedRange;
43471
43544
  }
43472
43545
  var _useFloating = useFloating({
43473
43546
  open: open,
@@ -43507,7 +43580,7 @@ var DatePicker = function DatePicker(props) {
43507
43580
  getFloatingProps = _useInteractions.getFloatingProps;
43508
43581
  var apply = function apply() {
43509
43582
  if (selectedRange.dates.length === 2) {
43510
- if (!isMaxRangeExceeded({
43583
+ if (maxRange !== null && !isMaxRangeExceeded({
43511
43584
  maxRange: maxRange,
43512
43585
  selectedRange: selectedRange
43513
43586
  })) {
@@ -43516,7 +43589,7 @@ var DatePicker = function DatePicker(props) {
43516
43589
  return;
43517
43590
  }
43518
43591
  setError('');
43519
- onApply(selectedRange.unix);
43592
+ onApply(selectedRange.unix, fixedRange);
43520
43593
  setOpen(false);
43521
43594
  } else {
43522
43595
  onApply(selectedDate.unix);
@@ -43534,7 +43607,9 @@ var DatePicker = function DatePicker(props) {
43534
43607
  },
43535
43608
  disabledDates: disabledDates,
43536
43609
  disableDatesBefore: disableDatesBefore,
43537
- value: value
43610
+ value: value,
43611
+ setFixedRange: setFixedRange,
43612
+ customRanges: customRanges
43538
43613
  };
43539
43614
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
43540
43615
  className: classes(modules_5b831cd1.root, className),
@@ -43615,7 +43690,13 @@ DatePicker.propTypes = {
43615
43690
  }),
43616
43691
  className: propTypes$1.exports.string,
43617
43692
  disableDatesBefore: propTypes$1.exports.arrayOf(propTypes$1.exports.string),
43618
- theme: propTypes$1.exports.string
43693
+ theme: propTypes$1.exports.string,
43694
+ displayValue: propTypes$1.exports.string,
43695
+ customRanges: propTypes$1.exports.arrayOf(propTypes$1.exports.shape({
43696
+ title: propTypes$1.exports.string,
43697
+ type: propTypes$1.exports.string,
43698
+ value: propTypes$1.exports.string
43699
+ }))
43619
43700
  };
43620
43701
  DatePicker.defaultProps = {
43621
43702
  placeholder: '',
@@ -43629,6 +43710,8 @@ DatePicker.defaultProps = {
43629
43710
  className: '',
43630
43711
  disableDatesBefore: [],
43631
43712
  theme: 'dark',
43713
+ customRanges: null,
43714
+ displayValue: '',
43632
43715
  onClear: function onClear() {}
43633
43716
  };
43634
43717
 
@@ -105675,7 +105758,7 @@ function useDeepCompareMemoize(value) {
105675
105758
  return ref.current;
105676
105759
  }
105677
105760
 
105678
- var _excluded = ["onClick", "onIdle", "children", "style", "mapId", "clustered", "fitBounds"];
105761
+ var _excluded$1 = ["onClick", "onIdle", "children", "style", "mapId", "clustered", "fitBounds"];
105679
105762
  var BaseMap = function BaseMap(props) {
105680
105763
  // eslint-disable-next-line object-curly-newline
105681
105764
  var onClick = props.onClick,
@@ -105685,8 +105768,9 @@ var BaseMap = function BaseMap(props) {
105685
105768
  mapId = props.mapId,
105686
105769
  clustered = props.clustered,
105687
105770
  fitBounds = props.fitBounds,
105688
- options = _objectWithoutProperties$1(props, _excluded);
105771
+ options = _objectWithoutProperties$1(props, _excluded$1);
105689
105772
  var ref = React.useRef(null);
105773
+ var markersRef = React.useRef([]);
105690
105774
  var _useState = React.useState(),
105691
105775
  _useState2 = _slicedToArray(_useState, 2),
105692
105776
  map = _useState2[0],
@@ -105699,12 +105783,13 @@ var BaseMap = function BaseMap(props) {
105699
105783
  }
105700
105784
  }, [map]);
105701
105785
  React.useEffect(function () {
105702
- if (clustered && map && React.Children.count(children) > 0) {
105703
- var markers = React.Children.map(children, function (child) {
105704
- return new google.maps.Marker({
105705
- position: child.props.position
105706
- });
105786
+ var _markersRef$current;
105787
+ if (clustered && map && React.Children.count(children) > 0 && (markersRef === null || markersRef === void 0 ? void 0 : (_markersRef$current = markersRef.current) === null || _markersRef$current === void 0 ? void 0 : _markersRef$current.length) > 0) {
105788
+ var _markersRef$current2;
105789
+ var markers = markersRef === null || markersRef === void 0 ? void 0 : (_markersRef$current2 = markersRef.current) === null || _markersRef$current2 === void 0 ? void 0 : _markersRef$current2.map(function (marker) {
105790
+ return marker.current;
105707
105791
  });
105792
+
105708
105793
  // eslint-disable-next-line no-new
105709
105794
  new MarkerClusterer({
105710
105795
  map: map,
@@ -105760,11 +105845,18 @@ var BaseMap = function BaseMap(props) {
105760
105845
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
105761
105846
  ref: ref,
105762
105847
  style: style
105763
- }), !clustered && React.Children.map(children, function (child) {
105848
+ }), React.Children.map(children, function (child, index) {
105849
+ if (index === 0) {
105850
+ markersRef.current = [];
105851
+ }
105764
105852
  if ( /*#__PURE__*/React.isValidElement(child)) {
105853
+ var _markersRef$current3;
105854
+ var childRef = /*#__PURE__*/React.createRef();
105855
+ markersRef === null || markersRef === void 0 ? void 0 : (_markersRef$current3 = markersRef.current) === null || _markersRef$current3 === void 0 ? void 0 : _markersRef$current3.push(childRef);
105765
105856
  // set the map prop on the child component
105766
105857
  return /*#__PURE__*/React.cloneElement(child, {
105767
- map: map
105858
+ map: map,
105859
+ ref: childRef
105768
105860
  });
105769
105861
  }
105770
105862
  return null;
@@ -105802,14 +105894,22 @@ Map$1.defaultProps = {
105802
105894
  libraries: undefined
105803
105895
  };
105804
105896
 
105805
- var Marker = function Marker(options) {
105897
+ var _excluded = ["children"];
105898
+
105899
+ // eslint-disable-next-line prefer-arrow-callback
105900
+ var Marker = /*#__PURE__*/React.forwardRef(function Marker(_ref, ref) {
105901
+ var children = _ref.children,
105902
+ options = _objectWithoutProperties$1(_ref, _excluded);
105806
105903
  var _useState = React.useState(),
105807
105904
  _useState2 = _slicedToArray(_useState, 2),
105808
105905
  marker = _useState2[0],
105809
105906
  setMarker = _useState2[1];
105907
+ var infoWindowRef = React.useRef(null);
105810
105908
  React.useEffect(function () {
105811
105909
  if (!marker) {
105812
- setMarker(new google.maps.Marker());
105910
+ var newMap = new google.maps.Marker();
105911
+ setMarker(newMap);
105912
+ ref.current = newMap;
105813
105913
  }
105814
105914
 
105815
105915
  // remove marker from map on unmount
@@ -105819,12 +105919,57 @@ var Marker = function Marker(options) {
105819
105919
  }
105820
105920
  };
105821
105921
  }, [marker]);
105922
+ React.useEffect(function () {
105923
+ if (marker && React.Children.count(children) === 1 && infoWindowRef !== null && infoWindowRef !== void 0 && infoWindowRef.current) {
105924
+ var infoWindow = infoWindowRef === null || infoWindowRef === void 0 ? void 0 : infoWindowRef.current;
105925
+ marker.addListener('click', function () {
105926
+ infoWindow.open({
105927
+ anchor: marker,
105928
+ map: options.map
105929
+ });
105930
+ });
105931
+ }
105932
+ }, [marker, children]);
105822
105933
  React.useEffect(function () {
105823
105934
  if (marker) {
105824
105935
  marker.setOptions(options);
105825
105936
  }
105826
105937
  }, [marker, options]);
105938
+ if (React.Children.count(children) === 1) {
105939
+ var _Children$toArray;
105940
+ var child = (_Children$toArray = React.Children.toArray(children)) === null || _Children$toArray === void 0 ? void 0 : _Children$toArray[0];
105941
+ if ( /*#__PURE__*/React.isValidElement(child)) {
105942
+ // set the map prop on the child component
105943
+ return /*#__PURE__*/React.cloneElement(child, {
105944
+ ref: infoWindowRef
105945
+ });
105946
+ }
105947
+ }
105827
105948
  return null;
105949
+ });
105950
+
105951
+ // eslint-disable-next-line prefer-arrow-callback
105952
+ var InfoWindow = /*#__PURE__*/React.forwardRef(function InfoWindow(options, ref) {
105953
+ var _useState = React.useState(),
105954
+ _useState2 = _slicedToArray(_useState, 2),
105955
+ infoWindow = _useState2[0],
105956
+ setInfoWindow = _useState2[1];
105957
+ React.useEffect(function () {
105958
+ if (!infoWindow) {
105959
+ var newInfoWindow = new google.maps.InfoWindow();
105960
+ setInfoWindow(newInfoWindow);
105961
+ ref.current = newInfoWindow;
105962
+ }
105963
+ }, [infoWindow]);
105964
+ React.useEffect(function () {
105965
+ if (infoWindow) {
105966
+ infoWindow.setOptions(options);
105967
+ }
105968
+ }, [infoWindow, options]);
105969
+ return null;
105970
+ });
105971
+ InfoWindow.defaultProps = {
105972
+ disableAutoPan: true
105828
105973
  };
105829
105974
 
105830
105975
  exports.Accordion = Accordion;
@@ -105876,6 +106021,7 @@ exports.FilterIcon = Filter;
105876
106021
  exports.HalfShadeIcon = HalfShade;
105877
106022
  exports.HierarchyBrowser = HierarchyBrowser;
105878
106023
  exports.HierarchyItem = HierarchyItem;
106024
+ exports.InfoWindow = InfoWindow;
105879
106025
  exports.Link = Link;
105880
106026
  exports.MONTHS = MONTHS;
105881
106027
  exports.MagnifyingGlassIcon = MagnifyingGlass;
@@ -105921,6 +106067,7 @@ exports.getCSSVariableValue = getCSSVariableValue;
105921
106067
  exports.getCurrentSearchParams = getCurrentSearchParams;
105922
106068
  exports.getDateFromEpoch = getDateFromEpoch;
105923
106069
  exports.getDatesInAMonth = getDatesInAMonth;
106070
+ exports.getDatesInStringFormat = getDatesInStringFormat;
105924
106071
  exports.getDayInfo = getDayInfo;
105925
106072
  exports.getInitialsOfName = getInitialsOfName;
105926
106073
  exports.getJSDateFromEpoch = getJSDateFromEpoch;
@@ -105929,6 +106076,7 @@ exports.getSpacedDisplayName = getSpacedDisplayName;
105929
106076
  exports.getTimeFromEpoch = getTimeFromEpoch;
105930
106077
  exports.inputHelper = inputHelper;
105931
106078
  exports.propTypes = propTypes;
106079
+ exports.safeJSONParse = safeJSONParse;
105932
106080
  exports.stringToPath = stringToPath;
105933
106081
  exports.sumArrayOfObjects = sumArrayOfObjects;
105934
106082
  exports.uniqueArray = uniqueArray;