@pie-element/number-line 13.1.2-next.0 → 13.1.2-next.1

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.
Files changed (226) hide show
  1. package/dist/author/index.js +19 -19
  2. package/dist/author/main.js +152 -152
  3. package/dist/browser/author/index.js +7079 -7256
  4. package/dist/browser/author/index.js.map +1 -1
  5. package/dist/browser/controller/index.js +165 -419
  6. package/dist/browser/controller/index.js.map +1 -1
  7. package/dist/browser/delivery/index.js +2 -2
  8. package/dist/browser/{delivery-Dh8QdqpO.js → delivery-Ci_kZyOM.js} +2178 -2225
  9. package/dist/browser/delivery-Ci_kZyOM.js.map +1 -0
  10. package/dist/browser/dist-D5T-OaLo.js +19038 -0
  11. package/dist/browser/dist-D5T-OaLo.js.map +1 -0
  12. package/dist/browser/impureFunctionsAny.generated-Bqfato71.js +10162 -0
  13. package/dist/browser/impureFunctionsAny.generated-Bqfato71.js.map +1 -0
  14. package/dist/controller/index.d.ts +15 -1
  15. package/dist/controller/index.js +60 -65
  16. package/dist/controller/tickUtils.d.ts +3 -2
  17. package/dist/controller/tickUtils.js +64 -66
  18. package/dist/delivery/index.js +9 -9
  19. package/dist/delivery/number-line/graph/elements/line.js +56 -57
  20. package/dist/delivery/number-line/graph/elements/ray.js +54 -54
  21. package/dist/delivery/number-line/graph/index.d.ts +2 -2
  22. package/dist/delivery/number-line/graph/tick-utils.d.ts +16 -9
  23. package/dist/delivery/number-line/graph/tick-utils.js +73 -75
  24. package/dist/delivery/number-line/index.d.ts +1 -1
  25. package/dist/delivery/number-line/index.js +55 -58
  26. package/dist/index.iife.js +59 -63
  27. package/dist/runtime-support.d.ts +12 -0
  28. package/dist/runtime-support.js +12 -0
  29. package/package.json +14 -10
  30. package/dist/browser/_baseSet-ycZx94p7.js +0 -8672
  31. package/dist/browser/_baseSet-ycZx94p7.js.map +0 -1
  32. package/dist/browser/delivery-Dh8QdqpO.js.map +0 -1
  33. package/dist/browser/uniqWith-CKN50xMI.js +0 -17886
  34. package/dist/browser/uniqWith-CKN50xMI.js.map +0 -1
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +0 -7
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +0 -7
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +0 -7
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignMergeValue.js +0 -8
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +0 -7
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +0 -5
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +0 -10
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +0 -6
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +0 -9
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js +0 -26
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +0 -6
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js +0 -11
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +0 -12
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js +0 -19
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js +0 -31
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +0 -13
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +0 -8
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +0 -9
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +0 -22
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +0 -15
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +0 -8
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +0 -27
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +0 -10
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js +0 -15
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +0 -12
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js +0 -19
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +0 -9
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +0 -35
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js +0 -16
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +0 -18
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +0 -12
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +0 -11
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js +0 -7
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +0 -9
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js +0 -8
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +0 -11
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_safeGet.js +0 -6
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +0 -7
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js +0 -7
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +0 -10
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +0 -8
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js +0 -6
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js +0 -13
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +0 -8
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +0 -8
  191. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
  192. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  193. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  194. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  195. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +0 -8
  196. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  197. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  198. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
  199. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqualWith.js +0 -9
  200. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  201. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  202. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
  203. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isNumber.js +0 -9
  204. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  205. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  206. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.js +0 -14
  207. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
  208. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
  209. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  210. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
  211. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  212. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +0 -16
  213. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/merge.js +0 -8
  214. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/negate.js +0 -17
  215. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +0 -4
  216. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/omitBy.js +0 -9
  217. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pickBy.js +0 -16
  218. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +0 -10
  219. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
  220. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  221. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js +0 -8
  222. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js +0 -8
  223. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +0 -19
  224. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js +0 -8
  225. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +0 -7
  226. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js +0 -7
