create-basicjs 0.1.4 → 0.1.5

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 (559) hide show
  1. package/README.md +2 -2
  2. package/bin/create-basicjs.js +31 -4
  3. package/bin/verify-package.js +1 -1
  4. package/package.json +2 -2
  5. package/payload/starter/AGENTS.md +11 -6
  6. package/payload/starter/README.md +1 -1
  7. package/payload/starter/_basic/VERSION +1 -1
  8. package/payload/starter/_basic/assets/cards/almond-blossom.png +0 -0
  9. package/payload/starter/_basic/assets/cards/blackberry.png +0 -0
  10. package/payload/starter/_basic/assets/cards/borage.png +0 -0
  11. package/payload/starter/_basic/assets/cards/chamomile.png +0 -0
  12. package/payload/starter/_basic/assets/cards/dill.png +0 -0
  13. package/payload/starter/_basic/assets/cards/eucalyptus.png +0 -0
  14. package/payload/starter/_basic/assets/cards/fennel.png +0 -0
  15. package/payload/starter/_basic/assets/cards/fig.png +0 -0
  16. package/payload/starter/_basic/assets/cards/juniper.png +0 -0
  17. package/payload/starter/_basic/assets/cards/lavender.png +0 -0
  18. package/payload/starter/_basic/assets/cards/lemon.png +0 -0
  19. package/payload/starter/_basic/assets/cards/olives.png +0 -0
  20. package/payload/starter/_basic/assets/cards/oregano.png +0 -0
  21. package/payload/starter/_basic/assets/cards/pepper.png +0 -0
  22. package/payload/starter/_basic/assets/cards/physalis.png +0 -0
  23. package/payload/starter/_basic/assets/cards/pomegranate.png +0 -0
  24. package/payload/starter/_basic/assets/cards/poppy.png +0 -0
  25. package/payload/starter/_basic/assets/cards/rosehip.png +0 -0
  26. package/payload/starter/_basic/assets/cards/saffron.png +0 -0
  27. package/payload/starter/_basic/assets/categories/cappuccino.png +0 -0
  28. package/payload/starter/_basic/assets/categories/chocolate-milk.png +0 -0
  29. package/payload/starter/_basic/assets/categories/coffee.png +0 -0
  30. package/payload/starter/_basic/assets/categories/frappe.png +0 -0
  31. package/payload/starter/_basic/assets/categories/iced-caffee.png +0 -0
  32. package/payload/starter/_basic/assets/categories/milkshake.png +0 -0
  33. package/payload/starter/_basic/assets/categories/orange-juice.png +0 -0
  34. package/payload/starter/_basic/assets/categories/tea.png +0 -0
  35. package/payload/starter/_basic/assets/fruids/brokoli.png +0 -0
  36. package/payload/starter/_basic/assets/fruids/cilek.png +0 -0
  37. package/payload/starter/_basic/assets/fruids/domates.png +0 -0
  38. package/payload/starter/_basic/assets/fruids/elma.png +0 -0
  39. package/payload/starter/_basic/assets/fruids/havuc.png +0 -0
  40. package/payload/starter/_basic/assets/fruids/karpuz.png +0 -0
  41. package/payload/starter/_basic/assets/fruids/limon.png +0 -0
  42. package/payload/starter/_basic/assets/fruids/muz.png +0 -0
  43. package/payload/starter/_basic/assets/fruids/nar.png +0 -0
  44. package/payload/starter/_basic/assets/fruids/patlican.png +0 -0
  45. package/payload/starter/_basic/assets/fruids/yabanmersini.png +0 -0
  46. package/payload/starter/_basic/assets/fruids/yesilbiber.png +0 -0
  47. package/payload/starter/_basic/basic/LICENSE +1 -1
  48. package/payload/starter/_basic/basic/basic.css +3 -6
  49. package/payload/starter/_basic/basic/basic.js +154 -60
  50. package/payload/starter/_basic/basic/basic.min.js +19 -6
  51. package/payload/starter/_basic/basic/scroll-bar.js +4 -2
  52. package/payload/starter/_basic/basic/scroll-bar.min.js +1 -0
  53. package/payload/starter/_basic/comp/accordion.js +659 -0
  54. package/payload/starter/_basic/comp/action-button.js +22 -23
  55. package/payload/starter/_basic/comp/action-tab-bar.js +8 -8
  56. package/payload/starter/_basic/comp/app-bar.js +12 -11
  57. package/payload/starter/_basic/comp/{badge-v2.js → badge.js} +51 -5
  58. package/payload/starter/_basic/comp/bottom-bar.js +31 -23
  59. package/payload/starter/_basic/comp/breadcrumbs.js +4 -2
  60. package/payload/starter/_basic/comp/canvas.js +652 -0
  61. package/payload/starter/_basic/comp/chat-view.js +827 -0
  62. package/payload/starter/_basic/comp/check-box.js +137 -21
  63. package/payload/starter/_basic/comp/code-editor.js +953 -0
  64. package/payload/starter/_basic/comp/{select-color.js → color-picker.js} +62 -29
  65. package/payload/starter/_basic/comp/context-menu.js +342 -30
  66. package/payload/starter/_basic/comp/{currency-input-b.js → currency-field.js} +48 -29
  67. package/payload/starter/_basic/comp/data-table.js +114 -42
  68. package/payload/starter/_basic/comp/{select-date.js → date-picker.js} +104 -52
  69. package/payload/starter/_basic/comp/dialog.js +214 -76
  70. package/payload/starter/_basic/comp/email-field.js +65 -0
  71. package/payload/starter/_basic/comp/{select-file.js → file-picker.js} +245 -57
  72. package/payload/starter/_basic/comp/filters.js +374 -60
  73. package/payload/starter/_basic/comp/form.js +38 -26
  74. package/payload/starter/_basic/comp/full-screen-select.js +36 -33
  75. package/payload/starter/_basic/comp/gauge.js +12 -8
  76. package/payload/starter/_basic/comp/graph-box.js +3911 -0
  77. package/payload/starter/_basic/comp/grid-group.js +185 -0
  78. package/payload/starter/_basic/comp/hold-to-confirm-button.js +16 -7
  79. package/payload/starter/_basic/comp/image-view.js +598 -0
  80. package/payload/starter/_basic/comp/item-list.js +507 -163
  81. package/payload/starter/_basic/comp/json-editor.js +3221 -0
  82. package/payload/starter/_basic/comp/json-view.js +597 -0
  83. package/payload/starter/_basic/comp/label-editor.js +22 -19
  84. package/payload/starter/_basic/comp/left-menu.js +89 -22
  85. package/payload/starter/_basic/comp/line-progress-bar.js +196 -45
  86. package/payload/starter/_basic/comp/loading-screen.js +49 -18
  87. package/payload/starter/_basic/comp/log-view.js +530 -0
  88. package/payload/starter/_basic/comp/{login-page-v2.js → login-page.js} +205 -106
  89. package/payload/starter/_basic/comp/markdown-view.js +1044 -0
  90. package/payload/starter/_basic/comp/menu-bar.js +624 -0
  91. package/payload/starter/_basic/comp/mini-graph-box.js +20 -11
  92. package/payload/starter/_basic/comp/minimal-accent.js +208 -0
  93. package/payload/starter/_basic/comp/notice.js +15 -13
  94. package/payload/starter/_basic/comp/{number-input-b.js → number-field.js} +26 -19
  95. package/payload/starter/_basic/comp/numeric-keyboard.js +15 -13
  96. package/payload/starter/_basic/comp/page-control.js +21 -4
  97. package/payload/starter/_basic/comp/page-header.js +7 -6
  98. package/payload/starter/_basic/comp/password-field.js +192 -0
  99. package/payload/starter/_basic/comp/period-bar.js +8 -7
  100. package/payload/starter/_basic/comp/{phone-input-b.js → phone-field.js} +80 -45
  101. package/payload/starter/_basic/comp/progress-bar.js +401 -85
  102. package/payload/starter/_basic/comp/property-panel.js +1022 -123
  103. package/payload/starter/_basic/comp/radio-button.js +79 -19
  104. package/payload/starter/_basic/comp/range-slider.js +569 -0
  105. package/payload/starter/_basic/comp/rich-text-editor.js +33 -30
  106. package/payload/starter/_basic/comp/scroll-area.js +308 -0
  107. package/payload/starter/_basic/comp/scrolling-text.js +10 -9
  108. package/payload/starter/_basic/comp/search-input.js +725 -0
  109. package/payload/starter/_basic/comp/search-results.js +60 -24
  110. package/payload/starter/_basic/comp/select-box.js +229 -107
  111. package/payload/starter/_basic/comp/settings-row.js +20 -19
  112. package/payload/starter/_basic/comp/side-panel.js +53 -10
  113. package/payload/starter/_basic/comp/slider-field.js +264 -88
  114. package/payload/starter/_basic/comp/slider.js +541 -86
  115. package/payload/starter/_basic/comp/smart-button.js +433 -352
  116. package/payload/starter/_basic/comp/smart-table.js +740 -185
  117. package/payload/starter/_basic/comp/sortable-list.js +47 -38
  118. package/payload/starter/_basic/comp/spark-line-box.js +25 -16
  119. package/payload/starter/_basic/comp/splitter.js +411 -0
  120. package/payload/starter/_basic/comp/status-bar.js +408 -0
  121. package/payload/starter/_basic/comp/step-bar.js +345 -0
  122. package/payload/starter/_basic/comp/stepper.js +77 -49
  123. package/payload/starter/_basic/comp/tabs.js +67 -18
  124. package/payload/starter/_basic/comp/tag-input.js +50 -10
  125. package/payload/starter/_basic/comp/tap-effect.js +6 -4
  126. package/payload/starter/_basic/comp/text-area-field.js +233 -0
  127. package/payload/starter/_basic/comp/text-field.js +1006 -0
  128. package/payload/starter/_basic/comp/time-line.js +102 -28
  129. package/payload/starter/_basic/comp/{select-time.js → time-picker.js} +104 -51
  130. package/payload/starter/_basic/comp/tiny-select.js +79 -39
  131. package/payload/starter/_basic/comp/tiny-table.js +12 -8
  132. package/payload/starter/_basic/comp/toast.js +87 -34
  133. package/payload/starter/_basic/comp/toggle.js +147 -27
  134. package/payload/starter/_basic/comp/tool-bar.js +760 -0
  135. package/payload/starter/_basic/comp/tooltip.js +80 -17
  136. package/payload/starter/_basic/comp/tree-view.js +124 -41
  137. package/payload/starter/_basic/comp/ui-effects.js +17 -11
  138. package/payload/starter/_basic/comp/ui-standards.js +5 -4
  139. package/payload/starter/_basic/comp/url-field.js +190 -0
  140. package/payload/starter/_basic/comp/web-view.js +70 -16
  141. package/payload/starter/_basic/docs/basic-js-animated-rules.md +15 -9
  142. package/payload/starter/_basic/docs/basic-js-code-rules.md +42 -5
  143. package/payload/starter/_basic/docs/basic-js-components.md +12 -17
  144. package/payload/starter/_basic/docs/basic-js-core.md +5 -4
  145. package/payload/starter/_basic/docs/component-index.md +245 -104
  146. package/payload/starter/_basic/docs/component-template.js +28 -24
  147. package/payload/starter/_basic/docs/handbook/00-introduction.md +6 -2
  148. package/payload/starter/_basic/docs/handbook/00-what-is-new.md +21 -0
  149. package/payload/starter/_basic/docs/handbook/01-label.md +4 -4
  150. package/payload/starter/_basic/docs/handbook/02-box.md +7 -7
  151. package/payload/starter/_basic/docs/handbook/03-image.md +4 -4
  152. package/payload/starter/_basic/docs/handbook/04-common-properties.md +6 -5
  153. package/payload/starter/_basic/docs/handbook/05-autolayout.md +8 -7
  154. package/payload/starter/_basic/docs/handbook/06-button.md +3 -3
  155. package/payload/starter/_basic/docs/handbook/07-input.md +3 -3
  156. package/payload/starter/_basic/docs/handbook/08-page.md +3 -3
  157. package/payload/starter/_basic/docs/handbook/09-useful-examples.md +39 -58
  158. package/payload/starter/_basic/docs/handbook/10-motion.md +6 -6
  159. package/payload/starter/_basic/docs/handbook/11-other-functions.md +1 -0
  160. package/payload/starter/_basic/docs/handbook/13-sound.md +3 -3
  161. package/payload/starter/_basic/docs/handbook/14-using-components.md +180 -0
  162. package/payload/starter/_basic/docs/handbook/15-making-a-component.md +338 -0
  163. package/payload/starter/_basic/docs/what-is-new.md +106 -0
  164. package/payload/starter/_basic/examples/accordion.htm +174 -0
  165. package/payload/starter/_basic/examples/action-button.htm +74 -32
  166. package/payload/starter/_basic/examples/action-tab-bar.htm +5 -6
  167. package/payload/starter/_basic/examples/app-bar.htm +63 -41
  168. package/payload/starter/_basic/examples/badge.htm +96 -0
  169. package/payload/starter/_basic/examples/bottom-bar-2.htm +61 -48
  170. package/payload/starter/_basic/examples/bottom-bar.htm +74 -16
  171. package/payload/starter/_basic/examples/breadcrumbs.htm +160 -150
  172. package/payload/starter/_basic/examples/canvas.htm +190 -0
  173. package/payload/starter/_basic/examples/chat-view.htm +143 -0
  174. package/payload/starter/_basic/examples/check-box-2.htm +71 -82
  175. package/payload/starter/_basic/examples/check-box-3.htm +72 -83
  176. package/payload/starter/_basic/examples/check-box.htm +207 -0
  177. package/payload/starter/_basic/examples/code-editor-2.htm +259 -0
  178. package/payload/starter/_basic/examples/code-editor.htm +225 -0
  179. package/payload/starter/_basic/examples/color-picker.htm +206 -0
  180. package/payload/starter/_basic/examples/context-menu.htm +180 -139
  181. package/payload/starter/_basic/examples/currency-field.htm +105 -0
  182. package/payload/starter/_basic/examples/data-table-2.htm +2 -1
  183. package/payload/starter/_basic/examples/data-table-3.htm +1 -1
  184. package/payload/starter/_basic/examples/data-table-4.htm +15 -12
  185. package/payload/starter/_basic/examples/data-table-5.htm +11 -3
  186. package/payload/starter/_basic/examples/data-table.htm +90 -40
  187. package/payload/starter/_basic/examples/date-picker.htm +239 -0
  188. package/payload/starter/_basic/examples/dialog-centered.htm +394 -40
  189. package/payload/starter/_basic/examples/dialog.htm +267 -46
  190. package/payload/starter/_basic/examples/email-field.htm +102 -0
  191. package/payload/starter/_basic/examples/file-picker.htm +296 -0
  192. package/payload/starter/_basic/examples/filters.htm +33 -22
  193. package/payload/starter/_basic/examples/{form-1.htm → form.htm} +18 -19
  194. package/payload/starter/_basic/examples/full-screen-select.htm +81 -58
  195. package/payload/starter/_basic/examples/gauge.htm +95 -81
  196. package/payload/starter/_basic/examples/graph-box.htm +365 -0
  197. package/payload/starter/_basic/examples/grid-group.htm +179 -0
  198. package/payload/starter/_basic/examples/hold-to-confirm-button.htm +102 -113
  199. package/payload/starter/_basic/examples/image-view.htm +195 -0
  200. package/payload/starter/_basic/examples/item-list-2.htm +138 -94
  201. package/payload/starter/_basic/examples/item-list.htm +191 -86
  202. package/payload/starter/_basic/examples/json-editor.htm +206 -0
  203. package/payload/starter/_basic/examples/json-view.htm +153 -0
  204. package/payload/starter/_basic/examples/label-editor.htm +85 -89
  205. package/payload/starter/_basic/examples/left-menu-2.htm +93 -0
  206. package/payload/starter/_basic/examples/left-menu.htm +42 -37
  207. package/payload/starter/_basic/examples/line-progress-bar.htm +155 -114
  208. package/payload/starter/_basic/examples/loading-screen.htm +149 -125
  209. package/payload/starter/_basic/examples/log-view.htm +175 -0
  210. package/payload/starter/_basic/examples/{login-page-dark-v2.htm → login-page-dark.htm} +265 -267
  211. package/payload/starter/_basic/examples/{login-page-v2.htm → login-page.htm} +266 -267
  212. package/payload/starter/_basic/examples/markdown-view.htm +220 -0
  213. package/payload/starter/_basic/examples/menu-bar-2.htm +225 -0
  214. package/payload/starter/_basic/examples/menu-bar.htm +145 -0
  215. package/payload/starter/_basic/examples/mini-graph-box.htm +98 -109
  216. package/payload/starter/_basic/examples/minimal-accent.htm +196 -0
  217. package/payload/starter/_basic/examples/minimal-theme.htm +432 -0
  218. package/payload/starter/_basic/examples/notice.htm +13 -4
  219. package/payload/starter/_basic/examples/number-field.htm +103 -0
  220. package/payload/starter/_basic/examples/numeric-keyboard.htm +44 -42
  221. package/payload/starter/_basic/examples/page-control.htm +181 -130
  222. package/payload/starter/_basic/examples/page-header.htm +57 -30
  223. package/payload/starter/_basic/examples/password-field.htm +117 -0
  224. package/payload/starter/_basic/examples/period-bar.htm +43 -29
  225. package/payload/starter/_basic/examples/phone-field-select-country.htm +292 -0
  226. package/payload/starter/_basic/examples/phone-field.htm +104 -0
  227. package/payload/starter/_basic/examples/progress-bar-ozden.htm +229 -92
  228. package/payload/starter/_basic/examples/progress-bar.htm +222 -174
  229. package/payload/starter/_basic/examples/property-panel.htm +152 -52
  230. package/payload/starter/_basic/examples/radio-button-2.htm +101 -109
  231. package/payload/starter/_basic/examples/radio-button-3.htm +81 -71
  232. package/payload/starter/_basic/examples/radio-button.htm +289 -0
  233. package/payload/starter/_basic/examples/range-slider.htm +171 -0
  234. package/payload/starter/_basic/examples/rich-text-editor.htm +115 -110
  235. package/payload/starter/_basic/examples/scroll-area.htm +293 -0
  236. package/payload/starter/_basic/examples/scrolling-text.htm +27 -6
  237. package/payload/starter/_basic/examples/search-input-2-light.htm +112 -0
  238. package/payload/starter/_basic/examples/search-input-3-dark.htm +105 -0
  239. package/payload/starter/_basic/examples/{search-input-v2-place.htm → search-input-place.htm} +25 -26
  240. package/payload/starter/_basic/examples/search-input.htm +159 -0
  241. package/payload/starter/_basic/examples/search-results.htm +85 -88
  242. package/payload/starter/_basic/examples/select-box-ozden-dark-text.htm +70 -0
  243. package/payload/starter/_basic/examples/select-box-ozden-item.htm +6 -5
  244. package/payload/starter/_basic/examples/select-box-ozden-text.htm +5 -3
  245. package/payload/starter/_basic/examples/select-box.htm +190 -159
  246. package/payload/starter/_basic/examples/settings-row.htm +92 -43
  247. package/payload/starter/_basic/examples/side-panel-2.htm +63 -25
  248. package/payload/starter/_basic/examples/side-panel.htm +84 -70
  249. package/payload/starter/_basic/examples/slider-2-classic.htm +152 -0
  250. package/payload/starter/_basic/examples/slider-field-ozden.htm +286 -0
  251. package/payload/starter/_basic/examples/slider-field.htm +174 -134
  252. package/payload/starter/_basic/examples/slider.htm +257 -180
  253. package/payload/starter/_basic/examples/smart-button-3-ozden.htm +170 -257
  254. package/payload/starter/_basic/examples/smart-button-4-dark.htm +86 -47
  255. package/payload/starter/_basic/examples/smart-button-5-features.htm +130 -125
  256. package/payload/starter/_basic/examples/smart-button-alternatif.htm +266 -0
  257. package/payload/starter/_basic/examples/smart-button.htm +207 -174
  258. package/payload/starter/_basic/examples/smart-table-2.htm +43 -56
  259. package/payload/starter/_basic/examples/smart-table-3.htm +148 -113
  260. package/payload/starter/_basic/examples/smart-table-4.htm +37 -50
  261. package/payload/starter/_basic/examples/{smart-table-1.htm → smart-table-5.htm} +37 -48
  262. package/payload/starter/_basic/examples/smart-table.htm +183 -0
  263. package/payload/starter/_basic/examples/sortable-list.htm +191 -142
  264. package/payload/starter/_basic/examples/spark-line-box.htm +149 -161
  265. package/payload/starter/_basic/examples/splitter.htm +164 -0
  266. package/payload/starter/_basic/examples/status-bar.htm +166 -0
  267. package/payload/starter/_basic/examples/step-bar.htm +129 -0
  268. package/payload/starter/_basic/examples/stepper-2.htm +71 -59
  269. package/payload/starter/_basic/examples/stepper.htm +146 -135
  270. package/payload/starter/_basic/examples/tabs-2.htm +58 -67
  271. package/payload/starter/_basic/examples/tabs.htm +197 -180
  272. package/payload/starter/_basic/examples/tag-input.htm +150 -153
  273. package/payload/starter/_basic/examples/tap-effect.htm +23 -19
  274. package/payload/starter/_basic/examples/text-area-field.htm +104 -0
  275. package/payload/starter/_basic/examples/text-field-2.htm +113 -0
  276. package/payload/starter/_basic/examples/text-field-3-style.htm +105 -0
  277. package/payload/starter/_basic/examples/text-field-4-custom-unit.htm +96 -0
  278. package/payload/starter/_basic/examples/{input-b-ex5-warning-icon.htm → text-field-5-warning-icon.htm} +19 -19
  279. package/payload/starter/_basic/examples/text-field-6-modern-dark.htm +114 -0
  280. package/payload/starter/_basic/examples/text-field-7-modern.htm +106 -0
  281. package/payload/starter/_basic/examples/text-field-8-light-dark.htm +159 -0
  282. package/payload/starter/_basic/examples/text-field.htm +163 -0
  283. package/payload/starter/_basic/examples/time-line.htm +180 -116
  284. package/payload/starter/_basic/examples/time-picker.htm +240 -0
  285. package/payload/starter/_basic/examples/tiny-select.htm +118 -86
  286. package/payload/starter/_basic/examples/tiny-table.htm +40 -34
  287. package/payload/starter/_basic/examples/toast.htm +145 -147
  288. package/payload/starter/_basic/examples/toggle-2.htm +99 -68
  289. package/payload/starter/_basic/examples/toggle-3.htm +104 -101
  290. package/payload/starter/_basic/examples/toggle.htm +161 -93
  291. package/payload/starter/_basic/examples/tool-bar.htm +172 -0
  292. package/payload/starter/_basic/examples/tooltip-2.htm +110 -60
  293. package/payload/starter/_basic/examples/tooltip-3.htm +124 -65
  294. package/payload/starter/_basic/examples/tooltip-4.htm +218 -0
  295. package/payload/starter/_basic/examples/tooltip.htm +206 -124
  296. package/payload/starter/_basic/examples/tree-view.htm +210 -182
  297. package/payload/starter/_basic/examples/ui-effects.htm +207 -185
  298. package/payload/starter/_basic/examples/ui-standards.htm +200 -139
  299. package/payload/starter/_basic/examples/url-field.htm +120 -0
  300. package/payload/starter/_basic/examples/web-view.htm +109 -110
  301. package/payload/starter/_basic/min/accordion.min.js +2 -0
  302. package/payload/starter/_basic/min/action-button.min.js +1 -1
  303. package/payload/starter/_basic/min/app-bar.min.js +1 -1
  304. package/payload/starter/_basic/min/badge.min.js +2 -0
  305. package/payload/starter/_basic/min/bottom-bar.min.js +1 -1
  306. package/payload/starter/_basic/min/canvas.min.js +2 -0
  307. package/payload/starter/_basic/min/chat-view.min.js +2 -0
  308. package/payload/starter/_basic/min/check-box.min.js +1 -1
  309. package/payload/starter/_basic/min/code-editor.min.js +2 -0
  310. package/payload/starter/_basic/min/color-picker.min.js +2 -0
  311. package/payload/starter/_basic/min/context-menu.min.js +1 -1
  312. package/payload/starter/_basic/min/currency-field.min.js +2 -0
  313. package/payload/starter/_basic/min/data-table.min.js +1 -1
  314. package/payload/starter/_basic/min/date-picker.min.js +2 -0
  315. package/payload/starter/_basic/min/dialog.min.js +1 -1
  316. package/payload/starter/_basic/min/email-field.min.js +2 -0
  317. package/payload/starter/_basic/min/file-picker.min.js +2 -0
  318. package/payload/starter/_basic/min/filters.min.js +1 -1
  319. package/payload/starter/_basic/min/form.min.js +1 -1
  320. package/payload/starter/_basic/min/full-screen-select.min.js +1 -1
  321. package/payload/starter/_basic/min/gauge.min.js +1 -1
  322. package/payload/starter/_basic/min/graph-box.min.js +2 -0
  323. package/payload/starter/_basic/min/grid-group.min.js +2 -0
  324. package/payload/starter/_basic/min/hold-to-confirm-button.min.js +1 -1
  325. package/payload/starter/_basic/min/image-view.min.js +2 -0
  326. package/payload/starter/_basic/min/item-list.min.js +1 -1
  327. package/payload/starter/_basic/min/json-editor.min.js +2 -0
  328. package/payload/starter/_basic/min/json-view.min.js +2 -0
  329. package/payload/starter/_basic/min/label-editor.min.js +1 -1
  330. package/payload/starter/_basic/min/left-menu.min.js +1 -1
  331. package/payload/starter/_basic/min/line-progress-bar.min.js +1 -1
  332. package/payload/starter/_basic/min/loading-screen.min.js +1 -1
  333. package/payload/starter/_basic/min/log-view.min.js +2 -0
  334. package/payload/starter/_basic/min/login-page.min.js +2 -0
  335. package/payload/starter/_basic/min/markdown-view.min.js +2 -0
  336. package/payload/starter/_basic/min/menu-bar.min.js +2 -0
  337. package/payload/starter/_basic/min/mini-graph-box.min.js +1 -1
  338. package/payload/starter/_basic/min/minimal-accent.min.js +2 -0
  339. package/payload/starter/_basic/min/notice.min.js +1 -1
  340. package/payload/starter/_basic/min/number-field.min.js +2 -0
  341. package/payload/starter/_basic/min/numeric-keyboard.min.js +1 -1
  342. package/payload/starter/_basic/min/page-control.min.js +1 -1
  343. package/payload/starter/_basic/min/password-field.min.js +2 -0
  344. package/payload/starter/_basic/min/phone-field.min.js +2 -0
  345. package/payload/starter/_basic/min/progress-bar.min.js +1 -1
  346. package/payload/starter/_basic/min/property-panel.min.js +1 -1
  347. package/payload/starter/_basic/min/radio-button.min.js +1 -1
  348. package/payload/starter/_basic/min/range-slider.min.js +2 -0
  349. package/payload/starter/_basic/min/rich-text-editor.min.js +1 -1
  350. package/payload/starter/_basic/min/scroll-area.min.js +2 -0
  351. package/payload/starter/_basic/min/scrolling-text.min.js +1 -1
  352. package/payload/starter/_basic/min/search-input.min.js +2 -0
  353. package/payload/starter/_basic/min/search-results.min.js +1 -1
  354. package/payload/starter/_basic/min/select-box.min.js +1 -1
  355. package/payload/starter/_basic/min/settings-row.min.js +1 -1
  356. package/payload/starter/_basic/min/side-panel.min.js +1 -1
  357. package/payload/starter/_basic/min/slider-field.min.js +1 -1
  358. package/payload/starter/_basic/min/slider.min.js +1 -1
  359. package/payload/starter/_basic/min/smart-button.min.js +1 -1
  360. package/payload/starter/_basic/min/smart-table.min.js +1 -1
  361. package/payload/starter/_basic/min/sortable-list.min.js +1 -1
  362. package/payload/starter/_basic/min/spark-line-box.min.js +1 -1
  363. package/payload/starter/_basic/min/splitter.min.js +2 -0
  364. package/payload/starter/_basic/min/status-bar.min.js +2 -0
  365. package/payload/starter/_basic/min/step-bar.min.js +2 -0
  366. package/payload/starter/_basic/min/stepper.min.js +1 -1
  367. package/payload/starter/_basic/min/tabs.min.js +1 -1
  368. package/payload/starter/_basic/min/tag-input.min.js +1 -1
  369. package/payload/starter/_basic/min/text-area-field.min.js +2 -0
  370. package/payload/starter/_basic/min/text-field.min.js +2 -0
  371. package/payload/starter/_basic/min/time-line.min.js +1 -1
  372. package/payload/starter/_basic/min/time-picker.min.js +2 -0
  373. package/payload/starter/_basic/min/tiny-select.min.js +1 -1
  374. package/payload/starter/_basic/min/toast.min.js +1 -1
  375. package/payload/starter/_basic/min/toggle.min.js +1 -1
  376. package/payload/starter/_basic/min/tool-bar.min.js +2 -0
  377. package/payload/starter/_basic/min/tooltip.min.js +1 -1
  378. package/payload/starter/_basic/min/tree-view.min.js +1 -1
  379. package/payload/starter/_basic/min/ui-effects.min.js +1 -1
  380. package/payload/starter/_basic/min/url-field.min.js +2 -0
  381. package/payload/starter/_basic/min/web-view.min.js +1 -1
  382. package/payload/templates/booking/app/app.js +11 -8
  383. package/payload/templates/booking/app/settings.js +4 -4
  384. package/payload/templates/booking/index.htm +3 -3
  385. package/payload/templates/booking/pages/account.js +6 -6
  386. package/payload/templates/booking/pages/book.js +1 -1
  387. package/payload/templates/booking/pages/services.js +5 -4
  388. package/payload/templates/classic/app/app.js +15 -11
  389. package/payload/templates/classic/app/settings.js +22 -20
  390. package/payload/templates/classic/assets/_attribute.txt +2 -0
  391. package/payload/templates/classic/assets/cards/dill.png +0 -0
  392. package/payload/templates/classic/assets/cards/fennel.png +0 -0
  393. package/payload/templates/classic/assets/cards/juniper.png +0 -0
  394. package/payload/templates/classic/assets/cards/olives.png +0 -0
  395. package/payload/templates/classic/assets/cards/oregano.png +0 -0
  396. package/payload/templates/classic/assets/cards/pepper.png +0 -0
  397. package/payload/templates/classic/assets/cards/rosehip.png +0 -0
  398. package/payload/templates/classic/assets/categories/cappuccino.png +0 -0
  399. package/payload/templates/classic/assets/categories/chocolate-milk.png +0 -0
  400. package/payload/templates/classic/assets/categories/coffee.png +0 -0
  401. package/payload/templates/classic/assets/categories/frappe.png +0 -0
  402. package/payload/templates/classic/assets/categories/iced-caffee.png +0 -0
  403. package/payload/templates/classic/assets/categories/milkshake.png +0 -0
  404. package/payload/templates/classic/assets/categories/orange-juice.png +0 -0
  405. package/payload/templates/classic/assets/categories/tea.png +0 -0
  406. package/payload/templates/classic/index.htm +2 -2
  407. package/payload/templates/classic/pages/example.js +10 -10
  408. package/payload/templates/classic/pages/examples.js +44 -43
  409. package/payload/templates/classic/pages/home.js +16 -15
  410. package/payload/templates/classic/pages/info-pages.js +5 -5
  411. package/payload/templates/classic/pages/search.js +8 -7
  412. package/payload/templates/classic/pages/settings.js +13 -13
  413. package/payload/templates/classic/pages/tasks.js +1 -0
  414. package/payload/templates/classic/pages/template-pages.js +12 -11
  415. package/payload/templates/coffee-shop/app/app.js +12 -8
  416. package/payload/templates/coffee-shop/app/settings.js +4 -4
  417. package/payload/templates/coffee-shop/index.htm +3 -3
  418. package/payload/templates/coffee-shop/pages/drink.js +1 -1
  419. package/payload/templates/coffee-shop/pages/menu.js +5 -4
  420. package/payload/templates/forms/TEMPLATE.md +1 -1
  421. package/payload/templates/forms/appointment-form.htm +55 -53
  422. package/payload/templates/forms/contact-form-to-mail.htm +38 -37
  423. package/payload/templates/forms/contact-form-to-supabase.htm +47 -46
  424. package/payload/templates/forms/dark-contact-form.htm +43 -40
  425. package/payload/templates/forms/event-registration-form.htm +80 -77
  426. package/payload/templates/forms/feedback-form.htm +54 -54
  427. package/payload/templates/forms/order-form.htm +88 -84
  428. package/payload/templates/forms/recruitment-form.htm +60 -60
  429. package/payload/templates/forms/service/readme.md +9 -8
  430. package/payload/templates/forms/service/send-form-mail.php +38 -21
  431. package/payload/templates/forms/support-ticket-form.htm +67 -65
  432. package/payload/templates/panel/common/module-page.js +2 -2
  433. package/payload/templates/panel/common/theme.js +37 -10
  434. package/payload/templates/panel/common/top-bar.js +45 -40
  435. package/payload/templates/panel/index.htm +59 -60
  436. package/payload/templates/panel/module10/greenhouse.htm +98 -113
  437. package/payload/templates/panel/module11/arduino-projects.htm +47 -58
  438. package/payload/templates/panel/module6/energy-hub.htm +71 -103
  439. package/payload/templates/panel/module7/3d-printers.htm +58 -81
  440. package/payload/templates/panel/module8/cold-rooms.htm +58 -79
  441. package/payload/templates/panel/module9/elevator-fleet.htm +72 -93
  442. package/payload/templates/panel/pages/activity.js +134 -152
  443. package/payload/templates/panel/pages/contents.js +291 -308
  444. package/payload/templates/panel/pages/customers.js +250 -267
  445. package/payload/templates/panel/pages/edit-user.js +31 -30
  446. package/payload/templates/panel/pages/home.js +39 -70
  447. package/payload/templates/panel/pages/media.js +166 -183
  448. package/payload/templates/panel/pages/notifications.js +7 -7
  449. package/payload/templates/panel/pages/orders.js +200 -217
  450. package/payload/templates/panel/pages/products.js +259 -278
  451. package/payload/templates/panel/pages/reports.js +74 -123
  452. package/payload/templates/panel/pages/roles.js +57 -60
  453. package/payload/templates/panel/pages/settings.js +127 -143
  454. package/payload/templates/panel/pages/user-actions.js +106 -110
  455. package/payload/templates/panel/pages/user-list.js +221 -238
  456. package/payload/templates/panel/pages/users.js +14 -29
  457. package/payload/templates/shop/TEMPLATE.md +1 -1
  458. package/payload/templates/shop/app/app.js +11 -8
  459. package/payload/templates/shop/app/settings.js +4 -4
  460. package/payload/templates/shop/index.htm +3 -3
  461. package/payload/templates/shop/pages/account.js +7 -7
  462. package/payload/templates/shop/pages/cart.js +1 -1
  463. package/payload/templates/shop/pages/checkout.js +2 -2
  464. package/payload/templates/shop/pages/product.js +2 -2
  465. package/payload/templates/shop/pages/shop.js +6 -5
  466. package/payload/templates/starter/TEMPLATE.md +1 -1
  467. package/payload/templates/starter/app/app.js +12 -8
  468. package/payload/templates/starter/app/settings.js +14 -11
  469. package/payload/templates/starter/index.htm +3 -3
  470. package/payload/templates/starter/pages/about.js +1 -1
  471. package/payload/templates/starter/pages/home.js +2 -2
  472. package/payload/templates/starter/pages/product.js +1 -1
  473. package/payload/templates/starter/pages/products.js +5 -5
  474. package/payload/templates/starter/pages/settings.js +1 -1
  475. package/payload/templates/starter/pages/tasks.js +8 -8
  476. package/payload/templates/starter/pages/website.js +1 -1
  477. package/payload/starter/_basic/comp/chart-box/chart-4.5.1.umd.min.js +0 -13
  478. package/payload/starter/_basic/comp/chart-box/chart-js-LICENSE.md +0 -9
  479. package/payload/starter/_basic/comp/chart-box.js +0 -868
  480. package/payload/starter/_basic/comp/email-input-b.js +0 -57
  481. package/payload/starter/_basic/comp/input-b.js +0 -759
  482. package/payload/starter/_basic/comp/password-input-b.js +0 -164
  483. package/payload/starter/_basic/comp/search-input-v2.js +0 -427
  484. package/payload/starter/_basic/comp/textarea-b.js +0 -184
  485. package/payload/starter/_basic/comp/url-input-b.js +0 -145
  486. package/payload/starter/_basic/examples/badgeV2.htm +0 -68
  487. package/payload/starter/_basic/examples/chart-box.htm +0 -287
  488. package/payload/starter/_basic/examples/check-box-1.htm +0 -220
  489. package/payload/starter/_basic/examples/currency-input-b.htm +0 -71
  490. package/payload/starter/_basic/examples/email-input-b.htm +0 -67
  491. package/payload/starter/_basic/examples/input-b-ex1.htm +0 -132
  492. package/payload/starter/_basic/examples/input-b-ex2.htm +0 -136
  493. package/payload/starter/_basic/examples/input-b-ex3-style.htm +0 -113
  494. package/payload/starter/_basic/examples/input-b-ex4-custom-unit.htm +0 -112
  495. package/payload/starter/_basic/examples/input-b-ex6-dark.htm +0 -108
  496. package/payload/starter/_basic/examples/input-b-ex7-ozden.htm +0 -153
  497. package/payload/starter/_basic/examples/number-input-b.htm +0 -68
  498. package/payload/starter/_basic/examples/password-input-b.htm +0 -70
  499. package/payload/starter/_basic/examples/phone-input-b-select-country.htm +0 -298
  500. package/payload/starter/_basic/examples/phone-input-b.htm +0 -72
  501. package/payload/starter/_basic/examples/radio-button-1.htm +0 -264
  502. package/payload/starter/_basic/examples/search-input-v2-ozden.htm +0 -128
  503. package/payload/starter/_basic/examples/search-input-v2.htm +0 -65
  504. package/payload/starter/_basic/examples/select-color.htm +0 -215
  505. package/payload/starter/_basic/examples/select-date.htm +0 -244
  506. package/payload/starter/_basic/examples/select-file.htm +0 -268
  507. package/payload/starter/_basic/examples/select-time.htm +0 -249
  508. package/payload/starter/_basic/examples/smart-button-2.htm +0 -220
  509. package/payload/starter/_basic/examples/textarea-b.htm +0 -76
  510. package/payload/starter/_basic/examples/unfinished-login-page-dark-supabase.htm +0 -221
  511. package/payload/starter/_basic/examples/unfinished-login-page-supabase.htm +0 -221
  512. package/payload/starter/_basic/examples/url-input-b.htm +0 -85
  513. package/payload/starter/_basic/min/badge-v2.min.js +0 -2
  514. package/payload/starter/_basic/min/chart-box.min.js +0 -2
  515. package/payload/starter/_basic/min/currency-input-b.min.js +0 -2
  516. package/payload/starter/_basic/min/email-input-b.min.js +0 -2
  517. package/payload/starter/_basic/min/input-b.min.js +0 -2
  518. package/payload/starter/_basic/min/login-page-v2.min.js +0 -2
  519. package/payload/starter/_basic/min/number-input-b.min.js +0 -2
  520. package/payload/starter/_basic/min/password-input-b.min.js +0 -2
  521. package/payload/starter/_basic/min/phone-input-b.min.js +0 -2
  522. package/payload/starter/_basic/min/search-input-v2.min.js +0 -2
  523. package/payload/starter/_basic/min/select-color.min.js +0 -2
  524. package/payload/starter/_basic/min/select-date.min.js +0 -2
  525. package/payload/starter/_basic/min/select-file.min.js +0 -2
  526. package/payload/starter/_basic/min/select-time.min.js +0 -2
  527. package/payload/starter/_basic/min/textarea-b.min.js +0 -2
  528. package/payload/starter/_basic/min/url-input-b.min.js +0 -2
  529. package/payload/templates/panel/common/bridge.min.js +0 -0
  530. package/payload/templates/panel/common/full-view.min.js +0 -1
  531. package/payload/templates/panel/common/main-view.min.js +0 -1
  532. package/payload/templates/panel/common/module-page.min.js +0 -1
  533. package/payload/templates/panel/common/right-view.min.js +0 -1
  534. package/payload/templates/panel/common/start-page.min.js +0 -1
  535. package/payload/templates/panel/common/top-bar-v25-07-29-1.js +0 -330
  536. package/payload/templates/panel/common/top-bar-v25-07-29-2.js +0 -265
  537. package/payload/templates/panel/common/top-bar.min.js +0 -1
  538. package/payload/templates/panel/common/ui-standards.min.js +0 -1
  539. package/payload/templates/panel/managers/database.min.js +0 -1
  540. package/payload/templates/panel/managers/login.min.js +0 -1
  541. package/payload/templates/panel/pages/_page-template.min.js +0 -1
  542. package/payload/templates/panel/pages/contents.min.js +0 -1
  543. package/payload/templates/panel/pages/edit-user.min.js +0 -1
  544. package/payload/templates/panel/pages/edit-users-table.min.js +0 -1
  545. package/payload/templates/panel/pages/home.min.js +0 -1
  546. package/payload/templates/panel/pages/notifications.min.js +0 -1
  547. package/payload/templates/panel/pages/reports.min.js +0 -1
  548. package/payload/templates/panel/pages/settings.min.js +0 -1
  549. package/payload/templates/panel/pages/user-actions.min.js +0 -2
  550. package/payload/templates/panel/pages/users.min.js +0 -1
  551. /package/payload/starter/_basic/comp/{password-input-b → password-field}/hide-btn.png +0 -0
  552. /package/payload/starter/_basic/comp/{password-input-b → password-field}/hide-btn2.png +0 -0
  553. /package/payload/starter/_basic/comp/{password-input-b → password-field}/show-btn.png +0 -0
  554. /package/payload/starter/_basic/comp/{password-input-b → password-field}/show-btn2.png +0 -0
  555. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/clear-round.svg +0 -0
  556. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/clear.svg +0 -0
  557. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/filter.png +0 -0
  558. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/filter.svg +0 -0
  559. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/search.svg +0 -0
