@nypl/web-reader 3.1.0 → 3.2.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/cjs/ServiceWorker/sw.js +1 -1
- package/dist/cjs/ServiceWorker/sw.js.map +1 -1
- package/dist/cjs/index.js +15 -29
- package/dist/cjs/index.js.map +3 -3
- package/dist/esm/index.js +119 -129
- package/dist/esm/index.js.map +3 -3
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1259,6 +1259,7 @@ var require_tslib = __commonJS({
|
|
|
1259
1259
|
var __importDefault2;
|
|
1260
1260
|
var __classPrivateFieldGet2;
|
|
1261
1261
|
var __classPrivateFieldSet2;
|
|
1262
|
+
var __classPrivateFieldIn2;
|
|
1262
1263
|
var __createBinding2;
|
|
1263
1264
|
(function(factory2) {
|
|
1264
1265
|
var root2 = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
@@ -1451,9 +1452,13 @@ var require_tslib = __commonJS({
|
|
|
1451
1452
|
__createBinding2 = Object.create ? function(o, m, k, k2) {
|
|
1452
1453
|
if (k2 === void 0)
|
|
1453
1454
|
k2 = k;
|
|
1454
|
-
Object.
|
|
1455
|
-
|
|
1456
|
-
|
|
1455
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1456
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1457
|
+
desc = { enumerable: true, get: function() {
|
|
1458
|
+
return m[k];
|
|
1459
|
+
} };
|
|
1460
|
+
}
|
|
1461
|
+
Object.defineProperty(o, k2, desc);
|
|
1457
1462
|
} : function(o, m, k, k2) {
|
|
1458
1463
|
if (k2 === void 0)
|
|
1459
1464
|
k2 = k;
|
|
@@ -1634,6 +1639,11 @@ var require_tslib = __commonJS({
|
|
|
1634
1639
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1635
1640
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state2.set(receiver, value), value;
|
|
1636
1641
|
};
|
|
1642
|
+
__classPrivateFieldIn2 = function(state2, receiver) {
|
|
1643
|
+
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
|
|
1644
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
1645
|
+
return typeof state2 === "function" ? receiver === state2 : state2.has(receiver);
|
|
1646
|
+
};
|
|
1637
1647
|
exporter("__extends", __extends2);
|
|
1638
1648
|
exporter("__assign", __assign3);
|
|
1639
1649
|
exporter("__rest", __rest3);
|
|
@@ -1658,6 +1668,7 @@ var require_tslib = __commonJS({
|
|
|
1658
1668
|
exporter("__importDefault", __importDefault2);
|
|
1659
1669
|
exporter("__classPrivateFieldGet", __classPrivateFieldGet2);
|
|
1660
1670
|
exporter("__classPrivateFieldSet", __classPrivateFieldSet2);
|
|
1671
|
+
exporter("__classPrivateFieldIn", __classPrivateFieldIn2);
|
|
1661
1672
|
});
|
|
1662
1673
|
}
|
|
1663
1674
|
});
|
|
@@ -13648,6 +13659,38 @@ var require_regenerator = __commonJS({
|
|
|
13648
13659
|
}
|
|
13649
13660
|
});
|
|
13650
13661
|
|
|
13662
|
+
// node_modules/make-event-props/dist/entry.js
|
|
13663
|
+
var require_entry = __commonJS({
|
|
13664
|
+
"node_modules/make-event-props/dist/entry.js"(exports2) {
|
|
13665
|
+
"use strict";
|
|
13666
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
13667
|
+
value: true
|
|
13668
|
+
});
|
|
13669
|
+
exports2.default = exports2.focusEvents = exports2.keyboardEvents = exports2.touchEvents = exports2.mouseEvents = void 0;
|
|
13670
|
+
var mouseEvents2 = ["onClick", "onContextMenu", "onDoubleClick", "onDrag", "onDragEnd", "onDragEnter", "onDragExit", "onDragLeave", "onDragOver", "onDragStart", "onDrop", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOut", "onMouseOver", "onMouseUp"];
|
|
13671
|
+
exports2.mouseEvents = mouseEvents2;
|
|
13672
|
+
var touchEvents2 = ["onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"];
|
|
13673
|
+
exports2.touchEvents = touchEvents2;
|
|
13674
|
+
var keyboardEvents2 = ["onKeyDown", "onKeyPress", "onKeyUp"];
|
|
13675
|
+
exports2.keyboardEvents = keyboardEvents2;
|
|
13676
|
+
var focusEvents = ["onFocus", "onBlur"];
|
|
13677
|
+
exports2.focusEvents = focusEvents;
|
|
13678
|
+
var makeEventProps4 = function makeEventProps5(props, getArgs) {
|
|
13679
|
+
var eventProps2 = {};
|
|
13680
|
+
[].concat(mouseEvents2, touchEvents2, keyboardEvents2, focusEvents).forEach(function(eventName) {
|
|
13681
|
+
if (props[eventName]) {
|
|
13682
|
+
eventProps2[eventName] = function(event) {
|
|
13683
|
+
return getArgs ? props[eventName](event, getArgs(eventName)) : props[eventName](event);
|
|
13684
|
+
};
|
|
13685
|
+
}
|
|
13686
|
+
});
|
|
13687
|
+
return eventProps2;
|
|
13688
|
+
};
|
|
13689
|
+
var _default = makeEventProps4;
|
|
13690
|
+
exports2.default = _default;
|
|
13691
|
+
}
|
|
13692
|
+
});
|
|
13693
|
+
|
|
13651
13694
|
// node_modules/debounce/index.js
|
|
13652
13695
|
var require_debounce = __commonJS({
|
|
13653
13696
|
"node_modules/debounce/index.js"(exports2, module2) {
|
|
@@ -14657,7 +14700,7 @@ var processStyleValue = function processStyleValue2(key, value) {
|
|
|
14657
14700
|
return value;
|
|
14658
14701
|
};
|
|
14659
14702
|
if (false) {
|
|
14660
|
-
contentValuePattern = /(
|
|
14703
|
+
contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
|
|
14661
14704
|
contentValues = ["normal", "none", "initial", "inherit", "unset"];
|
|
14662
14705
|
oldProcessStyleValue = processStyleValue;
|
|
14663
14706
|
msPattern = /^-ms-/;
|
|
@@ -16275,9 +16318,9 @@ import * as React7 from "react";
|
|
|
16275
16318
|
|
|
16276
16319
|
// node_modules/@chakra-ui/hooks/dist/chakra-ui-hooks.esm.js
|
|
16277
16320
|
import * as React6 from "react";
|
|
16278
|
-
import React__default, { useState as useState3,
|
|
16321
|
+
import React__default, { useState as useState3, useCallback as useCallback3, useEffect as useEffect4, useRef as useRef4 } from "react";
|
|
16279
16322
|
|
|
16280
|
-
// node_modules/@chakra-ui/hooks/dist/use-animation-state-
|
|
16323
|
+
// node_modules/@chakra-ui/hooks/dist/use-animation-state-35233362.esm.js
|
|
16281
16324
|
import * as React5 from "react";
|
|
16282
16325
|
import { useState, useEffect as useEffect2 } from "react";
|
|
16283
16326
|
var useSafeLayoutEffect = isBrowser2 ? React5.useLayoutEffect : React5.useEffect;
|
|
@@ -16351,22 +16394,22 @@ function useBoolean(initialState2) {
|
|
|
16351
16394
|
initialState2 = false;
|
|
16352
16395
|
}
|
|
16353
16396
|
var _useState = useState3(initialState2), value = _useState[0], setValue = _useState[1];
|
|
16354
|
-
var
|
|
16355
|
-
|
|
16356
|
-
|
|
16357
|
-
|
|
16358
|
-
|
|
16359
|
-
|
|
16360
|
-
|
|
16361
|
-
|
|
16362
|
-
|
|
16363
|
-
|
|
16364
|
-
return !prev2;
|
|
16365
|
-
});
|
|
16366
|
-
}
|
|
16367
|
-
};
|
|
16397
|
+
var on = useCallback3(function() {
|
|
16398
|
+
setValue(true);
|
|
16399
|
+
}, []);
|
|
16400
|
+
var off = useCallback3(function() {
|
|
16401
|
+
setValue(false);
|
|
16402
|
+
}, []);
|
|
16403
|
+
var toggle = useCallback3(function() {
|
|
16404
|
+
setValue(function(prev2) {
|
|
16405
|
+
return !prev2;
|
|
16406
|
+
});
|
|
16368
16407
|
}, []);
|
|
16369
|
-
return [value,
|
|
16408
|
+
return [value, {
|
|
16409
|
+
on,
|
|
16410
|
+
off,
|
|
16411
|
+
toggle
|
|
16412
|
+
}];
|
|
16370
16413
|
}
|
|
16371
16414
|
function useControllableProp(prop2, state2) {
|
|
16372
16415
|
var isControlled = prop2 !== void 0;
|
|
@@ -16915,7 +16958,7 @@ if (__DEV__) {
|
|
|
16915
16958
|
}
|
|
16916
16959
|
|
|
16917
16960
|
// node_modules/@chakra-ui/react-env/dist/chakra-ui-react-env.esm.js
|
|
16918
|
-
import React8, { useContext as useContext5, useState as useState4, useMemo as
|
|
16961
|
+
import React8, { useContext as useContext5, useState as useState4, useMemo as useMemo3, createContext as createContext5 } from "react";
|
|
16919
16962
|
var doc = {
|
|
16920
16963
|
body: {
|
|
16921
16964
|
classList: {
|
|
@@ -17029,7 +17072,7 @@ function useEnvironment() {
|
|
|
17029
17072
|
function EnvironmentProvider(props) {
|
|
17030
17073
|
var children = props.children, environmentProp = props.environment;
|
|
17031
17074
|
var _useState = useState4(null), node2 = _useState[0], setNode = _useState[1];
|
|
17032
|
-
var context =
|
|
17075
|
+
var context = useMemo3(function() {
|
|
17033
17076
|
var _ref;
|
|
17034
17077
|
var doc3 = node2 == null ? void 0 : node2.ownerDocument;
|
|
17035
17078
|
var win2 = node2 == null ? void 0 : node2.ownerDocument.defaultView;
|
|
@@ -18780,7 +18823,7 @@ function toCSSVar(rawTheme) {
|
|
|
18780
18823
|
// node_modules/@chakra-ui/system/dist/chakra-ui-system.esm.js
|
|
18781
18824
|
var import_react_fast_compare = __toESM(require_react_fast_compare());
|
|
18782
18825
|
import * as React11 from "react";
|
|
18783
|
-
import { useRef as useRef6, useMemo as
|
|
18826
|
+
import { useRef as useRef6, useMemo as useMemo6 } from "react";
|
|
18784
18827
|
|
|
18785
18828
|
// node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js
|
|
18786
18829
|
import "react";
|
|
@@ -19392,7 +19435,7 @@ function boundAlpha(a2) {
|
|
|
19392
19435
|
}
|
|
19393
19436
|
function convertToPercentage(n) {
|
|
19394
19437
|
if (n <= 1) {
|
|
19395
|
-
return
|
|
19438
|
+
return Number(n) * 100 + "%";
|
|
19396
19439
|
}
|
|
19397
19440
|
return n;
|
|
19398
19441
|
}
|
|
@@ -19761,9 +19804,9 @@ function inputToRGB(color3) {
|
|
|
19761
19804
|
}
|
|
19762
19805
|
var CSS_INTEGER = "[-\\+]?\\d+%?";
|
|
19763
19806
|
var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
|
|
19764
|
-
var CSS_UNIT = "(?:"
|
|
19765
|
-
var PERMISSIVE_MATCH3 = "[\\s|\\(]+("
|
|
19766
|
-
var PERMISSIVE_MATCH4 = "[\\s|\\(]+("
|
|
19807
|
+
var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
|
|
19808
|
+
var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
|
|
19809
|
+
var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
|
|
19767
19810
|
var matchers = {
|
|
19768
19811
|
CSS_UNIT: new RegExp(CSS_UNIT),
|
|
19769
19812
|
rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
|
|
@@ -19946,7 +19989,7 @@ var TinyColor = function() {
|
|
|
19946
19989
|
var h = Math.round(hsv.h * 360);
|
|
19947
19990
|
var s = Math.round(hsv.s * 100);
|
|
19948
19991
|
var v = Math.round(hsv.v * 100);
|
|
19949
|
-
return this.a === 1 ? "hsv("
|
|
19992
|
+
return this.a === 1 ? "hsv(" + h + ", " + s + "%, " + v + "%)" : "hsva(" + h + ", " + s + "%, " + v + "%, " + this.roundA + ")";
|
|
19950
19993
|
};
|
|
19951
19994
|
TinyColor2.prototype.toHsl = function() {
|
|
19952
19995
|
var hsl = rgbToHsl(this.r, this.g, this.b);
|
|
@@ -19957,7 +20000,7 @@ var TinyColor = function() {
|
|
|
19957
20000
|
var h = Math.round(hsl.h * 360);
|
|
19958
20001
|
var s = Math.round(hsl.s * 100);
|
|
19959
20002
|
var l = Math.round(hsl.l * 100);
|
|
19960
|
-
return this.a === 1 ? "hsl("
|
|
20003
|
+
return this.a === 1 ? "hsl(" + h + ", " + s + "%, " + l + "%)" : "hsla(" + h + ", " + s + "%, " + l + "%, " + this.roundA + ")";
|
|
19961
20004
|
};
|
|
19962
20005
|
TinyColor2.prototype.toHex = function(allow3Char) {
|
|
19963
20006
|
if (allow3Char === void 0) {
|
|
@@ -19995,11 +20038,11 @@ var TinyColor = function() {
|
|
|
19995
20038
|
var r = Math.round(this.r);
|
|
19996
20039
|
var g = Math.round(this.g);
|
|
19997
20040
|
var b2 = Math.round(this.b);
|
|
19998
|
-
return this.a === 1 ? "rgb("
|
|
20041
|
+
return this.a === 1 ? "rgb(" + r + ", " + g + ", " + b2 + ")" : "rgba(" + r + ", " + g + ", " + b2 + ", " + this.roundA + ")";
|
|
19999
20042
|
};
|
|
20000
20043
|
TinyColor2.prototype.toPercentageRgb = function() {
|
|
20001
20044
|
var fmt = function(x) {
|
|
20002
|
-
return
|
|
20045
|
+
return Math.round(bound01(x, 255) * 100) + "%";
|
|
20003
20046
|
};
|
|
20004
20047
|
return {
|
|
20005
20048
|
r: fmt(this.r),
|
|
@@ -20012,7 +20055,7 @@ var TinyColor = function() {
|
|
|
20012
20055
|
var rnd = function(x) {
|
|
20013
20056
|
return Math.round(bound01(x, 255) * 100);
|
|
20014
20057
|
};
|
|
20015
|
-
return this.a === 1 ? "rgb("
|
|
20058
|
+
return this.a === 1 ? "rgb(" + rnd(this.r) + "%, " + rnd(this.g) + "%, " + rnd(this.b) + "%)" : "rgba(" + rnd(this.r) + "%, " + rnd(this.g) + "%, " + rnd(this.b) + "%, " + this.roundA + ")";
|
|
20016
20059
|
};
|
|
20017
20060
|
TinyColor2.prototype.toName = function() {
|
|
20018
20061
|
if (this.a === 0) {
|
|
@@ -20926,8 +20969,8 @@ var typography2 = {
|
|
|
20926
20969
|
}
|
|
20927
20970
|
};
|
|
20928
20971
|
|
|
20929
|
-
// node_modules/@chakra-ui/theme/dist/index-
|
|
20930
|
-
var baseStyleContainer$
|
|
20972
|
+
// node_modules/@chakra-ui/theme/dist/index-7ef32ef8.esm.js
|
|
20973
|
+
var baseStyleContainer$3 = {
|
|
20931
20974
|
borderTopWidth: "1px",
|
|
20932
20975
|
borderColor: "inherit",
|
|
20933
20976
|
_last: {
|
|
@@ -20961,7 +21004,7 @@ var baseStyleIcon$5 = {
|
|
|
20961
21004
|
};
|
|
20962
21005
|
var baseStyle$D = {
|
|
20963
21006
|
root: {},
|
|
20964
|
-
container: baseStyleContainer$
|
|
21007
|
+
container: baseStyleContainer$3,
|
|
20965
21008
|
button: baseStyleButton$1,
|
|
20966
21009
|
panel: baseStylePanel,
|
|
20967
21010
|
icon: baseStyleIcon$5
|
|
@@ -21073,7 +21116,7 @@ var baseStyleExcessLabel = function baseStyleExcessLabel2(props) {
|
|
|
21073
21116
|
bg: mode("gray.200", "whiteAlpha.400")(props)
|
|
21074
21117
|
};
|
|
21075
21118
|
};
|
|
21076
|
-
var baseStyleContainer$
|
|
21119
|
+
var baseStyleContainer$2 = function baseStyleContainer(props) {
|
|
21077
21120
|
var name = props.name, theme3 = props.theme;
|
|
21078
21121
|
var bg = name ? randomColor({
|
|
21079
21122
|
string: name
|
|
@@ -21094,7 +21137,7 @@ var baseStyle$B = function baseStyle(props) {
|
|
|
21094
21137
|
return {
|
|
21095
21138
|
badge: baseStyleBadge(props),
|
|
21096
21139
|
excessLabel: baseStyleExcessLabel(props),
|
|
21097
|
-
container: baseStyleContainer$
|
|
21140
|
+
container: baseStyleContainer$2(props)
|
|
21098
21141
|
};
|
|
21099
21142
|
};
|
|
21100
21143
|
function getSize$3(size3) {
|
|
@@ -21417,11 +21460,6 @@ var baseStyleControl$1 = function baseStyleControl(props) {
|
|
|
21417
21460
|
}
|
|
21418
21461
|
};
|
|
21419
21462
|
};
|
|
21420
|
-
var baseStyleContainer$2 = {
|
|
21421
|
-
_disabled: {
|
|
21422
|
-
cursor: "not-allowed"
|
|
21423
|
-
}
|
|
21424
|
-
};
|
|
21425
21463
|
var baseStyleLabel$3 = {
|
|
21426
21464
|
userSelect: "none",
|
|
21427
21465
|
_disabled: {
|
|
@@ -21435,7 +21473,6 @@ var baseStyleIcon$4 = {
|
|
|
21435
21473
|
var baseStyle$x = function baseStyle2(props) {
|
|
21436
21474
|
return {
|
|
21437
21475
|
icon: baseStyleIcon$4,
|
|
21438
|
-
container: baseStyleContainer$2,
|
|
21439
21476
|
control: baseStyleControl$1(props),
|
|
21440
21477
|
label: baseStyleLabel$3
|
|
21441
21478
|
};
|
|
@@ -22492,7 +22529,6 @@ var baseStyleControl2 = function baseStyleControl3(props) {
|
|
|
22492
22529
|
var baseStyle$c = function baseStyle13(props) {
|
|
22493
22530
|
return {
|
|
22494
22531
|
label: Checkbox.baseStyle(props).label,
|
|
22495
|
-
container: Checkbox.baseStyle(props).container,
|
|
22496
22532
|
control: baseStyleControl2(props)
|
|
22497
22533
|
};
|
|
22498
22534
|
};
|
|
@@ -23977,7 +24013,8 @@ var {
|
|
|
23977
24013
|
__importStar,
|
|
23978
24014
|
__importDefault,
|
|
23979
24015
|
__classPrivateFieldGet,
|
|
23980
|
-
__classPrivateFieldSet
|
|
24016
|
+
__classPrivateFieldSet,
|
|
24017
|
+
__classPrivateFieldIn
|
|
23981
24018
|
} = import_tslib.default;
|
|
23982
24019
|
|
|
23983
24020
|
// node_modules/framer-motion/dist/es/motion/index.js
|
|
@@ -24227,7 +24264,7 @@ function useMotionRef(visualState, visualElement2, externalRef) {
|
|
|
24227
24264
|
}
|
|
24228
24265
|
|
|
24229
24266
|
// node_modules/framer-motion/dist/es/context/MotionContext/create.js
|
|
24230
|
-
import { useMemo as
|
|
24267
|
+
import { useMemo as useMemo7, useContext as useContext13 } from "react";
|
|
24231
24268
|
|
|
24232
24269
|
// node_modules/framer-motion/dist/es/render/utils/variants.js
|
|
24233
24270
|
function isVariantLabels(v) {
|
|
@@ -24290,7 +24327,7 @@ function getCurrentTreeVariants(props, context) {
|
|
|
24290
24327
|
// node_modules/framer-motion/dist/es/context/MotionContext/create.js
|
|
24291
24328
|
function useCreateMotionContext(props, isStatic) {
|
|
24292
24329
|
var _a = getCurrentTreeVariants(props, useContext13(MotionContext)), initial = _a.initial, animate2 = _a.animate;
|
|
24293
|
-
return
|
|
24330
|
+
return useMemo7(function() {
|
|
24294
24331
|
return { initial, animate: animate2 };
|
|
24295
24332
|
}, isStatic ? [
|
|
24296
24333
|
variantLabelsAsDependency(initial),
|
|
@@ -24381,7 +24418,7 @@ function isSVGComponent(Component4) {
|
|
|
24381
24418
|
import { createElement as createElement14 } from "react";
|
|
24382
24419
|
|
|
24383
24420
|
// node_modules/framer-motion/dist/es/render/html/use-props.js
|
|
24384
|
-
import { useMemo as
|
|
24421
|
+
import { useMemo as useMemo8 } from "react";
|
|
24385
24422
|
|
|
24386
24423
|
// node_modules/framer-motion/dist/es/render/dom/projection/scale-correction.js
|
|
24387
24424
|
var valueScaleCorrection = {};
|
|
@@ -24829,7 +24866,7 @@ function copyRawValuesOnly(target, source, props) {
|
|
|
24829
24866
|
}
|
|
24830
24867
|
function useInitialMotionValues(_a, visualState, isStatic) {
|
|
24831
24868
|
var transformTemplate2 = _a.transformTemplate;
|
|
24832
|
-
return
|
|
24869
|
+
return useMemo8(function() {
|
|
24833
24870
|
var state2 = createHtmlRenderState();
|
|
24834
24871
|
buildHTMLStyles(state2, visualState, void 0, void 0, { enableHardwareAcceleration: !isStatic }, transformTemplate2);
|
|
24835
24872
|
var vars = state2.vars, style = state2.style;
|
|
@@ -24942,7 +24979,7 @@ function filterProps(props, isDom, forwardMotionProps) {
|
|
|
24942
24979
|
}
|
|
24943
24980
|
|
|
24944
24981
|
// node_modules/framer-motion/dist/es/render/svg/use-props.js
|
|
24945
|
-
import { useMemo as
|
|
24982
|
+
import { useMemo as useMemo9 } from "react";
|
|
24946
24983
|
|
|
24947
24984
|
// node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js
|
|
24948
24985
|
function calcOrigin(origin, offset2, size3) {
|
|
@@ -25014,7 +25051,7 @@ var createSvgRenderState = function() {
|
|
|
25014
25051
|
|
|
25015
25052
|
// node_modules/framer-motion/dist/es/render/svg/use-props.js
|
|
25016
25053
|
function useSVGProps(props, visualState) {
|
|
25017
|
-
var visualProps =
|
|
25054
|
+
var visualProps = useMemo9(function() {
|
|
25018
25055
|
var state2 = createSvgRenderState();
|
|
25019
25056
|
buildSVGAttrs(state2, visualState, void 0, void 0, { enableHardwareAcceleration: false }, props.transformTemplate);
|
|
25020
25057
|
return __assign(__assign({}, state2.attrs), { style: __assign({}, state2.style) });
|
|
@@ -30508,13 +30545,13 @@ var FormErrorIcon = /* @__PURE__ */ forwardRef3(function(props, ref) {
|
|
|
30508
30545
|
if (__DEV__) {
|
|
30509
30546
|
FormErrorIcon.displayName = "FormErrorIcon";
|
|
30510
30547
|
}
|
|
30511
|
-
var _excluded8 = ["className", "children", "requiredIndicator"
|
|
30548
|
+
var _excluded8 = ["className", "children", "requiredIndicator"];
|
|
30512
30549
|
var FormLabel = /* @__PURE__ */ forwardRef3(function(passedProps, ref) {
|
|
30513
30550
|
var _field$getLabelProps;
|
|
30514
30551
|
var styles2 = useStyleConfig("FormLabel", passedProps);
|
|
30515
30552
|
var props = omitThemingProps(passedProps);
|
|
30516
30553
|
props.className;
|
|
30517
|
-
var children = props.children, _props$requiredIndica = props.requiredIndicator, requiredIndicator = _props$requiredIndica === void 0 ? /* @__PURE__ */ React20.createElement(RequiredIndicator, null) : _props$requiredIndica,
|
|
30554
|
+
var children = props.children, _props$requiredIndica = props.requiredIndicator, requiredIndicator = _props$requiredIndica === void 0 ? /* @__PURE__ */ React20.createElement(RequiredIndicator, null) : _props$requiredIndica, rest = _objectWithoutPropertiesLoose8(props, _excluded8);
|
|
30518
30555
|
var field = useFormControlContext();
|
|
30519
30556
|
var ownProps = (_field$getLabelProps = field == null ? void 0 : field.getLabelProps(rest, ref)) != null ? _field$getLabelProps : _extends14({
|
|
30520
30557
|
ref
|
|
@@ -30525,7 +30562,7 @@ var FormLabel = /* @__PURE__ */ forwardRef3(function(passedProps, ref) {
|
|
|
30525
30562
|
display: "block",
|
|
30526
30563
|
textAlign: "start"
|
|
30527
30564
|
}, styles2)
|
|
30528
|
-
}), children, field != null && field.isRequired ? requiredIndicator :
|
|
30565
|
+
}), children, field != null && field.isRequired ? requiredIndicator : null);
|
|
30529
30566
|
});
|
|
30530
30567
|
if (__DEV__) {
|
|
30531
30568
|
FormLabel.displayName = "FormLabel";
|
|
@@ -31204,28 +31241,18 @@ var Text = /* @__PURE__ */ forwardRef3(function(props, ref) {
|
|
|
31204
31241
|
if (__DEV__) {
|
|
31205
31242
|
Text.displayName = "Text";
|
|
31206
31243
|
}
|
|
31207
|
-
var _excluded$13 = ["spacing", "
|
|
31244
|
+
var _excluded$13 = ["spacing", "children", "justify", "direction", "align", "className", "shouldWrapChildren"];
|
|
31208
31245
|
var _excluded2$12 = ["className"];
|
|
31209
31246
|
var Wrap = /* @__PURE__ */ forwardRef3(function(props, ref) {
|
|
31210
|
-
var _props$spacing = props.spacing, spacing3 = _props$spacing === void 0 ? "0.5rem" : _props$spacing,
|
|
31247
|
+
var _props$spacing = props.spacing, spacing3 = _props$spacing === void 0 ? "0.5rem" : _props$spacing, children = props.children, justify = props.justify, direction2 = props.direction, align = props.align, className = props.className, shouldWrapChildren = props.shouldWrapChildren, rest = _objectWithoutPropertiesLoose10(props, _excluded$13);
|
|
31211
31248
|
var styles2 = React22.useMemo(function() {
|
|
31212
|
-
var _spacingX$spacingY = {
|
|
31213
|
-
spacingX,
|
|
31214
|
-
spacingY
|
|
31215
|
-
}, _spacingX$spacingY$sp = _spacingX$spacingY.spacingX, x = _spacingX$spacingY$sp === void 0 ? spacing3 : _spacingX$spacingY$sp, _spacingX$spacingY$sp2 = _spacingX$spacingY.spacingY, y = _spacingX$spacingY$sp2 === void 0 ? spacing3 : _spacingX$spacingY$sp2;
|
|
31216
31249
|
return {
|
|
31217
|
-
"--chakra-wrap-
|
|
31218
|
-
return mapResponsive(
|
|
31219
|
-
return tokenToCSSVar("space", value)(theme3);
|
|
31220
|
-
});
|
|
31221
|
-
},
|
|
31222
|
-
"--chakra-wrap-y-spacing": function chakraWrapYSpacing(theme3) {
|
|
31223
|
-
return mapResponsive(y, function(value) {
|
|
31250
|
+
"--chakra-wrap-spacing": function chakraWrapSpacing(theme3) {
|
|
31251
|
+
return mapResponsive(spacing3, function(value) {
|
|
31224
31252
|
return tokenToCSSVar("space", value)(theme3);
|
|
31225
31253
|
});
|
|
31226
31254
|
},
|
|
31227
|
-
"--wrap-
|
|
31228
|
-
"--wrap-y-spacing": "calc(var(--chakra-wrap-y-spacing) / 2)",
|
|
31255
|
+
"--wrap-spacing": "calc(var(--chakra-wrap-spacing) / 2)",
|
|
31229
31256
|
display: "flex",
|
|
31230
31257
|
flexWrap: "wrap",
|
|
31231
31258
|
justifyContent: justify,
|
|
@@ -31233,12 +31260,12 @@ var Wrap = /* @__PURE__ */ forwardRef3(function(props, ref) {
|
|
|
31233
31260
|
flexDirection: direction2,
|
|
31234
31261
|
listStyleType: "none",
|
|
31235
31262
|
padding: "0",
|
|
31236
|
-
margin: "calc(var(--wrap-
|
|
31263
|
+
margin: "calc(var(--wrap-spacing) * -1)",
|
|
31237
31264
|
"& > *:not(style)": {
|
|
31238
|
-
margin: "var(--wrap-
|
|
31265
|
+
margin: "var(--wrap-spacing)"
|
|
31239
31266
|
}
|
|
31240
31267
|
};
|
|
31241
|
-
}, [spacing3,
|
|
31268
|
+
}, [spacing3, justify, align, direction2]);
|
|
31242
31269
|
var childrenToRender = shouldWrapChildren ? React22.Children.map(children, function(child, index) {
|
|
31243
31270
|
return /* @__PURE__ */ React22.createElement(WrapItem, {
|
|
31244
31271
|
key: index
|
|
@@ -36859,45 +36886,9 @@ function _getPrototypeOf(o) {
|
|
|
36859
36886
|
|
|
36860
36887
|
// node_modules/react-pdf/dist/esm/Document.js
|
|
36861
36888
|
var import_prop_types3 = __toESM(require_prop_types());
|
|
36889
|
+
var import_make_event_props2 = __toESM(require_entry());
|
|
36862
36890
|
import React44, { PureComponent } from "react";
|
|
36863
36891
|
|
|
36864
|
-
// node_modules/make-event-props/dist/esm/index.js
|
|
36865
|
-
var clipboardEvents = ["onCopy", "onCut", "onPaste"];
|
|
36866
|
-
var compositionEvents = ["onCompositionEnd", "onCompositionStart", "onCompositionUpdate"];
|
|
36867
|
-
var keyboardEvents = ["onKeyDown", "onKeyPress", "onKeyUp"];
|
|
36868
|
-
var focusEvents = ["onFocus", "onBlur"];
|
|
36869
|
-
var formEvents = ["onChange", "onInput", "onInvalid", "onReset", "onSubmit"];
|
|
36870
|
-
var genericEvents = ["onError", "onLoad"];
|
|
36871
|
-
var mouseEvents = ["onClick", "onContextMenu", "onDoubleClick", "onDrag", "onDragEnd", "onDragEnter", "onDragExit", "onDragLeave", "onDragOver", "onDragStart", "onDrop", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOut", "onMouseOver", "onMouseUp"];
|
|
36872
|
-
var pointerEvents = ["onPointerDown", "onPointerMove", "onPointerUp", "onPointerCancel", "onGotPointerCapture", "onLostPointerCapture", "onPointerEnter", "onPointerLeave", "onPointerOver", "onPointerOut"];
|
|
36873
|
-
var selectionEvents = ["onSelect"];
|
|
36874
|
-
var touchEvents = ["onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"];
|
|
36875
|
-
var uiEvents = ["onScroll"];
|
|
36876
|
-
var wheelEvents = ["onWheel"];
|
|
36877
|
-
var mediaEvents = ["onAbort", "onCanPlay", "onCanPlayThrough", "onDurationChange", "onEmptied", "onEncrypted", "onEnded", "onError", "onLoadedData", "onLoadedMetadata", "onLoadStart", "onPause", "onPlay", "onPlaying", "onProgress", "onRateChange", "onSeeked", "onSeeking", "onStalled", "onSuspend", "onTimeUpdate", "onVolumeChange", "onWaiting"];
|
|
36878
|
-
var imageEvents = ["onLoad", "onError"];
|
|
36879
|
-
var animationEvents = ["onAnimationStart", "onAnimationEnd", "onAnimationIteration"];
|
|
36880
|
-
var transitionEvents = ["onTransitionEnd"];
|
|
36881
|
-
var otherEvents = ["onToggle"];
|
|
36882
|
-
var allEvents = [].concat(clipboardEvents, compositionEvents, keyboardEvents, focusEvents, formEvents, genericEvents, mouseEvents, pointerEvents, selectionEvents, touchEvents, uiEvents, wheelEvents, mediaEvents, imageEvents, animationEvents, transitionEvents, otherEvents);
|
|
36883
|
-
var makeEventProps = function makeEventProps2(props, getArgs) {
|
|
36884
|
-
var eventProps2 = {};
|
|
36885
|
-
allEvents.forEach(function(eventName) {
|
|
36886
|
-
if (!(eventName in props)) {
|
|
36887
|
-
return;
|
|
36888
|
-
}
|
|
36889
|
-
if (!getArgs) {
|
|
36890
|
-
eventProps2[eventName] = props[eventName];
|
|
36891
|
-
return;
|
|
36892
|
-
}
|
|
36893
|
-
eventProps2[eventName] = function(event) {
|
|
36894
|
-
return props[eventName](event, getArgs(eventName));
|
|
36895
|
-
};
|
|
36896
|
-
});
|
|
36897
|
-
return eventProps2;
|
|
36898
|
-
};
|
|
36899
|
-
var esm_default = makeEventProps;
|
|
36900
|
-
|
|
36901
36892
|
// node_modules/make-cancellable-promise/dist/esm/index.js
|
|
36902
36893
|
function makeCancellablePromise(promise) {
|
|
36903
36894
|
var isCancelled = false;
|
|
@@ -37327,9 +37318,10 @@ function _toConsumableArray(arr) {
|
|
|
37327
37318
|
|
|
37328
37319
|
// node_modules/react-pdf/dist/esm/shared/propTypes.js
|
|
37329
37320
|
var import_prop_types2 = __toESM(require_prop_types());
|
|
37321
|
+
var import_make_event_props = __toESM(require_entry());
|
|
37330
37322
|
var eventProps = function() {
|
|
37331
37323
|
var result = {};
|
|
37332
|
-
[].concat(_toConsumableArray(mouseEvents), _toConsumableArray(touchEvents), _toConsumableArray(keyboardEvents)).forEach(function(eventName) {
|
|
37324
|
+
[].concat(_toConsumableArray(import_make_event_props.mouseEvents), _toConsumableArray(import_make_event_props.touchEvents), _toConsumableArray(import_make_event_props.keyboardEvents)).forEach(function(eventName) {
|
|
37333
37325
|
result[eventName] = import_prop_types2.default.func;
|
|
37334
37326
|
});
|
|
37335
37327
|
return result;
|
|
@@ -37818,7 +37810,7 @@ var Document = /* @__PURE__ */ function(_PureComponent) {
|
|
|
37818
37810
|
key: "eventProps",
|
|
37819
37811
|
get: function get4() {
|
|
37820
37812
|
var _this2 = this;
|
|
37821
|
-
return
|
|
37813
|
+
return (0, import_make_event_props2.default)(this.props, function() {
|
|
37822
37814
|
return _this2.state.pdf;
|
|
37823
37815
|
});
|
|
37824
37816
|
}
|
|
@@ -37869,6 +37861,7 @@ Document.propTypes = _objectSpread(_objectSpread({}, eventProps), {}, {
|
|
|
37869
37861
|
var import_regenerator4 = __toESM(require_regenerator());
|
|
37870
37862
|
var import_prop_types5 = __toESM(require_prop_types());
|
|
37871
37863
|
import React46, { PureComponent as PureComponent3 } from "react";
|
|
37864
|
+
var import_make_event_props3 = __toESM(require_entry());
|
|
37872
37865
|
|
|
37873
37866
|
// node_modules/react-pdf/dist/esm/OutlineContext.js
|
|
37874
37867
|
import { createContext as createContext14 } from "react";
|
|
@@ -38308,7 +38301,7 @@ var OutlineInternal = /* @__PURE__ */ function(_PureComponent) {
|
|
|
38308
38301
|
key: "eventProps",
|
|
38309
38302
|
get: function get4() {
|
|
38310
38303
|
var _this2 = this;
|
|
38311
|
-
return
|
|
38304
|
+
return (0, import_make_event_props3.default)(this.props, function() {
|
|
38312
38305
|
return _this2.state.outline;
|
|
38313
38306
|
});
|
|
38314
38307
|
}
|
|
@@ -38328,6 +38321,7 @@ OutlineInternal.propTypes = _objectSpread2({
|
|
|
38328
38321
|
var import_regenerator8 = __toESM(require_regenerator());
|
|
38329
38322
|
var import_prop_types11 = __toESM(require_prop_types());
|
|
38330
38323
|
import React52, { PureComponent as PureComponent9 } from "react";
|
|
38324
|
+
var import_make_event_props4 = __toESM(require_entry());
|
|
38331
38325
|
|
|
38332
38326
|
// node_modules/merge-refs/dist/esm/index.js
|
|
38333
38327
|
function mergeRefs2() {
|
|
@@ -39609,7 +39603,7 @@ var PageInternal = /* @__PURE__ */ function(_PureComponent) {
|
|
|
39609
39603
|
key: "eventProps",
|
|
39610
39604
|
get: function get4() {
|
|
39611
39605
|
var _this2 = this;
|
|
39612
|
-
return
|
|
39606
|
+
return (0, import_make_event_props4.default)(this.props, function() {
|
|
39613
39607
|
var page = _this2.state.page;
|
|
39614
39608
|
if (!page) {
|
|
39615
39609
|
return page;
|
|
@@ -40494,8 +40488,18 @@ function makeInjectableElement(document2, injectable) {
|
|
|
40494
40488
|
}
|
|
40495
40489
|
return el;
|
|
40496
40490
|
}
|
|
40491
|
+
case "script": {
|
|
40492
|
+
const el = document2.createElement("script");
|
|
40493
|
+
el.setAttribute("type", "text/javascript");
|
|
40494
|
+
if (injectable.url) {
|
|
40495
|
+
el.setAttribute("src", injectable.url);
|
|
40496
|
+
} else {
|
|
40497
|
+
console.warn("Injectable missing url", injectable);
|
|
40498
|
+
}
|
|
40499
|
+
return el;
|
|
40500
|
+
}
|
|
40497
40501
|
default:
|
|
40498
|
-
return;
|
|
40502
|
+
return void 0;
|
|
40499
40503
|
}
|
|
40500
40504
|
}
|
|
40501
40505
|
function getCurrentIndex(manifest, state2, baseUrl) {
|
|
@@ -41644,20 +41648,6 @@ export {
|
|
|
41644
41648
|
usePublicationSW,
|
|
41645
41649
|
useWebReader
|
|
41646
41650
|
};
|
|
41647
|
-
/*! *****************************************************************************
|
|
41648
|
-
Copyright (c) Microsoft Corporation.
|
|
41649
|
-
|
|
41650
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
41651
|
-
purpose with or without fee is hereby granted.
|
|
41652
|
-
|
|
41653
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
41654
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
41655
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
41656
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
41657
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
41658
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
41659
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
41660
|
-
***************************************************************************** */
|
|
41661
41651
|
/** @license React v16.13.1
|
|
41662
41652
|
* react-is.production.min.js
|
|
41663
41653
|
*
|