@rpcbase/ui 0.218.0 → 0.219.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AddressAutocompleteInput/index.d.ts.map +1 -1
- package/dist/index10.js +3 -3
- package/dist/index100.js +4 -5
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +8 -4
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +5 -8
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +4 -5
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +3 -3
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +6 -4
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +145 -6
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +38 -144
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +4 -39
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +7 -4
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +2 -2
- package/dist/index110.js +12 -6
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +13 -13
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +7 -13
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +30 -6
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +10 -31
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +10 -10
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +8 -10
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +13 -8
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +101 -13
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +20 -102
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +3 -3
- package/dist/index120.js +54 -20
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +70 -51
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +9 -72
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +20 -9
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +16 -20
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +23 -16
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +6 -23
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +5 -6
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +23 -5
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +35 -24
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +2 -2
- package/dist/index130.js +16 -35
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +7 -16
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +4 -6
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +4 -4
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +4 -4
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +4 -4
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +3 -4
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +6 -3
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +24 -7
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +8 -24
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +2 -2
- package/dist/index140.js +6 -7
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +5 -6
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +3 -5
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +3 -3
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +4 -3
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +3 -4
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +4 -3
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +3 -4
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +3 -3
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +3 -3
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +2 -2
- package/dist/index150.js +46 -3
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +2 -2
- package/dist/index153.js +2 -2
- package/dist/index154.js +1 -1
- package/dist/index16.js +2 -2
- package/dist/index17.js +1 -1
- package/dist/index18.js +7 -7
- package/dist/index181.js +1 -1
- package/dist/index19.js +3 -3
- package/dist/index21.js +1 -1
- package/dist/index22.js +2 -2
- package/dist/index228.js +1 -1
- package/dist/index229.js +1 -1
- package/dist/index23.js +1 -1
- package/dist/index231.js +1 -1
- package/dist/index233.js +1 -1
- package/dist/index234.js +1 -1
- package/dist/index235.js +4 -4
- package/dist/index236.js +2 -2
- package/dist/index24.js +1 -1
- package/dist/index25.js +1 -1
- package/dist/index269.js +1 -1
- package/dist/index271.js +4 -4
- package/dist/index28.js +2 -2
- package/dist/index29.js +3 -37
- package/dist/index29.js.map +1 -1
- package/dist/index294.js +69 -65
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +8 -68
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +14 -9
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +66 -14
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +64 -65
- package/dist/index298.js.map +1 -1
- package/dist/index3.js +92 -86
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +125 -3
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +227 -120
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +21 -229
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +50 -23
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +21 -50
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +126 -18
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +205 -113
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +74 -205
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +115 -87
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +5 -118
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +2 -2
- package/dist/index40.js +819 -5
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +56 -819
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +37 -57
- package/dist/index42.js.map +1 -1
- package/dist/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index5.js +2 -2
- package/dist/index50.js +1 -1
- package/dist/index51.js +7 -2
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +34 -2
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +49 -2
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +8 -2
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +11 -6
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +2 -34
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +2 -49
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +3 -7
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +47 -11
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +5 -5
- package/dist/index60.js +50 -3
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +7 -47
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +12 -48
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +133 -7
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +10 -14
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +210 -127
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +12 -10
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +44 -214
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +49 -12
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +4 -47
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +2 -2
- package/dist/index70.js +5 -49
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +28 -4
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +50 -6
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +9 -28
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +2 -50
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -9
- package/dist/index75.js.map +1 -1
- package/dist/index79.js +52 -47
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +3 -3
- package/dist/index80.js +5 -52
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +4 -4
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +15 -4
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +5 -15
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +7 -5
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +15 -6
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +4 -16
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +1 -1
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +5 -4
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +4 -4
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +1 -1
- package/dist/index90.js +4 -5
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +2 -2
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +5 -3
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +24 -6
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +6 -24
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +4 -6
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +5 -3
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +5 -6
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +4 -5
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +4 -3
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index150.js
CHANGED
|
@@ -1,7 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { composeRefs as m } from "./index53.js";
|
|
3
|
+
import { j as u } from "./index28.js";
|
|
4
|
+
// @__NO_SIDE_EFFECTS__
|
|
5
|
+
function x(e) {
|
|
6
|
+
const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
|
|
7
|
+
const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(g);
|
|
8
|
+
if (a) {
|
|
9
|
+
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
10
|
+
return /* @__PURE__ */ u.jsx(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
11
|
+
}
|
|
12
|
+
return /* @__PURE__ */ u.jsx(r, { ...c, ref: n, children: i });
|
|
13
|
+
});
|
|
14
|
+
return t.displayName = `${e}.Slot`, t;
|
|
15
|
+
}
|
|
16
|
+
// @__NO_SIDE_EFFECTS__
|
|
17
|
+
function y(e) {
|
|
18
|
+
const r = l.forwardRef((t, o) => {
|
|
19
|
+
const { children: n, ...i } = t;
|
|
20
|
+
if (l.isValidElement(n)) {
|
|
21
|
+
const c = R(n), s = C(i, n.props);
|
|
22
|
+
return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
|
|
23
|
+
}
|
|
24
|
+
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
25
|
+
});
|
|
26
|
+
return r.displayName = `${e}.SlotClone`, r;
|
|
27
|
+
}
|
|
28
|
+
var E = /* @__PURE__ */ Symbol("radix.slottable");
|
|
29
|
+
function g(e) {
|
|
30
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === E;
|
|
31
|
+
}
|
|
32
|
+
function C(e, r) {
|
|
33
|
+
const t = { ...r };
|
|
34
|
+
for (const o in r) {
|
|
35
|
+
const n = e[o], i = r[o];
|
|
36
|
+
/^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
|
|
37
|
+
const a = i(...s);
|
|
38
|
+
return n(...s), a;
|
|
39
|
+
} : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
|
|
40
|
+
}
|
|
41
|
+
return { ...e, ...t };
|
|
42
|
+
}
|
|
43
|
+
function R(e) {
|
|
44
|
+
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
45
|
+
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
3
46
|
}
|
|
4
47
|
export {
|
|
5
|
-
|
|
48
|
+
x as createSlot
|
|
6
49
|
};
|
|
7
50
|
//# sourceMappingURL=index150.js.map
|
package/dist/index150.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index150.js","sources":["../../../node_modules/react-
|
|
1
|
+
{"version":3,"file":"index150.js","sources":["../../../node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","element","getter","mayWarn"],"mappings":";;;;AAKA,SAASA,EAAWC,GAAW;AAC7B,QAAMC,IAA4B,gBAAAC,EAAgBF,CAAS,GACrDG,IAAQC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACtD,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH,GAC7BI,IAAgBL,EAAM,SAAS,QAAQG,CAAQ,GAC/CG,IAAYD,EAAc,KAAKE,CAAW;AAChD,QAAID,GAAW;AACb,YAAME,IAAaF,EAAU,MAAM,UAC7BG,IAAcJ,EAAc,IAAI,CAACK,MACjCA,MAAUJ,IACRN,EAAM,SAAS,MAAMQ,CAAU,IAAI,IAAUR,EAAM,SAAS,KAAK,IAAI,IAClEA,EAAM,eAAeQ,CAAU,IAAIA,EAAW,MAAM,WAAW,OAE/DE,CAEV;AACD,aAAuBC,gBAAAA,EAAAA,IAAId,GAAW,EAAE,GAAGO,GAAW,KAAKF,GAAc,UAAUF,EAAM,eAAeQ,CAAU,IAAIR,EAAM,aAAaQ,GAAY,QAAQC,CAAW,IAAI,MAAM;AAAA,IACpL;AACA,WAAuBE,gBAAAA,EAAAA,IAAId,GAAW,EAAE,GAAGO,GAAW,KAAKF,GAAc,UAAAC,GAAU;AAAA,EACrF,CAAC;AACD,SAAAJ,EAAM,cAAc,GAAGH,CAAS,SACzBG;AACT;AAAA;AAGA,SAASD,EAAgBF,GAAW;AAClC,QAAMC,IAAYG,EAAM,WAAW,CAACC,GAAOC,MAAiB;AAC1D,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH;AACnC,QAAID,EAA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yBD,EAAQ,OAAO,KAAK,GAAG,KAChEE,IAAUD,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIC,IACKF,EAAQ,OAEjBC,IAAS,OAAO,yBAAyBD,GAAS,KAAK,GAAG,KAC1DE,IAAUD,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDC,IACKF,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
|
package/dist/index151.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import { composeRefs as m } from "./
|
|
3
|
-
import { j as u } from "./
|
|
2
|
+
import { composeRefs as m } from "./index53.js";
|
|
3
|
+
import { j as u } from "./index28.js";
|
|
4
4
|
// @__NO_SIDE_EFFECTS__
|
|
5
5
|
function x(e) {
|
|
6
6
|
const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
|
package/dist/index153.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
|
-
import { Primitive as p } from "./
|
|
3
|
-
import { j as o } from "./
|
|
2
|
+
import { Primitive as p } from "./index52.js";
|
|
3
|
+
import { j as o } from "./index28.js";
|
|
4
4
|
var v = "Arrow", e = n.forwardRef((r, i) => {
|
|
5
5
|
const { children: t, width: s = 10, height: a = 5, ...m } = r;
|
|
6
6
|
return /* @__PURE__ */ o.jsx(
|
package/dist/index154.js
CHANGED
package/dist/index16.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as t } from "./
|
|
2
|
-
import { c as H } from "./
|
|
1
|
+
import { j as t } from "./index28.js";
|
|
2
|
+
import { c as H } from "./index29.js";
|
|
3
3
|
import { useContext as Q, useState as T, useMemo as K, useCallback as W, useEffect as G, createContext as Z, useRef as J } from "react";
|
|
4
4
|
import * as P from "@radix-ui/react-dialog";
|
|
5
5
|
import { X as _, Loader2 as ee, MoreVertical as te } from "lucide-react";
|
package/dist/index17.js
CHANGED
package/dist/index18.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as V } from "./
|
|
1
|
+
import { j as V } from "./index28.js";
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import Kt from "react-select";
|
|
4
4
|
import { cn as Fe } from "./index2.js";
|
|
5
|
-
import { resolveMessages as $t } from "./
|
|
6
|
-
import { getLocaleCacheKey as qt, parseLocaleCacheKey as Ut, getCachedCountryOptions as Qt, toSelectedCountry as Jt, buildFallbackSelectedCountry as Gt, getValidCountry as Yt, DEFAULT_COUNTRY as at, COMMON_IDD_PREFIXES as Xt, normalizeSearchValue as Zt, optionMatchIndex as it } from "./
|
|
7
|
-
import { normalizeInputValue as Oe, formatWithAsYouType as ve, sanitizeDigits as O, detectNationalPrefixForDisplay as ee, getSuggestionState as Te, injectNationalPrefixDisplay as Me, shouldDisplayExplicitCountrySelection as Le, getLengthIssue as ze, stripPrefix as ut } from "./
|
|
8
|
-
import { captureSelectionSnapshot as en, resolveSelection as Se, skipFormattingCharactersLeft as ct, skipFormattingCharactersRight as tn } from "./
|
|
9
|
-
import { suggestionSelectStyles as nn, SuggestionOption as on, NullComponent as Ie, HiddenControl as rn, formatCountryOption as sn, SuggestionContext as ln } from "./
|
|
10
|
-
import { getCountryCallingCode as F } from "./
|
|
5
|
+
import { resolveMessages as $t } from "./index34.js";
|
|
6
|
+
import { getLocaleCacheKey as qt, parseLocaleCacheKey as Ut, getCachedCountryOptions as Qt, toSelectedCountry as Jt, buildFallbackSelectedCountry as Gt, getValidCountry as Yt, DEFAULT_COUNTRY as at, COMMON_IDD_PREFIXES as Xt, normalizeSearchValue as Zt, optionMatchIndex as it } from "./index35.js";
|
|
7
|
+
import { normalizeInputValue as Oe, formatWithAsYouType as ve, sanitizeDigits as O, detectNationalPrefixForDisplay as ee, getSuggestionState as Te, injectNationalPrefixDisplay as Me, shouldDisplayExplicitCountrySelection as Le, getLengthIssue as ze, stripPrefix as ut } from "./index36.js";
|
|
8
|
+
import { captureSelectionSnapshot as en, resolveSelection as Se, skipFormattingCharactersLeft as ct, skipFormattingCharactersRight as tn } from "./index37.js";
|
|
9
|
+
import { suggestionSelectStyles as nn, SuggestionOption as on, NullComponent as Ie, HiddenControl as rn, formatCountryOption as sn, SuggestionContext as ln } from "./index38.js";
|
|
10
|
+
import { getCountryCallingCode as F } from "./index39.js";
|
|
11
11
|
const an = n.forwardRef(function(dt, ft) {
|
|
12
12
|
const {
|
|
13
13
|
value: _,
|
package/dist/index181.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defaultDateLib as o } from "./
|
|
1
|
+
import { defaultDateLib as o } from "./index106.js";
|
|
2
2
|
class y {
|
|
3
3
|
constructor(t, i, s = o) {
|
|
4
4
|
this.date = t, this.displayMonth = i, this.outside = !!(i && !s.isSameMonth(t, i)), this.dateLib = s, this.isoDate = s.format(t, "yyyy-MM-dd"), this.displayMonthId = s.format(i, "yyyy-MM"), this.dateMonthId = s.format(t, "yyyy-MM");
|
package/dist/index19.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as m } from "./
|
|
2
|
-
import { c as T } from "./
|
|
1
|
+
import { j as m } from "./index28.js";
|
|
2
|
+
import { c as T } from "./index29.js";
|
|
3
3
|
import * as d from "react";
|
|
4
4
|
import { ChevronDown as L, ChevronUp as K, Check as Q } from "lucide-react";
|
|
5
|
-
import { Root as X, Group as Y, Value as Z, Portal as ee, Content as P, Item as $, Label as q, Separator as z, Trigger as F, Icon as te, Viewport as oe, ItemIndicator as se, ItemText as le } from "./
|
|
5
|
+
import { Root as X, Group as Y, Value as Z, Portal as ee, Content as P, Item as $, Label as q, Separator as z, Trigger as F, Icon as te, Viewport as oe, ItemIndicator as se, ItemText as le } from "./index40.js";
|
|
6
6
|
import { cn as C } from "./index2.js";
|
|
7
7
|
const be = X, xe = Y, Se = Z, re = d.forwardRef((r, n) => {
|
|
8
8
|
const e = T.c(12);
|
package/dist/index21.js
CHANGED
package/dist/index22.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as m } from "./
|
|
1
|
+
import { c as m } from "./index29.js";
|
|
2
2
|
import { useState as p, useEffect as d } from "react";
|
|
3
|
-
import { setOptions as g, importLibrary as w } from "./
|
|
3
|
+
import { setOptions as g, importLibrary as w } from "./index42.js";
|
|
4
4
|
let l = null, f = null;
|
|
5
5
|
const u = /* @__PURE__ */ new Map(), h = (r) => {
|
|
6
6
|
if (!r) {
|
package/dist/index228.js
CHANGED
package/dist/index229.js
CHANGED
package/dist/index23.js
CHANGED
package/dist/index231.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useControlledValue as x } from "./index227.js";
|
|
2
|
-
import { rangeIncludesDate as R } from "./
|
|
2
|
+
import { rangeIncludesDate as R } from "./index126.js";
|
|
3
3
|
import { addToRange as y } from "./index233.js";
|
|
4
4
|
import { rangeContainsModifiers as C } from "./index235.js";
|
|
5
5
|
function b(s, l) {
|
package/dist/index233.js
CHANGED
package/dist/index234.js
CHANGED
package/dist/index235.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defaultDateLib as p } from "./
|
|
2
|
-
import { dateMatchModifiers as s } from "./
|
|
1
|
+
import { defaultDateLib as p } from "./index106.js";
|
|
2
|
+
import { dateMatchModifiers as s } from "./index32.js";
|
|
3
3
|
import { rangeContainsDayOfWeek as M } from "./index234.js";
|
|
4
|
-
import { rangeIncludesDate as l } from "./
|
|
4
|
+
import { rangeIncludesDate as l } from "./index126.js";
|
|
5
5
|
import { rangeOverlaps as y } from "./index236.js";
|
|
6
|
-
import { isDatesArray as a, isDateRange as A, isDayOfWeekType as C, isDateInterval as I, isDateAfterType as v, isDateBeforeType as F } from "./
|
|
6
|
+
import { isDatesArray as a, isDateRange as A, isDayOfWeekType as C, isDateInterval as I, isDateAfterType as v, isDateBeforeType as F } from "./index128.js";
|
|
7
7
|
function d(n, t, f = p) {
|
|
8
8
|
const e = Array.isArray(t) ? t : [t];
|
|
9
9
|
if (e.filter((o) => typeof o != "function").some((o) => typeof o == "boolean" ? o : f.isDate(o) ? l(n, o, !1, f) : a(o, f) ? o.some((r) => l(n, r, !1, f)) : A(o) ? o.from && o.to ? y(n, { from: o.from, to: o.to }, f) : !1 : C(o) ? M(n, o.dayOfWeek, f) : I(o) ? f.isAfter(o.before, o.after) ? y(n, {
|
package/dist/index236.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { rangeIncludesDate as m } from "./
|
|
2
|
-
import { defaultDateLib as r } from "./
|
|
1
|
+
import { rangeIncludesDate as m } from "./index126.js";
|
|
2
|
+
import { defaultDateLib as r } from "./index106.js";
|
|
3
3
|
function u(o, f, l = r) {
|
|
4
4
|
return m(o, f.from, !1, l) || m(o, f.to, !1, l) || m(f, o.from, !1, l) || m(f, o.to, !1, l);
|
|
5
5
|
}
|
package/dist/index24.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Pe } from "./
|
|
1
|
+
import { c as Pe } from "./index29.js";
|
|
2
2
|
import { useState as ne, useRef as v, useEffect as g } from "react";
|
|
3
3
|
const me = () => typeof window > "u" ? !1 : "IntersectionObserver" in window, we = (x, e, t) => {
|
|
4
4
|
const R = x.getBoundingClientRect(), p = e.getBoundingClientRect();
|
package/dist/index25.js
CHANGED
package/dist/index269.js
CHANGED
package/dist/index271.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __spreadArray as N } from "./index237.js";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { RemoveScrollBar as W } from "./
|
|
4
|
-
import { styleSingleton as F } from "./
|
|
5
|
-
import { nonPassive as s } from "./
|
|
6
|
-
import { locationCouldBeScrolled as B, handleScroll as K } from "./
|
|
3
|
+
import { RemoveScrollBar as W } from "./index294.js";
|
|
4
|
+
import { styleSingleton as F } from "./index295.js";
|
|
5
|
+
import { nonPassive as s } from "./index296.js";
|
|
6
|
+
import { locationCouldBeScrolled as B, handleScroll as K } from "./index297.js";
|
|
7
7
|
var k = function(e) {
|
|
8
8
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
9
9
|
}, M = function(e) {
|
package/dist/index28.js
CHANGED
package/dist/index29.js
CHANGED
|
@@ -1,40 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
const v = (o) => {
|
|
5
|
-
var e, r, a, m = "The Google Maps JavaScript API", n = "google", p = "importLibrary", _ = "__ib__", l = document, E = window, u = E[n] || (E[n] = {}), i = u.maps || (u.maps = {}), f = /* @__PURE__ */ new Set(), t = new URLSearchParams(), S = () => e || (e = new Promise(async (s, c) => {
|
|
6
|
-
await (r = l.createElement("script")), t.set("libraries", [...f] + "");
|
|
7
|
-
for (a in o)
|
|
8
|
-
t.set(a.replace(/[A-Z]/g, (b) => "_" + b[0].toLowerCase()), o[a]);
|
|
9
|
-
t.set("callback", n + ".maps." + _), w(r, "https://maps.googleapis.com/maps/api/js?" + t), i[_] = s, r.onerror = () => e = c(Error(m + " could not load.")), r.nonce = l.querySelector("script[nonce]")?.nonce || "", l.head.append(r);
|
|
10
|
-
}));
|
|
11
|
-
i[p] ? console.warn(m + " only loads once. Ignoring:", o) : i[p] = (s, ...c) => f.add(s) && S().then(() => i[p](s, ...c));
|
|
12
|
-
}, y = (o) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(o)}) will be ignored.`, O = (o) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(o)}) will be ignored.`, T = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", L = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", h = process.env.NODE_ENV !== "production", d = h ? (o) => {
|
|
13
|
-
console.warn(`[@googlemaps/js-api-loader] ${o}`);
|
|
14
|
-
} : () => {
|
|
15
|
-
}, P = h ? (o) => {
|
|
16
|
-
console.info(`[@googlemaps/js-api-loader] ${o}`);
|
|
17
|
-
} : () => {
|
|
18
|
-
}, I = process.env.NODE_ENV !== "production";
|
|
19
|
-
let g = !1;
|
|
20
|
-
function A(o) {
|
|
21
|
-
if (g) {
|
|
22
|
-
d(y(o));
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
N(o), g = !0;
|
|
26
|
-
}
|
|
27
|
-
async function M(o) {
|
|
28
|
-
if (g || d(T), !window?.google?.maps?.importLibrary)
|
|
29
|
-
throw new Error("google.maps.importLibrary is not installed.");
|
|
30
|
-
return await google.maps.importLibrary(o);
|
|
31
|
-
}
|
|
32
|
-
function N(o) {
|
|
33
|
-
const e = !!window.google?.maps?.importLibrary;
|
|
34
|
-
e ? P(O(o)) : I && document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]') && d(L), e || v(o);
|
|
35
|
-
}
|
|
1
|
+
import { __require as r } from "./index43.js";
|
|
2
|
+
var i = r();
|
|
36
3
|
export {
|
|
37
|
-
|
|
38
|
-
A as setOptions
|
|
4
|
+
i as c
|
|
39
5
|
};
|
|
40
6
|
//# sourceMappingURL=index29.js.map
|
package/dist/index29.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index29.js","sources":[
|
|
1
|
+
{"version":3,"file":"index29.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index294.js
CHANGED
|
@@ -1,68 +1,72 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
}
|
|
1
|
+
import * as d from "react";
|
|
2
|
+
import { styleSingleton as f } from "./index295.js";
|
|
3
|
+
import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index268.js";
|
|
4
|
+
import { getGapWidth as m } from "./index312.js";
|
|
5
|
+
var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
|
|
6
|
+
var r = n.left, i = n.top, s = n.right, c = n.gap;
|
|
7
|
+
return o === void 0 && (o = "margin"), `
|
|
8
|
+
.`.concat(p, ` {
|
|
9
|
+
overflow: hidden `).concat(t, `;
|
|
10
|
+
padding-right: `).concat(c, "px ").concat(t, `;
|
|
11
|
+
}
|
|
12
|
+
body[`).concat(e, `] {
|
|
13
|
+
overflow: hidden `).concat(t, `;
|
|
14
|
+
overscroll-behavior: contain;
|
|
15
|
+
`).concat([
|
|
16
|
+
a && "position: relative ".concat(t, ";"),
|
|
17
|
+
o === "margin" && `
|
|
18
|
+
padding-left: `.concat(r, `px;
|
|
19
|
+
padding-top: `).concat(i, `px;
|
|
20
|
+
padding-right: `).concat(s, `px;
|
|
21
|
+
margin-left:0;
|
|
22
|
+
margin-top:0;
|
|
23
|
+
margin-right: `).concat(c, "px ").concat(t, `;
|
|
24
|
+
`),
|
|
25
|
+
o === "padding" && "padding-right: ".concat(c, "px ").concat(t, ";")
|
|
26
|
+
].filter(Boolean).join(""), `
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.`).concat(g, ` {
|
|
30
|
+
right: `).concat(c, "px ").concat(t, `;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.`).concat(l, ` {
|
|
34
|
+
margin-right: `).concat(c, "px ").concat(t, `;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.`).concat(g, " .").concat(g, ` {
|
|
38
|
+
right: 0 `).concat(t, `;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.`).concat(l, " .").concat(l, ` {
|
|
42
|
+
margin-right: 0 `).concat(t, `;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
body[`).concat(e, `] {
|
|
46
|
+
`).concat(v, ": ").concat(c, `px;
|
|
47
|
+
}
|
|
48
|
+
`);
|
|
49
|
+
}, u = function() {
|
|
50
|
+
var n = parseInt(document.body.getAttribute(e) || "0", 10);
|
|
51
|
+
return isFinite(n) ? n : 0;
|
|
52
|
+
}, x = function() {
|
|
53
|
+
d.useEffect(function() {
|
|
54
|
+
return document.body.setAttribute(e, (u() + 1).toString()), function() {
|
|
55
|
+
var n = u() - 1;
|
|
56
|
+
n <= 0 ? document.body.removeAttribute(e) : document.body.setAttribute(e, n.toString());
|
|
57
|
+
};
|
|
58
|
+
}, []);
|
|
59
|
+
}, C = function(n) {
|
|
60
|
+
var a = n.noRelative, o = n.noImportant, t = n.gapMode, r = t === void 0 ? "margin" : t;
|
|
61
|
+
x();
|
|
62
|
+
var i = d.useMemo(function() {
|
|
63
|
+
return m(r);
|
|
64
|
+
}, [r]);
|
|
65
|
+
return d.createElement(b, { styles: h(i, !a, r, o ? "" : "!important") });
|
|
66
|
+
};
|
|
65
67
|
export {
|
|
66
|
-
|
|
68
|
+
C as RemoveScrollBar,
|
|
69
|
+
e as lockAttribute,
|
|
70
|
+
x as useLockAttribute
|
|
67
71
|
};
|
|
68
72
|
//# sourceMappingURL=index294.js.map
|
package/dist/index294.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index294.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index294.js","sources":["../../../node_modules/react-remove-scroll-bar/dist/es2015/component.js"],"sourcesContent":["import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\nexport var lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body[\").concat(lockAttribute, \"] {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body[\").concat(lockAttribute, \"] {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\nvar getCurrentUseCounter = function () {\n var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n return isFinite(counter) ? counter : 0;\n};\nexport var useLockAttribute = function () {\n React.useEffect(function () {\n document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n return function () {\n var newCounter = getCurrentUseCounter() - 1;\n if (newCounter <= 0) {\n document.body.removeAttribute(lockAttribute);\n }\n else {\n document.body.setAttribute(lockAttribute, newCounter.toString());\n }\n };\n }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (_a) {\n var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n useLockAttribute();\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n"],"names":["Style","styleSingleton","lockAttribute","getStyles","_a","allowRelative","gapMode","important","left","top","right","gap","noScrollbarsClassName","zeroRightClassName","fullWidthClassName","removedBarSizeVariable","getCurrentUseCounter","counter","useLockAttribute","React","newCounter","RemoveScrollBar","noRelative","noImportant","_b","getGapWidth"],"mappings":";;;;AAIA,IAAIA,IAAQC,EAAc,GACfC,IAAgB,sBAIvBC,IAAY,SAAUC,GAAIC,GAAeC,GAASC,GAAW;AAC7D,MAAIC,IAAOJ,EAAG,MAAMK,IAAML,EAAG,KAAKM,IAAQN,EAAG,OAAOO,IAAMP,EAAG;AAC7D,SAAI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