@@ -1,13 +1,27 @@
1
1
  /* Bismillah */
2
2
  /*
3
3
 
4
- basic.js (v26.11.01) A lightweight JavaScript library for building web-based applications with simple code. No need to write HTML or CSS — just use basic JavaScript.
4
+ basic.js (v26.11.10) A lightweight JavaScript library for building web-based applications with simple code. No need to write HTML or CSS — just use basic JavaScript.
5
5
  - Project Site: https://bug7a.github.io/basic.js/
6
6
 
7
- v26.11.01 is v26.09.18 plus the additions below. Every page and component written for the
7
+ v26.11.10 is v26.09.18 plus the additions below. Every page and component written for the
8
8
  previous versions works unchanged (same defaults, same DOM), except the global names moved under
9
9
  basic.* in v26.10.25 (see below).
10
10
 
11
+ WHAT IS NEW IN v26.11.10 (see basic/basic-what-is-new.md):
12
+ - Groups: stretch: 1: the items without a width (VGroup) / a height (HGroup) fill the group across
13
+ (css: { alignItems: "stretch" } in short); group.stretch = 0 / 1 after creation
14
+
15
+ WHAT IS NEW IN v26.11.07 (see basic/basic-what-is-new.md):
16
+ - Props: border and round take an array too, like padding: border [x, y] / [left, top, right, bottom],
17
+ round [top, bottom] / [topLeft, topRight, bottomRight, bottomLeft]; center() counts each side
18
+ - Groups: gap [x, y]: x between the items of a line, y between the lines (wrap: 1)
19
+
20
+ WHAT IS NEW IN v26.11.05 (see basic/basic-what-is-new.md):
21
+ - basic: zIndexAbove(obj, minimum): the z-index of a list or a menu that opens from obj, over the layer that holds
22
+ obj (a Dialog, a SidePanel)
23
+ - Fix: remove() of a parent also cleans the panels its components own on page (their ScrollBars leaked)
24
+
11
25
  WHAT IS NEW IN v26.11.01 (see basic/basic-what-is-new.md):
12
26
  - basic: uiScale, scaleStyle(style, factor), scaleSize(value, factor): the components drawn in screen px keep
13
27
  their size on a page fitted with page.fit() (their "scale" param)
@@ -56,10 +70,9 @@ WHAT IS NEW IN v26.09.18 (see basic/basic-what-is-new.md for examples):
56
70
  The Art of Fun Coding — With basic.js
57
71
 
58
72
 
59
- Copyright 2020-2026 Bugra Ozden <bugra.ozden@gmail.com>
60
- - https://github.com/bug7a
61
-
73
+ Copyright 2020-2026 Bugra Ozden <bugra.ozden@gmail.com> (https://bug7a.github.io/)
62
74
  Licensed under the Apache License, Version 2.0
75
+ SPDX-License-Identifier: Apache-2.0
63
76
 
64
77
  */