@@ -28,6 +28,20 @@ export declare const getCorrectness: (corrected: any) => "unknown" | "unanswered
28
28
  */
29
29
  export declare function normalize(question: any): any;
30
30
  export declare function createDefaultModel(model?: {}): Promise<unknown>;
31
- export declare function model(question: any, session: any, env: any): Promise<any>;
31
+ export declare function model(question: any, session: any, env: any): Promise<Partial<{
32
+ prompt: any;
33
+ teacherInstructions: any;
34
+ graph: any;
35
+ disabled: boolean;
36
+ corrected: any;
37
+ correctResponse: any;
38
+ feedback: "" | {
39
+ type: string | false;
40
+ message: string;
41
+ } | undefined;
42
+ colorContrast: any;
43
+ language: any;
44
+ extraCSSRules: any;
45
+ }>>;
32
46
  export declare const createCorrectResponseSession: (question: any, env: any) => Promise<unknown>;
33
47
  export declare const validate: (model?: {}, config?: {}) => {};
@@ -1,22 +1,17 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js";
2
- import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js";
3
- import n from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js";
4
- import r from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqualWith.js";
5
- import i from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/merge.js";
6
- import a from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/omitBy.js";
7
- import o from "./defaults.js";
8
- import { reloadTicksData as s } from "./utils.js";
9
- import * as c from "mathjs";
1
+ import e from "./defaults.js";
2
+ import { reloadTicksData as t } from "./utils.js";
3
+ import * as n from "mathjs";
4
+ import { cloneDeep as r, find as i, isEmpty as a, isEqualWith as o, merge as s, omitBy as c } from "@pie-element/shared-lodash";
10
5
  import { getFeedbackForCorrectness as l } from "@pie-element/shared-feedback";
11
6
  import { partialScoring as u } from "@pie-element/shared-controller-utils";
12
7
  //#region src/controller/index.ts
13
8
  var d = (e) => ({ score: { scaled: e } }), f = (e, t) => {
14
9
  let { correct: n } = e, r = t.find((e) => e.numberOfCorrect === n.length);
15
10
  return r ? 1 * (r.scorePercentage / 100) : 0;
16
- }, p = (e) => (t, n) => t + +!!e.some((e) => y(e)(n)), m = (t, n, r) => {
17
- let i = [], a = n?.answer || [], o = t?.correctResponse || [];
11
+ }, p = (e) => (t, n) => t + +!!e.some((e) => y(e)(n)), m = (e, t, n) => {
12
+ let i = [], a = t?.answer || [], o = e?.correctResponse || [];
18
13
  if (!a.length) return ["Student did not interact with the number line."];
19
- let { correct: s, incorrect: c, notInAnswer: l, noCorrectResponse: d } = b(a, e(o));
14
+ let { correct: s, incorrect: c, notInAnswer: l, noCorrectResponse: d } = b(a, r(o));
20
15
  if (d) return ["No correct response is defined for this item."];
21
16
  let f = s.length, p = c.length, m = l.length;
22
17
  f > 0 && i.push(`${f} object(s) correctly placed.`), p > 0 && i.push(`${p} incorrect object(s) placed.`), m > 0 && i.push(`${m} expected object(s) were not placed.`);
@@ -31,43 +26,43 @@ var d = (e) => ({ score: { scaled: e } }), f = (e, t) => {
31
26
  let t = e?.type || "object";
32
27
  i.push(`Expected ${t} at position ${e.domainPosition} was not placed by the student.`);
33
28
  });
34
- let g = u.enabled(t, r);
29
+ let g = u.enabled(e, n);
35
30
  g ? (i.push("Score calculated using partial scoring."), i.push("Partial scoring is based on the number of correct objects, with deductions for extras.")) : i.push("Score calculated using all-or-nothing scoring.");
