@pie-element/number-line 13.1.1 → 13.1.2-next.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/configure.js +2 -0
- package/controller.js +1 -0
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/author/arrows.d.ts +28 -0
- package/dist/author/arrows.js +69 -0
- package/dist/author/card-bar.d.ts +20 -0
- package/dist/author/card-bar.js +41 -0
- package/dist/author/defaults.d.ts +178 -0
- package/dist/author/defaults.js +144 -0
- package/dist/author/domain.d.ts +15 -0
- package/dist/author/domain.js +54 -0
- package/dist/author/index.d.ts +23 -0
- package/dist/author/index.js +89 -0
- package/dist/author/main.d.ts +44 -0
- package/dist/author/main.js +485 -0
- package/dist/author/number-text-field.d.ts +13 -0
- package/dist/author/number-text-field.js +13 -0
- package/dist/author/point-config.d.ts +25 -0
- package/dist/author/point-config.js +69 -0
- package/dist/author/size.d.ts +24 -0
- package/dist/author/size.js +48 -0
- package/dist/author/ticks.d.ts +22 -0
- package/dist/author/ticks.js +115 -0
- package/dist/author/utils.d.ts +9 -0
- package/dist/author/utils.js +4 -0
- package/dist/browser/_baseSet-ycZx94p7.js +8672 -0
- package/dist/browser/_baseSet-ycZx94p7.js.map +1 -0
- package/dist/browser/author/index.js +40436 -0
- package/dist/browser/author/index.js.map +1 -0
- package/dist/browser/controller/index.js +823 -0
- package/dist/browser/controller/index.js.map +1 -0
- package/dist/browser/delivery/index.js +2 -0
- package/dist/browser/delivery-Dh8QdqpO.js +17950 -0
- package/dist/browser/delivery-Dh8QdqpO.js.map +1 -0
- package/dist/browser/number-line.css +2 -0
- package/dist/browser/uniqWith-CKN50xMI.js +17886 -0
- package/dist/browser/uniqWith-CKN50xMI.js.map +1 -0
- package/dist/controller/defaults.d.ts +58 -0
- package/dist/controller/defaults.js +50 -0
- package/dist/controller/index.d.ts +33 -0
- package/dist/controller/index.js +170 -0
- package/dist/controller/tickUtils.d.ts +20 -0
- package/dist/controller/tickUtils.js +254 -0
- package/dist/controller/utils.d.ts +9 -0
- package/dist/controller/utils.js +68 -0
- package/dist/delivery/data-converter.d.ts +64 -0
- package/dist/delivery/data-converter.js +70 -0
- package/dist/delivery/draggable/index.d.ts +33 -0
- package/dist/delivery/draggable/index.js +39 -0
- package/dist/delivery/index.d.ts +35 -0
- package/dist/delivery/index.js +109 -0
- package/dist/delivery/number-line/colors.d.ts +11 -0
- package/dist/delivery/number-line/colors.js +5 -0
- package/dist/delivery/number-line/feedback.d.ts +19 -0
- package/dist/delivery/number-line/feedback.js +57 -0
- package/dist/delivery/number-line/graph/arrow.d.ts +30 -0
- package/dist/delivery/number-line/graph/arrow.js +27 -0
- package/dist/delivery/number-line/graph/elements/base.d.ts +16 -0
- package/dist/delivery/number-line/graph/elements/base.js +11 -0
- package/dist/delivery/number-line/graph/elements/builder.d.ts +33 -0
- package/dist/delivery/number-line/graph/elements/builder.js +30 -0
- package/dist/delivery/number-line/graph/elements/line.d.ts +51 -0
- package/dist/delivery/number-line/graph/elements/line.js +189 -0
- package/dist/delivery/number-line/graph/elements/point.d.ts +43 -0
- package/dist/delivery/number-line/graph/elements/point.js +127 -0
- package/dist/delivery/number-line/graph/elements/ray.d.ts +43 -0
- package/dist/delivery/number-line/graph/elements/ray.js +130 -0
- package/dist/delivery/number-line/graph/index.d.ts +59 -0
- package/dist/delivery/number-line/graph/index.js +196 -0
- package/dist/delivery/number-line/graph/line.d.ts +46 -0
- package/dist/delivery/number-line/graph/line.js +27 -0
- package/dist/delivery/number-line/graph/stacks.d.ts +10 -0
- package/dist/delivery/number-line/graph/stacks.js +40 -0
- package/dist/delivery/number-line/graph/tick-utils.d.ts +73 -0
- package/dist/delivery/number-line/graph/tick-utils.js +297 -0
- package/dist/delivery/number-line/graph/ticks.d.ts +46 -0
- package/dist/delivery/number-line/graph/ticks.js +115 -0
- package/dist/delivery/number-line/index.d.ts +35 -0
- package/dist/delivery/number-line/index.js +218 -0
- package/dist/delivery/number-line/point-chooser/button.d.ts +31 -0
- package/dist/delivery/number-line/point-chooser/button.js +36 -0
- package/dist/delivery/number-line/point-chooser/img.d.ts +10 -0
- package/dist/delivery/number-line/point-chooser/img.js +4 -0
- package/dist/delivery/number-line/point-chooser/index.d.ts +37 -0
- package/dist/delivery/number-line/point-chooser/index.js +154 -0
- package/dist/delivery/number-line/point-chooser/styles.d.ts +192 -0
- package/dist/delivery/number-line/transitions/fade.d.ts +34 -0
- package/dist/delivery/number-line/transitions/fade.js +75 -0
- package/dist/delivery/number-line/transitions/index.d.ts +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.iife.d.ts +8 -0
- package/dist/index.iife.js +201 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignMergeValue.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js +26 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js +19 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js +31 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +22 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +27 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js +19 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +18 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_safeGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqualWith.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isNumber.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/merge.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/negate.js +17 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/omitBy.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pickBy.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js +7 -0
- package/package.json +78 -16
- package/CHANGELOG.json +0 -1247
- package/CHANGELOG.md +0 -2435
- package/LICENSE.md +0 -5
- package/README.md +0 -28
- package/configure/CHANGELOG.json +0 -827
- package/configure/CHANGELOG.md +0 -2082
- package/configure/lib/arrows.js +0 -89
- package/configure/lib/arrows.js.map +0 -1
- package/configure/lib/card-bar.js +0 -57
- package/configure/lib/card-bar.js.map +0 -1
- package/configure/lib/defaults.js +0 -177
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/domain.js +0 -87
- package/configure/lib/domain.js.map +0 -1
- package/configure/lib/index.js +0 -176
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/main.js +0 -815
- package/configure/lib/main.js.map +0 -1
- package/configure/lib/number-text-field.js +0 -26
- package/configure/lib/number-text-field.js.map +0 -1
- package/configure/lib/point-config.js +0 -84
- package/configure/lib/point-config.js.map +0 -1
- package/configure/lib/size.js +0 -66
- package/configure/lib/size.js.map +0 -1
- package/configure/lib/ticks.js +0 -234
- package/configure/lib/ticks.js.map +0 -1
- package/configure/lib/utils.js +0 -12
- package/configure/lib/utils.js.map +0 -1
- package/configure/package.json +0 -20
- package/controller/CHANGELOG.json +0 -332
- package/controller/CHANGELOG.md +0 -1360
- package/controller/lib/defaults.js +0 -56
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -430
- package/controller/lib/index.js.map +0 -1
- package/controller/lib/tickUtils.js +0 -294
- package/controller/lib/tickUtils.js.map +0 -1
- package/controller/lib/utils.js +0 -168
- package/controller/lib/utils.js.map +0 -1
- package/controller/package.json +0 -20
- package/demo.gif +0 -0
- package/docs/config-schema.json +0 -2532
- package/docs/config-schema.json.md +0 -1844
- package/docs/demo/config.js +0 -8
- package/docs/demo/generate.js +0 -39
- package/docs/demo/index.html +0 -1
- package/docs/pie-schema.json +0 -2461
- package/docs/pie-schema.json.md +0 -1228
- package/docs/schemas/config.json +0 -256
- package/lib/data-converter.js +0 -96
- package/lib/data-converter.js.map +0 -1
- package/lib/draggable/index.js +0 -114
- package/lib/draggable/index.js.map +0 -1
- package/lib/index.js +0 -196
- package/lib/index.js.map +0 -1
- package/lib/number-line/colors.js +0 -11
- package/lib/number-line/colors.js.map +0 -1
- package/lib/number-line/feedback.js +0 -92
- package/lib/number-line/feedback.js.map +0 -1
- package/lib/number-line/graph/arrow.js +0 -44
- package/lib/number-line/graph/arrow.js.map +0 -1
- package/lib/number-line/graph/elements/base.js +0 -20
- package/lib/number-line/graph/elements/base.js.map +0 -1
- package/lib/number-line/graph/elements/builder.js +0 -37
- package/lib/number-line/graph/elements/builder.js.map +0 -1
- package/lib/number-line/graph/elements/line.js +0 -259
- package/lib/number-line/graph/elements/line.js.map +0 -1
- package/lib/number-line/graph/elements/point.js +0 -204
- package/lib/number-line/graph/elements/point.js.map +0 -1
- package/lib/number-line/graph/elements/ray.js +0 -190
- package/lib/number-line/graph/elements/ray.js.map +0 -1
- package/lib/number-line/graph/index.js +0 -262
- package/lib/number-line/graph/index.js.map +0 -1
- package/lib/number-line/graph/line.js +0 -38
- package/lib/number-line/graph/line.js.map +0 -1
- package/lib/number-line/graph/stacks.js +0 -78
- package/lib/number-line/graph/stacks.js.map +0 -1
- package/lib/number-line/graph/tick-utils.js +0 -347
- package/lib/number-line/graph/tick-utils.js.map +0 -1
- package/lib/number-line/graph/ticks.js +0 -188
- package/lib/number-line/graph/ticks.js.map +0 -1
- package/lib/number-line/index.js +0 -384
- package/lib/number-line/index.js.map +0 -1
- package/lib/number-line/point-chooser/button.js +0 -49
- package/lib/number-line/point-chooser/button.js.map +0 -1
- package/lib/number-line/point-chooser/img.js +0 -8
- package/lib/number-line/point-chooser/img.js.map +0 -1
- package/lib/number-line/point-chooser/index.js +0 -197
- package/lib/number-line/point-chooser/index.js.map +0 -1
- package/lib/number-line/point-chooser/styles.js +0 -77
- package/lib/number-line/point-chooser/styles.js.map +0 -1
- package/lib/number-line/transitions/fade.js +0 -88
- package/lib/number-line/transitions/fade.js.map +0 -1
- package/lib/number-line/transitions/index.js +0 -14
- package/lib/number-line/transitions/index.js.map +0 -1
|
@@ -0,0 +1,823 @@
|
|
|
1
|
+
import { A as e, Da as t, Dr as n, E as r, Er as i, F as a, Gt as o, I as s, Jr as c, N as l, O as u, P as d, Pn as f, Qn as p, Sn as m, T as h, Yn as g, _, b as v, d as ee, f as y, fa as b, ft as x, g as te, i as S, j as ne, k as re, l as ie, li as C, n as ae, o as oe, pa as w, r as T, s as se, t as ce, ti as E, w as le, x as D, y as ue, yt as O } from "../uniqWith-CKN50xMI.js";
|
|
2
|
+
import { _ as de, a as fe, c as k, d as pe, h as me, i as he, l as A, m as ge, n as j, o as _e, r as ve, s as M, t as ye, u as N, v as be } from "../_baseSet-ycZx94p7.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js
|
|
4
|
+
function xe(t, n, r) {
|
|
5
|
+
if (!a(r)) return !1;
|
|
6
|
+
var i = typeof n;
|
|
7
|
+
return (i == "number" ? le(r) && e(n, r.length) : i == "string" && n in r) ? u(r[n], t) : !1;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js
|
|
11
|
+
function Se(e) {
|
|
12
|
+
return pe(function(t, n) {
|
|
13
|
+
var r = -1, i = n.length, a = i > 1 ? n[i - 1] : void 0, o = i > 2 ? n[2] : void 0;
|
|
14
|
+
for (a = e.length > 3 && typeof a == "function" ? (i--, a) : void 0, o && xe(n[0], n[1], o) && (a = i < 3 ? void 0 : a, i = 1), t = Object(t); ++r < i;) {
|
|
15
|
+
var s = n[r];
|
|
16
|
+
s && e(t, s, r, a);
|
|
17
|
+
}
|
|
18
|
+
return t;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js
|
|
23
|
+
var Ce = 1, we = 2;
|
|
24
|
+
function Te(e, t, n, r) {
|
|
25
|
+
var i = n.length, a = i, o = !r;
|
|
26
|
+
if (e == null) return !a;
|
|
27
|
+
for (e = Object(e); i--;) {
|
|
28
|
+
var s = n[i];
|
|
29
|
+
if (o && s[2] ? s[1] !== e[s[0]] : !(s[0] in e)) return !1;
|
|
30
|
+
}
|
|
31
|
+
for (; ++i < a;) {
|
|
32
|
+
s = n[i];
|
|
33
|
+
var c = s[0], l = e[c], u = s[1];
|
|
34
|
+
if (o && s[2]) {
|
|
35
|
+
if (l === void 0 && !(c in e)) return !1;
|
|
36
|
+
} else {
|
|
37
|
+
var d = new y();
|
|
38
|
+
if (r) var f = r(l, u, c, e, t, d);
|
|
39
|
+
if (!(f === void 0 ? T(u, l, Ce | we, r, d) : f)) return !1;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return !0;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js
|
|
46
|
+
function P(e) {
|
|
47
|
+
return e === e && !a(e);
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js
|
|
51
|
+
function Ee(e) {
|
|
52
|
+
for (var t = _(e), n = t.length; n--;) {
|
|
53
|
+
var r = t[n], i = e[r];
|
|
54
|
+
t[n] = [
|
|
55
|
+
r,
|
|
56
|
+
i,
|
|
57
|
+
P(i)
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
return t;
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js
|
|
64
|
+
function F(e, t) {
|
|
65
|
+
return function(n) {
|
|
66
|
+
return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js
|
|
71
|
+
function De(e) {
|
|
72
|
+
var t = Ee(e);
|
|
73
|
+
return t.length == 1 && t[0][2] ? F(t[0][0], t[0][1]) : function(n) {
|
|
74
|
+
return n === e || Te(n, e, t);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js
|
|
79
|
+
function Oe(e, t) {
|
|
80
|
+
return e != null && t in Object(e);
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js
|
|
84
|
+
function ke(t, n, r) {
|
|
85
|
+
n = A(n, t);
|
|
86
|
+
for (var i = -1, a = n.length, o = !1; ++i < a;) {
|
|
87
|
+
var c = k(n[i]);
|
|
88
|
+
if (!(o = t != null && r(t, c))) break;
|
|
89
|
+
t = t[c];
|
|
90
|
+
}
|
|
91
|
+
return o || ++i != a ? o : (a = t == null ? 0 : t.length, !!a && h(a) && e(c, a) && (s(t) || D(t)));
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js
|
|
95
|
+
function Ae(e, t) {
|
|
96
|
+
return e != null && ke(e, t, Oe);
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js
|
|
100
|
+
var je = 1, Me = 2;
|
|
101
|
+
function Ne(e, t) {
|
|
102
|
+
return N(e) && P(t) ? F(k(e), t) : function(n) {
|
|
103
|
+
var r = _e(n, e);
|
|
104
|
+
return r === void 0 && r === t ? Ae(n, e) : T(t, r, je | Me);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js
|
|
109
|
+
function Pe(e) {
|
|
110
|
+
return function(t) {
|
|
111
|
+
return M(t, e);
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js
|
|
116
|
+
function Fe(e) {
|
|
117
|
+
return N(e) ? he(k(e)) : Pe(e);
|
|
118
|
+
}
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js
|
|
121
|
+
function I(e) {
|
|
122
|
+
return typeof e == "function" ? e : e == null ? ge : typeof e == "object" ? s(e) ? Ne(e[0], e[1]) : De(e) : Fe(e);
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js
|
|
126
|
+
function Ie(e) {
|
|
127
|
+
return function(t, n, r) {
|
|
128
|
+
for (var i = -1, a = Object(t), o = r(t), s = o.length; s--;) {
|
|
129
|
+
var c = o[e ? s : ++i];
|
|
130
|
+
if (n(a[c], c, a) === !1) break;
|
|
131
|
+
}
|
|
132
|
+
return t;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js
|
|
137
|
+
var Le = Ie();
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignMergeValue.js
|
|
140
|
+
function L(e, t, n) {
|
|
141
|
+
(n !== void 0 && !u(e[t], n) || n === void 0 && !(t in e)) && re(e, t, n);
|
|
142
|
+
}
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_safeGet.js
|
|
145
|
+
function R(e, t) {
|
|
146
|
+
if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__") return e[t];
|
|
147
|
+
}
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js
|
|
150
|
+
function Re(e) {
|
|
151
|
+
return r(e, te(e));
|
|
152
|
+
}
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js
|
|
155
|
+
function ze(e, t, n, r, i, o, c) {
|
|
156
|
+
var u = R(e, n), f = R(t, n), p = c.get(f);
|
|
157
|
+
if (p) {
|
|
158
|
+
L(e, n, p);
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
var m = o ? o(u, f, n + "", e, t, c) : void 0, h = m === void 0;
|
|
162
|
+
if (h) {
|
|
163
|
+
var g = s(f), _ = !g && v(f), y = !g && !_ && ue(f);
|
|
164
|
+
m = f, g || _ || y ? s(u) ? m = u : ve(u) ? m = l(u) : _ ? (h = !1, m = ee(f, !0)) : y ? (h = !1, m = se(f, !0)) : m = [] : fe(f) || D(f) ? (m = u, D(u) ? m = Re(u) : (!a(u) || d(u)) && (m = oe(f))) : h = !1;
|
|
165
|
+
}
|
|
166
|
+
h && (c.set(f, m), i(m, f, r, o, c), c.delete(f)), L(e, n, m);
|
|
167
|
+
}
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js
|
|
170
|
+
function z(e, t, n, r, i) {
|
|
171
|
+
e !== t && Le(t, function(o, s) {
|
|
172
|
+
if (i ||= new y(), a(o)) ze(e, t, s, n, z, r, i);
|
|
173
|
+
else {
|
|
174
|
+
var c = r ? r(R(e, s), o, s + "", e, t, i) : void 0;
|
|
175
|
+
c === void 0 && (c = o), L(e, s, c);
|
|
176
|
+
}
|
|
177
|
+
}, te);
|
|
178
|
+
}
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js
|
|
181
|
+
function Be(e) {
|
|
182
|
+
return function(t, n, r) {
|
|
183
|
+
var i = Object(t);
|
|
184
|
+
if (!le(t)) {
|
|
185
|
+
var a = I(n, 3);
|
|
186
|
+
t = _(t), n = function(e) {
|
|
187
|
+
return a(i[e], e, i);
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
var o = e(t, n, r);
|
|
191
|
+
return o > -1 ? i[a ? t[o] : o] : void 0;
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
//#endregion
|
|
195
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js
|
|
196
|
+
var Ve = Math.max;
|
|
197
|
+
function He(e, t, n) {
|
|
198
|
+
var r = e == null ? 0 : e.length;
|
|
199
|
+
if (!r) return -1;
|
|
200
|
+
var i = n == null ? 0 : me(n);
|
|
201
|
+
return i < 0 && (i = Ve(r + i, 0)), ne(e, I(t, 3), i);
|
|
202
|
+
}
|
|
203
|
+
//#endregion
|
|
204
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js
|
|
205
|
+
var Ue = Be(He);
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqualWith.js
|
|
208
|
+
function We(e, t, n) {
|
|
209
|
+
n = typeof n == "function" ? n : void 0;
|
|
210
|
+
var r = n ? n(e, t) : void 0;
|
|
211
|
+
return r === void 0 ? T(e, t, void 0, n) : !!r;
|
|
212
|
+
}
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/merge.js
|
|
215
|
+
var Ge = Se(function(e, t, n) {
|
|
216
|
+
z(e, t, n);
|
|
217
|
+
}), Ke = "Expected a function";
|
|
218
|
+
function qe(e) {
|
|
219
|
+
if (typeof e != "function") throw TypeError(Ke);
|
|
220
|
+
return function() {
|
|
221
|
+
var t = arguments;
|
|
222
|
+
switch (t.length) {
|
|
223
|
+
case 0: return !e.call(this);
|
|
224
|
+
case 1: return !e.call(this, t[0]);
|
|
225
|
+
case 2: return !e.call(this, t[0], t[1]);
|
|
226
|
+
case 3: return !e.call(this, t[0], t[1], t[2]);
|
|
227
|
+
}
|
|
228
|
+
return !e.apply(this, t);
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js
|
|
233
|
+
function Je(e, t, n) {
|
|
234
|
+
for (var r = -1, i = t.length, a = {}; ++r < i;) {
|
|
235
|
+
var o = t[r], s = M(e, o);
|
|
236
|
+
n(s, o) && ye(a, A(o, e), s);
|
|
237
|
+
}
|
|
238
|
+
return a;
|
|
239
|
+
}
|
|
240
|
+
//#endregion
|
|
241
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pickBy.js
|
|
242
|
+
function Ye(e, t) {
|
|
243
|
+
if (e == null) return {};
|
|
244
|
+
var n = de(ie(e), function(e) {
|
|
245
|
+
return [e];
|
|
246
|
+
});
|
|
247
|
+
return t = I(t), Je(e, n, function(e, n) {
|
|
248
|
+
return t(e, n[0]);
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/omitBy.js
|
|
253
|
+
function B(e, t) {
|
|
254
|
+
return Ye(e, qe(I(t)));
|
|
255
|
+
}
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region ../../shared/feedback/dist/index.js
|
|
258
|
+
var V = {
|
|
259
|
+
correct: {
|
|
260
|
+
type: "default",
|
|
261
|
+
default: "Correct",
|
|
262
|
+
custom: "Correct"
|
|
263
|
+
},
|
|
264
|
+
incorrect: {
|
|
265
|
+
type: "default",
|
|
266
|
+
default: "Incorrect",
|
|
267
|
+
custom: "Incorrect"
|
|
268
|
+
},
|
|
269
|
+
partial: {
|
|
270
|
+
type: "default",
|
|
271
|
+
default: "Nearly",
|
|
272
|
+
custom: "Nearly"
|
|
273
|
+
},
|
|
274
|
+
unanswered: {
|
|
275
|
+
type: "default",
|
|
276
|
+
default: "You have not entered a response",
|
|
277
|
+
custom: "You have not entered a response"
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
function Xe(e) {
|
|
281
|
+
return e === "partially-correct" ? "partial" : e;
|
|
282
|
+
}
|
|
283
|
+
function Ze(e, t = {}) {
|
|
284
|
+
return new Promise((n) => {
|
|
285
|
+
let r = {
|
|
286
|
+
...V,
|
|
287
|
+
...t
|
|
288
|
+
}, i = Xe(e), a = r[i], o = V[i];
|
|
289
|
+
Qe(a, o[a.type]).then(n);
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
function Qe(e, t) {
|
|
293
|
+
return new Promise((n) => {
|
|
294
|
+
if (!e || e.type === "none") {
|
|
295
|
+
n(void 0);
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
n(e[e.type] || t);
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
//#endregion
|
|
302
|
+
//#region ../../shared/controller-utils/dist/index.js
|
|
303
|
+
var H = Object.defineProperty, U = /* @__PURE__ */ ((e, t) => {
|
|
304
|
+
let n = {};
|
|
305
|
+
for (var r in e) H(n, r, {
|
|
306
|
+
get: e[r],
|
|
307
|
+
enumerable: !0
|
|
308
|
+
});
|
|
309
|
+
return t || H(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
310
|
+
})({ enabled: () => $e });
|
|
311
|
+
function $e(e, t, n) {
|
|
312
|
+
return e?.partialScoring === !1 || t?.partialScoring === !1 ? !1 : typeof n == "boolean" ? n : !0;
|
|
313
|
+
}
|
|
314
|
+
//#endregion
|
|
315
|
+
//#region src/controller/defaults.ts
|
|
316
|
+
var W = {
|
|
317
|
+
correctResponse: [],
|
|
318
|
+
feedback: {
|
|
319
|
+
correct: {
|
|
320
|
+
default: "Correct",
|
|
321
|
+
type: "none"
|
|
322
|
+
},
|
|
323
|
+
incorrect: {
|
|
324
|
+
default: "Incorrect",
|
|
325
|
+
type: "none"
|
|
326
|
+
},
|
|
327
|
+
partial: {
|
|
328
|
+
default: "Nearly",
|
|
329
|
+
type: "none"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
graph: {
|
|
333
|
+
arrows: {
|
|
334
|
+
left: !0,
|
|
335
|
+
right: !0
|
|
336
|
+
},
|
|
337
|
+
availableTypes: { PF: !0 },
|
|
338
|
+
domain: {
|
|
339
|
+
min: -1,
|
|
340
|
+
max: 1
|
|
341
|
+
},
|
|
342
|
+
exhibitOnly: !1,
|
|
343
|
+
initialElements: [],
|
|
344
|
+
initialType: "PF",
|
|
345
|
+
maxNumberOfPoints: 1,
|
|
346
|
+
ticks: {
|
|
347
|
+
minor: .125,
|
|
348
|
+
major: .5,
|
|
349
|
+
tickIntervalType: "Decimal"
|
|
350
|
+
},
|
|
351
|
+
title: "",
|
|
352
|
+
width: 500
|
|
353
|
+
},
|
|
354
|
+
prompt: "",
|
|
355
|
+
promptEnabled: !0,
|
|
356
|
+
rationale: "",
|
|
357
|
+
rationaleEnabled: !0,
|
|
358
|
+
teacherInstructions: "",
|
|
359
|
+
teacherInstructionsEnabled: !0,
|
|
360
|
+
toolbarEditorPosition: "bottom",
|
|
361
|
+
widthEnabled: !0
|
|
362
|
+
}, et = [
|
|
363
|
+
.001,
|
|
364
|
+
.01,
|
|
365
|
+
.02,
|
|
366
|
+
.04,
|
|
367
|
+
.05,
|
|
368
|
+
.1,
|
|
369
|
+
.125,
|
|
370
|
+
.2,
|
|
371
|
+
.25,
|
|
372
|
+
.5
|
|
373
|
+
], tt = [
|
|
374
|
+
"1/1000",
|
|
375
|
+
"1/100",
|
|
376
|
+
"1/64",
|
|
377
|
+
"1/50",
|
|
378
|
+
"1/32",
|
|
379
|
+
"1/25",
|
|
380
|
+
"1/20",
|
|
381
|
+
"1/16",
|
|
382
|
+
"1/15",
|
|
383
|
+
"1/12",
|
|
384
|
+
"1/10",
|
|
385
|
+
"1/9",
|
|
386
|
+
"1/8",
|
|
387
|
+
"1/7",
|
|
388
|
+
"1/6",
|
|
389
|
+
"1/5",
|
|
390
|
+
"1/4",
|
|
391
|
+
"1/3",
|
|
392
|
+
"1/2"
|
|
393
|
+
], G = {
|
|
394
|
+
1: [
|
|
395
|
+
1,
|
|
396
|
+
2,
|
|
397
|
+
3,
|
|
398
|
+
4,
|
|
399
|
+
5,
|
|
400
|
+
6,
|
|
401
|
+
7,
|
|
402
|
+
8,
|
|
403
|
+
9,
|
|
404
|
+
10
|
|
405
|
+
],
|
|
406
|
+
2: [
|
|
407
|
+
1,
|
|
408
|
+
2,
|
|
409
|
+
4,
|
|
410
|
+
6,
|
|
411
|
+
8,
|
|
412
|
+
10
|
|
413
|
+
],
|
|
414
|
+
3: [
|
|
415
|
+
1,
|
|
416
|
+
3,
|
|
417
|
+
6,
|
|
418
|
+
9
|
|
419
|
+
],
|
|
420
|
+
4: [
|
|
421
|
+
1,
|
|
422
|
+
2,
|
|
423
|
+
4,
|
|
424
|
+
8
|
|
425
|
+
],
|
|
426
|
+
5: [
|
|
427
|
+
1,
|
|
428
|
+
5,
|
|
429
|
+
10
|
|
430
|
+
],
|
|
431
|
+
6: [
|
|
432
|
+
1,
|
|
433
|
+
2,
|
|
434
|
+
3,
|
|
435
|
+
6
|
|
436
|
+
],
|
|
437
|
+
7: [1, 7],
|
|
438
|
+
8: [
|
|
439
|
+
1,
|
|
440
|
+
2,
|
|
441
|
+
4,
|
|
442
|
+
8
|
|
443
|
+
],
|
|
444
|
+
9: [
|
|
445
|
+
1,
|
|
446
|
+
3,
|
|
447
|
+
9
|
|
448
|
+
],
|
|
449
|
+
10: [
|
|
450
|
+
1,
|
|
451
|
+
2,
|
|
452
|
+
5,
|
|
453
|
+
10
|
|
454
|
+
],
|
|
455
|
+
12: [
|
|
456
|
+
1,
|
|
457
|
+
2,
|
|
458
|
+
3,
|
|
459
|
+
4,
|
|
460
|
+
6
|
|
461
|
+
],
|
|
462
|
+
15: [
|
|
463
|
+
1,
|
|
464
|
+
3,
|
|
465
|
+
5
|
|
466
|
+
],
|
|
467
|
+
16: [
|
|
468
|
+
1,
|
|
469
|
+
2,
|
|
470
|
+
4,
|
|
471
|
+
8
|
|
472
|
+
],
|
|
473
|
+
20: [
|
|
474
|
+
1,
|
|
475
|
+
2,
|
|
476
|
+
4,
|
|
477
|
+
5,
|
|
478
|
+
10
|
|
479
|
+
],
|
|
480
|
+
25: [1, 5],
|
|
481
|
+
32: [
|
|
482
|
+
1,
|
|
483
|
+
2,
|
|
484
|
+
4,
|
|
485
|
+
8
|
|
486
|
+
],
|
|
487
|
+
50: [
|
|
488
|
+
1,
|
|
489
|
+
2,
|
|
490
|
+
5,
|
|
491
|
+
10
|
|
492
|
+
],
|
|
493
|
+
64: [
|
|
494
|
+
1,
|
|
495
|
+
2,
|
|
496
|
+
4,
|
|
497
|
+
8
|
|
498
|
+
],
|
|
499
|
+
100: [
|
|
500
|
+
1,
|
|
501
|
+
2,
|
|
502
|
+
4,
|
|
503
|
+
5,
|
|
504
|
+
10
|
|
505
|
+
],
|
|
506
|
+
1e3: [
|
|
507
|
+
1,
|
|
508
|
+
2,
|
|
509
|
+
4,
|
|
510
|
+
5,
|
|
511
|
+
8,
|
|
512
|
+
10
|
|
513
|
+
]
|
|
514
|
+
}, nt = (e, r, a) => {
|
|
515
|
+
if (!f(c(x(e), x(a)), 0)) throw Error("start point must be divisible by interval");
|
|
516
|
+
if (f(e, r)) return [];
|
|
517
|
+
let o = t(r, c(r, x(a))), s = i(a, 0) ? "positive" : "negative";
|
|
518
|
+
if (s === "negative" && n(r, e)) throw Error("start must be > than end when doing a negative decrement");
|
|
519
|
+
if (s === "positive" && w(r, e)) throw Error("start must be < end when doing increments");
|
|
520
|
+
let l = s === "positive" ? w : f(o, r) ? n : i, u = [], d = e;
|
|
521
|
+
for (; l(d, o);) u.push(d), d = O(d, a);
|
|
522
|
+
return u;
|
|
523
|
+
}, rt = (e, t) => `Can only do a positive or negative range, but got: start: ${e} and end:${t}`, K = (e, n, r) => {
|
|
524
|
+
if (e = p(e), n = p(n), r = p(r), i(x(t(n, e)), x(n))) throw Error(rt(e, n));
|
|
525
|
+
let a = {
|
|
526
|
+
start: x(e),
|
|
527
|
+
end: x(n),
|
|
528
|
+
interval: x(r),
|
|
529
|
+
multiplier: b(r, 0) ? -1 : 1
|
|
530
|
+
}, o = c(a.start, a.interval), s = nt(i(o, 0) ? O(t(a.start, o), a.interval) : a.start, a.end, a.interval), l = a.multiplier === -1 ? s.map((e) => E(e, -1)) : s;
|
|
531
|
+
return b(r, 0) && l.reverse(), l;
|
|
532
|
+
}, it = (e, t) => (e = p(e), t = p(t), b(e, t) ? e : t), at = (e, t) => (e = p(e), t = p(t), i(e, t) ? e : t), ot = (e, t, n) => {
|
|
533
|
+
e = p(e), t = p(t), n = p(n);
|
|
534
|
+
let r = i(t, 0) ? K(at(0, e), t, n) : [];
|
|
535
|
+
return ce((b(e, 0) ? K(it(0, t), e, E(n, -1)) : []).concat(r), f);
|
|
536
|
+
}, st = (e, t, n) => {
|
|
537
|
+
n ||= 2;
|
|
538
|
+
let r = 10 ** -n / 2;
|
|
539
|
+
return Math.abs(e - t) < r;
|
|
540
|
+
}, q = (e, t, n) => b(Y(e), Y(t)) ? t : i(Y(e), Y(n)) ? n : e, J = (e, t) => {
|
|
541
|
+
let n = C(E(10, m(p(e.max - e.min), t)));
|
|
542
|
+
return {
|
|
543
|
+
min: n,
|
|
544
|
+
max: C(E(20, n))
|
|
545
|
+
};
|
|
546
|
+
}, ct = (e, t) => f(c(e, t), 0), Y = (e) => {
|
|
547
|
+
if (a(e)) return p(e.n * e.s, e.d);
|
|
548
|
+
if (ae(e)) return p(e);
|
|
549
|
+
}, lt = (e, t, n, r) => {
|
|
550
|
+
let i = r ? r.limit !== !1 : !0, a = J(e, t), o = i ? q(Y(n.minor), a.min, a.max) : Y(n.minor), s = i ? q(Y(n.major), o, E(o, 20)) : Y(n.major);
|
|
551
|
+
if (!ct(s, o)) {
|
|
552
|
+
let e = m(s, o);
|
|
553
|
+
return {
|
|
554
|
+
minor: o,
|
|
555
|
+
major: E(o, e <= 2 ? 2 : Math.round(e))
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
return {
|
|
559
|
+
major: s,
|
|
560
|
+
minor: o
|
|
561
|
+
};
|
|
562
|
+
}, ut = (e, t, n, r) => (n = lt(e, t, n, r), ot(e.min, e.max, n.minor).filter((t) => w(t, p(e.max))).map((e) => {
|
|
563
|
+
let t = "minor";
|
|
564
|
+
return st(C(c(e, n.major)), 0) && (t = "major"), {
|
|
565
|
+
x: e,
|
|
566
|
+
type: t
|
|
567
|
+
};
|
|
568
|
+
})), X = (e) => {
|
|
569
|
+
let t = {
|
|
570
|
+
fraction: [],
|
|
571
|
+
decimal: []
|
|
572
|
+
};
|
|
573
|
+
return et.forEach((n) => {
|
|
574
|
+
n >= e.min && n <= e.max && t.decimal.push(n);
|
|
575
|
+
}), tt.forEach((n) => {
|
|
576
|
+
let r = C(p(n));
|
|
577
|
+
r >= e.min && r <= e.max && t.fraction.push(n);
|
|
578
|
+
}), t;
|
|
579
|
+
}, dt = (e, t, n) => {
|
|
580
|
+
let r = {
|
|
581
|
+
decimal: [],
|
|
582
|
+
fraction: []
|
|
583
|
+
}, i = p(C(C(e))), a = i.n, o = i.d;
|
|
584
|
+
if (a >= 1 && o === 1) for (let i = 1; i <= 10; i++) {
|
|
585
|
+
let o = C(E(a, i));
|
|
586
|
+
ft(t, n, {
|
|
587
|
+
minor: e,
|
|
588
|
+
major: o
|
|
589
|
+
}, { fraction: void 0 }).filter((e) => e.type === "major").length > 1 && (r.fraction.push(o.toString()), r.decimal.push(o));
|
|
590
|
+
}
|
|
591
|
+
else for (let i in G[o]) {
|
|
592
|
+
let s = E(p(a, o), G[o][i]);
|
|
593
|
+
ft(t, n, {
|
|
594
|
+
minor: e,
|
|
595
|
+
major: C(s)
|
|
596
|
+
}, { fraction: void 0 }).filter((e) => e.type === "major").length > 1 && (s.d === 1 ? r.fraction.push(s.n.toString()) : r.fraction.push(s.n + "/" + s.d), r.decimal.push(C(s)));
|
|
597
|
+
}
|
|
598
|
+
return r;
|
|
599
|
+
}, ft = (e, t, n, r) => ut(e, t, n, r).map((e) => r.fraction ? e : {
|
|
600
|
+
...e,
|
|
601
|
+
x: C(e.x) || 0
|
|
602
|
+
}), pt = (e) => {
|
|
603
|
+
let { domain: t, ticks: n, width: r } = e, i = dt(n.minor, t, r);
|
|
604
|
+
if (i.decimal.indexOf(n.major) === -1) {
|
|
605
|
+
let e = 0;
|
|
606
|
+
e = n.tickIntervalType === "Integer" && i.decimal.length > 4 ? 4 : i.decimal.length - 1, n.major = i.decimal[e];
|
|
607
|
+
}
|
|
608
|
+
return e.fraction = n.tickIntervalType === "Fraction" && n.major < 1, {
|
|
609
|
+
...e,
|
|
610
|
+
ticks: n
|
|
611
|
+
};
|
|
612
|
+
}, mt = (e) => {
|
|
613
|
+
let { domain: t, ticks: n = {}, width: r } = e;
|
|
614
|
+
n.tickIntervalType || (n.minor > .5 ? n.tickIntervalType = "Integer" : n.tickIntervalType = "Decimal");
|
|
615
|
+
let i = J(t, r);
|
|
616
|
+
if (i.min >= 1) n.tickIntervalType = "Integer", n.minor = n.minor < 1 ? C(o(i.min)) : n.minor >= C(o(i.min)) && n.minor <= C(g(i.max)) ? n.minor : C(o(i.min)), n.integerTick = n.minor, n.fractionTick = "0", n.decimalTick = 0;
|
|
617
|
+
else if (i.min >= 0 && i.max < 1) {
|
|
618
|
+
n.tickIntervalType === "Integer" && (n.tickIntervalType = "Fraction");
|
|
619
|
+
let e = X(i), t = C(p(e.fraction[0])), r = C(p(e.fraction[e.fraction.length - 1]));
|
|
620
|
+
if (n.minor < t || n.minor > r) switch (n.tickIntervalType) {
|
|
621
|
+
case "Fraction":
|
|
622
|
+
n.minor = C(p(e.fraction[e.fraction.length - 1])), n.fractionTick = e.fraction[e.fraction.length - 1], n.decimalTick = e.decimal[0];
|
|
623
|
+
break;
|
|
624
|
+
case "Decimal":
|
|
625
|
+
case "Integer": n.minor = e.decimal[e.decimal.length - 1], n.decimalTick = e.decimal[e.decimal.length - 1], n.fractionTick = e.fraction[0];
|
|
626
|
+
}
|
|
627
|
+
else switch (n.tickIntervalType) {
|
|
628
|
+
case "Fraction":
|
|
629
|
+
let t = p(C(n.minor));
|
|
630
|
+
n.fractionTick = t.n + "/" + t.d, n.decimalTick = n.decimalTick ? n.decimalTick : e.decimal[0];
|
|
631
|
+
break;
|
|
632
|
+
case "Decimal":
|
|
633
|
+
case "Integer": n.decimalTick = n.minor, n.fractionTick = n.fractionTick ? n.fractionTick : e.fraction[0];
|
|
634
|
+
}
|
|
635
|
+
n.integerTick = 1;
|
|
636
|
+
} else if (i.min < 1 && i.max >= 1) {
|
|
637
|
+
let e = X(i);
|
|
638
|
+
if (n.minor >= i.min && n.minor <= i.max) switch (n.tickIntervalType) {
|
|
639
|
+
case "Integer":
|
|
640
|
+
n.integerTick = n.minor, n.decimalTick = i.min > .5 ? 0 : e.decimal[0], n.fractionTick = i.min > .5 ? "0" : e.fraction[0];
|
|
641
|
+
break;
|
|
642
|
+
case "Decimal":
|
|
643
|
+
n.integerTick = 1, n.decimalTick = n.minor, n.fractionTick = e.fraction[0];
|
|
644
|
+
break;
|
|
645
|
+
case "Fraction":
|
|
646
|
+
n.integerTick = 1, n.decimalTick = e.decimal[0];
|
|
647
|
+
let t = p(C(n.minor));
|
|
648
|
+
n.fractionTick = t.n + "/" + t.d;
|
|
649
|
+
}
|
|
650
|
+
else switch (i.min > .5 && (n.tickIntervalType = "Integer"), n.tickIntervalType) {
|
|
651
|
+
case "Integer":
|
|
652
|
+
n.minor = C(o(i.min)), n.integerTick = n.minor, n.decimalTick = i.min > .5 ? 0 : e.decimal[0], n.fractionTick = i.min > .5 ? "0" : e.fraction[0];
|
|
653
|
+
break;
|
|
654
|
+
case "Decimal":
|
|
655
|
+
n.minor = e.decimal[0], n.integerTick = 1, n.decimalTick = n.minor, n.fractionTick = e.fraction[0];
|
|
656
|
+
break;
|
|
657
|
+
case "Fraction": n.minor = C(p(e.fraction[0])), n.integerTick = 1, n.decimalTick = e.decimal[0], n.fractionTick = e.fraction[0];
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
return pt({
|
|
661
|
+
...e,
|
|
662
|
+
ticks: n
|
|
663
|
+
});
|
|
664
|
+
}, Z = (e) => ({ score: { scaled: e } }), ht = (e, t) => {
|
|
665
|
+
let { correct: n } = e, r = t.find((e) => e.numberOfCorrect === n.length);
|
|
666
|
+
return r ? 1 * (r.scorePercentage / 100) : 0;
|
|
667
|
+
}, gt = (e) => (t, n) => t + +!!e.some((e) => St(e)(n)), _t = (e, t, n) => {
|
|
668
|
+
let r = [], i = t?.answer || [], a = e?.correctResponse || [];
|
|
669
|
+
if (!i.length) return ["Student did not interact with the number line."];
|
|
670
|
+
let { correct: o, incorrect: s, notInAnswer: c, noCorrectResponse: l } = Q(i, S(a));
|
|
671
|
+
if (l) return ["No correct response is defined for this item."];
|
|
672
|
+
let u = o.length, d = s.length, f = c.length;
|
|
673
|
+
u > 0 && r.push(`${u} object(s) correctly placed.`), d > 0 && r.push(`${d} incorrect object(s) placed.`), f > 0 && r.push(`${f} expected object(s) were not placed.`);
|
|
674
|
+
let p = [...i];
|
|
675
|
+
[...a], o.forEach((e) => {
|
|
676
|
+
let t = p[e], n = t?.type || "object";
|
|
677
|
+
r.push(`${n.charAt(0).toUpperCase() + n.slice(1)} at position ${t.domainPosition} is correct.`);
|
|
678
|
+
}), s.forEach((e) => {
|
|
679
|
+
let t = p[e], n = t?.type || "object";
|
|
680
|
+
r.push(`${n.charAt(0).toUpperCase() + n.slice(1)} at position ${t.domainPosition} does not match the expected response.`);
|
|
681
|
+
}), c.forEach((e) => {
|
|
682
|
+
let t = e?.type || "object";
|
|
683
|
+
r.push(`Expected ${t} at position ${e.domainPosition} was not placed by the student.`);
|
|
684
|
+
});
|
|
685
|
+
let m = U.enabled(e, n);
|
|
686
|
+
m ? (r.push("Score calculated using partial scoring."), r.push("Partial scoring is based on the number of correct objects, with deductions for extras.")) : r.push("Score calculated using all-or-nothing scoring.");
|
|
687
|
+
let h = a.length || 1, g = i.length > h ? i.length - h : 0;
|
|
688
|
+
g > 0 && r.push(`${g} extra object(s) beyond the required amount were placed and deducted.`);
|
|
689
|
+
let _ = Math.max(0, (u - g) / h), v = m ? _ : +(_ === 1);
|
|
690
|
+
return r.push(`Final score: ${v}.`), r;
|
|
691
|
+
};
|
|
692
|
+
function vt(e, t, n) {
|
|
693
|
+
return new Promise((r) => {
|
|
694
|
+
if (!t || j(t)) r({
|
|
695
|
+
score: 0,
|
|
696
|
+
empty: !0,
|
|
697
|
+
logTrace: ["Student did not interact with the number line."]
|
|
698
|
+
});
|
|
699
|
+
else {
|
|
700
|
+
let i = U.enabled(e, n), a = (t.answer || []).reduce(gt(e.correctResponse), 0), o = e.correctResponse.length, s = 0;
|
|
701
|
+
(t.answer || []).length > o && (s = (t.answer || []).length - o), o === 0 && (o = 1);
|
|
702
|
+
let c = a < 0 ? 0 : (a - s) / o;
|
|
703
|
+
c < 0 && (c = 0), r({
|
|
704
|
+
score: i ? c : +(c === 1),
|
|
705
|
+
logTrace: _t(e, t, n)
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
function yt(e, t) {
|
|
711
|
+
return new Promise((n) => {
|
|
712
|
+
if (!t || j(t)) n({ score: { scaled: 0 } });
|
|
713
|
+
else {
|
|
714
|
+
t.answer = t.answer || [];
|
|
715
|
+
let r = Q(t.answer, S(e.correctResponse)), i = $(r);
|
|
716
|
+
if (i === "correct") n(Z(1));
|
|
717
|
+
else if (i === "incorrect") n(Z(0));
|
|
718
|
+
else if (i === "partial") {
|
|
719
|
+
let { allowPartialScoring: t, partialScoring: i } = e, a = (i || []).filter((e) => !j(e));
|
|
720
|
+
t && a.length > 0 ? n(Z(ht(r, a))) : n(Z(0));
|
|
721
|
+
} else n({ score: { scaled: -1 } });
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
var bt = 3, xt = (e, t, n) => {
|
|
726
|
+
n ||= 5;
|
|
727
|
+
let r = 10 ** -n / 2;
|
|
728
|
+
return Math.abs(e - t) <= r;
|
|
729
|
+
}, St = (e) => (t) => We(e, t, (e, t) => {
|
|
730
|
+
if (typeof e == "number" && typeof t == "number") return xt(e, t, 3);
|
|
731
|
+
}), Q = (e, t) => j(t) && e.length > 0 ? {
|
|
732
|
+
correct: [],
|
|
733
|
+
incorrect: [],
|
|
734
|
+
notInAnswer: [],
|
|
735
|
+
noCorrectResponse: !0
|
|
736
|
+
} : e.reduce((e, t, n) => {
|
|
737
|
+
let { correct: r, incorrect: i, notInAnswer: a } = e, o = Ue(a, St(t));
|
|
738
|
+
return o ? (r.push(n), a.splice(a.indexOf(o), 1)) : i.push(n), {
|
|
739
|
+
correct: r,
|
|
740
|
+
incorrect: i,
|
|
741
|
+
notInAnswer: a
|
|
742
|
+
};
|
|
743
|
+
}, {
|
|
744
|
+
correct: [],
|
|
745
|
+
incorrect: [],
|
|
746
|
+
notInAnswer: t
|
|
747
|
+
}), $ = (e) => {
|
|
748
|
+
let { incorrect: t, correct: n, notInAnswer: r, noCorrectResponse: i } = e;
|
|
749
|
+
return i ? "unknown" : t.length === 0 && n.length === 0 ? "unanswered" : t.length === 0 && r.length === 0 ? "correct" : t.length > 0 || r.length > 0 ? n.length > 0 ? "partial" : "incorrect" : "unknown";
|
|
750
|
+
};
|
|
751
|
+
function Ct(e) {
|
|
752
|
+
let t = Ge(W.feedback, e.feedback);
|
|
753
|
+
return {
|
|
754
|
+
...W,
|
|
755
|
+
...e,
|
|
756
|
+
feedback: t
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
function wt(e = {}) {
|
|
760
|
+
return new Promise((t) => {
|
|
761
|
+
t(B({
|
|
762
|
+
...e,
|
|
763
|
+
graph: {
|
|
764
|
+
...W.graph,
|
|
765
|
+
...e.graph
|
|
766
|
+
},
|
|
767
|
+
colorContrast: "black_on_white"
|
|
768
|
+
}, (e) => !e));
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
var Tt = (e) => {
|
|
772
|
+
let { graph: { domain: t, labelStep: n, ticks: r = {} } = {} } = e, { minor: i, major: a } = r;
|
|
773
|
+
if (t && (t.min = Number((t.min || 0).toFixed(2)), t.max = Number((t.max || 0).toFixed(2))), n && typeof n == "string" && n.match(/^[1-9][0-9]*\/[1-9][0-9]*$/g)) {
|
|
774
|
+
e.graph.fraction = !0, r.tickIntervalType = "Fraction";
|
|
775
|
+
let t = be(n);
|
|
776
|
+
t !== a && (r.major = t, r.minor = t / (a / i));
|
|
777
|
+
}
|
|
778
|
+
return e;
|
|
779
|
+
};
|
|
780
|
+
async function Et(e, t, n) {
|
|
781
|
+
if (!e) throw Error("question is null");
|
|
782
|
+
let r = await Ct(e), i = mt(Tt(r).graph);
|
|
783
|
+
if (i) {
|
|
784
|
+
let e = n.mode === "evaluate", a = S(r.correctResponse), o = e && Q(t && t.answer || [], a), s = e && $(o), { exhibitOnly: c } = i, l = n.mode !== "gather" || c === !0, u = null;
|
|
785
|
+
n.role === "instructor" && (n.mode === "view" || e) && (u = r.teacherInstructions);
|
|
786
|
+
let d = e ? await Ze(s, r.feedback) : void 0;
|
|
787
|
+
return B({
|
|
788
|
+
prompt: r.prompt,
|
|
789
|
+
teacherInstructions: u,
|
|
790
|
+
graph: i,
|
|
791
|
+
disabled: l,
|
|
792
|
+
corrected: o,
|
|
793
|
+
correctResponse: e && ["unanswered", "correct"].indexOf(s) === -1 && r.correctResponse,
|
|
794
|
+
feedback: d && {
|
|
795
|
+
type: s,
|
|
796
|
+
message: d
|
|
797
|
+
},
|
|
798
|
+
colorContrast: n.accessibility && n.accessibility.colorContrast || "black_on_white",
|
|
799
|
+
language: r.language,
|
|
800
|
+
extraCSSRules: r.extraCSSRules
|
|
801
|
+
}, (e) => !e);
|
|
802
|
+
} else throw Error("graph is undefined");
|
|
803
|
+
}
|
|
804
|
+
var Dt = (e, t) => new Promise((n) => {
|
|
805
|
+
if (t.mode !== "evaluate" && t.role === "instructor") {
|
|
806
|
+
let { correctResponse: t } = e;
|
|
807
|
+
n({
|
|
808
|
+
answer: t,
|
|
809
|
+
id: "1"
|
|
810
|
+
});
|
|
811
|
+
} else n(null);
|
|
812
|
+
}), Ot = (e) => (e || "").replace(/(<(?!img|iframe|source)([^>]+)>)/gi, ""), kt = (e = {}, t = {}) => {
|
|
813
|
+
let { graph: n, correctResponse: r } = e || {}, { maxMaxElements: i = 20, numberLineDimensions: { min: a = 200, max: o = 800 } = {} } = t || {}, { width: s, domain: c, maxNumberOfPoints: l } = n || {}, { min: u, max: d } = c || {}, f = {};
|
|
814
|
+
["teacherInstructions", "prompt"].forEach((n) => {
|
|
815
|
+
t[n]?.required && !Ot(e[n]) && (f[n] = "This field is required.");
|
|
816
|
+
}), (s < a || s > o) && (f.widthError = `Width should be a value between ${a} and ${o}.`);
|
|
817
|
+
let p = -1e5, m = 1e5;
|
|
818
|
+
return (u < p || u > m || d < p || d > m) && (f.domainError = `Min and max values must both be in the range [${p}, ${m}].`), u >= d && (f.maxError = "Max value must be greater than min value."), (l < 1 || l > i) && (f.pointsError = `Max number of elements should be between 1 and ${i}.`), r && r.length === 0 && (f.correctResponseError = "The correct answer should include at least one number line object."), f;
|
|
819
|
+
};
|
|
820
|
+
//#endregion
|
|
821
|
+
export { bt as CLOSE_TO_PRECISION, xt as closeTo, Dt as createCorrectResponseSession, wt as createDefaultModel, Q as getCorrected, $ as getCorrectness, _t as getLogTrace, yt as getScore, Et as model, Ct as normalize, vt as outcome, kt as validate };
|
|
822
|
+
|
|
823
|
+
//# sourceMappingURL=index.js.map
|