65
- !function(){"use strict";const t={version:"26.11.01",library:"basic.js",isReady:0};window.basic=t,t.startTime=Date.now(),t.ACTION_COLOR="#689BD2",t.ACTION2_COLOR="cadetblue",t.WARNING_COLOR="tomato",t.ALERT_COLOR="gold",t.CANCEL_COLOR="lightgray",t.TEXT_COLOR="rgba(0, 0, 0, 0.8)",t.BACKGROUND_COLOR="whitesmoke",t.DARK_BACKGROUND_COLOR="#141414",t.FONT_SIZE=20,t.BUTTON_WIDTH=130,t.BUTTON_HEIGHT=50,t.BUTTON_COLOR=t.ACTION_COLOR,t.BUTTON_TEXT_COLOR="rgba(0, 0, 0, 0.65)",t.TEXTBOX_WIDTH=270,t.TEXTBOX_HEIGHT=50,t.gunler=["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],t.days=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],t.aylar=["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],t.months=["January","February","March","April","May","June","July","August","September","October","November","December"],window.that=null,window.previousThat=null,window.prevThat=null;let e,i,n=null;const s={};let o=0;const r={WITH_MOTION_TIME:50,DONT_MOTION_TIME:40};t.start=function(){window.page=new d,page.containerBox=null,z(page),t.isReady=1,page.mainBox=g(0,0,page.width,page.height),page.mainBox.containerBox=null,that.elem.style.position="fixed",that.color="transparent",page.onResize(function(){"function"==typeof page.refreshSize&&page.refreshSize()}),"function"==typeof start&&(start(),t.afterStart()),"function"==typeof loop&&(i||S(1e3))},t.afterStart=function(){};const l=function(t,e="log"){console[e](t)};window.println=l,window.random=function(t,e){let i=0;return null!=e?e<t?l("basic.js: random(): The second parameter (number) must be greater than the first.","error"):i=t+Math.floor(Math.random()*(e-t+1)):l("basic.js: random(): Two parameters (numbers) must be sent.","error"),i},t.num=function(t,e="float"){if("float"==e){const e=parseFloat(t);return Math.round(100*e)/100}if("integer"==e||"int"==e)return parseInt(t)},t.str=function(t){return String(t)},t.isMobile=function(){let t=0,e=navigator.userAgent||navigator.vendor||window.opera;return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=1),t},t.go=function(t,e="_self"){return window.open(t,e)},t.twoDigitFormat=function(t){return t<=9&&(t="0"+t),t},t.storage={save(t,e){try{return localStorage.setItem(t,JSON.stringify(e)),1}catch(e){return console.warn("storage save error:",t,e.name),0}},has(t){try{return null!==localStorage.getItem(t)}catch(t){return!1}},load(t){try{const e=localStorage.getItem(t);return e?JSON.parse(e):null}catch(e){return console.warn("storage parse error:",t),null}},remove(t){try{localStorage.removeItem(t)}catch(t){}},clear(){try{localStorage.clear()}catch(t){}}},t.time={get hour(){return(new Date).getHours()},get minute(){return(new Date).getMinutes()},get second(){return(new Date).getSeconds()},get millisecond(){return(new Date).getMilliseconds()}},t.date={get year(){return(new Date).getFullYear()},get monthNumber(){let t=(new Date).getMonth();return t++,t},get ayAdi(){return t.aylar[this.monthNumber-1]},get monthName(){return t.months[this.monthNumber-1]},get dayOfWeek(){return(new Date).getDay()},get gunAdi(){return t.gunler[this.dayOfWeek]},get dayName(){return t.days[this.dayOfWeek]},get dayOfMonth(){return(new Date).getDate()},get now(){return Date.now()}},t.sleep=function(t=0){return new Promise(function(e){setTimeout(e,t)})},t.nextFrame=function(){return new Promise(function(t){requestAnimationFrame(t)})},t.clamp=function(t,e,i){return Math.min(Math.max(t,e),i)},t.lerp=function(t,e,i){return t+(e-t)*i},t.objectOf=function(t){let e=t;for(;e;){if(e._basicObject)return e._basicObject;e=e.parentElement}return null},t.escapeHtml=function(t){const e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return String(null==t?"":t).replace(/[&<>"']/g,function(t){return e[t]})},t.isOn=function(t){return!0===t||1===t||"1"===t},t.addCss=function(t,e,i=0){let n=document.getElementById(t);return n&&!i||(n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n)),n.textContent=e),n},t.resolveTheme=function(t,e="light"){let i=e||"light";if("auto"===i){i=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const n=t[i];n||console.warn("Theme not found: "+i);const s={};return j(s,n||{}),j(s,t.light||{}),s},t.applyStylePackage=function(t,e,i){const n=t.styleName||i.styleName,s=e[n];s||console.warn("Style package not found: "+n);const o=!!s&&Object.prototype.hasOwnProperty.call(s,"style"),r=o?s.style:s,l={};if(j(l,t.style||{}),j(l,r||{}),t.style=l,o){const e=Object.assign({},s);delete e.style;for(const t in e)Array.isArray(e[t])&&(e[t]=e[t].slice());j(t,e)}return t},t.uiScale=1,t.SIZE_KEY_ENDINGS=["size","width","height","gap","space","spacing","padding","margin","round","radius","offset","thickness","top","left","right","bottom","border"],t.isSizeKey=function(e){const i=String(e).toLowerCase();return"lineheight"!==i&&t.SIZE_KEY_ENDINGS.some(t=>i.endsWith(t))},t.scaleSize=function(t,e){return"number"==typeof t?t*e:Array.isArray(t)?t.map(t=>"number"==typeof t?t*e:t):t},t.scaleCssText=function(t,e){return 1===e||"string"!=typeof t?t:t.replace(/(\d*\.?\d+)px/g,(t,i)=>Number(i)*e+"px")},t.scaleStyle=function(e,i){if(1===i||!e||"object"!=typeof e)return e;const n={};for(const s in e){const o=e[s];null!==o&&"object"==typeof o&&!Array.isArray(o)?n[s]=t.scaleStyle(o,i):n[s]=t.isSizeKey(s)?t.scaleSize(o,i):o}return n},t.storage.loadOr=function(e,i){const n=t.storage.load(e);return null===n?i:n};const a=function(t){if("string"==typeof t){const e=t.trim();return""===e||isNaN(Number(e))?e:Number(e)+"px"}return parseFloat(t)+"px"},h=function(t,e){if(!n)throw new Error("basic.js: The library is not ready yet. Create objects in start() or window.onload.");t._containerBox=n,n.elem.appendChild(e)},c=function(t){return!(!t||!(t._isFlex||t.elem&&"flex"==t.elem.style.display))},u=function(t,e,i){null!=i&&""!==i?t.setAttribute(e,String(i)):t.removeAttribute(e)};class m{constructor(t){this._type=t,this._visible=1,this._displayType="block",this._opacity=1,this._rotate=0,this._padding=0,this._motionString="none",this._clickable=0,this._eventFuncList=[]}get parentBox(){return this._containerBox}set parentBox(t){this._containerBox=t}get containerBox(){return this._containerBox}set containerBox(t){this._containerBox=t}get left(){return"absolute"==this.position?parseFloat(this.elem.style.left):this.elem.offsetLeft}set left(t){this.elem.style.right="",this.elem.style.left=a(t)}get top(){return"absolute"==this.position?parseFloat(this.elem.style.top):this.elem.offsetTop}set top(t){this.elem.style.bottom="",this.elem.style.top=a(t)}get right(){return parseFloat(this.elem.style.right)}set right(t){this.elem.style.left="",this.elem.style.right=a(t)}get bottom(){return parseFloat(this.elem.style.bottom)}set bottom(t){this.elem.style.top="",this.elem.style.bottom=a(t)}get totalLeft(){return T(this.elem,"Left")}get totalTop(){return T(this.elem,"Top")}get width(){return"string"!=typeof this._width?this._width||0:this.elem.offsetWidth}set width(t){"string"!=typeof t||""===t.trim()||isNaN(Number(t))||(t=Number(t)),this._width=t,this.elem.style.width=a(t)}get height(){return"string"!=typeof this._height?this._height||0:this.elem.offsetHeight}set height(t){"string"!=typeof t||""===t.trim()||isNaN(Number(t))||(t=Number(t)),this._height=t,this.elem.style.height=a(t)}get rotate(){return this._rotate}set rotate(t){this._rotate=parseInt(t),this.elem.style.transform=function(t,e,i){const n=e+"("+i+")",s="none"===t?"":t||"",o=new RegExp("(^|\\s|\\))"+e+"\\([^)]*\\)");return o.test(s)?s.replace(o,function(t,e){return e+n}):s.trim()?s.trim()+" "+n:n}(this.elem.style.transform,"rotate",t+"deg")}get visible(){return this._visible}set visible(t){this._visible=t,this.elem.style.display&&"none"!=this.elem.style.display&&(this._displayType=this.elem.style.display),this.elem.style.display=1==t?this._displayType:"none"}get clickable(){return this._clickable}set clickable(t){this._clickable=t,this._textElem.style.pointerEvents=1==t?"auto":"none"}get opacity(){return this._opacity}set opacity(t){this._opacity=t,this.elem.style.opacity=t}get color(){return this._backgroundColor}set color(t){this._backgroundColor=t,this._textElem.style.backgroundColor=t}get padding(){return this._padding||0}set padding(t){let e,i,n,s;if(this._padding=t,"number"==typeof t)e=i=n=s=t;else if(Array.isArray(t)){const o=t.length;1===o?e=i=n=s=t[0]:2===o||3===o?(e=i=t[0],n=s=t[1]):4===o&&(e=t[0],n=t[1],i=t[2],s=t[3])}this.elem.style.paddingLeft=e+"px",this.elem.style.paddingTop=n+"px",this.elem.style.paddingRight=i+"px",this.elem.style.paddingBottom=s+"px"}get border(){return this._border}set border(t){this._border=t,this._textElem.style.borderWidth=t+"px"}get borderColor(){return this._borderColor}set borderColor(t){this._borderColor=t,this._textElem.style.borderColor=t}get round(){return this._round}set round(t){this._round=t,this._textElem.style.borderRadius=t+"px"}get fontSize(){return this._fontSize}set fontSize(t){this._fontSize=t,this._textElem.style.fontSize=t+"px"}get textSize(){return this.fontSize}set textSize(t){this.fontSize=t}get textColor(){return this._textColor}set textColor(t){this._textColor=t,this._textElem.style.color=t}get textAlign(){return this._textAlign}set textAlign(t){this._textAlign=t,this._textElem.style.textAlign=t}get position(){return this.elem.style.position?this.elem.style.position:"absolute"}set position(t){this.elem.style.position=t,"relative"==t&&(this.left=0,this.top=0)}center(t){I(this,t)}centerBy(t,e){k(this,t,e)}aline(t,e,i=0,n){C(this,t,e,i,n)}get _textElem(){return this.elem}get css(){return this.elem.style}set css(t){if(t)if("string"!=typeof t)for(let e in t)this.elem.style[e]=t[e];else this.elem.style.cssText+="; "+t}get cursor(){return this._cursor||""}set cursor(t){this._cursor=t||"",this.elem.style.cursor=this._cursor,this._textElem!==this.elem&&(this._textElem.style.cursor=this._cursor)}get zIndex(){const t=parseInt(this.elem.style.zIndex);return isNaN(t)?0:t}set zIndex(t){this.elem.style.zIndex=""===t||null==t?"":String(t)}get boxShadow(){return this.elem.style.boxShadow}set boxShadow(t){this.elem.style.boxShadow=t||""}get fontFamily(){return this._fontFamily||""}set fontFamily(t){this._fontFamily=t||"",this._applyFont()}get bold(){return this._bold?1:0}set bold(t){this._bold=t?1:0,this._applyFont()}_applyFont(){const t=this._fontFamily||"",e=this._textElem;""===t||0===t.indexOf("opensans")?(e.style.fontFamily=this._bold?"opensans-bold":t,e.style.fontWeight=""):(e.style.fontFamily=t,e.style.fontWeight=this._bold?"bold":"")}get italic(){return this._italic?1:0}set italic(t){this._italic=t?1:0,this._textElem.style.fontStyle=t?"italic":""}get lineHeight(){return this._lineHeight}set lineHeight(t){this._lineHeight=t,this._textElem.style.lineHeight="number"==typeof t?t+"px":t||""}get ellipsis(){return this._ellipsis?1:0}set ellipsis(t){this._ellipsis=t?1:0;const e=this._textElem;e.style.whiteSpace=t?"nowrap":"",e.style.textOverflow=t?"ellipsis":"",e.style.overflow=t?"hidden":0===this._clipContent?"visible":""}get selectable(){return this._selectable?1:0}set selectable(t){this._selectable=t?1:0,this.elem.style.userSelect=t?"text":"",this.elem.style.webkitUserSelect=t?"text":"",t&&(this.clickable=1)}get grow(){return this._grow||0}set grow(t){this._grow=t,this.elem.style.flexGrow=String(t)}get shrink(){return this._shrink||0}set shrink(t){this._shrink=t,this.elem.style.flexShrink=String(t)}get plainText(){return this._textElem.textContent}set plainText(t){this._textElem.textContent=null==t?"":String(t)}get role(){return this._textElem.getAttribute("role")||""}set role(t){u(this._textElem,"role",t)}get aria(){const t={};for(const e of this._textElem.attributes)0===e.name.indexOf("aria-")&&(t[e.name.slice(5)]=e.value);return t}set aria(t){if(t)for(let e in t)u(this._textElem,"aria-"+e.toLowerCase(),t[e])}get tabIndex(){return this._textElem.tabIndex}set tabIndex(t){null!=t&&""!==t?this._textElem.tabIndex=Number(t):this._textElem.removeAttribute("tabindex")}get isRemoved(){return this._isRemoved?1:0}get children(){const t=[],e=this.elem.children;for(let i=0;i<e.length;i++)e[i]._basicObject&&t.push(e[i]._basicObject);return t}show(){return this.visible=1,this}hide(){return this.visible=0,this}toggle(){return this.visible=1==this.visible?0:1,this}setSize(t,e){return null!=t&&(this.width=t),null!=e&&(this.height=e),this}setPosition(t,e){return null!=t&&(this.left=t),null!=e&&(this.top=e),this}bringToFront(){let t=0;const e=this.elem.parentElement;if(e)for(let i=0;i<e.children.length;i++){const n=parseInt(e.children[i].style.zIndex);!isNaN(n)&&n>t&&(t=n)}return this.zIndex=t+1,this}contains(t){return!!(t&&t!==this&&t.elem&&this.elem.contains(t.elem))}once(t,e,i=!1){let n=null;return n=this.on(t,function(t,i){n&&n(),e(t,i)},i),n}animate(t={},e=300,i="ease"){const n=this;return new Promise(function(s){if(n._isRemoved)s(n);else{n._animateTimeout?(clearTimeout(n._animateTimeout),n._animateResolve&&n._animateResolve(n)):n._animateBaseTransition=n.elem.style.transition,n.elem.style.transition="all "+e+"ms "+i,n.elem.offsetWidth;for(let e in t)n[e]=t[e];n._animateResolve=s,n._animateTimeout=setTimeout(function(){n._animateTimeout=null,n._animateResolve=null,n._isRemoved||(n.elem.style.transition=n._animateBaseTransition||""),s(n)},e+20)}})}listenTo(t,e,i,n=!1){return this._addEventListener(e,i,t,n)}onPageResize(t){return this.listenTo(window,"resize",t)}after(t,e){const i=this;this._timerList||(this._timerList=new Set);const n=setTimeout(function(){i._timerList.delete(n),i._isRemoved||e(i)},t);return this._timerList.add(n),function(){clearTimeout(n),i._timerList.delete(n)}}every(t,e){const i=this;this._intervalList||(this._intervalList=new Set);const n=setInterval(function(){i._isRemoved||e(i)},t);return this._intervalList.add(n),function(){clearInterval(n),i._intervalList.delete(n)}}own(t){return t?(this._ownedList||(this._ownedList=[]),this._ownedList.push(t),t):t}onHoverChange(t){const e=this.on("mouseenter",function(e,i){t(e,1,i)}),i=this.on("mouseleave",function(e,i){t(e,0,i)});return function(){e(),i()}}setFocusRing(e="rgba(95, 158, 160, 0.8)"){t.addCss("basic-focus-ring",".basic-focus-ring:focus { outline: none; }.basic-focus-ring:focus-visible { outline: 2px solid var(--basic-focus-ring); outline-offset: -2px; }");const i=this._textElem;return i.classList.toggle("basic-focus-ring",!!e),e&&i.style.setProperty("--basic-focus-ring",e),this}remove(){if(!this._isRemoved){if(this._isRemoved=1,0==o){o++;try{const t=this.elem.querySelectorAll("*");for(let e=0;e<t.length;e++){const i=t[e]._basicObject;if(i&&i!==this&&!i._isRemoved)try{"function"==typeof i.destroy&&i.destroy(),i._isRemoved||i.remove()}catch(t){l("basic.js: A child object could not be removed: "+t.message,"warn")}}}finally{o--}}if(this._setMotionTimeout&&clearTimeout(this._setMotionTimeout),this._withMotionTimeout&&clearTimeout(this._withMotionTimeout),this._dontMotionTimeout&&clearTimeout(this._dontMotionTimeout),this._animateTimeout&&clearTimeout(this._animateTimeout),this._animateResolve&&(this._animateResolve(this),this._animateResolve=null),this._timerList&&(this._timerList.forEach(function(t){clearTimeout(t)}),this._timerList.clear()),this._intervalList&&(this._intervalList.forEach(function(t){clearInterval(t)}),this._intervalList.clear()),this._ownedList){const t=this._ownedList;this._ownedList=null,t.forEach(function(t){try{t&&!t._isRemoved&&"function"==typeof t.remove&&t.remove()}catch(t){l("basic.js: An owned object could not be removed: "+t.message,"warn")}})}if(this._eventFuncList&&this._eventFuncList.length)for(let t=this._eventFuncList.length-1;t>=0;t--){const e=this._eventFuncList[t];e.elem.removeEventListener(e.eventName,e.eventFunc,e.capture),this._eventFuncList.pop()}s&&"function"==typeof s.remove_onResize&&s.remove_onResize(this.elem,null),this.elem.remove()}}props(t,e,i){return N(this,t,e,i),this}_addEventListener(t,e,i,n=!1){let s=this;const o=function(t){e(s,t)};i.addEventListener(t,o,n);const r={};r.eventName=t,r.originalFunc=e,r.eventFunc=o,r.elem=i,r.capture="object"==typeof n&&null!==n?!!n.capture:!!n,this._eventFuncList.push(r);return function(){const t=s._eventFuncList?s._eventFuncList.indexOf(r):-1;t<0||(s._eventFuncList.splice(t,1),r.elem.removeEventListener(r.eventName,r.eventFunc,r.capture))}}_removeEventListener(t,e,i){for(let n=0;n<this._eventFuncList.length;n++){const s=this._eventFuncList[n];if(s.originalFunc==e&&s.eventName==t&&s.elem==i){this._eventFuncList.splice(n,1),i.removeEventListener(t,s.eventFunc,s.capture);break}}}on(t,e,i=!1){const n=this._textElem;return this.clickable=1,this._addEventListener(t,e,n,i)}off(t,e){const i=this._textElem;this._removeEventListener(t,e,i)}onResize(t){s.onResize(this,t)}remove_onResize(t){s.remove_onResize(this.elem,t)}setMotion(t){const e=this;this._setMotionTimeout&&clearTimeout(this._setMotionTimeout),this._setMotionTimeout=setTimeout(function(){e.setMotionNow(t)},r.DONT_MOTION_TIME)}getMotion(){return this._motionString}setMotionNow(t){this._motionString=t,this.elem.style.transition=t}withMotion(t){const e=this;this._withMotionTimeout&&clearTimeout(this._withMotionTimeout),this._withMotionTimeout=setTimeout(function(){e.canMotionNow(),t(e)},r.WITH_MOTION_TIME)}dontMotion(){this.elem.style.transition="none";const t=this;this._dontMotionTimeout&&clearTimeout(this._dontMotionTimeout),this._dontMotionTimeout=setTimeout(function(){t.elem.style.transition=t._motionString},r.DONT_MOTION_TIME)}canMotionNow(){this.elem.style.transition=this._motionString}}class d{constructor(){this._bodyElement=document.getElementsByTagName("BODY")[0],this._element=this._bodyElement,this._backgroundColor="white",this._zoom=1}get elem(){return this._element}get element(){return this._element}get bodyElement(){return this._bodyElement}get mainBox(){return this._box}set mainBox(t){this._box=t,this._element=this._box.elem}get width(){let t;return t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,O(t)}get height(){let t;return t=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,O(t)}get html(){return this._box.elem.innerHTML}set html(t){this._box.elem.innerHTML=t}get zoom(){return this._zoom}set zoom(t){this._zoom=t,this.bodyElement.style.transformOrigin="top left",this.bodyElement.style.transform="scale("+t+")",page.refreshSize()}get color(){return this._backgroundColor}set color(t){this._backgroundColor=t,this.bodyElement.style.backgroundColor=t}fit(t=document.body.clientWidth,e){page.zoom=1;let i=page.width;e=e||t,page.zoom=i>e?e/t:i/t}autoFit(t,e){page.zoom=1;const i=t/e;let n=0;n=page.width/page.height<=i?page.width:page.height*i,page.fit(t,n)}refreshSize(){page.mainBox.width=page.width,page.mainBox.height=page.height}onClick(t){this._box._addEventListener("click",t,window)}remove_onClick(t){this._box._removeEventListener("click",t,window)}onResize(t){this._box._addEventListener("resize",t,window)}remove_onResize(t){this._box._removeEventListener("resize",t,window)}on(t,e,i=!1){return this._box._addEventListener(t,e,window,i)}off(t,e){this._box._removeEventListener(t,e,window)}onKeyDown(t){return this.on("keydown",t)}remove_onKeyDown(t){this.off("keydown",t)}get title(){return document.title}set title(t){document.title=t}add(t){t.containerBox!=this&&(t.containerBox=this,this.elem.appendChild(t.elem))}}class p extends m{constructor(t=-1e3,e=-1e3,i=100,s=100){super("box"),this._backgroundColor="whitesmoke",this._border=0,this._borderColor="rgba(0, 0, 0, 0.6)",this._round=0,this._fontSize=16,this._textColor="rgba(0, 0, 0, 0.8)",this._textAlign="left",this._clipContent=1;const o=document.createElement("DIV");o.classList.add("basic_box"),o.style.left=a(t),o.style.top=a(e),this._element=o,h(this,this._element),this.width=i,this.height=s,c(n)&&(this.position="relative"),B(this)}get elem(){return this._element}get element(){return this._element}get text(){return this.elem.innerHTML}set text(t){this.elem.innerHTML=t}get html(){return this.elem.innerHTML}set html(t){this.elem.innerHTML=t}get clipContent(){return this._clipContent}set clipContent(t){this._clipContent=t,t?(this.elem.style.overflowX="hidden",this.elem.style.overflowY="hidden"):(this.elem.style.overflowX="visible",this.elem.style.overflowY="visible")}get scrollX(){return"auto"==this.elem.style.overflowX?1:0}get scrollY(){return"auto"==this.elem.style.overflowY?1:0}set scrollX(t){this.elem.style.overflowX="hidden",1==t&&(this.clickable=1,this.elem.style.overflowX="auto")}set scrollY(t){this.elem.style.overflowY="hidden",1==t&&(this.clickable=1,this.elem.style.overflowY="auto")}onClick(t){this.clickable=1,this._addEventListener("click",t,this.elem)}remove_onClick(t){this._removeEventListener("click",t,this.elem)}add(t){t.containerBox=this,this.elem.appendChild(t.elem)}in(t){A(this,t)}}const g=function(t,e,i,n){return new p(t,e,i,n)};t.createBox=g;class f extends m{constructor(e=-1e3,i=-1e3,s=t.BUTTON_WIDTH,o=t.BUTTON_HEIGHT){super("button"),this._backgroundColor=t.BUTTON_COLOR,this._border=1,this._borderColor="rgba(0, 0, 0, 0.40)",this._round=4,this._fontSize=20,this._textColor=t.BUTTON_TEXT_COLOR,this._textAlign="center",this._clickable=1;const r=document.createElement("BUTTON");r.innerHTML="Button",r.classList.add("basic_button"),r.setAttribute("type","button"),r.style.left=a(e),r.style.top=a(i),this._element=r,h(this,this._element),this.width=s,this.height=o,c(n)&&(this.position="relative"),B(this)}get elem(){return this._element}get element(){return this._element}get buttonElement(){return this._element}get text(){return this.buttonElement.innerHTML}set text(t){this.buttonElement.innerHTML=t}get value(){return this.buttonElement.value}set value(t){this.buttonElement.value=t}get enabled(){return this.buttonElement.disabled?0:1}set enabled(t){this.buttonElement.disabled=t?0:1}get minimal(){return this.buttonElement.classList.contains("minimal")?1:0}set minimal(t){t?this.buttonElement.classList.add("minimal"):this.buttonElement.classList.remove("minimal"),""===this.buttonElement.style.borderWidth&&(this._border=t?0:1)}get spaceX(){return parseInt(this.elem.style.paddingLeft)||0}set spaceX(t){this.elem.style.paddingLeft=t+"px",this.elem.style.paddingRight=t+"px"}onClick(t){this.clickable=1,this._addEventListener("click",t,this.buttonElement)}remove_onClick(t){this._removeEventListener("click",t,this.buttonElement)}add(t){l("basic.js: add(): Insertion cannot be made inside the Button object.","error")}}const _=function(t,e,i,n){return new f(t,e,i,n)};t.createButton=_;class b extends m{constructor(e=-1e3,i=-1e3,s=t.TEXTBOX_WIDTH,o=t.TEXTBOX_HEIGHT){super("textbox"),this._backgroundColor="white",this._border=1,this._borderColor="#4A4A4A",this._round=4,this._fontSize=20,this._textColor="#4A4A4A",this._textAlign="left",this._clickable=1;const r=document.createElement("DIV");r.classList.add("basic_textbox-main"),this._mainElement=r;const l=document.createElement("DIV");l.classList.add("basic_textbox-title"),l.innerHTML="",this._titleElement=l;const u=document.createElement("INPUT");u.value="",u.classList.add("basic_textbox"),u.setAttribute("type","text"),u.style.width="100%",u.style.height="100%",this._element=u,r.style.left=a(e),r.style.top=a(i),r.appendChild(this._titleElement),r.appendChild(this._element),h(this,this._mainElement),this.width=s,this.height=o,c(n)&&(this.position="relative"),B(this)}get elem(){return this._mainElement}get element(){return this._mainElement}get inputElement(){return this._element}set inputElement(t){this._element=t}get titleElement(){return this._titleElement}get text(){return this.inputElement.value}set text(t){this.inputElement.value=null==t?"":String(t)}get _textElem(){return this.inputElement||this.elem}get title(){return this.titleElement.innerHTML}set title(t){this.titleElement.innerHTML=t}get enabled(){return this.inputElement.disabled?0:1}set enabled(t){this.inputElement.disabled=t?0:1}get minimal(){return this.inputElement.classList.contains("minimal")?1:0}set minimal(t){t?this.inputElement.classList.add("minimal"):this.inputElement.classList.remove("minimal"),""===this.inputElement.style.borderWidth&&(this._border=t?0:1)}get value(){return this.text}set value(t){this.text=t}get plainText(){return this.text}set plainText(t){this.text=t}get placeholder(){return this.inputElement.placeholder}set placeholder(t){this.inputElement.placeholder=null==t?"":String(t)}get inputType(){return this.inputElement.type}set inputType(t){this.inputElement.type=t||"text"}get maxLength(){return this.inputElement.maxLength>0?this.inputElement.maxLength:0}set maxLength(t){t>0?this.inputElement.maxLength=t:this.inputElement.removeAttribute("maxlength")}get readOnly(){return this.inputElement.readOnly?1:0}set readOnly(t){this.inputElement.readOnly=!!t}focus(){return this.inputElement.focus(),this}blur(){return this.inputElement.blur(),this}select(){return this.inputElement.select(),this}onEnter(t){const e=function(e,i){"Enter"===i.key&&t(e,i)};return e._enterFunc=t,this._addEventListener("keydown",e,this.inputElement)}remove_onEnter(t){for(let e=this._eventFuncList.length-1;e>=0;e--){const i=this._eventFuncList[e];"keydown"==i.eventName&&i.originalFunc._enterFunc===t&&(i.elem.removeEventListener("keydown",i.eventFunc,i.capture),this._eventFuncList.splice(e,1))}}onChange(t){this._addEventListener("input",t,this.inputElement)}remove_onChange(t){this._removeEventListener("input",t,this.inputElement)}add(t){l("basic.js: add(): Insertion cannot be made inside the TextBox object.","error")}}const y=function(t,e,i,n){return new b(t,e,i,n)};t.createTextBox=y,t.createInput=y;class w extends m{constructor(t=-1e3,e=-1e3,i="auto",s="auto"){super("label"),this._backgroundColor="transparent",this._border=0,this._borderColor="rgba(0, 0, 0, 0.6)",this._round=0,this._fontSize=20,this._textColor="rgba(0, 0, 0, 0.8)",this._textAlign="left";const o=document.createElement("DIV");o.classList.add("basic_label"),o.style.left=a(t),o.style.top=a(e),this._element=o,h(this,this._element),this.width=i,this.height=s,c(n)&&(this.position="relative"),B(this)}get elem(){return this._element}get element(){return this._element}get text(){return this.elem.innerHTML}set text(t){this.elem.innerHTML=t}get clipContent(){return 0===this._clipContent?0:1}set clipContent(t){this._clipContent=t?1:0,this._ellipsis||(this.elem.style.overflow=t?"":"visible")}get space(){return parseInt(this.elem.style.padding)||0}set space(t){this.elem.style.padding=t+"px"}get spaceX(){return parseInt(this.elem.style.paddingLeft)||0}set spaceX(t){this.elem.style.paddingLeft=t+"px",this.elem.style.paddingRight=t+"px"}get spaceY(){return parseInt(this.elem.style.paddingTop)||0}set spaceY(t){this.elem.style.paddingTop=t+"px",this.elem.style.paddingBottom=t+"px"}onClick(t){this.clickable=1,this._addEventListener("click",t,this.elem)}remove_onClick(t){this._removeEventListener("click",t,this.elem)}add(t){l("basic.js: add(): Insertion cannot be made inside the Label object.","error")}}const x=function(t,e,i,n){return new w(t,e,i,n)};t.createLabel=x;class v extends m{constructor(t=-1e3,e=-1e3,i=0,s=0){super("image"),this._autoSize=1,this._space=0,this._backgroundColor="transparent",this._border=0,this._borderColor="rgba(0, 0, 0, 0.6)",this._round=0;const o=document.createElement("IMG");o.classList.add("basic_image"),o.style.left=a(t),o.style.top=a(e),this._element=o,h(this,this._element),super.width=i,super.height=s;const r=this;(i||s)&&(this.autoSize=0),o.addEventListener("load",function(){if(r.autoSize>0){const t=r.autoSize;r.width=parseInt(r.naturalWidth/t)+"px",r.height=parseInt(r.naturalHeight/t)+"px",r.autoSize=t}}),c(n)&&(this.position="relative"),B(this)}get elem(){return this._element}get element(){return this._element}get imageElement(){return this._element}get width(){return super.width}set width(t){this.autoSize=0,super.width=t}get height(){return super.height}set height(t){this.autoSize=0,super.height=t}get alt(){return this._alt}set alt(t){this._alt=t,this.imageElement.setAttribute("alt",null==t?"":String(t))}get imageFit(){return this._imageFit||""}set imageFit(t){this._imageFit=t||"",this.imageElement.style.objectFit=this._imageFit}get naturalWidth(){return this.imageElement.naturalWidth}get naturalHeight(){return this.imageElement.naturalHeight}get autoSize(){return this._autoSize}set autoSize(t){this._autoSize=t}get space(){return this._space}set space(t){t>50&&(t=50),t<0&&(t=0),this._space=t;const e=parseInt(this.width/100*t),i=parseInt(this.height/100*t);this.elem.style.paddingLeft=e+"px",this.elem.style.paddingRight=e+"px",this.elem.style.paddingTop=i+"px",this.elem.style.paddingBottom=i+"px"}onClick(t){this.clickable=1,this._addEventListener("click",t,this.elem)}remove_onClick(t){this._removeEventListener("click",t,this.elem)}onLoad(t){this._addEventListener("load",t,this.imageElement)}remove_onLoad(t){this._removeEventListener("load",t,this.imageElement)}load(t){this.imageElement.setAttribute("src",t),void 0===this._alt&&this.imageElement.setAttribute("alt",t)}add(t){l("basic.js: add(): Insertion cannot be made inside the Image object.","error")}}const E=function(t,e,i,n){return new v(t,e,i,n)};t.createImage=E,t.createIcon=E;window.BSound=class{constructor(){const t=document.createElement("AUDIO"),e=document.createElement("SOURCE");t.appendChild(e),this._element=t,document.body.appendChild(this._element),B(this)}get elem(){return this._element}get element(){return this._element}get soundElement(){return this._element}get time(){return isNaN(this.elem.duration)?0:this.elem.duration}get timeLeft(){return isNaN(this.elem.duration)?0:this.elem.duration-this.elem.currentTime}get currentTime(){return this.elem.currentTime}get paused(){return this.elem.paused}get playing(){return!this.elem.paused}get loop(){return"loop"==this.elem.getAttribute("loop")?1:0}set loop(t){1==t?this.elem.setAttribute("loop","loop"):this.elem.removeAttribute("loop")}play(){this.paused&&this.elem.play()}pause(t){this.paused||this.elem.pause()}stop(){this.paused||this.elem.pause(),this.elem.currentTime=0}onLoad(t){let e=this;this.elem.addEventListener("canplaythrough",function(){t(e)})}load(t){const e={mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",m4a:"audio/mp4",aac:"audio/aac",webm:"audio/webm"},i=String(t).split(/[?#]/)[0].split(".").pop().toLowerCase(),n=this.elem.children[0];n.setAttribute("src",t),e[i]?n.setAttribute("type",e[i]):n.removeAttribute("type"),this.elem.load()}remove(){this.elem.remove()}};const T=function(t,e){let i=0,n=t;for(;n.offsetParent;)i+=n["offset"+e],n=n.offsetParent;return i},L=function(...t){const e={};for(const i of t)i&&j(e,i);return e},N=function(t,e,i,n){const s=L(n,i,e);for(let e in s)t[e]=s[e]},I=function(t,e){if("left"==e||!e){const e=t.containerBox.width-2*(t.containerBox.border||0);t.left=parseInt((e-t.width)/2)}if("top"==e||!e){const e=t.containerBox.height-2*(t.containerBox.border||0);t.top=parseInt((e-t.height)/2)}},k=function(t,e,i){if("left"==i||!i){const n=e.width;t.left=parseInt((n-t.width)/2)+e.left,i&&(t.top=e.top)}if("top"==i||!i){const n=e.height;t.top=parseInt((n-t.height)/2)+e.top,i&&(t.left=e.left)}},C=function(t,e,i,n,s){if("left"==i?(isNaN(e.left)?isNaN(e.right)||(t.right=parseInt(e.right+e.width+n)):t.left=parseInt(e.left-t.width-n),isNaN(e.top)?t.bottom=parseInt(e.bottom):t.top=parseInt(e.top)):"top"==i?(isNaN(e.top)?isNaN(e.bottom)||(t.bottom=parseInt(e.bottom+e.height+n)):t.top=parseInt(e.top-t.height-n),isNaN(e.left)?t.right=parseInt(e.right):t.left=parseInt(e.left)):"right"==i?(isNaN(e.left)?isNaN(e.right)||(t.right=parseInt(e.right-t.width-n)):t.left=parseInt(e.left+e.width+n),isNaN(e.top)?t.bottom=parseInt(e.bottom):t.top=parseInt(e.top)):"bottom"==i?(isNaN(e.top)?isNaN(e.bottom)||(t.bottom=parseInt(e.bottom-t.height-n)):t.top=parseInt(e.top+e.height+n),isNaN(e.left)?t.right=parseInt(e.right):t.left=parseInt(e.left)):(isNaN(e.top)?isNaN(e.bottom)||(t.bottom=parseInt(e.bottom)):t.top=parseInt(e.top),isNaN(e.left)?isNaN(e.right)||(t.right=parseInt(e.right)):t.left=parseInt(e.left)),"left"==i||"right"==i){const i=e.height-t.height;switch(s){case"top":isNaN(e.top)&&(isNaN(e.bottom)||(t.bottom+=parseInt(i)));break;case"bottom":isNaN(e.top)?isNaN(e.bottom):t.top+=parseInt(i);break;case"center":isNaN(e.top)?isNaN(e.bottom)||(t.bottom+=parseInt(i/2)):t.top+=parseInt(i/2)}}else if("top"==i||"bottom"==i){const i=e.width-t.width;switch(s){case"left":isNaN(e.left)&&(isNaN(e.right)||(t.right=parseInt(e.right+i)));break;case"right":isNaN(e.left)?isNaN(e.right):t.left+=parseInt(i);break;case"center":isNaN(e.left)?isNaN(e.right)||(t.right+=parseInt(i/2)):t.left+=parseInt(i/2)}}},O=function(t){return parseFloat(t*(1/page.zoom))};window.withPageZoom=O;const S=function(t){"function"==typeof loop&&(i&&(i=clearInterval(i)),0==t||(i=setInterval(loop,t)))};window.setLoopTimer=S;const z=function(t){e=n||page,n=t};window.setDefaultContainerBox=z,window.restoreDefaultContainerBox=function(){n=e||page};const M=function(){return n};window.getDefaultContainerBox=M;const A=function(t,e){const i=M(),n=F;F=[],z(t);try{return e(t)}finally{F=n,z(i)}};window.createIn=A;const B=function(t){t&&t.elem&&(t.elem._basicObject=t),previousThat=that,prevThat=previousThat,that=t};window.makeBasicObject=B;const j=function(t,e,i=1,n=4){if(!(i>n))for(let s in e){if("__proto__"===s||"constructor"===s||"prototype"===s)continue;const o=e[s],r=t[s];if("object"!=typeof o||null===o||Array.isArray(o))s in t||(t[s]=o);else{if(!("Object"===Object.getPrototypeOf(o)?.constructor?.name)){s in t||(t[s]=o);continue}if(i>=n){s in t||(t[s]=o);continue}("object"!=typeof r||null===r||Array.isArray(r))&&(t[s]={}),j(t[s],o,i+1,n)}}};window.mergeIntoIfMissing=j,s.map=new Map,s.onResize=function(t,e){const i=s.map.get(t.elem)||[];i.push({obj:t,func:e}),s.map.set(t.elem,i),s.whenDetected.observe(t.elem)},s.remove_onResize=function(t,e){const i=s.map.get(t);if(!i)return;const n=e?i.filter(function(t){return t.func!=e}):[];n.length?s.map.set(t,n):(s.map.delete(t),s.whenDetected.unobserve(t))},s.whenDetected=new ResizeObserver(function(t){for(let e=0;e<t.length;e++){const i=s.map.get(t[e].target);if(!i)continue;const n=i.slice();for(let t=0;t<n.length;t++)n[t].func(n[t].obj)}});let F=[],R=null;const D=function(t){return 0==F.length&&F.push(M()),z(t),F.push(t),R&&clearTimeout(R),R=setTimeout(function(){const t=F.length-1;t>0&&l("basic.js: Some started boxes were not ended. Count: "+t,"warn")},100),t},H={color:"transparent"},W={flexDirection:"row",flexWrap:"nowrap",alignContent:"center",justifyContent:"center",alignItems:"center",gap:"0px",flexBasis:"auto",flexGrow:0,flexShrink:0},X=function(t){switch(t){case"left":case"top":case"start":return"flex-start";case"right":case"bottom":case"end":return"flex-end";case"center":return"center";default:return t}},P=function(t){return"vertical"==t?"column":"row"},G={"left top":["flex-start","flex-start"],"center top":["center","flex-start"],"right top":["flex-end","flex-start"],"left center":["flex-start","center"],"center center":["center","center"],"right center":["flex-end","center"],"left bottom":["flex-start","flex-end"],"center bottom":["center","flex-end"],"right bottom":["flex-end","flex-end"]};G.center=G["center center"];for(const t of Object.keys(G)){const e=t.split(" ");2==e.length&&(G[e[1]+" "+e[0]]=G[t])}const U=function(t,e,i){const n=G[e]||G.center;t.alignContent="center",t.justifyContent=i?n[0]:n[1],t.alignItems=i?n[1]:n[0]},Y=function(t){return"number"==typeof t&&isFinite(t)?t+"px":t},K={flow:{get:function(){return this._flow},set:function(t){this._flow=t,this.elem.style.flexDirection=P(t),this.align=this.align}},align:{get:function(){return this._align},set:function(t){this._align=t,U(this.elem.style,t,"row"==this.elem.style.flexDirection),this._justify&&(this.elem.style.justifyContent=X(this._justify))}},gap:{get:function(){return this._gap},set:function(t){this._gap=Y(t),this.elem.style.gap=this._gap}},wrap:{get:function(){return this._wrap||0},set:function(t){this._wrap=t?1:0,this.elem.style.flexWrap=t?"wrap":"nowrap"}},justify:{get:function(){return this._justify||""},set:function(t){this._justify=t,this.elem.style.justifyContent=X(t)}}},q=function(t={},e,i,n,s){const o=[t,e,i,n,s],r=o.findIndex(t=>"object"==typeof t);let l={},a=null;-1==r?a=g(t,e,i,n):(l=o[r],a=g(...[0,0,"100%","100%"].map((t,e)=>e<r?o[e]:t))),(l.fit||l.hug)&&(l.fit=1,l.hug=1,l.width="auto",l.height="auto"),l.align&&(l.flow||(l.flow="horizontal")),l.flow&&(a._flow=l.flow,l.flexDirection=P(l.flow)),l.align&&(a._align=l.align,U(l,l.align,"row"==l.flexDirection)),void 0!==l.wrap&&(a._wrap=l.wrap?1:0,l.flexWrap=l.wrap?"wrap":"nowrap"),l.justify&&(a._justify=l.justify,l.justifyContent=X(l.justify)),"number"==typeof l.gap&&(l.gap=Y(l.gap)),that.elem.style.display="flex",a._isFlex=1,a.props(H,W,l);for(let t in W)a.elem.style[t]=a[t];return void 0!==l.grow&&(a.grow=l.grow),void 0!==l.shrink&&(a.shrink=l.shrink),l.css&&(a.css=l.css),a._propsCss=l.css,a.gap&&(a._gap=a.gap),Object.defineProperties(a,K),D(a)};window.startFlexBox=q,window.AutoLayout=q,window.HGroup=function(...t){return q(...t)},window.VGroup=function(...t){const e=q(...t);return e.flow="vertical",e._propsCss&&(e.css=e._propsCss),e};const $=function(...t){return D(nt(...t))};window.startBox=$;const J=function(){0!=F.length?(F.length>1&&F.pop(),z(F[F.length-1]),1==F.length&&(F=[])):l("basic.js: There is no started box to end. (Extra end call)","warn")};window.endBox=J,window.endFlexBox=J,window.endAutoLayout=J,window.endGroup=J;let V=null,Z=null;const Q=[],tt=function(){V=that,Z=previousThat,Q.push({that:that,previousThat:previousThat})};window.saveCurrentThat=tt;const et=function(){const t=Q.pop();t&&(V=t.that,Z=t.previousThat),that=V,previousThat=Z,prevThat=previousThat};window.restoreThatFromSaved=et;const it=function(t){return function(...e){let i={};e.length&&"object"==typeof e[e.length-1]&&(i=e.pop());const n=t(...e);return n.props(i),n}};window.Label=it(x),window.Input=it(y),window.Icon=it(E);const nt=it(g);window.Box=nt,window.Button=it(_),window.startObject=function(t,e){const i=L(e,t);return i.color||(i.color="transparent"),tt(),$(i)},window.endObject=function(t){return J(),et(),B(t),t},window.startExtendedObject=function(t,e,i){const n=t(L(i,e));return tt(),n},window.endExtendedObject=function(t){return et(),B(t),t},window.Black=function(t=1){return 0==t?"transparent":1==t?"black":`rgba(0,0,0,${t})`},window.White=function(t=1){return 0==t?"transparent":1==t?"white":`rgba(255,255,255,${t})`},window.Alpha=function(t,e=1){if(0==e)return"transparent";if(1==e)return t;const i=String(t).trim();if(!/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(i)){return"color-mix(in srgb, "+t+" "+Math.round(1e3*e)/10+"%, transparent)"}const n=i.slice(1),s=n.length<=4?n.split("").map(function(t){return t+t}).join(""):n,o=parseInt(s.slice(0,2),16),r=parseInt(s.slice(2,4),16),l=parseInt(s.slice(4,6),16),a=8===s.length?parseInt(s.slice(6,8),16)/255:1;return`rgba(${o},${r},${l},${Math.round(a*e*1e3)/1e3})`},window.waitAndRun=function(t,e,i=3){return t&&clearTimeout(t),t=setTimeout(e,i)},window.addEventListener("load",function(){t.start()})}();
78
+ !function(){"use strict";const t={version:"26.11.10",library:"basic.js",isReady:0};window.basic=t,t.startTime=Date.now(),t.ACTION_COLOR="#689BD2",t.ACTION2_COLOR="cadetblue",t.WARNING_COLOR="tomato",t.ALERT_COLOR="gold",t.CANCEL_COLOR="lightgray",t.TEXT_COLOR="rgba(0, 0, 0, 0.8)",t.BACKGROUND_COLOR="whitesmoke",t.DARK_BACKGROUND_COLOR="#141414",t.FONT_SIZE=20,t.BUTTON_WIDTH=130,t.BUTTON_HEIGHT=50,t.BUTTON_COLOR=t.ACTION_COLOR,t.BUTTON_TEXT_COLOR="rgba(0, 0, 0, 0.65)",t.TEXTBOX_WIDTH=270,t.TEXTBOX_HEIGHT=50,t.gunler=["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],t.days=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],t.aylar=["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],t.months=["January","February","March","April","May","June","July","August","September","October","November","December"],window.that=null,window.previousThat=null,window.prevThat=null;let e,i,n=null;const s={},o=[],r={WITH_MOTION_TIME:50,DONT_MOTION_TIME:40};t.start=function(){window.page=new p,page.containerBox=null,A(page),t.isReady=1,page.mainBox=f(0,0,page.width,page.height),page.mainBox.containerBox=null,that.elem.style.position="fixed",that.color="transparent",page.onResize(function(){"function"==typeof page.refreshSize&&page.refreshSize()}),"function"==typeof start&&(start(),t.afterStart()),"function"==typeof loop&&(i||z(1e3))},t.afterStart=function(){};const l=function(t,e="log"){console[e](t)};window.println=l,window.random=function(t,e){let i=0;return null!=e?e<t?l("basic.js: random(): The second parameter (number) must be greater than the first.","error"):i=t+Math.floor(Math.random()*(e-t+1)):l("basic.js: random(): Two parameters (numbers) must be sent.","error"),i},t.num=function(t,e="float"){if("float"==e){const e=parseFloat(t);return Math.round(100*e)/100}if("integer"==e||"int"==e)return parseInt(t)},t.str=function(t){return String(t)},t.isMobile=function(){let t=0,e=navigator.userAgent||navigator.vendor||window.opera;return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=1),t},t.go=function(t,e="_self"){return window.open(t,e)},t.twoDigitFormat=function(t){return t<=9&&(t="0"+t),t},t.storage={save(t,e){try{return localStorage.setItem(t,JSON.stringify(e)),1}catch(e){return console.warn("storage save error:",t,e.name),0}},has(t){try{return null!==localStorage.getItem(t)}catch(t){return!1}},load(t){try{const e=localStorage.getItem(t);return e?JSON.parse(e):null}catch(e){return console.warn("storage parse error:",t),null}},remove(t){try{localStorage.removeItem(t)}catch(t){}},clear(){try{localStorage.clear()}catch(t){}}},t.time={get hour(){return(new Date).getHours()},get minute(){return(new Date).getMinutes()},get second(){return(new Date).getSeconds()},get millisecond(){return(new Date).getMilliseconds()}},t.date={get year(){return(new Date).getFullYear()},get monthNumber(){let t=(new Date).getMonth();return t++,t},get ayAdi(){return t.aylar[this.monthNumber-1]},get monthName(){return t.months[this.monthNumber-1]},get dayOfWeek(){return(new Date).getDay()},get gunAdi(){return t.gunler[this.dayOfWeek]},get dayName(){return t.days[this.dayOfWeek]},get dayOfMonth(){return(new Date).getDate()},get now(){return Date.now()}},t.sleep=function(t=0){return new Promise(function(e){setTimeout(e,t)})},t.nextFrame=function(){return new Promise(function(t){requestAnimationFrame(t)})},t.clamp=function(t,e,i){return Math.min(Math.max(t,e),i)},t.lerp=function(t,e,i){return t+(e-t)*i},t.objectOf=function(t){let e=t;for(;e;){if(e._basicObject)return e._basicObject;e=e.parentElement}return null},t.escapeHtml=function(t){const e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return String(null==t?"":t).replace(/[&<>"']/g,function(t){return e[t]})},t.isOn=function(t){return!0===t||1===t||"1"===t},t.addCss=function(t,e,i=0){let n=document.getElementById(t);return n&&!i||(n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n)),n.textContent=e),n},t.resolveTheme=function(t,e="light"){let i=e||"light";if("auto"===i){i=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const n=t[i];n||console.warn("Theme not found: "+i);const s={};return j(s,n||{}),j(s,t.light||{}),s},t.applyStylePackage=function(t,e,i){const n=t.styleName||i.styleName,s=e[n];s||console.warn("Style package not found: "+n);const o=!!s&&Object.prototype.hasOwnProperty.call(s,"style"),r=o?s.style:s,l={};if(j(l,t.style||{}),j(l,r||{}),t.style=l,o){const e=Object.assign({},s);delete e.style;for(const t in e)Array.isArray(e[t])&&(e[t]=e[t].slice());j(t,e)}return t},t.uiScale=1,t.SIZE_KEY_ENDINGS=["size","width","height","gap","space","spacing","padding","margin","round","radius","offset","thickness","top","left","right","bottom","border"],t.isSizeKey=function(e){const i=String(e).toLowerCase();return"lineheight"!==i&&t.SIZE_KEY_ENDINGS.some(t=>i.endsWith(t))},t.scaleSize=function(t,e){return"number"==typeof t?t*e:Array.isArray(t)?t.map(t=>"number"==typeof t?t*e:t):t},t.scaleCssText=function(t,e){return 1===e||"string"!=typeof t?t:t.replace(/(\d*\.?\d+)px/g,(t,i)=>Number(i)*e+"px")},t.scaleStyle=function(e,i){if(1===i||!e||"object"!=typeof e)return e;const n={};for(const s in e){const o=e[s];null!==o&&"object"==typeof o&&!Array.isArray(o)?n[s]=t.scaleStyle(o,i):n[s]=t.isSizeKey(s)?t.scaleSize(o,i):o}return n},t.zIndexAbove=function(t,e=0){let i=t&&t.elem?t.elem:t;for(;i&&i.parentElement&&i.parentElement!==page.elem;)i=i.parentElement;const n=i&&i.parentElement===page.elem&&parseInt(getComputedStyle(i).zIndex,10)||0;return Math.max(e,n+1)},t.storage.loadOr=function(e,i){const n=t.storage.load(e);return null===n?i:n};const a=function(t){if("string"==typeof t){const e=t.trim();return""===e||isNaN(Number(e))?e:Number(e)+"px"}return parseFloat(t)+"px"},h=function(t){if("number"==typeof t)return{left:t,top:t,right:t,bottom:t};if(!Array.isArray(t))return null;const[e,i,n,s]=t;return 1===t.length?{left:e,top:e,right:e,bottom:e}:2===t.length||3===t.length?{left:e,top:i,right:e,bottom:i}:4===t.length?{left:e,top:i,right:n,bottom:s}:null},c=function(t,e){if(!n)throw new Error("basic.js: The library is not ready yet. Create objects in start() or window.onload.");t._containerBox=n,n.elem.appendChild(e)},u=function(t){return!(!t||!(t._isFlex||t.elem&&"flex"==t.elem.style.display))},m=function(t,e,i){null!=i&&""!==i?t.setAttribute(e,String(i)):t.removeAttribute(e)};class d{constructor(t){this._type=t,this._visible=1,this._displayType="block",this._opacity=1,this._rotate=0,this._padding=0,this._motionString="none",this._clickable=0,this._eventFuncList=[]}get parentBox(){return this._containerBox}set parentBox(t){this._containerBox=t}get containerBox(){return this._containerBox}set containerBox(t){this._containerBox=t}get left(){return"absolute"==this.position?parseFloat(this.elem.style.left):this.elem.offsetLeft}set left(t){this.elem.style.right="",this.elem.style.left=a(t)}get top(){return"absolute"==this.position?parseFloat(this.elem.style.top):this.elem.offsetTop}set top(t){this.elem.style.bottom="",this.elem.style.top=a(t)}get right(){return parseFloat(this.elem.style.right)}set right(t){this.elem.style.left="",this.elem.style.right=a(t)}get bottom(){return parseFloat(this.elem.style.bottom)}set bottom(t){this.elem.style.top="",this.elem.style.bottom=a(t)}get totalLeft(){return L(this.elem,"Left")}get totalTop(){return L(this.elem,"Top")}get width(){return"string"!=typeof this._width?this._width||0:this.elem.offsetWidth}set width(t){"string"!=typeof t||""===t.trim()||isNaN(Number(t))||(t=Number(t)),this._width=t,this.elem.style.width=a(t)}get height(){return"string"!=typeof this._height?this._height||0:this.elem.offsetHeight}set height(t){"string"!=typeof t||""===t.trim()||isNaN(Number(t))||(t=Number(t)),this._height=t,this.elem.style.height=a(t)}get rotate(){return this._rotate}set rotate(t){this._rotate=parseInt(t),this.elem.style.transform=function(t,e,i){const n=e+"("+i+")",s="none"===t?"":t||"",o=new RegExp("(^|\\s|\\))"+e+"\\([^)]*\\)");return o.test(s)?s.replace(o,function(t,e){return e+n}):s.trim()?s.trim()+" "+n:n}(this.elem.style.transform,"rotate",t+"deg")}get visible(){return this._visible}set visible(t){this._visible=t,this.elem.style.display&&"none"!=this.elem.style.display&&(this._displayType=this.elem.style.display),this.elem.style.display=1==t?this._displayType:"none"}get clickable(){return this._clickable}set clickable(t){this._clickable=t,this._textElem.style.pointerEvents=1==t?"auto":"none"}get opacity(){return this._opacity}set opacity(t){this._opacity=t,this.elem.style.opacity=t}get color(){return this._backgroundColor}set color(t){this._backgroundColor=t,this._textElem.style.backgroundColor=t}get padding(){return this._padding||0}set padding(t){this._padding=t;const e=h(t);e&&(this.elem.style.paddingLeft=e.left+"px",this.elem.style.paddingTop=e.top+"px",this.elem.style.paddingRight=e.right+"px",this.elem.style.paddingBottom=e.bottom+"px")}get border(){return this._border}set border(t){if(this._border=t,!Array.isArray(t))return void(this._textElem.style.borderWidth=t+"px");const e=h(t);e&&(this._textElem.style.borderLeftWidth=e.left+"px",this._textElem.style.borderTopWidth=e.top+"px",this._textElem.style.borderRightWidth=e.right+"px",this._textElem.style.borderBottomWidth=e.bottom+"px")}get borderColor(){return this._borderColor}set borderColor(t){this._borderColor=t,this._textElem.style.borderColor=t}get round(){return this._round}set round(t){if(this._round=t,!Array.isArray(t))return void(this._textElem.style.borderRadius=t+"px");const e=function(t){const[e,i,n,s]=t,o=2===t.length||3===t.length;return 1===t.length?{topLeft:e,topRight:e,bottomRight:e,bottomLeft:e}:o?{topLeft:e,topRight:e,bottomRight:i,bottomLeft:i}:4===t.length?{topLeft:e,topRight:i,bottomRight:n,bottomLeft:s}:null}(t);e&&(this._textElem.style.borderTopLeftRadius=e.topLeft+"px",this._textElem.style.borderTopRightRadius=e.topRight+"px",this._textElem.style.borderBottomRightRadius=e.bottomRight+"px",this._textElem.style.borderBottomLeftRadius=e.bottomLeft+"px")}get fontSize(){return this._fontSize}set fontSize(t){this._fontSize=t,this._textElem.style.fontSize=t+"px"}get textSize(){return this.fontSize}set textSize(t){this.fontSize=t}get textColor(){return this._textColor}set textColor(t){this._textColor=t,this._textElem.style.color=t}get textAlign(){return this._textAlign}set textAlign(t){this._textAlign=t,this._textElem.style.textAlign=t}get position(){return this.elem.style.position?this.elem.style.position:"absolute"}set position(t){this.elem.style.position=t,"relative"==t&&(this.left=0,this.top=0)}center(t){k(this,t)}centerBy(t,e){C(this,t,e)}aline(t,e,i=0,n){O(this,t,e,i,n)}get _textElem(){return this.elem}get css(){return this.elem.style}set css(t){if(t)if("string"!=typeof t)for(let e in t)this.elem.style[e]=t[e];else this.elem.style.cssText+="; "+t}get cursor(){return this._cursor||""}set cursor(t){this._cursor=t||"",this.elem.style.cursor=this._cursor,this._textElem!==this.elem&&(this._textElem.style.cursor=this._cursor)}get zIndex(){const t=parseInt(this.elem.style.zIndex);return isNaN(t)?0:t}set zIndex(t){this.elem.style.zIndex=""===t||null==t?"":String(t)}get boxShadow(){return this.elem.style.boxShadow}set boxShadow(t){this.elem.style.boxShadow=t||""}get fontFamily(){return this._fontFamily||""}set fontFamily(t){this._fontFamily=t||"",this._applyFont()}get bold(){return this._bold?1:0}set bold(t){this._bold=t?1:0,this._applyFont()}_applyFont(){const t=this._fontFamily||"",e=this._textElem;""===t||0===t.indexOf("opensans")?(e.style.fontFamily=this._bold?"opensans-bold":t,e.style.fontWeight=""):(e.style.fontFamily=t,e.style.fontWeight=this._bold?"bold":"")}get italic(){return this._italic?1:0}set italic(t){this._italic=t?1:0,this._textElem.style.fontStyle=t?"italic":""}get lineHeight(){return this._lineHeight}set lineHeight(t){this._lineHeight=t,this._textElem.style.lineHeight="number"==typeof t?t+"px":t||""}get ellipsis(){return this._ellipsis?1:0}set ellipsis(t){this._ellipsis=t?1:0;const e=this._textElem;e.style.whiteSpace=t?"nowrap":"",e.style.textOverflow=t?"ellipsis":"",e.style.overflow=t?"hidden":0===this._clipContent?"visible":""}get selectable(){return this._selectable?1:0}set selectable(t){this._selectable=t?1:0,this.elem.style.userSelect=t?"text":"",this.elem.style.webkitUserSelect=t?"text":"",t&&(this.clickable=1)}get grow(){return this._grow||0}set grow(t){this._grow=t,this.elem.style.flexGrow=String(t)}get shrink(){return this._shrink||0}set shrink(t){this._shrink=t,this.elem.style.flexShrink=String(t)}get plainText(){return this._textElem.textContent}set plainText(t){this._textElem.textContent=null==t?"":String(t)}get role(){return this._textElem.getAttribute("role")||""}set role(t){m(this._textElem,"role",t)}get aria(){const t={};for(const e of this._textElem.attributes)0===e.name.indexOf("aria-")&&(t[e.name.slice(5)]=e.value);return t}set aria(t){if(t)for(let e in t)m(this._textElem,"aria-"+e.toLowerCase(),t[e])}get tabIndex(){return this._textElem.tabIndex}set tabIndex(t){null!=t&&""!==t?this._textElem.tabIndex=Number(t):this._textElem.removeAttribute("tabindex")}get isRemoved(){return this._isRemoved?1:0}get children(){const t=[],e=this.elem.children;for(let i=0;i<e.length;i++)e[i]._basicObject&&t.push(e[i]._basicObject);return t}show(){return this.visible=1,this}hide(){return this.visible=0,this}toggle(){return this.visible=1==this.visible?0:1,this}setSize(t,e){return null!=t&&(this.width=t),null!=e&&(this.height=e),this}setPosition(t,e){return null!=t&&(this.left=t),null!=e&&(this.top=e),this}bringToFront(){let t=0;const e=this.elem.parentElement;if(e)for(let i=0;i<e.children.length;i++){const n=parseInt(e.children[i].style.zIndex);!isNaN(n)&&n>t&&(t=n)}return this.zIndex=t+1,this}contains(t){return!!(t&&t!==this&&t.elem&&this.elem.contains(t.elem))}once(t,e,i=!1){let n=null;return n=this.on(t,function(t,i){n&&n(),e(t,i)},i),n}animate(t={},e=300,i="ease"){const n=this;return new Promise(function(s){if(n._isRemoved)s(n);else{n._animateTimeout?(clearTimeout(n._animateTimeout),n._animateResolve&&n._animateResolve(n)):n._animateBaseTransition=n.elem.style.transition,n.elem.style.transition="all "+e+"ms "+i,n.elem.offsetWidth;for(let e in t)n[e]=t[e];n._animateResolve=s,n._animateTimeout=setTimeout(function(){n._animateTimeout=null,n._animateResolve=null,n._isRemoved||(n.elem.style.transition=n._animateBaseTransition||""),s(n)},e+20)}})}listenTo(t,e,i,n=!1){return this._addEventListener(e,i,t,n)}onPageResize(t){return this.listenTo(window,"resize",t)}after(t,e){const i=this;this._timerList||(this._timerList=new Set);const n=setTimeout(function(){i._timerList.delete(n),i._isRemoved||e(i)},t);return this._timerList.add(n),function(){clearTimeout(n),i._timerList.delete(n)}}every(t,e){const i=this;this._intervalList||(this._intervalList=new Set);const n=setInterval(function(){i._isRemoved||e(i)},t);return this._intervalList.add(n),function(){clearInterval(n),i._intervalList.delete(n)}}own(t){return t?(this._ownedList||(this._ownedList=[]),this._ownedList.push(t),t):t}onHoverChange(t){const e=this.on("mouseenter",function(e,i){t(e,1,i)}),i=this.on("mouseleave",function(e,i){t(e,0,i)});return function(){e(),i()}}setFocusRing(e="rgba(95, 158, 160, 0.8)"){t.addCss("basic-focus-ring",".basic-focus-ring:focus { outline: none; }.basic-focus-ring:focus-visible { outline: 2px solid var(--basic-focus-ring); outline-offset: -2px; }");const i=this._textElem;return i.classList.toggle("basic-focus-ring",!!e),e&&i.style.setProperty("--basic-focus-ring",e),this}remove(){if(this._isRemoved)return;this._isRemoved=1;const t=this.elem;if(!o.some(function(e){return e!==t&&e.contains(t)})){o.push(t);try{const t=this.elem.querySelectorAll("*");for(let e=0;e<t.length;e++){const i=t[e]._basicObject;if(i&&i!==this&&!i._isRemoved)try{"function"==typeof i.destroy&&i.destroy(),i._isRemoved||i.remove()}catch(t){l("basic.js: A child object could not be removed: "+t.message,"warn")}}}finally{o.pop()}}if(this._setMotionTimeout&&clearTimeout(this._setMotionTimeout),this._withMotionTimeout&&clearTimeout(this._withMotionTimeout),this._dontMotionTimeout&&clearTimeout(this._dontMotionTimeout),this._animateTimeout&&clearTimeout(this._animateTimeout),this._animateResolve&&(this._animateResolve(this),this._animateResolve=null),this._timerList&&(this._timerList.forEach(function(t){clearTimeout(t)}),this._timerList.clear()),this._intervalList&&(this._intervalList.forEach(function(t){clearInterval(t)}),this._intervalList.clear()),this._ownedList){const t=this._ownedList;this._ownedList=null,t.forEach(function(t){try{t&&!t._isRemoved&&"function"==typeof t.remove&&t.remove()}catch(t){l("basic.js: An owned object could not be removed: "+t.message,"warn")}})}if(this._eventFuncList&&this._eventFuncList.length)for(let t=this._eventFuncList.length-1;t>=0;t--){const e=this._eventFuncList[t];e.elem.removeEventListener(e.eventName,e.eventFunc,e.capture),this._eventFuncList.pop()}s&&"function"==typeof s.remove_onResize&&s.remove_onResize(this.elem,null),this.elem.remove()}props(t,e,i){return I(this,t,e,i),this}_addEventListener(t,e,i,n=!1){let s=this;const o=function(t){e(s,t)};i.addEventListener(t,o,n);const r={};r.eventName=t,r.originalFunc=e,r.eventFunc=o,r.elem=i,r.capture="object"==typeof n&&null!==n?!!n.capture:!!n,this._eventFuncList.push(r);return function(){const t=s._eventFuncList?s._eventFuncList.indexOf(r):-1;t<0||(s._eventFuncList.splice(t,1),r.elem.removeEventListener(r.eventName,r.eventFunc,r.capture))}}_removeEventListener(t,e,i){for(let n=0;n<this._eventFuncList.length;n++){const s=this._eventFuncList[n];if(s.originalFunc==e&&s.eventName==t&&s.elem==i){this._eventFuncList.splice(n,1),i.removeEventListener(t,s.eventFunc,s.capture);break}}}on(t,e,i=!1){const n=this._textElem;return this.clickable=1,this._addEventListener(t,e,n,i)}off(t,e){const i=this._textElem;this._removeEventListener(t,e,i)}onResize(t){s.onResize(this,t)}remove_onResize(t){s.remove_onResize(this.elem,t)}setMotion(t){const e=this;this._setMotionTimeout&&clearTimeout(this._setMotionTimeout),this._setMotionTimeout=setTimeout(function(){e.setMotionNow(t)},r.DONT_MOTION_TIME)}getMotion(){return this._motionString}setMotionNow(t){this._motionString=t,this.elem.style.transition=t}withMotion(t){const e=this;this._withMotionTimeout&&clearTimeout(this._withMotionTimeout),this._withMotionTimeout=setTimeout(function(){e.canMotionNow(),t(e)},r.WITH_MOTION_TIME)}dontMotion(){this.elem.style.transition="none";const t=this;this._dontMotionTimeout&&clearTimeout(this._dontMotionTimeout),this._dontMotionTimeout=setTimeout(function(){t.elem.style.transition=t._motionString},r.DONT_MOTION_TIME)}canMotionNow(){this.elem.style.transition=this._motionString}}class p{constructor(){this._bodyElement=document.getElementsByTagName("BODY")[0],this._element=this._bodyElement,this._backgroundColor="white",this._zoom=1}get elem(){return this._element}get element(){return this._element}get bodyElement(){return this._bodyElement}get mainBox(){return this._box}set mainBox(t){this._box=t,this._element=this._box.elem}get width(){let t;return t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,S(t)}get height(){let t;return t=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,S(t)}get html(){return this._box.elem.innerHTML}set html(t){this._box.elem.innerHTML=t}get zoom(){return this._zoom}set zoom(t){this._zoom=t,this.bodyElement.style.transformOrigin="top left",this.bodyElement.style.transform="scale("+t+")",page.refreshSize()}get color(){return this._backgroundColor}set color(t){this._backgroundColor=t,this.bodyElement.style.backgroundColor=t}fit(t=document.body.clientWidth,e){page.zoom=1;let i=page.width;e=e||t,page.zoom=i>e?e/t:i/t}autoFit(t,e){page.zoom=1;const i=t/e;let n=0;n=page.width/page.height<=i?page.width:page.height*i,page.fit(t,n)}refreshSize(){page.mainBox.width=page.width,page.mainBox.height=page.height}onClick(t){this._box._addEventListener("click",t,window)}remove_onClick(t){this._box._removeEventListener("click",t,window)}onResize(t){this._box._addEventListener("resize",t,window)}remove_onResize(t){this._box._removeEventListener("resize",t,window)}on(t,e,i=!1){return this._box._addEventListener(t,e,window,i)}off(t,e){this._box._removeEventListener(t,e,window)}onKeyDown(t){return this.on("keydown",t)}remove_onKeyDown(t){this.off("keydown",t)}get title(){return document.title}set title(t){document.title=t}add(t){t.containerBox!=this&&(t.containerBox=this,this.elem.appendChild(t.elem))}}class g extends d{constructor(t=-1e3,e=-1e3,i=100,s=100){super("box"),this._backgroundColor="whitesmoke",this._border=0,this._borderColor="rgba(0, 0, 0, 0.6)",this._round=0,this._fontSize=16,this._textColor="rgba(0, 0, 0, 0.8)",this._textAlign="left",this._clipContent=1;const o=document.createElement("DIV");o.classList.add("basic_box"),o.style.left=a(t),o.style.top=a(e),this._element=o,c(this,this._element),this.width=i,this.height=s,u(n)&&(this.position="relative"),M(this)}get elem(){return this._element}get element(){return this._element}get text(){return this.elem.innerHTML}set text(t){this.elem.innerHTML=t}get html(){return this.elem.innerHTML}set html(t){this.elem.innerHTML=t}get clipContent(){return this._clipContent}set clipContent(t){this._clipContent=t,t?(this.elem.style.overflowX="hidden",this.elem.style.overflowY="hidden"):(this.elem.style.overflowX="visible",this.elem.style.overflowY="visible")}get scrollX(){return"auto"==this.elem.style.overflowX?1:0}get scrollY(){return"auto"==this.elem.style.overflowY?1:0}set scrollX(t){this.elem.style.overflowX="hidden",1==t&&(this.clickable=1,this.elem.style.overflowX="auto")}set scrollY(t){this.elem.style.overflowY="hidden",1==t&&(this.clickable=1,this.elem.style.overflowY="auto")}onClick(t){this.clickable=1,this._addEventListener("click",t,this.elem)}remove_onClick(t){this._removeEventListener("click",t,this.elem)}add(t){t.containerBox=this,this.elem.appendChild(t.elem)}in(t){B(this,t)}}const f=function(t,e,i,n){return new g(t,e,i,n)};t.createBox=f;class _ extends d{constructor(e=-1e3,i=-1e3,s=t.BUTTON_WIDTH,o=t.BUTTON_HEIGHT){super("button"),this._backgroundColor=t.BUTTON_COLOR,this._border=1,this._borderColor="rgba(0, 0, 0, 0.40)",this._round=4,this._fontSize=20,this._textColor=t.BUTTON_TEXT_COLOR,this._textAlign="center",this._clickable=1;const r=document.createElement("BUTTON");r.innerHTML="Button",r.classList.add("basic_button"),r.setAttribute("type","button"),r.style.left=a(e),r.style.top=a(i),this._element=r,c(this,this._element),this.width=s,this.height=o,u(n)&&(this.position="relative"),M(this)}get elem(){return this._element}get element(){return this._element}get buttonElement(){return this._element}get text(){return this.buttonElement.innerHTML}set text(t){this.buttonElement.innerHTML=t}get value(){return this.buttonElement.value}set value(t){this.buttonElement.value=t}get enabled(){return this.buttonElement.disabled?0:1}set enabled(t){this.buttonElement.disabled=t?0:1}get minimal(){return this.buttonElement.classList.contains("minimal")?1:0}set minimal(t){t?this.buttonElement.classList.add("minimal"):this.buttonElement.classList.remove("minimal"),""===this.buttonElement.style.borderWidth&&(this._border=t?0:1)}get spaceX(){return parseInt(this.elem.style.paddingLeft)||0}set spaceX(t){this.elem.style.paddingLeft=t+"px",this.elem.style.paddingRight=t+"px"}onClick(t){this.clickable=1,this._addEventListener("click",t,this.buttonElement)}remove_onClick(t){this._removeEventListener("click",t,this.buttonElement)}add(t){l("basic.js: add(): Insertion cannot be made inside the Button object.","error")}}const b=function(t,e,i,n){return new _(t,e,i,n)};t.createButton=b;class y extends d{constructor(e=-1e3,i=-1e3,s=t.TEXTBOX_WIDTH,o=t.TEXTBOX_HEIGHT){super("textbox"),this._backgroundColor="white",this._border=1,this._borderColor="#4A4A4A",this._round=4,this._fontSize=20,this._textColor="#4A4A4A",this._textAlign="left",this._clickable=1;const r=document.createElement("DIV");r.classList.add("basic_textbox-main"),this._mainElement=r;const l=document.createElement("DIV");l.classList.add("basic_textbox-title"),l.innerHTML="",this._titleElement=l;const h=document.createElement("INPUT");h.value="",h.classList.add("basic_textbox"),h.setAttribute("type","text"),h.style.width="100%",h.style.height="100%",this._element=h,r.style.left=a(e),r.style.top=a(i),r.appendChild(this._titleElement),r.appendChild(this._element),c(this,this._mainElement),this.width=s,this.height=o,u(n)&&(this.position="relative"),M(this)}get elem(){return this._mainElement}get element(){return this._mainElement}get inputElement(){return this._element}set inputElement(t){this._element=t}get titleElement(){return this._titleElement}get text(){return this.inputElement.value}set text(t){this.inputElement.value=null==t?"":String(t)}get _textElem(){return this.inputElement||this.elem}get title(){return this.titleElement.innerHTML}set title(t){this.titleElement.innerHTML=t}get enabled(){return this.inputElement.disabled?0:1}set enabled(t){this.inputElement.disabled=t?0:1}get minimal(){return this.inputElement.classList.contains("minimal")?1:0}set minimal(t){t?this.inputElement.classList.add("minimal"):this.inputElement.classList.remove("minimal"),""===this.inputElement.style.borderWidth&&(this._border=t?0:1)}get value(){return this.text}set value(t){this.text=t}get plainText(){return this.text}set plainText(t){this.text=t}get placeholder(){return this.inputElement.placeholder}set placeholder(t){this.inputElement.placeholder=null==t?"":String(t)}get inputType(){return this.inputElement.type}set inputType(t){this.inputElement.type=t||"text"}get maxLength(){return this.inputElement.maxLength>0?this.inputElement.maxLength:0}set maxLength(t){t>0?this.inputElement.maxLength=t:this.inputElement.removeAttribute("maxlength")}get readOnly(){return this.inputElement.readOnly?1:0}set readOnly(t){this.inputElement.readOnly=!!t}focus(){return this.inputElement.focus(),this}blur(){return this.inputElement.blur(),this}select(){return this.inputElement.select(),this}onEnter(t){const e=function(e,i){"Enter"===i.key&&t(e,i)};return e._enterFunc=t,this._addEventListener("keydown",e,this.inputElement)}remove_onEnter(t){for(let e=this._eventFuncList.length-1;e>=0;e--){const i=this._eventFuncList[e];"keydown"==i.eventName&&i.originalFunc._enterFunc===t&&(i.elem.removeEventListener("keydown",i.eventFunc,i.capture),this._eventFuncList.splice(e,1))}}onChange(t){this._addEventListener("input",t,this.inputElement)}remove_onChange(t){this._removeEventListener("input",t,this.inputElement)}add(t){l("basic.js: add(): Insertion cannot be made inside the TextBox object.","error")}}const w=function(t,e,i,n){return new y(t,e,i,n)};t.createTextBox=w,t.createInput=w;class x extends d{constructor(t=-1e3,e=-1e3,i="auto",s="auto"){super("label"),this._backgroundColor="transparent",this._border=0,this._borderColor="rgba(0, 0, 0, 0.6)",this._round=0,this._fontSize=20,this._textColor="rgba(0, 0, 0, 0.8)",this._textAlign="left";const o=document.createElement("DIV");o.classList.add("basic_label"),o.style.left=a(t),o.style.top=a(e),this._element=o,c(this,this._element),this.width=i,this.height=s,u(n)&&(this.position="relative"),M(this)}get elem(){return this._element}get element(){return this._element}get text(){return this.elem.innerHTML}set text(t){this.elem.innerHTML=t}get clipContent(){return 0===this._clipContent?0:1}set clipContent(t){this._clipContent=t?1:0,this._ellipsis||(this.elem.style.overflow=t?"":"visible")}get space(){return parseInt(this.elem.style.padding)||0}set space(t){this.elem.style.padding=t+"px"}get spaceX(){return parseInt(this.elem.style.paddingLeft)||0}set spaceX(t){this.elem.style.paddingLeft=t+"px",this.elem.style.paddingRight=t+"px"}get spaceY(){return parseInt(this.elem.style.paddingTop)||0}set spaceY(t){this.elem.style.paddingTop=t+"px",this.elem.style.paddingBottom=t+"px"}onClick(t){this.clickable=1,this._addEventListener("click",t,this.elem)}remove_onClick(t){this._removeEventListener("click",t,this.elem)}add(t){l("basic.js: add(): Insertion cannot be made inside the Label object.","error")}}const v=function(t,e,i,n){return new x(t,e,i,n)};t.createLabel=v;class E extends d{constructor(t=-1e3,e=-1e3,i=0,s=0){super("image"),this._autoSize=1,this._space=0,this._backgroundColor="transparent",this._border=0,this._borderColor="rgba(0, 0, 0, 0.6)",this._round=0;const o=document.createElement("IMG");o.classList.add("basic_image"),o.style.left=a(t),o.style.top=a(e),this._element=o,c(this,this._element),super.width=i,super.height=s;const r=this;(i||s)&&(this.autoSize=0),o.addEventListener("load",function(){if(r.autoSize>0){const t=r.autoSize;r.width=parseInt(r.naturalWidth/t)+"px",r.height=parseInt(r.naturalHeight/t)+"px",r.autoSize=t}}),u(n)&&(this.position="relative"),M(this)}get elem(){return this._element}get element(){return this._element}get imageElement(){return this._element}get width(){return super.width}set width(t){this.autoSize=0,super.width=t}get height(){return super.height}set height(t){this.autoSize=0,super.height=t}get alt(){return this._alt}set alt(t){this._alt=t,this.imageElement.setAttribute("alt",null==t?"":String(t))}get imageFit(){return this._imageFit||""}set imageFit(t){this._imageFit=t||"",this.imageElement.style.objectFit=this._imageFit}get naturalWidth(){return this.imageElement.naturalWidth}get naturalHeight(){return this.imageElement.naturalHeight}get autoSize(){return this._autoSize}set autoSize(t){this._autoSize=t}get space(){return this._space}set space(t){t>50&&(t=50),t<0&&(t=0),this._space=t;const e=parseInt(this.width/100*t),i=parseInt(this.height/100*t);this.elem.style.paddingLeft=e+"px",this.elem.style.paddingRight=e+"px",this.elem.style.paddingTop=i+"px",this.elem.style.paddingBottom=i+"px"}onClick(t){this.clickable=1,this._addEventListener("click",t,this.elem)}remove_onClick(t){this._removeEventListener("click",t,this.elem)}onLoad(t){this._addEventListener("load",t,this.imageElement)}remove_onLoad(t){this._removeEventListener("load",t,this.imageElement)}load(t){this.imageElement.setAttribute("src",t),void 0===this._alt&&this.imageElement.setAttribute("alt",t)}add(t){l("basic.js: add(): Insertion cannot be made inside the Image object.","error")}}const T=function(t,e,i,n){return new E(t,e,i,n)};t.createImage=T,t.createIcon=T;window.BSound=class{constructor(){const t=document.createElement("AUDIO"),e=document.createElement("SOURCE");t.appendChild(e),this._element=t,document.body.appendChild(this._element),M(this)}get elem(){return this._element}get element(){return this._element}get soundElement(){return this._element}get time(){return isNaN(this.elem.duration)?0:this.elem.duration}get timeLeft(){return isNaN(this.elem.duration)?0:this.elem.duration-this.elem.currentTime}get currentTime(){return this.elem.currentTime}get paused(){return this.elem.paused}get playing(){return!this.elem.paused}get loop(){return"loop"==this.elem.getAttribute("loop")?1:0}set loop(t){1==t?this.elem.setAttribute("loop","loop"):this.elem.removeAttribute("loop")}play(){this.paused&&this.elem.play()}pause(t){this.paused||this.elem.pause()}stop(){this.paused||this.elem.pause(),this.elem.currentTime=0}onLoad(t){let e=this;this.elem.addEventListener("canplaythrough",function(){t(e)})}load(t){const e={mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",m4a:"audio/mp4",aac:"audio/aac",webm:"audio/webm"},i=String(t).split(/[?#]/)[0].split(".").pop().toLowerCase(),n=this.elem.children[0];n.setAttribute("src",t),e[i]?n.setAttribute("type",e[i]):n.removeAttribute("type"),this.elem.load()}remove(){this.elem.remove()}};const L=function(t,e){let i=0,n=t;for(;n.offsetParent;)i+=n["offset"+e],n=n.offsetParent;return i},N=function(...t){const e={};for(const i of t)i&&j(e,i);return e},I=function(t,e,i,n){const s=N(n,i,e);for(let e in s)t[e]=s[e]},k=function(t,e){const i=t.containerBox.border||0,n=h(Array.isArray(i)?i:Number(i))||h(0);if("left"==e||!e){const e=t.containerBox.width-n.left-n.right;t.left=parseInt((e-t.width)/2)}if("top"==e||!e){const e=t.containerBox.height-n.top-n.bottom;t.top=parseInt((e-t.height)/2)}},C=function(t,e,i){if("left"==i||!i){const n=e.width;t.left=parseInt((n-t.width)/2)+e.left,i&&(t.top=e.top)}if("top"==i||!i){const n=e.height;t.top=parseInt((n-t.height)/2)+e.top,i&&(t.left=e.left)}},O=function(t,e,i,n,s){if("left"==i?(isNaN(e.left)?isNaN(e.right)||(t.right=parseInt(e.right+e.width+n)):t.left=parseInt(e.left-t.width-n),isNaN(e.top)?t.bottom=parseInt(e.bottom):t.top=parseInt(e.top)):"top"==i?(isNaN(e.top)?isNaN(e.bottom)||(t.bottom=parseInt(e.bottom+e.height+n)):t.top=parseInt(e.top-t.height-n),isNaN(e.left)?t.right=parseInt(e.right):t.left=parseInt(e.left)):"right"==i?(isNaN(e.left)?isNaN(e.right)||(t.right=parseInt(e.right-t.width-n)):t.left=parseInt(e.left+e.width+n),isNaN(e.top)?t.bottom=parseInt(e.bottom):t.top=parseInt(e.top)):"bottom"==i?(isNaN(e.top)?isNaN(e.bottom)||(t.bottom=parseInt(e.bottom-t.height-n)):t.top=parseInt(e.top+e.height+n),isNaN(e.left)?t.right=parseInt(e.right):t.left=parseInt(e.left)):(isNaN(e.top)?isNaN(e.bottom)||(t.bottom=parseInt(e.bottom)):t.top=parseInt(e.top),isNaN(e.left)?isNaN(e.right)||(t.right=parseInt(e.right)):t.left=parseInt(e.left)),"left"==i||"right"==i){const i=e.height-t.height;switch(s){case"top":isNaN(e.top)&&(isNaN(e.bottom)||(t.bottom+=parseInt(i)));break;case"bottom":isNaN(e.top)?isNaN(e.bottom):t.top+=parseInt(i);break;case"center":isNaN(e.top)?isNaN(e.bottom)||(t.bottom+=parseInt(i/2)):t.top+=parseInt(i/2)}}else if("top"==i||"bottom"==i){const i=e.width-t.width;switch(s){case"left":isNaN(e.left)&&(isNaN(e.right)||(t.right=parseInt(e.right+i)));break;case"right":isNaN(e.left)?isNaN(e.right):t.left+=parseInt(i);break;case"center":isNaN(e.left)?isNaN(e.right)||(t.right+=parseInt(i/2)):t.left+=parseInt(i/2)}}},S=function(t){return parseFloat(t*(1/page.zoom))};window.withPageZoom=S;const z=function(t){"function"==typeof loop&&(i&&(i=clearInterval(i)),0==t||(i=setInterval(loop,t)))};window.setLoopTimer=z;const A=function(t){e=n||page,n=t};window.setDefaultContainerBox=A,window.restoreDefaultContainerBox=function(){n=e||page};const R=function(){return n};window.getDefaultContainerBox=R;const B=function(t,e){const i=R(),n=F;F=[],A(t);try{return e(t)}finally{F=n,A(i)}};window.createIn=B;const M=function(t){t&&t.elem&&(t.elem._basicObject=t),previousThat=that,prevThat=previousThat,that=t};window.makeBasicObject=M;const j=function(t,e,i=1,n=4){if(!(i>n))for(let s in e){if("__proto__"===s||"constructor"===s||"prototype"===s)continue;const o=e[s],r=t[s];if("object"!=typeof o||null===o||Array.isArray(o))s in t||(t[s]=o);else{if(!("Object"===Object.getPrototypeOf(o)?.constructor?.name)){s in t||(t[s]=o);continue}if(i>=n){s in t||(t[s]=o);continue}("object"!=typeof r||null===r||Array.isArray(r))&&(t[s]={}),j(t[s],o,i+1,n)}}};window.mergeIntoIfMissing=j,s.map=new Map,s.onResize=function(t,e){const i=s.map.get(t.elem)||[];i.push({obj:t,func:e}),s.map.set(t.elem,i),s.whenDetected.observe(t.elem)},s.remove_onResize=function(t,e){const i=s.map.get(t);if(!i)return;const n=e?i.filter(function(t){return t.func!=e}):[];n.length?s.map.set(t,n):(s.map.delete(t),s.whenDetected.unobserve(t))},s.whenDetected=new ResizeObserver(function(t){for(let e=0;e<t.length;e++){const i=s.map.get(t[e].target);if(!i)continue;const n=i.slice();for(let t=0;t<n.length;t++)n[t].func(n[t].obj)}});let F=[],D=null;const H=function(t){return 0==F.length&&F.push(R()),A(t),F.push(t),D&&clearTimeout(D),D=setTimeout(function(){const t=F.length-1;t>0&&l("basic.js: Some started boxes were not ended. Count: "+t,"warn")},100),t},W={color:"transparent"},X={flexDirection:"row",flexWrap:"nowrap",alignContent:"center",justifyContent:"center",alignItems:"center",gap:"0px",flexBasis:"auto",flexGrow:0,flexShrink:0},P=function(t){switch(t){case"left":case"top":case"start":return"flex-start";case"right":case"bottom":case"end":return"flex-end";case"center":return"center";default:return t}},G=function(t){return"vertical"==t?"column":"row"},U={"left top":["flex-start","flex-start"],"center top":["center","flex-start"],"right top":["flex-end","flex-start"],"left center":["flex-start","center"],"center center":["center","center"],"right center":["flex-end","center"],"left bottom":["flex-start","flex-end"],"center bottom":["center","flex-end"],"right bottom":["flex-end","flex-end"]};U.center=U["center center"];for(const t of Object.keys(U)){const e=t.split(" ");2==e.length&&(U[e[1]+" "+e[0]]=U[t])}const Y=function(t,e,i){const n=U[e]||U.center;t.alignContent="center",t.justifyContent=i?n[0]:n[1],t.alignItems=i?n[1]:n[0]},K=function(t){if("number"==typeof t&&isFinite(t))return t+"px";if(!Array.isArray(t))return t;const[e,i]=t;return 1===t.length?e+"px":2===t.length||3===t.length?i+"px "+e+"px":null},q={flow:{get:function(){return this._flow},set:function(t){this._flow=t,this.elem.style.flexDirection=G(t),this.align=this.align}},align:{get:function(){return this._align},set:function(t){this._align=t,Y(this.elem.style,t,"row"==this.elem.style.flexDirection),this._justify&&(this.elem.style.justifyContent=P(this._justify)),this._stretch&&(this.elem.style.alignItems="stretch")}},gap:{get:function(){return this._gap},set:function(t){const e=K(t);null!==e&&(this._gap=Array.isArray(t)?t:e,this.elem.style.gap=e)}},wrap:{get:function(){return this._wrap||0},set:function(t){this._wrap=t?1:0,this.elem.style.flexWrap=t?"wrap":"nowrap"}},justify:{get:function(){return this._justify||""},set:function(t){this._justify=t,this.elem.style.justifyContent=P(t)}},stretch:{get:function(){return this._stretch||0},set:function(t){if(this._stretch=t?1:0,this._stretch)return void(this.elem.style.alignItems="stretch");const e={};Y(e,this._align,"row"==this.elem.style.flexDirection),this.elem.style.alignItems=e.alignItems}}},$=function(t={},e,i,n,s){const o=[t,e,i,n,s],r=o.findIndex(t=>"object"==typeof t);let l={},a=null;-1==r?a=f(t,e,i,n):(l=o[r],a=f(...[0,0,"100%","100%"].map((t,e)=>e<r?o[e]:t))),(l.fit||l.hug)&&(l.fit=1,l.hug=1,l.width="auto",l.height="auto"),l.align&&(l.flow||(l.flow="horizontal")),l.flow&&(a._flow=l.flow,l.flexDirection=G(l.flow)),l.align&&(a._align=l.align,Y(l,l.align,"row"==l.flexDirection)),void 0!==l.wrap&&(a._wrap=l.wrap?1:0,l.flexWrap=l.wrap?"wrap":"nowrap"),l.justify&&(a._justify=l.justify,l.justifyContent=P(l.justify)),l.stretch&&(a._stretch=1,l.alignItems="stretch"),"number"==typeof l.gap&&(l.gap=K(l.gap)),that.elem.style.display="flex",a._isFlex=1,a.props(W,X,l);for(let t in X)a.elem.style[t]=a[t];return void 0!==l.grow&&(a.grow=l.grow),void 0!==l.shrink&&(a.shrink=l.shrink),l.css&&(a.css=l.css),a._propsCss=l.css,a.gap&&(a._gap=a.gap),Object.defineProperties(a,q),Array.isArray(l.gap)&&(a.gap=l.gap),H(a)};window.startFlexBox=$,window.AutoLayout=$,window.HGroup=function(...t){return $(...t)},window.VGroup=function(...t){const e=$(...t);return e.flow="vertical",e._propsCss&&(e.css=e._propsCss),e};const J=function(...t){return H(st(...t))};window.startBox=J;const V=function(){0!=F.length?(F.length>1&&F.pop(),A(F[F.length-1]),1==F.length&&(F=[])):l("basic.js: There is no started box to end. (Extra end call)","warn")};window.endBox=V,window.endFlexBox=V,window.endAutoLayout=V,window.endGroup=V;let Z=null,Q=null;const tt=[],et=function(){Z=that,Q=previousThat,tt.push({that:that,previousThat:previousThat})};window.saveCurrentThat=et;const it=function(){const t=tt.pop();t&&(Z=t.that,Q=t.previousThat),that=Z,previousThat=Q,prevThat=previousThat};window.restoreThatFromSaved=it;const nt=function(t){return function(...e){let i={};e.length&&"object"==typeof e[e.length-1]&&(i=e.pop());const n=t(...e);return n.props(i),n}};window.Label=nt(v),window.Input=nt(w),window.Icon=nt(T);const st=nt(f);window.Box=st,window.Button=nt(b),window.startObject=function(t,e){const i=N(e,t);return i.color||(i.color="transparent"),et(),J(i)},window.endObject=function(t){return V(),it(),M(t),t},window.startExtendedObject=function(t,e,i){const n=t(N(i,e));return et(),n},window.endExtendedObject=function(t){return it(),M(t),t},window.Black=function(t=1){return 0==t?"transparent":1==t?"black":`rgba(0,0,0,${t})`},window.White=function(t=1){return 0==t?"transparent":1==t?"white":`rgba(255,255,255,${t})`},window.Alpha=function(t,e=1){if(0==e)return"transparent";if(1==e)return t;const i=String(t).trim();if(!/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(i)){return"color-mix(in srgb, "+t+" "+Math.round(1e3*e)/10+"%, transparent)"}const n=i.slice(1),s=n.length<=4?n.split("").map(function(t){return t+t}).join(""):n,o=parseInt(s.slice(0,2),16),r=parseInt(s.slice(2,4),16),l=parseInt(s.slice(4,6),16),a=8===s.length?parseInt(s.slice(6,8),16)/255:1;return`rgba(${o},${r},${l},${Math.round(a*e*1e3)/1e3})`},window.waitAndRun=function(t,e,i=3){return t&&clearTimeout(t),t=setTimeout(e,i)},window.addEventListener("load",function(){t.start()})}();
@@ -8,10 +8,12 @@ UI COMPONENT TEMPLATE
8
8
  - You can customize, this template code as you need:
9
9
 
10
10
 
11
- Developer: Bugra Ozden
12
- Email: bugra.ozden@gmail.com
13
11
  Webpage: https://bug7a.github.io/js-components/
14
12
 
13
+ Copyright 2020-2026 Bugra Ozden <bugra.ozden@gmail.com> (https://bug7a.github.io/)
14
+ Licensed under the Apache License, Version 2.0
15
+ SPDX-License-Identifier: Apache-2.0
16
+
15
17
 
16
18
 
17
19
  */
@@ -1,2 +1,3 @@
1
1
  /* Bismillah */
2
+ /*! Copyright 2020-2026 Bugra Ozden <bugra.ozden@gmail.com> (https://bug7a.github.io/) | Apache-2.0 | https://bug7a.github.io/js-components/ */
2
3
  "use strict";const ScrollBar=function(o={}){let r=startBox();r.props({scrollableBox:null,bar_border:0,bar_round:3,bar_borderColor:"rgba(0, 0, 0, 1)",bar_width:4,bar_mouseOverWidth:4,bar_mouseOverColor:"#373836",bar_opacity:.4,bar_mouseOverOpacity:.9,bar_padding:2,bar_color:"#373836",bar_minLength:16,neverHide:1,showDots:1},o);let t=null,l=null,e=null,i=!1,c=[],n=0,a=0,s=0,b=0,u=!1,h=null;const f=function(){l&&(clearTimeout(l),l=null)},p=function(){f(),i||r.neverHide||(l=setTimeout(function(){if(l=null,!i){if(u)return u=!1,void p();r.boxScrollBarTop.opacity=0,r.boxScrollBarLeft.opacity=0,r.topRightDot.visible=0,r.bottomLeftDot.visible=0,r.bottomRightDot.visible=0}},2e3))},d=function(o,t){if(i)return;const l=o?r.boxScrollBarTop:r.boxScrollBarLeft;l[o?"width":"height"]=t?r.bar_mouseOverWidth:r.bar_width,l.color=t?r.bar_mouseOverColor:r.bar_color,l.opacity=t?r.bar_mouseOverOpacity:r.bar_opacity},B=function(o){const t=r.scrollableBox.elem,l=o?r.boxScrollBarTop:r.boxScrollBarLeft,e=o?t.clientHeight:t.clientWidth,i=o?t.scrollHeight:t.scrollWidth,c=o?t.scrollTop:t.scrollLeft,n=o?1==r.scrollableBox.scrollY:1==r.scrollableBox.scrollX,a=2*r.bar_width,s=e-2*a,b=i-e;if(!n||e<=0||i<=0||b<=0||s<r.bar_minLength)return l.visible=0,0;let u=s*(e/i);u<r.bar_minLength&&(u=r.bar_minLength),u>s&&(u=s);const h=a+c/b*(s-u);return o?(l.height=Math.round(u),l.top=Math.round(h)):(l.width=Math.round(u),l.left=Math.round(h)),l.visible=1,1},x=function(o){const t=r.scrollableBox.elem,l=o?t.clientHeight:t.clientWidth,e=o?t.scrollHeight:t.scrollWidth,i=o?r.boxScrollBarTop.height:r.boxScrollBarLeft.width,c=e-l,n=l-4*r.bar_width-i;return n<=0||c<=0?0:c/n};r.refreshScroll=function(){!i&&r.scrollableBox&&(!function(){const o=r.scrollableBox.containerBox;o&&r.containerBox!=o&&o.add(r);const t=r.scrollableBox.elem;r.width=t.clientWidth,r.height=t.clientHeight,r.aline(r.scrollableBox);const l=t.clientLeft,e=t.clientTop;isNaN(r.left)?isNaN(r.right)||(r.right=r.right+l):r.left=r.left+l,isNaN(r.top)?isNaN(r.bottom)||(r.bottom=r.bottom+e):r.top=r.top+e}(),r.neverHide||(r.boxScrollBarTop.opacity=r.bar_opacity,r.boxScrollBarLeft.opacity=r.bar_opacity),B(!0),B(!1),r.refreshDotButtons(),p())},r.refreshDotButtons=function(){if(i)return;const o=1==r.showDots&&1==r.boxScrollBarTop.visible,t=1==r.showDots&&1==r.boxScrollBarLeft.visible;r.topRightDot.visible=o?1:0,r.bottomLeftDot.visible=t?1:0,r.bottomRightDot.visible=o||t?1:0};const m=function(o,t){if(i||!h)return;u=!0;const l=r.scrollableBox.elem;"left"==h&&(l.scrollLeft=s+(t.clientX-n)*x(!1)),"top"==h&&(l.scrollTop=b+(t.clientY-a)*x(!0)),p()},_=function(){u=!1,h=null,t&&(t.remove(),t=null),i||(d(!0,!1),d(!1,!1),p())},g=function(o){t&&(t.remove(),t=null),n=o?o.clientX:0,a=o?o.clientY:0,s=r.scrollableBox.elem.scrollLeft,b=r.scrollableBox.elem.scrollTop,t=Box(0,0,"100%","100%",{color:"transparent",clickable:1}),page.add(t),t.position="absolute",t.left=0,t.top=0,t.elem.style.zIndex=String(2147483e3),t.on("mousemove",m),t.on("mouseup",_),t.on("mouseleave",_)};r.color="transparent",r.setMotion("opacity 0.2s"),r.boxScrollBarTop=Box({right:r.bar_padding,border:r.bar_border,borderColor:r.bar_borderColor,round:r.bar_round,width:r.bar_width,color:r.bar_color,opacity:r.bar_opacity,visible:0}),r.boxScrollBarTop.setMotion("width 0.2s, opacity 0.5s"),r.boxScrollBarLeft=Box({bottom:r.bar_padding,border:r.bar_border,borderColor:r.bar_borderColor,round:r.bar_round,height:r.bar_width,color:r.bar_color,opacity:r.bar_opacity,visible:0}),r.boxScrollBarLeft.setMotion("height 0.2s, opacity 0.5s");const v={width:r.bar_width,height:r.bar_width,color:r.bar_color,opacity:r.bar_opacity,round:r.bar_width,visible:0};if(r.topRightDot=Box({...v,right:r.bar_padding,top:2}),r.bottomRightDot=Box({...v,right:r.bar_padding,bottom:2}),r.bottomLeftDot=Box({...v,left:2,bottom:r.bar_padding}),endBox(),r.position="absolute",!r.scrollableBox)return println("ScrollBar: scrollableBox is required. ScrollBar({ scrollableBox: myBox })","error"),r.refreshScroll=function(){},r.refreshDotButtons=function(){},r.destroy=function(){r.remove()},makeBasicObject(r),r;r.refreshScroll(),r.scrollableBox.onResize(r.refreshScroll),page.onResize(r.refreshScroll),c.push(r.scrollableBox.on("scroll",r.refreshScroll)),c.push(r.scrollableBox.on("wheel",r.refreshScroll)),r.boxScrollBarTop.clickable=1,r.boxScrollBarLeft.clickable=1,r.boxScrollBarTop.on("mouseover",function(){d(!0,!0),f()}),r.boxScrollBarTop.on("mouseout",function(){"top"!=h&&d(!0,!1),p()}),r.boxScrollBarTop.on("mousedown",function(o,r){r&&r.preventDefault&&r.preventDefault(),h="top",d(!0,!0),g(r)}),r.boxScrollBarLeft.on("mouseover",function(){d(!1,!0),f()}),r.boxScrollBarLeft.on("mouseout",function(){"left"!=h&&d(!1,!1),p()}),r.boxScrollBarLeft.on("mousedown",function(o,r){r&&r.preventDefault&&r.preventDefault(),h="left",d(!1,!0),g(r)}),c.push(r.scrollableBox.on("mouseover",function(){r.boxScrollBarTop.opacity=r.bar_opacity,r.boxScrollBarLeft.opacity=r.bar_opacity,r.refreshDotButtons(),p()})),c.push(r.scrollableBox.on("mouseleave",function(){t||(h=null),p()}));const S=r.scrollableBox.elem;let y=S.scrollHeight,L=S.scrollWidth;e=new MutationObserver(function(o){S.scrollHeight==y&&S.scrollWidth==L||(y=S.scrollHeight,L=S.scrollWidth,r.refreshScroll())}),e.observe(S,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["style","class"]});const w=r.remove.bind(r);return r.remove=function(){if(!i){i=!0,f(),_(),e&&(e.disconnect(),e=null);for(let o=0;o<c.length;o++)c[o]();c=[],r.scrollableBox.remove_onResize(r.refreshScroll),page.remove_onResize(r.refreshScroll),w()}},r.destroy=function(){r.remove()},makeBasicObject(r),r};