@canonical/yui 3.18.2-pre

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 (1485) hide show
  1. package/AGENTS.md +50 -0
  2. package/BUILD.md +54 -0
  3. package/CONTRIBUTING.md +85 -0
  4. package/CONTRIBUTORS.md +30 -0
  5. package/Gruntfile.js +122 -0
  6. package/HISTORY.md +12 -0
  7. package/LICENSE.md +145 -0
  8. package/README.md +133 -0
  9. package/build/align-plugin/align-plugin-debug.js +193 -0
  10. package/build/align-plugin/align-plugin-min.js +1 -0
  11. package/build/align-plugin/align-plugin.js +193 -0
  12. package/build/anim-base/anim-base-debug.js +686 -0
  13. package/build/anim-base/anim-base-min.js +1 -0
  14. package/build/anim-base/anim-base.js +685 -0
  15. package/build/anim-color/anim-color-debug.js +53 -0
  16. package/build/anim-color/anim-color-min.js +1 -0
  17. package/build/anim-color/anim-color.js +53 -0
  18. package/build/anim-curve/anim-curve-debug.js +59 -0
  19. package/build/anim-curve/anim-curve-min.js +1 -0
  20. package/build/anim-curve/anim-curve.js +59 -0
  21. package/build/anim-easing/anim-easing-debug.js +365 -0
  22. package/build/anim-easing/anim-easing-min.js +1 -0
  23. package/build/anim-easing/anim-easing.js +365 -0
  24. package/build/anim-node-plugin/anim-node-plugin-debug.js +26 -0
  25. package/build/anim-node-plugin/anim-node-plugin-min.js +1 -0
  26. package/build/anim-node-plugin/anim-node-plugin.js +26 -0
  27. package/build/anim-scroll/anim-scroll-debug.js +38 -0
  28. package/build/anim-scroll/anim-scroll-min.js +1 -0
  29. package/build/anim-scroll/anim-scroll.js +38 -0
  30. package/build/anim-shape/anim-shape-debug.js +185 -0
  31. package/build/anim-shape/anim-shape-min.js +1 -0
  32. package/build/anim-shape/anim-shape.js +185 -0
  33. package/build/anim-xy/anim-xy-debug.js +26 -0
  34. package/build/anim-xy/anim-xy-min.js +1 -0
  35. package/build/anim-xy/anim-xy.js +26 -0
  36. package/build/app-base/app-base-debug.js +1116 -0
  37. package/build/app-base/app-base-min.js +1 -0
  38. package/build/app-base/app-base.js +1116 -0
  39. package/build/app-content/app-content-debug.js +235 -0
  40. package/build/app-content/app-content-min.js +1 -0
  41. package/build/app-content/app-content.js +235 -0
  42. package/build/app-transitions/app-transitions-debug.js +242 -0
  43. package/build/app-transitions/app-transitions-min.js +1 -0
  44. package/build/app-transitions/app-transitions.js +242 -0
  45. package/build/app-transitions-css/app-transitions-css-min.css +1 -0
  46. package/build/app-transitions-css/app-transitions-css.css +33 -0
  47. package/build/app-transitions-native/app-transitions-native-debug.js +353 -0
  48. package/build/app-transitions-native/app-transitions-native-min.js +1 -0
  49. package/build/app-transitions-native/app-transitions-native.js +353 -0
  50. package/build/array-extras/array-extras-debug.js +400 -0
  51. package/build/array-extras/array-extras-min.js +1 -0
  52. package/build/array-extras/array-extras.js +400 -0
  53. package/build/array-invoke/array-invoke-debug.js +40 -0
  54. package/build/array-invoke/array-invoke-min.js +1 -0
  55. package/build/array-invoke/array-invoke.js +40 -0
  56. package/build/arraylist/arraylist-debug.js +214 -0
  57. package/build/arraylist/arraylist-min.js +1 -0
  58. package/build/arraylist/arraylist.js +214 -0
  59. package/build/arraylist-add/arraylist-add-debug.js +87 -0
  60. package/build/arraylist-add/arraylist-add-min.js +1 -0
  61. package/build/arraylist-add/arraylist-add.js +87 -0
  62. package/build/arraylist-filter/arraylist-filter-debug.js +45 -0
  63. package/build/arraylist-filter/arraylist-filter-min.js +1 -0
  64. package/build/arraylist-filter/arraylist-filter.js +45 -0
  65. package/build/arraysort/arraysort-debug.js +181 -0
  66. package/build/arraysort/arraysort-min.js +1 -0
  67. package/build/arraysort/arraysort.js +181 -0
  68. package/build/async-queue/async-queue-debug.js +554 -0
  69. package/build/async-queue/async-queue-min.js +1 -0
  70. package/build/async-queue/async-queue.js +554 -0
  71. package/build/attribute-base/attribute-base-debug.js +110 -0
  72. package/build/attribute-base/attribute-base-min.js +1 -0
  73. package/build/attribute-base/attribute-base.js +110 -0
  74. package/build/attribute-complex/attribute-complex-debug.js +56 -0
  75. package/build/attribute-complex/attribute-complex-min.js +1 -0
  76. package/build/attribute-complex/attribute-complex.js +56 -0
  77. package/build/attribute-core/attribute-core-debug.js +1208 -0
  78. package/build/attribute-core/attribute-core-min.js +1 -0
  79. package/build/attribute-core/attribute-core.js +1196 -0
  80. package/build/attribute-extras/attribute-extras-debug.js +157 -0
  81. package/build/attribute-extras/attribute-extras-min.js +1 -0
  82. package/build/attribute-extras/attribute-extras.js +156 -0
  83. package/build/attribute-observable/attribute-observable-debug.js +237 -0
  84. package/build/attribute-observable/attribute-observable-min.js +1 -0
  85. package/build/attribute-observable/attribute-observable.js +236 -0
  86. package/build/autocomplete-base/autocomplete-base-debug.js +1557 -0
  87. package/build/autocomplete-base/autocomplete-base-min.js +2 -0
  88. package/build/autocomplete-base/autocomplete-base.js +1549 -0
  89. package/build/autocomplete-filters/autocomplete-filters-debug.js +239 -0
  90. package/build/autocomplete-filters/autocomplete-filters-min.js +1 -0
  91. package/build/autocomplete-filters/autocomplete-filters.js +239 -0
  92. package/build/autocomplete-filters-accentfold/autocomplete-filters-accentfold-debug.js +136 -0
  93. package/build/autocomplete-filters-accentfold/autocomplete-filters-accentfold-min.js +1 -0
  94. package/build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js +136 -0
  95. package/build/autocomplete-highlighters/autocomplete-highlighters-debug.js +199 -0
  96. package/build/autocomplete-highlighters/autocomplete-highlighters-min.js +1 -0
  97. package/build/autocomplete-highlighters/autocomplete-highlighters.js +199 -0
  98. package/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold-debug.js +107 -0
  99. package/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold-min.js +1 -0
  100. package/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js +107 -0
  101. package/build/autocomplete-list/assets/autocomplete-list-core.css +27 -0
  102. package/build/autocomplete-list/assets/skins/night/autocomplete-list-skin.css +51 -0
  103. package/build/autocomplete-list/assets/skins/night/autocomplete-list.css +1 -0
  104. package/build/autocomplete-list/assets/skins/sam/autocomplete-list-skin.css +17 -0
  105. package/build/autocomplete-list/assets/skins/sam/autocomplete-list.css +1 -0
  106. package/build/autocomplete-list/autocomplete-list-debug.js +906 -0
  107. package/build/autocomplete-list/autocomplete-list-min.js +2 -0
  108. package/build/autocomplete-list/autocomplete-list.js +906 -0
  109. package/build/autocomplete-list/lang/autocomplete-list.js +1 -0
  110. package/build/autocomplete-list/lang/autocomplete-list_en.js +1 -0
  111. package/build/autocomplete-list/lang/autocomplete-list_es.js +1 -0
  112. package/build/autocomplete-list/lang/autocomplete-list_hu.js +1 -0
  113. package/build/autocomplete-list/lang/autocomplete-list_it.js +1 -0
  114. package/build/autocomplete-list-keys/autocomplete-list-keys-debug.js +186 -0
  115. package/build/autocomplete-list-keys/autocomplete-list-keys-min.js +1 -0
  116. package/build/autocomplete-list-keys/autocomplete-list-keys.js +186 -0
  117. package/build/autocomplete-plugin/autocomplete-plugin-debug.js +48 -0
  118. package/build/autocomplete-plugin/autocomplete-plugin-min.js +1 -0
  119. package/build/autocomplete-plugin/autocomplete-plugin.js +48 -0
  120. package/build/autocomplete-sources/autocomplete-sources-debug.js +475 -0
  121. package/build/autocomplete-sources/autocomplete-sources-min.js +1 -0
  122. package/build/autocomplete-sources/autocomplete-sources.js +475 -0
  123. package/build/axis/axis-debug.js +3173 -0
  124. package/build/axis/axis-min.js +5 -0
  125. package/build/axis/axis.js +3173 -0
  126. package/build/axis-base/axis-base-debug.js +901 -0
  127. package/build/axis-base/axis-base-min.js +1 -0
  128. package/build/axis-base/axis-base.js +901 -0
  129. package/build/axis-category/axis-category-debug.js +119 -0
  130. package/build/axis-category/axis-category-min.js +1 -0
  131. package/build/axis-category/axis-category.js +119 -0
  132. package/build/axis-category-base/axis-category-base-debug.js +247 -0
  133. package/build/axis-category-base/axis-category-base-min.js +1 -0
  134. package/build/axis-category-base/axis-category-base.js +247 -0
  135. package/build/axis-numeric/axis-numeric-debug.js +140 -0
  136. package/build/axis-numeric/axis-numeric-min.js +1 -0
  137. package/build/axis-numeric/axis-numeric.js +140 -0
  138. package/build/axis-numeric-base/axis-numeric-base-debug.js +721 -0
  139. package/build/axis-numeric-base/axis-numeric-base-min.js +1 -0
  140. package/build/axis-numeric-base/axis-numeric-base.js +721 -0
  141. package/build/axis-stacked/axis-stacked-debug.js +23 -0
  142. package/build/axis-stacked/axis-stacked-min.js +1 -0
  143. package/build/axis-stacked/axis-stacked.js +23 -0
  144. package/build/axis-stacked-base/axis-stacked-base-debug.js +133 -0
  145. package/build/axis-stacked-base/axis-stacked-base-min.js +1 -0
  146. package/build/axis-stacked-base/axis-stacked-base.js +133 -0
  147. package/build/axis-time/axis-time-debug.js +91 -0
  148. package/build/axis-time/axis-time-min.js +1 -0
  149. package/build/axis-time/axis-time.js +91 -0
  150. package/build/axis-time-base/axis-time-base-debug.js +352 -0
  151. package/build/axis-time-base/axis-time-base-min.js +1 -0
  152. package/build/axis-time-base/axis-time-base.js +352 -0
  153. package/build/base-base/base-base-debug.js +184 -0
  154. package/build/base-base/base-base-min.js +1 -0
  155. package/build/base-base/base-base.js +184 -0
  156. package/build/base-build/base-build-debug.js +453 -0
  157. package/build/base-build/base-build-min.js +1 -0
  158. package/build/base-build/base-build.js +453 -0
  159. package/build/base-core/base-core-debug.js +838 -0
  160. package/build/base-core/base-core-min.js +1 -0
  161. package/build/base-core/base-core.js +832 -0
  162. package/build/base-observable/base-observable-debug.js +221 -0
  163. package/build/base-observable/base-observable-min.js +1 -0
  164. package/build/base-observable/base-observable.js +220 -0
  165. package/build/base-pluginhost/base-pluginhost-debug.js +36 -0
  166. package/build/base-pluginhost/base-pluginhost-min.js +1 -0
  167. package/build/base-pluginhost/base-pluginhost.js +36 -0
  168. package/build/button/button-debug.js +332 -0
  169. package/build/button/button-min.js +1 -0
  170. package/build/button/button.js +332 -0
  171. package/build/button-core/button-core-debug.js +399 -0
  172. package/build/button-core/button-core-min.js +1 -0
  173. package/build/button-core/button-core.js +399 -0
  174. package/build/button-group/button-group-debug.js +194 -0
  175. package/build/button-group/button-group-min.js +1 -0
  176. package/build/button-group/button-group.js +194 -0
  177. package/build/button-plugin/button-plugin-debug.js +134 -0
  178. package/build/button-plugin/button-plugin-min.js +1 -0
  179. package/build/button-plugin/button-plugin.js +134 -0
  180. package/build/cache-base/cache-base-debug.js +442 -0
  181. package/build/cache-base/cache-base-min.js +1 -0
  182. package/build/cache-base/cache-base.js +432 -0
  183. package/build/cache-offline/cache-offline-debug.js +341 -0
  184. package/build/cache-offline/cache-offline-min.js +1 -0
  185. package/build/cache-offline/cache-offline.js +333 -0
  186. package/build/cache-plugin/cache-plugin-debug.js +53 -0
  187. package/build/cache-plugin/cache-plugin-min.js +1 -0
  188. package/build/cache-plugin/cache-plugin.js +53 -0
  189. package/build/calendar/assets/calendar-core.css +31 -0
  190. package/build/calendar/assets/skins/night/calendar-skin.css +7 -0
  191. package/build/calendar/assets/skins/night/calendar.css +1 -0
  192. package/build/calendar/assets/skins/sam/calendar-skin.css +7 -0
  193. package/build/calendar/assets/skins/sam/calendar.css +1 -0
  194. package/build/calendar/calendar-debug.js +610 -0
  195. package/build/calendar/calendar-min.js +2 -0
  196. package/build/calendar/calendar.js +610 -0
  197. package/build/calendar-base/assets/calendar-base-core.css +21 -0
  198. package/build/calendar-base/assets/skins/night/calendar-base-skin.css +92 -0
  199. package/build/calendar-base/assets/skins/night/calendar-base.css +1 -0
  200. package/build/calendar-base/assets/skins/sam/calendar-base-skin.css +98 -0
  201. package/build/calendar-base/assets/skins/sam/calendar-base.css +1 -0
  202. package/build/calendar-base/calendar-base-debug.js +1719 -0
  203. package/build/calendar-base/calendar-base-min.js +3 -0
  204. package/build/calendar-base/calendar-base.js +1719 -0
  205. package/build/calendar-base/lang/calendar-base.js +1 -0
  206. package/build/calendar-base/lang/calendar-base_de.js +1 -0
  207. package/build/calendar-base/lang/calendar-base_en.js +1 -0
  208. package/build/calendar-base/lang/calendar-base_es-AR.js +1 -0
  209. package/build/calendar-base/lang/calendar-base_es.js +1 -0
  210. package/build/calendar-base/lang/calendar-base_fr.js +1 -0
  211. package/build/calendar-base/lang/calendar-base_hu.js +1 -0
  212. package/build/calendar-base/lang/calendar-base_it.js +1 -0
  213. package/build/calendar-base/lang/calendar-base_ja.js +1 -0
  214. package/build/calendar-base/lang/calendar-base_nb-NO.js +1 -0
  215. package/build/calendar-base/lang/calendar-base_nl.js +1 -0
  216. package/build/calendar-base/lang/calendar-base_pt-BR.js +1 -0
  217. package/build/calendar-base/lang/calendar-base_ru.js +1 -0
  218. package/build/calendar-base/lang/calendar-base_zh-HANT-TW.js +1 -0
  219. package/build/calendar-base/lang/calendar-base_zh-Hans-CN.js +1 -0
  220. package/build/calendar-base/lang/calendar-base_zh-Hans.js +1 -0
  221. package/build/calendar-base/lang/calendar-base_zh-Hant-HK.js +1 -0
  222. package/build/calendar-base/lang/calendar-base_zh-Hant.js +1 -0
  223. package/build/calendarnavigator/assets/calendarnavigator-core.css +18 -0
  224. package/build/calendarnavigator/assets/skins/night/calendarnavigator-skin.css +78 -0
  225. package/build/calendarnavigator/assets/skins/night/calendarnavigator.css +1 -0
  226. package/build/calendarnavigator/assets/skins/sam/calendarnavigator-skin.css +78 -0
  227. package/build/calendarnavigator/assets/skins/sam/calendarnavigator.css +1 -0
  228. package/build/calendarnavigator/calendarnavigator-debug.js +297 -0
  229. package/build/calendarnavigator/calendarnavigator-min.js +1 -0
  230. package/build/calendarnavigator/calendarnavigator.js +297 -0
  231. package/build/charts-base/charts-base-debug.js +5181 -0
  232. package/build/charts-base/charts-base-min.js +8 -0
  233. package/build/charts-base/charts-base.js +5181 -0
  234. package/build/charts-legend/charts-legend-debug.js +1703 -0
  235. package/build/charts-legend/charts-legend-min.js +3 -0
  236. package/build/charts-legend/charts-legend.js +1703 -0
  237. package/build/classnamemanager/classnamemanager-debug.js +84 -0
  238. package/build/classnamemanager/classnamemanager-min.js +1 -0
  239. package/build/classnamemanager/classnamemanager.js +84 -0
  240. package/build/clickable-rail/clickable-rail-debug.js +212 -0
  241. package/build/clickable-rail/clickable-rail-min.js +1 -0
  242. package/build/clickable-rail/clickable-rail.js +212 -0
  243. package/build/color-base/color-base-debug.js +492 -0
  244. package/build/color-base/color-base-min.js +1 -0
  245. package/build/color-base/color-base.js +492 -0
  246. package/build/color-harmony/color-harmony-debug.js +569 -0
  247. package/build/color-harmony/color-harmony-min.js +1 -0
  248. package/build/color-harmony/color-harmony.js +568 -0
  249. package/build/color-hsl/color-hsl-debug.js +218 -0
  250. package/build/color-hsl/color-hsl-min.js +1 -0
  251. package/build/color-hsl/color-hsl.js +218 -0
  252. package/build/color-hsv/color-hsv-debug.js +182 -0
  253. package/build/color-hsv/color-hsv-min.js +1 -0
  254. package/build/color-hsv/color-hsv.js +182 -0
  255. package/build/console/assets/console-core.css +0 -0
  256. package/build/console/assets/skins/sam/bg.png +0 -0
  257. package/build/console/assets/skins/sam/console-skin.css +185 -0
  258. package/build/console/assets/skins/sam/console.css +1 -0
  259. package/build/console/assets/skins/sam/warn_error.png +0 -0
  260. package/build/console/assets/warn_error.png +0 -0
  261. package/build/console/console-debug.js +1517 -0
  262. package/build/console/console-min.js +2 -0
  263. package/build/console/console.js +1517 -0
  264. package/build/console/lang/console.js +1 -0
  265. package/build/console/lang/console_en.js +1 -0
  266. package/build/console/lang/console_es.js +1 -0
  267. package/build/console/lang/console_hu.js +1 -0
  268. package/build/console/lang/console_it.js +1 -0
  269. package/build/console/lang/console_ja.js +1 -0
  270. package/build/console-filters/assets/console-filters-core.css +0 -0
  271. package/build/console-filters/assets/skins/sam/console-filters-skin.css +27 -0
  272. package/build/console-filters/assets/skins/sam/console-filters.css +1 -0
  273. package/build/console-filters/console-filters-debug.js +723 -0
  274. package/build/console-filters/console-filters-min.js +1 -0
  275. package/build/console-filters/console-filters.js +723 -0
  276. package/build/content-editable/content-editable-debug.js +808 -0
  277. package/build/content-editable/content-editable-min.js +1 -0
  278. package/build/content-editable/content-editable.js +797 -0
  279. package/build/cookie/cookie-debug.js +508 -0
  280. package/build/cookie/cookie-min.js +1 -0
  281. package/build/cookie/cookie.js +508 -0
  282. package/build/createlink-base/createlink-base-debug.js +86 -0
  283. package/build/createlink-base/createlink-base-min.js +1 -0
  284. package/build/createlink-base/createlink-base.js +85 -0
  285. package/build/cssbase/cssbase-min.css +1 -0
  286. package/build/cssbase/cssbase.css +77 -0
  287. package/build/cssbase-context/cssbase-context-min.css +1 -0
  288. package/build/cssbase-context/cssbase-context.css +76 -0
  289. package/build/cssbutton/cssbutton-min.css +1 -0
  290. package/build/cssbutton/cssbutton.css +147 -0
  291. package/build/cssfonts/cssfonts-min.css +1 -0
  292. package/build/cssfonts/cssfonts.css +43 -0
  293. package/build/cssfonts-context/cssfonts-context-min.css +1 -0
  294. package/build/cssfonts-context/cssfonts-context.css +43 -0
  295. package/build/cssgrids/cssgrids-min.css +11 -0
  296. package/build/cssgrids/cssgrids.css +298 -0
  297. package/build/cssgrids-base/cssgrids-base-min.css +6 -0
  298. package/build/cssgrids-base/cssgrids-base.css +80 -0
  299. package/build/cssgrids-responsive/cssgrids-responsive-min.css +6 -0
  300. package/build/cssgrids-responsive/cssgrids-responsive.css +398 -0
  301. package/build/cssgrids-units/cssgrids-units-min.css +6 -0
  302. package/build/cssgrids-units/cssgrids-units.css +221 -0
  303. package/build/cssnormalize/cssnormalize-min.css +9 -0
  304. package/build/cssnormalize/cssnormalize.css +584 -0
  305. package/build/cssnormalize-context/cssnormalize-context-min.css +9 -0
  306. package/build/cssnormalize-context/cssnormalize-context.css +584 -0
  307. package/build/cssreset/cssreset-min.css +1 -0
  308. package/build/cssreset/cssreset.css +116 -0
  309. package/build/cssreset-context/cssreset-context-min.css +1 -0
  310. package/build/cssreset-context/cssreset-context.css +121 -0
  311. package/build/dataschema-array/dataschema-array-debug.js +189 -0
  312. package/build/dataschema-array/dataschema-array-min.js +1 -0
  313. package/build/dataschema-array/dataschema-array.js +186 -0
  314. package/build/dataschema-base/dataschema-base-debug.js +67 -0
  315. package/build/dataschema-base/dataschema-base-min.js +1 -0
  316. package/build/dataschema-base/dataschema-base.js +66 -0
  317. package/build/dataschema-json/dataschema-json-debug.js +443 -0
  318. package/build/dataschema-json/dataschema-json-min.js +1 -0
  319. package/build/dataschema-json/dataschema-json.js +439 -0
  320. package/build/dataschema-text/dataschema-text-debug.js +183 -0
  321. package/build/dataschema-text/dataschema-text-min.js +1 -0
  322. package/build/dataschema-text/dataschema-text.js +182 -0
  323. package/build/dataschema-xml/dataschema-xml-debug.js +385 -0
  324. package/build/dataschema-xml/dataschema-xml-min.js +1 -0
  325. package/build/dataschema-xml/dataschema-xml.js +383 -0
  326. package/build/datasource-arrayschema/datasource-arrayschema-debug.js +106 -0
  327. package/build/datasource-arrayschema/datasource-arrayschema-min.js +1 -0
  328. package/build/datasource-arrayschema/datasource-arrayschema.js +106 -0
  329. package/build/datasource-cache/datasource-cache-debug.js +166 -0
  330. package/build/datasource-cache/datasource-cache-min.js +1 -0
  331. package/build/datasource-cache/datasource-cache.js +166 -0
  332. package/build/datasource-function/datasource-function-debug.js +108 -0
  333. package/build/datasource-function/datasource-function-min.js +1 -0
  334. package/build/datasource-function/datasource-function.js +106 -0
  335. package/build/datasource-get/datasource-get-debug.js +213 -0
  336. package/build/datasource-get/datasource-get-min.js +1 -0
  337. package/build/datasource-get/datasource-get.js +209 -0
  338. package/build/datasource-io/datasource-io-debug.js +204 -0
  339. package/build/datasource-io/datasource-io-min.js +1 -0
  340. package/build/datasource-io/datasource-io.js +201 -0
  341. package/build/datasource-jsonschema/datasource-jsonschema-debug.js +103 -0
  342. package/build/datasource-jsonschema/datasource-jsonschema-min.js +1 -0
  343. package/build/datasource-jsonschema/datasource-jsonschema.js +103 -0
  344. package/build/datasource-local/datasource-local-debug.js +402 -0
  345. package/build/datasource-local/datasource-local-min.js +1 -0
  346. package/build/datasource-local/datasource-local.js +398 -0
  347. package/build/datasource-polling/datasource-polling-debug.js +93 -0
  348. package/build/datasource-polling/datasource-polling-min.js +1 -0
  349. package/build/datasource-polling/datasource-polling.js +93 -0
  350. package/build/datasource-textschema/datasource-textschema-debug.js +102 -0
  351. package/build/datasource-textschema/datasource-textschema-min.js +1 -0
  352. package/build/datasource-textschema/datasource-textschema.js +102 -0
  353. package/build/datasource-xmlschema/datasource-xmlschema-debug.js +102 -0
  354. package/build/datasource-xmlschema/datasource-xmlschema-min.js +1 -0
  355. package/build/datasource-xmlschema/datasource-xmlschema.js +102 -0
  356. package/build/datatable-base/assets/datatable-base-core.css +4 -0
  357. package/build/datatable-base/assets/skins/night/datatable-base-skin.css +74 -0
  358. package/build/datatable-base/assets/skins/night/datatable-base.css +1 -0
  359. package/build/datatable-base/assets/skins/sam/datatable-base-skin.css +69 -0
  360. package/build/datatable-base/assets/skins/sam/datatable-base.css +1 -0
  361. package/build/datatable-base/datatable-base-debug.js +694 -0
  362. package/build/datatable-base/datatable-base-min.js +1 -0
  363. package/build/datatable-base/datatable-base.js +694 -0
  364. package/build/datatable-body/datatable-body-debug.js +1211 -0
  365. package/build/datatable-body/datatable-body-min.js +2 -0
  366. package/build/datatable-body/datatable-body.js +1211 -0
  367. package/build/datatable-column-widths/datatable-column-widths-debug.js +323 -0
  368. package/build/datatable-column-widths/datatable-column-widths-min.js +1 -0
  369. package/build/datatable-column-widths/datatable-column-widths.js +323 -0
  370. package/build/datatable-core/datatable-core-debug.js +1321 -0
  371. package/build/datatable-core/datatable-core-min.js +1 -0
  372. package/build/datatable-core/datatable-core.js +1319 -0
  373. package/build/datatable-datasource/datatable-datasource-debug.js +180 -0
  374. package/build/datatable-datasource/datatable-datasource-min.js +1 -0
  375. package/build/datatable-datasource/datatable-datasource.js +180 -0
  376. package/build/datatable-foot/datatable-foot-debug.js +112 -0
  377. package/build/datatable-foot/datatable-foot-min.js +1 -0
  378. package/build/datatable-foot/datatable-foot.js +112 -0
  379. package/build/datatable-formatters/datatable-formatters-debug.js +563 -0
  380. package/build/datatable-formatters/datatable-formatters-min.js +1 -0
  381. package/build/datatable-formatters/datatable-formatters.js +563 -0
  382. package/build/datatable-head/datatable-head-debug.js +532 -0
  383. package/build/datatable-head/datatable-head-min.js +1 -0
  384. package/build/datatable-head/datatable-head.js +532 -0
  385. package/build/datatable-highlight/assets/datatable-highlight-core.css +26 -0
  386. package/build/datatable-highlight/assets/skins/night/datatable-highlight-skin.css +11 -0
  387. package/build/datatable-highlight/assets/skins/night/datatable-highlight.css +1 -0
  388. package/build/datatable-highlight/assets/skins/sam/datatable-highlight-skin.css +11 -0
  389. package/build/datatable-highlight/assets/skins/sam/datatable-highlight.css +1 -0
  390. package/build/datatable-highlight/datatable-highlight-debug.js +282 -0
  391. package/build/datatable-highlight/datatable-highlight-min.js +1 -0
  392. package/build/datatable-highlight/datatable-highlight.js +282 -0
  393. package/build/datatable-keynav/datatable-keynav-debug.js +706 -0
  394. package/build/datatable-keynav/datatable-keynav-min.js +2 -0
  395. package/build/datatable-keynav/datatable-keynav.js +706 -0
  396. package/build/datatable-message/assets/datatable-message-core.css +8 -0
  397. package/build/datatable-message/assets/skins/night/datatable-message-skin.css +6 -0
  398. package/build/datatable-message/assets/skins/night/datatable-message.css +1 -0
  399. package/build/datatable-message/assets/skins/sam/datatable-message-skin.css +5 -0
  400. package/build/datatable-message/assets/skins/sam/datatable-message.css +1 -0
  401. package/build/datatable-message/datatable-message-debug.js +290 -0
  402. package/build/datatable-message/datatable-message-min.js +1 -0
  403. package/build/datatable-message/datatable-message.js +290 -0
  404. package/build/datatable-message/lang/datatable-message.js +1 -0
  405. package/build/datatable-message/lang/datatable-message_en.js +1 -0
  406. package/build/datatable-message/lang/datatable-message_es.js +1 -0
  407. package/build/datatable-message/lang/datatable-message_fr.js +1 -0
  408. package/build/datatable-message/lang/datatable-message_hu.js +1 -0
  409. package/build/datatable-message/lang/datatable-message_it.js +1 -0
  410. package/build/datatable-mutable/datatable-mutable-debug.js +635 -0
  411. package/build/datatable-mutable/datatable-mutable-min.js +1 -0
  412. package/build/datatable-mutable/datatable-mutable.js +630 -0
  413. package/build/datatable-paginator/assets/datatable-paginator-core.css +58 -0
  414. package/build/datatable-paginator/assets/skins/night/datatable-paginator-skin.css +35 -0
  415. package/build/datatable-paginator/assets/skins/night/datatable-paginator.css +1 -0
  416. package/build/datatable-paginator/assets/skins/sam/datatable-paginator-skin.css +36 -0
  417. package/build/datatable-paginator/assets/skins/sam/datatable-paginator.css +1 -0
  418. package/build/datatable-paginator/datatable-paginator-debug.js +995 -0
  419. package/build/datatable-paginator/datatable-paginator-min.js +2 -0
  420. package/build/datatable-paginator/datatable-paginator.js +995 -0
  421. package/build/datatable-paginator/lang/datatable-paginator.js +1 -0
  422. package/build/datatable-paginator/lang/datatable-paginator_en.js +1 -0
  423. package/build/datatable-paginator/lang/datatable-paginator_fr.js +1 -0
  424. package/build/datatable-paginator-templates/datatable-paginator-templates-debug.js +87 -0
  425. package/build/datatable-paginator-templates/datatable-paginator-templates-min.js +1 -0
  426. package/build/datatable-paginator-templates/datatable-paginator-templates.js +87 -0
  427. package/build/datatable-scroll/assets/datatable-scroll-core.css +71 -0
  428. package/build/datatable-scroll/assets/skins/night/datatable-scroll-skin.css +25 -0
  429. package/build/datatable-scroll/assets/skins/night/datatable-scroll.css +1 -0
  430. package/build/datatable-scroll/assets/skins/sam/datatable-scroll-skin.css +24 -0
  431. package/build/datatable-scroll/assets/skins/sam/datatable-scroll.css +1 -0
  432. package/build/datatable-scroll/datatable-scroll-debug.js +1386 -0
  433. package/build/datatable-scroll/datatable-scroll-min.js +2 -0
  434. package/build/datatable-scroll/datatable-scroll.js +1386 -0
  435. package/build/datatable-sort/assets/datatable-sort-core.css +17 -0
  436. package/build/datatable-sort/assets/skins/night/datatable-sort-skin.css +85 -0
  437. package/build/datatable-sort/assets/skins/night/datatable-sort.css +1 -0
  438. package/build/datatable-sort/assets/skins/night/sort-arrow-sprite-ie.png +0 -0
  439. package/build/datatable-sort/assets/skins/night/sort-arrow-sprite.png +0 -0
  440. package/build/datatable-sort/assets/skins/sam/datatable-sort-skin.css +43 -0
  441. package/build/datatable-sort/assets/skins/sam/datatable-sort.css +1 -0
  442. package/build/datatable-sort/assets/skins/sam/sort-arrow-sprite-ie.png +0 -0
  443. package/build/datatable-sort/assets/skins/sam/sort-arrow-sprite.png +0 -0
  444. package/build/datatable-sort/datatable-sort-debug.js +979 -0
  445. package/build/datatable-sort/datatable-sort-min.js +1 -0
  446. package/build/datatable-sort/datatable-sort.js +979 -0
  447. package/build/datatable-sort/lang/datatable-sort.js +1 -0
  448. package/build/datatable-sort/lang/datatable-sort_en.js +1 -0
  449. package/build/datatable-sort/lang/datatable-sort_es.js +1 -0
  450. package/build/datatable-sort/lang/datatable-sort_fr.js +1 -0
  451. package/build/datatable-sort/lang/datatable-sort_hu.js +1 -0
  452. package/build/datatable-table/datatable-table-debug.js +755 -0
  453. package/build/datatable-table/datatable-table-min.js +1 -0
  454. package/build/datatable-table/datatable-table.js +755 -0
  455. package/build/datatype-date-format/datatype-date-format-debug.js +387 -0
  456. package/build/datatype-date-format/datatype-date-format-min.js +1 -0
  457. package/build/datatype-date-format/datatype-date-format.js +385 -0
  458. package/build/datatype-date-format/lang/datatype-date-format.js +1 -0
  459. package/build/datatype-date-format/lang/datatype-date-format_ar-JO.js +1 -0
  460. package/build/datatype-date-format/lang/datatype-date-format_ar.js +1 -0
  461. package/build/datatype-date-format/lang/datatype-date-format_ca-ES.js +1 -0
  462. package/build/datatype-date-format/lang/datatype-date-format_ca.js +1 -0
  463. package/build/datatype-date-format/lang/datatype-date-format_da-DK.js +1 -0
  464. package/build/datatype-date-format/lang/datatype-date-format_da.js +1 -0
  465. package/build/datatype-date-format/lang/datatype-date-format_de-AT.js +1 -0
  466. package/build/datatype-date-format/lang/datatype-date-format_de-DE.js +1 -0
  467. package/build/datatype-date-format/lang/datatype-date-format_de.js +1 -0
  468. package/build/datatype-date-format/lang/datatype-date-format_el-GR.js +1 -0
  469. package/build/datatype-date-format/lang/datatype-date-format_el.js +1 -0
  470. package/build/datatype-date-format/lang/datatype-date-format_en-AU.js +1 -0
  471. package/build/datatype-date-format/lang/datatype-date-format_en-CA.js +1 -0
  472. package/build/datatype-date-format/lang/datatype-date-format_en-GB.js +1 -0
  473. package/build/datatype-date-format/lang/datatype-date-format_en-IE.js +1 -0
  474. package/build/datatype-date-format/lang/datatype-date-format_en-IN.js +1 -0
  475. package/build/datatype-date-format/lang/datatype-date-format_en-JO.js +1 -0
  476. package/build/datatype-date-format/lang/datatype-date-format_en-MY.js +1 -0
  477. package/build/datatype-date-format/lang/datatype-date-format_en-NZ.js +1 -0
  478. package/build/datatype-date-format/lang/datatype-date-format_en-PH.js +1 -0
  479. package/build/datatype-date-format/lang/datatype-date-format_en-SG.js +1 -0
  480. package/build/datatype-date-format/lang/datatype-date-format_en-US.js +1 -0
  481. package/build/datatype-date-format/lang/datatype-date-format_en.js +1 -0
  482. package/build/datatype-date-format/lang/datatype-date-format_es-AR.js +1 -0
  483. package/build/datatype-date-format/lang/datatype-date-format_es-BO.js +1 -0
  484. package/build/datatype-date-format/lang/datatype-date-format_es-CL.js +1 -0
  485. package/build/datatype-date-format/lang/datatype-date-format_es-CO.js +1 -0
  486. package/build/datatype-date-format/lang/datatype-date-format_es-EC.js +1 -0
  487. package/build/datatype-date-format/lang/datatype-date-format_es-ES.js +1 -0
  488. package/build/datatype-date-format/lang/datatype-date-format_es-MX.js +1 -0
  489. package/build/datatype-date-format/lang/datatype-date-format_es-PE.js +1 -0
  490. package/build/datatype-date-format/lang/datatype-date-format_es-PY.js +1 -0
  491. package/build/datatype-date-format/lang/datatype-date-format_es-US.js +1 -0
  492. package/build/datatype-date-format/lang/datatype-date-format_es-UY.js +1 -0
  493. package/build/datatype-date-format/lang/datatype-date-format_es-VE.js +1 -0
  494. package/build/datatype-date-format/lang/datatype-date-format_es.js +1 -0
  495. package/build/datatype-date-format/lang/datatype-date-format_fi-FI.js +1 -0
  496. package/build/datatype-date-format/lang/datatype-date-format_fi.js +1 -0
  497. package/build/datatype-date-format/lang/datatype-date-format_fr-BE.js +1 -0
  498. package/build/datatype-date-format/lang/datatype-date-format_fr-CA.js +1 -0
  499. package/build/datatype-date-format/lang/datatype-date-format_fr-FR.js +1 -0
  500. package/build/datatype-date-format/lang/datatype-date-format_fr.js +1 -0
  501. package/build/datatype-date-format/lang/datatype-date-format_hi-IN.js +1 -0
  502. package/build/datatype-date-format/lang/datatype-date-format_hi.js +1 -0
  503. package/build/datatype-date-format/lang/datatype-date-format_hu.js +1 -0
  504. package/build/datatype-date-format/lang/datatype-date-format_id-ID.js +1 -0
  505. package/build/datatype-date-format/lang/datatype-date-format_id.js +1 -0
  506. package/build/datatype-date-format/lang/datatype-date-format_it-IT.js +1 -0
  507. package/build/datatype-date-format/lang/datatype-date-format_it.js +1 -0
  508. package/build/datatype-date-format/lang/datatype-date-format_ja-JP.js +1 -0
  509. package/build/datatype-date-format/lang/datatype-date-format_ja.js +1 -0
  510. package/build/datatype-date-format/lang/datatype-date-format_ko-KR.js +1 -0
  511. package/build/datatype-date-format/lang/datatype-date-format_ko.js +1 -0
  512. package/build/datatype-date-format/lang/datatype-date-format_ms-MY.js +1 -0
  513. package/build/datatype-date-format/lang/datatype-date-format_ms.js +1 -0
  514. package/build/datatype-date-format/lang/datatype-date-format_nb-NO.js +1 -0
  515. package/build/datatype-date-format/lang/datatype-date-format_nb.js +1 -0
  516. package/build/datatype-date-format/lang/datatype-date-format_nl-BE.js +1 -0
  517. package/build/datatype-date-format/lang/datatype-date-format_nl-NL.js +1 -0
  518. package/build/datatype-date-format/lang/datatype-date-format_nl.js +1 -0
  519. package/build/datatype-date-format/lang/datatype-date-format_pl-PL.js +1 -0
  520. package/build/datatype-date-format/lang/datatype-date-format_pl.js +1 -0
  521. package/build/datatype-date-format/lang/datatype-date-format_pt-BR.js +1 -0
  522. package/build/datatype-date-format/lang/datatype-date-format_pt.js +1 -0
  523. package/build/datatype-date-format/lang/datatype-date-format_ro-RO.js +1 -0
  524. package/build/datatype-date-format/lang/datatype-date-format_ro.js +1 -0
  525. package/build/datatype-date-format/lang/datatype-date-format_ru-RU.js +1 -0
  526. package/build/datatype-date-format/lang/datatype-date-format_ru.js +1 -0
  527. package/build/datatype-date-format/lang/datatype-date-format_sv-SE.js +1 -0
  528. package/build/datatype-date-format/lang/datatype-date-format_sv.js +1 -0
  529. package/build/datatype-date-format/lang/datatype-date-format_th-TH.js +1 -0
  530. package/build/datatype-date-format/lang/datatype-date-format_th.js +1 -0
  531. package/build/datatype-date-format/lang/datatype-date-format_tr-TR.js +1 -0
  532. package/build/datatype-date-format/lang/datatype-date-format_tr.js +1 -0
  533. package/build/datatype-date-format/lang/datatype-date-format_vi-VN.js +1 -0
  534. package/build/datatype-date-format/lang/datatype-date-format_vi.js +1 -0
  535. package/build/datatype-date-format/lang/datatype-date-format_zh-Hans-CN.js +1 -0
  536. package/build/datatype-date-format/lang/datatype-date-format_zh-Hans.js +1 -0
  537. package/build/datatype-date-format/lang/datatype-date-format_zh-Hant-HK.js +1 -0
  538. package/build/datatype-date-format/lang/datatype-date-format_zh-Hant-TW.js +1 -0
  539. package/build/datatype-date-format/lang/datatype-date-format_zh-Hant.js +1 -0
  540. package/build/datatype-date-math/datatype-date-math-debug.js +208 -0
  541. package/build/datatype-date-math/datatype-date-math-min.js +1 -0
  542. package/build/datatype-date-math/datatype-date-math.js +207 -0
  543. package/build/datatype-date-parse/datatype-date-parse-debug.js +36 -0
  544. package/build/datatype-date-parse/datatype-date-parse-min.js +1 -0
  545. package/build/datatype-date-parse/datatype-date-parse.js +35 -0
  546. package/build/datatype-number-format/datatype-number-format-debug.js +109 -0
  547. package/build/datatype-number-format/datatype-number-format-min.js +1 -0
  548. package/build/datatype-number-format/datatype-number-format.js +108 -0
  549. package/build/datatype-number-parse/datatype-number-parse-debug.js +105 -0
  550. package/build/datatype-number-parse/datatype-number-parse-min.js +1 -0
  551. package/build/datatype-number-parse/datatype-number-parse.js +104 -0
  552. package/build/datatype-xml-format/datatype-xml-format-debug.js +53 -0
  553. package/build/datatype-xml-format/datatype-xml-format-min.js +1 -0
  554. package/build/datatype-xml-format/datatype-xml-format.js +52 -0
  555. package/build/datatype-xml-parse/datatype-xml-parse-debug.js +50 -0
  556. package/build/datatype-xml-parse/datatype-xml-parse-min.js +1 -0
  557. package/build/datatype-xml-parse/datatype-xml-parse.js +49 -0
  558. package/build/dd-constrain/dd-constrain-debug.js +562 -0
  559. package/build/dd-constrain/dd-constrain-min.js +1 -0
  560. package/build/dd-constrain/dd-constrain.js +562 -0
  561. package/build/dd-ddm/dd-ddm-debug.js +126 -0
  562. package/build/dd-ddm/dd-ddm-min.js +1 -0
  563. package/build/dd-ddm/dd-ddm.js +126 -0
  564. package/build/dd-ddm-base/dd-ddm-base-debug.js +374 -0
  565. package/build/dd-ddm-base/dd-ddm-base-min.js +1 -0
  566. package/build/dd-ddm-base/dd-ddm-base.js +374 -0
  567. package/build/dd-ddm-drop/dd-ddm-drop-debug.js +399 -0
  568. package/build/dd-ddm-drop/dd-ddm-drop-min.js +1 -0
  569. package/build/dd-ddm-drop/dd-ddm-drop.js +399 -0
  570. package/build/dd-delegate/dd-delegate-debug.js +337 -0
  571. package/build/dd-delegate/dd-delegate-min.js +1 -0
  572. package/build/dd-delegate/dd-delegate.js +337 -0
  573. package/build/dd-drag/dd-drag-debug.js +1270 -0
  574. package/build/dd-drag/dd-drag-min.js +2 -0
  575. package/build/dd-drag/dd-drag.js +1267 -0
  576. package/build/dd-drop/dd-drop-debug.js +553 -0
  577. package/build/dd-drop/dd-drop-min.js +1 -0
  578. package/build/dd-drop/dd-drop.js +552 -0
  579. package/build/dd-drop-plugin/dd-drop-plugin-debug.js +44 -0
  580. package/build/dd-drop-plugin/dd-drop-plugin-min.js +1 -0
  581. package/build/dd-drop-plugin/dd-drop-plugin.js +44 -0
  582. package/build/dd-gestures/dd-gestures-debug.js +56 -0
  583. package/build/dd-gestures/dd-gestures-min.js +1 -0
  584. package/build/dd-gestures/dd-gestures.js +54 -0
  585. package/build/dd-plugin/dd-plugin-debug.js +205 -0
  586. package/build/dd-plugin/dd-plugin-min.js +1 -0
  587. package/build/dd-plugin/dd-plugin.js +200 -0
  588. package/build/dd-proxy/dd-proxy-debug.js +251 -0
  589. package/build/dd-proxy/dd-proxy-min.js +1 -0
  590. package/build/dd-proxy/dd-proxy.js +251 -0
  591. package/build/dd-scroll/dd-scroll-debug.js +423 -0
  592. package/build/dd-scroll/dd-scroll-min.js +1 -0
  593. package/build/dd-scroll/dd-scroll.js +423 -0
  594. package/build/dial/assets/dial-core.css +42 -0
  595. package/build/dial/assets/skins/night/dial-skin.css +89 -0
  596. package/build/dial/assets/skins/night/dial.css +1 -0
  597. package/build/dial/assets/skins/sam/dial-skin.css +75 -0
  598. package/build/dial/assets/skins/sam/dial.css +1 -0
  599. package/build/dial/dial-debug.js +1327 -0
  600. package/build/dial/dial-min.js +3 -0
  601. package/build/dial/dial.js +1327 -0
  602. package/build/dial/lang/dial.js +1 -0
  603. package/build/dial/lang/dial_en.js +1 -0
  604. package/build/dial/lang/dial_es.js +1 -0
  605. package/build/dial/lang/dial_hu.js +1 -0
  606. package/build/dom-base/dom-base-debug.js +699 -0
  607. package/build/dom-base/dom-base-min.js +2 -0
  608. package/build/dom-base/dom-base.js +695 -0
  609. package/build/dom-core/dom-core-debug.js +390 -0
  610. package/build/dom-core/dom-core-min.js +1 -0
  611. package/build/dom-core/dom-core.js +390 -0
  612. package/build/dom-screen/dom-screen-debug.js +611 -0
  613. package/build/dom-screen/dom-screen-min.js +1 -0
  614. package/build/dom-screen/dom-screen.js +605 -0
  615. package/build/dom-style/dom-style-debug.js +249 -0
  616. package/build/dom-style/dom-style-min.js +1 -0
  617. package/build/dom-style/dom-style.js +249 -0
  618. package/build/dom-style-ie/dom-style-ie-debug.js +300 -0
  619. package/build/dom-style-ie/dom-style-ie-min.js +1 -0
  620. package/build/dom-style-ie/dom-style-ie.js +297 -0
  621. package/build/dump/dump-debug.js +105 -0
  622. package/build/dump/dump-min.js +1 -0
  623. package/build/dump/dump.js +105 -0
  624. package/build/editor-base/editor-base-debug.js +946 -0
  625. package/build/editor-base/editor-base-min.js +2 -0
  626. package/build/editor-base/editor-base.js +943 -0
  627. package/build/editor-bidi/editor-bidi-debug.js +340 -0
  628. package/build/editor-bidi/editor-bidi-min.js +1 -0
  629. package/build/editor-bidi/editor-bidi.js +340 -0
  630. package/build/editor-br/editor-br-debug.js +137 -0
  631. package/build/editor-br/editor-br-min.js +1 -0
  632. package/build/editor-br/editor-br.js +137 -0
  633. package/build/editor-inline/editor-inline-debug.js +32 -0
  634. package/build/editor-inline/editor-inline-min.js +1 -0
  635. package/build/editor-inline/editor-inline.js +32 -0
  636. package/build/editor-lists/editor-lists-debug.js +127 -0
  637. package/build/editor-lists/editor-lists-min.js +1 -0
  638. package/build/editor-lists/editor-lists.js +122 -0
  639. package/build/editor-para/editor-para-debug.js +356 -0
  640. package/build/editor-para/editor-para-min.js +1 -0
  641. package/build/editor-para/editor-para.js +355 -0
  642. package/build/editor-para-base/editor-para-base-debug.js +132 -0
  643. package/build/editor-para-base/editor-para-base-min.js +1 -0
  644. package/build/editor-para-base/editor-para-base.js +131 -0
  645. package/build/editor-para-ie/editor-para-ie-debug.js +134 -0
  646. package/build/editor-para-ie/editor-para-ie-min.js +1 -0
  647. package/build/editor-para-ie/editor-para-ie.js +134 -0
  648. package/build/editor-selection/editor-selection-debug.js +1042 -0
  649. package/build/editor-selection/editor-selection-min.js +2 -0
  650. package/build/editor-selection/editor-selection.js +1026 -0
  651. package/build/editor-tab/editor-tab-debug.js +69 -0
  652. package/build/editor-tab/editor-tab-min.js +1 -0
  653. package/build/editor-tab/editor-tab.js +68 -0
  654. package/build/escape/escape-debug.js +92 -0
  655. package/build/escape/escape-min.js +1 -0
  656. package/build/escape/escape.js +92 -0
  657. package/build/event-base/event-base-debug.js +1368 -0
  658. package/build/event-base/event-base-min.js +2 -0
  659. package/build/event-base/event-base.js +1363 -0
  660. package/build/event-base-ie/event-base-ie-debug.js +303 -0
  661. package/build/event-base-ie/event-base-ie-min.js +3 -0
  662. package/build/event-base-ie/event-base-ie.js +303 -0
  663. package/build/event-contextmenu/event-contextmenu-debug.js +192 -0
  664. package/build/event-contextmenu/event-contextmenu-min.js +1 -0
  665. package/build/event-contextmenu/event-contextmenu.js +192 -0
  666. package/build/event-custom-base/event-custom-base-debug.js +2464 -0
  667. package/build/event-custom-base/event-custom-base-min.js +3 -0
  668. package/build/event-custom-base/event-custom-base.js +2449 -0
  669. package/build/event-custom-complex/event-custom-complex-debug.js +673 -0
  670. package/build/event-custom-complex/event-custom-complex-min.js +1 -0
  671. package/build/event-custom-complex/event-custom-complex.js +670 -0
  672. package/build/event-delegate/event-delegate-debug.js +348 -0
  673. package/build/event-delegate/event-delegate-min.js +1 -0
  674. package/build/event-delegate/event-delegate.js +347 -0
  675. package/build/event-flick/event-flick-debug.js +272 -0
  676. package/build/event-flick/event-flick-min.js +1 -0
  677. package/build/event-flick/event-flick.js +271 -0
  678. package/build/event-focus/event-focus-debug.js +280 -0
  679. package/build/event-focus/event-focus-min.js +1 -0
  680. package/build/event-focus/event-focus.js +280 -0
  681. package/build/event-hover/event-hover-debug.js +70 -0
  682. package/build/event-hover/event-hover-min.js +1 -0
  683. package/build/event-hover/event-hover.js +70 -0
  684. package/build/event-key/event-key-debug.js +172 -0
  685. package/build/event-key/event-key-min.js +1 -0
  686. package/build/event-key/event-key.js +172 -0
  687. package/build/event-mouseenter/event-mouseenter-debug.js +129 -0
  688. package/build/event-mouseenter/event-mouseenter-min.js +1 -0
  689. package/build/event-mouseenter/event-mouseenter.js +129 -0
  690. package/build/event-mousewheel/event-mousewheel-debug.js +50 -0
  691. package/build/event-mousewheel/event-mousewheel-min.js +1 -0
  692. package/build/event-mousewheel/event-mousewheel.js +50 -0
  693. package/build/event-move/event-move-debug.js +639 -0
  694. package/build/event-move/event-move-min.js +1 -0
  695. package/build/event-move/event-move.js +626 -0
  696. package/build/event-outside/event-outside-debug.js +107 -0
  697. package/build/event-outside/event-outside-min.js +1 -0
  698. package/build/event-outside/event-outside.js +107 -0
  699. package/build/event-resize/event-resize-debug.js +53 -0
  700. package/build/event-resize/event-resize-min.js +1 -0
  701. package/build/event-resize/event-resize.js +53 -0
  702. package/build/event-simulate/event-simulate-debug.js +957 -0
  703. package/build/event-simulate/event-simulate-min.js +2 -0
  704. package/build/event-simulate/event-simulate.js +957 -0
  705. package/build/event-synthetic/event-synthetic-debug.js +845 -0
  706. package/build/event-synthetic/event-synthetic-min.js +1 -0
  707. package/build/event-synthetic/event-synthetic.js +845 -0
  708. package/build/event-tap/event-tap-debug.js +299 -0
  709. package/build/event-tap/event-tap-min.js +1 -0
  710. package/build/event-tap/event-tap.js +296 -0
  711. package/build/event-touch/event-touch-debug.js +187 -0
  712. package/build/event-touch/event-touch-min.js +1 -0
  713. package/build/event-touch/event-touch.js +181 -0
  714. package/build/event-valuechange/event-valuechange-debug.js +568 -0
  715. package/build/event-valuechange/event-valuechange-min.js +1 -0
  716. package/build/event-valuechange/event-valuechange.js +554 -0
  717. package/build/exec-command/exec-command-debug.js +721 -0
  718. package/build/exec-command/exec-command-min.js +2 -0
  719. package/build/exec-command/exec-command.js +717 -0
  720. package/build/features/features-debug.js +406 -0
  721. package/build/features/features-min.js +1 -0
  722. package/build/features/features.js +405 -0
  723. package/build/file/file-debug.js +31 -0
  724. package/build/file/file-min.js +1 -0
  725. package/build/file/file.js +31 -0
  726. package/build/file-flash/file-flash-debug.js +341 -0
  727. package/build/file-flash/file-flash-min.js +1 -0
  728. package/build/file-flash/file-flash.js +341 -0
  729. package/build/file-html5/file-html5-debug.js +503 -0
  730. package/build/file-html5/file-html5-min.js +1 -0
  731. package/build/file-html5/file-html5.js +503 -0
  732. package/build/frame/frame-debug.js +1076 -0
  733. package/build/frame/frame-min.js +2 -0
  734. package/build/frame/frame.js +1047 -0
  735. package/build/gesture-simulate/gesture-simulate-debug.js +1321 -0
  736. package/build/gesture-simulate/gesture-simulate-min.js +2 -0
  737. package/build/gesture-simulate/gesture-simulate.js +1321 -0
  738. package/build/get/get-debug.js +1292 -0
  739. package/build/get/get-min.js +2 -0
  740. package/build/get/get.js +1275 -0
  741. package/build/get-nodejs/get-nodejs-debug.js +225 -0
  742. package/build/get-nodejs/get-nodejs-min.js +107 -0
  743. package/build/get-nodejs/get-nodejs.js +204 -0
  744. package/build/graphics/graphics-debug.js +1270 -0
  745. package/build/graphics/graphics-min.js +1 -0
  746. package/build/graphics/graphics.js +1270 -0
  747. package/build/graphics-canvas/graphics-canvas-debug.js +3691 -0
  748. package/build/graphics-canvas/graphics-canvas-min.js +5 -0
  749. package/build/graphics-canvas/graphics-canvas.js +3691 -0
  750. package/build/graphics-canvas-default/graphics-canvas-default-debug.js +12 -0
  751. package/build/graphics-canvas-default/graphics-canvas-default-min.js +1 -0
  752. package/build/graphics-canvas-default/graphics-canvas-default.js +12 -0
  753. package/build/graphics-group/graphics-group-debug.js +310 -0
  754. package/build/graphics-group/graphics-group-min.js +1 -0
  755. package/build/graphics-group/graphics-group.js +310 -0
  756. package/build/graphics-svg/graphics-svg-debug.js +3557 -0
  757. package/build/graphics-svg/graphics-svg-min.js +5 -0
  758. package/build/graphics-svg/graphics-svg.js +3557 -0
  759. package/build/graphics-svg-default/graphics-svg-default-debug.js +12 -0
  760. package/build/graphics-svg-default/graphics-svg-default-min.js +1 -0
  761. package/build/graphics-svg-default/graphics-svg-default.js +12 -0
  762. package/build/graphics-vml/graphics-vml-debug.js +3753 -0
  763. package/build/graphics-vml/graphics-vml-min.js +5 -0
  764. package/build/graphics-vml/graphics-vml.js +3753 -0
  765. package/build/graphics-vml-default/graphics-vml-default-debug.js +12 -0
  766. package/build/graphics-vml-default/graphics-vml-default-min.js +1 -0
  767. package/build/graphics-vml-default/graphics-vml-default.js +12 -0
  768. package/build/handlebars-base/handlebars-base-debug.js +693 -0
  769. package/build/handlebars-base/handlebars-base-min.js +7 -0
  770. package/build/handlebars-base/handlebars-base.js +693 -0
  771. package/build/handlebars-compiler/handlebars-compiler-debug.js +2519 -0
  772. package/build/handlebars-compiler/handlebars-compiler-min.js +12 -0
  773. package/build/handlebars-compiler/handlebars-compiler.js +2519 -0
  774. package/build/highlight-accentfold/highlight-accentfold-debug.js +144 -0
  775. package/build/highlight-accentfold/highlight-accentfold-min.js +1 -0
  776. package/build/highlight-accentfold/highlight-accentfold.js +144 -0
  777. package/build/highlight-base/highlight-base-debug.js +312 -0
  778. package/build/highlight-base/highlight-base-min.js +1 -0
  779. package/build/highlight-base/highlight-base.js +312 -0
  780. package/build/history-base/history-base-debug.js +639 -0
  781. package/build/history-base/history-base-min.js +1 -0
  782. package/build/history-base/history-base.js +639 -0
  783. package/build/history-hash/history-hash-debug.js +475 -0
  784. package/build/history-hash/history-hash-min.js +1 -0
  785. package/build/history-hash/history-hash.js +475 -0
  786. package/build/history-hash-ie/history-hash-ie-debug.js +138 -0
  787. package/build/history-hash-ie/history-hash-ie-min.js +1 -0
  788. package/build/history-hash-ie/history-hash-ie.js +134 -0
  789. package/build/history-html5/history-html5-debug.js +189 -0
  790. package/build/history-html5/history-html5-min.js +1 -0
  791. package/build/history-html5/history-html5.js +189 -0
  792. package/build/imageloader/imageloader-debug.js +665 -0
  793. package/build/imageloader/imageloader-min.js +1 -0
  794. package/build/imageloader/imageloader.js +653 -0
  795. package/build/intl/intl-debug.js +150 -0
  796. package/build/intl/intl-min.js +1 -0
  797. package/build/intl/intl.js +150 -0
  798. package/build/intl-base/intl-base-debug.js +88 -0
  799. package/build/intl-base/intl-base-min.js +1 -0
  800. package/build/intl-base/intl-base.js +88 -0
  801. package/build/io-base/io-base-debug.js +1059 -0
  802. package/build/io-base/io-base-min.js +1 -0
  803. package/build/io-base/io-base.js +1053 -0
  804. package/build/io-form/io-form-debug.js +130 -0
  805. package/build/io-form/io-form-min.js +1 -0
  806. package/build/io-form/io-form.js +129 -0
  807. package/build/io-nodejs/io-nodejs-debug.js +215 -0
  808. package/build/io-nodejs/io-nodejs-min.js +108 -0
  809. package/build/io-nodejs/io-nodejs.js +199 -0
  810. package/build/io-queue/io-queue-debug.js +173 -0
  811. package/build/io-queue/io-queue-min.js +1 -0
  812. package/build/io-queue/io-queue.js +170 -0
  813. package/build/io-upload-iframe/io-upload-iframe-debug.js +313 -0
  814. package/build/io-upload-iframe/io-upload-iframe-min.js +1 -0
  815. package/build/io-upload-iframe/io-upload-iframe.js +305 -0
  816. package/build/io-xdr/io-xdr-debug.js +318 -0
  817. package/build/io-xdr/io-xdr-min.js +1 -0
  818. package/build/io-xdr/io-xdr.js +318 -0
  819. package/build/json-parse/json-parse-debug.js +10 -0
  820. package/build/json-parse/json-parse-min.js +1 -0
  821. package/build/json-parse/json-parse.js +10 -0
  822. package/build/json-parse-shim/json-parse-shim-debug.js +183 -0
  823. package/build/json-parse-shim/json-parse-shim-min.js +1 -0
  824. package/build/json-parse-shim/json-parse-shim.js +183 -0
  825. package/build/json-stringify/json-stringify-debug.js +99 -0
  826. package/build/json-stringify/json-stringify-min.js +1 -0
  827. package/build/json-stringify/json-stringify.js +99 -0
  828. package/build/json-stringify-shim/json-stringify-shim-debug.js +233 -0
  829. package/build/json-stringify-shim/json-stringify-shim-min.js +1 -0
  830. package/build/json-stringify-shim/json-stringify-shim.js +233 -0
  831. package/build/jsonp/jsonp-debug.js +274 -0
  832. package/build/jsonp/jsonp-min.js +1 -0
  833. package/build/jsonp/jsonp.js +268 -0
  834. package/build/jsonp-url/jsonp-url-debug.js +133 -0
  835. package/build/jsonp-url/jsonp-url-min.js +1 -0
  836. package/build/jsonp-url/jsonp-url.js +133 -0
  837. package/build/lazy-model-list/lazy-model-list-debug.js +518 -0
  838. package/build/lazy-model-list/lazy-model-list-min.js +1 -0
  839. package/build/lazy-model-list/lazy-model-list.js +518 -0
  840. package/build/loader/loader-debug.js +6053 -0
  841. package/build/loader/loader-min.js +9 -0
  842. package/build/loader/loader.js +6010 -0
  843. package/build/loader-base/loader-base-debug.js +2955 -0
  844. package/build/loader-base/loader-base-min.js +4 -0
  845. package/build/loader-base/loader-base.js +2915 -0
  846. package/build/loader-pathogen-combohandler/loader-pathogen-combohandler-debug.js +320 -0
  847. package/build/loader-pathogen-combohandler/loader-pathogen-combohandler-min.js +1 -0
  848. package/build/loader-pathogen-combohandler/loader-pathogen-combohandler.js +316 -0
  849. package/build/loader-pathogen-encoder/loader-pathogen-encoder-debug.js +6373 -0
  850. package/build/loader-pathogen-encoder/loader-pathogen-encoder-min.js +10 -0
  851. package/build/loader-pathogen-encoder/loader-pathogen-encoder.js +6326 -0
  852. package/build/loader-rollup/loader-rollup-debug.js +102 -0
  853. package/build/loader-rollup/loader-rollup-min.js +1 -0
  854. package/build/loader-rollup/loader-rollup.js +99 -0
  855. package/build/loader-yui3/loader-yui3-debug.js +2995 -0
  856. package/build/loader-yui3/loader-yui3-min.js +6 -0
  857. package/build/loader-yui3/loader-yui3.js +2995 -0
  858. package/build/matrix/matrix-debug.js +932 -0
  859. package/build/matrix/matrix-min.js +2 -0
  860. package/build/matrix/matrix.js +932 -0
  861. package/build/model/model-debug.js +1008 -0
  862. package/build/model/model-min.js +1 -0
  863. package/build/model/model.js +1007 -0
  864. package/build/model-list/model-list-debug.js +1269 -0
  865. package/build/model-list/model-list-min.js +1 -0
  866. package/build/model-list/model-list.js +1269 -0
  867. package/build/model-sync-local/model-sync-local-debug.js +360 -0
  868. package/build/model-sync-local/model-sync-local-min.js +1 -0
  869. package/build/model-sync-local/model-sync-local.js +359 -0
  870. package/build/model-sync-rest/model-sync-rest-debug.js +733 -0
  871. package/build/model-sync-rest/model-sync-rest-min.js +1 -0
  872. package/build/model-sync-rest/model-sync-rest.js +733 -0
  873. package/build/node-base/node-base-debug.js +1003 -0
  874. package/build/node-base/node-base-min.js +1 -0
  875. package/build/node-base/node-base.js +1001 -0
  876. package/build/node-core/node-core-debug.js +1626 -0
  877. package/build/node-core/node-core-min.js +2 -0
  878. package/build/node-core/node-core.js +1622 -0
  879. package/build/node-event-delegate/node-event-delegate-debug.js +54 -0
  880. package/build/node-event-delegate/node-event-delegate-min.js +1 -0
  881. package/build/node-event-delegate/node-event-delegate.js +54 -0
  882. package/build/node-event-html5/node-event-html5-debug.js +52 -0
  883. package/build/node-event-html5/node-event-html5-min.js +1 -0
  884. package/build/node-event-html5/node-event-html5.js +52 -0
  885. package/build/node-event-simulate/node-event-simulate-debug.js +187 -0
  886. package/build/node-event-simulate/node-event-simulate-min.js +1 -0
  887. package/build/node-event-simulate/node-event-simulate.js +187 -0
  888. package/build/node-flick/assets/node-flick-core.css +8 -0
  889. package/build/node-flick/assets/skins/sam/node-flick-skin.css +1 -0
  890. package/build/node-flick/assets/skins/sam/node-flick.css +1 -0
  891. package/build/node-flick/node-flick-debug.js +524 -0
  892. package/build/node-flick/node-flick-min.js +1 -0
  893. package/build/node-flick/node-flick.js +523 -0
  894. package/build/node-focusmanager/node-focusmanager-debug.js +1073 -0
  895. package/build/node-focusmanager/node-focusmanager-min.js +1 -0
  896. package/build/node-focusmanager/node-focusmanager.js +1069 -0
  897. package/build/node-load/node-load-debug.js +65 -0
  898. package/build/node-load/node-load-min.js +1 -0
  899. package/build/node-load/node-load.js +65 -0
  900. package/build/node-menunav/assets/node-menunav-core.css +169 -0
  901. package/build/node-menunav/assets/skins/night/horizontal-menu-submenu-indicator.png +0 -0
  902. package/build/node-menunav/assets/skins/night/node-menunav-skin.css +312 -0
  903. package/build/node-menunav/assets/skins/night/node-menunav.css +1 -0
  904. package/build/node-menunav/assets/skins/night/vertical-menu-submenu-indicator.png +0 -0
  905. package/build/node-menunav/assets/skins/sam/horizontal-menu-submenu-indicator.png +0 -0
  906. package/build/node-menunav/assets/skins/sam/horizontal-menu-submenu-toggle.png +0 -0
  907. package/build/node-menunav/assets/skins/sam/node-menunav-skin.css +266 -0
  908. package/build/node-menunav/assets/skins/sam/node-menunav.css +1 -0
  909. package/build/node-menunav/assets/skins/sam/vertical-menu-submenu-indicator.png +0 -0
  910. package/build/node-menunav/node-menunav-debug.js +2189 -0
  911. package/build/node-menunav/node-menunav-min.js +2 -0
  912. package/build/node-menunav/node-menunav.js +2188 -0
  913. package/build/node-pluginhost/node-pluginhost-debug.js +91 -0
  914. package/build/node-pluginhost/node-pluginhost-min.js +1 -0
  915. package/build/node-pluginhost/node-pluginhost.js +91 -0
  916. package/build/node-screen/node-screen-debug.js +240 -0
  917. package/build/node-screen/node-screen-min.js +1 -0
  918. package/build/node-screen/node-screen.js +238 -0
  919. package/build/node-scroll-info/node-scroll-info-debug.js +656 -0
  920. package/build/node-scroll-info/node-scroll-info-min.js +1 -0
  921. package/build/node-scroll-info/node-scroll-info.js +656 -0
  922. package/build/node-style/node-style-debug.js +271 -0
  923. package/build/node-style/node-style-min.js +1 -0
  924. package/build/node-style/node-style.js +271 -0
  925. package/build/oop/oop-debug.js +432 -0
  926. package/build/oop/oop-min.js +1 -0
  927. package/build/oop/oop.js +432 -0
  928. package/build/overlay/assets/overlay-core.css +11 -0
  929. package/build/overlay/assets/skins/night/overlay-skin.css +175 -0
  930. package/build/overlay/assets/skins/night/overlay.css +1 -0
  931. package/build/overlay/assets/skins/sam/overlay-skin.css +0 -0
  932. package/build/overlay/assets/skins/sam/overlay.css +1 -0
  933. package/build/overlay/overlay-debug.js +39 -0
  934. package/build/overlay/overlay-min.js +1 -0
  935. package/build/overlay/overlay.js +39 -0
  936. package/build/paginator/paginator-debug.js +75 -0
  937. package/build/paginator/paginator-min.js +1 -0
  938. package/build/paginator/paginator.js +75 -0
  939. package/build/paginator-core/paginator-core-debug.js +146 -0
  940. package/build/paginator-core/paginator-core-min.js +1 -0
  941. package/build/paginator-core/paginator-core.js +146 -0
  942. package/build/paginator-url/paginator-url-debug.js +67 -0
  943. package/build/paginator-url/paginator-url-min.js +1 -0
  944. package/build/paginator-url/paginator-url.js +67 -0
  945. package/build/panel/assets/panel-core.css +22 -0
  946. package/build/panel/assets/skins/night/panel-skin.css +123 -0
  947. package/build/panel/assets/skins/night/panel.css +1 -0
  948. package/build/panel/assets/skins/night/sprite_icons.png +0 -0
  949. package/build/panel/assets/skins/sam/panel-skin.css +95 -0
  950. package/build/panel/assets/skins/sam/panel.css +1 -0
  951. package/build/panel/assets/skins/sam/sprite_icons.png +0 -0
  952. package/build/panel/panel-debug.js +112 -0
  953. package/build/panel/panel-min.js +1 -0
  954. package/build/panel/panel.js +112 -0
  955. package/build/parallel/parallel-debug.js +109 -0
  956. package/build/parallel/parallel-min.js +1 -0
  957. package/build/parallel/parallel.js +107 -0
  958. package/build/pjax/pjax-debug.js +170 -0
  959. package/build/pjax/pjax-min.js +1 -0
  960. package/build/pjax/pjax.js +170 -0
  961. package/build/pjax-base/pjax-base-debug.js +443 -0
  962. package/build/pjax-base/pjax-base-min.js +1 -0
  963. package/build/pjax-base/pjax-base.js +442 -0
  964. package/build/pjax-content/pjax-content-debug.js +281 -0
  965. package/build/pjax-content/pjax-content-min.js +1 -0
  966. package/build/pjax-content/pjax-content.js +281 -0
  967. package/build/pjax-plugin/pjax-plugin-debug.js +29 -0
  968. package/build/pjax-plugin/pjax-plugin-min.js +1 -0
  969. package/build/pjax-plugin/pjax-plugin.js +29 -0
  970. package/build/plugin/plugin-debug.js +265 -0
  971. package/build/plugin/plugin-min.js +1 -0
  972. package/build/plugin/plugin.js +263 -0
  973. package/build/pluginhost-base/pluginhost-base-debug.js +187 -0
  974. package/build/pluginhost-base/pluginhost-base-min.js +1 -0
  975. package/build/pluginhost-base/pluginhost-base.js +185 -0
  976. package/build/pluginhost-config/pluginhost-config-debug.js +130 -0
  977. package/build/pluginhost-config/pluginhost-config-min.js +1 -0
  978. package/build/pluginhost-config/pluginhost-config.js +130 -0
  979. package/build/promise/promise-debug.js +624 -0
  980. package/build/promise/promise-min.js +1 -0
  981. package/build/promise/promise.js +620 -0
  982. package/build/querystring-parse/querystring-parse-debug.js +162 -0
  983. package/build/querystring-parse/querystring-parse-min.js +1 -0
  984. package/build/querystring-parse/querystring-parse.js +162 -0
  985. package/build/querystring-parse-simple/querystring-parse-simple-debug.js +49 -0
  986. package/build/querystring-parse-simple/querystring-parse-simple-min.js +1 -0
  987. package/build/querystring-parse-simple/querystring-parse-simple.js +49 -0
  988. package/build/querystring-stringify/querystring-stringify-debug.js +111 -0
  989. package/build/querystring-stringify/querystring-stringify-min.js +1 -0
  990. package/build/querystring-stringify/querystring-stringify.js +106 -0
  991. package/build/querystring-stringify-simple/querystring-stringify-simple-debug.js +44 -0
  992. package/build/querystring-stringify-simple/querystring-stringify-simple-min.js +1 -0
  993. package/build/querystring-stringify-simple/querystring-stringify-simple.js +44 -0
  994. package/build/queue-promote/queue-promote-debug.js +53 -0
  995. package/build/queue-promote/queue-promote-min.js +1 -0
  996. package/build/queue-promote/queue-promote.js +53 -0
  997. package/build/range-slider/range-slider-debug.js +28 -0
  998. package/build/range-slider/range-slider-min.js +1 -0
  999. package/build/range-slider/range-slider.js +28 -0
  1000. package/build/recordset-base/recordset-base-debug.js +651 -0
  1001. package/build/recordset-base/recordset-base-min.js +1 -0
  1002. package/build/recordset-base/recordset-base.js +650 -0
  1003. package/build/recordset-filter/recordset-filter-debug.js +105 -0
  1004. package/build/recordset-filter/recordset-filter-min.js +1 -0
  1005. package/build/recordset-filter/recordset-filter.js +105 -0
  1006. package/build/recordset-indexer/recordset-indexer-debug.js +227 -0
  1007. package/build/recordset-indexer/recordset-indexer-min.js +1 -0
  1008. package/build/recordset-indexer/recordset-indexer.js +227 -0
  1009. package/build/recordset-sort/recordset-sort-debug.js +206 -0
  1010. package/build/recordset-sort/recordset-sort-min.js +1 -0
  1011. package/build/recordset-sort/recordset-sort.js +205 -0
  1012. package/build/resize-base/assets/resize-base-core.css +241 -0
  1013. package/build/resize-base/assets/skins/night/arrows.png +0 -0
  1014. package/build/resize-base/assets/skins/night/resize-base-skin.css +46 -0
  1015. package/build/resize-base/assets/skins/night/resize-base.css +1 -0
  1016. package/build/resize-base/assets/skins/sam/arrows.png +0 -0
  1017. package/build/resize-base/assets/skins/sam/resize-base-skin.css +46 -0
  1018. package/build/resize-base/assets/skins/sam/resize-base.css +1 -0
  1019. package/build/resize-base/resize-base-debug.js +1644 -0
  1020. package/build/resize-base/resize-base-min.js +2 -0
  1021. package/build/resize-base/resize-base.js +1643 -0
  1022. package/build/resize-constrain/resize-constrain-debug.js +455 -0
  1023. package/build/resize-constrain/resize-constrain-min.js +1 -0
  1024. package/build/resize-constrain/resize-constrain.js +455 -0
  1025. package/build/resize-plugin/resize-plugin-debug.js +208 -0
  1026. package/build/resize-plugin/resize-plugin-min.js +1 -0
  1027. package/build/resize-plugin/resize-plugin.js +208 -0
  1028. package/build/resize-proxy/resize-proxy-debug.js +166 -0
  1029. package/build/resize-proxy/resize-proxy-min.js +1 -0
  1030. package/build/resize-proxy/resize-proxy.js +166 -0
  1031. package/build/router/router-debug.js +1818 -0
  1032. package/build/router/router-min.js +2 -0
  1033. package/build/router/router.js +1810 -0
  1034. package/build/scrollview/scrollview-debug.js +21 -0
  1035. package/build/scrollview/scrollview-min.js +1 -0
  1036. package/build/scrollview/scrollview.js +21 -0
  1037. package/build/scrollview-base/assets/scrollview-base-core.css +14 -0
  1038. package/build/scrollview-base/assets/skins/night/scrollview-base-skin.css +0 -0
  1039. package/build/scrollview-base/assets/skins/night/scrollview-base.css +1 -0
  1040. package/build/scrollview-base/assets/skins/sam/scrollview-base-skin.css +3 -0
  1041. package/build/scrollview-base/assets/skins/sam/scrollview-base.css +1 -0
  1042. package/build/scrollview-base/scrollview-base-debug.js +1457 -0
  1043. package/build/scrollview-base/scrollview-base-min.js +2 -0
  1044. package/build/scrollview-base/scrollview-base.js +1457 -0
  1045. package/build/scrollview-base-ie/scrollview-base-ie-debug.js +55 -0
  1046. package/build/scrollview-base-ie/scrollview-base-ie-min.js +1 -0
  1047. package/build/scrollview-base-ie/scrollview-base-ie.js +55 -0
  1048. package/build/scrollview-list/assets/scrollview-list-core.css +0 -0
  1049. package/build/scrollview-list/assets/skins/night/scrollview-list-skin.css +57 -0
  1050. package/build/scrollview-list/assets/skins/night/scrollview-list.css +1 -0
  1051. package/build/scrollview-list/assets/skins/sam/scrollview-list-skin.css +37 -0
  1052. package/build/scrollview-list/assets/skins/sam/scrollview-list.css +1 -0
  1053. package/build/scrollview-list/scrollview-list-debug.js +130 -0
  1054. package/build/scrollview-list/scrollview-list-min.js +1 -0
  1055. package/build/scrollview-list/scrollview-list.js +130 -0
  1056. package/build/scrollview-paginator/scrollview-paginator-debug.js +746 -0
  1057. package/build/scrollview-paginator/scrollview-paginator-min.js +1 -0
  1058. package/build/scrollview-paginator/scrollview-paginator.js +746 -0
  1059. package/build/scrollview-scrollbars/assets/scrollview-scrollbars-core.css +95 -0
  1060. package/build/scrollview-scrollbars/assets/skins/night/scrollview-scrollbars-skin.css +96 -0
  1061. package/build/scrollview-scrollbars/assets/skins/night/scrollview-scrollbars.css +1 -0
  1062. package/build/scrollview-scrollbars/assets/skins/sam/scrollview-scrollbars-skin.css +90 -0
  1063. package/build/scrollview-scrollbars/assets/skins/sam/scrollview-scrollbars.css +1 -0
  1064. package/build/scrollview-scrollbars/scrollview-scrollbars-debug.js +563 -0
  1065. package/build/scrollview-scrollbars/scrollview-scrollbars-min.js +1 -0
  1066. package/build/scrollview-scrollbars/scrollview-scrollbars.js +563 -0
  1067. package/build/selector/selector-debug.js +5 -0
  1068. package/build/selector/selector-min.js +1 -0
  1069. package/build/selector/selector.js +5 -0
  1070. package/build/selector-css2/selector-css2-debug.js +460 -0
  1071. package/build/selector-css2/selector-css2-min.js +1 -0
  1072. package/build/selector-css2/selector-css2.js +459 -0
  1073. package/build/selector-css3/selector-css3-debug.js +152 -0
  1074. package/build/selector-css3/selector-css3-min.js +1 -0
  1075. package/build/selector-css3/selector-css3.js +152 -0
  1076. package/build/selector-native/selector-native-debug.js +405 -0
  1077. package/build/selector-native/selector-native-min.js +1 -0
  1078. package/build/selector-native/selector-native.js +400 -0
  1079. package/build/series-area/series-area-debug.js +103 -0
  1080. package/build/series-area/series-area-min.js +1 -0
  1081. package/build/series-area/series-area.js +103 -0
  1082. package/build/series-area-stacked/series-area-stacked-debug.js +60 -0
  1083. package/build/series-area-stacked/series-area-stacked-min.js +1 -0
  1084. package/build/series-area-stacked/series-area-stacked.js +60 -0
  1085. package/build/series-areaspline/series-areaspline-debug.js +63 -0
  1086. package/build/series-areaspline/series-areaspline-min.js +1 -0
  1087. package/build/series-areaspline/series-areaspline.js +63 -0
  1088. package/build/series-areaspline-stacked/series-areaspline-stacked-debug.js +50 -0
  1089. package/build/series-areaspline-stacked/series-areaspline-stacked-min.js +1 -0
  1090. package/build/series-areaspline-stacked/series-areaspline-stacked.js +50 -0
  1091. package/build/series-bar/series-bar-debug.js +169 -0
  1092. package/build/series-bar/series-bar-min.js +1 -0
  1093. package/build/series-bar/series-bar.js +169 -0
  1094. package/build/series-bar-stacked/series-bar-stacked-debug.js +364 -0
  1095. package/build/series-bar-stacked/series-bar-stacked-min.js +1 -0
  1096. package/build/series-bar-stacked/series-bar-stacked.js +364 -0
  1097. package/build/series-base/series-base-debug.js +408 -0
  1098. package/build/series-base/series-base-min.js +1 -0
  1099. package/build/series-base/series-base.js +408 -0
  1100. package/build/series-candlestick/series-candlestick-debug.js +314 -0
  1101. package/build/series-candlestick/series-candlestick-min.js +1 -0
  1102. package/build/series-candlestick/series-candlestick.js +314 -0
  1103. package/build/series-cartesian/series-cartesian-debug.js +947 -0
  1104. package/build/series-cartesian/series-cartesian-min.js +2 -0
  1105. package/build/series-cartesian/series-cartesian.js +947 -0
  1106. package/build/series-column/series-column-debug.js +160 -0
  1107. package/build/series-column/series-column-min.js +1 -0
  1108. package/build/series-column/series-column.js +160 -0
  1109. package/build/series-column-stacked/series-column-stacked-debug.js +351 -0
  1110. package/build/series-column-stacked/series-column-stacked-min.js +1 -0
  1111. package/build/series-column-stacked/series-column-stacked.js +351 -0
  1112. package/build/series-combo/series-combo-debug.js +283 -0
  1113. package/build/series-combo/series-combo-min.js +1 -0
  1114. package/build/series-combo/series-combo.js +283 -0
  1115. package/build/series-combo-stacked/series-combo-stacked-debug.js +86 -0
  1116. package/build/series-combo-stacked/series-combo-stacked-min.js +1 -0
  1117. package/build/series-combo-stacked/series-combo-stacked.js +86 -0
  1118. package/build/series-combospline/series-combospline-debug.js +60 -0
  1119. package/build/series-combospline/series-combospline-min.js +1 -0
  1120. package/build/series-combospline/series-combospline.js +60 -0
  1121. package/build/series-combospline-stacked/series-combospline-stacked-debug.js +72 -0
  1122. package/build/series-combospline-stacked/series-combospline-stacked-min.js +1 -0
  1123. package/build/series-combospline-stacked/series-combospline-stacked.js +72 -0
  1124. package/build/series-curve-util/series-curve-util-debug.js +135 -0
  1125. package/build/series-curve-util/series-curve-util-min.js +1 -0
  1126. package/build/series-curve-util/series-curve-util.js +135 -0
  1127. package/build/series-fill-util/series-fill-util-debug.js +517 -0
  1128. package/build/series-fill-util/series-fill-util-min.js +1 -0
  1129. package/build/series-fill-util/series-fill-util.js +517 -0
  1130. package/build/series-histogram-base/series-histogram-base-debug.js +245 -0
  1131. package/build/series-histogram-base/series-histogram-base-min.js +1 -0
  1132. package/build/series-histogram-base/series-histogram-base.js +245 -0
  1133. package/build/series-line/series-line-debug.js +113 -0
  1134. package/build/series-line/series-line-min.js +1 -0
  1135. package/build/series-line/series-line.js +113 -0
  1136. package/build/series-line-stacked/series-line-stacked-debug.js +49 -0
  1137. package/build/series-line-stacked/series-line-stacked-min.js +1 -0
  1138. package/build/series-line-stacked/series-line-stacked.js +49 -0
  1139. package/build/series-line-util/series-line-util-debug.js +287 -0
  1140. package/build/series-line-util/series-line-util-min.js +1 -0
  1141. package/build/series-line-util/series-line-util.js +287 -0
  1142. package/build/series-marker/series-marker-debug.js +89 -0
  1143. package/build/series-marker/series-marker-min.js +1 -0
  1144. package/build/series-marker/series-marker.js +89 -0
  1145. package/build/series-marker-stacked/series-marker-stacked-debug.js +50 -0
  1146. package/build/series-marker-stacked/series-marker-stacked-min.js +1 -0
  1147. package/build/series-marker-stacked/series-marker-stacked.js +50 -0
  1148. package/build/series-ohlc/series-ohlc-debug.js +237 -0
  1149. package/build/series-ohlc/series-ohlc-min.js +1 -0
  1150. package/build/series-ohlc/series-ohlc.js +237 -0
  1151. package/build/series-pie/series-pie-debug.js +724 -0
  1152. package/build/series-pie/series-pie-min.js +2 -0
  1153. package/build/series-pie/series-pie.js +724 -0
  1154. package/build/series-plot-util/series-plot-util-debug.js +552 -0
  1155. package/build/series-plot-util/series-plot-util-min.js +1 -0
  1156. package/build/series-plot-util/series-plot-util.js +552 -0
  1157. package/build/series-range/series-range-debug.js +132 -0
  1158. package/build/series-range/series-range-min.js +1 -0
  1159. package/build/series-range/series-range.js +132 -0
  1160. package/build/series-spline/series-spline-debug.js +82 -0
  1161. package/build/series-spline/series-spline-min.js +1 -0
  1162. package/build/series-spline/series-spline.js +82 -0
  1163. package/build/series-spline-stacked/series-spline-stacked-debug.js +50 -0
  1164. package/build/series-spline-stacked/series-spline-stacked-min.js +1 -0
  1165. package/build/series-spline-stacked/series-spline-stacked.js +50 -0
  1166. package/build/series-stacked/series-stacked-debug.js +356 -0
  1167. package/build/series-stacked/series-stacked-min.js +1 -0
  1168. package/build/series-stacked/series-stacked.js +356 -0
  1169. package/build/shim-plugin/shim-plugin-debug.js +106 -0
  1170. package/build/shim-plugin/shim-plugin-min.js +1 -0
  1171. package/build/shim-plugin/shim-plugin.js +106 -0
  1172. package/build/slider-base/assets/skins/audio/rail-x.png +0 -0
  1173. package/build/slider-base/assets/skins/audio/rail-y.png +0 -0
  1174. package/build/slider-base/assets/skins/audio/slider-base-skin.css +91 -0
  1175. package/build/slider-base/assets/skins/audio/slider-base.css +1 -0
  1176. package/build/slider-base/assets/skins/audio/slider-skin.css +91 -0
  1177. package/build/slider-base/assets/skins/audio/thumb-x.png +0 -0
  1178. package/build/slider-base/assets/skins/audio/thumb-y.png +0 -0
  1179. package/build/slider-base/assets/skins/audio-light/rail-x.png +0 -0
  1180. package/build/slider-base/assets/skins/audio-light/rail-y.png +0 -0
  1181. package/build/slider-base/assets/skins/audio-light/slider-base-skin.css +91 -0
  1182. package/build/slider-base/assets/skins/audio-light/slider-base.css +1 -0
  1183. package/build/slider-base/assets/skins/audio-light/slider-skin.css +91 -0
  1184. package/build/slider-base/assets/skins/audio-light/thumb-x.png +0 -0
  1185. package/build/slider-base/assets/skins/audio-light/thumb-y.png +0 -0
  1186. package/build/slider-base/assets/skins/capsule/rail-x-dots.png +0 -0
  1187. package/build/slider-base/assets/skins/capsule/rail-x-lines.png +0 -0
  1188. package/build/slider-base/assets/skins/capsule/rail-x.png +0 -0
  1189. package/build/slider-base/assets/skins/capsule/rail-y-dots.png +0 -0
  1190. package/build/slider-base/assets/skins/capsule/rail-y-lines.png +0 -0
  1191. package/build/slider-base/assets/skins/capsule/rail-y.png +0 -0
  1192. package/build/slider-base/assets/skins/capsule/slider-base-skin.css +93 -0
  1193. package/build/slider-base/assets/skins/capsule/slider-base.css +1 -0
  1194. package/build/slider-base/assets/skins/capsule/slider-skin.css +93 -0
  1195. package/build/slider-base/assets/skins/capsule/thumb-x-line.png +0 -0
  1196. package/build/slider-base/assets/skins/capsule/thumb-x.png +0 -0
  1197. package/build/slider-base/assets/skins/capsule/thumb-y-line.png +0 -0
  1198. package/build/slider-base/assets/skins/capsule/thumb-y-lines.png +0 -0
  1199. package/build/slider-base/assets/skins/capsule/thumb-y.png +0 -0
  1200. package/build/slider-base/assets/skins/capsule-dark/rail-x-dots.png +0 -0
  1201. package/build/slider-base/assets/skins/capsule-dark/rail-x-lines.png +0 -0
  1202. package/build/slider-base/assets/skins/capsule-dark/rail-x.png +0 -0
  1203. package/build/slider-base/assets/skins/capsule-dark/rail-y-dots.png +0 -0
  1204. package/build/slider-base/assets/skins/capsule-dark/rail-y-lines.png +0 -0
  1205. package/build/slider-base/assets/skins/capsule-dark/rail-y.png +0 -0
  1206. package/build/slider-base/assets/skins/capsule-dark/slider-base-skin.css +91 -0
  1207. package/build/slider-base/assets/skins/capsule-dark/slider-base.css +1 -0
  1208. package/build/slider-base/assets/skins/capsule-dark/slider-skin.css +91 -0
  1209. package/build/slider-base/assets/skins/capsule-dark/thumb-x-line.png +0 -0
  1210. package/build/slider-base/assets/skins/capsule-dark/thumb-x.png +0 -0
  1211. package/build/slider-base/assets/skins/capsule-dark/thumb-y-line.png +0 -0
  1212. package/build/slider-base/assets/skins/capsule-dark/thumb-y.png +0 -0
  1213. package/build/slider-base/assets/skins/night/rail-x-lines.png +0 -0
  1214. package/build/slider-base/assets/skins/night/rail-x.png +0 -0
  1215. package/build/slider-base/assets/skins/night/rail-y-lines.png +0 -0
  1216. package/build/slider-base/assets/skins/night/rail-y.png +0 -0
  1217. package/build/slider-base/assets/skins/night/slider-base-skin.css +87 -0
  1218. package/build/slider-base/assets/skins/night/slider-base.css +1 -0
  1219. package/build/slider-base/assets/skins/night/slider-skin.css +87 -0
  1220. package/build/slider-base/assets/skins/night/thumb-x.png +0 -0
  1221. package/build/slider-base/assets/skins/night/thumb-y.png +0 -0
  1222. package/build/slider-base/assets/skins/round/rail-x.png +0 -0
  1223. package/build/slider-base/assets/skins/round/rail-y.png +0 -0
  1224. package/build/slider-base/assets/skins/round/slider-base-skin.css +89 -0
  1225. package/build/slider-base/assets/skins/round/slider-base.css +1 -0
  1226. package/build/slider-base/assets/skins/round/slider-skin.css +89 -0
  1227. package/build/slider-base/assets/skins/round/thumb-x-grip.png +0 -0
  1228. package/build/slider-base/assets/skins/round/thumb-x.png +0 -0
  1229. package/build/slider-base/assets/skins/round/thumb-y-grip.png +0 -0
  1230. package/build/slider-base/assets/skins/round/thumb-y.png +0 -0
  1231. package/build/slider-base/assets/skins/round-dark/rail-x.png +0 -0
  1232. package/build/slider-base/assets/skins/round-dark/rail-y.png +0 -0
  1233. package/build/slider-base/assets/skins/round-dark/slider-base-skin.css +89 -0
  1234. package/build/slider-base/assets/skins/round-dark/slider-base.css +1 -0
  1235. package/build/slider-base/assets/skins/round-dark/slider-skin.css +89 -0
  1236. package/build/slider-base/assets/skins/round-dark/thumb-x-grip.png +0 -0
  1237. package/build/slider-base/assets/skins/round-dark/thumb-x.png +0 -0
  1238. package/build/slider-base/assets/skins/round-dark/thumb-y-grip.png +0 -0
  1239. package/build/slider-base/assets/skins/round-dark/thumb-y.png +0 -0
  1240. package/build/slider-base/assets/skins/sam/rail-x-lines.png +0 -0
  1241. package/build/slider-base/assets/skins/sam/rail-x.png +0 -0
  1242. package/build/slider-base/assets/skins/sam/rail-y-lines.png +0 -0
  1243. package/build/slider-base/assets/skins/sam/rail-y.png +0 -0
  1244. package/build/slider-base/assets/skins/sam/slider-base-skin.css +87 -0
  1245. package/build/slider-base/assets/skins/sam/slider-base.css +1 -0
  1246. package/build/slider-base/assets/skins/sam/slider-skin.css +87 -0
  1247. package/build/slider-base/assets/skins/sam/thumb-x.png +0 -0
  1248. package/build/slider-base/assets/skins/sam/thumb-y.png +0 -0
  1249. package/build/slider-base/assets/skins/sam-dark/rail-x-lines.png +0 -0
  1250. package/build/slider-base/assets/skins/sam-dark/rail-x.png +0 -0
  1251. package/build/slider-base/assets/skins/sam-dark/rail-y-lines.png +0 -0
  1252. package/build/slider-base/assets/skins/sam-dark/rail-y.png +0 -0
  1253. package/build/slider-base/assets/skins/sam-dark/slider-base-skin.css +87 -0
  1254. package/build/slider-base/assets/skins/sam-dark/slider-base.css +1 -0
  1255. package/build/slider-base/assets/skins/sam-dark/slider-skin.css +87 -0
  1256. package/build/slider-base/assets/skins/sam-dark/thumb-x.png +0 -0
  1257. package/build/slider-base/assets/skins/sam-dark/thumb-y.png +0 -0
  1258. package/build/slider-base/assets/slider-base-core.css +31 -0
  1259. package/build/slider-base/assets/slider-core.css +31 -0
  1260. package/build/slider-base/assets/thumb-x-oblong-dark.png +0 -0
  1261. package/build/slider-base/assets/thumb-x-oblong.png +0 -0
  1262. package/build/slider-base/assets/thumb-x-oblong2-dark.png +0 -0
  1263. package/build/slider-base/assets/thumb-x-oblong2.png +0 -0
  1264. package/build/slider-base/assets/thumb-y-oblong-dark.png +0 -0
  1265. package/build/slider-base/assets/thumb-y-oblong.png +0 -0
  1266. package/build/slider-base/assets/thumb-y-oblong2-dark.png +0 -0
  1267. package/build/slider-base/assets/thumb-y-oblong2.png +0 -0
  1268. package/build/slider-base/slider-base-debug.js +762 -0
  1269. package/build/slider-base/slider-base-min.js +1 -0
  1270. package/build/slider-base/slider-base.js +760 -0
  1271. package/build/slider-value-range/slider-value-range-debug.js +422 -0
  1272. package/build/slider-value-range/slider-value-range-min.js +1 -0
  1273. package/build/slider-value-range/slider-value-range.js +418 -0
  1274. package/build/sortable/sortable-debug.js +528 -0
  1275. package/build/sortable/sortable-min.js +1 -0
  1276. package/build/sortable/sortable.js +527 -0
  1277. package/build/sortable-scroll/sortable-scroll-debug.js +67 -0
  1278. package/build/sortable-scroll/sortable-scroll-min.js +1 -0
  1279. package/build/sortable-scroll/sortable-scroll.js +67 -0
  1280. package/build/stylesheet/stylesheet-debug.js +642 -0
  1281. package/build/stylesheet/stylesheet-min.js +1 -0
  1282. package/build/stylesheet/stylesheet.js +638 -0
  1283. package/build/substitute/substitute-debug.js +170 -0
  1284. package/build/substitute/substitute-min.js +1 -0
  1285. package/build/substitute/substitute.js +170 -0
  1286. package/build/swf/swf-debug.js +206 -0
  1287. package/build/swf/swf-min.js +1 -0
  1288. package/build/swf/swf.js +204 -0
  1289. package/build/swfdetect/swfdetect-debug.js +116 -0
  1290. package/build/swfdetect/swfdetect-min.js +1 -0
  1291. package/build/swfdetect/swfdetect.js +115 -0
  1292. package/build/tabview/assets/skins/night/tabview-skin.css +89 -0
  1293. package/build/tabview/assets/skins/night/tabview.css +1 -0
  1294. package/build/tabview/assets/skins/sam/tabview-skin.css +58 -0
  1295. package/build/tabview/assets/skins/sam/tabview.css +1 -0
  1296. package/build/tabview/assets/tabview-core.css +42 -0
  1297. package/build/tabview/tabview-debug.js +436 -0
  1298. package/build/tabview/tabview-min.js +1 -0
  1299. package/build/tabview/tabview.js +436 -0
  1300. package/build/tabview-base/tabview-base-debug.js +144 -0
  1301. package/build/tabview-base/tabview-base-min.js +1 -0
  1302. package/build/tabview-base/tabview-base.js +144 -0
  1303. package/build/tabview-plugin/tabview-plugin-debug.js +16 -0
  1304. package/build/tabview-plugin/tabview-plugin-min.js +1 -0
  1305. package/build/tabview-plugin/tabview-plugin.js +16 -0
  1306. package/build/template-base/template-base-debug.js +272 -0
  1307. package/build/template-base/template-base-min.js +1 -0
  1308. package/build/template-base/template-base.js +272 -0
  1309. package/build/template-micro/template-micro-debug.js +249 -0
  1310. package/build/template-micro/template-micro-min.js +1 -0
  1311. package/build/template-micro/template-micro.js +249 -0
  1312. package/build/test/test-debug.js +3869 -0
  1313. package/build/test/test-min.js +6 -0
  1314. package/build/test/test.js +3869 -0
  1315. package/build/test-console/assets/skins/sam/test-console-skin.css +58 -0
  1316. package/build/test-console/assets/skins/sam/test-console.css +1 -0
  1317. package/build/test-console/assets/test-console-core.css +8 -0
  1318. package/build/test-console/test-console-debug.js +307 -0
  1319. package/build/test-console/test-console-min.js +1 -0
  1320. package/build/test-console/test-console.js +307 -0
  1321. package/build/text-accentfold/text-accentfold-debug.js +162 -0
  1322. package/build/text-accentfold/text-accentfold-min.js +1 -0
  1323. package/build/text-accentfold/text-accentfold.js +162 -0
  1324. package/build/text-data-accentfold/text-data-accentfold-debug.js +46 -0
  1325. package/build/text-data-accentfold/text-data-accentfold-min.js +1 -0
  1326. package/build/text-data-accentfold/text-data-accentfold.js +46 -0
  1327. package/build/text-data-wordbreak/text-data-wordbreak-debug.js +29 -0
  1328. package/build/text-data-wordbreak/text-data-wordbreak-min.js +2 -0
  1329. package/build/text-data-wordbreak/text-data-wordbreak.js +29 -0
  1330. package/build/text-wordbreak/text-wordbreak-debug.js +363 -0
  1331. package/build/text-wordbreak/text-wordbreak-min.js +1 -0
  1332. package/build/text-wordbreak/text-wordbreak.js +362 -0
  1333. package/build/timers/timers-debug.js +314 -0
  1334. package/build/timers/timers-min.js +1 -0
  1335. package/build/timers/timers.js +314 -0
  1336. package/build/transition/transition-debug.js +760 -0
  1337. package/build/transition/transition-min.js +2 -0
  1338. package/build/transition/transition.js +758 -0
  1339. package/build/transition-timer/transition-timer-debug.js +334 -0
  1340. package/build/transition-timer/transition-timer-min.js +1 -0
  1341. package/build/transition-timer/transition-timer.js +334 -0
  1342. package/build/tree/tree-debug.js +940 -0
  1343. package/build/tree/tree-min.js +1 -0
  1344. package/build/tree/tree.js +940 -0
  1345. package/build/tree-labelable/tree-labelable-debug.js +79 -0
  1346. package/build/tree-labelable/tree-labelable-min.js +1 -0
  1347. package/build/tree-labelable/tree-labelable.js +79 -0
  1348. package/build/tree-lazy/tree-lazy-debug.js +176 -0
  1349. package/build/tree-lazy/tree-lazy-min.js +1 -0
  1350. package/build/tree-lazy/tree-lazy.js +175 -0
  1351. package/build/tree-node/tree-node-debug.js +555 -0
  1352. package/build/tree-node/tree-node-min.js +1 -0
  1353. package/build/tree-node/tree-node.js +555 -0
  1354. package/build/tree-openable/tree-openable-debug.js +241 -0
  1355. package/build/tree-openable/tree-openable-min.js +1 -0
  1356. package/build/tree-openable/tree-openable.js +241 -0
  1357. package/build/tree-selectable/tree-selectable-debug.js +289 -0
  1358. package/build/tree-selectable/tree-selectable-min.js +1 -0
  1359. package/build/tree-selectable/tree-selectable.js +289 -0
  1360. package/build/tree-sortable/tree-sortable-debug.js +377 -0
  1361. package/build/tree-sortable/tree-sortable-min.js +1 -0
  1362. package/build/tree-sortable/tree-sortable.js +377 -0
  1363. package/build/uploader/assets/uploader-flash-core.css +4 -0
  1364. package/build/uploader/uploader-debug.js +53 -0
  1365. package/build/uploader/uploader-min.js +1 -0
  1366. package/build/uploader/uploader.js +53 -0
  1367. package/build/uploader-flash/assets/uploader-flash-core.css +4 -0
  1368. package/build/uploader-flash/uploader-flash-debug.js +1612 -0
  1369. package/build/uploader-flash/uploader-flash-min.js +3 -0
  1370. package/build/uploader-flash/uploader-flash.js +1611 -0
  1371. package/build/uploader-html5/assets/uploader-flash-core.css +4 -0
  1372. package/build/uploader-html5/uploader-html5-debug.js +1006 -0
  1373. package/build/uploader-html5/uploader-html5-min.js +2 -0
  1374. package/build/uploader-html5/uploader-html5.js +1006 -0
  1375. package/build/uploader-queue/assets/uploader-flash-core.css +4 -0
  1376. package/build/uploader-queue/uploader-queue-debug.js +656 -0
  1377. package/build/uploader-queue/uploader-queue-min.js +1 -0
  1378. package/build/uploader-queue/uploader-queue.js +656 -0
  1379. package/build/view/view-debug.js +434 -0
  1380. package/build/view/view-min.js +1 -0
  1381. package/build/view/view.js +433 -0
  1382. package/build/view-node-map/view-node-map-debug.js +84 -0
  1383. package/build/view-node-map/view-node-map-min.js +1 -0
  1384. package/build/view-node-map/view-node-map.js +84 -0
  1385. package/build/widget-anim/widget-anim-debug.js +257 -0
  1386. package/build/widget-anim/widget-anim-min.js +1 -0
  1387. package/build/widget-anim/widget-anim.js +257 -0
  1388. package/build/widget-autohide/widget-autohide-debug.js +238 -0
  1389. package/build/widget-autohide/widget-autohide-min.js +1 -0
  1390. package/build/widget-autohide/widget-autohide.js +237 -0
  1391. package/build/widget-base/assets/skins/night/widget-base-skin.css +0 -0
  1392. package/build/widget-base/assets/skins/night/widget-base.css +1 -0
  1393. package/build/widget-base/assets/skins/sam/widget-base-skin.css +0 -0
  1394. package/build/widget-base/assets/skins/sam/widget-base.css +1 -0
  1395. package/build/widget-base/assets/widget-base-core.css +20 -0
  1396. package/build/widget-base/widget-base-debug.js +1293 -0
  1397. package/build/widget-base/widget-base-min.js +2 -0
  1398. package/build/widget-base/widget-base.js +1289 -0
  1399. package/build/widget-base-ie/widget-base-ie-debug.js +49 -0
  1400. package/build/widget-base-ie/widget-base-ie-min.js +1 -0
  1401. package/build/widget-base-ie/widget-base-ie.js +49 -0
  1402. package/build/widget-buttons/widget-buttons-debug.js +1294 -0
  1403. package/build/widget-buttons/widget-buttons-min.js +2 -0
  1404. package/build/widget-buttons/widget-buttons.js +1294 -0
  1405. package/build/widget-child/widget-child-debug.js +377 -0
  1406. package/build/widget-child/widget-child-min.js +1 -0
  1407. package/build/widget-child/widget-child.js +377 -0
  1408. package/build/widget-htmlparser/widget-htmlparser-debug.js +215 -0
  1409. package/build/widget-htmlparser/widget-htmlparser-min.js +1 -0
  1410. package/build/widget-htmlparser/widget-htmlparser.js +215 -0
  1411. package/build/widget-modality/assets/skins/night/widget-modality-skin.css +7 -0
  1412. package/build/widget-modality/assets/skins/night/widget-modality.css +1 -0
  1413. package/build/widget-modality/assets/skins/sam/widget-modality-skin.css +7 -0
  1414. package/build/widget-modality/assets/skins/sam/widget-modality.css +1 -0
  1415. package/build/widget-modality/assets/widget-modality-core.css +1 -0
  1416. package/build/widget-modality/widget-modality-debug.js +566 -0
  1417. package/build/widget-modality/widget-modality-min.js +3 -0
  1418. package/build/widget-modality/widget-modality.js +565 -0
  1419. package/build/widget-parent/widget-parent-debug.js +866 -0
  1420. package/build/widget-parent/widget-parent-min.js +1 -0
  1421. package/build/widget-parent/widget-parent.js +865 -0
  1422. package/build/widget-position/widget-position-debug.js +276 -0
  1423. package/build/widget-position/widget-position-min.js +1 -0
  1424. package/build/widget-position/widget-position.js +276 -0
  1425. package/build/widget-position-align/widget-position-align-debug.js +656 -0
  1426. package/build/widget-position-align/widget-position-align-min.js +1 -0
  1427. package/build/widget-position-align/widget-position-align.js +652 -0
  1428. package/build/widget-position-constrain/widget-position-constrain-debug.js +348 -0
  1429. package/build/widget-position-constrain/widget-position-constrain-min.js +1 -0
  1430. package/build/widget-position-constrain/widget-position-constrain.js +348 -0
  1431. package/build/widget-skin/widget-skin-debug.js +59 -0
  1432. package/build/widget-skin/widget-skin-min.js +1 -0
  1433. package/build/widget-skin/widget-skin.js +59 -0
  1434. package/build/widget-stack/assets/skins/night/widget-stack-skin.css +0 -0
  1435. package/build/widget-stack/assets/skins/night/widget-stack.css +1 -0
  1436. package/build/widget-stack/assets/skins/sam/widget-stack-skin.css +0 -0
  1437. package/build/widget-stack/assets/skins/sam/widget-stack.css +1 -0
  1438. package/build/widget-stack/assets/widget-stack-core.css +19 -0
  1439. package/build/widget-stack/widget-stack-debug.js +440 -0
  1440. package/build/widget-stack/widget-stack-min.js +1 -0
  1441. package/build/widget-stack/widget-stack.js +440 -0
  1442. package/build/widget-stdmod/widget-stdmod-debug.js +780 -0
  1443. package/build/widget-stdmod/widget-stdmod-min.js +1 -0
  1444. package/build/widget-stdmod/widget-stdmod.js +780 -0
  1445. package/build/widget-uievents/widget-uievents-debug.js +227 -0
  1446. package/build/widget-uievents/widget-uievents-min.js +1 -0
  1447. package/build/widget-uievents/widget-uievents.js +226 -0
  1448. package/build/yql/yql-debug.js +168 -0
  1449. package/build/yql/yql-min.js +1 -0
  1450. package/build/yql/yql.js +167 -0
  1451. package/build/yql-jsonp/yql-jsonp-debug.js +29 -0
  1452. package/build/yql-jsonp/yql-jsonp-min.js +1 -0
  1453. package/build/yql-jsonp/yql-jsonp.js +29 -0
  1454. package/build/yql-nodejs/yql-nodejs-debug.js +33 -0
  1455. package/build/yql-nodejs/yql-nodejs-min.js +22 -0
  1456. package/build/yql-nodejs/yql-nodejs.js +33 -0
  1457. package/build/yql-winjs/yql-winjs-debug.js +34 -0
  1458. package/build/yql-winjs/yql-winjs-min.js +1 -0
  1459. package/build/yql-winjs/yql-winjs.js +34 -0
  1460. package/build/yui/yui-debug.js +12330 -0
  1461. package/build/yui/yui-min.js +16 -0
  1462. package/build/yui/yui.js +12022 -0
  1463. package/build/yui-base/yui-base-debug.js +6254 -0
  1464. package/build/yui-base/yui-base-min.js +7 -0
  1465. package/build/yui-base/yui-base.js +5989 -0
  1466. package/build/yui-core/yui-core-debug.js +4264 -0
  1467. package/build/yui-core/yui-core-min.js +5 -0
  1468. package/build/yui-core/yui-core.js +4017 -0
  1469. package/build/yui-later/yui-later-debug.js +78 -0
  1470. package/build/yui-later/yui-later-min.js +1 -0
  1471. package/build/yui-later/yui-later.js +78 -0
  1472. package/build/yui-log/yui-log-debug.js +125 -0
  1473. package/build/yui-log/yui-log-min.js +1 -0
  1474. package/build/yui-log/yui-log.js +125 -0
  1475. package/build/yui-log-nodejs/yui-log-nodejs-debug.js +81 -0
  1476. package/build/yui-log-nodejs/yui-log-nodejs-min.js +1 -0
  1477. package/build/yui-log-nodejs/yui-log-nodejs.js +81 -0
  1478. package/build/yui-nodejs/yui-nodejs-debug.js +11418 -0
  1479. package/build/yui-nodejs/yui-nodejs-min.js +15 -0
  1480. package/build/yui-nodejs/yui-nodejs.js +10969 -0
  1481. package/build/yui-throttle/yui-throttle-debug.js +54 -0
  1482. package/build/yui-throttle/yui-throttle-min.js +3 -0
  1483. package/build/yui-throttle/yui-throttle.js +54 -0
  1484. package/index.js +3 -0
  1485. package/package.json +36 -0
