@notificationapi/react 0.0.23 → 0.0.25
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/assets/AntdIcon.js +200 -0
- package/dist/assets/Notification.js +127 -120
- package/dist/assets/PurePanel.js +69 -0
- package/dist/assets/RightOutlined.js +13 -0
- package/dist/assets/button.js +19 -18
- package/dist/assets/channelUtils.js +77 -0
- package/dist/assets/colors.js +8534 -9304
- package/dist/assets/index.js +16 -15
- package/dist/assets/index2.js +33 -32
- package/dist/assets/index3.js +722 -8531
- package/dist/assets/index4.js +8408 -0
- package/dist/assets/pickAttrs.js +42 -0
- package/dist/components/Notifications/Inbox.d.ts +3 -7
- package/dist/components/Notifications/Inbox.js +6250 -8
- package/dist/components/Notifications/InboxHeader.d.ts +1 -1
- package/dist/components/Notifications/InboxHeader.js +8 -7
- package/dist/components/Notifications/Notification.d.ts +2 -5
- package/dist/components/Notifications/Notification.js +3 -4
- package/dist/components/Notifications/NotificationCounter.d.ts +2 -2
- package/dist/components/Notifications/NotificationFeed.d.ts +4 -5
- package/dist/components/Notifications/NotificationFeed.js +28 -26
- package/dist/components/Notifications/NotificationLauncher.d.ts +1 -6
- package/dist/components/Notifications/NotificationLauncher.js +16 -18
- package/dist/components/Notifications/NotificationPopup.d.ts +5 -9
- package/dist/components/Notifications/NotificationPopup.js +119 -12
- package/dist/components/Notifications/UnreadBadge.d.ts +4 -7
- package/dist/components/Notifications/UnreadBadge.js +8 -10
- package/dist/components/Notifications/index.js +5 -5
- package/dist/components/Notifications/interface.d.ts +46 -0
- package/dist/components/Notifications/interface.js +19 -0
- package/dist/components/Preferences/NotificationPreferencesInline.d.ts +1 -1
- package/dist/components/Preferences/NotificationPreferencesInline.js +1 -1
- package/dist/components/Preferences/NotificationPreferencesPopup.js +1503 -4
- package/dist/components/Preferences/PreferenceInput.d.ts +5 -4
- package/dist/components/Preferences/PreferenceInput.js +1435 -4
- package/dist/components/Preferences/Preferences.d.ts +1 -4
- package/dist/components/Preferences/Preferences.js +581 -8
- package/dist/components/Preferences/channelUtils.d.ts +4 -0
- package/dist/components/Preferences/channelUtils.js +8 -0
- package/dist/components/Preferences/index.js +1 -1
- package/dist/components/Provider/index.d.ts +2 -2
- package/dist/components/Provider/index.js +150 -126
- package/dist/main.d.ts +2 -2
- package/dist/main.js +9 -9
- package/package.json +5 -2
- package/dist/assets/Inbox.js +0 -6363
- package/dist/assets/NotificationPreferencesPopup.js +0 -1562
- package/dist/assets/Preferences.js +0 -2120
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs as er, jsx as ve } from "react/jsx-runtime";
|
|
2
2
|
import * as H from "react";
|
|
3
3
|
import we, { useRef as Ft, useDebugValue as sn, createElement as io, useContext as so, useMemo as je, useCallback as oo, useState as ao, useEffect as on } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { E as uo, F as M, G as Ce, M as W, W as V, H as co, I as tr, J as gt, L as $e, N as lo, R as zi, O as fo, Q as ho, S as qi, U as Le, V as po, X as mo, Y as et, Z as an, $ as un, h as go, a0 as yo, g as vo, m as wo, r as bo, u as So, o as To, a as Ui, e as Oo, c as xo, a1 as Eo, a2 as ko, a3 as Ao, a4 as Po, a5 as Ro, a6 as Vi } from "./colors.js";
|
|
5
|
+
import { c as pr, l as Bi, m as Hi } from "./index3.js";
|
|
6
|
+
import { e as _o, l as Yi, D as Co, t as $o, T as cn, R as Do } from "./index4.js";
|
|
6
7
|
import { P as No } from "./index.js";
|
|
7
8
|
import { B as Io } from "./button.js";
|
|
8
9
|
import { B as Fo } from "./index2.js";
|
|
@@ -450,7 +451,7 @@ const Xo = (e, t) => {
|
|
|
450
451
|
const b = Oo("Avatar");
|
|
451
452
|
process.env.NODE_ENV !== "production" && b(!(typeof h == "string" && h.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${h}\` at https://ant.design/components/icon`);
|
|
452
453
|
}
|
|
453
|
-
const z = d("avatar", N), oe = Yi(z), [
|
|
454
|
+
const z = d("avatar", N), oe = Yi(z), [Z, p, g] = Xi(z, oe), E = pr({
|
|
454
455
|
[`${z}-lg`]: G === "large",
|
|
455
456
|
[`${z}-sm`]: G === "small"
|
|
456
457
|
}), A = /* @__PURE__ */ H.isValidElement(x), C = _ || (v == null ? void 0 : v.shape) || "circle", F = pr(z, E, y == null ? void 0 : y.className, `${z}-${C}`, {
|
|
@@ -496,7 +497,7 @@ const Xo = (e, t) => {
|
|
|
496
497
|
},
|
|
497
498
|
ref: l
|
|
498
499
|
}, ce);
|
|
499
|
-
return delete ae.onError, delete ae.gap,
|
|
500
|
+
return delete ae.onError, delete ae.gap, Z(/* @__PURE__ */ H.createElement("span", Object.assign({}, ae, {
|
|
500
501
|
style: Object.assign(Object.assign(Object.assign(Object.assign({}, D), se), y == null ? void 0 : y.style), ae.style),
|
|
501
502
|
className: F,
|
|
502
503
|
ref: f
|
|
@@ -579,15 +580,15 @@ function st(e, t, r) {
|
|
|
579
580
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
580
581
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
581
582
|
}
|
|
582
|
-
function
|
|
583
|
+
function Qo(e) {
|
|
583
584
|
var t = /* @__PURE__ */ Object.create(null);
|
|
584
585
|
return function(r) {
|
|
585
586
|
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
586
587
|
};
|
|
587
588
|
}
|
|
588
|
-
var
|
|
589
|
+
var Zo = /^((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|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|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)-.*))$/, Ko = /* @__PURE__ */ Qo(
|
|
589
590
|
function(e) {
|
|
590
|
-
return
|
|
591
|
+
return Zo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
591
592
|
}
|
|
592
593
|
/* Z+1 */
|
|
593
594
|
), ea = {
|
|
@@ -638,7 +639,7 @@ var Qo = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
638
639
|
strokeMiterlimit: 1,
|
|
639
640
|
strokeOpacity: 1,
|
|
640
641
|
strokeWidth: 1
|
|
641
|
-
}, Ge = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
642
|
+
}, Ge = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Qi = "active", Zi = "data-styled-version", Wt = "6.1.11", zr = `/*!sc*/
|
|
642
643
|
`, qr = typeof window < "u" && "HTMLElement" in window, ta = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), fn = /invalid hook call/i, Tt = /* @__PURE__ */ new Set(), ra = function(e, t) {
|
|
643
644
|
if (process.env.NODE_ENV !== "production") {
|
|
644
645
|
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
@@ -851,7 +852,7 @@ var va = function() {
|
|
|
851
852
|
return Ct.set(e, t), Lt.set(t, e), t;
|
|
852
853
|
}, ba = function(e, t) {
|
|
853
854
|
$t = t + 1, Ct.set(e, t), Lt.set(t, e);
|
|
854
|
-
}, Sa = "style[".concat(Ge, "][").concat(
|
|
855
|
+
}, Sa = "style[".concat(Ge, "][").concat(Zi, '="').concat(Wt, '"]'), Ta = new RegExp("^".concat(Ge, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Oa = function(e, t, r) {
|
|
855
856
|
for (var n, i = r.split(","), s = 0, o = i.length; s < o; s++)
|
|
856
857
|
(n = i[s]) && e.registerName(t, n);
|
|
857
858
|
}, xa = function(e, t) {
|
|
@@ -875,7 +876,7 @@ var os = function(e) {
|
|
|
875
876
|
var u = Array.from(a.querySelectorAll("style[".concat(Ge, "]")));
|
|
876
877
|
return u[u.length - 1];
|
|
877
878
|
}(r), s = i !== void 0 ? i.nextSibling : null;
|
|
878
|
-
n.setAttribute(Ge,
|
|
879
|
+
n.setAttribute(Ge, Qi), n.setAttribute(Zi, Wt);
|
|
879
880
|
var o = Ea();
|
|
880
881
|
return o && n.setAttribute("nonce", o), r.insertBefore(n, s), n;
|
|
881
882
|
}, ka = function() {
|
|
@@ -936,7 +937,7 @@ var os = function(e) {
|
|
|
936
937
|
this.options = le(le({}, Ra), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && qr && vn && (vn = !1, function(s) {
|
|
937
938
|
for (var o = document.querySelectorAll(Sa), a = 0, u = o.length; a < u; a++) {
|
|
938
939
|
var l = o[a];
|
|
939
|
-
l && l.getAttribute(Ge) !==
|
|
940
|
+
l && l.getAttribute(Ge) !== Qi && (xa(s, l), l.parentNode && l.parentNode.removeChild(l));
|
|
940
941
|
}
|
|
941
942
|
}(this)), Vr(this, function() {
|
|
942
943
|
return function(s) {
|
|
@@ -1144,23 +1145,23 @@ function Ma(e, t, r) {
|
|
|
1144
1145
|
return function(I, Y, J) {
|
|
1145
1146
|
var ie = I.attrs, ce = I.componentStyle, fe = I.defaultProps, ae = I.foldedComponentIds, G = I.styledComponentId, ue = I.target, ye = we.useContext(hs), se = wn(), z = I.shouldForwardProp || se.shouldForwardProp;
|
|
1146
1147
|
process.env.NODE_ENV !== "production" && sn(G);
|
|
1147
|
-
var oe = na(Y, ye, fe) || ot,
|
|
1148
|
+
var oe = na(Y, ye, fe) || ot, Z = function(F, D, P) {
|
|
1148
1149
|
for (var b, T = le(le({}, D), { className: void 0, theme: P }), $ = 0; $ < F.length; $ += 1) {
|
|
1149
1150
|
var ee = at(b = F[$]) ? b(T) : b;
|
|
1150
1151
|
for (var m in ee)
|
|
1151
1152
|
T[m] = m === "className" ? Ue(T[m], ee[m]) : m === "style" ? le(le({}, T[m]), ee[m]) : ee[m];
|
|
1152
1153
|
}
|
|
1153
1154
|
return D.className && (T.className = Ue(T.className, D.className)), T;
|
|
1154
|
-
}(ie, Y, oe), p =
|
|
1155
|
-
for (var E in
|
|
1156
|
-
|
|
1155
|
+
}(ie, Y, oe), p = Z.as || ue, g = {};
|
|
1156
|
+
for (var E in Z)
|
|
1157
|
+
Z[E] === void 0 || E[0] === "$" || E === "as" || E === "theme" && Z.theme === oe || (E === "forwardedAs" ? g.as = Z.forwardedAs : z && !z(E, p) || (g[E] = Z[E], z || process.env.NODE_ENV !== "development" || Ko(E) || Tn.has(E) || !mr.has(p) || (Tn.add(E), console.warn('styled-components: it looks like an unknown prop "'.concat(E, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
1157
1158
|
var A = function(F, D) {
|
|
1158
1159
|
var P = wn(), b = F.generateAndInjectStyles(D, P.styleSheet, P.stylis);
|
|
1159
1160
|
return process.env.NODE_ENV !== "production" && sn(b), b;
|
|
1160
|
-
}(ce,
|
|
1161
|
+
}(ce, Z);
|
|
1161
1162
|
process.env.NODE_ENV !== "production" && I.warnTooManyClasses && I.warnTooManyClasses(A);
|
|
1162
1163
|
var C = Ue(ae, G);
|
|
1163
|
-
return A && (C += " " + A),
|
|
1164
|
+
return A && (C += " " + A), Z.className && (C += " " + Z.className), g[nr(p) && !mr.has(p) ? "class" : "className"] = C, g.ref = J, io(p, g);
|
|
1164
1165
|
}(x, k, h);
|
|
1165
1166
|
}
|
|
1166
1167
|
R.displayName = d;
|
|
@@ -1583,7 +1584,7 @@ function Wa(e, t, r) {
|
|
|
1583
1584
|
return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
1584
1585
|
}
|
|
1585
1586
|
function Cn(e, t) {
|
|
1586
|
-
return
|
|
1587
|
+
return Qa(e) || Ja(e, t) || Xa(e, t) || Ga();
|
|
1587
1588
|
}
|
|
1588
1589
|
function Ga() {
|
|
1589
1590
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -1626,11 +1627,11 @@ function Ja(e, t) {
|
|
|
1626
1627
|
return n;
|
|
1627
1628
|
}
|
|
1628
1629
|
}
|
|
1629
|
-
function
|
|
1630
|
+
function Qa(e) {
|
|
1630
1631
|
if (Array.isArray(e))
|
|
1631
1632
|
return e;
|
|
1632
1633
|
}
|
|
1633
|
-
function
|
|
1634
|
+
function Za(e, t) {
|
|
1634
1635
|
if (!(e instanceof t))
|
|
1635
1636
|
throw new TypeError("Cannot call a class as a function");
|
|
1636
1637
|
}
|
|
@@ -1646,7 +1647,7 @@ function eu(e, t, r) {
|
|
|
1646
1647
|
var tu = ["second", "minute", "hour", "day", "week", "month", "quarter", "year"], ru = ["auto", "always"], nu = ["long", "short", "narrow"], iu = ["lookup", "best fit"], Ie = /* @__PURE__ */ function() {
|
|
1647
1648
|
function e() {
|
|
1648
1649
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1649
|
-
|
|
1650
|
+
Za(this, e);
|
|
1650
1651
|
var n = r.numeric, i = r.style, s = r.localeMatcher;
|
|
1651
1652
|
if (this.numeric = "always", this.style = "long", this.localeMatcher = "lookup", n !== void 0) {
|
|
1652
1653
|
if (ru.indexOf(n) < 0)
|
|
@@ -2587,7 +2588,7 @@ function Jn(e, t) {
|
|
|
2587
2588
|
}
|
|
2588
2589
|
return r;
|
|
2589
2590
|
}
|
|
2590
|
-
function
|
|
2591
|
+
function Qn(e) {
|
|
2591
2592
|
for (var t = 1; t < arguments.length; t++) {
|
|
2592
2593
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
2593
2594
|
t % 2 ? Jn(Object(r), !0).forEach(function(n) {
|
|
@@ -2601,13 +2602,13 @@ function Zn(e) {
|
|
|
2601
2602
|
function Yu(e, t, r) {
|
|
2602
2603
|
return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
2603
2604
|
}
|
|
2604
|
-
const $r =
|
|
2605
|
+
const $r = Qn(Qn({}, vt), {}, {
|
|
2605
2606
|
// Skip "seconds".
|
|
2606
2607
|
steps: vt.steps.filter(function(e) {
|
|
2607
2608
|
return e.formatAs !== "second";
|
|
2608
2609
|
})
|
|
2609
2610
|
});
|
|
2610
|
-
function
|
|
2611
|
+
function Zn(e, t) {
|
|
2611
2612
|
var r = Object.keys(e);
|
|
2612
2613
|
if (Object.getOwnPropertySymbols) {
|
|
2613
2614
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -2620,9 +2621,9 @@ function Qn(e, t) {
|
|
|
2620
2621
|
function Kn(e) {
|
|
2621
2622
|
for (var t = 1; t < arguments.length; t++) {
|
|
2622
2623
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
2623
|
-
t % 2 ?
|
|
2624
|
+
t % 2 ? Zn(Object(r), !0).forEach(function(n) {
|
|
2624
2625
|
Wu(e, n, r[n]);
|
|
2625
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
2626
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Zn(Object(r)).forEach(function(n) {
|
|
2626
2627
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
2627
2628
|
});
|
|
2628
2629
|
}
|
|
@@ -2693,10 +2694,10 @@ function Ju(e, t) {
|
|
|
2693
2694
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2694
2695
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2695
2696
|
}
|
|
2696
|
-
function
|
|
2697
|
-
return ec(e) || Ku(e, t) || As(e, t) ||
|
|
2697
|
+
function Qu(e, t) {
|
|
2698
|
+
return ec(e) || Ku(e, t) || As(e, t) || Zu();
|
|
2698
2699
|
}
|
|
2699
|
-
function
|
|
2700
|
+
function Zu() {
|
|
2700
2701
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2701
2702
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2702
2703
|
}
|
|
@@ -2796,7 +2797,7 @@ var he = /* @__PURE__ */ function() {
|
|
|
2796
2797
|
future: d,
|
|
2797
2798
|
getNextStep: !0
|
|
2798
2799
|
}
|
|
2799
|
-
), _ =
|
|
2800
|
+
), _ = Qu(N, 3), R = _[0], x = _[1], k = _[2], h = this.formatDateForStep(s, x, f, {
|
|
2800
2801
|
labels: a,
|
|
2801
2802
|
labelsType: u,
|
|
2802
2803
|
nowLabel: y,
|
|
@@ -3409,7 +3410,7 @@ function lc() {
|
|
|
3409
3410
|
}
|
|
3410
3411
|
}
|
|
3411
3412
|
var h = u, I = l, Y = a, J = o, ie = t, ce = f, fe = n, ae = O, G = v, ue = r, ye = s, se = i, z = d, oe = !1;
|
|
3412
|
-
function
|
|
3413
|
+
function Z(m) {
|
|
3413
3414
|
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), p(m) || k(m) === u;
|
|
3414
3415
|
}
|
|
3415
3416
|
function p(m) {
|
|
@@ -3448,7 +3449,7 @@ function lc() {
|
|
|
3448
3449
|
function ee(m) {
|
|
3449
3450
|
return k(m) === d;
|
|
3450
3451
|
}
|
|
3451
|
-
U.AsyncMode = h, U.ConcurrentMode = I, U.ContextConsumer = Y, U.ContextProvider = J, U.Element = ie, U.ForwardRef = ce, U.Fragment = fe, U.Lazy = ae, U.Memo = G, U.Portal = ue, U.Profiler = ye, U.StrictMode = se, U.Suspense = z, U.isAsyncMode =
|
|
3452
|
+
U.AsyncMode = h, U.ConcurrentMode = I, U.ContextConsumer = Y, U.ContextProvider = J, U.Element = ie, U.ForwardRef = ce, U.Fragment = fe, U.Lazy = ae, U.Memo = G, U.Portal = ue, U.Profiler = ye, U.StrictMode = se, U.Suspense = z, U.isAsyncMode = Z, U.isConcurrentMode = p, U.isContextConsumer = g, U.isContextProvider = E, U.isElement = A, U.isForwardRef = C, U.isFragment = F, U.isLazy = D, U.isMemo = P, U.isPortal = b, U.isProfiler = T, U.isStrictMode = $, U.isSuspense = ee, U.isValidElementType = x, U.typeOf = k;
|
|
3452
3453
|
}()), U;
|
|
3453
3454
|
}
|
|
3454
3455
|
var ii;
|
|
@@ -3591,7 +3592,7 @@ function fc() {
|
|
|
3591
3592
|
function I(p) {
|
|
3592
3593
|
function g(E, A, C, F, D) {
|
|
3593
3594
|
if (!(E[A] instanceof p)) {
|
|
3594
|
-
var P = p.name || y, b =
|
|
3595
|
+
var P = p.name || y, b = Z(E[A]);
|
|
3595
3596
|
return new S("Invalid " + F + " `" + D + "` of type " + ("`" + b + "` supplied to `" + C + "`, expected ") + ("instance of `" + P + "`."));
|
|
3596
3597
|
}
|
|
3597
3598
|
return null;
|
|
@@ -3771,7 +3772,7 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
3771
3772
|
return g;
|
|
3772
3773
|
}
|
|
3773
3774
|
}
|
|
3774
|
-
function
|
|
3775
|
+
function Z(p) {
|
|
3775
3776
|
return !p.constructor || !p.constructor.name ? y : p.constructor.name;
|
|
3776
3777
|
}
|
|
3777
3778
|
return v.checkPropTypes = i, v.resetWarningCache = i.resetWarningCache, v.PropTypes = v, v;
|
|
@@ -4200,7 +4201,7 @@ function Wc(e, t) {
|
|
|
4200
4201
|
});
|
|
4201
4202
|
}
|
|
4202
4203
|
function Rt(e, t) {
|
|
4203
|
-
return
|
|
4204
|
+
return Qc(e) || Jc(e, t) || Xc(e, t) || Gc();
|
|
4204
4205
|
}
|
|
4205
4206
|
function Gc() {
|
|
4206
4207
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -4243,11 +4244,11 @@ function Jc(e, t) {
|
|
|
4243
4244
|
return n;
|
|
4244
4245
|
}
|
|
4245
4246
|
}
|
|
4246
|
-
function
|
|
4247
|
+
function Qc(e) {
|
|
4247
4248
|
if (Array.isArray(e))
|
|
4248
4249
|
return e;
|
|
4249
4250
|
}
|
|
4250
|
-
function
|
|
4251
|
+
function Zc(e) {
|
|
4251
4252
|
var t = e.date, r = e.future, n = e.locale, i = e.locales, s = e.timeStyle, o = e.round, a = e.minTimeLeft, u = e.formatVerboseDate, l = e.verboseDateFormat, f = l === void 0 ? tl : l, d = e.updateInterval, y = e.tick, v = y === void 0 ? !0 : y, O = e.now, S = e.timeOffset, N = S === void 0 ? 0 : S, _ = e.polyfill, R = je(function() {
|
|
4252
4253
|
return n && (i = [n]), i.concat(he.getDefaultLocale());
|
|
4253
4254
|
}, [n, i]), x = je(function() {
|
|
@@ -4261,8 +4262,8 @@ function Qc(e) {
|
|
|
4261
4262
|
var k = oo(function() {
|
|
4262
4263
|
var z = (O || Date.now()) - N, oe;
|
|
4263
4264
|
if (r && z >= t.getTime() && (z = t.getTime(), oe = !0), a !== void 0) {
|
|
4264
|
-
var
|
|
4265
|
-
z >
|
|
4265
|
+
var Z = t.getTime() - a * 1e3;
|
|
4266
|
+
z > Z && (z = Z, oe = !0);
|
|
4266
4267
|
}
|
|
4267
4268
|
var p = x.format(t, s, {
|
|
4268
4269
|
getTimeToNextUpdate: !0,
|
|
@@ -4289,8 +4290,8 @@ function Qc(e) {
|
|
|
4289
4290
|
if (ue.current)
|
|
4290
4291
|
ue.current.forceUpdate();
|
|
4291
4292
|
else {
|
|
4292
|
-
var z = k(), oe = Rt(z, 1),
|
|
4293
|
-
G(
|
|
4293
|
+
var z = k(), oe = Rt(z, 1), Z = oe[0];
|
|
4294
|
+
G(Z);
|
|
4294
4295
|
}
|
|
4295
4296
|
}, [k]);
|
|
4296
4297
|
var ye = je(function() {
|
|
@@ -4366,7 +4367,7 @@ function ol(e, t) {
|
|
|
4366
4367
|
return r;
|
|
4367
4368
|
}
|
|
4368
4369
|
function Bt(e) {
|
|
4369
|
-
var t = e.date, r = e.future, n = e.timeStyle, i = e.round, s = e.minTimeLeft, o = e.locale, a = e.locales, u = a === void 0 ? [] : a, l = e.formatVerboseDate, f = e.verboseDateFormat, d = e.updateInterval, y = e.tick, v = e.now, O = e.timeOffset, S = e.polyfill, N = e.tooltip, _ = N === void 0 ? !0 : N, R = e.component, x = R === void 0 ? qt : R, k = e.container, h = e.wrapperComponent, I = e.wrapperProps, Y = sl(e, il), J =
|
|
4370
|
+
var t = e.date, r = e.future, n = e.timeStyle, i = e.round, s = e.minTimeLeft, o = e.locale, a = e.locales, u = a === void 0 ? [] : a, l = e.formatVerboseDate, f = e.verboseDateFormat, d = e.updateInterval, y = e.tick, v = e.now, O = e.timeOffset, S = e.polyfill, N = e.tooltip, _ = N === void 0 ? !0 : N, R = e.component, x = R === void 0 ? qt : R, k = e.container, h = e.wrapperComponent, I = e.wrapperProps, Y = sl(e, il), J = Zc({
|
|
4370
4371
|
date: t,
|
|
4371
4372
|
future: r,
|
|
4372
4373
|
timeStyle: n,
|
|
@@ -4492,7 +4493,7 @@ class ge {
|
|
|
4492
4493
|
return this.end - this.begin;
|
|
4493
4494
|
}
|
|
4494
4495
|
}
|
|
4495
|
-
class
|
|
4496
|
+
class Qe {
|
|
4496
4497
|
liquidMethodMissing(t) {
|
|
4497
4498
|
}
|
|
4498
4499
|
}
|
|
@@ -4522,7 +4523,7 @@ function re(e) {
|
|
|
4522
4523
|
return e = L(e), Re(e) ? [] : ne(e) ? e : [e];
|
|
4523
4524
|
}
|
|
4524
4525
|
function L(e) {
|
|
4525
|
-
return e instanceof
|
|
4526
|
+
return e instanceof Qe && te(e.valueOf) ? e.valueOf() : e;
|
|
4526
4527
|
}
|
|
4527
4528
|
function Wr(e) {
|
|
4528
4529
|
return typeof e == "number";
|
|
@@ -4594,7 +4595,7 @@ function Gr(e) {
|
|
|
4594
4595
|
return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
4595
4596
|
}
|
|
4596
4597
|
const bi = "__liquidClass__";
|
|
4597
|
-
class
|
|
4598
|
+
class Ze extends Error {
|
|
4598
4599
|
constructor(t, r) {
|
|
4599
4600
|
super(typeof t == "string" ? t : t.message), this.context = "", typeof t != "string" && Object.defineProperty(this, "originalError", { value: t, enumerable: !1 }), Object.defineProperty(this, "token", { value: r, enumerable: !1 }), Object.defineProperty(this, bi, { value: "LiquidError", enumerable: !1 });
|
|
4600
4601
|
}
|
|
@@ -4608,17 +4609,17 @@ From ` + this.originalError.stack);
|
|
|
4608
4609
|
return (t == null ? void 0 : t[bi]) === "LiquidError";
|
|
4609
4610
|
}
|
|
4610
4611
|
}
|
|
4611
|
-
class ml extends
|
|
4612
|
+
class ml extends Ze {
|
|
4612
4613
|
constructor(t, r) {
|
|
4613
4614
|
super(t, r), this.name = "TokenizationError", super.update();
|
|
4614
4615
|
}
|
|
4615
4616
|
}
|
|
4616
|
-
class gl extends
|
|
4617
|
+
class gl extends Ze {
|
|
4617
4618
|
constructor(t, r) {
|
|
4618
4619
|
super(t, r), this.name = "ParseError", this.message = t.message, super.update();
|
|
4619
4620
|
}
|
|
4620
4621
|
}
|
|
4621
|
-
class yl extends
|
|
4622
|
+
class yl extends Ze {
|
|
4622
4623
|
constructor(t, r) {
|
|
4623
4624
|
super(t, r.token), this.name = "RenderError", this.message = t.message, super.update();
|
|
4624
4625
|
}
|
|
@@ -4626,7 +4627,7 @@ class yl extends Qe {
|
|
|
4626
4627
|
return t.name === "RenderError";
|
|
4627
4628
|
}
|
|
4628
4629
|
}
|
|
4629
|
-
class qs extends
|
|
4630
|
+
class qs extends Ze {
|
|
4630
4631
|
constructor(t) {
|
|
4631
4632
|
super(t[0], t[0].token), this.errors = t, this.name = "LiquidErrors";
|
|
4632
4633
|
const r = t.length > 1 ? "s" : "";
|
|
@@ -4636,7 +4637,7 @@ class qs extends Qe {
|
|
|
4636
4637
|
return t.name === "LiquidErrors";
|
|
4637
4638
|
}
|
|
4638
4639
|
}
|
|
4639
|
-
class vl extends
|
|
4640
|
+
class vl extends Ze {
|
|
4640
4641
|
constructor(t, r) {
|
|
4641
4642
|
super(t, r), this.name = "UndefinedVariableError", this.message = t.message, super.update();
|
|
4642
4643
|
}
|
|
@@ -4681,7 +4682,7 @@ function Se(e, t) {
|
|
|
4681
4682
|
throw new bl(r);
|
|
4682
4683
|
}
|
|
4683
4684
|
}
|
|
4684
|
-
class El extends
|
|
4685
|
+
class El extends Qe {
|
|
4685
4686
|
equals(t) {
|
|
4686
4687
|
return Re(L(t));
|
|
4687
4688
|
}
|
|
@@ -4701,9 +4702,9 @@ class El extends Ze {
|
|
|
4701
4702
|
return null;
|
|
4702
4703
|
}
|
|
4703
4704
|
}
|
|
4704
|
-
class
|
|
4705
|
+
class Qt extends Qe {
|
|
4705
4706
|
equals(t) {
|
|
4706
|
-
return t instanceof
|
|
4707
|
+
return t instanceof Qt ? !1 : (t = L(t), be(t) || ne(t) ? t.length === 0 : Jt(t) ? Object.keys(t).length === 0 : !1);
|
|
4707
4708
|
}
|
|
4708
4709
|
gt() {
|
|
4709
4710
|
return !1;
|
|
@@ -4721,12 +4722,12 @@ class Zt extends Ze {
|
|
|
4721
4722
|
return "";
|
|
4722
4723
|
}
|
|
4723
4724
|
}
|
|
4724
|
-
class kl extends
|
|
4725
|
+
class kl extends Qt {
|
|
4725
4726
|
equals(t) {
|
|
4726
4727
|
return t === !1 || Re(L(t)) ? !0 : be(t) ? /^\s*$/.test(t) : super.equals(t);
|
|
4727
4728
|
}
|
|
4728
4729
|
}
|
|
4729
|
-
class Xr extends
|
|
4730
|
+
class Xr extends Qe {
|
|
4730
4731
|
constructor(t, r, n) {
|
|
4731
4732
|
super(), this.i = 0, this.length = t, this.name = `${n}-${r}`;
|
|
4732
4733
|
}
|
|
@@ -4755,7 +4756,7 @@ class Xr extends Ze {
|
|
|
4755
4756
|
return JSON.stringify(this);
|
|
4756
4757
|
}
|
|
4757
4758
|
}
|
|
4758
|
-
class Ti extends
|
|
4759
|
+
class Ti extends Qe {
|
|
4759
4760
|
constructor(t = () => "") {
|
|
4760
4761
|
super(), this.superBlockRender = t;
|
|
4761
4762
|
}
|
|
@@ -4775,7 +4776,7 @@ const Oi = new El(), Hs = {
|
|
|
4775
4776
|
false: !1,
|
|
4776
4777
|
nil: Oi,
|
|
4777
4778
|
null: Oi,
|
|
4778
|
-
empty: new
|
|
4779
|
+
empty: new Qt(),
|
|
4779
4780
|
blank: new kl()
|
|
4780
4781
|
};
|
|
4781
4782
|
function xi(e) {
|
|
@@ -5245,12 +5246,12 @@ class Jl extends Jr {
|
|
|
5245
5246
|
super(X.Tag, [r, n], t, r, n, !1, !1, s), this.tokenizer = new _e(t, i.operators, s, this.contentRange), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal liquid tag syntax"), this.tokenizer.skipBlank(), this.args = this.tokenizer.remaining();
|
|
5246
5247
|
}
|
|
5247
5248
|
}
|
|
5248
|
-
class
|
|
5249
|
+
class Ql extends ge {
|
|
5249
5250
|
constructor(t, r, n, i, s, o) {
|
|
5250
5251
|
super(X.FilteredValue, n, i, s, o), this.initial = t, this.filters = r, this.input = n, this.begin = i, this.end = s, this.file = o;
|
|
5251
5252
|
}
|
|
5252
5253
|
}
|
|
5253
|
-
class
|
|
5254
|
+
class Zl {
|
|
5254
5255
|
constructor() {
|
|
5255
5256
|
this.buffer = "";
|
|
5256
5257
|
}
|
|
@@ -5277,7 +5278,7 @@ class tf {
|
|
|
5277
5278
|
return Promise.resolve().then(() => De(this.renderTemplates(t, r, n))).then(() => n.end(), (i) => n.error(i)), n.stream;
|
|
5278
5279
|
}
|
|
5279
5280
|
*renderTemplates(t, r, n) {
|
|
5280
|
-
n || (n = r.opts.keepOutputType ? new ef() : new
|
|
5281
|
+
n || (n = r.opts.keepOutputType ? new ef() : new Zl());
|
|
5281
5282
|
const i = [];
|
|
5282
5283
|
for (const s of t)
|
|
5283
5284
|
try {
|
|
@@ -5285,7 +5286,7 @@ class tf {
|
|
|
5285
5286
|
if (o && n.write(o), n.break || n.continue)
|
|
5286
5287
|
break;
|
|
5287
5288
|
} catch (o) {
|
|
5288
|
-
const a =
|
|
5289
|
+
const a = Ze.is(o) ? o : new yl(o, s);
|
|
5289
5290
|
if (r.opts.catchAllErrors)
|
|
5290
5291
|
i.push(a);
|
|
5291
5292
|
else
|
|
@@ -5368,9 +5369,9 @@ function* of(e) {
|
|
|
5368
5369
|
yield t.pop();
|
|
5369
5370
|
}
|
|
5370
5371
|
function Ve(e, t) {
|
|
5371
|
-
return !
|
|
5372
|
+
return !Zt(e, t);
|
|
5372
5373
|
}
|
|
5373
|
-
function
|
|
5374
|
+
function Zt(e, t) {
|
|
5374
5375
|
return e = L(e), t.opts.jsTruthy ? !e : e === !1 || e === void 0 || e === null;
|
|
5375
5376
|
}
|
|
5376
5377
|
const af = {
|
|
@@ -5381,7 +5382,7 @@ const af = {
|
|
|
5381
5382
|
">=": (e, t) => Oe(e) ? e.geq(t) : Oe(t) ? t.leq(e) : L(e) >= L(t),
|
|
5382
5383
|
"<=": (e, t) => Oe(e) ? e.leq(t) : Oe(t) ? t.geq(e) : L(e) <= L(t),
|
|
5383
5384
|
contains: (e, t) => (e = L(e), ne(e) ? e.some((r) => Ye(r, t)) : te(e == null ? void 0 : e.indexOf) ? e.indexOf(L(t)) > -1 : !1),
|
|
5384
|
-
not: (e, t) =>
|
|
5385
|
+
not: (e, t) => Zt(L(e), t),
|
|
5385
5386
|
and: (e, t, r) => Ve(L(e), r) && Ve(L(t), r),
|
|
5386
5387
|
or: (e, t, r) => Ve(L(e), r) || Ve(L(t), r)
|
|
5387
5388
|
};
|
|
@@ -5425,7 +5426,7 @@ class Ni {
|
|
|
5425
5426
|
this.size > this.limit && this.remove(this.tail.prev.key);
|
|
5426
5427
|
}
|
|
5427
5428
|
}
|
|
5428
|
-
function
|
|
5429
|
+
function Qs(e, t) {
|
|
5429
5430
|
const r = document.createElement("base");
|
|
5430
5431
|
r.href = e;
|
|
5431
5432
|
const n = document.getElementsByTagName("head")[0];
|
|
@@ -5436,7 +5437,7 @@ function Zs(e, t) {
|
|
|
5436
5437
|
return n.removeChild(r), s;
|
|
5437
5438
|
}
|
|
5438
5439
|
function cf(e, t, r) {
|
|
5439
|
-
return e.length && Ls(e) !== "/" && (e += "/"),
|
|
5440
|
+
return e.length && Ls(e) !== "/" && (e += "/"), Qs(e, t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (i, s, o) => {
|
|
5440
5441
|
const a = o.split("/").pop();
|
|
5441
5442
|
return /\.\w+$/.test(a) ? i : s + o + r;
|
|
5442
5443
|
});
|
|
@@ -5468,7 +5469,7 @@ function pf(e) {
|
|
|
5468
5469
|
return !0;
|
|
5469
5470
|
}
|
|
5470
5471
|
function df(e) {
|
|
5471
|
-
return
|
|
5472
|
+
return Qs(e, ".");
|
|
5472
5473
|
}
|
|
5473
5474
|
const mf = "/";
|
|
5474
5475
|
var gf = /* @__PURE__ */ Object.freeze({
|
|
@@ -5482,7 +5483,7 @@ var gf = /* @__PURE__ */ Object.freeze({
|
|
|
5482
5483
|
sep: mf
|
|
5483
5484
|
});
|
|
5484
5485
|
function yf(e, t, ...r) {
|
|
5485
|
-
return e = L(e), ne(e) || be(e) ? e.length ? e : t : e === !1 && new Map(r).get("allow_false") ? !1 :
|
|
5486
|
+
return e = L(e), ne(e) || be(e) ? e.length ? e : t : e === !1 && new Map(r).get("allow_false") ? !1 : Zt(e, this.context) ? t : e;
|
|
5486
5487
|
}
|
|
5487
5488
|
function Ii(e, t = 0) {
|
|
5488
5489
|
return JSON.stringify(e, null, t);
|
|
@@ -5504,7 +5505,7 @@ const bf = {
|
|
|
5504
5505
|
raw: !0,
|
|
5505
5506
|
handler: zs
|
|
5506
5507
|
};
|
|
5507
|
-
var
|
|
5508
|
+
var Zs = {
|
|
5508
5509
|
default: yf,
|
|
5509
5510
|
raw: bf,
|
|
5510
5511
|
jsonify: Ii,
|
|
@@ -5590,7 +5591,7 @@ function Rf(e) {
|
|
|
5590
5591
|
return e = Object.assign(Object.assign(Object.assign({}, qe), e.jekyllInclude ? { dynamicPartials: !1 } : {}), e), (!e.fs.dirname || !e.fs.sep) && e.relativeReference && (console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"), e.relativeReference = !1), e.root = It(e.root), e.partials = It(e.partials), e.layouts = It(e.layouts), e.outputEscape = e.outputEscape && _f(e.outputEscape), e;
|
|
5591
5592
|
}
|
|
5592
5593
|
function _f(e) {
|
|
5593
|
-
return e === "escape" ? Kt : e === "json" ?
|
|
5594
|
+
return e === "escape" ? Kt : e === "json" ? Zs.json : (Se(te(e), "`outputEscape` need to be of type string or function"), e);
|
|
5594
5595
|
}
|
|
5595
5596
|
function It(e) {
|
|
5596
5597
|
let t = [];
|
|
@@ -5604,14 +5605,14 @@ function Cf(e, t) {
|
|
|
5604
5605
|
}
|
|
5605
5606
|
}
|
|
5606
5607
|
function $f(e, t) {
|
|
5607
|
-
if (!e || !
|
|
5608
|
+
if (!e || !Zr(e))
|
|
5608
5609
|
return;
|
|
5609
5610
|
const r = t ? lt : Us;
|
|
5610
5611
|
for (; B[e.input.charCodeAt(e.end - 1 - e.trimRight)] & r; )
|
|
5611
5612
|
e.trimRight++;
|
|
5612
5613
|
}
|
|
5613
5614
|
function Df(e, t) {
|
|
5614
|
-
if (!e || !
|
|
5615
|
+
if (!e || !Zr(e))
|
|
5615
5616
|
return;
|
|
5616
5617
|
const r = t ? lt : Us;
|
|
5617
5618
|
for (; B[e.input.charCodeAt(e.begin + e.trimLeft)] & r; )
|
|
@@ -5657,7 +5658,7 @@ class _e {
|
|
|
5657
5658
|
const t = this.p, r = this.readExpression();
|
|
5658
5659
|
this.assert(r.valid(), `invalid value expression: ${this.snapshot()}`);
|
|
5659
5660
|
const n = this.readFilters();
|
|
5660
|
-
return new
|
|
5661
|
+
return new Ql(r, n, this.input, t, this.p, this.file);
|
|
5661
5662
|
}
|
|
5662
5663
|
readFilters() {
|
|
5663
5664
|
const t = [];
|
|
@@ -5983,12 +5984,12 @@ class Nf {
|
|
|
5983
5984
|
return this.stopRequested = !0, this;
|
|
5984
5985
|
}
|
|
5985
5986
|
}
|
|
5986
|
-
class
|
|
5987
|
+
class Qr {
|
|
5987
5988
|
constructor(t) {
|
|
5988
5989
|
this.token = t;
|
|
5989
5990
|
}
|
|
5990
5991
|
}
|
|
5991
|
-
class
|
|
5992
|
+
class Q extends Qr {
|
|
5992
5993
|
constructor(t, r, n) {
|
|
5993
5994
|
super(t), this.name = t.name, this.liquid = n, this.tokenizer = t.tokenizer;
|
|
5994
5995
|
}
|
|
@@ -6008,7 +6009,7 @@ class ht {
|
|
|
6008
6009
|
}
|
|
6009
6010
|
}
|
|
6010
6011
|
function If(e) {
|
|
6011
|
-
return class extends
|
|
6012
|
+
return class extends Q {
|
|
6012
6013
|
constructor(t, r, n) {
|
|
6013
6014
|
super(t, r, n), te(e.parse) && e.parse.call(this, t, r);
|
|
6014
6015
|
}
|
|
@@ -6053,7 +6054,7 @@ class me {
|
|
|
6053
6054
|
return Se(n || !t.options.strictFilters, () => `undefined filter: ${r}`), n;
|
|
6054
6055
|
}
|
|
6055
6056
|
}
|
|
6056
|
-
class Lf extends
|
|
6057
|
+
class Lf extends Qr {
|
|
6057
6058
|
constructor(t, r) {
|
|
6058
6059
|
var n;
|
|
6059
6060
|
super(t);
|
|
@@ -6067,7 +6068,7 @@ class Lf extends Zr {
|
|
|
6067
6068
|
r.write(n);
|
|
6068
6069
|
}
|
|
6069
6070
|
}
|
|
6070
|
-
class Mf extends
|
|
6071
|
+
class Mf extends Qr {
|
|
6071
6072
|
constructor(t) {
|
|
6072
6073
|
super(t), this.str = t.getContent();
|
|
6073
6074
|
}
|
|
@@ -6157,7 +6158,7 @@ class zf {
|
|
|
6157
6158
|
}
|
|
6158
6159
|
return Uf(t) ? new Lf(t, this.liquid) : new Mf(t);
|
|
6159
6160
|
} catch (n) {
|
|
6160
|
-
throw
|
|
6161
|
+
throw Ze.is(n) ? n : new gl(n, t);
|
|
6161
6162
|
}
|
|
6162
6163
|
}
|
|
6163
6164
|
parseStream(t) {
|
|
@@ -6190,7 +6191,7 @@ function qf(e) {
|
|
|
6190
6191
|
function eo(e) {
|
|
6191
6192
|
return Fe(e) === X.Operator;
|
|
6192
6193
|
}
|
|
6193
|
-
function
|
|
6194
|
+
function Zr(e) {
|
|
6194
6195
|
return Fe(e) === X.HTML;
|
|
6195
6196
|
}
|
|
6196
6197
|
function Uf(e) {
|
|
@@ -6281,10 +6282,10 @@ function Yf(e, t, r) {
|
|
|
6281
6282
|
if (ne(e) && t < 0)
|
|
6282
6283
|
return e[e.length + +t];
|
|
6283
6284
|
const n = Wf(e, t, r);
|
|
6284
|
-
return n === void 0 && e instanceof
|
|
6285
|
+
return n === void 0 && e instanceof Qe ? e.liquidMethodMissing(t) : te(n) ? n.call(e) : t === "size" ? Jf(e) : t === "first" ? Gf(e) : t === "last" ? Xf(e) : n;
|
|
6285
6286
|
}
|
|
6286
6287
|
function Wf(e, t, r) {
|
|
6287
|
-
if (!(r && !Object.hasOwnProperty.call(e, t) && !(e instanceof
|
|
6288
|
+
if (!(r && !Object.hasOwnProperty.call(e, t) && !(e instanceof Qe)))
|
|
6288
6289
|
return e[t];
|
|
6289
6290
|
}
|
|
6290
6291
|
function Gf(e) {
|
|
@@ -6305,7 +6306,7 @@ var We;
|
|
|
6305
6306
|
(function(e) {
|
|
6306
6307
|
e[e.OUTPUT = 0] = "OUTPUT", e[e.STORE = 1] = "STORE";
|
|
6307
6308
|
})(We || (We = {}));
|
|
6308
|
-
const
|
|
6309
|
+
const Qf = pe(Math.abs), Zf = pe(Math.max), Kf = pe(Math.min), eh = pe(Math.ceil), th = pe((e, t, r = !1) => r ? Math.floor(e / t) : e / t), rh = pe(Math.floor), nh = pe((e, t) => e - t), ih = pe((e, t) => e % t), sh = pe((e, t) => e * t);
|
|
6309
6310
|
function oh(e, t = 0) {
|
|
6310
6311
|
e = L(e), t = L(t);
|
|
6311
6312
|
const r = Math.pow(10, t);
|
|
@@ -6316,8 +6317,8 @@ function ah(e, t) {
|
|
|
6316
6317
|
}
|
|
6317
6318
|
var uh = /* @__PURE__ */ Object.freeze({
|
|
6318
6319
|
__proto__: null,
|
|
6319
|
-
abs:
|
|
6320
|
-
at_least:
|
|
6320
|
+
abs: Qf,
|
|
6321
|
+
at_least: Zf,
|
|
6321
6322
|
at_most: Kf,
|
|
6322
6323
|
ceil: eh,
|
|
6323
6324
|
divided_by: th,
|
|
@@ -6550,10 +6551,10 @@ function Xh(e, t) {
|
|
|
6550
6551
|
function Jh(e) {
|
|
6551
6552
|
return w(e).toLowerCase();
|
|
6552
6553
|
}
|
|
6553
|
-
function
|
|
6554
|
+
function Qh(e) {
|
|
6554
6555
|
return w(e).toUpperCase();
|
|
6555
6556
|
}
|
|
6556
|
-
function
|
|
6557
|
+
function Zh(e, t) {
|
|
6557
6558
|
return w(e).split(w(t)).join("");
|
|
6558
6559
|
}
|
|
6559
6560
|
function Kh(e, t) {
|
|
@@ -6636,8 +6637,8 @@ var dp = /* @__PURE__ */ Object.freeze({
|
|
|
6636
6637
|
prepend: Gh,
|
|
6637
6638
|
lstrip: Xh,
|
|
6638
6639
|
downcase: Jh,
|
|
6639
|
-
upcase:
|
|
6640
|
-
remove:
|
|
6640
|
+
upcase: Qh,
|
|
6641
|
+
remove: Zh,
|
|
6641
6642
|
remove_first: Kh,
|
|
6642
6643
|
remove_last: ep,
|
|
6643
6644
|
rstrip: tp,
|
|
@@ -6654,8 +6655,8 @@ var dp = /* @__PURE__ */ Object.freeze({
|
|
|
6654
6655
|
number_of_words: hp,
|
|
6655
6656
|
array_to_sentence_string: pp
|
|
6656
6657
|
});
|
|
6657
|
-
const mp = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Pf), uh), gh), zh), Yh), dp),
|
|
6658
|
-
class gp extends
|
|
6658
|
+
const mp = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Pf), uh), gh), zh), Yh), dp), Zs);
|
|
6659
|
+
class gp extends Q {
|
|
6659
6660
|
constructor(t, r, n) {
|
|
6660
6661
|
super(t, r, n), this.key = this.tokenizer.readIdentifier().content, this.tokenizer.assert(this.key, "expected variable name"), this.tokenizer.skipBlank(), this.tokenizer.assert(this.tokenizer.peek() === "=", 'expected "="'), this.tokenizer.advance(), this.value = new me(this.tokenizer.readFilteredValue(), this.liquid);
|
|
6661
6662
|
}
|
|
@@ -6664,7 +6665,7 @@ class gp extends Z {
|
|
|
6664
6665
|
}
|
|
6665
6666
|
}
|
|
6666
6667
|
const Mi = ["offset", "limit", "reversed"];
|
|
6667
|
-
class yp extends
|
|
6668
|
+
class yp extends Q {
|
|
6668
6669
|
constructor(t, r, n) {
|
|
6669
6670
|
super(t, r, n);
|
|
6670
6671
|
const i = this.tokenizer.readIdentifier(), s = this.tokenizer.readIdentifier(), o = this.tokenizer.readValue();
|
|
@@ -6709,7 +6710,7 @@ function wp(e, t) {
|
|
|
6709
6710
|
function bp(e, t) {
|
|
6710
6711
|
return e.slice(0, t);
|
|
6711
6712
|
}
|
|
6712
|
-
class Sp extends
|
|
6713
|
+
class Sp extends Q {
|
|
6713
6714
|
constructor(t, r, n) {
|
|
6714
6715
|
for (super(t, r, n), this.templates = [], this.variable = this.readVariableName(); r.length; ) {
|
|
6715
6716
|
const i = r.shift();
|
|
@@ -6733,7 +6734,7 @@ class Sp extends Z {
|
|
|
6733
6734
|
throw this.tokenizer.error("invalid capture name");
|
|
6734
6735
|
}
|
|
6735
6736
|
}
|
|
6736
|
-
class Tp extends
|
|
6737
|
+
class Tp extends Q {
|
|
6737
6738
|
constructor(t, r, n) {
|
|
6738
6739
|
super(t, r, n), this.branches = [], this.elseTemplates = [], this.value = new me(this.tokenizer.readFilteredValue(), this.liquid), this.elseTemplates = [];
|
|
6739
6740
|
let i = [], s = 0;
|
|
@@ -6771,7 +6772,7 @@ class Tp extends Z {
|
|
|
6771
6772
|
s || (yield n.renderTemplates(this.elseTemplates, t, r));
|
|
6772
6773
|
}
|
|
6773
6774
|
}
|
|
6774
|
-
class Op extends
|
|
6775
|
+
class Op extends Q {
|
|
6775
6776
|
constructor(t, r, n) {
|
|
6776
6777
|
for (super(t, r, n); r.length; ) {
|
|
6777
6778
|
const i = r.shift();
|
|
@@ -6783,7 +6784,7 @@ class Op extends Z {
|
|
|
6783
6784
|
render() {
|
|
6784
6785
|
}
|
|
6785
6786
|
}
|
|
6786
|
-
class xp extends
|
|
6787
|
+
class xp extends Q {
|
|
6787
6788
|
constructor(t, r, n) {
|
|
6788
6789
|
super(t, r, n);
|
|
6789
6790
|
const i = this.tokenizer;
|
|
@@ -6841,12 +6842,12 @@ function en(e, t) {
|
|
|
6841
6842
|
return n === "none" ? void 0 : n;
|
|
6842
6843
|
}
|
|
6843
6844
|
function ji(e) {
|
|
6844
|
-
return e.length === 1 &&
|
|
6845
|
+
return e.length === 1 && Zr(e[0].token) ? e[0].token.getContent() : e;
|
|
6845
6846
|
}
|
|
6846
6847
|
function* tn(e, t, r) {
|
|
6847
6848
|
return typeof e == "string" ? e : Array.isArray(e) ? r.renderer.renderTemplates(e, t) : yield K(e, t);
|
|
6848
6849
|
}
|
|
6849
|
-
class Ep extends
|
|
6850
|
+
class Ep extends Q {
|
|
6850
6851
|
constructor(t, r, n) {
|
|
6851
6852
|
super(t, r, n);
|
|
6852
6853
|
const { tokenizer: i } = t;
|
|
@@ -6865,7 +6866,7 @@ class Ep extends Z {
|
|
|
6865
6866
|
t.push(t.opts.jekyllInclude ? { include: l } : l), yield o.renderTemplates(f, t, r), t.pop(), t.restoreRegister(u);
|
|
6866
6867
|
}
|
|
6867
6868
|
}
|
|
6868
|
-
class kp extends
|
|
6869
|
+
class kp extends Q {
|
|
6869
6870
|
constructor(t, r, n) {
|
|
6870
6871
|
super(t, r, n), this.variable = this.tokenizer.readIdentifier().content;
|
|
6871
6872
|
}
|
|
@@ -6874,7 +6875,7 @@ class kp extends Z {
|
|
|
6874
6875
|
Wr(n[this.variable]) || (n[this.variable] = 0), r.write(w(--n[this.variable]));
|
|
6875
6876
|
}
|
|
6876
6877
|
}
|
|
6877
|
-
class Ap extends
|
|
6878
|
+
class Ap extends Q {
|
|
6878
6879
|
constructor(t, r, n) {
|
|
6879
6880
|
super(t, r, n), this.candidates = [];
|
|
6880
6881
|
const i = this.tokenizer.readValue();
|
|
@@ -6892,7 +6893,7 @@ class Ap extends Z {
|
|
|
6892
6893
|
return o = (o + 1) % this.candidates.length, s[i] = o, yield K(a, t);
|
|
6893
6894
|
}
|
|
6894
6895
|
}
|
|
6895
|
-
class Pp extends
|
|
6896
|
+
class Pp extends Q {
|
|
6896
6897
|
constructor(t, r, n) {
|
|
6897
6898
|
super(t, r, n), this.branches = [], this.elseTemplates = [];
|
|
6898
6899
|
let i = [], s = 0;
|
|
@@ -6930,7 +6931,7 @@ class Pp extends Z {
|
|
|
6930
6931
|
yield n.renderTemplates(this.elseTemplates, t, r);
|
|
6931
6932
|
}
|
|
6932
6933
|
}
|
|
6933
|
-
class Rp extends
|
|
6934
|
+
class Rp extends Q {
|
|
6934
6935
|
constructor(t, r, n) {
|
|
6935
6936
|
super(t, r, n), this.variable = this.tokenizer.readIdentifier().content;
|
|
6936
6937
|
}
|
|
@@ -6941,7 +6942,7 @@ class Rp extends Z {
|
|
|
6941
6942
|
n[this.variable]++, r.write(w(i));
|
|
6942
6943
|
}
|
|
6943
6944
|
}
|
|
6944
|
-
class _p extends
|
|
6945
|
+
class _p extends Q {
|
|
6945
6946
|
constructor(t, r, n) {
|
|
6946
6947
|
super(t, r, n), this.file = en(this.tokenizer, this.liquid), this.currentFile = t.file, this.args = new ht(this.tokenizer.remaining()), this.templates = this.liquid.parser.parseTokens(r);
|
|
6947
6948
|
}
|
|
@@ -6959,7 +6960,7 @@ class _p extends Z {
|
|
|
6959
6960
|
f[""] === void 0 && (f[""] = (d, y) => y.write(l)), t.setRegister("blockMode", We.OUTPUT), t.push(yield i.render(t)), yield o.renderTemplates(u, t, r), t.pop();
|
|
6960
6961
|
}
|
|
6961
6962
|
}
|
|
6962
|
-
class Cp extends
|
|
6963
|
+
class Cp extends Q {
|
|
6963
6964
|
constructor(t, r, n) {
|
|
6964
6965
|
super(t, r, n), this.templates = [];
|
|
6965
6966
|
const i = /\w+/.exec(t.args);
|
|
@@ -6983,7 +6984,7 @@ class Cp extends Z {
|
|
|
6983
6984
|
return i ? (o, a) => i(new Ti(() => s(o, a)), a) : s;
|
|
6984
6985
|
}
|
|
6985
6986
|
}
|
|
6986
|
-
class $p extends
|
|
6987
|
+
class $p extends Q {
|
|
6987
6988
|
constructor(t, r, n) {
|
|
6988
6989
|
for (super(t, r, n), this.tokens = []; r.length; ) {
|
|
6989
6990
|
const i = r.shift();
|
|
@@ -7017,7 +7018,7 @@ class Dp extends Xr {
|
|
|
7017
7018
|
return this.col() === this.cols;
|
|
7018
7019
|
}
|
|
7019
7020
|
}
|
|
7020
|
-
class Np extends
|
|
7021
|
+
class Np extends Q {
|
|
7021
7022
|
constructor(t, r, n) {
|
|
7022
7023
|
super(t, r, n);
|
|
7023
7024
|
const i = this.tokenizer.readIdentifier();
|
|
@@ -7043,13 +7044,13 @@ class Np extends Z {
|
|
|
7043
7044
|
n.length && r.write("</tr>"), t.pop();
|
|
7044
7045
|
}
|
|
7045
7046
|
}
|
|
7046
|
-
class Ip extends
|
|
7047
|
+
class Ip extends Q {
|
|
7047
7048
|
constructor(t, r, n) {
|
|
7048
7049
|
super(t, r, n), this.branches = [], this.elseTemplates = [];
|
|
7049
7050
|
let i = [], s = 0;
|
|
7050
7051
|
this.liquid.parser.parseStream(r).on("start", () => this.branches.push({
|
|
7051
7052
|
value: new me(t.args, this.liquid),
|
|
7052
|
-
test:
|
|
7053
|
+
test: Zt,
|
|
7053
7054
|
templates: i = []
|
|
7054
7055
|
})).on("tag:elsif", (o) => {
|
|
7055
7056
|
if (s > 0) {
|
|
@@ -7083,17 +7084,17 @@ class Ip extends Z {
|
|
|
7083
7084
|
yield n.renderTemplates(this.elseTemplates, t, r);
|
|
7084
7085
|
}
|
|
7085
7086
|
}
|
|
7086
|
-
class Fp extends
|
|
7087
|
+
class Fp extends Q {
|
|
7087
7088
|
render(t, r) {
|
|
7088
7089
|
r.break = !0;
|
|
7089
7090
|
}
|
|
7090
7091
|
}
|
|
7091
|
-
class Lp extends
|
|
7092
|
+
class Lp extends Q {
|
|
7092
7093
|
render(t, r) {
|
|
7093
7094
|
r.continue = !0;
|
|
7094
7095
|
}
|
|
7095
7096
|
}
|
|
7096
|
-
class Mp extends
|
|
7097
|
+
class Mp extends Q {
|
|
7097
7098
|
constructor(t, r, n) {
|
|
7098
7099
|
super(t, r, n), this.tokenizer.skipBlank(), this.tokenizer.end() || (this.value = new me(this.tokenizer.readFilteredValue(), this.liquid));
|
|
7099
7100
|
}
|
|
@@ -7104,7 +7105,7 @@ class Mp extends Z {
|
|
|
7104
7105
|
r.write(n);
|
|
7105
7106
|
}
|
|
7106
7107
|
}
|
|
7107
|
-
class jp extends
|
|
7108
|
+
class jp extends Q {
|
|
7108
7109
|
constructor(t, r, n) {
|
|
7109
7110
|
super(t, r, n);
|
|
7110
7111
|
const i = this.tokenizer.readLiquidTagTokens(this.liquid.options);
|
|
@@ -7114,7 +7115,7 @@ class jp extends Z {
|
|
|
7114
7115
|
yield this.liquid.renderer.renderTemplates(this.templates, t, r);
|
|
7115
7116
|
}
|
|
7116
7117
|
}
|
|
7117
|
-
class zp extends
|
|
7118
|
+
class zp extends Q {
|
|
7118
7119
|
constructor(t, r, n) {
|
|
7119
7120
|
if (super(t, r, n), t.args.search(/\n\s*[^#\s]/g) !== -1)
|
|
7120
7121
|
throw new Error("every line of an inline comment must start with a '#' character");
|
|
@@ -7251,8 +7252,7 @@ class rn {
|
|
|
7251
7252
|
}
|
|
7252
7253
|
he.addDefaultLocale(Rs);
|
|
7253
7254
|
he.addLocale(Rs);
|
|
7254
|
-
|
|
7255
|
-
const Vp = ds.div`
|
|
7255
|
+
const Up = ds.div`
|
|
7256
7256
|
cursor: ${(e) => e.$redirect ? "pointer" : "default"};
|
|
7257
7257
|
|
|
7258
7258
|
&:hover {
|
|
@@ -7267,7 +7267,7 @@ const Vp = ds.div`
|
|
|
7267
7267
|
&:hover .notification-archive-button {
|
|
7268
7268
|
visibility: ${(e) => e.$archived ? "hidden" : "visible"};
|
|
7269
7269
|
}
|
|
7270
|
-
`,
|
|
7270
|
+
`, Qp = (e) => {
|
|
7271
7271
|
var O, S, N, _;
|
|
7272
7272
|
if (e.renderer)
|
|
7273
7273
|
return e.renderer(e.notifications);
|
|
@@ -7287,7 +7287,7 @@ const Vp = ds.div`
|
|
|
7287
7287
|
s
|
|
7288
7288
|
), l = e.notifications.every((R) => R.seen), f = e.notifications.every((R) => R.opened), d = e.notifications.every((R) => R.archived), y = e.notifications[r - 1].date, v = e.notifications.map((R) => R.id);
|
|
7289
7289
|
return /* @__PURE__ */ er(
|
|
7290
|
-
|
|
7290
|
+
Up,
|
|
7291
7291
|
{
|
|
7292
7292
|
$redirect: !!a,
|
|
7293
7293
|
$seen: l || !!f,
|
|
@@ -7323,7 +7323,15 @@ const Vp = ds.div`
|
|
|
7323
7323
|
flexGrow: 1
|
|
7324
7324
|
},
|
|
7325
7325
|
children: [
|
|
7326
|
-
/* @__PURE__ */ ve("div", { children: /* @__PURE__ */ ve(
|
|
7326
|
+
/* @__PURE__ */ ve("div", { children: /* @__PURE__ */ ve(
|
|
7327
|
+
cn.Text,
|
|
7328
|
+
{
|
|
7329
|
+
style: {
|
|
7330
|
+
whiteSpace: "pre-line"
|
|
7331
|
+
},
|
|
7332
|
+
children: /* @__PURE__ */ ve("span", { dangerouslySetInnerHTML: { __html: o } })
|
|
7333
|
+
}
|
|
7334
|
+
) }),
|
|
7327
7335
|
/* @__PURE__ */ ve("div", { children: /* @__PURE__ */ ve(cn.Text, { type: "secondary", style: { fontSize: 12 }, children: /* @__PURE__ */ ve(Bt, { date: new Date(y).getTime(), locale: "en-US" }) }) })
|
|
7328
7336
|
]
|
|
7329
7337
|
}
|
|
@@ -7372,9 +7380,8 @@ const Vp = ds.div`
|
|
|
7372
7380
|
);
|
|
7373
7381
|
};
|
|
7374
7382
|
export {
|
|
7375
|
-
Up as I,
|
|
7376
7383
|
rn as L,
|
|
7377
|
-
|
|
7384
|
+
Qp as N,
|
|
7378
7385
|
Bo as a,
|
|
7379
7386
|
Gi as r,
|
|
7380
7387
|
Uo as u
|