36
31
  let _ = o.length || 1, v = a.length > _ ? a.length - _ : 0;
37
32
  v > 0 && i.push(`${v} extra object(s) beyond the required amount were placed and deducted.`);
38
33
  let y = Math.max(0, (f - v) / _), x = g ? y : +(y === 1);
39
34
  return i.push(`Final score: ${x}.`), i;
40
35
  };
41
- function h(e, t, r) {
42
- return new Promise((i) => {
43
- if (!t || n(t)) i({
36
+ function h(e, t, n) {
37
+ return new Promise((r) => {
38
+ if (!t || a(t)) r({
44
39
  score: 0,
45
40
  empty: !0,
46
41
  logTrace: ["Student did not interact with the number line."]
47
42
  });
48
43
  else {
49
- let n = u.enabled(e, r), a = (t.answer || []).reduce(p(e.correctResponse), 0), o = e.correctResponse.length, s = 0;
44
+ let i = u.enabled(e, n), a = (t.answer || []).reduce(p(e.correctResponse), 0), o = e.correctResponse.length, s = 0;
50
45
  (t.answer || []).length > o && (s = (t.answer || []).length - o), o === 0 && (o = 1);
51
46
  let c = a < 0 ? 0 : (a - s) / o;
52
- c < 0 && (c = 0), i({
53
- score: n ? c : +(c === 1),
54
- logTrace: m(e, t, r)
47
+ c < 0 && (c = 0), r({
48
+ score: i ? c : +(c === 1),
49
+ logTrace: m(e, t, n)
55
50
  });
56
51
  }
57
52
  });
58
53
  }
59
- function g(t, r) {
60
- return new Promise((i) => {
61
- if (!r || n(r)) i({ score: { scaled: 0 } });
54
+ function g(e, t) {
55
+ return new Promise((n) => {
56
+ if (!t || a(t)) n({ score: { scaled: 0 } });
62
57
  else {
63
- r.answer = r.answer || [];
64
- let a = b(r.answer, e(t.correctResponse)), o = x(a);
65
- if (o === "correct") i(d(1));
66
- else if (o === "incorrect") i(d(0));
58
+ t.answer = t.answer || [];
59
+ let i = b(t.answer, r(e.correctResponse)), o = x(i);
60
+ if (o === "correct") n(d(1));
61
+ else if (o === "incorrect") n(d(0));
67
62
  else if (o === "partial") {
68
- let { allowPartialScoring: e, partialScoring: r } = t, o = (r || []).filter((e) => !n(e));
69
- e && o.length > 0 ? i(d(f(a, o))) : i(d(0));
70
- } else i({ score: { scaled: -1 } });
63
+ let { allowPartialScoring: t, partialScoring: r } = e, o = (r || []).filter((e) => !a(e));
64
+ t && o.length > 0 ? n(d(f(i, o))) : n(d(0));
65
+ } else n({ score: { scaled: -1 } });
71
66
  }
72
67
  });
73
68
  }
@@ -75,78 +70,78 @@ var _ = 3, v = (e, t, n) => {
75
70
  n ||= 5;
76
71
  let r = 10 ** -n / 2;
77
72
  return Math.abs(e - t) <= r;
78
- }, y = (e) => (t) => r(e, t, (e, t) => {
73
+ }, y = (e) => (t) => o(e, t, (e, t) => {
79
74
  if (typeof e == "number" && typeof t == "number") return v(e, t, 3);
80
- }), b = (e, r) => n(r) && e.length > 0 ? {
75
+ }), b = (e, t) => a(t) && e.length > 0 ? {
81
76
  correct: [],
82
77
  incorrect: [],
83
78
  notInAnswer: [],
84
79
  noCorrectResponse: !0
85
- } : e.reduce((e, n, r) => {
86
- let { correct: i, incorrect: a, notInAnswer: o } = e, s = t(o, y(n));
87
- return s ? (i.push(r), o.splice(o.indexOf(s), 1)) : a.push(r), {
88
- correct: i,
80
+ } : e.reduce((e, t, n) => {
81
+ let { correct: r, incorrect: a, notInAnswer: o } = e, s = i(o, y(t));
82
+ return s ? (r.push(n), o.splice(o.indexOf(s), 1)) : a.push(n), {
83
+ correct: r,
89
84
  incorrect: a,
90
85
  notInAnswer: o
91
86
  };
92
87
  }, {
93
88
  correct: [],
94
89
  incorrect: [],
95
- notInAnswer: r
90
+ notInAnswer: t
96
91
  }), x = (e) => {
97
92
  let { incorrect: t, correct: n, notInAnswer: r, noCorrectResponse: i } = e;
98
93
  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";
99
94
  };
100
- function S(e) {
101
- let t = i(o.feedback, e.feedback);
95
+ function S(t) {
96
+ let n = s(e.feedback, t.feedback);
102
97
  return {
103
- ...o,
104
98
  ...e,
105
- feedback: t
99
+ ...t,
100
+ feedback: n
106
101
  };
107
102
  }
108
- function C(e = {}) {
109
- return new Promise((t) => {
110
- t(a({
111
- ...e,
103
+ function C(t = {}) {
104
+ return new Promise((n) => {
105
+ n(c({
106
+ ...t,
112
107
  graph: {
113
- ...o.graph,
114
- ...e.graph
108
+ ...e.graph,
109
+ ...t.graph
115
110
  },
116
111
  colorContrast: "black_on_white"
117
112
  }, (e) => !e));
118
113
  });
119
114
  }
120
115
  var w = (e) => {
121
- let { graph: { domain: t, labelStep: n, ticks: r = {} } = {} } = e, { minor: i, major: a } = r;
122
- 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)) {
123
- e.graph.fraction = !0, r.tickIntervalType = "Fraction";
124
- let t = c.evaluate(n);
125
- t !== a && (r.major = t, r.minor = t / (a / i));
116
+ let { graph: { domain: t, labelStep: r, ticks: i = {} } = {} } = e, { minor: a, major: o } = i;
117
+ if (t && (t.min = Number((t.min || 0).toFixed(2)), t.max = Number((t.max || 0).toFixed(2))), r && typeof r == "string" && r.match(/^[1-9][0-9]*\/[1-9][0-9]*$/g)) {
118
+ e.graph.fraction = !0, i.tickIntervalType = "Fraction";
119
+ let t = n.evaluate(r);
120
+ t !== o && (i.major = t, i.minor = t / (o / a));
126
121
  }
127
122
  return e;
128
123
  };
129
- async function T(t, n, r) {
130
- if (!t) throw Error("question is null");
131
- let i = await S(t), o = s(w(i).graph);
124
+ async function T(e, n, i) {
125
+ if (!e) throw Error("question is null");
126
+ let a = await S(e), o = t(w(a).graph);
132
127
  if (o) {
133
- let t = r.mode === "evaluate", s = e(i.correctResponse), c = t && b(n && n.answer || [], s), u = t && x(c), { exhibitOnly: d } = o, f = r.mode !== "gather" || d === !0, p = null;
134
- r.role === "instructor" && (r.mode === "view" || t) && (p = i.teacherInstructions);
135
- let m = t ? await l(u, i.feedback) : void 0;
136
- return a({
137
- prompt: i.prompt,
128
+ let e = i.mode === "evaluate", t = r(a.correctResponse), s = e && b(n && n.answer || [], t), u = e && x(s), { exhibitOnly: d } = o, f = i.mode !== "gather" || d === !0, p = null;
129
+ i.role === "instructor" && (i.mode === "view" || e) && (p = a.teacherInstructions);
130
+ let m = e ? await l(u, a.feedback) : void 0;
131
+ return c({
132
+ prompt: a.prompt,
138
133
  teacherInstructions: p,
139
134
  graph: o,
140
135
  disabled: f,
141
- corrected: c,
142
- correctResponse: t && ["unanswered", "correct"].indexOf(u) === -1 && i.correctResponse,
136
+ corrected: s,
137
+ correctResponse: e && ["unanswered", "correct"].indexOf(u) === -1 && a.correctResponse,
143
138
  feedback: m && {
144
139
  type: u,
145
140
  message: m
146
141
  },
147
- colorContrast: r.accessibility && r.accessibility.colorContrast || "black_on_white",
148
- language: i.language,
149
- extraCSSRules: i.extraCSSRules
142
+ colorContrast: i.accessibility && i.accessibility.colorContrast || "black_on_white",
143
+ language: a.language,
144
+ extraCSSRules: a.extraCSSRules
150
145
  }, (e) => !e);
151
146
  } else throw Error("graph is undefined");
152
147
  }
@@ -6,9 +6,10 @@
6
6
  * Manual edits will be overwritten on next sync.
7
7
  * To make changes, edit the upstream JavaScript file and run sync again.
8
8
  */
9
+ import * as math from 'mathjs';
9
10
  export declare const getMinorLimits: (domain: any, width: any) => {
10
- min: any;
11
- max: any;
11
+ min: number & (number | math.MathCollection<math.MathNumericType>);
12
+ max: number;
12
13
  };
13
14
  export declare const generateMinorValues: (minorLimits: any) => {
14
15
  fraction: never[];
@@ -1,7 +1,5 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js";
2
- import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isNumber.js";
3
- import n from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js";
4
- import * as r from "mathjs";
1
+ import * as e from "mathjs";
2
+ import { isNumber as t, isObject as n, uniqWith as r } from "@pie-element/shared-lodash";
5
3
  //#region src/controller/tickUtils.ts
6
4
  var i = [
7
5
  .001,
@@ -155,100 +153,100 @@ var i = [
155
153
  8,
156
154
  10
157
155
  ]
158
- }, s = (e, t, n) => {
159
- let i = r.mod(r.abs(e), r.abs(n));
160
- if (!r.equal(i, 0)) throw Error("start point must be divisible by interval");
161
- if (r.equal(e, t)) return [];
162
- let a = r.subtract(t, r.mod(t, r.abs(n))), o = r.larger(n, 0) ? "positive" : "negative";
163
- if (o === "negative" && r.largerEq(t, e)) throw Error("start must be > than end when doing a negative decrement");
164
- if (o === "positive" && r.smallerEq(t, e)) throw Error("start must be < end when doing increments");
165
- let s = o === "positive" ? r.smallerEq : r.equal(a, t) ? r.largerEq : r.larger, c = [], l = e;
166
- for (; s(l, a);) c.push(l), l = r.add(l, n);
156
+ }, s = (t, n, r) => {
157
+ let i = e.mod(e.abs(t), e.abs(r));
158
+ if (!e.equal(i, 0)) throw Error("start point must be divisible by interval");
159
+ if (e.equal(t, n)) return [];
160
+ let a = e.subtract(n, e.mod(n, e.abs(r))), o = e.larger(r, 0) ? "positive" : "negative";
161
+ if (o === "negative" && e.largerEq(n, t)) throw Error("start must be > than end when doing a negative decrement");
162
+ if (o === "positive" && e.smallerEq(n, t)) throw Error("start must be < end when doing increments");
163
+ let s = o === "positive" ? e.smallerEq : e.equal(a, n) ? e.largerEq : e.larger, c = [], l = t;
164
+ for (; s(l, a);) c.push(l), l = e.add(l, r);
167
165
  return c;
168
- }, c = (e, t) => `Can only do a positive or negative range, but got: start: ${e} and end:${t}`, l = (e, t, n) => {
169
- e = r.fraction(e), t = r.fraction(t), n = r.fraction(n);
170
- let i = r.abs(r.subtract(t, e));
171
- if (r.larger(i, r.abs(t))) throw Error(c(e, t));
166
+ }, c = (e, t) => `Can only do a positive or negative range, but got: start: ${e} and end:${t}`, l = (t, n, r) => {
167
+ t = e.fraction(t), n = e.fraction(n), r = e.fraction(r);
168
+ let i = e.abs(e.subtract(n, t));
169
+ if (e.larger(i, e.abs(n))) throw Error(c(t, n));
172
170
  let a = {
173
- start: r.abs(e),
174
- end: r.abs(t),
175
- interval: r.abs(n),
176
- multiplier: r.smaller(n, 0) ? -1 : 1
177
- }, o = r.mod(a.start, a.interval), l = s(r.larger(o, 0) ? r.add(r.subtract(a.start, o), a.interval) : a.start, a.end, a.interval), u = a.multiplier === -1 ? l.map((e) => r.multiply(e, -1)) : l;
178
- return r.smaller(n, 0) && u.reverse(), u;
179
- }, u = (e, t) => (e = r.fraction(e), t = r.fraction(t), r.smaller(e, t) ? e : t), d = (e, t) => (e = r.fraction(e), t = r.fraction(t), r.larger(e, t) ? e : t), f = (e, t, i) => {
180
- e = r.fraction(e), t = r.fraction(t), i = r.fraction(i);
181
- let a = r.larger(t, 0) ? l(d(0, e), t, i) : [];
182
- return n((r.smaller(e, 0) ? l(u(0, t), e, r.multiply(i, -1)) : []).concat(a), r.equal);
171
+ start: e.abs(t),
172
+ end: e.abs(n),
173
+ interval: e.abs(r),
174
+ multiplier: e.smaller(r, 0) ? -1 : 1
175
+ }, o = e.mod(a.start, a.interval), l = s(e.larger(o, 0) ? e.add(e.subtract(a.start, o), a.interval) : a.start, a.end, a.interval), u = a.multiplier === -1 ? l.map((t) => e.multiply(t, -1)) : l;
176
+ return e.smaller(r, 0) && u.reverse(), u;
177
+ }, u = (t, n) => (t = e.fraction(t), n = e.fraction(n), e.smaller(t, n) ? t : n), d = (t, n) => (t = e.fraction(t), n = e.fraction(n), e.larger(t, n) ? t : n), f = (t, n, i) => {
178
+ t = e.fraction(t), n = e.fraction(n), i = e.fraction(i);
179
+ let a = e.larger(n, 0) ? l(d(0, t), n, i) : [];
180
+ return r((e.smaller(t, 0) ? l(u(0, n), t, e.multiply(i, -1)) : []).concat(a), e.equal);
183
181
  }, p = (e, t, n) => {
184
182
  n ||= 2;
185
183
  let r = 10 ** -n / 2;
186
184
  return Math.abs(e - t) < r;
187
- }, m = (e, t, n) => r.smaller(_(e), _(t)) ? t : r.larger(_(e), _(n)) ? n : e, h = (e, t) => {
188
- let n = e.max - e.min, i = r.number(r.multiply(10, r.divide(r.fraction(n), t)));
185
+ }, m = (t, n, r) => e.smaller(_(t), _(n)) ? n : e.larger(_(t), _(r)) ? r : t, h = (t, n) => {
186
+ let r = t.max - t.min, i = e.number(e.multiply(10, e.divide(e.fraction(r), n)));
189
187
  return {
190
188
  min: i,
191
- max: r.number(r.multiply(20, i))
189
+ max: e.number(e.multiply(20, i))
192
190
  };
193
- }, g = (e, t) => {
194
- let n = r.mod(e, t);
195
- return r.equal(n, 0);
196
- }, _ = (n) => {
197
- if (e(n)) return r.fraction(n.n * n.s, n.d);
198
- if (t(n)) return r.fraction(n);
199
- }, v = (e, t, n, i) => {
200
- let a = i ? i.limit !== !1 : !0, o = h(e, t), s = a ? m(_(n.minor), o.min, o.max) : _(n.minor), c = a ? m(_(n.major), s, r.multiply(s, 20)) : _(n.major);
191
+ }, g = (t, n) => {
192
+ let r = e.mod(t, n);
193
+ return e.equal(r, 0);
194
+ }, _ = (r) => {
195
+ if (n(r)) return e.fraction(r.n * r.s, r.d);
196
+ if (t(r)) return e.fraction(r);
197
+ }, v = (t, n, r, i) => {
198
+ let a = i ? i.limit !== !1 : !0, o = h(t, n), s = a ? m(_(r.minor), o.min, o.max) : _(r.minor), c = a ? m(_(r.major), s, e.multiply(s, 20)) : _(r.major);
201
199
  if (!g(c, s)) {
202
- let e = r.divide(c, s), t = e <= 2 ? 2 : Math.round(e);
200
+ let t = e.divide(c, s), n = t <= 2 ? 2 : Math.round(t);
203
201
  return {
204
202
  minor: s,
205
- major: r.multiply(s, t)
203
+ major: e.multiply(s, n)
206
204
  };
207
205
  }
208
206
  return {
209
207
  major: c,
210
208
  minor: s
211
209
  };
212
- }, y = (e, t, n, i) => (n = v(e, t, n, i), f(e.min, e.max, n.minor).filter((t) => r.smallerEq(t, r.fraction(e.max))).map((e) => {
213
- let t = "minor", i = r.mod(e, n.major);
214
- return p(r.number(i), 0) && (t = "major"), {
215
- x: e,
216
- type: t
210
+ }, y = (t, n, r, i) => (r = v(t, n, r, i), f(t.min, t.max, r.minor).filter((n) => e.smallerEq(n, e.fraction(t.max))).map((t) => {
211
+ let n = "minor", i = e.mod(t, r.major);
212
+ return p(e.number(i), 0) && (n = "major"), {
213
+ x: t,
214
+ type: n
217
215
  };
218
- })), b = (e) => {
219
- let t = {
216
+ })), b = (t) => {
217
+ let n = {
220
218
  fraction: [],
221
219
  decimal: []
222
220
  };
223
- return i.forEach((n) => {
224
- n >= e.min && n <= e.max && t.decimal.push(n);
225
- }), a.forEach((n) => {
226
- let i = r.number(r.fraction(n));
227
- i >= e.min && i <= e.max && t.fraction.push(n);
228
- }), t;
229
- }, x = (e, t, n) => {
221
+ return i.forEach((e) => {
222
+ e >= t.min && e <= t.max && n.decimal.push(e);
223
+ }), a.forEach((r) => {
224
+ let i = e.number(e.fraction(r));
225
+ i >= t.min && i <= t.max && n.fraction.push(r);
226
+ }), n;
227
+ }, x = (t, n, r) => {
230
228
  let i = {
231
229
  decimal: [],
232
230
  fraction: []
233
- }, a = r.fraction(r.number(r.number(e))), s = a.n, c = a.d;
231
+ }, a = e.fraction(e.number(e.number(t))), s = a.n, c = a.d;
234
232
  if (s >= 1 && c === 1) for (let a = 1; a <= 10; a++) {
235
- let o = r.number(r.multiply(s, a));
236
- S(t, n, {
237
- minor: e,
233
+ let o = e.number(e.multiply(s, a));
234
+ S(n, r, {
235
+ minor: t,
238
236
  major: o
239
237
  }, { fraction: void 0 }).filter((e) => e.type === "major").length > 1 && (i.fraction.push(o.toString()), i.decimal.push(o));
240
238
  }
241
239
  else for (let a in o[c]) {
242
- let l = r.multiply(r.fraction(s, c), o[c][a]);
243
- S(t, n, {
244
- minor: e,
245
- major: r.number(l)
246
- }, { fraction: void 0 }).filter((e) => e.type === "major").length > 1 && (l.d === 1 ? i.fraction.push(l.n.toString()) : i.fraction.push(l.n + "/" + l.d), i.decimal.push(r.number(l)));
240
+ let l = e.multiply(e.fraction(s, c), o[c][a]);
241
+ S(n, r, {
242
+ minor: t,
243
+ major: e.number(l)
244
+ }, { fraction: void 0 }).filter((e) => e.type === "major").length > 1 && (l.d === 1 ? i.fraction.push(l.n.toString()) : i.fraction.push(l.n + "/" + l.d), i.decimal.push(e.number(l)));
247
245
  }
248
246
  return i;
249
- }, S = (e, t, n, i) => y(e, t, n, i).map((e) => i.fraction ? e : {
250
- ...e,
251
- x: r.number(e.x) || 0
247
+ }, S = (t, n, r, i) => y(t, n, r, i).map((t) => i.fraction ? t : {
248
+ ...t,
249
+ x: e.number(t.x) || 0
252
250
  });
253
251
  //#endregion
254
252
  export { x as generateMajorValuesForMinor, b as generateMinorValues, h as getMinorLimits };
@@ -1,10 +1,10 @@
1
1
  import { data_converter_exports as e, lineIsSwitched as t, switchGraphLine as n, toGraphFormat as r, toSessionFormat as i } from "./data-converter.js";
2
2
  import { point_chooser_exports as a } from "./number-line/point-chooser/index.js";
3
- import o from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js";
4
- import { tick_utils_exports as s } from "./number-line/graph/tick-utils.js";
5
- import c from "./number-line/graph/index.js";
6
- import l from "./number-line/index.js";
7
- import u from "react";
3
+ import { tick_utils_exports as o } from "./number-line/graph/tick-utils.js";
4
+ import s from "./number-line/graph/index.js";
5
+ import c from "./number-line/index.js";
6
+ import l from "react";
7
+ import { cloneDeep as u } from "@pie-element/shared-lodash";
8
8
  import { createRoot as d } from "react-dom/client";
9
9
  import { renderMath as f } from "@pie-element/shared-math-rendering-mathjax";
10
10
  //#region src/delivery/index.ts
@@ -82,12 +82,12 @@ var p = class extends HTMLElement {
82
82
  this._session.answer = [], this.dispatchSessionChanged(), this._render();
83
83
  }
84
84
  _applyInitialElements() {
85
- this._model && this._model.graph && this._model.graph.initialElements && this._session && (!this._session.answer || !this._session.answer.length) && (this._session.answer = o(this._model.graph.initialElements));
85
+ this._model && this._model.graph && this._model.graph.initialElements && this._session && (!this._session.answer || !this._session.answer.length) && (this._session.answer = u(this._model.graph.initialElements));
86
86
  }
87
87
  _render() {
88
88
  if (this._model && this._session) {
89
89
  this._session.answer || this._applyInitialElements();
90
- let e = (this._session.answer || []).map(r), t = o(this._model);
90
+ let e = (this._session.answer || []).map(r), t = u(this._model);
91
91
  t.correctResponse = t.correctResponse && t.correctResponse.map(r);
92
92
  let n = {
93
93
  model: t,
@@ -97,7 +97,7 @@ var p = class extends HTMLElement {
97
97
  onDeleteElements: this.deleteElements.bind(this),
98
98
  onUndoElement: this.undoElement.bind(this),
99
99
  onClearElements: this.clearElements.bind(this)
100
- }, i = u.createElement(l, n);
100
+ }, i = l.createElement(c, n);
101
101
  this._root ||= d(this), this._root.render(i), this._scheduleMathRender();
102
102
  }
103
103
  }
@@ -106,4 +106,4 @@ var p = class extends HTMLElement {
106
106
  }
107
107
  };
108
108
  //#endregion
109
- export { c as Graph, l as NumberLineComponent, e as dataConverter, p as default, a as pointChooser, s as tickUtils };
109
+ export { s as Graph, c as NumberLineComponent, e as dataConverter, p as default, a as pointChooser, o as tickUtils };