lido-player 0.0.2-alpha-90 → 0.0.2-alpha-92
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/{decode-JJkh_9QG.js → decode-C3sBXlW1.js} +1 -1
- package/dist/cjs/{index-BrME-8br.js → index-Dl8SlqP-.js} +24 -15
- package/dist/cjs/{index-BEEcyP4v.js → index-rb5JkNCU.js} +46 -20
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/lido-avatar_22.cjs.entry.js +1066 -1141
- package/dist/cjs/lido-player.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/avatar/lido-avatar.js +4 -3
- package/dist/collection/components/avatar/lido-avatar.tsx +4 -2
- package/dist/collection/components/home/lido-home.js +27 -14
- package/dist/collection/components/root/lido-root.js +5 -5
- package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +25 -21
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +1 -1
- package/dist/collection/stories/Templates/total/total.stories.js +1 -2
- package/dist/collection/utils/audioPlayer.js +14 -1
- package/dist/collection/utils/utils.js +2 -1
- package/dist/collection/utils/utilsHandlers/clickHandler.js +15 -10
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +7 -2
- package/dist/collection/utils/utilsHandlers/sortHandler.js +3 -1
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-calculator.js +1 -1
- package/dist/components/lido-canvas.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-home.js +1 -1
- package/dist/components/lido-keyboard.js +1 -1
- package/dist/components/lido-root.js +1 -1
- package/dist/components/lido-text.js +1 -1
- package/dist/components/{p-DU4wfdAe.js → p-5cqqnSZl.js} +1 -1
- package/dist/components/{p-DBzsdEHZ.js → p-BVaiv1nz.js} +1 -1
- package/dist/components/{p-brhqgayz.js → p-Cyn3wr_R.js} +1 -1
- package/dist/components/{p-DMjuSKpY.js → p-DWnRy2OX.js} +1 -1
- package/dist/components/p-DwSVm3Nk.js +1 -0
- package/dist/components/p-XacgbiAe.js +1 -0
- package/dist/components/p-q6x112RN.js +1 -0
- package/dist/esm/{decode-CxVVffTP.js → decode-UDsWuJaQ.js} +1 -1
- package/dist/esm/{index-DoO-CWOR.js → index-C7XdSFIP.js} +25 -16
- package/dist/esm/{index-Bl0AUSHC.js → index-hIkolRLh.js} +46 -20
- package/dist/esm/index.js +2 -2
- package/dist/esm/lido-avatar_22.entry.js +1066 -1141
- package/dist/esm/lido-player.js +3 -3
- package/dist/esm/loader.js +2 -2
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-avatar.tsx +4 -2
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-C7XdSFIP.js +2 -0
- package/dist/lido-player/{p-Dpm_8mTf.js → p-Py_0Op01.js} +1 -1
- package/dist/lido-player/p-ff9d2637.entry.js +1 -0
- package/dist/lido-player/p-mO7V0zx8.js +1 -0
- package/dist/types/components/avatar/lido-avatar.d.ts +1 -0
- package/dist/types/components.d.ts +2 -2
- package/dist/types/stencil-public-runtime.d.ts +3 -1
- package/dist/types/utils/audioPlayer.d.ts +1 -0
- package/package.json +2 -2
- package/dist/collection/components/avatar/rive.wasm +0 -0
- package/dist/components/p-Bnyxg1l1.js +0 -1
- package/dist/components/p-BstMLAyY.js +0 -1
- package/dist/components/p-C1sGTP3k.js +0 -1
- package/dist/lido-player/p-ClirVlrT.js +0 -1
- package/dist/lido-player/p-DoO-CWOR.js +0 -2
- package/dist/lido-player/p-e7a798a2.entry.js +0 -1
- package/dist/lido-player/rive.wasm +0 -0
|
@@ -25,9 +25,22 @@ const globalScripts = () => {};
|
|
|
25
25
|
const globalStyles = "@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&display=swap'); body{overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat;height:100vh}*{user-select:none}.lido-disable-check-button{pointer-events:none;background-color:#9393935c !important;color:white}.lido-element-selected{border:2px solid;background-color:#ffdf7d !important}.diagonal-target,.diagonal-drop *{transform:scale(0.8) !important;opacity:1 !important}.cloned-element{display:flex !important;position:absolute !important;filter:grayscale(100%);pointer-events:none}.removeShadow{box-shadow:0px 0px 0px 0px #ff8900 !important}.highlight-element{border:2px solid white;box-shadow:rgb(243, 77, 8) 0px 0px 40px !important}.drop-element.empty{border:4px dashed #f34d08 !important}.drop-element.filled{border:'none' !important}.drag-element{box-shadow:0px 15px 11px rgba(43, 0, 0, 0.3) !important}.drag-element.dropped{box-shadow:none !important}.click-element{background-color:var(--btn-bg-color, rgba(255, 172, 76, 1)) !important;box-shadow:var(--btn-shadow-px) var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;cursor:pointer;transition:box-shadow 0.1s ease-out, transform 0.2s ease-out;}.click-element:active{box-shadow:0px 0px 0px var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;transform:translateY(var(--btn-active));}.click-element:focus{outline:2px solid dodgerblue;outline-offset:3px}.after-drop-popup-container{width:200%;height:200%;background-color:rgba(0, 0, 0, 0.8);position:absolute;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center !important;gap:80px}.after-drop-popup-drag-element{scale:1.5;border-radius:8px;transform:none !important;position:unset !important}.after-drop-popup-drop-element{scale:1.5;border:unset;border-radius:8px;transform:none !important;position:unset !important}@keyframes zoomFadeIn{0%{transform:scale(0.6);opacity:0}100%{transform:scale(1);opacity:1}}.zoom-fade-in{animation:zoomFadeIn 0.8s ease-out forwards}@keyframes zoomFadeOut{0%{transform:scale(1);opacity:1}100%{transform:scale(0.6);opacity:0}}.zoom-fade-out{animation:zoomFadeOut 0.8s ease-in forwards}.slide-numbers{width:70px;height:70px;border:1px solid #f57139;background-color:white;font-weight:500;color:#f57139;font-size:44px;border-radius:40px;display:flex;align-items:center;justify-content:center;font-family:'Baloo Bhai 2', serif}.slide-numbers-bottom{position:absolute;display:flex;justify-content:space-around;align-items:center;bottom:-25px;width:100%;height:50px}.slide-numbers-left{position:absolute;display:flex;flex-direction:column;justify-content:space-around;height:100%;width:50px;left:-25px;bottom:0px}.lido-speak-icon{width:56px;height:56px;position:absolute;top:-25px;right:-25px;z-index:10;background-image:url(\"https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/template/audioIcon.png\");background-color:white;border:4px solid #F34D08;border-radius:16px;box-shadow:0px 4px 0px 0px #F34D08;background-size:contain;background-repeat:no-repeat;cursor:pointer}.lido-speak-icon:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px !important}.lido-strong-shake{animation:strongShake 0.3s ease}.lido-scaled-shake{animation:scaledShake 0.6s ease-in-out}.lido-horizontal-shake{animation:horizontalShake 0.6s ease-in-out;border-radius:20px}.lido-vertical-shake{animation:verticalShake 0.6s ease-in-out;border-radius:20px}.lido-diagonal-shake{animation:diagonalShake 0.5s ease-in-out;border-radius:20px;will-change:transform}.lido-glow{animation:glowPulse 1s infinite alternate;transition:opacity 0.5s ease-in-out}.lido-box-highlight{animation:topToPlace 0.3s linear}.lido-display-hiddenvalue{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:80px;font-weight:1000;color:brown;-webkit-text-stroke:2px white;font-family:'Baloo Bhai 2', sans-serif;pointer-events:none}.lido-image-colorize{position:relative;display:inline-block}.lido-image-colorize::after{content:'';position:absolute;inset:0;background:var(--tint-color);mix-blend-mode:multiply;opacity:0.8;pointer-events:none;mask-image:var(--mask-url);mask-size:cover;mask-repeat:no-repeat;mask-position:center}.lido-tts-highlight-overlay{position:fixed;pointer-events:none;z-index:9999;background:linear-gradient(\r\n 180deg,\r\n rgba(255, 235, 59, 0.95),\r\n rgba(255, 214, 0, 0.95)\r\n );border-radius:6px;box-shadow:0 2px 6px rgba(0, 0, 0, 0.18),\r\n inset 0 -1px 0 rgba(255, 255, 255, 0.25);transition:left 55ms linear,\r\n top 55ms linear,\r\n width 55ms ease-out,\r\n height 55ms ease-out,\r\n opacity 80ms ease-out;opacity:0.95;will-change:transform, width, height}";
|
|
26
26
|
|
|
27
27
|
/*
|
|
28
|
-
Stencil Client Platform v4.43.
|
|
28
|
+
Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
+
|
|
32
|
+
// src/utils/get-prop-descriptor.ts
|
|
33
|
+
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
34
|
+
const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
|
|
35
|
+
while (obj && obj !== stopAt) {
|
|
36
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
37
|
+
if (desc && (!getOnly || desc.get)) return desc;
|
|
38
|
+
obj = Object.getPrototypeOf(obj);
|
|
39
|
+
}
|
|
40
|
+
return void 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// src/utils/es2022-rewire-class-members.ts
|
|
31
44
|
var reWireGetterSetter = (instance, hostRef) => {
|
|
32
45
|
var _a;
|
|
33
46
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -35,7 +48,7 @@ var reWireGetterSetter = (instance, hostRef) => {
|
|
|
35
48
|
members.map(([memberName, [memberFlags]]) => {
|
|
36
49
|
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
37
50
|
const ogValue = instance[memberName];
|
|
38
|
-
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
51
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
39
52
|
if (ogDescriptor) {
|
|
40
53
|
Object.defineProperty(instance, memberName, {
|
|
41
54
|
get() {
|
|
@@ -48,18 +61,14 @@ var reWireGetterSetter = (instance, hostRef) => {
|
|
|
48
61
|
enumerable: true
|
|
49
62
|
});
|
|
50
63
|
}
|
|
51
|
-
|
|
64
|
+
if (hostRef.$instanceValues$.has(memberName)) {
|
|
65
|
+
instance[memberName] = hostRef.$instanceValues$.get(memberName);
|
|
66
|
+
} else if (ogValue !== void 0) {
|
|
67
|
+
instance[memberName] = ogValue;
|
|
68
|
+
}
|
|
52
69
|
}
|
|
53
70
|
});
|
|
54
71
|
};
|
|
55
|
-
function getPropertyDescriptor(obj, memberName) {
|
|
56
|
-
while (obj) {
|
|
57
|
-
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
58
|
-
if (desc == null ? void 0 : desc.get) return desc;
|
|
59
|
-
obj = Object.getPrototypeOf(obj);
|
|
60
|
-
}
|
|
61
|
-
return void 0;
|
|
62
|
-
}
|
|
63
72
|
|
|
64
73
|
// src/client/client-host-ref.ts
|
|
65
74
|
var getHostRef = (ref) => {
|
|
@@ -443,7 +452,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
443
452
|
}
|
|
444
453
|
} else {
|
|
445
454
|
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
446
|
-
if (existingStyleContainer) {
|
|
455
|
+
if (existingStyleContainer && true) {
|
|
447
456
|
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
448
457
|
} else {
|
|
449
458
|
styleContainerNode.prepend(styleElm);
|
|
@@ -721,7 +730,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
721
730
|
return;
|
|
722
731
|
} else {
|
|
723
732
|
const isComplex = isComplexType(newValue);
|
|
724
|
-
if ((isProp || isComplex && newValue !== null) &&
|
|
733
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
725
734
|
try {
|
|
726
735
|
if (!elm.tagName.includes("-")) {
|
|
727
736
|
const n = newValue == null ? "" : newValue;
|
|
@@ -1585,7 +1594,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1585
1594
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1586
1595
|
members.map(([memberName, [memberFlags]]) => {
|
|
1587
1596
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1588
|
-
const { get: origGetter, set: origSetter } =
|
|
1597
|
+
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
1589
1598
|
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1590
1599
|
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1591
1600
|
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
@@ -1847,7 +1856,7 @@ var connectedCallback = (elm) => {
|
|
|
1847
1856
|
}
|
|
1848
1857
|
if (cmpMeta.$members$) {
|
|
1849
1858
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1850
|
-
if (memberFlags & 31 /* Prop */ &&
|
|
1859
|
+
if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
|
|
1851
1860
|
const value = elm[memberName];
|
|
1852
1861
|
delete elm[memberName];
|
|
1853
1862
|
elm[memberName] = value;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index$1 = require('./index-
|
|
3
|
+
var index$1 = require('./index-Dl8SlqP-.js');
|
|
4
4
|
|
|
5
5
|
const DragMapKey = 'lidoDragMap';
|
|
6
6
|
const SelectedValuesKey = 'lidoSelectedValues';
|
|
@@ -556,11 +556,11 @@ function enableDraggingWithScaling(element) {
|
|
|
556
556
|
if (!mostOverlappedElement) {
|
|
557
557
|
// build current selection/drop maps so reset logic can update counts correctly
|
|
558
558
|
(_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : "[]";
|
|
559
|
-
JSON.stringify(buildDragSelectedMapFromDOM());
|
|
559
|
+
const dragSelectedData = JSON.stringify(buildDragSelectedMapFromDOM());
|
|
560
560
|
const dropSelectedDataObject = buildDragSelectedMapFromDOM();
|
|
561
561
|
JSON.stringify(dropSelectedDataObject);
|
|
562
562
|
const dropHasDrag = buildDropHasDragFromDOM();
|
|
563
|
-
handleResetDragElement(element,
|
|
563
|
+
handleResetDragElement(element, mostOverlappedElement, dropHasDrag, null, dragSelectedData);
|
|
564
564
|
return;
|
|
565
565
|
}
|
|
566
566
|
onElementDropComplete(element, mostOverlappedElement);
|
|
@@ -732,7 +732,12 @@ async function handleResetDragElement(dragElement, dropElement, dropHasDrag, sel
|
|
|
732
732
|
// rebuild counts & balance after removing mapping
|
|
733
733
|
const rebuiltMap2 = buildDragSelectedMapFromDOM();
|
|
734
734
|
const sortedValues2 = getSortedValuesArrayFromMap(rebuiltMap2);
|
|
735
|
-
|
|
735
|
+
if (sortedValues2 && sortedValues2.length > 0) {
|
|
736
|
+
container.setAttribute(SelectedValuesKey, JSON.stringify(sortedValues2));
|
|
737
|
+
}
|
|
738
|
+
else {
|
|
739
|
+
container.removeAttribute(SelectedValuesKey);
|
|
740
|
+
}
|
|
736
741
|
updateBalanceOnDrop();
|
|
737
742
|
}
|
|
738
743
|
const allElements = document.querySelectorAll("[type='drop']");
|
|
@@ -1319,6 +1324,7 @@ class AudioPlayer {
|
|
|
1319
1324
|
this.wordRects = [];
|
|
1320
1325
|
this.activeWordIndex = -1;
|
|
1321
1326
|
this.highlightRAF = null;
|
|
1327
|
+
this.endPromiseResolve = null;
|
|
1322
1328
|
this.handleUserClick = () => {
|
|
1323
1329
|
const container = document.getElementById(LidoContainer);
|
|
1324
1330
|
if ((container === null || container === void 0 ? void 0 : container.getAttribute('game-completed')) === 'true')
|
|
@@ -1346,6 +1352,12 @@ class AudioPlayer {
|
|
|
1346
1352
|
if (window === null || window === void 0 ? void 0 : window.speechSynthesis) {
|
|
1347
1353
|
window.speechSynthesis.cancel();
|
|
1348
1354
|
}
|
|
1355
|
+
// Resolve any pending "ended" wait so callers can continue.
|
|
1356
|
+
if (this.endPromiseResolve) {
|
|
1357
|
+
const resolve = this.endPromiseResolve;
|
|
1358
|
+
this.endPromiseResolve = null;
|
|
1359
|
+
resolve();
|
|
1360
|
+
}
|
|
1349
1361
|
this.audioElement.pause();
|
|
1350
1362
|
this.audioElement.currentTime = 0;
|
|
1351
1363
|
this.audioElement.src = '';
|
|
@@ -1445,7 +1457,13 @@ class AudioPlayer {
|
|
|
1445
1457
|
}
|
|
1446
1458
|
// unified end
|
|
1447
1459
|
await new Promise(resolve => {
|
|
1448
|
-
this.
|
|
1460
|
+
this.endPromiseResolve = resolve;
|
|
1461
|
+
this.audioElement.onended = () => {
|
|
1462
|
+
if (this.endPromiseResolve === resolve) {
|
|
1463
|
+
this.endPromiseResolve = null;
|
|
1464
|
+
}
|
|
1465
|
+
resolve();
|
|
1466
|
+
};
|
|
1449
1467
|
});
|
|
1450
1468
|
}
|
|
1451
1469
|
catch (error) {
|
|
@@ -1853,6 +1871,8 @@ function enableReorderDrag(element) {
|
|
|
1853
1871
|
const targetValue = element['value'];
|
|
1854
1872
|
if (dragValues[tabKey]) {
|
|
1855
1873
|
dragValues[tabKey] = dragValues[tabKey].filter((el) => el !== targetValue);
|
|
1874
|
+
const sortedValues = getSortedValuesArrayFromMap(dragValues);
|
|
1875
|
+
container.setAttribute(SelectedValuesKey, JSON.stringify(sortedValues));
|
|
1856
1876
|
// localStorage.setItem(DragSelectedMapKey, JSON.stringify(dragValues));
|
|
1857
1877
|
}
|
|
1858
1878
|
optionArea.scrollTo({
|
|
@@ -3532,25 +3552,30 @@ function validateWCAG2Parms(parms) {
|
|
|
3532
3552
|
function onTouchListenerForOnTouch(element) {
|
|
3533
3553
|
if (!element)
|
|
3534
3554
|
return;
|
|
3535
|
-
const container = document.getElementById('lido-container');
|
|
3536
|
-
// const container = element.closest('lido-container') as HTMLElement;
|
|
3537
|
-
// if (container && container.getAttribute('disable-speak') === 'true') {
|
|
3538
|
-
// return;
|
|
3539
|
-
// }
|
|
3540
|
-
// if (element.closest('[disableSpeak="true"]')) {
|
|
3541
|
-
// return;
|
|
3542
|
-
// }
|
|
3543
3555
|
const onTouch = element.getAttribute('onTouch');
|
|
3544
3556
|
let onholdTimer = null;
|
|
3545
3557
|
let onholdTriggered = false;
|
|
3546
3558
|
const onholdTime = 1000;
|
|
3547
3559
|
const playAudio = async () => {
|
|
3548
|
-
|
|
3560
|
+
const container = document.getElementById(LidoContainer);
|
|
3561
|
+
if (element === container) {
|
|
3549
3562
|
return;
|
|
3550
3563
|
}
|
|
3564
|
+
const hasDisableSpeakAttribute = element.hasAttribute('disable-speak') || element.hasAttribute('disableSpeak');
|
|
3551
3565
|
onholdTriggered = true;
|
|
3552
3566
|
setDraggingDisabled(true);
|
|
3553
|
-
|
|
3567
|
+
// If container itself is NOT disabled → play normally
|
|
3568
|
+
if (!hasDisableSpeakAttribute) {
|
|
3569
|
+
await AudioPlayer.getI().play(element);
|
|
3570
|
+
setDraggingDisabled(false);
|
|
3571
|
+
return;
|
|
3572
|
+
}
|
|
3573
|
+
if (element.getAttribute('disable-speak') === 'true' || (element.hasAttribute('disable-speak') && element.getAttribute('disable-speak') !== 'false')) {
|
|
3574
|
+
return;
|
|
3575
|
+
}
|
|
3576
|
+
else {
|
|
3577
|
+
await AudioPlayer.getI().play(element);
|
|
3578
|
+
}
|
|
3554
3579
|
setDraggingDisabled(false);
|
|
3555
3580
|
};
|
|
3556
3581
|
const onPointerDown = (event) => {
|
|
@@ -7235,7 +7260,7 @@ var tanh$2 = Math.tanh || function (x) {
|
|
|
7235
7260
|
function copysign(x, y) {
|
|
7236
7261
|
var signx = true ;
|
|
7237
7262
|
var signy = y > 0 ? true : y < 0 ? false : 1 / y === Infinity;
|
|
7238
|
-
return signx ^ signy ? -
|
|
7263
|
+
return signx ^ signy ? -x : x;
|
|
7239
7264
|
}
|
|
7240
7265
|
function _toNumberOrThrow(value, onError) {
|
|
7241
7266
|
if (isNumber(value)) {
|
|
@@ -7858,7 +7883,7 @@ var EXP_LIMIT = 9e15, // 0 to 9e15
|
|
|
7858
7883
|
|
|
7859
7884
|
// The minimum exponent value, beneath which underflow to zero occurs.
|
|
7860
7885
|
// JavaScript numbers: -324 (5e-324)
|
|
7861
|
-
minE: -
|
|
7886
|
+
minE: -EXP_LIMIT, // -1 to -EXP_LIMIT
|
|
7862
7887
|
|
|
7863
7888
|
// The maximum exponent value, above which overflow to Infinity occurs.
|
|
7864
7889
|
// JavaScript numbers: 308 (1.7976931348623157e+308)
|
|
@@ -11984,10 +12009,10 @@ function config(obj) {
|
|
|
11984
12009
|
ps = [
|
|
11985
12010
|
'precision', 1, MAX_DIGITS,
|
|
11986
12011
|
'rounding', 0, 8,
|
|
11987
|
-
'toExpNeg', -
|
|
12012
|
+
'toExpNeg', -EXP_LIMIT, 0,
|
|
11988
12013
|
'toExpPos', 0, EXP_LIMIT,
|
|
11989
12014
|
'maxE', 0, EXP_LIMIT,
|
|
11990
|
-
'minE', -
|
|
12015
|
+
'minE', -EXP_LIMIT, 0,
|
|
11991
12016
|
'modulo', 0, 9
|
|
11992
12017
|
];
|
|
11993
12018
|
|
|
@@ -72928,7 +72953,8 @@ const parseMultiplyBeedsText = (text) => {
|
|
|
72928
72953
|
const allSame = terms.every(term => Number(term) === firstValue);
|
|
72929
72954
|
if (!allSame)
|
|
72930
72955
|
return null;
|
|
72931
|
-
|
|
72956
|
+
const resultText = (resultPart !== null && resultPart !== void 0 ? resultPart : "").trim();
|
|
72957
|
+
let total = resultText === "" ? NaN : Number(resultText);
|
|
72932
72958
|
if (Number.isNaN(total)) {
|
|
72933
72959
|
total = terms
|
|
72934
72960
|
.map(term => Number(term))
|