@@ -0,0 +1,4017 @@
1
+ /**
2
+ The YUI module contains the components required for building the YUI seed file.
3
+ This includes the script loading mechanism, a simple queue, and the core
4
+ utilities for the library.
5
+
6
+ @module yui
7
+ @main yui
8
+ @submodule yui-base
9
+ **/
10
+
11
+ /*jshint eqeqeq: false*/
12
+ if (typeof YUI != 'undefined') {
13
+ YUI._YUI = YUI;
14
+ }
15
+
16
+ /**
17
+ The YUI global namespace object. This is the constructor for all YUI instances.
18
+
19
+ This is a self-instantiable factory function, meaning you don't need to precede
20
+ it with the `new` operator. You can invoke it directly like this:
21
+
22
+ YUI().use('*', function (Y) {
23
+ // Y is a new YUI instance.
24
+ });
25
+
26
+ But it also works like this:
27
+
28
+ var Y = YUI();
29
+
30
+ The `YUI` constructor accepts an optional config object, like this:
31
+
32
+ YUI({
33
+ debug: true,
34
+ combine: false
35
+ }).use('node', function (Y) {
36
+ // Y.Node is ready to use.
37
+ });
38
+
39
+ See the API docs for the <a href="config.html">Config</a> class for the complete
40
+ list of supported configuration properties accepted by the YUI constuctor.
41
+
42
+ If a global `YUI` object is already defined, the existing YUI object will not be
43
+ overwritten, to ensure that defined namespaces are preserved.
44
+
45
+ Each YUI instance has full custom event support, but only if the event system is
46
+ available.
47
+
48
+ @class YUI
49
+ @uses EventTarget
50
+ @constructor
51
+ @global
52
+ @param {Object} [config]* Zero or more optional configuration objects. Config
53
+ values are stored in the `Y.config` property. See the
54
+ <a href="config.html">Config</a> docs for the list of supported properties.
55
+ **/
56
+
57
+ /*global YUI*/
58
+ /*global YUI_config*/
59
+ var YUI = function() {
60
+ var i = 0,
61
+ Y = this,
62
+ args = arguments,
63
+ l = args.length,
64
+ instanceOf = function(o, type) {
65
+ return (o && o.hasOwnProperty && (o instanceof type));
66
+ },
67
+ gconf = (typeof YUI_config !== 'undefined') && YUI_config;
68
+
69
+ if (!(instanceOf(Y, YUI))) {
70
+ Y = new YUI();
71
+ } else {
72
+ // set up the core environment
73
+ Y._init();
74
+
75
+ /**
76
+ Master configuration that might span multiple contexts in a non-
77
+ browser environment. It is applied first to all instances in all
78
+ contexts.
79
+
80
+ @example
81
+
82
+ YUI.GlobalConfig = {
83
+ filter: 'debug'
84
+ };
85
+
86
+ YUI().use('node', function (Y) {
87
+ // debug files used here
88
+ });
89
+
90
+ YUI({
91
+ filter: 'min'
92
+ }).use('node', function (Y) {
93
+ // min files used here
94
+ });
95
+
96
+ @property {Object} GlobalConfig
97
+ @global
98
+ @static
99
+ **/
100
+ if (YUI.GlobalConfig) {
101
+ Y.applyConfig(YUI.GlobalConfig);
102
+ }
103
+
104
+ /**
105
+ Page-level config applied to all YUI instances created on the
106
+ current page. This is applied after `YUI.GlobalConfig` and before
107
+ any instance-level configuration.
108
+
109
+ @example
110
+
111
+ // Single global var to include before YUI seed file
112
+ YUI_config = {
113
+ filter: 'debug'
114
+ };
115
+
116
+ YUI().use('node', function (Y) {
117
+ // debug files used here
118
+ });
119
+
120
+ YUI({
121
+ filter: 'min'
122
+ }).use('node', function (Y) {
123
+ // min files used here
124
+ });
125
+
126
+ @property {Object} YUI_config
127
+ @global
128
+ **/
129
+ if (gconf) {
130
+ Y.applyConfig(gconf);
131
+ }
132
+
133
+ // bind the specified additional modules for this instance
134
+ if (!l) {
135
+ Y._afterConfig();
136
+ Y._setup();
137
+ }
138
+ }
139
+
140
+ if (l) {
141
+ // Each instance can accept one or more configuration objects.
142
+ // These are applied after YUI.GlobalConfig and YUI_Config,
143
+ // overriding values set in those config files if there is a
144
+ // matching property.
145
+ for (; i < l; i++) {
146
+ Y.applyConfig(args[i]);
147
+ }
148
+
149
+ Y._afterConfig();
150
+ Y._setup();
151
+ }
152
+
153
+ Y.instanceOf = instanceOf;
154
+
155
+ return Y;
156
+ };
157
+
158
+ (function() {
159
+
160
+ var proto, prop,
161
+ VERSION = '@VERSION@',
162
+ PERIOD = '.',
163
+ BASE = 'http://yui.yahooapis.com/',
164
+ /*
165
+ These CSS class names can't be generated by
166
+ getClassName since it is not available at the
167
+ time they are being used.
168
+ */
169
+ DOC_LABEL = 'yui3-js-enabled',
170
+ CSS_STAMP_EL = 'yui3-css-stamp',
171
+ NOOP = function() {},
172
+ SLICE = Array.prototype.slice,
173
+ APPLY_TO_AUTH = { 'io.xdrReady': 1, // the functions applyTo
174
+ 'io.xdrResponse': 1, // can call. this should
175
+ 'SWF.eventHandler': 1 }, // be done at build time
176
+ hasWin = (typeof window != 'undefined'),
177
+ win = (hasWin) ? window : null,
178
+ doc = (hasWin) ? win.document : null,
179
+ docEl = doc && doc.documentElement,
180
+ docClass = docEl && docEl.className,
181
+ instances = {},
182
+ time = new Date().getTime(),
183
+ add = function(el, type, fn, capture) {
184
+ if (el && el.addEventListener) {
185
+ el.addEventListener(type, fn, capture);
186
+ } else if (el && el.attachEvent) {
187
+ el.attachEvent('on' + type, fn);
188
+ }
189
+ },
190
+ remove = function(el, type, fn, capture) {
191
+ if (el && el.removeEventListener) {
192
+ // this can throw an uncaught exception in FF
193
+ try {
194
+ el.removeEventListener(type, fn, capture);
195
+ } catch (ex) {}
196
+ } else if (el && el.detachEvent) {
197
+ el.detachEvent('on' + type, fn);
198
+ }
199
+ },
200
+ handleReady = function() {
201
+ YUI.Env.DOMReady = true;
202
+ if (hasWin) {
203
+ remove(doc, 'DOMContentLoaded', handleReady);
204
+ }
205
+ },
206
+ handleLoad = function() {
207
+ YUI.Env.windowLoaded = true;
208
+ YUI.Env.DOMReady = true;
209
+ if (hasWin) {
210
+ remove(window, 'load', handleLoad);
211
+ }
212
+ },
213
+ getLoader = function(Y, o) {
214
+ var loader = Y.Env._loader,
215
+ lCore = [ 'loader-base' ],
216
+ G_ENV = YUI.Env,
217
+ mods = G_ENV.mods;
218
+
219
+ if (loader) {
220
+ //loader._config(Y.config);
221
+ loader.ignoreRegistered = false;
222
+ loader.onEnd = null;
223
+ loader.data = null;
224
+ loader.required = [];
225
+ loader.loadType = null;
226
+ } else {
227
+ loader = new Y.Loader(Y.config);
228
+ Y.Env._loader = loader;
229
+ }
230
+ if (mods && mods.loader) {
231
+ lCore = [].concat(lCore, YUI.Env.loaderExtras);
232
+ }
233
+ YUI.Env.core = Y.Array.dedupe([].concat(YUI.Env.core, lCore));
234
+
235
+ return loader;
236
+ },
237
+
238
+ clobber = function(r, s) {
239
+ for (var i in s) {
240
+ if (s.hasOwnProperty(i)) {
241
+ r[i] = s[i];
242
+ }
243
+ }
244
+ },
245
+
246
+ ALREADY_DONE = { success: true };
247
+
248
+ // Stamp the documentElement (HTML) with a class of "yui-loaded" to
249
+ // enable styles that need to key off of JS being enabled.
250
+ if (docEl && docClass.indexOf(DOC_LABEL) == -1) {
251
+ if (docClass) {
252
+ docClass += ' ';
253
+ }
254
+ docClass += DOC_LABEL;
255
+ docEl.className = docClass;
256
+ }
257
+
258
+ if (VERSION.indexOf('@') > -1) {
259
+ VERSION = '3.5.0'; // dev time hack for cdn test
260
+ }
261
+
262
+ proto = {
263
+ /**
264
+ Applies a new configuration object to the config of this YUI instance. This
265
+ will merge new group/module definitions, and will also update the loader
266
+ cache if necessary. Updating `Y.config` directly will not update the cache.
267
+
268
+ @method applyConfig
269
+ @param {Object} o the configuration object.
270
+ @since 3.2.0
271
+ **/
272
+ applyConfig: function(o) {
273
+
274
+ o = o || NOOP;
275
+
276
+ var attr,
277
+ name,
278
+ // detail,
279
+ config = this.config,
280
+ mods = config.modules,
281
+ groups = config.groups,
282
+ aliases = config.aliases,
283
+ loader = this.Env._loader;
284
+
285
+ for (name in o) {
286
+ if (o.hasOwnProperty(name)) {
287
+ attr = o[name];
288
+ if (mods && name == 'modules') {
289
+ clobber(mods, attr);
290
+ } else if (aliases && name == 'aliases') {
291
+ clobber(aliases, attr);
292
+ } else if (groups && name == 'groups') {
293
+ clobber(groups, attr);
294
+ } else if (name == 'win') {
295
+ config[name] = (attr && attr.contentWindow) || attr;
296
+ config.doc = config[name] ? config[name].document : null;
297
+ } else if (name == '_yuid') {
298
+ // preserve the guid
299
+ } else {
300
+ config[name] = attr;
301
+ }
302
+ }
303
+ }
304
+
305
+ if (loader) {
306
+ loader._config(o);
307
+ }
308
+
309
+ },
310
+
311
+ /**
312
+ Old way to apply a config to this instance (calls `applyConfig` under the
313
+ hood).
314
+
315
+ @private
316
+ @method _config
317
+ @param {Object} o The config to apply
318
+ **/
319
+ _config: function(o) {
320
+ this.applyConfig(o);
321
+ },
322
+
323
+ /**
324
+ Initializes this YUI instance.
325
+
326
+ @private
327
+ @method _init
328
+ **/
329
+ _init: function() {
330
+ var filter, el,
331
+ Y = this,
332
+ G_ENV = YUI.Env,
333
+ Env = Y.Env,
334
+ prop;
335
+
336
+ /**
337
+ The version number of this YUI instance.
338
+
339
+ This value is typically updated by a script when a YUI release is built,
340
+ so it may not reflect the correct version number when YUI is run from
341
+ the development source tree.
342
+
343
+ @property {String} version
344
+ **/
345
+ Y.version = VERSION;
346
+
347
+ if (!Env) {
348
+ Y.Env = {
349
+ core: ['intl-base'],
350
+ loaderExtras: ['loader-rollup', 'loader-yui3'],
351
+ mods: {}, // flat module map
352
+ versions: {}, // version module map
353
+ base: BASE,
354
+ cdn: BASE + VERSION + '/',
355
+ // bootstrapped: false,
356
+ _idx: 0,
357
+ _used: {},
358
+ _attached: {},
359
+ _exported: {},
360
+ _missed: [],
361
+ _yidx: 0,
362
+ _uidx: 0,
363
+ _guidp: 'y',
364
+ _loaded: {},
365
+ // serviced: {},
366
+ // Regex in English:
367
+ // I'll start at the \b(yui).
368
+ // 1. Look in the test string for "yui" or
369
+ // "yui-base" or "yui-davglass" or "yui-foobar" that comes after a word break. That is, it
370
+ // can't match "foyui" or "i_heart_yui". This can be anywhere in the string.
371
+ // 2. After #1 must come a forward slash followed by the string matched in #1, so
372
+ // "yui-base/yui-base" or "yui-pants/yui-pants".
373
+ // 3. The second occurence of the #1 token can optionally be followed by "-debug" or "-min",
374
+ // so "yui/yui-min", "yui/yui-debug", "yui-base/yui-base-debug". NOT "yui/yui-tshirt".
375
+ // 4. This is followed by ".js", so "yui/yui.js".
376
+ // 0. Going back to the beginning, now. If all that stuff in 1-4 comes after a "?" in the string,
377
+ // then capture the junk between the LAST "&" and the string in 1-4. So
378
+ // "blah?foo/yui/yui.js" will capture "foo/" and "blah?some/thing.js&3.3.0/build/yui-davglass/yui-davglass.js"
379
+ // will capture "3.3.0/build/"
380
+ //
381
+ // Regex Exploded:
382
+ // (?:\? Find a ?
383
+ // (?:[^&]*&) followed by 0..n characters followed by an &
384
+ // * in fact, find as many sets of characters followed by a & as you can
385
+ // ([^&]*) capture the stuff after the last & in \1
386
+ // )? but it's ok if all this ?junk&more_junk stuff isn't even there
387
+ // \b( after a word break find either the string
388
+ // yui(?:-\w+)? "yui" optionally followed by a -, then more characters
389
+ // ) and store the yui-* string in \2
390
+ // \/\2 then comes a / followed by the yui-* string in \2
391
+ // (?:-(min|debug))? optionally followed by "-min" or "-debug"
392
+ // .js and ending in ".js"
393
+ _BASE_RE: /(?:\?(?:[^&]*&)*([^&]*))?\b(yui(?:-\w+)?)\/\2(?:-(min|debug))?\.js/,
394
+ parseBasePath: function(src, pattern) {
395
+ var match = src.match(pattern),
396
+ path, filter;
397
+
398
+ if (match) {
399
+ path = RegExp.leftContext || src.slice(0, src.indexOf(match[0]));
400
+
401
+ // this is to set up the path to the loader. The file
402
+ // filter for loader should match the yui include.
403
+ filter = match[3];
404
+
405
+ // extract correct path for mixed combo urls
406
+ // http://yuilibrary.com/projects/yui3/ticket/2528423
407
+ if (match[1]) {
408
+ path += '?' + match[1];
409
+ }
410
+ path = {
411
+ filter: filter,
412
+ path: path
413
+ };
414
+ }
415
+ return path;
416
+ },
417
+ getBase: G_ENV && G_ENV.getBase ||
418
+ function(pattern) {
419
+ var nodes = (doc && doc.getElementsByTagName('script')) || [],
420
+ path = Env.cdn, parsed,
421
+ i, len, src;
422
+
423
+ for (i = 0, len = nodes.length; i < len; ++i) {
424
+ src = nodes[i].src;
425
+ if (src) {
426
+ parsed = Y.Env.parseBasePath(src, pattern);
427
+ if (parsed) {
428
+ filter = parsed.filter;
429
+ path = parsed.path;
430
+ break;
431
+ }
432
+ }
433
+ }
434
+
435
+ // use CDN default
436
+ return path;
437
+ }
438
+
439
+ };
440
+
441
+ Env = Y.Env;
442
+
443
+ Env._loaded[VERSION] = {};
444
+
445
+ if (G_ENV && Y !== YUI) {
446
+ Env._yidx = ++G_ENV._yidx;
447
+ Env._guidp = ('yui_' + VERSION + '_' +
448
+ Env._yidx + '_' + time).replace(/[^a-z0-9_]+/g, '_');
449
+ } else if (YUI._YUI) {
450
+
451
+ G_ENV = YUI._YUI.Env;
452
+ Env._yidx += G_ENV._yidx;
453
+ Env._uidx += G_ENV._uidx;
454
+
455
+ for (prop in G_ENV) {
456
+ if (!(prop in Env)) {
457
+ Env[prop] = G_ENV[prop];
458
+ }
459
+ }
460
+
461
+ delete YUI._YUI;
462
+ }
463
+
464
+ Y.id = Y.stamp(Y);
465
+ instances[Y.id] = Y;
466
+
467
+ }
468
+
469
+ Y.constructor = YUI;
470
+
471
+ // configuration defaults
472
+ Y.config = Y.config || {
473
+ bootstrap: true,
474
+ cacheUse: true,
475
+ debug: true,
476
+ doc: doc,
477
+ fetchCSS: true,
478
+ throwFail: true,
479
+ useBrowserConsole: true,
480
+ useNativeES5: true,
481
+ win: win
482
+ };
483
+
484
+ //Register the CSS stamp element
485
+ if (doc && !doc.getElementById(CSS_STAMP_EL)) {
486
+ el = doc.createElement('div');
487
+ el.innerHTML = '<div id="' + CSS_STAMP_EL + '" style="position: absolute !important; visibility: hidden !important"></div>';
488
+ YUI.Env.cssStampEl = el.firstChild;
489
+ if (doc.body) {
490
+ doc.body.appendChild(YUI.Env.cssStampEl);
491
+ } else {
492
+ docEl.insertBefore(YUI.Env.cssStampEl, docEl.firstChild);
493
+ }
494
+ } else if (doc && doc.getElementById(CSS_STAMP_EL) && !YUI.Env.cssStampEl) {
495
+ YUI.Env.cssStampEl = doc.getElementById(CSS_STAMP_EL);
496
+ }
497
+
498
+ Y.config.lang = Y.config.lang || 'en-US';
499
+
500
+ Y.config.base = YUI.config.base ||
501
+ (YUI.config.defaultBase && YUI.config.root && YUI.config.defaultBase + YUI.config.root) ||
502
+ Y.Env.getBase(Y.Env._BASE_RE);
503
+
504
+ if (!filter || (!('mindebug').indexOf(filter))) {
505
+ filter = 'min';
506
+ }
507
+ filter = (filter) ? '-' + filter : filter;
508
+ Y.config.loaderPath = YUI.config.loaderPath || 'loader/loader' + filter + '.js';
509
+
510
+ },
511
+
512
+ /**
513
+ This method is called after all other configuration has been applied to
514
+ the YUI instance.
515
+
516
+ @method _afterConfig
517
+ @private
518
+ **/
519
+ _afterConfig: function () {
520
+ var Y = this;
521
+
522
+ // We need to set up Y.config.global after the rest of the configuration
523
+ // so that setting it in user configuration prevents the library from
524
+ // using eval(). This is critical for Content Security Policy enabled
525
+ // sites and other environments like Chrome extensions
526
+ if (!Y.config.hasOwnProperty('global')) {
527
+ Y.config.global = Function('return this')();
528
+ }
529
+ },
530
+
531
+ /**
532
+ Finishes the instance setup. Attaches whatever YUI modules were defined
533
+ at the time that this instance was created.
534
+
535
+ @method _setup
536
+ @private
537
+ **/
538
+ _setup: function() {
539
+ var i, Y = this,
540
+ core = [],
541
+ mods = YUI.Env.mods,
542
+ extendedCore = Y.config.extendedCore || [],
543
+ extras = Y.config.core || [].concat(YUI.Env.core).concat(extendedCore); //Clone it..
544
+
545
+ for (i = 0; i < extras.length; i++) {
546
+ if (mods[extras[i]]) {
547
+ core.push(extras[i]);
548
+ }
549
+ }
550
+
551
+ Y._attach(['yui-base']);
552
+ Y._attach(core);
553
+
554
+ if (Y.Loader) {
555
+ getLoader(Y);
556
+ }
557
+
558
+ },
559
+
560
+ /**
561
+ Executes the named method on the specified YUI instance if that method is
562
+ whitelisted.
563
+
564
+ @method applyTo
565
+ @param {String} id YUI instance id.
566
+ @param {String} method Name of the method to execute. For example:
567
+ 'Object.keys'.
568
+ @param {Array} args Arguments to apply to the method.
569
+ @return {Mixed} Return value from the applied method, or `null` if the
570
+ specified instance was not found or the method was not whitelisted.
571
+ **/
572
+ applyTo: function(id, method, args) {
573
+ if (!(method in APPLY_TO_AUTH)) {
574
+ this.log(method + ': applyTo not allowed', 'warn', 'yui');
575
+ return null;
576
+ }
577
+
578
+ var instance = instances[id], nest, m, i;
579
+ if (instance) {
580
+ nest = method.split('.');
581
+ m = instance;
582
+ for (i = 0; i < nest.length; i = i + 1) {
583
+ m = m[nest[i]];
584
+ if (!m) {
585
+ this.log('applyTo not found: ' + method, 'warn', 'yui');
586
+ }
587
+ }
588
+ return m && m.apply(instance, args);
589
+ }
590
+
591
+ return null;
592
+ },
593
+
594
+ /**
595
+ Registers a YUI module and makes it available for use in a `YUI().use()` call or
596
+ as a dependency for other modules.
597
+
598
+ The easiest way to create a first-class YUI module is to use
599
+ <a href="http://yui.github.com/shifter/">Shifter</a>, the YUI component build
600
+ tool.
601
+
602
+ Shifter will automatically wrap your module code in a `YUI.add()` call along
603
+ with any configuration info required for the module.
604
+
605
+ @example
606
+
607
+ YUI.add('davglass', function (Y) {
608
+ Y.davglass = function () {
609
+ };
610
+ }, '3.4.0', {
611
+ requires: ['harley-davidson', 'mt-dew']
612
+ });
613
+
614
+ @method add
615
+ @param {String} name Module name.
616
+ @param {Function} fn Function containing module code. This function will be
617
+ executed whenever the module is attached to a specific YUI instance.
618
+
619
+ @param {YUI} fn.Y The YUI instance to which this module is attached.
620
+ @param {String} fn.name Name of the module
621
+
622
+ @param {String} version Module version number. This is currently used only for
623
+ informational purposes, and is not used internally by YUI.
624
+
625
+ @param {Object} [details] Module config.
626
+ @param {Array} [details.requires] Array of other module names that must be
627
+ attached before this module can be attached.
628
+ @param {Array} [details.optional] Array of optional module names that should
629
+ be attached before this module is attached if they've already been
630
+ loaded. If the `loadOptional` YUI option is `true`, optional modules
631
+ that have not yet been loaded will be loaded just as if they were hard
632
+ requirements.
633
+ @param {Array} [details.use] Array of module names that are included within
634
+ or otherwise provided by this module, and which should be attached
635
+ automatically when this module is attached. This makes it possible to
636
+ create "virtual rollup" modules that simply attach a collection of other
637
+ modules or submodules.
638
+
639
+ @return {YUI} This YUI instance.
640
+ **/
641
+ add: function(name, fn, version, details) {
642
+ details = details || {};
643
+ var env = YUI.Env,
644
+ mod = {
645
+ name: name,
646
+ fn: fn,
647
+ version: version,
648
+ details: details
649
+ },
650
+ //Instance hash so we don't apply it to the same instance twice
651
+ applied = {},
652
+ loader, inst, modInfo,
653
+ i, versions = env.versions;
654
+
655
+ env.mods[name] = mod;
656
+ versions[version] = versions[version] || {};
657
+ versions[version][name] = mod;
658
+
659
+ for (i in instances) {
660
+ if (instances.hasOwnProperty(i)) {
661
+ inst = instances[i];
662
+ if (!applied[inst.id]) {
663
+ applied[inst.id] = true;
664
+ loader = inst.Env._loader;
665
+ if (loader) {
666
+ modInfo = loader.getModuleInfo(name);
667
+ if (!modInfo || modInfo.temp) {
668
+ loader.addModule(details, name);
669
+ }
670
+ }
671
+ }
672
+ }
673
+ }
674
+
675
+ return this;
676
+ },
677
+
678
+ /**
679
+ Executes the callback function associated with each required module,
680
+ attaching the module to this YUI instance.
681
+
682
+ @method _attach
683
+ @param {Array} r The array of modules to attach
684
+ @param {Boolean} [moot=false] If `true`, don't throw a warning if the module
685
+ is not attached.
686
+ @private
687
+ **/
688
+ _attach: function(r, moot) {
689
+ var i, name, mod, details, req, use, after,
690
+ mods = YUI.Env.mods,
691
+ aliases = YUI.Env.aliases,
692
+ Y = this, j,
693
+ cache = YUI.Env._renderedMods,
694
+ loader = Y.Env._loader,
695
+ done = Y.Env._attached,
696
+ exported = Y.Env._exported,
697
+ len = r.length, loader, def, go,
698
+ c = [],
699
+ modArgs, esCompat, reqlen, modInfo,
700
+ condition,
701
+ __exports__, __imports__;
702
+
703
+ //Check for conditional modules (in a second+ instance) and add their requirements
704
+ //TODO I hate this entire method, it needs to be fixed ASAP (3.5.0) ^davglass
705
+ for (i = 0; i < len; i++) {
706
+ name = r[i];
707
+ mod = mods[name];
708
+ c.push(name);
709
+ if (loader && loader.conditions[name]) {
710
+ for (j in loader.conditions[name]) {
711
+ if (loader.conditions[name].hasOwnProperty(j)) {
712
+ def = loader.conditions[name][j];
713
+ go = def && ((def.ua && Y.UA[def.ua]) || (def.test && def.test(Y)));
714
+ if (go) {
715
+ c.push(def.name);
716
+ }
717
+ }
718
+ }
719
+ }
720
+ }
721
+ r = c;
722
+ len = r.length;
723
+
724
+ for (i = 0; i < len; i++) {
725
+ if (!done[r[i]]) {
726
+ name = r[i];
727
+ mod = mods[name];
728
+
729
+ if (aliases && aliases[name] && !mod) {
730
+ Y._attach(aliases[name]);
731
+ continue;
732
+ }
733
+ if (!mod) {
734
+ modInfo = loader && loader.getModuleInfo(name);
735
+ if (modInfo) {
736
+ mod = modInfo;
737
+ moot = true;
738
+ }
739
+
740
+
741
+ //if (!loader || !loader.moduleInfo[name]) {
742
+ //if ((!loader || !loader.moduleInfo[name]) && !moot) {
743
+ if (!moot && name) {
744
+ if ((name.indexOf('skin-') === -1) && (name.indexOf('css') === -1)) {
745
+ Y.Env._missed.push(name);
746
+ Y.Env._missed = Y.Array.dedupe(Y.Env._missed);
747
+ Y.message('NOT loaded: ' + name, 'warn', 'yui');
748
+ }
749
+ }
750
+ } else {
751
+ done[name] = true;
752
+ //Don't like this, but in case a mod was asked for once, then we fetch it
753
+ //We need to remove it from the missed list ^davglass
754
+ for (j = 0; j < Y.Env._missed.length; j++) {
755
+ if (Y.Env._missed[j] === name) {
756
+ Y.message('Found: ' + name + ' (was reported as missing earlier)', 'warn', 'yui');
757
+ Y.Env._missed.splice(j, 1);
758
+ }
759
+ }
760
+
761
+ // Optional dependencies normally work by modifying the
762
+ // dependency list of a module. If the dependency's test
763
+ // passes it is added to the list. If not, it's not loaded.
764
+ // This following check ensures that optional dependencies
765
+ // are not attached when they were already loaded into the
766
+ // page (when bundling for example)
767
+ if (loader && !loader._canBeAttached(name)) {
768
+ return true;
769
+ }
770
+
771
+ /*
772
+ If it's a temp module, we need to redo it's requirements if it's already loaded
773
+ since it may have been loaded by another instance and it's dependencies might
774
+ have been redefined inside the fetched file.
775
+ */
776
+ if (loader && cache && cache[name] && cache[name].temp) {
777
+ loader.getRequires(cache[name]);
778
+ req = [];
779
+ modInfo = loader.getModuleInfo(name);
780
+ for (j in modInfo.expanded_map) {
781
+ if (modInfo.expanded_map.hasOwnProperty(j)) {
782
+ req.push(j);
783
+ }
784
+ }
785
+ Y._attach(req);
786
+ }
787
+
788
+ details = mod.details;
789
+ req = details.requires;
790
+ esCompat = details.es;
791
+ use = details.use;
792
+ after = details.after;
793
+ //Force Intl load if there is a language (Loader logic) @todo fix this shit
794
+ if (details.lang) {
795
+ req = req || [];
796
+ req.unshift('intl');
797
+ }
798
+
799
+ if (req) {
800
+ reqlen = req.length;
801
+ for (j = 0; j < reqlen; j++) {
802
+ if (!done[req[j]]) {
803
+ if (!Y._attach(req)) {
804
+ return false;
805
+ }
806
+ break;
807
+ }
808
+ }
809
+ }
810
+
811
+ if (after) {
812
+ for (j = 0; j < after.length; j++) {
813
+ if (!done[after[j]]) {
814
+ if (!Y._attach(after, true)) {
815
+ return false;
816
+ }
817
+ break;
818
+ }
819
+ }
820
+ }
821
+
822
+ if (mod.fn) {
823
+ modArgs = [Y, name];
824
+ if (esCompat) {
825
+ __imports__ = {};
826
+ __exports__ = {};
827
+ // passing `exports` and `imports` onto the module function
828
+ modArgs.push(__imports__, __exports__);
829
+ if (req) {
830
+ reqlen = req.length;
831
+ for (j = 0; j < reqlen; j++) {
832
+ __imports__[req[j]] = exported.hasOwnProperty(req[j]) ? exported[req[j]] : Y;
833
+ }
834
+ }
835
+ }
836
+ if (Y.config.throwFail) {
837
+ __exports__ = mod.fn.apply(esCompat ? undefined : mod, modArgs);
838
+ } else {
839
+ try {
840
+ __exports__ = mod.fn.apply(esCompat ? undefined : mod, modArgs);
841
+ } catch (e) {
842
+ Y.error('Attach error: ' + name, e, name);
843
+ return false;
844
+ }
845
+ }
846
+ if (esCompat) {
847
+ // store the `exports` in case others `es` modules requires it
848
+ exported[name] = __exports__;
849
+
850
+ // If an ES module is conditionally loaded and set
851
+ // to be used "instead" another module, replace the
852
+ // trigger module's content with the conditionally
853
+ // loaded one so the values returned by require()
854
+ // still makes sense
855
+ condition = mod.details.condition;
856
+ if (condition && condition.when === 'instead') {
857
+ exported[condition.trigger] = __exports__;
858
+ }
859
+ }
860
+ }
861
+
862
+ if (use) {
863
+ for (j = 0; j < use.length; j++) {
864
+ if (!done[use[j]]) {
865
+ if (!Y._attach(use)) {
866
+ return false;
867
+ }
868
+ break;
869
+ }
870
+ }
871
+ }
872
+
873
+
874
+
875
+ }
876
+ }
877
+ }
878
+
879
+ return true;
880
+ },
881
+
882
+ /**
883
+ Delays the `use` callback until another event has taken place such as
884
+ `window.onload`, `domready`, `contentready`, or `available`.
885
+
886
+ @private
887
+ @method _delayCallback
888
+ @param {Function} cb The original `use` callback.
889
+ @param {String|Object} until Either an event name ('load', 'domready', etc.)
890
+ or an object containing event/args keys for contentready/available.
891
+ @return {Function}
892
+ **/
893
+ _delayCallback: function(cb, until) {
894
+
895
+ var Y = this,
896
+ mod = ['event-base'];
897
+
898
+ until = (Y.Lang.isObject(until) ? until : { event: until });
899
+
900
+ if (until.event === 'load') {
901
+ mod.push('event-synthetic');
902
+ }
903
+
904
+ return function() {
905
+ var args = arguments;
906
+ Y._use(mod, function() {
907
+ Y.on(until.event, function() {
908
+ args[1].delayUntil = until.event;
909
+ cb.apply(Y, args);
910
+ }, until.args);
911
+ });
912
+ };
913
+ },
914
+
915
+ /**
916
+ Attaches one or more modules to this YUI instance. When this is executed,
917
+ the requirements of the desired modules are analyzed, and one of several
918
+ things can happen:
919
+
920
+
921
+ * All required modules have already been loaded, and just need to be
922
+ attached to this YUI instance. In this case, the `use()` callback will
923
+ be executed synchronously after the modules are attached.
924
+
925
+ * One or more modules have not yet been loaded, or the Get utility is not
926
+ available, or the `bootstrap` config option is `false`. In this case,
927
+ a warning is issued indicating that modules are missing, but all
928
+ available modules will still be attached and the `use()` callback will
929
+ be executed synchronously.
930
+
931
+ * One or more modules are missing and the Loader is not available but the
932
+ Get utility is, and `bootstrap` is not `false`. In this case, the Get
933
+ utility will be used to load the Loader, and we will then proceed to
934
+ the following state:
935
+
936
+ * One or more modules are missing and the Loader is available. In this
937
+ case, the Loader will be used to resolve the dependency tree for the
938
+ missing modules and load them and their dependencies. When the Loader is
939
+ finished loading modules, the `use()` callback will be executed
940
+ asynchronously.
941
+
942
+ @example
943
+
944
+ // Loads and attaches dd and its dependencies.
945
+ YUI().use('dd', function (Y) {
946
+ // ...
947
+ });
948
+
949
+ // Loads and attaches dd and node as well as all of their dependencies.
950
+ YUI().use(['dd', 'node'], function (Y) {
951
+ // ...
952
+ });
953
+
954
+ // Attaches all modules that have already been loaded.
955
+ YUI().use('*', function (Y) {
956
+ // ...
957
+ });
958
+
959
+ // Attaches a gallery module.
960
+ YUI().use('gallery-yql', function (Y) {
961
+ // ...
962
+ });
963
+
964
+ // Attaches a YUI 2in3 module.
965
+ YUI().use('yui2-datatable', function (Y) {
966
+ // ...
967
+ });
968
+
969
+ @method use
970
+ @param {String|Array} modules* One or more module names to attach.
971
+ @param {Function} [callback] Callback function to be executed once all
972
+ specified modules and their dependencies have been attached.
973
+ @param {YUI} callback.Y The YUI instance created for this sandbox.
974
+ @param {Object} callback.status Object containing `success`, `msg` and
975
+ `data` properties.
976
+ @chainable
977
+ **/
978
+ use: function() {
979
+ var args = SLICE.call(arguments, 0),
980
+ callback = args[args.length - 1],
981
+ Y = this,
982
+ i = 0,
983
+ name,
984
+ Env = Y.Env,
985
+ provisioned = true;
986
+
987
+ // The last argument supplied to use can be a load complete callback
988
+ if (Y.Lang.isFunction(callback)) {
989
+ args.pop();
990
+ if (Y.config.delayUntil) {
991
+ callback = Y._delayCallback(callback, Y.config.delayUntil);
992
+ }
993
+ } else {
994
+ callback = null;
995
+ }
996
+ if (Y.Lang.isArray(args[0])) {
997
+ args = args[0];
998
+ }
999
+
1000
+ if (Y.config.cacheUse) {
1001
+ while ((name = args[i++])) {
1002
+ if (!Env._attached[name]) {
1003
+ provisioned = false;
1004
+ break;
1005
+ }
1006
+ }
1007
+
1008
+ if (provisioned) {
1009
+ if (args.length) {
1010
+ }
1011
+ Y._notify(callback, ALREADY_DONE, args);
1012
+ return Y;
1013
+ }
1014
+ }
1015
+
1016
+ if (Y._loading) {
1017
+ Y._useQueue = Y._useQueue || new Y.Queue();
1018
+ Y._useQueue.add([args, callback]);
1019
+ } else {
1020
+ Y._use(args, function(Y, response) {
1021
+ Y._notify(callback, response, args);
1022
+ });
1023
+ }
1024
+
1025
+ return Y;
1026
+ },
1027
+
1028
+ /**
1029
+ Sugar for loading both legacy and ES6-based YUI modules.
1030
+
1031
+ @method require
1032
+ @param {String} [modules*] List of module names to import or a single
1033
+ module name.
1034
+ @param {Function} callback Callback that gets called once all the modules
1035
+ were loaded. Each parameter of the callback is the export value of the
1036
+ corresponding module in the list. If the module is a legacy YUI module,
1037
+ the YUI instance is used instead of the module exports.
1038
+ @example
1039
+ ```
1040
+ YUI().require(['es6-set'], function (Y, imports) {
1041
+ var Set = imports.Set,
1042
+ set = new Set();
1043
+ });
1044
+ ```
1045
+ **/
1046
+ require: function () {
1047
+ var args = SLICE.call(arguments),
1048
+ callback;
1049
+
1050
+ if (typeof args[args.length - 1] === 'function') {
1051
+ callback = args.pop();
1052
+
1053
+ // only add the callback if one was provided
1054
+ // YUI().require('foo'); is valid
1055
+ args.push(function (Y) {
1056
+ var i, length = args.length,
1057
+ exported = Y.Env._exported,
1058
+ __imports__ = {};
1059
+
1060
+ // Get only the imports requested as arguments
1061
+ for (i = 0; i < length; i++) {
1062
+ if (exported.hasOwnProperty(args[i])) {
1063
+ __imports__[args[i]] = exported[args[i]];
1064
+ }
1065
+ }
1066
+
1067
+ // Using `undefined` because:
1068
+ // - Using `Y.config.global` would force the value of `this` to be
1069
+ // the global object even in strict mode
1070
+ // - Using `Y` goes against the goal of moving away from a shared
1071
+ // object and start thinking in terms of imported and exported
1072
+ // objects
1073
+ callback.call(undefined, Y, __imports__);
1074
+ });
1075
+ }
1076
+ // Do not return the Y object. This makes it hard to follow this
1077
+ // traditional pattern:
1078
+ // var Y = YUI().use(...);
1079
+ // This is a good idea in the light of ES6 modules, to avoid working
1080
+ // in the global scope.
1081
+ // This also leaves the door open for returning a promise, once the
1082
+ // YUI loader is based on the ES6 loader which uses
1083
+ // loader.import(...).then(...)
1084
+ this.use.apply(this, args);
1085
+ },
1086
+
1087
+ /**
1088
+ Handles Loader notifications about attachment/load errors.
1089
+
1090
+ @method _notify
1091
+ @param {Function} callback Callback to pass to `Y.config.loadErrorFn`.
1092
+ @param {Object} response Response returned from Loader.
1093
+ @param {Array} args Arguments passed from Loader.
1094
+ @private
1095
+ **/
1096
+ _notify: function(callback, response, args) {
1097
+ if (!response.success && this.config.loadErrorFn) {
1098
+ this.config.loadErrorFn.call(this, this, callback, response, args);
1099
+ } else if (callback) {
1100
+ if (this.Env._missed && this.Env._missed.length) {
1101
+ response.msg = 'Missing modules: ' + this.Env._missed.join();
1102
+ response.success = false;
1103
+ }
1104
+ if (this.config.throwFail) {
1105
+ callback(this, response);
1106
+ } else {
1107
+ try {
1108
+ callback(this, response);
1109
+ } catch (e) {
1110
+ this.error('use callback error', e, args);
1111
+ }
1112
+ }
1113
+ }
1114
+ },
1115
+
1116
+ /**
1117
+ Called from the `use` method queue to ensure that only one set of loading
1118
+ logic is performed at a time.
1119
+
1120
+ @method _use
1121
+ @param {String} args* One or more modules to attach.
1122
+ @param {Function} [callback] Function to call once all required modules have
1123
+ been attached.
1124
+ @private
1125
+ **/
1126
+ _use: function(args, callback) {
1127
+
1128
+ if (!this.Array) {
1129
+ this._attach(['yui-base']);
1130
+ }
1131
+
1132
+ var len, loader, handleBoot,
1133
+ Y = this,
1134
+ G_ENV = YUI.Env,
1135
+ mods = G_ENV.mods,
1136
+ Env = Y.Env,
1137
+ used = Env._used,
1138
+ aliases = G_ENV.aliases,
1139
+ queue = G_ENV._loaderQueue,
1140
+ firstArg = args[0],
1141
+ YArray = Y.Array,
1142
+ config = Y.config,
1143
+ boot = config.bootstrap,
1144
+ missing = [],
1145
+ i,
1146
+ r = [],
1147
+ ret = true,
1148
+ fetchCSS = config.fetchCSS,
1149
+ process = function(names, skip) {
1150
+
1151
+ var i = 0, a = [], name, len, m, req, use;
1152
+
1153
+ if (!names.length) {
1154
+ return;
1155
+ }
1156
+
1157
+ if (aliases) {
1158
+ len = names.length;
1159
+ for (i = 0; i < len; i++) {
1160
+ if (aliases[names[i]] && !mods[names[i]]) {
1161
+ a = [].concat(a, aliases[names[i]]);
1162
+ } else {
1163
+ a.push(names[i]);
1164
+ }
1165
+ }
1166
+ names = a;
1167
+ }
1168
+
1169
+ len = names.length;
1170
+
1171
+ for (i = 0; i < len; i++) {
1172
+ name = names[i];
1173
+ if (!skip) {
1174
+ r.push(name);
1175
+ }
1176
+
1177
+ // only attach a module once
1178
+ if (used[name]) {
1179
+ continue;
1180
+ }
1181
+
1182
+ m = mods[name];
1183
+ req = null;
1184
+ use = null;
1185
+
1186
+ if (m) {
1187
+ used[name] = true;
1188
+ req = m.details.requires;
1189
+ use = m.details.use;
1190
+ } else {
1191
+ // CSS files don't register themselves, see if it has
1192
+ // been loaded
1193
+ if (!G_ENV._loaded[VERSION][name]) {
1194
+ missing.push(name);
1195
+ } else {
1196
+ used[name] = true; // probably css
1197
+ }
1198
+ }
1199
+
1200
+ // make sure requirements are attached
1201
+ if (req && req.length) {
1202
+ process(req);
1203
+ }
1204
+
1205
+ // make sure we grab the submodule dependencies too
1206
+ if (use && use.length) {
1207
+ process(use, 1);
1208
+ }
1209
+ }
1210
+
1211
+ },
1212
+
1213
+ handleLoader = function(fromLoader) {
1214
+ var response = fromLoader || {
1215
+ success: true,
1216
+ msg: 'not dynamic'
1217
+ },
1218
+ redo, origMissing,
1219
+ ret = true,
1220
+ data = response.data;
1221
+
1222
+ Y._loading = false;
1223
+
1224
+ if (data) {
1225
+ origMissing = missing;
1226
+ missing = [];
1227
+ r = [];
1228
+ process(data);
1229
+ redo = missing.length;
1230
+ if (redo) {
1231
+ if ([].concat(missing).sort().join() ==
1232
+ origMissing.sort().join()) {
1233
+ redo = false;
1234
+ }
1235
+ }
1236
+ }
1237
+
1238
+ if (redo && data) {
1239
+ Y._loading = true;
1240
+ Y._use(missing, function() {
1241
+ if (Y._attach(data)) {
1242
+ Y._notify(callback, response, data);
1243
+ }
1244
+ });
1245
+ } else {
1246
+ if (data) {
1247
+ ret = Y._attach(data);
1248
+ }
1249
+ if (ret) {
1250
+ Y._notify(callback, response, args);
1251
+ }
1252
+ }
1253
+
1254
+ if (Y._useQueue && Y._useQueue.size() && !Y._loading) {
1255
+ Y._use.apply(Y, Y._useQueue.next());
1256
+ }
1257
+
1258
+ };
1259
+
1260
+
1261
+ // YUI().use('*'); // bind everything available
1262
+ if (firstArg === '*') {
1263
+ args = [];
1264
+ for (i in mods) {
1265
+ if (mods.hasOwnProperty(i)) {
1266
+ args.push(i);
1267
+ }
1268
+ }
1269
+ ret = Y._attach(args);
1270
+ if (ret) {
1271
+ handleLoader();
1272
+ }
1273
+ return Y;
1274
+ }
1275
+
1276
+ if ((mods.loader || mods['loader-base']) && !Y.Loader) {
1277
+ Y._attach(['loader' + ((!mods.loader) ? '-base' : '')]);
1278
+ }
1279
+
1280
+
1281
+ // use loader to expand dependencies and sort the
1282
+ // requirements if it is available.
1283
+ if (boot && Y.Loader && args.length) {
1284
+ loader = getLoader(Y);
1285
+ loader.require(args);
1286
+ loader.ignoreRegistered = true;
1287
+ loader._boot = true;
1288
+ loader.calculate(null, (fetchCSS) ? null : 'js');
1289
+ args = loader.sorted;
1290
+ loader._boot = false;
1291
+ }
1292
+
1293
+ process(args);
1294
+
1295
+ len = missing.length;
1296
+
1297
+
1298
+ if (len) {
1299
+ missing = YArray.dedupe(missing);
1300
+ len = missing.length;
1301
+ }
1302
+
1303
+
1304
+ // dynamic load
1305
+ if (boot && len && Y.Loader) {
1306
+ Y._loading = true;
1307
+ loader = getLoader(Y);
1308
+ loader.onEnd = handleLoader;
1309
+ loader.context = Y;
1310
+ loader.data = args;
1311
+ loader.ignoreRegistered = false;
1312
+ loader.require(missing);
1313
+ loader.insert(null, (fetchCSS) ? null : 'js');
1314
+
1315
+ } else if (boot && len && Y.Get && !Env.bootstrapped) {
1316
+
1317
+ Y._loading = true;
1318
+
1319
+ handleBoot = function() {
1320
+ Y._loading = false;
1321
+ queue.running = false;
1322
+ Env.bootstrapped = true;
1323
+ G_ENV._bootstrapping = false;
1324
+ if (Y._attach(['loader'])) {
1325
+ Y._use(args, callback);
1326
+ }
1327
+ };
1328
+
1329
+ if (G_ENV._bootstrapping) {
1330
+ queue.add(handleBoot);
1331
+ } else {
1332
+ G_ENV._bootstrapping = true;
1333
+ Y.Get.script(config.base + config.loaderPath, {
1334
+ onEnd: handleBoot
1335
+ });
1336
+ }
1337
+
1338
+ } else {
1339
+ ret = Y._attach(args);
1340
+ if (ret) {
1341
+ handleLoader();
1342
+ }
1343
+ }
1344
+
1345
+ return Y;
1346
+ },
1347
+
1348
+
1349
+ /**
1350
+ Utility method for safely creating namespaces if they don't already exist.
1351
+ May be called statically on the YUI global object or as a method on a YUI
1352
+ instance.
1353
+
1354
+ When called statically, a namespace will be created on the YUI global
1355
+ object:
1356
+
1357
+ // Create `YUI.your.namespace.here` as nested objects, preserving any
1358
+ // objects that already exist instead of overwriting them.
1359
+ YUI.namespace('your.namespace.here');
1360
+
1361
+ When called as a method on a YUI instance, a namespace will be created on
1362
+ that instance:
1363
+
1364
+ // Creates `Y.property.package`.
1365
+ Y.namespace('property.package');
1366
+
1367
+ Dots in the input string cause `namespace` to create nested objects for each
1368
+ token. If any part of the requested namespace already exists, the current
1369
+ object will be left in place and will not be overwritten. This allows
1370
+ multiple calls to `namespace` to preserve existing namespaced properties.
1371
+
1372
+ If the first token in the namespace string is "YAHOO", that token is
1373
+ discarded. This is legacy behavior for backwards compatibility with YUI 2.
1374
+
1375
+ Be careful with namespace tokens. Reserved words may work in some browsers
1376
+ and not others. For instance, the following will fail in some browsers
1377
+ because the supported version of JavaScript reserves the word "long":
1378
+
1379
+ Y.namespace('really.long.nested.namespace');
1380
+
1381
+ Note: If you pass multiple arguments to create multiple namespaces, only the
1382
+ last one created is returned from this function.
1383
+
1384
+ @method namespace
1385
+ @param {String} namespace* One or more namespaces to create.
1386
+ @return {Object} Reference to the last namespace object created.
1387
+ **/
1388
+ namespace: function() {
1389
+ var a = arguments, o, i = 0, j, d, arg;
1390
+
1391
+ for (; i < a.length; i++) {
1392
+ o = this; //Reset base object per argument or it will get reused from the last
1393
+ arg = a[i];
1394
+ if (arg.indexOf(PERIOD) > -1) { //Skip this if no "." is present
1395
+ d = arg.split(PERIOD);
1396
+ for (j = (d[0] == 'YAHOO') ? 1 : 0; j < d.length; j++) {
1397
+ o[d[j]] = o[d[j]] || {};
1398
+ o = o[d[j]];
1399
+ }
1400
+ } else {
1401
+ o[arg] = o[arg] || {};
1402
+ o = o[arg]; //Reset base object to the new object so it's returned
1403
+ }
1404
+ }
1405
+ return o;
1406
+ },
1407
+
1408
+ // this is replaced if the log module is included
1409
+ log: NOOP,
1410
+ message: NOOP,
1411
+ // this is replaced if the dump module is included
1412
+ dump: function (o) { return ''+o; },
1413
+
1414
+ /**
1415
+ Reports an error.
1416
+
1417
+ The reporting mechanism is controlled by the `throwFail` configuration
1418
+ attribute. If `throwFail` is falsy, the message is logged. If `throwFail` is
1419
+ truthy, a JS exception is thrown.
1420
+
1421
+ If an `errorFn` is specified in the config it must return `true` to indicate
1422
+ that the exception was handled and keep it from being thrown.
1423
+
1424
+ @method error
1425
+ @param {String} msg Error message.
1426
+ @param {Error|String} [e] JavaScript error object or an error string.
1427
+ @param {String} [src] Source of the error (such as the name of the module in
1428
+ which the error occurred).
1429
+ @chainable
1430
+ **/
1431
+ error: function(msg, e, src) {
1432
+ //TODO Add check for window.onerror here
1433
+
1434
+ var Y = this, ret;
1435
+
1436
+ if (Y.config.errorFn) {
1437
+ ret = Y.config.errorFn.apply(Y, arguments);
1438
+ }
1439
+
1440
+ if (!ret) {
1441
+ throw (e || new Error(msg));
1442
+ } else {
1443
+ Y.message(msg, 'error', ''+src); // don't scrub this one
1444
+ }
1445
+
1446
+ return Y;
1447
+ },
1448
+
1449
+ /**
1450
+ Generates an id string that is unique among all YUI instances in this
1451
+ execution context.
1452
+
1453
+ @method guid
1454
+ @param {String} [pre] Prefix.
1455
+ @return {String} Unique id.
1456
+ **/
1457
+ guid: function(pre) {
1458
+ var id = this.Env._guidp + '_' + (++this.Env._uidx);
1459
+ return (pre) ? (pre + id) : id;
1460
+ },
1461
+
1462
+ /**
1463
+ Returns a unique id associated with the given object and (if *readOnly* is
1464
+ falsy) stamps the object with that id so it can be identified in the future.
1465
+
1466
+ Stamping an object involves adding a `_yuid` property to it that contains
1467
+ the object's id. One exception to this is that in Internet Explorer, DOM
1468
+ nodes have a `uniqueID` property that contains a browser-generated unique
1469
+ id, which will be used instead of a YUI-generated id when available.
1470
+
1471
+ @method stamp
1472
+ @param {Object} o Object to stamp.
1473
+ @param {Boolean} readOnly If truthy and the given object has not already
1474
+ been stamped, the object will not be modified and `null` will be
1475
+ returned.
1476
+ @return {String} Object's unique id, or `null` if *readOnly* was truthy and
1477
+ the given object was not already stamped.
1478
+ **/
1479
+ stamp: function(o, readOnly) {
1480
+ var uid;
1481
+ if (!o) {
1482
+ return o;
1483
+ }
1484
+
1485
+ // IE generates its own unique ID for dom nodes
1486
+ // The uniqueID property of a document node returns a new ID
1487
+ if (o.uniqueID && o.nodeType && o.nodeType !== 9) {
1488
+ uid = o.uniqueID;
1489
+ } else {
1490
+ uid = (typeof o === 'string') ? o : o._yuid;
1491
+ }
1492
+
1493
+ if (!uid) {
1494
+ uid = this.guid();
1495
+ if (!readOnly) {
1496
+ try {
1497
+ o._yuid = uid;
1498
+ } catch (e) {
1499
+ uid = null;
1500
+ }
1501
+ }
1502
+ }
1503
+ return uid;
1504
+ },
1505
+
1506
+ /**
1507
+ Destroys this YUI instance.
1508
+
1509
+ @method destroy
1510
+ @since 3.3.0
1511
+ **/
1512
+ destroy: function() {
1513
+ var Y = this;
1514
+ if (Y.Event) {
1515
+ Y.Event._unload();
1516
+ }
1517
+ delete instances[Y.id];
1518
+ delete Y.Env;
1519
+ delete Y.config;
1520
+ }
1521
+
1522
+ /**
1523
+ Safe `instanceof` wrapper that works around a memory leak in IE when the
1524
+ object being tested is `window` or `document`.
1525
+
1526
+ Unless you are testing objects that may be `window` or `document`, you
1527
+ should use the native `instanceof` operator instead of this method.
1528
+
1529
+ @method instanceOf
1530
+ @param {Object} o Object to check.
1531
+ @param {Object} type Class to check against.
1532
+ @since 3.3.0
1533
+ **/
1534
+ };
1535
+
1536
+ YUI.prototype = proto;
1537
+
1538
+ // inheritance utilities are not available yet
1539
+ for (prop in proto) {
1540
+ if (proto.hasOwnProperty(prop)) {
1541
+ YUI[prop] = proto[prop];
1542
+ }
1543
+ }
1544
+
1545
+ /**
1546
+ Applies a configuration to all YUI instances in this execution context.
1547
+
1548
+ The main use case for this method is in "mashups" where several third-party
1549
+ scripts need to write to a global YUI config, but cannot share a single
1550
+ centrally-managed config object. This way they can all call
1551
+ `YUI.applyConfig({})` instead of overwriting the single global config.
1552
+
1553
+ @example
1554
+
1555
+ YUI.applyConfig({
1556
+ modules: {
1557
+ davglass: {
1558
+ fullpath: './davglass.js'
1559
+ }
1560
+ }
1561
+ });
1562
+
1563
+ YUI.applyConfig({
1564
+ modules: {
1565
+ foo: {
1566
+ fullpath: './foo.js'
1567
+ }
1568
+ }
1569
+ });
1570
+
1571
+ YUI().use('davglass', function (Y) {
1572
+ // Module davglass will be available here.
1573
+ });
1574
+
1575
+ @method applyConfig
1576
+ @param {Object} o Configuration object to apply.
1577
+ @static
1578
+ @since 3.5.0
1579
+ **/
1580
+ YUI.applyConfig = function(o) {
1581
+ if (!o) {
1582
+ return;
1583
+ }
1584
+ //If there is a GlobalConfig, apply it first to set the defaults
1585
+ if (YUI.GlobalConfig) {
1586
+ this.prototype.applyConfig.call(this, YUI.GlobalConfig);
1587
+ }
1588
+ //Apply this config to it
1589
+ this.prototype.applyConfig.call(this, o);
1590
+ //Reset GlobalConfig to the combined config
1591
+ YUI.GlobalConfig = this.config;
1592
+ };
1593
+
1594
+ // set up the environment
1595
+ YUI._init();
1596
+
1597
+ if (hasWin) {
1598
+ add(doc, 'DOMContentLoaded', handleReady);
1599
+
1600
+ // add a window load event at load time so we can capture
1601
+ // the case where it fires before dynamic loading is
1602
+ // complete.
1603
+ add(window, 'load', handleLoad);
1604
+ } else {
1605
+ handleReady();
1606
+ handleLoad();
1607
+ }
1608
+
1609
+ YUI.Env.add = add;
1610
+ YUI.Env.remove = remove;
1611
+
1612
+ /*global exports*/
1613
+ // Support the CommonJS method for exporting our single global
1614
+ if (typeof exports == 'object') {
1615
+ exports.YUI = YUI;
1616
+ /**
1617
+ * Set a method to be called when `Get.script` is called in Node.js
1618
+ * `Get` will open the file, then pass it's content and it's path
1619
+ * to this method before attaching it. Commonly used for code coverage
1620
+ * instrumentation. <strong>Calling this multiple times will only
1621
+ * attach the last hook method</strong>. This method is only
1622
+ * available in Node.js.
1623
+ * @method setLoadHook
1624
+ * @static
1625
+ * @param {Function} fn The function to set
1626
+ * @param {String} fn.data The content of the file
1627
+ * @param {String} fn.path The file path of the file
1628
+ */
1629
+ YUI.setLoadHook = function(fn) {
1630
+ YUI._getLoadHook = fn;
1631
+ };
1632
+ /**
1633
+ * Load hook for `Y.Get.script` in Node.js, see `YUI.setLoadHook`
1634
+ * @method _getLoadHook
1635
+ * @private
1636
+ * @param {String} data The content of the file
1637
+ * @param {String} path The file path of the file
1638
+ */
1639
+ YUI._getLoadHook = null;
1640
+ }
1641
+
1642
+ YUI.Env[VERSION] = {};
1643
+ }());
1644
+
1645
+
1646
+ /**
1647
+ Config object that contains all of the configuration options for
1648
+ this `YUI` instance.
1649
+
1650
+ This object is supplied by the implementer when instantiating YUI. Some
1651
+ properties have default values if they are not supplied by the implementer.
1652
+
1653
+ This object should not be updated directly because some values are cached. Use
1654
+ `applyConfig()` to update the config object on a YUI instance that has already
1655
+ been configured.
1656
+
1657
+ @class config
1658
+ @static
1659
+ **/
1660
+
1661
+ /**
1662
+ If `true` (the default), YUI will "bootstrap" the YUI Loader and module metadata
1663
+ if they're needed to load additional dependencies and aren't already available.
1664
+
1665
+ Setting this to `false` will prevent YUI from automatically loading the Loader
1666
+ and module metadata, so you will need to manually ensure that they're available
1667
+ or handle dependency resolution yourself.
1668
+
1669
+ @property {Boolean} bootstrap
1670
+ @default true
1671
+ **/
1672
+
1673
+ /**
1674
+
1675
+ @property {Object} filters
1676
+ **/
1677
+
1678
+ /**
1679
+ If `true`, YUI will use a combo handler to load multiple modules in as few
1680
+ requests as possible.
1681
+
1682
+ The YUI CDN (which YUI uses by default) supports combo handling, but other
1683
+ servers may not. If the server from which you're loading YUI does not support
1684
+ combo handling, set this to `false`.
1685
+
1686
+ Providing a value for the `base` config property will cause `combine` to default
1687
+ to `false` instead of `true`.
1688
+
1689
+ @property {Boolean} combine
1690
+ @default true
1691
+ */
1692
+
1693
+ /**
1694
+ Array of module names that should never be dynamically loaded.
1695
+
1696
+ @property {String[]} ignore
1697
+ **/
1698
+
1699
+ /**
1700
+ Array of module names that should always be loaded when required, even if
1701
+ already present on the page.
1702
+
1703
+ @property {String[]} force
1704
+ **/
1705
+
1706
+ /**
1707
+ DOM element or id that should be used as the insertion point for dynamically
1708
+ added `<script>` and `<link>` nodes.
1709
+
1710
+ @property {HTMLElement|String} insertBefore
1711
+ **/
1712
+
1713
+ /**
1714
+ Object hash containing attributes to add to dynamically added `<script>` nodes.
1715
+
1716
+ @property {Object} jsAttributes
1717
+ **/
1718
+
1719
+ /**
1720
+ Object hash containing attributes to add to dynamically added `<link>` nodes.
1721
+
1722
+ @property {Object} cssAttributes
1723
+ **/
1724
+
1725
+ /**
1726
+ Timeout in milliseconds before a dynamic JS or CSS request will be considered a
1727
+ failure. If not set, no timeout will be enforced.
1728
+
1729
+ @property {Number} timeout
1730
+ **/
1731
+
1732
+ /**
1733
+ A hash of module definitions to add to the list of available YUI modules. These
1734
+ modules can then be dynamically loaded via the `use()` method.
1735
+
1736
+ This is a hash in which keys are module names and values are objects containing
1737
+ module metadata.
1738
+
1739
+ See `Loader.addModule()` for the supported module metadata fields. Also see
1740
+ `groups`, which provides a way to configure the base and combo spec for a set of
1741
+ modules.
1742
+
1743
+ @example
1744
+
1745
+ modules: {
1746
+ mymod1: {
1747
+ requires: ['node'],
1748
+ fullpath: '/mymod1/mymod1.js'
1749
+ },
1750
+
1751
+ mymod2: {
1752
+ requires: ['mymod1'],
1753
+ fullpath: '/mymod2/mymod2.js'
1754
+ },
1755
+
1756
+ mymod3: '/js/mymod3.js',
1757
+ mycssmod: '/css/mycssmod.css'
1758
+ }
1759
+
1760
+ @property {Object} modules
1761
+ **/
1762
+
1763
+ /**
1764
+ Aliases are dynamic groups of modules that can be used as shortcuts.
1765
+
1766
+ @example
1767
+
1768
+ YUI({
1769
+ aliases: {
1770
+ davglass: [ 'node', 'yql', 'dd' ],
1771
+ mine: [ 'davglass', 'autocomplete']
1772
+ }
1773
+ }).use('mine', function (Y) {
1774
+ // Node, YQL, DD & AutoComplete available here.
1775
+ });
1776
+
1777
+ @property {Object} aliases
1778
+ **/
1779
+
1780
+ /**
1781
+ A hash of module group definitions.
1782
+
1783
+ For each group you can specify a list of modules and the base path and
1784
+ combo spec to use when dynamically loading the modules.
1785
+
1786
+ @example
1787
+
1788
+ groups: {
1789
+ yui2: {
1790
+ // specify whether or not this group has a combo service
1791
+ combine: true,
1792
+
1793
+ // The comboSeperator to use with this group's combo handler
1794
+ comboSep: ';',
1795
+
1796
+ // The maxURLLength for this server
1797
+ maxURLLength: 500,
1798
+
1799
+ // the base path for non-combo paths
1800
+ base: 'http://yui.yahooapis.com/2.8.0r4/build/',
1801
+
1802
+ // the path to the combo service
1803
+ comboBase: 'http://yui.yahooapis.com/combo?',
1804
+
1805
+ // a fragment to prepend to the path attribute when
1806
+ // when building combo urls
1807
+ root: '2.8.0r4/build/',
1808
+
1809
+ // the module definitions
1810
+ modules: {
1811
+ yui2_yde: {
1812
+ path: "yahoo-dom-event/yahoo-dom-event.js"
1813
+ },
1814
+ yui2_anim: {
1815
+ path: "animation/animation.js",
1816
+ requires: ['yui2_yde']
1817
+ }
1818
+ }
1819
+ }
1820
+ }
1821
+
1822
+ @property {Object} groups
1823
+ **/
1824
+
1825
+ /**
1826
+ Path to the Loader JS file, relative to the `base` path.
1827
+
1828
+ This is used to dynamically bootstrap the Loader when it's needed and isn't yet
1829
+ available.
1830
+
1831
+ @property {String} loaderPath
1832
+ @default "loader/loader-min.js"
1833
+ **/
1834
+
1835
+ /**
1836
+ If `true`, YUI will attempt to load CSS dependencies and skins. Set this to
1837
+ `false` to prevent YUI from loading any CSS, or set it to the string `"force"`
1838
+ to force CSS dependencies to be loaded even if their associated JS modules are
1839
+ already loaded.
1840
+
1841
+ @property {Boolean|String} fetchCSS
1842
+ @default true
1843
+ **/
1844
+
1845
+ /**
1846
+ Default gallery version used to build gallery module urls.
1847
+
1848
+ @property {String} gallery
1849
+ @since 3.1.0
1850
+ **/
1851
+
1852
+ /**
1853
+ Default YUI 2 version used to build YUI 2 module urls.
1854
+
1855
+ This is used for intrinsic YUI 2 support via the 2in3 project. Also see the
1856
+ `2in3` config for pulling different revisions of the wrapped YUI 2 modules.
1857
+
1858
+ @property {String} yui2
1859
+ @default "2.9.0"
1860
+ @since 3.1.0
1861
+ **/
1862
+
1863
+ /**
1864
+ Revision number of YUI 2in3 modules that should be used when loading YUI 2in3.
1865
+
1866
+ @property {String} 2in3
1867
+ @default "4"
1868
+ @since 3.1.0
1869
+ **/
1870
+
1871
+ /**
1872
+ Alternate console log function that should be used in environments without a
1873
+ supported native console. This function is executed with the YUI instance as its
1874
+ `this` object.
1875
+
1876
+ @property {Function} logFn
1877
+ @since 3.1.0
1878
+ **/
1879
+
1880
+ /**
1881
+ The minimum log level to log messages for. Log levels are defined
1882
+ incrementally. Messages greater than or equal to the level specified will
1883
+ be shown. All others will be discarded. The order of log levels in
1884
+ increasing priority is:
1885
+
1886
+ debug
1887
+ info
1888
+ warn
1889
+ error
1890
+
1891
+ @property {String} logLevel
1892
+ @default 'debug'
1893
+ @since 3.10.0
1894
+ **/
1895
+
1896
+ /**
1897
+ Callback to execute when `Y.error()` is called. It receives the error message
1898
+ and a JavaScript error object if one was provided.
1899
+
1900
+ This function is executed with the YUI instance as its `this` object.
1901
+
1902
+ Returning `true` from this function will prevent an exception from being thrown.
1903
+
1904
+ @property {Function} errorFn
1905
+ @param {String} errorFn.msg Error message
1906
+ @param {Object} [errorFn.err] Error object (if one was provided).
1907
+ @since 3.2.0
1908
+ **/
1909
+
1910
+ /**
1911
+ A callback to execute when Loader fails to load one or more resources.
1912
+
1913
+ This could be because of a script load failure. It could also be because a
1914
+ module fails to register itself when the `requireRegistration` config is `true`.
1915
+
1916
+ If this function is defined, the `use()` callback will only be called when the
1917
+ loader succeeds. Otherwise, `use()` will always executes unless there was a
1918
+ JavaScript error when attaching a module.
1919
+
1920
+ @property {Function} loadErrorFn
1921
+ @since 3.3.0
1922
+ **/
1923
+
1924
+ /**
1925
+ If `true`, Loader will expect all loaded scripts to be first-class YUI modules
1926
+ that register themselves with the YUI global, and will trigger a failure if a
1927
+ loaded script does not register a YUI module.
1928
+
1929
+ @property {Boolean} requireRegistration
1930
+ @default false
1931
+ @since 3.3.0
1932
+ **/
1933
+
1934
+ /**
1935
+ Cache serviced use() requests.
1936
+
1937
+ @property {Boolean} cacheUse
1938
+ @default true
1939
+ @since 3.3.0
1940
+ @deprecated No longer used.
1941
+ **/
1942
+
1943
+ /**
1944
+ Whether or not YUI should use native ES5 functionality when available for
1945
+ features like `Y.Array.each()`, `Y.Object()`, etc.
1946
+
1947
+ When `false`, YUI will always use its own fallback implementations instead of
1948
+ relying on ES5 functionality, even when ES5 functionality is available.
1949
+
1950
+ @property {Boolean} useNativeES5
1951
+ @default true
1952
+ @since 3.5.0
1953
+ **/
1954
+
1955
+ /**
1956
+ * Leverage native JSON stringify if the browser has a native
1957
+ * implementation. In general, this is a good idea. See the Known Issues
1958
+ * section in the JSON user guide for caveats. The default value is true
1959
+ * for browsers with native JSON support.
1960
+ *
1961
+ * @property useNativeJSONStringify
1962
+ * @type Boolean
1963
+ * @default true
1964
+ * @since 3.8.0
1965
+ */
1966
+
1967
+ /**
1968
+ * Leverage native JSON parse if the browser has a native implementation.
1969
+ * In general, this is a good idea. See the Known Issues section in the
1970
+ * JSON user guide for caveats. The default value is true for browsers with
1971
+ * native JSON support.
1972
+ *
1973
+ * @property useNativeJSONParse
1974
+ * @type Boolean
1975
+ * @default true
1976
+ * @since 3.8.0
1977
+ */
1978
+
1979
+ /**
1980
+ Delay the `use` callback until a specific event has passed (`load`, `domready`, `contentready` or `available`)
1981
+
1982
+ @property {Object|String} delayUntil
1983
+ @since 3.6.0
1984
+ @example
1985
+
1986
+ You can use `load` or `domready` strings by default:
1987
+
1988
+ YUI({
1989
+ delayUntil: 'domready'
1990
+ }, function (Y) {
1991
+ // This will not execute until 'domeready' occurs.
1992
+ });
1993
+
1994
+ Or you can delay until a node is available (with `available` or `contentready`):
1995
+
1996
+ YUI({
1997
+ delayUntil: {
1998
+ event: 'available',
1999
+ args : '#foo'
2000
+ }
2001
+ }, function (Y) {
2002
+ // This will not execute until a node matching the selector "#foo" is
2003
+ // available in the DOM.
2004
+ });
2005
+
2006
+ **/
2007
+ YUI.add('yui-base', function (Y, NAME) {
2008
+
2009
+ /*
2010
+ * YUI stub
2011
+ * @module yui
2012
+ * @submodule yui-base
2013
+ */
2014
+ /**
2015
+ * The YUI module contains the components required for building the YUI
2016
+ * seed file. This includes the script loading mechanism, a simple queue,
2017
+ * and the core utilities for the library.
2018
+ * @module yui
2019
+ * @submodule yui-base
2020
+ */
2021
+
2022
+ /**
2023
+ * Provides core language utilites and extensions used throughout YUI.
2024
+ *
2025
+ * @class Lang
2026
+ * @static
2027
+ */
2028
+
2029
+ var L = Y.Lang || (Y.Lang = {}),
2030
+
2031
+ STRING_PROTO = String.prototype,
2032
+ TOSTRING = Object.prototype.toString,
2033
+
2034
+ TYPES = {
2035
+ 'undefined' : 'undefined',
2036
+ 'number' : 'number',
2037
+ 'boolean' : 'boolean',
2038
+ 'string' : 'string',
2039
+ '[object Function]': 'function',
2040
+ '[object RegExp]' : 'regexp',
2041
+ '[object Array]' : 'array',
2042
+ '[object Date]' : 'date',
2043
+ '[object Error]' : 'error'
2044
+ },
2045
+
2046
+ SUBREGEX = /\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g,
2047
+
2048
+ WHITESPACE = "\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF",
2049
+ WHITESPACE_CLASS = "[\x09-\x0D\x20\xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+",
2050
+ TRIM_LEFT_REGEX = new RegExp("^" + WHITESPACE_CLASS),
2051
+ TRIM_RIGHT_REGEX = new RegExp(WHITESPACE_CLASS + "$"),
2052
+ TRIMREGEX = new RegExp(TRIM_LEFT_REGEX.source + "|" + TRIM_RIGHT_REGEX.source, "g"),
2053
+
2054
+ NATIVE_FN_REGEX = /\{\s*\[(?:native code|function)\]\s*\}/i;
2055
+
2056
+ // -- Protected Methods --------------------------------------------------------
2057
+
2058
+ /**
2059
+ Returns `true` if the given function appears to be implemented in native code,
2060
+ `false` otherwise. Will always return `false` -- even in ES5-capable browsers --
2061
+ if the `useNativeES5` YUI config option is set to `false`.
2062
+
2063
+ This isn't guaranteed to be 100% accurate and won't work for anything other than
2064
+ functions, but it can be useful for determining whether a function like
2065
+ `Array.prototype.forEach` is native or a JS shim provided by another library.
2066
+
2067
+ There's a great article by @kangax discussing certain flaws with this technique:
2068
+ <http://perfectionkills.com/detecting-built-in-host-methods/>
2069
+
2070
+ While his points are valid, it's still possible to benefit from this function
2071
+ as long as it's used carefully and sparingly, and in such a way that false
2072
+ negatives have minimal consequences. It's used internally to avoid using
2073
+ potentially broken non-native ES5 shims that have been added to the page by
2074
+ other libraries.
2075
+
2076
+ @method _isNative
2077
+ @param {Function} fn Function to test.
2078
+ @return {Boolean} `true` if _fn_ appears to be native, `false` otherwise.
2079
+ @static
2080
+ @protected
2081
+ @since 3.5.0
2082
+ **/
2083
+ L._isNative = function (fn) {
2084
+ return !!(Y.config.useNativeES5 && fn && NATIVE_FN_REGEX.test(fn));
2085
+ };
2086
+
2087
+ // -- Public Methods -----------------------------------------------------------
2088
+
2089
+ /**
2090
+ * Determines whether or not the provided item is an array.
2091
+ *
2092
+ * Returns `false` for array-like collections such as the function `arguments`
2093
+ * collection or `HTMLElement` collections. Use `Y.Array.test()` if you want to
2094
+ * test for an array-like collection.
2095
+ *
2096
+ * @method isArray
2097
+ * @param o The object to test.
2098
+ * @return {boolean} true if o is an array.
2099
+ * @static
2100
+ */
2101
+ L.isArray = L._isNative(Array.isArray) ? Array.isArray : function (o) {
2102
+ return L.type(o) === 'array';
2103
+ };
2104
+
2105
+ /**
2106
+ * Determines whether or not the provided item is a boolean.
2107
+ * @method isBoolean
2108
+ * @static
2109
+ * @param o The object to test.
2110
+ * @return {boolean} true if o is a boolean.
2111
+ */
2112
+ L.isBoolean = function(o) {
2113
+ return typeof o === 'boolean';
2114
+ };
2115
+
2116
+ /**
2117
+ * Determines whether or not the supplied item is a date instance.
2118
+ * @method isDate
2119
+ * @static
2120
+ * @param o The object to test.
2121
+ * @return {boolean} true if o is a date.
2122
+ */
2123
+ L.isDate = function(o) {
2124
+ return L.type(o) === 'date' && o.toString() !== 'Invalid Date' && !isNaN(o);
2125
+ };
2126
+
2127
+ /**
2128
+ * <p>
2129
+ * Determines whether or not the provided item is a function.
2130
+ * Note: Internet Explorer thinks certain functions are objects:
2131
+ * </p>
2132
+ *
2133
+ * <pre>
2134
+ * var obj = document.createElement("object");
2135
+ * Y.Lang.isFunction(obj.getAttribute) // reports false in IE
2136
+ * &nbsp;
2137
+ * var input = document.createElement("input"); // append to body
2138
+ * Y.Lang.isFunction(input.focus) // reports false in IE
2139
+ * </pre>
2140
+ *
2141
+ * <p>
2142
+ * You will have to implement additional tests if these functions
2143
+ * matter to you.
2144
+ * </p>
2145
+ *
2146
+ * @method isFunction
2147
+ * @static
2148
+ * @param o The object to test.
2149
+ * @return {boolean} true if o is a function.
2150
+ */
2151
+ L.isFunction = function(o) {
2152
+ return L.type(o) === 'function';
2153
+ };
2154
+
2155
+ /**
2156
+ * Determines whether or not the provided item is null.
2157
+ * @method isNull
2158
+ * @static
2159
+ * @param o The object to test.
2160
+ * @return {boolean} true if o is null.
2161
+ */
2162
+ L.isNull = function(o) {
2163
+ return o === null;
2164
+ };
2165
+
2166
+ /**
2167
+ * Determines whether or not the provided item is a legal number.
2168
+ * @method isNumber
2169
+ * @static
2170
+ * @param o The object to test.
2171
+ * @return {boolean} true if o is a number.
2172
+ */
2173
+ L.isNumber = function(o) {
2174
+ return typeof o === 'number' && isFinite(o);
2175
+ };
2176
+
2177
+ /**
2178
+ * Determines whether or not the provided item is of type object
2179
+ * or function. Note that arrays are also objects, so
2180
+ * <code>Y.Lang.isObject([]) === true</code>.
2181
+ * @method isObject
2182
+ * @static
2183
+ * @param o The object to test.
2184
+ * @param failfn {boolean} fail if the input is a function.
2185
+ * @return {boolean} true if o is an object.
2186
+ * @see isPlainObject
2187
+ */
2188
+ L.isObject = function(o, failfn) {
2189
+ var t = typeof o;
2190
+ return (o && (t === 'object' ||
2191
+ (!failfn && (t === 'function' || L.isFunction(o))))) || false;
2192
+ };
2193
+
2194
+ /**
2195
+ * Determines whether or not the provided value is a regexp.
2196
+ * @method isRegExp
2197
+ * @static
2198
+ * @param value The value or object to test.
2199
+ * @return {boolean} true if value is a regexp.
2200
+ */
2201
+ L.isRegExp = function(value) {
2202
+ return L.type(value) === 'regexp';
2203
+ };
2204
+
2205
+ /**
2206
+ * Determines whether or not the provided item is a string.
2207
+ * @method isString
2208
+ * @static
2209
+ * @param o The object to test.
2210
+ * @return {boolean} true if o is a string.
2211
+ */
2212
+ L.isString = function(o) {
2213
+ return typeof o === 'string';
2214
+ };
2215
+
2216
+ /**
2217
+ * Determines whether or not the provided item is undefined.
2218
+ * @method isUndefined
2219
+ * @static
2220
+ * @param o The object to test.
2221
+ * @return {boolean} true if o is undefined.
2222
+ */
2223
+ L.isUndefined = function(o) {
2224
+ return typeof o === 'undefined';
2225
+ };
2226
+
2227
+ /**
2228
+ * A convenience method for detecting a legitimate non-null value.
2229
+ * Returns false for null/undefined/NaN, true for other values,
2230
+ * including 0/false/''
2231
+ * @method isValue
2232
+ * @static
2233
+ * @param o The item to test.
2234
+ * @return {boolean} true if it is not null/undefined/NaN || false.
2235
+ */
2236
+ L.isValue = function(o) {
2237
+ var t = L.type(o);
2238
+
2239
+ switch (t) {
2240
+ case 'number':
2241
+ return isFinite(o);
2242
+
2243
+ case 'null': // fallthru
2244
+ case 'undefined':
2245
+ return false;
2246
+
2247
+ default:
2248
+ return !!t;
2249
+ }
2250
+ };
2251
+
2252
+ /**
2253
+ * Returns the current time in milliseconds.
2254
+ *
2255
+ * @method now
2256
+ * @return {Number} Current time in milliseconds.
2257
+ * @static
2258
+ * @since 3.3.0
2259
+ */
2260
+ L.now = Date.now || function () {
2261
+ return new Date().getTime();
2262
+ };
2263
+
2264
+ /**
2265
+ * Performs `{placeholder}` substitution on a string. The object passed as the
2266
+ * second parameter provides values to replace the `{placeholder}`s.
2267
+ * `{placeholder}` token names must match property names of the object. For example,
2268
+ *
2269
+ *`var greeting = Y.Lang.sub("Hello, {who}!", { who: "World" });`
2270
+ *
2271
+ * `{placeholder}` tokens that are undefined on the object map will be left
2272
+ * in tact (leaving unsightly `{placeholder}`'s in the output string).
2273
+ *
2274
+ * @method sub
2275
+ * @param {string} s String to be modified.
2276
+ * @param {object} o Object containing replacement values.
2277
+ * @return {string} the substitute result.
2278
+ * @static
2279
+ * @since 3.2.0
2280
+ */
2281
+ L.sub = function(s, o) {
2282
+
2283
+ /**
2284
+ Finds the value of `key` in given object.
2285
+ If the key has a 'dot' notation e.g. 'foo.bar.baz', the function will
2286
+ try to resolve this path if it doesn't exist as a property
2287
+ @example
2288
+ value({ 'a.b': 1, a: { b: 2 } }, 'a.b'); // 1
2289
+ value({ a: { b: 2 } } , 'a.b'); // 2
2290
+ @param {Object} obj A key/value pairs object
2291
+ @param {String} key
2292
+ @return {Any}
2293
+ @private
2294
+ **/
2295
+ function value(obj, key) {
2296
+
2297
+ var subkey;
2298
+
2299
+ if ( typeof obj[key] !== 'undefined' ) {
2300
+ return obj[key];
2301
+ }
2302
+
2303
+ key = key.split('.'); // given 'a.b.c'
2304
+ subkey = key.slice(1).join('.'); // 'b.c'
2305
+ key = key[0]; // 'a'
2306
+
2307
+ // special case for null as typeof returns object and we don't want that.
2308
+ if ( subkey && typeof obj[key] === 'object' && obj[key] !== null ) {
2309
+ return value(obj[key], subkey);
2310
+ }
2311
+ }
2312
+
2313
+ return s.replace ? s.replace(SUBREGEX, function (match, key) {
2314
+ var val = key.indexOf('.')>-1 ? value(o, key) : o[key];
2315
+ return typeof val === 'undefined' ? match : val;
2316
+ }) : s;
2317
+ };
2318
+
2319
+ /**
2320
+ * Returns a string without any leading or trailing whitespace. If
2321
+ * the input is not a string, the input will be returned untouched.
2322
+ * @method trim
2323
+ * @static
2324
+ * @param s {string} the string to trim.
2325
+ * @return {string} the trimmed string.
2326
+ */
2327
+ L.trim = L._isNative(STRING_PROTO.trim) && !WHITESPACE.trim() ? function(s) {
2328
+ return s && s.trim ? s.trim() : s;
2329
+ } : function (s) {
2330
+ try {
2331
+ return s.replace(TRIMREGEX, '');
2332
+ } catch (e) {
2333
+ return s;
2334
+ }
2335
+ };
2336
+
2337
+ /**
2338
+ * Returns a string without any leading whitespace.
2339
+ * @method trimLeft
2340
+ * @static
2341
+ * @param s {string} the string to trim.
2342
+ * @return {string} the trimmed string.
2343
+ */
2344
+ L.trimLeft = L._isNative(STRING_PROTO.trimLeft) && !WHITESPACE.trimLeft() ? function (s) {
2345
+ return s.trimLeft();
2346
+ } : function (s) {
2347
+ return s.replace(TRIM_LEFT_REGEX, '');
2348
+ };
2349
+
2350
+ /**
2351
+ * Returns a string without any trailing whitespace.
2352
+ * @method trimRight
2353
+ * @static
2354
+ * @param s {string} the string to trim.
2355
+ * @return {string} the trimmed string.
2356
+ */
2357
+ L.trimRight = L._isNative(STRING_PROTO.trimRight) && !WHITESPACE.trimRight() ? function (s) {
2358
+ return s.trimRight();
2359
+ } : function (s) {
2360
+ return s.replace(TRIM_RIGHT_REGEX, '');
2361
+ };
2362
+
2363
+ /**
2364
+ Returns one of the following strings, representing the type of the item passed
2365
+ in:
2366
+
2367
+ * "array"
2368
+ * "boolean"
2369
+ * "date"
2370
+ * "error"
2371
+ * "function"
2372
+ * "null"
2373
+ * "number"
2374
+ * "object"
2375
+ * "regexp"
2376
+ * "string"
2377
+ * "undefined"
2378
+
2379
+ Known issues:
2380
+
2381
+ * `typeof HTMLElementCollection` returns function in Safari, but
2382
+ `Y.Lang.type()` reports "object", which could be a good thing --
2383
+ but it actually caused the logic in <code>Y.Lang.isObject</code> to fail.
2384
+
2385
+ @method type
2386
+ @param o the item to test.
2387
+ @return {string} the detected type.
2388
+ @static
2389
+ **/
2390
+ L.type = function(o) {
2391
+ return TYPES[typeof o] || TYPES[TOSTRING.call(o)] || (o ? 'object' : 'null');
2392
+ };
2393
+ /**
2394
+ @module yui
2395
+ @submodule yui-base
2396
+ */
2397
+
2398
+ var Lang = Y.Lang,
2399
+ Native = Array.prototype,
2400
+
2401
+ hasOwn = Object.prototype.hasOwnProperty;
2402
+
2403
+ /**
2404
+ Provides utility methods for working with arrays. Additional array helpers can
2405
+ be found in the `collection` and `array-extras` modules.
2406
+
2407
+ `Y.Array(thing)` returns a native array created from _thing_. Depending on
2408
+ _thing_'s type, one of the following will happen:
2409
+
2410
+ * Arrays are returned unmodified unless a non-zero _startIndex_ is
2411
+ specified.
2412
+ * Array-like collections (see `Array.test()`) are converted to arrays.
2413
+ * For everything else, a new array is created with _thing_ as the sole
2414
+ item.
2415
+
2416
+ Note: elements that are also collections, such as `<form>` and `<select>`
2417
+ elements, are not automatically converted to arrays. To force a conversion,
2418
+ pass `true` as the value of the _force_ parameter.
2419
+
2420
+ @class Array
2421
+ @constructor
2422
+ @param {Any} thing The thing to arrayify.
2423
+ @param {Number} [startIndex=0] If non-zero and _thing_ is an array or array-like
2424
+ collection, a subset of items starting at the specified index will be
2425
+ returned.
2426
+ @param {Boolean} [force=false] If `true`, _thing_ will be treated as an
2427
+ array-like collection no matter what.
2428
+ @return {Array} A native array created from _thing_, according to the rules
2429
+ described above.
2430
+ **/
2431
+ function YArray(thing, startIndex, force) {
2432
+ var len, result;
2433
+
2434
+ /*jshint expr: true*/
2435
+ startIndex || (startIndex = 0);
2436
+
2437
+ if (force || YArray.test(thing)) {
2438
+ // IE throws when trying to slice HTMLElement collections.
2439
+ try {
2440
+ return Native.slice.call(thing, startIndex);
2441
+ } catch (ex) {
2442
+ result = [];
2443
+
2444
+ for (len = thing.length; startIndex < len; ++startIndex) {
2445
+ result.push(thing[startIndex]);
2446
+ }
2447
+
2448
+ return result;
2449
+ }
2450
+ }
2451
+
2452
+ return [thing];
2453
+ }
2454
+
2455
+ Y.Array = YArray;
2456
+
2457
+ /**
2458
+ Dedupes an array of strings, returning an array that's guaranteed to contain
2459
+ only one copy of a given string.
2460
+
2461
+ This method differs from `Array.unique()` in that it's optimized for use only
2462
+ with arrays consisting entirely of strings or entirely of numbers, whereas
2463
+ `unique` may be used with other value types (but is slower).
2464
+
2465
+ Using `dedupe()` with values other than strings or numbers, or with arrays
2466
+ containing a mix of strings and numbers, may result in unexpected behavior.
2467
+
2468
+ @method dedupe
2469
+ @param {String[]|Number[]} array Array of strings or numbers to dedupe.
2470
+ @return {Array} Copy of _array_ containing no duplicate values.
2471
+ @static
2472
+ @since 3.4.0
2473
+ **/
2474
+ YArray.dedupe = Lang._isNative(Object.create) ? function (array) {
2475
+ var hash = Object.create(null),
2476
+ results = [],
2477
+ i, item, len;
2478
+
2479
+ for (i = 0, len = array.length; i < len; ++i) {
2480
+ item = array[i];
2481
+
2482
+ if (!hash[item]) {
2483
+ hash[item] = 1;
2484
+ results.push(item);
2485
+ }
2486
+ }
2487
+
2488
+ return results;
2489
+ } : function (array) {
2490
+ var hash = {},
2491
+ results = [],
2492
+ i, item, len;
2493
+
2494
+ for (i = 0, len = array.length; i < len; ++i) {
2495
+ item = array[i];
2496
+
2497
+ if (!hasOwn.call(hash, item)) {
2498
+ hash[item] = 1;
2499
+ results.push(item);
2500
+ }
2501
+ }
2502
+
2503
+ return results;
2504
+ };
2505
+
2506
+ /**
2507
+ Executes the supplied function on each item in the array. This method wraps
2508
+ the native ES5 `Array.forEach()` method if available.
2509
+
2510
+ @method each
2511
+ @param {Array} array Array to iterate.
2512
+ @param {Function} fn Function to execute on each item in the array. The function
2513
+ will receive the following arguments:
2514
+ @param {Any} fn.item Current array item.
2515
+ @param {Number} fn.index Current array index.
2516
+ @param {Array} fn.array Array being iterated.
2517
+ @param {Object} [thisObj] `this` object to use when calling _fn_.
2518
+ @return {YUI} The YUI instance.
2519
+ @static
2520
+ **/
2521
+ YArray.each = YArray.forEach = Lang._isNative(Native.forEach) ? function (array, fn, thisObj) {
2522
+ Native.forEach.call(array || [], fn, thisObj || Y);
2523
+ return Y;
2524
+ } : function (array, fn, thisObj) {
2525
+ for (var i = 0, len = (array && array.length) || 0; i < len; ++i) {
2526
+ if (i in array) {
2527
+ fn.call(thisObj || Y, array[i], i, array);
2528
+ }
2529
+ }
2530
+
2531
+ return Y;
2532
+ };
2533
+
2534
+ /**
2535
+ Alias for `each()`.
2536
+
2537
+ @method forEach
2538
+ @static
2539
+ **/
2540
+
2541
+ /**
2542
+ Returns an object using the first array as keys and the second as values. If
2543
+ the second array is not provided, or if it doesn't contain the same number of
2544
+ values as the first array, then `true` will be used in place of the missing
2545
+ values.
2546
+
2547
+ @example
2548
+
2549
+ Y.Array.hash(['a', 'b', 'c'], ['foo', 'bar']);
2550
+ // => {a: 'foo', b: 'bar', c: true}
2551
+
2552
+ @method hash
2553
+ @param {String[]} keys Array of strings to use as keys.
2554
+ @param {Array} [values] Array to use as values.
2555
+ @return {Object} Hash using the first array as keys and the second as values.
2556
+ @static
2557
+ **/
2558
+ YArray.hash = function (keys, values) {
2559
+ var hash = {},
2560
+ vlen = (values && values.length) || 0,
2561
+ i, len;
2562
+
2563
+ for (i = 0, len = keys.length; i < len; ++i) {
2564
+ if (i in keys) {
2565
+ hash[keys[i]] = vlen > i && i in values ? values[i] : true;
2566
+ }
2567
+ }
2568
+
2569
+ return hash;
2570
+ };
2571
+
2572
+ /**
2573
+ Returns the index of the first item in the array that's equal (using a strict
2574
+ equality check) to the specified _value_, or `-1` if the value isn't found.
2575
+
2576
+ This method wraps the native ES5 `Array.indexOf()` method if available.
2577
+
2578
+ @method indexOf
2579
+ @param {Array} array Array to search.
2580
+ @param {Any} value Value to search for.
2581
+ @param {Number} [from=0] The index at which to begin the search.
2582
+ @return {Number} Index of the item strictly equal to _value_, or `-1` if not
2583
+ found.
2584
+ @static
2585
+ **/
2586
+ YArray.indexOf = Lang._isNative(Native.indexOf) ? function (array, value, from) {
2587
+ return Native.indexOf.call(array, value, from);
2588
+ } : function (array, value, from) {
2589
+ // http://es5.github.com/#x15.4.4.14
2590
+ var len = array.length;
2591
+
2592
+ from = +from || 0;
2593
+ from = (from > 0 || -1) * Math.floor(Math.abs(from));
2594
+
2595
+ if (from < 0) {
2596
+ from += len;
2597
+
2598
+ if (from < 0) {
2599
+ from = 0;
2600
+ }
2601
+ }
2602
+
2603
+ for (; from < len; ++from) {
2604
+ if (from in array && array[from] === value) {
2605
+ return from;
2606
+ }
2607
+ }
2608
+
2609
+ return -1;
2610
+ };
2611
+
2612
+ /**
2613
+ Numeric sort convenience function.
2614
+
2615
+ The native `Array.prototype.sort()` function converts values to strings and
2616
+ sorts them in lexicographic order, which is unsuitable for sorting numeric
2617
+ values. Provide `Array.numericSort` as a custom sort function when you want
2618
+ to sort values in numeric order.
2619
+
2620
+ @example
2621
+
2622
+ [42, 23, 8, 16, 4, 15].sort(Y.Array.numericSort);
2623
+ // => [4, 8, 15, 16, 23, 42]
2624
+
2625
+ @method numericSort
2626
+ @param {Number} a First value to compare.
2627
+ @param {Number} b Second value to compare.
2628
+ @return {Number} Difference between _a_ and _b_.
2629
+ @static
2630
+ **/
2631
+ YArray.numericSort = function (a, b) {
2632
+ return a - b;
2633
+ };
2634
+
2635
+ /**
2636
+ Executes the supplied function on each item in the array. Returning a truthy
2637
+ value from the function will stop the processing of remaining items.
2638
+
2639
+ @method some
2640
+ @param {Array} array Array to iterate over.
2641
+ @param {Function} fn Function to execute on each item. The function will receive
2642
+ the following arguments:
2643
+ @param {Any} fn.value Current array item.
2644
+ @param {Number} fn.index Current array index.
2645
+ @param {Array} fn.array Array being iterated over.
2646
+ @param {Object} [thisObj] `this` object to use when calling _fn_.
2647
+ @return {Boolean} `true` if the function returns a truthy value on any of the
2648
+ items in the array; `false` otherwise.
2649
+ @static
2650
+ **/
2651
+ YArray.some = Lang._isNative(Native.some) ? function (array, fn, thisObj) {
2652
+ return Native.some.call(array, fn, thisObj);
2653
+ } : function (array, fn, thisObj) {
2654
+ for (var i = 0, len = array.length; i < len; ++i) {
2655
+ if (i in array && fn.call(thisObj, array[i], i, array)) {
2656
+ return true;
2657
+ }
2658
+ }
2659
+
2660
+ return false;
2661
+ };
2662
+
2663
+ /**
2664
+ Evaluates _obj_ to determine if it's an array, an array-like collection, or
2665
+ something else. This is useful when working with the function `arguments`
2666
+ collection and `HTMLElement` collections.
2667
+
2668
+ Note: This implementation doesn't consider elements that are also
2669
+ collections, such as `<form>` and `<select>`, to be array-like.
2670
+
2671
+ @method test
2672
+ @param {Object} obj Object to test.
2673
+ @return {Number} A number indicating the results of the test:
2674
+
2675
+ * 0: Neither an array nor an array-like collection.
2676
+ * 1: Real array.
2677
+ * 2: Array-like collection.
2678
+
2679
+ @static
2680
+ **/
2681
+ YArray.test = function (obj) {
2682
+ var result = 0;
2683
+
2684
+ if (Lang.isArray(obj)) {
2685
+ result = 1;
2686
+ } else if (Lang.isObject(obj)) {
2687
+ try {
2688
+ // indexed, but no tagName (element) or scrollTo/document (window. From DOM.isWindow test which we can't use here),
2689
+ // or functions without apply/call (Safari
2690
+ // HTMLElementCollection bug).
2691
+ if ('length' in obj && !obj.tagName && !(obj.scrollTo && obj.document) && !obj.apply) {
2692
+ result = 2;
2693
+ }
2694
+ } catch (ex) {}
2695
+ }
2696
+
2697
+ return result;
2698
+ };
2699
+ /**
2700
+ * The YUI module contains the components required for building the YUI
2701
+ * seed file. This includes the script loading mechanism, a simple queue,
2702
+ * and the core utilities for the library.
2703
+ * @module yui
2704
+ * @submodule yui-base
2705
+ */
2706
+
2707
+ /**
2708
+ * A simple FIFO queue. Items are added to the Queue with add(1..n items) and
2709
+ * removed using next().
2710
+ *
2711
+ * @class Queue
2712
+ * @constructor
2713
+ * @param {MIXED} item* 0..n items to seed the queue.
2714
+ */
2715
+ function Queue() {
2716
+ this._init();
2717
+ this.add.apply(this, arguments);
2718
+ }
2719
+
2720
+ Queue.prototype = {
2721
+ /**
2722
+ * Initialize the queue
2723
+ *
2724
+ * @method _init
2725
+ * @protected
2726
+ */
2727
+ _init: function() {
2728
+ /**
2729
+ * The collection of enqueued items
2730
+ *
2731
+ * @property _q
2732
+ * @type Array
2733
+ * @protected
2734
+ */
2735
+ this._q = [];
2736
+ },
2737
+
2738
+ /**
2739
+ * Get the next item in the queue. FIFO support
2740
+ *
2741
+ * @method next
2742
+ * @return {MIXED} the next item in the queue.
2743
+ */
2744
+ next: function() {
2745
+ return this._q.shift();
2746
+ },
2747
+
2748
+ /**
2749
+ * Get the last in the queue. LIFO support.
2750
+ *
2751
+ * @method last
2752
+ * @return {MIXED} the last item in the queue.
2753
+ */
2754
+ last: function() {
2755
+ return this._q.pop();
2756
+ },
2757
+
2758
+ /**
2759
+ * Add 0..n items to the end of the queue.
2760
+ *
2761
+ * @method add
2762
+ * @param {MIXED} item* 0..n items.
2763
+ * @return {object} this queue.
2764
+ */
2765
+ add: function() {
2766
+ this._q.push.apply(this._q, arguments);
2767
+
2768
+ return this;
2769
+ },
2770
+
2771
+ /**
2772
+ * Returns the current number of queued items.
2773
+ *
2774
+ * @method size
2775
+ * @return {Number} The size.
2776
+ */
2777
+ size: function() {
2778
+ return this._q.length;
2779
+ }
2780
+ };
2781
+
2782
+ Y.Queue = Queue;
2783
+
2784
+ YUI.Env._loaderQueue = YUI.Env._loaderQueue || new Queue();
2785
+
2786
+ /**
2787
+ The YUI module contains the components required for building the YUI seed file.
2788
+ This includes the script loading mechanism, a simple queue, and the core
2789
+ utilities for the library.
2790
+
2791
+ @module yui
2792
+ @submodule yui-base
2793
+ **/
2794
+
2795
+ var CACHED_DELIMITER = '__',
2796
+
2797
+ hasOwn = Object.prototype.hasOwnProperty,
2798
+ isObject = Y.Lang.isObject;
2799
+
2800
+ /**
2801
+ Returns a wrapper for a function which caches the return value of that function,
2802
+ keyed off of the combined string representation of the argument values provided
2803
+ when the wrapper is called.
2804
+
2805
+ Calling this function again with the same arguments will return the cached value
2806
+ rather than executing the wrapped function.
2807
+
2808
+ Note that since the cache is keyed off of the string representation of arguments
2809
+ passed to the wrapper function, arguments that aren't strings and don't provide
2810
+ a meaningful `toString()` method may result in unexpected caching behavior. For
2811
+ example, the objects `{}` and `{foo: 'bar'}` would both be converted to the
2812
+ string `[object Object]` when used as a cache key.
2813
+
2814
+ @method cached
2815
+ @param {Function} source The function to memoize.
2816
+ @param {Object} [cache={}] Object in which to store cached values. You may seed
2817
+ this object with pre-existing cached values if desired.
2818
+ @param {any} [refetch] If supplied, this value is compared with the cached value
2819
+ using a `==` comparison. If the values are equal, the wrapped function is
2820
+ executed again even though a cached value exists.
2821
+ @return {Function} Wrapped function.
2822
+ @for YUI
2823
+ **/
2824
+ Y.cached = function (source, cache, refetch) {
2825
+ /*jshint expr: true*/
2826
+ cache || (cache = {});
2827
+
2828
+ return function (arg) {
2829
+ var key = arguments.length > 1 ?
2830
+ Array.prototype.join.call(arguments, CACHED_DELIMITER) :
2831
+ String(arg);
2832
+
2833
+ /*jshint eqeqeq: false*/
2834
+ if (!(key in cache) || (refetch && cache[key] == refetch)) {
2835
+ cache[key] = source.apply(source, arguments);
2836
+ }
2837
+
2838
+ return cache[key];
2839
+ };
2840
+ };
2841
+
2842
+ /**
2843
+ Returns the `location` object from the window/frame in which this YUI instance
2844
+ operates, or `undefined` when executing in a non-browser environment
2845
+ (e.g. Node.js).
2846
+
2847
+ It is _not_ recommended to hold references to the `window.location` object
2848
+ outside of the scope of a function in which its properties are being accessed or
2849
+ its methods are being called. This is because of a nasty bug/issue that exists
2850
+ in both Safari and MobileSafari browsers:
2851
+ [WebKit Bug 34679](https://bugs.webkit.org/show_bug.cgi?id=34679).
2852
+
2853
+ @method getLocation
2854
+ @return {location} The `location` object from the window/frame in which this YUI
2855
+ instance operates.
2856
+ @since 3.5.0
2857
+ **/
2858
+ Y.getLocation = function () {
2859
+ // It is safer to look this up every time because yui-base is attached to a
2860
+ // YUI instance before a user's config is applied; i.e. `Y.config.win` does
2861
+ // not point the correct window object when this file is loaded.
2862
+ var win = Y.config.win;
2863
+
2864
+ // It is not safe to hold a reference to the `location` object outside the
2865
+ // scope in which it is being used. The WebKit engine used in Safari and
2866
+ // MobileSafari will "disconnect" the `location` object from the `window`
2867
+ // when a page is restored from back/forward history cache.
2868
+ return win && win.location;
2869
+ };
2870
+
2871
+ /**
2872
+ Returns a new object containing all of the properties of all the supplied
2873
+ objects. The properties from later objects will overwrite those in earlier
2874
+ objects.
2875
+
2876
+ Passing in a single object will create a shallow copy of it. For a deep copy,
2877
+ use `clone()`.
2878
+
2879
+ @method merge
2880
+ @param {Object} objects* One or more objects to merge.
2881
+ @return {Object} A new merged object.
2882
+ **/
2883
+ Y.merge = function () {
2884
+ var i = 0,
2885
+ len = arguments.length,
2886
+ result = {},
2887
+ key,
2888
+ obj;
2889
+
2890
+ for (; i < len; ++i) {
2891
+ obj = arguments[i];
2892
+
2893
+ for (key in obj) {
2894
+ if (hasOwn.call(obj, key)) {
2895
+ result[key] = obj[key];
2896
+ }
2897
+ }
2898
+ }
2899
+
2900
+ return result;
2901
+ };
2902
+
2903
+ /**
2904
+ Mixes _supplier_'s properties into _receiver_.
2905
+
2906
+ Properties on _receiver_ or _receiver_'s prototype will not be overwritten or
2907
+ shadowed unless the _overwrite_ parameter is `true`, and will not be merged
2908
+ unless the _merge_ parameter is `true`.
2909
+
2910
+ In the default mode (0), only properties the supplier owns are copied (prototype
2911
+ properties are not copied). The following copying modes are available:
2912
+
2913
+ * `0`: _Default_. Object to object.
2914
+ * `1`: Prototype to prototype.
2915
+ * `2`: Prototype to prototype and object to object.
2916
+ * `3`: Prototype to object.
2917
+ * `4`: Object to prototype.
2918
+
2919
+ @method mix
2920
+ @param {Function|Object} receiver The object or function to receive the mixed
2921
+ properties.
2922
+ @param {Function|Object} supplier The object or function supplying the
2923
+ properties to be mixed.
2924
+ @param {Boolean} [overwrite=false] If `true`, properties that already exist
2925
+ on the receiver will be overwritten with properties from the supplier.
2926
+ @param {String[]} [whitelist] An array of property names to copy. If
2927
+ specified, only the whitelisted properties will be copied, and all others
2928
+ will be ignored.
2929
+ @param {Number} [mode=0] Mix mode to use. See above for available modes.
2930
+ @param {Boolean} [merge=false] If `true`, objects and arrays that already
2931
+ exist on the receiver will have the corresponding object/array from the
2932
+ supplier merged into them, rather than being skipped or overwritten. When
2933
+ both _overwrite_ and _merge_ are `true`, _merge_ takes precedence.
2934
+ @return {Function|Object|YUI} The receiver, or the YUI instance if the
2935
+ specified receiver is falsy.
2936
+ **/
2937
+ Y.mix = function(receiver, supplier, overwrite, whitelist, mode, merge) {
2938
+ var alwaysOverwrite, exists, from, i, key, len, to;
2939
+
2940
+ // If no supplier is given, we return the receiver. If no receiver is given,
2941
+ // we return Y. Returning Y doesn't make much sense to me, but it's
2942
+ // grandfathered in for backcompat reasons.
2943
+ if (!receiver || !supplier) {
2944
+ return receiver || Y;
2945
+ }
2946
+
2947
+ if (mode) {
2948
+ // In mode 2 (prototype to prototype and object to object), we recurse
2949
+ // once to do the proto to proto mix. The object to object mix will be
2950
+ // handled later on.
2951
+ if (mode === 2) {
2952
+ Y.mix(receiver.prototype, supplier.prototype, overwrite,
2953
+ whitelist, 0, merge);
2954
+ }
2955
+
2956
+ // Depending on which mode is specified, we may be copying from or to
2957
+ // the prototypes of the supplier and receiver.
2958
+ from = mode === 1 || mode === 3 ? supplier.prototype : supplier;
2959
+ to = mode === 1 || mode === 4 ? receiver.prototype : receiver;
2960
+
2961
+ // If either the supplier or receiver doesn't actually have a
2962
+ // prototype property, then we could end up with an undefined `from`
2963
+ // or `to`. If that happens, we abort and return the receiver.
2964
+ if (!from || !to) {
2965
+ return receiver;
2966
+ }
2967
+ } else {
2968
+ from = supplier;
2969
+ to = receiver;
2970
+ }
2971
+
2972
+ // If `overwrite` is truthy and `merge` is falsy, then we can skip a
2973
+ // property existence check on each iteration and save some time.
2974
+ alwaysOverwrite = overwrite && !merge;
2975
+
2976
+ if (whitelist) {
2977
+ for (i = 0, len = whitelist.length; i < len; ++i) {
2978
+ key = whitelist[i];
2979
+
2980
+ // We call `Object.prototype.hasOwnProperty` instead of calling
2981
+ // `hasOwnProperty` on the object itself, since the object's
2982
+ // `hasOwnProperty` method may have been overridden or removed.
2983
+ // Also, some native objects don't implement a `hasOwnProperty`
2984
+ // method.
2985
+ if (!hasOwn.call(from, key)) {
2986
+ continue;
2987
+ }
2988
+
2989
+ // The `key in to` check here is (sadly) intentional for backwards
2990
+ // compatibility reasons. It prevents undesired shadowing of
2991
+ // prototype members on `to`.
2992
+ exists = alwaysOverwrite ? false : key in to;
2993
+
2994
+ if (merge && exists && isObject(to[key], true)
2995
+ && isObject(from[key], true)) {
2996
+ // If we're in merge mode, and the key is present on both
2997
+ // objects, and the value on both objects is either an object or
2998
+ // an array (but not a function), then we recurse to merge the
2999
+ // `from` value into the `to` value instead of overwriting it.
3000
+ //
3001
+ // Note: It's intentional that the whitelist isn't passed to the
3002
+ // recursive call here. This is legacy behavior that lots of
3003
+ // code still depends on.
3004
+ Y.mix(to[key], from[key], overwrite, null, 0, merge);
3005
+ } else if (overwrite || !exists) {
3006
+ // We're not in merge mode, so we'll only copy the `from` value
3007
+ // to the `to` value if we're in overwrite mode or if the
3008
+ // current key doesn't exist on the `to` object.
3009
+ to[key] = from[key];
3010
+ }
3011
+ }
3012
+ } else {
3013
+ for (key in from) {
3014
+ // The code duplication here is for runtime performance reasons.
3015
+ // Combining whitelist and non-whitelist operations into a single
3016
+ // loop or breaking the shared logic out into a function both result
3017
+ // in worse performance, and Y.mix is critical enough that the byte
3018
+ // tradeoff is worth it.
3019
+ if (!hasOwn.call(from, key)) {
3020
+ continue;
3021
+ }
3022
+
3023
+ // The `key in to` check here is (sadly) intentional for backwards
3024
+ // compatibility reasons. It prevents undesired shadowing of
3025
+ // prototype members on `to`.
3026
+ exists = alwaysOverwrite ? false : key in to;
3027
+
3028
+ if (merge && exists && isObject(to[key], true)
3029
+ && isObject(from[key], true)) {
3030
+ Y.mix(to[key], from[key], overwrite, null, 0, merge);
3031
+ } else if (overwrite || !exists) {
3032
+ to[key] = from[key];
3033
+ }
3034
+ }
3035
+
3036
+ // If this is an IE browser with the JScript enumeration bug, force
3037
+ // enumeration of the buggy properties by making a recursive call with
3038
+ // the buggy properties as the whitelist.
3039
+ if (Y.Object._hasEnumBug) {
3040
+ Y.mix(to, from, overwrite, Y.Object._forceEnum, mode, merge);
3041
+ }
3042
+ }
3043
+
3044
+ return receiver;
3045
+ };
3046
+ /**
3047
+ * The YUI module contains the components required for building the YUI
3048
+ * seed file. This includes the script loading mechanism, a simple queue,
3049
+ * and the core utilities for the library.
3050
+ * @module yui
3051
+ * @submodule yui-base
3052
+ */
3053
+
3054
+ /**
3055
+ * Adds utilities to the YUI instance for working with objects.
3056
+ *
3057
+ * @class Object
3058
+ */
3059
+
3060
+ var Lang = Y.Lang,
3061
+ hasOwn = Object.prototype.hasOwnProperty,
3062
+
3063
+ UNDEFINED, // <-- Note the comma. We're still declaring vars.
3064
+
3065
+ /**
3066
+ * Returns a new object that uses _obj_ as its prototype. This method wraps the
3067
+ * native ES5 `Object.create()` method if available, but doesn't currently
3068
+ * pass through `Object.create()`'s second argument (properties) in order to
3069
+ * ensure compatibility with older browsers.
3070
+ *
3071
+ * @method ()
3072
+ * @param {Object} obj Prototype object.
3073
+ * @return {Object} New object using _obj_ as its prototype.
3074
+ * @static
3075
+ */
3076
+ O = Y.Object = Lang._isNative(Object.create) ? function (obj) {
3077
+ // We currently wrap the native Object.create instead of simply aliasing it
3078
+ // to ensure consistency with our fallback shim, which currently doesn't
3079
+ // support Object.create()'s second argument (properties). Once we have a
3080
+ // safe fallback for the properties arg, we can stop wrapping
3081
+ // Object.create().
3082
+ return Object.create(obj);
3083
+ } : (function () {
3084
+ // Reusable constructor function for the Object.create() shim.
3085
+ function F() {}
3086
+
3087
+ // The actual shim.
3088
+ return function (obj) {
3089
+ F.prototype = obj;
3090
+ return new F();
3091
+ };
3092
+ }()),
3093
+
3094
+ /**
3095
+ * Property names that IE doesn't enumerate in for..in loops, even when they
3096
+ * should be enumerable. When `_hasEnumBug` is `true`, it's necessary to
3097
+ * manually enumerate these properties.
3098
+ *
3099
+ * @property _forceEnum
3100
+ * @type String[]
3101
+ * @protected
3102
+ * @static
3103
+ */
3104
+ forceEnum = O._forceEnum = [
3105
+ 'hasOwnProperty',
3106
+ 'isPrototypeOf',
3107
+ 'propertyIsEnumerable',
3108
+ 'toString',
3109
+ 'toLocaleString',
3110
+ 'valueOf'
3111
+ ],
3112
+
3113
+ /**
3114
+ * `true` if this browser has the JScript enumeration bug that prevents
3115
+ * enumeration of the properties named in the `_forceEnum` array, `false`
3116
+ * otherwise.
3117
+ *
3118
+ * See:
3119
+ * - <https://developer.mozilla.org/en/ECMAScript_DontEnum_attribute#JScript_DontEnum_Bug>
3120
+ * - <http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation>
3121
+ *
3122
+ * @property _hasEnumBug
3123
+ * @type Boolean
3124
+ * @protected
3125
+ * @static
3126
+ */
3127
+ hasEnumBug = O._hasEnumBug = !{valueOf: 0}.propertyIsEnumerable('valueOf'),
3128
+
3129
+ /**
3130
+ * `true` if this browser incorrectly considers the `prototype` property of
3131
+ * functions to be enumerable. Currently known to affect Opera 11.50 and Android 2.3.x.
3132
+ *
3133
+ * @property _hasProtoEnumBug
3134
+ * @type Boolean
3135
+ * @protected
3136
+ * @static
3137
+ */
3138
+ hasProtoEnumBug = O._hasProtoEnumBug = (function () {}).propertyIsEnumerable('prototype'),
3139
+
3140
+ /**
3141
+ * Returns `true` if _key_ exists on _obj_, `false` if _key_ doesn't exist or
3142
+ * exists only on _obj_'s prototype. This is essentially a safer version of
3143
+ * `obj.hasOwnProperty()`.
3144
+ *
3145
+ * @method owns
3146
+ * @param {Object} obj Object to test.
3147
+ * @param {String} key Property name to look for.
3148
+ * @return {Boolean} `true` if _key_ exists on _obj_, `false` otherwise.
3149
+ * @static
3150
+ */
3151
+ owns = O.owns = function (obj, key) {
3152
+ return !!obj && hasOwn.call(obj, key);
3153
+ }; // <-- End of var declarations.
3154
+
3155
+ /**
3156
+ * Alias for `owns()`.
3157
+ *
3158
+ * @method hasKey
3159
+ * @param {Object} obj Object to test.
3160
+ * @param {String} key Property name to look for.
3161
+ * @return {Boolean} `true` if _key_ exists on _obj_, `false` otherwise.
3162
+ * @static
3163
+ */
3164
+ O.hasKey = owns;
3165
+
3166
+ /**
3167
+ * Returns an array containing the object's enumerable keys. Does not include
3168
+ * prototype keys or non-enumerable keys.
3169
+ *
3170
+ * Note that keys are returned in enumeration order (that is, in the same order
3171
+ * that they would be enumerated by a `for-in` loop), which may not be the same
3172
+ * as the order in which they were defined.
3173
+ *
3174
+ * This method is an alias for the native ES5 `Object.keys()` method if
3175
+ * available and non-buggy. The Opera 11.50 and Android 2.3.x versions of
3176
+ * `Object.keys()` have an inconsistency as they consider `prototype` to be
3177
+ * enumerable, so a non-native shim is used to rectify the difference.
3178
+ *
3179
+ * @example
3180
+ *
3181
+ * Y.Object.keys({a: 'foo', b: 'bar', c: 'baz'});
3182
+ * // => ['a', 'b', 'c']
3183
+ *
3184
+ * @method keys
3185
+ * @param {Object} obj An object.
3186
+ * @return {String[]} Array of keys.
3187
+ * @static
3188
+ */
3189
+ O.keys = Lang._isNative(Object.keys) && !hasProtoEnumBug ? Object.keys : function (obj) {
3190
+ if (!Lang.isObject(obj)) {
3191
+ throw new TypeError('Object.keys called on a non-object');
3192
+ }
3193
+
3194
+ var keys = [],
3195
+ i, key, len;
3196
+
3197
+ if (hasProtoEnumBug && typeof obj === 'function') {
3198
+ for (key in obj) {
3199
+ if (owns(obj, key) && key !== 'prototype') {
3200
+ keys.push(key);
3201
+ }
3202
+ }
3203
+ } else {
3204
+ for (key in obj) {
3205
+ if (owns(obj, key)) {
3206
+ keys.push(key);
3207
+ }
3208
+ }
3209
+ }
3210
+
3211
+ if (hasEnumBug) {
3212
+ for (i = 0, len = forceEnum.length; i < len; ++i) {
3213
+ key = forceEnum[i];
3214
+
3215
+ if (owns(obj, key)) {
3216
+ keys.push(key);
3217
+ }
3218
+ }
3219
+ }
3220
+
3221
+ return keys;
3222
+ };
3223
+
3224
+ /**
3225
+ * Returns an array containing the values of the object's enumerable keys.
3226
+ *
3227
+ * Note that values are returned in enumeration order (that is, in the same
3228
+ * order that they would be enumerated by a `for-in` loop), which may not be the
3229
+ * same as the order in which they were defined.
3230
+ *
3231
+ * @example
3232
+ *
3233
+ * Y.Object.values({a: 'foo', b: 'bar', c: 'baz'});
3234
+ * // => ['foo', 'bar', 'baz']
3235
+ *
3236
+ * @method values
3237
+ * @param {Object} obj An object.
3238
+ * @return {Array} Array of values.
3239
+ * @static
3240
+ */
3241
+ O.values = function (obj) {
3242
+ var keys = O.keys(obj),
3243
+ i = 0,
3244
+ len = keys.length,
3245
+ values = [];
3246
+
3247
+ for (; i < len; ++i) {
3248
+ values.push(obj[keys[i]]);
3249
+ }
3250
+
3251
+ return values;
3252
+ };
3253
+
3254
+ /**
3255
+ * Returns the number of enumerable keys owned by an object.
3256
+ *
3257
+ * @method size
3258
+ * @param {Object} obj An object.
3259
+ * @return {Number} The object's size.
3260
+ * @static
3261
+ */
3262
+ O.size = function (obj) {
3263
+ try {
3264
+ return O.keys(obj).length;
3265
+ } catch (ex) {
3266
+ return 0; // Legacy behavior for non-objects.
3267
+ }
3268
+ };
3269
+
3270
+ /**
3271
+ * Returns `true` if the object owns an enumerable property with the specified
3272
+ * value.
3273
+ *
3274
+ * @method hasValue
3275
+ * @param {Object} obj An object.
3276
+ * @param {any} value The value to search for.
3277
+ * @return {Boolean} `true` if _obj_ contains _value_, `false` otherwise.
3278
+ * @static
3279
+ */
3280
+ O.hasValue = function (obj, value) {
3281
+ return Y.Array.indexOf(O.values(obj), value) > -1;
3282
+ };
3283
+
3284
+ /**
3285
+ * Executes a function on each enumerable property in _obj_. The function
3286
+ * receives the value, the key, and the object itself as parameters (in that
3287
+ * order).
3288
+ *
3289
+ * By default, only properties owned by _obj_ are enumerated. To include
3290
+ * prototype properties, set the _proto_ parameter to `true`.
3291
+ *
3292
+ * @method each
3293
+ * @param {Object} obj Object to enumerate.
3294
+ * @param {Function} fn Function to execute on each enumerable property.
3295
+ * @param {mixed} fn.value Value of the current property.
3296
+ * @param {String} fn.key Key of the current property.
3297
+ * @param {Object} fn.obj Object being enumerated.
3298
+ * @param {Object} [thisObj] `this` object to use when calling _fn_.
3299
+ * @param {Boolean} [proto=false] Include prototype properties.
3300
+ * @return {YUI} the YUI instance.
3301
+ * @chainable
3302
+ * @static
3303
+ */
3304
+ O.each = function (obj, fn, thisObj, proto) {
3305
+ var key;
3306
+
3307
+ for (key in obj) {
3308
+ if (proto || owns(obj, key)) {
3309
+ fn.call(thisObj || Y, obj[key], key, obj);
3310
+ }
3311
+ }
3312
+
3313
+ return Y;
3314
+ };
3315
+
3316
+ /**
3317
+ * Executes a function on each enumerable property in _obj_, but halts if the
3318
+ * function returns a truthy value. The function receives the value, the key,
3319
+ * and the object itself as paramters (in that order).
3320
+ *
3321
+ * By default, only properties owned by _obj_ are enumerated. To include
3322
+ * prototype properties, set the _proto_ parameter to `true`.
3323
+ *
3324
+ * @method some
3325
+ * @param {Object} obj Object to enumerate.
3326
+ * @param {Function} fn Function to execute on each enumerable property.
3327
+ * @param {mixed} fn.value Value of the current property.
3328
+ * @param {String} fn.key Key of the current property.
3329
+ * @param {Object} fn.obj Object being enumerated.
3330
+ * @param {Object} [thisObj] `this` object to use when calling _fn_.
3331
+ * @param {Boolean} [proto=false] Include prototype properties.
3332
+ * @return {Boolean} `true` if any execution of _fn_ returns a truthy value,
3333
+ * `false` otherwise.
3334
+ * @static
3335
+ */
3336
+ O.some = function (obj, fn, thisObj, proto) {
3337
+ var key;
3338
+
3339
+ for (key in obj) {
3340
+ if (proto || owns(obj, key)) {
3341
+ if (fn.call(thisObj || Y, obj[key], key, obj)) {
3342
+ return true;
3343
+ }
3344
+ }
3345
+ }
3346
+
3347
+ return false;
3348
+ };
3349
+
3350
+ /**
3351
+ * Retrieves the sub value at the provided path,
3352
+ * from the value object provided.
3353
+ *
3354
+ * @method getValue
3355
+ * @static
3356
+ * @param o The object from which to extract the property value.
3357
+ * @param path {Array} A path array, specifying the object traversal path
3358
+ * from which to obtain the sub value.
3359
+ * @return {Any} The value stored in the path, undefined if not found,
3360
+ * undefined if the source is not an object. Returns the source object
3361
+ * if an empty path is provided.
3362
+ */
3363
+ O.getValue = function(o, path) {
3364
+ if (!Lang.isObject(o)) {
3365
+ return UNDEFINED;
3366
+ }
3367
+
3368
+ var i,
3369
+ p = Y.Array(path),
3370
+ l = p.length;
3371
+
3372
+ for (i = 0; o !== UNDEFINED && i < l; i++) {
3373
+ o = o[p[i]];
3374
+ }
3375
+
3376
+ return o;
3377
+ };
3378
+
3379
+ /**
3380
+ * Sets the sub-attribute value at the provided path on the
3381
+ * value object. Returns the modified value object, or
3382
+ * undefined if the path is invalid.
3383
+ *
3384
+ * @method setValue
3385
+ * @static
3386
+ * @param o The object on which to set the sub value.
3387
+ * @param path {Array} A path array, specifying the object traversal path
3388
+ * at which to set the sub value.
3389
+ * @param val {Any} The new value for the sub-attribute.
3390
+ * @return {Object} The modified object, with the new sub value set, or
3391
+ * undefined, if the path was invalid.
3392
+ */
3393
+ O.setValue = function(o, path, val) {
3394
+ var i,
3395
+ p = Y.Array(path),
3396
+ leafIdx = p.length - 1,
3397
+ ref = o;
3398
+
3399
+ if (leafIdx >= 0) {
3400
+ for (i = 0; ref !== UNDEFINED && i < leafIdx; i++) {
3401
+ ref = ref[p[i]];
3402
+ }
3403
+
3404
+ if (ref !== UNDEFINED) {
3405
+ ref[p[i]] = val;
3406
+ } else {
3407
+ return UNDEFINED;
3408
+ }
3409
+ }
3410
+
3411
+ return o;
3412
+ };
3413
+
3414
+ /**
3415
+ * Returns `true` if the object has no enumerable properties of its own.
3416
+ *
3417
+ * @method isEmpty
3418
+ * @param {Object} obj An object.
3419
+ * @return {Boolean} `true` if the object is empty.
3420
+ * @static
3421
+ * @since 3.2.0
3422
+ */
3423
+ O.isEmpty = function (obj) {
3424
+ return !O.keys(Object(obj)).length;
3425
+ };
3426
+ /**
3427
+ * The YUI module contains the components required for building the YUI seed
3428
+ * file. This includes the script loading mechanism, a simple queue, and the
3429
+ * core utilities for the library.
3430
+ * @module yui
3431
+ * @submodule yui-base
3432
+ */
3433
+
3434
+ /**
3435
+ * YUI user agent detection.
3436
+ * Do not fork for a browser if it can be avoided. Use feature detection when
3437
+ * you can. Use the user agent as a last resort. For all fields listed
3438
+ * as @type float, UA stores a version number for the browser engine,
3439
+ * 0 otherwise. This value may or may not map to the version number of
3440
+ * the browser using the engine. The value is presented as a float so
3441
+ * that it can easily be used for boolean evaluation as well as for
3442
+ * looking for a particular range of versions. Because of this,
3443
+ * some of the granularity of the version info may be lost. The fields that
3444
+ * are @type string default to null. The API docs list the values that
3445
+ * these fields can have.
3446
+ * @class UA
3447
+ * @static
3448
+ */
3449
+
3450
+ /**
3451
+ * Static method on `YUI.Env` for parsing a UA string. Called at instantiation
3452
+ * to populate `Y.UA`.
3453
+ *
3454
+ * @static
3455
+ * @method parseUA
3456
+ * @param {String} [subUA=navigator.userAgent] UA string to parse
3457
+ * @return {Object} The Y.UA object
3458
+ */
3459
+ YUI.Env.parseUA = function(subUA) {
3460
+
3461
+ var numberify = function(s) {
3462
+ var c = 0;
3463
+ return parseFloat(s.replace(/\./g, function() {
3464
+ return (c++ === 1) ? '' : '.';
3465
+ }));
3466
+ },
3467
+
3468
+ win = Y.config.win,
3469
+
3470
+ nav = win && win.navigator,
3471
+
3472
+ o = {
3473
+
3474
+ /**
3475
+ * Internet Explorer version number or 0. Example: 6
3476
+ * @property ie
3477
+ * @type float
3478
+ * @static
3479
+ */
3480
+ ie: 0,
3481
+
3482
+ /**
3483
+ * Opera version number or 0. Example: 9.2
3484
+ * @property opera
3485
+ * @type float
3486
+ * @static
3487
+ */
3488
+ opera: 0,
3489
+
3490
+ /**
3491
+ * Gecko engine revision number. Will evaluate to 1 if Gecko
3492
+ * is detected but the revision could not be found. Other browsers
3493
+ * will be 0. Example: 1.8
3494
+ * <pre>
3495
+ * Firefox 1.0.0.4: 1.7.8 <-- Reports 1.7
3496
+ * Firefox 1.5.0.9: 1.8.0.9 <-- 1.8
3497
+ * Firefox 2.0.0.3: 1.8.1.3 <-- 1.81
3498
+ * Firefox 3.0 <-- 1.9
3499
+ * Firefox 3.5 <-- 1.91
3500
+ * </pre>
3501
+ * @property gecko
3502
+ * @type float
3503
+ * @static
3504
+ */
3505
+ gecko: 0,
3506
+
3507
+ /**
3508
+ * AppleWebKit version. KHTML browsers that are not WebKit browsers
3509
+ * will evaluate to 1, other browsers 0. Example: 418.9
3510
+ * <pre>
3511
+ * Safari 1.3.2 (312.6): 312.8.1 <-- Reports 312.8 -- currently the
3512
+ * latest available for Mac OSX 10.3.
3513
+ * Safari 2.0.2: 416 <-- hasOwnProperty introduced
3514
+ * Safari 2.0.4: 418 <-- preventDefault fixed
3515
+ * Safari 2.0.4 (419.3): 418.9.1 <-- One version of Safari may run
3516
+ * different versions of webkit
3517
+ * Safari 2.0.4 (419.3): 419 <-- Tiger installations that have been
3518
+ * updated, but not updated
3519
+ * to the latest patch.
3520
+ * Webkit 212 nightly: 522+ <-- Safari 3.0 precursor (with native
3521
+ * SVG and many major issues fixed).
3522
+ * Safari 3.0.4 (523.12) 523.12 <-- First Tiger release - automatic
3523
+ * update from 2.x via the 10.4.11 OS patch.
3524
+ * Webkit nightly 1/2008:525+ <-- Supports DOMContentLoaded event.
3525
+ * yahoo.com user agent hack removed.
3526
+ * </pre>
3527
+ * http://en.wikipedia.org/wiki/Safari_version_history
3528
+ * @property webkit
3529
+ * @type float
3530
+ * @static
3531
+ */
3532
+ webkit: 0,
3533
+
3534
+ /**
3535
+ * Safari will be detected as webkit, but this property will also
3536
+ * be populated with the Safari version number
3537
+ * @property safari
3538
+ * @type float
3539
+ * @static
3540
+ */
3541
+ safari: 0,
3542
+
3543
+ /**
3544
+ * Chrome will be detected as webkit, but this property will also
3545
+ * be populated with the Chrome version number
3546
+ * @property chrome
3547
+ * @type float
3548
+ * @static
3549
+ */
3550
+ chrome: 0,
3551
+
3552
+ /**
3553
+ * The mobile property will be set to a string containing any relevant
3554
+ * user agent information when a modern mobile browser is detected.
3555
+ * Currently limited to Safari on the iPhone/iPod Touch, Nokia N-series
3556
+ * devices with the WebKit-based browser, and Opera Mini.
3557
+ * @property mobile
3558
+ * @type string
3559
+ * @default null
3560
+ * @static
3561
+ */
3562
+ mobile: null,
3563
+
3564
+ /**
3565
+ * Adobe AIR version number or 0. Only populated if webkit is detected.
3566
+ * Example: 1.0
3567
+ * @property air
3568
+ * @type float
3569
+ */
3570
+ air: 0,
3571
+ /**
3572
+ * PhantomJS version number or 0. Only populated if webkit is detected.
3573
+ * Example: 1.0
3574
+ * @property phantomjs
3575
+ * @type float
3576
+ */
3577
+ phantomjs: 0,
3578
+ /**
3579
+ * Detects Apple iPad's OS version
3580
+ * @property ipad
3581
+ * @type float
3582
+ * @static
3583
+ */
3584
+ ipad: 0,
3585
+ /**
3586
+ * Detects Apple iPhone's OS version
3587
+ * @property iphone
3588
+ * @type float
3589
+ * @static
3590
+ */
3591
+ iphone: 0,
3592
+ /**
3593
+ * Detects Apples iPod's OS version
3594
+ * @property ipod
3595
+ * @type float
3596
+ * @static
3597
+ */
3598
+ ipod: 0,
3599
+ /**
3600
+ * General truthy check for iPad, iPhone or iPod
3601
+ * @property ios
3602
+ * @type Boolean
3603
+ * @default null
3604
+ * @static
3605
+ */
3606
+ ios: null,
3607
+ /**
3608
+ * Detects Googles Android OS version
3609
+ * @property android
3610
+ * @type float
3611
+ * @static
3612
+ */
3613
+ android: 0,
3614
+ /**
3615
+ * Detects Kindle Silk
3616
+ * @property silk
3617
+ * @type float
3618
+ * @static
3619
+ */
3620
+ silk: 0,
3621
+ /**
3622
+ * Detects Ubuntu version
3623
+ * @property ubuntu
3624
+ * @type float
3625
+ * @static
3626
+ */
3627
+ ubuntu: 0,
3628
+ /**
3629
+ * Detects Kindle Silk Acceleration
3630
+ * @property accel
3631
+ * @type Boolean
3632
+ * @static
3633
+ */
3634
+ accel: false,
3635
+ /**
3636
+ * Detects Palms WebOS version
3637
+ * @property webos
3638
+ * @type float
3639
+ * @static
3640
+ */
3641
+ webos: 0,
3642
+
3643
+ /**
3644
+ * Google Caja version number or 0.
3645
+ * @property caja
3646
+ * @type float
3647
+ */
3648
+ caja: nav && nav.cajaVersion,
3649
+
3650
+ /**
3651
+ * Set to true if the page appears to be in SSL
3652
+ * @property secure
3653
+ * @type boolean
3654
+ * @static
3655
+ */
3656
+ secure: false,
3657
+
3658
+ /**
3659
+ * The operating system.
3660
+ *
3661
+ * Possible values are `windows`, `macintosh`, `android`, `symbos`, `linux`, `rhino` and `ios`.
3662
+ *
3663
+ * @property os
3664
+ * @type string
3665
+ * @default null
3666
+ * @static
3667
+ */
3668
+ os: null,
3669
+
3670
+ /**
3671
+ * The Nodejs Version
3672
+ * @property nodejs
3673
+ * @type float
3674
+ * @default 0
3675
+ * @static
3676
+ */
3677
+ nodejs: 0,
3678
+ /**
3679
+ * Window8/IE10 Application host environment
3680
+ * @property winjs
3681
+ * @type Boolean
3682
+ * @static
3683
+ */
3684
+ winjs: !!((typeof Windows !== "undefined") && Windows.System),
3685
+ /**
3686
+ * Are touch/msPointer events available on this device
3687
+ * @property touchEnabled
3688
+ * @type Boolean
3689
+ * @static
3690
+ */
3691
+ touchEnabled: false
3692
+ },
3693
+
3694
+ ua = subUA || nav && nav.userAgent,
3695
+
3696
+ loc = win && win.location,
3697
+
3698
+ href = loc && loc.href,
3699
+
3700
+ m;
3701
+
3702
+ /**
3703
+ * The User Agent string that was parsed
3704
+ * @property userAgent
3705
+ * @type String
3706
+ * @static
3707
+ */
3708
+ o.userAgent = ua;
3709
+
3710
+
3711
+ o.secure = href && (href.toLowerCase().indexOf('https') === 0);
3712
+
3713
+ if (ua) {
3714
+
3715
+ if ((/windows|win32/i).test(ua)) {
3716
+ o.os = 'windows';
3717
+ } else if ((/macintosh|mac_powerpc/i).test(ua)) {
3718
+ o.os = 'macintosh';
3719
+ } else if ((/android/i).test(ua)) {
3720
+ o.os = 'android';
3721
+ } else if ((/symbos/i).test(ua)) {
3722
+ o.os = 'symbos';
3723
+ } else if ((/linux/i).test(ua)) {
3724
+ o.os = 'linux';
3725
+ } else if ((/rhino/i).test(ua)) {
3726
+ o.os = 'rhino';
3727
+ }
3728
+
3729
+ // Modern KHTML browsers should qualify as Safari X-Grade
3730
+ if ((/KHTML/).test(ua)) {
3731
+ o.webkit = 1;
3732
+ }
3733
+ if ((/IEMobile|XBLWP7/).test(ua)) {
3734
+ o.mobile = 'windows';
3735
+ }
3736
+ if ((/Fennec/).test(ua)) {
3737
+ o.mobile = 'gecko';
3738
+ }
3739
+ // Modern WebKit browsers are at least X-Grade
3740
+ m = ua.match(/AppleWebKit\/([^\s]*)/);
3741
+ if (m && m[1]) {
3742
+ o.webkit = numberify(m[1]);
3743
+ o.safari = o.webkit;
3744
+
3745
+ if (/PhantomJS/.test(ua)) {
3746
+ m = ua.match(/PhantomJS\/([^\s]*)/);
3747
+ if (m && m[1]) {
3748
+ o.phantomjs = numberify(m[1]);
3749
+ }
3750
+ }
3751
+
3752
+ // Mobile browser check
3753
+ if (/ Mobile\//.test(ua) || (/iPad|iPod|iPhone/).test(ua)) {
3754
+ o.mobile = 'Apple'; // iPhone or iPod Touch
3755
+
3756
+ m = ua.match(/OS ([^\s]*)/);
3757
+ if (m && m[1]) {
3758
+ m = numberify(m[1].replace('_', '.'));
3759
+ }
3760
+ o.ios = m;
3761
+ o.os = 'ios';
3762
+ o.ipad = o.ipod = o.iphone = 0;
3763
+
3764
+ m = ua.match(/iPad|iPod|iPhone/);
3765
+ if (m && m[0]) {
3766
+ o[m[0].toLowerCase()] = o.ios;
3767
+ }
3768
+ } else {
3769
+ m = ua.match(/NokiaN[^\/]*|webOS\/\d\.\d/);
3770
+ if (m) {
3771
+ // Nokia N-series, webOS, ex: NokiaN95
3772
+ o.mobile = m[0];
3773
+ }
3774
+ if (/webOS/.test(ua)) {
3775
+ o.mobile = 'WebOS';
3776
+ m = ua.match(/webOS\/([^\s]*);/);
3777
+ if (m && m[1]) {
3778
+ o.webos = numberify(m[1]);
3779
+ }
3780
+ }
3781
+ if (/ Android/.test(ua)) {
3782
+ o.mobile = 'Android';
3783
+ m = ua.match(/Android ([^\s]*);/);
3784
+ if (m && m[1]) {
3785
+ o.android = numberify(m[1]);
3786
+ }
3787
+
3788
+ }
3789
+ if (/Silk/.test(ua)) {
3790
+ m = ua.match(/Silk\/([^\s]*)/);
3791
+ if (m && m[1]) {
3792
+ o.silk = numberify(m[1]);
3793
+ }
3794
+ if (!o.android) {
3795
+ o.android = 2.34; //Hack for desktop mode in Kindle
3796
+ o.os = 'Android';
3797
+ }
3798
+ if (/Accelerated=true/.test(ua)) {
3799
+ o.accel = true;
3800
+ }
3801
+ }
3802
+ }
3803
+
3804
+ m = ua.match(/OPR\/(\d+\.\d+)/);
3805
+
3806
+ if (m && m[1]) {
3807
+ // Opera 15+ with Blink (pretends to be both Chrome and Safari)
3808
+ o.opera = numberify(m[1]);
3809
+ } else {
3810
+ m = ua.match(/(Chrome|CrMo|CriOS)\/([^\s]*)/);
3811
+
3812
+ if (m && m[1] && m[2]) {
3813
+ o.chrome = numberify(m[2]); // Chrome
3814
+ o.safari = 0; //Reset safari back to 0
3815
+ if (m[1] === 'CrMo') {
3816
+ o.mobile = 'chrome';
3817
+ }
3818
+ } else {
3819
+ m = ua.match(/AdobeAIR\/([^\s]*)/);
3820
+ if (m) {
3821
+ o.air = m[0]; // Adobe AIR 1.0 or better
3822
+ }
3823
+ }
3824
+ }
3825
+ }
3826
+
3827
+ m = ua.match(/Ubuntu\ (\d+\.\d+)/);
3828
+ if (m && m[1]) {
3829
+
3830
+ o.os = 'linux';
3831
+ o.ubuntu = numberify(m[1]);
3832
+
3833
+ m = ua.match(/\ WebKit\/([^\s]*)/);
3834
+ if (m && m[1]) {
3835
+ o.webkit = numberify(m[1]);
3836
+ }
3837
+ m = ua.match(/\ Chromium\/([^\s]*)/);
3838
+ if (m && m[1]) {
3839
+ o.chrome = numberify(m[1]);
3840
+ }
3841
+ if (/ Mobile$/.test(ua)) {
3842
+ o.mobile = 'Ubuntu';
3843
+ }
3844
+ }
3845
+
3846
+ if (!o.webkit) { // not webkit
3847
+ // @todo check Opera/8.01 (J2ME/MIDP; Opera Mini/2.0.4509/1316; fi; U; ssr)
3848
+ if (/Opera/.test(ua)) {
3849
+ m = ua.match(/Opera[\s\/]([^\s]*)/);
3850
+ if (m && m[1]) {
3851
+ o.opera = numberify(m[1]);
3852
+ }
3853
+ m = ua.match(/Version\/([^\s]*)/);
3854
+ if (m && m[1]) {
3855
+ o.opera = numberify(m[1]); // opera 10+
3856
+ }
3857
+
3858
+ if (/Opera Mobi/.test(ua)) {
3859
+ o.mobile = 'opera';
3860
+ m = ua.replace('Opera Mobi', '').match(/Opera ([^\s]*)/);
3861
+ if (m && m[1]) {
3862
+ o.opera = numberify(m[1]);
3863
+ }
3864
+ }
3865
+ m = ua.match(/Opera Mini[^;]*/);
3866
+
3867
+ if (m) {
3868
+ o.mobile = m[0]; // ex: Opera Mini/2.0.4509/1316
3869
+ }
3870
+ } else { // not opera or webkit
3871
+ m = ua.match(/MSIE ([^;]*)|Trident.*; rv:([0-9.]+)/);
3872
+
3873
+ if (m && (m[1] || m[2])) {
3874
+ o.ie = numberify(m[1] || m[2]);
3875
+ } else { // not opera, webkit, or ie
3876
+ m = ua.match(/Gecko\/([^\s]*)/);
3877
+
3878
+ if (m) {
3879
+ o.gecko = 1; // Gecko detected, look for revision
3880
+ m = ua.match(/rv:([^\s\)]*)/);
3881
+ if (m && m[1]) {
3882
+ o.gecko = numberify(m[1]);
3883
+ if (/Mobile|Tablet/.test(ua)) {
3884
+ o.mobile = "ffos";
3885
+ }
3886
+ }
3887
+ }
3888
+ }
3889
+ }
3890
+ }
3891
+ }
3892
+
3893
+ //Check for known properties to tell if touch events are enabled on this device or if
3894
+ //the number of MSPointer touchpoints on this device is greater than 0.
3895
+ if (win && nav && !(o.chrome && o.chrome < 6)) {
3896
+ o.touchEnabled = (("ontouchstart" in win) || (("msMaxTouchPoints" in nav) && (nav.msMaxTouchPoints > 0)));
3897
+ }
3898
+
3899
+ //It was a parsed UA, do not assign the global value.
3900
+ if (!subUA) {
3901
+
3902
+ if (typeof process === 'object') {
3903
+
3904
+ if (process.versions && process.versions.node) {
3905
+ //NodeJS
3906
+ o.os = process.platform;
3907
+ o.nodejs = numberify(process.versions.node);
3908
+ }
3909
+ }
3910
+
3911
+ YUI.Env.UA = o;
3912
+
3913
+ }
3914
+
3915
+ return o;
3916
+ };
3917
+
3918
+
3919
+ Y.UA = YUI.Env.UA || YUI.Env.parseUA();
3920
+
3921
+ /**
3922
+ Performs a simple comparison between two version numbers, accounting for
3923
+ standard versioning logic such as the fact that "535.8" is a lower version than
3924
+ "535.24", even though a simple numerical comparison would indicate that it's
3925
+ greater. Also accounts for cases such as "1.1" vs. "1.1.0", which are
3926
+ considered equivalent.
3927
+
3928
+ Returns -1 if version _a_ is lower than version _b_, 0 if they're equivalent,
3929
+ 1 if _a_ is higher than _b_.
3930
+
3931
+ Versions may be numbers or strings containing numbers and dots. For example,
3932
+ both `535` and `"535.8.10"` are acceptable. A version string containing
3933
+ non-numeric characters, like `"535.8.beta"`, may produce unexpected results.
3934
+
3935
+ @method compareVersions
3936
+ @param {Number|String} a First version number to compare.
3937
+ @param {Number|String} b Second version number to compare.
3938
+ @return -1 if _a_ is lower than _b_, 0 if they're equivalent, 1 if _a_ is
3939
+ higher than _b_.
3940
+ **/
3941
+ Y.UA.compareVersions = function (a, b) {
3942
+ var aPart, aParts, bPart, bParts, i, len;
3943
+
3944
+ if (a === b) {
3945
+ return 0;
3946
+ }
3947
+
3948
+ aParts = (a + '').split('.');
3949
+ bParts = (b + '').split('.');
3950
+
3951
+ for (i = 0, len = Math.max(aParts.length, bParts.length); i < len; ++i) {
3952
+ aPart = parseInt(aParts[i], 10);
3953
+ bPart = parseInt(bParts[i], 10);
3954
+
3955
+ /*jshint expr: true*/
3956
+ isNaN(aPart) && (aPart = 0);
3957
+ isNaN(bPart) && (bPart = 0);
3958
+
3959
+ if (aPart < bPart) {
3960
+ return -1;
3961
+ }
3962
+
3963
+ if (aPart > bPart) {
3964
+ return 1;
3965
+ }
3966
+ }
3967
+
3968
+ return 0;
3969
+ };
3970
+ YUI.Env.aliases = {
3971
+ "anim": ["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"],
3972
+ "anim-shape-transform": ["anim-shape"],
3973
+ "app": ["app-base","app-content","app-transitions","lazy-model-list","model","model-list","model-sync-rest","model-sync-local","router","view","view-node-map"],
3974
+ "attribute": ["attribute-base","attribute-complex"],
3975
+ "attribute-events": ["attribute-observable"],
3976
+ "autocomplete": ["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"],
3977
+ "axes": ["axis-numeric","axis-category","axis-time","axis-stacked"],
3978
+ "axes-base": ["axis-numeric-base","axis-category-base","axis-time-base","axis-stacked-base"],
3979
+ "base": ["base-base","base-pluginhost","base-build"],
3980
+ "cache": ["cache-base","cache-offline","cache-plugin"],
3981
+ "charts": ["charts-base"],
3982
+ "collection": ["array-extras","arraylist","arraylist-add","arraylist-filter","array-invoke"],
3983
+ "color": ["color-base","color-hsl","color-harmony"],
3984
+ "controller": ["router"],
3985
+ "dataschema": ["dataschema-base","dataschema-json","dataschema-xml","dataschema-array","dataschema-text"],
3986
+ "datasource": ["datasource-local","datasource-io","datasource-get","datasource-function","datasource-cache","datasource-jsonschema","datasource-xmlschema","datasource-arrayschema","datasource-textschema","datasource-polling"],
3987
+ "datatable": ["datatable-core","datatable-table","datatable-head","datatable-body","datatable-base","datatable-column-widths","datatable-message","datatable-mutable","datatable-sort","datatable-datasource"],
3988
+ "datatype": ["datatype-date","datatype-number","datatype-xml"],
3989
+ "datatype-date": ["datatype-date-parse","datatype-date-format","datatype-date-math"],
3990
+ "datatype-number": ["datatype-number-parse","datatype-number-format"],
3991
+ "datatype-xml": ["datatype-xml-parse","datatype-xml-format"],
3992
+ "dd": ["dd-ddm-base","dd-ddm","dd-ddm-drop","dd-drag","dd-proxy","dd-constrain","dd-drop","dd-scroll","dd-delegate"],
3993
+ "dom": ["dom-base","dom-screen","dom-style","selector-native","selector"],
3994
+ "editor": ["frame","editor-selection","exec-command","editor-base","editor-para","editor-br","editor-bidi","editor-tab","createlink-base"],
3995
+ "event": ["event-base","event-delegate","event-synthetic","event-mousewheel","event-mouseenter","event-key","event-focus","event-resize","event-hover","event-outside","event-touch","event-move","event-flick","event-valuechange","event-tap"],
3996
+ "event-custom": ["event-custom-base","event-custom-complex"],
3997
+ "event-gestures": ["event-flick","event-move"],
3998
+ "handlebars": ["handlebars-compiler"],
3999
+ "highlight": ["highlight-base","highlight-accentfold"],
4000
+ "history": ["history-base","history-hash","history-html5"],
4001
+ "io": ["io-base","io-xdr","io-form","io-upload-iframe","io-queue"],
4002
+ "json": ["json-parse","json-stringify"],
4003
+ "loader": ["loader-base","loader-rollup","loader-yui3"],
4004
+ "loader-pathogen-encoder": ["loader-base","loader-rollup","loader-yui3","loader-pathogen-combohandler"],
4005
+ "node": ["node-base","node-event-delegate","node-pluginhost","node-screen","node-style"],
4006
+ "pluginhost": ["pluginhost-base","pluginhost-config"],
4007
+ "querystring": ["querystring-parse","querystring-stringify"],
4008
+ "recordset": ["recordset-base","recordset-sort","recordset-filter","recordset-indexer"],
4009
+ "resize": ["resize-base","resize-proxy","resize-constrain"],
4010
+ "slider": ["slider-base","slider-value-range","clickable-rail","range-slider"],
4011
+ "template": ["template-base","template-micro"],
4012
+ "text": ["text-accentfold","text-wordbreak"],
4013
+ "widget": ["widget-base","widget-htmlparser","widget-skin","widget-uievents"]
4014
+ };
4015
+
4016
+
4017
+ }, '@VERSION@');